6MDGMZZIZM6LG32OW4Q3B2KF4CJ7TV3QNGZC6BKG6YLGUEQYX77AC
# Welcome to [Slidev](https://github.com/slidevjs/slidev)!
To start the slide show:
- `npm install`
- `npm run dev`
- visit http://localhost:3030
Edit the [slides.md](./slides.md) to see the changes.
Learn more about Slidev on [documentations](https://sli.dev/).
{% extends "_base.html" %}
{% block page %}tag-single{% endblock page %}
{% block lang -%}
{% set blog_section_path = config.extra.blog_section_path | trim_start_matches(pat="/") %}
{% set section_md_path = blog_section_path ~ "/_index.md"%}
{% set section = get_section(path=section_md_path, metadata_only=true) %}
{%- if section.extra.lang %}{{ section.extra.lang }}{% else %}{{ lang }}{% endif -%}
{%- endblock lang %}
{% block title %}{{section.title}}{% endblock title %}
{% block content %}
{% include "_header.html" %}
<div id="wrapper">
<main class="layout-list">
<div class="title">
<span># {{ term.name }}</span>
<a class="instant" href="{{ config.base_url ~ '/tags' }}">All Tags</a>
</div>
<div class="post-list">
{% for post in term.pages %}
<a class="post instant {% if post.extra.featured %}featured{% endif %}" href="{{ post.permalink }}">
<span>{{ post.title }}</span>
<span class="date">{{ post.date | date }}</span>
</a>
{% endfor %}
</div>
</main>
{% include "_footer.html" %}
</div>
{% endblock content %}
{% extends "_base.html" %}
{% block page %}tag-list{% endblock page%}
{% block lang -%}
{% set blog_section_path = config.extra.blog_section_path | trim_start_matches(pat="/") %}
{% set section_md_path = blog_section_path ~ "/_index.md"%}
{% set section = get_section(path=section_md_path, metadata_only=true) %}
{%- if section.extra.lang %}{{ section.extra.lang }}{% else %}{{ lang }}{% endif -%}
{%- endblock lang %}
{% block title %}Tags{% endblock title %}
{% block content %}
{% include "_header.html" %}
<div id="wrapper">
<main>
<div class="title">Tags</div>
<div class="tags">
{% for tag in terms -%}
<a class="instant" href="{{ tag.permalink }}"># {{ tag.name | lower }}</a>
{% endfor %}
</div>
</main>
{% include "_footer.html" %}
</div>
{% endblock content %}
<blockquote class="callout warning">
{% set icon = load_data(path="static/icon/warning.svg") %}
<div class="icon">
{{ icon | safe }}
</div>
<div class="content">
{% if header %}
<p><strong>{{ header }}</strong></p>
{% endif %}
{{ body | markdown | safe }}
</div>
</blockquote>
<blockquote class="callout tip">
{% set icon = load_data(path="static/icon/tip.svg") %}
<div class="icon">
{{ icon | safe }}
</div>
<div class="content">
{% if header %}
<p><strong>{{ header }}</strong></p>
{% endif %}
{{ body | markdown | safe }}
</div>
</blockquote>
<blockquote class="quote">
{% set icon = load_data(path="static/icon/quote.svg") %}
<div class="icon" style="display: none;">{{ icon | safe }}</div>
<div class="content">{{ body | markdown | safe }}</div>
{% if cite %}
<div class="from">
{{ "— " ~ cite | markdown | safe }}
</div>
{% endif %}
</blockquote>
<blockquote class="callout question">
{% set icon = load_data(path="static/icon/question.svg") %}
<div class="icon">
{{ icon | safe }}
</div>
<div class="content">
{% if header %}
<p><strong>{{ header }}</strong></p>
{% endif %}
{{ body | markdown | safe }}
</div>
</blockquote>
<blockquote class="callout note">
{% set icon = load_data(path="static/icon/note.svg") %}
<div class="icon">
{{ icon | safe }}
</div>
<div class="content">
{% if header %}
<p><strong>{{ header }}</strong></p>
{% endif %}
{{ body | markdown | safe }}
</div>
</blockquote>
<pre class="mermaid">
{{ body }}
</pre>
<blockquote class="callout important">
{% set icon = load_data(path="static/icon/important.svg") %}
<div class="icon">
{{ icon | safe }}
</div>
<div class="content">
{% if header %}
<p><strong>{{ header }}</strong></p>
{% endif %}
{{ body | markdown | safe }}
</div>
</blockquote>
<figure>
<img src="{{ src }}" {% if alt %} alt="{{ alt }}"{% endif %}>
{% if via %}
<figcaption><a href="{{via}}">via</a></figcaption>
{% else %}
<figcaption>{{ caption }}</figcaption>
{% endif %}
</figure>
<details {% if default_open %}open{% endif %}>
<summary><span>{{ title }}</span></summary>
{{ body | markdown | safe }}
</details>
<div class="codeblock-with-filename">
<div class="filename">{{ name }}</div>
{{ body | markdown | safe }}
</div>
<blockquote class="callout alert">
{% set icon = load_data(path="static/icon/alert.svg") %}
<div class="icon">
{{ icon | safe }}
</div>
<div class="content">
{% if header %}
<p><strong>{{ header }}</strong></p>
{% endif %}
{{ body | markdown | safe }}
</div>
</blockquote>
{% extends "_base.html" %}
{% block page %}prose-page{% endblock page %}
{% block lang -%}
{%- if section.extra.lang %}{{section.extra.lang}}{% else %}{{page.lang}}{% endif -%}
{%- endblock lang %}
{% block title %}{{ section.title }}{% endblock title %}
{% block desc %}
<meta name="description" content="{{ section.description }}">
{% endblock desc %}
{% block head %}
{% if config.markdown.highlight_theme == "css" %}
<link id="hl" rel="stylesheet" type="text/css" href="/hl-light.css" />
{% endif %}
{% if section.extra.math %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css" integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js" integrity="sha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUG+vnGctmUb0ZY0l8" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js" integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
renderMathInElement(document.body, {
delimiters: [
{ left: '$$', right: '$$', display: true },
{ left: '$', right: '$', display: false },
{ left: '\\(', right: '\\)', display: false },
{ left: '\\[', right: '\\]', display: true }
],
throwOnError: false
});
});
</script>
{% endif %}
{% endblock head %}
{% block content %}
{% include "_header.html" %}
<div id="wrapper">
<main>
<div>
{% if section.extra.copy is defined %}{% set allow_copy = section.extra.copy %}{% else %}{% set allow_copy = config.extra.copy %}{% endif %}
{% if allow_copy %}
{% set copy_icon = load_data(path="static/icon/copy.svg") %}
{% set check_icon = load_data(path="static/icon/check.svg") %}
<div id="copy-cfg" style="display: none;" data-copy-icon="{{ copy_icon }}" data-check-icon="{{ check_icon }}"></div>
{% endif %}
{% set backlink_icon = load_data(path="static/icon/backlink.svg") %}
<article class="prose" data-backlink-icon="{{ backlink_icon }}">
{{ section.content | safe }}
</article>
{% if section.extra.comment is defined %}{% set show_comment = section.extra.comment %}{% else %}{% set show_comment = config.extra.comment %}{% endif %}
{% if show_comment %}
<div class="giscus"></div>
{% include "_giscus_script.html" %}
{% endif %}
</div>
{% include "_footer.html" %}
</main>
</div>
{% endblock content %}
{% block script %}
<script src="/js/lightense.min.js"></script>
{% if section.extra.mermaid %}
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>
{% endif %}
{% endblock script %}
{% extends "_base.html" %}
{% block page %}projects{% endblock page%}
{% block lang %}{% if section.extra.lang %}{{ section.extra.lang }}{% else %}{{ section.lang }}{% endif %}{% endblock lang %}
{% block title %}{{ section.title }}{% endblock title %}
{% block desc %}
<meta name="description" content="{{ section.description }}">
{% endblock desc %}
{% block content %}
{% include "_header.html" %}
<div id="wrapper">
<main>
{% set data = load_data(path="content/projects/data.toml", format="toml") %}
{% for proj in data.project %}
<div class="proj">
<div class="content">
<div>
<p class="name">{{ proj.name }}</p>
<div class="desc">{{ proj.desc | trim | markdown | safe }}</div>
</div>
{% if proj.img %}
<img src="{{ proj.img }}" alt="{{ proj.name }}" />
{% endif %}
</div>
<div class="more">
<div class="tags">
{% for tag in proj.tags %}
<div><span>#</span>{{ tag }}</div>
{% endfor %}
</div>
<div class="links">
{% for link in proj.links -%}
<a href="{{ link.url }}" target="_blank" rel='noreferrer noopener'>{{ link.name }}</a>
{% endfor %}
</div>
</div>
</div>
{% endfor %}
</main>
{% include "_footer.html" -%}
</div>
{% endblock content %}
{% extends "_base.html" %}
{% block page %}post{% endblock page %}
{% block lang -%}
{%- set blog_section_path = config.extra.blog_section_path | trim_start_matches(pat="/") -%}
{%- set section_md_path = blog_section_path ~ "/_index.md" -%}
{%- set section = get_section(path=section_md_path, metadata_only=true) -%}
{%- if page.extra.lang %}{{page.extra.lang}}{% elif section.extra.lang %}{{section.extra.lang}}{% else %}{{page.lang}}{% endif -%}
{%- endblock lang %}
{% block title %}{{ page.title }}{% endblock title %}
{% block desc %}
{% if page.summary %}
{% set desc = page.summary %}
{% elif page.description %}
{% set desc = page.description %}
{% endif %}
{% if desc %}
<meta name="description" content="{{ desc }}">
{% endif %}
{% endblock desc %}
{% block head %}
{% if config.markdown.highlight_theme == "css" %}
<link id="hl" rel="stylesheet" type="text/css" href="/hl-light.css" />
{% endif %}
{% if page.extra.math %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css" integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js" integrity="sha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUG+vnGctmUb0ZY0l8" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js" integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
renderMathInElement(document.body, {
delimiters: [
{ left: '$$', right: '$$', display: true },
{ left: '$', right: '$', display: false },
{ left: '\\(', right: '\\)', display: false },
{ left: '\\[', right: '\\]', display: true }
],
throwOnError: false
});
});
</script>
{% endif %}
{% endblock head %}
{% block content %}
{% include "_header.html" %}
<div id="wrapper">
<div id="blank"></div>
<aside>
{% if page.extra.toc is defined %}{% set show_toc = page.extra.toc %}{% else %}{% set show_toc = config.extra.toc %}{% endif %}
{% if show_toc and page.toc %}
<nav>
<ul>
{% for h2 in page.toc %}
<li>
<a class="h2" href="#{{ h2.id | safe }}">{{ h2.title }}</a>
{% if h2.children %}
<ul>
{% for h3 in h2.children %}
<li>
<a class="h3" href="#{{ h3.id | safe }}">{{ h3.title }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</nav>
{% endif %}
{% if config.extra.back_to_top %}
<button id="back-to-top" aria-label="back to top">
{% set icon = load_data(path="static/icon/arrow-up.svg") %}
{{ icon | safe }}
</button>
{% endif %}
</aside>
<main>
<div>
{% if page.extra.copy is defined %}{% set allow_copy = page.extra.copy %}{% else %}{% set allow_copy = config.extra.copy %}{% endif %}
{% if allow_copy %}
{% set copy_icon = load_data(path="static/icon/copy.svg") %}
{% set check_icon = load_data(path="static/icon/check.svg") %}
<div id="copy-cfg" style="display: none;" data-copy-icon="{{ copy_icon }}" data-check-icon="{{ check_icon }}"></div>
{% endif %}
{% set backlink_icon = load_data(path="static/icon/backlink.svg") %}
<article class="prose" data-backlink-icon="{{ backlink_icon }}">
<h1>{{ page.title }}</h1>
<div id="post-info">
<div id="date">
<span id="publish">{{ page.date | date }}</span>
{% if page.updated and page.updated != page.date -%}
<span>Updated on <span id="updated">{{ page.updated | date }}</span></span>
{% endif -%}
</div>
{% if page.extra.display_tags is defined %}{% set display_tags = page.extra.display_tags %}{% elif config.extra.display_tags is defined %}{% set display_tags = config.extra.display_tags %}{% else %}{% set display_tags = true %}{% endif %}
{% if page.taxonomies.tags is defined and display_tags == true %}
<div id="tags">
{% for tag in page.taxonomies.tags -%}
{% set tag_slugify = tag | slugify -%}
<a class="instant" href="{{ config.base_url ~ '/tags/' ~ tag_slugify }}"><span>#</span>{{ tag }}</a>
{%- endfor %}
</div>
{% endif %}
</div>
{% if page.extra.outdate_alert is defined %}{% set show_outdate_alert = page.extra.outdate_alert %}{% else %}{% set show_outdate_alert = config.extra.outdate_alert %}{% endif %}
{% if page.extra.outdate_alert_days is defined %}{% set outdate_alert_days = page.extra.outdate_alert_days %}{% else %}{% set outdate_alert_days = config.extra.outdate_alert_days %}{% endif %}
{% if show_outdate_alert -%}
<blockquote id="outdate_alert" class="callout alert hidden" data-days="{{ outdate_alert_days }}"
data-alert-text-before="{{ config.extra.outdate_alert_text_before }}"
data-alert-text-after="{{ config.extra.outdate_alert_text_after }}">
{% set icon = load_data(path="static/icon/alert.svg") %}
<div class="icon">
{{ icon | safe }}
</div>
<div class="content"></div>
</blockquote>
{% endif %}
{% if page.extra.truncate_summary is defined %}{% set truncate_summary = page.extra.truncate_summary %}{% elif config.extra.truncate_summary is defined %}{% set truncate_summary = config.extra.truncate_summary %}{% else %}{% set truncate_summary = false %}{% endif %}
{% if truncate_summary == true and page.summary %}
{{ page.content | trim_start_matches(pat=page.summary) | safe }}
{% else %}
{{ page.content | safe }}
{% endif %}
</article>
{% if page.extra.comment is defined %}{% set show_comment = page.extra.comment %}{% else %}{% set show_comment = config.extra.comment %}{% endif %}
{% if show_comment %}
<div class="giscus"></div>
{% include "_giscus_script.html" %}
{% endif %}
</div>
{% include "_footer.html" %}
</main>
</div>
{% endblock content %}
{% block script %}
<script src="/js/lightense.min.js"></script>
{% if page.extra.mermaid %}
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>
{% endif %}
{% endblock script %}
{% extends "_base.html" %}
{% block page %}homepage{% endblock page%}
{% block lang %}{% if section.extra.lang %}{{ section.extra.lang }}{% else %}{{ section.lang }}{% endif %}{% endblock lang %}
{% block title %}{{ config.title }}{% endblock title %}
{% block desc %}
<meta name="description" content="{{ config.description }}">
{% endblock desc %}
{% block head %}
{% if config.extra.homepage_layout == "about" and config.markdown.highlight_theme == "css" %}
<link id="hl" rel="stylesheet" type="text/css" href="/hl-light.css" />
{% endif %}
{% if section.extra.math %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.7/dist/katex.min.css" integrity="sha384-3UiQGuEI4TTMaFmGIZumfRPtfKQ3trwQE2JgosJxCnGmQpL/lJdjpcHkaaFwHlcI" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.7/dist/katex.min.js" integrity="sha384-G0zcxDFp5LWZtDuRMnBkk3EphCK1lhEf4UEyEM693ka574TZGwo4IWwS6QLzM/2t" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.7/dist/contrib/auto-render.min.js" integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
renderMathInElement(document.body, {
delimiters: [
{ left: '$$', right: '$$', display: true },
{ left: '$', right: '$', display: false },
{ left: '\\(', right: '\\)', display: false },
{ left: '\\[', right: '\\]', display: true }
],
throwOnError: false
});
});
</script>
{% endif %}
{% endblock head %}
{% block content %}
<div id="wrapper">
<main>
<section id="info">
<img src="{{ config.extra.avatar }}" alt="avatar">
<div id="text">
<div>
<span id="name">{{ config.extra.name }}</span>
{% if config.extra.display_id -%}
<span id="id">@{{ config.extra.id }}</span>
{% endif -%}
</div>
<div id="bio"> {{ config.extra.bio }} </div>
</div>
</section>
<section id="links">
<div id="left">
{% for section in config.extra.sections %}
<a href="{{ section.path }}" {% if section.is_external %}target="_blank" rel='noreferrer noopener'{% else %}class="instant"{% endif %}>{{ section.name }}</a>
{% endfor %}
</div>
<div id="right">
{% for link in config.extra.links %}
<a href="{{ link.url }}" aria-label="{{ link.name }}" target="_blank" rel='noreferrer noopener'>
{% set icon_path = "static/icon/" ~ link.icon ~ ".svg" %}
{% set icon = load_data(path=icon_path) %}
{{ icon | safe }}
</a>
{% endfor %}
{% set moon_icon = load_data(path="static/icon/moon.svg") %}
{% set sun_icon = load_data(path="static/icon/sun.svg") %}
<button id="theme-toggle" aria-label="theme switch" data-moon-icon="{{ moon_icon }}" data-sun-icon="{{ sun_icon }}">
{{ moon_icon | safe }}
</button>
</div>
</section>
{% if config.extra.homepage_layout == 'about' %}
<section id="brief" class="prose">
{{ section.content | trim | safe }}
</section>
{% elif config.extra.homepage_layout == 'list' %}
{% set blog_section_path = config.extra.blog_section_path | trim_start_matches(pat="/") %}
{% set section_md_path = blog_section_path ~ "/_index.md" %}
{% set blog_section = get_section(path=section_md_path) %}
<section class="layout-list">
{% if config.extra.blog_categorized %}
{% for category,posts in blog_section.pages | sort(attribute="taxonomies.categories.0") | group_by(attribute="taxonomies.categories.0") %}
{% set category_name = category %}
{% if category is matching("^__[0-9]{2}__") %}
{% set category_name = category | split(pat="") | slice(start=7) | join(sep="") %}
{% endif %}
<div class="category">{{ category_name }}</div>
<div class="post-list categorized">
{% for post in posts %}
<a class="post instant {% if post.extra.featured %}featured{% endif %}" href="{{ post.permalink }}">
<span>{{ post.title }}</span>
<span class="date">{{ post.date | date}}</span>
</a>
{% endfor %}
</div>
{% endfor %}
{% else %}
<div class="post-list">
{% for post in blog_section.pages %}
<a class="post instant {% if post.extra.featured %}featured{% endif %}" href="{{ post.permalink }}">
<span>{{ post.title }}</span>
<span class="line"></span>
<span class="date">{{ post.date | date}}</span>
</a>
{% endfor %}
</div>
{% endif %}
</section>
{% elif config.extra.homepage_layout == 'recent' %}
{% set blog_section_path = config.extra.blog_section_path | trim_start_matches(pat="/") %}
{% set section_md_path = blog_section_path ~ "/_index.md" %}
{% set blog_section = get_section(path=section_md_path) %}
<section class="layout-list">
<div class="post-list">
{% for post in blog_section.pages | slice(end=config.extra.recent_max) %}
<a class="post instant {% if post.extra.featured %}featured{% endif %}" href="{{ post.permalink }}">
<span>{{ post.title }}</span>
<span class="line"></span>
<span class="date">{{ post.date | date}}</span>
</a>
{% endfor %}
</div>
{% if config.extra.recent_more %}
<div class="read-more">
<a class="instant" href="{{ config.extra.blog_section_path }}">{{ config.extra.recent_more_text }}</a>
</div>
{% endif %}
</section>
{% endif %}
</main>
</div>
{% endblock content %}
{% block script %}
<script src="/js/lightense.min.js"></script>
{% if section.extra.mermaid %}
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>
{% endif %}
{% endblock script %}
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ lang }}">
<title>{% if section.title %}{{ section.title }}{% else %}{{ config.title }}{% endif %}</title>
{%- if section.description %}
<subtitle>{{ section.description }}</subtitle>
{%- elif config.description %}
<subtitle>{{ config.description }}</subtitle>
{%- endif %}
<link href="{{ feed_url | safe }}" rel="self" type="application/atom+xml"/>
<link href="
{%- if section -%}
{{ section.permalink | escape_xml | safe }}
{%- else -%}
{{ config.base_url | escape_xml | safe }}
{%- endif -%}
"/>
<updated>{{ last_updated | date(format="%+") }}</updated>
<id>{{ feed_url | safe }}</id>
{%- for page in pages %}
<entry xml:lang="{{ page.lang }}">
<title>{{ page.title }}</title>
<published>{{ page.date | date(format="%+") }}</published>
<updated>{{ page.updated | default(value=page.date) | date(format="%+") }}</updated>
{%- if page.summary %}
<summary>{{ page.summary }}</summary>
{%- endif %}
<link href="{{ page.permalink | safe }}" type="text/html"/>
<id>{{ page.permalink | safe }}</id>
<content type="html">{{ page.content }}</content>
</entry>
{%- endfor %}
</feed>
{% extends "_base.html" %}
{% block page %}blog{% endblock page%}
{% block lang %}{% if section.extra.lang %}{{ section.extra.lang }}{% else %}{{ section.lang }}{% endif %}{% endblock lang %}
{% block title %}{{ section.title }}{% endblock title %}
{% block desc %}
<meta name="description" content="{{ section.description }}">
{% endblock desc %}
{% block content %}
{% include "_header.html" %}
<div id="wrapper">
<main class="layout-list">
{% if config.extra.blog_categorized %}
{% for category,posts in section.pages | sort(attribute="taxonomies.categories.0") | group_by(attribute="taxonomies.categories.0") %}
{% set category_name = category %}
{% if category is matching("^__[0-9]{2}__") %}
{% set category_name = category | split(pat="") | slice(start=7) | join(sep="") %}
{% endif %}
<div class="category">{{ category_name }}</div>
<div class="post-list categorized">
{% for post in posts %}
<a class="post instant {% if post.extra.featured %}featured{% endif %}" href="{{ post.permalink }}">
<span>{{ post.title }}</span>
<span class="date">{{ post.date | date}}</span>
</a>
{% endfor %}
</div>
{% endfor %}
{% else %}
<div class="post-list">
{% for post in section.pages %}
<a class="post instant {% if post.extra.featured %}featured{% endif %}" href="{{ post.permalink }}">
<span>{{ post.title }}</span>
<span class="date">{{ post.date | date}}</span>
</a>
{% endfor %}
</div>
{% endif %}
</main>
{% include "_footer.html" %}
</div>
{% endblock content %}
<a class="zola-anchor" href="#{{ id }}" aria-label="Anchor link for: {{ id }}" style="visibility: hidden;">#</a>
<header {% if config.extra.blur_effect %} class="blur" {% endif %}>
<div id="header-wrapper">
<nav>
<a class="instant" href="/">{{ config.extra.id }}</a>
{% if config.extra.sections | length > 1 %}
<button id="toggler" class="separator" aria-label="toggle expand">{{ config.extra.nav_separator }}</button>
{% else %}
<span class="separator">{{ config.extra.nav_separator }}</span>
{% endif %}
{% if config.extra.sections | length > 1 %}
<span class="wrap left fold">{{ config.extra.nav_wrapper_left }}</span>
{% set_global is_taxonomies_path = false %}
{% for taxonomy in config.taxonomies %}
{% if current_path is starting_with("/" ~ taxonomy.name)%}
{% set_global is_taxonomies_path = true %}
{% endif %}
{% endfor %}
{% set site_sections = config.extra.sections | filter(attribute="is_external", value=false) %}
{% for section in site_sections %}
{% set should_fold = false %}
{% if is_taxonomies_path and section.path == config.extra.blog_section_path %}
{% set should_fold = false %}
{% elif not current_path is starting_with(section.path) %}
{% set should_fold = true %}
{% endif %}
<a class="instant {% if should_fold %}fold{% endif %}" href="{{ section.path }}">{{ section.name }}</a>
{% if not loop.last %}<span class="wrap-separator fold">{{ config.extra.nav_wrapper_separator }}</span>{% endif %}
{% endfor %}
<span class="wrap right fold">{{ config.extra.nav_wrapper_right }}</span>
{% else %}
{% set section = config.extra.sections | first %}
<a class="instant" href="{{ section.path }}">{{ section.name }}</a>
{% endif %}
</nav>
<div id="btns">
{% if config.extra.blog_section_path is defined %}
{% set blog_section_path = config.extra.blog_section_path %}
{% endif %}
{% if blog_section_path is defined and section.path is starting_with(blog_section_path) %}
{% set rss_icon = load_data(path="static/icon/rss.svg") %}
{% if section.generate_feed %}
{% set_global rss_path = blog_section_path ~ "/" ~ config.feed_filename %}
<!-- <a href="{{ blog_section_path }}/{{ config.feed_filename }}" aria-label="rss feed">{{ rss_icon | safe }}</a> -->
{% elif config.generate_feed %}
{% set rss_path = "/" ~ config.feed_filename %}
<!-- <a href="/{{ config.feed_filename }}" aria-label="rss feed">{{ rss_icon | safe }}</a> -->
{% endif %}
{% if section.generate_feed or config.generate_feed %}
<a id="rss-btn" href="{{ rss_path }}" aria-label="rss feed">{{ rss_icon | safe }}</a>
{% endif %}
{% endif %}
{% set moon_icon = load_data(path="static/icon/moon.svg") %}
{% set sun_icon = load_data(path="static/icon/sun.svg") %}
<button id="theme-toggle" aria-label="theme switch" data-moon-icon="{{ moon_icon }}" data-sun-icon="{{ sun_icon }}">
{{ moon_icon | safe }}
</button>
{% if blog_section_path is defined and section.path is starting_with(blog_section_path) %}
{% set toc_icon = load_data(path="static/icon/toc.svg") %}
{% if page.extra.toc is defined %}{% set show_toc = page.extra.toc %}{% else %}{% set show_toc = config.extra.toc %}{% endif %}
{% if show_toc and page %}
<button id="toc-toggle" aria-label="table of content">
{{ toc_icon | safe }}
</button>
{% endif %}
{% endif %}
</div>
</div>
</header>
{% if blog_section_path is defined and section.path is starting_with(blog_section_path) %}
{% if section.generate_feed or config.generate_feed %}
{% set link = config.base_url ~ rss_path %}
<dialog id="rss-mask">
<div>
<a href="{{ link }}">{{ link }}</a>
{% set copy_icon = load_data(path="static/icon/copy.svg") %}
{% set check_icon = load_data(path="static/icon/check.svg") %}
<button autofocus aria-label="copy" data-link="{{ link }}" data-copy-icon="{{ copy_icon }}" data-check-icon="{{ check_icon }}" >
{{ copy_icon | safe }}
</button>
</div>
</dialog>
{% endif %}
{% endif %}
<footer>
<div class="copyright">
{{ config.extra.footer_copyright | trim | markdown | safe }}
</div>
{% if config.extra.footer_credits %}
<div class="credits">
powered by
<a href="https://www.getzola.org" target="_blank" rel='noreferrer noopener'>zola</a>
and
<a href="https://github.com/isunjn/serene" target="_blank" rel='noreferrer noopener'>serene</a>
</div>
{% endif %}
</footer>
<style>
/* light mode colors */
body {
--primary-color: #5871a2;
--primary-pale-color: #5871a210;
--text-color: #3C4043;
--text-pale-color: #94969f;
--bg-color: #ffffff;
--highlight-mark-color: #5f75b045;
--callout-note-color: #5871a2;
--callout-important-color: #8062b0;
--callout-warning-color: #936e51;
--callout-alert-color: #bc5252;
--callout-question-color: #477389;
--callout-tip-color: #3c8460;
}
/* dark mode colors */
body.dark {
--primary-color: #5d77ac;
--primary-pale-color: #5d77ac20;
--text-color: #9197a5;
--text-pale-color: #747983;
--bg-color: #202124;
--highlight-mark-color: #5f75b045;
--callout-note-color: #5d77ac;
--callout-important-color: #8062b0;
--callout-warning-color: #936e51;
--callout-alert-color: #bc5252;
--callout-question-color: #477389;
--callout-tip-color: #3c8460;
}
/* typography */
body {
--main-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--code-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
--homepage-max-width: 768px;
--main-max-width: 768px;
--avatar-size: 60px;
--icon-size: 20px;
--homepage-font-size: 16px;
--homepage-line-height: 1.75;
--paragraph-font-size: 16px;
--paragraph-line-height: 1.75;
--aside-font-size: 15px;
--img-border-radius: 0px;
--dark-mode-img-brightness: 0.75;
--dark-mode-chart-brightness: 0.75;
--inline-code-border-radius: 2px;
--inline-code-bg-color: var(--primary-pale-color);
--block-code-border-radius: 0px;
--block-code-border-color: var(--primary-color);
--detail-border-color: var(--primary-color);
}
</style>
<!DOCTYPE html>
<html lang="{% block lang %}{% endblock lang %}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="color-scheme" content="light dark">
{% block desc %}{% endblock desc %}
<title>{% block title %}{% endblock title %}</title>
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png">
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
{% include "_custom_font.html" %}
{% include "_custom_css.html" %}
<link rel="stylesheet" href="/main.css">
{% block head %}{% endblock head %}
{% include "_head_extend.html" %}
</head>
<body class="{% block page %}{% endblock page%}">
<script>
const theme = sessionStorage.getItem('theme');
const match = window.matchMedia("(prefers-color-scheme: dark)").matches
if ((theme && theme == 'dark') || (!theme && match)) {
document.body.classList.add('dark');
const hl = document.querySelector('link#hl');
if (hl) hl.href = '/hl-dark.css';
}
</script>
{% block content %}{% endblock content %}
{% block script %}{% endblock script %}
<script src="/js/main.js"></script>
</body>
</html>
{% extends "_base.html" %}
{% block page %}not-found{% endblock page%}
{% block lang %}{{ config.default_language }}{% endblock lang %}
{% block title %}{{ config.extra.not_found_title }}{% endblock title %}
{% block content %}
<div class="wrapper">
<p class="error">
<span>404</span>
<span>{{ config.extra.not_found_error_text }}</span>
</p>
<a class="instant" href="/">{{ config.extra.not_found_recover_text }}</a>
</div>
{% endblock %}
<script type="module" crossorigin src="/slides/fosdem2024/assets/index-Hfn5l4aw.js"></script>
<link rel="stylesheet" crossorigin href="/slides/fosdem2024/assets/index-DlFHiXtv.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Avenir+Next:wght@200;400;600&family=Nunito+Sans:wght@200;400;600&family=Fira+Code:wght@200;400;600&display=swap" type="text/css">
<script type="module" crossorigin src="/slides/fosdem2024/assets/index-DENYuTHS.js"></script>
<link rel="modulepreload" crossorigin href="/slides/fosdem2024/assets/modules/vue-O-XuQLLR.js">
<link rel="modulepreload" crossorigin href="/slides/fosdem2024/assets/modules/shiki-CBnMlxcT.js">
<link rel="stylesheet" crossorigin href="/slides/fosdem2024/assets/modules/shiki-BSchMNmt.css">
<link rel="stylesheet" crossorigin href="/slides/fosdem2024/assets/index-BAThGyva.css">
<!DOCTYPE html>
<html lang="en">
<head>
<title>Nix for genetics</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Avenir+Next:wght@200;400;600&family=Nunito+Sans:wght@200;400;600&family=Fira+Code:wght@200;400;600&display=swap" type="text/css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Avenir+Next:wght@200;400;600&family=Nunito+Sans:wght@200;400;600&family=Fira+Code:wght@200;400;600&display=swap" type="text/css">
<script type="module" crossorigin src="/slides/fosdem2024/assets/index-DENYuTHS.js"></script>
<link rel="modulepreload" crossorigin href="/slides/fosdem2024/assets/modules/vue-O-XuQLLR.js">
<link rel="modulepreload" crossorigin href="/slides/fosdem2024/assets/modules/shiki-CBnMlxcT.js">
<link rel="stylesheet" crossorigin href="/slides/fosdem2024/assets/modules/shiki-BSchMNmt.css">
<link rel="stylesheet" crossorigin href="/slides/fosdem2024/assets/index-BAThGyva.css">
</head>
<body>
<div id="app"></div>
<div id="mermaid-rendering-container"></div>
<div id="app"></div>
<div id="mermaid-rendering-container"></div>
</body>
</html>
import{Z as zt,$ as ot,W as wt,V as Ft,s as Nt,g as Xt,C as Yt,D as St,a as Ht,b as $t,E as Ut,l as Ct,U as qt,i as jt,d as Gt}from"./slidev/Mermaid-sWhOKcCj.js";import{c as Qt}from"./createText-f6615236-DY9JQ1lr.js";import{i as Kt}from"./init-cc95ec8e-Gi6I4Gst.js";import{o as Zt}from"./ordinal-475e0c0c-BmOJQ37o.js";import{l as pt}from"./linear-d94cf28d-BOPJ1JvI.js";import{l as ft}from"./line-65d70945-Bv9b7vLo.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s<n;)o[s]=e+s*i;return o}function st(){var e=Zt().unknown(void 0),t=e.domain,i=e.range,s=0,n=1,o,c,p=!1,d=0,R=0,_=.5;delete e.unknown;function A(){var m=t().length,T=n<s,S=T?n:s,P=T?s:n;o=(P-S)/Math.max(1,m-d+R*2),p&&(o=Math.floor(o)),S+=(P-S-o*(m-d))*_,c=o*(1-d),p&&(S=Math.round(S),c=Math.round(c));var f=Jt(m).map(function(C){return S+o*C});return i(T?f.reverse():f)}return e.domain=function(m){return arguments.length?(t(m),A()):t()},e.range=function(m){return arguments.length?([s,n]=m,s=+s,n=+n,A()):[s,n]},e.rangeRound=function(m){return[s,n]=m,s=+s,n=+n,p=!0,A()},e.bandwidth=function(){return c},e.step=function(){return o},e.round=function(m){return arguments.length?(p=!!m,A()):p},e.padding=function(m){return arguments.length?(d=Math.min(1,R=+m),A()):d},e.paddingInner=function(m){return arguments.length?(d=Math.min(1,m),A()):d},e.paddingOuter=function(m){return arguments.length?(R=+m,A()):R},e.align=function(m){return arguments.length?(_=Math.max(0,Math.min(1,m)),A()):_},e.copy=function(){return st(t(),[s,n]).round(p).paddingInner(d).paddingOuter(R).align(_)},Kt.apply(A(),arguments)}var nt=function(){var e=function(V,r,l,u){for(l=l||{},u=V.length;u--;l[V[u]]=r);return l},t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],o=[1,6],c=[1,7],p=[1,5,10,12,14,16,18,19,21,23,34,35,36],d=[1,25],R=[1,26],_=[1,28],A=[1,29],m=[1,30],T=[1,31],S=[1,32],P=[1,33],f=[1,34],C=[1,35],h=[1,36],L=[1,37],z=[1,43],lt=[1,42],ct=[1,47],$=[1,50],w=[1,10,12,14,16,18,19,21,23,34,35,36],Q=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],E=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],ut=[1,64],K={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(r,l,u,g,b,a,F){var x=a.length-1;switch(b){case 5:g.setOrientation(a[x]);break;case 9:g.setDiagramTitle(a[x].text.trim());break;case 12:g.setLineData({text:"",type:"text"},a[x]);break;case 13:g.setLineData(a[x-1],a[x]);break;case 14:g.setBarData({text:"",type:"text"},a[x]);break;case 15:g.setBarData(a[x-1],a[x]);break;case 16:this.$=a[x].trim(),g.setAccTitle(this.$);break;case 17:case 18:this.$=a[x].trim(),g.setAccDescription(this.$);break;case 19:this.$=a[x-1];break;case 20:this.$=[Number(a[x-2]),...a[x]];break;case 21:this.$=[Number(a[x])];break;case 22:g.setXAxisTitle(a[x]);break;case 23:g.setXAxisTitle(a[x-1]);break;case 24:g.setXAxisTitle({type:"text",text:""});break;case 25:g.setXAxisBand(a[x]);break;case 26:g.setXAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 27:this.$=a[x-1];break;case 28:this.$=[a[x-2],...a[x]];break;case 29:this.$=[a[x]];break;case 30:g.setYAxisTitle(a[x]);break;case 31:g.setYAxisTitle(a[x-1]);break;case 32:g.setYAxisTitle({type:"text",text:""});break;case 33:g.setYAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 37:this.$={text:a[x],type:"text"};break;case 38:this.$={text:a[x],type:"text"};break;case 39:this.$={text:a[x],type:"markdown"};break;case 40:this.$=a[x];break;case 41:this.$=a[x-1]+""+a[x];break}},table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:o,36:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:o,36:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:o,36:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(p,[2,34]),e(p,[2,35]),e(p,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:o,36:c}),{1:[2,3]},e(p,[2,5]),e(t,[2,7],{4:22,34:n,35:o,36:c}),{11:23,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:39,13:38,24:z,27:lt,29:40,30:41,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:45,15:44,27:ct,33:46,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:49,17:48,24:$,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:52,17:51,24:$,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{20:[1,53]},{22:[1,54]},e(w,[2,18]),{1:[2,2]},e(w,[2,8]),e(w,[2,9]),e(Q,[2,37],{40:55,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L}),e(Q,[2,38]),e(Q,[2,39]),e(E,[2,40]),e(E,[2,42]),e(E,[2,43]),e(E,[2,44]),e(E,[2,45]),e(E,[2,46]),e(E,[2,47]),e(E,[2,48]),e(E,[2,49]),e(E,[2,50]),e(E,[2,51]),e(w,[2,10]),e(w,[2,22],{30:41,29:56,24:z,27:lt}),e(w,[2,24]),e(w,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},e(w,[2,11]),e(w,[2,30],{33:60,27:ct}),e(w,[2,32]),{31:[1,61]},e(w,[2,12]),{17:62,24:$},{25:63,27:ut},e(w,[2,14]),{17:65,24:$},e(w,[2,16]),e(w,[2,17]),e(E,[2,41]),e(w,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(w,[2,31]),{27:[1,69]},e(w,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(w,[2,15]),e(w,[2,26]),e(w,[2,27]),{11:59,32:72,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},e(w,[2,33]),e(w,[2,19]),{25:73,27:ut},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(r,l){if(l.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=l,u}},parse:function(r){var l=this,u=[0],g=[],b=[null],a=[],F=this.table,x="",U=0,gt=0,Vt=2,xt=1,Wt=a.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(W.yy[J]=this.yy[J]);k.setInput(r,W.yy),W.yy.lexer=k,W.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Bt=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,B,v,it,O={},q,M,dt,j;;){if(B=u[u.length-1],this.defaultActions[B]?v=this.defaultActions[B]:((D===null||typeof D>"u")&&(D=Ot()),v=F[B]&&F[B][D]),typeof v>"u"||!v.length||!v[0]){var et="";j=[];for(q in F[B])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`:
`+k.showPosition()+`
Expecting `+j.join(", ")+", got '"+(this.terminals_[D]||D)+"'":et="Parse error on line "+(U+1)+": Unexpected "+(D==xt?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(et,{text:k.match,token:this.terminals_[D]||D,line:k.yylineno,loc:tt,expected:j})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+B+", token: "+D);switch(v[0]){case 1:u.push(D),b.push(k.yytext),a.push(k.yylloc),u.push(v[1]),D=null,gt=k.yyleng,x=k.yytext,U=k.yylineno,tt=k.yylloc;break;case 2:if(M=this.productions_[v[1]][1],O.$=b[b.length-M],O._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},Bt&&(O._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),it=this.performAction.apply(O,[x,gt,U,W.yy,v[1],b,a].concat(Wt)),typeof it<"u")return it;M&&(u=u.slice(0,-1*M*2),b=b.slice(0,-1*M),a=a.slice(0,-1*M)),u.push(this.productions_[v[1]][0]),b.push(O.$),a.push(O._$),dt=F[u[u.length-2]][u[u.length-1]],u.push(dt);break;case 3:return!0}}return!0}},It=function(){var V={EOF:1,parseError:function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},setInput:function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var l=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===g.length?this.yylloc.first_column:0)+g[g.length-u.length].length-u[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
`+l+"^"},test_match:function(r,l){var u,g,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),g=r[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],u=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var a in b)this[a]=b[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,l,u,g;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),a=0;a<b.length;a++)if(u=this._input.match(this.rules[b[a]]),u&&(!l||u[0].length>l[0].length)){if(l=u,g=a,this.options.backtrack_lexer){if(r=this.test_match(u,b[a]),r!==!1)return r;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(r=this.test_match(l,b[g]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var l=this.next();return l||this.lex()},begin:function(l){this.conditionStack.push(l)},popState:function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},pushState:function(l){this.begin(l)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(l,u,g,b){switch(g){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";case 17:return this.pushState("axis_data"),"Y_AXIS";case 18:return this.pushState("axis_band_data"),24;case 19:return 31;case 20:return this.pushState("data"),16;case 21:return this.pushState("data"),18;case 22:return this.pushState("data_inner"),24;case 23:return 27;case 24:return this.popState(),26;case 25:this.popState();break;case 26:this.pushState("string");break;case 27:this.popState();break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 43:break;case 44:return 35;case 45:return 36}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}};return V}();K.lexer=It;function Z(){this.yy={}}return Z.prototype=K,K.Parser=Z,new Z}();nt.parser=nt;const ti=nt;function mt(e){return e.type==="bar"}function _t(e){return e.type==="band"}function N(e){return e.type==="linear"}class kt{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((o,c)=>Math.max(c.length,o),0)*i,height:i};const s={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const o of t){const c=Qt(n,1,o),p=c?c.width:o.length*i,d=c?c.height:i;s.width=Math.max(s.width,p),s.height=Math.max(s.height,d)}return n.remove(),s}}const yt=.7,bt=.2;class Rt{constructor(t,i,s,n){this.axisConfig=t,this.title=i,this.textDimensionCalculator=s,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){yt*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(yt*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=bt*t.width;this.outerPadding=Math.min(s.width/2,n);const o=s.height+this.axisConfig.labelPadding*2;this.labelTextHeight=s.height,o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=bt*t.height;this.outerPadding=Math.min(s.height/2,n);const o=s.width+this.axisConfig.labelPadding*2;o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${i},${this.getScaleValue(s)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(s)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}}class ii extends Rt{constructor(t,i,s,n,o){super(t,n,o,i),this.categories=s,this.scale=st().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=st().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),Ct.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)||this.getRange()[0]}}class ei extends Rt{constructor(t,i,s,n,o){super(t,n,o,i),this.domain=s,this.scale=pt().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=pt().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}}function At(e,t,i,s){const n=new kt(s);return _t(e)?new ii(t,i,e.categories,e.title,n):new ei(t,i,[e.min,e.max],e.title,n)}class si{constructor(t,i,s,n){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(i.width,t.width),n=i.height+2*this.chartConfig.titlePadding;return i.width<=s&&i.height<=n&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=n,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}}function ni(e,t,i,s){const n=new kt(s);return new si(n,e,t,i)}class ai{constructor(t,i,s,n,o){this.plotData=t,this.xAxis=i,this.yAxis=s,this.orientation=n,this.plotIndex=o}getDrawableElement(){const t=this.plotData.data.map(s=>[this.xAxis.getScaleValue(s[0]),this.yAxis.getScaleValue(s[1])]);let i;return this.orientation==="horizontal"?i=ft().y(s=>s[0]).x(s=>s[1])(t):i=ft().x(s=>s[0]).y(s=>s[1])(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}}class oi{constructor(t,i,s,n,o,c){this.barData=t,this.boundingRect=i,this.xAxis=s,this.yAxis=n,this.orientation=o,this.plotIndex=c}getDrawableElement(){const t=this.barData.data.map(o=>[this.xAxis.getScaleValue(o[0]),this.yAxis.getScaleValue(o[1])]),s=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),n=s/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:this.boundingRect.x,y:o[0]-n,height:s,width:o[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:o[0]-n,y:o[1],width:s,height:this.boundingRect.y+this.boundingRect.height-o[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}}class ri{constructor(t,i,s){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[i,s]of this.chartData.plots.entries())switch(s.type){case"line":{const n=new ai(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break;case"bar":{const n=new oi(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break}return t}}function hi(e,t,i){return new ri(e,t,i)}class li{constructor(t,i,s,n){this.chartConfig=t,this.chartData=i,this.componentStore={title:ni(t,i,s,n),plot:hi(t,i,s),xAxis:At(i.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},n),yAxis:At(i.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},n)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),c=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),p=this.componentStore.plot.calculateSpace({width:o,height:c});t-=p.width,i-=p.height,p=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),n=p.height,i-=p.height,this.componentStore.xAxis.setAxisPosition("bottom"),p=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=p.height,this.componentStore.yAxis.setAxisPosition("left"),p=this.componentStore.yAxis.calculateSpace({width:t,height:i}),s=p.width,t-=p.width,t>0&&(o+=t,t=0),i>0&&(c+=i,i=0),this.componentStore.plot.calculateSpace({width:o,height:c}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.xAxis.setRange([s,s+o]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:n+c}),this.componentStore.yAxis.setRange([n,n+c]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(d=>mt(d))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=0,c=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),p=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),d=this.componentStore.plot.calculateSpace({width:c,height:p});t-=d.width,i-=d.height,d=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=d.height,i-=d.height,this.componentStore.xAxis.setAxisPosition("left"),d=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=d.width,n=d.width,this.componentStore.yAxis.setAxisPosition("top"),d=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=d.height,o=s+d.height,t>0&&(c+=t,t=0),i>0&&(p+=i,i=0),this.componentStore.plot.calculateSpace({width:c,height:p}),this.componentStore.plot.setBoundingBoxXY({x:n,y:o}),this.componentStore.yAxis.setRange([n,n+c]),this.componentStore.yAxis.setBoundingBoxXY({x:n,y:s}),this.componentStore.xAxis.setRange([o,o+p]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some(R=>mt(R))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}}class ci{static build(t,i,s,n){return new li(t,i,s,n).getDrawableElement()}}let X=0,Tt,Y=Pt(),H=Dt(),y=Lt(),at=H.plotColorPalette.split(",").map(e=>e.trim()),G=!1,rt=!1;function Dt(){const e=zt(),t=ot();return wt(e.xyChart,t.themeVariables.xyChart)}function Pt(){const e=ot();return wt(Ft.xyChart,e.xyChart)}function Lt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function ht(e){const t=ot();return Gt(e.trim(),t)}function ui(e){Tt=e}function gi(e){e==="horizontal"?Y.chartOrientation="horizontal":Y.chartOrientation="vertical"}function xi(e){y.xAxis.title=ht(e.text)}function Et(e,t){y.xAxis={type:"linear",title:y.xAxis.title,min:e,max:t},G=!0}function di(e){y.xAxis={type:"band",title:y.xAxis.title,categories:e.map(t=>ht(t.text))},G=!0}function pi(e){y.yAxis.title=ht(e.text)}function fi(e,t){y.yAxis={type:"linear",title:y.yAxis.title,min:e,max:t},rt=!0}function mi(e){const t=Math.min(...e),i=Math.max(...e),s=N(y.yAxis)?y.yAxis.min:1/0,n=N(y.yAxis)?y.yAxis.max:-1/0;y.yAxis={type:"linear",title:y.yAxis.title,min:Math.min(s,t),max:Math.max(n,i)}}function vt(e){let t=[];if(e.length===0)return t;if(!G){const i=N(y.xAxis)?y.xAxis.min:1/0,s=N(y.xAxis)?y.xAxis.max:-1/0;Et(Math.min(i,1),Math.max(s,e.length))}if(rt||mi(e),_t(y.xAxis)&&(t=y.xAxis.categories.map((i,s)=>[i,e[s]])),N(y.xAxis)){const i=y.xAxis.min,s=y.xAxis.max,n=(s-i+1)/e.length,o=[];for(let c=i;c<=s;c+=n)o.push(`${c}`);t=o.map((c,p)=>[c,e[p]])}return t}function Mt(e){return at[e===0?0:e%at.length]}function yi(e,t){const i=vt(t);y.plots.push({type:"line",strokeFill:Mt(X),strokeWidth:2,data:i}),X++}function bi(e,t){const i=vt(t);y.plots.push({type:"bar",fill:Mt(X),data:i}),X++}function Ai(){if(y.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return y.title=St(),ci.build(Y,y,H,Tt)}function wi(){return H}function Si(){return Y}const Ci=function(){Ut(),X=0,Y=Pt(),y=Lt(),H=Dt(),at=H.plotColorPalette.split(",").map(e=>e.trim()),G=!1,rt=!1},_i={getDrawableElem:Ai,clear:Ci,setAccTitle:Nt,getAccTitle:Xt,setDiagramTitle:Yt,getDiagramTitle:St,getAccDescription:Ht,setAccDescription:$t,setOrientation:gi,setXAxisTitle:xi,setXAxisRangeData:Et,setXAxisBand:di,setYAxisTitle:pi,setYAxisRangeData:fi,setLineData:yi,setBarData:bi,setTmpSVGG:ui,getChartThemeConfig:wi,getChartConfig:Si},ki=(e,t,i,s)=>{const n=s.db,o=n.getChartThemeConfig(),c=n.getChartConfig();function p(f){return f==="top"?"text-before-edge":"middle"}function d(f){return f==="left"?"start":f==="right"?"end":"middle"}function R(f){return`translate(${f.x}, ${f.y}) rotate(${f.rotation||0})`}Ct.debug(`Rendering xychart chart
`+e);const _=qt(t),A=_.append("g").attr("class","main"),m=A.append("rect").attr("width",c.width).attr("height",c.height).attr("class","background");jt(_,c.height,c.width,!0),_.attr("viewBox",`0 0 ${c.width} ${c.height}`),m.attr("fill",o.backgroundColor),n.setTmpSVGG(_.append("g").attr("class","mermaid-tmp-group"));const T=n.getDrawableElem(),S={};function P(f){let C=A,h="";for(const[L]of f.entries()){let z=A;L>0&&S[h]&&(z=S[h]),h+=f[L],C=S[h],C||(C=S[h]=z.append("g").attr("class",f[L]))}return C}for(const f of T){if(f.data.length===0)continue;const C=P(f.groupTexts);switch(f.type){case"rect":C.selectAll("rect").data(f.data).enter().append("rect").attr("x",h=>h.x).attr("y",h=>h.y).attr("width",h=>h.width).attr("height",h=>h.height).attr("fill",h=>h.fill).attr("stroke",h=>h.strokeFill).attr("stroke-width",h=>h.strokeWidth);break;case"text":C.selectAll("text").data(f.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",h=>h.fill).attr("font-size",h=>h.fontSize).attr("dominant-baseline",h=>p(h.verticalPos)).attr("text-anchor",h=>d(h.horizontalPos)).attr("transform",h=>R(h)).text(h=>h.text);break;case"path":C.selectAll("path").data(f.data).enter().append("path").attr("d",h=>h.path).attr("fill",h=>h.fill?h.fill:"none").attr("stroke",h=>h.strokeFill).attr("stroke-width",h=>h.strokeWidth);break}}},Ri={draw:ki},zi={parser:ti,db:_i,renderer:Ri};export{zi as diagram};
import{b6 as ft,E as gt,c as mt,l as E,h as G,t as xt,b7 as bt,b8 as _t,b9 as kt}from"./slidev/Mermaid-sWhOKcCj.js";import{d as D}from"./arc-5aa99581-BSv9xTON.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./path-39bad7e2-CbwjOpE9.js";var K=function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],o=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,l,$){var x=l.length-1;switch(u){case 1:return l[x-1];case 2:this.$=[];break;case 3:l[x-1].push(l[x]),this.$=l[x-1];break;case 4:case 5:this.$=l[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(l[x].substr(6)),this.$=l[x].substr(6);break;case 9:this.$=l[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=l[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(l[x].substr(8)),this.$=l[x].substr(8);break;case 15:d.addTask(l[x],0,""),this.$=l[x];break;case 16:d.addEvent(l[x].substr(2)),this.$=l[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],l=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=l.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(i,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;l.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var _,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=z()),S=$[L]&&$[L][_]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`:
`+k.showPosition()+`
Expecting `+j.join(", ")+", got '"+(this.terminals_[_]||_)+"'":J="Parse error on line "+(T+1)+": Unexpected "+(_==A?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(J,{text:k.match,token:this.terminals_[_]||_,line:k.yylineno,loc:I,expected:j})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+_);switch(S[0]){case 1:c.push(_),u.push(k.yytext),l.push(k.yylloc),c.push(S[1]),_=null,W=k.yyleng,x=k.yytext,T=k.yylineno,I=k.yylloc;break;case 2:if(N=this.productions_[S[1]][1],R.$=u[u.length-N],R._$={first_line:l[l.length-(N||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(N||1)].first_column,last_column:l[l.length-1].last_column},P&&(R._$.range=[l[l.length-(N||1)].range[0],l[l.length-1].range[1]]),Z=this.performAction.apply(R,[x,W,T,w.yy,S[1],u,l].concat(B)),typeof Z<"u")return Z;N&&(c=c.slice(0,-1*N*2),u=u.slice(0,-1*N),l=l.slice(0,-1*N)),c.push(this.productions_[S[1]][0]),u.push(R.$),l.push(R._$),Y=$[c[c.length-2]][c[c.length-1]],c.push(Y);break;case 3:return!0}}return!0}},b=function(){var g={EOF:1,parseError:function(r,c){if(this.yy.parser)this.yy.parser.parseError(r,c);else throw new Error(r)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+r+"^"},test_match:function(i,r){var c,d,u;if(this.options.backtrack_lexer&&(u={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(u.yylloc.range=this.yylloc.range.slice(0))),d=i[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],c=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var l in u)this[l]=u[l];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,r,c,d;this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),l=0;l<u.length;l++)if(c=this._input.match(this.rules[u[l]]),c&&(!r||c[0].length>r[0].length)){if(r=c,d=l,this.options.backtrack_lexer){if(i=this.test_match(c,u[l]),i!==!1)return i;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(i=this.test_match(r,u[d]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,c,d,u){switch(d){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return g}();f.lexer=b;function m(){this.yy={}}return m.prototype=f,f.Parser=m,new m}();K.parser=K;const vt=K;let F="",st=0;const Q=[],q=[],V=[],it=()=>ft,rt=function(){Q.length=0,q.length=0,F="",V.length=0,gt()},at=function(n){F=n,Q.push(n)},ot=function(){return Q},lt=function(){let n=tt();const t=100;let e=0;for(;!n&&e<t;)n=tt(),e++;return q.push(...V),q},ct=function(n,t,e){const a={id:st++,section:F,type:F,task:n,score:t||0,events:e?[e]:[]};V.push(a)},ht=function(n){V.find(e=>e.id===st-1).events.push(n)},dt=function(n){const t={section:F,type:F,description:n,task:n,classes:[]};q.push(t)},tt=function(){const n=function(e){return V[e].processed};let t=!0;for(const[e,a]of V.entries())n(e),t=t&&a.processed;return t},wt={clear:rt,getCommonDb:it,addSection:at,getSections:ot,getTasks:lt,addTask:ct,addTaskOrg:dt,addEvent:ht},St=Object.freeze(Object.defineProperty({__proto__:null,addEvent:ht,addSection:at,addTask:ct,addTaskOrg:dt,clear:rt,default:wt,getCommonDb:it,getSections:ot,getTasks:lt},Symbol.toStringTag,{value:"Module"})),Et=12,U=function(n,t){const e=n.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),t.class!==void 0&&e.attr("class",t.class),e},Tt=function(n,t){const a=n.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=n.append("g");s.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(y){const f=D().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",f).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}function o(y){const f=D().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",f).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}function p(y){y.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return t.score>3?h(s):t.score<3?o(s):p(s),a},It=function(n,t){const e=n.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),e.class!==void 0&&e.attr("class",e.class),t.title!==void 0&&e.append("title").text(t.title),e},ut=function(n,t){const e=t.text.replace(/<br\s*\/?>/gi," "),a=n.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),a},$t=function(n,t){function e(s,h,o,p,y){return s+","+h+" "+(s+o)+","+h+" "+(s+o)+","+(h+p-y)+" "+(s+o-y*1.2)+","+(h+p)+" "+s+","+(h+p)}const a=n.append("polygon");a.attr("points",e(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,ut(n,t)},Nt=function(n,t,e){const a=n.append("g"),s=X();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=e.width,s.height=e.height,s.class="journey-section section-type-"+t.num,s.rx=3,s.ry=3,U(a,s),pt(e)(t.text,a,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+t.num},e,t.colour)};let et=-1;const Mt=function(n,t,e){const a=t.x+e.width/2,s=n.append("g");et++;const h=300+5*30;s.append("line").attr("id","task"+et).attr("x1",a).attr("y1",t.y).attr("x2",a).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Tt(s,{cx:a,cy:300+(5-t.score)*30,score:t.score});const o=X();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=e.width,o.height=e.height,o.class="task task-type-"+t.num,o.rx=3,o.ry=3,U(s,o),t.x+14,pt(e)(t.task,s,o.x,o.y,o.width,o.height,{class:"task"},e,t.colour)},Lt=function(n,t){U(n,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},At=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},X=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},pt=function(){function n(s,h,o,p,y,f,b,m){const g=h.append("text").attr("x",o+y/2).attr("y",p+f/2+5).style("font-color",m).style("text-anchor","middle").text(s);a(g,b)}function t(s,h,o,p,y,f,b,m,g){const{taskFontSize:i,taskFontFamily:r}=m,c=s.split(/<br\s*\/?>/gi);for(let d=0;d<c.length;d++){const u=d*i-i*(c.length-1)/2,l=h.append("text").attr("x",o+y/2).attr("y",p).attr("fill",g).style("text-anchor","middle").style("font-size",i).style("font-family",r);l.append("tspan").attr("x",o+y/2).attr("dy",u).text(c[d]),l.attr("y",p+f/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(l,b)}}function e(s,h,o,p,y,f,b,m){const g=h.append("switch"),r=g.append("foreignObject").attr("x",o).attr("y",p).attr("width",y).attr("height",f).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");r.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),t(s,g,o,p,y,f,b,m),a(r,b)}function a(s,h){for(const o in h)o in h&&s.attr(o,h[o])}return function(s){return s.textPlacement==="fo"?e:s.textPlacement==="old"?n:t}}(),Pt=function(n){n.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")};function yt(n,t){n.each(function(){var e=G(this),a=e.text().split(/(\s+|<br>)/).reverse(),s,h=[],o=1.1,p=e.attr("y"),y=parseFloat(e.attr("dy")),f=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("dy",y+"em");for(let b=0;b<a.length;b++)s=a[a.length-1-b],h.push(s),f.text(h.join(" ").trim()),(f.node().getComputedTextLength()>t||s==="<br>")&&(h.pop(),f.text(h.join(" ").trim()),s==="<br>"?h=[""]:h=[s],f=e.append("tspan").attr("x",0).attr("y",p).attr("dy",o+"em").text(s))})}const Ht=function(n,t,e,a){const s=e%Et-1,h=n.append("g");t.section=s,h.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+s));const o=h.append("g"),p=h.append("g"),f=p.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(yt,t.width).node().getBBox(),b=a.fontSize&&a.fontSize.replace?a.fontSize.replace("px",""):a.fontSize;return t.height=f.height+b*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,p.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),zt(o,t,s),t},Ct=function(n,t,e){const a=n.append("g"),h=a.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(yt,t.width).node().getBBox(),o=e.fontSize&&e.fontSize.replace?e.fontSize.replace("px",""):e.fontSize;return a.remove(),h.height+o*1.1*.5+t.padding},zt=function(n,t,e){n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+2*5} q0,-5 5,-5 h${t.width-2*5} q5,0 5,5 v${t.height-5} H0 Z`),n.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},H={drawRect:U,drawCircle:It,drawSection:Nt,drawText:ut,drawLabel:$t,drawTask:Mt,drawBackgroundRect:Lt,getTextObj:At,getNoteRect:X,initGraphics:Pt,drawNode:Ht,getVirtualNodeHeight:Ct},Rt=function(n,t,e,a){var s,h;const o=mt(),p=o.leftMargin??50;E.debug("timeline",a.db);const y=o.securityLevel;let f;y==="sandbox"&&(f=G("#i"+t));const m=(y==="sandbox"?G(f.nodes()[0].contentDocument.body):G("body")).select("#"+t);m.append("g");const g=a.db.getTasks(),i=a.db.getCommonDb().getDiagramTitle();E.debug("task",g),H.initGraphics(m);const r=a.db.getSections();E.debug("sections",r);let c=0,d=0,u=0,l=0,$=50+p,x=50;l=50;let T=0,W=!0;r.forEach(function(w){const v={number:T,descr:w,section:T,width:150,padding:20,maxHeight:c},I=H.getVirtualNodeHeight(m,v,o);E.debug("sectionHeight before draw",I),c=Math.max(c,I+20)});let C=0,A=0;E.debug("tasks.length",g.length);for(const[w,v]of g.entries()){const I={number:w,descr:v,section:v.section,width:150,padding:20,maxHeight:d},P=H.getVirtualNodeHeight(m,I,o);E.debug("taskHeight before draw",P),d=Math.max(d,P+20),C=Math.max(C,v.events.length);let z=0;for(let _=0;_<v.events.length;_++){const S={descr:v.events[_],section:v.section,number:v.section,width:150,padding:20,maxHeight:50};z+=H.getVirtualNodeHeight(m,S,o)}A=Math.max(A,z)}E.debug("maxSectionHeight before draw",c),E.debug("maxTaskHeight before draw",d),r&&r.length>0?r.forEach(w=>{const v=g.filter(_=>_.section===w),I={number:T,descr:w,section:T,width:200*Math.max(v.length,1)-50,padding:20,maxHeight:c};E.debug("sectionNode",I);const P=m.append("g"),z=H.drawNode(P,I,T,o);E.debug("sectionNode output",z),P.attr("transform",`translate(${$}, ${l})`),x+=c+50,v.length>0&&nt(m,v,T,$,x,d,o,C,A,c,!1),$+=200*Math.max(v.length,1),x=l,T++}):(W=!1,nt(m,g,T,$,x,d,o,C,A,c,!0));const B=m.node().getBBox();E.debug("bounds",B),i&&m.append("text").text(i).attr("x",B.width/2-p).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),u=W?c+d+150:d+100,m.append("g").attr("class","lineWrapper").append("line").attr("x1",p).attr("y1",u).attr("x2",B.width+3*p).attr("y2",u).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),xt(void 0,m,((s=o.timeline)==null?void 0:s.padding)??50,((h=o.timeline)==null?void 0:h.useMaxWidth)??!1)},nt=function(n,t,e,a,s,h,o,p,y,f,b){var m;for(const g of t){const i={descr:g.task,section:e,number:e,width:150,padding:20,maxHeight:h};E.debug("taskNode",i);const r=n.append("g").attr("class","taskWrapper"),d=H.drawNode(r,i,e,o).height;if(E.debug("taskHeight after draw",d),r.attr("transform",`translate(${a}, ${s})`),h=Math.max(h,d),g.events){const u=n.append("g").attr("class","lineWrapper");let l=h;s+=100,l=l+Ft(n,g.events,e,a,s,o),s-=100,u.append("line").attr("x1",a+190/2).attr("y1",s+h).attr("x2",a+190/2).attr("y2",s+h+(b?h:f)+y+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}a=a+200,b&&!((m=o.timeline)!=null&&m.disableMulticolor)&&e++}s=s-10},Ft=function(n,t,e,a,s,h){let o=0;const p=s;s=s+100;for(const y of t){const f={descr:y,section:e,number:e,width:150,padding:20,maxHeight:50};E.debug("eventNode",f);const b=n.append("g").attr("class","eventWrapper"),g=H.drawNode(b,f,e,h).height;o=o+g,b.attr("transform",`translate(${a}, ${s})`),s=s+10+g}return s=p,o},Vt={setConf:()=>{},draw:Rt},Wt=n=>{let t="";for(let e=0;e<n.THEME_COLOR_LIMIT;e++)n["lineColor"+e]=n["lineColor"+e]||n["cScaleInv"+e],bt(n["lineColor"+e])?n["lineColor"+e]=_t(n["lineColor"+e],20):n["lineColor"+e]=kt(n["lineColor"+e],20);for(let e=0;e<n.THEME_COLOR_LIMIT;e++){const a=""+(17-3*e);t+=`
.section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} path {
fill: ${n["cScale"+e]};
}
.section-${e-1} text {
fill: ${n["cScaleLabel"+e]};
}
.node-icon-${e-1} {
font-size: 40px;
color: ${n["cScaleLabel"+e]};
}
.section-edge-${e-1}{
stroke: ${n["cScale"+e]};
}
.edge-depth-${e-1}{
stroke-width: ${a};
}
.section-${e-1} line {
stroke: ${n["cScaleInv"+e]} ;
stroke-width: 3;
}
.lineWrapper line{
stroke: ${n["cScaleLabel"+e]} ;
}
.disabled, .disabled circle, .disabled text {
fill: lightgray;
}
.disabled text {
fill: #efefef;
}
`}return t},Bt=n=>`
.edge {
stroke-width: 3;
}
${Wt(n)}
.section-root rect, .section-root path, .section-root circle {
fill: ${n.git0};
}
.section-root text {
fill: ${n.gitBranchLabel0};
}
.icon-container {
height:100%;
display: flex;
justify-content: center;
align-items: center;
}
.edge {
fill: none;
}
.eventWrapper {
filter: brightness(120%);
}
`,Ot=Bt,Qt={db:St,renderer:Vt,parser:vt,styles:Ot};export{Qt as diagram};
import{m as i,ar as o}from"./slidev/Mermaid-sWhOKcCj.js";const l=(s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx!==void 0&&e.attr("rx",t.rx),t.ry!==void 0&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class!==void 0&&e.attr("class",t.class),e},x=(s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(s,e).lower()},d=(s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},h=(s,t,e,r)=>{const n=s.append("image");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",a)},y=(s,t,e,r)=>{const n=s.append("use");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),m=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,y as b,h as c,l as d,m as e,d as f,g};
import{s as ut,g as rt,a as at,b as lt,c as F,C as ct,D as ot,j as v,E as ht,l as At,v as We,h as z,d as pt,G as Re}from"./slidev/Mermaid-sWhOKcCj.js";var Ve=function(){var e=function(x,u,a,h){for(a=a||{},h=x.length;h--;a[x[h]]=u);return a},i=[1,17],r=[1,18],l=[1,19],o=[1,39],A=[1,40],g=[1,25],D=[1,23],B=[1,24],_=[1,31],fe=[1,32],de=[1,33],Ee=[1,34],Ce=[1,35],me=[1,36],be=[1,26],ge=[1,27],ke=[1,28],Te=[1,29],d=[1,43],Fe=[1,30],E=[1,42],C=[1,44],m=[1,41],k=[1,45],ye=[1,9],c=[1,8,9],Y=[1,56],j=[1,57],Q=[1,58],X=[1,59],H=[1,60],De=[1,61],Be=[1,62],W=[1,8,9,39],Ge=[1,74],M=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],q=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],J=[13,74,80,95,97,98],G=[13,64,65,74,80,95,97,98],Ue=[13,59,60,61,62,63,74,80,95,97,98],_e=[1,93],Z=[1,110],$=[1,108],ee=[1,102],te=[1,103],se=[1,104],ie=[1,105],ne=[1,106],ue=[1,107],re=[1,109],Se=[1,8,9,37,39,42],ae=[1,8,9,21],ze=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],Ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,f,t,U){var s=t.length-1;switch(f){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ye,[2,5],{8:[1,46]}),{8:[1,47]},e(c,[2,16],{21:[1,48]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),e(c,[2,26]),{32:[1,49]},{34:[1,50]},e(c,[2,29]),e(c,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be}),{37:[1,63]},e(W,[2,36],{37:[1,65],42:[1,64]}),e(c,[2,47]),e(c,[2,48]),{16:66,74:d,80:E,95:C,97:m},{16:37,17:67,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:68,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:69,18:38,74:d,80:E,95:C,97:m,98:k},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:E,95:C,97:m,98:k},{13:Ge,51:73},e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(c,[2,58]),e(M,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:E,95:C,97:m,98:k}),e(M,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:E,95:C,97:m},{16:37,17:80,18:38,74:d,80:E,95:C,97:m,98:k},e(q,[2,112]),e(q,[2,113]),e(q,[2,114]),e(q,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ye,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:l,40:o,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},e(c,[2,17]),e(c,[2,27]),e(c,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:E,95:C,97:m,98:k},{49:85,57:54,58:55,59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be},e(c,[2,46]),{58:86,64:De,65:Be},e(J,[2,62],{57:87,59:Y,60:j,61:Q,62:X,63:H}),e(G,[2,63]),e(G,[2,64]),e(G,[2,65]),e(G,[2,66]),e(G,[2,67]),e(Ue,[2,68]),e(Ue,[2,69]),{8:[1,89],23:90,38:88,41:22,44:A},{16:91,74:d,80:E,95:C,97:m},{43:92,47:_e},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Z,73:$,74:ee,75:99,77:100,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},{74:[1,111]},{13:Ge,51:112},e(c,[2,54]),e(c,[2,117]),e(M,[2,13]),e(M,[2,14]),e(M,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:E,95:C,97:m},e(Se,[2,40],{11:114,12:[1,115]}),e(ye,[2,7]),{9:[1,116]},e(ae,[2,49]),{16:37,17:117,18:38,74:d,80:E,95:C,97:m,98:k},{13:[1,119],16:37,17:118,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,61],{57:120,59:Y,60:j,61:Q,62:X,63:H}),e(J,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:A},{8:[1,123],39:[2,33]},e(W,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:_e},{16:37,17:127,18:38,74:d,80:E,95:C,97:m,98:k},e(c,[2,70],{13:[1,128]}),e(c,[2,72],{13:[1,130],68:[1,129]}),e(c,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(c,[2,84],{78:[1,134]}),e(ze,[2,86],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(c,[2,85]),e(c,[2,53]),{37:[2,10]},e(Se,[2,41]),{13:[1,136]},{1:[2,4]},e(ae,[2,51]),e(ae,[2,50]),{16:37,17:137,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,59]),e(c,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:A},{43:140,47:_e},e(W,[2,38]),{39:[2,44]},e(c,[2,42]),e(c,[2,71]),e(c,[2,73]),e(c,[2,74],{68:[1,141]}),e(c,[2,77]),e(c,[2,78],{13:[1,142]}),e(c,[2,80],{13:[1,144],68:[1,143]}),{21:Z,73:$,74:ee,77:145,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},e(S,[2,89]),{14:[1,146]},e(ae,[2,52]),e(c,[2,31]),{39:[2,35]},{39:[1,147]},e(c,[2,75]),e(c,[2,79]),e(c,[2,81]),e(c,[2,82],{68:[1,148]}),e(ze,[2,87],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(Se,[2,8]),e(W,[2,39]),e(c,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var h=new Error(u);throw h.hash=a,h}},parse:function(u){var a=this,h=[0],n=[],f=[null],t=[],U=this.table,s="",le=0,Ke=0,tt=2,Ye=1,st=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(I.yy[ve]=this.yy[ve]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var xe=b.yylloc;t.push(xe);var it=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var L;return L=n.pop()||b.lex()||Ye,typeof L!="number"&&(L instanceof Array&&(n=L,L=n.pop()),L=a.symbols_[L]||L),L}for(var T,R,y,Oe,P={},ce,N,je,oe;;){if(R=h[h.length-1],this.defaultActions[R]?y=this.defaultActions[R]:((T===null||typeof T>"u")&&(T=nt()),y=U[R]&&U[R][T]),typeof y>"u"||!y.length||!y[0]){var Ie="";oe=[];for(ce in U[R])this.terminals_[ce]&&ce>tt&&oe.push("'"+this.terminals_[ce]+"'");b.showPosition?Ie="Parse error on line "+(le+1)+`:
`+b.showPosition()+`
Expecting `+oe.join(", ")+", got '"+(this.terminals_[T]||T)+"'":Ie="Parse error on line "+(le+1)+": Unexpected "+(T==Ye?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(Ie,{text:b.match,token:this.terminals_[T]||T,line:b.yylineno,loc:xe,expected:oe})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+T);switch(y[0]){case 1:h.push(T),f.push(b.yytext),t.push(b.yylloc),h.push(y[1]),T=null,Ke=b.yyleng,s=b.yytext,le=b.yylineno,xe=b.yylloc;break;case 2:if(N=this.productions_[y[1]][1],P.$=f[f.length-N],P._$={first_line:t[t.length-(N||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(N||1)].first_column,last_column:t[t.length-1].last_column},it&&(P._$.range=[t[t.length-(N||1)].range[0],t[t.length-1].range[1]]),Oe=this.performAction.apply(P,[s,Ke,le,I.yy,y[1],f,t].concat(st)),typeof Oe<"u")return Oe;N&&(h=h.slice(0,-1*N*2),f=f.slice(0,-1*N),t=t.slice(0,-1*N)),h.push(this.productions_[y[1]][0]),f.push(P.$),t.push(P._$),je=U[h[h.length-2]][h[h.length-1]],h.push(je);break;case 3:return!0}}return!0}},et=function(){var x={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput:function(u,a){return this.yy=a||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var a=u.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var a=u.length,h=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===n.length?this.yylloc.first_column:0)+n[n.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),a=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
`+a+"^"},test_match:function(u,a){var h,n,f;if(this.options.backtrack_lexer&&(f={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(f.yylloc.range=this.yylloc.range.slice(0))),n=u[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(u[0].length),this.matched+=u[0],h=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;if(this._backtrack){for(var t in f)this[t]=f[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,a,h,n;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),t=0;t<f.length;t++)if(h=this._input.match(this.rules[f[t]]),h&&(!a||h[0].length>a[0].length)){if(a=h,n=t,this.options.backtrack_lexer){if(u=this.test_match(h,f[t]),u!==!1)return u;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(u=this.test_match(a,f[n]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(a,h,n,f){switch(n){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:break;case 5:break;case 6:return this.begin("acc_title"),31;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),33;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 70;case 22:this.popState();break;case 23:return 71;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 73;case 28:return this.begin("namespace"),40;case 29:return this.popState(),8;case 30:break;case 31:return this.begin("namespace-body"),37;case 32:return this.popState(),39;case 33:return"EOF_IN_STRUCT";case 34:return 8;case 35:break;case 36:return"EDGE_STATE";case 37:return this.begin("class"),44;case 38:return this.popState(),8;case 39:break;case 40:return this.popState(),this.popState(),39;case 41:return this.begin("class-body"),37;case 42:return this.popState(),39;case 43:return"EOF_IN_STRUCT";case 44:return"EDGE_STATE";case 45:return"OPEN_IN_STRUCT";case 46:break;case 47:return"MEMBER";case 48:return 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;case 57:this.popState();break;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 60:this.popState();break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:return 68;case 64:return 68;case 65:return 68;case 66:return 68;case 67:return 60;case 68:return 60;case 69:return 62;case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return"DOT";case 80:return"PLUS";case 81:return 81;case 82:return 78;case 83:return 84;case 84:return 84;case 85:return 85;case 86:return"EQUALS";case 87:return"EQUALS";case 88:return 74;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 80;case 93:return 97;case 94:return 83;case 95:return 83;case 96:return 9}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,32,33,34,35,36,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},namespace:{rules:[26,28,29,30,31,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},"class-body":{rules:[26,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},class:{rules:[26,38,39,40,41,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr:{rules:[9,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_title:{rules:[7,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_args:{rules:[22,23,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_name:{rules:[19,20,21,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},href:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},struct:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},generic:{rules:[26,48,49,50,51,52,53,54,55,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},bqstring:{rules:[26,48,49,50,51,52,53,54,55,56,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},string:{rules:[24,25,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],inclusive:!0}}};return x}();Ne.lexer=et;function Le(){this.yy={}}return Le.prototype=Ne,Ne.Parser=Le,new Le}();Ve.parser=Ve;const zt=Ve,Qe=["#","+","~","-",""];class Xe{constructor(i,r){this.memberType=r,this.visibility="",this.classifier="";const l=pt(i,F());this.parseMember(l)}getDisplayDetails(){let i=this.visibility+Re(this.id);this.memberType==="method"&&(i+=`(${Re(this.parameters.trim())})`,this.returnType&&(i+=" : "+Re(this.returnType))),i=i.trim();const r=this.parseClassifier();return{displayText:i,cssStyle:r}}parseMember(i){let r="";if(this.memberType==="method"){const l=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/,o=i.match(l);if(o){const A=o[1]?o[1].trim():"";if(Qe.includes(A)&&(this.visibility=A),this.id=o[2].trim(),this.parameters=o[3]?o[3].trim():"",r=o[4]?o[4].trim():"",this.returnType=o[5]?o[5].trim():"",r===""){const g=this.returnType.substring(this.returnType.length-1);g.match(/[$*]/)&&(r=g,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const l=i.length,o=i.substring(0,1),A=i.substring(l-1);Qe.includes(o)&&(this.visibility=o),A.match(/[$*]/)&&(r=A),this.id=i.substring(this.visibility===""?0:1,r===""?l:l-1)}this.classifier=r}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}const pe="classId-";let Pe=[],p={},he=[],He=0,O={},we=0,K=[];const V=e=>v.sanitizeText(e,F()),w=function(e){const i=v.sanitizeText(e,F());let r="",l=i;if(i.indexOf("~")>0){const o=i.split("~");l=V(o[0]),r=V(o[1])}return{className:l,type:r}},ft=function(e,i){const r=v.sanitizeText(e,F());i&&(i=V(i));const{className:l}=w(r);p[l].label=i},Ae=function(e){const i=v.sanitizeText(e,F()),{className:r,type:l}=w(i);if(Object.hasOwn(p,r))return;const o=v.sanitizeText(r,F());p[o]={id:o,type:l,label:o,cssClasses:[],methods:[],members:[],annotations:[],styles:[],domId:pe+o+"-"+He},He++},qe=function(e){const i=v.sanitizeText(e,F());if(i in p)return p[i].domId;throw new Error("Class not found: "+i)},dt=function(){Pe=[],p={},he=[],K=[],K.push(Ze),O={},we=0,ht()},Et=function(e){return p[e]},Ct=function(){return p},mt=function(){return Pe},bt=function(){return he},gt=function(e){At.debug("Adding relation: "+JSON.stringify(e)),Ae(e.id1),Ae(e.id2),e.id1=w(e.id1).className,e.id2=w(e.id2).className,e.relationTitle1=v.sanitizeText(e.relationTitle1.trim(),F()),e.relationTitle2=v.sanitizeText(e.relationTitle2.trim(),F()),Pe.push(e)},kt=function(e,i){const r=w(e).className;p[r].annotations.push(i)},Je=function(e,i){Ae(e);const r=w(e).className,l=p[r];if(typeof i=="string"){const o=i.trim();o.startsWith("<<")&&o.endsWith(">>")?l.annotations.push(V(o.substring(2,o.length-2))):o.indexOf(")")>0?l.methods.push(new Xe(o,"method")):o&&l.members.push(new Xe(o,"attribute"))}},Tt=function(e,i){Array.isArray(i)&&(i.reverse(),i.forEach(r=>Je(e,r)))},Ft=function(e,i){const r={id:`note${he.length}`,class:i,text:e};he.push(r)},yt=function(e){return e.startsWith(":")&&(e=e.substring(1)),V(e.trim())},Me=function(e,i){e.split(",").forEach(function(r){let l=r;r[0].match(/\d/)&&(l=pe+l),p[l]!==void 0&&p[l].cssClasses.push(i)})},Dt=function(e,i){e.split(",").forEach(function(r){i!==void 0&&(p[r].tooltip=V(i))})},Bt=function(e,i){return i?O[i].classes[e].tooltip:p[e].tooltip},_t=function(e,i,r){const l=F();e.split(",").forEach(function(o){let A=o;o[0].match(/\d/)&&(A=pe+A),p[A]!==void 0&&(p[A].link=We.formatUrl(i,l),l.securityLevel==="sandbox"?p[A].linkTarget="_top":typeof r=="string"?p[A].linkTarget=V(r):p[A].linkTarget="_blank")}),Me(e,"clickable")},St=function(e,i,r){e.split(",").forEach(function(l){Nt(l,i,r),p[l].haveCallback=!0}),Me(e,"clickable")},Nt=function(e,i,r){const l=v.sanitizeText(e,F());if(F().securityLevel!=="loose"||i===void 0)return;const A=l;if(p[A]!==void 0){const g=qe(A);let D=[];if(typeof r=="string"){D=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let B=0;B<D.length;B++){let _=D[B].trim();_.charAt(0)==='"'&&_.charAt(_.length-1)==='"'&&(_=_.substr(1,_.length-2)),D[B]=_}}D.length===0&&D.push(g),K.push(function(){const B=document.querySelector(`[id="${g}"]`);B!==null&&B.addEventListener("click",function(){We.runFunc(i,...D)},!1)})}},Lt=function(e){K.forEach(function(i){i(e)})},vt={LINE:0,DOTTED_LINE:1},xt={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},Ze=function(e){let i=z(".mermaidTooltip");(i._groups||i)[0][0]===null&&(i=z("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),z(e).select("svg").selectAll("g.node").on("mouseover",function(){const o=z(this);if(o.attr("title")===null)return;const g=this.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(o.attr("title")).style("left",window.scrollX+g.left+(g.right-g.left)/2+"px").style("top",window.scrollY+g.top-14+document.body.scrollTop+"px"),i.html(i.html().replace(/<br\/>/g,"<br/>")),o.classed("hover",!0)}).on("mouseout",function(){i.transition().duration(500).style("opacity",0),z(this).classed("hover",!1)})};K.push(Ze);let $e="TB";const Ot=()=>$e,It=e=>{$e=e},Rt=function(e){O[e]===void 0&&(O[e]={id:e,classes:{},children:{},domId:pe+e+"-"+we},we++)},Vt=function(e){return O[e]},wt=function(){return O},Pt=function(e,i){if(O[e]!==void 0)for(const r of i){const{className:l}=w(r);p[l].parent=e,O[e].classes[l]=p[l]}},Mt=function(e,i){const r=p[e];if(!(!i||!r))for(const l of i)l.includes(",")?r.styles.push(...l.split(",")):r.styles.push(l)},Kt={setAccTitle:ut,getAccTitle:rt,getAccDescription:at,setAccDescription:lt,getConfig:()=>F().class,addClass:Ae,bindFunctions:Lt,clear:dt,getClass:Et,getClasses:Ct,getNotes:bt,addAnnotation:kt,addNote:Ft,getRelations:mt,addRelation:gt,getDirection:Ot,setDirection:It,addMember:Je,addMembers:Tt,cleanupLabel:yt,lineType:vt,relationType:xt,setClickEvent:St,setCssClass:Me,setLink:_t,getTooltip:Bt,setTooltip:Dt,lookUpDomId:qe,setDiagramTitle:ct,getDiagramTitle:ot,setClassLabel:ft,addNamespace:Rt,addClassesToNamespace:Pt,getNamespace:Vt,getNamespaces:wt,setCssStyle:Mt},Gt=e=>`g.classGroup text {
fill: ${e.nodeBorder||e.classText};
stroke: none;
font-family: ${e.fontFamily};
font-size: 10px;
.title {
font-weight: bolder;
}
}
.nodeLabel, .edgeLabel {
color: ${e.classText};
}
.edgeLabel .label rect {
fill: ${e.mainBkg};
}
.label text {
fill: ${e.classText};
}
.edgeLabel .label span {
background: ${e.mainBkg};
}
.classTitle {
font-weight: bolder;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${e.mainBkg};
stroke: ${e.nodeBorder};
stroke-width: 1px;
}
.divider {
stroke: ${e.nodeBorder};
stroke-width: 1;
}
g.clickable {
cursor: pointer;
}
g.classGroup rect {
fill: ${e.mainBkg};
stroke: ${e.nodeBorder};
}
g.classGroup line {
stroke: ${e.nodeBorder};
stroke-width: 1;
}
.classLabel .box {
stroke: none;
stroke-width: 0;
fill: ${e.mainBkg};
opacity: 0.5;
}
.classLabel .label {
fill: ${e.nodeBorder};
font-size: 10px;
}
.relation {
stroke: ${e.lineColor};
stroke-width: 1;
fill: none;
}
.dashed-line{
stroke-dasharray: 3;
}
.dotted-line{
stroke-dasharray: 1 2;
}
#compositionStart, .composition {
fill: ${e.lineColor} !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
#compositionEnd, .composition {
fill: ${e.lineColor} !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: ${e.lineColor} !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: ${e.lineColor} !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
#extensionStart, .extension {
fill: transparent !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
#extensionEnd, .extension {
fill: transparent !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
#aggregationStart, .aggregation {
fill: transparent !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
#aggregationEnd, .aggregation {
fill: transparent !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
#lollipopStart, .lollipop {
fill: ${e.mainBkg} !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
#lollipopEnd, .lollipop {
fill: ${e.mainBkg} !important;
stroke: ${e.lineColor} !important;
stroke-width: 1;
}
.edgeTerminals {
font-size: 11px;
line-height: initial;
}
.classTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${e.textColor};
}
`,Yt=Gt;export{Kt as d,zt as p,Yt as s};
import{G as R}from"./graph-af3d5df6-B9Rrt_D8.js";import{n as N,l as g,o as F,c as S,j as G,r as q,p as E,q as L,h as $,v as j,t as U,S as z,x as H,y as K,z as W,A as X,B as J}from"./slidev/Mermaid-sWhOKcCj.js";import{r as Q}from"./index-c8395ba2-BeB0hvAS.js";import{c as Y}from"./channel-d3ac35ac-BF6w4Boq.js";function Z(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([K(e)],H)}function pe(e,l){return!!e.children(l).length}function be(e){return A(e.v)+":"+A(e.w)+":"+A(e.name)}var O=/:/g;function A(e){return e?String(e).replace(O,"\\:"):""}function ee(e,l){l&&e.attr("style",l)}function fe(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function ue(e,l){var c=l.graph();if(X(c)){var a=c.transition;if(J(a))return a(e)}return e}function te(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}ee(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const P={},re=function(e){const l=Object.keys(e);for(const c of l)P[c]=e[c]},V=async function(e,l,c,a,i,d){const u=a.select(`[id="${c}"]`),n=Object.keys(e);for(const p of n){const r=e[p];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const w=N(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(F(S().flowchart.htmlLabels))s=te(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",w.labelStyle.replace("color:","fill:"));const _=t.split(G.lineBreakRegex);for(const C of _){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=C,k.appendChild(v)}s=k}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}const T=await q(t,S());l.setNode(r.id,{labelStyle:w.labelStyle,shape:o,labelText:T,labelType:r.labelType,rx:b,ry:b,class:y,style:w.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:S().flowchart.padding}),g.info("setNode",{labelStyle:w.labelStyle,labelType:r.labelType,shape:o,labelText:T,rx:b,ry:b,class:y,style:w.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:S().flowchart.padding})}},M=async function(e,l,c){g.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=N(e.defaultStyle);d=n.style,u=n.labelStyle}for(const n of e){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,g.info("abc78 new entry",p,i[p])):(i[p]++,g.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];g.info("abc78 new link id to be used is",p,r,i[p]);const y="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=N(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=E(n.interpolate,L):e.defaultInterpolate!==void 0?t.curve=E(e.defaultInterpolate,L):t.curve=E(P.curve,L),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await q(n.text.replace(G.lineBreakRegex,`
`),S()),n.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=r,t.classes="flowchart-link "+y+" "+w,l.setEdge(n.start,n.end,t,a)}},le=function(e,l){return l.db.getClasses()},ae=async function(e,l,c,a){g.info("Drawing flowchart");let i=a.db.getDirection();i===void 0&&(i="TD");const{securityLevel:d,flowchart:u}=S(),n=u.nodeSpacing||50,p=u.rankSpacing||50;let r;d==="sandbox"&&(r=$("#i"+l));const y=d==="sandbox"?$(r.nodes()[0].contentDocument.body):$("body"),w=d==="sandbox"?r.nodes()[0].contentDocument:document,t=new R({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:n,ranksep:p,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let s;const b=a.db.getSubGraphs();g.info("Subgraphs - ",b);for(let f=b.length-1;f>=0;f--)s=b[f],g.info("Subgraph - ",s),a.db.addVertex(s.id,{text:s.title,type:s.labelType},"group",void 0,s.classes,s.dir);const o=a.db.getVertices(),T=a.db.getEdges();g.info("Edges",T);let k=0;for(k=b.length-1;k>=0;k--){s=b[k],Z("cluster").append("text");for(let f=0;f<s.nodes.length;f++)g.info("Setting up subgraphs",s.nodes[f],s.id),t.setParent(s.nodes[f],s.id)}await V(o,t,l,y,w,a),await M(T,t);const _=y.select(`[id="${l}"]`),C=y.select("#"+l+" g");if(await Q(C,t,["point","circle","cross"],"flowchart",l),j.insertTitle(_,"flowchartTitleText",u.titleTopMargin,a.db.getDiagramTitle()),U(t,_,u.diagramPadding,u.useMaxWidth),a.db.indexNodes("subGraph"+k),!u.htmlLabels){const f=w.querySelectorAll('[id="'+l+'"] .edgeLabel .label');for(const x of f){const m=x.getBBox(),h=w.createElementNS("http://www.w3.org/2000/svg","rect");h.setAttribute("rx",0),h.setAttribute("ry",0),h.setAttribute("width",m.width),h.setAttribute("height",m.height),x.insertBefore(h,x.firstChild)}}Object.keys(o).forEach(function(f){const x=o[f];if(x.link){const m=$("#"+l+' [id="'+f+'"]');if(m){const h=w.createElementNS("http://www.w3.org/2000/svg","a");h.setAttributeNS("http://www.w3.org/2000/svg","class",x.classes.join(" ")),h.setAttributeNS("http://www.w3.org/2000/svg","href",x.link),h.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),d==="sandbox"?h.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):x.linkTarget&&h.setAttributeNS("http://www.w3.org/2000/svg","target",x.linkTarget);const B=m.insert(function(){return h},":first-child"),I=m.select(".label-container");I&&B.append(function(){return I.node()});const D=m.select(".label");D&&B.append(function(){return D.node()})}}})},we={setConf:re,addVertices:V,addEdges:M,getClasses:le,draw:ae},oe=(e,l)=>{const c=Y,a=c(e,"r"),i=c(e,"g"),d=c(e,"b");return W(a,i,d,l)},ne=e=>`.label {
font-family: ${e.fontFamily};
color: ${e.nodeTextColor||e.textColor};
}
.cluster-label text {
fill: ${e.titleColor};
}
.cluster-label span,p {
color: ${e.titleColor};
}
.label text,span,p {
fill: ${e.nodeTextColor||e.textColor};
color: ${e.nodeTextColor||e.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${e.mainBkg};
stroke: ${e.nodeBorder};
stroke-width: 1px;
}
.flowchart-label text {
text-anchor: middle;
}
// .flowchart-label .text-outer-tspan {
// text-anchor: middle;
// }
// .flowchart-label .text-inner-tspan {
// text-anchor: start;
// }
.node .katex path {
fill: #000;
stroke: #000;
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${e.arrowheadColor};
}
.edgePath .path {
stroke: ${e.lineColor};
stroke-width: 2.0px;
}
.flowchart-link {
stroke: ${e.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${e.edgeLabelBackground};
rect {
opacity: 0.5;
background-color: ${e.edgeLabelBackground};
fill: ${e.edgeLabelBackground};
}
text-align: center;
}
/* For html labels only */
.labelBkg {
background-color: ${oe(e.edgeLabelBackground,.5)};
// background-color:
}
.cluster rect {
fill: ${e.clusterBkg};
stroke: ${e.clusterBorder};
stroke-width: 1px;
}
.cluster text {
fill: ${e.titleColor};
}
.cluster span,p {
color: ${e.titleColor};
}
/* .cluster div {
color: ${e.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${e.fontFamily};
font-size: 12px;
background: ${e.tertiaryColor};
border: 1px solid ${e.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${e.textColor};
}
`,he=ne;export{he as a,te as b,ee as c,ue as d,be as e,we as f,fe as g,pe as i,Z as s};
import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,C as Xt,D as Kt,l as D,j as ot,E as Wt,a8 as Jt}from"./slidev/Mermaid-sWhOKcCj.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],j=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var v=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");v=st[0],O=[O,st[1]]}this.$={stmt:"state",id:v,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",v=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),A={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(A.yy[dt]=this.yy[dt]);S.setInput(r,A.yy),A.yy.lexer=S,A.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=jt()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(v+1)+`:
`+S.showPosition()+`
Expecting `+rt.join(", ")+", got '"+(this.terminals_[_]||_)+"'":St="Parse error on line "+(v+1)+": Unexpected "+(_==B?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(St,{text:S.match,token:this.terminals_[_]||_,line:S.yylineno,loc:yt,expected:rt})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+_);switch(m[0]){case 1:i.push(_),p.push(S.yytext),e.push(S.yylloc),i.push(m[1]),_=null,O=S.yyleng,l=S.yytext,v=S.yylineno,yt=S.yylloc;break;case 2:if(b=this.productions_[m[1]][1],N.$=p[p.length-b],N._$={first_line:e[e.length-(b||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(b||1)].first_column,last_column:e[e.length-1].last_column},Gt&&(N._$.range=[e[e.length-(b||1)].range[0],e[e.length-1].range[1]]),pt=this.performAction.apply(N,[l,O,v,A.yy,m[1],p,e].concat(ft)),typeof pt<"u")return pt;b&&(i=i.slice(0,-1*b*2),p=p.slice(0,-1*b),e=e.slice(0,-1*b)),i.push(this.productions_[m[1]][0]),p.push(N.$),e.push(N._$),Ct=$[i[i.length-2]][i[i.length-1]],i.push(Ct);break;case 3:return!0}}return!0}},Yt=function(){var C={EOF:1,parseError:function(n,i){if(this.yy.parser)this.yy.parser.parseError(n,i);else throw new Error(n)},setInput:function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var n=r.length,i=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===o.length?this.yylloc.first_column:0)+o[o.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
`+n+"^"},test_match:function(r,n){var i,o,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),o=r[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],i=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var e in p)this[e]=p[e];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,n,i,o;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),e=0;e<p.length;e++)if(i=this._input.match(this.rules[p[e]]),i&&(!n||i[0].length>n[0].length)){if(n=i,o=e,this.options.backtrack_lexer){if(r=this.test_match(i,p[e]),r!==!1)return r;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(r=this.test_match(n,p[o]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,i,o,p){switch(o){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),i.yytext=i.yytext.substr(2).trim(),30;case 64:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return i.yytext=i.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}};return C}();ht.lexer=Yt;function ut(){this.yy={}}return ut.prototype=ht,ht.Parser=ut,new ut}();gt.parser=gt;const De=gt,qt="LR",Ce="TB",_t="state",It="relation",Qt="classDef",Zt="applyClass",Et="default",te="divider",bt="[*]",Ot="start",Nt=bt,Rt="end",vt="color",At="fill",ee="bgFill",se=",";function wt(){return{}}let $t=qt,lt=[],P=wt();const Bt=()=>({relations:[],states:{},documents:{}});let ct={root:Bt()},g=ct.root,F=0,Lt=0;const ie={LINE:0,DOTTED_LINE:1},re={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},nt=t=>JSON.parse(JSON.stringify(t)),ne=t=>{D.info("Setting root doc",t),lt=t},ae=()=>lt,at=(t,s,a)=>{if(s.stmt===It)at(t,s.state1,!0),at(t,s.state2,!1);else if(s.stmt===_t&&(s.id==="[*]"?(s.id=a?t.id+"_start":t.id+"_end",s.start=a):s.id=s.id.trim()),s.doc){const h=[];let f=[],d;for(d=0;d<s.doc.length;d++)if(s.doc[d].type===te){const y=nt(s.doc[d]);y.doc=nt(f),h.push(y),f=[]}else f.push(s.doc[d]);if(h.length>0&&f.length>0){const y={stmt:_t,id:Jt(),type:"divider",doc:nt(f)};h.push(nt(y)),s.doc=h}s.doc.forEach(y=>at(s,y,!0))}},le=()=>(at({id:"root"},{id:"root",doc:lt},!0),{id:"root",doc:lt}),ce=t=>{let s;t.doc?s=t.doc:s=t,D.info(s),Pt(!0),D.info("Extract",s),s.forEach(a=>{switch(a.stmt){case _t:I(a.id.trim(),a.type,a.doc,a.description,a.note,a.classes,a.styles,a.textStyles);break;case It:Ft(a.state1,a.state2,a.description);break;case Qt:Vt(a.id.trim(),a.classes);break;case Zt:xt(a.id.trim(),a.styleClass);break}})},I=function(t,s=Et,a=null,h=null,f=null,d=null,y=null,k=null){const u=t==null?void 0:t.trim();g.states[u]===void 0?(D.info("Adding state ",u,h),g.states[u]={id:u,descriptions:[],type:s,doc:a,note:f,classes:[],styles:[],textStyles:[]}):(g.states[u].doc||(g.states[u].doc=a),g.states[u].type||(g.states[u].type=s)),h&&(D.info("Setting state description",u,h),typeof h=="string"&&kt(u,h.trim()),typeof h=="object"&&h.forEach(E=>kt(u,E.trim()))),f&&(g.states[u].note=f,g.states[u].note.text=ot.sanitizeText(g.states[u].note.text,Y())),d&&(D.info("Setting state classes",u,d),(typeof d=="string"?[d]:d).forEach(T=>xt(u,T.trim()))),y&&(D.info("Setting state styles",u,y),(typeof y=="string"?[y]:y).forEach(T=>_e(u,T.trim()))),k&&(D.info("Setting state styles",u,y),(typeof k=="string"?[k]:k).forEach(T=>me(u,T.trim())))},Pt=function(t){ct={root:Bt()},g=ct.root,F=0,P=wt(),t||Wt()},V=function(t){return g.states[t]},oe=function(){return g.states},he=function(){D.info("Documents = ",ct)},ue=function(){return g.relations};function mt(t=""){let s=t;return t===bt&&(F++,s=`${Ot}${F}`),s}function Tt(t="",s=Et){return t===bt?Ot:s}function fe(t=""){let s=t;return t===Nt&&(F++,s=`${Rt}${F}`),s}function de(t="",s=Et){return t===Nt?Rt:s}function ye(t,s,a){let h=mt(t.id.trim()),f=Tt(t.id.trim(),t.type),d=mt(s.id.trim()),y=Tt(s.id.trim(),s.type);I(h,f,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),I(d,y,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),g.relations.push({id1:h,id2:d,relationTitle:ot.sanitizeText(a,Y())})}const Ft=function(t,s,a){if(typeof t=="object")ye(t,s,a);else{const h=mt(t.trim()),f=Tt(t),d=fe(s.trim()),y=de(s);I(h,f),I(d,y),g.relations.push({id1:h,id2:d,title:ot.sanitizeText(a,Y())})}},kt=function(t,s){const a=g.states[t],h=s.startsWith(":")?s.replace(":","").trim():s;a.descriptions.push(ot.sanitizeText(h,Y()))},pe=function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},Se=()=>(Lt++,"divider-id-"+Lt),Vt=function(t,s=""){P[t]===void 0&&(P[t]={id:t,styles:[],textStyles:[]});const a=P[t];s!=null&&s.split(se).forEach(h=>{const f=h.replace(/([^;]*);/,"$1").trim();if(h.match(vt)){const y=f.replace(At,ee).replace(vt,At);a.textStyles.push(y)}a.styles.push(f)})},ge=function(){return P},xt=function(t,s){t.split(",").forEach(function(a){let h=V(a);if(h===void 0){const f=a.trim();I(f),h=V(f)}h.classes.push(s)})},_e=function(t,s){const a=V(t);a!==void 0&&a.textStyles.push(s)},me=function(t,s){const a=V(t);a!==void 0&&a.textStyles.push(s)},Te=()=>$t,ke=t=>{$t=t},Ee=t=>t&&t[0]===":"?t.substr(1).trim():t.trim(),ve={getConfig:()=>Y().state,addState:I,clear:Pt,getState:V,getStates:oe,getRelations:ue,getClasses:ge,getDirection:Te,addRelation:Ft,getDividerId:Se,setDirection:ke,cleanupLabel:pe,lineType:ie,relationType:re,logDocuments:he,getRootDoc:ae,setRootDoc:ne,getRootDocV2:le,extract:ce,trimColon:Ee,getAccTitle:Ut,setAccTitle:zt,getAccDescription:Mt,setAccDescription:Ht,addStyleClass:Vt,setCssClass:xt,addDescription:kt,setDiagramTitle:Xt,getDiagramTitle:Kt},be=t=>`
defs #statediagram-barbEnd {
fill: ${t.transitionColor};
stroke: ${t.transitionColor};
}
g.stateGroup text {
fill: ${t.nodeBorder};
stroke: none;
font-size: 10px;
}
g.stateGroup text {
fill: ${t.textColor};
stroke: none;
font-size: 10px;
}
g.stateGroup .state-title {
font-weight: bolder;
fill: ${t.stateLabelColor};
}
g.stateGroup rect {
fill: ${t.mainBkg};
stroke: ${t.nodeBorder};
}
g.stateGroup line {
stroke: ${t.lineColor};
stroke-width: 1;
}
.transition {
stroke: ${t.transitionColor};
stroke-width: 1;
fill: none;
}
.stateGroup .composit {
fill: ${t.background};
border-bottom: 1px
}
.stateGroup .alt-composit {
fill: #e0e0e0;
border-bottom: 1px
}
.state-note {
stroke: ${t.noteBorderColor};
fill: ${t.noteBkgColor};
text {
fill: ${t.noteTextColor};
stroke: none;
font-size: 10px;
}
}
.stateLabel .box {
stroke: none;
stroke-width: 0;
fill: ${t.mainBkg};
opacity: 0.5;
}
.edgeLabel .label rect {
fill: ${t.labelBackgroundColor};
opacity: 0.5;
}
.edgeLabel .label text {
fill: ${t.transitionLabelColor||t.tertiaryTextColor};
}
.label div .edgeLabel {
color: ${t.transitionLabelColor||t.tertiaryTextColor};
}
.stateLabel text {
fill: ${t.stateLabelColor};
font-size: 10px;
font-weight: bold;
}
.node circle.state-start {
fill: ${t.specialStateColor};
stroke: ${t.specialStateColor};
}
.node .fork-join {
fill: ${t.specialStateColor};
stroke: ${t.specialStateColor};
}
.node circle.state-end {
fill: ${t.innerEndBackground};
stroke: ${t.background};
stroke-width: 1.5
}
.end-state-inner {
fill: ${t.compositeBackground||t.background};
// stroke: ${t.background};
stroke-width: 1.5
}
.node rect {
fill: ${t.stateBkg||t.mainBkg};
stroke: ${t.stateBorder||t.nodeBorder};
stroke-width: 1px;
}
.node polygon {
fill: ${t.mainBkg};
stroke: ${t.stateBorder||t.nodeBorder};;
stroke-width: 1px;
}
#statediagram-barbEnd {
fill: ${t.lineColor};
}
.statediagram-cluster rect {
fill: ${t.compositeTitleBackground};
stroke: ${t.stateBorder||t.nodeBorder};
stroke-width: 1px;
}
.cluster-label, .nodeLabel {
color: ${t.stateLabelColor};
}
.statediagram-cluster rect.outer {
rx: 5px;
ry: 5px;
}
.statediagram-state .divider {
stroke: ${t.stateBorder||t.nodeBorder};
}
.statediagram-state .title-state {
rx: 5px;
ry: 5px;
}
.statediagram-cluster.statediagram-cluster .inner {
fill: ${t.compositeBackground||t.background};
}
.statediagram-cluster.statediagram-cluster-alt .inner {
fill: ${t.altBackground?t.altBackground:"#efefef"};
}
.statediagram-cluster .inner {
rx:0;
ry:0;
}
.statediagram-state rect.basic {
rx: 5px;
ry: 5px;
}
.statediagram-state rect.divider {
stroke-dasharray: 10,10;
fill: ${t.altBackground?t.altBackground:"#efefef"};
}
.note-edge {
stroke-dasharray: 5;
}
.statediagram-note rect {
fill: ${t.noteBkgColor};
stroke: ${t.noteBorderColor};
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note rect {
fill: ${t.noteBkgColor};
stroke: ${t.noteBorderColor};
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note text {
fill: ${t.noteTextColor};
}
.statediagram-note .nodeLabel {
color: ${t.noteTextColor};
}
.statediagram .edgeLabel {
color: red; // ${t.noteTextColor};
}
#dependencyStart, #dependencyEnd {
fill: ${t.lineColor};
stroke: ${t.lineColor};
stroke-width: 1;
}
.statediagramTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${t.textColor};
}
`,Ae=be;export{Et as D,It as S,te as a,_t as b,Ce as c,ve as d,De as p,Ae as s};
import{p as J,d as B,s as Q,D as H,a as X,S as Z,b as F,c as I}from"./styles-15409a09-FaFI1JLV.js";import{G as tt}from"./graph-af3d5df6-B9Rrt_D8.js";import{l as E,c as g,h as x,v as et,i as ot,j as w}from"./slidev/Mermaid-sWhOKcCj.js";import{r as st}from"./index-c8395ba2-BeB0hvAS.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./layout-6685625a-TirZJcn7.js";import"./clone-d2e37f8c-kF1Uud7q.js";import"./edges-1e1ebc73-BF9aEHVZ.js";import"./createText-f6615236-DY9JQ1lr.js";import"./line-65d70945-Bv9b7vLo.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const h="rect",C="rectWithTitle",nt="start",it="end",ct="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,m="transition",St="note",pt="note-edge",Tt=`${m} ${pt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,U="parent",V="note",At="state",N="----",ht=`${N}${V}`,M=`${N}${U}`,Y="fill:none",W="fill: #333",z="c",j="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",i=N){const c=e!==null&&e.length>0?`${i}${e}`:"";return`${At}-${t}${c}-${n}`}const A=(t,n,e,i,c,r)=>{const o=e.id,u=$t(i[o]);if(o!=="root"){let p=h;e.start===!0&&(p=nt),e.start===!1&&(p=it),e.type!==H&&(p=e.type),y[o]||(y[o]={id:o,shape:p,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(E.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===X?ct:rt,s.classes=s.classes+" "+Dt+" "+(r?ft:""));const T={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,d),type:s.type,padding:15};if(T.centerLabel=!0,e.note){const l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,V),type:s.type,padding:15},a={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,d,U),type:"group",padding:0};d++;const D=o+M;t.setNode(D,a),t.setNode(l.id,l),t.setNode(o,T),t.setParent(o,D),t.setParent(l.id,D);let S=o,b=l.id;e.note.position==="left of"&&(S=l.id,b=o),t.setEdge(S,b,{arrowhead:"none",arrowType:"",style:Y,labelStyle:"",classes:Tt,arrowheadStyle:W,labelpos:z,labelType:j,thickness:q})}else t.setNode(o,T)}n&&n.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(E.trace("Adding nodes children "),xt(t,e,e.doc,i,c,!r))},xt=(t,n,e,i,c,r)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,i,c,r);break;case H:A(t,n,o,i,c,r);break;case Z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Y,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:W,labelpos:z,labelType:j,thickness:q,classes:m};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let i=0;i<t.doc.length;i++){const c=t.doc[i];c.stmt==="dir"&&(e=c.value)}return e},Ct=async function(t,n,e,i){E.info("Drawing state diagram (v2)",n),y={},i.db.getDirection();const{securityLevel:c,state:r}=g(),o=r.nodeSpacing||50,u=r.rankSpacing||50;E.info(i.db.getRootDocV2()),i.db.extract(i.db.getRootDocV2()),E.info(i.db.getRootDocV2());const p=i.db.getStates(),s=new tt({multigraph:!0,compound:!0}).setGraph({rankdir:G(i.db.getRootDocV2()),nodesep:o,ranksep:u,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});A(s,void 0,i.db.getRootDocV2(),p,i.db,!0);let T;c==="sandbox"&&(T=x("#i"+n));const l=c==="sandbox"?x(T.nodes()[0].contentDocument.body):x("body"),a=l.select(`[id="${n}"]`),D=l.select("#"+n+" g");await st(D,s,["barb"],_,n);const S=8;et.insertTitle(a,"statediagramTitleText",r.titleTopMargin,i.db.getDiagramTitle());const b=a.node().getBBox(),L=b.width+S*2,P=b.height+S*2;a.attr("class",_);const O=a.node().getBBox();ot(a,P,L,r.useMaxWidth);const v=`${O.x-S} ${O.y-S} ${L} ${P}`;E.debug(`viewBox ${v}`),a.attr("viewBox",v);const K=document.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(const $ of K){const k=$.getBBox(),f=document.createElementNS("http://www.w3.org/2000/svg",h);f.setAttribute("rx",0),f.setAttribute("ry",0),f.setAttribute("width",k.width),f.setAttribute("height",k.height),$.insertBefore(f,$.firstChild)}},Rt={setConf:yt,getClasses:gt,draw:Ct},Wt={parser:J,db:B,renderer:Rt,styles:Q,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{Wt as diagram};
import{p as P,d as N,s as W}from"./styles-15409a09-FaFI1JLV.js";import{c as t,h as H,l as b,i as v,j as T,F as R,v as U}from"./slidev/Mermaid-sWhOKcCj.js";import{G as C}from"./graph-af3d5df6-B9Rrt_D8.js";import{l as F}from"./layout-6685625a-TirZJcn7.js";import{l as $}from"./line-65d70945-Bv9b7vLo.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,i)=>{const o=function(l,m,w){const E=l.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,r=!0;i.descriptions.forEach(function(l){a||(o(p,l,r),r=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,i,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=r.node().getBBox().width+s;let d=Math.max(x,p);d===p&&(d=d+s);let l;const m=e.node().getBBox();i.doc,l=a-c,x>p&&(l=(p-d)/2+c),Math.abs(a-m.x)<c&&x>p&&(l=a-(x-p)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",w).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=p&&r.attr("x",a+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,i)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,i,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"<br/>");p=p.replace(/\n/g,"<br/>");const a=p.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",i+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},j=(e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,i){const o=i.id,c={id:o,label:i.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&O(s),i.type==="end"&&_(s),(i.type==="fork"||i.type==="join")&&q(s,i),i.type==="note"&&j(i.note.text,s),i.type==="divider"&&X(s),i.type==="default"&&i.descriptions.length===0&&J(s,i),i.type==="default"&&i.descriptions.length>0&&Y(s,i);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const K=function(e,i,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};i.points=i.points.filter(r=>!Number.isNaN(r.y));const s=i.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(R),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(i.points),d=T.getRows(o.title);let l=0;const m=[];let w=0,E=0;for(let u=0;u<=d.length;u++){const h=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();w=Math.max(w,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=h.node().getBBox().height,b.info("Title height",l,x)),m.push(h)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;m.forEach((h,f)=>h.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},Q=function(){},V=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},D=function(e,i,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+i));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${i}']`);V(r);const y=c.db.getRootDoc();A(y,r,void 0,!1,p,a,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,m=d.height+x*2,w=l*1.75;v(r,m,w,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+m)},tt=e=>e?e.length*B.fontSizeFactor:1,A=(e,i,o,c,s,g,p)=>{const a=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){y=!1;break}o?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}}),p.db.extract(e);const x=p.db.getStates(),d=p.db.getRelations(),l=Object.keys(x);for(const n of l){const u=x[n];o&&(u.parentId=o);let h;if(u.doc){let f=i.append("g").attr("id",u.id).attr("class","stateGroup");h=A(u.doc,f,u.id,!c,s,g,p);{f=I(f,u,c);let S=f.node().getBBox();h.width=S.width,h.height=S.height+B.padding/2,z[u.id]={y:B.compositTitleSize}}}else h=L(i,u);if(u.note){const f={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},S=L(i,f);u.note.position==="left of"?(a.setNode(h.id+"-note",S),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",S)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}b.debug("Count=",a.nodeCount(),a);let m=0;d.forEach(function(n){m++,b.debug("Setting edge",n),a.setEdge(n.id1,n.id2,{relation:n,width:tt(n.title),height:B.labelHeight*T.getRows(n.title).length,labelpos:"c"},"id"+m)}),F(a),b.debug("Graph after layout",a.nodes());const w=i.node();a.nodes().forEach(function(n){n!==void 0&&a.node(n)!==void 0?(b.warn("Node "+n+": "+JSON.stringify(a.node(n))),s.select("#"+w.id+" #"+n).attr("transform","translate("+(a.node(n).x-a.node(n).width/2)+","+(a.node(n).y+(z[n]?z[n].y:0)-a.node(n).height/2)+" )"),s.select("#"+w.id+" #"+n).attr("data-x-shift",a.node(n).x-a.node(n).width/2),g.querySelectorAll("#"+w.id+" #"+n+" .divider").forEach(h=>{const f=h.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let E=w.getBBox();a.edges().forEach(function(n){n!==void 0&&a.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),K(i,a.edge(n),a.edge(n).relation))}),E=w.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,a),k},et={setConf:Q,draw:D},pt={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{pt as diagram};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingPreview-lUDfsxKN.js","assets/modules/vue-O-XuQLLR.js","assets/index-DENYuTHS.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/index-BAThGyva.css","assets/slidev/bottom-WehDtssn.js","assets/bottom-DbIWt59F.css"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{d as m,y as c,M as F,Y as L,J as V,o as r,b as u,l as d,A as a,i as B,c as f,g as _,h as M,F as v,Z as R,e as y,f as j,C as z,_ as G}from"../modules/vue-O-XuQLLR.js";import{t as W}from"../modules/shiki-CBnMlxcT.js";import{G as D,g as I,S as O,a as T,w as H}from"./bottom-WehDtssn.js";import{s as J,a as k,_ as K,c as S,i as X,b as h,u as w,d as $,C as Y,e as N,f as g,g as Z}from"../index-DENYuTHS.js";import{P as Q}from"./PrintStyle-DYFVhmXJ.js";function U(l){return Array.from(new Set(l))}function q(...l){let t,n,e;l.length===1?(t=0,e=1,[n]=l):[t,n,e=1]=l;const s=[];let i=t;for(;i<n;)s.push(i),i+=e||1;return s}function ee(l,t){if(!t||t==="all"||t==="*")return q(1,l+1);if(t==="none")return[];const n=[];for(const e of t.split(/[,;]/g))if(!e.includes("-"))n.push(+e);else{const[s,i]=e.split("-",2);n.push(...q(+s,i?+i+1:l+1))}return U(n).filter(e=>e<=l).sort((e,s)=>e-s)}const te=["id"],ne=m({__name:"PrintSlideClick",props:{nav:{type:Object,required:!0}},setup(l){const{nav:t}=l,n=c(()=>t.currentSlideRoute.value),e=c(()=>({height:`${J.value}px`,width:`${k.value}px`})),s=F();K(()=>import("./DrawingPreview-lUDfsxKN.js").then(o=>o.a),__vite__mapDeps([0,1,2,3,4,5,6,7])).then(o=>s.value=o.default);const i=c(()=>`${n.value.no.toString().padStart(3,"0")}-${(t.clicks.value+1).toString().padStart(2,"0")}`);return L(X,V({nav:t,configs:S,themeConfigs:c(()=>S.themeConfig)})),(o,C)=>(r(),u("div",{id:i.value,class:"print-slide-container",style:M(e.value)},[d(a(D)),d(O,{is:n.value.component,"clicks-context":o.nav.clicksContext.value,class:B(a(I)(n.value)),route:n.value},null,8,["is","clicks-context","class","route"]),s.value?(r(),f(a(s),{key:0,page:n.value.no},null,8,["page"])):_("v-if",!0),d(a(T))],12,te))}}),A=h(ne,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintSlideClick.vue"]]),se=m({__name:"PrintSlide",props:{route:{type:null,required:!0}},setup(l){const{route:t}=l,{isPrintWithClicks:n}=w(),e=$(t,n.value?0:Y);return(s,i)=>(r(),u(v,null,[d(A,{"clicks-context":a(e),nav:a(N)(s.route,a(e))},null,8,["clicks-context","nav"]),a(n)?(r(),u(v,{key:0},[_(`
clicks0.total can be any number >=0 when rendering.
So total-clicksStart can be negative in intermediate states.
`),(r(!0),u(v,null,R(Math.max(0,a(e).total-a(e).clicksStart),o=>(r(),f(A,{key:o,nav:a(N)(s.route,a($)(s.route,o+a(e).clicksStart))},null,8,["nav"]))),128))],64)):_("v-if",!0)],64))}}),le=h(se,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintSlide.vue"]]),ae={id:"print-content"},ie=m({__name:"PrintContainer",props:{width:{type:Number,required:!0}},setup(l){const t=l,{slides:n,currentRoute:e}=w(),s=c(()=>t.width),i=c(()=>t.width/g.value),o=c(()=>s.value/i.value),C=c(()=>o.value<g.value?s.value/k.value:i.value*g.value/k.value);let p=n.value;e.value.query.range&&(p=ee(p.length,e.value.query.range).map(P=>p[P-1]));const E=c(()=>({"select-none":!S.selectable}));return L(Z,C),(x,P)=>(r(),u("div",{id:"print-container",class:B(E.value)},[y("div",ae,[(r(!0),u(v,null,R(a(p),b=>(r(),f(le,{key:b.no,route:b},null,8,["route"]))),128))]),j(x.$slots,"controls")],2))}}),re=h(ie,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintContainer.vue"]]),oe={id:"page-root",class:"grid grid-cols-[1fr_max-content]"},ce=y("div",{id:"twoslash-container"},null,-1),ue=m({__name:"print",setup(l){const{isPrintMode:t}=w();return z(()=>{t?document.body.parentNode.classList.add("print"):document.body.parentNode.classList.remove("print")}),G(()=>{W()}),(n,e)=>(r(),u(v,null,[a(t)?(r(),f(Q,{key:0})):_("v-if",!0),y("div",oe,[d(re,{class:"w-full h-full",style:M({background:"var(--slidev-slide-container-background, black)"}),width:a(H).width.value},null,8,["style","width"]),ce])],64))}}),fe=h(ue,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/print.vue"]]);export{fe as default};
import{d as _,$ as u,y as h,b as a,e as t,x as s,A as r,F as f,Z as v,o as n,a0 as g,l as x,g as b}from"../modules/vue-O-XuQLLR.js";import{u as y,h as N,c as m,b as k}from"../index-DENYuTHS.js";import{N as w}from"./NoteDisplay-BdmlYjVU.js";import"../modules/shiki-CBnMlxcT.js";const L={id:"page-root"},T={class:"m-4"},V={class:"mb-10"},B={class:"text-4xl font-bold mt-2"},D={class:"opacity-50"},H={class:"text-lg"},S={class:"font-bold flex gap-2"},A={class:"opacity-50"},C=t("div",{class:"flex-auto"},null,-1),F={key:0,class:"border-main mb-8"},M=_({__name:"print",setup($){const{slides:d,total:p}=y();u(`
@page {
size: A4;
margin-top: 1.5cm;
margin-bottom: 1cm;
}
* {
-webkit-print-color-adjust: exact;
}
html,
html body,
html #app,
html #page-root {
height: auto;
overflow: auto !important;
}
`),N({title:`Notes - ${m.title}`});const i=h(()=>d.value.map(o=>{var l;return(l=o.meta)==null?void 0:l.slide}).filter(o=>o!==void 0&&o.noteHTML!==""));return(o,l)=>(n(),a("div",L,[t("div",T,[t("div",V,[t("h1",B,s(r(m).title),1),t("div",D,s(new Date().toLocaleString()),1)]),(n(!0),a(f,null,v(i.value,(e,c)=>(n(),a("div",{key:c,class:"flex flex-col gap-4 break-inside-avoid-page"},[t("div",null,[t("h2",H,[t("div",S,[t("div",A,s(e==null?void 0:e.no)+"/"+s(r(p)),1),g(" "+s(e==null?void 0:e.title)+" ",1),C])]),x(w,{"note-html":e.noteHTML,class:"max-w-full"},null,8,["note-html"])]),c<i.value.length-1?(n(),a("hr",F)):b("v-if",!0)]))),128))])]))}}),Z=k(M,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/presenter/print.vue"]]);export{Z as default};
import{_ as X,a as Z,b as Y,c as ee,d as te}from"../modules/unplugin-icons-DhLcIxB1.js";import{t as q,d as R,c as b,i as f,A as t,o as i,y as v,b as k,e,l as r,F as B,x as N,g as z,Z as se,a1 as oe,a2 as le,h as I,p as U,a as W,D as G,M as ne,_ as ae,J as re,a3 as ie,a4 as ce,k as $,a5 as ue}from"../modules/vue-O-XuQLLR.js";import{j as de,b as P,k as pe,r as me,C as ve,u as _e,c as H,h as fe,l as xe,d as be,m as ke}from"../index-DENYuTHS.js";import{r as ge,u as he,S as O,I as Q,Q as ye,a as Ce,N as we,G as Se}from"./SlidesShow-Dk9xuOJo.js";import{s as $e,b as V,p as Ne,S as ze,g as Ie,c as Fe,i as De,d as Me}from"./bottom-WehDtssn.js";import{N as Te}from"./NoteDisplay-BdmlYjVU.js";import Ve from"./DrawingControls-BxiOgCac.js";import{u as qe}from"./DrawingPreview-lUDfsxKN.js";import"../modules/shiki-CBnMlxcT.js";import"./context-8sk6R7gr.js";function Be(a){var l;return{info:q((l=de(a))==null?void 0:l.meta.slide),update:async()=>{}}}const Re=R({__name:"NoteStatic",props:{no:{type:Number,required:!0},class:{type:String,required:!1},clicksContext:{type:null,required:!1}},setup(a){const l=a,{info:s}=Be(l.no);return(u,c)=>{var o,x;return i(),b(Te,{class:f(l.class),note:(o=t(s))==null?void 0:o.note,"note-html":(x=t(s))==null?void 0:x.noteHTML,"clicks-context":u.clicksContext},null,8,["class","note","note-html","clicks-context"])}}}),Pe=P(Re,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NoteStatic.vue"]]),E=a=>(U("data-v-52a29648"),a=a(),W(),a),Le=["title"],je={class:"flex gap-0.5 items-center min-w-16 font-mono mr1"},Ae=E(()=>e("div",{"flex-auto":""},null,-1)),Ge={"text-primary":""},He=E(()=>e("span",{op25:""},"/",-1)),Oe={op50:""},Qe=["min","max"],Ue=R({__name:"ClicksSlider",props:{clicksContext:{type:null,required:!0}},setup(a){const l=a,s=v(()=>l.clicksContext.total),u=v(()=>pe(0,l.clicksContext.clicksStart,s.value)),c=v(()=>s.value-u.value+1),o=v({get(){return l.clicksContext.current>s.value?-1:l.clicksContext.current},set(g){l.clicksContext.current=g}}),x=v(()=>me(u.value,s.value+1));function F(){(o.value<0||o.value>s.value)&&(o.value=0)}return(g,d)=>{const D=X;return i(),k("div",{class:f(["flex gap-1 items-center select-none",c.value?"":"op50"]),title:`Clicks in this slide: ${c.value}`},[e("div",je,[r(D,{"text-sm":"",op50:""}),Ae,o.value>=0&&o.value!==t(ve)?(i(),k(B,{key:0},[e("span",Ge,N(o.value),1),He],64)):z("v-if",!0),e("span",Oe,N(s.value),1)]),e("div",{relative:"","flex-auto":"",h5:"","font-mono":"",flex:"~",onDblclick:d[2]||(d[2]=n=>o.value=g.clicksContext.total)},[(i(!0),k(B,null,se(x.value,n=>(i(),k("div",{key:n,border:"y main","of-hidden":"",relative:"",class:f([n===0?"rounded-l border-l":"",n===s.value?"rounded-r border-r":""]),style:I({width:c.value>0?`${1/c.value*100}%`:"100%"})},[e("div",{absolute:"","inset-0":"",class:f(n<=o.value?"bg-primary op15":"")},null,2),e("div",{class:f([+n==+o.value?"text-primary font-bold op100 border-primary":"op30 border-main",n===0?"rounded-l":"",n===s.value?"rounded-r":"border-r-2"]),"w-full":"","h-full":"","text-xs":"",flex:"","items-center":"","justify-center":"","z-1":""},N(n),3)],6))),128)),oe(e("input",{"onUpdate:modelValue":d[0]||(d[0]=n=>o.value=n),class:"range",absolute:"","inset-0":"",type:"range",min:u.value,max:s.value,step:1,"z-10":"",op0:"",style:I({"--thumb-width":`${1/(c.value+1)*100}%`}),onMousedown:F,onFocus:d[1]||(d[1]=n=>{var C;return(C=n.currentTarget)==null?void 0:C.blur()})},null,44,Qe),[[le,o.value]])],32)],10,Le)}}}),We=P(Ue,[["__scopeId","data-v-52a29648"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/ClicksSlider.vue"]]),L=a=>(U("data-v-d0ba6bbb"),a=a(),W(),a),Ee={class:"bg-main h-full slidev-presenter"},Je=L(()=>e("div",{class:"absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm"}," Current ",-1)),Ke={class:"relative grid-section next flex flex-col p-2 lg:p-4"},Xe=L(()=>e("div",{class:"absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm"}," Next ",-1)),Ze={key:1,class:"grid-section note grid grid-rows-[1fr_min-content] overflow-hidden"},Ye={class:"border-t border-main py-1 px-2 text-sm"},et={class:"grid-section bottom flex"},tt=L(()=>e("div",{"flex-auto":""},null,-1)),st={class:"text-2xl pl-2 pr-6 my-auto tabular-nums"},ot={class:"progress-bar"},lt=R({__name:"presenter",setup(a){const l=q();ge(),he(l);const{clicksContext:s,currentSlideNo:u,currentSlideRoute:c,hasNext:o,nextRoute:x,slides:F,queryClicks:g,getPrimaryClicks:d,total:D}=_e(),{isDrawing:n}=qe(),C=H.titleTemplate.replace("%s",H.title||"Slidev");fe({title:`Presenter - ${C}`}),q(!1);const{timer:J,resetTimer:j}=xe(),K=v(()=>F.value.map(S=>be(S))),p=v(()=>s.value.current<s.value.total?[c.value,s.value.current+1]:o.value?[x.value,0]:null),w=v(()=>p.value&&K.value[p.value[0].no-1]);return G([c,g],()=>{w.value&&(w.value.current=p.value[1])},{immediate:!0}),ne(),ae(()=>{const S=l.value.querySelector("#slide-content"),_=re(ie()),M=ce();G(()=>{if(!M.value||n.value||!$e.value)return;const m=S.getBoundingClientRect(),h=(_.x-m.left)/m.width*100,y=(_.y-m.top)/m.height*100;if(!(h<0||h>100||y<0||y>100))return{x:h,y}},m=>{ke.cursor=m})}),(S,_)=>{var A;const M=Z,m=Y,h=ee,y=te;return i(),k(B,null,[e("div",Ee,[e("div",{class:f(["grid-container",`layout${t(Ne)}`])},[e("div",{ref_key:"main",ref:l,class:"relative grid-section main flex flex-col"},[r(O,{key:"main",class:"h-full w-full p-2 lg:p-4 flex-auto"},{default:$(()=>[r(Ce,{"render-context":"presenter"})]),_:1}),(i(),b(We,{key:(A=t(c))==null?void 0:A.no,"clicks-context":t(d)(t(c)),class:"w-full pb2 px4 flex-none"},null,8,["clicks-context"])),Je],512),e("div",Ke,[p.value&&w.value?(i(),b(O,{key:"next",class:"h-full w-full"},{default:$(()=>[(i(),b(ze,{is:p.value[0].component,key:p.value[0].no,"clicks-context":w.value,class:f(t(Ie)(p.value[0])),route:p.value[0],"render-context":"previewNext"},null,8,["is","clicks-context","class","route"]))]),_:1})):z("v-if",!0),Xe]),z(" Notes "),(i(),k("div",Ze,[(i(),b(Pe,{key:`static-${t(u)}`,no:t(u),class:"w-full max-w-full h-full overflow-auto p-2 lg:p-4",style:I({fontSize:`${t(Fe)}em`}),"clicks-context":t(s)},null,8,["no","style","clicks-context"])),e("div",Ye,[r(Q,{title:"Increase font size",onClick:t(De)},{default:$(()=>[r(M)]),_:1},8,["onClick"]),r(Q,{title:"Decrease font size",onClick:t(Me)},{default:$(()=>[r(m)]),_:1},8,["onClick"]),z("v-if",!0)])])),e("div",et,[r(we,{persist:!0}),tt,e("div",{class:"timer-btn my-auto relative w-22px h-22px cursor-pointer text-lg",opacity:"50 hover:100",onClick:_[2]||(_[2]=(...T)=>t(j)&&t(j)(...T))},[r(h,{class:"absolute"}),r(y,{class:"absolute opacity-0"})]),e("div",st,N(t(J)),1)]),(i(),b(Ve,{key:2}))],2),e("div",ot,[e("div",{class:"progress h-3px bg-primary transition-all",style:I({width:`${(t(u)-1)/(t(D)-1)*100}%`})},null,4)])]),r(Se),r(ye,{modelValue:t(V),"onUpdate:modelValue":_[3]||(_[3]=T=>ue(V)?V.value=T:null)},null,8,["modelValue"])],64)}}}),_t=P(lt,[["__scopeId","data-v-d0ba6bbb"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/presenter.vue"]]);export{_t as default};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingControls-BxiOgCac.js","assets/modules/unplugin-icons-DhLcIxB1.js","assets/modules/vue-O-XuQLLR.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/DrawingPreview-lUDfsxKN.js","assets/index-DENYuTHS.js","assets/index-BAThGyva.css","assets/slidev/bottom-WehDtssn.js","assets/bottom-DbIWt59F.css","assets/slidev/SlidesShow-Dk9xuOJo.js","assets/slidev/context-8sk6R7gr.js","assets/SlidesShow-DZAAkYiM.css","assets/DrawingControls-C5T1oZL5.css"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{b as w,c as y,u as $,_ as z}from"../index-DENYuTHS.js";import{d as k,a6 as P,o as s,c as r,A as e,b as v,e as t,f as B,i as D,g as a,a7 as O,y as E,k as M,a5 as g,a0 as R,M as h,l as p,F as I,t as A,h as T}from"../modules/vue-O-XuQLLR.js";import{b as x,e as C,f as S,h as U,j as N,w as H,k as L,l as j}from"./bottom-WehDtssn.js";import{Q as F,G,r as Q,u as W,S as K,a as X,N as Y}from"./SlidesShow-Dk9xuOJo.js";import{P as q}from"./PrintStyle-DYFVhmXJ.js";import{u as J}from"./DrawingPreview-lUDfsxKN.js";import"../modules/shiki-CBnMlxcT.js";import"../modules/unplugin-icons-DhLcIxB1.js";import"./context-8sk6R7gr.js";const Z="/slides/fosdem2024/assets/logo-BYkHSa_O.png",ee={key:0,class:"fixed top-0 bottom-0 left-0 right-0 grid z-20"},oe=k({__name:"Modal",props:{modelValue:{default:!1},class:{default:""}},emits:["update:modelValue"],setup(u,{emit:i}){const n=u,o=P(n,"modelValue",i);function l(){o.value=!1}return(c,d)=>(s(),r(O,null,[e(o)?(s(),v("div",ee,[t("div",{bg:"black opacity-80",class:"absolute top-0 bottom-0 left-0 right-0 -z-1",onClick:d[0]||(d[0]=m=>l())}),t("div",{class:D(["m-auto rounded-md bg-main shadow",n.class]),"dark:border":"~ main"},[B(c.$slots,"default")],2)])):a("v-if",!0)],1024))}}),se=w(oe,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Modal.vue"]]),le={class:"slidev-info-dialog slidev-layout flex flex-col gap-4 text-base"},te=["innerHTML"],ae=t("a",{href:"https://github.com/slidevjs/slidev",target:"_blank",class:"!opacity-100 !border-none !text-current"},[t("div",{class:"flex gap-1 children:my-auto"},[t("div",{class:"opacity-50 text-sm mr-2"},"Powered by"),t("img",{class:"w-5 h-5",src:Z,alt:"Slidev logo"}),t("div",{style:{color:"#2082A6"}},[t("b",null,"Sli"),R("dev ")])])],-1),ie=k({__name:"InfoDialog",props:{modelValue:{default:!1}},emits:["update:modelValue"],setup(u,{emit:i}){const o=P(u,"modelValue",i),l=E(()=>typeof y.info=="string");return(c,d)=>(s(),r(se,{modelValue:e(o),"onUpdate:modelValue":d[0]||(d[0]=m=>g(o)?o.value=m:null),class:"px-6 py-4"},{default:M(()=>[t("div",le,[l.value?(s(),v("div",{key:0,class:"mb-4",innerHTML:e(y).info},null,8,te)):a("v-if",!0),ae])]),_:1},8,["modelValue"]))}}),ne=w(ie,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/InfoDialog.vue"]]),re=k({__name:"Controls",setup(u){const i=h(),n=h();return(_,o)=>(s(),v(I,null,[p(F,{modelValue:e(x),"onUpdate:modelValue":o[0]||(o[0]=l=>g(x)?x.value=l:null)},null,8,["modelValue"]),p(G),i.value?(s(),r(e(i),{key:0})):a("v-if",!0),n.value?(s(),r(e(n),{key:1,modelValue:e(C),"onUpdate:modelValue":o[1]||(o[1]=l=>g(C)?C.value=l:null)},null,8,["modelValue"])):a("v-if",!0),e(y).info?(s(),r(ne,{key:2,modelValue:e(S),"onUpdate:modelValue":o[2]||(o[2]=l=>g(S)?S.value=l:null)},null,8,["modelValue"])):a("v-if",!0)],64))}}),de=w(re,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Controls.vue"]]),ue=k({__name:"play",setup(u){Q();const{next:i,prev:n,isEmbedded:_,isPrintMode:o}=$(),{isDrawing:l}=J(),c=A();function d(f){var b;N.value||((b=f.target)==null?void 0:b.id)==="slide-container"&&(f.screenX/window.innerWidth>.6?i():n())}W(c);const m=E(()=>U.value||N.value);h();const V=h();return z(()=>import("./DrawingControls-BxiOgCac.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])).then(f=>V.value=f.default),(f,b)=>(s(),v(I,null,[e(o)?(s(),r(q,{key:0})):a("v-if",!0),t("div",{id:"page-root",ref_key:"root",ref:c,class:D(["grid",e(j)?"grid-rows-[1fr_max-content]":"grid-cols-[1fr_max-content]"])},[p(K,{class:"w-full h-full",style:T({background:"var(--slidev-slide-container-background, black)"}),width:e(o)?e(H).width.value:void 0,scale:e(L),"is-main":!0,onPointerdown:d},{default:M(()=>[p(X,{"render-context":"slide"})]),controls:M(()=>[e(o)?a("v-if",!0):(s(),v("div",{key:0,class:D(["absolute bottom-0 left-0 transition duration-300 opacity-0 hover:opacity-100",[m.value?"!opacity-100 right-0":"opacity-0 p-2",e(l)?"pointer-events-none":""]])},[p(Y,{class:"m-auto",persist:m.value},null,8,["persist"])],2)),!e(y).drawings.presenterOnly&&!e(_)&&V.value?(s(),r(e(V),{key:1,class:"ml-0"})):a("v-if",!0)]),_:1},8,["style","width","scale"]),a("v-if",!0)],2),e(o)?a("v-if",!0):(s(),r(de,{key:1}))],64))}}),we=w(ue,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/play.vue"]]);export{we as default};
import{at as n,ar as r,t as u,y as j,Y as $,au as v}from"../modules/vue-O-XuQLLR.js";import{g as p,B as x,K as l,i as C,A as S,x as R,y as T,w as g,L as k,M as E}from"../index-DENYuTHS.js";function F(){const t=n(C),s=r(t,"nav"),i=n(S).value,e=r(i,"current"),a=n(R),c=n(T),o=n(l,{}),d=n(g,void 0),m=n(p,u(1)),f=n(x,j(()=>1));return{$slidev:t,$nav:s,$clicksContext:i,$clicks:e,$page:a,$route:d,$renderContext:c,$frontmatter:o,$scale:m,$zoom:f}}function A(t){var a,c;$(l,t);const{$slidev:s,$page:i}=F(),e=s.nav.slides.find(o=>o.no===i.value);if((c=(a=e==null?void 0:e.meta)==null?void 0:a.slide)!=null&&c.frontmatter){for(const o of Object.keys(e.meta.slide.frontmatter))o in t||delete e.meta.slide.frontmatter[o];Object.assign(e.meta.slide.frontmatter,t)}}function O(t,s){return{...v(t,s===0?k:E),frontmatter:t}}export{O as f,A as p,F as u};
import{t as o,al as z,am as F,an as j,y as c,ao as A,ap as B,Q as t,S as _,R as E,aq as L,d as g,_ as x,o as m,b as C,F as P,g as O,e as T,Y as i,ar as S,c as $,h as N,i as R,af as D,A as M,as as q,v as I}from"../modules/vue-O-XuQLLR.js";import{f as V,_ as W,c as r,b,w as G,x as K,y as U,z as H,A as Q,B as X}from"../index-DENYuTHS.js";const ie=o(!1),le=o(!1),re=o(!1),Y=o(!1),ce=o(!0),de=z({xs:460,...L}),y=F(),ue=j(),ve=c(()=>y.height.value-y.width.value/V.value>120),fe=A(_?document.body:null),h=B(),pe=c(()=>{var s,e;return["INPUT","TEXTAREA"].includes(((s=h.value)==null?void 0:s.tagName)||"")||((e=h.value)==null?void 0:e.classList.contains("CodeMirror-code"))}),ge=c(()=>{var s;return["BUTTON","A"].includes(((s=h.value)==null?void 0:s.tagName)||"")});t("slidev-camera","default",{listenToStorageChanges:!1});t("slidev-mic","default",{listenToStorageChanges:!1});const me=t("slidev-scale",0),he=t("slidev-presenter-cursor",!0,{listenToStorageChanges:!1}),_e=t("slidev-show-editor",!1,{listenToStorageChanges:!1}),we=t("slidev-editor-vertical",!1,{listenToStorageChanges:!1});t("slidev-editor-width",_?window.innerWidth*.4:318,{listenToStorageChanges:!1});t("slidev-editor-height",_?window.innerHeight*.4:300,{listenToStorageChanges:!1});const p=t("slidev-presenter-font-size",1,{listenToStorageChanges:!1}),f=t("slidev-presenter-layout",1,{listenToStorageChanges:!1});function Ce(){f.value=f.value+1,f.value>2&&(f.value=1)}function Se(){p.value=Math.min(2,p.value+.1)}function ye(){p.value=Math.max(.5,p.value-.1)}const xe=E(Y);function Te(s,e=""){var d,n;const a=["slidev-page",e],l=(n=(d=s==null?void 0:s.meta)==null?void 0:d.slide)==null?void 0:n.no;return l!=null&&a.push(`slidev-page-${l}`),a.filter(Boolean).join(" ")}async function be(){const{saveAs:s}=await W(()=>import("../modules/file-saver-EUMWMpoS.js").then(e=>e.F),[]);s(typeof r.download=="string"?r.download:r.exportFilename?`${r.exportFilename}.pdf`:"/slides/fosdem2024slidev-exported.pdf",`${r.title}.pdf`)}const Z={class:"h-full w-full flex items-center justify-center gap-2 slidev-slide-loading"},J=T("div",{class:"i-svg-spinners-90-ring-with-bg text-xl"},null,-1),ee=T("div",null,"Loading slide...",-1),se=g({__name:"SlideLoading",setup(s){const e=o(!1);return x(()=>{setTimeout(()=>{e.value=!0},200)}),(a,l)=>(m(),C("div",Z,[e.value?(m(),C(P,{key:0},[J,ee],64)):O("v-if",!0)]))}}),te=b(se,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideLoading.vue"]]),ae=g({__name:"SlideWrapper",props:{clicksContext:{type:Object,required:!0},renderContext:{type:String,default:"slide"},active:{type:Boolean,default:!1},is:{type:Function,required:!0},route:{type:Object,required:!0}},setup(s){const e=s,a=c(()=>{var n,u;return((u=(n=e.route.meta)==null?void 0:n.slide)==null?void 0:u.frontmatter.zoom)??1});i(G,e.route),i(K,o(e.route.no)),i(U,o(e.renderContext)),i(H,S(e,"active")),i(Q,S(e,"clicksContext")),i(X,a);const l=c(()=>a.value===1?void 0:{width:`${100/a.value}%`,height:`${100/a.value}%`,transformOrigin:"top left",transform:`scale(${a.value})`}),d=q({loader:async()=>{const n=await e.is();return g({setup(u,{attrs:k}){return x(()=>{var v,w;(w=(v=e.clicksContext)==null?void 0:v.onMounted)==null||w.call(v)}),()=>I(n.default,k)}})},delay:300,loadingComponent:te});return(n,u)=>(m(),$(D(M(d)),{style:N(l.value),"data-slidev-no":e.route.no,class:R({"disable-view-transition":!["slide","presenter"].includes(e.renderContext)})},null,8,["style","data-slidev-no","class"]))}}),ke=b(ae,[["__scopeId","data-v-026ee359"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideWrapper.vue"]]),ze={render(){return[]}},Fe={render(){return[]}};export{Fe as G,ke as S,ze as a,Y as b,p as c,ye as d,ie as e,le as f,Te as g,ve as h,Se as i,_e as j,me as k,we as l,re as m,ue as n,be as o,f as p,ce as q,ge as r,he as s,xe as t,pe as u,fe as v,y as w,de as x,Ce as y,h as z};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingControls-BxiOgCac.js","assets/modules/unplugin-icons-DhLcIxB1.js","assets/modules/vue-O-XuQLLR.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/DrawingPreview-lUDfsxKN.js","assets/index-DENYuTHS.js","assets/index-BAThGyva.css","assets/slidev/bottom-WehDtssn.js","assets/bottom-DbIWt59F.css","assets/slidev/context-8sk6R7gr.js","assets/DrawingControls-C5T1oZL5.css","assets/slidev/DrawingLayer-DThRU5_g.js"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{t as D,a8 as Ot,a9 as Dt,y as N,aa as L,ab as W,U as Ft,D as me,ac as Vt,d as Y,ad as jt,C as st,$ as Bt,Y as Gt,b as k,e as A,f as le,h as ce,i as F,o as h,a6 as Ve,x as X,F as H,Z as ke,A as u,l as x,a0 as Ee,a5 as Wt,ae as Kt,c as C,g as b,a7 as zt,k as R,af as nt,M as Ie,r as Ht,ag as Ut,ah as Yt,a1 as ot,ai as rt,j as he,aj as Qt,N as Xt,m as Jt,ak as qt,p as Zt,a as es}from"../modules/vue-O-XuQLLR.js";import{u as se,n as ts,t as Ne,f as we,a as xe,s as ss,c as ie,g as ns,b as U,o as ze,_ as it,p as os,q as He,d as at,C as lt,j as Ue,m as be,v as Ye}from"../index-DENYuTHS.js";import{u as je,D as rs}from"./DrawingPreview-lUDfsxKN.js";import{b as G,t as Re,m as Z,n as ct,o as ut,q as is,r as as,u as ls,v as dt,k as Se,x as Ae,s as fe,p as cs,y as us,f as Qe,z as ae,w as Me,S as ht,g as ft,G as ds,a as hs}from"./bottom-WehDtssn.js";import{e as fs,f as ps,g as vs,h as _s,i as gs,j as ms,k as ys,l as pt,m as ks,n as ws,o as xs,p as bs,q as Ss,r as Ms,s as $s,t as Cs,u as Es,v as Is}from"../modules/unplugin-icons-DhLcIxB1.js";import{u as Ns}from"./context-8sk6R7gr.js";import{t as Rs}from"../modules/shiki-CBnMlxcT.js";function No(t){const{next:e,nextSlide:s,prev:n,prevSlide:o}=se(),{isDrawing:r}=je(),i=D(0),{direction:a,distanceX:l,distanceY:c}=Ot(t,{pointerTypes:["touch"],onSwipeStart(){r.value||(i.value=Dt())},onSwipeEnd(){if(!i.value||r.value)return;const d=Math.abs(l.value),f=Math.abs(c.value);d/window.innerWidth>.3||d>75?a.value==="left"?e():n():(f/window.innerHeight>.4||f>200)&&(a.value==="down"?o():s())}})}const _e=D(1),ge=N(()=>ts.value.length),O=D(0),Be=D(0);function As(){O.value>_e.value&&(O.value-=1)}function Ls(){O.value<ge.value&&(O.value+=1)}function Ts(){if(O.value>_e.value){let t=O.value-Be.value;t<_e.value&&(t=_e.value),O.value=t}}function Ps(){if(O.value<ge.value){let t=O.value+Be.value;t>ge.value&&(t=ge.value),O.value=t}}const Os=[];function Ds(){const{go:t,goFirst:e,goLast:s,next:n,nextSlide:o,prev:r,prevSlide:i}=se(),{drawingEnabled:a}=je(),{escape:l,space:c,shift:d,left:f,right:p,up:v,down:y,enter:_,d:M,g:S,o:I,"`":w}=ct,T={next:n,prev:r,nextSlide:o,prevSlide:i,go:t,goFirst:e,goLast:s,downloadPDF:ut,toggleDark:Ne,toggleOverview:Re,toggleDrawing:()=>a.value=!a.value,escapeOverview:()=>G.value=!1,showGotoDialog:()=>Z.value=!Z.value};let g=[{name:"next_space",key:L(c,W(d)),fn:n,autoRepeat:!0},{name:"prev_space",key:L(c,d),fn:r,autoRepeat:!0},{name:"next_right",key:L(p,W(d),W(G)),fn:n,autoRepeat:!0},{name:"prev_left",key:L(f,W(d),W(G)),fn:r,autoRepeat:!0},{name:"next_page_key",key:"pageDown",fn:n,autoRepeat:!0},{name:"prev_page_key",key:"pageUp",fn:r,autoRepeat:!0},{name:"next_down",key:L(y,W(G)),fn:o,autoRepeat:!0},{name:"prev_up",key:L(v,W(G)),fn:()=>i(!1),autoRepeat:!0},{name:"next_shift",key:L(p,d),fn:o,autoRepeat:!0},{name:"prev_shift",key:L(f,d),fn:()=>i(!1),autoRepeat:!0},{name:"toggle_dark",key:L(M,W(a)),fn:Ne},{name:"toggle_overview",key:L(Ft(I,w),W(a)),fn:Re},{name:"hide_overview",key:L(l,W(a)),fn:()=>G.value=!1},{name:"goto",key:L(S,W(a)),fn:()=>Z.value=!Z.value},{name:"next_overview",key:L(p,G),fn:Ls},{name:"prev_overview",key:L(f,G),fn:As},{name:"up_overview",key:L(v,G),fn:Ts},{name:"down_overview",key:L(y,G),fn:Ps},{name:"goto_from_overview",key:L(_,G),fn:()=>{t(O.value),G.value=!1}}];const P=new Set(g.map($=>$.name));for(const $ of Os){const j=$(T,g);g=g.concat(j)}if(g.filter($=>$.name&&P.has($.name)).length===0){const $=["========== WARNING ==========","defineShortcutsSetup did not return any of the base shortcuts.","See https://sli.dev/custom/config-shortcuts.html for migration.",'If it is intentional, return at least one shortcut with one of the base names (e.g. name:"goto").'].join(`
`);alert($),console.warn($)}return g}const vt=L(W(ls),W(as),is);function Fs(t,e,s=!1){typeof t=="string"&&(t=ct[t]);const n=L(t,vt);let o=0,r;const i=()=>{if(clearTimeout(r),!n.value){o=0;return}s&&(r=setTimeout(i,Math.max(1e3-o*250,150)),o++),e()};return me(n,i,{flush:"sync"})}function Vs(t,e){return Vt(t,s=>{vt.value&&(s.repeat||e())})}function Ro(){const t=Ds();new Map(t.map(s=>[s.key,s])).forEach(s=>{s.fn&&Fs(s.key,s.fn,s.autoRepeat)}),Vs("f",()=>dt.toggle())}const js=Y({__name:"SlideContainer",props:{width:{type:Number},meta:{default:()=>({})},scale:{type:[Number,String]},isMain:{type:Boolean,default:!1}},setup(t){const e=t,{clicksDirection:s,isPrintMode:n}=se(),o=D(),r=jt(o),i=N(()=>e.width?e.width:r.width.value),a=N(()=>e.width?e.width/we.value:r.height.value);e.width&&st(()=>{o.value&&(o.value.style.width=`${i.value}px`,o.value.style.height=`${a.value}px`)});const l=N(()=>i.value/a.value),c=N(()=>e.scale&&!n.value?e.scale:l.value<we.value?i.value/xe.value:a.value*we.value/xe.value),d=N(()=>({height:`${ss.value}px`,width:`${xe.value}px`,transform:`translate(-50%, -50%) scale(${c.value})`,"--slidev-slide-scale":c.value})),f=N(()=>({"select-none":!ie.selectable,"slidev-nav-go-forward":s.value>0,"slidev-nav-go-backward":s.value<0}));return e.isMain&&Bt(N(()=>`
:root {
--slidev-slide-scale: ${c.value};
}
`)),Gt(ns,c),(p,v)=>(h(),k("div",{id:"slide-container",ref_key:"root",ref:o,class:F(["slidev-slides-container",f.value])},[A("div",{id:"slide-content",class:"slidev-slide-content",style:ce(d.value)},[le(p.$slots,"default")],4),le(p.$slots,"controls")],2))}}),Bs=U(js,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideContainer.vue"]]),Gs={class:"select-list"},Ws={class:"title"},Ks={class:"items"},zs=["onClick"],Hs=Y({__name:"SelectList",props:{modelValue:{type:[Object,String,Number]},title:{type:String},items:{type:Array}},setup(t,{emit:e}){const o=Ve(t,"modelValue",e,{passive:!0});return(r,i)=>{const a=fs;return h(),k("div",Gs,[A("div",Ws,X(t.title),1),A("div",Ks,[(h(!0),k(H,null,ke(t.items,l=>(h(),k("div",{key:l.value,class:F(["item",{active:u(o)===l.value}]),onClick:()=>{var c;o.value=l.value,(c=l.onClick)==null||c.call(l)}},[x(a,{class:F(["text-green-500",{"opacity-0":u(o)!==l.value}])},null,8,["class"]),Ee(" "+X(l.display||l.value),1)],10,zs))),128))])])}}}),Us=U(Hs,[["__scopeId","data-v-3f89fa11"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SelectList.vue"]]),Ys={class:"text-sm"},Qs=Y({__name:"Settings",setup(t){const e=[{display:"Fit",value:0},{display:"1:1",value:1}];return(s,n)=>(h(),k("div",Ys,[x(Us,{modelValue:u(Se),"onUpdate:modelValue":n[0]||(n[0]=o=>Wt(Se)?Se.value=o:null),title:"Scale",items:e},null,8,["modelValue"])]))}}),Xs=U(Qs,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Settings.vue"]]),Js={key:0,class:"rounded-md bg-main shadow absolute bottom-10 left-0 z-20","dark:border":"~ main"},qs=Y({__name:"MenuButton",props:{modelValue:{default:!1},disabled:{default:!1}},setup(t,{emit:e}){const o=Ve(t,"modelValue",e,{passive:!0}),r=D();return Kt(r,()=>{o.value=!1}),(i,a)=>(h(),k("div",{ref_key:"el",ref:r,class:"flex relative"},[A("button",{class:F({disabled:t.disabled}),onClick:a[0]||(a[0]=l=>o.value=!u(o))},[le(i.$slots,"button",{class:F({disabled:t.disabled})})],2),(h(),C(zt,null,[u(o)?(h(),k("div",Js,[le(i.$slots,"menu")])):b("v-if",!0)],1024))],512))}}),Zs=U(qs,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/MenuButton.vue"]]),en={},tn={class:"w-1px opacity-10 bg-current m-1 lg:m-2"};function sn(t,e){return h(),k("div",tn)}const pe=U(en,[["render",sn],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/VerticalDivider.vue"]]),nn={class:"sr-only"},on=Y({__name:"IconButton",props:{title:{type:String,required:!0},icon:{type:String,required:!1},as:{type:String,required:!1}},setup(t){return(e,s)=>(h(),C(nt(e.as||"button"),{class:"slidev-icon-btn",title:e.title},{default:R(()=>[A("span",nn,X(e.title),1),le(e.$slots,"default",{},()=>[A("div",{class:F(e.icon)},null,2)])]),_:3},8,["title"]))}}),z=U(on,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/IconButton.vue"]]),rn={render(){return[]}},an={class:"h-40px flex",p:"l-1 t-0.5 r-2",text:"sm leading-2"},ln={class:"my-auto"},cn={class:"opacity-50"},un=Y({__name:"NavControls",props:{persist:{default:!1}},setup(t){const e=t,{currentRoute:s,currentSlideNo:n,hasNext:o,hasPrev:r,isEmbedded:i,isPresenter:a,isPresenterAvailable:l,next:c,prev:d,total:f}=se(),{brush:p,drawingEnabled:v}=je(),y=Ae.smaller("md"),{isFullscreen:_,toggle:M}=dt,S=N(()=>s.value.query.password),I=N(()=>S.value?`?password=${S.value}`:""),w=N(()=>`${ze(n.value,!0)}${I.value}`),T=N(()=>`${ze(n.value,!1)}${I.value}`),g=D();function P(){g.value&&ae.value&&g.value.contains(ae.value)&&ae.value.blur()}const E=N(()=>e.persist?"text-$slidev-controls-foreground bg-transparent":"rounded-md bg-main shadow dark:border dark:border-main"),$=Ie(),j=Ie();return it(()=>import("./DrawingControls-BxiOgCac.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])).then(re=>j.value=re.default),(re,V)=>{const q=ps,We=vs,B=_s,ne=gs,ue=bs,Mt=ms,$t=ys,Ct=pt,Et=ks,It=ws,Nt=Ss,Ke=Ht("RouterLink"),Rt=Ms,At=$s,Lt=Cs,Tt=Es,Pt=xs;return h(),k("nav",{ref_key:"root",ref:g,class:"flex flex-col"},[A("div",{class:F(["flex flex-wrap-reverse text-xl gap-0.5 p-1 lg:gap-1 lg:p-2",E.value]),onMouseleave:P},[u(i)?b("v-if",!0):(h(),C(z,{key:0,title:u(_)?"Close fullscreen":"Enter fullscreen",onClick:u(M)},{default:R(()=>[u(_)?(h(),C(q,{key:0})):(h(),C(We,{key:1}))]),_:1},8,["title","onClick"])),x(z,{class:F({disabled:!u(r)}),title:"Go to previous slide",onClick:u(d)},{default:R(()=>[x(B)]),_:1},8,["class","onClick"]),x(z,{class:F({disabled:!u(o)}),title:"Go to next slide",onClick:u(c)},{default:R(()=>[x(ne)]),_:1},8,["class","onClick"]),u(i)?b("v-if",!0):(h(),C(z,{key:1,title:"Show slide overview",onClick:V[0]||(V[0]=de=>u(Re)())},{default:R(()=>[x(ue)]),_:1})),u(os)?b("v-if",!0):(h(),C(z,{key:2,title:u(He)?"Switch to light mode theme":"Switch to dark mode theme",onClick:V[1]||(V[1]=de=>u(Ne)())},{default:R(()=>[u(He)?(h(),C(Mt,{key:0})):(h(),C($t,{key:1}))]),_:1},8,["title"])),x(pe),u(i)?b("v-if",!0):(h(),k(H,{key:3},[!u(a)&&!u(y)&&$.value?(h(),k(H,{key:0},[x(u($)),x(pe)],64)):b("v-if",!0),u(a)?(h(),C(z,{key:1,title:u(fe)?"Hide presenter cursor":"Show presenter cursor",onClick:V[2]||(V[2]=de=>fe.value=!u(fe))},{default:R(()=>[u(fe)?(h(),C(Ct,{key:0})):(h(),C(Et,{key:1}))]),_:1},8,["title"])):b("v-if",!0)],64)),(!u(ie).drawings.presenterOnly||u(a))&&!u(i)?(h(),k(H,{key:4},[x(z,{class:"relative",title:u(v)?"Hide drawing toolbar":"Show drawing toolbar",onClick:V[3]||(V[3]=de=>v.value=!u(v))},{default:R(()=>[x(It),u(v)?(h(),k("div",{key:0,class:"absolute left-1 right-1 bottom-0 h-0.7 rounded-full",style:ce({background:u(p).color})},null,4)):b("v-if",!0)]),_:1},8,["title"]),x(pe)],64)):b("v-if",!0),u(i)?b("v-if",!0):(h(),k(H,{key:5},[u(a)?(h(),C(Ke,{key:0,to:T.value,class:"slidev-icon-btn",title:"Play Mode"},{default:R(()=>[x(Nt)]),_:1},8,["to"])):b("v-if",!0),u(l)?(h(),C(Ke,{key:1,to:w.value,class:"slidev-icon-btn",title:"Presenter Mode"},{default:R(()=>[x(Rt)]),_:1},8,["to"])):b("v-if",!0),b("v-if",!0),u(a)?(h(),C(z,{key:3,title:"Toggle Presenter Layout",class:"aspect-ratio-initial",onClick:u(us)},{default:R(()=>[x(At),Ee(" "+X(u(cs)),1)]),_:1},8,["onClick"])):b("v-if",!0)],64)),(h(),k(H,{key:6},[u(ie).download?(h(),C(z,{key:0,title:"Download as PDF",onClick:u(ut)},{default:R(()=>[x(Lt)]),_:1},8,["onClick"])):b("v-if",!0)],64)),!u(a)&&u(ie).info&&!u(i)?(h(),C(z,{key:7,title:"Show info",onClick:V[5]||(V[5]=de=>Qe.value=!u(Qe))},{default:R(()=>[x(Tt)]),_:1})):b("v-if",!0),!u(a)&&!u(i)?(h(),C(Zs,{key:8},{button:R(()=>[x(z,{title:"Adjust settings"},{default:R(()=>[x(Pt)]),_:1})]),menu:R(()=>[x(Xs)]),_:1})):b("v-if",!0),u(i)?b("v-if",!0):(h(),C(pe,{key:9})),A("div",an,[A("div",ln,[Ee(X(u(n))+" ",1),A("span",cn,"/ "+X(u(f)),1)])]),x(u(rn))],34)],512)}}}),Ao=U(un,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NavControls.vue"]]),dn=["onClick"],hn={class:"text-green font-bold"},fn={class:"opacity-50"},pn={key:1,class:"opacity-50"},vn={key:0,class:"fixed top-4 right-4 text-gray-400 flex flex-col items-center gap-2"},$e=4*16*2,Xe=2*16,_n=Y({__name:"QuickOverview",props:{modelValue:{type:Boolean,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const o=Ve(t,"modelValue",e),{currentSlideNo:r,go:i,slides:a}=se();function l(){o.value=!1}function c(M){i(M),l()}function d(M){return M===O.value}const f=Ae.smaller("xs"),p=Ae.smaller("sm"),v=N(()=>f.value?Me.width.value-$e:p.value?(Me.width.value-$e-Xe)/2:300),y=N(()=>Math.floor((Me.width.value-$e)/(v.value+Xe))),_=D("");return Ut("keypress",M=>{if(!G.value){_.value="";return}if(M.key==="Enter"){M.preventDefault(),_.value?(c(+_.value),_.value=""):c(O.value);return}const S=Number.parseInt(M.key.replace(/[^0-9]/g,""));if(Number.isNaN(S)){_.value="";return}if(!_.value&&S===0)return;if(_.value+=String(S),+_.value>=a.value.length){_.value="";return}const I=a.value.findIndex(w=>`/${w.no}`===_.value);I!==-1&&(O.value=I+1),+_.value*10>a.value.length&&(c(+_.value),_.value="")}),st(()=>{O.value=r.value,Be.value=y.value}),(M,S)=>{const I=Is;return h(),k(H,null,[x(Yt,{"enter-active-class":"duration-150 ease-out","enter-from-class":"opacity-0 scale-102 !backdrop-blur-0px","leave-active-class":"duration-200 ease-in","leave-to-class":"opacity-0 scale-102 !backdrop-blur-0px",persisted:""},{default:R(()=>[ot(A("div",{class:"bg-main !bg-opacity-75 p-16 py-20 overflow-y-auto backdrop-blur-5px fixed left-0 right-0 top-0 h-[calc(var(--vh,1vh)*100)]",onClick:S[0]||(S[0]=w=>l())},[A("div",{class:"grid gap-y-4 gap-x-8 w-full",style:ce(`grid-template-columns: repeat(auto-fit,minmax(${v.value}px,1fr))`)},[(h(!0),k(H,null,ke(u(a),(w,T)=>(h(),k("div",{key:w.no,class:"relative"},[A("div",{class:F(["inline-block border rounded overflow-hidden bg-main hover:border-primary transition",d(T+1)||u(O)===T+1?"border-primary":"border-main"]),onClick:g=>c(w.no)},[(h(),C(Bs,{key:w.no,width:v.value,class:"pointer-events-none"},{default:R(()=>[w!=null&&w.component?(h(),C(ht,{key:0,is:w.component,"clicks-context":u(at)(w,u(lt)),class:F(u(ft)(w)),route:w,"render-context":"overview"},null,8,["is","clicks-context","class","route"])):b("v-if",!0),x(rs,{page:w.no},null,8,["page"])]),_:2},1032,["width"]))],10,dn),A("div",{class:"absolute top-0",style:ce(`left: ${v.value+5}px`)},[_.value&&String(T+1).startsWith(_.value)?(h(),k(H,{key:0},[A("span",hn,X(_.value),1),A("span",fn,X(String(T+1).slice(_.value.length)),1)],64)):(h(),k("span",pn,X(T+1),1))],4)]))),128))],4)],512),[[rt,u(o)]])]),_:1}),u(o)?(h(),k("div",vn,[x(z,{title:"Close",class:"text-2xl",onClick:l},{default:R(()=>[x(I)]),_:1}),b("v-if",!0)])):b("v-if",!0)],64)}}}),Lo=U(_n,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/QuickOverview.vue"]]);function J(t){return Array.isArray?Array.isArray(t):mt(t)==="[object Array]"}const gn=1/0;function mn(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-gn?"-0":e}function yn(t){return t==null?"":mn(t)}function Q(t){return typeof t=="string"}function _t(t){return typeof t=="number"}function kn(t){return t===!0||t===!1||wn(t)&&mt(t)=="[object Boolean]"}function gt(t){return typeof t=="object"}function wn(t){return gt(t)&&t!==null}function K(t){return t!=null}function Ce(t){return!t.trim().length}function mt(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const xn="Incorrect 'index' type",bn=t=>`Invalid value for key ${t}`,Sn=t=>`Pattern length exceeds max of ${t}.`,Mn=t=>`Missing ${t} property in key`,$n=t=>`Property 'weight' in key '${t}' must be a positive integer`,Je=Object.prototype.hasOwnProperty;class Cn{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(n=>{let o=yt(n);this._keys.push(o),this._keyMap[o.id]=o,s+=o.weight}),this._keys.forEach(n=>{n.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function yt(t){let e=null,s=null,n=null,o=1,r=null;if(Q(t)||J(t))n=t,e=qe(t),s=Le(t);else{if(!Je.call(t,"name"))throw new Error(Mn("name"));const i=t.name;if(n=i,Je.call(t,"weight")&&(o=t.weight,o<=0))throw new Error($n(i));e=qe(i),s=Le(i),r=t.getFn}return{path:e,id:s,weight:o,src:n,getFn:r}}function qe(t){return J(t)?t:t.split(".")}function Le(t){return J(t)?t.join("."):t}function En(t,e){let s=[],n=!1;const o=(r,i,a)=>{if(K(r))if(!i[a])s.push(r);else{let l=i[a];const c=r[l];if(!K(c))return;if(a===i.length-1&&(Q(c)||_t(c)||kn(c)))s.push(yn(c));else if(J(c)){n=!0;for(let d=0,f=c.length;d<f;d+=1)o(c[d],i,a+1)}else i.length&&o(c,i,a+1)}};return o(t,Q(e)?e.split("."):e,0),n?s:s[0]}const In={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Nn={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},Rn={location:0,threshold:.6,distance:100},An={useExtendedSearch:!1,getFn:En,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var m={...Nn,...In,...Rn,...An};const Ln=/[^ ]+/g;function Tn(t=1,e=3){const s=new Map,n=Math.pow(10,e);return{get(o){const r=o.match(Ln).length;if(s.has(r))return s.get(r);const i=1/Math.pow(r,.5*t),a=parseFloat(Math.round(i*n)/n);return s.set(r,a),a},clear(){s.clear()}}}class Ge{constructor({getFn:e=m.getFn,fieldNormWeight:s=m.fieldNormWeight}={}){this.norm=Tn(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,n)=>{this._keysMap[s.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Q(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();Q(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,n=this.size();s<n;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!K(e)||Ce(e))return;let n={v:e,i:s,n:this.norm.get(e)};this.records.push(n)}_addObject(e,s){let n={i:s,$:{}};this.keys.forEach((o,r)=>{let i=o.getFn?o.getFn(e):this.getFn(e,o.path);if(K(i)){if(J(i)){let a=[];const l=[{nestedArrIndex:-1,value:i}];for(;l.length;){const{nestedArrIndex:c,value:d}=l.pop();if(K(d))if(Q(d)&&!Ce(d)){let f={v:d,i:c,n:this.norm.get(d)};a.push(f)}else J(d)&&d.forEach((f,p)=>{l.push({nestedArrIndex:p,value:f})})}n.$[r]=a}else if(Q(i)&&!Ce(i)){let a={v:i,n:this.norm.get(i)};n.$[r]=a}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function kt(t,e,{getFn:s=m.getFn,fieldNormWeight:n=m.fieldNormWeight}={}){const o=new Ge({getFn:s,fieldNormWeight:n});return o.setKeys(t.map(yt)),o.setSources(e),o.create(),o}function Pn(t,{getFn:e=m.getFn,fieldNormWeight:s=m.fieldNormWeight}={}){const{keys:n,records:o}=t,r=new Ge({getFn:e,fieldNormWeight:s});return r.setKeys(n),r.setIndexRecords(o),r}function ve(t,{errors:e=0,currentLocation:s=0,expectedLocation:n=0,distance:o=m.distance,ignoreLocation:r=m.ignoreLocation}={}){const i=e/t.length;if(r)return i;const a=Math.abs(n-s);return o?i+a/o:a?1:i}function On(t=[],e=m.minMatchCharLength){let s=[],n=-1,o=-1,r=0;for(let i=t.length;r<i;r+=1){let a=t[r];a&&n===-1?n=r:!a&&n!==-1&&(o=r-1,o-n+1>=e&&s.push([n,o]),n=-1)}return t[r-1]&&r-n>=e&&s.push([n,r-1]),s}const te=32;function Dn(t,e,s,{location:n=m.location,distance:o=m.distance,threshold:r=m.threshold,findAllMatches:i=m.findAllMatches,minMatchCharLength:a=m.minMatchCharLength,includeMatches:l=m.includeMatches,ignoreLocation:c=m.ignoreLocation}={}){if(e.length>te)throw new Error(Sn(te));const d=e.length,f=t.length,p=Math.max(0,Math.min(n,f));let v=r,y=p;const _=a>1||l,M=_?Array(f):[];let S;for(;(S=t.indexOf(e,y))>-1;){let E=ve(e,{currentLocation:S,expectedLocation:p,distance:o,ignoreLocation:c});if(v=Math.min(E,v),y=S+d,_){let $=0;for(;$<d;)M[S+$]=1,$+=1}}y=-1;let I=[],w=1,T=d+f;const g=1<<d-1;for(let E=0;E<d;E+=1){let $=0,j=T;for(;$<j;)ve(e,{errors:E,currentLocation:p+j,expectedLocation:p,distance:o,ignoreLocation:c})<=v?$=j:T=j,j=Math.floor((T-$)/2+$);T=j;let re=Math.max(1,p-j+1),V=i?f:Math.min(p+j,f)+d,q=Array(V+2);q[V+1]=(1<<E)-1;for(let B=V;B>=re;B-=1){let ne=B-1,ue=s[t.charAt(ne)];if(_&&(M[ne]=+!!ue),q[B]=(q[B+1]<<1|1)&ue,E&&(q[B]|=(I[B+1]|I[B])<<1|1|I[B+1]),q[B]&g&&(w=ve(e,{errors:E,currentLocation:ne,expectedLocation:p,distance:o,ignoreLocation:c}),w<=v)){if(v=w,y=ne,y<=p)break;re=Math.max(1,2*p-y)}}if(ve(e,{errors:E+1,currentLocation:p,expectedLocation:p,distance:o,ignoreLocation:c})>v)break;I=q}const P={isMatch:y>=0,score:Math.max(.001,w)};if(_){const E=On(M,a);E.length?l&&(P.indices=E):P.isMatch=!1}return P}function Fn(t){let e={};for(let s=0,n=t.length;s<n;s+=1){const o=t.charAt(s);e[o]=(e[o]||0)|1<<n-s-1}return e}class wt{constructor(e,{location:s=m.location,threshold:n=m.threshold,distance:o=m.distance,includeMatches:r=m.includeMatches,findAllMatches:i=m.findAllMatches,minMatchCharLength:a=m.minMatchCharLength,isCaseSensitive:l=m.isCaseSensitive,ignoreLocation:c=m.ignoreLocation}={}){if(this.options={location:s,threshold:n,distance:o,includeMatches:r,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c},this.pattern=l?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const d=(p,v)=>{this.chunks.push({pattern:p,alphabet:Fn(p),startIndex:v})},f=this.pattern.length;if(f>te){let p=0;const v=f%te,y=f-v;for(;p<y;)d(this.pattern.substr(p,te),p),p+=te;if(v){const _=f-te;d(this.pattern.substr(_),_)}}else d(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:n}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let y={isMatch:!0,score:0};return n&&(y.indices=[[0,e.length-1]]),y}const{location:o,distance:r,threshold:i,findAllMatches:a,minMatchCharLength:l,ignoreLocation:c}=this.options;let d=[],f=0,p=!1;this.chunks.forEach(({pattern:y,alphabet:_,startIndex:M})=>{const{isMatch:S,score:I,indices:w}=Dn(e,y,_,{location:o+M,distance:r,threshold:i,findAllMatches:a,minMatchCharLength:l,includeMatches:n,ignoreLocation:c});S&&(p=!0),f+=I,S&&w&&(d=[...d,...w])});let v={isMatch:p,score:p?f/this.chunks.length:1};return p&&n&&(v.indices=d),v}}class ee{constructor(e){this.pattern=e}static isMultiMatch(e){return Ze(e,this.multiRegex)}static isSingleMatch(e){return Ze(e,this.singleRegex)}search(){}}function Ze(t,e){const s=t.match(e);return s?s[1]:null}class Vn extends ee{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class jn extends ee{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const n=e.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class Bn extends ee{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class Gn extends ee{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class Wn extends ee{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Kn extends ee{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class xt extends ee{constructor(e,{location:s=m.location,threshold:n=m.threshold,distance:o=m.distance,includeMatches:r=m.includeMatches,findAllMatches:i=m.findAllMatches,minMatchCharLength:a=m.minMatchCharLength,isCaseSensitive:l=m.isCaseSensitive,ignoreLocation:c=m.ignoreLocation}={}){super(e),this._bitapSearch=new wt(e,{location:s,threshold:n,distance:o,includeMatches:r,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class bt extends ee{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,n;const o=[],r=this.pattern.length;for(;(n=e.indexOf(this.pattern,s))>-1;)s=n+r,o.push([n,s-1]);const i=!!o.length;return{isMatch:i,score:i?0:1,indices:o}}}const Te=[Vn,bt,Bn,Gn,Kn,Wn,jn,xt],et=Te.length,zn=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Hn="|";function Un(t,e={}){return t.split(Hn).map(s=>{let n=s.trim().split(zn).filter(r=>r&&!!r.trim()),o=[];for(let r=0,i=n.length;r<i;r+=1){const a=n[r];let l=!1,c=-1;for(;!l&&++c<et;){const d=Te[c];let f=d.isMultiMatch(a);f&&(o.push(new d(f,e)),l=!0)}if(!l)for(c=-1;++c<et;){const d=Te[c];let f=d.isSingleMatch(a);if(f){o.push(new d(f,e));break}}}return o})}const Yn=new Set([xt.type,bt.type]);class Qn{constructor(e,{isCaseSensitive:s=m.isCaseSensitive,includeMatches:n=m.includeMatches,minMatchCharLength:o=m.minMatchCharLength,ignoreLocation:r=m.ignoreLocation,findAllMatches:i=m.findAllMatches,location:a=m.location,threshold:l=m.threshold,distance:c=m.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:n,minMatchCharLength:o,findAllMatches:i,ignoreLocation:r,location:a,threshold:l,distance:c},this.pattern=s?e:e.toLowerCase(),this.query=Un(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:o}=this.options;e=o?e:e.toLowerCase();let r=0,i=[],a=0;for(let l=0,c=s.length;l<c;l+=1){const d=s[l];i.length=0,r=0;for(let f=0,p=d.length;f<p;f+=1){const v=d[f],{isMatch:y,indices:_,score:M}=v.search(e);if(y){if(r+=1,a+=M,n){const S=v.constructor.type;Yn.has(S)?i=[...i,..._]:i.push(_)}}else{a=0,r=0,i.length=0;break}}if(r){let f={isMatch:!0,score:a/r};return n&&(f.indices=i),f}}return{isMatch:!1,score:1}}}const Pe=[];function Xn(...t){Pe.push(...t)}function Oe(t,e){for(let s=0,n=Pe.length;s<n;s+=1){let o=Pe[s];if(o.condition(t,e))return new o(t,e)}return new wt(t,e)}const ye={AND:"$and",OR:"$or"},De={PATH:"$path",PATTERN:"$val"},Fe=t=>!!(t[ye.AND]||t[ye.OR]),Jn=t=>!!t[De.PATH],qn=t=>!J(t)&>(t)&&!Fe(t),tt=t=>({[ye.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function St(t,e,{auto:s=!0}={}){const n=o=>{let r=Object.keys(o);const i=Jn(o);if(!i&&r.length>1&&!Fe(o))return n(tt(o));if(qn(o)){const l=i?o[De.PATH]:r[0],c=i?o[De.PATTERN]:o[l];if(!Q(c))throw new Error(bn(l));const d={keyId:Le(l),pattern:c};return s&&(d.searcher=Oe(c,e)),d}let a={children:[],operator:r[0]};return r.forEach(l=>{const c=o[l];J(c)&&c.forEach(d=>{a.children.push(n(d))})}),a};return Fe(t)||(t=tt(t)),n(t)}function Zn(t,{ignoreFieldNorm:e=m.ignoreFieldNorm}){t.forEach(s=>{let n=1;s.matches.forEach(({key:o,norm:r,score:i})=>{const a=o?o.weight:null;n*=Math.pow(i===0&&a?Number.EPSILON:i,(a||1)*(e?1:r))}),s.score=n})}function eo(t,e){const s=t.matches;e.matches=[],K(s)&&s.forEach(n=>{if(!K(n.indices)||!n.indices.length)return;const{indices:o,value:r}=n;let i={indices:o,value:r};n.key&&(i.key=n.key.src),n.idx>-1&&(i.refIndex=n.idx),e.matches.push(i)})}function to(t,e){e.score=t.score}function so(t,e,{includeMatches:s=m.includeMatches,includeScore:n=m.includeScore}={}){const o=[];return s&&o.push(eo),n&&o.push(to),t.map(r=>{const{idx:i}=r,a={item:e[i],refIndex:i};return o.length&&o.forEach(l=>{l(r,a)}),a})}class oe{constructor(e,s={},n){this.options={...m,...s},this.options.useExtendedSearch,this._keyStore=new Cn(this.options.keys),this.setCollection(e,n)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof Ge))throw new Error(xn);this._myIndex=s||kt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){K(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let n=0,o=this._docs.length;n<o;n+=1){const r=this._docs[n];e(r,n)&&(this.removeAt(n),n-=1,o-=1,s.push(r))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:n,includeScore:o,shouldSort:r,sortFn:i,ignoreFieldNorm:a}=this.options;let l=Q(e)?Q(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return Zn(l,{ignoreFieldNorm:a}),r&&l.sort(i),_t(s)&&s>-1&&(l=l.slice(0,s)),so(l,this._docs,{includeMatches:n,includeScore:o})}_searchStringList(e){const s=Oe(e,this.options),{records:n}=this._myIndex,o=[];return n.forEach(({v:r,i,n:a})=>{if(!K(r))return;const{isMatch:l,score:c,indices:d}=s.searchIn(r);l&&o.push({item:r,idx:i,matches:[{score:c,value:r,norm:a,indices:d}]})}),o}_searchLogical(e){const s=St(e,this.options),n=(a,l,c)=>{if(!a.children){const{keyId:f,searcher:p}=a,v=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(l,f),searcher:p});return v&&v.length?[{idx:c,item:l,matches:v}]:[]}const d=[];for(let f=0,p=a.children.length;f<p;f+=1){const v=a.children[f],y=n(v,l,c);if(y.length)d.push(...y);else if(a.operator===ye.AND)return[]}return d},o=this._myIndex.records,r={},i=[];return o.forEach(({$:a,i:l})=>{if(K(a)){let c=n(s,a,l);c.length&&(r[l]||(r[l]={idx:l,item:a,matches:[]},i.push(r[l])),c.forEach(({matches:d})=>{r[l].matches.push(...d)}))}}),i}_searchObjectList(e){const s=Oe(e,this.options),{keys:n,records:o}=this._myIndex,r=[];return o.forEach(({$:i,i:a})=>{if(!K(i))return;let l=[];n.forEach((c,d)=>{l.push(...this._findMatches({key:c,value:i[d],searcher:s}))}),l.length&&r.push({idx:a,item:i,matches:l})}),r}_findMatches({key:e,value:s,searcher:n}){if(!K(s))return[];let o=[];if(J(s))s.forEach(({v:r,i,n:a})=>{if(!K(r))return;const{isMatch:l,score:c,indices:d}=n.searchIn(r);l&&o.push({score:c,key:e,value:r,idx:i,norm:a,indices:d})});else{const{v:r,n:i}=s,{isMatch:a,score:l,indices:c}=n.searchIn(r);a&&o.push({score:l,key:e,value:r,norm:i,indices:c})}return o}}oe.version="7.0.0";oe.createIndex=kt;oe.parseIndex=Pn;oe.config=m;oe.parseQuery=St;Xn(Qn);const no={key:0},oo={key:1},ro={key:2},io={key:3},ao={key:4},lo=Y({__name:"title-renderer",props:{no:{type:[Number,String],required:!1}},setup(t){const e=t,{$page:s}=Ns(),n=N(()=>+(e.no??s.value));return(o,r)=>(h(),k("div",null,[n.value===1?(h(),k("p",no,"Nix for genetics")):n.value===2?(h(),k("p",oo,"Next-generation sequencing")):n.value===3?(h(),k("p",ro,"Bioinformatics pipeline")):n.value===4?(h(),k("p",io,"Nix : excellent community")):n.value===5?(h(),k("p",ao,"Thank you !")):b("v-if",!0)]))}}),co=U(lo,[["__file","/@slidev/title-renderer.md"]]),uo={class:"bg-main transform",shadow:"~",p:"x-4 y-2",border:"~ transparent rounded dark:main"},ho=["value","disabled"],fo=["border","onClick"],po={"w-4":"","text-right":"",op50:"","text-sm":""},vo=Y({__name:"Goto",setup(t){const e=D(),s=D(),n=D(),o=D(),r=D(""),i=D(0),{go:a,slides:l}=se();function c(g){return g!=null}const d=N(()=>new oe(l.value.map(g=>{var P;return(P=g.meta)==null?void 0:P.slide}).filter(c),{keys:["no","title"],threshold:.3,shouldSort:!0,minMatchCharLength:1})),f=N(()=>r.value.startsWith("/")?r.value.substring(1):r.value),p=N(()=>d.value.search(f.value).map(g=>g.item)),v=N(()=>!!p.value.length);function y(){if(v.value){const g=p.value.at(i.value||0);g&&a(g.no)}_()}function _(){r.value="",Z.value=!1}function M(g){g.preventDefault(),i.value++,i.value>=p.value.length&&(i.value=0),I()}function S(g){g.preventDefault(),i.value--,i.value<=-2&&(i.value=p.value.length-1),I()}function I(){var P;const g=(P=o.value)==null?void 0:P[i.value];g&&n.value&&(g.offsetTop+g.offsetHeight>n.value.offsetHeight+n.value.scrollTop?n.value.scrollTo({behavior:"smooth",top:g.offsetTop+g.offsetHeight-n.value.offsetHeight+1}):g.offsetTop<n.value.scrollTop&&n.value.scrollTo({behavior:"smooth",top:g.offsetTop}))}function w(g){i.value=0,r.value=g.target.value}function T(g){a(g),_()}return me(Z,async g=>{var P;g?(r.value="",i.value=0,setTimeout(()=>{var E;return(E=s.value)==null?void 0:E.focus()},0)):(P=s.value)==null||P.blur()}),me(ae,()=>{var g;(g=e.value)!=null&&g.contains(ae.value)||_()}),(g,P)=>(h(),k("div",{id:"slidev-goto-dialog",ref_key:"container",ref:e,class:F(["fixed right-5 transition-all",u(Z)?"top-5":"-top-20"]),"w-90":"","max-w-90":"","min-w-90":""},[A("div",uo,[A("input",{id:"slidev-goto-input",ref_key:"input",ref:s,value:r.value,type:"text",disabled:!u(Z),class:F(["outline-none bg-transparent",{"text-red-400":!v.value&&r.value}]),placeholder:"Goto...",onKeydown:[he(y,["enter"]),he(_,["escape"]),he(M,["down"]),he(S,["up"])],onInput:w},null,42,ho)]),p.value.length>0?(h(),k("ul",{key:0,ref_key:"list",ref:n,class:"autocomplete-list",shadow:"~",border:"~ transparent rounded dark:main"},[(h(!0),k(H,null,ke(p.value,(E,$)=>(h(),k("li",{ref_for:!0,ref_key:"items",ref:o,key:E.id,role:"button",tabindex:"0",p:"x-4 y-2","cursor-pointer":"",hover:"op100",flex:"~ gap-2","w-90":"","items-center":"",border:$===0?"":"t main",class:F(i.value===$?"bg-active op100":"op80"),onClick:Qt(j=>T(E.no),["stop","prevent"])},[A("div",po,X(E.no),1),x(u(co),{no:E.no},null,8,["no"])],10,fo))),128))],512)):b("v-if",!0)],2))}}),To=U(vo,[["__scopeId","data-v-f5ee02a7"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Goto.vue"]]);function _o(){const t=Xt(),e=D(!1);let s,n;const o=typeof document<"u"&&"startViewTransition"in document;return t.beforeResolve((r,i)=>{var _,M,S,I;const a=(_=Ue(i.params.no))==null?void 0:_.meta,l=(M=Ue(r.params.no))==null?void 0:M.meta,c=(S=a==null?void 0:a.slide)==null?void 0:S.no,d=(I=l==null?void 0:l.slide)==null?void 0:I.no;if((c!=null&&d!=null&&((c<d?a==null?void 0:a.transition:l==null?void 0:l.transition)??ie.transition))!=="view-transition"){e.value=!1;return}if(!o){e.value=!1,console.warn("View transition is not supported in your browser, fallback to normal transition.");return}e.value=!0;const p=new Promise((w,T)=>{s=w,n=T});let v;const y=new Promise(w=>v=w);return setTimeout(()=>{document.startViewTransition(()=>(v(),p))},50),y}),o&&t.afterEach(()=>{s==null||s(),n==null||n()}),e}const go={key:0,class:"absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl"},mo=Y({__name:"PresenterMouse",setup(t){return(e,s)=>{const n=pt;return u(be).cursor?(h(),k("div",go,[x(n,{class:"absolute stroke-white dark:stroke-black",style:ce({left:`${u(be).cursor.x}%`,top:`${u(be).cursor.y}%`,strokeWidth:16})},null,8,["style"])])):b("v-if",!0)}}}),yo=U(mo,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PresenterMouse.vue"]]),ko=t=>(Zt("data-v-afb4231e"),t=t(),es(),t),wo=ko(()=>A("div",{id:"twoslash-container"},null,-1)),xo=Y({__name:"SlidesShow",props:{renderContext:{type:String,required:!0}},setup(t){const{currentSlideRoute:e,currentTransition:s,getPrimaryClicks:n,isPresenter:o,nextRoute:r,slides:i,isPrintMode:a,isPrintWithClicks:l}=se();me(e,()=>{var v,y;(v=e.value)!=null&&v.meta&&e.value.meta.preload!==!1&&(e.value.meta.__preloaded=!0),(y=r.value)!=null&&y.meta&&r.value.meta.preload!==!1&&(r.value.meta.__preloaded=!0)},{immediate:!0});const c=_o(),d=Ie();it(()=>import("./DrawingLayer-DThRU5_g.js"),__vite__mapDeps([12,2,10,6,3,4,7,5,8,9])).then(v=>d.value=v.default);const f=N(()=>i.value.filter(v=>{var y;return((y=v.meta)==null?void 0:y.__preloaded)||v===e.value}));function p(){Ye.value=!0,Rs()}return(v,y)=>(h(),k(H,null,[b(" Global Bottom "),x(u(ds)),b(" Slides "),(h(),C(nt(u(c)?"div":qt),Jt(u(Ye)?{}:u(s),{id:"slideshow",tag:"div",onAfterLeave:p}),{default:R(()=>[(h(!0),k(H,null,ke(f.value,_=>ot((h(),k("div",{key:_.no},[x(ht,{is:_.component,"clicks-context":u(a)&&!u(l)?u(at)(_,u(lt)):u(n)(_),class:F([u(ft)(_),"overflow-hidden"]),route:_,"render-context":v.renderContext},null,8,["is","clicks-context","class","route","render-context"])])),[[rt,_===u(e)]])),128))]),_:1},16)),wo,b(" Global Top "),x(u(hs)),d.value?(h(),C(u(d),{key:0})):b("v-if",!0),u(o)?b("v-if",!0):(h(),C(yo,{key:1}))],64))}}),Po=U(xo,[["__scopeId","data-v-afb4231e"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlidesShow.vue"]]);export{To as G,z as I,Ao as N,Lo as Q,Bs as S,pe as V,Po as a,Ro as r,No as u};
import{d as i,o as r,c as o,k as l,a0 as p,x as t,A as s,v as c}from"../modules/vue-O-XuQLLR.js";import{a as _,s as d,b as f}from"../index-DENYuTHS.js";const u=i({__name:"PrintStyle",setup(m){function a(n,{slots:e}){if(e.default)return c("style",e.default())}return(n,e)=>(r(),o(a,null,{default:l(()=>[p(" @page { size: "+t(s(_))+"px "+t(s(d))+"px; margin: 0px; } ",1)]),_:1}))}}),y=f(u,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintStyle.vue"]]);export{y as P};
import{d as N,y as q,t as M,D as H,n as B,_ as T,b as m,i as p,e as L,x as b,o as d}from"../modules/vue-O-XuQLLR.js";import{C as w,b as $}from"../index-DENYuTHS.js";const I=["innerHTML"],P=["textContent"],K=["textContent"],k="slidev-note-fade",r="slidev-note-click-mark",R=N({__name:"NoteDisplay",props:{class:{type:String,required:!1},noteHtml:{type:String,required:!1},note:{type:String,required:!1},placeholder:{type:String,required:!1},clicksContext:{type:null,required:!1},autoScroll:{type:Boolean,required:!1}},emits:["markerDblclick","markerClick"],setup(A,{emit:D}){const l=A,v=D,h=q(()=>{var o,n;return((o=l.clicksContext)==null?void 0:o.current)!=null&&((n=l.noteHtml)==null?void 0:n.includes("slidev-note-click-mark"))}),a=M(null);function y(){var S;if(!a.value||!h.value)return;const o=Array.from(a.value.querySelectorAll(`.${r}`)),n=+(((S=l.clicksContext)==null?void 0:S.current)??w),c=n<0||n>=w,g=new Set;function C(e){!e||e===a.value||(g.add(e),e.parentElement&&C(e.parentElement))}const _=new Map;for(const e of o){const t=e.parentElement,s=Number(e.dataset.clicks);_.set(s,e),C(t),Array.from(t.childNodes).forEach(f=>{if(f.nodeType===3){const x=document.createElement("span");x.textContent=f.textContent,t.insertBefore(x,f),f.remove()}})}const E=Array.from(a.value.querySelectorAll("*"));let i=0;const u=new Map;for(const e of E)u.has(i)||u.set(i,[]),u.get(i).push(e),e.classList.contains(r)&&(i=Number(e.dataset.clicks)||i+1);for(const[e,t]of u)c?t.forEach(s=>s.classList.remove(k)):t.forEach(s=>s.classList.toggle(k,g.has(s)?!1:e!==n));for(const[e,t]of _)t.classList.remove(k),t.classList.toggle(`${r}-past`,c?!1:e<n),t.classList.toggle(`${r}-active`,c?!1:e===n),t.classList.toggle(`${r}-next`,c?!1:e===n+1),t.classList.toggle(`${r}-future`,c?!1:e>n+1),t.ondblclick=s=>{v("markerDblclick",s,e),!s.defaultPrevented&&(l.clicksContext.current=e,s.stopPropagation(),s.stopImmediatePropagation())},t.onclick=s=>{v("markerClick",s,e)},l.autoScroll&&e===n&&t.scrollIntoView({block:"center",behavior:"smooth"})}return H(()=>{var o;return[l.noteHtml,(o=l.clicksContext)==null?void 0:o.current]},()=>{B(()=>{y()})},{immediate:!0}),T(()=>{y()}),(o,n)=>o.noteHtml?(d(),m("div",{key:0,ref_key:"noteDisplay",ref:a,class:p(["prose overflow-auto outline-none slidev-note",[l.class,h.value?"slidev-note-with-clicks":""]]),innerHTML:o.noteHtml},null,10,I)):o.note?(d(),m("div",{key:1,class:p(["prose overflow-auto outline-none slidev-note",l.class])},[L("p",{textContent:b(o.note)},null,8,P)],2)):(d(),m("div",{key:2,class:p(["prose overflow-auto outline-none opacity-50 italic select-none slidev-note",l.class])},[L("p",{textContent:b(l.placeholder||"No notes.")},null,8,K)],2))}}),F=$(R,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NoteDisplay.vue"]]);export{F as N};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["assets/c4Diagram-e2511a7a-D4PtnF99.js","assets/svgDrawCommon-99ae2c94-BzrMl0LX.js","assets/modules/vue-O-XuQLLR.js","assets/index-DENYuTHS.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/index-BAThGyva.css","assets/modules/file-saver-EUMWMpoS.js","assets/flowDiagram-e44a2353-oPb14xqg.js","assets/flowDb-147da10a-Cx_grzty.js","assets/graph-af3d5df6-B9Rrt_D8.js","assets/layout-6685625a-TirZJcn7.js","assets/styles-c171666c-DFB0BSW8.js","assets/index-c8395ba2-BeB0hvAS.js","assets/clone-d2e37f8c-kF1Uud7q.js","assets/edges-1e1ebc73-BF9aEHVZ.js","assets/createText-f6615236-DY9JQ1lr.js","assets/line-65d70945-Bv9b7vLo.js","assets/array-b7dcf730-BKyUJesY.js","assets/path-39bad7e2-CbwjOpE9.js","assets/channel-d3ac35ac-BF6w4Boq.js","assets/flowDiagram-v2-a8396bb5-B6uvWRZi.js","assets/erDiagram-582bd92f-Bdp29OHf.js","assets/gitGraphDiagram-d5d647e9-CzK63b8s.js","assets/ganttDiagram-05e48839-BsDG_2Rh.js","assets/linear-d94cf28d-BOPJ1JvI.js","assets/init-cc95ec8e-Gi6I4Gst.js","assets/infoDiagram-00deb277-CwQyZWUw.js","assets/pieDiagram-35c7eafc-Dbp_bXX5.js","assets/arc-5aa99581-BSv9xTON.js","assets/ordinal-475e0c0c-BmOJQ37o.js","assets/quadrantDiagram-9c93c009-sY1BZ1aG.js","assets/xychartDiagram-7b46ecfd-TpNv_eTg.js","assets/requirementDiagram-e882bd67-Cd9l96Nf.js","assets/sequenceDiagram-1767341c-Ckf8lhi2.js","assets/classDiagram-3275847a-CoUbQdy4.js","assets/styles-d48462a7-C8TUyLNy.js","assets/classDiagram-v2-2ed0a7d3-CU0N-Hcd.js","assets/stateDiagram-d2e6f24f-oVYdlYR9.js","assets/styles-15409a09-FaFI1JLV.js","assets/stateDiagram-v2-21d485ae-wuKVlWkf.js","assets/journeyDiagram-a5efd2e1-BV9IvVjZ.js","assets/flowchart-elk-definition-1a3aaf5d-CrpMlA3y.js","assets/timeline-definition-f8c5dfc0-BaOfPiRR.js","assets/mindmap-definition-74120bdd-DdId7Jzm.js","assets/sankeyDiagram-f5d051b7-CEiOBqOk.js","assets/Tableau10-31042135-CvOaoHrI.js","assets/blockDiagram-8beecd1f-CgCJKU_s.js"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{d as Us,t as Xe,y as Bc,C as Ii,o as en,b as Ys,D as Ac,x as Lc,c as Fc,I as Ec}from"../modules/vue-O-XuQLLR.js";import{_ as Z,H as Bo,I as Oc,b as Gs,q as Mc}from"../index-DENYuTHS.js";import{g as $c}from"../modules/file-saver-EUMWMpoS.js";function Ic(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var n=r.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(u){var f,h;return(h=(f=u.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&h!==void 0?h:0})):a},[]);if(n.length){var o=new RegExp(`
[ ]{`+Math.min.apply(Math,n)+"}","g");r=r.map(function(a){return a.replace(o,`
`)})}r[0]=r[0].replace(/^\r?\n/,"");var s=r[0];return e.forEach(function(a,l){var c=s.match(/(?:^|\n)( *)$/),u=c?c[1]:"",f=a;typeof a=="string"&&a.includes(`
`)&&(f=String(a).split(`
`).map(function(h,d){return d===0?h:""+u+h}).join(`
`)),s+=f+r[l+1]}),s}var Dc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Vs={exports:{}};(function(t,e){(function(i,r){t.exports=r()})(Dc,function(){var i=1e3,r=6e4,n=36e5,o="millisecond",s="second",a="minute",l="hour",c="day",u="week",f="month",h="quarter",d="year",_="date",T="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(q){var B=["th","st","nd","rd"],x=q%100;return"["+q+(B[(x-20)%10]||B[x]||B[0])+"]"}},E=function(q,B,x){var M=String(q);return!M||M.length>=B?q:""+Array(B+1-M.length).join(x)+q},L={s:E,z:function(q){var B=-q.utcOffset(),x=Math.abs(B),M=Math.floor(x/60),k=x%60;return(B<=0?"+":"-")+E(M,2,"0")+":"+E(k,2,"0")},m:function q(B,x){if(B.date()<x.date())return-q(x,B);var M=12*(x.year()-B.year())+(x.month()-B.month()),k=B.clone().add(M,f),S=x-k<0,H=B.clone().add(M+(S?-1:1),f);return+(-(M+(x-k)/(S?k-H:H-k))||0)},a:function(q){return q<0?Math.ceil(q)||0:Math.floor(q)},p:function(q){return{M:f,y:d,w:u,d:c,D:_,h:l,m:a,s,ms:o,Q:h}[q]||String(q||"").toLowerCase().replace(/s$/,"")},u:function(q){return q===void 0}},R="en",m={};m[R]=y;var b="$isDayjsObject",O=function(q){return q instanceof St||!(!q||!q[b])},Zt=function q(B,x,M){var k;if(!B)return R;if(typeof B=="string"){var S=B.toLowerCase();m[S]&&(k=S),x&&(m[S]=x,k=S);var H=B.split("-");if(!k&&H.length>1)return q(H[0])}else{var W=B.name;m[W]=B,k=W}return!M&&k&&(R=k),k||!M&&R},G=function(q,B){if(O(q))return q.clone();var x=typeof B=="object"?B:{};return x.date=q,x.args=arguments,new St(x)},Y=L;Y.l=Zt,Y.i=O,Y.w=function(q,B){return G(q,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var St=function(){function q(x){this.$L=Zt(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[b]=!0}var B=q.prototype;return B.parse=function(x){this.$d=function(M){var k=M.date,S=M.utc;if(k===null)return new Date(NaN);if(Y.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var H=k.match(w);if(H){var W=H[2]-1||0,K=(H[7]||"0").substring(0,3);return S?new Date(Date.UTC(H[1],W,H[3]||1,H[4]||0,H[5]||0,H[6]||0,K)):new Date(H[1],W,H[3]||1,H[4]||0,H[5]||0,H[6]||0,K)}}return new Date(k)}(x),this.init()},B.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},B.$utils=function(){return Y},B.isValid=function(){return this.$d.toString()!==T},B.isSame=function(x,M){var k=G(x);return this.startOf(M)<=k&&k<=this.endOf(M)},B.isAfter=function(x,M){return G(x)<this.startOf(M)},B.isBefore=function(x,M){return this.endOf(M)<G(x)},B.$g=function(x,M,k){return Y.u(x)?this[M]:this.set(k,x)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function(x,M){var k=this,S=!!Y.u(M)||M,H=Y.p(x),W=function(Ot,Q){var nt=Y.w(k.$u?Date.UTC(k.$y,Q,Ot):new Date(k.$y,Q,Ot),k);return S?nt:nt.endOf(c)},K=function(Ot,Q){return Y.w(k.toDate()[Ot].apply(k.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(Q)),k)},j=this.$W,J=this.$M,rt=this.$D,Pt="set"+(this.$u?"UTC":"");switch(H){case d:return S?W(1,0):W(31,11);case f:return S?W(1,J):W(0,J+1);case u:var wt=this.$locale().weekStart||0,Qt=(j<wt?j+7:j)-wt;return W(S?rt-Qt:rt+(6-Qt),J);case c:case _:return K(Pt+"Hours",0);case l:return K(Pt+"Minutes",1);case a:return K(Pt+"Seconds",2);case s:return K(Pt+"Milliseconds",3);default:return this.clone()}},B.endOf=function(x){return this.startOf(x,!1)},B.$set=function(x,M){var k,S=Y.p(x),H="set"+(this.$u?"UTC":""),W=(k={},k[c]=H+"Date",k[_]=H+"Date",k[f]=H+"Month",k[d]=H+"FullYear",k[l]=H+"Hours",k[a]=H+"Minutes",k[s]=H+"Seconds",k[o]=H+"Milliseconds",k)[S],K=S===c?this.$D+(M-this.$W):M;if(S===f||S===d){var j=this.clone().set(_,1);j.$d[W](K),j.init(),this.$d=j.set(_,Math.min(this.$D,j.daysInMonth())).$d}else W&&this.$d[W](K);return this.init(),this},B.set=function(x,M){return this.clone().$set(x,M)},B.get=function(x){return this[Y.p(x)]()},B.add=function(x,M){var k,S=this;x=Number(x);var H=Y.p(M),W=function(J){var rt=G(S);return Y.w(rt.date(rt.date()+Math.round(J*x)),S)};if(H===f)return this.set(f,this.$M+x);if(H===d)return this.set(d,this.$y+x);if(H===c)return W(1);if(H===u)return W(7);var K=(k={},k[a]=r,k[l]=n,k[s]=i,k)[H]||1,j=this.$d.getTime()+x*K;return Y.w(j,this)},B.subtract=function(x,M){return this.add(-1*x,M)},B.format=function(x){var M=this,k=this.$locale();if(!this.isValid())return k.invalidDate||T;var S=x||"YYYY-MM-DDTHH:mm:ssZ",H=Y.z(this),W=this.$H,K=this.$m,j=this.$M,J=k.weekdays,rt=k.months,Pt=k.meridiem,wt=function(Q,nt,qt,te){return Q&&(Q[nt]||Q(M,S))||qt[nt].slice(0,te)},Qt=function(Q){return Y.s(W%12||12,Q,"0")},Ot=Pt||function(Q,nt,qt){var te=Q<12?"AM":"PM";return qt?te.toLowerCase():te};return S.replace(A,function(Q,nt){return nt||function(qt){switch(qt){case"YY":return String(M.$y).slice(-2);case"YYYY":return Y.s(M.$y,4,"0");case"M":return j+1;case"MM":return Y.s(j+1,2,"0");case"MMM":return wt(k.monthsShort,j,rt,3);case"MMMM":return wt(rt,j);case"D":return M.$D;case"DD":return Y.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return wt(k.weekdaysMin,M.$W,J,2);case"ddd":return wt(k.weekdaysShort,M.$W,J,3);case"dddd":return J[M.$W];case"H":return String(W);case"HH":return Y.s(W,2,"0");case"h":return Qt(1);case"hh":return Qt(2);case"a":return Ot(W,K,!0);case"A":return Ot(W,K,!1);case"m":return String(K);case"mm":return Y.s(K,2,"0");case"s":return String(M.$s);case"ss":return Y.s(M.$s,2,"0");case"SSS":return Y.s(M.$ms,3,"0");case"Z":return H}return null}(Q)||H.replace(":","")})},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function(x,M,k){var S,H=this,W=Y.p(M),K=G(x),j=(K.utcOffset()-this.utcOffset())*r,J=this-K,rt=function(){return Y.m(H,K)};switch(W){case d:S=rt()/12;break;case f:S=rt();break;case h:S=rt()/3;break;case u:S=(J-j)/6048e5;break;case c:S=(J-j)/864e5;break;case l:S=J/n;break;case a:S=J/r;break;case s:S=J/i;break;default:S=J}return k?S:Y.a(S)},B.daysInMonth=function(){return this.endOf(f).$D},B.$locale=function(){return m[this.$L]},B.locale=function(x,M){if(!x)return this.$L;var k=this.clone(),S=Zt(x,M,!0);return S&&(k.$L=S),k},B.clone=function(){return Y.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},q}(),Jt=St.prototype;return G.prototype=Jt,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",c],["$M",f],["$y",d],["$D",_]].forEach(function(q){Jt[q[1]]=function(B){return this.$g(B,q[0],q[1])}}),G.extend=function(q,B){return q.$i||(q(B,St,G),q.$i=!0),G},G.locale=Zt,G.isDayjs=O,G.unix=function(q){return G(1e3*q)},G.en=m[R],G.Ls=m,G.p={},G})})(Vs);var Rc=Vs.exports;const Pc=Nc(Rc),Ht={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},N={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},Sn=function(t="fatal"){let e=Ht.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Ht&&(e=Ht[t])):typeof t=="number"&&(e=t),N.trace=()=>{},N.debug=()=>{},N.info=()=>{},N.warn=()=>{},N.error=()=>{},N.fatal=()=>{},e<=Ht.fatal&&(N.fatal=console.error?console.error.bind(console,Tt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Tt("FATAL"))),e<=Ht.error&&(N.error=console.error?console.error.bind(console,Tt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Tt("ERROR"))),e<=Ht.warn&&(N.warn=console.warn?console.warn.bind(console,Tt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Tt("WARN"))),e<=Ht.info&&(N.info=console.info?console.info.bind(console,Tt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Tt("INFO"))),e<=Ht.debug&&(N.debug=console.debug?console.debug.bind(console,Tt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Tt("DEBUG"))),e<=Ht.trace&&(N.trace=console.debug?console.debug.bind(console,Tt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Tt("TRACE")))},Tt=t=>`%c${Pc().format("ss.SSS")} : ${t} : `;var Xs={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeUrl=t.BLANK_URL=void 0;var e=/^([^\w]*)(javascript|data|vbscript)/im,i=/&#(\w+)(^\w|;)?/g,r=/&(newline|tab);/gi,n=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,o=/^.+(:|:)/gim,s=[".","/"];t.BLANK_URL="about:blank";function a(u){return s.indexOf(u[0])>-1}function l(u){var f=u.replace(n,"");return f.replace(i,function(h,d){return String.fromCharCode(d)})}function c(u){if(!u)return t.BLANK_URL;var f=l(u).replace(r,"").replace(n,"").trim();if(!f)return t.BLANK_URL;if(a(f))return f;var h=f.match(o);if(!h)return f;var d=h[0];return e.test(d)?t.BLANK_URL:f}t.sanitizeUrl=c})(Xs);var qc={value:()=>{}};function Ks(){for(var t=0,e=arguments.length,i={},r;t<e;++t){if(!(r=arguments[t]+"")||r in i||/[\s.]/.test(r))throw new Error("illegal type: "+r);i[r]=[]}return new Di(i)}function Di(t){this._=t}function zc(t,e){return t.trim().split(/^|\s+/).map(function(i){var r="",n=i.indexOf(".");if(n>=0&&(r=i.slice(n+1),i=i.slice(0,n)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:r}})}Di.prototype=Ks.prototype={constructor:Di,on:function(t,e){var i=this._,r=zc(t+"",i),n,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((n=(t=r[o]).type)&&(n=Wc(i[n],t.name)))return n;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(n=(t=r[o]).type)i[n]=Ao(i[n],t.name,e);else if(e==null)for(n in i)i[n]=Ao(i[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new Di(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var i=new Array(n),r=0,n,o;r<n;++r)i[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,n=o.length;r<n;++r)o[r].value.apply(e,i)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],n=0,o=r.length;n<o;++n)r[n].value.apply(e,i)}};function Wc(t,e){for(var i=0,r=t.length,n;i<r;++i)if((n=t[i]).name===e)return n.value}function Ao(t,e,i){for(var r=0,n=t.length;r<n;++r)if(t[r].name===e){t[r]=qc,t=t.slice(0,r).concat(t.slice(r+1));break}return i!=null&&t.push({name:e,value:i}),t}var rn="http://www.w3.org/1999/xhtml";const Lo={svg:"http://www.w3.org/2000/svg",xhtml:rn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function gr(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),Lo.hasOwnProperty(e)?{space:Lo[e],local:t}:t}function Hc(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===rn&&e.documentElement.namespaceURI===rn?e.createElement(t):e.createElementNS(i,t)}}function jc(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Zs(t){var e=gr(t);return(e.local?jc:Hc)(e)}function Uc(){}function wn(t){return t==null?Uc:function(){return this.querySelector(t)}}function Yc(t){typeof t!="function"&&(t=wn(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=new Array(s),l,c,u=0;u<s;++u)(l=o[u])&&(c=t.call(l,l.__data__,u,o))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new bt(r,this._parents)}function Gc(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Vc(){return[]}function Js(t){return t==null?Vc:function(){return this.querySelectorAll(t)}}function Xc(t){return function(){return Gc(t.apply(this,arguments))}}function Kc(t){typeof t=="function"?t=Xc(t):t=Js(t);for(var e=this._groups,i=e.length,r=[],n=[],o=0;o<i;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(r.push(t.call(l,l.__data__,c,s)),n.push(l));return new bt(r,n)}function Qs(t){return function(){return this.matches(t)}}function ta(t){return function(e){return e.matches(t)}}var Zc=Array.prototype.find;function Jc(t){return function(){return Zc.call(this.children,t)}}function Qc(){return this.firstElementChild}function th(t){return this.select(t==null?Qc:Jc(typeof t=="function"?t:ta(t)))}var eh=Array.prototype.filter;function ih(){return Array.from(this.children)}function rh(t){return function(){return eh.call(this.children,t)}}function nh(t){return this.selectAll(t==null?ih:rh(typeof t=="function"?t:ta(t)))}function oh(t){typeof t!="function"&&(t=Qs(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new bt(r,this._parents)}function ea(t){return new Array(t.length)}function sh(){return new bt(this._enter||this._groups.map(ea),this._parents)}function Gi(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Gi.prototype={constructor:Gi,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function ah(t){return function(){return t}}function lh(t,e,i,r,n,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):i[s]=new Gi(t,o[s]);for(;s<l;++s)(a=e[s])&&(n[s]=a)}function ch(t,e,i,r,n,o,s){var a,l,c=new Map,u=e.length,f=o.length,h=new Array(u),d;for(a=0;a<u;++a)(l=e[a])&&(h[a]=d=s.call(l,l.__data__,a,e)+"",c.has(d)?n[a]=l:c.set(d,l));for(a=0;a<f;++a)d=s.call(t,o[a],a,o)+"",(l=c.get(d))?(r[a]=l,l.__data__=o[a],c.delete(d)):i[a]=new Gi(t,o[a]);for(a=0;a<u;++a)(l=e[a])&&c.get(h[a])===l&&(n[a]=l)}function hh(t){return t.__data__}function uh(t,e){if(!arguments.length)return Array.from(this,hh);var i=e?ch:lh,r=this._parents,n=this._groups;typeof t!="function"&&(t=ah(t));for(var o=n.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var u=r[c],f=n[c],h=f.length,d=fh(t.call(u,u&&u.__data__,c,r)),_=d.length,T=a[c]=new Array(_),w=s[c]=new Array(_),A=l[c]=new Array(h);i(u,f,T,w,A,d,e);for(var y=0,E=0,L,R;y<_;++y)if(L=T[y]){for(y>=E&&(E=y+1);!(R=w[E])&&++E<_;);L._next=R||null}}return s=new bt(s,r),s._enter=a,s._exit=l,s}function fh(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function dh(){return new bt(this._exit||this._groups.map(ea),this._parents)}function ph(t,e,i){var r=this.enter(),n=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),i==null?o.remove():i(o),r&&n?r.merge(n).order():n}function gh(t){for(var e=t.selection?t.selection():t,i=this._groups,r=e._groups,n=i.length,o=r.length,s=Math.min(n,o),a=new Array(n),l=0;l<s;++l)for(var c=i[l],u=r[l],f=c.length,h=a[l]=new Array(f),d,_=0;_<f;++_)(d=c[_]||u[_])&&(h[_]=d);for(;l<n;++l)a[l]=i[l];return new bt(a,this._parents)}function mh(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var r=t[e],n=r.length-1,o=r[n],s;--n>=0;)(s=r[n])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function _h(t){t||(t=yh);function e(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}for(var i=this._groups,r=i.length,n=new Array(r),o=0;o<r;++o){for(var s=i[o],a=s.length,l=n[o]=new Array(a),c,u=0;u<a;++u)(c=s[u])&&(l[u]=c);l.sort(e)}return new bt(n,this._parents).order()}function yh(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Ch(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function bh(){return Array.from(this)}function xh(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,o=r.length;n<o;++n){var s=r[n];if(s)return s}return null}function Th(){let t=0;for(const e of this)++t;return t}function vh(){return!this.node()}function kh(t){for(var e=this._groups,i=0,r=e.length;i<r;++i)for(var n=e[i],o=0,s=n.length,a;o<s;++o)(a=n[o])&&t.call(a,a.__data__,o,n);return this}function Sh(t){return function(){this.removeAttribute(t)}}function wh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Bh(t,e){return function(){this.setAttribute(t,e)}}function Ah(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Lh(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function Fh(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function Eh(t,e){var i=gr(t);if(arguments.length<2){var r=this.node();return i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)}return this.each((e==null?i.local?wh:Sh:typeof e=="function"?i.local?Fh:Lh:i.local?Ah:Bh)(i,e))}function ia(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Oh(t){return function(){this.style.removeProperty(t)}}function Mh(t,e,i){return function(){this.style.setProperty(t,e,i)}}function $h(t,e,i){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,i)}}function Ih(t,e,i){return arguments.length>1?this.each((e==null?Oh:typeof e=="function"?$h:Mh)(t,e,i??"")):Fe(this.node(),t)}function Fe(t,e){return t.style.getPropertyValue(e)||ia(t).getComputedStyle(t,null).getPropertyValue(e)}function Dh(t){return function(){delete this[t]}}function Nh(t,e){return function(){this[t]=e}}function Rh(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function Ph(t,e){return arguments.length>1?this.each((e==null?Dh:typeof e=="function"?Rh:Nh)(t,e)):this.node()[t]}function ra(t){return t.trim().split(/^|\s+/)}function Bn(t){return t.classList||new na(t)}function na(t){this._node=t,this._names=ra(t.getAttribute("class")||"")}na.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function oa(t,e){for(var i=Bn(t),r=-1,n=e.length;++r<n;)i.add(e[r])}function sa(t,e){for(var i=Bn(t),r=-1,n=e.length;++r<n;)i.remove(e[r])}function qh(t){return function(){oa(this,t)}}function zh(t){return function(){sa(this,t)}}function Wh(t,e){return function(){(e.apply(this,arguments)?oa:sa)(this,t)}}function Hh(t,e){var i=ra(t+"");if(arguments.length<2){for(var r=Bn(this.node()),n=-1,o=i.length;++n<o;)if(!r.contains(i[n]))return!1;return!0}return this.each((typeof e=="function"?Wh:e?qh:zh)(i,e))}function jh(){this.textContent=""}function Uh(t){return function(){this.textContent=t}}function Yh(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Gh(t){return arguments.length?this.each(t==null?jh:(typeof t=="function"?Yh:Uh)(t)):this.node().textContent}function Vh(){this.innerHTML=""}function Xh(t){return function(){this.innerHTML=t}}function Kh(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Zh(t){return arguments.length?this.each(t==null?Vh:(typeof t=="function"?Kh:Xh)(t)):this.node().innerHTML}function Jh(){this.nextSibling&&this.parentNode.appendChild(this)}function Qh(){return this.each(Jh)}function tu(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function eu(){return this.each(tu)}function iu(t){var e=typeof t=="function"?t:Zs(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function ru(){return null}function nu(t,e){var i=typeof t=="function"?t:Zs(t),r=e==null?ru:typeof e=="function"?e:wn(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})}function ou(){var t=this.parentNode;t&&t.removeChild(this)}function su(){return this.each(ou)}function au(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function lu(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function cu(t){return this.select(t?lu:au)}function hu(t){return arguments.length?this.property("__data__",t):this.node().__data__}function uu(t){return function(e){t.call(this,e,this.__data__)}}function fu(t){return t.trim().split(/^|\s+/).map(function(e){var i="",r=e.indexOf(".");return r>=0&&(i=e.slice(r+1),e=e.slice(0,r)),{type:e,name:i}})}function du(t){return function(){var e=this.__on;if(e){for(var i=0,r=-1,n=e.length,o;i<n;++i)o=e[i],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function pu(t,e,i){return function(){var r=this.__on,n,o=uu(e);if(r){for(var s=0,a=r.length;s<a;++s)if((n=r[s]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=o,n.options=i),n.value=e;return}}this.addEventListener(t.type,o,i),n={type:t.type,name:t.name,value:e,listener:o,options:i},r?r.push(n):this.__on=[n]}}function gu(t,e,i){var r=fu(t+""),n,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(n=0,u=a[l];n<o;++n)if((s=r[n]).type===u.type&&s.name===u.name)return u.value}return}for(a=e?pu:du,n=0;n<o;++n)this.each(a(r[n],e,i));return this}function aa(t,e,i){var r=ia(t),n=r.CustomEvent;typeof n=="function"?n=new n(e,i):(n=r.document.createEvent("Event"),i?(n.initEvent(e,i.bubbles,i.cancelable),n.detail=i.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function mu(t,e){return function(){return aa(this,t,e)}}function _u(t,e){return function(){return aa(this,t,e.apply(this,arguments))}}function yu(t,e){return this.each((typeof e=="function"?_u:mu)(t,e))}function*Cu(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,o=r.length,s;n<o;++n)(s=r[n])&&(yield s)}var la=[null];function bt(t,e){this._groups=t,this._parents=e}function gi(){return new bt([[document.documentElement]],la)}function bu(){return this}bt.prototype=gi.prototype={constructor:bt,select:Yc,selectAll:Kc,selectChild:th,selectChildren:nh,filter:oh,data:uh,enter:sh,exit:dh,join:ph,merge:gh,selection:bu,order:mh,sort:_h,call:Ch,nodes:bh,node:xh,size:Th,empty:vh,each:kh,attr:Eh,style:Ih,property:Ph,classed:Hh,text:Gh,html:Zh,raise:Qh,lower:eu,append:iu,insert:nu,remove:su,clone:cu,datum:hu,on:gu,dispatch:yu,[Symbol.iterator]:Cu};function vt(t){return typeof t=="string"?new bt([[document.querySelector(t)]],[document.documentElement]):new bt([[t]],la)}function An(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function ca(t,e){var i=Object.create(t.prototype);for(var r in e)i[r]=e[r];return i}function mi(){}var oi=.7,Vi=1/oi,Le="\\s*([+-]?\\d+)\\s*",si="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Mt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xu=/^#([0-9a-f]{3,8})$/,Tu=new RegExp(`^rgb\\(${Le},${Le},${Le}\\)$`),vu=new RegExp(`^rgb\\(${Mt},${Mt},${Mt}\\)$`),ku=new RegExp(`^rgba\\(${Le},${Le},${Le},${si}\\)$`),Su=new RegExp(`^rgba\\(${Mt},${Mt},${Mt},${si}\\)$`),wu=new RegExp(`^hsl\\(${si},${Mt},${Mt}\\)$`),Bu=new RegExp(`^hsla\\(${si},${Mt},${Mt},${si}\\)$`),Fo={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};An(mi,ai,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Eo,formatHex:Eo,formatHex8:Au,formatHsl:Lu,formatRgb:Oo,toString:Oo});function Eo(){return this.rgb().formatHex()}function Au(){return this.rgb().formatHex8()}function Lu(){return ha(this).formatHsl()}function Oo(){return this.rgb().formatRgb()}function ai(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=xu.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?Mo(e):i===3?new mt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?Si(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?Si(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Tu.exec(t))?new mt(e[1],e[2],e[3],1):(e=vu.exec(t))?new mt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=ku.exec(t))?Si(e[1],e[2],e[3],e[4]):(e=Su.exec(t))?Si(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=wu.exec(t))?Do(e[1],e[2]/100,e[3]/100,1):(e=Bu.exec(t))?Do(e[1],e[2]/100,e[3]/100,e[4]):Fo.hasOwnProperty(t)?Mo(Fo[t]):t==="transparent"?new mt(NaN,NaN,NaN,0):null}function Mo(t){return new mt(t>>16&255,t>>8&255,t&255,1)}function Si(t,e,i,r){return r<=0&&(t=e=i=NaN),new mt(t,e,i,r)}function Fu(t){return t instanceof mi||(t=ai(t)),t?(t=t.rgb(),new mt(t.r,t.g,t.b,t.opacity)):new mt}function nn(t,e,i,r){return arguments.length===1?Fu(t):new mt(t,e,i,r??1)}function mt(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}An(mt,nn,ca(mi,{brighter(t){return t=t==null?Vi:Math.pow(Vi,t),new mt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?oi:Math.pow(oi,t),new mt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new mt(fe(this.r),fe(this.g),fe(this.b),Xi(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:$o,formatHex:$o,formatHex8:Eu,formatRgb:Io,toString:Io}));function $o(){return`#${ue(this.r)}${ue(this.g)}${ue(this.b)}`}function Eu(){return`#${ue(this.r)}${ue(this.g)}${ue(this.b)}${ue((isNaN(this.opacity)?1:this.opacity)*255)}`}function Io(){const t=Xi(this.opacity);return`${t===1?"rgb(":"rgba("}${fe(this.r)}, ${fe(this.g)}, ${fe(this.b)}${t===1?")":`, ${t})`}`}function Xi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function fe(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ue(t){return t=fe(t),(t<16?"0":"")+t.toString(16)}function Do(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new At(t,e,i,r)}function ha(t){if(t instanceof At)return new At(t.h,t.s,t.l,t.opacity);if(t instanceof mi||(t=ai(t)),!t)return new At;if(t instanceof At)return t;t=t.rgb();var e=t.r/255,i=t.g/255,r=t.b/255,n=Math.min(e,i,r),o=Math.max(e,i,r),s=NaN,a=o-n,l=(o+n)/2;return a?(e===o?s=(i-r)/a+(i<r)*6:i===o?s=(r-e)/a+2:s=(e-i)/a+4,a/=l<.5?o+n:2-o-n,s*=60):a=l>0&&l<1?0:s,new At(s,a,l,t.opacity)}function Ou(t,e,i,r){return arguments.length===1?ha(t):new At(t,e,i,r??1)}function At(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}An(At,Ou,ca(mi,{brighter(t){return t=t==null?Vi:Math.pow(Vi,t),new At(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?oi:Math.pow(oi,t),new At(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*e,n=2*i-r;return new mt(Pr(t>=240?t-240:t+120,n,r),Pr(t,n,r),Pr(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new At(No(this.h),wi(this.s),wi(this.l),Xi(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 t=Xi(this.opacity);return`${t===1?"hsl(":"hsla("}${No(this.h)}, ${wi(this.s)*100}%, ${wi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function No(t){return t=(t||0)%360,t<0?t+360:t}function wi(t){return Math.max(0,Math.min(1,t||0))}function Pr(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const Ln=t=>()=>t;function ua(t,e){return function(i){return t+i*e}}function Mu(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(r){return Math.pow(t+r*e,i)}}function Px(t,e){var i=e-t;return i?ua(t,i>180||i<-180?i-360*Math.round(i/360):i):Ln(isNaN(t)?e:t)}function $u(t){return(t=+t)==1?fa:function(e,i){return i-e?Mu(e,i,t):Ln(isNaN(e)?i:e)}}function fa(t,e){var i=e-t;return i?ua(t,i):Ln(isNaN(t)?e:t)}const Ro=function t(e){var i=$u(e);function r(n,o){var s=i((n=nn(n)).r,(o=nn(o)).r),a=i(n.g,o.g),l=i(n.b,o.b),c=fa(n.opacity,o.opacity);return function(u){return n.r=s(u),n.g=a(u),n.b=l(u),n.opacity=c(u),n+""}}return r.gamma=t,r}(1);function ie(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var on=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qr=new RegExp(on.source,"g");function Iu(t){return function(){return t}}function Du(t){return function(e){return t(e)+""}}function Nu(t,e){var i=on.lastIndex=qr.lastIndex=0,r,n,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=on.exec(t))&&(n=qr.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(n=n[0])?a[s]?a[s]+=n:a[++s]=n:(a[++s]=null,l.push({i:s,x:ie(r,n)})),i=qr.lastIndex;return i<e.length&&(o=e.slice(i),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?Du(l[0].x):Iu(e):(e=l.length,function(c){for(var u=0,f;u<e;++u)a[(f=l[u]).i]=f.x(c);return a.join("")})}var Po=180/Math.PI,sn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function da(t,e,i,r,n,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*i+e*r)&&(i-=t*l,r-=e*l),(a=Math.sqrt(i*i+r*r))&&(i/=a,r/=a,l/=a),t*r<e*i&&(t=-t,e=-e,l=-l,s=-s),{translateX:n,translateY:o,rotate:Math.atan2(e,t)*Po,skewX:Math.atan(l)*Po,scaleX:s,scaleY:a}}var Bi;function Ru(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?sn:da(e.a,e.b,e.c,e.d,e.e,e.f)}function Pu(t){return t==null||(Bi||(Bi=document.createElementNS("http://www.w3.org/2000/svg","g")),Bi.setAttribute("transform",t),!(t=Bi.transform.baseVal.consolidate()))?sn:(t=t.matrix,da(t.a,t.b,t.c,t.d,t.e,t.f))}function pa(t,e,i,r){function n(c){return c.length?c.pop()+" ":""}function o(c,u,f,h,d,_){if(c!==f||u!==h){var T=d.push("translate(",null,e,null,i);_.push({i:T-4,x:ie(c,f)},{i:T-2,x:ie(u,h)})}else(f||h)&&d.push("translate("+f+e+h+i)}function s(c,u,f,h){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),h.push({i:f.push(n(f)+"rotate(",null,r)-2,x:ie(c,u)})):u&&f.push(n(f)+"rotate("+u+r)}function a(c,u,f,h){c!==u?h.push({i:f.push(n(f)+"skewX(",null,r)-2,x:ie(c,u)}):u&&f.push(n(f)+"skewX("+u+r)}function l(c,u,f,h,d,_){if(c!==f||u!==h){var T=d.push(n(d)+"scale(",null,",",null,")");_.push({i:T-4,x:ie(c,f)},{i:T-2,x:ie(u,h)})}else(f!==1||h!==1)&&d.push(n(d)+"scale("+f+","+h+")")}return function(c,u){var f=[],h=[];return c=t(c),u=t(u),o(c.translateX,c.translateY,u.translateX,u.translateY,f,h),s(c.rotate,u.rotate,f,h),a(c.skewX,u.skewX,f,h),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,f,h),c=u=null,function(d){for(var _=-1,T=h.length,w;++_<T;)f[(w=h[_]).i]=w.x(d);return f.join("")}}}var qu=pa(Ru,"px, ","px)","deg)"),zu=pa(Pu,", ",")",")"),Ee=0,Ke=0,je=0,ga=1e3,Ki,Ze,Zi=0,ge=0,mr=0,li=typeof performance=="object"&&performance.now?performance:Date,ma=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Fn(){return ge||(ma(Wu),ge=li.now()+mr)}function Wu(){ge=0}function Ji(){this._call=this._time=this._next=null}Ji.prototype=_a.prototype={constructor:Ji,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?Fn():+i)+(e==null?0:+e),!this._next&&Ze!==this&&(Ze?Ze._next=this:Ki=this,Ze=this),this._call=t,this._time=i,an()},stop:function(){this._call&&(this._call=null,this._time=1/0,an())}};function _a(t,e,i){var r=new Ji;return r.restart(t,e,i),r}function Hu(){Fn(),++Ee;for(var t=Ki,e;t;)(e=ge-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Ee}function qo(){ge=(Zi=li.now())+mr,Ee=Ke=0;try{Hu()}finally{Ee=0,Uu(),ge=0}}function ju(){var t=li.now(),e=t-Zi;e>ga&&(mr-=e,Zi=t)}function Uu(){for(var t,e=Ki,i,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(i=e._next,e._next=null,e=t?t._next=i:Ki=i);Ze=t,an(r)}function an(t){if(!Ee){Ke&&(Ke=clearTimeout(Ke));var e=t-ge;e>24?(t<1/0&&(Ke=setTimeout(qo,t-li.now()-mr)),je&&(je=clearInterval(je))):(je||(Zi=li.now(),je=setInterval(ju,ga)),Ee=1,ma(qo))}}function zo(t,e,i){var r=new Ji;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var Yu=Ks("start","end","cancel","interrupt"),Gu=[],ya=0,Wo=1,ln=2,Ni=3,Ho=4,cn=5,Ri=6;function _r(t,e,i,r,n,o){var s=t.__transition;if(!s)t.__transition={};else if(i in s)return;Vu(t,i,{name:e,index:r,group:n,on:Yu,tween:Gu,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ya})}function En(t,e){var i=Et(t,e);if(i.state>ya)throw new Error("too late; already scheduled");return i}function Nt(t,e){var i=Et(t,e);if(i.state>Ni)throw new Error("too late; already running");return i}function Et(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Vu(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=_a(o,0,i.time);function o(c){i.state=Wo,i.timer.restart(s,i.delay,i.time),i.delay<=c&&s(c-i.delay)}function s(c){var u,f,h,d;if(i.state!==Wo)return l();for(u in r)if(d=r[u],d.name===i.name){if(d.state===Ni)return zo(s);d.state===Ho?(d.state=Ri,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[u]):+u<e&&(d.state=Ri,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[u])}if(zo(function(){i.state===Ni&&(i.state=Ho,i.timer.restart(a,i.delay,i.time),a(c))}),i.state=ln,i.on.call("start",t,t.__data__,i.index,i.group),i.state===ln){for(i.state=Ni,n=new Array(h=i.tween.length),u=0,f=-1;u<h;++u)(d=i.tween[u].value.call(t,t.__data__,i.index,i.group))&&(n[++f]=d);n.length=f+1}}function a(c){for(var u=c<i.duration?i.ease.call(null,c/i.duration):(i.timer.restart(l),i.state=cn,1),f=-1,h=n.length;++f<h;)n[f].call(t,u);i.state===cn&&(i.on.call("end",t,t.__data__,i.index,i.group),l())}function l(){i.state=Ri,i.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function Xu(t,e){var i=t.__transition,r,n,o=!0,s;if(i){e=e==null?null:e+"";for(s in i){if((r=i[s]).name!==e){o=!1;continue}n=r.state>ln&&r.state<cn,r.state=Ri,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete i[s]}o&&delete t.__transition}}function Ku(t){return this.each(function(){Xu(this,t)})}function Zu(t,e){var i,r;return function(){var n=Nt(this,t),o=n.tween;if(o!==i){r=i=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}n.tween=r}}function Ju(t,e,i){var r,n;if(typeof i!="function")throw new Error;return function(){var o=Nt(this,t),s=o.tween;if(s!==r){n=(r=s).slice();for(var a={name:e,value:i},l=0,c=n.length;l<c;++l)if(n[l].name===e){n[l]=a;break}l===c&&n.push(a)}o.tween=n}}function Qu(t,e){var i=this._id;if(t+="",arguments.length<2){for(var r=Et(this.node(),i).tween,n=0,o=r.length,s;n<o;++n)if((s=r[n]).name===t)return s.value;return null}return this.each((e==null?Zu:Ju)(i,t,e))}function On(t,e,i){var r=t._id;return t.each(function(){var n=Nt(this,r);(n.value||(n.value={}))[e]=i.apply(this,arguments)}),function(n){return Et(n,r).value[e]}}function Ca(t,e){var i;return(typeof e=="number"?ie:e instanceof ai?Ro:(i=ai(e))?(e=i,Ro):Nu)(t,e)}function tf(t){return function(){this.removeAttribute(t)}}function ef(t){return function(){this.removeAttributeNS(t.space,t.local)}}function rf(t,e,i){var r,n=i+"",o;return function(){var s=this.getAttribute(t);return s===n?null:s===r?o:o=e(r=s,i)}}function nf(t,e,i){var r,n=i+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===n?null:s===r?o:o=e(r=s,i)}}function of(t,e,i){var r,n,o;return function(){var s,a=i(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a)))}}function sf(t,e,i){var r,n,o;return function(){var s,a=i(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a)))}}function af(t,e){var i=gr(t),r=i==="transform"?zu:Ca;return this.attrTween(t,typeof e=="function"?(i.local?sf:of)(i,r,On(this,"attr."+t,e)):e==null?(i.local?ef:tf)(i):(i.local?nf:rf)(i,r,e))}function lf(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function cf(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function hf(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&cf(t,o)),i}return n._value=e,n}function uf(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&lf(t,o)),i}return n._value=e,n}function ff(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var r=gr(t);return this.tween(i,(r.local?hf:uf)(r,e))}function df(t,e){return function(){En(this,t).delay=+e.apply(this,arguments)}}function pf(t,e){return e=+e,function(){En(this,t).delay=e}}function gf(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?df:pf)(e,t)):Et(this.node(),e).delay}function mf(t,e){return function(){Nt(this,t).duration=+e.apply(this,arguments)}}function _f(t,e){return e=+e,function(){Nt(this,t).duration=e}}function yf(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?mf:_f)(e,t)):Et(this.node(),e).duration}function Cf(t,e){if(typeof e!="function")throw new Error;return function(){Nt(this,t).ease=e}}function bf(t){var e=this._id;return arguments.length?this.each(Cf(e,t)):Et(this.node(),e).ease}function xf(t,e){return function(){var i=e.apply(this,arguments);if(typeof i!="function")throw new Error;Nt(this,t).ease=i}}function Tf(t){if(typeof t!="function")throw new Error;return this.each(xf(this._id,t))}function vf(t){typeof t!="function"&&(t=Qs(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new Xt(r,this._parents,this._name,this._id)}function kf(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,r=e.length,n=i.length,o=Math.min(r,n),s=new Array(r),a=0;a<o;++a)for(var l=e[a],c=i[a],u=l.length,f=s[a]=new Array(u),h,d=0;d<u;++d)(h=l[d]||c[d])&&(f[d]=h);for(;a<r;++a)s[a]=e[a];return new Xt(s,this._parents,this._name,this._id)}function Sf(t){return(t+"").trim().split(/^|\s+/).every(function(e){var i=e.indexOf(".");return i>=0&&(e=e.slice(0,i)),!e||e==="start"})}function wf(t,e,i){var r,n,o=Sf(e)?En:Nt;return function(){var s=o(this,t),a=s.on;a!==r&&(n=(r=a).copy()).on(e,i),s.on=n}}function Bf(t,e){var i=this._id;return arguments.length<2?Et(this.node(),i).on.on(t):this.each(wf(i,t,e))}function Af(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function Lf(){return this.on("end.remove",Af(this._id))}function Ff(t){var e=this._name,i=this._id;typeof t!="function"&&(t=wn(t));for(var r=this._groups,n=r.length,o=new Array(n),s=0;s<n;++s)for(var a=r[s],l=a.length,c=o[s]=new Array(l),u,f,h=0;h<l;++h)(u=a[h])&&(f=t.call(u,u.__data__,h,a))&&("__data__"in u&&(f.__data__=u.__data__),c[h]=f,_r(c[h],e,i,h,c,Et(u,i)));return new Xt(o,this._parents,e,i)}function Ef(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Js(t));for(var r=this._groups,n=r.length,o=[],s=[],a=0;a<n;++a)for(var l=r[a],c=l.length,u,f=0;f<c;++f)if(u=l[f]){for(var h=t.call(u,u.__data__,f,l),d,_=Et(u,i),T=0,w=h.length;T<w;++T)(d=h[T])&&_r(d,e,i,T,h,_);o.push(h),s.push(u)}return new Xt(o,s,e,i)}var Of=gi.prototype.constructor;function Mf(){return new Of(this._groups,this._parents)}function $f(t,e){var i,r,n;return function(){var o=Fe(this,t),s=(this.style.removeProperty(t),Fe(this,t));return o===s?null:o===i&&s===r?n:n=e(i=o,r=s)}}function ba(t){return function(){this.style.removeProperty(t)}}function If(t,e,i){var r,n=i+"",o;return function(){var s=Fe(this,t);return s===n?null:s===r?o:o=e(r=s,i)}}function Df(t,e,i){var r,n,o;return function(){var s=Fe(this,t),a=i(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),Fe(this,t))),s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a))}}function Nf(t,e){var i,r,n,o="style."+e,s="end."+o,a;return function(){var l=Nt(this,t),c=l.on,u=l.value[o]==null?a||(a=ba(e)):void 0;(c!==i||n!==u)&&(r=(i=c).copy()).on(s,n=u),l.on=r}}function Rf(t,e,i){var r=(t+="")=="transform"?qu:Ca;return e==null?this.styleTween(t,$f(t,r)).on("end.style."+t,ba(t)):typeof e=="function"?this.styleTween(t,Df(t,r,On(this,"style."+t,e))).each(Nf(this._id,t)):this.styleTween(t,If(t,r,e),i).on("end.style."+t,null)}function Pf(t,e,i){return function(r){this.style.setProperty(t,e.call(this,r),i)}}function qf(t,e,i){var r,n;function o(){var s=e.apply(this,arguments);return s!==n&&(r=(n=s)&&Pf(t,s,i)),r}return o._value=e,o}function zf(t,e,i){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,qf(t,e,i??""))}function Wf(t){return function(){this.textContent=t}}function Hf(t){return function(){var e=t(this);this.textContent=e??""}}function jf(t){return this.tween("text",typeof t=="function"?Hf(On(this,"text",t)):Wf(t==null?"":t+""))}function Uf(t){return function(e){this.textContent=t.call(this,e)}}function Yf(t){var e,i;function r(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&Uf(n)),e}return r._value=t,r}function Gf(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Yf(t))}function Vf(){for(var t=this._name,e=this._id,i=xa(),r=this._groups,n=r.length,o=0;o<n;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var u=Et(l,e);_r(l,t,i,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Xt(r,this._parents,t,i)}function Xf(){var t,e,i=this,r=i._id,n=i.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--n===0&&o()}};i.each(function(){var c=Nt(this,r),u=c.on;u!==t&&(e=(t=u).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),n===0&&o()})}var Kf=0;function Xt(t,e,i,r){this._groups=t,this._parents=e,this._name=i,this._id=r}function xa(){return++Kf}var jt=gi.prototype;Xt.prototype={constructor:Xt,select:Ff,selectAll:Ef,selectChild:jt.selectChild,selectChildren:jt.selectChildren,filter:vf,merge:kf,selection:Mf,transition:Vf,call:jt.call,nodes:jt.nodes,node:jt.node,size:jt.size,empty:jt.empty,each:jt.each,on:Bf,attr:af,attrTween:ff,style:Rf,styleTween:zf,text:jf,textTween:Gf,remove:Lf,tween:Qu,delay:gf,duration:yf,ease:bf,easeVarying:Tf,end:Xf,[Symbol.iterator]:jt[Symbol.iterator]};function Zf(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Jf={time:null,delay:0,duration:250,ease:Zf};function Qf(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}function td(t){var e,i;t instanceof Xt?(e=t._id,t=t._name):(e=xa(),(i=Jf).time=Fn(),t=t==null?null:t+"");for(var r=this._groups,n=r.length,o=0;o<n;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&_r(l,t,e,c,s,i||Qf(l,e));return new Xt(r,this._parents,t,e)}gi.prototype.interrupt=Ku;gi.prototype.transition=td;const qx=Math.abs,zx=Math.atan2,Wx=Math.cos,Hx=Math.max,jx=Math.min,Ux=Math.sin,Yx=Math.sqrt,jo=1e-12,Mn=Math.PI,Uo=Mn/2,Gx=2*Mn;function Vx(t){return t>1?0:t<-1?Mn:Math.acos(t)}function Xx(t){return t>=1?Uo:t<=-1?-Uo:Math.asin(t)}function Ta(t){this._context=t}Ta.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function ed(t){return new Ta(t)}class va{constructor(e,i){this._context=e,this._x=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,i){switch(e=+e,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,i,e,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,e,this._y0,e,i);break}}this._x0=e,this._y0=i}}function id(t){return new va(t,!0)}function rd(t){return new va(t,!1)}function ne(){}function Qi(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function yr(t){this._context=t}yr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Qi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Qi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function nd(t){return new yr(t)}function ka(t){this._context=t}ka.prototype={areaStart:ne,areaEnd:ne,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Qi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function od(t){return new ka(t)}function Sa(t){this._context=t}Sa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:Qi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function sd(t){return new Sa(t)}function wa(t,e){this._basis=new yr(t),this._beta=e}wa.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r=t[0],n=e[0],o=t[i]-r,s=e[i]-n,a=-1,l;++a<=i;)l=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*o),this._beta*e[a]+(1-this._beta)*(n+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const ad=function t(e){function i(r){return e===1?new yr(r):new wa(r,e)}return i.beta=function(r){return t(+r)},i}(.85);function tr(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function $n(t,e){this._context=t,this._k=(1-e)/6}$n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:tr(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:tr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ld=function t(e){function i(r){return new $n(r,e)}return i.tension=function(r){return t(+r)},i}(0);function In(t,e){this._context=t,this._k=(1-e)/6}In.prototype={areaStart:ne,areaEnd:ne,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:tr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const cd=function t(e){function i(r){return new In(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Dn(t,e){this._context=t,this._k=(1-e)/6}Dn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:tr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const hd=function t(e){function i(r){return new Dn(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Nn(t,e,i){var r=t._x1,n=t._y1,o=t._x2,s=t._y2;if(t._l01_a>jo){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>jo){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/u,s=(s*c+t._y1*t._l23_2a-i*t._l12_2a)/u}t._context.bezierCurveTo(r,n,o,s,t._x2,t._y2)}function Ba(t,e){this._context=t,this._alpha=e}Ba.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Nn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ud=function t(e){function i(r){return e?new Ba(r,e):new $n(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function Aa(t,e){this._context=t,this._alpha=e}Aa.prototype={areaStart:ne,areaEnd:ne,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Nn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const fd=function t(e){function i(r){return e?new Aa(r,e):new In(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function La(t,e){this._context=t,this._alpha=e}La.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Nn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const dd=function t(e){function i(r){return e?new La(r,e):new Dn(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function Fa(t){this._context=t}Fa.prototype={areaStart:ne,areaEnd:ne,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function pd(t){return new Fa(t)}function Yo(t){return t<0?-1:1}function Go(t,e,i){var r=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(r||n<0&&-0),s=(i-t._y1)/(n||r<0&&-0),a=(o*n+s*r)/(r+n);return(Yo(o)+Yo(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Vo(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function zr(t,e,i){var r=t._x0,n=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,n+a*e,o-a,s-a*i,o,s)}function er(t){this._context=t}er.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:zr(this,this._t0,Vo(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,zr(this,Vo(this,i=Go(this,t,e)),i);break;default:zr(this,this._t0,i=Go(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function Ea(t){this._context=new Oa(t)}(Ea.prototype=Object.create(er.prototype)).point=function(t,e){er.prototype.point.call(this,e,t)};function Oa(t){this._context=t}Oa.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,n,o){this._context.bezierCurveTo(e,t,r,i,o,n)}};function gd(t){return new er(t)}function md(t){return new Ea(t)}function Ma(t){this._context=t}Ma.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var r=Xo(t),n=Xo(e),o=0,s=1;s<i;++o,++s)this._context.bezierCurveTo(r[0][o],n[0][o],r[1][o],n[1][o],t[s],e[s]);(this._line||this._line!==0&&i===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function Xo(t){var e,i=t.length-1,r,n=new Array(i),o=new Array(i),s=new Array(i);for(n[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<i-1;++e)n[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(n[i-1]=2,o[i-1]=7,s[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=n[e]/o[e-1],o[e]-=r,s[e]-=r*s[e-1];for(n[i-1]=s[i-1]/o[i-1],e=i-2;e>=0;--e)n[e]=(s[e]-n[e+1])/o[e];for(o[i-1]=(t[i]+n[i-1])/2,e=0;e<i-1;++e)o[e]=2*t[e+1]-n[e+1];return[n,o]}function _d(t){return new Ma(t)}function Cr(t,e){this._context=t,this._t=e}Cr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function yd(t){return new Cr(t,.5)}function Cd(t){return new Cr(t,0)}function bd(t){return new Cr(t,1)}function Je(t,e,i){this.k=t,this.x=e,this.y=i}Je.prototype={constructor:Je,scale:function(t){return t===1?this:new Je(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Je(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Je.prototype;/*! @license DOMPurify 3.0.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.9/LICENSE */const{entries:$a,setPrototypeOf:Ko,isFrozen:xd,getPrototypeOf:Td,getOwnPropertyDescriptor:vd}=Object;let{freeze:ft,seal:Ft,create:Ia}=Object,{apply:hn,construct:un}=typeof Reflect<"u"&&Reflect;ft||(ft=function(e){return e});Ft||(Ft=function(e){return e});hn||(hn=function(e,i,r){return e.apply(i,r)});un||(un=function(e,i){return new e(...i)});const Ai=xt(Array.prototype.forEach),Zo=xt(Array.prototype.pop),Ue=xt(Array.prototype.push),Pi=xt(String.prototype.toLowerCase),Wr=xt(String.prototype.toString),kd=xt(String.prototype.match),Ye=xt(String.prototype.replace),Sd=xt(String.prototype.indexOf),wd=xt(String.prototype.trim),Bt=xt(Object.prototype.hasOwnProperty),Ct=xt(RegExp.prototype.test),Ge=Bd(TypeError);function xt(t){return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return hn(t,e,r)}}function Bd(t){return function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return un(t,i)}}function U(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pi;Ko&&Ko(t,null);let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){const o=i(n);o!==n&&(xd(e)||(e[r]=o),n=o)}t[n]=!0}return t}function Ad(t){for(let e=0;e<t.length;e++)Bt(t,e)||(t[e]=null);return t}function ce(t){const e=Ia(null);for(const[i,r]of $a(t))Bt(t,i)&&(Array.isArray(r)?e[i]=Ad(r):r&&typeof r=="object"&&r.constructor===Object?e[i]=ce(r):e[i]=r);return e}function Li(t,e){for(;t!==null;){const r=vd(t,e);if(r){if(r.get)return xt(r.get);if(typeof r.value=="function")return xt(r.value)}t=Td(t)}function i(){return null}return i}const Jo=ft(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Hr=ft(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),jr=ft(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ld=ft(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ur=ft(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Fd=ft(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Qo=ft(["#text"]),ts=ft(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Yr=ft(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),es=ft(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Fi=ft(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ed=Ft(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Od=Ft(/<%[\w\W]*|[\w\W]*%>/gm),Md=Ft(/\${[\w\W]*}/gm),$d=Ft(/^data-[\-\w.\u00B7-\uFFFF]/),Id=Ft(/^aria-[\-\w]+$/),Da=Ft(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Dd=Ft(/^(?:\w+script|data):/i),Nd=Ft(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Na=Ft(/^html$/i);var is=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ed,ERB_EXPR:Od,TMPLIT_EXPR:Md,DATA_ATTR:$d,ARIA_ATTR:Id,IS_ALLOWED_URI:Da,IS_SCRIPT_OR_DATA:Dd,ATTR_WHITESPACE:Nd,DOCTYPE_NAME:Na});const Rd=function(){return typeof window>"u"?null:window},Pd=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";i&&i.hasAttribute(n)&&(r=i.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function Ra(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rd();const e=$=>Ra($);if(e.version="3.0.9",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;let{document:i}=t;const r=i,n=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:d}=t,_=l.prototype,T=Li(_,"cloneNode"),w=Li(_,"nextSibling"),A=Li(_,"childNodes"),y=Li(_,"parentNode");if(typeof s=="function"){const $=i.createElement("template");$.content&&$.content.ownerDocument&&(i=$.content.ownerDocument)}let E,L="";const{implementation:R,createNodeIterator:m,createDocumentFragment:b,getElementsByTagName:O}=i,{importNode:Zt}=r;let G={};e.isSupported=typeof $a=="function"&&typeof y=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Y,ERB_EXPR:St,TMPLIT_EXPR:Jt,DATA_ATTR:q,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:x,ATTR_WHITESPACE:M}=is;let{IS_ALLOWED_URI:k}=is,S=null;const H=U({},[...Jo,...Hr,...jr,...Ur,...Qo]);let W=null;const K=U({},[...ts,...Yr,...es,...Fi]);let j=Object.seal(Ia(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),J=null,rt=null,Pt=!0,wt=!0,Qt=!1,Ot=!0,Q=!1,nt=!1,qt=!1,te=!1,xe=!1,xi=!1,Ti=!1,so=!0,ao=!1;const yc="user-content-";let Mr=!0,ze=!1,Te={},ve=null;const lo=U({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let co=null;const ho=U({},["audio","video","img","source","image","track"]);let $r=null;const uo=U({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vi="http://www.w3.org/1998/Math/MathML",ki="http://www.w3.org/2000/svg",zt="http://www.w3.org/1999/xhtml";let ke=zt,Ir=!1,Dr=null;const Cc=U({},[vi,ki,zt],Wr);let We=null;const bc=["application/xhtml+xml","text/html"],xc="text/html";let it=null,Se=null;const Tc=i.createElement("form"),fo=function(p){return p instanceof RegExp||p instanceof Function},Nr=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Se&&Se===p)){if((!p||typeof p!="object")&&(p={}),p=ce(p),We=bc.indexOf(p.PARSER_MEDIA_TYPE)===-1?xc:p.PARSER_MEDIA_TYPE,it=We==="application/xhtml+xml"?Wr:Pi,S=Bt(p,"ALLOWED_TAGS")?U({},p.ALLOWED_TAGS,it):H,W=Bt(p,"ALLOWED_ATTR")?U({},p.ALLOWED_ATTR,it):K,Dr=Bt(p,"ALLOWED_NAMESPACES")?U({},p.ALLOWED_NAMESPACES,Wr):Cc,$r=Bt(p,"ADD_URI_SAFE_ATTR")?U(ce(uo),p.ADD_URI_SAFE_ATTR,it):uo,co=Bt(p,"ADD_DATA_URI_TAGS")?U(ce(ho),p.ADD_DATA_URI_TAGS,it):ho,ve=Bt(p,"FORBID_CONTENTS")?U({},p.FORBID_CONTENTS,it):lo,J=Bt(p,"FORBID_TAGS")?U({},p.FORBID_TAGS,it):{},rt=Bt(p,"FORBID_ATTR")?U({},p.FORBID_ATTR,it):{},Te=Bt(p,"USE_PROFILES")?p.USE_PROFILES:!1,Pt=p.ALLOW_ARIA_ATTR!==!1,wt=p.ALLOW_DATA_ATTR!==!1,Qt=p.ALLOW_UNKNOWN_PROTOCOLS||!1,Ot=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Q=p.SAFE_FOR_TEMPLATES||!1,nt=p.WHOLE_DOCUMENT||!1,xe=p.RETURN_DOM||!1,xi=p.RETURN_DOM_FRAGMENT||!1,Ti=p.RETURN_TRUSTED_TYPE||!1,te=p.FORCE_BODY||!1,so=p.SANITIZE_DOM!==!1,ao=p.SANITIZE_NAMED_PROPS||!1,Mr=p.KEEP_CONTENT!==!1,ze=p.IN_PLACE||!1,k=p.ALLOWED_URI_REGEXP||Da,ke=p.NAMESPACE||zt,j=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&fo(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&fo(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(j.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(wt=!1),xi&&(xe=!0),Te&&(S=U({},Qo),W=[],Te.html===!0&&(U(S,Jo),U(W,ts)),Te.svg===!0&&(U(S,Hr),U(W,Yr),U(W,Fi)),Te.svgFilters===!0&&(U(S,jr),U(W,Yr),U(W,Fi)),Te.mathMl===!0&&(U(S,Ur),U(W,es),U(W,Fi))),p.ADD_TAGS&&(S===H&&(S=ce(S)),U(S,p.ADD_TAGS,it)),p.ADD_ATTR&&(W===K&&(W=ce(W)),U(W,p.ADD_ATTR,it)),p.ADD_URI_SAFE_ATTR&&U($r,p.ADD_URI_SAFE_ATTR,it),p.FORBID_CONTENTS&&(ve===lo&&(ve=ce(ve)),U(ve,p.FORBID_CONTENTS,it)),Mr&&(S["#text"]=!0),nt&&U(S,["html","head","body"]),S.table&&(U(S,["tbody"]),delete J.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ge('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ge('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=p.TRUSTED_TYPES_POLICY,L=E.createHTML("")}else E===void 0&&(E=Pd(d,n)),E!==null&&typeof L=="string"&&(L=E.createHTML(""));ft&&ft(p),Se=p}},po=U({},["mi","mo","mn","ms","mtext"]),go=U({},["foreignobject","desc","title","annotation-xml"]),vc=U({},["title","style","font","a","script"]),mo=U({},[...Hr,...jr,...Ld]),_o=U({},[...Ur,...Fd]),kc=function(p){let C=y(p);(!C||!C.tagName)&&(C={namespaceURI:ke,tagName:"template"});const F=Pi(p.tagName),V=Pi(C.tagName);return Dr[p.namespaceURI]?p.namespaceURI===ki?C.namespaceURI===zt?F==="svg":C.namespaceURI===vi?F==="svg"&&(V==="annotation-xml"||po[V]):!!mo[F]:p.namespaceURI===vi?C.namespaceURI===zt?F==="math":C.namespaceURI===ki?F==="math"&&go[V]:!!_o[F]:p.namespaceURI===zt?C.namespaceURI===ki&&!go[V]||C.namespaceURI===vi&&!po[V]?!1:!_o[F]&&(vc[F]||!mo[F]):!!(We==="application/xhtml+xml"&&Dr[p.namespaceURI]):!1},ae=function(p){Ue(e.removed,{element:p});try{p.parentNode.removeChild(p)}catch{p.remove()}},Rr=function(p,C){try{Ue(e.removed,{attribute:C.getAttributeNode(p),from:C})}catch{Ue(e.removed,{attribute:null,from:C})}if(C.removeAttribute(p),p==="is"&&!W[p])if(xe||xi)try{ae(C)}catch{}else try{C.setAttribute(p,"")}catch{}},yo=function(p){let C=null,F=null;if(te)p="<remove></remove>"+p;else{const st=kd(p,/^[\r\n\t ]+/);F=st&&st[0]}We==="application/xhtml+xml"&&ke===zt&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const V=E?E.createHTML(p):p;if(ke===zt)try{C=new h().parseFromString(V,We)}catch{}if(!C||!C.documentElement){C=R.createDocument(ke,"template",null);try{C.documentElement.innerHTML=Ir?L:V}catch{}}const ot=C.body||C.documentElement;return p&&F&&ot.insertBefore(i.createTextNode(F),ot.childNodes[0]||null),ke===zt?O.call(C,nt?"html":"body")[0]:nt?C.documentElement:ot},Co=function(p){return m.call(p.ownerDocument||p,p,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},Sc=function(p){return p instanceof f&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof u)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},bo=function(p){return typeof a=="function"&&p instanceof a},Wt=function(p,C,F){G[p]&&Ai(G[p],V=>{V.call(e,C,F,Se)})},xo=function(p){let C=null;if(Wt("beforeSanitizeElements",p,null),Sc(p))return ae(p),!0;const F=it(p.nodeName);if(Wt("uponSanitizeElement",p,{tagName:F,allowedTags:S}),p.hasChildNodes()&&!bo(p.firstElementChild)&&Ct(/<[/\w]/g,p.innerHTML)&&Ct(/<[/\w]/g,p.textContent))return ae(p),!0;if(!S[F]||J[F]){if(!J[F]&&vo(F)&&(j.tagNameCheck instanceof RegExp&&Ct(j.tagNameCheck,F)||j.tagNameCheck instanceof Function&&j.tagNameCheck(F)))return!1;if(Mr&&!ve[F]){const V=y(p)||p.parentNode,ot=A(p)||p.childNodes;if(ot&&V){const st=ot.length;for(let dt=st-1;dt>=0;--dt)V.insertBefore(T(ot[dt],!0),w(p))}}return ae(p),!0}return p instanceof l&&!kc(p)||(F==="noscript"||F==="noembed"||F==="noframes")&&Ct(/<\/no(script|embed|frames)/i,p.innerHTML)?(ae(p),!0):(Q&&p.nodeType===3&&(C=p.textContent,Ai([Y,St,Jt],V=>{C=Ye(C,V," ")}),p.textContent!==C&&(Ue(e.removed,{element:p.cloneNode()}),p.textContent=C)),Wt("afterSanitizeElements",p,null),!1)},To=function(p,C,F){if(so&&(C==="id"||C==="name")&&(F in i||F in Tc))return!1;if(!(wt&&!rt[C]&&Ct(q,C))){if(!(Pt&&Ct(B,C))){if(!W[C]||rt[C]){if(!(vo(p)&&(j.tagNameCheck instanceof RegExp&&Ct(j.tagNameCheck,p)||j.tagNameCheck instanceof Function&&j.tagNameCheck(p))&&(j.attributeNameCheck instanceof RegExp&&Ct(j.attributeNameCheck,C)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(C))||C==="is"&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&Ct(j.tagNameCheck,F)||j.tagNameCheck instanceof Function&&j.tagNameCheck(F))))return!1}else if(!$r[C]){if(!Ct(k,Ye(F,M,""))){if(!((C==="src"||C==="xlink:href"||C==="href")&&p!=="script"&&Sd(F,"data:")===0&&co[p])){if(!(Qt&&!Ct(x,Ye(F,M,"")))){if(F)return!1}}}}}}return!0},vo=function(p){return p!=="annotation-xml"&&p.indexOf("-")>0},ko=function(p){Wt("beforeSanitizeAttributes",p,null);const{attributes:C}=p;if(!C)return;const F={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W};let V=C.length;for(;V--;){const ot=C[V],{name:st,namespaceURI:dt,value:le}=ot,He=it(st);let pt=st==="value"?le:wd(le);if(F.attrName=He,F.attrValue=pt,F.keepAttr=!0,F.forceKeepAttr=void 0,Wt("uponSanitizeAttribute",p,F),pt=F.attrValue,F.forceKeepAttr||(Rr(st,p),!F.keepAttr))continue;if(!Ot&&Ct(/\/>/i,pt)){Rr(st,p);continue}Q&&Ai([Y,St,Jt],wo=>{pt=Ye(pt,wo," ")});const So=it(p.nodeName);if(To(So,He,pt)){if(ao&&(He==="id"||He==="name")&&(Rr(st,p),pt=yc+pt),E&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!dt)switch(d.getAttributeType(So,He)){case"TrustedHTML":{pt=E.createHTML(pt);break}case"TrustedScriptURL":{pt=E.createScriptURL(pt);break}}try{dt?p.setAttributeNS(dt,st,pt):p.setAttribute(st,pt),Zo(e.removed)}catch{}}}Wt("afterSanitizeAttributes",p,null)},wc=function $(p){let C=null;const F=Co(p);for(Wt("beforeSanitizeShadowDOM",p,null);C=F.nextNode();)Wt("uponSanitizeShadowNode",C,null),!xo(C)&&(C.content instanceof o&&$(C.content),ko(C));Wt("afterSanitizeShadowDOM",p,null)};return e.sanitize=function($){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,F=null,V=null,ot=null;if(Ir=!$,Ir&&($="<!-->"),typeof $!="string"&&!bo($))if(typeof $.toString=="function"){if($=$.toString(),typeof $!="string")throw Ge("dirty is not a string, aborting")}else throw Ge("toString is not a function");if(!e.isSupported)return $;if(qt||Nr(p),e.removed=[],typeof $=="string"&&(ze=!1),ze){if($.nodeName){const le=it($.nodeName);if(!S[le]||J[le])throw Ge("root node is forbidden and cannot be sanitized in-place")}}else if($ instanceof a)C=yo("<!---->"),F=C.ownerDocument.importNode($,!0),F.nodeType===1&&F.nodeName==="BODY"||F.nodeName==="HTML"?C=F:C.appendChild(F);else{if(!xe&&!Q&&!nt&&$.indexOf("<")===-1)return E&&Ti?E.createHTML($):$;if(C=yo($),!C)return xe?null:Ti?L:""}C&&te&&ae(C.firstChild);const st=Co(ze?$:C);for(;V=st.nextNode();)xo(V)||(V.content instanceof o&&wc(V.content),ko(V));if(ze)return $;if(xe){if(xi)for(ot=b.call(C.ownerDocument);C.firstChild;)ot.appendChild(C.firstChild);else ot=C;return(W.shadowroot||W.shadowrootmode)&&(ot=Zt.call(r,ot,!0)),ot}let dt=nt?C.outerHTML:C.innerHTML;return nt&&S["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&Ct(Na,C.ownerDocument.doctype.name)&&(dt="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
`+dt),Q&&Ai([Y,St,Jt],le=>{dt=Ye(dt,le," ")}),E&&Ti?E.createHTML(dt):dt},e.setConfig=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nr($),qt=!0},e.clearConfig=function(){Se=null,qt=!1},e.isValidAttribute=function($,p,C){Se||Nr({});const F=it($),V=it(p);return To(F,V,C)},e.addHook=function($,p){typeof p=="function"&&(G[$]=G[$]||[],Ue(G[$],p))},e.removeHook=function($){if(G[$])return Zo(G[$])},e.removeHooks=function($){G[$]&&(G[$]=[])},e.removeAllHooks=function(){G={}},e}var Oe=Ra();const _i=/<br\s*\/?>/gi,qd=t=>t?qa(t).replace(/\\n/g,"#br#").split("#br#"):[""],zd=(()=>{let t=!1;return()=>{t||(Wd(),t=!0)}})();function Wd(){const t="data-temp-href-target";Oe.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),Oe.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const Pa=t=>(zd(),Oe.sanitize(t)),rs=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=Pa(t):r!=="loose"&&(t=qa(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=Yd(t))}return t},ci=(t,e)=>t&&(e.dompurifyConfig?t=Oe.sanitize(rs(t,e),e.dompurifyConfig).toString():t=Oe.sanitize(rs(t,e),{FORBID_TAGS:["style"]}).toString(),t),Hd=(t,e)=>typeof t=="string"?ci(t,e):t.flat().map(i=>ci(i,e)),jd=t=>_i.test(t),Ud=t=>t.split(_i),Yd=t=>t.replace(/#br#/g,"<br/>"),qa=t=>t.replace(_i,"#br#"),Gd=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},za=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),Vd=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},Xd=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},Kx=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r<e.length;r++){let n=e[r];if(n===","&&r>0&&r+1<e.length){const o=e[r-1],s=e[r+1];Kd(o,s)&&(n=o+","+s,r++,i.pop())}i.push(Zd(n))}return i.join("")},fn=(t,e)=>Math.max(0,t.split(e).length-1),Kd=(t,e)=>{const i=fn(t,"~"),r=fn(e,"~");return i===1&&r===1},Zd=t=>{const e=fn(t,"~");let i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);const r=[...t];let n=r.indexOf("~"),o=r.lastIndexOf("~");for(;n!==-1&&o!==-1&&n!==o;)r[n]="<",r[o]=">",n=r.indexOf("~"),o=r.lastIndexOf("~");return i&&r.unshift("~"),r.join("")},ns=()=>window.MathMLElement!==void 0,dn=/\$\$(.*)\$\$/g,os=t=>{var e;return(((e=t.match(dn))==null?void 0:e.length)??0)>0},Zx=async(t,e)=>{t=await Jd(t,e);const i=document.createElement("div");i.innerHTML=t,i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0";const r=document.querySelector("body");r==null||r.insertAdjacentElement("beforeend",i);const n={width:i.clientWidth,height:i.clientHeight};return i.remove(),n},Jd=async(t,e)=>{if(!os(t))return t;if(!ns()&&!e.legacyMathML)return t.replace(dn,"MathML is unsupported in this environment.");const{default:i}=await Z(()=>import("../katex-ffb0e8f1-xpx6yKzS.js"),[]);return t.split(_i).map(r=>os(r)?`
<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
${r}
</div>
`:`<div>${r}</div>`).join("").replace(dn,(r,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:ns()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},Rn={getRows:qd,sanitizeText:ci,sanitizeTextOrArray:Hd,hasBreaks:jd,splitBreaks:Ud,lineBreakRegex:_i,removeScript:Pa,getUrl:Gd,evaluate:za,getMax:Vd,getMin:Xd},qi={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;switch(r){case"r":return qi.hue2rgb(o,n,t+1/3)*255;case"g":return qi.hue2rgb(o,n,t)*255;case"b":return qi.hue2rgb(o,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),o=Math.min(t,e,i),s=(n+o)/2;if(r==="l")return s*100;if(n===o)return 0;const a=n-o,l=s>.5?a/(2-n-o):a/(n+o);if(r==="s")return l*100;switch(n){case t:return((e-i)/a+(e<i?6:0))*60;case e:return((i-t)/a+2)*60;case i:return((t-e)/a+4)*60;default:return-1}}},Qd=qi,tp={clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},ep=tp,ip={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},rp=ip,np={channel:Qd,lang:ep,unit:rp},z=np,ee={};for(let t=0;t<=255;t++)ee[t]=z.unit.dec2hex(t);const at={ALL:0,RGB:1,HSL:2};class op{constructor(){this.type=at.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=at.ALL}is(e){return this.type===e}}const sp=op;class ap{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new sp}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=at.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=z.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=z.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=z.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=z.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=z.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=z.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(at.HSL)&&i!==void 0?i:(this._ensureHSL(),z.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(at.HSL)&&i!==void 0?i:(this._ensureHSL(),z.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(at.HSL)&&i!==void 0?i:(this._ensureHSL(),z.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(at.RGB)&&i!==void 0?i:(this._ensureRGB(),z.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(at.RGB)&&i!==void 0?i:(this._ensureRGB(),z.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(at.RGB)&&i!==void 0?i:(this._ensureRGB(),z.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(at.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(at.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(at.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(at.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(at.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(at.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const lp=ap,cp=new lp({r:0,g:0,b:0,a:0},"transparent"),br=cp,Wa={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Wa.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,o=n%4===0,s=n>4,a=s?1:17,l=s?8:4,c=o?0:-1,u=s?255:15;return br.set({r:(r>>l*(c+3)&u)*a,g:(r>>l*(c+2)&u)*a,b:(r>>l*(c+1)&u)*a,a:o?(r&u)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${ee[Math.round(e)]}${ee[Math.round(i)]}${ee[Math.round(r)]}${ee[Math.round(n*255)]}`:`#${ee[Math.round(e)]}${ee[Math.round(i)]}${ee[Math.round(r)]}`}},Qe=Wa,zi={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(zi.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return z.channel.clamp.h(parseFloat(i)*.9);case"rad":return z.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return z.channel.clamp.h(parseFloat(i)*360)}}return z.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(zi.re);if(!i)return;const[,r,n,o,s,a]=i;return br.set({h:zi._hue2deg(r),s:z.channel.clamp.s(parseFloat(n)),l:z.channel.clamp.l(parseFloat(o)),a:s?z.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${z.lang.round(e)}, ${z.lang.round(i)}%, ${z.lang.round(r)}%, ${n})`:`hsl(${z.lang.round(e)}, ${z.lang.round(i)}%, ${z.lang.round(r)}%)`}},Ei=zi,Wi={colors:{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",cyanaqua:"#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",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",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",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",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",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=Wi.colors[t];if(e)return Qe.parse(e)},stringify:t=>{const e=Qe.stringify(t);for(const i in Wi.colors)if(Wi.colors[i]===e)return i}},ss=Wi,Ha={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(Ha.re);if(!i)return;const[,r,n,o,s,a,l,c,u]=i;return br.set({r:z.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:z.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:z.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:c?z.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${z.lang.round(e)}, ${z.lang.round(i)}, ${z.lang.round(r)}, ${z.lang.round(n)})`:`rgb(${z.lang.round(e)}, ${z.lang.round(i)}, ${z.lang.round(r)})`}},Oi=Ha,hp={format:{keyword:ss,hex:Qe,rgb:Oi,rgba:Oi,hsl:Ei,hsla:Ei},parse:t=>{if(typeof t!="string")return t;const e=Qe.parse(t)||Oi.parse(t)||Ei.parse(t)||ss.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(at.HSL)||t.data.r===void 0?Ei.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Oi.stringify(t):Qe.stringify(t)},It=hp,up=(t,e)=>{const i=It.parse(t);for(const r in e)i[r]=z.channel.clamp[r](e[r]);return It.stringify(i)},ja=up,fp=(t,e,i=0,r=1)=>{if(typeof t!="number")return ja(t,{a:e});const n=br.set({r:z.channel.clamp.r(t),g:z.channel.clamp.g(e),b:z.channel.clamp.b(i),a:z.channel.clamp.a(r)});return It.stringify(n)},ti=fp,dp=t=>{const{r:e,g:i,b:r}=It.parse(t),n=.2126*z.channel.toLinear(e)+.7152*z.channel.toLinear(i)+.0722*z.channel.toLinear(r);return z.lang.round(n)},pp=dp,gp=t=>pp(t)>=.5,mp=gp,_p=t=>!mp(t),yi=_p,yp=(t,e,i)=>{const r=It.parse(t),n=r[e],o=z.channel.clamp[e](n+i);return n!==o&&(r[e]=o),It.stringify(r)},Ua=yp,Cp=(t,e)=>Ua(t,"l",e),I=Cp,bp=(t,e)=>Ua(t,"l",-e),P=bp,xp=(t,e)=>{const i=It.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return ja(t,r)},g=xp,Tp=(t,e,i=50)=>{const{r,g:n,b:o,a:s}=It.parse(t),{r:a,g:l,b:c,a:u}=It.parse(e),f=i/100,h=f*2-1,d=s-u,T=((h*d===-1?h:(h+d)/(1+h*d))+1)/2,w=1-T,A=r*T+a*w,y=n*T+l*w,E=o*T+c*w,L=s*f+u*(1-f);return ti(A,y,E,L)},vp=Tp,kp=(t,e=100)=>{const i=It.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,vp(i,t,e)},v=kp,ut=(t,e)=>e?g(t,{s:-40,l:10}):g(t,{s:-40,l:-10}),xr="#ffffff",Tr="#f2f2f2";let Sp=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,n,o,s,a,l,c,u,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||g(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||g(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ut(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ut(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||v(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||v(this.tertiaryColor),this.lineColor=this.lineColor||v(this.background),this.arrowheadColor=this.arrowheadColor||v(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||P(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||v(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||I(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.darkMode)for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=P(this["cScale"+d],75);else for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=P(this["cScale"+d],25);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||v(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||I(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||P(this["cScale"+d],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=this["cScaleLabel"+d]||this.scaleLabelColor;const h=this.darkMode?-4:-1;for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||g(this.mainBkg,{h:180,s:-15,l:h*(5+d*3)}),this["surfacePeer"+d]=this["surfacePeer"+d]||g(this.mainBkg,{h:180,s:-15,l:h*(8+d*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||g(this.primaryColor,{h:64}),this.fillType3=this.fillType3||g(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||g(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||g(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||g(this.primaryColor,{h:128}),this.fillType7=this.fillType7||g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-10}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||yi(this.quadrant1Fill)?I(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=I(this.git0,25),this.git1=I(this.git1,25),this.git2=I(this.git2,25),this.git3=I(this.git3,25),this.git4=I(this.git4,25),this.git5=I(this.git5,25),this.git6=I(this.git6,25),this.git7=I(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Tr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const wp=t=>{const e=new Sp;return e.calculate(t),e};let Bp=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=I(this.primaryColor,16),this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=v(this.background),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=I(v("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=ti(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=P("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=P(this.sectionBkgColor,10),this.taskBorderColor=ti(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ti(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,n,o,s,a,l,c,u,f;this.secondBkg=I(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=I(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=I(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330});for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||v(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScalePeer"+h]=this["cScalePeer"+h]||I(this["cScale"+h],10);for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||g(this.mainBkg,{h:30,s:-30,l:-(-10+h*4)}),this["surfacePeer"+h]=this["surfacePeer"+h]||g(this.mainBkg,{h:30,s:-30,l:-(-7+h*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["pie"+h]=this["cScale"+h];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||yi(this.quadrant1Fill)?I(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=I(this.secondaryColor,20),this.git1=I(this.pie2||this.secondaryColor,20),this.git2=I(this.pie3||this.tertiaryColor,20),this.git3=I(this.pie4||g(this.primaryColor,{h:-30}),20),this.git4=I(this.pie5||g(this.primaryColor,{h:-60}),20),this.git5=I(this.pie6||g(this.primaryColor,{h:-90}),10),this.git6=I(this.pie7||g(this.primaryColor,{h:60}),10),this.git7=I(this.pie8||g(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||I(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||I(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Ap=t=>{const e=new Bp;return e.calculate(t),e};let Lp=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=g(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=ti(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,n,o,s,a,l,c,u,f;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||P(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||P(this.tertiaryColor,40);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=P(this["cScale"+h],10),this["cScalePeer"+h]=this["cScalePeer"+h]||P(this["cScale"+h],25);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||g(this["cScale"+h],{h:180});for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||g(this.mainBkg,{h:30,l:-(5+h*5)}),this["surfacePeer"+h]=this["surfacePeer"+h]||g(this.mainBkg,{h:30,l:-(7+h*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||v(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||v(this.labelTextColor);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=I(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||g(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||g(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||yi(this.quadrant1Fill)?I(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=I(this.git0,25),this.git1=I(this.git1,25),this.git2=I(this.git2,25),this.git3=I(this.git3,25),this.git4=I(this.git4,25),this.git5=I(this.git5,25),this.git6=I(this.git6,25),this.git7=I(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||P(v(this.git0),25),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Tr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Fp=t=>{const e=new Lp;return e.calculate(t),e};let Ep=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=I("#cde498",10),this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.primaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,u,f;this.actorBorder=P(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||P(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||P(this.tertiaryColor,40);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=P(this["cScale"+h],10),this["cScalePeer"+h]=this["cScalePeer"+h]||P(this["cScale"+h],25);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||g(this["cScale"+h],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||g(this.mainBkg,{h:30,s:-30,l:-(5+h*5)}),this["surfacePeer"+h]=this["surfacePeer"+h]||g(this.mainBkg,{h:30,s:-30,l:-(8+h*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||g(this.primaryColor,{l:-30}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||yi(this.quadrant1Fill)?I(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=I(this.git0,25),this.git1=I(this.git1,25),this.git2=I(this.git2,25),this.git3=I(this.git3,25),this.git4=I(this.git4,25),this.git5=I(this.git5,25),this.git6=I(this.git6,25),this.git7=I(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Tr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Op=t=>{const e=new Ep;return e.calculate(t),e};class Mp{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=I(this.contrast,55),this.background="#ffffff",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,u,f;this.secondBkg=I(this.contrast,55),this.border2=this.contrast,this.actorBorder=I(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||v(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this.darkMode?this["cScalePeer"+h]=this["cScalePeer"+h]||I(this["cScale"+h],10):this["cScalePeer"+h]=this["cScalePeer"+h]||P(this["cScale"+h],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||g(this.mainBkg,{l:-(5+h*5)}),this["surfacePeer"+h]=this["surfacePeer"+h]||g(this.mainBkg,{l:-(8+h*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=I(this.contrast,30),this.sectionBkgColor2=I(this.contrast,30),this.taskBorderColor=P(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=I(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=P(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128});for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["pie"+h]=this["cScale"+h];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||yi(this.quadrant1Fill)?I(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=P(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||g(this.primaryColor,{h:-30}),this.git4=this.pie5||g(this.primaryColor,{h:-60}),this.git5=this.pie6||g(this.primaryColor,{h:-90}),this.git6=this.pie7||g(this.primaryColor,{h:60}),this.git7=this.pie8||g(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Tr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const $p=t=>{const e=new Mp;return e.calculate(t),e},Vt={base:{getThemeVariables:wp},dark:{getThemeVariables:Ap},default:{getThemeVariables:Fp},forest:{getThemeVariables:Op},neutral:{getThemeVariables:$p}},Ut={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},Ya={...Ut,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Vt.default.getThemeVariables(),sequence:{...Ut.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...Ut.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Ut.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...Ut.pie,useWidth:984},xyChart:{...Ut.xyChart,useWidth:void 0},requirement:{...Ut.requirement,useWidth:void 0},gitGraph:{...Ut.gitGraph,useMaxWidth:!1},sankey:{...Ut.sankey,useMaxWidth:!1}},Ga=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...Ga(t[r],"")]:[...i,e+r],[]),Ip=new Set(Ga(Ya,"")),Dp=Ya,ir=t=>{if(N.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>ir(e));return}for(const e of Object.keys(t)){if(N.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Ip.has(e)||t[e]==null){N.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){N.debug("sanitizing object",e),ir(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(N.debug("sanitizing css option",e),t[e]=Np(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}N.debug("After sanitization",t)}},Np=t=>{let e=0,i=0;for(const r of t){if(e<i)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?e++:r==="}"&&i++}return e!==i?"{ /* ERROR: Unbalanced CSS */ }":t},Va=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,ei=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Rp=/\s*%%.*\n/gm;class Xa extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const Me={},vr=function(t,e){t=t.replace(Va,"").replace(ei,"").replace(Rp,`
`);for(const[i,{detector:r}]of Object.entries(Me))if(r(t,e))return i;throw new Xa(`No diagram type detected matching given configuration for text: ${t}`)},Ka=(...t)=>{for(const{id:e,detector:i,loader:r}of t)Za(e,i,r)},Za=(t,e,i)=>{Me[t]?N.error(`Detector with key ${t} already exists`):Me[t]={detector:e,loader:i},N.debug(`Detector with key ${t} added${i?" with loader":""}`)},Pp=t=>Me[t].loader,pn=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>pn(t,o,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=pn(t[o],e[o],{depth:i-1,clobber:r})):(r||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},lt=pn;var qp=typeof global=="object"&&global&&global.Object===Object&&global;const Ja=qp;var zp=typeof self=="object"&&self&&self.Object===Object&&self,Wp=Ja||zp||Function("return this")();const Rt=Wp;var Hp=Rt.Symbol;const rr=Hp;var Qa=Object.prototype,jp=Qa.hasOwnProperty,Up=Qa.toString,Ve=rr?rr.toStringTag:void 0;function Yp(t){var e=jp.call(t,Ve),i=t[Ve];try{t[Ve]=void 0;var r=!0}catch{}var n=Up.call(t);return r&&(e?t[Ve]=i:delete t[Ve]),n}var Gp=Object.prototype,Vp=Gp.toString;function Xp(t){return Vp.call(t)}var Kp="[object Null]",Zp="[object Undefined]",as=rr?rr.toStringTag:void 0;function Re(t){return t==null?t===void 0?Zp:Kp:as&&as in Object(t)?Yp(t):Xp(t)}function ye(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Jp="[object AsyncFunction]",Qp="[object Function]",tg="[object GeneratorFunction]",eg="[object Proxy]";function Pn(t){if(!ye(t))return!1;var e=Re(t);return e==Qp||e==tg||e==Jp||e==eg}var ig=Rt["__core-js_shared__"];const Gr=ig;var ls=function(){var t=/[^.]+$/.exec(Gr&&Gr.keys&&Gr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function rg(t){return!!ls&&ls in t}var ng=Function.prototype,og=ng.toString;function Ce(t){if(t!=null){try{return og.call(t)}catch{}try{return t+""}catch{}}return""}var sg=/[\\^$.*+?()[\]{}|]/g,ag=/^\[object .+?Constructor\]$/,lg=Function.prototype,cg=Object.prototype,hg=lg.toString,ug=cg.hasOwnProperty,fg=RegExp("^"+hg.call(ug).replace(sg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dg(t){if(!ye(t)||rg(t))return!1;var e=Pn(t)?fg:ag;return e.test(Ce(t))}function pg(t,e){return t==null?void 0:t[e]}function be(t,e){var i=pg(t,e);return dg(i)?i:void 0}var gg=be(Object,"create");const hi=gg;function mg(){this.__data__=hi?hi(null):{},this.size=0}function _g(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var yg="__lodash_hash_undefined__",Cg=Object.prototype,bg=Cg.hasOwnProperty;function xg(t){var e=this.__data__;if(hi){var i=e[t];return i===yg?void 0:i}return bg.call(e,t)?e[t]:void 0}var Tg=Object.prototype,vg=Tg.hasOwnProperty;function kg(t){var e=this.__data__;return hi?e[t]!==void 0:vg.call(e,t)}var Sg="__lodash_hash_undefined__";function wg(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=hi&&e===void 0?Sg:e,this}function me(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}me.prototype.clear=mg;me.prototype.delete=_g;me.prototype.get=xg;me.prototype.has=kg;me.prototype.set=wg;function Bg(){this.__data__=[],this.size=0}function kr(t,e){return t===e||t!==t&&e!==e}function Sr(t,e){for(var i=t.length;i--;)if(kr(t[i][0],e))return i;return-1}var Ag=Array.prototype,Lg=Ag.splice;function Fg(t){var e=this.__data__,i=Sr(e,t);if(i<0)return!1;var r=e.length-1;return i==r?e.pop():Lg.call(e,i,1),--this.size,!0}function Eg(t){var e=this.__data__,i=Sr(e,t);return i<0?void 0:e[i][1]}function Og(t){return Sr(this.__data__,t)>-1}function Mg(t,e){var i=this.__data__,r=Sr(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function Kt(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}Kt.prototype.clear=Bg;Kt.prototype.delete=Fg;Kt.prototype.get=Eg;Kt.prototype.has=Og;Kt.prototype.set=Mg;var $g=be(Rt,"Map");const ui=$g;function Ig(){this.size=0,this.__data__={hash:new me,map:new(ui||Kt),string:new me}}function Dg(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function wr(t,e){var i=t.__data__;return Dg(e)?i[typeof e=="string"?"string":"hash"]:i.map}function Ng(t){var e=wr(this,t).delete(t);return this.size-=e?1:0,e}function Rg(t){return wr(this,t).get(t)}function Pg(t){return wr(this,t).has(t)}function qg(t,e){var i=wr(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this}function se(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}se.prototype.clear=Ig;se.prototype.delete=Ng;se.prototype.get=Rg;se.prototype.has=Pg;se.prototype.set=qg;var zg="Expected a function";function Ci(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(zg);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s)||o,s};return i.cache=new(Ci.Cache||se),i}Ci.Cache=se;function Wg(){this.__data__=new Kt,this.size=0}function Hg(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}function jg(t){return this.__data__.get(t)}function Ug(t){return this.__data__.has(t)}var Yg=200;function Gg(t,e){var i=this.__data__;if(i instanceof Kt){var r=i.__data__;if(!ui||r.length<Yg-1)return r.push([t,e]),this.size=++i.size,this;i=this.__data__=new se(r)}return i.set(t,e),this.size=i.size,this}function Pe(t){var e=this.__data__=new Kt(t);this.size=e.size}Pe.prototype.clear=Wg;Pe.prototype.delete=Hg;Pe.prototype.get=jg;Pe.prototype.has=Ug;Pe.prototype.set=Gg;var Vg=function(){try{var t=be(Object,"defineProperty");return t({},"",{}),t}catch{}}();const nr=Vg;function qn(t,e,i){e=="__proto__"&&nr?nr(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function gn(t,e,i){(i!==void 0&&!kr(t[e],i)||i===void 0&&!(e in t))&&qn(t,e,i)}function Xg(t){return function(e,i,r){for(var n=-1,o=Object(e),s=r(e),a=s.length;a--;){var l=s[t?a:++n];if(i(o[l],l,o)===!1)break}return e}}var Kg=Xg();const Zg=Kg;var tl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,cs=tl&&typeof module=="object"&&module&&!module.nodeType&&module,Jg=cs&&cs.exports===tl,hs=Jg?Rt.Buffer:void 0,us=hs?hs.allocUnsafe:void 0;function Qg(t,e){if(e)return t.slice();var i=t.length,r=us?us(i):new t.constructor(i);return t.copy(r),r}var tm=Rt.Uint8Array;const fs=tm;function em(t){var e=new t.constructor(t.byteLength);return new fs(e).set(new fs(t)),e}function im(t,e){var i=e?em(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function rm(t,e){var i=-1,r=t.length;for(e||(e=Array(r));++i<r;)e[i]=t[i];return e}var ds=Object.create,nm=function(){function t(){}return function(e){if(!ye(e))return{};if(ds)return ds(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();const om=nm;function el(t,e){return function(i){return t(e(i))}}var sm=el(Object.getPrototypeOf,Object);const il=sm;var am=Object.prototype;function Br(t){var e=t&&t.constructor,i=typeof e=="function"&&e.prototype||am;return t===i}function lm(t){return typeof t.constructor=="function"&&!Br(t)?om(il(t)):{}}function bi(t){return t!=null&&typeof t=="object"}var cm="[object Arguments]";function ps(t){return bi(t)&&Re(t)==cm}var rl=Object.prototype,hm=rl.hasOwnProperty,um=rl.propertyIsEnumerable,fm=ps(function(){return arguments}())?ps:function(t){return bi(t)&&hm.call(t,"callee")&&!um.call(t,"callee")};const or=fm;var dm=Array.isArray;const sr=dm;var pm=9007199254740991;function nl(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=pm}function Ar(t){return t!=null&&nl(t.length)&&!Pn(t)}function gm(t){return bi(t)&&Ar(t)}function mm(){return!1}var ol=typeof exports=="object"&&exports&&!exports.nodeType&&exports,gs=ol&&typeof module=="object"&&module&&!module.nodeType&&module,_m=gs&&gs.exports===ol,ms=_m?Rt.Buffer:void 0,ym=ms?ms.isBuffer:void 0,Cm=ym||mm;const zn=Cm;var bm="[object Object]",xm=Function.prototype,Tm=Object.prototype,sl=xm.toString,vm=Tm.hasOwnProperty,km=sl.call(Object);function Sm(t){if(!bi(t)||Re(t)!=bm)return!1;var e=il(t);if(e===null)return!0;var i=vm.call(e,"constructor")&&e.constructor;return typeof i=="function"&&i instanceof i&&sl.call(i)==km}var wm="[object Arguments]",Bm="[object Array]",Am="[object Boolean]",Lm="[object Date]",Fm="[object Error]",Em="[object Function]",Om="[object Map]",Mm="[object Number]",$m="[object Object]",Im="[object RegExp]",Dm="[object Set]",Nm="[object String]",Rm="[object WeakMap]",Pm="[object ArrayBuffer]",qm="[object DataView]",zm="[object Float32Array]",Wm="[object Float64Array]",Hm="[object Int8Array]",jm="[object Int16Array]",Um="[object Int32Array]",Ym="[object Uint8Array]",Gm="[object Uint8ClampedArray]",Vm="[object Uint16Array]",Xm="[object Uint32Array]",X={};X[zm]=X[Wm]=X[Hm]=X[jm]=X[Um]=X[Ym]=X[Gm]=X[Vm]=X[Xm]=!0;X[wm]=X[Bm]=X[Pm]=X[Am]=X[qm]=X[Lm]=X[Fm]=X[Em]=X[Om]=X[Mm]=X[$m]=X[Im]=X[Dm]=X[Nm]=X[Rm]=!1;function Km(t){return bi(t)&&nl(t.length)&&!!X[Re(t)]}function Zm(t){return function(e){return t(e)}}var al=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ii=al&&typeof module=="object"&&module&&!module.nodeType&&module,Jm=ii&&ii.exports===al,Vr=Jm&&Ja.process,Qm=function(){try{var t=ii&&ii.require&&ii.require("util").types;return t||Vr&&Vr.binding&&Vr.binding("util")}catch{}}();const _s=Qm;var ys=_s&&_s.isTypedArray,t_=ys?Zm(ys):Km;const Wn=t_;function mn(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var e_=Object.prototype,i_=e_.hasOwnProperty;function r_(t,e,i){var r=t[e];(!(i_.call(t,e)&&kr(r,i))||i===void 0&&!(e in t))&&qn(t,e,i)}function n_(t,e,i,r){var n=!i;i||(i={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=r?r(i[a],t[a],a,i,t):void 0;l===void 0&&(l=t[a]),n?qn(i,a,l):r_(i,a,l)}return i}function o_(t,e){for(var i=-1,r=Array(t);++i<t;)r[i]=e(i);return r}var s_=9007199254740991,a_=/^(?:0|[1-9]\d*)$/;function ll(t,e){var i=typeof t;return e=e??s_,!!e&&(i=="number"||i!="symbol"&&a_.test(t))&&t>-1&&t%1==0&&t<e}var l_=Object.prototype,c_=l_.hasOwnProperty;function h_(t,e){var i=sr(t),r=!i&&or(t),n=!i&&!r&&zn(t),o=!i&&!r&&!n&&Wn(t),s=i||r||n||o,a=s?o_(t.length,String):[],l=a.length;for(var c in t)(e||c_.call(t,c))&&!(s&&(c=="length"||n&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ll(c,l)))&&a.push(c);return a}function u_(t){var e=[];if(t!=null)for(var i in Object(t))e.push(i);return e}var f_=Object.prototype,d_=f_.hasOwnProperty;function p_(t){if(!ye(t))return u_(t);var e=Br(t),i=[];for(var r in t)r=="constructor"&&(e||!d_.call(t,r))||i.push(r);return i}function cl(t){return Ar(t)?h_(t,!0):p_(t)}function g_(t){return n_(t,cl(t))}function m_(t,e,i,r,n,o,s){var a=mn(t,i),l=mn(e,i),c=s.get(l);if(c){gn(t,i,c);return}var u=o?o(a,l,i+"",t,e,s):void 0,f=u===void 0;if(f){var h=sr(l),d=!h&&zn(l),_=!h&&!d&&Wn(l);u=l,h||d||_?sr(a)?u=a:gm(a)?u=rm(a):d?(f=!1,u=Qg(l,!0)):_?(f=!1,u=im(l,!0)):u=[]:Sm(l)||or(l)?(u=a,or(a)?u=g_(a):(!ye(a)||Pn(a))&&(u=lm(l))):f=!1}f&&(s.set(l,u),n(u,l,r,o,s),s.delete(l)),gn(t,i,u)}function hl(t,e,i,r,n){t!==e&&Zg(e,function(o,s){if(n||(n=new Pe),ye(o))m_(t,e,s,i,hl,r,n);else{var a=r?r(mn(t,s),o,s+"",t,e,n):void 0;a===void 0&&(a=o),gn(t,s,a)}},cl)}function ul(t){return t}function __(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}var Cs=Math.max;function y_(t,e,i){return e=Cs(e===void 0?t.length-1:e,0),function(){for(var r=arguments,n=-1,o=Cs(r.length-e,0),s=Array(o);++n<o;)s[n]=r[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=r[n];return a[e]=i(s),__(t,this,a)}}function C_(t){return function(){return t}}var b_=nr?function(t,e){return nr(t,"toString",{configurable:!0,enumerable:!1,value:C_(e),writable:!0})}:ul;const x_=b_;var T_=800,v_=16,k_=Date.now;function S_(t){var e=0,i=0;return function(){var r=k_(),n=v_-(r-i);if(i=r,n>0){if(++e>=T_)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var w_=S_(x_);const B_=w_;function A_(t,e){return B_(y_(t,e,ul),t+"")}function L_(t,e,i){if(!ye(i))return!1;var r=typeof e;return(r=="number"?Ar(i)&&ll(e,i.length):r=="string"&&e in i)?kr(i[e],t):!1}function F_(t){return A_(function(e,i){var r=-1,n=i.length,o=n>1?i[n-1]:void 0,s=n>2?i[2]:void 0;for(o=t.length>3&&typeof o=="function"?(n--,o):void 0,s&&L_(i[0],i[1],s)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var a=i[r];a&&t(e,a,r,o)}return e})}var E_=F_(function(t,e,i){hl(t,e,i)});const O_=E_,M_="",$_={curveBasis:nd,curveBasisClosed:od,curveBasisOpen:sd,curveBumpX:id,curveBumpY:rd,curveBundle:ad,curveCardinalClosed:cd,curveCardinalOpen:hd,curveCardinal:ld,curveCatmullRomClosed:fd,curveCatmullRomOpen:dd,curveCatmullRom:ud,curveLinear:ed,curveLinearClosed:pd,curveMonotoneX:gd,curveMonotoneY:md,curveNatural:_d,curveStep:yd,curveStepAfter:bd,curveStepBefore:Cd},I_=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,D_=function(t,e){const i=fl(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const s=i.map(a=>a.args);ir(s),r=lt(r,[...s])}else r=i.args;if(!r)return;let n=vr(t,e);const o="config";return r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o]),r},fl=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${I_.source})(?=[}][%]{2}).*
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),N.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=ei.exec(t))!==null;)if(r.index===ei.lastIndex&&ei.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return N.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},N_=function(t){return t.replace(ei,"")},R_=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function P_(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return $_[i]??e}function q_(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Xs.sanitizeUrl(i):i}const z_=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s<r;s++)if(o=o[i[s]],!o){N.error(`Function name: ${t} not found in window`);return}o[n](...e)};function dl(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function W_(t){let e,i=0;t.forEach(n=>{i+=dl(n,e),e=n});const r=i/2;return Hn(t,r)}function H_(t){return t.length===1?t[0]:W_(t)}const bs=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Hn=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=dl(n,i);if(o<r)r-=o;else{const s=r/o;if(s<=0)return i;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:bs((1-s)*i.x+s*n.x,5),y:bs((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},j_=(t,e,i)=>{N.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Hn(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function U_(t,e,i){const r=structuredClone(i);N.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Hn(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function Y_(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let xs=0;const G_=()=>(xs++,"id-"+Math.random().toString(36).substr(2,12)+"-"+xs);function V_(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const X_=t=>V_(t.length),K_=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},Z_=function(t,e){const i=e.text.replace(Rn.lineBreakRegex," "),[,r]=Un(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},J_=Ci((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),Rn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=ar(`${s} `,i),c=ar(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:d}=Q_(s,e,"-",i);n.push(o,...h),o=d}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Q_=Ci((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(ar(c,r)>=e){const f=l+1,h=n.length===f,d=`${c}${i}`;o.push(h?c:d),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function t0(t,e){return jn(t,e).height}function ar(t,e){return jn(t,e).width}const jn=Ci((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Un(i),s=["sans-serif",r],a=t.split(Rn.lineBreakRegex),l=[],c=vt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of s){let d=0;const _={width:0,height:0,lineHeight:0};for(const T of a){const w=K_();w.text=T||M_;const A=Z_(u,w).style("font-size",o).style("font-weight",n).style("font-family",h),y=(A._groups||A)[0][0].getBBox();if(y.width===0&&y.height===0)throw new Error("svg element not in render tree");_.width=Math.round(Math.max(_.width,y.width)),d=Math.round(y.height),_.height+=d,_.lineHeight=Math.round(Math.max(_.lineHeight,d))}l.push(_)}u.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class e0{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let Mi;const i0=function(t){return Mi=Mi||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Mi.innerHTML=t,unescape(Mi.textContent)};function pl(t){return"str"in t}const r0=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Un=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function gl(t,e){return O_({},t,e)}const ri={assignWithDepth:lt,wrapLabel:J_,calculateTextHeight:t0,calculateTextWidth:ar,calculateTextDimensions:jn,cleanAndMerge:gl,detectInit:D_,detectDirective:fl,isSubstringInArray:R_,interpolateToCurve:P_,calcLabelPosition:H_,calcCardinalityPosition:j_,calcTerminalLabelPosition:U_,formatUrl:q_,getStylesFromArray:Y_,generateId:G_,random:X_,runFunc:z_,entityDecode:i0,insertTitle:r0,parseFontSize:Un,InitIDGenerator:e0},n0=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},o0=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")};var ml="comm",_l="rule",yl="decl",s0="@import",a0="@keyframes",l0="@layer",Cl=Math.abs,Yn=String.fromCharCode;function bl(t){return t.trim()}function Hi(t,e,i){return t.replace(e,i)}function c0(t,e,i){return t.indexOf(e,i)}function fi(t,e){return t.charCodeAt(e)|0}function di(t,e,i){return t.slice(e,i)}function Yt(t){return t.length}function h0(t){return t.length}function $i(t,e){return e.push(t),t}var Lr=1,$e=1,xl=0,kt=0,tt=0,qe="";function Gn(t,e,i,r,n,o,s,a){return{value:t,root:e,parent:i,type:r,props:n,children:o,line:Lr,column:$e,length:s,return:"",siblings:a}}function u0(){return tt}function f0(){return tt=kt>0?fi(qe,--kt):0,$e--,tt===10&&($e=1,Lr--),tt}function Lt(){return tt=kt<xl?fi(qe,kt++):0,$e++,tt===10&&($e=1,Lr++),tt}function de(){return fi(qe,kt)}function ji(){return kt}function Fr(t,e){return di(qe,t,e)}function _n(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function d0(t){return Lr=$e=1,xl=Yt(qe=t),kt=0,[]}function p0(t){return qe="",t}function Xr(t){return bl(Fr(kt-1,yn(t===91?t+2:t===40?t+1:t)))}function g0(t){for(;(tt=de())&&tt<33;)Lt();return _n(t)>2||_n(tt)>3?"":" "}function m0(t,e){for(;--e&&Lt()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return Fr(t,ji()+(e<6&&de()==32&&Lt()==32))}function yn(t){for(;Lt();)switch(tt){case t:return kt;case 34:case 39:t!==34&&t!==39&&yn(tt);break;case 40:t===41&&yn(t);break;case 92:Lt();break}return kt}function _0(t,e){for(;Lt()&&t+tt!==57;)if(t+tt===84&&de()===47)break;return"/*"+Fr(e,kt-1)+"*"+Yn(t===47?t:Lt())}function y0(t){for(;!_n(de());)Lt();return Fr(t,kt)}function C0(t){return p0(Ui("",null,null,null,[""],t=d0(t),0,[0],t))}function Ui(t,e,i,r,n,o,s,a,l){for(var c=0,u=0,f=s,h=0,d=0,_=0,T=1,w=1,A=1,y=0,E="",L=n,R=o,m=r,b=E;w;)switch(_=y,y=Lt()){case 40:if(_!=108&&fi(b,f-1)==58){c0(b+=Hi(Xr(y),"&","&\f"),"&\f",Cl(c?a[c-1]:0))!=-1&&(A=-1);break}case 34:case 39:case 91:b+=Xr(y);break;case 9:case 10:case 13:case 32:b+=g0(_);break;case 92:b+=m0(ji()-1,7);continue;case 47:switch(de()){case 42:case 47:$i(b0(_0(Lt(),ji()),e,i,l),l);break;default:b+="/"}break;case 123*T:a[c++]=Yt(b)*A;case 125*T:case 59:case 0:switch(y){case 0:case 125:w=0;case 59+u:A==-1&&(b=Hi(b,/\f/g,"")),d>0&&Yt(b)-f&&$i(d>32?vs(b+";",r,i,f-1,l):vs(Hi(b," ","")+";",r,i,f-2,l),l);break;case 59:b+=";";default:if($i(m=Ts(b,e,i,c,u,n,a,E,L=[],R=[],f,o),o),y===123)if(u===0)Ui(b,e,m,m,L,o,f,a,R);else switch(h===99&&fi(b,3)===110?100:h){case 100:case 108:case 109:case 115:Ui(t,m,m,r&&$i(Ts(t,m,m,0,0,n,a,E,n,L=[],f,R),R),n,R,f,a,r?L:R);break;default:Ui(b,m,m,m,[""],R,0,a,R)}}c=u=d=0,T=A=1,E=b="",f=s;break;case 58:f=1+Yt(b),d=_;default:if(T<1){if(y==123)--T;else if(y==125&&T++==0&&f0()==125)continue}switch(b+=Yn(y),y*T){case 38:A=u>0?1:(b+="\f",-1);break;case 44:a[c++]=(Yt(b)-1)*A,A=1;break;case 64:de()===45&&(b+=Xr(Lt())),h=de(),u=f=Yt(E=b+=y0(ji())),y++;break;case 45:_===45&&Yt(b)==2&&(T=0)}}return o}function Ts(t,e,i,r,n,o,s,a,l,c,u,f){for(var h=n-1,d=n===0?o:[""],_=h0(d),T=0,w=0,A=0;T<r;++T)for(var y=0,E=di(t,h+1,h=Cl(w=s[T])),L=t;y<_;++y)(L=bl(w>0?d[y]+" "+E:Hi(E,/&\f/g,d[y])))&&(l[A++]=L);return Gn(t,e,i,n===0?_l:a,l,c,u,f)}function b0(t,e,i,r){return Gn(t,e,i,ml,Yn(u0()),di(t,2,-2),0,r)}function vs(t,e,i,r,n){return Gn(t,e,i,yl,di(t,0,r),di(t,r+1,-1),r,n)}function Cn(t,e){for(var i="",r=0;r<t.length;r++)i+=e(t[r],r,t,e)||"";return i}function x0(t,e,i,r){switch(t.type){case l0:if(t.children.length)break;case s0:case yl:return t.return=t.return||t.value;case ml:return"";case a0:return t.return=t.value+"{"+Cn(t.children,r)+"}";case _l:if(!Yt(t.value=t.props.join(",")))return""}return Yt(i=Cn(t.children,r))?t.return=t.value+"{"+i+"}":""}const ks="10.9.0",Ie=Object.freeze(Dp);let gt=lt({},Ie),Tl,De=[],ni=lt({},Ie);const Er=(t,e)=>{let i=lt({},t),r={};for(const n of e)Sl(n),r=lt(r,n);if(i=lt(i,r),r.theme&&r.theme in Vt){const n=lt({},Tl),o=lt(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in Vt&&(i.themeVariables=Vt[i.theme].getThemeVariables(o))}return ni=i,wl(ni),ni},T0=t=>(gt=lt({},Ie),gt=lt(gt,t),t.theme&&Vt[t.theme]&&(gt.themeVariables=Vt[t.theme].getThemeVariables(t.themeVariables)),Er(gt,De),gt),v0=t=>{Tl=lt({},t)},k0=t=>(gt=lt(gt,t),Er(gt,De),gt),vl=()=>lt({},gt),kl=t=>(wl(t),lt(ni,t),Dt()),Dt=()=>lt({},ni),Sl=t=>{t&&(["secure",...gt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(N.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Sl(t[e])}))},S0=t=>{ir(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),De.push(t),Er(gt,De)},lr=(t=gt)=>{De=[],Er(t,De)},w0={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Ss={},B0=t=>{Ss[t]||(N.warn(w0[t]),Ss[t]=!0)},wl=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&B0("LAZY_LOAD_DEPRECATED")},Bl="c4",A0=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),L0=async()=>{const{diagram:t}=await Z(()=>import("../c4Diagram-e2511a7a-D4PtnF99.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]));return{id:Bl,diagram:t}},F0={id:Bl,detector:A0,loader:L0},E0=F0,Al="flowchart",O0=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},M0=async()=>{const{diagram:t}=await Z(()=>import("../flowDiagram-e44a2353-oPb14xqg.js"),__vite__mapDeps([8,9,10,11,12,13,14,15,16,17,18,19,20,2,3,4,5,6,7]));return{id:Al,diagram:t}},$0={id:Al,detector:O0,loader:M0},I0=$0,Ll="flowchart-v2",D0=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},N0=async()=>{const{diagram:t}=await Z(()=>import("../flowDiagram-v2-a8396bb5-B6uvWRZi.js"),__vite__mapDeps([21,9,12,10,13,11,14,15,16,17,18,19,20,2,3,4,5,6,7]));return{id:Ll,diagram:t}},R0={id:Ll,detector:D0,loader:N0},P0=R0,Fl="er",q0=t=>/^\s*erDiagram/.test(t),z0=async()=>{const{diagram:t}=await Z(()=>import("../erDiagram-582bd92f-Bdp29OHf.js"),__vite__mapDeps([22,10,11,17,18,19,2,3,4,5,6,7]));return{id:Fl,diagram:t}},W0={id:Fl,detector:q0,loader:z0},H0=W0,El="gitGraph",j0=t=>/^\s*gitGraph/.test(t),U0=async()=>{const{diagram:t}=await Z(()=>import("../gitGraphDiagram-d5d647e9-CzK63b8s.js"),__vite__mapDeps([23,2,3,4,5,6,7]));return{id:El,diagram:t}},Y0={id:El,detector:j0,loader:U0},G0=Y0,Ol="gantt",V0=t=>/^\s*gantt/.test(t),X0=async()=>{const{diagram:t}=await Z(()=>import("../ganttDiagram-05e48839-BsDG_2Rh.js"),__vite__mapDeps([24,25,26,2,3,4,5,6,7]));return{id:Ol,diagram:t}},K0={id:Ol,detector:V0,loader:X0},Z0=K0,Ml="info",J0=t=>/^\s*info/.test(t),Q0=async()=>{const{diagram:t}=await Z(()=>import("../infoDiagram-00deb277-CwQyZWUw.js"),__vite__mapDeps([27,2,3,4,5,6,7]));return{id:Ml,diagram:t}},ty={id:Ml,detector:J0,loader:Q0},$l="pie",ey=t=>/^\s*pie/.test(t),iy=async()=>{const{diagram:t}=await Z(()=>import("../pieDiagram-35c7eafc-Dbp_bXX5.js"),__vite__mapDeps([28,29,19,30,26,18,2,3,4,5,6,7]));return{id:$l,diagram:t}},ry={id:$l,detector:ey,loader:iy},Il="quadrantChart",ny=t=>/^\s*quadrantChart/.test(t),oy=async()=>{const{diagram:t}=await Z(()=>import("../quadrantDiagram-9c93c009-sY1BZ1aG.js"),__vite__mapDeps([31,25,26,2,3,4,5,6,7]));return{id:Il,diagram:t}},sy={id:Il,detector:ny,loader:oy},ay=sy,Dl="xychart",ly=t=>/^\s*xychart-beta/.test(t),cy=async()=>{const{diagram:t}=await Z(()=>import("../xychartDiagram-7b46ecfd-TpNv_eTg.js"),__vite__mapDeps([32,16,26,30,25,17,18,19,2,3,4,5,6,7]));return{id:Dl,diagram:t}},hy={id:Dl,detector:ly,loader:cy},uy=hy,Nl="requirement",fy=t=>/^\s*requirement(Diagram)?/.test(t),dy=async()=>{const{diagram:t}=await Z(()=>import("../requirementDiagram-e882bd67-Cd9l96Nf.js"),__vite__mapDeps([33,10,11,17,18,19,2,3,4,5,6,7]));return{id:Nl,diagram:t}},py={id:Nl,detector:fy,loader:dy},gy=py,Rl="sequence",my=t=>/^\s*sequenceDiagram/.test(t),_y=async()=>{const{diagram:t}=await Z(()=>import("../sequenceDiagram-1767341c-Ckf8lhi2.js"),__vite__mapDeps([34,1,2,3,4,5,6,7]));return{id:Rl,diagram:t}},yy={id:Rl,detector:my,loader:_y},Cy=yy,Pl="class",by=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},xy=async()=>{const{diagram:t}=await Z(()=>import("../classDiagram-3275847a-CoUbQdy4.js"),__vite__mapDeps([35,36,10,11,17,18,19,2,3,4,5,6,7]));return{id:Pl,diagram:t}},Ty={id:Pl,detector:by,loader:xy},vy=Ty,ql="classDiagram",ky=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Sy=async()=>{const{diagram:t}=await Z(()=>import("../classDiagram-v2-2ed0a7d3-CU0N-Hcd.js"),__vite__mapDeps([37,36,10,13,11,14,15,16,17,18,19,2,3,4,5,6,7]));return{id:ql,diagram:t}},wy={id:ql,detector:ky,loader:Sy},By=wy,zl="state",Ay=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},Ly=async()=>{const{diagram:t}=await Z(()=>import("../stateDiagram-d2e6f24f-oVYdlYR9.js"),__vite__mapDeps([38,39,10,11,17,18,19,2,3,4,5,6,7]));return{id:zl,diagram:t}},Fy={id:zl,detector:Ay,loader:Ly},Ey=Fy,Wl="stateDiagram",Oy=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},My=async()=>{const{diagram:t}=await Z(()=>import("../stateDiagram-v2-21d485ae-wuKVlWkf.js"),__vite__mapDeps([40,39,10,13,11,14,15,16,17,18,19,2,3,4,5,6,7]));return{id:Wl,diagram:t}},$y={id:Wl,detector:Oy,loader:My},Iy=$y,Hl="journey",Dy=t=>/^\s*journey/.test(t),Ny=async()=>{const{diagram:t}=await Z(()=>import("../journeyDiagram-a5efd2e1-BV9IvVjZ.js"),__vite__mapDeps([41,1,29,19,2,3,4,5,6,7]));return{id:Hl,diagram:t}},Ry={id:Hl,detector:Dy,loader:Ny},Py=Ry,qy=function(t,e){for(let i of e)t.attr(i[0],i[1])},zy=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},jl=function(t,e,i,r){const n=zy(e,i,r);qy(t,n)},Wy=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;N.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;N.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,N.info(`Calculated bounds: ${a}x${l}`),jl(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},Yi={},Hy=(t,e,i)=>{let r="";return t in Yi&&Yi[t]?r=Yi[t](i):N.warn(`No theme found for ${t}`),` & {
font-family: ${i.fontFamily};
font-size: ${i.fontSize};
fill: ${i.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${i.errorBkgColor};
}
& .error-text {
fill: ${i.errorTextColor};
stroke: ${i.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: 2px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${i.lineColor};
stroke: ${i.lineColor};
}
& .marker.cross {
stroke: ${i.lineColor};
}
& svg {
font-family: ${i.fontFamily};
font-size: ${i.fontSize};
}
${r}
${e}
`},jy=(t,e)=>{e!==void 0&&(Yi[t]=e)},Uy=Hy;let Vn="",Xn="",Kn="";const Zn=t=>ci(t,Dt()),Yy=()=>{Vn="",Kn="",Xn=""},Gy=t=>{Vn=Zn(t).replace(/^\s+/g,"")},Vy=()=>Vn,Xy=t=>{Kn=Zn(t).replace(/\n\s+/g,`
`)},Ky=()=>Kn,Zy=t=>{Xn=Zn(t)},Jy=()=>Xn,Qy=Object.freeze(Object.defineProperty({__proto__:null,clear:Yy,getAccDescription:Ky,getAccTitle:Vy,getDiagramTitle:Jy,setAccDescription:Xy,setAccTitle:Gy,setDiagramTitle:Zy},Symbol.toStringTag,{value:"Module"})),tC=N,eC=Sn,Jn=Dt,iT=kl,rT=Ie,iC=t=>ci(t,Jn()),rC=Wy,nC=()=>Qy,cr={},hr=(t,e,i)=>{var r;if(cr[t])throw new Error(`Diagram ${t} already registered.`);cr[t]=e,i&&Za(t,i),jy(t,e.styles),(r=e.injectUtils)==null||r.call(e,tC,eC,Jn,iC,rC,nC(),()=>{})},Qn=t=>{if(t in cr)return cr[t];throw new oC(t)};class oC extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const sC=t=>{var e;const{securityLevel:i}=Jn();let r=vt("body");if(i==="sandbox"){const s=((e=vt(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=vt(s.body)}return r.select(`#${t}`)},aC=(t,e,i)=>{N.debug(`rendering svg for syntax error
`);const r=sC(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),jl(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},Ul={draw:aC},lC=Ul,cC={db:{},renderer:Ul,parser:{parser:{yy:{}},parse:()=>{}}},hC=cC,Yl="flowchart-elk",uC=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},fC=async()=>{const{diagram:t}=await Z(()=>import("../flowchart-elk-definition-1a3aaf5d-CrpMlA3y.js"),__vite__mapDeps([42,9,15,16,17,18,19,2,3,4,5,6,7]));return{id:Yl,diagram:t}},dC={id:Yl,detector:uC,loader:fC},pC=dC,Gl="timeline",gC=t=>/^\s*timeline/.test(t),mC=async()=>{const{diagram:t}=await Z(()=>import("../timeline-definition-f8c5dfc0-BaOfPiRR.js"),__vite__mapDeps([43,29,19,2,3,4,5,6,7]));return{id:Gl,diagram:t}},_C={id:Gl,detector:gC,loader:mC},yC=_C,Vl="mindmap",CC=t=>/^\s*mindmap/.test(t),bC=async()=>{const{diagram:t}=await Z(()=>import("../mindmap-definition-74120bdd-DdId7Jzm.js"),__vite__mapDeps([44,16,2,3,4,5,6,7]));return{id:Vl,diagram:t}},xC={id:Vl,detector:CC,loader:bC},TC=xC,Xl="sankey",vC=t=>/^\s*sankey-beta/.test(t),kC=async()=>{const{diagram:t}=await Z(()=>import("../sankeyDiagram-f5d051b7-CEiOBqOk.js"),__vite__mapDeps([45,30,26,46,2,3,4,5,6,7]));return{id:Xl,diagram:t}},SC={id:Xl,detector:vC,loader:kC},wC=SC,Kl="block",BC=t=>/^\s*block-beta/.test(t),AC=async()=>{const{diagram:t}=await Z(()=>import("../blockDiagram-8beecd1f-CgCJKU_s.js"),__vite__mapDeps([47,14,10,20,15,16,17,18,19,30,26,46,2,3,4,5,6,7]));return{id:Kl,diagram:t}},LC={id:Kl,detector:BC,loader:AC},FC=LC;let ws=!1;const to=()=>{ws||(ws=!0,hr("error",hC,t=>t.toLowerCase().trim()==="error"),hr("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Ka(E0,By,vy,H0,Z0,ty,ry,gy,Cy,pC,P0,I0,TC,yC,G0,Iy,Ey,Py,ay,wC,uy,FC))};class Zl{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=n0(e),this.text+=`
`;const r=Dt();try{this.type=vr(e,r)}catch(o){this.type="error",this.detectError=o}const n=Qn(this.type);N.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,o;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const s=Dt();(r=this.init)==null||r.call(this,s),this.metadata.title&&((o=(n=this.db).setDiagramTitle)==null||o.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const EC=async(t,e={})=>{const i=vr(t,Dt());try{Qn(i)}catch{const n=Pp(i);if(!n)throw new Xa(`Diagram ${i} not found.`);const{id:o,diagram:s}=await n();hr(o,s)}return new Zl(t,e)};let Bs=[];const OC=()=>{Bs.forEach(t=>{t()}),Bs=[]};var MC=el(Object.keys,Object);const $C=MC;var IC=Object.prototype,DC=IC.hasOwnProperty;function NC(t){if(!Br(t))return $C(t);var e=[];for(var i in Object(t))DC.call(t,i)&&i!="constructor"&&e.push(i);return e}var RC=be(Rt,"DataView");const bn=RC;var PC=be(Rt,"Promise");const xn=PC;var qC=be(Rt,"Set");const Tn=qC;var zC=be(Rt,"WeakMap");const vn=zC;var As="[object Map]",WC="[object Object]",Ls="[object Promise]",Fs="[object Set]",Es="[object WeakMap]",Os="[object DataView]",HC=Ce(bn),jC=Ce(ui),UC=Ce(xn),YC=Ce(Tn),GC=Ce(vn),he=Re;(bn&&he(new bn(new ArrayBuffer(1)))!=Os||ui&&he(new ui)!=As||xn&&he(xn.resolve())!=Ls||Tn&&he(new Tn)!=Fs||vn&&he(new vn)!=Es)&&(he=function(t){var e=Re(t),i=e==WC?t.constructor:void 0,r=i?Ce(i):"";if(r)switch(r){case HC:return Os;case jC:return As;case UC:return Ls;case YC:return Fs;case GC:return Es}return e});const VC=he;var XC="[object Map]",KC="[object Set]",ZC=Object.prototype,JC=ZC.hasOwnProperty;function Kr(t){if(t==null)return!0;if(Ar(t)&&(sr(t)||typeof t=="string"||typeof t.splice=="function"||zn(t)||Wn(t)||or(t)))return!t.length;var e=VC(t);if(e==XC||e==KC)return!t.size;if(Br(t))return!NC(t).length;for(var i in t)if(JC.call(t,i))return!1;return!0}const QC="graphics-document document";function t1(t,e){t.attr("role",QC),e!==""&&t.attr("aria-roledescription",e)}function e1(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const i1=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Jl(t){return typeof t>"u"||t===null}function r1(t){return typeof t=="object"&&t!==null}function n1(t){return Array.isArray(t)?t:Jl(t)?[]:[t]}function o1(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;i<r;i+=1)n=o[i],t[n]=e[n];return t}function s1(t,e){var i="",r;for(r=0;r<e;r+=1)i+=t;return i}function a1(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var l1=Jl,c1=r1,h1=n1,u1=s1,f1=a1,d1=o1,ht={isNothing:l1,isObject:c1,toArray:h1,repeat:u1,isNegativeZero:f1,extend:d1};function Ql(t,e){var i="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(i+=`
`+t.mark.snippet),r+" "+i):r}function pi(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Ql(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}pi.prototype=Object.create(Error.prototype);pi.prototype.constructor=pi;pi.prototype.toString=function(e){return this.name+": "+Ql(this,e)};var Gt=pi;function Zr(t,e,i,r,n){var o="",s="",a=Math.floor(n/2)-1;return r-e>a&&(o=" ... ",e=r-a+o.length),i-r>a&&(s=" ...",i=r+a-s.length),{str:o+t.slice(e,i).replace(/\t/g,"→")+s,pos:r-e+o.length}}function Jr(t,e){return ht.repeat(" ",e-t.length)+t}function p1(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],o,s=-1;o=i.exec(t.buffer);)n.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=Zr(t.buffer,r[s-l],n[s-l],t.position-(r[s]-r[s-l]),f),a=ht.repeat(" ",e.indent)+Jr((t.line-l+1).toString(),u)+" | "+c.str+`
`+a;for(c=Zr(t.buffer,r[s],n[s],t.position,f),a+=ht.repeat(" ",e.indent)+Jr((t.line+1).toString(),u)+" | "+c.str+`
`,a+=ht.repeat("-",e.indent+u+3+c.pos)+`^
`,l=1;l<=e.linesAfter&&!(s+l>=n.length);l++)c=Zr(t.buffer,r[s+l],n[s+l],t.position-(r[s]-r[s+l]),f),a+=ht.repeat(" ",e.indent)+Jr((t.line+l+1).toString(),u)+" | "+c.str+`
`;return a.replace(/\n$/,"")}var g1=p1,m1=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_1=["scalar","sequence","mapping"];function y1(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function C1(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(m1.indexOf(i)===-1)throw new Gt('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(i){return i},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=y1(e.styleAliases||null),_1.indexOf(this.kind)===-1)throw new Gt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ct=C1;function Ms(t,e){var i=[];return t[e].forEach(function(r){var n=i.length;i.forEach(function(o,s){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(n=s)}),i[n]=r}),i}function b1(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,i;function r(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,i=arguments.length;e<i;e+=1)arguments[e].forEach(r);return t}function kn(t){return this.extend(t)}kn.prototype.extend=function(e){var i=[],r=[];if(e instanceof ct)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(i=i.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Gt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(o){if(!(o instanceof ct))throw new Gt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Gt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Gt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(o){if(!(o instanceof ct))throw new Gt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(kn.prototype);return n.implicit=(this.implicit||[]).concat(i),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=Ms(n,"implicit"),n.compiledExplicit=Ms(n,"explicit"),n.compiledTypeMap=b1(n.compiledImplicit,n.compiledExplicit),n};var x1=kn,T1=new ct("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),v1=new ct("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),k1=new ct("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),S1=new x1({explicit:[T1,v1,k1]});function w1(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function B1(){return null}function A1(t){return t===null}var L1=new ct("tag:yaml.org,2002:null",{kind:"scalar",resolve:w1,construct:B1,predicate:A1,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function F1(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function E1(t){return t==="true"||t==="True"||t==="TRUE"}function O1(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var M1=new ct("tag:yaml.org,2002:bool",{kind:"scalar",resolve:F1,construct:E1,predicate:O1,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function $1(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function I1(t){return 48<=t&&t<=55}function D1(t){return 48<=t&&t<=57}function N1(t){if(t===null)return!1;var e=t.length,i=0,r=!1,n;if(!e)return!1;if(n=t[i],(n==="-"||n==="+")&&(n=t[++i]),n==="0"){if(i+1===e)return!0;if(n=t[++i],n==="b"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(n!=="0"&&n!=="1")return!1;r=!0}return r&&n!=="_"}if(n==="x"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!$1(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}if(n==="o"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!I1(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}}if(n==="_")return!1;for(;i<e;i++)if(n=t[i],n!=="_"){if(!D1(t.charCodeAt(i)))return!1;r=!0}return!(!r||n==="_")}function R1(t){var e=t,i=1,r;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),r=e[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),e=e.slice(1),r=e[0]),e==="0")return 0;if(r==="0"){if(e[1]==="b")return i*parseInt(e.slice(2),2);if(e[1]==="x")return i*parseInt(e.slice(2),16);if(e[1]==="o")return i*parseInt(e.slice(2),8)}return i*parseInt(e,10)}function P1(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!ht.isNegativeZero(t)}var q1=new ct("tag:yaml.org,2002:int",{kind:"scalar",resolve:N1,construct:R1,predicate:P1,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),z1=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function W1(t){return!(t===null||!z1.test(t)||t[t.length-1]==="_")}function H1(t){var e,i;return e=t.replace(/_/g,"").toLowerCase(),i=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:i*parseFloat(e,10)}var j1=/^[-+]?[0-9]+e/;function U1(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ht.isNegativeZero(t))return"-0.0";return i=t.toString(10),j1.test(i)?i.replace("e",".e"):i}function Y1(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ht.isNegativeZero(t))}var G1=new ct("tag:yaml.org,2002:float",{kind:"scalar",resolve:W1,construct:H1,predicate:Y1,represent:U1,defaultStyle:"lowercase"}),tc=S1.extend({implicit:[L1,M1,q1,G1]}),V1=tc,ec=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ic=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function X1(t){return t===null?!1:ec.exec(t)!==null||ic.exec(t)!==null}function K1(t){var e,i,r,n,o,s,a,l=0,c=null,u,f,h;if(e=ec.exec(t),e===null&&(e=ic.exec(t)),e===null)throw new Error("Date resolve error");if(i=+e[1],r=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(i,r,n));if(o=+e[4],s=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],f=+(e[11]||0),c=(u*60+f)*6e4,e[9]==="-"&&(c=-c)),h=new Date(Date.UTC(i,r,n,o,s,a,l)),c&&h.setTime(h.getTime()-c),h}function Z1(t){return t.toISOString()}var J1=new ct("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:X1,construct:K1,instanceOf:Date,represent:Z1});function Q1(t){return t==="<<"||t===null}var tb=new ct("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Q1}),eo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function eb(t){if(t===null)return!1;var e,i,r=0,n=t.length,o=eo;for(i=0;i<n;i++)if(e=o.indexOf(t.charAt(i)),!(e>64)){if(e<0)return!1;r+=6}return r%8===0}function ib(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,o=eo,s=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(r.charAt(e));return i=n%4*6,i===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):i===18?(a.push(s>>10&255),a.push(s>>2&255)):i===12&&a.push(s>>4&255),new Uint8Array(a)}function rb(t){var e="",i=0,r,n,o=t.length,s=eo;for(r=0;r<o;r++)r%3===0&&r&&(e+=s[i>>18&63],e+=s[i>>12&63],e+=s[i>>6&63],e+=s[i&63]),i=(i<<8)+t[r];return n=o%3,n===0?(e+=s[i>>18&63],e+=s[i>>12&63],e+=s[i>>6&63],e+=s[i&63]):n===2?(e+=s[i>>10&63],e+=s[i>>4&63],e+=s[i<<2&63],e+=s[64]):n===1&&(e+=s[i>>2&63],e+=s[i<<4&63],e+=s[64],e+=s[64]),e}function nb(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var ob=new ct("tag:yaml.org,2002:binary",{kind:"scalar",resolve:eb,construct:ib,predicate:nb,represent:rb}),sb=Object.prototype.hasOwnProperty,ab=Object.prototype.toString;function lb(t){if(t===null)return!0;var e=[],i,r,n,o,s,a=t;for(i=0,r=a.length;i<r;i+=1){if(n=a[i],s=!1,ab.call(n)!=="[object Object]")return!1;for(o in n)if(sb.call(n,o))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(o)===-1)e.push(o);else return!1}return!0}function cb(t){return t!==null?t:[]}var hb=new ct("tag:yaml.org,2002:omap",{kind:"sequence",resolve:lb,construct:cb}),ub=Object.prototype.toString;function fb(t){if(t===null)return!0;var e,i,r,n,o,s=t;for(o=new Array(s.length),e=0,i=s.length;e<i;e+=1){if(r=s[e],ub.call(r)!=="[object Object]"||(n=Object.keys(r),n.length!==1))return!1;o[e]=[n[0],r[n[0]]]}return!0}function db(t){if(t===null)return[];var e,i,r,n,o,s=t;for(o=new Array(s.length),e=0,i=s.length;e<i;e+=1)r=s[e],n=Object.keys(r),o[e]=[n[0],r[n[0]]];return o}var pb=new ct("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:fb,construct:db}),gb=Object.prototype.hasOwnProperty;function mb(t){if(t===null)return!0;var e,i=t;for(e in i)if(gb.call(i,e)&&i[e]!==null)return!1;return!0}function _b(t){return t!==null?t:{}}var yb=new ct("tag:yaml.org,2002:set",{kind:"mapping",resolve:mb,construct:_b}),Cb=V1.extend({implicit:[J1,tb],explicit:[ob,hb,pb,yb]}),oe=Object.prototype.hasOwnProperty,ur=1,rc=2,nc=3,fr=4,Qr=1,bb=2,$s=3,xb=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Tb=/[\x85\u2028\u2029]/,vb=/[,\[\]\{\}]/,oc=/^(?:!|!!|![a-z\-]+!)$/i,sc=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Is(t){return Object.prototype.toString.call(t)}function $t(t){return t===10||t===13}function pe(t){return t===9||t===32}function _t(t){return t===9||t===32||t===10||t===13}function Be(t){return t===44||t===91||t===93||t===123||t===125}function kb(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Sb(t){return t===120?2:t===117?4:t===85?8:0}function wb(t){return 48<=t&&t<=57?t-48:-1}function Ds(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?" ":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function Bb(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var ac=new Array(256),lc=new Array(256);for(var we=0;we<256;we++)ac[we]=Ds(we)?1:0,lc[we]=Ds(we);function Ab(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Cb,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function cc(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=g1(i),new Gt(e,i)}function D(t,e){throw cc(t,e)}function dr(t,e){t.onWarning&&t.onWarning.call(null,cc(t,e))}var Ns={YAML:function(e,i,r){var n,o,s;e.version!==null&&D(e,"duplication of %YAML directive"),r.length!==1&&D(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&D(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),s=parseInt(n[2],10),o!==1&&D(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&dr(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var n,o;r.length!==2&&D(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],oc.test(n)||D(e,"ill-formed tag handle (first argument) of the TAG directive"),oe.call(e.tagMap,n)&&D(e,'there is a previously declared suffix for "'+n+'" tag handle'),sc.test(o)||D(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{D(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function re(t,e,i,r){var n,o,s,a;if(e<i){if(a=t.input.slice(e,i),r)for(n=0,o=a.length;n<o;n+=1)s=a.charCodeAt(n),s===9||32<=s&&s<=1114111||D(t,"expected valid JSON character");else xb.test(a)&&D(t,"the stream contains non-printable characters");t.result+=a}}function Rs(t,e,i,r){var n,o,s,a;for(ht.isObject(i)||D(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(i),s=0,a=n.length;s<a;s+=1)o=n[s],oe.call(e,o)||(e[o]=i[o],r[o]=!0)}function Ae(t,e,i,r,n,o,s,a,l){var c,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,u=n.length;c<u;c+=1)Array.isArray(n[c])&&D(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Is(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Is(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)Rs(t,e,o[c],i);else Rs(t,e,o,i);else!t.json&&!oe.call(i,n)&&oe.call(e,n)&&(t.line=s||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,D(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[n]=o,delete i[n];return e}function io(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):D(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function et(t,e,i){for(var r=0,n=t.input.charCodeAt(t.position);n!==0;){for(;pe(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if($t(n))for(io(t),n=t.input.charCodeAt(t.position),r++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return i!==-1&&r!==0&&t.lineIndent<i&&dr(t,"deficient indentation"),r}function Or(t){var e=t.position,i;return i=t.input.charCodeAt(e),!!((i===45||i===46)&&i===t.input.charCodeAt(e+1)&&i===t.input.charCodeAt(e+2)&&(e+=3,i=t.input.charCodeAt(e),i===0||_t(i)))}function ro(t,e){e===1?t.result+=" ":e>1&&(t.result+=ht.repeat(`
`,e-1))}function Lb(t,e,i){var r,n,o,s,a,l,c,u,f=t.kind,h=t.result,d;if(d=t.input.charCodeAt(t.position),_t(d)||Be(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=t.input.charCodeAt(t.position+1),_t(n)||i&&Be(n)))return!1;for(t.kind="scalar",t.result="",o=s=t.position,a=!1;d!==0;){if(d===58){if(n=t.input.charCodeAt(t.position+1),_t(n)||i&&Be(n))break}else if(d===35){if(r=t.input.charCodeAt(t.position-1),_t(r))break}else{if(t.position===t.lineStart&&Or(t)||i&&Be(d))break;if($t(d))if(l=t.line,c=t.lineStart,u=t.lineIndent,et(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(re(t,o,s,!1),ro(t,t.line-l),o=s=t.position,a=!1),pe(d)||(s=t.position+1),d=t.input.charCodeAt(++t.position)}return re(t,o,s,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function Fb(t,e){var i,r,n;if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(re(t,r,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)r=t.position,t.position++,n=t.position;else return!0;else $t(i)?(re(t,r,n,!0),ro(t,et(t,!1,e)),r=n=t.position):t.position===t.lineStart&&Or(t)?D(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);D(t,"unexpected end of the stream within a single quoted scalar")}function Eb(t,e){var i,r,n,o,s,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return re(t,i,t.position,!0),t.position++,!0;if(a===92){if(re(t,i,t.position,!0),a=t.input.charCodeAt(++t.position),$t(a))et(t,!1,e);else if(a<256&&ac[a])t.result+=lc[a],t.position++;else if((s=Sb(a))>0){for(n=s,o=0;n>0;n--)a=t.input.charCodeAt(++t.position),(s=kb(a))>=0?o=(o<<4)+s:D(t,"expected hexadecimal character");t.result+=Bb(o),t.position++}else D(t,"unknown escape sequence");i=r=t.position}else $t(a)?(re(t,i,r,!0),ro(t,et(t,!1,e)),i=r=t.position):t.position===t.lineStart&&Or(t)?D(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}D(t,"unexpected end of the stream within a double quoted scalar")}function Ob(t,e){var i=!0,r,n,o,s=t.tag,a,l=t.anchor,c,u,f,h,d,_=Object.create(null),T,w,A,y;if(y=t.input.charCodeAt(t.position),y===91)u=93,d=!1,a=[];else if(y===123)u=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),y=t.input.charCodeAt(++t.position);y!==0;){if(et(t,!0,e),y=t.input.charCodeAt(t.position),y===u)return t.position++,t.tag=s,t.anchor=l,t.kind=d?"mapping":"sequence",t.result=a,!0;i?y===44&&D(t,"expected the node content, but found ','"):D(t,"missed comma between flow collection entries"),w=T=A=null,f=h=!1,y===63&&(c=t.input.charCodeAt(t.position+1),_t(c)&&(f=h=!0,t.position++,et(t,!0,e))),r=t.line,n=t.lineStart,o=t.position,Ne(t,e,ur,!1,!0),w=t.tag,T=t.result,et(t,!0,e),y=t.input.charCodeAt(t.position),(h||t.line===r)&&y===58&&(f=!0,y=t.input.charCodeAt(++t.position),et(t,!0,e),Ne(t,e,ur,!1,!0),A=t.result),d?Ae(t,a,_,w,T,A,r,n,o):f?a.push(Ae(t,null,_,w,T,A,r,n,o)):a.push(T),et(t,!0,e),y=t.input.charCodeAt(t.position),y===44?(i=!0,y=t.input.charCodeAt(++t.position)):i=!1}D(t,"unexpected end of the stream within a flow collection")}function Mb(t,e){var i,r,n=Qr,o=!1,s=!1,a=e,l=0,c=!1,u,f;if(f=t.input.charCodeAt(t.position),f===124)r=!1;else if(f===62)r=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)Qr===n?n=f===43?$s:bb:D(t,"repeat of a chomping mode identifier");else if((u=wb(f))>=0)u===0?D(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?D(t,"repeat of an indentation width identifier"):(a=e+u-1,s=!0);else break;if(pe(f)){do f=t.input.charCodeAt(++t.position);while(pe(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!$t(f)&&f!==0)}for(;f!==0;){for(io(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!s||t.lineIndent<a)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>a&&(a=t.lineIndent),$t(f)){l++;continue}if(t.lineIndent<a){n===$s?t.result+=ht.repeat(`
`,o?1+l:l):n===Qr&&o&&(t.result+=`
`);break}for(r?pe(f)?(c=!0,t.result+=ht.repeat(`
`,o?1+l:l)):c?(c=!1,t.result+=ht.repeat(`
`,l+1)):l===0?o&&(t.result+=" "):t.result+=ht.repeat(`
`,l):t.result+=ht.repeat(`
`,o?1+l:l),o=!0,s=!0,l=0,i=t.position;!$t(f)&&f!==0;)f=t.input.charCodeAt(++t.position);re(t,i,t.position,!1)}return!0}function Ps(t,e){var i,r=t.tag,n=t.anchor,o=[],s,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,D(t,"tab characters must not be used in indentation")),!(l!==45||(s=t.input.charCodeAt(t.position+1),!_t(s))));){if(a=!0,t.position++,et(t,!0,-1)&&t.lineIndent<=e){o.push(null),l=t.input.charCodeAt(t.position);continue}if(i=t.line,Ne(t,e,nc,!1,!0),o.push(t.result),et(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>e)&&l!==0)D(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=r,t.anchor=n,t.kind="sequence",t.result=o,!0):!1}function $b(t,e,i){var r,n,o,s,a,l,c=t.tag,u=t.anchor,f={},h=Object.create(null),d=null,_=null,T=null,w=!1,A=!1,y;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),y=t.input.charCodeAt(t.position);y!==0;){if(!w&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,D(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),o=t.line,(y===63||y===58)&&_t(r))y===63?(w&&(Ae(t,f,h,d,_,null,s,a,l),d=_=T=null),A=!0,w=!0,n=!0):w?(w=!1,n=!0):D(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,y=r;else{if(s=t.line,a=t.lineStart,l=t.position,!Ne(t,i,rc,!1,!0))break;if(t.line===o){for(y=t.input.charCodeAt(t.position);pe(y);)y=t.input.charCodeAt(++t.position);if(y===58)y=t.input.charCodeAt(++t.position),_t(y)||D(t,"a whitespace character is expected after the key-value separator within a block mapping"),w&&(Ae(t,f,h,d,_,null,s,a,l),d=_=T=null),A=!0,w=!1,n=!1,d=t.tag,_=t.result;else if(A)D(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(A)D(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===o||t.lineIndent>e)&&(w&&(s=t.line,a=t.lineStart,l=t.position),Ne(t,e,fr,!0,n)&&(w?_=t.result:T=t.result),w||(Ae(t,f,h,d,_,T,s,a,l),d=_=T=null),et(t,!0,-1),y=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&y!==0)D(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return w&&Ae(t,f,h,d,_,null,s,a,l),A&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=f),A}function Ib(t){var e,i=!1,r=!1,n,o,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&D(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(i=!0,s=t.input.charCodeAt(++t.position)):s===33?(r=!0,n="!!",s=t.input.charCodeAt(++t.position)):n="!",e=t.position,i){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(o=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):D(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!_t(s);)s===33&&(r?D(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),oc.test(n)||D(t,"named tag handle cannot contain such characters"),r=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);o=t.input.slice(e,t.position),vb.test(o)&&D(t,"tag suffix cannot contain flow indicator characters")}o&&!sc.test(o)&&D(t,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{D(t,"tag name is malformed: "+o)}return i?t.tag=o:oe.call(t.tagMap,n)?t.tag=t.tagMap[n]+o:n==="!"?t.tag="!"+o:n==="!!"?t.tag="tag:yaml.org,2002:"+o:D(t,'undeclared tag handle "'+n+'"'),!0}function Db(t){var e,i;if(i=t.input.charCodeAt(t.position),i!==38)return!1;for(t.anchor!==null&&D(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!_t(i)&&!Be(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&D(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Nb(t){var e,i,r;if(r=t.input.charCodeAt(t.position),r!==42)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!_t(r)&&!Be(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&D(t,"name of an alias node must contain at least one character"),i=t.input.slice(e,t.position),oe.call(t.anchorMap,i)||D(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],et(t,!0,-1),!0}function Ne(t,e,i,r,n){var o,s,a,l=1,c=!1,u=!1,f,h,d,_,T,w;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=s=a=fr===i||nc===i,r&&et(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;Ib(t)||Db(t);)et(t,!0,-1)?(c=!0,a=o,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||fr===i)&&(ur===i||rc===i?T=e:T=e+1,w=t.position-t.lineStart,l===1?a&&(Ps(t,w)||$b(t,w,T))||Ob(t,T)?u=!0:(s&&Mb(t,T)||Fb(t,T)||Eb(t,T)?u=!0:Nb(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&D(t,"alias node should not have any properties")):Lb(t,T,ur===i)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&Ps(t,w))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&D(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),f=0,h=t.implicitTypes.length;f<h;f+=1)if(_=t.implicitTypes[f],_.resolve(t.result)){t.result=_.construct(t.result),t.tag=_.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(oe.call(t.typeMap[t.kind||"fallback"],t.tag))_=t.typeMap[t.kind||"fallback"][t.tag];else for(_=null,d=t.typeMap.multi[t.kind||"fallback"],f=0,h=d.length;f<h;f+=1)if(t.tag.slice(0,d[f].tag.length)===d[f].tag){_=d[f];break}_||D(t,"unknown tag !<"+t.tag+">"),t.result!==null&&_.kind!==t.kind&&D(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+_.kind+'", not "'+t.kind+'"'),_.resolve(t.result,t.tag)?(t.result=_.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):D(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function Rb(t){var e=t.position,i,r,n,o=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(et(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(o=!0,s=t.input.charCodeAt(++t.position),i=t.position;s!==0&&!_t(s);)s=t.input.charCodeAt(++t.position);for(r=t.input.slice(i,t.position),n=[],r.length<1&&D(t,"directive name must not be less than one character in length");s!==0;){for(;pe(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!$t(s));break}if($t(s))break;for(i=t.position;s!==0&&!_t(s);)s=t.input.charCodeAt(++t.position);n.push(t.input.slice(i,t.position))}s!==0&&io(t),oe.call(Ns,r)?Ns[r](t,r,n):dr(t,'unknown document directive "'+r+'"')}if(et(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,et(t,!0,-1)):o&&D(t,"directives end mark is expected"),Ne(t,t.lineIndent-1,fr,!1,!0),et(t,!0,-1),t.checkLineBreaks&&Tb.test(t.input.slice(e,t.position))&&dr(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Or(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,et(t,!0,-1));return}if(t.position<t.length-1)D(t,"end of the stream or a document separator is expected");else return}function hc(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var i=new Ab(t,e),r=t.indexOf("\0");for(r!==-1&&(i.position=r,D(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)Rb(i);return i.documents}function Pb(t,e,i){e!==null&&typeof e=="object"&&typeof i>"u"&&(i=e,e=null);var r=hc(t,i);if(typeof e!="function")return r;for(var n=0,o=r.length;n<o;n+=1)e(r[n])}function qb(t,e){var i=hc(t,e);if(i.length!==0){if(i.length===1)return i[0];throw new Gt("expected a single document in the stream, but found more")}}var zb=Pb,Wb=qb,Hb={loadAll:zb,load:Wb},jb=tc,Ub=Hb.load;function Yb(t){const e=t.match(Va);if(!e)return{text:t,metadata:{}};let i=Ub(e[1],{schema:jb})??{};i=typeof i=="object"&&!Array.isArray(i)?i:{};const r={};return i.displayMode&&(r.displayMode=i.displayMode.toString()),i.title&&(r.title=i.title.toString()),i.config&&(r.config=i.config),{text:t.slice(e[0].length),metadata:r}}const Gb=t=>t.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(e,i,r)=>"<"+i+r.replace(/="([^"]*)"/g,"='$1'")+">"),Vb=t=>{const{text:e,metadata:i}=Yb(t),{displayMode:r,title:n,config:o={}}=i;return r&&(o.gantt||(o.gantt={}),o.gantt.displayMode=r),{title:n,config:o,text:e}},Xb=t=>{const e=ri.detectInit(t)??{},i=ri.detectDirective(t,"wrap");return Array.isArray(i)?e.wrap=i.some(({type:r})=>{}):(i==null?void 0:i.type)==="wrap"&&(e.wrap=!0),{text:N_(t),directive:e}};function uc(t){const e=Gb(t),i=Vb(e),r=Xb(i.text),n=gl(i.config,r.directive);return t=i1(r.text),{code:t,title:i.title,config:n}}const Kb=5e4,Zb="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Jb="sandbox",Qb="loose",tx="http://www.w3.org/2000/svg",ex="http://www.w3.org/1999/xlink",ix="http://www.w3.org/1999/xhtml",rx="100%",nx="100%",ox="border:0;margin:0;",sx="margin:0",ax="allow-top-navigation-by-user-activation allow-popups",lx='The "iframe" tag is not supported by your browser.',cx=["foreignobject"],hx=["dominant-baseline"];function fc(t){const e=uc(t);return lr(),S0(e.config??{}),e}async function ux(t,e){to(),t=fc(t).code;try{await no(t)}catch(i){if(e!=null&&e.suppressErrors)return!1;throw i}return!0}const qs=(t,e,i=[])=>`
.${t} ${e} { ${i.join(" !important; ")} !important; }`,fx=(t,e={})=>{var i;let r="";if(t.themeCSS!==void 0&&(r+=`
${t.themeCSS}`),t.fontFamily!==void 0&&(r+=`
:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=`
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Kr(e)){const a=t.htmlLabels||((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const c=e[l];Kr(c.styles)||a.forEach(u=>{r+=qs(c.id,u,c.styles)}),Kr(c.textStyles)||(r+=qs(c.id,"tspan",c.textStyles))}}return r},dx=(t,e,i,r)=>{const n=fx(t,i),o=Uy(e,n,t.themeVariables);return Cn(C0(`${r}{${o}}`),x0)},px=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=o0(r),r=r.replace(/<br>/g,"<br/>"),r},gx=(t="",e)=>{var i,r;const n=(r=(i=e==null?void 0:e.viewBox)==null?void 0:i.baseVal)!=null&&r.height?e.viewBox.baseVal.height+"px":nx,o=btoa('<body style="'+sx+'">'+t+"</body>");return`<iframe style="width:${rx};height:${n};${ox}" src="data:text/html;base64,${o}" sandbox="${ax}">
${lx}
</iframe>`},zs=(t,e,i,r,n)=>{const o=t.append("div");o.attr("id",i),r&&o.attr("style",r);const s=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns",tx);return n&&s.attr("xmlns:xlink",n),s.append("g"),t};function Ws(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const mx=(t,e,i,r)=>{var n,o,s;(n=t.getElementById(e))==null||n.remove(),(o=t.getElementById(i))==null||o.remove(),(s=t.getElementById(r))==null||s.remove()},_x=async function(t,e,i){var r,n,o,s,a,l;to();const c=fc(e);e=c.code;const u=Dt();N.debug(u),e.length>((u==null?void 0:u.maxTextSize)??Kb)&&(e=Zb);const f="#"+t,h="i"+t,d="#"+h,_="d"+t,T="#"+_;let w=vt("body");const A=u.securityLevel===Jb,y=u.securityLevel===Qb,E=u.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),A){const S=Ws(vt(i),h);w=vt(S.nodes()[0].contentDocument.body),w.node().style.margin=0}else w=vt(i);zs(w,t,_,`font-family: ${E}`,ex)}else{if(mx(document,t,_,h),A){const S=Ws(vt("body"),h);w=vt(S.nodes()[0].contentDocument.body),w.node().style.margin=0}else w=vt("body");zs(w,t,_)}let L,R;try{L=await no(e,{title:c.title})}catch(S){L=new Zl("error"),R=S}const m=w.select(T).node(),b=L.type,O=m.firstChild,Zt=O.firstChild,G=(n=(r=L.renderer).getClasses)==null?void 0:n.call(r,e,L),Y=dx(u,b,G,f),St=document.createElement("style");St.innerHTML=Y,O.insertBefore(St,Zt);try{await L.renderer.draw(e,t,ks,L)}catch(S){throw lC.draw(e,t,ks),S}const Jt=w.select(`${T} svg`),q=(s=(o=L.db).getAccTitle)==null?void 0:s.call(o),B=(l=(a=L.db).getAccDescription)==null?void 0:l.call(a);Cx(b,Jt,q,B),w.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",ix);let x=w.select(T).node().innerHTML;if(N.debug("config.arrowMarkerAbsolute",u.arrowMarkerAbsolute),x=px(x,A,za(u.arrowMarkerAbsolute)),A){const S=w.select(T+" svg").node();x=gx(x,S)}else y||(x=Oe.sanitize(x,{ADD_TAGS:cx,ADD_ATTR:hx}));if(OC(),R)throw R;const k=vt(A?d:T).node();return k&&"remove"in k&&k.remove(),{svg:x,bindFunctions:L.db.bindFunctions}};function yx(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),v0(t),t!=null&&t.theme&&t.theme in Vt?t.themeVariables=Vt[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Vt.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?T0(t):vl();Sn(i.logLevel),to()}const no=(t,e={})=>{const{code:i}=uc(t);return EC(i,e)};function Cx(t,e,i,r){t1(e,t),e1(e,i,r,e.attr("id"))}const _e=Object.freeze({render:_x,parse:ux,getDiagramFromText:no,initialize:yx,getConfig:Dt,setConfig:kl,getSiteConfig:vl,updateSiteConfig:k0,reset:()=>{lr()},globalReset:()=>{lr(Ie)},defaultConfig:Ie});Sn(Dt().logLevel);lr(Dt());const bx=async()=>{N.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Me).map(async([i,{detector:r,loader:n}])=>{if(n)try{Qn(i)}catch{try{const{diagram:s,id:a}=await n();hr(a,s,r)}catch(s){throw N.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete Me[i],s}}}))).filter(i=>i.status==="rejected");if(e.length>0){N.error(`Failed to load ${e.length} external diagrams`);for(const i of e)N.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},xx=(t,e,i)=>{N.warn(t),pl(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},dc=async function(t={querySelector:".mermaid"}){try{await Tx(t)}catch(e){if(pl(e)&&N.error(e.str),yt.parseError&&yt.parseError(e),!t.suppressErrors)throw N.error("Use the suppressErrors option to suppress these errors"),e}},Tx=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=_e.getConfig();N.debug(`${t?"":"No "}Callback function found`);let n;if(i)n=i;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");N.debug(`Found ${n.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(N.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),_e.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const o=new ri.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const a=[];for(const l of Array.from(n)){N.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${o.next()}`;s=l.innerHTML,s=Ic(ri.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const u=ri.detectInit(s);u&&N.debug("Detected early reinit: ",u);try{const{svg:f,bindFunctions:h}=await _c(c,s,l);l.innerHTML=f,t&&await t(c),h&&h(l)}catch(f){xx(f,a,yt.parseError)}}if(a.length>0)throw a[0]},pc=function(t){_e.initialize(t)},vx=async function(t,e,i){N.warn("mermaid.init is deprecated. Please use run instead."),t&&pc(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await dc(r)},kx=async(t,{lazyLoad:e=!0}={})=>{Ka(...t),e===!1&&await bx()},gc=function(){if(yt.startOnLoad){const{startOnLoad:t}=_e.getConfig();t&&yt.run().catch(e=>N.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*!
* Wait for document loaded before starting the execution
*/window.addEventListener("load",gc,!1)}const Sx=function(t){yt.parseError=t},pr=[];let tn=!1;const mc=async()=>{if(!tn){for(tn=!0;pr.length>0;){const t=pr.shift();if(t)try{await t()}catch(e){N.error("Error executing queue",e)}}tn=!1}},wx=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((o,s)=>{_e.parse(t,e).then(a=>{o(a),i(a)},a=>{var l;N.error("Error parsing",a),(l=yt.parseError)==null||l.call(yt,a),s(a),r(a)})});pr.push(n),mc().catch(r)}),_c=(t,e,i)=>new Promise((r,n)=>{const o=()=>new Promise((s,a)=>{_e.render(t,e,i).then(l=>{s(l),r(l)},l=>{var c;N.error("Error parsing",l),(c=yt.parseError)==null||c.call(yt,l),a(l),n(l)})});pr.push(o),mc().catch(n)}),yt={startOnLoad:!0,mermaidAPI:_e,parse:wx,render:_c,init:vx,run:dc,registerExternalDiagrams:kx,initialize:pc,parseError:void 0,contentLoaded:gc,setParseErrorHandler:Sx,detectType:vr};var oo={exports:{}};oo.exports;(function(t){var e=function(){var i=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",o={};function s(l,c){if(!o[l]){o[l]={};for(var u=0;u<l.length;u++)o[l][l.charAt(u)]=u}return o[l][c]}var a={compressToBase64:function(l){if(l==null)return"";var c=a._compress(l,6,function(u){return r.charAt(u)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:a._decompress(l.length,32,function(c){return s(r,l.charAt(c))})},compressToUTF16:function(l){return l==null?"":a._compress(l,15,function(c){return i(c+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:a._decompress(l.length,16384,function(c){return l.charCodeAt(c)-32})},compressToUint8Array:function(l){for(var c=a.compress(l),u=new Uint8Array(c.length*2),f=0,h=c.length;f<h;f++){var d=c.charCodeAt(f);u[f*2]=d>>>8,u[f*2+1]=d%256}return u},decompressFromUint8Array:function(l){if(l==null)return a.decompress(l);for(var c=new Array(l.length/2),u=0,f=c.length;u<f;u++)c[u]=l[u*2]*256+l[u*2+1];var h=[];return c.forEach(function(d){h.push(i(d))}),a.decompress(h.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":a._compress(l,6,function(c){return n.charAt(c)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),a._decompress(l.length,32,function(c){return s(n,l.charAt(c))}))},compress:function(l){return a._compress(l,16,function(c){return i(c)})},_compress:function(l,c,u){if(l==null)return"";var f,h,d={},_={},T="",w="",A="",y=2,E=3,L=2,R=[],m=0,b=0,O;for(O=0;O<l.length;O+=1)if(T=l.charAt(O),Object.prototype.hasOwnProperty.call(d,T)||(d[T]=E++,_[T]=!0),w=A+T,Object.prototype.hasOwnProperty.call(d,w))A=w;else{if(Object.prototype.hasOwnProperty.call(_,A)){if(A.charCodeAt(0)<256){for(f=0;f<L;f++)m=m<<1,b==c-1?(b=0,R.push(u(m)),m=0):b++;for(h=A.charCodeAt(0),f=0;f<8;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1}else{for(h=1,f=0;f<L;f++)m=m<<1|h,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=0;for(h=A.charCodeAt(0),f=0;f<16;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1}y--,y==0&&(y=Math.pow(2,L),L++),delete _[A]}else for(h=d[A],f=0;f<L;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1;y--,y==0&&(y=Math.pow(2,L),L++),d[w]=E++,A=String(T)}if(A!==""){if(Object.prototype.hasOwnProperty.call(_,A)){if(A.charCodeAt(0)<256){for(f=0;f<L;f++)m=m<<1,b==c-1?(b=0,R.push(u(m)),m=0):b++;for(h=A.charCodeAt(0),f=0;f<8;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1}else{for(h=1,f=0;f<L;f++)m=m<<1|h,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=0;for(h=A.charCodeAt(0),f=0;f<16;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1}y--,y==0&&(y=Math.pow(2,L),L++),delete _[A]}else for(h=d[A],f=0;f<L;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1;y--,y==0&&(y=Math.pow(2,L),L++)}for(h=2,f=0;f<L;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1;for(;;)if(m=m<<1,b==c-1){R.push(u(m));break}else b++;return R.join("")},decompress:function(l){return l==null?"":l==""?null:a._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var f=[],h=4,d=4,_=3,T="",w=[],A,y,E,L,R,m,b,O={val:u(0),position:c,index:1};for(A=0;A<3;A+=1)f[A]=A;for(E=0,R=Math.pow(2,2),m=1;m!=R;)L=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),E|=(L>0?1:0)*m,m<<=1;switch(E){case 0:for(E=0,R=Math.pow(2,8),m=1;m!=R;)L=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),E|=(L>0?1:0)*m,m<<=1;b=i(E);break;case 1:for(E=0,R=Math.pow(2,16),m=1;m!=R;)L=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),E|=(L>0?1:0)*m,m<<=1;b=i(E);break;case 2:return""}for(f[3]=b,y=b,w.push(b);;){if(O.index>l)return"";for(E=0,R=Math.pow(2,_),m=1;m!=R;)L=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),E|=(L>0?1:0)*m,m<<=1;switch(b=E){case 0:for(E=0,R=Math.pow(2,8),m=1;m!=R;)L=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),E|=(L>0?1:0)*m,m<<=1;f[d++]=i(E),b=d-1,h--;break;case 1:for(E=0,R=Math.pow(2,16),m=1;m!=R;)L=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),E|=(L>0?1:0)*m,m<<=1;f[d++]=i(E),b=d-1,h--;break;case 2:return w.join("")}if(h==0&&(h=Math.pow(2,_),_++),f[b])T=f[b];else if(b===d)T=y+y.charAt(0);else return null;w.push(T),f[d++]=y+T.charAt(0),h--,y=T,h==0&&(h=Math.pow(2,_),_++)}}};return a}();t!=null?t.exports=e:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})})(oo);var Bx=oo.exports;const Ax=$c(Bx);const Lx=[],Fx=()=>{const t={theme:"default"};for(const e of Lx)Object.assign(t,e());return t};yt.startOnLoad=!1;yt.initialize({startOnLoad:!1});const Hs=new Map;let js;async function Ex(t,e){js??(js=document.getElementById("mermaid-rendering-container"));const i=t+JSON.stringify(e),r=Hs.get(i);if(r)return r;yt.initialize({startOnLoad:!1,...Bo(Fx()||{}),...Bo(e)});const n=Ax.decompressFromBase64(t),o=Oc(),{svg:s}=await yt.render(o,n,js);return Hs.set(i,s),s}const Ox=Us({__name:"ShadowRoot",props:{innerHtml:{type:String,required:!0}},emits:["shadow"],setup(t,{emit:e}){const i=t,r=e,n=Xe(),o=Bc(()=>n.value?n.value.shadowRoot||n.value.attachShadow({mode:"open"}):null);return Ii(()=>{o.value&&i.innerHtml&&(r("shadow",o.value),o.value.innerHTML=i.innerHtml)}),(s,a)=>(en(),Ys("div",{ref_key:"el",ref:n},null,512))}}),Mx=Gs(Ox,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/ShadowRoot.vue"]]),$x={key:0,border:"1 red rounded",class:"pa-3 text-wrap"},Ix=Us({__name:"Mermaid",props:{codeLz:{type:String,required:!0},scale:{type:Number,required:!1},theme:{type:String,required:!1}},setup(t){const e=t,i=Ec(),r=Xe(),n=Xe(null),o=Xe("");Ii(async a=>{let l=!1;a(()=>{l=!0}),n.value=null;try{const c=await Ex(e.codeLz||"",{theme:e.theme||(Mc.value?"dark":void 0),...i.attrs});l||(o.value=c)}catch(c){n.value=`${c}`,console.warn(c)}});const s=Xe();return Ac(o,()=>{s.value=void 0}),Ii(()=>{var l,c,u;const a=(c=(l=r.value)==null?void 0:l.children)==null?void 0:c[0];if(a&&a.hasAttribute("viewBox")&&s.value==null){const f=Number.parseFloat(((u=a.getAttribute("viewBox"))==null?void 0:u.split(" ")[3])||"");s.value=Number.isNaN(f)?void 0:f}},{flush:"post"}),Ii(()=>{var l,c;const a=(c=(l=r.value)==null?void 0:l.children)==null?void 0:c[0];a!=null&&e.scale!=null&&s.value!=null&&(a.setAttribute("height",`${s.value*e.scale}`),a.removeAttribute("width"),a.removeAttribute("style"))},{flush:"post"}),(a,l)=>n.value?(en(),Ys("pre",$x,Lc(n.value),1)):(en(),Fc(Mx,{key:1,class:"mermaid","inner-html":o.value,onShadow:l[0]||(l[0]=c=>r.value=c)},null,8,["inner-html"]))}}),nT=Gs(Ix,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/builtin/Mermaid.vue"]]);export{Dt as $,Sm as A,Pn as B,Zy as C,Jy as D,Yy as E,nd as F,Kx as G,rC as H,X_ as I,An as J,ca as K,mi as L,Dc as M,Pc as N,Nc as O,Fu as P,fa as Q,mt as R,bt as S,Px as T,sC as U,Dp as V,gl as W,Un as X,Gx as Y,Fp as Z,nT as _,Ky as a,Yx as a$,ie as a0,Ln as a1,ai as a2,Ro as a3,Nu as a4,os as a5,M_ as a6,Zx as a7,G_ as a8,A_ as a9,se as aA,nl as aB,or as aC,Kr as aD,rm as aE,VC as aF,zn as aG,Qg as aH,lm as aI,Pe as aJ,bi as aK,Re as aL,n_ as aM,im as aN,em as aO,Wn as aP,il as aQ,fs as aR,z as aS,It as aT,o0 as aU,Ic as aV,Mn as aW,Wx as aX,Ux as aY,Uo as aZ,jo as a_,L_ as aa,cl as ab,kr as ac,B_ as ad,y_ as ae,ul as af,O_ as ag,Ar as ah,sr as ai,Zm as aj,Rt as ak,qn as al,ye as am,ll as an,r_ as ao,Zg as ap,C_ as aq,_i as ar,rT as as,rr as at,_s as au,Tn as av,h_ as aw,NC as ax,Ci as ay,gm as az,Xy as b,jx as b0,qx as b1,zx as b2,Xx as b3,Vx as b4,Hx as b5,Qy as b6,yi as b7,I as b8,P as b9,Jn as c,ci as d,lt as e,ar as f,Vy as g,vt as h,jl as i,Rn as j,t0 as k,N as l,Xs as m,Y_ as n,za as o,P_ as p,ed as q,Jd as r,Gy as s,Wy as t,iT as u,ri as v,J_ as w,la as x,Gc as y,ti as z};
import{T as Nt,Q as st,av as kt,t as z,y as rt,J as It,aw as At,n as Ct,D as Ft,d as Tt,A as ct,o as Kt,b as $t,g as Ot}from"../modules/vue-O-XuQLLR.js";import{u as Rt,c as dt,N as nt,O as ft,P as zt,b as Ut}from"../index-DENYuTHS.js";import{u as Vt}from"./bottom-WehDtssn.js";var jt=Object.defineProperty,pt=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,gt=(t,e,s)=>e in t?jt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,it=(t,e)=>{for(var s in e||(e={}))Ht.call(e,s)&>(t,s,e[s]);if(pt)for(var s of pt(e))qt.call(e,s)&>(t,s,e[s]);return t},Gt=()=>({emit(t,...e){for(let s=0,r=this.events[t]||[],i=r.length;s<i;s++)r[s](...e)},events:{},on(t,e){var s;return((s=this.events)[t]||(s[t]=[])).push(e),()=>{var r;this.events[t]=(r=this.events[t])==null?void 0:r.filter(i=>e!==i)}}});function mt(t,e,s,r=i=>i){return t*r(.5-e*(.5-s))}function Bt(t){return[-t[0],-t[1]]}function M(t,e){return[t[0]+e[0],t[1]+e[1]]}function b(t,e){return[t[0]-e[0],t[1]-e[1]]}function E(t,e){return[t[0]*e,t[1]*e]}function Xt(t,e){return[t[0]/e,t[1]/e]}function U(t){return[t[1],-t[0]]}function vt(t,e){return t[0]*e[0]+t[1]*e[1]}function Yt(t,e){return t[0]===e[0]&&t[1]===e[1]}function Zt(t){return Math.hypot(t[0],t[1])}function Qt(t){return t[0]*t[0]+t[1]*t[1]}function yt(t,e){return Qt(b(t,e))}function Pt(t){return Xt(t,Zt(t))}function Jt(t,e){return Math.hypot(t[1]-e[1],t[0]-e[0])}function V(t,e,s){let r=Math.sin(s),i=Math.cos(s),n=t[0]-e[0],a=t[1]-e[1],o=n*i-a*r,l=n*r+a*i;return[o+e[0],l+e[1]]}function ot(t,e,s){return M(t,E(b(e,t),s))}function xt(t,e,s){return M(t,E(e,s))}var{min:K,PI:Wt}=Math,_t=.275,j=Wt+1e-4;function te(t,e={}){let{size:s=16,smoothing:r=.5,thinning:i=.5,simulatePressure:n=!0,easing:a=u=>u,start:o={},end:l={},last:g=!1}=e,{cap:v=!0,easing:y=u=>u*(2-u)}=o,{cap:P=!0,easing:f=u=>--u*u*u+1}=l;if(t.length===0||s<=0)return[];let d=t[t.length-1].runningLength,c=o.taper===!1?0:o.taper===!0?Math.max(s,d):o.taper,S=l.taper===!1?0:l.taper===!0?Math.max(s,d):l.taper,T=Math.pow(s*r,2),D=[],h=[],x=t.slice(0,10).reduce((u,w)=>{let p=w.pressure;if(n){let m=K(1,w.distance/s),W=K(1,1-m);p=K(1,u+(W-u)*(m*_t))}return(u+p)/2},t[0].pressure),_=mt(s,i,t[t.length-1].pressure,a),Y,Z=t[0].vector,O=t[0].point,H=O,A=O,C=H,Q=!1;for(let u=0;u<t.length;u++){let{pressure:w}=t[u],{point:p,vector:m,distance:W,runningLength:R}=t[u];if(u<t.length-1&&d-R<3)continue;if(i){if(n){let I=K(1,W/s),et=K(1,1-I);w=K(1,x+(et-x)*(I*_t))}_=mt(s,i,w,a)}else _=s/2;Y===void 0&&(Y=_);let Mt=R<c?y(R/c):1,Lt=d-R<S?f((d-R)/S):1;_=Math.max(.01,_*Math.min(Mt,Lt));let ht=(u<t.length-1?t[u+1]:t[u]).vector,tt=u<t.length-1?vt(m,ht):1,Dt=vt(m,Z)<0&&!Q,lt=tt!==null&&tt<0;if(Dt||lt){let I=E(U(Z),_);for(let et=1/13,G=0;G<=1;G+=et)A=V(b(p,I),p,j*G),D.push(A),C=V(M(p,I),p,j*-G),h.push(C);O=A,H=C,lt&&(Q=!0);continue}if(Q=!1,u===t.length-1){let I=E(U(m),_);D.push(b(p,I)),h.push(M(p,I));continue}let ut=E(U(ot(ht,m,tt)),_);A=b(p,ut),(u<=1||yt(O,A)>T)&&(D.push(A),O=A),C=M(p,ut),(u<=1||yt(H,C)>T)&&(h.push(C),H=C),x=w,Z=m}let N=t[0].point.slice(0,2),k=t.length>1?t[t.length-1].point.slice(0,2):M(t[0].point,[1,1]),J=[],q=[];if(t.length===1){if(!(c||S)||g){let u=xt(N,Pt(U(b(N,k))),-(Y||_)),w=[];for(let p=1/13,m=p;m<=1;m+=p)w.push(V(u,N,j*2*m));return w}}else{if(!(c||S&&t.length===1))if(v)for(let w=1/13,p=w;p<=1;p+=w){let m=V(h[0],N,j*p);J.push(m)}else{let w=b(D[0],h[0]),p=E(w,.5),m=E(w,.51);J.push(b(N,p),b(N,m),M(N,m),M(N,p))}let u=U(Bt(t[t.length-1].vector));if(S||c&&t.length===1)q.push(k);else if(P){let w=xt(k,u,_);for(let p=1/29,m=p;m<1;m+=p)q.push(V(w,k,j*3*m))}else q.push(M(k,E(u,_)),M(k,E(u,_*.99)),b(k,E(u,_*.99)),b(k,E(u,_)))}return D.concat(q,h.reverse(),J)}function ee(t,e={}){var s;let{streamline:r=.5,size:i=16,last:n=!1}=e;if(t.length===0)return[];let a=.15+(1-r)*.85,o=Array.isArray(t[0])?t:t.map(({x:f,y:d,pressure:c=.5})=>[f,d,c]);if(o.length===2){let f=o[1];o=o.slice(0,-1);for(let d=1;d<5;d++)o.push(ot(o[0],f,d/4))}o.length===1&&(o=[...o,[...M(o[0],[1,1]),...o[0].slice(2)]]);let l=[{point:[o[0][0],o[0][1]],pressure:o[0][2]>=0?o[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],g=!1,v=0,y=l[0],P=o.length-1;for(let f=1;f<o.length;f++){let d=n&&f===P?o[f].slice(0,2):ot(y.point,o[f],a);if(Yt(y.point,d))continue;let c=Jt(d,y.point);if(v+=c,f<P&&!g){if(v<i)continue;g=!0}y={point:d,pressure:o[f][2]>=0?o[f][2]:.5,vector:Pt(b(y.point,d)),distance:c,runningLength:v},l.push(y)}return l[0].vector=((s=l[1])==null?void 0:s.vector)||[0,0],l}function se(t,e={}){return te(ee(t,e),e)}function B(t,e){return t-e}function re(t){return t<0?-1:1}function X(t){return[Math.abs(t),re(t)]}function bt(){const t=()=>((1+Math.random())*65536|0).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}var ne=2,L=ne,$=class{constructor(t){this.drauu=t,this.event=void 0,this.point=void 0,this.start=void 0,this.el=null}onSelected(t){}onUnselected(){}onStart(t){}onMove(t){return!1}onEnd(t){}get brush(){return this.drauu.brush}get shiftPressed(){return this.drauu.shiftPressed}get altPressed(){return this.drauu.altPressed}get svgElement(){return this.drauu.el}getMousePosition(t){var e,s,r;const i=this.drauu.el,n=(e=this.drauu.options.coordinateScale)!=null?e:1,a=(s=this.drauu.options.offset)!=null?s:{x:0,y:0};if(this.drauu.options.coordinateTransform===!1){const o=this.drauu.el.getBoundingClientRect();return{x:(t.pageX-o.left+a.x)*n,y:(t.pageY-o.top+a.y)*n,pressure:t.pressure}}else{const o=this.drauu.svgPoint;o.x=t.clientX+a.x,o.y=t.clientY+a.y;const l=o.matrixTransform((r=i.getScreenCTM())==null?void 0:r.inverse());return{x:l.x*n,y:l.y*n,pressure:t.pressure}}}createElement(t,e){var s;const r=document.createElementNS("http://www.w3.org/2000/svg",t),i=e?it(it({},this.brush),e):this.brush;return r.setAttribute("fill",(s=i.fill)!=null?s:"transparent"),r.setAttribute("stroke",i.color),r.setAttribute("stroke-width",i.size.toString()),r.setAttribute("stroke-linecap","round"),i.dasharray&&r.setAttribute("stroke-dasharray",i.dasharray),r}attr(t,e){this.el.setAttribute(t,typeof e=="string"?e:e.toFixed(L))}_setEvent(t){this.event=t,this.point=this.getMousePosition(t)}_eventDown(t){return this._setEvent(t),this.start=this.point,this.onStart(this.point)}_eventMove(t){return this._setEvent(t),this.onMove(this.point)}_eventUp(t){return this._setEvent(t),this.onEnd(this.point)}},ie=class St extends ${constructor(){super(...arguments),this.points=[]}onStart(e){return this.el=document.createElementNS("http://www.w3.org/2000/svg","path"),this.points=[e],this.attr("fill",this.brush.color),this.attr("d",this.getSvgData(this.points)),this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&this.points.push(e),this.attr("d",this.getSvgData(this.points)),!0}onEnd(){const e=this.el;return this.el=null,!!e}getSvgData(e){return St.getSvgData(e,this.brush)}static getSvgData(e,s){const r=se(e,it({size:s.size,thinning:.9,simulatePressure:!1,start:{taper:5},end:{taper:5}},s.stylusOptions));if(!r.length)return"";const i=r.reduce((n,[a,o],l,g)=>{const[v,y]=g[(l+1)%g.length];return n.push(a,o,(a+v)/2,(o+y)/2),n},["M",...r[0],"Q"]);return i.push("Z"),i.map(n=>typeof n=="number"?n.toFixed(2):n).join(" ")}},oe=class extends ${onStart(t){return this.el=this.createElement("ellipse"),this.attr("cx",t.x),this.attr("cy",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,s]=X(t.x-this.start.x),[r,i]=X(t.y-this.start.y);if(this.shiftPressed){const n=Math.min(e,r);e=n,r=n}if(this.altPressed)this.attr("cx",this.start.x),this.attr("cy",this.start.y),this.attr("rx",e),this.attr("ry",r);else{const[n,a]=[this.start.x,this.start.x+e*s].sort(B),[o,l]=[this.start.y,this.start.y+r*i].sort(B);this.attr("cx",(n+a)/2),this.attr("cy",(o+l)/2),this.attr("rx",(a-n)/2),this.attr("ry",(l-o)/2)}return!0}onEnd(){const t=this.el;return this.el=null,!(!t||!t.getTotalLength())}};function Et(t,e){const s=document.createElementNS("http://www.w3.org/2000/svg","defs"),r=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("fill",e),r.setAttribute("id",t),r.setAttribute("viewBox","0 -5 10 10"),r.setAttribute("refX","5"),r.setAttribute("refY","0"),r.setAttribute("markerWidth","4"),r.setAttribute("markerHeight","4"),r.setAttribute("orient","auto"),i.setAttribute("d","M0,-5L10,0L0,5"),r.appendChild(i),s.appendChild(r),s}var ae=class extends ${onStart(t){if(this.el=this.createElement("line",{fill:"transparent"}),this.attr("x1",t.x),this.attr("y1",t.y),this.attr("x2",t.x),this.attr("y2",t.y),this.brush.arrowEnd){const e=bt(),s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.append(Et(e,this.brush.color)),s.append(this.el),this.attr("marker-end",`url(#${e})`),s}return this.el}onMove(t){if(!this.el)return!1;let{x:e,y:s}=t;if(this.shiftPressed){const r=t.x-this.start.x,i=t.y-this.start.y;if(i!==0){let n=r/i;n=Math.round(n),Math.abs(n)<=1?(e=this.start.x+i*n,s=this.start.y+i):(e=this.start.x+r,s=this.start.y)}}return this.altPressed?(this.attr("x1",this.start.x*2-e),this.attr("y1",this.start.y*2-s),this.attr("x2",e),this.attr("y2",s)):(this.attr("x1",this.start.x),this.attr("y1",this.start.y),this.attr("x2",e),this.attr("y2",s)),!0}onEnd(){const t=this.el;return this.el=null,!(!t||t.getTotalLength()<5)}},he=class extends ${onStart(t){return this.el=this.createElement("rect"),this.brush.cornerRadius&&(this.attr("rx",this.brush.cornerRadius),this.attr("ry",this.brush.cornerRadius)),this.attr("x",t.x),this.attr("y",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,s]=X(t.x-this.start.x),[r,i]=X(t.y-this.start.y);if(this.shiftPressed){const n=Math.min(e,r);e=n,r=n}if(this.altPressed)this.attr("x",this.start.x-e),this.attr("y",this.start.y-r),this.attr("width",e*2),this.attr("height",r*2);else{const[n,a]=[this.start.x,this.start.x+e*s].sort(B),[o,l]=[this.start.y,this.start.y+r*i].sort(B);this.attr("x",n),this.attr("y",o),this.attr("width",a-n),this.attr("height",l-o)}return!0}onEnd(){const t=this.el;return this.el=null,!(!t||!t.getTotalLength())}};function le(t,e){const s=t.x-e.x,r=t.y-e.y;return s*s+r*r}function ue(t,e,s){let r=e.x,i=e.y,n=s.x-r,a=s.y-i;if(n!==0||a!==0){const o=((t.x-r)*n+(t.y-i)*a)/(n*n+a*a);o>1?(r=s.x,i=s.y):o>0&&(r+=n*o,i+=a*o)}return n=t.x-r,a=t.y-i,n*n+a*a}function ce(t,e){let s=t[0];const r=[s];let i;for(let n=1,a=t.length;n<a;n++)i=t[n],le(i,s)>e&&(r.push(i),s=i);return s!==i&&i&&r.push(i),r}function at(t,e,s,r,i){let n=r,a=0;for(let o=e+1;o<s;o++){const l=ue(t[o],t[e],t[s]);l>n&&(a=o,n=l)}n>r&&(a-e>1&&at(t,e,a,r,i),i.push(t[a]),s-a>1&&at(t,a,s,r,i))}function de(t,e){const s=t.length-1,r=[t[0]];return at(t,0,s,e,r),r.push(t[s]),r}function wt(t,e,s=!1){if(t.length<=2)return t;const r=e!==void 0?e*e:1;return t=s?t:ce(t,r),t=de(t,r),t}var fe=class F extends ${constructor(){super(...arguments),this.points=[],this.count=0}onStart(e){if(this.el=this.createElement("path",{fill:"transparent"}),this.points=[e],this.brush.arrowEnd){this.arrowId=bt();const s=Et(this.arrowId,this.brush.color);this.el.appendChild(s)}return this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&(this.points.push(e),this.count+=1),this.count>5&&(this.points=wt(this.points,1,!0),this.count=0),this.attr("d",F.toSvgData(this.points)),!0}onEnd(){const e=this.el;return this.el=null,!(!e||(e.setAttribute("d",F.toSvgData(wt(this.points,1,!0))),!e.getTotalLength()))}static line(e,s){const r=s.x-e.x,i=s.y-e.y;return{length:Math.sqrt(r**2+i**2),angle:Math.atan2(i,r)}}static controlPoint(e,s,r,i){const n=s||e,a=r||e,o=.2,l=F.line(n,a),g=l.angle+(i?Math.PI:0),v=l.length*o,y=e.x+Math.cos(g)*v,P=e.y+Math.sin(g)*v;return{x:y,y:P}}static bezierCommand(e,s,r){const i=F.controlPoint(r[s-1],r[s-2],e),n=F.controlPoint(e,r[s-1],r[s+1],!0);return`C ${i.x.toFixed(L)},${i.y.toFixed(L)} ${n.x.toFixed(L)},${n.y.toFixed(L)} ${e.x.toFixed(L)},${e.y.toFixed(L)}`}static toSvgData(e){return e.reduce((s,r,i,n)=>i===0?`M ${r.x.toFixed(L)},${r.y.toFixed(L)}`:`${s} ${F.bezierCommand(r,i,n)}`,"")}},pe=class extends ${constructor(){super(...arguments),this.pathSubFactor=20,this.pathFragments=[],this._erased=[]}onSelected(t){const e=(s,r)=>{if(s&&s.length)for(let i=0;i<s.length;i++){const n=s[i];if(n.getTotalLength){const a=n.getTotalLength();for(let o=0;o<this.pathSubFactor;o++){const l=n.getPointAtLength(a*o/this.pathSubFactor),g=n.getPointAtLength(a*(o+1)/this.pathSubFactor);this.pathFragments.push({x1:l.x,x2:g.x,y1:l.y,y2:g.y,segment:o,element:r||n})}}else n.children&&e(n.children,n)}};t&&e(t.children)}onUnselected(){this.pathFragments=[]}onStart(t){this.svgPointPrevious=this.svgElement.createSVGPoint(),this.svgPointPrevious.x=t.x,this.svgPointPrevious.y=t.y}onMove(t){this.svgPointCurrent=this.svgElement.createSVGPoint(),this.svgPointCurrent.x=t.x,this.svgPointCurrent.y=t.y;const e=this.checkAndEraseElement();return this.svgPointPrevious=this.svgPointCurrent,e}onEnd(){this.svgPointPrevious=void 0,this.svgPointCurrent=void 0;const t=this._erased;return this._erased=[],{undo:()=>t.forEach(e=>this.drauu._restoreNode(e)),redo:()=>t.forEach(e=>this.drauu._removeNode(e))}}checkAndEraseElement(){if(this.pathFragments.length)for(let t=0;t<this.pathFragments.length;t++){const e=this.pathFragments[t],s={x1:this.svgPointPrevious.x,x2:this.svgPointCurrent.x,y1:this.svgPointPrevious.y,y2:this.svgPointCurrent.y};this.lineLineIntersect(e,s)&&(this.drauu._removeNode(e.element),this._erased.push(e.element))}return this._erased.length&&(this.pathFragments=this.pathFragments.filter(t=>!this._erased.includes(t.element))),this._erased.length>0}lineLineIntersect(t,e){const s=t.x1,r=t.x2,i=e.x1,n=e.x2,a=t.y1,o=t.y2,l=e.y1,g=e.y2,v=(s-r)*(l-g)-(a-o)*(i-n),y=(s*o-a*r)*(i-n)-(s-r)*(i*g-l*n),P=(s*o-a*r)*(l-g)-(a-o)*(i*g-l*n),f=(d,c,S)=>d>=c&&d<=S?!0:d>=S&&d<=c;if(v===0)return!1;{const d={x:y/v,y:P/v};return f(d.x,s,r)&&f(d.y,a,o)&&f(d.x,i,n)&&f(d.y,l,g)}}};function ge(t){return{draw:new fe(t),stylus:new ie(t),line:new ae(t),rectangle:new he(t),ellipse:new oe(t),eraseLine:new pe(t)}}var me=class{constructor(t={}){this.options=t,this.el=null,this.svgPoint=null,this.eventEl=null,this.shiftPressed=!1,this.altPressed=!1,this.drawing=!1,this._emitter=Gt(),this._originalPointerId=null,this._models=ge(this),this._opStack=[],this._opIndex=0,this._disposables=[],this._elements=[],this.options.brush||(this.options.brush={color:"black",size:3,mode:"stylus"}),t.el&&this.mount(t.el,t.eventTarget,t.window)}get model(){return this._models[this.mode]}get mounted(){return!!this.el}get mode(){return this.options.brush.mode||"stylus"}set mode(t){this._models[this.mode].onUnselected(),this.options.brush.mode=t,this.model.onSelected(this.el)}get brush(){return this.options.brush}set brush(t){this.options.brush=t}resolveSelector(t){return typeof t=="string"?document.querySelector(t):t||null}mount(t,e,s=window){if(this.el)throw new Error("[drauu] already mounted, unmount previous target first");if(this.el=this.resolveSelector(t),!this.el)throw new Error("[drauu] target element not found");if(this.el.tagName.toLocaleLowerCase()!=="svg")throw new Error("[drauu] can only mount to a SVG element");if(!this.el.createSVGPoint)throw new Error("[drauu] SVG element must be create by document.createElementNS('http://www.w3.org/2000/svg', 'svg')");this.svgPoint=this.el.createSVGPoint();const r=this.resolveSelector(e)||this.el,i=this.eventStart.bind(this),n=this.eventMove.bind(this),a=this.eventEnd.bind(this),o=this.eventKeyboard.bind(this);r.addEventListener("pointerdown",i,{passive:!1}),s.addEventListener("pointermove",n,{passive:!1}),s.addEventListener("pointerup",a,{passive:!1}),s.addEventListener("pointercancel",a,{passive:!1}),s.addEventListener("keydown",o,!1),s.addEventListener("keyup",o,!1),this._disposables.push(()=>{r.removeEventListener("pointerdown",i),s.removeEventListener("pointermove",n),s.removeEventListener("pointerup",a),s.removeEventListener("pointercancel",a),s.removeEventListener("keydown",o,!1),s.removeEventListener("keyup",o,!1)}),this._emitter.emit("mounted")}unmount(){this._disposables.forEach(t=>t()),this._disposables.length=0,this._elements.length=0,this.el=null,this._emitter.emit("unmounted")}on(t,e){return this._emitter.on(t,e)}undo(){return!this.canUndo()||this.drawing?!1:(this._opStack[--this._opIndex].undo(),this._emitter.emit("changed"),!0)}redo(){return!this.canRedo()||this.drawing?!1:(this._opStack[this._opIndex++].redo(),this._emitter.emit("changed"),!0)}canRedo(){return this._opIndex<this._opStack.length}canUndo(){return this._opIndex>0}eventMove(t){!this.acceptsInput(t)||!this.drawing||this.model._eventMove(t)&&(t.stopPropagation(),t.preventDefault(),this._emitter.emit("changed"))}eventStart(t){this.acceptsInput(t)&&(t.stopPropagation(),t.preventDefault(),this._currentNode&&this.cancel(),this.drawing=!0,this._originalPointerId=t.pointerId,this._emitter.emit("start"),this._currentNode=this.model._eventDown(t),this._currentNode&&this.mode!=="eraseLine"&&this.el.appendChild(this._currentNode),this._emitter.emit("changed"))}eventEnd(t){if(!this.acceptsInput(t)||!this.drawing)return;const e=this.model._eventUp(t);if(!e)this.cancel();else if(e===!0){const s=this._currentNode;this._appendNode(s),this.commit({undo:()=>this._removeNode(s),redo:()=>this._restoreNode(s)})}else this.commit(e);this.drawing=!1,this._emitter.emit("end"),this._emitter.emit("changed"),this._originalPointerId=null}acceptsInput(t){return(!this.options.acceptsInputTypes||this.options.acceptsInputTypes.includes(t.pointerType))&&!(this._originalPointerId&&this._originalPointerId!==t.pointerId)}eventKeyboard(t){this.shiftPressed===t.shiftKey&&this.altPressed===t.altKey||(this.shiftPressed=t.shiftKey,this.altPressed=t.altKey,this.model.point&&this.model.onMove(this.model.point)&&this._emitter.emit("changed"))}commit(t){this._opStack.length=this._opIndex,this._opStack.push(t),this._opIndex++;const e=this._currentNode;this._currentNode=void 0,this._emitter.emit("committed",e)}clear(){this._opStack.length=0,this._opIndex=0,this.cancel(),this.el.innerHTML="",this._emitter.emit("changed")}cancel(){this._currentNode&&(this.el.removeChild(this._currentNode),this._currentNode=void 0,this._emitter.emit("canceled"))}dump(){return this.el.innerHTML}load(t){this.clear(),this.el.innerHTML=t}_appendNode(t){const e=this._elements.at(-1);e?e.after(t):this.el.append(t);const s=this._elements.push(t)-1;t.dataset.drauu_index=s.toString()}_removeNode(t){t.remove(),this._elements[+t.dataset.drauu_index]=null}_restoreNode(t){const e=+t.dataset.drauu_index;this._elements[e]=t;for(let s=e-1;s>=0;s--){const r=this._elements[s];if(r){r.after(t);return}}this.el.prepend(t)}};function ve(t){return new me(t)}const ye=Nt(()=>{const{currentSlideNo:t,isPresenter:e}=Rt(),s=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93","#ffffff","#000000"],r=st("slidev-drawing-enabled",!1),i=st("slidev-drawing-pinned",!1),n=kt(st("slidev-drawing-brush",{color:s[0],size:4,mode:"stylus"})),a=z(!1),o=z(!1),l=z(!1),g=z(!1),v=z("stylus"),y=rt(()=>dt.drawings.syncAll||e.value);let P=!1;const f=rt({get(){return v.value},set(h){v.value=h,h==="arrow"?(c.mode="line",n.arrowEnd=!0):(c.mode=h,n.arrowEnd=!1)}}),d=It({brush:n,acceptsInputTypes:rt(()=>r.value&&(!dt.drawings.presenterOnly||e.value)?void 0:["pen"]),coordinateTransform:!1}),c=At(ve(d));function S(){c.clear(),y.value&&ft(t.value,"")}function T(){var h;l.value=c.canRedo(),o.value=c.canUndo(),g.value=!!((h=c.el)!=null&&h.children.length)}function D(h){P=!0;const x=nt[h||t.value];x!=null?c.load(x):c.clear(),T(),P=!1}return c.on("changed",()=>{if(T(),!P){const h=c.dump(),x=t.value;(nt[x]||"")!==h&&y.value&&ft(x,c.dump())}}),zt(h=>{P=!0,h[t.value]!=null&&c.load(h[t.value]||""),P=!1,T()}),Ct(()=>{Ft(t,()=>{c.mounted&&D()},{immediate:!0})}),c.on("start",()=>a.value=!0),c.on("end",()=>a.value=!1),window.addEventListener("keydown",h=>{if(!r.value||Vt.value)return;const x=!h.ctrlKey&&!h.altKey&&!h.shiftKey&&!h.metaKey;let _=!0;h.code==="KeyZ"&&(h.ctrlKey||h.metaKey)?h.shiftKey?c.redo():c.undo():h.code==="Escape"?r.value=!1:h.code==="KeyL"&&x?f.value="line":h.code==="KeyA"&&x?f.value="arrow":h.code==="KeyS"&&x?f.value="stylus":h.code==="KeyR"&&x?f.value="rectangle":h.code==="KeyE"&&x?f.value="ellipse":h.code==="KeyC"&&x?S():h.code.startsWith("Digit")&&x&&+h.code[5]<=s.length?n.color=s[+h.code[5]-1]:_=!1,_&&(h.preventDefault(),h.stopPropagation())},!1),{brush:n,brushColors:s,canClear:g,canRedo:l,canUndo:o,clear:S,drauu:c,drauuOptions:d,drawingEnabled:r,drawingMode:f,drawingPinned:i,drawingState:nt,isDrawing:a,loadCanvas:D}}),xe=["innerHTML"],_e=Tt({__name:"DrawingPreview",props:{page:{type:Number,required:!0}},setup(t){const{drawingState:e}=ye();return(s,r)=>ct(e)[s.page]?(Kt(),$t("svg",{key:0,class:"w-full h-full absolute top-0 pointer-events-none",innerHTML:ct(e)[s.page]},null,8,xe)):Ot("v-if",!0)}}),we=Ut(_e,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingPreview.vue"]]),Ee=Object.freeze(Object.defineProperty({__proto__:null,default:we},Symbol.toStringTag,{value:"Module"}));export{we as D,Ee as a,ye as u};
import{d as l,t as i,_ as u,D as m,E as c,o as p,b as f,i as d,A as s}from"../modules/vue-O-XuQLLR.js";import{u as _}from"./context-8sk6R7gr.js";import{u as v}from"./DrawingPreview-lUDfsxKN.js";import{b as g}from"../index-DENYuTHS.js";import"./bottom-WehDtssn.js";import"../modules/shiki-CBnMlxcT.js";const w=l({__name:"DrawingLayer",setup(h){const{drauu:e,drawingEnabled:o,loadCanvas:t}=v(),r=_().$scale,n=i();return u(()=>{e.mount(n.value,n.value.parentElement),m(r,a=>e.options.coordinateScale=1/a,{immediate:!0}),t()}),c(()=>{e.unmount()}),(a,x)=>(p(),f("svg",{ref_key:"svg",ref:n,class:d(["w-full h-full absolute top-0",{"pointer-events-none":!s(o),"touch-none":s(o)}])},null,2))}}),B=g(w,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingLayer.vue"]]);export{B as default};
import{n as T,w as Y,x as Z,y as H,z as J,A as W,B as X,C as ee,D as ne,E as te,F as se,G as oe}from"../modules/unplugin-icons-DhLcIxB1.js";import{d as B,t as $,Q as le,ax as ae,b as L,f as ie,h as z,A as e,o as g,c as C,k as o,i as l,l as n,e as r,x as re,a1 as m,a2 as ue,Z as ce,F as de,ai as b,g as _e}from"../modules/vue-O-XuQLLR.js";import{L as pe}from"../modules/shiki-CBnMlxcT.js";import{u as me}from"./DrawingPreview-lUDfsxKN.js";import{I as a,V as D}from"./SlidesShow-Dk9xuOJo.js";import{b as M}from"../index-DENYuTHS.js";import"./bottom-WehDtssn.js";import"./context-8sk6R7gr.js";const ge=B({__name:"Draggable",props:{storageKey:{type:String,required:!1},initial:{type:Object,required:!1}},setup(h){const u=h,w=$(null),f=u.initial??{x:0,y:0},k=u.storageKey?le(u.storageKey,f):$(f),{style:y}=ae(w,{initialValue:k});return(v,d)=>(g(),L("div",{ref_key:"el",ref:w,class:"fixed",style:z(e(y))},[ie(v.$slots,"default")],4))}}),we=M(ge,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Draggable.vue"]]),fe=r("svg",{width:"1em",height:"1em",class:"-mt-0.5",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},[r("path",{d:"M21.71 3.29a1 1 0 0 0-1.42 0l-18 18a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l18-18a1 1 0 0 0 0-1.42z",fill:"currentColor"})],-1),ve=r("svg",{viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},[r("line",{x1:"2",y1:"15",x2:"22",y2:"4",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round"}),r("line",{x1:"2",y1:"24",x2:"28",y2:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}),r("line",{x1:"7",y1:"31",x2:"29",y2:"19",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round"})],-1),be={class:"flex bg-main p-2"},ke={class:"inline-block w-7 text-center"},ye={class:"pt-.5"},xe=B({__name:"DrawingControls",setup(h){const{brush:u,canClear:w,canRedo:f,canUndo:k,clear:y,drauu:v,drawingEnabled:d,drawingMode:i,drawingPinned:c,brushColors:S}=me();function V(){v.undo()}function A(){v.redo()}let x="stylus";function _(p){i.value=p,d.value=!0,p!=="eraseLine"&&(x=p)}function E(p){u.color=p,d.value=!0,i.value=x}return(p,t)=>{const U=T,F=Y,K=Z,N=H,R=J,j=W,q=X,I=ee,P=ne,G=te,O=se,Q=oe;return g(),C(we,{class:l(["flex flex-wrap text-xl p-2 gap-1 rounded-md bg-main shadow transition-opacity duration-200 z-20 border border-main",e(d)?"":e(c)?"opacity-40 hover:opacity-90":"opacity-0 pointer-events-none"]),"storage-key":"slidev-drawing-pos","initial-x":10,"initial-y":10},{default:o(()=>[n(a,{title:"Draw with stylus",class:l({shallow:e(i)!=="stylus"}),onClick:t[0]||(t[0]=s=>_("stylus"))},{default:o(()=>[n(U)]),_:1},8,["class"]),n(a,{title:"Draw a line",class:l({shallow:e(i)!=="line"}),onClick:t[1]||(t[1]=s=>_("line"))},{default:o(()=>[fe]),_:1},8,["class"]),n(a,{title:"Draw an arrow",class:l({shallow:e(i)!=="arrow"}),onClick:t[2]||(t[2]=s=>_("arrow"))},{default:o(()=>[n(F)]),_:1},8,["class"]),n(a,{title:"Draw an ellipse",class:l({shallow:e(i)!=="ellipse"}),onClick:t[3]||(t[3]=s=>_("ellipse"))},{default:o(()=>[n(K)]),_:1},8,["class"]),n(a,{title:"Draw a rectangle",class:l({shallow:e(i)!=="rectangle"}),onClick:t[4]||(t[4]=s=>_("rectangle"))},{default:o(()=>[n(N)]),_:1},8,["class"]),n(a,{title:"Erase",class:l({shallow:e(i)!=="eraseLine"}),onClick:t[5]||(t[5]=s=>_("eraseLine"))},{default:o(()=>[n(R)]),_:1},8,["class"]),n(D),n(e(pe),null,{popper:o(()=>[r("div",be,[r("div",ke,re(e(u).size),1),r("div",ye,[m(r("input",{"onUpdate:modelValue":t[6]||(t[6]=s=>e(u).size=s),type:"range",min:"1",max:"15",onChange:t[7]||(t[7]=s=>i.value=e(x))},null,544),[[ue,e(u).size]])])])]),default:o(()=>[n(a,{title:"Adjust stroke width",class:l({shallow:e(i)==="eraseLine"})},{default:o(()=>[ve]),_:1},8,["class"])]),_:1}),(g(!0),L(de,null,ce(e(S),s=>(g(),C(a,{key:s,title:"Set brush color",class:l(e(u).color===s&&e(i)!=="eraseLine"?"active":"shallow"),onClick:Ce=>E(s)},{default:o(()=>[r("div",{class:l(["w-6 h-6 transition-all transform border",e(u).color!==s?"rounded-1/2 scale-85 border-white":"rounded-md border-gray-300/50"]),style:z(e(d)?{background:s}:{borderColor:s})},null,6)]),_:2},1032,["class","onClick"]))),128)),n(D),n(a,{title:"Undo",class:l({disabled:!e(k)}),onClick:t[8]||(t[8]=s=>V())},{default:o(()=>[n(j)]),_:1},8,["class"]),n(a,{title:"Redo",class:l({disabled:!e(f)}),onClick:t[9]||(t[9]=s=>A())},{default:o(()=>[n(q)]),_:1},8,["class"]),n(a,{title:"Delete",class:l({disabled:!e(w)}),onClick:t[10]||(t[10]=s=>e(y)())},{default:o(()=>[n(I)]),_:1},8,["class"]),n(D),n(a,{title:e(c)?"Unpin drawing":"Pin drawing",class:l({shallow:!e(c)}),onClick:t[11]||(t[11]=s=>c.value=!e(c))},{default:o(()=>[m(n(P,{class:"transform -rotate-45"},null,512),[[b,e(c)]]),m(n(G,null,null,512),[[b,!e(c)]])]),_:1},8,["title","class"]),e(d)?(g(),C(a,{key:0,title:e(c)?"Drawing pinned":"Drawing unpinned",class:l({shallow:!e(d)}),onClick:t[12]||(t[12]=s=>d.value=!e(d))},{default:o(()=>[m(n(O,null,null,512),[[b,e(c)]]),m(n(Q,null,null,512),[[b,!e(c)]])]),_:1},8,["title","class"])):_e("v-if",!0)]),_:1},8,["class"])}}}),Ve=M(xe,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingControls.vue"]]);export{Ve as default};
import{d as p,y as f,o as a,b as u,f as d,h,e,c as v,k as r,a0 as c,l as y,q as g,s as x,A as _}from"../modules/vue-O-XuQLLR.js";import{b as l,J as i}from"../index-DENYuTHS.js";import{u as m,p as b,f as $}from"./context-8sk6R7gr.js";import"../modules/shiki-CBnMlxcT.js";const q=p({__name:"Transform",props:{scale:{type:[Number,String],required:!1},origin:{type:String,required:!1}},setup(o){const t=o,n=f(()=>{const s=[];return t.scale!=null&&s.push(`scale(${t.scale||1})`),{transform:s.join(" "),"transform-origin":t.origin||"top left"}});return(s,E)=>(a(),u("div",{style:h(n.value)},[d(s.$slots,"default")],4))}}),T=l(q,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/builtin/Transform.vue"]]),k={class:"slidev-layout quote"},B={class:"my-auto"},C={__name:"quote",setup(o){return m(),(t,n)=>(a(),u("div",k,[e("div",B,[d(t.$slots,"default")])]))}},S=l(C,[["__file","/home/alex/notes/slides/node_modules/@slidev/theme-default/layouts/quote.vue"]]),N=e("h1",null,"Thank you !",-1),F=e("p",null,"And to:",-1),P=e("p",null,"Besançon Hospital",-1),V=e("p",null,"Mésocentre de calcul de Franche-Comté",-1),j=e("br",null,null,-1),z=e("br",null,null,-1),A=e("br",null,null,-1),I=e("br",null,null,-1),w={__name:"5",setup(o){return b(i),m(),(t,n)=>{const s=T;return a(),v(S,g(x(_($)(_(i),4))),{default:r(()=>[N,F,P,V,j,z,c(" Contact: alexis.praga (at) proton.me "),A,I,y(s,{scale:.5},{default:r(()=>[c(" Images courtesy of Flaticon ")]),_:1})]),_:1},16)}}},R=l(w,[["__file","/@slidev/slides/5.md"]]);export{R as default};
import{_ as A}from"./Mermaid-sWhOKcCj.js";import{o,b as l,f as d,c,k as i,l as m,m as _,q as p,s as u,A as t,e as f}from"../modules/vue-O-XuQLLR.js";import{b as r,G as s}from"../index-DENYuTHS.js";import{p as g,u as C,f as F}from"./context-8sk6R7gr.js";import"../modules/file-saver-EUMWMpoS.js";import"../modules/shiki-CBnMlxcT.js";const Y={},T={class:"slidev-layout default"};function k(e,n){return o(),l("div",T,[d(e.$slots,"default")])}const x=r(Y,[["render",k],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/default.vue"]]),B=f("h1",null,"Nix : excellent community",-1),w={__name:"4",setup(e){return g(s),C(),(n,X)=>{const a=A;return o(),c(x,p(u(t(F)(t(s),3))),{default:i(()=>[B,m(a,_({"code-lz":"OYQwdgLhBQAE+wCYggUwGIHsBOBbF8AmsYQLQCy5pAItXAqgB4DGANgK6KoDOCsA7qlQBrVGETd68AKTTYACgAGTNpx6LYIZs1QAHCL267UzAJYAzU8yQoesU2FgkylGtVjmc+CABobAT15Mc1gIAAtUASFhBQAibnZxEH9YgEpYHFhYwRExCVi/ACN2CFgwTFLwyP4cRCyc4WRA2IA6VOgpWG4TCFNMRwA5VH5YAAUtYRBgHk6wkF1SXX9YAC4tXoA3SJ8AJgAGHYAWUj2ARlIdgFY/faOTnZPTzq3dVfXTLdhdg+Ozi4BmG4/e6PTrkdisXoAR2sb2Ym22t3+JwAHKRTtdYLdfg8zp0jKZXmt4R9EQdkXs0XsAGxAu4HUF8bAQYCkCCYTCsXjEhFfJEnS4nWlY4EMvF8Qp9JgQECsUzARwrRD9Mk7XFo06A24PU57C5PCV9UiS4CWViRJUqvkHdXorXk9Hnf57ToAIT61FdAAkACoAZXglrAqttmu+Owpxx21M6kswxmwrFWyuD1rVqNR4dDLvxPT6jgAqrpkGhOgBpMSlIOqinInYAdnDFMFe3rnWDjAg5lYmBG1bTkceTaF6MunVAEBiyatWYzewAnLOF+iXXwJzF+0v5+jadqVyvOgBxFDCUiHFo7FrUlqnaeprejh+nalAA==="},{theme:"neutral"}),null,16)]),_:1},16)}}},E=r(w,[["__file","/@slidev/slides/4.md"]]);export{E as default};
import{_ as m}from"./Mermaid-sWhOKcCj.js";import{d as p,o as d,b as _,e,f as t,i as l,c as f,k as n,l as g,m as h,q as v,s as A,A as i}from"../modules/vue-O-XuQLLR.js";import{b as u,F as c}from"../index-DENYuTHS.js";import{p as w,u as B,f as C}from"./context-8sk6R7gr.js";import"../modules/file-saver-EUMWMpoS.js";import"../modules/shiki-CBnMlxcT.js";const k={class:"col-header"},M=p({__name:"two-cols-header",props:{class:{type:String},layoutClass:{type:String}},setup(a){const o=a;return(s,r)=>(d(),_("div",{class:l(["slidev-layout two-cols-header w-full h-full",a.layoutClass])},[e("div",k,[t(s.$slots,"default",{},void 0,!0)]),e("div",{class:l(["col-left",o.class])},[t(s.$slots,"left",{},void 0,!0)],2),e("div",{class:l(["col-right",o.class])},[t(s.$slots,"right",{},void 0,!0)],2),e("div",{class:l(["col-bottom",o.class])},[t(s.$slots,"bottom",{},void 0,!0)],2)],2))}}),Y=u(M,[["__scopeId","data-v-1401df1d"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/two-cols-header.vue"]]),b=e("h1",null,"Bioinformatics pipeline",-1),y=e("h1",null,"Nix ?",-1),F=e("ul",null,[e("li",null,"Reproducible dependencies : ok ! (it’s the law)"),e("li",null,"High Performance Computing : ok !"),e("li",null,"Manage workflow ?"),e("li",null,"Manage databases ?")],-1),x={__name:"3",setup(a){return w(c),B(),(o,s)=>{const r=m;return d(),f(Y,v(A(i(C)(i(c),2))),{right:n(I=>[y,F]),default:n(()=>[b,g(r,h({"code-lz":"OYJwhgDgFgBAMgJQFBgDYEtgDsYFpcB8MAxmqgNqmqowBuYI6YWALgLp6EzNYD2LYFgFNORAGbpUwkEgAmAIwCMACnIARQWHlgAziMUAaAEwA6M2wCUo7lj4Dhc+UdUaB2vTACsBgGxmTltYSUkIgQA="},{theme:"neutral",scale:.8}),null,16)]),_:1},16)}}},E=u(x,[["__file","/@slidev/slides/3.md"]]);export{E as default};
import{o as n,b as l,e,f as c,c as i,k as _,a0 as d,q as u,s as m,A as t}from"../modules/vue-O-XuQLLR.js";import{b as a,E as o}from"../index-DENYuTHS.js";import{p as f,u as p,f as h}from"./context-8sk6R7gr.js";import"../modules/shiki-CBnMlxcT.js";const v="/slides/fosdem2024/assets/ngs-BKBsMuHF.svg",x={},g={class:"slidev-layout center h-full grid place-content-center"},B={class:"my-auto"};function b(s,r){return n(),l("div",g,[e("div",B,[c(s.$slots,"default")])])}const k=a(x,[["render",b],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/center.vue"]]),y=e("h1",null,"Next-generation sequencing",-1),$=e("br",null,null,-1),N=e("p",null,[e("img",{src:v,alt:""})],-1),P=e("br",null,null,-1),q=e("br",null,null,-1),C={__name:"2",setup(s){return f(o),p(),(r,E)=>(n(),i(k,u(m(t(h)(t(o),1))),{default:_(()=>[y,$,N,P,q,d(" Bioinformatics: 1 million -> 1 000 candidates ")]),_:1},16))}},j=a(C,[["__file","/@slidev/slides/2.md"]]);export{j as default};
import{d as _,y as p,o as c,b as f,e as s,f as m,h,c as v,k as g,q as x,s as y,A as a}from"../modules/vue-O-XuQLLR.js";import{u as d,p as k,f as b}from"./context-8sk6R7gr.js";import{b as u,D as i}from"../index-DENYuTHS.js";import"../modules/shiki-CBnMlxcT.js";function l(e){return e.startsWith("/")?"/slides/fosdem2024"+e.slice(1):e}function P(e,r=!1){const o=e&&["#","rgb","hsl"].some(n=>e.indexOf(n)===0),t={background:o?e:void 0,color:e&&!o?"white":void 0,backgroundImage:o?void 0:e?r?`linear-gradient(#0005, #0008), url(${l(e)})`:`url("${l(e)}")`:void 0,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"cover"};return t.background||delete t.background,t}const B={class:"my-auto w-full"},C=_({__name:"cover",props:{background:{default:""}},setup(e){d();const r=e,o=p(()=>P(r.background,!0));return(t,n)=>(c(),f("div",{class:"slidev-layout cover",style:h(o.value)},[s("div",B,[m(t.$slots,"default")])],4))}}),S=u(C,[["__file","/home/alex/notes/slides/node_modules/@slidev/theme-default/layouts/cover.vue"]]),$=s("h1",null,"Nix for genetics",-1),w=s("h2",null,"Powering a bioinformatics pipeline",-1),z=s("p",null,"Alexis Praga (M. D, Ph.D in Computer Science)",-1),A=s("p",null,"Besançon Hospital (France)",-1),D={__name:"1",setup(e){return k(i),d(),(r,o)=>(c(),v(S,x(y(a(b)(a(i),0))),{default:g(()=>[$,w,z,A]),_:1},16))}},j=u(D,[["__file","/@slidev/slides/1.md"]]);export{j as default};
import{m as $t,g as we,D as ve,C as _e,c as st,s as te,b as ke,a as Pe,j as v,X as ee,a5 as nt,E as Le,l as G,d as At,r as se,$ as Bt,a6 as Ie,a7 as wt,e as Ae,h as Lt,i as Ne,v as B}from"./slidev/Mermaid-sWhOKcCj.js";import{d as Se,a as Me,b as Re,c as Ce,e as zt,g as Nt}from"./svgDrawCommon-99ae2c94-BzrMl0LX.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var Yt=function(){var t=function(dt,w,k,L){for(k=k||{},L=dt.length;L--;k[dt[L]]=w);return k},e=[1,2],c=[1,3],s=[1,4],i=[2,4],a=[1,9],o=[1,11],l=[1,13],p=[1,14],r=[1,16],x=[1,17],T=[1,18],u=[1,24],g=[1,25],m=[1,26],_=[1,27],I=[1,28],V=[1,29],S=[1,30],O=[1,31],R=[1,32],q=[1,33],z=[1,34],J=[1,35],$=[1,36],H=[1,37],U=[1,38],F=[1,39],W=[1,41],Z=[1,42],K=[1,43],Q=[1,44],tt=[1,45],N=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],j=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Xt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ht=[68,69,70],ot=[1,120],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,k,L,b,M,h,Et){var d=h.length-1;switch(M){case 3:return b.apply(h[d]),h[d];case 4:case 9:this.$=[];break;case 5:case 10:h[d-1].push(h[d]),this.$=h[d-1];break;case 6:case 7:case 11:case 12:this.$=h[d];break;case 8:case 13:this.$=[];break;case 15:h[d].type="createParticipant",this.$=h[d];break;case 16:h[d-1].unshift({type:"boxStart",boxData:b.parseBoxData(h[d-2])}),h[d-1].push({type:"boxEnd",boxText:h[d-2]}),this.$=h[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-2]),sequenceIndexStep:Number(h[d-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-1]};break;case 29:b.setDiagramTitle(h[d].substring(6)),this.$=h[d].substring(6);break;case 30:b.setDiagramTitle(h[d].substring(7)),this.$=h[d].substring(7);break;case 31:this.$=h[d].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=h[d].trim(),b.setAccDescription(this.$);break;case 34:h[d-1].unshift({type:"loopStart",loopText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.LOOP_START}),h[d-1].push({type:"loopEnd",loopText:h[d-2],signalType:b.LINETYPE.LOOP_END}),this.$=h[d-1];break;case 35:h[d-1].unshift({type:"rectStart",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_START}),h[d-1].push({type:"rectEnd",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_END}),this.$=h[d-1];break;case 36:h[d-1].unshift({type:"optStart",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_START}),h[d-1].push({type:"optEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_END}),this.$=h[d-1];break;case 37:h[d-1].unshift({type:"altStart",altText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.ALT_START}),h[d-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=h[d-1];break;case 38:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 39:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_OVER_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 40:h[d-1].unshift({type:"criticalStart",criticalText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.CRITICAL_START}),h[d-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=h[d-1];break;case 41:h[d-1].unshift({type:"breakStart",breakText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_START}),h[d-1].push({type:"breakEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_END}),this.$=h[d-1];break;case 43:this.$=h[d-3].concat([{type:"option",optionText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.CRITICAL_OPTION},h[d]]);break;case 45:this.$=h[d-3].concat([{type:"and",parText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.PAR_AND},h[d]]);break;case 47:this.$=h[d-3].concat([{type:"else",altText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.ALT_ELSE},h[d]]);break;case 48:h[d-3].draw="participant",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 49:h[d-1].draw="participant",h[d-1].type="addParticipant",this.$=h[d-1];break;case 50:h[d-3].draw="actor",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 51:h[d-1].draw="actor",h[d-1].type="addParticipant",this.$=h[d-1];break;case 52:h[d-1].type="destroyParticipant",this.$=h[d-1];break;case 53:this.$=[h[d-1],{type:"addNote",placement:h[d-2],actor:h[d-1].actor,text:h[d]}];break;case 54:h[d-2]=[].concat(h[d-1],h[d-1]).slice(0,2),h[d-2][0]=h[d-2][0].actor,h[d-2][1]=h[d-2][1].actor,this.$=[h[d-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:h[d-2].slice(0,2),text:h[d]}];break;case 55:this.$=[h[d-1],{type:"addLinks",actor:h[d-1].actor,text:h[d]}];break;case 56:this.$=[h[d-1],{type:"addALink",actor:h[d-1].actor,text:h[d]}];break;case 57:this.$=[h[d-1],{type:"addProperties",actor:h[d-1].actor,text:h[d]}];break;case 58:this.$=[h[d-1],{type:"addDetails",actor:h[d-1].actor,text:h[d]}];break;case 61:this.$=[h[d-2],h[d]];break;case 62:this.$=h[d];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]}];break;case 66:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-4]}];break;case 67:this.$=[h[d-3],h[d-1],{type:"addMessage",from:h[d-3].actor,to:h[d-1].actor,signalType:h[d-2],msg:h[d]}];break;case 68:this.$={type:"addParticipant",actor:h[d]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(h[d].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:s},{1:[3]},{3:5,4:e,5:c,6:s},{3:6,4:e,5:c,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,5]),{9:47,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:H,52:U,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:91}),t(y,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(y,[2,21]),{5:[1,95]},{5:[1,96]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(j,i,{7:97}),t(j,i,{7:98}),t(j,i,{7:99}),t(rt,i,{40:100,7:101}),t(A,i,{42:102,7:103}),t(A,i,{7:103,42:104}),t(Xt,i,{45:105,7:106}),t(j,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:H,52:U,53:F},{5:[1,129]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,130],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,131],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,132],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,133]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,46],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,49:[1,134],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,135]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,44],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,48:[1,136],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,137]},{16:[1,138]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,42],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,47:[1,139],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,140],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{15:[1,141]},t(y,[2,49]),{15:[1,142]},t(y,[2,51]),t(y,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:149,50:H,52:U,53:F},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,150]},t(y,[2,38]),{15:[1,151]},t(y,[2,39]),t(y,[2,40]),{15:[1,152]},t(y,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(A,i,{7:103,42:159}),t(Xt,i,{7:106,45:160}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,k){if(k.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=k,L}},parse:function(w){var k=this,L=[0],b=[],M=[null],h=[],Et=this.table,d="",_t=0,Gt=0,Te=2,Jt=1,be=h.slice.call(arguments,1),Y=Object.create(this.lexer),pt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(pt.yy[Ct]=this.yy[Ct]);Y.setInput(w,pt.yy),pt.yy.lexer=Y,pt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;h.push(Dt);var Ee=Y.options&&Y.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var lt;return lt=b.pop()||Y.lex()||Jt,typeof lt!="number"&&(lt instanceof Array&&(b=lt,lt=b.pop()),lt=k.symbols_[lt]||lt),lt}for(var X,ut,et,Vt,yt={},kt,ct,Zt,Pt;;){if(ut=L[L.length-1],this.defaultActions[ut]?et=this.defaultActions[ut]:((X===null||typeof X>"u")&&(X=me()),et=Et[ut]&&Et[ut][X]),typeof et>"u"||!et.length||!et[0]){var Ot="";Pt=[];for(kt in Et[ut])this.terminals_[kt]&&kt>Te&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?Ot="Parse error on line "+(_t+1)+`:
`+Y.showPosition()+`
Expecting `+Pt.join(", ")+", got '"+(this.terminals_[X]||X)+"'":Ot="Parse error on line "+(_t+1)+": Unexpected "+(X==Jt?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError(Ot,{text:Y.match,token:this.terminals_[X]||X,line:Y.yylineno,loc:Dt,expected:Pt})}if(et[0]instanceof Array&&et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ut+", token: "+X);switch(et[0]){case 1:L.push(X),M.push(Y.yytext),h.push(Y.yylloc),L.push(et[1]),X=null,Gt=Y.yyleng,d=Y.yytext,_t=Y.yylineno,Dt=Y.yylloc;break;case 2:if(ct=this.productions_[et[1]][1],yt.$=M[M.length-ct],yt._$={first_line:h[h.length-(ct||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(ct||1)].first_column,last_column:h[h.length-1].last_column},Ee&&(yt._$.range=[h[h.length-(ct||1)].range[0],h[h.length-1].range[1]]),Vt=this.performAction.apply(yt,[d,Gt,_t,pt.yy,et[1],M,h].concat(be)),typeof Vt<"u")return Vt;ct&&(L=L.slice(0,-1*ct*2),M=M.slice(0,-1*ct),h=h.slice(0,-1*ct)),L.push(this.productions_[et[1]][0]),M.push(yt.$),h.push(yt._$),Zt=Et[L[L.length-2]][L[L.length-1]],L.push(Zt);break;case 3:return!0}}return!0}},ye=function(){var dt={EOF:1,parseError:function(k,L){if(this.yy.parser)this.yy.parser.parseError(k,L);else throw new Error(k)},setInput:function(w,k){return this.yy=k||this.yy||{},this._input=w,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var k=w.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},unput:function(w){var k=w.length,L=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),L.length-1&&(this.yylineno-=L.length-1);var M=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:L?(L.length===b.length?this.yylloc.first_column:0)+b[b.length-L.length].length-L[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[M[0],M[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(w){this.unput(this.match.slice(w))},pastInput:function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var w=this.pastInput(),k=new Array(w.length+1).join("-");return w+this.upcomingInput()+`
`+k+"^"},test_match:function(w,k){var L,b,M;if(this.options.backtrack_lexer&&(M={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(M.yylloc.range=this.yylloc.range.slice(0))),b=w[0].match(/(?:\r\n?|\n).*/g),b&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(w[0].length),this.matched+=w[0],L=this.performAction.call(this,this.yy,this,k,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),L)return L;if(this._backtrack){for(var h in M)this[h]=M[h];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var w,k,L,b;this._more||(this.yytext="",this.match="");for(var M=this._currentRules(),h=0;h<M.length;h++)if(L=this._input.match(this.rules[M[h]]),L&&(!k||L[0].length>k[0].length)){if(k=L,b=h,this.options.backtrack_lexer){if(w=this.test_match(L,M[h]),w!==!1)return w;if(this._backtrack){k=!1;continue}else return!1}else if(!this.options.flex)break}return k?(w=this.test_match(k,M[b]),w!==!1?w:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var k=this.next();return k||this.lex()},begin:function(k){this.conditionStack.push(k)},popState:function(){var k=this.conditionStack.length-1;return k>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(k){return k=this.conditionStack.length-1-Math.abs(k||0),k>=0?this.conditionStack[k]:"INITIAL"},pushState:function(k){this.begin(k)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(k,L,b,M){switch(b){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;case 8:return this.begin("ID"),50;case 9:return this.begin("ID"),52;case 10:return 13;case 11:return this.begin("ID"),53;case 12:return L.yytext=L.yytext.trim(),this.begin("ALIAS"),70;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),36;case 16:return this.begin("LINE"),37;case 17:return this.begin("LINE"),38;case 18:return this.begin("LINE"),39;case 19:return this.begin("LINE"),49;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),48;case 23:return this.begin("LINE"),44;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),46;case 26:return this.popState(),15;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;case 37:return this.begin("ID"),23;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;case 41:return this.popState(),"acc_title_value";case 42:return this.begin("acc_descr"),33;case 43:return this.popState(),"acc_descr_value";case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 51:return 5;case 52:return L.yytext=L.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 71;case 56:return 72;case 57:return 75;case 58:return 76;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 68;case 63:return 69;case 64:return 5;case 65:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[45,46],inclusive:!1},acc_descr:{rules:[43],inclusive:!1},acc_title:{rules:[41],inclusive:!1},ID:{rules:[2,3,12],inclusive:!1},ALIAS:{rules:[2,3,13,14],inclusive:!1},LINE:{rules:[2,3,26],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65],inclusive:!0}}};return dt}();Mt.lexer=ye;function Rt(){this.yy={}}return Rt.prototype=Mt,Mt.Parser=Rt,new Rt}();Yt.parser=Yt;const De=Yt;class Ve{constructor(e){this.init=e,this.records=this.init()}reset(){this.records=this.init()}}const E=new Ve(()=>({prevActor:void 0,actors:{},createdActors:{},destroyedActors:{},boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),Oe=function(t){E.records.boxes.push({name:t.text,wrap:t.wrap===void 0&>()||!!t.wrap,fill:t.color,actorKeys:[]}),E.records.currentBox=E.records.boxes.slice(-1)[0]},Ft=function(t,e,c,s){let i=E.records.currentBox;const a=E.records.actors[t];if(a){if(E.records.currentBox&&a.box&&E.records.currentBox!==a.box)throw new Error("A same participant should only be defined in one Box: "+a.name+" can't be in '"+a.box.name+"' and in '"+E.records.currentBox.name+"' at the same time.");if(i=a.box?a.box:E.records.currentBox,a.box=i,a&&e===a.name&&c==null)return}(c==null||c.text==null)&&(c={text:e,wrap:null,type:s}),(s==null||c.text==null)&&(c={text:e,wrap:null,type:s}),E.records.actors[t]={box:i,name:e,description:c.text,wrap:c.wrap===void 0&>()||!!c.wrap,prevActor:E.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:s||"participant"},E.records.prevActor&&E.records.actors[E.records.prevActor]&&(E.records.actors[E.records.prevActor].nextActor=t),E.records.currentBox&&E.records.currentBox.actorKeys.push(t),E.records.prevActor=t},Be=t=>{let e,c=0;for(e=0;e<E.records.messages.length;e++)E.records.messages[e].type===mt.ACTIVE_START&&E.records.messages[e].from.actor===t&&c++,E.records.messages[e].type===mt.ACTIVE_END&&E.records.messages[e].from.actor===t&&c--;return c},Ye=function(t,e,c,s){E.records.messages.push({from:t,to:e,message:c.text,wrap:c.wrap===void 0&>()||!!c.wrap,answer:s})},C=function(t,e,c={text:void 0,wrap:void 0},s,i=!1){if(s===mt.ACTIVE_END&&Be(t.actor)<1){let o=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw o.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},o}return E.records.messages.push({from:t,to:e,message:c.text,wrap:c.wrap===void 0&>()||!!c.wrap,type:s,activate:i}),!0},Fe=function(){return E.records.boxes.length>0},We=function(){return E.records.boxes.some(t=>t.name)},qe=function(){return E.records.messages},ze=function(){return E.records.boxes},He=function(){return E.records.actors},Ue=function(){return E.records.createdActors},Ke=function(){return E.records.destroyedActors},vt=function(t){return E.records.actors[t]},Xe=function(){return Object.keys(E.records.actors)},Ge=function(){E.records.sequenceNumbersEnabled=!0},Je=function(){E.records.sequenceNumbersEnabled=!1},Ze=()=>E.records.sequenceNumbersEnabled,Qe=function(t){E.records.wrapEnabled=t},gt=()=>E.records.wrapEnabled!==void 0?E.records.wrapEnabled:st().sequence.wrap,je=function(){E.reset(),Le()},$e=function(t){const e=t.trim(),c={text:e.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:e.match(/^:?wrap:/)!==null?!0:e.match(/^:?nowrap:/)!==null?!1:void 0};return G.debug("parseMessage:",c),c},t0=function(t){const e=t.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let c=e!=null&&e[1]?e[1].trim():"transparent",s=e!=null&&e[2]?e[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",c)||(c="transparent",s=t.trim());else{const i=new Option().style;i.color=c,i.color!==c&&(c="transparent",s=t.trim())}return{color:c,text:s!==void 0?At(s.replace(/^:?(?:no)?wrap:/,""),st()):void 0,wrap:s!==void 0?s.match(/^:?wrap:/)!==null?!0:s.match(/^:?nowrap:/)!==null?!1:void 0:void 0}},mt={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32},e0={FILLED:0,OPEN:1},s0={LEFTOF:0,RIGHTOF:1,OVER:2},re=function(t,e,c){const s={actor:t,placement:e,message:c.text,wrap:c.wrap===void 0&>()||!!c.wrap},i=[].concat(t,t);E.records.notes.push(s),E.records.messages.push({from:i[0],to:i[1],message:c.text,wrap:c.wrap===void 0&>()||!!c.wrap,type:mt.NOTE,placement:e})},ie=function(t,e){const c=vt(t);try{let s=At(e.text,st());s=s.replace(/&/g,"&"),s=s.replace(/=/g,"=");const i=JSON.parse(s);Ht(c,i)}catch(s){G.error("error while parsing actor link text",s)}},r0=function(t,e){const c=vt(t);try{const o={};let l=At(e.text,st());var s=l.indexOf("@");l=l.replace(/&/g,"&"),l=l.replace(/=/g,"=");var i=l.slice(0,s-1).trim(),a=l.slice(s+1).trim();o[i]=a,Ht(c,o)}catch(o){G.error("error while parsing actor link text",o)}};function Ht(t,e){if(t.links==null)t.links=e;else for(let c in e)t.links[c]=e[c]}const ae=function(t,e){const c=vt(t);try{let s=At(e.text,st());const i=JSON.parse(s);ne(c,i)}catch(s){G.error("error while parsing actor properties text",s)}};function ne(t,e){if(t.properties==null)t.properties=e;else for(let c in e)t.properties[c]=e[c]}function i0(){E.records.currentBox=void 0}const oe=function(t,e){const c=vt(t),s=document.getElementById(e.text);try{const i=s.innerHTML,a=JSON.parse(i);a.properties&&ne(c,a.properties),a.links&&Ht(c,a.links)}catch(i){G.error("error while parsing actor details text",i)}},a0=function(t,e){if(t!==void 0&&t.properties!==void 0)return t.properties[e]},ce=function(t){if(Array.isArray(t))t.forEach(function(e){ce(e)});else switch(t.type){case"sequenceIndex":E.records.messages.push({from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":Ft(t.actor,t.actor,t.description,t.draw);break;case"createParticipant":if(E.records.actors[t.actor])throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");E.records.lastCreated=t.actor,Ft(t.actor,t.actor,t.description,t.draw),E.records.createdActors[t.actor]=E.records.messages.length;break;case"destroyParticipant":E.records.lastDestroyed=t.actor,E.records.destroyedActors[t.actor]=E.records.messages.length;break;case"activeStart":C(t.actor,void 0,void 0,t.signalType);break;case"activeEnd":C(t.actor,void 0,void 0,t.signalType);break;case"addNote":re(t.actor,t.placement,t.text);break;case"addLinks":ie(t.actor,t.text);break;case"addALink":r0(t.actor,t.text);break;case"addProperties":ae(t.actor,t.text);break;case"addDetails":oe(t.actor,t.text);break;case"addMessage":if(E.records.lastCreated){if(t.to!==E.records.lastCreated)throw new Error("The created participant "+E.records.lastCreated+" does not have an associated creating message after its declaration. Please check the sequence diagram.");E.records.lastCreated=void 0}else if(E.records.lastDestroyed){if(t.to!==E.records.lastDestroyed&&t.from!==E.records.lastDestroyed)throw new Error("The destroyed participant "+E.records.lastDestroyed+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");E.records.lastDestroyed=void 0}C(t.from,t.to,t.msg,t.signalType,t.activate);break;case"boxStart":Oe(t.boxData);break;case"boxEnd":i0();break;case"loopStart":C(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":C(void 0,void 0,void 0,t.signalType);break;case"rectStart":C(void 0,void 0,t.color,t.signalType);break;case"rectEnd":C(void 0,void 0,void 0,t.signalType);break;case"optStart":C(void 0,void 0,t.optText,t.signalType);break;case"optEnd":C(void 0,void 0,void 0,t.signalType);break;case"altStart":C(void 0,void 0,t.altText,t.signalType);break;case"else":C(void 0,void 0,t.altText,t.signalType);break;case"altEnd":C(void 0,void 0,void 0,t.signalType);break;case"setAccTitle":te(t.text);break;case"parStart":C(void 0,void 0,t.parText,t.signalType);break;case"and":C(void 0,void 0,t.parText,t.signalType);break;case"parEnd":C(void 0,void 0,void 0,t.signalType);break;case"criticalStart":C(void 0,void 0,t.criticalText,t.signalType);break;case"option":C(void 0,void 0,t.optionText,t.signalType);break;case"criticalEnd":C(void 0,void 0,void 0,t.signalType);break;case"breakStart":C(void 0,void 0,t.breakText,t.signalType);break;case"breakEnd":C(void 0,void 0,void 0,t.signalType);break}},Qt={addActor:Ft,addMessage:Ye,addSignal:C,addLinks:ie,addDetails:oe,addProperties:ae,autoWrap:gt,setWrap:Qe,enableSequenceNumbers:Ge,disableSequenceNumbers:Je,showSequenceNumbers:Ze,getMessages:qe,getActors:He,getCreatedActors:Ue,getDestroyedActors:Ke,getActor:vt,getActorKeys:Xe,getActorProperty:a0,getAccTitle:we,getBoxes:ze,getDiagramTitle:ve,setDiagramTitle:_e,getConfig:()=>st().sequence,clear:je,parseMessage:$e,parseBoxData:t0,LINETYPE:mt,ARROWTYPE:e0,PLACEMENT:s0,addNote:re,setAccTitle:te,apply:ce,setAccDescription:ke,getAccDescription:Pe,hasAtLeastOneBox:Fe,hasAtLeastOneBoxWithTitle:We},n0=t=>`.actor {
stroke: ${t.actorBorder};
fill: ${t.actorBkg};
}
text.actor > tspan {
fill: ${t.actorTextColor};
stroke: none;
}
.actor-line {
stroke: ${t.actorLineColor};
}
.messageLine0 {
stroke-width: 1.5;
stroke-dasharray: none;
stroke: ${t.signalColor};
}
.messageLine1 {
stroke-width: 1.5;
stroke-dasharray: 2, 2;
stroke: ${t.signalColor};
}
#arrowhead path {
fill: ${t.signalColor};
stroke: ${t.signalColor};
}
.sequenceNumber {
fill: ${t.sequenceNumberColor};
}
#sequencenumber {
fill: ${t.signalColor};
}
#crosshead path {
fill: ${t.signalColor};
stroke: ${t.signalColor};
}
.messageText {
fill: ${t.signalTextColor};
stroke: none;
}
.labelBox {
stroke: ${t.labelBoxBorderColor};
fill: ${t.labelBoxBkgColor};
}
.labelText, .labelText > tspan {
fill: ${t.labelTextColor};
stroke: none;
}
.loopText, .loopText > tspan {
fill: ${t.loopTextColor};
stroke: none;
}
.loopLine {
stroke-width: 2px;
stroke-dasharray: 2, 2;
stroke: ${t.labelBoxBorderColor};
fill: ${t.labelBoxBorderColor};
}
.note {
//stroke: #decc93;
stroke: ${t.noteBorderColor};
fill: ${t.noteBkgColor};
}
.noteText, .noteText > tspan {
fill: ${t.noteTextColor};
stroke: none;
}
.activation0 {
fill: ${t.activationBkgColor};
stroke: ${t.activationBorderColor};
}
.activation1 {
fill: ${t.activationBkgColor};
stroke: ${t.activationBorderColor};
}
.activation2 {
fill: ${t.activationBkgColor};
stroke: ${t.activationBorderColor};
}
.actorPopupMenu {
position: absolute;
}
.actorPopupMenuPanel {
position: absolute;
fill: ${t.actorBkg};
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
}
.actor-man line {
stroke: ${t.actorBorder};
fill: ${t.actorBkg};
}
.actor-man circle, line {
stroke: ${t.actorBorder};
fill: ${t.actorBkg};
stroke-width: 2px;
}
`,o0=n0,ft=18*2,le="actor-top",he="actor-bottom",Ut=function(t,e){return Se(t,e)},c0=function(t,e,c,s,i){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};const a=e.links,o=e.actorCnt,l=e.rectData;var p="none";i&&(p="block !important");const r=t.append("g");r.attr("id","actor"+o+"_popup"),r.attr("class","actorPopupMenu"),r.attr("display",p);var x="";l.class!==void 0&&(x=" "+l.class);let T=l.width>c?l.width:c;const u=r.append("rect");if(u.attr("class","actorPopupMenuPanel"+x),u.attr("x",l.x),u.attr("y",l.height),u.attr("fill",l.fill),u.attr("stroke",l.stroke),u.attr("width",T),u.attr("height",l.height),u.attr("rx",l.rx),u.attr("ry",l.ry),a!=null){var g=20;for(let I in a){var m=r.append("a"),_=$t.sanitizeUrl(a[I]);m.attr("xlink:href",_),m.attr("target","_blank"),k0(s)(I,m,l.x+10,l.height+g,T,20,{class:"actor"},s),g+=30}}return u.attr("height",g),{height:l.height+g,width:T}},l0=function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},It=async function(t,e,c=null){let s=t.append("foreignObject");const i=await se(e.text,Bt()),o=s.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();if(s.attr("height",Math.round(o.height)).attr("width",Math.round(o.width)),e.class==="noteText"){const l=t.node().firstChild;l.setAttribute("height",o.height+2*e.textMargin);const p=l.getBBox();s.attr("x",Math.round(p.x+p.width/2-o.width/2)).attr("y",Math.round(p.y+p.height/2-o.height/2))}else if(c){let{startx:l,stopx:p,starty:r}=c;if(l>p){const x=l;l=p,p=x}s.attr("x",Math.round(l+Math.abs(l-p)/2-o.width/2)),e.class==="loopText"?s.attr("y",Math.round(r)):s.attr("y",Math.round(r-o.height))}return[s]},bt=function(t,e){let c=0,s=0;const i=e.text.split(v.lineBreakRegex),[a,o]=ee(e.fontSize);let l=[],p=0,r=()=>e.y;if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":r=()=>Math.round(e.y+e.textMargin);break;case"middle":case"center":r=()=>Math.round(e.y+(c+s+e.textMargin)/2);break;case"bottom":case"end":r=()=>Math.round(e.y+(c+s+2*e.textMargin)-e.textMargin);break}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle";break}for(let[x,T]of i.entries()){e.textMargin!==void 0&&e.textMargin===0&&a!==void 0&&(p=x*a);const u=t.append("text");u.attr("x",e.x),u.attr("y",r()),e.anchor!==void 0&&u.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),e.fontFamily!==void 0&&u.style("font-family",e.fontFamily),o!==void 0&&u.style("font-size",o),e.fontWeight!==void 0&&u.style("font-weight",e.fontWeight),e.fill!==void 0&&u.attr("fill",e.fill),e.class!==void 0&&u.attr("class",e.class),e.dy!==void 0?u.attr("dy",e.dy):p!==0&&u.attr("dy",p);const g=T||Ie;if(e.tspan){const m=u.append("tspan");m.attr("x",e.x),e.fill!==void 0&&m.attr("fill",e.fill),m.text(g)}else u.text(g);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(s+=(u._groups||u)[0][0].getBBox().height,c=s),l.push(u)}return l},de=function(t,e){function c(i,a,o,l,p){return i+","+a+" "+(i+o)+","+a+" "+(i+o)+","+(a+l-p)+" "+(i+o-p*1.2)+","+(a+l)+" "+i+","+(a+l)}const s=t.append("polygon");return s.attr("points",c(e.x,e.y,e.width,e.height,7)),s.attr("class","labelBox"),e.y=e.y+e.height/2,bt(t,e),s};let at=-1;const pe=(t,e,c,s)=>{t.select&&c.forEach(i=>{const a=e[i],o=t.select("#actor"+a.actorCnt);!s.mirrorActors&&a.stopy?o.attr("y2",a.stopy+a.height/2):s.mirrorActors&&o.attr("y2",a.stopy)})},h0=async function(t,e,c,s){const i=s?e.stopy:e.starty,a=e.x+e.width/2,o=i+5,l=t.append("g").lower();var p=l;s||(at++,Object.keys(e.links||{}).length&&!c.forceMenus&&p.attr("onclick",l0(`actor${at}_popup`)).attr("cursor","pointer"),p.append("line").attr("id","actor"+at).attr("x1",a).attr("y1",o).attr("x2",a).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),p=l.append("g"),e.actorCnt=at,e.links!=null&&p.attr("id","root-"+at));const r=Nt();var x="actor";e.properties!=null&&e.properties.class?x=e.properties.class:r.fill="#eaeaea",s?x+=` ${he}`:x+=` ${le}`,r.x=e.x,r.y=i,r.width=e.width,r.height=e.height,r.class=x,r.rx=3,r.ry=3,r.name=e.name;const T=Ut(p,r);if(e.rectData=r,e.properties!=null&&e.properties.icon){const g=e.properties.icon.trim();g.charAt(0)==="@"?Re(p,r.x+r.width-20,r.y+10,g.substr(1)):Ce(p,r.x+r.width-20,r.y+10,g)}await Kt(c,nt(e.description))(e.description,p,r.x,r.y,r.width,r.height,{class:"actor"},c);let u=e.height;if(T.node){const g=T.node().getBBox();e.height=g.height,u=g.height}return u},d0=async function(t,e,c,s){const i=s?e.stopy:e.starty,a=e.x+e.width/2,o=i+80;t.lower(),s||(at++,t.append("line").attr("id","actor"+at).attr("x1",a).attr("y1",o).attr("x2",a).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),e.actorCnt=at);const l=t.append("g");let p="actor-man";s?p+=` ${he}`:p+=` ${le}`,l.attr("class",p),l.attr("name",e.name);const r=Nt();r.x=e.x,r.y=i,r.fill="#eaeaea",r.width=e.width,r.height=e.height,r.class="actor",r.rx=3,r.ry=3,l.append("line").attr("id","actor-man-torso"+at).attr("x1",a).attr("y1",i+25).attr("x2",a).attr("y2",i+45),l.append("line").attr("id","actor-man-arms"+at).attr("x1",a-ft/2).attr("y1",i+33).attr("x2",a+ft/2).attr("y2",i+33),l.append("line").attr("x1",a-ft/2).attr("y1",i+60).attr("x2",a).attr("y2",i+45),l.append("line").attr("x1",a).attr("y1",i+45).attr("x2",a+ft/2-2).attr("y2",i+60);const x=l.append("circle");x.attr("cx",e.x+e.width/2),x.attr("cy",i+10),x.attr("r",15),x.attr("width",e.width),x.attr("height",e.height);const T=l.node().getBBox();return e.height=T.height,await Kt(c,nt(e.description))(e.description,l,r.x,r.y+35,r.width,r.height,{class:"actor"},c),e.height},p0=async function(t,e,c,s){switch(e.type){case"actor":return await d0(t,e,c,s);case"participant":return await h0(t,e,c,s)}},u0=async function(t,e,c){const i=t.append("g");ue(i,e),e.name&&await Kt(c)(e.name,i,e.x,e.y+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},c),i.lower()},f0=function(t){return t.append("g")},g0=function(t,e,c,s,i){const a=Nt(),o=e.anchored;a.x=e.startx,a.y=e.starty,a.class="activation"+i%3,a.width=e.stopx-e.startx,a.height=c-e.starty,Ut(o,a)},x0=async function(t,e,c,s){const{boxMargin:i,boxTextMargin:a,labelBoxHeight:o,labelBoxWidth:l,messageFontFamily:p,messageFontSize:r,messageFontWeight:x}=s,T=t.append("g"),u=function(_,I,V,S){return T.append("line").attr("x1",_).attr("y1",I).attr("x2",V).attr("y2",S).attr("class","loopLine")};u(e.startx,e.starty,e.stopx,e.starty),u(e.stopx,e.starty,e.stopx,e.stopy),u(e.startx,e.stopy,e.stopx,e.stopy),u(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0&&e.sections.forEach(function(_){u(e.startx,_.y,e.stopx,_.y).style("stroke-dasharray","3, 3")});let g=zt();g.text=c,g.x=e.startx,g.y=e.starty,g.fontFamily=p,g.fontSize=r,g.fontWeight=x,g.anchor="middle",g.valign="middle",g.tspan=!1,g.width=l||50,g.height=o||20,g.textMargin=a,g.class="labelText",de(T,g),g=fe(),g.text=e.title,g.x=e.startx+l/2+(e.stopx-e.startx)/2,g.y=e.starty+i+a,g.anchor="middle",g.valign="middle",g.textMargin=a,g.class="loopText",g.fontFamily=p,g.fontSize=r,g.fontWeight=x,g.wrap=!0;let m=nt(g.text)?await It(T,g,e):bt(T,g);if(e.sectionTitles!==void 0){for(const[_,I]of Object.entries(e.sectionTitles))if(I.message){g.text=I.message,g.x=e.startx+(e.stopx-e.startx)/2,g.y=e.sections[_].y+i+a,g.class="loopText",g.anchor="middle",g.valign="middle",g.tspan=!1,g.fontFamily=p,g.fontSize=r,g.fontWeight=x,g.wrap=e.wrap,nt(g.text)?(e.starty=e.sections[_].y,await It(T,g,e)):bt(T,g);let V=Math.round(m.map(S=>(S._groups||S)[0][0].getBBox().height).reduce((S,O)=>S+O));e.sections[_].height+=V-(i+a)}}return e.height=Math.round(e.stopy-e.starty),T},ue=function(t,e){Me(t,e)},y0=function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},T0=function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},b0=function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},E0=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},m0=function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},w0=function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},v0=function(t){t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},fe=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},_0=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},Kt=function(){function t(a,o,l,p,r,x,T){const u=o.append("text").attr("x",l+r/2).attr("y",p+x/2+5).style("text-anchor","middle").text(a);i(u,T)}function e(a,o,l,p,r,x,T,u){const{actorFontSize:g,actorFontFamily:m,actorFontWeight:_}=u,[I,V]=ee(g),S=a.split(v.lineBreakRegex);for(let O=0;O<S.length;O++){const R=O*I-I*(S.length-1)/2,q=o.append("text").attr("x",l+r/2).attr("y",p).style("text-anchor","middle").style("font-size",V).style("font-weight",_).style("font-family",m);q.append("tspan").attr("x",l+r/2).attr("dy",R).text(S[O]),q.attr("y",p+x/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(q,T)}}function c(a,o,l,p,r,x,T,u){const g=o.append("switch"),_=g.append("foreignObject").attr("x",l).attr("y",p).attr("width",r).attr("height",x).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");_.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(a),e(a,g,l,p,r,x,T,u),i(_,T)}async function s(a,o,l,p,r,x,T,u){const g=await wt(a,Bt()),m=o.append("switch"),I=m.append("foreignObject").attr("x",l+r/2-g.width/2).attr("y",p+x/2-g.height/2).attr("width",g.width).attr("height",g.height).append("xhtml:div").style("height","100%").style("width","100%");I.append("div").style("text-align","center").style("vertical-align","middle").html(await se(a,Bt())),e(a,m,l,p,r,x,T,u),i(I,T)}function i(a,o){for(const l in o)o.hasOwnProperty(l)&&a.attr(l,o[l])}return function(a,o=!1){return o?s:a.textPlacement==="fo"?c:a.textPlacement==="old"?t:e}}(),k0=function(){function t(i,a,o,l,p,r,x){const T=a.append("text").attr("x",o).attr("y",l).style("text-anchor","start").text(i);s(T,x)}function e(i,a,o,l,p,r,x,T){const{actorFontSize:u,actorFontFamily:g,actorFontWeight:m}=T,_=i.split(v.lineBreakRegex);for(let I=0;I<_.length;I++){const V=I*u-u*(_.length-1)/2,S=a.append("text").attr("x",o).attr("y",l).style("text-anchor","start").style("font-size",u).style("font-weight",m).style("font-family",g);S.append("tspan").attr("x",o).attr("dy",V).text(_[I]),S.attr("y",l+r/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(S,x)}}function c(i,a,o,l,p,r,x,T){const u=a.append("switch"),m=u.append("foreignObject").attr("x",o).attr("y",l).attr("width",p).attr("height",r).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");m.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),e(i,u,o,l,p,r,x,T),s(m,x)}function s(i,a){for(const o in a)a.hasOwnProperty(o)&&i.attr(o,a[o])}return function(i){return i.textPlacement==="fo"?c:i.textPlacement==="old"?t:e}}(),D={drawRect:Ut,drawText:bt,drawLabel:de,drawActor:p0,drawBox:u0,drawPopup:c0,anchorElement:f0,drawActivation:g0,drawLoop:x0,drawBackgroundRect:ue,insertArrowHead:E0,insertArrowFilledHead:m0,insertSequenceNumber:w0,insertArrowCrossHead:v0,insertDatabaseIcon:y0,insertComputerIcon:T0,insertClockIcon:b0,getTextObj:fe,getNoteRect:_0,fixLifeLineHeights:pe,sanitizeUrl:$t.sanitizeUrl};let n={};const f={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(t=>t.height||0))+(this.loops.length===0?0:this.loops.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.messages.length===0?0:this.messages.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.notes.length===0?0:this.notes.map(t=>t.height||0).reduce((t,e)=>t+e))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(t){this.boxes.push(t)},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,xe(st())},updateVal:function(t,e,c,s){t[e]===void 0?t[e]=c:t[e]=s(c,t[e])},updateBounds:function(t,e,c,s){const i=this;let a=0;function o(l){return function(r){a++;const x=i.sequenceItems.length-a+1;i.updateVal(r,"starty",e-x*n.boxMargin,Math.min),i.updateVal(r,"stopy",s+x*n.boxMargin,Math.max),i.updateVal(f.data,"startx",t-x*n.boxMargin,Math.min),i.updateVal(f.data,"stopx",c+x*n.boxMargin,Math.max),l!=="activation"&&(i.updateVal(r,"startx",t-x*n.boxMargin,Math.min),i.updateVal(r,"stopx",c+x*n.boxMargin,Math.max),i.updateVal(f.data,"starty",e-x*n.boxMargin,Math.min),i.updateVal(f.data,"stopy",s+x*n.boxMargin,Math.max))}}this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},insert:function(t,e,c,s){const i=v.getMin(t,c),a=v.getMax(t,c),o=v.getMin(e,s),l=v.getMax(e,s);this.updateVal(f.data,"startx",i,Math.min),this.updateVal(f.data,"starty",o,Math.min),this.updateVal(f.data,"stopx",a,Math.max),this.updateVal(f.data,"stopy",l,Math.max),this.updateBounds(i,o,a,l)},newActivation:function(t,e,c){const s=c[t.from.actor],i=St(t.from.actor).length||0,a=s.x+s.width/2+(i-1)*n.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+n.activationWidth,stopy:void 0,actor:t.from.actor,anchored:D.anchorElement(e)})},endActivation:function(t){const e=this.activations.map(function(c){return c.actor}).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},isLoopOverlap:function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},addSectionToLoop:function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:f.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},saveVerticalPos:function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},resetVerticalPos:function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=v.getMax(this.data.stopy,this.verticalPos)},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},P0=async function(t,e){f.bumpVerticalPos(n.boxMargin),e.height=n.boxMargin,e.starty=f.getVerticalPos();const c=Nt();c.x=e.startx,c.y=e.starty,c.width=e.width||n.width,c.class="note";const s=t.append("g"),i=D.drawRect(s,c),a=zt();a.x=e.startx,a.y=e.starty,a.width=c.width,a.dy="1em",a.text=e.message,a.class="noteText",a.fontFamily=n.noteFontFamily,a.fontSize=n.noteFontSize,a.fontWeight=n.noteFontWeight,a.anchor=n.noteAlign,a.textMargin=n.noteMargin,a.valign="center";const o=nt(a.text)?await It(s,a):bt(s,a),l=Math.round(o.map(p=>(p._groups||p)[0][0].getBBox().height).reduce((p,r)=>p+r));i.attr("height",l+2*n.noteMargin),e.height+=l+2*n.noteMargin,f.bumpVerticalPos(l+2*n.noteMargin),e.stopy=e.starty+l+2*n.noteMargin,e.stopx=e.startx+c.width,f.insert(e.startx,e.starty,e.stopx,e.stopy),f.models.addNote(e)},xt=t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),Tt=t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),Wt=t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight});async function L0(t,e){f.bumpVerticalPos(10);const{startx:c,stopx:s,message:i}=e,a=v.splitBreaks(i).length,o=nt(i),l=o?await wt(i,st()):B.calculateTextDimensions(i,xt(n));if(!o){const T=l.height/a;e.height+=T,f.bumpVerticalPos(T)}let p,r=l.height-10;const x=l.width;if(c===s){p=f.getVerticalPos()+r,n.rightAngles||(r+=n.boxMargin,p=f.getVerticalPos()+r),r+=30;const T=v.getMax(x/2,n.width/2);f.insert(c-T,f.getVerticalPos()-10+r,s+T,f.getVerticalPos()+30+r)}else r+=n.boxMargin,p=f.getVerticalPos()+r,f.insert(c,p-10,s,p);return f.bumpVerticalPos(r),e.height+=r,e.stopy=e.starty+e.height,f.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),p}const I0=async function(t,e,c,s){const{startx:i,stopx:a,starty:o,message:l,type:p,sequenceIndex:r,sequenceVisible:x}=e,T=B.calculateTextDimensions(l,xt(n)),u=zt();u.x=i,u.y=o+10,u.width=a-i,u.class="messageText",u.dy="1em",u.text=l,u.fontFamily=n.messageFontFamily,u.fontSize=n.messageFontSize,u.fontWeight=n.messageFontWeight,u.anchor=n.messageAlign,u.valign="center",u.textMargin=n.wrapPadding,u.tspan=!1,nt(u.text)?await It(t,u,{startx:i,stopx:a,starty:c}):bt(t,u);const g=T.width;let m;i===a?n.rightAngles?m=t.append("path").attr("d",`M ${i},${c} H ${i+v.getMax(n.width/2,g/2)} V ${c+25} H ${i}`):m=t.append("path").attr("d","M "+i+","+c+" C "+(i+60)+","+(c-10)+" "+(i+60)+","+(c+30)+" "+i+","+(c+20)):(m=t.append("line"),m.attr("x1",i),m.attr("y1",c),m.attr("x2",a),m.attr("y2",c)),p===s.db.LINETYPE.DOTTED||p===s.db.LINETYPE.DOTTED_CROSS||p===s.db.LINETYPE.DOTTED_POINT||p===s.db.LINETYPE.DOTTED_OPEN?(m.style("stroke-dasharray","3, 3"),m.attr("class","messageLine1")):m.attr("class","messageLine0");let _="";n.arrowMarkerAbsolute&&(_=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,_=_.replace(/\(/g,"\\("),_=_.replace(/\)/g,"\\)")),m.attr("stroke-width",2),m.attr("stroke","none"),m.style("fill","none"),(p===s.db.LINETYPE.SOLID||p===s.db.LINETYPE.DOTTED)&&m.attr("marker-end","url("+_+"#arrowhead)"),(p===s.db.LINETYPE.SOLID_POINT||p===s.db.LINETYPE.DOTTED_POINT)&&m.attr("marker-end","url("+_+"#filled-head)"),(p===s.db.LINETYPE.SOLID_CROSS||p===s.db.LINETYPE.DOTTED_CROSS)&&m.attr("marker-end","url("+_+"#crosshead)"),(x||n.showSequenceNumbers)&&(m.attr("marker-start","url("+_+"#sequencenumber)"),t.append("text").attr("x",i).attr("y",c+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(r))},A0=async function(t,e,c,s,i,a,o){let l=0,p=0,r,x=0;for(const T of s){const u=e[T],g=u.box;r&&r!=g&&(o||f.models.addBox(r),p+=n.boxMargin+r.margin),g&&g!=r&&(o||(g.x=l+p,g.y=i),p+=g.margin),u.width=u.width||n.width,u.height=v.getMax(u.height||n.height,n.height),u.margin=u.margin||n.actorMargin,x=v.getMax(x,u.height),c[u.name]&&(p+=u.width/2),u.x=l+p,u.starty=f.getVerticalPos(),f.insert(u.x,i,u.x+u.width,u.height),l+=u.width+p,u.box&&(u.box.width=l+g.margin-u.box.x),p=u.margin,r=u.box,f.models.addActor(u)}r&&!o&&f.models.addBox(r),f.bumpVerticalPos(x)},qt=async function(t,e,c,s){if(s){let i=0;f.bumpVerticalPos(n.boxMargin*2);for(const a of c){const o=e[a];o.stopy||(o.stopy=f.getVerticalPos());const l=await D.drawActor(t,o,n,!0);i=v.getMax(i,l)}f.bumpVerticalPos(i+n.boxMargin)}else for(const i of c){const a=e[i];await D.drawActor(t,a,n,!1)}},ge=function(t,e,c,s){let i=0,a=0;for(const o of c){const l=e[o],p=R0(l),r=D.drawPopup(t,l,p,n,n.forceMenus,s);r.height>i&&(i=r.height),r.width+l.x>a&&(a=r.width+l.x)}return{maxHeight:i,maxWidth:a}},xe=function(t){Ae(n,t),t.fontFamily&&(n.actorFontFamily=n.noteFontFamily=n.messageFontFamily=t.fontFamily),t.fontSize&&(n.actorFontSize=n.noteFontSize=n.messageFontSize=t.fontSize),t.fontWeight&&(n.actorFontWeight=n.noteFontWeight=n.messageFontWeight=t.fontWeight)},St=function(t){return f.activations.filter(function(e){return e.actor===t})},jt=function(t,e){const c=e[t],s=St(t),i=s.reduce(function(o,l){return v.getMin(o,l.startx)},c.x+c.width/2-1),a=s.reduce(function(o,l){return v.getMax(o,l.stopx)},c.x+c.width/2+1);return[i,a]};function it(t,e,c,s,i){f.bumpVerticalPos(c);let a=s;if(e.id&&e.message&&t[e.id]){const o=t[e.id].width,l=xt(n);e.message=B.wrapLabel(`[${e.message}]`,o-2*n.wrapPadding,l),e.width=o,e.wrap=!0;const p=B.calculateTextDimensions(e.message,l),r=v.getMax(p.height,n.labelBoxHeight);a=s+r,G.debug(`${r} - ${e.message}`)}i(e),f.bumpVerticalPos(a)}function N0(t,e,c,s,i,a,o){function l(r,x){r.x<i[t.from].x?(f.insert(e.stopx-x,e.starty,e.startx,e.stopy+r.height/2+n.noteMargin),e.stopx=e.stopx+x):(f.insert(e.startx,e.starty,e.stopx+x,e.stopy+r.height/2+n.noteMargin),e.stopx=e.stopx-x)}function p(r,x){r.x<i[t.to].x?(f.insert(e.startx-x,e.starty,e.stopx,e.stopy+r.height/2+n.noteMargin),e.startx=e.startx+x):(f.insert(e.stopx,e.starty,e.startx+x,e.stopy+r.height/2+n.noteMargin),e.startx=e.startx-x)}if(a[t.to]==s){const r=i[t.to],x=r.type=="actor"?ft/2+3:r.width/2+3;l(r,x),r.starty=c-r.height/2,f.bumpVerticalPos(r.height/2)}else if(o[t.from]==s){const r=i[t.from];if(n.mirrorActors){const x=r.type=="actor"?ft/2:r.width/2;p(r,x)}r.stopy=c-r.height/2,f.bumpVerticalPos(r.height/2)}else if(o[t.to]==s){const r=i[t.to];if(n.mirrorActors){const x=r.type=="actor"?ft/2+3:r.width/2+3;l(r,x)}r.stopy=c-r.height/2,f.bumpVerticalPos(r.height/2)}}const S0=async function(t,e,c,s){const{securityLevel:i,sequence:a}=st();n=a;let o;i==="sandbox"&&(o=Lt("#i"+e));const l=i==="sandbox"?Lt(o.nodes()[0].contentDocument.body):Lt("body"),p=i==="sandbox"?o.nodes()[0].contentDocument:document;f.init(),G.debug(s.db);const r=i==="sandbox"?l.select(`[id="${e}"]`):Lt(`[id="${e}"]`),x=s.db.getActors(),T=s.db.getCreatedActors(),u=s.db.getDestroyedActors(),g=s.db.getBoxes();let m=s.db.getActorKeys();const _=s.db.getMessages(),I=s.db.getDiagramTitle(),V=s.db.hasAtLeastOneBox(),S=s.db.hasAtLeastOneBoxWithTitle(),O=await M0(x,_,s);if(n.height=await C0(x,O,g),D.insertComputerIcon(r),D.insertDatabaseIcon(r),D.insertClockIcon(r),V&&(f.bumpVerticalPos(n.boxMargin),S&&f.bumpVerticalPos(g[0].textMaxHeight)),n.hideUnusedParticipants===!0){const y=new Set;_.forEach(P=>{y.add(P.from),y.add(P.to)}),m=m.filter(P=>y.has(P))}await A0(r,x,T,m,0,_,!1);const R=await O0(_,x,O,s);D.insertArrowHead(r),D.insertArrowCrossHead(r),D.insertArrowFilledHead(r),D.insertSequenceNumber(r);function q(y,P){const j=f.endActivation(y);j.starty+18>P&&(j.starty=P-6,P+=12),D.drawActivation(r,j,P,n,St(y.from.actor).length),f.insert(j.startx,P-10,j.stopx,P)}let z=1,J=1;const $=[],H=[];let U=0;for(const y of _){let P,j,rt;switch(y.type){case s.db.LINETYPE.NOTE:f.resetVerticalPos(),j=y.noteModel,await P0(r,j);break;case s.db.LINETYPE.ACTIVE_START:f.newActivation(y,r,x);break;case s.db.LINETYPE.ACTIVE_END:q(y,f.getVerticalPos());break;case s.db.LINETYPE.LOOP_START:it(R,y,n.boxMargin,n.boxMargin+n.boxTextMargin,A=>f.newLoop(A));break;case s.db.LINETYPE.LOOP_END:P=f.endLoop(),await D.drawLoop(r,P,"loop",n),f.bumpVerticalPos(P.stopy-f.getVerticalPos()),f.models.addLoop(P);break;case s.db.LINETYPE.RECT_START:it(R,y,n.boxMargin,n.boxMargin,A=>f.newLoop(void 0,A.message));break;case s.db.LINETYPE.RECT_END:P=f.endLoop(),H.push(P),f.models.addLoop(P),f.bumpVerticalPos(P.stopy-f.getVerticalPos());break;case s.db.LINETYPE.OPT_START:it(R,y,n.boxMargin,n.boxMargin+n.boxTextMargin,A=>f.newLoop(A));break;case s.db.LINETYPE.OPT_END:P=f.endLoop(),await D.drawLoop(r,P,"opt",n),f.bumpVerticalPos(P.stopy-f.getVerticalPos()),f.models.addLoop(P);break;case s.db.LINETYPE.ALT_START:it(R,y,n.boxMargin,n.boxMargin+n.boxTextMargin,A=>f.newLoop(A));break;case s.db.LINETYPE.ALT_ELSE:it(R,y,n.boxMargin+n.boxTextMargin,n.boxMargin,A=>f.addSectionToLoop(A));break;case s.db.LINETYPE.ALT_END:P=f.endLoop(),await D.drawLoop(r,P,"alt",n),f.bumpVerticalPos(P.stopy-f.getVerticalPos()),f.models.addLoop(P);break;case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:it(R,y,n.boxMargin,n.boxMargin+n.boxTextMargin,A=>f.newLoop(A)),f.saveVerticalPos();break;case s.db.LINETYPE.PAR_AND:it(R,y,n.boxMargin+n.boxTextMargin,n.boxMargin,A=>f.addSectionToLoop(A));break;case s.db.LINETYPE.PAR_END:P=f.endLoop(),await D.drawLoop(r,P,"par",n),f.bumpVerticalPos(P.stopy-f.getVerticalPos()),f.models.addLoop(P);break;case s.db.LINETYPE.AUTONUMBER:z=y.message.start||z,J=y.message.step||J,y.message.visible?s.db.enableSequenceNumbers():s.db.disableSequenceNumbers();break;case s.db.LINETYPE.CRITICAL_START:it(R,y,n.boxMargin,n.boxMargin+n.boxTextMargin,A=>f.newLoop(A));break;case s.db.LINETYPE.CRITICAL_OPTION:it(R,y,n.boxMargin+n.boxTextMargin,n.boxMargin,A=>f.addSectionToLoop(A));break;case s.db.LINETYPE.CRITICAL_END:P=f.endLoop(),await D.drawLoop(r,P,"critical",n),f.bumpVerticalPos(P.stopy-f.getVerticalPos()),f.models.addLoop(P);break;case s.db.LINETYPE.BREAK_START:it(R,y,n.boxMargin,n.boxMargin+n.boxTextMargin,A=>f.newLoop(A));break;case s.db.LINETYPE.BREAK_END:P=f.endLoop(),await D.drawLoop(r,P,"break",n),f.bumpVerticalPos(P.stopy-f.getVerticalPos()),f.models.addLoop(P);break;default:try{rt=y.msgModel,rt.starty=f.getVerticalPos(),rt.sequenceIndex=z,rt.sequenceVisible=s.db.showSequenceNumbers();const A=await L0(r,rt);N0(y,rt,A,U,x,T,u),$.push({messageModel:rt,lineStartY:A}),f.models.addMessage(rt)}catch(A){G.error("error while drawing message",A)}}[s.db.LINETYPE.SOLID_OPEN,s.db.LINETYPE.DOTTED_OPEN,s.db.LINETYPE.SOLID,s.db.LINETYPE.DOTTED,s.db.LINETYPE.SOLID_CROSS,s.db.LINETYPE.DOTTED_CROSS,s.db.LINETYPE.SOLID_POINT,s.db.LINETYPE.DOTTED_POINT].includes(y.type)&&(z=z+J),U++}G.debug("createdActors",T),G.debug("destroyedActors",u),await qt(r,x,m,!1);for(const y of $)await I0(r,y.messageModel,y.lineStartY,s);n.mirrorActors&&await qt(r,x,m,!0),H.forEach(y=>D.drawBackgroundRect(r,y)),pe(r,x,m,n);for(const y of f.models.boxes)y.height=f.getVerticalPos()-y.y,f.insert(y.x,y.y,y.x+y.width,y.height),y.startx=y.x,y.starty=y.y,y.stopx=y.startx+y.width,y.stopy=y.starty+y.height,y.stroke="rgb(0,0,0, 0.5)",await D.drawBox(r,y,n);V&&f.bumpVerticalPos(n.boxMargin);const F=ge(r,x,m,p),{bounds:W}=f.getBounds();let Z=W.stopy-W.starty;Z<F.maxHeight&&(Z=F.maxHeight);let K=Z+2*n.diagramMarginY;n.mirrorActors&&(K=K-n.boxMargin+n.bottomMarginAdj);let Q=W.stopx-W.startx;Q<F.maxWidth&&(Q=F.maxWidth);const tt=Q+2*n.diagramMarginX;I&&r.append("text").text(I).attr("x",(W.stopx-W.startx)/2-2*n.diagramMarginX).attr("y",-25),Ne(r,K,tt,n.useMaxWidth);const N=I?40:0;r.attr("viewBox",W.startx-n.diagramMarginX+" -"+(n.diagramMarginY+N)+" "+tt+" "+(K+N)),G.debug("models:",f.models)};async function M0(t,e,c){const s={};for(const i of e)if(t[i.to]&&t[i.from]){const a=t[i.to];if(i.placement===c.db.PLACEMENT.LEFTOF&&!a.prevActor||i.placement===c.db.PLACEMENT.RIGHTOF&&!a.nextActor)continue;const o=i.placement!==void 0,l=!o,p=o?Tt(n):xt(n),r=i.wrap?B.wrapLabel(i.message,n.width-2*n.wrapPadding,p):i.message,T=(nt(r)?await wt(i.message,st()):B.calculateTextDimensions(r,p)).width+2*n.wrapPadding;l&&i.from===a.nextActor?s[i.to]=v.getMax(s[i.to]||0,T):l&&i.from===a.prevActor?s[i.from]=v.getMax(s[i.from]||0,T):l&&i.from===i.to?(s[i.from]=v.getMax(s[i.from]||0,T/2),s[i.to]=v.getMax(s[i.to]||0,T/2)):i.placement===c.db.PLACEMENT.RIGHTOF?s[i.from]=v.getMax(s[i.from]||0,T):i.placement===c.db.PLACEMENT.LEFTOF?s[a.prevActor]=v.getMax(s[a.prevActor]||0,T):i.placement===c.db.PLACEMENT.OVER&&(a.prevActor&&(s[a.prevActor]=v.getMax(s[a.prevActor]||0,T/2)),a.nextActor&&(s[i.from]=v.getMax(s[i.from]||0,T/2)))}return G.debug("maxMessageWidthPerActor:",s),s}const R0=function(t){let e=0;const c=Wt(n);for(const s in t.links){const a=B.calculateTextDimensions(s,c).width+2*n.wrapPadding+2*n.boxMargin;e<a&&(e=a)}return e};async function C0(t,e,c){let s=0;for(const a of Object.keys(t)){const o=t[a];o.wrap&&(o.description=B.wrapLabel(o.description,n.width-2*n.wrapPadding,Wt(n)));const l=nt(o.description)?await wt(o.description,st()):B.calculateTextDimensions(o.description,Wt(n));o.width=o.wrap?n.width:v.getMax(n.width,l.width+2*n.wrapPadding),o.height=o.wrap?v.getMax(l.height,n.height):n.height,s=v.getMax(s,o.height)}for(const a in e){const o=t[a];if(!o)continue;const l=t[o.nextActor];if(!l){const T=e[a]+n.actorMargin-o.width/2;o.margin=v.getMax(T,n.actorMargin);continue}const r=e[a]+n.actorMargin-o.width/2-l.width/2;o.margin=v.getMax(r,n.actorMargin)}let i=0;return c.forEach(a=>{const o=xt(n);let l=a.actorKeys.reduce((x,T)=>x+=t[T].width+(t[T].margin||0),0);l-=2*n.boxTextMargin,a.wrap&&(a.name=B.wrapLabel(a.name,l-2*n.wrapPadding,o));const p=B.calculateTextDimensions(a.name,o);i=v.getMax(p.height,i);const r=v.getMax(l,p.width+2*n.wrapPadding);if(a.margin=n.boxTextMargin,l<r){const x=(r-l)/2;a.margin+=x}}),c.forEach(a=>a.textMaxHeight=i),v.getMax(s,n.height)}const D0=async function(t,e,c){const s=e[t.from].x,i=e[t.to].x,a=t.wrap&&t.message;let o=nt(t.message)?await wt(t.message,st()):B.calculateTextDimensions(a?B.wrapLabel(t.message,n.width,Tt(n)):t.message,Tt(n));const l={width:a?n.width:v.getMax(n.width,o.width+2*n.noteMargin),height:0,startx:e[t.from].x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===c.db.PLACEMENT.RIGHTOF?(l.width=a?v.getMax(n.width,o.width):v.getMax(e[t.from].width/2+e[t.to].width/2,o.width+2*n.noteMargin),l.startx=s+(e[t.from].width+n.actorMargin)/2):t.placement===c.db.PLACEMENT.LEFTOF?(l.width=a?v.getMax(n.width,o.width+2*n.noteMargin):v.getMax(e[t.from].width/2+e[t.to].width/2,o.width+2*n.noteMargin),l.startx=s-l.width+(e[t.from].width-n.actorMargin)/2):t.to===t.from?(o=B.calculateTextDimensions(a?B.wrapLabel(t.message,v.getMax(n.width,e[t.from].width),Tt(n)):t.message,Tt(n)),l.width=a?v.getMax(n.width,e[t.from].width):v.getMax(e[t.from].width,n.width,o.width+2*n.noteMargin),l.startx=s+(e[t.from].width-l.width)/2):(l.width=Math.abs(s+e[t.from].width/2-(i+e[t.to].width/2))+n.actorMargin,l.startx=s<i?s+e[t.from].width/2-n.actorMargin/2:i+e[t.to].width/2-n.actorMargin/2),a&&(l.message=B.wrapLabel(t.message,l.width-2*n.wrapPadding,Tt(n))),G.debug(`NM:[${l.startx},${l.stopx},${l.starty},${l.stopy}:${l.width},${l.height}=${t.message}]`),l},V0=function(t,e,c){if(![c.db.LINETYPE.SOLID_OPEN,c.db.LINETYPE.DOTTED_OPEN,c.db.LINETYPE.SOLID,c.db.LINETYPE.DOTTED,c.db.LINETYPE.SOLID_CROSS,c.db.LINETYPE.DOTTED_CROSS,c.db.LINETYPE.SOLID_POINT,c.db.LINETYPE.DOTTED_POINT].includes(t.type))return{};const[s,i]=jt(t.from,e),[a,o]=jt(t.to,e),l=s<=a,p=l?i:s;let r=l?a:o;const x=Math.abs(a-o)>2,T=_=>l?-_:_;t.from===t.to?r=p:(t.activate&&!x&&(r+=T(n.activationWidth/2-1)),[c.db.LINETYPE.SOLID_OPEN,c.db.LINETYPE.DOTTED_OPEN].includes(t.type)||(r+=T(3)));const u=[s,i,a,o],g=Math.abs(p-r);t.wrap&&t.message&&(t.message=B.wrapLabel(t.message,v.getMax(g+2*n.wrapPadding,n.width),xt(n)));const m=B.calculateTextDimensions(t.message,xt(n));return{width:v.getMax(t.wrap?0:m.width+2*n.wrapPadding,g+2*n.wrapPadding,n.width),height:0,startx:p,stopx:r,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,u),toBounds:Math.max.apply(null,u)}},O0=async function(t,e,c,s){const i={},a=[];let o,l,p;for(const r of t){switch(r.id=B.random({length:10}),r.type){case s.db.LINETYPE.LOOP_START:case s.db.LINETYPE.ALT_START:case s.db.LINETYPE.OPT_START:case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:case s.db.LINETYPE.CRITICAL_START:case s.db.LINETYPE.BREAK_START:a.push({id:r.id,msg:r.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case s.db.LINETYPE.ALT_ELSE:case s.db.LINETYPE.PAR_AND:case s.db.LINETYPE.CRITICAL_OPTION:r.message&&(o=a.pop(),i[o.id]=o,i[r.id]=o,a.push(o));break;case s.db.LINETYPE.LOOP_END:case s.db.LINETYPE.ALT_END:case s.db.LINETYPE.OPT_END:case s.db.LINETYPE.PAR_END:case s.db.LINETYPE.CRITICAL_END:case s.db.LINETYPE.BREAK_END:o=a.pop(),i[o.id]=o;break;case s.db.LINETYPE.ACTIVE_START:{const T=e[r.from?r.from.actor:r.to.actor],u=St(r.from?r.from.actor:r.to.actor).length,g=T.x+T.width/2+(u-1)*n.activationWidth/2,m={startx:g,stopx:g+n.activationWidth,actor:r.from.actor,enabled:!0};f.activations.push(m)}break;case s.db.LINETYPE.ACTIVE_END:{const T=f.activations.map(u=>u.actor).lastIndexOf(r.from.actor);delete f.activations.splice(T,1)[0]}break}r.placement!==void 0?(l=await D0(r,e,s),r.noteModel=l,a.forEach(T=>{o=T,o.from=v.getMin(o.from,l.startx),o.to=v.getMax(o.to,l.startx+l.width),o.width=v.getMax(o.width,Math.abs(o.from-o.to))-n.labelBoxWidth})):(p=V0(r,e,s),r.msgModel=p,p.startx&&p.stopx&&a.length>0&&a.forEach(T=>{if(o=T,p.startx===p.stopx){const u=e[r.from],g=e[r.to];o.from=v.getMin(u.x-p.width/2,u.x-u.width/2,o.from),o.to=v.getMax(g.x+p.width/2,g.x+u.width/2,o.to),o.width=v.getMax(o.width,Math.abs(o.to-o.from))-n.labelBoxWidth}else o.from=v.getMin(p.startx,o.from),o.to=v.getMax(p.stopx,o.to),o.width=v.getMax(o.width,p.width)-n.labelBoxWidth}))}return f.activations=[],G.debug("Loop type widths:",i),i},B0={bounds:f,drawActors:qt,drawActorsPopup:ge,setConf:xe,draw:S0},U0={parser:De,db:Qt,renderer:B0,styles:o0,init:({wrap:t})=>{Qt.setWrap(t)}};export{U0 as diagram};
import{c as rt,g as mt,s as kt,a as _t,b as xt,D as vt,C as bt,E as wt,j as St,as as Lt,h as G,t as Et}from"./slidev/Mermaid-sWhOKcCj.js";import{o as At}from"./ordinal-475e0c0c-BmOJQ37o.js";import{d as Tt}from"./Tableau10-31042135-CvOaoHrI.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./init-cc95ec8e-Gi6I4Gst.js";var tt=function(){var t=function(p,i,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,z=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(M.yy[$]=this.yy[$]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var P=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,O,T,V,e={},f,l,h,r;;){if(O=c[c.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=d()),T=x[O]&&x[O][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[O])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`:
`+S.showPosition()+`
Expecting `+r.join(", ")+", got '"+(this.terminals_[w]||w)+"'":k="Parse error on line "+(L+1)+": Unexpected "+(w==I?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(k,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:C,expected:r})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+w);switch(T[0]){case 1:c.push(w),b.push(S.yytext),y.push(S.yylloc),c.push(T[1]),w=null,A=S.yyleng,E=S.yytext,L=S.yylineno,C=S.yylloc;break;case 2:if(l=this.productions_[T[1]][1],e.$=b[b.length-l],e._$={first_line:y[y.length-(l||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(l||1)].first_column,last_column:y[y.length-1].last_column},P&&(e._$.range=[y[y.length-(l||1)].range[0],y[y.length-1].range[1]]),V=this.performAction.apply(e,[E,A,L,M.yy,T[1],b,y].concat(z)),typeof V<"u")return V;l&&(c=c.slice(0,-1*l*2),b=b.slice(0,-1*l),y=y.slice(0,-1*l)),c.push(this.productions_[T[1]][0]),b.push(e.$),y.push(e._$),h=x[c[c.length-2]][c[c.length-1]],c.push(h);break;case 3:return!0}}return!0}},_=function(){var p={EOF:1,parseError:function(o,c){if(this.yy.parser)this.yy.parser.parseError(o,c);else throw new Error(o)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===m.length?this.yylloc.first_column:0)+m[m.length-c.length].length-c[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+o+"^"},test_match:function(i,o){var c,m,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),m=i[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],c=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var y in b)this[y]=b[y];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,o,c,m;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),y=0;y<b.length;y++)if(c=this._input.match(this.rules[b[y]]),c&&(!o||c[0].length>o[0].length)){if(o=c,m=y,this.options.backtrack_lexer){if(i=this.test_match(c,b[y]),i!==!1)return i;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(i=this.test_match(o,b[m]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return o||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(o,c,m,b){switch(m){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return p}();u.lexer=_;function g(){this.yy={}}return g.prototype=u,u.Parser=g,new g}();tt.parser=tt;const H=tt;let q=[],Q=[],B={};const Mt=()=>{q=[],Q=[],B={},wt()};class Nt{constructor(n,s,a=0){this.source=n,this.target=s,this.value=a}}const Ct=(t,n,s)=>{q.push(new Nt(t,n,s))};class Pt{constructor(n){this.ID=n}}const It=t=>(t=St.sanitizeText(t,rt()),B[t]||(B[t]=new Pt(t),Q.push(B[t])),B[t]),Ot=()=>Q,$t=()=>q,zt=()=>({nodes:Q.map(t=>({id:t.ID})),links:q.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),Dt={nodesMap:B,getConfig:()=>rt().sankey,getNodes:Ot,getLinks:$t,getGraph:zt,addLink:Ct,findOrCreateNode:It,getAccTitle:mt,setAccTitle:kt,getAccDescription:_t,setAccDescription:xt,getDiagramTitle:vt,setDiagramTitle:bt,clear:Mt};function ot(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s<u||s===void 0&&u>=u)&&(s=u)}return s}function yt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function jt(t){return t.target.depth}function Bt(t){return t.depth}function Vt(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function Rt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,jt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return X(t.source,n.source)||t.index-n.index}function at(t,n){return X(t.target,n.target)||t.index-n.index}function X(t,n){return t.y0-n.y0}function J(t){return t.value}function Ut(t){return t.index}function Wt(t){return t.nodes}function Ft(t){return t.links}function ct(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ut({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function Gt(){let t=0,n=0,s=1,a=1,u=24,_=8,g,p=Ut,i=dt,o,c,m=Wt,b=Ft,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ut(e),e}x.update=function(e){return ut(e),e},x.nodeId=function(e){return arguments.length?(p=typeof e=="function"?e:Y(e),x):p},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=g=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:Y(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[p(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=ct(l,k)),typeof v!="object"&&(v=r.target=ct(l,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function L({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function A({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function N({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function I({nodes:e}){const f=ot(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=k,r.x0=t+k*l,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function z(e){const f=yt(e,l=>(a-n-(l.length-1)*g)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+g;for(const k of r.sourceLinks)k.width=k.value*f}h=(a-h+g)/(l.length+1);for(let r=0;r<l.length;++r){const k=l[r];k.y0+=h*(r+1),k.y1+=h*(r+1)}O(l)}}function S(e){const f=I(e);g=Math.min(_,(a-n)/(ot(f,l=>l.length)-1)),z(f);for(let l=0;l<y;++l){const h=Math.pow(.99,l),r=Math.max(1-h,(l+1)/y);$(f,h,r),M(f,h,r)}}function M(e,f,l){for(let h=1,r=e.length;h<r;++h){const k=e[h];for(const v of k){let R=0,D=0;for(const{source:W,value:K}of v.targetLinks){let F=K*(v.layer-W.layer);R+=T(W,v)*F,D+=F}if(!(D>0))continue;let U=(R/D-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(X),C(k,l)}}function $(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let R=0,D=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);R+=V(v,W)*F,D+=F}if(!(D>0))continue;let U=(R/D-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(X),C(k,l)}}function C(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-g,l-1,f),P(e,h.y1+g,l+1,f),d(e,a,e.length-1,f),P(e,n,0,f)}function P(e,f,l,h){for(;l<e.length;++l){const r=e[l],k=(f-r.y0)*h;k>1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+g}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-g}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(at);for(const{target:{targetLinks:l}}of e)l.sort(lt)}}function O(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(at),l.sort(lt)}function T(e,f){let l=e.y0-(e.sourceLinks.length-1)*g/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+g}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function V(e,f){let l=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+g}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var et=Math.PI,nt=2*et,j=1e-6,Yt=nt-j;function it(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function gt(){return new it}it.prototype=gt.prototype={constructor:it,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var _=this._x1,g=this._y1,p=s-t,i=a-n,o=_-t,c=g-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>j)if(!(Math.abs(c*p-i*o)>j)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-_,y=a-g,x=p*p+i*i,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(m),N=u*Math.tan((et-Math.acos((x+m-E)/(2*L*A)))/2),I=N/A,z=N/L;Math.abs(I-1)>j&&(this._+="L"+(t+I*o)+","+(n+I*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+z*p)+","+(this._y1=n+z*i)}},arc:function(t,n,s,a,u,_){t=+t,n=+n,s=+s,_=!!_;var g=s*Math.cos(a),p=s*Math.sin(a),i=t+g,o=n+p,c=1^_,m=_?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>j||Math.abs(this._y1-o)>j)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%nt+nt),m>Yt?this._+="A"+s+","+s+",0,1,"+c+","+(t-g)+","+(n-p)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>j&&(this._+="A"+s+","+s+",0,"+ +(m>=et)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ht(t){return function(){return t}}function Ht(t){return t[0]}function Xt(t){return t[1]}var qt=Array.prototype.slice;function Qt(t){return t.source}function Kt(t){return t.target}function Zt(t){var n=Qt,s=Kt,a=Ht,u=Xt,_=null;function g(){var p,i=qt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(_||(_=p=gt()),t(_,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),p)return _=null,p+""||null}return g.source=function(p){return arguments.length?(n=p,g):n},g.target=function(p){return arguments.length?(s=p,g):s},g.x=function(p){return arguments.length?(a=typeof p=="function"?p:ht(+p),g):a},g.y=function(p){return arguments.length?(u=typeof p=="function"?p:ht(+p),g):u},g.context=function(p){return arguments.length?(_=p??null,g):_},g}function Jt(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function te(){return Zt(Jt)}function ee(t){return[t.source.x1,t.y0]}function ne(t){return[t.target.x0,t.y1]}function ie(){return te().source(ee).target(ne)}const pt=class st{static next(n){return new st(n+ ++st.count)}constructor(n){this.id=n,this.href=`#${n}`}toString(){return"url("+this.href+")"}};pt.count=0;let ft=pt;const se={left:Bt,right:Vt,center:Rt,justify:dt},re=function(t,n,s,a){const{securityLevel:u,sankey:_}=rt(),g=Lt.sankey;let p;u==="sandbox"&&(p=G("#i"+n));const i=u==="sandbox"?G(p.nodes()[0].contentDocument.body):G("body"),o=u==="sandbox"?i.select(`[id="${n}"]`):G(`[id="${n}"]`),c=(_==null?void 0:_.width)??g.width,m=(_==null?void 0:_.height)??g.width,b=(_==null?void 0:_.useMaxWidth)??g.useMaxWidth,y=(_==null?void 0:_.nodeAlignment)??g.nodeAlignment,x=(_==null?void 0:_.prefix)??g.prefix,E=(_==null?void 0:_.suffix)??g.suffix,L=(_==null?void 0:_.showValues)??g.showValues,A=a.db.getGraph(),N=se[y];Gt().nodeId(d=>d.id).nodeWidth(10).nodePadding(10+(L?15:0)).nodeAlign(N).extent([[0,0],[c,m]])(A);const S=At(Tt);o.append("g").attr("class","nodes").selectAll(".node").data(A.nodes).join("g").attr("class","node").attr("id",d=>(d.uid=ft.next("node-")).id).attr("transform",function(d){return"translate("+d.x0+","+d.y0+")"}).attr("x",d=>d.x0).attr("y",d=>d.y0).append("rect").attr("height",d=>d.y1-d.y0).attr("width",d=>d.x1-d.x0).attr("fill",d=>S(d.id));const M=({id:d,value:w})=>L?`${d}
${x}${Math.round(w*100)/100}${E}`:d;o.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(A.nodes).join("text").attr("x",d=>d.x0<c/2?d.x1+6:d.x0-6).attr("y",d=>(d.y1+d.y0)/2).attr("dy",`${L?"0":"0.35"}em`).attr("text-anchor",d=>d.x0<c/2?"start":"end").text(M);const $=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(A.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),C=(_==null?void 0:_.linkColor)||"gradient";if(C==="gradient"){const d=$.append("linearGradient").attr("id",w=>(w.uid=ft.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",w=>w.source.x1).attr("x2",w=>w.target.x0);d.append("stop").attr("offset","0%").attr("stop-color",w=>S(w.source.id)),d.append("stop").attr("offset","100%").attr("stop-color",w=>S(w.target.id))}let P;switch(C){case"gradient":P=d=>d.uid;break;case"source":P=d=>S(d.source.id);break;case"target":P=d=>S(d.target.id);break;default:P=C}$.append("path").attr("d",ie()).attr("stroke",P).attr("stroke-width",d=>Math.max(1,d.width)),Et(void 0,o,0,b)},oe={draw:re},le=t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
`).trim(),ae=H.parse.bind(H);H.parse=t=>ae(le(t));const me={parser:H,db:Dt,renderer:oe};export{me as diagram};
import{c as Te,s as Ce,g as Fe,b as Me,a as De,l as Ne,E as Pe,h as oe,i as Ye,j as ke}from"./slidev/Mermaid-sWhOKcCj.js";import{G as Ue}from"./graph-af3d5df6-B9Rrt_D8.js";import{l as Be}from"./layout-6685625a-TirZJcn7.js";import{l as Qe}from"./line-65d70945-Bv9b7vLo.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";var ce=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],E=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],fe=[1,48],ye=[1,49],_e=[1,50],Ee=[1,51],ge=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],j=[1,69],z=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:fe,57:ye,58:_e,59:Ee,60:ge,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:Ee,60:ge,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:z,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:110,47:X,49:J},{5:j,30:z,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),g=Object.create(this.lexer),L={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(L.yy[ne]=this.yy[ne]);g.setInput(i,L.yy),L.yy.lexer=g,L.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var se=g.yylloc;s.push(se);var Oe=g.options&&g.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=r.pop()||g.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");g.showPosition?le="Parse error on line "+(Z+1)+`:
`+g.showPosition()+`
Expecting `+te.join(", ")+", got '"+(this.terminals_[I]||I)+"'":le="Parse error on line "+(Z+1)+": Unexpected "+(I==Ie?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(le,{text:g.match,token:this.terminals_[I]||I,line:g.yylineno,loc:se,expected:te})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+I);switch(S[0]){case 1:a.push(I),f.push(g.yytext),s.push(g.yylloc),a.push(S[1]),I=null,me=g.yyleng,_=g.yytext,Z=g.yylineno,se=g.yylloc;break;case 2:if(w=this.productions_[S[1]][1],Q.$=f[f.length-w],Q._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},Oe&&(Q._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),ae=this.performAction.apply(Q,[_,me,Z,L.yy,S[1],f,s].concat(qe)),typeof ae<"u")return ae;w&&(a=a.slice(0,-1*w*2),f=f.slice(0,-1*w),s=s.slice(0,-1*w)),a.push(this.productions_[S[1]][0]),f.push(Q.$),s.push(Q._$),be=W[a[a.length-2]][a[a.length-1]],a.push(be);break;case 3:return!0}}return!0}},$e=function(){var V={EOF:1,parseError:function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},setInput:function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var n=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+n+"^"},test_match:function(i,n){var a,r,f;if(this.options.backtrack_lexer&&(f={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(f.yylloc.range=this.yylloc.range.slice(0))),r=i[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],a=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var s in f)this[s]=f[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,n,a,r;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),s=0;s<f.length;s++)if(a=this._input.match(this.rules[f[s]]),a&&(!n||a[0].length>n[0].length)){if(n=a,r=s,this.options.backtrack_lexer){if(i=this.test_match(a,f[s]),i!==!1)return i;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(i=this.test_match(n,f[r]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,a,r,f){switch(r){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:return a.yytext=a.yytext.trim(),62}},rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50],inclusive:!0}}};return V}();ie.lexer=$e;function re(){this.yy={}}return re.prototype=ie,ie.Parser=re,new re}();ce.parser=ce;const He=ce;let ue=[],b={},K={},q={},G={};const We={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},Ke={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},Ge={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},je={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},ze=(e,t)=>(K[e]===void 0&&(K[e]={name:e,type:t,id:b.id,text:b.text,risk:b.risk,verifyMethod:b.verifyMethod}),b={},K[e]),Xe=()=>K,Je=e=>{b!==void 0&&(b.id=e)},Ze=e=>{b!==void 0&&(b.text=e)},et=e=>{b!==void 0&&(b.risk=e)},tt=e=>{b!==void 0&&(b.verifyMethod=e)},it=e=>(G[e]===void 0&&(G[e]={name:e,type:q.type,docRef:q.docRef},Ne.info("Added new requirement: ",e)),q={},G[e]),rt=()=>G,nt=e=>{q!==void 0&&(q.type=e)},st=e=>{q!==void 0&&(q.docRef=e)},at=(e,t,l)=>{ue.push({type:e,src:t,dst:l})},lt=()=>ue,ot=()=>{ue=[],b={},K={},q={},G={},Pe()},ct={RequirementType:We,RiskLevel:Ke,VerifyType:Ge,Relationships:je,getConfig:()=>Te().req,addRequirement:ze,getRequirements:Xe,setNewReqId:Je,setNewReqText:Ze,setNewReqRisk:et,setNewReqVerifyMethod:tt,setAccTitle:Ce,getAccTitle:Fe,setAccDescription:Me,getAccDescription:De,addElement:it,getElements:rt,setNewElementType:nt,setNewElementDocRef:st,addRelationship:at,getRelationships:lt,clear:ot},ht=e=>`
marker {
fill: ${e.relationColor};
stroke: ${e.relationColor};
}
marker.cross {
stroke: ${e.lineColor};
}
svg {
font-family: ${e.fontFamily};
font-size: ${e.fontSize};
}
.reqBox {
fill: ${e.requirementBackground};
fill-opacity: 1.0;
stroke: ${e.requirementBorderColor};
stroke-width: ${e.requirementBorderSize};
}
.reqTitle, .reqLabel{
fill: ${e.requirementTextColor};
}
.reqLabelBox {
fill: ${e.relationLabelBackground};
fill-opacity: 1.0;
}
.req-title-line {
stroke: ${e.requirementBorderColor};
stroke-width: ${e.requirementBorderSize};
}
.relationshipLine {
stroke: ${e.relationColor};
stroke-width: 1;
}
.relationshipLabel {
fill: ${e.relationLabelColor};
}
`,ut=ht,he={CONTAINS:"contains",ARROW:"arrow"},dt=(e,t)=>{let l=e.append("defs").append("marker").attr("id",he.CONTAINS+"_line_ending").attr("refX",0).attr("refY",t.line_height/2).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("g");l.append("circle").attr("cx",t.line_height/2).attr("cy",t.line_height/2).attr("r",t.line_height/2).attr("fill","none"),l.append("line").attr("x1",0).attr("x2",t.line_height).attr("y1",t.line_height/2).attr("y2",t.line_height/2).attr("stroke-width",1),l.append("line").attr("y1",0).attr("y2",t.line_height).attr("x1",t.line_height/2).attr("x2",t.line_height/2).attr("stroke-width",1),e.append("defs").append("marker").attr("id",he.ARROW+"_line_ending").attr("refX",t.line_height).attr("refY",.5*t.line_height).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("path").attr("d",`M0,0
L${t.line_height},${t.line_height/2}
M${t.line_height},${t.line_height/2}
L0,${t.line_height}`).attr("stroke-width",1)},xe={ReqMarkers:he,insertLineEndings:dt};let y={},Se=0;const Ae=(e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",y.rect_min_width+"px").attr("height",y.rect_min_height+"px"),ve=(e,t,l)=>{let c=y.rect_min_width/2,u=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",c).attr("y",y.rect_padding).attr("dominant-baseline","hanging"),d=0;l.forEach(E=>{d==0?u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",0).text(E):u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",y.line_height*.75).text(E),d++});let p=1.5*y.rect_padding,h=d*y.line_height*.75,o=p+h;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",y.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:u,y:o}},we=(e,t,l,c)=>{let u=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",y.rect_padding).attr("y",c).attr("dominant-baseline","hanging"),d=0;const p=30;let h=[];return l.forEach(o=>{let E=o.length;for(;E>p&&d<3;){let R=o.substring(0,p);o=o.substring(p,o.length),E=o.length,h[h.length]=R,d++}if(d==3){let R=h[h.length-1];h[h.length-1]=R.substring(0,R.length-4)+"..."}else h[h.length]=o;d=0}),h.forEach(o=>{u.append("tspan").attr("x",y.rect_padding).attr("dy",y.line_height).text(o)}),u},pt=(e,t,l,c)=>{const u=t.node().getTotalLength(),d=t.node().getPointAtLength(u*.5),p="rel"+Se;Se++;const o=e.append("text").attr("class","req relationshipLabel").attr("id",p).attr("x",d.x).attr("y",d.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(c).node().getBBox();e.insert("rect","#"+p).attr("class","req reqLabelBox").attr("x",d.x-o.width/2).attr("y",d.y-o.height/2).attr("width",o.width).attr("height",o.height).attr("fill","white").attr("fill-opacity","85%")},ft=function(e,t,l,c,u){const d=l.edge(H(t.src),H(t.dst)),p=Qe().x(function(o){return o.x}).y(function(o){return o.y}),h=e.insert("path","#"+c).attr("class","er relationshipLine").attr("d",p(d.points)).attr("fill","none");t.type==u.db.Relationships.CONTAINS?h.attr("marker-start","url("+ke.getUrl(y.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(h.attr("stroke-dasharray","10,7"),h.attr("marker-end","url("+ke.getUrl(y.arrowMarkerAbsolute)+"#"+xe.ReqMarkers.ARROW+"_line_ending)")),pt(e,h,y,`<<${t.type}>>`)},yt=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];c=H(c),Ne.info("Added new requirement: ",c);const d=l.append("g").attr("id",c),p="req-"+c,h=Ae(d,p);let o=ve(d,c+"_title",[`<<${u.type}>>`,`${u.name}`]);we(d,c+"_body",[`Id: ${u.id}`,`Text: ${u.text}`,`Risk: ${u.risk}`,`Verification: ${u.verifyMethod}`],o.y);const E=h.node().getBBox();t.setNode(c,{width:E.width,height:E.height,shape:"rect",id:c})})},_t=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];const d=H(c),p=l.append("g").attr("id",d),h="element-"+d,o=Ae(p,h);let E=ve(p,h+"_title",["<<Element>>",`${c}`]);we(p,h+"_body",[`Type: ${u.type||"Not Specified"}`,`Doc Ref: ${u.docRef||"None"}`],E.y);const R=o.node().getBBox();t.setNode(d,{width:R.width,height:R.height,shape:"rect",id:d})})},Et=(e,t)=>(e.forEach(function(l){let c=H(l.src),u=H(l.dst);t.setEdge(c,u,{relationship:l})}),e),gt=function(e,t){t.nodes().forEach(function(l){l!==void 0&&t.node(l)!==void 0&&(e.select("#"+l),e.select("#"+l).attr("transform","translate("+(t.node(l).x-t.node(l).width/2)+","+(t.node(l).y-t.node(l).height/2)+" )"))})},H=e=>e.replace(/\s/g,"").replace(/\./g,"_"),Rt=(e,t,l,c)=>{y=Te().requirement;const u=y.securityLevel;let d;u==="sandbox"&&(d=oe("#i"+t));const h=(u==="sandbox"?oe(d.nodes()[0].contentDocument.body):oe("body")).select(`[id='${t}']`);xe.insertLineEndings(h,y);const o=new Ue({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:y.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let E=c.db.getRequirements(),R=c.db.getElements(),A=c.db.getRelationships();yt(E,o,h),_t(R,o,h),Et(A,o),Be(o),gt(h,o),A.forEach(function(x){ft(h,x,o,t,c)});const T=y.rect_padding,N=h.node().getBBox(),v=N.width+T*2,k=N.height+T*2;Ye(h,k,v,y.useMaxWidth),h.attr("viewBox",`${N.x-T} ${N.y-T} ${v} ${k}`)},mt={draw:Rt},$t={parser:He,db:ct,renderer:mt,styles:ut};export{$t as diagram};
import{Z as vt,c as yt,V as D,l as ot,s as Lt,g as Ct,C as zt,D as bt,a as Et,b as Dt,E as It,h as gt,i as Bt,d as wt}from"./slidev/Mermaid-sWhOKcCj.js";import{l as _t}from"./linear-d94cf28d-BOPJ1JvI.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./init-cc95ec8e-Gi6I4Gst.js";var pt=function(){var e=function(K,n,r,l){for(r=r||{},l=K.length;l--;r[K[l]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],_=[1,33],m=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:o.addPoint(a[u-3],a[u-1],a[u]);break;case 18:o.setXAxisLeftText(a[u-2]),o.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",o.setXAxisLeftText(a[u-1]);break;case 20:o.setXAxisLeftText(a[u]);break;case 21:o.setYAxisBottomText(a[u-2]),o.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",o.setYAxisBottomText(a[u-1]);break;case 23:o.setYAxisBottomText(a[u]);break;case 24:o.setQuadrant1Text(a[u]);break;case 25:o.setQuadrant2Text(a[u]);break;case 26:o.setQuadrant3Text(a[u]);break;case 27:o.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=r,l}},parse:function(n){var r=this,l=[0],o=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=o.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,mt,lt;;){if(J=l[l.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";lt=[];for(rt in et[J])this.terminals_[rt]&&rt>St&<.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`:
`+E.showPosition()+`
Expecting `+lt.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ft="Parse error on line "+(st+1)+": Unexpected "+(W==Tt?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(ft,{text:E.match,token:this.terminals_[W]||W,line:E.yylineno,loc:ut,expected:lt})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+W);switch(H[0]){case 1:l.push(W),q.push(E.yytext),a.push(E.yylloc),l.push(H[1]),W=null,qt=E.yyleng,u=E.yytext,st=E.yylineno,ut=E.yylloc;break;case 2:if($=this.productions_[H[1]][1],tt.$=q[q.length-$],tt._$={first_line:a[a.length-($||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-($||1)].first_column,last_column:a[a.length-1].last_column},Ft&&(tt._$.range=[a[a.length-($||1)].range[0],a[a.length-1].range[1]]),xt=this.performAction.apply(tt,[u,qt,st,Z.yy,H[1],q,a].concat(kt)),typeof xt<"u")return xt;$&&(l=l.slice(0,-1*$*2),q=q.slice(0,-1*$),a=a.slice(0,-1*$)),l.push(this.productions_[H[1]][0]),q.push(tt.$),a.push(tt._$),mt=et[l[l.length-2]][l[l.length-1]],l.push(mt);break;case 3:return!0}}return!0}},At=function(){var K={EOF:1,parseError:function(r,l){if(this.yy.parser)this.yy.parser.parseError(r,l);else throw new Error(r)},setInput:function(n,r){return this.yy=r||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var r=n.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var r=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var q=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===o.length?this.yylloc.first_column:0)+o[o.length-l.length].length-l[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),r=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
`+r+"^"},test_match:function(n,r){var l,o,q;if(this.options.backtrack_lexer&&(q={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(q.yylloc.range=this.yylloc.range.slice(0))),o=n[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],l=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var a in q)this[a]=q[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,r,l,o;this._more||(this.yytext="",this.match="");for(var q=this._currentRules(),a=0;a<q.length;a++)if(l=this._input.match(this.rules[q[a]]),l&&(!r||l[0].length>r[0].length)){if(r=l,o=a,this.options.backtrack_lexer){if(n=this.test_match(l,q[a]),n!==!1)return n;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(n=this.test_match(r,q[o]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,l,o,q){switch(o){case 0:break;case 1:break;case 2:return 32;case 3:break;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 22:this.popState();break;case 23:this.begin("string");break;case 24:this.popState();break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 28:this.popState();break;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:return 46;case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return K}();ht.lexer=At;function ct(){this.yy={}}return ct.prototype=ht,ht.Parser=ct,new ct}();pt.parser=pt;const Rt=pt,R=vt();class Vt{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var s,h,x,f,d,c,g,i,y,p,B,N,V,I,b,M,X,C;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((s=D.quadrantChart)==null?void 0:s.chartWidth)||500,chartWidth:((h=D.quadrantChart)==null?void 0:h.chartHeight)||500,titlePadding:((x=D.quadrantChart)==null?void 0:x.titlePadding)||10,titleFontSize:((f=D.quadrantChart)==null?void 0:f.titleFontSize)||20,quadrantPadding:((d=D.quadrantChart)==null?void 0:d.quadrantPadding)||5,xAxisLabelPadding:((c=D.quadrantChart)==null?void 0:c.xAxisLabelPadding)||5,yAxisLabelPadding:((g=D.quadrantChart)==null?void 0:g.yAxisLabelPadding)||5,xAxisLabelFontSize:((i=D.quadrantChart)==null?void 0:i.xAxisLabelFontSize)||16,yAxisLabelFontSize:((y=D.quadrantChart)==null?void 0:y.yAxisLabelFontSize)||16,quadrantLabelFontSize:((p=D.quadrantChart)==null?void 0:p.quadrantLabelFontSize)||16,quadrantTextTopPadding:((B=D.quadrantChart)==null?void 0:B.quadrantTextTopPadding)||5,pointTextPadding:((N=D.quadrantChart)==null?void 0:N.pointTextPadding)||5,pointLabelFontSize:((V=D.quadrantChart)==null?void 0:V.pointLabelFontSize)||12,pointRadius:((I=D.quadrantChart)==null?void 0:I.pointRadius)||5,xAxisPosition:((b=D.quadrantChart)==null?void 0:b.xAxisPosition)||"top",yAxisPosition:((M=D.quadrantChart)==null?void 0:M.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((X=D.quadrantChart)==null?void 0:X.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((C=D.quadrantChart)==null?void 0:C.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:R.quadrant1Fill,quadrant2Fill:R.quadrant2Fill,quadrant3Fill:R.quadrant3Fill,quadrant4Fill:R.quadrant4Fill,quadrant1TextFill:R.quadrant1TextFill,quadrant2TextFill:R.quadrant2TextFill,quadrant3TextFill:R.quadrant3TextFill,quadrant4TextFill:R.quadrant4TextFill,quadrantPointFill:R.quadrantPointFill,quadrantPointTextFill:R.quadrantPointTextFill,quadrantXAxisTextFill:R.quadrantXAxisTextFill,quadrantYAxisTextFill:R.quadrantYAxisTextFill,quadrantTitleFill:R.quadrantTitleFill,quadrantInternalBorderStrokeFill:R.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:R.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),ot.info("clear called")}setData(s){this.data={...this.data,...s}}addPoints(s){this.data.points=[...s,...this.data.points]}setConfig(s){ot.trace("setConfig called with: ",s),this.config={...this.config,...s}}setThemeConfig(s){ot.trace("setThemeConfig called with: ",s),this.themeConfig={...this.themeConfig,...s}}calculateSpace(s,h,x,f){const d=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,c={top:s==="top"&&h?d:0,bottom:s==="bottom"&&h?d:0},g=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,i={left:this.config.yAxisPosition==="left"&&x?g:0,right:this.config.yAxisPosition==="right"&&x?g:0},y=this.config.titleFontSize+this.config.titlePadding*2,p={top:f?y:0},B=this.config.quadrantPadding+i.left,N=this.config.quadrantPadding+c.top+p.top,V=this.config.chartWidth-this.config.quadrantPadding*2-i.left-i.right,I=this.config.chartHeight-this.config.quadrantPadding*2-c.top-c.bottom-p.top,b=V/2,M=I/2;return{xAxisSpace:c,yAxisSpace:i,titleSpace:p,quadrantSpace:{quadrantLeft:B,quadrantTop:N,quadrantWidth:V,quadrantHalfWidth:b,quadrantHeight:I,quadrantHalfHeight:M}}}getAxisLabels(s,h,x,f){const{quadrantSpace:d,titleSpace:c}=f,{quadrantHalfHeight:g,quadrantHeight:i,quadrantLeft:y,quadrantHalfWidth:p,quadrantTop:B,quadrantWidth:N}=d,V=!!this.data.xAxisRightText,I=!!this.data.yAxisTopText,b=[];return this.data.xAxisLeftText&&h&&b.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:y+(V?p/2:0),y:s==="top"?this.config.xAxisLabelPadding+c.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:V?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&h&&b.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:y+p+(V?p/2:0),y:s==="top"?this.config.xAxisLabelPadding+c.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:V?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&x&&b.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+y+N+this.config.quadrantPadding,y:B+i-(I?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&x&&b.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+y+N+this.config.quadrantPadding,y:B+g-(I?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),b}getQuadrants(s){const{quadrantSpace:h}=s,{quadrantHalfHeight:x,quadrantLeft:f,quadrantHalfWidth:d,quadrantTop:c}=h,g=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+d,y:c,width:d,height:x,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:c,width:d,height:x,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:c+x,width:d,height:x,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+d,y:c+x,width:d,height:x,fill:this.themeConfig.quadrant4Fill}];for(const i of g)i.text.x=i.x+i.width/2,this.data.points.length===0?(i.text.y=i.y+i.height/2,i.text.horizontalPos="middle"):(i.text.y=i.y+this.config.quadrantTextTopPadding,i.text.horizontalPos="top");return g}getQuadrantPoints(s){const{quadrantSpace:h}=s,{quadrantHeight:x,quadrantLeft:f,quadrantTop:d,quadrantWidth:c}=h,g=_t().domain([0,1]).range([f,c+f]),i=_t().domain([0,1]).range([x+d,d]);return this.data.points.map(p=>({x:g(p.x),y:i(p.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:p.text,fill:this.themeConfig.quadrantPointTextFill,x:g(p.x),y:i(p.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}}))}getBorders(s){const h=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:x}=s,{quadrantHalfHeight:f,quadrantHeight:d,quadrantLeft:c,quadrantHalfWidth:g,quadrantTop:i,quadrantWidth:y}=x;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c-h,y1:i,x2:c+y+h,y2:i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c+y,y1:i+h,x2:c+y,y2:i+d-h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c-h,y1:i+d,x2:c+y+h,y2:i+d},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c,y1:i+h,x2:c,y2:i+d-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:c+g,y1:i+h,x2:c+g,y2:i+d-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:c+h,y1:i+f,x2:c+y-h,y2:i+f}]}getTitle(s){if(s)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const s=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),h=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),x=this.config.showTitle&&!!this.data.titleText,f=this.data.points.length>0?"bottom":this.config.xAxisPosition,d=this.calculateSpace(f,s,h,x);return{points:this.getQuadrantPoints(d),quadrants:this.getQuadrants(d),axisLabels:this.getAxisLabels(f,s,h,d),borderLines:this.getBorders(d),title:this.getTitle(x)}}}const Wt=yt();function G(e){return wt(e.trim(),Wt)}const w=new Vt;function Nt(e){w.setData({quadrant1Text:G(e.text)})}function Ut(e){w.setData({quadrant2Text:G(e.text)})}function Qt(e){w.setData({quadrant3Text:G(e.text)})}function Ht(e){w.setData({quadrant4Text:G(e.text)})}function Mt(e){w.setData({xAxisLeftText:G(e.text)})}function Xt(e){w.setData({xAxisRightText:G(e.text)})}function Ot(e){w.setData({yAxisTopText:G(e.text)})}function Yt(e){w.setData({yAxisBottomText:G(e.text)})}function $t(e,s,h){w.addPoints([{x:s,y:h,text:G(e.text)}])}function jt(e){w.setConfig({chartWidth:e})}function Gt(e){w.setConfig({chartHeight:e})}function Kt(){const e=yt(),{themeVariables:s,quadrantChart:h}=e;return h&&w.setConfig(h),w.setThemeConfig({quadrant1Fill:s.quadrant1Fill,quadrant2Fill:s.quadrant2Fill,quadrant3Fill:s.quadrant3Fill,quadrant4Fill:s.quadrant4Fill,quadrant1TextFill:s.quadrant1TextFill,quadrant2TextFill:s.quadrant2TextFill,quadrant3TextFill:s.quadrant3TextFill,quadrant4TextFill:s.quadrant4TextFill,quadrantPointFill:s.quadrantPointFill,quadrantPointTextFill:s.quadrantPointTextFill,quadrantXAxisTextFill:s.quadrantXAxisTextFill,quadrantYAxisTextFill:s.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:s.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:s.quadrantInternalBorderStrokeFill,quadrantTitleFill:s.quadrantTitleFill}),w.setData({titleText:bt()}),w.build()}const Zt=function(){w.clear(),It()},Jt={setWidth:jt,setHeight:Gt,setQuadrant1Text:Nt,setQuadrant2Text:Ut,setQuadrant3Text:Qt,setQuadrant4Text:Ht,setXAxisLeftText:Mt,setXAxisRightText:Xt,setYAxisTopText:Ot,setYAxisBottomText:Yt,addPoint:$t,getQuadrantData:Kt,clear:Zt,setAccTitle:Lt,getAccTitle:Ct,setDiagramTitle:zt,getDiagramTitle:bt,getAccDescription:Et,setAccDescription:Dt},te=(e,s,h,x)=>{var f,d,c;function g(t){return t==="top"?"hanging":"middle"}function i(t){return t==="left"?"start":"middle"}function y(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}const p=yt();ot.debug(`Rendering quadrant chart
`+e);const B=p.securityLevel;let N;B==="sandbox"&&(N=gt("#i"+s));const I=(B==="sandbox"?gt(N.nodes()[0].contentDocument.body):gt("body")).select(`[id="${s}"]`),b=I.append("g").attr("class","main"),M=((f=p.quadrantChart)==null?void 0:f.chartWidth)||500,X=((d=p.quadrantChart)==null?void 0:d.chartHeight)||500;Bt(I,X,M,((c=p.quadrantChart)==null?void 0:c.useMaxWidth)||!0),I.attr("viewBox","0 0 "+M+" "+X),x.db.setHeight(X),x.db.setWidth(M);const C=x.db.getQuadrantData(),it=b.append("g").attr("class","quadrants"),at=b.append("g").attr("class","border"),nt=b.append("g").attr("class","data-points"),U=b.append("g").attr("class","labels"),Q=b.append("g").attr("class","title");C.title&&Q.append("text").attr("x",0).attr("y",0).attr("fill",C.title.fill).attr("font-size",C.title.fontSize).attr("dominant-baseline",g(C.title.horizontalPos)).attr("text-anchor",i(C.title.verticalPos)).attr("transform",y(C.title)).text(C.title.text),C.borderLines&&at.selectAll("line").data(C.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth);const T=it.selectAll("g.quadrant").data(C.quadrants).enter().append("g").attr("class","quadrant");T.append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),T.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>g(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>y(t.text)).text(t=>t.text.text),U.selectAll("g.label").data(C.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>g(t.horizontalPos)).attr("text-anchor",t=>i(t.verticalPos)).attr("transform",t=>y(t));const m=nt.selectAll("g.data-point").data(C.points).enter().append("g").attr("class","data-point");m.append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill),m.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>g(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>y(t.text))},ee={draw:te},he={parser:Rt,db:Jt,renderer:ee,styles:()=>""};export{he as diagram};
#print-content{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark #print-content{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.print-slide-container{position:relative;--un-translate-x:0;--un-translate-y:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));break-after:page;overflow:hidden}html.print,html.print body,html.print #app{height:auto;overflow:auto}html.print #page-root{height:auto;overflow:hidden}html.print *{-webkit-print-color-adjust:exact}html.print{width:100%;height:100%;overflow:visible}html.print body{margin:0 auto;border:0;padding:0;float:none;overflow:visible}
.range[data-v-52a29648]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent}.range[data-v-52a29648]::-webkit-slider-thumb{-webkit-appearance:none;height:100%;width:var(--thumb-width, .5rem)}.range[data-v-52a29648]::-moz-range-thumb{height:100%;width:var(--thumb-width, .5rem)}.slidev-presenter[data-v-d0ba6bbb]{--slidev-controls-foreground: current}.timer-btn[data-v-d0ba6bbb]:hover>:first-child{opacity:0}.timer-btn[data-v-d0ba6bbb]:hover>:last-child{opacity:1}.section-title[data-v-d0ba6bbb]{padding:.5rem 1rem;font-size:1.25rem;line-height:1.75rem}.grid-container[data-v-d0ba6bbb]{background-color:#9ca3af33;height:100%;width:100%;display:grid;gap:1px 1px}.grid-container.layout1[data-v-d0ba6bbb]{grid-template-columns:1fr 1fr;grid-template-rows:2fr 1fr min-content;grid-template-areas:"main main" "note next" "bottom bottom"}.grid-container.layout2[data-v-d0ba6bbb]{grid-template-columns:3fr 2fr;grid-template-rows:2fr 1fr min-content;grid-template-areas:"note main" "note next" "bottom bottom"}@media (max-aspect-ratio: 3/5){.grid-container.layout1[data-v-d0ba6bbb]{grid-template-columns:1fr;grid-template-rows:1fr 1fr 1fr min-content;grid-template-areas:"main" "note" "next" "bottom"}}@media (min-aspect-ratio: 1/1){.grid-container.layout1[data-v-d0ba6bbb]{grid-template-columns:1fr 1.1fr .9fr;grid-template-rows:1fr 2fr min-content;grid-template-areas:"main main next" "main main note" "bottom bottom bottom"}}.progress-bar[data-v-d0ba6bbb]{position:fixed;left:0;right:0;top:0}.grid-section[data-v-d0ba6bbb]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .grid-section[data-v-d0ba6bbb]{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.grid-section.top[data-v-d0ba6bbb]{grid-area:top}.grid-section.main[data-v-d0ba6bbb]{grid-area:main}.grid-section.next[data-v-d0ba6bbb]{grid-area:next}.grid-section.note[data-v-d0ba6bbb]{grid-area:note}.grid-section.bottom[data-v-d0ba6bbb]{grid-area:bottom}
.slidev-info-dialog{max-width:37.5rem;padding:1rem!important}
import{V as at,C as lt,D as ot,s as ct,g as ht,b as ut,a as yt,E as ft,d as pt,c as et,l as it,W as gt,U as dt,X as mt,i as _t,Y as H}from"./slidev/Mermaid-sWhOKcCj.js";import{d as tt}from"./arc-5aa99581-BSv9xTON.js";import{o as xt}from"./ordinal-475e0c0c-BmOJQ37o.js";import{a as kt}from"./array-b7dcf730-BKyUJesY.js";import{c as F}from"./path-39bad7e2-CbwjOpE9.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./init-cc95ec8e-Gi6I4Gst.js";function vt(e,u){return u<e?-1:u>e?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=vt,E=null,p=F(0),g=F(H),A=F(0);function y(a){var l,d=(a=kt(a)).length,m,I,T=0,_=new Array(d),v=new Array(d),c=+p.apply(this,arguments),$=Math.min(H,Math.max(-H,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs($)/d,A.apply(this,arguments)),b=w*($<0?-1:1),t;for(l=0;l<d;++l)(t=v[_[l]=l]=+e(a[l],l,a))>0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(v[i],v[n])}):E!=null&&_.sort(function(i,n){return E(a[i],a[n])}),l=0,I=T?($-d*b)/T:0;l<d;++l,c=O)m=_[l],t=v[m],O=c+(t>0?t*I:0)+b,v[m]={data:a[m],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return v}return y.value=function(a){return arguments.length?(e=typeof a=="function"?a:F(+a),y):e},y.sortValues=function(a){return arguments.length?(u=a,E=null,y):u},y.sort=function(a){return arguments.length?(E=a,u=null,y):E},y.startAngle=function(a){return arguments.length?(p=typeof a=="function"?a:F(+a),y):p},y.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:F(+a),y):g},y.padAngle=function(a){return arguments.length?(A=typeof a=="function"?a:F(+a),y):A},y}var J=function(){var e=function(b,t,i,n){for(i=i||{},n=b.length;n--;i[b[n]]=t);return i},u=[1,3],E=[1,4],p=[1,5],g=[1,6],A=[1,10,12,14,16,18,19,20,21,22],y=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],d=[2,7],m=[1,12],I=[1,13],T=[1,14],_=[1,15],v=[1,16],c=[1,17],$={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,V){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:E,21:p,22:g},{1:[3]},{3:7,4:2,5:u,20:E,21:p,22:g},e(A,y,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,d,{8:10,9:11,1:[2,2],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,y,{6:18}),e(A,[2,5]),{4:19,20:E,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,d,{8:10,9:11,1:[2,3],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],V=this.table,x="",f=0,P=0,R=2,M=1,Y=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(N.yy[B]=this.yy[B]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var X=h.yylloc;s.push(X);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var k,L,S,Z,z={},W,D,Q,j;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),S=V[L]&&V[L][k]),typeof S>"u"||!S.length||!S[0]){var q="";j=[];for(W in V[L])this.terminals_[W]&&W>R&&j.push("'"+this.terminals_[W]+"'");h.showPosition?q="Parse error on line "+(f+1)+`:
`+h.showPosition()+`
Expecting `+j.join(", ")+", got '"+(this.terminals_[k]||k)+"'":q="Parse error on line "+(f+1)+": Unexpected "+(k==M?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(q,{text:h.match,token:this.terminals_[k]||k,line:h.yylineno,loc:X,expected:j})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+k);switch(S[0]){case 1:n.push(k),o.push(h.yytext),s.push(h.yylloc),n.push(S[1]),k=null,P=h.yyleng,x=h.yytext,f=h.yylineno,X=h.yylloc;break;case 2:if(D=this.productions_[S[1]][1],z.$=o[o.length-D],z._$={first_line:s[s.length-(D||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(D||1)].first_column,last_column:s[s.length-1].last_column},st&&(z._$.range=[s[s.length-(D||1)].range[0],s[s.length-1].range[1]]),Z=this.performAction.apply(z,[x,P,f,N.yy,S[1],o,s].concat(Y)),typeof Z<"u")return Z;D&&(n=n.slice(0,-1*D*2),o=o.slice(0,-1*D),s=s.slice(0,-1*D)),n.push(this.productions_[S[1]][0]),o.push(z.$),s.push(z._$),Q=V[n[n.length-2]][n[n.length-1]],n.push(Q);break;case 3:return!0}}return!0}},O=function(){var b={EOF:1,parseError:function(i,n){if(this.yy.parser)this.yy.parser.parseError(i,n);else throw new Error(i)},setInput:function(t,i){return this.yy=i||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var i=t.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var i=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),i=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+i+"^"},test_match:function(t,i){var n,r,o;if(this.options.backtrack_lexer&&(o={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(o.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in o)this[s]=o[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,i,n,r;this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),s=0;s<o.length;s++)if(n=this._input.match(this.rules[o[s]]),n&&(!i||n[0].length>i[0].length)){if(i=n,r=s,this.options.backtrack_lexer){if(t=this.test_match(n,o[s]),t!==!1)return t;if(this._backtrack){i=!1;continue}else return!1}else if(!this.options.flex)break}return i?(t=this.test_match(i,o[r]),t!==!1?t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return i||this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},pushState:function(i){this.begin(i)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(i,n,r,o){switch(r){case 0:break;case 1:break;case 2:return 20;case 3:break;case 4:break;case 5:return this.begin("title"),12;case 6:return this.popState(),"title_value";case 7:return this.begin("acc_title"),14;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),16;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"txt";case 17:return 5;case 18:return 7;case 19:return"value";case 20:return 22}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[6],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,7,9,11,14,17,18,19,20],inclusive:!0}}};return b}();$.lexer=O;function w(){this.yy={}}return w.prototype=$,$.Parser=w,new w}();J.parser=J;const Et=J,nt=at.pie,G={sections:{},showData:!1,config:nt};let U=G.sections,K=G.showData;const At=structuredClone(nt),$t=()=>structuredClone(At),wt=()=>{U=structuredClone(G.sections),K=G.showData,ft()},Tt=(e,u)=>{e=pt(e,et()),U[e]===void 0&&(U[e]=u,it.debug(`added new section: ${e}, with value: ${u}`))},It=()=>U,Dt=e=>(e.substring(0,1)===":"&&(e=e.substring(1).trim()),Number(e.trim())),Ct=e=>{K=e},Ot=()=>K,Vt={getConfig:$t,clear:wt,setDiagramTitle:lt,getDiagramTitle:ot,setAccTitle:ct,getAccTitle:ht,setAccDescription:ut,getAccDescription:yt,addSection:Tt,getSections:It,cleanupValue:Dt,setShowData:Ct,getShowData:Ot},Pt=e=>`
.pieCircle{
stroke: ${e.pieStrokeColor};
stroke-width : ${e.pieStrokeWidth};
opacity : ${e.pieOpacity};
}
.pieOuterCircle{
stroke: ${e.pieOuterStrokeColor};
stroke-width: ${e.pieOuterStrokeWidth};
fill: none;
}
.pieTitleText {
text-anchor: middle;
font-size: ${e.pieTitleTextSize};
fill: ${e.pieTitleTextColor};
font-family: ${e.fontFamily};
}
.slice {
font-family: ${e.fontFamily};
fill: ${e.pieSectionTextColor};
font-size:${e.pieSectionTextSize};
// fill: white;
}
.legend text {
fill: ${e.pieLegendTextColor};
font-family: ${e.fontFamily};
font-size: ${e.pieLegendTextSize};
}
`,Nt=Pt,Lt=e=>{const u=Object.entries(e).map(p=>({label:p[0],value:p[1]})).sort((p,g)=>g.value-p.value);return St().value(p=>p.value)(u)},Ft=(e,u,E,p)=>{it.debug(`rendering pie chart
`+e);const g=p.db,A=et(),y=gt(g.getConfig(),A.pie),a=40,l=18,d=4,m=450,I=m,T=dt(u),_=T.append("g"),v=g.getSections();_.attr("transform","translate("+I/2+","+m/2+")");const{themeVariables:c}=A;let[$]=mt(c.pieOuterStrokeWidth);$??($=2);const O=y.textPosition,w=Math.min(I,m)/2-a,b=tt().innerRadius(0).outerRadius(w),t=tt().innerRadius(w*O).outerRadius(w*O);_.append("circle").attr("cx",0).attr("cy",0).attr("r",w+$/2).attr("class","pieOuterCircle");const i=Lt(v),n=[c.pie1,c.pie2,c.pie3,c.pie4,c.pie5,c.pie6,c.pie7,c.pie8,c.pie9,c.pie10,c.pie11,c.pie12],r=xt(n);_.selectAll("mySlices").data(i).enter().append("path").attr("d",b).attr("fill",f=>r(f.data.label)).attr("class","pieCircle");let o=0;Object.keys(v).forEach(f=>{o+=v[f]}),_.selectAll("mySlices").data(i).enter().append("text").text(f=>(f.data.value/o*100).toFixed(0)+"%").attr("transform",f=>"translate("+t.centroid(f)+")").style("text-anchor","middle").attr("class","slice"),_.append("text").text(g.getDiagramTitle()).attr("x",0).attr("y",-(m-50)/2).attr("class","pieTitleText");const s=_.selectAll(".legend").data(r.domain()).enter().append("g").attr("class","legend").attr("transform",(f,P)=>{const R=l+d,M=R*r.domain().length/2,Y=12*l,h=P*R-M;return"translate("+Y+","+h+")"});s.append("rect").attr("width",l).attr("height",l).style("fill",r).style("stroke",r),s.data(i).append("text").attr("x",l+d).attr("y",l-d).text(f=>{const{label:P,value:R}=f.data;return g.getShowData()?`${P} [${R}]`:P});const V=Math.max(...s.selectAll("text").nodes().map(f=>(f==null?void 0:f.getBoundingClientRect().width)??0)),x=I+a+l+d+V;T.attr("viewBox",`0 0 ${x} ${m}`),_t(T,m,x,y.useMaxWidth)},Rt={draw:Ft},qt={parser:Et,db:Vt,renderer:Rt,styles:Nt};export{qt as diagram};
const c=Math.PI,x=2*c,u=1e-6,m=x-u;function E(e){this._+=e[0];for(let t=1,h=e.length;t<h;++t)this._+=arguments[t]+e[t]}function A(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return E;const h=10**t;return function(i){this._+=i[0];for(let s=1,n=i.length;s<n;++s)this._+=Math.round(arguments[s]*h)/h+i[s]}}class L{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?E:A(t)}moveTo(t,h){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+h}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,h){this._append`L${this._x1=+t},${this._y1=+h}`}quadraticCurveTo(t,h,i,s){this._append`Q${+t},${+h},${this._x1=+i},${this._y1=+s}`}bezierCurveTo(t,h,i,s,n,$){this._append`C${+t},${+h},${+i},${+s},${this._x1=+n},${this._y1=+$}`}arcTo(t,h,i,s,n){if(t=+t,h=+h,i=+i,s=+s,n=+n,n<0)throw new Error(`negative radius: ${n}`);let $=this._x1,r=this._y1,p=i-t,l=s-h,_=$-t,o=r-h,a=_*_+o*o;if(this._x1===null)this._append`M${this._x1=t},${this._y1=h}`;else if(a>u)if(!(Math.abs(o*p-l*_)>u)||!n)this._append`L${this._x1=t},${this._y1=h}`;else{let d=i-$,f=s-r,y=p*p+l*l,T=d*d+f*f,g=Math.sqrt(y),v=Math.sqrt(a),w=n*Math.tan((c-Math.acos((y+a-T)/(2*g*v)))/2),M=w/v,b=w/g;Math.abs(M-1)>u&&this._append`L${t+M*_},${h+M*o}`,this._append`A${n},${n},0,0,${+(o*d>_*f)},${this._x1=t+b*p},${this._y1=h+b*l}`}}arc(t,h,i,s,n,$){if(t=+t,h=+h,i=+i,$=!!$,i<0)throw new Error(`negative radius: ${i}`);let r=i*Math.cos(s),p=i*Math.sin(s),l=t+r,_=h+p,o=1^$,a=$?s-n:n-s;this._x1===null?this._append`M${l},${_}`:(Math.abs(this._x1-l)>u||Math.abs(this._y1-_)>u)&&this._append`L${l},${_}`,i&&(a<0&&(a=a%x+x),a>m?this._append`A${i},${i},0,1,${o},${t-r},${h-p}A${i},${i},0,1,${o},${this._x1=l},${this._y1=_}`:a>u&&this._append`A${i},${i},0,${+(a>=c)},${o},${this._x1=t+i*Math.cos(n)},${this._y1=h+i*Math.sin(n)}`)}rect(t,h,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+h}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function P(e){return function(){return e}}function q(e){let t=3;return e.digits=function(h){if(!arguments.length)return t;if(h==null)t=null;else{const i=Math.floor(h);if(!(i>=0))throw new RangeError(`invalid digits: ${h}`);t=i}return e},()=>new L(t)}export{P as c,q as w};
import{i as a}from"./init-cc95ec8e-Gi6I4Gst.js";class o extends Map{constructor(t,n=g){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,s]of t)this.set(r,s)}get(t){return super.get(c(this,t))}has(t){return super.has(c(this,t))}set(t,n){return super.set(l(this,t),n)}delete(t){return super.delete(p(this,t))}}function c({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function l({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function p({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function g(e){return e!==null&&typeof e=="object"?e.valueOf():e}const f=Symbol("implicit");function h(){var e=new o,t=[],n=[],r=f;function s(i){let u=e.get(i);if(u===void 0){if(r!==f)return r;e.set(i,u=t.push(i)-1)}return n[u%n.length]}return s.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new o;for(const u of i)e.has(u)||e.set(u,t.push(u)-1);return s},s.range=function(i){return arguments.length?(n=Array.from(i),s):n.slice()},s.unknown=function(i){return arguments.length?(r=i,s):r},s.copy=function(){return h(t,n).unknown(r)},a.apply(s,arguments),s}export{h as o};
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="374.41583mm"
height="83.078178mm"
viewBox="0 0 374.41583 83.078178"
version="1.1"
id="svg235"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
sodipodi:docname="ngs.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview237"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="0.78216891"
inkscape:cx="717.23638"
inkscape:cy="386.10586"
inkscape:window-width="1054"
inkscape:window-height="1058"
inkscape:window-x="0"
inkscape:window-y="20"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs232">
<marker
style="overflow:visible"
id="TriangleStart"
refX="0"
refY="0"
orient="auto-start-reverse"
inkscape:stockid="TriangleStart"
markerWidth="3.3239999"
markerHeight="3.8427746"
viewBox="0 0 5.3244081 6.1553851"
inkscape:isstock="true"
inkscape:collect="always"
preserveAspectRatio="xMidYMid">
<path
transform="scale(0.5)"
style="fill:context-stroke;fill-rule:evenodd;stroke:context-stroke;stroke-width:1pt"
d="M 5.77,0 -2.88,5 V -5 Z"
id="path135" />
</marker>
<marker
style="overflow:visible"
id="TriangleStart-7"
refX="0"
refY="0"
orient="auto-start-reverse"
inkscape:stockid="TriangleStart"
markerWidth="3.3239999"
markerHeight="3.8427746"
viewBox="0 0 5.3244081 6.1553851"
inkscape:isstock="true"
inkscape:collect="always"
preserveAspectRatio="xMidYMid">
<path
transform="scale(0.5)"
style="fill:context-stroke;fill-rule:evenodd;stroke:context-stroke;stroke-width:1pt"
d="M 5.77,0 -2.88,5 V -5 Z"
id="path135-5" />
</marker>
<marker
style="overflow:visible"
id="TriangleStart-7-5"
refX="0"
refY="0"
orient="auto-start-reverse"
inkscape:stockid="TriangleStart"
markerWidth="3.3239999"
markerHeight="3.8427746"
viewBox="0 0 5.3244081 6.1553851"
inkscape:isstock="true"
inkscape:collect="always"
preserveAspectRatio="xMidYMid">
<path
transform="scale(0.5)"
style="fill:context-stroke;fill-rule:evenodd;stroke:context-stroke;stroke-width:1pt"
d="M 5.77,0 -2.88,5 V -5 Z"
id="path135-5-6" />
</marker>
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(3.5096622,-46.267635)">
<g
id="g897">
<image
width="67.847748"
height="62.978123"
preserveAspectRatio="none"
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz AAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAACAASURB VHic7N13vFxltf/xz0kPIZAQQocgvXekKB0EVEBFBKUIyk9sV+wgSLteuyKo104HBUUQUBBRukhH OkF6LyEJISQhOTnn98c6c3MYzpwzs9d6dpn5vl+v56Xem7332nvmzLP2U7sQEek8KwN7AzsDK/aV cYmv+TrwDPAs8HfgUuC5xNcUERERYD3gEqAH6C249AAXAWsnvWMREZEONgz4FtBN8RV/fVkAnAh0 pbp5ERGRTrQY9tZfdEU/VLkQGJvoGYiIiHSULuB8iq/cmy2/Ry0BIiIibl+n+Eq91fKVJE9CRESk Q0wB5lJ8hd5qmQOslOB5iIiIdIQzKb4yz1p+Gf84RN5MfU0i0o7GAS9T3UF1s4HJwLyiA5H2Nazo AEREEtid6lb+AIsDuxQdhLQ3JQAi0o7eUXQAAbYrOgBpb0oARKQdrVh0AAFWKDoAaW9KAESkHS1X dAABlABIUkoARKQdjSo6gADtcA9SYkoAREREOtCIogMQESmZ9wI3BZ1rO2wfApHSUQIgIvJmrwEz gs41O+g8IuHUBSAiItKBlACIiIh0ICUAIiIiHUgJgIiISAdSAiAiItKBNAtARIayMvAeYBNgeWyj munAc8A/gb8BMwuLTvI0EdtoaVvsu7AUNmvieeAu4HLgmcKiExGRELsANzL03vULgAuAtYsJc0A3 MXTcjcr2gXHs7Ijj+sA4vNYDLsQ+62bi3rGQKEVExGUS8Bdar7AWAD+gHC2LSgBijAROAbppPf5L sBYDERGpgPWAR8heafViXQJF//ArAfCbBFyN77swFVgn78BFRKQ1mwDT8P3g18rdwNL5hv8mSgB8 JgP3NIir1TId2Dzf8EVEpFmbAq8Q84NfK/+mmCRgCeDeDPGWLQH4NzA+MJZmTcb3/AYqLwMb53kT IiIytMg3//qSV0vAMsAhwGXAPGfMZUkAerFxFTcCRwIrBcbVSOSbf31RS4CISImkePMf6E02RRKw InA0cDvQExjvOwNj3DEwrh7gVuCrwAqBMdakePOvL2oJEBEpgZRv/vUlqiVgNLAX8Huam5KWpawb EGfNRoliXAhchbV6jA2IM+Wbf31RS4CISIHyePOvL56WgLWAH+cU81IZYxzIsjnEOw2bqrdGxhjz ePOvL2oJEBEpQJ5v/vWl1ZaAzYGzyTYPPUuZ2kJszXo8p9gXYmMgdm0htjzf/OuLWgJERHJUxJt/ fRmqJWA48CHglgJi+1mzD7IFvy7gPm4C9mXw/V6KePOvL2oJEBHJQZFv/vWlUUvArtia8kXFtWlL T7Q5WxR4P/cD+wFddTEV+eZfX9QSICKSUBne/OtL/5aAHfEt3hNR/pbpyTbnuoLv7UZgu75YyvDm X1/UEiAikkAZK/9auRu4ogRxzMEGGqayHv71CSLKXyhf5V8rSgJERAKVufIvUzki6wNuwWcLvL+q FCUBIiIBUlT+04DjyW9Ufh7luKwPOINvJLyPvMsC7NlNDz6vkgAREYcUA/5mYAPawEbpp1qIJ68y Fzg809P1OQTrcij6/j2lGziw735SfNc0MFBEJINUb/6b1F3nQKrbEnAJxW5Tuz7w5wHiqkJZAOxf dz+bo5YAEZFC5VX511QpCXgK+CFppvpltTlwMvA0xT+frJV//3tREiAiUoDUzf6NlLU7oBvbKOhE rHKqnwtfNqthu/5dBcyn+Oc30POsNfs3ou4AEZGcrQq8ROwP72Bv/vXK0hKwAGta/wixa/rnbRJw EHA55Xmujd7866VoCXgRWKXJ64uIdIzFsfn0kT+4zbz51yuyJeAB4ChguRZjroLlsZaBolZIbObN v16KloC7gHEtxiEi0tZOJvaHtpU3/3p5tgS8AZxB64lKlb0dOIv8ughaefOvl6Il4DsZYxERaTsr EjulLMubf73ULQGzgFOBlZ1xVtly2NiG6Aq2f8ny5l8vuiVgDvadFxHpeN8n7sfV8+ZfL0VLwPPA l4ElgmJsB0sCX8X6yCOftefNv150S8A3g+ISEam0qZSv8q85gJj172cDJ2FjHWRg47FVBmfjf95z sR0EI0UmAfcGxyYiUjlvo7yVf807yT47YQHwS2wQnDRnBeDXZG99eR7YJlFskUmAugFEpKPtTLkr /5qlgJ/R/LiAhcAF2A56ks36wB+wZ9nMM58P/BiYkDiuqCRgu/oTi4h0ko9Q/sq/vxWAr2F7079e F8t84E6sGbvIJXrbzbrA/2DPtn7mwGzgBmwMQZ7TJyOSgA/lGK+ISOkciO9H9AWKe8seAayErX63 EjC8oDg6yXCs6Xw1LBkr6plviH/RqqgBiiIilbQL/qbUF4EN8g5cOta62DgDdQGIiDishv+HtOiW AOkcEW/+tdLJa0CIiADwMDE/qGoJkJSi3vx7gftyjl1EpJQilwFWS4CkEPnm34uWAxYRAWAKMYvt qCVAUoh88+/FFilS87+ISJ8fE/cDq5YAiRL95t8L/CDXO2hzXUUHICJu44GbiH1zfwmbZdDJ/a3L YqsQroRNm5sIjAHG9v3nMGxzGoCZwMvAK8DT2BLNs3OOt0zWBa4mdn2BB4Gtsc2gJIASAJH2sCZw C1ZJRXkRW23wgcBzltFIYEtsF8QNsDfX9bHEyuMZLBF4GKu8bsL2tO9xnrfsNgT+AUwOPOcr2FbI jwWeU0SkbaTYf71dxwSsCxwL/I2YDXSaLdOBi4D/wpKMdhPd59+Lta68Pc+bEBGpoq2wH8zoMQFv y/MmEloN+Cv5VfhDlSexpXrXTnnTOVmd+D7/GVjrjIiINCFFEnAfsESeN5HA5lhTctGVfqNyP3AU sEyqB5DQRKybQ5W/iEjBUnQH/DTXO4g1GevOKLqSb6a8AZwNrJHkSaTxa2KfgZr9RUQcolsCurEB XlV0OsVX7K2W+X1xr5XgeUTajOa3HW6m6M1fRCRAdLP3z/MNP8REYhdLyrt0A+dR3gVwziTuXvXm LyISKLIlYCYwOt/w3d5D8ZV4RJkNfBWbtlgW44ibRaE3fxGRBDYjriWgam9on6T4yjuyTAV2C31C 2W1PzD3pzb8Aw4oOQERycSfwbuDVgHNtHnCOPHUXHUCwtYArsfEBixccyyYB55gJ7ArcGnAuaYES AJHOcQu2st9053kmBcSSp3ZcybALOAy4jWIHZi7tPP5VYHfg9oBYpEUjcr7eRGzBi7WwZTYXByag JYlF8nQHvibksVGB5ORW4DlsPf92sw52f0cDpxZwfe934WbgA32l09S6PmYDr7Fo2egZeQWQOgFY H3vj2BnYBttcQ0Sq7eWiA2hRN/AT4NtFB5LIGOAUrA/9/7Fog6I8vOQ8fve+Iou8iO0bcQ22odL9 xYbTmlWwNbYfovjBMioqKvFlH6pnJPAvin92qctNwFJBz6wZH0x0HyqLyoPAMSSYBhrZ9L45FuT7 0NgCkXa1ENvidVrRgWQwEbgUeGcLx8wAHsE2uHkaa66tTakE68oc11cmY+vhr0WxUyUfAPbA4k1t OeBZ9Jufhx7gYuBb2KDeUlgfuILisyQVFZX05UaqbThwJPAEb723OViT6/HAu4AVM15jGLbp0LuB b2ItDwsGuF7K8hS2M18ebsnpnlQWlb+Q3+c7oMWAE7F1q4t+GCoqKvmUD9EeuoD1gH37ymakfWsf D7wXWzVvFvl8VtP67iu1A3O6H5U3l/nYwM/cp4JuCTzqCFxFRaV65QHU1BthHHAQ8DesWTflZ/YC 6TcVGo6NXi/6+9mp5RFyWpujC2s+01u/ikrnlfcj0TbAdv5L2UXwKLB84vvYL2H8KkOXecB/Dfkp OQwHflmCG1VRUcm/3ITW60hpLSwRSNUicBewZOJ7+Gei2FWaL2eQYHr/aOAPJbg5FRWVYsq2SB62 Bf5Nms/watJuJLQN6bs0VIYuf6LJBZqGN/FvRgKXAHs3c0IRaTsXAifncJ1J2Mp2y2ADnOblcM2y eRr4DTb98J3AqMBzvw2rGK4KPGd/zwCbYp+hFGcd7HP4A5aQZTYMOJfiMxoVFZViygLSDiIbho0i v403vz12AzcAeyW8dtmtTXxrQA82GyGVdbHPrujvrYp1Kbm67b5bgptQUVEprvyWdCZiu9oNFcP5 VG//gShjgF8Q+5lOI8Gqcv1cGByvSvbyzSE+q4beg/pzVFQ6vaSaRz4Ke8NvNo5L6ewpiIdg3SJR n+uNpNsLZsvAOFV8pYcM3ferAK+UIHgVFZXiyt9J59sZ4vlUwniqYA9sKeKoz/eYhLFeHxiniq+8 DKw00IfUqH/gCuzLlkI3cA+2cMTTwOt05mAfkdROxJqQs9oDa6KPtiG2JXGrI9KfxV5OXAObKm4r bBnYSQHnmoMt5f5EwLnq7YW12mQ1FzgpKJayGoMtCrUyNt5jQ9K1yvyFAcZ+DJQAfBAbPRhpPjaT 4DxsKsprwecXkTfbBJv7ndW9wMbYG0SkYVjz8zYZj98G20M+L8OAVbF5+utgm9/UNgDqxV5gZmOb BT2Evdg8SdokZSPgOmBCwLkuI80Mry5s5UjPjICNsO9hpxgP7IINit2b2BkgYAt5/WmwfzAOeyuP anqorVWcdVMNEcnmJHx/u59LFNcRzrg+niiu/qZgq6pdRLau0GnYQLjPkG6w3fbYW3LE73SqKd5f dsZ1fKK4qmAl4CfEjvt4giEG034+8GK3Ys1LIpK/u8n+t/sGsHSCmBbH1qYvY2IyGjgUuAbb8jjq d3AhNpbiYOLf6N5HzJS7x7HN3aItj2+JY08LVrvYAJsiG/V9/GyjC43GFnKIuMhPif+yi0hzVsf3 93tRoriOdcbVS/xuhOOw/U2ifvsGKy8ARxFb2X4pKLYvBsbU31+ccb0tUVxVMgr4GTGf81M0qJs/ HnSBY+PuW0Qy8Da97pMgpgnAdGdcC7E++Ch7Edvl2Wx5DpvWF6ELuDggpudJs9aCd5OgLySIqaqO I+b7d9hAJ4/YyCHzogMi8n+WBVZzlH+R/W/4RdKsF/9NR0y14hlV3t8U4B8B8XjLX2kwPatFS2ED D73xpJhmOQZf4vdPfH8Lyya4pyJ9B//nfH39SdfAv+jPn9BuYSKt6gJ2wgbLPkzxW23/OsE9LoZ/ XZEFWH+o194BsUSWl7FF17y2xT924XHSJH9nOePylvnY39YpwI5Uu57qwmZueJ5HD5Yc/Z8TnCd8 HlvWU0SatyNwC8VXQv3L+xPc5ycD4vquM4Yu4BuUc3XTHqx51ytiyeBDA+Kot39AXJHlZmwWRVVN wlrqPM/g6/1PeKPzZAclulGRdjQc+BHF/xDWl3nYXORo9zjjehKbQZDVcOLX009R/hffcscT8VcM tzuu38gEfLMBUpXv09yOuGV0KL57/79ugMXxzTW8j2o3qYjkaTRwOcX/+A1UUmwTu3NAXB9wXH8Y tgBZ0c+22XIWvt/TwwJiSDF9+9qAuFKUP1PNGWvDgAfJft9vYDNg2N1xkl4ajCgUkQEV3R86WEkx 4vo0Z0y34qsQy9jSMlT5ieN+u/C3uHzHcf1GvuKMKWX5TYL7zcPh+O57N/B9MLPxNc2JdJJPUfyP 3WBl9eD7HYV/wN1ujutHzZEvojRcsKUJH3Ze+xnim8bXdsaUuuSxwmS0JbClqLPe85fAsp+sJ7g4 +S2KtIclsSVii/6ha1RuSXDPexcY01bELqOad5lP9v0ShgNTndffJeO1B3OXM6aU5SWsQq2aP5P9 nn85DMvMsrrWcaxIJ/kCMTu4pZKiGdS7at+PMx43EdvQLMWUtryMxMYuLJnh2IX4m/H3dx4/kDI3 tU/G9n+omqsdx64D8AjZM4idHBcX6STeN7KU5SHiK8su7K0qa0zPkX1wVhVG/DdbTs34DMYAMxzX fTTjdQczEviPI6bU5b4E95zarmS/34fBtznHKunvT6Ty1qX4H7dGZQG2HkG0TZ1xfTvjdd9O7GY+ /Z/Tv7A12b8AfKKvfBH4OdZdEbExT33p7nuWWfzaee1VM153MLuR5vOJKmskuOeUViX7vT4PvkEE VewzEcnbRyj+h61R+VKie/aO+t4k43UjljTvX6ZiFf2EJq69FDbQM/otN2sz7/bO634s43WHcowz rpQlerOp1JYk+73OBt/KWFXuYxPJSxlHo/cARye85yscsT2Y8Zo7Oa5ZX17Gdu7L0g0xEksang+M 550Z4ujClvfNes1zM1yzWVEb20SXzye85xRG4vgNGIFvjm2v49goo0mzl7VIlLJ1lb0EfAa4MOE1 tnQce1nG445xXLO/a4EPYlMYs1gA/ArbH+WPZKu86x0DvLvFY3qxRac+nfGaO2c8rhnfwPqgfwos nfA6rVqF5pe1n4MtqFMkTx3cVTtB1jLCcfEsRmEbZ/wIuIlybeqholL2MhP4Hul/cFdxxvmuDNdc k5h1/n9JbMvmKOD0gLh6yNYn792ON3L75YEsA5wMvOqMs6jyCtbtdDKWoOW9quAIR+y9XX3/JauR 2CCV1FbEBtt8lHJPpRKJNh2ruLOYgzVlPwBcA/wNeC0orsHsDVyS8dh52N/4nBaP+wZ1G5xkcCHW B+z5TRxIF/A7/FPrjgP+p8VjJmEtPln3GNiJfKZ7L4ElfjsB62HT8sZmPNcEbDxGEaZhq32ejM1k SW0E1uKUmSf7Sd0CMA6bzzrPGaeKSlXLUVTP18l+vzdlvOZjjmv2AreRvcJpxjj8C+E8lPHanuse kfGaRTqW4v9u5wHfIn33tKsFwLPzVGpbAHdjP4CjC45FRJrnWVzsrgzHrAW8zXHNBdjyuXMd5xjK 69hsEE+L6dpk6wa403lNad1o4GtYHbZZwbE0VNYEYH9si+LotclFJL2VHMfeneEY72C1X2ALoqX2 IDYewCPLvU51XE8JgM8aWKvWfkUHMpAyJgCHAb9Fb/0iVeVJALI0c2/vuN7rtN6v7nEivpaGHTIc 40kA1nIcK2Y0cD5waMFxvEXZEoC9sNWryhaXiDSnC18C8FSGYzz71/8RGySXl+fJPkASbIBcqzwJ QOpZAJ1iGFa3tTqVM6kyVbRTgDOJ34ZSRPKzBLYOfRa9tD5yehg2BTCrixzHFnHNtWl97ZYnHddb HLXGRhmBbfDkGa8SqiwJQBdwDsVN3RCRGJ5Rz69g2+C2YkWyj97vBa7PeKzHdY5jxwPLtnjMXHxT xTT1Os4EbByIZwG+MGVJAA4Gtis6CBFx8yQArc79h+bW6G/kOWzHvLy9hM0XzyrLPc92XC9ri44M bEds1knhypAADMe/gIeIlINnLn2WBGC843rPOo71etpxbJZN2DwLQKkLIN5JlKC7uwwJwN74+vBE pDw8b4tZ1lXPu8UhyuuOY8dlOMbTAqAEIN4a2KD3QpUhATi06ABEJMxCx7FZkgfPZix5r9ven6el ZF6GYzyJmWupWWnokKIDKDoBGEO2jT9EpJw8FXKW5nxP0/YyjmO9JjuOzXLPWboNaore8a5d7U7B rSt57+ZXbxtiBpjMx9ekJpLSWDpnIFWVEoC3YZ9Lljdqj3H41kqYleGYxR3X66QEYB7NLdQ0Dn8L 0mLA1vhmhbh5NjzwJhBHOq//ALY0ZuT2nSLRfkD273jVNgOaSPZ7XUjr06NGYU3UWa+5Y5abdHpX xlh7scq41d/dkY7r9ZJ+Q5tons2AvtvkNUYCu2DLO3ue7X95bpSKbwbkGfz3MvbHezXqoxIpi5lk 3/BmGK3PcZ8PPJ7xegDvdRxbxDUfofXnu4LjevModrBkWS0A/oHVQZ4pnYUOgC86AZjoOPbX5LuE p4gMrRdb0CerLJvPZN0mF2yHvjz7YccCBziOz3KvnvX8X3Yc2wlexOqirApd/K7oBCDLdJaae8Oi EJFIjzqOzZIA3OS43vLAZxzHt+rz+AYA3pjhmHUc18tjl8Squ8dxrGdshlvRCYBnOcRWlwwVkXzk vf3s1Y7rgS1Elseb2ETgK85zZLlXz5a+ns+yU3jqokKXBC46ARCR9uOpNDbKcMwd+Jb0nQic4ji+ GV3Az/F1e75EtpbPDR3XfNhxrJRc0dMARWRw7wdWy3jsfGyA0kPANeQ3ZsaTAGyL9cm3MvVsIfAH 4BOO6x6MVa7fd5xjMMcC+zvPcQHQ0+IxiwFbOa7pGV/RqmWBnbAWi8lkn921aVhEHcAzhcGbQFzi uPYHnNcWyYtnGmBU6cGaj/cifbPjus5Yt89wzXc4r9mLja4/KMO1h/IxLEnxxrdlhmvv5rxm1uSz WcOwJPc67Dta9N9Js9MA+/uA43qXZLhef5WeBigi+ejC3q4uxaYvpfxhfwTf1LGdMxxzEzYn22M4 cDbwLWK6R4djyd9pAee7B7gtw3E7Oa75GvCk4/ihrAlcC1yEJX2l2CK3kygBEElvetEB1NkJuAtf 5TCYBfhG5mdZHrwX+I7jmjVdwNeAK/H1nW8K/B34UkBMAN/OeJxnqfXr8e3tMJjdgDsp3zbwnims laMEQCS954oOYABLAFdgP8QpXOM4dmtg9QzH/RZ4zHHd/nYF/g2cTmvT6NYHzgFuJ26VwanYGIdW rQVs7riud3ZFI+8B/kzBU+AaKOPfajIaBCiSXlmnUo0GzscqiSeCz+2pPLqwQXkntnhcNzbY7neO a/c3DDisr9yJvdHfia08WHtTXBrbU2ALLJnKMothKF8j25v4R53XTZEArAGcS7E7MQ4mz0GPpeAZ MKFBgCJDG46tGFb0AKdG5aoE9zwCeNUR0+Nk7xO+wnHdspW/ZnwGXdgzzHrdaaRpIb7OEVPq8izZ vnMaBCgiDS0E/lR0EIPYFduaNFI31oec1apkb0I/kvZYv3428OmMx+6GPcOsrqH1KYdD2YtsMzzy cjFWMXYMJQAi+fgO5d5W1bsr2UAudh5/dMbjHibN/eTt02Qf0/A157Uvch4/kM8lOGeUeaRbA6LU PE0m6gIQad4pFN/M2ajMByYF3+/i2FusJ64sc99rznZeu8ji2WBmG+e1XyV+C+Bl8G3bnLpkmf9f oy4AERnS0cCtRQfRwEhsdHak2fh/4I5xHHs4acY3pHYN8FnH8cc7r/9H4rtQ9qK8g87/hf+ZVZIS AJH8zMPeFlIuruLx7gTnPNt5/D7YtMAs5gMfxNY8qIp7sO9I1u6i7YE9nDGc4zx+ICm+WxEex/e8 K8/TbKIuAJHWLY2tgFZ0s2d9mUn29dcbGQY87YzrHny/NUthCxMV/XyHKrfg2yp4BLZ2gSeGJ4l/ MRwFzHLGlaLciO0/4KUuABFp2jRs1P1x2HKrZbEkthlPpB7gDOc5NgQ+5Th+OjYqPuuUujz8HZuN 8bLjHJ8HNnbGcRrxo/93AMYHn9PjVaxraWdsem5H82RQagEQ8VkGOAFbYKboN6JefIOhGlka/2DA mcAKzjhGYIsLRWzME1V6gFPxt7ysjCWTnlhexbddcSM/csYV9Zxvx5LupYPvr7ItAGUdlCHSKV4C Tuory2Ob9CyPNVtndTS2Ol0W+wBHOa49kGnAL4EvOs6xJHAe9pacdX36biwBuA17041o/vV4Hlut zztQcThwJv6ldf8XmOE8R70u7DuV1WP4ktLp2PK+j6K3/QF5siq1AIiUz/fw/V179o9vZDlsZLn3 Te6EoHgmYG/e3QExtVoWYgnREkH38q2AmF7HWqOi7eCM65sJYopW2RYAnAcrARApn3fg+7v+WaK4 fuaMq1Z57hoY0ybYojd57EW/EPg9vl0G6+1MTBLzo8CY+jvdGdfbE8UVSQlARkoAROINw5qXs/5t zQTGJohrFexN01tZvYTtdBdpA6xbwLN/wWDP81fAusExr4t1r3jjm4V/fMVAxuEb/f8c2feDyFNl EwDNAhBpPz3A5Y7jlwT2Doqlv6eIadKdjI2aXzngXDX3AR/Huio+AlyAJRpZvYDtSrh/3zk/ATzo jLG/FbFNjyJWbzyJNNvg7otv9H/tBVES0SBAkfZ0CfAxx/GHYZVgtB8AB+F/G14ZS3K2J3bg2lys 4v4d9va5PrZd8tpYq8NyWKVWG3D3GjbD4QVs2+epwB3A/YEx1VsSu/cpAee6H/hxwHkGcqjz+Esj gpDBeZqO1AUgUk6jsDnlnr9v75zyRnZ2xtW/3Ez8HgZlNhmbxRDx7HqA7RLFuTG+cRUvEr8oVSrq AhCRUpkPnO88xxciAhnA1dgbdoStsBXdVgk6X5mtCtwAbBF0vrP6zpfC0fj678/DNg+SxNQCINKe Nsf39z2f2H72/pbB+p2jWgKexgbytauNiX9e0Qvi1KyKf+e/VK1PKagFQERK5w7gbsfxI4H/Coql 3kvAh8m+qE+9lbD1/j8SdL4yORhr5Vg+6Hzd2HOaFnS+el/A93Lo/d5KC9QCINK+voDvb3wmtmhO Kic44xuonE38fvZFGIMtVhT9fI5OGPMk/EsSe7ZCLkJlWwA0C0BaMRzYBts3fm1sRPSowPPXlu28 ERsB7JmGJeYcbOpd1nn9SwJfI3554JpvYAPRdgk858FYE/LHsfXfq2grbF2C9YPP+1dspchUjsW3 JPHrwG+DYpEmqAVAhjIcmxb2JPFvI43KQmwg0Go53F+7+wW+z2IuMVPOGlkOeMYZ40ClG1vfPmUL RrSlsGWCU2xY9CS+7YaH8jZgnjPGVFMSU6psCwDOg5UAtL8VsKlW0T9GzZY3gCOS32V7Wwt/hXJW 4hg3wFqAUnyHXsBaA8o8rWwU9j33Tt1sVKYRvxJhvd85Y+wGVk8cYwpKADJSAlBu65LmzSxL+WHi e213nr+1XiyB2DxxjFvh3zZ4sPIkcCRpljnOahRwCPAI6e57DrY/REqb4E8yf584xlSUAGSkBKC8 lgL+Q7ofpSzlc0nvuL1tj//5X5lDnHvhn0I2VHkW+DppuzWGsipwPL49G5op84F353A/fw+Idesc 4kxBCUBGSgDK60LS/jBlKQuo1vzgsonoytkmhzgPI00feH1ZCFzTd72Jmuf8WAAAIABJREFUOdzX UlhXxHXkt/vgITnc1zsDYr0uhzhTUQKQkRKAcno7+fxAZSlXJLzvdrcr/ud/UU6xfhgb/5HX96ob W2L3u8Du+DaxqVkC2BP4PjYbIY+kplbewDYiysOlAfFun1OsKVQ2AdA0QBnIUZR3G849sP3U7y06 kAr6O/APfFPu9sDm2M8Jiaix3wGvAH/EN62sWcOxJXa3AL7a9397GngY2+DnYWxNhNnYlsGz+v7N EthUycWxVoS1+sra2OJERXgNeD/2Wac2DtjNeY4rgOsDYpEMPFmbWgDaz1jSDsSKKMcnu/v2F9G6 s2uO8W6BrQdR9HeuKuUFYLNMTzqbPZ3x9gCb5hhvCpVtAdBSwFJvayyrL7Odiw6gwm4FLnaeY42I QJp0O7ZQ0NQcr1lVD2L98XfmeM01ncf/HrgrIhBpnRIAqZdq85dIVYixzE5xHr9iSBTNm4q1BJyX 83Wr5BysdeeRnK/r/S6cGhKFZKIEQOotU3QATViu6AAqbDK2Op5Hd0QgLZoNHAR8lPTjD6pkHvB5 bLT/7AKu7/0u/IJ0uxLKEJQASL0yr5ZWU4UYy2gycDU2iNJj1tD/JJmzsW6qBwuMoSzux1pGinyL ftV5/EbY4FQlAQVQAiDSGSZjo8I3CDhX0Vu13outB/F5bPOYTjMXOAlbmfH+gmO5L+AcG2PfTSUB OVMCINL+ot78wRZjuiPgPF4LsDffjYDLC44lT3/Gdgg8EZvrX7RbsfUNvNQSUACtAyCRzqH55sgx 2La/klbkmz9YZett9o30GLY99fuBk7EldtvRY8AXsEV3ymQacBW2PoRXrSVgl77zSg48czi1DkD7 +RrZP5NW9hlfzHGd+Y776ySTsebyyHnme+Z6B60ZiQ2Ge5DYey6yPAp8gnKPe9mb2Hu+m2q1BFR2 HQC1AJTHKGy+83uxVcRq02uexaZB/QVbLUuVX36mYG+XO2LbIi+FrU73HLaG/OXAU0UFN4ToN3+w JtoyL8W8ABskeC72uZ1A+h0MU7kPW0L4PGKa2FO6FPt72CnofBuhloDceDI1tQD4jcDeWh5j6Ht+ BtvOdHTCeNQCAOtgFclQa7f3YAuZrJU4nlalePOfTr4LAEXowlosLsAGzkU+jxRlDrYE8h6Udynu RtbBuoYin0dVWgIq2wKA82AlAD6TsV2wWr33O4FVEsXU6QnAJ/rO30o8C4DPJoypFZOBe4j9Ie4m ny1lU1oSS7SvonwbXd2OJfaTkt19PnYnfivnKiQBSgAy6uQEYH1ss5Gs9/8sabbG7dQEoAv4iSOm XuBHFPvmlqryPzDPm8jBqsAnsdabIvYZeBE4H0s2UyXyRfkQ8UnAA5R78S8lABl1agKwAfYj4P3D mEZ8EvBdRzx5JQALsDe6KF3ALx3x9C8/o5gkYDz2thRxD/2fc15byhalC+tz/jxwIdZ1Mo+4ZzgP S8r+gL3lb0j1mvdbdSCWOEZ+F++kvHuUVDYB0CDA/K2DNUNGLLk7CRt88y6sGTGr9YH9sD3Yy9af PZAR2GC8m7Ef1vOxhCqLLuCn2NtYhE9h8X0Sa2rOQxdwGlaRRVkIHIr1n7ezXqyCvodFeyQMxwaA ro39va6C/a0thVVC4+vO8Rq2INErfeVJbODu1L7/ntf3oCzOw5LH84ibar4pNs14X+wzkyCerEwt AK1ZB3ie2My4FxugtUWLsawIHIVtHhIVR14tAPWlG0uq9qO16VJd2Lr40Z9HL/Ar8lto6/PBsXfC m7+kl6Il4NO53kFzKtsCgPNgJQDNi2r2b1Sa6Q7owqZH/ZWhR7hnKd9p4XmMSfQcngO+wdB9hpHN /o1KHt0BixP7vWrHPn8pTvSYgJd4awtM0ZQAZNQpCUDqyr9WGiUBY7Em7tQLpHylxecyO2Es84Az GLhZPI/Kv1ZSJwFHBcaqN39JIbol4Av5hj8kJQAZdUICkFflXyv9k4DRwH9hb8V5XPuAFp/N1Bxi 6gEuYlEikGflXyspk4Bbg2LUm7+kFNkScEPOsQ9FCUBG7Z4A5F3518o0bDrfUzlfd6UWn89vcoxt ITag7aycn0mtpEgCliGmK0dv/pKHqJaAbmxAZlkoAcionROAoir/okqWWQjRa4iXvUQnATsExKQ3 f8lTVEvA1nkHPojKJgDaDjiNyKl+VfGjDMf8GZuF0Ck+RezsAO/iKAuBj2LTtUTy8HsWtQR4LB8Q S8fTOgDx1sHm5pd55apod2F/2K3qAb5I+bY4Tenwvv88Av/88DHO4x/FNjTKSxfwTmzDqy2wFfnG YQM2n8C+R5cD12JvieI3Ctuk593AJtj6BqOxfQcew1ruLgNuyjGmf2DrI6zuOMdiQbF0PE8zjLoA 3qzTmv17sUVQvDvOFdUvX2SJ6A7YIyCO24GJzjiG0oUtMtXsoM8ngc+QdtOrdjcGGwDc7HLjD2Dr aKQ2CUv0vN/bXXKItVmV7QLAebASgEU6sfKfB+wW8OxGAVeW4H7yLt4kYMOgOFImActiLWJZ4noC ay5WV2XzhgEHY0lUlmf+N2xPiRSiKv9ebJXGslACkFG7JADrEl/5z8BW+Is8Z2R5htiBOKOBn5fg vgYrzWzZ3Gr5qeOZDSPue5ciCVgfeDwgtjso1xtfWe1GTAX7KNaVGSmy8n+Gcu2noAQgo3ZIAJYC /kPMF7tWZgBbAptha4tHnttb5gE/JN00nD2Af5fgPuvL6dgyw2cnOPeRjud1RmAckUnAhsTvtHcF sFVQfO1kG+Jb0F7AErgIkZV/L7aOR5koAcioHRKAy4j9w6tV/jVlSALmYU2DR5DPnuVdwLbAj4l5 g/SW01nUDD2c+CRgAdkrti2J3d/+Lvyf8bqk2fOiVm7E+quHO+Ossi5gL2y2Uarn/CL+8T0TgNsC Y+rBfhPLRAlARlVPAHYk9g+uvvKvKSIJeAGbsvY+bL35Iq0PfBW4njR7GAxW+lf+NSmSgGsdz+fi 4Fg8LQEp3vwblfuBw+iswYJjgI+Tflnv/r8DWVsCot/8eynn7pRKADKqegLwd+K+2I0q/5o8koA3 gD9ibxZlnSI6BTie2F0MG5WBKv+aFEnAdhmfyWrEfzeyJAF5Vv79y3RsV8d27h7YBhsjM4P8n2+W JCBF5f8S9vdfNkoAMqpyAjCRuLWth6r8a1IlAc9im8rk0bwfpQtrgbmU2CbwWhms8q+JTgJOzvgs wAbJRe661ktrSUBRlX99eQD7Lq/cZNxlNgVb0vshin+urSQBKSr/+djfexkpAcioygnAvvieXa00 W/nXRCYBtSbUUS3ffbmsC5yGjVWIeC7NVP41kUnAfZnufpGPEt9F0kwSUJbKv778G/gmNp6kCuMF hgPvAL4N3E3xz6++NJMEpKj8u7GpjWWlBCCjKicAX8T37HppvfKv2ZjmF/gYqDwJHET7za+eApyL rxI8ldafS1QSMKvlO36rQ4lPAu6gcRJQ1sq/vrwMnIPtP1GmMQOjgX2w7+00in9OQ5UXaZwEdGLl D0oAMqtyAvAdfM+uB1sWNasVsJH5rVxzBjaYzruEbNltRuvjM2Zgg6uyGg78tcVrDlTGOWKoOZR8 koCqVP71ZRrwZYr9OxgLHE251/poVAZKAjq18gclAJlVOQH4Or5n14tNIfQ2v78PuI7B+8GfA47D puR0kh2w+dGDbUH6MraugXfjpl2w9dU934cFxLXKHEraJKCqlX//8jCwUZaH67QptthO0ffvKf2T gE6u/EEJQGZVTgAOx/fsaiUiCQAb9LQ/8A3ge8B3sfXUt6T9mvpbNQnbhvQYbNfC7wBfwFpgIp59 ROXfi61wFulQ0iQBO1D9yr9WXsc2ysnLPsR8V8pQXgS2p7Mrf1ACkFmVE4Coddh7sRXO2r1Zvl1t D8wm5nvwxwTxHUr+aydUrbyODb5LbQdgbgH3V6VStcofKpwAdPqboce92GYlEfbAFnNRElAt22Pb 10b024O1BkU7Exvb4N16OJWZWDdMkRbDtrNO2UU2CTif4v/GXwJeLTiGRhZis5LOKTqQTqEEwCdy Teo9gD9Q/Sl5nWIXbNBfVOU/DUsCUziTciYBM4F3YfvCn0jMLIisVsC6zVL5IbBcwvMP5VVsHNDq wO6ULwlQ5V8QT3NNJ3cBgI3kfYbYJjB1B5RfZLN/rXwhh7gPYPABkXmWmcDb6+KbhI3PKKqPfD5p FhCaQvwiTc2WN7AXlfpBrptTnhkI3cAhrT7UEqlsFwDOgzs9AQDYk/gf1YtQ60xZvYP4Cup68mv5 OZTixwQMtf7FysBPiE+ymin/3eRzbMW3C7iP14BTgBUHiWsrLBEr8rtQxT7/ekoAMmqHBABsTnH0 H0bK5kjJZlXiR78/jn8KYquKbAkY6M2/kSWwrZI9i161Wm5tMrZW5Lm99QtYd0qz23UX2RJQ9Tf/ GiUAGbVLAgBwErF/HAtp781NqugvxH7GT2F9skU4lPxbArKufDka+Bj5LI/bTdy4DoAlyec534V9 pllakopoCWiHN/8aJQAZtVMCANZ8GPlHcn2+4csgdiP2s30K28WvSHm2BLTy5j+Y9bFxAinXIVgj IM6a9RLGOQPr3/esKFqzOfltOd4ub/41lU0Ayrrla1Udjz3Y44POtx32A/JA0PlSGYW9ya4DrIU1 lS+OvUmNB0Zi859fw0Yfz8BWYXsImErx08Ca8cnAcz0N7AQ8FnjOLGrT0k4j7ZiT2mj/2wLOdT+2 hO4J2KI6hwK7Yt+xKJOx7aYjRO+wOR+4CpvZcRk2yC/CHdiCSFdirRapaLR/yXgyObUADCyyJeC4 nGNvxgjsjeEo7MfoDXz3+AI2D/sTtL7veB5GE7fTYBne/OulbAmIevMfzDhgL2xDpoim7O0DY9s5 IJ7ZWGV/CGkrZ0i35Xgv7ffmX1PZFgCcBysBaCxqTMCleQfewDCsqfGX2Jt8ih+IWrkfG8g0JY8b a8LbibmvIvv8h3Io8X3VM4AtcrwHsNao3bFFurLGXZYE4DGs6ynvtUFSjAlopz7/ekoAMmrnBABi koC7c4/6zSZhlXH0egfN/mhcji26U6T98N9LmSv/msiWgDze/AfzzwZxNVPKkgAUOQYosiWgXd/8 ayqbAGiueVonYJvzeCwWEUgGy2AV/6PYfQw2nziV4dg6C38H7sQq4q4C4vB+Bk8DO2LPsszOx97S 5jnP8wxW8aWYUif5uBNrSXnOeZ45wEew7hkpGSUA6V3lPH5mSBTNG4nNva5V/Kn7HJu1KTZO4Fay TSXz8C6b+hTFD/hr1u+wN+BnMx5/E/b53BkWkRTlduyzzJrIPYUNZP59WEQSSglAet92Hv9ERBBN 2hFbtOQUbBR/GW2BVTKnYgvF5MH75v4ObBR8VdwGrI2Ntm82AX0KOALb8e6FRHFJ/p4DtsG20242 iZ2NLWS2IUoES8/Tt6MxAIPbE3//2adziHM0VqH2BMSbZ3kK2DbB86g3DKvUPLHeRjHdF14TsLEB 5wL3Yf3CC4HnsR/3H2NNxWXbxEpjAOKNxjYt+ym28NDz2HdhGvbdOBvYn/K0GualsmMAcB6sBGBw N+N7vt2k2ZykvykBcRZZFmBjFVK3Zv0mINY9E8coiygBkLxUNgFQF0A62+Nfyvd8bABZKrsD91Dt JYdHYGMVfk/aXRR/gH873S9FBCIiEkEJQDqfdx7fDXwzIpAGPoItLpJXP3pq+wLXEL/yWs1DWELm sQuwcUAsIiJuSgDSWANbptTjdODBgFgG8jlsKc7I5VPLYGvgamD5ROf/Ov6lV78YEYiIiJcSgDSO wPdsZ2P92ikcgQ34a9fPfiNs6mWz26G24nHgf53nOABYOiAWERGXdq0EijQS/5KXP8RG2EbbB38F VgXrYysIRm7rWvNNbInbrEYBHw6KRUQkMyUA8d4DLOs4fhbwo6BY+tsRuABbXa8TbAX8lvjv+HRs GpTH4RGBiIh4aDvgeIc6j/8V/pXn6i2PDWAbHXzeetOBW7CxC1OxN+XapiKLYW/kb8MWmdkE2IC0 SejewLH4l2Ou91Pgy8DYjMdvhN3/v8Mikki/w78cck3W74hIckoAYo3HptZltQBbWCXScOA8fK0S g3kUG1B4GVahtTJVbmlgJ2xGwrtJs5jMCcANwLWB53wJOAv4pOMc+6EEoKxWKDoAkbx4FjbRQkBv dgC+55liw4wTnTE1Kn/DKu+o1e2WBo7HVhWLjvU5YHJQnDVr4ts+96HgeOTNbiDN9z7Pcm30Q5Ek tBCQADYX3eNXIVEssj5wTPA578SW330XNu++N+i804D/BlbFBtrNDzovWBfIDwLPB/Af4DrH8Wtj XSCSxktFBxBAeypIUuoCeKsubC/s92L7ty8PTGzyWM8P+qPY8qVRurAR/1Fz/edhm8P8FHvzTWU2 Nt/+HOBMbG5/hIOx5XxvCDofWDfATo7jL8PW1h/KfKxCexr4FzbDIe9dIqvGu41tGWTdkVGkaZ4m qnbqAhgGHAQ84ojJU44Lvp+DA2P7D7Ydb95GsmgJ3oj7uJfYxY8WB14Liq2VMh84A1gl8F7azccp 5u84shwS/lQkhcp2AeA8uF0SgOWxLWaL+kPvwZq+o4zEthGOiO1W4vvPW3UINkAy4n6ip+CdFRRX ljIX+H/B99MulsGW0y7qs/GWbrRgVFUoAcioDAnAeljTapF/7HcH3UvN4UFxXU2axXSyeB/25uu9 p0eI7fraNyAmb/lh4P20k6so/rPJWi5P8DwkDSUAGRWdAEzCmreL/mP/VsC91AwHHg6I6W5sL/gy ORDfyPtaOSgwpiWw/QGK/g55N59qR28nrvsoz9IDbJ7geUgaSgAyKjoBuNRx/cjyzoB7qflQQDzP kW7dAK8T8d/fvcEx/T0gJm/pBrYIvq92cB7FfzatljOSPAlJRQlARkUmADs4rh1ZphHbJP1XZzwL gV0D44k2DFuDwPvctwyM6fMB8USUfwTeU7tYHGvNKvqzabbcRXm63aQ5lU0AOnkdgKOKDqDPhdjb W4Tl8VfeJ2NvtGXVAxyGjb73iBxhfSGtrYCYys5Ys7csMhvbBOvRogNpwn+w5atfLzoQ6QydmgAs CexSdBB9zgw810H4Nvt5BjgpKJaUnsW/XfKHiVt6+BnKkzS9v+gASugJLDEqcwvJVdgGVk8XHYh0 jk5NALYjzbrzrboEuDnwfN5ukWOxN6Yq+DG+t7pJWDdQlGOxZrWilbn7pkjTsdUrP4QlBGXxLHAE sCe+baZFWtapCcDKRQeArQB3ZOD5xuMbBPY4tn1uVXQD33Wew7OKX73bSbONc6vK8N0uqx7gD9gS 2R/BtseeVkAcL2G7cx6A7SnxK9KurikyoE5dCni5gq8/D9gfeDLwnDvg+zxPIW4sQl7OAv4HW/Ql i+huoKOw5aDfFXzeVkzGvgdV+yzzNAfb8vd3ff97DLAi6ae9zsBm2ERtNSzi0qkJQORysK2aifXT Xht83p0dx86nWm//NfOxH/GsLSmbY+NBXg2KpxsbxHUu8MGgc7ZqGEoAWjWPagwSFAnVqV0ARbkU 2JA023x6Fg65kmKaQiOc5zh2OLBJVCB93sD6mT9Gcxv9iIgUQglAek8Bp2EV9D7YiPEU1nEce2VY FPm7HV/ysnZUIP30You5TAE+C1yPJQYiIqXRqV0AHmdhTbyD6QVeBl7sK6lNIHs/ONia/1XVi7Wo ZG1yT5EA1LyObcn8v8BobPe+ycBiTRx7JUrQRSQhJQCte4zyzPmu8VRirwMPRQVSkNvJngB4Wk5a 8Qa20Mt/mvz3ZZhSKCJtTG8Y7cEzq6G2cVCVTXUcW9Y9D0REklIC0B4Wdxz7WFgUxfGM4B4fFoWI SIUoAWgPnkpsZlgUxfFM41MCICIdSQlAe/C0AFRl6d/BzHIcqwRARDqSEoD24OnD7wqLojie73HV xz+IiGSiBKA9eN7iPa0HZeF5i/duKywiUklKANqDpxKbGBZFcTz3oARARDqSEoD24GkBWCMsiuJ4 7kEJgIh0JCUA7eFZx7FrYmviV5lnIaTnwqIQEakQrQTYuvWB/Zr4d7OxZYDvJ/068LXFfLIM6BuD bVD079CI8rWV49i8VkFcGVgVWwq4mYSrHQZnikiJKQFo3Yf6SrPmANcBPwf+AvQkiOk14HlghYzH 70x1E4DhwHaO4z2rCA5lRWwzoP2A1RNeR0SkZeoCSG8xYE9sK+BbsLftFDxvsnuERZG/bbHNkLJK kQCMBI7DVlk8GlX+IlJCSgDytQVwG811IbTqVsexuwArRQWSs4Mdx84nvuVjSeAq4L+BUcHnFhEJ 06kJQJF7s48Gfkdr3QjN8GzpOwxfRVqUcfiSqVuw3RCjLAb8A9gh8JytWggsKPD6IlIRnZoAPF/w 9YcDp2MDCqP8E19icyQwNiiWvByBr/nfkzQN5OfA5sHnbNVLWBIgIjKoTk0Aniw6AOzt9SeB55sD 3Ow4flng40Gx5GEs8CXnOf4REUifHYFDAs+X1RNFByAi1dCpCcANWIVZtJ2w/vcof3AefxI2Ta0K vkb2WQ9g8/9vCooF4H8Cz+Xx16IDEJFq6NQEYA5wRdFB9Il8azwfG9iW1VLAd4JiSWkt4KvOc5xL XFP56sA7gs7ldVHRAYhINXRqAgDwLdLMyW/V+4gbLf4KttaAx8eAfQNiSWU08Nu+//Q4NyCWmg8G nsvjYuC+ooMQkWro5ATgTuCcooMAlsC3kE290wLO8RvKu0fAKfgH2t0C3BsQS817As+V1TysW0RE pCmdnAAAfAq4o+gggHcHnutyLLnxmABcCSznDyfUUcAnA87z7YBz1CwFbBN4vqwOJ+2qhiLSZjo9 AZgLvB9br79IkW+QvcD3As6zGjZOoiyDAo8gpuK+B1uVMcoeFLukdg/wZeC8AmMQkYrqdRTvD98l jmt/wHnt/pYA/uiIJaKsG3g/w7GlgSPimgq8LTC2LI4n7jnvHxzbBYGxtVpeBt4bfD8i0poPkP1v +BLntUc4rt2L8+B2SQBqdsamCPY44spaIpulwd5MIyuaPYPja8Z4bMBf1H3cSmyr10SsFSnv78o0 4JvYssMiUqzKJgDaDfDNru4rK2L98msAy2Nb5jZjT2DxjNc+CPg6cVPT/op9ufYJONfSwJ+Bk4ET iV0+t5HtscGIawadrxv4BLEzP/an+e/GQG6l+UWpXmbR2gU3YPcjIuLieRNptxYAr3PwPc93Bccz BausI98+n8TW3081fmQl4EziW2FOTRDrzc6YyjrTQkSaV9kWAJwHKwF4s/fhe54XJojps86YGpX7 sA2EPG/A/a0L/BLbzyA61oex7oRIGztjit6FUESKoQQgo3ZLAMYCr5H9nhYS1+Td34WOmIYqM7Gm +r1prU+6C9gI+CLWFJ4qvrnApi3E1axznXF9PUFMIpK/yiYAGgMQay7WV35AxuOHYRXip8IiModj leBqwecFq/Q/3lcWYi0DD2Fv3dOA2dhzGY8NmpuCLeW7EflMMfwicFfwOVfGv52zd98GERE3z1uM WgDe6l3431hTLMCzMfa2nupNu4zlNyFP7q1OdsZ1Y6K4RCR/lW0B6PSFgFL4O77thscAXwmKpb+7 sRkB8xKcu4z+TMyqgfVWwGYTeJweEYiIiIcSgHg92Ch2j8+QZvGd67Cpa+0+hexmrBsmxX2eCIxz HD8bNf+LSAkoAUjjV/i25R2N7VaYwqVY/3W7tgRciy2ClGKtgnWAw5znOAsbKCoiUiglAGk8B/ze eY79gS0CYhnIxdhCR7MSnb8of8Lu69VE5/8uvnEvPaRZj0BEpGVKANL5PjbQIqsu4LigWAZyDbb0 8bMJr5GnHwP7YoMoU9gU2Mt5jkuB/wTEIiLipgQgnXuwZYU99sKmzKVyB7AJtoVwVb0GfBg4kthl fut9GUvKPH4YEYiISAQlAGkd7zy+C1tgJ6Vp2I5yXwMWJL5WtDuBzYDzE19nBNa14HEVmv4nIiWi BCCtm4Arned4Z0QgQ+gFvgNsgE1jLLs5wEnANsAjOVxvQ2CC8xwnRAQiIhJFCUB63h/+KSFRNOdh bCGjjwIv5HjdZvVigyvXwqbjeWZatGJV5/FXAv8KiENEJIwSgLS6gI85z5F1e+GseoGzsUrvCOCZ nK8/kB5sYZ+tsNkReQ9c9G4ktAU21kJEpDSUAKTTBfwC/6pxcwJiyeINbD2DNbBE4M4CYpgFnIY1 we8F3FZADGCL93hMwrpWlASISGkoAUijC/gp/sof8unjHkwtEdgcq4i/Bzyd8HoLgCuAA7E9EQ4H Hkh4vWZEfAaTsKmXqdZ2EBFpmWdTE20G9FZd2L72URvaHJVv+E1bB/g0ttXwc2S/v3nYm/33sBX8 PMvspjIC3zbP/cs01BIg0k4quxmQtgOOFfnmD/YhXRh0rmgP9ZWf9f3vJYG1scRgFWzswoS+/xyF NefP7isvYwMOp2IbJy3MM/AMurHVEw8OOFetJWA34PaA84mIZKYWgBjRb/69WFO4lMPW2GDEqM9W LQEi7aGyLQAaAxAj+s0f7K3zq4HnE5+bgQsCz6cxASJSKCUAMb6N9YdHOga4N/ic4nMk8ETg+SZg yzCvGnhOEZGmKAHwO5D4gXq/xjYTknJ5CZuOOCPwnJOxZsAyDn4UkTamBMBnArYLXaQzgU8Gn1Pi 3IftovhK4Dk3Ar4SeD4RkSEpAfD5CrBU4PnOBD5O2l3txO/f2JLJ0wPP+UWsNUBEJBdKALIbhn+Z 3/7OQJV/ldwJ7EJcS8B44INB5xIRGZISgOw2x1aqi3AmtuKdKv9qiW4J2CvoPCIiQ9JCQNltGnSe M/BX/l3YRjnbYAvxTMSW8H0SW2zmKuB1X5iVth5WUa8BLIM9m+eBO7A1+j1v8Xdii/pchb87SOsC iEiutBBQNsfje3a9wOn4WmFGYNMPHx7iOnOBn5Pv1sJFGwZ8GJsOqwJqAAAS20lEQVRKOdizmQec j20x7LEZlkh4vg/dwHBnHCKSr8ouBITz4E5OAL6F79n1AHs6rr8OcHeL13wD+BG2CE072xO4h9af zXFYa0oWo7GFfTzfiV5gbMbri0gxlABkVOUE4Eh8z64XezPfPcO1d8T6nbNedwa2dkG7VTZbAP/A 95lcgO1d0IrR2II+3u/DzJbvWESKpgQgoyonAHvhe3ZZk4Cdsf78iGu/CHyd2KmMRdgZ2zchaq3+ y2g+CYiq/Hux8QQiUi1KADKqcgKwONZ/nGcSEFn59y+zgVOx3fyqYgzWx3878c+jl+aSgMjKvxfr VhKRalECkFGVEwDwxV9fhkoCUlX+9eUmbCXCCZmfSlrbYAMaZ5D+WQyWBERX/r1oYyCRKlICkFHV E4AtiN0itlESkFflXx/LX7BZBlM8D8lpFDbN7hTgEfJ9Br0MnASkqPwvcz4nESmGEoCMqp4AAJxN fMXbPwkoovIfqNwLnIjNPkhtLLAf8AdgVg73NlTpnwSkqPznAuv7H5uIFEAJQEbtkAAsBtxFfIWw O+Wp/PuXHmze/NsiHl6dLmw55GdKcJ/15TJgCeIr/15sR0kRqSYlABm1QwIAsDLwGLGVwlzKV/n3 LzOBfSIeXp8JxI6pSFG8C/0MVI6LeHgiUpjKJgDaCyDG08AOwKOB5xyDtS6U1ZLAxcChAecajy3J u3fAuVKKni55IvCN4HOKiDRFCUCcp7Hd4R4vOpAcdQG/At7hPMf52OZKneRE4KSigxCRzqUEINaT wE50VhIwEjgNa7HI4mPAu+PCqYQTUeUvIgVTAhDvSeK7A8pubeCwDMeNxCrDTnIiqvxFpASUAKTR id0Bn8twzAeBlaIDKbETUeUvIiWhBCCdIrsDnsKa1u/O8ZrrAKu1eEyeTf/zgB8D38/xmv2diCp/ ESkZzxQmTQMc2hTipwgOVp5kUUXchS2oc39O1z64xWfzaA4xvQH8L7Biv+v+d07Po1ZOaPG5iEh1 VHYaIM6DlQA0Z2XyWcb2KWD1Aa4/DNgVW8wm5fWPavG5zE0Yy6vYBkcrN7j2SYmfRa2c0OIzEZFq UQKQUackAJC+JaD/m/9gNgPOwHYAjI7huy08j7GJnsPd2P4F45qIIXVLwAktPA8RqSYlABl1UgIA 6ZKAZiv//sYDh2O7/0XF8b0Wrr9Y4HWnY838WdYSSJUEnJAhFhGpHiUAGXVaAgDx3QGNmv1bsQpw JHAjsNARS54JwCvYRkx70XjL3mad6IxFlb9I51ICkFEnJgAQ1xKQ5c1/KMc54skrAViA/7tXL6ol QJW/SGepbAKgaYDFqE0RfMBxjqnAjlgiEak7+Hwp9BIf5/HAMX3nzqIHOBpN9RORilACUJwngW2w kfmtuhzYms5aaCgP3wb2BWa1eNyr2FtAK4MgRUQKpQSgWLOwHfD2Au5p4t/fi23B+x5sO16JdzGw BrZo0Lwh/u08bKrhmvib8kREchXdjyrZ/LmvrIetjrc+sCy2kM8LWFfB5diCPpLey9igyGOA3YHt sCWLJ2IzDp4BrgeuAl4vKEYRERclAOXyAL5xARLrdeCiviIi0laUAEikVbEVB5sxOmEcIiIyBCUA Emm/viIiIiWnQYAiIiIdSAmAiIhIB1ICIPXeKDqAJswvOgARkapTAiD1Xig6gCY8W3QAIiJVpwRA 6j1VdABNeLroAEREqk4JgNS7BZhRdBBDuLLoAEREqk4JgNRbAPyl6CAG0Qv8qeggRESqTgmADORb lHdXwN8D/yk6CBGRqlMCIAN5EDiz6CAGMBc4tuggRETagRIAaeRzwG1FB9FPL3A48GjRgYiItAMl ANLIXGyP+zJsTtQDfAX4bdGBiIi0CyUAMphngG0odq/7GcD7gR8WGIOISNtRAiBDmQW8D9iDfLsE XgN+AKwBXJrjdUVEOoJ2A5RmXdlXVgP2AlYHVgYWDzr/QuBFbJW/G4CrqcayxCIilaQEQFr1GHBq 0UGIiIiPugBEREQ6kBIAERGRDqQEQEREpAMpARAREelASgBEREQ6kBIAERGRDqQEQEREpAMpARAR EelASgBEREQ6kBIAERGRDqQEQEREpAMpARAREelASgBEREQ6kBIAERGRDqQEQEREpAMpARAREelA I5zHHw70OI6f4jh2N2Bpx/EiIiJemzqOnQJ8wnG86yW+C+j1nEBERESqR10AIiIiHUgJgIiISAdS AiAiItKBlACIiIh0ICUAIiIiHUgJgIiISAdSAiAiItKBlACIiIh0ICUAIiIiHUgJgIiISAdSAiAi ItKBlACIiIh0ICUAIiIiHci7HfBv8G0HLCIiItkMAw7PerB3O+CRQLfjeBEREclmBLAg68HqAhAR EelASgBEREQ6kBIAERGRDqQEQEREpAMpARAREelASgBEREQ6kBIAERGRDqQEQEREpAMpARAREelA SgBEREQ6kBIAERGRDqQEQEREpAMpARAREelASgBEREQ6kBIAERGRDjSi6ABEpGXjgJWAxYsOpM9s 4GlgTtGBiEhreh1FCYRIPrqA/YHrgW58f7cpSndfbB/qi1VE0huB7+9WCYBIyU0A/krxlXyz5Yq+ mEUkLSUAIm1sDHATxVfqrZabgNEJnoeILKIEQKSNfYviK/Os5RsJnoeILOJKALr6/ktWI7G+PxGJ NwF4Flis6EAyeh1YEXi16EBE2tQIYEHWgzUNUKS89qS6lT/YbIU9ig5CRAamBECkvDYoOoAA6xcd gIgMTAmASHmVZZ6/x5JFByAiA1MCIFJeLxYdQIAXig5ARAamBECkvG4sOoAA1xcdgIg0pmmAIuU0 HHiY4qfzZS0P9d2DiKShdQBE2theQA/FV+atlh7gPQmeh4gsogRApM0dS/EVeqvlmCRPQkT6UwIg 0gEOAl6i+Ip9qPIScGCiZyAib+ZeCXAB2SvyscA8R/Ai0rwlgAOA3bDtgEcWG87/WQA8A/wNuACY VWw4Ih1jDDA347HdADPInkEs7QhcREREsluG7PX39GHAbMfFl3ccKyIiItmt4Dj2tWHATMcJ1nUc KyIiItmt4zh25jDgUccJtnYcKyIiItlt6zj2kWHAVMcJ3uU4VkRERLLz1MEPD8NW68pqfWATx/Ei IiLSus2AtR3HPwTWh+CZ9/tLRwAiIiLSul/jq7vXqp3oWcdJ5mFzkkVERCS9VYE3yF5vPw2LdgO8 xhHIaOCHjuNFRESkeT8ERjmOv7r///gA/iVA3+8IRkRERIa2H/76+n39TzgaeMV5whn061MQERGR UOtga/d46uppDNB68DPnSXuBx/CtTCQiIiJvtSLwBP56+qcDnXx9YGHAyR8D1oy7ZxERkY62NvA4 /vp5IYOs4HtRwAV6gVeBD8Xct4iISMfaB5hOTN18wWAX2hzoCbpQL/Bb1CUgIiLSqpWA84mrj3uA jYe66FmBF+zF9ir+CbBe5scgIiLSGdbD+unnElsXn1Z/oa4BLr4MtkTgxMAbqrkLuBK4CXgQeA6Y k+A6IiIiZbcYNrhvHeAdwO6kWV5/OjaOYFr//+NACQDAJ8hvid+FwKycrlU1M4Dbgd8Bl2BZXF7G A4dj/U9rAmNzvLaISLtbAhie07U+Dpxe/39slAAA/AH4YLJwpFX/AvanbwnHxN4DnAFMzuFaIiKS zgXAAQP9PwZLAJYE7gRWSxGRZPIcsDVpk4ADgHPJLzMVEZE0/gNsQYNW9sESAIANgOtJMx5AsrkZ 2JY03QFrAnej5n4RkaqbDmwHPNDoHwxr9P/ocx+wNzYaUcpha2zvhhROQpW/iEjVzQH2YpDKH4ZO AABuxMYCKAkojwMTnHMcdRtEiIhI5czF6uybhvqHzSQAAJcDO2EbBknx3p7gnBugt38RkSqbgU0l vKKZf9xsAgBwC7Ajth6xFGvpBOeclOCcIiKSj0exPv8bmj2glQQAbEzAJgyxnrAkl6IlZnqCc4qI SHp/ArYE7m/loFYTALDpBAcAn8Y2/ZH83ZXgnA8AbyQ4r4iIpDET+CTwfqz5vyVZEoCan2PLF55H vivUiW0QEW0WTfYbiYhIoXqBc7A6OPOqvUOtA9CstwNfB94beE4Z2L3AptgSytE2wpYeHpng3CIi 4tMLXAp8E7jNe7Ko1d6exdar/xMwClgdGB10blmkNsLz5UTnf7Hv3O9NdH4REWndq1hr+2HAqdiq sG6p3tbHYnPKP4DNHEgxar3TPADsi+3UmNrBwM+AxXO4loiIvNU04Frgj9hmcOFr8eTRXD8Ma1re FuuvWBvbX2AStuPciBxiqKrXgFux1pWzgQU5XntZ4HMs2g1wVI7XFhHpBN3Y7/wrwGPAVOBBbBGf e0g8vq4M/fVj0AI0A5kPvF50EP104n4QGwPXZDz2QWx/b/H7J7BuxmN3wva3ECmbucC8IgMow9v3 PAp+CNKUlqeYtIEex7Gz6MxnlsJsx7Hd6HMQGZBnGqBIuxvnOHZOWBTiaQnzfIYibU0JgEhjnsqj TN03VedJpjSQVaQBJQAijXkqD7UAxFELgEgCSgBEGlMLQDl4kiklACINKAEQaUxjAMpBCYBIAkoA RBpTC0A5qAtAJAElACKNaQxAOagFQCQBJQAijakFoByUAIgkoARApDG1AJSDEgCRBJQAiDSmFoBy 8DxLrQMg0oASAJHGNAugHDQIUCQBJQAijXneHmeFRSGvOY5VAiDSgBIAkcYWcxw7MywK8WzmowRA pAElACKNebZA1g50cTzJ1ISwKETajBIAkcY8CYBaAOJ4nqXnMxQRkQ40EugBejOW0fmH3LbGkv1z WAgMzz9kkfJTC4DIwCYCXRmPnQO8ERhLp5tL9uc5DFgyMBaRtqEEQGRgSzmOVfN/PM8z9XyWIm1L CYDIwNT/Xy5KAESCKQEQGZhaAMpFAwFFgikBEBmYJwHQFMB4nmeqFgCRASgBEBmYugDKRV0AIsGU AIgMTF0A5aIuAJFgSgBEBqYWgHJRAiASTAmAyMA8lcarYVFIjeeZqgtAZABKAEQGpi6ActEYAJFg SgBEBqZZAOXieabqAhAZgBIAkYF5dpFTC0A8TQMUCaYEQGRgkxzHvhgWhdS85DhWCYDIAJQAiAzM 0wLwclgUUuNJANQFICIiTZmIb/vZEfmH3Pa82zMvkX/IIuWmFgCRt1rOcewrQHdUIPJ/FuAbB+D5 TEXakhIAkbda3nGsp6laBud5tkoAROooARB5K09loQGA6SgBEAmkBEDkrTyVhVoA0lECIBJICYDI WykBKCfPs102LAqRNqEEQOStPJWFugDSecFxrGdch0hbUgIg8lYrOI59JiwKqfes41h1AYjUUQIg 8laeysJTScngPMmVWgBE6igBEHmrVRzHqgUgHU9ytXJYFCIi0pYmkH21uV5g8fxD7hhL4vtsxucf skh5qQVA5M08b/8zgdlRgchbvAq85jherQAi/SgBEHmzKY5j1f+fnucZe5I7kbajBEDkzdT/X26e Z+xJ7kTajhIAkTfzNBM/FxaFNOJpAVACINKPEgCRN/NUEo+HRSGNPOE4Vl0AIv0oARB5M08l8WhY FNLII45j1QIg0o8SAJE3W8txrBKA9B5zHLtmWBQiItJWlsI3z3zp/EPuOMvi+4wm5B+ySDmpBUBk kbUdx84CpkUFIg29iG8tALUCiPRRAiCyiCcBUPN/fjyDLT2fsUhbUQIgsoj6/6vB86yVAIj0UQIg sohaAKpBCYBIACUAIot4WgAeDotChjLVcawSABEReZORwDyyjy7fMv+QO9ZWZP+c5mKftYiICACb k71S6QYWyz/kjjUOWEj2z2uT/EMWKR91AYiYLRzHPgrMiQpEhvQ6vgWBPJ+1SNtQAiBiNncce29Y FNKsexzHKgEQQQmASI0SgGrxPHMlACIoARABGA1s4Dje8zYq2XgSgI2AMVGBiFTViKIDEBnEBKAr h+tsAoxyHP8MMDEoFmnO/2/vflUiCKMwjD8Igs1k0bTBYNrkgiA29wYEg0XvSvAPiGWTV2CSDa5g 0GJREAwGLcYVZDWMYBNFmXd2v+fXh33DsN+Zw8w5D3+4dhpYAa7+Kct33oGXGn5H+rU6/lyln5oC toAdYJXqyVwad69AHzgCesAomkb6ZAGgplgATqi+8ZYm1QDYAB7TQSQLADXBHHABtNJBpBrcAx3c HqkwXwJUExzg4a9ytID9dAjJDoDSOlRP/1JploHLdAiVyw6A0jbTAaQQ731FWQAozbnsKlU7HUBl swBQ2mw6gBTi7AhFWQAo7TkdQAp5SgdQ2SwAlDZIB5BCztMBVDa/AlDaInCDY6lVljdgCbhLB1G5 7AAo7RbYS4eQaraLh7/C7ACoCWaAU6r5/9Kk6wPrVDsCpBg7AGqCIdAFDnFRiibXiGrqZRcPfzWA HQA1TRvYBtaAedzbrvE2pFr8cwYcA9fZONKXD31Tfhvo4kHeAAAAAElFTkSuQmCC "
id="image290"
x="211.24937"
y="59.093369" />
<image
width="58.453564"
height="57.050591"
preserveAspectRatio="none"
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz AAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAACAASURB VHic7d13dBzlvf/x72xfrXbVe7fkKrmBCwYHbDo2Ni0OoYVcICGFSyeEJBDlppCEErik3pt2Q0Io KZRAAiRgCMQ2NtgYV9xkq3dpi3ZX235/APkZLNuy2jO7836d85yTwwmaD1rtzGdmnnlGBAAAAAAA AAAAAAAAAAAAJCVNdQCMzDmXXeYJ9Q2cPhgMLgoNDkyPDA7mxKJRVywSc0ZjUYfqfEg9FrMlZLaa g2aLJWC12bodtrTtDpfrdZvH8dJff/c7r+p8AI4NBSBJnHHuRZP9ocBnvD1dZ3e0tEzp7mizx+Nx 1bEAMZlMkpNfGM4vLt3pyc5+3pme8bOXnnxsj+pcAI6MAqBj55//6cx2b8tdbU2Nl+7f825BPBZT HQk4Kk3TpKSiyltSUfV0QXH+rU///vftqjMBQFJYumLVKTPmHL/VZnfERSTBYCTrsDuc8Rlz5m05 c+WFJwsAYGhLz71o2ZSZs/eYzGblO24GYyyHyWxOTJ05Z/dpKy84WwAA71lxySW5c044cbXZYlG+ o2YwxnOYzeZE7XELNp11+eVFAgBGdtLpZ9/tycyKig52zgzGRI2MrOzo4tPP+pYAgNGcc9llntrj FmwSHeyMGQxVY8rM2XvOWrUqWwDACE5becEZBSWlA6KDHTCDoXoUlpQFTlt54VIBgFS2ZPnKK11u d0x0sONlMPQynK70+CnnrPyMAEAqOvnMFbfaHU4e7WMwhhg2uz2x+MxlXxMASCUnnr7sm2Ye72Mw jjjMFkti8ZnL6gUAUsGSZSuusdntyneuDEYyDKvNljjl7BVfEABIZkuXX3ChM83FZX8G4xiG05Ue P/Xc81YIACSjsy6/vCg7vyAsOtihMhjJNrJz8wfPXbWqRACMC7PqAKnMHJMtTQ17c1TnAJJRcCBg jot5VU9nxw9UZwGAYZv/saWPig7OohiMZB8LTzntYQGAZLD0vIsW8iY/BmNsht3hjC89f9XxAmBM cQtgHFg00xud7a0e1TmAVBCLRjWL2Xx2T2fHA6qzAMBhvb+QifKzJgYj1cbHzjrnSwIAelVYWhYQ HewsGYxUG4UlZYH6+nqTABgT3AIYQ4tPX/b1bZvePEN1DiAV+X1ea8yWHj6w593XVGcBUgEFYAzF 47GnvX29dtU5gFQVjUYW+Pr77ladA0gFXE4bI6csO/+Kpoa9TPwDxlHL/n3upSvOu1R1DiAVUADG SFdbyy2qMwBG0NXSeqvqDAAgIiIrVqxIc7ndMdHBRCkGI9WHy+2JrVixIk0AjApXAMZAbzj2pYDP x+8SmAABn9fUE4pyxQ0YJQ5aY6C3q+t81RkAI+nv6eE7B4wSBWAMdLY2TVWdATCSztbm6aozAMmO AjBKp523akZnW6tDdQ7ASDpam52nXXDxFNU5gGRGARilYCBwSSKRUB0DMJREIiHhgI/HAYFRoACM UnggMEd1BsCIQoEBvnvAKFhUB0h2AwHfZNUZRERMJpPUzVsok2fMEndGpuo4SEG+/j7ZtXWzbHlz ncTjcdVxJBDwcgsAGAUKwCj5+vsKVWfIyS+Uq2/5ihSXV6qOghT3sbOWS/P+vfLL+++W7o52pVn8 /f1FSgMASY5bAKMUDAadKref5kqXL3z1mxz8MWFKKibJ57/yTXGkqV2LJxgcUPrdA5IdBWCUIuGQ 0hcqLT33AsnJL1AZAQaUW1AoS5dfoDTDYCjEFUxgFCgAozQYDiv9Hc5ecKLKzcPA5pxwktLtq/7u AcmOL9AoDYZDmsrtc/YPVXLz1U5/Uf3dA5IdBWCUVM+GNlu4Cgo1VP/tqf7uAcmOAgAAgAFRAAAA MCAKAAAABkQBAADAgCgAAAAYEAUAAAADogAAAGBAFAAAAAyIAgAAgAFRAAAAMCAKAAAABkQBAADA gCgAAAAYEAUAAAADogAAAGBAFAAAAAyIAgAAgAFRAAAAMCAKAAAABkQBAADAgCgAAAAYEAUAAAAD ogAAAGBAFAAAAAyIAgAAgAFRAAAAMCAKAAAABkQBAADAgCgAAAAYEAUAAAADogAAAGBAFAAAAAyI AgAAgAFRAAAAMCAKAAAABkQBAADAgCgAAAAYEAUAAAADogAAAGBAFAAAAAyIAgAAgAFRAEbJZFL7 K4xFo0q3D+NS/ben+rsHJDu+QaNkszsSKrff3dGucvMwsK72VqXbV/3dA5IdBWCUbHZ7XOX2N617 TeXmYWCb1r6udPuqv3tAsqMAjJLV7oip3P7Lf3lSutrbVEaAAXW1tcrLzz6pNIPN7uD+FzAKFIBR cqalBVVuPzgQkJ98505p3r9XZQwYSNO+PfKTu++SUHBAaQ7V3z0g2VlUB0h2Hk9mq4hkqMzQ3dEu 933lZqk7fqHUzKgTT2b2qH9mcCAgoYGARKMRiQ5GJBwOjUFSTBS73SEWm1UsFqs4XenicKaN+md6 +3pk19Z3ZMub6ySRUH/73Z2R2aI6A5DMKACj5HSl7xaRaapzxONx2bx+jWxev0Z1FGBCpLncu1Rn AJIZtwBGyeFKe0t1BsCIHM60jaozAMmMAjBKjrT0xzRNUx0DMBRN08Tudv9edQ4gmXHkGgP5RSXB jtZmh+ocgFEUlJQG25ubRj+xATAwrgCMgbzikh2qMwBGkl9Ysk11BiDZUQDGQFZWrtoHogGDyczO /ZPqDECyowCMAUtp/vfSPRmsSgZMAJfbEzeX5N2vOgcAiIhI7XELNolIgsFgjO+oO37hmwJg1LgC MEby8ovvVZ0BMIL8gny+awD0pbRyUp/o4AyJwUjVUVZV3SsAxgRXAMZQ5ZRpnJkA46hiyrTvqs4A pArWARhjhaXl/ramAy7VOYBUU1RWEWht3J+uOgeQKrgCMMYmz5j1bdUZgFRUPaPu66ozAMAR1cyY 2Sg6uF/KYKTKmFI7e58AGFNcARgHVZXVK+xOZ0J1DiAV2B3ORHl1zYWqcwDAsCw4+bTfig7OnBiM ZB8Llpz2awGAZPL+ZUvlO1AGI1lHTe3M/QJgXHALYBxNmzXjhJyCwkHVOYBklJ2XH5k2Y9qJqnMA wIgsXXbBeU5Xelx0cDbFYCTLSEt3x5aee9EyAYBkdvI5K6+y2e3Kd6oMRjIMq82eOPnsFdcKAKSC k8445xtmi0X5zpXB0PMwWyyJxacv+7oAQCpZfNbyW+xOJ7cDGIwhhs3uiH/sjOVfEQBIRUvOPv9y l9sTEx3scBkMvYx0T0Zs6YrzLhUASGVLV6w6pbC03C862PEyGKpHUVmF//QVFywWADCCFStWpM1a cMIaTdOU74AZDFVj+pzjty1ZtYoX/AAwnhNPX/bNjOyciOhgZ8xgTNTIzM6NMNkPgOGdtWpV9pwT TlxtsViV75gZjPEcZrM5UXvcgk0rL7mkQAAA7zlt5QVnTJs5d5fZbFa+o2YwxnKYzebEtNlzdy49 //zTBAAwtNNXXLDYk5U9KDrYcTMYox2erOzBM8/7OEv6AjqjqQ6AoVntjlgkHOJdDUh67/8tW1Tn APBhHGB0qKymrpqDP1JFJBwyF02fW6E6B4APo5Xr0GAseqrqDAdzONPEZreLpnHBKBkkEgkJh0MS DgZVR/m3eHjgNBH5peocAP4/CoAOxaKDC1VnEBEpraqRH9x/v5y4cIHqKBiB19auk5tvvkmaG/aq jiKJ9/6mKQCAjnCZWYdisegk1Rmm1M2S11a/zME/iS0+YaG8/sorMrl2puooEo3GqlVnAPBhFAAd SsTjSldGs9od8tjvHhGr1aoyBsaA1WqVx373O7HaHUpzxONxt9IAAA5BAdCjRMylcvPHL1wk+Xm5 KiNgDBXk58vc+YrvKiViLPcL6AwFQIfi8Xiayu3PmjlL5eYxDmbOUvuZxuNxp9IAAA5BAdChRDyh dHJmejona6kmw+1Ruv1EPMH9JEBnKAAAABgQBQAAAAOiAAAAYEAUAAAADIgCAACAAVEAAAAwIAoA AAAGRAEAAMCAKAAAABgQBQAAAAOiAAAAYEAUAAAADIgCAACAAVEAAAAwIAoAAAAGRAEAAMCAKAAA ABgQBQAAAAOiAAAAYEAUAAAADIgCAACAAVEAAAAwIAoAAAAGRAEAAMCAKAAAABiQRXUAAMDo3FpR URWU0GmReKIoEpcsuyZtNk3bme2J/6N+a6dfdT7oEwUAAJLQf5YVXLV7IHzj9kBw6r3799uG+v9Y NU1mu13eqS7nP0vttjvv39+ycaJzQr8oAACQRD5bVvCV13u9dzzU2J5+tP9vJJGQt30Bz9u+wHKr pi0/LSdj1/Fux6e+39C+diKyQt8oAACQBG6rKate193/8v80tpeN5N+PJBLyj+7+yWv6fGs+WZjz p2lt3avqReJjHBNJhEmAAKBz15cVnPdIU/uOV3u9Izr4H2wgFpdH27ov/EeWe399ZWXmWORDcqIA AICO3VBeuOq3bd1/ag4NjukV23/2+kr/0tO1p760NHssfy6SBwUAAHTqhqriM37b2vVoTyQ6Lvvq DV5/9t98fdvri4vTxuPnQ98oAACgQzdXFM/9Q2vXc93jdPD/wNp+f/7qoH9r/RLmhBkNBQAAdObm 6uKypzt7/jXWl/0PZ3Wvt3L91kyeDDAYCgAA6Eh9cXHaq53ejbsHQo6J3O6znX3HX1yQ8+eJ3CbU ogAAgE7Ui5heDQY2b/D6c1Rs/4mO7vP/ozT/HhXbxsSjAACATryVl/36S7391aq2H0+IPNLSdevn y/I/pyoDJg4FAAB04Iqi3N883dlzguoc4XhcHm3r+fH1pUVnq86C8UUBAADFrinO//rv27qvUJ3j A72RqPbHru5nbi0rq1OdBeOHAgAACl1fXnTF79u7vh5NJFRH+ZDm0KDluZ6utTdUVRWozoLxQQEA AEVuqSo6+ZHWzl8HYnFNdZahbAsEXet6Ot+ur60d8m2DSG4UAABQ4MaKiqKn2nqf7xrnhX5Ga22/ v2B9R+vrqnNg7On6Dw8AUlH9ErGs6+t+a3dwYp/1H6lnO3vmXVGU+xvVOTC2KAAAMMHe3Jb5+pp+ f6HqHMfi0bbuKz5XXnC96hwYOxQAAJhAV5bk/+yZjr4FqnMcq0giIY+1dj9wW2XhKaqzYGxQAABg gnyuPP/aR1s7P6s6x0j1RqLan9p7n79pSmmJ6iwYPQoAAEyAmyuKT/xDa8+Pw3F9Pe53rPYEw/bX 2/s28mRA8qMAAMA4u6GqquAvnT1/1/uM/+F6o9+ft7GzZbXqHBidlPhjBAC9qhcxbezrXv/uQMip OstYeqqjd9GVRbk/UZ0DI0cBAIBxtDE/67VXe71lqnOMh0fbez73xYqCa1TnwMhQAABgnPxHSf79 T3f0LlKdY7yE43F5vLXnZ7dWFixUnQXHjgIAAOPgi+WFVz7S2nVTck/5O7rOwYjpL539L9WXlmar zoJjQwEAgDF2W01Z9ZMdPT8Px+Oqo0yIHYFQ2uoB3wbVOXBsKAAAMIbql4hldUfv2ubQoEV1lom0 uqe/6rKi3EdU58DwUQAAYAy9tS3rtfVef67qHCo83tZ9yRfKCr+gOgeGhwIAAGPk6pKC7zzT0WvY CXGRREL+0N790G2VJXNUZ8HRUQAAYAxcX1p09uNtXV9O9Ul/R9MxGDH9rbvvlfri4jTVWXBkFAAA GKUbKyqKnunuecoXi2mqs+jBO76AZ30k9IrqHDgyCgAAjNImX9/r+4Jh1sY/yHOdPfOuLi74ruoc ODwKAACMwuVFuQ+v7umvUp1DbxIi8kRH15duqSo6WXUWDI0CAAAjdGNl/vl/7Oi5XHUOvfJGY9pf O/qeq6/NS1edBYeiAADACNRXF+Q/3d7/aDBmjMV+RmpbIOha3xFZrToHDkUBAIAReLU3uGZvMGxX nSMZPNfZd/w1xQV3q86BD6MAAMAxurw479cv9Xgnqc6RLN6fD3A78wH0hQIAAMfgxsr88//Y3n2l 6hzJpj8a057v7HuW9QH0gwIAAMNUX5PtebbD+3vu+4/MFn8w/a1I6HnVOfAeCgAADNMb/fHVuwZC DtU5DmeKyyF/nDNFbCb9rkf0l66exZ8vL7hRdQ5QAABgWK4tLbz9r519c1XnOJxMi0WemDVFzsrJ lO9NrlAd57DiCZEn23vuvbWigrUTFKMAAMBR3DGpZMqfO7q/o9d1/k2ayC/qJkl12nsXJz5Tmi9X leQrTnV4reGIeYOv7x+qcxgdBQAAjuK1Xu8/OgYjut1ffrOmTM7KyfzQP7tvaoWclOlWlOjoVvf0 V11ZnPeQ6hxGpts/aADQg8uLch/+Z6+vVHWOw7m4MEduKC865J9bNU0enlkjJXb9vqLgzx09X7y5 ovhE1TmMigIAAIdxfUXh0ic7ei9TneNwZrnT5KFph7+Vnm+zyuOzp0iaWZ+7em80pv2jp/+5+tpa /baUFKbPvwoAUKy+ttb2Unf/036dvuI3z2aVx2Yd/eA+250mD0ytnJhQI/C2L5CxrbvtCdU5jIgC AABD2N7V/sct/qAuX2Jj1TR5uK5GyhzDO3G+tChXrisvHOdUI/dUR+/KGytKlqvOYTQUAAD4iJuq is98qrPnXNU5DufuyeWyOOvYJvh9q6bsmP+diRKOx2V1T98jPzv+eKvqLEZCAQCAg9QvEctLXf2P h+L6XO3vgvxs+VxZwTH/exZNk9/U1UihXZ/H2E2+gOfl5oZHVecwEgoAABxkx/a8x9/2BTJU5xjK JKdDfjR95Ovn5Nus8svaajFrupzWIE919l54fXnJaapzGAUFAADed0tV0cnPdHWfrzrHUBwmk/xm ZrV4LOZR/ZyTszxye1XxGKUaW8FYXP7Z1/eHeo5NE4JfMgCISL2I6ZVu358DsbguT4+/P6Vc5rhd Y/KzvlxZIqfn6PIih2z0BjLfLcz9neocRkABAAARebcw93cbvP5s1TmGcnFhzpgu7WvSRH4+o1qK dbpI0NOdvRezQND4owAAMLxby8rq/tLVe7HqHEOpSXPIg9Mqx/zn5tos8tuZNWLV4XwAfyymrenz /lF1jlRHAQBgeBv8/c94o/pb8MdhMsnDM2sk3Ty6+/6HsyAjXe6s1ucqx2v6/YWfKcn7puocqYwC AMDQPl9W+MVXer2VqnMM5YFplTIzPW1ct3FTRZGsyMsa122M1F+6+r9cP6U4V3WOVEUBAGBYN5WW Ol/o6r1Xj6/5vaIoTy4vGv9jnyYiP55eNexVBSdSa3jQsrEvyK2AcUIBAGBYzdHQE3uCYYfqHB9V 5bTLPVPLJ2x7WVaL/EKn6wP8ravv5OtLi85WnSMVUQAAGNJtlSVz/trZu0x1jo+yaJr8orZ63O77 H86JmW65QYfvCwjHE7LG6/ut6hypyKI6APQnkdDjBVF9CgX8sumfr8q2t9+W1pZW6ezuka6+PgmE ghKLxyUWi4v5/be12SxWcTmdkpuVKfm5uVJeViZ1x8+T6ScsFItFn8uzprK1/d5nfDp8098dVSWy IEPNO4jurC6VV3u9ssEbULL9w1nv9edcVZr//V82dXxJdZZUQgHAId7d9a7E43ExmbhAdLB9W7bI 83/6o6zftEl2NDZKe2+PBINBkVEWJs1kkvS0dCnJzZUZlZWyaMF8OeeSSyWr4NjXe8fwXFtaePvP mtp0N/19UaZbbq0sUrZ9q6bJ/8yolsXrt8hATF/vQvhrZ99N9dUF99bvae9QnSVV6K79QsSdk9/o 6+5QunPKyMmTT191jdx8/XVimeBLkXoR6O2Thx96UF587TXZfuCA9Hv7J2zbmmaSvOwcmV09SVYs O0fOu+rqUV0luO/Bh+T+7317DBMeG3dOfpOvu6NMWYCD1C8RyyNvOLzvDoScqrMczGMxy5qFdVLh sKuOIj9v6pAbdzaojnGICwtyXv5Te/epqnOkCk7xMKT+7k558J67pbauTv7r7u9KOBxWHWlCBHr7 5P4v3y5LF50g02fXyTd/+hNZu+WdCT34i4gkEnHp6O6UF99YJ9fX18uUyZPlvFNPld8/+IBEo5EJ zZJq9u7I+5neDv4iIj+YWqmLg7+IyDWl+bI8V3+PBj7f1bvk1rKyOtU5UgUFAEfk7++Vnz30gNTO rJPbv3anBAYGVEcaF88/8ju58IzTZcacWXLfb/5P3t3fILFoVHWsfwuHQ7Jhxza59XvflenTpsln LrpItq1bozpW0qmvrMx8sbf/U6pzfNQF+dlycWGO6hgf8sPplZJj1ddd4kAsrm0LMiFwrFAAMCxB v09++8v/lbq6WvmPaz8nHZ1dqiONWjwWk4fvv1dOmj9Prrr1Flm3dYtEI4OqYx3VwEBAnlvzupxx 4YVy0vx58tTP/1d1pKSxPeh/uDU8qKujWo7VIvdNrVAd4xB5Nqvcq8NcL3b3z+aVwWODAoBjMhgK ygvPPCkLFsyTz37xOmnvSL75OOGBAfnWDdfLjOnT5cv33isNzU2qI41MIiENzU3yhbvulHmzZ8vD 99+rOpGu3VJVVPFCT99y1Tk+6v6plZJv0+dTIKsKcmRlvr5uBUQSCXnb5/uF6hypgAKAEYmEQ/Ls n/8g8+cdLxd98hLZtWeP6khHFQr45ds3XC+zZs+WnzzxuPj8XtWRxkxrZ7t8+d57pW76dPnBHV+W eCymOpLu7PKHH+2NRHU18XlZbqZcVKDLFxD+2w+mVkqWzm4FvNrrrbiutOhy1TmSHQUAoxKLRmTt qy/LaUtPkYs+eYns2LlTdaRD9La3yy1XfkpqZ82UHz/xuPgDPtWRxk1vf6/c+3+/lrraGfLtm26U yKAxJm8ezc0VxXNf7Ok7QXWOg2VbLfLQ9CrVMY6qwGaV70+ZuFUJhyMhIq97vQ+pzpHsKAAYE7Fo VNa++rKcftpSOfPsc2Tdhg2qI0l3U6PcesXlcvwJC+XRF1+QUDCoOtKE6ff2y48fe1Rm1NbKLVdf Zaj/9qFs9gd+H9TZc+33TKmQAp1e+v+oSwpzdffCoI3eQOa1pYW3q86RzHR1OQzv0cM6AKOlmUwy c+p0ueuuu2TRKadM6LYP7Nghd335dnl541sSjfDInIiIyWxWeltA5ToA11cULv3xgfaXojpa4fKc 3Ex5YvYU1TGOSUt4UOavfUf6o/q5vVTrcga2BoJqlk1MAVwBwLhIxOOyeftW+filn5STFiyQ537/ yLhvs+GdzXL1+efJx848Q158Yx0H/4MYeU7ANn/wp3o6+KeZTbqcXX80xXabfKNaF2s5/dvWQNB1 bUnBHapzJCsKAMZXIiENTQfkM7fcLCfNmye//N7dY76Qzd8fe1RWLF0qHzvnHPnbG+tYKAf/dmtl wcJXe726OtW+o6pENwv+HKurSvJlvkdfJ9zrvH5uA4wQtwB0KBVuARyJy5UuS+fMkYsuulBOX3Wx mEaw1PCmV1bLow8/LH9bu046e5J/TYJUp+oWwDk5mZv/2t03c6K3ezg1aQ5Zt3Cm2E3Ju+vd6AvI kvXbJKajqyqfLyu87ieNbT9SnSPZJO9fYQpL9QJwMLvDKZMKi6SmtFTqpk6RaXV1kp2fL0XllSIi 0t3eKl1t7bJv17vy9pYtsquxSfa0tojPlzqP8BmBigJwS3n5jB82NW0Nx/Uz+e/Z46bJKVke1TFG 7YYdDfKLZv2sAbIgI73zjX5/vuocyYYCoENGKgAwBhUF4IKCnJf/3N69ZCK3eSSfKMyRX9ZWq44x JvqiUZmzZrN0DepjuWxNRG6oKDn3gf3Nz6rOkkyYAwAg5dTXZHte6/WerDrHB9LNZvl2jb4m0I1G psWiqwmBCRHZ7g98X3WOZEMBAJBy9g2Y7+8cjOhm//a1SSVSZLepjjGmPlWcJwsz9DMh8NU+74w7 JpXoasKn3unmCwIAY2VNn+9S1Rk+MMnpkGvLClTHGHOaiHxncrlu7iMHY3HZPRD8b9U5kgkFAEBK ua6s8D/eHQg5Vef4wNerS8Wq6eUwObYWZqTLCh29LGhtn//U+iWirxcX6BgFAEBK2TkQ/JLqDB84 zuOSC3X+sp/R+q/qMrHopOA0hgatbXvyb1CdI1lQAACkjBuqqgrW9vmnqs7xgW9Ul+nmEvl4qUlz yKeK81TH+Lft/tB/qs6QLCgAAFJGd9j/PV8spotj7mnZGbI0O/mf+R+OO6qKJc2sj8PJ2n5fxW2T SierzpEM9PGJAcAY2OofWKk6g8h7E+S+UWOcpTyK7Da5rqxQdQwREQnHE9IaDN2lOkcyoAAASAm3 l5bO3Owb0MWMtIsKcmSO26U6xoS6saJIsqz6mH+3PRBarjpDMqAAAEgJB6KhO/WyPv1NFUWqI0w4 j8UsnynRx2q8G33+rNsqS+aozqF3FAAAKWF7IHim6gwiImfkZMhsd5rqGEp8vqxAnCb1h5V4QqQ5 FP6y6hx6p/6TAoBRumVK8bTN/kCG6hwiIjeUG+/s/wN5NqtcWpSrOoaIiOwcCJ2hOoPeUQAAJL0u /+D1cR1c/T/O45IlBpn5fzg3VhSJWQfrArzjD2TfUFWVekswjiEKAICk1xgaPEt1BhGRGw189v+B Kqddludlqo4hg/GEBMKBz6nOoWcUAABJrV7EtMUfrFSdo9Jpl5U6WhZXpVsqilVHEBGRlsHBC1Rn 0DMKAICk1l1WcHGHDt78d3VJvm6WxFXteI9LF49Bbg8Ep6vOoGf6eGgTSAEWq1Wy091Snp4u+Xab eMwmSbe8d1zqi8bFF41JUzAkLf6A9Pt9Eo/HFCdODV2R2PmqM5g0kU8U5qiOoSuXFOXIJl9AaYaG YNh226TSyffsbdqlNIhOUQCAEdI0TYqyc2RxbrZcnuOSU53WYf+7kURCnvBF5A89Plnf2SW93v5x TJra2iOR41VnWJKVISV2m+oYuvKJghz52q5GiShcmyEhIt5I5GIR+ZayEDpGAQCOkc1ul8UlJXJX cZbMs5tH9DOsmiaXemxyqSdHpDJHnvYPyv0tPbKxpUVisegYJ05tDQMhG5s9sAAAIABJREFU5Wvu XlLE2f9H5dmscmp2hjzf3ac0R+dg9FShAAxJ+X0zIFk4nWly2fQpsu+kWfJ0Ve6ID/5DWZluk9VT CmXz4rmyrKZarFbOJofjxoqKooZQ2K4yg8tskpV5TP4bih6KUUsoPEN1Br3iCgBwFK40l1xSVSbf K3CLfZwneVVYNHm8Ike6yrLkq21e+cPeAxIOh8Z1m8kslAiuVP38/4q8LHGZx64MppLleVnitpjF F1U336UhFNbHykQ6xBUAHGJpVZVU5rN+RpYnQ+6YXSvNJ9TJA4WecT/4HyzXZJKfFWfK7kUz5dJp U8XhcE7YtpNJKCJzVWdYlsvZ/+E4TSZZmqV2YaSOwYi5vrJS/cIEOkQBwCFO8KTJlpkV8sdFc2Vm SaloBnu0KcuTKXfMrpX986fKV3NdYtHUnWJmmTX5n5IM2b9oplxfN0PSXenKsuhRfzw2VeX2zZom Sw2+8t/RnJajdoXmeEKkJxo+QWkInaIA6JBV03Rxa+asNKusmVYsL550nMwrK0/5IpCflSP/NXem NM6fIl/Ndenqy+EyiXynIF2aFtbKHbNrxZ3uVh1JF/qj0TKV25/tTtPNK3D1Sg8FKRiPLVCdQY/0 tI/D+yyaNvznySbACXazrJ5SKC+fdJycWFEhJlNq3e8szc2Tny+YI3uPq5abs/V9qd2iJeSruS5p XDBD/mvuTMnJNPbl557BqNL7u/M8XJE5miqnQ3JtakuSPx6vVRpApygAOmSWhNIjbDwx9Jn+PLtZ XqgpkH+dNEdOnTRJLEk8U10zmWRmSak8fsJc2TG7Sj7pTq7/FouWkJuznbLv+Mny7bkzJS8rW3Uk JfyxmEPl9o/zqF/tTu80ETlO8aqA4USciYBDoADokEnTdH2KXWczy9NVubJ78Sy5cvpUyfTo4i2s w+JwOOXs6mp546TjZM20Ylnm0tXFlmNmEpEbsp2y77gaeXDebCnO0ed+zvTecWDMBWNxpd+VyWlK +0fSqFb8e4omJE1pAJ3i5pUOmZKkmOWaTPKj4gz5UXGGPOWPyA9be+St9nbdPbZmtlhkSl6BXFmU I9dm2sWaonMZrs6wy9VzJsmjvlL5VkOrNHS0q470b1bT+NzWCsXjSr8rFQ6lSxAkjSqn2t9TOBbn Xs0QKAA6pGnjc7Y0ns5Lt8p5kwskWlMoj/vC8khXv7zV1S1en1dJHqczTabl5MiFeZlyTaZD3Kak +5WO2CfdNvnkzAp51l8id+5vlXfb20QULscqImIZp4mt/pjaApBh1fXFOt3wWNQeaiKS0PfkHkUo ADqUhMf/f7NoifeXuM0TmZQnuyJxeaQvKK/1+WW3zyfd3n6Jx8Z2URBN0yTD7ZFKj0fmZbjkE5lp cqKDP+3l6RZZXlsmq6uK5D/3NMs+hVcETOM0ryWSiI/Hjx02W4peTRprDsUFPBpPJPe9vnHCXhLj arLVJF/Pc4nkuUSkQCKJhKwJxWRDMCLbg2FpCIalKzwo3sFBGRgclGgsJpHoh9fCt5jNYjGbJc1m E7fNJlk2m5Q77TLVaZc5DpucnGY21Bn+sVqSZpFPFuXK3UoLwPjMa7FomgwqvLoRjMclnVUAj8of U1vULJrwgo0hUAD0SenRzDSOC99YNU1OdlrkZKdFRLgqZxTaOP1NWzUtMSiHeWxlAgRiFIDhGBjj q37HyqRpFIAhJMVkMwDJTRunVaQsii/BDyg+s00Wqq8AmEWLKA2gUxQAfVL8ehNgbI3XFYA0s0np kSWg+Mw2WaguSjazBJQG0CkKgD5xQxsYBrfZPKhy+x2DnFgOR6fi35NdM/cpDaBTFAAASctlMYdV bn9fUOnmk8Zexb8nh0nrVBpApygAAJJWmsk0oHL7FIDhaQiqXRzMQgEYEgUAQNLyWM1dKrdPATi6 cDwhLWG1twCcJm2n0gA6RQEAkLTcZlOTyu3vGdDXstd6tD8YlpjilSidZm2T0gA6RQEAkLScJvNe ldvfHgjyJMBRvOH1K92+WdPEI04KwBAoAACSltOibVG5/VgiIRu8PGF2JG/0qy0A+TZrtL6hgUs1 Q6AAAEhabpv976ozrOlTe4DTu3/1+ZRuv9Ru61caQMcoAACS1j27G/fkWi1KV5lZ16/2AKdnfdGo vDsQVJohz25pVBpAxygAAJJamdOu5p3T73u9zycBlgQe0gtd/RJXvK5ptsWyVW0C/aIAAEhqRXZr g8rtD8Ti8kI3C80N5cnOHtURJMNmXq06g15RAAAktTyrZY3qDE92qD/Q6c1ALC7/6FZ7+92qaZIX s/5JaQgdowAASGoZJuvTqjP8tatP+Qtv9Ob57j7lt0YmOe3B+qYm2tlhUAAAJLXsptYXPBaz0jvN A7G4PKWDy9168rtWpYs0iohIudPeoDqDnlEAACS1epH4DJezQ3WOHx1oVx1BN/YMhHQxL6LEaXtJ dQY9owAASHrlTvs61Rk2+QKyljUBRETkR43tymf/i4jkmCy/Up1BzygAAJJegdXyqOoMIiI/amxT HUG5/mhMF5f/q5z2wfsOtL6pOoeeUQAAJL2c6vYnVC8IJCLydGevbPErfUOxcg/ub9XF+xGmu5zb VWfQOwoAgKRXv1qiczyu3apzxBIJuXO3cReeaw0P6uYqSLnD9ojqDHpHAQCQEirtDl087/1id7+8 1GPM5ee/ubdZ+aN/IiJuszlRmJH4seocekcBAJASSp3yA4dJH7u0r+5qlEhCB7PgJtBm34Au7v2L iMz1uJrqt3YyI/Mo9PFtAYBRqt/T3jE/w9WkOoeIyDv+Abm3oUV1jAkTSSTki9v3SUwnpWey08nl /2GgAABIGVOcab9TneED39vXIm95A6pjTIi79zbLRp8+/lvdZnOizOb8ruocyYACACBl5Lhj31a9 KuAHoomEfGH7Pgnr4YH4cbTBG5D797eqjvFvCzJdu+sbGtSvQpQEKAAAUsb3d3b5FmW4t6nO8YEt /gH5zx37VMcYN92RqHx6y26J6uTSv4jIZJfzh6ozJAsKAICUMsXlqFed4WCPtHbJDw/o49G4sRRJ JOSyd3ZJQzCsOsq/VTntg4UH2ikAw0QBAJBSHjrQ9ofadKeuZoB/dXej/F3xq3HH2k07GuS1Xp/q GB+y0ON5tl5E/XOISYICACDlzMtw62oWeOz9s+XX+/R1wBypr+1ulF+3dKqO8SEusylR6ki7RXWO ZEIBAJByqhKWm4rsVvXr0R4kEIvLBZt2yj97vaqjjMo39jTJAzqa9PeBU7I9m+7dvz91J1yMAwoA gJRT39IysDjL/YLqHB81EIvLx9/eJa8mYQmIJ0Tu2HVA7tHh+gYWTZNal+Mm1TmSDQUAQEoqd9o/ 7zbr45HAgwViMTlv4075ZXOH6ijDFojF5LJ3dslDOp3MeGKm+8A9DW2vqM6RbCgAAFLSffta95+e 4/mn6hxDiSQScv2OBrl+R4PulwxuDg/K2W/ukGc6e1VHGZJJE5ntcXH2PwIUAAApq8rtvDzTYtHt EfaXzR1y5obtsjMQVB1lSH/u6JFF67boZpW/oZyc6Wl4aH+rLl4ElWwoAABS1v17WhpPy/G8pDrH kaz3+mXxG1vlvw+0iV4WDewYjMglm3fJFe/slp5IVHWcw7JomszNTL9WdY5kRQEAkNKmWJwXF9r0 9UTARwXjcfnKrgNy8vqtSl8lHIrH5YH9rXLcmnd0e8n/YKdnZ7zzg30tupvsmSwoAABS2t3Nzd1n 5WT8r+ocw7HJF5CVG3fKyo075c0JfJFQJJGQh1s7Zc6azfK13Y3SF9XvWf8HPBZzYm6G6+OqcyQz i+oAADDeqlq7vlib7rx8qz+YrjrLcLzU0y8v9fTLfE+6XFOaLxcWZIvTNPbna42hQflVc4f8X0un tA9Gxvznj6ezczOfuXtv87uqcyQzCgCAlFcvEr82y3PNzkDoUT29uOZo1nv9sn6bX76864Cck5sp Z+Vkyuk5GZJhMY/4Z+4eCMnfuvrk+e4+ebXXJ7Ek+n18YEqaIzTDZL9EdY5kRwEAYAg/a2x/bHle 5m3PdvYdrzrLseqNROWR1i55pLVLLJomc9xpUpeeJjPSnTLDlSYFdqt4LGbJsJglzWQWbywqvZGY eKMx2R8My9bAgGzzB2WTLyD7dPTynpEwa5qck5dxXf3+lgHVWZIdBQCAYcz32Jdt9NqaW8KDSbvv iyYSssEbkA0TOEdAT87KyXj7wf3tv1CdIxUwCRCAYdTvae84Lz/7RrOmqY6CESh32CKT3Vlnqc6R KigAAAzlJ41tPzonN2O96hw4NhZNk/Pysj734L597aqzpAoKAADDmZdhOn1KmkOfy+9hSCvyM195 qLH9l6pzpBIKAADDqd/d4z2nIPs8j0V/LwvCoeZ6XL2zc4vPVJ0j1VAAABjSg/taXlxVkPtdZgPo W57NGj89O/PU+q1bB1VnSTUUAACG9Yvm9q8sy8t8U3UODM1u0uTjBVlfvKeheZPqLKmIAgDA0ObX 9p2wKCNdny+6N7hPFOQ8/JPGjp+qzpGqKAAADK1+tUQXZuYcx6RAfTkvP2vNw61dn1KdI5VRAAAY 3gP797euzM9YWmS36f8tOAawJMvTMHdG78mqc6Q6CgAAiMi9De3rVhXknZ1ns8ZVZzGyEzLS25c4 02vrVwtlbJxRAADgff99oPkfl+bnXcHjgWrM9bj6znZnzqhvYZ3/iUABAICDPNjU8siVRbmXZVkt lIAJNMft6j85J39afVNTj+osRkEBAICPeKix/feXleRckm21cDtgAsz3pHefn5E1iWV+JxYFAACG 8MOG9scuK8o/n4mB4+tjWe6m5fm2SZz5TzwKAAAcxkMHWp65vChv/lQeERwXy3Iz3z5ttq+qfneP V3UWI6IAAMAR3NPQvGl5UfbU+RnpXaqzpAqLpsknC3P+9FxX3xxm+6tDAQCAo7h/T0vj8n5/warC 7L/y7oDRybJaEteU5N3+aFv3RaqzGB0FAACGoV4k/kRbz7JPl+T/wG3mMcGRmO5yDlxVlH/yT5s6 vq86CygAAHBMftXccfNnSgsWz3S7uG89TJq8d7//4sr0gvsOtLymOg/eQwEAgGN0//6Wf12Uk1dw Xn726xaNmwJHUmi3xj5bWvjl57r65tRv7fSrzoP/z6I6AAAko/qGhpCILP7P8sKP/6O7/9fbAkGX 6kx6oonI0mzP3uOzM868Z3fjHtV5cCiuAADAKDx0oO0Pn8gryF1VmP1Xl9nE3AARqXY6wteWF9zw Uo+3moO/fnEFAABG6f2rActuqyyZs8nnf+QfPf3T4wasAhkWc+LM3Iy/1eaYP1G/tZ3L/TpHAQCA MXJPQ/MmEZlxfXnRFWv7ffe90e/PU51pIqSZTXJ6TubaqR7X5ffsbtzzRJvqRBgOCgAAjLH/PtD6 sIg8/MWKgmve6A3cvd7rz1WdaTykmU2yNDtzwzRn+pX3HTiwTTpYzTeZMAcAAMbJj/a3/3y91593 U1XxWctyM992mFJjl5tvs8YvKMh65YsVxVOe7eyZf9+BA9tUZ8Kx4woAAIyzH+xreUFEXrilvHxG U3jgexu8vjP2BMN21bmOhUXTZJ7H1T7DnfabckvaXe/Ne+hVHQujQAEAgAny/pnyChGR68oK/2Nv KHT9Ru9AXWt4UJf7YpMmUpvu8k13OV4utzjvvLepafPafub2pQpd/tEBQKr7YWPbr0TkVyIi15UW Xd40GP7snmB4znb/gDuaUPcIQabFkqh1O1urHPaXC82O79/b1LT5HV9AWR6MHwoAACj2w6bW34rI b0VEbqiqKgiEA5/rikZPawsPTt0TDOd2DkbGZfKAWdOk0mELlzkdLQVWy9t5Vtsfc2taH61f7Yu+ Lr7x2CR0hAIAADry4L597SLyjfeHiIjcUl4+YyAxuDQQiR3XH49O80XiBf54zOOLxlz90ZgtEIuZ RUT8sbgWSyTEbjKJw6QlzJqW8JjNUbfVEko3aQMei6XHYzU1us2WLWlWbX2uzfyP+ndbuvYEw/8/ QNNE/xdDFQoAAOjc+3MHhj3TPhyPSzj+3v/uiURFQuEj/wswpNR4JgUAABwTCgAAAAZEAQAAwIAo AAAAGBAFAAAAA6IAAABgQBQAAAAMiAIAAIABUQAAADAgCgAAAAZEAQAAwIAoAAAAGBAFAAAAA6IA AABgQBQAAAAMiAIAAIABUQAAADAgCgAAAAZEAQAAwIAoAAAAGBAFAAAAA6IAAABgQBQAAAAMiAIA AIABUQAAADAgCgAAAAZEAQAAwIAoAAAAGBAFAAAAA6IAAABgQBQAAAAMiAIAAIABUQAAADAgCgAA AAZEAQAAwIAoAAAAGBAFAAAAA6IAAABgQBQAAAAMiAIAAIABUQAAADAgCgAAAAZEAQAAwIAoAAAA GBAFAAAAA6IAAABgQBQAAAAMiAIAAIABUQAAADAgCgAAAAZEAQAAwIAoAAAAGBAFAAAAA6IAAABg QBQAAAAMiAIAAIABUQAAADAgCgAAAAZEAQAAwIAoAAAAGBAFAAAAA6IAAABgQBQAAAAMiAIAAIAB UQAAADAgCgAAAAZEAQAAwIAoAAAAGBAFAAAAA6IAAABgQBQAAAAMiAIAAIABUQAAADAgCgAAAAZE AQAAwIAoAAAAGBAFAAAAA6IAAABgQBQAAAAMiAKgQ5pIQuX2o0q3jvGg+jPVROJqEwD4KAqADplN Wkzl9sNxGkCqCSXUfqYWk0YBAHSGAqBDJpNJ6c4yrPhggbEXjKs9/ppMJqWlFsChKAA6ZBa1VwC8 MfbVqcYbVVsALJrav2kAh6IA6JBF06Iqt98dYV+danoiSv+kxGQyqQ0A4BAUAB2yW8x+ldvvHYyo 3DzGQU9E7WfqMJt9SgMAOAQFQIccZnOvyu13hsIqN49x0KX4M3WazT1KAwA4BAVAh5xmc7vK7XcG lF6AwDjo8geUbt9uNrcpDQDgEBQAHbKbtCaV2x8IDoiPRwFThi+ekGBoQGkGh0lrVBoAwCEoADrk sJi2qtx+IpGQdSEmAqaKf4WiklD8aKfDZNqmNACAQ1AAdMhkczynOsObwUHVETBGNgyon9SZn6Y9 ozoDgA+jAOjQE2+9tdtqsyvN8M4AEwFTxbaBkNLt2+wO+fH6LdwCAHSGAqBT6U6n0pVbNvfx1Faq eLtf7WeZ7nRyPwnQIQqATnkcTqWn4Ad6uyXCksBJL5xISGOP2ifwPHYHl5MAHaIA6FSO096hcvvR SET+EmDxtmT3Z39EYlG1cwBynA4eAQR0iAKgU9l2x9uqMzzVp/bZcYzeM73q13TIsdvfUp0BwKEo ADqVZbP+WXWGN3r6VEfAKG3o7VcdQTLttj+pzgDgUBQAvZoWf8RstiiN0NzTI70x5gEkq+6YSGuv 2vv/ZotFEps3P640BIAhUQB06okntg5muj1KZ0/HYlF5oEftCnIYufu7/RJX/GrnLLcn9oQITwEA OkQB0LEij7tTdYY/tCqPgBH6ow4+uxK3R+l7LQAcHgVAx0oczn+pznCgq1O2DypdkgAjsHUwJs3d XapjSFGa41XVGQAMjQKgY/kO2/dVZ0gkEnJfh1d1DByjezp8ytf/FxHJcTjuV50BwNA01QFwZC5X ejwQ8Cv9nDI9GdI0f6rKCDhGJW/skH6f2uLmTncnfH4fJxmATvHl1LnyrCy107hFpM/bL7/oZzG3 ZPHTvpDyg7+ISEVmlvpJCAAOiwKgcxXprhdVZxAR+d6+ZtURMEz3NbSojiAiIuXpacrfagng8CgA Opdvdt1uMplVx5CW7i55xMsrgvXuUd+gtOpg8p/JbJZJTudXVecAcHjMAUgChTl5g23dnVbVOSrz C2TLzArVMXAEtZsbZH+n0tdIiIhIcW7+YEtXh9p3WgM4Iq4AJIGazAzl7wUQEWnoaJdn/bwgSK+e 8kd0cfAXEZmUmbFRdQYAR0YBSAKlbscNmqaPizW37GlUHQGHcdtufXw2mqZJabr9ZtU5AByZPo4q OKqC7NzB9p4u5bcBRES+NKtW7spzqY6Bg9zZ4ZcfvLNNdQwRESnOyR9s6ebyP6B3XAFIElOys3Tz StUHd+6RVl4SpBvt0YT8eNc+1TH+bXJ2xlrVGQAcHQUgSVS606/Tw9MAIiLhcEiuauARb724oqFD wqGg6hgi8t7s/0Kn84uqcwA4Om4BJJGqwiL/vrZWXVx71zRNnjhhjpydpou7Eob1TCAil67bpItl f0VEqouKfXtaWzyqcwA4Oq4AJJG6nMz/U53hA4lEQq7askd6uRWgTHdM5Note3Rz8BcRmZGZ9XPV GQAMDwUgiTi2br/e5UrXzd7e6/PKyt1tqmMY1opdLeL1q1/y9wMuV3rCsX3rbapzABgeCkASeUIk VldQsF11joNtbGqUr3b4VccwnNvb/bK5uUl1jA+ZVVCw5QmRmOocAIaHApBkqj3u8y0Wfd13/+G2 d2X1AAsETZS/D0TlJ9t3qo7xIWaLVSqzMj+hOgeA4WMSYBKqK69o23Jgf4HqHAfzuD2y/rgpUmKh U46nxkhcFry1U3x+n+ooHzKrrKJlc+P+EtU5AAwfe+skNMflvlrT9PXReX1eWfz2XunmAvC46U8k ZMmWfbo7+GuaSWaluz+rOgeAY8MVgCRVXVjs29PWkq46x0dNyi+U9XVlYtfJ0sWpIpxIyLwtB2Rf R7vqKIeYXFzav6ulKVN1DgDHRl+nkRi22bkZX9DbVQARkb0dbXLKjhaJqw6SQuIicvq7bbo8+Gua SebmZn9edQ4Ax47TtCQ2ubi0b1dLU4bqHEM5pbJSnqnOp2GOUlxEzt3bKa/u089SvwebVlLWs6O5 MUd1DgDHjv1zEpuf47nSZNLnR/hKQ4OctKNFwjpapCbZRBIJWfpuq24P/iaTSeZmej6tOgeAkeEK QJKrLS3r2NrUmKc6x+FMyi+Uf9aVSQZzAo5JbywhJ2/T5z3/D9SVV7RvObC/UHUOACOjz9NHDNv8 jJwzrTb9vnl1b0ebzH5rt+yPciVguJqjcZm3ea+uD/42m11m52SfqjoHgJHjtCwFnFRds+H1PbuP V53jSDzpHnlkZo0sSbOojqJrfx+IyhXv7NLdo34ftbhm8trXdu9apDoHgJHjCkAKWJCf9zGP26Pr U2yv3ysr33hbbmrV94FNpa+0++WiNzbr/uCf4c6Iz8/L5ewfSHL6eME8RmVtU1P07Mk1jp1dXYtV ZzmSRCIhb3V2yTODmlyQ5ZY06qeIvLfAz1m72uTJ3XskkdD5A5SaJmdWV973fxs3Pac6CoDR4RZA CplWUta9o7kxW3WO4fC4PfLz2mpZ5tLXew0m2jOBiHx2y27dn/V/YHppWff2psZc1TkAjB7nYClk bmH+SQ6HU3WMYfH6vHLxuk1y5u52aTfgBMHumMjKfV1y6bpNSXPwtzucclxe7smqcwAYG9wCSCFb Wlu7TquunrGnu7tWdZbhauzvl5+190rImS5LXDbVcSbE1zsCcsXbO2R3V6fqKMfkjJqaR/+8ZctP VecAMDa4BZCC9LxC4JGU5ObJvTWlsiJFbws85Y/IbbsbpaW7S3WUYzalpLTv3eamLNU5AIwdbgGk oJPyc+eku9xJd129uatTLlm7USa9tUd+0R9WHWfMPOIdlJnv7JfL1m1MyoO/Ky09MbO4SNePmQI4 dtwCSEGb2tr6zq2ZGt/R07VUknAp3kAoKH9raZef94UkZnfKImdyXhH4rTcsl73bLA/v2iN9gYDq OCOiaSZZVlPzrT+/velPqrMAGFvcAkhhC6uqt63bt2e66hyjleH2yFnFhXJLvltqbfrurFsGY3Jv u1debG2Xfp9XdZxRWzSp+p01e/fMUp0DwNijAKSwVSLmNwqKvPvbW9NUZxkTmib5mdmysjhPvpaf Lrk6eRFSfyIhP+wekEdbu6Shs0MSSXjVZSiVBUUDDe2tLtU5AIwPCkCKu2j+/EkvbN+52+f3ptRn bTKbJdeTKXVZGXJuVrpc5nGIa4L6QCSRkOcCUflTr1/e6vPKgZ5uiUWjE7PxCZKe7k4sn1ox+bE3 t+xRnQXA+EipgwKG9vHa2mue3Pnu/0ajEdVRxo3ZYpXy7GyZlemROqddjkuzyokOi7hNo/sT98UT 8q9QVDYMRGRbMCybU/SAfzCL1SrnT5t21R/eeedXqrMAGD8UAIM4e9q0nz6/891rdb/U7FjSNHE5 0yTH5ZI8h12yrVbJsVok3WISm6ZJhvm9Swb9sbgMJhLij8alKxKV3khEOkNh6QoEZCA4IMk4kXKk NJNJzp0y5WfP7NjxOdVZAABj5JTqya+KSILBONxYMnnqagEApJ45lVX7RQcHGob+xtzKqgYBYBj6 mEaNCTO5Yd+kaSVlPapzQF8mF5f21zTsq1adAwAwjlaJmCcXl/aJDs46GerHpMJi36pVtcZ4EQMA GN1NixY5KwqKAqKDAxBD3SjLLwx+obY2XQAAxnH1otrs8vzCAdHBgYgx8aO8oHDg6kW12QIAMJ6b Fi1y1hSV9osODkiMiRtVhUV+zvwBwOBWiZinl5Z1ig4OTIzxH1NLSnu45w8AEJH3SgCPCKb+mFtZ 1bCKt4ACAD7qlMmTX9E0k/IDFWNsh6ZpiRNral4XAAAOZ/n0af9jsViVH7QYYzMsVmti+fTpP/7o 5wwAwCFWzZz5aY/bExcdHMAYIx/p6e74J+rqWNcfADB8F82fP4m1ApJ3VBYUBT49Z07lEB8tAABH tkrEvHBS9VbmBSTP0EymxAmTqjcf7jMFAGDYLqitvcvlSueWgM5Hussdv3BG3VcO/0kCAHCMrps7 t3gG6wXodlQXFftWLZhVdaTPEACAETtr6tTH7A6n8gMe473hcDoTZ0+b9vujfW4AAIzaRXPmTJ5W Wt4umqb8AGjkMaWktPeS44+fNoyPDACAsbNi2ox7eVxw4keGOyNhzMf3AAACfUlEQVS2snb694b3 KQEAMA5Wraq1LZ08+WWbza78wJjqw2qzJRZNqn77pkWLnMP/hAAAGEeX19bOristbzeZeGRwrIfJ ZE7UlVe0XTZ37oxj+1QAAJggl9TWrphRWtZJERj90DRTYlJhsff82tqLjv2TAABAgU/MmnVJTVFx P4sIjeDAbzIlJheX9l02a9bHR/bbBwBAsStqZ516XGVlg8VqU35g1fswWyyJGaVlnZfU1q4Y+W8c AAAdWTVr3tQTJlVvZkXBQ0e6yx0/YVL15kvnzJk8ut8yAAA6duH0mXdOKSntNZstyg++qobJZE5U FBQNLJs+9X9XiZjH4vcKAEBSuLy2dvbJNVNeK8zJG9QMsKiQpmmJopz88CnVk1+9eNasurH7TQIA kKRWzZy56GPVk98oyskPm8xm5QfrsRomszlRnJsfXlwzee0nZ81aONa/NwAYCU11AGAo182dW7wn FLr7gM9/zv6+vly/35dUf6vudHeiPDOzqyzd9Wy5y/WV/3nzzVbVmQDgYEm1U4VxfXLWrIW94fDN LcHQx1q8vvw+v9cci0ZVxxIREbPFIlluT6zY7W4vcqb9Mz/Nce/DGzduUJ0LAI6EAoCktErELDNn Xtwfjny8ezA0pzsULvAGQ3Z/KGgeDIfGZZs2u0PSnc6Yx+4I5Tgd7Tl2+8Ycu+2P0c2bH39CJDYu GwWAcUIBQMq5Ztas0t5Y7PxQIjE1FItVhKOxolA0nhVJxJyhWNyRkIQpHo+bIvGEVUTEatIiJpMp rokWd5hNIatmDtotpl67xdziNJsPODVte6HN9uQPN25sUf3fBgAAAAAAAAAAAAAAAAAAAMDg/h+X KOickKP21wAAAABJRU5ErkJggg== "
id="image469"
x="-3.5096622"
y="59.944988" />
<image
width="49.349518"
height="46.215523"
preserveAspectRatio="none"
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAAADDpiTIAAAAA3NCSVQICAjb4U/gAAAACXBIWXMA AAztAAAM7QFl1QBJAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAwBQTFRF ////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACyO34QAAAP90Uk5TAAECAwQFBgcICQoLDA0ODxAR EhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElK S0xNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AgYKD hIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8 vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T1 9vf4+fr7/P3+6wjZNQAAHJlJREFUeNrtnXdgFcX2xzeF0AkBpPNAmoAFNRp9NjqSpzQBKQKKUkSK WBCQpsgTFBUBlS5IUxGRHkAxCKIIglEELKg0iRDpIaTe81P86aPce+fs7szNbOb7/Td3z9k955Mt Z87MWJYCFb132qqkIz4yTseT3qpnma6ILivTyWDtqG92/lvsJMOV/YjB6a+ykSB6ydj810tB9v/U U4bmv1cmcn9OvvZG5r8TMv+30m83MP+xaUj8PzpWy7j8l96PtJ+nX8qYBsBsJP0CbS1sVv7r5iDn F2p5hFEArEHGL9Zkk/Ifh3xfqkEGATAW6fZTDuhgDgC7kW5/5YA7TMl/TSTbfzmgtiEA3IdcBygH lDUDgIFIdQB9aUY5YDwyHUgrjCgHvINEB9QUEwBI8HPhvcqaoatFBAw2AIDVfq7blI/gssJyQEcA YDQAlFEPABgNAB2vDQCMBoD2lgUARgNA2woDAKMBoJURAMBoAGgqADAbABoCAMwGwNcJABgNAGXU BwBGA0DH6wAAowGgveUAgNEA0LYiAMBoAGhVJAAwGgCaBgDMBoCeBgBmA+C7DwAYDQBlNAAARgNA x68EAEYDQPvKAQCjAaDtRQCA0QBQQiQAMBoAmg4AzAaAhgIAswGgzgDAbAAyGgIAowGgE1cCAKMB oP3lAYDRANBXRQGA0QDQ6kgAYDQANAMAmA0ADQMAZgNAXQCA2QBkNgIARgNAJ64CAEYDkDfKAQDA hZKKAgCjAaA1kQDAaABoJgAwGwAaAQDMBoC6AgCzAfB6OQAAuNXJqwGA0QDQgQoAwGgAvF0OAAAS tDYSABgNAL0JAMwGgEYCALMBoPsBgNkAZDYGAEYDQCevAQBGA+DVcgAAkKaviwEAowGgtfkAgNEA 0CwAYDYA9AwAMBsA6gYAzAYgswkAMBoA75UDAIBkHawIAIwGgL4pBgCMBoA+zAcAjAaAZgMAswGg ZwGA2QDQgwDAbACymgIAowGgU3UBgNEA0K+VAIDRANCOaABgNAD0UT4AYDQA9BYAMBsAGgUAzAaA HgIAZgOQdScAMBoAOnUtADAaAA+UAwCAWmlfDgAAirUuHwAwGgCaAwDMBoCeAwBmA0DdAYDZAGQ1 AwBGA0CnrwMARgNAh/4FAIwGgL6NBgBGA0AfRwEAowGguQDAbABoNAAwGwDqAQDMBiArHgAYDYCe 5QAAEELpWA4AAKHUzuIAwGgAKDEKABgNAM0LAwBGA0D9AIDZABwvBQCMBoCmAACzAcgpAQCMBoDq AQCzAegDADRRmdwB4A0AoInCTuYKAEsAgC76OFcAWA0AdNFYAGA2AC0AgNkAhCUCAKMBsKqcBgBG A2D1AABmA2C1TQEARgNglV4MAIwGwLJqdnwp8TtF+tVPeBMAgDnqgDsAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACA0QCUavnI6Flrduw9T2f9nGHKXkiS/G1Jdfb8H+xY M2v0Iy1LhSL7NZ7ckEOQlspeP6CK2uznf2IXwqy3vuqTT1n6w7vsQ4D1108dw9Tkv+lXCK43tK2J gvRHTUdgvaPpUbLzf9kGRNVL2nCZ3Pxfsxcx9Zb2XiP18Z+KiHpNqU3l5b/OScTTezpZR1b+S+xB NL2oPSXk5D9yHWLpTa2LlALARETSq5okI/83+hBIr8p3owQAEhFH7yrRff7vQhS9rLtcDwDtQBC9 rB3hLgHoihh6W11dArAWIfS21rrLf3QmQuhtZRaT3o2oQKe/XTVlyP1t4u+4oXblUoVjKtWJa9jy vl5PPvPS1CW7MuS7O/XTltXzJz3Tv3P8TdVLFK1QK65R6659h4x5bU7ib3mPgPauAHhb9ekdXj68 xbUxwU4holr8o69/tF9WNeK7Nx+qFaRjpsSt3V9J2JuXSh/z3eQ/3wmFZ5b6ybh2ldmnUui6Actd jkmd3Ti2Oa9xtnBsz0XHgtr6djBD492GaAvDyUKBjeNu6sFXKcv+nlca2D+xyJuHrjvr9Hto4M32 umQibh7xaVbgOxfn8yryuMsodWM4mS0ycqWbPgAlyc/ZNMj5SGWBRrPSbHvMWljP2Ttwq8mB3gru 4By/0F2gfKUZrXrCm7SbBsEHFKQ/6WG33Uoxj+625TH52fIuxkJbr/Q7D+JVzsHd3IVqM8NFc6GV B1yE+mnZ2U+bfbOUEcp6H7FdbmzvtlG+4gg/DXH7OEeWdfc2OZThYq7QytMuLv01uenfPSBGVpPK OO47sJTWuPCmlyJwA+fAba7iVZcxVUf8YvyaiwtfLDP9WyU2qTEje+huWXNijl5i+3nOcaPdBGw/ w0ErsZnFkif9Ov3vbyOzSzWGNT9xrrQbTpyfggLnuFvchOwNhoMFYjOrdQBgX7cIqW3qDPApuYU8 f8P82Od8yUQcdRG0/4jtFzztCQCOPppf8jwVRpva/BIS/W3042CY4lLqmQJi8/eQFwB4v4z0iWrC LoXDrWW6K+avIrRd8XD6Uob5dzwAwOF28icqlhbW/cpL9dfSr5PLOWfq/EOwO6M+nqo/AAtULFvR XuB0U4xcf2/49fI459CtjsuA5cTG25HuABxqaanQ1OBeVxaS7M//zJhPOYc+6zR0XzKMv6c7AJvK Ksm/9UNQr6siJburFmBMg3N1NzmN3UjGoGWa5gDMjFKT/4pBvW4vIttf7wCeHuaUkFIcBi9WbJvX rpNrAGQ/ailS0FfrfeWk+1sSwBWr326es+j9yljnZbHWABxtrCr/1qwgbk9dKd1dZKB6exbnXfM+ Z+GbJrZc9KzOAHxXTVn+rX0ueyhs6raAzjg916WcrarXXGy5E2kMwA/l1OW/mqKRj0B6LqC3JZzD NztqXyvk/MmkAwB7KqjLv9U9SP1fRdXhi8BpKsw4fISTAK5klCfT9QXg50oK8x9sBKy1AnclgtzD 2zKOv8FJBBkfGF1IWwD2VVGZfys5cN1Bhbt7g9U5GceHHXYQwopiu8u1BeBAVaX5rxPY820q/M0M cqknOZWOt+yH8Cux1eIZugKQepXS/Ft9AnpersTfAZdj9k6mVz0ntspu2A05AO3V5t96P6Dn6+ya CitaodplgsJx7aAXO4PzEpFtO4ZxYqurdAXgZafOqt7WqseQV+YkbN2b8nPShhULprw4rEvspWXd sIBNNpvtOGs3Zu3+k3+93p3al5S4eOa4wXf57VsYEPRqUzidTpvsxvA3cRkwJlNTAD521PtVo+eC Q/4HRfetHt/z3+f/k17rvgZ05ZgApaT9i4c0ibH3n1af4W+o3SC+Kbb5IOkJwAH7sz6qPjTvoMDq qWX9a//988cD/egEcxD4niRBDeOtluc1Y+U/E/zXExker7cbxdYyUxNSANLjbHoo2OdHpumDs1uf e+VeEegHb7Ac1v6Q4ev0223+pqmRiHjGoE1Yss0oisczS2bpCcBQe/ajh9j6Rv590o1W5Ck3L+RW d+6j88x7bc49zF6U8L5mvWkvioyU9SAtAdhpaxZW2bH253vvej3gv00h2U/jfU/98T6QJPrVWIbb dvYusq/Y4odaAuC73c6jf7LTmd7+9RHD5zCbNs9Mri9s6vyB4bd4li234kLqZdlaAjDDhumH00mu Bop9xmWRAnHqXra229jBiB7pCMAR/lSMwvOl50G8AkD+71Xkn0YwrnewHYNjxPY+1hKAzmy7tXfK z4N4ILi9kvxTEuOC69oxeIvQXJkcHQFYzzbbScEGJEckFk9titP7dJBvLkW8+swjpCMA3FVY8r+h Igti/KKzFQHwJOOiZ/DNvSW2tl5HADZyv/03K8mCuInyWkX5p8845Ue+OfFUunI5OgJwJ7P0p2j/ uReFnluqAsDHmIhYjD12w1jasx9pCMBWnsV8KxVlQTxZW926148wLjxRYj1jo44AMCcBLlCVhP5C 1w2VAcCpQQ3kGhsgNFXBpyEA3/A2LO6nLAniseBqynxnlRRfOXvNTfE3xQDSEICOLHvXpStLwgNC 51EZuejcsvbzTO0WW/pMQwBOsNaAKfKDshTQ4Fx8/NAyxsVPlfUyW8mnIQC8UYBp6vLPWbnzNmXO GQP43I8Q8RK0j5OGAHAao6zYHIUAvMs4gS+Ueb+XcftjPYGOiTvqNmsIAKctxgr7TGH+6RPOCPQx Vd7fYXhnrW4rXt2/MmkIwAscY11U5p81LG/Fq7oHnWa8A7Fu3eKX6YE6AnA1w1bUQaUAnGZdUPcs Re4Za9LW5nxQilcc2KohAN9wbKnegK4w64oaHFXjndHIbf0iY0irKmkIwHCOra8UA8AcjKy2XYn3 3xkLUzFGQZ+Q21oSKgA4u2fUV5x/eoV5TeFd9qpw31Ds+W6xlSuERrZrCEA6pwq0RDUAP7GvKv/j Cp4DjFX5CwnroD8KbVQnDQHYwLBUMks1AGRjUnL0mDTZ3jmreq1xfxd7WkcARjMsPaQ8//YmpVSY Kbs/iLEXzgD3z5EkHQHg7ASSoB6ALfaurc7MM1Ldi4v4Vk3RiIpwXs0VpCEAWYxCeEwI9iD22V0h PLrvtxLd72F43OO2nD1cRwC+0KAIcE7P2r/A2+bKG6BmbE81KbgFcV/9Dh0B4Hx/zQwFAKlO1iYs +cT3oeMvPqiBbGFfSW3SEYAeDEO7QgEATXd0kWENF0p5QDFmdBUM+vEhXn7+GS0BaCC2Uzw023Fn O10nuMzT+yS4ryF2FHRuyiA1/0fKAWAsadeUQqOVjq80vHmCa0jFCQzeEynE19le3qoBSGNUQEaG CABOQTbwKMFLLguEjLfhYI2pPwuPHqUlAN8y7LwbKgCSCri4WqvAA1tcfYcy7oVBPgTFqw19pyUA HzDsbA4VADTPcqcb3VSs+rkaERQucVOXtARgHMNOcsgAoCEuCbAaOO8cTBRbD9waKl7i5r96AtCT cWv1hQ4AXyu3BFhtnVYGssVrFBQLOCgmnl70o54AMCaF1qAQKrWuawIiex1y5vshse2A8/qES9xc R3oCcKvYTKNQAkD7SrsmwCo03NE0IsZnaMBqvrCvcqymADD+4VqHFADaJmOv4rpOBorSxVO7A+0j +KvwyJ80BaC62Ezn0AJAe+tIIKDARAeexV3d4QHmJswSHXgDaQoAYwSmZ4gBoBONJBBgNbP/8fKe 2GqA7V47iI57UVcAxHc967FQA0CZUnaPK7XU9huouBDlf5HXHOFI4F5dAWAsDz+UQq/nwmQg8ITd D1jxOhmVnZWRHe9BrBqAdIaZ0bkAAL0nZQe5HjYnkzGW+PJb0B0lOuplXQH4nWFmUG4AQEc6yCCg s73m0WPiCSITnXxMh+3XFYADDDPdKXe0TMb2lW3sdYs0ERr0Nz/kuOhB+m/SFYDfGGZa5RIAdLKn hDeBu2ytaj5ZaK+IH6IWiQ56VVsATjHM3E65psTq7gloYmdSS7J4oVc/63yK2urCDmoLQDbDTJ3c A4AypvzLNQG2vmLEpXE/s3tE5+hmdRvVn4GMiYGlKTeVObWySwDC7azOLt4279Ka3i5HL46aACBe 0sCK9FHuIjCtijsCyqfwnYk7u8IvsTZedMQhjQHgvGkfp1xW5vTLXRFwtw1f4v1L3774kGaCA+qR xgAwmqFFU6JCoewVrSJdRGKCjRqk0Fi3i444W1BwwOs6A3A9w85m0kHJY6o5jkR+fil+p9BYxYuO WCN6AvymMwAtGHYWkR7yreuY32EobKxyLF7m46Idcx4X/LwB6QxAf4ad/qSNjo6v5SgUBY+wXYj7 UsdfeIBoRsgUrQHg7BZ+Nemkj9vlcxAL/p6D4q0T4m1V0yOOaA3A+ww7YSlaEUDJo+1Xh2JOsc0L jV+4WpBooeXGpDUA2ziG3iPNlLMsPtxmMMaxjT8qtJV4/s9FmwRN0xsAzniwvX3OQqSfB9trHy7P bg0Qr1t8wRwPQQ9r5O96A0CMFWKcrWygfpxgclk70fiSfXsRknXXeb8WrQ13J2kOwA0cS8laEkCp o4qqeAYI18woed6PRf3AM3UHoA/H0tukqY70ZEcjnm00wU5fmGA6Ub5jugPwFsdST9JWyy9jRqMI uy8gI1pkaxa7bhRPugPwHcdSyVR9CfgtnhkO/o4X94lM/a85XLTp8WztAfAV55h6RV8AyNeLFw7+ /GxhceR/q70sDv7DqOPaA8BaKdSqkKExAYwv9z/VjG3vjGh8L/wEcyDgbtIfgGEsW9N1BoC1+6ud inZrka1/Fo6OC/67OR4AIIFlq0aOzgCkcdoayvHtzRXZGvn3vSL4uET+kx4AgLNr3h96R+tbwCeM BvJ8fHPHReNNf6+c93Hwn0nY8jwEO4a0ZRm7VmsAWBdxgm9OtHBK9P/fEAVzwuZ7AoC5PGurtAZg qdzWtqkiWzs4b9AFTnkCgGO8brvrtf4QyCghtbXtN9Fg4197CWcHL0XLWFslFPsGMhfo7O31Z8AK G+ZuF9h64Nyvtqt/bwoFABOZ9uboDMBj4vO3s2CEqNe/JiNyBVM9AsDBCJ69Ql9rDABjxUs7K8nu FRk7N8wffNfptuQRAOgepsHqJ/QFYLb49A/YsRcrMLb8zx8F3+ZmoWcAWM+12MKnLQAviVsbbe19 91+BtT/niAafR1b4jGcAYG0ffU7PawuAuL/d3iTX3QJrf+6lOifoL9qTdwCYxjUZsUhXAITle7vL ddcObq1wlmih5fc9BMCZGDYBM/TMP2O1/2b2LIp2stxGFHRFyyJpHgKAnuRbfUFLABhrvXezZ1HU MP8aHQ06ANGRvARAcmG+2X46lgS7i8/b7sa9goUpOtGyoH9f4ikAaKQNu7E/qkniUuevzQcY7cF2 u7MEpaXL6algfy6W7i0AUu302BedpyL/Z/OXGPKrwzeAJoy3F7tz9DYKDCbfEuyvspbYDhUA4vGv C9T4UzWP8aiuSU4OfZ1xyvXsGs0RzPnpEBXsr8u8BkC2zUXam2ySDcAzfxlutNJ289FCzrIB9tfq 6+Ui9tEZXgOAlts13/Qz+7fqYPv5/LOHabk+620x8Cproqj93UXXuIj9/eQ5AFiLhVyoOz+3dUvd 0K9CmcB/zji/FbdM73XcVX5TeJODYu3HPrO489iv9CAAhx3s1nPTiI28CnvKsj7nXjMPsd+5Luv5 IeM2mv5CNO9Mnax53sVx6GMyPQiA/YfAX58EzSfuDv52kTS5aw1xU8ZoP021cX3nfBds/Gn3SPZS EU52bv7Acei7kRcBoJ5OPVXsNv/zPZe0QPsObpg1vNPNF3QdPxfQeaAvuehGQz7wt9buqU3P29hi 7gonwU8rHLLQ6wFAag3LjaLK123csd+oSeOGD3iwXbNbahWw0yaXGTTYxS6Pbdqxz4gJ81Z98fna 92dPGtG6qr2VxCc4in4bh5EomeVNAGhzpKVYlQO5/lyp20rO6nLzHbqTuMVCaAGg6aoBsAJt8j5W qdepzqJ/MsqZu7WeBYA5U9CFPgrgOF6l06pOb8nOzqpUtncBcPHpw1OAlVqyi6p0utxp+J3dEXuR hwHIbKgWgADD5FtV+nReljsS4cTfOi8DQCeuUgpALf9exyl0WcHFKg31HPgrne1pAOjXK1UCEO5/ tsTdCl26mdU4wYE/qVOocgEAOnarSgL8DiTnFFfncLib+O934HC91wGgNJX/j5P8edyuzl9bd3MZ brTtsGyO5wGgrAfUJcRvmXy8MnexLqdnjLHtsS95HwAK3u/mSn5XmmilytvlB10m4HvbLjfkCQDo 7WhFKcnnZ5DXV1KRsysOus6A3Vfi8r68AQD9couipGy71Nc3ilxdc9h9Bobb9Pko5REAKHt4uJKs +FlxbpKa/N90TEIGvrLpdFOeAYDok0oq0uLnM7mtkvz3ktOab2/Pwkq+PAQAHe+vYHz45kv9lFaQ /iLzJaXgCVtuH6O8BADRbvmjdIUuqZTuUpD/q3fLSsEmW3435zEAiFbVkp2bnRe7mCw9/YVfkNaV Sb5yNhxXpjwHAGVNkPyRNveSQVfZY8HtDsjMQW8bnp/MgwAQpU2tIzM9j1/aeTO+qszi34dyc/Ch Dd9b8iQAf2jtf8KkJai+v9GgJfUlWb9jtewcZJVgO7+c8ioARN/3KSIlQZEtE/w7SOpW0LXxsHgF s1bpfrb/QXkYAKKzS7rGuM3QFS8E2Us7bWXfam6MV3/2Z1Khpewz2JanAfhDmWt6Ov9mD7+2n/j/ 84cJzQo4sl6i1yZSpLPce181yusA/Pm0/mTknfZvBPlvH7KKu8xk2qp+dewVoKLqj96cTerUjnke Q0wA4Nyn8fdzHonlbuJdMq7j8xvtVmXTv54/pHkVzotnhfjBCWdIrb6ZwtN+UwD468a47f2X+zW/ pljAF7JK9R96/t1tbpaXPb15xoDGVUv4b82Nrt24+4TEo5S3pTEAf+vY9rVLFsyYMGb4E70f7Dto 1CtT532w9rOv9ySny3Nx+sCOT1fMe230wB49+j81csyrU+cn/pBKRsgDAEAAAAIAkH4ALEL4vK9F LgCYiPB5XxNdADAI4fO+BrkAoAvC5325ma7fCOHzvhq5AKAWwud9uWnICz+M+HldR1zNzZiJAHpd b7rqvmiBAHpdLV0BUPAMIuhtpRVy14C1BCH0tpa57MBriRB6W21cAmB9ihh6WZtdt0nfgiB6WXe4 78JfjCia+wZwrg8/C3H0qrKlTMh7GoH0qkZaUrQAkfSmFkqajVlwK2LpRW0rZElShUOIpveUXFHe fPnrkxFPz+X/epkrMlTajoh6S9slr89WCA3CntKiQpZkhY3yIaxekW9UmCVfdRMQWW8ooa6lRg22 ILj6a0sDS53aJGQgwjorI6GNpVbF2r9zEnHWUyff6VDMCoGi4lr1HjV9xfrz5G9R7V3rIUnyt3H5 sfN/sGL6qN6t4qKsXJO/acQdLEiSOvgJ72qtzhAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQOIAAAQA IAAAAQAIAEAAAAIAEACAAAAEACAAAAEACABAAAACABAAgAAABAAgAAABAAgAQAAAAgAQAIAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAABA4gAAZDAAS8dCkrTUkwBASgUAAAAAAAAAAABooQQkJNRK 0AqAd5GQUOtdrQAYj4SEWuO1AmAgEhJqDdQKgM5ISKjVWSsAaiIhoVZNvarVu5GR0Gq3ZsMVY5GS 0GqsZgDEISWhVZxuI5ZrkJNQao12Q9Z1c5CV0Cmnrn5NC7ORltBptoZdK6X3Iy+h0v7SOvYtxaYh M6FRWqyenWudkJrQqJOuvYu9MpEc9crspW/3ar0U5Ee1Uurp3L9cZSMypFYbq2jewt5iJ5KkTjtb 6D+JIaLLynRkSoXSV3aJ8MZElqL3TluVdMSHlMmS70jSqmn3FlWRq/8DuRPhbREQOwkAAAAASUVO RK5CYII= "
id="image531"
x="321.55664"
y="64.635246" />
<image
width="85.751114"
height="83.078178"
preserveAspectRatio="none"
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAA GXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAIABJREFUeJzt3XmcTfXjx/H3ndXM MDN2soTsRIpKSRSyFO0LUkpkTX0jS6VESakQKRKlpI0kS1EpSiKVNVHZ92X27S6/Pyb9VJaZe865 5957Xs/H4z56fJnz+bzdL/e871k+xyUAklROUgtJjSTV/OtVQlKCpGL2xQIcLeOv1zFJv0vaLGm9 pK8k/WlbqjDhsjsAYKNqku6UdIukejZnAVA4v0uaK2mm8ksBCokCACdqKWmYpKvFvwEgHKyR9Iyk eZK8NmcJGXz4wUmaSHpJ0mV2BwFgiY2S/idpid1BQgEFAE6QKGmMpF6SImzOAsB6H0gaIGmf3UGC GQUA4a6RpPckVbc7CICAOiSpm6TFdgcJVpF2BwAs1E3Sx5LK2B0EQMAlSOosyS3pG5uzBCUKAMLV A5JekRRtdxAAtnEp/2Lf0so/EuCzN05woQAgHA2V9Jw4xQUg38WSKkhaYHeQYEIBQLjpJmmi2PkD +KcLJUVJ+sLuIMGCAoBw0lzSh+LvNYBTay5pu6Rf7A4SDPiWhHBRWtI65R/mA4DTyVD+miCb7Q5i N+6JRrh4Vez8AZxdgqRZ4kghbwDCQltJo+wOASBklFf+OgGr7Q5iJ04BINTFKP9QXjW7gwAIKSnK XyDssN1B7BJldwDAoDtl4s4/JjZW9RtepEZNLlOlKtWUlFxCScnF5XLRlYHCyMzKVHZOtqEx0tNS lZZyXPv37tamn9dq8/qflJWZYVJCJUkaKOlRswYMNXyqIZRFKv/bfw2jA0VHx6hV+07qcOMdSkgo ajwZ4HA+SalpKfJ4PKaNmZebq2+WLdKyhR8rOyvTjCFTJJ37138dhwKAUNZO0kKjg1Q6t5r6Dx6h 0mXLmxAJwAlut1up6ammj5uelqq3Xh2vbVs2mjFcX0mTzRgo1HARIELZU5LqGxmg4UWX6KHho5WY XNykSABOiIiIkMfrMfUogJR/qu6iS5spLSVFu3f8YXS4UpKmmRAr5FAAEKoSJL0uA2v9V6teSw8O H6XY2CLmpQLwD5ERkcrJzTF9XJcrQnUbXKi9u3fq4P69RoaqqPzbAo+Zkyx0sA4AQlUzSXH+blws MUn9Bz+hmJhYEyMB+LfIyEhFRVpzvbnL5VLnHn1Vptw5RodqZUaeUEMBQKhqaWTjTrd0VXKJkmZl AXAGMTExlo0dG1tEHW+90+gwhj5PQhUFAKHqEn83LF2mnK5s3cHMLADOICbaugIgSXUaNFK1mnWM DNHUrCyhhAKAUFXb3w2bNr9aUVEsgQEESkREhCIirN3dNLn8SiObV5IUb1KUkEEBQChKlFTO340b NXFk2QdsFWnRdQAn1G1woZGS4ZIJ64mEGgoAQlEZfzeMiYnVudUc9+8csF2kxUcAihZLVGljFwOW NStLqKAAIBQV83fDpOIlWNYXsEEg/t0lGVvPw+/PlVBFAUAo8nutXoMfEAD8FIgCUCwp2dDmZuUI FRQAhCK/F7CKivJ73SAAQc7gv2/HXRlMAQAAwIEoAAAAOBAFAAAAB3LcOQ/ALnt379Tvv23Rvj27 lJZ6XNlZWXZHAkwRW6SIihZLVNnyFVW1ek1VrnIed9uEAAoAYKED+/Zo+dKFWrXiSx07ctjuOEBA FC2WpCaXNdeVV7fTudWq2x0Hp0EBACxw5NABvT/rda3+drl8Pp/dcYCASk9L0ZdLPtGXSz7R+Y2a 6LY771PJsn4v3gmLUAAAky1bPF/vvzVNOTnZdkcBbLd+3Q/a9Ms6XdPxJrVs18nyZwKg4CgAgEnc eXma9vJz+n7lV3ZHAYKKx+PWwrlztHXzBt3d5yHFxSfYHQniLgDAFHl5uXrxmcfY+QNnsG3LRk0a +6Qy0tPsjgJRAADDfD6fprz4tDb98qPdUYCgt2/3Tk2b8KzycnPtjuJ4FADAoAUfztaPq7+1OwYQ Mnb+vk1zZ8+wO4bjUQAAA3b+uV3z3n/L7hhAyPn+my+08ee1dsdwNAoAYMCsaS/L6/HYHQMISfNm z5TH7bY7hmOF410AsZJq/vWqIinhr5eh50QiqJxjdwBJ2vTLj/pty0a7YwAh6+jhg/rh2+W6tPnV dkdxpHAoAC5JTSW1l9RS0sUKjz8XgtznC+fZHQEIed8sXUQBsEko7yhLS7pfUjdJrDWJgEpPS9H6 dWvsjgGEvP17d2vPzj9VoXIVu6M4TiheA1BO0ouS/pQ0Uuz8YYONP/8oj4dzl4AZtmz4ye4IjhRK BSBCUk9JWyQNlBRvbxw4Gef+AfP8/tsWuyM4UqicAqgm6V1JTewOAkjS3t07DG1/7c23qkWbdoqL p8fCel6flGrRASu3O0/rVn6t+W+97vcdMQf27jY5FQoiFArAjZKmS0qyOwhwwpHDh/zetseABzV8 zPMmpgHO7lCOS16Lxr7m5s46r259jRs8wK/tU44dlc/nk8vlMjkZziTYTwH0k/S+2PkjyORk+/+k v9u79zAxCVAwkRbvWzveea8io/z7Tun1elka2AbBXACelDRRwZ0RDmXkAsASpUubmAQoIIsLQGyR OMUXLeb39lxUG3jBunPtJ+lxu0MAABCugrEA3CZpgt0hAAAIZ8FWAGpIek2WH6wCAMDZgqkAxEr6 QFKi3UEAAAh3wVQABklqYHcIAACcIFgKQFVJw+wOAQCAUwTLQkAjJMWZOWBC0aK6uOllqlCpskqW Lq2Spbj1KhB8Pq8yMnIsnWPXn39o9sxpls4BAOEuGApAVUmdzRrssuZX6u6evXVpsysUGxtr1rAo IK/Pq6NH0iydY90P31MAAMCgYCgAAyVFGx2kcpUqGjHmOTW7sqUJkQAACG92F4AYmfDt/6KLL9XL 02eqRMmSJkQCACD82V0A2ksqZWSAZle21KtvvaOoaMMHEQAAcAy77wK4zsjGVc+rrhdfm8bOHwCA QrK7AFzl74Yul0vPvDRRiYk8KBAAgMKyswBUllTF343bdLhOjRo3MS8NAAAOYmcBqGdk4579BpiV AwAAx7HzIsBa/m5Yrvw5qtegoZlZgJDidrv1x29bdfjgQcXFxym+aFEVK5aosudUUESE3Wf27JOe mqr09DRlpKUpIz1NaSmpSihWVAlFi6losWJKKFZMiUnJdse01aF9e5R54j1KS1WJMmVVsep5ii1i 6lpsCAF2FoAq/m7YolVruVw8MBDOs3/vHr08ZrQWfPCeUo4f+8/vx8XHq3qtOqpVv76aNm+pFte0 VYkwXAXT6/Vq/Y9r9PPaNdq6cYO2/bpFWzdu0LGjR866bdHERNWoXVc169ZT9dp11ODCi3ThJU3D 8mLi9NRUfbPsc634Yqk2rF+v7Zs3KiMt9T8/FxefoObtO+mewY/p3Bp+fzdDiLGzAPj91L9KVaqa mQMICV99tlj9u92h9NT/foCfkJWZqfXr1mr9urX64K2ZioiIUKOLL9Vtd9+rjrfertgiRQKY2Fyp Kce1/LMl+nLJQi3/bImOHj7k1zjpqalat3qV1q1e9fevFUtMUrOrrlaLa9qrZdt2Kl22nFmxA87t duvzBfP1zuuvatXXy+XOyzvrNlmZGVrywTv6Yv4HGjxusq7rek8AksJudhaAov5uWLpMGTNzAEFv 9Yqv1fPWG5SXm1uo7bxer9au+lZrV32rMY8OUZf7eqnnA/9T0cTQeer2xp/X6a1XJ+vjObOVnZVl yRxpqSlaNO8jLZr3kSKjonRNx+t1Z8/eurR5C0vms0JuTo7efHWy3pg0QXt37fRrjLzcXD094D7F xsWpzU13mJzQegaPDHvMyhEq7DxZ6PdXkWLc+gcHycnO1oP33lXonf+/HT18SBOfGaWWDWrr3Tem yeMJ3s87n8+nxR/P1U0tm+napo01Z8Z0y3b+/+Zxu7Xwow90R9urdU3jhpozY7rcbndA5vbXonkf qfWF9TV6yMN+7/xP8Pl8GjPwfh09eMCkdIFjcN8Qen9gg5x7tRAQIubOnmX4Q/1khw8e0NC+vXRT y2ba8ft208Y1y4/ff6dbrm6u3nfcrB+//87WLFs3bdCQPvep/SWN9OWSRbZmOZUjhw6q+/Ud1Kfz Ldr5x++mjZuZnqY5UyaYNl6gVKjs9+lhr6R1JkYJCRQAIMh9Nn+eJeP+vGa1OjS9SHPfmWXJ+IW1 d9dO9e16m26+6gqtXfWt3XH+4bfNm3TPDdeq67VttHXzRrvjSJK+Wfq52l3cSF99ttiS8Zd/as3f OyvVqtdA8Ql+nV1eLmmfyXGCHgUACHK//7bVsrEz0tL0UI+79OTDA+X1ei2b52w+njNbbZtcoIUf fSCfz2dbjrNZ+cUydbz8Yk1/ebytOae+NE53dWqnQwf2WzbHrt9/kzeITxOdSkxsrFpfe2NhN/NK Gm5BnKBHAQCCXFZmpuVzzJg8UX273Bqw8+wnpKWm6MF77tTA7l2VlpoS0Ln9lZOdracGP6RuHdvq wL69AZ3b6/Xqif89oKeHDba8gHjcbuXm5lg6hxWuaNVO5194cWE2GSLJ3nNNNqEAAEGubPlzAjLP 4o/n6q5O7ZWZkRGQ+bZs+EXtL7lQ8959JyDzmW3FsqVq1+QCrfzyi4DM5/F49MDdXTTzlZcDMl+x 5OIqEhcfkLnM5HK5dGevB9TsqmvOdldApqRekp4LTLLgQwEAgtylza8M2Fz5txter5zsbEvnWfnF Mt3aqoV27/jT0nmsduzoEd3VqZ1mT59q6Tw+n0/D+/fWgg/es3SekzVu7vez2mwXGRmpGzp314OP PaNLm1+tEqVKKyIiUpKyJW2QNEZSDUmv2ZnTbhQAIMjd0q27IiMjAzbfyi+/UL87by/QAjL+mDNj uu66vn3IHPI/G4/breH9e+ul0U9adlj+yYcHas6M1y0Z+3Q6dbs3oPNZoULlKrql230aPmaiXpg2 2yMpTtL5koZKCuz5myBEAQCCXI06dXVnrz4BnXPpp5/oif89YPq4E58ZpSF97pMnyO+rLyyfz6fx o0dqaN+epl9MOfWlcQE77H/CFe066tKr2wZ0TgQeBQAIAcOfeU5XtW0f0DnfnvaqqYe2X3vxeb3w 1AjTxgtGc2ZM14gH+5t2JOCbpZ/r2ceGmjJWQdVp1FgjpswM6JywBwUACAFR0dF67f15Gjh8hOLi A3dh1oiHBphyT/5br72iMY8OMSFR8Js1dYqeGTbY8Dg7tm9T/253BGzFxqjoaN1yXz9NWbhcRVlt 1RHsfBYAgEKIjIzUA8MfV9ee92vJ/Hlat3qVDh84oIP79+vo4UM6sG+v6eeg83Jz1afzrVr4/Y8q Wdq/Z3B89PZbeuKhAUF9f7/Zpo5/QfFFi2rgcP+OeORkZ6vX7Tef8omPZihZppySS5VWiTJlVaps edVscIFadrxJ5SpWtmQ+BCcKABBiSpYuo8739lTne3v+49ePHT2i5UsW653pU/XDym9Mm+/g/n16 pPd9mvbBx4XedsWypRrcu4dliwyduM3L33IRGRlp2Tfs8aNHqtw5FXR79x6F3vbZx4bq143rTc1T s35DXX9PLzVv11GlygXm1lIEN04BAGGieImSuv6OLnrv86/05vzFqlqjpmljL1u4QO+8Xrg7pn7f +qv6dr3Nkgv+kpKL697+A/XFz5uVlFzc73EWfv+jHhj+uGVrLTw2sJ++/2Z5obZZsWypZkyeaFqG 0mXLacLMd/TOih91Y/f72fnjbxQAIAxd0aq1Fny7Rrd0u9u0MUcPeVh/bvutQD+bmnJc997cSakp x02bX5KKJibq0WfH6bttO/Xos+NUpXoNQ+OVKX+OBg4foRVbftfzr72h0mXLmZQ0nzsvT70731rg 9Q6OHzuqQb3uMe10Sctr2mnxDz/pultuM/qoXIQhCgAQpuITEjR2yut6/LkXFRFh/J96ZkaGBt3f o0A7pyG97ytwWSioq9p10GdrftG9/QeafiFkVHS0buraTct+3qS7+/Q3dd2FY0cOq2/X2wv0OOeR gx7U/r17TJn3trvv1Wvvz1OJUqVNGQ/hhwIAhLnufQdo5Esvm/INcM23K866IM3MV17WonkfGZ7r hGKJSZr2wcd6/cP5Kl+xkmnjnm6uEc+/pPeXfa1y51Qwbdxf1v5w1rsgVn6xTPNmv23KfL0eGqQx k19TVBSXeeH0KACAA3Tp0UtDRo0xZawxw4fo8MEDp/y9LRt+0dMm3AJ3QtUaNTV3+be6uv21po1Z EI0uvlQfr/heF17S1LQx35g0QV8uWXTK38vOytLwB/qYcui/S49eeuSpZwyPg/BHAQAcoueDD6tL j16Gx0k5fkxPDX7oP7/udrs1qOe9ys0x5wlyzVu10byvv9N5tWqbMl5hlSlXXrMXL9NNXbuZMp7P 59Owvr1OeV3Ey8+O1o7t2wzP0aJNWz354kTO96NAKACAgzwxbrwubtbc8Djz33v3P1e3Txk3Vht+ +tHw2JJ0ZetrNPX9eUpMSjZlPH/FxMbquVen67a7zVkXf//ePRr1yP/+8Ws7tm/Tay+NMzx2tZq1 NH7m2wF9bgRCGwUAcJCo6GhNmvWuKVe7P/nwg3/fQ79ty2a9/Oxow2NKUuPLmmnyO+8rJjbWlPGM crlcembSq6aVgPffnKGvPlv89/8eNeThAl0geCYxsbF6+a3ZthcmhBYKAOAwpcqU1ZhXpho+TLx5 /c+aM+N1ud1uPdTjblMeIdy46eWa+fFCxSckGB7LTC6XS6MnvqION91iynhD+/ZSWmqKVn6xTEs/ /cTweMOfeU51zm9oQjI4CZeIAg50Vdv2uuOe+wq9uM+/jXvyce368w+t/3GN4UwVz62i1977KOh2 /idERkbqhWkztWfnTv30w/eGxtq/Z7dGDnpQv6xdazjXFa1aB/xpkQgPHAEAHGro6GcN3+p29PAh TRk31nCW2CJFNPmd91S8ZCnDY1kpJjZWr8750JSVAz94a6a2btpgaIy4+Hg99dIkLvqDXygAgEMV TUzU48+9aHcMSdKo8ZN1fqOL7I5RIGXKldekt+coOibG7igaOHyEzq12nt0xEKIoAICDtbvhJrXq cJ2tGbr3HaCb77zL1gyFddGll2nY08aPfBhRt8EFuqf/QFszILRRAACHGzVhsorZ9Pz36rXraPDI p22Z26i7evdTizZtbZk7IiJCoyZMYqU/GMLfHsDhypY/RwOGPabRQx4O6LxR0dF64fWZKhIXF9B5 zeJyufT0y1PUtskFpj/06Gy69uytRhdfGtA5Q9GhA/u0avky/brpF6UePxYpaZ+kPyTNl/SapKO2 BrQZRwAA6O7e/Ux9fHBB9Bs8LGTO+59O+YqVNOL5lwI6Z2JSsgYOfzygc4Yan8+nhR+9q+cef1hf fbZA+3bvVEZ6miSVk9RU0jOStku6w86cdqMAAFBUdHRA14+vf8GF6jt4aMDms9KNXe5U62s7Bmy+ /kMfDfq7Jezk8/k0e/pkLVs47++Fqk4jWdLbknoHJlnwoQAAkCRd0/F6Xd7yKsvniYiI0MiXJioq OtryuQLlyRcmKL5oUcvnqVy1mrpxz/8Zfbd8qdZ+901Bf9wlaYKk0D4U5ScKAIC/DXvmOUVEWPux cMc994Xd+evyFSup/yPDLZ9n2DPPBc0SycEoLzdXSz5+v7CbRUkyZx3rEEMBAPC3ug0u0PV3dLFs /BKlSuvhJ0dZNr6degx4UDXq1LVs/IubNdc1Ha+3bPxwsHXTeqWnpfqzaWvlXx/gKBQAAP8w6MnR ll2ZP2TUGCUXL2HJ2HaLio7W6AmTLVuV75GnQvN2yUDa9ed2fzeNkNTIxCghgQIA4B/KnVNBXXr0 Mn3ceg0b6aau3UwfN5g0ufwKtbvhJtPHbXNdJ114SVPTxw03fn77P6GsWTlCBQUAwH/0HTxURRMT TR1zxPMvWn59QTAYMmqMqefpIyIiNPDREaaNF868Xq+RzR23Lk74/2sEUGjFS5ZSj/4PmjZe2043 qMnlV5g2XjCrVKWq7rq/r2nj3dC5K4/6hSUoAABO6b4HHlKpMsaPikZFR4fscr/+6jdkuCn36kfH xGjA0MdMSAT8FwUAwCnFFy2qTrcZXyjtytbXBHyVQbslJiXrBhPupmjeqo0qV61mQiLgvygAAE4p MyND89971/A4Xy/9TDu2bzMhUejISEsz7b3b9ecfJiQC/osCAOCUpk98SYcO7Dc8Tl5ursaOsH6R nGAy8dnROnzwgOFx8nJz9fKzjlyjBgFAAQDwHynHj2nahBdNG2/hRx9ozbcrTBsvmO3e8admTJ5o 2ngfznpTv23eZNp4wAkUAAD/MenZp5Vy/JipY44aMkg+n8/UMYPR2MeHKSc727TxPB6PXhjJ0/9g PgoAgH/Yv2e33nx1sunj/rxmtea+M8v0cYPJDyu/0YIP3jN93CXz5+nnNatNHxfORgEA8A8vPDXC 1G+wJ3tm+CNKTTluydh2c7vdemxgf0uOcvh8Po15dIjp48LZKAAA/rZ5/c/6cNablo1/+OABjXsi PO9rf2PSBP26cb1l46/6erk+XzDfsvHhPBQAAH8bPXSQ0eVUz2rW1Clhdzj70IH9mviM9U85HD3k YeXm5Fg+D5yBAgBAkrT000+08otlls/j9Xr1+IMD5Ha7LZ8rUEY82F9pqSmWz7Pj9+16e9qrls8D Z6AAAJA7L09PDxscsPl+WfuDpjz/bMDms9K8d9/RonkfBWy+8aNH6tjRIwGbD+GLAgBAs6ZO0R+/ bQ3onBPGjNKmX34K6JxmO7Bvr5783wMBnTPl+LGAnG5A+KMAAA53cP8+vfjUEwGfNy83VwO732nZ HQdW8/l8Gtqnp44fOxrwud98dbI2/PRjwOdFeKEAAA434sH+tt2a99vmTRr3ZGjeFTBr6hR9uWSR LXN73G4N63u/PB6PLfMjPFAAAAf7YvFCLf54rq0Zpk140ZLFc6y0bvUqjXrkf7ZmWL9uralLDsN5 KACAQ2WkpWl4/952x5DP59MjvXtYeg+9mQ4fPKA+nW8Nitvxxj35GE8LhN8oAIBDjX18mPbv2W1o jOIlSuqefsYvgsvMyFCv2282/fkDZnPn5an3Hbdo/949hsfqdNsdql67jqExsjIzNeLB/oazwJko AIADfb30M7312iuGxxn42BMaOvpZ1W1wgeGxdmzfpvtvv0nZWVmGx7KC1+vV4N49tOa7lYbHKlOu vJ58caIefXac4bG+XLKItQHgFwoA4DBHDh3Uw/d1N7xmfY06ddX53p6Kio7WuGlvKDomxnC2VV8v 1323Xh90dwb4fD499kBf0x5mNPKll5WUXFxXtr5GV7Vtb3i8pwY/pC0bfjEhGZyEAgA4iNvtVv9u d+jQgf2Gxxrx/HhFRUVJkmrXb6A+g8x5WM2KZUvVt+ttcuflmTKeUT6fTyMe7K93Xn/NlPFu6NxV 13S8/u//PXzM84qKjjY0Zk52tgbc1UXpqalG48FBKACAg4we8rC+W/6V4XE63HSLLm951T9+re+g oapzfkPDY0vSsoUL1Ou2G5WRlmbKeP7Ky83V0L69TDldIuUf+n/8uRf/8WvVatZSjwEPGh77t82b NPCeOy1/lgPCBwUAcIgZkyeacttYscSk/+zEJCk6JkbPvfa64W+zJ3yxeKFuaHGZdmzfZsp4hXXk 0EF16dBGc2a8btqYoye+ouTiJf7z6wOGPqbKVasZHn/ZwgV6avBDhseBM1AAAAeYM2O6Rg4y/i1T kgY/9bTKlCt/yt+r17CRhowaY8o8Uv632uubN9XXSz8zbcyCWL9urTpdcal+WPmNaWN2u7+vWnW4 7pS/Fxcfr5EvvWzKPDMmTwzZxZUQWBQAIMy9MWmChvXrZfiiP0lq2Phidb635xl/5p5+D/zjHLdR x48d1V0d26lv19t0+OAB08Y9lcyMDL00+knd1LKZ9uzcYdq4dc5vqGFPjz3jz1zZ+hpdd8ttpsz3 8rNP68mHB3I6AGdEAQDCVHZWlob1u18jBz1oyo4gLj5e46a+oYiIM39suFwuPTtlms6tdp7hOU+2 8KMPdHXDunpzyiTT7xLweDz6eM5sXd2wjsaPHqm83FzTxk4uXkJT3v1AsUWKnPVnnxg3XqXLljNl 3hmTJ+r+22+y5VkFCA0UACAMfbf8K113eRPNnj7VtDGHjH5W59WqXaCfTUourqnvz1PRxETT5pek 1JTjGvHQADWtca7GPj7M8Lf0o4cOafJzY9S8bnUN7N7VlAV+ThYZFaWXZ80p8Pn9EqVKa+yrr8vl cpky/+cL5qtdkwu0aN5HphwBQnihAABhIj01VQs+eE9dr22jzu2u1rYtm00bu0WbtrqzZ+GWDa5R p64mzHxHkZGRpuU44diRw3rl+Wd1Zb0ahh5kdE2ThnpuxHDt3bXTxHT/7/HnXvzP3RJn06JNW3W9 737TMuzfu0d9Ot+ibi0v0Sezpuv44UOmjY3QFmV3AACFc/zYUS1d8Il+XrNaB/bt1dHDh3X44AHt 3vGnJU+HK1WmrN/fSlte006jJkzWsH73W/IN1Oif18q1Bno//Ii69erj17ZDnx6rVd8s12+bN5mW Z9O6NdrUv4dcLpfKVqyskmXLqXjJ0ipZrrxqNbhAzdt3Uqly55g2H4IfBQAIEV6vV1PGjdXk58cE 7P74qOhoTZr1rqHz0rd376HMjAxH3Z52V+9+Gjzyab+3j4uP15TZH+j65k2VlppiYrL8hY3279qh /bv+efrkxWEP6eYefdX70VGKKcD1Cgh9nAIAQoDb7VafzrfouRHDA7o4zmNjX9DFzZobHueefg/o f4+PNCFR8Lvt7ns04vmXDI9TrWYtvTRj1lkvujRLXk6OZk96QX07Xq3MdHsXYEJgUACAEDD2saFa Mn9eQOe89a7ufh/CPpV+Q4ar35Dhpo0XjG7scqeefvlV0y7iu6ptez0U4OK0/ofvNLJP94DOCXtQ AIAgt/3XLZo+aUJA52zRpq1GjZ9s+rj/e3yNhxDZAAAgAElEQVSknho/yZILA+3Wd/BQPf/a2W+T LKw+g4bojnvuM3XMs/nqk4+0+svPAzonAo8CAAS5OTOny+N2B2y+xk0v16S33zPl6X6n0vW++/XG 3E9Nv0XQLpFRURo1YbIefmKUad/8T+ZyuTRqwmR1uu0O08c+k3kzzbuFFMGJAgAEuVVfLw/YXBdd eplmzPtU8QkJls5zRavWmr14mcpVqGjpPFZLSi6u6R99oi49elk6T0REhJ6fOkNtO91g6TwnW/P1 FwGbC/agAABB7oDJi9OcTqsO1+mtBUuUUKxYQOarf8GFWrR6ndrfeHNA5jNb0ytbaNHqdWreqk1A 5ov6a1Ghsy3FbJbUY0eVk50VkLlgDwoAEOSKxMVZPsetd3XXK7M/UFx8vOVznSy5eAlNmjVHk2bN UWJSckDn9ldUdLQeGP64Zn36ucpXrBTQuSMjIzV64it6/LkXLb87IDIqStHR1pwGQnCgAABBrmr1 GpaNHZ+QoDGTp+rZV6YpKsq+ZUHa33izFny3xtSHCFnhkiuu1CcrV2vg8BEBuz3vVLr3HaCp789T iVKlLZujYtXzFBGGF2vi/1EAgCDX+rpOlox7fqOL9MnKH3Tb3fdYMn5hVapSVVPe/VBzPvtS51/Y 2O44/1C1Rk29OucjvbvkC9Wu38DuOJKkq9p10KLV63T5VVdbMn7z9tb8vUPwoAAAQe6mLt1MvViu eImSevLFifpo+beqVrOWaeOa5eJmzfXxN6v00huzVP+CC23NUrVGTY186WV9tuYXtbGoiBlRplx5 vfXJEo2f8bbOqVTZtHHj4hN0W+8HTBsPwYkCAAS5InFxGjd1hqKiow2Nk5iUrF4PDdKXG35Vt159 bD3kfzYul0udbrtDn3z7gz76aqVu6NxVMbGxAZk7MjJSra/tqDfnL9aynzbpzp69Db/3VnK5XOp4 6+1a9tMmDXpytMqUK294zEHjJqlUWePjILhRAIAQcFmLlpr89nuKL1q0UNu5XC6df2FjjZ74ir7b tlNDRo1RUnJxi1Jao9HFl+qFaTO1avsujZs6Q9fefKvpf4b4hAS16nCdRk98RSu2/K7X3purK1q1 tuS+fqsUiYtTn0FDtPLXPzR+xtu65IorC73gUlR0tAa/MFntb+9mUUoEk+D9CgDgH1pf21GfrflF 458eqYVzPzzlMwGiY2JUrUYt1apXT5e1uEot27Y35RthMCheoqRu7HKnbuxyp9xut35avUrrflit 7b9u1pYNG7Tt180Fek5Ckbg4Va9VR9Xr1FHNOvV0fqOL1OTyZooNkwfgREVHq+Ott6vjrbfr+LGj Wv7ZEn2z7DNtXL9Bf/y6+ZS39sXEFtHl13TQfUOfULXa9WxIDTtQAIAQUqHyuRo75XWNGj9Zv23Z pKOHDisqOlpFE4spuXgJla9QMagPV5slKipKjS9rpsaXNfvHrx87ekRpKSlKTTmujLQ05eTkKDo6 RkUTiykxKVnFEhOVXKKkrVfwB1Jy8RLqdNsd6nTbHTqa51JOnkcH9+1RypHDykxPU25OjoolJatq 7bqKSyjc0SWEPgoAEIJiYmNVr2Eju2MEneIlSqp4iZJ2xwhaEZGRKlexsspVNO+CQYQuZ9RgAADw DxQAAAAciAIAAIADUQAAAHAgCgAAAA5EAYC5fHYHAAAUBAUApvJRAAAgJFAAYCqv12t3BABAAVAA YCq3hwIAAKGAAgBTefLcdkcAABQABQCmynN77I4AACgACgBM4/Z45OEUAACEBAoATJOTnWd3BABA AVEAYAqfjwIAAKGEAgBTZGflyOvj8D8AhAoKAAzzeX3KzM6xO0ZARUZG+b3tscOHTUwCFJDFi3Tl ZGcpKyPd7+0jIiNNTIOCoADAsLSMLPm8zloCMLZIEb+3nTNzuolJgILxWPxP9NPZM+XO8+80YERE hGJiYk1OhLPx/2sMoPxD/7k5zjv3X7JUaR3cv9evbae+NE6HDuxX6w4dlZiUbHIy4L+8klIs+mea mZGutd98pQ9fn+z3GEnFS8jlcpmYCgVBAYDfcnPdSs901qH/E8pXqKzNG372a1ufz6e578zS3Hdm mZwKCE1ly1ewO4IjcQoAfsnNcystLcOxT/+pUbue3RGAsFGtRh27IzgSRwBQaNnZuUpPz7Y7hq3q NbxIEZGR8npY+RAwqlb9hnZHcCSOAKDAfD6f0tKzlJ6eJcsvKQ5yxRKTdP4Fje2OAYS8sudUVMVz q9odw5EoACiQnJxcHTuWrpzsXLujBI1W7TrZHQEIeVdc3dbuCI5FAcBp+XxSTk6ejh1PV1palrxe Fvo5Wf0LGqt6zbp2xwBCVvGSpdTk8ivtjuFYFACcxCe3x6Ps7FylpWXq6NFUpaVlysMT/k6ra49+ iojgnxHgj+tvv0tRUdF2x3AsLgI0g88nr9enPI9XXo9XXq9HPp/+enn/+m8QnzP/K5/3r6wouHOr Vdd1N3fRx++9ZXcUIKQ0uvhy1W/UxO4YjkYB8IPH41VunlvuPI/cbrc8Xp9jb4eD1PHmLvpz+1b9 vPZ7u6MAIaFSlWq69a6edsdwPI5dFsCJJ92dOCx+7FiaMtKzlJOTK4/Hy87f4SIiItTnoUdVq24D u6MAQa/sORXV44Ehioll6V+7UQDOIM/tVnp6Vv658PRM5eTkyeuwNe9RMDGxsfrfY0+rcdMr7I4C BK1qNWqr3yNPqGixRLujQJwC+A+vz6fs7FzlZOXKw1XvKITo6Bj1eehRff7pXH34zhvKzXXmMsnA v0VERqp1hxvU6tobFBHBU/+CBQXgL16fV9lZecrKygnuC/YQ1Fwul9pce6MaNWmq92ZN09pVK/j7 BEer2+BC3d6tp0qXP0eZWZl2x8FJHF8AfD6fMjJylJOTw6l8mKZ02fLq+7/HtHf3Dn31+UKtXrlc KceP2h0LCIj4hKJqfGkzXdmqvarVqC1Jys5x9vLhwcjRBSAnJ1cZGdmc14dlzql4rjp376077r5f u3f+oe1bt2j/3l06fuyocrKzlJvLyooIbdHR0YotUkRJScVV9pyKqnpeTVU5rybrY4QARxYAj8er 9Iws5eW67Y4Ch3C5XKp0bjVVOrea3VEAQJIDC0BmVrYyM3O5dQ8A4GiOKQBer09paVnKy8uzOwoA ALZzRAHIy3MrLS2Tc/0AAPwl7AtAVlaOMjOzOeIPAMBJwroAZGXmKCOTW08AAPi3sCwAPp+UkZGl 7GxusQIA4FTCrwD4fEpPy1JOLhf7AQBwOmG3UkN6RjY7fwAAziKsCgCH/QEAKJiwKQBZmTnKymLn DwBAQYRFAcjJyeVqfwAACiHkC4DH41V6Ojt/AAAKI6QLgE9SWlomz1sHAKCQQroAZKRnye322B0D AICQE7IFIDfXzRX/AAD4KWQLQHpGlt0RAAAIWSG5EmBOTq68Hq/dMf7jyOFD+mnNav3262bt2vGH du/4UxkZGUpPS1VWZobcbrfdER1vy8af1f3mNnbHABB8pv71kqTjktIlZUjaIelXSZskffPXf8Pi wrOQLAC5OcGz0t+uHX9qySdz9eXSxfpz+za74wAAjEv+6yVJtSSd/K3hgKRFkt6UtFxS8H0bLaCQ LADBYNWK5Zr1+qtat+Z7u6MAAAKnrKS7/3rtkPSi8o8cZNoXyT8UgEL6ae1qTRg7Wr9u2mB3FACA vc6V9JKkYZJGSZosKWRuTaMAFFDKsWOa+PxoLf5kHusOAABOVkbSBEndJd0vabW9cQomZO8CCKSf 1q7WXTd30KL5c9n5AwBOp5GklZKeUAjsX4M+oN3mvPWGBtzbVYcOHrA7CgAg+EVJGiFprqQEm7Oc EQXgNHw+n16fPF4Txo6SxxMyp3QAAMGho6QvJZW2O8jpUABOY8LYUZr+ygS7YwAAQlcTSUv1/7cU BhUKwCnMeHWS3ps1w+4YAIDQ10D56wYE3ekACsC/fPnZIk2b9KLdMQAA4eNSSVPsDvFvFICT7Nm1 U2NGDOVKfwCA2bpK6mF3iJNRAP7i9Xo1cuhDSk9PszsKACA8TZB0nt0hTqAA/OWTj97Thp/X2R0D ABC+4iRNsjvECRQASWmpKXp1/HN2xwAAhL9rJHWyO4TEUsCSpA/eeVMpx4+bNl5UTJzK1G6m8vWv VrEyVRWXVFaxxUopIpK3GwCsdDDbo9WHc4w9rzfzqHyZR+VL2SPfn9/Jt325fGmmLgY3QtJ82fxY YcfvkbIyM/X+2zNMGSsqJk7VW3RXzavuVVRs0N3xAQBhr0yRSFUtGq3f0w08Nj6+hFzxJeQqVV06 70rp6kfk/fVzeVe8LN/x3WbEbCSpvaRPzRjMX44vAJ8vnG/Kt/+SVRvpkrvGq0hSGRNSAQD8VTsp Wvuy3MrymPUF26WIWm0UUb2lPCsmybvmTTMG7SubC4DjrwFY9Mlcw2NUbtxRV/SZyc4fAIJApEuq lRRtwcDRirxyoCLbjZQiDH9/bi2pnAmp/OboArB/7x6tX7fW0BhlazfTRXc8o4ioGJNSAQCMqhAX pbhIlyVjR9S9VpEtHzY6TJSkW02I4zdHF4A1q1YaWvQnoVRlXdztBbkiIk1MBQAwKsIlVU6w7ix3 xAW3KuL8G4wO08aMLP6yswD4fYVGVLQ5h3bWrl5laPv61z6s6LhEU7IAAMxVMd7ay9wimw+QYosZ GeIK2Xgtnp0FYL+/G5Ysbc659o2/+L/wT4lzG6pCg9am5AAAmC8+yqWiURbu5ookKfLiu42MkCip njlhCs/OArDSn40Sk5JV9bwahifPy83Vvj17/N7+3EtuklzWnF8CAJijZKy1u7mI+p0kl6E5apqV pbDsLAALJB0p7EZtOnRUZKTxc+67d+6Q1+vxa1uXK0Ll67U0nAEAYK3EGIt3c/El5Cp/vpERapsV pbDsLACpkh4vzAZJxYvr7l79TJn86JHDfm+bUKqSiiSWNiUHAMA6CZHW7+ZcFRsZ2bysWTkKy+67 ACZLmlaQHywSF6+nX5ys4iVKmjJxZmaG39sWSeR+fwAIBTEBuEnLVdTQPsG2K8ntLgCS1FPSYEmn 3SOfV6OWprw5RxdcdLFpk2ZRAAAg7EUF4lqthFJGtjZ0G4ERwbAUsE/Sc5LektRVUouk5OQGlc6t WqlSlaq6omVrXdGylSIizO0qHrd/5/8lKTLKghWmAACmC8il2pGGFoKzbSGZYCgAJ+yX9Lyk579Z vb5zWk7u23YHAgAgXAXDKQAAABBgwXQEAH7ITjmovRuWKe3Adrmz0xWbWFqlqjVWmZpNeT4BAOC0 KAAhyp2TqQ2fPK8/V70nr8f9j9/bumyq4pLL6/yOg1SxUXubEgIAghkFIATlpB/RilfuUcreX0/7 M1nH92n1mw8pdd9W1W0/MIDpAAChgGsAQozP69GqNwacced/si2fT9GO1R9ZnAoAEGooACFm55r5 OvL72kJts37+WOVlp1mUCAAQiigAIeb3lbMLvU1uxnHtWbfIgjQAgFBFAQghednpOrZrvV/bHvxt lclpAAChjAIQQrJTD0o+n1/bZh3fZ3IaAEAoowCEkMioWP+3jS5iYhIAQKijAISQIkllFBnj3448 oVRlk9MAAEIZBSCERERGq2ytK/zatny9q0xOAwAIZRSAEFOrVU+pkI+3TDqntsrW8a84AADCEwUg xBSvfL5qXtWjwD8fFROnxl3GyOXi/2oAwP9jrxCC6nV4UNWvvPusPxeTkKym972qpHNqWx8KABBS eBZACHK5ItTg+iEqV6e5Ni+ZqCN//vSP2wOjYhNU6aJrVadNXxVJKmNjUgBAsKIAhLAytS5TmVqX KTvloFIPbJc7J11FEssouUIdHgUMADgjCkAYKJJUhm/6AIBCCcZrAGJWrfym5PFjR+3OAQBA2AqW IwARkjpLuk/S5T27d46UpKTkZDVr0Upd7+2lylWq2RoQAIBwEgxHAMpI+krSW5KaS4o88Rspx4/r 03kfqOv1bfXOjKk2xQMAIPzYfQQgUdIXkuqd6Yc8Ho8mjRsjd16eut3XJzDJAAAIY3YfAXhBZ9n5 n2zqyy9q84ZfLIwDAIAz2FkAqkq6uzAbeL1evT55vDVpAABwEDsLwPU66Xx/Qf3w3Qqlp6dZEAcA AOewswCc789GbrdbO//43ewsAAA4ip0FoKS/G7JGAAAAxthZAAr3TNuT+LxeM3MAAOA4dt8FAAAA bEABAADAgSgAAAA4EAUAAAAHsnsp4JCUcXSP9vy02O4YAICzyPH65D2ea+kcvgObLR3fKhQAPxze /oMOb//B7hgAAPiNUwAAADgQBQAAAAeiAAAA4EAUAAAAHIgCAACAA1EAAABwIAoAAAAORAEAAMCB KAAAADgQBQAAAAeiAAAA4EAUAAAAHIgCAACAA/E0QD/El6ig4pXPtzsGgDCScWinju/Z5Ne2RUtV VlLFuiYnCg8er3Qw22PpHL6MQ/Lt+cnSOaxAAfBD6fOa6KLOY+yOASCMbP/mbR3/yL8CULbOFWp4 42MmJwoPmW6flu3PsnQO7/av5dkz0NI5rMApAAAAHIgCAACAA1EAAABwIAoAAAAORAEAAMCBKAAA ADgQBQAAAAeiAAAA4EAUAAAAHIgCAACAA1EAAABwIAoAAAAORAEAAMCBKAAAADgQBQAAAAeiAAAA 4EAUAAAAHIgCAACAA1EAAABwIAoAAAAORAEAAMCBKAAAADgQBQAAAAeiAAAA4EAUAAAAHIgCAACA A1EAAABwIAoAAAAORAEAAMCBKAAAADgQBQAAAAeiAAAA4EAUAAAAHIgCAACAA1EAAABwIAoAAAAO RAEAAMCBKAAAADgQBQAAAAeiAAAA4EAUAAAAHIgCAACAA1EAAABwIAoAAAAORAEAAMCBKAAAADgQ BQAAAAeiAAAA4EAUAAAAHIgCAACAA1EAAAAwwBUTb2TzVLNyFBYFAAAAI5LOMbL1nyalKDQKAAAA BrgSz5GrRFV/N19kZpbCoAAAAGBQROOu/mz2vaRvTY5SYBQAAAAMiqjfSa7KTQqzSYakXpJ81iQ6 OwoAAABGuSIUdd1YuSpcUJCfTpV0s6SfrQ11ZhQAAADMUCRJUbe8qsgr+ktFEk/1E15JcyU1lrQ4 oNlOIcruAAAAhI3IaEVc3F0RF3WVb89P8h39Q3G7V72d/utXCyR9JWm/zQn/xhEAAADMFhktV+Um irjgVlXsMmGhpHcVRDt/iQIAAIAjUQAAAHAgCgAAAA5EAQAAwIEoAAAAOBAFAAAAB6IAAADgQBQA AAAciAIAAIADUQAAAHAgCgAAAA5EAQAAwIEoAAAAOBAFAAAAB6IAAADgQBQAAAAciAIAAIADUQAA AHCgKLsDAAAQdtw58u1cLd+xXdq1e+X1kqIlfSlpp83J/kYBAADALO5ceVZPl3ftLCk3U5KUId2i /JckLZI0SNJGmxL+jQIAAIAZso7LPXeAfPs2nOmn2klqLukOSZ8EJNdpcA0AAABGeT1yz//f2Xb+ JyRImiPpImtDnRkFAAAAg7y/fCjf7nWF2SRO0hRJLmsSnR0FAAAAg7w/zvZns8aSmpkcpcAoAAAA GOBL2SPfsR3+bt7WzCyFQQEAAMCI1L1Gtq5iUopCowAAAGCALzfLyObFzMpRWBQAAAAciAIAAIAD UQAAAHAgCgAAAA5EAQAAwIEoAAAAOBAFAAAAB6IAAADgQBQAAAAciAIAAIADUQAAAHAgCgAAAA5E AQAAwIEoAAAAOBAFAAAAB6IAAADgQBQAAAAciAIAAIADUQAAAHAgCgAAAA5EAQAAwIEoAAAAOBAF AAAAB6IAAADgQBQAAAAciAIAAIADUQAAAHAgCgAAAA5EAQAAwIEoAAAAOBAFAAAAB6IAAADgQBQA AAAciAIAAIADUQAAAHAgCgAAAA5EAQAAwIEoAAAAOBAFAAAAB6IAAADgQBQAAAAciAIAAIADUQAA AHAgCgAAAA5EAQAAwIEoAAAAOBAFAAAAB6IAAADgQBQAAAAciAIAAIADUQAAAHAgCgAAAA7k3ALg cvm9qc/nMzEIAMA6gfi8Ds19gmMLQJEiRfzeNifjmIlJAABW8QRi35x5NACTmM+xBSA+IcHvbbNT D5mYBABglbxAFID0gwGYxHyOLQDFiiX6vW3G4R3yunNNTAMAsEJmntfyOXxH/rB8Dis4tgBUPLeK 39u6czJ16LdV5oUBAFgiw+pzAJ5cef9Yae0cFnFsAUhMSlZS8eJ+b7/7p8UmpgEAWOFojsfS8X07 vpdyMyydwyqOLQCSVKNmHb+33bV2vtIP7zQxDQDATB6fdCzHyiMAPnm+nWLh+NZydAG48OJL/d7W 63Fr44LnTUwDADDT/myPPBbeoufdvEi+A5stG99qDi8ATQ1tv+fnz7T9m7dNSgMAMNOujDzLxvYd +V2epc9YNn4gOLoA1GtwgcqULWdojF/mPa39m5ablAgAYIaUPK8O5Vh0B0DGYXnmPRiy5/5PcHQB iIiIUJsOnQyN4fN69N3rfbR12VSTUgEAjNqSkmfJAn2+g1vkfqebfMd3mT94gDm6AEhShxtuVkSE sbfB5/Vow4JxWjW9n9IOhub9oAAQLvZnu3Uw2+Sr/3Mz5Fk5We7Zd8uXut/csW0SZXcAu1WuUk1X trpGX362yPBYe9cv1b6NX6rShdeqQsNrVKbWZYqM9n/JYQBA4eR4pPXHzDr375Nv/0Z5t30l7y9z pazwWgbe8QVAkrr16KOvPl9sykN+fF6Pdq75WDvXfKzI6CJKKFlRRRLLKDre/5UHAYS/jEP+31Z8 YPM3+n7mQBPThK4jOR7lGvzy73NnS+mH5EvbJ2WlmBMsCFEAJNWsU1ftOt6ohR9/aOq4nrxspe7f ptT920wdFwBOln54J+uSoNAcfw3ACf0eHmZoZUAAAEIJBeAvScnJGjjkcbtjAAAQEBSAk7Rp31Ed b77d7hgAAFiOAvAvA4c8pvoNG9kdAwAAS1EA/iU2tojGTXlD1WvWtjsKAACWoQCcQtGixfT8K9NV 5bzqdkcBAMASFIDTKF2mrKa8+Z4aXNjY7igAAJiOAnAGxRKTNP61N3VLl7vsjgIAgKkoAGcRExur gUMe15NjxyspOdnuOAAAmIICUECt2l2rOZ9+oVu63GX44UEAANiNPVkhFEtM0sAhj2vGBwvUqt21 ioiItDsSAMBGdRtcoBtv72p3DL9QAPxwXo1aenLseL27YKm69+qn8hUq2R0JABAgRYsl6pprr9cr b76nqW9/qEsvb253JL/wMCADKlSqrB79HtS9fQdq6+aNWvv9d1q7+jtt37pFhw4esDseAMAExRKT VKN2HdWoVVdNm7dQo8aXKCoq9Hefof8nCAIul0u16tZXrbr11bn7fZKkzIwM7d2zS6nHjyszI125 ebk2pwQAFERkZJSKFi2moomJKlmylEqVKWt3JEtQACwSn5DAaoIAgKDFNQAAADgQBQAAAAeiAAAA 4EB2FgC/r4rLyMwwMwcAAH5LT08zsnmOWTkKy84C4Pc7dphb7AAAQeLwwYNGNk81K0dhhWQB2L93 r5k5AADw2/59e4xsbujwgRF2FoAd/m64asVXJsYAAMB/q1YsN7L5nybFKDQ7C8Cv/m64Z9dO/b5t q5lZAAAotG1bt2jv7l1GhrBtZ2ZnAdhsZOPZM6aZlQMAAL+8O9PwvmiTGTn8YWcB2C7J7xMniz+Z q9+22Pa+AQAcbtvWLVqy4GMjQ+ySQ08BSNKX/m7o9Xo15olhysnJNjMPAABnlZ2dpacfHSyv12tk mGVm5fGH3QXgUyMbb9m4XqMfHSyfz2dWHgAAzsjn82n0o4/o180bjQ5laB9oVKSdk0vaJqmfpCL+ DvDHtt/0x/bf1LR5C0VHR5uXDACAf8nNydHoRwdr6aJPjA6VIqmXJLfxVP6xuwC4JVWXdKGRQf7c vk2rVixXnfoNVap0GXOSAQBwkl83bdAjA3rph+9WmDHcm5LmmjGQv1x2Tv6XupLWy4TTEREREWrV 7jrd3u0e1axTTy5XMPzxAAChyufz6ddNG/Tum69r6aIFZp1y9kqqJ2mLGYP5K1j2kO9LutnMAcuU K69LLm+usuXPUZmy5RQXH2/m8ACAMJWVmamDB/Zr/949Wr3yax08sN/sKd6TdJvZgxZWsBSAupJ+ ksRJfABAOMuV1FA2f/uX7L8G4IRDkopKutzuIAAAWOhZ5R8BsF2wHAGQpARJP0s6z+4gAABY4DdJ F0jKtDuIZP86ACfLkHSTJFb2AQCEmxxJtytIdv5S8JwCOOGApKOSOtgdBAAAE/WRzQv//FuwFQBJ WqP8hYGa2R0EAAATjJL0vN0h/i0YC4AkfSGpnKTGdgcBAMCAVyQNsjvEqQRrAZD+/1BJCztDAADg p2clPSQpKB9YE8wFQJK+krRfUmtJUfZGAQCgQLIl9ZY01u4gZxJMtwGeyYWS5ij/uQEAAASrrcpf 5e8nu4OcTbAfAThhn6Rpyn94UFNxNAAAEFzyJE1S/s5/p81ZCiRUCoCUv/P/SvnPDSip/OWDg2kd AwCA83gkvSvpVklvK3+p35AQKqcATqWGpIHKX1ihhM1ZAADOckT5O/6XJG2zOYtfQrkAnBAjqb3y Fw9qKZYSBgBYY7vyb1P/VNIihdC3/VMJhwLwbxUk1ZFUS1IlScWV/6ChQD9pMEH5xcQfGZIWmpgF AOzUXvmfif5YqPzPxEDKk5Su/JVpdyn/wr7NkvYEOAdCVBXl3/vpz+uPwMcFAMv8If8/D6sEPq4z cBEdAAAORAEAAMCBKAAAADgQBQAAAAeiAAAA4EAUAAAAHIgCAACAA1EAAABwIAoAAAAORAEAAMCB KAAAADgQBQAAAAeiAAAA4EAUAAAAHIgCAACAA1EAAAAAziBZ0hBJqyQdkeSz+eWRtFfSp5LulBRp 3R8dAP4WJambpIXK/wzyyP7PwyOSvsfa0XwAAAHKSURBVJP0iKQk6/7ocKJOCo6d/plev0iqadUb AACSaklaL/s/7870OizpOqveADhLZwVHwy1oC65lzdsAwOFqSzoq+z/nCvLySLrdmrcBTlFDUpbs /8tcmNcG5R+iAwCzREvaJPs/3wrzypRUzYo3A84wS/b/Jfbn1d2KNwOAY90r+z/X/Hm9acWbgfAX Jyld9v8F9uf1mQXvBwDnWib7P9f8eaVJKmLB+xEWuA3w9GpLSrA7hJ8a2x0AQFi5yO4Afiqq/M9y nAIF4PRK2B3AgGRxWyAAc0RKSrQ7hAEl7Q4QrCgAp3fE7gAGHFP+VbAAYJRHUordIQw4ZHeAYEUB OL3Nyj9/FIp+sDsAgLCyxu4AfkqXtNXuEMGKAnB6OZLm2R3CT+/aHQBAWJltdwA/fSgp2+4QCE3n Kf9eUruvZC3M6xexDgAAc0Upf40Ruz/fCvPKkFTVijcDznG7QmclwMNiOWAA1qil4F8S/cTLI+lW a94GOM11yr+QxO6/1Gd6/aT8lQsBwCo1Jf0s+z/vzvQ6KKmDVW8AnClJ0mBJ3yr/m7bdf8lPPA3w E0ldxG1/AAIjUlJXSQsUPE8DPCxppaRBCu1bFgPq/wBbDart4QCdaAAAAABJRU5ErkJggg== "
id="image631"
x="84.89212"
y="46.267635" />
<path
style="fill:#9fbaa6;fill-opacity:1;stroke:#000000;stroke-width:4.153;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#TriangleStart);stop-color:#000000"
d="m 51.430143,89.340061 25.929764,-0.47427"
id="path1809" />
<path
style="fill:#9fbaa6;fill-opacity:1;stroke:#000000;stroke-width:4.153;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#TriangleStart-7);stop-color:#000000"
d="m 170.18695,91.041157 25.92976,-0.47427"
id="path1809-3" />
<path
style="fill:#9fbaa6;fill-opacity:1;stroke:#000000;stroke-width:4.153;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#TriangleStart-7-5);stop-color:#000000"
d="m 283.16611,91.068514 25.92976,-0.474271"
id="path1809-3-2" />
</g>
</g>
</svg>
/**
* @vue/shared v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Ue(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const me=Object.freeze({}),ms=Object.freeze([]),Me=()=>{},fr=()=>!1,nn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Sr=e=>e.startsWith("onUpdate:"),ce=Object.assign,Kl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},fm=Object.prototype.hasOwnProperty,de=(e,t)=>fm.call(e,t),H=Array.isArray,Jn=e=>Ls(e)==="[object Map]",as=e=>Ls(e)==="[object Set]",hc=e=>Ls(e)==="[object Date]",dm=e=>Ls(e)==="[object RegExp]",Q=e=>typeof e=="function",ee=e=>typeof e=="string",kt=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",Yr=e=>(he(e)||Q(e))&&Q(e.then)&&Q(e.catch),uf=Object.prototype.toString,Ls=e=>uf.call(e),ql=e=>Ls(e).slice(8,-1),ff=e=>Ls(e)==="[object Object]",Wl=e=>ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Cn=Ue(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),df=Ue("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Jr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},pm=/-(\w)/g,Ie=Jr(e=>e.replace(pm,(t,n)=>n?n.toUpperCase():"")),hm=/\B([A-Z])/g,Xe=Jr(e=>e.replace(hm,"-$1").toLowerCase()),Ut=Jr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Dt=Jr(e=>e?`on${Ut(e)}`:""),Pt=(e,t)=>!Object.is(e,t),_n=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},wr=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},fi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Er=e=>{const t=ee(e)?Number(e):NaN;return isNaN(t)?e:t};let mc;const zl=()=>mc||(mc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),jt={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},mm={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},gm="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",ym=Ue(gm),gc=2;function vm(e,t=0,n=e.length){let s=e.split(/(\r?\n)/);const i=s.filter((l,a)=>a%2===1);s=s.filter((l,a)=>a%2===0);let r=0;const o=[];for(let l=0;l<s.length;l++)if(r+=s[l].length+(i[l]&&i[l].length||0),r>=t){for(let a=l-gc;a<=l+gc||n>r;a++){if(a<0||a>=s.length)continue;const c=a+1;o.push(`${c}${" ".repeat(Math.max(3-String(c).length,0))}| ${s[a]}`);const f=s[a].length,u=i[a]&&i[a].length||0;if(a===l){const d=t-(r-(f+u)),p=Math.max(1,n>r?f-d:n-t);o.push(" | "+" ".repeat(d)+"^".repeat(p))}else if(a>l){if(n>r){const d=Math.max(Math.min(n-r,f),1);o.push(" | "+"^".repeat(d))}r+=f+u}}break}return o.join(`
`)}function Ds(e){if(H(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=ee(s)?pf(s):Ds(s);if(i)for(const r in i)t[r]=i[r]}return t}else if(ee(e)||he(e))return e}const bm=/;(?![^(]*\))/g,_m=/:([^]+)/,Sm=/\/\*[^]*?\*\//g;function pf(e){const t={};return e.replace(Sm,"").split(bm).forEach(n=>{if(n){const s=n.split(_m);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function wm(e){let t="";if(!e||ee(e))return t;for(const n in e){const s=e[n],i=n.startsWith("--")?n:Xe(n);(ee(s)||typeof s=="number")&&(t+=`${i}:${s};`)}return t}function Vs(e){let t="";if(ee(e))t=e;else if(H(e))for(let n=0;n<e.length;n++){const s=Vs(e[n]);s&&(t+=s+" ")}else if(he(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Em(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ee(t)&&(e.class=Vs(t)),n&&(e.style=Ds(n)),e}const Cm="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Tm="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",xm="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",Om="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",Gl=Ue(Cm),hf=Ue(Tm),mf=Ue(xm),Am=Ue(Om),gf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Rm=Ue(gf),yc=Ue(gf+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function Yl(e){return!!e||e===""}const Im=Ue("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Nm=Ue("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function km(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}function Pm(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Nn(e[s],t[s]);return n}function Nn(e,t){if(e===t)return!0;let n=hc(e),s=hc(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=kt(e),s=kt(t),n||s)return e===t;if(n=H(e),s=H(t),n||s)return n&&s?Pm(e,t):!1;if(n=he(e),s=he(t),n||s){if(!n||!s)return!1;const i=Object.keys(e).length,r=Object.keys(t).length;if(i!==r)return!1;for(const o in e){const l=e.hasOwnProperty(o),a=t.hasOwnProperty(o);if(l&&!a||!l&&a||!Nn(e[o],t[o]))return!1}}return String(e)===String(t)}function Xr(e,t){return e.findIndex(n=>Nn(n,t))}const Mm=e=>ee(e)?e:e==null?"":H(e)||he(e)&&(e.toString===uf||!Q(e.toString))?JSON.stringify(e,yf,2):String(e),yf=(e,t)=>t&&t.__v_isRef?yf(e,t.value):Jn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],r)=>(n[Eo(s,r)+" =>"]=i,n),{})}:as(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Eo(n))}:kt(t)?Eo(t):he(t)&&!H(t)&&!ff(t)?String(t):t,Eo=(e,t="")=>{var n;return kt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Kt(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let pt;class Jl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=pt,!t&&pt&&(this.index=(pt.scopes||(pt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=pt;try{return pt=this,t()}finally{pt=n}}else Kt("cannot run an inactive effect scope.")}on(){pt=this}off(){pt=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function vf(e){return new Jl(e)}function bf(e,t=pt){t&&t.active&&t.effects.push(e)}function Xl(){return pt}function _f(e){pt?pt.cleanups.push(e):Kt("onScopeDispose() is called when there is no active effect scope to be associated with.")}let Xn;class Cs{constructor(t,n,s,i){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,bf(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,$n();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&($m(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Fn()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Tn,n=Xn;try{return Tn=!0,Xn=this,this._runnings++,vc(this),this.fn()}finally{bc(this),this._runnings--,Xn=n,Tn=t}}stop(){var t;this.active&&(vc(this),bc(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function $m(e){return e.value}function vc(e){e._trackId++,e._depsLength=0}function bc(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Sf(e.deps[t],e);e.deps.length=e._depsLength}}function Sf(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}function Fm(e,t){e.effect instanceof Cs&&(e=e.effect.fn);const n=new Cs(e,Me,()=>{n.dirty&&n.run()});t&&(ce(n,t),t.scope&&bf(n,t.scope)),(!t||!t.lazy)&&n.run();const s=n.run.bind(n);return s.effect=n,s}function Lm(e){e.effect.stop()}let Tn=!0,Go=0;const wf=[];function $n(){wf.push(Tn),Tn=!1}function Fn(){const e=wf.pop();Tn=e===void 0?!0:e}function Ql(){Go++}function Zl(){for(Go--;!Go&&Yo.length;)Yo.shift()()}function Ef(e,t,n){var s;if(t.get(e)!==e._trackId){t.set(e,e._trackId);const i=e.deps[e._depsLength];i!==t?(i&&Sf(i,e),e.deps[e._depsLength++]=t):e._depsLength++,(s=e.onTrack)==null||s.call(e,ce({effect:e},n))}}const Yo=[];function Cf(e,t,n){var s;Ql();for(const i of e.keys()){let r;i._dirtyLevel<t&&(r??(r=e.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(r??(r=e.get(i)===i._trackId))&&((s=i.onTrigger)==null||s.call(i,ce({effect:i},n)),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&Yo.push(i.scheduler)))}Zl()}const Tf=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Cr=new WeakMap,Qn=Symbol("iterate"),Jo=Symbol("Map key iterate");function tt(e,t,n){if(Tn&&Xn){let s=Cr.get(e);s||Cr.set(e,s=new Map);let i=s.get(n);i||s.set(n,i=Tf(()=>s.delete(n))),Ef(Xn,i,{target:e,type:t,key:n})}}function Bt(e,t,n,s,i,r){const o=Cr.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(n==="length"&&H(e)){const a=Number(s);o.forEach((c,f)=>{(f==="length"||!kt(f)&&f>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(o.get(n)),t){case"add":H(e)?Wl(n)&&l.push(o.get("length")):(l.push(o.get(Qn)),Jn(e)&&l.push(o.get(Jo)));break;case"delete":H(e)||(l.push(o.get(Qn)),Jn(e)&&l.push(o.get(Jo)));break;case"set":Jn(e)&&l.push(o.get(Qn));break}Ql();for(const a of l)a&&Cf(a,4,{target:e,type:t,key:n,newValue:s,oldValue:i,oldTarget:r});Zl()}function Dm(e,t){var n;return(n=Cr.get(e))==null?void 0:n.get(t)}const Vm=Ue("__proto__,__v_isRef,__isVue"),xf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kt)),_c=jm();function jm(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=se(this);for(let r=0,o=this.length;r<o;r++)tt(s,"get",r+"");const i=s[t](...n);return i===-1||i===!1?s[t](...n.map(se)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){$n(),Ql();const s=se(this)[t].apply(this,n);return Zl(),Fn(),s}}),e}function Bm(e){const t=se(this);return tt(t,"has",e),t.hasOwnProperty(e)}class Of{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const i=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(i?r?Mf:Pf:r?kf:Nf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=H(t);if(!i){if(o&&de(_c,n))return Reflect.get(_c,n,s);if(n==="hasOwnProperty")return Bm}const l=Reflect.get(t,n,s);return(kt(n)?xf.has(n):Vm(n))||(i||tt(t,"get",n),r)?l:Te(l)?o&&Wl(n)?l:l.value:he(l)?i?Rt(l):it(l):l}}class Af extends Of{constructor(t=!1){super(!1,t)}set(t,n,s,i){let r=t[n];if(!this._isShallow){const a=sn(r);if(!On(s)&&!sn(s)&&(r=se(r),s=se(s)),!H(t)&&Te(r)&&!Te(s))return a?!1:(r.value=s,!0)}const o=H(t)&&Wl(n)?Number(n)<t.length:de(t,n),l=Reflect.set(t,n,s,i);return t===se(i)&&(o?Pt(s,r)&&Bt(t,"set",n,s,r):Bt(t,"add",n,s)),l}deleteProperty(t,n){const s=de(t,n),i=t[n],r=Reflect.deleteProperty(t,n);return r&&s&&Bt(t,"delete",n,void 0,i),r}has(t,n){const s=Reflect.has(t,n);return(!kt(n)||!xf.has(n))&&tt(t,"has",n),s}ownKeys(t){return tt(t,"iterate",H(t)?"length":Qn),Reflect.ownKeys(t)}}class Rf extends Of{constructor(t=!1){super(!0,t)}set(t,n){return Kt(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return Kt(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const Hm=new Af,Um=new Rf,Km=new Af(!0),qm=new Rf(!0),ea=e=>e,Qr=e=>Reflect.getPrototypeOf(e);function zi(e,t,n=!1,s=!1){e=e.__v_raw;const i=se(e),r=se(t);n||(Pt(t,r)&&tt(i,"get",t),tt(i,"get",r));const{has:o}=Qr(i),l=s?ea:n?sa:pi;if(o.call(i,t))return l(e.get(t));if(o.call(i,r))return l(e.get(r));e!==i&&e.get(t)}function Gi(e,t=!1){const n=this.__v_raw,s=se(n),i=se(e);return t||(Pt(e,i)&&tt(s,"has",e),tt(s,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Yi(e,t=!1){return e=e.__v_raw,!t&&tt(se(e),"iterate",Qn),Reflect.get(e,"size",e)}function Sc(e){e=se(e);const t=se(this);return Qr(t).has.call(t,e)||(t.add(e),Bt(t,"add",e,e)),this}function wc(e,t){t=se(t);const n=se(this),{has:s,get:i}=Qr(n);let r=s.call(n,e);r?If(n,s,e):(e=se(e),r=s.call(n,e));const o=i.call(n,e);return n.set(e,t),r?Pt(t,o)&&Bt(n,"set",e,t,o):Bt(n,"add",e,t),this}function Ec(e){const t=se(this),{has:n,get:s}=Qr(t);let i=n.call(t,e);i?If(t,n,e):(e=se(e),i=n.call(t,e));const r=s?s.call(t,e):void 0,o=t.delete(e);return i&&Bt(t,"delete",e,void 0,r),o}function Cc(){const e=se(this),t=e.size!==0,n=Jn(e)?new Map(e):new Set(e),s=e.clear();return t&&Bt(e,"clear",void 0,void 0,n),s}function Ji(e,t){return function(s,i){const r=this,o=r.__v_raw,l=se(o),a=t?ea:e?sa:pi;return!e&&tt(l,"iterate",Qn),o.forEach((c,f)=>s.call(i,a(c),a(f),r))}}function Xi(e,t,n){return function(...s){const i=this.__v_raw,r=se(i),o=Jn(r),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,c=i[e](...s),f=n?ea:t?sa:pi;return!t&&tt(r,"iterate",a?Jo:Qn),{next(){const{value:u,done:d}=c.next();return d?{value:u,done:d}:{value:l?[f(u[0]),f(u[1])]:f(u),done:d}},[Symbol.iterator](){return this}}}}function cn(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";Kt(`${Ut(e)} operation ${n}failed: target is readonly.`,se(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Wm(){const e={get(r){return zi(this,r)},get size(){return Yi(this)},has:Gi,add:Sc,set:wc,delete:Ec,clear:Cc,forEach:Ji(!1,!1)},t={get(r){return zi(this,r,!1,!0)},get size(){return Yi(this)},has:Gi,add:Sc,set:wc,delete:Ec,clear:Cc,forEach:Ji(!1,!0)},n={get(r){return zi(this,r,!0)},get size(){return Yi(this,!0)},has(r){return Gi.call(this,r,!0)},add:cn("add"),set:cn("set"),delete:cn("delete"),clear:cn("clear"),forEach:Ji(!0,!1)},s={get(r){return zi(this,r,!0,!0)},get size(){return Yi(this,!0)},has(r){return Gi.call(this,r,!0)},add:cn("add"),set:cn("set"),delete:cn("delete"),clear:cn("clear"),forEach:Ji(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Xi(r,!1,!1),n[r]=Xi(r,!0,!1),t[r]=Xi(r,!1,!0),s[r]=Xi(r,!0,!0)}),[e,n,t,s]}const[zm,Gm,Ym,Jm]=Wm();function Zr(e,t){const n=t?e?Jm:Ym:e?Gm:zm;return(s,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(de(n,i)&&i in s?n:s,i,r)}const Xm={get:Zr(!1,!1)},Qm={get:Zr(!1,!0)},Zm={get:Zr(!0,!1)},eg={get:Zr(!0,!0)};function If(e,t,n){const s=se(n);if(s!==n&&t.call(e,s)){const i=ql(e);Kt(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Nf=new WeakMap,kf=new WeakMap,Pf=new WeakMap,Mf=new WeakMap;function tg(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ng(e){return e.__v_skip||!Object.isExtensible(e)?0:tg(ql(e))}function it(e){return sn(e)?e:eo(e,!1,Hm,Xm,Nf)}function ta(e){return eo(e,!1,Km,Qm,kf)}function Rt(e){return eo(e,!0,Um,Zm,Pf)}function qn(e){return eo(e,!0,qm,eg,Mf)}function eo(e,t,n,s,i){if(!he(e))return Kt(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const o=ng(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return i.set(e,l),l}function xn(e){return sn(e)?xn(e.__v_raw):!!(e&&e.__v_isReactive)}function sn(e){return!!(e&&e.__v_isReadonly)}function On(e){return!!(e&&e.__v_isShallow)}function di(e){return xn(e)||sn(e)}function se(e){const t=e&&e.__v_raw;return t?se(t):e}function na(e){return Object.isExtensible(e)&&wr(e,"__v_skip",!0),e}const pi=e=>he(e)?it(e):e,sa=e=>he(e)?Rt(e):e,sg="Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";class $f{constructor(t,n,s,i){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Cs(()=>t(this._value),()=>gs(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const t=se(this);return(!t._cacheable||t.effect.dirty)&&Pt(t._value,t._value=t.effect.run())&&gs(t,4),ia(t),t.effect._dirtyLevel>=2&&(this._warnRecursive&&Kt(sg,`
getter: `,this.getter),gs(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ig(e,t,n=!1){let s,i;const r=Q(e);r?(s=e,i=()=>{Kt("Write operation failed: computed value is readonly")}):(s=e.get,i=e.set);const o=new $f(s,i,r||!i,n);return t&&!n&&(o.effect.onTrack=t.onTrack,o.effect.onTrigger=t.onTrigger),o}function ia(e){var t;Tn&&Xn&&(e=se(e),Ef(Xn,(t=e.dep)!=null?t:e.dep=Tf(()=>e.dep=void 0,e instanceof $f?e:void 0),{target:e,type:"get",key:"value"}))}function gs(e,t=4,n){e=se(e);const s=e.dep;s&&Cf(s,t,{target:e,type:"set",key:"value",newValue:n})}function Te(e){return!!(e&&e.__v_isRef===!0)}function ne(e){return Ff(e,!1)}function ra(e){return Ff(e,!0)}function Ff(e,t){return Te(e)?e:new rg(e,t)}class rg{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:se(t),this._value=n?t:pi(t)}get value(){return ia(this),this._value}set value(t){const n=this.__v_isShallow||On(t)||sn(t);t=n?t:se(t),Pt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:pi(t),gs(this,4,t))}}function og(e){gs(e,4,e.value)}function Ze(e){return Te(e)?e.value:e}function lg(e){return Q(e)?e():Ze(e)}const ag={get:(e,t,n)=>Ze(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return Te(i)&&!Te(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function oa(e){return xn(e)?e:new Proxy(e,ag)}class cg{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>ia(this),()=>gs(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function to(e){return new cg(e)}function Lf(e){di(e)||Kt("toRefs() expects a reactive object but received a plain one.");const t=H(e)?new Array(e.length):{};for(const n in e)t[n]=Vf(e,n);return t}class ug{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Dm(se(this._object),this._key)}}class fg{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Df(e,t,n){return Te(e)?e:Q(e)?new fg(e):he(e)&&arguments.length>1?Vf(e,t,n):ne(e)}function Vf(e,t,n){const s=e[t];return Te(s)?s:new ug(e,t,n)}const dg={GET:"get",HAS:"has",ITERATE:"iterate"},pg={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/**
* @vue/runtime-core v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Zn=[];function Qs(e){Zn.push(e)}function Zs(){Zn.pop()}function M(e,...t){$n();const n=Zn.length?Zn[Zn.length-1].component:null,s=n&&n.appContext.config.warnHandler,i=hg();if(s)Ht(s,n,11,[e+t.map(r=>{var o,l;return(l=(o=r.toString)==null?void 0:o.call(r))!=null?l:JSON.stringify(r)}).join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${po(n,r.type)}>`).join(`
`),i]);else{const r=[`[Vue warn]: ${e}`,...t];i.length&&r.push(`
`,...mg(i)),console.warn(...r)}Fn()}function hg(){let e=Zn[Zn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function mg(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
`],...gg(n))}),t}function gg({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,i=` at <${po(e.component,e.type,s)}`,r=">"+n;return e.props?[i,...yg(e.props),r]:[i+r]}function yg(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...jf(s,e[s]))}),n.length>3&&t.push(" ..."),t}function jf(e,t,n){return ee(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Te(t)?(t=jf(e,se(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Q(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=se(t),n?t:[`${e}=`,t])}function la(e,t){e!==void 0&&(typeof e!="number"?M(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&M(`${t} is NaN - the duration expression might be incorrect.`))}const vg={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},no={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function Ht(e,t,n,s){try{return s?e(...s):e()}catch(i){Ln(i,t,n)}}function mt(e,t,n,s){if(Q(e)){const r=Ht(e,t,n,s);return r&&Yr(r)&&r.catch(o=>{Ln(o,t,n)}),r}const i=[];for(let r=0;r<e.length;r++)i.push(mt(e[r],t,n,s));return i}function Ln(e,t,n,s=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,l=no[n];for(;r;){const c=r.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,o,l)===!1)return}r=r.parent}const a=t.appContext.config.errorHandler;if(a){Ht(a,null,10,[e,o,l]);return}}bg(e,n,i,s)}function bg(e,t,n,s=!0){{const i=no[t];if(n&&Qs(n),M(`Unhandled error${i?` during execution of ${i}`:""}`),n&&Zs(),s)throw e;console.error(e)}}let hi=!1,Xo=!1;const Qe=[];let Vt=0;const ys=[];let Qt=null,hn=0;const Bf=Promise.resolve();let aa=null;const _g=100;function Dn(e){const t=aa||Bf;return e?t.then(this?e.bind(this):e):t}function Sg(e){let t=Vt+1,n=Qe.length;for(;t<n;){const s=t+n>>>1,i=Qe[s],r=gi(i);r<e||r===e&&i.pre?t=s+1:n=s}return t}function Ni(e){(!Qe.length||!Qe.includes(e,hi&&e.allowRecurse?Vt+1:Vt))&&(e.id==null?Qe.push(e):Qe.splice(Sg(e.id),0,e),Hf())}function Hf(){!hi&&!Xo&&(Xo=!0,aa=Bf.then(Uf))}function wg(e){const t=Qe.indexOf(e);t>Vt&&Qe.splice(t,1)}function mi(e){H(e)?ys.push(...e):(!Qt||!Qt.includes(e,e.allowRecurse?hn+1:hn))&&ys.push(e),Hf()}function Tc(e,t,n=hi?Vt+1:0){for(t=t||new Map;n<Qe.length;n++){const s=Qe[n];if(s&&s.pre){if(e&&s.id!==e.uid||ca(t,s))continue;Qe.splice(n,1),n--,s()}}}function Tr(e){if(ys.length){const t=[...new Set(ys)].sort((n,s)=>gi(n)-gi(s));if(ys.length=0,Qt){Qt.push(...t);return}for(Qt=t,e=e||new Map,hn=0;hn<Qt.length;hn++)ca(e,Qt[hn])||Qt[hn]();Qt=null,hn=0}}const gi=e=>e.id==null?1/0:e.id,Eg=(e,t)=>{const n=gi(e)-gi(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Uf(e){Xo=!1,hi=!0,e=e||new Map,Qe.sort(Eg);const t=n=>ca(e,n);try{for(Vt=0;Vt<Qe.length;Vt++){const n=Qe[Vt];if(n&&n.active!==!1){if(t(n))continue;Ht(n,null,14)}}}finally{Vt=0,Qe.length=0,Tr(e),hi=!1,aa=null,(Qe.length||ys.length)&&Uf(e)}}function ca(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>_g){const s=t.ownerInstance,i=s&&_i(s.type);return Ln(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,n+1)}}let An=!1;const hs=new Set;zl().__VUE_HMR_RUNTIME__={createRecord:Co(Kf),rerender:Co(xg),reload:Co(Og)};const ss=new Map;function Cg(e){const t=e.type.__hmrId;let n=ss.get(t);n||(Kf(t,e.type),n=ss.get(t)),n.instances.add(e)}function Tg(e){ss.get(e.type.__hmrId).instances.delete(e)}function Kf(e,t){return ss.has(e)?!1:(ss.set(e,{initialDef:ei(t),instances:new Set}),!0)}function ei(e){return Kd(e)?e.__vccOpts:e}function xg(e,t){const n=ss.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(s=>{t&&(s.render=t,ei(s.type).render=t),s.renderCache=[],An=!0,s.effect.dirty=!0,s.update(),An=!1}))}function Og(e,t){const n=ss.get(e);if(!n)return;t=ei(t),xc(n.initialDef,t);const s=[...n.instances];for(const i of s){const r=ei(i.type);hs.has(r)||(r!==n.initialDef&&xc(r,t),hs.add(r)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(hs.add(r),i.ceReload(t.styles),hs.delete(r)):i.parent?(i.parent.effect.dirty=!0,Ni(i.parent.update)):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}mi(()=>{for(const i of s)hs.delete(ei(i.type))})}function xc(e,t){ce(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Co(e){return(t,n)=>{try{return e(t,n)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Ot,Ys=[],Qo=!1;function ki(e,...t){Ot?Ot.emit(e,...t):Qo||Ys.push({event:e,args:t})}function ua(e,t){var n,s;Ot=e,Ot?(Ot.enabled=!0,Ys.forEach(({event:i,args:r})=>Ot.emit(i,...r)),Ys=[]):typeof window<"u"&&window.HTMLElement&&!((s=(n=window.navigator)==null?void 0:n.userAgent)!=null&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{ua(r,t)}),setTimeout(()=>{Ot||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Qo=!0,Ys=[])},3e3)):(Qo=!0,Ys=[])}function Ag(e,t){ki("app:init",e,t,{Fragment:De,Text:kn,Comment:$e,Static:Rn})}function Rg(e){ki("app:unmount",e)}const Zo=fa("component:added"),qf=fa("component:updated"),Ig=fa("component:removed"),Ng=e=>{Ot&&typeof Ot.cleanupBuffer=="function"&&!Ot.cleanupBuffer(e)&&Ig(e)};function fa(e){return t=>{ki(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const kg=Wf("perf:start"),Pg=Wf("perf:end");function Wf(e){return(t,n,s)=>{ki(e,t.appContext.app,t.uid,t,n,s)}}function Mg(e,t,n){ki("component:emit",e.appContext.app,e,t,n)}function $g(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||me;{const{emitsOptions:f,propsOptions:[u]}=e;if(f)if(!(t in f))(!u||!(Dt(t)in u))&&M(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Dt(t)}" prop.`);else{const d=f[t];Q(d)&&(d(...n)||M(`Invalid event arguments: event validation failed for event "${t}".`))}}let i=n;const r=t.startsWith("update:"),o=r&&t.slice(7);if(o&&o in s){const f=`${o==="modelValue"?"model":o}Modifiers`,{number:u,trim:d}=s[f]||me;d&&(i=n.map(p=>ee(p)?p.trim():p)),u&&(i=n.map(fi))}Mg(e,t,i);{const f=t.toLowerCase();f!==t&&s[Dt(f)]&&M(`Event "${f}" is emitted in component ${po(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Xe(t)}" instead of "${t}".`)}let l,a=s[l=Dt(t)]||s[l=Dt(Ie(t))];!a&&r&&(a=s[l=Dt(Xe(t))]),a&&mt(a,e,6,i);const c=s[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,mt(c,e,6,i)}}function zf(e,t,n=!1){const s=t.emitsCache,i=s.get(e);if(i!==void 0)return i;const r=e.emits;let o={},l=!1;if(!Q(e)){const a=c=>{const f=zf(c,t,!0);f&&(l=!0,ce(o,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(he(e)&&s.set(e,null),null):(H(r)?r.forEach(a=>o[a]=null):ce(o,r),he(e)&&s.set(e,o),o)}function so(e,t){return!e||!nn(t)?!1:(t=t.slice(2).replace(/Once$/,""),de(e,t[0].toLowerCase()+t.slice(1))||de(e,Xe(t))||de(e,t))}let Re=null,io=null;function yi(e){const t=Re;return Re=e,io=e&&e.type.__scopeId||null,t}function Fg(e){io=e}function Lg(){io=null}const Dg=e=>da;function da(e,t=Re,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&al(-1);const r=yi(t);let o;try{o=e(...i)}finally{yi(r),s._d&&al(1)}return qf(t),o};return s._n=!0,s._c=!0,s._d=!0,s}let el=!1;function xr(){el=!0}function dr(e){const{type:t,vnode:n,proxy:s,withProxy:i,props:r,propsOptions:[o],slots:l,attrs:a,emit:c,render:f,renderCache:u,data:d,setupState:p,ctx:m,inheritAttrs:w}=e;let E,y;const _=yi(e);el=!1;try{if(n.shapeFlag&4){const S=i||s,A=p.__isScriptSetup?new Proxy(S,{get(C,T,O){return M(`Property '${String(T)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(C,T,O)}}):S;E=ut(f.call(A,S,u,r,p,d,m)),y=a}else{const S=t;a===r&&xr(),E=ut(S.length>1?S(r,{get attrs(){return xr(),a},slots:l,emit:c}):S(r,null)),y=t.props?a:Vg(a)}}catch(S){ni.length=0,Ln(S,e,1),E=xe($e)}let g=E,b;if(E.patchFlag>0&&E.patchFlag&2048&&([g,b]=Gf(E)),y&&w!==!1){const S=Object.keys(y),{shapeFlag:A}=g;if(S.length){if(A&7)o&&S.some(Sr)&&(y=jg(y,o)),g=Tt(g,y);else if(!el&&g.type!==$e){const C=Object.keys(a),T=[],O=[];for(let x=0,N=C.length;x<N;x++){const I=C[x];nn(I)?Sr(I)||T.push(I[2].toLowerCase()+I.slice(3)):O.push(I)}O.length&&M(`Extraneous non-props attributes (${O.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),T.length&&M(`Extraneous non-emits event listeners (${T.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&(Oc(g)||M("Runtime directive used on component with non-element root node. The directives will not function as intended."),g=Tt(g),g.dirs=g.dirs?g.dirs.concat(n.dirs):n.dirs),n.transition&&(Oc(g)||M("Component inside <Transition> renders non-element root node that cannot be animated."),g.transition=n.transition),b?b(g):E=g,yi(_),E}const Gf=e=>{const t=e.children,n=e.dynamicChildren,s=ro(t,!1);if(s){if(s.patchFlag>0&&s.patchFlag&2048)return Gf(s)}else return[e,void 0];const i=t.indexOf(s),r=n?n.indexOf(s):-1,o=l=>{t[i]=l,n&&(r>-1?n[r]=l:l.patchFlag>0&&(e.dynamicChildren=[...n,l]))};return[ut(s),o]};function ro(e,t=!0){let n;for(let s=0;s<e.length;s++){const i=e[s];if(rn(i)){if(i.type!==$e||i.children==="v-if"){if(n)return;if(n=i,t&&n.patchFlag>0&&n.patchFlag&2048)return ro(n.children)}}else return}return n}const Vg=e=>{let t;for(const n in e)(n==="class"||n==="style"||nn(n))&&((t||(t={}))[n]=e[n]);return t},jg=(e,t)=>{const n={};for(const s in e)(!Sr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n},Oc=e=>e.shapeFlag&7||e.type===$e;function Bg(e,t,n){const{props:s,children:i,component:r}=e,{props:o,children:l,patchFlag:a}=t,c=r.emitsOptions;if((i||l)&&An||t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Ac(s,o,c):!!o;if(a&8){const f=t.dynamicProps;for(let u=0;u<f.length;u++){const d=f[u];if(o[d]!==s[d]&&!so(c,d))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?Ac(s,o,c):!0:!!o;return!1}function Ac(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let i=0;i<s.length;i++){const r=s[i];if(t[r]!==e[r]&&!so(n,r))return!0}return!1}function pa({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Or="components",Hg="directives";function Yf(e,t){return ma(Or,e,!0,t)||e}const ha=Symbol.for("v-ndc");function Ug(e){return ee(e)?ma(Or,e,!1)||e:e||ha}function Kg(e){return ma(Hg,e)}function ma(e,t,n=!0,s=!1){const i=Re||Pe;if(i){const r=i.type;if(e===Or){const l=_i(r,!1);if(l&&(l===t||l===Ie(t)||l===Ut(Ie(t))))return r}const o=Rc(i[e]||r[e],t)||Rc(i.appContext[e],t);if(!o&&s)return r;if(n&&!o){const l=e===Or?`
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";M(`Failed to resolve ${e.slice(0,-1)}: ${t}${l}`)}return o}else M(`resolve${Ut(e.slice(0,-1))} can only be used in render() or setup().`)}function Rc(e,t){return e&&(e[t]||e[Ie(t)]||e[Ut(Ie(t))])}const Jf=e=>e.__isSuspense;let tl=0;const qg={name:"Suspense",__isSuspense:!0,process(e,t,n,s,i,r,o,l,a,c){if(e==null)zg(t,n,s,i,r,o,l,a,c);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Gg(e,t,n,s,i,o,l,a,c)}},hydrate:Yg,create:ga,normalize:Jg},Wg=qg;function vi(e,t){const n=e.props&&e.props[t];Q(n)&&n()}function zg(e,t,n,s,i,r,o,l,a){const{p:c,o:{createElement:f}}=a,u=f("div"),d=e.suspense=ga(e,i,s,t,u,n,r,o,l,a);c(null,d.pendingBranch=e.ssContent,u,null,s,d,r,o),d.deps>0?(vi(e,"onPending"),vi(e,"onFallback"),c(null,e.ssFallback,t,n,s,null,r,o),vs(d,e.ssFallback)):d.resolve(!1,!0)}function Gg(e,t,n,s,i,r,o,l,{p:a,um:c,o:{createElement:f}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:w,isInFallback:E,isHydrating:y}=u;if(w)u.pendingBranch=d,At(d,w)?(a(w,d,u.hiddenContainer,null,i,u,r,o,l),u.deps<=0?u.resolve():E&&(y||(a(m,p,n,s,i,null,r,o,l),vs(u,p)))):(u.pendingId=tl++,y?(u.isHydrating=!1,u.activeBranch=w):c(w,i,u),u.deps=0,u.effects.length=0,u.hiddenContainer=f("div"),E?(a(null,d,u.hiddenContainer,null,i,u,r,o,l),u.deps<=0?u.resolve():(a(m,p,n,s,i,null,r,o,l),vs(u,p))):m&&At(d,m)?(a(m,d,n,s,i,u,r,o,l),u.resolve(!0)):(a(null,d,u.hiddenContainer,null,i,u,r,o,l),u.deps<=0&&u.resolve()));else if(m&&At(d,m))a(m,d,n,s,i,u,r,o,l),vs(u,d);else if(vi(t,"onPending"),u.pendingBranch=d,d.shapeFlag&512?u.pendingId=d.component.suspenseId:u.pendingId=tl++,a(null,d,u.hiddenContainer,null,i,u,r,o,l),u.deps<=0)u.resolve();else{const{timeout:_,pendingId:g}=u;_>0?setTimeout(()=>{u.pendingId===g&&u.fallback(p)},_):_===0&&u.fallback(p)}}let Ic=!1;function ga(e,t,n,s,i,r,o,l,a,c,f=!1){Ic||(Ic=!0,console[console.info?"info":"log"]("<Suspense> is an experimental feature and its API will likely change."));const{p:u,m:d,um:p,n:m,o:{parentNode:w,remove:E}}=c;let y;const _=Xg(e);_&&t!=null&&t.pendingBranch&&(y=t.pendingId,t.deps++);const g=e.props?Er(e.props.timeout):void 0;la(g,"Suspense timeout");const b=r,S={vnode:e,parent:t,parentComponent:n,namespace:o,container:s,hiddenContainer:i,deps:0,pendingId:tl++,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(A=!1,C=!1){{if(!A&&!S.pendingBranch)throw new Error("suspense.resolve() is called without a pending branch.");if(S.isUnmounted)throw new Error("suspense.resolve() is called on an already unmounted suspense boundary.")}const{vnode:T,activeBranch:O,pendingBranch:x,pendingId:N,effects:I,parentComponent:j,container:G}=S;let te=!1;S.isHydrating?S.isHydrating=!1:A||(te=O&&x.transition&&x.transition.mode==="out-in",te&&(O.transition.afterLeave=()=>{N===S.pendingId&&(d(x,G,r===b?m(O):r,0),mi(I))}),O&&(w(O.el)!==S.hiddenContainer&&(r=m(O)),p(O,j,S,!0)),te||d(x,G,r,0)),vs(S,x),S.pendingBranch=null,S.isInFallback=!1;let z=S.parent,J=!1;for(;z;){if(z.pendingBranch){z.effects.push(...I),J=!0;break}z=z.parent}!J&&!te&&mi(I),S.effects=[],_&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!C&&t.resolve()),vi(T,"onResolve")},fallback(A){if(!S.pendingBranch)return;const{vnode:C,activeBranch:T,parentComponent:O,container:x,namespace:N}=S;vi(C,"onFallback");const I=m(T),j=()=>{S.isInFallback&&(u(null,A,x,I,O,null,N,l,a),vs(S,A))},G=A.transition&&A.transition.mode==="out-in";G&&(T.transition.afterLeave=j),S.isInFallback=!0,p(T,O,null,!0),G||j()},move(A,C,T){S.activeBranch&&d(S.activeBranch,A,C,T),S.container=A},next(){return S.activeBranch&&m(S.activeBranch)},registerDep(A,C){const T=!!S.pendingBranch;T&&S.deps++;const O=A.vnode.el;A.asyncDep.catch(x=>{Ln(x,A,0)}).then(x=>{if(A.isUnmounted||S.isUnmounted||S.pendingId!==A.suspenseId)return;A.asyncResolved=!0;const{vnode:N}=A;Qs(N),pl(A,x,!1),O&&(N.el=O);const I=!O&&A.subTree.el;C(A,N,w(O||A.subTree.el),O?null:m(A.subTree),S,o,a),I&&E(I),pa(A,N.el),Zs(),T&&--S.deps===0&&S.resolve()})},unmount(A,C){S.isUnmounted=!0,S.activeBranch&&p(S.activeBranch,n,A,C),S.pendingBranch&&p(S.pendingBranch,n,A,C)}};return S}function Yg(e,t,n,s,i,r,o,l,a){const c=t.suspense=ga(t,s,n,e.parentNode,document.createElement("div"),null,i,r,o,l,!0),f=a(e,c.pendingBranch=t.ssContent,n,c,r,o);return c.deps===0&&c.resolve(!1,!0),f}function Jg(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=Nc(s?n.default:n),e.ssFallback=s?Nc(n.fallback):xe($e)}function Nc(e){let t;if(Q(e)){const n=rs&&e._c;n&&(e._d=!1,co()),e=e(),n&&(e._d=!0,t=ft,kd())}if(H(e)){const n=ro(e);!n&&e.filter(s=>s!==ha).length>0&&M("<Suspense> slots expect a single root node."),e=n}return e=ut(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Xf(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):mi(e)}function vs(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,s&&s.subTree===n&&(s.vnode.el=i,pa(s,i))}function Xg(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const Qf=Symbol.for("v-scx"),Zf=()=>{{const e=Et(Qf);return e||M("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function ya(e,t){return Pi(e,null,t)}function ed(e,t){return Pi(e,null,ce({},t,{flush:"post"}))}function td(e,t){return Pi(e,null,ce({},t,{flush:"sync"}))}const Qi={};function Ee(e,t,n){return Q(t)||M("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Pi(e,t,n)}function Pi(e,t,{immediate:n,deep:s,flush:i,once:r,onTrack:o,onTrigger:l}=me){if(t&&r){const C=t;t=(...T)=>{C(...T),A()}}s!==void 0&&typeof s=="number"&&M('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),t||(n!==void 0&&M('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&M('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&M('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const a=C=>{M("Invalid watch source: ",C,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=Pe,f=C=>s===!0?C:Wn(C,s===!1?1:void 0);let u,d=!1,p=!1;if(Te(e)?(u=()=>e.value,d=On(e)):xn(e)?(u=()=>f(e),d=!0):H(e)?(p=!0,d=e.some(C=>xn(C)||On(C)),u=()=>e.map(C=>{if(Te(C))return C.value;if(xn(C))return f(C);if(Q(C))return Ht(C,c,2);a(C)})):Q(e)?t?u=()=>Ht(e,c,2):u=()=>(m&&m(),mt(e,c,3,[w])):(u=Me,a(e)),t&&s){const C=u;u=()=>Wn(C())}let m,w=C=>{m=b.onStop=()=>{Ht(C,c,4),m=b.onStop=void 0}},E;if(Fi)if(w=Me,t?n&&mt(t,c,3,[u(),p?[]:void 0,w]):u(),i==="sync"){const C=Zf();E=C.__watcherHandles||(C.__watcherHandles=[])}else return Me;let y=p?new Array(e.length).fill(Qi):Qi;const _=()=>{if(!(!b.active||!b.dirty))if(t){const C=b.run();(s||d||(p?C.some((T,O)=>Pt(T,y[O])):Pt(C,y)))&&(m&&m(),mt(t,c,3,[C,y===Qi?void 0:p&&y[0]===Qi?[]:y,w]),y=C)}else b.run()};_.allowRecurse=!!t;let g;i==="sync"?g=_:i==="post"?g=()=>We(_,c&&c.suspense):(_.pre=!0,c&&(_.id=c.uid),g=()=>Ni(_));const b=new Cs(u,Me,g),S=Xl(),A=()=>{b.stop(),S&&Kl(S.effects,b)};return b.onTrack=o,b.onTrigger=l,t?n?_():y=b.run():i==="post"?We(b.run.bind(b),c&&c.suspense):b.run(),E&&E.push(A),A}function Qg(e,t,n){const s=this.proxy,i=ee(e)?e.includes(".")?nd(s,e):()=>s[e]:e.bind(s,s);let r;Q(t)?r=t:(r=t.handler,n=t);const o=os(this),l=Pi(i,r.bind(s),n);return o(),l}function nd(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}function Wn(e,t,n=0,s){if(!he(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),Te(e))Wn(e.value,t,n,s);else if(H(e))for(let i=0;i<e.length;i++)Wn(e[i],t,n,s);else if(as(e)||Jn(e))e.forEach(i=>{Wn(i,t,n,s)});else if(ff(e))for(const i in e)Wn(e[i],t,n,s);return e}function sd(e){df(e)&&M("Do not use built-in directive ids as custom directive id: "+e)}function Zg(e,t){if(Re===null)return M("withDirectives can only be used inside render functions."),e;const n=fo(Re)||Re.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,l,a=me]=t[i];r&&(Q(r)&&(r={mounted:r,updated:r}),r.deep&&Wn(o),s.push({dir:r,instance:n,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function Lt(e,t,n,s){const i=e.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const l=i[o];r&&(l.oldValue=r[o].value);let a=l.dir[s];a&&($n(),mt(a,n,8,[e.el,l,e,t]),Fn())}}const mn=Symbol("_leaveCb"),Zi=Symbol("_enterCb");function va(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return cs(()=>{e.isMounted=!0}),ao(()=>{e.isUnmounting=!0}),e}const bt=[Function,Array],ba={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:bt,onEnter:bt,onAfterEnter:bt,onEnterCancelled:bt,onBeforeLeave:bt,onLeave:bt,onAfterLeave:bt,onLeaveCancelled:bt,onBeforeAppear:bt,onAppear:bt,onAfterAppear:bt,onAppearCancelled:bt},ey={name:"BaseTransition",props:ba,setup(e,{slots:t}){const n=Ge(),s=va();return()=>{const i=t.default&&oo(t.default(),!0);if(!i||!i.length)return;let r=i[0];if(i.length>1){let d=!1;for(const p of i)if(p.type!==$e){if(d){M("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}r=p,d=!0}}const o=se(e),{mode:l}=o;if(l&&l!=="in-out"&&l!=="out-in"&&l!=="default"&&M(`invalid <transition> mode: ${l}`),s.isLeaving)return To(r);const a=kc(r);if(!a)return To(r);const c=Ts(a,o,s,n);is(a,c);const f=n.subTree,u=f&&kc(f);if(u&&u.type!==$e&&!At(a,u)){const d=Ts(u,o,s,n);if(is(u,d),l==="out-in")return s.isLeaving=!0,d.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},To(r);l==="in-out"&&a.type!==$e&&(d.delayLeave=(p,m,w)=>{const E=rd(s,u);E[String(u.key)]=u,p[mn]=()=>{m(),p[mn]=void 0,delete c.delayedLeave},c.delayedLeave=w})}return r}}},id=ey;function rd(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Ts(e,t,n,s){const{appear:i,mode:r,persisted:o=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:u,onLeave:d,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:w,onAppear:E,onAfterAppear:y,onAppearCancelled:_}=t,g=String(e.key),b=rd(n,e),S=(T,O)=>{T&&mt(T,s,9,O)},A=(T,O)=>{const x=O[1];S(T,O),H(T)?T.every(N=>N.length<=1)&&x():T.length<=1&&x()},C={mode:r,persisted:o,beforeEnter(T){let O=l;if(!n.isMounted)if(i)O=w||l;else return;T[mn]&&T[mn](!0);const x=b[g];x&&At(e,x)&&x.el[mn]&&x.el[mn](),S(O,[T])},enter(T){let O=a,x=c,N=f;if(!n.isMounted)if(i)O=E||a,x=y||c,N=_||f;else return;let I=!1;const j=T[Zi]=G=>{I||(I=!0,G?S(N,[T]):S(x,[T]),C.delayedLeave&&C.delayedLeave(),T[Zi]=void 0)};O?A(O,[T,j]):j()},leave(T,O){const x=String(e.key);if(T[Zi]&&T[Zi](!0),n.isUnmounting)return O();S(u,[T]);let N=!1;const I=T[mn]=j=>{N||(N=!0,O(),j?S(m,[T]):S(p,[T]),T[mn]=void 0,b[x]===e&&delete b[x])};b[x]=e,d?A(d,[T,I]):I()},clone(T){return Ts(T,t,n,s)}};return C}function To(e){if(Bs(e))return e=Tt(e),e.children=null,e}function kc(e){return Bs(e)?e.component?e.component.subTree:e.children?e.children[0]:void 0:e}function is(e,t){e.shapeFlag&6&&e.component?is(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function oo(e,t=!1,n){let s=[],i=0;for(let r=0;r<e.length;r++){let o=e[r];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:r);o.type===De?(o.patchFlag&128&&i++,s=s.concat(oo(o.children,t,l))):(t||o.type!==$e)&&s.push(l!=null?Tt(o,{key:l}):o)}if(i>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function js(e,t){return Q(e)?ce({name:e.name},t,{setup:e}):e}const es=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function ty(e){Q(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:i=200,timeout:r,suspensible:o=!0,onError:l}=e;let a=null,c,f=0;const u=()=>(f++,a=null,d()),d=()=>{let p;return a||(p=a=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((w,E)=>{l(m,()=>w(u()),()=>E(m),f+1)});throw m}).then(m=>{if(p!==a&&a)return a;if(m||M("Async component loader resolved to undefined. If you are using retry(), make sure to return its return value."),m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),m&&!he(m)&&!Q(m))throw new Error(`Invalid async component load result: ${m}`);return c=m,m}))};return js({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const p=Pe;if(c)return()=>xo(c,p);const m=_=>{a=null,Ln(_,p,13,!s)};if(o&&p.suspense||Fi)return d().then(_=>()=>xo(_,p)).catch(_=>(m(_),()=>s?xe(s,{error:_}):null));const w=ne(!1),E=ne(),y=ne(!!i);return i&&setTimeout(()=>{y.value=!1},i),r!=null&&setTimeout(()=>{if(!w.value&&!E.value){const _=new Error(`Async component timed out after ${r}ms.`);m(_),E.value=_}},r),d().then(()=>{w.value=!0,p.parent&&Bs(p.parent.vnode)&&(p.parent.effect.dirty=!0,Ni(p.parent.update))}).catch(_=>{m(_),E.value=_}),()=>{if(w.value&&c)return xo(c,p);if(E.value&&s)return xe(s,{error:E.value});if(n&&!y.value)return xe(n)}}})}function xo(e,t){const{ref:n,props:s,children:i,ce:r}=t.vnode,o=xe(e,s,i);return o.ref=n,o.ce=r,delete t.vnode.ce,o}const Bs=e=>e.type.__isKeepAlive,ny={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ge(),s=n.ctx;if(!s.renderer)return()=>{const _=t.default&&t.default();return _&&_.length===1?_[0]:_};const i=new Map,r=new Set;let o=null;n.__v_cache=i;const l=n.suspense,{renderer:{p:a,m:c,um:f,o:{createElement:u}}}=s,d=u("div");s.activate=(_,g,b,S,A)=>{const C=_.component;c(_,g,b,0,l),a(C.vnode,_,g,b,C,l,S,_.slotScopeIds,A),We(()=>{C.isDeactivated=!1,C.a&&_n(C.a);const T=_.props&&_.props.onVnodeMounted;T&&at(T,C.parent,_)},l),Zo(C)},s.deactivate=_=>{const g=_.component;c(_,d,null,1,l),We(()=>{g.da&&_n(g.da);const b=_.props&&_.props.onVnodeUnmounted;b&&at(b,g.parent,_),g.isDeactivated=!0},l),Zo(g)};function p(_){Oo(_),f(_,n,l,!0)}function m(_){i.forEach((g,b)=>{const S=_i(g.type);S&&(!_||!_(S))&&w(b)})}function w(_){const g=i.get(_);!o||!At(g,o)?p(g):o&&Oo(o),i.delete(_),r.delete(_)}Ee(()=>[e.include,e.exclude],([_,g])=>{_&&m(b=>Js(_,b)),g&&m(b=>!Js(g,b))},{flush:"post",deep:!0});let E=null;const y=()=>{E!=null&&i.set(E,Ao(n.subTree))};return cs(y),Mi(y),ao(()=>{i.forEach(_=>{const{subTree:g,suspense:b}=n,S=Ao(g);if(_.type===S.type&&_.key===S.key){Oo(S);const A=S.component.da;A&&We(A,b);return}p(_)})}),()=>{if(E=null,!t.default)return null;const _=t.default(),g=_[0];if(_.length>1)return M("KeepAlive should contain exactly one component child."),o=null,_;if(!rn(g)||!(g.shapeFlag&4)&&!(g.shapeFlag&128))return o=null,g;let b=Ao(g);const S=b.type,A=_i(es(b)?b.type.__asyncResolved||{}:S),{include:C,exclude:T,max:O}=e;if(C&&(!A||!Js(C,A))||T&&A&&Js(T,A))return o=b,g;const x=b.key==null?S:b.key,N=i.get(x);return b.el&&(b=Tt(b),g.shapeFlag&128&&(g.ssContent=b)),E=x,N?(b.el=N.el,b.component=N.component,b.transition&&is(b,b.transition),b.shapeFlag|=512,r.delete(x),r.add(x)):(r.add(x),O&&r.size>parseInt(O,10)&&w(r.values().next().value)),b.shapeFlag|=256,o=b,Jf(g.type)?g:b}}},sy=ny;function Js(e,t){return H(e)?e.some(n=>Js(n,t)):ee(e)?e.split(",").includes(t):dm(e)?e.test(t):!1}function od(e,t){ad(e,"a",t)}function ld(e,t){ad(e,"da",t)}function ad(e,t,n=Pe){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(lo(t,s,n),n){let i=n.parent;for(;i&&i.parent;)Bs(i.parent.vnode)&&iy(s,t,n,i),i=i.parent}}function iy(e,t,n,s){const i=lo(t,e,s,!0);$i(()=>{Kl(s[t],i)},n)}function Oo(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ao(e){return e.shapeFlag&128?e.ssContent:e}function lo(e,t,n=Pe,s=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;$n();const l=os(n),a=mt(t,n,e,o);return l(),Fn(),a});return s?i.unshift(r):i.push(r),r}else{const i=Dt(no[e].replace(/ hook$/,""));M(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const on=e=>(t,n=Pe)=>(!Fi||e==="sp")&&lo(e,(...s)=>t(...s),n),cd=on("bm"),cs=on("m"),ud=on("bu"),Mi=on("u"),ao=on("bum"),$i=on("um"),fd=on("sp"),dd=on("rtg"),pd=on("rtc");function hd(e,t=Pe){lo("ec",e,t)}function ry(e,t,n,s){let i;const r=n&&n[s];if(H(e)||ee(e)){i=new Array(e.length);for(let o=0,l=e.length;o<l;o++)i[o]=t(e[o],o,void 0,r&&r[o])}else if(typeof e=="number"){Number.isInteger(e)||M(`The v-for range expect an integer value but got ${e}.`),i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,r&&r[o])}else if(he(e))if(e[Symbol.iterator])i=Array.from(e,(o,l)=>t(o,l,void 0,r&&r[l]));else{const o=Object.keys(e);i=new Array(o.length);for(let l=0,a=o.length;l<a;l++){const c=o[l];i[l]=t(e[c],c,l,r&&r[l])}}else i=[];return n&&(n[s]=i),i}function oy(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(H(s))for(let i=0;i<s.length;i++)e[s[i].name]=s[i].fn;else s&&(e[s.name]=s.key?(...i)=>{const r=s.fn(...i);return r&&(r.key=s.key),r}:s.fn)}return e}function ly(e,t,n={},s,i){if(Re.isCE||Re.parent&&es(Re.parent)&&Re.parent.isCE)return t!=="default"&&(n.name=t),xe("slot",n,s&&s());let r=e[t];r&&r.length>1&&(M("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),r=()=>[]),r&&r._c&&(r._d=!1),co();const o=r&&md(r(n)),l=Ea(De,{key:n.key||o&&o.key||`_${t}`},o||(s?s():[]),o&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function md(e){return e.some(t=>rn(t)?!(t.type===$e||t.type===De&&!md(t.children)):!0)?e:null}function ay(e,t){const n={};if(!he(e))return M("v-on with no argument expects an object value."),n;for(const s in e)n[t&&/[A-Z]/.test(s)?`on:${s}`:Dt(s)]=e[s];return n}const nl=e=>e?Vd(e)?fo(e)||e.proxy:nl(e.parent):null,ts=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>qn(e.props),$attrs:e=>qn(e.attrs),$slots:e=>qn(e.slots),$refs:e=>qn(e.refs),$parent:e=>nl(e.parent),$root:e=>nl(e.root),$emit:e=>e.emit,$options:e=>Sa(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ni(e.update)}),$nextTick:e=>e.n||(e.n=Dn.bind(e.proxy)),$watch:e=>Qg.bind(e)}),_a=e=>e==="_"||e==="$",Ro=(e,t)=>e!==me&&!e.__isScriptSetup&&de(e,t),ti={get({_:e},t){const{ctx:n,setupState:s,data:i,props:r,accessCache:o,type:l,appContext:a}=e;if(t==="__isVue")return!0;let c;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(Ro(s,t))return o[t]=1,s[t];if(i!==me&&de(i,t))return o[t]=2,i[t];if((c=e.propsOptions[0])&&de(c,t))return o[t]=3,r[t];if(n!==me&&de(n,t))return o[t]=4,n[t];sl&&(o[t]=0)}}const f=ts[t];let u,d;if(f)return t==="$attrs"?(tt(e,"get",t),xr()):t==="$slots"&&tt(e,"get",t),f(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==me&&de(n,t))return o[t]=4,n[t];if(d=a.config.globalProperties,de(d,t))return d[t];Re&&(!ee(t)||t.indexOf("__v")!==0)&&(i!==me&&_a(t[0])&&de(i,t)?M(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===Re&&M(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:s,setupState:i,ctx:r}=e;return Ro(i,t)?(i[t]=n,!0):i.__isScriptSetup&&de(i,t)?(M(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):s!==me&&de(s,t)?(s[t]=n,!0):de(e.props,t)?(M(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(M(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(t in e.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:n}):r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,propsOptions:r}},o){let l;return!!n[o]||e!==me&&de(e,o)||Ro(t,o)||(l=r[0])&&de(l,o)||de(s,o)||de(ts,o)||de(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:de(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};ti.ownKeys=e=>(M("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e));const cy=ce({},ti,{get(e,t){if(t!==Symbol.unscopables)return ti.get(e,t,e)},has(e,t){const n=t[0]!=="_"&&!ym(t);return!n&&ti.has(e,t)&&M(`Property ${JSON.stringify(t)} should not start with _ which is a reserved prefix for Vue internals.`),n}});function uy(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(ts).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>ts[n](e),set:Me})}),t}function fy(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(s=>{Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>e.props[s],set:Me})})}function dy(e){const{ctx:t,setupState:n}=e;Object.keys(se(n)).forEach(s=>{if(!n.__isScriptSetup){if(_a(s[0])){M(`setup() return property ${JSON.stringify(s)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>n[s],set:Me})}})}const us=e=>M(`${e}() is a compiler-hint helper that is only usable inside <script setup> of a single file component. Its arguments should be compiled away and passing it at runtime has no effect.`);function py(){return us("defineProps"),null}function hy(){return us("defineEmits"),null}function my(e){us("defineExpose")}function gy(e){us("defineOptions")}function yy(){return us("defineSlots"),null}function vy(){us("defineModel")}function by(e,t){return us("withDefaults"),null}function gd(){return yd().slots}function _y(){return yd().attrs}function yd(){const e=Ge();return e||M("useContext() called without active instance."),e.setupContext||(e.setupContext=Ud(e))}function bi(e){return H(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Sy(e,t){const n=bi(e);for(const s in t){if(s.startsWith("__skip"))continue;let i=n[s];i?H(i)||Q(i)?i=n[s]={type:i,default:t[s]}:i.default=t[s]:i===null?i=n[s]={default:t[s]}:M(`props default key "${s}" has no corresponding declaration.`),i&&t[`__skip_${s}`]&&(i.skipFactory=!0)}return n}function wy(e,t){return!e||!t?e||t:H(e)&&H(t)?e.concat(t):ce({},bi(e),bi(t))}function Ey(e,t){const n={};for(const s in e)t.includes(s)||Object.defineProperty(n,s,{enumerable:!0,get:()=>e[s]});return n}function Cy(e){const t=Ge();t||M("withAsyncContext called without active current instance. This is likely a bug.");let n=e();return fl(),Yr(n)&&(n=n.catch(s=>{throw os(t),s})),[n,()=>os(t)]}function Ty(){const e=Object.create(null);return(t,n)=>{e[n]?M(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let sl=!0;function xy(e){const t=Sa(e),n=e.proxy,s=e.ctx;sl=!1,t.beforeCreate&&Pc(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:o,watch:l,provide:a,inject:c,created:f,beforeMount:u,mounted:d,beforeUpdate:p,updated:m,activated:w,deactivated:E,beforeDestroy:y,beforeUnmount:_,destroyed:g,unmounted:b,render:S,renderTracked:A,renderTriggered:C,errorCaptured:T,serverPrefetch:O,expose:x,inheritAttrs:N,components:I,directives:j,filters:G}=t,te=Ty();{const[J]=e.propsOptions;if(J)for(const W in J)te("Props",W)}if(c&&Oy(c,s,te),o)for(const J in o){const W=o[J];Q(W)?(Object.defineProperty(s,J,{value:W.bind(n),configurable:!0,enumerable:!0,writable:!0}),te("Methods",J)):M(`Method "${J}" has type "${typeof W}" in the component definition. Did you reference the function correctly?`)}if(i){Q(i)||M("The data option must be a function. Plain object usage is no longer supported.");const J=i.call(n,n);if(Yr(J)&&M("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!he(J))M("data() should return an object.");else{e.data=it(J);for(const W in J)te("Data",W),_a(W[0])||Object.defineProperty(s,W,{configurable:!0,enumerable:!0,get:()=>J[W],set:Me})}}if(sl=!0,r)for(const J in r){const W=r[J],Fe=Q(W)?W.bind(n,n):Q(W.get)?W.get.bind(n,n):Me;Fe===Me&&M(`Computed property "${J}" has no getter.`);const Ye=!Q(W)&&Q(W.set)?W.set.bind(n):()=>{M(`Write operation failed: computed property "${J}" is readonly.`)},rt=ae({get:Fe,set:Ye});Object.defineProperty(s,J,{enumerable:!0,configurable:!0,get:()=>rt.value,set:Mt=>rt.value=Mt}),te("Computed",J)}if(l)for(const J in l)vd(l[J],s,n,J);if(a){const J=Q(a)?a.call(n):a;Reflect.ownKeys(J).forEach(W=>{_s(W,J[W])})}f&&Pc(f,e,"c");function z(J,W){H(W)?W.forEach(Fe=>J(Fe.bind(n))):W&&J(W.bind(n))}if(z(cd,u),z(cs,d),z(ud,p),z(Mi,m),z(od,w),z(ld,E),z(hd,T),z(pd,A),z(dd,C),z(ao,_),z($i,b),z(fd,O),H(x))if(x.length){const J=e.exposed||(e.exposed={});x.forEach(W=>{Object.defineProperty(J,W,{get:()=>n[W],set:Fe=>n[W]=Fe})})}else e.exposed||(e.exposed={});S&&e.render===Me&&(e.render=S),N!=null&&(e.inheritAttrs=N),I&&(e.components=I),j&&(e.directives=j)}function Oy(e,t,n=Me){H(e)&&(e=il(e));for(const s in e){const i=e[s];let r;he(i)?"default"in i?r=Et(i.from||s,i.default,!0):r=Et(i.from||s):r=Et(i),Te(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[s]=r,n("Inject",s)}}function Pc(e,t,n){mt(H(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function vd(e,t,n,s){const i=s.includes(".")?nd(n,s):()=>n[s];if(ee(e)){const r=t[e];Q(r)?Ee(i,r):M(`Invalid watch handler specified by key "${e}"`,r)}else if(Q(e))Ee(i,e.bind(n));else if(he(e))if(H(e))e.forEach(r=>vd(r,t,n,s));else{const r=Q(e.handler)?e.handler.bind(n):t[e.handler];Q(r)?Ee(i,r,e):M(`Invalid watch handler specified by key "${e.handler}"`,r)}else M(`Invalid watch option: "${s}"`,e)}function Sa(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,l=r.get(t);let a;return l?a=l:!i.length&&!n&&!s?a=t:(a={},i.length&&i.forEach(c=>Ar(a,c,o,!0)),Ar(a,t,o)),he(t)&&r.set(t,a),a}function Ar(e,t,n,s=!1){const{mixins:i,extends:r}=t;r&&Ar(e,r,n,!0),i&&i.forEach(o=>Ar(e,o,n,!0));for(const o in t)if(s&&o==="expose")M('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=Ay[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Ay={data:Mc,props:$c,emits:$c,methods:Xs,computed:Xs,beforeCreate:st,created:st,beforeMount:st,mounted:st,beforeUpdate:st,updated:st,beforeDestroy:st,beforeUnmount:st,destroyed:st,unmounted:st,activated:st,deactivated:st,errorCaptured:st,serverPrefetch:st,components:Xs,directives:Xs,watch:Iy,provide:Mc,inject:Ry};function Mc(e,t){return t?e?function(){return ce(Q(e)?e.call(this,this):e,Q(t)?t.call(this,this):t)}:t:e}function Ry(e,t){return Xs(il(e),il(t))}function il(e){if(H(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function st(e,t){return e?[...new Set([].concat(e,t))]:t}function Xs(e,t){return e?ce(Object.create(null),e,t):t}function $c(e,t){return e?H(e)&&H(t)?[...new Set([...e,...t])]:ce(Object.create(null),bi(e),bi(t??{})):t}function Iy(e,t){if(!e)return t;if(!t)return e;const n=ce(Object.create(null),e);for(const s in t)n[s]=st(e[s],t[s]);return n}function bd(){return{app:null,config:{isNativeTag:fr,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ny=0;function ky(e,t){return function(s,i=null){Q(s)||(s=ce({},s)),i!=null&&!he(i)&&(M("root props passed to app.mount() must be an object."),i=null);const r=bd(),o=new WeakSet;let l=!1;const a=r.app={_uid:Ny++,_component:s,_props:i,_container:null,_context:r,_instance:null,version:ml,get config(){return r.config},set config(c){M("app.config cannot be replaced. Modify individual options instead.")},use(c,...f){return o.has(c)?M("Plugin has already been applied to target app."):c&&Q(c.install)?(o.add(c),c.install(a,...f)):Q(c)?(o.add(c),c(a,...f)):M('A plugin must either be a function or an object with an "install" function.'),a},mixin(c){return r.mixins.includes(c)?M("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),a},component(c,f){return dl(c,r.config),f?(r.components[c]&&M(`Component "${c}" has already been registered in target app.`),r.components[c]=f,a):r.components[c]},directive(c,f){return sd(c),f?(r.directives[c]&&M(`Directive "${c}" has already been registered in target app.`),r.directives[c]=f,a):r.directives[c]},mount(c,f,u){if(l)M("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{c.__vue_app__&&M("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const d=xe(s,i);return d.appContext=r,u===!0?u="svg":u===!1&&(u=void 0),r.reload=()=>{e(Tt(d),c,u)},f&&t?t(d,c):e(d,c,u),l=!0,a._container=c,c.__vue_app__=a,a._instance=d.component,Ag(a,ml),fo(d.component)||d.component.proxy}},unmount(){l?(e(null,a._container),a._instance=null,Rg(a),delete a._container.__vue_app__):M("Cannot unmount an app that is not mounted.")},provide(c,f){return c in r.provides&&M(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),r.provides[c]=f,a},runWithContext(c){const f=bs;bs=a;try{return c()}finally{bs=f}}};return a}}let bs=null;function _s(e,t){if(!Pe)M("provide() can only be used inside setup().");else{let n=Pe.provides;const s=Pe.parent&&Pe.parent.provides;s===n&&(n=Pe.provides=Object.create(s)),n[e]=t}}function Et(e,t,n=!1){const s=Pe||Re;if(s||bs){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:bs._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Q(t)?t.call(s&&s.proxy):t;M(`injection "${String(e)}" not found.`)}else M("inject() can only be used inside setup() or functional components.")}function Py(){return!!(Pe||Re||bs)}function My(e,t,n,s=!1){const i={},r={};wr(r,uo,1),e.propsDefaults=Object.create(null),_d(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);wd(t||{},i,e),n?e.props=s?i:ta(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function $y(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function Fy(e,t,n,s){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,l=se(i),[a]=e.propsOptions;let c=!1;if(!$y(e)&&(s||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let u=0;u<f.length;u++){let d=f[u];if(so(e.emitsOptions,d))continue;const p=t[d];if(a)if(de(r,d))p!==r[d]&&(r[d]=p,c=!0);else{const m=Ie(d);i[m]=rl(a,l,m,p,e,!1)}else p!==r[d]&&(r[d]=p,c=!0)}}}else{_d(e,t,i,r)&&(c=!0);let f;for(const u in l)(!t||!de(t,u)&&((f=Xe(u))===u||!de(t,f)))&&(a?n&&(n[u]!==void 0||n[f]!==void 0)&&(i[u]=rl(a,l,u,void 0,e,!0)):delete i[u]);if(r!==l)for(const u in r)(!t||!de(t,u))&&(delete r[u],c=!0)}c&&Bt(e,"set","$attrs"),wd(t||{},i,e)}function _d(e,t,n,s){const[i,r]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(Cn(a))continue;const c=t[a];let f;i&&de(i,f=Ie(a))?!r||!r.includes(f)?n[f]=c:(l||(l={}))[f]=c:so(e.emitsOptions,a)||(!(a in s)||c!==s[a])&&(s[a]=c,o=!0)}if(r){const a=se(n),c=l||me;for(let f=0;f<r.length;f++){const u=r[f];n[u]=rl(i,a,u,c[u],e,!de(c,u))}}return o}function rl(e,t,n,s,i,r){const o=e[n];if(o!=null){const l=de(o,"default");if(l&&s===void 0){const a=o.default;if(o.type!==Function&&!o.skipFactory&&Q(a)){const{propsDefaults:c}=i;if(n in c)s=c[n];else{const f=os(i);s=c[n]=a.call(null,t),f()}}else s=a}o[0]&&(r&&!l?s=!1:o[1]&&(s===""||s===Xe(n))&&(s=!0))}return s}function Sd(e,t,n=!1){const s=t.propsCache,i=s.get(e);if(i)return i;const r=e.props,o={},l=[];let a=!1;if(!Q(e)){const f=u=>{a=!0;const[d,p]=Sd(u,t,!0);ce(o,d),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!a)return he(e)&&s.set(e,ms),ms;if(H(r))for(let f=0;f<r.length;f++){ee(r[f])||M("props must be strings when using array syntax.",r[f]);const u=Ie(r[f]);Fc(u)&&(o[u]=me)}else if(r){he(r)||M("invalid props options",r);for(const f in r){const u=Ie(f);if(Fc(u)){const d=r[f],p=o[u]=H(d)||Q(d)?{type:d}:ce({},d);if(p){const m=Dc(Boolean,p.type),w=Dc(String,p.type);p[0]=m>-1,p[1]=w<0||m<w,(m>-1||de(p,"default"))&&l.push(u)}}}}const c=[o,l];return he(e)&&s.set(e,c),c}function Fc(e){return e[0]!=="$"&&!Cn(e)?!0:(M(`Invalid prop name: "${e}" is a reserved property.`),!1)}function ol(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Lc(e,t){return ol(e)===ol(t)}function Dc(e,t){return H(t)?t.findIndex(n=>Lc(n,e)):Q(t)&&Lc(t,e)?0:-1}function wd(e,t,n){const s=se(t),i=n.propsOptions[0];for(const r in i){let o=i[r];o!=null&&Ly(r,s[r],o,qn(s),!de(e,r)&&!de(e,Xe(r)))}}function Ly(e,t,n,s,i){const{type:r,required:o,validator:l,skipCheck:a}=n;if(o&&i){M('Missing required prop: "'+e+'"');return}if(!(t==null&&!o)){if(r!=null&&r!==!0&&!a){let c=!1;const f=H(r)?r:[r],u=[];for(let d=0;d<f.length&&!c;d++){const{valid:p,expectedType:m}=Vy(t,f[d]);u.push(m||""),c=p}if(!c){M(jy(e,t,u));return}}l&&!l(t,s)&&M('Invalid prop: custom validator check failed for prop "'+e+'".')}}const Dy=Ue("String,Number,Boolean,Function,Symbol,BigInt");function Vy(e,t){let n;const s=ol(t);if(Dy(s)){const i=typeof e;n=i===s.toLowerCase(),!n&&i==="object"&&(n=e instanceof t)}else s==="Object"?n=he(e):s==="Array"?n=H(e):s==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:s}}function jy(e,t,n){if(n.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let s=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(Ut).join(" | ")}`;const i=n[0],r=ql(t),o=Vc(t,i),l=Vc(t,r);return n.length===1&&jc(i)&&!By(i,r)&&(s+=` with value ${o}`),s+=`, got ${r} `,jc(r)&&(s+=`with value ${l}.`),s}function Vc(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function jc(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function By(...e){return e.some(t=>t.toLowerCase()==="boolean")}const Ed=e=>e[0]==="_"||e==="$stable",wa=e=>H(e)?e.map(ut):[ut(e)],Hy=(e,t,n)=>{if(t._n)return t;const s=da((...i)=>(Pe&&(!n||n.root===Pe.root)&&M(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),wa(t(...i))),n);return s._c=!1,s},Cd=(e,t,n)=>{const s=e._ctx;for(const i in e){if(Ed(i))continue;const r=e[i];if(Q(r))t[i]=Hy(i,r,s);else if(r!=null){M(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const o=wa(r);t[i]=()=>o}}},Td=(e,t)=>{Bs(e.vnode)||M("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=wa(t);e.slots.default=()=>n},Uy=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=se(t),wr(t,"_",n)):Cd(t,e.slots={})}else e.slots={},t&&Td(e,t);wr(e.slots,uo,1)},Ky=(e,t,n)=>{const{vnode:s,slots:i}=e;let r=!0,o=me;if(s.shapeFlag&32){const l=t._;l?An?(ce(i,t),Bt(e,"set","$slots")):n&&l===1?r=!1:(ce(i,t),!n&&l===1&&delete i._):(r=!t.$stable,Cd(t,i)),o=t}else t&&(Td(e,t),o={default:1});if(r)for(const l in i)!Ed(l)&&o[l]==null&&delete i[l]};function Rr(e,t,n,s,i=!1){if(H(e)){e.forEach((d,p)=>Rr(d,t&&(H(t)?t[p]:t),n,s,i));return}if(es(s)&&!i)return;const r=s.shapeFlag&4?fo(s.component)||s.component.proxy:s.el,o=i?null:r,{i:l,r:a}=e;if(!l){M("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=t&&t.r,f=l.refs===me?l.refs={}:l.refs,u=l.setupState;if(c!=null&&c!==a&&(ee(c)?(f[c]=null,de(u,c)&&(u[c]=null)):Te(c)&&(c.value=null)),Q(a))Ht(a,l,12,[o,f]);else{const d=ee(a),p=Te(a);if(d||p){const m=()=>{if(e.f){const w=d?de(u,a)?u[a]:f[a]:a.value;i?H(w)&&Kl(w,r):H(w)?w.includes(r)||w.push(r):d?(f[a]=[r],de(u,a)&&(u[a]=f[a])):(a.value=[r],e.k&&(f[e.k]=a.value))}else d?(f[a]=o,de(u,a)&&(u[a]=o)):p?(a.value=o,e.k&&(f[e.k]=o)):M("Invalid template ref type:",a,`(${typeof a})`)};o?(m.id=-1,We(m,n)):m()}else M("Invalid template ref type:",a,`(${typeof a})`)}}let Wt=!1;const qy=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Wy=e=>e.namespaceURI.includes("MathML"),er=e=>{if(qy(e))return"svg";if(Wy(e))return"mathml"},Us=e=>e.nodeType===8;function zy(e){const{mt:t,p:n,o:{patchProp:s,createText:i,nextSibling:r,parentNode:o,remove:l,insert:a,createComment:c}}=e,f=(g,b)=>{if(!b.hasChildNodes()){M("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,g,b),Tr(),b._vnode=g;return}Wt=!1,u(b.firstChild,g,null,null,null),Tr(),b._vnode=g,Wt&&console.error("Hydration completed but contains mismatches.")},u=(g,b,S,A,C,T=!1)=>{const O=Us(g)&&g.data==="[",x=()=>w(g,b,S,A,C,O),{type:N,ref:I,shapeFlag:j,patchFlag:G}=b;let te=g.nodeType;b.el=g,"__vnode"in g||Object.defineProperty(g,"__vnode",{value:b,enumerable:!1}),"__vueParentComponent"in g||Object.defineProperty(g,"__vueParentComponent",{value:S,enumerable:!1}),G===-2&&(T=!1,b.dynamicChildren=null);let z=null;switch(N){case kn:te!==3?b.children===""?(a(b.el=i(""),o(g),g),z=g):z=x():(g.data!==b.children&&(Wt=!0,M("Hydration text mismatch in",g.parentNode,`
- rendered on server: ${JSON.stringify(g.data)}
- expected on client: ${JSON.stringify(b.children)}`),g.data=b.children),z=r(g));break;case $e:_(g)?(z=r(g),y(b.el=g.content.firstChild,g,S)):te!==8||O?z=x():z=r(g);break;case Rn:if(O&&(g=r(g),te=g.nodeType),te===1||te===3){z=g;const J=!b.children.length;for(let W=0;W<b.staticCount;W++)J&&(b.children+=z.nodeType===1?z.outerHTML:z.data),W===b.staticCount-1&&(b.anchor=z),z=r(z);return O?r(z):z}else x();break;case De:O?z=m(g,b,S,A,C,T):z=x();break;default:if(j&1)(te!==1||b.type.toLowerCase()!==g.tagName.toLowerCase())&&!_(g)?z=x():z=d(g,b,S,A,C,T);else if(j&6){b.slotScopeIds=C;const J=o(g);if(O?z=E(g):Us(g)&&g.data==="teleport start"?z=E(g,g.data,"teleport end"):z=r(g),t(b,J,null,S,A,er(J),T),es(b)){let W;O?(W=xe(De),W.anchor=z?z.previousSibling:J.lastChild):W=g.nodeType===3?Ta(""):xe("div"),W.el=g,b.component.subTree=W}}else j&64?te!==8?z=x():z=b.type.hydrate(g,b,S,A,C,T,e,p):j&128?z=b.type.hydrate(g,b,S,A,er(o(g)),C,T,e,u):M("Invalid HostVNode type:",N,`(${typeof N})`)}return I!=null&&Rr(I,null,A,b),z},d=(g,b,S,A,C,T)=>{T=T||!!b.dynamicChildren;const{type:O,props:x,patchFlag:N,shapeFlag:I,dirs:j,transition:G}=b,te=O==="input"||O==="option";{j&&Lt(b,null,S,"created");let z=!1;if(_(g)){z=Rd(A,G)&&S&&S.vnode.props&&S.vnode.props.appear;const W=g.content.firstChild;z&&G.beforeEnter(W),y(W,g,S),b.el=g=W}if(I&16&&!(x&&(x.innerHTML||x.textContent))){let W=p(g.firstChild,b,g,S,A,C,T),Fe=!1;for(;W;){Wt=!0,Fe||(M("Hydration children mismatch on",g,`
Server rendered element contains more child nodes than client vdom.`),Fe=!0);const Ye=W;W=W.nextSibling,l(Ye)}}else I&8&&g.textContent!==b.children&&(Wt=!0,M("Hydration text content mismatch on",g,`
- rendered on server: ${g.textContent}
- expected on client: ${b.children}`),g.textContent=b.children);if(x)for(const W in x)Gy(g,W,x[W],b,S)&&(Wt=!0),(te&&(W.endsWith("value")||W==="indeterminate")||nn(W)&&!Cn(W)||W[0]===".")&&s(g,W,null,x[W],void 0,void 0,S);let J;(J=x&&x.onVnodeBeforeMount)&&at(J,S,b),j&&Lt(b,null,S,"beforeMount"),((J=x&&x.onVnodeMounted)||j||z)&&Xf(()=>{J&&at(J,S,b),z&&G.enter(g),j&&Lt(b,null,S,"mounted")},A)}return g.nextSibling},p=(g,b,S,A,C,T,O)=>{O=O||!!b.dynamicChildren;const x=b.children,N=x.length;let I=!1;for(let j=0;j<N;j++){const G=O?x[j]:x[j]=ut(x[j]);if(g)g=u(g,G,A,C,T,O);else{if(G.type===kn&&!G.children)continue;Wt=!0,I||(M("Hydration children mismatch on",S,`
Server rendered element contains fewer child nodes than client vdom.`),I=!0),n(null,G,S,null,A,C,er(S),T)}}return g},m=(g,b,S,A,C,T)=>{const{slotScopeIds:O}=b;O&&(C=C?C.concat(O):O);const x=o(g),N=p(r(g),b,x,S,A,C,T);return N&&Us(N)&&N.data==="]"?r(b.anchor=N):(Wt=!0,a(b.anchor=c("]"),x,N),N)},w=(g,b,S,A,C,T)=>{if(Wt=!0,M(`Hydration node mismatch:
- rendered on server:`,g,g.nodeType===3?"(text)":Us(g)&&g.data==="["?"(start of fragment)":"",`
- expected on client:`,b.type),b.el=null,T){const N=E(g);for(;;){const I=r(g);if(I&&I!==N)l(I);else break}}const O=r(g),x=o(g);return l(g),n(null,b,x,O,S,A,er(x),C),O},E=(g,b="[",S="]")=>{let A=0;for(;g;)if(g=r(g),g&&Us(g)&&(g.data===b&&A++,g.data===S)){if(A===0)return r(g);A--}return g},y=(g,b,S)=>{const A=b.parentNode;A&&A.replaceChild(g,b);let C=S;for(;C;)C.vnode.el===b&&(C.vnode.el=C.subTree.el=g),C=C.parent},_=g=>g.nodeType===1&&g.tagName.toLowerCase()==="template";return[f,u]}function Gy(e,t,n,s,i){var r;let o,l,a,c;if(t==="class")a=e.getAttribute("class"),c=Vs(n),Yy(Bc(a||""),Bc(c))||(o=l="class");else if(t==="style"){a=e.getAttribute("style"),c=ee(n)?n:wm(Ds(n));const f=Hc(a),u=Hc(c);if(s.dirs)for(const{dir:p,value:m}of s.dirs)p.name==="show"&&!m&&u.set("display","none");const d=i==null?void 0:i.subTree;if(s===d||(d==null?void 0:d.type)===De&&d.children.includes(s)){const p=(r=i==null?void 0:i.getCssVars)==null?void 0:r.call(i);for(const m in p)u.set(`--${m}`,String(p[m]))}Jy(f,u)||(o=l="style")}else(e instanceof SVGElement&&Nm(t)||e instanceof HTMLElement&&(yc(t)||Im(t)))&&(yc(t)?(a=e.hasAttribute(t),c=Yl(n)):n==null?(a=e.hasAttribute(t),c=!1):(e.hasAttribute(t)?a=e.getAttribute(t):t==="value"&&e.tagName==="TEXTAREA"?a=e.value:a=!1,c=km(n)?String(n):!1),a!==c&&(o="attribute",l=t));if(o){const f=p=>p===!1?"(not rendered)":`${l}="${p}"`,u=`Hydration ${o} mismatch on`,d=`
- rendered on server: ${f(a)}
- expected on client: ${f(c)}
Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.
You should fix the source of the mismatch.`;return M(u,e,d),!0}return!1}function Bc(e){return new Set(e.trim().split(/\s+/))}function Yy(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function Hc(e){const t=new Map;for(const n of e.split(";")){let[s,i]=n.split(":");s=s==null?void 0:s.trim(),i=i==null?void 0:i.trim(),s&&i&&t.set(s,i)}return t}function Jy(e,t){if(e.size!==t.size)return!1;for(const[n,s]of e)if(s!==t.get(n))return!1;return!0}let Ks,Sn;function Gt(e,t){e.appContext.config.performance&&Ir()&&Sn.mark(`vue-${t}-${e.uid}`),kg(e,t,Ir()?Sn.now():Date.now())}function Yt(e,t){if(e.appContext.config.performance&&Ir()){const n=`vue-${t}-${e.uid}`,s=n+":end";Sn.mark(s),Sn.measure(`<${po(e,e.type)}> ${t}`,n,s),Sn.clearMarks(n),Sn.clearMarks(s)}Pg(e,t,Ir()?Sn.now():Date.now())}function Ir(){return Ks!==void 0||(typeof window<"u"&&window.performance?(Ks=!0,Sn=window.performance):Ks=!1),Ks}function Xy(){const e=[];if(e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
For more details, see https://link.vuejs.org/feature-flags.`)}}const We=Xf;function xd(e){return Ad(e)}function Od(e){return Ad(e,zy)}function Ad(e,t){Xy();const n=zl();n.__VUE__=!0,ua(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:s,remove:i,patchProp:r,createElement:o,createText:l,createComment:a,setText:c,setElementText:f,parentNode:u,nextSibling:d,setScopeId:p=Me,insertStaticContent:m}=e,w=(h,v,R,P=null,$=null,D=null,B=void 0,L=null,V=An?!1:!!v.dynamicChildren)=>{if(h===v)return;h&&!At(h,v)&&(P=K(h),vt(h,$,D,!0),h=null),v.patchFlag===-2&&(V=!1,v.dynamicChildren=null);const{type:F,ref:q,shapeFlag:Z}=v;switch(F){case kn:E(h,v,R,P);break;case $e:y(h,v,R,P);break;case Rn:h==null?_(v,R,P,B):g(h,v,R,B);break;case De:j(h,v,R,P,$,D,B,L,V);break;default:Z&1?A(h,v,R,P,$,D,B,L,V):Z&6?G(h,v,R,P,$,D,B,L,V):Z&64||Z&128?F.process(h,v,R,P,$,D,B,L,V,ue):M("Invalid VNode type:",F,`(${typeof F})`)}q!=null&&$&&Rr(q,h&&h.ref,D,v||h,!v)},E=(h,v,R,P)=>{if(h==null)s(v.el=l(v.children),R,P);else{const $=v.el=h.el;v.children!==h.children&&c($,v.children)}},y=(h,v,R,P)=>{h==null?s(v.el=a(v.children||""),R,P):v.el=h.el},_=(h,v,R,P)=>{[h.el,h.anchor]=m(h.children,v,R,P,h.el,h.anchor)},g=(h,v,R,P)=>{if(v.children!==h.children){const $=d(h.anchor);S(h),[v.el,v.anchor]=m(v.children,R,$,P)}else v.el=h.el,v.anchor=h.anchor},b=({el:h,anchor:v},R,P)=>{let $;for(;h&&h!==v;)$=d(h),s(h,R,P),h=$;s(v,R,P)},S=({el:h,anchor:v})=>{let R;for(;h&&h!==v;)R=d(h),i(h),h=R;i(v)},A=(h,v,R,P,$,D,B,L,V)=>{v.type==="svg"?B="svg":v.type==="math"&&(B="mathml"),h==null?C(v,R,P,$,D,B,L,V):x(h,v,$,D,B,L,V)},C=(h,v,R,P,$,D,B,L)=>{let V,F;const{props:q,shapeFlag:Z,transition:X,dirs:ie}=h;if(V=h.el=o(h.type,D,q&&q.is,q),Z&8?f(V,h.children):Z&16&&O(h.children,V,null,P,$,Io(h,D),B,L),ie&&Lt(h,null,P,"created"),T(V,h,h.scopeId,B,P),q){for(const _e in q)_e!=="value"&&!Cn(_e)&&r(V,_e,null,q[_e],D,h.children,P,$,k);"value"in q&&r(V,"value",null,q.value,D),(F=q.onVnodeBeforeMount)&&at(F,P,h)}Object.defineProperty(V,"__vnode",{value:h,enumerable:!1}),Object.defineProperty(V,"__vueParentComponent",{value:P,enumerable:!1}),ie&&Lt(h,null,P,"beforeMount");const pe=Rd($,X);pe&&X.beforeEnter(V),s(V,v,R),((F=q&&q.onVnodeMounted)||pe||ie)&&We(()=>{F&&at(F,P,h),pe&&X.enter(V),ie&&Lt(h,null,P,"mounted")},$)},T=(h,v,R,P,$)=>{if(R&&p(h,R),P)for(let D=0;D<P.length;D++)p(h,P[D]);if($){let D=$.subTree;if(D.patchFlag>0&&D.patchFlag&2048&&(D=ro(D.children)||D),v===D){const B=$.vnode;T(h,B,B.scopeId,B.slotScopeIds,$.parent)}}},O=(h,v,R,P,$,D,B,L,V=0)=>{for(let F=V;F<h.length;F++){const q=h[F]=L?gn(h[F]):ut(h[F]);w(null,q,v,R,P,$,D,B,L)}},x=(h,v,R,P,$,D,B)=>{const L=v.el=h.el;let{patchFlag:V,dynamicChildren:F,dirs:q}=v;V|=h.patchFlag&16;const Z=h.props||me,X=v.props||me;let ie;if(R&&Vn(R,!1),(ie=X.onVnodeBeforeUpdate)&&at(ie,R,v,h),q&&Lt(v,h,R,"beforeUpdate"),R&&Vn(R,!0),An&&(V=0,B=!1,F=null),F?(N(h.dynamicChildren,F,L,R,P,Io(v,$),D),Nr(h,v)):B||Fe(h,v,L,null,R,P,Io(v,$),D,!1),V>0){if(V&16)I(L,v,Z,X,R,P,$);else if(V&2&&Z.class!==X.class&&r(L,"class",null,X.class,$),V&4&&r(L,"style",Z.style,X.style,$),V&8){const pe=v.dynamicProps;for(let _e=0;_e<pe.length;_e++){const Ae=pe[_e],je=Z[Ae],xt=X[Ae];(xt!==je||Ae==="value")&&r(L,Ae,je,xt,$,h.children,R,P,k)}}V&1&&h.children!==v.children&&f(L,v.children)}else!B&&F==null&&I(L,v,Z,X,R,P,$);((ie=X.onVnodeUpdated)||q)&&We(()=>{ie&&at(ie,R,v,h),q&&Lt(v,h,R,"updated")},P)},N=(h,v,R,P,$,D,B)=>{for(let L=0;L<v.length;L++){const V=h[L],F=v[L],q=V.el&&(V.type===De||!At(V,F)||V.shapeFlag&70)?u(V.el):R;w(V,F,q,null,P,$,D,B,!0)}},I=(h,v,R,P,$,D,B)=>{if(R!==P){if(R!==me)for(const L in R)!Cn(L)&&!(L in P)&&r(h,L,R[L],null,B,v.children,$,D,k);for(const L in P){if(Cn(L))continue;const V=P[L],F=R[L];V!==F&&L!=="value"&&r(h,L,F,V,B,v.children,$,D,k)}"value"in P&&r(h,"value",R.value,P.value,B)}},j=(h,v,R,P,$,D,B,L,V)=>{const F=v.el=h?h.el:l(""),q=v.anchor=h?h.anchor:l("");let{patchFlag:Z,dynamicChildren:X,slotScopeIds:ie}=v;(An||Z&2048)&&(Z=0,V=!1,X=null),ie&&(L=L?L.concat(ie):ie),h==null?(s(F,R,P),s(q,R,P),O(v.children||[],R,q,$,D,B,L,V)):Z>0&&Z&64&&X&&h.dynamicChildren?(N(h.dynamicChildren,X,R,$,D,B,L),Nr(h,v)):Fe(h,v,R,q,$,D,B,L,V)},G=(h,v,R,P,$,D,B,L,V)=>{v.slotScopeIds=L,h==null?v.shapeFlag&512?$.ctx.activate(v,R,P,B,V):te(v,R,P,$,D,B,V):z(h,v,V)},te=(h,v,R,P,$,D,B)=>{const L=h.component=Dd(h,P,$);if(L.type.__hmrId&&Cg(L),Qs(h),Gt(L,"mount"),Bs(h)&&(L.ctx.renderer=ue),Gt(L,"init"),jd(L),Yt(L,"init"),L.asyncDep){if($&&$.registerDep(L,J),!h.el){const V=L.subTree=xe($e);y(null,V,v,R)}}else J(L,h,v,R,$,D,B);Zs(),Yt(L,"mount")},z=(h,v,R)=>{const P=v.component=h.component;if(Bg(h,v,R))if(P.asyncDep&&!P.asyncResolved){Qs(v),W(P,v,R),Zs();return}else P.next=v,wg(P.update),P.effect.dirty=!0,P.update();else v.el=h.el,P.vnode=v},J=(h,v,R,P,$,D,B)=>{const L=()=>{if(h.isMounted){let{next:q,bu:Z,u:X,parent:ie,vnode:pe}=h;{const fs=Id(h);if(fs){q&&(q.el=pe.el,W(h,q,B)),fs.asyncDep.then(()=>{h.isUnmounted||L()});return}}let _e=q,Ae;Qs(q||h.vnode),Vn(h,!1),q?(q.el=pe.el,W(h,q,B)):q=pe,Z&&_n(Z),(Ae=q.props&&q.props.onVnodeBeforeUpdate)&&at(Ae,ie,q,pe),Vn(h,!0),Gt(h,"render");const je=dr(h);Yt(h,"render");const xt=h.subTree;h.subTree=je,Gt(h,"patch"),w(xt,je,u(xt.el),K(xt),h,$,D),Yt(h,"patch"),q.el=je.el,_e===null&&pa(h,je.el),X&&We(X,$),(Ae=q.props&&q.props.onVnodeUpdated)&&We(()=>at(Ae,ie,q,pe),$),qf(h),Zs()}else{let q;const{el:Z,props:X}=v,{bm:ie,m:pe,parent:_e}=h,Ae=es(v);if(Vn(h,!1),ie&&_n(ie),!Ae&&(q=X&&X.onVnodeBeforeMount)&&at(q,_e,v),Vn(h,!0),Z&&le){const je=()=>{Gt(h,"render"),h.subTree=dr(h),Yt(h,"render"),Gt(h,"hydrate"),le(Z,h.subTree,h,$,null),Yt(h,"hydrate")};Ae?v.type.__asyncLoader().then(()=>!h.isUnmounted&&je()):je()}else{Gt(h,"render");const je=h.subTree=dr(h);Yt(h,"render"),Gt(h,"patch"),w(null,je,R,P,h,$,D),Yt(h,"patch"),v.el=je.el}if(pe&&We(pe,$),!Ae&&(q=X&&X.onVnodeMounted)){const je=v;We(()=>at(q,_e,je),$)}(v.shapeFlag&256||_e&&es(_e.vnode)&&_e.vnode.shapeFlag&256)&&h.a&&We(h.a,$),h.isMounted=!0,Zo(h),v=R=P=null}},V=h.effect=new Cs(L,Me,()=>Ni(F),h.scope),F=h.update=()=>{V.dirty&&V.run()};F.id=h.uid,Vn(h,!0),V.onTrack=h.rtc?q=>_n(h.rtc,q):void 0,V.onTrigger=h.rtg?q=>_n(h.rtg,q):void 0,F.ownerInstance=h,F()},W=(h,v,R)=>{v.component=h;const P=h.vnode.props;h.vnode=v,h.next=null,Fy(h,v.props,P,R),Ky(h,v.children,R),$n(),Tc(h),Fn()},Fe=(h,v,R,P,$,D,B,L,V=!1)=>{const F=h&&h.children,q=h?h.shapeFlag:0,Z=v.children,{patchFlag:X,shapeFlag:ie}=v;if(X>0){if(X&128){rt(F,Z,R,P,$,D,B,L,V);return}else if(X&256){Ye(F,Z,R,P,$,D,B,L,V);return}}ie&8?(q&16&&k(F,$,D),Z!==F&&f(R,Z)):q&16?ie&16?rt(F,Z,R,P,$,D,B,L,V):k(F,$,D,!0):(q&8&&f(R,""),ie&16&&O(Z,R,P,$,D,B,L,V))},Ye=(h,v,R,P,$,D,B,L,V)=>{h=h||ms,v=v||ms;const F=h.length,q=v.length,Z=Math.min(F,q);let X;for(X=0;X<Z;X++){const ie=v[X]=V?gn(v[X]):ut(v[X]);w(h[X],ie,R,null,$,D,B,L,V)}F>q?k(h,$,D,!0,!1,Z):O(v,R,P,$,D,B,L,V,Z)},rt=(h,v,R,P,$,D,B,L,V)=>{let F=0;const q=v.length;let Z=h.length-1,X=q-1;for(;F<=Z&&F<=X;){const ie=h[F],pe=v[F]=V?gn(v[F]):ut(v[F]);if(At(ie,pe))w(ie,pe,R,null,$,D,B,L,V);else break;F++}for(;F<=Z&&F<=X;){const ie=h[Z],pe=v[X]=V?gn(v[X]):ut(v[X]);if(At(ie,pe))w(ie,pe,R,null,$,D,B,L,V);else break;Z--,X--}if(F>Z){if(F<=X){const ie=X+1,pe=ie<q?v[ie].el:P;for(;F<=X;)w(null,v[F]=V?gn(v[F]):ut(v[F]),R,pe,$,D,B,L,V),F++}}else if(F>X)for(;F<=Z;)vt(h[F],$,D,!0),F++;else{const ie=F,pe=F,_e=new Map;for(F=pe;F<=X;F++){const nt=v[F]=V?gn(v[F]):ut(v[F]);nt.key!=null&&(_e.has(nt.key)&&M("Duplicate keys found during update:",JSON.stringify(nt.key),"Make sure keys are unique."),_e.set(nt.key,F))}let Ae,je=0;const xt=X-pe+1;let fs=!1,fc=0;const Hs=new Array(xt);for(F=0;F<xt;F++)Hs[F]=0;for(F=ie;F<=Z;F++){const nt=h[F];if(je>=xt){vt(nt,$,D,!0);continue}let $t;if(nt.key!=null)$t=_e.get(nt.key);else for(Ae=pe;Ae<=X;Ae++)if(Hs[Ae-pe]===0&&At(nt,v[Ae])){$t=Ae;break}$t===void 0?vt(nt,$,D,!0):(Hs[$t-pe]=F+1,$t>=fc?fc=$t:fs=!0,w(nt,v[$t],R,null,$,D,B,L,V),je++)}const dc=fs?Qy(Hs):ms;for(Ae=dc.length-1,F=xt-1;F>=0;F--){const nt=pe+F,$t=v[nt],pc=nt+1<q?v[nt+1].el:P;Hs[F]===0?w(null,$t,R,pc,$,D,B,L,V):fs&&(Ae<0||F!==dc[Ae]?Mt($t,R,pc,2):Ae--)}}},Mt=(h,v,R,P,$=null)=>{const{el:D,type:B,transition:L,children:V,shapeFlag:F}=h;if(F&6){Mt(h.component.subTree,v,R,P);return}if(F&128){h.suspense.move(v,R,P);return}if(F&64){B.move(h,v,R,ue);return}if(B===De){s(D,v,R);for(let Z=0;Z<V.length;Z++)Mt(V[Z],v,R,P);s(h.anchor,v,R);return}if(B===Rn){b(h,v,R);return}if(P!==2&&F&1&&L)if(P===0)L.beforeEnter(D),s(D,v,R),We(()=>L.enter(D),$);else{const{leave:Z,delayLeave:X,afterLeave:ie}=L,pe=()=>s(D,v,R),_e=()=>{Z(D,()=>{pe(),ie&&ie()})};X?X(D,pe,_e):_e()}else s(D,v,R)},vt=(h,v,R,P=!1,$=!1)=>{const{type:D,props:B,ref:L,children:V,dynamicChildren:F,shapeFlag:q,patchFlag:Z,dirs:X}=h;if(L!=null&&Rr(L,null,R,h,!0),q&256){v.ctx.deactivate(h);return}const ie=q&1&&X,pe=!es(h);let _e;if(pe&&(_e=B&&B.onVnodeBeforeUnmount)&&at(_e,v,h),q&6)an(h.component,R,P);else{if(q&128){h.suspense.unmount(R,P);return}ie&&Lt(h,null,v,"beforeUnmount"),q&64?h.type.remove(h,v,R,$,ue,P):F&&(D!==De||Z>0&&Z&64)?k(F,v,R,!1,!0):(D===De&&Z&384||!$&&q&16)&&k(V,v,R),P&&ln(h)}(pe&&(_e=B&&B.onVnodeUnmounted)||ie)&&We(()=>{_e&&at(_e,v,h),ie&&Lt(h,null,v,"unmounted")},R)},ln=h=>{const{type:v,el:R,anchor:P,transition:$}=h;if(v===De){h.patchFlag>0&&h.patchFlag&2048&&$&&!$.persisted?h.children.forEach(B=>{B.type===$e?i(B.el):ln(B)}):Wi(R,P);return}if(v===Rn){S(h);return}const D=()=>{i(R),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(h.shapeFlag&1&&$&&!$.persisted){const{leave:B,delayLeave:L}=$,V=()=>B(R,D);L?L(h.el,D,V):V()}else D()},Wi=(h,v)=>{let R;for(;h!==v;)R=d(h),i(h),h=R;i(v)},an=(h,v,R)=>{h.type.__hmrId&&Tg(h);const{bum:P,scope:$,update:D,subTree:B,um:L}=h;P&&_n(P),$.stop(),D&&(D.active=!1,vt(B,h,v,R)),L&&We(L,v),We(()=>{h.isUnmounted=!0},v),v&&v.pendingBranch&&!v.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===v.pendingId&&(v.deps--,v.deps===0&&v.resolve()),Ng(h)},k=(h,v,R,P=!1,$=!1,D=0)=>{for(let B=D;B<h.length;B++)vt(h[B],v,R,P,$)},K=h=>h.shapeFlag&6?K(h.component.subTree):h.shapeFlag&128?h.suspense.next():d(h.anchor||h.el);let U=!1;const Y=(h,v,R)=>{h==null?v._vnode&&vt(v._vnode,null,null,!0):w(v._vnode||null,h,v,null,null,null,R),U||(U=!0,Tc(),Tr(),U=!1),v._vnode=h},ue={p:w,um:vt,m:Mt,r:ln,mt:te,mc:O,pc:Fe,pbc:N,n:K,o:e};let Oe,le;return t&&([Oe,le]=t(ue)),{render:Y,hydrate:Oe,createApp:ky(Y,Oe)}}function Io({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Vn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Rd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Nr(e,t,n=!1){const s=e.children,i=t.children;if(H(s)&&H(i))for(let r=0;r<s.length;r++){const o=s[r];let l=i[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[r]=gn(i[r]),l.el=o.el),n||Nr(o,l)),l.type===kn&&(l.el=o.el),l.type===$e&&!l.el&&(l.el=o.el)}}function Qy(e){const t=e.slice(),n=[0];let s,i,r,o,l;const a=e.length;for(s=0;s<a;s++){const c=e[s];if(c!==0){if(i=n[n.length-1],e[i]<c){t[s]=i,n.push(s);continue}for(r=0,o=n.length-1;r<o;)l=r+o>>1,e[n[l]]<c?r=l+1:o=l;c<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=t[o];return n}function Id(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Id(t)}const Zy=e=>e.__isTeleport,Ss=e=>e&&(e.disabled||e.disabled===""),Uc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Kc=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ll=(e,t)=>{const n=e&&e.to;if(ee(n))if(t){const s=t(n);return s||M(`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),s}else return M("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return!n&&!Ss(e)&&M(`Invalid Teleport target: ${n}`),n},ev={name:"Teleport",__isTeleport:!0,process(e,t,n,s,i,r,o,l,a,c){const{mc:f,pc:u,pbc:d,o:{insert:p,querySelector:m,createText:w,createComment:E}}=c,y=Ss(t.props);let{shapeFlag:_,children:g,dynamicChildren:b}=t;if(An&&(a=!1,b=null),e==null){const S=t.el=E("teleport start"),A=t.anchor=E("teleport end");p(S,n,s),p(A,n,s);const C=t.target=ll(t.props,m),T=t.targetAnchor=w("");C?(p(T,C),o==="svg"||Uc(C)?o="svg":(o==="mathml"||Kc(C))&&(o="mathml")):y||M("Invalid Teleport target on mount:",C,`(${typeof C})`);const O=(x,N)=>{_&16&&f(g,x,N,i,r,o,l,a)};y?O(n,A):C&&O(C,T)}else{t.el=e.el;const S=t.anchor=e.anchor,A=t.target=e.target,C=t.targetAnchor=e.targetAnchor,T=Ss(e.props),O=T?n:A,x=T?S:C;if(o==="svg"||Uc(A)?o="svg":(o==="mathml"||Kc(A))&&(o="mathml"),b?(d(e.dynamicChildren,b,O,i,r,o,l),Nr(e,t,!0)):a||u(e,t,O,x,i,r,o,l,!1),y)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):tr(t,n,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const N=t.target=ll(t.props,m);N?tr(t,N,null,c,0):M("Invalid Teleport target on update:",A,`(${typeof A})`)}else T&&tr(t,A,C,c,1)}Nd(t)},remove(e,t,n,s,{um:i,o:{remove:r}},o){const{shapeFlag:l,children:a,anchor:c,targetAnchor:f,target:u,props:d}=e;if(u&&r(f),o&&r(c),l&16){const p=o||!Ss(d);for(let m=0;m<a.length;m++){const w=a[m];i(w,t,n,p,!!w.dynamicChildren)}}},move:tr,hydrate:tv};function tr(e,t,n,{o:{insert:s},m:i},r=2){r===0&&s(e.targetAnchor,t,n);const{el:o,anchor:l,shapeFlag:a,children:c,props:f}=e,u=r===2;if(u&&s(o,t,n),(!u||Ss(f))&&a&16)for(let d=0;d<c.length;d++)i(c[d],t,n,2);u&&s(l,t,n)}function tv(e,t,n,s,i,r,{o:{nextSibling:o,parentNode:l,querySelector:a}},c){const f=t.target=ll(t.props,a);if(f){const u=f._lpa||f.firstChild;if(t.shapeFlag&16)if(Ss(t.props))t.anchor=c(o(e),t,l(e),n,s,i,r),t.targetAnchor=u;else{t.anchor=o(e);let d=u;for(;d;)if(d=o(d),d&&d.nodeType===8&&d.data==="teleport anchor"){t.targetAnchor=d,f._lpa=t.targetAnchor&&o(t.targetAnchor);break}c(u,t,f,n,s,i,r)}Nd(t)}return t.anchor&&o(t.anchor)}const nv=ev;function Nd(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const De=Symbol.for("v-fgt"),kn=Symbol.for("v-txt"),$e=Symbol.for("v-cmt"),Rn=Symbol.for("v-stc"),ni=[];let ft=null;function co(e=!1){ni.push(ft=e?null:[])}function kd(){ni.pop(),ft=ni[ni.length-1]||null}let rs=1;function al(e){rs+=e}function Pd(e){return e.dynamicChildren=rs>0?ft||ms:null,kd(),rs>0&&ft&&ft.push(e),e}function sv(e,t,n,s,i,r){return Pd(Ca(e,t,n,s,i,r,!0))}function Ea(e,t,n,s,i){return Pd(xe(e,t,n,s,i,!0))}function rn(e){return e?e.__v_isVNode===!0:!1}function At(e,t){return t.shapeFlag&6&&hs.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}let cl;function iv(e){cl=e}const rv=(...e)=>ov(...cl?cl(e,Re):e),uo="__vInternal",Md=({key:e})=>e??null,pr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ee(e)||Te(e)||Q(e)?{i:Re,r:e,k:t,f:!!n}:e:null);function Ca(e,t=null,n=null,s=0,i=null,r=e===De?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Md(t),ref:t&&pr(t),scopeId:io,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Re};return l?(xa(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=ee(n)?8:16),a.key!==a.key&&M("VNode created with invalid key (NaN). VNode type:",a.type),rs>0&&!o&&ft&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&ft.push(a),a}const xe=rv;function ov(e,t=null,n=null,s=0,i=null,r=!1){if((!e||e===ha)&&(e||M(`Invalid vnode type when creating vnode: ${e}.`),e=$e),rn(e)){const l=Tt(e,t,!0);return n&&xa(l,n),rs>0&&!r&&ft&&(l.shapeFlag&6?ft[ft.indexOf(e)]=l:ft.push(l)),l.patchFlag|=-2,l}if(Kd(e)&&(e=e.__vccOpts),t){t=$d(t);let{class:l,style:a}=t;l&&!ee(l)&&(t.class=Vs(l)),he(a)&&(di(a)&&!H(a)&&(a=ce({},a)),t.style=Ds(a))}const o=ee(e)?1:Jf(e)?128:Zy(e)?64:he(e)?4:Q(e)?2:0;return o&4&&di(e)&&(e=se(e),M("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
Component that was made reactive: `,e)),Ca(e,t,n,s,i,o,r,!0)}function $d(e){return e?di(e)||uo in e?ce({},e):e:null}function Tt(e,t,n=!1){const{props:s,ref:i,patchFlag:r,children:o}=e,l=t?Ld(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Md(l),ref:t&&t.ref?n&&i?H(i)?i.concat(pr(t)):[i,pr(t)]:pr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r===-1&&H(o)?o.map(Fd):o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==De?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tt(e.ssContent),ssFallback:e.ssFallback&&Tt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Fd(e){const t=Tt(e);return H(e.children)&&(t.children=e.children.map(Fd)),t}function Ta(e=" ",t=0){return xe(kn,null,e,t)}function lv(e,t){const n=xe(Rn,null,e);return n.staticCount=t,n}function av(e="",t=!1){return t?(co(),Ea($e,null,e)):xe($e,null,e)}function ut(e){return e==null||typeof e=="boolean"?xe($e):H(e)?xe(De,null,e.slice()):typeof e=="object"?gn(e):xe(kn,null,String(e))}function gn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tt(e)}function xa(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),xa(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(uo in t)?t._ctx=Re:i===3&&Re&&(Re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Q(t)?(t={default:t,_ctx:Re},n=32):(t=String(t),s&64?(n=16,t=[Ta(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ld(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const i in s)if(i==="class")t.class!==s.class&&(t.class=Vs([t.class,s.class]));else if(i==="style")t.style=Ds([t.style,s.style]);else if(nn(i)){const r=t[i],o=s[i];o&&r!==o&&!(H(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=s[i])}return t}function at(e,t,n,s=null){mt(e,t,7,[n,s])}const cv=bd();let uv=0;function Dd(e,t,n){const s=e.type,i=(t?t.appContext:e.appContext)||cv,r={uid:uv++,vnode:e,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Jl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Sd(s,i),emitsOptions:zf(s,i),emit:null,emitted:null,propsDefaults:me,inheritAttrs:s.inheritAttrs,ctx:me,data:me,props:me,attrs:me,slots:me,refs:me,setupState:me,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx=uy(r),r.root=t?t.root:r,r.emit=$g.bind(null,r),e.ce&&e.ce(r),r}let Pe=null;const Ge=()=>Pe||Re;let kr,ul;{const e=zl(),t=(n,s)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(s),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};kr=t("__VUE_INSTANCE_SETTERS__",n=>Pe=n),ul=t("__VUE_SSR_SETTERS__",n=>Fi=n)}const os=e=>{const t=Pe;return kr(e),e.scope.on(),()=>{e.scope.off(),kr(t)}},fl=()=>{Pe&&Pe.scope.off(),kr(null)},fv=Ue("slot,component");function dl(e,{isNativeTag:t}){(fv(e)||t(e))&&M("Do not use built-in or reserved HTML elements as component id: "+e)}function Vd(e){return e.vnode.shapeFlag&4}let Fi=!1;function jd(e,t=!1){t&&ul(t);const{props:n,children:s}=e.vnode,i=Vd(e);My(e,n,i,t),Uy(e,s);const r=i?dv(e,t):void 0;return t&&ul(!1),r}function dv(e,t){var n;const s=e.type;{if(s.name&&dl(s.name,e.appContext.config),s.components){const r=Object.keys(s.components);for(let o=0;o<r.length;o++)dl(r[o],e.appContext.config)}if(s.directives){const r=Object.keys(s.directives);for(let o=0;o<r.length;o++)sd(r[o])}s.compilerOptions&&Oa()&&M('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=na(new Proxy(e.ctx,ti)),fy(e);const{setup:i}=s;if(i){const r=e.setupContext=i.length>1?Ud(e):null,o=os(e);$n();const l=Ht(i,e,0,[qn(e.props),r]);if(Fn(),o(),Yr(l)){if(l.then(fl,fl),t)return l.then(a=>{pl(e,a,t)}).catch(a=>{Ln(a,e,0)});if(e.asyncDep=l,!e.suspense){const a=(n=s.name)!=null?n:"Anonymous";M(`Component <${a}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else pl(e,l,t)}else Hd(e,t)}function pl(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)?(rn(t)&&M("setup() should not return VNodes directly - return a render function instead."),e.devtoolsRawSetupState=t,e.setupState=oa(t),dy(e)):t!==void 0&&M(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Hd(e,n)}let si,hl;function Bd(e){si=e,hl=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,cy))}}const Oa=()=>!si;function Hd(e,t,n){const s=e.type;if(!e.render){if(!t&&si&&!s.render){const i=s.template||Sa(e).template;if(i){Gt(e,"compile");const{isCustomElement:r,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:a}=s,c=ce(ce({isCustomElement:r,delimiters:l},o),a);s.render=si(i,c),Yt(e,"compile")}}e.render=s.render||Me,hl&&hl(e)}{const i=os(e);$n();try{xy(e)}finally{Fn(),i()}}!s.render&&e.render===Me&&!t&&(!si&&s.template?M('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):M("Component is missing template or render function."))}function pv(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return xr(),tt(e,"get","$attrs"),t[n]},set(){return M("setupContext.attrs is readonly."),!1},deleteProperty(){return M("setupContext.attrs is readonly."),!1}}))}function hv(e){return e.slotsProxy||(e.slotsProxy=new Proxy(e.slots,{get(t,n){return tt(e,"get","$slots"),t[n]}}))}function Ud(e){return Object.freeze({get attrs(){return pv(e)},get slots(){return hv(e)},get emit(){return(n,...s)=>e.emit(n,...s)},expose:n=>{if(e.exposed&&M("expose() should be called only once per setup()."),n!=null){let s=typeof n;s==="object"&&(H(n)?s="array":Te(n)&&(s="ref")),s!=="object"&&M(`expose() should be passed a plain object, received ${s}.`)}e.exposed=n||{}}})}function fo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(oa(na(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ts)return ts[n](e)},has(t,n){return n in t||n in ts}}))}const mv=/(?:^|[-_])(\w)/g,gv=e=>e.replace(mv,t=>t.toUpperCase()).replace(/[-_]/g,"");function _i(e,t=!0){return Q(e)?e.displayName||e.name:e.name||t&&e.__name}function po(e,t,n=!1){let s=_i(t);if(!s&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(s=i[1])}if(!s&&e&&e.parent){const i=r=>{for(const o in r)if(r[o]===t)return o};s=i(e.components||e.parent.type.components)||i(e.appContext.components)}return s?gv(s):n?"App":"Anonymous"}function Kd(e){return Q(e)&&"__vccOpts"in e}const ae=(e,t)=>{const n=ig(e,t,Fi);{const s=Ge();s&&s.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function yv(e,t,n=me){const s=Ge();if(!s)return M("useModel() called without active instance."),ne();if(!s.propsOptions[0][t])return M(`useModel() called with prop "${t}" which is not declared.`),ne();const i=Ie(t),r=Xe(t),o=to((a,c)=>{let f;return td(()=>{const u=e[t];Pt(f,u)&&(f=u,c())}),{get(){return a(),n.get?n.get(f):f},set(u){const d=s.vnode.props;!(d&&(t in d||i in d||r in d)&&(`onUpdate:${t}`in d||`onUpdate:${i}`in d||`onUpdate:${r}`in d))&&Pt(u,f)&&(f=u,c()),s.emit(`update:${t}`,n.set?n.set(u):u)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return o[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:o,done:!1}:{done:!0}}}},o}function xs(e,t,n){const s=arguments.length;return s===2?he(t)&&!H(t)?rn(t)?xe(e,null,[t]):xe(e,t):xe(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&rn(n)&&(n=[n]),xe(e,t,n))}function qd(){if(typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},s={style:"color:#eb2f96"},i={header(u){return he(u)?u.__isVue?["div",e,"VueInstance"]:Te(u)?["div",{},["span",e,f(u)],"<",l(u.value),">"]:xn(u)?["div",{},["span",e,On(u)?"ShallowReactive":"Reactive"],"<",l(u),`>${sn(u)?" (readonly)":""}`]:sn(u)?["div",{},["span",e,On(u)?"ShallowReadonly":"Readonly"],"<",l(u),">"]:null:null},hasBody(u){return u&&u.__isVue},body(u){if(u&&u.__isVue)return["div",{},...r(u.$)]}};function r(u){const d=[];u.type.props&&u.props&&d.push(o("props",se(u.props))),u.setupState!==me&&d.push(o("setup",u.setupState)),u.data!==me&&d.push(o("data",se(u.data)));const p=a(u,"computed");p&&d.push(o("computed",p));const m=a(u,"inject");return m&&d.push(o("injected",m)),d.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:u}]]),d}function o(u,d){return d=ce({},d),Object.keys(d).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},u],["div",{style:"padding-left:1.25em"},...Object.keys(d).map(p=>["div",{},["span",s,p+": "],l(d[p],!1)])]]:["span",{}]}function l(u,d=!0){return typeof u=="number"?["span",t,u]:typeof u=="string"?["span",n,JSON.stringify(u)]:typeof u=="boolean"?["span",s,u]:he(u)?["object",{object:d?se(u):u}]:["span",n,String(u)]}function a(u,d){const p=u.type;if(Q(p))return;const m={};for(const w in u.ctx)c(p,w,d)&&(m[w]=u.ctx[w]);return m}function c(u,d,p){const m=u[p];if(H(m)&&m.includes(d)||he(m)&&d in m||u.extends&&c(u.extends,d,p)||u.mixins&&u.mixins.some(w=>c(w,d,p)))return!0}function f(u){return On(u)?"ShallowRef":u.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}function vv(e,t,n,s){const i=n[s];if(i&&Wd(i,e))return i;const r=t();return r.memo=e.slice(),n[s]=r}function Wd(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let s=0;s<n.length;s++)if(Pt(n[s],t[s]))return!1;return rs>0&&ft&&ft.push(e),!0}const ml="3.4.21",Be=M,bv=no,_v=Ot,Sv=ua,wv={createComponentInstance:Dd,setupComponent:jd,renderComponentRoot:dr,setCurrentRenderingInstance:yi,isVNode:rn,normalizeVNode:ut},Ev=wv,Cv=null,Tv=null,xv=null;/**
* @vue/runtime-dom v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Ov="http://www.w3.org/2000/svg",Av="http://www.w3.org/1998/Math/MathML",yn=typeof document<"u"?document:null,qc=yn&&yn.createElement("template"),Rv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const i=t==="svg"?yn.createElementNS(Ov,e):t==="mathml"?yn.createElementNS(Av,e):yn.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>yn.createTextNode(e),createComment:e=>yn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,r){const o=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{qc.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const l=qc.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},un="transition",qs="animation",Os=Symbol("_vtc"),Aa=(e,{slots:t})=>xs(id,Gd(e),t);Aa.displayName="Transition";const zd={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Iv=Aa.props=ce({},ba,zd),jn=(e,t=[])=>{H(e)?e.forEach(n=>n(...t)):e&&e(...t)},Wc=e=>e?H(e)?e.some(t=>t.length>1):e.length>1:!1;function Gd(e){const t={};for(const I in e)I in zd||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:s,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:c=o,appearToClass:f=l,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Nv(i),w=m&&m[0],E=m&&m[1],{onBeforeEnter:y,onEnter:_,onEnterCancelled:g,onLeave:b,onLeaveCancelled:S,onBeforeAppear:A=y,onAppear:C=_,onAppearCancelled:T=g}=t,O=(I,j,G)=>{pn(I,j?f:l),pn(I,j?c:o),G&&G()},x=(I,j)=>{I._isLeaving=!1,pn(I,u),pn(I,p),pn(I,d),j&&j()},N=I=>(j,G)=>{const te=I?C:_,z=()=>O(j,I,G);jn(te,[j,z]),zc(()=>{pn(j,I?a:r),Jt(j,I?f:l),Wc(te)||Gc(j,s,w,z)})};return ce(t,{onBeforeEnter(I){jn(y,[I]),Jt(I,r),Jt(I,o)},onBeforeAppear(I){jn(A,[I]),Jt(I,a),Jt(I,c)},onEnter:N(!1),onAppear:N(!0),onLeave(I,j){I._isLeaving=!0;const G=()=>x(I,j);Jt(I,u),Jd(),Jt(I,d),zc(()=>{I._isLeaving&&(pn(I,u),Jt(I,p),Wc(b)||Gc(I,s,E,G))}),jn(b,[I,G])},onEnterCancelled(I){O(I,!1),jn(g,[I])},onAppearCancelled(I){O(I,!0),jn(T,[I])},onLeaveCancelled(I){x(I),jn(S,[I])}})}function Nv(e){if(e==null)return null;if(he(e))return[No(e.enter),No(e.leave)];{const t=No(e);return[t,t]}}function No(e){const t=Er(e);return la(t,"<transition> explicit duration"),t}function Jt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Os]||(e[Os]=new Set)).add(t)}function pn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Os];n&&(n.delete(t),n.size||(e[Os]=void 0))}function zc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let kv=0;function Gc(e,t,n,s){const i=e._endId=++kv,r=()=>{i===e._endId&&s()};if(n)return setTimeout(r,n);const{type:o,timeout:l,propCount:a}=Yd(e,t);if(!o)return s();const c=o+"end";let f=0;const u=()=>{e.removeEventListener(c,d),r()},d=p=>{p.target===e&&++f>=a&&u()};setTimeout(()=>{f<a&&u()},l+1),e.addEventListener(c,d)}function Yd(e,t){const n=window.getComputedStyle(e),s=m=>(n[m]||"").split(", "),i=s(`${un}Delay`),r=s(`${un}Duration`),o=Yc(i,r),l=s(`${qs}Delay`),a=s(`${qs}Duration`),c=Yc(l,a);let f=null,u=0,d=0;t===un?o>0&&(f=un,u=o,d=r.length):t===qs?c>0&&(f=qs,u=c,d=a.length):(u=Math.max(o,c),f=u>0?o>c?un:qs:null,d=f?f===un?r.length:a.length:0);const p=f===un&&/\b(transform|all)(,|$)/.test(s(`${un}Property`).toString());return{type:f,timeout:u,propCount:d,hasTransform:p}}function Yc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Jc(n)+Jc(e[s])))}function Jc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Jd(){return document.body.offsetHeight}function Pv(e,t,n){const s=e[Os];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Pr=Symbol("_vod"),Xd=Symbol("_vsh"),Ra={beforeMount(e,{value:t},{transition:n}){e[Pr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ws(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Ws(e,!0),s.enter(e)):s.leave(e,()=>{Ws(e,!1)}):Ws(e,t))},beforeUnmount(e,{value:t}){Ws(e,t)}};Ra.name="show";function Ws(e,t){e.style.display=t?e[Pr]:"none",e[Xd]=!t}function Mv(){Ra.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Qd=Symbol("CSS_VAR_TEXT");function $v(e){const t=Ge();if(!t){Be("useCssVars is called without current active component instance.");return}const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(r=>yl(r,i))};t.getCssVars=()=>e(t.proxy);const s=()=>{const i=e(t.proxy);gl(t.subTree,i),n(i)};ed(s),cs(()=>{const i=new MutationObserver(s);i.observe(t.subTree.el.parentNode,{childList:!0}),$i(()=>i.disconnect())})}function gl(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{gl(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)yl(e.el,t);else if(e.type===De)e.children.forEach(n=>gl(n,t));else if(e.type===Rn){let{el:n,anchor:s}=e;for(;n&&(yl(n,t),n!==s);)n=n.nextSibling}}function yl(e,t){if(e.nodeType===1){const n=e.style;let s="";for(const i in t)n.setProperty(`--${i}`,t[i]),s+=`--${i}: ${t[i]};`;n[Qd]=s}}const Fv=/(^|;)\s*display\s*:/;function Lv(e,t,n){const s=e.style,i=ee(n);let r=!1;if(n&&!i){if(t)if(ee(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&hr(s,l,"")}else for(const o in t)n[o]==null&&hr(s,o,"");for(const o in n)o==="display"&&(r=!0),hr(s,o,n[o])}else if(i){if(t!==n){const o=s[Qd];o&&(n+=";"+o),s.cssText=n,r=Fv.test(n)}}else t&&e.removeAttribute("style");Pr in e&&(e[Pr]=r?s.display:"",e[Xd]&&(s.display="none"))}const Dv=/[^\\];\s*$/,Xc=/\s*!important$/;function hr(e,t,n){if(H(n))n.forEach(s=>hr(e,t,s));else if(n==null&&(n=""),Dv.test(n)&&Be(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const s=Vv(e,t);Xc.test(n)?e.setProperty(Xe(s),n.replace(Xc,""),"important"):e[s]=n}}const Qc=["Webkit","Moz","ms"],ko={};function Vv(e,t){const n=ko[t];if(n)return n;let s=Ie(t);if(s!=="filter"&&s in e)return ko[t]=s;s=Ut(s);for(let i=0;i<Qc.length;i++){const r=Qc[i]+s;if(r in e)return ko[t]=r}return t}const Zc="http://www.w3.org/1999/xlink";function jv(e,t,n,s,i){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Zc,t.slice(6,t.length)):e.setAttributeNS(Zc,t,n);else{const r=Rm(t);n==null||r&&!Yl(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function Bv(e,t,n,s,i,r,o){if(t==="innerHTML"||t==="textContent"){s&&o(s,i,r),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const c=l==="OPTION"?e.getAttribute("value")||"":e.value,f=n??"";(c!==f||!("_value"in e))&&(e.value=f),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Yl(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch(c){a||Be(`Failed setting prop "${t}" on <${l.toLowerCase()}>: value ${n} is invalid.`,c)}a&&e.removeAttribute(t)}function en(e,t,n,s){e.addEventListener(t,n,s)}function Hv(e,t,n,s){e.removeEventListener(t,n,s)}const eu=Symbol("_vei");function Uv(e,t,n,s,i=null){const r=e[eu]||(e[eu]={}),o=r[t];if(s&&o)o.value=s;else{const[l,a]=Kv(t);if(s){const c=r[t]=zv(s,i);en(e,l,c,a)}else o&&(Hv(e,l,o,a),r[t]=void 0)}}const tu=/(?:Once|Passive|Capture)$/;function Kv(e){let t;if(tu.test(e)){t={};let s;for(;s=e.match(tu);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Xe(e.slice(2)),t]}let Po=0;const qv=Promise.resolve(),Wv=()=>Po||(qv.then(()=>Po=0),Po=Date.now());function zv(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;mt(Gv(s,n.value),t,5,[s])};return n.value=e,n.attached=Wv(),n}function Gv(e,t){if(H(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const nu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Yv=(e,t,n,s,i,r,o,l,a)=>{const c=i==="svg";t==="class"?Pv(e,s,c):t==="style"?Lv(e,n,s):nn(t)?Sr(t)||Uv(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Jv(e,t,s,c))?Bv(e,t,s,r,o,l,a):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),jv(e,t,s,c))};function Jv(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&nu(t)&&Q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return nu(t)&&ee(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Zd(e,t){const n=js(e);class s extends ho{constructor(r){super(n,r,t)}}return s.def=n,s}/*! #__NO_SIDE_EFFECTS__ */const Xv=e=>Zd(e,up),Qv=typeof HTMLElement<"u"?HTMLElement:class{};class ho extends Qv{constructor(t,n={},s){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):(this.shadowRoot&&Be("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Dn(()=>{this._connected||(vl(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);this._ob=new MutationObserver(s=>{for(const i of s)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(s,i=!1)=>{const{props:r,styles:o}=s;let l;if(r&&!H(r))for(const a in r){const c=r[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=Er(this._props[a])),(l||(l=Object.create(null)))[Ie(a)]=!0)}this._numberProps=l,i&&this._resolveProps(s),this._applyStyles(o),this._update()},n=this._def.__asyncLoader;n?n().then(s=>t(s,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,s=H(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&s.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of s.map(Ie))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r)}})}_setAttr(t){let n=this.getAttribute(t);const s=Ie(t);this._numberProps&&this._numberProps[s]&&(n=Er(n)),this._setProp(s,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,s=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),s&&(n===!0?this.setAttribute(Xe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Xe(t),n+""):n||this.removeAttribute(Xe(t))))}_update(){vl(this._createVNode(),this.shadowRoot)}_createVNode(){const t=xe(this._def,ce({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0,n.ceReload=r=>{this._styles&&(this._styles.forEach(o=>this.shadowRoot.removeChild(o)),this._styles.length=0),this._applyStyles(r),this._instance=null,this._update()};const s=(r,o)=>{this.dispatchEvent(new CustomEvent(r,{detail:o}))};n.emit=(r,...o)=>{s(r,o),Xe(r)!==r&&s(Xe(r),o)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof ho){n.parent=i._instance,n.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const s=document.createElement("style");s.textContent=n,this.shadowRoot.appendChild(s),(this._styles||(this._styles=[])).push(s)})}}function Zv(e="$style"){{const t=Ge();if(!t)return Be("useCssModule must be called inside setup()"),me;const n=t.type.__cssModules;if(!n)return Be("Current instance does not have CSS modules injected."),me;const s=n[e];return s||(Be(`Current instance does not have CSS module named "${e}".`),me)}}const ep=new WeakMap,tp=new WeakMap,Mr=Symbol("_moveCb"),su=Symbol("_enterCb"),np={name:"TransitionGroup",props:ce({},Iv,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ge(),s=va();let i,r;return Mi(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!rb(i[0].el,n.vnode.el,o))return;i.forEach(nb),i.forEach(sb);const l=i.filter(ib);Jd(),l.forEach(a=>{const c=a.el,f=c.style;Jt(c,o),f.transform=f.webkitTransform=f.transitionDuration="";const u=c[Mr]=d=>{d&&d.target!==c||(!d||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",u),c[Mr]=null,pn(c,o))};c.addEventListener("transitionend",u)})}),()=>{const o=se(e),l=Gd(o);let a=o.tag||De;i=r,r=t.default?oo(t.default()):[];for(let c=0;c<r.length;c++){const f=r[c];f.key!=null?is(f,Ts(f,l,s,n)):Be("<TransitionGroup> children must be keyed.")}if(i)for(let c=0;c<i.length;c++){const f=i[c];is(f,Ts(f,l,s,n)),ep.set(f,f.el.getBoundingClientRect())}return xe(a,null,r)}}},eb=e=>delete e.mode;np.props;const tb=np;function nb(e){const t=e.el;t[Mr]&&t[Mr](),t[su]&&t[su]()}function sb(e){tp.set(e,e.el.getBoundingClientRect())}function ib(e){const t=ep.get(e),n=tp.get(e),s=t.left-n.left,i=t.top-n.top;if(s||i){const r=e.el.style;return r.transform=r.webkitTransform=`translate(${s}px,${i}px)`,r.transitionDuration="0s",e}}function rb(e,t,n){const s=e.cloneNode(),i=e[Os];i&&i.forEach(l=>{l.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:o}=Yd(s);return r.removeChild(s),o}const Pn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?n=>_n(t,n):t};function ob(e){e.target.composing=!0}function iu(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ct=Symbol("_assign"),$r={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[Ct]=Pn(i);const r=s||i.props&&i.props.type==="number";en(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),r&&(l=fi(l)),e[Ct](l)}),n&&en(e,"change",()=>{e.value=e.value.trim()}),t||(en(e,"compositionstart",ob),en(e,"compositionend",iu),en(e,"change",iu))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:i}},r){if(e[Ct]=Pn(r),e.composing)return;const o=i||e.type==="number"?fi(e.value):e.value,l=t??"";o!==l&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===l)||(e.value=l))}},Ia={deep:!0,created(e,t,n){e[Ct]=Pn(n),en(e,"change",()=>{const s=e._modelValue,i=As(e),r=e.checked,o=e[Ct];if(H(s)){const l=Xr(s,i),a=l!==-1;if(r&&!a)o(s.concat(i));else if(!r&&a){const c=[...s];c.splice(l,1),o(c)}}else if(as(s)){const l=new Set(s);r?l.add(i):l.delete(i),o(l)}else o(ip(e,r))})},mounted:ru,beforeUpdate(e,t,n){e[Ct]=Pn(n),ru(e,t,n)}};function ru(e,{value:t,oldValue:n},s){e._modelValue=t,H(t)?e.checked=Xr(t,s.props.value)>-1:as(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Nn(t,ip(e,!0)))}const Na={created(e,{value:t},n){e.checked=Nn(t,n.props.value),e[Ct]=Pn(n),en(e,"change",()=>{e[Ct](As(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Ct]=Pn(s),t!==n&&(e.checked=Nn(t,s.props.value))}},sp={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const i=as(t);en(e,"change",()=>{const r=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?fi(As(o)):As(o));e[Ct](e.multiple?i?new Set(r):r:r[0]),e._assigning=!0,Dn(()=>{e._assigning=!1})}),e[Ct]=Pn(s)},mounted(e,{value:t,modifiers:{number:n}}){ou(e,t,n)},beforeUpdate(e,t,n){e[Ct]=Pn(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||ou(e,t,n)}};function ou(e,t,n){const s=e.multiple,i=H(t);if(s&&!i&&!as(t)){Be(`<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(t).slice(8,-1)}.`);return}for(let r=0,o=e.options.length;r<o;r++){const l=e.options[r],a=As(l);if(s)if(i){const c=typeof a;c==="string"||c==="number"?l.selected=t.includes(n?fi(a):a):l.selected=Xr(t,a)>-1}else l.selected=t.has(a);else if(Nn(As(l),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}function As(e){return"_value"in e?e._value:e.value}function ip(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const rp={created(e,t,n){nr(e,t,n,null,"created")},mounted(e,t,n){nr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){nr(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){nr(e,t,n,s,"updated")}};function op(e,t){switch(e){case"SELECT":return sp;case"TEXTAREA":return $r;default:switch(t){case"checkbox":return Ia;case"radio":return Na;default:return $r}}}function nr(e,t,n,s,i){const o=op(e.tagName,n.props&&n.props.type)[i];o&&o(e,t,n,s)}function lb(){$r.getSSRProps=({value:e})=>({value:e}),Na.getSSRProps=({value:e},t)=>{if(t.props&&Nn(t.props.value,e))return{checked:!0}},Ia.getSSRProps=({value:e},t)=>{if(H(e)){if(t.props&&Xr(e,t.props.value)>-1)return{checked:!0}}else if(as(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},rp.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=op(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const ab=["ctrl","shift","alt","meta"],cb={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ab.some(n=>e[`${n}Key`]&&!t.includes(n))},ub=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(i,...r)=>{for(let o=0;o<t.length;o++){const l=cb[t[o]];if(l&&l(i,t))return}return e(i,...r)})},fb={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},db=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=i=>{if(!("key"in i))return;const r=Xe(i.key);if(t.some(o=>o===r||fb[o]===r))return e(i)})},lp=ce({patchProp:Yv},Rv);let ii,lu=!1;function ap(){return ii||(ii=xd(lp))}function cp(){return ii=lu?ii:Od(lp),lu=!0,ii}const vl=(...e)=>{ap().render(...e)},up=(...e)=>{cp().hydrate(...e)},pb=(...e)=>{const t=ap().createApp(...e);dp(t),pp(t);const{mount:n}=t;return t.mount=s=>{const i=hp(s);if(!i)return;const r=t._component;!Q(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,fp(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t},hb=(...e)=>{const t=cp().createApp(...e);dp(t),pp(t);const{mount:n}=t;return t.mount=s=>{const i=hp(s);if(i)return n(i,!0,fp(i))},t};function fp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function dp(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>Gl(t)||hf(t)||mf(t),writable:!1})}function pp(e){if(Oa()){const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){Be("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,s='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return Be(s),n},set(){Be(s)}})}}function hp(e){if(ee(e)){const t=document.querySelector(e);return t||Be(`Failed to mount app: mount target selector "${e}" returned null.`),t}return window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&Be('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}let au=!1;const mb=()=>{au||(au=!0,lb(),Mv())},gb=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:id,BaseTransitionPropsValidators:ba,Comment:$e,DeprecationTypes:xv,EffectScope:Jl,ErrorCodes:vg,ErrorTypeStrings:bv,Fragment:De,KeepAlive:sy,ReactiveEffect:Cs,Static:Rn,Suspense:Wg,Teleport:nv,Text:kn,TrackOpTypes:dg,Transition:Aa,TransitionGroup:tb,TriggerOpTypes:pg,VueElement:ho,assertNumber:la,callWithAsyncErrorHandling:mt,callWithErrorHandling:Ht,camelize:Ie,capitalize:Ut,cloneVNode:Tt,compatUtils:Tv,computed:ae,createApp:pb,createBlock:Ea,createCommentVNode:av,createElementBlock:sv,createElementVNode:Ca,createHydrationRenderer:Od,createPropsRestProxy:Ey,createRenderer:xd,createSSRApp:hb,createSlots:oy,createStaticVNode:lv,createTextVNode:Ta,createVNode:xe,customRef:to,defineAsyncComponent:ty,defineComponent:js,defineCustomElement:Zd,defineEmits:hy,defineExpose:my,defineModel:vy,defineOptions:gy,defineProps:py,defineSSRCustomElement:Xv,defineSlots:yy,devtools:_v,effect:Fm,effectScope:vf,getCurrentInstance:Ge,getCurrentScope:Xl,getTransitionRawChildren:oo,guardReactiveProps:$d,h:xs,handleError:Ln,hasInjectionContext:Py,hydrate:up,initCustomFormatter:qd,initDirectivesForSSR:mb,inject:Et,isMemoSame:Wd,isProxy:di,isReactive:xn,isReadonly:sn,isRef:Te,isRuntimeOnly:Oa,isShallow:On,isVNode:rn,markRaw:na,mergeDefaults:Sy,mergeModels:wy,mergeProps:Ld,nextTick:Dn,normalizeClass:Vs,normalizeProps:Em,normalizeStyle:Ds,onActivated:od,onBeforeMount:cd,onBeforeUnmount:ao,onBeforeUpdate:ud,onDeactivated:ld,onErrorCaptured:hd,onMounted:cs,onRenderTracked:pd,onRenderTriggered:dd,onScopeDispose:_f,onServerPrefetch:fd,onUnmounted:$i,onUpdated:Mi,openBlock:co,popScopeId:Lg,provide:_s,proxyRefs:oa,pushScopeId:Fg,queuePostFlushCb:mi,reactive:it,readonly:Rt,ref:ne,registerRuntimeCompiler:Bd,render:vl,renderList:ry,renderSlot:ly,resolveComponent:Yf,resolveDirective:Kg,resolveDynamicComponent:Ug,resolveFilter:Cv,resolveTransitionHooks:Ts,setBlockTracking:al,setDevtoolsHook:Sv,setTransitionHooks:is,shallowReactive:ta,shallowReadonly:qn,shallowRef:ra,ssrContextKey:Qf,ssrUtils:Ev,stop:Lm,toDisplayString:Mm,toHandlerKey:Dt,toHandlers:ay,toRaw:se,toRef:Df,toRefs:Lf,toValue:lg,transformVNodeArgs:iv,triggerRef:og,unref:Ze,useAttrs:_y,useCssModule:Zv,useCssVars:$v,useModel:yv,useSSRContext:Zf,useSlots:gd,useTransitionState:va,vModelCheckbox:Ia,vModelDynamic:rp,vModelRadio:Na,vModelSelect:sp,vModelText:$r,vShow:Ra,version:ml,warn:Be,watch:Ee,watchEffect:ya,watchPostEffect:ed,watchSyncEffect:td,withAsyncContext:Cy,withCtx:da,withDefaults:by,withDirectives:Zg,withKeys:db,withMemo:vv,withModifiers:ub,withScopeId:Dg},Symbol.toStringTag,{value:"Module"}));/**
* @vue/compiler-core v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Si=Symbol("Fragment"),ri=Symbol("Teleport"),ka=Symbol("Suspense"),Fr=Symbol("KeepAlive"),mp=Symbol("BaseTransition"),ls=Symbol("openBlock"),gp=Symbol("createBlock"),yp=Symbol("createElementBlock"),Pa=Symbol("createVNode"),Ma=Symbol("createElementVNode"),Li=Symbol("createCommentVNode"),$a=Symbol("createTextVNode"),vp=Symbol("createStaticVNode"),Fa=Symbol("resolveComponent"),La=Symbol("resolveDynamicComponent"),Da=Symbol("resolveDirective"),Va=Symbol("resolveFilter"),ja=Symbol("withDirectives"),Ba=Symbol("renderList"),bp=Symbol("renderSlot"),_p=Symbol("createSlots"),mo=Symbol("toDisplayString"),Lr=Symbol("mergeProps"),Ha=Symbol("normalizeClass"),Ua=Symbol("normalizeStyle"),wi=Symbol("normalizeProps"),Di=Symbol("guardReactiveProps"),Ka=Symbol("toHandlers"),bl=Symbol("camelize"),yb=Symbol("capitalize"),_l=Symbol("toHandlerKey"),Dr=Symbol("setBlockTracking"),vb=Symbol("pushScopeId"),bb=Symbol("popScopeId"),qa=Symbol("withCtx"),_b=Symbol("unref"),Sb=Symbol("isRef"),Wa=Symbol("withMemo"),Sp=Symbol("isMemoSame"),Rs={[Si]:"Fragment",[ri]:"Teleport",[ka]:"Suspense",[Fr]:"KeepAlive",[mp]:"BaseTransition",[ls]:"openBlock",[gp]:"createBlock",[yp]:"createElementBlock",[Pa]:"createVNode",[Ma]:"createElementVNode",[Li]:"createCommentVNode",[$a]:"createTextVNode",[vp]:"createStaticVNode",[Fa]:"resolveComponent",[La]:"resolveDynamicComponent",[Da]:"resolveDirective",[Va]:"resolveFilter",[ja]:"withDirectives",[Ba]:"renderList",[bp]:"renderSlot",[_p]:"createSlots",[mo]:"toDisplayString",[Lr]:"mergeProps",[Ha]:"normalizeClass",[Ua]:"normalizeStyle",[wi]:"normalizeProps",[Di]:"guardReactiveProps",[Ka]:"toHandlers",[bl]:"camelize",[yb]:"capitalize",[_l]:"toHandlerKey",[Dr]:"setBlockTracking",[vb]:"pushScopeId",[bb]:"popScopeId",[qa]:"withCtx",[_b]:"unref",[Sb]:"isRef",[Wa]:"withMemo",[Sp]:"isMemoSame"};function wb(e){Object.getOwnPropertySymbols(e).forEach(t=>{Rs[t]=e[t]})}const yt={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Eb(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:yt}}function Ei(e,t,n,s,i,r,o,l=!1,a=!1,c=!1,f=yt){return e&&(l?(e.helper(ls),e.helper(ks(e.inSSR,c))):e.helper(Ns(e.inSSR,c)),o&&e.helper(ja)),{type:13,tag:t,props:n,children:s,patchFlag:i,dynamicProps:r,directives:o,isBlock:l,disableTracking:a,isComponent:c,loc:f}}function Vi(e,t=yt){return{type:17,loc:t,elements:e}}function St(e,t=yt){return{type:15,loc:t,properties:e}}function ke(e,t){return{type:16,loc:yt,key:ee(e)?oe(e,!0):e,value:t}}function oe(e,t=!1,n=yt,s=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:s}}function Nt(e,t=yt){return{type:8,loc:t,children:e}}function Ve(e,t=[],n=yt){return{type:14,loc:n,callee:e,arguments:t}}function Is(e,t=void 0,n=!1,s=!1,i=yt){return{type:18,params:e,returns:t,newline:n,isSlot:s,loc:i}}function Sl(e,t,n,s=!0){return{type:19,test:e,consequent:t,alternate:n,newline:s,loc:yt}}function Cb(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:yt}}function Tb(e){return{type:21,body:e,loc:yt}}function Ns(e,t){return e||t?Pa:Ma}function ks(e,t){return e||t?gp:yp}function za(e,{helper:t,removeHelper:n,inSSR:s}){e.isBlock||(e.isBlock=!0,n(Ns(s,e.isComponent)),t(ls),t(ks(s,e.isComponent)))}const cu=new Uint8Array([123,123]),uu=new Uint8Array([125,125]);function fu(e){return e>=97&&e<=122||e>=65&&e<=90}function ht(e){return e===32||e===10||e===9||e===12||e===13}function fn(e){return e===47||e===62||ht(e)}function Vr(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Ke={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class xb{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=cu,this.delimiterClose=uu,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=cu,this.delimiterClose=uu}getPos(t){let n=1,s=t+1;for(let i=this.newlines.length-1;i>=0;i--){const r=this.newlines[i];if(t>r){n=i+2,s=t-r;break}}return{column:s,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?fn(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||ht(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const s=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=s}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Ke.TitleEnd||this.currentSequence===Ke.TextareaEnd&&!this.inSFCRoot?t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Ke.Cdata[this.sequenceIndex]?++this.sequenceIndex===Ke.Cdata.length&&(this.state=28,this.currentSequence=Ke.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Ke.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):fu(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){fn(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(fn(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(Vr("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){ht(t)||(t===62?(this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=fu(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||ht(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?(this.state=7,this.peek()!==62&&this.cbs.onerr(22,this.index)):t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):ht(t)||(t===61&&this.cbs.onerr(19,this.index),this.handleAttrStart(t))}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):ht(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){t===61||fn(t)?(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):(t===34||t===39||t===60)&&this.cbs.onerr(17,this.index)}stateInDirName(t){t===61||fn(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||fn(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||fn(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t),this.cbs.onerr(27,this.index))}stateInDirModifier(t){t===61||fn(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):ht(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):ht(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){ht(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===34||t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Ke.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Ke.ScriptEnd[3]?this.startSpecial(Ke.ScriptEnd,4):t===Ke.StyleEnd[3]?this.startSpecial(Ke.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Ke.TitleEnd[3]?this.startSpecial(Ke.TitleEnd,4):t===Ke.TextareaEnd[3]?this.startSpecial(Ke.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===Ke.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const Ob={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function wl(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function In(e,t){const n=wl("MODE",t),s=wl(e,t);return n===3?s===!0:s!==!1}function Ps(e,t,n,...s){const i=In(e,t);return i&&jr(e,t,n,...s),i}function jr(e,t,n,...s){if(wl(e,t)==="suppress-warning")return;const{message:r,link:o}=Ob[e],l=`(deprecation ${e}) ${typeof r=="function"?r(...s):r}${o?`
Details: ${o}`:""}`,a=new SyntaxError(l);a.code=e,n&&(a.loc=n),t.onWarn(a)}function Ga(e){throw e}function wp(e){console.warn(`[Vue warn] ${e.message}`)}function we(e,t,n,s){const i=(n||Ab)[e]+(s||""),r=new SyntaxError(String(i));return r.code=e,r.loc=t,r}const Ab={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '<' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""},dt=e=>e.type===4&&e.isStatic;function Ep(e){switch(e){case"Teleport":case"teleport":return ri;case"Suspense":case"suspense":return ka;case"KeepAlive":case"keep-alive":return Fr;case"BaseTransition":case"base-transition":return mp}}const Rb=/^\d|[^\$\w]/,Ya=e=>!Rb.test(e),Ib=/[A-Za-z_$\xA0-\uFFFF]/,Nb=/[\.\?\w$\xA0-\uFFFF]/,kb=/\s+[.[]\s*|\s*[.[]\s+/g,Pb=e=>{e=e.trim().replace(kb,o=>o.trim());let t=0,n=[],s=0,i=0,r=null;for(let o=0;o<e.length;o++){const l=e.charAt(o);switch(t){case 0:if(l==="[")n.push(t),t=1,s++;else if(l==="(")n.push(t),t=2,i++;else if(!(o===0?Ib:Nb).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(n.push(t),t=3,r=l):l==="["?s++:l==="]"&&(--s||(t=n.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")n.push(t),t=3,r=l;else if(l==="(")i++;else if(l===")"){if(o===e.length-1)return!1;--i||(t=n.pop())}break;case 3:l===r&&(t=n.pop(),r=null);break}}return!s&&!i},Cp=Pb;function du(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function _t(e,t,n=!1){for(let s=0;s<e.props.length;s++){const i=e.props[s];if(i.type===7&&(n||i.exp)&&(ee(t)?i.name===t:t.test(i.name)))return i}}function Ci(e,t,n=!1,s=!1){for(let i=0;i<e.props.length;i++){const r=e.props[i];if(r.type===6){if(n)continue;if(r.name===t&&(r.value||s))return r}else if(r.name==="bind"&&(r.exp||s)&&wn(r.arg,t))return r}}function wn(e,t){return!!(e&&dt(e)&&e.content===t)}function Mb(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Mo(e){return e.type===5||e.type===2}function $b(e){return e.type===7&&e.name==="slot"}function Br(e){return e.type===1&&e.tagType===3}function Hr(e){return e.type===1&&e.tagType===2}const Fb=new Set([wi,Di]);function Tp(e,t=[]){if(e&&!ee(e)&&e.type===14){const n=e.callee;if(!ee(n)&&Fb.has(n))return Tp(e.arguments[0],t.concat(e))}return[e,t]}function Ur(e,t,n){let s,i=e.type===13?e.props:e.arguments[2],r=[],o;if(i&&!ee(i)&&i.type===14){const l=Tp(i);i=l[0],r=l[1],o=r[r.length-1]}if(i==null||ee(i))s=St([t]);else if(i.type===14){const l=i.arguments[0];!ee(l)&&l.type===15?pu(t,l)||l.properties.unshift(t):i.callee===Ka?s=Ve(n.helper(Lr),[St([t]),i]):i.arguments.unshift(St([t])),!s&&(s=i)}else i.type===15?(pu(t,i)||i.properties.unshift(t),s=i):(s=Ve(n.helper(Lr),[St([t]),i]),o&&o.callee===Di&&(o=r[r.length-2]));e.type===13?o?o.arguments[0]=s:e.props=s:o?o.arguments[0]=s:e.arguments[2]=s}function pu(e,t){let n=!1;if(e.key.type===4){const s=e.key.content;n=t.properties.some(i=>i.key.type===4&&i.key.content===s)}return n}function Ti(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,s)=>n==="-"?"_":e.charCodeAt(s).toString())}`}function Lb(e){return e.type===14&&e.callee===Wa?e.arguments[1].returns:e}const Db=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,xp={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:fr,isPreTag:fr,isCustomElement:fr,onError:Ga,onWarn:wp,comments:!0,prefixIdentifiers:!1};let ge=xp,xi=null,ns="",Je=null,ye=null,lt="",Xt=-1,Un=-1,Kr=0,vn=!1,El=null;const Ne=[],Ce=new xb(Ne,{onerr:ot,ontext(e,t){sr(qe(e,t),e,t)},ontextentity(e,t,n){sr(e,t,n)},oninterpolation(e,t){if(vn)return sr(qe(e,t),e,t);let n=e+Ce.delimiterOpen.length,s=t-Ce.delimiterClose.length;for(;ht(ns.charCodeAt(n));)n++;for(;ht(ns.charCodeAt(s-1));)s--;let i=qe(n,s);i.includes("&")&&(i=ge.decodeEntities(i,!1)),Cl({type:5,content:gr(i,!1,Le(n,s)),loc:Le(e,t)})},onopentagname(e,t){const n=qe(e,t);Je={type:1,tag:n,ns:ge.getNamespace(n,Ne[0],ge.ns),tagType:0,props:[],children:[],loc:Le(e-1,t),codegenNode:void 0}},onopentagend(e){mu(e)},onclosetag(e,t){const n=qe(e,t);if(!ge.isVoidTag(n)){let s=!1;for(let i=0;i<Ne.length;i++)if(Ne[i].tag.toLowerCase()===n.toLowerCase()){s=!0,i>0&&ot(24,Ne[0].loc.start.offset);for(let o=0;o<=i;o++){const l=Ne.shift();mr(l,t,o<i)}break}s||ot(23,Op(e,60))}},onselfclosingtag(e){var t;const n=Je.tag;Je.isSelfClosing=!0,mu(e),((t=Ne[0])==null?void 0:t.tag)===n&&mr(Ne.shift(),e)},onattribname(e,t){ye={type:6,name:qe(e,t),nameLoc:Le(e,t),value:void 0,loc:Le(e)}},ondirname(e,t){const n=qe(e,t),s=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!vn&&s===""&&ot(26,e),vn||s==="")ye={type:6,name:n,nameLoc:Le(e,t),value:void 0,loc:Le(e)};else if(ye={type:7,name:s,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?["prop"]:[],loc:Le(e)},s==="pre"){vn=Ce.inVPre=!0,El=Je;const i=Je.props;for(let r=0;r<i.length;r++)i[r].type===7&&(i[r]=zb(i[r]))}},ondirarg(e,t){if(e===t)return;const n=qe(e,t);if(vn)ye.name+=n,zn(ye.nameLoc,t);else{const s=n[0]!=="[";ye.arg=gr(s?n:n.slice(1,-1),s,Le(e,t),s?3:0)}},ondirmodifier(e,t){const n=qe(e,t);if(vn)ye.name+="."+n,zn(ye.nameLoc,t);else if(ye.name==="slot"){const s=ye.arg;s&&(s.content+="."+n,zn(s.loc,t))}else ye.modifiers.push(n)},onattribdata(e,t){lt+=qe(e,t),Xt<0&&(Xt=e),Un=t},onattribentity(e,t,n){lt+=e,Xt<0&&(Xt=t),Un=n},onattribnameend(e){const t=ye.loc.start.offset,n=qe(t,e);ye.type===7&&(ye.rawName=n),Je.props.some(s=>(s.type===7?s.rawName:s.name)===n)&&ot(2,t)},onattribend(e,t){if(Je&&ye){if(zn(ye.loc,t),e!==0)if(lt.includes("&")&&(lt=ge.decodeEntities(lt,!0)),ye.type===6)ye.name==="class"&&(lt=Rp(lt).trim()),e===1&&!lt&&ot(13,t),ye.value={type:2,content:lt,loc:e===1?Le(Xt,Un):Le(Xt-1,Un+1)},Ce.inSFCRoot&&Je.tag==="template"&&ye.name==="lang"&<&<!=="html"&&Ce.enterRCDATA(Vr("</template"),0);else{let n=0;ye.exp=gr(lt,!1,Le(Xt,Un),0,n),ye.name==="for"&&(ye.forParseResult=jb(ye.exp));let s=-1;ye.name==="bind"&&(s=ye.modifiers.indexOf("sync"))>-1&&Ps("COMPILER_V_BIND_SYNC",ge,ye.loc,ye.rawName)&&(ye.name="model",ye.modifiers.splice(s,1))}(ye.type!==7||ye.name!=="pre")&&Je.props.push(ye)}lt="",Xt=Un=-1},oncomment(e,t){ge.comments&&Cl({type:3,content:qe(e,t),loc:Le(e-4,t+3)})},onend(){const e=ns.length;if(Ce.state!==1)switch(Ce.state){case 5:case 8:ot(5,e);break;case 3:case 4:ot(25,Ce.sectionStart);break;case 28:Ce.currentSequence===Ke.CdataEnd?ot(6,e):ot(7,e);break;case 6:case 7:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:ot(9,e);break}for(let t=0;t<Ne.length;t++)mr(Ne[t],e-1),ot(24,Ne[t].loc.start.offset)},oncdata(e,t){Ne[0].ns!==0?sr(qe(e,t),e,t):ot(1,e-9)},onprocessinginstruction(e){(Ne[0]?Ne[0].ns:ge.ns)===0&&ot(21,e-1)}}),hu=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Vb=/^\(|\)$/g;function jb(e){const t=e.loc,n=e.content,s=n.match(Db);if(!s)return;const[,i,r]=s,o=(u,d,p=!1)=>{const m=t.start.offset+d,w=m+u.length;return gr(u,!1,Le(m,w),0,p?1:0)},l={source:o(r.trim(),n.indexOf(r,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let a=i.trim().replace(Vb,"").trim();const c=i.indexOf(a),f=a.match(hu);if(f){a=a.replace(hu,"").trim();const u=f[1].trim();let d;if(u&&(d=n.indexOf(u,c+a.length),l.key=o(u,d,!0)),f[2]){const p=f[2].trim();p&&(l.index=o(p,n.indexOf(p,l.key?d+u.length:c+a.length),!0))}}return a&&(l.value=o(a,c,!0)),l}function qe(e,t){return ns.slice(e,t)}function mu(e){Ce.inSFCRoot&&(Je.innerLoc=Le(e+1,e+1)),Cl(Je);const{tag:t,ns:n}=Je;n===0&&ge.isPreTag(t)&&Kr++,ge.isVoidTag(t)?mr(Je,e):(Ne.unshift(Je),(n===1||n===2)&&(Ce.inXML=!0)),Je=null}function sr(e,t,n){var s;{const o=(s=Ne[0])==null?void 0:s.tag;o!=="script"&&o!=="style"&&e.includes("&")&&(e=ge.decodeEntities(e,!1))}const i=Ne[0]||xi,r=i.children[i.children.length-1];(r==null?void 0:r.type)===2?(r.content+=e,zn(r.loc,n)):i.children.push({type:2,content:e,loc:Le(t,n)})}function mr(e,t,n=!1){n?zn(e.loc,Op(t,60)):zn(e.loc,t+1),Ce.inSFCRoot&&(e.children.length?e.innerLoc.end=ce({},e.children[e.children.length-1].loc.end):e.innerLoc.end=ce({},e.innerLoc.start),e.innerLoc.source=qe(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:s,ns:i}=e;vn||(s==="slot"?e.tagType=2:gu(e)?e.tagType=3:Hb(e)&&(e.tagType=1)),Ce.inRCDATA||(e.children=Ap(e.children,e.tag)),i===0&&ge.isPreTag(s)&&Kr--,El===e&&(vn=Ce.inVPre=!1,El=null),Ce.inXML&&(Ne[0]?Ne[0].ns:ge.ns)===0&&(Ce.inXML=!1);{const r=e.props;if(In("COMPILER_V_IF_V_FOR_PRECEDENCE",ge)){let l=!1,a=!1;for(let c=0;c<r.length;c++){const f=r[c];if(f.type===7&&(f.name==="if"?l=!0:f.name==="for"&&(a=!0)),l&&a){jr("COMPILER_V_IF_V_FOR_PRECEDENCE",ge,e.loc);break}}}if(!Ce.inSFCRoot&&In("COMPILER_NATIVE_TEMPLATE",ge)&&e.tag==="template"&&!gu(e)){jr("COMPILER_NATIVE_TEMPLATE",ge,e.loc);const l=Ne[0]||xi,a=l.children.indexOf(e);l.children.splice(a,1,...e.children)}const o=r.find(l=>l.type===6&&l.name==="inline-template");o&&Ps("COMPILER_INLINE_TEMPLATE",ge,o.loc)&&e.children.length&&(o.value={type:2,content:qe(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:o.loc})}}function Op(e,t){let n=e;for(;ns.charCodeAt(n)!==t&&n>=0;)n--;return n}const Bb=new Set(["if","else","else-if","for","slot"]);function gu({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&Bb.has(t[n].name))return!0}return!1}function Hb({tag:e,props:t}){var n;if(ge.isCustomElement(e))return!1;if(e==="component"||Ub(e.charCodeAt(0))||Ep(e)||(n=ge.isBuiltInComponent)!=null&&n.call(ge,e)||ge.isNativeTag&&!ge.isNativeTag(e))return!0;for(let s=0;s<t.length;s++){const i=t[s];if(i.type===6){if(i.name==="is"&&i.value){if(i.value.content.startsWith("vue:"))return!0;if(Ps("COMPILER_IS_ON_ELEMENT",ge,i.loc))return!0}}else if(i.name==="bind"&&wn(i.arg,"is")&&Ps("COMPILER_IS_ON_ELEMENT",ge,i.loc))return!0}return!1}function Ub(e){return e>64&&e<91}const Kb=/\r\n/g;function Ap(e,t){var n,s;const i=ge.whitespace!=="preserve";let r=!1;for(let o=0;o<e.length;o++){const l=e[o];if(l.type===2)if(Kr)l.content=l.content.replace(Kb,`
`);else if(qb(l.content)){const a=(n=e[o-1])==null?void 0:n.type,c=(s=e[o+1])==null?void 0:s.type;!a||!c||i&&(a===3&&(c===3||c===1)||a===1&&(c===3||c===1&&Wb(l.content)))?(r=!0,e[o]=null):l.content=" "}else i&&(l.content=Rp(l.content))}if(Kr&&t&&ge.isPreTag(t)){const o=e[0];o&&o.type===2&&(o.content=o.content.replace(/^\r?\n/,""))}return r?e.filter(Boolean):e}function qb(e){for(let t=0;t<e.length;t++)if(!ht(e.charCodeAt(t)))return!1;return!0}function Wb(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Rp(e){let t="",n=!1;for(let s=0;s<e.length;s++)ht(e.charCodeAt(s))?n||(t+=" ",n=!0):(t+=e[s],n=!1);return t}function Cl(e){(Ne[0]||xi).children.push(e)}function Le(e,t){return{start:Ce.getPos(e),end:t==null?t:Ce.getPos(t),source:t==null?t:qe(e,t)}}function zn(e,t){e.end=Ce.getPos(t),e.source=qe(e.start.offset,t)}function zb(e){const t={type:6,name:e.rawName,nameLoc:Le(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function gr(e,t=!1,n,s=0,i=0){return oe(e,t,n,s)}function ot(e,t,n){ge.onError(we(e,Le(t,t),void 0,n))}function Gb(){Ce.reset(),Je=null,ye=null,lt="",Xt=-1,Un=-1,Ne.length=0}function Yb(e,t){if(Gb(),ns=e,ge=ce({},xp),t){let i;for(i in t)t[i]!=null&&(ge[i]=t[i])}if(!ge.decodeEntities)throw new Error("[@vue/compiler-core] decodeEntities option is required in browser builds.");Ce.mode=ge.parseMode==="html"?1:ge.parseMode==="sfc"?2:0,Ce.inXML=ge.ns===1||ge.ns===2;const n=t==null?void 0:t.delimiters;n&&(Ce.delimiterOpen=Vr(n[0]),Ce.delimiterClose=Vr(n[1]));const s=xi=Eb([],e);return Ce.parse(ns),s.loc=Le(0,e.length),s.children=Ap(s.children),xi=null,s}function Jb(e,t){yr(e,t,Ip(e,e.children[0]))}function Ip(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!Hr(t)}function yr(e,t,n=!1){const{children:s}=e,i=s.length;let r=0;for(let o=0;o<s.length;o++){const l=s[o];if(l.type===1&&l.tagType===0){const a=n?0:wt(l,t);if(a>0){if(a>=2){l.codegenNode.patchFlag="-1 /* HOISTED */",l.codegenNode=t.hoist(l.codegenNode),r++;continue}}else{const c=l.codegenNode;if(c.type===13){const f=Mp(c);if((!f||f===512||f===1)&&kp(l,t)>=2){const u=Pp(l);u&&(c.props=t.hoist(u))}c.dynamicProps&&(c.dynamicProps=t.hoist(c.dynamicProps))}}}if(l.type===1){const a=l.tagType===1;a&&t.scopes.vSlot++,yr(l,t),a&&t.scopes.vSlot--}else if(l.type===11)yr(l,t,l.children.length===1);else if(l.type===9)for(let a=0;a<l.branches.length;a++)yr(l.branches[a],t,l.branches[a].children.length===1)}if(r&&t.transformHoist&&t.transformHoist(s,t,e),r&&r===i&&e.type===1&&e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&H(e.codegenNode.children)){const o=t.hoist(Vi(e.codegenNode.children));t.hmr&&(o.content=`[...${o.content}]`),e.codegenNode.children=o}}function wt(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const s=n.get(e);if(s!==void 0)return s;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject")return 0;if(Mp(i))return n.set(e,0),0;{let l=3;const a=kp(e,t);if(a===0)return n.set(e,0),0;a<l&&(l=a);for(let c=0;c<e.children.length;c++){const f=wt(e.children[c],t);if(f===0)return n.set(e,0),0;f<l&&(l=f)}if(l>1)for(let c=0;c<e.props.length;c++){const f=e.props[c];if(f.type===7&&f.name==="bind"&&f.exp){const u=wt(f.exp,t);if(u===0)return n.set(e,0),0;u<l&&(l=u)}}if(i.isBlock){for(let c=0;c<e.props.length;c++)if(e.props[c].type===7)return n.set(e,0),0;t.removeHelper(ls),t.removeHelper(ks(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Ns(t.inSSR,i.isComponent))}return n.set(e,l),l}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return wt(e.content,t);case 4:return e.constType;case 8:let o=3;for(let l=0;l<e.children.length;l++){const a=e.children[l];if(ee(a)||kt(a))continue;const c=wt(a,t);if(c===0)return 0;c<o&&(o=c)}return o;default:return 0}}const Xb=new Set([Ha,Ua,wi,Di]);function Np(e,t){if(e.type===14&&!ee(e.callee)&&Xb.has(e.callee)){const n=e.arguments[0];if(n.type===4)return wt(n,t);if(n.type===14)return Np(n,t)}return 0}function kp(e,t){let n=3;const s=Pp(e);if(s&&s.type===15){const{properties:i}=s;for(let r=0;r<i.length;r++){const{key:o,value:l}=i[r],a=wt(o,t);if(a===0)return a;a<n&&(n=a);let c;if(l.type===4?c=wt(l,t):l.type===14?c=Np(l,t):c=0,c===0)return c;c<n&&(n=c)}}return n}function Pp(e){const t=e.codegenNode;if(t.type===13)return t.props}function Mp(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function Qb(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:s=!1,hmr:i=!1,cacheHandlers:r=!1,nodeTransforms:o=[],directiveTransforms:l={},transformHoist:a=null,isBuiltInComponent:c=Me,isCustomElement:f=Me,expressionPlugins:u=[],scopeId:d=null,slotted:p=!0,ssr:m=!1,inSSR:w=!1,ssrCssVars:E="",bindingMetadata:y=me,inline:_=!1,isTS:g=!1,onError:b=Ga,onWarn:S=wp,compatConfig:A}){const C=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),T={filename:t,selfName:C&&Ut(Ie(C[1])),prefixIdentifiers:n,hoistStatic:s,hmr:i,cacheHandlers:r,nodeTransforms:o,directiveTransforms:l,transformHoist:a,isBuiltInComponent:c,isCustomElement:f,expressionPlugins:u,scopeId:d,slotted:p,ssr:m,inSSR:w,ssrCssVars:E,bindingMetadata:y,inline:_,isTS:g,onError:b,onWarn:S,compatConfig:A,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new WeakMap,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(O){const x=T.helpers.get(O)||0;return T.helpers.set(O,x+1),O},removeHelper(O){const x=T.helpers.get(O);if(x){const N=x-1;N?T.helpers.set(O,N):T.helpers.delete(O)}},helperString(O){return`_${Rs[T.helper(O)]}`},replaceNode(O){{if(!T.currentNode)throw new Error("Node being replaced is already removed.");if(!T.parent)throw new Error("Cannot replace root node.")}T.parent.children[T.childIndex]=T.currentNode=O},removeNode(O){if(!T.parent)throw new Error("Cannot remove root node.");const x=T.parent.children,N=O?x.indexOf(O):T.currentNode?T.childIndex:-1;if(N<0)throw new Error("node being removed is not a child of current parent");!O||O===T.currentNode?(T.currentNode=null,T.onNodeRemoved()):T.childIndex>N&&(T.childIndex--,T.onNodeRemoved()),T.parent.children.splice(N,1)},onNodeRemoved:Me,addIdentifiers(O){},removeIdentifiers(O){},hoist(O){ee(O)&&(O=oe(O)),T.hoists.push(O);const x=oe(`_hoisted_${T.hoists.length}`,!1,O.loc,2);return x.hoisted=O,x},cache(O,x=!1){return Cb(T.cached++,O,x)}};return T.filters=new Set,T}function Zb(e,t){const n=Qb(e,t);go(e,n),t.hoistStatic&&Jb(e,n),t.ssr||e0(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function e0(e,t){const{helper:n}=t,{children:s}=e;if(s.length===1){const i=s[0];if(Ip(e,i)&&i.codegenNode){const r=i.codegenNode;r.type===13&&za(r,t),e.codegenNode=r}else e.codegenNode=i}else if(s.length>1){let i=64,r=jt[64];s.filter(o=>o.type!==3).length===1&&(i|=2048,r+=`, ${jt[2048]}`),e.codegenNode=Ei(t,n(Si),void 0,e.children,i+` /* ${r} */`,void 0,void 0,!0,void 0,!1)}}function t0(e,t){let n=0;const s=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];ee(i)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=s,go(i,t))}}function go(e,t){t.currentNode=e;const{nodeTransforms:n}=t,s=[];for(let r=0;r<n.length;r++){const o=n[r](e,t);if(o&&(H(o)?s.push(...o):s.push(o)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Li);break;case 5:t.ssr||t.helper(mo);break;case 9:for(let r=0;r<e.branches.length;r++)go(e.branches[r],t);break;case 10:case 11:case 1:case 0:t0(e,t);break}t.currentNode=e;let i=s.length;for(;i--;)s[i]()}function $p(e,t){const n=ee(e)?s=>s===e:s=>e.test(s);return(s,i)=>{if(s.type===1){const{props:r}=s;if(s.tagType===3&&r.some($b))return;const o=[];for(let l=0;l<r.length;l++){const a=r[l];if(a.type===7&&n(a.name)){r.splice(l,1),l--;const c=t(s,a,i);c&&o.push(c)}}return o}}}const yo="/*#__PURE__*/",Fp=e=>`${Rs[e]}: _${Rs[e]}`;function n0(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:s=!1,filename:i="template.vue.html",scopeId:r=null,optimizeImports:o=!1,runtimeGlobalName:l="Vue",runtimeModuleName:a="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:f=!1,isTS:u=!1,inSSR:d=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:s,filename:i,scopeId:r,optimizeImports:o,runtimeGlobalName:l,runtimeModuleName:a,ssrRuntimeModuleName:c,ssr:f,isTS:u,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(w){return`_${Rs[w]}`},push(w,E=-2,y){p.code+=w},indent(){m(++p.indentLevel)},deindent(w=!1){w?--p.indentLevel:m(--p.indentLevel)},newline(){m(p.indentLevel)}};function m(w){p.push(`
`+" ".repeat(w),0)}return p}function s0(e,t={}){const n=n0(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:s,push:i,prefixIdentifiers:r,indent:o,deindent:l,newline:a,scopeId:c,ssr:f}=n,u=Array.from(e.helpers),d=u.length>0,p=!r&&s!=="module";i0(e,n);const w=f?"ssrRender":"render",y=(f?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${w}(${y}) {`),o(),p&&(i("with (_ctx) {"),o(),d&&(i(`const { ${u.map(Fp).join(", ")} } = _Vue
`,-1),a())),e.components.length&&($o(e.components,"component",n),(e.directives.length||e.temps>0)&&a()),e.directives.length&&($o(e.directives,"directive",n),e.temps>0&&a()),e.filters&&e.filters.length&&(a(),$o(e.filters,"filter",n),a()),e.temps>0){i("let ");for(let _=0;_<e.temps;_++)i(`${_>0?", ":""}_temp${_}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
`,0),a()),f||i("return "),e.codegenNode?et(e.codegenNode,n):i("null"),p&&(l(),i("}")),l(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function i0(e,t){const{ssr:n,prefixIdentifiers:s,push:i,newline:r,runtimeModuleName:o,runtimeGlobalName:l,ssrRuntimeModuleName:a}=t,c=l,f=Array.from(e.helpers);if(f.length>0&&(i(`const _Vue = ${c}
`,-1),e.hoists.length)){const u=[Pa,Ma,Li,$a,vp].filter(d=>f.includes(d)).map(Fp).join(", ");i(`const { ${u} } = _Vue
`,-1)}r0(e.hoists,t),r(),i("return ")}function $o(e,t,{helper:n,push:s,newline:i,isTS:r}){const o=n(t==="filter"?Va:t==="component"?Fa:Da);for(let l=0;l<e.length;l++){let a=e[l];const c=a.endsWith("__self");c&&(a=a.slice(0,-6)),s(`const ${Ti(a,t)} = ${o}(${JSON.stringify(a)}${c?", true":""})${r?"!":""}`),l<e.length-1&&i()}}function r0(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:s,helper:i,scopeId:r,mode:o}=t;s();for(let l=0;l<e.length;l++){const a=e[l];a&&(n(`const _hoisted_${l+1} = `),et(a,t),s())}t.pure=!1}function o0(e){return ee(e)||e.type===4||e.type===2||e.type===5||e.type===8}function Ja(e,t){const n=e.length>3||e.some(s=>H(s)||!o0(s));t.push("["),n&&t.indent(),ji(e,t,n),n&&t.deindent(),t.push("]")}function ji(e,t,n=!1,s=!0){const{push:i,newline:r}=t;for(let o=0;o<e.length;o++){const l=e[o];ee(l)?i(l,-3):H(l)?Ja(l,t):et(l,t),o<e.length-1&&(n?(s&&i(","),r()):s&&i(", "))}}function et(e,t){if(ee(e)){t.push(e,-3);return}if(kt(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:du(e.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),et(e.codegenNode,t);break;case 2:l0(e,t);break;case 4:Lp(e,t);break;case 5:a0(e,t);break;case 12:et(e.codegenNode,t);break;case 8:Dp(e,t);break;case 3:u0(e,t);break;case 13:f0(e,t);break;case 14:p0(e,t);break;case 15:h0(e,t);break;case 17:m0(e,t);break;case 18:g0(e,t);break;case 19:y0(e,t);break;case 20:v0(e,t);break;case 21:ji(e.body,t,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:return du(!1,`unhandled codegen node type: ${e.type}`),e}}function l0(e,t){t.push(JSON.stringify(e.content),-3,e)}function Lp(e,t){const{content:n,isStatic:s}=e;t.push(s?JSON.stringify(n):n,-3,e)}function a0(e,t){const{push:n,helper:s,pure:i}=t;i&&n(yo),n(`${s(mo)}(`),et(e.content,t),n(")")}function Dp(e,t){for(let n=0;n<e.children.length;n++){const s=e.children[n];ee(s)?t.push(s,-3):et(s,t)}}function c0(e,t){const{push:n}=t;if(e.type===8)n("["),Dp(e,t),n("]");else if(e.isStatic){const s=Ya(e.content)?e.content:JSON.stringify(e.content);n(s,-2,e)}else n(`[${e.content}]`,-3,e)}function u0(e,t){const{push:n,helper:s,pure:i}=t;i&&n(yo),n(`${s(Li)}(${JSON.stringify(e.content)})`,-3,e)}function f0(e,t){const{push:n,helper:s,pure:i}=t,{tag:r,props:o,children:l,patchFlag:a,dynamicProps:c,directives:f,isBlock:u,disableTracking:d,isComponent:p}=e;f&&n(s(ja)+"("),u&&n(`(${s(ls)}(${d?"true":""}), `),i&&n(yo);const m=u?ks(t.inSSR,p):Ns(t.inSSR,p);n(s(m)+"(",-2,e),ji(d0([r,o,l,a,c]),t),n(")"),u&&n(")"),f&&(n(", "),et(f,t),n(")"))}function d0(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function p0(e,t){const{push:n,helper:s,pure:i}=t,r=ee(e.callee)?e.callee:s(e.callee);i&&n(yo),n(r+"(",-2,e),ji(e.arguments,t),n(")")}function h0(e,t){const{push:n,indent:s,deindent:i,newline:r}=t,{properties:o}=e;if(!o.length){n("{}",-2,e);return}const l=o.length>1||o.some(a=>a.value.type!==4);n(l?"{":"{ "),l&&s();for(let a=0;a<o.length;a++){const{key:c,value:f}=o[a];c0(c,t),n(": "),et(f,t),a<o.length-1&&(n(","),r())}l&&i(),n(l?"}":" }")}function m0(e,t){Ja(e.elements,t)}function g0(e,t){const{push:n,indent:s,deindent:i}=t,{params:r,returns:o,body:l,newline:a,isSlot:c}=e;c&&n(`_${Rs[qa]}(`),n("(",-2,e),H(r)?ji(r,t):r&&et(r,t),n(") => "),(a||l)&&(n("{"),s()),o?(a&&n("return "),H(o)?Ja(o,t):et(o,t)):l&&et(l,t),(a||l)&&(i(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function y0(e,t){const{test:n,consequent:s,alternate:i,newline:r}=e,{push:o,indent:l,deindent:a,newline:c}=t;if(n.type===4){const u=!Ya(n.content);u&&o("("),Lp(n,t),u&&o(")")}else o("("),et(n,t),o(")");r&&l(),t.indentLevel++,r||o(" "),o("? "),et(s,t),t.indentLevel--,r&&c(),r||o(" "),o(": ");const f=i.type===19;f||t.indentLevel++,et(i,t),f||t.indentLevel--,r&&a(!0)}function v0(e,t){const{push:n,helper:s,indent:i,deindent:r,newline:o}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(i(),n(`${s(Dr)}(-1),`),o()),n(`_cache[${e.index}] = `),et(e.value,t),e.isVNode&&(n(","),o(),n(`${s(Dr)}(1),`),o(),n(`_cache[${e.index}]`),r()),n(")")}const b0=new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b"),_0=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Gn(e,t,n=!1,s=!1){const i=e.content;if(i.trim())try{new Function(s?` ${i} `:`return ${n?`(${i}) => {}`:`(${i})`}`)}catch(r){let o=r.message;const l=i.replace(_0,"").match(b0);l&&(o=`avoid using JavaScript keyword as property name: "${l[0]}"`),t.onError(we(45,e.loc,void 0,o))}}const S0=(e,t)=>{if(e.type===5)e.content=Fo(e.content,t);else if(e.type===1)for(let n=0;n<e.props.length;n++){const s=e.props[n];if(s.type===7&&s.name!=="for"){const i=s.exp,r=s.arg;i&&i.type===4&&!(s.name==="on"&&r)&&(s.exp=Fo(i,t,s.name==="slot")),r&&r.type===4&&!r.isStatic&&(s.arg=Fo(r,t))}}};function Fo(e,t,n=!1,s=!1,i=Object.create(t.identifiers)){return Gn(e,t,n,s),e}const w0=$p(/^(if|else|else-if)$/,(e,t,n)=>E0(e,t,n,(s,i,r)=>{const o=n.parent.children;let l=o.indexOf(s),a=0;for(;l-->=0;){const c=o[l];c&&c.type===9&&(a+=c.branches.length)}return()=>{if(r)s.codegenNode=vu(i,a,n);else{const c=T0(s.codegenNode);c.alternate=vu(i,a+s.branches.length-1,n)}}}));function E0(e,t,n,s){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(we(28,t.loc)),t.exp=oe("true",!1,i)}if(t.exp&&Gn(t.exp,n),t.name==="if"){const i=yu(e,t),r={type:9,loc:e.loc,branches:[i]};if(n.replaceNode(r),s)return s(r,i,!0)}else{const i=n.parent.children,r=[];let o=i.indexOf(e);for(;o-->=-1;){const l=i[o];if(l&&l.type===3){n.removeNode(l),r.unshift(l);continue}if(l&&l.type===2&&!l.content.trim().length){n.removeNode(l);continue}if(l&&l.type===9){t.name==="else-if"&&l.branches[l.branches.length-1].condition===void 0&&n.onError(we(30,e.loc)),n.removeNode();const a=yu(e,t);r.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag==="transition"||n.parent.tag==="Transition"))&&(a.children=[...r,...a.children]);{const f=a.userKey;f&&l.branches.forEach(({userKey:u})=>{C0(u,f)&&n.onError(we(29,a.userKey.loc))})}l.branches.push(a);const c=s&&s(l,a,!1);go(a,n),c&&c(),n.currentNode=null}else n.onError(we(30,e.loc));break}}}function yu(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!_t(e,"for")?e.children:[e],userKey:Ci(e,"key"),isTemplateIf:n}}function vu(e,t,n){return e.condition?Sl(e.condition,bu(e,t,n),Ve(n.helper(Li),['"v-if"',"true"])):bu(e,t,n)}function bu(e,t,n){const{helper:s}=n,i=ke("key",oe(`${t}`,!1,yt,2)),{children:r}=e,o=r[0];if(r.length!==1||o.type!==1)if(r.length===1&&o.type===11){const a=o.codegenNode;return Ur(a,i,n),a}else{let a=64,c=jt[64];return!e.isTemplateIf&&r.filter(f=>f.type!==3).length===1&&(a|=2048,c+=`, ${jt[2048]}`),Ei(n,s(Si),St([i]),r,a+` /* ${c} */`,void 0,void 0,!0,!1,!1,e.loc)}else{const a=o.codegenNode,c=Lb(a);return c.type===13&&za(c,n),Ur(c,i,n),a}}function C0(e,t){if(!e||e.type!==t.type)return!1;if(e.type===6){if(e.value.content!==t.value.content)return!1}else{const n=e.exp,s=t.exp;if(n.type!==s.type||n.type!==4||n.isStatic!==s.isStatic||n.content!==s.content)return!1}return!0}function T0(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const x0=$p("for",(e,t,n)=>{const{helper:s,removeHelper:i}=n;return O0(e,t,n,r=>{const o=Ve(s(Ba),[r.source]),l=Br(e),a=_t(e,"memo"),c=Ci(e,"key"),f=c&&(c.type===6?oe(c.value.content,!0):c.exp),u=c?ke("key",f):null,d=r.source.type===4&&r.source.constType>0,p=d?64:c?128:256;return r.codegenNode=Ei(n,s(Si),void 0,o,p+` /* ${jt[p]} */`,void 0,void 0,!0,!d,!1,e.loc),()=>{let m;const{children:w}=r;l&&e.children.some(_=>{if(_.type===1){const g=Ci(_,"key");if(g)return n.onError(we(33,g.loc)),!0}});const E=w.length!==1||w[0].type!==1,y=Hr(e)?e:l&&e.children.length===1&&Hr(e.children[0])?e.children[0]:null;if(y?(m=y.codegenNode,l&&u&&Ur(m,u,n)):E?m=Ei(n,s(Si),u?St([u]):void 0,e.children,`64 /* ${jt[64]} */`,void 0,void 0,!0,void 0,!1):(m=w[0].codegenNode,l&&u&&Ur(m,u,n),m.isBlock!==!d&&(m.isBlock?(i(ls),i(ks(n.inSSR,m.isComponent))):i(Ns(n.inSSR,m.isComponent))),m.isBlock=!d,m.isBlock?(s(ls),s(ks(n.inSSR,m.isComponent))):s(Ns(n.inSSR,m.isComponent))),a){const _=Is(Tl(r.parseResult,[oe("_cached")]));_.body=Tb([Nt(["const _memo = (",a.exp,")"]),Nt(["if (_cached",...f?[" && _cached.key === ",f]:[],` && ${n.helperString(Sp)}(_cached, _memo)) return _cached`]),Nt(["const _item = ",m]),oe("_item.memo = _memo"),oe("return _item")]),o.arguments.push(_,oe("_cache"),oe(String(n.cached++)))}else o.arguments.push(Is(Tl(r.parseResult),m,!0))}})});function O0(e,t,n,s){if(!t.exp){n.onError(we(31,t.loc));return}const i=t.forParseResult;if(!i){n.onError(we(32,t.loc));return}Vp(i,n);const{addIdentifiers:r,removeIdentifiers:o,scopes:l}=n,{source:a,value:c,key:f,index:u}=i,d={type:11,loc:t.loc,source:a,valueAlias:c,keyAlias:f,objectIndexAlias:u,parseResult:i,children:Br(e)?e.children:[e]};n.replaceNode(d),l.vFor++;const p=s&&s(d);return()=>{l.vFor--,p&&p()}}function Vp(e,t){e.finalized||(Gn(e.source,t),e.key&&Gn(e.key,t,!0),e.index&&Gn(e.index,t,!0),e.value&&Gn(e.value,t,!0),e.finalized=!0)}function Tl({value:e,key:t,index:n},s=[]){return A0([e,t,n,...s])}function A0(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,s)=>n||oe("_".repeat(s+1),!1))}const _u=oe("undefined",!1),R0=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=_t(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},I0=(e,t,n,s)=>Is(e,n,!1,!0,n.length?n[0].loc:s);function N0(e,t,n=I0){t.helper(qa);const{children:s,loc:i}=e,r=[],o=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const a=_t(e,"slot",!0);if(a){const{arg:E,exp:y}=a;E&&!dt(E)&&(l=!0),r.push(ke(E||oe("default",!0),n(y,void 0,s,i)))}let c=!1,f=!1;const u=[],d=new Set;let p=0;for(let E=0;E<s.length;E++){const y=s[E];let _;if(!Br(y)||!(_=_t(y,"slot",!0))){y.type!==3&&u.push(y);continue}if(a){t.onError(we(37,_.loc));break}c=!0;const{children:g,loc:b}=y,{arg:S=oe("default",!0),exp:A,loc:C}=_;let T;dt(S)?T=S?S.content:"default":l=!0;const O=_t(y,"for"),x=n(A,O,g,b);let N,I;if(N=_t(y,"if"))l=!0,o.push(Sl(N.exp,ir(S,x,p++),_u));else if(I=_t(y,/^else(-if)?$/,!0)){let j=E,G;for(;j--&&(G=s[j],G.type===3););if(G&&Br(G)&&_t(G,"if")){s.splice(E,1),E--;let te=o[o.length-1];for(;te.alternate.type===19;)te=te.alternate;te.alternate=I.exp?Sl(I.exp,ir(S,x,p++),_u):ir(S,x,p++)}else t.onError(we(30,I.loc))}else if(O){l=!0;const j=O.forParseResult;j?(Vp(j,t),o.push(Ve(t.helper(Ba),[j.source,Is(Tl(j),ir(S,x),!0)]))):t.onError(we(32,O.loc))}else{if(T){if(d.has(T)){t.onError(we(38,C));continue}d.add(T),T==="default"&&(f=!0)}r.push(ke(S,x))}}if(!a){const E=(y,_)=>{const g=n(y,void 0,_,i);return t.compatConfig&&(g.isNonScopedSlot=!0),ke("default",g)};c?u.length&&u.some(y=>jp(y))&&(f?t.onError(we(39,u[0].loc)):r.push(E(void 0,u))):r.push(E(void 0,s))}const m=l?2:vr(e.children)?3:1;let w=St(r.concat(ke("_",oe(m+` /* ${mm[m]} */`,!1))),i);return o.length&&(w=Ve(t.helper(_p),[w,Vi(o)])),{slots:w,hasDynamicSlots:l}}function ir(e,t,n){const s=[ke("name",e),ke("fn",t)];return n!=null&&s.push(ke("key",oe(String(n),!0))),St(s)}function vr(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||vr(n.children))return!0;break;case 9:if(vr(n.branches))return!0;break;case 10:case 11:if(vr(n.children))return!0;break}}return!1}function jp(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():jp(e.content)}const Bp=new WeakMap,k0=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:s,props:i}=e,r=e.tagType===1;let o=r?P0(e,t):`"${s}"`;const l=he(o)&&o.callee===La;let a,c,f,u=0,d,p,m,w=l||o===ri||o===ka||!r&&(s==="svg"||s==="foreignObject");if(i.length>0){const E=Hp(e,t,void 0,r,l);a=E.props,u=E.patchFlag,p=E.dynamicPropNames;const y=E.directives;m=y&&y.length?Vi(y.map(_=>$0(_,t))):void 0,E.shouldUseBlock&&(w=!0)}if(e.children.length>0)if(o===Fr&&(w=!0,u|=1024,e.children.length>1&&t.onError(we(46,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}))),r&&o!==ri&&o!==Fr){const{slots:y,hasDynamicSlots:_}=N0(e,t);c=y,_&&(u|=1024)}else if(e.children.length===1&&o!==ri){const y=e.children[0],_=y.type,g=_===5||_===8;g&&wt(y,t)===0&&(u|=1),g||_===2?c=y:c=e.children}else c=e.children;if(u!==0){if(u<0)f=u+` /* ${jt[u]} */`;else{const E=Object.keys(jt).map(Number).filter(y=>y>0&&u&y).map(y=>jt[y]).join(", ");f=u+` /* ${E} */`}p&&p.length&&(d=F0(p))}e.codegenNode=Ei(t,o,a,c,f,d,m,!!w,!1,r,e.loc)};function P0(e,t,n=!1){let{tag:s}=e;const i=xl(s),r=Ci(e,"is");if(r)if(i||In("COMPILER_IS_ON_ELEMENT",t)){const l=r.type===6?r.value&&oe(r.value.content,!0):r.exp;if(l)return Ve(t.helper(La),[l])}else r.type===6&&r.value.content.startsWith("vue:")&&(s=r.value.content.slice(4));const o=Ep(s)||t.isBuiltInComponent(s);return o?(n||t.helper(o),o):(t.helper(Fa),t.components.add(s),Ti(s,"component"))}function Hp(e,t,n=e.props,s,i,r=!1){const{tag:o,loc:l,children:a}=e;let c=[];const f=[],u=[],d=a.length>0;let p=!1,m=0,w=!1,E=!1,y=!1,_=!1,g=!1,b=!1;const S=[],A=O=>{c.length&&(f.push(St(Su(c),l)),c=[]),O&&f.push(O)},C=({key:O,value:x})=>{if(dt(O)){const N=O.content,I=nn(N);if(I&&(!s||i)&&N.toLowerCase()!=="onclick"&&N!=="onUpdate:modelValue"&&!Cn(N)&&(_=!0),I&&Cn(N)&&(b=!0),I&&x.type===14&&(x=x.arguments[0]),x.type===20||(x.type===4||x.type===8)&&wt(x,t)>0)return;N==="ref"?w=!0:N==="class"?E=!0:N==="style"?y=!0:N!=="key"&&!S.includes(N)&&S.push(N),s&&(N==="class"||N==="style")&&!S.includes(N)&&S.push(N)}else g=!0};for(let O=0;O<n.length;O++){const x=n[O];if(x.type===6){const{loc:N,name:I,nameLoc:j,value:G}=x;let te=!0;if(I==="ref"&&(w=!0,t.scopes.vFor>0&&c.push(ke(oe("ref_for",!0),oe("true")))),I==="is"&&(xl(o)||G&&G.content.startsWith("vue:")||In("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(ke(oe(I,!0,j),oe(G?G.content:"",te,G?G.loc:N)))}else{const{name:N,arg:I,exp:j,loc:G,modifiers:te}=x,z=N==="bind",J=N==="on";if(N==="slot"){s||t.onError(we(40,G));continue}if(N==="once"||N==="memo"||N==="is"||z&&wn(I,"is")&&(xl(o)||In("COMPILER_IS_ON_ELEMENT",t))||J&&r)continue;if((z&&wn(I,"key")||J&&d&&wn(I,"vue:before-update"))&&(p=!0),z&&wn(I,"ref")&&t.scopes.vFor>0&&c.push(ke(oe("ref_for",!0),oe("true"))),!I&&(z||J)){if(g=!0,j)if(z){if(A(),f.some(Ye=>Ye.type===15?Ye.properties.some(({key:rt})=>rt.type!==4||!rt.isStatic?!0:rt.content!=="class"&&rt.content!=="style"&&!nn(rt.content)):!0)&&Ps("COMPILER_V_BIND_OBJECT_ORDER",t,G),In("COMPILER_V_BIND_OBJECT_ORDER",t)){f.unshift(j);continue}f.push(j)}else A({type:14,loc:G,callee:t.helper(Ka),arguments:s?[j]:[j,"true"]});else t.onError(we(z?34:35,G));continue}z&&te.includes("prop")&&(m|=32);const W=t.directiveTransforms[N];if(W){const{props:Fe,needRuntime:Ye}=W(x,e,t);!r&&Fe.forEach(C),J&&I&&!dt(I)?A(St(Fe,l)):c.push(...Fe),Ye&&(u.push(x),kt(Ye)&&Bp.set(x,Ye))}else df(N)||(u.push(x),d&&(p=!0))}}let T;if(f.length?(A(),f.length>1?T=Ve(t.helper(Lr),f,l):T=f[0]):c.length&&(T=St(Su(c),l)),g?m|=16:(E&&!s&&(m|=2),y&&!s&&(m|=4),S.length&&(m|=8),_&&(m|=32)),!p&&(m===0||m===32)&&(w||b||u.length>0)&&(m|=512),!t.inSSR&&T)switch(T.type){case 15:let O=-1,x=-1,N=!1;for(let G=0;G<T.properties.length;G++){const te=T.properties[G].key;dt(te)?te.content==="class"?O=G:te.content==="style"&&(x=G):te.isHandlerKey||(N=!0)}const I=T.properties[O],j=T.properties[x];N?T=Ve(t.helper(wi),[T]):(I&&!dt(I.value)&&(I.value=Ve(t.helper(Ha),[I.value])),j&&(y||j.value.type===4&&j.value.content.trim()[0]==="["||j.value.type===17)&&(j.value=Ve(t.helper(Ua),[j.value])));break;case 14:break;default:T=Ve(t.helper(wi),[Ve(t.helper(Di),[T])]);break}return{props:T,directives:u,patchFlag:m,dynamicPropNames:S,shouldUseBlock:p}}function Su(e){const t=new Map,n=[];for(let s=0;s<e.length;s++){const i=e[s];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}const r=i.key.content,o=t.get(r);o?(r==="style"||r==="class"||nn(r))&&M0(o,i):(t.set(r,i),n.push(i))}return n}function M0(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Vi([e.value,t.value],e.loc)}function $0(e,t){const n=[],s=Bp.get(e);s?n.push(t.helperString(s)):(t.helper(Da),t.directives.add(e.name),n.push(Ti(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const r=oe("true",!1,i);n.push(St(e.modifiers.map(o=>ke(o,r)),i))}return Vi(n,e.loc)}function F0(e){let t="[";for(let n=0,s=e.length;n<s;n++)t+=JSON.stringify(e[n]),n<s-1&&(t+=", ");return t+"]"}function xl(e){return e==="component"||e==="Component"}const L0=(e,t)=>{if(Hr(e)){const{children:n,loc:s}=e,{slotName:i,slotProps:r}=D0(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let l=2;r&&(o[2]=r,l=3),n.length&&(o[3]=Is([],n,!1,!1,s),l=4),t.scopeId&&!t.slotted&&(l=5),o.splice(l),e.codegenNode=Ve(t.helper(bp),o,s)}};function D0(e,t){let n='"default"',s;const i=[];for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===6)o.value&&(o.name==="name"?n=JSON.stringify(o.value.content):(o.name=Ie(o.name),i.push(o)));else if(o.name==="bind"&&wn(o.arg,"name")){if(o.exp)n=o.exp;else if(o.arg&&o.arg.type===4){const l=Ie(o.arg.content);n=o.exp=oe(l,!1,o.arg.loc)}}else o.name==="bind"&&o.arg&&dt(o.arg)&&(o.arg.content=Ie(o.arg.content)),i.push(o)}if(i.length>0){const{props:r,directives:o}=Hp(e,t,i,!1,!1);s=r,o.length&&t.onError(we(36,o[0].loc))}return{slotName:n,slotProps:s}}const V0=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Up=(e,t,n,s)=>{const{loc:i,modifiers:r,arg:o}=e;!e.exp&&!r.length&&n.onError(we(35,i));let l;if(o.type===4)if(o.isStatic){let u=o.content;u.startsWith("vnode")&&n.onError(we(51,o.loc)),u.startsWith("vue:")&&(u=`vnode-${u.slice(4)}`);const d=t.tagType!==0||u.startsWith("vnode")||!/[A-Z]/.test(u)?Dt(Ie(u)):`on:${u}`;l=oe(d,!0,o.loc)}else l=Nt([`${n.helperString(_l)}(`,o,")"]);else l=o,l.children.unshift(`${n.helperString(_l)}(`),l.children.push(")");let a=e.exp;a&&!a.content.trim()&&(a=void 0);let c=n.cacheHandlers&&!a&&!n.inVOnce;if(a){const u=Cp(a.content),d=!(u||V0.test(a.content)),p=a.content.includes(";");Gn(a,n,!1,p),(d||c&&u)&&(a=Nt([`${d?"$event":"(...args)"} => ${p?"{":"("}`,a,p?"}":")"]))}let f={props:[ke(l,a||oe("() => {}",!1,i))]};return s&&(f=s(f)),c&&(f.props[0].value=n.cache(f.props[0].value)),f.props.forEach(u=>u.key.isHandlerKey=!0),f},j0=(e,t,n)=>{const{modifiers:s,loc:i}=e,r=e.arg;let{exp:o}=e;if(o&&o.type===4&&!o.content.trim()&&(o=void 0),!o){if(r.type!==4||!r.isStatic)return n.onError(we(52,r.loc)),{props:[ke(r,oe("",!0,i))]};const l=Ie(r.content);o=e.exp=oe(l,!1,r.loc)}return r.type!==4?(r.children.unshift("("),r.children.push(') || ""')):r.isStatic||(r.content=`${r.content} || ""`),s.includes("camel")&&(r.type===4?r.isStatic?r.content=Ie(r.content):r.content=`${n.helperString(bl)}(${r.content})`:(r.children.unshift(`${n.helperString(bl)}(`),r.children.push(")"))),n.inSSR||(s.includes("prop")&&wu(r,"."),s.includes("attr")&&wu(r,"^")),{props:[ke(r,o)]}},wu=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},B0=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let s,i=!1;for(let r=0;r<n.length;r++){const o=n[r];if(Mo(o)){i=!0;for(let l=r+1;l<n.length;l++){const a=n[l];if(Mo(a))s||(s=n[r]=Nt([o],o.loc)),s.children.push(" + ",a),n.splice(l,1),l--;else{s=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(r=>r.type===7&&!t.directiveTransforms[r.name])&&e.tag!=="template")))for(let r=0;r<n.length;r++){const o=n[r];if(Mo(o)||o.type===8){const l=[];(o.type!==2||o.content!==" ")&&l.push(o),!t.ssr&&wt(o,t)===0&&l.push(`1 /* ${jt[1]} */`),n[r]={type:12,content:o,loc:o.loc,codegenNode:Ve(t.helper($a),l)}}}}},Eu=new WeakSet,H0=(e,t)=>{if(e.type===1&&_t(e,"once",!0))return Eu.has(e)||t.inVOnce||t.inSSR?void 0:(Eu.add(e),t.inVOnce=!0,t.helper(Dr),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},Kp=(e,t,n)=>{const{exp:s,arg:i}=e;if(!s)return n.onError(we(41,e.loc)),rr();const r=s.loc.source,o=s.type===4?s.content:r,l=n.bindingMetadata[r];if(l==="props"||l==="props-aliased")return n.onError(we(44,s.loc)),rr();if(!o.trim()||!Cp(o)&&!!1)return n.onError(we(42,s.loc)),rr();const c=i||oe("modelValue",!0),f=i?dt(i)?`onUpdate:${Ie(i.content)}`:Nt(['"onUpdate:" + ',i]):"onUpdate:modelValue";let u;const d=n.isTS?"($event: any)":"$event";u=Nt([`${d} => ((`,s,") = $event)"]);const p=[ke(c,e.exp),ke(f,u)];if(e.modifiers.length&&t.tagType===1){const m=e.modifiers.map(E=>(Ya(E)?E:JSON.stringify(E))+": true").join(", "),w=i?dt(i)?`${i.content}Modifiers`:Nt([i,' + "Modifiers"']):"modelModifiers";p.push(ke(w,oe(`{ ${m} }`,!1,e.loc,2)))}return rr(p)};function rr(e=[]){return{props:e}}const U0=/[\w).+\-_$\]]/,K0=(e,t)=>{In("COMPILER_FILTERS",t)&&(e.type===5&&qr(e.content,t),e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&qr(n.exp,t)}))};function qr(e,t){if(e.type===4)Cu(e,t);else for(let n=0;n<e.children.length;n++){const s=e.children[n];typeof s=="object"&&(s.type===4?Cu(s,t):s.type===8?qr(e,t):s.type===5&&qr(s.content,t))}}function Cu(e,t){const n=e.content;let s=!1,i=!1,r=!1,o=!1,l=0,a=0,c=0,f=0,u,d,p,m,w=[];for(p=0;p<n.length;p++)if(d=u,u=n.charCodeAt(p),s)u===39&&d!==92&&(s=!1);else if(i)u===34&&d!==92&&(i=!1);else if(r)u===96&&d!==92&&(r=!1);else if(o)u===47&&d!==92&&(o=!1);else if(u===124&&n.charCodeAt(p+1)!==124&&n.charCodeAt(p-1)!==124&&!l&&!a&&!c)m===void 0?(f=p+1,m=n.slice(0,p).trim()):E();else{switch(u){case 34:i=!0;break;case 39:s=!0;break;case 96:r=!0;break;case 40:c++;break;case 41:c--;break;case 91:a++;break;case 93:a--;break;case 123:l++;break;case 125:l--;break}if(u===47){let y=p-1,_;for(;y>=0&&(_=n.charAt(y),_===" ");y--);(!_||!U0.test(_))&&(o=!0)}}m===void 0?m=n.slice(0,p).trim():f!==0&&E();function E(){w.push(n.slice(f,p).trim()),f=p+1}if(w.length){for(jr("COMPILER_FILTERS",t,e.loc),p=0;p<w.length;p++)m=q0(m,w[p],t);e.content=m}}function q0(e,t,n){n.helper(Va);const s=t.indexOf("(");if(s<0)return n.filters.add(t),`${Ti(t,"filter")}(${e})`;{const i=t.slice(0,s),r=t.slice(s+1);return n.filters.add(i),`${Ti(i,"filter")}(${e}${r!==")"?","+r:r}`}}const Tu=new WeakSet,W0=(e,t)=>{if(e.type===1){const n=_t(e,"memo");return!n||Tu.has(e)?void 0:(Tu.add(e),()=>{const s=e.codegenNode||t.currentNode.codegenNode;s&&s.type===13&&(e.tagType!==1&&za(s,t),e.codegenNode=Ve(t.helper(Wa),[n.exp,Is(void 0,s),"_cache",String(t.cached++)]))})}};function z0(e){return[[H0,w0,W0,x0,K0,S0,L0,k0,R0,B0],{on:Up,bind:j0,model:Kp}]}function G0(e,t={}){const n=t.onError||Ga,s=t.mode==="module";t.prefixIdentifiers===!0?n(we(47)):s&&n(we(48));const i=!1;t.cacheHandlers&&n(we(49)),t.scopeId&&!s&&n(we(50));const r=ce({},t,{prefixIdentifiers:i}),o=ee(e)?Yb(e,r):e,[l,a]=z0();return Zb(o,ce({},r,{nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:ce({},a,t.directiveTransforms||{})})),s0(o,r)}const Y0=()=>({props:[]});/**
* @vue/compiler-dom v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const qp=Symbol("vModelRadio"),Wp=Symbol("vModelCheckbox"),zp=Symbol("vModelText"),Gp=Symbol("vModelSelect"),Ol=Symbol("vModelDynamic"),Yp=Symbol("vOnModifiersGuard"),Jp=Symbol("vOnKeysGuard"),Xp=Symbol("vShow"),Xa=Symbol("Transition"),Qp=Symbol("TransitionGroup");wb({[qp]:"vModelRadio",[Wp]:"vModelCheckbox",[zp]:"vModelText",[Gp]:"vModelSelect",[Ol]:"vModelDynamic",[Yp]:"withModifiers",[Jp]:"withKeys",[Xp]:"vShow",[Xa]:"Transition",[Qp]:"TransitionGroup"});let ds;function J0(e,t=!1){return ds||(ds=document.createElement("div")),t?(ds.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,ds.children[0].getAttribute("foo")):(ds.innerHTML=e,ds.textContent)}const X0={parseMode:"html",isVoidTag:Am,isNativeTag:e=>Gl(e)||hf(e)||mf(e),isPreTag:e=>e==="pre",decodeEntities:J0,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return Xa;if(e==="TransitionGroup"||e==="transition-group")return Qp},getNamespace(e,t,n){let s=t?t.ns:n;if(t&&s===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(s=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(s=0);else t&&s===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(s=0);if(s===0){if(e==="svg")return 1;if(e==="math")return 2}return s}},Q0=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:oe("style",!0,t.loc),exp:Z0(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Z0=(e,t)=>{const n=pf(e);return oe(JSON.stringify(n),!1,t,3)};function It(e,t){return we(e,t,e_)}const e_={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},t_=(e,t,n)=>{const{exp:s,loc:i}=e;return s||n.onError(It(53,i)),t.children.length&&(n.onError(It(54,i)),t.children.length=0),{props:[ke(oe("innerHTML",!0,i),s||oe("",!0))]}},n_=(e,t,n)=>{const{exp:s,loc:i}=e;return s||n.onError(It(55,i)),t.children.length&&(n.onError(It(56,i)),t.children.length=0),{props:[ke(oe("textContent",!0),s?wt(s,n)>0?s:Ve(n.helperString(mo),[s],i):oe("",!0))]}},s_=(e,t,n)=>{const s=Kp(e,t,n);if(!s.props.length||t.tagType===1)return s;e.arg&&n.onError(It(58,e.arg.loc));function i(){const l=_t(t,"bind");l&&wn(l.arg,"value")&&n.onError(It(60,l.loc))}const{tag:r}=t,o=n.isCustomElement(r);if(r==="input"||r==="textarea"||r==="select"||o){let l=zp,a=!1;if(r==="input"||o){const c=Ci(t,"type");if(c){if(c.type===7)l=Ol;else if(c.value)switch(c.value.content){case"radio":l=qp;break;case"checkbox":l=Wp;break;case"file":a=!0,n.onError(It(59,e.loc));break;default:i();break}}else Mb(t)?l=Ol:i()}else r==="select"?l=Gp:i();a||(s.needRuntime=n.helper(l))}else n.onError(It(57,e.loc));return s.props=s.props.filter(l=>!(l.key.type===4&&l.key.content==="modelValue")),s},i_=Ue("passive,once,capture"),r_=Ue("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),o_=Ue("left,right"),Zp=Ue("onkeyup,onkeydown,onkeypress",!0),l_=(e,t,n,s)=>{const i=[],r=[],o=[];for(let l=0;l<t.length;l++){const a=t[l];a==="native"&&Ps("COMPILER_V_ON_NATIVE",n,s)||i_(a)?o.push(a):o_(a)?dt(e)?Zp(e.content)?i.push(a):r.push(a):(i.push(a),r.push(a)):r_(a)?r.push(a):i.push(a)}return{keyModifiers:i,nonKeyModifiers:r,eventOptionModifiers:o}},xu=(e,t)=>dt(e)&&e.content.toLowerCase()==="onclick"?oe(t,!0):e.type!==4?Nt(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,a_=(e,t,n)=>Up(e,t,n,s=>{const{modifiers:i}=e;if(!i.length)return s;let{key:r,value:o}=s.props[0];const{keyModifiers:l,nonKeyModifiers:a,eventOptionModifiers:c}=l_(r,i,n,e.loc);if(a.includes("right")&&(r=xu(r,"onContextmenu")),a.includes("middle")&&(r=xu(r,"onMouseup")),a.length&&(o=Ve(n.helper(Yp),[o,JSON.stringify(a)])),l.length&&(!dt(r)||Zp(r.content))&&(o=Ve(n.helper(Jp),[o,JSON.stringify(l)])),c.length){const f=c.map(Ut).join("");r=dt(r)?oe(`${r.content}${f}`,!0):Nt(["(",r,`) + "${f}"`])}return{props:[ke(r,o)]}}),c_=(e,t,n)=>{const{exp:s,loc:i}=e;return s||n.onError(It(61,i)),{props:[],needRuntime:n.helper(Xp)}},u_=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===Xa)return()=>{if(!e.children.length)return;eh(e)&&t.onError(It(62,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}));const s=e.children[0];if(s.type===1)for(const i of s.props)i.type===7&&i.name==="show"&&e.props.push({type:6,name:"persisted",nameLoc:e.loc,value:void 0,loc:e.loc})}};function eh(e){const t=e.children=e.children.filter(s=>s.type!==3&&!(s.type===2&&!s.content.trim())),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(eh)}const f_=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(t.onError(It(63,e.loc)),t.removeNode())},d_=[Q0,u_],p_={cloak:Y0,html:t_,text:n_,model:s_,on:a_,show:c_};function h_(e,t={}){return G0(e,ce({},X0,t,{nodeTransforms:[f_,...d_,...t.nodeTransforms||[]],directiveTransforms:ce({},p_,t.directiveTransforms||{}),transformHoist:null}))}/**
* vue v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function m_(){qd()}m_();const Ou=new WeakMap;function g_(e){let t=Ou.get(e??me);return t||(t=Object.create(null),Ou.set(e??me,t)),t}function y_(e,t){if(!ee(e))if(e.nodeType)e=e.innerHTML;else return Be("invalid template option: ",e),Me;const n=e,s=g_(t),i=s[n];if(i)return i;if(e[0]==="#"){const c=document.querySelector(e);c||Be(`Template element not found or is empty: ${e}`),e=c?c.innerHTML:""}const r=ce({hoistStatic:!0,onError:l,onWarn:c=>l(c,!0)},t);!r.isCustomElement&&typeof customElements<"u"&&(r.isCustomElement=c=>!!customElements.get(c));const{code:o}=h_(e,r);function l(c,f=!1){const u=f?c.message:`Template compilation error: ${c.message}`,d=c.loc&&vm(e,c.loc.start.offset,c.loc.end.offset);Be(d?`${u}
${d}`:u)}const a=new Function("Vue",o)(gb);return a._rc=!0,s[n]=a}Bd(y_);function v_(){return th().__VUE_DEVTOOLS_GLOBAL_HOOK__}function th(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const b_=typeof Proxy=="function",__="devtools-plugin:setup",S_="plugin:settings:set";let ps,Al;function w_(){var e;return ps!==void 0||(typeof window<"u"&&window.performance?(ps=!0,Al=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(ps=!0,Al=globalThis.perf_hooks.performance):ps=!1),ps}function E_(){return w_()?Al.now():Date.now()}class C_{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const s={};if(t.settings)for(const o in t.settings){const l=t.settings[o];s[o]=l.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},s);try{const o=localStorage.getItem(i),l=JSON.parse(o);Object.assign(r,l)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(i,JSON.stringify(o))}catch{}r=o},now(){return E_()}},n&&n.on(S_,(o,l)=>{o===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(o,l)=>this.target?this.target.on[l]:(...a)=>{this.onQueue.push({method:l,args:a})}}),this.proxiedTarget=new Proxy({},{get:(o,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...a)=>(this.targetQueue.push({method:l,args:a,resolve:()=>{}}),this.fallbacks[l](...a)):(...a)=>new Promise(c=>{this.targetQueue.push({method:l,args:a,resolve:c})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function T_(e,t){const n=e,s=th(),i=v_(),r=b_&&n.enableEarlyProxy;if(i&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))i.emit(__,e,t);else{const o=r?new C_(n,i):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
* vue-router v4.3.0
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/const Zt=typeof document<"u";function x_(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const be=Object.assign;function Lo(e,t){const n={};for(const s in t){const i=t[s];n[s]=gt(i)?i.map(e):e(i)}return n}const oi=()=>{},gt=Array.isArray;function ve(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const nh=/#/g,O_=/&/g,A_=/\//g,R_=/=/g,I_=/\?/g,sh=/\+/g,N_=/%5B/g,k_=/%5D/g,ih=/%5E/g,P_=/%60/g,rh=/%7B/g,M_=/%7C/g,oh=/%7D/g,$_=/%20/g;function Qa(e){return encodeURI(""+e).replace(M_,"|").replace(N_,"[").replace(k_,"]")}function F_(e){return Qa(e).replace(rh,"{").replace(oh,"}").replace(ih,"^")}function Rl(e){return Qa(e).replace(sh,"%2B").replace($_,"+").replace(nh,"%23").replace(O_,"%26").replace(P_,"`").replace(rh,"{").replace(oh,"}").replace(ih,"^")}function L_(e){return Rl(e).replace(R_,"%3D")}function D_(e){return Qa(e).replace(nh,"%23").replace(I_,"%3F")}function V_(e){return e==null?"":D_(e).replace(A_,"%2F")}function Ms(e){try{return decodeURIComponent(""+e)}catch{ve(`Error decoding "${e}". Using original value`)}return""+e}const j_=/\/$/,B_=e=>e.replace(j_,"");function Do(e,t,n="/"){let s,i={},r="",o="";const l=t.indexOf("#");let a=t.indexOf("?");return l<a&&l>=0&&(a=-1),a>-1&&(s=t.slice(0,a),r=t.slice(a+1,l>-1?l:t.length),i=e(r)),l>-1&&(s=s||t.slice(0,l),o=t.slice(l,t.length)),s=K_(s??t,n),{fullPath:s+(r&&"?")+r+o,path:s,query:i,hash:Ms(o)}}function H_(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Au(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ru(e,t,n){const s=t.matched.length-1,i=n.matched.length-1;return s>-1&&s===i&&Mn(t.matched[s],n.matched[i])&&lh(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Mn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function lh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!U_(e[n],t[n]))return!1;return!0}function U_(e,t){return gt(e)?Iu(e,t):gt(t)?Iu(t,e):e===t}function Iu(e,t){return gt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function K_(e,t){if(e.startsWith("/"))return e;if(!t.startsWith("/"))return ve(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),s=e.split("/"),i=s[s.length-1];(i===".."||i===".")&&s.push("");let r=n.length-1,o,l;for(o=0;o<s.length;o++)if(l=s[o],l!==".")if(l==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(o).join("/")}var Oi;(function(e){e.pop="pop",e.push="push"})(Oi||(Oi={}));var li;(function(e){e.back="back",e.forward="forward",e.unknown=""})(li||(li={}));function q_(e){if(!e)if(Zt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),B_(e)}const W_=/^[^#]+#/;function z_(e,t){return e.replace(W_,"#")+t}function G_(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const vo=()=>({left:window.scrollX,top:window.scrollY});function Y_(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#");if(typeof e.el=="string"&&(!s||!document.getElementById(e.el.slice(1))))try{const r=document.querySelector(e.el);if(s&&r){ve(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{ve(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const i=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i){ve(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=G_(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Nu(e,t){return(history.state?history.state.position-t:-1)+e}const Il=new Map;function J_(e,t){Il.set(e,t)}function X_(e){const t=Il.get(e);return Il.delete(e),t}let Q_=()=>location.protocol+"//"+location.host;function ah(e,t){const{pathname:n,search:s,hash:i}=t,r=e.indexOf("#");if(r>-1){let l=i.includes(e.slice(r))?e.slice(r).length:1,a=i.slice(l);return a[0]!=="/"&&(a="/"+a),Au(a,"")}return Au(n,e)+s+i}function Z_(e,t,n,s){let i=[],r=[],o=null;const l=({state:d})=>{const p=ah(e,location),m=n.value,w=t.value;let E=0;if(d){if(n.value=p,t.value=d,o&&o===m){o=null;return}E=w?d.position-w.position:0}else s(p);i.forEach(y=>{y(n.value,m,{delta:E,type:Oi.pop,direction:E?E>0?li.forward:li.back:li.unknown})})};function a(){o=n.value}function c(d){i.push(d);const p=()=>{const m=i.indexOf(d);m>-1&&i.splice(m,1)};return r.push(p),p}function f(){const{history:d}=window;d.state&&d.replaceState(be({},d.state,{scroll:vo()}),"")}function u(){for(const d of r)d();r=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:a,listen:c,destroy:u}}function ku(e,t,n,s=!1,i=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:i?vo():null}}function eS(e){const{history:t,location:n}=window,s={value:ah(e,n)},i={value:t.state};i.value||r(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(a,c,f){const u=e.indexOf("#"),d=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+a:Q_()+e+a;try{t[f?"replaceState":"pushState"](c,"",d),i.value=c}catch(p){ve("Error with push/replace State",p),n[f?"replace":"assign"](d)}}function o(a,c){const f=be({},t.state,ku(i.value.back,a,i.value.forward,!0),c,{position:i.value.position});r(a,f,!0),s.value=a}function l(a,c){const f=be({},i.value,t.state,{forward:a,scroll:vo()});t.state||ve(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
history.replaceState(history.state, '', url)
You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),r(f.current,f,!0);const u=be({},ku(s.value,a,null),{position:f.position+1},c);r(a,u,!1),s.value=a}return{location:s,state:i,push:l,replace:o}}function eC(e){e=q_(e);const t=eS(e),n=Z_(e,t.state,t.location,t.replace);function s(r,o=!0){o||n.pauseListeners(),history.go(r)}const i=be({location:"",base:e,go:s,createHref:z_.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function tS(e){return typeof e=="string"||e&&typeof e=="object"}function ch(e){return typeof e=="string"||typeof e=="symbol"}const dn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},uh=Symbol("navigation failure");var Pu;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Pu||(Pu={}));const nS={1({location:e,currentLocation:t}){return`No match for
${JSON.stringify(e)}${t?`
while being at
`+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${iS(t)}" via a navigation guard.`},4({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},8({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},16({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function $s(e,t){return be(new Error(nS[e](t)),{type:e,[uh]:!0},t)}function zt(e,t){return e instanceof Error&&uh in e&&(t==null||!!(e.type&t))}const sS=["params","query","hash"];function iS(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of sS)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const Mu="[^/]+?",rS={sensitive:!1,strict:!1,start:!0,end:!0},oS=/[.+*?^${}()[\]/\\]/g;function lS(e,t){const n=be({},rS,t),s=[];let i=n.start?"^":"";const r=[];for(const c of e){const f=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let u=0;u<c.length;u++){const d=c[u];let p=40+(n.sensitive?.25:0);if(d.type===0)u||(i+="/"),i+=d.value.replace(oS,"\\$&"),p+=40;else if(d.type===1){const{value:m,repeatable:w,optional:E,regexp:y}=d;r.push({name:m,repeatable:w,optional:E});const _=y||Mu;if(_!==Mu){p+=10;try{new RegExp(`(${_})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${m}" (${_}): `+b.message)}}let g=w?`((?:${_})(?:/(?:${_}))*)`:`(${_})`;u||(g=E&&c.length<2?`(?:/${g})`:"/"+g),E&&(g+="?"),i+=g,p+=20,E&&(p+=-8),w&&(p+=-20),_===".*"&&(p+=-50)}f.push(p)}s.push(f)}if(n.strict&&n.end){const c=s.length-1;s[c][s[c].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const o=new RegExp(i,n.sensitive?"":"i");function l(c){const f=c.match(o),u={};if(!f)return null;for(let d=1;d<f.length;d++){const p=f[d]||"",m=r[d-1];u[m.name]=p&&m.repeatable?p.split("/"):p}return u}function a(c){let f="",u=!1;for(const d of e){(!u||!f.endsWith("/"))&&(f+="/"),u=!1;for(const p of d)if(p.type===0)f+=p.value;else if(p.type===1){const{value:m,repeatable:w,optional:E}=p,y=m in c?c[m]:"";if(gt(y)&&!w)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const _=gt(y)?y.join("/"):y;if(!_)if(E)d.length<2&&(f.endsWith("/")?f=f.slice(0,-1):u=!0);else throw new Error(`Missing required param "${m}"`);f+=_}}return f||"/"}return{re:o,score:s,keys:r,parse:l,stringify:a}}function aS(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function cS(e,t){let n=0;const s=e.score,i=t.score;for(;n<s.length&&n<i.length;){const r=aS(s[n],i[n]);if(r)return r;n++}if(Math.abs(i.length-s.length)===1){if($u(s))return 1;if($u(i))return-1}return i.length-s.length}function $u(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const uS={type:0,value:""},fS=/[a-zA-Z0-9_]/;function dS(e){if(!e)return[[]];if(e==="/")return[[uS]];if(!e.startsWith("/"))throw new Error(`Route paths should start with a "/": "${e}" should be "/${e}".`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,s=n;const i=[];let r;function o(){r&&i.push(r),r=[]}let l=0,a,c="",f="";function u(){c&&(n===0?r.push({type:0,value:c}):n===1||n===2||n===3?(r.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:f,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:a==="/"?(c&&u(),o()):a===":"?(u(),n=1):d();break;case 4:d(),n=s;break;case 1:a==="("?n=2:fS.test(a)?d():(u(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case 2:a===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+a:n=3:f+=a;break;case 3:u(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&l--,f="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),u(),o(),i}function pS(e,t,n){const s=lS(dS(e.path),n);{const r=new Set;for(const o of s.keys)r.has(o.name)&&ve(`Found duplicated params with name "${o.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),r.add(o.name)}const i=be(s,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function hS(e,t){const n=[],s=new Map;t=Du({strict:!1,end:!0,sensitive:!1},t);function i(f){return s.get(f)}function r(f,u,d){const p=!d,m=mS(f);bS(m,u),m.aliasOf=d&&d.record;const w=Du(t,f),E=[m];if("alias"in f){const g=typeof f.alias=="string"?[f.alias]:f.alias;for(const b of g)E.push(be({},m,{components:d?d.record.components:m.components,path:b,aliasOf:d?d.record:m}))}let y,_;for(const g of E){const{path:b}=g;if(u&&b[0]!=="/"){const S=u.record.path,A=S[S.length-1]==="/"?"":"/";g.path=u.record.path+(b&&A+b)}if(g.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(y=pS(g,u,w),u&&b[0]==="/"&&_S(y,u),d?(d.alias.push(y),vS(d,y)):(_=_||y,_!==y&&_.alias.push(y),p&&f.name&&!Lu(y)&&o(f.name)),m.children){const S=m.children;for(let A=0;A<S.length;A++)r(S[A],y,d&&d.children[A])}d=d||y,(y.record.components&&Object.keys(y.record.components).length||y.record.name||y.record.redirect)&&a(y)}return _?()=>{o(_)}:oi}function o(f){if(ch(f)){const u=s.get(f);u&&(s.delete(f),n.splice(n.indexOf(u),1),u.children.forEach(o),u.alias.forEach(o))}else{const u=n.indexOf(f);u>-1&&(n.splice(u,1),f.record.name&&s.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function l(){return n}function a(f){let u=0;for(;u<n.length&&cS(f,n[u])>=0&&(f.record.path!==n[u].record.path||!fh(f,n[u]));)u++;n.splice(u,0,f),f.record.name&&!Lu(f)&&s.set(f.record.name,f)}function c(f,u){let d,p={},m,w;if("name"in f&&f.name){if(d=s.get(f.name),!d)throw $s(1,{location:f});{const _=Object.keys(f.params||{}).filter(g=>!d.keys.find(b=>b.name===g));_.length&&ve(`Discarded invalid param(s) "${_.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}w=d.record.name,p=be(Fu(u.params,d.keys.filter(_=>!_.optional).concat(d.parent?d.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),f.params&&Fu(f.params,d.keys.map(_=>_.name))),m=d.stringify(p)}else if(f.path!=null)m=f.path,m.startsWith("/")||ve(`The Matcher cannot resolve relative paths but received "${m}". Unless you directly called \`matcher.resolve("${m}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),d=n.find(_=>_.re.test(m)),d&&(p=d.parse(m),w=d.record.name);else{if(d=u.name?s.get(u.name):n.find(_=>_.re.test(u.path)),!d)throw $s(1,{location:f,currentLocation:u});w=d.record.name,p=be({},u.params,f.params),m=d.stringify(p)}const E=[];let y=d;for(;y;)E.unshift(y.record),y=y.parent;return{name:w,path:m,params:p,matched:E,meta:yS(E)}}return e.forEach(f=>r(f)),{addRoute:r,resolve:c,removeRoute:o,getRoutes:l,getRecordMatcher:i}}function Fu(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function mS(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:gS(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function gS(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Lu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yS(e){return e.reduce((t,n)=>be(t,n.meta),{})}function Du(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Nl(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function vS(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(Nl.bind(null,n)))return ve(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(Nl.bind(null,n)))return ve(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function bS(e,t){t&&t.record.name&&!e.name&&!e.path&&ve(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function _S(e,t){for(const n of t.keys)if(!e.keys.find(Nl.bind(null,n)))return ve(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function fh(e,t){return t.children.some(n=>n===e||fh(e,n))}function SS(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<s.length;++i){const r=s[i].replace(sh," "),o=r.indexOf("="),l=Ms(o<0?r:r.slice(0,o)),a=o<0?null:Ms(r.slice(o+1));if(l in t){let c=t[l];gt(c)||(c=t[l]=[c]),c.push(a)}else t[l]=a}return t}function Vu(e){let t="";for(let n in e){const s=e[n];if(n=L_(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(gt(s)?s.map(r=>r&&Rl(r)):[s&&Rl(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function wS(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=gt(s)?s.map(i=>i==null?null:""+i):s==null?s:""+s)}return t}const ES=Symbol("router view location matched"),ju=Symbol("router view depth"),bo=Symbol("router"),dh=Symbol("route location"),kl=Symbol("router view location");function zs(){let e=[];function t(s){return e.push(s),()=>{const i=e.indexOf(s);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function bn(e,t,n,s,i,r=o=>o()){const o=s&&(s.enterCallbacks[i]=s.enterCallbacks[i]||[]);return()=>new Promise((l,a)=>{const c=d=>{d===!1?a($s(4,{from:n,to:t})):d instanceof Error?a(d):tS(d)?a($s(2,{from:t,to:d})):(o&&s.enterCallbacks[i]===o&&typeof d=="function"&&o.push(d),l())},f=r(()=>e.call(s&&s.instances[i],t,n,CS(c,t,n)));let u=Promise.resolve(f);if(e.length<3&&(u=u.then(c)),e.length>2){const d=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
${e.toString()}
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof f=="object"&&"then"in f)u=u.then(p=>c._called?p:(ve(d),Promise.reject(new Error("Invalid navigation guard"))));else if(f!==void 0&&!c._called){ve(d),a(new Error("Invalid navigation guard"));return}}u.catch(d=>a(d))})}function CS(e,t,n){let s=0;return function(){s++===1&&ve(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,s===1&&e.apply(null,arguments)}}function Vo(e,t,n,s,i=r=>r()){const r=[];for(const o of e){!o.components&&!o.children.length&&ve(`Record with path "${o.path}" is either missing a "component(s)" or "children" property.`);for(const l in o.components){let a=o.components[l];{if(!a||typeof a!="object"&&typeof a!="function")throw ve(`Component "${l}" in record with path "${o.path}" is not a valid component. Received "${String(a)}".`),new Error("Invalid route component");if("then"in a){ve(`Component "${l}" in record with path "${o.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const c=a;a=()=>c}else a.__asyncLoader&&!a.__warnedDefineAsync&&(a.__warnedDefineAsync=!0,ve(`Component "${l}" in record with path "${o.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(TS(a)){const f=(a.__vccOpts||a)[t];f&&r.push(bn(f,n,s,o,l,i))}else{let c=a();"catch"in c||(ve(`Component "${l}" in record with path "${o.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),c=Promise.resolve(c)),r.push(()=>c.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${o.path}"`));const u=x_(f)?f.default:f;o.components[l]=u;const p=(u.__vccOpts||u)[t];return p&&bn(p,n,s,o,l,i)()}))}}}return r}function TS(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Bu(e){const t=Et(bo),n=Et(dh),s=ae(()=>t.resolve(Ze(e.to))),i=ae(()=>{const{matched:a}=s.value,{length:c}=a,f=a[c-1],u=n.matched;if(!f||!u.length)return-1;const d=u.findIndex(Mn.bind(null,f));if(d>-1)return d;const p=Hu(a[c-2]);return c>1&&Hu(f)===p&&u[u.length-1].path!==p?u.findIndex(Mn.bind(null,a[c-2])):d}),r=ae(()=>i.value>-1&&RS(n.params,s.value.params)),o=ae(()=>i.value>-1&&i.value===n.matched.length-1&&lh(n.params,s.value.params));function l(a={}){return AS(a)?t[Ze(e.replace)?"replace":"push"](Ze(e.to)).catch(oi):Promise.resolve()}if(Zt){const a=Ge();if(a){const c={route:s.value,isActive:r.value,isExactActive:o.value};a.__vrl_devtools=a.__vrl_devtools||[],a.__vrl_devtools.push(c),ya(()=>{c.route=s.value,c.isActive=r.value,c.isExactActive=o.value},{flush:"post"})}}return{route:s,href:ae(()=>s.value.href),isActive:r,isExactActive:o,navigate:l}}const xS=js({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Bu,setup(e,{slots:t}){const n=it(Bu(e)),{options:s}=Et(bo),i=ae(()=>({[Uu(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Uu(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&t.default(n);return e.custom?r:xs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}}),OS=xS;function AS(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function RS(e,t){for(const n in t){const s=t[n],i=e[n];if(typeof s=="string"){if(s!==i)return!1}else if(!gt(i)||i.length!==s.length||s.some((r,o)=>r!==i[o]))return!1}return!0}function Hu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Uu=(e,t,n)=>e??t??n,IS=js({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){kS();const s=Et(kl),i=ae(()=>e.route||s.value),r=Et(ju,0),o=ae(()=>{let c=Ze(r);const{matched:f}=i.value;let u;for(;(u=f[c])&&!u.components;)c++;return c}),l=ae(()=>i.value.matched[o.value]);_s(ju,ae(()=>o.value+1)),_s(ES,l),_s(kl,i);const a=ne();return Ee(()=>[a.value,l.value,e.name],([c,f,u],[d,p,m])=>{f&&(f.instances[u]=c,p&&p!==f&&c&&c===d&&(f.leaveGuards.size||(f.leaveGuards=p.leaveGuards),f.updateGuards.size||(f.updateGuards=p.updateGuards))),c&&f&&(!p||!Mn(f,p)||!d)&&(f.enterCallbacks[u]||[]).forEach(w=>w(c))},{flush:"post"}),()=>{const c=i.value,f=e.name,u=l.value,d=u&&u.components[f];if(!d)return Ku(n.default,{Component:d,route:c});const p=u.props[f],m=p?p===!0?c.params:typeof p=="function"?p(c):p:null,E=xs(d,be({},m,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(u.instances[f]=null)},ref:a}));if(Zt&&E.ref){const y={depth:o.value,name:u.name,path:u.path,meta:u.meta};(gt(E.ref)?E.ref.map(g=>g.i):[E.ref.i]).forEach(g=>{g.__vrv_devtools=y})}return Ku(n.default,{Component:E,route:c})||E}}});function Ku(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const NS=IS;function kS(){const e=Ge(),t=e.parent&&e.parent.type.name,n=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const s=t==="KeepAlive"?"keep-alive":"transition";ve(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
Use slot props instead:
<router-view v-slot="{ Component }">
<${s}>
<component :is="Component" />
</${s}>
</router-view>`)}}function Gs(e,t){const n=be({},e,{matched:e.matched.map(s=>BS(s,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function or(e){return{_custom:{display:e}}}let PS=0;function MS(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const s=PS++;T_({id:"org.vuejs.router"+(s?"."+s:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},i=>{typeof i.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),i.on.inspectComponent((f,u)=>{f.instanceData&&f.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Gs(t.currentRoute.value,"Current Route")})}),i.on.visitComponentTree(({treeNode:f,componentInstance:u})=>{if(u.__vrv_devtools){const d=u.__vrv_devtools;f.tags.push({label:(d.name?`${d.name.toString()}: `:"")+d.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:ph})}gt(u.__vrl_devtools)&&(u.__devtoolsApi=i,u.__vrl_devtools.forEach(d=>{let p=gh,m="";d.isExactActive?(p=mh,m="This is exactly active"):d.isActive&&(p=hh,m="This link is active"),f.tags.push({label:d.route.path,textColor:0,tooltip:m,backgroundColor:p})}))}),Ee(t.currentRoute,()=>{a(),i.notifyComponentUpdate(),i.sendInspectorTree(l),i.sendInspectorState(l)});const r="router:navigations:"+s;i.addTimelineLayer({id:r,label:`Router${s?" "+s:""} Navigations`,color:4237508}),t.onError((f,u)=>{i.addTimelineEvent({layerId:r,event:{title:"Error during Navigation",subtitle:u.fullPath,logType:"error",time:i.now(),data:{error:f},groupId:u.meta.__navigationId}})});let o=0;t.beforeEach((f,u)=>{const d={guard:or("beforeEach"),from:Gs(u,"Current Location during this navigation"),to:Gs(f,"Target location")};Object.defineProperty(f.meta,"__navigationId",{value:o++}),i.addTimelineEvent({layerId:r,event:{time:i.now(),title:"Start of navigation",subtitle:f.fullPath,data:d,groupId:f.meta.__navigationId}})}),t.afterEach((f,u,d)=>{const p={guard:or("afterEach")};d?(p.failure={_custom:{type:Error,readOnly:!0,display:d?d.message:"",tooltip:"Navigation Failure",value:d}},p.status=or("❌")):p.status=or("✅"),p.from=Gs(u,"Current Location during this navigation"),p.to=Gs(f,"Target location"),i.addTimelineEvent({layerId:r,event:{title:"End of navigation",subtitle:f.fullPath,time:i.now(),data:p,logType:d?"warning":"default",groupId:f.meta.__navigationId}})});const l="router-inspector:"+s;i.addInspector({id:l,label:"Routes"+(s?" "+s:""),icon:"book",treeFilterPlaceholder:"Search routes"});function a(){if(!c)return;const f=c;let u=n.getRoutes().filter(d=>!d.parent||!d.parent.record.components);u.forEach(bh),f.filter&&(u=u.filter(d=>Pl(d,f.filter.toLowerCase()))),u.forEach(d=>vh(d,t.currentRoute.value)),f.rootNodes=u.map(yh)}let c;i.on.getInspectorTree(f=>{c=f,f.app===e&&f.inspectorId===l&&a()}),i.on.getInspectorState(f=>{if(f.app===e&&f.inspectorId===l){const d=n.getRoutes().find(p=>p.record.__vd_id===f.nodeId);d&&(f.state={options:FS(d)})}}),i.sendInspectorTree(l),i.sendInspectorState(l)})}function $S(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function FS(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(s=>`${s.name}${$S(s)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(s=>s.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(s=>s.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const ph=15485081,hh=2450411,mh=8702998,LS=2282478,gh=16486972,DS=6710886;function yh(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:LS}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:gh}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:ph}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:mh}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:hh}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:DS});let s=n.__vd_id;return s==null&&(s=String(VS++),n.__vd_id=s),{id:s,label:n.path,tags:t,children:e.children.map(yh)}}let VS=0;const jS=/^\/(.*)\/([a-z]*)$/;function vh(e,t){const n=t.matched.length&&Mn(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(s=>Mn(s,e.record))),e.children.forEach(s=>vh(s,t))}function bh(e){e.__vd_match=!1,e.children.forEach(bh)}function Pl(e,t){const n=String(e.re).match(jS);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(o=>Pl(o,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const i=e.record.path.toLowerCase(),r=Ms(i);return!t.startsWith("/")&&(r.includes(t)||i.includes(t))||r.startsWith(t)||i.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(o=>Pl(o,t))}function BS(e,t){const n={};for(const s in e)t.includes(s)||(n[s]=e[s]);return n}function tC(e){const t=hS(e.routes,e),n=e.parseQuery||SS,s=e.stringifyQuery||Vu,i=e.history;if(!i)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const r=zs(),o=zs(),l=zs(),a=ra(dn);let c=dn;Zt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Lo.bind(null,k=>""+k),u=Lo.bind(null,V_),d=Lo.bind(null,Ms);function p(k,K){let U,Y;return ch(k)?(U=t.getRecordMatcher(k),Y=K):Y=k,t.addRoute(Y,U)}function m(k){const K=t.getRecordMatcher(k);K?t.removeRoute(K):ve(`Cannot remove non-existent route "${String(k)}"`)}function w(){return t.getRoutes().map(k=>k.record)}function E(k){return!!t.getRecordMatcher(k)}function y(k,K){if(K=be({},K||a.value),typeof k=="string"){const h=Do(n,k,K.path),v=t.resolve({path:h.path},K),R=i.createHref(h.fullPath);return R.startsWith("//")?ve(`Location "${k}" resolved to "${R}". A resolved location cannot start with multiple slashes.`):v.matched.length||ve(`No match found for location with path "${k}"`),be(h,v,{params:d(v.params),hash:Ms(h.hash),redirectedFrom:void 0,href:R})}let U;if(k.path!=null)"params"in k&&!("name"in k)&&Object.keys(k.params).length&&ve(`Path "${k.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),U=be({},k,{path:Do(n,k.path,K.path).path});else{const h=be({},k.params);for(const v in h)h[v]==null&&delete h[v];U=be({},k,{params:u(h)}),K.params=u(K.params)}const Y=t.resolve(U,K),ue=k.hash||"";ue&&!ue.startsWith("#")&&ve(`A \`hash\` should always start with the character "#". Replace "${ue}" with "#${ue}".`),Y.params=f(d(Y.params));const Oe=H_(s,be({},k,{hash:F_(ue),path:Y.path})),le=i.createHref(Oe);return le.startsWith("//")?ve(`Location "${k}" resolved to "${le}". A resolved location cannot start with multiple slashes.`):Y.matched.length||ve(`No match found for location with path "${k.path!=null?k.path:k}"`),be({fullPath:Oe,hash:ue,query:s===Vu?wS(k.query):k.query||{}},Y,{redirectedFrom:void 0,href:le})}function _(k){return typeof k=="string"?Do(n,k,a.value.path):be({},k)}function g(k,K){if(c!==k)return $s(8,{from:K,to:k})}function b(k){return C(k)}function S(k){return b(be(_(k),{replace:!0}))}function A(k){const K=k.matched[k.matched.length-1];if(K&&K.redirect){const{redirect:U}=K;let Y=typeof U=="function"?U(k):U;if(typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=_(Y):{path:Y},Y.params={}),Y.path==null&&!("name"in Y))throw ve(`Invalid redirect found:
${JSON.stringify(Y,null,2)}
when navigating to "${k.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return be({query:k.query,hash:k.hash,params:Y.path!=null?{}:k.params},Y)}}function C(k,K){const U=c=y(k),Y=a.value,ue=k.state,Oe=k.force,le=k.replace===!0,h=A(U);if(h)return C(be(_(h),{state:typeof h=="object"?be({},ue,h.state):ue,force:Oe,replace:le}),K||U);const v=U;v.redirectedFrom=K;let R;return!Oe&&Ru(s,Y,U)&&(R=$s(16,{to:v,from:Y}),rt(Y,Y,!0,!1)),(R?Promise.resolve(R):x(v,Y)).catch(P=>zt(P)?zt(P,2)?P:Ye(P):W(P,v,Y)).then(P=>{if(P){if(zt(P,2))return Ru(s,y(P.to),v)&&K&&(K._count=K._count?K._count+1:1)>30?(ve(`Detected a possibly infinite redirection in a navigation guard when going from "${Y.fullPath}" to "${v.fullPath}". Aborting to avoid a Stack Overflow.
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):C(be({replace:le},_(P.to),{state:typeof P.to=="object"?be({},ue,P.to.state):ue,force:Oe}),K||v)}else P=I(v,Y,!0,le,ue);return N(v,Y,P),P})}function T(k,K){const U=g(k,K);return U?Promise.reject(U):Promise.resolve()}function O(k){const K=ln.values().next().value;return K&&typeof K.runWithContext=="function"?K.runWithContext(k):k()}function x(k,K){let U;const[Y,ue,Oe]=HS(k,K);U=Vo(Y.reverse(),"beforeRouteLeave",k,K);for(const h of Y)h.leaveGuards.forEach(v=>{U.push(bn(v,k,K))});const le=T.bind(null,k,K);return U.push(le),an(U).then(()=>{U=[];for(const h of r.list())U.push(bn(h,k,K));return U.push(le),an(U)}).then(()=>{U=Vo(ue,"beforeRouteUpdate",k,K);for(const h of ue)h.updateGuards.forEach(v=>{U.push(bn(v,k,K))});return U.push(le),an(U)}).then(()=>{U=[];for(const h of Oe)if(h.beforeEnter)if(gt(h.beforeEnter))for(const v of h.beforeEnter)U.push(bn(v,k,K));else U.push(bn(h.beforeEnter,k,K));return U.push(le),an(U)}).then(()=>(k.matched.forEach(h=>h.enterCallbacks={}),U=Vo(Oe,"beforeRouteEnter",k,K,O),U.push(le),an(U))).then(()=>{U=[];for(const h of o.list())U.push(bn(h,k,K));return U.push(le),an(U)}).catch(h=>zt(h,8)?h:Promise.reject(h))}function N(k,K,U){l.list().forEach(Y=>O(()=>Y(k,K,U)))}function I(k,K,U,Y,ue){const Oe=g(k,K);if(Oe)return Oe;const le=K===dn,h=Zt?history.state:{};U&&(Y||le?i.replace(k.fullPath,be({scroll:le&&h&&h.scroll},ue)):i.push(k.fullPath,ue)),a.value=k,rt(k,K,U,le),Ye()}let j;function G(){j||(j=i.listen((k,K,U)=>{if(!Wi.listening)return;const Y=y(k),ue=A(Y);if(ue){C(be(ue,{replace:!0}),Y).catch(oi);return}c=Y;const Oe=a.value;Zt&&J_(Nu(Oe.fullPath,U.delta),vo()),x(Y,Oe).catch(le=>zt(le,12)?le:zt(le,2)?(C(le.to,Y).then(h=>{zt(h,20)&&!U.delta&&U.type===Oi.pop&&i.go(-1,!1)}).catch(oi),Promise.reject()):(U.delta&&i.go(-U.delta,!1),W(le,Y,Oe))).then(le=>{le=le||I(Y,Oe,!1),le&&(U.delta&&!zt(le,8)?i.go(-U.delta,!1):U.type===Oi.pop&&zt(le,20)&&i.go(-1,!1)),N(Y,Oe,le)}).catch(oi)}))}let te=zs(),z=zs(),J;function W(k,K,U){Ye(k);const Y=z.list();return Y.length?Y.forEach(ue=>ue(k,K,U)):(ve("uncaught error during route navigation:"),console.error(k)),Promise.reject(k)}function Fe(){return J&&a.value!==dn?Promise.resolve():new Promise((k,K)=>{te.add([k,K])})}function Ye(k){return J||(J=!k,G(),te.list().forEach(([K,U])=>k?U(k):K()),te.reset()),k}function rt(k,K,U,Y){const{scrollBehavior:ue}=e;if(!Zt||!ue)return Promise.resolve();const Oe=!U&&X_(Nu(k.fullPath,0))||(Y||!U)&&history.state&&history.state.scroll||null;return Dn().then(()=>ue(k,K,Oe)).then(le=>le&&Y_(le)).catch(le=>W(le,k,K))}const Mt=k=>i.go(k);let vt;const ln=new Set,Wi={currentRoute:a,listening:!0,addRoute:p,removeRoute:m,hasRoute:E,getRoutes:w,resolve:y,options:e,push:b,replace:S,go:Mt,back:()=>Mt(-1),forward:()=>Mt(1),beforeEach:r.add,beforeResolve:o.add,afterEach:l.add,onError:z.add,isReady:Fe,install(k){const K=this;k.component("RouterLink",OS),k.component("RouterView",NS),k.config.globalProperties.$router=K,Object.defineProperty(k.config.globalProperties,"$route",{enumerable:!0,get:()=>Ze(a)}),Zt&&!vt&&a.value===dn&&(vt=!0,b(i.location).catch(ue=>{ve("Unexpected error when starting the router:",ue)}));const U={};for(const ue in dn)Object.defineProperty(U,ue,{get:()=>a.value[ue],enumerable:!0});k.provide(bo,K),k.provide(dh,ta(U)),k.provide(kl,a);const Y=k.unmount;ln.add(k),k.unmount=function(){ln.delete(k),ln.size<1&&(c=dn,j&&j(),j=null,a.value=dn,vt=!1,J=!1),Y()},Zt&&MS(k,K,t)}};function an(k){return k.reduce((K,U)=>K.then(()=>O(U)),Promise.resolve())}return Wi}function HS(e,t){const n=[],s=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let o=0;o<r;o++){const l=t.matched[o];l&&(e.matched.find(c=>Mn(c,l))?s.push(l):n.push(l));const a=e.matched[o];a&&(t.matched.find(c=>Mn(c,a))||i.push(a))}return[n,s,i]}function nC(){return Et(bo)}function qt(e){return Xl()?(_f(e),!0):!1}const ws=new WeakMap,sC=(e,t)=>{var n;const s=(n=Ge())==null?void 0:n.proxy;if(s==null)throw new Error("provideLocal must be called in setup");ws.has(s)||ws.set(s,Object.create(null));const i=ws.get(s);i[e]=t,_s(e,t)},iC=(...e)=>{var t;const n=e[0],s=(t=Ge())==null?void 0:t.proxy;if(s==null)throw new Error("injectLocal must be called in setup");return ws.has(s)&&n in ws.get(s)?ws.get(s)[n]:Et(...e)};function rC(e){let t=0,n,s;const i=()=>{t-=1,s&&t<=0&&(s.stop(),n=void 0,s=void 0)};return(...r)=>(t+=1,n||(s=vf(!0),n=s.run(()=>e(...r))),qt(i),n)}function Se(e){return typeof e=="function"?e():Ze(e)}function oC(e){if(!Te(e))return it(e);const t=new Proxy({},{get(n,s,i){return Ze(Reflect.get(e.value,s,i))},set(n,s,i){return Te(e.value[s])&&!Te(i)?e.value[s].value=i:e.value[s]=i,!0},deleteProperty(n,s){return Reflect.deleteProperty(e.value,s)},has(n,s){return Reflect.has(e.value,s)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return it(t)}const Fs=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const US=e=>typeof e<"u",KS=e=>e!=null,qS=Object.prototype.toString,Wr=e=>qS.call(e)==="[object Object]",qu=()=>+Date.now(),tn=()=>{},WS=zS();function zS(){var e,t;return Fs&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function GS(e,t){function n(...s){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(i).catch(r)})}return n}const _h=e=>e();function YS(e=_h){const t=ne(!0);function n(){t.value=!1}function s(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:Rt(t),pause:n,resume:s,eventFilter:i}}function JS(e,t){var n;if(typeof e=="number")return e+t;const s=((n=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:n[0])||"",i=e.slice(s.length),r=Number.parseFloat(s)+t;return Number.isNaN(r)?e:r+i}function lC(e,t,n=!1){return Object.fromEntries(Object.entries(e).filter(([s,i])=>(!n||i!==void 0)&&!t.includes(s)))}function Sh(e){return e||Ge()}function XS(...e){if(e.length!==1)return Df(...e);const t=e[0];return typeof t=="function"?Rt(to(()=>({get:t,set:tn}))):ne(t)}function QS(e,t,n={}){const{eventFilter:s=_h,...i}=n;return Ee(e,GS(s,t),i)}function ZS(e,t,n={}){const{eventFilter:s,...i}=n,{eventFilter:r,pause:o,resume:l,isActive:a}=YS(s);return{stop:QS(e,t,{...i,eventFilter:r}),pause:o,resume:l,isActive:a}}function ew(e,t={}){if(!Te(e))return Lf(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const s in e.value)n[s]=to(()=>({get(){return e.value[s]},set(i){var r;if((r=Se(t.replaceRef))!=null?r:!0)if(Array.isArray(e.value)){const l=[...e.value];l[s]=i,e.value=l}else{const l={...e.value,[s]:i};Object.setPrototypeOf(l,Object.getPrototypeOf(e.value)),e.value=l}else e.value[s]=i}}));return n}function Bi(e,t=!0,n){Sh()?cs(e,n):t?e():Dn(e)}function tw(e,t){Sh(t)&&$i(e,t)}function nw(e,t=1e3,n={}){const{immediate:s=!0,immediateCallback:i=!1}=n;let r=null;const o=ne(!1);function l(){r&&(clearInterval(r),r=null)}function a(){o.value=!1,l()}function c(){const f=Se(t);f<=0||(o.value=!0,i&&e(),l(),r=setInterval(e,f))}if(s&&Fs&&c(),Te(t)||typeof t=="function"){const f=Ee(t,()=>{o.value&&Fs&&c()});qt(f)}return qt(a),{isActive:o,pause:a,resume:c}}function aC(e=!1,t={}){const{truthyValue:n=!0,falsyValue:s=!1}=t,i=Te(e),r=ne(e);function o(l){if(arguments.length)return r.value=l,r.value;{const a=Se(n);return r.value=r.value===a?Se(s):a,r.value}}return i?o:[r,o]}function ze(e){var t;const n=Se(e);return(t=n==null?void 0:n.$el)!=null?t:n}const He=Fs?window:void 0,wh=Fs?window.document:void 0;function fe(...e){let t,n,s,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,i]=e,t=He):[t,n,s,i]=e,!t)return tn;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const r=[],o=()=>{r.forEach(f=>f()),r.length=0},l=(f,u,d,p)=>(f.addEventListener(u,d,p),()=>f.removeEventListener(u,d,p)),a=Ee(()=>[ze(t),Se(i)],([f,u])=>{if(o(),!f)return;const d=Wr(u)?{...u}:u;r.push(...n.flatMap(p=>s.map(m=>l(f,p,m,d))))},{immediate:!0,flush:"post"}),c=()=>{a(),o()};return qt(c),c}let Wu=!1;function cC(e,t,n={}){const{window:s=He,ignore:i=[],capture:r=!0,detectIframe:o=!1}=n;if(!s)return tn;WS&&!Wu&&(Wu=!0,Array.from(s.document.body.children).forEach(d=>d.addEventListener("click",tn)),s.document.documentElement.addEventListener("click",tn));let l=!0;const a=d=>i.some(p=>{if(typeof p=="string")return Array.from(s.document.querySelectorAll(p)).some(m=>m===d.target||d.composedPath().includes(m));{const m=ze(p);return m&&(d.target===m||d.composedPath().includes(m))}}),f=[fe(s,"click",d=>{const p=ze(e);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(l=!a(d)),!l){l=!0;return}t(d)}},{passive:!0,capture:r}),fe(s,"pointerdown",d=>{const p=ze(e);l=!a(d)&&!!(p&&!d.composedPath().includes(p))},{passive:!0}),o&&fe(s,"blur",d=>{setTimeout(()=>{var p;const m=ze(e);((p=s.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(m!=null&&m.contains(s.document.activeElement))&&t(d)},0)})].filter(Boolean);return()=>f.forEach(d=>d())}function sw(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function uC(...e){let t,n,s={};e.length===3?(t=e[0],n=e[1],s=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],s=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=He,eventName:r="keydown",passive:o=!1,dedupe:l=!1}=s,a=sw(t);return fe(i,r,f=>{f.repeat&&Se(l)||a(f)&&n(f)},o)}function fC(e={}){var t;const{window:n=He,deep:s=!0}=e,i=(t=e.document)!=null?t:n==null?void 0:n.document,r=()=>{var a;let c=i==null?void 0:i.activeElement;if(s)for(;c!=null&&c.shadowRoot;)c=(a=c==null?void 0:c.shadowRoot)==null?void 0:a.activeElement;return c},o=ne(),l=()=>{o.value=r()};return n&&(fe(n,"blur",a=>{a.relatedTarget===null&&l()},!0),fe(n,"focus",l,!0)),l(),o}function iw(){const e=ne(!1),t=Ge();return t&&cs(()=>{e.value=!0},t),e}function _o(e){const t=iw();return ae(()=>(t.value,!!e()))}function rw(e,t={}){const{immediate:n=!0,fpsLimit:s=void 0,window:i=He}=t,r=ne(!1),o=s?1e3/s:null;let l=0,a=null;function c(d){if(!r.value||!i)return;l||(l=d);const p=d-l;if(o&&p<o){a=i.requestAnimationFrame(c);return}l=d,e({delta:p,timestamp:d}),a=i.requestAnimationFrame(c)}function f(){!r.value&&i&&(r.value=!0,l=0,a=i.requestAnimationFrame(c))}function u(){r.value=!1,a!=null&&i&&(i.cancelAnimationFrame(a),a=null)}return n&&f(),qt(u),{isActive:Rt(r),pause:u,resume:f}}function Kn(e,t={}){const{window:n=He}=t,s=_o(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const r=ne(!1),o=c=>{r.value=c.matches},l=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",o):i.removeListener(o))},a=ya(()=>{s.value&&(l(),i=n.matchMedia(Se(e)),"addEventListener"in i?i.addEventListener("change",o):i.addListener(o),r.value=i.matches)});return qt(()=>{a(),l(),i=void 0}),r}const dC={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function pC(e,t={}){function n(f,u){let d=Se(e[Se(f)]);return u!=null&&(d=JS(d,u)),typeof d=="number"&&(d=`${d}px`),d}const{window:s=He,strategy:i="min-width"}=t;function r(f){return s?s.matchMedia(f).matches:!1}const o=f=>Kn(()=>`(min-width: ${n(f)})`,t),l=f=>Kn(()=>`(max-width: ${n(f)})`,t),a=Object.keys(e).reduce((f,u)=>(Object.defineProperty(f,u,{get:()=>i==="min-width"?o(u):l(u),enumerable:!0,configurable:!0}),f),{});function c(){const f=Object.keys(e).map(u=>[u,o(u)]);return ae(()=>f.filter(([,u])=>u.value).map(([u])=>u))}return Object.assign(a,{greaterOrEqual:o,smallerOrEqual:l,greater(f){return Kn(()=>`(min-width: ${n(f,.1)})`,t)},smaller(f){return Kn(()=>`(max-width: ${n(f,-.1)})`,t)},between(f,u){return Kn(()=>`(min-width: ${n(f)}) and (max-width: ${n(u,-.1)})`,t)},isGreater(f){return r(`(min-width: ${n(f,.1)})`)},isGreaterOrEqual(f){return r(`(min-width: ${n(f)})`)},isSmaller(f){return r(`(max-width: ${n(f,-.1)})`)},isSmallerOrEqual(f){return r(`(max-width: ${n(f)})`)},isInBetween(f,u){return r(`(min-width: ${n(f)}) and (max-width: ${n(u,-.1)})`)},current:c,active(){const f=c();return ae(()=>f.value.length===0?"":f.value.at(-1))}})}function ow(e){return JSON.parse(JSON.stringify(e))}const lr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ar="__vueuse_ssr_handlers__",lw=aw();function aw(){return ar in lr||(lr[ar]=lr[ar]||{}),lr[ar]}function cw(e,t){return lw[e]||t}function uw(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const fw={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},zu="vueuse-storage";function dw(e,t,n,s={}){var i;const{flush:r="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:f,window:u=He,eventFilter:d,onError:p=x=>{console.error(x)},initOnMounted:m}=s,w=(f?ra:ne)(typeof t=="function"?t():t);if(!n)try{n=cw("getDefaultStorage",()=>{var x;return(x=He)==null?void 0:x.localStorage})()}catch(x){p(x)}if(!n)return w;const E=Se(t),y=uw(E),_=(i=s.serializer)!=null?i:fw[y],{pause:g,resume:b}=ZS(w,()=>A(w.value),{flush:r,deep:o,eventFilter:d});u&&l&&Bi(()=>{fe(u,"storage",T),fe(u,zu,O),m&&T()}),m||T();function S(x,N){u&&u.dispatchEvent(new CustomEvent(zu,{detail:{key:e,oldValue:x,newValue:N,storageArea:n}}))}function A(x){try{const N=n.getItem(e);if(x==null)S(N,null),n.removeItem(e);else{const I=_.write(x);N!==I&&(n.setItem(e,I),S(N,I))}}catch(N){p(N)}}function C(x){const N=x?x.newValue:n.getItem(e);if(N==null)return a&&E!=null&&n.setItem(e,_.write(E)),E;if(!x&&c){const I=_.read(N);return typeof c=="function"?c(I,E):y==="object"&&!Array.isArray(I)?{...E,...I}:I}else return typeof N!="string"?N:_.read(N)}function T(x){if(!(x&&x.storageArea!==n)){if(x&&x.key==null){w.value=E;return}if(!(x&&x.key!==e)){g();try{(x==null?void 0:x.newValue)!==_.write(w.value)&&(w.value=C(x))}catch(N){p(N)}finally{x?Dn(b):b()}}}}function O(x){T(x.detail)}return w}function hC(e){return Kn("(prefers-color-scheme: dark)",e)}function mC(e,t={}){var n,s;const{pointerTypes:i,preventDefault:r,stopPropagation:o,exact:l,onMove:a,onEnd:c,onStart:f,initialValue:u,axis:d="both",draggingElement:p=He,containerElement:m,handle:w=e}=t,E=ne((n=Se(u))!=null?n:{x:0,y:0}),y=ne(),_=C=>i?i.includes(C.pointerType):!0,g=C=>{Se(r)&&C.preventDefault(),Se(o)&&C.stopPropagation()},b=C=>{var T;if(Se(t.disabled)||!_(C)||Se(l)&&C.target!==Se(e))return;const O=Se(m),x=(T=O==null?void 0:O.getBoundingClientRect)==null?void 0:T.call(O),N=Se(e).getBoundingClientRect(),I={x:C.clientX-(O?N.left-x.left+O.scrollLeft:N.left),y:C.clientY-(O?N.top-x.top+O.scrollTop:N.top)};(f==null?void 0:f(I,C))!==!1&&(y.value=I,g(C))},S=C=>{if(Se(t.disabled)||!_(C)||!y.value)return;const T=Se(m),O=Se(e).getBoundingClientRect();let{x,y:N}=E.value;(d==="x"||d==="both")&&(x=C.clientX-y.value.x,T&&(x=Math.min(Math.max(0,x),T.scrollWidth-O.width))),(d==="y"||d==="both")&&(N=C.clientY-y.value.y,T&&(N=Math.min(Math.max(0,N),T.scrollHeight-O.height))),E.value={x,y:N},a==null||a(E.value,C),g(C)},A=C=>{Se(t.disabled)||!_(C)||y.value&&(y.value=void 0,c==null||c(E.value,C),g(C))};if(Fs){const C={capture:(s=t.capture)!=null?s:!0};fe(w,"pointerdown",b,C),fe(p,"pointermove",S,C),fe(p,"pointerup",A,C)}return{...ew(E),position:E,isDragging:ae(()=>!!y.value),style:ae(()=>`left:${E.value.x}px;top:${E.value.y}px;`)}}function pw(e,t,n={}){const{window:s=He,...i}=n;let r;const o=_o(()=>s&&"ResizeObserver"in s),l=()=>{r&&(r.disconnect(),r=void 0)},a=ae(()=>Array.isArray(e)?e.map(u=>ze(u)):[ze(e)]),c=Ee(a,u=>{if(l(),o.value&&s){r=new ResizeObserver(t);for(const d of u)d&&r.observe(d,i)}},{immediate:!0,flush:"post"}),f=()=>{l(),c()};return qt(f),{isSupported:o,stop:f}}function gC(e,t={width:0,height:0},n={}){const{window:s=He,box:i="content-box"}=n,r=ae(()=>{var u,d;return(d=(u=ze(e))==null?void 0:u.namespaceURI)==null?void 0:d.includes("svg")}),o=ne(t.width),l=ne(t.height),{stop:a}=pw(e,([u])=>{const d=i==="border-box"?u.borderBoxSize:i==="content-box"?u.contentBoxSize:u.devicePixelContentBoxSize;if(s&&r.value){const p=ze(e);if(p){const m=s.getComputedStyle(p);o.value=Number.parseFloat(m.width),l.value=Number.parseFloat(m.height)}}else if(d){const p=Array.isArray(d)?d:[d];o.value=p.reduce((m,{inlineSize:w})=>m+w,0),l.value=p.reduce((m,{blockSize:w})=>m+w,0)}else o.value=u.contentRect.width,l.value=u.contentRect.height},n);Bi(()=>{const u=ze(e);u&&(o.value="offsetWidth"in u?u.offsetWidth:t.width,l.value="offsetHeight"in u?u.offsetHeight:t.height)});const c=Ee(()=>ze(e),u=>{o.value=u?t.width:0,l.value=u?t.height:0});function f(){a(),c()}return{width:o,height:l,stop:f}}function hw(e,t,n={}){const{root:s,rootMargin:i="0px",threshold:r=.1,window:o=He,immediate:l=!0}=n,a=_o(()=>o&&"IntersectionObserver"in o),c=ae(()=>{const m=Se(e);return(Array.isArray(m)?m:[m]).map(ze).filter(KS)});let f=tn;const u=ne(l),d=a.value?Ee(()=>[c.value,ze(s),u.value],([m,w])=>{if(f(),!u.value||!m.length)return;const E=new IntersectionObserver(t,{root:ze(w),rootMargin:i,threshold:r});m.forEach(y=>y&&E.observe(y)),f=()=>{E.disconnect(),f=tn}},{immediate:l,flush:"post"}):tn,p=()=>{f(),d(),u.value=!1};return qt(p),{isSupported:a,isActive:u,pause(){f(),u.value=!1},resume(){u.value=!0},stop:p}}const Gu=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function yC(e,t={}){const{document:n=wh,autoExit:s=!1}=t,i=ae(()=>{var y;return(y=ze(e))!=null?y:n==null?void 0:n.querySelector("html")}),r=ne(!1),o=ae(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(y=>n&&y in n||i.value&&y in i.value)),l=ae(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(y=>n&&y in n||i.value&&y in i.value)),a=ae(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(y=>n&&y in n||i.value&&y in i.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(y=>n&&y in n),f=_o(()=>i.value&&n&&o.value!==void 0&&l.value!==void 0&&a.value!==void 0),u=()=>c?(n==null?void 0:n[c])===i.value:!1,d=()=>{if(a.value){if(n&&n[a.value]!=null)return n[a.value];{const y=i.value;if((y==null?void 0:y[a.value])!=null)return!!y[a.value]}}return!1};async function p(){if(!(!f.value||!r.value)){if(l.value)if((n==null?void 0:n[l.value])!=null)await n[l.value]();else{const y=i.value;(y==null?void 0:y[l.value])!=null&&await y[l.value]()}r.value=!1}}async function m(){if(!f.value||r.value)return;d()&&await p();const y=i.value;o.value&&(y==null?void 0:y[o.value])!=null&&(await y[o.value](),r.value=!0)}async function w(){await(r.value?p():m())}const E=()=>{const y=d();(!y||y&&u())&&(r.value=y)};return fe(n,Gu,E,!1),fe(()=>ze(i),Gu,E,!1),s&&qt(p),{isSupported:f,isFullscreen:r,enter:m,exit:p,toggle:w}}function vC(e,t,n={}){const{window:s=He}=n;return dw(e,t,s==null?void 0:s.localStorage,n)}const mw={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function bC(e={}){const{reactive:t=!1,target:n=He,aliasMap:s=mw,passive:i=!0,onEventFired:r=tn}=e,o=it(new Set),l={toJSON(){return{}},current:o},a=t?it(l):l,c=new Set,f=new Set;function u(w,E){w in a&&(t?a[w]=E:a[w].value=E)}function d(){o.clear();for(const w of f)u(w,!1)}function p(w,E){var y,_;const g=(y=w.key)==null?void 0:y.toLowerCase(),S=[(_=w.code)==null?void 0:_.toLowerCase(),g].filter(Boolean);g&&(E?o.add(g):o.delete(g));for(const A of S)f.add(A),u(A,E);g==="meta"&&!E?(c.forEach(A=>{o.delete(A),u(A,!1)}),c.clear()):typeof w.getModifierState=="function"&&w.getModifierState("Meta")&&E&&[...o,...S].forEach(A=>c.add(A))}fe(n,"keydown",w=>(p(w,!0),r(w)),{passive:i}),fe(n,"keyup",w=>(p(w,!1),r(w)),{passive:i}),fe("blur",d,{passive:!0}),fe("focus",d,{passive:!0});const m=new Proxy(a,{get(w,E,y){if(typeof E!="string")return Reflect.get(w,E,y);if(E=E.toLowerCase(),E in s&&(E=s[E]),!(E in a))if(/[+_-]/.test(E)){const g=E.split(/[+_-]/g).map(b=>b.trim());a[E]=ae(()=>g.every(b=>Se(m[b])))}else a[E]=ne(!1);const _=Reflect.get(w,E,y);return t?Se(_):_}});return m}const gw={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function _C(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:s=!1,initialValue:i={x:0,y:0},window:r=He,target:o=r,scroll:l=!0,eventFilter:a}=e;let c=null;const f=ne(i.x),u=ne(i.y),d=ne(null),p=typeof t=="function"?t:gw[t],m=S=>{const A=p(S);c=S,A&&([f.value,u.value]=A,d.value="mouse")},w=S=>{if(S.touches.length>0){const A=p(S.touches[0]);A&&([f.value,u.value]=A,d.value="touch")}},E=()=>{if(!c||!r)return;const S=p(c);c instanceof MouseEvent&&S&&(f.value=S[0]+r.scrollX,u.value=S[1]+r.scrollY)},y=()=>{f.value=i.x,u.value=i.y},_=a?S=>a(()=>m(S),{}):S=>m(S),g=a?S=>a(()=>w(S),{}):S=>w(S),b=a?()=>a(()=>E(),{}):()=>E();if(o){const S={passive:!0};fe(o,["mousemove","dragover"],_,S),n&&t!=="movement"&&(fe(o,["touchstart","touchmove"],g,S),s&&fe(o,"touchend",y,S)),l&&t==="page"&&fe(r,"scroll",b,{passive:!0})}return{x:f,y:u,sourceType:d}}function SC(e,t={}){const n=XS(e),{threshold:s=50,onSwipe:i,onSwipeEnd:r,onSwipeStart:o,disableTextSelect:l=!1}=t,a=it({x:0,y:0}),c=(C,T)=>{a.x=C,a.y=T},f=it({x:0,y:0}),u=(C,T)=>{f.x=C,f.y=T},d=ae(()=>a.x-f.x),p=ae(()=>a.y-f.y),{max:m,abs:w}=Math,E=ae(()=>m(w(d.value),w(p.value))>=s),y=ne(!1),_=ne(!1),g=ae(()=>E.value?w(d.value)>w(p.value)?d.value>0?"left":"right":p.value>0?"up":"down":"none"),b=C=>{var T,O,x;const N=C.buttons===0,I=C.buttons===1;return(x=(O=(T=t.pointerTypes)==null?void 0:T.includes(C.pointerType))!=null?O:N||I)!=null?x:!0},S=[fe(e,"pointerdown",C=>{if(!b(C))return;_.value=!0;const T=C.target;T==null||T.setPointerCapture(C.pointerId);const{clientX:O,clientY:x}=C;c(O,x),u(O,x),o==null||o(C)}),fe(e,"pointermove",C=>{if(!b(C)||!_.value)return;const{clientX:T,clientY:O}=C;u(T,O),!y.value&&E.value&&(y.value=!0),y.value&&(i==null||i(C))}),fe(e,"pointerup",C=>{b(C)&&(y.value&&(r==null||r(C,g.value)),_.value=!1,y.value=!1)})];Bi(()=>{var C,T,O,x,N,I,j,G;(T=(C=n.value)==null?void 0:C.style)==null||T.setProperty("touch-action","none"),l&&((x=(O=n.value)==null?void 0:O.style)==null||x.setProperty("-webkit-user-select","none"),(I=(N=n.value)==null?void 0:N.style)==null||I.setProperty("-ms-user-select","none"),(G=(j=n.value)==null?void 0:j.style)==null||G.setProperty("user-select","none"))});const A=()=>S.forEach(C=>C());return{isSwiping:Rt(y),direction:Rt(g),posStart:Rt(a),posEnd:Rt(f),distanceX:d,distanceY:p,stop:A}}let yw=0;function wC(e,t={}){const n=ne(!1),{document:s=wh,immediate:i=!0,manual:r=!1,id:o=`vueuse_styletag_${++yw}`}=t,l=ne(e);let a=()=>{};const c=()=>{if(!s)return;const u=s.getElementById(o)||s.createElement("style");u.isConnected||(u.id=o,t.media&&(u.media=t.media),s.head.appendChild(u)),!n.value&&(a=Ee(l,d=>{u.textContent=d},{immediate:!0}),n.value=!0)},f=()=>{!s||!n.value||(a(),s.head.removeChild(s.getElementById(o)),n.value=!1)};return i&&!r&&Bi(c),r||qt(f),{id:o,css:l,unload:f,load:c,isLoaded:Rt(n)}}function EC(e={}){const{controls:t=!1,offset:n=0,immediate:s=!0,interval:i="requestAnimationFrame",callback:r}=e,o=ne(qu()+n),l=()=>o.value=qu()+n,a=r?()=>{l(),r(o.value)}:l,c=i==="requestAnimationFrame"?rw(a,{immediate:s}):nw(a,i,{immediate:s});return t?{timestamp:o,...c}:o}function CC(e,t,n,s={}){var i,r,o;const{clone:l=!1,passive:a=!1,eventName:c,deep:f=!1,defaultValue:u,shouldEmit:d}=s,p=Ge(),m=n||(p==null?void 0:p.emit)||((i=p==null?void 0:p.$emit)==null?void 0:i.bind(p))||((o=(r=p==null?void 0:p.proxy)==null?void 0:r.$emit)==null?void 0:o.bind(p==null?void 0:p.proxy));let w=c;t||(t="modelValue"),w=w||`update:${t.toString()}`;const E=g=>l?typeof l=="function"?l(g):ow(g):g,y=()=>US(e[t])?E(e[t]):u,_=g=>{d?d(g)&&m(w,g):m(w,g)};if(a){const g=y(),b=ne(g);let S=!1;return Ee(()=>e[t],A=>{S||(S=!0,b.value=E(A),Dn(()=>S=!1))}),Ee(b,A=>{!S&&(A!==e[t]||f)&&_(A)},{deep:f}),b}else return ae({get(){return y()},set(g){_(g)}})}function TC(e={}){const{window:t=He}=e;if(!t)return ne(!1);const n=ne(t.document.hasFocus());return fe(t,"blur",()=>{n.value=!1}),fe(t,"focus",()=>{n.value=!0}),n}function xC(e={}){const{window:t=He,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:s=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:r=!0}=e,o=ne(n),l=ne(s),a=()=>{t&&(r?(o.value=t.innerWidth,l.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(a(),Bi(a),fe("resize",a,{passive:!0}),i){const c=Kn("(orientation: portrait)");Ee(c,()=>a())}return{width:o,height:l}}function OC(...e){return ae(()=>e.every(t=>Se(t)))}function AC(e){return ae(()=>!Se(e))}function RC(...e){return ae(()=>e.some(t=>Se(t)))}function jo(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Ml(e,t,n=".",s){if(!jo(t))return Ml(e,{},n,s);const i=Object.assign({},t);for(const r in e){if(r==="__proto__"||r==="constructor")continue;const o=e[r];o!=null&&(s&&s(i,r,o,n)||(Array.isArray(o)&&Array.isArray(i[r])?i[r]=[...o,...i[r]]:jo(o)&&jo(i[r])?i[r]=Ml(o,i[r],(n?`${n}.`:"")+r.toString(),s):i[r]=o))}return i}function vw(e){return(...t)=>t.reduce((n,s)=>Ml(n,s,"",e),{})}const bw=vw(),Eh=1/60*1e3,_w=typeof performance<"u"?()=>performance.now():()=>Date.now(),Ch=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(_w()),Eh);function Sw(e){let t=[],n=[],s=0,i=!1,r=!1;const o=new WeakSet,l={schedule:(a,c=!1,f=!1)=>{const u=f&&i,d=u?t:n;return c&&o.add(a),d.indexOf(a)===-1&&(d.push(a),u&&i&&(s=t.length)),a},cancel:a=>{const c=n.indexOf(a);c!==-1&&n.splice(c,1),o.delete(a)},process:a=>{if(i){r=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,s=t.length,s)for(let c=0;c<s;c++){const f=t[c];f(a),o.has(f)&&(l.schedule(f),e())}i=!1,r&&(r=!1,l.process(a))}};return l}const ww=40;let $l=!0,Ai=!1,Fl=!1;const Es={delta:0,timestamp:0},Hi=["read","update","preRender","render","postRender"],So=Hi.reduce((e,t)=>(e[t]=Sw(()=>Ai=!0),e),{}),Ll=Hi.reduce((e,t)=>{const n=So[t];return e[t]=(s,i=!1,r=!1)=>(Ai||Tw(),n.schedule(s,i,r)),e},{}),Ew=Hi.reduce((e,t)=>(e[t]=So[t].cancel,e),{});Hi.reduce((e,t)=>(e[t]=()=>So[t].process(Es),e),{});const Cw=e=>So[e].process(Es),Th=e=>{Ai=!1,Es.delta=$l?Eh:Math.max(Math.min(e-Es.timestamp,ww),1),Es.timestamp=e,Fl=!0,Hi.forEach(Cw),Fl=!1,Ai&&($l=!1,Ch(Th))},Tw=()=>{Ai=!0,$l=!0,Fl||Ch(Th)},xh=()=>Es;function Oh(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]]);return n}var Za=function(){},Ri=function(){};Za=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Ri=function(e,t){if(!e)throw new Error(t)};const Dl=(e,t,n)=>Math.min(Math.max(n,e),t),Bo=.001,xw=.01,Yu=10,Ow=.05,Aw=1;function Rw({duration:e=800,bounce:t=.25,velocity:n=0,mass:s=1}){let i,r;Za(e<=Yu*1e3,"Spring duration must be 10 seconds or less");let o=1-t;o=Dl(Ow,Aw,o),e=Dl(xw,Yu,e/1e3),o<1?(i=c=>{const f=c*o,u=f*e,d=f-n,p=Vl(c,o),m=Math.exp(-u);return Bo-d/p*m},r=c=>{const u=c*o*e,d=u*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,m=Math.exp(-u),w=Vl(Math.pow(c,2),o);return(-i(c)+Bo>0?-1:1)*((d-p)*m)/w}):(i=c=>{const f=Math.exp(-c*e),u=(c-n)*e+1;return-Bo+f*u},r=c=>{const f=Math.exp(-c*e),u=(n-c)*(e*e);return f*u});const l=5/e,a=Nw(i,r,l);if(e=e*1e3,isNaN(a))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(a,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:e}}}const Iw=12;function Nw(e,t,n){let s=n;for(let i=1;i<Iw;i++)s=s-e(s)/t(s);return s}function Vl(e,t){return e*Math.sqrt(1-t*t)}const kw=["duration","bounce"],Pw=["stiffness","damping","mass"];function Ju(e,t){return t.some(n=>e[n]!==void 0)}function Mw(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Ju(e,Pw)&&Ju(e,kw)){const n=Rw(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function ec(e){var{from:t=0,to:n=1,restSpeed:s=2,restDelta:i}=e,r=Oh(e,["from","to","restSpeed","restDelta"]);const o={done:!1,value:t};let{stiffness:l,damping:a,mass:c,velocity:f,duration:u,isResolvedFromDuration:d}=Mw(r),p=Xu,m=Xu;function w(){const E=f?-(f/1e3):0,y=n-t,_=a/(2*Math.sqrt(l*c)),g=Math.sqrt(l/c)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),_<1){const b=Vl(g,_);p=S=>{const A=Math.exp(-_*g*S);return n-A*((E+_*g*y)/b*Math.sin(b*S)+y*Math.cos(b*S))},m=S=>{const A=Math.exp(-_*g*S);return _*g*A*(Math.sin(b*S)*(E+_*g*y)/b+y*Math.cos(b*S))-A*(Math.cos(b*S)*(E+_*g*y)-b*y*Math.sin(b*S))}}else if(_===1)p=b=>n-Math.exp(-g*b)*(y+(E+g*y)*b);else{const b=g*Math.sqrt(_*_-1);p=S=>{const A=Math.exp(-_*g*S),C=Math.min(b*S,300);return n-A*((E+_*g*y)*Math.sinh(C)+b*y*Math.cosh(C))/b}}}return w(),{next:E=>{const y=p(E);if(d)o.done=E>=u;else{const _=m(E)*1e3,g=Math.abs(_)<=s,b=Math.abs(n-y)<=i;o.done=g&&b}return o.value=o.done?n:y,o},flipTarget:()=>{f=-f,[t,n]=[n,t],w()}}}ec.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Xu=e=>0,Ah=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},tc=(e,t,n)=>-n*e+n*t+e,Rh=(e,t)=>n=>Math.max(Math.min(n,t),e),ai=e=>e%1?Number(e.toFixed(5)):e,Ii=/(-)?([\d]*\.?[\d])+/g,jl=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,$w=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ui(e){return typeof e=="string"}const Ki={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ci=Object.assign(Object.assign({},Ki),{transform:Rh(0,1)}),cr=Object.assign(Object.assign({},Ki),{default:1}),nc=e=>({test:t=>Ui(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Bn=nc("deg"),ui=nc("%"),re=nc("px"),Qu=Object.assign(Object.assign({},ui),{parse:e=>ui.parse(e)/100,transform:e=>ui.transform(e*100)}),sc=(e,t)=>n=>!!(Ui(n)&&$w.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Ih=(e,t,n)=>s=>{if(!Ui(s))return s;const[i,r,o,l]=s.match(Ii);return{[e]:parseFloat(i),[t]:parseFloat(r),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},Yn={test:sc("hsl","hue"),parse:Ih("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+ui.transform(ai(t))+", "+ui.transform(ai(n))+", "+ai(ci.transform(s))+")"},Fw=Rh(0,255),Ho=Object.assign(Object.assign({},Ki),{transform:e=>Math.round(Fw(e))}),En={test:sc("rgb","red"),parse:Ih("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Ho.transform(e)+", "+Ho.transform(t)+", "+Ho.transform(n)+", "+ai(ci.transform(s))+")"};function Lw(e){let t="",n="",s="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),s=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),s=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,s+=s,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Bl={test:sc("#"),parse:Lw,transform:En.transform},ct={test:e=>En.test(e)||Bl.test(e)||Yn.test(e),parse:e=>En.test(e)?En.parse(e):Yn.test(e)?Yn.parse(e):Bl.parse(e),transform:e=>Ui(e)?e:e.hasOwnProperty("red")?En.transform(e):Yn.transform(e)},Nh="${c}",kh="${n}";function Dw(e){var t,n,s,i;return isNaN(e)&&Ui(e)&&((n=(t=e.match(Ii))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(s=e.match(jl))===null||s===void 0?void 0:s.length)!==null&&i!==void 0?i:0)>0}function Ph(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const s=e.match(jl);s&&(n=s.length,e=e.replace(jl,Nh),t.push(...s.map(ct.parse)));const i=e.match(Ii);return i&&(e=e.replace(Ii,kh),t.push(...i.map(Ki.parse))),{values:t,numColors:n,tokenised:e}}function Mh(e){return Ph(e).values}function $h(e){const{values:t,numColors:n,tokenised:s}=Ph(e),i=t.length;return r=>{let o=s;for(let l=0;l<i;l++)o=o.replace(l<n?Nh:kh,l<n?ct.transform(r[l]):ai(r[l]));return o}}const Vw=e=>typeof e=="number"?0:e;function jw(e){const t=Mh(e);return $h(e)(t.map(Vw))}const qi={test:Dw,parse:Mh,createTransformer:$h,getAnimatableNone:jw},Bw=new Set(["brightness","contrast","saturate","opacity"]);function Hw(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(Ii)||[];if(!s)return e;const i=n.replace(s,"");let r=Bw.has(t)?1:0;return s!==n&&(r*=100),t+"("+r+i+")"}const Uw=/([a-z-]*)\(.*?\)/g,Hl=Object.assign(Object.assign({},qi),{getAnimatableNone:e=>{const t=e.match(Uw);return t?t.map(Hw).join(" "):e}});function Uo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Zu({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,r=0,o=0;if(!t)i=r=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=Uo(a,l,e+1/3),r=Uo(a,l,e),o=Uo(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}const Kw=(e,t,n)=>{const s=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-s)+s))},qw=[Bl,En,Yn],ef=e=>qw.find(t=>t.test(e)),tf=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Fh=(e,t)=>{let n=ef(e),s=ef(t);Ri(!!n,tf(e)),Ri(!!s,tf(t));let i=n.parse(e),r=s.parse(t);n===Yn&&(i=Zu(i),n=En),s===Yn&&(r=Zu(r),s=En);const o=Object.assign({},i);return l=>{for(const a in o)a!=="alpha"&&(o[a]=Kw(i[a],r[a],l));return o.alpha=tc(i.alpha,r.alpha,l),n.transform(o)}},Ww=e=>typeof e=="number",zw=(e,t)=>n=>t(e(n)),Lh=(...e)=>e.reduce(zw);function Dh(e,t){return Ww(e)?n=>tc(e,t,n):ct.test(e)?Fh(e,t):jh(e,t)}const Vh=(e,t)=>{const n=[...e],s=n.length,i=e.map((r,o)=>Dh(r,t[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}},Gw=(e,t)=>{const n=Object.assign(Object.assign({},e),t),s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=Dh(e[i],t[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}};function nf(e){const t=qi.parse(e),n=t.length;let s=0,i=0,r=0;for(let o=0;o<n;o++)s||typeof t[o]=="number"?s++:t[o].hue!==void 0?r++:i++;return{parsed:t,numNumbers:s,numRGB:i,numHSL:r}}const jh=(e,t)=>{const n=qi.createTransformer(t),s=nf(e),i=nf(t);return s.numHSL===i.numHSL&&s.numRGB===i.numRGB&&s.numNumbers>=i.numNumbers?Lh(Vh(s.parsed,i.parsed),n):(Za(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),o=>`${o>0?t:e}`)},Yw=(e,t)=>n=>tc(e,t,n);function Jw(e){if(typeof e=="number")return Yw;if(typeof e=="string")return ct.test(e)?Fh:jh;if(Array.isArray(e))return Vh;if(typeof e=="object")return Gw}function Xw(e,t,n){const s=[],i=n||Jw(e[0]),r=e.length-1;for(let o=0;o<r;o++){let l=i(e[o],e[o+1]);if(t){const a=Array.isArray(t)?t[o]:t;l=Lh(a,l)}s.push(l)}return s}function Qw([e,t],[n]){return s=>n(Ah(e,t,s))}function Zw(e,t){const n=e.length,s=n-1;return i=>{let r=0,o=!1;if(i<=e[0]?o=!0:i>=e[s]&&(r=s-1,o=!0),!o){let a=1;for(;a<n&&!(e[a]>i||a===s);a++);r=a-1}const l=Ah(e[r],e[r+1],i);return t[r](l)}}function Bh(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const r=e.length;Ri(r===t.length,"Both input and output ranges must be the same length"),Ri(!s||!Array.isArray(s)||s.length===r-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[r-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const o=Xw(t,s,i),l=r===2?Qw(e,o):Zw(e,o);return n?a=>l(Dl(e[0],e[r-1],a)):l}const wo=e=>t=>1-e(1-t),ic=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,eE=e=>t=>Math.pow(t,e),Hh=e=>t=>t*t*((e+1)*t-e),tE=e=>{const t=Hh(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},Uh=1.525,nE=4/11,sE=8/11,iE=9/10,Kh=e=>e,rc=eE(2),rE=wo(rc),qh=ic(rc),Wh=e=>1-Math.sin(Math.acos(e)),zh=wo(Wh),oE=ic(zh),oc=Hh(Uh),lE=wo(oc),aE=ic(oc),cE=tE(Uh),uE=4356/361,fE=35442/1805,dE=16061/1805,zr=e=>{if(e===1||e===0)return e;const t=e*e;return e<nE?7.5625*t:e<sE?9.075*t-9.9*e+3.4:e<iE?uE*t-fE*e+dE:10.8*e*e-20.52*e+10.72},pE=wo(zr),hE=e=>e<.5?.5*(1-zr(1-e*2)):.5*zr(e*2-1)+.5;function mE(e,t){return e.map(()=>t||qh).splice(0,e.length-1)}function gE(e){const t=e.length;return e.map((n,s)=>s!==0?s/(t-1):0)}function yE(e,t){return e.map(n=>n*t)}function br({from:e=0,to:t=1,ease:n,offset:s,duration:i=300}){const r={done:!1,value:e},o=Array.isArray(t)?t:[e,t],l=yE(s&&s.length===o.length?s:gE(o),i);function a(){return Bh(l,o,{ease:Array.isArray(n)?n:mE(o,n)})}let c=a();return{next:f=>(r.value=c(f),r.done=f>=i,r),flipTarget:()=>{o.reverse(),c=a()}}}function vE({velocity:e=0,from:t=0,power:n=.8,timeConstant:s=350,restDelta:i=.5,modifyTarget:r}){const o={done:!1,value:t};let l=n*e;const a=t+l,c=r===void 0?a:r(a);return c!==a&&(l=c-t),{next:f=>{const u=-l*Math.exp(-f/s);return o.done=!(u>i||u<-i),o.value=o.done?c:c+u,o},flipTarget:()=>{}}}const sf={keyframes:br,spring:ec,decay:vE};function bE(e){if(Array.isArray(e.to))return br;if(sf[e.type])return sf[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?br:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?ec:br}function Gh(e,t,n=0){return e-t-n}function _E(e,t,n=0,s=!0){return s?Gh(t+-e,t,n):t-(e-t)+n}function SE(e,t,n,s){return s?e>=t+n:e<=-n}const wE=e=>{const t=({delta:n})=>e(n);return{start:()=>Ll.update(t,!0),stop:()=>Ew.update(t)}};function Yh(e){var t,n,{from:s,autoplay:i=!0,driver:r=wE,elapsed:o=0,repeat:l=0,repeatType:a="loop",repeatDelay:c=0,onPlay:f,onStop:u,onComplete:d,onRepeat:p,onUpdate:m}=e,w=Oh(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:E}=w,y,_=0,g=w.duration,b,S=!1,A=!0,C;const T=bE(w);!((n=(t=T).needsInterpolation)===null||n===void 0)&&n.call(t,s,E)&&(C=Bh([0,100],[s,E],{clamp:!1}),s=0,E=100);const O=T(Object.assign(Object.assign({},w),{from:s,to:E}));function x(){_++,a==="reverse"?(A=_%2===0,o=_E(o,g,c,A)):(o=Gh(o,g,c),a==="mirror"&&O.flipTarget()),S=!1,p&&p()}function N(){y.stop(),d&&d()}function I(G){if(A||(G=-G),o+=G,!S){const te=O.next(Math.max(0,o));b=te.value,C&&(b=C(b)),S=A?te.done:o<=0}m==null||m(b),S&&(_===0&&(g??(g=o)),_<l?SE(o,g,c,A)&&x():N())}function j(){f==null||f(),y=r(I),y.start()}return i&&j(),{stop:()=>{u==null||u(),y.stop()}}}function Jh(e,t){return t?e*(1e3/t):0}function EE({from:e=0,velocity:t=0,min:n,max:s,power:i=.8,timeConstant:r=750,bounceStiffness:o=500,bounceDamping:l=10,restDelta:a=1,modifyTarget:c,driver:f,onUpdate:u,onComplete:d,onStop:p}){let m;function w(g){return n!==void 0&&g<n||s!==void 0&&g>s}function E(g){return n===void 0?s:s===void 0||Math.abs(n-g)<Math.abs(s-g)?n:s}function y(g){m==null||m.stop(),m=Yh(Object.assign(Object.assign({},g),{driver:f,onUpdate:b=>{var S;u==null||u(b),(S=g.onUpdate)===null||S===void 0||S.call(g,b)},onComplete:d,onStop:p}))}function _(g){y(Object.assign({type:"spring",stiffness:o,damping:l,restDelta:a},g))}if(w(e))_({from:e,velocity:t,to:E(e)});else{let g=i*t+e;typeof c<"u"&&(g=c(g));const b=E(g),S=b===n?-1:1;let A,C;const T=O=>{A=C,C=O,t=Jh(O-A,xh().delta),(S===1&&O>b||S===-1&&O<b)&&_({from:O,to:b,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:r,power:i,restDelta:a,modifyTarget:c,onUpdate:w(g)?T:void 0})}return{stop:()=>m==null?void 0:m.stop()}}const Xh=(e,t)=>1-3*t+3*e,Qh=(e,t)=>3*t-6*e,Zh=e=>3*e,Gr=(e,t,n)=>((Xh(t,n)*e+Qh(t,n))*e+Zh(t))*e,em=(e,t,n)=>3*Xh(t,n)*e*e+2*Qh(t,n)*e+Zh(t),CE=1e-7,TE=10;function xE(e,t,n,s,i){let r,o,l=0;do o=t+(n-t)/2,r=Gr(o,s,i)-e,r>0?n=o:t=o;while(Math.abs(r)>CE&&++l<TE);return o}const OE=8,AE=.001;function RE(e,t,n,s){for(let i=0;i<OE;++i){const r=em(t,n,s);if(r===0)return t;const o=Gr(t,n,s)-e;t-=o/r}return t}const _r=11,ur=1/(_r-1);function IE(e,t,n,s){if(e===t&&n===s)return Kh;const i=new Float32Array(_r);for(let o=0;o<_r;++o)i[o]=Gr(o*ur,e,n);function r(o){let l=0,a=1;const c=_r-1;for(;a!==c&&i[a]<=o;++a)l+=ur;--a;const f=(o-i[a])/(i[a+1]-i[a]),u=l+f*ur,d=em(u,e,n);return d>=AE?RE(o,u,e,n):d===0?u:xE(o,l,l+ur,e,n)}return o=>o===0||o===1?o:Gr(r(o),t,s)}const Ko={};var NE=Object.defineProperty,kE=(e,t,n)=>t in e?NE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,PE=(e,t,n)=>(kE(e,typeof t!="symbol"?t+"":t,n),n);class ME{constructor(){PE(this,"subscriptions",new Set)}add(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}notify(t,n,s){if(this.subscriptions.size)for(const i of this.subscriptions)i(t,n,s)}clear(){this.subscriptions.clear()}}var $E=Object.defineProperty,FE=(e,t,n)=>t in e?$E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ft=(e,t,n)=>(FE(e,typeof t!="symbol"?t+"":t,n),n);function rf(e){return!isNaN(parseFloat(e))}class LE{constructor(t){Ft(this,"current"),Ft(this,"prev"),Ft(this,"timeDelta",0),Ft(this,"lastUpdated",0),Ft(this,"updateSubscribers",new ME),Ft(this,"stopAnimation"),Ft(this,"canTrackVelocity",!1),Ft(this,"updateAndNotify",n=>{this.prev=this.current,this.current=n;const{delta:s,timestamp:i}=xh();this.lastUpdated!==i&&(this.timeDelta=s,this.lastUpdated=i),Ll.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)}),Ft(this,"scheduleVelocityCheck",()=>Ll.postRender(this.velocityCheck)),Ft(this,"velocityCheck",({timestamp:n})=>{this.canTrackVelocity||(this.canTrackVelocity=rf(this.current)),n!==this.lastUpdated&&(this.prev=this.current)}),this.prev=this.current=t,this.canTrackVelocity=rf(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}set(t){this.updateAndNotify(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Jh(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{const{stop:s}=t(n);this.stopAnimation=s}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function DE(e){return new LE(e)}const{isArray:VE}=Array;function jE(){const e=ne({}),t=s=>{const i=r=>{e.value[r]&&(e.value[r].stop(),e.value[r].destroy(),delete e.value[r])};s?VE(s)?s.forEach(i):i(s):Object.keys(e.value).forEach(i)},n=(s,i,r)=>{if(e.value[s])return e.value[s];const o=DE(i);return o.onChange(l=>r[s]=l),e.value[s]=o,o};return tw(t),{motionValues:e,get:n,stop:t}}function BE(e){return Array.isArray(e)}function Hn(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function qo(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function HE(e){return{type:"spring",stiffness:550,damping:e===0?100:30,restDelta:.01,restSpeed:10}}function Wo(){return{type:"keyframes",ease:"linear",duration:300}}function UE(e){return{type:"keyframes",duration:800,values:e}}const of={default:HE,x:Hn,y:Hn,z:Hn,rotate:Hn,rotateX:Hn,rotateY:Hn,rotateZ:Hn,scaleX:qo,scaleY:qo,scale:qo,backgroundColor:Wo,color:Wo,opacity:Wo};function tm(e,t){let n;return BE(t)?n=UE:n=of[e]||of.default,{to:t,...n(t)}}const lf={...Ki,transform:Math.round},nm={color:ct,backgroundColor:ct,outlineColor:ct,fill:ct,stroke:ct,borderColor:ct,borderTopColor:ct,borderRightColor:ct,borderBottomColor:ct,borderLeftColor:ct,borderWidth:re,borderTopWidth:re,borderRightWidth:re,borderBottomWidth:re,borderLeftWidth:re,borderRadius:re,radius:re,borderTopLeftRadius:re,borderTopRightRadius:re,borderBottomRightRadius:re,borderBottomLeftRadius:re,width:re,maxWidth:re,height:re,maxHeight:re,size:re,top:re,right:re,bottom:re,left:re,padding:re,paddingTop:re,paddingRight:re,paddingBottom:re,paddingLeft:re,margin:re,marginTop:re,marginRight:re,marginBottom:re,marginLeft:re,rotate:Bn,rotateX:Bn,rotateY:Bn,rotateZ:Bn,scale:cr,scaleX:cr,scaleY:cr,scaleZ:cr,skew:Bn,skewX:Bn,skewY:Bn,distance:re,translateX:re,translateY:re,translateZ:re,x:re,y:re,z:re,perspective:re,transformPerspective:re,opacity:ci,originX:Qu,originY:Qu,originZ:re,zIndex:lf,filter:Hl,WebkitFilter:Hl,fillOpacity:ci,strokeOpacity:ci,numOctaves:lf},lc=e=>nm[e];function sm(e,t){return t&&typeof e=="number"&&t.transform?t.transform(e):e}function KE(e,t){let n=lc(e);return n!==Hl&&(n=qi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qE={linear:Kh,easeIn:rc,easeInOut:qh,easeOut:rE,circIn:Wh,circInOut:oE,circOut:zh,backIn:oc,backInOut:aE,backOut:lE,anticipate:cE,bounceIn:pE,bounceInOut:hE,bounceOut:zr};function af(e){if(Array.isArray(e)){const[t,n,s,i]=e;return IE(t,n,s,i)}else if(typeof e=="string")return qE[e];return e}function WE(e){return Array.isArray(e)&&typeof e[0]!="number"}function cf(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&qi.test(t)&&!t.startsWith("url("))}function zE(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function GE({ease:e,times:t,delay:n,...s}){const i={...s};return t&&(i.offset=t),e&&(i.ease=WE(e)?e.map(af):af(e)),n&&(i.elapsed=-n),i}function YE(e,t,n){return Array.isArray(t.to)&&(e.duration||(e.duration=800)),zE(t),JE(e)||(e={...e,...tm(n,t.to)}),{...t,...GE(e)}}function JE({delay:e,repeat:t,repeatType:n,repeatDelay:s,from:i,...r}){return!!Object.keys(r).length}function XE(e,t){return e[t]||e.default||e}function QE(e,t,n,s,i){const r=XE(s,e);let o=r.from===null||r.from===void 0?t.get():r.from;const l=cf(e,n);o==="none"&&l&&typeof n=="string"&&(o=KE(e,n));const a=cf(e,o);function c(u){const d={from:o,to:n,velocity:s.velocity?s.velocity:t.getVelocity(),onUpdate:p=>t.set(p)};return r.type==="inertia"||r.type==="decay"?EE({...d,...r}):Yh({...YE(r,d,e),onUpdate:p=>{d.onUpdate(p),r.onUpdate&&r.onUpdate(p)},onComplete:()=>{s.onComplete&&s.onComplete(),i&&i(),u&&u()}})}function f(u){return t.set(n),s.onComplete&&s.onComplete(),i&&i(),u&&u(),{stop:()=>{}}}return!a||!l||r.type===!1?f:c}function ZE(){const{motionValues:e,stop:t,get:n}=jE();return{motionValues:e,stop:t,push:(i,r,o,l={},a)=>{const c=o[i],f=n(i,c,o);if(l&&l.immediate){f.set(r);return}const u=QE(i,f,r,l,a);f.start(u)}}}function e1(e,t={},{motionValues:n,push:s,stop:i}=ZE()){const r=Ze(t),o=ne(!1);Ee(n,u=>{o.value=Object.values(u).filter(d=>d.isAnimating()).length>0},{immediate:!0,deep:!0});const l=u=>{if(!r||!r[u])throw new Error(`The variant ${u} does not exist.`);return r[u]},a=u=>(typeof u=="string"&&(u=l(u)),Promise.all(Object.entries(u).map(([d,p])=>{if(d!=="transition")return new Promise(m=>s(d,p,e,u.transition||tm(d,u[d]),m))}).filter(Boolean)));return{isAnimating:o,apply:a,set:u=>{const d=Wr(u)?u:l(u);Object.entries(d).forEach(([p,m])=>{p!=="transition"&&s(p,m,e,{immediate:!0})})},leave:async u=>{let d;if(r&&(r.leave&&(d=r.leave),!r.leave&&r.initial&&(d=r.initial)),!d){u();return}await a(d),u()},stop:i}}const ac=typeof window<"u",t1=()=>ac&&window.onpointerdown===null,n1=()=>ac&&window.ontouchstart===null,s1=()=>ac&&window.onmousedown===null;function i1({target:e,state:t,variants:n,apply:s}){const i=Ze(n),r=ne(!1),o=ne(!1),l=ne(!1),a=ae(()=>{let f=[];return i&&(i.hovered&&(f=[...f,...Object.keys(i.hovered)]),i.tapped&&(f=[...f,...Object.keys(i.tapped)]),i.focused&&(f=[...f,...Object.keys(i.focused)])),f}),c=ae(()=>{const f={};Object.assign(f,t.value),r.value&&i.hovered&&Object.assign(f,i.hovered),o.value&&i.tapped&&Object.assign(f,i.tapped),l.value&&i.focused&&Object.assign(f,i.focused);for(const u in f)a.value.includes(u)||delete f[u];return f});i.hovered&&(fe(e,"mouseenter",()=>r.value=!0),fe(e,"mouseleave",()=>{r.value=!1,o.value=!1}),fe(e,"mouseout",()=>{r.value=!1,o.value=!1})),i.tapped&&(s1()&&(fe(e,"mousedown",()=>o.value=!0),fe(e,"mouseup",()=>o.value=!1)),t1()&&(fe(e,"pointerdown",()=>o.value=!0),fe(e,"pointerup",()=>o.value=!1)),n1()&&(fe(e,"touchstart",()=>o.value=!0),fe(e,"touchend",()=>o.value=!1))),i.focused&&(fe(e,"focus",()=>l.value=!0),fe(e,"blur",()=>l.value=!1)),Ee(c,s)}function r1({set:e,target:t,variants:n,variant:s}){const i=Ze(n);Ee(()=>t,()=>{i&&(i.initial&&e("initial"),i.enter&&(s.value="enter"))},{immediate:!0,flush:"pre"})}function o1({state:e,apply:t}){Ee(e,n=>{n&&t(n)},{immediate:!0})}function im({target:e,variants:t,variant:n}){const s=Ze(t);s&&(s.visible||s.visibleOnce)&&hw(e,([{isIntersecting:i}])=>{s.visible?i?n.value="visible":n.value="initial":s.visibleOnce&&(i&&n.value!=="visibleOnce"?n.value="visibleOnce":n.value||(n.value="initial"))})}function l1(e,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){t.lifeCycleHooks&&r1(e),t.syncVariants&&o1(e),t.visibilityHooks&&im(e),t.eventListeners&&i1(e)}function rm(e={}){const t=it({...e}),n=ne({});return Ee(t,()=>{const s={};for(const[i,r]of Object.entries(t)){const o=lc(i),l=sm(r,o);s[i]=l}n.value=s},{immediate:!0,deep:!0}),{state:t,style:n}}function cc(e,t){Ee(()=>ze(e),n=>{n&&t(n)},{immediate:!0})}const a1={x:"translateX",y:"translateY",z:"translateZ"};function om(e={},t=!0){const n=it({...e}),s=ne("");return Ee(n,i=>{let r="",o=!1;if(t&&(i.x||i.y||i.z)){const l=[i.x||0,i.y||0,i.z||0].map(re.transform).join(",");r+=`translate3d(${l}) `,o=!0}for(const[l,a]of Object.entries(i)){if(t&&(l==="x"||l==="y"||l==="z"))continue;const c=lc(l),f=sm(a,c);r+=`${a1[l]||l}(${f}) `}t&&!o&&(r+="translateZ(0px) "),s.value=r.trim()},{immediate:!0,deep:!0}),{state:n,transform:s}}const c1=["","X","Y","Z"],u1=["perspective","translate","scale","rotate","skew"],lm=["transformPerspective","x","y","z"];u1.forEach(e=>{c1.forEach(t=>{const n=e+t;lm.push(n)})});const f1=new Set(lm);function uc(e){return f1.has(e)}const d1=new Set(["originX","originY","originZ"]);function am(e){return d1.has(e)}function p1(e){const t={},n={};return Object.entries(e).forEach(([s,i])=>{uc(s)||am(s)?t[s]=i:n[s]=i}),{transform:t,style:n}}function cm(e){const{transform:t,style:n}=p1(e),{transform:s}=om(t),{style:i}=rm(n);return s.value&&(i.value.transform=s.value),i.value}function h1(e,t){let n,s;const{state:i,style:r}=rm();return cc(e,o=>{s=o;for(const l of Object.keys(nm))o.style[l]===null||o.style[l]===""||uc(l)||am(l)||(i[l]=o.style[l]);n&&Object.entries(n).forEach(([l,a])=>o.style[l]=a),t&&t(i)}),Ee(r,o=>{if(!s){n=o;return}for(const l in o)s.style[l]=o[l]},{immediate:!0}),{style:i}}function m1(e){const t=e.trim().split(/\) |\)/);if(t.length===1)return{};const n=s=>s.endsWith("px")||s.endsWith("deg")?parseFloat(s):isNaN(Number(s))?Number(s):s;return t.reduce((s,i)=>{if(!i)return s;const[r,o]=i.split("("),a=o.split(",").map(f=>n(f.endsWith(")")?f.replace(")",""):f.trim())),c=a.length===1?a[0]:a;return{...s,[r]:c}},{})}function g1(e,t){Object.entries(m1(t)).forEach(([n,s])=>{const i=["x","y","z"];if(n==="translate3d"){if(s===0){i.forEach(r=>e[r]=0);return}s.forEach((r,o)=>e[i[o]]=r);return}if(s=parseFloat(s),n==="translateX"){e.x=s;return}if(n==="translateY"){e.y=s;return}if(n==="translateZ"){e.z=s;return}e[n]=s})}function y1(e,t){let n,s;const{state:i,transform:r}=om();return cc(e,o=>{s=o,o.style.transform&&g1(i,o.style.transform),n&&(o.style.transform=n),t&&t(i)}),Ee(r,o=>{if(!s){n=o;return}s.style.transform=o},{immediate:!0}),{transform:i}}function v1(e,t){const n=it({}),s=o=>Object.entries(o).forEach(([l,a])=>n[l]=a),{style:i}=h1(e,s),{transform:r}=y1(e,s);return Ee(n,o=>{Object.entries(o).forEach(([l,a])=>{const c=uc(l)?r:i;c[l]&&c[l]===a||(c[l]=a)})},{immediate:!0,deep:!0}),cc(e,()=>t&&s(t)),{motionProperties:n,style:i,transform:r}}function b1(e={}){const t=Ze(e),n=ne();return{state:ae(()=>{if(n.value)return t[n.value]}),variant:n}}function um(e,t={},n){const{motionProperties:s}=v1(e),{variant:i,state:r}=b1(t),o=e1(s,t),l={target:e,variant:i,variants:t,state:r,motionProperties:s,...o};return l1(l,n),l}const _1=["initial","enter","leave","visible","visible-once","visibleOnce","hovered","tapped","focused","delay"];function S1(e,t){const n=e.props?e.props:e.data&&e.data.attrs?e.data.attrs:{};n&&(n.variants&&Wr(n.variants)&&(t.value={...t.value,...n.variants}),_1.forEach(s=>{if(s==="delay"){if(n&&n[s]&&typeof n[s]=="number"){const i=n[s];t&&t.value&&(t.value.enter&&(t.value.enter.transition||(t.value.enter.transition={}),t.value.enter.transition={delay:i,...t.value.enter.transition}),t.value.visible&&(t.value.visible.transition||(t.value.visible.transition={}),t.value.visible.transition={delay:i,...t.value.visible.transition}),t.value.visibleOnce&&(t.value.visibleOnce.transition||(t.value.visibleOnce.transition={}),t.value.visibleOnce.transition={delay:i,...t.value.visibleOnce.transition}))}return}if(n&&n[s]&&Wr(n[s])){const i=n[s];s==="visible-once"&&(s="visibleOnce"),t.value[s]=i}}))}function zo(e){return{created:(s,i,r)=>{const o=i.value&&typeof i.value=="string"?i.value:r.key;o&&Ko[o]&&Ko[o].stop();const l=ne(e||{});typeof i.value=="object"&&(l.value=i.value),S1(r,l);const c=um(s,l,{eventListeners:!0,lifeCycleHooks:!0,syncVariants:!0,visibilityHooks:!1});s.motionInstance=c,o&&(Ko[o]=c)},mounted:(s,i,r)=>{s.motionInstance&&im(s.motionInstance)},getSSRProps(s,i){let{initial:r}=s.value||i&&(i==null?void 0:i.props)||{};r=Ze(r);const o=bw((e==null?void 0:e.initial)||{},r||{});return!o||Object.keys(o).length===0?void 0:{style:cm(o)}}}}const w1={initial:{opacity:0},enter:{opacity:1}},E1={initial:{opacity:0},visible:{opacity:1}},C1={initial:{opacity:0},visibleOnce:{opacity:1}},T1={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},x1={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},O1={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},A1={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},R1={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},I1={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},N1={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},k1={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},P1={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},M1={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},$1={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},F1={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},L1={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},D1={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},V1={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},j1={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},B1={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},H1={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},U1={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},K1={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},q1={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},W1={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},z1={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},G1={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},Y1={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},J1={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},X1={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},Ul={__proto__:null,fade:w1,fadeVisible:E1,fadeVisibleOnce:C1,pop:T1,popVisible:x1,popVisibleOnce:O1,rollBottom:L1,rollLeft:A1,rollRight:N1,rollTop:M1,rollVisibleBottom:D1,rollVisibleLeft:R1,rollVisibleOnceBottom:V1,rollVisibleOnceLeft:I1,rollVisibleOnceRight:P1,rollVisibleOnceTop:F1,rollVisibleRight:k1,rollVisibleTop:$1,slideBottom:Y1,slideLeft:j1,slideRight:U1,slideTop:W1,slideVisibleBottom:J1,slideVisibleLeft:B1,slideVisibleOnceBottom:X1,slideVisibleOnceLeft:H1,slideVisibleOnceRight:q1,slideVisibleOnceTop:G1,slideVisibleRight:K1,slideVisibleTop:z1},Q1=js({props:{is:{type:[String,Object],required:!1},preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1}},setup(e){const t=gd(),n=it({});if(!e.is&&!t.default)return()=>xs("div",{});const s=ae(()=>{let l;return e.preset&&(l=Ul[e.preset]),l}),i=ae(()=>({initial:e.initial,enter:e.enter,leave:e.leave,visible:e.visible,visibleOnce:e.visibleOnce,hovered:e.hovered,tapped:e.tapped,focused:e.focused})),r=ae(()=>{const l={...i.value,...s.value||{},...e.variants||{}};return e.delay&&(l.enter.transition={...l.enter.transition},l.enter.transition.delay=parseInt(e.delay)),l}),o=ae(()=>{if(!e.is)return;let l=e.is;return typeof o.value=="string"&&!Gl(l)&&(l=Yf(l)),l});{const l=a=>{var c;(c=a.variants)!=null&&c.initial&&a.set("initial"),setTimeout(()=>{var f,u,d;(f=a.variants)!=null&&f.enter&&a.apply("enter"),(u=a.variants)!=null&&u.visible&&a.apply("visible"),(d=a.variants)!=null&&d.visibleOnce&&a.apply("visibleOnce")},10)};Mi(()=>Object.entries(n).forEach(([a,c])=>l(c)))}return{slots:t,component:o,motionConfig:r,instances:n}},render({slots:e,motionConfig:t,instances:n,component:s}){var l;const i=cm(t.initial||{}),r=(a,c)=>(a.props||(a.props={}),a.props.style=i,a.props.onVnodeMounted=({el:f})=>{const u=um(f,t);n[c]=u},a);if(s){const a=xs(s,void 0,e);return r(a,0),a}return(((l=e.default)==null?void 0:l.call(e))||[]).map((a,c)=>r(a,c))}});function Z1(e){const t="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",n="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",s=new RegExp(t.split("").join("|"),"g");return e.toString().replace(/[A-Z]/g,i=>`-${i}`).toLowerCase().replace(/\s+/g,"-").replace(s,i=>n.charAt(t.indexOf(i))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const IC={install(e,t){if(e.directive("motion",zo()),e.component("Motion",Q1),!t||t&&!t.excludePresets)for(const n in Ul){const s=Ul[n];e.directive(`motion-${Z1(n)}`,zo(s))}if(t&&t.directives)for(const n in t.directives){const s=t.directives[n];s.initial,e.directive(`motion-${n}`,zo(s))}}};export{wC as $,Ze as A,Et as B,ya as C,Ee as D,ao as E,De as F,ld as G,od as H,Ge as I,it as J,se as K,EC as L,ra as M,nC as N,ta as O,hC as P,vC as Q,aC as R,Fs as S,rC as T,RC as U,tC as V,eC as W,IC as X,sC as Y,ry as Z,cs as _,Lg as a,Ta as a0,Zg as a1,$r as a2,_C as a3,TC as a4,Te as a5,CC as a6,sy as a7,SC as a8,qu as a9,OC as aa,AC as ab,uC as ac,gC as ad,cC as ae,Ug as af,fe as ag,Aa as ah,Ra as ai,ub as aj,tb as ak,pC as al,xC as am,bC as an,yC as ao,fC as ap,dC as aq,Df as ar,ty as as,iC as at,lC as au,oC as av,na as aw,mC as ax,sv as b,Ea as c,js as d,Ca as e,ly as f,av as g,Ds as h,Vs as i,db as j,da as k,xe as l,Ld as m,Dn as n,co as o,Fg as p,Em as q,Yf as r,$d as s,ne as t,pb as u,xs as v,Dg as w,Mm as x,ae as y,ml as z};
import{o as e,b as o,e as n}from"./vue-O-XuQLLR.js";const c={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},_=n("path",{fill:"currentColor",d:"M12 10H6.78A11 11 0 0 1 27 16h2A13 13 0 0 0 6 7.68V4H4v8h8zm8 12h5.22A11 11 0 0 1 5 16H3a13 13 0 0 0 23 8.32V28h2v-8h-8z"},null,-1),l=[_];function i(t,s){return e(),o("svg",c,[...l])}const I2={name:"carbon-renew",render:i},h={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},r=n("path",{fill:"currentColor",d:"M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14m0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4"},null,-1),a=n("path",{fill:"currentColor",d:"M20.59 22L15 16.41V7h2v8.58l5 5.01z"},null,-1),d=[r,a];function u(t,s){return e(),o("svg",h,[...d])}const J2={name:"carbon-time",render:u},m={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},v=n("path",{fill:"currentColor",d:"M8 12h10v2H8z"},null,-1),$=n("path",{fill:"currentColor",d:"M21.448 20A10.856 10.856 0 0 0 24 13a11 11 0 1 0-11 11a10.856 10.856 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9"},null,-1),p=[v,$];function g(t,s){return e(),o("svg",m,[...p])}const K2={name:"carbon-zoom-out",render:g},L={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},f=n("path",{fill:"currentColor",d:"M18 12h-4V8h-2v4H8v2h4v4h2v-4h4z"},null,-1),w=n("path",{fill:"currentColor",d:"M21.448 20A10.856 10.856 0 0 0 24 13a11 11 0 1 0-11 11a10.856 10.856 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9"},null,-1),x=[f,w];function M(t,s){return e(),o("svg",L,[...x])}const O2={name:"carbon-zoom-in",render:M},z={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},C=n("path",{fill:"currentColor",d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3s3 1.3 3 3s-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3s-3-1.3-3-3s1.3-3 3-3"},null,-1),H=[C];function b(t,s){return e(),o("svg",z,[...H])}const P2={name:"carbon-settings-adjust",render:b},B={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},V=n("path",{fill:"currentColor",d:"M17 22v-8h-4v2h2v6h-3v2h8v-2zM16 8a1.5 1.5 0 1 0 1.5 1.5A1.5 1.5 0 0 0 16 8"},null,-1),Z=n("path",{fill:"currentColor",d:"M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14m0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4"},null,-1),A=[V,Z];function k(t,s){return e(),o("svg",B,[...A])}const Q2={name:"carbon-information",render:k},j={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},q=n("path",{fill:"currentColor",d:"M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4zm0-10l-1.41-1.41L17 20.17V2h-2v18.17l-7.59-7.58L6 14l10 10z"},null,-1),y=[q];function E(t,s){return e(),o("svg",j,[...y])}const R2={name:"carbon-download",render:E},S={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},D=n("path",{fill:"currentColor",d:"M26 6v4H6V6zm0-2H6a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M10 16v10H6V16zm0-2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2m16 2v10H16V16zm0-2H16a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2"},null,-1),F=[D];function G(t,s){return e(),o("svg",S,[...F])}const T2={name:"carbon-template",render:G},N={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},I=n("path",{fill:"currentColor",d:"M29.415 19L27.7 17.285A2.97 2.97 0 0 0 28 16a3 3 0 1 0-3 3a2.97 2.97 0 0 0 1.286-.3L28 20.414V28h-6v-3a7.008 7.008 0 0 0-7-7H9a7.008 7.008 0 0 0-7 7v5h28v-9.586A1.988 1.988 0 0 0 29.415 19M4 25a5.006 5.006 0 0 1 5-5h6a5.006 5.006 0 0 1 5 5v3H4Z"},null,-1),J=n("path",{fill:"currentColor",d:"M12 4a5 5 0 1 1-5 5a5 5 0 0 1 5-5m0-2a7 7 0 1 0 7 7a7 7 0 0 0-7-7"},null,-1),K=[I,J];function O(t,s){return e(),o("svg",N,[...K])}const U2={name:"carbon-user-speaker",render:O},P={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Q=n("path",{fill:"currentColor",d:"M15 10h2v8h-2zm5 4h2v4h-2zm-10-2h2v6h-2z"},null,-1),R=n("path",{fill:"currentColor",d:"M25 4h-8V2h-2v2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8v6h-4v2h10v-2h-4v-6h8a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 16H7V6h18Z"},null,-1),T=[Q,R];function U(t,s){return e(),o("svg",P,[...T])}const W2={name:"carbon-presentation-file",render:U},W={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},X=n("path",{fill:"currentColor",d:"M27.307 6.107L30 3.414L28.586 2l-2.693 2.693L24.8 3.6a1.933 1.933 0 0 0-2.8 0l-18 18V28h6.4l18-18a1.933 1.933 0 0 0 0-2.8ZM9.6 26H6v-3.6L23.4 5L27 8.6ZM9 11.586L16.586 4L18 5.414L10.414 13z"},null,-1),Y=[X];function n1(t,s){return e(),o("svg",W,[...Y])}const X2={name:"carbon-pen",render:n1},e1={class:"slidev-icon",viewBox:"0 0 256 256",width:"1.2em",height:"1.2em"},o1=n("g",{fill:"currentColor"},[n("path",{d:"M213.66 201L201 213.66a8 8 0 0 1-11.31 0l-51.31-51.31a8 8 0 0 0-13 2.46l-17.82 46.41a8 8 0 0 1-14.85-.71L40.41 50.44a8 8 0 0 1 10-10l160.1 52.24a8 8 0 0 1 .71 14.85l-46.41 17.82a8 8 0 0 0-2.46 13l51.31 51.31a8 8 0 0 1 0 11.34",opacity:".2"}),n("path",{d:"M168 132.69L214.08 115l.33-.13a16 16 0 0 0-1.41-29.8L52.92 32.8A15.95 15.95 0 0 0 32.8 52.92L85.07 213a15.82 15.82 0 0 0 14.41 11h.78a15.84 15.84 0 0 0 14.61-9.59l.13-.33L132.69 168L184 219.31a16 16 0 0 0 22.63 0l12.68-12.68a16 16 0 0 0 0-22.63ZM195.31 208L144 156.69a16 16 0 0 0-26 4.93c0 .11-.09.22-.13.32l-17.65 46L48 48l159.85 52.2l-45.95 17.64l-.32.13a16 16 0 0 0-4.93 26L208 195.31Z"})],-1),t1=[o1];function s1(t,s){return e(),o("svg",e1,[...t1])}const Y2={name:"ph-cursor-duotone",render:s1},c1={class:"slidev-icon",viewBox:"0 0 256 256",width:"1.2em",height:"1.2em"},_1=n("path",{fill:"currentColor",d:"m220.49 207.8l-12.69 12.69a12 12 0 0 1-17 0l-56.57-56.57L115 214.08l-.13.33a15.84 15.84 0 0 1-14.61 9.59h-.78a15.82 15.82 0 0 1-14.41-11L32.8 52.92A15.95 15.95 0 0 1 52.92 32.8L213 85.07a16 16 0 0 1 1.41 29.8l-.33.13l-50.16 19.27l56.57 56.56a12 12 0 0 1 0 16.97"},null,-1),l1=[_1];function i1(t,s){return e(),o("svg",c1,[...l1])}const nn={name:"ph-cursor-fill",render:i1},h1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},r1=n("path",{fill:"currentColor",d:"M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6M5.394 6.813L6.81 5.399l3.505 3.506L8.9 10.319zM2 15.005h5v2H2zm3.394 10.193L8.9 21.692l1.414 1.414l-3.505 3.506zM15 25.005h2v5h-2zm6.687-1.9l1.414-1.414l3.506 3.506l-1.414 1.414zm3.313-8.1h5v2h-5zm-3.313-6.101l3.506-3.506l1.414 1.414l-3.506 3.506zM15 2.005h2v5h-2z"},null,-1),a1=[r1];function d1(t,s){return e(),o("svg",h1,[...a1])}const en={name:"carbon-sun",render:d1},u1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},m1=n("path",{fill:"currentColor",d:"M13.503 5.414a15.076 15.076 0 0 0 11.593 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3"},null,-1),v1=[m1];function $1(t,s){return e(),o("svg",u1,[...v1])}const on={name:"carbon-moon",render:$1},p1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},g1=n("path",{fill:"currentColor",d:"M8 4v4H4V4Zm2-2H2v8h8Zm8 2v4h-4V4Zm2-2h-8v8h8Zm8 2v4h-4V4Zm2-2h-8v8h8ZM8 14v4H4v-4Zm2-2H2v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8ZM8 24v4H4v-4Zm2-2H2v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Z"},null,-1),L1=[g1];function f1(t,s){return e(),o("svg",p1,[...L1])}const tn={name:"carbon-apps",render:f1},w1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},x1=n("path",{fill:"currentColor",d:"m18 6l-1.43 1.393L24.15 15H4v2h20.15l-7.58 7.573L18 26l10-10z"},null,-1),M1=[x1];function z1(t,s){return e(),o("svg",w1,[...M1])}const sn={name:"carbon-arrow-right",render:z1},C1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},H1=n("path",{fill:"currentColor",d:"m14 26l1.41-1.41L7.83 17H28v-2H7.83l7.58-7.59L14 6L4 16z"},null,-1),b1=[H1];function B1(t,s){return e(),o("svg",C1,[...b1])}const cn={name:"carbon-arrow-left",render:B1},V1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Z1=n("path",{fill:"currentColor",d:"M20 2v2h6.586L18 12.582L19.414 14L28 5.414V12h2V2zm-6 17.416L12.592 18L4 26.586V20H2v10h10v-2H5.414z"},null,-1),A1=[Z1];function k1(t,s){return e(),o("svg",V1,[...A1])}const _n={name:"carbon-maximize",render:k1},j1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},q1=n("path",{fill:"currentColor",d:"M4 18v2h6.586L2 28.582L3.414 30L12 21.414V28h2V18zM30 3.416L28.592 2L20 10.586V4h-2v10h10v-2h-6.586z"},null,-1),y1=[q1];function E1(t,s){return e(),o("svg",j1,[...y1])}const ln={name:"carbon-minimize",render:E1},S1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},D1=n("path",{fill:"currentColor",d:"m13 24l-9-9l1.414-1.414L13 21.171L26.586 7.586L28 9z"},null,-1),F1=[D1];function G1(t,s){return e(),o("svg",S1,[...F1])}const hn={name:"carbon-checkmark",render:G1},N1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},I1=n("path",{fill:"currentColor",d:"M17.414 16L24 9.414L22.586 8L16 14.586L9.414 8L8 9.414L14.586 16L8 22.586L9.414 24L16 17.414L22.586 24L24 22.586z"},null,-1),J1=[I1];function K1(t,s){return e(),o("svg",N1,[...J1])}const rn={name:"carbon-close",render:K1},O1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},P1=n("path",{fill:"currentColor",d:"M16 2C8.2 2 2 8.2 2 16s6.2 14 14 14s14-6.2 14-14S23.8 2 16 2m0 26C9.4 28 4 22.6 4 16S9.4 4 16 4s12 5.4 12 12s-5.4 12-12 12"},null,-1),Q1=n("path",{fill:"currentColor",d:"M21.4 23L16 17.6L10.6 23L9 21.4l5.4-5.4L9 10.6L10.6 9l5.4 5.4L21.4 9l1.6 1.6l-5.4 5.4l5.4 5.4z"},null,-1),R1=[P1,Q1];function T1(t,s){return e(),o("svg",O1,[...R1])}const an={name:"carbon-close-outline",render:T1},U1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},W1=n("path",{fill:"currentColor",d:"M2 16A14 14 0 1 0 16 2A14 14 0 0 0 2 16m23.15 7.75L8.25 6.85a12 12 0 0 1 16.9 16.9M8.24 25.16a12 12 0 0 1-1.4-16.89l16.89 16.89a12 12 0 0 1-15.49 0"},null,-1),X1=[W1];function Y1(t,s){return e(),o("svg",U1,[...X1])}const dn={name:"carbon-error",render:Y1},n2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},e2=n("path",{fill:"currentColor",d:"M28.59 13.31L30 11.9L20 2l-1.31 1.42l1.18 1.18l-11.49 9.72l-1.72-1.71L5.25 14l5.66 5.68L2 28.58L3.41 30l8.91-8.91L18 26.75l1.39-1.42l-1.71-1.71l9.72-11.49ZM16.26 22.2L9.8 15.74L21.29 6L26 10.71Z"},null,-1),o2=[e2];function t2(t,s){return e(),o("svg",n2,[...o2])}const un={name:"carbon-pin",render:t2},s2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},c2=n("path",{fill:"currentColor",d:"M28.586 13.314L30 11.9L20 2l-1.314 1.415l1.186 1.186L8.38 14.322l-1.716-1.715L5.25 14l5.657 5.677L2 28.583L3.41 30l8.911-8.909L18 26.748l1.393-1.414l-1.716-1.716l9.724-11.49Z"},null,-1),_2=[c2];function l2(t,s){return e(),o("svg",s2,[..._2])}const mn={name:"carbon-pin-filled",render:l2},i2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},h2=n("path",{fill:"currentColor",d:"M12 12h2v12h-2zm6 0h2v12h-2z"},null,-1),r2=n("path",{fill:"currentColor",d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20zm4-26h8v2h-8z"},null,-1),a2=[h2,r2];function d2(t,s){return e(),o("svg",i2,[...a2])}const vn={name:"carbon-trash-can",render:d2},u2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},m2=n("path",{fill:"currentColor",d:"M12 10h12.185l-3.587-3.586L22 5l6 6l-6 6l-1.402-1.415L24.182 12H12a6 6 0 0 0 0 12h8v2h-8a8 8 0 0 1 0-16"},null,-1),v2=[m2];function $2(t,s){return e(),o("svg",u2,[...v2])}const $n={name:"carbon-redo",render:$2},p2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},g2=n("path",{fill:"currentColor",d:"M20 10H7.815l3.587-3.586L10 5l-6 6l6 6l1.402-1.415L7.818 12H20a6 6 0 0 1 0 12h-8v2h8a8 8 0 0 0 0-16"},null,-1),L2=[g2];function f2(t,s){return e(),o("svg",p2,[...L2])}const pn={name:"carbon-undo",render:f2},w2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},x2=n("path",{fill:"currentColor",d:"M7 27h23v2H7zm20.38-16.49l-7.93-7.92a2 2 0 0 0-2.83 0l-14 14a2 2 0 0 0 0 2.83L7.13 24h9.59l10.66-10.66a2 2 0 0 0 0-2.83M15.89 22H8l-4-4l6.31-6.31l7.93 7.92zm3.76-3.76l-7.92-7.93L18 4l8 7.93z"},null,-1),M2=[x2];function z2(t,s){return e(),o("svg",w2,[...M2])}const gn={name:"carbon-erase",render:z2},C2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},H2=n("path",{fill:"currentColor",d:"M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M6 26V6h20v20Z"},null,-1),b2=[H2];function B2(t,s){return e(),o("svg",C2,[...b2])}const Ln={name:"carbon-checkbox",render:B2},V2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Z2=n("path",{fill:"currentColor",d:"M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m0 26a12 12 0 1 1 12-12a12 12 0 0 1-12 12"},null,-1),A2=[Z2];function k2(t,s){return e(),o("svg",V2,[...A2])}const fn={name:"carbon-radio-button",render:k2},j2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},q2=n("path",{fill:"currentColor",d:"M10 6v2h12.59L6 24.59L7.41 26L24 9.41V22h2V6z"},null,-1),y2=[q2];function E2(t,s){return e(),o("svg",j2,[...y2])}const wn={name:"carbon-arrow-up-right",render:E2},S2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},D2=n("path",{fill:"currentColor",d:"M23 28a1 1 0 0 1-.71-.29l-6.13-6.14l-3.33 5a1 1 0 0 1-1 .44a1 1 0 0 1-.81-.7l-6-20A1 1 0 0 1 6.29 5l20 6a1 1 0 0 1 .7.81a1 1 0 0 1-.44 1l-5 3.33l6.14 6.13a1 1 0 0 1 0 1.42l-4 4A1 1 0 0 1 23 28m0-2.41L25.59 23l-7.16-7.15l5.25-3.5L7.49 7.49l4.86 16.19l3.5-5.25Z"},null,-1),F2=[D2];function G2(t,s){return e(),o("svg",S2,[...F2])}const xn={name:"carbon-cursor1",render:G2};export{pn as A,$n as B,vn as C,mn as D,un as E,dn as F,an as G,xn as _,O2 as a,K2 as b,J2 as c,I2 as d,hn as e,ln as f,_n as g,cn as h,sn as i,on as j,en as k,nn as l,Y2 as m,X2 as n,P2 as o,tn as p,W2 as q,U2 as r,T2 as s,R2 as t,Q2 as u,rn as v,wn as w,fn as x,Ln as y,gn as z};
import{d as xe,n as Vt,p as Wt,a as jt,o as I,c as be,w as qt,r as ne,b as se,e as K,F as Gt,f as me,g as je,h as Oe,i as Re,j as Yt,k as ge,l as ht,m as ut,q as Xt,s as Ut,t as Le,u as Kt,v as Zt,x as Qt}from"./vue-O-XuQLLR.js";const Jt=["top","right","bottom","left"],qe=["start","end"],Ge=Jt.reduce((e,t)=>e.concat(t,t+"-"+qe[0],t+"-"+qe[1]),[]),re=Math.min,U=Math.max,eo={left:"right",right:"left",bottom:"top",top:"bottom"},to={start:"end",end:"start"};function Me(e,t,o){return U(e,re(t,o))}function Z(e,t){return typeof e=="function"?e(t):e}function B(e){return e.split("-")[0]}function L(e){return e.split("-")[1]}function ft(e){return e==="x"?"y":"x"}function De(e){return e==="y"?"height":"width"}function ce(e){return["top","bottom"].includes(B(e))?"y":"x"}function Fe(e){return ft(ce(e))}function mt(e,t,o){o===void 0&&(o=!1);const i=L(e),n=Fe(e),s=De(n);let r=n==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=ve(r)),[r,ve(r)]}function oo(e){const t=ve(e);return[we(e),t,we(t)]}function we(e){return e.replace(/start|end/g,t=>to[t])}function io(e,t,o){const i=["left","right"],n=["right","left"],s=["top","bottom"],r=["bottom","top"];switch(e){case"top":case"bottom":return o?t?n:i:t?i:n;case"left":case"right":return t?s:r;default:return[]}}function no(e,t,o,i){const n=L(e);let s=io(B(e),o==="start",i);return n&&(s=s.map(r=>r+"-"+n),t&&(s=s.concat(s.map(we)))),s}function ve(e){return e.replace(/left|right|bottom|top/g,t=>eo[t])}function so(e){return{top:0,right:0,bottom:0,left:0,...e}}function gt(e){return typeof e!="number"?so(e):{top:e,right:e,bottom:e,left:e}}function ee(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ye(e,t,o){let{reference:i,floating:n}=e;const s=ce(t),r=Fe(t),a=De(r),l=B(t),d=s==="y",f=i.x+i.width/2-n.width/2,c=i.y+i.height/2-n.height/2,u=i[a]/2-n[a]/2;let p;switch(l){case"top":p={x:f,y:i.y-n.height};break;case"bottom":p={x:f,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:c};break;case"left":p={x:i.x-n.width,y:c};break;default:p={x:i.x,y:i.y}}switch(L(t)){case"start":p[r]-=u*(o&&d?-1:1);break;case"end":p[r]+=u*(o&&d?-1:1);break}return p}const ro=async(e,t,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:r}=o,a=s.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(t));let d=await r.getElementRects({reference:e,floating:t,strategy:n}),{x:f,y:c}=Ye(d,i,l),u=i,p={},h=0;for(let v=0;v<a.length;v++){const{name:y,fn:m}=a[v],{x:g,y:$,data:x,reset:_}=await m({x:f,y:c,initialPlacement:i,placement:u,strategy:n,middlewareData:p,rects:d,platform:r,elements:{reference:e,floating:t}});f=g??f,c=$??c,p={...p,[y]:{...p[y],...x}},_&&h<=50&&(h++,typeof _=="object"&&(_.placement&&(u=_.placement),_.rects&&(d=_.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:n}):_.rects),{x:f,y:c}=Ye(d,u,l)),v=-1)}return{x:f,y:c,placement:u,strategy:n,middlewareData:p}};async function Te(e,t){var o;t===void 0&&(t={});const{x:i,y:n,platform:s,rects:r,elements:a,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:u=!1,padding:p=0}=Z(t,e),h=gt(p),y=a[u?c==="floating"?"reference":"floating":c],m=ee(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(y)))==null||o?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:d,rootBoundary:f,strategy:l})),g=c==="floating"?{...r.floating,x:i,y:n}:r.reference,$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement($))?await(s.getScale==null?void 0:s.getScale($))||{x:1,y:1}:{x:1,y:1},_=ee(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:$,strategy:l}):g);return{top:(m.top-_.top+h.top)/x.y,bottom:(_.bottom-m.bottom+h.bottom)/x.y,left:(m.left-_.left+h.left)/x.x,right:(_.right-m.right+h.right)/x.x}}const ao=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:i,placement:n,rects:s,platform:r,elements:a,middlewareData:l}=t,{element:d,padding:f=0}=Z(e,t)||{};if(d==null)return{};const c=gt(f),u={x:o,y:i},p=Fe(n),h=De(p),v=await r.getDimensions(d),y=p==="y",m=y?"top":"left",g=y?"bottom":"right",$=y?"clientHeight":"clientWidth",x=s.reference[h]+s.reference[p]-u[p]-s.floating[h],_=u[p]-s.reference[p],b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(d));let T=b?b[$]:0;(!T||!await(r.isElement==null?void 0:r.isElement(b)))&&(T=a.floating[$]||s.floating[h]);const O=x/2-_/2,N=T/2-v[h]/2-1,S=re(c[m],N),k=re(c[g],N),P=S,Y=T-v[h]-k,C=T/2-v[h]/2+O,H=Me(P,C,Y),E=!l.arrow&&L(n)!=null&&C!==H&&s.reference[h]/2-(C<P?S:k)-v[h]/2<0,F=E?C<P?C-P:C-Y:0;return{[p]:u[p]+F,data:{[p]:H,centerOffset:C-H-F,...E&&{alignmentOffset:F}},reset:E}}});function lo(e,t,o){return(e?[...o.filter(n=>L(n)===e),...o.filter(n=>L(n)!==e)]:o.filter(n=>B(n)===n)).filter(n=>e?L(n)===e||(t?we(n)!==n:!1):!0)}const po=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,i,n;const{rects:s,middlewareData:r,placement:a,platform:l,elements:d}=t,{crossAxis:f=!1,alignment:c,allowedPlacements:u=Ge,autoAlignment:p=!0,...h}=Z(e,t),v=c!==void 0||u===Ge?lo(c||null,p,u):u,y=await Te(t,h),m=((o=r.autoPlacement)==null?void 0:o.index)||0,g=v[m];if(g==null)return{};const $=mt(g,s,await(l.isRTL==null?void 0:l.isRTL(d.floating)));if(a!==g)return{reset:{placement:v[0]}};const x=[y[B(g)],y[$[0]],y[$[1]]],_=[...((i=r.autoPlacement)==null?void 0:i.overflows)||[],{placement:g,overflows:x}],b=v[m+1];if(b)return{data:{index:m+1,overflows:_},reset:{placement:b}};const T=_.map(S=>{const k=L(S.placement);return[S.placement,k&&f?S.overflows.slice(0,2).reduce((P,Y)=>P+Y,0):S.overflows[0],S.overflows]}).sort((S,k)=>S[1]-k[1]),N=((n=T.filter(S=>S[2].slice(0,L(S[0])?2:3).every(k=>k<=0))[0])==null?void 0:n[0])||T[0][0];return N!==a?{data:{index:m+1,overflows:_},reset:{placement:N}}:{}}}},co=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,i;const{placement:n,middlewareData:s,rects:r,initialPlacement:a,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:u,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...y}=Z(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const m=B(n),g=B(a)===a,$=await(l.isRTL==null?void 0:l.isRTL(d.floating)),x=u||(g||!v?[ve(a)]:oo(a));!u&&h!=="none"&&x.push(...no(a,v,h,$));const _=[a,...x],b=await Te(t,y),T=[];let O=((i=s.flip)==null?void 0:i.overflows)||[];if(f&&T.push(b[m]),c){const P=mt(n,r,$);T.push(b[P[0]],b[P[1]])}if(O=[...O,{placement:n,overflows:T}],!T.every(P=>P<=0)){var N,S;const P=(((N=s.flip)==null?void 0:N.index)||0)+1,Y=_[P];if(Y)return{data:{index:P,overflows:O},reset:{placement:Y}};let C=(S=O.filter(H=>H.overflows[0]<=0).sort((H,E)=>H.overflows[1]-E.overflows[1])[0])==null?void 0:S.placement;if(!C)switch(p){case"bestFit":{var k;const H=(k=O.map(E=>[E.placement,E.overflows.filter(F=>F>0).reduce((F,It)=>F+It,0)]).sort((E,F)=>E[1]-F[1])[0])==null?void 0:k[0];H&&(C=H);break}case"initialPlacement":C=a;break}if(n!==C)return{reset:{placement:C}}}return{}}}};async function ho(e,t){const{placement:o,platform:i,elements:n}=e,s=await(i.isRTL==null?void 0:i.isRTL(n.floating)),r=B(o),a=L(o),l=ce(o)==="y",d=["left","top"].includes(r)?-1:1,f=s&&l?-1:1,c=Z(t,e);let{mainAxis:u,crossAxis:p,alignmentAxis:h}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return a&&typeof h=="number"&&(p=a==="end"?h*-1:h),l?{x:p*f,y:u*d}:{x:u*d,y:p*f}}const uo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,i;const{x:n,y:s,placement:r,middlewareData:a}=t,l=await ho(t,e);return r===((o=a.offset)==null?void 0:o.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:n+l.x,y:s+l.y,data:{...l,placement:r}}}}},fo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:i,placement:n}=t,{mainAxis:s=!0,crossAxis:r=!1,limiter:a={fn:y=>{let{x:m,y:g}=y;return{x:m,y:g}}},...l}=Z(e,t),d={x:o,y:i},f=await Te(t,l),c=ce(B(n)),u=ft(c);let p=d[u],h=d[c];if(s){const y=u==="y"?"top":"left",m=u==="y"?"bottom":"right",g=p+f[y],$=p-f[m];p=Me(g,p,$)}if(r){const y=c==="y"?"top":"left",m=c==="y"?"bottom":"right",g=h+f[y],$=h-f[m];h=Me(g,h,$)}const v=a.fn({...t,[u]:p,[c]:h});return{...v,data:{x:v.x-o,y:v.y-i}}}}},mo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:o,rects:i,platform:n,elements:s}=t,{apply:r=()=>{},...a}=Z(e,t),l=await Te(t,a),d=B(o),f=L(o),c=ce(o)==="y",{width:u,height:p}=i.floating;let h,v;d==="top"||d==="bottom"?(h=d,v=f===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,h=f==="end"?"top":"bottom");const y=p-l[h],m=u-l[v],g=!t.middlewareData.shift;let $=y,x=m;if(c){const b=u-l.left-l.right;x=f||g?re(m,b):b}else{const b=p-l.top-l.bottom;$=f||g?re(y,b):b}if(g&&!f){const b=U(l.left,0),T=U(l.right,0),O=U(l.top,0),N=U(l.bottom,0);c?x=u-2*(b!==0||T!==0?b+T:U(l.left,l.right)):$=p-2*(O!==0||N!==0?O+N:U(l.top,l.bottom))}await r({...t,availableWidth:x,availableHeight:$});const _=await n.getDimensions(s.floating);return u!==_.width||p!==_.height?{reset:{rects:!0}}:{}}}};function A(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function R(e){return A(e).getComputedStyle(e)}const Xe=Math.min,te=Math.max,ye=Math.round;function wt(e){const t=R(e);let o=parseFloat(t.width),i=parseFloat(t.height);const n=e.offsetWidth,s=e.offsetHeight,r=ye(o)!==n||ye(i)!==s;return r&&(o=n,i=s),{width:o,height:i,fallback:r}}function j(e){return yt(e)?(e.nodeName||"").toLowerCase():""}let he;function vt(){if(he)return he;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(he=e.brands.map(t=>t.brand+"/"+t.version).join(" "),he):navigator.userAgent}function D(e){return e instanceof A(e).HTMLElement}function q(e){return e instanceof A(e).Element}function yt(e){return e instanceof A(e).Node}function Ue(e){if(typeof ShadowRoot>"u")return!1;const t=A(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Se(e){const{overflow:t,overflowX:o,overflowY:i,display:n}=R(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+o)&&!["inline","contents"].includes(n)}function go(e){return["table","td","th"].includes(j(e))}function Ie(e){const t=/firefox/i.test(vt()),o=R(e),i=o.backdropFilter||o.WebkitBackdropFilter;return o.transform!=="none"||o.perspective!=="none"||(i?i!=="none":!1)||t&&o.willChange==="filter"||t&&(o.filter?o.filter!=="none":!1)||["transform","perspective"].some(n=>o.willChange.includes(n))||["paint","layout","strict","content"].some(n=>{const s=o.contain;return s!=null?s.includes(n):!1})}function $t(){return!/^((?!chrome|android).)*safari/i.test(vt())}function Ve(e){return["html","body","#document"].includes(j(e))}function _t(e){return q(e)?e:e.contextElement}const xt={x:1,y:1};function Q(e){const t=_t(e);if(!D(t))return xt;const o=t.getBoundingClientRect(),{width:i,height:n,fallback:s}=wt(t);let r=(s?ye(o.width):o.width)/i,a=(s?ye(o.height):o.height)/n;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}function ae(e,t,o,i){var n,s;t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),a=_t(e);let l=xt;t&&(i?q(i)&&(l=Q(i)):l=Q(e));const d=a?A(a):window,f=!$t()&&o;let c=(r.left+(f&&((n=d.visualViewport)==null?void 0:n.offsetLeft)||0))/l.x,u=(r.top+(f&&((s=d.visualViewport)==null?void 0:s.offsetTop)||0))/l.y,p=r.width/l.x,h=r.height/l.y;if(a){const v=A(a),y=i&&q(i)?A(i):i;let m=v.frameElement;for(;m&&i&&y!==v;){const g=Q(m),$=m.getBoundingClientRect(),x=getComputedStyle(m);$.x+=(m.clientLeft+parseFloat(x.paddingLeft))*g.x,$.y+=(m.clientTop+parseFloat(x.paddingTop))*g.y,c*=g.x,u*=g.y,p*=g.x,h*=g.y,c+=$.x,u+=$.y,m=A(m).frameElement}}return{width:p,height:h,top:u,right:c+p,bottom:u+h,left:c,x:c,y:u}}function G(e){return((yt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function wo(e){let{rect:t,offsetParent:o,strategy:i}=e;const n=D(o),s=G(o);if(o===s)return t;let r={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((n||!n&&i!=="fixed")&&((j(o)!=="body"||Se(s))&&(r=Pe(o)),D(o))){const d=ae(o);a=Q(o),l.x=d.x+o.clientLeft,l.y=d.y+o.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-r.scrollLeft*a.x+l.x,y:t.y*a.y-r.scrollTop*a.y+l.y}}function bt(e){return ae(G(e)).left+Pe(e).scrollLeft}function vo(e){const t=G(e),o=Pe(e),i=e.ownerDocument.body,n=te(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=te(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let r=-o.scrollLeft+bt(e);const a=-o.scrollTop;return R(i).direction==="rtl"&&(r+=te(t.clientWidth,i.clientWidth)-n),{width:n,height:s,x:r,y:a}}function le(e){if(j(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ue(e)&&e.host||G(e);return Ue(t)?t.host:t}function Tt(e){const t=le(e);return Ve(t)?t.ownerDocument.body:D(t)&&Se(t)?t:Tt(t)}function $e(e,t){var o;t===void 0&&(t=[]);const i=Tt(e),n=i===((o=e.ownerDocument)==null?void 0:o.body),s=A(i);return n?t.concat(s,s.visualViewport||[],Se(i)?i:[]):t.concat(i,$e(i))}function yo(e,t){const o=A(e),i=G(e),n=o.visualViewport;let s=i.clientWidth,r=i.clientHeight,a=0,l=0;if(n){s=n.width,r=n.height;const d=$t();(d||!d&&t==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:s,height:r,x:a,y:l}}function $o(e,t){const o=ae(e,!0,t==="fixed"),i=o.top+e.clientTop,n=o.left+e.clientLeft,s=D(e)?Q(e):{x:1,y:1},r=e.clientWidth*s.x,a=e.clientHeight*s.y,l=n*s.x,d=i*s.y;return{width:r,height:a,x:l,y:d}}function Ke(e,t,o){return t==="viewport"?ee(yo(e,o)):q(t)?ee($o(t,o)):ee(vo(G(e)))}function _o(e,t){const o=t.get(e);if(o)return o;let i=$e(e).filter(a=>q(a)&&j(a)!=="body"),n=null;const s=R(e).position==="fixed";let r=s?le(e):e;for(;q(r)&&!Ve(r);){const a=R(r),l=Ie(r);(s?!l&&!n:!l&&a.position==="static"&&!!n&&["absolute","fixed"].includes(n.position))?i=i.filter(f=>f!==r):n=a,r=le(r)}return t.set(e,i),i}function xo(e){let{element:t,boundary:o,rootBoundary:i,strategy:n}=e;const r=[...o==="clippingAncestors"?_o(t,this._c):[].concat(o),i],a=r[0],l=r.reduce((d,f)=>{const c=Ke(t,f,n);return d.top=te(c.top,d.top),d.right=Xe(c.right,d.right),d.bottom=Xe(c.bottom,d.bottom),d.left=te(c.left,d.left),d},Ke(t,a,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function bo(e){return D(e)?wt(e):e.getBoundingClientRect()}function Ze(e){return!D(e)||R(e).position==="fixed"?null:e.offsetParent}function To(e){let t=le(e);for(;D(t)&&!Ve(t);){if(Ie(t))return t;t=le(t)}return null}function Qe(e){const t=A(e);let o=Ze(e);for(;o&&go(o)&&R(o).position==="static";)o=Ze(o);return o&&(j(o)==="html"||j(o)==="body"&&R(o).position==="static"&&!Ie(o))?t:o||To(e)||t}function So(e,t,o){const i=D(t),n=G(t),s=ae(e,!0,o==="fixed",t);let r={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(i||!i&&o!=="fixed")if((j(t)!=="body"||Se(n))&&(r=Pe(t)),D(t)){const l=ae(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else n&&(a.x=bt(n));return{x:s.left+r.scrollLeft-a.x,y:s.top+r.scrollTop-a.y,width:s.width,height:s.height}}const Po={getClippingRect:xo,convertOffsetParentRelativeRectToViewportRelativeRect:wo,isElement:q,getDimensions:bo,getOffsetParent:Qe,getDocumentElement:G,getScale:Q,async getElementRects(e){let{reference:t,floating:o,strategy:i}=e;const n=this.getOffsetParent||Qe,s=this.getDimensions;return{reference:So(t,await n(o),i),floating:{x:0,y:0,...await s(o)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>R(e).direction==="rtl"},Co=(e,t,o)=>{const i=new Map,n={platform:Po,...o},s={...n.platform,_c:i};return ro(e,t,{...n,platform:s})};function St(e,t){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(typeof t[o]=="object"&&e[o]?St(e[o],t[o]):e[o]=t[o])}const M={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function de(e,t){let o=M.themes[e]||{},i;do i=o[t],typeof i>"u"?o.$extend?o=M.themes[o.$extend]||{}:(o=null,i=M[t]):o=null;while(o);return i}function Ao(e){const t=[e];let o=M.themes[e]||{};do o.$extend&&!o.$resetCss?(t.push(o.$extend),o=M.themes[o.$extend]||{}):o=null;while(o);return t.map(i=>`v-popper--theme-${i}`)}function Je(e){const t=[e];let o=M.themes[e]||{};do o.$extend?(t.push(o.$extend),o=M.themes[o.$extend]||{}):o=null;while(o);return t}let J=!1;if(typeof window<"u"){J=!1;try{const e=Object.defineProperty({},"passive",{get(){J=!0}});window.addEventListener("test",null,e)}catch{}}let Pt=!1;typeof window<"u"&&typeof navigator<"u"&&(Pt=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Ct=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),et={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},tt={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function ot(e,t){const o=e.indexOf(t);o!==-1&&e.splice(o,1)}function Ne(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const z=[];let X=null;const it={};function nt(e){let t=it[e];return t||(t=it[e]=[]),t}let He=function(){};typeof window<"u"&&(He=window.Element);function w(e){return function(t){return de(t.theme,e)}}const ke="__floating-vue__popper",At=()=>xe({name:"VPopper",provide(){return{[ke]:{parentPopper:this}}},inject:{[ke]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:w("disabled")},positioningDisabled:{type:Boolean,default:w("positioningDisabled")},placement:{type:String,default:w("placement"),validator:e=>Ct.includes(e)},delay:{type:[String,Number,Object],default:w("delay")},distance:{type:[Number,String],default:w("distance")},skidding:{type:[Number,String],default:w("skidding")},triggers:{type:Array,default:w("triggers")},showTriggers:{type:[Array,Function],default:w("showTriggers")},hideTriggers:{type:[Array,Function],default:w("hideTriggers")},popperTriggers:{type:Array,default:w("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:w("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:w("popperHideTriggers")},container:{type:[String,Object,He,Boolean],default:w("container")},boundary:{type:[String,He],default:w("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:w("strategy")},autoHide:{type:[Boolean,Function],default:w("autoHide")},handleResize:{type:Boolean,default:w("handleResize")},instantMove:{type:Boolean,default:w("instantMove")},eagerMount:{type:Boolean,default:w("eagerMount")},popperClass:{type:[String,Array,Object],default:w("popperClass")},computeTransformOrigin:{type:Boolean,default:w("computeTransformOrigin")},autoMinSize:{type:Boolean,default:w("autoMinSize")},autoSize:{type:[Boolean,String],default:w("autoSize")},autoMaxSize:{type:Boolean,default:w("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:w("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:w("preventOverflow")},overflowPadding:{type:[Number,String],default:w("overflowPadding")},arrowPadding:{type:[Number,String],default:w("arrowPadding")},arrowOverflow:{type:Boolean,default:w("arrowOverflow")},flip:{type:Boolean,default:w("flip")},shift:{type:Boolean,default:w("shift")},shiftCrossAxis:{type:Boolean,default:w("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:w("noAutoFocus")},disposeTimeout:{type:Number,default:w("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[ke])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:o=!1}={}){var i,n;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(o||!this.disabled)&&(((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var o;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((o=this.parentPopper)==null?void 0:o.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(uo({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(po({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(fo({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(co({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(ao({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:n,middlewareData:s})=>{let r;const{centerOffset:a}=s.arrow;return i.startsWith("top")||i.startsWith("bottom")?r=Math.abs(a)>n.reference.width/2:r=Math.abs(a)>n.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){const i=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:n,placement:s,middlewareData:r})=>{var a;if((a=r.autoSize)!=null&&a.skip)return{};let l,d;return s.startsWith("top")||s.startsWith("bottom")?l=n.reference.width:d=n.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="max"?"maxHeight":"height"]=d!=null?`${d}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(mo({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:i,availableHeight:n})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=n!=null?`${n}px`:null}})));const o=await Co(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:{...o.middlewareData.arrow,...o.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),X&&this.instantMove&&X.instantMove&&X!==this.parentPopper){X.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(X=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Ne(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...$e(this.$_referenceNode),...$e(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),o=this.$_popperNode.querySelector(".v-popper__wrapper"),i=o.parentNode.getBoundingClientRect(),n=t.x+t.width/2-(i.left+o.offsetLeft),s=t.y+t.height/2-(i.top+o.offsetTop);this.result.transformOrigin=`${n}px ${s}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let o=0;o<z.length;o++)t=z[o],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}z.push(this),document.body.classList.add("v-popper--some-open");for(const t of Je(this.theme))nt(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Ne(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,ot(z,this),z.length===0&&document.body.classList.remove("v-popper--some-open");for(const o of Je(this.theme)){const i=nt(o);ot(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${o}`)}X===this&&(X=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Ne(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=o=>{this.isShown&&!this.$_hideInProgress||(o.usedByTooltip=!0,!this.$_preventShow&&this.show({event:o}))};this.$_registerTriggerListeners(this.$_targetNodes,et,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],et,this.popperTriggers,this.popperShowTriggers,e);const t=o=>{o.usedByTooltip||this.hide({event:o})};this.$_registerTriggerListeners(this.$_targetNodes,tt,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],tt,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,o){this.$_events.push({targetNodes:e,eventType:t,handler:o}),e.forEach(i=>i.addEventListener(t,o,J?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,o,i,n){let s=o;i!=null&&(s=typeof i=="function"?i(s):i),s.forEach(r=>{const a=t[r];a&&this.$_registerEventListeners(e,a,n)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(o=>{const{targetNodes:i,eventType:n,handler:s}=o;!e||e===n?i.forEach(r=>r.removeEventListener(n,s)):t.push(o)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const o of this.$_targetNodes){const i=o.getAttribute(e);i&&(o.removeAttribute(e),o.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const o in e){const i=e[o];i==null?t.removeAttribute(o):t.setAttribute(o,i)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(oe>=e.left&&oe<=e.right&&ie>=e.top&&ie<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),o=oe-V,i=ie-W,n=t.left+t.width/2-V+(t.top+t.height/2)-W+t.width+t.height,s=V+o*n,r=W+i*n;return ue(V,W,s,r,t.left,t.top,t.left,t.bottom)||ue(V,W,s,r,t.left,t.top,t.right,t.top)||ue(V,W,s,r,t.right,t.top,t.right,t.bottom)||ue(V,W,s,r,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Pt){const e=J?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>st(t,!0),e),document.addEventListener("touchend",t=>rt(t,!0),e)}else window.addEventListener("mousedown",e=>st(e,!1),!0),window.addEventListener("click",e=>rt(e,!1),!0);window.addEventListener("resize",Nt)}function st(e,t){if(M.autoHideOnMousedown)Ot(e,t);else for(let o=0;o<z.length;o++){const i=z[o];try{i.mouseDownContains=i.popperNode().contains(e.target)}catch{}}}function rt(e,t){M.autoHideOnMousedown||Ot(e,t)}function Ot(e,t){const o={};for(let i=z.length-1;i>=0;i--){const n=z[i];try{const s=n.containsGlobalTarget=n.mouseDownContains||n.popperNode().contains(e.target);n.pendingHide=!1,requestAnimationFrame(()=>{if(n.pendingHide=!1,!o[n.randomId]&&at(n,s,e)){if(n.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&s){let a=n.parentPopper;for(;a;)o[a.randomId]=!0,a=a.parentPopper;return}let r=n.parentPopper;for(;r&&at(r,r.containsGlobalTarget,e);)r.$_handleGlobalClose(e,t),r=r.parentPopper}})}catch{}}}function at(e,t,o){return o.closeAllPopover||o.closePopover&&t||Oo(e,o)&&!t}function Oo(e,t){if(typeof e.autoHide=="function"){const o=e.autoHide(t);return e.lastAutoHide=o,o}return e.autoHide}function Nt(){for(let e=0;e<z.length;e++)z[e].$_computePosition()}let V=0,W=0,oe=0,ie=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{V=oe,W=ie,oe=e.clientX,ie=e.clientY},J?{passive:!0}:void 0);function ue(e,t,o,i,n,s,r,a){const l=((r-n)*(t-s)-(a-s)*(e-n))/((a-s)*(o-e)-(r-n)*(i-t)),d=((o-e)*(t-s)-(i-t)*(e-n))/((a-s)*(o-e)-(r-n)*(i-t));return l>=0&&l<=1&&d>=0&&d<=1}const No={extends:At()},Ce=(e,t)=>{const o=e.__vccOpts||e;for(const[i,n]of t)o[i]=n;return o};function ko(e,t,o,i,n,s){return I(),se("div",{ref:"reference",class:Re(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[me(e.$slots,"default",Xt(Ut(e.slotData)))],2)}const zo=Ce(No,[["render",ko]]);function Lo(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var o=e.indexOf("Trident/");if(o>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}let fe;function Ee(){Ee.init||(Ee.init=!0,fe=Lo()!==-1)}var Ae={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Ee(),Vt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",fe&&this.$el.appendChild(e),e.data="about:blank",fe||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!fe&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Mo=qt();Wt("data-v-b329ee4c");const Ho={class:"resize-observer",tabindex:"-1"};jt();const Eo=Mo((e,t,o,i,n,s)=>(I(),be("div",Ho)));Ae.render=Eo;Ae.__scopeId="data-v-b329ee4c";Ae.__file="src/components/ResizeObserver.vue";const kt=(e="theme")=>({computed:{themeClass(){return Ao(this[e])}}}),Bo=xe({name:"VPopperContent",components:{ResizeObserver:Ae},mixins:[kt()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),Ro=["id","aria-hidden","tabindex","data-popper-placement"],Do={ref:"inner",class:"v-popper__inner"},Fo=K("div",{class:"v-popper__arrow-outer"},null,-1),Io=K("div",{class:"v-popper__arrow-inner"},null,-1),Vo=[Fo,Io];function Wo(e,t,o,i,n,s){const r=ne("ResizeObserver");return I(),se("div",{id:e.popperId,ref:"popover",class:Re(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Oe(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Yt(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[K("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),K("div",{class:"v-popper__wrapper",style:Oe(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[K("div",Do,[e.mounted?(I(),se(Gt,{key:0},[K("div",null,[me(e.$slots,"default")]),e.handleResize?(I(),be(r,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):je("",!0)],64)):je("",!0)],512),K("div",{ref:"arrow",class:"v-popper__arrow-container",style:Oe(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Vo,4)],4)],46,Ro)}const zt=Ce(Bo,[["render",Wo]]),Lt={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Be=function(){};typeof window<"u"&&(Be=window.Element);const jo=xe({name:"VPopperWrapper",components:{Popper:zo,PopperContent:zt},mixins:[Lt,kt("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Be,Boolean],default:void 0},boundary:{type:[String,Be],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function qo(e,t,o,i,n,s){const r=ne("PopperContent"),a=ne("Popper");return I(),be(a,ut({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:ge(({popperId:l,isShown:d,shouldMountContent:f,skipTransition:c,autoHide:u,show:p,hide:h,handleResize:v,onResize:y,classes:m,result:g})=>[me(e.$slots,"default",{shown:d,show:p,hide:h}),ht(r,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:d,mounted:f,"skip-transition":c,"auto-hide":u,"handle-resize":v,classes:m,result:g,onHide:h,onResize:y},{default:ge(()=>[me(e.$slots,"popper",{shown:d,hide:h})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const We=Ce(jo,[["render",qo]]),Go={...We,name:"VDropdown",vPopperTheme:"dropdown"},Mt={...We,name:"VMenu",vPopperTheme:"menu"},Yo={...We,name:"VTooltip",vPopperTheme:"tooltip"},Xo=xe({name:"VTooltipDirective",components:{Popper:At(),PopperContent:zt},mixins:[Lt],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>de(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>de(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,o=this.content(this);o.then?o.then(i=>this.onResult(t,i)):this.onResult(t,o)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),Uo=["innerHTML"],Ko=["textContent"];function Zo(e,t,o,i,n,s){const r=ne("PopperContent"),a=ne("Popper");return I(),be(a,ut({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:ge(({popperId:l,isShown:d,shouldMountContent:f,skipTransition:c,autoHide:u,hide:p,handleResize:h,onResize:v,classes:y,result:m})=>[ht(r,{ref:"popperContent",class:Re({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:d,mounted:f,"skip-transition":c,"auto-hide":u,"handle-resize":h,classes:y,result:m,onHide:p,onResize:v},{default:ge(()=>[e.html?(I(),se("div",{key:0,innerHTML:e.finalContent},null,8,Uo)):(I(),se("div",{key:1,textContent:Qt(e.finalContent)},null,8,Ko))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const Qo=Ce(Xo,[["render",Zo]]),Ht="v-popper--has-tooltip";function Jo(e,t){let o=e.placement;if(!o&&t)for(const i of Ct)t[i]&&(o=i);return o||(o=de(e.theme||"tooltip","placement")),o}function Et(e,t,o){let i;const n=typeof t;return n==="string"?i={content:t}:t&&n==="object"?i=t:i={content:!1},i.placement=Jo(i,o),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let ze,pe,ei=0;function ti(){if(ze)return;pe=Le([]),ze=Kt({name:"VTooltipDirectiveApp",setup(){return{directives:pe}},render(){return this.directives.map(t=>Zt(Qo,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),ze.mount(e)}function oi(e,t,o){ti();const i=Le(Et(e,t,o)),n=Le(!1),s={id:ei++,options:i,shown:n};return pe.value.push(s),e.classList&&e.classList.add(Ht),e.$_popper={options:i,item:s,show(){n.value=!0},hide(){n.value=!1}}}function Bt(e){if(e.$_popper){const t=pe.value.indexOf(e.$_popper.item);t!==-1&&pe.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Ht)}function lt(e,{value:t,modifiers:o}){const i=Et(e,t,o);if(!i.content||de(i.theme||"tooltip","disabled"))Bt(e);else{let n;e.$_popper?(n=e.$_popper,n.options.value=i):n=oi(e,t,o),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?n.show():n.hide())}}const ii={beforeMount:lt,updated:lt,beforeUnmount(e){Bt(e)}};function dt(e){e.addEventListener("mousedown",_e),e.addEventListener("click",_e),e.addEventListener("touchstart",Rt,J?{passive:!0}:!1)}function pt(e){e.removeEventListener("mousedown",_e),e.removeEventListener("click",_e),e.removeEventListener("touchstart",Rt),e.removeEventListener("touchend",Dt),e.removeEventListener("touchcancel",Ft)}function _e(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Rt(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const o=e.changedTouches[0];t.$_vclosepopover_touchPoint=o,t.addEventListener("touchend",Dt),t.addEventListener("touchcancel",Ft)}}function Dt(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const o=e.changedTouches[0],i=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(o.screenY-i.screenY)<20&&Math.abs(o.screenX-i.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Ft(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const ni={beforeMount(e,{value:t,modifiers:o}){e.$_closePopoverModifiers=o,(typeof t>"u"||t)&&dt(e)},updated(e,{value:t,oldValue:o,modifiers:i}){e.$_closePopoverModifiers=i,t!==o&&(typeof t>"u"||t?dt(e):pt(e))},beforeUnmount(e){pt(e)}},li=Mt;function si(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,St(M,t),e.directive("tooltip",ii),e.directive("close-popper",ni),e.component("VTooltip",Yo),e.component("VDropdown",Go),e.component("VMenu",Mt))}const ri={version:"5.2.2",install:si,options:M},ct=typeof navigator<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),di={install:(e,t={})=>{typeof window<"u"&&window.addEventListener("click",o=>{o.composedPath().some(n=>{var s,r,a,l;return((r=(s=n==null?void 0:n.classList)==null?void 0:s.contains)==null?void 0:r.call(s,"vp-code-group"))||((l=(a=n==null?void 0:n.classList)==null?void 0:a.contains)==null?void 0:l.call(a,"tabs"))})&&Nt()},{passive:!0}),e.use(ri,{...t,themes:{twoslash:{$extend:"dropdown",triggers:ct?["touch"]:["hover","touch"],popperTriggers:ct?["touch"]:["hover","touch"],placement:"bottom-start",overflowPadding:10,delay:0,handleResize:!1,autoHide:!0,instantMove:!0,flip:!1,arrowPadding:8,autoBoundaryMaxSize:!0},"twoslash-query":{$extend:"twoslash",triggers:["click"],popperTriggers:["click"],autoHide:!1},"twoslash-completion":{$extend:"twoslash-query",triggers:["click"],popperTriggers:["click"],autoHide:!1,distance:0,arrowOverflow:!0},...t.theme}})}};export{li as L,di as T,Nt as t};
.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper__popper{z-index:10000;top:0;left:0;outline:none}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;pointer-events:none}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.v-popper__inner{position:relative;box-sizing:border-box;overflow-y:auto}.v-popper__inner>div{position:relative;z-index:1;max-width:inherit;max-height:inherit}.v-popper__arrow-container{position:absolute;width:10px;height:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;position:absolute;top:0;left:0;width:0;height:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-tooltip .v-popper__inner{background:#000c;color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#000;border-radius:6px;border:1px solid #ddd;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}:root{--twoslash-border-color: #8888;--twoslash-underline-color: currentColor;--twoslash-highlighted-border: #c37d0d50;--twoslash-highlighted-bg: #c37d0d20;--twoslash-popup-bg: #f8f8f8;--twoslash-popup-color: inherit;--twoslash-popup-shadow: rgba(0, 0, 0, .08) 0px 1px 4px;--twoslash-docs-color: #888;--twoslash-docs-font: sans-serif;--twoslash-code-font: inherit;--twoslash-code-font-size: 1em;--twoslash-matched-color: inherit;--twoslash-unmatched-color: #888;--twoslash-cursor-color: #8888;--twoslash-error-color: #d45656;--twoslash-error-bg: #d4565620;--twoslash-warn-color: #c37d0d;--twoslash-warn-bg: #c37d0d20;--twoslash-tag-color: #3772cf;--twoslash-tag-bg: #3772cf20;--twoslash-tag-warn-color: var(--twoslash-warn-color);--twoslash-tag-warn-bg: var(--twoslash-warn-bg);--twoslash-tag-annotate-color: #1ba673;--twoslash-tag-annotate-bg: #1ba67320}@media (prefers-reduced-motion: reduce){.twoslash *{transition:none!important}}.twoslash:hover .twoslash-hover{border-color:var(--twoslash-underline-color)}.twoslash .twoslash-hover{border-bottom:1px dotted transparent;transition-timing-function:ease;transition:border-color .3s;position:relative}.twoslash .twoslash-popup-container{position:absolute;opacity:0;display:inline-flex;flex-direction:column;transform:translateY(1.1em);background:var(--twoslash-popup-bg);color:var(--twoslash-popup-color);border:1px solid var(--twoslash-border-color);transition:opacity .3s;border-radius:4px;pointer-events:none;z-index:10;-webkit-user-select:none;user-select:none;text-align:left;box-shadow:var(--twoslash-popup-shadow)}.twoslash .twoslash-query-presisted .twoslash-popup-container{z-index:9;transform:translateY(1.5em)}.twoslash .twoslash-hover:hover .twoslash-popup-container,.twoslash .twoslash-error-hover:hover .twoslash-popup-container,.twoslash .twoslash-query-presisted .twoslash-popup-container{opacity:1;pointer-events:auto}.twoslash .twoslash-popup-container:hover{-webkit-user-select:auto;user-select:auto}.twoslash .twoslash-popup-arrow{position:absolute;top:-4px;left:1em;border-top:1px solid var(--twoslash-border-color);border-right:1px solid var(--twoslash-border-color);background:var(--twoslash-popup-bg);transform:rotate(-45deg);width:6px;height:6px;pointer-events:none}.twoslash .twoslash-popup-code,.twoslash .twoslash-popup-error,.twoslash .twoslash-popup-docs{padding:6px 8px!important}.twoslash .twoslash-popup-code{font-family:var(--twoslash-code-font);font-size:var(--twoslash-code-font-size)}.twoslash .twoslash-popup-docs{color:var(--twoslash-docs-color);font-family:var(--twoslash-docs-font);font-size:.8em;border-top:1px solid var(--twoslash-border-color)}.twoslash .twoslash-popup-error{color:var(--twoslash-error-color);background-color:var(--twoslash-error-bg);font-family:var(--twoslash-docs-font);font-size:.8em}.twoslash .twoslash-popup-docs-tags{display:flex;flex-direction:column;font-family:var(--twoslash-docs-font)}.twoslash .twoslash-popup-docs-tags,.twoslash .twoslash-popup-docs-tag-name{margin-right:.5em}.twoslash .twoslash-popup-docs-tag-name{font-family:var(--twoslash-code-font)}.twoslash .twoslash-error-line{position:relative;background-color:var(--twoslash-error-bg);border-left:3px solid var(--twoslash-error-color);color:var(--twoslash-error-color);padding:6px 12px;margin:.2em 0;min-width:100%;width:max-content}.twoslash .twoslash-error-line.twoslash-error-level-warning{background-color:var(--twoslash-warn-bg);border-left:3px solid var(--twoslash-warn-color);color:var(--twoslash-warn-color)}.twoslash .twoslash-error{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%206%203'%20enable-background%3D'new%200%200%206%203'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%23c94824'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%202.4%2C3%200%2C0.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") repeat-x bottom left;padding-bottom:2px}.twoslash .twoslash-error.twoslash-error-level-warning{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%206%203'%20enable-background%3D'new%200%200%206%203'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%23c37d0d'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%202.4%2C3%200%2C0.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") repeat-x bottom left;padding-bottom:2px}.twoslash .twoslash-completion-cursor{position:relative}.twoslash .twoslash-completion-cursor .twoslash-completion-list{-webkit-user-select:none;user-select:none;position:absolute;top:0;left:0;transform:translateY(1.2em);margin:3px 0 0 -1px;display:inline-block;z-index:8;box-shadow:var(--twoslash-popup-shadow);background:var(--twoslash-popup-bg);border:1px solid var(--twoslash-border-color)}.twoslash-completion-list{width:240px;font-size:.8rem;padding:4px;display:flex;flex-direction:column;gap:4px}.twoslash-completion-list:hover{-webkit-user-select:auto;user-select:auto}.twoslash-completion-list:before{background-color:var(--twoslash-cursor-color);width:2px;position:absolute;top:-1.6em;height:1.4em;left:-1px;content:" "}.twoslash-completion-list li{overflow:hidden;display:flex;align-items:center;gap:.25em;line-height:1em}.twoslash-completion-list li span.twoslash-completions-unmatched{color:var(--twoslash-unmatched-color)}.twoslash-completion-list .deprecated{text-decoration:line-through;opacity:.5}.twoslash-completion-list li span.twoslash-completions-matched{color:var(--twoslash-matched-color)}.twoslash-highlighted{background-color:var(--twoslash-highlighted-bg);border:1px solid var(--twoslash-highlighted-border);padding:1px 2px;margin:-1px -3px;border-radius:4px}.twoslash-completion-list .twoslash-completions-icon{color:var(--twoslash-unmatched-color);width:1em;flex:none}.twoslash .twoslash-tag-line{position:relative;background-color:var(--twoslash-tag-bg);border-left:3px solid var(--twoslash-tag-color);color:var(--twoslash-tag-color);padding:6px 10px;margin:.2em 0;display:flex;align-items:center;gap:.3em;min-width:100%;width:max-content}.twoslash .twoslash-tag-line .twoslash-tag-icon{width:1.1em;color:inherit}.twoslash .twoslash-tag-line.twoslash-tag-error-line{background-color:var(--twoslash-error-bg);border-left:3px solid var(--twoslash-error-color);color:var(--twoslash-error-color)}.twoslash .twoslash-tag-line.twoslash-tag-warn-line{background-color:var(--twoslash-tag-warn-bg);border-left:3px solid var(--twoslash-tag-warn-color);color:var(--twoslash-tag-warn-color)}.twoslash .twoslash-tag-line.twoslash-tag-annotate-line{background-color:var(--twoslash-tag-annotate-bg);border-left:3px solid var(--twoslash-tag-annotate-color);color:var(--twoslash-tag-annotate-color)}:root{--twoslash-popup-bg: var(--vp-c-bg, inherit);--twoslash-popup-color: var(--vp-c-text-1);--twoslash-docs-color: var(--vp-c-text-1);--twoslash-docs-font: var(--vp-font-family-base);--twoslash-code-font: var(--vp-font-family-mono);--twoslash-code-size: var(--vp-code-font-size);--twoslash-underline-color: #8888;--twoslash-border-color: var(--vp-c-border);--twoslash-cursor-color: var(--vp-c-brand);--twoslash-matched-color: var(--vp-c-brand);--twoslash-unmatched-color: var(--vp-c-text-2)}.v-popper--theme-twoslash{z-index:calc(var(--vp-z-index-local-nav) - 1)}.v-popper--theme-twoslash .v-popper__inner{background:var(--twoslash-popup-bg);color:var(--twoslash-popup-color);border-color:var(--twoslash-border-color)}.v-popper--theme-twoslash .v-popper__arrow-outer{border-color:var(--twoslash-border-color)}.v-popper--theme-twoslash .v-popper__arrow-inner{border-color:var(--twoslash-popup-bg)}.twoslash-popup-container{transform:translateY(1.5em)}.twoslash-query-presisted .twoslash-popup-container{transform:translateY(1.8em)}.twoslash .v-popper{display:inline-block}.twoslash-completion-list .twoslash-completions-icon{color:var(--twoslash-unmatched-color)!important}.twoslash-floating .twoslash-popup-code{max-width:600px;display:block;width:fit-content;min-width:100%;padding:6px 12px;line-height:var(--vp-code-line-height);font-size:var(--twoslash-code-size);transition:color .5s;white-space:pre-wrap}.twoslash-floating .twoslash-popup-docs,.twoslash-floating .twoslash-popup-error{padding:0 12px!important;font-family:var(--twoslash-docs-font);font-size:.9em;max-height:500px;max-width:700px;overflow-y:auto;overflow-x:hidden;text-wrap:balance}.twoslash-floating .twoslash-popup-docs{border-top:1px solid var(--twoslash-border-color);color:var(--twoslash-docs-color)}.twoslash-floating .twoslash-popup-error{color:var(--twoslash-error-color)}.twoslash-floating .twoslash-popup-error.twoslash-error-level-warning{color:var(--twoslash-warn-color)}.twoslash-floating .twoslash-popup-docs p,.twoslash-floating .twoslash-popup-error p{margin:0;padding:6px 0;text-wrap:balance}.twoslash-floating .twoslash-popup-docs pre .twoslash-floating .twoslash-popup-error pre{background-color:var(--vp-code-block-bg);border-radius:8px;padding:12px;margin:6px -2px;overflow-x:auto}.twoslash-floating .twoslash-popup-docs-tags{display:flex;flex-direction:column;padding:8px 12px!important}.twoslash-floating .twoslash-popup-docs-tags .twoslash-popup-docs-tag-name{font-family:var(--twoslash-code-font);color:var(--twoslash-unmatched-color);margin-right:.5em}.twoslash-completion-cursor{height:1.2em;width:2px;margin-bottom:-.2em;background:var(--twoslash-cursor-color);display:inline-block;-webkit-user-select:none;user-select:none}.twoslash-floating.twoslash-completion .v-popper__arrow-container{display:none}.twoslash-floating.twoslash-completion .twoslash-completion-list{padding:6px;font-family:var(--twoslash-code-font);font-size:var(--twoslash-code-size)!important}.twoslash-floating.twoslash-completion .twoslash-completion-list li{padding:3px 0}
function O(r,v){for(var u=0;u<v.length;u++){const a=v[u];if(typeof a!="string"&&!Array.isArray(a)){for(const l in a)if(l!=="default"&&!(l in r)){const c=Object.getOwnPropertyDescriptor(a,l);c&&Object.defineProperty(r,l,c.get?c:{enumerable:!0,get:()=>a[l]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var d=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var h={exports:{}};(function(r,v){(function(u,a){a()})(d,function(){function u(e,t){return typeof t>"u"?t={autoBom:!1}:typeof t!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function a(e,t,s){var o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){p(o.response,t,s)},o.onerror=function(){console.error("could not download file")},o.send()}function l(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return 200<=t.status&&299>=t.status}function c(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof d=="object"&&d.global===d?d:void 0,y=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),p=i.saveAs||(typeof window!="object"||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!y?function(e,t,s){var o=i.URL||i.webkitURL,n=document.createElement("a");t=t||e.name||"download",n.download=t,n.rel="noopener",typeof e=="string"?(n.href=e,n.origin===location.origin?c(n):l(n.href)?a(e,t,s):c(n,n.target="_blank")):(n.href=o.createObjectURL(e),setTimeout(function(){o.revokeObjectURL(n.href)},4e4),setTimeout(function(){c(n)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,s){if(t=t||e.name||"download",typeof e!="string")navigator.msSaveOrOpenBlob(u(e,s),t);else if(l(e))a(e,t,s);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){c(o)})}}:function(e,t,s,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return a(e,t,s);var n=e.type==="application/octet-stream",E=/constructor/i.test(i.HTMLElement)||i.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||n&&E||y)&&typeof FileReader<"u"){var w=new FileReader;w.onloadend=function(){var f=w.result;f=b?f:f.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=f:location=f,o=null},w.readAsDataURL(e)}else{var g=i.URL||i.webkitURL,m=g.createObjectURL(e);o?o.location=m:location.href=m,o=null,setTimeout(function(){g.revokeObjectURL(m)},4e4)}});i.saveAs=p.saveAs=p,r.exports=p})})(h);var j=h.exports;const A=_(j),L=O({__proto__:null,default:A},[j]);export{L as F,_ as g};
import{M as Ca,O as Ul,l as qr,c as Ji,U as pp,t as yp,V as ti,d as ri,h as mp,b7 as bp,b8 as Ep,b9 as wp,X as xp}from"./slidev/Mermaid-sWhOKcCj.js";import{a as Tp}from"./createText-f6615236-DY9JQ1lr.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var Qi=function(){var de=function(ee,H,te,S){for(te=te||{},S=ee.length;S--;te[ee[S]]=H);return te},Pe=[1,4],_=[1,13],ve=[1,12],J=[1,15],C=[1,16],T=[1,20],x=[1,19],N=[6,7,8],z=[1,26],Y=[1,24],P=[1,25],Z=[6,7,11],A=[1,6,13,15,16,19,22],U=[1,33],$=[1,34],Q=[1,6,7,11,13,15,16,19,22],ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(H,te,S,V,R,q,he){var pe=q.length-1;switch(R){case 6:case 7:return V;case 8:V.getLogger().trace("Stop NL ");break;case 9:V.getLogger().trace("Stop EOF ");break;case 11:V.getLogger().trace("Stop NL2 ");break;case 12:V.getLogger().trace("Stop EOF2 ");break;case 15:V.getLogger().info("Node: ",q[pe].id),V.addNode(q[pe-1].length,q[pe].id,q[pe].descr,q[pe].type);break;case 16:V.getLogger().trace("Icon: ",q[pe]),V.decorateNode({icon:q[pe]});break;case 17:case 21:V.decorateNode({class:q[pe]});break;case 18:V.getLogger().trace("SPACELIST");break;case 19:V.getLogger().trace("Node: ",q[pe].id),V.addNode(0,q[pe].id,q[pe].descr,q[pe].type);break;case 20:V.decorateNode({icon:q[pe]});break;case 25:V.getLogger().trace("node found ..",q[pe-2]),this.$={id:q[pe-1],descr:q[pe-1],type:V.getType(q[pe-2],q[pe])};break;case 26:this.$={id:q[pe],descr:q[pe],type:V.nodeType.DEFAULT};break;case 27:V.getLogger().trace("node found ..",q[pe-3]),this.$={id:q[pe-3],descr:q[pe-1],type:V.getType(q[pe-2],q[pe])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:Pe},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:Pe},{6:_,7:[1,10],9:9,12:11,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},de(N,[2,3]),{1:[2,2]},de(N,[2,4]),de(N,[2,5]),{1:[2,6],6:_,12:21,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},{6:_,9:22,12:11,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},{6:z,7:Y,10:23,11:P},de(Z,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:T,22:x}),de(Z,[2,18]),de(Z,[2,19]),de(Z,[2,20]),de(Z,[2,21]),de(Z,[2,23]),de(Z,[2,24]),de(Z,[2,26],{19:[1,30]}),{20:[1,31]},{6:z,7:Y,10:32,11:P},{1:[2,7],6:_,12:21,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},de(A,[2,14],{7:U,11:$}),de(Q,[2,8]),de(Q,[2,9]),de(Q,[2,10]),de(Z,[2,15]),de(Z,[2,16]),de(Z,[2,17]),{20:[1,35]},{21:[1,36]},de(A,[2,13],{7:U,11:$}),de(Q,[2,11]),de(Q,[2,12]),{21:[1,37]},de(Z,[2,25]),de(Z,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(H,te){if(te.recoverable)this.trace(H);else{var S=new Error(H);throw S.hash=te,S}},parse:function(H){var te=this,S=[0],V=[],R=[null],q=[],he=this.table,pe="",Ae=0,Ne=0,Ye=2,at=1,dt=q.slice.call(arguments,1),Re=Object.create(this.lexer),Ve={yy:{}};for(var Ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ze)&&(Ve.yy[Ze]=this.yy[Ze]);Re.setInput(H,Ve.yy),Ve.yy.lexer=Re,Ve.yy.parser=this,typeof Re.yylloc>"u"&&(Re.yylloc={});var nt=Re.yylloc;q.push(nt);var ft=Re.options&&Re.options.ranges;typeof Ve.yy.parseError=="function"?this.parseError=Ve.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(){var jt;return jt=V.pop()||Re.lex()||at,typeof jt!="number"&&(jt instanceof Array&&(V=jt,jt=V.pop()),jt=te.symbols_[jt]||jt),jt}for(var tt,yt,Et,Pt,gt={},dr,qt,nn,Kr;;){if(yt=S[S.length-1],this.defaultActions[yt]?Et=this.defaultActions[yt]:((tt===null||typeof tt>"u")&&(tt=it()),Et=he[yt]&&he[yt][tt]),typeof Et>"u"||!Et.length||!Et[0]){var Da="";Kr=[];for(dr in he[yt])this.terminals_[dr]&&dr>Ye&&Kr.push("'"+this.terminals_[dr]+"'");Re.showPosition?Da="Parse error on line "+(Ae+1)+`:
`+Re.showPosition()+`
Expecting `+Kr.join(", ")+", got '"+(this.terminals_[tt]||tt)+"'":Da="Parse error on line "+(Ae+1)+": Unexpected "+(tt==at?"end of input":"'"+(this.terminals_[tt]||tt)+"'"),this.parseError(Da,{text:Re.match,token:this.terminals_[tt]||tt,line:Re.yylineno,loc:nt,expected:Kr})}if(Et[0]instanceof Array&&Et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+yt+", token: "+tt);switch(Et[0]){case 1:S.push(tt),R.push(Re.yytext),q.push(Re.yylloc),S.push(Et[1]),tt=null,Ne=Re.yyleng,pe=Re.yytext,Ae=Re.yylineno,nt=Re.yylloc;break;case 2:if(qt=this.productions_[Et[1]][1],gt.$=R[R.length-qt],gt._$={first_line:q[q.length-(qt||1)].first_line,last_line:q[q.length-1].last_line,first_column:q[q.length-(qt||1)].first_column,last_column:q[q.length-1].last_column},ft&&(gt._$.range=[q[q.length-(qt||1)].range[0],q[q.length-1].range[1]]),Pt=this.performAction.apply(gt,[pe,Ne,Ae,Ve.yy,Et[1],R,q].concat(dt)),typeof Pt<"u")return Pt;qt&&(S=S.slice(0,-1*qt*2),R=R.slice(0,-1*qt),q=q.slice(0,-1*qt)),S.push(this.productions_[Et[1]][0]),R.push(gt.$),q.push(gt._$),nn=he[S[S.length-2]][S[S.length-1]],S.push(nn);break;case 3:return!0}}return!0}},le=function(){var ee={EOF:1,parseError:function(te,S){if(this.yy.parser)this.yy.parser.parseError(te,S);else throw new Error(te)},setInput:function(H,te){return this.yy=te||this.yy||{},this._input=H,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var H=this._input[0];this.yytext+=H,this.yyleng++,this.offset++,this.match+=H,this.matched+=H;var te=H.match(/(?:\r\n?|\n).*/g);return te?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),H},unput:function(H){var te=H.length,S=H.split(/(?:\r\n?|\n)/g);this._input=H+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-te),this.offset-=te;var V=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1&&(this.yylineno-=S.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:S?(S.length===V.length?this.yylloc.first_column:0)+V[V.length-S.length].length-S[0].length:this.yylloc.first_column-te},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-te]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(H){this.unput(this.match.slice(H))},pastInput:function(){var H=this.matched.substr(0,this.matched.length-this.match.length);return(H.length>20?"...":"")+H.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var H=this.match;return H.length<20&&(H+=this._input.substr(0,20-H.length)),(H.substr(0,20)+(H.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var H=this.pastInput(),te=new Array(H.length+1).join("-");return H+this.upcomingInput()+`
`+te+"^"},test_match:function(H,te){var S,V,R;if(this.options.backtrack_lexer&&(R={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(R.yylloc.range=this.yylloc.range.slice(0))),V=H[0].match(/(?:\r\n?|\n).*/g),V&&(this.yylineno+=V.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:V?V[V.length-1].length-V[V.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+H[0].length},this.yytext+=H[0],this.match+=H[0],this.matches=H,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(H[0].length),this.matched+=H[0],S=this.performAction.call(this,this.yy,this,te,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),S)return S;if(this._backtrack){for(var q in R)this[q]=R[q];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var H,te,S,V;this._more||(this.yytext="",this.match="");for(var R=this._currentRules(),q=0;q<R.length;q++)if(S=this._input.match(this.rules[R[q]]),S&&(!te||S[0].length>te[0].length)){if(te=S,V=q,this.options.backtrack_lexer){if(H=this.test_match(S,R[q]),H!==!1)return H;if(this._backtrack){te=!1;continue}else return!1}else if(!this.options.flex)break}return te?(H=this.test_match(te,R[V]),H!==!1?H:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var te=this.next();return te||this.lex()},begin:function(te){this.conditionStack.push(te)},popState:function(){var te=this.conditionStack.length-1;return te>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(te){return te=this.conditionStack.length-1-Math.abs(te||0),te>=0?this.conditionStack[te]:"INITIAL"},pushState:function(te){this.begin(te)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(te,S,V,R){switch(V){case 0:return te.getLogger().trace("Found comment",S.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:te.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return te.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:te.getLogger().trace("end icon"),this.popState();break;case 10:return te.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return te.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return te.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return te.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:te.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return te.getLogger().trace("description:",S.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),te.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),te.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),te.getLogger().trace("node end ...",S.yytext),"NODE_DEND";case 30:return this.popState(),te.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),te.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),te.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),te.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),te.getLogger().trace("node end (("),"NODE_DEND";case 35:return te.getLogger().trace("Long description:",S.yytext),20;case 36:return te.getLogger().trace("Long description:",S.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return ee}();ne.lexer=le;function j(){this.yy={}}return j.prototype=ne,ne.Parser=j,new j}();Qi.parser=Qi;const Cp=Qi;let sr=[],_l=0,ji={};const Dp=()=>{sr=[],_l=0,ji={}},Sp=function(de){for(let Pe=sr.length-1;Pe>=0;Pe--)if(sr[Pe].level<de)return sr[Pe];return null},Lp=()=>sr.length>0?sr[0]:null,Ap=(de,Pe,_,ve)=>{var J,C;qr.info("addNode",de,Pe,_,ve);const T=Ji();let x=((J=T.mindmap)==null?void 0:J.padding)??ti.mindmap.padding;switch(ve){case St.ROUNDED_RECT:case St.RECT:case St.HEXAGON:x*=2}const N={id:_l++,nodeId:ri(Pe,T),level:de,descr:ri(_,T),type:ve,children:[],width:((C=T.mindmap)==null?void 0:C.maxNodeWidth)??ti.mindmap.maxNodeWidth,padding:x},z=Sp(de);if(z)z.children.push(N),sr.push(N);else if(sr.length===0)sr.push(N);else throw new Error('There can be only one root. No parent could be found for ("'+N.descr+'")')},St={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Op=(de,Pe)=>{switch(qr.debug("In get type",de,Pe),de){case"[":return St.RECT;case"(":return Pe===")"?St.ROUNDED_RECT:St.CLOUD;case"((":return St.CIRCLE;case")":return St.CLOUD;case"))":return St.BANG;case"{{":return St.HEXAGON;default:return St.DEFAULT}},Np=(de,Pe)=>{ji[de]=Pe},Ip=de=>{if(!de)return;const Pe=Ji(),_=sr[sr.length-1];de.icon&&(_.icon=ri(de.icon,Pe)),de.class&&(_.class=ri(de.class,Pe))},Mp=de=>{switch(de){case St.DEFAULT:return"no-border";case St.RECT:return"rect";case St.ROUNDED_RECT:return"rounded-rect";case St.CIRCLE:return"circle";case St.CLOUD:return"cloud";case St.BANG:return"bang";case St.HEXAGON:return"hexgon";default:return"no-border"}},Rp=()=>qr,kp=de=>ji[de],Pp={clear:Dp,addNode:Ap,getMindmap:Lp,nodeType:St,getType:Op,setElementForId:Np,decorateNode:Ip,type2Str:Mp,getLogger:Rp,getElementById:kp},Bp=Pp;var Yl={exports:{}};(function(de,Pe){(function(_,ve){de.exports=ve()})(Ca,function(){function _(t){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(t)}function ve(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function J(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function C(t,e,r){return e&&J(t.prototype,e),r&&J(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function T(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function x(t,e){return N(t)||z(t,e)||Y(t,e)||Z()}function N(t){if(Array.isArray(t))return t}function z(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var a=[],n=!0,i=!1,o,s;try{for(r=r.call(t);!(n=(o=r.next()).done)&&(a.push(o.value),!(e&&a.length===e));n=!0);}catch(u){i=!0,s=u}finally{try{!n&&r.return!=null&&r.return()}finally{if(i)throw s}}return a}}function Y(t,e){if(t){if(typeof t=="string")return P(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P(t,e)}}function P(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function Z(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var A=typeof window>"u"?null:window,U=A?A.navigator:null;A&&A.document;var $=_(""),Q=_({}),ne=_(function(){}),le=typeof HTMLElement>"u"?"undefined":_(HTMLElement),j=function(e){return e&&e.instanceString&&H(e.instanceString)?e.instanceString():null},ee=function(e){return e!=null&&_(e)==$},H=function(e){return e!=null&&_(e)===ne},te=function(e){return!pe(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},S=function(e){return e!=null&&_(e)===Q&&!te(e)&&e.constructor===Object},V=function(e){return e!=null&&_(e)===Q},R=function(e){return e!=null&&_(e)===_(1)&&!isNaN(e)},q=function(e){return R(e)&&Math.floor(e)===e},he=function(e){if(le!=="undefined")return e!=null&&e instanceof HTMLElement},pe=function(e){return Ae(e)||Ne(e)},Ae=function(e){return j(e)==="collection"&&e._private.single},Ne=function(e){return j(e)==="collection"&&!e._private.single},Ye=function(e){return j(e)==="core"},at=function(e){return j(e)==="stylesheet"},dt=function(e){return j(e)==="event"},Re=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},Ve=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},Ze=function(e){return S(e)&&R(e.x1)&&R(e.x2)&&R(e.y1)&&R(e.y2)},nt=function(e){return V(e)&&H(e.then)},ft=function(){return U&&U.userAgent.match(/msie|trident|edge/i)},it=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);return i.join("$")});var a=function n(){var i=this,o=arguments,s,u=r.apply(i,o),l=n.cache;return(s=l[u])||(s=l[u]=e.apply(i,o)),s};return a.cache={},a},tt=it(function(t){return t.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}),yt=it(function(t){return t.replace(/(-\w)/g,function(e){return e[1].toUpperCase()})}),Et=it(function(t,e){return t+e[0].toUpperCase()+e.substring(1)},function(t,e){return t+"$"+e}),Pt=function(e){return Re(e)?e:e.charAt(0).toUpperCase()+e.substring(1)},gt="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",dr="rgb[a]?\\(("+gt+"[%]?)\\s*,\\s*("+gt+"[%]?)\\s*,\\s*("+gt+"[%]?)(?:\\s*,\\s*("+gt+"))?\\)",qt="rgb[a]?\\((?:"+gt+"[%]?)\\s*,\\s*(?:"+gt+"[%]?)\\s*,\\s*(?:"+gt+"[%]?)(?:\\s*,\\s*(?:"+gt+"))?\\)",nn="hsl[a]?\\(("+gt+")\\s*,\\s*("+gt+"[%])\\s*,\\s*("+gt+"[%])(?:\\s*,\\s*("+gt+"))?\\)",Kr="hsl[a]?\\((?:"+gt+")\\s*,\\s*(?:"+gt+"[%])\\s*,\\s*(?:"+gt+"[%])(?:\\s*,\\s*(?:"+gt+"))?\\)",Da="\\#[0-9a-fA-F]{3}",jt="\\#[0-9a-fA-F]{6}",eo=function(e,r){return e<r?-1:e>r?1:0},Kl=function(e,r){return-1*eo(e,r)},He=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r<e.length;r++){var a=e[r];if(a!=null)for(var n=Object.keys(a),i=0;i<n.length;i++){var o=n[i];t[o]=a[o]}}return t},Zl=function(e){if(!(!(e.length===4||e.length===7)||e[0]!=="#")){var r=e.length===4,a,n,i,o=16;return r?(a=parseInt(e[1]+e[1],o),n=parseInt(e[2]+e[2],o),i=parseInt(e[3]+e[3],o)):(a=parseInt(e[1]+e[2],o),n=parseInt(e[3]+e[4],o),i=parseInt(e[5]+e[6],o)),[a,n,i]}},Ql=function(e){var r,a,n,i,o,s,u,l;function v(c,y,p){return p<0&&(p+=1),p>1&&(p-=1),p<1/6?c+(y-c)*6*p:p<1/2?y:p<2/3?c+(y-c)*(2/3-p)*6:c}var f=new RegExp("^"+nn+"$").exec(e);if(f){if(a=parseInt(f[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(f[2]),n<0||n>100||(n=n/100,i=parseFloat(f[3]),i<0||i>100)||(i=i/100,o=f[4],o!==void 0&&(o=parseFloat(o),o<0||o>1)))return;if(n===0)s=u=l=Math.round(i*255);else{var h=i<.5?i*(1+n):i+n-i*n,d=2*i-h;s=Math.round(255*v(d,h,a+1/3)),u=Math.round(255*v(d,h,a)),l=Math.round(255*v(d,h,a-1/3))}r=[s,u,l,o]}return r},Jl=function(e){var r,a=new RegExp("^"+dr+"$").exec(e);if(a){r=[];for(var n=[],i=1;i<=3;i++){var o=a[i];if(o[o.length-1]==="%"&&(n[i]=!0),o=parseFloat(o),n[i]&&(o=o/100*255),o<0||o>255)return;r.push(Math.floor(o))}var s=n[1]||n[2]||n[3],u=n[1]&&n[2]&&n[3];if(s&&!u)return;var l=a[4];if(l!==void 0){if(l=parseFloat(l),l<0||l>1)return;r.push(l)}}return r},jl=function(e){return tu[e.toLowerCase()]},eu=function(e){return(te(e)?e:null)||jl(e)||Zl(e)||Jl(e)||Ql(e)},tu={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},to=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i<n;i++){var o=a[i];if(S(o))throw Error("Tried to set map with object key");i<a.length-1?(r[o]==null&&(r[o]={}),r=r[o]):r[o]=e.value}},ro=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i<n;i++){var o=a[i];if(S(o))throw Error("Tried to get map with object key");if(r=r[o],r==null)return r}return r};function ru(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var kr=ru,Sa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Ca<"u"?Ca:typeof self<"u"?self:{};function au(t,e){return e={exports:{}},t(e,e.exports),e.exports}var nu=typeof Sa=="object"&&Sa&&Sa.Object===Object&&Sa,iu=nu,ou=typeof self=="object"&&self&&self.Object===Object&&self,su=iu||ou||Function("return this")(),on=su,lu=function(){return on.Date.now()},ai=lu,uu=/\s/;function vu(t){for(var e=t.length;e--&&uu.test(t.charAt(e)););return e}var fu=vu,hu=/^\s+/;function cu(t){return t&&t.slice(0,fu(t)+1).replace(hu,"")}var du=cu,gu=on.Symbol,Zr=gu,ao=Object.prototype,pu=ao.hasOwnProperty,yu=ao.toString,La=Zr?Zr.toStringTag:void 0;function mu(t){var e=pu.call(t,La),r=t[La];try{t[La]=void 0;var a=!0}catch{}var n=yu.call(t);return a&&(e?t[La]=r:delete t[La]),n}var bu=mu,Eu=Object.prototype,wu=Eu.toString;function xu(t){return wu.call(t)}var Tu=xu,Cu="[object Null]",Du="[object Undefined]",no=Zr?Zr.toStringTag:void 0;function Su(t){return t==null?t===void 0?Du:Cu:no&&no in Object(t)?bu(t):Tu(t)}var io=Su;function Lu(t){return t!=null&&typeof t=="object"}var Au=Lu,Ou="[object Symbol]";function Nu(t){return typeof t=="symbol"||Au(t)&&io(t)==Ou}var Aa=Nu,oo=NaN,Iu=/^[-+]0x[0-9a-f]+$/i,Mu=/^0b[01]+$/i,Ru=/^0o[0-7]+$/i,ku=parseInt;function Pu(t){if(typeof t=="number")return t;if(Aa(t))return oo;if(kr(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=kr(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=du(t);var r=Mu.test(t);return r||Ru.test(t)?ku(t.slice(2),r?2:8):Iu.test(t)?oo:+t}var so=Pu,Bu="Expected a function",Fu=Math.max,Gu=Math.min;function zu(t,e,r){var a,n,i,o,s,u,l=0,v=!1,f=!1,h=!0;if(typeof t!="function")throw new TypeError(Bu);e=so(e)||0,kr(r)&&(v=!!r.leading,f="maxWait"in r,i=f?Fu(so(r.maxWait)||0,e):i,h="trailing"in r?!!r.trailing:h);function d(L){var w=a,k=n;return a=n=void 0,l=L,o=t.apply(k,w),o}function c(L){return l=L,s=setTimeout(g,e),v?d(L):o}function y(L){var w=L-u,k=L-l,D=e-w;return f?Gu(D,i-k):D}function p(L){var w=L-u,k=L-l;return u===void 0||w>=e||w<0||f&&k>=i}function g(){var L=ai();if(p(L))return m(L);s=setTimeout(g,y(L))}function m(L){return s=void 0,h&&a?d(L):(a=n=void 0,o)}function b(){s!==void 0&&clearTimeout(s),l=0,a=u=n=s=void 0}function E(){return s===void 0?o:m(ai())}function M(){var L=ai(),w=p(L);if(a=arguments,n=this,u=L,w){if(s===void 0)return c(u);if(f)return clearTimeout(s),s=setTimeout(g,e),d(u)}return s===void 0&&(s=setTimeout(g,e)),o}return M.cancel=b,M.flush=E,M}var sn=zu,ni=A?A.performance:null,lo=ni&&ni.now?function(){return ni.now()}:function(){return Date.now()},Vu=function(){if(A){if(A.requestAnimationFrame)return function(t){A.requestAnimationFrame(t)};if(A.mozRequestAnimationFrame)return function(t){A.mozRequestAnimationFrame(t)};if(A.webkitRequestAnimationFrame)return function(t){A.webkitRequestAnimationFrame(t)};if(A.msRequestAnimationFrame)return function(t){A.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(lo())},1e3/60)}}(),ln=function(e){return Vu(e)},gr=lo,Qr=9261,uo=65599,Oa=5381,vo=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qr,a=r,n;n=e.next(),!n.done;)a=a*uo+n.value|0;return a},Na=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qr;return r*uo+e|0},Ia=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oa;return(r<<5)+r+e|0},$u=function(e,r){return e*2097152+r},wr=function(e){return e[0]*2097152+e[1]},un=function(e,r){return[Na(e[0],r[0]),Ia(e[1],r[1])]},Uu=function(e,r){var a={value:0,done:!1},n=0,i=e.length,o={next:function(){return n<i?a.value=e[n++]:a.done=!0,a}};return vo(o,r)},Pr=function(e,r){var a={value:0,done:!1},n=0,i=e.length,o={next:function(){return n<i?a.value=e.charCodeAt(n++):a.done=!0,a}};return vo(o,r)},fo=function(){return _u(arguments)},_u=function(e){for(var r,a=0;a<e.length;a++){var n=e[a];a===0?r=Pr(n):r=Pr(n,r)}return r},ho=!0,Yu=console.warn!=null,Hu=console.trace!=null,ii=Number.MAX_SAFE_INTEGER||9007199254740991,co=function(){return!0},vn=function(){return!1},go=function(){return 0},oi=function(){},xt=function(e){throw new Error(e)},po=function(e){if(e!==void 0)ho=!!e;else return ho},ht=function(e){po()&&(Yu?console.warn(e):(console.log(e),Hu&&console.trace()))},Xu=function(e){return He({},e)},lr=function(e){return e==null?e:te(e)?e.slice():S(e)?Xu(e):e},Wu=function(e){return e.slice()},yo=function(e,r){for(r=e="";e++<36;r+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return r},qu={},mo=function(){return qu},At=function(e){var r=Object.keys(e);return function(a){for(var n={},i=0;i<r.length;i++){var o=r[i],s=a==null?void 0:a[o];n[o]=s===void 0?e[o]:s}return n}},xr=function(e,r,a){for(var n=e.length-1;n>=0&&!(e[n]===r&&(e.splice(n,1),a));n--);},si=function(e){e.splice(0,e.length)},Ku=function(e,r){for(var a=0;a<r.length;a++){var n=r[a];e.push(n)}},er=function(e,r,a){return a&&(r=Et(a,r)),e[r]},Tr=function(e,r,a,n){a&&(r=Et(a,r)),e[r]=n},Zu=function(){function t(){ve(this,t),this._obj={}}return C(t,[{key:"set",value:function(r,a){return this._obj[r]=a,this}},{key:"delete",value:function(r){return this._obj[r]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(r){return this._obj[r]!==void 0}},{key:"get",value:function(r){return this._obj[r]}}]),t}(),ur=typeof Map<"u"?Map:Zu,Qu="undefined",Ju=function(){function t(e){if(ve(this,t),this._obj=Object.create(null),this.size=0,e!=null){var r;e.instanceString!=null&&e.instanceString()===this.instanceString()?r=e.toArray():r=e;for(var a=0;a<r.length;a++)this.add(r[a])}}return C(t,[{key:"instanceString",value:function(){return"set"}},{key:"add",value:function(r){var a=this._obj;a[r]!==1&&(a[r]=1,this.size++)}},{key:"delete",value:function(r){var a=this._obj;a[r]===1&&(a[r]=0,this.size--)}},{key:"clear",value:function(){this._obj=Object.create(null)}},{key:"has",value:function(r){return this._obj[r]===1}},{key:"toArray",value:function(){var r=this;return Object.keys(this._obj).filter(function(a){return r.has(a)})}},{key:"forEach",value:function(r,a){return this.toArray().forEach(r,a)}}]),t}(),Jr=(typeof Set>"u"?"undefined":_(Set))!==Qu?Set:Ju,fn=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!Ye(e)){xt("An element must have a core reference and parameters set");return}var n=r.group;if(n==null&&(r.data&&r.data.source!=null&&r.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){xt("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?n==="edges":!!r.pannable,active:!1,classes:new Jr,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),r.renderedPosition){var o=r.renderedPosition,s=e.pan(),u=e.zoom();i.position={x:(o.x-s.x)/u,y:(o.y-s.y)/u}}var l=[];te(r.classes)?l=r.classes:ee(r.classes)&&(l=r.classes.split(/\s+/));for(var v=0,f=l.length;v<f;v++){var h=l[v];!h||h===""||i.classes.add(h)}this.createEmitter();var d=r.style||r.css;d&&(ht("Setting a `style` bypass at element creation should be done only when absolutely necessary. Try to use the stylesheet instead."),this.style(d)),(a===void 0||a)&&this.restore()},bo=function(e){return e={bfs:e.bfs||!e.dfs,dfs:e.dfs||!e.bfs},function(a,n,i){var o;S(a)&&!pe(a)&&(o=a,a=o.roots||o.root,n=o.visit,i=o.directed),i=arguments.length===2&&!H(n)?n:i,n=H(n)?n:function(){};for(var s=this._private.cy,u=a=ee(a)?this.filter(a):a,l=[],v=[],f={},h={},d={},c=0,y,p=this.byGroup(),g=p.nodes,m=p.edges,b=0;b<u.length;b++){var E=u[b],M=E.id();E.isNode()&&(l.unshift(E),e.bfs&&(d[M]=!0,v.push(E)),h[M]=0)}for(var L=function(){var X=e.bfs?l.shift():l.pop(),B=X.id();if(e.dfs){if(d[B])return"continue";d[B]=!0,v.push(X)}var re=h[B],K=f[B],W=K!=null?K.source():null,ae=K!=null?K.target():null,ue=K==null?void 0:X.same(W)?ae[0]:W[0],me=void 0;if(me=n(X,K,ue,c++,re),me===!0)return y=X,"break";if(me===!1)return"break";for(var ie=X.connectedEdges().filter(function(De){return(!i||De.source().same(X))&&m.has(De)}),ge=0;ge<ie.length;ge++){var Ee=ie[ge],Ce=Ee.connectedNodes().filter(function(De){return!De.same(X)&&g.has(De)}),we=Ce.id();Ce.length!==0&&!d[we]&&(Ce=Ce[0],l.push(Ce),e.bfs&&(d[we]=!0,v.push(Ce)),f[we]=Ee,h[we]=h[B]+1)}};l.length!==0;){var w=L();if(w!=="continue"&&w==="break")break}for(var k=s.collection(),D=0;D<v.length;D++){var F=v[D],G=f[F.id()];G!=null&&k.push(G),k.push(F)}return{path:s.collection(k),found:s.collection(y)}}},Ma={breadthFirstSearch:bo({bfs:!0}),depthFirstSearch:bo({dfs:!0})};Ma.bfs=Ma.breadthFirstSearch,Ma.dfs=Ma.depthFirstSearch;var ju=au(function(t,e){(function(){var r,a,n,i,o,s,u,l,v,f,h,d,c,y,p;n=Math.floor,f=Math.min,a=function(g,m){return g<m?-1:g>m?1:0},v=function(g,m,b,E,M){var L;if(b==null&&(b=0),M==null&&(M=a),b<0)throw new Error("lo must be non-negative");for(E==null&&(E=g.length);b<E;)L=n((b+E)/2),M(m,g[L])<0?E=L:b=L+1;return[].splice.apply(g,[b,b-b].concat(m)),m},s=function(g,m,b){return b==null&&(b=a),g.push(m),y(g,0,g.length-1,b)},o=function(g,m){var b,E;return m==null&&(m=a),b=g.pop(),g.length?(E=g[0],g[0]=b,p(g,0,m)):E=b,E},l=function(g,m,b){var E;return b==null&&(b=a),E=g[0],g[0]=m,p(g,0,b),E},u=function(g,m,b){var E;return b==null&&(b=a),g.length&&b(g[0],m)<0&&(E=[g[0],m],m=E[0],g[0]=E[1],p(g,0,b)),m},i=function(g,m){var b,E,M,L,w,k;for(m==null&&(m=a),L=(function(){k=[];for(var D=0,F=n(g.length/2);0<=F?D<F:D>F;0<=F?D++:D--)k.push(D);return k}).apply(this).reverse(),w=[],E=0,M=L.length;E<M;E++)b=L[E],w.push(p(g,b,m));return w},c=function(g,m,b){var E;if(b==null&&(b=a),E=g.indexOf(m),E!==-1)return y(g,0,E,b),p(g,E,b)},h=function(g,m,b){var E,M,L,w,k;if(b==null&&(b=a),M=g.slice(0,m),!M.length)return M;for(i(M,b),k=g.slice(m),L=0,w=k.length;L<w;L++)E=k[L],u(M,E,b);return M.sort(b).reverse()},d=function(g,m,b){var E,M,L,w,k,D,F,G,I;if(b==null&&(b=a),m*10<=g.length){if(L=g.slice(0,m).sort(b),!L.length)return L;for(M=L[L.length-1],F=g.slice(m),w=0,D=F.length;w<D;w++)E=F[w],b(E,M)<0&&(v(L,E,0,null,b),L.pop(),M=L[L.length-1]);return L}for(i(g,b),I=[],k=0,G=f(m,g.length);0<=G?k<G:k>G;0<=G?++k:--k)I.push(o(g,b));return I},y=function(g,m,b,E){var M,L,w;for(E==null&&(E=a),M=g[b];b>m;){if(w=b-1>>1,L=g[w],E(M,L)<0){g[b]=L,b=w;continue}break}return g[b]=M},p=function(g,m,b){var E,M,L,w,k;for(b==null&&(b=a),M=g.length,k=m,L=g[m],E=2*m+1;E<M;)w=E+1,w<M&&!(b(g[E],g[w])<0)&&(E=w),g[m]=g[E],m=E,E=2*m+1;return g[m]=L,y(g,k,m,b)},r=function(){g.push=s,g.pop=o,g.replace=l,g.pushpop=u,g.heapify=i,g.updateItem=c,g.nlargest=h,g.nsmallest=d;function g(m){this.cmp=m??a,this.nodes=[]}return g.prototype.push=function(m){return s(this.nodes,m,this.cmp)},g.prototype.pop=function(){return o(this.nodes,this.cmp)},g.prototype.peek=function(){return this.nodes[0]},g.prototype.contains=function(m){return this.nodes.indexOf(m)!==-1},g.prototype.replace=function(m){return l(this.nodes,m,this.cmp)},g.prototype.pushpop=function(m){return u(this.nodes,m,this.cmp)},g.prototype.heapify=function(){return i(this.nodes,this.cmp)},g.prototype.updateItem=function(m){return c(this.nodes,m,this.cmp)},g.prototype.clear=function(){return this.nodes=[]},g.prototype.empty=function(){return this.nodes.length===0},g.prototype.size=function(){return this.nodes.length},g.prototype.clone=function(){var m;return m=new g,m.nodes=this.nodes.slice(0),m},g.prototype.toArray=function(){return this.nodes.slice(0)},g.prototype.insert=g.prototype.push,g.prototype.top=g.prototype.peek,g.prototype.front=g.prototype.peek,g.prototype.has=g.prototype.contains,g.prototype.copy=g.prototype.clone,g}(),function(g,m){return t.exports=m()}(this,function(){return r})}).call(Sa)}),Ra=ju,ev=At({root:null,weight:function(e){return 1},directed:!1}),tv={dijkstra:function(e){if(!S(e)){var r=arguments;e={root:r[0],weight:r[1],directed:r[2]}}var a=ev(e),n=a.root,i=a.weight,o=a.directed,s=this,u=i,l=ee(n)?this.filter(n)[0]:n[0],v={},f={},h={},d=this.byGroup(),c=d.nodes,y=d.edges;y.unmergeBy(function(re){return re.isLoop()});for(var p=function(K){return v[K.id()]},g=function(K,W){v[K.id()]=W,m.updateItem(K)},m=new Ra(function(re,K){return p(re)-p(K)}),b=0;b<c.length;b++){var E=c[b];v[E.id()]=E.same(l)?0:1/0,m.push(E)}for(var M=function(K,W){for(var ae=(o?K.edgesTo(W):K.edgesWith(W)).intersect(y),ue=1/0,me,ie=0;ie<ae.length;ie++){var ge=ae[ie],Ee=u(ge);(Ee<ue||!me)&&(ue=Ee,me=ge)}return{edge:me,dist:ue}};m.size()>0;){var L=m.pop(),w=p(L),k=L.id();if(h[k]=w,w!==1/0)for(var D=L.neighborhood().intersect(c),F=0;F<D.length;F++){var G=D[F],I=G.id(),X=M(L,G),B=w+X.dist;B<p(G)&&(g(G,B),f[I]={node:L,edge:X.edge})}}return{distanceTo:function(K){var W=ee(K)?c.filter(K)[0]:K[0];return h[W.id()]},pathTo:function(K){var W=ee(K)?c.filter(K)[0]:K[0],ae=[],ue=W,me=ue.id();if(W.length>0)for(ae.unshift(W);f[me];){var ie=f[me];ae.unshift(ie.edge),ae.unshift(ie.node),ue=ie.node,me=ue.id()}return s.spawn(ae)}}}},rv={kruskal:function(e){e=e||function(b){return 1};for(var r=this.byGroup(),a=r.nodes,n=r.edges,i=a.length,o=new Array(i),s=a,u=function(E){for(var M=0;M<o.length;M++){var L=o[M];if(L.has(E))return M}},l=0;l<i;l++)o[l]=this.spawn(a[l]);for(var v=n.sort(function(b,E){return e(b)-e(E)}),f=0;f<v.length;f++){var h=v[f],d=h.source()[0],c=h.target()[0],y=u(d),p=u(c),g=o[y],m=o[p];y!==p&&(s.merge(h),g.merge(m),o.splice(p,1))}return s}},av=At({root:null,goal:null,weight:function(e){return 1},heuristic:function(e){return 0},directed:!1}),nv={aStar:function(e){var r=this.cy(),a=av(e),n=a.root,i=a.goal,o=a.heuristic,s=a.directed,u=a.weight;n=r.collection(n)[0],i=r.collection(i)[0];var l=n.id(),v=i.id(),f={},h={},d={},c=new Ra(function(me,ie){return h[me.id()]-h[ie.id()]}),y=new Jr,p={},g={},m=function(ie,ge){c.push(ie),y.add(ge)},b,E,M=function(){b=c.pop(),E=b.id(),y.delete(E)},L=function(ie){return y.has(ie)};m(n,l),f[l]=0,h[l]=o(n);for(var w=0;c.size()>0;){if(M(),w++,E===v){for(var k=[],D=i,F=v,G=g[F];k.unshift(D),G!=null&&k.unshift(G),D=p[F],D!=null;)F=D.id(),G=g[F];return{found:!0,distance:f[E],path:this.spawn(k),steps:w}}d[E]=!0;for(var I=b._private.edges,X=0;X<I.length;X++){var B=I[X];if(this.hasElementWithId(B.id())&&!(s&&B.data("source")!==E)){var re=B.source(),K=B.target(),W=re.id()!==E?re:K,ae=W.id();if(this.hasElementWithId(ae)&&!d[ae]){var ue=f[E]+u(B);if(!L(ae)){f[ae]=ue,h[ae]=ue+o(W),m(W,ae),p[ae]=b,g[ae]=B;continue}ue<f[ae]&&(f[ae]=ue,h[ae]=ue+o(W),p[ae]=b,g[ae]=B)}}}}return{found:!1,distance:void 0,path:void 0,steps:w}}},iv=At({weight:function(e){return 1},directed:!1}),ov={floydWarshall:function(e){for(var r=this.cy(),a=iv(e),n=a.weight,i=a.directed,o=n,s=this.byGroup(),u=s.nodes,l=s.edges,v=u.length,f=v*v,h=function(Ee){return u.indexOf(Ee)},d=function(Ee){return u[Ee]},c=new Array(f),y=0;y<f;y++){var p=y%v,g=(y-p)/v;g===p?c[y]=0:c[y]=1/0}for(var m=new Array(f),b=new Array(f),E=0;E<l.length;E++){var M=l[E],L=M.source()[0],w=M.target()[0];if(L!==w){var k=h(L),D=h(w),F=k*v+D,G=o(M);if(c[F]>G&&(c[F]=G,m[F]=D,b[F]=M),!i){var I=D*v+k;!i&&c[I]>G&&(c[I]=G,m[I]=k,b[I]=M)}}}for(var X=0;X<v;X++)for(var B=0;B<v;B++)for(var re=B*v+X,K=0;K<v;K++){var W=B*v+K,ae=X*v+K;c[re]+c[ae]<c[W]&&(c[W]=c[re]+c[ae],m[W]=m[re])}var ue=function(Ee){return(ee(Ee)?r.filter(Ee):Ee)[0]},me=function(Ee){return h(ue(Ee))},ie={distance:function(Ee,Ce){var we=me(Ee),De=me(Ce);return c[we*v+De]},path:function(Ee,Ce){var we=me(Ee),De=me(Ce),oe=d(we);if(we===De)return oe.collection();if(m[we*v+De]==null)return r.collection();var xe=r.collection(),Le=we,Se;for(xe.merge(oe);we!==De;)Le=we,we=m[we*v+De],Se=b[Le*v+we],xe.merge(Se),xe.merge(d(we));return xe}};return ie}},sv=At({weight:function(e){return 1},directed:!1,root:null}),lv={bellmanFord:function(e){var r=this,a=sv(e),n=a.weight,i=a.directed,o=a.root,s=n,u=this,l=this.cy(),v=this.byGroup(),f=v.edges,h=v.nodes,d=h.length,c=new ur,y=!1,p=[];o=l.collection(o)[0],f.unmergeBy(function(ze){return ze.isLoop()});for(var g=f.length,m=function(Be){var Ue=c.get(Be.id());return Ue||(Ue={},c.set(Be.id(),Ue)),Ue},b=function(Be){return(ee(Be)?l.$(Be):Be)[0]},E=function(Be){return m(b(Be)).dist},M=function(Be){for(var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o,rt=b(Be),je=[],We=rt;;){if(We==null)return r.spawn();var et=m(We),fe=et.edge,O=et.pred;if(je.unshift(We[0]),We.same(Ue)&&je.length>0)break;fe!=null&&je.unshift(fe),We=O}return u.spawn(je)},L=0;L<d;L++){var w=h[L],k=m(w);w.same(o)?k.dist=0:k.dist=1/0,k.pred=null,k.edge=null}for(var D=!1,F=function(Be,Ue,rt,je,We,et){var fe=je.dist+et;fe<We.dist&&!rt.same(je.edge)&&(We.dist=fe,We.pred=Be,We.edge=rt,D=!0)},G=1;G<d;G++){D=!1;for(var I=0;I<g;I++){var X=f[I],B=X.source(),re=X.target(),K=s(X),W=m(B),ae=m(re);F(B,re,X,W,ae,K),i||F(re,B,X,ae,W,K)}if(!D)break}if(D)for(var ue=[],me=0;me<g;me++){var ie=f[me],ge=ie.source(),Ee=ie.target(),Ce=s(ie),we=m(ge).dist,De=m(Ee).dist;if(we+Ce<De||!i&&De+Ce<we)if(y||(ht("Graph contains a negative weight cycle for Bellman-Ford"),y=!0),e.findNegativeWeightCycles!==!1){var oe=[];we+Ce<De&&oe.push(ge),!i&&De+Ce<we&&oe.push(Ee);for(var xe=oe.length,Le=0;Le<xe;Le++){var Se=oe[Le],Oe=[Se];Oe.push(m(Se).edge);for(var Fe=m(Se).pred;Oe.indexOf(Fe)===-1;)Oe.push(Fe),Oe.push(m(Fe).edge),Fe=m(Fe).pred;Oe=Oe.slice(Oe.indexOf(Fe));for(var Xe=Oe[0].id(),Ie=0,Me=2;Me<Oe.length;Me+=2)Oe[Me].id()<Xe&&(Xe=Oe[Me].id(),Ie=Me);Oe=Oe.slice(Ie).concat(Oe.slice(0,Ie)),Oe.push(Oe[0]);var $e=Oe.map(function(ze){return ze.id()}).join(",");ue.indexOf($e)===-1&&(p.push(u.spawn(Oe)),ue.push($e))}}else break}return{distanceTo:E,pathTo:M,hasNegativeWeightCycle:y,negativeWeightCycles:p}}},uv=Math.sqrt(2),vv=function(e,r,a){a.length===0&&xt("Karger-Stein must be run on a connected (sub)graph");for(var n=a[e],i=n[1],o=n[2],s=r[i],u=r[o],l=a,v=l.length-1;v>=0;v--){var f=l[v],h=f[1],d=f[2];(r[h]===s&&r[d]===u||r[h]===u&&r[d]===s)&&l.splice(v,1)}for(var c=0;c<l.length;c++){var y=l[c];y[1]===u?(l[c]=y.slice(),l[c][1]=s):y[2]===u&&(l[c]=y.slice(),l[c][2]=s)}for(var p=0;p<r.length;p++)r[p]===u&&(r[p]=s);return l},li=function(e,r,a,n){for(;a>n;){var i=Math.floor(Math.random()*r.length);r=vv(i,e,r),a--}return r},fv={kargerStein:function(){var e=this,r=this.byGroup(),a=r.nodes,n=r.edges;n.unmergeBy(function(ae){return ae.isLoop()});var i=a.length,o=n.length,s=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),u=Math.floor(i/uv);if(i<2){xt("At least 2 nodes are required for Karger-Stein algorithm");return}for(var l=[],v=0;v<o;v++){var f=n[v];l.push([v,a.indexOf(f.source()),a.indexOf(f.target())])}for(var h=1/0,d=[],c=new Array(i),y=new Array(i),p=new Array(i),g=function(ue,me){for(var ie=0;ie<i;ie++)me[ie]=ue[ie]},m=0;m<=s;m++){for(var b=0;b<i;b++)y[b]=b;var E=li(y,l.slice(),i,u),M=E.slice();g(y,p);var L=li(y,E,u,2),w=li(p,M,u,2);L.length<=w.length&&L.length<h?(h=L.length,d=L,g(y,c)):w.length<=L.length&&w.length<h&&(h=w.length,d=w,g(p,c))}for(var k=this.spawn(d.map(function(ae){return n[ae[0]]})),D=this.spawn(),F=this.spawn(),G=c[0],I=0;I<c.length;I++){var X=c[I],B=a[I];X===G?D.merge(B):F.merge(B)}var re=function(ue){var me=e.spawn();return ue.forEach(function(ie){me.merge(ie),ie.connectedEdges().forEach(function(ge){e.contains(ge)&&!k.contains(ge)&&me.merge(ge)})}),me},K=[re(D),re(F)],W={cut:k,components:K,partition1:D,partition2:F};return W}},hv=function(e){return{x:e.x,y:e.y}},hn=function(e,r,a){return{x:e.x*r+a.x,y:e.y*r+a.y}},Eo=function(e,r,a){return{x:(e.x-a.x)/r,y:(e.y-a.y)/r}},jr=function(e){return{x:e[0],y:e[1]}},cv=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=r;i<a;i++){var o=e[i];isFinite(o)&&(n=Math.min(o,n))}return n},dv=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=r;i<a;i++){var o=e[i];isFinite(o)&&(n=Math.max(o,n))}return n},gv=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,o=r;o<a;o++){var s=e[o];isFinite(s)&&(n+=s,i++)}return n/i},pv=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(r,a):(a<e.length&&e.splice(a,e.length-a),r>0&&e.splice(0,r));for(var s=0,u=e.length-1;u>=0;u--){var l=e[u];o?isFinite(l)||(e[u]=-1/0,s++):e.splice(u,1)}i&&e.sort(function(h,d){return h-d});var v=e.length,f=Math.floor(v/2);return v%2!==0?e[f+1+s]:(e[f-1+s]+e[f+s])/2},yv=function(e){return Math.PI*e/180},cn=function(e,r){return Math.atan2(r,e)-Math.PI/2},ui=Math.log2||function(t){return Math.log(t)/Math.log(2)},wo=function(e){return e>0?1:e<0?-1:0},Br=function(e,r){return Math.sqrt(Fr(e,r))},Fr=function(e,r){var a=r.x-e.x,n=r.y-e.y;return a*a+n*n},mv=function(e){for(var r=e.length,a=0,n=0;n<r;n++)a+=e[n];for(var i=0;i<r;i++)e[i]=e[i]/a;return e},Lt=function(e,r,a,n){return(1-n)*(1-n)*e+2*(1-n)*n*r+n*n*a},ea=function(e,r,a,n){return{x:Lt(e.x,r.x,a.x,n),y:Lt(e.y,r.y,a.y,n)}},bv=function(e,r,a,n){var i={x:r.x-e.x,y:r.y-e.y},o=Br(e,r),s={x:i.x/o,y:i.y/o};return a=a??0,n=n??a*o,{x:e.x+s.x*n,y:e.y+s.y*n}},ka=function(e,r,a){return Math.max(e,Math.min(a,r))},Yt=function(e){if(e==null)return{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0};if(e.x1!=null&&e.y1!=null){if(e.x2!=null&&e.y2!=null&&e.x2>=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},Ev=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},wv=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},xv=function(e,r,a){return{x1:e.x1+r,x2:e.x2+r,y1:e.y1+a,y2:e.y2+a,w:e.w,h:e.h}},xo=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},Tv=function(e,r,a){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},dn=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},gn=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,o;if(r.length===1)a=n=i=o=r[0];else if(r.length===2)a=i=r[0],o=n=r[1];else if(r.length===4){var s=x(r,4);a=s[0],n=s[1],i=s[2],o=s[3]}return e.x1-=o,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},To=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},vi=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2<r.x1||r.x2<e.x1||e.y2<r.y1||r.y2<e.y1||e.y1>r.y2||r.y1>e.y2)},ta=function(e,r,a){return e.x1<=r&&r<=e.x2&&e.y1<=a&&a<=e.y2},Cv=function(e,r){return ta(e,r.x,r.y)},Co=function(e,r){return ta(e,r.x1,r.y1)&&ta(e,r.x2,r.y2)},Do=function(e,r,a,n,i,o,s){var u=Fa(i,o),l=i/2,v=o/2,f;{var h=a-l+u-s,d=n-v-s,c=a+l-u+s,y=d;if(f=Cr(e,r,a,n,h,d,c,y,!1),f.length>0)return f}{var p=a+l+s,g=n-v+u-s,m=p,b=n+v-u+s;if(f=Cr(e,r,a,n,p,g,m,b,!1),f.length>0)return f}{var E=a-l+u-s,M=n+v+s,L=a+l-u+s,w=M;if(f=Cr(e,r,a,n,E,M,L,w,!1),f.length>0)return f}{var k=a-l-s,D=n-v+u-s,F=k,G=n+v-u+s;if(f=Cr(e,r,a,n,k,D,F,G,!1),f.length>0)return f}var I;{var X=a-l+u,B=n-v+u;if(I=Pa(e,r,a,n,X,B,u+s),I.length>0&&I[0]<=X&&I[1]<=B)return[I[0],I[1]]}{var re=a+l-u,K=n-v+u;if(I=Pa(e,r,a,n,re,K,u+s),I.length>0&&I[0]>=re&&I[1]<=K)return[I[0],I[1]]}{var W=a+l-u,ae=n+v-u;if(I=Pa(e,r,a,n,W,ae,u+s),I.length>0&&I[0]>=W&&I[1]>=ae)return[I[0],I[1]]}{var ue=a-l+u,me=n+v-u;if(I=Pa(e,r,a,n,ue,me,u+s),I.length>0&&I[0]<=ue&&I[1]>=me)return[I[0],I[1]]}return[]},Dv=function(e,r,a,n,i,o,s){var u=s,l=Math.min(a,i),v=Math.max(a,i),f=Math.min(n,o),h=Math.max(n,o);return l-u<=e&&e<=v+u&&f-u<=r&&r<=h+u},Sv=function(e,r,a,n,i,o,s,u,l){var v={x1:Math.min(a,s,i)-l,x2:Math.max(a,s,i)+l,y1:Math.min(n,u,o)-l,y2:Math.max(n,u,o)+l};return!(e<v.x1||e>v.x2||r<v.y1||r>v.y2)},Lv=function(e,r,a,n){a-=n;var i=r*r-4*e*a;if(i<0)return[];var o=Math.sqrt(i),s=2*e,u=(-r+o)/s,l=(-r-o)/s;return[u,l]},Av=function(e,r,a,n,i){var o=1e-5;e===0&&(e=o),r/=e,a/=e,n/=e;var s,u,l,v,f,h,d,c;if(u=(3*a-r*r)/9,l=-(27*n)+r*(9*a-2*(r*r)),l/=54,s=u*u*u+l*l,i[1]=0,d=r/3,s>0){f=l+Math.sqrt(s),f=f<0?-Math.pow(-f,1/3):Math.pow(f,1/3),h=l-Math.sqrt(s),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),i[0]=-d+f+h,d+=(f+h)/2,i[4]=i[2]=-d,d=Math.sqrt(3)*(-h+f)/2,i[3]=d,i[5]=-d;return}if(i[5]=i[3]=0,s===0){c=l<0?-Math.pow(-l,1/3):Math.pow(l,1/3),i[0]=-d+2*c,i[4]=i[2]=-(c+d);return}u=-u,v=u*u*u,v=Math.acos(l/Math.sqrt(v)),c=2*Math.sqrt(u),i[0]=-d+c*Math.cos(v/3),i[2]=-d+c*Math.cos((v+2*Math.PI)/3),i[4]=-d+c*Math.cos((v+4*Math.PI)/3)},Ov=function(e,r,a,n,i,o,s,u){var l=1*a*a-4*a*i+2*a*s+4*i*i-4*i*s+s*s+n*n-4*n*o+2*n*u+4*o*o-4*o*u+u*u,v=1*9*a*i-3*a*a-3*a*s-6*i*i+3*i*s+9*n*o-3*n*n-3*n*u-6*o*o+3*o*u,f=1*3*a*a-6*a*i+a*s-a*e+2*i*i+2*i*e-s*e+3*n*n-6*n*o+n*u-n*r+2*o*o+2*o*r-u*r,h=1*a*i-a*a+a*e-i*e+n*o-n*n+n*r-o*r,d=[];Av(l,v,f,h,d);for(var c=1e-7,y=[],p=0;p<6;p+=2)Math.abs(d[p+1])<c&&d[p]>=0&&d[p]<=1&&y.push(d[p]);y.push(1),y.push(0);for(var g=-1,m,b,E,M=0;M<y.length;M++)m=Math.pow(1-y[M],2)*a+2*(1-y[M])*y[M]*i+y[M]*y[M]*s,b=Math.pow(1-y[M],2)*n+2*(1-y[M])*y[M]*o+y[M]*y[M]*u,E=Math.pow(m-e,2)+Math.pow(b-r,2),g>=0?E<g&&(g=E):g=E;return g},Nv=function(e,r,a,n,i,o){var s=[e-a,r-n],u=[i-a,o-n],l=u[0]*u[0]+u[1]*u[1],v=s[0]*s[0]+s[1]*s[1],f=s[0]*u[0]+s[1]*u[1],h=f*f/l;return f<0?v:h>l?(e-i)*(e-i)+(r-o)*(r-o):v-h},Ht=function(e,r,a){for(var n,i,o,s,u,l=0,v=0;v<a.length/2;v++)if(n=a[v*2],i=a[v*2+1],v+1<a.length/2?(o=a[(v+1)*2],s=a[(v+1)*2+1]):(o=a[(v+1-a.length/2)*2],s=a[(v+1-a.length/2)*2+1]),!(n==e&&o==e))if(n>=e&&e>=o||n<=e&&e<=o)u=(e-n)/(o-n)*(s-i)+i,u>r&&l++;else continue;return l%2!==0},pr=function(e,r,a,n,i,o,s,u,l){var v=new Array(a.length),f;u[0]!=null?(f=Math.atan(u[1]/u[0]),u[0]<0?f=f+Math.PI/2:f=-f-Math.PI/2):f=u;for(var h=Math.cos(-f),d=Math.sin(-f),c=0;c<v.length/2;c++)v[c*2]=o/2*(a[c*2]*h-a[c*2+1]*d),v[c*2+1]=s/2*(a[c*2+1]*h+a[c*2]*d),v[c*2]+=n,v[c*2+1]+=i;var y;if(l>0){var p=yn(v,-l);y=pn(p)}else y=v;return Ht(e,r,y)},Iv=function(e,r,a,n,i,o,s){for(var u=new Array(a.length),l=o/2,v=s/2,f=ci(o,s),h=f*f,d=0;d<a.length/4;d++){var c=void 0,y=void 0;d===0?c=a.length-2:c=d*4-2,y=d*4+2;var p=n+l*a[d*4],g=i+v*a[d*4+1],m=-a[c]*a[y]-a[c+1]*a[y+1],b=f/Math.tan(Math.acos(m)/2),E=p-b*a[c],M=g-b*a[c+1],L=p+b*a[y],w=g+b*a[y+1];u[d*4]=E,u[d*4+1]=M,u[d*4+2]=L,u[d*4+3]=w;var k=a[c+1],D=-a[c],F=k*a[y]+D*a[y+1];F<0&&(k*=-1,D*=-1);var G=E+k*f,I=M+D*f,X=Math.pow(G-e,2)+Math.pow(I-r,2);if(X<=h)return!0}return Ht(e,r,u)},pn=function(e){for(var r=new Array(e.length/2),a,n,i,o,s,u,l,v,f=0;f<e.length/4;f++){a=e[f*4],n=e[f*4+1],i=e[f*4+2],o=e[f*4+3],f<e.length/4-1?(s=e[(f+1)*4],u=e[(f+1)*4+1],l=e[(f+1)*4+2],v=e[(f+1)*4+3]):(s=e[0],u=e[1],l=e[2],v=e[3]);var h=Cr(a,n,i,o,s,u,l,v,!0);r[f*2]=h[0],r[f*2+1]=h[1]}return r},yn=function(e,r){for(var a=new Array(e.length*2),n,i,o,s,u=0;u<e.length/2;u++){n=e[u*2],i=e[u*2+1],u<e.length/2-1?(o=e[(u+1)*2],s=e[(u+1)*2+1]):(o=e[0],s=e[1]);var l=s-i,v=-(o-n),f=Math.sqrt(l*l+v*v),h=l/f,d=v/f;a[u*4]=n+h*r,a[u*4+1]=i+d*r,a[u*4+2]=o+h*r,a[u*4+3]=s+d*r}return a},Mv=function(e,r,a,n,i,o){var s=a-e,u=n-r;s/=i,u/=o;var l=Math.sqrt(s*s+u*u),v=l-1;if(v<0)return[];var f=v/l;return[(a-e)*f+e,(n-r)*f+r]},Gr=function(e,r,a,n,i,o,s){return e-=i,r-=o,e/=a/2+s,r/=n/2+s,e*e+r*r<=1},Pa=function(e,r,a,n,i,o,s){var u=[a-e,n-r],l=[e-i,r-o],v=u[0]*u[0]+u[1]*u[1],f=2*(l[0]*u[0]+l[1]*u[1]),h=l[0]*l[0]+l[1]*l[1]-s*s,d=f*f-4*v*h;if(d<0)return[];var c=(-f+Math.sqrt(d))/(2*v),y=(-f-Math.sqrt(d))/(2*v),p=Math.min(c,y),g=Math.max(c,y),m=[];if(p>=0&&p<=1&&m.push(p),g>=0&&g<=1&&m.push(g),m.length===0)return[];var b=m[0]*u[0]+e,E=m[0]*u[1]+r;if(m.length>1){if(m[0]==m[1])return[b,E];var M=m[1]*u[0]+e,L=m[1]*u[1]+r;return[b,E,M,L]}else return[b,E]},fi=function(e,r,a){return r<=e&&e<=a||a<=e&&e<=r?e:e<=r&&r<=a||a<=r&&r<=e?r:a},Cr=function(e,r,a,n,i,o,s,u,l){var v=e-i,f=a-e,h=s-i,d=r-o,c=n-r,y=u-o,p=h*d-y*v,g=f*d-c*v,m=y*f-h*c;if(m!==0){var b=p/m,E=g/m,M=.001,L=0-M,w=1+M;return L<=b&&b<=w&&L<=E&&E<=w?[e+b*f,r+b*c]:l?[e+b*f,r+b*c]:[]}else return p===0||g===0?fi(e,a,s)===s?[s,u]:fi(e,a,i)===i?[i,o]:fi(i,s,a)===a?[a,n]:[]:[]},Ba=function(e,r,a,n,i,o,s,u){var l=[],v,f=new Array(a.length),h=!0;o==null&&(h=!1);var d;if(h){for(var c=0;c<f.length/2;c++)f[c*2]=a[c*2]*o+n,f[c*2+1]=a[c*2+1]*s+i;if(u>0){var y=yn(f,-u);d=pn(y)}else d=f}else d=a;for(var p,g,m,b,E=0;E<d.length/2;E++)p=d[E*2],g=d[E*2+1],E<d.length/2-1?(m=d[(E+1)*2],b=d[(E+1)*2+1]):(m=d[0],b=d[1]),v=Cr(e,r,n,i,p,g,m,b),v.length!==0&&l.push(v[0],v[1]);return l},Rv=function(e,r,a,n,i,o,s,u){for(var l=[],v,f=new Array(a.length),h=o/2,d=s/2,c=ci(o,s),y=0;y<a.length/4;y++){var p=void 0,g=void 0;y===0?p=a.length-2:p=y*4-2,g=y*4+2;var m=n+h*a[y*4],b=i+d*a[y*4+1],E=-a[p]*a[g]-a[p+1]*a[g+1],M=c/Math.tan(Math.acos(E)/2),L=m-M*a[p],w=b-M*a[p+1],k=m+M*a[g],D=b+M*a[g+1];y===0?(f[a.length-2]=L,f[a.length-1]=w):(f[y*4-2]=L,f[y*4-1]=w),f[y*4]=k,f[y*4+1]=D;var F=a[p+1],G=-a[p],I=F*a[g]+G*a[g+1];I<0&&(F*=-1,G*=-1);var X=L+F*c,B=w+G*c;v=Pa(e,r,n,i,X,B,c),v.length!==0&&l.push(v[0],v[1])}for(var re=0;re<f.length/4;re++)v=Cr(e,r,n,i,f[re*4],f[re*4+1],f[re*4+2],f[re*4+3],!1),v.length!==0&&l.push(v[0],v[1]);if(l.length>2){for(var K=[l[0],l[1]],W=Math.pow(K[0]-e,2)+Math.pow(K[1]-r,2),ae=1;ae<l.length/2;ae++){var ue=Math.pow(l[ae*2]-e,2)+Math.pow(l[ae*2+1]-r,2);ue<=W&&(K[0]=l[ae*2],K[1]=l[ae*2+1],W=ue)}return K}return l},mn=function(e,r,a){var n=[e[0]-r[0],e[1]-r[1]],i=Math.sqrt(n[0]*n[0]+n[1]*n[1]),o=(i-a)/i;return o<0&&(o=1e-5),[r[0]+o*n[0],r[1]+o*n[1]]},Ut=function(e,r){var a=hi(e,r);return a=So(a),a},So=function(e){for(var r,a,n=e.length/2,i=1/0,o=1/0,s=-1/0,u=-1/0,l=0;l<n;l++)r=e[2*l],a=e[2*l+1],i=Math.min(i,r),s=Math.max(s,r),o=Math.min(o,a),u=Math.max(u,a);for(var v=2/(s-i),f=2/(u-o),h=0;h<n;h++)r=e[2*h]=e[2*h]*v,a=e[2*h+1]=e[2*h+1]*f,i=Math.min(i,r),s=Math.max(s,r),o=Math.min(o,a),u=Math.max(u,a);if(o<-1)for(var d=0;d<n;d++)a=e[2*d+1]=e[2*d+1]+(-1-o);return e},hi=function(e,r){var a=1/e*2*Math.PI,n=e%2===0?Math.PI/2+a/2:Math.PI/2;n+=r;for(var i=new Array(e*2),o,s=0;s<e;s++)o=s*a+n,i[2*s]=Math.cos(o),i[2*s+1]=Math.sin(-o);return i},Fa=function(e,r){return Math.min(e/4,r/4,8)},ci=function(e,r){return Math.min(e/10,r/10,8)},Lo=function(){return 8},kv=function(e,r,a){return[e-2*r+a,2*(r-e),e]},di=function(e,r){return{heightOffset:Math.min(15,.05*r),widthOffset:Math.min(100,.25*e),ctrlPtOffsetPct:.05}},Pv=At({dampingFactor:.8,precision:1e-6,iterations:200,weight:function(e){return 1}}),Bv={pageRank:function(e){for(var r=Pv(e),a=r.dampingFactor,n=r.precision,i=r.iterations,o=r.weight,s=this._private.cy,u=this.byGroup(),l=u.nodes,v=u.edges,f=l.length,h=f*f,d=v.length,c=new Array(h),y=new Array(f),p=(1-a)/f,g=0;g<f;g++){for(var m=0;m<f;m++){var b=g*f+m;c[b]=0}y[g]=0}for(var E=0;E<d;E++){var M=v[E],L=M.data("source"),w=M.data("target");if(L!==w){var k=l.indexOfId(L),D=l.indexOfId(w),F=o(M),G=D*f+k;c[G]+=F,y[k]+=F}}for(var I=1/f+p,X=0;X<f;X++)if(y[X]===0)for(var B=0;B<f;B++){var re=B*f+X;c[re]=I}else for(var K=0;K<f;K++){var W=K*f+X;c[W]=c[W]/y[X]+p}for(var ae=new Array(f),ue=new Array(f),me,ie=0;ie<f;ie++)ae[ie]=1;for(var ge=0;ge<i;ge++){for(var Ee=0;Ee<f;Ee++)ue[Ee]=0;for(var Ce=0;Ce<f;Ce++)for(var we=0;we<f;we++){var De=Ce*f+we;ue[Ce]+=c[De]*ae[we]}mv(ue),me=ae,ae=ue,ue=me;for(var oe=0,xe=0;xe<f;xe++){var Le=me[xe]-ae[xe];oe+=Le*Le}if(oe<n)break}var Se={rank:function(Fe){return Fe=s.collection(Fe)[0],ae[l.indexOf(Fe)]}};return Se}},Ao=At({root:null,weight:function(e){return 1},directed:!1,alpha:0}),ra={degreeCentralityNormalized:function(e){e=Ao(e);var r=this.cy(),a=this.nodes(),n=a.length;if(e.directed){for(var v={},f={},h=0,d=0,c=0;c<n;c++){var y=a[c],p=y.id();e.root=y;var g=this.degreeCentrality(e);h<g.indegree&&(h=g.indegree),d<g.outdegree&&(d=g.outdegree),v[p]=g.indegree,f[p]=g.outdegree}return{indegree:function(b){return h==0?0:(ee(b)&&(b=r.filter(b)),v[b.id()]/h)},outdegree:function(b){return d===0?0:(ee(b)&&(b=r.filter(b)),f[b.id()]/d)}}}else{for(var i={},o=0,s=0;s<n;s++){var u=a[s];e.root=u;var l=this.degreeCentrality(e);o<l.degree&&(o=l.degree),i[u.id()]=l.degree}return{degree:function(b){return o===0?0:(ee(b)&&(b=r.filter(b)),i[b.id()]/o)}}}},degreeCentrality:function(e){e=Ao(e);var r=this.cy(),a=this,n=e,i=n.root,o=n.weight,s=n.directed,u=n.alpha;if(i=r.collection(i)[0],s){for(var d=i.connectedEdges(),c=d.filter(function(L){return L.target().same(i)&&a.has(L)}),y=d.filter(function(L){return L.source().same(i)&&a.has(L)}),p=c.length,g=y.length,m=0,b=0,E=0;E<c.length;E++)m+=o(c[E]);for(var M=0;M<y.length;M++)b+=o(y[M]);return{indegree:Math.pow(p,1-u)*Math.pow(m,u),outdegree:Math.pow(g,1-u)*Math.pow(b,u)}}else{for(var l=i.connectedEdges().intersection(a),v=l.length,f=0,h=0;h<l.length;h++)f+=o(l[h]);return{degree:Math.pow(v,1-u)*Math.pow(f,u)}}}};ra.dc=ra.degreeCentrality,ra.dcn=ra.degreeCentralityNormalised=ra.degreeCentralityNormalized;var Oo=At({harmonic:!0,weight:function(){return 1},directed:!1,root:null}),aa={closenessCentralityNormalized:function(e){for(var r=Oo(e),a=r.harmonic,n=r.weight,i=r.directed,o=this.cy(),s={},u=0,l=this.nodes(),v=this.floydWarshall({weight:n,directed:i}),f=0;f<l.length;f++){for(var h=0,d=l[f],c=0;c<l.length;c++)if(f!==c){var y=v.distance(d,l[c]);a?h+=1/y:h+=y}a||(h=1/h),u<h&&(u=h),s[d.id()]=h}return{closeness:function(g){return u==0?0:(ee(g)?g=o.filter(g)[0].id():g=g.id(),s[g]/u)}}},closenessCentrality:function(e){var r=Oo(e),a=r.root,n=r.weight,i=r.directed,o=r.harmonic;a=this.filter(a)[0];for(var s=this.dijkstra({root:a,weight:n,directed:i}),u=0,l=this.nodes(),v=0;v<l.length;v++){var f=l[v];if(!f.same(a)){var h=s.distanceTo(f);o?u+=1/h:u+=h}}return o?u:1/u}};aa.cc=aa.closenessCentrality,aa.ccn=aa.closenessCentralityNormalised=aa.closenessCentralityNormalized;var Fv=At({weight:null,directed:!1}),gi={betweennessCentrality:function(e){for(var r=Fv(e),a=r.directed,n=r.weight,i=n!=null,o=this.cy(),s=this.nodes(),u={},l={},v=0,f={set:function(b,E){l[b]=E,E>v&&(v=E)},get:function(b){return l[b]}},h=0;h<s.length;h++){var d=s[h],c=d.id();a?u[c]=d.outgoers().nodes():u[c]=d.openNeighborhood().nodes(),f.set(c,0)}for(var y=function(b){for(var E=s[b].id(),M=[],L={},w={},k={},D=new Ra(function(we,De){return k[we]-k[De]}),F=0;F<s.length;F++){var G=s[F].id();L[G]=[],w[G]=0,k[G]=1/0}for(w[E]=1,k[E]=0,D.push(E);!D.empty();){var I=D.pop();if(M.push(I),i)for(var X=0;X<u[I].length;X++){var B=u[I][X],re=o.getElementById(I),K=void 0;re.edgesTo(B).length>0?K=re.edgesTo(B)[0]:K=B.edgesTo(re)[0];var W=n(K);B=B.id(),k[B]>k[I]+W&&(k[B]=k[I]+W,D.nodes.indexOf(B)<0?D.push(B):D.updateItem(B),w[B]=0,L[B]=[]),k[B]==k[I]+W&&(w[B]=w[B]+w[I],L[B].push(I))}else for(var ae=0;ae<u[I].length;ae++){var ue=u[I][ae].id();k[ue]==1/0&&(D.push(ue),k[ue]=k[I]+1),k[ue]==k[I]+1&&(w[ue]=w[ue]+w[I],L[ue].push(I))}}for(var me={},ie=0;ie<s.length;ie++)me[s[ie].id()]=0;for(;M.length>0;){for(var ge=M.pop(),Ee=0;Ee<L[ge].length;Ee++){var Ce=L[ge][Ee];me[Ce]=me[Ce]+w[Ce]/w[ge]*(1+me[ge])}ge!=s[b].id()&&f.set(ge,f.get(ge)+me[ge])}},p=0;p<s.length;p++)y(p);var g={betweenness:function(b){var E=o.collection(b).id();return f.get(E)},betweennessNormalized:function(b){if(v==0)return 0;var E=o.collection(b).id();return f.get(E)/v}};return g.betweennessNormalised=g.betweennessNormalized,g}};gi.bc=gi.betweennessCentrality;var Gv=At({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(t){return 1}]}),zv=function(e){return Gv(e)},Vv=function(e,r){for(var a=0,n=0;n<r.length;n++)a+=r[n](e);return a},$v=function(e,r,a){for(var n=0;n<r;n++)e[n*r+n]=a},No=function(e,r){for(var a,n=0;n<r;n++){a=0;for(var i=0;i<r;i++)a+=e[i*r+n];for(var o=0;o<r;o++)e[o*r+n]=e[o*r+n]/a}},Uv=function(e,r,a){for(var n=new Array(a*a),i=0;i<a;i++){for(var o=0;o<a;o++)n[i*a+o]=0;for(var s=0;s<a;s++)for(var u=0;u<a;u++)n[i*a+u]+=e[i*a+s]*r[s*a+u]}return n},_v=function(e,r,a){for(var n=e.slice(0),i=1;i<a;i++)e=Uv(e,n,r);return e},Yv=function(e,r,a){for(var n=new Array(r*r),i=0;i<r*r;i++)n[i]=Math.pow(e[i],a);return No(n,r),n},Hv=function(e,r,a,n){for(var i=0;i<a;i++){var o=Math.round(e[i]*Math.pow(10,n))/Math.pow(10,n),s=Math.round(r[i]*Math.pow(10,n))/Math.pow(10,n);if(o!==s)return!1}return!0},Xv=function(e,r,a,n){for(var i=[],o=0;o<r;o++){for(var s=[],u=0;u<r;u++)Math.round(e[o*r+u]*1e3)/1e3>0&&s.push(a[u]);s.length!==0&&i.push(n.collection(s))}return i},Wv=function(e,r){for(var a=0;a<e.length;a++)if(!r[a]||e[a].id()!==r[a].id())return!1;return!0},qv=function(e){for(var r=0;r<e.length;r++)for(var a=0;a<e.length;a++)r!=a&&Wv(e[r],e[a])&&e.splice(a,1);return e},Io=function(e){for(var r=this.nodes(),a=this.edges(),n=this.cy(),i=zv(e),o={},s=0;s<r.length;s++)o[r[s].id()]=s;for(var u=r.length,l=u*u,v=new Array(l),f,h=0;h<l;h++)v[h]=0;for(var d=0;d<a.length;d++){var c=a[d],y=o[c.source().id()],p=o[c.target().id()],g=Vv(c,i.attributes);v[y*u+p]+=g,v[p*u+y]+=g}$v(v,u,i.multFactor),No(v,u);for(var m=!0,b=0;m&&b<i.maxIterations;)m=!1,f=_v(v,u,i.expandFactor),v=Yv(f,u,i.inflateFactor),Hv(v,f,l,4)||(m=!0),b++;var E=Xv(v,u,r,n);return E=qv(E),E},Kv={markovClustering:Io,mcl:Io},Zv=function(e){return e},Mo=function(e,r){return Math.abs(r-e)},Ro=function(e,r,a){return e+Mo(r,a)},ko=function(e,r,a){return e+Math.pow(a-r,2)},Qv=function(e){return Math.sqrt(e)},Jv=function(e,r,a){return Math.max(e,Mo(r,a))},Ga=function(e,r,a,n,i){for(var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:Zv,s=n,u,l,v=0;v<e;v++)u=r(v),l=a(v),s=i(s,u,l);return o(s)},na={euclidean:function(e,r,a){return e>=2?Ga(e,r,a,0,ko,Qv):Ga(e,r,a,0,Ro)},squaredEuclidean:function(e,r,a){return Ga(e,r,a,0,ko)},manhattan:function(e,r,a){return Ga(e,r,a,0,Ro)},max:function(e,r,a){return Ga(e,r,a,-1/0,Jv)}};na["squared-euclidean"]=na.squaredEuclidean,na.squaredeuclidean=na.squaredEuclidean;function bn(t,e,r,a,n,i){var o;return H(t)?o=t:o=na[t]||na.euclidean,e===0&&H(t)?o(n,i):o(e,r,a,n,i)}var jv=At({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),pi=function(e){return jv(e)},En=function(e,r,a,n,i){var o=i!=="kMedoids",s=o?function(f){return a[f]}:function(f){return n[f](a)},u=function(h){return n[h](r)},l=a,v=r;return bn(e,n.length,s,u,l,v)},yi=function(e,r,a){for(var n=a.length,i=new Array(n),o=new Array(n),s=new Array(r),u=null,l=0;l<n;l++)i[l]=e.min(a[l]).value,o[l]=e.max(a[l]).value;for(var v=0;v<r;v++){u=[];for(var f=0;f<n;f++)u[f]=Math.random()*(o[f]-i[f])+i[f];s[v]=u}return s},Po=function(e,r,a,n,i){for(var o=1/0,s=0,u=0;u<r.length;u++){var l=En(a,e,r[u],n,i);l<o&&(o=l,s=u)}return s},Bo=function(e,r,a){for(var n=[],i=null,o=0;o<r.length;o++)i=r[o],a[i.id()]===e&&n.push(i);return n},ef=function(e,r,a){return Math.abs(r-e)<=a},tf=function(e,r,a){for(var n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++){var o=Math.abs(e[n][i]-r[n][i]);if(o>a)return!1}return!0},rf=function(e,r,a){for(var n=0;n<a;n++)if(e===r[n])return!0;return!1},Fo=function(e,r){var a=new Array(r);if(e.length<50)for(var n=0;n<r;n++){for(var i=e[Math.floor(Math.random()*e.length)];rf(i,a,n);)i=e[Math.floor(Math.random()*e.length)];a[n]=i}else for(var o=0;o<r;o++)a[o]=e[Math.floor(Math.random()*e.length)];return a},Go=function(e,r,a){for(var n=0,i=0;i<r.length;i++)n+=En("manhattan",r[i],e,a,"kMedoids");return n},af=function(e){var r=this.cy(),a=this.nodes(),n=null,i=pi(e),o=new Array(i.k),s={},u;i.testMode?typeof i.testCentroids=="number"?(i.testCentroids,u=yi(a,i.k,i.attributes)):_(i.testCentroids)==="object"?u=i.testCentroids:u=yi(a,i.k,i.attributes):u=yi(a,i.k,i.attributes);for(var l=!0,v=0;l&&v<i.maxIterations;){for(var f=0;f<a.length;f++)n=a[f],s[n.id()]=Po(n,u,i.distance,i.attributes,"kMeans");l=!1;for(var h=0;h<i.k;h++){var d=Bo(h,a,s);if(d.length!==0){for(var c=i.attributes.length,y=u[h],p=new Array(c),g=new Array(c),m=0;m<c;m++){g[m]=0;for(var b=0;b<d.length;b++)n=d[b],g[m]+=i.attributes[m](n);p[m]=g[m]/d.length,ef(p[m],y[m],i.sensitivityThreshold)||(l=!0)}u[h]=p,o[h]=r.collection(d)}}v++}return o},nf=function(e){var r=this.cy(),a=this.nodes(),n=null,i=pi(e),o=new Array(i.k),s,u={},l,v=new Array(i.k);i.testMode?typeof i.testCentroids=="number"||(_(i.testCentroids)==="object"?s=i.testCentroids:s=Fo(a,i.k)):s=Fo(a,i.k);for(var f=!0,h=0;f&&h<i.maxIterations;){for(var d=0;d<a.length;d++)n=a[d],u[n.id()]=Po(n,s,i.distance,i.attributes,"kMedoids");f=!1;for(var c=0;c<s.length;c++){var y=Bo(c,a,u);if(y.length!==0){v[c]=Go(s[c],y,i.attributes);for(var p=0;p<y.length;p++)l=Go(y[p],y,i.attributes),l<v[c]&&(v[c]=l,s[c]=y[p],f=!0);o[c]=r.collection(y)}}h++}return o},of=function(e,r,a,n,i){for(var o,s,u=0;u<r.length;u++)for(var l=0;l<e.length;l++)n[u][l]=Math.pow(a[u][l],i.m);for(var v=0;v<e.length;v++)for(var f=0;f<i.attributes.length;f++){o=0,s=0;for(var h=0;h<r.length;h++)o+=n[h][v]*i.attributes[f](r[h]),s+=n[h][v];e[v][f]=o/s}},sf=function(e,r,a,n,i){for(var o=0;o<e.length;o++)r[o]=e[o].slice();for(var s,u,l,v=2/(i.m-1),f=0;f<a.length;f++)for(var h=0;h<n.length;h++){s=0;for(var d=0;d<a.length;d++)u=En(i.distance,n[h],a[f],i.attributes,"cmeans"),l=En(i.distance,n[h],a[d],i.attributes,"cmeans"),s+=Math.pow(u/l,v);e[h][f]=1/s}},lf=function(e,r,a,n){for(var i=new Array(a.k),o=0;o<i.length;o++)i[o]=[];for(var s,u,l=0;l<r.length;l++){s=-1/0,u=-1;for(var v=0;v<r[0].length;v++)r[l][v]>s&&(s=r[l][v],u=v);i[u].push(e[l])}for(var f=0;f<i.length;f++)i[f]=n.collection(i[f]);return i},zo=function(e){var r=this.cy(),a=this.nodes(),n=pi(e),i,o,s,u,l;u=new Array(a.length);for(var v=0;v<a.length;v++)u[v]=new Array(n.k);s=new Array(a.length);for(var f=0;f<a.length;f++)s[f]=new Array(n.k);for(var h=0;h<a.length;h++){for(var d=0,c=0;c<n.k;c++)s[h][c]=Math.random(),d+=s[h][c];for(var y=0;y<n.k;y++)s[h][y]=s[h][y]/d}o=new Array(n.k);for(var p=0;p<n.k;p++)o[p]=new Array(n.attributes.length);l=new Array(a.length);for(var g=0;g<a.length;g++)l[g]=new Array(n.k);for(var m=!0,b=0;m&&b<n.maxIterations;)m=!1,of(o,a,s,l,n),sf(s,u,o,a,n),tf(s,u,n.sensitivityThreshold)||(m=!0),b++;return i=lf(a,s,n,r),{clusters:i,degreeOfMembership:s}},uf={kMeans:af,kMedoids:nf,fuzzyCMeans:zo,fcm:zo},vf=At({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),ff={single:"min",complete:"max"},hf=function(e){var r=vf(e),a=ff[r.linkage];return a!=null&&(r.linkage=a),r},Vo=function(e,r,a,n,i){for(var o=0,s=1/0,u,l=i.attributes,v=function(D,F){return bn(i.distance,l.length,function(G){return l[G](D)},function(G){return l[G](F)},D,F)},f=0;f<e.length;f++){var h=e[f].key,d=a[h][n[h]];d<s&&(o=h,s=d)}if(i.mode==="threshold"&&s>=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var c=r[o],y=r[n[o]],p;i.mode==="dendrogram"?p={left:c,right:y,key:c.key}:p={value:c.value.concat(y.value),key:c.key},e[c.index]=p,e.splice(y.index,1),r[c.key]=p;for(var g=0;g<e.length;g++){var m=e[g];c.key===m.key?u=1/0:i.linkage==="min"?(u=a[c.key][m.key],a[c.key][m.key]>a[y.key][m.key]&&(u=a[y.key][m.key])):i.linkage==="max"?(u=a[c.key][m.key],a[c.key][m.key]<a[y.key][m.key]&&(u=a[y.key][m.key])):i.linkage==="mean"?u=(a[c.key][m.key]*c.size+a[y.key][m.key]*y.size)/(c.size+y.size):i.mode==="dendrogram"?u=v(m.value,c.value):u=v(m.value[0],c.value[0]),a[c.key][m.key]=a[m.key][c.key]=u}for(var b=0;b<e.length;b++){var E=e[b].key;if(n[E]===c.key||n[E]===y.key){for(var M=E,L=0;L<e.length;L++){var w=e[L].key;a[E][w]<a[E][M]&&(M=w)}n[E]=M}e[b].index=b}return c.key=y.key=c.index=y.index=null,!0},wn=function t(e,r,a){e&&(e.value?r.push(e.value):(e.left&&t(e.left,r),e.right&&t(e.right,r)))},cf=function t(e,r){if(!e)return"";if(e.left&&e.right){var a=t(e.left,r),n=t(e.right,r),i=r.add({group:"nodes",data:{id:a+","+n}});return r.add({group:"edges",data:{source:a,target:i.id()}}),r.add({group:"edges",data:{source:n,target:i.id()}}),i.id()}else if(e.value)return e.value.id()},df=function t(e,r,a){if(!e)return[];var n=[],i=[],o=[];return r===0?(e.left&&wn(e.left,n),e.right&&wn(e.right,i),o=n.concat(i),[a.collection(o)]):r===1?e.value?[a.collection(e.value)]:(e.left&&wn(e.left,n),e.right&&wn(e.right,i),[a.collection(n),a.collection(i)]):e.value?[a.collection(e.value)]:(e.left&&(n=t(e.left,r-1,a)),e.right&&(i=t(e.right,r-1,a)),n.concat(i))},$o=function(e){for(var r=this.cy(),a=this.nodes(),n=hf(e),i=n.attributes,o=function(b,E){return bn(n.distance,i.length,function(M){return i[M](b)},function(M){return i[M](E)},b,E)},s=[],u=[],l=[],v=[],f=0;f<a.length;f++){var h={value:n.mode==="dendrogram"?a[f]:[a[f]],key:f,index:f};s[f]=h,v[f]=h,u[f]=[],l[f]=0}for(var d=0;d<s.length;d++)for(var c=0;c<=d;c++){var y=void 0;n.mode==="dendrogram"?y=d===c?1/0:o(s[d].value,s[c].value):y=d===c?1/0:o(s[d].value[0],s[c].value[0]),u[d][c]=y,u[c][d]=y,y<u[d][l[d]]&&(l[d]=c)}for(var p=Vo(s,v,u,l,n);p;)p=Vo(s,v,u,l,n);var g;return n.mode==="dendrogram"?(g=df(s[0],n.dendrogramDepth,r),n.addDendrogram&&cf(s[0],r)):(g=new Array(s.length),s.forEach(function(m,b){m.key=m.index=null,g[b]=r.collection(m.value)})),g},gf={hierarchicalClustering:$o,hca:$o},pf=At({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),yf=function(e){var r=e.damping,a=e.preference;.5<=r&&r<1||xt("Damping must range on [0.5, 1). Got: ".concat(r));var n=["median","mean","min","max"];return n.some(function(i){return i===a})||R(a)||xt("Preference must be one of [".concat(n.map(function(i){return"'".concat(i,"'")}).join(", "),"] or a number. Got: ").concat(a)),pf(e)},mf=function(e,r,a,n){var i=function(s,u){return n[u](s)};return-bn(e,n.length,function(o){return i(r,o)},function(o){return i(a,o)},r,a)},bf=function(e,r){var a=null;return r==="median"?a=pv(e):r==="mean"?a=gv(e):r==="min"?a=cv(e):r==="max"?a=dv(e):a=r,a},Ef=function(e,r,a){for(var n=[],i=0;i<e;i++)r[i*e+i]+a[i*e+i]>0&&n.push(i);return n},Uo=function(e,r,a){for(var n=[],i=0;i<e;i++){for(var o=-1,s=-1/0,u=0;u<a.length;u++){var l=a[u];r[i*e+l]>s&&(o=l,s=r[i*e+l])}o>0&&n.push(o)}for(var v=0;v<a.length;v++)n[a[v]]=a[v];return n},wf=function(e,r,a){for(var n=Uo(e,r,a),i=0;i<a.length;i++){for(var o=[],s=0;s<n.length;s++)n[s]===a[i]&&o.push(s);for(var u=-1,l=-1/0,v=0;v<o.length;v++){for(var f=0,h=0;h<o.length;h++)f+=r[o[h]*e+o[v]];f>l&&(u=v,l=f)}a[i]=o[u]}return n=Uo(e,r,a),n},_o=function(e){for(var r=this.cy(),a=this.nodes(),n=yf(e),i={},o=0;o<a.length;o++)i[a[o].id()]=o;var s,u,l,v,f,h;s=a.length,u=s*s,l=new Array(u);for(var d=0;d<u;d++)l[d]=-1/0;for(var c=0;c<s;c++)for(var y=0;y<s;y++)c!==y&&(l[c*s+y]=mf(n.distance,a[c],a[y],n.attributes));v=bf(l,n.preference);for(var p=0;p<s;p++)l[p*s+p]=v;f=new Array(u);for(var g=0;g<u;g++)f[g]=0;h=new Array(u);for(var m=0;m<u;m++)h[m]=0;for(var b=new Array(s),E=new Array(s),M=new Array(s),L=0;L<s;L++)b[L]=0,E[L]=0,M[L]=0;for(var w=new Array(s*n.minIterations),k=0;k<w.length;k++)w[k]=0;var D;for(D=0;D<n.maxIterations;D++){for(var F=0;F<s;F++){for(var G=-1/0,I=-1/0,X=-1,B=0,re=0;re<s;re++)b[re]=f[F*s+re],B=h[F*s+re]+l[F*s+re],B>=G?(I=G,G=B,X=re):B>I&&(I=B);for(var K=0;K<s;K++)f[F*s+K]=(1-n.damping)*(l[F*s+K]-G)+n.damping*b[K];f[F*s+X]=(1-n.damping)*(l[F*s+X]-I)+n.damping*b[X]}for(var W=0;W<s;W++){for(var ae=0,ue=0;ue<s;ue++)b[ue]=h[ue*s+W],E[ue]=Math.max(0,f[ue*s+W]),ae+=E[ue];ae-=E[W],E[W]=f[W*s+W],ae+=E[W];for(var me=0;me<s;me++)h[me*s+W]=(1-n.damping)*Math.min(0,ae-E[me])+n.damping*b[me];h[W*s+W]=(1-n.damping)*(ae-E[W])+n.damping*b[W]}for(var ie=0,ge=0;ge<s;ge++){var Ee=h[ge*s+ge]+f[ge*s+ge]>0?1:0;w[D%n.minIterations*s+ge]=Ee,ie+=Ee}if(ie>0&&(D>=n.minIterations-1||D==n.maxIterations-1)){for(var Ce=0,we=0;we<s;we++){M[we]=0;for(var De=0;De<n.minIterations;De++)M[we]+=w[De*s+we];(M[we]===0||M[we]===n.minIterations)&&Ce++}if(Ce===s)break}}for(var oe=Ef(s,f,h),xe=wf(s,l,oe),Le={},Se=0;Se<oe.length;Se++)Le[oe[Se]]=[];for(var Oe=0;Oe<a.length;Oe++){var Fe=i[a[Oe].id()],Xe=xe[Fe];Xe!=null&&Le[Xe].push(a[Oe])}for(var Ie=new Array(oe.length),Me=0;Me<oe.length;Me++)Ie[Me]=r.collection(Le[oe[Me]]);return Ie},xf={affinityPropagation:_o,ap:_o},Tf=At({root:void 0,directed:!1}),Cf={hierholzer:function(e){if(!S(e)){var r=arguments;e={root:r[0],directed:r[1]}}var a=Tf(e),n=a.root,i=a.directed,o=this,s=!1,u,l,v;n&&(v=ee(n)?this.filter(n)[0].id():n[0].id());var f={},h={};i?o.forEach(function(m){var b=m.id();if(m.isNode()){var E=m.indegree(!0),M=m.outdegree(!0),L=E-M,w=M-E;L==1?u?s=!0:u=b:w==1?l?s=!0:l=b:(w>1||L>1)&&(s=!0),f[b]=[],m.outgoers().forEach(function(k){k.isEdge()&&f[b].push(k.id())})}else h[b]=[void 0,m.target().id()]}):o.forEach(function(m){var b=m.id();if(m.isNode()){var E=m.degree(!0);E%2&&(u?l?s=!0:l=b:u=b),f[b]=[],m.connectedEdges().forEach(function(M){return f[b].push(M.id())})}else h[b]=[m.source().id(),m.target().id()]});var d={found:!1,trail:void 0};if(s)return d;if(l&&u)if(i){if(v&&l!=v)return d;v=l}else{if(v&&l!=v&&u!=v)return d;v||(v=l)}else v||(v=o[0].id());var c=function(b){for(var E=b,M=[b],L,w,k;f[E].length;)L=f[E].shift(),w=h[L][0],k=h[L][1],E!=k?(f[k]=f[k].filter(function(D){return D!=L}),E=k):!i&&E!=w&&(f[w]=f[w].filter(function(D){return D!=L}),E=w),M.unshift(L),M.unshift(E);return M},y=[],p=[];for(p=c(v);p.length!=1;)f[p[0]].length==0?(y.unshift(o.getElementById(p.shift())),y.unshift(o.getElementById(p.shift()))):p=c(p.shift()).concat(p);y.unshift(o.getElementById(p.shift()));for(var g in f)if(f[g].length)return d;return d.found=!0,d.trail=this.spawn(y,!0),d}},xn=function(){var e=this,r={},a=0,n=0,i=[],o=[],s={},u=function(h,d){for(var c=o.length-1,y=[],p=e.spawn();o[c].x!=h||o[c].y!=d;)y.push(o.pop().edge),c--;y.push(o.pop().edge),y.forEach(function(g){var m=g.connectedNodes().intersection(e);p.merge(g),m.forEach(function(b){var E=b.id(),M=b.connectedEdges().intersection(e);p.merge(b),r[E].cutVertex?p.merge(M.filter(function(L){return L.isLoop()})):p.merge(M)})}),i.push(p)},l=function f(h,d,c){h===c&&(n+=1),r[d]={id:a,low:a++,cutVertex:!1};var y=e.getElementById(d).connectedEdges().intersection(e);if(y.size()===0)i.push(e.spawn(e.getElementById(d)));else{var p,g,m,b;y.forEach(function(E){p=E.source().id(),g=E.target().id(),m=p===d?g:p,m!==c&&(b=E.id(),s[b]||(s[b]=!0,o.push({x:d,y:m,edge:E})),m in r?r[d].low=Math.min(r[d].low,r[m].id):(f(h,m,d),r[d].low=Math.min(r[d].low,r[m].low),r[d].id<=r[m].low&&(r[d].cutVertex=!0,u(d,m))))})}};e.forEach(function(f){if(f.isNode()){var h=f.id();h in r||(n=0,l(h,h),r[h].cutVertex=n>1)}});var v=Object.keys(r).filter(function(f){return r[f].cutVertex}).map(function(f){return e.getElementById(f)});return{cut:e.spawn(v),components:i}},Df={hopcroftTarjanBiconnected:xn,htbc:xn,htb:xn,hopcroftTarjanBiconnectedComponents:xn},Tn=function(){var e=this,r={},a=0,n=[],i=[],o=e.spawn(e),s=function u(l){i.push(l),r[l]={index:a,low:a++,explored:!1};var v=e.getElementById(l).connectedEdges().intersection(e);if(v.forEach(function(y){var p=y.target().id();p!==l&&(p in r||u(p),r[p].explored||(r[l].low=Math.min(r[l].low,r[p].low)))}),r[l].index===r[l].low){for(var f=e.spawn();;){var h=i.pop();if(f.merge(e.getElementById(h)),r[h].low=r[l].index,r[h].explored=!0,h===l)break}var d=f.edgesWith(f),c=f.merge(d);n.push(c),o=o.difference(c)}};return e.forEach(function(u){if(u.isNode()){var l=u.id();l in r||s(l)}}),{cut:o,components:n}},Sf={tarjanStronglyConnected:Tn,tsc:Tn,tscc:Tn,tarjanStronglyConnectedComponents:Tn},Yo={};[Ma,tv,rv,nv,ov,lv,fv,Bv,ra,aa,gi,Kv,uf,gf,xf,Cf,Df,Sf].forEach(function(t){He(Yo,t)});/*!
Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable
Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com)
Licensed under The MIT License (http://opensource.org/licenses/MIT)
*/var Ho=0,Xo=1,Wo=2,yr=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=Ho,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};yr.prototype={fulfill:function(e){return qo(this,Xo,"fulfillValue",e)},reject:function(e){return qo(this,Wo,"rejectReason",e)},then:function(e,r){var a=this,n=new yr;return a.onFulfilled.push(Qo(e,n,"fulfill")),a.onRejected.push(Qo(r,n,"reject")),Ko(a),n.proxy}};var qo=function(e,r,a,n){return e.state===Ho&&(e.state=r,e[a]=n,Ko(e)),e},Ko=function(e){e.state===Xo?Zo(e,"onFulfilled",e.fulfillValue):e.state===Wo&&Zo(e,"onRejected",e.rejectReason)},Zo=function(e,r,a){if(e[r].length!==0){var n=e[r];e[r]=[];var i=function(){for(var s=0;s<n.length;s++)n[s](a)};typeof setImmediate=="function"?setImmediate(i):setTimeout(i,0)}},Qo=function(e,r,a){return function(n){if(typeof e!="function")r[a].call(r,n);else{var i;try{i=e(n)}catch(o){r.reject(o);return}Lf(r,i)}}},Lf=function t(e,r){if(e===r||e.proxy===r){e.reject(new TypeError("cannot resolve promise with itself"));return}var a;if(_(r)==="object"&&r!==null||typeof r=="function")try{a=r.then}catch(i){e.reject(i);return}if(typeof a=="function"){var n=!1;try{a.call(r,function(i){n||(n=!0,i===r?e.reject(new TypeError("circular thenable chain")):t(e,i))},function(i){n||(n=!0,e.reject(i))})}catch(i){n||e.reject(i)}return}e.fulfill(r)};yr.all=function(t){return new yr(function(e,r){for(var a=new Array(t.length),n=0,i=function(u,l){a[u]=l,n++,n===t.length&&e(a)},o=0;o<t.length;o++)(function(s){var u=t[s],l=u!=null&&u.then!=null;if(l)u.then(function(f){i(s,f)},function(f){r(f)});else{var v=u;i(s,v)}})(o)})},yr.resolve=function(t){return new yr(function(e,r){e(t)})},yr.reject=function(t){return new yr(function(e,r){r(t)})};var ia=typeof Promise<"u"?Promise:yr,mi=function(e,r,a){var n=Ye(e),i=!n,o=this._private=He({duration:1e3},r,a);if(o.target=e,o.style=o.style||o.css,o.started=!1,o.playing=!1,o.hooked=!1,o.applying=!1,o.progress=0,o.completes=[],o.frames=[],o.complete&&H(o.complete)&&o.completes.push(o.complete),i){var s=e.position();o.startPosition=o.startPosition||{x:s.x,y:s.y},o.startStyle=o.startStyle||e.cy().style().getAnimationStartStyle(e,o.style)}if(n){var u=e.pan();o.startPan={x:u.x,y:u.y},o.startZoom=e.zoom()}this.length=1,this[0]=this},zr=mi.prototype;He(zr,{instanceString:function(){return"animation"},hook:function(){var e=this._private;if(!e.hooked){var r,a=e.target._private.animation;e.queue?r=a.queue:r=a.current,r.push(this),pe(e.target)&&e.target.cy().addToAnimationPool(e.target),e.hooked=!0}return this},play:function(){var e=this._private;return e.progress===1&&(e.progress=0),e.playing=!0,e.started=!1,e.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var e=this._private;return e.applying=!0,e.started=!1,e.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var e=this._private;return e.playing=!1,e.started=!1,this},stop:function(){var e=this._private;return e.playing=!1,e.started=!1,e.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(e){var r=this._private;return e===void 0?r.progress*r.duration:this.progress(e/r.duration)},progress:function(e){var r=this._private,a=r.playing;return e===void 0?r.progress:(a&&this.pause(),r.progress=e,r.started=!1,a&&this.play(),this)},completed:function(){return this._private.progress===1},reverse:function(){var e=this._private,r=e.playing;r&&this.pause(),e.progress=1-e.progress,e.started=!1;var a=function(l,v){var f=e[l];f!=null&&(e[l]=e[v],e[v]=f)};if(a("zoom","startZoom"),a("pan","startPan"),a("position","startPosition"),e.style)for(var n=0;n<e.style.length;n++){var i=e.style[n],o=i.name,s=e.startStyle[o];e.startStyle[o]=i,e.style[n]=s}return r&&this.play(),this},promise:function(e){var r=this._private,a;switch(e){case"frame":a=r.frames;break;default:case"complete":case"completed":a=r.completes}return new ia(function(n,i){a.push(function(){n()})})}}),zr.complete=zr.completed,zr.run=zr.play,zr.running=zr.playing;var Af={animated:function(){return function(){var r=this,a=r.length!==void 0,n=a?r:[r],i=this._private.cy||this;if(!i.styleEnabled())return!1;var o=n[0];if(o)return o._private.animation.current.length>0}},clearQueue:function(){return function(){var r=this,a=r.length!==void 0,n=a?r:[r],i=this._private.cy||this;if(!i.styleEnabled())return this;for(var o=0;o<n.length;o++){var s=n[o];s._private.animation.queue=[]}return this}},delay:function(){return function(r,a){var n=this._private.cy||this;return n.styleEnabled()?this.animate({delay:r,duration:r,complete:a}):this}},delayAnimation:function(){return function(r,a){var n=this._private.cy||this;return n.styleEnabled()?this.animation({delay:r,duration:r,complete:a}):this}},animation:function(){return function(r,a){var n=this,i=n.length!==void 0,o=i?n:[n],s=this._private.cy||this,u=!i,l=!u;if(!s.styleEnabled())return this;var v=s.style();r=He({},r,a);var f=Object.keys(r).length===0;if(f)return new mi(o[0],r);switch(r.duration===void 0&&(r.duration=400),r.duration){case"slow":r.duration=600;break;case"fast":r.duration=200;break}if(l&&(r.style=v.getPropsList(r.style||r.css),r.css=void 0),l&&r.renderedPosition!=null){var h=r.renderedPosition,d=s.pan(),c=s.zoom();r.position=Eo(h,c,d)}if(u&&r.panBy!=null){var y=r.panBy,p=s.pan();r.pan={x:p.x+y.x,y:p.y+y.y}}var g=r.center||r.centre;if(u&&g!=null){var m=s.getCenterPan(g.eles,r.zoom);m!=null&&(r.pan=m)}if(u&&r.fit!=null){var b=r.fit,E=s.getFitViewport(b.eles||b.boundingBox,b.padding);E!=null&&(r.pan=E.pan,r.zoom=E.zoom)}if(u&&S(r.zoom)){var M=s.getZoomedViewport(r.zoom);M!=null?(M.zoomed&&(r.zoom=M.zoom),M.panned&&(r.pan=M.pan)):r.zoom=null}return new mi(o[0],r)}},animate:function(){return function(r,a){var n=this,i=n.length!==void 0,o=i?n:[n],s=this._private.cy||this;if(!s.styleEnabled())return this;a&&(r=He({},r,a));for(var u=0;u<o.length;u++){var l=o[u],v=l.animated()&&(r.queue===void 0||r.queue),f=l.animation(r,v?{queue:!0}:void 0);f.play()}return this}},stop:function(){return function(r,a){var n=this,i=n.length!==void 0,o=i?n:[n],s=this._private.cy||this;if(!s.styleEnabled())return this;for(var u=0;u<o.length;u++){for(var l=o[u],v=l._private,f=v.animation.current,h=0;h<f.length;h++){var d=f[h],c=d._private;a&&(c.duration=0)}r&&(v.animation.queue=[]),a||(v.animation.current=[])}return s.notify("draw"),this}}},Of=Array.isArray,Cn=Of,Nf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,If=/^\w*$/;function Mf(t,e){if(Cn(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||Aa(t)?!0:If.test(t)||!Nf.test(t)||e!=null&&t in Object(e)}var Rf=Mf,kf="[object AsyncFunction]",Pf="[object Function]",Bf="[object GeneratorFunction]",Ff="[object Proxy]";function Gf(t){if(!kr(t))return!1;var e=io(t);return e==Pf||e==Bf||e==kf||e==Ff}var zf=Gf,Vf=on["__core-js_shared__"],bi=Vf,Jo=function(){var t=/[^.]+$/.exec(bi&&bi.keys&&bi.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function $f(t){return!!Jo&&Jo in t}var Uf=$f,_f=Function.prototype,Yf=_f.toString;function Hf(t){if(t!=null){try{return Yf.call(t)}catch{}try{return t+""}catch{}}return""}var Xf=Hf,Wf=/[\\^$.*+?()[\]{}|]/g,qf=/^\[object .+?Constructor\]$/,Kf=Function.prototype,Zf=Object.prototype,Qf=Kf.toString,Jf=Zf.hasOwnProperty,jf=RegExp("^"+Qf.call(Jf).replace(Wf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eh(t){if(!kr(t)||Uf(t))return!1;var e=zf(t)?jf:qf;return e.test(Xf(t))}var th=eh;function rh(t,e){return t==null?void 0:t[e]}var ah=rh;function nh(t,e){var r=ah(t,e);return th(r)?r:void 0}var Ei=nh,ih=Ei(Object,"create"),za=ih;function oh(){this.__data__=za?za(null):{},this.size=0}var sh=oh;function lh(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var uh=lh,vh="__lodash_hash_undefined__",fh=Object.prototype,hh=fh.hasOwnProperty;function ch(t){var e=this.__data__;if(za){var r=e[t];return r===vh?void 0:r}return hh.call(e,t)?e[t]:void 0}var dh=ch,gh=Object.prototype,ph=gh.hasOwnProperty;function yh(t){var e=this.__data__;return za?e[t]!==void 0:ph.call(e,t)}var mh=yh,bh="__lodash_hash_undefined__";function Eh(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=za&&e===void 0?bh:e,this}var wh=Eh;function oa(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var a=t[e];this.set(a[0],a[1])}}oa.prototype.clear=sh,oa.prototype.delete=uh,oa.prototype.get=dh,oa.prototype.has=mh,oa.prototype.set=wh;var jo=oa;function xh(){this.__data__=[],this.size=0}var Th=xh;function Ch(t,e){return t===e||t!==t&&e!==e}var es=Ch;function Dh(t,e){for(var r=t.length;r--;)if(es(t[r][0],e))return r;return-1}var Dn=Dh,Sh=Array.prototype,Lh=Sh.splice;function Ah(t){var e=this.__data__,r=Dn(e,t);if(r<0)return!1;var a=e.length-1;return r==a?e.pop():Lh.call(e,r,1),--this.size,!0}var Oh=Ah;function Nh(t){var e=this.__data__,r=Dn(e,t);return r<0?void 0:e[r][1]}var Ih=Nh;function Mh(t){return Dn(this.__data__,t)>-1}var Rh=Mh;function kh(t,e){var r=this.__data__,a=Dn(r,t);return a<0?(++this.size,r.push([t,e])):r[a][1]=e,this}var Ph=kh;function sa(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var a=t[e];this.set(a[0],a[1])}}sa.prototype.clear=Th,sa.prototype.delete=Oh,sa.prototype.get=Ih,sa.prototype.has=Rh,sa.prototype.set=Ph;var Bh=sa,Fh=Ei(on,"Map"),Gh=Fh;function zh(){this.size=0,this.__data__={hash:new jo,map:new(Gh||Bh),string:new jo}}var Vh=zh;function $h(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var Uh=$h;function _h(t,e){var r=t.__data__;return Uh(e)?r[typeof e=="string"?"string":"hash"]:r.map}var Sn=_h;function Yh(t){var e=Sn(this,t).delete(t);return this.size-=e?1:0,e}var Hh=Yh;function Xh(t){return Sn(this,t).get(t)}var Wh=Xh;function qh(t){return Sn(this,t).has(t)}var Kh=qh;function Zh(t,e){var r=Sn(this,t),a=r.size;return r.set(t,e),this.size+=r.size==a?0:1,this}var Qh=Zh;function la(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var a=t[e];this.set(a[0],a[1])}}la.prototype.clear=Vh,la.prototype.delete=Hh,la.prototype.get=Wh,la.prototype.has=Kh,la.prototype.set=Qh;var ts=la,Jh="Expected a function";function wi(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Jh);var r=function(){var a=arguments,n=e?e.apply(this,a):a[0],i=r.cache;if(i.has(n))return i.get(n);var o=t.apply(this,a);return r.cache=i.set(n,o)||i,o};return r.cache=new(wi.Cache||ts),r}wi.Cache=ts;var jh=wi,ec=500;function tc(t){var e=jh(t,function(a){return r.size===ec&&r.clear(),a}),r=e.cache;return e}var rc=tc,ac=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nc=/\\(\\)?/g,ic=rc(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(ac,function(r,a,n,i){e.push(n?i.replace(nc,"$1"):a||r)}),e}),rs=ic;function oc(t,e){for(var r=-1,a=t==null?0:t.length,n=Array(a);++r<a;)n[r]=e(t[r],r,t);return n}var as=oc,sc=1/0,ns=Zr?Zr.prototype:void 0,is=ns?ns.toString:void 0;function os(t){if(typeof t=="string")return t;if(Cn(t))return as(t,os)+"";if(Aa(t))return is?is.call(t):"";var e=t+"";return e=="0"&&1/t==-sc?"-0":e}var lc=os;function uc(t){return t==null?"":lc(t)}var ss=uc;function vc(t,e){return Cn(t)?t:Rf(t,e)?[t]:rs(ss(t))}var ls=vc,fc=1/0;function hc(t){if(typeof t=="string"||Aa(t))return t;var e=t+"";return e=="0"&&1/t==-fc?"-0":e}var xi=hc;function cc(t,e){e=ls(e,t);for(var r=0,a=e.length;t!=null&&r<a;)t=t[xi(e[r++])];return r&&r==a?t:void 0}var dc=cc;function gc(t,e,r){var a=t==null?void 0:dc(t,e);return a===void 0?r:a}var pc=gc,yc=function(){try{var t=Ei(Object,"defineProperty");return t({},"",{}),t}catch{}}(),us=yc;function mc(t,e,r){e=="__proto__"&&us?us(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var bc=mc,Ec=Object.prototype,wc=Ec.hasOwnProperty;function xc(t,e,r){var a=t[e];(!(wc.call(t,e)&&es(a,r))||r===void 0&&!(e in t))&&bc(t,e,r)}var Tc=xc,Cc=9007199254740991,Dc=/^(?:0|[1-9]\d*)$/;function Sc(t,e){var r=typeof t;return e=e??Cc,!!e&&(r=="number"||r!="symbol"&&Dc.test(t))&&t>-1&&t%1==0&&t<e}var Lc=Sc;function Ac(t,e,r,a){if(!kr(t))return t;e=ls(e,t);for(var n=-1,i=e.length,o=i-1,s=t;s!=null&&++n<i;){var u=xi(e[n]),l=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return t;if(n!=o){var v=s[u];l=a?a(v,u,s):void 0,l===void 0&&(l=kr(v)?v:Lc(e[n+1])?[]:{})}Tc(s,u,l),s=s[u]}return t}var Oc=Ac;function Nc(t,e,r){return t==null?t:Oc(t,e,r)}var Ic=Nc;function Mc(t,e){var r=-1,a=t.length;for(e||(e=Array(a));++r<a;)e[r]=t[r];return e}var Rc=Mc;function kc(t){return Cn(t)?as(t,xi):Aa(t)?[t]:Rc(rs(ss(t)))}var Pc=kc,Bc={data:function(e){var r={field:"data",bindingEvent:"data",allowBinding:!1,allowSetting:!1,allowGetting:!1,settingEvent:"data",settingTriggersEvent:!1,triggerFnName:"trigger",immutableKeys:{},updateStyle:!1,beforeGet:function(n){},beforeSet:function(n,i){},onSet:function(n){},canSet:function(n){return!0}};return e=He({},r,e),function(n,i){var o=e,s=this,u=s.length!==void 0,l=u?s:[s],v=u?s[0]:s;if(ee(n)){var f=n.indexOf(".")!==-1,h=f&&Pc(n);if(o.allowGetting&&i===void 0){var d;return v&&(o.beforeGet(v),h&&v._private[o.field][n]===void 0?d=pc(v._private[o.field],h):d=v._private[o.field][n]),d}else if(o.allowSetting&&i!==void 0){var c=!o.immutableKeys[n];if(c){var y=T({},n,i);o.beforeSet(s,y);for(var p=0,g=l.length;p<g;p++){var m=l[p];o.canSet(m)&&(h&&v._private[o.field][n]===void 0?Ic(m._private[o.field],h,i):m._private[o.field][n]=i)}o.updateStyle&&s.updateStyle(),o.onSet(s),o.settingTriggersEvent&&s[o.triggerFnName](o.settingEvent)}}}else if(o.allowSetting&&S(n)){var b=n,E,M,L=Object.keys(b);o.beforeSet(s,b);for(var w=0;w<L.length;w++){E=L[w],M=b[E];var k=!o.immutableKeys[E];if(k)for(var D=0;D<l.length;D++){var F=l[D];o.canSet(F)&&(F._private[o.field][E]=M)}}o.updateStyle&&s.updateStyle(),o.onSet(s),o.settingTriggersEvent&&s[o.triggerFnName](o.settingEvent)}else if(o.allowBinding&&H(n)){var G=n;s.on(o.bindingEvent,G)}else if(o.allowGetting&&n===void 0){var I;return v&&(o.beforeGet(v),I=v._private[o.field]),I}return s}},removeData:function(e){var r={field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!1,immutableKeys:{}};return e=He({},r,e),function(n){var i=e,o=this,s=o.length!==void 0,u=s?o:[o];if(ee(n)){for(var l=n.split(/\s+/),v=l.length,f=0;f<v;f++){var h=l[f];if(!Re(h)){var d=!i.immutableKeys[h];if(d)for(var c=0,y=u.length;c<y;c++)u[c]._private[i.field][h]=void 0}}i.triggerEvent&&o[i.triggerFnName](i.event)}else if(n===void 0){for(var p=0,g=u.length;p<g;p++)for(var m=u[p]._private[i.field],b=Object.keys(m),E=0;E<b.length;E++){var M=b[E],L=!i.immutableKeys[M];L&&(m[M]=void 0)}i.triggerEvent&&o[i.triggerFnName](i.event)}return o}}},Fc={eventAliasesOn:function(e){var r=e;r.addListener=r.listen=r.bind=r.on,r.unlisten=r.unbind=r.off=r.removeListener,r.trigger=r.emit,r.pon=r.promiseOn=function(a,n){var i=this,o=Array.prototype.slice.call(arguments,0);return new ia(function(s,u){var l=function(d){i.off.apply(i,f),s(d)},v=o.concat([l]),f=v.concat([]);i.on.apply(i,v)})}}},ct={};[Af,Bc,Fc].forEach(function(t){He(ct,t)});var Gc={animate:ct.animate(),animation:ct.animation(),animated:ct.animated(),clearQueue:ct.clearQueue(),delay:ct.delay(),delayAnimation:ct.delayAnimation(),stop:ct.stop()},Ln={classes:function(e){var r=this;if(e===void 0){var a=[];return r[0]._private.classes.forEach(function(c){return a.push(c)}),a}else te(e)||(e=(e||"").match(/\S+/g)||[]);for(var n=[],i=new Jr(e),o=0;o<r.length;o++){for(var s=r[o],u=s._private,l=u.classes,v=!1,f=0;f<e.length;f++){var h=e[f],d=l.has(h);if(!d){v=!0;break}}v||(v=l.size!==e.length),v&&(u.classes=i,n.push(s))}return n.length>0&&this.spawn(n).updateStyle().emit("class"),r},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var r=this[0];return r!=null&&r._private.classes.has(e)},toggleClass:function(e,r){te(e)||(e=e.match(/\S+/g)||[]);for(var a=this,n=r===void 0,i=[],o=0,s=a.length;o<s;o++)for(var u=a[o],l=u._private.classes,v=!1,f=0;f<e.length;f++){var h=e[f],d=l.has(h),c=!1;r||n&&!d?(l.add(h),c=!0):(!r||n&&d)&&(l.delete(h),c=!0),!v&&c&&(i.push(u),v=!0)}return i.length>0&&this.spawn(i).updateStyle().emit("class"),a},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,r){var a=this;if(r==null)r=250;else if(r===0)return a;return a.addClass(e),setTimeout(function(){a.removeClass(e)},r),a}};Ln.className=Ln.classNames=Ln.classes;var ot={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:gt,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};ot.variable="(?:[\\w-.]|(?:\\\\"+ot.metaChar+"))+",ot.className="(?:[\\w-]|(?:\\\\"+ot.metaChar+"))+",ot.value=ot.string+"|"+ot.number,ot.id=ot.variable,function(){var t,e,r;for(t=ot.comparatorOp.split("|"),r=0;r<t.length;r++)e=t[r],ot.comparatorOp+="|@"+e;for(t=ot.comparatorOp.split("|"),r=0;r<t.length;r++)e=t[r],!(e.indexOf("!")>=0)&&e!=="="&&(ot.comparatorOp+="|\\!"+e)}();var pt=function(){return{checks:[]}},ke={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},Ti=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(t,e){return Kl(t.selector,e.selector)}),zc=function(){for(var t={},e,r=0;r<Ti.length;r++)e=Ti[r],t[e.selector]=e.matches;return t}(),Vc=function(e,r){return zc[e](r)},$c="("+Ti.map(function(t){return t.selector}).join("|")+")",ua=function(e){return e.replace(new RegExp("\\\\("+ot.metaChar+")","g"),function(r,a){return a})},Dr=function(e,r,a){e[e.length-1]=a},Ci=[{name:"group",query:!0,regex:"("+ot.group+")",populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:ke.GROUP,value:i==="*"?i:i+"s"})}},{name:"state",query:!0,regex:$c,populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:ke.STATE,value:i})}},{name:"id",query:!0,regex:"\\#("+ot.id+")",populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:ke.ID,value:ua(i)})}},{name:"className",query:!0,regex:"\\.("+ot.className+")",populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:ke.CLASS,value:ua(i)})}},{name:"dataExists",query:!0,regex:"\\[\\s*("+ot.variable+")\\s*\\]",populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:ke.DATA_EXIST,field:ua(i)})}},{name:"dataCompare",query:!0,regex:"\\[\\s*("+ot.variable+")\\s*("+ot.comparatorOp+")\\s*("+ot.value+")\\s*\\]",populate:function(e,r,a){var n=x(a,3),i=n[0],o=n[1],s=n[2],u=new RegExp("^"+ot.string+"$").exec(s)!=null;u?s=s.substring(1,s.length-1):s=parseFloat(s),r.checks.push({type:ke.DATA_COMPARE,field:ua(i),operator:o,value:s})}},{name:"dataBool",query:!0,regex:"\\[\\s*("+ot.boolOp+")\\s*("+ot.variable+")\\s*\\]",populate:function(e,r,a){var n=x(a,2),i=n[0],o=n[1];r.checks.push({type:ke.DATA_BOOL,field:ua(o),operator:i})}},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+ot.meta+")\\s*("+ot.comparatorOp+")\\s*("+ot.number+")\\s*\\]\\]",populate:function(e,r,a){var n=x(a,3),i=n[0],o=n[1],s=n[2];r.checks.push({type:ke.META_COMPARE,field:ua(i),operator:o,value:parseFloat(s)})}},{name:"nextQuery",separator:!0,regex:ot.separator,populate:function(e,r){var a=e.currentSubject,n=e.edgeCount,i=e.compoundCount,o=e[e.length-1];a!=null&&(o.subject=a,e.currentSubject=null),o.edgeCount=n,o.compoundCount=i,e.edgeCount=0,e.compoundCount=0;var s=e[e.length++]=pt();return s}},{name:"directedEdge",separator:!0,regex:ot.directedEdge,populate:function(e,r){if(e.currentSubject==null){var a=pt(),n=r,i=pt();return a.checks.push({type:ke.DIRECTED_EDGE,source:n,target:i}),Dr(e,r,a),e.edgeCount++,i}else{var o=pt(),s=r,u=pt();return o.checks.push({type:ke.NODE_SOURCE,source:s,target:u}),Dr(e,r,o),e.edgeCount++,u}}},{name:"undirectedEdge",separator:!0,regex:ot.undirectedEdge,populate:function(e,r){if(e.currentSubject==null){var a=pt(),n=r,i=pt();return a.checks.push({type:ke.UNDIRECTED_EDGE,nodes:[n,i]}),Dr(e,r,a),e.edgeCount++,i}else{var o=pt(),s=r,u=pt();return o.checks.push({type:ke.NODE_NEIGHBOR,node:s,neighbor:u}),Dr(e,r,o),u}}},{name:"child",separator:!0,regex:ot.child,populate:function(e,r){if(e.currentSubject==null){var a=pt(),n=pt(),i=e[e.length-1];return a.checks.push({type:ke.CHILD,parent:i,child:n}),Dr(e,r,a),e.compoundCount++,n}else if(e.currentSubject===r){var o=pt(),s=e[e.length-1],u=pt(),l=pt(),v=pt(),f=pt();return o.checks.push({type:ke.COMPOUND_SPLIT,left:s,right:u,subject:l}),l.checks=r.checks,r.checks=[{type:ke.TRUE}],f.checks.push({type:ke.TRUE}),u.checks.push({type:ke.PARENT,parent:f,child:v}),Dr(e,s,o),e.currentSubject=l,e.compoundCount++,v}else{var h=pt(),d=pt(),c=[{type:ke.PARENT,parent:h,child:d}];return h.checks=r.checks,r.checks=c,e.compoundCount++,d}}},{name:"descendant",separator:!0,regex:ot.descendant,populate:function(e,r){if(e.currentSubject==null){var a=pt(),n=pt(),i=e[e.length-1];return a.checks.push({type:ke.DESCENDANT,ancestor:i,descendant:n}),Dr(e,r,a),e.compoundCount++,n}else if(e.currentSubject===r){var o=pt(),s=e[e.length-1],u=pt(),l=pt(),v=pt(),f=pt();return o.checks.push({type:ke.COMPOUND_SPLIT,left:s,right:u,subject:l}),l.checks=r.checks,r.checks=[{type:ke.TRUE}],f.checks.push({type:ke.TRUE}),u.checks.push({type:ke.ANCESTOR,ancestor:f,descendant:v}),Dr(e,s,o),e.currentSubject=l,e.compoundCount++,v}else{var h=pt(),d=pt(),c=[{type:ke.ANCESTOR,ancestor:h,descendant:d}];return h.checks=r.checks,r.checks=c,e.compoundCount++,d}}},{name:"subject",modifier:!0,regex:ot.subject,populate:function(e,r){if(e.currentSubject!=null&&e.currentSubject!==r)return ht("Redefinition of subject in selector `"+e.toString()+"`"),!1;e.currentSubject=r;var a=e[e.length-1],n=a.checks[0],i=n==null?null:n.type;i===ke.DIRECTED_EDGE?n.type=ke.NODE_TARGET:i===ke.UNDIRECTED_EDGE&&(n.type=ke.NODE_NEIGHBOR,n.node=n.nodes[1],n.neighbor=n.nodes[0],n.nodes=null)}}];Ci.forEach(function(t){return t.regexObj=new RegExp("^"+t.regex)});var Uc=function(e){for(var r,a,n,i=0;i<Ci.length;i++){var o=Ci[i],s=o.name,u=e.match(o.regexObj);if(u!=null){a=u,r=o,n=s;var l=u[0];e=e.substring(l.length);break}}return{expr:r,match:a,name:n,remaining:e}},_c=function(e){var r=e.match(/^\s+/);if(r){var a=r[0];e=e.substring(a.length)}return e},Yc=function(e){var r=this,a=r.inputText=e,n=r[0]=pt();for(r.length=1,a=_c(a);;){var i=Uc(a);if(i.expr==null)return ht("The selector `"+e+"`is invalid"),!1;var o=i.match.slice(1),s=i.expr.populate(r,n,o);if(s===!1)return!1;if(s!=null&&(n=s),a=i.remaining,a.match(/^\s*$/))break}var u=r[r.length-1];r.currentSubject!=null&&(u.subject=r.currentSubject),u.edgeCount=r.edgeCount,u.compoundCount=r.compoundCount;for(var l=0;l<r.length;l++){var v=r[l];if(v.compoundCount>0&&v.edgeCount>0)return ht("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(v.edgeCount>1)return ht("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;v.edgeCount===1&&ht("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},Hc=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(v){return v??""},r=function(v){return ee(v)?'"'+v+'"':e(v)},a=function(v){return" "+v+" "},n=function(v,f){var h=v.type,d=v.value;switch(h){case ke.GROUP:{var c=e(d);return c.substring(0,c.length-1)}case ke.DATA_COMPARE:{var y=v.field,p=v.operator;return"["+y+a(e(p))+r(d)+"]"}case ke.DATA_BOOL:{var g=v.operator,m=v.field;return"["+e(g)+m+"]"}case ke.DATA_EXIST:{var b=v.field;return"["+b+"]"}case ke.META_COMPARE:{var E=v.operator,M=v.field;return"[["+M+a(e(E))+r(d)+"]]"}case ke.STATE:return d;case ke.ID:return"#"+d;case ke.CLASS:return"."+d;case ke.PARENT:case ke.CHILD:return i(v.parent,f)+a(">")+i(v.child,f);case ke.ANCESTOR:case ke.DESCENDANT:return i(v.ancestor,f)+" "+i(v.descendant,f);case ke.COMPOUND_SPLIT:{var L=i(v.left,f),w=i(v.subject,f),k=i(v.right,f);return L+(L.length>0?" ":"")+w+k}case ke.TRUE:return""}},i=function(v,f){return v.checks.reduce(function(h,d,c){return h+(f===v&&c===0?"$":"")+n(d,f)},"")},o="",s=0;s<this.length;s++){var u=this[s];o+=i(u,u.subject),this.length>1&&s<this.length-1&&(o+=", ")}return this.toStringCache=o,o},Xc={parse:Yc,toString:Hc},vs=function(e,r,a){var n,i=ee(e),o=R(e),s=ee(a),u,l,v=!1,f=!1,h=!1;switch(r.indexOf("!")>=0&&(r=r.replace("!",""),f=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),v=!0),(i||s||v)&&(u=!i&&!o?"":""+e,l=""+a),v&&(e=u=u.toLowerCase(),a=l=l.toLowerCase()),r){case"*=":n=u.indexOf(l)>=0;break;case"$=":n=u.indexOf(l,u.length-l.length)>=0;break;case"^=":n=u.indexOf(l)===0;break;case"=":n=e===a;break;case">":h=!0,n=e>a;break;case">=":h=!0,n=e>=a;break;case"<":h=!0,n=e<a;break;case"<=":h=!0,n=e<=a;break;default:n=!1;break}return f&&(e!=null||!h)&&(n=!n),n},Wc=function(e,r){switch(r){case"?":return!!e;case"!":return!e;case"^":return e===void 0}},qc=function(e){return e!==void 0},Di=function(e,r){return e.data(r)},Kc=function(e,r){return e[r]()},Tt=[],wt=function(e,r){return e.checks.every(function(a){return Tt[a.type](a,r)})};Tt[ke.GROUP]=function(t,e){var r=t.value;return r==="*"||r===e.group()},Tt[ke.STATE]=function(t,e){var r=t.value;return Vc(r,e)},Tt[ke.ID]=function(t,e){var r=t.value;return e.id()===r},Tt[ke.CLASS]=function(t,e){var r=t.value;return e.hasClass(r)},Tt[ke.META_COMPARE]=function(t,e){var r=t.field,a=t.operator,n=t.value;return vs(Kc(e,r),a,n)},Tt[ke.DATA_COMPARE]=function(t,e){var r=t.field,a=t.operator,n=t.value;return vs(Di(e,r),a,n)},Tt[ke.DATA_BOOL]=function(t,e){var r=t.field,a=t.operator;return Wc(Di(e,r),a)},Tt[ke.DATA_EXIST]=function(t,e){var r=t.field;return t.operator,qc(Di(e,r))},Tt[ke.UNDIRECTED_EDGE]=function(t,e){var r=t.nodes[0],a=t.nodes[1],n=e.source(),i=e.target();return wt(r,n)&&wt(a,i)||wt(a,n)&&wt(r,i)},Tt[ke.NODE_NEIGHBOR]=function(t,e){return wt(t.node,e)&&e.neighborhood().some(function(r){return r.isNode()&&wt(t.neighbor,r)})},Tt[ke.DIRECTED_EDGE]=function(t,e){return wt(t.source,e.source())&&wt(t.target,e.target())},Tt[ke.NODE_SOURCE]=function(t,e){return wt(t.source,e)&&e.outgoers().some(function(r){return r.isNode()&&wt(t.target,r)})},Tt[ke.NODE_TARGET]=function(t,e){return wt(t.target,e)&&e.incomers().some(function(r){return r.isNode()&&wt(t.source,r)})},Tt[ke.CHILD]=function(t,e){return wt(t.child,e)&&wt(t.parent,e.parent())},Tt[ke.PARENT]=function(t,e){return wt(t.parent,e)&&e.children().some(function(r){return wt(t.child,r)})},Tt[ke.DESCENDANT]=function(t,e){return wt(t.descendant,e)&&e.ancestors().some(function(r){return wt(t.ancestor,r)})},Tt[ke.ANCESTOR]=function(t,e){return wt(t.ancestor,e)&&e.descendants().some(function(r){return wt(t.descendant,r)})},Tt[ke.COMPOUND_SPLIT]=function(t,e){return wt(t.subject,e)&&wt(t.left,e)&&wt(t.right,e)},Tt[ke.TRUE]=function(){return!0},Tt[ke.COLLECTION]=function(t,e){var r=t.value;return r.has(e)},Tt[ke.FILTER]=function(t,e){var r=t.value;return r(e)};var Zc=function(e){var r=this;if(r.length===1&&r[0].checks.length===1&&r[0].checks[0].type===ke.ID)return e.getElementById(r[0].checks[0].value).collection();var a=function(i){for(var o=0;o<r.length;o++){var s=r[o];if(wt(s,i))return!0}return!1};return r.text()==null&&(a=function(){return!0}),e.filter(a)},Qc=function(e){for(var r=this,a=0;a<r.length;a++){var n=r[a];if(wt(n,e))return!0}return!1},Jc={matches:Qc,filter:Zc},Sr=function(e){this.inputText=e,this.currentSubject=null,this.compoundCount=0,this.edgeCount=0,this.length=0,e==null||ee(e)&&e.match(/^\s*$/)||(pe(e)?this.addQuery({checks:[{type:ke.COLLECTION,value:e.collection()}]}):H(e)?this.addQuery({checks:[{type:ke.FILTER,value:e}]}):ee(e)?this.parse(e)||(this.invalid=!0):xt("A selector must be created from a string; found "))},Lr=Sr.prototype;[Xc,Jc].forEach(function(t){return He(Lr,t)}),Lr.text=function(){return this.inputText},Lr.size=function(){return this.length},Lr.eq=function(t){return this[t]},Lr.sameText=function(t){return!this.invalid&&!t.invalid&&this.text()===t.text()},Lr.addQuery=function(t){this[this.length++]=t},Lr.selector=Lr.toString;var Ar={allAre:function(e){var r=new Sr(e);return this.every(function(a){return r.matches(a)})},is:function(e){var r=new Sr(e);return this.some(function(a){return r.matches(a)})},some:function(e,r){for(var a=0;a<this.length;a++){var n=r?e.apply(r,[this[a],a,this]):e(this[a],a,this);if(n)return!0}return!1},every:function(e,r){for(var a=0;a<this.length;a++){var n=r?e.apply(r,[this[a],a,this]):e(this[a],a,this);if(!n)return!1}return!0},same:function(e){if(this===e)return!0;e=this.cy().collection(e);var r=this.length,a=e.length;return r!==a?!1:r===1?this[0]===e[0]:this.every(function(n){return e.hasElementWithId(n.id())})},anySame:function(e){return e=this.cy().collection(e),this.some(function(r){return e.hasElementWithId(r.id())})},allAreNeighbors:function(e){e=this.cy().collection(e);var r=this.neighborhood();return e.every(function(a){return r.hasElementWithId(a.id())})},contains:function(e){e=this.cy().collection(e);var r=this;return e.every(function(a){return r.hasElementWithId(a.id())})}};Ar.allAreNeighbours=Ar.allAreNeighbors,Ar.has=Ar.contains,Ar.equal=Ar.equals=Ar.same;var Zt=function(e,r){return function(n,i,o,s){var u=n,l=this,v;if(u==null?v="":pe(u)&&u.length===1&&(v=u.id()),l.length===1&&v){var f=l[0]._private,h=f.traversalCache=f.traversalCache||{},d=h[r]=h[r]||[],c=Pr(v),y=d[c];return y||(d[c]=e.call(l,n,i,o,s))}else return e.call(l,n,i,o,s)}},va={parent:function(e){var r=[];if(this.length===1){var a=this[0]._private.parent;if(a)return a}for(var n=0;n<this.length;n++){var i=this[n],o=i._private.parent;o&&r.push(o)}return this.spawn(r,!0).filter(e)},parents:function(e){for(var r=[],a=this.parent();a.nonempty();){for(var n=0;n<a.length;n++){var i=a[n];r.push(i)}a=a.parent()}return this.spawn(r,!0).filter(e)},commonAncestors:function(e){for(var r,a=0;a<this.length;a++){var n=this[a],i=n.parents();r=r||i,r=r.intersect(i)}return r.filter(e)},orphans:function(e){return this.stdFilter(function(r){return r.isOrphan()}).filter(e)},nonorphans:function(e){return this.stdFilter(function(r){return r.isChild()}).filter(e)},children:Zt(function(t){for(var e=[],r=0;r<this.length;r++)for(var a=this[r],n=a._private.children,i=0;i<n.length;i++)e.push(n[i]);return this.spawn(e,!0).filter(t)},"children"),siblings:function(e){return this.parent().children().not(this).filter(e)},isParent:function(){var e=this[0];if(e)return e.isNode()&&e._private.children.length!==0},isChildless:function(){var e=this[0];if(e)return e.isNode()&&e._private.children.length===0},isChild:function(){var e=this[0];if(e)return e.isNode()&&e._private.parent!=null},isOrphan:function(){var e=this[0];if(e)return e.isNode()&&e._private.parent==null},descendants:function(e){var r=[];function a(n){for(var i=0;i<n.length;i++){var o=n[i];r.push(o),o.children().nonempty()&&a(o.children())}}return a(this.children()),this.spawn(r,!0).filter(e)}};function Si(t,e,r,a){for(var n=[],i=new Jr,o=t.cy(),s=o.hasCompoundNodes(),u=0;u<t.length;u++){var l=t[u];r?n.push(l):s&&a(n,i,l)}for(;n.length>0;){var v=n.shift();e(v),i.add(v.id()),s&&a(n,i,v)}return t}function fs(t,e,r){if(r.isParent())for(var a=r._private.children,n=0;n<a.length;n++){var i=a[n];e.has(i.id())||t.push(i)}}va.forEachDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Si(this,t,e,fs)};function hs(t,e,r){if(r.isChild()){var a=r._private.parent;e.has(a.id())||t.push(a)}}va.forEachUp=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Si(this,t,e,hs)};function jc(t,e,r){hs(t,e,r),fs(t,e,r)}va.forEachUpAndDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Si(this,t,e,jc)},va.ancestors=va.parents;var Va,cs;Va=cs={data:ct.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:ct.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:ct.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ct.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:ct.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:ct.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}},Va.attr=Va.data,Va.removeAttr=Va.removeData;var ed=cs,An={};function Li(t){return function(e){var r=this;if(e===void 0&&(e=!0),r.length!==0)if(r.isNode()&&!r.removed()){for(var a=0,n=r[0],i=n._private.edges,o=0;o<i.length;o++){var s=i[o];!e&&s.isLoop()||(a+=t(n,s))}return a}else return}}He(An,{degree:Li(function(t,e){return e.source().same(e.target())?2:1}),indegree:Li(function(t,e){return e.target().same(t)?1:0}),outdegree:Li(function(t,e){return e.source().same(t)?1:0})});function fa(t,e){return function(r){for(var a,n=this.nodes(),i=0;i<n.length;i++){var o=n[i],s=o[t](r);s!==void 0&&(a===void 0||e(s,a))&&(a=s)}return a}}He(An,{minDegree:fa("degree",function(t,e){return t<e}),maxDegree:fa("degree",function(t,e){return t>e}),minIndegree:fa("indegree",function(t,e){return t<e}),maxIndegree:fa("indegree",function(t,e){return t>e}),minOutdegree:fa("outdegree",function(t,e){return t<e}),maxOutdegree:fa("outdegree",function(t,e){return t>e})}),He(An,{totalDegree:function(e){for(var r=0,a=this.nodes(),n=0;n<a.length;n++)r+=a[n].degree(e);return r}});var tr,ds,gs=function(e,r,a){for(var n=0;n<e.length;n++){var i=e[n];if(!i.locked()){var o=i._private.position,s={x:r.x!=null?r.x-o.x:0,y:r.y!=null?r.y-o.y:0};i.isParent()&&!(s.x===0&&s.y===0)&&i.children().shift(s,a),i.dirtyBoundingBoxCache()}}},ps={field:"position",bindingEvent:"position",allowBinding:!0,allowSetting:!0,settingEvent:"position",settingTriggersEvent:!0,triggerFnName:"emitAndNotify",allowGetting:!0,validKeys:["x","y"],beforeGet:function(e){e.updateCompoundBounds()},beforeSet:function(e,r){gs(e,r,!1)},onSet:function(e){e.dirtyCompoundBoundsCache()},canSet:function(e){return!e.locked()}};tr=ds={position:ct.data(ps),silentPosition:ct.data(He({},ps,{allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!1,beforeSet:function(e,r){gs(e,r,!0)},onSet:function(e){e.dirtyCompoundBoundsCache()}})),positions:function(e,r){if(S(e))r?this.silentPosition(e):this.position(e);else if(H(e)){var a=e,n=this.cy();n.startBatch();for(var i=0;i<this.length;i++){var o=this[i],s=void 0;(s=a(o,i))&&(r?o.silentPosition(s):o.position(s))}n.endBatch()}return this},silentPositions:function(e){return this.positions(e,!0)},shift:function(e,r,a){var n;if(S(e)?(n={x:R(e.x)?e.x:0,y:R(e.y)?e.y:0},a=r):ee(e)&&R(r)&&(n={x:0,y:0},n[e]=r),n!=null){var i=this.cy();i.startBatch();for(var o=0;o<this.length;o++){var s=this[o];if(!(i.hasCompoundNodes()&&s.isChild()&&s.ancestors().anySame(this))){var u=s.position(),l={x:u.x+n.x,y:u.y+n.y};a?s.silentPosition(l):s.position(l)}}i.endBatch()}return this},silentShift:function(e,r){return S(e)?this.shift(e,!0):ee(e)&&R(r)&&this.shift(e,r,!0),this},renderedPosition:function(e,r){var a=this[0],n=this.cy(),i=n.zoom(),o=n.pan(),s=S(e)?e:void 0,u=s!==void 0||r!==void 0&&ee(e);if(a&&a.isNode())if(u)for(var l=0;l<this.length;l++){var v=this[l];r!==void 0?v.position(e,(r-o[e])/i):s!==void 0&&v.position(Eo(s,i,o))}else{var f=a.position();return s=hn(f,i,o),e===void 0?s:s[e]}else if(!u)return;return this},relativePosition:function(e,r){var a=this[0],n=this.cy(),i=S(e)?e:void 0,o=i!==void 0||r!==void 0&&ee(e),s=n.hasCompoundNodes();if(a&&a.isNode())if(o)for(var u=0;u<this.length;u++){var l=this[u],v=s?l.parent():null,f=v&&v.length>0,h=f;f&&(v=v[0]);var d=h?v.position():{x:0,y:0};r!==void 0?l.position(e,r+d[e]):i!==void 0&&l.position({x:i.x+d.x,y:i.y+d.y})}else{var c=a.position(),y=s?a.parent():null,p=y&&y.length>0,g=p;p&&(y=y[0]);var m=g?y.position():{x:0,y:0};return i={x:c.x-m.x,y:c.y-m.y},e===void 0?i:i[e]}else if(!o)return;return this}},tr.modelPosition=tr.point=tr.position,tr.modelPositions=tr.points=tr.positions,tr.renderedPoint=tr.renderedPosition,tr.relativePoint=tr.relativePosition;var td=ds,ha,Or;ha=Or={},Or.renderedBoundingBox=function(t){var e=this.boundingBox(t),r=this.cy(),a=r.zoom(),n=r.pan(),i=e.x1*a+n.x,o=e.x2*a+n.x,s=e.y1*a+n.y,u=e.y2*a+n.y;return{x1:i,x2:o,y1:s,y2:u,w:o-i,h:u-s}},Or.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(r){if(r.isParent()){var a=r._private;a.compoundBoundsClean=!1,a.bbCache=null,t||r.emitAndNotify("bounds")}}),this)},Or.updateCompoundBounds=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function r(o){if(!o.isParent())return;var s=o._private,u=o.children(),l=o.pstyle("compound-sizing-wrt-labels").value==="include",v={width:{val:o.pstyle("min-width").pfValue,left:o.pstyle("min-width-bias-left"),right:o.pstyle("min-width-bias-right")},height:{val:o.pstyle("min-height").pfValue,top:o.pstyle("min-height-bias-top"),bottom:o.pstyle("min-height-bias-bottom")}},f=u.boundingBox({includeLabels:l,includeOverlays:!1,useCache:!1}),h=s.position;(f.w===0||f.h===0)&&(f={w:o.pstyle("width").pfValue,h:o.pstyle("height").pfValue},f.x1=h.x-f.w/2,f.x2=h.x+f.w/2,f.y1=h.y-f.h/2,f.y2=h.y+f.h/2);function d(D,F,G){var I=0,X=0,B=F+G;return D>0&&B>0&&(I=F/B*D,X=G/B*D),{biasDiff:I,biasComplementDiff:X}}function c(D,F,G,I){if(G.units==="%")switch(I){case"width":return D>0?G.pfValue*D:0;case"height":return F>0?G.pfValue*F:0;case"average":return D>0&&F>0?G.pfValue*(D+F)/2:0;case"min":return D>0&&F>0?D>F?G.pfValue*F:G.pfValue*D:0;case"max":return D>0&&F>0?D>F?G.pfValue*D:G.pfValue*F:0;default:return 0}else return G.units==="px"?G.pfValue:0}var y=v.width.left.value;v.width.left.units==="px"&&v.width.val>0&&(y=y*100/v.width.val);var p=v.width.right.value;v.width.right.units==="px"&&v.width.val>0&&(p=p*100/v.width.val);var g=v.height.top.value;v.height.top.units==="px"&&v.height.val>0&&(g=g*100/v.height.val);var m=v.height.bottom.value;v.height.bottom.units==="px"&&v.height.val>0&&(m=m*100/v.height.val);var b=d(v.width.val-f.w,y,p),E=b.biasDiff,M=b.biasComplementDiff,L=d(v.height.val-f.h,g,m),w=L.biasDiff,k=L.biasComplementDiff;s.autoPadding=c(f.w,f.h,o.pstyle("padding"),o.pstyle("padding-relative-to").value),s.autoWidth=Math.max(f.w,v.width.val),h.x=(-E+f.x1+f.x2+M)/2,s.autoHeight=Math.max(f.h,v.height.val),h.y=(-w+f.y1+f.y2+k)/2}for(var a=0;a<this.length;a++){var n=this[a],i=n._private;(!i.compoundBoundsClean||t)&&(r(n),e.batching()||(i.compoundBoundsClean=!0))}return this};var Qt=function(e){return e===1/0||e===-1/0?0:e},rr=function(e,r,a,n,i){n-r===0||i-a===0||r==null||a==null||n==null||i==null||(e.x1=r<e.x1?r:e.x1,e.x2=n>e.x2?n:e.x2,e.y1=a<e.y1?a:e.y1,e.y2=i>e.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},Vr=function(e,r){return r==null?e:rr(e,r.x1,r.y1,r.x2,r.y2)},$a=function(e,r,a){return er(e,r,a)},On=function(e,r,a){if(!r.cy().headless()){var n=r._private,i=n.rstyle,o=i.arrowWidth/2,s=r.pstyle(a+"-arrow-shape").value,u,l;if(s!=="none"){a==="source"?(u=i.srcX,l=i.srcY):a==="target"?(u=i.tgtX,l=i.tgtY):(u=i.midX,l=i.midY);var v=n.arrowBounds=n.arrowBounds||{},f=v[a]=v[a]||{};f.x1=u-o,f.y1=l-o,f.x2=u+o,f.y2=l+o,f.w=f.x2-f.x1,f.h=f.y2-f.y1,dn(f,1),rr(e,f.x1,f.y1,f.x2,f.y2)}}},Ai=function(e,r,a){if(!r.cy().headless()){var n;a?n=a+"-":n="";var i=r._private,o=i.rstyle,s=r.pstyle(n+"label").strValue;if(s){var u=r.pstyle("text-halign"),l=r.pstyle("text-valign"),v=$a(o,"labelWidth",a),f=$a(o,"labelHeight",a),h=$a(o,"labelX",a),d=$a(o,"labelY",a),c=r.pstyle(n+"text-margin-x").pfValue,y=r.pstyle(n+"text-margin-y").pfValue,p=r.isEdge(),g=r.pstyle(n+"text-rotation"),m=r.pstyle("text-outline-width").pfValue,b=r.pstyle("text-border-width").pfValue,E=b/2,M=r.pstyle("text-background-padding").pfValue,L=2,w=f,k=v,D=k/2,F=w/2,G,I,X,B;if(p)G=h-D,I=h+D,X=d-F,B=d+F;else{switch(u.value){case"left":G=h-k,I=h;break;case"center":G=h-D,I=h+D;break;case"right":G=h,I=h+k;break}switch(l.value){case"top":X=d-w,B=d;break;case"center":X=d-F,B=d+F;break;case"bottom":X=d,B=d+w;break}}G+=c-Math.max(m,E)-M-L,I+=c+Math.max(m,E)+M+L,X+=y-Math.max(m,E)-M-L,B+=y+Math.max(m,E)+M+L;var re=a||"main",K=i.labelBounds,W=K[re]=K[re]||{};W.x1=G,W.y1=X,W.x2=I,W.y2=B,W.w=I-G,W.h=B-X;var ae=p&&g.strValue==="autorotate",ue=g.pfValue!=null&&g.pfValue!==0;if(ae||ue){var me=ae?$a(i.rstyle,"labelAngle",a):g.pfValue,ie=Math.cos(me),ge=Math.sin(me),Ee=(G+I)/2,Ce=(X+B)/2;if(!p){switch(u.value){case"left":Ee=I;break;case"right":Ee=G;break}switch(l.value){case"top":Ce=B;break;case"bottom":Ce=X;break}}var we=function(Xe,Ie){return Xe=Xe-Ee,Ie=Ie-Ce,{x:Xe*ie-Ie*ge+Ee,y:Xe*ge+Ie*ie+Ce}},De=we(G,X),oe=we(G,B),xe=we(I,X),Le=we(I,B);G=Math.min(De.x,oe.x,xe.x,Le.x),I=Math.max(De.x,oe.x,xe.x,Le.x),X=Math.min(De.y,oe.y,xe.y,Le.y),B=Math.max(De.y,oe.y,xe.y,Le.y)}var Se=re+"Rot",Oe=K[Se]=K[Se]||{};Oe.x1=G,Oe.y1=X,Oe.x2=I,Oe.y2=B,Oe.w=I-G,Oe.h=B-X,rr(e,G,X,I,B),rr(i.labelBounds.all,G,X,I,B)}return e}},rd=function(e,r){if(!r.cy().headless()){var a=r.pstyle("outline-opacity").value,n=r.pstyle("outline-width").value;if(a>0&&n>0){var i=r.pstyle("outline-offset").value,o=r.pstyle("shape").value,s=n+i,u=(e.w+s*2)/e.w,l=(e.h+s*2)/e.h,v=0,f=0;["diamond","pentagon","round-triangle"].includes(o)?(u=(e.w+s*2.4)/e.w,f=-s/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(o)?u=(e.w+s*2.4)/e.w:o==="star"?(u=(e.w+s*2.8)/e.w,l=(e.h+s*2.6)/e.h,f=-s/3.8):o==="triangle"?(u=(e.w+s*2.8)/e.w,l=(e.h+s*2.4)/e.h,f=-s/1.4):o==="vee"&&(u=(e.w+s*4.4)/e.w,l=(e.h+s*3.8)/e.h,f=-s*.5);var h=e.h*l-e.h,d=e.w*u-e.w;if(gn(e,[Math.ceil(h/2),Math.ceil(d/2)]),v!=0||f!==0){var c=xv(e,v,f);xo(e,c)}}}},ad=function(e,r){var a=e._private.cy,n=a.styleEnabled(),i=a.headless(),o=Yt(),s=e._private,u=e.isNode(),l=e.isEdge(),v,f,h,d,c,y,p=s.rstyle,g=u&&n?e.pstyle("bounds-expansion").pfValue:[0],m=function($e){return $e.pstyle("display").value!=="none"},b=!n||m(e)&&(!l||m(e.source())&&m(e.target()));if(b){var E=0,M=0;n&&r.includeOverlays&&(E=e.pstyle("overlay-opacity").value,E!==0&&(M=e.pstyle("overlay-padding").value));var L=0,w=0;n&&r.includeUnderlays&&(L=e.pstyle("underlay-opacity").value,L!==0&&(w=e.pstyle("underlay-padding").value));var k=Math.max(M,w),D=0,F=0;if(n&&(D=e.pstyle("width").pfValue,F=D/2),u&&r.includeNodes){var G=e.position();c=G.x,y=G.y;var I=e.outerWidth(),X=I/2,B=e.outerHeight(),re=B/2;v=c-X,f=c+X,h=y-re,d=y+re,rr(o,v,h,f,d),n&&r.includeOutlines&&rd(o,e)}else if(l&&r.includeEdges)if(n&&!i){var K=e.pstyle("curve-style").strValue;if(v=Math.min(p.srcX,p.midX,p.tgtX),f=Math.max(p.srcX,p.midX,p.tgtX),h=Math.min(p.srcY,p.midY,p.tgtY),d=Math.max(p.srcY,p.midY,p.tgtY),v-=F,f+=F,h-=F,d+=F,rr(o,v,h,f,d),K==="haystack"){var W=p.haystackPts;if(W&&W.length===2){if(v=W[0].x,h=W[0].y,f=W[1].x,d=W[1].y,v>f){var ae=v;v=f,f=ae}if(h>d){var ue=h;h=d,d=ue}rr(o,v-F,h-F,f+F,d+F)}}else if(K==="bezier"||K==="unbundled-bezier"||K==="segments"||K==="taxi"){var me;switch(K){case"bezier":case"unbundled-bezier":me=p.bezierPts;break;case"segments":case"taxi":me=p.linePts;break}if(me!=null)for(var ie=0;ie<me.length;ie++){var ge=me[ie];v=ge.x-F,f=ge.x+F,h=ge.y-F,d=ge.y+F,rr(o,v,h,f,d)}}}else{var Ee=e.source(),Ce=Ee.position(),we=e.target(),De=we.position();if(v=Ce.x,f=De.x,h=Ce.y,d=De.y,v>f){var oe=v;v=f,f=oe}if(h>d){var xe=h;h=d,d=xe}v-=F,f+=F,h-=F,d+=F,rr(o,v,h,f,d)}if(n&&r.includeEdges&&l&&(On(o,e,"mid-source"),On(o,e,"mid-target"),On(o,e,"source"),On(o,e,"target")),n){var Le=e.pstyle("ghost").value==="yes";if(Le){var Se=e.pstyle("ghost-offset-x").pfValue,Oe=e.pstyle("ghost-offset-y").pfValue;rr(o,o.x1+Se,o.y1+Oe,o.x2+Se,o.y2+Oe)}}var Fe=s.bodyBounds=s.bodyBounds||{};To(Fe,o),gn(Fe,g),dn(Fe,1),n&&(v=o.x1,f=o.x2,h=o.y1,d=o.y2,rr(o,v-k,h-k,f+k,d+k));var Xe=s.overlayBounds=s.overlayBounds||{};To(Xe,o),gn(Xe,g),dn(Xe,1);var Ie=s.labelBounds=s.labelBounds||{};Ie.all!=null?wv(Ie.all):Ie.all=Yt(),n&&r.includeLabels&&(r.includeMainLabels&&Ai(o,e,null),l&&(r.includeSourceLabels&&Ai(o,e,"source"),r.includeTargetLabels&&Ai(o,e,"target")))}return o.x1=Qt(o.x1),o.y1=Qt(o.y1),o.x2=Qt(o.x2),o.y2=Qt(o.y2),o.w=Qt(o.x2-o.x1),o.h=Qt(o.y2-o.y1),o.w>0&&o.h>0&&b&&(gn(o,g),dn(o,1)),o},ys=function(e){var r=0,a=function(o){return(o?1:0)<<r++},n=0;return n+=a(e.incudeNodes),n+=a(e.includeEdges),n+=a(e.includeLabels),n+=a(e.includeMainLabels),n+=a(e.includeSourceLabels),n+=a(e.includeTargetLabels),n+=a(e.includeOverlays),n+=a(e.includeOutlines),n},ms=function(e){if(e.isEdge()){var r=e.source().position(),a=e.target().position(),n=function(o){return Math.round(o)};return Uu([n(r.x),n(r.y),n(a.x),n(a.y)])}else return 0},bs=function(e,r){var a=e._private,n,i=e.isEdge(),o=r==null?Es:ys(r),s=o===Es,u=ms(e),l=a.bbCachePosKey===u,v=r.useCache&&l,f=function(y){return y._private.bbCache==null||y._private.styleDirty},h=!v||f(e)||i&&f(e.source())||f(e.target());if(h?(l||e.recalculateRenderedStyle(v),n=ad(e,Ua),a.bbCache=n,a.bbCachePosKey=u):n=a.bbCache,!s){var d=e.isNode();n=Yt(),(r.includeNodes&&d||r.includeEdges&&!d)&&(r.includeOverlays?Vr(n,a.overlayBounds):Vr(n,a.bodyBounds)),r.includeLabels&&(r.includeMainLabels&&(!i||r.includeSourceLabels&&r.includeTargetLabels)?Vr(n,a.labelBounds.all):(r.includeMainLabels&&Vr(n,a.labelBounds.mainRot),r.includeSourceLabels&&Vr(n,a.labelBounds.sourceRot),r.includeTargetLabels&&Vr(n,a.labelBounds.targetRot))),n.w=n.x2-n.x1,n.h=n.y2-n.y1}return n},Ua={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,includeOutlines:!0,useCache:!0},Es=ys(Ua),ws=At(Ua);Or.boundingBox=function(t){var e;if(this.length===1&&this[0]._private.bbCache!=null&&!this[0]._private.styleDirty&&(t===void 0||t.useCache===void 0||t.useCache===!0))t===void 0?t=Ua:t=ws(t),e=bs(this[0],t);else{e=Yt(),t=t||Ua;var r=ws(t),a=this,n=a.cy(),i=n.styleEnabled();if(i)for(var o=0;o<a.length;o++){var s=a[o],u=s._private,l=ms(s),v=u.bbCachePosKey===l,f=r.useCache&&v&&!u.styleDirty;s.recalculateRenderedStyle(f)}this.updateCompoundBounds(!t.useCache);for(var h=0;h<a.length;h++){var d=a[h];Vr(e,bs(d,r))}}return e.x1=Qt(e.x1),e.y1=Qt(e.y1),e.x2=Qt(e.x2),e.y2=Qt(e.y2),e.w=Qt(e.x2-e.x1),e.h=Qt(e.y2-e.y1),e},Or.dirtyBoundingBoxCache=function(){for(var t=0;t<this.length;t++){var e=this[t]._private;e.bbCache=null,e.bbCachePosKey=null,e.bodyBounds=null,e.overlayBounds=null,e.labelBounds.all=null,e.labelBounds.source=null,e.labelBounds.target=null,e.labelBounds.main=null,e.labelBounds.sourceRot=null,e.labelBounds.targetRot=null,e.labelBounds.mainRot=null,e.arrowBounds.source=null,e.arrowBounds.target=null,e.arrowBounds["mid-source"]=null,e.arrowBounds["mid-target"]=null}return this.emitAndNotify("bounds"),this},Or.boundingBoxAt=function(t){var e=this.nodes(),r=this.cy(),a=r.hasCompoundNodes(),n=r.collection();if(a&&(n=e.filter(function(l){return l.isParent()}),e=e.not(n)),S(t)){var i=t;t=function(){return i}}var o=function(v,f){return v._private.bbAtOldPos=t(v,f)},s=function(v){return v._private.bbAtOldPos};r.startBatch(),e.forEach(o).silentPositions(t),a&&(n.dirtyCompoundBoundsCache(),n.dirtyBoundingBoxCache(),n.updateCompoundBounds(!0));var u=Ev(this.boundingBox({useCache:!1}));return e.silentPositions(s),a&&(n.dirtyCompoundBoundsCache(),n.dirtyBoundingBoxCache(),n.updateCompoundBounds(!0)),r.endBatch(),u},ha.boundingbox=ha.bb=ha.boundingBox,ha.renderedBoundingbox=ha.renderedBoundingBox;var nd=Or,_a,Ya;_a=Ya={};var xs=function(e){e.uppercaseName=Pt(e.name),e.autoName="auto"+e.uppercaseName,e.labelName="label"+e.uppercaseName,e.outerName="outer"+e.uppercaseName,e.uppercaseOuterName=Pt(e.outerName),_a[e.name]=function(){var a=this[0],n=a._private,i=n.cy,o=i._private.styleEnabled;if(a)if(o){if(a.isParent())return a.updateCompoundBounds(),n[e.autoName]||0;var s=a.pstyle(e.name);switch(s.strValue){case"label":return a.recalculateRenderedStyle(),n.rstyle[e.labelName]||0;default:return s.pfValue}}else return 1},_a["outer"+e.uppercaseName]=function(){var a=this[0],n=a._private,i=n.cy,o=i._private.styleEnabled;if(a)if(o){var s=a[e.name](),u=a.pstyle("border-width").pfValue,l=2*a.padding();return s+u+l}else return 1},_a["rendered"+e.uppercaseName]=function(){var a=this[0];if(a){var n=a[e.name]();return n*this.cy().zoom()}},_a["rendered"+e.uppercaseOuterName]=function(){var a=this[0];if(a){var n=a[e.outerName]();return n*this.cy().zoom()}}};xs({name:"width"}),xs({name:"height"}),Ya.padding=function(){var t=this[0],e=t._private;return t.isParent()?(t.updateCompoundBounds(),e.autoPadding!==void 0?e.autoPadding:t.pstyle("padding").pfValue):t.pstyle("padding").pfValue},Ya.paddedHeight=function(){var t=this[0];return t.height()+2*t.padding()},Ya.paddedWidth=function(){var t=this[0];return t.width()+2*t.padding()};var id=Ya,od=function(e,r){if(e.isEdge())return r(e)},sd=function(e,r){if(e.isEdge()){var a=e.cy();return hn(r(e),a.zoom(),a.pan())}},ld=function(e,r){if(e.isEdge()){var a=e.cy(),n=a.pan(),i=a.zoom();return r(e).map(function(o){return hn(o,i,n)})}},ud=function(e){return e.renderer().getControlPoints(e)},vd=function(e){return e.renderer().getSegmentPoints(e)},fd=function(e){return e.renderer().getSourceEndpoint(e)},hd=function(e){return e.renderer().getTargetEndpoint(e)},cd=function(e){return e.renderer().getEdgeMidpoint(e)},Ts={controlPoints:{get:ud,mult:!0},segmentPoints:{get:vd,mult:!0},sourceEndpoint:{get:fd},targetEndpoint:{get:hd},midpoint:{get:cd}},dd=function(e){return"rendered"+e[0].toUpperCase()+e.substr(1)},gd=Object.keys(Ts).reduce(function(t,e){var r=Ts[e],a=dd(e);return t[e]=function(){return od(this,r.get)},r.mult?t[a]=function(){return ld(this,r.get)}:t[a]=function(){return sd(this,r.get)},t},{}),pd=He({},td,nd,id,gd);/*!
Event object based on jQuery events, MIT license
https://jquery.org/license/
https://tldrlegal.com/license/mit-license
https://github.com/jquery/jquery/blob/master/src/event.js
*/var Cs=function(e,r){this.recycle(e,r)};function Ha(){return!1}function Nn(){return!0}Cs.prototype={instanceString:function(){return"event"},recycle:function(e,r){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=Ha,e!=null&&e.preventDefault?(this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?Nn:Ha):e!=null&&e.type?r=e:this.type=e,r!=null&&(this.originalEvent=r.originalEvent,this.type=r.type!=null?r.type:this.type,this.cy=r.cy,this.target=r.target,this.position=r.position,this.renderedPosition=r.renderedPosition,this.namespace=r.namespace,this.layout=r.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var a=this.position,n=this.cy.zoom(),i=this.cy.pan();this.renderedPosition={x:a.x*n+i.x,y:a.y*n+i.y}}this.timeStamp=e&&e.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=Nn;var e=this.originalEvent;e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){this.isPropagationStopped=Nn;var e=this.originalEvent;e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Nn,this.stopPropagation()},isDefaultPrevented:Ha,isPropagationStopped:Ha,isImmediatePropagationStopped:Ha};var Ds=/^([^.]+)(\.(?:[^.]+))?$/,yd=".*",Ss={qualifierCompare:function(e,r){return e===r},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(e){return e},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},Ls=Object.keys(Ss),md={};function In(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:md,e=arguments.length>1?arguments[1]:void 0,r=0;r<Ls.length;r++){var a=Ls[r];this[a]=t[a]||Ss[a]}this.context=e||this.context,this.listeners=[],this.emitting=0}var Nr=In.prototype,As=function(e,r,a,n,i,o,s){H(n)&&(i=n,n=null),s&&(o==null?o=s:o=He({},o,s));for(var u=te(a)?a:a.split(/\s+/),l=0;l<u.length;l++){var v=u[l];if(!Re(v)){var f=v.match(Ds);if(f){var h=f[1],d=f[2]?f[2]:null,c=r(e,v,h,d,n,i,o);if(c===!1)break}}}},Os=function(e,r){return e.addEventFields(e.context,r),new Cs(r.type,r)},bd=function(e,r,a){if(dt(a)){r(e,a);return}else if(S(a)){r(e,Os(e,a));return}for(var n=te(a)?a:a.split(/\s+/),i=0;i<n.length;i++){var o=n[i];if(!Re(o)){var s=o.match(Ds);if(s){var u=s[1],l=s[2]?s[2]:null,v=Os(e,{type:u,namespace:l,target:e.context});r(e,v)}}}};Nr.on=Nr.addListener=function(t,e,r,a,n){return As(this,function(i,o,s,u,l,v,f){H(v)&&i.listeners.push({event:o,callback:v,type:s,namespace:u,qualifier:l,conf:f})},t,e,r,a,n),this},Nr.one=function(t,e,r,a){return this.on(t,e,r,a,{one:!0})},Nr.removeListener=Nr.off=function(t,e,r,a){var n=this;this.emitting!==0&&(this.listeners=Wu(this.listeners));for(var i=this.listeners,o=function(l){var v=i[l];As(n,function(f,h,d,c,y,p){if((v.type===d||t==="*")&&(!c&&v.namespace!==".*"||v.namespace===c)&&(!y||f.qualifierCompare(v.qualifier,y))&&(!p||v.callback===p))return i.splice(l,1),!1},t,e,r,a)},s=i.length-1;s>=0;s--)o(s);return this},Nr.removeAllListeners=function(){return this.removeListener("*")},Nr.emit=Nr.trigger=function(t,e,r){var a=this.listeners,n=a.length;return this.emitting++,te(e)||(e=[e]),bd(this,function(i,o){r!=null&&(a=[{event:o.event,type:o.type,namespace:o.namespace,callback:r}],n=a.length);for(var s=function(v){var f=a[v];if(f.type===o.type&&(!f.namespace||f.namespace===o.namespace||f.namespace===yd)&&i.eventMatches(i.context,f,o)){var h=[o];e!=null&&Ku(h,e),i.beforeEmit(i.context,f,o),f.conf&&f.conf.one&&(i.listeners=i.listeners.filter(function(y){return y!==f}));var d=i.callbackContext(i.context,f,o),c=f.callback.apply(d,h);i.afterEmit(i.context,f,o),c===!1&&(o.stopPropagation(),o.preventDefault())}},u=0;u<n;u++)s(u);i.bubble(i.context)&&!o.isPropagationStopped()&&i.parent(i.context).emit(o,e)},t),this.emitting--,this};var Ed={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,a){var n=r.qualifier;return n!=null?e!==a.target&&Ae(a.target)&&n.matches(a.target):!0},addEventFields:function(e,r){r.cy=e.cy(),r.target=e},callbackContext:function(e,r,a){return r.qualifier!=null?a.target:e},beforeEmit:function(e,r){r.conf&&r.conf.once&&r.conf.onceCollection.removeListener(r.event,r.qualifier,r.callback)},bubble:function(){return!0},parent:function(e){return e.isChild()?e.parent():e.cy()}},Mn=function(e){return ee(e)?new Sr(e):e},Ns={createEmitter:function(){for(var e=0;e<this.length;e++){var r=this[e],a=r._private;a.emitter||(a.emitter=new In(Ed,r))}return this},emitter:function(){return this._private.emitter},on:function(e,r,a){for(var n=Mn(r),i=0;i<this.length;i++){var o=this[i];o.emitter().on(e,n,a)}return this},removeListener:function(e,r,a){for(var n=Mn(r),i=0;i<this.length;i++){var o=this[i];o.emitter().removeListener(e,n,a)}return this},removeAllListeners:function(){for(var e=0;e<this.length;e++){var r=this[e];r.emitter().removeAllListeners()}return this},one:function(e,r,a){for(var n=Mn(r),i=0;i<this.length;i++){var o=this[i];o.emitter().one(e,n,a)}return this},once:function(e,r,a){for(var n=Mn(r),i=0;i<this.length;i++){var o=this[i];o.emitter().on(e,n,a,{once:!0,onceCollection:this})}},emit:function(e,r){for(var a=0;a<this.length;a++){var n=this[a];n.emitter().emit(e,r)}return this},emitAndNotify:function(e,r){if(this.length!==0)return this.cy().notify(e,this),this.emit(e,r),this}};ct.eventAliasesOn(Ns);var Is={nodes:function(e){return this.filter(function(r){return r.isNode()}).filter(e)},edges:function(e){return this.filter(function(r){return r.isEdge()}).filter(e)},byGroup:function(){for(var e=this.spawn(),r=this.spawn(),a=0;a<this.length;a++){var n=this[a];n.isNode()?e.push(n):r.push(n)}return{nodes:e,edges:r}},filter:function(e,r){if(e===void 0)return this;if(ee(e)||pe(e))return new Sr(e).filter(this);if(H(e)){for(var a=this.spawn(),n=this,i=0;i<n.length;i++){var o=n[i],s=r?e.apply(r,[o,i,n]):e(o,i,n);s&&a.push(o)}return a}return this.spawn()},not:function(e){if(e){ee(e)&&(e=this.filter(e));for(var r=this.spawn(),a=0;a<this.length;a++){var n=this[a],i=e.has(n);i||r.push(n)}return r}else return this},absoluteComplement:function(){var e=this.cy();return e.mutableElements().not(this)},intersect:function(e){if(ee(e)){var r=e;return this.filter(r)}for(var a=this.spawn(),n=this,i=e,o=this.length<e.length,s=o?n:i,u=o?i:n,l=0;l<s.length;l++){var v=s[l];u.has(v)&&a.push(v)}return a},xor:function(e){var r=this._private.cy;ee(e)&&(e=r.$(e));var a=this.spawn(),n=this,i=e,o=function(u,l){for(var v=0;v<u.length;v++){var f=u[v],h=f._private.data.id,d=l.hasElementWithId(h);d||a.push(f)}};return o(n,i),o(i,n),a},diff:function(e){var r=this._private.cy;ee(e)&&(e=r.$(e));var a=this.spawn(),n=this.spawn(),i=this.spawn(),o=this,s=e,u=function(v,f,h){for(var d=0;d<v.length;d++){var c=v[d],y=c._private.data.id,p=f.hasElementWithId(y);p?i.merge(c):h.push(c)}};return u(o,s,a),u(s,o,n),{left:a,right:n,both:i}},add:function(e){var r=this._private.cy;if(!e)return this;if(ee(e)){var a=e;e=r.mutableElements().filter(a)}for(var n=this.spawnSelf(),i=0;i<e.length;i++){var o=e[i],s=!this.has(o);s&&n.push(o)}return n},merge:function(e){var r=this._private,a=r.cy;if(!e)return this;if(e&&ee(e)){var n=e;e=a.mutableElements().filter(n)}for(var i=r.map,o=0;o<e.length;o++){var s=e[o],u=s._private.data.id,l=!i.has(u);if(l){var v=this.length++;this[v]=s,i.set(u,{ele:s,index:v})}}return this},unmergeAt:function(e){var r=this[e],a=r.id(),n=this._private,i=n.map;this[e]=void 0,i.delete(a);var o=e===this.length-1;if(this.length>1&&!o){var s=this.length-1,u=this[s],l=u._private.data.id;this[s]=void 0,this[e]=u,i.set(l,{ele:u,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var r=this._private,a=e._private.data.id,n=r.map,i=n.get(a);if(!i)return this;var o=i.index;return this.unmergeAt(o),this},unmerge:function(e){var r=this._private.cy;if(!e)return this;if(e&&ee(e)){var a=e;e=r.mutableElements().filter(a)}for(var n=0;n<e.length;n++)this.unmergeOne(e[n]);return this},unmergeBy:function(e){for(var r=this.length-1;r>=0;r--){var a=this[r];e(a)&&this.unmergeAt(r)}return this},map:function(e,r){for(var a=[],n=this,i=0;i<n.length;i++){var o=n[i],s=r?e.apply(r,[o,i,n]):e(o,i,n);a.push(s)}return a},reduce:function(e,r){for(var a=r,n=this,i=0;i<n.length;i++)a=e(a,n[i],i,n);return a},max:function(e,r){for(var a=-1/0,n,i=this,o=0;o<i.length;o++){var s=i[o],u=r?e.apply(r,[s,o,i]):e(s,o,i);u>a&&(a=u,n=s)}return{value:a,ele:n}},min:function(e,r){for(var a=1/0,n,i=this,o=0;o<i.length;o++){var s=i[o],u=r?e.apply(r,[s,o,i]):e(s,o,i);u<a&&(a=u,n=s)}return{value:a,ele:n}}},lt=Is;lt.u=lt["|"]=lt["+"]=lt.union=lt.or=lt.add,lt["\\"]=lt["!"]=lt["-"]=lt.difference=lt.relativeComplement=lt.subtract=lt.not,lt.n=lt["&"]=lt["."]=lt.and=lt.intersection=lt.intersect,lt["^"]=lt["(+)"]=lt["(-)"]=lt.symmetricDifference=lt.symdiff=lt.xor,lt.fnFilter=lt.filterFn=lt.stdFilter=lt.filter,lt.complement=lt.abscomp=lt.absoluteComplement;var wd={isNode:function(){return this.group()==="nodes"},isEdge:function(){return this.group()==="edges"},isLoop:function(){return this.isEdge()&&this.source()[0]===this.target()[0]},isSimple:function(){return this.isEdge()&&this.source()[0]!==this.target()[0]},group:function(){var e=this[0];if(e)return e._private.group}},Ms=function(e,r){var a=e.cy(),n=a.hasCompoundNodes();function i(v){var f=v.pstyle("z-compound-depth");return f.value==="auto"?n?v.zDepth():0:f.value==="bottom"?-1:f.value==="top"?ii:0}var o=i(e)-i(r);if(o!==0)return o;function s(v){var f=v.pstyle("z-index-compare");return f.value==="auto"&&v.isNode()?1:0}var u=s(e)-s(r);if(u!==0)return u;var l=e.pstyle("z-index").value-r.pstyle("z-index").value;return l!==0?l:e.poolIndex()-r.poolIndex()},Rn={forEach:function(e,r){if(H(e))for(var a=this.length,n=0;n<a;n++){var i=this[n],o=r?e.apply(r,[i,n,this]):e(i,n,this);if(o===!1)break}return this},toArray:function(){for(var e=[],r=0;r<this.length;r++)e.push(this[r]);return e},slice:function(e,r){var a=[],n=this.length;r==null&&(r=n),e==null&&(e=0),e<0&&(e=n+e),r<0&&(r=n+r);for(var i=e;i>=0&&i<r&&i<n;i++)a.push(this[i]);return this.spawn(a)},size:function(){return this.length},eq:function(e){return this[e]||this.spawn()},first:function(){return this[0]||this.spawn()},last:function(){return this[this.length-1]||this.spawn()},empty:function(){return this.length===0},nonempty:function(){return!this.empty()},sort:function(e){if(!H(e))return this;var r=this.toArray().sort(e);return this.spawn(r)},sortByZIndex:function(){return this.sort(Ms)},zDepth:function(){var e=this[0];if(e){var r=e._private,a=r.group;if(a==="nodes"){var n=r.data.parent?e.parents().size():0;return e.isParent()?n:ii-1}else{var i=r.source,o=r.target,s=i.zDepth(),u=o.zDepth();return Math.max(s,u,0)}}}};Rn.each=Rn.forEach;var xd=function(){var e="undefined",r=(typeof Symbol>"u"?"undefined":_(Symbol))!=e&&_(Symbol.iterator)!=e;r&&(Rn[Symbol.iterator]=function(){var a=this,n={value:void 0,done:!1},i=0,o=this.length;return T({next:function(){return i<o?n.value=a[i++]:(n.value=void 0,n.done=!0),n}},Symbol.iterator,function(){return this})})};xd();var Td=At({nodeDimensionsIncludeLabels:!1}),kn={layoutDimensions:function(e){e=Td(e);var r;if(!this.takesUpSpace())r={w:0,h:0};else if(e.nodeDimensionsIncludeLabels){var a=this.boundingBox();r={w:a.w,h:a.h}}else r={w:this.outerWidth(),h:this.outerHeight()};return(r.w===0||r.h===0)&&(r.w=r.h=1),r},layoutPositions:function(e,r,a){var n=this.nodes().filter(function(M){return!M.isParent()}),i=this.cy(),o=r.eles,s=function(L){return L.id()},u=it(a,s);e.emit({type:"layoutstart",layout:e}),e.animations=[];var l=function(L,w,k){var D={x:w.x1+w.w/2,y:w.y1+w.h/2},F={x:(k.x-D.x)*L,y:(k.y-D.y)*L};return{x:D.x+F.x,y:D.y+F.y}},v=r.spacingFactor&&r.spacingFactor!==1,f=function(){if(!v)return null;for(var L=Yt(),w=0;w<n.length;w++){var k=n[w],D=u(k,w);Tv(L,D.x,D.y)}return L},h=f(),d=it(function(M,L){var w=u(M,L);if(v){var k=Math.abs(r.spacingFactor);w=l(k,h,w)}return r.transform!=null&&(w=r.transform(M,w)),w},s);if(r.animate){for(var c=0;c<n.length;c++){var y=n[c],p=d(y,c),g=r.animateFilter==null||r.animateFilter(y,c);if(g){var m=y.animation({position:p,duration:r.animationDuration,easing:r.animationEasing});e.animations.push(m)}else y.position(p)}if(r.fit){var b=i.animation({fit:{boundingBox:o.boundingBoxAt(d),padding:r.padding},duration:r.animationDuration,easing:r.animationEasing});e.animations.push(b)}else if(r.zoom!==void 0&&r.pan!==void 0){var E=i.animation({zoom:r.zoom,pan:r.pan,duration:r.animationDuration,easing:r.animationEasing});e.animations.push(E)}e.animations.forEach(function(M){return M.play()}),e.one("layoutready",r.ready),e.emit({type:"layoutready",layout:e}),ia.all(e.animations.map(function(M){return M.promise()})).then(function(){e.one("layoutstop",r.stop),e.emit({type:"layoutstop",layout:e})})}else n.positions(d),r.fit&&i.fit(r.eles,r.padding),r.zoom!=null&&i.zoom(r.zoom),r.pan&&i.pan(r.pan),e.one("layoutready",r.ready),e.emit({type:"layoutready",layout:e}),e.one("layoutstop",r.stop),e.emit({type:"layoutstop",layout:e});return this},layout:function(e){var r=this.cy();return r.makeLayout(He({},e,{eles:this}))}};kn.createLayout=kn.makeLayout=kn.layout;function Rs(t,e,r){var a=r._private,n=a.styleCache=a.styleCache||[],i;return(i=n[t])!=null||(i=n[t]=e(r)),i}function Pn(t,e){return t=Pr(t),function(a){return Rs(t,e,a)}}function Bn(t,e){t=Pr(t);var r=function(n){return e.call(n)};return function(){var n=this[0];if(n)return Rs(t,r,n)}}var Ot={recalculateRenderedStyle:function(e){var r=this.cy(),a=r.renderer(),n=r.styleEnabled();return a&&n&&a.recalculateRenderedStyle(this,e),this},dirtyStyleCache:function(){var e=this.cy(),r=function(i){return i._private.styleCache=null};if(e.hasCompoundNodes()){var a;a=this.spawnSelf().merge(this.descendants()).merge(this.parents()),a.merge(a.connectedEdges()),a.forEach(r)}else this.forEach(function(n){r(n),n.connectedEdges().forEach(r)});return this},updateStyle:function(e){var r=this._private.cy;if(!r.styleEnabled())return this;if(r.batching()){var a=r._private.batchStyleEles;return a.merge(this),this}var n=r.hasCompoundNodes(),i=this;e=!!(e||e===void 0),n&&(i=this.spawnSelf().merge(this.descendants()).merge(this.parents()));var o=i;return e?o.emitAndNotify("style"):o.emit("style"),i.forEach(function(s){return s._private.styleDirty=!0}),this},cleanStyle:function(){var e=this.cy();if(e.styleEnabled())for(var r=0;r<this.length;r++){var a=this[r];a._private.styleDirty&&(a._private.styleDirty=!1,e.style().apply(a))}},parsedStyle:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a=this[0],n=a.cy();if(n.styleEnabled()&&a){this.cleanStyle();var i=a._private.style[e];return i??(r?n.style().getDefaultProperty(e):null)}},numericStyle:function(e){var r=this[0];if(r.cy().styleEnabled()&&r){var a=r.pstyle(e);return a.pfValue!==void 0?a.pfValue:a.value}},numericStyleUnits:function(e){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(e).units},renderedStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var a=this[0];if(a)return r.style().getRenderedStyle(a,e)},style:function(e,r){var a=this.cy();if(!a.styleEnabled())return this;var n=!1,i=a.style();if(S(e)){var o=e;i.applyBypass(this,o,n),this.emitAndNotify("style")}else if(ee(e))if(r===void 0){var s=this[0];return s?i.getStylePropertyValue(s,e):void 0}else i.applyBypass(this,e,r,n),this.emitAndNotify("style");else if(e===void 0){var u=this[0];return u?i.getRawStyle(u):void 0}return this},removeStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var a=!1,n=r.style(),i=this;if(e===void 0)for(var o=0;o<i.length;o++){var s=i[o];n.removeAllBypasses(s,a)}else{e=e.split(/\s+/);for(var u=0;u<i.length;u++){var l=i[u];n.removeBypasses(l,e,a)}}return this.emitAndNotify("style"),this},show:function(){return this.css("display","element"),this},hide:function(){return this.css("display","none"),this},effectiveOpacity:function(){var e=this.cy();if(!e.styleEnabled())return 1;var r=e.hasCompoundNodes(),a=this[0];if(a){var n=a._private,i=a.pstyle("opacity").value;if(!r)return i;var o=n.data.parent?a.parents():null;if(o)for(var s=0;s<o.length;s++){var u=o[s],l=u.pstyle("opacity").value;i=l*i}return i}},transparent:function(){var e=this.cy();if(!e.styleEnabled())return!1;var r=this[0],a=r.cy().hasCompoundNodes();if(r)return a?r.effectiveOpacity()===0:r.pstyle("opacity").value===0},backgrounding:function(){var e=this.cy();if(!e.styleEnabled())return!1;var r=this[0];return!!r._private.backgrounding}};function Oi(t,e){var r=t._private,a=r.data.parent?t.parents():null;if(a)for(var n=0;n<a.length;n++){var i=a[n];if(!e(i))return!1}return!0}function Ni(t){var e=t.ok,r=t.edgeOkViaNode||t.ok,a=t.parentOk||t.ok;return function(){var n=this.cy();if(!n.styleEnabled())return!0;var i=this[0],o=n.hasCompoundNodes();if(i){var s=i._private;if(!e(i))return!1;if(i.isNode())return!o||Oi(i,a);var u=s.source,l=s.target;return r(u)&&(!o||Oi(u,r))&&(u===l||r(l)&&(!o||Oi(l,r)))}}}var ca=Pn("eleTakesUpSpace",function(t){return t.pstyle("display").value==="element"&&t.width()!==0&&(t.isNode()?t.height()!==0:!0)});Ot.takesUpSpace=Bn("takesUpSpace",Ni({ok:ca}));var Cd=Pn("eleInteractive",function(t){return t.pstyle("events").value==="yes"&&t.pstyle("visibility").value==="visible"&&ca(t)}),Dd=Pn("parentInteractive",function(t){return t.pstyle("visibility").value==="visible"&&ca(t)});Ot.interactive=Bn("interactive",Ni({ok:Cd,parentOk:Dd,edgeOkViaNode:ca})),Ot.noninteractive=function(){var t=this[0];if(t)return!t.interactive()};var Sd=Pn("eleVisible",function(t){return t.pstyle("visibility").value==="visible"&&t.pstyle("opacity").pfValue!==0&&ca(t)}),Ld=ca;Ot.visible=Bn("visible",Ni({ok:Sd,edgeOkViaNode:Ld})),Ot.hidden=function(){var t=this[0];if(t)return!t.visible()},Ot.isBundledBezier=Bn("isBundledBezier",function(){return this.cy().styleEnabled()?!this.removed()&&this.pstyle("curve-style").value==="bezier"&&this.takesUpSpace():!1}),Ot.bypass=Ot.css=Ot.style,Ot.renderedCss=Ot.renderedStyle,Ot.removeBypass=Ot.removeCss=Ot.removeStyle,Ot.pstyle=Ot.parsedStyle;var Ir={};function ks(t){return function(){var e=arguments,r=[];if(e.length===2){var a=e[0],n=e[1];this.on(t.event,a,n)}else if(e.length===1&&H(e[0])){var i=e[0];this.on(t.event,i)}else if(e.length===0||e.length===1&&te(e[0])){for(var o=e.length===1?e[0]:null,s=0;s<this.length;s++){var u=this[s],l=!t.ableField||u._private[t.ableField],v=u._private[t.field]!=t.value;if(t.overrideAble){var f=t.overrideAble(u);if(f!==void 0&&(l=f,!f))return this}l&&(u._private[t.field]=t.value,v&&r.push(u))}var h=this.spawn(r);h.updateStyle(),h.emit(t.event),o&&h.emit(o)}return this}}function da(t){Ir[t.field]=function(){var e=this[0];if(e){if(t.overrideField){var r=t.overrideField(e);if(r!==void 0)return r}return e._private[t.field]}},Ir[t.on]=ks({event:t.on,field:t.field,ableField:t.ableField,overrideAble:t.overrideAble,value:!0}),Ir[t.off]=ks({event:t.off,field:t.field,ableField:t.ableField,overrideAble:t.overrideAble,value:!1})}da({field:"locked",overrideField:function(e){return e.cy().autolock()?!0:void 0},on:"lock",off:"unlock"}),da({field:"grabbable",overrideField:function(e){return e.cy().autoungrabify()||e.pannable()?!1:void 0},on:"grabify",off:"ungrabify"}),da({field:"selected",ableField:"selectable",overrideAble:function(e){return e.cy().autounselectify()?!1:void 0},on:"select",off:"unselect"}),da({field:"selectable",overrideField:function(e){return e.cy().autounselectify()?!1:void 0},on:"selectify",off:"unselectify"}),Ir.deselect=Ir.unselect,Ir.grabbed=function(){var t=this[0];if(t)return t._private.grabbed},da({field:"active",on:"activate",off:"unactivate"}),da({field:"pannable",on:"panify",off:"unpanify"}),Ir.inactive=function(){var t=this[0];if(t)return!t._private.active};var Bt={},Ps=function(e){return function(a){for(var n=this,i=[],o=0;o<n.length;o++){var s=n[o];if(s.isNode()){for(var u=!1,l=s.connectedEdges(),v=0;v<l.length;v++){var f=l[v],h=f.source(),d=f.target();if(e.noIncomingEdges&&d===s&&h!==s||e.noOutgoingEdges&&h===s&&d!==s){u=!0;break}}u||i.push(s)}}return this.spawn(i,!0).filter(a)}},Bs=function(e){return function(r){for(var a=this,n=[],i=0;i<a.length;i++){var o=a[i];if(o.isNode())for(var s=o.connectedEdges(),u=0;u<s.length;u++){var l=s[u],v=l.source(),f=l.target();e.outgoing&&v===o?(n.push(l),n.push(f)):e.incoming&&f===o&&(n.push(l),n.push(v))}}return this.spawn(n,!0).filter(r)}},Fs=function(e){return function(r){for(var a=this,n=[],i={};;){var o=e.outgoing?a.outgoers():a.incomers();if(o.length===0)break;for(var s=!1,u=0;u<o.length;u++){var l=o[u],v=l.id();i[v]||(i[v]=!0,n.push(l),s=!0)}if(!s)break;a=o}return this.spawn(n,!0).filter(r)}};Bt.clearTraversalCache=function(){for(var t=0;t<this.length;t++)this[t]._private.traversalCache=null},He(Bt,{roots:Ps({noIncomingEdges:!0}),leaves:Ps({noOutgoingEdges:!0}),outgoers:Zt(Bs({outgoing:!0}),"outgoers"),successors:Fs({outgoing:!0}),incomers:Zt(Bs({incoming:!0}),"incomers"),predecessors:Fs({incoming:!0})}),He(Bt,{neighborhood:Zt(function(t){for(var e=[],r=this.nodes(),a=0;a<r.length;a++)for(var n=r[a],i=n.connectedEdges(),o=0;o<i.length;o++){var s=i[o],u=s.source(),l=s.target(),v=n===u?l:u;v.length>0&&e.push(v[0]),e.push(s[0])}return this.spawn(e,!0).filter(t)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),Bt.neighbourhood=Bt.neighborhood,Bt.closedNeighbourhood=Bt.closedNeighborhood,Bt.openNeighbourhood=Bt.openNeighborhood,He(Bt,{source:Zt(function(e){var r=this[0],a;return r&&(a=r._private.source||r.cy().collection()),a&&e?a.filter(e):a},"source"),target:Zt(function(e){var r=this[0],a;return r&&(a=r._private.target||r.cy().collection()),a&&e?a.filter(e):a},"target"),sources:Gs({attr:"source"}),targets:Gs({attr:"target"})});function Gs(t){return function(r){for(var a=[],n=0;n<this.length;n++){var i=this[n],o=i._private[t.attr];o&&a.push(o)}return this.spawn(a,!0).filter(r)}}He(Bt,{edgesWith:Zt(zs(),"edgesWith"),edgesTo:Zt(zs({thisIsSrc:!0}),"edgesTo")});function zs(t){return function(r){var a=[],n=this._private.cy,i=t||{};ee(r)&&(r=n.$(r));for(var o=0;o<r.length;o++)for(var s=r[o]._private.edges,u=0;u<s.length;u++){var l=s[u],v=l._private.data,f=this.hasElementWithId(v.source)&&r.hasElementWithId(v.target),h=r.hasElementWithId(v.source)&&this.hasElementWithId(v.target),d=f||h;d&&((i.thisIsSrc||i.thisIsTgt)&&(i.thisIsSrc&&!f||i.thisIsTgt&&!h)||a.push(l))}return this.spawn(a,!0)}}He(Bt,{connectedEdges:Zt(function(t){for(var e=[],r=this,a=0;a<r.length;a++){var n=r[a];if(n.isNode())for(var i=n._private.edges,o=0;o<i.length;o++){var s=i[o];e.push(s)}}return this.spawn(e,!0).filter(t)},"connectedEdges"),connectedNodes:Zt(function(t){for(var e=[],r=this,a=0;a<r.length;a++){var n=r[a];n.isEdge()&&(e.push(n.source()[0]),e.push(n.target()[0]))}return this.spawn(e,!0).filter(t)},"connectedNodes"),parallelEdges:Zt(Vs(),"parallelEdges"),codirectedEdges:Zt(Vs({codirected:!0}),"codirectedEdges")});function Vs(t){var e={codirected:!1};return t=He({},e,t),function(a){for(var n=[],i=this.edges(),o=t,s=0;s<i.length;s++)for(var u=i[s],l=u._private,v=l.source,f=v._private.data.id,h=l.data.target,d=v._private.edges,c=0;c<d.length;c++){var y=d[c],p=y._private.data,g=p.target,m=p.source,b=g===h&&m===f,E=f===g&&h===m;(o.codirected&&b||!o.codirected&&(b||E))&&n.push(y)}return this.spawn(n,!0).filter(a)}}He(Bt,{components:function(e){var r=this,a=r.cy(),n=a.collection(),i=e==null?r.nodes():e.nodes(),o=[];e!=null&&i.empty()&&(i=e.sources());var s=function(v,f){n.merge(v),i.unmerge(v),f.merge(v)};if(i.empty())return r.spawn();var u=function(){var v=a.collection();o.push(v);var f=i[0];s(f,v),r.bfs({directed:!1,roots:f,visit:function(d){return s(d,v)}}),v.forEach(function(h){h.connectedEdges().forEach(function(d){r.has(d)&&v.has(d.source())&&v.has(d.target())&&v.merge(d)})})};do u();while(i.length>0);return o},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),Bt.componentsOf=Bt.components;var Nt=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){xt("A collection must have a reference to the core");return}var i=new ur,o=!1;if(!r)r=[];else if(r.length>0&&S(r[0])&&!Ae(r[0])){o=!0;for(var s=[],u=new Jr,l=0,v=r.length;l<v;l++){var f=r[l];f.data==null&&(f.data={});var h=f.data;if(h.id==null)h.id=yo();else if(e.hasElementWithId(h.id)||u.has(h.id))continue;var d=new fn(e,f,!1);s.push(d),u.add(h.id)}r=s}this.length=0;for(var c=0,y=r.length;c<y;c++){var p=r[c][0];if(p!=null){var g=p._private.data.id;(!a||!i.has(g))&&(a&&i.set(g,{index:this.length,ele:p}),this[this.length]=p,this.length++)}}this._private={eles:this,cy:e,get map(){return this.lazyMap==null&&this.rebuildMap(),this.lazyMap},set map(m){this.lazyMap=m},rebuildMap:function(){for(var b=this.lazyMap=new ur,E=this.eles,M=0;M<E.length;M++){var L=E[M];b.set(L.id(),{index:M,ele:L})}}},a&&(this._private.map=i),o&&!n&&this.restore()},mt=fn.prototype=Nt.prototype=Object.create(Array.prototype);mt.instanceString=function(){return"collection"},mt.spawn=function(t,e){return new Nt(this.cy(),t,e)},mt.spawnSelf=function(){return this.spawn(this)},mt.cy=function(){return this._private.cy},mt.renderer=function(){return this._private.cy.renderer()},mt.element=function(){return this[0]},mt.collection=function(){return Ne(this)?this:new Nt(this._private.cy,[this])},mt.unique=function(){return new Nt(this._private.cy,this,!0)},mt.hasElementWithId=function(t){return t=""+t,this._private.map.has(t)},mt.getElementById=function(t){t=""+t;var e=this._private.cy,r=this._private.map.get(t);return r?r.ele:new Nt(e)},mt.$id=mt.getElementById,mt.poolIndex=function(){var t=this._private.cy,e=t._private.elements,r=this[0]._private.data.id;return e._private.map.get(r).index},mt.indexOf=function(t){var e=t[0]._private.data.id;return this._private.map.get(e).index},mt.indexOfId=function(t){return t=""+t,this._private.map.get(t).index},mt.json=function(t){var e=this.element(),r=this.cy();if(e==null&&t)return this;if(e!=null){var a=e._private;if(S(t)){if(r.startBatch(),t.data){e.data(t.data);var n=a.data;if(e.isEdge()){var i=!1,o={},s=t.data.source,u=t.data.target;s!=null&&s!=n.source&&(o.source=""+s,i=!0),u!=null&&u!=n.target&&(o.target=""+u,i=!0),i&&(e=e.move(o))}else{var l="parent"in t.data,v=t.data.parent;l&&(v!=null||n.parent!=null)&&v!=n.parent&&(v===void 0&&(v=null),v!=null&&(v=""+v),e=e.move({parent:v}))}}t.position&&e.position(t.position);var f=function(y,p,g){var m=t[y];m!=null&&m!==a[y]&&(m?e[p]():e[g]())};return f("removed","remove","restore"),f("selected","select","unselect"),f("selectable","selectify","unselectify"),f("locked","lock","unlock"),f("grabbable","grabify","ungrabify"),f("pannable","panify","unpanify"),t.classes!=null&&e.classes(t.classes),r.endBatch(),this}else if(t===void 0){var h={data:lr(a.data),position:lr(a.position),group:a.group,removed:a.removed,selected:a.selected,selectable:a.selectable,locked:a.locked,grabbable:a.grabbable,pannable:a.pannable,classes:null};h.classes="";var d=0;return a.classes.forEach(function(c){return h.classes+=d++===0?c:" "+c}),h}}},mt.jsons=function(){for(var t=[],e=0;e<this.length;e++){var r=this[e],a=r.json();t.push(a)}return t},mt.clone=function(){for(var t=this.cy(),e=[],r=0;r<this.length;r++){var a=this[r],n=a.json(),i=new fn(t,n,!1);e.push(i)}return new Nt(t,e)},mt.copy=mt.clone,mt.restore=function(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=r.cy(),n=a._private,i=[],o=[],s,u=0,l=r.length;u<l;u++){var v=r[u];e&&!v.removed()||(v.isNode()?i.push(v):o.push(v))}s=i.concat(o);var f,h=function(){s.splice(f,1),f--};for(f=0;f<s.length;f++){var d=s[f],c=d._private,y=c.data;if(d.clearTraversalCache(),!(!e&&!c.removed)){if(y.id===void 0)y.id=yo();else if(R(y.id))y.id=""+y.id;else if(Re(y.id)||!ee(y.id)){xt("Can not create element with invalid string ID `"+y.id+"`"),h();continue}else if(a.hasElementWithId(y.id)){xt("Can not create second element with ID `"+y.id+"`"),h();continue}}var p=y.id;if(d.isNode()){var g=c.position;g.x==null&&(g.x=0),g.y==null&&(g.y=0)}if(d.isEdge()){for(var m=d,b=["source","target"],E=b.length,M=!1,L=0;L<E;L++){var w=b[L],k=y[w];R(k)&&(k=y[w]=""+y[w]),k==null||k===""?(xt("Can not create edge `"+p+"` with unspecified "+w),M=!0):a.hasElementWithId(k)||(xt("Can not create edge `"+p+"` with nonexistant "+w+" `"+k+"`"),M=!0)}if(M){h();continue}var D=a.getElementById(y.source),F=a.getElementById(y.target);D.same(F)?D._private.edges.push(m):(D._private.edges.push(m),F._private.edges.push(m)),m._private.source=D,m._private.target=F}c.map=new ur,c.map.set(p,{ele:d,index:0}),c.removed=!1,e&&a.addToPool(d)}for(var G=0;G<i.length;G++){var I=i[G],X=I._private.data;R(X.parent)&&(X.parent=""+X.parent);var B=X.parent,re=B!=null;if(re||I._private.parent){var K=I._private.parent?a.collection().merge(I._private.parent):a.getElementById(B);if(K.empty())X.parent=void 0;else if(K[0].removed())ht("Node added with missing parent, reference to parent removed"),X.parent=void 0,I._private.parent=null;else{for(var W=!1,ae=K;!ae.empty();){if(I.same(ae)){W=!0,X.parent=void 0;break}ae=ae.parent()}W||(K[0]._private.children.push(I),I._private.parent=K[0],n.hasCompoundNodes=!0)}}}if(s.length>0){for(var ue=s.length===r.length?r:new Nt(a,s),me=0;me<ue.length;me++){var ie=ue[me];ie.isNode()||(ie.parallelEdges().clearTraversalCache(),ie.source().clearTraversalCache(),ie.target().clearTraversalCache())}var ge;n.hasCompoundNodes?ge=a.collection().merge(ue).merge(ue.connectedNodes()).merge(ue.parent()):ge=ue,ge.dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(t),t?ue.emitAndNotify("add"):e&&ue.emit("add")}return r},mt.removed=function(){var t=this[0];return t&&t._private.removed},mt.inside=function(){var t=this[0];return t&&!t._private.removed},mt.remove=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=[],n={},i=r._private.cy;function o(B){for(var re=B._private.edges,K=0;K<re.length;K++)u(re[K])}function s(B){for(var re=B._private.children,K=0;K<re.length;K++)u(re[K])}function u(B){var re=n[B.id()];e&&B.removed()||re||(n[B.id()]=!0,B.isNode()?(a.push(B),o(B),s(B)):a.unshift(B))}for(var l=0,v=r.length;l<v;l++){var f=r[l];u(f)}function h(B,re){var K=B._private.edges;xr(K,re),B.clearTraversalCache()}function d(B){B.clearTraversalCache()}var c=[];c.ids={};function y(B,re){re=re[0],B=B[0];var K=B._private.children,W=B.id();xr(K,re),re._private.parent=null,c.ids[W]||(c.ids[W]=!0,c.push(B))}r.dirtyCompoundBoundsCache(),e&&i.removeFromPool(a);for(var p=0;p<a.length;p++){var g=a[p];if(g.isEdge()){var m=g.source()[0],b=g.target()[0];h(m,g),h(b,g);for(var E=g.parallelEdges(),M=0;M<E.length;M++){var L=E[M];d(L),L.isBundledBezier()&&L.dirtyBoundingBoxCache()}}else{var w=g.parent();w.length!==0&&y(w,g)}e&&(g._private.removed=!0)}var k=i._private.elements;i._private.hasCompoundNodes=!1;for(var D=0;D<k.length;D++){var F=k[D];if(F.isParent()){i._private.hasCompoundNodes=!0;break}}var G=new Nt(this.cy(),a);G.size()>0&&(t?G.emitAndNotify("remove"):e&&G.emit("remove"));for(var I=0;I<c.length;I++){var X=c[I];(!e||!X.removed())&&X.updateStyle()}return G},mt.move=function(t){var e=this._private.cy,r=this,a=!1,n=!1,i=function(c){return c==null?c:""+c};if(t.source!==void 0||t.target!==void 0){var o=i(t.source),s=i(t.target),u=o!=null&&e.hasElementWithId(o),l=s!=null&&e.hasElementWithId(s);(u||l)&&(e.batch(function(){r.remove(a,n),r.emitAndNotify("moveout");for(var d=0;d<r.length;d++){var c=r[d],y=c._private.data;c.isEdge()&&(u&&(y.source=o),l&&(y.target=s))}r.restore(a,n)}),r.emitAndNotify("move"))}else if(t.parent!==void 0){var v=i(t.parent),f=v===null||e.hasElementWithId(v);if(f){var h=v===null?void 0:v;e.batch(function(){var d=r.remove(a,n);d.emitAndNotify("moveout");for(var c=0;c<r.length;c++){var y=r[c],p=y._private.data;y.isNode()&&(p.parent=h)}d.restore(a,n)}),r.emitAndNotify("move")}}return this},[Yo,Gc,Ln,Ar,va,ed,An,pd,Ns,Is,wd,Rn,kn,Ot,Ir,Bt].forEach(function(t){He(mt,t)});var Ad={add:function(e){var r,a=this;if(pe(e)){var n=e;if(n._private.cy===a)r=n.restore();else{for(var i=[],o=0;o<n.length;o++){var s=n[o];i.push(s.json())}r=new Nt(a,i)}}else if(te(e)){var u=e;r=new Nt(a,u)}else if(S(e)&&(te(e.nodes)||te(e.edges))){for(var l=e,v=[],f=["nodes","edges"],h=0,d=f.length;h<d;h++){var c=f[h],y=l[c];if(te(y))for(var p=0,g=y.length;p<g;p++){var m=He({group:c},y[p]);v.push(m)}}r=new Nt(a,v)}else{var b=e;r=new fn(a,b).collection()}return r},remove:function(e){if(!pe(e)){if(ee(e)){var r=e;e=this.$(r)}}return e.remove()}};/*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */function Od(t,e,r,a){var n=4,i=.001,o=1e-7,s=10,u=11,l=1/(u-1),v=typeof Float32Array<"u";if(arguments.length!==4)return!1;for(var f=0;f<4;++f)if(typeof arguments[f]!="number"||isNaN(arguments[f])||!isFinite(arguments[f]))return!1;t=Math.min(t,1),r=Math.min(r,1),t=Math.max(t,0),r=Math.max(r,0);var h=v?new Float32Array(u):new Array(u);function d(F,G){return 1-3*G+3*F}function c(F,G){return 3*G-6*F}function y(F){return 3*F}function p(F,G,I){return((d(G,I)*F+c(G,I))*F+y(G))*F}function g(F,G,I){return 3*d(G,I)*F*F+2*c(G,I)*F+y(G)}function m(F,G){for(var I=0;I<n;++I){var X=g(G,t,r);if(X===0)return G;var B=p(G,t,r)-F;G-=B/X}return G}function b(){for(var F=0;F<u;++F)h[F]=p(F*l,t,r)}function E(F,G,I){var X,B,re=0;do B=G+(I-G)/2,X=p(B,t,r)-F,X>0?I=B:G=B;while(Math.abs(X)>o&&++re<s);return B}function M(F){for(var G=0,I=1,X=u-1;I!==X&&h[I]<=F;++I)G+=l;--I;var B=(F-h[I])/(h[I+1]-h[I]),re=G+B*l,K=g(re,t,r);return K>=i?m(F,re):K===0?re:E(F,G,G+l)}var L=!1;function w(){L=!0,(t!==e||r!==a)&&b()}var k=function(G){return L||w(),t===e&&r===a?G:G===0?0:G===1?1:p(M(G),e,a)};k.getControlPoints=function(){return[{x:t,y:e},{x:r,y:a}]};var D="generateBezier("+[t,e,r,a]+")";return k.toString=function(){return D},k}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var Nd=function(){function t(a){return-a.tension*a.x-a.friction*a.v}function e(a,n,i){var o={x:a.x+i.dx*n,v:a.v+i.dv*n,tension:a.tension,friction:a.friction};return{dx:o.v,dv:t(o)}}function r(a,n){var i={dx:a.v,dv:t(a)},o=e(a,n*.5,i),s=e(a,n*.5,o),u=e(a,n,s),l=1/6*(i.dx+2*(o.dx+s.dx)+u.dx),v=1/6*(i.dv+2*(o.dv+s.dv)+u.dv);return a.x=a.x+l*n,a.v=a.v+v*n,a}return function a(n,i,o){var s={x:-1,v:0,tension:null,friction:null},u=[0],l=0,v=1/1e4,f=16/1e3,h,d,c;for(n=parseFloat(n)||500,i=parseFloat(i)||20,o=o||null,s.tension=n,s.friction=i,h=o!==null,h?(l=a(n,i),d=l/o*f):d=f;c=r(c||s,d),u.push(1+c.x),l+=16,Math.abs(c.x)>v&&Math.abs(c.v)>v;);return h?function(y){return u[y*(u.length-1)|0]}:l}}(),bt=function(e,r,a,n){var i=Od(e,r,a,n);return function(o,s,u){return o+(s-o)*i(u)}},Fn={linear:function(e,r,a){return e+(r-e)*a},ease:bt(.25,.1,.25,1),"ease-in":bt(.42,0,1,1),"ease-out":bt(0,0,.58,1),"ease-in-out":bt(.42,0,.58,1),"ease-in-sine":bt(.47,0,.745,.715),"ease-out-sine":bt(.39,.575,.565,1),"ease-in-out-sine":bt(.445,.05,.55,.95),"ease-in-quad":bt(.55,.085,.68,.53),"ease-out-quad":bt(.25,.46,.45,.94),"ease-in-out-quad":bt(.455,.03,.515,.955),"ease-in-cubic":bt(.55,.055,.675,.19),"ease-out-cubic":bt(.215,.61,.355,1),"ease-in-out-cubic":bt(.645,.045,.355,1),"ease-in-quart":bt(.895,.03,.685,.22),"ease-out-quart":bt(.165,.84,.44,1),"ease-in-out-quart":bt(.77,0,.175,1),"ease-in-quint":bt(.755,.05,.855,.06),"ease-out-quint":bt(.23,1,.32,1),"ease-in-out-quint":bt(.86,0,.07,1),"ease-in-expo":bt(.95,.05,.795,.035),"ease-out-expo":bt(.19,1,.22,1),"ease-in-out-expo":bt(1,0,0,1),"ease-in-circ":bt(.6,.04,.98,.335),"ease-out-circ":bt(.075,.82,.165,1),"ease-in-out-circ":bt(.785,.135,.15,.86),spring:function(e,r,a){if(a===0)return Fn.linear;var n=Nd(e,r,a);return function(i,o,s){return i+(o-i)*n(s)}},"cubic-bezier":bt};function $s(t,e,r,a,n){if(a===1||e===r)return r;var i=n(e,r,a);return t==null||((t.roundValue||t.color)&&(i=Math.round(i)),t.min!==void 0&&(i=Math.max(i,t.min)),t.max!==void 0&&(i=Math.min(i,t.max))),i}function Us(t,e){return t.pfValue!=null||t.value!=null?t.pfValue!=null&&(e==null||e.type.units!=="%")?t.pfValue:t.value:t}function ga(t,e,r,a,n){var i=n!=null?n.type:null;r<0?r=0:r>1&&(r=1);var o=Us(t,n),s=Us(e,n);if(R(o)&&R(s))return $s(i,o,s,r,a);if(te(o)&&te(s)){for(var u=[],l=0;l<s.length;l++){var v=o[l],f=s[l];if(v!=null&&f!=null){var h=$s(i,v,f,r,a);u.push(h)}else u.push(f)}return u}}function Id(t,e,r,a){var n=!a,i=t._private,o=e._private,s=o.easing,u=o.startTime,l=a?t:t.cy(),v=l.style();if(!o.easingImpl)if(s==null)o.easingImpl=Fn.linear;else{var f;if(ee(s)){var h=v.parse("transition-timing-function",s);f=h.value}else f=s;var d,c;ee(f)?(d=f,c=[]):(d=f[1],c=f.slice(2).map(function(ue){return+ue})),c.length>0?(d==="spring"&&c.push(o.duration),o.easingImpl=Fn[d].apply(null,c)):o.easingImpl=Fn[d]}var y=o.easingImpl,p;if(o.duration===0?p=1:p=(r-u)/o.duration,o.applying&&(p=o.progress),p<0?p=0:p>1&&(p=1),o.delay==null){var g=o.startPosition,m=o.position;if(m&&n&&!t.locked()){var b={};Xa(g.x,m.x)&&(b.x=ga(g.x,m.x,p,y)),Xa(g.y,m.y)&&(b.y=ga(g.y,m.y,p,y)),t.position(b)}var E=o.startPan,M=o.pan,L=i.pan,w=M!=null&&a;w&&(Xa(E.x,M.x)&&(L.x=ga(E.x,M.x,p,y)),Xa(E.y,M.y)&&(L.y=ga(E.y,M.y,p,y)),t.emit("pan"));var k=o.startZoom,D=o.zoom,F=D!=null&&a;F&&(Xa(k,D)&&(i.zoom=ka(i.minZoom,ga(k,D,p,y),i.maxZoom)),t.emit("zoom")),(w||F)&&t.emit("viewport");var G=o.style;if(G&&G.length>0&&n){for(var I=0;I<G.length;I++){var X=G[I],B=X.name,re=X,K=o.startStyle[B],W=v.properties[K.name],ae=ga(K,re,p,y,W);v.overrideBypass(t,B,ae)}t.emit("style")}}return o.progress=p,p}function Xa(t,e){return t==null||e==null?!1:R(t)&&R(e)?!0:!!(t&&e)}function Md(t,e,r,a){var n=e._private;n.started=!0,n.startTime=r-n.progress*n.duration}function _s(t,e){var r=e._private.aniEles,a=[];function n(v,f){var h=v._private,d=h.animation.current,c=h.animation.queue,y=!1;if(d.length===0){var p=c.shift();p&&d.push(p)}for(var g=function(L){for(var w=L.length-1;w>=0;w--){var k=L[w];k()}L.splice(0,L.length)},m=d.length-1;m>=0;m--){var b=d[m],E=b._private;if(E.stopped){d.splice(m,1),E.hooked=!1,E.playing=!1,E.started=!1,g(E.frames);continue}!E.playing&&!E.applying||(E.playing&&E.applying&&(E.applying=!1),E.started||Md(v,b,t),Id(v,b,t,f),E.applying&&(E.applying=!1),g(E.frames),E.step!=null&&E.step(t),b.completed()&&(d.splice(m,1),E.hooked=!1,E.playing=!1,E.started=!1,g(E.completes)),y=!0)}return!f&&d.length===0&&c.length===0&&a.push(v),y}for(var i=!1,o=0;o<r.length;o++){var s=r[o],u=n(s);i=i||u}var l=n(e,!0);(i||l)&&(r.length>0?e.notify("draw",r):e.notify("draw")),r.unmerge(a),e.emit("step")}var Rd={animate:ct.animate(),animation:ct.animation(),animated:ct.animated(),clearQueue:ct.clearQueue(),delay:ct.delay(),delayAnimation:ct.delayAnimation(),stop:ct.stop(),addToAnimationPool:function(e){var r=this;r.styleEnabled()&&r._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function r(){e._private.animationsRunning&&ln(function(i){_s(i,e),r()})}var a=e.renderer();a&&a.beforeRender?a.beforeRender(function(i,o){_s(o,e)},a.beforeRenderPriorities.animations):r()}},kd={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,a){var n=r.qualifier;return n!=null?e!==a.target&&Ae(a.target)&&n.matches(a.target):!0},addEventFields:function(e,r){r.cy=e,r.target=e},callbackContext:function(e,r,a){return r.qualifier!=null?a.target:e}},Gn=function(e){return ee(e)?new Sr(e):e},Ys={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new In(kd,this)),this},emitter:function(){return this._private.emitter},on:function(e,r,a){return this.emitter().on(e,Gn(r),a),this},removeListener:function(e,r,a){return this.emitter().removeListener(e,Gn(r),a),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,r,a){return this.emitter().one(e,Gn(r),a),this},once:function(e,r,a){return this.emitter().one(e,Gn(r),a),this},emit:function(e,r){return this.emitter().emit(e,r),this},emitAndNotify:function(e,r){return this.emit(e),this.notify(e,r),this}};ct.eventAliasesOn(Ys);var Ii={png:function(e){var r=this._private.renderer;return e=e||{},r.png(e)},jpg:function(e){var r=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",r.jpg(e)}};Ii.jpeg=Ii.jpg;var zn={layout:function(e){var r=this;if(e==null){xt("Layout options must be specified to make a layout");return}if(e.name==null){xt("A `name` must be specified to make a layout");return}var a=e.name,n=r.extension("layout",a);if(n==null){xt("No such layout `"+a+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var i;ee(e.eles)?i=r.$(e.eles):i=e.eles!=null?e.eles:r.$();var o=new n(He({},e,{cy:r,eles:i}));return o}};zn.createLayout=zn.makeLayout=zn.layout;var Pd={notify:function(e,r){var a=this._private;if(this.batching()){a.batchNotifications=a.batchNotifications||{};var n=a.batchNotifications[e]=a.batchNotifications[e]||this.collection();r!=null&&n.merge(r);return}if(a.notificationsEnabled){var i=this.renderer();this.destroyed()||!i||i.notify(e,r)}},notifications:function(e){var r=this._private;return e===void 0?r.notificationsEnabled:(r.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(e.batchNotifications).forEach(function(a){var n=e.batchNotifications[a];n.empty()?r.notify(a):r.notify(a,n)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var r=this;return this.batch(function(){for(var a=Object.keys(e),n=0;n<a.length;n++){var i=a[n],o=e[i],s=r.getElementById(i);s.data(o)}})}},Bd=At({hideEdgesOnViewport:!1,textureOnViewport:!1,motionBlur:!1,motionBlurOpacity:.05,pixelRatio:void 0,desktopTapThreshold:4,touchTapThreshold:8,wheelSensitivity:1,debug:!1,showFps:!1}),Mi={renderTo:function(e,r,a,n){var i=this._private.renderer;return i.renderTo(e,r,a,n),this},renderer:function(){return this._private.renderer},forceRender:function(){return this.notify("draw"),this},resize:function(){return this.invalidateSize(),this.emitAndNotify("resize"),this},initRenderer:function(e){var r=this,a=r.extension("renderer",e.name);if(a==null){xt("Can not initialise: No such renderer `".concat(e.name,"` found. Did you forget to import it and `cytoscape.use()` it?"));return}e.wheelSensitivity!==void 0&&ht("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");var n=Bd(e);n.cy=r,r._private.renderer=new a(n),this.notify("init")},destroyRenderer:function(){var e=this;e.notify("destroy");var r=e.container();if(r)for(r._cyreg=null;r.childNodes.length>0;)r.removeChild(r.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(a){var n=a._private;n.rscratch={},n.rstyle={},n.animation.current=[],n.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};Mi.invalidateDimensions=Mi.resize;var Vn={collection:function(e,r){return ee(e)?this.$(e):pe(e)?e.collection():te(e)?(r||(r={}),new Nt(this,e,r.unique,r.removed)):new Nt(this)},nodes:function(e){var r=this.$(function(a){return a.isNode()});return e?r.filter(e):r},edges:function(e){var r=this.$(function(a){return a.isEdge()});return e?r.filter(e):r},$:function(e){var r=this._private.elements;return e?r.filter(e):r.spawnSelf()},mutableElements:function(){return this._private.elements}};Vn.elements=Vn.filter=Vn.$;var Ft={},Wa="t",Fd="f";Ft.apply=function(t){for(var e=this,r=e._private,a=r.cy,n=a.collection(),i=0;i<t.length;i++){var o=t[i],s=e.getContextMeta(o);if(!s.empty){var u=e.getContextStyle(s),l=e.applyContextStyle(s,u,o);o._private.appliedInitStyle?e.updateTransitions(o,l.diffProps):o._private.appliedInitStyle=!0;var v=e.updateStyleHints(o);v&&n.push(o)}}return n},Ft.getPropertiesDiff=function(t,e){var r=this,a=r._private.propDiffs=r._private.propDiffs||{},n=t+"-"+e,i=a[n];if(i)return i;for(var o=[],s={},u=0;u<r.length;u++){var l=r[u],v=t[u]===Wa,f=e[u]===Wa,h=v!==f,d=l.mappedProperties.length>0;if(h||f&&d){var c=void 0;h&&d||h?c=l.properties:d&&(c=l.mappedProperties);for(var y=0;y<c.length;y++){for(var p=c[y],g=p.name,m=!1,b=u+1;b<r.length;b++){var E=r[b],M=e[b]===Wa;if(M&&(m=E.properties[p.name]!=null,m))break}!s[g]&&!m&&(s[g]=!0,o.push(g))}}}return a[n]=o,o},Ft.getContextMeta=function(t){for(var e=this,r="",a,n=t._private.styleCxtKey||"",i=0;i<e.length;i++){var o=e[i],s=o.selector&&o.selector.matches(t);s?r+=Wa:r+=Fd}return a=e.getPropertiesDiff(n,r),t._private.styleCxtKey=r,{key:r,diffPropNames:a,empty:a.length===0}},Ft.getContextStyle=function(t){var e=t.key,r=this,a=this._private.contextStyles=this._private.contextStyles||{};if(a[e])return a[e];for(var n={_private:{key:e}},i=0;i<r.length;i++){var o=r[i],s=e[i]===Wa;if(s)for(var u=0;u<o.properties.length;u++){var l=o.properties[u];n[l.name]=l}}return a[e]=n,n},Ft.applyContextStyle=function(t,e,r){for(var a=this,n=t.diffPropNames,i={},o=a.types,s=0;s<n.length;s++){var u=n[s],l=e[u],v=r.pstyle(u);if(!l)if(v)v.bypass?l={name:u,deleteBypassed:!0}:l={name:u,delete:!0};else continue;if(v!==l){if(l.mapped===o.fn&&v!=null&&v.mapping!=null&&v.mapping.value===l.value){var f=v.mapping,h=f.fnValue=l.value(r);if(h===f.prevFnValue)continue}var d=i[u]={prev:v};a.applyParsedProperty(r,l),d.next=r.pstyle(u),d.next&&d.next.bypass&&(d.next=d.next.bypassed)}}return{diffProps:i}},Ft.updateStyleHints=function(t){var e=t._private,r=this,a=r.propertyGroupNames,n=r.propertyGroupKeys,i=function(Oe,Fe,Xe){return r.getPropertiesHash(Oe,Fe,Xe)},o=e.styleKey;if(t.removed())return!1;var s=e.group==="nodes",u=t._private.style;a=Object.keys(u);for(var l=0;l<n.length;l++){var v=n[l];e.styleKeys[v]=[Qr,Oa]}for(var f=function(Oe,Fe){return e.styleKeys[Fe][0]=Na(Oe,e.styleKeys[Fe][0])},h=function(Oe,Fe){return e.styleKeys[Fe][1]=Ia(Oe,e.styleKeys[Fe][1])},d=function(Oe,Fe){f(Oe,Fe),h(Oe,Fe)},c=function(Oe,Fe){for(var Xe=0;Xe<Oe.length;Xe++){var Ie=Oe.charCodeAt(Xe);f(Ie,Fe),h(Ie,Fe)}},y=2e9,p=function(Oe){return-128<Oe&&Oe<128&&Math.floor(Oe)!==Oe?y-(Oe*1024|0):Oe},g=0;g<a.length;g++){var m=a[g],b=u[m];if(b!=null){var E=this.properties[m],M=E.type,L=E.groupKey,w=void 0;E.hashOverride!=null?w=E.hashOverride(t,b):b.pfValue!=null&&(w=b.pfValue);var k=E.enums==null?b.value:null,D=w!=null,F=k!=null,G=D||F,I=b.units;if(M.number&&G&&!M.multiple){var X=D?w:k;d(p(X),L),!D&&I!=null&&c(I,L)}else c(b.strValue,L)}}for(var B=[Qr,Oa],re=0;re<n.length;re++){var K=n[re],W=e.styleKeys[K];B[0]=Na(W[0],B[0]),B[1]=Ia(W[1],B[1])}e.styleKey=$u(B[0],B[1]);var ae=e.styleKeys;e.labelDimsKey=wr(ae.labelDimensions);var ue=i(t,["label"],ae.labelDimensions);if(e.labelKey=wr(ue),e.labelStyleKey=wr(un(ae.commonLabel,ue)),!s){var me=i(t,["source-label"],ae.labelDimensions);e.sourceLabelKey=wr(me),e.sourceLabelStyleKey=wr(un(ae.commonLabel,me));var ie=i(t,["target-label"],ae.labelDimensions);e.targetLabelKey=wr(ie),e.targetLabelStyleKey=wr(un(ae.commonLabel,ie))}if(s){var ge=e.styleKeys,Ee=ge.nodeBody,Ce=ge.nodeBorder,we=ge.nodeOutline,De=ge.backgroundImage,oe=ge.compound,xe=ge.pie,Le=[Ee,Ce,we,De,oe,xe].filter(function(Se){return Se!=null}).reduce(un,[Qr,Oa]);e.nodeKey=wr(Le),e.hasPie=xe!=null&&xe[0]!==Qr&&xe[1]!==Oa}return o!==e.styleKey},Ft.clearStyleHints=function(t){var e=t._private;e.styleCxtKey="",e.styleKeys={},e.styleKey=null,e.labelKey=null,e.labelStyleKey=null,e.sourceLabelKey=null,e.sourceLabelStyleKey=null,e.targetLabelKey=null,e.targetLabelStyleKey=null,e.nodeKey=null,e.hasPie=null},Ft.applyParsedProperty=function(t,e){var r=this,a=e,n=t._private.style,i,o=r.types,s=r.properties[a.name].type,u=a.bypass,l=n[a.name],v=l&&l.bypass,f=t._private,h="mapping",d=function(Ee){return Ee==null?null:Ee.pfValue!=null?Ee.pfValue:Ee.value},c=function(){var Ee=d(l),Ce=d(a);r.checkTriggers(t,a.name,Ee,Ce)};if(e.name==="curve-style"&&t.isEdge()&&(e.value!=="bezier"&&t.isLoop()||e.value==="haystack"&&(t.source().isParent()||t.target().isParent()))&&(a=e=this.parse(e.name,"bezier",u)),a.delete)return n[a.name]=void 0,c(),!0;if(a.deleteBypassed)return l?l.bypass?(l.bypassed=void 0,c(),!0):!1:(c(),!0);if(a.deleteBypass)return l?l.bypass?(n[a.name]=l.bypassed,c(),!0):!1:(c(),!0);var y=function(){ht("Do not assign mappings to elements without corresponding data (i.e. ele `"+t.id()+"` has no mapping for property `"+a.name+"` with data field `"+a.field+"`); try a `["+a.field+"]` selector to limit scope to elements with `"+a.field+"` defined")};switch(a.mapped){case o.mapData:{for(var p=a.field.split("."),g=f.data,m=0;m<p.length&&g;m++){var b=p[m];g=g[b]}if(g==null)return y(),!1;var E;if(R(g)){var M=a.fieldMax-a.fieldMin;M===0?E=0:E=(g-a.fieldMin)/M}else return ht("Do not use continuous mappers without specifying numeric data (i.e. `"+a.field+": "+g+"` for `"+t.id()+"` is non-numeric)"),!1;if(E<0?E=0:E>1&&(E=1),s.color){var L=a.valueMin[0],w=a.valueMax[0],k=a.valueMin[1],D=a.valueMax[1],F=a.valueMin[2],G=a.valueMax[2],I=a.valueMin[3]==null?1:a.valueMin[3],X=a.valueMax[3]==null?1:a.valueMax[3],B=[Math.round(L+(w-L)*E),Math.round(k+(D-k)*E),Math.round(F+(G-F)*E),Math.round(I+(X-I)*E)];i={bypass:a.bypass,name:a.name,value:B,strValue:"rgb("+B[0]+", "+B[1]+", "+B[2]+")"}}else if(s.number){var re=a.valueMin+(a.valueMax-a.valueMin)*E;i=this.parse(a.name,re,a.bypass,h)}else return!1;if(!i)return y(),!1;i.mapping=a,a=i;break}case o.data:{for(var K=a.field.split("."),W=f.data,ae=0;ae<K.length&&W;ae++){var ue=K[ae];W=W[ue]}if(W!=null&&(i=this.parse(a.name,W,a.bypass,h)),!i)return y(),!1;i.mapping=a,a=i;break}case o.fn:{var me=a.value,ie=a.fnValue!=null?a.fnValue:me(t);if(a.prevFnValue=ie,ie==null)return ht("Custom function mappers may not return null (i.e. `"+a.name+"` for ele `"+t.id()+"` is null)"),!1;if(i=this.parse(a.name,ie,a.bypass,h),!i)return ht("Custom function mappers may not return invalid values for the property type (i.e. `"+a.name+"` for ele `"+t.id()+"` is invalid)"),!1;i.mapping=lr(a),a=i;break}case void 0:break;default:return!1}return u?(v?a.bypassed=l.bypassed:a.bypassed=l,n[a.name]=a):v?l.bypassed=a:n[a.name]=a,c(),!0},Ft.cleanElements=function(t,e){for(var r=0;r<t.length;r++){var a=t[r];if(this.clearStyleHints(a),a.dirtyCompoundBoundsCache(),a.dirtyBoundingBoxCache(),!e)a._private.style={};else for(var n=a._private.style,i=Object.keys(n),o=0;o<i.length;o++){var s=i[o],u=n[s];u!=null&&(u.bypass?u.bypassed=null:n[s]=null)}}},Ft.update=function(){var t=this._private.cy,e=t.mutableElements();e.updateStyle()},Ft.updateTransitions=function(t,e){var r=this,a=t._private,n=t.pstyle("transition-property").value,i=t.pstyle("transition-duration").pfValue,o=t.pstyle("transition-delay").pfValue;if(n.length>0&&i>0){for(var s={},u=!1,l=0;l<n.length;l++){var v=n[l],f=t.pstyle(v),h=e[v];if(h){var d=h.prev,c=d,y=h.next!=null?h.next:f,p=!1,g=void 0,m=1e-6;c&&(R(c.pfValue)&&R(y.pfValue)?(p=y.pfValue-c.pfValue,g=c.pfValue+m*p):R(c.value)&&R(y.value)?(p=y.value-c.value,g=c.value+m*p):te(c.value)&&te(y.value)&&(p=c.value[0]!==y.value[0]||c.value[1]!==y.value[1]||c.value[2]!==y.value[2],g=c.strValue),p&&(s[v]=y.strValue,this.applyBypass(t,v,g),u=!0))}}if(!u)return;a.transitioning=!0,new ia(function(b){o>0?t.delayAnimation(o).play().promise().then(b):b()}).then(function(){return t.animation({style:s,duration:i,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1})}else a.transitioning&&(this.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1)},Ft.checkTrigger=function(t,e,r,a,n,i){var o=this.properties[e],s=n(o);s!=null&&s(r,a)&&i(o)},Ft.checkZOrderTrigger=function(t,e,r,a){var n=this;this.checkTrigger(t,e,r,a,function(i){return i.triggersZOrder},function(){n._private.cy.notify("zorder",t)})},Ft.checkBoundsTrigger=function(t,e,r,a){this.checkTrigger(t,e,r,a,function(n){return n.triggersBounds},function(n){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),n.triggersBoundsOfParallelBeziers&&e==="curve-style"&&(r==="bezier"||a==="bezier")&&t.parallelEdges().forEach(function(i){i.isBundledBezier()&&i.dirtyBoundingBoxCache()}),n.triggersBoundsOfConnectedEdges&&e==="display"&&(r==="none"||a==="none")&&t.connectedEdges().forEach(function(i){i.dirtyBoundingBoxCache()})})},Ft.checkTriggers=function(t,e,r,a){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,r,a),this.checkBoundsTrigger(t,e,r,a)};var qa={};qa.applyBypass=function(t,e,r,a){var n=this,i=[],o=!0;if(e==="*"||e==="**"){if(r!==void 0)for(var s=0;s<n.properties.length;s++){var u=n.properties[s],l=u.name,v=this.parse(l,r,!0);v&&i.push(v)}}else if(ee(e)){var f=this.parse(e,r,!0);f&&i.push(f)}else if(S(e)){var h=e;a=r;for(var d=Object.keys(h),c=0;c<d.length;c++){var y=d[c],p=h[y];if(p===void 0&&(p=h[yt(y)]),p!==void 0){var g=this.parse(y,p,!0);g&&i.push(g)}}}else return!1;if(i.length===0)return!1;for(var m=!1,b=0;b<t.length;b++){for(var E=t[b],M={},L=void 0,w=0;w<i.length;w++){var k=i[w];if(a){var D=E.pstyle(k.name);L=M[k.name]={prev:D}}m=this.applyParsedProperty(E,lr(k))||m,a&&(L.next=E.pstyle(k.name))}m&&this.updateStyleHints(E),a&&this.updateTransitions(E,M,o)}return m},qa.overrideBypass=function(t,e,r){e=tt(e);for(var a=0;a<t.length;a++){var n=t[a],i=n._private.style[e],o=this.properties[e].type,s=o.color,u=o.mutiple,l=i?i.pfValue!=null?i.pfValue:i.value:null;!i||!i.bypass?this.applyBypass(n,e,r):(i.value=r,i.pfValue!=null&&(i.pfValue=r),s?i.strValue="rgb("+r.join(",")+")":u?i.strValue=r.join(" "):i.strValue=""+r,this.updateStyleHints(n)),this.checkTriggers(n,e,l,r)}},qa.removeAllBypasses=function(t,e){return this.removeBypasses(t,this.propertyNames,e)},qa.removeBypasses=function(t,e,r){for(var a=!0,n=0;n<t.length;n++){for(var i=t[n],o={},s=0;s<e.length;s++){var u=e[s],l=this.properties[u],v=i.pstyle(l.name);if(!(!v||!v.bypass)){var f="",h=this.parse(u,f,!0),d=o[l.name]={prev:v};this.applyParsedProperty(i,h),d.next=i.pstyle(l.name)}}this.updateStyleHints(i),r&&this.updateTransitions(i,o,a)}};var Ri={};Ri.getEmSizeInPixels=function(){var t=this.containerCss("font-size");return t!=null?parseFloat(t):1},Ri.containerCss=function(t){var e=this._private.cy,r=e.container(),a=e.window();if(a&&r&&a.getComputedStyle)return a.getComputedStyle(r).getPropertyValue(t)};var vr={};vr.getRenderedStyle=function(t,e){return e?this.getStylePropertyValue(t,e,!0):this.getRawStyle(t,!0)},vr.getRawStyle=function(t,e){var r=this;if(t=t[0],t){for(var a={},n=0;n<r.properties.length;n++){var i=r.properties[n],o=r.getStylePropertyValue(t,i.name,e);o!=null&&(a[i.name]=o,a[yt(i.name)]=o)}return a}},vr.getIndexedStyle=function(t,e,r,a){var n=t.pstyle(e)[r][a];return n??t.cy().style().getDefaultProperty(e)[r][0]},vr.getStylePropertyValue=function(t,e,r){var a=this;if(t=t[0],t){var n=a.properties[e];n.alias&&(n=n.pointsTo);var i=n.type,o=t.pstyle(n.name);if(o){var s=o.value,u=o.units,l=o.strValue;if(r&&i.number&&s!=null&&R(s)){var v=t.cy().zoom(),f=function(p){return p*v},h=function(p,g){return f(p)+g},d=te(s),c=d?u.every(function(y){return y!=null}):u!=null;return c?d?s.map(function(y,p){return h(y,u[p])}).join(" "):h(s,u):d?s.map(function(y){return ee(y)?y:""+f(y)}).join(" "):""+f(s)}else if(l!=null)return l}return null}},vr.getAnimationStartStyle=function(t,e){for(var r={},a=0;a<e.length;a++){var n=e[a],i=n.name,o=t.pstyle(i);o!==void 0&&(S(o)?o=this.parse(i,o.strValue):o=this.parse(i,o)),o&&(r[i]=o)}return r},vr.getPropsList=function(t){var e=this,r=[],a=t,n=e.properties;if(a)for(var i=Object.keys(a),o=0;o<i.length;o++){var s=i[o],u=a[s],l=n[s]||n[tt(s)],v=this.parse(l.name,u);v&&r.push(v)}return r},vr.getNonDefaultPropertiesHash=function(t,e,r){var a=r.slice(),n,i,o,s,u,l;for(u=0;u<e.length;u++)if(n=e[u],i=t.pstyle(n,!1),i!=null)if(i.pfValue!=null)a[0]=Na(s,a[0]),a[1]=Ia(s,a[1]);else for(o=i.strValue,l=0;l<o.length;l++)s=o.charCodeAt(l),a[0]=Na(s,a[0]),a[1]=Ia(s,a[1]);return a},vr.getPropertiesHash=vr.getNonDefaultPropertiesHash;var $n={};$n.appendFromJson=function(t){for(var e=this,r=0;r<t.length;r++){var a=t[r],n=a.selector,i=a.style||a.css,o=Object.keys(i);e.selector(n);for(var s=0;s<o.length;s++){var u=o[s],l=i[u];e.css(u,l)}}return e},$n.fromJson=function(t){var e=this;return e.resetToDefault(),e.appendFromJson(t),e},$n.json=function(){for(var t=[],e=this.defaultLength;e<this.length;e++){for(var r=this[e],a=r.selector,n=r.properties,i={},o=0;o<n.length;o++){var s=n[o];i[s.name]=s.strValue}t.push({selector:a?a.toString():"core",style:i})}return t};var ki={};ki.appendFromString=function(t){var e=this,r=this,a=""+t,n,i,o;a=a.replace(/[/][*](\s|.)+?[*][/]/g,"");function s(){a.length>n.length?a=a.substr(n.length):a=""}function u(){i.length>o.length?i=i.substr(o.length):i=""}for(;;){var l=a.match(/^\s*$/);if(l)break;var v=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!v){ht("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}n=v[0];var f=v[1];if(f!=="core"){var h=new Sr(f);if(h.invalid){ht("Skipping parsing of block: Invalid selector found in string stylesheet: "+f),s();continue}}var d=v[2],c=!1;i=d;for(var y=[];;){var p=i.match(/^\s*$/);if(p)break;var g=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!g){ht("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+d),c=!0;break}o=g[0];var m=g[1],b=g[2],E=e.properties[m];if(!E){ht("Skipping property: Invalid property name in: "+o),u();continue}var M=r.parse(m,b);if(!M){ht("Skipping property: Invalid property definition in: "+o),u();continue}y.push({name:m,val:b}),u()}if(c){s();break}r.selector(f);for(var L=0;L<y.length;L++){var w=y[L];r.css(w.name,w.val)}s()}return r},ki.fromString=function(t){var e=this;return e.resetToDefault(),e.appendFromString(t),e};var It={};(function(){var t=gt,e=qt,r=Kr,a=Da,n=jt,i=function(Le){return"^"+Le+"\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"},o=function(Le){var Se=t+"|\\w+|"+e+"|"+r+"|"+a+"|"+n;return"^"+Le+"\\s*\\(([\\w\\.]+)\\s*\\,\\s*("+t+")\\s*\\,\\s*("+t+")\\s*,\\s*("+Se+")\\s*\\,\\s*("+Se+")\\)$"},s=[`^url\\s*\\(\\s*['"]?(.+?)['"]?\\s*\\)$`,"^(none)$","^(.+)$"];It.types={time:{number:!0,min:0,units:"s|ms",implicitUnits:"ms"},percent:{number:!0,min:0,max:100,units:"%",implicitUnits:"%"},percentages:{number:!0,min:0,max:100,units:"%",implicitUnits:"%",multiple:!0},zeroOneNumber:{number:!0,min:0,max:1,unitless:!0},zeroOneNumbers:{number:!0,min:0,max:1,unitless:!0,multiple:!0},nOneOneNumber:{number:!0,min:-1,max:1,unitless:!0},nonNegativeInt:{number:!0,min:0,integer:!0,unitless:!0},nonNegativeNumber:{number:!0,min:0,unitless:!0},position:{enums:["parent","origin"]},nodeSize:{number:!0,min:0,enums:["label"]},number:{number:!0,unitless:!0},numbers:{number:!0,unitless:!0,multiple:!0},positiveNumber:{number:!0,unitless:!0,min:0,strictMin:!0},size:{number:!0,min:0},bidirectionalSize:{number:!0},bidirectionalSizeMaybePercent:{number:!0,allowPercent:!0},bidirectionalSizes:{number:!0,multiple:!0},sizeMaybePercent:{number:!0,min:0,allowPercent:!0},axisDirection:{enums:["horizontal","leftward","rightward","vertical","upward","downward","auto"]},paddingRelativeTo:{enums:["width","height","average","min","max"]},bgWH:{number:!0,min:0,allowPercent:!0,enums:["auto"],multiple:!0},bgPos:{number:!0,allowPercent:!0,multiple:!0},bgRelativeTo:{enums:["inner","include-padding"],multiple:!0},bgRepeat:{enums:["repeat","repeat-x","repeat-y","no-repeat"],multiple:!0},bgFit:{enums:["none","contain","cover"],multiple:!0},bgCrossOrigin:{enums:["anonymous","use-credentials","null"],multiple:!0},bgClip:{enums:["none","node"],multiple:!0},bgContainment:{enums:["inside","over"],multiple:!0},color:{color:!0},colors:{color:!0,multiple:!0},fill:{enums:["solid","linear-gradient","radial-gradient"]},bool:{enums:["yes","no"]},bools:{enums:["yes","no"],multiple:!0},lineStyle:{enums:["solid","dotted","dashed"]},lineCap:{enums:["butt","round","square"]},borderStyle:{enums:["solid","dotted","dashed","double"]},curveStyle:{enums:["bezier","unbundled-bezier","haystack","segments","straight","straight-triangle","taxi"]},fontFamily:{regex:'^([\\w- \\"]+(?:\\s*,\\s*[\\w- \\"]+)*)$'},fontStyle:{enums:["italic","normal","oblique"]},fontWeight:{enums:["normal","bold","bolder","lighter","100","200","300","400","500","600","800","900",100,200,300,400,500,600,700,800,900]},textDecoration:{enums:["none","underline","overline","line-through"]},textTransform:{enums:["none","uppercase","lowercase"]},textWrap:{enums:["none","wrap","ellipsis"]},textOverflowWrap:{enums:["whitespace","anywhere"]},textBackgroundShape:{enums:["rectangle","roundrectangle","round-rectangle"]},nodeShape:{enums:["rectangle","roundrectangle","round-rectangle","cutrectangle","cut-rectangle","bottomroundrectangle","bottom-round-rectangle","barrel","ellipse","triangle","round-triangle","square","pentagon","round-pentagon","hexagon","round-hexagon","concavehexagon","concave-hexagon","heptagon","round-heptagon","octagon","round-octagon","tag","round-tag","star","diamond","round-diamond","vee","rhomboid","right-rhomboid","polygon"]},overlayShape:{enums:["roundrectangle","round-rectangle","ellipse"]},compoundIncludeLabels:{enums:["include","exclude"]},arrowShape:{enums:["tee","triangle","triangle-tee","circle-triangle","triangle-cross","triangle-backcurve","vee","square","circle","diamond","chevron","none"]},arrowFill:{enums:["filled","hollow"]},arrowWidth:{number:!0,units:"%|px|em",implicitUnits:"px",enums:["match-line"]},display:{enums:["element","none"]},visibility:{enums:["hidden","visible"]},zCompoundDepth:{enums:["bottom","orphan","auto","top"]},zIndexCompare:{enums:["auto","manual"]},valign:{enums:["top","center","bottom"]},halign:{enums:["left","center","right"]},justification:{enums:["left","center","right","auto"]},text:{string:!0},data:{mapping:!0,regex:i("data")},layoutData:{mapping:!0,regex:i("layoutData")},scratch:{mapping:!0,regex:i("scratch")},mapData:{mapping:!0,regex:o("mapData")},mapLayoutData:{mapping:!0,regex:o("mapLayoutData")},mapScratch:{mapping:!0,regex:o("mapScratch")},fn:{mapping:!0,fn:!0},url:{regexes:s,singleRegexMatchValue:!0},urls:{regexes:s,singleRegexMatchValue:!0,multiple:!0},propList:{propList:!0},angle:{number:!0,units:"deg|rad",implicitUnits:"rad"},textRotation:{number:!0,units:"deg|rad",implicitUnits:"rad",enums:["none","autorotate"]},polygonPointList:{number:!0,multiple:!0,evenMultiple:!0,min:-1,max:1,unitless:!0},edgeDistances:{enums:["intersection","node-position","endpoints"]},edgeEndpoint:{number:!0,multiple:!0,units:"%|px|em|deg|rad",implicitUnits:"px",enums:["inside-to-node","outside-to-node","outside-to-node-or-label","outside-to-line","outside-to-line-or-label"],singleEnum:!0,validate:function(Le,Se){switch(Le.length){case 2:return Se[0]!=="deg"&&Se[0]!=="rad"&&Se[1]!=="deg"&&Se[1]!=="rad";case 1:return ee(Le[0])||Se[0]==="deg"||Se[0]==="rad";default:return!1}}},easing:{regexes:["^(spring)\\s*\\(\\s*("+t+")\\s*,\\s*("+t+")\\s*\\)$","^(cubic-bezier)\\s*\\(\\s*("+t+")\\s*,\\s*("+t+")\\s*,\\s*("+t+")\\s*,\\s*("+t+")\\s*\\)$"],enums:["linear","ease","ease-in","ease-out","ease-in-out","ease-in-sine","ease-out-sine","ease-in-out-sine","ease-in-quad","ease-out-quad","ease-in-out-quad","ease-in-cubic","ease-out-cubic","ease-in-out-cubic","ease-in-quart","ease-out-quart","ease-in-out-quart","ease-in-quint","ease-out-quint","ease-in-out-quint","ease-in-expo","ease-out-expo","ease-in-out-expo","ease-in-circ","ease-out-circ","ease-in-out-circ"]},gradientDirection:{enums:["to-bottom","to-top","to-left","to-right","to-bottom-right","to-bottom-left","to-top-right","to-top-left","to-right-bottom","to-left-bottom","to-right-top","to-left-top"]},boundsExpansion:{number:!0,multiple:!0,min:0,validate:function(Le){var Se=Le.length;return Se===1||Se===2||Se===4}}};var u={zeroNonZero:function(Le,Se){return(Le==null||Se==null)&&Le!==Se||Le==0&&Se!=0?!0:Le!=0&&Se==0},any:function(Le,Se){return Le!=Se},emptyNonEmpty:function(Le,Se){var Oe=Re(Le),Fe=Re(Se);return Oe&&!Fe||!Oe&&Fe}},l=It.types,v=[{name:"label",type:l.text,triggersBounds:u.any,triggersZOrder:u.emptyNonEmpty},{name:"text-rotation",type:l.textRotation,triggersBounds:u.any},{name:"text-margin-x",type:l.bidirectionalSize,triggersBounds:u.any},{name:"text-margin-y",type:l.bidirectionalSize,triggersBounds:u.any}],f=[{name:"source-label",type:l.text,triggersBounds:u.any},{name:"source-text-rotation",type:l.textRotation,triggersBounds:u.any},{name:"source-text-margin-x",type:l.bidirectionalSize,triggersBounds:u.any},{name:"source-text-margin-y",type:l.bidirectionalSize,triggersBounds:u.any},{name:"source-text-offset",type:l.size,triggersBounds:u.any}],h=[{name:"target-label",type:l.text,triggersBounds:u.any},{name:"target-text-rotation",type:l.textRotation,triggersBounds:u.any},{name:"target-text-margin-x",type:l.bidirectionalSize,triggersBounds:u.any},{name:"target-text-margin-y",type:l.bidirectionalSize,triggersBounds:u.any},{name:"target-text-offset",type:l.size,triggersBounds:u.any}],d=[{name:"font-family",type:l.fontFamily,triggersBounds:u.any},{name:"font-style",type:l.fontStyle,triggersBounds:u.any},{name:"font-weight",type:l.fontWeight,triggersBounds:u.any},{name:"font-size",type:l.size,triggersBounds:u.any},{name:"text-transform",type:l.textTransform,triggersBounds:u.any},{name:"text-wrap",type:l.textWrap,triggersBounds:u.any},{name:"text-overflow-wrap",type:l.textOverflowWrap,triggersBounds:u.any},{name:"text-max-width",type:l.size,triggersBounds:u.any},{name:"text-outline-width",type:l.size,triggersBounds:u.any},{name:"line-height",type:l.positiveNumber,triggersBounds:u.any}],c=[{name:"text-valign",type:l.valign,triggersBounds:u.any},{name:"text-halign",type:l.halign,triggersBounds:u.any},{name:"color",type:l.color},{name:"text-outline-color",type:l.color},{name:"text-outline-opacity",type:l.zeroOneNumber},{name:"text-background-color",type:l.color},{name:"text-background-opacity",type:l.zeroOneNumber},{name:"text-background-padding",type:l.size,triggersBounds:u.any},{name:"text-border-opacity",type:l.zeroOneNumber},{name:"text-border-color",type:l.color},{name:"text-border-width",type:l.size,triggersBounds:u.any},{name:"text-border-style",type:l.borderStyle,triggersBounds:u.any},{name:"text-background-shape",type:l.textBackgroundShape,triggersBounds:u.any},{name:"text-justification",type:l.justification}],y=[{name:"events",type:l.bool,triggersZOrder:u.any},{name:"text-events",type:l.bool,triggersZOrder:u.any}],p=[{name:"display",type:l.display,triggersZOrder:u.any,triggersBounds:u.any,triggersBoundsOfConnectedEdges:!0},{name:"visibility",type:l.visibility,triggersZOrder:u.any},{name:"opacity",type:l.zeroOneNumber,triggersZOrder:u.zeroNonZero},{name:"text-opacity",type:l.zeroOneNumber},{name:"min-zoomed-font-size",type:l.size},{name:"z-compound-depth",type:l.zCompoundDepth,triggersZOrder:u.any},{name:"z-index-compare",type:l.zIndexCompare,triggersZOrder:u.any},{name:"z-index",type:l.number,triggersZOrder:u.any}],g=[{name:"overlay-padding",type:l.size,triggersBounds:u.any},{name:"overlay-color",type:l.color},{name:"overlay-opacity",type:l.zeroOneNumber,triggersBounds:u.zeroNonZero},{name:"overlay-shape",type:l.overlayShape,triggersBounds:u.any}],m=[{name:"underlay-padding",type:l.size,triggersBounds:u.any},{name:"underlay-color",type:l.color},{name:"underlay-opacity",type:l.zeroOneNumber,triggersBounds:u.zeroNonZero},{name:"underlay-shape",type:l.overlayShape,triggersBounds:u.any}],b=[{name:"transition-property",type:l.propList},{name:"transition-duration",type:l.time},{name:"transition-delay",type:l.time},{name:"transition-timing-function",type:l.easing}],E=function(Le,Se){return Se.value==="label"?-Le.poolIndex():Se.pfValue},M=[{name:"height",type:l.nodeSize,triggersBounds:u.any,hashOverride:E},{name:"width",type:l.nodeSize,triggersBounds:u.any,hashOverride:E},{name:"shape",type:l.nodeShape,triggersBounds:u.any},{name:"shape-polygon-points",type:l.polygonPointList,triggersBounds:u.any},{name:"background-color",type:l.color},{name:"background-fill",type:l.fill},{name:"background-opacity",type:l.zeroOneNumber},{name:"background-blacken",type:l.nOneOneNumber},{name:"background-gradient-stop-colors",type:l.colors},{name:"background-gradient-stop-positions",type:l.percentages},{name:"background-gradient-direction",type:l.gradientDirection},{name:"padding",type:l.sizeMaybePercent,triggersBounds:u.any},{name:"padding-relative-to",type:l.paddingRelativeTo,triggersBounds:u.any},{name:"bounds-expansion",type:l.boundsExpansion,triggersBounds:u.any}],L=[{name:"border-color",type:l.color},{name:"border-opacity",type:l.zeroOneNumber},{name:"border-width",type:l.size,triggersBounds:u.any},{name:"border-style",type:l.borderStyle}],w=[{name:"outline-color",type:l.color},{name:"outline-opacity",type:l.zeroOneNumber},{name:"outline-width",type:l.size,triggersBounds:u.any},{name:"outline-style",type:l.borderStyle},{name:"outline-offset",type:l.size,triggersBounds:u.any}],k=[{name:"background-image",type:l.urls},{name:"background-image-crossorigin",type:l.bgCrossOrigin},{name:"background-image-opacity",type:l.zeroOneNumbers},{name:"background-image-containment",type:l.bgContainment},{name:"background-image-smoothing",type:l.bools},{name:"background-position-x",type:l.bgPos},{name:"background-position-y",type:l.bgPos},{name:"background-width-relative-to",type:l.bgRelativeTo},{name:"background-height-relative-to",type:l.bgRelativeTo},{name:"background-repeat",type:l.bgRepeat},{name:"background-fit",type:l.bgFit},{name:"background-clip",type:l.bgClip},{name:"background-width",type:l.bgWH},{name:"background-height",type:l.bgWH},{name:"background-offset-x",type:l.bgPos},{name:"background-offset-y",type:l.bgPos}],D=[{name:"position",type:l.position,triggersBounds:u.any},{name:"compound-sizing-wrt-labels",type:l.compoundIncludeLabels,triggersBounds:u.any},{name:"min-width",type:l.size,triggersBounds:u.any},{name:"min-width-bias-left",type:l.sizeMaybePercent,triggersBounds:u.any},{name:"min-width-bias-right",type:l.sizeMaybePercent,triggersBounds:u.any},{name:"min-height",type:l.size,triggersBounds:u.any},{name:"min-height-bias-top",type:l.sizeMaybePercent,triggersBounds:u.any},{name:"min-height-bias-bottom",type:l.sizeMaybePercent,triggersBounds:u.any}],F=[{name:"line-style",type:l.lineStyle},{name:"line-color",type:l.color},{name:"line-fill",type:l.fill},{name:"line-cap",type:l.lineCap},{name:"line-opacity",type:l.zeroOneNumber},{name:"line-dash-pattern",type:l.numbers},{name:"line-dash-offset",type:l.number},{name:"line-gradient-stop-colors",type:l.colors},{name:"line-gradient-stop-positions",type:l.percentages},{name:"curve-style",type:l.curveStyle,triggersBounds:u.any,triggersBoundsOfParallelBeziers:!0},{name:"haystack-radius",type:l.zeroOneNumber,triggersBounds:u.any},{name:"source-endpoint",type:l.edgeEndpoint,triggersBounds:u.any},{name:"target-endpoint",type:l.edgeEndpoint,triggersBounds:u.any},{name:"control-point-step-size",type:l.size,triggersBounds:u.any},{name:"control-point-distances",type:l.bidirectionalSizes,triggersBounds:u.any},{name:"control-point-weights",type:l.numbers,triggersBounds:u.any},{name:"segment-distances",type:l.bidirectionalSizes,triggersBounds:u.any},{name:"segment-weights",type:l.numbers,triggersBounds:u.any},{name:"taxi-turn",type:l.bidirectionalSizeMaybePercent,triggersBounds:u.any},{name:"taxi-turn-min-distance",type:l.size,triggersBounds:u.any},{name:"taxi-direction",type:l.axisDirection,triggersBounds:u.any},{name:"edge-distances",type:l.edgeDistances,triggersBounds:u.any},{name:"arrow-scale",type:l.positiveNumber,triggersBounds:u.any},{name:"loop-direction",type:l.angle,triggersBounds:u.any},{name:"loop-sweep",type:l.angle,triggersBounds:u.any},{name:"source-distance-from-node",type:l.size,triggersBounds:u.any},{name:"target-distance-from-node",type:l.size,triggersBounds:u.any}],G=[{name:"ghost",type:l.bool,triggersBounds:u.any},{name:"ghost-offset-x",type:l.bidirectionalSize,triggersBounds:u.any},{name:"ghost-offset-y",type:l.bidirectionalSize,triggersBounds:u.any},{name:"ghost-opacity",type:l.zeroOneNumber}],I=[{name:"selection-box-color",type:l.color},{name:"selection-box-opacity",type:l.zeroOneNumber},{name:"selection-box-border-color",type:l.color},{name:"selection-box-border-width",type:l.size},{name:"active-bg-color",type:l.color},{name:"active-bg-opacity",type:l.zeroOneNumber},{name:"active-bg-size",type:l.size},{name:"outside-texture-bg-color",type:l.color},{name:"outside-texture-bg-opacity",type:l.zeroOneNumber}],X=[];It.pieBackgroundN=16,X.push({name:"pie-size",type:l.sizeMaybePercent});for(var B=1;B<=It.pieBackgroundN;B++)X.push({name:"pie-"+B+"-background-color",type:l.color}),X.push({name:"pie-"+B+"-background-size",type:l.percent}),X.push({name:"pie-"+B+"-background-opacity",type:l.zeroOneNumber});var re=[],K=It.arrowPrefixes=["source","mid-source","target","mid-target"];[{name:"arrow-shape",type:l.arrowShape,triggersBounds:u.any},{name:"arrow-color",type:l.color},{name:"arrow-fill",type:l.arrowFill},{name:"arrow-width",type:l.arrowWidth}].forEach(function(xe){K.forEach(function(Le){var Se=Le+"-"+xe.name,Oe=xe.type,Fe=xe.triggersBounds;re.push({name:Se,type:Oe,triggersBounds:Fe})})},{});var W=It.properties=[].concat(y,b,p,g,m,G,c,d,v,f,h,M,L,w,k,X,D,F,re,I),ae=It.propertyGroups={behavior:y,transition:b,visibility:p,overlay:g,underlay:m,ghost:G,commonLabel:c,labelDimensions:d,mainLabel:v,sourceLabel:f,targetLabel:h,nodeBody:M,nodeBorder:L,nodeOutline:w,backgroundImage:k,pie:X,compound:D,edgeLine:F,edgeArrow:re,core:I},ue=It.propertyGroupNames={},me=It.propertyGroupKeys=Object.keys(ae);me.forEach(function(xe){ue[xe]=ae[xe].map(function(Le){return Le.name}),ae[xe].forEach(function(Le){return Le.groupKey=xe})});var ie=It.aliases=[{name:"content",pointsTo:"label"},{name:"control-point-distance",pointsTo:"control-point-distances"},{name:"control-point-weight",pointsTo:"control-point-weights"},{name:"edge-text-rotation",pointsTo:"text-rotation"},{name:"padding-left",pointsTo:"padding"},{name:"padding-right",pointsTo:"padding"},{name:"padding-top",pointsTo:"padding"},{name:"padding-bottom",pointsTo:"padding"}];It.propertyNames=W.map(function(xe){return xe.name});for(var ge=0;ge<W.length;ge++){var Ee=W[ge];W[Ee.name]=Ee}for(var Ce=0;Ce<ie.length;Ce++){var we=ie[Ce],De=W[we.pointsTo],oe={name:we.name,alias:!0,pointsTo:De};W.push(oe),W[we.name]=oe}})(),It.getDefaultProperty=function(t){return this.getDefaultProperties()[t]},It.getDefaultProperties=function(){var t=this._private;if(t.defaultProperties!=null)return t.defaultProperties;for(var e=He({"selection-box-color":"#ddd","selection-box-opacity":.65,"selection-box-border-color":"#aaa","selection-box-border-width":1,"active-bg-color":"black","active-bg-opacity":.15,"active-bg-size":30,"outside-texture-bg-color":"#000","outside-texture-bg-opacity":.125,events:"yes","text-events":"no","text-valign":"top","text-halign":"center","text-justification":"auto","line-height":1,color:"#000","text-outline-color":"#000","text-outline-width":0,"text-outline-opacity":1,"text-opacity":1,"text-decoration":"none","text-transform":"none","text-wrap":"none","text-overflow-wrap":"whitespace","text-max-width":9999,"text-background-color":"#000","text-background-opacity":0,"text-background-shape":"rectangle","text-background-padding":0,"text-border-opacity":0,"text-border-width":0,"text-border-style":"solid","text-border-color":"#000","font-family":"Helvetica Neue, Helvetica, sans-serif","font-style":"normal","font-weight":"normal","font-size":16,"min-zoomed-font-size":0,"text-rotation":"none","source-text-rotation":"none","target-text-rotation":"none",visibility:"visible",display:"element",opacity:1,"z-compound-depth":"auto","z-index-compare":"auto","z-index":0,label:"","text-margin-x":0,"text-margin-y":0,"source-label":"","source-text-offset":0,"source-text-margin-x":0,"source-text-margin-y":0,"target-label":"","target-text-offset":0,"target-text-margin-x":0,"target-text-margin-y":0,"overlay-opacity":0,"overlay-color":"#000","overlay-padding":10,"overlay-shape":"round-rectangle","underlay-opacity":0,"underlay-color":"#000","underlay-padding":10,"underlay-shape":"round-rectangle","transition-property":"none","transition-duration":0,"transition-delay":0,"transition-timing-function":"linear","background-blacken":0,"background-color":"#999","background-fill":"solid","background-opacity":1,"background-image":"none","background-image-crossorigin":"anonymous","background-image-opacity":1,"background-image-containment":"inside","background-image-smoothing":"yes","background-position-x":"50%","background-position-y":"50%","background-offset-x":0,"background-offset-y":0,"background-width-relative-to":"include-padding","background-height-relative-to":"include-padding","background-repeat":"no-repeat","background-fit":"none","background-clip":"node","background-width":"auto","background-height":"auto","border-color":"#000","border-opacity":1,"border-width":0,"border-style":"solid","outline-color":"#999","outline-opacity":1,"outline-width":0,"outline-offset":0,"outline-style":"solid",height:30,width:30,shape:"ellipse","shape-polygon-points":"-1, -1, 1, -1, 1, 1, -1, 1","bounds-expansion":0,"background-gradient-direction":"to-bottom","background-gradient-stop-colors":"#999","background-gradient-stop-positions":"0%",ghost:"no","ghost-offset-y":0,"ghost-offset-x":0,"ghost-opacity":0,padding:0,"padding-relative-to":"width",position:"origin","compound-sizing-wrt-labels":"include","min-width":0,"min-width-bias-left":0,"min-width-bias-right":0,"min-height":0,"min-height-bias-top":0,"min-height-bias-bottom":0},{"pie-size":"100%"},[{name:"pie-{{i}}-background-color",value:"black"},{name:"pie-{{i}}-background-size",value:"0%"},{name:"pie-{{i}}-background-opacity",value:1}].reduce(function(u,l){for(var v=1;v<=It.pieBackgroundN;v++){var f=l.name.replace("{{i}}",v),h=l.value;u[f]=h}return u},{}),{"line-style":"solid","line-color":"#999","line-fill":"solid","line-cap":"butt","line-opacity":1,"line-gradient-stop-colors":"#999","line-gradient-stop-positions":"0%","control-point-step-size":40,"control-point-weights":.5,"segment-weights":.5,"segment-distances":20,"taxi-turn":"50%","taxi-turn-min-distance":10,"taxi-direction":"auto","edge-distances":"intersection","curve-style":"haystack","haystack-radius":0,"arrow-scale":1,"loop-direction":"-45deg","loop-sweep":"-90deg","source-distance-from-node":0,"target-distance-from-node":0,"source-endpoint":"outside-to-node","target-endpoint":"outside-to-node","line-dash-pattern":[6,3],"line-dash-offset":0},[{name:"arrow-shape",value:"none"},{name:"arrow-color",value:"#999"},{name:"arrow-fill",value:"filled"},{name:"arrow-width",value:1}].reduce(function(u,l){return It.arrowPrefixes.forEach(function(v){var f=v+"-"+l.name,h=l.value;u[f]=h}),u},{})),r={},a=0;a<this.properties.length;a++){var n=this.properties[a];if(!n.pointsTo){var i=n.name,o=e[i],s=this.parse(i,o);r[i]=s}}return t.defaultProperties=r,t.defaultProperties},It.addDefaultStylesheet=function(){this.selector(":parent").css({shape:"rectangle",padding:10,"background-color":"#eee","border-color":"#ccc","border-width":1}).selector("edge").css({width:3}).selector(":loop").css({"curve-style":"bezier"}).selector("edge:compound").css({"curve-style":"bezier","source-endpoint":"outside-to-line","target-endpoint":"outside-to-line"}).selector(":selected").css({"background-color":"#0169D9","line-color":"#0169D9","source-arrow-color":"#0169D9","target-arrow-color":"#0169D9","mid-source-arrow-color":"#0169D9","mid-target-arrow-color":"#0169D9"}).selector(":parent:selected").css({"background-color":"#CCE1F9","border-color":"#aec8e5"}).selector(":active").css({"overlay-color":"black","overlay-padding":10,"overlay-opacity":.25}),this.defaultLength=this.length};var Un={};Un.parse=function(t,e,r,a){var n=this;if(H(e))return n.parseImplWarn(t,e,r,a);var i=a==="mapping"||a===!0||a===!1||a==null?"dontcare":a,o=r?"t":"f",s=""+e,u=fo(t,s,o,i),l=n.propCache=n.propCache||[],v;return(v=l[u])||(v=l[u]=n.parseImplWarn(t,e,r,a)),(r||a==="mapping")&&(v=lr(v),v&&(v.value=lr(v.value))),v},Un.parseImplWarn=function(t,e,r,a){var n=this.parseImpl(t,e,r,a);return!n&&e!=null&&ht("The style property `".concat(t,": ").concat(e,"` is invalid")),n&&(n.name==="width"||n.name==="height")&&e==="label"&&ht("The style value of `label` is deprecated for `"+n.name+"`"),n},Un.parseImpl=function(t,e,r,a){var n=this;t=tt(t);var i=n.properties[t],o=e,s=n.types;if(!i||e===void 0)return null;i.alias&&(i=i.pointsTo,t=i.name);var u=ee(e);u&&(e=e.trim());var l=i.type;if(!l)return null;if(r&&(e===""||e===null))return{name:t,value:e,bypass:!0,deleteBypass:!0};if(H(e))return{name:t,value:e,strValue:"fn",mapped:s.fn,bypass:r};var v,f;if(!(!u||a||e.length<7||e[1]!=="a")){if(e.length>=7&&e[0]==="d"&&(v=new RegExp(s.data.regex).exec(e))){if(r)return!1;var h=s.data;return{name:t,value:v,strValue:""+e,mapped:h,field:v[1],bypass:r}}else if(e.length>=10&&e[0]==="m"&&(f=new RegExp(s.mapData.regex).exec(e))){if(r||l.multiple)return!1;var d=s.mapData;if(!(l.color||l.number))return!1;var c=this.parse(t,f[4]);if(!c||c.mapped)return!1;var y=this.parse(t,f[5]);if(!y||y.mapped)return!1;if(c.pfValue===y.pfValue||c.strValue===y.strValue)return ht("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+c.strValue+"`"),this.parse(t,c.strValue);if(l.color){var p=c.value,g=y.value,m=p[0]===g[0]&&p[1]===g[1]&&p[2]===g[2]&&(p[3]===g[3]||(p[3]==null||p[3]===1)&&(g[3]==null||g[3]===1));if(m)return!1}return{name:t,value:f,strValue:""+e,mapped:d,field:f[1],fieldMin:parseFloat(f[2]),fieldMax:parseFloat(f[3]),valueMin:c.value,valueMax:y.value,bypass:r}}}if(l.multiple&&a!=="multiple"){var b;if(u?b=e.split(/\s+/):te(e)?b=e:b=[e],l.evenMultiple&&b.length%2!==0)return null;for(var E=[],M=[],L=[],w="",k=!1,D=0;D<b.length;D++){var F=n.parse(t,b[D],r,"multiple");k=k||ee(F.value),E.push(F.value),L.push(F.pfValue!=null?F.pfValue:F.value),M.push(F.units),w+=(D>0?" ":"")+F.strValue}return l.validate&&!l.validate(E,M)?null:l.singleEnum&&k?E.length===1&&ee(E[0])?{name:t,value:E[0],strValue:E[0],bypass:r}:null:{name:t,value:E,pfValue:L,strValue:w,bypass:r,units:M}}var G=function(){for(var Le=0;Le<l.enums.length;Le++){var Se=l.enums[Le];if(Se===e)return{name:t,value:e,strValue:""+e,bypass:r}}return null};if(l.number){var I,X="px";if(l.units&&(I=l.units),l.implicitUnits&&(X=l.implicitUnits),!l.unitless)if(u){var B="px|em"+(l.allowPercent?"|\\%":"");I&&(B=I);var re=e.match("^("+gt+")("+B+")?$");re&&(e=re[1],I=re[2]||X)}else(!I||l.implicitUnits)&&(I=X);if(e=parseFloat(e),isNaN(e)&&l.enums===void 0)return null;if(isNaN(e)&&l.enums!==void 0)return e=o,G();if(l.integer&&!q(e)||l.min!==void 0&&(e<l.min||l.strictMin&&e===l.min)||l.max!==void 0&&(e>l.max||l.strictMax&&e===l.max))return null;var K={name:t,value:e,strValue:""+e+(I||""),units:I,bypass:r};return l.unitless||I!=="px"&&I!=="em"?K.pfValue=e:K.pfValue=I==="px"||!I?e:this.getEmSizeInPixels()*e,(I==="ms"||I==="s")&&(K.pfValue=I==="ms"?e:1e3*e),(I==="deg"||I==="rad")&&(K.pfValue=I==="rad"?e:yv(e)),I==="%"&&(K.pfValue=e/100),K}else if(l.propList){var W=[],ae=""+e;if(ae!=="none"){for(var ue=ae.split(/\s*,\s*|\s+/),me=0;me<ue.length;me++){var ie=ue[me].trim();n.properties[ie]?W.push(ie):ht("`"+ie+"` is not a valid property name")}if(W.length===0)return null}return{name:t,value:W,strValue:W.length===0?"none":W.join(" "),bypass:r}}else if(l.color){var ge=eu(e);return ge?{name:t,value:ge,pfValue:ge,strValue:"rgb("+ge[0]+","+ge[1]+","+ge[2]+")",bypass:r}:null}else if(l.regex||l.regexes){if(l.enums){var Ee=G();if(Ee)return Ee}for(var Ce=l.regexes?l.regexes:[l.regex],we=0;we<Ce.length;we++){var De=new RegExp(Ce[we]),oe=De.exec(e);if(oe)return{name:t,value:l.singleRegexMatchValue?oe[1]:oe,strValue:""+e,bypass:r}}return null}else return l.string?{name:t,value:""+e,strValue:""+e,bypass:r}:l.enums?G():null};var Gt=function t(e){if(!(this instanceof t))return new t(e);if(!Ye(e)){xt("A style must have a core reference");return}this._private={cy:e,coreStyle:{}},this.length=0,this.resetToDefault()},zt=Gt.prototype;zt.instanceString=function(){return"style"},zt.clear=function(){for(var t=this._private,e=t.cy,r=e.elements(),a=0;a<this.length;a++)this[a]=void 0;return this.length=0,t.contextStyles={},t.propDiffs={},this.cleanElements(r,!0),r.forEach(function(n){var i=n[0]._private;i.styleDirty=!0,i.appliedInitStyle=!1}),this},zt.resetToDefault=function(){return this.clear(),this.addDefaultStylesheet(),this},zt.core=function(t){return this._private.coreStyle[t]||this.getDefaultProperty(t)},zt.selector=function(t){var e=t==="core"?null:new Sr(t),r=this.length++;return this[r]={selector:e,properties:[],mappedProperties:[],index:r},this},zt.css=function(){var t=this,e=arguments;if(e.length===1)for(var r=e[0],a=0;a<t.properties.length;a++){var n=t.properties[a],i=r[n.name];i===void 0&&(i=r[yt(n.name)]),i!==void 0&&this.cssRule(n.name,i)}else e.length===2&&this.cssRule(e[0],e[1]);return this},zt.style=zt.css,zt.cssRule=function(t,e){var r=this.parse(t,e);if(r){var a=this.length-1;this[a].properties.push(r),this[a].properties[r.name]=r,r.name.match(/pie-(\d+)-background-size/)&&r.value&&(this._private.hasPie=!0),r.mapped&&this[a].mappedProperties.push(r);var n=!this[a].selector;n&&(this._private.coreStyle[r.name]=r)}return this},zt.append=function(t){return at(t)?t.appendToStyle(this):te(t)?this.appendFromJson(t):ee(t)&&this.appendFromString(t),this},Gt.fromJson=function(t,e){var r=new Gt(t);return r.fromJson(e),r},Gt.fromString=function(t,e){return new Gt(t).fromString(e)},[Ft,qa,Ri,vr,$n,ki,It,Un].forEach(function(t){He(zt,t)}),Gt.types=zt.types,Gt.properties=zt.properties,Gt.propertyGroups=zt.propertyGroups,Gt.propertyGroupNames=zt.propertyGroupNames,Gt.propertyGroupKeys=zt.propertyGroupKeys;var Gd={style:function(e){if(e){var r=this.setStyle(e);r.update()}return this._private.style},setStyle:function(e){var r=this._private;return at(e)?r.style=e.generateStyle(this):te(e)?r.style=Gt.fromJson(this,e):ee(e)?r.style=Gt.fromString(this,e):r.style=Gt(this),r.style},updateStyle:function(){this.mutableElements().updateStyle()}},zd="single",$r={autolock:function(e){if(e!==void 0)this._private.autolock=!!e;else return this._private.autolock;return this},autoungrabify:function(e){if(e!==void 0)this._private.autoungrabify=!!e;else return this._private.autoungrabify;return this},autounselectify:function(e){if(e!==void 0)this._private.autounselectify=!!e;else return this._private.autounselectify;return this},selectionType:function(e){var r=this._private;if(r.selectionType==null&&(r.selectionType=zd),e!==void 0)(e==="additive"||e==="single")&&(r.selectionType=e);else return r.selectionType;return this},panningEnabled:function(e){if(e!==void 0)this._private.panningEnabled=!!e;else return this._private.panningEnabled;return this},userPanningEnabled:function(e){if(e!==void 0)this._private.userPanningEnabled=!!e;else return this._private.userPanningEnabled;return this},zoomingEnabled:function(e){if(e!==void 0)this._private.zoomingEnabled=!!e;else return this._private.zoomingEnabled;return this},userZoomingEnabled:function(e){if(e!==void 0)this._private.userZoomingEnabled=!!e;else return this._private.userZoomingEnabled;return this},boxSelectionEnabled:function(e){if(e!==void 0)this._private.boxSelectionEnabled=!!e;else return this._private.boxSelectionEnabled;return this},pan:function(){var e=arguments,r=this._private.pan,a,n,i,o,s;switch(e.length){case 0:return r;case 1:if(ee(e[0]))return a=e[0],r[a];if(S(e[0])){if(!this._private.panningEnabled)return this;i=e[0],o=i.x,s=i.y,R(o)&&(r.x=o),R(s)&&(r.y=s),this.emit("pan viewport")}break;case 2:if(!this._private.panningEnabled)return this;a=e[0],n=e[1],(a==="x"||a==="y")&&R(n)&&(r[a]=n),this.emit("pan viewport");break}return this.notify("viewport"),this},panBy:function(e,r){var a=arguments,n=this._private.pan,i,o,s,u,l;if(!this._private.panningEnabled)return this;switch(a.length){case 1:S(e)&&(s=a[0],u=s.x,l=s.y,R(u)&&(n.x+=u),R(l)&&(n.y+=l),this.emit("pan viewport"));break;case 2:i=e,o=r,(i==="x"||i==="y")&&R(o)&&(n[i]+=o),this.emit("pan viewport");break}return this.notify("viewport"),this},fit:function(e,r){var a=this.getFitViewport(e,r);if(a){var n=this._private;n.zoom=a.zoom,n.pan=a.pan,this.emit("pan zoom viewport"),this.notify("viewport")}return this},getFitViewport:function(e,r){if(R(e)&&r===void 0&&(r=e,e=void 0),!(!this._private.panningEnabled||!this._private.zoomingEnabled)){var a;if(ee(e)){var n=e;e=this.$(n)}else if(Ze(e)){var i=e;a={x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2},a.w=a.x2-a.x1,a.h=a.y2-a.y1}else pe(e)||(e=this.mutableElements());if(!(pe(e)&&e.empty())){a=a||e.boundingBox();var o=this.width(),s=this.height(),u;if(r=R(r)?r:0,!isNaN(o)&&!isNaN(s)&&o>0&&s>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0){u=Math.min((o-2*r)/a.w,(s-2*r)/a.h),u=u>this._private.maxZoom?this._private.maxZoom:u,u=u<this._private.minZoom?this._private.minZoom:u;var l={x:(o-u*(a.x1+a.x2))/2,y:(s-u*(a.y1+a.y2))/2};return{zoom:u,pan:l}}}}},zoomRange:function(e,r){var a=this._private;if(r==null){var n=e;e=n.min,r=n.max}return R(e)&&R(r)&&e<=r?(a.minZoom=e,a.maxZoom=r):R(e)&&r===void 0&&e<=a.maxZoom?a.minZoom=e:R(r)&&e===void 0&&r>=a.minZoom&&(a.maxZoom=r),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var r=this._private,a=r.pan,n=r.zoom,i,o,s=!1;if(r.zoomingEnabled||(s=!0),R(e)?o=e:S(e)&&(o=e.level,e.position!=null?i=hn(e.position,n,a):e.renderedPosition!=null&&(i=e.renderedPosition),i!=null&&!r.panningEnabled&&(s=!0)),o=o>r.maxZoom?r.maxZoom:o,o=o<r.minZoom?r.minZoom:o,s||!R(o)||o===n||i!=null&&(!R(i.x)||!R(i.y)))return null;if(i!=null){var u=a,l=n,v=o,f={x:-v/l*(i.x-u.x)+i.x,y:-v/l*(i.y-u.y)+i.y};return{zoomed:!0,panned:!0,zoom:v,pan:f}}else return{zoomed:!0,panned:!1,zoom:o,pan:a}},zoom:function(e){if(e===void 0)return this._private.zoom;var r=this.getZoomedViewport(e),a=this._private;return r==null||!r.zoomed?this:(a.zoom=r.zoom,r.panned&&(a.pan.x=r.pan.x,a.pan.y=r.pan.y),this.emit("zoom"+(r.panned?" pan":"")+" viewport"),this.notify("viewport"),this)},viewport:function(e){var r=this._private,a=!0,n=!0,i=[],o=!1,s=!1;if(!e)return this;if(R(e.zoom)||(a=!1),S(e.pan)||(n=!1),!a&&!n)return this;if(a){var u=e.zoom;u<r.minZoom||u>r.maxZoom||!r.zoomingEnabled?o=!0:(r.zoom=u,i.push("zoom"))}if(n&&(!o||!e.cancelOnFailedZoom)&&r.panningEnabled){var l=e.pan;R(l.x)&&(r.pan.x=l.x,s=!1),R(l.y)&&(r.pan.y=l.y,s=!1),s||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(e){var r=this.getCenterPan(e);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,r){if(this._private.panningEnabled){if(ee(e)){var a=e;e=this.mutableElements().filter(a)}else pe(e)||(e=this.mutableElements());if(e.length!==0){var n=e.boundingBox(),i=this.width(),o=this.height();r=r===void 0?this._private.zoom:r;var s={x:(i-r*(n.x1+n.x2))/2,y:(o-r*(n.y1+n.y2))/2};return s}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,r=e.container,a=this;return e.sizeCache=e.sizeCache||(r?function(){var n=a.window().getComputedStyle(r),i=function(s){return parseFloat(n.getPropertyValue(s))};return{width:r.clientWidth-i("padding-left")-i("padding-right"),height:r.clientHeight-i("padding-top")-i("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,r=this._private.zoom,a=this.renderedExtent(),n={x1:(a.x1-e.x)/r,x2:(a.x2-e.x)/r,y1:(a.y1-e.y)/r,y2:(a.y2-e.y)/r};return n.w=n.x2-n.x1,n.h=n.y2-n.y1,n},renderedExtent:function(){var e=this.width(),r=this.height();return{x1:0,y1:0,x2:e,y2:r,w:e,h:r}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};$r.centre=$r.center,$r.autolockNodes=$r.autolock,$r.autoungrabifyNodes=$r.autoungrabify;var Ka={data:ct.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:ct.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:ct.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ct.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Ka.attr=Ka.data,Ka.removeAttr=Ka.removeData;var Za=function(e){var r=this;e=He({},e);var a=e.container;a&&!he(a)&&he(a[0])&&(a=a[0]);var n=a?a._cyreg:null;n=n||{},n&&n.cy&&(n.cy.destroy(),n={});var i=n.readies=n.readies||[];a&&(a._cyreg=n),n.cy=r;var o=A!==void 0&&a!==void 0&&!e.headless,s=e;s.layout=He({name:o?"grid":"null"},s.layout),s.renderer=He({name:o?"canvas":"null"},s.renderer);var u=function(c,y,p){return y!==void 0?y:p!==void 0?p:c},l=this._private={container:a,ready:!1,options:s,elements:new Nt(this),listeners:[],aniEles:new Nt(this),data:s.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:u(!0,s.zoomingEnabled),userZoomingEnabled:u(!0,s.userZoomingEnabled),panningEnabled:u(!0,s.panningEnabled),userPanningEnabled:u(!0,s.userPanningEnabled),boxSelectionEnabled:u(!0,s.boxSelectionEnabled),autolock:u(!1,s.autolock,s.autolockNodes),autoungrabify:u(!1,s.autoungrabify,s.autoungrabifyNodes),autounselectify:u(!1,s.autounselectify),styleEnabled:s.styleEnabled===void 0?o:s.styleEnabled,zoom:R(s.zoom)?s.zoom:1,pan:{x:S(s.pan)&&R(s.pan.x)?s.pan.x:0,y:S(s.pan)&&R(s.pan.y)?s.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:u(250,s.multiClickDebounceTime)};this.createEmitter(),this.selectionType(s.selectionType),this.zoomRange({min:s.minZoom,max:s.maxZoom});var v=function(c,y){var p=c.some(nt);if(p)return ia.all(c).then(y);y(c)};l.styleEnabled&&r.setStyle([]);var f=He({},s,s.renderer);r.initRenderer(f);var h=function(c,y,p){r.notifications(!1);var g=r.mutableElements();g.length>0&&g.remove(),c!=null&&(S(c)||te(c))&&r.add(c),r.one("layoutready",function(b){r.notifications(!0),r.emit(b),r.one("load",y),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",p),r.emit("done")});var m=He({},r._private.options.layout);m.eles=r.elements(),r.layout(m).run()};v([s.style,s.elements],function(d){var c=d[0],y=d[1];l.styleEnabled&&r.style().append(c),h(y,function(){r.startAnimationLoop(),l.ready=!0,H(s.ready)&&r.on("ready",s.ready);for(var p=0;p<i.length;p++){var g=i[p];r.on("ready",g)}n&&(n.readies=[]),r.emit("ready")},s.done)})},_n=Za.prototype;He(_n,{instanceString:function(){return"core"},isReady:function(){return this._private.ready},destroyed:function(){return this._private.destroyed},ready:function(e){return this.isReady()?this.emitter().emit("ready",[],e):this.on("ready",e),this},destroy:function(){var e=this;if(!e.destroyed())return e.stopAnimationLoop(),e.destroyRenderer(),this.emit("destroy"),e._private.destroyed=!0,e},hasElementWithId:function(e){return this._private.elements.hasElementWithId(e)},getElementById:function(e){return this._private.elements.getElementById(e)},hasCompoundNodes:function(){return this._private.hasCompoundNodes},headless:function(){return this._private.renderer.isHeadless()},styleEnabled:function(){return this._private.styleEnabled},addToPool:function(e){return this._private.elements.merge(e),this},removeFromPool:function(e){return this._private.elements.unmerge(e),this},container:function(){return this._private.container||null},window:function(){var e=this._private.container;if(e==null)return A;var r=this._private.container.ownerDocument;return r===void 0||r==null?A:r.defaultView||A},mount:function(e){if(e!=null){var r=this,a=r._private,n=a.options;return!he(e)&&he(e[0])&&(e=e[0]),r.stopAnimationLoop(),r.destroyRenderer(),a.container=e,a.styleEnabled=!0,r.invalidateSize(),r.initRenderer(He({},n,n.renderer,{name:n.renderer.name==="null"?"canvas":n.renderer.name})),r.startAnimationLoop(),r.style(n.style),r.emit("mount"),r}},unmount:function(){var e=this;return e.stopAnimationLoop(),e.destroyRenderer(),e.initRenderer({name:"null"}),e.emit("unmount"),e},options:function(){return lr(this._private.options)},json:function(e){var r=this,a=r._private,n=r.mutableElements(),i=function(E){return r.getElementById(E.id())};if(S(e)){if(r.startBatch(),e.elements){var o={},s=function(E,M){for(var L=[],w=[],k=0;k<E.length;k++){var D=E[k];if(!D.data.id){ht("cy.json() cannot handle elements without an ID attribute");continue}var F=""+D.data.id,G=r.getElementById(F);o[F]=!0,G.length!==0?w.push({ele:G,json:D}):(M&&(D.group=M),L.push(D))}r.add(L);for(var I=0;I<w.length;I++){var X=w[I],B=X.ele,re=X.json;B.json(re)}};if(te(e.elements))s(e.elements);else for(var u=["nodes","edges"],l=0;l<u.length;l++){var v=u[l],f=e.elements[v];te(f)&&s(f,v)}var h=r.collection();n.filter(function(b){return!o[b.id()]}).forEach(function(b){b.isParent()?h.merge(b):b.remove()}),h.forEach(function(b){return b.children().move({parent:null})}),h.forEach(function(b){return i(b).remove()})}e.style&&r.style(e.style),e.zoom!=null&&e.zoom!==a.zoom&&r.zoom(e.zoom),e.pan&&(e.pan.x!==a.pan.x||e.pan.y!==a.pan.y)&&r.pan(e.pan),e.data&&r.data(e.data);for(var d=["minZoom","maxZoom","zoomingEnabled","userZoomingEnabled","panningEnabled","userPanningEnabled","boxSelectionEnabled","autolock","autoungrabify","autounselectify","multiClickDebounceTime"],c=0;c<d.length;c++){var y=d[c];e[y]!=null&&r[y](e[y])}return r.endBatch(),this}else{var p=!!e,g={};p?g.elements=this.elements().map(function(b){return b.json()}):(g.elements={},n.forEach(function(b){var E=b.group();g.elements[E]||(g.elements[E]=[]),g.elements[E].push(b.json())})),this._private.styleEnabled&&(g.style=r.style().json()),g.data=lr(r.data());var m=a.options;return g.zoomingEnabled=a.zoomingEnabled,g.userZoomingEnabled=a.userZoomingEnabled,g.zoom=a.zoom,g.minZoom=a.minZoom,g.maxZoom=a.maxZoom,g.panningEnabled=a.panningEnabled,g.userPanningEnabled=a.userPanningEnabled,g.pan=lr(a.pan),g.boxSelectionEnabled=a.boxSelectionEnabled,g.renderer=lr(m.renderer),g.hideEdgesOnViewport=m.hideEdgesOnViewport,g.textureOnViewport=m.textureOnViewport,g.wheelSensitivity=m.wheelSensitivity,g.motionBlur=m.motionBlur,g.multiClickDebounceTime=m.multiClickDebounceTime,g}}}),_n.$id=_n.getElementById,[Ad,Rd,Ys,Ii,zn,Pd,Mi,Vn,Gd,$r,Ka].forEach(function(t){He(_n,t)});var Vd={fit:!0,directed:!1,padding:30,circle:!1,grid:!1,spacingFactor:1.75,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,roots:void 0,depthSort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}},$d={maximal:!1,acyclic:!1},pa=function(e){return e.scratch("breadthfirst")},Hs=function(e,r){return e.scratch("breadthfirst",r)};function Xs(t){this.options=He({},Vd,$d,t)}Xs.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=a.nodes().filter(function(Ie){return!Ie.isParent()}),i=a,o=e.directed,s=e.acyclic||e.maximal||e.maximalAdjustments>0,u=Yt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),l;if(pe(e.roots))l=e.roots;else if(te(e.roots)){for(var v=[],f=0;f<e.roots.length;f++){var h=e.roots[f],d=r.getElementById(h);v.push(d)}l=r.collection(v)}else if(ee(e.roots))l=r.$(e.roots);else if(o)l=n.roots();else{var c=a.components();l=r.collection();for(var y=function(Me){var $e=c[Me],ze=$e.maxDegree(!1),Be=$e.filter(function(Ue){return Ue.degree(!1)===ze});l=l.add(Be)},p=0;p<c.length;p++)y(p)}var g=[],m={},b=function(Me,$e){g[$e]==null&&(g[$e]=[]);var ze=g[$e].length;g[$e].push(Me),Hs(Me,{index:ze,depth:$e})},E=function(Me,$e){var ze=pa(Me),Be=ze.depth,Ue=ze.index;g[Be][Ue]=null,b(Me,$e)};i.bfs({roots:l,directed:e.directed,visit:function(Me,$e,ze,Be,Ue){var rt=Me[0],je=rt.id();b(rt,Ue),m[je]=!0}});for(var M=[],L=0;L<n.length;L++){var w=n[L];m[w.id()]||M.push(w)}var k=function(Me){for(var $e=g[Me],ze=0;ze<$e.length;ze++){var Be=$e[ze];if(Be==null){$e.splice(ze,1),ze--;continue}Hs(Be,{depth:Me,index:ze})}},D=function(){for(var Me=0;Me<g.length;Me++)k(Me)},F=function(Me,$e){for(var ze=pa(Me),Be=Me.incomers().filter(function(O){return O.isNode()&&a.has(O)}),Ue=-1,rt=Me.id(),je=0;je<Be.length;je++){var We=Be[je],et=pa(We);Ue=Math.max(Ue,et.depth)}if(ze.depth<=Ue){if(!e.acyclic&&$e[rt])return null;var fe=Ue+1;return E(Me,fe),$e[rt]=fe,!0}return!1};if(o&&s){var G=[],I={},X=function(Me){return G.push(Me)},B=function(){return G.shift()};for(n.forEach(function(Ie){return G.push(Ie)});G.length>0;){var re=B(),K=F(re,I);if(K)re.outgoers().filter(function(Ie){return Ie.isNode()&&a.has(Ie)}).forEach(X);else if(K===null){ht("Detected double maximal shift for node `"+re.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}D();var W=0;if(e.avoidOverlap)for(var ae=0;ae<n.length;ae++){var ue=n[ae],me=ue.layoutDimensions(e),ie=me.w,ge=me.h;W=Math.max(W,ie,ge)}var Ee={},Ce=function(Me){if(Ee[Me.id()])return Ee[Me.id()];for(var $e=pa(Me).depth,ze=Me.neighborhood(),Be=0,Ue=0,rt=0;rt<ze.length;rt++){var je=ze[rt];if(!(je.isEdge()||je.isParent()||!n.has(je))){var We=pa(je);if(We!=null){var et=We.index,fe=We.depth;if(!(et==null||fe==null)){var O=g[fe].length;fe<$e&&(Be+=et/O,Ue++)}}}}return Ue=Math.max(1,Ue),Be=Be/Ue,Ue===0&&(Be=0),Ee[Me.id()]=Be,Be},we=function(Me,$e){var ze=Ce(Me),Be=Ce($e),Ue=ze-Be;return Ue===0?eo(Me.id(),$e.id()):Ue};e.depthSort!==void 0&&(we=e.depthSort);for(var De=0;De<g.length;De++)g[De].sort(we),k(De);for(var oe=[],xe=0;xe<M.length;xe++)oe.push(M[xe]);g.unshift(oe),D();for(var Le=0,Se=0;Se<g.length;Se++)Le=Math.max(g[Se].length,Le);var Oe={x:u.x1+u.w/2,y:u.x1+u.h/2},Fe=g.reduce(function(Ie,Me){return Math.max(Ie,Me.length)},0),Xe=function(Me){var $e=pa(Me),ze=$e.depth,Be=$e.index,Ue=g[ze].length,rt=Math.max(u.w/((e.grid?Fe:Ue)+1),W),je=Math.max(u.h/(g.length+1),W),We=Math.min(u.w/2/g.length,u.h/2/g.length);if(We=Math.max(We,W),e.circle){var fe=We*ze+We-(g.length>0&&g[0].length<=3?We/2:0),O=2*Math.PI/g[ze].length*Be;return ze===0&&g[0].length===1&&(fe=1),{x:Oe.x+fe*Math.cos(O),y:Oe.y+fe*Math.sin(O)}}else{var et={x:Oe.x+(Be+1-(Ue+1)/2)*rt,y:(ze+1)*je};return et}};return a.nodes().layoutPositions(this,e,Xe),this};var Ud={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function Ws(t){this.options=He({},Ud,t)}Ws.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,i=a.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));for(var o=Yt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},u=e.sweep===void 0?2*Math.PI-2*Math.PI/i.length:e.sweep,l=u/Math.max(1,i.length-1),v,f=0,h=0;h<i.length;h++){var d=i[h],c=d.layoutDimensions(e),y=c.w,p=c.h;f=Math.max(f,y,p)}if(R(e.radius)?v=e.radius:i.length<=1?v=0:v=Math.min(o.h,o.w)/2-f,i.length>1&&e.avoidOverlap){f*=1.75;var g=Math.cos(l)-Math.cos(0),m=Math.sin(l)-Math.sin(0),b=Math.sqrt(f*f/(g*g+m*m));v=Math.max(b,v)}var E=function(L,w){var k=e.startAngle+w*l*(n?1:-1),D=v*Math.cos(k),F=v*Math.sin(k),G={x:s.x+D,y:s.y+F};return G};return a.nodes().layoutPositions(this,e,E),this};var _d={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function qs(t){this.options=He({},_d,t)}qs.prototype.run=function(){for(var t=this.options,e=t,r=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=t.cy,n=e.eles,i=n.nodes().not(":parent"),o=Yt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},u=[],l=0,v=0;v<i.length;v++){var f=i[v],h=void 0;h=e.concentric(f),u.push({value:h,node:f}),f._private.scratch.concentric=h}i.updateStyle();for(var d=0;d<i.length;d++){var c=i[d],y=c.layoutDimensions(e);l=Math.max(l,y.w,y.h)}u.sort(function(Ie,Me){return Me.value-Ie.value});for(var p=e.levelWidth(i),g=[[]],m=g[0],b=0;b<u.length;b++){var E=u[b];if(m.length>0){var M=Math.abs(m[0].value-E.value);M>=p&&(m=[],g.push(m))}m.push(E)}var L=l+e.minNodeSpacing;if(!e.avoidOverlap){var w=g.length>0&&g[0].length>1,k=Math.min(o.w,o.h)/2-L,D=k/(g.length+w?1:0);L=Math.min(L,D)}for(var F=0,G=0;G<g.length;G++){var I=g[G],X=e.sweep===void 0?2*Math.PI-2*Math.PI/I.length:e.sweep,B=I.dTheta=X/Math.max(1,I.length-1);if(I.length>1&&e.avoidOverlap){var re=Math.cos(B)-Math.cos(0),K=Math.sin(B)-Math.sin(0),W=Math.sqrt(L*L/(re*re+K*K));F=Math.max(W,F)}I.r=F,F+=L}if(e.equidistant){for(var ae=0,ue=0,me=0;me<g.length;me++){var ie=g[me],ge=ie.r-ue;ae=Math.max(ae,ge)}ue=0;for(var Ee=0;Ee<g.length;Ee++){var Ce=g[Ee];Ee===0&&(ue=Ce.r),Ce.r=ue,ue+=ae}}for(var we={},De=0;De<g.length;De++)for(var oe=g[De],xe=oe.dTheta,Le=oe.r,Se=0;Se<oe.length;Se++){var Oe=oe[Se],Fe=e.startAngle+(r?1:-1)*xe*Se,Xe={x:s.x+Le*Math.cos(Fe),y:s.y+Le*Math.sin(Fe)};we[Oe.node.id()]=Xe}return n.nodes().layoutPositions(this,e,function(Ie){var Me=Ie.id();return we[Me]}),this};var Pi,Yd={ready:function(){},stop:function(){},animate:!0,animationEasing:void 0,animationDuration:void 0,animateFilter:function(e,r){return!0},animationThreshold:250,refresh:20,fit:!0,padding:30,boundingBox:void 0,nodeDimensionsIncludeLabels:!1,randomize:!1,componentSpacing:40,nodeRepulsion:function(e){return 2048},nodeOverlap:4,idealEdgeLength:function(e){return 32},edgeElasticity:function(e){return 32},nestingFactor:1.2,gravity:1,numIter:1e3,initialTemp:1e3,coolingFactor:.99,minTemp:1};function Yn(t){this.options=He({},Yd,t),this.options.layout=this;var e=this.options.eles.nodes(),r=this.options.eles.edges(),a=r.filter(function(n){var i=n.source().data("id"),o=n.target().data("id"),s=e.some(function(l){return l.data("id")===i}),u=e.some(function(l){return l.data("id")===o});return!s||!u});this.options.eles=this.options.eles.not(a)}Yn.prototype.run=function(){var t=this.options,e=t.cy,r=this;r.stopped=!1,(t.animate===!0||t.animate===!1)&&r.emit({type:"layoutstart",layout:r}),t.debug===!0?Pi=!0:Pi=!1;var a=Hd(e,r,t);Pi&&qd(a),t.randomize&&Kd(a);var n=gr(),i=function(){Zd(a,e,t),t.fit===!0&&e.fit(t.padding)},o=function(h){return!(r.stopped||h>=t.numIter||(Qd(a,t),a.temperature=a.temperature*t.coolingFactor,a.temperature<t.minTemp))},s=function(){if(t.animate===!0||t.animate===!1)i(),r.one("layoutstop",t.stop),r.emit({type:"layoutstop",layout:r});else{var h=t.eles.nodes(),d=Ks(a,t,h);h.layoutPositions(r,t,d)}},u=0,l=!0;if(t.animate===!0){var v=function f(){for(var h=0;l&&h<t.refresh;)l=o(u),u++,h++;if(!l)Qs(a,t),s();else{var d=gr();d-n>=t.animationThreshold&&i(),ln(f)}};v()}else{for(;l;)l=o(u),u++;Qs(a,t),s()}return this},Yn.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},Yn.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var Hd=function(e,r,a){for(var n=a.eles.edges(),i=a.eles.nodes(),o=Yt(a.boundingBox?a.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),s={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:n.size(),temperature:a.initialTemp,clientWidth:o.w,clientHeight:o.h,boundingBox:o},u=a.eles.components(),l={},v=0;v<u.length;v++)for(var f=u[v],h=0;h<f.length;h++){var d=f[h];l[d.id()]=v}for(var v=0;v<s.nodeSize;v++){var c=i[v],y=c.layoutDimensions(a),p={};p.isLocked=c.locked(),p.id=c.data("id"),p.parentId=c.data("parent"),p.cmptId=l[c.id()],p.children=[],p.positionX=c.position("x"),p.positionY=c.position("y"),p.offsetX=0,p.offsetY=0,p.height=y.w,p.width=y.h,p.maxX=p.positionX+p.width/2,p.minX=p.positionX-p.width/2,p.maxY=p.positionY+p.height/2,p.minY=p.positionY-p.height/2,p.padLeft=parseFloat(c.style("padding")),p.padRight=parseFloat(c.style("padding")),p.padTop=parseFloat(c.style("padding")),p.padBottom=parseFloat(c.style("padding")),p.nodeRepulsion=H(a.nodeRepulsion)?a.nodeRepulsion(c):a.nodeRepulsion,s.layoutNodes.push(p),s.idToIndex[p.id]=v}for(var g=[],m=0,b=-1,E=[],v=0;v<s.nodeSize;v++){var c=s.layoutNodes[v],M=c.parentId;M!=null?s.layoutNodes[s.idToIndex[M]].children.push(c.id):(g[++b]=c.id,E.push(c.id))}for(s.graphSet.push(E);m<=b;){var L=g[m++],w=s.idToIndex[L],d=s.layoutNodes[w],k=d.children;if(k.length>0){s.graphSet.push(k);for(var v=0;v<k.length;v++)g[++b]=k[v]}}for(var v=0;v<s.graphSet.length;v++)for(var D=s.graphSet[v],h=0;h<D.length;h++){var F=s.idToIndex[D[h]];s.indexToGraph[F]=v}for(var v=0;v<s.edgeSize;v++){var G=n[v],I={};I.id=G.data("id"),I.sourceId=G.data("source"),I.targetId=G.data("target");var X=H(a.idealEdgeLength)?a.idealEdgeLength(G):a.idealEdgeLength,B=H(a.edgeElasticity)?a.edgeElasticity(G):a.edgeElasticity,re=s.idToIndex[I.sourceId],K=s.idToIndex[I.targetId],W=s.indexToGraph[re],ae=s.indexToGraph[K];if(W!=ae){for(var ue=Xd(I.sourceId,I.targetId,s),me=s.graphSet[ue],ie=0,p=s.layoutNodes[re];me.indexOf(p.id)===-1;)p=s.layoutNodes[s.idToIndex[p.parentId]],ie++;for(p=s.layoutNodes[K];me.indexOf(p.id)===-1;)p=s.layoutNodes[s.idToIndex[p.parentId]],ie++;X*=ie*a.nestingFactor}I.idealLength=X,I.elasticity=B,s.layoutEdges.push(I)}return s},Xd=function(e,r,a){var n=Wd(e,r,0,a);return 2>n.count?0:n.graph},Wd=function t(e,r,a,n){var i=n.graphSet[a];if(-1<i.indexOf(e)&&-1<i.indexOf(r))return{count:2,graph:a};for(var o=0,s=0;s<i.length;s++){var u=i[s],l=n.idToIndex[u],v=n.layoutNodes[l].children;if(v.length!==0){var f=n.indexToGraph[n.idToIndex[v[0]]],h=t(e,r,f,n);if(h.count!==0)if(h.count===1){if(o++,o===2)break}else return h}}return{count:o,graph:a}},qd,Kd=function(e,r){for(var a=e.clientWidth,n=e.clientHeight,i=0;i<e.nodeSize;i++){var o=e.layoutNodes[i];o.children.length===0&&!o.isLocked&&(o.positionX=Math.random()*a,o.positionY=Math.random()*n)}},Ks=function(e,r,a){var n=e.boundingBox,i={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0};return r.boundingBox&&(a.forEach(function(o){var s=e.layoutNodes[e.idToIndex[o.data("id")]];i.x1=Math.min(i.x1,s.positionX),i.x2=Math.max(i.x2,s.positionX),i.y1=Math.min(i.y1,s.positionY),i.y2=Math.max(i.y2,s.positionY)}),i.w=i.x2-i.x1,i.h=i.y2-i.y1),function(o,s){var u=e.layoutNodes[e.idToIndex[o.data("id")]];if(r.boundingBox){var l=(u.positionX-i.x1)/i.w,v=(u.positionY-i.y1)/i.h;return{x:n.x1+l*n.w,y:n.y1+v*n.h}}else return{x:u.positionX,y:u.positionY}}},Zd=function(e,r,a){var n=a.layout,i=a.eles.nodes(),o=Ks(e,a,i);i.positions(o),e.ready!==!0&&(e.ready=!0,n.one("layoutready",a.ready),n.emit({type:"layoutready",layout:this}))},Qd=function(e,r,a){Jd(e,r),tg(e),rg(e,r),ag(e),ng(e)},Jd=function(e,r){for(var a=0;a<e.graphSet.length;a++)for(var n=e.graphSet[a],i=n.length,o=0;o<i;o++)for(var s=e.layoutNodes[e.idToIndex[n[o]]],u=o+1;u<i;u++){var l=e.layoutNodes[e.idToIndex[n[u]]];jd(s,l,e,r)}},Zs=function(e){return-e+2*e*Math.random()},jd=function(e,r,a,n){var i=e.cmptId,o=r.cmptId;if(!(i!==o&&!a.isCompound)){var s=r.positionX-e.positionX,u=r.positionY-e.positionY,l=1;s===0&&u===0&&(s=Zs(l),u=Zs(l));var v=eg(e,r,s,u);if(v>0)var f=n.nodeOverlap*v,h=Math.sqrt(s*s+u*u),d=f*s/h,c=f*u/h;else var y=Hn(e,s,u),p=Hn(r,-1*s,-1*u),g=p.x-y.x,m=p.y-y.y,b=g*g+m*m,h=Math.sqrt(b),f=(e.nodeRepulsion+r.nodeRepulsion)/b,d=f*g/h,c=f*m/h;e.isLocked||(e.offsetX-=d,e.offsetY-=c),r.isLocked||(r.offsetX+=d,r.offsetY+=c)}},eg=function(e,r,a,n){if(a>0)var i=e.maxX-r.minX;else var i=r.maxX-e.minX;if(n>0)var o=e.maxY-r.minY;else var o=r.maxY-e.minY;return i>=0&&o>=0?Math.sqrt(i*i+o*o):0},Hn=function(e,r,a){var n=e.positionX,i=e.positionY,o=e.height||1,s=e.width||1,u=a/r,l=o/s,v={};return r===0&&0<a||r===0&&0>a?(v.x=n,v.y=i+o/2,v):0<r&&-1*l<=u&&u<=l?(v.x=n+s/2,v.y=i+s*a/2/r,v):0>r&&-1*l<=u&&u<=l?(v.x=n-s/2,v.y=i-s*a/2/r,v):0<a&&(u<=-1*l||u>=l)?(v.x=n+o*r/2/a,v.y=i+o/2,v):(0>a&&(u<=-1*l||u>=l)&&(v.x=n-o*r/2/a,v.y=i-o/2),v)},tg=function(e,r){for(var a=0;a<e.edgeSize;a++){var n=e.layoutEdges[a],i=e.idToIndex[n.sourceId],o=e.layoutNodes[i],s=e.idToIndex[n.targetId],u=e.layoutNodes[s],l=u.positionX-o.positionX,v=u.positionY-o.positionY;if(!(l===0&&v===0)){var f=Hn(o,l,v),h=Hn(u,-1*l,-1*v),d=h.x-f.x,c=h.y-f.y,y=Math.sqrt(d*d+c*c),p=Math.pow(n.idealLength-y,2)/n.elasticity;if(y!==0)var g=p*d/y,m=p*c/y;else var g=0,m=0;o.isLocked||(o.offsetX+=g,o.offsetY+=m),u.isLocked||(u.offsetX-=g,u.offsetY-=m)}}},rg=function(e,r){if(r.gravity!==0)for(var a=1,n=0;n<e.graphSet.length;n++){var i=e.graphSet[n],o=i.length;if(n===0)var s=e.clientHeight/2,u=e.clientWidth/2;else var l=e.layoutNodes[e.idToIndex[i[0]]],v=e.layoutNodes[e.idToIndex[l.parentId]],s=v.positionX,u=v.positionY;for(var f=0;f<o;f++){var h=e.layoutNodes[e.idToIndex[i[f]]];if(!h.isLocked){var d=s-h.positionX,c=u-h.positionY,y=Math.sqrt(d*d+c*c);if(y>a){var p=r.gravity*d/y,g=r.gravity*c/y;h.offsetX+=p,h.offsetY+=g}}}}},ag=function(e,r){var a=[],n=0,i=-1;for(a.push.apply(a,e.graphSet[0]),i+=e.graphSet[0].length;n<=i;){var o=a[n++],s=e.idToIndex[o],u=e.layoutNodes[s],l=u.children;if(0<l.length&&!u.isLocked){for(var v=u.offsetX,f=u.offsetY,h=0;h<l.length;h++){var d=e.layoutNodes[e.idToIndex[l[h]]];d.offsetX+=v,d.offsetY+=f,a[++i]=l[h]}u.offsetX=0,u.offsetY=0}}},ng=function(e,r){for(var a=0;a<e.nodeSize;a++){var n=e.layoutNodes[a];0<n.children.length&&(n.maxX=void 0,n.minX=void 0,n.maxY=void 0,n.minY=void 0)}for(var a=0;a<e.nodeSize;a++){var n=e.layoutNodes[a];if(!(0<n.children.length||n.isLocked)){var i=ig(n.offsetX,n.offsetY,e.temperature);n.positionX+=i.x,n.positionY+=i.y,n.offsetX=0,n.offsetY=0,n.minX=n.positionX-n.width,n.maxX=n.positionX+n.width,n.minY=n.positionY-n.height,n.maxY=n.positionY+n.height,og(n,e)}}for(var a=0;a<e.nodeSize;a++){var n=e.layoutNodes[a];0<n.children.length&&!n.isLocked&&(n.positionX=(n.maxX+n.minX)/2,n.positionY=(n.maxY+n.minY)/2,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY)}},ig=function(e,r,a){var n=Math.sqrt(e*e+r*r);if(n>a)var i={x:a*e/n,y:a*r/n};else var i={x:e,y:r};return i},og=function t(e,r){var a=e.parentId;if(a!=null){var n=r.layoutNodes[r.idToIndex[a]],i=!1;if((n.maxX==null||e.maxX+n.padRight>n.maxX)&&(n.maxX=e.maxX+n.padRight,i=!0),(n.minX==null||e.minX-n.padLeft<n.minX)&&(n.minX=e.minX-n.padLeft,i=!0),(n.maxY==null||e.maxY+n.padBottom>n.maxY)&&(n.maxY=e.maxY+n.padBottom,i=!0),(n.minY==null||e.minY-n.padTop<n.minY)&&(n.minY=e.minY-n.padTop,i=!0),i)return t(n,r)}},Qs=function(e,r){for(var a=e.layoutNodes,n=[],i=0;i<a.length;i++){var o=a[i],s=o.cmptId,u=n[s]=n[s]||[];u.push(o)}for(var l=0,i=0;i<n.length;i++){var v=n[i];if(v){v.x1=1/0,v.x2=-1/0,v.y1=1/0,v.y2=-1/0;for(var f=0;f<v.length;f++){var h=v[f];v.x1=Math.min(v.x1,h.positionX-h.width/2),v.x2=Math.max(v.x2,h.positionX+h.width/2),v.y1=Math.min(v.y1,h.positionY-h.height/2),v.y2=Math.max(v.y2,h.positionY+h.height/2)}v.w=v.x2-v.x1,v.h=v.y2-v.y1,l+=v.w*v.h}}n.sort(function(m,b){return b.w*b.h-m.w*m.h});for(var d=0,c=0,y=0,p=0,g=Math.sqrt(l)*e.clientWidth/e.clientHeight,i=0;i<n.length;i++){var v=n[i];if(v){for(var f=0;f<v.length;f++){var h=v[f];h.isLocked||(h.positionX+=d-v.x1,h.positionY+=c-v.y1)}d+=v.w+r.componentSpacing,y+=v.w+r.componentSpacing,p=Math.max(p,v.h),y>g&&(c+=p+r.componentSpacing,d=0,y=0,p=0)}}},sg={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function Js(t){this.options=He({},sg,t)}Js.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=a.nodes().not(":parent");e.sort&&(n=n.sort(e.sort));var i=Yt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(i.h===0||i.w===0)a.nodes().layoutPositions(this,e,function(Ee){return{x:i.x1,y:i.y1}});else{var o=n.size(),s=Math.sqrt(o*i.h/i.w),u=Math.round(s),l=Math.round(i.w/i.h*s),v=function(Ce){if(Ce==null)return Math.min(u,l);var we=Math.min(u,l);we==u?u=Ce:l=Ce},f=function(Ce){if(Ce==null)return Math.max(u,l);var we=Math.max(u,l);we==u?u=Ce:l=Ce},h=e.rows,d=e.cols!=null?e.cols:e.columns;if(h!=null&&d!=null)u=h,l=d;else if(h!=null&&d==null)u=h,l=Math.ceil(o/u);else if(h==null&&d!=null)l=d,u=Math.ceil(o/l);else if(l*u>o){var c=v(),y=f();(c-1)*y>=o?v(c-1):(y-1)*c>=o&&f(y-1)}else for(;l*u<o;){var p=v(),g=f();(g+1)*p>=o?f(g+1):v(p+1)}var m=i.w/l,b=i.h/u;if(e.condense&&(m=0,b=0),e.avoidOverlap)for(var E=0;E<n.length;E++){var M=n[E],L=M._private.position;(L.x==null||L.y==null)&&(L.x=0,L.y=0);var w=M.layoutDimensions(e),k=e.avoidOverlapPadding,D=w.w+k,F=w.h+k;m=Math.max(m,D),b=Math.max(b,F)}for(var G={},I=function(Ce,we){return!!G["c-"+Ce+"-"+we]},X=function(Ce,we){G["c-"+Ce+"-"+we]=!0},B=0,re=0,K=function(){re++,re>=l&&(re=0,B++)},W={},ae=0;ae<n.length;ae++){var ue=n[ae],me=e.position(ue);if(me&&(me.row!==void 0||me.col!==void 0)){var ie={row:me.row,col:me.col};if(ie.col===void 0)for(ie.col=0;I(ie.row,ie.col);)ie.col++;else if(ie.row===void 0)for(ie.row=0;I(ie.row,ie.col);)ie.row++;W[ue.id()]=ie,X(ie.row,ie.col)}}var ge=function(Ce,we){var De,oe;if(Ce.locked()||Ce.isParent())return!1;var xe=W[Ce.id()];if(xe)De=xe.col*m+m/2+i.x1,oe=xe.row*b+b/2+i.y1;else{for(;I(B,re);)K();De=re*m+m/2+i.x1,oe=B*b+b/2+i.y1,X(B,re),K()}return{x:De,y:oe}};n.layoutPositions(this,e,ge)}return this};var lg={ready:function(){},stop:function(){}};function Bi(t){this.options=He({},lg,t)}Bi.prototype.run=function(){var t=this.options,e=t.eles,r=this;return t.cy,r.emit("layoutstart"),e.nodes().positions(function(){return{x:0,y:0}}),r.one("layoutready",t.ready),r.emit("layoutready"),r.one("layoutstop",t.stop),r.emit("layoutstop"),this},Bi.prototype.stop=function(){return this};var ug={positions:void 0,zoom:void 0,pan:void 0,fit:!0,padding:30,spacingFactor:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function js(t){this.options=He({},ug,t)}js.prototype.run=function(){var t=this.options,e=t.eles,r=e.nodes(),a=H(t.positions);function n(i){if(t.positions==null)return hv(i.position());if(a)return t.positions(i);var o=t.positions[i._private.data.id];return o??null}return r.layoutPositions(this,t,function(i,o){var s=n(i);return i.locked()||s==null?!1:s}),this};var vg={fit:!0,padding:30,boundingBox:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function el(t){this.options=He({},vg,t)}el.prototype.run=function(){var t=this.options,e=t.cy,r=t.eles,a=Yt(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),n=function(o,s){return{x:a.x1+Math.round(Math.random()*a.w),y:a.y1+Math.round(Math.random()*a.h)}};return r.nodes().layoutPositions(this,t,n),this};var fg=[{name:"breadthfirst",impl:Xs},{name:"circle",impl:Ws},{name:"concentric",impl:qs},{name:"cose",impl:Yn},{name:"grid",impl:Js},{name:"null",impl:Bi},{name:"preset",impl:js},{name:"random",impl:el}];function tl(t){this.options=t,this.notifications=0}var rl=function(){},al=function(){throw new Error("A headless instance can not render images")};tl.prototype={recalculateRenderedStyle:rl,notify:function(){this.notifications++},init:rl,isHeadless:function(){return!0},png:al,jpg:al};var Fi={};Fi.arrowShapeWidth=.3,Fi.registerArrowShapes=function(){var t=this.arrowShapes={},e=this,r=function(l,v,f,h,d,c,y){var p=d.x-f/2-y,g=d.x+f/2+y,m=d.y-f/2-y,b=d.y+f/2+y,E=p<=l&&l<=g&&m<=v&&v<=b;return E},a=function(l,v,f,h,d){var c=l*Math.cos(h)-v*Math.sin(h),y=l*Math.sin(h)+v*Math.cos(h),p=c*f,g=y*f,m=p+d.x,b=g+d.y;return{x:m,y:b}},n=function(l,v,f,h){for(var d=[],c=0;c<l.length;c+=2){var y=l[c],p=l[c+1];d.push(a(y,p,v,f,h))}return d},i=function(l){for(var v=[],f=0;f<l.length;f++){var h=l[f];v.push(h.x,h.y)}return v},o=function(l){return l.pstyle("width").pfValue*l.pstyle("arrow-scale").pfValue*2},s=function(l,v){ee(v)&&(v=t[v]),t[l]=He({name:l,points:[-.15,-.3,.15,-.3,.15,.3,-.15,.3],collide:function(h,d,c,y,p,g){var m=i(n(this.points,c+2*g,y,p)),b=Ht(h,d,m);return b},roughCollide:r,draw:function(h,d,c,y){var p=n(this.points,d,c,y);e.arrowShapeImpl("polygon")(h,p)},spacing:function(h){return 0},gap:o},v)};s("none",{collide:vn,roughCollide:vn,draw:oi,spacing:go,gap:go}),s("triangle",{points:[-.15,-.3,0,0,.15,-.3]}),s("arrow","triangle"),s("triangle-backcurve",{points:t.triangle.points,controlPoint:[0,-.15],roughCollide:r,draw:function(l,v,f,h,d){var c=n(this.points,v,f,h),y=this.controlPoint,p=a(y[0],y[1],v,f,h);e.arrowShapeImpl(this.name)(l,c,p)},gap:function(l){return o(l)*.8}}),s("triangle-tee",{points:[0,0,.15,-.3,-.15,-.3,0,0],pointsTee:[-.15,-.4,-.15,-.5,.15,-.5,.15,-.4],collide:function(l,v,f,h,d,c,y){var p=i(n(this.points,f+2*y,h,d)),g=i(n(this.pointsTee,f+2*y,h,d)),m=Ht(l,v,p)||Ht(l,v,g);return m},draw:function(l,v,f,h,d){var c=n(this.points,v,f,h),y=n(this.pointsTee,v,f,h);e.arrowShapeImpl(this.name)(l,c,y)}}),s("circle-triangle",{radius:.15,pointsTr:[0,-.15,.15,-.45,-.15,-.45,0,-.15],collide:function(l,v,f,h,d,c,y){var p=d,g=Math.pow(p.x-l,2)+Math.pow(p.y-v,2)<=Math.pow((f+2*y)*this.radius,2),m=i(n(this.points,f+2*y,h,d));return Ht(l,v,m)||g},draw:function(l,v,f,h,d){var c=n(this.pointsTr,v,f,h);e.arrowShapeImpl(this.name)(l,c,h.x,h.y,this.radius*v)},spacing:function(l){return e.getArrowWidth(l.pstyle("width").pfValue,l.pstyle("arrow-scale").value)*this.radius}}),s("triangle-cross",{points:[0,0,.15,-.3,-.15,-.3,0,0],baseCrossLinePts:[-.15,-.4,-.15,-.4,.15,-.4,.15,-.4],crossLinePts:function(l,v){var f=this.baseCrossLinePts.slice(),h=v/l,d=3,c=5;return f[d]=f[d]-h,f[c]=f[c]-h,f},collide:function(l,v,f,h,d,c,y){var p=i(n(this.points,f+2*y,h,d)),g=i(n(this.crossLinePts(f,c),f+2*y,h,d)),m=Ht(l,v,p)||Ht(l,v,g);return m},draw:function(l,v,f,h,d){var c=n(this.points,v,f,h),y=n(this.crossLinePts(v,d),v,f,h);e.arrowShapeImpl(this.name)(l,c,y)}}),s("vee",{points:[-.15,-.3,0,0,.15,-.3,0,-.15],gap:function(l){return o(l)*.525}}),s("circle",{radius:.15,collide:function(l,v,f,h,d,c,y){var p=d,g=Math.pow(p.x-l,2)+Math.pow(p.y-v,2)<=Math.pow((f+2*y)*this.radius,2);return g},draw:function(l,v,f,h,d){e.arrowShapeImpl(this.name)(l,h.x,h.y,this.radius*v)},spacing:function(l){return e.getArrowWidth(l.pstyle("width").pfValue,l.pstyle("arrow-scale").value)*this.radius}}),s("tee",{points:[-.15,0,-.15,-.1,.15,-.1,.15,0],spacing:function(l){return 1},gap:function(l){return 1}}),s("square",{points:[-.15,0,.15,0,.15,-.3,-.15,-.3]}),s("diamond",{points:[-.15,-.15,0,-.3,.15,-.15,0,0],gap:function(l){return l.pstyle("width").pfValue*l.pstyle("arrow-scale").value}}),s("chevron",{points:[0,0,-.15,-.15,-.1,-.2,0,-.1,.1,-.2,.15,-.15],gap:function(l){return .95*l.pstyle("width").pfValue*l.pstyle("arrow-scale").value}})};var Ur={};Ur.projectIntoViewport=function(t,e){var r=this.cy,a=this.findContainerClientCoords(),n=a[0],i=a[1],o=a[4],s=r.pan(),u=r.zoom(),l=((t-n)/o-s.x)/u,v=((e-i)/o-s.y)/u;return[l,v]},Ur.findContainerClientCoords=function(){if(this.containerBB)return this.containerBB;var t=this.container,e=t.getBoundingClientRect(),r=this.cy.window().getComputedStyle(t),a=function(g){return parseFloat(r.getPropertyValue(g))},n={left:a("padding-left"),right:a("padding-right"),top:a("padding-top"),bottom:a("padding-bottom")},i={left:a("border-left-width"),right:a("border-right-width"),top:a("border-top-width"),bottom:a("border-bottom-width")},o=t.clientWidth,s=t.clientHeight,u=n.left+n.right,l=n.top+n.bottom,v=i.left+i.right,f=e.width/(o+v),h=o-u,d=s-l,c=e.left+n.left+i.left,y=e.top+n.top+i.top;return this.containerBB=[c,y,h,d,f]},Ur.invalidateContainerClientCoordsCache=function(){this.containerBB=null},Ur.findNearestElement=function(t,e,r,a){return this.findNearestElements(t,e,r,a)[0]},Ur.findNearestElements=function(t,e,r,a){var n=this,i=this,o=i.getCachedZSortedEles(),s=[],u=i.cy.zoom(),l=i.cy.hasCompoundNodes(),v=(a?24:8)/u,f=(a?8:2)/u,h=(a?8:2)/u,d=1/0,c,y;r&&(o=o.interactive);function p(w,k){if(w.isNode()){if(y)return;y=w,s.push(w)}if(w.isEdge()&&(k==null||k<d))if(c){if(c.pstyle("z-compound-depth").value===w.pstyle("z-compound-depth").value&&c.pstyle("z-compound-depth").value===w.pstyle("z-compound-depth").value){for(var D=0;D<s.length;D++)if(s[D].isEdge()){s[D]=w,c=w,d=k??d;break}}}else s.push(w),c=w,d=k??d}function g(w){var k=w.outerWidth()+2*f,D=w.outerHeight()+2*f,F=k/2,G=D/2,I=w.position();if(I.x-F<=t&&t<=I.x+F&&I.y-G<=e&&e<=I.y+G){var X=i.nodeShapes[n.getNodeShape(w)];if(X.checkPoint(t,e,0,k,D,I.x,I.y))return p(w,0),!0}}function m(w){var k=w._private,D=k.rscratch,F=w.pstyle("width").pfValue,G=w.pstyle("arrow-scale").value,I=F/2+v,X=I*I,B=I*2,ae=k.source,ue=k.target,re;if(D.edgeType==="segments"||D.edgeType==="straight"||D.edgeType==="haystack"){for(var K=D.allpts,W=0;W+3<K.length;W+=2)if(Dv(t,e,K[W],K[W+1],K[W+2],K[W+3],B)&&X>(re=Nv(t,e,K[W],K[W+1],K[W+2],K[W+3])))return p(w,re),!0}else if(D.edgeType==="bezier"||D.edgeType==="multibezier"||D.edgeType==="self"||D.edgeType==="compound"){for(var K=D.allpts,W=0;W+5<D.allpts.length;W+=4)if(Sv(t,e,K[W],K[W+1],K[W+2],K[W+3],K[W+4],K[W+5],B)&&X>(re=Ov(t,e,K[W],K[W+1],K[W+2],K[W+3],K[W+4],K[W+5])))return p(w,re),!0}for(var ae=ae||k.source,ue=ue||k.target,me=n.getArrowWidth(F,G),ie=[{name:"source",x:D.arrowStartX,y:D.arrowStartY,angle:D.srcArrowAngle},{name:"target",x:D.arrowEndX,y:D.arrowEndY,angle:D.tgtArrowAngle},{name:"mid-source",x:D.midX,y:D.midY,angle:D.midsrcArrowAngle},{name:"mid-target",x:D.midX,y:D.midY,angle:D.midtgtArrowAngle}],W=0;W<ie.length;W++){var ge=ie[W],Ee=i.arrowShapes[w.pstyle(ge.name+"-arrow-shape").value],Ce=w.pstyle("width").pfValue;if(Ee.roughCollide(t,e,me,ge.angle,{x:ge.x,y:ge.y},Ce,v)&&Ee.collide(t,e,me,ge.angle,{x:ge.x,y:ge.y},Ce,v))return p(w),!0}l&&s.length>0&&(g(ae),g(ue))}function b(w,k,D){return er(w,k,D)}function E(w,k){var D=w._private,F=h,G;k?G=k+"-":G="",w.boundingBox();var I=D.labelBounds[k||"main"],X=w.pstyle(G+"label").value,B=w.pstyle("text-events").strValue==="yes";if(!(!B||!X)){var re=b(D.rscratch,"labelX",k),K=b(D.rscratch,"labelY",k),W=b(D.rscratch,"labelAngle",k),ae=w.pstyle(G+"text-margin-x").pfValue,ue=w.pstyle(G+"text-margin-y").pfValue,me=I.x1-F-ae,ie=I.x2+F-ae,ge=I.y1-F-ue,Ee=I.y2+F-ue;if(W){var Ce=Math.cos(W),we=Math.sin(W),De=function(Xe,Ie){return Xe=Xe-re,Ie=Ie-K,{x:Xe*Ce-Ie*we+re,y:Xe*we+Ie*Ce+K}},oe=De(me,ge),xe=De(me,Ee),Le=De(ie,ge),Se=De(ie,Ee),Oe=[oe.x+ae,oe.y+ue,Le.x+ae,Le.y+ue,Se.x+ae,Se.y+ue,xe.x+ae,xe.y+ue];if(Ht(t,e,Oe))return p(w),!0}else if(ta(I,t,e))return p(w),!0}}for(var M=o.length-1;M>=0;M--){var L=o[M];L.isNode()?g(L)||E(L):m(L)||E(L)||E(L,"source")||E(L,"target")}return s},Ur.getAllInBox=function(t,e,r,a){var n=this.getCachedZSortedEles().interactive,i=[],o=Math.min(t,r),s=Math.max(t,r),u=Math.min(e,a),l=Math.max(e,a);t=o,r=s,e=u,a=l;for(var v=Yt({x1:t,y1:e,x2:r,y2:a}),f=0;f<n.length;f++){var h=n[f];if(h.isNode()){var d=h,c=d.boundingBox({includeNodes:!0,includeEdges:!1,includeLabels:!1});vi(v,c)&&!Co(c,v)&&i.push(d)}else{var y=h,p=y._private,g=p.rscratch;if(g.startX!=null&&g.startY!=null&&!ta(v,g.startX,g.startY)||g.endX!=null&&g.endY!=null&&!ta(v,g.endX,g.endY))continue;if(g.edgeType==="bezier"||g.edgeType==="multibezier"||g.edgeType==="self"||g.edgeType==="compound"||g.edgeType==="segments"||g.edgeType==="haystack"){for(var m=p.rstyle.bezierPts||p.rstyle.linePts||p.rstyle.haystackPts,b=!0,E=0;E<m.length;E++)if(!Cv(v,m[E])){b=!1;break}b&&i.push(y)}else(g.edgeType==="haystack"||g.edgeType==="straight")&&i.push(y)}}return i};var Xn={};Xn.calculateArrowAngles=function(t){var e=t._private.rscratch,r=e.edgeType==="haystack",a=e.edgeType==="bezier",n=e.edgeType==="multibezier",i=e.edgeType==="segments",o=e.edgeType==="compound",s=e.edgeType==="self",u,l,v,f,h,d,g,m;if(r?(v=e.haystackPts[0],f=e.haystackPts[1],h=e.haystackPts[2],d=e.haystackPts[3]):(v=e.arrowStartX,f=e.arrowStartY,h=e.arrowEndX,d=e.arrowEndY),g=e.midX,m=e.midY,i)u=v-e.segpts[0],l=f-e.segpts[1];else if(n||o||s||a){var c=e.allpts,y=Lt(c[0],c[2],c[4],.1),p=Lt(c[1],c[3],c[5],.1);u=v-y,l=f-p}else u=v-g,l=f-m;e.srcArrowAngle=cn(u,l);var g=e.midX,m=e.midY;if(r&&(g=(v+h)/2,m=(f+d)/2),u=h-v,l=d-f,i){var c=e.allpts;if(c.length/2%2===0){var b=c.length/2,E=b-2;u=c[b]-c[E],l=c[b+1]-c[E+1]}else{var b=c.length/2-1,E=b-2,M=b+2;u=c[b]-c[E],l=c[b+1]-c[E+1]}}else if(n||o||s){var c=e.allpts,L=e.ctrlpts,w,k,D,F;if(L.length/2%2===0){var G=c.length/2-1,I=G+2,X=I+2;w=Lt(c[G],c[I],c[X],0),k=Lt(c[G+1],c[I+1],c[X+1],0),D=Lt(c[G],c[I],c[X],1e-4),F=Lt(c[G+1],c[I+1],c[X+1],1e-4)}else{var I=c.length/2-1,G=I-2,X=I+2;w=Lt(c[G],c[I],c[X],.4999),k=Lt(c[G+1],c[I+1],c[X+1],.4999),D=Lt(c[G],c[I],c[X],.5),F=Lt(c[G+1],c[I+1],c[X+1],.5)}u=D-w,l=F-k}if(e.midtgtArrowAngle=cn(u,l),e.midDispX=u,e.midDispY=l,u*=-1,l*=-1,i){var c=e.allpts;if(c.length/2%2!==0){var b=c.length/2-1,M=b+2;u=-(c[M]-c[b]),l=-(c[M+1]-c[b+1])}}if(e.midsrcArrowAngle=cn(u,l),i)u=h-e.segpts[e.segpts.length-2],l=d-e.segpts[e.segpts.length-1];else if(n||o||s||a){var c=e.allpts,B=c.length,y=Lt(c[B-6],c[B-4],c[B-2],.9),p=Lt(c[B-5],c[B-3],c[B-1],.9);u=h-y,l=d-p}else u=h-g,l=d-m;e.tgtArrowAngle=cn(u,l)},Xn.getArrowWidth=Xn.getArrowHeight=function(t,e){var r=this.arrowWidthCache=this.arrowWidthCache||{},a=r[t+", "+e];return a||(a=Math.max(Math.pow(t*13.37,.9),29)*e,r[t+", "+e]=a,a)};var Vt={};Vt.findMidptPtsEtc=function(t,e){var r=e.posPts,a=e.intersectionPts,n=e.vectorNormInverse,i,o=t.pstyle("source-endpoint"),s=t.pstyle("target-endpoint"),u=o.units!=null&&s.units!=null,l=function(M,L,w,k){var D=k-L,F=w-M,G=Math.sqrt(F*F+D*D);return{x:-D/G,y:F/G}},v=t.pstyle("edge-distances").value;switch(v){case"node-position":i=r;break;case"intersection":i=a;break;case"endpoints":{if(u){var f=this.manualEndptToPx(t.source()[0],o),h=x(f,2),d=h[0],c=h[1],y=this.manualEndptToPx(t.target()[0],s),p=x(y,2),g=p[0],m=p[1],b={x1:d,y1:c,x2:g,y2:m};n=l(d,c,g,m),i=b}else ht("Edge ".concat(t.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),i=a;break}}return{midptPts:i,vectorNormInverse:n}},Vt.findHaystackPoints=function(t){for(var e=0;e<t.length;e++){var r=t[e],a=r._private,n=a.rscratch;if(!n.haystack){var i=Math.random()*2*Math.PI;n.source={x:Math.cos(i),y:Math.sin(i)},i=Math.random()*2*Math.PI,n.target={x:Math.cos(i),y:Math.sin(i)}}var o=a.source,s=a.target,u=o.position(),l=s.position(),v=o.width(),f=s.width(),h=o.height(),d=s.height(),c=r.pstyle("haystack-radius").value,y=c/2;n.haystackPts=n.allpts=[n.source.x*v*y+u.x,n.source.y*h*y+u.y,n.target.x*f*y+l.x,n.target.y*d*y+l.y],n.midX=(n.allpts[0]+n.allpts[2])/2,n.midY=(n.allpts[1]+n.allpts[3])/2,n.edgeType="haystack",n.haystack=!0,this.storeEdgeProjections(r),this.calculateArrowAngles(r),this.recalculateEdgeLabelProjections(r),this.calculateLabelAngles(r)}},Vt.findSegmentsPoints=function(t,e){var r=t._private.rscratch,a=t.pstyle("segment-weights"),n=t.pstyle("segment-distances"),i=Math.min(a.pfValue.length,n.pfValue.length);r.edgeType="segments",r.segpts=[];for(var o=0;o<i;o++){var s=a.pfValue[o],u=n.pfValue[o],l=1-s,v=s,f=this.findMidptPtsEtc(t,e),h=f.midptPts,d=f.vectorNormInverse,c={x:h.x1*l+h.x2*v,y:h.y1*l+h.y2*v};r.segpts.push(c.x+d.x*u,c.y+d.y*u)}},Vt.findLoopPoints=function(t,e,r,a){var n=t._private.rscratch,i=e.dirCounts,o=e.srcPos,s=t.pstyle("control-point-distances"),u=s?s.pfValue[0]:void 0,l=t.pstyle("loop-direction").pfValue,v=t.pstyle("loop-sweep").pfValue,f=t.pstyle("control-point-step-size").pfValue;n.edgeType="self";var h=r,d=f;a&&(h=0,d=u);var c=l-Math.PI/2,y=c-v/2,p=c+v/2,g=l+"_"+v;h=i[g]===void 0?i[g]=0:++i[g],n.ctrlpts=[o.x+Math.cos(y)*1.4*d*(h/3+1),o.y+Math.sin(y)*1.4*d*(h/3+1),o.x+Math.cos(p)*1.4*d*(h/3+1),o.y+Math.sin(p)*1.4*d*(h/3+1)]},Vt.findCompoundLoopPoints=function(t,e,r,a){var n=t._private.rscratch;n.edgeType="compound";var i=e.srcPos,o=e.tgtPos,s=e.srcW,u=e.srcH,l=e.tgtW,v=e.tgtH,f=t.pstyle("control-point-step-size").pfValue,h=t.pstyle("control-point-distances"),d=h?h.pfValue[0]:void 0,c=r,y=f;a&&(c=0,y=d);var p=50,g={x:i.x-s/2,y:i.y-u/2},m={x:o.x-l/2,y:o.y-v/2},b={x:Math.min(g.x,m.x),y:Math.min(g.y,m.y)},E=.5,M=Math.max(E,Math.log(s*.01)),L=Math.max(E,Math.log(l*.01));n.ctrlpts=[b.x,b.y-(1+Math.pow(p,1.12)/100)*y*(c/3+1)*M,b.x-(1+Math.pow(p,1.12)/100)*y*(c/3+1)*L,b.y]},Vt.findStraightEdgePoints=function(t){t._private.rscratch.edgeType="straight"},Vt.findBezierPoints=function(t,e,r,a,n){var i=t._private.rscratch,o=t.pstyle("control-point-step-size").pfValue,s=t.pstyle("control-point-distances"),u=t.pstyle("control-point-weights"),l=s&&u?Math.min(s.value.length,u.value.length):1,v=s?s.pfValue[0]:void 0,f=u.value[0],h=a;i.edgeType=h?"multibezier":"bezier",i.ctrlpts=[];for(var d=0;d<l;d++){var c=(.5-e.eles.length/2+r)*o*(n?-1:1),y=void 0,p=wo(c);h&&(v=s?s.pfValue[d]:o,f=u.value[d]),a?y=v:y=v!==void 0?p*v:void 0;var g=y!==void 0?y:c,m=1-f,b=f,E=this.findMidptPtsEtc(t,e),M=E.midptPts,L=E.vectorNormInverse,w={x:M.x1*m+M.x2*b,y:M.y1*m+M.y2*b};i.ctrlpts.push(w.x+L.x*g,w.y+L.y*g)}},Vt.findTaxiPoints=function(t,e){var r=t._private.rscratch;r.edgeType="segments";var a="vertical",n="horizontal",i="leftward",o="rightward",s="downward",u="upward",l="auto",v=e.posPts,f=e.srcW,h=e.srcH,d=e.tgtW,c=e.tgtH,y=t.pstyle("edge-distances").value,p=y!=="node-position",g=t.pstyle("taxi-direction").value,m=g,b=t.pstyle("taxi-turn"),E=b.units==="%",M=b.pfValue,L=M<0,w=t.pstyle("taxi-turn-min-distance").pfValue,k=p?(f+d)/2:0,D=p?(h+c)/2:0,F=v.x2-v.x1,G=v.y2-v.y1,I=function(be,Ge){return be>0?Math.max(be-Ge,0):Math.min(be+Ge,0)},X=I(F,k),B=I(G,D),re=!1;m===l?g=Math.abs(X)>Math.abs(B)?n:a:m===u||m===s?(g=a,re=!0):(m===i||m===o)&&(g=n,re=!0);var K=g===a,W=K?B:X,ae=K?G:F,ue=wo(ae),me=!1;!(re&&(E||L))&&(m===s&&ae<0||m===u&&ae>0||m===i&&ae>0||m===o&&ae<0)&&(ue*=-1,W=ue*Math.abs(W),me=!0);var ie;if(E){var ge=M<0?1+M:M;ie=ge*W}else{var Ee=M<0?W:0;ie=Ee+M*ue}var Ce=function(be){return Math.abs(be)<w||Math.abs(be)>=Math.abs(W)},we=Ce(ie),De=Ce(Math.abs(W)-Math.abs(ie)),oe=we||De;if(oe&&!me)if(K){var xe=Math.abs(ae)<=h/2,Le=Math.abs(F)<=d/2;if(xe){var Se=(v.x1+v.x2)/2,Oe=v.y1,Fe=v.y2;r.segpts=[Se,Oe,Se,Fe]}else if(Le){var Xe=(v.y1+v.y2)/2,Ie=v.x1,Me=v.x2;r.segpts=[Ie,Xe,Me,Xe]}else r.segpts=[v.x1,v.y2]}else{var $e=Math.abs(ae)<=f/2,ze=Math.abs(G)<=c/2;if($e){var Be=(v.y1+v.y2)/2,Ue=v.x1,rt=v.x2;r.segpts=[Ue,Be,rt,Be]}else if(ze){var je=(v.x1+v.x2)/2,We=v.y1,et=v.y2;r.segpts=[je,We,je,et]}else r.segpts=[v.x2,v.y1]}else if(K){var fe=v.y1+ie+(p?h/2*ue:0),O=v.x1,se=v.x2;r.segpts=[O,fe,se,fe]}else{var Te=v.x1+ie+(p?f/2*ue:0),ce=v.y1,ye=v.y2;r.segpts=[Te,ce,Te,ye]}},Vt.tryToCorrectInvalidPoints=function(t,e){var r=t._private.rscratch;if(r.edgeType==="bezier"){var a=e.srcPos,n=e.tgtPos,i=e.srcW,o=e.srcH,s=e.tgtW,u=e.tgtH,l=e.srcShape,v=e.tgtShape,f=!R(r.startX)||!R(r.startY),h=!R(r.arrowStartX)||!R(r.arrowStartY),d=!R(r.endX)||!R(r.endY),c=!R(r.arrowEndX)||!R(r.arrowEndY),y=3,p=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth,g=y*p,m=Br({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),b=m<g,E=Br({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.endX,y:r.endY}),M=E<g,L=!1;if(f||h||b){L=!0;var w={x:r.ctrlpts[0]-a.x,y:r.ctrlpts[1]-a.y},k=Math.sqrt(w.x*w.x+w.y*w.y),D={x:w.x/k,y:w.y/k},F=Math.max(i,o),G={x:r.ctrlpts[0]+D.x*2*F,y:r.ctrlpts[1]+D.y*2*F},I=l.intersectLine(a.x,a.y,i,o,G.x,G.y,0);b?(r.ctrlpts[0]=r.ctrlpts[0]+D.x*(g-m),r.ctrlpts[1]=r.ctrlpts[1]+D.y*(g-m)):(r.ctrlpts[0]=I[0]+D.x*g,r.ctrlpts[1]=I[1]+D.y*g)}if(d||c||M){L=!0;var X={x:r.ctrlpts[0]-n.x,y:r.ctrlpts[1]-n.y},B=Math.sqrt(X.x*X.x+X.y*X.y),re={x:X.x/B,y:X.y/B},K=Math.max(i,o),W={x:r.ctrlpts[0]+re.x*2*K,y:r.ctrlpts[1]+re.y*2*K},ae=v.intersectLine(n.x,n.y,s,u,W.x,W.y,0);M?(r.ctrlpts[0]=r.ctrlpts[0]+re.x*(g-E),r.ctrlpts[1]=r.ctrlpts[1]+re.y*(g-E)):(r.ctrlpts[0]=ae[0]+re.x*g,r.ctrlpts[1]=ae[1]+re.y*g)}L&&this.findEndpoints(t)}},Vt.storeAllpts=function(t){var e=t._private.rscratch;if(e.edgeType==="multibezier"||e.edgeType==="bezier"||e.edgeType==="self"||e.edgeType==="compound"){e.allpts=[],e.allpts.push(e.startX,e.startY);for(var r=0;r+1<e.ctrlpts.length;r+=2)e.allpts.push(e.ctrlpts[r],e.ctrlpts[r+1]),r+3<e.ctrlpts.length&&e.allpts.push((e.ctrlpts[r]+e.ctrlpts[r+2])/2,(e.ctrlpts[r+1]+e.ctrlpts[r+3])/2);e.allpts.push(e.endX,e.endY);var a,n;e.ctrlpts.length/2%2===0?(a=e.allpts.length/2-1,e.midX=e.allpts[a],e.midY=e.allpts[a+1]):(a=e.allpts.length/2-3,n=.5,e.midX=Lt(e.allpts[a],e.allpts[a+2],e.allpts[a+4],n),e.midY=Lt(e.allpts[a+1],e.allpts[a+3],e.allpts[a+5],n))}else if(e.edgeType==="straight")e.allpts=[e.startX,e.startY,e.endX,e.endY],e.midX=(e.startX+e.endX+e.arrowStartX+e.arrowEndX)/4,e.midY=(e.startY+e.endY+e.arrowStartY+e.arrowEndY)/4;else if(e.edgeType==="segments")if(e.allpts=[],e.allpts.push(e.startX,e.startY),e.allpts.push.apply(e.allpts,e.segpts),e.allpts.push(e.endX,e.endY),e.segpts.length%4===0){var i=e.segpts.length/2,o=i-2;e.midX=(e.segpts[o]+e.segpts[i])/2,e.midY=(e.segpts[o+1]+e.segpts[i+1])/2}else{var s=e.segpts.length/2-1;e.midX=e.segpts[s],e.midY=e.segpts[s+1]}},Vt.checkForInvalidEdgeWarning=function(t){var e=t[0]._private.rscratch;e.nodesOverlap||R(e.startX)&&R(e.startY)&&R(e.endX)&&R(e.endY)?e.loggedErr=!1:e.loggedErr||(e.loggedErr=!0,ht("Edge `"+t.id()+"` has invalid endpoints and so it is impossible to draw. Adjust your edge style (e.g. control points) accordingly or use an alternative edge type. This is expected behaviour when the source node and the target node overlap."))},Vt.findEdgeControlPoints=function(t){var e=this;if(!(!t||t.length===0)){for(var r=this,a=r.cy,n=a.hasCompoundNodes(),i={map:new ur,get:function(w){var k=this.map.get(w[0]);return k!=null?k.get(w[1]):null},set:function(w,k){var D=this.map.get(w[0]);D==null&&(D=new ur,this.map.set(w[0],D)),D.set(w[1],k)}},o=[],s=[],u=0;u<t.length;u++){var l=t[u],v=l._private,f=l.pstyle("curve-style").value;if(!(l.removed()||!l.takesUpSpace())){if(f==="haystack"){s.push(l);continue}var h=f==="unbundled-bezier"||f==="segments"||f==="straight"||f==="straight-triangle"||f==="taxi",d=f==="unbundled-bezier"||f==="bezier",c=v.source,y=v.target,p=c.poolIndex(),g=y.poolIndex(),m=[p,g].sort(),b=i.get(m);b==null&&(b={eles:[]},i.set(m,b),o.push(m)),b.eles.push(l),h&&(b.hasUnbundled=!0),d&&(b.hasBezier=!0)}}for(var E=function(w){var k=o[w],D=i.get(k),F=void 0;if(!D.hasUnbundled){var G=D.eles[0].parallelEdges().filter(function(et){return et.isBundledBezier()});si(D.eles),G.forEach(function(et){return D.eles.push(et)}),D.eles.sort(function(et,fe){return et.poolIndex()-fe.poolIndex()})}var I=D.eles[0],X=I.source(),B=I.target();if(X.poolIndex()>B.poolIndex()){var re=X;X=B,B=re}var K=D.srcPos=X.position(),W=D.tgtPos=B.position(),ae=D.srcW=X.outerWidth(),ue=D.srcH=X.outerHeight(),me=D.tgtW=B.outerWidth(),ie=D.tgtH=B.outerHeight(),ge=D.srcShape=r.nodeShapes[e.getNodeShape(X)],Ee=D.tgtShape=r.nodeShapes[e.getNodeShape(B)];D.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var Ce=0;Ce<D.eles.length;Ce++){var we=D.eles[Ce],De=we[0]._private.rscratch,oe=we.pstyle("curve-style").value,xe=oe==="unbundled-bezier"||oe==="segments"||oe==="taxi",Le=!X.same(we.source());if(!D.calculatedIntersection&&X!==B&&(D.hasBezier||D.hasUnbundled)){D.calculatedIntersection=!0;var Se=ge.intersectLine(K.x,K.y,ae,ue,W.x,W.y,0),Oe=D.srcIntn=Se,Fe=Ee.intersectLine(W.x,W.y,me,ie,K.x,K.y,0),Xe=D.tgtIntn=Fe,Ie=D.intersectionPts={x1:Se[0],x2:Fe[0],y1:Se[1],y2:Fe[1]},Me=D.posPts={x1:K.x,x2:W.x,y1:K.y,y2:W.y},$e=Fe[1]-Se[1],ze=Fe[0]-Se[0],Be=Math.sqrt(ze*ze+$e*$e),Ue=D.vector={x:ze,y:$e},rt=D.vectorNorm={x:Ue.x/Be,y:Ue.y/Be},je={x:-rt.y,y:rt.x};D.nodesOverlap=!R(Be)||Ee.checkPoint(Se[0],Se[1],0,me,ie,W.x,W.y)||ge.checkPoint(Fe[0],Fe[1],0,ae,ue,K.x,K.y),D.vectorNormInverse=je,F={nodesOverlap:D.nodesOverlap,dirCounts:D.dirCounts,calculatedIntersection:!0,hasBezier:D.hasBezier,hasUnbundled:D.hasUnbundled,eles:D.eles,srcPos:W,tgtPos:K,srcW:me,srcH:ie,tgtW:ae,tgtH:ue,srcIntn:Xe,tgtIntn:Oe,srcShape:Ee,tgtShape:ge,posPts:{x1:Me.x2,y1:Me.y2,x2:Me.x1,y2:Me.y1},intersectionPts:{x1:Ie.x2,y1:Ie.y2,x2:Ie.x1,y2:Ie.y1},vector:{x:-Ue.x,y:-Ue.y},vectorNorm:{x:-rt.x,y:-rt.y},vectorNormInverse:{x:-je.x,y:-je.y}}}var We=Le?F:D;De.nodesOverlap=We.nodesOverlap,De.srcIntn=We.srcIntn,De.tgtIntn=We.tgtIntn,n&&(X.isParent()||X.isChild()||B.isParent()||B.isChild())&&(X.parents().anySame(B)||B.parents().anySame(X)||X.same(B)&&X.isParent())?e.findCompoundLoopPoints(we,We,Ce,xe):X===B?e.findLoopPoints(we,We,Ce,xe):oe==="segments"?e.findSegmentsPoints(we,We):oe==="taxi"?e.findTaxiPoints(we,We):oe==="straight"||!xe&&D.eles.length%2===1&&Ce===Math.floor(D.eles.length/2)?e.findStraightEdgePoints(we):e.findBezierPoints(we,We,Ce,xe,Le),e.findEndpoints(we),e.tryToCorrectInvalidPoints(we,We),e.checkForInvalidEdgeWarning(we),e.storeAllpts(we),e.storeEdgeProjections(we),e.calculateArrowAngles(we),e.recalculateEdgeLabelProjections(we),e.calculateLabelAngles(we)}},M=0;M<o.length;M++)E(M);this.findHaystackPoints(s)}};function nl(t){var e=[];if(t!=null){for(var r=0;r<t.length;r+=2){var a=t[r],n=t[r+1];e.push({x:a,y:n})}return e}}Vt.getSegmentPoints=function(t){var e=t[0]._private.rscratch,r=e.edgeType;if(r==="segments")return this.recalculateRenderedStyle(t),nl(e.segpts)},Vt.getControlPoints=function(t){var e=t[0]._private.rscratch,r=e.edgeType;if(r==="bezier"||r==="multibezier"||r==="self"||r==="compound")return this.recalculateRenderedStyle(t),nl(e.ctrlpts)},Vt.getEdgeMidpoint=function(t){var e=t[0]._private.rscratch;return this.recalculateRenderedStyle(t),{x:e.midX,y:e.midY}};var Qa={};Qa.manualEndptToPx=function(t,e){var r=this,a=t.position(),n=t.outerWidth(),i=t.outerHeight();if(e.value.length===2){var o=[e.pfValue[0],e.pfValue[1]];return e.units[0]==="%"&&(o[0]=o[0]*n),e.units[1]==="%"&&(o[1]=o[1]*i),o[0]+=a.x,o[1]+=a.y,o}else{var s=e.pfValue[0];s=-Math.PI/2+s;var u=2*Math.max(n,i),l=[a.x+Math.cos(s)*u,a.y+Math.sin(s)*u];return r.nodeShapes[this.getNodeShape(t)].intersectLine(a.x,a.y,n,i,l[0],l[1],0)}},Qa.findEndpoints=function(t){var e=this,r,a=t.source()[0],n=t.target()[0],i=a.position(),o=n.position(),s=t.pstyle("target-arrow-shape").value,u=t.pstyle("source-arrow-shape").value,l=t.pstyle("target-distance-from-node").pfValue,v=t.pstyle("source-distance-from-node").pfValue,f=t.pstyle("curve-style").value,h=t._private.rscratch,d=h.edgeType,c=f==="taxi",y=d==="self"||d==="compound",p=d==="bezier"||d==="multibezier"||y,g=d!=="bezier",m=d==="straight"||d==="segments",b=d==="segments",E=p||g||m,M=y||c,L=t.pstyle("source-endpoint"),w=M?"outside-to-node":L.value,k=t.pstyle("target-endpoint"),D=M?"outside-to-node":k.value;h.srcManEndpt=L,h.tgtManEndpt=k;var F,G,I,X;if(p){var B=[h.ctrlpts[0],h.ctrlpts[1]],re=g?[h.ctrlpts[h.ctrlpts.length-2],h.ctrlpts[h.ctrlpts.length-1]]:B;F=re,G=B}else if(m){var K=b?h.segpts.slice(0,2):[o.x,o.y],W=b?h.segpts.slice(h.segpts.length-2):[i.x,i.y];F=W,G=K}if(D==="inside-to-node")r=[o.x,o.y];else if(k.units)r=this.manualEndptToPx(n,k);else if(D==="outside-to-line")r=h.tgtIntn;else if(D==="outside-to-node"||D==="outside-to-node-or-label"?I=F:(D==="outside-to-line"||D==="outside-to-line-or-label")&&(I=[i.x,i.y]),r=e.nodeShapes[this.getNodeShape(n)].intersectLine(o.x,o.y,n.outerWidth(),n.outerHeight(),I[0],I[1],0),D==="outside-to-node-or-label"||D==="outside-to-line-or-label"){var ae=n._private.rscratch,ue=ae.labelWidth,me=ae.labelHeight,ie=ae.labelX,ge=ae.labelY,Ee=ue/2,Ce=me/2,we=n.pstyle("text-valign").value;we==="top"?ge-=Ce:we==="bottom"&&(ge+=Ce);var De=n.pstyle("text-halign").value;De==="left"?ie-=Ee:De==="right"&&(ie+=Ee);var oe=Ba(I[0],I[1],[ie-Ee,ge-Ce,ie+Ee,ge-Ce,ie+Ee,ge+Ce,ie-Ee,ge+Ce],o.x,o.y);if(oe.length>0){var xe=i,Le=Fr(xe,jr(r)),Se=Fr(xe,jr(oe)),Oe=Le;if(Se<Le&&(r=oe,Oe=Se),oe.length>2){var Fe=Fr(xe,{x:oe[2],y:oe[3]});Fe<Oe&&(r=[oe[2],oe[3]])}}}var Xe=mn(r,F,e.arrowShapes[s].spacing(t)+l),Ie=mn(r,F,e.arrowShapes[s].gap(t)+l);if(h.endX=Ie[0],h.endY=Ie[1],h.arrowEndX=Xe[0],h.arrowEndY=Xe[1],w==="inside-to-node")r=[i.x,i.y];else if(L.units)r=this.manualEndptToPx(a,L);else if(w==="outside-to-line")r=h.srcIntn;else if(w==="outside-to-node"||w==="outside-to-node-or-label"?X=G:(w==="outside-to-line"||w==="outside-to-line-or-label")&&(X=[o.x,o.y]),r=e.nodeShapes[this.getNodeShape(a)].intersectLine(i.x,i.y,a.outerWidth(),a.outerHeight(),X[0],X[1],0),w==="outside-to-node-or-label"||w==="outside-to-line-or-label"){var Me=a._private.rscratch,$e=Me.labelWidth,ze=Me.labelHeight,Be=Me.labelX,Ue=Me.labelY,rt=$e/2,je=ze/2,We=a.pstyle("text-valign").value;We==="top"?Ue-=je:We==="bottom"&&(Ue+=je);var et=a.pstyle("text-halign").value;et==="left"?Be-=rt:et==="right"&&(Be+=rt);var fe=Ba(X[0],X[1],[Be-rt,Ue-je,Be+rt,Ue-je,Be+rt,Ue+je,Be-rt,Ue+je],i.x,i.y);if(fe.length>0){var O=o,se=Fr(O,jr(r)),Te=Fr(O,jr(fe)),ce=se;if(Te<se&&(r=[fe[0],fe[1]],ce=Te),fe.length>2){var ye=Fr(O,{x:fe[2],y:fe[3]});ye<ce&&(r=[fe[2],fe[3]])}}}var _e=mn(r,G,e.arrowShapes[u].spacing(t)+v),be=mn(r,G,e.arrowShapes[u].gap(t)+v);h.startX=be[0],h.startY=be[1],h.arrowStartX=_e[0],h.arrowStartY=_e[1],E&&(!R(h.startX)||!R(h.startY)||!R(h.endX)||!R(h.endY)?h.badLine=!0:h.badLine=!1)},Qa.getSourceEndpoint=function(t){var e=t[0]._private.rscratch;switch(this.recalculateRenderedStyle(t),e.edgeType){case"haystack":return{x:e.haystackPts[0],y:e.haystackPts[1]};default:return{x:e.arrowStartX,y:e.arrowStartY}}},Qa.getTargetEndpoint=function(t){var e=t[0]._private.rscratch;switch(this.recalculateRenderedStyle(t),e.edgeType){case"haystack":return{x:e.haystackPts[2],y:e.haystackPts[3]};default:return{x:e.arrowEndX,y:e.arrowEndY}}};var Gi={};function hg(t,e,r){for(var a=function(l,v,f,h){return Lt(l,v,f,h)},n=e._private,i=n.rstyle.bezierPts,o=0;o<t.bezierProjPcts.length;o++){var s=t.bezierProjPcts[o];i.push({x:a(r[0],r[2],r[4],s),y:a(r[1],r[3],r[5],s)})}}Gi.storeEdgeProjections=function(t){var e=t._private,r=e.rscratch,a=r.edgeType;if(e.rstyle.bezierPts=null,e.rstyle.linePts=null,e.rstyle.haystackPts=null,a==="multibezier"||a==="bezier"||a==="self"||a==="compound"){e.rstyle.bezierPts=[];for(var n=0;n+5<r.allpts.length;n+=4)hg(this,t,r.allpts.slice(n,n+6))}else if(a==="segments")for(var i=e.rstyle.linePts=[],n=0;n+1<r.allpts.length;n+=2)i.push({x:r.allpts[n],y:r.allpts[n+1]});else if(a==="haystack"){var o=r.haystackPts;e.rstyle.haystackPts=[{x:o[0],y:o[1]},{x:o[2],y:o[3]}]}e.rstyle.arrowWidth=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth},Gi.recalculateEdgeProjections=function(t){this.findEdgeControlPoints(t)};var fr={};fr.recalculateNodeLabelProjection=function(t){var e=t.pstyle("label").strValue;if(!Re(e)){var r,a,n=t._private,i=t.width(),o=t.height(),s=t.padding(),u=t.position(),l=t.pstyle("text-halign").strValue,v=t.pstyle("text-valign").strValue,f=n.rscratch,h=n.rstyle;switch(l){case"left":r=u.x-i/2-s;break;case"right":r=u.x+i/2+s;break;default:r=u.x}switch(v){case"top":a=u.y-o/2-s;break;case"bottom":a=u.y+o/2+s;break;default:a=u.y}f.labelX=r,f.labelY=a,h.labelX=r,h.labelY=a,this.calculateLabelAngles(t),this.applyLabelDimensions(t)}};var il=function(e,r){var a=Math.atan(r/e);return e===0&&a<0&&(a=a*-1),a},ol=function(e,r){var a=r.x-e.x,n=r.y-e.y;return il(a,n)},cg=function(e,r,a,n){var i=ka(0,n-.001,1),o=ka(0,n+.001,1),s=ea(e,r,a,i),u=ea(e,r,a,o);return ol(s,u)};fr.recalculateEdgeLabelProjections=function(t){var e,r=t._private,a=r.rscratch,n=this,i={mid:t.pstyle("label").strValue,source:t.pstyle("source-label").strValue,target:t.pstyle("target-label").strValue};if(i.mid||i.source||i.target){e={x:a.midX,y:a.midY};var o=function(f,h,d){Tr(r.rscratch,f,h,d),Tr(r.rstyle,f,h,d)};o("labelX",null,e.x),o("labelY",null,e.y);var s=il(a.midDispX,a.midDispY);o("labelAutoAngle",null,s);var u=function v(){if(v.cache)return v.cache;for(var f=[],h=0;h+5<a.allpts.length;h+=4){var d={x:a.allpts[h],y:a.allpts[h+1]},c={x:a.allpts[h+2],y:a.allpts[h+3]},y={x:a.allpts[h+4],y:a.allpts[h+5]};f.push({p0:d,p1:c,p2:y,startDist:0,length:0,segments:[]})}var p=r.rstyle.bezierPts,g=n.bezierProjPcts.length;function m(w,k,D,F,G){var I=Br(k,D),X=w.segments[w.segments.length-1],B={p0:k,p1:D,t0:F,t1:G,startDist:X?X.startDist+X.length:0,length:I};w.segments.push(B),w.length+=I}for(var b=0;b<f.length;b++){var E=f[b],M=f[b-1];M&&(E.startDist=M.startDist+M.length),m(E,E.p0,p[b*g],0,n.bezierProjPcts[0]);for(var L=0;L<g-1;L++)m(E,p[b*g+L],p[b*g+L+1],n.bezierProjPcts[L],n.bezierProjPcts[L+1]);m(E,p[b*g+g-1],E.p2,n.bezierProjPcts[g-1],1)}return v.cache=f},l=function(f){var h,d=f==="source";if(i[f]){var c=t.pstyle(f+"-text-offset").pfValue;switch(a.edgeType){case"self":case"compound":case"bezier":case"multibezier":{for(var y=u(),p,g=0,m=0,b=0;b<y.length;b++){for(var E=y[d?b:y.length-1-b],M=0;M<E.segments.length;M++){var L=E.segments[d?M:E.segments.length-1-M],w=b===y.length-1&&M===E.segments.length-1;if(g=m,m+=L.length,m>=c||w){p={cp:E,segment:L};break}}if(p)break}var k=p.cp,D=p.segment,F=(c-g)/D.length,G=D.t1-D.t0,I=d?D.t0+G*F:D.t1-G*F;I=ka(0,I,1),e=ea(k.p0,k.p1,k.p2,I),h=cg(k.p0,k.p1,k.p2,I);break}case"straight":case"segments":case"haystack":{for(var X=0,B,re,K,W,ae=a.allpts.length,ue=0;ue+3<ae&&(d?(K={x:a.allpts[ue],y:a.allpts[ue+1]},W={x:a.allpts[ue+2],y:a.allpts[ue+3]}):(K={x:a.allpts[ae-2-ue],y:a.allpts[ae-1-ue]},W={x:a.allpts[ae-4-ue],y:a.allpts[ae-3-ue]}),B=Br(K,W),re=X,X+=B,!(X>=c));ue+=2);var me=c-re,ie=me/B;ie=ka(0,ie,1),e=bv(K,W,ie),h=ol(K,W);break}}o("labelX",f,e.x),o("labelY",f,e.y),o("labelAutoAngle",f,h)}};l("source"),l("target"),this.applyLabelDimensions(t)}},fr.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))},fr.applyPrefixedLabelDimensions=function(t,e){var r=t._private,a=this.getLabelText(t,e),n=this.calculateLabelDimensions(t,a),i=t.pstyle("line-height").pfValue,o=t.pstyle("text-wrap").strValue,s=er(r.rscratch,"labelWrapCachedLines",e)||[],u=o!=="wrap"?1:Math.max(s.length,1),l=n.height/u,v=l*i,f=n.width,h=n.height+(u-1)*(i-1)*l;Tr(r.rstyle,"labelWidth",e,f),Tr(r.rscratch,"labelWidth",e,f),Tr(r.rstyle,"labelHeight",e,h),Tr(r.rscratch,"labelHeight",e,h),Tr(r.rscratch,"labelLineHeight",e,v)},fr.getLabelText=function(t,e){var r=t._private,a=e?e+"-":"",n=t.pstyle(a+"label").strValue,i=t.pstyle("text-transform").value,o=function(me,ie){return ie?(Tr(r.rscratch,me,e,ie),ie):er(r.rscratch,me,e)};if(!n)return"";i=="none"||(i=="uppercase"?n=n.toUpperCase():i=="lowercase"&&(n=n.toLowerCase()));var s=t.pstyle("text-wrap").value;if(s==="wrap"){var u=o("labelKey");if(u!=null&&o("labelWrapKey")===u)return o("labelWrapCachedText");for(var l="",v=n.split(`
`),f=t.pstyle("text-max-width").pfValue,h=t.pstyle("text-overflow-wrap").value,d=h==="anywhere",c=[],y=/[\s\u200b]+/,p=d?"":" ",g=0;g<v.length;g++){var m=v[g],b=this.calculateLabelDimensions(t,m),E=b.width;if(d){var M=m.split("").join(l);m=M}if(E>f){for(var L=m.split(y),w="",k=0;k<L.length;k++){var D=L[k],F=w.length===0?D:w+p+D,G=this.calculateLabelDimensions(t,F),I=G.width;I<=f?w+=D+p:(w&&c.push(w),w=D+p)}w.match(/^[\s\u200b]+$/)||c.push(w)}else c.push(m)}o("labelWrapCachedLines",c),n=o("labelWrapCachedText",c.join(`
`)),o("labelWrapKey",u)}else if(s==="ellipsis"){var X=t.pstyle("text-max-width").pfValue,B="",re="…",K=!1;if(this.calculateLabelDimensions(t,n).width<X)return n;for(var W=0;W<n.length;W++){var ae=this.calculateLabelDimensions(t,B+n[W]+re).width;if(ae>X)break;B+=n[W],W===n.length-1&&(K=!0)}return K||(B+=re),B}return n},fr.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,r=t.pstyle("text-halign").strValue;if(e==="auto")if(t.isNode())switch(r){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return e},fr.calculateLabelDimensions=function(t,e){var r=this,a=Pr(e,t._private.labelDimsKey),n=r.labelDimCache||(r.labelDimCache=[]),i=n[a];if(i!=null)return i;var o=0,s=t.pstyle("font-style").strValue,u=t.pstyle("font-size").pfValue,l=t.pstyle("font-family").strValue,v=t.pstyle("font-weight").strValue,f=this.labelCalcCanvas,h=this.labelCalcCanvasContext;if(!f){f=this.labelCalcCanvas=document.createElement("canvas"),h=this.labelCalcCanvasContext=f.getContext("2d");var d=f.style;d.position="absolute",d.left="-9999px",d.top="-9999px",d.zIndex="-1",d.visibility="hidden",d.pointerEvents="none"}h.font="".concat(s," ").concat(v," ").concat(u,"px ").concat(l);for(var c=0,y=0,p=e.split(`
`),g=0;g<p.length;g++){var m=p[g],b=h.measureText(m),E=Math.ceil(b.width),M=u;c=Math.max(E,c),y+=M}return c+=o,y+=o,n[a]={width:c,height:y}},fr.calculateLabelAngle=function(t,e){var r=t._private,a=r.rscratch,n=t.isEdge(),i=e?e+"-":"",o=t.pstyle(i+"text-rotation"),s=o.strValue;return s==="none"?0:n&&s==="autorotate"?a.labelAutoAngle:s==="autorotate"?0:o.pfValue},fr.calculateLabelAngles=function(t){var e=this,r=t.isEdge(),a=t._private,n=a.rscratch;n.labelAngle=e.calculateLabelAngle(t),r&&(n.sourceLabelAngle=e.calculateLabelAngle(t,"source"),n.targetLabelAngle=e.calculateLabelAngle(t,"target"))};var sl={},ll=28,ul=!1;sl.getNodeShape=function(t){var e=this,r=t.pstyle("shape").value;if(r==="cutrectangle"&&(t.width()<ll||t.height()<ll))return ul||(ht("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),ul=!0),"rectangle";if(t.isParent())return r==="rectangle"||r==="roundrectangle"||r==="round-rectangle"||r==="cutrectangle"||r==="cut-rectangle"||r==="barrel"?r:"rectangle";if(r==="polygon"){var a=t.pstyle("shape-polygon-points").value;return e.nodeShapes.makePolygon(a).name}return r};var Wn={};Wn.registerCalculationListeners=function(){var t=this.cy,e=t.collection(),r=this,a=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(o),s)for(var u=0;u<o.length;u++){var l=o[u],v=l._private,f=v.rstyle;f.clean=!1,f.cleanConnected=!1}};r.binder(t).on("bounds.* dirty.*",function(o){var s=o.target;a(s)}).on("style.* background.*",function(o){var s=o.target;a(s,!1)});var n=function(o){if(o){var s=r.onUpdateEleCalcsFns;e.cleanStyle();for(var u=0;u<e.length;u++){var l=e[u],v=l._private.rstyle;l.isNode()&&!v.cleanConnected&&(a(l.connectedEdges()),v.cleanConnected=!0)}if(s)for(var f=0;f<s.length;f++){var h=s[f];h(o,e)}r.recalculateRenderedStyle(e),e=t.collection()}};r.flushRenderedStyleQueue=function(){n(!0)},r.beforeRender(n,r.beforeRenderPriorities.eleCalcs)},Wn.onUpdateEleCalcs=function(t){var e=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];e.push(t)},Wn.recalculateRenderedStyle=function(t,e){var r=function(E){return E._private.rstyle.cleanConnected},a=[],n=[];if(!this.destroyed){e===void 0&&(e=!0);for(var i=0;i<t.length;i++){var o=t[i],s=o._private,u=s.rstyle;o.isEdge()&&(!r(o.source())||!r(o.target()))&&(u.clean=!1),!(e&&u.clean||o.removed())&&o.pstyle("display").value!=="none"&&(s.group==="nodes"?n.push(o):a.push(o),u.clean=!0)}for(var l=0;l<n.length;l++){var v=n[l],f=v._private,h=f.rstyle,d=v.position();this.recalculateNodeLabelProjection(v),h.nodeX=d.x,h.nodeY=d.y,h.nodeW=v.pstyle("width").pfValue,h.nodeH=v.pstyle("height").pfValue}this.recalculateEdgeProjections(a);for(var c=0;c<a.length;c++){var y=a[c],p=y._private,g=p.rstyle,m=p.rscratch;g.srcX=m.arrowStartX,g.srcY=m.arrowStartY,g.tgtX=m.arrowEndX,g.tgtY=m.arrowEndY,g.midX=m.midX,g.midY=m.midY,g.labelAngle=m.labelAngle,g.sourceLabelAngle=m.sourceLabelAngle,g.targetLabelAngle=m.targetLabelAngle}}};var qn={};qn.updateCachedGrabbedEles=function(){var t=this.cachedZSortedEles;if(t){t.drag=[],t.nondrag=[];for(var e=[],r=0;r<t.length;r++){var a=t[r],n=a._private.rscratch;a.grabbed()&&!a.isParent()?e.push(a):n.inDragLayer?t.drag.push(a):t.nondrag.push(a)}for(var r=0;r<e.length;r++){var a=e[r];t.drag.push(a)}}},qn.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null},qn.getCachedZSortedEles=function(t){if(t||!this.cachedZSortedEles){var e=this.cy.mutableElements().toArray();e.sort(Ms),e.interactive=e.filter(function(r){return r.interactive()}),this.cachedZSortedEles=e,this.updateCachedGrabbedEles()}else e=this.cachedZSortedEles;return e};var vl={};[Ur,Xn,Vt,Qa,Gi,fr,sl,Wn,qn].forEach(function(t){He(vl,t)});var fl={};fl.getCachedImage=function(t,e,r){var a=this,n=a.imageCache=a.imageCache||{},i=n[t];if(i)return i.image.complete||i.image.addEventListener("load",r),i.image;i=n[t]=n[t]||{};var o=i.image=new Image;o.addEventListener("load",r),o.addEventListener("error",function(){o.error=!0});var s="data:",u=t.substring(0,s.length).toLowerCase()===s;return u||(e=e==="null"?null:e,o.crossOrigin=e),o.src=t,o};var ya={};ya.registerBinding=function(t,e,r,a){var n=Array.prototype.slice.apply(arguments,[1]),i=this.binder(t);return i.on.apply(i,n)},ya.binder=function(t){var e=this,r=e.cy.window(),a=t===r||t===r.document||t===r.document.body||Ve(t);if(e.supportsPassiveEvents==null){var n=!1;try{var i=Object.defineProperty({},"passive",{get:function(){return n=!0,!0}});r.addEventListener("test",null,i)}catch{}e.supportsPassiveEvents=n}var o=function(u,l,v){var f=Array.prototype.slice.call(arguments);return a&&e.supportsPassiveEvents&&(f[2]={capture:v??!1,passive:!1,once:!1}),e.bindings.push({target:t,args:f}),(t.addEventListener||t.on).apply(t,f),this};return{on:o,addEventListener:o,addListener:o,bind:o}},ya.nodeIsDraggable=function(t){return t&&t.isNode()&&!t.locked()&&t.grabbable()},ya.nodeIsGrabbable=function(t){return this.nodeIsDraggable(t)&&t.interactive()},ya.load=function(){var t=this,e=t.cy.window(),r=function(O){return O.selected()},a=function(O,se,Te,ce){O==null&&(O=t.cy);for(var ye=0;ye<se.length;ye++){var _e=se[ye];O.emit({originalEvent:Te,type:_e,position:ce})}},n=function(O){return O.shiftKey||O.metaKey||O.ctrlKey},i=function(O,se){var Te=!0;if(t.cy.hasCompoundNodes()&&O&&O.pannable())for(var ce=0;se&&ce<se.length;ce++){var O=se[ce];if(O.isNode()&&O.isParent()&&!O.pannable()){Te=!1;break}}else Te=!0;return Te},o=function(O){O[0]._private.grabbed=!0},s=function(O){O[0]._private.grabbed=!1},u=function(O){O[0]._private.rscratch.inDragLayer=!0},l=function(O){O[0]._private.rscratch.inDragLayer=!1},v=function(O){O[0]._private.rscratch.isGrabTarget=!0},f=function(O){O[0]._private.rscratch.isGrabTarget=!1},h=function(O,se){var Te=se.addToList,ce=Te.has(O);!ce&&O.grabbable()&&!O.locked()&&(Te.merge(O),o(O))},d=function(O,se){if(O.cy().hasCompoundNodes()&&!(se.inDragLayer==null&&se.addToList==null)){var Te=O.descendants();se.inDragLayer&&(Te.forEach(u),Te.connectedEdges().forEach(u)),se.addToList&&h(Te,se)}},c=function(O,se){se=se||{};var Te=O.cy().hasCompoundNodes();se.inDragLayer&&(O.forEach(u),O.neighborhood().stdFilter(function(ce){return!Te||ce.isEdge()}).forEach(u)),se.addToList&&O.forEach(function(ce){h(ce,se)}),d(O,se),g(O,{inDragLayer:se.inDragLayer}),t.updateCachedGrabbedEles()},y=c,p=function(O){O&&(t.getCachedZSortedEles().forEach(function(se){s(se),l(se),f(se)}),t.updateCachedGrabbedEles())},g=function(O,se){if(!(se.inDragLayer==null&&se.addToList==null)&&O.cy().hasCompoundNodes()){var Te=O.ancestors().orphans();if(!Te.same(O)){var ce=Te.descendants().spawnSelf().merge(Te).unmerge(O).unmerge(O.descendants()),ye=ce.connectedEdges();se.inDragLayer&&(ye.forEach(u),ce.forEach(u)),se.addToList&&ce.forEach(function(_e){h(_e,se)})}}},m=function(){document.activeElement!=null&&document.activeElement.blur!=null&&document.activeElement.blur()},b=typeof MutationObserver<"u",E=typeof ResizeObserver<"u";b?(t.removeObserver=new MutationObserver(function(fe){for(var O=0;O<fe.length;O++){var se=fe[O],Te=se.removedNodes;if(Te)for(var ce=0;ce<Te.length;ce++){var ye=Te[ce];if(ye===t.container){t.destroy();break}}}}),t.container.parentNode&&t.removeObserver.observe(t.container.parentNode,{childList:!0})):t.registerBinding(t.container,"DOMNodeRemoved",function(fe){t.destroy()});var M=sn(function(){t.cy.resize()},100);b&&(t.styleObserver=new MutationObserver(M),t.styleObserver.observe(t.container,{attributes:!0})),t.registerBinding(e,"resize",M),E&&(t.resizeObserver=new ResizeObserver(M),t.resizeObserver.observe(t.container));var L=function(O,se){for(;O!=null;)se(O),O=O.parentNode},w=function(){t.invalidateContainerClientCoordsCache()};L(t.container,function(fe){t.registerBinding(fe,"transitionend",w),t.registerBinding(fe,"animationend",w),t.registerBinding(fe,"scroll",w)}),t.registerBinding(t.container,"contextmenu",function(fe){fe.preventDefault()});var k=function(){return t.selection[4]!==0},D=function(O){for(var se=t.findContainerClientCoords(),Te=se[0],ce=se[1],ye=se[2],_e=se[3],be=O.touches?O.touches:[O],Ge=!1,Qe=0;Qe<be.length;Qe++){var vt=be[Qe];if(Te<=vt.clientX&&vt.clientX<=Te+ye&&ce<=vt.clientY&&vt.clientY<=ce+_e){Ge=!0;break}}if(!Ge)return!1;for(var qe=t.container,st=O.target,Ke=st.parentNode,Je=!1;Ke;){if(Ke===qe){Je=!0;break}Ke=Ke.parentNode}return!!Je};t.registerBinding(t.container,"mousedown",function(O){if(D(O)){O.preventDefault(),m(),t.hoverData.capture=!0,t.hoverData.which=O.which;var se=t.cy,Te=[O.clientX,O.clientY],ce=t.projectIntoViewport(Te[0],Te[1]),ye=t.selection,_e=t.findNearestElements(ce[0],ce[1],!0,!1),be=_e[0],Ge=t.dragData.possibleDragElements;t.hoverData.mdownPos=ce,t.hoverData.mdownGPos=Te;var Qe=function(){t.hoverData.tapholdCancelled=!1,clearTimeout(t.hoverData.tapholdTimeout),t.hoverData.tapholdTimeout=setTimeout(function(){if(!t.hoverData.tapholdCancelled){var Ct=t.hoverData.down;Ct?Ct.emit({originalEvent:O,type:"taphold",position:{x:ce[0],y:ce[1]}}):se.emit({originalEvent:O,type:"taphold",position:{x:ce[0],y:ce[1]}})}},t.tapholdDuration)};if(O.which==3){t.hoverData.cxtStarted=!0;var vt={originalEvent:O,type:"cxttapstart",position:{x:ce[0],y:ce[1]}};be?(be.activate(),be.emit(vt),t.hoverData.down=be):se.emit(vt),t.hoverData.downTime=new Date().getTime(),t.hoverData.cxtDragged=!1}else if(O.which==1){be&&be.activate();{if(be!=null&&t.nodeIsGrabbable(be)){var qe=function(Ct){return{originalEvent:O,type:Ct,position:{x:ce[0],y:ce[1]}}},st=function(Ct){Ct.emit(qe("grab"))};if(v(be),!be.selected())Ge=t.dragData.possibleDragElements=se.collection(),y(be,{addToList:Ge}),be.emit(qe("grabon")).emit(qe("grab"));else{Ge=t.dragData.possibleDragElements=se.collection();var Ke=se.$(function(Je){return Je.isNode()&&Je.selected()&&t.nodeIsGrabbable(Je)});c(Ke,{addToList:Ge}),be.emit(qe("grabon")),Ke.forEach(st)}t.redrawHint("eles",!0),t.redrawHint("drag",!0)}t.hoverData.down=be,t.hoverData.downs=_e,t.hoverData.downTime=new Date().getTime()}a(be,["mousedown","tapstart","vmousedown"],O,{x:ce[0],y:ce[1]}),be==null?(ye[4]=1,t.data.bgActivePosistion={x:ce[0],y:ce[1]},t.redrawHint("select",!0),t.redraw()):be.pannable()&&(ye[4]=1),Qe()}ye[0]=ye[2]=ce[0],ye[1]=ye[3]=ce[1]}},!1),t.registerBinding(e,"mousemove",function(O){var se=t.hoverData.capture;if(!(!se&&!D(O))){var Te=!1,ce=t.cy,ye=ce.zoom(),_e=[O.clientX,O.clientY],be=t.projectIntoViewport(_e[0],_e[1]),Ge=t.hoverData.mdownPos,Qe=t.hoverData.mdownGPos,vt=t.selection,qe=null;!t.hoverData.draggingEles&&!t.hoverData.dragging&&!t.hoverData.selecting&&(qe=t.findNearestElement(be[0],be[1],!0,!1));var st=t.hoverData.last,Ke=t.hoverData.down,Je=[be[0]-vt[2],be[1]-vt[3]],Ct=t.dragData.possibleDragElements,Rt;if(Qe){var ar=_e[0]-Qe[0],nr=ar*ar,kt=_e[1]-Qe[1],Jt=kt*kt,_t=nr+Jt;t.hoverData.isOverThresholdDrag=Rt=_t>=t.desktopTapThreshold2}var Er=n(O);Rt&&(t.hoverData.tapholdCancelled=!0);var Rr=function(){var cr=t.hoverData.dragDelta=t.hoverData.dragDelta||[];cr.length===0?(cr.push(Je[0]),cr.push(Je[1])):(cr[0]+=Je[0],cr[1]+=Je[1])};Te=!0,a(qe,["mousemove","vmousemove","tapdrag"],O,{x:be[0],y:be[1]});var xa=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||ce.emit({originalEvent:O,type:"boxstart",position:{x:be[0],y:be[1]}}),vt[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(t.hoverData.which===3){if(Rt){var Xr={originalEvent:O,type:"cxtdrag",position:{x:be[0],y:be[1]}};Ke?Ke.emit(Xr):ce.emit(Xr),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||qe!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:O,type:"cxtdragout",position:{x:be[0],y:be[1]}}),t.hoverData.cxtOver=qe,qe&&qe.emit({originalEvent:O,type:"cxtdragover",position:{x:be[0],y:be[1]}}))}}else if(t.hoverData.dragging){if(Te=!0,ce.panningEnabled()&&ce.userPanningEnabled()){var Ta;if(t.hoverData.justStartedPan){var Jn=t.hoverData.mdownPos;Ta={x:(be[0]-Jn[0])*ye,y:(be[1]-Jn[1])*ye},t.hoverData.justStartedPan=!1}else Ta={x:Je[0]*ye,y:Je[1]*ye};ce.panBy(Ta),ce.emit("dragpan"),t.hoverData.dragged=!0}be=t.projectIntoViewport(O.clientX,O.clientY)}else if(vt[4]==1&&(Ke==null||Ke.pannable())){if(Rt){if(!t.hoverData.dragging&&ce.boxSelectionEnabled()&&(Er||!ce.panningEnabled()||!ce.userPanningEnabled()))xa();else if(!t.hoverData.selecting&&ce.panningEnabled()&&ce.userPanningEnabled()){var Wr=i(Ke,t.hoverData.downs);Wr&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,vt[4]=0,t.data.bgActivePosistion=jr(Ge),t.redrawHint("select",!0),t.redraw())}Ke&&Ke.pannable()&&Ke.active()&&Ke.unactivate()}}else{if(Ke&&Ke.pannable()&&Ke.active()&&Ke.unactivate(),(!Ke||!Ke.grabbed())&&qe!=st&&(st&&a(st,["mouseout","tapdragout"],O,{x:be[0],y:be[1]}),qe&&a(qe,["mouseover","tapdragover"],O,{x:be[0],y:be[1]}),t.hoverData.last=qe),Ke)if(Rt){if(ce.boxSelectionEnabled()&&Er)Ke&&Ke.grabbed()&&(p(Ct),Ke.emit("freeon"),Ct.emit("free"),t.dragData.didDrag&&(Ke.emit("dragfreeon"),Ct.emit("dragfree"))),xa();else if(Ke&&Ke.grabbed()&&t.nodeIsDraggable(Ke)){var Xt=!t.dragData.didDrag;Xt&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||c(Ct,{inDragLayer:!0});var $t={x:0,y:0};if(R(Je[0])&&R(Je[1])&&($t.x+=Je[0],$t.y+=Je[1],Xt)){var Wt=t.hoverData.dragDelta;Wt&&R(Wt[0])&&R(Wt[1])&&($t.x+=Wt[0],$t.y+=Wt[1])}t.hoverData.draggingEles=!0,Ct.silentShift($t).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else Rr();Te=!0}if(vt[2]=be[0],vt[3]=be[1],Te)return O.stopPropagation&&O.stopPropagation(),O.preventDefault&&O.preventDefault(),!1}},!1);var F,G,I;t.registerBinding(e,"mouseup",function(O){var se=t.hoverData.capture;if(se){t.hoverData.capture=!1;var Te=t.cy,ce=t.projectIntoViewport(O.clientX,O.clientY),ye=t.selection,_e=t.findNearestElement(ce[0],ce[1],!0,!1),be=t.dragData.possibleDragElements,Ge=t.hoverData.down,Qe=n(O);if(t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,Ge&&Ge.unactivate(),t.hoverData.which===3){var vt={originalEvent:O,type:"cxttapend",position:{x:ce[0],y:ce[1]}};if(Ge?Ge.emit(vt):Te.emit(vt),!t.hoverData.cxtDragged){var qe={originalEvent:O,type:"cxttap",position:{x:ce[0],y:ce[1]}};Ge?Ge.emit(qe):Te.emit(qe)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(t.hoverData.which===1){if(a(_e,["mouseup","tapend","vmouseup"],O,{x:ce[0],y:ce[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(a(Ge,["click","tap","vclick"],O,{x:ce[0],y:ce[1]}),G=!1,O.timeStamp-I<=Te.multiClickDebounceTime()?(F&&clearTimeout(F),G=!0,I=null,a(Ge,["dblclick","dbltap","vdblclick"],O,{x:ce[0],y:ce[1]})):(F=setTimeout(function(){G||a(Ge,["oneclick","onetap","voneclick"],O,{x:ce[0],y:ce[1]})},Te.multiClickDebounceTime()),I=O.timeStamp)),Ge==null&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!n(O)&&(Te.$(r).unselect(["tapunselect"]),be.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=be=Te.collection()),_e==Ge&&!t.dragData.didDrag&&!t.hoverData.selecting&&_e!=null&&_e._private.selectable&&(t.hoverData.dragging||(Te.selectionType()==="additive"||Qe?_e.selected()?_e.unselect(["tapunselect"]):_e.select(["tapselect"]):Qe||(Te.$(r).unmerge(_e).unselect(["tapunselect"]),_e.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var st=Te.collection(t.getAllInBox(ye[0],ye[1],ye[2],ye[3]));t.redrawHint("select",!0),st.length>0&&t.redrawHint("eles",!0),Te.emit({type:"boxend",originalEvent:O,position:{x:ce[0],y:ce[1]}});var Ke=function(Rt){return Rt.selectable()&&!Rt.selected()};Te.selectionType()==="additive"||Qe||Te.$(r).unmerge(st).unselect(),st.emit("box").stdFilter(Ke).select().emit("boxselect"),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!ye[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var Je=Ge&&Ge.grabbed();p(be),Je&&(Ge.emit("freeon"),be.emit("free"),t.dragData.didDrag&&(Ge.emit("dragfreeon"),be.emit("dragfree")))}}ye[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null}},!1);var X=function(O){if(!t.scrollingPage){var se=t.cy,Te=se.zoom(),ce=se.pan(),ye=t.projectIntoViewport(O.clientX,O.clientY),_e=[ye[0]*Te+ce.x,ye[1]*Te+ce.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||k()){O.preventDefault();return}if(se.panningEnabled()&&se.userPanningEnabled()&&se.zoomingEnabled()&&se.userZoomingEnabled()){O.preventDefault(),t.data.wheelZooming=!0,clearTimeout(t.data.wheelTimeout),t.data.wheelTimeout=setTimeout(function(){t.data.wheelZooming=!1,t.redrawHint("eles",!0),t.redraw()},150);var be;O.deltaY!=null?be=O.deltaY/-250:O.wheelDeltaY!=null?be=O.wheelDeltaY/1e3:be=O.wheelDelta/1e3,be=be*t.wheelSensitivity;var Ge=O.deltaMode===1;Ge&&(be*=33);var Qe=se.zoom()*Math.pow(10,be);O.type==="gesturechange"&&(Qe=t.gestureStartZoom*O.scale),se.zoom({level:Qe,renderedPosition:{x:_e[0],y:_e[1]}}),se.emit(O.type==="gesturechange"?"pinchzoom":"scrollzoom")}}};t.registerBinding(t.container,"wheel",X,!0),t.registerBinding(e,"scroll",function(O){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},!0),t.registerBinding(t.container,"gesturestart",function(O){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||O.preventDefault()},!0),t.registerBinding(t.container,"gesturechange",function(fe){t.hasTouchStarted||X(fe)},!0),t.registerBinding(t.container,"mouseout",function(O){var se=t.projectIntoViewport(O.clientX,O.clientY);t.cy.emit({originalEvent:O,type:"mouseout",position:{x:se[0],y:se[1]}})},!1),t.registerBinding(t.container,"mouseover",function(O){var se=t.projectIntoViewport(O.clientX,O.clientY);t.cy.emit({originalEvent:O,type:"mouseover",position:{x:se[0],y:se[1]}})},!1);var B,re,K,W,ae,ue,me,ie,ge,Ee,Ce,we,De,oe=function(O,se,Te,ce){return Math.sqrt((Te-O)*(Te-O)+(ce-se)*(ce-se))},xe=function(O,se,Te,ce){return(Te-O)*(Te-O)+(ce-se)*(ce-se)},Le;t.registerBinding(t.container,"touchstart",Le=function(O){if(t.hasTouchStarted=!0,!!D(O)){m(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var se=t.cy,Te=t.touchData.now,ce=t.touchData.earlier;if(O.touches[0]){var ye=t.projectIntoViewport(O.touches[0].clientX,O.touches[0].clientY);Te[0]=ye[0],Te[1]=ye[1]}if(O.touches[1]){var ye=t.projectIntoViewport(O.touches[1].clientX,O.touches[1].clientY);Te[2]=ye[0],Te[3]=ye[1]}if(O.touches[2]){var ye=t.projectIntoViewport(O.touches[2].clientX,O.touches[2].clientY);Te[4]=ye[0],Te[5]=ye[1]}if(O.touches[1]){t.touchData.singleTouchMoved=!0,p(t.dragData.touchDragEles);var _e=t.findContainerClientCoords();ge=_e[0],Ee=_e[1],Ce=_e[2],we=_e[3],B=O.touches[0].clientX-ge,re=O.touches[0].clientY-Ee,K=O.touches[1].clientX-ge,W=O.touches[1].clientY-Ee,De=0<=B&&B<=Ce&&0<=K&&K<=Ce&&0<=re&&re<=we&&0<=W&&W<=we;var be=se.pan(),Ge=se.zoom();ae=oe(B,re,K,W),ue=xe(B,re,K,W),me=[(B+K)/2,(re+W)/2],ie=[(me[0]-be.x)/Ge,(me[1]-be.y)/Ge];var Qe=200,vt=Qe*Qe;if(ue<vt&&!O.touches[2]){var qe=t.findNearestElement(Te[0],Te[1],!0,!0),st=t.findNearestElement(Te[2],Te[3],!0,!0);qe&&qe.isNode()?(qe.activate().emit({originalEvent:O,type:"cxttapstart",position:{x:Te[0],y:Te[1]}}),t.touchData.start=qe):st&&st.isNode()?(st.activate().emit({originalEvent:O,type:"cxttapstart",position:{x:Te[0],y:Te[1]}}),t.touchData.start=st):se.emit({originalEvent:O,type:"cxttapstart",position:{x:Te[0],y:Te[1]}}),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!0,t.touchData.cxtDragged=!1,t.data.bgActivePosistion=void 0,t.redraw();return}}if(O.touches[2])se.boxSelectionEnabled()&&O.preventDefault();else if(!O.touches[1]){if(O.touches[0]){var Ke=t.findNearestElements(Te[0],Te[1],!0,!0),Je=Ke[0];if(Je!=null&&(Je.activate(),t.touchData.start=Je,t.touchData.starts=Ke,t.nodeIsGrabbable(Je))){var Ct=t.dragData.touchDragEles=se.collection(),Rt=null;t.redrawHint("eles",!0),t.redrawHint("drag",!0),Je.selected()?(Rt=se.$(function(_t){return _t.selected()&&t.nodeIsGrabbable(_t)}),c(Rt,{addToList:Ct})):y(Je,{addToList:Ct}),v(Je);var ar=function(Er){return{originalEvent:O,type:Er,position:{x:Te[0],y:Te[1]}}};Je.emit(ar("grabon")),Rt?Rt.forEach(function(_t){_t.emit(ar("grab"))}):Je.emit(ar("grab"))}a(Je,["touchstart","tapstart","vmousedown"],O,{x:Te[0],y:Te[1]}),Je==null&&(t.data.bgActivePosistion={x:ye[0],y:ye[1]},t.redrawHint("select",!0),t.redraw()),t.touchData.singleTouchMoved=!1,t.touchData.singleTouchStartTime=+new Date,clearTimeout(t.touchData.tapholdTimeout),t.touchData.tapholdTimeout=setTimeout(function(){t.touchData.singleTouchMoved===!1&&!t.pinching&&!t.touchData.selecting&&a(t.touchData.start,["taphold"],O,{x:Te[0],y:Te[1]})},t.tapholdDuration)}}if(O.touches.length>=1){for(var nr=t.touchData.startPosition=[null,null,null,null,null,null],kt=0;kt<Te.length;kt++)nr[kt]=ce[kt]=Te[kt];var Jt=O.touches[0];t.touchData.startGPosition=[Jt.clientX,Jt.clientY]}}},!1);var Se;t.registerBinding(window,"touchmove",Se=function(O){var se=t.touchData.capture;if(!(!se&&!D(O))){var Te=t.selection,ce=t.cy,ye=t.touchData.now,_e=t.touchData.earlier,be=ce.zoom();if(O.touches[0]){var Ge=t.projectIntoViewport(O.touches[0].clientX,O.touches[0].clientY);ye[0]=Ge[0],ye[1]=Ge[1]}if(O.touches[1]){var Ge=t.projectIntoViewport(O.touches[1].clientX,O.touches[1].clientY);ye[2]=Ge[0],ye[3]=Ge[1]}if(O.touches[2]){var Ge=t.projectIntoViewport(O.touches[2].clientX,O.touches[2].clientY);ye[4]=Ge[0],ye[5]=Ge[1]}var Qe=t.touchData.startGPosition,vt;if(se&&O.touches[0]&&Qe){for(var qe=[],st=0;st<ye.length;st++)qe[st]=ye[st]-_e[st];var Ke=O.touches[0].clientX-Qe[0],Je=Ke*Ke,Ct=O.touches[0].clientY-Qe[1],Rt=Ct*Ct,ar=Je+Rt;vt=ar>=t.touchTapThreshold2}if(se&&t.touchData.cxt){O.preventDefault();var nr=O.touches[0].clientX-ge,kt=O.touches[0].clientY-Ee,Jt=O.touches[1].clientX-ge,_t=O.touches[1].clientY-Ee,Er=xe(nr,kt,Jt,_t),Rr=Er/ue,xa=150,Xr=xa*xa,Ta=1.5,Jn=Ta*Ta;if(Rr>=Jn||Er>=Xr){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Wr={originalEvent:O,type:"cxttapend",position:{x:ye[0],y:ye[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(Wr),t.touchData.start=null):ce.emit(Wr)}}if(se&&t.touchData.cxt){var Wr={originalEvent:O,type:"cxtdrag",position:{x:ye[0],y:ye[1]}};t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(Wr):ce.emit(Wr),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var Xt=t.findNearestElement(ye[0],ye[1],!0,!0);(!t.touchData.cxtOver||Xt!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:O,type:"cxtdragout",position:{x:ye[0],y:ye[1]}}),t.touchData.cxtOver=Xt,Xt&&Xt.emit({originalEvent:O,type:"cxtdragover",position:{x:ye[0],y:ye[1]}}))}else if(se&&O.touches[2]&&ce.boxSelectionEnabled())O.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||ce.emit({originalEvent:O,type:"boxstart",position:{x:ye[0],y:ye[1]}}),t.touchData.selecting=!0,t.touchData.didSelect=!0,Te[4]=1,!Te||Te.length===0||Te[0]===void 0?(Te[0]=(ye[0]+ye[2]+ye[4])/3,Te[1]=(ye[1]+ye[3]+ye[5])/3,Te[2]=(ye[0]+ye[2]+ye[4])/3+1,Te[3]=(ye[1]+ye[3]+ye[5])/3+1):(Te[2]=(ye[0]+ye[2]+ye[4])/3,Te[3]=(ye[1]+ye[3]+ye[5])/3),t.redrawHint("select",!0),t.redraw();else if(se&&O.touches[1]&&!t.touchData.didSelect&&ce.zoomingEnabled()&&ce.panningEnabled()&&ce.userZoomingEnabled()&&ce.userPanningEnabled()){O.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var $t=t.dragData.touchDragEles;if($t){t.redrawHint("drag",!0);for(var Wt=0;Wt<$t.length;Wt++){var jn=$t[Wt]._private;jn.grabbed=!1,jn.rscratch.inDragLayer=!1}}var cr=t.touchData.start,nr=O.touches[0].clientX-ge,kt=O.touches[0].clientY-Ee,Jt=O.touches[1].clientX-ge,_t=O.touches[1].clientY-Ee,Bl=oe(nr,kt,Jt,_t),sp=Bl/ae;if(De){var lp=nr-B,up=kt-re,vp=Jt-K,fp=_t-W,hp=(lp+vp)/2,cp=(up+fp)/2,rn=ce.zoom(),Wi=rn*sp,ei=ce.pan(),Fl=ie[0]*rn+ei.x,Gl=ie[1]*rn+ei.y,dp={x:-Wi/rn*(Fl-ei.x-hp)+Fl,y:-Wi/rn*(Gl-ei.y-cp)+Gl};if(cr&&cr.active()){var $t=t.dragData.touchDragEles;p($t),t.redrawHint("drag",!0),t.redrawHint("eles",!0),cr.unactivate().emit("freeon"),$t.emit("free"),t.dragData.didDrag&&(cr.emit("dragfreeon"),$t.emit("dragfree"))}ce.viewport({zoom:Wi,pan:dp,cancelOnFailedZoom:!0}),ce.emit("pinchzoom"),ae=Bl,B=nr,re=kt,K=Jt,W=_t,t.pinching=!0}if(O.touches[0]){var Ge=t.projectIntoViewport(O.touches[0].clientX,O.touches[0].clientY);ye[0]=Ge[0],ye[1]=Ge[1]}if(O.touches[1]){var Ge=t.projectIntoViewport(O.touches[1].clientX,O.touches[1].clientY);ye[2]=Ge[0],ye[3]=Ge[1]}if(O.touches[2]){var Ge=t.projectIntoViewport(O.touches[2].clientX,O.touches[2].clientY);ye[4]=Ge[0],ye[5]=Ge[1]}}else if(O.touches[0]&&!t.touchData.didSelect){var ir=t.touchData.start,qi=t.touchData.last,Xt;if(!t.hoverData.draggingEles&&!t.swipePanning&&(Xt=t.findNearestElement(ye[0],ye[1],!0,!0)),se&&ir!=null&&O.preventDefault(),se&&ir!=null&&t.nodeIsDraggable(ir))if(vt){var $t=t.dragData.touchDragEles,zl=!t.dragData.didDrag;zl&&c($t,{inDragLayer:!0}),t.dragData.didDrag=!0;var an={x:0,y:0};if(R(qe[0])&&R(qe[1])&&(an.x+=qe[0],an.y+=qe[1],zl)){t.redrawHint("eles",!0);var or=t.touchData.dragDelta;or&&R(or[0])&&R(or[1])&&(an.x+=or[0],an.y+=or[1])}t.hoverData.draggingEles=!0,$t.silentShift(an).emit("position drag"),t.redrawHint("drag",!0),t.touchData.startPosition[0]==_e[0]&&t.touchData.startPosition[1]==_e[1]&&t.redrawHint("eles",!0),t.redraw()}else{var or=t.touchData.dragDelta=t.touchData.dragDelta||[];or.length===0?(or.push(qe[0]),or.push(qe[1])):(or[0]+=qe[0],or[1]+=qe[1])}if(a(ir||Xt,["touchmove","tapdrag","vmousemove"],O,{x:ye[0],y:ye[1]}),(!ir||!ir.grabbed())&&Xt!=qi&&(qi&&qi.emit({originalEvent:O,type:"tapdragout",position:{x:ye[0],y:ye[1]}}),Xt&&Xt.emit({originalEvent:O,type:"tapdragover",position:{x:ye[0],y:ye[1]}})),t.touchData.last=Xt,se)for(var Wt=0;Wt<ye.length;Wt++)ye[Wt]&&t.touchData.startPosition[Wt]&&vt&&(t.touchData.singleTouchMoved=!0);if(se&&(ir==null||ir.pannable())&&ce.panningEnabled()&&ce.userPanningEnabled()){var gp=i(ir,t.touchData.starts);gp&&(O.preventDefault(),t.data.bgActivePosistion||(t.data.bgActivePosistion=jr(t.touchData.startPosition)),t.swipePanning?(ce.panBy({x:qe[0]*be,y:qe[1]*be}),ce.emit("dragpan")):vt&&(t.swipePanning=!0,ce.panBy({x:Ke*be,y:Ct*be}),ce.emit("dragpan"),ir&&(ir.unactivate(),t.redrawHint("select",!0),t.touchData.start=null)));var Ge=t.projectIntoViewport(O.touches[0].clientX,O.touches[0].clientY);ye[0]=Ge[0],ye[1]=Ge[1]}}for(var st=0;st<ye.length;st++)_e[st]=ye[st];se&&O.touches.length>0&&!t.hoverData.draggingEles&&!t.swipePanning&&t.data.bgActivePosistion!=null&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1);var Oe;t.registerBinding(e,"touchcancel",Oe=function(O){var se=t.touchData.start;t.touchData.capture=!1,se&&se.unactivate()});var Fe,Xe,Ie,Me;if(t.registerBinding(e,"touchend",Fe=function(O){var se=t.touchData.start,Te=t.touchData.capture;if(Te)O.touches.length===0&&(t.touchData.capture=!1),O.preventDefault();else return;var ce=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var ye=t.cy,_e=ye.zoom(),be=t.touchData.now,Ge=t.touchData.earlier;if(O.touches[0]){var Qe=t.projectIntoViewport(O.touches[0].clientX,O.touches[0].clientY);be[0]=Qe[0],be[1]=Qe[1]}if(O.touches[1]){var Qe=t.projectIntoViewport(O.touches[1].clientX,O.touches[1].clientY);be[2]=Qe[0],be[3]=Qe[1]}if(O.touches[2]){var Qe=t.projectIntoViewport(O.touches[2].clientX,O.touches[2].clientY);be[4]=Qe[0],be[5]=Qe[1]}se&&se.unactivate();var vt;if(t.touchData.cxt){if(vt={originalEvent:O,type:"cxttapend",position:{x:be[0],y:be[1]}},se?se.emit(vt):ye.emit(vt),!t.touchData.cxtDragged){var qe={originalEvent:O,type:"cxttap",position:{x:be[0],y:be[1]}};se?se.emit(qe):ye.emit(qe)}t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,t.redraw();return}if(!O.touches[2]&&ye.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var st=ye.collection(t.getAllInBox(ce[0],ce[1],ce[2],ce[3]));ce[0]=void 0,ce[1]=void 0,ce[2]=void 0,ce[3]=void 0,ce[4]=0,t.redrawHint("select",!0),ye.emit({type:"boxend",originalEvent:O,position:{x:be[0],y:be[1]}});var Ke=function(Xr){return Xr.selectable()&&!Xr.selected()};st.emit("box").stdFilter(Ke).select().emit("boxselect"),st.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(se!=null&&se.unactivate(),O.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!O.touches[1]){if(!O.touches[0]){if(!O.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Je=t.dragData.touchDragEles;if(se!=null){var Ct=se._private.grabbed;p(Je),t.redrawHint("drag",!0),t.redrawHint("eles",!0),Ct&&(se.emit("freeon"),Je.emit("free"),t.dragData.didDrag&&(se.emit("dragfreeon"),Je.emit("dragfree"))),a(se,["touchend","tapend","vmouseup","tapdragout"],O,{x:be[0],y:be[1]}),se.unactivate(),t.touchData.start=null}else{var Rt=t.findNearestElement(be[0],be[1],!0,!0);a(Rt,["touchend","tapend","vmouseup","tapdragout"],O,{x:be[0],y:be[1]})}var ar=t.touchData.startPosition[0]-be[0],nr=ar*ar,kt=t.touchData.startPosition[1]-be[1],Jt=kt*kt,_t=nr+Jt,Er=_t*_e*_e;t.touchData.singleTouchMoved||(se||ye.$(":selected").unselect(["tapunselect"]),a(se,["tap","vclick"],O,{x:be[0],y:be[1]}),Xe=!1,O.timeStamp-Me<=ye.multiClickDebounceTime()?(Ie&&clearTimeout(Ie),Xe=!0,Me=null,a(se,["dbltap","vdblclick"],O,{x:be[0],y:be[1]})):(Ie=setTimeout(function(){Xe||a(se,["onetap","voneclick"],O,{x:be[0],y:be[1]})},ye.multiClickDebounceTime()),Me=O.timeStamp)),se!=null&&!t.dragData.didDrag&&se._private.selectable&&Er<t.touchTapThreshold2&&!t.pinching&&(ye.selectionType()==="single"?(ye.$(r).unmerge(se).unselect(["tapunselect"]),se.select(["tapselect"])):se.selected()?se.unselect(["tapunselect"]):se.select(["tapselect"]),t.redrawHint("eles",!0)),t.touchData.singleTouchMoved=!0}}}for(var Rr=0;Rr<be.length;Rr++)Ge[Rr]=be[Rr];t.dragData.didDrag=!1,O.touches.length===0&&(t.touchData.dragDelta=[],t.touchData.startPosition=[null,null,null,null,null,null],t.touchData.startGPosition=null,t.touchData.didSelect=!1),O.touches.length<2&&(O.touches.length===1&&(t.touchData.startGPosition=[O.touches[0].clientX,O.touches[0].clientY]),t.pinching=!1,t.redrawHint("eles",!0),t.redraw())},!1),typeof TouchEvent>"u"){var $e=[],ze=function(O){return{clientX:O.clientX,clientY:O.clientY,force:1,identifier:O.pointerId,pageX:O.pageX,pageY:O.pageY,radiusX:O.width/2,radiusY:O.height/2,screenX:O.screenX,screenY:O.screenY,target:O.target}},Be=function(O){return{event:O,touch:ze(O)}},Ue=function(O){$e.push(Be(O))},rt=function(O){for(var se=0;se<$e.length;se++){var Te=$e[se];if(Te.event.pointerId===O.pointerId){$e.splice(se,1);return}}},je=function(O){var se=$e.filter(function(Te){return Te.event.pointerId===O.pointerId})[0];se.event=O,se.touch=ze(O)},We=function(O){O.touches=$e.map(function(se){return se.touch})},et=function(O){return O.pointerType==="mouse"||O.pointerType===4};t.registerBinding(t.container,"pointerdown",function(fe){et(fe)||(fe.preventDefault(),Ue(fe),We(fe),Le(fe))}),t.registerBinding(t.container,"pointerup",function(fe){et(fe)||(rt(fe),We(fe),Fe(fe))}),t.registerBinding(t.container,"pointercancel",function(fe){et(fe)||(rt(fe),We(fe),Oe(fe))}),t.registerBinding(t.container,"pointermove",function(fe){et(fe)||(fe.preventDefault(),je(fe),We(fe),Se(fe))})}};var mr={};mr.generatePolygon=function(t,e){return this.nodeShapes[t]={renderer:this,name:t,points:e,draw:function(a,n,i,o,s){this.renderer.nodeShapeImpl("polygon",a,n,i,o,s,this.points)},intersectLine:function(a,n,i,o,s,u,l){return Ba(s,u,this.points,a,n,i/2,o/2,l)},checkPoint:function(a,n,i,o,s,u,l){return pr(a,n,this.points,u,l,o,s,[0,-1],i)}}},mr.generateEllipse=function(){return this.nodeShapes.ellipse={renderer:this,name:"ellipse",draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,o,s){return Mv(i,o,e,r,a/2+s,n/2+s)},checkPoint:function(e,r,a,n,i,o,s){return Gr(e,r,n,i,o,s,a)}}},mr.generateRoundPolygon=function(t,e){for(var r=new Array(e.length*2),a=0;a<e.length/2;a++){var n=a*2,i=void 0;a<e.length/2-1?i=(a+1)*2:i=0,r[a*4]=e[n],r[a*4+1]=e[n+1];var o=e[i]-e[n],s=e[i+1]-e[n+1],u=Math.sqrt(o*o+s*s);r[a*4+2]=o/u,r[a*4+3]=s/u}return this.nodeShapes[t]={renderer:this,name:t,points:r,draw:function(v,f,h,d,c){this.renderer.nodeShapeImpl("round-polygon",v,f,h,d,c,this.points)},intersectLine:function(v,f,h,d,c,y,p){return Rv(c,y,this.points,v,f,h,d)},checkPoint:function(v,f,h,d,c,y,p){return Iv(v,f,this.points,y,p,d,c)}}},mr.generateRoundRectangle=function(){return this.nodeShapes["round-rectangle"]=this.nodeShapes.roundrectangle={renderer:this,name:"round-rectangle",points:Ut(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,o,s){return Do(i,o,e,r,a,n,s)},checkPoint:function(e,r,a,n,i,o,s){var u=Fa(n,i),l=u*2;return!!(pr(e,r,this.points,o,s,n,i-l,[0,-1],a)||pr(e,r,this.points,o,s,n-l,i,[0,-1],a)||Gr(e,r,l,l,o-n/2+u,s-i/2+u,a)||Gr(e,r,l,l,o+n/2-u,s-i/2+u,a)||Gr(e,r,l,l,o+n/2-u,s+i/2-u,a)||Gr(e,r,l,l,o-n/2+u,s+i/2-u,a))}}},mr.generateCutRectangle=function(){return this.nodeShapes["cut-rectangle"]=this.nodeShapes.cutrectangle={renderer:this,name:"cut-rectangle",cornerLength:Lo(),points:Ut(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},generateCutTrianglePts:function(e,r,a,n){var i=this.cornerLength,o=r/2,s=e/2,u=a-s,l=a+s,v=n-o,f=n+o;return{topLeft:[u,v+i,u+i,v,u+i,v+i],topRight:[l-i,v,l,v+i,l-i,v+i],bottomRight:[l,f-i,l-i,f,l-i,f-i],bottomLeft:[u+i,f,u,f-i,u+i,f-i]}},intersectLine:function(e,r,a,n,i,o,s){var u=this.generateCutTrianglePts(a+2*s,n+2*s,e,r),l=[].concat.apply([],[u.topLeft.splice(0,4),u.topRight.splice(0,4),u.bottomRight.splice(0,4),u.bottomLeft.splice(0,4)]);return Ba(i,o,l,e,r)},checkPoint:function(e,r,a,n,i,o,s){if(pr(e,r,this.points,o,s,n,i-2*this.cornerLength,[0,-1],a)||pr(e,r,this.points,o,s,n-2*this.cornerLength,i,[0,-1],a))return!0;var u=this.generateCutTrianglePts(n,i,o,s);return Ht(e,r,u.topLeft)||Ht(e,r,u.topRight)||Ht(e,r,u.bottomRight)||Ht(e,r,u.bottomLeft)}}},mr.generateBarrel=function(){return this.nodeShapes.barrel={renderer:this,name:"barrel",points:Ut(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,o,s){var u=.15,l=.5,v=.85,f=this.generateBarrelBezierPts(a+2*s,n+2*s,e,r),h=function(y){var p=ea({x:y[0],y:y[1]},{x:y[2],y:y[3]},{x:y[4],y:y[5]},u),g=ea({x:y[0],y:y[1]},{x:y[2],y:y[3]},{x:y[4],y:y[5]},l),m=ea({x:y[0],y:y[1]},{x:y[2],y:y[3]},{x:y[4],y:y[5]},v);return[y[0],y[1],p.x,p.y,g.x,g.y,m.x,m.y,y[4],y[5]]},d=[].concat(h(f.topLeft),h(f.topRight),h(f.bottomRight),h(f.bottomLeft));return Ba(i,o,d,e,r)},generateBarrelBezierPts:function(e,r,a,n){var i=r/2,o=e/2,s=a-o,u=a+o,l=n-i,v=n+i,f=di(e,r),h=f.heightOffset,d=f.widthOffset,c=f.ctrlPtOffsetPct*e,y={topLeft:[s,l+h,s+c,l,s+d,l],topRight:[u-d,l,u-c,l,u,l+h],bottomRight:[u,v-h,u-c,v,u-d,v],bottomLeft:[s+d,v,s+c,v,s,v-h]};return y.topLeft.isTop=!0,y.topRight.isTop=!0,y.bottomLeft.isBottom=!0,y.bottomRight.isBottom=!0,y},checkPoint:function(e,r,a,n,i,o,s){var u=di(n,i),l=u.heightOffset,v=u.widthOffset;if(pr(e,r,this.points,o,s,n,i-2*l,[0,-1],a)||pr(e,r,this.points,o,s,n-2*v,i,[0,-1],a))return!0;for(var f=this.generateBarrelBezierPts(n,i,o,s),h=function(w,k,D){var F=D[4],G=D[2],I=D[0],X=D[5],B=D[1],re=Math.min(F,I),K=Math.max(F,I),W=Math.min(X,B),ae=Math.max(X,B);if(re<=w&&w<=K&&W<=k&&k<=ae){var ue=kv(F,G,I),me=Lv(ue[0],ue[1],ue[2],w),ie=me.filter(function(ge){return 0<=ge&&ge<=1});if(ie.length>0)return ie[0]}return null},d=Object.keys(f),c=0;c<d.length;c++){var y=d[c],p=f[y],g=h(e,r,p);if(g!=null){var m=p[5],b=p[3],E=p[1],M=Lt(m,b,E,g);if(p.isTop&&M<=r||p.isBottom&&r<=M)return!0}}return!1}}},mr.generateBottomRoundrectangle=function(){return this.nodeShapes["bottom-round-rectangle"]=this.nodeShapes.bottomroundrectangle={renderer:this,name:"bottom-round-rectangle",points:Ut(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,o,s){var u=e-(a/2+s),l=r-(n/2+s),v=l,f=e+(a/2+s),h=Cr(i,o,e,r,u,l,f,v,!1);return h.length>0?h:Do(i,o,e,r,a,n,s)},checkPoint:function(e,r,a,n,i,o,s){var u=Fa(n,i),l=2*u;if(pr(e,r,this.points,o,s,n,i-l,[0,-1],a)||pr(e,r,this.points,o,s,n-l,i,[0,-1],a))return!0;var v=n/2+2*a,f=i/2+2*a,h=[o-v,s-f,o-v,s,o+v,s,o+v,s-f];return!!(Ht(e,r,h)||Gr(e,r,l,l,o+n/2-u,s+i/2-u,a)||Gr(e,r,l,l,o-n/2+u,s+i/2-u,a))}}},mr.registerNodeShapes=function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",Ut(3,0)),this.generateRoundPolygon("round-triangle",Ut(3,0)),this.generatePolygon("rectangle",Ut(4,0)),t.square=t.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r),this.generateRoundPolygon("round-diamond",r)}this.generatePolygon("pentagon",Ut(5,0)),this.generateRoundPolygon("round-pentagon",Ut(5,0)),this.generatePolygon("hexagon",Ut(6,0)),this.generateRoundPolygon("round-hexagon",Ut(6,0)),this.generatePolygon("heptagon",Ut(7,0)),this.generateRoundPolygon("round-heptagon",Ut(7,0)),this.generatePolygon("octagon",Ut(8,0)),this.generateRoundPolygon("round-octagon",Ut(8,0));var a=new Array(20);{var n=hi(5,0),i=hi(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s<i.length/2;s++)i[s*2]*=o,i[s*2+1]*=o;for(var s=0;s<20/4;s++)a[s*4]=n[s*2],a[s*4+1]=n[s*2+1],a[s*4+2]=i[s*2],a[s*4+3]=i[s*2+1]}a=So(a),this.generatePolygon("star",a),this.generatePolygon("vee",[-1,-1,0,-.333,1,-1,0,1]),this.generatePolygon("rhomboid",[-1,-1,.333,-1,1,1,-.333,1]),this.generatePolygon("right-rhomboid",[-.333,-1,1,-1,.333,1,-1,1]),this.nodeShapes.concavehexagon=this.generatePolygon("concave-hexagon",[-1,-.95,-.75,0,-1,.95,1,.95,.75,0,1,-.95]);{var u=[-1,-1,.25,-1,1,0,.25,1,-1,1];this.generatePolygon("tag",u),this.generateRoundPolygon("round-tag",u)}t.makePolygon=function(l){var v=l.join("$"),f="polygon-"+v,h;return(h=this[f])?h:e.generatePolygon(f,l)}};var Ja={};Ja.timeToRender=function(){return this.redrawTotalTime/this.redrawCount},Ja.redraw=function(t){t=t||mo();var e=this;e.averageRedrawTime===void 0&&(e.averageRedrawTime=0),e.lastRedrawTime===void 0&&(e.lastRedrawTime=0),e.lastDrawTime===void 0&&(e.lastDrawTime=0),e.requestedFrame=!0,e.renderOptions=t},Ja.beforeRender=function(t,e){if(!this.destroyed){e==null&&xt("Priority is not optional for beforeRender");var r=this.beforeRenderCallbacks;r.push({fn:t,priority:e}),r.sort(function(a,n){return n.priority-a.priority})}};var hl=function(e,r,a){for(var n=e.beforeRenderCallbacks,i=0;i<n.length;i++)n[i].fn(r,a)};Ja.startRenderLoop=function(){var t=this,e=t.cy;if(!t.renderLoopStarted){t.renderLoopStarted=!0;var r=function a(n){if(!t.destroyed){if(!e.batching())if(t.requestedFrame&&!t.skipFrame){hl(t,!0,n);var i=gr();t.render(t.renderOptions);var o=t.lastDrawTime=gr();t.averageRedrawTime===void 0&&(t.averageRedrawTime=o-i),t.redrawCount===void 0&&(t.redrawCount=0),t.redrawCount++,t.redrawTotalTime===void 0&&(t.redrawTotalTime=0);var s=o-i;t.redrawTotalTime+=s,t.lastRedrawTime=s,t.averageRedrawTime=t.averageRedrawTime/2+s/2,t.requestedFrame=!1}else hl(t,!1,n);t.skipFrame=!1,ln(a)}};ln(r)}};var dg=function(e){this.init(e)},cl=dg,ma=cl.prototype;ma.clientFunctions=["redrawHint","render","renderTo","matchCanvasSize","nodeShapeImpl","arrowShapeImpl"],ma.init=function(t){var e=this;e.options=t,e.cy=t.cy;var r=e.container=t.cy.container(),a=e.cy.window();if(a){var n=a.document,i=n.head,o="__________cytoscape_stylesheet",s="__________cytoscape_container",u=n.getElementById(o)!=null;if(r.className.indexOf(s)<0&&(r.className=(r.className||"")+" "+s),!u){var l=n.createElement("style");l.id=o,l.textContent="."+s+" { position: relative; }",i.insertBefore(l,i.children[0])}var v=a.getComputedStyle(r),f=v.getPropertyValue("position");f==="static"&&ht("A Cytoscape container has style position:static and so can not use UI extensions properly")}e.selection=[void 0,void 0,void 0,void 0,0],e.bezierProjPcts=[.05,.225,.4,.5,.6,.775,.95],e.hoverData={down:null,last:null,downTime:null,triggerMode:null,dragging:!1,initialPan:[null,null],capture:!1},e.dragData={possibleDragElements:[]},e.touchData={start:null,capture:!1,startPosition:[null,null,null,null,null,null],singleTouchStartTime:null,singleTouchMoved:!0,now:[null,null,null,null,null,null],earlier:[null,null,null,null,null,null]},e.redraws=0,e.showFps=t.showFps,e.debug=t.debug,e.hideEdgesOnViewport=t.hideEdgesOnViewport,e.textureOnViewport=t.textureOnViewport,e.wheelSensitivity=t.wheelSensitivity,e.motionBlurEnabled=t.motionBlur,e.forcedPixelRatio=R(t.pixelRatio)?t.pixelRatio:null,e.motionBlur=t.motionBlur,e.motionBlurOpacity=t.motionBlurOpacity,e.motionBlurTransparency=1-e.motionBlurOpacity,e.motionBlurPxRatio=1,e.mbPxRBlurry=1,e.minMbLowQualFrames=4,e.fullQualityMb=!1,e.clearedForMotionBlur=[],e.desktopTapThreshold=t.desktopTapThreshold,e.desktopTapThreshold2=t.desktopTapThreshold*t.desktopTapThreshold,e.touchTapThreshold=t.touchTapThreshold,e.touchTapThreshold2=t.touchTapThreshold*t.touchTapThreshold,e.tapholdDuration=500,e.bindings=[],e.beforeRenderCallbacks=[],e.beforeRenderPriorities={animations:400,eleCalcs:300,eleTxrDeq:200,lyrTxrDeq:150,lyrTxrSkip:100},e.registerNodeShapes(),e.registerArrowShapes(),e.registerCalculationListeners()},ma.notify=function(t,e){var r=this,a=r.cy;if(!this.destroyed){if(t==="init"){r.load();return}if(t==="destroy"){r.destroy();return}(t==="add"||t==="remove"||t==="move"&&a.hasCompoundNodes()||t==="load"||t==="zorder"||t==="mount")&&r.invalidateCachedZSortedEles(),t==="viewport"&&r.redrawHint("select",!0),(t==="load"||t==="resize"||t==="mount")&&(r.invalidateContainerClientCoordsCache(),r.matchCanvasSize(r.container)),r.redrawHint("eles",!0),r.redrawHint("drag",!0),this.startRenderLoop(),this.redraw()}},ma.destroy=function(){var t=this;t.destroyed=!0,t.cy.stopAnimationLoop();for(var e=0;e<t.bindings.length;e++){var r=t.bindings[e],a=r,n=a.target;(n.off||n.removeEventListener).apply(n,a.args)}if(t.bindings=[],t.beforeRenderCallbacks=[],t.onUpdateEleCalcsFns=[],t.removeObserver&&t.removeObserver.disconnect(),t.styleObserver&&t.styleObserver.disconnect(),t.resizeObserver&&t.resizeObserver.disconnect(),t.labelCalcDiv)try{document.body.removeChild(t.labelCalcDiv)}catch{}},ma.isHeadless=function(){return!1},[Fi,vl,fl,ya,mr,Ja].forEach(function(t){He(ma,t)});var zi=1e3/60,dl={setupDequeueing:function(e){return function(){var a=this,n=this.renderer;if(!a.dequeueingSetup){a.dequeueingSetup=!0;var i=sn(function(){n.redrawHint("eles",!0),n.redrawHint("drag",!0),n.redraw()},e.deqRedrawThreshold),o=function(l,v){var f=gr(),h=n.averageRedrawTime,d=n.lastRedrawTime,c=[],y=n.cy.extent(),p=n.getPixelRatio();for(l||n.flushRenderedStyleQueue();;){var g=gr(),m=g-f,b=g-v;if(d<zi){var E=zi-(l?h:0);if(b>=e.deqFastCost*E)break}else if(l){if(m>=e.deqCost*d||m>=e.deqAvgCost*h)break}else if(b>=e.deqNoDrawCost*zi)break;var M=e.deq(a,p,y);if(M.length>0)for(var L=0;L<M.length;L++)c.push(M[L]);else break}c.length>0&&(e.onDeqd(a,c),!l&&e.shouldRedraw(a,c,p,y)&&i())},s=e.priority||oi;n.beforeRender(o,s(a))}}}},gg=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vn;ve(this,t),this.idsByKey=new ur,this.keyForId=new ur,this.cachesByLvl=new ur,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=r}return C(t,[{key:"getIdsFor",value:function(r){r==null&&xt("Can not get id list for null key");var a=this.idsByKey,n=this.idsByKey.get(r);return n||(n=new Jr,a.set(r,n)),n}},{key:"addIdForKey",value:function(r,a){r!=null&&this.getIdsFor(r).add(a)}},{key:"deleteIdForKey",value:function(r,a){r!=null&&this.getIdsFor(r).delete(a)}},{key:"getNumberOfIdsForKey",value:function(r){return r==null?0:this.getIdsFor(r).size}},{key:"updateKeyMappingFor",value:function(r){var a=r.id(),n=this.keyForId.get(a),i=this.getKey(r);this.deleteIdForKey(n,a),this.addIdForKey(i,a),this.keyForId.set(a,i)}},{key:"deleteKeyMappingFor",value:function(r){var a=r.id(),n=this.keyForId.get(a);this.deleteIdForKey(n,a),this.keyForId.delete(a)}},{key:"keyHasChangedFor",value:function(r){var a=r.id(),n=this.keyForId.get(a),i=this.getKey(r);return n!==i}},{key:"isInvalid",value:function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)}},{key:"getCachesAt",value:function(r){var a=this.cachesByLvl,n=this.lvls,i=a.get(r);return i||(i=new ur,a.set(r,i),n.push(r)),i}},{key:"getCache",value:function(r,a){return this.getCachesAt(a).get(r)}},{key:"get",value:function(r,a){var n=this.getKey(r),i=this.getCache(n,a);return i!=null&&this.updateKeyMappingFor(r),i}},{key:"getForCachedKey",value:function(r,a){var n=this.keyForId.get(r.id()),i=this.getCache(n,a);return i}},{key:"hasCache",value:function(r,a){return this.getCachesAt(a).has(r)}},{key:"has",value:function(r,a){var n=this.getKey(r);return this.hasCache(n,a)}},{key:"setCache",value:function(r,a,n){n.key=r,this.getCachesAt(a).set(r,n)}},{key:"set",value:function(r,a,n){var i=this.getKey(r);this.setCache(i,a,n),this.updateKeyMappingFor(r)}},{key:"deleteCache",value:function(r,a){this.getCachesAt(a).delete(r)}},{key:"delete",value:function(r,a){var n=this.getKey(r);this.deleteCache(n,a)}},{key:"invalidateKey",value:function(r){var a=this;this.lvls.forEach(function(n){return a.deleteCache(r,n)})}},{key:"invalidate",value:function(r){var a=r.id(),n=this.keyForId.get(a);this.deleteKeyMappingFor(r);var i=this.doesEleInvalidateKey(r);return i&&this.invalidateKey(n),i||this.getNumberOfIdsForKey(n)===0}}]),t}(),gl=25,Kn=50,Zn=-4,Vi=3,pg=7.99,yg=8,mg=1024,bg=1024,Eg=1024,wg=.2,xg=.8,Tg=10,Cg=.15,Dg=.1,Sg=.9,Lg=.9,Ag=100,Og=1,ba={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},Ng=At({getKey:null,doesEleInvalidateKey:vn,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:co,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),ja=function(e,r){var a=this;a.renderer=e,a.onDequeues=[];var n=Ng(r);He(a,n),a.lookup=new gg(n.getKey,n.doesEleInvalidateKey),a.setupDequeueing()},Dt=ja.prototype;Dt.reasons=ba,Dt.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]},Dt.getRetiredTextureQueue=function(t){var e=this,r=e.eleImgCaches.retired=e.eleImgCaches.retired||{},a=r[t]=r[t]||[];return a},Dt.getElementQueue=function(){var t=this,e=t.eleCacheQueue=t.eleCacheQueue||new Ra(function(r,a){return a.reqs-r.reqs});return e},Dt.getElementKeyToQueue=function(){var t=this,e=t.eleKeyToCacheQueue=t.eleKeyToCacheQueue||{};return e},Dt.getElement=function(t,e,r,a,n){var i=this,o=this.renderer,s=o.cy.zoom(),u=this.lookup;if(!e||e.w===0||e.h===0||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed()||!i.allowEdgeTxrCaching&&t.isEdge()||!i.allowParentTxrCaching&&t.isParent())return null;if(a==null&&(a=Math.ceil(ui(s*r))),a<Zn)a=Zn;else if(s>=pg||a>Vi)return null;var l=Math.pow(2,a),v=e.h*l,f=e.w*l,h=o.eleTextBiggerThanMin(t,l);if(!this.isVisible(t,h))return null;var d=u.get(t,a);if(d&&d.invalidated&&(d.invalidated=!1,d.texture.invalidatedWidth-=d.width),d)return d;var c;if(v<=gl?c=gl:v<=Kn?c=Kn:c=Math.ceil(v/Kn)*Kn,v>Eg||f>bg)return null;var y=i.getTextureQueue(c),p=y[y.length-2],g=function(){return i.recycleTexture(c,f)||i.addTexture(c,f)};p||(p=y[y.length-1]),p||(p=g()),p.width-p.usedWidth<f&&(p=g());for(var m=function(K){return K&&K.scaledLabelShown===h},b=n&&n===ba.dequeue,E=n&&n===ba.highQuality,M=n&&n===ba.downscale,L,w=a+1;w<=Vi;w++){var k=u.get(t,w);if(k){L=k;break}}var D=L&&L.level===a+1?L:null,F=function(){p.context.drawImage(D.texture.canvas,D.x,0,D.width,D.height,p.usedWidth,0,f,v)};if(p.context.setTransform(1,0,0,1,0,0),p.context.clearRect(p.usedWidth,0,f,c),m(D))F();else if(m(L))if(E){for(var G=L.level;G>a;G--)D=i.getElement(t,e,r,G,ba.downscale);F()}else return i.queueElement(t,L.level-1),L;else{var I;if(!b&&!E&&!M)for(var X=a-1;X>=Zn;X--){var B=u.get(t,X);if(B){I=B;break}}if(m(I))return i.queueElement(t,a),I;p.context.translate(p.usedWidth,0),p.context.scale(l,l),this.drawElement(p.context,t,e,h,!1),p.context.scale(1/l,1/l),p.context.translate(-p.usedWidth,0)}return d={x:p.usedWidth,texture:p,level:a,scale:l,width:f,height:v,scaledLabelShown:h},p.usedWidth+=Math.ceil(f+yg),p.eleCaches.push(d),u.set(t,a,d),i.checkTextureFullness(p),d},Dt.invalidateElements=function(t){for(var e=0;e<t.length;e++)this.invalidateElement(t[e])},Dt.invalidateElement=function(t){var e=this,r=e.lookup,a=[],n=r.isInvalid(t);if(n){for(var i=Zn;i<=Vi;i++){var o=r.getForCachedKey(t,i);o&&a.push(o)}var s=r.invalidate(t);if(s)for(var u=0;u<a.length;u++){var l=a[u],v=l.texture;v.invalidatedWidth+=l.width,l.invalidated=!0,e.checkTextureUtility(v)}e.removeFromQueue(t)}},Dt.checkTextureUtility=function(t){t.invalidatedWidth>=wg*t.width&&this.retireTexture(t)},Dt.checkTextureFullness=function(t){var e=this,r=e.getTextureQueue(t.height);t.usedWidth/t.width>xg&&t.fullnessChecks>=Tg?xr(r,t):t.fullnessChecks++},Dt.retireTexture=function(t){var e=this,r=t.height,a=e.getTextureQueue(r),n=this.lookup;xr(a,t),t.retired=!0;for(var i=t.eleCaches,o=0;o<i.length;o++){var s=i[o];n.deleteCache(s.key,s.level)}si(i);var u=e.getRetiredTextureQueue(r);u.push(t)},Dt.addTexture=function(t,e){var r=this,a=r.getTextureQueue(t),n={};return a.push(n),n.eleCaches=[],n.height=t,n.width=Math.max(mg,e),n.usedWidth=0,n.invalidatedWidth=0,n.fullnessChecks=0,n.canvas=r.renderer.makeOffscreenCanvas(n.width,n.height),n.context=n.canvas.getContext("2d"),n},Dt.recycleTexture=function(t,e){for(var r=this,a=r.getTextureQueue(t),n=r.getRetiredTextureQueue(t),i=0;i<n.length;i++){var o=n[i];if(o.width>=e)return o.retired=!1,o.usedWidth=0,o.invalidatedWidth=0,o.fullnessChecks=0,si(o.eleCaches),o.context.setTransform(1,0,0,1,0,0),o.context.clearRect(0,0,o.width,o.height),xr(n,o),a.push(o),o}},Dt.queueElement=function(t,e){var r=this,a=r.getElementQueue(),n=r.getElementKeyToQueue(),i=this.getKey(t),o=n[i];if(o)o.level=Math.max(o.level,e),o.eles.merge(t),o.reqs++,a.updateItem(o);else{var s={eles:t.spawn().merge(t),level:e,reqs:1,key:i};a.push(s),n[i]=s}},Dt.dequeue=function(t){for(var e=this,r=e.getElementQueue(),a=e.getElementKeyToQueue(),n=[],i=e.lookup,o=0;o<Og&&r.size()>0;o++){var s=r.pop(),u=s.key,l=s.eles[0],v=i.hasCache(l,s.level);if(a[u]=null,v)continue;n.push(s);var f=e.getBoundingBox(l);e.getElement(l,f,t,s.level,ba.dequeue)}return n},Dt.removeFromQueue=function(t){var e=this,r=e.getElementQueue(),a=e.getElementKeyToQueue(),n=this.getKey(t),i=a[n];i!=null&&(i.eles.length===1?(i.reqs=ii,r.updateItem(i),r.pop(),a[n]=null):i.eles.unmerge(t))},Dt.onDequeue=function(t){this.onDequeues.push(t)},Dt.offDequeue=function(t){xr(this.onDequeues,t)},Dt.setupDequeueing=dl.setupDequeueing({deqRedrawThreshold:Ag,deqCost:Cg,deqAvgCost:Dg,deqNoDrawCost:Sg,deqFastCost:Lg,deq:function(e,r,a){return e.dequeue(r,a)},onDeqd:function(e,r){for(var a=0;a<e.onDequeues.length;a++){var n=e.onDequeues[a];n(r)}},shouldRedraw:function(e,r,a,n){for(var i=0;i<r.length;i++)for(var o=r[i].eles,s=0;s<o.length;s++){var u=o[s].boundingBox();if(vi(u,n))return!0}return!1},priority:function(e){return e.renderer.beforeRenderPriorities.eleTxrDeq}});var Ig=1,en=-4,Qn=2,Mg=3.99,Rg=50,kg=50,Pg=.15,Bg=.1,Fg=.9,Gg=.9,zg=1,pl=250,Vg=4e3*4e3,$g=!0,yl=function(e){var r=this,a=r.renderer=e,n=a.cy;r.layersByLevel={},r.firstGet=!0,r.lastInvalidationTime=gr()-2*pl,r.skipping=!1,r.eleTxrDeqs=n.collection(),r.scheduleElementRefinement=sn(function(){r.refineElementTextures(r.eleTxrDeqs),r.eleTxrDeqs.unmerge(r.eleTxrDeqs)},kg),a.beforeRender(function(o,s){s-r.lastInvalidationTime<=pl?r.skipping=!0:r.skipping=!1},a.beforeRenderPriorities.lyrTxrSkip);var i=function(s,u){return u.reqs-s.reqs};r.layersQueue=new Ra(i),r.setupDequeueing()},Mt=yl.prototype,ml=0,Ug=Math.pow(2,53)-1;Mt.makeLayer=function(t,e){var r=Math.pow(2,e),a=Math.ceil(t.w*r),n=Math.ceil(t.h*r),i=this.renderer.makeOffscreenCanvas(a,n),o={id:ml=++ml%Ug,bb:t,level:e,width:a,height:n,canvas:i,context:i.getContext("2d"),eles:[],elesQueue:[],reqs:0},s=o.context,u=-o.bb.x1,l=-o.bb.y1;return s.scale(r,r),s.translate(u,l),o},Mt.getLayers=function(t,e,r){var a=this,n=a.renderer,i=n.cy,o=i.zoom(),s=a.firstGet;if(a.firstGet=!1,r==null){if(r=Math.ceil(ui(o*e)),r<en)r=en;else if(o>=Mg||r>Qn)return null}a.validateLayersElesOrdering(r,t);var u=a.layersByLevel,l=Math.pow(2,r),v=u[r]=u[r]||[],f,h=a.levelIsComplete(r,t),d,c=function(){var F=function(re){if(a.validateLayersElesOrdering(re,t),a.levelIsComplete(re,t))return d=u[re],!0},G=function(re){if(!d)for(var K=r+re;en<=K&&K<=Qn&&!F(K);K+=re);};G(1),G(-1);for(var I=v.length-1;I>=0;I--){var X=v[I];X.invalid&&xr(v,X)}};if(!h)c();else return v;var y=function(){if(!f){f=Yt();for(var F=0;F<t.length;F++)xo(f,t[F].boundingBox())}return f},p=function(F){F=F||{};var G=F.after;y();var I=f.w*l*(f.h*l);if(I>Vg)return null;var X=a.makeLayer(f,r);if(G!=null){var B=v.indexOf(G)+1;v.splice(B,0,X)}else(F.insert===void 0||F.insert)&&v.unshift(X);return X};if(a.skipping&&!s)return null;for(var g=null,m=t.length/Ig,b=!s,E=0;E<t.length;E++){var M=t[E],L=M._private.rscratch,w=L.imgLayerCaches=L.imgLayerCaches||{},k=w[r];if(k){g=k;continue}if((!g||g.eles.length>=m||!Co(g.bb,M.boundingBox()))&&(g=p({insert:!0,after:g}),!g))return null;d||b?a.queueLayer(g,M):a.drawEleInLayer(g,M,r,e),g.eles.push(M),w[r]=g}return d||(b?null:v)},Mt.getEleLevelForLayerLevel=function(t,e){return t},Mt.drawEleInLayer=function(t,e,r,a){var n=this,i=this.renderer,o=t.context,s=e.boundingBox();s.w===0||s.h===0||!e.visible()||(r=n.getEleLevelForLayerLevel(r,a),i.setImgSmoothing(o,!1),i.drawCachedElement(o,e,null,null,r,$g),i.setImgSmoothing(o,!0))},Mt.levelIsComplete=function(t,e){var r=this,a=r.layersByLevel[t];if(!a||a.length===0)return!1;for(var n=0,i=0;i<a.length;i++){var o=a[i];if(o.reqs>0||o.invalid)return!1;n+=o.eles.length}return n===e.length},Mt.validateLayersElesOrdering=function(t,e){var r=this.layersByLevel[t];if(r)for(var a=0;a<r.length;a++){for(var n=r[a],i=-1,o=0;o<e.length;o++)if(n.eles[0]===e[o]){i=o;break}if(i<0){this.invalidateLayer(n);continue}for(var s=i,o=0;o<n.eles.length;o++)if(n.eles[o]!==e[s+o]){this.invalidateLayer(n);break}}},Mt.updateElementsInLayers=function(t,e){for(var r=this,a=Ae(t[0]),n=0;n<t.length;n++)for(var i=a?null:t[n],o=a?t[n]:t[n].ele,s=o._private.rscratch,u=s.imgLayerCaches=s.imgLayerCaches||{},l=en;l<=Qn;l++){var v=u[l];v&&(i&&r.getEleLevelForLayerLevel(v.level)!==i.level||e(v,o,i))}},Mt.haveLayers=function(){for(var t=this,e=!1,r=en;r<=Qn;r++){var a=t.layersByLevel[r];if(a&&a.length>0){e=!0;break}}return e},Mt.invalidateElements=function(t){var e=this;t.length!==0&&(e.lastInvalidationTime=gr(),!(t.length===0||!e.haveLayers())&&e.updateElementsInLayers(t,function(a,n,i){e.invalidateLayer(a)}))},Mt.invalidateLayer=function(t){if(this.lastInvalidationTime=gr(),!t.invalid){var e=t.level,r=t.eles,a=this.layersByLevel[e];xr(a,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var n=0;n<r.length;n++){var i=r[n]._private.rscratch.imgLayerCaches;i&&(i[e]=null)}}},Mt.refineElementTextures=function(t){var e=this;e.updateElementsInLayers(t,function(a,n,i){var o=a.replacement;if(o||(o=a.replacement=e.makeLayer(a.bb,a.level),o.replaces=a,o.eles=a.eles),!o.reqs)for(var s=0;s<o.eles.length;s++)e.queueLayer(o,o.eles[s])})},Mt.enqueueElementRefinement=function(t){this.eleTxrDeqs.merge(t),this.scheduleElementRefinement()},Mt.queueLayer=function(t,e){var r=this,a=r.layersQueue,n=t.elesQueue,i=n.hasId=n.hasId||{};if(!t.replacement){if(e){if(i[e.id()])return;n.push(e),i[e.id()]=!0}t.reqs?(t.reqs++,a.updateItem(t)):(t.reqs=1,a.push(t))}},Mt.dequeue=function(t){for(var e=this,r=e.layersQueue,a=[],n=0;n<zg&&r.size()!==0;){var i=r.peek();if(i.replacement){r.pop();continue}if(i.replaces&&i!==i.replaces.replacement){r.pop();continue}if(i.invalid){r.pop();continue}var o=i.elesQueue.shift();o&&(e.drawEleInLayer(i,o,i.level,t),n++),a.length===0&&a.push(!0),i.elesQueue.length===0&&(r.pop(),i.reqs=0,i.replaces&&e.applyLayerReplacement(i),e.requestRedraw())}return a},Mt.applyLayerReplacement=function(t){var e=this,r=e.layersByLevel[t.level],a=t.replaces,n=r.indexOf(a);if(!(n<0||a.invalid)){r[n]=t;for(var i=0;i<t.eles.length;i++){var o=t.eles[i]._private,s=o.imgLayerCaches=o.imgLayerCaches||{};s&&(s[t.level]=t)}e.requestRedraw()}},Mt.requestRedraw=sn(function(){var t=this.renderer;t.redrawHint("eles",!0),t.redrawHint("drag",!0),t.redraw()},100),Mt.setupDequeueing=dl.setupDequeueing({deqRedrawThreshold:Rg,deqCost:Pg,deqAvgCost:Bg,deqNoDrawCost:Fg,deqFastCost:Gg,deq:function(e,r){return e.dequeue(r)},onDeqd:oi,shouldRedraw:co,priority:function(e){return e.renderer.beforeRenderPriorities.lyrTxrDeq}});var bl={},El;function _g(t,e){for(var r=0;r<e.length;r++){var a=e[r];t.lineTo(a.x,a.y)}}function Yg(t,e,r){for(var a,n=0;n<e.length;n++){var i=e[n];n===0&&(a=i),t.lineTo(i.x,i.y)}t.quadraticCurveTo(r.x,r.y,a.x,a.y)}function wl(t,e,r){t.beginPath&&t.beginPath();for(var a=e,n=0;n<a.length;n++){var i=a[n];t.lineTo(i.x,i.y)}var o=r,s=r[0];t.moveTo(s.x,s.y);for(var n=1;n<o.length;n++){var i=o[n];t.lineTo(i.x,i.y)}t.closePath&&t.closePath()}function Hg(t,e,r,a,n){t.beginPath&&t.beginPath(),t.arc(r,a,n,0,Math.PI*2,!1);var i=e,o=i[0];t.moveTo(o.x,o.y);for(var s=0;s<i.length;s++){var u=i[s];t.lineTo(u.x,u.y)}t.closePath&&t.closePath()}function Xg(t,e,r,a){t.arc(e,r,a,0,Math.PI*2,!1)}bl.arrowShapeImpl=function(t){return(El||(El={polygon:_g,"triangle-backcurve":Yg,"triangle-tee":wl,"circle-triangle":Hg,"triangle-cross":wl,circle:Xg}))[t]};var hr={};hr.drawElement=function(t,e,r,a,n,i){var o=this;e.isNode()?o.drawNode(t,e,r,a,n,i):o.drawEdge(t,e,r,a,n,i)},hr.drawElementOverlay=function(t,e){var r=this;e.isNode()?r.drawNodeOverlay(t,e):r.drawEdgeOverlay(t,e)},hr.drawElementUnderlay=function(t,e){var r=this;e.isNode()?r.drawNodeUnderlay(t,e):r.drawEdgeUnderlay(t,e)},hr.drawCachedElementPortion=function(t,e,r,a,n,i,o,s){var u=this,l=r.getBoundingBox(e);if(!(l.w===0||l.h===0)){var v=r.getElement(e,l,a,n,i);if(v!=null){var f=s(u,e);if(f===0)return;var h=o(u,e),d=l.x1,c=l.y1,y=l.w,p=l.h,g,m,b,E,M;if(h!==0){var L=r.getRotationPoint(e);b=L.x,E=L.y,t.translate(b,E),t.rotate(h),M=u.getImgSmoothing(t),M||u.setImgSmoothing(t,!0);var w=r.getRotationOffset(e);g=w.x,m=w.y}else g=d,m=c;var k;f!==1&&(k=t.globalAlpha,t.globalAlpha=k*f),t.drawImage(v.texture.canvas,v.x,0,v.width,v.height,g,m,y,p),f!==1&&(t.globalAlpha=k),h!==0&&(t.rotate(-h),t.translate(-b,-E),M||u.setImgSmoothing(t,!1))}else r.drawElement(t,e)}};var Wg=function(){return 0},qg=function(e,r){return e.getTextAngle(r,null)},Kg=function(e,r){return e.getTextAngle(r,"source")},Zg=function(e,r){return e.getTextAngle(r,"target")},Qg=function(e,r){return r.effectiveOpacity()},$i=function(e,r){return r.pstyle("text-opacity").pfValue*r.effectiveOpacity()};hr.drawCachedElement=function(t,e,r,a,n,i){var o=this,s=o.data,u=s.eleTxrCache,l=s.lblTxrCache,v=s.slbTxrCache,f=s.tlbTxrCache,h=e.boundingBox(),d=i===!0?u.reasons.highQuality:null;if(!(h.w===0||h.h===0||!e.visible())&&(!a||vi(h,a))){var c=e.isEdge(),y=e.element()._private.rscratch.badLine;o.drawElementUnderlay(t,e),o.drawCachedElementPortion(t,e,u,r,n,d,Wg,Qg),(!c||!y)&&o.drawCachedElementPortion(t,e,l,r,n,d,qg,$i),c&&!y&&(o.drawCachedElementPortion(t,e,v,r,n,d,Kg,$i),o.drawCachedElementPortion(t,e,f,r,n,d,Zg,$i)),o.drawElementOverlay(t,e)}},hr.drawElements=function(t,e){for(var r=this,a=0;a<e.length;a++){var n=e[a];r.drawElement(t,n)}},hr.drawCachedElements=function(t,e,r,a){for(var n=this,i=0;i<e.length;i++){var o=e[i];n.drawCachedElement(t,o,r,a)}},hr.drawCachedNodes=function(t,e,r,a){for(var n=this,i=0;i<e.length;i++){var o=e[i];o.isNode()&&n.drawCachedElement(t,o,r,a)}},hr.drawLayeredElements=function(t,e,r,a){var n=this,i=n.data.lyrTxrCache.getLayers(e,r);if(i)for(var o=0;o<i.length;o++){var s=i[o],u=s.bb;u.w===0||u.h===0||t.drawImage(s.canvas,u.x1,u.y1,u.w,u.h)}else n.drawCachedElements(t,e,r,a)};var br={};br.drawEdge=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s=e._private.rscratch;if(!(i&&!e.visible())&&!(s.badLine||s.allpts==null||isNaN(s.allpts[0]))){var u;r&&(u=r,t.translate(-u.x1,-u.y1));var l=i?e.pstyle("opacity").value:1,v=i?e.pstyle("line-opacity").value:1,f=e.pstyle("curve-style").value,h=e.pstyle("line-style").value,d=e.pstyle("width").pfValue,c=e.pstyle("line-cap").value,y=l*v,p=l*v,g=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y;f==="straight-triangle"?(o.eleStrokeStyle(t,e,I),o.drawEdgeTrianglePath(e,t,s.allpts)):(t.lineWidth=d,t.lineCap=c,o.eleStrokeStyle(t,e,I),o.drawEdgePath(e,t,s.allpts,h),t.lineCap="butt")},m=function(){n&&o.drawEdgeOverlay(t,e)},b=function(){n&&o.drawEdgeUnderlay(t,e)},E=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p;o.drawArrowheads(t,e,I)},M=function(){o.drawElementText(t,e,null,a)};t.lineJoin="round";var L=e.pstyle("ghost").value==="yes";if(L){var w=e.pstyle("ghost-offset-x").pfValue,k=e.pstyle("ghost-offset-y").pfValue,D=e.pstyle("ghost-opacity").value,F=y*D;t.translate(w,k),g(F),E(F),t.translate(-w,-k)}b(),g(),E(),m(),M(),r&&t.translate(u.x1,u.y1)}};var xl=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,a){if(a.visible()){var n=a.pstyle("".concat(e,"-opacity")).value;if(n!==0){var i=this,o=i.usePaths(),s=a._private.rscratch,u=a.pstyle("".concat(e,"-padding")).pfValue,l=2*u,v=a.pstyle("".concat(e,"-color")).value;r.lineWidth=l,s.edgeType==="self"&&!o?r.lineCap="butt":r.lineCap="round",i.colorStrokeStyle(r,v[0],v[1],v[2],n),i.drawEdgePath(a,r,s.allpts,"solid")}}}};br.drawEdgeOverlay=xl("overlay"),br.drawEdgeUnderlay=xl("underlay"),br.drawEdgePath=function(t,e,r,a){var n=t._private.rscratch,i=e,o,s=!1,u=this.usePaths(),l=t.pstyle("line-dash-pattern").pfValue,v=t.pstyle("line-dash-offset").pfValue;if(u){var f=r.join("$"),h=n.pathCacheKey&&n.pathCacheKey===f;h?(o=e=n.pathCache,s=!0):(o=e=new Path2D,n.pathCacheKey=f,n.pathCache=o)}if(i.setLineDash)switch(a){case"dotted":i.setLineDash([1,1]);break;case"dashed":i.setLineDash(l),i.lineDashOffset=v;break;case"solid":i.setLineDash([]);break}if(!s&&!n.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(r[0],r[1]),n.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var d=2;d+3<r.length;d+=4)e.quadraticCurveTo(r[d],r[d+1],r[d+2],r[d+3]);break;case"straight":case"segments":case"haystack":for(var c=2;c+1<r.length;c+=2)e.lineTo(r[c],r[c+1]);break}e=i,u?e.stroke(o):e.stroke(),e.setLineDash&&e.setLineDash([])},br.drawEdgeTrianglePath=function(t,e,r){e.fillStyle=e.strokeStyle;for(var a=t.pstyle("width").pfValue,n=0;n+1<r.length;n+=2){var i=[r[n+2]-r[n],r[n+3]-r[n+1]],o=Math.sqrt(i[0]*i[0]+i[1]*i[1]),s=[i[1]/o,-i[0]/o],u=[s[0]*a/2,s[1]*a/2];e.beginPath(),e.moveTo(r[n]-u[0],r[n+1]-u[1]),e.lineTo(r[n]+u[0],r[n+1]+u[1]),e.lineTo(r[n+2],r[n+3]),e.closePath(),e.fill()}},br.drawArrowheads=function(t,e,r){var a=e._private.rscratch,n=a.edgeType==="haystack";n||this.drawArrowhead(t,e,"source",a.arrowStartX,a.arrowStartY,a.srcArrowAngle,r),this.drawArrowhead(t,e,"mid-target",a.midX,a.midY,a.midtgtArrowAngle,r),this.drawArrowhead(t,e,"mid-source",a.midX,a.midY,a.midsrcArrowAngle,r),n||this.drawArrowhead(t,e,"target",a.arrowEndX,a.arrowEndY,a.tgtArrowAngle,r)},br.drawArrowhead=function(t,e,r,a,n,i,o){if(!(isNaN(a)||a==null||isNaN(n)||n==null||isNaN(i)||i==null)){var s=this,u=e.pstyle(r+"-arrow-shape").value;if(u!=="none"){var l=e.pstyle(r+"-arrow-fill").value==="hollow"?"both":"filled",v=e.pstyle(r+"-arrow-fill").value,f=e.pstyle("width").pfValue,h=e.pstyle(r+"-arrow-width"),d=h.value==="match-line"?f:h.pfValue;h.units==="%"&&(d*=f);var c=e.pstyle("opacity").value;o===void 0&&(o=c);var y=t.globalCompositeOperation;(o!==1||v==="hollow")&&(t.globalCompositeOperation="destination-out",s.colorFillStyle(t,255,255,255,1),s.colorStrokeStyle(t,255,255,255,1),s.drawArrowShape(e,t,l,f,u,d,a,n,i),t.globalCompositeOperation=y);var p=e.pstyle(r+"-arrow-color").value;s.colorFillStyle(t,p[0],p[1],p[2],o),s.colorStrokeStyle(t,p[0],p[1],p[2],o),s.drawArrowShape(e,t,v,f,u,d,a,n,i)}}},br.drawArrowShape=function(t,e,r,a,n,i,o,s,u){var l=this,v=this.usePaths()&&n!=="triangle-cross",f=!1,h,d=e,c={x:o,y:s},y=t.pstyle("arrow-scale").value,p=this.getArrowWidth(a,y),g=l.arrowShapes[n];if(v){var m=l.arrowPathCache=l.arrowPathCache||[],b=Pr(n),E=m[b];E!=null?(h=e=E,f=!0):(h=e=new Path2D,m[b]=h)}f||(e.beginPath&&e.beginPath(),v?g.draw(e,1,0,{x:0,y:0},1):g.draw(e,p,u,c,a),e.closePath&&e.closePath()),e=d,v&&(e.translate(o,s),e.rotate(u),e.scale(p,p)),(r==="filled"||r==="both")&&(v?e.fill(h):e.fill()),(r==="hollow"||r==="both")&&(e.lineWidth=i/(v?p:1),e.lineJoin="miter",v?e.stroke(h):e.stroke()),v&&(e.scale(1/p,1/p),e.rotate(-u),e.translate(-o,-s))};var Ui={};Ui.safeDrawImage=function(t,e,r,a,n,i,o,s,u,l){if(!(n<=0||i<=0||u<=0||l<=0))try{t.drawImage(e,r,a,n,i,o,s,u,l)}catch(v){ht(v)}},Ui.drawInscribedImage=function(t,e,r,a,n){var i=this,o=r.position(),s=o.x,u=o.y,l=r.cy().style(),v=l.getIndexedStyle.bind(l),f=v(r,"background-fit","value",a),h=v(r,"background-repeat","value",a),d=r.width(),c=r.height(),y=r.padding()*2,p=d+(v(r,"background-width-relative-to","value",a)==="inner"?0:y),g=c+(v(r,"background-height-relative-to","value",a)==="inner"?0:y),m=r._private.rscratch,b=v(r,"background-clip","value",a),E=b==="node",M=v(r,"background-image-opacity","value",a)*n,L=v(r,"background-image-smoothing","value",a),w=e.width||e.cachedW,k=e.height||e.cachedH;(w==null||k==null)&&(document.body.appendChild(e),w=e.cachedW=e.width||e.offsetWidth,k=e.cachedH=e.height||e.offsetHeight,document.body.removeChild(e));var D=w,F=k;if(v(r,"background-width","value",a)!=="auto"&&(v(r,"background-width","units",a)==="%"?D=v(r,"background-width","pfValue",a)*p:D=v(r,"background-width","pfValue",a)),v(r,"background-height","value",a)!=="auto"&&(v(r,"background-height","units",a)==="%"?F=v(r,"background-height","pfValue",a)*g:F=v(r,"background-height","pfValue",a)),!(D===0||F===0)){if(f==="contain"){var G=Math.min(p/D,g/F);D*=G,F*=G}else if(f==="cover"){var G=Math.max(p/D,g/F);D*=G,F*=G}var I=s-p/2,X=v(r,"background-position-x","units",a),B=v(r,"background-position-x","pfValue",a);X==="%"?I+=(p-D)*B:I+=B;var re=v(r,"background-offset-x","units",a),K=v(r,"background-offset-x","pfValue",a);re==="%"?I+=(p-D)*K:I+=K;var W=u-g/2,ae=v(r,"background-position-y","units",a),ue=v(r,"background-position-y","pfValue",a);ae==="%"?W+=(g-F)*ue:W+=ue;var me=v(r,"background-offset-y","units",a),ie=v(r,"background-offset-y","pfValue",a);me==="%"?W+=(g-F)*ie:W+=ie,m.pathCache&&(I-=s,W-=u,s=0,u=0);var ge=t.globalAlpha;t.globalAlpha=M;var Ee=i.getImgSmoothing(t),Ce=!1;if(L==="no"&&Ee?(i.setImgSmoothing(t,!1),Ce=!0):L==="yes"&&!Ee&&(i.setImgSmoothing(t,!0),Ce=!0),h==="no-repeat")E&&(t.save(),m.pathCache?t.clip(m.pathCache):(i.nodeShapes[i.getNodeShape(r)].draw(t,s,u,p,g),t.clip())),i.safeDrawImage(t,e,0,0,w,k,I,W,D,F),E&&t.restore();else{var we=t.createPattern(e,h);t.fillStyle=we,i.nodeShapes[i.getNodeShape(r)].draw(t,s,u,p,g),t.translate(I,W),t.fill(),t.translate(-I,-W)}t.globalAlpha=ge,Ce&&i.setImgSmoothing(t,Ee)}};var _r={};_r.eleTextBiggerThanMin=function(t,e){if(!e){var r=t.cy().zoom(),a=this.getPixelRatio(),n=Math.ceil(ui(r*a));e=Math.pow(2,n)}var i=t.pstyle("font-size").pfValue*e,o=t.pstyle("min-zoomed-font-size").pfValue;return!(i<o)},_r.drawElementText=function(t,e,r,a,n){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this;if(a==null){if(i&&!o.eleTextBiggerThanMin(e))return}else if(a===!1)return;if(e.isNode()){var s=e.pstyle("label");if(!s||!s.value)return;var u=o.getLabelJustification(e);t.textAlign=u,t.textBaseline="bottom"}else{var l=e.element()._private.rscratch.badLine,v=e.pstyle("label"),f=e.pstyle("source-label"),h=e.pstyle("target-label");if(l||(!v||!v.value)&&(!f||!f.value)&&(!h||!h.value))return;t.textAlign="center",t.textBaseline="bottom"}var d=!r,c;r&&(c=r,t.translate(-c.x1,-c.y1)),n==null?(o.drawText(t,e,null,d,i),e.isEdge()&&(o.drawText(t,e,"source",d,i),o.drawText(t,e,"target",d,i))):o.drawText(t,e,n,d,i),r&&t.translate(c.x1,c.y1)},_r.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var r=0;r<this.fontCaches.length;r++)if(e=this.fontCaches[r],e.context===t)return e;return e={context:t},this.fontCaches.push(e),e},_r.setupTextStyle=function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=e.pstyle("font-style").strValue,n=e.pstyle("font-size").pfValue+"px",i=e.pstyle("font-family").strValue,o=e.pstyle("font-weight").strValue,s=r?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,u=e.pstyle("text-outline-opacity").value*s,l=e.pstyle("color").value,v=e.pstyle("text-outline-color").value;t.font=a+" "+o+" "+n+" "+i,t.lineJoin="round",this.colorFillStyle(t,l[0],l[1],l[2],s),this.colorStrokeStyle(t,v[0],v[1],v[2],u)};function _i(t,e,r,a,n){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,o=arguments.length>6?arguments[6]:void 0;t.beginPath(),t.moveTo(e+i,r),t.lineTo(e+a-i,r),t.quadraticCurveTo(e+a,r,e+a,r+i),t.lineTo(e+a,r+n-i),t.quadraticCurveTo(e+a,r+n,e+a-i,r+n),t.lineTo(e+i,r+n),t.quadraticCurveTo(e,r+n,e,r+n-i),t.lineTo(e,r+i),t.quadraticCurveTo(e,r,e+i,r),t.closePath(),o?t.stroke():t.fill()}_r.getTextAngle=function(t,e){var r,a=t._private,n=a.rscratch,i=e?e+"-":"",o=t.pstyle(i+"text-rotation"),s=er(n,"labelAngle",e);return o.strValue==="autorotate"?r=t.isEdge()?s:0:o.strValue==="none"?r=0:r=o.pfValue,r},_r.drawText=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=e._private,o=i.rscratch,s=n?e.effectiveOpacity():1;if(!(n&&(s===0||e.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var u=er(o,"labelX",r),l=er(o,"labelY",r),v,f,h=this.getLabelText(e,r);if(h!=null&&h!==""&&!isNaN(u)&&!isNaN(l)){this.setupTextStyle(t,e,n);var d=r?r+"-":"",c=er(o,"labelWidth",r),y=er(o,"labelHeight",r),p=e.pstyle(d+"text-margin-x").pfValue,g=e.pstyle(d+"text-margin-y").pfValue,m=e.isEdge(),b=e.pstyle("text-halign").value,E=e.pstyle("text-valign").value;m&&(b="center",E="center"),u+=p,l+=g;var M;switch(a?M=this.getTextAngle(e,r):M=0,M!==0&&(v=u,f=l,t.translate(v,f),t.rotate(M),u=0,l=0),E){case"top":break;case"center":l+=y/2;break;case"bottom":l+=y;break}var L=e.pstyle("text-background-opacity").value,w=e.pstyle("text-border-opacity").value,k=e.pstyle("text-border-width").pfValue,D=e.pstyle("text-background-padding").pfValue,F=e.pstyle("text-background-shape").strValue,G=F.indexOf("round")===0,I=2;if(L>0||k>0&&w>0){var X=u-D;switch(b){case"left":X-=c;break;case"center":X-=c/2;break}var B=l-y-D,re=c+2*D,K=y+2*D;if(L>0){var W=t.fillStyle,ae=e.pstyle("text-background-color").value;t.fillStyle="rgba("+ae[0]+","+ae[1]+","+ae[2]+","+L*s+")",G?_i(t,X,B,re,K,I):t.fillRect(X,B,re,K),t.fillStyle=W}if(k>0&&w>0){var ue=t.strokeStyle,me=t.lineWidth,ie=e.pstyle("text-border-color").value,ge=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+ie[0]+","+ie[1]+","+ie[2]+","+w*s+")",t.lineWidth=k,t.setLineDash)switch(ge){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=k/4,t.setLineDash([]);break;case"solid":t.setLineDash([]);break}if(G?_i(t,X,B,re,K,I,"stroke"):t.strokeRect(X,B,re,K),ge==="double"){var Ee=k/2;G?_i(t,X+Ee,B+Ee,re-Ee*2,K-Ee*2,I,"stroke"):t.strokeRect(X+Ee,B+Ee,re-Ee*2,K-Ee*2)}t.setLineDash&&t.setLineDash([]),t.lineWidth=me,t.strokeStyle=ue}}var Ce=2*e.pstyle("text-outline-width").pfValue;if(Ce>0&&(t.lineWidth=Ce),e.pstyle("text-wrap").value==="wrap"){var we=er(o,"labelWrapCachedLines",r),De=er(o,"labelLineHeight",r),oe=c/2,xe=this.getLabelJustification(e);switch(xe==="auto"||(b==="left"?xe==="left"?u+=-c:xe==="center"&&(u+=-oe):b==="center"?xe==="left"?u+=-oe:xe==="right"&&(u+=oe):b==="right"&&(xe==="center"?u+=oe:xe==="right"&&(u+=c))),E){case"top":l-=(we.length-1)*De;break;case"center":case"bottom":l-=(we.length-1)*De;break}for(var Le=0;Le<we.length;Le++)Ce>0&&t.strokeText(we[Le],u,l),t.fillText(we[Le],u,l),l+=De}else Ce>0&&t.strokeText(h,u,l),t.fillText(h,u,l);M!==0&&(t.rotate(-M),t.translate(-v,-f))}}};var Ea={};Ea.drawNode=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s,u,l=e._private,v=l.rscratch,f=e.position();if(!(!R(f.x)||!R(f.y))&&!(i&&!e.visible())){var h=i?e.effectiveOpacity():1,d=o.usePaths(),c,y=!1,p=e.padding();s=e.width()+2*p,u=e.height()+2*p;var g;r&&(g=r,t.translate(-g.x1,-g.y1));for(var m=e.pstyle("background-image"),b=m.value,E=new Array(b.length),M=new Array(b.length),L=0,w=0;w<b.length;w++){var k=b[w],D=E[w]=k!=null&&k!=="none";if(D){var F=e.cy().style().getIndexedStyle(e,"background-image-crossorigin","value",w);L++,M[w]=o.getCachedImage(k,F,function(){l.backgroundTimestamp=Date.now(),e.emitAndNotify("background")})}}var G=e.pstyle("background-blacken").value,I=e.pstyle("border-width").pfValue,X=e.pstyle("background-opacity").value*h,B=e.pstyle("border-color").value,re=e.pstyle("border-style").value,K=e.pstyle("border-opacity").value*h,W=e.pstyle("outline-width").pfValue,ae=e.pstyle("outline-color").value,ue=e.pstyle("outline-style").value,me=e.pstyle("outline-opacity").value*h,ie=e.pstyle("outline-offset").value;t.lineJoin="miter";var ge=function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X;o.eleFillStyle(t,e,fe)},Ee=function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:K;o.colorStrokeStyle(t,B[0],B[1],B[2],fe)},Ce=function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:me;o.colorStrokeStyle(t,ae[0],ae[1],ae[2],fe)},we=function(fe,O,se,Te){var ce=o.nodePathCache=o.nodePathCache||[],ye=fo(se==="polygon"?se+","+Te.join(","):se,""+O,""+fe),_e=ce[ye],be,Ge=!1;return _e!=null?(be=_e,Ge=!0,v.pathCache=be):(be=new Path2D,ce[ye]=v.pathCache=be),{path:be,cacheHit:Ge}},De=e.pstyle("shape").strValue,oe=e.pstyle("shape-polygon-points").pfValue;if(d){t.translate(f.x,f.y);var xe=we(s,u,De,oe);c=xe.path,y=xe.cacheHit}var Le=function(){if(!y){var fe=f;d&&(fe={x:0,y:0}),o.nodeShapes[o.getNodeShape(e)].draw(c||t,fe.x,fe.y,s,u)}d?t.fill(c):t.fill()},Se=function(){for(var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h,O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,se=l.backgrounding,Te=0,ce=0;ce<M.length;ce++){var ye=e.cy().style().getIndexedStyle(e,"background-image-containment","value",ce);if(O&&ye==="over"||!O&&ye==="inside"){Te++;continue}E[ce]&&M[ce].complete&&!M[ce].error&&(Te++,o.drawInscribedImage(t,M[ce],e,ce,fe))}l.backgrounding=Te!==L,se!==l.backgrounding&&e.updateStyle(!1)},Oe=function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h;o.hasPie(e)&&(o.drawPie(t,e,O),fe&&(d||o.nodeShapes[o.getNodeShape(e)].draw(t,f.x,f.y,s,u)))},Fe=function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h,O=(G>0?G:-G)*fe,se=G>0?0:255;G!==0&&(o.colorFillStyle(t,se,se,se,O),d?t.fill(c):t.fill())},Xe=function(){if(I>0){if(t.lineWidth=I,t.lineCap="butt",t.setLineDash)switch(re){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}if(d?t.stroke(c):t.stroke(),re==="double"){t.lineWidth=I/3;var fe=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",d?t.stroke(c):t.stroke(),t.globalCompositeOperation=fe}t.setLineDash&&t.setLineDash([])}},Ie=function(){if(W>0){if(t.lineWidth=W,t.lineCap="butt",t.setLineDash)switch(ue){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}var fe=f;d&&(fe={x:0,y:0});var O=o.getNodeShape(e),se=(s+I+(W+ie))/s,Te=(u+I+(W+ie))/u,ce=s*se,ye=u*Te,_e=o.nodeShapes[O].points,be;if(d){var Ge=we(ce,ye,O,_e);be=Ge.path}if(O==="ellipse")o.drawEllipsePath(be||t,fe.x,fe.y,ce,ye);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(O)){var Qe=0,vt=0,qe=0;O==="round-diamond"?Qe=(I+ie+W)*1.4:O==="round-heptagon"?(Qe=(I+ie+W)*1.075,qe=-(I/2+ie+W)/35):O==="round-hexagon"?Qe=(I+ie+W)*1.12:O==="round-pentagon"?(Qe=(I+ie+W)*1.13,qe=-(I/2+ie+W)/15):O==="round-tag"?(Qe=(I+ie+W)*1.12,vt=(I/2+W+ie)*.07):O==="round-triangle"&&(Qe=(I+ie+W)*(Math.PI/2),qe=-(I+ie/2+W)/Math.PI),Qe!==0&&(se=(s+Qe)/s,Te=(u+Qe)/u),o.drawRoundPolygonPath(be||t,fe.x+vt,fe.y+qe,s*se,u*Te,_e)}else if(["roundrectangle","round-rectangle"].includes(O))o.drawRoundRectanglePath(be||t,fe.x,fe.y,ce,ye);else if(["cutrectangle","cut-rectangle"].includes(O))o.drawCutRectanglePath(be||t,fe.x,fe.y,ce,ye);else if(["bottomroundrectangle","bottom-round-rectangle"].includes(O))o.drawBottomRoundRectanglePath(be||t,fe.x,fe.y,ce,ye);else if(O==="barrel")o.drawBarrelPath(be||t,fe.x,fe.y,ce,ye);else if(O.startsWith("polygon")||["rhomboid","right-rhomboid","round-tag","tag","vee"].includes(O)){var st=(I+W+ie)/s;_e=pn(yn(_e,st)),o.drawPolygonPath(be||t,fe.x,fe.y,s,u,_e)}else{var Ke=(I+W+ie)/s;_e=pn(yn(_e,-Ke)),o.drawPolygonPath(be||t,fe.x,fe.y,s,u,_e)}if(d?t.stroke(be):t.stroke(),ue==="double"){t.lineWidth=I/3;var Je=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",d?t.stroke(be):t.stroke(),t.globalCompositeOperation=Je}t.setLineDash&&t.setLineDash([])}},Me=function(){n&&o.drawNodeOverlay(t,e,f,s,u)},$e=function(){n&&o.drawNodeUnderlay(t,e,f,s,u)},ze=function(){o.drawElementText(t,e,null,a)},Be=e.pstyle("ghost").value==="yes";if(Be){var Ue=e.pstyle("ghost-offset-x").pfValue,rt=e.pstyle("ghost-offset-y").pfValue,je=e.pstyle("ghost-opacity").value,We=je*h;t.translate(Ue,rt),Ce(),Ie(),ge(je*X),Le(),Se(We,!0),Ee(je*K),Xe(),Oe(G!==0||I!==0),Se(We,!1),Fe(We),t.translate(-Ue,-rt)}d&&t.translate(-f.x,-f.y),$e(),d&&t.translate(f.x,f.y),Ce(),Ie(),ge(),Le(),Se(h,!0),Ee(),Xe(),Oe(G!==0||I!==0),Se(h,!1),Fe(),d&&t.translate(-f.x,-f.y),ze(),Me(),r&&t.translate(g.x1,g.y1)}};var Tl=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,a,n,i,o){var s=this;if(a.visible()){var u=a.pstyle("".concat(e,"-padding")).pfValue,l=a.pstyle("".concat(e,"-opacity")).value,v=a.pstyle("".concat(e,"-color")).value,f=a.pstyle("".concat(e,"-shape")).value;if(l>0){if(n=n||a.position(),i==null||o==null){var h=a.padding();i=a.width()+2*h,o=a.height()+2*h}s.colorFillStyle(r,v[0],v[1],v[2],l),s.nodeShapes[f].draw(r,n.x,n.y,i+u*2,o+u*2),r.fill()}}}};Ea.drawNodeOverlay=Tl("overlay"),Ea.drawNodeUnderlay=Tl("underlay"),Ea.hasPie=function(t){return t=t[0],t._private.hasPie},Ea.drawPie=function(t,e,r,a){e=e[0],a=a||e.position();var n=e.cy().style(),i=e.pstyle("pie-size"),o=a.x,s=a.y,u=e.width(),l=e.height(),v=Math.min(u,l)/2,f=0,h=this.usePaths();h&&(o=0,s=0),i.units==="%"?v=v*i.pfValue:i.pfValue!==void 0&&(v=i.pfValue/2);for(var d=1;d<=n.pieBackgroundN;d++){var c=e.pstyle("pie-"+d+"-background-size").value,y=e.pstyle("pie-"+d+"-background-color").value,p=e.pstyle("pie-"+d+"-background-opacity").value*r,g=c/100;g+f>1&&(g=1-f);var m=1.5*Math.PI+2*Math.PI*f,b=2*Math.PI*g,E=m+b;c===0||f>=1||f+g>1||(t.beginPath(),t.moveTo(o,s),t.arc(o,s,v,m,E),t.closePath(),this.colorFillStyle(t,y[0],y[1],y[2],p),t.fill(),f+=g)}};var Kt={},Jg=100;Kt.getPixelRatio=function(){var t=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var e=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/e},Kt.paintCache=function(t){for(var e=this.paintCaches=this.paintCaches||[],r=!0,a,n=0;n<e.length;n++)if(a=e[n],a.context===t){r=!1;break}return r&&(a={context:t},e.push(a)),a},Kt.createGradientStyleFor=function(t,e,r,a,n){var i,o=this.usePaths(),s=r.pstyle(e+"-gradient-stop-colors").value,u=r.pstyle(e+"-gradient-stop-positions").pfValue;if(a==="radial-gradient")if(r.isEdge()){var l=r.sourceEndpoint(),v=r.targetEndpoint(),f=r.midpoint(),h=Br(l,f),d=Br(v,f);i=t.createRadialGradient(f.x,f.y,0,f.x,f.y,Math.max(h,d))}else{var c=o?{x:0,y:0}:r.position(),y=r.paddedWidth(),p=r.paddedHeight();i=t.createRadialGradient(c.x,c.y,0,c.x,c.y,Math.max(y,p))}else if(r.isEdge()){var g=r.sourceEndpoint(),m=r.targetEndpoint();i=t.createLinearGradient(g.x,g.y,m.x,m.y)}else{var b=o?{x:0,y:0}:r.position(),E=r.paddedWidth(),M=r.paddedHeight(),L=E/2,w=M/2,k=r.pstyle("background-gradient-direction").value;switch(k){case"to-bottom":i=t.createLinearGradient(b.x,b.y-w,b.x,b.y+w);break;case"to-top":i=t.createLinearGradient(b.x,b.y+w,b.x,b.y-w);break;case"to-left":i=t.createLinearGradient(b.x+L,b.y,b.x-L,b.y);break;case"to-right":i=t.createLinearGradient(b.x-L,b.y,b.x+L,b.y);break;case"to-bottom-right":case"to-right-bottom":i=t.createLinearGradient(b.x-L,b.y-w,b.x+L,b.y+w);break;case"to-top-right":case"to-right-top":i=t.createLinearGradient(b.x-L,b.y+w,b.x+L,b.y-w);break;case"to-bottom-left":case"to-left-bottom":i=t.createLinearGradient(b.x+L,b.y-w,b.x-L,b.y+w);break;case"to-top-left":case"to-left-top":i=t.createLinearGradient(b.x+L,b.y+w,b.x-L,b.y-w);break}}if(!i)return null;for(var D=u.length===s.length,F=s.length,G=0;G<F;G++)i.addColorStop(D?u[G]:G/(F-1),"rgba("+s[G][0]+","+s[G][1]+","+s[G][2]+","+n+")");return i},Kt.gradientFillStyle=function(t,e,r,a){var n=this.createGradientStyleFor(t,"background",e,r,a);if(!n)return null;t.fillStyle=n},Kt.colorFillStyle=function(t,e,r,a,n){t.fillStyle="rgba("+e+","+r+","+a+","+n+")"},Kt.eleFillStyle=function(t,e,r){var a=e.pstyle("background-fill").value;if(a==="linear-gradient"||a==="radial-gradient")this.gradientFillStyle(t,e,a,r);else{var n=e.pstyle("background-color").value;this.colorFillStyle(t,n[0],n[1],n[2],r)}},Kt.gradientStrokeStyle=function(t,e,r,a){var n=this.createGradientStyleFor(t,"line",e,r,a);if(!n)return null;t.strokeStyle=n},Kt.colorStrokeStyle=function(t,e,r,a,n){t.strokeStyle="rgba("+e+","+r+","+a+","+n+")"},Kt.eleStrokeStyle=function(t,e,r){var a=e.pstyle("line-fill").value;if(a==="linear-gradient"||a==="radial-gradient")this.gradientStrokeStyle(t,e,a,r);else{var n=e.pstyle("line-color").value;this.colorStrokeStyle(t,n[0],n[1],n[2],r)}},Kt.matchCanvasSize=function(t){var e=this,r=e.data,a=e.findContainerClientCoords(),n=a[2],i=a[3],o=e.getPixelRatio(),s=e.motionBlurPxRatio;(t===e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE]||t===e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG])&&(o=s);var u=n*o,l=i*o,v;if(!(u===e.canvasWidth&&l===e.canvasHeight)){e.fontCaches=null;var f=r.canvasContainer;f.style.width=n+"px",f.style.height=i+"px";for(var h=0;h<e.CANVAS_LAYERS;h++)v=r.canvases[h],v.width=u,v.height=l,v.style.width=n+"px",v.style.height=i+"px";for(var h=0;h<e.BUFFER_COUNT;h++)v=r.bufferCanvases[h],v.width=u,v.height=l,v.style.width=n+"px",v.style.height=i+"px";e.textureMult=1,o<=1&&(v=r.bufferCanvases[e.TEXTURE_BUFFER],e.textureMult=2,v.width=u*e.textureMult,v.height=l*e.textureMult),e.canvasWidth=u,e.canvasHeight=l}},Kt.renderTo=function(t,e,r,a){this.render({forcedContext:t,forcedZoom:e,forcedPan:r,drawAllLayers:!0,forcedPxRatio:a})},Kt.render=function(t){t=t||mo();var e=t.forcedContext,r=t.drawAllLayers,a=t.drawOnlyNodeLayer,n=t.forcedZoom,i=t.forcedPan,o=this,s=t.forcedPxRatio===void 0?this.getPixelRatio():t.forcedPxRatio,u=o.cy,l=o.data,v=l.canvasNeedsRedraw,f=o.textureOnViewport&&!e&&(o.pinching||o.hoverData.dragging||o.swipePanning||o.data.wheelZooming),h=t.motionBlur!==void 0?t.motionBlur:o.motionBlur,d=o.motionBlurPxRatio,c=u.hasCompoundNodes(),y=o.hoverData.draggingEles,p=!!(o.hoverData.selecting||o.touchData.selecting);h=h&&!e&&o.motionBlurEnabled&&!p;var g=h;e||(o.prevPxRatio!==s&&(o.invalidateContainerClientCoordsCache(),o.matchCanvasSize(o.container),o.redrawHint("eles",!0),o.redrawHint("drag",!0)),o.prevPxRatio=s),!e&&o.motionBlurTimeout&&clearTimeout(o.motionBlurTimeout),h&&(o.mbFrames==null&&(o.mbFrames=0),o.mbFrames++,o.mbFrames<3&&(g=!1),o.mbFrames>o.minMbLowQualFrames&&(o.motionBlurPxRatio=o.mbPxRBlurry)),o.clearingMotionBlur&&(o.motionBlurPxRatio=1),o.textureDrawLastFrame&&!f&&(v[o.NODE]=!0,v[o.SELECT_BOX]=!0);var m=u.style(),b=u.zoom(),E=n!==void 0?n:b,M=u.pan(),L={x:M.x,y:M.y},w={zoom:b,pan:{x:M.x,y:M.y}},k=o.prevViewport,D=k===void 0||w.zoom!==k.zoom||w.pan.x!==k.pan.x||w.pan.y!==k.pan.y;!D&&!(y&&!c)&&(o.motionBlurPxRatio=1),i&&(L=i),E*=s,L.x*=s,L.y*=s;var F=o.getCachedZSortedEles();function G(Ie,Me,$e,ze,Be){var Ue=Ie.globalCompositeOperation;Ie.globalCompositeOperation="destination-out",o.colorFillStyle(Ie,255,255,255,o.motionBlurTransparency),Ie.fillRect(Me,$e,ze,Be),Ie.globalCompositeOperation=Ue}function I(Ie,Me){var $e,ze,Be,Ue;!o.clearingMotionBlur&&(Ie===l.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]||Ie===l.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG])?($e={x:M.x*d,y:M.y*d},ze=b*d,Be=o.canvasWidth*d,Ue=o.canvasHeight*d):($e=L,ze=E,Be=o.canvasWidth,Ue=o.canvasHeight),Ie.setTransform(1,0,0,1,0,0),Me==="motionBlur"?G(Ie,0,0,Be,Ue):!e&&(Me===void 0||Me)&&Ie.clearRect(0,0,Be,Ue),r||(Ie.translate($e.x,$e.y),Ie.scale(ze,ze)),i&&Ie.translate(i.x,i.y),n&&Ie.scale(n,n)}if(f||(o.textureDrawLastFrame=!1),f){if(o.textureDrawLastFrame=!0,!o.textureCache){o.textureCache={},o.textureCache.bb=u.mutableElements().boundingBox(),o.textureCache.texture=o.data.bufferCanvases[o.TEXTURE_BUFFER];var X=o.data.bufferContexts[o.TEXTURE_BUFFER];X.setTransform(1,0,0,1,0,0),X.clearRect(0,0,o.canvasWidth*o.textureMult,o.canvasHeight*o.textureMult),o.render({forcedContext:X,drawOnlyNodeLayer:!0,forcedPxRatio:s*o.textureMult});var w=o.textureCache.viewport={zoom:u.zoom(),pan:u.pan(),width:o.canvasWidth,height:o.canvasHeight};w.mpan={x:(0-w.pan.x)/w.zoom,y:(0-w.pan.y)/w.zoom}}v[o.DRAG]=!1,v[o.NODE]=!1;var B=l.contexts[o.NODE],re=o.textureCache.texture,w=o.textureCache.viewport;B.setTransform(1,0,0,1,0,0),h?G(B,0,0,w.width,w.height):B.clearRect(0,0,w.width,w.height);var K=m.core("outside-texture-bg-color").value,W=m.core("outside-texture-bg-opacity").value;o.colorFillStyle(B,K[0],K[1],K[2],W),B.fillRect(0,0,w.width,w.height);var b=u.zoom();I(B,!1),B.clearRect(w.mpan.x,w.mpan.y,w.width/w.zoom/s,w.height/w.zoom/s),B.drawImage(re,w.mpan.x,w.mpan.y,w.width/w.zoom/s,w.height/w.zoom/s)}else o.textureOnViewport&&!e&&(o.textureCache=null);var ae=u.extent(),ue=o.pinching||o.hoverData.dragging||o.swipePanning||o.data.wheelZooming||o.hoverData.draggingEles||o.cy.animated(),me=o.hideEdgesOnViewport&&ue,ie=[];if(ie[o.NODE]=!v[o.NODE]&&h&&!o.clearedForMotionBlur[o.NODE]||o.clearingMotionBlur,ie[o.NODE]&&(o.clearedForMotionBlur[o.NODE]=!0),ie[o.DRAG]=!v[o.DRAG]&&h&&!o.clearedForMotionBlur[o.DRAG]||o.clearingMotionBlur,ie[o.DRAG]&&(o.clearedForMotionBlur[o.DRAG]=!0),v[o.NODE]||r||a||ie[o.NODE]){var ge=h&&!ie[o.NODE]&&d!==1,B=e||(ge?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]:l.contexts[o.NODE]),Ee=h&&!ge?"motionBlur":void 0;I(B,Ee),me?o.drawCachedNodes(B,F.nondrag,s,ae):o.drawLayeredElements(B,F.nondrag,s,ae),o.debug&&o.drawDebugPoints(B,F.nondrag),!r&&!h&&(v[o.NODE]=!1)}if(!a&&(v[o.DRAG]||r||ie[o.DRAG])){var ge=h&&!ie[o.DRAG]&&d!==1,B=e||(ge?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]:l.contexts[o.DRAG]);I(B,h&&!ge?"motionBlur":void 0),me?o.drawCachedNodes(B,F.drag,s,ae):o.drawCachedElements(B,F.drag,s,ae),o.debug&&o.drawDebugPoints(B,F.drag),!r&&!h&&(v[o.DRAG]=!1)}if(o.showFps||!a&&v[o.SELECT_BOX]&&!r){var B=e||l.contexts[o.SELECT_BOX];if(I(B),o.selection[4]==1&&(o.hoverData.selecting||o.touchData.selecting)){var b=o.cy.zoom(),Ce=m.core("selection-box-border-width").value/b;B.lineWidth=Ce,B.fillStyle="rgba("+m.core("selection-box-color").value[0]+","+m.core("selection-box-color").value[1]+","+m.core("selection-box-color").value[2]+","+m.core("selection-box-opacity").value+")",B.fillRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]),Ce>0&&(B.strokeStyle="rgba("+m.core("selection-box-border-color").value[0]+","+m.core("selection-box-border-color").value[1]+","+m.core("selection-box-border-color").value[2]+","+m.core("selection-box-opacity").value+")",B.strokeRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]))}if(l.bgActivePosistion&&!o.hoverData.selecting){var b=o.cy.zoom(),we=l.bgActivePosistion;B.fillStyle="rgba("+m.core("active-bg-color").value[0]+","+m.core("active-bg-color").value[1]+","+m.core("active-bg-color").value[2]+","+m.core("active-bg-opacity").value+")",B.beginPath(),B.arc(we.x,we.y,m.core("active-bg-size").pfValue/b,0,2*Math.PI),B.fill()}var De=o.lastRedrawTime;if(o.showFps&&De){De=Math.round(De);var oe=Math.round(1e3/De);B.setTransform(1,0,0,1,0,0),B.fillStyle="rgba(255, 0, 0, 0.75)",B.strokeStyle="rgba(255, 0, 0, 0.75)",B.lineWidth=1,B.fillText("1 frame = "+De+" ms = "+oe+" fps",0,20);var xe=60;B.strokeRect(0,30,250,20),B.fillRect(0,30,250*Math.min(oe/xe,1),20)}r||(v[o.SELECT_BOX]=!1)}if(h&&d!==1){var Le=l.contexts[o.NODE],Se=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_NODE],Oe=l.contexts[o.DRAG],Fe=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_DRAG],Xe=function(Me,$e,ze){Me.setTransform(1,0,0,1,0,0),ze||!g?Me.clearRect(0,0,o.canvasWidth,o.canvasHeight):G(Me,0,0,o.canvasWidth,o.canvasHeight);var Be=d;Me.drawImage($e,0,0,o.canvasWidth*Be,o.canvasHeight*Be,0,0,o.canvasWidth,o.canvasHeight)};(v[o.NODE]||ie[o.NODE])&&(Xe(Le,Se,ie[o.NODE]),v[o.NODE]=!1),(v[o.DRAG]||ie[o.DRAG])&&(Xe(Oe,Fe,ie[o.DRAG]),v[o.DRAG]=!1)}o.prevViewport=w,o.clearingMotionBlur&&(o.clearingMotionBlur=!1,o.motionBlurCleared=!0,o.motionBlur=!0),h&&(o.motionBlurTimeout=setTimeout(function(){o.motionBlurTimeout=null,o.clearedForMotionBlur[o.NODE]=!1,o.clearedForMotionBlur[o.DRAG]=!1,o.motionBlur=!1,o.clearingMotionBlur=!f,o.mbFrames=0,v[o.NODE]=!0,v[o.DRAG]=!0,o.redraw()},Jg)),e||u.emit("render")};var Mr={};Mr.drawPolygonPath=function(t,e,r,a,n,i){var o=a/2,s=n/2;t.beginPath&&t.beginPath(),t.moveTo(e+o*i[0],r+s*i[1]);for(var u=1;u<i.length/2;u++)t.lineTo(e+o*i[u*2],r+s*i[u*2+1]);t.closePath()},Mr.drawRoundPolygonPath=function(t,e,r,a,n,i){var o=a/2,s=n/2,u=ci(a,n);t.beginPath&&t.beginPath();for(var l=0;l<i.length/4;l++){var v=void 0,f=void 0;l===0?v=i.length-2:v=l*4-2,f=l*4+2;var h=e+o*i[l*4],d=r+s*i[l*4+1],c=-i[v]*i[f]-i[v+1]*i[f+1],y=u/Math.tan(Math.acos(c)/2),p=h-y*i[v],g=d-y*i[v+1],m=h+y*i[f],b=d+y*i[f+1];l===0?t.moveTo(p,g):t.lineTo(p,g),t.arcTo(h,d,m,b,u)}t.closePath()},Mr.drawRoundRectanglePath=function(t,e,r,a,n){var i=a/2,o=n/2,s=Fa(a,n);t.beginPath&&t.beginPath(),t.moveTo(e,r-o),t.arcTo(e+i,r-o,e+i,r,s),t.arcTo(e+i,r+o,e,r+o,s),t.arcTo(e-i,r+o,e-i,r,s),t.arcTo(e-i,r-o,e,r-o,s),t.lineTo(e,r-o),t.closePath()},Mr.drawBottomRoundRectanglePath=function(t,e,r,a,n){var i=a/2,o=n/2,s=Fa(a,n);t.beginPath&&t.beginPath(),t.moveTo(e,r-o),t.lineTo(e+i,r-o),t.lineTo(e+i,r),t.arcTo(e+i,r+o,e,r+o,s),t.arcTo(e-i,r+o,e-i,r,s),t.lineTo(e-i,r-o),t.lineTo(e,r-o),t.closePath()},Mr.drawCutRectanglePath=function(t,e,r,a,n){var i=a/2,o=n/2,s=Lo();t.beginPath&&t.beginPath(),t.moveTo(e-i+s,r-o),t.lineTo(e+i-s,r-o),t.lineTo(e+i,r-o+s),t.lineTo(e+i,r+o-s),t.lineTo(e+i-s,r+o),t.lineTo(e-i+s,r+o),t.lineTo(e-i,r+o-s),t.lineTo(e-i,r-o+s),t.closePath()},Mr.drawBarrelPath=function(t,e,r,a,n){var i=a/2,o=n/2,s=e-i,u=e+i,l=r-o,v=r+o,f=di(a,n),h=f.widthOffset,d=f.heightOffset,c=f.ctrlPtOffsetPct*h;t.beginPath&&t.beginPath(),t.moveTo(s,l+d),t.lineTo(s,v-d),t.quadraticCurveTo(s+c,v,s+h,v),t.lineTo(u-h,v),t.quadraticCurveTo(u-c,v,u,v-d),t.lineTo(u,l+d),t.quadraticCurveTo(u-c,l,u-h,l),t.lineTo(s+h,l),t.quadraticCurveTo(s+c,l,s,l+d),t.closePath()};for(var Cl=Math.sin(0),Dl=Math.cos(0),Yi={},Hi={},Sl=Math.PI/40,wa=0*Math.PI;wa<2*Math.PI;wa+=Sl)Yi[wa]=Math.sin(wa),Hi[wa]=Math.cos(wa);Mr.drawEllipsePath=function(t,e,r,a,n){if(t.beginPath&&t.beginPath(),t.ellipse)t.ellipse(e,r,a/2,n/2,0,0,2*Math.PI);else for(var i,o,s=a/2,u=n/2,l=0*Math.PI;l<2*Math.PI;l+=Sl)i=e-s*Yi[l]*Cl+s*Hi[l]*Dl,o=r+u*Hi[l]*Cl+u*Yi[l]*Dl,l===0?t.moveTo(i,o):t.lineTo(i,o);t.closePath()};var tn={};tn.createBuffer=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,[r,r.getContext("2d")]},tn.bufferCanvasImage=function(t){var e=this.cy,r=e.mutableElements(),a=r.boundingBox(),n=this.findContainerClientCoords(),i=t.full?Math.ceil(a.w):n[2],o=t.full?Math.ceil(a.h):n[3],s=R(t.maxWidth)||R(t.maxHeight),u=this.getPixelRatio(),l=1;if(t.scale!==void 0)i*=t.scale,o*=t.scale,l=t.scale;else if(s){var v=1/0,f=1/0;R(t.maxWidth)&&(v=l*t.maxWidth/i),R(t.maxHeight)&&(f=l*t.maxHeight/o),l=Math.min(v,f),i*=l,o*=l}s||(i*=u,o*=u,l*=u);var h=document.createElement("canvas");h.width=i,h.height=o,h.style.width=i+"px",h.style.height=o+"px";var d=h.getContext("2d");if(i>0&&o>0){d.clearRect(0,0,i,o),d.globalCompositeOperation="source-over";var c=this.getCachedZSortedEles();if(t.full)d.translate(-a.x1*l,-a.y1*l),d.scale(l,l),this.drawElements(d,c),d.scale(1/l,1/l),d.translate(a.x1*l,a.y1*l);else{var y=e.pan(),p={x:y.x*l,y:y.y*l};l*=e.zoom(),d.translate(p.x,p.y),d.scale(l,l),this.drawElements(d,c),d.scale(1/l,1/l),d.translate(-p.x,-p.y)}t.bg&&(d.globalCompositeOperation="destination-over",d.fillStyle=t.bg,d.rect(0,0,i,o),d.fill())}return h};function jg(t,e){for(var r=atob(t),a=new ArrayBuffer(r.length),n=new Uint8Array(a),i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return new Blob([a],{type:e})}function Ll(t){var e=t.indexOf(",");return t.substr(e+1)}function Al(t,e,r){var a=function(){return e.toDataURL(r,t.quality)};switch(t.output){case"blob-promise":return new ia(function(n,i){try{e.toBlob(function(o){o!=null?n(o):i(new Error("`canvas.toBlob()` sent a null value in its callback"))},r,t.quality)}catch(o){i(o)}});case"blob":return jg(Ll(a()),r);case"base64":return Ll(a());case"base64uri":default:return a()}}tn.png=function(t){return Al(t,this.bufferCanvasImage(t),"image/png")},tn.jpg=function(t){return Al(t,this.bufferCanvasImage(t),"image/jpeg")};var Ol={};Ol.nodeShapeImpl=function(t,e,r,a,n,i,o){switch(t){case"ellipse":return this.drawEllipsePath(e,r,a,n,i);case"polygon":return this.drawPolygonPath(e,r,a,n,i,o);case"round-polygon":return this.drawRoundPolygonPath(e,r,a,n,i,o);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(e,r,a,n,i);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(e,r,a,n,i);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(e,r,a,n,i);case"barrel":return this.drawBarrelPath(e,r,a,n,i)}};var ep=Nl,ut=Nl.prototype;ut.CANVAS_LAYERS=3,ut.SELECT_BOX=0,ut.DRAG=1,ut.NODE=2,ut.BUFFER_COUNT=3,ut.TEXTURE_BUFFER=0,ut.MOTIONBLUR_BUFFER_NODE=1,ut.MOTIONBLUR_BUFFER_DRAG=2;function Nl(t){var e=this;e.data={canvases:new Array(ut.CANVAS_LAYERS),contexts:new Array(ut.CANVAS_LAYERS),canvasNeedsRedraw:new Array(ut.CANVAS_LAYERS),bufferCanvases:new Array(ut.BUFFER_COUNT),bufferContexts:new Array(ut.CANVAS_LAYERS)};var r="-webkit-tap-highlight-color",a="rgba(0,0,0,0)";e.data.canvasContainer=document.createElement("div");var n=e.data.canvasContainer.style;e.data.canvasContainer.style[r]=a,n.position="relative",n.zIndex="0",n.overflow="hidden";var i=t.cy.container();i.appendChild(e.data.canvasContainer),i.style[r]=a;var o={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};ft()&&(o["-ms-touch-action"]="none",o["touch-action"]="none");for(var s=0;s<ut.CANVAS_LAYERS;s++){var u=e.data.canvases[s]=document.createElement("canvas");e.data.contexts[s]=u.getContext("2d"),Object.keys(o).forEach(function(De){u.style[De]=o[De]}),u.style.position="absolute",u.setAttribute("data-id","layer"+s),u.style.zIndex=String(ut.CANVAS_LAYERS-s),e.data.canvasContainer.appendChild(u),e.data.canvasNeedsRedraw[s]=!1}e.data.topCanvas=e.data.canvases[0],e.data.canvases[ut.NODE].setAttribute("data-id","layer"+ut.NODE+"-node"),e.data.canvases[ut.SELECT_BOX].setAttribute("data-id","layer"+ut.SELECT_BOX+"-selectbox"),e.data.canvases[ut.DRAG].setAttribute("data-id","layer"+ut.DRAG+"-drag");for(var s=0;s<ut.BUFFER_COUNT;s++)e.data.bufferCanvases[s]=document.createElement("canvas"),e.data.bufferContexts[s]=e.data.bufferCanvases[s].getContext("2d"),e.data.bufferCanvases[s].style.position="absolute",e.data.bufferCanvases[s].setAttribute("data-id","buffer"+s),e.data.bufferCanvases[s].style.zIndex=String(-s-1),e.data.bufferCanvases[s].style.visibility="hidden";e.pathsEnabled=!0;var l=Yt(),v=function(oe){return{x:(oe.x1+oe.x2)/2,y:(oe.y1+oe.y2)/2}},f=function(oe){return{x:-oe.w/2,y:-oe.h/2}},h=function(oe){var xe=oe[0]._private,Le=xe.oldBackgroundTimestamp===xe.backgroundTimestamp;return!Le},d=function(oe){return oe[0]._private.nodeKey},c=function(oe){return oe[0]._private.labelStyleKey},y=function(oe){return oe[0]._private.sourceLabelStyleKey},p=function(oe){return oe[0]._private.targetLabelStyleKey},g=function(oe,xe,Le,Se,Oe){return e.drawElement(oe,xe,Le,!1,!1,Oe)},m=function(oe,xe,Le,Se,Oe){return e.drawElementText(oe,xe,Le,Se,"main",Oe)},b=function(oe,xe,Le,Se,Oe){return e.drawElementText(oe,xe,Le,Se,"source",Oe)},E=function(oe,xe,Le,Se,Oe){return e.drawElementText(oe,xe,Le,Se,"target",Oe)},M=function(oe){return oe.boundingBox(),oe[0]._private.bodyBounds},L=function(oe){return oe.boundingBox(),oe[0]._private.labelBounds.main||l},w=function(oe){return oe.boundingBox(),oe[0]._private.labelBounds.source||l},k=function(oe){return oe.boundingBox(),oe[0]._private.labelBounds.target||l},D=function(oe,xe){return xe},F=function(oe){return v(M(oe))},G=function(oe,xe,Le){var Se=oe?oe+"-":"";return{x:xe.x+Le.pstyle(Se+"text-margin-x").pfValue,y:xe.y+Le.pstyle(Se+"text-margin-y").pfValue}},I=function(oe,xe,Le){var Se=oe[0]._private.rscratch;return{x:Se[xe],y:Se[Le]}},X=function(oe){return G("",I(oe,"labelX","labelY"),oe)},B=function(oe){return G("source",I(oe,"sourceLabelX","sourceLabelY"),oe)},re=function(oe){return G("target",I(oe,"targetLabelX","targetLabelY"),oe)},K=function(oe){return f(M(oe))},W=function(oe){return f(w(oe))},ae=function(oe){return f(k(oe))},ue=function(oe){var xe=L(oe),Le=f(L(oe));if(oe.isNode()){switch(oe.pstyle("text-halign").value){case"left":Le.x=-xe.w;break;case"right":Le.x=0;break}switch(oe.pstyle("text-valign").value){case"top":Le.y=-xe.h;break;case"bottom":Le.y=0;break}}return Le},me=e.data.eleTxrCache=new ja(e,{getKey:d,doesEleInvalidateKey:h,drawElement:g,getBoundingBox:M,getRotationPoint:F,getRotationOffset:K,allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),ie=e.data.lblTxrCache=new ja(e,{getKey:c,drawElement:m,getBoundingBox:L,getRotationPoint:X,getRotationOffset:ue,isVisible:D}),ge=e.data.slbTxrCache=new ja(e,{getKey:y,drawElement:b,getBoundingBox:w,getRotationPoint:B,getRotationOffset:W,isVisible:D}),Ee=e.data.tlbTxrCache=new ja(e,{getKey:p,drawElement:E,getBoundingBox:k,getRotationPoint:re,getRotationOffset:ae,isVisible:D}),Ce=e.data.lyrTxrCache=new yl(e);e.onUpdateEleCalcs(function(oe,xe){me.invalidateElements(xe),ie.invalidateElements(xe),ge.invalidateElements(xe),Ee.invalidateElements(xe),Ce.invalidateElements(xe);for(var Le=0;Le<xe.length;Le++){var Se=xe[Le]._private;Se.oldBackgroundTimestamp=Se.backgroundTimestamp}});var we=function(oe){for(var xe=0;xe<oe.length;xe++)Ce.enqueueElementRefinement(oe[xe].ele)};me.onDequeue(we),ie.onDequeue(we),ge.onDequeue(we),Ee.onDequeue(we)}ut.redrawHint=function(t,e){var r=this;switch(t){case"eles":r.data.canvasNeedsRedraw[ut.NODE]=e;break;case"drag":r.data.canvasNeedsRedraw[ut.DRAG]=e;break;case"select":r.data.canvasNeedsRedraw[ut.SELECT_BOX]=e;break}};var tp=typeof Path2D<"u";ut.path2dEnabled=function(t){if(t===void 0)return this.pathsEnabled;this.pathsEnabled=!!t},ut.usePaths=function(){return tp&&this.pathsEnabled},ut.setImgSmoothing=function(t,e){t.imageSmoothingEnabled!=null?t.imageSmoothingEnabled=e:(t.webkitImageSmoothingEnabled=e,t.mozImageSmoothingEnabled=e,t.msImageSmoothingEnabled=e)},ut.getImgSmoothing=function(t){return t.imageSmoothingEnabled!=null?t.imageSmoothingEnabled:t.webkitImageSmoothingEnabled||t.mozImageSmoothingEnabled||t.msImageSmoothingEnabled},ut.makeOffscreenCanvas=function(t,e){var r;return(typeof OffscreenCanvas>"u"?"undefined":_(OffscreenCanvas))!=="undefined"?r=new OffscreenCanvas(t,e):(r=document.createElement("canvas"),r.width=t,r.height=e),r},[bl,hr,br,Ui,_r,Ea,Kt,Mr,tn,Ol].forEach(function(t){He(ut,t)});var rp=[{name:"null",impl:tl},{name:"base",impl:cl},{name:"canvas",impl:ep}],ap=[{type:"layout",extensions:fg},{type:"renderer",extensions:rp}],Il={},Ml={};function Rl(t,e,r){var a=r,n=function(k){ht("Can not register `"+e+"` for `"+t+"` since `"+k+"` already exists in the prototype and can not be overridden")};if(t==="core"){if(Za.prototype[e])return n(e);Za.prototype[e]=r}else if(t==="collection"){if(Nt.prototype[e])return n(e);Nt.prototype[e]=r}else if(t==="layout"){for(var i=function(k){this.options=k,r.call(this,k),S(this._private)||(this._private={}),this._private.cy=k.cy,this._private.listeners=[],this.createEmitter()},o=i.prototype=Object.create(r.prototype),s=[],u=0;u<s.length;u++){var l=s[u];o[l]=o[l]||function(){return this}}o.start&&!o.run?o.run=function(){return this.start(),this}:!o.start&&o.run&&(o.start=function(){return this.run(),this});var v=r.prototype.stop;o.stop=function(){var w=this.options;if(w&&w.animate){var k=this.animations;if(k)for(var D=0;D<k.length;D++)k[D].stop()}return v?v.call(this):this.emit("layoutstop"),this},o.destroy||(o.destroy=function(){return this}),o.cy=function(){return this._private.cy};var f=function(k){return k._private.cy},h={addEventFields:function(k,D){D.layout=k,D.cy=f(k),D.target=k},bubble:function(){return!0},parent:function(k){return f(k)}};He(o,{createEmitter:function(){return this._private.emitter=new In(h,this),this},emitter:function(){return this._private.emitter},on:function(k,D){return this.emitter().on(k,D),this},one:function(k,D){return this.emitter().one(k,D),this},once:function(k,D){return this.emitter().one(k,D),this},removeListener:function(k,D){return this.emitter().removeListener(k,D),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},emit:function(k,D){return this.emitter().emit(k,D),this}}),ct.eventAliasesOn(o),a=i}else if(t==="renderer"&&e!=="null"&&e!=="base"){var d=kl("renderer","base"),c=d.prototype,y=r,p=r.prototype,g=function(){d.apply(this,arguments),y.apply(this,arguments)},m=g.prototype;for(var b in c){var E=c[b],M=p[b]!=null;if(M)return n(b);m[b]=E}for(var L in p)m[L]=p[L];c.clientFunctions.forEach(function(w){m[w]=m[w]||function(){xt("Renderer does not implement `renderer."+w+"()` on its prototype")}}),a=g}else if(t==="__proto__"||t==="constructor"||t==="prototype")return xt(t+" is an illegal type to be registered, possibly lead to prototype pollutions");return to({map:Il,keys:[t,e],value:a})}function kl(t,e){return ro({map:Il,keys:[t,e]})}function np(t,e,r,a,n){return to({map:Ml,keys:[t,e,r,a],value:n})}function ip(t,e,r,a){return ro({map:Ml,keys:[t,e,r,a]})}var Xi=function(){if(arguments.length===2)return kl.apply(null,arguments);if(arguments.length===3)return Rl.apply(null,arguments);if(arguments.length===4)return ip.apply(null,arguments);if(arguments.length===5)return np.apply(null,arguments);xt("Invalid extension access syntax")};Za.prototype.extension=Xi,ap.forEach(function(t){t.extensions.forEach(function(e){Rl(t.type,e.name,e.impl)})});var Pl=function t(){if(!(this instanceof t))return new t;this.length=0},Yr=Pl.prototype;Yr.instanceString=function(){return"stylesheet"},Yr.selector=function(t){var e=this.length++;return this[e]={selector:t,properties:[]},this},Yr.css=function(t,e){var r=this.length-1;if(ee(t))this[r].properties.push({name:t,value:e});else if(S(t))for(var a=t,n=Object.keys(a),i=0;i<n.length;i++){var o=n[i],s=a[o];if(s!=null){var u=Gt.properties[o]||Gt.properties[yt(o)];if(u!=null){var l=u.name,v=s;this[r].properties.push({name:l,value:v})}}}return this},Yr.style=Yr.css,Yr.generateStyle=function(t){var e=new Gt(t);return this.appendToStyle(e)},Yr.appendToStyle=function(t){for(var e=0;e<this.length;e++){var r=this[e],a=r.selector,n=r.properties;t.selector(a);for(var i=0;i<n.length;i++){var o=n[i];t.css(o.name,o.value)}}return t};var op="3.28.1",Hr=function(e){if(e===void 0&&(e={}),S(e))return new Za(e);if(ee(e))return Xi.apply(Xi,arguments)};return Hr.use=function(t){var e=Array.prototype.slice.call(arguments,1);return e.unshift(Hr),t.apply(null,e),this},Hr.warnings=function(t){return po(t)},Hr.version=op,Hr.stylesheet=Hr.Stylesheet=Pl,Hr})})(Yl);var Fp=Yl.exports;const Hl=Ul(Fp);var Xl={exports:{}},Ki={exports:{}},Zi={exports:{}},Vl;function Gp(){return Vl||(Vl=1,function(de,Pe){(function(ve,J){de.exports=J()})(Ca,function(){return function(_){var ve={};function J(C){if(ve[C])return ve[C].exports;var T=ve[C]={i:C,l:!1,exports:{}};return _[C].call(T.exports,T,T.exports,J),T.l=!0,T.exports}return J.m=_,J.c=ve,J.i=function(C){return C},J.d=function(C,T,x){J.o(C,T)||Object.defineProperty(C,T,{configurable:!1,enumerable:!0,get:x})},J.n=function(C){var T=C&&C.__esModule?function(){return C.default}:function(){return C};return J.d(T,"a",T),T},J.o=function(C,T){return Object.prototype.hasOwnProperty.call(C,T)},J.p="",J(J.s=26)}([function(_,ve,J){function C(){}C.QUALITY=1,C.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,C.DEFAULT_INCREMENTAL=!1,C.DEFAULT_ANIMATION_ON_LAYOUT=!0,C.DEFAULT_ANIMATION_DURING_LAYOUT=!1,C.DEFAULT_ANIMATION_PERIOD=50,C.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,C.DEFAULT_GRAPH_MARGIN=15,C.NODE_DIMENSIONS_INCLUDE_LABELS=!1,C.SIMPLE_NODE_SIZE=40,C.SIMPLE_NODE_HALF_SIZE=C.SIMPLE_NODE_SIZE/2,C.EMPTY_COMPOUND_NODE_SIZE=40,C.MIN_EDGE_LENGTH=1,C.WORLD_BOUNDARY=1e6,C.INITIAL_WORLD_BOUNDARY=C.WORLD_BOUNDARY/1e3,C.WORLD_CENTER_X=1200,C.WORLD_CENTER_Y=900,_.exports=C},function(_,ve,J){var C=J(2),T=J(8),x=J(9);function N(Y,P,Z){C.call(this,Z),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=Z,this.bendpoints=[],this.source=Y,this.target=P}N.prototype=Object.create(C.prototype);for(var z in C)N[z]=C[z];N.prototype.getSource=function(){return this.source},N.prototype.getTarget=function(){return this.target},N.prototype.isInterGraph=function(){return this.isInterGraph},N.prototype.getLength=function(){return this.length},N.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},N.prototype.getBendpoints=function(){return this.bendpoints},N.prototype.getLca=function(){return this.lca},N.prototype.getSourceInLca=function(){return this.sourceInLca},N.prototype.getTargetInLca=function(){return this.targetInLca},N.prototype.getOtherEnd=function(Y){if(this.source===Y)return this.target;if(this.target===Y)return this.source;throw"Node is not incident with this edge"},N.prototype.getOtherEndInGraph=function(Y,P){for(var Z=this.getOtherEnd(Y),A=P.getGraphManager().getRoot();;){if(Z.getOwner()==P)return Z;if(Z.getOwner()==A)break;Z=Z.getOwner().getParent()}return null},N.prototype.updateLength=function(){var Y=new Array(4);this.isOverlapingSourceAndTarget=T.getIntersection(this.target.getRect(),this.source.getRect(),Y),this.isOverlapingSourceAndTarget||(this.lengthX=Y[0]-Y[2],this.lengthY=Y[1]-Y[3],Math.abs(this.lengthX)<1&&(this.lengthX=x.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=x.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},N.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=x.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=x.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},_.exports=N},function(_,ve,J){function C(T){this.vGraphObject=T}_.exports=C},function(_,ve,J){var C=J(2),T=J(10),x=J(13),N=J(0),z=J(16),Y=J(4);function P(A,U,$,Q){$==null&&Q==null&&(Q=U),C.call(this,Q),A.graphManager!=null&&(A=A.graphManager),this.estimatedSize=T.MIN_VALUE,this.inclusionTreeDepth=T.MAX_VALUE,this.vGraphObject=Q,this.edges=[],this.graphManager=A,$!=null&&U!=null?this.rect=new x(U.x,U.y,$.width,$.height):this.rect=new x}P.prototype=Object.create(C.prototype);for(var Z in C)P[Z]=C[Z];P.prototype.getEdges=function(){return this.edges},P.prototype.getChild=function(){return this.child},P.prototype.getOwner=function(){return this.owner},P.prototype.getWidth=function(){return this.rect.width},P.prototype.setWidth=function(A){this.rect.width=A},P.prototype.getHeight=function(){return this.rect.height},P.prototype.setHeight=function(A){this.rect.height=A},P.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},P.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},P.prototype.getCenter=function(){return new Y(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},P.prototype.getLocation=function(){return new Y(this.rect.x,this.rect.y)},P.prototype.getRect=function(){return this.rect},P.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},P.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},P.prototype.setRect=function(A,U){this.rect.x=A.x,this.rect.y=A.y,this.rect.width=U.width,this.rect.height=U.height},P.prototype.setCenter=function(A,U){this.rect.x=A-this.rect.width/2,this.rect.y=U-this.rect.height/2},P.prototype.setLocation=function(A,U){this.rect.x=A,this.rect.y=U},P.prototype.moveBy=function(A,U){this.rect.x+=A,this.rect.y+=U},P.prototype.getEdgeListToNode=function(A){var U=[],$=this;return $.edges.forEach(function(Q){if(Q.target==A){if(Q.source!=$)throw"Incorrect edge source!";U.push(Q)}}),U},P.prototype.getEdgesBetween=function(A){var U=[],$=this;return $.edges.forEach(function(Q){if(!(Q.source==$||Q.target==$))throw"Incorrect edge source and/or target";(Q.target==A||Q.source==A)&&U.push(Q)}),U},P.prototype.getNeighborsList=function(){var A=new Set,U=this;return U.edges.forEach(function($){if($.source==U)A.add($.target);else{if($.target!=U)throw"Incorrect incidency!";A.add($.source)}}),A},P.prototype.withChildren=function(){var A=new Set,U,$;if(A.add(this),this.child!=null)for(var Q=this.child.getNodes(),ne=0;ne<Q.length;ne++)U=Q[ne],$=U.withChildren(),$.forEach(function(le){A.add(le)});return A},P.prototype.getNoOfChildren=function(){var A=0,U;if(this.child==null)A=1;else for(var $=this.child.getNodes(),Q=0;Q<$.length;Q++)U=$[Q],A+=U.getNoOfChildren();return A==0&&(A=1),A},P.prototype.getEstimatedSize=function(){if(this.estimatedSize==T.MIN_VALUE)throw"assert failed";return this.estimatedSize},P.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},P.prototype.scatter=function(){var A,U,$=-N.INITIAL_WORLD_BOUNDARY,Q=N.INITIAL_WORLD_BOUNDARY;A=N.WORLD_CENTER_X+z.nextDouble()*(Q-$)+$;var ne=-N.INITIAL_WORLD_BOUNDARY,le=N.INITIAL_WORLD_BOUNDARY;U=N.WORLD_CENTER_Y+z.nextDouble()*(le-ne)+ne,this.rect.x=A,this.rect.y=U},P.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var A=this.getChild();if(A.updateBounds(!0),this.rect.x=A.getLeft(),this.rect.y=A.getTop(),this.setWidth(A.getRight()-A.getLeft()),this.setHeight(A.getBottom()-A.getTop()),N.NODE_DIMENSIONS_INCLUDE_LABELS){var U=A.getRight()-A.getLeft(),$=A.getBottom()-A.getTop();this.labelWidth>U&&(this.rect.x-=(this.labelWidth-U)/2,this.setWidth(this.labelWidth)),this.labelHeight>$&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-$)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-$),this.setHeight(this.labelHeight))}}},P.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==T.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},P.prototype.transform=function(A){var U=this.rect.x;U>N.WORLD_BOUNDARY?U=N.WORLD_BOUNDARY:U<-N.WORLD_BOUNDARY&&(U=-N.WORLD_BOUNDARY);var $=this.rect.y;$>N.WORLD_BOUNDARY?$=N.WORLD_BOUNDARY:$<-N.WORLD_BOUNDARY&&($=-N.WORLD_BOUNDARY);var Q=new Y(U,$),ne=A.inverseTransformPoint(Q);this.setLocation(ne.x,ne.y)},P.prototype.getLeft=function(){return this.rect.x},P.prototype.getRight=function(){return this.rect.x+this.rect.width},P.prototype.getTop=function(){return this.rect.y},P.prototype.getBottom=function(){return this.rect.y+this.rect.height},P.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},_.exports=P},function(_,ve,J){function C(T,x){T==null&&x==null?(this.x=0,this.y=0):(this.x=T,this.y=x)}C.prototype.getX=function(){return this.x},C.prototype.getY=function(){return this.y},C.prototype.setX=function(T){this.x=T},C.prototype.setY=function(T){this.y=T},C.prototype.getDifference=function(T){return new DimensionD(this.x-T.x,this.y-T.y)},C.prototype.getCopy=function(){return new C(this.x,this.y)},C.prototype.translate=function(T){return this.x+=T.width,this.y+=T.height,this},_.exports=C},function(_,ve,J){var C=J(2),T=J(10),x=J(0),N=J(6),z=J(3),Y=J(1),P=J(13),Z=J(12),A=J(11);function U(Q,ne,le){C.call(this,le),this.estimatedSize=T.MIN_VALUE,this.margin=x.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=Q,ne!=null&&ne instanceof N?this.graphManager=ne:ne!=null&&ne instanceof Layout&&(this.graphManager=ne.graphManager)}U.prototype=Object.create(C.prototype);for(var $ in C)U[$]=C[$];U.prototype.getNodes=function(){return this.nodes},U.prototype.getEdges=function(){return this.edges},U.prototype.getGraphManager=function(){return this.graphManager},U.prototype.getParent=function(){return this.parent},U.prototype.getLeft=function(){return this.left},U.prototype.getRight=function(){return this.right},U.prototype.getTop=function(){return this.top},U.prototype.getBottom=function(){return this.bottom},U.prototype.isConnected=function(){return this.isConnected},U.prototype.add=function(Q,ne,le){if(ne==null&&le==null){var j=Q;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(j)>-1)throw"Node already in graph!";return j.owner=this,this.getNodes().push(j),j}else{var ee=Q;if(!(this.getNodes().indexOf(ne)>-1&&this.getNodes().indexOf(le)>-1))throw"Source or target not in graph!";if(!(ne.owner==le.owner&&ne.owner==this))throw"Both owners must be this graph!";return ne.owner!=le.owner?null:(ee.source=ne,ee.target=le,ee.isInterGraph=!1,this.getEdges().push(ee),ne.edges.push(ee),le!=ne&&le.edges.push(ee),ee)}},U.prototype.remove=function(Q){var ne=Q;if(Q instanceof z){if(ne==null)throw"Node is null!";if(!(ne.owner!=null&&ne.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var le=ne.edges.slice(),j,ee=le.length,H=0;H<ee;H++)j=le[H],j.isInterGraph?this.graphManager.remove(j):j.source.owner.remove(j);var te=this.nodes.indexOf(ne);if(te==-1)throw"Node not in owner node list!";this.nodes.splice(te,1)}else if(Q instanceof Y){var j=Q;if(j==null)throw"Edge is null!";if(!(j.source!=null&&j.target!=null))throw"Source and/or target is null!";if(!(j.source.owner!=null&&j.target.owner!=null&&j.source.owner==this&&j.target.owner==this))throw"Source and/or target owner is invalid!";var S=j.source.edges.indexOf(j),V=j.target.edges.indexOf(j);if(!(S>-1&&V>-1))throw"Source and/or target doesn't know this edge!";j.source.edges.splice(S,1),j.target!=j.source&&j.target.edges.splice(V,1);var te=j.source.owner.getEdges().indexOf(j);if(te==-1)throw"Not in owner's edge list!";j.source.owner.getEdges().splice(te,1)}},U.prototype.updateLeftTop=function(){for(var Q=T.MAX_VALUE,ne=T.MAX_VALUE,le,j,ee,H=this.getNodes(),te=H.length,S=0;S<te;S++){var V=H[S];le=V.getTop(),j=V.getLeft(),Q>le&&(Q=le),ne>j&&(ne=j)}return Q==T.MAX_VALUE?null:(H[0].getParent().paddingLeft!=null?ee=H[0].getParent().paddingLeft:ee=this.margin,this.left=ne-ee,this.top=Q-ee,new Z(this.left,this.top))},U.prototype.updateBounds=function(Q){for(var ne=T.MAX_VALUE,le=-T.MAX_VALUE,j=T.MAX_VALUE,ee=-T.MAX_VALUE,H,te,S,V,R,q=this.nodes,he=q.length,pe=0;pe<he;pe++){var Ae=q[pe];Q&&Ae.child!=null&&Ae.updateBounds(),H=Ae.getLeft(),te=Ae.getRight(),S=Ae.getTop(),V=Ae.getBottom(),ne>H&&(ne=H),le<te&&(le=te),j>S&&(j=S),ee<V&&(ee=V)}var Ne=new P(ne,j,le-ne,ee-j);ne==T.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),q[0].getParent().paddingLeft!=null?R=q[0].getParent().paddingLeft:R=this.margin,this.left=Ne.x-R,this.right=Ne.x+Ne.width+R,this.top=Ne.y-R,this.bottom=Ne.y+Ne.height+R},U.calculateBounds=function(Q){for(var ne=T.MAX_VALUE,le=-T.MAX_VALUE,j=T.MAX_VALUE,ee=-T.MAX_VALUE,H,te,S,V,R=Q.length,q=0;q<R;q++){var he=Q[q];H=he.getLeft(),te=he.getRight(),S=he.getTop(),V=he.getBottom(),ne>H&&(ne=H),le<te&&(le=te),j>S&&(j=S),ee<V&&(ee=V)}var pe=new P(ne,j,le-ne,ee-j);return pe},U.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},U.prototype.getEstimatedSize=function(){if(this.estimatedSize==T.MIN_VALUE)throw"assert failed";return this.estimatedSize},U.prototype.calcEstimatedSize=function(){for(var Q=0,ne=this.nodes,le=ne.length,j=0;j<le;j++){var ee=ne[j];Q+=ee.calcEstimatedSize()}return Q==0?this.estimatedSize=x.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=Q/Math.sqrt(this.nodes.length),this.estimatedSize},U.prototype.updateConnected=function(){var Q=this;if(this.nodes.length==0){this.isConnected=!0;return}var ne=new A,le=new Set,j=this.nodes[0],ee,H,te=j.withChildren();for(te.forEach(function(pe){ne.push(pe),le.add(pe)});ne.length!==0;){j=ne.shift(),ee=j.getEdges();for(var S=ee.length,V=0;V<S;V++){var R=ee[V];if(H=R.getOtherEndInGraph(j,this),H!=null&&!le.has(H)){var q=H.withChildren();q.forEach(function(pe){ne.push(pe),le.add(pe)})}}}if(this.isConnected=!1,le.size>=this.nodes.length){var he=0;le.forEach(function(pe){pe.owner==Q&&he++}),he==this.nodes.length&&(this.isConnected=!0)}},_.exports=U},function(_,ve,J){var C,T=J(1);function x(N){C=J(5),this.layout=N,this.graphs=[],this.edges=[]}x.prototype.addRoot=function(){var N=this.layout.newGraph(),z=this.layout.newNode(null),Y=this.add(N,z);return this.setRootGraph(Y),this.rootGraph},x.prototype.add=function(N,z,Y,P,Z){if(Y==null&&P==null&&Z==null){if(N==null)throw"Graph is null!";if(z==null)throw"Parent node is null!";if(this.graphs.indexOf(N)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(N),N.parent!=null)throw"Already has a parent!";if(z.child!=null)throw"Already has a child!";return N.parent=z,z.child=N,N}else{Z=Y,P=z,Y=N;var A=P.getOwner(),U=Z.getOwner();if(!(A!=null&&A.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(U!=null&&U.getGraphManager()==this))throw"Target not in this graph mgr!";if(A==U)return Y.isInterGraph=!1,A.add(Y,P,Z);if(Y.isInterGraph=!0,Y.source=P,Y.target=Z,this.edges.indexOf(Y)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(Y),!(Y.source!=null&&Y.target!=null))throw"Edge source and/or target is null!";if(!(Y.source.edges.indexOf(Y)==-1&&Y.target.edges.indexOf(Y)==-1))throw"Edge already in source and/or target incidency list!";return Y.source.edges.push(Y),Y.target.edges.push(Y),Y}},x.prototype.remove=function(N){if(N instanceof C){var z=N;if(z.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(z==this.rootGraph||z.parent!=null&&z.parent.graphManager==this))throw"Invalid parent node!";var Y=[];Y=Y.concat(z.getEdges());for(var P,Z=Y.length,A=0;A<Z;A++)P=Y[A],z.remove(P);var U=[];U=U.concat(z.getNodes());var $;Z=U.length;for(var A=0;A<Z;A++)$=U[A],z.remove($);z==this.rootGraph&&this.setRootGraph(null);var Q=this.graphs.indexOf(z);this.graphs.splice(Q,1),z.parent=null}else if(N instanceof T){if(P=N,P==null)throw"Edge is null!";if(!P.isInterGraph)throw"Not an inter-graph edge!";if(!(P.source!=null&&P.target!=null))throw"Source and/or target is null!";if(!(P.source.edges.indexOf(P)!=-1&&P.target.edges.indexOf(P)!=-1))throw"Source and/or target doesn't know this edge!";var Q=P.source.edges.indexOf(P);if(P.source.edges.splice(Q,1),Q=P.target.edges.indexOf(P),P.target.edges.splice(Q,1),!(P.source.owner!=null&&P.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(P.source.owner.getGraphManager().edges.indexOf(P)==-1)throw"Not in owner graph manager's edge list!";var Q=P.source.owner.getGraphManager().edges.indexOf(P);P.source.owner.getGraphManager().edges.splice(Q,1)}},x.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},x.prototype.getGraphs=function(){return this.graphs},x.prototype.getAllNodes=function(){if(this.allNodes==null){for(var N=[],z=this.getGraphs(),Y=z.length,P=0;P<Y;P++)N=N.concat(z[P].getNodes());this.allNodes=N}return this.allNodes},x.prototype.resetAllNodes=function(){this.allNodes=null},x.prototype.resetAllEdges=function(){this.allEdges=null},x.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},x.prototype.getAllEdges=function(){if(this.allEdges==null){var N=[],z=this.getGraphs();z.length;for(var Y=0;Y<z.length;Y++)N=N.concat(z[Y].getEdges());N=N.concat(this.edges),this.allEdges=N}return this.allEdges},x.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},x.prototype.setAllNodesToApplyGravitation=function(N){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=N},x.prototype.getRoot=function(){return this.rootGraph},x.prototype.setRootGraph=function(N){if(N.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=N,N.parent==null&&(N.parent=this.layout.newNode("Root node"))},x.prototype.getLayout=function(){return this.layout},x.prototype.isOneAncestorOfOther=function(N,z){if(!(N!=null&&z!=null))throw"assert failed";if(N==z)return!0;var Y=N.getOwner(),P;do{if(P=Y.getParent(),P==null)break;if(P==z)return!0;if(Y=P.getOwner(),Y==null)break}while(!0);Y=z.getOwner();do{if(P=Y.getParent(),P==null)break;if(P==N)return!0;if(Y=P.getOwner(),Y==null)break}while(!0);return!1},x.prototype.calcLowestCommonAncestors=function(){for(var N,z,Y,P,Z,A=this.getAllEdges(),U=A.length,$=0;$<U;$++){if(N=A[$],z=N.source,Y=N.target,N.lca=null,N.sourceInLca=z,N.targetInLca=Y,z==Y){N.lca=z.getOwner();continue}for(P=z.getOwner();N.lca==null;){for(N.targetInLca=Y,Z=Y.getOwner();N.lca==null;){if(Z==P){N.lca=Z;break}if(Z==this.rootGraph)break;if(N.lca!=null)throw"assert failed";N.targetInLca=Z.getParent(),Z=N.targetInLca.getOwner()}if(P==this.rootGraph)break;N.lca==null&&(N.sourceInLca=P.getParent(),P=N.sourceInLca.getOwner())}if(N.lca==null)throw"assert failed"}},x.prototype.calcLowestCommonAncestor=function(N,z){if(N==z)return N.getOwner();var Y=N.getOwner();do{if(Y==null)break;var P=z.getOwner();do{if(P==null)break;if(P==Y)return P;P=P.getParent().getOwner()}while(!0);Y=Y.getParent().getOwner()}while(!0);return Y},x.prototype.calcInclusionTreeDepths=function(N,z){N==null&&z==null&&(N=this.rootGraph,z=1);for(var Y,P=N.getNodes(),Z=P.length,A=0;A<Z;A++)Y=P[A],Y.inclusionTreeDepth=z,Y.child!=null&&this.calcInclusionTreeDepths(Y.child,z+1)},x.prototype.includesInvalidEdge=function(){for(var N,z=this.edges.length,Y=0;Y<z;Y++)if(N=this.edges[Y],this.isOneAncestorOfOther(N.source,N.target))return!0;return!1},_.exports=x},function(_,ve,J){var C=J(0);function T(){}for(var x in C)T[x]=C[x];T.MAX_ITERATIONS=2500,T.DEFAULT_EDGE_LENGTH=50,T.DEFAULT_SPRING_STRENGTH=.45,T.DEFAULT_REPULSION_STRENGTH=4500,T.DEFAULT_GRAVITY_STRENGTH=.4,T.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,T.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,T.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,T.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,T.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,T.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,T.COOLING_ADAPTATION_FACTOR=.33,T.ADAPTATION_LOWER_NODE_LIMIT=1e3,T.ADAPTATION_UPPER_NODE_LIMIT=5e3,T.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,T.MAX_NODE_DISPLACEMENT=T.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,T.MIN_REPULSION_DIST=T.DEFAULT_EDGE_LENGTH/10,T.CONVERGENCE_CHECK_PERIOD=100,T.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,T.MIN_EDGE_LENGTH=1,T.GRID_CALCULATION_CHECK_PERIOD=10,_.exports=T},function(_,ve,J){var C=J(12);function T(){}T.calcSeparationAmount=function(x,N,z,Y){if(!x.intersects(N))throw"assert failed";var P=new Array(2);this.decideDirectionsForOverlappingNodes(x,N,P),z[0]=Math.min(x.getRight(),N.getRight())-Math.max(x.x,N.x),z[1]=Math.min(x.getBottom(),N.getBottom())-Math.max(x.y,N.y),x.getX()<=N.getX()&&x.getRight()>=N.getRight()?z[0]+=Math.min(N.getX()-x.getX(),x.getRight()-N.getRight()):N.getX()<=x.getX()&&N.getRight()>=x.getRight()&&(z[0]+=Math.min(x.getX()-N.getX(),N.getRight()-x.getRight())),x.getY()<=N.getY()&&x.getBottom()>=N.getBottom()?z[1]+=Math.min(N.getY()-x.getY(),x.getBottom()-N.getBottom()):N.getY()<=x.getY()&&N.getBottom()>=x.getBottom()&&(z[1]+=Math.min(x.getY()-N.getY(),N.getBottom()-x.getBottom()));var Z=Math.abs((N.getCenterY()-x.getCenterY())/(N.getCenterX()-x.getCenterX()));N.getCenterY()===x.getCenterY()&&N.getCenterX()===x.getCenterX()&&(Z=1);var A=Z*z[0],U=z[1]/Z;z[0]<U?U=z[0]:A=z[1],z[0]=-1*P[0]*(U/2+Y),z[1]=-1*P[1]*(A/2+Y)},T.decideDirectionsForOverlappingNodes=function(x,N,z){x.getCenterX()<N.getCenterX()?z[0]=-1:z[0]=1,x.getCenterY()<N.getCenterY()?z[1]=-1:z[1]=1},T.getIntersection2=function(x,N,z){var Y=x.getCenterX(),P=x.getCenterY(),Z=N.getCenterX(),A=N.getCenterY();if(x.intersects(N))return z[0]=Y,z[1]=P,z[2]=Z,z[3]=A,!0;var U=x.getX(),$=x.getY(),Q=x.getRight(),ne=x.getX(),le=x.getBottom(),j=x.getRight(),ee=x.getWidthHalf(),H=x.getHeightHalf(),te=N.getX(),S=N.getY(),V=N.getRight(),R=N.getX(),q=N.getBottom(),he=N.getRight(),pe=N.getWidthHalf(),Ae=N.getHeightHalf(),Ne=!1,Ye=!1;if(Y===Z){if(P>A)return z[0]=Y,z[1]=$,z[2]=Z,z[3]=q,!1;if(P<A)return z[0]=Y,z[1]=le,z[2]=Z,z[3]=S,!1}else if(P===A){if(Y>Z)return z[0]=U,z[1]=P,z[2]=V,z[3]=A,!1;if(Y<Z)return z[0]=Q,z[1]=P,z[2]=te,z[3]=A,!1}else{var at=x.height/x.width,dt=N.height/N.width,Re=(A-P)/(Z-Y),Ve=void 0,Ze=void 0,nt=void 0,ft=void 0,it=void 0,tt=void 0;if(-at===Re?Y>Z?(z[0]=ne,z[1]=le,Ne=!0):(z[0]=Q,z[1]=$,Ne=!0):at===Re&&(Y>Z?(z[0]=U,z[1]=$,Ne=!0):(z[0]=j,z[1]=le,Ne=!0)),-dt===Re?Z>Y?(z[2]=R,z[3]=q,Ye=!0):(z[2]=V,z[3]=S,Ye=!0):dt===Re&&(Z>Y?(z[2]=te,z[3]=S,Ye=!0):(z[2]=he,z[3]=q,Ye=!0)),Ne&&Ye)return!1;if(Y>Z?P>A?(Ve=this.getCardinalDirection(at,Re,4),Ze=this.getCardinalDirection(dt,Re,2)):(Ve=this.getCardinalDirection(-at,Re,3),Ze=this.getCardinalDirection(-dt,Re,1)):P>A?(Ve=this.getCardinalDirection(-at,Re,1),Ze=this.getCardinalDirection(-dt,Re,3)):(Ve=this.getCardinalDirection(at,Re,2),Ze=this.getCardinalDirection(dt,Re,4)),!Ne)switch(Ve){case 1:ft=$,nt=Y+-H/Re,z[0]=nt,z[1]=ft;break;case 2:nt=j,ft=P+ee*Re,z[0]=nt,z[1]=ft;break;case 3:ft=le,nt=Y+H/Re,z[0]=nt,z[1]=ft;break;case 4:nt=ne,ft=P+-ee*Re,z[0]=nt,z[1]=ft;break}if(!Ye)switch(Ze){case 1:tt=S,it=Z+-Ae/Re,z[2]=it,z[3]=tt;break;case 2:it=he,tt=A+pe*Re,z[2]=it,z[3]=tt;break;case 3:tt=q,it=Z+Ae/Re,z[2]=it,z[3]=tt;break;case 4:it=R,tt=A+-pe*Re,z[2]=it,z[3]=tt;break}}return!1},T.getCardinalDirection=function(x,N,z){return x>N?z:1+z%4},T.getIntersection=function(x,N,z,Y){if(Y==null)return this.getIntersection2(x,N,z);var P=x.x,Z=x.y,A=N.x,U=N.y,$=z.x,Q=z.y,ne=Y.x,le=Y.y,j=void 0,ee=void 0,H=void 0,te=void 0,S=void 0,V=void 0,R=void 0,q=void 0,he=void 0;return H=U-Z,S=P-A,R=A*Z-P*U,te=le-Q,V=$-ne,q=ne*Q-$*le,he=H*V-te*S,he===0?null:(j=(S*q-V*R)/he,ee=(te*R-H*q)/he,new C(j,ee))},T.angleOfVector=function(x,N,z,Y){var P=void 0;return x!==z?(P=Math.atan((Y-N)/(z-x)),z<x?P+=Math.PI:Y<N&&(P+=this.TWO_PI)):Y<N?P=this.ONE_AND_HALF_PI:P=this.HALF_PI,P},T.doIntersect=function(x,N,z,Y){var P=x.x,Z=x.y,A=N.x,U=N.y,$=z.x,Q=z.y,ne=Y.x,le=Y.y,j=(A-P)*(le-Q)-(ne-$)*(U-Z);if(j===0)return!1;var ee=((le-Q)*(ne-P)+($-ne)*(le-Z))/j,H=((Z-U)*(ne-P)+(A-P)*(le-Z))/j;return 0<ee&&ee<1&&0<H&&H<1},T.HALF_PI=.5*Math.PI,T.ONE_AND_HALF_PI=1.5*Math.PI,T.TWO_PI=2*Math.PI,T.THREE_PI=3*Math.PI,_.exports=T},function(_,ve,J){function C(){}C.sign=function(T){return T>0?1:T<0?-1:0},C.floor=function(T){return T<0?Math.ceil(T):Math.floor(T)},C.ceil=function(T){return T<0?Math.floor(T):Math.ceil(T)},_.exports=C},function(_,ve,J){function C(){}C.MAX_VALUE=2147483647,C.MIN_VALUE=-2147483648,_.exports=C},function(_,ve,J){var C=function(){function P(Z,A){for(var U=0;U<A.length;U++){var $=A[U];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(Z,$.key,$)}}return function(Z,A,U){return A&&P(Z.prototype,A),U&&P(Z,U),Z}}();function T(P,Z){if(!(P instanceof Z))throw new TypeError("Cannot call a class as a function")}var x=function(Z){return{value:Z,next:null,prev:null}},N=function(Z,A,U,$){return Z!==null?Z.next=A:$.head=A,U!==null?U.prev=A:$.tail=A,A.prev=Z,A.next=U,$.length++,A},z=function(Z,A){var U=Z.prev,$=Z.next;return U!==null?U.next=$:A.head=$,$!==null?$.prev=U:A.tail=U,Z.prev=Z.next=null,A.length--,Z},Y=function(){function P(Z){var A=this;T(this,P),this.length=0,this.head=null,this.tail=null,Z!=null&&Z.forEach(function(U){return A.push(U)})}return C(P,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(A,U){return N(U.prev,x(A),U,this)}},{key:"insertAfter",value:function(A,U){return N(U,x(A),U.next,this)}},{key:"insertNodeBefore",value:function(A,U){return N(U.prev,A,U,this)}},{key:"insertNodeAfter",value:function(A,U){return N(U,A,U.next,this)}},{key:"push",value:function(A){return N(this.tail,x(A),null,this)}},{key:"unshift",value:function(A){return N(null,x(A),this.head,this)}},{key:"remove",value:function(A){return z(A,this)}},{key:"pop",value:function(){return z(this.tail,this).value}},{key:"popNode",value:function(){return z(this.tail,this)}},{key:"shift",value:function(){return z(this.head,this).value}},{key:"shiftNode",value:function(){return z(this.head,this)}},{key:"get_object_at",value:function(A){if(A<=this.length()){for(var U=1,$=this.head;U<A;)$=$.next,U++;return $.value}}},{key:"set_object_at",value:function(A,U){if(A<=this.length()){for(var $=1,Q=this.head;$<A;)Q=Q.next,$++;Q.value=U}}}]),P}();_.exports=Y},function(_,ve,J){function C(T,x,N){this.x=null,this.y=null,T==null&&x==null&&N==null?(this.x=0,this.y=0):typeof T=="number"&&typeof x=="number"&&N==null?(this.x=T,this.y=x):T.constructor.name=="Point"&&x==null&&N==null&&(N=T,this.x=N.x,this.y=N.y)}C.prototype.getX=function(){return this.x},C.prototype.getY=function(){return this.y},C.prototype.getLocation=function(){return new C(this.x,this.y)},C.prototype.setLocation=function(T,x,N){T.constructor.name=="Point"&&x==null&&N==null?(N=T,this.setLocation(N.x,N.y)):typeof T=="number"&&typeof x=="number"&&N==null&&(parseInt(T)==T&&parseInt(x)==x?this.move(T,x):(this.x=Math.floor(T+.5),this.y=Math.floor(x+.5)))},C.prototype.move=function(T,x){this.x=T,this.y=x},C.prototype.translate=function(T,x){this.x+=T,this.y+=x},C.prototype.equals=function(T){if(T.constructor.name=="Point"){var x=T;return this.x==x.x&&this.y==x.y}return this==T},C.prototype.toString=function(){return new C().constructor.name+"[x="+this.x+",y="+this.y+"]"},_.exports=C},function(_,ve,J){function C(T,x,N,z){this.x=0,this.y=0,this.width=0,this.height=0,T!=null&&x!=null&&N!=null&&z!=null&&(this.x=T,this.y=x,this.width=N,this.height=z)}C.prototype.getX=function(){return this.x},C.prototype.setX=function(T){this.x=T},C.prototype.getY=function(){return this.y},C.prototype.setY=function(T){this.y=T},C.prototype.getWidth=function(){return this.width},C.prototype.setWidth=function(T){this.width=T},C.prototype.getHeight=function(){return this.height},C.prototype.setHeight=function(T){this.height=T},C.prototype.getRight=function(){return this.x+this.width},C.prototype.getBottom=function(){return this.y+this.height},C.prototype.intersects=function(T){return!(this.getRight()<T.x||this.getBottom()<T.y||T.getRight()<this.x||T.getBottom()<this.y)},C.prototype.getCenterX=function(){return this.x+this.width/2},C.prototype.getMinX=function(){return this.getX()},C.prototype.getMaxX=function(){return this.getX()+this.width},C.prototype.getCenterY=function(){return this.y+this.height/2},C.prototype.getMinY=function(){return this.getY()},C.prototype.getMaxY=function(){return this.getY()+this.height},C.prototype.getWidthHalf=function(){return this.width/2},C.prototype.getHeightHalf=function(){return this.height/2},_.exports=C},function(_,ve,J){var C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x};function T(){}T.lastID=0,T.createID=function(x){return T.isPrimitive(x)?x:(x.uniqueID!=null||(x.uniqueID=T.getString(),T.lastID++),x.uniqueID)},T.getString=function(x){return x==null&&(x=T.lastID),"Object#"+x},T.isPrimitive=function(x){var N=typeof x>"u"?"undefined":C(x);return x==null||N!="object"&&N!="function"},_.exports=T},function(_,ve,J){function C($){if(Array.isArray($)){for(var Q=0,ne=Array($.length);Q<$.length;Q++)ne[Q]=$[Q];return ne}else return Array.from($)}var T=J(0),x=J(6),N=J(3),z=J(1),Y=J(5),P=J(4),Z=J(17),A=J(27);function U($){A.call(this),this.layoutQuality=T.QUALITY,this.createBendsAsNeeded=T.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=T.DEFAULT_INCREMENTAL,this.animationOnLayout=T.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=T.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=T.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=T.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new x(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,$!=null&&(this.isRemoteUse=$)}U.RANDOM_SEED=1,U.prototype=Object.create(A.prototype),U.prototype.getGraphManager=function(){return this.graphManager},U.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},U.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},U.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},U.prototype.newGraphManager=function(){var $=new x(this);return this.graphManager=$,$},U.prototype.newGraph=function($){return new Y(null,this.graphManager,$)},U.prototype.newNode=function($){return new N(this.graphManager,$)},U.prototype.newEdge=function($){return new z(null,null,$)},U.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},U.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var $;return this.checkLayoutSuccess()?$=!1:$=this.layout(),T.ANIMATE==="during"?!1:($&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,$)},U.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},U.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var $=this.graphManager.getAllEdges(),Q=0;Q<$.length;Q++)$[Q];for(var ne=this.graphManager.getRoot().getNodes(),Q=0;Q<ne.length;Q++)ne[Q];this.update(this.graphManager.getRoot())}},U.prototype.update=function($){if($==null)this.update2();else if($ instanceof N){var Q=$;if(Q.getChild()!=null)for(var ne=Q.getChild().getNodes(),le=0;le<ne.length;le++)update(ne[le]);if(Q.vGraphObject!=null){var j=Q.vGraphObject;j.update(Q)}}else if($ instanceof z){var ee=$;if(ee.vGraphObject!=null){var H=ee.vGraphObject;H.update(ee)}}else if($ instanceof Y){var te=$;if(te.vGraphObject!=null){var S=te.vGraphObject;S.update(te)}}},U.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=T.QUALITY,this.animationDuringLayout=T.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=T.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=T.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=T.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=T.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=T.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},U.prototype.transform=function($){if($==null)this.transform(new P(0,0));else{var Q=new Z,ne=this.graphManager.getRoot().updateLeftTop();if(ne!=null){Q.setWorldOrgX($.x),Q.setWorldOrgY($.y),Q.setDeviceOrgX(ne.x),Q.setDeviceOrgY(ne.y);for(var le=this.getAllNodes(),j,ee=0;ee<le.length;ee++)j=le[ee],j.transform(Q)}}},U.prototype.positionNodesRandomly=function($){if($==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var Q,ne,le=$.getNodes(),j=0;j<le.length;j++)Q=le[j],ne=Q.getChild(),ne==null||ne.getNodes().length==0?Q.scatter():(this.positionNodesRandomly(ne),Q.updateBounds())},U.prototype.getFlatForest=function(){for(var $=[],Q=!0,ne=this.graphManager.getRoot().getNodes(),le=!0,j=0;j<ne.length;j++)ne[j].getChild()!=null&&(le=!1);if(!le)return $;var ee=new Set,H=[],te=new Map,S=[];for(S=S.concat(ne);S.length>0&&Q;){for(H.push(S[0]);H.length>0&&Q;){var V=H[0];H.splice(0,1),ee.add(V);for(var R=V.getEdges(),j=0;j<R.length;j++){var q=R[j].getOtherEnd(V);if(te.get(V)!=q)if(!ee.has(q))H.push(q),te.set(q,V);else{Q=!1;break}}}if(!Q)$=[];else{var he=[].concat(C(ee));$.push(he);for(var j=0;j<he.length;j++){var pe=he[j],Ae=S.indexOf(pe);Ae>-1&&S.splice(Ae,1)}ee=new Set,te=new Map}}return $},U.prototype.createDummyNodesForBendpoints=function($){for(var Q=[],ne=$.source,le=this.graphManager.calcLowestCommonAncestor($.source,$.target),j=0;j<$.bendpoints.length;j++){var ee=this.newNode(null);ee.setRect(new Point(0,0),new Dimension(1,1)),le.add(ee);var H=this.newEdge(null);this.graphManager.add(H,ne,ee),Q.add(ee),ne=ee}var H=this.newEdge(null);return this.graphManager.add(H,ne,$.target),this.edgeToDummyNodes.set($,Q),$.isInterGraph()?this.graphManager.remove($):le.remove($),Q},U.prototype.createBendpointsFromDummyNodes=function(){var $=[];$=$.concat(this.graphManager.getAllEdges()),$=[].concat(C(this.edgeToDummyNodes.keys())).concat($);for(var Q=0;Q<$.length;Q++){var ne=$[Q];if(ne.bendpoints.length>0){for(var le=this.edgeToDummyNodes.get(ne),j=0;j<le.length;j++){var ee=le[j],H=new P(ee.getCenterX(),ee.getCenterY()),te=ne.bendpoints.get(j);te.x=H.x,te.y=H.y,ee.getOwner().remove(ee)}this.graphManager.add(ne,ne.source,ne.target)}}},U.transform=function($,Q,ne,le){if(ne!=null&&le!=null){var j=Q;if($<=50){var ee=Q/ne;j-=(Q-ee)/50*(50-$)}else{var H=Q*le;j+=(H-Q)/50*($-50)}return j}else{var te,S;return $<=50?(te=9*Q/500,S=Q/10):(te=9*Q/50,S=-8*Q),te*$+S}},U.findCenterOfTree=function($){var Q=[];Q=Q.concat($);var ne=[],le=new Map,j=!1,ee=null;(Q.length==1||Q.length==2)&&(j=!0,ee=Q[0]);for(var H=0;H<Q.length;H++){var te=Q[H],S=te.getNeighborsList().size;le.set(te,te.getNeighborsList().size),S==1&&ne.push(te)}var V=[];for(V=V.concat(ne);!j;){var R=[];R=R.concat(V),V=[];for(var H=0;H<Q.length;H++){var te=Q[H],q=Q.indexOf(te);q>=0&&Q.splice(q,1);var he=te.getNeighborsList();he.forEach(function(Ne){if(ne.indexOf(Ne)<0){var Ye=le.get(Ne),at=Ye-1;at==1&&V.push(Ne),le.set(Ne,at)}})}ne=ne.concat(V),(Q.length==1||Q.length==2)&&(j=!0,ee=Q[0])}return ee},U.prototype.setGraphManager=function($){this.graphManager=$},_.exports=U},function(_,ve,J){function C(){}C.seed=1,C.x=0,C.nextDouble=function(){return C.x=Math.sin(C.seed++)*1e4,C.x-Math.floor(C.x)},_.exports=C},function(_,ve,J){var C=J(4);function T(x,N){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}T.prototype.getWorldOrgX=function(){return this.lworldOrgX},T.prototype.setWorldOrgX=function(x){this.lworldOrgX=x},T.prototype.getWorldOrgY=function(){return this.lworldOrgY},T.prototype.setWorldOrgY=function(x){this.lworldOrgY=x},T.prototype.getWorldExtX=function(){return this.lworldExtX},T.prototype.setWorldExtX=function(x){this.lworldExtX=x},T.prototype.getWorldExtY=function(){return this.lworldExtY},T.prototype.setWorldExtY=function(x){this.lworldExtY=x},T.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},T.prototype.setDeviceOrgX=function(x){this.ldeviceOrgX=x},T.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},T.prototype.setDeviceOrgY=function(x){this.ldeviceOrgY=x},T.prototype.getDeviceExtX=function(){return this.ldeviceExtX},T.prototype.setDeviceExtX=function(x){this.ldeviceExtX=x},T.prototype.getDeviceExtY=function(){return this.ldeviceExtY},T.prototype.setDeviceExtY=function(x){this.ldeviceExtY=x},T.prototype.transformX=function(x){var N=0,z=this.lworldExtX;return z!=0&&(N=this.ldeviceOrgX+(x-this.lworldOrgX)*this.ldeviceExtX/z),N},T.prototype.transformY=function(x){var N=0,z=this.lworldExtY;return z!=0&&(N=this.ldeviceOrgY+(x-this.lworldOrgY)*this.ldeviceExtY/z),N},T.prototype.inverseTransformX=function(x){var N=0,z=this.ldeviceExtX;return z!=0&&(N=this.lworldOrgX+(x-this.ldeviceOrgX)*this.lworldExtX/z),N},T.prototype.inverseTransformY=function(x){var N=0,z=this.ldeviceExtY;return z!=0&&(N=this.lworldOrgY+(x-this.ldeviceOrgY)*this.lworldExtY/z),N},T.prototype.inverseTransformPoint=function(x){var N=new C(this.inverseTransformX(x.x),this.inverseTransformY(x.y));return N},_.exports=T},function(_,ve,J){function C(A){if(Array.isArray(A)){for(var U=0,$=Array(A.length);U<A.length;U++)$[U]=A[U];return $}else return Array.from(A)}var T=J(15),x=J(7),N=J(0),z=J(8),Y=J(9);function P(){T.call(this),this.useSmartIdealEdgeLengthCalculation=x.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=x.DEFAULT_EDGE_LENGTH,this.springConstant=x.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=x.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=x.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=x.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=x.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=x.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*x.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=x.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=x.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=x.MAX_ITERATIONS}P.prototype=Object.create(T.prototype);for(var Z in T)P[Z]=T[Z];P.prototype.initParameters=function(){T.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=x.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},P.prototype.calcIdealEdgeLengths=function(){for(var A,U,$,Q,ne,le,j=this.getGraphManager().getAllEdges(),ee=0;ee<j.length;ee++)A=j[ee],A.idealLength=this.idealEdgeLength,A.isInterGraph&&($=A.getSource(),Q=A.getTarget(),ne=A.getSourceInLca().getEstimatedSize(),le=A.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(A.idealLength+=ne+le-2*N.SIMPLE_NODE_SIZE),U=A.getLca().getInclusionTreeDepth(),A.idealLength+=x.DEFAULT_EDGE_LENGTH*x.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*($.getInclusionTreeDepth()+Q.getInclusionTreeDepth()-2*U))},P.prototype.initSpringEmbedder=function(){var A=this.getAllNodes().length;this.incremental?(A>x.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*x.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(A-x.ADAPTATION_LOWER_NODE_LIMIT)/(x.ADAPTATION_UPPER_NODE_LIMIT-x.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-x.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=x.MAX_NODE_DISPLACEMENT_INCREMENTAL):(A>x.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(x.COOLING_ADAPTATION_FACTOR,1-(A-x.ADAPTATION_LOWER_NODE_LIMIT)/(x.ADAPTATION_UPPER_NODE_LIMIT-x.ADAPTATION_LOWER_NODE_LIMIT)*(1-x.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=x.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},P.prototype.calcSpringForces=function(){for(var A=this.getAllEdges(),U,$=0;$<A.length;$++)U=A[$],this.calcSpringForce(U,U.idealLength)},P.prototype.calcRepulsionForces=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$,Q,ne,le,j=this.getAllNodes(),ee;if(this.useFRGridVariant)for(this.totalIterations%x.GRID_CALCULATION_CHECK_PERIOD==1&&A&&this.updateGrid(),ee=new Set,$=0;$<j.length;$++)ne=j[$],this.calculateRepulsionForceOfANode(ne,ee,A,U),ee.add(ne);else for($=0;$<j.length;$++)for(ne=j[$],Q=$+1;Q<j.length;Q++)le=j[Q],ne.getOwner()==le.getOwner()&&this.calcRepulsionForce(ne,le)},P.prototype.calcGravitationalForces=function(){for(var A,U=this.getAllNodesToApplyGravitation(),$=0;$<U.length;$++)A=U[$],this.calcGravitationalForce(A)},P.prototype.moveNodes=function(){for(var A=this.getAllNodes(),U,$=0;$<A.length;$++)U=A[$],U.move()},P.prototype.calcSpringForce=function(A,U){var $=A.getSource(),Q=A.getTarget(),ne,le,j,ee;if(this.uniformLeafNodeSizes&&$.getChild()==null&&Q.getChild()==null)A.updateLengthSimple();else if(A.updateLength(),A.isOverlapingSourceAndTarget)return;ne=A.getLength(),ne!=0&&(le=this.springConstant*(ne-U),j=le*(A.lengthX/ne),ee=le*(A.lengthY/ne),$.springForceX+=j,$.springForceY+=ee,Q.springForceX-=j,Q.springForceY-=ee)},P.prototype.calcRepulsionForce=function(A,U){var $=A.getRect(),Q=U.getRect(),ne=new Array(2),le=new Array(4),j,ee,H,te,S,V,R;if($.intersects(Q)){z.calcSeparationAmount($,Q,ne,x.DEFAULT_EDGE_LENGTH/2),V=2*ne[0],R=2*ne[1];var q=A.noOfChildren*U.noOfChildren/(A.noOfChildren+U.noOfChildren);A.repulsionForceX-=q*V,A.repulsionForceY-=q*R,U.repulsionForceX+=q*V,U.repulsionForceY+=q*R}else this.uniformLeafNodeSizes&&A.getChild()==null&&U.getChild()==null?(j=Q.getCenterX()-$.getCenterX(),ee=Q.getCenterY()-$.getCenterY()):(z.getIntersection($,Q,le),j=le[2]-le[0],ee=le[3]-le[1]),Math.abs(j)<x.MIN_REPULSION_DIST&&(j=Y.sign(j)*x.MIN_REPULSION_DIST),Math.abs(ee)<x.MIN_REPULSION_DIST&&(ee=Y.sign(ee)*x.MIN_REPULSION_DIST),H=j*j+ee*ee,te=Math.sqrt(H),S=this.repulsionConstant*A.noOfChildren*U.noOfChildren/H,V=S*j/te,R=S*ee/te,A.repulsionForceX-=V,A.repulsionForceY-=R,U.repulsionForceX+=V,U.repulsionForceY+=R},P.prototype.calcGravitationalForce=function(A){var U,$,Q,ne,le,j,ee,H;U=A.getOwner(),$=(U.getRight()+U.getLeft())/2,Q=(U.getTop()+U.getBottom())/2,ne=A.getCenterX()-$,le=A.getCenterY()-Q,j=Math.abs(ne)+A.getWidth()/2,ee=Math.abs(le)+A.getHeight()/2,A.getOwner()==this.graphManager.getRoot()?(H=U.getEstimatedSize()*this.gravityRangeFactor,(j>H||ee>H)&&(A.gravitationForceX=-this.gravityConstant*ne,A.gravitationForceY=-this.gravityConstant*le)):(H=U.getEstimatedSize()*this.compoundGravityRangeFactor,(j>H||ee>H)&&(A.gravitationForceX=-this.gravityConstant*ne*this.compoundGravityConstant,A.gravitationForceY=-this.gravityConstant*le*this.compoundGravityConstant))},P.prototype.isConverged=function(){var A,U=!1;return this.totalIterations>this.maxIterations/3&&(U=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),A=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,A||U},P.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},P.prototype.calcNoOfChildrenForAllNodes=function(){for(var A,U=this.graphManager.getAllNodes(),$=0;$<U.length;$++)A=U[$],A.noOfChildren=A.getNoOfChildren()},P.prototype.calcGrid=function(A){var U=0,$=0;U=parseInt(Math.ceil((A.getRight()-A.getLeft())/this.repulsionRange)),$=parseInt(Math.ceil((A.getBottom()-A.getTop())/this.repulsionRange));for(var Q=new Array(U),ne=0;ne<U;ne++)Q[ne]=new Array($);for(var ne=0;ne<U;ne++)for(var le=0;le<$;le++)Q[ne][le]=new Array;return Q},P.prototype.addNodeToGrid=function(A,U,$){var Q=0,ne=0,le=0,j=0;Q=parseInt(Math.floor((A.getRect().x-U)/this.repulsionRange)),ne=parseInt(Math.floor((A.getRect().width+A.getRect().x-U)/this.repulsionRange)),le=parseInt(Math.floor((A.getRect().y-$)/this.repulsionRange)),j=parseInt(Math.floor((A.getRect().height+A.getRect().y-$)/this.repulsionRange));for(var ee=Q;ee<=ne;ee++)for(var H=le;H<=j;H++)this.grid[ee][H].push(A),A.setGridCoordinates(Q,ne,le,j)},P.prototype.updateGrid=function(){var A,U,$=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),A=0;A<$.length;A++)U=$[A],this.addNodeToGrid(U,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},P.prototype.calculateRepulsionForceOfANode=function(A,U,$,Q){if(this.totalIterations%x.GRID_CALCULATION_CHECK_PERIOD==1&&$||Q){var ne=new Set;A.surrounding=new Array;for(var le,j=this.grid,ee=A.startX-1;ee<A.finishX+2;ee++)for(var H=A.startY-1;H<A.finishY+2;H++)if(!(ee<0||H<0||ee>=j.length||H>=j[0].length)){for(var te=0;te<j[ee][H].length;te++)if(le=j[ee][H][te],!(A.getOwner()!=le.getOwner()||A==le)&&!U.has(le)&&!ne.has(le)){var S=Math.abs(A.getCenterX()-le.getCenterX())-(A.getWidth()/2+le.getWidth()/2),V=Math.abs(A.getCenterY()-le.getCenterY())-(A.getHeight()/2+le.getHeight()/2);S<=this.repulsionRange&&V<=this.repulsionRange&&ne.add(le)}}A.surrounding=[].concat(C(ne))}for(ee=0;ee<A.surrounding.length;ee++)this.calcRepulsionForce(A,A.surrounding[ee])},P.prototype.calcRepulsionRange=function(){return 0},_.exports=P},function(_,ve,J){var C=J(1),T=J(7);function x(z,Y,P){C.call(this,z,Y,P),this.idealLength=T.DEFAULT_EDGE_LENGTH}x.prototype=Object.create(C.prototype);for(var N in C)x[N]=C[N];_.exports=x},function(_,ve,J){var C=J(3);function T(N,z,Y,P){C.call(this,N,z,Y,P),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}T.prototype=Object.create(C.prototype);for(var x in C)T[x]=C[x];T.prototype.setGridCoordinates=function(N,z,Y,P){this.startX=N,this.finishX=z,this.startY=Y,this.finishY=P},_.exports=T},function(_,ve,J){function C(T,x){this.width=0,this.height=0,T!==null&&x!==null&&(this.height=x,this.width=T)}C.prototype.getWidth=function(){return this.width},C.prototype.setWidth=function(T){this.width=T},C.prototype.getHeight=function(){return this.height},C.prototype.setHeight=function(T){this.height=T},_.exports=C},function(_,ve,J){var C=J(14);function T(){this.map={},this.keys=[]}T.prototype.put=function(x,N){var z=C.createID(x);this.contains(z)||(this.map[z]=N,this.keys.push(x))},T.prototype.contains=function(x){return C.createID(x),this.map[x]!=null},T.prototype.get=function(x){var N=C.createID(x);return this.map[N]},T.prototype.keySet=function(){return this.keys},_.exports=T},function(_,ve,J){var C=J(14);function T(){this.set={}}T.prototype.add=function(x){var N=C.createID(x);this.contains(N)||(this.set[N]=x)},T.prototype.remove=function(x){delete this.set[C.createID(x)]},T.prototype.clear=function(){this.set={}},T.prototype.contains=function(x){return this.set[C.createID(x)]==x},T.prototype.isEmpty=function(){return this.size()===0},T.prototype.size=function(){return Object.keys(this.set).length},T.prototype.addAllTo=function(x){for(var N=Object.keys(this.set),z=N.length,Y=0;Y<z;Y++)x.push(this.set[N[Y]])},T.prototype.size=function(){return Object.keys(this.set).length},T.prototype.addAll=function(x){for(var N=x.length,z=0;z<N;z++){var Y=x[z];this.add(Y)}},_.exports=T},function(_,ve,J){var C=function(){function z(Y,P){for(var Z=0;Z<P.length;Z++){var A=P[Z];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(Y,A.key,A)}}return function(Y,P,Z){return P&&z(Y.prototype,P),Z&&z(Y,Z),Y}}();function T(z,Y){if(!(z instanceof Y))throw new TypeError("Cannot call a class as a function")}var x=J(11),N=function(){function z(Y,P){T(this,z),(P!==null||P!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var Z=void 0;Y instanceof x?Z=Y.size():Z=Y.length,this._quicksort(Y,0,Z-1)}return C(z,[{key:"_quicksort",value:function(P,Z,A){if(Z<A){var U=this._partition(P,Z,A);this._quicksort(P,Z,U),this._quicksort(P,U+1,A)}}},{key:"_partition",value:function(P,Z,A){for(var U=this._get(P,Z),$=Z,Q=A;;){for(;this.compareFunction(U,this._get(P,Q));)Q--;for(;this.compareFunction(this._get(P,$),U);)$++;if($<Q)this._swap(P,$,Q),$++,Q--;else return Q}}},{key:"_get",value:function(P,Z){return P instanceof x?P.get_object_at(Z):P[Z]}},{key:"_set",value:function(P,Z,A){P instanceof x?P.set_object_at(Z,A):P[Z]=A}},{key:"_swap",value:function(P,Z,A){var U=this._get(P,Z);this._set(P,Z,this._get(P,A)),this._set(P,A,U)}},{key:"_defaultCompareFunction",value:function(P,Z){return Z>P}}]),z}();_.exports=N},function(_,ve,J){var C=function(){function N(z,Y){for(var P=0;P<Y.length;P++){var Z=Y[P];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(z,Z.key,Z)}}return function(z,Y,P){return Y&&N(z.prototype,Y),P&&N(z,P),z}}();function T(N,z){if(!(N instanceof z))throw new TypeError("Cannot call a class as a function")}var x=function(){function N(z,Y){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;T(this,N),this.sequence1=z,this.sequence2=Y,this.match_score=P,this.mismatch_penalty=Z,this.gap_penalty=A,this.iMax=z.length+1,this.jMax=Y.length+1,this.grid=new Array(this.iMax);for(var U=0;U<this.iMax;U++){this.grid[U]=new Array(this.jMax);for(var $=0;$<this.jMax;$++)this.grid[U][$]=0}this.tracebackGrid=new Array(this.iMax);for(var Q=0;Q<this.iMax;Q++){this.tracebackGrid[Q]=new Array(this.jMax);for(var ne=0;ne<this.jMax;ne++)this.tracebackGrid[Q][ne]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return C(N,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var Y=1;Y<this.jMax;Y++)this.grid[0][Y]=this.grid[0][Y-1]+this.gap_penalty,this.tracebackGrid[0][Y]=[!1,!1,!0];for(var P=1;P<this.iMax;P++)this.grid[P][0]=this.grid[P-1][0]+this.gap_penalty,this.tracebackGrid[P][0]=[!1,!0,!1];for(var Z=1;Z<this.iMax;Z++)for(var A=1;A<this.jMax;A++){var U=void 0;this.sequence1[Z-1]===this.sequence2[A-1]?U=this.grid[Z-1][A-1]+this.match_score:U=this.grid[Z-1][A-1]+this.mismatch_penalty;var $=this.grid[Z-1][A]+this.gap_penalty,Q=this.grid[Z][A-1]+this.gap_penalty,ne=[U,$,Q],le=this.arrayAllMaxIndexes(ne);this.grid[Z][A]=ne[le[0]],this.tracebackGrid[Z][A]=[le.includes(0),le.includes(1),le.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var Y=[];for(Y.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});Y[0];){var P=Y[0],Z=this.tracebackGrid[P.pos[0]][P.pos[1]];Z[0]&&Y.push({pos:[P.pos[0]-1,P.pos[1]-1],seq1:this.sequence1[P.pos[0]-1]+P.seq1,seq2:this.sequence2[P.pos[1]-1]+P.seq2}),Z[1]&&Y.push({pos:[P.pos[0]-1,P.pos[1]],seq1:this.sequence1[P.pos[0]-1]+P.seq1,seq2:"-"+P.seq2}),Z[2]&&Y.push({pos:[P.pos[0],P.pos[1]-1],seq1:"-"+P.seq1,seq2:this.sequence2[P.pos[1]-1]+P.seq2}),P.pos[0]===0&&P.pos[1]===0&&this.alignments.push({sequence1:P.seq1,sequence2:P.seq2}),Y.shift()}return this.alignments}},{key:"getAllIndexes",value:function(Y,P){for(var Z=[],A=-1;(A=Y.indexOf(P,A+1))!==-1;)Z.push(A);return Z}},{key:"arrayAllMaxIndexes",value:function(Y){return this.getAllIndexes(Y,Math.max.apply(null,Y))}}]),N}();_.exports=x},function(_,ve,J){var C=function(){};C.FDLayout=J(18),C.FDLayoutConstants=J(7),C.FDLayoutEdge=J(19),C.FDLayoutNode=J(20),C.DimensionD=J(21),C.HashMap=J(22),C.HashSet=J(23),C.IGeometry=J(8),C.IMath=J(9),C.Integer=J(10),C.Point=J(12),C.PointD=J(4),C.RandomSeed=J(16),C.RectangleD=J(13),C.Transform=J(17),C.UniqueIDGeneretor=J(14),C.Quicksort=J(24),C.LinkedList=J(11),C.LGraphObject=J(2),C.LGraph=J(5),C.LEdge=J(1),C.LGraphManager=J(6),C.LNode=J(3),C.Layout=J(15),C.LayoutConstants=J(0),C.NeedlemanWunsch=J(25),_.exports=C},function(_,ve,J){function C(){this.listeners=[]}var T=C.prototype;T.addListener=function(x,N){this.listeners.push({event:x,callback:N})},T.removeListener=function(x,N){for(var z=this.listeners.length;z>=0;z--){var Y=this.listeners[z];Y.event===x&&Y.callback===N&&this.listeners.splice(z,1)}},T.emit=function(x,N){for(var z=0;z<this.listeners.length;z++){var Y=this.listeners[z];x===Y.event&&Y.callback(N)}},_.exports=C}])})}(Zi)),Zi.exports}var $l;function zp(){return $l||($l=1,function(de,Pe){(function(ve,J){de.exports=J(Gp())})(Ca,function(_){return function(ve){var J={};function C(T){if(J[T])return J[T].exports;var x=J[T]={i:T,l:!1,exports:{}};return ve[T].call(x.exports,x,x.exports,C),x.l=!0,x.exports}return C.m=ve,C.c=J,C.i=function(T){return T},C.d=function(T,x,N){C.o(T,x)||Object.defineProperty(T,x,{configurable:!1,enumerable:!0,get:N})},C.n=function(T){var x=T&&T.__esModule?function(){return T.default}:function(){return T};return C.d(x,"a",x),x},C.o=function(T,x){return Object.prototype.hasOwnProperty.call(T,x)},C.p="",C(C.s=7)}([function(ve,J){ve.exports=_},function(ve,J,C){var T=C(0).FDLayoutConstants;function x(){}for(var N in T)x[N]=T[N];x.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,x.DEFAULT_RADIAL_SEPARATION=T.DEFAULT_EDGE_LENGTH,x.DEFAULT_COMPONENT_SEPERATION=60,x.TILE=!0,x.TILING_PADDING_VERTICAL=10,x.TILING_PADDING_HORIZONTAL=10,x.TREE_REDUCTION_ON_INCREMENTAL=!1,ve.exports=x},function(ve,J,C){var T=C(0).FDLayoutEdge;function x(z,Y,P){T.call(this,z,Y,P)}x.prototype=Object.create(T.prototype);for(var N in T)x[N]=T[N];ve.exports=x},function(ve,J,C){var T=C(0).LGraph;function x(z,Y,P){T.call(this,z,Y,P)}x.prototype=Object.create(T.prototype);for(var N in T)x[N]=T[N];ve.exports=x},function(ve,J,C){var T=C(0).LGraphManager;function x(z){T.call(this,z)}x.prototype=Object.create(T.prototype);for(var N in T)x[N]=T[N];ve.exports=x},function(ve,J,C){var T=C(0).FDLayoutNode,x=C(0).IMath;function N(Y,P,Z,A){T.call(this,Y,P,Z,A)}N.prototype=Object.create(T.prototype);for(var z in T)N[z]=T[z];N.prototype.move=function(){var Y=this.graphManager.getLayout();this.displacementX=Y.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=Y.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>Y.coolingFactor*Y.maxNodeDisplacement&&(this.displacementX=Y.coolingFactor*Y.maxNodeDisplacement*x.sign(this.displacementX)),Math.abs(this.displacementY)>Y.coolingFactor*Y.maxNodeDisplacement&&(this.displacementY=Y.coolingFactor*Y.maxNodeDisplacement*x.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),Y.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},N.prototype.propogateDisplacementToChildren=function(Y,P){for(var Z=this.getChild().getNodes(),A,U=0;U<Z.length;U++)A=Z[U],A.getChild()==null?(A.moveBy(Y,P),A.displacementX+=Y,A.displacementY+=P):A.propogateDisplacementToChildren(Y,P)},N.prototype.setPred1=function(Y){this.pred1=Y},N.prototype.getPred1=function(){return pred1},N.prototype.getPred2=function(){return pred2},N.prototype.setNext=function(Y){this.next=Y},N.prototype.getNext=function(){return next},N.prototype.setProcessed=function(Y){this.processed=Y},N.prototype.isProcessed=function(){return processed},ve.exports=N},function(ve,J,C){var T=C(0).FDLayout,x=C(4),N=C(3),z=C(5),Y=C(2),P=C(1),Z=C(0).FDLayoutConstants,A=C(0).LayoutConstants,U=C(0).Point,$=C(0).PointD,Q=C(0).Layout,ne=C(0).Integer,le=C(0).IGeometry,j=C(0).LGraph,ee=C(0).Transform;function H(){T.call(this),this.toBeTiled={}}H.prototype=Object.create(T.prototype);for(var te in T)H[te]=T[te];H.prototype.newGraphManager=function(){var S=new x(this);return this.graphManager=S,S},H.prototype.newGraph=function(S){return new N(null,this.graphManager,S)},H.prototype.newNode=function(S){return new z(this.graphManager,S)},H.prototype.newEdge=function(S){return new Y(null,null,S)},H.prototype.initParameters=function(){T.prototype.initParameters.call(this,arguments),this.isSubLayout||(P.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=P.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=P.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=Z.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=Z.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=Z.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=Z.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=Z.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=Z.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/Z.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=Z.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},H.prototype.layout=function(){var S=A.DEFAULT_CREATE_BENDS_AS_NEEDED;return S&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},H.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(P.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var V=new Set(this.getAllNodes()),R=this.nodesWithGravity.filter(function(pe){return V.has(pe)});this.graphManager.setAllNodesToApplyGravitation(R)}}else{var S=this.getFlatForest();if(S.length>0)this.positionNodesRadially(S);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var V=new Set(this.getAllNodes()),R=this.nodesWithGravity.filter(function(q){return V.has(q)});this.graphManager.setAllNodesToApplyGravitation(R),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},H.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%Z.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var S=new Set(this.getAllNodes()),V=this.nodesWithGravity.filter(function(he){return S.has(he)});this.graphManager.setAllNodesToApplyGravitation(V),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=Z.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=Z.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var R=!this.isTreeGrowing&&!this.isGrowthFinished,q=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(R,q),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},H.prototype.getPositionsData=function(){for(var S=this.graphManager.getAllNodes(),V={},R=0;R<S.length;R++){var q=S[R].rect,he=S[R].id;V[he]={id:he,x:q.getCenterX(),y:q.getCenterY(),w:q.width,h:q.height}}return V},H.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var S=!1;if(Z.ANIMATE==="during")this.emit("layoutstarted");else{for(;!S;)S=this.tick();this.graphManager.updateBounds()}},H.prototype.calculateNodesToApplyGravitationTo=function(){var S=[],V,R=this.graphManager.getGraphs(),q=R.length,he;for(he=0;he<q;he++)V=R[he],V.updateConnected(),V.isConnected||(S=S.concat(V.getNodes()));return S},H.prototype.createBendpoints=function(){var S=[];S=S.concat(this.graphManager.getAllEdges());var V=new Set,R;for(R=0;R<S.length;R++){var q=S[R];if(!V.has(q)){var he=q.getSource(),pe=q.getTarget();if(he==pe)q.getBendpoints().push(new $),q.getBendpoints().push(new $),this.createDummyNodesForBendpoints(q),V.add(q);else{var Ae=[];if(Ae=Ae.concat(he.getEdgeListToNode(pe)),Ae=Ae.concat(pe.getEdgeListToNode(he)),!V.has(Ae[0])){if(Ae.length>1){var Ne;for(Ne=0;Ne<Ae.length;Ne++){var Ye=Ae[Ne];Ye.getBendpoints().push(new $),this.createDummyNodesForBendpoints(Ye)}}Ae.forEach(function(at){V.add(at)})}}}if(V.size==S.length)break}},H.prototype.positionNodesRadially=function(S){for(var V=new U(0,0),R=Math.ceil(Math.sqrt(S.length)),q=0,he=0,pe=0,Ae=new $(0,0),Ne=0;Ne<S.length;Ne++){Ne%R==0&&(pe=0,he=q,Ne!=0&&(he+=P.DEFAULT_COMPONENT_SEPERATION),q=0);var Ye=S[Ne],at=Q.findCenterOfTree(Ye);V.x=pe,V.y=he,Ae=H.radialLayout(Ye,at,V),Ae.y>q&&(q=Math.floor(Ae.y)),pe=Math.floor(Ae.x+P.DEFAULT_COMPONENT_SEPERATION)}this.transform(new $(A.WORLD_CENTER_X-Ae.x/2,A.WORLD_CENTER_Y-Ae.y/2))},H.radialLayout=function(S,V,R){var q=Math.max(this.maxDiagonalInTree(S),P.DEFAULT_RADIAL_SEPARATION);H.branchRadialLayout(V,null,0,359,0,q);var he=j.calculateBounds(S),pe=new ee;pe.setDeviceOrgX(he.getMinX()),pe.setDeviceOrgY(he.getMinY()),pe.setWorldOrgX(R.x),pe.setWorldOrgY(R.y);for(var Ae=0;Ae<S.length;Ae++){var Ne=S[Ae];Ne.transform(pe)}var Ye=new $(he.getMaxX(),he.getMaxY());return pe.inverseTransformPoint(Ye)},H.branchRadialLayout=function(S,V,R,q,he,pe){var Ae=(q-R+1)/2;Ae<0&&(Ae+=180);var Ne=(Ae+R)%360,Ye=Ne*le.TWO_PI/360,at=he*Math.cos(Ye),dt=he*Math.sin(Ye);S.setCenter(at,dt);var Re=[];Re=Re.concat(S.getEdges());var Ve=Re.length;V!=null&&Ve--;for(var Ze=0,nt=Re.length,ft,it=S.getEdgesBetween(V);it.length>1;){var tt=it[0];it.splice(0,1);var yt=Re.indexOf(tt);yt>=0&&Re.splice(yt,1),nt--,Ve--}V!=null?ft=(Re.indexOf(it[0])+1)%nt:ft=0;for(var Et=Math.abs(q-R)/Ve,Pt=ft;Ze!=Ve;Pt=++Pt%nt){var gt=Re[Pt].getOtherEnd(S);if(gt!=V){var dr=(R+Ze*Et)%360,qt=(dr+Et)%360;H.branchRadialLayout(gt,S,dr,qt,he+pe,pe),Ze++}}},H.maxDiagonalInTree=function(S){for(var V=ne.MIN_VALUE,R=0;R<S.length;R++){var q=S[R],he=q.getDiagonal();he>V&&(V=he)}return V},H.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},H.prototype.groupZeroDegreeMembers=function(){var S=this,V={};this.memberGroups={},this.idToDummyNode={};for(var R=[],q=this.graphManager.getAllNodes(),he=0;he<q.length;he++){var pe=q[he],Ae=pe.getParent();this.getNodeDegreeWithChildren(pe)===0&&(Ae.id==null||!this.getToBeTiled(Ae))&&R.push(pe)}for(var he=0;he<R.length;he++){var pe=R[he],Ne=pe.getParent().id;typeof V[Ne]>"u"&&(V[Ne]=[]),V[Ne]=V[Ne].concat(pe)}Object.keys(V).forEach(function(Ye){if(V[Ye].length>1){var at="DummyCompound_"+Ye;S.memberGroups[at]=V[Ye];var dt=V[Ye][0].getParent(),Re=new z(S.graphManager);Re.id=at,Re.paddingLeft=dt.paddingLeft||0,Re.paddingRight=dt.paddingRight||0,Re.paddingBottom=dt.paddingBottom||0,Re.paddingTop=dt.paddingTop||0,S.idToDummyNode[at]=Re;var Ve=S.getGraphManager().add(S.newGraph(),Re),Ze=dt.getChild();Ze.add(Re);for(var nt=0;nt<V[Ye].length;nt++){var ft=V[Ye][nt];Ze.remove(ft),Ve.add(ft)}}})},H.prototype.clearCompounds=function(){var S={},V={};this.performDFSOnCompounds();for(var R=0;R<this.compoundOrder.length;R++)V[this.compoundOrder[R].id]=this.compoundOrder[R],S[this.compoundOrder[R].id]=[].concat(this.compoundOrder[R].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[R].getChild()),this.compoundOrder[R].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(S,V)},H.prototype.clearZeroDegreeMembers=function(){var S=this,V=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(R){var q=S.idToDummyNode[R];V[R]=S.tileNodes(S.memberGroups[R],q.paddingLeft+q.paddingRight),q.rect.width=V[R].width,q.rect.height=V[R].height})},H.prototype.repopulateCompounds=function(){for(var S=this.compoundOrder.length-1;S>=0;S--){var V=this.compoundOrder[S],R=V.id,q=V.paddingLeft,he=V.paddingTop;this.adjustLocations(this.tiledMemberPack[R],V.rect.x,V.rect.y,q,he)}},H.prototype.repopulateZeroDegreeMembers=function(){var S=this,V=this.tiledZeroDegreePack;Object.keys(V).forEach(function(R){var q=S.idToDummyNode[R],he=q.paddingLeft,pe=q.paddingTop;S.adjustLocations(V[R],q.rect.x,q.rect.y,he,pe)})},H.prototype.getToBeTiled=function(S){var V=S.id;if(this.toBeTiled[V]!=null)return this.toBeTiled[V];var R=S.getChild();if(R==null)return this.toBeTiled[V]=!1,!1;for(var q=R.getNodes(),he=0;he<q.length;he++){var pe=q[he];if(this.getNodeDegree(pe)>0)return this.toBeTiled[V]=!1,!1;if(pe.getChild()==null){this.toBeTiled[pe.id]=!1;continue}if(!this.getToBeTiled(pe))return this.toBeTiled[V]=!1,!1}return this.toBeTiled[V]=!0,!0},H.prototype.getNodeDegree=function(S){S.id;for(var V=S.getEdges(),R=0,q=0;q<V.length;q++){var he=V[q];he.getSource().id!==he.getTarget().id&&(R=R+1)}return R},H.prototype.getNodeDegreeWithChildren=function(S){var V=this.getNodeDegree(S);if(S.getChild()==null)return V;for(var R=S.getChild().getNodes(),q=0;q<R.length;q++){var he=R[q];V+=this.getNodeDegreeWithChildren(he)}return V},H.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},H.prototype.fillCompexOrderByDFS=function(S){for(var V=0;V<S.length;V++){var R=S[V];R.getChild()!=null&&this.fillCompexOrderByDFS(R.getChild().getNodes()),this.getToBeTiled(R)&&this.compoundOrder.push(R)}},H.prototype.adjustLocations=function(S,V,R,q,he){V+=q,R+=he;for(var pe=V,Ae=0;Ae<S.rows.length;Ae++){var Ne=S.rows[Ae];V=pe;for(var Ye=0,at=0;at<Ne.length;at++){var dt=Ne[at];dt.rect.x=V,dt.rect.y=R,V+=dt.rect.width+S.horizontalPadding,dt.rect.height>Ye&&(Ye=dt.rect.height)}R+=Ye+S.verticalPadding}},H.prototype.tileCompoundMembers=function(S,V){var R=this;this.tiledMemberPack=[],Object.keys(S).forEach(function(q){var he=V[q];R.tiledMemberPack[q]=R.tileNodes(S[q],he.paddingLeft+he.paddingRight),he.rect.width=R.tiledMemberPack[q].width,he.rect.height=R.tiledMemberPack[q].height})},H.prototype.tileNodes=function(S,V){var R=P.TILING_PADDING_VERTICAL,q=P.TILING_PADDING_HORIZONTAL,he={rows:[],rowWidth:[],rowHeight:[],width:0,height:V,verticalPadding:R,horizontalPadding:q};S.sort(function(Ne,Ye){return Ne.rect.width*Ne.rect.height>Ye.rect.width*Ye.rect.height?-1:Ne.rect.width*Ne.rect.height<Ye.rect.width*Ye.rect.height?1:0});for(var pe=0;pe<S.length;pe++){var Ae=S[pe];he.rows.length==0?this.insertNodeToRow(he,Ae,0,V):this.canAddHorizontal(he,Ae.rect.width,Ae.rect.height)?this.insertNodeToRow(he,Ae,this.getShortestRowIndex(he),V):this.insertNodeToRow(he,Ae,he.rows.length,V),this.shiftToLastRow(he)}return he},H.prototype.insertNodeToRow=function(S,V,R,q){var he=q;if(R==S.rows.length){var pe=[];S.rows.push(pe),S.rowWidth.push(he),S.rowHeight.push(0)}var Ae=S.rowWidth[R]+V.rect.width;S.rows[R].length>0&&(Ae+=S.horizontalPadding),S.rowWidth[R]=Ae,S.width<Ae&&(S.width=Ae);var Ne=V.rect.height;R>0&&(Ne+=S.verticalPadding);var Ye=0;Ne>S.rowHeight[R]&&(Ye=S.rowHeight[R],S.rowHeight[R]=Ne,Ye=S.rowHeight[R]-Ye),S.height+=Ye,S.rows[R].push(V)},H.prototype.getShortestRowIndex=function(S){for(var V=-1,R=Number.MAX_VALUE,q=0;q<S.rows.length;q++)S.rowWidth[q]<R&&(V=q,R=S.rowWidth[q]);return V},H.prototype.getLongestRowIndex=function(S){for(var V=-1,R=Number.MIN_VALUE,q=0;q<S.rows.length;q++)S.rowWidth[q]>R&&(V=q,R=S.rowWidth[q]);return V},H.prototype.canAddHorizontal=function(S,V,R){var q=this.getShortestRowIndex(S);if(q<0)return!0;var he=S.rowWidth[q];if(he+S.horizontalPadding+V<=S.width)return!0;var pe=0;S.rowHeight[q]<R&&q>0&&(pe=R+S.verticalPadding-S.rowHeight[q]);var Ae;S.width-he>=V+S.horizontalPadding?Ae=(S.height+pe)/(he+V+S.horizontalPadding):Ae=(S.height+pe)/S.width,pe=R+S.verticalPadding;var Ne;return S.width<V?Ne=(S.height+pe)/V:Ne=(S.height+pe)/S.width,Ne<1&&(Ne=1/Ne),Ae<1&&(Ae=1/Ae),Ae<Ne},H.prototype.shiftToLastRow=function(S){var V=this.getLongestRowIndex(S),R=S.rowWidth.length-1,q=S.rows[V],he=q[q.length-1],pe=he.width+S.horizontalPadding;if(S.width-S.rowWidth[R]>pe&&V!=R){q.splice(-1,1),S.rows[R].push(he),S.rowWidth[V]=S.rowWidth[V]-pe,S.rowWidth[R]=S.rowWidth[R]+pe,S.width=S.rowWidth[instance.getLongestRowIndex(S)];for(var Ae=Number.MIN_VALUE,Ne=0;Ne<q.length;Ne++)q[Ne].height>Ae&&(Ae=q[Ne].height);V>0&&(Ae+=S.verticalPadding);var Ye=S.rowHeight[V]+S.rowHeight[R];S.rowHeight[V]=Ae,S.rowHeight[R]<he.height+S.verticalPadding&&(S.rowHeight[R]=he.height+S.verticalPadding);var at=S.rowHeight[V]+S.rowHeight[R];S.height+=at-Ye,this.shiftToLastRow(S)}},H.prototype.tilingPreLayout=function(){P.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},H.prototype.tilingPostLayout=function(){P.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},H.prototype.reduceTrees=function(){for(var S=[],V=!0,R;V;){var q=this.graphManager.getAllNodes(),he=[];V=!1;for(var pe=0;pe<q.length;pe++)R=q[pe],R.getEdges().length==1&&!R.getEdges()[0].isInterGraph&&R.getChild()==null&&(he.push([R,R.getEdges()[0],R.getOwner()]),V=!0);if(V==!0){for(var Ae=[],Ne=0;Ne<he.length;Ne++)he[Ne][0].getEdges().length==1&&(Ae.push(he[Ne]),he[Ne][0].getOwner().remove(he[Ne][0]));S.push(Ae),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=S},H.prototype.growTree=function(S){for(var V=S.length,R=S[V-1],q,he=0;he<R.length;he++)q=R[he],this.findPlaceforPrunedNode(q),q[2].add(q[0]),q[2].add(q[1],q[1].source,q[1].target);S.splice(S.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},H.prototype.findPlaceforPrunedNode=function(S){var V,R,q=S[0];q==S[1].source?R=S[1].target:R=S[1].source;var he=R.startX,pe=R.finishX,Ae=R.startY,Ne=R.finishY,Ye=0,at=0,dt=0,Re=0,Ve=[Ye,dt,at,Re];if(Ae>0)for(var Ze=he;Ze<=pe;Ze++)Ve[0]+=this.grid[Ze][Ae-1].length+this.grid[Ze][Ae].length-1;if(pe<this.grid.length-1)for(var Ze=Ae;Ze<=Ne;Ze++)Ve[1]+=this.grid[pe+1][Ze].length+this.grid[pe][Ze].length-1;if(Ne<this.grid[0].length-1)for(var Ze=he;Ze<=pe;Ze++)Ve[2]+=this.grid[Ze][Ne+1].length+this.grid[Ze][Ne].length-1;if(he>0)for(var Ze=Ae;Ze<=Ne;Ze++)Ve[3]+=this.grid[he-1][Ze].length+this.grid[he][Ze].length-1;for(var nt=ne.MAX_VALUE,ft,it,tt=0;tt<Ve.length;tt++)Ve[tt]<nt?(nt=Ve[tt],ft=1,it=tt):Ve[tt]==nt&&ft++;if(ft==3&&nt==0)Ve[0]==0&&Ve[1]==0&&Ve[2]==0?V=1:Ve[0]==0&&Ve[1]==0&&Ve[3]==0?V=0:Ve[0]==0&&Ve[2]==0&&Ve[3]==0?V=3:Ve[1]==0&&Ve[2]==0&&Ve[3]==0&&(V=2);else if(ft==2&&nt==0){var yt=Math.floor(Math.random()*2);Ve[0]==0&&Ve[1]==0?yt==0?V=0:V=1:Ve[0]==0&&Ve[2]==0?yt==0?V=0:V=2:Ve[0]==0&&Ve[3]==0?yt==0?V=0:V=3:Ve[1]==0&&Ve[2]==0?yt==0?V=1:V=2:Ve[1]==0&&Ve[3]==0?yt==0?V=1:V=3:yt==0?V=2:V=3}else if(ft==4&&nt==0){var yt=Math.floor(Math.random()*4);V=yt}else V=it;V==0?q.setCenter(R.getCenterX(),R.getCenterY()-R.getHeight()/2-Z.DEFAULT_EDGE_LENGTH-q.getHeight()/2):V==1?q.setCenter(R.getCenterX()+R.getWidth()/2+Z.DEFAULT_EDGE_LENGTH+q.getWidth()/2,R.getCenterY()):V==2?q.setCenter(R.getCenterX(),R.getCenterY()+R.getHeight()/2+Z.DEFAULT_EDGE_LENGTH+q.getHeight()/2):q.setCenter(R.getCenterX()-R.getWidth()/2-Z.DEFAULT_EDGE_LENGTH-q.getWidth()/2,R.getCenterY())},ve.exports=H},function(ve,J,C){var T={};T.layoutBase=C(0),T.CoSEConstants=C(1),T.CoSEEdge=C(2),T.CoSEGraph=C(3),T.CoSEGraphManager=C(4),T.CoSELayout=C(6),T.CoSENode=C(5),ve.exports=T}])})}(Ki)),Ki.exports}(function(de,Pe){(function(ve,J){de.exports=J(zp())})(Ca,function(_){return function(ve){var J={};function C(T){if(J[T])return J[T].exports;var x=J[T]={i:T,l:!1,exports:{}};return ve[T].call(x.exports,x,x.exports,C),x.l=!0,x.exports}return C.m=ve,C.c=J,C.i=function(T){return T},C.d=function(T,x,N){C.o(T,x)||Object.defineProperty(T,x,{configurable:!1,enumerable:!0,get:N})},C.n=function(T){var x=T&&T.__esModule?function(){return T.default}:function(){return T};return C.d(x,"a",x),x},C.o=function(T,x){return Object.prototype.hasOwnProperty.call(T,x)},C.p="",C(C.s=1)}([function(ve,J){ve.exports=_},function(ve,J,C){var T=C(0).layoutBase.LayoutConstants,x=C(0).layoutBase.FDLayoutConstants,N=C(0).CoSEConstants,z=C(0).CoSELayout,Y=C(0).CoSENode,P=C(0).layoutBase.PointD,Z=C(0).layoutBase.DimensionD,A={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function U(le,j){var ee={};for(var H in le)ee[H]=le[H];for(var H in j)ee[H]=j[H];return ee}function $(le){this.options=U(A,le),Q(this.options)}var Q=function(j){j.nodeRepulsion!=null&&(N.DEFAULT_REPULSION_STRENGTH=x.DEFAULT_REPULSION_STRENGTH=j.nodeRepulsion),j.idealEdgeLength!=null&&(N.DEFAULT_EDGE_LENGTH=x.DEFAULT_EDGE_LENGTH=j.idealEdgeLength),j.edgeElasticity!=null&&(N.DEFAULT_SPRING_STRENGTH=x.DEFAULT_SPRING_STRENGTH=j.edgeElasticity),j.nestingFactor!=null&&(N.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=x.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=j.nestingFactor),j.gravity!=null&&(N.DEFAULT_GRAVITY_STRENGTH=x.DEFAULT_GRAVITY_STRENGTH=j.gravity),j.numIter!=null&&(N.MAX_ITERATIONS=x.MAX_ITERATIONS=j.numIter),j.gravityRange!=null&&(N.DEFAULT_GRAVITY_RANGE_FACTOR=x.DEFAULT_GRAVITY_RANGE_FACTOR=j.gravityRange),j.gravityCompound!=null&&(N.DEFAULT_COMPOUND_GRAVITY_STRENGTH=x.DEFAULT_COMPOUND_GRAVITY_STRENGTH=j.gravityCompound),j.gravityRangeCompound!=null&&(N.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=x.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=j.gravityRangeCompound),j.initialEnergyOnIncremental!=null&&(N.DEFAULT_COOLING_FACTOR_INCREMENTAL=x.DEFAULT_COOLING_FACTOR_INCREMENTAL=j.initialEnergyOnIncremental),j.quality=="draft"?T.QUALITY=0:j.quality=="proof"?T.QUALITY=2:T.QUALITY=1,N.NODE_DIMENSIONS_INCLUDE_LABELS=x.NODE_DIMENSIONS_INCLUDE_LABELS=T.NODE_DIMENSIONS_INCLUDE_LABELS=j.nodeDimensionsIncludeLabels,N.DEFAULT_INCREMENTAL=x.DEFAULT_INCREMENTAL=T.DEFAULT_INCREMENTAL=!j.randomize,N.ANIMATE=x.ANIMATE=T.ANIMATE=j.animate,N.TILE=j.tile,N.TILING_PADDING_VERTICAL=typeof j.tilingPaddingVertical=="function"?j.tilingPaddingVertical.call():j.tilingPaddingVertical,N.TILING_PADDING_HORIZONTAL=typeof j.tilingPaddingHorizontal=="function"?j.tilingPaddingHorizontal.call():j.tilingPaddingHorizontal};$.prototype.run=function(){var le,j,ee=this.options;this.idToLNode={};var H=this.layout=new z,te=this;te.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var S=H.newGraphManager();this.gm=S;var V=this.options.eles.nodes(),R=this.options.eles.edges();this.root=S.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(V),H);for(var q=0;q<R.length;q++){var he=R[q],pe=this.idToLNode[he.data("source")],Ae=this.idToLNode[he.data("target")];if(pe!==Ae&&pe.getEdgesBetween(Ae).length==0){var Ne=S.add(H.newEdge(),pe,Ae);Ne.id=he.id()}}var Ye=function(Re,Ve){typeof Re=="number"&&(Re=Ve);var Ze=Re.data("id"),nt=te.idToLNode[Ze];return{x:nt.getRect().getCenterX(),y:nt.getRect().getCenterY()}},at=function dt(){for(var Re=function(){ee.fit&&ee.cy.fit(ee.eles,ee.padding),le||(le=!0,te.cy.one("layoutready",ee.ready),te.cy.trigger({type:"layoutready",layout:te}))},Ve=te.options.refresh,Ze,nt=0;nt<Ve&&!Ze;nt++)Ze=te.stopped||te.layout.tick();if(Ze){H.checkLayoutSuccess()&&!H.isSubLayout&&H.doPostLayout(),H.tilingPostLayout&&H.tilingPostLayout(),H.isLayoutFinished=!0,te.options.eles.nodes().positions(Ye),Re(),te.cy.one("layoutstop",te.options.stop),te.cy.trigger({type:"layoutstop",layout:te}),j&&cancelAnimationFrame(j),le=!1;return}var ft=te.layout.getPositionsData();ee.eles.nodes().positions(function(it,tt){if(typeof it=="number"&&(it=tt),!it.isParent()){for(var yt=it.id(),Et=ft[yt],Pt=it;Et==null&&(Et=ft[Pt.data("parent")]||ft["DummyCompound_"+Pt.data("parent")],ft[yt]=Et,Pt=Pt.parent()[0],Pt!=null););return Et!=null?{x:Et.x,y:Et.y}:{x:it.position("x"),y:it.position("y")}}}),Re(),j=requestAnimationFrame(dt)};return H.addListener("layoutstarted",function(){te.options.animate==="during"&&(j=requestAnimationFrame(at))}),H.runLayout(),this.options.animate!=="during"&&(te.options.eles.nodes().not(":parent").layoutPositions(te,te.options,Ye),le=!1),this},$.prototype.getTopMostNodes=function(le){for(var j={},ee=0;ee<le.length;ee++)j[le[ee].id()]=!0;var H=le.filter(function(te,S){typeof te=="number"&&(te=S);for(var V=te.parent()[0];V!=null;){if(j[V.id()])return!1;V=V.parent()[0]}return!0});return H},$.prototype.processChildrenList=function(le,j,ee){for(var H=j.length,te=0;te<H;te++){var S=j[te],V=S.children(),R,q=S.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(S.outerWidth()!=null&&S.outerHeight()!=null?R=le.add(new Y(ee.graphManager,new P(S.position("x")-q.w/2,S.position("y")-q.h/2),new Z(parseFloat(q.w),parseFloat(q.h)))):R=le.add(new Y(this.graphManager)),R.id=S.data("id"),R.paddingLeft=parseInt(S.css("padding")),R.paddingTop=parseInt(S.css("padding")),R.paddingRight=parseInt(S.css("padding")),R.paddingBottom=parseInt(S.css("padding")),this.options.nodeDimensionsIncludeLabels&&S.isParent()){var he=S.boundingBox({includeLabels:!0,includeNodes:!1}).w,pe=S.boundingBox({includeLabels:!0,includeNodes:!1}).h,Ae=S.css("text-halign");R.labelWidth=he,R.labelHeight=pe,R.labelPos=Ae}if(this.idToLNode[S.data("id")]=R,isNaN(R.rect.x)&&(R.rect.x=0),isNaN(R.rect.y)&&(R.rect.y=0),V!=null&&V.length>0){var Ne;Ne=ee.getGraphManager().add(ee.newGraph(),R),this.processChildrenList(Ne,V,ee)}}},$.prototype.stop=function(){return this.stopped=!0,this};var ne=function(j){j("layout","cose-bilkent",$)};typeof cytoscape<"u"&&ne(cytoscape),ve.exports=ne}])})})(Xl);var Vp=Xl.exports;const $p=Ul(Vp),Up=12,_p=function(de,Pe,_,ve){Pe.append("path").attr("id","node-"+_.id).attr("class","node-bkg node-"+de.type2Str(_.type)).attr("d",`M0 ${_.height-5} v${-_.height+2*5} q0,-5 5,-5 h${_.width-2*5} q5,0 5,5 v${_.height-5} H0 Z`),Pe.append("line").attr("class","node-line-"+ve).attr("x1",0).attr("y1",_.height).attr("x2",_.width).attr("y2",_.height)},Yp=function(de,Pe,_){Pe.append("rect").attr("id","node-"+_.id).attr("class","node-bkg node-"+de.type2Str(_.type)).attr("height",_.height).attr("width",_.width)},Hp=function(de,Pe,_){const ve=_.width,J=_.height,C=.15*ve,T=.25*ve,x=.35*ve,N=.2*ve;Pe.append("path").attr("id","node-"+_.id).attr("class","node-bkg node-"+de.type2Str(_.type)).attr("d",`M0 0 a${C},${C} 0 0,1 ${ve*.25},${-1*ve*.1}
a${x},${x} 1 0,1 ${ve*.4},${-1*ve*.1}
a${T},${T} 1 0,1 ${ve*.35},${1*ve*.2}
a${C},${C} 1 0,1 ${ve*.15},${1*J*.35}
a${N},${N} 1 0,1 ${-1*ve*.15},${1*J*.65}
a${T},${C} 1 0,1 ${-1*ve*.25},${ve*.15}
a${x},${x} 1 0,1 ${-1*ve*.5},0
a${C},${C} 1 0,1 ${-1*ve*.25},${-1*ve*.15}
a${C},${C} 1 0,1 ${-1*ve*.1},${-1*J*.35}
a${N},${N} 1 0,1 ${ve*.1},${-1*J*.65}
H0 V0 Z`)},Xp=function(de,Pe,_){const ve=_.width,J=_.height,C=.15*ve;Pe.append("path").attr("id","node-"+_.id).attr("class","node-bkg node-"+de.type2Str(_.type)).attr("d",`M0 0 a${C},${C} 1 0,0 ${ve*.25},${-1*J*.1}
a${C},${C} 1 0,0 ${ve*.25},0
a${C},${C} 1 0,0 ${ve*.25},0
a${C},${C} 1 0,0 ${ve*.25},${1*J*.1}
a${C},${C} 1 0,0 ${ve*.15},${1*J*.33}
a${C*.8},${C*.8} 1 0,0 0,${1*J*.34}
a${C},${C} 1 0,0 ${-1*ve*.15},${1*J*.33}
a${C},${C} 1 0,0 ${-1*ve*.25},${J*.15}
a${C},${C} 1 0,0 ${-1*ve*.25},0
a${C},${C} 1 0,0 ${-1*ve*.25},0
a${C},${C} 1 0,0 ${-1*ve*.25},${-1*J*.15}
a${C},${C} 1 0,0 ${-1*ve*.1},${-1*J*.33}
a${C*.8},${C*.8} 1 0,0 0,${-1*J*.34}
a${C},${C} 1 0,0 ${ve*.1},${-1*J*.33}
H0 V0 Z`)},Wp=function(de,Pe,_){Pe.append("circle").attr("id","node-"+_.id).attr("class","node-bkg node-"+de.type2Str(_.type)).attr("r",_.width/2)};function qp(de,Pe,_,ve,J){return de.insert("polygon",":first-child").attr("points",ve.map(function(C){return C.x+","+C.y}).join(" ")).attr("transform","translate("+(J.width-Pe)/2+", "+_+")")}const Kp=function(de,Pe,_){const ve=_.height,C=ve/4,T=_.width-_.padding+2*C,x=[{x:C,y:0},{x:T-C,y:0},{x:T,y:-ve/2},{x:T-C,y:-ve},{x:C,y:-ve},{x:0,y:-ve/2}];qp(Pe,T,ve,x,_)},Zp=function(de,Pe,_){Pe.append("rect").attr("id","node-"+_.id).attr("class","node-bkg node-"+de.type2Str(_.type)).attr("height",_.height).attr("rx",_.padding).attr("ry",_.padding).attr("width",_.width)},Qp=function(de,Pe,_,ve,J){const C=J.htmlLabels,T=ve%(Up-1),x=Pe.append("g");_.section=T;let N="section-"+T;T<0&&(N+=" section-root"),x.attr("class",(_.class?_.class+" ":"")+"mindmap-node "+N);const z=x.append("g"),Y=x.append("g"),P=_.descr.replace(/(<br\/*>)/g,`
`);Tp(Y,P,{useHtmlLabels:C,width:_.width,classes:"mindmap-node-label"}),C||Y.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const Z=Y.node().getBBox(),[A]=xp(J.fontSize);if(_.height=Z.height+A*1.1*.5+_.padding,_.width=Z.width+2*_.padding,_.icon)if(_.type===de.nodeType.CIRCLE)_.height+=50,_.width+=50,x.append("foreignObject").attr("height","50px").attr("width",_.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+T+" "+_.icon),Y.attr("transform","translate("+_.width/2+", "+(_.height/2-1.5*_.padding)+")");else{_.width+=50;const U=_.height;_.height=Math.max(U,60);const $=Math.abs(_.height-U);x.append("foreignObject").attr("width","60px").attr("height",_.height).attr("style","text-align: center;margin-top:"+$/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+T+" "+_.icon),Y.attr("transform","translate("+(25+_.width/2)+", "+($/2+_.padding/2)+")")}else if(C){const U=(_.width-Z.width)/2,$=(_.height-Z.height)/2;Y.attr("transform","translate("+U+", "+$+")")}else{const U=_.width/2,$=_.padding/2;Y.attr("transform","translate("+U+", "+$+")")}switch(_.type){case de.nodeType.DEFAULT:_p(de,z,_,T);break;case de.nodeType.ROUNDED_RECT:Zp(de,z,_);break;case de.nodeType.RECT:Yp(de,z,_);break;case de.nodeType.CIRCLE:z.attr("transform","translate("+_.width/2+", "+ +_.height/2+")"),Wp(de,z,_);break;case de.nodeType.CLOUD:Hp(de,z,_);break;case de.nodeType.BANG:Xp(de,z,_);break;case de.nodeType.HEXAGON:Kp(de,z,_);break}return de.setElementForId(_.id,x),_.height},Jp=function(de,Pe){const _=de.getElementById(Pe.id),ve=Pe.x||0,J=Pe.y||0;_.attr("transform","translate("+ve+","+J+")")};Hl.use($p);function Wl(de,Pe,_,ve,J){Qp(de,Pe,_,ve,J),_.children&&_.children.forEach((C,T)=>{Wl(de,Pe,C,ve<0?T:ve,J)})}function jp(de,Pe){Pe.edges().map((_,ve)=>{const J=_.data();if(_[0]._private.bodyBounds){const C=_[0]._private.rscratch;qr.trace("Edge: ",ve,J),de.insert("path").attr("d",`M ${C.startX},${C.startY} L ${C.midX},${C.midY} L${C.endX},${C.endY} `).attr("class","edge section-edge-"+J.section+" edge-depth-"+J.depth)}})}function ql(de,Pe,_,ve){Pe.add({group:"nodes",data:{id:de.id.toString(),labelText:de.descr,height:de.height,width:de.width,level:ve,nodeId:de.id,padding:de.padding,type:de.type},position:{x:de.x,y:de.y}}),de.children&&de.children.forEach(J=>{ql(J,Pe,_,ve+1),Pe.add({group:"edges",data:{id:`${de.id}_${J.id}`,source:de.id,target:J.id,depth:ve,section:J.section}})})}function ey(de,Pe){return new Promise(_=>{const ve=mp("body").append("div").attr("id","cy").attr("style","display:none"),J=Hl({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});ve.remove(),ql(de,J,Pe,0),J.nodes().forEach(function(C){C.layoutDimensions=()=>{const T=C.data();return{w:T.width,h:T.height}}}),J.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),J.ready(C=>{qr.info("Ready",C),_(J)})})}function ty(de,Pe){Pe.nodes().map((_,ve)=>{const J=_.data();J.x=_.position().x,J.y=_.position().y,Jp(de,J);const C=de.getElementById(J.nodeId);qr.info("Id:",ve,"Position: (",_.position().x,", ",_.position().y,")",J),C.attr("transform",`translate(${_.position().x-J.width/2}, ${_.position().y-J.height/2})`),C.attr("attr",`apa-${ve})`)})}const ry=async(de,Pe,_,ve)=>{var J,C;qr.debug(`Rendering mindmap diagram
`+de);const T=ve.db,x=T.getMindmap();if(!x)return;const N=Ji();N.htmlLabels=!1;const z=pp(Pe),Y=z.append("g");Y.attr("class","mindmap-edges");const P=z.append("g");P.attr("class","mindmap-nodes"),Wl(T,P,x,-1,N);const Z=await ey(x,N);jp(Y,Z),ty(T,Z),yp(void 0,z,((J=N.mindmap)==null?void 0:J.padding)??ti.mindmap.padding,((C=N.mindmap)==null?void 0:C.useMaxWidth)??ti.mindmap.useMaxWidth)},ay={draw:ry},ny=de=>{let Pe="";for(let _=0;_<de.THEME_COLOR_LIMIT;_++)de["lineColor"+_]=de["lineColor"+_]||de["cScaleInv"+_],bp(de["lineColor"+_])?de["lineColor"+_]=Ep(de["lineColor"+_],20):de["lineColor"+_]=wp(de["lineColor"+_],20);for(let _=0;_<de.THEME_COLOR_LIMIT;_++){const ve=""+(17-3*_);Pe+=`
.section-${_-1} rect, .section-${_-1} path, .section-${_-1} circle, .section-${_-1} polygon, .section-${_-1} path {
fill: ${de["cScale"+_]};
}
.section-${_-1} text {
fill: ${de["cScaleLabel"+_]};
}
.node-icon-${_-1} {
font-size: 40px;
color: ${de["cScaleLabel"+_]};
}
.section-edge-${_-1}{
stroke: ${de["cScale"+_]};
}
.edge-depth-${_-1}{
stroke-width: ${ve};
}
.section-${_-1} line {
stroke: ${de["cScaleInv"+_]} ;
stroke-width: 3;
}
.disabled, .disabled circle, .disabled text {
fill: lightgray;
}
.disabled text {
fill: #efefef;
}
`}return Pe},iy=de=>`
.edge {
stroke-width: 3;
}
${ny(de)}
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
fill: ${de.git0};
}
.section-root text {
fill: ${de.gitBranchLabel0};
}
.icon-container {
height:100%;
display: flex;
justify-content: center;
align-items: center;
}
.edge {
fill: none;
}
.mindmap-node-label {
dy: 1em;
alignment-baseline: middle;
text-anchor: middle;
dominant-baseline: middle;
text-align: center;
}
`,oy=iy,cy={db:Bp,renderer:ay,parser:Cp,styles:oy};export{cy as diagram};
import{a0 as I,a1 as un,a2 as U,a3 as Y,a4 as fn}from"./slidev/Mermaid-sWhOKcCj.js";import{i as cn}from"./init-cc95ec8e-Gi6I4Gst.js";function F(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function _(n){let t,i,r;n.length!==2?(t=F,i=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,i=n,r=n);function e(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;i(u[h],c)<0?o=h+1:l=h}while(o<l)}return o}function f(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;i(u[h],c)<=0?o=h+1:l=h}while(o<l)}return o}function a(u,c,o=0,l=u.length){const h=e(u,c,o,l-1);return h>o&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:e,center:a,right:f}}function mn(){return 0}function sn(n){return n===null?NaN:+n}const ln=_(F),gn=ln.right;_(sn).center;const dn=gn,yn=Math.sqrt(50),Mn=Math.sqrt(10),pn=Math.sqrt(2);function R(n,t,i){const r=(t-n)/Math.max(0,i),e=Math.floor(Math.log10(r)),f=r/Math.pow(10,e),a=f>=yn?10:f>=Mn?5:f>=pn?2:1;let u,c,o;return e<0?(o=Math.pow(10,-e)/a,u=Math.round(n*o),c=Math.round(t*o),u/o<n&&++u,c/o>t&&--c,o=-o):(o=Math.pow(10,e)*a,u=Math.round(n/o),c=Math.round(t/o),u*o<n&&++u,c*o>t&&--c),c<u&&.5<=i&&i<2?R(n,t,i*2):[u,c,o]}function wn(n,t,i){if(t=+t,n=+n,i=+i,!(i>0))return[];if(n===t)return[n];const r=t<n,[e,f,a]=r?R(t,n,i):R(n,t,i);if(!(f>=e))return[];const u=f-e+1,c=new Array(u);if(r)if(a<0)for(let o=0;o<u;++o)c[o]=(f-o)/-a;else for(let o=0;o<u;++o)c[o]=(f-o)*a;else if(a<0)for(let o=0;o<u;++o)c[o]=(e+o)/-a;else for(let o=0;o<u;++o)c[o]=(e+o)*a;return c}function L(n,t,i){return t=+t,n=+n,i=+i,R(n,t,i)[2]}function vn(n,t,i){t=+t,n=+n,i=+i;const r=t<n,e=r?L(t,n,i):L(n,t,i);return(r?-1:1)*(e<0?1/-e:e)}function Nn(n,t){t||(t=[]);var i=n?Math.min(t.length,n.length):0,r=t.slice(),e;return function(f){for(e=0;e<i;++e)r[e]=n[e]*(1-f)+t[e]*f;return r}}function kn(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function xn(n,t){var i=t?t.length:0,r=n?Math.min(i,n.length):0,e=new Array(r),f=new Array(i),a;for(a=0;a<r;++a)e[a]=C(n[a],t[a]);for(;a<i;++a)f[a]=t[a];return function(u){for(a=0;a<r;++a)f[a]=e[a](u);return f}}function An(n,t){var i=new Date;return n=+n,t=+t,function(r){return i.setTime(n*(1-r)+t*r),i}}function Sn(n,t){var i={},r={},e;(n===null||typeof n!="object")&&(n={}),(t===null||typeof t!="object")&&(t={});for(e in t)e in n?i[e]=C(n[e],t[e]):r[e]=t[e];return function(f){for(e in i)r[e]=i[e](f);return r}}function C(n,t){var i=typeof t,r;return t==null||i==="boolean"?un(t):(i==="number"?I:i==="string"?(r=U(t))?(t=r,Y):fn:t instanceof U?Y:t instanceof Date?An:kn(t)?Nn:Array.isArray(t)?xn:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Sn:I)(n,t)}function bn(n,t){return n=+n,t=+t,function(i){return Math.round(n*(1-i)+t*i)}}function jn(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((i=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var i,r=n.slice(0,i);return[r.length>1?r[0]+r.slice(2):r,+n.slice(i+1)]}function A(n){return n=E(Math.abs(n)),n?n[1]:NaN}function Pn(n,t){return function(i,r){for(var e=i.length,f=[],a=0,u=n[0],c=0;e>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(i.substring(e-=u,e+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function zn(n){return function(t){return t.replace(/[0-9]/g,function(i){return n[+i]})}}var $n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=$n.exec(n)))throw new Error("invalid format: "+n);var t;return new B({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=B.prototype;function B(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}B.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Fn(n){n:for(var t=n.length,i=1,r=-1,e;i<t;++i)switch(n[i]){case".":r=e=i;break;case"0":r===0&&(r=i),e=i;break;default:if(!+n[i])break n;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(e+1):n}var nn;function Rn(n,t){var i=E(n,t);if(!i)return n+"";var r=i[0],e=i[1],f=e-(nn=Math.max(-8,Math.min(8,Math.floor(e/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function Z(n,t){var i=E(n,t);if(!i)return n+"";var r=i[0],e=i[1];return e<0?"0."+new Array(-e).join("0")+r:r.length>e+1?r.slice(0,e+1)+"."+r.slice(e+1):r+new Array(e-r.length+2).join("0")}const H={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:jn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Z(n*100,t),r:Z,s:Rn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function J(n){return n}var K=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function En(n){var t=n.grouping===void 0||n.thousands===void 0?J:Pn(K.call(n.grouping,Number),n.thousands+""),i=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",e=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?J:zn(K.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var s=h.fill,p=h.align,y=h.sign,S=h.symbol,N=h.zero,b=h.width,T=h.comma,w=h.precision,G=h.trim,g=h.type;g==="n"?(T=!0,g="g"):H[g]||(w===void 0&&(w=12),G=!0,g="g"),(N||s==="0"&&p==="=")&&(N=!0,s="0",p="=");var en=S==="$"?i:S==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",on=S==="$"?r:/[%p]/.test(g)?a:"",O=H[g],an=/[defgprs%]/.test(g);w=w===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var v=en,d=on,k,X,j;if(g==="c")d=O(m)+d,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),G&&(m=Fn(m)),P&&+m==0&&y!=="+"&&(P=!1),v=(P?y==="("?y:u:y==="-"||y==="("?"":y)+v,d=(g==="s"?Q[8+nn/3]:"")+d+(P&&y==="("?")":""),an){for(k=-1,X=m.length;++k<X;)if(j=m.charCodeAt(k),48>j||j>57){d=(j===46?e+m.slice(k+1):m.slice(k))+d,m=m.slice(0,k);break}}}T&&!N&&(m=t(m,1/0));var z=v.length+m.length+d.length,M=z<b?new Array(b-z+1).join(s):"";switch(T&&N&&(m=t(M+m,M.length?b-d.length:1/0),M=""),p){case"<":m=v+m+d+M;break;case"=":m=v+M+m+d;break;case"^":m=M.slice(0,z=M.length>>1)+v+m+d+M.slice(z);break;default:m=M+v+m+d;break}return f(m)}return V.toString=function(){return h+""},V}function l(h,s){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(A(s)/3)))*3,S=Math.pow(10,-y),N=Q[8+y/3];return function(b){return p(S*b)+N}}return{format:o,formatPrefix:l}}var $,tn,rn;Dn({thousands:",",grouping:[3],currency:["$",""]});function Dn(n){return $=En(n),tn=$.format,rn=$.formatPrefix,$}function Tn(n){return Math.max(0,-A(Math.abs(n)))}function In(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(A(t)/3)))*3-A(Math.abs(n)))}function Ln(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,A(t)-A(n))+1}function qn(n){return function(){return n}}function Cn(n){return+n}var W=[0,1];function x(n){return n}function q(n,t){return(t-=n=+n)?function(i){return(i-n)/t}:qn(isNaN(t)?NaN:.5)}function Bn(n,t){var i;return n>t&&(i=n,n=t,t=i),function(r){return Math.max(n,Math.min(t,r))}}function Gn(n,t,i){var r=n[0],e=n[1],f=t[0],a=t[1];return e<r?(r=q(e,r),f=i(a,f)):(r=q(r,e),f=i(f,a)),function(u){return f(r(u))}}function On(n,t,i){var r=Math.min(n.length,t.length)-1,e=new Array(r),f=new Array(r),a=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++a<r;)e[a]=q(n[a],n[a+1]),f[a]=i(t[a],t[a+1]);return function(u){var c=dn(n,u,1,r)-1;return f[c](e[c](u))}}function Vn(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Xn(){var n=W,t=W,i=C,r,e,f,a=x,u,c,o;function l(){var s=Math.min(n.length,t.length);return a!==x&&(a=Bn(n[0],n[s-1])),u=s>2?On:Gn,c=o=null,h}function h(s){return s==null||isNaN(s=+s)?f:(c||(c=u(n.map(r),t,i)))(r(a(s)))}return h.invert=function(s){return a(e((o||(o=u(t,n.map(r),I)))(s)))},h.domain=function(s){return arguments.length?(n=Array.from(s,Cn),l()):n.slice()},h.range=function(s){return arguments.length?(t=Array.from(s),l()):t.slice()},h.rangeRound=function(s){return t=Array.from(s),i=bn,l()},h.clamp=function(s){return arguments.length?(a=s?!0:x,l()):a!==x},h.interpolate=function(s){return arguments.length?(i=s,l()):i},h.unknown=function(s){return arguments.length?(f=s,h):f},function(s,p){return r=s,e=p,l()}}function Un(){return Xn()(x,x)}function Yn(n,t,i,r){var e=vn(n,t,i),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=In(e,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=Ln(e,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Tn(e))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Zn(n){var t=n.domain;return n.ticks=function(i){var r=t();return wn(r[0],r[r.length-1],i??10)},n.tickFormat=function(i,r){var e=t();return Yn(e[0],e[e.length-1],i??10,r)},n.nice=function(i){i==null&&(i=10);var r=t(),e=0,f=r.length-1,a=r[e],u=r[f],c,o,l=10;for(u<a&&(o=a,a=u,u=o,o=e,e=f,f=o);l-- >0;){if(o=L(a,u,i),o===c)return r[e]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Hn(){var n=Un();return n.copy=function(){return Vn(n,Hn())},cn.apply(n,arguments),Zn(n)}export{Vn as a,_ as b,Un as c,Hn as l,vn as t};
import{a as h}from"./array-b7dcf730-BKyUJesY.js";import{w as v,c as o}from"./path-39bad7e2-CbwjOpE9.js";import{q as d}from"./slidev/Mermaid-sWhOKcCj.js";function w(t){return t[0]}function b(t){return t[1]}function L(t,u){var s=o(!0),f=null,l=d,r=null,m=v(e);t=typeof t=="function"?t:t===void 0?w:o(t),u=typeof u=="function"?u:u===void 0?b:o(u);function e(n){var i,g=(n=h(n)).length,p,c=!1,a;for(f==null&&(r=l(a=m())),i=0;i<=g;++i)!(i<g&&s(p=n[i],i,n))===c&&((c=!c)?r.lineStart():r.lineEnd()),c&&r.point(+t(p,i,n),+u(p,i,n));if(a)return r=null,a+""||null}return e.x=function(n){return arguments.length?(t=typeof n=="function"?n:o(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:o(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:o(!!n),e):s},e.curve=function(n){return arguments.length?(l=n,f!=null&&(r=l(f)),e):l},e.context=function(n){return arguments.length?(n==null?f=r=null:r=l(f=n),e):f},e}export{L as l};
import{b as xn,a as P,f as s,G as x,c as Un,d as L,e as kn,g as En,t as zn,i as g,h as w,v as y,r as V,j as Hn,k as yn,l as Nn,m as jn,n as M,o as F,p as Jn,q as Kn,s as Zn}from"./graph-af3d5df6-B9Rrt_D8.js";import{a9 as Ln,aa as $,ab as _n,ac as Qn,ad as ne,ae as ee,af as J,ag as H,ah as Cn,ai as K,aj as re,ak as te,al as ie,am as A,an as ae,ao as In,ap as oe,aq as ue}from"./slidev/Mermaid-sWhOKcCj.js";var de=/\s/;function fe(n){for(var e=n.length;e--&&de.test(n.charAt(e)););return e}var se=/^\s+/;function ce(n){return n&&n.slice(0,fe(n)+1).replace(se,"")}var un=NaN,he=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,le=/^0o[0-7]+$/i,pe=parseInt;function we(n){if(typeof n=="number")return n;if(F(n))return un;if(A(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=A(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=ce(n);var r=ve.test(n);return r||le.test(n)?pe(n.slice(2),r?2:8):he.test(n)?un:+n}var dn=1/0,me=17976931348623157e292;function S(n){if(!n)return n===0?n:0;if(n=we(n),n===dn||n===-dn){var e=n<0?-1:1;return e*me}return n===n?n:0}function be(n){var e=S(n),r=e%1;return e===e?r?e-r:e:0}function _(n){var e=n==null?0:n.length;return e?xn(n,1):[]}function ge(n){return ne(ee(n,void 0,_),n+"")}var xe=1,ke=4;function Ee(n){return Hn(n,xe|ke)}var ye=function(){return te.Date.now()};const fn=ye;var Rn=Object.prototype,Ne=Rn.hasOwnProperty,Le=Ln(function(n,e){n=Object(n);var r=-1,t=e.length,i=t>2?e[2]:void 0;for(i&&$(e[0],e[1],i)&&(t=1);++r<t;)for(var o=e[r],a=_n(o),u=-1,d=a.length;++u<d;){var f=a[u],c=n[f];(c===void 0||Qn(c,Rn[f])&&!Ne.call(n,f))&&(n[f]=o[f])}return n});const _e=Le;function B(n){var e=n==null?0:n.length;return e?n[e-1]:void 0}function Ce(n){return function(e,r,t){var i=Object(e);if(!Cn(e)){var o=L(r);e=Kn(e),r=function(u){return o(i[u],u,i)}}var a=n(e,r,t);return a>-1?i[o?e[a]:a]:void 0}}var Ie=Math.max;function Re(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:be(r);return i<0&&(i=Ie(t+i,0)),Zn(n,L(e),i)}var Te=Ce(Re);const Z=Te;function Tn(n,e){var r=-1,t=Cn(n)?Array(n.length):[];return Un(n,function(i,o,a){t[++r]=e(i,o,a)}),t}function m(n,e){var r=K(n)?P:Tn;return r(n,L(e))}function Me(n,e){return n==null?n:oe(n,yn(e),_n)}function Oe(n,e){return n&&kn(n,yn(e))}function Pe(n,e){return n>e}function Mn(n,e){return n<e}function Y(n,e){var r={};return e=L(e),kn(n,function(t,i,o){ie(r,i,e(t,i,o))}),r}function Q(n,e,r){for(var t=-1,i=n.length;++t<i;){var o=n[t],a=e(o);if(a!=null&&(u===void 0?a===a&&!F(a):r(a,u)))var u=a,d=o}return d}function k(n){return n&&n.length?Q(n,J,Pe):void 0}function R(n){return n&&n.length?Q(n,J,Mn):void 0}function nn(n,e){return n&&n.length?Q(n,L(e),Mn):void 0}function Se(n,e,r,t){if(!A(n))return n;e=Nn(e,n);for(var i=-1,o=e.length,a=o-1,u=n;u!=null&&++i<o;){var d=Jn(e[i]),f=r;if(d==="__proto__"||d==="constructor"||d==="prototype")return n;if(i!=a){var c=u[d];f=t?t(c,d,u):void 0,f===void 0&&(f=A(c)?c:ae(e[i+1])?[]:{})}In(u,d,f),u=u[d]}return n}function Fe(n,e,r){for(var t=-1,i=e.length,o={};++t<i;){var a=e[t],u=En(n,a);r(u,a)&&Se(o,Nn(a,n),u)}return o}function $e(n,e){var r=n.length;for(n.sort(e);r--;)n[r]=n[r].value;return n}function Ae(n,e){if(n!==e){var r=n!==void 0,t=n===null,i=n===n,o=F(n),a=e!==void 0,u=e===null,d=e===e,f=F(e);if(!u&&!f&&!o&&n>e||o&&a&&d&&!u&&!f||t&&a&&d||!r&&d||!i)return 1;if(!t&&!o&&!f&&n<e||f&&r&&i&&!t&&!o||u&&r&&i||!a&&i||!d)return-1}return 0}function Be(n,e,r){for(var t=-1,i=n.criteria,o=e.criteria,a=i.length,u=r.length;++t<a;){var d=Ae(i[t],o[t]);if(d){if(t>=u)return d;var f=r[t];return d*(f=="desc"?-1:1)}}return n.index-e.index}function Ge(n,e,r){e.length?e=P(e,function(o){return K(o)?function(a){return En(a,o.length===1?o[0]:o)}:o}):e=[J];var t=-1;e=P(e,re(L));var i=Tn(n,function(o,a,u){var d=P(e,function(f){return f(o)});return{criteria:d,index:++t,value:o}});return $e(i,function(o,a){return Be(o,a,r)})}function Ve(n,e){return Fe(n,e,function(r,t){return jn(n,t)})}var Ye=ge(function(n,e){return n==null?{}:Ve(n,e)});const G=Ye;var De=Math.ceil,qe=Math.max;function We(n,e,r,t){for(var i=-1,o=qe(De((e-n)/(r||1)),0),a=Array(o);o--;)a[t?o:++i]=n,n+=r;return a}function Xe(n){return function(e,r,t){return t&&typeof t!="number"&&$(e,r,t)&&(r=t=void 0),e=S(e),r===void 0?(r=e,e=0):r=S(r),t=t===void 0?e<r?1:-1:S(t),We(e,r,t,n)}}var Ue=Xe();const N=Ue;var ze=Ln(function(n,e){if(n==null)return[];var r=e.length;return r>1&&$(n,e[0],e[1])?e=[]:r>2&&$(e[0],e[1],e[2])&&(e=[e[0]]),Ge(n,xn(e,1),[])});const O=ze;var He=0;function en(n){var e=++He;return zn(n)+e}function je(n,e,r){for(var t=-1,i=n.length,o=e.length,a={};++t<i;){var u=t<o?e[t]:void 0;r(a,n[t],u)}return a}function Je(n,e){return je(n||[],e||[],In)}class Ke{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return sn(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&sn(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,t=r._prev;t!==r;)e.push(JSON.stringify(t,Ze)),t=t._prev;return"["+e.join(", ")+"]"}}function sn(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function Ze(n,e){if(n!=="_next"&&n!=="_prev")return e}var Qe=ue(1);function nr(n,e){if(n.nodeCount()<=1)return[];var r=rr(n,e||Qe),t=er(r.graph,r.buckets,r.zeroIdx);return _(m(t,function(i){return n.outEdges(i.v,i.w)}))}function er(n,e,r){for(var t=[],i=e[e.length-1],o=e[0],a;n.nodeCount();){for(;a=o.dequeue();)q(n,e,r,a);for(;a=i.dequeue();)q(n,e,r,a);if(n.nodeCount()){for(var u=e.length-2;u>0;--u)if(a=e[u].dequeue(),a){t=t.concat(q(n,e,r,a,!0));break}}}return t}function q(n,e,r,t,i){var o=i?[]:void 0;return s(n.inEdges(t.v),function(a){var u=n.edge(a),d=n.node(a.v);i&&o.push({v:a.v,w:a.w}),d.out-=u,j(e,r,d)}),s(n.outEdges(t.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,j(e,r,f)}),n.removeNode(t.v),o}function rr(n,e){var r=new x,t=0,i=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),i=Math.max(i,r.node(u.v).out+=f),t=Math.max(t,r.node(u.w).in+=f)});var o=N(i+t+3).map(function(){return new Ke}),a=t+1;return s(r.nodes(),function(u){j(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function j(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function tr(n){var e=n.graph().acyclicer==="greedy"?nr(n,r(n)):ir(n);s(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,en("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function ir(n){var e=[],r={},t={};function i(o){w(t,o)||(t[o]=!0,r[o]=!0,s(n.outEdges(o),function(a){w(r,a.w)?e.push(a):i(a.w)}),delete r[o])}return s(n.nodes(),i),e}function ar(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function C(n,e,r,t){var i;do i=en(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function or(n){var e=new x().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function On(n){var e=new x({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function cn(n,e){var r=n.x,t=n.y,i=e.x-r,o=e.y-t,a=n.width/2,u=n.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),d=u*i/o,f=u):(i<0&&(a=-a),d=a,f=a*o/i),{x:r+d,y:t+f}}function D(n){var e=m(N(Pn(n)+1),function(){return[]});return s(n.nodes(),function(r){var t=n.node(r),i=t.rank;g(i)||(e[i][t.order]=r)}),e}function ur(n){var e=R(m(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var t=n.node(r);w(t,"rank")&&(t.rank-=e)})}function dr(n){var e=R(m(n.nodes(),function(o){return n.node(o).rank})),r=[];s(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=n.graph().nodeRankFactor;s(r,function(o,a){g(o)&&a%i!==0?--t:t&&s(o,function(u){n.node(u).rank+=t})})}function hn(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),C(n,"border",i,e)}function Pn(n){return k(m(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function fr(n,e){var r={lhs:[],rhs:[]};return s(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function sr(n,e){var r=fn();try{return e()}finally{console.log(n+" time: "+(fn()-r)+"ms")}}function cr(n,e){return e()}function hr(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&s(t,e),w(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)vn(n,"borderLeft","_bl",r,i,o),vn(n,"borderRight","_br",r,i,o)}}s(n.children(),e)}function vn(n,e,r,t,i,o){var a={width:0,height:0,rank:o,borderType:e},u=i[e][o-1],d=C(n,"border",a,r);i[e][o]=d,n.setParent(d,t),u&&n.setEdge(u,d,{weight:1})}function vr(n){var e=n.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&Sn(n)}function lr(n){var e=n.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&pr(n),(e==="lr"||e==="rl")&&(wr(n),Sn(n))}function Sn(n){s(n.nodes(),function(e){ln(n.node(e))}),s(n.edges(),function(e){ln(n.edge(e))})}function ln(n){var e=n.width;n.width=n.height,n.height=e}function pr(n){s(n.nodes(),function(e){W(n.node(e))}),s(n.edges(),function(e){var r=n.edge(e);s(r.points,W),w(r,"y")&&W(r)})}function W(n){n.y=-n.y}function wr(n){s(n.nodes(),function(e){X(n.node(e))}),s(n.edges(),function(e){var r=n.edge(e);s(r.points,X),w(r,"x")&&X(r)})}function X(n){var e=n.x;n.x=n.y,n.y=e}function mr(n){n.graph().dummyChains=[],s(n.edges(),function(e){br(n,e)})}function br(n,e){var r=e.v,t=n.node(r).rank,i=e.w,o=n.node(i).rank,a=e.name,u=n.edge(e),d=u.labelRank;if(o!==t+1){n.removeEdge(e);var f,c,h;for(h=0,++t;t<o;++h,++t)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:e,rank:t},f=C(n,"edge",c,"_d"),t===d&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),n.setEdge(r,f,{weight:u.weight},a),h===0&&n.graph().dummyChains.push(f),r=f;n.setEdge(r,i,{weight:u.weight},a)}}function gr(n){s(n.graph().dummyChains,function(e){var r=n.node(e),t=r.edgeLabel,i;for(n.setEdge(r.edgeObj,t);r.dummy;)i=n.successors(e)[0],n.removeNode(e),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),e=i,r=n.node(e)})}function rn(n){var e={};function r(t){var i=n.node(t);if(w(e,t))return i.rank;e[t]=!0;var o=R(m(n.outEdges(t),function(a){return r(a.w)-n.edge(a).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),i.rank=o}s(n.sources(),r)}function T(n,e){return n.node(e.w).rank-n.node(e.v).rank-n.edge(e).minlen}function Fn(n){var e=new x({directed:!1}),r=n.nodes()[0],t=n.nodeCount();e.setNode(r,{});for(var i,o;xr(e,n)<t;)i=kr(e,n),o=e.hasNode(i.v)?T(n,i):-T(n,i),Er(e,n,o);return e}function xr(n,e){function r(t){s(e.nodeEdges(t),function(i){var o=i.v,a=t===o?i.w:o;!n.hasNode(a)&&!T(e,i)&&(n.setNode(a,{}),n.setEdge(t,a,{}),r(a))})}return s(n.nodes(),r),n.nodeCount()}function kr(n,e){return nn(e.edges(),function(r){if(n.hasNode(r.v)!==n.hasNode(r.w))return T(e,r)})}function Er(n,e,r){s(n.nodes(),function(t){e.node(t).rank+=r})}function $n(n,e,r){K(e)||(e=[e]);var t=(n.isDirected()?n.successors:n.neighbors).bind(n),i=[],o={};return s(e,function(a){if(!n.hasNode(a))throw new Error("Graph does not have node: "+a);An(n,a,r==="post",o,t,i)}),i}function An(n,e,r,t,i,o){w(t,e)||(t[e]=!0,r||o.push(e),s(i(e),function(a){An(n,a,r,t,i,o)}),r&&o.push(e))}function yr(n,e){return $n(n,e,"post")}function Nr(n,e){return $n(n,e,"pre")}E.initLowLimValues=an;E.initCutValues=tn;E.calcCutValue=Bn;E.leaveEdge=Vn;E.enterEdge=Yn;E.exchangeEdges=Dn;function E(n){n=or(n),rn(n);var e=Fn(n);an(e),tn(e,n);for(var r,t;r=Vn(e);)t=Yn(e,n,r),Dn(e,n,r,t)}function tn(n,e){var r=yr(n,n.nodes());r=r.slice(0,r.length-1),s(r,function(t){Lr(n,e,t)})}function Lr(n,e,r){var t=n.node(r),i=t.parent;n.edge(r,i).cutvalue=Bn(n,e,r)}function Bn(n,e,r){var t=n.node(r),i=t.parent,o=!0,a=e.edge(r,i),u=0;return a||(o=!1,a=e.edge(i,r)),u=a.weight,s(e.nodeEdges(r),function(d){var f=d.v===r,c=f?d.w:d.v;if(c!==i){var h=f===o,v=e.edge(d).weight;if(u+=h?v:-v,Cr(n,r,c)){var l=n.edge(r,c).cutvalue;u+=h?-l:l}}}),u}function an(n,e){arguments.length<2&&(e=n.nodes()[0]),Gn(n,{},1,e)}function Gn(n,e,r,t,i){var o=r,a=n.node(t);return e[t]=!0,s(n.neighbors(t),function(u){w(e,u)||(r=Gn(n,e,r,u,t))}),a.low=o,a.lim=r++,i?a.parent=i:delete a.parent,r}function Vn(n){return Z(n.edges(),function(e){return n.edge(e).cutvalue<0})}function Yn(n,e,r){var t=r.v,i=r.w;e.hasEdge(t,i)||(t=r.w,i=r.v);var o=n.node(t),a=n.node(i),u=o,d=!1;o.lim>a.lim&&(u=a,d=!0);var f=M(e.edges(),function(c){return d===pn(n,n.node(c.v),u)&&d!==pn(n,n.node(c.w),u)});return nn(f,function(c){return T(e,c)})}function Dn(n,e,r,t){var i=r.v,o=r.w;n.removeEdge(i,o),n.setEdge(t.v,t.w,{}),an(n),tn(n,e),_r(n,e)}function _r(n,e){var r=Z(n.nodes(),function(i){return!e.node(i).parent}),t=Nr(n,r);t=t.slice(1),s(t,function(i){var o=n.node(i).parent,a=e.edge(i,o),u=!1;a||(a=e.edge(o,i),u=!0),e.node(i).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function Cr(n,e,r){return n.hasEdge(e,r)}function pn(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function Ir(n){switch(n.graph().ranker){case"network-simplex":wn(n);break;case"tight-tree":Tr(n);break;case"longest-path":Rr(n);break;default:wn(n)}}var Rr=rn;function Tr(n){rn(n),Fn(n)}function wn(n){E(n)}function Mr(n){var e=C(n,"root",{},"_root"),r=Or(n),t=k(y(r))-1,i=2*t+1;n.graph().nestingRoot=e,s(n.edges(),function(a){n.edge(a).minlen*=i});var o=Pr(n)+1;s(n.children(),function(a){qn(n,e,i,o,t,r,a)}),n.graph().nodeRankFactor=i}function qn(n,e,r,t,i,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=hn(n,"_bt"),f=hn(n,"_bb"),c=n.node(a);n.setParent(d,a),c.borderTop=d,n.setParent(f,a),c.borderBottom=f,s(u,function(h){qn(n,e,r,t,i,o,h);var v=n.node(h),l=v.borderTop?v.borderTop:h,p=v.borderBottom?v.borderBottom:h,b=v.borderTop?t:2*t,I=l!==p?1:i-o[a]+1;n.setEdge(d,l,{weight:b,minlen:I,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:I,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:i+o[a]})}function Or(n){var e={};function r(t,i){var o=n.children(t);o&&o.length&&s(o,function(a){r(a,i+1)}),e[t]=i}return s(n.children(),function(t){r(t,1)}),e}function Pr(n){return V(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function Sr(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Fr(n,e,r){var t={},i;s(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=t[u],t[u]=a):(d=i,i=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function $r(n,e,r){var t=Ar(n),i=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return n.node(o)});return s(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),s(n[r](o),function(d){var f=d.v===o?d.w:d.v,c=i.edge(f,o),h=g(c)?0:c.weight;i.setEdge(f,o,{weight:n.edge(d).weight+h})}),w(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),i}function Ar(n){for(var e;n.hasNode(e=en("_root")););return e}function Br(n,e){for(var r=0,t=1;t<e.length;++t)r+=Gr(n,e[t-1],e[t]);return r}function Gr(n,e,r){for(var t=Je(r,m(r,function(f,c){return c})),i=_(m(e,function(f){return O(m(n.outEdges(f),function(c){return{pos:t[c.w],weight:n.edge(c).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var a=2*o-1;o-=1;var u=m(new Array(a),function(){return 0}),d=0;return s(i.forEach(function(f){var c=f.pos+o;u[c]+=f.weight;for(var h=0;c>0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*h})),d}function Vr(n){var e={},r=M(n.nodes(),function(u){return!n.children(u).length}),t=k(m(r,function(u){return n.node(u).rank})),i=m(N(t+1),function(){return[]});function o(u){if(!w(e,u)){e[u]=!0;var d=n.node(u);i[d.rank].push(u),s(n.successors(u),o)}}var a=O(r,function(u){return n.node(u).rank});return s(a,o),i}function Yr(n,e){return m(e,function(r){var t=n.inEdges(r);if(t.length){var i=V(t,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Dr(n,e){var r={};s(n,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};g(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),s(e.edges(),function(i){var o=r[i.v],a=r[i.w];!g(o)&&!g(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=M(r,function(i){return!i.indegree});return qr(t)}function qr(n){var e=[];function r(o){return function(a){a.merged||(g(a.barycenter)||g(o.barycenter)||a.barycenter>=o.barycenter)&&Wr(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var i=n.pop();e.push(i),s(i.in.reverse(),r(i)),s(i.out,t(i))}return m(M(e,function(o){return!o.merged}),function(o){return G(o,["vs","i","barycenter","weight"])})}function Wr(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function Xr(n,e){var r=fr(n,function(c){return w(c,"barycenter")}),t=r.lhs,i=O(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;t.sort(Ur(!!e)),d=mn(o,i,d),s(t,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=mn(o,i,d)});var f={vs:_(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function mn(n,e,r){for(var t;e.length&&(t=B(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function Ur(n){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:n?r.i-e.i:e.i-r.i}}function Wn(n,e,r,t){var i=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(i=M(i,function(p){return p!==a&&p!==u}));var f=Yr(n,i);s(f,function(p){if(n.children(p.v).length){var b=Wn(n,p.v,r,t);d[p.v]=b,w(b,"barycenter")&&Hr(p,b)}});var c=Dr(f,r);zr(c,d);var h=Xr(c,t);if(a&&(h.vs=_([a,h.vs,u]),n.predecessors(a).length)){var v=n.node(n.predecessors(a)[0]),l=n.node(n.predecessors(u)[0]);w(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+v.order+l.order)/(h.weight+2),h.weight+=2}return h}function zr(n,e){s(n,function(r){r.vs=_(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function Hr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function jr(n){var e=Pn(n),r=bn(n,N(1,e+1),"inEdges"),t=bn(n,N(e-1,-1,-1),"outEdges"),i=Vr(n);gn(n,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){Jr(u%2?r:t,u%4>=2),i=D(n);var f=Br(n,i);f<o&&(d=0,a=Ee(i),o=f)}gn(n,a)}function bn(n,e,r){return m(e,function(t){return $r(n,t,r)})}function Jr(n,e){var r=new x;s(n,function(t){var i=t.graph().root,o=Wn(t,i,r,e);s(o.vs,function(a,u){t.node(a).order=u}),Fr(t,r,o.vs)})}function gn(n,e){s(e,function(r){s(r,function(t,i){n.node(t).order=i})})}function Kr(n){var e=Qr(n);s(n.graph().dummyChains,function(r){for(var t=n.node(r),i=t.edgeObj,o=Zr(n,e,i.v,i.w),a=o.path,u=o.lca,d=0,f=a[d],c=!0;r!==i.w;){if(t=n.node(r),c){for(;(f=a[d])!==u&&n.node(f).maxRank<t.rank;)d++;f===u&&(c=!1)}if(!c){for(;d<a.length-1&&n.node(f=a[d+1]).minRank<=t.rank;)d++;f=a[d]}n.setParent(r,f),r=n.successors(r)[0]}})}function Zr(n,e,r,t){var i=[],o=[],a=Math.min(e[r].low,e[t].low),u=Math.max(e[r].lim,e[t].lim),d,f;d=r;do d=n.parent(d),i.push(d);while(d&&(e[d].low>a||u>e[d].lim));for(f=d,d=t;(d=n.parent(d))!==f;)o.push(d);return{path:i.concat(o.reverse()),lca:f}}function Qr(n){var e={},r=0;function t(i){var o=r;s(n.children(i),t),e[i]={low:o,lim:r++}}return s(n.children(),t),e}function nt(n,e){var r={};function t(i,o){var a=0,u=0,d=i.length,f=B(o);return s(o,function(c,h){var v=rt(n,c),l=v?n.node(v).order:d;(v||c===f)&&(s(o.slice(u,h+1),function(p){s(n.predecessors(p),function(b){var I=n.node(b),on=I.order;(on<a||l<on)&&!(I.dummy&&n.node(p).dummy)&&Xn(r,b,p)})}),u=h+1,a=l)}),o}return V(e,t),r}function et(n,e){var r={};function t(o,a,u,d,f){var c;s(N(a,u),function(h){c=o[h],n.node(c).dummy&&s(n.predecessors(c),function(v){var l=n.node(v);l.dummy&&(l.order<d||l.order>f)&&Xn(r,v,c)})})}function i(o,a){var u=-1,d,f=0;return s(a,function(c,h){if(n.node(c).dummy==="border"){var v=n.predecessors(c);v.length&&(d=n.node(v[0]).order,t(a,f,h,u,d),f=h,u=d)}t(a,f,a.length,d,o.length)}),a}return V(e,i),r}function rt(n,e){if(n.node(e).dummy)return Z(n.predecessors(e),function(r){return n.node(r).dummy})}function Xn(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function tt(n,e,r){if(e>r){var t=e;e=r,r=t}return w(n[e],r)}function it(n,e,r,t){var i={},o={},a={};return s(e,function(u){s(u,function(d,f){i[d]=d,o[d]=d,a[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=t(f);if(c.length){c=O(c,function(b){return a[b]});for(var h=(c.length-1)/2,v=Math.floor(h),l=Math.ceil(h);v<=l;++v){var p=c[v];o[f]===f&&d<a[p]&&!tt(r,f,p)&&(o[p]=f,o[f]=i[f]=i[p],d=a[p])}}})}),{root:i,align:o}}function at(n,e,r,t,i){var o={},a=ot(n,e,r,i),u=i?"borderLeft":"borderRight";function d(h,v){for(var l=a.nodes(),p=l.pop(),b={};p;)b[p]?h(p):(b[p]=!0,l.push(p),l=l.concat(v(p))),p=l.pop()}function f(h){o[h]=a.inEdges(h).reduce(function(v,l){return Math.max(v,o[l.v]+a.edge(l))},0)}function c(h){var v=a.outEdges(h).reduce(function(p,b){return Math.min(p,o[b.w]-a.edge(b))},Number.POSITIVE_INFINITY),l=n.node(h);v!==Number.POSITIVE_INFINITY&&l.borderType!==u&&(o[h]=Math.max(o[h],v))}return d(f,a.predecessors.bind(a)),d(c,a.successors.bind(a)),s(t,function(h){o[h]=o[r[h]]}),o}function ot(n,e,r,t){var i=new x,o=n.graph(),a=ct(o.nodesep,o.edgesep,t);return s(e,function(u){var d;s(u,function(f){var c=r[f];if(i.setNode(c),d){var h=r[d],v=i.edge(h,c);i.setEdge(h,c,Math.max(a(n,f,d),v||0))}d=f})}),i}function ut(n,e){return nn(y(e),function(r){var t=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Me(r,function(o,a){var u=ht(n,a)/2;t=Math.max(o+u,t),i=Math.min(o-u,i)}),t-i})}function dt(n,e){var r=y(e),t=R(r),i=k(r);s(["u","d"],function(o){s(["l","r"],function(a){var u=o+a,d=n[u],f;if(d!==e){var c=y(d);f=a==="l"?t-R(c):i-k(c),f&&(n[u]=Y(d,function(h){return h+f}))}})})}function ft(n,e){return Y(n.ul,function(r,t){if(e)return n[e.toLowerCase()][t];var i=O(m(n,t));return(i[1]+i[2])/2})}function st(n){var e=D(n),r=H(nt(n,e),et(n,e)),t={},i;s(["u","d"],function(a){i=a==="u"?e:y(e).reverse(),s(["l","r"],function(u){u==="r"&&(i=m(i,function(h){return y(h).reverse()}));var d=(a==="u"?n.predecessors:n.successors).bind(n),f=it(n,i,r,d),c=at(n,i,f.root,f.align,u==="r");u==="r"&&(c=Y(c,function(h){return-h})),t[a+u]=c})});var o=ut(n,t);return dt(t,o),ft(t,n.graph().align)}function ct(n,e,r){return function(t,i,o){var a=t.node(i),u=t.node(o),d=0,f;if(d+=a.width/2,w(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":f=-a.width/2;break;case"r":f=a.width/2;break}if(f&&(d+=r?f:-f),f=0,d+=(a.dummy?e:n)/2,d+=(u.dummy?e:n)/2,d+=u.width/2,w(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":f=u.width/2;break;case"r":f=-u.width/2;break}return f&&(d+=r?f:-f),f=0,d}}function ht(n,e){return n.node(e).width}function vt(n){n=On(n),lt(n),Oe(st(n),function(e,r){n.node(r).x=e})}function lt(n){var e=D(n),r=n.graph().ranksep,t=0;s(e,function(i){var o=k(m(i,function(a){return n.node(a).height}));s(i,function(a){n.node(a).y=t+o/2}),t+=o+r})}function Vt(n,e){var r=e&&e.debugTiming?sr:cr;r("layout",function(){var t=r(" buildLayoutGraph",function(){return Lt(n)});r(" runLayout",function(){pt(t,r)}),r(" updateInputGraph",function(){wt(n,t)})})}function pt(n,e){e(" makeSpaceForEdgeLabels",function(){_t(n)}),e(" removeSelfEdges",function(){Ft(n)}),e(" acyclic",function(){tr(n)}),e(" nestingGraph.run",function(){Mr(n)}),e(" rank",function(){Ir(On(n))}),e(" injectEdgeLabelProxies",function(){Ct(n)}),e(" removeEmptyRanks",function(){dr(n)}),e(" nestingGraph.cleanup",function(){Sr(n)}),e(" normalizeRanks",function(){ur(n)}),e(" assignRankMinMax",function(){It(n)}),e(" removeEdgeLabelProxies",function(){Rt(n)}),e(" normalize.run",function(){mr(n)}),e(" parentDummyChains",function(){Kr(n)}),e(" addBorderSegments",function(){hr(n)}),e(" order",function(){jr(n)}),e(" insertSelfEdges",function(){$t(n)}),e(" adjustCoordinateSystem",function(){vr(n)}),e(" position",function(){vt(n)}),e(" positionSelfEdges",function(){At(n)}),e(" removeBorderNodes",function(){St(n)}),e(" normalize.undo",function(){gr(n)}),e(" fixupEdgeLabelCoords",function(){Ot(n)}),e(" undoCoordinateSystem",function(){lr(n)}),e(" translateGraph",function(){Tt(n)}),e(" assignNodeIntersects",function(){Mt(n)}),e(" reversePoints",function(){Pt(n)}),e(" acyclic.undo",function(){ar(n)})}function wt(n,e){s(n.nodes(),function(r){var t=n.node(r),i=e.node(r);t&&(t.x=i.x,t.y=i.y,e.children(r).length&&(t.width=i.width,t.height=i.height))}),s(n.edges(),function(r){var t=n.edge(r),i=e.edge(r);t.points=i.points,w(i,"x")&&(t.x=i.x,t.y=i.y)}),n.graph().width=e.graph().width,n.graph().height=e.graph().height}var mt=["nodesep","edgesep","ranksep","marginx","marginy"],bt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},gt=["acyclicer","ranker","rankdir","align"],xt=["width","height"],kt={width:0,height:0},Et=["minlen","weight","width","height","labeloffset"],yt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Nt=["labelpos"];function Lt(n){var e=new x({multigraph:!0,compound:!0}),r=z(n.graph());return e.setGraph(H({},bt,U(r,mt),G(r,gt))),s(n.nodes(),function(t){var i=z(n.node(t));e.setNode(t,_e(U(i,xt),kt)),e.setParent(t,n.parent(t))}),s(n.edges(),function(t){var i=z(n.edge(t));e.setEdge(t,H({},yt,U(i,Et),G(i,Nt)))}),e}function _t(n){var e=n.graph();e.ranksep/=2,s(n.edges(),function(r){var t=n.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Ct(n){s(n.edges(),function(e){var r=n.edge(e);if(r.width&&r.height){var t=n.node(e.v),i=n.node(e.w),o={rank:(i.rank-t.rank)/2+t.rank,e};C(n,"edge-proxy",o,"_ep")}})}function It(n){var e=0;s(n.nodes(),function(r){var t=n.node(r);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,e=k(e,t.maxRank))}),n.graph().maxRank=e}function Rt(n){s(n.nodes(),function(e){var r=n.node(e);r.dummy==="edge-proxy"&&(n.edge(r.e).labelRank=r.rank,n.removeNode(e))})}function Tt(n){var e=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,i=0,o=n.graph(),a=o.marginx||0,u=o.marginy||0;function d(f){var c=f.x,h=f.y,v=f.width,l=f.height;e=Math.min(e,c-v/2),r=Math.max(r,c+v/2),t=Math.min(t,h-l/2),i=Math.max(i,h+l/2)}s(n.nodes(),function(f){d(n.node(f))}),s(n.edges(),function(f){var c=n.edge(f);w(c,"x")&&d(c)}),e-=a,t-=u,s(n.nodes(),function(f){var c=n.node(f);c.x-=e,c.y-=t}),s(n.edges(),function(f){var c=n.edge(f);s(c.points,function(h){h.x-=e,h.y-=t}),w(c,"x")&&(c.x-=e),w(c,"y")&&(c.y-=t)}),o.width=r-e+a,o.height=i-t+u}function Mt(n){s(n.edges(),function(e){var r=n.edge(e),t=n.node(e.v),i=n.node(e.w),o,a;r.points?(o=r.points[0],a=r.points[r.points.length-1]):(r.points=[],o=i,a=t),r.points.unshift(cn(t,o)),r.points.push(cn(i,a))})}function Ot(n){s(n.edges(),function(e){var r=n.edge(e);if(w(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Pt(n){s(n.edges(),function(e){var r=n.edge(e);r.reversed&&r.points.reverse()})}function St(n){s(n.nodes(),function(e){if(n.children(e).length){var r=n.node(e),t=n.node(r.borderTop),i=n.node(r.borderBottom),o=n.node(B(r.borderLeft)),a=n.node(B(r.borderRight));r.width=Math.abs(a.x-o.x),r.height=Math.abs(i.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),s(n.nodes(),function(e){n.node(e).dummy==="border"&&n.removeNode(e)})}function Ft(n){s(n.edges(),function(e){if(e.v===e.w){var r=n.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:n.edge(e)}),n.removeEdge(e)}})}function $t(n){var e=D(n);s(e,function(r){var t=0;s(r,function(i,o){var a=n.node(i);a.order=o+t,s(a.selfEdges,function(u){C(n,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:o+ ++t,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}function At(n){s(n.nodes(),function(e){var r=n.node(e);if(r.dummy==="selfedge"){var t=n.node(r.e.v),i=t.x+t.width/2,o=t.y,a=r.x-i,u=t.height/2;n.setEdge(r.e,r.label),n.removeNode(e),r.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function U(n,e){return Y(G(n,e),Number)}function z(n){var e={};return s(n,function(r,t){e[t.toLowerCase()]=r}),e}export{_e as d,Vt as l,m,G as p,N as r,en as u};
class h0{constructor(e,t,a){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=a}static range(e,t){return t?!e||!e.loc||!t.loc||e.loc.lexer!==t.loc.lexer?null:new h0(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}}class w0{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new w0(t,h0.range(this,e))}}class M{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var a="KaTeX parse error: "+e,n,s,o=t&&t.loc;if(o&&o.start<=o.end){var m=o.lexer.input;n=o.start,s=o.end,n===m.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var c=m.slice(n,s).replace(/[^]/g,"$&̲"),p;n>15?p="…"+m.slice(n-15,n):p=m.slice(0,n);var g;s+15<m.length?g=m.slice(s,s+15)+"…":g=m.slice(s),a+=p+c+g}var y=new Error(a);return y.name="ParseError",y.__proto__=M.prototype,y.position=n,n!=null&&s!=null&&(y.length=s-n),y.rawMessage=e,y}}M.prototype.__proto__=Error.prototype;var da=function(e,t){return e.indexOf(t)!==-1},fa=function(e,t){return e===void 0?t:e},pa=/([A-Z])/g,va=function(e){return e.replace(pa,"-$1").toLowerCase()},ga={"&":"&",">":">","<":"<",'"':""","'":"'"},ba=/[&><"']/g;function ya(r){return String(r).replace(ba,e=>ga[e])}var pr=function r(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?r(e.body[0]):e:e.type==="font"?r(e.body):e},wa=function(e){var t=pr(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},xa=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},ka=function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return t!=null?t[1]:"_relative"},E={contains:da,deflt:fa,escape:ya,hyphenate:va,getBaseElem:pr,isCharacterBox:wa,protocolFromUrl:ka},Te={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:r=>"#"+r},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:r=>Math.max(0,r),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:r=>Math.max(0,r),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:r=>Math.max(0,r),cli:"-e, --max-expand <n>",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};function Sa(r){if(r.default)return r.default;var e=r.type,t=Array.isArray(e)?e[0]:e;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class ct{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t in Te)if(Te.hasOwnProperty(t)){var a=Te[t];this[t]=e[t]!==void 0?a.processor?a.processor(e[t]):e[t]:Sa(a)}}reportNonstrict(e,t,a){var n=this.strict;if(typeof n=="function"&&(n=n(e,t,a)),!(!n||n==="ignore")){if(n===!0||n==="error")throw new M("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),a);n==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,a){var n=this.strict;if(typeof n=="function")try{n=n(e,t,a)}catch{n="error"}return!n||n==="ignore"?!1:n===!0||n==="error"?!0:n==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]")),!1)}isTrusted(e){e.url&&!e.protocol&&(e.protocol=E.protocolFromUrl(e.url));var t=typeof this.trust=="function"?this.trust(e):this.trust;return!!t}}class O0{constructor(e,t,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=a}sup(){return b0[Ma[this.id]]}sub(){return b0[za[this.id]]}fracNum(){return b0[Ta[this.id]]}fracDen(){return b0[Aa[this.id]]}cramp(){return b0[Ba[this.id]]}text(){return b0[Na[this.id]]}isTight(){return this.size>=2}}var dt=0,Be=1,_0=2,A0=3,le=4,d0=5,ee=6,n0=7,b0=[new O0(dt,0,!1),new O0(Be,0,!0),new O0(_0,1,!1),new O0(A0,1,!0),new O0(le,2,!1),new O0(d0,2,!0),new O0(ee,3,!1),new O0(n0,3,!0)],Ma=[le,d0,le,d0,ee,n0,ee,n0],za=[d0,d0,d0,d0,n0,n0,n0,n0],Ta=[_0,A0,le,d0,ee,n0,ee,n0],Aa=[A0,A0,d0,d0,n0,n0,n0,n0],Ba=[Be,Be,A0,A0,d0,d0,n0,n0],Na=[dt,Be,_0,A0,_0,A0,_0,A0],I={DISPLAY:b0[dt],TEXT:b0[_0],SCRIPT:b0[le],SCRIPTSCRIPT:b0[ee]},at=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Ca(r){for(var e=0;e<at.length;e++)for(var t=at[e],a=0;a<t.blocks.length;a++){var n=t.blocks[a];if(r>=n[0]&&r<=n[1])return t.name}return null}var Ae=[];at.forEach(r=>r.blocks.forEach(e=>Ae.push(...e)));function vr(r){for(var e=0;e<Ae.length;e+=2)if(r>=Ae[e]&&r<=Ae[e+1])return!0;return!1}var Q0=80,qa=function(e,t){return"M95,"+(622+e+t)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+e/2.075+" -"+e+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+e)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Ra=function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+e/2.084+" -"+e+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+e)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Ia=function(e,t){return"M983 "+(10+e+t)+`
l`+e/3.13+" -"+e+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Da=function(e,t){return"M424,"+(2398+e+t)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+e)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+t+`
h400000v`+(40+e)+"h-400000z"},Ea=function(e,t){return"M473,"+(2713+e+t)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},Oa=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},Ha=function(e,t,a){var n=a-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+`
H742v`+n+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},La=function(e,t,a){t=1e3*t;var n="";switch(e){case"sqrtMain":n=qa(t,Q0);break;case"sqrtSize1":n=Ra(t,Q0);break;case"sqrtSize2":n=Ia(t,Q0);break;case"sqrtSize3":n=Da(t,Q0);break;case"sqrtSize4":n=Ea(t,Q0);break;case"sqrtTall":n=Ha(t,Q0,a)}return n},Fa=function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z"+("M367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z");case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257z"+("M478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z");default:return""}},Et={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Pa=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z
M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v602 h84z
M403 1759 V0 H319 V1759 v`+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v602 h84z
M347 1759 V0 h-84 V1759 v`+t+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class me{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return E.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){var e=t=>t.toText();return this.children.map(e).join("")}}var y0={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ge={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Ot={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Ga(r,e){y0[r]=e}function ft(r,e,t){if(!y0[e])throw new Error("Font metrics not found for font: "+e+".");var a=r.charCodeAt(0),n=y0[e][a];if(!n&&r[0]in Ot&&(a=Ot[r[0]].charCodeAt(0),n=y0[e][a]),!n&&t==="text"&&vr(a)&&(n=y0[e][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var Ue={};function Va(r){var e;if(r>=5?e=0:r>=3?e=1:e=2,!Ue[e]){var t=Ue[e]={cssEmPerMu:ge.quad[e]/18};for(var a in ge)ge.hasOwnProperty(a)&&(t[a]=ge[a][e])}return Ue[e]}var Ua=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ht=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Lt=function(e,t){return t.size<2?e:Ua[e-1][t.size-1]};class T0{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||T0.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=Ht[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var a in e)e.hasOwnProperty(a)&&(t[a]=e[a]);return new T0(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Lt(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Ht[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=Lt(T0.BASESIZE,e);return this.size===t&&this.textSize===T0.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==T0.BASESIZE?["sizing","reset-size"+this.size,"size"+T0.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Va(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}T0.BASESIZE=6;var nt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Ya={ex:!0,em:!0,mu:!0},gr=function(e){return typeof e!="string"&&(e=e.unit),e in nt||e in Ya||e==="ex"},K=function(e,t){var a;if(e.unit in nt)a=nt[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")a=t.fontMetrics().cssEmPerMu;else{var n;if(t.style.isTight()?n=t.havingStyle(t.style.text()):n=t,e.unit==="ex")a=n.fontMetrics().xHeight;else if(e.unit==="em")a=n.fontMetrics().quad;else throw new M("Invalid unit: '"+e.unit+"'");n!==t&&(a*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*a,t.maxSize)},T=function(e){return+e.toFixed(4)+"em"},F0=function(e){return e.filter(t=>t).join(" ")},br=function(e,t,a){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},yr=function(e){var t=document.createElement(e);t.className=F0(this.classes);for(var a in this.style)this.style.hasOwnProperty(a)&&(t.style[a]=this.style[a]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(var s=0;s<this.children.length;s++)t.appendChild(this.children[s].toNode());return t},wr=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+E.escape(F0(this.classes))+'"');var a="";for(var n in this.style)this.style.hasOwnProperty(n)&&(a+=E.hyphenate(n)+":"+this.style[n]+";");a&&(t+=' style="'+E.escape(a)+'"');for(var s in this.attributes)this.attributes.hasOwnProperty(s)&&(t+=" "+s+'="'+E.escape(this.attributes[s])+'"');t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</"+e+">",t};class ue{constructor(e,t,a,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,br.call(this,e,a,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return E.contains(this.classes,e)}toNode(){return yr.call(this,"span")}toMarkup(){return wr.call(this,"span")}}class pt{constructor(e,t,a,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,br.call(this,t,n),this.children=a||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return E.contains(this.classes,e)}toNode(){return yr.call(this,"a")}toMarkup(){return wr.call(this,"a")}}class Xa{constructor(e,t,a){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=a}hasClass(e){return E.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e="<img src='"+this.src+" 'alt='"+this.alt+"' ",t="";for(var a in this.style)this.style.hasOwnProperty(a)&&(t+=E.hyphenate(a)+":"+this.style[a]+";");return t&&(e+=' style="'+E.escape(t)+'"'),e+="'/>",e}}var $a={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class f0{constructor(e,t,a,n,s,o,m,c){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=a||0,this.italic=n||0,this.skew=s||0,this.width=o||0,this.classes=m||[],this.style=c||{},this.maxFontSize=0;var p=Ca(this.text.charCodeAt(0));p&&this.classes.push(p+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=$a[this.text])}hasClass(e){return E.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),t=null;this.italic>0&&(t=document.createElement("span"),t.style.marginRight=T(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=F0(this.classes));for(var a in this.style)this.style.hasOwnProperty(a)&&(t=t||document.createElement("span"),t.style[a]=this.style[a]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=E.escape(F0(this.classes)),t+='"');var a="";this.italic>0&&(a+="margin-right:"+this.italic+"em;");for(var n in this.style)this.style.hasOwnProperty(n)&&(a+=E.hyphenate(n)+":"+this.style[n]+";");a&&(e=!0,t+=' style="'+E.escape(a)+'"');var s=E.escape(this.text);return e?(t+=">",t+=s,t+="</span>",t):s}}class N0{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&t.setAttribute(a,this.attributes[a]);for(var n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");e+=">";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+="</svg>",e}}class P0{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"path");return this.alternate?t.setAttribute("d",this.alternate):t.setAttribute("d",Et[this.pathName]),t}toMarkup(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Et[this.pathName]+"'/>"}}class it{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&t.setAttribute(a,this.attributes[a]);return t}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");return e+="/>",e}}function Ft(r){if(r instanceof f0)return r;throw new Error("Expected symbolNode but got "+String(r)+".")}function Wa(r){if(r instanceof ue)return r;throw new Error("Expected span<HtmlDomNode> but got "+String(r)+".")}var ja={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Za={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},$={math:{},text:{}};function i(r,e,t,a,n,s){$[r][n]={font:e,group:t,replace:a},s&&a&&($[r][a]=$[r][n])}var l="math",k="text",h="main",d="ams",W="accent-token",N="bin",i0="close",te="inner",R="mathord",_="op-token",m0="open",Ie="punct",f="rel",R0="spacing",v="textord";i(l,h,f,"≡","\\equiv",!0);i(l,h,f,"≺","\\prec",!0);i(l,h,f,"≻","\\succ",!0);i(l,h,f,"∼","\\sim",!0);i(l,h,f,"⊥","\\perp");i(l,h,f,"⪯","\\preceq",!0);i(l,h,f,"⪰","\\succeq",!0);i(l,h,f,"≃","\\simeq",!0);i(l,h,f,"∣","\\mid",!0);i(l,h,f,"≪","\\ll",!0);i(l,h,f,"≫","\\gg",!0);i(l,h,f,"≍","\\asymp",!0);i(l,h,f,"∥","\\parallel");i(l,h,f,"⋈","\\bowtie",!0);i(l,h,f,"⌣","\\smile",!0);i(l,h,f,"⊑","\\sqsubseteq",!0);i(l,h,f,"⊒","\\sqsupseteq",!0);i(l,h,f,"≐","\\doteq",!0);i(l,h,f,"⌢","\\frown",!0);i(l,h,f,"∋","\\ni",!0);i(l,h,f,"∝","\\propto",!0);i(l,h,f,"⊢","\\vdash",!0);i(l,h,f,"⊣","\\dashv",!0);i(l,h,f,"∋","\\owns");i(l,h,Ie,".","\\ldotp");i(l,h,Ie,"⋅","\\cdotp");i(l,h,v,"#","\\#");i(k,h,v,"#","\\#");i(l,h,v,"&","\\&");i(k,h,v,"&","\\&");i(l,h,v,"ℵ","\\aleph",!0);i(l,h,v,"∀","\\forall",!0);i(l,h,v,"ℏ","\\hbar",!0);i(l,h,v,"∃","\\exists",!0);i(l,h,v,"∇","\\nabla",!0);i(l,h,v,"♭","\\flat",!0);i(l,h,v,"ℓ","\\ell",!0);i(l,h,v,"♮","\\natural",!0);i(l,h,v,"♣","\\clubsuit",!0);i(l,h,v,"℘","\\wp",!0);i(l,h,v,"♯","\\sharp",!0);i(l,h,v,"♢","\\diamondsuit",!0);i(l,h,v,"ℜ","\\Re",!0);i(l,h,v,"♡","\\heartsuit",!0);i(l,h,v,"ℑ","\\Im",!0);i(l,h,v,"♠","\\spadesuit",!0);i(l,h,v,"§","\\S",!0);i(k,h,v,"§","\\S");i(l,h,v,"¶","\\P",!0);i(k,h,v,"¶","\\P");i(l,h,v,"†","\\dag");i(k,h,v,"†","\\dag");i(k,h,v,"†","\\textdagger");i(l,h,v,"‡","\\ddag");i(k,h,v,"‡","\\ddag");i(k,h,v,"‡","\\textdaggerdbl");i(l,h,i0,"⎱","\\rmoustache",!0);i(l,h,m0,"⎰","\\lmoustache",!0);i(l,h,i0,"⟯","\\rgroup",!0);i(l,h,m0,"⟮","\\lgroup",!0);i(l,h,N,"∓","\\mp",!0);i(l,h,N,"⊖","\\ominus",!0);i(l,h,N,"⊎","\\uplus",!0);i(l,h,N,"⊓","\\sqcap",!0);i(l,h,N,"∗","\\ast");i(l,h,N,"⊔","\\sqcup",!0);i(l,h,N,"◯","\\bigcirc",!0);i(l,h,N,"∙","\\bullet",!0);i(l,h,N,"‡","\\ddagger");i(l,h,N,"≀","\\wr",!0);i(l,h,N,"⨿","\\amalg");i(l,h,N,"&","\\And");i(l,h,f,"⟵","\\longleftarrow",!0);i(l,h,f,"⇐","\\Leftarrow",!0);i(l,h,f,"⟸","\\Longleftarrow",!0);i(l,h,f,"⟶","\\longrightarrow",!0);i(l,h,f,"⇒","\\Rightarrow",!0);i(l,h,f,"⟹","\\Longrightarrow",!0);i(l,h,f,"↔","\\leftrightarrow",!0);i(l,h,f,"⟷","\\longleftrightarrow",!0);i(l,h,f,"⇔","\\Leftrightarrow",!0);i(l,h,f,"⟺","\\Longleftrightarrow",!0);i(l,h,f,"↦","\\mapsto",!0);i(l,h,f,"⟼","\\longmapsto",!0);i(l,h,f,"↗","\\nearrow",!0);i(l,h,f,"↩","\\hookleftarrow",!0);i(l,h,f,"↪","\\hookrightarrow",!0);i(l,h,f,"↘","\\searrow",!0);i(l,h,f,"↼","\\leftharpoonup",!0);i(l,h,f,"⇀","\\rightharpoonup",!0);i(l,h,f,"↙","\\swarrow",!0);i(l,h,f,"↽","\\leftharpoondown",!0);i(l,h,f,"⇁","\\rightharpoondown",!0);i(l,h,f,"↖","\\nwarrow",!0);i(l,h,f,"⇌","\\rightleftharpoons",!0);i(l,d,f,"≮","\\nless",!0);i(l,d,f,"","\\@nleqslant");i(l,d,f,"","\\@nleqq");i(l,d,f,"⪇","\\lneq",!0);i(l,d,f,"≨","\\lneqq",!0);i(l,d,f,"","\\@lvertneqq");i(l,d,f,"⋦","\\lnsim",!0);i(l,d,f,"⪉","\\lnapprox",!0);i(l,d,f,"⊀","\\nprec",!0);i(l,d,f,"⋠","\\npreceq",!0);i(l,d,f,"⋨","\\precnsim",!0);i(l,d,f,"⪹","\\precnapprox",!0);i(l,d,f,"≁","\\nsim",!0);i(l,d,f,"","\\@nshortmid");i(l,d,f,"∤","\\nmid",!0);i(l,d,f,"⊬","\\nvdash",!0);i(l,d,f,"⊭","\\nvDash",!0);i(l,d,f,"⋪","\\ntriangleleft");i(l,d,f,"⋬","\\ntrianglelefteq",!0);i(l,d,f,"⊊","\\subsetneq",!0);i(l,d,f,"","\\@varsubsetneq");i(l,d,f,"⫋","\\subsetneqq",!0);i(l,d,f,"","\\@varsubsetneqq");i(l,d,f,"≯","\\ngtr",!0);i(l,d,f,"","\\@ngeqslant");i(l,d,f,"","\\@ngeqq");i(l,d,f,"⪈","\\gneq",!0);i(l,d,f,"≩","\\gneqq",!0);i(l,d,f,"","\\@gvertneqq");i(l,d,f,"⋧","\\gnsim",!0);i(l,d,f,"⪊","\\gnapprox",!0);i(l,d,f,"⊁","\\nsucc",!0);i(l,d,f,"⋡","\\nsucceq",!0);i(l,d,f,"⋩","\\succnsim",!0);i(l,d,f,"⪺","\\succnapprox",!0);i(l,d,f,"≆","\\ncong",!0);i(l,d,f,"","\\@nshortparallel");i(l,d,f,"∦","\\nparallel",!0);i(l,d,f,"⊯","\\nVDash",!0);i(l,d,f,"⋫","\\ntriangleright");i(l,d,f,"⋭","\\ntrianglerighteq",!0);i(l,d,f,"","\\@nsupseteqq");i(l,d,f,"⊋","\\supsetneq",!0);i(l,d,f,"","\\@varsupsetneq");i(l,d,f,"⫌","\\supsetneqq",!0);i(l,d,f,"","\\@varsupsetneqq");i(l,d,f,"⊮","\\nVdash",!0);i(l,d,f,"⪵","\\precneqq",!0);i(l,d,f,"⪶","\\succneqq",!0);i(l,d,f,"","\\@nsubseteqq");i(l,d,N,"⊴","\\unlhd");i(l,d,N,"⊵","\\unrhd");i(l,d,f,"↚","\\nleftarrow",!0);i(l,d,f,"↛","\\nrightarrow",!0);i(l,d,f,"⇍","\\nLeftarrow",!0);i(l,d,f,"⇏","\\nRightarrow",!0);i(l,d,f,"↮","\\nleftrightarrow",!0);i(l,d,f,"⇎","\\nLeftrightarrow",!0);i(l,d,f,"△","\\vartriangle");i(l,d,v,"ℏ","\\hslash");i(l,d,v,"▽","\\triangledown");i(l,d,v,"◊","\\lozenge");i(l,d,v,"Ⓢ","\\circledS");i(l,d,v,"®","\\circledR");i(k,d,v,"®","\\circledR");i(l,d,v,"∡","\\measuredangle",!0);i(l,d,v,"∄","\\nexists");i(l,d,v,"℧","\\mho");i(l,d,v,"Ⅎ","\\Finv",!0);i(l,d,v,"⅁","\\Game",!0);i(l,d,v,"‵","\\backprime");i(l,d,v,"▲","\\blacktriangle");i(l,d,v,"▼","\\blacktriangledown");i(l,d,v,"■","\\blacksquare");i(l,d,v,"⧫","\\blacklozenge");i(l,d,v,"★","\\bigstar");i(l,d,v,"∢","\\sphericalangle",!0);i(l,d,v,"∁","\\complement",!0);i(l,d,v,"ð","\\eth",!0);i(k,h,v,"ð","ð");i(l,d,v,"╱","\\diagup");i(l,d,v,"╲","\\diagdown");i(l,d,v,"□","\\square");i(l,d,v,"□","\\Box");i(l,d,v,"◊","\\Diamond");i(l,d,v,"¥","\\yen",!0);i(k,d,v,"¥","\\yen",!0);i(l,d,v,"✓","\\checkmark",!0);i(k,d,v,"✓","\\checkmark");i(l,d,v,"ℶ","\\beth",!0);i(l,d,v,"ℸ","\\daleth",!0);i(l,d,v,"ℷ","\\gimel",!0);i(l,d,v,"ϝ","\\digamma",!0);i(l,d,v,"ϰ","\\varkappa");i(l,d,m0,"┌","\\@ulcorner",!0);i(l,d,i0,"┐","\\@urcorner",!0);i(l,d,m0,"└","\\@llcorner",!0);i(l,d,i0,"┘","\\@lrcorner",!0);i(l,d,f,"≦","\\leqq",!0);i(l,d,f,"⩽","\\leqslant",!0);i(l,d,f,"⪕","\\eqslantless",!0);i(l,d,f,"≲","\\lesssim",!0);i(l,d,f,"⪅","\\lessapprox",!0);i(l,d,f,"≊","\\approxeq",!0);i(l,d,N,"⋖","\\lessdot");i(l,d,f,"⋘","\\lll",!0);i(l,d,f,"≶","\\lessgtr",!0);i(l,d,f,"⋚","\\lesseqgtr",!0);i(l,d,f,"⪋","\\lesseqqgtr",!0);i(l,d,f,"≑","\\doteqdot");i(l,d,f,"≓","\\risingdotseq",!0);i(l,d,f,"≒","\\fallingdotseq",!0);i(l,d,f,"∽","\\backsim",!0);i(l,d,f,"⋍","\\backsimeq",!0);i(l,d,f,"⫅","\\subseteqq",!0);i(l,d,f,"⋐","\\Subset",!0);i(l,d,f,"⊏","\\sqsubset",!0);i(l,d,f,"≼","\\preccurlyeq",!0);i(l,d,f,"⋞","\\curlyeqprec",!0);i(l,d,f,"≾","\\precsim",!0);i(l,d,f,"⪷","\\precapprox",!0);i(l,d,f,"⊲","\\vartriangleleft");i(l,d,f,"⊴","\\trianglelefteq");i(l,d,f,"⊨","\\vDash",!0);i(l,d,f,"⊪","\\Vvdash",!0);i(l,d,f,"⌣","\\smallsmile");i(l,d,f,"⌢","\\smallfrown");i(l,d,f,"≏","\\bumpeq",!0);i(l,d,f,"≎","\\Bumpeq",!0);i(l,d,f,"≧","\\geqq",!0);i(l,d,f,"⩾","\\geqslant",!0);i(l,d,f,"⪖","\\eqslantgtr",!0);i(l,d,f,"≳","\\gtrsim",!0);i(l,d,f,"⪆","\\gtrapprox",!0);i(l,d,N,"⋗","\\gtrdot");i(l,d,f,"⋙","\\ggg",!0);i(l,d,f,"≷","\\gtrless",!0);i(l,d,f,"⋛","\\gtreqless",!0);i(l,d,f,"⪌","\\gtreqqless",!0);i(l,d,f,"≖","\\eqcirc",!0);i(l,d,f,"≗","\\circeq",!0);i(l,d,f,"≜","\\triangleq",!0);i(l,d,f,"∼","\\thicksim");i(l,d,f,"≈","\\thickapprox");i(l,d,f,"⫆","\\supseteqq",!0);i(l,d,f,"⋑","\\Supset",!0);i(l,d,f,"⊐","\\sqsupset",!0);i(l,d,f,"≽","\\succcurlyeq",!0);i(l,d,f,"⋟","\\curlyeqsucc",!0);i(l,d,f,"≿","\\succsim",!0);i(l,d,f,"⪸","\\succapprox",!0);i(l,d,f,"⊳","\\vartriangleright");i(l,d,f,"⊵","\\trianglerighteq");i(l,d,f,"⊩","\\Vdash",!0);i(l,d,f,"∣","\\shortmid");i(l,d,f,"∥","\\shortparallel");i(l,d,f,"≬","\\between",!0);i(l,d,f,"⋔","\\pitchfork",!0);i(l,d,f,"∝","\\varpropto");i(l,d,f,"◀","\\blacktriangleleft");i(l,d,f,"∴","\\therefore",!0);i(l,d,f,"∍","\\backepsilon");i(l,d,f,"▶","\\blacktriangleright");i(l,d,f,"∵","\\because",!0);i(l,d,f,"⋘","\\llless");i(l,d,f,"⋙","\\gggtr");i(l,d,N,"⊲","\\lhd");i(l,d,N,"⊳","\\rhd");i(l,d,f,"≂","\\eqsim",!0);i(l,h,f,"⋈","\\Join");i(l,d,f,"≑","\\Doteq",!0);i(l,d,N,"∔","\\dotplus",!0);i(l,d,N,"∖","\\smallsetminus");i(l,d,N,"⋒","\\Cap",!0);i(l,d,N,"⋓","\\Cup",!0);i(l,d,N,"⩞","\\doublebarwedge",!0);i(l,d,N,"⊟","\\boxminus",!0);i(l,d,N,"⊞","\\boxplus",!0);i(l,d,N,"⋇","\\divideontimes",!0);i(l,d,N,"⋉","\\ltimes",!0);i(l,d,N,"⋊","\\rtimes",!0);i(l,d,N,"⋋","\\leftthreetimes",!0);i(l,d,N,"⋌","\\rightthreetimes",!0);i(l,d,N,"⋏","\\curlywedge",!0);i(l,d,N,"⋎","\\curlyvee",!0);i(l,d,N,"⊝","\\circleddash",!0);i(l,d,N,"⊛","\\circledast",!0);i(l,d,N,"⋅","\\centerdot");i(l,d,N,"⊺","\\intercal",!0);i(l,d,N,"⋒","\\doublecap");i(l,d,N,"⋓","\\doublecup");i(l,d,N,"⊠","\\boxtimes",!0);i(l,d,f,"⇢","\\dashrightarrow",!0);i(l,d,f,"⇠","\\dashleftarrow",!0);i(l,d,f,"⇇","\\leftleftarrows",!0);i(l,d,f,"⇆","\\leftrightarrows",!0);i(l,d,f,"⇚","\\Lleftarrow",!0);i(l,d,f,"↞","\\twoheadleftarrow",!0);i(l,d,f,"↢","\\leftarrowtail",!0);i(l,d,f,"↫","\\looparrowleft",!0);i(l,d,f,"⇋","\\leftrightharpoons",!0);i(l,d,f,"↶","\\curvearrowleft",!0);i(l,d,f,"↺","\\circlearrowleft",!0);i(l,d,f,"↰","\\Lsh",!0);i(l,d,f,"⇈","\\upuparrows",!0);i(l,d,f,"↿","\\upharpoonleft",!0);i(l,d,f,"⇃","\\downharpoonleft",!0);i(l,h,f,"⊶","\\origof",!0);i(l,h,f,"⊷","\\imageof",!0);i(l,d,f,"⊸","\\multimap",!0);i(l,d,f,"↭","\\leftrightsquigarrow",!0);i(l,d,f,"⇉","\\rightrightarrows",!0);i(l,d,f,"⇄","\\rightleftarrows",!0);i(l,d,f,"↠","\\twoheadrightarrow",!0);i(l,d,f,"↣","\\rightarrowtail",!0);i(l,d,f,"↬","\\looparrowright",!0);i(l,d,f,"↷","\\curvearrowright",!0);i(l,d,f,"↻","\\circlearrowright",!0);i(l,d,f,"↱","\\Rsh",!0);i(l,d,f,"⇊","\\downdownarrows",!0);i(l,d,f,"↾","\\upharpoonright",!0);i(l,d,f,"⇂","\\downharpoonright",!0);i(l,d,f,"⇝","\\rightsquigarrow",!0);i(l,d,f,"⇝","\\leadsto");i(l,d,f,"⇛","\\Rrightarrow",!0);i(l,d,f,"↾","\\restriction");i(l,h,v,"‘","`");i(l,h,v,"$","\\$");i(k,h,v,"$","\\$");i(k,h,v,"$","\\textdollar");i(l,h,v,"%","\\%");i(k,h,v,"%","\\%");i(l,h,v,"_","\\_");i(k,h,v,"_","\\_");i(k,h,v,"_","\\textunderscore");i(l,h,v,"∠","\\angle",!0);i(l,h,v,"∞","\\infty",!0);i(l,h,v,"′","\\prime");i(l,h,v,"△","\\triangle");i(l,h,v,"Γ","\\Gamma",!0);i(l,h,v,"Δ","\\Delta",!0);i(l,h,v,"Θ","\\Theta",!0);i(l,h,v,"Λ","\\Lambda",!0);i(l,h,v,"Ξ","\\Xi",!0);i(l,h,v,"Π","\\Pi",!0);i(l,h,v,"Σ","\\Sigma",!0);i(l,h,v,"Υ","\\Upsilon",!0);i(l,h,v,"Φ","\\Phi",!0);i(l,h,v,"Ψ","\\Psi",!0);i(l,h,v,"Ω","\\Omega",!0);i(l,h,v,"A","Α");i(l,h,v,"B","Β");i(l,h,v,"E","Ε");i(l,h,v,"Z","Ζ");i(l,h,v,"H","Η");i(l,h,v,"I","Ι");i(l,h,v,"K","Κ");i(l,h,v,"M","Μ");i(l,h,v,"N","Ν");i(l,h,v,"O","Ο");i(l,h,v,"P","Ρ");i(l,h,v,"T","Τ");i(l,h,v,"X","Χ");i(l,h,v,"¬","\\neg",!0);i(l,h,v,"¬","\\lnot");i(l,h,v,"⊤","\\top");i(l,h,v,"⊥","\\bot");i(l,h,v,"∅","\\emptyset");i(l,d,v,"∅","\\varnothing");i(l,h,R,"α","\\alpha",!0);i(l,h,R,"β","\\beta",!0);i(l,h,R,"γ","\\gamma",!0);i(l,h,R,"δ","\\delta",!0);i(l,h,R,"ϵ","\\epsilon",!0);i(l,h,R,"ζ","\\zeta",!0);i(l,h,R,"η","\\eta",!0);i(l,h,R,"θ","\\theta",!0);i(l,h,R,"ι","\\iota",!0);i(l,h,R,"κ","\\kappa",!0);i(l,h,R,"λ","\\lambda",!0);i(l,h,R,"μ","\\mu",!0);i(l,h,R,"ν","\\nu",!0);i(l,h,R,"ξ","\\xi",!0);i(l,h,R,"ο","\\omicron",!0);i(l,h,R,"π","\\pi",!0);i(l,h,R,"ρ","\\rho",!0);i(l,h,R,"σ","\\sigma",!0);i(l,h,R,"τ","\\tau",!0);i(l,h,R,"υ","\\upsilon",!0);i(l,h,R,"ϕ","\\phi",!0);i(l,h,R,"χ","\\chi",!0);i(l,h,R,"ψ","\\psi",!0);i(l,h,R,"ω","\\omega",!0);i(l,h,R,"ε","\\varepsilon",!0);i(l,h,R,"ϑ","\\vartheta",!0);i(l,h,R,"ϖ","\\varpi",!0);i(l,h,R,"ϱ","\\varrho",!0);i(l,h,R,"ς","\\varsigma",!0);i(l,h,R,"φ","\\varphi",!0);i(l,h,N,"∗","*",!0);i(l,h,N,"+","+");i(l,h,N,"−","-",!0);i(l,h,N,"⋅","\\cdot",!0);i(l,h,N,"∘","\\circ",!0);i(l,h,N,"÷","\\div",!0);i(l,h,N,"±","\\pm",!0);i(l,h,N,"×","\\times",!0);i(l,h,N,"∩","\\cap",!0);i(l,h,N,"∪","\\cup",!0);i(l,h,N,"∖","\\setminus",!0);i(l,h,N,"∧","\\land");i(l,h,N,"∨","\\lor");i(l,h,N,"∧","\\wedge",!0);i(l,h,N,"∨","\\vee",!0);i(l,h,v,"√","\\surd");i(l,h,m0,"⟨","\\langle",!0);i(l,h,m0,"∣","\\lvert");i(l,h,m0,"∥","\\lVert");i(l,h,i0,"?","?");i(l,h,i0,"!","!");i(l,h,i0,"⟩","\\rangle",!0);i(l,h,i0,"∣","\\rvert");i(l,h,i0,"∥","\\rVert");i(l,h,f,"=","=");i(l,h,f,":",":");i(l,h,f,"≈","\\approx",!0);i(l,h,f,"≅","\\cong",!0);i(l,h,f,"≥","\\ge");i(l,h,f,"≥","\\geq",!0);i(l,h,f,"←","\\gets");i(l,h,f,">","\\gt",!0);i(l,h,f,"∈","\\in",!0);i(l,h,f,"","\\@not");i(l,h,f,"⊂","\\subset",!0);i(l,h,f,"⊃","\\supset",!0);i(l,h,f,"⊆","\\subseteq",!0);i(l,h,f,"⊇","\\supseteq",!0);i(l,d,f,"⊈","\\nsubseteq",!0);i(l,d,f,"⊉","\\nsupseteq",!0);i(l,h,f,"⊨","\\models");i(l,h,f,"←","\\leftarrow",!0);i(l,h,f,"≤","\\le");i(l,h,f,"≤","\\leq",!0);i(l,h,f,"<","\\lt",!0);i(l,h,f,"→","\\rightarrow",!0);i(l,h,f,"→","\\to");i(l,d,f,"≱","\\ngeq",!0);i(l,d,f,"≰","\\nleq",!0);i(l,h,R0," ","\\ ");i(l,h,R0," ","\\space");i(l,h,R0," ","\\nobreakspace");i(k,h,R0," ","\\ ");i(k,h,R0," "," ");i(k,h,R0," ","\\space");i(k,h,R0," ","\\nobreakspace");i(l,h,R0,null,"\\nobreak");i(l,h,R0,null,"\\allowbreak");i(l,h,Ie,",",",");i(l,h,Ie,";",";");i(l,d,N,"⊼","\\barwedge",!0);i(l,d,N,"⊻","\\veebar",!0);i(l,h,N,"⊙","\\odot",!0);i(l,h,N,"⊕","\\oplus",!0);i(l,h,N,"⊗","\\otimes",!0);i(l,h,v,"∂","\\partial",!0);i(l,h,N,"⊘","\\oslash",!0);i(l,d,N,"⊚","\\circledcirc",!0);i(l,d,N,"⊡","\\boxdot",!0);i(l,h,N,"△","\\bigtriangleup");i(l,h,N,"▽","\\bigtriangledown");i(l,h,N,"†","\\dagger");i(l,h,N,"⋄","\\diamond");i(l,h,N,"⋆","\\star");i(l,h,N,"◃","\\triangleleft");i(l,h,N,"▹","\\triangleright");i(l,h,m0,"{","\\{");i(k,h,v,"{","\\{");i(k,h,v,"{","\\textbraceleft");i(l,h,i0,"}","\\}");i(k,h,v,"}","\\}");i(k,h,v,"}","\\textbraceright");i(l,h,m0,"{","\\lbrace");i(l,h,i0,"}","\\rbrace");i(l,h,m0,"[","\\lbrack",!0);i(k,h,v,"[","\\lbrack",!0);i(l,h,i0,"]","\\rbrack",!0);i(k,h,v,"]","\\rbrack",!0);i(l,h,m0,"(","\\lparen",!0);i(l,h,i0,")","\\rparen",!0);i(k,h,v,"<","\\textless",!0);i(k,h,v,">","\\textgreater",!0);i(l,h,m0,"⌊","\\lfloor",!0);i(l,h,i0,"⌋","\\rfloor",!0);i(l,h,m0,"⌈","\\lceil",!0);i(l,h,i0,"⌉","\\rceil",!0);i(l,h,v,"\\","\\backslash");i(l,h,v,"∣","|");i(l,h,v,"∣","\\vert");i(k,h,v,"|","\\textbar",!0);i(l,h,v,"∥","\\|");i(l,h,v,"∥","\\Vert");i(k,h,v,"∥","\\textbardbl");i(k,h,v,"~","\\textasciitilde");i(k,h,v,"\\","\\textbackslash");i(k,h,v,"^","\\textasciicircum");i(l,h,f,"↑","\\uparrow",!0);i(l,h,f,"⇑","\\Uparrow",!0);i(l,h,f,"↓","\\downarrow",!0);i(l,h,f,"⇓","\\Downarrow",!0);i(l,h,f,"↕","\\updownarrow",!0);i(l,h,f,"⇕","\\Updownarrow",!0);i(l,h,_,"∐","\\coprod");i(l,h,_,"⋁","\\bigvee");i(l,h,_,"⋀","\\bigwedge");i(l,h,_,"⨄","\\biguplus");i(l,h,_,"⋂","\\bigcap");i(l,h,_,"⋃","\\bigcup");i(l,h,_,"∫","\\int");i(l,h,_,"∫","\\intop");i(l,h,_,"∬","\\iint");i(l,h,_,"∭","\\iiint");i(l,h,_,"∏","\\prod");i(l,h,_,"∑","\\sum");i(l,h,_,"⨂","\\bigotimes");i(l,h,_,"⨁","\\bigoplus");i(l,h,_,"⨀","\\bigodot");i(l,h,_,"∮","\\oint");i(l,h,_,"∯","\\oiint");i(l,h,_,"∰","\\oiiint");i(l,h,_,"⨆","\\bigsqcup");i(l,h,_,"∫","\\smallint");i(k,h,te,"…","\\textellipsis");i(l,h,te,"…","\\mathellipsis");i(k,h,te,"…","\\ldots",!0);i(l,h,te,"…","\\ldots",!0);i(l,h,te,"⋯","\\@cdots",!0);i(l,h,te,"⋱","\\ddots",!0);i(l,h,v,"⋮","\\varvdots");i(l,h,W,"ˊ","\\acute");i(l,h,W,"ˋ","\\grave");i(l,h,W,"¨","\\ddot");i(l,h,W,"~","\\tilde");i(l,h,W,"ˉ","\\bar");i(l,h,W,"˘","\\breve");i(l,h,W,"ˇ","\\check");i(l,h,W,"^","\\hat");i(l,h,W,"⃗","\\vec");i(l,h,W,"˙","\\dot");i(l,h,W,"˚","\\mathring");i(l,h,R,"","\\@imath");i(l,h,R,"","\\@jmath");i(l,h,v,"ı","ı");i(l,h,v,"ȷ","ȷ");i(k,h,v,"ı","\\i",!0);i(k,h,v,"ȷ","\\j",!0);i(k,h,v,"ß","\\ss",!0);i(k,h,v,"æ","\\ae",!0);i(k,h,v,"œ","\\oe",!0);i(k,h,v,"ø","\\o",!0);i(k,h,v,"Æ","\\AE",!0);i(k,h,v,"Œ","\\OE",!0);i(k,h,v,"Ø","\\O",!0);i(k,h,W,"ˊ","\\'");i(k,h,W,"ˋ","\\`");i(k,h,W,"ˆ","\\^");i(k,h,W,"˜","\\~");i(k,h,W,"ˉ","\\=");i(k,h,W,"˘","\\u");i(k,h,W,"˙","\\.");i(k,h,W,"¸","\\c");i(k,h,W,"˚","\\r");i(k,h,W,"ˇ","\\v");i(k,h,W,"¨",'\\"');i(k,h,W,"˝","\\H");i(k,h,W,"◯","\\textcircled");var xr={"--":!0,"---":!0,"``":!0,"''":!0};i(k,h,v,"–","--",!0);i(k,h,v,"–","\\textendash");i(k,h,v,"—","---",!0);i(k,h,v,"—","\\textemdash");i(k,h,v,"‘","`",!0);i(k,h,v,"‘","\\textquoteleft");i(k,h,v,"’","'",!0);i(k,h,v,"’","\\textquoteright");i(k,h,v,"“","``",!0);i(k,h,v,"“","\\textquotedblleft");i(k,h,v,"”","''",!0);i(k,h,v,"”","\\textquotedblright");i(l,h,v,"°","\\degree",!0);i(k,h,v,"°","\\degree");i(k,h,v,"°","\\textdegree",!0);i(l,h,v,"£","\\pounds");i(l,h,v,"£","\\mathsterling",!0);i(k,h,v,"£","\\pounds");i(k,h,v,"£","\\textsterling",!0);i(l,d,v,"✠","\\maltese");i(k,d,v,"✠","\\maltese");var Pt='0123456789/@."';for(var Ye=0;Ye<Pt.length;Ye++){var Gt=Pt.charAt(Ye);i(l,h,v,Gt,Gt)}var Vt='0123456789!@*()-=+";:?/.,';for(var Xe=0;Xe<Vt.length;Xe++){var Ut=Vt.charAt(Xe);i(k,h,v,Ut,Ut)}var Ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var $e=0;$e<Ne.length;$e++){var be=Ne.charAt($e);i(l,h,R,be,be),i(k,h,v,be,be)}i(l,d,v,"C","ℂ");i(k,d,v,"C","ℂ");i(l,d,v,"H","ℍ");i(k,d,v,"H","ℍ");i(l,d,v,"N","ℕ");i(k,d,v,"N","ℕ");i(l,d,v,"P","ℙ");i(k,d,v,"P","ℙ");i(l,d,v,"Q","ℚ");i(k,d,v,"Q","ℚ");i(l,d,v,"R","ℝ");i(k,d,v,"R","ℝ");i(l,d,v,"Z","ℤ");i(k,d,v,"Z","ℤ");i(l,h,R,"h","ℎ");i(k,h,R,"h","ℎ");var D="";for(var a0=0;a0<Ne.length;a0++){var J=Ne.charAt(a0);D=String.fromCharCode(55349,56320+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56372+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56424+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56580+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56684+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56736+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56788+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56840+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56944+a0),i(l,h,R,J,D),i(k,h,v,J,D),a0<26&&(D=String.fromCharCode(55349,56632+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56476+a0),i(l,h,R,J,D),i(k,h,v,J,D))}D="𝕜";i(l,h,R,"k",D);i(k,h,v,"k",D);for(var Y0=0;Y0<10;Y0++){var H0=Y0.toString();D=String.fromCharCode(55349,57294+Y0),i(l,h,R,H0,D),i(k,h,v,H0,D),D=String.fromCharCode(55349,57314+Y0),i(l,h,R,H0,D),i(k,h,v,H0,D),D=String.fromCharCode(55349,57324+Y0),i(l,h,R,H0,D),i(k,h,v,H0,D),D=String.fromCharCode(55349,57334+Y0),i(l,h,R,H0,D),i(k,h,v,H0,D)}var st="ÐÞþ";for(var We=0;We<st.length;We++){var ye=st.charAt(We);i(l,h,R,ye,ye),i(k,h,v,ye,ye)}var we=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Yt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Ka=function(e,t){var a=e.charCodeAt(0),n=e.charCodeAt(1),s=(a-55296)*1024+(n-56320)+65536,o=t==="math"?0:1;if(119808<=s&&s<120484){var m=Math.floor((s-119808)/26);return[we[m][2],we[m][o]]}else if(120782<=s&&s<=120831){var c=Math.floor((s-120782)/10);return[Yt[c][2],Yt[c][o]]}else{if(s===120485||s===120486)return[we[0][2],we[0][o]];if(120486<s&&s<120782)return["",""];throw new M("Unsupported character: "+e)}},De=function(e,t,a){return $[a][e]&&$[a][e].replace&&(e=$[a][e].replace),{value:e,metrics:ft(e,t,a)}},g0=function(e,t,a,n,s){var o=De(e,t,a),m=o.metrics;e=o.value;var c;if(m){var p=m.italic;(a==="text"||n&&n.font==="mathit")&&(p=0),c=new f0(e,m.height,m.depth,p,m.skew,m.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+t+"' and mode '"+a+"'")),c=new f0(e,0,0,0,0,0,s);if(n){c.maxFontSize=n.sizeMultiplier,n.style.isTight()&&c.classes.push("mtight");var g=n.getColor();g&&(c.style.color=g)}return c},Ja=function(e,t,a,n){return n===void 0&&(n=[]),a.font==="boldsymbol"&&De(e,"Main-Bold",t).metrics?g0(e,"Main-Bold",t,a,n.concat(["mathbf"])):e==="\\"||$[t][e].font==="main"?g0(e,"Main-Regular",t,a,n):g0(e,"AMS-Regular",t,a,n.concat(["amsrm"]))},Qa=function(e,t,a,n,s){return s!=="textord"&&De(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},_a=function(e,t,a){var n=e.mode,s=e.text,o=["mord"],m=n==="math"||n==="text"&&t.font,c=m?t.font:t.fontFamily,p="",g="";if(s.charCodeAt(0)===55349&&([p,g]=Ka(s,n)),p.length>0)return g0(s,p,n,t,o.concat(g));if(c){var y,x;if(c==="boldsymbol"){var w=Qa(s,n,t,o,a);y=w.fontName,x=[w.fontClass]}else m?(y=Mr[c].fontName,x=[c]):(y=xe(c,t.fontWeight,t.fontShape),x=[c,t.fontWeight,t.fontShape]);if(De(s,y,n).metrics)return g0(s,y,n,t,o.concat(x));if(xr.hasOwnProperty(s)&&y.slice(0,10)==="Typewriter"){for(var z=[],A=0;A<s.length;A++)z.push(g0(s[A],y,n,t,o.concat(x)));return Sr(z)}}if(a==="mathord")return g0(s,"Math-Italic",n,t,o.concat(["mathnormal"]));if(a==="textord"){var C=$[n][s]&&$[n][s].font;if(C==="ams"){var q=xe("amsrm",t.fontWeight,t.fontShape);return g0(s,q,n,t,o.concat("amsrm",t.fontWeight,t.fontShape))}else if(C==="main"||!C){var O=xe("textrm",t.fontWeight,t.fontShape);return g0(s,O,n,t,o.concat(t.fontWeight,t.fontShape))}else{var H=xe(C,t.fontWeight,t.fontShape);return g0(s,H,n,t,o.concat(H,t.fontWeight,t.fontShape))}}else throw new Error("unexpected type: "+a+" in makeOrd")},e1=(r,e)=>{if(F0(r.classes)!==F0(e.classes)||r.skew!==e.skew||r.maxFontSize!==e.maxFontSize)return!1;if(r.classes.length===1){var t=r.classes[0];if(t==="mbin"||t==="mord")return!1}for(var a in r.style)if(r.style.hasOwnProperty(a)&&r.style[a]!==e.style[a])return!1;for(var n in e.style)if(e.style.hasOwnProperty(n)&&r.style[n]!==e.style[n])return!1;return!0},t1=r=>{for(var e=0;e<r.length-1;e++){var t=r[e],a=r[e+1];t instanceof f0&&a instanceof f0&&e1(t,a)&&(t.text+=a.text,t.height=Math.max(t.height,a.height),t.depth=Math.max(t.depth,a.depth),t.italic=a.italic,r.splice(e+1,1),e--)}return r},vt=function(e){for(var t=0,a=0,n=0,s=0;s<e.children.length;s++){var o=e.children[s];o.height>t&&(t=o.height),o.depth>a&&(a=o.depth),o.maxFontSize>n&&(n=o.maxFontSize)}e.height=t,e.depth=a,e.maxFontSize=n},l0=function(e,t,a,n){var s=new ue(e,t,a,n);return vt(s),s},kr=(r,e,t,a)=>new ue(r,e,t,a),r1=function(e,t,a){var n=l0([e],[],t);return n.height=Math.max(a||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=T(n.height),n.maxFontSize=1,n},a1=function(e,t,a,n){var s=new pt(e,t,a,n);return vt(s),s},Sr=function(e){var t=new me(e);return vt(t),t},n1=function(e,t){return e instanceof me?l0([],[e],t):e},i1=function(e){if(e.positionType==="individualShift"){for(var t=e.children,a=[t[0]],n=-t[0].shift-t[0].elem.depth,s=n,o=1;o<t.length;o++){var m=-t[o].shift-s-t[o].elem.depth,c=m-(t[o-1].elem.height+t[o-1].elem.depth);s=s+m,a.push({type:"kern",size:c}),a.push(t[o])}return{children:a,depth:n}}var p;if(e.positionType==="top"){for(var g=e.positionData,y=0;y<e.children.length;y++){var x=e.children[y];g-=x.type==="kern"?x.size:x.elem.height+x.elem.depth}p=g}else if(e.positionType==="bottom")p=-e.positionData;else{var w=e.children[0];if(w.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")p=-w.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")p=-w.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:p}},s1=function(e,t){for(var{children:a,depth:n}=i1(e),s=0,o=0;o<a.length;o++){var m=a[o];if(m.type==="elem"){var c=m.elem;s=Math.max(s,c.maxFontSize,c.height)}}s+=2;var p=l0(["pstrut"],[]);p.style.height=T(s);for(var g=[],y=n,x=n,w=n,z=0;z<a.length;z++){var A=a[z];if(A.type==="kern")w+=A.size;else{var C=A.elem,q=A.wrapperClasses||[],O=A.wrapperStyle||{},H=l0(q,[p,C],void 0,O);H.style.top=T(-s-w-C.depth),A.marginLeft&&(H.style.marginLeft=A.marginLeft),A.marginRight&&(H.style.marginRight=A.marginRight),g.push(H),w+=C.height+C.depth}y=Math.min(y,w),x=Math.max(x,w)}var V=l0(["vlist"],g);V.style.height=T(x);var F;if(y<0){var U=l0([],[]),G=l0(["vlist"],[U]);G.style.height=T(-y);var j=l0(["vlist-s"],[new f0("")]);F=[l0(["vlist-r"],[V,j]),l0(["vlist-r"],[G])]}else F=[l0(["vlist-r"],[V])];var Y=l0(["vlist-t"],F);return F.length===2&&Y.classes.push("vlist-t2"),Y.height=x,Y.depth=-y,Y},l1=(r,e)=>{var t=l0(["mspace"],[],e),a=K(r,e);return t.style.marginRight=T(a),t},xe=function(e,t,a){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}var s;return t==="textbf"&&a==="textit"?s="BoldItalic":t==="textbf"?s="Bold":t==="textit"?s="Italic":s="Regular",n+"-"+s},Mr={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},zr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},o1=function(e,t){var[a,n,s]=zr[e],o=new P0(a),m=new N0([o],{width:T(n),height:T(s),style:"width:"+T(n),viewBox:"0 0 "+1e3*n+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),c=kr(["overlay"],[m],t);return c.height=s,c.style.height=T(s),c.style.width=T(n),c},b={fontMap:Mr,makeSymbol:g0,mathsym:Ja,makeSpan:l0,makeSvgSpan:kr,makeLineSpan:r1,makeAnchor:a1,makeFragment:Sr,wrapFragment:n1,makeVList:s1,makeOrd:_a,makeGlue:l1,staticSvg:o1,svgData:zr,tryCombineChars:t1},Z={number:3,unit:"mu"},X0={number:4,unit:"mu"},z0={number:5,unit:"mu"},h1={mord:{mop:Z,mbin:X0,mrel:z0,minner:Z},mop:{mord:Z,mop:Z,mrel:z0,minner:Z},mbin:{mord:X0,mop:X0,mopen:X0,minner:X0},mrel:{mord:z0,mop:z0,mopen:z0,minner:z0},mopen:{},mclose:{mop:Z,mbin:X0,mrel:z0,minner:Z},mpunct:{mord:Z,mop:Z,mrel:z0,mopen:Z,mclose:Z,mpunct:Z,minner:Z},minner:{mord:Z,mop:Z,mbin:X0,mrel:z0,mopen:Z,mpunct:Z,minner:Z}},m1={mord:{mop:Z},mop:{mord:Z,mop:Z},mbin:{},mrel:{},mopen:{},mclose:{mop:Z},mpunct:{},minner:{mop:Z}},Tr={},Ce={},qe={};function B(r){for(var{type:e,names:t,props:a,handler:n,htmlBuilder:s,mathmlBuilder:o}=r,m={type:e,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===void 0?!0:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:n},c=0;c<t.length;++c)Tr[t[c]]=m;e&&(s&&(Ce[e]=s),o&&(qe[e]=o))}function $0(r){var{type:e,htmlBuilder:t,mathmlBuilder:a}=r;B({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:t,mathmlBuilder:a})}var Re=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},Q=function(e){return e.type==="ordgroup"?e.body:[e]},C0=b.makeSpan,u1=["leftmost","mbin","mopen","mrel","mop","mpunct"],c1=["rightmost","mrel","mclose","mpunct"],d1={display:I.DISPLAY,text:I.TEXT,script:I.SCRIPT,scriptscript:I.SCRIPTSCRIPT},f1={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},t0=function(e,t,a,n){n===void 0&&(n=[null,null]);for(var s=[],o=0;o<e.length;o++){var m=P(e[o],t);if(m instanceof me){var c=m.children;s.push(...c)}else s.push(m)}if(b.tryCombineChars(s),!a)return s;var p=t;if(e.length===1){var g=e[0];g.type==="sizing"?p=t.havingSize(g.size):g.type==="styling"&&(p=t.havingStyle(d1[g.style]))}var y=C0([n[0]||"leftmost"],[],t),x=C0([n[1]||"rightmost"],[],t),w=a==="root";return Xt(s,(z,A)=>{var C=A.classes[0],q=z.classes[0];C==="mbin"&&E.contains(c1,q)?A.classes[0]="mord":q==="mbin"&&E.contains(u1,C)&&(z.classes[0]="mord")},{node:y},x,w),Xt(s,(z,A)=>{var C=lt(A),q=lt(z),O=C&&q?z.hasClass("mtight")?m1[C][q]:h1[C][q]:null;if(O)return b.makeGlue(O,p)},{node:y},x,w),s},Xt=function r(e,t,a,n,s){n&&e.push(n);for(var o=0;o<e.length;o++){var m=e[o],c=Ar(m);if(c){r(c.children,t,a,null,s);continue}var p=!m.hasClass("mspace");if(p){var g=t(m,a.node);g&&(a.insertAfter?a.insertAfter(g):(e.unshift(g),o++))}p?a.node=m:s&&m.hasClass("newline")&&(a.node=C0(["leftmost"])),a.insertAfter=(y=>x=>{e.splice(y+1,0,x),o++})(o)}n&&e.pop()},Ar=function(e){return e instanceof me||e instanceof pt||e instanceof ue&&e.hasClass("enclosing")?e:null},p1=function r(e,t){var a=Ar(e);if(a){var n=a.children;if(n.length){if(t==="right")return r(n[n.length-1],"right");if(t==="left")return r(n[0],"left")}}return e},lt=function(e,t){return e?(t&&(e=p1(e,t)),f1[e.classes[0]]||null):null},oe=function(e,t){var a=["nulldelimiter"].concat(e.baseSizingClasses());return C0(t.concat(a))},P=function(e,t,a){if(!e)return C0();if(Ce[e.type]){var n=Ce[e.type](e,t);if(a&&t.size!==a.size){n=C0(t.sizingClasses(a),[n],t);var s=t.sizeMultiplier/a.sizeMultiplier;n.height*=s,n.depth*=s}return n}else throw new M("Got group of unknown type: '"+e.type+"'")};function ke(r,e){var t=C0(["base"],r,e),a=C0(["strut"]);return a.style.height=T(t.height+t.depth),t.depth&&(a.style.verticalAlign=T(-t.depth)),t.children.unshift(a),t}function ot(r,e){var t=null;r.length===1&&r[0].type==="tag"&&(t=r[0].tag,r=r[0].body);var a=t0(r,e,"root"),n;a.length===2&&a[1].hasClass("tag")&&(n=a.pop());for(var s=[],o=[],m=0;m<a.length;m++)if(o.push(a[m]),a[m].hasClass("mbin")||a[m].hasClass("mrel")||a[m].hasClass("allowbreak")){for(var c=!1;m<a.length-1&&a[m+1].hasClass("mspace")&&!a[m+1].hasClass("newline");)m++,o.push(a[m]),a[m].hasClass("nobreak")&&(c=!0);c||(s.push(ke(o,e)),o=[])}else a[m].hasClass("newline")&&(o.pop(),o.length>0&&(s.push(ke(o,e)),o=[]),s.push(a[m]));o.length>0&&s.push(ke(o,e));var p;t?(p=ke(t0(t,e,!0)),p.classes=["tag"],s.push(p)):n&&s.push(n);var g=C0(["katex-html"],s);if(g.setAttribute("aria-hidden","true"),p){var y=p.children[0];y.style.height=T(g.height+g.depth),g.depth&&(y.style.verticalAlign=T(-g.depth))}return g}function Br(r){return new me(r)}class c0{constructor(e,t,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=a||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=F0(this.classes));for(var a=0;a<this.children.length;a++)e.appendChild(this.children[a].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=E.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+E.escape(F0(this.classes))+'"'),e+=">";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}}class ie{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return E.escape(this.toText())}toText(){return this.text}}class v1{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character=" ":e>=-.05556&&e<=-.05555?this.character=" ":e>=-.1667&&e<=-.1666?this.character=" ":e>=-.2223&&e<=-.2222?this.character=" ":e>=-.2778&&e<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",T(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+T(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var S={MathNode:c0,TextNode:ie,SpaceNode:v1,newDocumentFragment:Br},p0=function(e,t,a){return $[t][e]&&$[t][e].replace&&e.charCodeAt(0)!==55349&&!(xr.hasOwnProperty(e)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(e=$[t][e].replace),new S.TextNode(e)},gt=function(e){return e.length===1?e[0]:new S.MathNode("mrow",e)},bt=function(e,t){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold";var a=t.font;if(!a||a==="mathnormal")return null;var n=e.mode;if(a==="mathit")return"italic";if(a==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(a==="mathbf")return"bold";if(a==="mathbb")return"double-struck";if(a==="mathfrak")return"fraktur";if(a==="mathscr"||a==="mathcal")return"script";if(a==="mathsf")return"sans-serif";if(a==="mathtt")return"monospace";var s=e.text;if(E.contains(["\\imath","\\jmath"],s))return null;$[n][s]&&$[n][s].replace&&(s=$[n][s].replace);var o=b.fontMap[a].fontName;return ft(s,o,n)?b.fontMap[a].variant:null},o0=function(e,t,a){if(e.length===1){var n=X(e[0],t);return a&&n instanceof c0&&n.type==="mo"&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var s=[],o,m=0;m<e.length;m++){var c=X(e[m],t);if(c instanceof c0&&o instanceof c0){if(c.type==="mtext"&&o.type==="mtext"&&c.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...c.children);continue}else if(c.type==="mn"&&o.type==="mn"){o.children.push(...c.children);continue}else if(c.type==="mi"&&c.children.length===1&&o.type==="mn"){var p=c.children[0];if(p instanceof ie&&p.text==="."){o.children.push(...c.children);continue}}else if(o.type==="mi"&&o.children.length===1){var g=o.children[0];if(g instanceof ie&&g.text==="̸"&&(c.type==="mo"||c.type==="mi"||c.type==="mn")){var y=c.children[0];y instanceof ie&&y.text.length>0&&(y.text=y.text.slice(0,1)+"̸"+y.text.slice(1),s.pop())}}}s.push(c),o=c}return s},G0=function(e,t,a){return gt(o0(e,t,a))},X=function(e,t){if(!e)return new S.MathNode("mrow");if(qe[e.type]){var a=qe[e.type](e,t);return a}else throw new M("Got group of unknown type: '"+e.type+"'")};function $t(r,e,t,a,n){var s=o0(r,t),o;s.length===1&&s[0]instanceof c0&&E.contains(["mrow","mtable"],s[0].type)?o=s[0]:o=new S.MathNode("mrow",s);var m=new S.MathNode("annotation",[new S.TextNode(e)]);m.setAttribute("encoding","application/x-tex");var c=new S.MathNode("semantics",[o,m]),p=new S.MathNode("math",[c]);p.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&p.setAttribute("display","block");var g=n?"katex":"katex-mathml";return b.makeSpan([g],[p])}var Nr=function(e){return new T0({style:e.displayMode?I.DISPLAY:I.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Cr=function(e,t){if(t.displayMode){var a=["katex-display"];t.leqno&&a.push("leqno"),t.fleqn&&a.push("fleqn"),e=b.makeSpan(a,[e])}return e},g1=function(e,t,a){var n=Nr(a),s;if(a.output==="mathml")return $t(e,t,n,a.displayMode,!0);if(a.output==="html"){var o=ot(e,n);s=b.makeSpan(["katex"],[o])}else{var m=$t(e,t,n,a.displayMode,!1),c=ot(e,n);s=b.makeSpan(["katex"],[m,c])}return Cr(s,a)},b1=function(e,t,a){var n=Nr(a),s=ot(e,n),o=b.makeSpan(["katex"],[s]);return Cr(o,a)},y1={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},w1=function(e){var t=new S.MathNode("mo",[new S.TextNode(y1[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},x1={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},k1=function(e){return e.type==="ordgroup"?e.body.length:1},S1=function(e,t){function a(){var m=4e5,c=e.label.slice(1);if(E.contains(["widehat","widecheck","widetilde","utilde"],c)){var p=e,g=k1(p.base),y,x,w;if(g>5)c==="widehat"||c==="widecheck"?(y=420,m=2364,w=.42,x=c+"4"):(y=312,m=2340,w=.34,x="tilde4");else{var z=[1,1,2,2,3,3][g];c==="widehat"||c==="widecheck"?(m=[0,1062,2364,2364,2364][z],y=[0,239,300,360,420][z],w=[0,.24,.3,.3,.36,.42][z],x=c+z):(m=[0,600,1033,2339,2340][z],y=[0,260,286,306,312][z],w=[0,.26,.286,.3,.306,.34][z],x="tilde"+z)}var A=new P0(x),C=new N0([A],{width:"100%",height:T(w),viewBox:"0 0 "+m+" "+y,preserveAspectRatio:"none"});return{span:b.makeSvgSpan([],[C],t),minWidth:0,height:w}}else{var q=[],O=x1[c],[H,V,F]=O,U=F/1e3,G=H.length,j,Y;if(G===1){var M0=O[3];j=["hide-tail"],Y=[M0]}else if(G===2)j=["halfarrow-left","halfarrow-right"],Y=["xMinYMin","xMaxYMin"];else if(G===3)j=["brace-left","brace-center","brace-right"],Y=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+G+" children.");for(var r0=0;r0<G;r0++){var e0=new P0(H[r0]),U0=new N0([e0],{width:"400em",height:T(U),viewBox:"0 0 "+m+" "+F,preserveAspectRatio:Y[r0]+" slice"}),s0=b.makeSvgSpan([j[r0]],[U0],t);if(G===1)return{span:s0,minWidth:V,height:U};s0.style.height=T(U),q.push(s0)}return{span:b.makeSpan(["stretchy"],q,t),minWidth:V,height:U}}}var{span:n,minWidth:s,height:o}=a();return n.height=o,n.style.height=T(o),s>0&&(n.style.minWidth=T(s)),n},M1=function(e,t,a,n,s){var o,m=e.height+e.depth+a+n;if(/fbox|color|angl/.test(t)){if(o=b.makeSpan(["stretchy",t],[],s),t==="fbox"){var c=s.color&&s.getColor();c&&(o.style.borderColor=c)}}else{var p=[];/^[bx]cancel$/.test(t)&&p.push(new it({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&p.push(new it({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var g=new N0(p,{width:"100%",height:T(m)});o=b.makeSvgSpan([],[g],s)}return o.height=m,o.style.height=T(m),o},q0={encloseSpan:M1,mathMLnode:w1,svgSpan:S1};function L(r,e){if(!r||r.type!==e)throw new Error("Expected node of type "+e+", but got "+(r?"node of type "+r.type:String(r)));return r}function yt(r){var e=Ee(r);if(!e)throw new Error("Expected node of symbol group type, but got "+(r?"node of type "+r.type:String(r)));return e}function Ee(r){return r&&(r.type==="atom"||Za.hasOwnProperty(r.type))?r:null}var wt=(r,e)=>{var t,a,n;r&&r.type==="supsub"?(a=L(r.base,"accent"),t=a.base,r.base=t,n=Wa(P(r,e)),r.base=a):(a=L(r,"accent"),t=a.base);var s=P(t,e.havingCrampedStyle()),o=a.isShifty&&E.isCharacterBox(t),m=0;if(o){var c=E.getBaseElem(t),p=P(c,e.havingCrampedStyle());m=Ft(p).skew}var g=a.label==="\\c",y=g?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),x;if(a.isStretchy)x=q0.svgSpan(a,e),x=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:x,wrapperClasses:["svg-align"],wrapperStyle:m>0?{width:"calc(100% - "+T(2*m)+")",marginLeft:T(2*m)}:void 0}]},e);else{var w,z;a.label==="\\vec"?(w=b.staticSvg("vec",e),z=b.svgData.vec[1]):(w=b.makeOrd({mode:a.mode,text:a.label},e,"textord"),w=Ft(w),w.italic=0,z=w.width,g&&(y+=w.depth)),x=b.makeSpan(["accent-body"],[w]);var A=a.label==="\\textcircled";A&&(x.classes.push("accent-full"),y=s.height);var C=m;A||(C-=z/2),x.style.left=T(C),a.label==="\\textcircled"&&(x.style.top=".2em"),x=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-y},{type:"elem",elem:x}]},e)}var q=b.makeSpan(["mord","accent"],[x],e);return n?(n.children[0]=q,n.height=Math.max(q.height,n.height),n.classes[0]="mord",n):q},qr=(r,e)=>{var t=r.isStretchy?q0.mathMLnode(r.label):new S.MathNode("mo",[p0(r.label,r.mode)]),a=new S.MathNode("mover",[X(r.base,e),t]);return a.setAttribute("accent","true"),a},z1=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));B({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(r,e)=>{var t=Re(e[0]),a=!z1.test(r.funcName),n=!a||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:a,isShifty:n,base:t}},htmlBuilder:wt,mathmlBuilder:qr});B({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(r,e)=>{var t=e[0],a=r.parser.mode;return a==="math"&&(r.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+r.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:r.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:wt,mathmlBuilder:qr});B({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"accentUnder",mode:t.mode,label:a,base:n}},htmlBuilder:(r,e)=>{var t=P(r.base,e),a=q0.svgSpan(r,e),n=r.label==="\\utilde"?.12:0,s=b.makeVList({positionType:"top",positionData:t.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:t}]},e);return b.makeSpan(["mord","accentunder"],[s],e)},mathmlBuilder:(r,e)=>{var t=q0.mathMLnode(r.label),a=new S.MathNode("munder",[X(r.base,e),t]);return a.setAttribute("accentunder","true"),a}});var Se=r=>{var e=new S.MathNode("mpadded",r?[r]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};B({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:a,funcName:n}=r;return{type:"xArrow",mode:a.mode,label:n,body:e[0],below:t[0]}},htmlBuilder(r,e){var t=e.style,a=e.havingStyle(t.sup()),n=b.wrapFragment(P(r.body,a,e),e),s=r.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(s+"-arrow-pad");var o;r.below&&(a=e.havingStyle(t.sub()),o=b.wrapFragment(P(r.below,a,e),e),o.classes.push(s+"-arrow-pad"));var m=q0.svgSpan(r,e),c=-e.fontMetrics().axisHeight+.5*m.height,p=-e.fontMetrics().axisHeight-.5*m.height-.111;(n.depth>.25||r.label==="\\xleftequilibrium")&&(p-=n.depth);var g;if(o){var y=-e.fontMetrics().axisHeight+o.height+.5*m.height+.111;g=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:p},{type:"elem",elem:m,shift:c},{type:"elem",elem:o,shift:y}]},e)}else g=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:p},{type:"elem",elem:m,shift:c}]},e);return g.children[0].children[0].children[1].classes.push("svg-align"),b.makeSpan(["mrel","x-arrow"],[g],e)},mathmlBuilder(r,e){var t=q0.mathMLnode(r.label);t.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(r.body){var n=Se(X(r.body,e));if(r.below){var s=Se(X(r.below,e));a=new S.MathNode("munderover",[t,s,n])}else a=new S.MathNode("mover",[t,n])}else if(r.below){var o=Se(X(r.below,e));a=new S.MathNode("munder",[t,o])}else a=Se(),a=new S.MathNode("mover",[t,a]);return a}});var T1=b.makeSpan;function Rr(r,e){var t=t0(r.body,e,!0);return T1([r.mclass],t,e)}function Ir(r,e){var t,a=o0(r.body,e);return r.mclass==="minner"?t=new S.MathNode("mpadded",a):r.mclass==="mord"?r.isCharacterBox?(t=a[0],t.type="mi"):t=new S.MathNode("mi",a):(r.isCharacterBox?(t=a[0],t.type="mo"):t=new S.MathNode("mo",a),r.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):r.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):r.mclass==="mopen"||r.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):r.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}B({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"mclass",mode:t.mode,mclass:"m"+a.slice(5),body:Q(n),isCharacterBox:E.isCharacterBox(n)}},htmlBuilder:Rr,mathmlBuilder:Ir});var Oe=r=>{var e=r.type==="ordgroup"&&r.body.length?r.body[0]:r;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};B({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(r,e){var{parser:t}=r;return{type:"mclass",mode:t.mode,mclass:Oe(e[0]),body:Q(e[1]),isCharacterBox:E.isCharacterBox(e[1])}}});B({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(r,e){var{parser:t,funcName:a}=r,n=e[1],s=e[0],o;a!=="\\stackrel"?o=Oe(n):o="mrel";var m={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:Q(n)},c={type:"supsub",mode:s.mode,base:m,sup:a==="\\underset"?null:s,sub:a==="\\underset"?s:null};return{type:"mclass",mode:t.mode,mclass:o,body:[c],isCharacterBox:E.isCharacterBox(c)}},htmlBuilder:Rr,mathmlBuilder:Ir});B({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"pmb",mode:t.mode,mclass:Oe(e[0]),body:Q(e[0])}},htmlBuilder(r,e){var t=t0(r.body,e,!0),a=b.makeSpan([r.mclass],t,e);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(r,e){var t=o0(r.body,e),a=new S.MathNode("mstyle",t);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var A1={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Wt=()=>({type:"styling",body:[],mode:"math",style:"display"}),jt=r=>r.type==="textord"&&r.text==="@",B1=(r,e)=>(r.type==="mathord"||r.type==="atom")&&r.text===e;function N1(r,e,t){var a=A1[r];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(a,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var n=t.callFunction("\\\\cdleft",[e[0]],[]),s={type:"atom",text:a,mode:"math",family:"rel"},o=t.callFunction("\\Big",[s],[]),m=t.callFunction("\\\\cdright",[e[1]],[]),c={type:"ordgroup",mode:"math",body:[n,o,m]};return t.callFunction("\\\\cdparent",[c],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var p={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[p],[])}default:return{type:"textord",text:" ",mode:"math"}}}function C1(r){var e=[];for(r.gullet.beginGroup(),r.gullet.macros.set("\\cr","\\\\\\relax"),r.gullet.beginGroup();;){e.push(r.parseExpression(!1,"\\\\")),r.gullet.endGroup(),r.gullet.beginGroup();var t=r.fetch().text;if(t==="&"||t==="\\\\")r.consume();else if(t==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new M("Expected \\\\ or \\cr or \\end",r.nextToken)}for(var a=[],n=[a],s=0;s<e.length;s++){for(var o=e[s],m=Wt(),c=0;c<o.length;c++)if(!jt(o[c]))m.body.push(o[c]);else{a.push(m),c+=1;var p=yt(o[c]).text,g=new Array(2);if(g[0]={type:"ordgroup",mode:"math",body:[]},g[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(p)>-1))if("<>AV".indexOf(p)>-1)for(var y=0;y<2;y++){for(var x=!0,w=c+1;w<o.length;w++){if(B1(o[w],p)){x=!1,c=w;break}if(jt(o[w]))throw new M("Missing a "+p+" character to complete a CD arrow.",o[w]);g[y].body.push(o[w])}if(x)throw new M("Missing a "+p+" character to complete a CD arrow.",o[c])}else throw new M('Expected one of "<>AV=|." after @',o[c]);var z=N1(p,g,r),A={type:"styling",body:[z],mode:"math",style:"display"};a.push(A),m=Wt()}s%2===0?a.push(m):a.shift(),a=[],n.push(a)}r.gullet.endGroup(),r.gullet.endGroup();var C=new Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}B({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r;return{type:"cdlabel",mode:t.mode,side:a.slice(4),label:e[0]}},htmlBuilder(r,e){var t=e.havingStyle(e.style.sup()),a=b.wrapFragment(P(r.label,t,e),e);return a.classes.push("cd-label-"+r.side),a.style.bottom=T(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(r,e){var t=new S.MathNode("mrow",[X(r.label,e)]);return t=new S.MathNode("mpadded",[t]),t.setAttribute("width","0"),r.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new S.MathNode("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});B({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(r,e){var{parser:t}=r;return{type:"cdlabelparent",mode:t.mode,fragment:e[0]}},htmlBuilder(r,e){var t=b.wrapFragment(P(r.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(r,e){return new S.MathNode("mrow",[X(r.fragment,e)])}});B({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(r,e){for(var{parser:t}=r,a=L(e[0],"ordgroup"),n=a.body,s="",o=0;o<n.length;o++){var m=L(n[o],"textord");s+=m.text}var c=parseInt(s),p;if(isNaN(c))throw new M("\\@char has non-numeric argument "+s);if(c<0||c>=1114111)throw new M("\\@char with invalid code point "+s);return c<=65535?p=String.fromCharCode(c):(c-=65536,p=String.fromCharCode((c>>10)+55296,(c&1023)+56320)),{type:"textord",mode:t.mode,text:p}}});var Dr=(r,e)=>{var t=t0(r.body,e.withColor(r.color),!1);return b.makeFragment(t)},Er=(r,e)=>{var t=o0(r.body,e.withColor(r.color)),a=new S.MathNode("mstyle",t);return a.setAttribute("mathcolor",r.color),a};B({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(r,e){var{parser:t}=r,a=L(e[0],"color-token").color,n=e[1];return{type:"color",mode:t.mode,color:a,body:Q(n)}},htmlBuilder:Dr,mathmlBuilder:Er});B({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(r,e){var{parser:t,breakOnTokenText:a}=r,n=L(e[0],"color-token").color;t.gullet.macros.set("\\current@color",n);var s=t.parseExpression(!0,a);return{type:"color",mode:t.mode,color:n,body:s}},htmlBuilder:Dr,mathmlBuilder:Er});B({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(r,e,t){var{parser:a}=r,n=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,s=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:s,size:n&&L(n,"size").value}},htmlBuilder(r,e){var t=b.makeSpan(["mspace"],[],e);return r.newLine&&(t.classes.push("newline"),r.size&&(t.style.marginTop=T(K(r.size,e)))),t},mathmlBuilder(r,e){var t=new S.MathNode("mspace");return r.newLine&&(t.setAttribute("linebreak","newline"),r.size&&t.setAttribute("height",T(K(r.size,e)))),t}});var ht={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Or=r=>{var e=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new M("Expected a control sequence",r);return e},q1=r=>{var e=r.gullet.popToken();return e.text==="="&&(e=r.gullet.popToken(),e.text===" "&&(e=r.gullet.popToken())),e},Hr=(r,e,t,a)=>{var n=r.gullet.macros.get(t.text);n==null&&(t.noexpand=!0,n={tokens:[t],numArgs:0,unexpandable:!r.gullet.isExpandable(t.text)}),r.gullet.macros.set(e,n,a)};B({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(r){var{parser:e,funcName:t}=r;e.consumeSpaces();var a=e.fetch();if(ht[a.text])return(t==="\\global"||t==="\\\\globallong")&&(a.text=ht[a.text]),L(e.parseFunction(),"internal");throw new M("Invalid token after macro prefix",a)}});B({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=e.gullet.popToken(),n=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new M("Expected a control sequence",a);for(var s=0,o,m=[[]];e.gullet.future().text!=="{";)if(a=e.gullet.popToken(),a.text==="#"){if(e.gullet.future().text==="{"){o=e.gullet.future(),m[s].push("{");break}if(a=e.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new M('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==s+1)throw new M('Argument number "'+a.text+'" out of order');s++,m.push([])}else{if(a.text==="EOF")throw new M("Expected a macro definition");m[s].push(a.text)}var{tokens:c}=e.gullet.consumeArg();return o&&c.unshift(o),(t==="\\edef"||t==="\\xdef")&&(c=e.gullet.expandTokens(c),c.reverse()),e.gullet.macros.set(n,{tokens:c,numArgs:s,delimiters:m},t===ht[t]),{type:"internal",mode:e.mode}}});B({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=Or(e.gullet.popToken());e.gullet.consumeSpaces();var n=q1(e);return Hr(e,a,n,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});B({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=Or(e.gullet.popToken()),n=e.gullet.popToken(),s=e.gullet.popToken();return Hr(e,a,s,t==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}});var ne=function(e,t,a){var n=$.math[e]&&$.math[e].replace,s=ft(n||e,t,a);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return s},xt=function(e,t,a,n){var s=a.havingBaseStyle(t),o=b.makeSpan(n.concat(s.sizingClasses(a)),[e],a),m=s.sizeMultiplier/a.sizeMultiplier;return o.height*=m,o.depth*=m,o.maxFontSize=s.sizeMultiplier,o},Lr=function(e,t,a){var n=t.havingBaseStyle(a),s=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=T(s),e.height-=s,e.depth+=s},R1=function(e,t,a,n,s,o){var m=b.makeSymbol(e,"Main-Regular",s,n),c=xt(m,t,n,o);return a&&Lr(c,n,t),c},I1=function(e,t,a,n){return b.makeSymbol(e,"Size"+t+"-Regular",a,n)},Fr=function(e,t,a,n,s,o){var m=I1(e,t,s,n),c=xt(b.makeSpan(["delimsizing","size"+t],[m],n),I.TEXT,n,o);return a&&Lr(c,n,I.TEXT),c},je=function(e,t,a){var n;t==="Size1-Regular"?n="delim-size1":n="delim-size4";var s=b.makeSpan(["delimsizinginner",n],[b.makeSpan([],[b.makeSymbol(e,t,a)])]);return{type:"elem",elem:s}},Ze=function(e,t,a){var n=y0["Size4-Regular"][e.charCodeAt(0)]?y0["Size4-Regular"][e.charCodeAt(0)][4]:y0["Size1-Regular"][e.charCodeAt(0)][4],s=new P0("inner",Fa(e,Math.round(1e3*t))),o=new N0([s],{width:T(n),height:T(t),style:"width:"+T(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),m=b.makeSvgSpan([],[o],a);return m.height=t,m.style.height=T(t),m.style.width=T(n),{type:"elem",elem:m}},mt=.008,Me={type:"kern",size:-1*mt},D1=["|","\\lvert","\\rvert","\\vert"],E1=["\\|","\\lVert","\\rVert","\\Vert"],Pr=function(e,t,a,n,s,o){var m,c,p,g,y="",x=0;m=p=g=e,c=null;var w="Size1-Regular";e==="\\uparrow"?p=g="⏐":e==="\\Uparrow"?p=g="‖":e==="\\downarrow"?m=p="⏐":e==="\\Downarrow"?m=p="‖":e==="\\updownarrow"?(m="\\uparrow",p="⏐",g="\\downarrow"):e==="\\Updownarrow"?(m="\\Uparrow",p="‖",g="\\Downarrow"):E.contains(D1,e)?(p="∣",y="vert",x=333):E.contains(E1,e)?(p="∥",y="doublevert",x=556):e==="["||e==="\\lbrack"?(m="⎡",p="⎢",g="⎣",w="Size4-Regular",y="lbrack",x=667):e==="]"||e==="\\rbrack"?(m="⎤",p="⎥",g="⎦",w="Size4-Regular",y="rbrack",x=667):e==="\\lfloor"||e==="⌊"?(p=m="⎢",g="⎣",w="Size4-Regular",y="lfloor",x=667):e==="\\lceil"||e==="⌈"?(m="⎡",p=g="⎢",w="Size4-Regular",y="lceil",x=667):e==="\\rfloor"||e==="⌋"?(p=m="⎥",g="⎦",w="Size4-Regular",y="rfloor",x=667):e==="\\rceil"||e==="⌉"?(m="⎤",p=g="⎥",w="Size4-Regular",y="rceil",x=667):e==="("||e==="\\lparen"?(m="⎛",p="⎜",g="⎝",w="Size4-Regular",y="lparen",x=875):e===")"||e==="\\rparen"?(m="⎞",p="⎟",g="⎠",w="Size4-Regular",y="rparen",x=875):e==="\\{"||e==="\\lbrace"?(m="⎧",c="⎨",g="⎩",p="⎪",w="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(m="⎫",c="⎬",g="⎭",p="⎪",w="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(m="⎧",g="⎩",p="⎪",w="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(m="⎫",g="⎭",p="⎪",w="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(m="⎧",g="⎭",p="⎪",w="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(m="⎫",g="⎩",p="⎪",w="Size4-Regular");var z=ne(m,w,s),A=z.height+z.depth,C=ne(p,w,s),q=C.height+C.depth,O=ne(g,w,s),H=O.height+O.depth,V=0,F=1;if(c!==null){var U=ne(c,w,s);V=U.height+U.depth,F=2}var G=A+H+V,j=Math.max(0,Math.ceil((t-G)/(F*q))),Y=G+j*F*q,M0=n.fontMetrics().axisHeight;a&&(M0*=n.sizeMultiplier);var r0=Y/2-M0,e0=[];if(y.length>0){var U0=Y-A-H,s0=Math.round(Y*1e3),v0=Pa(y,Math.round(U0*1e3)),I0=new P0(y,v0),W0=(x/1e3).toFixed(3)+"em",j0=(s0/1e3).toFixed(3)+"em",Fe=new N0([I0],{width:W0,height:j0,viewBox:"0 0 "+x+" "+s0}),D0=b.makeSvgSpan([],[Fe],n);D0.height=s0/1e3,D0.style.width=W0,D0.style.height=j0,e0.push({type:"elem",elem:D0})}else{if(e0.push(je(g,w,s)),e0.push(Me),c===null){var E0=Y-A-H+2*mt;e0.push(Ze(p,E0,n))}else{var u0=(Y-A-H-V)/2+2*mt;e0.push(Ze(p,u0,n)),e0.push(Me),e0.push(je(c,w,s)),e0.push(Me),e0.push(Ze(p,u0,n))}e0.push(Me),e0.push(je(m,w,s))}var ae=n.havingBaseStyle(I.TEXT),Pe=b.makeVList({positionType:"bottom",positionData:r0,children:e0},ae);return xt(b.makeSpan(["delimsizing","mult"],[Pe],ae),I.TEXT,n,o)},Ke=80,Je=.08,Qe=function(e,t,a,n,s){var o=La(e,n,a),m=new P0(e,o),c=new N0([m],{width:"400em",height:T(t),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return b.makeSvgSpan(["hide-tail"],[c],s)},O1=function(e,t){var a=t.havingBaseSizing(),n=Yr("\\surd",e*a.sizeMultiplier,Ur,a),s=a.sizeMultiplier,o=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),m,c=0,p=0,g=0,y;return n.type==="small"?(g=1e3+1e3*o+Ke,e<1?s=1:e<1.4&&(s=.7),c=(1+o+Je)/s,p=(1+o)/s,m=Qe("sqrtMain",c,g,o,t),m.style.minWidth="0.853em",y=.833/s):n.type==="large"?(g=(1e3+Ke)*se[n.size],p=(se[n.size]+o)/s,c=(se[n.size]+o+Je)/s,m=Qe("sqrtSize"+n.size,c,g,o,t),m.style.minWidth="1.02em",y=1/s):(c=e+o+Je,p=e+o,g=Math.floor(1e3*e+o)+Ke,m=Qe("sqrtTall",c,g,o,t),m.style.minWidth="0.742em",y=1.056),m.height=p,m.style.height=T(c),{span:m,advanceWidth:y,ruleWidth:(t.fontMetrics().sqrtRuleThickness+o)*s}},Gr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],H1=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Vr=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],se=[0,1.2,1.8,2.4,3],L1=function(e,t,a,n,s){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),E.contains(Gr,e)||E.contains(Vr,e))return Fr(e,t,!1,a,n,s);if(E.contains(H1,e))return Pr(e,se[t],!1,a,n,s);throw new M("Illegal delimiter: '"+e+"'")},F1=[{type:"small",style:I.SCRIPTSCRIPT},{type:"small",style:I.SCRIPT},{type:"small",style:I.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],P1=[{type:"small",style:I.SCRIPTSCRIPT},{type:"small",style:I.SCRIPT},{type:"small",style:I.TEXT},{type:"stack"}],Ur=[{type:"small",style:I.SCRIPTSCRIPT},{type:"small",style:I.SCRIPT},{type:"small",style:I.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],G1=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},Yr=function(e,t,a,n){for(var s=Math.min(2,3-n.style.size),o=s;o<a.length&&a[o].type!=="stack";o++){var m=ne(e,G1(a[o]),"math"),c=m.height+m.depth;if(a[o].type==="small"){var p=n.havingBaseStyle(a[o].style);c*=p.sizeMultiplier}if(c>t)return a[o]}return a[a.length-1]},Xr=function(e,t,a,n,s,o){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var m;E.contains(Vr,e)?m=F1:E.contains(Gr,e)?m=Ur:m=P1;var c=Yr(e,t,m,n);return c.type==="small"?R1(e,c.style,a,n,s,o):c.type==="large"?Fr(e,c.size,a,n,s,o):Pr(e,t,a,n,s,o)},V1=function(e,t,a,n,s,o){var m=n.fontMetrics().axisHeight*n.sizeMultiplier,c=901,p=5/n.fontMetrics().ptPerEm,g=Math.max(t-m,a+m),y=Math.max(g/500*c,2*g-p);return Xr(e,y,!0,n,s,o)},B0={sqrtImage:O1,sizedDelim:L1,sizeToMaxHeight:se,customSizedDelim:Xr,leftRightDelim:V1},Zt={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},U1=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function He(r,e){var t=Ee(r);if(t&&E.contains(U1,t.text))return t;throw t?new M("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",r):new M("Invalid delimiter type '"+r.type+"'",r)}B({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(r,e)=>{var t=He(e[0],r);return{type:"delimsizing",mode:r.parser.mode,size:Zt[r.funcName].size,mclass:Zt[r.funcName].mclass,delim:t.text}},htmlBuilder:(r,e)=>r.delim==="."?b.makeSpan([r.mclass]):B0.sizedDelim(r.delim,r.size,e,r.mode,[r.mclass]),mathmlBuilder:r=>{var e=[];r.delim!=="."&&e.push(p0(r.delim,r.mode));var t=new S.MathNode("mo",e);r.mclass==="mopen"||r.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var a=T(B0.sizeToMaxHeight[r.size]);return t.setAttribute("minsize",a),t.setAttribute("maxsize",a),t}});function Kt(r){if(!r.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}B({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=r.parser.gullet.macros.get("\\current@color");if(t&&typeof t!="string")throw new M("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:r.parser.mode,delim:He(e[0],r).text,color:t}}});B({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=He(e[0],r),a=r.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var s=L(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:n,left:t.text,right:s.delim,rightColor:s.color}},htmlBuilder:(r,e)=>{Kt(r);for(var t=t0(r.body,e,!0,["mopen","mclose"]),a=0,n=0,s=!1,o=0;o<t.length;o++)t[o].isMiddle?s=!0:(a=Math.max(t[o].height,a),n=Math.max(t[o].depth,n));a*=e.sizeMultiplier,n*=e.sizeMultiplier;var m;if(r.left==="."?m=oe(e,["mopen"]):m=B0.leftRightDelim(r.left,a,n,e,r.mode,["mopen"]),t.unshift(m),s)for(var c=1;c<t.length;c++){var p=t[c],g=p.isMiddle;g&&(t[c]=B0.leftRightDelim(g.delim,a,n,g.options,r.mode,[]))}var y;if(r.right===".")y=oe(e,["mclose"]);else{var x=r.rightColor?e.withColor(r.rightColor):e;y=B0.leftRightDelim(r.right,a,n,x,r.mode,["mclose"])}return t.push(y),b.makeSpan(["minner"],t,e)},mathmlBuilder:(r,e)=>{Kt(r);var t=o0(r.body,e);if(r.left!=="."){var a=new S.MathNode("mo",[p0(r.left,r.mode)]);a.setAttribute("fence","true"),t.unshift(a)}if(r.right!=="."){var n=new S.MathNode("mo",[p0(r.right,r.mode)]);n.setAttribute("fence","true"),r.rightColor&&n.setAttribute("mathcolor",r.rightColor),t.push(n)}return gt(t)}});B({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=He(e[0],r);if(!r.parser.leftrightDepth)throw new M("\\middle without preceding \\left",t);return{type:"middle",mode:r.parser.mode,delim:t.text}},htmlBuilder:(r,e)=>{var t;if(r.delim===".")t=oe(e,[]);else{t=B0.sizedDelim(r.delim,1,e,r.mode,[]);var a={delim:r.delim,options:e};t.isMiddle=a}return t},mathmlBuilder:(r,e)=>{var t=r.delim==="\\vert"||r.delim==="|"?p0("|","text"):p0(r.delim,r.mode),a=new S.MathNode("mo",[t]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var kt=(r,e)=>{var t=b.wrapFragment(P(r.body,e),e),a=r.label.slice(1),n=e.sizeMultiplier,s,o=0,m=E.isCharacterBox(r.body);if(a==="sout")s=b.makeSpan(["stretchy","sout"]),s.height=e.fontMetrics().defaultRuleThickness/n,o=-.5*e.fontMetrics().xHeight;else if(a==="phase"){var c=K({number:.6,unit:"pt"},e),p=K({number:.35,unit:"ex"},e),g=e.havingBaseSizing();n=n/g.sizeMultiplier;var y=t.height+t.depth+c+p;t.style.paddingLeft=T(y/2+c);var x=Math.floor(1e3*y*n),w=Oa(x),z=new N0([new P0("phase",w)],{width:"400em",height:T(x/1e3),viewBox:"0 0 400000 "+x,preserveAspectRatio:"xMinYMin slice"});s=b.makeSvgSpan(["hide-tail"],[z],e),s.style.height=T(y),o=t.depth+c+p}else{/cancel/.test(a)?m||t.classes.push("cancel-pad"):a==="angl"?t.classes.push("anglpad"):t.classes.push("boxpad");var A=0,C=0,q=0;/box/.test(a)?(q=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),A=e.fontMetrics().fboxsep+(a==="colorbox"?0:q),C=A):a==="angl"?(q=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),A=4*q,C=Math.max(0,.25-t.depth)):(A=m?.2:0,C=A),s=q0.encloseSpan(t,a,A,C,e),/fbox|boxed|fcolorbox/.test(a)?(s.style.borderStyle="solid",s.style.borderWidth=T(q)):a==="angl"&&q!==.049&&(s.style.borderTopWidth=T(q),s.style.borderRightWidth=T(q)),o=t.depth+C,r.backgroundColor&&(s.style.backgroundColor=r.backgroundColor,r.borderColor&&(s.style.borderColor=r.borderColor))}var O;if(r.backgroundColor)O=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:t,shift:0}]},e);else{var H=/cancel|phase/.test(a)?["svg-align"]:[];O=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:H}]},e)}return/cancel/.test(a)&&(O.height=t.height,O.depth=t.depth),/cancel/.test(a)&&!m?b.makeSpan(["mord","cancel-lap"],[O],e):b.makeSpan(["mord"],[O],e)},St=(r,e)=>{var t=0,a=new S.MathNode(r.label.indexOf("colorbox")>-1?"mpadded":"menclose",[X(r.body,e)]);switch(r.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(t=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*t+"pt"),a.setAttribute("height","+"+2*t+"pt"),a.setAttribute("lspace",t+"pt"),a.setAttribute("voffset",t+"pt"),r.label==="\\fcolorbox"){var n=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);a.setAttribute("style","border: "+n+"em solid "+String(r.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return r.backgroundColor&&a.setAttribute("mathbackground",r.backgroundColor),a};B({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(r,e,t){var{parser:a,funcName:n}=r,s=L(e[0],"color-token").color,o=e[1];return{type:"enclose",mode:a.mode,label:n,backgroundColor:s,body:o}},htmlBuilder:kt,mathmlBuilder:St});B({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(r,e,t){var{parser:a,funcName:n}=r,s=L(e[0],"color-token").color,o=L(e[1],"color-token").color,m=e[2];return{type:"enclose",mode:a.mode,label:n,backgroundColor:o,borderColor:s,body:m}},htmlBuilder:kt,mathmlBuilder:St});B({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\fbox",body:e[0]}}});B({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"enclose",mode:t.mode,label:a,body:n}},htmlBuilder:kt,mathmlBuilder:St});B({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\angl",body:e[0]}}});var $r={};function x0(r){for(var{type:e,names:t,props:a,handler:n,htmlBuilder:s,mathmlBuilder:o}=r,m={type:e,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},c=0;c<t.length;++c)$r[t[c]]=m;s&&(Ce[e]=s),o&&(qe[e]=o)}var Wr={};function u(r,e){Wr[r]=e}function Jt(r){var e=[];r.consumeSpaces();var t=r.fetch().text;for(t==="\\relax"&&(r.consume(),r.consumeSpaces(),t=r.fetch().text);t==="\\hline"||t==="\\hdashline";)r.consume(),e.push(t==="\\hdashline"),r.consumeSpaces(),t=r.fetch().text;return e}var Le=r=>{var e=r.parser.settings;if(!e.displayMode)throw new M("{"+r.envName+"} can be used only in display mode.")};function Mt(r){if(r.indexOf("ed")===-1)return r.indexOf("*")===-1}function V0(r,e,t){var{hskipBeforeAndAfter:a,addJot:n,cols:s,arraystretch:o,colSeparationType:m,autoTag:c,singleRow:p,emptySingleRow:g,maxNumCols:y,leqno:x}=e;if(r.gullet.beginGroup(),p||r.gullet.macros.set("\\cr","\\\\\\relax"),!o){var w=r.gullet.expandMacroAsText("\\arraystretch");if(w==null)o=1;else if(o=parseFloat(w),!o||o<0)throw new M("Invalid \\arraystretch: "+w)}r.gullet.beginGroup();var z=[],A=[z],C=[],q=[],O=c!=null?[]:void 0;function H(){c&&r.gullet.macros.set("\\@eqnsw","1",!0)}function V(){O&&(r.gullet.macros.get("\\df@tag")?(O.push(r.subparse([new w0("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):O.push(!!c&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(H(),q.push(Jt(r));;){var F=r.parseExpression(!1,p?"\\end":"\\\\");r.gullet.endGroup(),r.gullet.beginGroup(),F={type:"ordgroup",mode:r.mode,body:F},t&&(F={type:"styling",mode:r.mode,style:t,body:[F]}),z.push(F);var U=r.fetch().text;if(U==="&"){if(y&&z.length===y){if(p||m)throw new M("Too many tab characters: &",r.nextToken);r.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}r.consume()}else if(U==="\\end"){V(),z.length===1&&F.type==="styling"&&F.body[0].body.length===0&&(A.length>1||!g)&&A.pop(),q.length<A.length+1&&q.push([]);break}else if(U==="\\\\"){r.consume();var G=void 0;r.gullet.future().text!==" "&&(G=r.parseSizeGroup(!0)),C.push(G?G.value:null),V(),q.push(Jt(r)),z=[],A.push(z),H()}else throw new M("Expected & or \\\\ or \\cr or \\end",r.nextToken)}return r.gullet.endGroup(),r.gullet.endGroup(),{type:"array",mode:r.mode,addJot:n,arraystretch:o,body:A,cols:s,rowGaps:C,hskipBeforeAndAfter:a,hLinesBeforeRow:q,colSeparationType:m,tags:O,leqno:x}}function zt(r){return r.slice(0,1)==="d"?"display":"text"}var k0=function(e,t){var a,n,s=e.body.length,o=e.hLinesBeforeRow,m=0,c=new Array(s),p=[],g=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),y=1/t.fontMetrics().ptPerEm,x=5*y;if(e.colSeparationType&&e.colSeparationType==="small"){var w=t.havingStyle(I.SCRIPT).sizeMultiplier;x=.2778*(w/t.sizeMultiplier)}var z=e.colSeparationType==="CD"?K({number:3,unit:"ex"},t):12*y,A=3*y,C=e.arraystretch*z,q=.7*C,O=.3*C,H=0;function V(pe){for(var ve=0;ve<pe.length;++ve)ve>0&&(H+=.25),p.push({pos:H,isDashed:pe[ve]})}for(V(o[0]),a=0;a<e.body.length;++a){var F=e.body[a],U=q,G=O;m<F.length&&(m=F.length);var j=new Array(F.length);for(n=0;n<F.length;++n){var Y=P(F[n],t);G<Y.depth&&(G=Y.depth),U<Y.height&&(U=Y.height),j[n]=Y}var M0=e.rowGaps[a],r0=0;M0&&(r0=K(M0,t),r0>0&&(r0+=O,G<r0&&(G=r0),r0=0)),e.addJot&&(G+=A),j.height=U,j.depth=G,H+=U,j.pos=H,H+=G+r0,c[a]=j,V(o[a+1])}var e0=H/2+t.fontMetrics().axisHeight,U0=e.cols||[],s0=[],v0,I0,W0=[];if(e.tags&&e.tags.some(pe=>pe))for(a=0;a<s;++a){var j0=c[a],Fe=j0.pos-e0,D0=e.tags[a],E0=void 0;D0===!0?E0=b.makeSpan(["eqn-num"],[],t):D0===!1?E0=b.makeSpan([],[],t):E0=b.makeSpan([],t0(D0,t,!0),t),E0.depth=j0.depth,E0.height=j0.height,W0.push({type:"elem",elem:E0,shift:Fe})}for(n=0,I0=0;n<m||I0<U0.length;++n,++I0){for(var u0=U0[I0]||{},ae=!0;u0.type==="separator";){if(ae||(v0=b.makeSpan(["arraycolsep"],[]),v0.style.width=T(t.fontMetrics().doubleRuleSep),s0.push(v0)),u0.separator==="|"||u0.separator===":"){var Pe=u0.separator==="|"?"solid":"dashed",Z0=b.makeSpan(["vertical-separator"],[],t);Z0.style.height=T(H),Z0.style.borderRightWidth=T(g),Z0.style.borderRightStyle=Pe,Z0.style.margin="0 "+T(-g/2);var Rt=H-e0;Rt&&(Z0.style.verticalAlign=T(-Rt)),s0.push(Z0)}else throw new M("Invalid separator type: "+u0.separator);I0++,u0=U0[I0]||{},ae=!1}if(!(n>=m)){var K0=void 0;(n>0||e.hskipBeforeAndAfter)&&(K0=E.deflt(u0.pregap,x),K0!==0&&(v0=b.makeSpan(["arraycolsep"],[]),v0.style.width=T(K0),s0.push(v0)));var J0=[];for(a=0;a<s;++a){var de=c[a],fe=de[n];if(fe){var ma=de.pos-e0;fe.depth=de.depth,fe.height=de.height,J0.push({type:"elem",elem:fe,shift:ma})}}J0=b.makeVList({positionType:"individualShift",children:J0},t),J0=b.makeSpan(["col-align-"+(u0.align||"c")],[J0]),s0.push(J0),(n<m-1||e.hskipBeforeAndAfter)&&(K0=E.deflt(u0.postgap,x),K0!==0&&(v0=b.makeSpan(["arraycolsep"],[]),v0.style.width=T(K0),s0.push(v0)))}}if(c=b.makeSpan(["mtable"],s0),p.length>0){for(var ua=b.makeLineSpan("hline",t,g),ca=b.makeLineSpan("hdashline",t,g),Ge=[{type:"elem",elem:c,shift:0}];p.length>0;){var It=p.pop(),Dt=It.pos-e0;It.isDashed?Ge.push({type:"elem",elem:ca,shift:Dt}):Ge.push({type:"elem",elem:ua,shift:Dt})}c=b.makeVList({positionType:"individualShift",children:Ge},t)}if(W0.length===0)return b.makeSpan(["mord"],[c],t);var Ve=b.makeVList({positionType:"individualShift",children:W0},t);return Ve=b.makeSpan(["tag"],[Ve],t),b.makeFragment([c,Ve])},Y1={c:"center ",l:"left ",r:"right "},S0=function(e,t){for(var a=[],n=new S.MathNode("mtd",[],["mtr-glue"]),s=new S.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<e.body.length;o++){for(var m=e.body[o],c=[],p=0;p<m.length;p++)c.push(new S.MathNode("mtd",[X(m[p],t)]));e.tags&&e.tags[o]&&(c.unshift(n),c.push(n),e.leqno?c.unshift(s):c.push(s)),a.push(new S.MathNode("mtr",c))}var g=new S.MathNode("mtable",a),y=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);g.setAttribute("rowspacing",T(y));var x="",w="";if(e.cols&&e.cols.length>0){var z=e.cols,A="",C=!1,q=0,O=z.length;z[0].type==="separator"&&(x+="top ",q=1),z[z.length-1].type==="separator"&&(x+="bottom ",O-=1);for(var H=q;H<O;H++)z[H].type==="align"?(w+=Y1[z[H].align],C&&(A+="none "),C=!0):z[H].type==="separator"&&C&&(A+=z[H].separator==="|"?"solid ":"dashed ",C=!1);g.setAttribute("columnalign",w.trim()),/[sd]/.test(A)&&g.setAttribute("columnlines",A.trim())}if(e.colSeparationType==="align"){for(var V=e.cols||[],F="",U=1;U<V.length;U++)F+=U%2?"0em ":"1em ";g.setAttribute("columnspacing",F.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?g.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?g.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?g.setAttribute("columnspacing","0.5em"):g.setAttribute("columnspacing","1em");var G="",j=e.hLinesBeforeRow;x+=j[0].length>0?"left ":"",x+=j[j.length-1].length>0?"right ":"";for(var Y=1;Y<j.length-1;Y++)G+=j[Y].length===0?"none ":j[Y][0]?"dashed ":"solid ";return/[sd]/.test(G)&&g.setAttribute("rowlines",G.trim()),x!==""&&(g=new S.MathNode("menclose",[g]),g.setAttribute("notation",x.trim())),e.arraystretch&&e.arraystretch<1&&(g=new S.MathNode("mstyle",[g]),g.setAttribute("scriptlevel","1")),g},jr=function(e,t){e.envName.indexOf("ed")===-1&&Le(e);var a=[],n=e.envName.indexOf("at")>-1?"alignat":"align",s=e.envName==="split",o=V0(e.parser,{cols:a,addJot:!0,autoTag:s?void 0:Mt(e.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display"),m,c=0,p={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var g="",y=0;y<t[0].body.length;y++){var x=L(t[0].body[y],"textord");g+=x.text}m=Number(g),c=m*2}var w=!c;o.body.forEach(function(q){for(var O=1;O<q.length;O+=2){var H=L(q[O],"styling"),V=L(H.body[0],"ordgroup");V.body.unshift(p)}if(w)c<q.length&&(c=q.length);else{var F=q.length/2;if(m<F)throw new M("Too many math in a row: "+("expected "+m+", but got "+F),q[0])}});for(var z=0;z<c;++z){var A="r",C=0;z%2===1?A="l":z>0&&w&&(C=1),a[z]={type:"align",align:A,pregap:C,postgap:0}}return o.colSeparationType=w?"align":"alignat",o};x0({type:"array",names:["array","darray"],props:{numArgs:1},handler(r,e){var t=Ee(e[0]),a=t?[e[0]]:L(e[0],"ordgroup").body,n=a.map(function(o){var m=yt(o),c=m.text;if("lcr".indexOf(c)!==-1)return{type:"align",align:c};if(c==="|")return{type:"separator",separator:"|"};if(c===":")return{type:"separator",separator:":"};throw new M("Unknown column alignment: "+c,o)}),s={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return V0(r.parser,s,zt(r.envName))},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(r){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[r.envName.replace("*","")],t="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:t}]};if(r.envName.charAt(r.envName.length-1)==="*"){var n=r.parser;if(n.consumeSpaces(),n.fetch().text==="["){if(n.consume(),n.consumeSpaces(),t=n.fetch().text,"lcr".indexOf(t)===-1)throw new M("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),a.cols=[{type:"align",align:t}]}}var s=V0(r.parser,a,zt(r.envName)),o=Math.max(0,...s.body.map(m=>m.length));return s.cols=new Array(o).fill({type:"align",align:t}),e?{type:"leftright",mode:r.mode,body:[s],left:e[0],right:e[1],rightColor:void 0}:s},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(r){var e={arraystretch:.5},t=V0(r.parser,e,"script");return t.colSeparationType="small",t},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["subarray"],props:{numArgs:1},handler(r,e){var t=Ee(e[0]),a=t?[e[0]]:L(e[0],"ordgroup").body,n=a.map(function(o){var m=yt(o),c=m.text;if("lc".indexOf(c)!==-1)return{type:"align",align:c};throw new M("Unknown column alignment: "+c,o)});if(n.length>1)throw new M("{subarray} can contain only one column");var s={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=V0(r.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new M("{subarray} can contain only one column");return s},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(r){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},t=V0(r.parser,e,zt(r.envName));return{type:"leftright",mode:r.mode,body:[t],left:r.envName.indexOf("r")>-1?".":"\\{",right:r.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:jr,htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(r){E.contains(["gather","gather*"],r.envName)&&Le(r);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Mt(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return V0(r.parser,e,"display")},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:jr,htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(r){Le(r);var e={autoTag:Mt(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return V0(r.parser,e,"display")},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["CD"],props:{numArgs:0},handler(r){return Le(r),C1(r.parser)},htmlBuilder:k0,mathmlBuilder:S0});u("\\nonumber","\\gdef\\@eqnsw{0}");u("\\notag","\\nonumber");B({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(r,e){throw new M(r.funcName+" valid only within array environment")}});var Qt=$r;B({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];if(n.type!=="ordgroup")throw new M("Invalid environment name",n);for(var s="",o=0;o<n.body.length;++o)s+=L(n.body[o],"textord").text;if(a==="\\begin"){if(!Qt.hasOwnProperty(s))throw new M("No such environment: "+s,n);var m=Qt[s],{args:c,optArgs:p}=t.parseArguments("\\begin{"+s+"}",m),g={mode:t.mode,envName:s,parser:t},y=m.handler(g,c,p);t.expect("\\end",!1);var x=t.nextToken,w=L(t.parseFunction(),"environment");if(w.name!==s)throw new M("Mismatch: \\begin{"+s+"} matched by \\end{"+w.name+"}",x);return y}return{type:"environment",mode:t.mode,name:s,nameGroup:n}}});var Zr=(r,e)=>{var t=r.font,a=e.withFont(t);return P(r.body,a)},Kr=(r,e)=>{var t=r.font,a=e.withFont(t);return X(r.body,a)},_t={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};B({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=Re(e[0]),s=a;return s in _t&&(s=_t[s]),{type:"font",mode:t.mode,font:s.slice(1),body:n}},htmlBuilder:Zr,mathmlBuilder:Kr});B({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(r,e)=>{var{parser:t}=r,a=e[0],n=E.isCharacterBox(a);return{type:"mclass",mode:t.mode,mclass:Oe(a),body:[{type:"font",mode:t.mode,font:"boldsymbol",body:a}],isCharacterBox:n}}});B({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a,breakOnTokenText:n}=r,{mode:s}=t,o=t.parseExpression(!0,n),m="math"+a.slice(1);return{type:"font",mode:s,font:m,body:{type:"ordgroup",mode:t.mode,body:o}}},htmlBuilder:Zr,mathmlBuilder:Kr});var Jr=(r,e)=>{var t=e;return r==="display"?t=t.id>=I.SCRIPT.id?t.text():I.DISPLAY:r==="text"&&t.size===I.DISPLAY.size?t=I.TEXT:r==="script"?t=I.SCRIPT:r==="scriptscript"&&(t=I.SCRIPTSCRIPT),t},Tt=(r,e)=>{var t=Jr(r.size,e.style),a=t.fracNum(),n=t.fracDen(),s;s=e.havingStyle(a);var o=P(r.numer,s,e);if(r.continued){var m=8.5/e.fontMetrics().ptPerEm,c=3.5/e.fontMetrics().ptPerEm;o.height=o.height<m?m:o.height,o.depth=o.depth<c?c:o.depth}s=e.havingStyle(n);var p=P(r.denom,s,e),g,y,x;r.hasBarLine?(r.barSize?(y=K(r.barSize,e),g=b.makeLineSpan("frac-line",e,y)):g=b.makeLineSpan("frac-line",e),y=g.height,x=g.height):(g=null,y=0,x=e.fontMetrics().defaultRuleThickness);var w,z,A;t.size===I.DISPLAY.size||r.size==="display"?(w=e.fontMetrics().num1,y>0?z=3*x:z=7*x,A=e.fontMetrics().denom1):(y>0?(w=e.fontMetrics().num2,z=x):(w=e.fontMetrics().num3,z=3*x),A=e.fontMetrics().denom2);var C;if(g){var O=e.fontMetrics().axisHeight;w-o.depth-(O+.5*y)<z&&(w+=z-(w-o.depth-(O+.5*y))),O-.5*y-(p.height-A)<z&&(A+=z-(O-.5*y-(p.height-A)));var H=-(O-.5*y);C=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:p,shift:A},{type:"elem",elem:g,shift:H},{type:"elem",elem:o,shift:-w}]},e)}else{var q=w-o.depth-(p.height-A);q<z&&(w+=.5*(z-q),A+=.5*(z-q)),C=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:p,shift:A},{type:"elem",elem:o,shift:-w}]},e)}s=e.havingStyle(t),C.height*=s.sizeMultiplier/e.sizeMultiplier,C.depth*=s.sizeMultiplier/e.sizeMultiplier;var V;t.size===I.DISPLAY.size?V=e.fontMetrics().delim1:t.size===I.SCRIPTSCRIPT.size?V=e.havingStyle(I.SCRIPT).fontMetrics().delim2:V=e.fontMetrics().delim2;var F,U;return r.leftDelim==null?F=oe(e,["mopen"]):F=B0.customSizedDelim(r.leftDelim,V,!0,e.havingStyle(t),r.mode,["mopen"]),r.continued?U=b.makeSpan([]):r.rightDelim==null?U=oe(e,["mclose"]):U=B0.customSizedDelim(r.rightDelim,V,!0,e.havingStyle(t),r.mode,["mclose"]),b.makeSpan(["mord"].concat(s.sizingClasses(e)),[F,b.makeSpan(["mfrac"],[C]),U],e)},At=(r,e)=>{var t=new S.MathNode("mfrac",[X(r.numer,e),X(r.denom,e)]);if(!r.hasBarLine)t.setAttribute("linethickness","0px");else if(r.barSize){var a=K(r.barSize,e);t.setAttribute("linethickness",T(a))}var n=Jr(r.size,e.style);if(n.size!==e.style.size){t=new S.MathNode("mstyle",[t]);var s=n.size===I.DISPLAY.size?"true":"false";t.setAttribute("displaystyle",s),t.setAttribute("scriptlevel","0")}if(r.leftDelim!=null||r.rightDelim!=null){var o=[];if(r.leftDelim!=null){var m=new S.MathNode("mo",[new S.TextNode(r.leftDelim.replace("\\",""))]);m.setAttribute("fence","true"),o.push(m)}if(o.push(t),r.rightDelim!=null){var c=new S.MathNode("mo",[new S.TextNode(r.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),o.push(c)}return gt(o)}return t};B({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=e[1],o,m=null,c=null,p="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,m="(",c=")";break;case"\\\\bracefrac":o=!1,m="\\{",c="\\}";break;case"\\\\brackfrac":o=!1,m="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":p="display";break;case"\\tfrac":case"\\tbinom":p="text";break}return{type:"genfrac",mode:t.mode,continued:!1,numer:n,denom:s,hasBarLine:o,leftDelim:m,rightDelim:c,size:p,barSize:null}},htmlBuilder:Tt,mathmlBuilder:At});B({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=e[1];return{type:"genfrac",mode:t.mode,continued:!0,numer:n,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});B({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(r){var{parser:e,funcName:t,token:a}=r,n;switch(t){case"\\over":n="\\frac";break;case"\\choose":n="\\binom";break;case"\\atop":n="\\\\atopfrac";break;case"\\brace":n="\\\\bracefrac";break;case"\\brack":n="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:n,token:a}}});var er=["display","text","script","scriptscript"],tr=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};B({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(r,e){var{parser:t}=r,a=e[4],n=e[5],s=Re(e[0]),o=s.type==="atom"&&s.family==="open"?tr(s.text):null,m=Re(e[1]),c=m.type==="atom"&&m.family==="close"?tr(m.text):null,p=L(e[2],"size"),g,y=null;p.isBlank?g=!0:(y=p.value,g=y.number>0);var x="auto",w=e[3];if(w.type==="ordgroup"){if(w.body.length>0){var z=L(w.body[0],"textord");x=er[Number(z.text)]}}else w=L(w,"textord"),x=er[Number(w.text)];return{type:"genfrac",mode:t.mode,numer:a,denom:n,continued:!1,hasBarLine:g,barSize:y,leftDelim:o,rightDelim:c,size:x}},htmlBuilder:Tt,mathmlBuilder:At});B({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(r,e){var{parser:t,funcName:a,token:n}=r;return{type:"infix",mode:t.mode,replaceWith:"\\\\abovefrac",size:L(e[0],"size").value,token:n}}});B({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=xa(L(e[1],"infix").size),o=e[2],m=s.number>0;return{type:"genfrac",mode:t.mode,numer:n,denom:o,continued:!1,hasBarLine:m,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Tt,mathmlBuilder:At});var Qr=(r,e)=>{var t=e.style,a,n;r.type==="supsub"?(a=r.sup?P(r.sup,e.havingStyle(t.sup()),e):P(r.sub,e.havingStyle(t.sub()),e),n=L(r.base,"horizBrace")):n=L(r,"horizBrace");var s=P(n.base,e.havingBaseStyle(I.DISPLAY)),o=q0.svgSpan(n,e),m;if(n.isOver?(m=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},e),m.children[0].children[0].children[1].classes.push("svg-align")):(m=b.makeVList({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},e),m.children[0].children[0].children[0].classes.push("svg-align")),a){var c=b.makeSpan(["mord",n.isOver?"mover":"munder"],[m],e);n.isOver?m=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:a}]},e):m=b.makeVList({positionType:"bottom",positionData:c.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:c}]},e)}return b.makeSpan(["mord",n.isOver?"mover":"munder"],[m],e)},X1=(r,e)=>{var t=q0.mathMLnode(r.label);return new S.MathNode(r.isOver?"mover":"munder",[X(r.base,e),t])};B({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r;return{type:"horizBrace",mode:t.mode,label:a,isOver:/^\\over/.test(a),base:e[0]}},htmlBuilder:Qr,mathmlBuilder:X1});B({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[1],n=L(e[0],"url").url;return t.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:t.mode,href:n,body:Q(a)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(r,e)=>{var t=t0(r.body,e,!1);return b.makeAnchor(r.href,[],t,e)},mathmlBuilder:(r,e)=>{var t=G0(r.body,e);return t instanceof c0||(t=new c0("mrow",[t])),t.setAttribute("href",r.href),t}});B({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=L(e[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:a}))return t.formatUnsupportedCmd("\\url");for(var n=[],s=0;s<a.length;s++){var o=a[s];o==="~"&&(o="\\textasciitilde"),n.push({type:"textord",mode:"text",text:o})}var m={type:"text",mode:t.mode,font:"\\texttt",body:n};return{type:"href",mode:t.mode,href:a,body:Q(m)}}});B({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(r,e){var{parser:t}=r;return{type:"hbox",mode:t.mode,body:Q(e[0])}},htmlBuilder(r,e){var t=t0(r.body,e,!1);return b.makeFragment(t)},mathmlBuilder(r,e){return new S.MathNode("mrow",o0(r.body,e))}});B({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a,token:n}=r,s=L(e[0],"raw").string,o=e[1];t.settings.strict&&t.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var m,c={};switch(a){case"\\htmlClass":c.class=s,m={command:"\\htmlClass",class:s};break;case"\\htmlId":c.id=s,m={command:"\\htmlId",id:s};break;case"\\htmlStyle":c.style=s,m={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var p=s.split(","),g=0;g<p.length;g++){var y=p[g].split("=");if(y.length!==2)throw new M("Error parsing key-value for \\htmlData");c["data-"+y[0].trim()]=y[1].trim()}m={command:"\\htmlData",attributes:c};break}default:throw new Error("Unrecognized html command")}return t.settings.isTrusted(m)?{type:"html",mode:t.mode,attributes:c,body:Q(o)}:t.formatUnsupportedCmd(a)},htmlBuilder:(r,e)=>{var t=t0(r.body,e,!1),a=["enclosing"];r.attributes.class&&a.push(...r.attributes.class.trim().split(/\s+/));var n=b.makeSpan(a,t,e);for(var s in r.attributes)s!=="class"&&r.attributes.hasOwnProperty(s)&&n.setAttribute(s,r.attributes[s]);return n},mathmlBuilder:(r,e)=>G0(r.body,e)});B({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"htmlmathml",mode:t.mode,html:Q(e[0]),mathml:Q(e[1])}},htmlBuilder:(r,e)=>{var t=t0(r.html,e,!1);return b.makeFragment(t)},mathmlBuilder:(r,e)=>G0(r.mathml,e)});var _e=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new M("Invalid size: '"+e+"' in \\includegraphics");var a={number:+(t[1]+t[2]),unit:t[3]};if(!gr(a))throw new M("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};B({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(r,e,t)=>{var{parser:a}=r,n={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},m="";if(t[0])for(var c=L(t[0],"raw").string,p=c.split(","),g=0;g<p.length;g++){var y=p[g].split("=");if(y.length===2){var x=y[1].trim();switch(y[0].trim()){case"alt":m=x;break;case"width":n=_e(x);break;case"height":s=_e(x);break;case"totalheight":o=_e(x);break;default:throw new M("Invalid key: '"+y[0]+"' in \\includegraphics.")}}}var w=L(e[0],"url").url;return m===""&&(m=w,m=m.replace(/^.*[\\/]/,""),m=m.substring(0,m.lastIndexOf("."))),a.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:a.mode,alt:m,width:n,height:s,totalheight:o,src:w}:a.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(r,e)=>{var t=K(r.height,e),a=0;r.totalheight.number>0&&(a=K(r.totalheight,e)-t);var n=0;r.width.number>0&&(n=K(r.width,e));var s={height:T(t+a)};n>0&&(s.width=T(n)),a>0&&(s.verticalAlign=T(-a));var o=new Xa(r.src,r.alt,s);return o.height=t,o.depth=a,o},mathmlBuilder:(r,e)=>{var t=new S.MathNode("mglyph",[]);t.setAttribute("alt",r.alt);var a=K(r.height,e),n=0;if(r.totalheight.number>0&&(n=K(r.totalheight,e)-a,t.setAttribute("valign",T(-n))),t.setAttribute("height",T(a+n)),r.width.number>0){var s=K(r.width,e);t.setAttribute("width",T(s))}return t.setAttribute("src",r.src),t}});B({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r,n=L(e[0],"size");if(t.settings.strict){var s=a[1]==="m",o=n.value.unit==="mu";s?(o||t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+n.value.unit+" units")),t.mode!=="math"&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):o&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:t.mode,dimension:n.value}},htmlBuilder(r,e){return b.makeGlue(r.dimension,e)},mathmlBuilder(r,e){var t=K(r.dimension,e);return new S.SpaceNode(t)}});B({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"lap",mode:t.mode,alignment:a.slice(5),body:n}},htmlBuilder:(r,e)=>{var t;r.alignment==="clap"?(t=b.makeSpan([],[P(r.body,e)]),t=b.makeSpan(["inner"],[t],e)):t=b.makeSpan(["inner"],[P(r.body,e)]);var a=b.makeSpan(["fix"],[]),n=b.makeSpan([r.alignment],[t,a],e),s=b.makeSpan(["strut"]);return s.style.height=T(n.height+n.depth),n.depth&&(s.style.verticalAlign=T(-n.depth)),n.children.unshift(s),n=b.makeSpan(["thinbox"],[n],e),b.makeSpan(["mord","vbox"],[n],e)},mathmlBuilder:(r,e)=>{var t=new S.MathNode("mpadded",[X(r.body,e)]);if(r.alignment!=="rlap"){var a=r.alignment==="llap"?"-1":"-0.5";t.setAttribute("lspace",a+"width")}return t.setAttribute("width","0px"),t}});B({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){var{funcName:t,parser:a}=r,n=a.mode;a.switchMode("math");var s=t==="\\("?"\\)":"$",o=a.parseExpression(!1,s);return a.expect(s),a.switchMode(n),{type:"styling",mode:a.mode,style:"text",body:o}}});B({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){throw new M("Mismatched "+r.funcName)}});var rr=(r,e)=>{switch(e.style.size){case I.DISPLAY.size:return r.display;case I.TEXT.size:return r.text;case I.SCRIPT.size:return r.script;case I.SCRIPTSCRIPT.size:return r.scriptscript;default:return r.text}};B({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"mathchoice",mode:t.mode,display:Q(e[0]),text:Q(e[1]),script:Q(e[2]),scriptscript:Q(e[3])}},htmlBuilder:(r,e)=>{var t=rr(r,e),a=t0(t,e,!1);return b.makeFragment(a)},mathmlBuilder:(r,e)=>{var t=rr(r,e);return G0(t,e)}});var _r=(r,e,t,a,n,s,o)=>{r=b.makeSpan([],[r]);var m=t&&E.isCharacterBox(t),c,p;if(e){var g=P(e,a.havingStyle(n.sup()),a);p={elem:g,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-g.depth)}}if(t){var y=P(t,a.havingStyle(n.sub()),a);c={elem:y,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-y.height)}}var x;if(p&&c){var w=a.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+r.depth+o;x=b.makeVList({positionType:"bottom",positionData:w,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:T(-s)},{type:"kern",size:c.kern},{type:"elem",elem:r},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:T(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(c){var z=r.height-o;x=b.makeVList({positionType:"top",positionData:z,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:T(-s)},{type:"kern",size:c.kern},{type:"elem",elem:r}]},a)}else if(p){var A=r.depth+o;x=b.makeVList({positionType:"bottom",positionData:A,children:[{type:"elem",elem:r},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:T(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return r;var C=[x];if(c&&s!==0&&!m){var q=b.makeSpan(["mspace"],[],a);q.style.marginRight=T(s),C.unshift(q)}return b.makeSpan(["mop","op-limits"],C,a)},ea=["\\smallint"],re=(r,e)=>{var t,a,n=!1,s;r.type==="supsub"?(t=r.sup,a=r.sub,s=L(r.base,"op"),n=!0):s=L(r,"op");var o=e.style,m=!1;o.size===I.DISPLAY.size&&s.symbol&&!E.contains(ea,s.name)&&(m=!0);var c;if(s.symbol){var p=m?"Size2-Regular":"Size1-Regular",g="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(g=s.name.slice(1),s.name=g==="oiint"?"\\iint":"\\iiint"),c=b.makeSymbol(s.name,p,"math",e,["mop","op-symbol",m?"large-op":"small-op"]),g.length>0){var y=c.italic,x=b.staticSvg(g+"Size"+(m?"2":"1"),e);c=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:x,shift:m?.08:0}]},e),s.name="\\"+g,c.classes.unshift("mop"),c.italic=y}}else if(s.body){var w=t0(s.body,e,!0);w.length===1&&w[0]instanceof f0?(c=w[0],c.classes[0]="mop"):c=b.makeSpan(["mop"],w,e)}else{for(var z=[],A=1;A<s.name.length;A++)z.push(b.mathsym(s.name[A],s.mode,e));c=b.makeSpan(["mop"],z,e)}var C=0,q=0;return(c instanceof f0||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(C=(c.height-c.depth)/2-e.fontMetrics().axisHeight,q=c.italic),n?_r(c,t,a,e,o,q,C):(C&&(c.style.position="relative",c.style.top=T(C)),c)},ce=(r,e)=>{var t;if(r.symbol)t=new c0("mo",[p0(r.name,r.mode)]),E.contains(ea,r.name)&&t.setAttribute("largeop","false");else if(r.body)t=new c0("mo",o0(r.body,e));else{t=new c0("mi",[new ie(r.name.slice(1))]);var a=new c0("mo",[p0("","text")]);r.parentIsSupSub?t=new c0("mrow",[t,a]):t=Br([t,a])}return t},$1={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};B({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=a;return n.length===1&&(n=$1[n]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:re,mathmlBuilder:ce});B({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Q(a)}},htmlBuilder:re,mathmlBuilder:ce});var W1={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};B({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:re,mathmlBuilder:ce});B({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:re,mathmlBuilder:ce});B({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r,a=t;return a.length===1&&(a=W1[a]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:re,mathmlBuilder:ce});var ta=(r,e)=>{var t,a,n=!1,s;r.type==="supsub"?(t=r.sup,a=r.sub,s=L(r.base,"operatorname"),n=!0):s=L(r,"operatorname");var o;if(s.body.length>0){for(var m=s.body.map(y=>{var x=y.text;return typeof x=="string"?{type:"textord",mode:y.mode,text:x}:y}),c=t0(m,e.withFont("mathrm"),!0),p=0;p<c.length;p++){var g=c[p];g instanceof f0&&(g.text=g.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=b.makeSpan(["mop"],c,e)}else o=b.makeSpan(["mop"],[],e);return n?_r(o,t,a,e,e.style,0,0):o},j1=(r,e)=>{for(var t=o0(r.body,e.withFont("mathrm")),a=!0,n=0;n<t.length;n++){var s=t[n];if(!(s instanceof S.SpaceNode))if(s instanceof S.MathNode)switch(s.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var o=s.children[0];s.children.length===1&&o instanceof S.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):a=!1;break}default:a=!1}else a=!1}if(a){var m=t.map(g=>g.toText()).join("");t=[new S.TextNode(m)]}var c=new S.MathNode("mi",t);c.setAttribute("mathvariant","normal");var p=new S.MathNode("mo",[p0("","text")]);return r.parentIsSupSub?new S.MathNode("mrow",[c,p]):S.newDocumentFragment([c,p])};B({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"operatorname",mode:t.mode,body:Q(n),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:ta,mathmlBuilder:j1});u("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");$0({type:"ordgroup",htmlBuilder(r,e){return r.semisimple?b.makeFragment(t0(r.body,e,!1)):b.makeSpan(["mord"],t0(r.body,e,!0),e)},mathmlBuilder(r,e){return G0(r.body,e,!0)}});B({type:"overline",names:["\\overline"],props:{numArgs:1},handler(r,e){var{parser:t}=r,a=e[0];return{type:"overline",mode:t.mode,body:a}},htmlBuilder(r,e){var t=P(r.body,e.havingCrampedStyle()),a=b.makeLineSpan("overline-line",e),n=e.fontMetrics().defaultRuleThickness,s=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:3*n},{type:"elem",elem:a},{type:"kern",size:n}]},e);return b.makeSpan(["mord","overline"],[s],e)},mathmlBuilder(r,e){var t=new S.MathNode("mo",[new S.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new S.MathNode("mover",[X(r.body,e),t]);return a.setAttribute("accent","true"),a}});B({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"phantom",mode:t.mode,body:Q(a)}},htmlBuilder:(r,e)=>{var t=t0(r.body,e.withPhantom(),!1);return b.makeFragment(t)},mathmlBuilder:(r,e)=>{var t=o0(r.body,e);return new S.MathNode("mphantom",t)}});B({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"hphantom",mode:t.mode,body:a}},htmlBuilder:(r,e)=>{var t=b.makeSpan([],[P(r.body,e.withPhantom())]);if(t.height=0,t.depth=0,t.children)for(var a=0;a<t.children.length;a++)t.children[a].height=0,t.children[a].depth=0;return t=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t}]},e),b.makeSpan(["mord"],[t],e)},mathmlBuilder:(r,e)=>{var t=o0(Q(r.body),e),a=new S.MathNode("mphantom",t),n=new S.MathNode("mpadded",[a]);return n.setAttribute("height","0px"),n.setAttribute("depth","0px"),n}});B({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"vphantom",mode:t.mode,body:a}},htmlBuilder:(r,e)=>{var t=b.makeSpan(["inner"],[P(r.body,e.withPhantom())]),a=b.makeSpan(["fix"],[]);return b.makeSpan(["mord","rlap"],[t,a],e)},mathmlBuilder:(r,e)=>{var t=o0(Q(r.body),e),a=new S.MathNode("mphantom",t),n=new S.MathNode("mpadded",[a]);return n.setAttribute("width","0px"),n}});B({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r,a=L(e[0],"size").value,n=e[1];return{type:"raisebox",mode:t.mode,dy:a,body:n}},htmlBuilder(r,e){var t=P(r.body,e),a=K(r.dy,e);return b.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){var t=new S.MathNode("mpadded",[X(r.body,e)]),a=r.dy.number+r.dy.unit;return t.setAttribute("voffset",a),t}});B({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(r){var{parser:e}=r;return{type:"internal",mode:e.mode}}});B({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(r,e,t){var{parser:a}=r,n=t[0],s=L(e[0],"size"),o=L(e[1],"size");return{type:"rule",mode:a.mode,shift:n&&L(n,"size").value,width:s.value,height:o.value}},htmlBuilder(r,e){var t=b.makeSpan(["mord","rule"],[],e),a=K(r.width,e),n=K(r.height,e),s=r.shift?K(r.shift,e):0;return t.style.borderRightWidth=T(a),t.style.borderTopWidth=T(n),t.style.bottom=T(s),t.width=a,t.height=n+s,t.depth=-s,t.maxFontSize=n*1.125*e.sizeMultiplier,t},mathmlBuilder(r,e){var t=K(r.width,e),a=K(r.height,e),n=r.shift?K(r.shift,e):0,s=e.color&&e.getColor()||"black",o=new S.MathNode("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",T(t)),o.setAttribute("height",T(a));var m=new S.MathNode("mpadded",[o]);return n>=0?m.setAttribute("height",T(n)):(m.setAttribute("height",T(n)),m.setAttribute("depth",T(-n))),m.setAttribute("voffset",T(n)),m}});function ra(r,e,t){for(var a=t0(r,e,!1),n=e.sizeMultiplier/t.sizeMultiplier,s=0;s<a.length;s++){var o=a[s].classes.indexOf("sizing");o<0?Array.prototype.push.apply(a[s].classes,e.sizingClasses(t)):a[s].classes[o+1]==="reset-size"+e.size&&(a[s].classes[o+1]="reset-size"+t.size),a[s].height*=n,a[s].depth*=n}return b.makeFragment(a)}var ar=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Z1=(r,e)=>{var t=e.havingSize(r.size);return ra(r.body,t,e)};B({type:"sizing",names:ar,props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{breakOnTokenText:t,funcName:a,parser:n}=r,s=n.parseExpression(!1,t);return{type:"sizing",mode:n.mode,size:ar.indexOf(a)+1,body:s}},htmlBuilder:Z1,mathmlBuilder:(r,e)=>{var t=e.havingSize(r.size),a=o0(r.body,t),n=new S.MathNode("mstyle",a);return n.setAttribute("mathsize",T(t.sizeMultiplier)),n}});B({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(r,e,t)=>{var{parser:a}=r,n=!1,s=!1,o=t[0]&&L(t[0],"ordgroup");if(o)for(var m="",c=0;c<o.body.length;++c){var p=o.body[c];if(m=p.text,m==="t")n=!0;else if(m==="b")s=!0;else{n=!1,s=!1;break}}else n=!0,s=!0;var g=e[0];return{type:"smash",mode:a.mode,body:g,smashHeight:n,smashDepth:s}},htmlBuilder:(r,e)=>{var t=b.makeSpan([],[P(r.body,e)]);if(!r.smashHeight&&!r.smashDepth)return t;if(r.smashHeight&&(t.height=0,t.children))for(var a=0;a<t.children.length;a++)t.children[a].height=0;if(r.smashDepth&&(t.depth=0,t.children))for(var n=0;n<t.children.length;n++)t.children[n].depth=0;var s=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t}]},e);return b.makeSpan(["mord"],[s],e)},mathmlBuilder:(r,e)=>{var t=new S.MathNode("mpadded",[X(r.body,e)]);return r.smashHeight&&t.setAttribute("height","0px"),r.smashDepth&&t.setAttribute("depth","0px"),t}});B({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:a}=r,n=t[0],s=e[0];return{type:"sqrt",mode:a.mode,body:s,index:n}},htmlBuilder(r,e){var t=P(r.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=b.wrapFragment(t,e);var a=e.fontMetrics(),n=a.defaultRuleThickness,s=n;e.style.id<I.TEXT.id&&(s=e.fontMetrics().xHeight);var o=n+s/4,m=t.height+t.depth+o+n,{span:c,ruleWidth:p,advanceWidth:g}=B0.sqrtImage(m,e),y=c.height-p;y>t.height+t.depth+o&&(o=(o+y-t.height-t.depth)/2);var x=c.height-t.height-o-p;t.style.paddingLeft=T(g);var w=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+x)},{type:"elem",elem:c},{type:"kern",size:p}]},e);if(r.index){var z=e.havingStyle(I.SCRIPTSCRIPT),A=P(r.index,z,e),C=.6*(w.height-w.depth),q=b.makeVList({positionType:"shift",positionData:-C,children:[{type:"elem",elem:A}]},e),O=b.makeSpan(["root"],[q]);return b.makeSpan(["mord","sqrt"],[O,w],e)}else return b.makeSpan(["mord","sqrt"],[w],e)},mathmlBuilder(r,e){var{body:t,index:a}=r;return a?new S.MathNode("mroot",[X(t,e),X(a,e)]):new S.MathNode("msqrt",[X(t,e)])}});var nr={display:I.DISPLAY,text:I.TEXT,script:I.SCRIPT,scriptscript:I.SCRIPTSCRIPT};B({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r,e){var{breakOnTokenText:t,funcName:a,parser:n}=r,s=n.parseExpression(!0,t),o=a.slice(1,a.length-5);return{type:"styling",mode:n.mode,style:o,body:s}},htmlBuilder(r,e){var t=nr[r.style],a=e.havingStyle(t).withFont("");return ra(r.body,a,e)},mathmlBuilder(r,e){var t=nr[r.style],a=e.havingStyle(t),n=o0(r.body,a),s=new S.MathNode("mstyle",n),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},m=o[r.style];return s.setAttribute("scriptlevel",m[0]),s.setAttribute("displaystyle",m[1]),s}});var K1=function(e,t){var a=e.base;if(a)if(a.type==="op"){var n=a.limits&&(t.style.size===I.DISPLAY.size||a.alwaysHandleSupSub);return n?re:null}else if(a.type==="operatorname"){var s=a.alwaysHandleSupSub&&(t.style.size===I.DISPLAY.size||a.limits);return s?ta:null}else{if(a.type==="accent")return E.isCharacterBox(a.base)?wt:null;if(a.type==="horizBrace"){var o=!e.sub;return o===a.isOver?Qr:null}else return null}else return null};$0({type:"supsub",htmlBuilder(r,e){var t=K1(r,e);if(t)return t(r,e);var{base:a,sup:n,sub:s}=r,o=P(a,e),m,c,p=e.fontMetrics(),g=0,y=0,x=a&&E.isCharacterBox(a);if(n){var w=e.havingStyle(e.style.sup());m=P(n,w,e),x||(g=o.height-w.fontMetrics().supDrop*w.sizeMultiplier/e.sizeMultiplier)}if(s){var z=e.havingStyle(e.style.sub());c=P(s,z,e),x||(y=o.depth+z.fontMetrics().subDrop*z.sizeMultiplier/e.sizeMultiplier)}var A;e.style===I.DISPLAY?A=p.sup1:e.style.cramped?A=p.sup3:A=p.sup2;var C=e.sizeMultiplier,q=T(.5/p.ptPerEm/C),O=null;if(c){var H=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");(o instanceof f0||H)&&(O=T(-o.italic))}var V;if(m&&c){g=Math.max(g,A,m.depth+.25*p.xHeight),y=Math.max(y,p.sub2);var F=p.defaultRuleThickness,U=4*F;if(g-m.depth-(c.height-y)<U){y=U-(g-m.depth)+c.height;var G=.8*p.xHeight-(g-m.depth);G>0&&(g+=G,y-=G)}var j=[{type:"elem",elem:c,shift:y,marginRight:q,marginLeft:O},{type:"elem",elem:m,shift:-g,marginRight:q}];V=b.makeVList({positionType:"individualShift",children:j},e)}else if(c){y=Math.max(y,p.sub1,c.height-.8*p.xHeight);var Y=[{type:"elem",elem:c,marginLeft:O,marginRight:q}];V=b.makeVList({positionType:"shift",positionData:y,children:Y},e)}else if(m)g=Math.max(g,A,m.depth+.25*p.xHeight),V=b.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:m,marginRight:q}]},e);else throw new Error("supsub must have either sup or sub.");var M0=lt(o,"right")||"mord";return b.makeSpan([M0],[o,b.makeSpan(["msupsub"],[V])],e)},mathmlBuilder(r,e){var t=!1,a,n;r.base&&r.base.type==="horizBrace"&&(n=!!r.sup,n===r.base.isOver&&(t=!0,a=r.base.isOver)),r.base&&(r.base.type==="op"||r.base.type==="operatorname")&&(r.base.parentIsSupSub=!0);var s=[X(r.base,e)];r.sub&&s.push(X(r.sub,e)),r.sup&&s.push(X(r.sup,e));var o;if(t)o=a?"mover":"munder";else if(r.sub)if(r.sup){var p=r.base;p&&p.type==="op"&&p.limits&&e.style===I.DISPLAY||p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(e.style===I.DISPLAY||p.limits)?o="munderover":o="msubsup"}else{var c=r.base;c&&c.type==="op"&&c.limits&&(e.style===I.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||e.style===I.DISPLAY)?o="munder":o="msub"}else{var m=r.base;m&&m.type==="op"&&m.limits&&(e.style===I.DISPLAY||m.alwaysHandleSupSub)||m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(m.limits||e.style===I.DISPLAY)?o="mover":o="msup"}return new S.MathNode(o,s)}});$0({type:"atom",htmlBuilder(r,e){return b.mathsym(r.text,r.mode,e,["m"+r.family])},mathmlBuilder(r,e){var t=new S.MathNode("mo",[p0(r.text,r.mode)]);if(r.family==="bin"){var a=bt(r,e);a==="bold-italic"&&t.setAttribute("mathvariant",a)}else r.family==="punct"?t.setAttribute("separator","true"):(r.family==="open"||r.family==="close")&&t.setAttribute("stretchy","false");return t}});var aa={mi:"italic",mn:"normal",mtext:"normal"};$0({type:"mathord",htmlBuilder(r,e){return b.makeOrd(r,e,"mathord")},mathmlBuilder(r,e){var t=new S.MathNode("mi",[p0(r.text,r.mode,e)]),a=bt(r,e)||"italic";return a!==aa[t.type]&&t.setAttribute("mathvariant",a),t}});$0({type:"textord",htmlBuilder(r,e){return b.makeOrd(r,e,"textord")},mathmlBuilder(r,e){var t=p0(r.text,r.mode,e),a=bt(r,e)||"normal",n;return r.mode==="text"?n=new S.MathNode("mtext",[t]):/[0-9]/.test(r.text)?n=new S.MathNode("mn",[t]):r.text==="\\prime"?n=new S.MathNode("mo",[t]):n=new S.MathNode("mi",[t]),a!==aa[n.type]&&n.setAttribute("mathvariant",a),n}});var et={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},tt={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};$0({type:"spacing",htmlBuilder(r,e){if(tt.hasOwnProperty(r.text)){var t=tt[r.text].className||"";if(r.mode==="text"){var a=b.makeOrd(r,e,"textord");return a.classes.push(t),a}else return b.makeSpan(["mspace",t],[b.mathsym(r.text,r.mode,e)],e)}else{if(et.hasOwnProperty(r.text))return b.makeSpan(["mspace",et[r.text]],[],e);throw new M('Unknown type of space "'+r.text+'"')}},mathmlBuilder(r,e){var t;if(tt.hasOwnProperty(r.text))t=new S.MathNode("mtext",[new S.TextNode(" ")]);else{if(et.hasOwnProperty(r.text))return new S.MathNode("mspace");throw new M('Unknown type of space "'+r.text+'"')}return t}});var ir=()=>{var r=new S.MathNode("mtd",[]);return r.setAttribute("width","50%"),r};$0({type:"tag",mathmlBuilder(r,e){var t=new S.MathNode("mtable",[new S.MathNode("mtr",[ir(),new S.MathNode("mtd",[G0(r.body,e)]),ir(),new S.MathNode("mtd",[G0(r.tag,e)])])]);return t.setAttribute("width","100%"),t}});var sr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},lr={"\\textbf":"textbf","\\textmd":"textmd"},J1={"\\textit":"textit","\\textup":"textup"},or=(r,e)=>{var t=r.font;return t?sr[t]?e.withTextFontFamily(sr[t]):lr[t]?e.withTextFontWeight(lr[t]):e.withTextFontShape(J1[t]):e};B({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"text",mode:t.mode,body:Q(n),font:a}},htmlBuilder(r,e){var t=or(r,e),a=t0(r.body,t,!0);return b.makeSpan(["mord","text"],a,t)},mathmlBuilder(r,e){var t=or(r,e);return G0(r.body,t)}});B({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"underline",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=P(r.body,e),a=b.makeLineSpan("underline-line",e),n=e.fontMetrics().defaultRuleThickness,s=b.makeVList({positionType:"top",positionData:t.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:t}]},e);return b.makeSpan(["mord","underline"],[s],e)},mathmlBuilder(r,e){var t=new S.MathNode("mo",[new S.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new S.MathNode("munder",[X(r.body,e),t]);return a.setAttribute("accentunder","true"),a}});B({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"vcenter",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=P(r.body,e),a=e.fontMetrics().axisHeight,n=.5*(t.height-a-(t.depth+a));return b.makeVList({positionType:"shift",positionData:n,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){return new S.MathNode("mpadded",[X(r.body,e)],["vcenter"])}});B({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(r,e,t){throw new M("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(r,e){for(var t=hr(r),a=[],n=e.havingStyle(e.style.text()),s=0;s<t.length;s++){var o=t[s];o==="~"&&(o="\\textasciitilde"),a.push(b.makeSymbol(o,"Typewriter-Regular",r.mode,n,["mord","texttt"]))}return b.makeSpan(["mord","text"].concat(n.sizingClasses(e)),b.tryCombineChars(a),n)},mathmlBuilder(r,e){var t=new S.TextNode(hr(r)),a=new S.MathNode("mtext",[t]);return a.setAttribute("mathvariant","monospace"),a}});var hr=r=>r.body.replace(/ /g,r.star?"␣":" "),L0=Tr,na=`[ \r
]`,Q1="\\\\[a-zA-Z@]+",_1="\\\\[^\uD800-\uDFFF]",e4="("+Q1+")"+na+"*",t4=`\\\\(
|[ \r ]+
?)[ \r ]*`,ut="[̀-ͯ]",r4=new RegExp(ut+"+$"),a4="("+na+"+)|"+(t4+"|")+"([!-\\[\\]-‧-豈-]"+(ut+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(ut+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+e4)+("|"+_1+")");class mr{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(a4,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new w0("EOF",new h0(this,t,t));var a=this.tokenRegex.exec(e);if(a===null||a.index!==t)throw new M("Unexpected character: '"+e[t]+"'",new w0(e[t],new h0(this,t,t+1)));var n=a[6]||a[3]||(a[2]?"\\ ":" ");if(this.catcodes[n]===14){var s=e.indexOf(`
`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new w0(n,new h0(this,t,this.tokenRegex.lastIndex))}}class n4{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new M("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,a){if(a===void 0&&(a=!1),a){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(e)&&(s[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}}var i4=Wr;u("\\noexpand",function(r){var e=r.popToken();return r.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});u("\\expandafter",function(r){var e=r.popToken();return r.expandOnce(!0),{tokens:[e],numArgs:0}});u("\\@firstoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[0],numArgs:0}});u("\\@secondoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[1],numArgs:0}});u("\\@ifnextchar",function(r){var e=r.consumeArgs(3);r.consumeSpaces();var t=r.future();return e[0].length===1&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});u("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");u("\\TextOrMath",function(r){var e=r.consumeArgs(2);return r.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var ur={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};u("\\char",function(r){var e=r.popToken(),t,a="";if(e.text==="'")t=8,e=r.popToken();else if(e.text==='"')t=16,e=r.popToken();else if(e.text==="`")if(e=r.popToken(),e.text[0]==="\\")a=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new M("\\char` missing argument");a=e.text.charCodeAt(0)}else t=10;if(t){if(a=ur[e.text],a==null||a>=t)throw new M("Invalid base-"+t+" digit "+e.text);for(var n;(n=ur[r.future().text])!=null&&n<t;)a*=t,a+=n,r.popToken()}return"\\@char{"+a+"}"});var Bt=(r,e,t)=>{var a=r.consumeArg().tokens;if(a.length!==1)throw new M("\\newcommand's first argument must be a macro name");var n=a[0].text,s=r.isDefined(n);if(s&&!e)throw new M("\\newcommand{"+n+"} attempting to redefine "+(n+"; use \\renewcommand"));if(!s&&!t)throw new M("\\renewcommand{"+n+"} when command "+n+" does not yet exist; use \\newcommand");var o=0;if(a=r.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var m="",c=r.expandNextToken();c.text!=="]"&&c.text!=="EOF";)m+=c.text,c=r.expandNextToken();if(!m.match(/^\s*[0-9]+\s*$/))throw new M("Invalid number of arguments: "+m);o=parseInt(m),a=r.consumeArg().tokens}return r.macros.set(n,{tokens:a,numArgs:o}),""};u("\\newcommand",r=>Bt(r,!1,!0));u("\\renewcommand",r=>Bt(r,!0,!1));u("\\providecommand",r=>Bt(r,!0,!0));u("\\message",r=>{var e=r.consumeArgs(1)[0];return console.log(e.reverse().map(t=>t.text).join("")),""});u("\\errmessage",r=>{var e=r.consumeArgs(1)[0];return console.error(e.reverse().map(t=>t.text).join("")),""});u("\\show",r=>{var e=r.popToken(),t=e.text;return console.log(e,r.macros.get(t),L0[t],$.math[t],$.text[t]),""});u("\\bgroup","{");u("\\egroup","}");u("~","\\nobreakspace");u("\\lq","`");u("\\rq","'");u("\\aa","\\r a");u("\\AA","\\r A");u("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");u("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");u("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");u("ℬ","\\mathscr{B}");u("ℰ","\\mathscr{E}");u("ℱ","\\mathscr{F}");u("ℋ","\\mathscr{H}");u("ℐ","\\mathscr{I}");u("ℒ","\\mathscr{L}");u("ℳ","\\mathscr{M}");u("ℛ","\\mathscr{R}");u("ℭ","\\mathfrak{C}");u("ℌ","\\mathfrak{H}");u("ℨ","\\mathfrak{Z}");u("\\Bbbk","\\Bbb{k}");u("·","\\cdotp");u("\\llap","\\mathllap{\\textrm{#1}}");u("\\rlap","\\mathrlap{\\textrm{#1}}");u("\\clap","\\mathclap{\\textrm{#1}}");u("\\mathstrut","\\vphantom{(}");u("\\underbar","\\underline{\\text{#1}}");u("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');u("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");u("\\ne","\\neq");u("≠","\\neq");u("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");u("∉","\\notin");u("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");u("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");u("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");u("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");u("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");u("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");u("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");u("⟂","\\perp");u("‼","\\mathclose{!\\mkern-0.8mu!}");u("∌","\\notni");u("⌜","\\ulcorner");u("⌝","\\urcorner");u("⌞","\\llcorner");u("⌟","\\lrcorner");u("©","\\copyright");u("®","\\textregistered");u("️","\\textregistered");u("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');u("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');u("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');u("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');u("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");u("⋮","\\vdots");u("\\varGamma","\\mathit{\\Gamma}");u("\\varDelta","\\mathit{\\Delta}");u("\\varTheta","\\mathit{\\Theta}");u("\\varLambda","\\mathit{\\Lambda}");u("\\varXi","\\mathit{\\Xi}");u("\\varPi","\\mathit{\\Pi}");u("\\varSigma","\\mathit{\\Sigma}");u("\\varUpsilon","\\mathit{\\Upsilon}");u("\\varPhi","\\mathit{\\Phi}");u("\\varPsi","\\mathit{\\Psi}");u("\\varOmega","\\mathit{\\Omega}");u("\\substack","\\begin{subarray}{c}#1\\end{subarray}");u("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");u("\\boxed","\\fbox{$\\displaystyle{#1}$}");u("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");u("\\implies","\\DOTSB\\;\\Longrightarrow\\;");u("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var cr={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};u("\\dots",function(r){var e="\\dotso",t=r.expandAfterFuture().text;return t in cr?e=cr[t]:(t.slice(0,4)==="\\not"||t in $.math&&E.contains(["bin","rel"],$.math[t].group))&&(e="\\dotsb"),e});var Nt={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};u("\\dotso",function(r){var e=r.future().text;return e in Nt?"\\ldots\\,":"\\ldots"});u("\\dotsc",function(r){var e=r.future().text;return e in Nt&&e!==","?"\\ldots\\,":"\\ldots"});u("\\cdots",function(r){var e=r.future().text;return e in Nt?"\\@cdots\\,":"\\@cdots"});u("\\dotsb","\\cdots");u("\\dotsm","\\cdots");u("\\dotsi","\\!\\cdots");u("\\dotsx","\\ldots\\,");u("\\DOTSI","\\relax");u("\\DOTSB","\\relax");u("\\DOTSX","\\relax");u("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");u("\\,","\\tmspace+{3mu}{.1667em}");u("\\thinspace","\\,");u("\\>","\\mskip{4mu}");u("\\:","\\tmspace+{4mu}{.2222em}");u("\\medspace","\\:");u("\\;","\\tmspace+{5mu}{.2777em}");u("\\thickspace","\\;");u("\\!","\\tmspace-{3mu}{.1667em}");u("\\negthinspace","\\!");u("\\negmedspace","\\tmspace-{4mu}{.2222em}");u("\\negthickspace","\\tmspace-{5mu}{.277em}");u("\\enspace","\\kern.5em ");u("\\enskip","\\hskip.5em\\relax");u("\\quad","\\hskip1em\\relax");u("\\qquad","\\hskip2em\\relax");u("\\tag","\\@ifstar\\tag@literal\\tag@paren");u("\\tag@paren","\\tag@literal{({#1})}");u("\\tag@literal",r=>{if(r.macros.get("\\df@tag"))throw new M("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});u("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");u("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");u("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");u("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");u("\\newline","\\\\\\relax");u("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ia=T(y0["Main-Regular"][84][1]-.7*y0["Main-Regular"][65][1]);u("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ia+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");u("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ia+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");u("\\hspace","\\@ifstar\\@hspacer\\@hspace");u("\\@hspace","\\hskip #1\\relax");u("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");u("\\ordinarycolon",":");u("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");u("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');u("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');u("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');u("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');u("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');u("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');u("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');u("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');u("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');u("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');u("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');u("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');u("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');u("∷","\\dblcolon");u("∹","\\eqcolon");u("≔","\\coloneqq");u("≕","\\eqqcolon");u("⩴","\\Coloneqq");u("\\ratio","\\vcentcolon");u("\\coloncolon","\\dblcolon");u("\\colonequals","\\coloneqq");u("\\coloncolonequals","\\Coloneqq");u("\\equalscolon","\\eqqcolon");u("\\equalscoloncolon","\\Eqqcolon");u("\\colonminus","\\coloneq");u("\\coloncolonminus","\\Coloneq");u("\\minuscolon","\\eqcolon");u("\\minuscoloncolon","\\Eqcolon");u("\\coloncolonapprox","\\Colonapprox");u("\\coloncolonsim","\\Colonsim");u("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");u("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");u("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");u("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");u("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");u("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");u("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");u("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");u("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");u("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");u("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");u("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");u("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");u("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");u("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");u("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");u("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");u("\\nleqq","\\html@mathml{\\@nleqq}{≰}");u("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");u("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");u("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");u("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");u("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");u("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");u("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");u("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");u("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");u("\\imath","\\html@mathml{\\@imath}{ı}");u("\\jmath","\\html@mathml{\\@jmath}{ȷ}");u("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");u("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");u("⟦","\\llbracket");u("⟧","\\rrbracket");u("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");u("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");u("⦃","\\lBrace");u("⦄","\\rBrace");u("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");u("⦵","\\minuso");u("\\darr","\\downarrow");u("\\dArr","\\Downarrow");u("\\Darr","\\Downarrow");u("\\lang","\\langle");u("\\rang","\\rangle");u("\\uarr","\\uparrow");u("\\uArr","\\Uparrow");u("\\Uarr","\\Uparrow");u("\\N","\\mathbb{N}");u("\\R","\\mathbb{R}");u("\\Z","\\mathbb{Z}");u("\\alef","\\aleph");u("\\alefsym","\\aleph");u("\\Alpha","\\mathrm{A}");u("\\Beta","\\mathrm{B}");u("\\bull","\\bullet");u("\\Chi","\\mathrm{X}");u("\\clubs","\\clubsuit");u("\\cnums","\\mathbb{C}");u("\\Complex","\\mathbb{C}");u("\\Dagger","\\ddagger");u("\\diamonds","\\diamondsuit");u("\\empty","\\emptyset");u("\\Epsilon","\\mathrm{E}");u("\\Eta","\\mathrm{H}");u("\\exist","\\exists");u("\\harr","\\leftrightarrow");u("\\hArr","\\Leftrightarrow");u("\\Harr","\\Leftrightarrow");u("\\hearts","\\heartsuit");u("\\image","\\Im");u("\\infin","\\infty");u("\\Iota","\\mathrm{I}");u("\\isin","\\in");u("\\Kappa","\\mathrm{K}");u("\\larr","\\leftarrow");u("\\lArr","\\Leftarrow");u("\\Larr","\\Leftarrow");u("\\lrarr","\\leftrightarrow");u("\\lrArr","\\Leftrightarrow");u("\\Lrarr","\\Leftrightarrow");u("\\Mu","\\mathrm{M}");u("\\natnums","\\mathbb{N}");u("\\Nu","\\mathrm{N}");u("\\Omicron","\\mathrm{O}");u("\\plusmn","\\pm");u("\\rarr","\\rightarrow");u("\\rArr","\\Rightarrow");u("\\Rarr","\\Rightarrow");u("\\real","\\Re");u("\\reals","\\mathbb{R}");u("\\Reals","\\mathbb{R}");u("\\Rho","\\mathrm{P}");u("\\sdot","\\cdot");u("\\sect","\\S");u("\\spades","\\spadesuit");u("\\sub","\\subset");u("\\sube","\\subseteq");u("\\supe","\\supseteq");u("\\Tau","\\mathrm{T}");u("\\thetasym","\\vartheta");u("\\weierp","\\wp");u("\\Zeta","\\mathrm{Z}");u("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");u("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");u("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");u("\\bra","\\mathinner{\\langle{#1}|}");u("\\ket","\\mathinner{|{#1}\\rangle}");u("\\braket","\\mathinner{\\langle{#1}\\rangle}");u("\\Bra","\\left\\langle#1\\right|");u("\\Ket","\\left|#1\\right\\rangle");var sa=r=>e=>{var t=e.consumeArg().tokens,a=e.consumeArg().tokens,n=e.consumeArg().tokens,s=e.consumeArg().tokens,o=e.macros.get("|"),m=e.macros.get("\\|");e.macros.beginGroup();var c=y=>x=>{r&&(x.macros.set("|",o),n.length&&x.macros.set("\\|",m));var w=y;if(!y&&n.length){var z=x.future();z.text==="|"&&(x.popToken(),w=!0)}return{tokens:w?n:a,numArgs:0}};e.macros.set("|",c(!1)),n.length&&e.macros.set("\\|",c(!0));var p=e.consumeArg().tokens,g=e.expandTokens([...s,...p,...t]);return e.macros.endGroup(),{tokens:g.reverse(),numArgs:0}};u("\\bra@ket",sa(!1));u("\\bra@set",sa(!0));u("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");u("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");u("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");u("\\angln","{\\angl n}");u("\\blue","\\textcolor{##6495ed}{#1}");u("\\orange","\\textcolor{##ffa500}{#1}");u("\\pink","\\textcolor{##ff00af}{#1}");u("\\red","\\textcolor{##df0030}{#1}");u("\\green","\\textcolor{##28ae7b}{#1}");u("\\gray","\\textcolor{gray}{#1}");u("\\purple","\\textcolor{##9d38bd}{#1}");u("\\blueA","\\textcolor{##ccfaff}{#1}");u("\\blueB","\\textcolor{##80f6ff}{#1}");u("\\blueC","\\textcolor{##63d9ea}{#1}");u("\\blueD","\\textcolor{##11accd}{#1}");u("\\blueE","\\textcolor{##0c7f99}{#1}");u("\\tealA","\\textcolor{##94fff5}{#1}");u("\\tealB","\\textcolor{##26edd5}{#1}");u("\\tealC","\\textcolor{##01d1c1}{#1}");u("\\tealD","\\textcolor{##01a995}{#1}");u("\\tealE","\\textcolor{##208170}{#1}");u("\\greenA","\\textcolor{##b6ffb0}{#1}");u("\\greenB","\\textcolor{##8af281}{#1}");u("\\greenC","\\textcolor{##74cf70}{#1}");u("\\greenD","\\textcolor{##1fab54}{#1}");u("\\greenE","\\textcolor{##0d923f}{#1}");u("\\goldA","\\textcolor{##ffd0a9}{#1}");u("\\goldB","\\textcolor{##ffbb71}{#1}");u("\\goldC","\\textcolor{##ff9c39}{#1}");u("\\goldD","\\textcolor{##e07d10}{#1}");u("\\goldE","\\textcolor{##a75a05}{#1}");u("\\redA","\\textcolor{##fca9a9}{#1}");u("\\redB","\\textcolor{##ff8482}{#1}");u("\\redC","\\textcolor{##f9685d}{#1}");u("\\redD","\\textcolor{##e84d39}{#1}");u("\\redE","\\textcolor{##bc2612}{#1}");u("\\maroonA","\\textcolor{##ffbde0}{#1}");u("\\maroonB","\\textcolor{##ff92c6}{#1}");u("\\maroonC","\\textcolor{##ed5fa6}{#1}");u("\\maroonD","\\textcolor{##ca337c}{#1}");u("\\maroonE","\\textcolor{##9e034e}{#1}");u("\\purpleA","\\textcolor{##ddd7ff}{#1}");u("\\purpleB","\\textcolor{##c6b9fc}{#1}");u("\\purpleC","\\textcolor{##aa87ff}{#1}");u("\\purpleD","\\textcolor{##7854ab}{#1}");u("\\purpleE","\\textcolor{##543b78}{#1}");u("\\mintA","\\textcolor{##f5f9e8}{#1}");u("\\mintB","\\textcolor{##edf2df}{#1}");u("\\mintC","\\textcolor{##e0e5cc}{#1}");u("\\grayA","\\textcolor{##f6f7f7}{#1}");u("\\grayB","\\textcolor{##f0f1f2}{#1}");u("\\grayC","\\textcolor{##e3e5e6}{#1}");u("\\grayD","\\textcolor{##d6d8da}{#1}");u("\\grayE","\\textcolor{##babec2}{#1}");u("\\grayF","\\textcolor{##888d93}{#1}");u("\\grayG","\\textcolor{##626569}{#1}");u("\\grayH","\\textcolor{##3b3e40}{#1}");u("\\grayI","\\textcolor{##21242c}{#1}");u("\\kaBlue","\\textcolor{##314453}{#1}");u("\\kaGreen","\\textcolor{##71B307}{#1}");var la={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class s4{constructor(e,t,a){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new n4(i4,t.macros),this.mode=a,this.stack=[]}feed(e){this.lexer=new mr(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,a,n;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;t=this.popToken(),{tokens:n,end:a}=this.consumeArg(["]"])}else({tokens:n,start:t,end:a}=this.consumeArg());return this.pushToken(new w0("EOF",a.loc)),this.pushTokens(n),t.range(a,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var t=[],a=e&&e.length>0;a||this.consumeSpaces();var n=this.future(),s,o=0,m=0;do{if(s=this.popToken(),t.push(s),s.text==="{")++o;else if(s.text==="}"){if(--o,o===-1)throw new M("Extra }",s)}else if(s.text==="EOF")throw new M("Unexpected end of input in a macro argument, expected '"+(e&&a?e[m]:"}")+"'",s);if(e&&a)if((o===0||o===1&&e[m]==="{")&&s.text===e[m]){if(++m,m===e.length){t.splice(-m,m);break}}else m=0}while(o!==0||a);return n.text==="{"&&t[t.length-1].text==="}"&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:n,end:s}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new M("The length of delimiters doesn't match the number of args!");for(var a=t[0],n=0;n<a.length;n++){var s=this.popToken();if(a[n]!==s.text)throw new M("Use of the macro doesn't match its definition",s)}}for(var o=[],m=0;m<e;m++)o.push(this.consumeArg(t&&t[m+1]).tokens);return o}expandOnce(e){var t=this.popToken(),a=t.text,n=t.noexpand?null:this._getExpansion(a);if(n==null||e&&n.unexpandable){if(e&&n==null&&a[0]==="\\"&&!this.isDefined(a))throw new M("Undefined control sequence: "+a);return this.pushToken(t),!1}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new M("Too many expansions: infinite loop or need to increase maxExpand setting");var s=n.tokens,o=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){s=s.slice();for(var m=s.length-1;m>=0;--m){var c=s[m];if(c.text==="#"){if(m===0)throw new M("Incomplete placeholder at end of macro body",c);if(c=s[--m],c.text==="#")s.splice(m+1,1);else if(/^[1-9]$/.test(c.text))s.splice(m,2,...o[+c.text-1]);else throw new M("Not a valid argument number",c)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new w0(e)]):void 0}expandTokens(e){var t=[],a=this.stack.length;for(this.pushTokens(e);this.stack.length>a;)if(this.expandOnce(!0)===!1){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(a=>a.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var a=this.lexer.catcodes[e];if(a!=null&&a!==13)return}var n=typeof t=="function"?t(this):t;if(typeof n=="string"){var s=0;if(n.indexOf("#")!==-1)for(var o=n.replace(/##/g,"");o.indexOf("#"+(s+1))!==-1;)++s;for(var m=new mr(n,this.settings),c=[],p=m.lex();p.text!=="EOF";)c.push(p),p=m.lex();c.reverse();var g={tokens:c,numArgs:s};return g}return n}isDefined(e){return this.macros.has(e)||L0.hasOwnProperty(e)||$.math.hasOwnProperty(e)||$.text.hasOwnProperty(e)||la.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t=="string"||typeof t=="function"||!t.unexpandable:L0.hasOwnProperty(e)&&!L0[e].primitive}}var dr=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,ze=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),rt={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},fr={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class he{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new s4(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new M("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new w0("}")),this.gullet.pushTokens(e);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,a}parseExpression(e,t){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var n=this.fetch();if(he.endOfExpression.indexOf(n.text)!==-1||t&&n.text===t||e&&L0[n.text]&&L0[n.text].infix)break;var s=this.parseAtom(t);if(s){if(s.type==="internal")continue}else break;a.push(s)}return this.mode==="text"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(e){for(var t=-1,a,n=0;n<e.length;n++)if(e[n].type==="infix"){if(t!==-1)throw new M("only one infix operator per group",e[n].token);t=n,a=e[n].replaceWith}if(t!==-1&&a){var s,o,m=e.slice(0,t),c=e.slice(t+1);m.length===1&&m[0].type==="ordgroup"?s=m[0]:s={type:"ordgroup",mode:this.mode,body:m},c.length===1&&c[0].type==="ordgroup"?o=c[0]:o={type:"ordgroup",mode:this.mode,body:c};var p;return a==="\\\\abovefrac"?p=this.callFunction(a,[s,e[t],o],[]):p=this.callFunction(a,[s,o],[]),[p]}else return e}handleSupSubscript(e){var t=this.fetch(),a=t.text;this.consume(),this.consumeSpaces();var n=this.parseGroup(e);if(!n)throw new M("Expected group after '"+a+"'",t);return n}formatUnsupportedCmd(e){for(var t=[],a=0;a<e.length;a++)t.push({type:"textord",mode:"text",text:e[a]});var n={type:"text",mode:this.mode,body:t},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]};return s}parseAtom(e){var t=this.parseGroup("atom",e);if(this.mode==="text")return t;for(var a,n;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(t&&t.type==="op"){var o=s.text==="\\limits";t.limits=o,t.alwaysHandleSupSub=!0}else if(t&&t.type==="operatorname")t.alwaysHandleSupSub&&(t.limits=s.text==="\\limits");else throw new M("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(a)throw new M("Double superscript",s);a=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(n)throw new M("Double subscript",s);n=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(a)throw new M("Double superscript",s);var m={type:"textord",mode:this.mode,text:"\\prime"},c=[m];for(this.consume();this.fetch().text==="'";)c.push(m),this.consume();this.fetch().text==="^"&&c.push(this.handleSupSubscript("superscript")),a={type:"ordgroup",mode:this.mode,body:c}}else if(ze[s.text]){var p=ze[s.text],g=dr.test(s.text);for(this.consume();;){var y=this.fetch().text;if(!ze[y]||dr.test(y)!==g)break;this.consume(),p+=ze[y]}var x=new he(p,this.settings).parse();g?n={type:"ordgroup",mode:"math",body:x}:a={type:"ordgroup",mode:"math",body:x}}else break}return a||n?{type:"supsub",mode:this.mode,base:t,sup:a,sub:n}:t}parseFunction(e,t){var a=this.fetch(),n=a.text,s=L0[n];if(!s)return null;if(this.consume(),t&&t!=="atom"&&!s.allowedInArgument)throw new M("Got function '"+n+"' with no arguments"+(t?" as "+t:""),a);if(this.mode==="text"&&!s.allowedInText)throw new M("Can't use function '"+n+"' in text mode",a);if(this.mode==="math"&&s.allowedInMath===!1)throw new M("Can't use function '"+n+"' in math mode",a);var{args:o,optArgs:m}=this.parseArguments(n,s);return this.callFunction(n,o,m,a,e)}callFunction(e,t,a,n,s){var o={funcName:e,parser:this,token:n,breakOnTokenText:s},m=L0[e];if(m&&m.handler)return m.handler(o,t,a);throw new M("No function handler for "+e)}parseArguments(e,t){var a=t.numArgs+t.numOptionalArgs;if(a===0)return{args:[],optArgs:[]};for(var n=[],s=[],o=0;o<a;o++){var m=t.argTypes&&t.argTypes[o],c=o<t.numOptionalArgs;(t.primitive&&m==null||t.type==="sqrt"&&o===1&&s[0]==null)&&(m="primitive");var p=this.parseGroupOfType("argument to '"+e+"'",m,c);if(c)s.push(p);else if(p!=null)n.push(p);else throw new M("Null argument, please report this as a bug")}return{args:n,optArgs:s}}parseGroupOfType(e,t,a){switch(t){case"color":return this.parseColorGroup(a);case"size":return this.parseSizeGroup(a);case"url":return this.parseUrlGroup(a);case"math":case"text":return this.parseArgumentGroup(a,t);case"hbox":{var n=this.parseArgumentGroup(a,"text");return n!=null?{type:"styling",mode:n.mode,body:[n],style:"text"}:null}case"raw":{var s=this.parseStringGroup("raw",a);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(a)throw new M("A primitive argument cannot be optional");var o=this.parseGroup(e);if(o==null)throw new M("Expected group as "+e,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(a);default:throw new M("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e,t){var a=this.gullet.scanArgument(t);if(a==null)return null;for(var n="",s;(s=this.fetch()).text!=="EOF";)n+=s.text,this.consume();return this.consume(),a.text=n,a}parseRegexGroup(e,t){for(var a=this.fetch(),n=a,s="",o;(o=this.fetch()).text!=="EOF"&&e.test(s+o.text);)n=o,s+=n.text,this.consume();if(s==="")throw new M("Invalid "+t+": '"+a.text+"'",a);return a.range(n,s)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(t==null)return null;var a=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!a)throw new M("Invalid color: '"+t.text+"'",t);var n=a[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(e){var t,a=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?t=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):t=this.parseStringGroup("size",e),!t)return null;!e&&t.text.length===0&&(t.text="0pt",a=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!n)throw new M("Invalid size: '"+t.text+"'",t);var s={number:+(n[1]+n[2]),unit:n[3]};if(!gr(s))throw new M("Invalid unit: '"+s.unit+"'",t);return{type:"size",mode:this.mode,value:s,isBlank:a}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),t==null)return null;var a=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:a}}parseArgumentGroup(e,t){var a=this.gullet.scanArgument(e);if(a==null)return null;var n=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:a.loc,body:s};return t&&this.switchMode(n),o}parseGroup(e,t){var a=this.fetch(),n=a.text,s;if(n==="{"||n==="\\begingroup"){this.consume();var o=n==="{"?"}":"\\endgroup";this.gullet.beginGroup();var m=this.parseExpression(!1,o),c=this.fetch();this.expect(o),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:h0.range(a,c),body:m,semisimple:n==="\\begingroup"||void 0}}else if(s=this.parseFunction(t,e)||this.parseSymbol(),s==null&&n[0]==="\\"&&!la.hasOwnProperty(n)){if(this.settings.throwOnError)throw new M("Undefined control sequence: "+n,a);s=this.formatUnsupportedCmd(n),this.consume()}return s}formLigatures(e){for(var t=e.length-1,a=0;a<t;++a){var n=e[a],s=n.text;s==="-"&&e[a+1].text==="-"&&(a+1<t&&e[a+2].text==="-"?(e.splice(a,3,{type:"textord",mode:"text",loc:h0.range(n,e[a+2]),text:"---"}),t-=2):(e.splice(a,2,{type:"textord",mode:"text",loc:h0.range(n,e[a+1]),text:"--"}),t-=1)),(s==="'"||s==="`")&&e[a+1].text===s&&(e.splice(a,2,{type:"textord",mode:"text",loc:h0.range(n,e[a+1]),text:s+s}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var a=t.slice(5),n=a.charAt(0)==="*";if(n&&(a=a.slice(1)),a.length<2||a.charAt(0)!==a.slice(-1))throw new M(`\\verb assertion failed --
please report what input caused this bug`);return a=a.slice(1,-1),{type:"verb",mode:"text",body:a,star:n}}fr.hasOwnProperty(t[0])&&!$[this.mode][t[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=fr[t[0]]+t.slice(1));var s=r4.exec(t);s&&(t=t.substring(0,s.index),t==="i"?t="ı":t==="j"&&(t="ȷ"));var o;if($[this.mode][t]){this.settings.strict&&this.mode==="math"&&st.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var m=$[this.mode][t].group,c=h0.range(e),p;if(ja.hasOwnProperty(m)){var g=m;p={type:"atom",mode:this.mode,family:g,loc:c,text:t}}else p={type:m,mode:this.mode,loc:c,text:t};o=p}else if(t.charCodeAt(0)>=128)this.settings.strict&&(vr(t.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'"'+(" ("+t.charCodeAt(0)+")"),e)),o={type:"textord",mode:"text",loc:h0.range(e),text:t};else return null;if(this.consume(),s)for(var y=0;y<s[0].length;y++){var x=s[0][y];if(!rt[x])throw new M("Unknown accent ' "+x+"'",e);var w=rt[x][this.mode]||rt[x].text;if(!w)throw new M("Accent "+x+" unsupported in "+this.mode+" mode",e);o={type:"accent",mode:this.mode,loc:h0.range(e),label:w,isStretchy:!1,isShifty:!0,base:o}}return o}}he.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Ct=function(e,t){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var a=new he(e,t);delete a.gullet.macros.current["\\df@tag"];var n=a.parse();if(delete a.gullet.macros.current["\\current@color"],delete a.gullet.macros.current["\\color"],a.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new M("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:a.subparse([new w0("\\df@tag")])}]}return n},oa=function(e,t,a){t.textContent="";var n=qt(e,a).toNode();t.appendChild(n)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),oa=function(){throw new M("KaTeX doesn't work in quirks mode.")});var l4=function(e,t){var a=qt(e,t).toMarkup();return a},o4=function(e,t){var a=new ct(t);return Ct(e,a)},ha=function(e,t,a){if(a.throwOnError||!(e instanceof M))throw e;var n=b.makeSpan(["katex-error"],[new f0(t)]);return n.setAttribute("title",e.toString()),n.setAttribute("style","color:"+a.errorColor),n},qt=function(e,t){var a=new ct(t);try{var n=Ct(e,a);return g1(n,e,a)}catch(s){return ha(s,e,a)}},h4=function(e,t){var a=new ct(t);try{var n=Ct(e,a);return b1(n,e,a)}catch(s){return ha(s,e,a)}},m4={version:"0.16.9",render:oa,renderToString:l4,ParseError:M,SETTINGS_SCHEMA:Te,__parse:o4,__renderToDomTree:qt,__renderToHTMLTree:h4,__setFontMetrics:Ga,__defineSymbol:i,__defineFunction:B,__defineMacro:u,__domTree:{Span:ue,Anchor:pt,SymbolNode:f0,SvgNode:N0,PathNode:P0,LineNode:it}};export{m4 as default};
import{c as C,C as yt,D as ft,s as dt,g as pt,b as gt,a as mt,E as xt,h as W,i as kt}from"./slidev/Mermaid-sWhOKcCj.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-99ae2c94-BzrMl0LX.js";import{d as Q}from"./arc-5aa99581-BSv9xTON.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./path-39bad7e2-CbwjOpE9.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var $;return $=u.pop()||x.lex()||J,typeof $!="number"&&($ instanceof Array&&(u=$,$=u.pop()),$=r.symbols_[$]||$),$}for(var _,E,b,O,I={},N,T,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var q="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?q="Parse error on line "+(R+1)+`:
`+x.showPosition()+`
Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":q="Parse error on line "+(R+1)+": Unexpected "+(_==J?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(q,{text:x.match,token:this.terminals_[_]||_,line:x.yylineno,loc:Y,expected:B})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(b[0]){case 1:a.push(_),d.push(x.yytext),o.push(x.yylloc),a.push(b[1]),_=null,Z=x.yyleng,k=x.yytext,R=x.yylineno,Y=x.yylloc;break;case 2:if(T=this.productions_[b[1]][1],I.$=d[d.length-T],I._$={first_line:o[o.length-(T||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(T||1)].first_column,last_column:o[o.length-1].last_column},ht&&(I._$.range=[o[o.length-(T||1)].range[0],o[o.length-1].range[1]]),O=this.performAction.apply(I,[k,Z,R,S.yy,b[1],d,o].concat(ct)),typeof O<"u")return O;T&&(a=a.slice(0,-1*T*2),d=d.slice(0,-1*T),o=o.slice(0,-1*T)),a.push(this.productions_[b[1]][0]),d.push(I.$),o.push(I._$),K=w[a[a.length-2]][a[a.length-1]],a.push(K);break;case 3:return!0}}return!0}},m=function(){var p={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(s,r){return this.yy=r||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var r=s.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var r=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),r=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
`+r+"^"},test_match:function(s,r){var a,u,d;if(this.options.backtrack_lexer&&(d={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(d.yylloc.range=this.yylloc.range.slice(0))),u=s[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],a=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var o in d)this[o]=d[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,r,a,u;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),o=0;o<d.length;o++)if(a=this._input.match(this.rules[d[o]]),a&&(!r||a[0].length>r[0].length)){if(r=a,u=o,this.options.backtrack_lexer){if(s=this.test_match(a,d[o]),s!==!1)return s;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(s=this.test_match(r,d[u]),s!==!1?s:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,u,d){switch(u){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return p}();y.lexer=m;function g(){this.yy={}}return g.prototype=y,y.Parser=g,new g}();G.parser=G;const wt=G;let A="";const H=[],V=[],F=[],Tt=function(){H.length=0,V.length=0,A="",F.length=0,xt()},$t=function(t){A=t,H.push(t)},Mt=function(){return H},St=function(){let t=D();const e=100;let i=0;for(;!t&&i<e;)t=D(),i++;return V.push(...F),V},Et=function(){const t=[];return V.forEach(i=>{i.people&&t.push(...i.people)}),[...new Set(t)].sort()},Pt=function(t,e){const i=e.substr(1).split(":");let l=0,n=[];i.length===1?(l=Number(i[0]),n=[]):(l=Number(i[0]),n=i[1].split(","));const h=n.map(f=>f.trim()),c={section:A,type:A,people:h,task:t,score:l};F.push(c)},Ct=function(t){const e={section:A,type:A,description:t,task:t,classes:[]};V.push(e)},D=function(){const t=function(i){return F[i].processed};let e=!0;for(const[i,l]of F.entries())t(i),e=e&&l.processed;return e},It=function(){return Et()},tt={getConfig:()=>C().journey,clear:Tt,setDiagramTitle:yt,getDiagramTitle:ft,setAccTitle:dt,getAccTitle:pt,setAccDescription:gt,getAccDescription:mt,addSection:$t,getSections:Mt,getTasks:St,addTask:Pt,addTaskOrg:Ct,getActors:It},At=t=>`.label {
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
color: ${t.textColor};
}
.mouth {
stroke: #666;
}
line {
stroke: ${t.textColor}
}
.legend {
fill: ${t.textColor};
}
.label text {
fill: #333;
}
.label {
color: ${t.textColor}
}
.face {
${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};
stroke: #999;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${t.mainBkg};
stroke: ${t.nodeBorder};
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${t.arrowheadColor};
}
.edgePath .path {
stroke: ${t.lineColor};
stroke-width: 1.5px;
}
.flowchart-link {
stroke: ${t.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${t.edgeLabelBackground};
rect {
opacity: 0.5;
}
text-align: center;
}
.cluster rect {
}
.cluster text {
fill: ${t.titleColor};
}
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
font-size: 12px;
background: ${t.tertiaryColor};
border: 1px solid ${t.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.task-type-0, .section-type-0 {
${t.fillType0?`fill: ${t.fillType0}`:""};
}
.task-type-1, .section-type-1 {
${t.fillType0?`fill: ${t.fillType1}`:""};
}
.task-type-2, .section-type-2 {
${t.fillType0?`fill: ${t.fillType2}`:""};
}
.task-type-3, .section-type-3 {
${t.fillType0?`fill: ${t.fillType3}`:""};
}
.task-type-4, .section-type-4 {
${t.fillType0?`fill: ${t.fillType4}`:""};
}
.task-type-5, .section-type-5 {
${t.fillType0?`fill: ${t.fillType5}`:""};
}
.task-type-6, .section-type-6 {
${t.fillType0?`fill: ${t.fillType6}`:""};
}
.task-type-7, .section-type-7 {
${t.fillType0?`fill: ${t.fillType7}`:""};
}
.actor-0 {
${t.actor0?`fill: ${t.actor0}`:""};
}
.actor-1 {
${t.actor1?`fill: ${t.actor1}`:""};
}
.actor-2 {
${t.actor2?`fill: ${t.actor2}`:""};
}
.actor-3 {
${t.actor3?`fill: ${t.actor3}`:""};
}
.actor-4 {
${t.actor4?`fill: ${t.actor4}`:""};
}
.actor-5 {
${t.actor5?`fill: ${t.actor5}`:""};
}
`,Vt=At,U=function(t,e){return _t(t,e)},Ft=function(t,e){const l=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=t.append("g");n.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(y){const m=Q().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function c(y){const m=Q().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function f(y){y.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return e.score>3?h(n):e.score<3?c(n):f(n),l},rt=function(t,e){const i=t.append("circle");return i.attr("cx",e.cx),i.attr("cy",e.cy),i.attr("class","actor-"+e.pos),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("r",e.r),i.class!==void 0&&i.attr("class",i.class),e.title!==void 0&&i.append("title").text(e.title),i},at=function(t,e){return bt(t,e)},Lt=function(t,e){function i(n,h,c,f,y){return n+","+h+" "+(n+c)+","+h+" "+(n+c)+","+(h+f-y)+" "+(n+c-y*1.2)+","+(h+f)+" "+n+","+(h+f)}const l=t.append("polygon");l.attr("points",i(e.x,e.y,50,20,7)),l.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,at(t,e)},Rt=function(t,e,i){const l=t.append("g"),n=it();n.x=e.x,n.y=e.y,n.fill=e.fill,n.width=i.width*e.taskCount+i.diagramMarginX*(e.taskCount-1),n.height=i.height,n.class="journey-section section-type-"+e.num,n.rx=3,n.ry=3,U(l,n),ot(i)(e.text,l,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+e.num},i,e.colour)};let et=-1;const Nt=function(t,e,i){const l=e.x+i.width/2,n=t.append("g");et++;const h=300+5*30;n.append("line").attr("id","task"+et).attr("x1",l).attr("y1",e.y).attr("x2",l).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Ft(n,{cx:l,cy:300+(5-e.score)*30,score:e.score});const c=it();c.x=e.x,c.y=e.y,c.fill=e.fill,c.width=i.width,c.height=i.height,c.class="task task-type-"+e.num,c.rx=3,c.ry=3,U(n,c);let f=e.x+14;e.people.forEach(y=>{const m=e.actors[y].color,g={cx:f,cy:e.y,r:7,fill:m,stroke:"#000",title:y,pos:e.actors[y].position};rt(n,g),f+=10}),ot(i)(e.task,n,c.x,c.y,c.width,c.height,{class:"task"},i,e.colour)},Bt=function(t,e){vt(t,e)},ot=function(){function t(n,h,c,f,y,m,g,p){const s=h.append("text").attr("x",c+y/2).attr("y",f+m/2+5).style("font-color",p).style("text-anchor","middle").text(n);l(s,g)}function e(n,h,c,f,y,m,g,p,s){const{taskFontSize:r,taskFontFamily:a}=p,u=n.split(/<br\s*\/?>/gi);for(let d=0;d<u.length;d++){const o=d*r-r*(u.length-1)/2,w=h.append("text").attr("x",c+y/2).attr("y",f).attr("fill",s).style("text-anchor","middle").style("font-size",r).style("font-family",a);w.append("tspan").attr("x",c+y/2).attr("dy",o).text(u[d]),w.attr("y",f+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),l(w,g)}}function i(n,h,c,f,y,m,g,p){const s=h.append("switch"),a=s.append("foreignObject").attr("x",c).attr("y",f).attr("width",y).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");a.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),e(n,s,c,f,y,m,g,p),l(a,g)}function l(n,h){for(const c in h)c in h&&n.attr(c,h[c])}return function(n){return n.textPlacement==="fo"?i:n.textPlacement==="old"?t:e}}(),jt=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},L={drawRect:U,drawCircle:rt,drawSection:Rt,drawText:at,drawLabel:Lt,drawTask:Nt,drawBackgroundRect:Bt,initGraphics:jt},zt=function(t){Object.keys(t).forEach(function(i){j[i]=t[i]})},M={};function Yt(t){const e=C().journey;let i=60;Object.keys(M).forEach(l=>{const n=M[l].color,h={cx:20,cy:i,r:7,fill:n,stroke:"#000",pos:M[l].position};L.drawCircle(t,h);const c={x:40,y:i+7,fill:"#666",text:l,textMargin:e.boxTextMargin|5};L.drawText(t,c),i+=20})}const j=C().journey,P=j.leftMargin,Ot=function(t,e,i,l){const n=C().journey,h=C().securityLevel;let c;h==="sandbox"&&(c=W("#i"+e));const f=h==="sandbox"?W(c.nodes()[0].contentDocument.body):W("body");v.init();const y=f.select("#"+e);L.initGraphics(y);const m=l.db.getTasks(),g=l.db.getDiagramTitle(),p=l.db.getActors();for(const o in M)delete M[o];let s=0;p.forEach(o=>{M[o]={color:n.actorColours[s%n.actorColours.length],position:s},s++}),Yt(y),v.insert(0,0,P,Object.keys(M).length*50),qt(y,m,0);const r=v.getBounds();g&&y.append("text").text(g).attr("x",P).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const a=r.stopy-r.starty+2*n.diagramMarginY,u=P+r.stopx+2*n.diagramMarginX;kt(y,a,u,n.useMaxWidth),y.append("line").attr("x1",P).attr("y1",n.height*4).attr("x2",u-P-4).attr("y2",n.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const d=g?70:0;y.attr("viewBox",`${r.startx} -25 ${u} ${a+d}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",a+d+25)},v={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,i,l){t[e]===void 0?t[e]=i:t[e]=l(i,t[e])},updateBounds:function(t,e,i,l){const n=C().journey,h=this;let c=0;function f(y){return function(g){c++;const p=h.sequenceItems.length-c+1;h.updateVal(g,"starty",e-p*n.boxMargin,Math.min),h.updateVal(g,"stopy",l+p*n.boxMargin,Math.max),h.updateVal(v.data,"startx",t-p*n.boxMargin,Math.min),h.updateVal(v.data,"stopx",i+p*n.boxMargin,Math.max),y!=="activation"&&(h.updateVal(g,"startx",t-p*n.boxMargin,Math.min),h.updateVal(g,"stopx",i+p*n.boxMargin,Math.max),h.updateVal(v.data,"starty",e-p*n.boxMargin,Math.min),h.updateVal(v.data,"stopy",l+p*n.boxMargin,Math.max))}}this.sequenceItems.forEach(f())},insert:function(t,e,i,l){const n=Math.min(t,i),h=Math.max(t,i),c=Math.min(e,l),f=Math.max(e,l);this.updateVal(v.data,"startx",n,Math.min),this.updateVal(v.data,"starty",c,Math.min),this.updateVal(v.data,"stopx",h,Math.max),this.updateVal(v.data,"stopy",f,Math.max),this.updateBounds(n,c,h,f)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},X=j.sectionFills,st=j.sectionColours,qt=function(t,e,i){const l=C().journey;let n="";const h=l.height*2+l.diagramMarginY,c=i+h;let f=0,y="#CCC",m="black",g=0;for(const[p,s]of e.entries()){if(n!==s.section){y=X[f%X.length],g=f%X.length,m=st[f%st.length];let a=0;const u=s.section;for(let o=p;o<e.length&&e[o].section==u;o++)a=a+1;const d={x:p*l.taskMargin+p*l.width+P,y:50,text:s.section,fill:y,num:g,colour:m,taskCount:a};L.drawSection(t,d,l),n=s.section,f++}const r=s.people.reduce((a,u)=>(M[u]&&(a[u]=M[u]),a),{});s.x=p*l.taskMargin+p*l.width+P,s.y=c,s.width=l.diagramMarginX,s.height=l.diagramMarginY,s.colour=m,s.fill=y,s.num=g,s.actors=r,L.drawTask(t,s,l),v.insert(s.x,s.y,s.x+s.width+l.taskMargin,300+5*30)}},nt={setConf:zt,draw:Ot},Qt={parser:wt,db:tt,renderer:nt,styles:Vt,init:t=>{nt.setConf(t.journey),tt.clear()}};export{Qt as diagram};
function t(e,a){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(a).domain(e);break}return this}export{t as i};
import{l as Y,U as D,i as M}from"./slidev/Mermaid-sWhOKcCj.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var O=function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",v=0,L=0,N=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},b,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>N&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`:
`+o.showPosition()+`
Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(v+1)+": Unexpected "+(l==T?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(h[0]){case 1:n.push(l),r.push(o.yytext),i.push(o.yylloc),n.push(h[1]),l=null,L=o.yyleng,P=o.yytext,v=o.yylineno,I=o.yylloc;break;case 2:if(c=this.productions_[h[1]][1],_.$=r[r.length-c],_._$={first_line:i[i.length-(c||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(c||1)].first_column,last_column:i[i.length-1].last_column},z&&(_._$.range=[i[i.length-(c||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(_,[P,L,v,p.yy,h[1],r,i].concat(R)),typeof w<"u")return w;c&&(n=n.slice(0,-1*c*2),r=r.slice(0,-1*c),i=i.slice(0,-1*c)),n.push(this.productions_[h[1]][0]),r.push(_.$),i.push(_._$),F=d[n[n.length-2]][n[n.length-1]],n.push(F);break;case 3:return!0}}return!0}},k=function(){var u={EOF:1,parseError:function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
`+e+"^"},test_match:function(t,e){var n,s,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),s=t[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in r)this[i]=r[i];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,n,s;this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),i=0;i<r.length;i++)if(n=this._input.match(this.rules[r[i]]),n&&(!e||n[0].length>e[0].length)){if(e=n,s=i,this.options.backtrack_lexer){if(t=this.test_match(n,r[i]),t!==!1)return t;if(this._backtrack){e=!1;continue}else return!1}else if(!this.options.flex)break}return e?(t=this.test_match(e,r[s]),t!==!1?t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,n,s,r){switch(s){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return u}();m.lexer=k;function x(){this.yy={}}return x.prototype=m,m.Parser=x,new x}();O.parser=O;const B=O,j={info:!1};let $=j.info;const V=a=>{$=a},X=()=>$,q=()=>{$=j.info},C={clear:q,setInfo:V,getInfo:X},G=(a,f,m)=>{Y.debug(`rendering info diagram
`+a);const k=D(f);M(k,100,400,!0),k.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${m}`)},H={draw:G},tt={parser:B,db:C,renderer:H};export{tt as diagram};
import{i as N,G as A}from"./graph-af3d5df6-B9Rrt_D8.js";import{m as $,l as H}from"./layout-6685625a-TirZJcn7.js";import{c as V}from"./clone-d2e37f8c-kF1Uud7q.js";import{i as U,u as W,s as _,a as q,b as z,g as D,p as O,c as K,d as Q,e as Y,f as Z,h as J,j as p}from"./edges-1e1ebc73-BF9aEHVZ.js";import{l as s,c as T,o as S,h as L}from"./slidev/Mermaid-sWhOKcCj.js";import{a as I}from"./createText-f6615236-DY9JQ1lr.js";function m(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:tt(e),edges:et(e)};return N(e.graph())||(t.value=V(e.graph())),t}function tt(e){return $(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return N(n)||(i.value=n),N(r)||(i.parent=r),i})}function et(e){return $(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return N(t.name)||(r.name=t.name),N(n)||(r.value=n),r})}let l={},g={},R={};const nt=()=>{g={},R={},l={}},B=(e,t)=>(s.trace("In isDescendant",t," ",e," = ",g[t].includes(e)),!!g[t].includes(e)),it=(e,t)=>(s.info("Descendants of ",t," is ",g[t]),s.info("Edge is ",e),e.v===t||e.w===t?!1:g[t]?g[t].includes(e.v)||B(e.v,t)||B(e.w,t)||g[t].includes(e.w):(s.debug("Tilt, ",t,",not in descendants"),!1)),P=(e,t,n,r)=>{s.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const i=t.children(e)||[];e!==r&&i.push(e),s.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(a=>{if(t.children(a).length>0)P(a,t,n,r);else{const d=t.node(a);s.info("cp ",a," to ",r," with parent ",e),n.setNode(a,d),r!==t.parent(a)&&(s.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(s.debug("Setting parent",a,e),n.setParent(a,e)):(s.info("In copy ",e,"root",r,"data",t.node(e),r),s.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));const u=t.edges(a);s.debug("Copying Edges",u),u.forEach(f=>{s.info("Edge",f);const h=t.edge(f.v,f.w,f.name);s.info("Edge data",h,r);try{it(f,r)?(s.info("Copying as ",f.v,f.w,h,f.name),n.setEdge(f.v,f.w,h,f.name),s.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):s.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",r," clusterId:",e)}catch(w){s.error(w)}})}s.debug("Removing node",a),t.removeNode(a)})},k=(e,t)=>{const n=t.children(e);let r=[...n];for(const i of n)R[i]=e,r=[...r,...k(i,t)];return r},C=(e,t)=>{s.trace("Searching",e);const n=t.children(e);if(s.trace("Searching children of id ",e,n),n.length<1)return s.trace("This is a valid node",e),e;for(const r of n){const i=C(r,t);if(i)return s.trace("Found replacement for",e," => ",i),i}},X=e=>!l[e]||!l[e].externalConnections?e:l[e]?l[e].id:e,st=(e,t)=>{if(!e||t>10){s.debug("Opting out, no graph ");return}else s.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(s.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),g[n]=k(n,e),l[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),i=e.edges();r.length>0?(s.debug("Cluster identified",n,g),i.forEach(a=>{if(a.v!==n&&a.w!==n){const d=B(a.v,n),u=B(a.w,n);d^u&&(s.warn("Edge: ",a," leaves cluster ",n),s.warn("Descendants of XXX ",n,": ",g[n]),l[n].externalConnections=!0)}})):s.debug("Not a cluster ",n,g)});for(let n of Object.keys(l)){const r=l[n].id,i=e.parent(r);i!==n&&l[i]&&!l[i].externalConnections&&(l[n].id=i)}e.edges().forEach(function(n){const r=e.edge(n);s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(s.warn("Fix XXX",l,"ids:",n.v,n.w,"Translating: ",l[n.v]," --- ",l[n.w]),l[n.v]&&l[n.w]&&l[n.v]===l[n.w]){s.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name);const d=n.w+"---"+n.v;e.setNode(d,{domId:d,id:d,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const u=structuredClone(r),f=structuredClone(r);u.label="",u.arrowTypeEnd="none",f.label="",u.fromCluster=n.v,f.toCluster=n.v,e.setEdge(i,d,u,n.name+"-cyclic-special"),e.setEdge(d,a,f,n.name+"-cyclic-special")}else if(l[n.v]||l[n.w]){if(s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){const d=e.parent(i);l[d].externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){const d=e.parent(a);l[d].externalConnections=!0,r.toCluster=n.w}s.warn("Fix Replacing with XXX",i,a,n.name),e.setEdge(i,a,r,n.name)}}),s.warn("Adjusted Graph",m(e)),F(e,0),s.trace(l)},F=(e,t)=>{if(s.warn("extractor - ",t,m(e),e.children("D")),t>10){s.error("Bailing out");return}let n=e.nodes(),r=!1;for(const i of n){const a=e.children(i);r=r||a.length>0}if(!r){s.debug("Done, no node has children",e.nodes());return}s.debug("Nodes = ",n,t);for(const i of n)if(s.debug("Extracting node",i,l,l[i]&&!l[i].externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!l[i])s.debug("Not a cluster",i,t);else if(!l[i].externalConnections&&e.children(i)&&e.children(i).length>0){s.warn("Cluster without external connections, without a parent and with children",i,t);let d=e.graph().rankdir==="TB"?"LR":"TB";l[i]&&l[i].clusterData&&l[i].clusterData.dir&&(d=l[i].clusterData.dir,s.warn("Fixing dir",l[i].clusterData.dir,d));const u=new A({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});s.warn("Old graph before copy",m(e)),P(i,e,u,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:l[i].clusterData,labelText:l[i].labelText,graph:u}),s.warn("New graph after copy node: (",i,")",m(u)),s.debug("Old graph after copy",m(e))}else s.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!l[i].externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),s.debug(l);n=e.nodes(),s.warn("New list of nodes",n);for(const i of n){const a=e.node(i);s.warn(" Now next level",i,a),a.clusterNode&&F(a.graph,t+1)}},G=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const i=e.children(r),a=G(e,i);n=[...n,...a]}),n},rt=e=>G(e,e.children()),at=(e,t)=>{s.info("Creating subgraph rect for ",t.id,t);const n=T(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),i=r.insert("rect",":first-child"),a=S(n.flowchart.htmlLabels),d=r.insert("g").attr("class","cluster-label"),u=t.labelType==="markdown"?I(d,t.labelText,{style:t.labelStyle,useHtmlLabels:a}):d.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}const h=0*t.padding,w=h/2,x=t.width<=f.width+h?f.width+h:t.width;t.width<=f.width+h?t.diff=(f.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,s.trace("Data ",t,JSON.stringify(t)),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-x/2).attr("y",t.y-t.height/2-w).attr("width",x).attr("height",t.height+h);const{subGraphTitleTopMargin:v}=D(n);a?d.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+v})`):d.attr("transform",`translate(${t.x}, ${t.y-t.height/2+v})`);const y=i.node().getBBox();return t.width=y.width,t.height=y.height,t.intersect=function(c){return p(t,c)},r},ct=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(u){return p(t,u)},n},ot=(e,t)=>{const n=T(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),i=r.insert("rect",":first-child"),a=r.insert("g").attr("class","cluster-label"),d=r.append("rect"),u=a.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}f=u.getBBox();const h=0*t.padding,w=h/2,x=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(f.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,i.attr("class","outer").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w).attr("width",x+h).attr("height",t.height+h),d.attr("class","inner").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w+f.height-1).attr("width",x+h).attr("height",t.height+h-f.height-3);const{subGraphTitleTopMargin:v}=D(n);a.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2-t.padding/3+(S(n.flowchart.htmlLabels)?5:3)+v})`);const y=i.node().getBBox();return t.height=y.height,t.intersect=function(c){return p(t,c)},r},lt=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+i).attr("height",t.height+i);const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.diff=-t.padding/2,t.intersect=function(u){return p(t,u)},n},ft={rect:at,roundedWithTitle:ot,noteGroup:ct,divider:lt};let j={};const dt=(e,t)=>{s.trace("Inserting cluster");const n=t.shape||"rect";j[t.id]=ft[n](e,t)},ut=()=>{j={}},M=async(e,t,n,r,i,a)=>{s.info("Graph in recursive render: XXX",m(t),i);const d=t.graph().rankdir;s.trace("Dir in recursive render - dir:",d);const u=e.insert("g").attr("class","root");t.nodes()?s.info("Recursive render XXX",t.nodes()):s.info("No nodes found for",t),t.edges().length>0&&s.trace("Recursive edges",t.edge(t.edges()[0]));const f=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),w=u.insert("g").attr("class","edgeLabels"),x=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(c){const o=t.node(c);if(i!==void 0){const b=JSON.parse(JSON.stringify(i.clusterData));s.info("Setting data for cluster XXX (",c,") ",b,i),t.setNode(i.id,b),t.parent(c)||(s.trace("Setting parent",c,i.id),t.setParent(c,i.id,b))}if(s.info("(Insert) Node XXX"+c+": "+JSON.stringify(t.node(c))),o&&o.clusterNode){s.info("Cluster identified",c,o.width,t.node(c));const b=await M(x,o.graph,n,r,t.node(c),a),E=b.elem;W(o,E),o.diff=b.diff||0,s.info("Node bounds (abc123)",c,o,o.width,o.x,o.y),_(E,o),s.warn("Recursive render complete ",E,o)}else t.children(c).length>0?(s.info("Cluster - the non recursive path XXX",c,o.id,o,t),s.info(C(o.id,t)),l[o.id]={id:C(o.id,t),node:o}):(s.info("Node - the non recursive path",c,o.id,o),await q(x,t.node(c),d))})),t.edges().forEach(function(c){const o=t.edge(c.v,c.w,c.name);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c)),s.info("Edge "+c.v+" -> "+c.w+": ",c," ",JSON.stringify(t.edge(c))),s.info("Fix",l,"ids:",c.v,c.w,"Translating: ",l[c.v],l[c.w]),z(w,o)}),t.edges().forEach(function(c){s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c))}),s.info("#############################################"),s.info("### Layout ###"),s.info("#############################################"),s.info(t),H(t),s.info("Graph after layout:",m(t));let v=0;const{subGraphTitleTotalMargin:y}=D(a);return rt(t).forEach(function(c){const o=t.node(c);s.info("Position "+c+": "+JSON.stringify(t.node(c))),s.info("Position "+c+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?(o.y+=y,O(o)):t.children(c).length>0?(o.height+=y,dt(f,o),l[o.id].node=o):(o.y+=y/2,O(o))}),t.edges().forEach(function(c){const o=t.edge(c);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(o),o),o.points.forEach(E=>E.y+=y/2);const b=K(h,c,o,l,n,t,r);Q(o,b)}),t.nodes().forEach(function(c){const o=t.node(c);s.info(c,o.type,o.diff),o.type==="group"&&(v=o.diff)}),{elem:u,diff:v}},bt=async(e,t,n,r,i)=>{U(e,n,r,i),Y(),Z(),ut(),nt(),s.warn("Graph at first:",JSON.stringify(m(t))),st(t),s.warn("Graph after:",JSON.stringify(m(t)));const a=T();await M(e,t,r,i,void 0,a)};export{bt as r};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["assets/slidev/1--1SccWCr.js","assets/modules/vue-O-XuQLLR.js","assets/slidev/context-8sk6R7gr.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/2-C5CaHS53.js","assets/slidev/3-Gpy7S1Gl.js","assets/slidev/Mermaid-sWhOKcCj.js","assets/modules/file-saver-EUMWMpoS.js","assets/3-DBxdtZqV.css","assets/slidev/4-l7EwEV7U.js","assets/slidev/5-D6NuYssw.js","assets/slidev/print-jyzcjppc.js","assets/slidev/bottom-WehDtssn.js","assets/bottom-DbIWt59F.css","assets/slidev/PrintStyle-DYFVhmXJ.js","assets/print-Nssgrd1X.css","assets/slidev/print-DuifTBxY.js","assets/slidev/NoteDisplay-BdmlYjVU.js","assets/NoteDisplay-C6AkVv8T.css","assets/slidev/presenter-DqwarjmO.js","assets/modules/unplugin-icons-DhLcIxB1.js","assets/slidev/SlidesShow-Dk9xuOJo.js","assets/slidev/DrawingPreview-lUDfsxKN.js","assets/SlidesShow-DZAAkYiM.css","assets/slidev/DrawingControls-BxiOgCac.js","assets/DrawingControls-C5T1oZL5.css","assets/presenter-knhRrLBR.css","assets/slidev/play-C0mExgsc.js","assets/play-CoA43pdi.css"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{t as P,y,n as Ce,z as _s,A as lt,B as bs,C as ie,D as oe,E as ws,G as xs,H as Ms,I as jt,J as E,K as Ss,L as Ts,o as Dt,b as As,M as Wt,N as He,O as Ps,P as Os,Q as Cs,R as Es,S as Ls,T as zt,U as Is,d as $s,r as Ns,c as Rs,V as Fs,W as Hs,X as js,u as Ds}from"./modules/vue-O-XuQLLR.js";import{T as Ws}from"./modules/shiki-CBnMlxcT.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function s(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=s(r);fetch(r.href,i)}})();function me(t,e,s){return Math.min(s,Math.max(e,t))}function zs(...t){return Vs(t).reduce((e,s)=>e+s,0)}function qs(t){return t=t??[],Array.isArray(t)?t:[t]}function Vs(t){return qs(t).flat(1)}function Eo(...t){let e,s,n;t.length===1?(e=0,n=1,[s]=t):[e,s,n=1]=t;const r=[];let i=e;for(;i<s;)r.push(i),i+=n||1;return r}function Bs(t){return t!=null}function Us(t,e){return Object.fromEntries(Object.entries(t).map(([s,n])=>e(s,n)).filter(Bs))}function Lo(t){return Object.keys(t).forEach(e=>t[e]===void 0?delete t[e]:{}),t}const T={theme:"default",title:"Nix for genetics",titleTemplate:"%s - Slidev",addons:[],remoteAssets:!1,monaco:!0,monacoTypesSource:"local",monacoTypesAdditionalPackages:[],download:!1,export:{},info:!1,highlighter:"shiki",twoslash:!0,lineNumbers:!1,colorSchema:"auto",routerMode:"history",aspectRatio:1.7777777777777777,canvasWidth:980,exportFilename:"",selectable:!1,themeConfig:{},fonts:{sans:['"Avenir Next"','"Nunito Sans"',"ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:['"Fira Code"',"ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"],webfonts:["Avenir Next","Nunito Sans","Fira Code"],provider:"google",local:["Avenir Next"],italic:!1,weights:["200","400","600"]},favicon:"https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png",drawings:{enabled:!0,persist:!1,presenterOnly:!1,syncAll:!0},plantUmlServer:"https://www.plantuml.com/plantuml",codeCopy:!0,record:"dev",css:"unocss",presenter:!0,htmlAttrs:{},editor:!0},Ys=P(T.aspectRatio??16/9),Gs=P(T.canvasWidth??980),Io=y(()=>Math.ceil(Gs.value/Ys.value)),Ks=y(()=>Us(T.themeConfig||{},(t,e)=>[`--slidev-theme-${t}`,e]));function Qe(t,e={},s){for(const n in t){const r=t[n],i=s?`${s}:${n}`:n;typeof r=="object"&&r!==null?Qe(r,e,i):typeof r=="function"&&(e[i]=r)}return e}const Zs={run:t=>t()},Js=()=>Zs,qt=typeof console.createTask<"u"?console.createTask:Js;function Qs(t,e){const s=e.shift(),n=qt(s);return t.reduce((r,i)=>r.then(()=>n.run(()=>i(...e))),Promise.resolve())}function Xs(t,e){const s=e.shift(),n=qt(s);return Promise.all(t.map(r=>n.run(()=>r(...e))))}function We(t,e){for(const s of[...t])s(e)}class en{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,s,n={}){if(!e||typeof s!="function")return()=>{};const r=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let o=i.message;o||(o=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!s.name)try{Object.defineProperty(s,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(s),()=>{s&&(this.removeHook(e,s),s=void 0)}}hookOnce(e,s){let n,r=(...i)=>(typeof n=="function"&&n(),n=void 0,r=void 0,s(...i));return n=this.hook(e,r),n}removeHook(e,s){if(this._hooks[e]){const n=this._hooks[e].indexOf(s);n!==-1&&this._hooks[e].splice(n,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,s){this._deprecatedHooks[e]=typeof s=="string"?{to:s}:s;const n=this._hooks[e]||[];delete this._hooks[e];for(const r of n)this.hook(e,r)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const s in e)this.deprecateHook(s,e[s])}addHooks(e){const s=Qe(e),n=Object.keys(s).map(r=>this.hook(r,s[r]));return()=>{for(const r of n.splice(0,n.length))r()}}removeHooks(e){const s=Qe(e);for(const n in s)this.removeHook(n,s[n])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...s){return s.unshift(e),this.callHookWith(Qs,e,...s)}callHookParallel(e,...s){return s.unshift(e),this.callHookWith(Xs,e,...s)}callHookWith(e,s,...n){const r=this._before||this._after?{name:s,args:n,context:{}}:void 0;this._before&&We(this._before,r);const i=e(s in this._hooks?[...this._hooks[s]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&r&&We(this._after,r)}):(this._after&&r&&We(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const s=this._before.indexOf(e);s!==-1&&this._before.splice(s,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const s=this._after.indexOf(e);s!==-1&&this._after.splice(s,1)}}}}function tn(){return new en}function sn(t){return Array.isArray(t)?t:[t]}const nn=["title","titleTemplate","script","style","noscript"],Se=["base","meta","link","style","script","noscript"],rn=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],on=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],Vt=["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"],an=typeof window<"u";function ct(t){let e=9;for(let s=0;s<t.length;)e=Math.imul(e^t.charCodeAt(s++),9**9);return((e^e>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function mt(t){return t._h||ct(t._d?t._d:`${t.tag}:${t.textContent||t.innerHTML||""}:${Object.entries(t.props).map(([e,s])=>`${e}:${String(s)}`).join(",")}`)}function Bt(t,e){const{props:s,tag:n}=t;if(on.includes(n))return n;if(n==="link"&&s.rel==="canonical")return"canonical";if(s.charset)return"charset";const r=["id"];n==="meta"&&r.push("name","property","http-equiv");for(const i of r)if(typeof s[i]<"u"){const o=String(s[i]);return e&&!e(o)?!1:`${n}:${i}:${o}`}return!1}function vt(t,e){return t==null?e||null:typeof t=="function"?t(e):t}async function ln(t,e,s){const n={tag:t,props:await Ut(typeof e=="object"&&typeof e!="function"&&!(e instanceof Promise)?{...e}:{[["script","noscript","style"].includes(t)?"innerHTML":"textContent"]:e},["templateParams","titleTemplate"].includes(t))};return Vt.forEach(r=>{const i=typeof n.props[r]<"u"?n.props[r]:s[r];typeof i<"u"&&((!["innerHTML","textContent","children"].includes(r)||nn.includes(n.tag))&&(n[r==="children"?"innerHTML":r]=i),delete n.props[r])}),n.props.body&&(n.tagPosition="bodyClose",delete n.props.body),n.tag==="script"&&typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),Array.isArray(n.props.content)?n.props.content.map(r=>({...n,props:{...n.props,content:r}})):n}function cn(t,e){const s=t==="class"?" ":";";return typeof e=="object"&&!Array.isArray(e)&&(e=Object.entries(e).filter(([,n])=>n).map(([n,r])=>t==="style"?`${n}:${r}`:n)),(Array.isArray(e)?e.join(s):e).split(s).filter(n=>n.trim()).filter(Boolean).join(s)}async function Ut(t,e){for(const s of Object.keys(t)){if(["class","style"].includes(s)){t[s]=cn(s,t[s]);continue}if(t[s]instanceof Promise&&(t[s]=await t[s]),!e&&!Vt.includes(s)){const n=String(t[s]),r=s.startsWith("data-");n==="true"||n===""?t[s]=r?"true":!0:t[s]||(r&&n==="false"?t[s]="false":delete t[s])}}return t}const un=10;async function fn(t){const e=[];return Object.entries(t.resolvedInput).filter(([s,n])=>typeof n<"u"&&rn.includes(s)).forEach(([s,n])=>{const r=sn(n);e.push(...r.map(i=>ln(s,i,t)).flat())}),(await Promise.all(e)).flat().filter(Boolean).map((s,n)=>(s._e=t._i,t.mode&&(s._m=t.mode),s._p=(t._i<<un)+n,s))}const yt={base:-10,title:10},kt={critical:-80,high:-10,low:20};function Ee(t){let e=100;const s=t.tagPriority;return typeof s=="number"?s:(t.tag==="meta"?(t.props["http-equiv"]==="content-security-policy"&&(e=-30),t.props.charset&&(e=-20),t.props.name==="viewport"&&(e=-15)):t.tag==="link"&&t.props.rel==="preconnect"?e=20:t.tag in yt&&(e=yt[t.tag]),typeof s=="string"&&s in kt?e+kt[s]:e)}const hn=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],_t=["onload","onerror","onabort","onprogress","onloadstart"],B="%separator";function Te(t,e,s){if(typeof t!="string"||!t.includes("%"))return t;function n(o){let a;return["s","pageTitle"].includes(o)?a=e.pageTitle:o.includes(".")?a=o.split(".").reduce((l,c)=>l&&l[c]||void 0,e):a=e[o],typeof a<"u"?(a||"").replace(/"/g,'\\"'):!1}let r=t;try{r=decodeURI(t)}catch{}return(r.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(o=>{const a=n(o.slice(1));typeof a=="string"&&(t=t.replace(new RegExp(`\\${o}(\\W|$)`,"g"),(l,c)=>`${a}${c}`).trim())}),t.includes(B)&&(t.endsWith(B)&&(t=t.slice(0,-B.length).trim()),t.startsWith(B)&&(t=t.slice(B.length).trim()),t=t.replace(new RegExp(`\\${B}\\s*\\${B}`,"g"),B),t=Te(t,{separator:s},s)),t}async function dn(t,e={}){var u;const s=e.document||t.resolvedOptions.document;if(!s||!t.dirty)return;const n={shouldRender:!0,tags:[]};if(await t.hooks.callHook("dom:beforeRender",n),!n.shouldRender)return;const r=(await t.resolveTags()).map(f=>({tag:f,id:Se.includes(f.tag)?mt(f):f.tag,shouldRender:!0}));let i=t._dom;if(!i){i={elMap:{htmlAttrs:s.documentElement,bodyAttrs:s.body}};for(const f of["body","head"]){const h=(u=s[f])==null?void 0:u.children,d=[];for(const p of[...h].filter(g=>Se.includes(g.tagName.toLowerCase()))){const g={tag:p.tagName.toLowerCase(),props:await Ut(p.getAttributeNames().reduce((_,b)=>({..._,[b]:p.getAttribute(b)}),{})),innerHTML:p.innerHTML};let v=1,m=Bt(g);for(;m&&d.find(_=>_._d===m);)m=`${m}:${v++}`;g._d=m||void 0,d.push(g),i.elMap[p.getAttribute("data-hid")||mt(g)]=p}}}i.pendingSideEffects={...i.sideEffects||{}},i.sideEffects={};function o(f,h,d){const p=`${f}:${h}`;i.sideEffects[p]=d,delete i.pendingSideEffects[p]}function a({id:f,$el:h,tag:d}){const p=d.tag.endsWith("Attrs");i.elMap[f]=h,p||(["textContent","innerHTML"].forEach(g=>{d[g]&&d[g]!==h[g]&&(h[g]=d[g])}),o(f,"el",()=>{var g;(g=i.elMap[f])==null||g.remove(),delete i.elMap[f]}));for(const[g,v]of Object.entries(d._eventHandlers||{}))h.getAttribute(`data-${g}`)!==""&&((d.tag==="bodyAttrs"?s.defaultView:h).addEventListener(g.replace("on",""),v.bind(h)),h.setAttribute(`data-${g}`,""));Object.entries(d.props).forEach(([g,v])=>{const m=`attr:${g}`;if(g==="class")for(const _ of(v||"").split(" ").filter(Boolean))p&&o(f,`${m}:${_}`,()=>h.classList.remove(_)),!h.classList.contains(_)&&h.classList.add(_);else if(g==="style")for(const _ of(v||"").split(";").filter(Boolean)){const[b,...x]=_.split(":").map(L=>L.trim());o(f,`${m}:${_}:${b}`,()=>{h.style.removeProperty(b)}),h.style.setProperty(b,x.join(":"))}else h.getAttribute(g)!==v&&h.setAttribute(g,v===!0?"":String(v)),p&&o(f,m,()=>h.removeAttribute(g))})}const l=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of r){const{tag:h,shouldRender:d,id:p}=f;if(d){if(h.tag==="title"){s.title=h.textContent;continue}f.$el=f.$el||i.elMap[p],f.$el?a(f):Se.includes(h.tag)&&l.push(f)}}for(const f of l){const h=f.tag.tagPosition||"head";f.$el=s.createElement(f.tag.tag),a(f),c[h]=c[h]||s.createDocumentFragment(),c[h].appendChild(f.$el)}for(const f of r)await t.hooks.callHook("dom:renderTag",f,s,o);c.head&&s.head.appendChild(c.head),c.bodyOpen&&s.body.insertBefore(c.bodyOpen,s.body.firstChild),c.bodyClose&&s.body.appendChild(c.bodyClose),Object.values(i.pendingSideEffects).forEach(f=>f()),t._dom=i,t.dirty=!1,await t.hooks.callHook("dom:rendered",{renders:r})}async function pn(t,e={}){const s=e.delayFn||(n=>setTimeout(n,10));return t._domUpdatePromise=t._domUpdatePromise||new Promise(n=>s(async()=>{await dn(t,e),delete t._domUpdatePromise,n()}))}function gn(t){return e=>{var n,r;const s=((r=(n=e.resolvedOptions.document)==null?void 0:n.head.querySelector('script[id="unhead:payload"]'))==null?void 0:r.innerHTML)||!1;return s&&e.push(JSON.parse(s)),{mode:"client",hooks:{"entries:updated":function(i){pn(i,t)}}}}}const mn=["templateParams","htmlAttrs","bodyAttrs"],vn={hooks:{"tag:normalise":function({tag:t}){["hid","vmid","key"].forEach(n=>{t.props[n]&&(t.key=t.props[n],delete t.props[n])});const s=Bt(t)||(t.key?`${t.tag}:${t.key}`:!1);s&&(t._d=s)},"tags:resolve":function(t){const e={};t.tags.forEach(n=>{const r=(n.key?`${n.tag}:${n.key}`:n._d)||n._p,i=e[r];if(i){let a=n==null?void 0:n.tagDuplicateStrategy;if(!a&&mn.includes(n.tag)&&(a="merge"),a==="merge"){const l=i.props;["class","style"].forEach(c=>{l[c]&&(n.props[c]?(c==="style"&&!l[c].endsWith(";")&&(l[c]+=";"),n.props[c]=`${l[c]} ${n.props[c]}`):n.props[c]=l[c])}),e[r].props={...l,...n.props};return}else if(n._e===i._e){i._duped=i._duped||[],n._d=`${i._d}:${i._duped.length+1}`,i._duped.push(n);return}else if(Ee(n)>Ee(i))return}const o=Object.keys(n.props).length+(n.innerHTML?1:0)+(n.textContent?1:0);if(Se.includes(n.tag)&&o===0){delete e[r];return}e[r]=n});const s=[];Object.values(e).forEach(n=>{const r=n._duped;delete n._duped,s.push(n),r&&s.push(...r)}),t.tags=s,t.tags=t.tags.filter(n=>!(n.tag==="meta"&&(n.props.name||n.props.property)&&!n.props.content))}}},yn={mode:"server",hooks:{"tags:resolve":function(t){const e={};t.tags.filter(s=>["titleTemplate","templateParams","title"].includes(s.tag)&&s._m==="server").forEach(s=>{e[s.tag]=s.tag.startsWith("title")?s.textContent:s.props}),Object.keys(e).length&&t.tags.push({tag:"script",innerHTML:JSON.stringify(e),props:{id:"unhead:payload",type:"application/json"}})}}},kn=["script","link","bodyAttrs"],_n=t=>({hooks:{"tags:resolve":function(e){for(const s of e.tags.filter(n=>kn.includes(n.tag)))Object.entries(s.props).forEach(([n,r])=>{n.startsWith("on")&&typeof r=="function"&&(t.ssr&&_t.includes(n)?s.props[n]=`this.dataset.${n}fired = true`:delete s.props[n],s._eventHandlers=s._eventHandlers||{},s._eventHandlers[n]=r)}),t.ssr&&s._eventHandlers&&(s.props.src||s.props.href)&&(s.key=s.key||ct(s.props.src||s.props.href))},"dom:renderTag":function({$el:e,tag:s}){var n,r;for(const i of Object.keys((e==null?void 0:e.dataset)||{}).filter(o=>_t.some(a=>`${a}fired`===o))){const o=i.replace("fired","");(r=(n=s._eventHandlers)==null?void 0:n[o])==null||r.call(e,new Event(o.replace("on","")))}}}}),bn=["link","style","script","noscript"],wn={hooks:{"tag:normalise":({tag:t})=>{t.key&&bn.includes(t.tag)&&(t.props["data-hid"]=t._h=ct(t.key))}}},xn={hooks:{"tags:resolve":t=>{const e=s=>{var n;return(n=t.tags.find(r=>r._d===s))==null?void 0:n._p};for(const{prefix:s,offset:n}of hn)for(const r of t.tags.filter(i=>typeof i.tagPriority=="string"&&i.tagPriority.startsWith(s))){const i=e(r.tagPriority.replace(s,""));typeof i<"u"&&(r._p=i+n)}t.tags.sort((s,n)=>s._p-n._p).sort((s,n)=>Ee(s)-Ee(n))}}},Mn={meta:"content",link:"href",htmlAttrs:"lang"},Sn=t=>({hooks:{"tags:resolve":e=>{var a;const{tags:s}=e,n=(a=s.find(l=>l.tag==="title"))==null?void 0:a.textContent,r=s.findIndex(l=>l.tag==="templateParams"),i=r!==-1?s[r].props:{},o=i.separator||"|";delete i.separator,i.pageTitle=Te(i.pageTitle||n||"",i,o);for(const l of s.filter(c=>c.processTemplateParams!==!1)){const c=Mn[l.tag];c&&typeof l.props[c]=="string"?l.props[c]=Te(l.props[c],i,o):(l.processTemplateParams===!0||["titleTemplate","title"].includes(l.tag))&&["innerHTML","textContent"].forEach(u=>{typeof l[u]=="string"&&(l[u]=Te(l[u],i,o))})}t._templateParams=i,t._separator=o,e.tags=s.filter(l=>l.tag!=="templateParams")}}}),Tn={hooks:{"tags:resolve":t=>{const{tags:e}=t;let s=e.findIndex(r=>r.tag==="titleTemplate");const n=e.findIndex(r=>r.tag==="title");if(n!==-1&&s!==-1){const r=vt(e[s].textContent,e[n].textContent);r!==null?e[n].textContent=r||e[n].textContent:delete e[n]}else if(s!==-1){const r=vt(e[s].textContent);r!==null&&(e[s].textContent=r,e[s].tag="title",s=-1)}s!==-1&&delete e[s],t.tags=e.filter(Boolean)}}},An={hooks:{"tags:afterResolve":function(t){for(const e of t.tags)typeof e.innerHTML=="string"&&(e.innerHTML&&["application/ld+json","application/json"].includes(e.props.type)?e.innerHTML=e.innerHTML.replace(/</g,"\\u003C"):e.innerHTML=e.innerHTML.replace(new RegExp(`</${e.tag}`,"g"),`<\\/${e.tag}`))}}};let Yt;function Pn(t={}){const e=On(t);return e.use(gn()),Yt=e}function bt(t,e){return!t||t==="server"&&e||t==="client"&&!e}function On(t={}){const e=tn();e.addHooks(t.hooks||{}),t.document=t.document||(an?document:void 0);const s=!t.document,n=()=>{a.dirty=!0,e.callHook("entries:updated",a)};let r=0,i=[];const o=[],a={plugins:o,dirty:!1,resolvedOptions:t,hooks:e,headEntries(){return i},use(l){const c=typeof l=="function"?l(a):l;(!c.key||!o.some(u=>u.key===c.key))&&(o.push(c),bt(c.mode,s)&&e.addHooks(c.hooks||{}))},push(l,c){c==null||delete c.head;const u={_i:r++,input:l,...c};return bt(u.mode,s)&&(i.push(u),n()),{dispose(){i=i.filter(f=>f._i!==u._i),e.callHook("entries:updated",a),n()},patch(f){i=i.map(h=>(h._i===u._i&&(h.input=u.input=f),h)),n()}}},async resolveTags(){const l={tags:[],entries:[...i]};await e.callHook("entries:resolve",l);for(const c of l.entries){const u=c.resolvedInput||c.input;if(c.resolvedInput=await(c.transform?c.transform(u):u),c.resolvedInput)for(const f of await fn(c)){const h={tag:f,entry:c,resolvedOptions:a.resolvedOptions};await e.callHook("tag:normalise",h),l.tags.push(h.tag)}}return await e.callHook("tags:beforeResolve",l),await e.callHook("tags:resolve",l),await e.callHook("tags:afterResolve",l),l.tags},ssr:s};return[vn,yn,_n,wn,xn,Sn,Tn,An,...(t==null?void 0:t.plugins)||[]].forEach(l=>a.use(l)),a.hooks.callHook("init",a),a}function Cn(){return Yt}const En=_s.startsWith("3");function Ln(t){return typeof t=="function"?t():lt(t)}function Le(t,e=""){if(t instanceof Promise)return t;const s=Ln(t);return!t||!s?s:Array.isArray(s)?s.map(n=>Le(n,e)):typeof s=="object"?Object.fromEntries(Object.entries(s).map(([n,r])=>n==="titleTemplate"||n.startsWith("on")?[n,lt(r)]:[n,Le(r,n)])):s}const In={hooks:{"entries:resolve":function(t){for(const e of t.entries)e.resolvedInput=Le(e.input)}}},Gt="usehead";function $n(t){return{install(s){En&&(s.config.globalProperties.$unhead=t,s.config.globalProperties.$head=t,s.provide(Gt,t))}}.install}function Nn(t={}){t.domDelayFn=t.domDelayFn||(s=>Ce(()=>setTimeout(()=>s(),0)));const e=Pn(t);return e.use(In),e.install=$n(e),e}const wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xt="__unhead_injection_handler__";function Rn(){if(xt in wt)return wt[xt]();const t=bs(Gt);return t||console.warn("Unhead is missing Vue context, falling back to shared context. This may have unexpected results."),t||Cn()}function Fn(t,e={}){const s=e.head||Rn();if(s)return s.ssr?s.push(t,e):Hn(s,t,e)}function Hn(t,e,s={}){const n=P(!1),r=P({});ie(()=>{r.value=n.value?{}:Le(e)});const i=t.push(r.value,s);return oe(r,a=>{i.patch(a)}),jt()&&(ws(()=>{i.dispose()}),xs(()=>{n.value=!0}),Ms(()=>{n.value=!1})),i}function Kt(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(2,10)}function N(t,e,s){Object.defineProperty(t,e,{value:s,writable:!0,enumerable:!1})}const ee=E({page:0,clicks:0});let jn=[],Dn=[];N(ee,"$syncUp",!0);N(ee,"$syncDown",!0);N(ee,"$paused",!1);N(ee,"$onSet",t=>jn.push(t));N(ee,"$onPatch",t=>Dn.push(t));Kt();N(ee,"$patch",async()=>!1);function Zt(t,e,s=!1){const n=[];let r=!1,i=!1,o,a;const l=E(e);function c(d){n.push(d)}function u(d,p){l[d]!==p&&(clearTimeout(o),r=!0,l[d]=p,o=setTimeout(()=>r=!1,0))}function f(d){r||(clearTimeout(a),i=!0,Object.entries(d).forEach(([p,g])=>{l[p]=g}),a=setTimeout(()=>i=!1,0))}function h(d){let p;s?s&&window.addEventListener("storage",v=>{v&&v.key===d&&v.newValue&&f(JSON.parse(v.newValue))}):(p=new BroadcastChannel(d),p.addEventListener("message",v=>f(v.data)));function g(){!s&&p&&!i?p.postMessage(Ss(l)):s&&!i&&window.localStorage.setItem(d,JSON.stringify(l)),r||n.forEach(v=>v(l))}if(oe(l,g,{deep:!0,flush:"sync"}),s){const v=window.localStorage.getItem(d);v&&f(JSON.parse(v))}}return{init:h,onPatch:c,patch:u,state:l}}const{init:Wn,onPatch:zn,patch:le,state:$o}=Zt(ee,{page:1,clicks:0,viewerPage:1,viewerClicks:0}),te=E({});let qn=[],Vn=[];N(te,"$syncUp",!0);N(te,"$syncDown",!0);N(te,"$paused",!1);N(te,"$onSet",t=>qn.push(t));N(te,"$onPatch",t=>Vn.push(t));Kt();N(te,"$patch",async()=>!1);const{init:Bn,onPatch:No,patch:Ro,state:Fo}=Zt(te,{},!1),ut="$$slidev-clicks-context",Un="$$slidev-page",Ho="$$slidev-slide-scale",Yn="$$slidev-context",jo="$$slidev-route",Gn="$$slidev-render-context",Do="$$slidev-active",Wo="$$slidev-fontmatter",zo="$$slidev-slide-zoom",Ae="slidev-vclick-target",ce="slidev-vclick-hidden",ue="slidev-vclick-fade",ze="slidev-vclick-hidden-explicitly",qe="slidev-vclick-current",Ve="slidev-vclick-prior",Ie=999999,Kn=["localhost","127.0.0.1"],Zn=["clicks","clicksStart","disabled","hide","hideInToc","layout","level","preload","routeAlias","src","title","transition","zoom"],qo=[...Zn,"theme","titleTemplate","info","author","keywords","presenter","download","exportFilename","export","highlighter","lineNumbers","monaco","remoteAssets","selectable","record","colorSchema","routerMode","aspectRatio","canvasWidth","themeConfig","favicon","plantUmlServer","fonts","defaults","drawings","htmlAttrs","mdc"],Jt=P(!1);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Qt(t){return typeof t>"u"||t===null}function Jn(t){return typeof t=="object"&&t!==null}function Qn(t){return Array.isArray(t)?t:Qt(t)?[]:[t]}function Xn(t,e){var s,n,r,i;if(e)for(i=Object.keys(e),s=0,n=i.length;s<n;s+=1)r=i[s],t[r]=e[r];return t}function er(t,e){var s="",n;for(n=0;n<e;n+=1)s+=t;return s}function tr(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var sr=Qt,nr=Jn,rr=Qn,ir=er,or=tr,ar=Xn,ft={isNothing:sr,isObject:nr,toArray:rr,repeat:ir,isNegativeZero:or,extend:ar};function Xt(t,e){var s="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(s+='in "'+t.mark.name+'" '),s+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(s+=`
`+t.mark.snippet),n+" "+s):n}function ve(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Xt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ve.prototype=Object.create(Error.prototype);ve.prototype.constructor=ve;ve.prototype.toString=function(e){return this.name+": "+Xt(this,e)};var X=ve,lr=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],cr=["scalar","sequence","mapping"];function ur(t){var e={};return t!==null&&Object.keys(t).forEach(function(s){t[s].forEach(function(n){e[String(n)]=s})}),e}function fr(t,e){if(e=e||{},Object.keys(e).forEach(function(s){if(lr.indexOf(s)===-1)throw new X('Unknown option "'+s+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(s){return s},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=ur(e.styleAliases||null),cr.indexOf(this.kind)===-1)throw new X('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var A=fr;function Mt(t,e){var s=[];return t[e].forEach(function(n){var r=s.length;s.forEach(function(i,o){i.tag===n.tag&&i.kind===n.kind&&i.multi===n.multi&&(r=o)}),s[r]=n}),s}function hr(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,s;function n(r){r.multi?(t.multi[r.kind].push(r),t.multi.fallback.push(r)):t[r.kind][r.tag]=t.fallback[r.tag]=r}for(e=0,s=arguments.length;e<s;e+=1)arguments[e].forEach(n);return t}function Xe(t){return this.extend(t)}Xe.prototype.extend=function(e){var s=[],n=[];if(e instanceof A)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(s=s.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new X("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");s.forEach(function(i){if(!(i instanceof A))throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new X("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new X("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(i){if(!(i instanceof A))throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(Xe.prototype);return r.implicit=(this.implicit||[]).concat(s),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=Mt(r,"implicit"),r.compiledExplicit=Mt(r,"explicit"),r.compiledTypeMap=hr(r.compiledImplicit,r.compiledExplicit),r};var dr=Xe,pr=new A("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),gr=new A("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),mr=new A("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),vr=new dr({explicit:[pr,gr,mr]});function yr(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function kr(){return null}function _r(t){return t===null}var br=new A("tag:yaml.org,2002:null",{kind:"scalar",resolve:yr,construct:kr,predicate:_r,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function wr(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function xr(t){return t==="true"||t==="True"||t==="TRUE"}function Mr(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Sr=new A("tag:yaml.org,2002:bool",{kind:"scalar",resolve:wr,construct:xr,predicate:Mr,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Tr(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Ar(t){return 48<=t&&t<=55}function Pr(t){return 48<=t&&t<=57}function Or(t){if(t===null)return!1;var e=t.length,s=0,n=!1,r;if(!e)return!1;if(r=t[s],(r==="-"||r==="+")&&(r=t[++s]),r==="0"){if(s+1===e)return!0;if(r=t[++s],r==="b"){for(s++;s<e;s++)if(r=t[s],r!=="_"){if(r!=="0"&&r!=="1")return!1;n=!0}return n&&r!=="_"}if(r==="x"){for(s++;s<e;s++)if(r=t[s],r!=="_"){if(!Tr(t.charCodeAt(s)))return!1;n=!0}return n&&r!=="_"}if(r==="o"){for(s++;s<e;s++)if(r=t[s],r!=="_"){if(!Ar(t.charCodeAt(s)))return!1;n=!0}return n&&r!=="_"}}if(r==="_")return!1;for(;s<e;s++)if(r=t[s],r!=="_"){if(!Pr(t.charCodeAt(s)))return!1;n=!0}return!(!n||r==="_")}function Cr(t){var e=t,s=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(s=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return s*parseInt(e.slice(2),2);if(e[1]==="x")return s*parseInt(e.slice(2),16);if(e[1]==="o")return s*parseInt(e.slice(2),8)}return s*parseInt(e,10)}function Er(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!ft.isNegativeZero(t)}var Lr=new A("tag:yaml.org,2002:int",{kind:"scalar",resolve:Or,construct:Cr,predicate:Er,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Ir=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function $r(t){return!(t===null||!Ir.test(t)||t[t.length-1]==="_")}function Nr(t){var e,s;return e=t.replace(/_/g,"").toLowerCase(),s=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?s===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:s*parseFloat(e,10)}var Rr=/^[-+]?[0-9]+e/;function Fr(t,e){var s;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ft.isNegativeZero(t))return"-0.0";return s=t.toString(10),Rr.test(s)?s.replace("e",".e"):s}function Hr(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ft.isNegativeZero(t))}var jr=new A("tag:yaml.org,2002:float",{kind:"scalar",resolve:$r,construct:Nr,predicate:Hr,represent:Fr,defaultStyle:"lowercase"}),Dr=vr.extend({implicit:[br,Sr,Lr,jr]}),Wr=Dr,es=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ts=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function zr(t){return t===null?!1:es.exec(t)!==null||ts.exec(t)!==null}function qr(t){var e,s,n,r,i,o,a,l=0,c=null,u,f,h;if(e=es.exec(t),e===null&&(e=ts.exec(t)),e===null)throw new Error("Date resolve error");if(s=+e[1],n=+e[2]-1,r=+e[3],!e[4])return new Date(Date.UTC(s,n,r));if(i=+e[4],o=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],f=+(e[11]||0),c=(u*60+f)*6e4,e[9]==="-"&&(c=-c)),h=new Date(Date.UTC(s,n,r,i,o,a,l)),c&&h.setTime(h.getTime()-c),h}function Vr(t){return t.toISOString()}var Br=new A("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:zr,construct:qr,instanceOf:Date,represent:Vr});function Ur(t){return t==="<<"||t===null}var Yr=new A("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Ur}),ht=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function Gr(t){if(t===null)return!1;var e,s,n=0,r=t.length,i=ht;for(s=0;s<r;s++)if(e=i.indexOf(t.charAt(s)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}function Kr(t){var e,s,n=t.replace(/[\r\n=]/g,""),r=n.length,i=ht,o=0,a=[];for(e=0;e<r;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|i.indexOf(n.charAt(e));return s=r%4*6,s===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):s===18?(a.push(o>>10&255),a.push(o>>2&255)):s===12&&a.push(o>>4&255),new Uint8Array(a)}function Zr(t){var e="",s=0,n,r,i=t.length,o=ht;for(n=0;n<i;n++)n%3===0&&n&&(e+=o[s>>18&63],e+=o[s>>12&63],e+=o[s>>6&63],e+=o[s&63]),s=(s<<8)+t[n];return r=i%3,r===0?(e+=o[s>>18&63],e+=o[s>>12&63],e+=o[s>>6&63],e+=o[s&63]):r===2?(e+=o[s>>10&63],e+=o[s>>4&63],e+=o[s<<2&63],e+=o[64]):r===1&&(e+=o[s>>2&63],e+=o[s<<4&63],e+=o[64],e+=o[64]),e}function Jr(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Qr=new A("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Gr,construct:Kr,predicate:Jr,represent:Zr}),Xr=Object.prototype.hasOwnProperty,ei=Object.prototype.toString;function ti(t){if(t===null)return!0;var e=[],s,n,r,i,o,a=t;for(s=0,n=a.length;s<n;s+=1){if(r=a[s],o=!1,ei.call(r)!=="[object Object]")return!1;for(i in r)if(Xr.call(r,i))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(i)===-1)e.push(i);else return!1}return!0}function si(t){return t!==null?t:[]}var ni=new A("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ti,construct:si}),ri=Object.prototype.toString;function ii(t){if(t===null)return!0;var e,s,n,r,i,o=t;for(i=new Array(o.length),e=0,s=o.length;e<s;e+=1){if(n=o[e],ri.call(n)!=="[object Object]"||(r=Object.keys(n),r.length!==1))return!1;i[e]=[r[0],n[r[0]]]}return!0}function oi(t){if(t===null)return[];var e,s,n,r,i,o=t;for(i=new Array(o.length),e=0,s=o.length;e<s;e+=1)n=o[e],r=Object.keys(n),i[e]=[r[0],n[r[0]]];return i}var ai=new A("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ii,construct:oi}),li=Object.prototype.hasOwnProperty;function ci(t){if(t===null)return!0;var e,s=t;for(e in s)if(li.call(s,e)&&s[e]!==null)return!1;return!0}function ui(t){return t!==null?t:{}}var fi=new A("tag:yaml.org,2002:set",{kind:"mapping",resolve:ci,construct:ui});Wr.extend({implicit:[Br,Yr],explicit:[Qr,ni,ai,fi]});function St(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?" ":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}var hi=new Array(256),di=new Array(256);for(var ne=0;ne<256;ne++)hi[ne]=St(ne)?1:0,di[ne]=St(ne);function Vo(){const t=P(Date.now()),e=Ts({interval:1e3}),s=y(()=>{const r=(e.value-t.value)/1e3,i=Math.floor(r%60).toString().padStart(2,"0");return`${Math.floor(r/60).toString().padStart(2,"0")}:${i}`});function n(){t.value=e.value}return{timer:s,resetTimer:n}}function pi(t=5){const e=[],s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",n=s.length;for(let r=0;r<t;r++)e.push(s.charAt(Math.floor(Math.random()*n)));return e.join("")}function gi(t="+1"){let e=+t;return Number.isNaN(e)&&(console.warn("[slidev] Invalid click position:",t),e=0),[typeof t=="string"&&"+-".includes(t[0]),e]}const mi="modulepreload",vi=function(t){return"/slides/fosdem2024/"+t},Tt={},V=function(e,s,n){let r=Promise.resolve();if(s&&s.length>0){const i=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.all(s.map(l=>{if(l=vi(l),l in Tt)return;Tt[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(!!n)for(let d=i.length-1;d>=0;d--){const p=i[d];if(p.href===l&&(!c||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":mi,c||(h.as="script",h.crossOrigin=""),h.href=l,a&&h.setAttribute("nonce",a),document.head.appendChild(h),c)return new Promise((d,p)=>{h.addEventListener("load",d),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>e()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})},ss=(t,e)=>{const s=t.__vccOpts||t;for(const[n,r]of e)s[n]=r;return s},yi={},ki={class:"px-4 py-10 text-center text-red-700 dark:text-red-500 font-bold font-mono"};function _i(t,e){return Dt(),As("div",ki," An error occurred on this slide. Check the terminal for more information. ")}const bi=ss(yi,[["render",_i],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/error.vue"]]),fe=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"})),Y=E({theme:"default",title:"Nix for genetics"}),wi=E({layout:y(()=>Y.layout),transition:y(()=>Y.transition),class:y(()=>Y.class),clicks:y(()=>Y.clicks),name:y(()=>Y.name),preload:y(()=>Y.preload),slide:{index:0,content:"",note:"",title:"Nix for genetics",noteHTML:`<p>We are dealing with real world patients =</p>
<ul>
<li>accurate results : no mistake is allowed (diagnosis can be life changing)</li>
<li>reproducible : we need to have the trust of other doctors</li>
<li>fast : increasing demand !</li>
</ul>
<p>Rare diseases</p>
<ul>
<li>... are rare : how to diagnosis things you don't see often ?</li>
<li>mix of state-of-the art technology, computer science and human expertise</li>
</ul>
`,raw:"",frontmatter:Y,filepath:"/home/alex/notes/slides/fosdem2024.md",start:0,id:0,no:1},__clicksContext:null,__preloaded:!1}),G=E({transition:"fade-out",layout:"center"}),xi=E({layout:y(()=>G.layout),transition:y(()=>G.transition),class:y(()=>G.class),clicks:y(()=>G.clicks),name:y(()=>G.name),preload:y(()=>G.preload),slide:{index:1,content:"",note:"",title:"Next-generation sequencing",level:1,noteHTML:`<ul>
<li>How does that work in practice ?</li>
<li>We start from a blood sample. DNA is then extracted and "sequenced" (getting the DNA code)</li>
<li>Raw data cannot be used on its own so it needs to be processed and filtered.</li>
<li>The final output is a dataframe (i.e CSV) than a human can examine and try to find the diagnosis.</li>
<li>We still a human (no AI)</li>
<li>And bioinformatics is super important : if we filter too much, we miss the diagnosis. Not enough and the human won't be able to read the data.</li>
</ul>
`,raw:"",frontmatter:G,filepath:"/home/alex/notes/slides/fosdem2024.md",start:23,id:1,no:2},__clicksContext:null,__preloaded:!1}),K=E({layout:"two-cols-header"}),Mi=E({layout:y(()=>K.layout),transition:y(()=>K.transition),class:y(()=>K.class),clicks:y(()=>K.clicks),name:y(()=>K.name),preload:y(()=>K.preload),slide:{index:2,content:"",note:"",title:"Bioinformatics pipeline",level:1,noteHTML:`<p>Quite simple : a set of command-line utilites that process (compressed) text data</p>
<p>External databases are basically text file .</p>
<p>How does nix fit into this ?</p>
<ul>
<li>hard-coded software version and dependencies -> that's an obligation for the laboratory. A small update means to run all checks... and there are expensive</li>
<li>database could be managed ... but there are stored in a different folder. In theory it could be done (has been added a few month agay)</li>
<li>manage execution ?</li>
</ul>
`,raw:"",frontmatter:K,filepath:"/home/alex/notes/slides/fosdem2024.md",start:48,id:2,no:3},__clicksContext:null,__preloaded:!1}),Z=E({}),Si=E({layout:y(()=>Z.layout),transition:y(()=>Z.transition),class:y(()=>Z.class),clicks:y(()=>Z.clicks),name:y(()=>Z.name),preload:y(()=>Z.preload),slide:{index:3,content:"",note:"",title:"Nix : excellent community",level:1,noteHTML:`<ul>
<li>Very welcoming (Element, github)</li>
<li>Several packages contributed upstream (some waiting)</li>
<li>Not easy as in my spare time + 5k in github</li>
</ul>
`,raw:"",frontmatter:Z,filepath:"/home/alex/notes/slides/fosdem2024.md",start:85,id:3,no:4},__clicksContext:null,__preloaded:!1}),J=E({layout:"quote",class:"text-center"}),Ti=E({layout:y(()=>J.layout),transition:y(()=>J.transition),class:y(()=>J.class),clicks:y(()=>J.clicks),name:y(()=>J.name),preload:y(()=>J.preload),slide:{index:4,content:"",note:"",title:"Thank you !",level:1,noteHTML:"",raw:"",frontmatter:J,filepath:"/home/alex/notes/slides/fosdem2024.md",start:121,id:4,no:5},__clicksContext:null,__preloaded:!1}),Ai=[{no:1,meta:wi,component:async()=>{try{return await V(()=>import("./slidev/1--1SccWCr.js"),__vite__mapDeps([0,1,2,3,4]))}catch(t){return console.error("Failed to load slide 1:",t),fe}}},{no:2,meta:xi,component:async()=>{try{return await V(()=>import("./slidev/2-C5CaHS53.js"),__vite__mapDeps([5,1,2,3,4]))}catch(t){return console.error("Failed to load slide 2:",t),fe}}},{no:3,meta:Mi,component:async()=>{try{return await V(()=>import("./slidev/3-Gpy7S1Gl.js"),__vite__mapDeps([6,7,1,8,2,3,4,9]))}catch(t){return console.error("Failed to load slide 3:",t),fe}}},{no:4,meta:Si,component:async()=>{try{return await V(()=>import("./slidev/4-l7EwEV7U.js"),__vite__mapDeps([10,7,1,8,2,3,4]))}catch(t){return console.error("Failed to load slide 4:",t),fe}}},{no:5,meta:Ti,component:async()=>{try{return await V(()=>import("./slidev/5-D6NuYssw.js"),__vite__mapDeps([11,1,2,3,4]))}catch(t){return console.error("Failed to load slide 5:",t),fe}}}],j=Wt(Ai);function ye(t){return j.value.find(e=>{var s;return e.no===+t||((s=e.meta.slide)==null?void 0:s.frontmatter.routeAlias)===t})}function $e(t,e){var n;(typeof t=="number"||typeof t=="string")&&(t=ye(t));const s=((n=t.meta.slide)==null?void 0:n.frontmatter.routeAlias)??t.no;return e?`/presenter/${s}`:`/${s}`}function Pi(t,e,{mode:s="replace"}={}){const n=He();return y({get(){const r=n.currentRoute.value.query[t];return r==null?e??null:Array.isArray(r)?r.filter(Boolean):r},set(r){Ce(()=>{(n.currentRoute.value.query[t]??(e==null?void 0:e.toString()))!==r.toString()&&n[lt(s)]({query:{...n.currentRoute.value.query,[t]:`${r}`===e?void 0:r}})})}})}const et=P(0);function ns(t,e=0,s){const n=new Map,r=Ps(new Map);return{get current(){return me(+t.value,e,this.total)},set current(i){t.value=me(+i,e,this.total)},clicksStart:e,relativeOffsets:n,map:r,onMounted(){},resolve(i,o=1){const[a,l]=gi(i);if(a){const c=this.currentOffset;return{start:c+l,end:c+l+o-1,delta:l+o-1}}else return{start:l,end:l+o-1,delta:0}},register(i,o){n.set(i,o.delta),r.set(i,o)},unregister(i){n.delete(i),r.delete(i)},get currentOffset(){return et.value,zs(...n.values())},get total(){return et.value,s??Math.max(0,...[...r.values()].map(i=>i.max||0))}}}function Oi(t,e=0){var n,r;const s=((n=t==null?void 0:t.meta.slide)==null?void 0:n.frontmatter.clicksStart)??0;return ns(P(Math.max(e,s)),s,(r=t==null?void 0:t.meta)==null?void 0:r.clicks)}const At=Os(),Be=Cs("slidev-color-schema","auto"),Pt=y(()=>T.colorSchema!=="auto"),rs=y({get(){return Pt.value?T.colorSchema==="dark":Be.value==="auto"?At.value:Be.value==="dark"},set(t){Pt.value||(Be.value=t===At.value?"auto":t?"dark":"light")}}),Bo=Es(rs);Ls&&oe(rs,t=>{const e=document.querySelector("html");e.classList.toggle("dark",t),e.classList.toggle("light",!t)},{immediate:!0});const Ci={"slide-left":"slide-left | slide-right","slide-right":"slide-right | slide-left","slide-up":"slide-up | slide-down","slide-down":"slide-down | slide-up"};function Ei(t,e=!1){if(!t||(typeof t=="string"&&(t={name:t}),!t.name))return;let s=t.name.includes("|")?t.name:Ci[t.name]||t.name;if(s.includes("|")){const[n,r]=s.split("|").map(i=>i.trim());s=e?r:n}if(s)return{...t,name:s}}function Li(t,e,s){var r,i;let n=t>0?(r=s==null?void 0:s.meta)==null?void 0:r.transition:(i=e==null?void 0:e.meta)==null?void 0:i.transition;return n||(n=T.transition),Ei(n,t<0)}function is(t,e,s=1){var r,i,o,a,l,c,u,f,h;const n=(i=(r=e.meta)==null?void 0:r.slide)==null?void 0:i.level;n&&n>s&&t.length>0?is(t[t.length-1].children,e,s+1):t.push({no:e.no,children:[],level:s,path:$e(((a=(o=e.meta.slide)==null?void 0:o.frontmatter)==null?void 0:a.routeAlias)??e.no,!1),hideInToc:!!((u=(c=(l=e.meta)==null?void 0:l.slide)==null?void 0:c.frontmatter)!=null&&u.hideInToc),title:(h=(f=e.meta)==null?void 0:f.slide)==null?void 0:h.title})}function os(t,e,s=!1,n,r){return t.map(i=>{const o={...i,active:i.no===(r==null?void 0:r.value),hasActiveParent:s};return o.children.length>0&&(o.children=os(o.children,e,o.active||o.hasActiveParent,o,r)),n&&(o.active||o.activeParent)&&(n.activeParent=!0),o})}function as(t,e=1){return t.filter(s=>!s.hideInToc).map(s=>({...s,children:as(s.children,e+1)}))}function Ii(t,e,s){const n=y(()=>t.value.filter(i=>{var o,a;return(a=(o=i.meta)==null?void 0:o.slide)==null?void 0:a.title}).reduce((i,o)=>(is(i,o),i),[])),r=y(()=>os(n.value,s.value,void 0,void 0,e));return y(()=>as(r.value))}function ls(t,e,s=P(0),n,r,i){const o=y(()=>j.value.length),a=P(0),l=P(0),c=y(()=>$e(t.value,n.value)),u=y(()=>t.value.no),f=y(()=>{var w;return((w=t.value.meta)==null?void 0:w.layout)||(u.value===1?"cover":"default")}),h=y(()=>e.value.current),d=y(()=>e.value.clicksStart),p=y(()=>e.value.total),g=y(()=>j.value[Math.min(j.value.length,u.value+1)-1]),v=y(()=>j.value[Math.max(1,u.value-1)-1]),m=y(()=>u.value<j.value.length||h.value<p.value),_=y(()=>u.value>1||h.value>0),b=y(()=>Li(a.value,t.value,v.value));oe(t,(w,M)=>{a.value=w.no-M.no});async function x(w){return!1}const L=Ii(j,u,t);async function D(){l.value=1,p.value<=s.value?await W():s.value+=1}async function se(){l.value=-1,s.value<=d.value?await z():s.value-=1}async function W(){l.value=1,u.value<j.value.length&&await S(u.value+1)}async function z(w=!0){var q,R;l.value=-1;const M=Math.max(1,u.value-1);await S(M,w?r.value?void 0:((R=(q=ye(M))==null?void 0:q.meta.__clicksContext)==null?void 0:R.total)??Ie:void 0)}function _e(){return S(1)}function be(){return S(o.value)}async function S(w,M=0){var we,ae,gt;Jt.value=!1;const q=u.value!==w,R=M!==s.value,H=(we=ye(w))==null?void 0:we.meta,De=((ae=H==null?void 0:H.slide)==null?void 0:ae.frontmatter.clicksStart)??0;M=me(M,De,((gt=H==null?void 0:H.__clicksContext)==null?void 0:gt.total)??Ie),(q||R)&&await(i==null?void 0:i.push({path:$e(w,n.value),query:{...i.currentRoute.value.query,clicks:M===0?void 0:M.toString()}}))}return{slides:j,total:o,currentPath:c,currentSlideNo:u,currentPage:u,currentSlideRoute:t,currentLayout:f,currentTransition:b,clicksDirection:l,nextRoute:g,prevRoute:v,clicksContext:e,clicks:h,clicksStart:d,clicksTotal:p,hasNext:m,hasPrev:_,tocTree:L,navDirection:a,openInEditor:x,next:D,prev:se,go:S,goLast:be,goFirst:_e,nextSlide:W,prevSlide:z}}function Uo(t,e){const s=async()=>{};return{...ls(y(()=>t),y(()=>e),P(Ie),P(!1),P(!1)),next:s,prev:s,nextSlide:s,prevSlide:s,goFirst:s,goLast:s,go:s}}const $i=zt(()=>{const t=He(),e=y(()=>t.currentRoute.value),s=y(()=>(t.currentRoute.value.query,new URLSearchParams(location.search))),n=y(()=>s.value.has("print")),r=y(()=>s.value.get("print")==="clicks"),i=y(()=>s.value.has("embedded")),o=y(()=>e.value.name==="play"),a=y(()=>e.value.name==="presenter"),l=y(()=>e.value.name==="notes"),c=y(()=>!a.value&&(!T.remote||s.value.get("password")===T.remote)),u=Is(o,a),f=y(()=>{var m;return u.value?((m=ye(e.value.params.no))==null?void 0:m.no)??1:1}),h=y(()=>j.value[f.value-1]),d=Pi("clicks","0"),p=y(()=>v(h.value)),g=y({get(){let m=+(d.value||0);return Number.isNaN(m)&&(m=0),m},set(m){d.value=m.toString()}});function v(m){var x,L;if((x=m==null?void 0:m.meta)!=null&&x.__clicksContext)return m.meta.__clicksContext;const _=m.no,b=ns(y({get(){return f.value===_?Math.max(+(d.value??0),b.clicksStart):f.value>_?Ie:b.clicksStart},set(D){f.value===_&&(d.value=me(D,b.clicksStart,b.total).toString())}}),((L=m==null?void 0:m.meta.slide)==null?void 0:L.frontmatter.clicksStart)??0,m==null?void 0:m.meta.clicks);return b.onMounted=()=>{f.value===_&&(d.value=me(+d.value,b.clicksStart,b.total).toString())},m!=null&&m.meta&&(m.meta.__clicksContext=b),b}return{router:t,currentRoute:e,isPrintMode:n,isPrintWithClicks:r,isEmbedded:i,isPlaying:o,isPresenter:a,isNotesViewer:l,isPresenterAvailable:c,hasPrimarySlide:u,currentSlideNo:f,currentSlideRoute:h,clicksContext:p,queryClicksRaw:d,queryClicks:g,getPrimaryClicks:v}}),Ot=zt(()=>{const t=$i(),e=He(),s=ls(t.currentSlideRoute,t.clicksContext,t.queryClicks,t.isPresenter,t.isPrintMode,e);return oe([s.total,t.currentRoute],async()=>{t.hasPrimarySlide.value&&!ye(t.currentRoute.value.params.no)&&await s.goLast()},{flush:"pre",immediate:!0}),{...s,...t}}),Ni=[];function Ri(){const t=jt().appContext.app,e=E({nav:Ot(),configs:T,themeConfigs:y(()=>T.themeConfig)});t.provide(Gn,P("none")),t.provide(Yn,e),t.provide(Un,y(()=>e.nav.currentSlideNo)),t.provide(ut,Wt(Oi()));for(const f of Ni)f();const s=T.titleTemplate.replace("%s",T.title||"Slidev"),{clicksContext:n,currentSlideNo:r,hasPrimarySlide:i,isNotesViewer:o,isPresenter:a}=Ot();Fn({title:s,htmlAttrs:T.htmlAttrs}),Wn(`${s} - shared`),Bn(`${s} - drawings`);const l=`${location.origin}_${pi()}`;function c(){o.value||!a.value&&!Kn.includes(location.host.split(":")[0])||(a.value?(le("page",+r.value),le("clicks",n.value.current)):(le("viewerPage",+r.value),le("viewerClicks",n.value.current)),le("lastUpdate",{id:l,type:a.value?"presenter":"viewer",time:new Date().getTime()}))}const u=He();u.afterEach(c),oe(n,c),zn(f=>{var h;i.value&&((h=f.lastUpdate)==null?void 0:h.type)==="presenter"&&(+f.page!=+r.value||+n.value.current!=+f.clicks)&&(Jt.value=!1,u.replace({path:$e(f.page,a.value),query:{...u.currentRoute.value.query,clicks:f.clicks||0}}))})}const Fi=$s({__name:"App",setup(t){return Ri(),ie(()=>{for(const[e,s]of Object.entries(Ks.value))document.body.style.setProperty(e,s.toString())}),(e,s)=>{const n=Ns("RouterView");return Dt(),Rs(n)}}}),Hi=ss(Fi,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/App.vue"]]);function cs(t,e,s){var n;return((n=t.instance)==null?void 0:n.$).provides[e]??s}function ji(){return{install(t){t.directive("click",{name:"v-click",mounted(e,s){const n=Pe(e,s,s.value);if(n==null)return;e.classList.toggle(Ae,!0);const r=Array.isArray(n.clicks)?n.clicks:[n.clicks,void 0];e.dataset.slidevClicksStart=String(r[0]),r[1]!=null&&(e.dataset.slidevClicksEnd=String(r[1])),ie(()=>{const i=n.isActive.value,o=n.isCurrent.value,a=i&&!o;n.flagHide?(e.classList.toggle(n.flagFade?ue:ce,i),e.classList.toggle(ze,i)):e.classList.toggle(n.flagFade?ue:ce,!i),e.classList.toggle(qe,o),e.classList.toggle(Ve,a)})},unmounted:Ye}),t.directive("after",{name:"v-after",mounted(e,s){const n=Pe(e,s,s.value,!0);n!=null&&(e.classList.toggle(Ae,!0),ie(()=>{const r=n.isActive.value,i=n.isCurrent.value,o=r&&!i;n.flagHide?(e.classList.toggle(n.flagFade?ue:ce,r),e.classList.toggle(ze,r)):e.classList.toggle(n.flagFade?ue:ce,!r),e.classList.toggle(qe,i),e.classList.toggle(Ve,o)}))},unmounted:Ye}),t.directive("click-hide",{name:"v-click-hide",mounted(e,s){const n=Pe(e,s,s.value,!1,!0);n!=null&&(e.classList.toggle(Ae,!0),ie(()=>{const r=n.isActive.value,i=n.isCurrent.value,o=r&&!i;e.classList.toggle(n.flagFade?ue:ce,r),e.classList.toggle(ze,r),e.classList.toggle(qe,i),e.classList.toggle(Ve,o)}))},unmounted:Ye})}}}function Ue(t,e){return Array.isArray(t)?t[0]<=e&&e<t[1]:t<=e}function Di(t,e){return Array.isArray(t)?t[0]===e:t===e}function Pe(t,e,s,n=!1,r=!1){var f;const i=(f=cs(e,ut))==null?void 0:f.value;if(!t||!i||s===!1||s==="false")return null;r||(r=e.modifiers.hide!==!1&&e.modifiers.hide!=null);const o=e.modifiers.fade!==!1&&e.modifiers.fade!=null;n?s="+0":(s==null||s===!0||s==="true")&&(s="+1");let a,l,c;Array.isArray(s)?(a=0,l=s,c=+s[1]):{start:l,end:c,delta:a}=i.resolve(s);const u={max:c,clicks:l,delta:a,isActive:y(()=>Ue(l,i.current)),isCurrent:y(()=>Di(l,i.current)),isShown:y(()=>r?!Ue(l,i.current):Ue(l,i.current)),flagFade:o,flagHide:r};return i.register(t,u),u}function Ye(t,e){var n;t.classList.toggle(Ae,!1);const s=(n=cs(e,ut))==null?void 0:n.value;s==null||s.unregister(t)}function us(){return Math.floor(Math.random()*2**31)}class Wi{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}function tt(t,e,s){if(t&&t.length){const[n,r]=e,i=Math.PI/180*s,o=Math.cos(i),a=Math.sin(i);for(const l of t){const[c,u]=l;l[0]=(c-n)*o-(u-r)*a+n,l[1]=(c-n)*a+(u-r)*o+r}}}function zi(t,e,s){const n=[];t.forEach(r=>n.push(...r)),tt(n,e,s)}function qi(t,e){return t[0]===e[0]&&t[1]===e[1]}function Vi(t,e,s,n=1){const r=s,i=Math.max(e,.1),o=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,a=[0,0];if(r)for(const c of o)tt(c,a,r);const l=Bi(o,i,n);if(r){for(const c of o)tt(c,a,-r);zi(l,a,-r)}return l}function Bi(t,e,s){const n=[];for(const c of t){const u=[...c];qi(u[0],u[u.length-1])||u.push([u[0][0],u[0][1]]),u.length>2&&n.push(u)}const r=[];e=Math.max(e,.1);const i=[];for(const c of n)for(let u=0;u<c.length-1;u++){const f=c[u],h=c[u+1];if(f[1]!==h[1]){const d=Math.min(f[1],h[1]);i.push({ymin:d,ymax:Math.max(f[1],h[1]),x:d===f[1]?f[0]:h[0],islope:(h[0]-f[0])/(h[1]-f[1])})}}if(i.sort((c,u)=>c.ymin<u.ymin?-1:c.ymin>u.ymin?1:c.x<u.x?-1:c.x>u.x?1:c.ymax===u.ymax?0:(c.ymax-u.ymax)/Math.abs(c.ymax-u.ymax)),!i.length)return r;let o=[],a=i[0].ymin,l=0;for(;o.length||i.length;){if(i.length){let c=-1;for(let f=0;f<i.length&&!(i[f].ymin>a);f++)c=f;i.splice(0,c+1).forEach(f=>{o.push({s:a,edge:f})})}if(o=o.filter(c=>!(c.edge.ymax<=a)),o.sort((c,u)=>c.edge.x===u.edge.x?0:(c.edge.x-u.edge.x)/Math.abs(c.edge.x-u.edge.x)),(s!==1||l%e===0)&&o.length>1)for(let c=0;c<o.length;c=c+2){const u=c+1;if(u>=o.length)break;const f=o[c].edge,h=o[u].edge;r.push([[Math.round(f.x),a],[Math.round(h.x),a]])}a+=s,o.forEach(c=>{c.edge.x=c.edge.x+s*c.edge.islope}),l++}return r}function ke(t,e){var s;const n=e.hachureAngle+90;let r=e.hachureGap;r<0&&(r=e.strokeWidth*4),r=Math.round(Math.max(r,.1));let i=1;return e.roughness>=1&&(((s=e.randomizer)===null||s===void 0?void 0:s.next())||Math.random())>.7&&(i=r),Vi(t,r,n,i||1)}class dt{constructor(e){this.helper=e}fillPolygons(e,s){return this._fillPolygons(e,s)}_fillPolygons(e,s){const n=ke(e,s);return{type:"fillSketch",ops:this.renderLines(n,s)}}renderLines(e,s){const n=[];for(const r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],s));return n}}function je(t){const e=t[0],s=t[1];return Math.sqrt(Math.pow(e[0]-s[0],2)+Math.pow(e[1]-s[1],2))}class Ui extends dt{fillPolygons(e,s){let n=s.hachureGap;n<0&&(n=s.strokeWidth*4),n=Math.max(n,.1);const r=Object.assign({},s,{hachureGap:n}),i=ke(e,r),o=Math.PI/180*s.hachureAngle,a=[],l=n*.5*Math.cos(o),c=n*.5*Math.sin(o);for(const[f,h]of i)je([f,h])&&a.push([[f[0]-l,f[1]+c],[...h]],[[f[0]+l,f[1]-c],[...h]]);return{type:"fillSketch",ops:this.renderLines(a,s)}}}class Yi extends dt{fillPolygons(e,s){const n=this._fillPolygons(e,s),r=Object.assign({},s,{hachureAngle:s.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}}class Gi{constructor(e){this.helper=e}fillPolygons(e,s){s=Object.assign({},s,{hachureAngle:0});const n=ke(e,s);return this.dotsOnLines(n,s)}dotsOnLines(e,s){const n=[];let r=s.hachureGap;r<0&&(r=s.strokeWidth*4),r=Math.max(r,.1);let i=s.fillWeight;i<0&&(i=s.strokeWidth/2);const o=r/4;for(const a of e){const l=je(a),c=l/r,u=Math.ceil(c)-1,f=l-u*r,h=(a[0][0]+a[1][0])/2-r/4,d=Math.min(a[0][1],a[1][1]);for(let p=0;p<u;p++){const g=d+f+p*r,v=h-o+Math.random()*2*o,m=g-o+Math.random()*2*o,_=this.helper.ellipse(v,m,i,i,s);n.push(..._.ops)}}return{type:"fillSketch",ops:n}}}class Ki{constructor(e){this.helper=e}fillPolygons(e,s){const n=ke(e,s);return{type:"fillSketch",ops:this.dashedLine(n,s)}}dashedLine(e,s){const n=s.dashOffset<0?s.hachureGap<0?s.strokeWidth*4:s.hachureGap:s.dashOffset,r=s.dashGap<0?s.hachureGap<0?s.strokeWidth*4:s.hachureGap:s.dashGap,i=[];return e.forEach(o=>{const a=je(o),l=Math.floor(a/(n+r)),c=(a+r-l*(n+r))/2;let u=o[0],f=o[1];u[0]>f[0]&&(u=o[1],f=o[0]);const h=Math.atan((f[1]-u[1])/(f[0]-u[0]));for(let d=0;d<l;d++){const p=d*(n+r),g=p+n,v=[u[0]+p*Math.cos(h)+c*Math.cos(h),u[1]+p*Math.sin(h)+c*Math.sin(h)],m=[u[0]+g*Math.cos(h)+c*Math.cos(h),u[1]+g*Math.sin(h)+c*Math.sin(h)];i.push(...this.helper.doubleLineOps(v[0],v[1],m[0],m[1],s))}}),i}}class Zi{constructor(e){this.helper=e}fillPolygons(e,s){const n=s.hachureGap<0?s.strokeWidth*4:s.hachureGap,r=s.zigzagOffset<0?n:s.zigzagOffset;s=Object.assign({},s,{hachureGap:n+r});const i=ke(e,s);return{type:"fillSketch",ops:this.zigzagLines(i,r,s)}}zigzagLines(e,s,n){const r=[];return e.forEach(i=>{const o=je(i),a=Math.round(o/(2*s));let l=i[0],c=i[1];l[0]>c[0]&&(l=i[1],c=i[0]);const u=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let f=0;f<a;f++){const h=f*2*s,d=(f+1)*2*s,p=Math.sqrt(2*Math.pow(s,2)),g=[l[0]+h*Math.cos(u),l[1]+h*Math.sin(u)],v=[l[0]+d*Math.cos(u),l[1]+d*Math.sin(u)],m=[g[0]+p*Math.cos(u+Math.PI/4),g[1]+p*Math.sin(u+Math.PI/4)];r.push(...this.helper.doubleLineOps(g[0],g[1],m[0],m[1],n),...this.helper.doubleLineOps(m[0],m[1],v[0],v[1],n))}}),r}}const O={};function Ji(t,e){let s=t.fillStyle||"hachure";if(!O[s])switch(s){case"zigzag":O[s]||(O[s]=new Ui(e));break;case"cross-hatch":O[s]||(O[s]=new Yi(e));break;case"dots":O[s]||(O[s]=new Gi(e));break;case"dashed":O[s]||(O[s]=new Ki(e));break;case"zigzag-line":O[s]||(O[s]=new Zi(e));break;case"hachure":default:s="hachure",O[s]||(O[s]=new dt(e));break}return O[s]}const Qi=0,st=1,fs=2,xe={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Xi(t){const e=new Array;for(;t!=="";)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:Qi,text:RegExp.$1},t=t.substr(RegExp.$1.length);else if(t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))e[e.length]={type:st,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length);else return[];return e[e.length]={type:fs,text:""},e}function Ge(t,e){return t.type===e}function pt(t){const e=[],s=Xi(t);let n="BOD",r=0,i=s[r];for(;!Ge(i,fs);){let o=0;const a=[];if(n==="BOD")if(i.text==="M"||i.text==="m")r++,o=xe[i.text],n=i.text;else return pt("M0,0"+t);else Ge(i,st)?o=xe[n]:(r++,o=xe[i.text],n=i.text);if(r+o<s.length){for(let l=r;l<r+o;l++){const c=s[l];if(Ge(c,st))a[a.length]=+c.text;else throw new Error("Param not a number: "+n+","+c.text)}if(typeof xe[n]=="number"){const l={key:n,data:a};e.push(l),r+=o,i=s[r],n==="M"&&(n="L"),n==="m"&&(n="l")}else throw new Error("Bad segment: "+n)}else throw new Error("Path data ended short")}return e}function hs(t){let e=0,s=0,n=0,r=0;const i=[];for(const{key:o,data:a}of t)switch(o){case"M":i.push({key:"M",data:[...a]}),[e,s]=a,[n,r]=a;break;case"m":e+=a[0],s+=a[1],i.push({key:"M",data:[e,s]}),n=e,r=s;break;case"L":i.push({key:"L",data:[...a]}),[e,s]=a;break;case"l":e+=a[0],s+=a[1],i.push({key:"L",data:[e,s]});break;case"C":i.push({key:"C",data:[...a]}),e=a[4],s=a[5];break;case"c":{const l=a.map((c,u)=>u%2?c+s:c+e);i.push({key:"C",data:l}),e=l[4],s=l[5];break}case"Q":i.push({key:"Q",data:[...a]}),e=a[2],s=a[3];break;case"q":{const l=a.map((c,u)=>u%2?c+s:c+e);i.push({key:"Q",data:l}),e=l[2],s=l[3];break}case"A":i.push({key:"A",data:[...a]}),e=a[5],s=a[6];break;case"a":e+=a[5],s+=a[6],i.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,s]});break;case"H":i.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],i.push({key:"H",data:[e]});break;case"V":i.push({key:"V",data:[...a]}),s=a[0];break;case"v":s+=a[0],i.push({key:"V",data:[s]});break;case"S":i.push({key:"S",data:[...a]}),e=a[2],s=a[3];break;case"s":{const l=a.map((c,u)=>u%2?c+s:c+e);i.push({key:"S",data:l}),e=l[2],s=l[3];break}case"T":i.push({key:"T",data:[...a]}),e=a[0],s=a[1];break;case"t":e+=a[0],s+=a[1],i.push({key:"T",data:[e,s]});break;case"Z":case"z":i.push({key:"Z",data:[]}),e=n,s=r;break}return i}function ds(t){const e=[];let s="",n=0,r=0,i=0,o=0,a=0,l=0;for(const{key:c,data:u}of t){switch(c){case"M":e.push({key:"M",data:[...u]}),[n,r]=u,[i,o]=u;break;case"C":e.push({key:"C",data:[...u]}),n=u[4],r=u[5],a=u[2],l=u[3];break;case"L":e.push({key:"L",data:[...u]}),[n,r]=u;break;case"H":n=u[0],e.push({key:"L",data:[n,r]});break;case"V":r=u[0],e.push({key:"L",data:[n,r]});break;case"S":{let f=0,h=0;s==="C"||s==="S"?(f=n+(n-a),h=r+(r-l)):(f=n,h=r),e.push({key:"C",data:[f,h,...u]}),a=u[0],l=u[1],n=u[2],r=u[3];break}case"T":{const[f,h]=u;let d=0,p=0;s==="Q"||s==="T"?(d=n+(n-a),p=r+(r-l)):(d=n,p=r);const g=n+2*(d-n)/3,v=r+2*(p-r)/3,m=f+2*(d-f)/3,_=h+2*(p-h)/3;e.push({key:"C",data:[g,v,m,_,f,h]}),a=d,l=p,n=f,r=h;break}case"Q":{const[f,h,d,p]=u,g=n+2*(f-n)/3,v=r+2*(h-r)/3,m=d+2*(f-d)/3,_=p+2*(h-p)/3;e.push({key:"C",data:[g,v,m,_,d,p]}),a=f,l=h,n=d,r=p;break}case"A":{const f=Math.abs(u[0]),h=Math.abs(u[1]),d=u[2],p=u[3],g=u[4],v=u[5],m=u[6];f===0||h===0?(e.push({key:"C",data:[n,r,v,m,v,m]}),n=v,r=m):(n!==v||r!==m)&&(ps(n,r,v,m,f,h,d,p,g).forEach(function(b){e.push({key:"C",data:b})}),n=v,r=m);break}case"Z":e.push({key:"Z",data:[]}),n=i,r=o;break}s=c}return e}function eo(t){return Math.PI*t/180}function he(t,e,s){const n=t*Math.cos(s)-e*Math.sin(s),r=t*Math.sin(s)+e*Math.cos(s);return[n,r]}function ps(t,e,s,n,r,i,o,a,l,c){const u=eo(o);let f=[],h=0,d=0,p=0,g=0;if(c)[h,d,p,g]=c;else{[t,e]=he(t,e,-u),[s,n]=he(s,n,-u);const S=(t-s)/2,w=(e-n)/2;let M=S*S/(r*r)+w*w/(i*i);M>1&&(M=Math.sqrt(M),r=M*r,i=M*i);const q=a===l?-1:1,R=r*r,H=i*i,De=R*H-R*w*w-H*S*S,we=R*w*w+H*S*S,ae=q*Math.sqrt(Math.abs(De/we));p=ae*r*w/i+(t+s)/2,g=ae*-i*S/r+(e+n)/2,h=Math.asin(parseFloat(((e-g)/i).toFixed(9))),d=Math.asin(parseFloat(((n-g)/i).toFixed(9))),t<p&&(h=Math.PI-h),s<p&&(d=Math.PI-d),h<0&&(h=Math.PI*2+h),d<0&&(d=Math.PI*2+d),l&&h>d&&(h=h-Math.PI*2),!l&&d>h&&(d=d-Math.PI*2)}let v=d-h;if(Math.abs(v)>Math.PI*120/180){const S=d,w=s,M=n;l&&d>h?d=h+Math.PI*120/180*1:d=h+Math.PI*120/180*-1,s=p+r*Math.cos(d),n=g+i*Math.sin(d),f=ps(s,n,w,M,r,i,o,0,l,[d,S,p,g])}v=d-h;const m=Math.cos(h),_=Math.sin(h),b=Math.cos(d),x=Math.sin(d),L=Math.tan(v/4),D=4/3*r*L,se=4/3*i*L,W=[t,e],z=[t+D*_,e-se*m],_e=[s+D*x,n-se*b],be=[s,n];if(z[0]=2*W[0]-z[0],z[1]=2*W[1]-z[1],c)return[z,_e,be].concat(f);{f=[z,_e,be].concat(f);const S=[];for(let w=0;w<f.length;w+=3){const M=he(f[w][0],f[w][1],u),q=he(f[w+1][0],f[w+1][1],u),R=he(f[w+2][0],f[w+2][1],u);S.push([M[0],M[1],q[0],q[1],R[0],R[1]])}return S}}const to={randOffset:ro,randOffsetWithRange:io,ellipse:nt,doubleLineOps:oo};function $(t,e,s,n,r){return{type:"path",ops:U(t,e,s,n,r)}}function pe(t,e,s){const n=(t||[]).length;if(n>2){const r=[];for(let i=0;i<n-1;i++)r.push(...U(t[i][0],t[i][1],t[i+1][0],t[i+1][1],s));return e&&r.push(...U(t[n-1][0],t[n-1][1],t[0][0],t[0][1],s)),{type:"path",ops:r}}else if(n===2)return $(t[0][0],t[0][1],t[1][0],t[1][1],s);return{type:"path",ops:[]}}function so(t,e){return pe(t,!0,e)}function gs(t,e,s,n,r){const i=[[t,e],[t+s,e],[t+s,e+n],[t,e+n]];return so(i,r)}function Ct(t,e){if(t.length){const n=typeof t[0][0]=="number"?[t]:t,r=Me(n[0],1*(1+e.roughness*.2),e),i=e.disableMultiStroke?[]:Me(n[0],1.5*(1+e.roughness*.22),It(e));for(let o=1;o<n.length;o++){const a=n[o];if(a.length){const l=Me(a,1*(1+e.roughness*.2),e),c=e.disableMultiStroke?[]:Me(a,1.5*(1+e.roughness*.22),It(e));for(const u of l)u.op!=="move"&&r.push(u);for(const u of c)u.op!=="move"&&i.push(u)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function nt(t,e,s,n,r){const i=ms(s,n,r);return rt(t,e,r,i).opset}function ms(t,e,s){const n=Math.sqrt(Math.PI*2*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),r=Math.ceil(Math.max(s.curveStepCount,s.curveStepCount/Math.sqrt(200)*n)),i=Math.PI*2/r;let o=Math.abs(t/2),a=Math.abs(e/2);const l=1-s.curveFitting;return o+=k(o*l,s),a+=k(a*l,s),{increment:i,rx:o,ry:a}}function rt(t,e,s,n){const[r,i]=$t(n.increment,t,e,n.rx,n.ry,1,n.increment*Ne(.1,Ne(.4,1,s),s),s);let o=Re(r,null,s);if(!s.disableMultiStroke&&s.roughness!==0){const[a]=$t(n.increment,t,e,n.rx,n.ry,1.5,0,s),l=Re(a,null,s);o=o.concat(l)}return{estimatedPoints:i,opset:{type:"path",ops:o}}}function Et(t,e,s,n,r,i,o,a,l){const c=t,u=e;let f=Math.abs(s/2),h=Math.abs(n/2);f+=k(f*.01,l),h+=k(h*.01,l);let d=r,p=i;for(;d<0;)d+=Math.PI*2,p+=Math.PI*2;p-d>Math.PI*2&&(d=0,p=Math.PI*2);const g=Math.PI*2/l.curveStepCount,v=Math.min(g/2,(p-d)/2),m=Nt(v,c,u,f,h,d,p,1,l);if(!l.disableMultiStroke){const _=Nt(v,c,u,f,h,d,p,1.5,l);m.push(..._)}return o&&(a?m.push(...U(c,u,c+f*Math.cos(d),u+h*Math.sin(d),l),...U(c,u,c+f*Math.cos(p),u+h*Math.sin(p),l)):m.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+f*Math.cos(d),u+h*Math.sin(d)]})),{type:"path",ops:m}}function Lt(t,e){const s=ds(hs(pt(t))),n=[];let r=[0,0],i=[0,0];for(const{key:o,data:a}of s)switch(o){case"M":{i=[a[0],a[1]],r=[a[0],a[1]];break}case"L":n.push(...U(i[0],i[1],a[0],a[1],e)),i=[a[0],a[1]];break;case"C":{const[l,c,u,f,h,d]=a;n.push(...ao(l,c,u,f,h,d,i,e)),i=[h,d];break}case"Z":n.push(...U(i[0],i[1],r[0],r[1],e)),i=[r[0],r[1]];break}return{type:"path",ops:n}}function Ke(t,e){const s=[];for(const n of t)if(n.length){const r=e.maxRandomnessOffset||0,i=n.length;if(i>2){s.push({op:"move",data:[n[0][0]+k(r,e),n[0][1]+k(r,e)]});for(let o=1;o<i;o++)s.push({op:"lineTo",data:[n[o][0]+k(r,e),n[o][1]+k(r,e)]})}}return{type:"fillPath",ops:s}}function re(t,e){return Ji(e,to).fillPolygons(t,e)}function no(t,e,s,n,r,i,o){const a=t,l=e;let c=Math.abs(s/2),u=Math.abs(n/2);c+=k(c*.01,o),u+=k(u*.01,o);let f=r,h=i;for(;f<0;)f+=Math.PI*2,h+=Math.PI*2;h-f>Math.PI*2&&(f=0,h=Math.PI*2);const d=(h-f)/o.curveStepCount,p=[];for(let g=f;g<=h;g=g+d)p.push([a+c*Math.cos(g),l+u*Math.sin(g)]);return p.push([a+c*Math.cos(h),l+u*Math.sin(h)]),p.push([a,l]),re([p],o)}function ro(t,e){return k(t,e)}function io(t,e,s){return Ne(t,e,s)}function oo(t,e,s,n,r){return U(t,e,s,n,r,!0)}function It(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function vs(t){return t.randomizer||(t.randomizer=new Wi(t.seed||0)),t.randomizer.next()}function Ne(t,e,s,n=1){return s.roughness*n*(vs(s)*(e-t)+t)}function k(t,e,s=1){return Ne(-t,t,e,s)}function U(t,e,s,n,r,i=!1){const o=i?r.disableMultiStrokeFill:r.disableMultiStroke,a=it(t,e,s,n,r,!0,!1);if(o)return a;const l=it(t,e,s,n,r,!0,!0);return a.concat(l)}function it(t,e,s,n,r,i,o){const a=Math.pow(t-s,2)+Math.pow(e-n,2),l=Math.sqrt(a);let c=1;l<200?c=1:l>500?c=.4:c=-.0016668*l+1.233334;let u=r.maxRandomnessOffset||0;u*u*100>a&&(u=l/10);const f=u/2,h=.2+vs(r)*.2;let d=r.bowing*r.maxRandomnessOffset*(n-e)/200,p=r.bowing*r.maxRandomnessOffset*(t-s)/200;d=k(d,r,c),p=k(p,r,c);const g=[],v=()=>k(f,r,c),m=()=>k(u,r,c),_=r.preserveVertices;return i&&(o?g.push({op:"move",data:[t+(_?0:v()),e+(_?0:v())]}):g.push({op:"move",data:[t+(_?0:k(u,r,c)),e+(_?0:k(u,r,c))]})),o?g.push({op:"bcurveTo",data:[d+t+(s-t)*h+v(),p+e+(n-e)*h+v(),d+t+2*(s-t)*h+v(),p+e+2*(n-e)*h+v(),s+(_?0:v()),n+(_?0:v())]}):g.push({op:"bcurveTo",data:[d+t+(s-t)*h+m(),p+e+(n-e)*h+m(),d+t+2*(s-t)*h+m(),p+e+2*(n-e)*h+m(),s+(_?0:m()),n+(_?0:m())]}),g}function Me(t,e,s){if(!t.length)return[];const n=[];n.push([t[0][0]+k(e,s),t[0][1]+k(e,s)]),n.push([t[0][0]+k(e,s),t[0][1]+k(e,s)]);for(let r=1;r<t.length;r++)n.push([t[r][0]+k(e,s),t[r][1]+k(e,s)]),r===t.length-1&&n.push([t[r][0]+k(e,s),t[r][1]+k(e,s)]);return Re(n,null,s)}function Re(t,e,s){const n=t.length,r=[];if(n>3){const i=[],o=1-s.curveTightness;r.push({op:"move",data:[t[1][0],t[1][1]]});for(let a=1;a+2<n;a++){const l=t[a];i[0]=[l[0],l[1]],i[1]=[l[0]+(o*t[a+1][0]-o*t[a-1][0])/6,l[1]+(o*t[a+1][1]-o*t[a-1][1])/6],i[2]=[t[a+1][0]+(o*t[a][0]-o*t[a+2][0])/6,t[a+1][1]+(o*t[a][1]-o*t[a+2][1])/6],i[3]=[t[a+1][0],t[a+1][1]],r.push({op:"bcurveTo",data:[i[1][0],i[1][1],i[2][0],i[2][1],i[3][0],i[3][1]]})}if(e&&e.length===2){const a=s.maxRandomnessOffset;r.push({op:"lineTo",data:[e[0]+k(a,s),e[1]+k(a,s)]})}}else n===3?(r.push({op:"move",data:[t[1][0],t[1][1]]}),r.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):n===2&&r.push(...it(t[0][0],t[0][1],t[1][0],t[1][1],s,!0,!0));return r}function $t(t,e,s,n,r,i,o,a){const l=a.roughness===0,c=[],u=[];if(l){t=t/4,u.push([e+n*Math.cos(-t),s+r*Math.sin(-t)]);for(let f=0;f<=Math.PI*2;f=f+t){const h=[e+n*Math.cos(f),s+r*Math.sin(f)];c.push(h),u.push(h)}u.push([e+n*Math.cos(0),s+r*Math.sin(0)]),u.push([e+n*Math.cos(t),s+r*Math.sin(t)])}else{const f=k(.5,a)-Math.PI/2;u.push([k(i,a)+e+.9*n*Math.cos(f-t),k(i,a)+s+.9*r*Math.sin(f-t)]);const h=Math.PI*2+f-.01;for(let d=f;d<h;d=d+t){const p=[k(i,a)+e+n*Math.cos(d),k(i,a)+s+r*Math.sin(d)];c.push(p),u.push(p)}u.push([k(i,a)+e+n*Math.cos(f+Math.PI*2+o*.5),k(i,a)+s+r*Math.sin(f+Math.PI*2+o*.5)]),u.push([k(i,a)+e+.98*n*Math.cos(f+o),k(i,a)+s+.98*r*Math.sin(f+o)]),u.push([k(i,a)+e+.9*n*Math.cos(f+o*.5),k(i,a)+s+.9*r*Math.sin(f+o*.5)])}return[u,c]}function Nt(t,e,s,n,r,i,o,a,l){const c=i+k(.1,l),u=[];u.push([k(a,l)+e+.9*n*Math.cos(c-t),k(a,l)+s+.9*r*Math.sin(c-t)]);for(let f=c;f<=o;f=f+t)u.push([k(a,l)+e+n*Math.cos(f),k(a,l)+s+r*Math.sin(f)]);return u.push([e+n*Math.cos(o),s+r*Math.sin(o)]),u.push([e+n*Math.cos(o),s+r*Math.sin(o)]),Re(u,null,l)}function ao(t,e,s,n,r,i,o,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let u=[0,0];const f=a.disableMultiStroke?1:2,h=a.preserveVertices;for(let d=0;d<f;d++)d===0?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(h?0:k(c[0],a)),o[1]+(h?0:k(c[0],a))]}),u=h?[r,i]:[r+k(c[d],a),i+k(c[d],a)],l.push({op:"bcurveTo",data:[t+k(c[d],a),e+k(c[d],a),s+k(c[d],a),n+k(c[d],a),u[0],u[1]]});return l}function de(t){return[...t]}function Rt(t,e=0){const s=t.length;if(s<3)throw new Error("A curve must have at least three points.");const n=[];if(s===3)n.push(de(t[0]),de(t[1]),de(t[2]),de(t[2]));else{const r=[];r.push(t[0],t[0]);for(let a=1;a<t.length;a++)r.push(t[a]),a===t.length-1&&r.push(t[a]);const i=[],o=1-e;n.push(de(r[0]));for(let a=1;a+2<r.length;a++){const l=r[a];i[0]=[l[0],l[1]],i[1]=[l[0]+(o*r[a+1][0]-o*r[a-1][0])/6,l[1]+(o*r[a+1][1]-o*r[a-1][1])/6],i[2]=[r[a+1][0]+(o*r[a][0]-o*r[a+2][0])/6,r[a+1][1]+(o*r[a][1]-o*r[a+2][1])/6],i[3]=[r[a+1][0],r[a+1][1]],n.push(i[1],i[2],i[3])}}return n}function lo(t,e){return Math.sqrt(Oe(t,e))}function Oe(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function co(t,e,s){const n=Oe(e,s);if(n===0)return Oe(t,e);let r=((t[0]-e[0])*(s[0]-e[0])+(t[1]-e[1])*(s[1]-e[1]))/n;return r=Math.max(0,Math.min(1,r)),Oe(t,Q(e,s,r))}function Q(t,e,s){return[t[0]+(e[0]-t[0])*s,t[1]+(e[1]-t[1])*s]}function uo(t,e){const s=t[e+0],n=t[e+1],r=t[e+2],i=t[e+3];let o=3*n[0]-2*s[0]-i[0];o*=o;let a=3*n[1]-2*s[1]-i[1];a*=a;let l=3*r[0]-2*i[0]-s[0];l*=l;let c=3*r[1]-2*i[1]-s[1];return c*=c,o<l&&(o=l),a<c&&(a=c),o+a}function ot(t,e,s,n){const r=n||[];if(uo(t,e)<s){const i=t[e+0];r.length?lo(r[r.length-1],i)>1&&r.push(i):r.push(i),r.push(t[e+3])}else{const o=t[e+0],a=t[e+1],l=t[e+2],c=t[e+3],u=Q(o,a,.5),f=Q(a,l,.5),h=Q(l,c,.5),d=Q(u,f,.5),p=Q(f,h,.5),g=Q(d,p,.5);ot([o,u,d,g],0,s,r),ot([g,p,h,c],0,s,r)}return r}function fo(t,e){return Fe(t,0,t.length,e)}function Fe(t,e,s,n,r){const i=r||[],o=t[e],a=t[s-1];let l=0,c=1;for(let u=e+1;u<s-1;++u){const f=co(t[u],o,a);f>l&&(l=f,c=u)}return Math.sqrt(l)>n?(Fe(t,e,c+1,n,i),Fe(t,c,s,n,i)):(i.length||i.push(o),i.push(a)),i}function at(t,e=.15,s){const n=[],r=(t.length-1)/3;for(let i=0;i<r;i++){const o=i*3;ot(t,o,e,n)}return s&&s>0?Fe(n,0,n.length,s):n}function ho(t,e,s){const n=pt(t),r=ds(hs(n)),i=[];let o=[],a=[0,0],l=[];const c=()=>{l.length>=4&&o.push(...at(l,e)),l=[]},u=()=>{c(),o.length&&(i.push(o),o=[])};for(const{key:h,data:d}of r)switch(h){case"M":u(),a=[d[0],d[1]],o.push(a);break;case"L":c(),o.push([d[0],d[1]]);break;case"C":if(!l.length){const p=o.length?o[o.length-1]:a;l.push([p[0],p[1]])}l.push([d[0],d[1]]),l.push([d[2],d[3]]),l.push([d[4],d[5]]);break;case"Z":c(),o.push([a[0],a[1]]);break}if(u(),!s)return i;const f=[];for(const h of i){const d=fo(h,s);d.length&&f.push(d)}return f}const I="none";class po{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return us()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,s,n){return{shape:e,sets:s||[],options:n||this.defaultOptions}}line(e,s,n,r,i){const o=this._o(i);return this._d("line",[$(e,s,n,r,o)],o)}rectangle(e,s,n,r,i){const o=this._o(i),a=[],l=gs(e,s,n,r,o);if(o.fill){const c=[[e,s],[e+n,s],[e+n,s+r],[e,s+r]];o.fillStyle==="solid"?a.push(Ke([c],o)):a.push(re([c],o))}return o.stroke!==I&&a.push(l),this._d("rectangle",a,o)}ellipse(e,s,n,r,i){const o=this._o(i),a=[],l=ms(n,r,o),c=rt(e,s,o,l);if(o.fill)if(o.fillStyle==="solid"){const u=rt(e,s,o,l).opset;u.type="fillPath",a.push(u)}else a.push(re([c.estimatedPoints],o));return o.stroke!==I&&a.push(c.opset),this._d("ellipse",a,o)}circle(e,s,n,r){const i=this.ellipse(e,s,n,n,r);return i.shape="circle",i}linearPath(e,s){const n=this._o(s);return this._d("linearPath",[pe(e,!1,n)],n)}arc(e,s,n,r,i,o,a=!1,l){const c=this._o(l),u=[],f=Et(e,s,n,r,i,o,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const h=Object.assign({},c);h.disableMultiStroke=!0;const d=Et(e,s,n,r,i,o,!0,!1,h);d.type="fillPath",u.push(d)}else u.push(no(e,s,n,r,i,o,c));return c.stroke!==I&&u.push(f),this._d("arc",u,c)}curve(e,s){const n=this._o(s),r=[],i=Ct(e,n);if(n.fill&&n.fill!==I)if(n.fillStyle==="solid"){const o=Ct(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],a=e;if(a.length){const c=typeof a[0][0]=="number"?[a]:a;for(const u of c)u.length<3?o.push(...u):u.length===3?o.push(...at(Rt([u[0],u[0],u[1],u[2]]),10,(1+n.roughness)/2)):o.push(...at(Rt(u),10,(1+n.roughness)/2))}o.length&&r.push(re([o],n))}return n.stroke!==I&&r.push(i),this._d("curve",r,n)}polygon(e,s){const n=this._o(s),r=[],i=pe(e,!0,n);return n.fill&&(n.fillStyle==="solid"?r.push(Ke([e],n)):r.push(re([e],n))),n.stroke!==I&&r.push(i),this._d("polygon",r,n)}path(e,s){const n=this._o(s),r=[];if(!e)return this._d("path",r,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const i=n.fill&&n.fill!=="transparent"&&n.fill!==I,o=n.stroke!==I,a=!!(n.simplification&&n.simplification<1),l=a?4-4*(n.simplification||1):(1+n.roughness)/2,c=ho(e,1,l),u=Lt(e,n);if(i)if(n.fillStyle==="solid")if(c.length===1){const f=Lt(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(f.ops)})}else r.push(Ke(c,n));else r.push(re(c,n));return o&&(a?c.forEach(f=>{r.push(pe(f,!1,n))}):r.push(u)),this._d("path",r,n)}opsToPath(e,s){let n="";for(const r of e.ops){const i=typeof s=="number"&&s>=0?r.data.map(o=>+o.toFixed(s)):r.data;switch(r.op){case"move":n+=`M${i[0]} ${i[1]} `;break;case"bcurveTo":n+=`C${i[0]} ${i[1]}, ${i[2]} ${i[3]}, ${i[4]} ${i[5]} `;break;case"lineTo":n+=`L${i[0]} ${i[1]} `;break}}return n.trim()}toPaths(e){const s=e.sets||[],n=e.options||this.defaultOptions,r=[];for(const i of s){let o=null;switch(i.type){case"path":o={d:this.opsToPath(i),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:I};break;case"fillPath":o={d:this.opsToPath(i),stroke:I,strokeWidth:0,fill:n.fill||I};break;case"fillSketch":o=this.fillSketch(i,n);break}o&&r.push(o)}return r}fillSketch(e,s){let n=s.fillWeight;return n<0&&(n=s.strokeWidth/2),{d:this.opsToPath(e),stroke:s.fill||I,strokeWidth:n,fill:I}}_mergedShape(e){return e.filter((s,n)=>n===0?!0:s.op!=="move")}}const ys="http://www.w3.org/2000/svg",go=800;let Ze=null;function mo(){return Ze||(Ze=new po().defaultOptions),Ze}function Je(t,e,s){return{...mo(),maxRandomnessOffset:2,roughness:t==="highlight"?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,disableMultiStroke:t!=="double",disableMultiStrokeFill:!1,seed:e,...s}}function vo(t){const e=t.padding;if(e||e===0){if(typeof e=="number")return[e,e,e,e];if(Array.isArray(e)){const s=e;if(s.length)switch(s.length){case 4:return[...s];case 1:return[s[0],s[0],s[0],s[0]];case 2:return[...s,...s];case 3:return[...s,s[1]];default:return[s[0],s[1],s[2],s[3]]}}}return[5,5,5,5]}function yo(t,e,s,n,r,i){const o=[];let a=s.strokeWidth||2;const l=vo(s),c=s.animate===void 0?!0:!!s.animate,u=s.iterations||2,f=s.rtl?1:0,h=Je("single",i,s);switch(s.type){case"underline":{const d=e.y+e.h+l[2];for(let p=f;p<u+f;p++)p%2?o.push($(e.x+e.w,d,e.x,d,h)):o.push($(e.x,d,e.x+e.w,d,h));break}case"strike-through":{const d=e.y+e.h/2;for(let p=f;p<u+f;p++)p%2?o.push($(e.x+e.w,d,e.x,d,h)):o.push($(e.x,d,e.x+e.w,d,h));break}case"box":{const d=e.x-l[3],p=e.y-l[0],g=e.w+(l[1]+l[3]),v=e.h+(l[0]+l[2]);for(let m=0;m<u;m++)o.push(gs(d,p,g,v,h));break}case"bracket":{const d=Array.isArray(s.brackets)?s.brackets:s.brackets?[s.brackets]:["right"],p=e.x-l[3]*2,g=e.x+e.w+l[1]*2,v=e.y-l[0]*2,m=e.y+e.h+l[2]*2;for(const _ of d){let b;switch(_){case"bottom":b=[[p,e.y+e.h],[p,m],[g,m],[g,e.y+e.h]];break;case"top":b=[[p,e.y],[p,v],[g,v],[g,e.y]];break;case"left":b=[[e.x,v],[p,v],[p,m],[e.x,m]];break;case"right":b=[[e.x+e.w,v],[g,v],[g,m],[e.x+e.w,m]];break}b&&o.push(pe(b,!1,h))}break}case"crossed-off":{const d=e.x,p=e.y,g=d+e.w,v=p+e.h;for(let m=f;m<u+f;m++)m%2?o.push($(g,v,d,p,h)):o.push($(d,p,g,v,h));for(let m=f;m<u+f;m++)m%2?o.push($(d,v,g,p,h)):o.push($(g,p,d,v,h));break}case"circle":{const d=Je("double",i,s),p=e.w+(l[1]+l[3]),g=e.h+(l[0]+l[2]),v=e.x-l[3]+p/2,m=e.y-l[0]+g/2,_=Math.floor(u/2),b=u-_*2;for(let x=0;x<_;x++)o.push(nt(v,m,p,g,d));for(let x=0;x<b;x++)o.push(nt(v,m,p,g,h));break}case"highlight":{const d=Je("highlight",i,s);a=e.h*.95;const p=e.y+e.h/2;for(let g=f;g<u+f;g++)g%2?o.push($(e.x+e.w,p,e.x,p,d)):o.push($(e.x,p,e.x+e.w,p,d));break}}if(o.length){const d=ko(o),p=[],g=[];let v=0;const m=(_,b,x)=>_.setAttribute(b,x);for(const _ of d){const b=document.createElementNS(ys,"path");if(m(b,"d",_),m(b,"fill","none"),m(b,"stroke",s.color||"currentColor"),m(b,"stroke-width",`${a}`),s.opacity!==void 0&&m(b,"style",`opacity:${s.opacity}`),c){const x=b.getTotalLength();p.push(x),v+=x}t.appendChild(b),g.push(b)}if(c){let _=0;for(let b=0;b<g.length;b++){const x=g[b],L=p[b],D=v?r*(L/v):0,se=n+_,W=x.style;W.strokeDashoffset=`${L}`,W.strokeDasharray=`${L}`,W.animation=`rough-notation-dash ${D}ms ease-out ${se}ms forwards`,_+=D}return Ft(r+n)}}return Ft(0)}function Ft(t){return new Promise(e=>setTimeout(e,t))}function ko(t){const e=[];for(const s of t){let n="";for(const r of s.ops){const i=r.data;switch(r.op){case"move":n.trim()&&e.push(n.trim()),n=`M${i[0]} ${i[1]} `;break;case"bcurveTo":n+=`C${i[0]} ${i[1]}, ${i[2]} ${i[3]}, ${i[4]} ${i[5]} `;break;case"lineTo":n+=`L${i[0]} ${i[1]} `;break}}n.trim()&&e.push(n.trim())}return e}function _o(){if(!window.__rno_kf_s){const t=window.__rno_kf_s=document.createElement("style");t.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(t)}}var bo=Object.defineProperty,wo=(t,e,s)=>e in t?bo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,F=(t,e,s)=>(wo(t,typeof e!="symbol"?e+"":e,s),s);class xo{constructor(e,s){F(this,"_state","unattached"),F(this,"_config"),F(this,"_resizing",!1),F(this,"_ro"),F(this,"_seed",us()),F(this,"_e"),F(this,"_svg"),F(this,"_lastSizes",[]),F(this,"_animationDelay",0),F(this,"_resizeListener",()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state==="showing"&&this.haveRectsChanged()&&this.show()},400))}),F(this,"pendingRefresh"),this._e=e,this._config=JSON.parse(JSON.stringify(s)),this.attach()}getConfig(e){return this._config[e]}setConfig(e,s){this._config[e]!==s&&(this._config[e]=s,this.refresh())}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get class(){return this._config.class}set class(e){this._config.class!==e&&(this._config.class=e,this._svg&&this._svg.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" ")))}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if(this._state==="unattached"&&this._e.parentElement){_o();const e=this._svg=document.createElementNS(ys,"svg");e.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" "));const s=e.style;s.position="absolute",s.top="0",s.left="0",s.overflow="visible",s.pointerEvents="none",s.width="100px",s.height="100px";const n=this._config.type==="highlight";if(this._e.insertAdjacentElement(n?"beforebegin":"afterend",e),this._state="not-showing",n){const r=window.getComputedStyle(this._e).position;(!r||r==="static")&&(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(e=>{for(const s of e)s.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){const e=this.rects();if(e.length===this._lastSizes.length){for(let s=0;s<e.length;s++)if(!this.isSameRect(e[s],this._lastSizes[s]))return!0}else return!0}return!1}isSameRect(e,s){const n=(r,i)=>Math.round(r)===Math.round(i);return n(e.x,s.x)&&n(e.y,s.y)&&n(e.w,s.w)&&n(e.h,s.h)}isShowing(){return this._state!=="not-showing"}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}async show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&await this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&await this.render(this._svg,!1);break}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}async render(e,s){let n=this._config;s&&(n=JSON.parse(JSON.stringify(this._config)),n.animate=!1);const r=this.rects();let i=0;r.forEach(c=>i+=c.w);const o=n.animationDuration||go;let a=0;const l=[];for(let c=0;c<r.length;c++){const u=r[c],f=o*(u.w/i);l.push(yo(e,r[c],n,a+this._animationDelay+(this._config.delay||0),f,this._seed)),a+=f}return this._lastSizes=r,this._state="showing",await Promise.all(l)}rects(){const e=[];if(this._svg)if(this._config.multiline){const s=this._e.getClientRects();for(let n=0;n<s.length;n++)e.push(this.svgRect(this._svg,s[n]))}else e.push(this.svgRect(this._svg,this._e.getBoundingClientRect()));return e}svgRect(e,s){const n=e.getBoundingClientRect(),r=s;return{x:(r.x||r.left)-(n.x||n.left),y:(r.y||r.top)-(n.y||n.top),w:r.width,h:r.height}}}function Mo(t,e){return new xo(t,e)}function C(t,e){return t.class=[t.class,e].filter(Boolean).join(" "),t}const Ht={box:t=>Object.assign(t,{type:"box"}),circle:t=>Object.assign(t,{type:"circle"}),underline:t=>Object.assign(t,{type:"underline"}),highlight:t=>Object.assign(t,{type:"highlight"}),"strike-through":t=>Object.assign(t,{type:"strike-through"}),"crossed-off":t=>Object.assign(t,{type:"crossed-off"}),bracket:t=>Object.assign(t,{type:"bracket"}),strike:t=>Object.assign(t,{type:"strike-through"}),cross:t=>Object.assign(t,{type:"crossed-off"}),crossed:t=>Object.assign(t,{type:"crossed-off"}),linethrough:t=>Object.assign(t,{type:"strike-through"}),"line-through":t=>Object.assign(t,{type:"strike-through"}),black:t=>C(t,"text-black"),blue:t=>C(t,"text-blue"),cyan:t=>C(t,"text-cyan"),gray:t=>C(t,"text-gray"),green:t=>C(t,"text-green"),indigo:t=>C(t,"text-indigo"),lime:t=>C(t,"text-lime"),orange:t=>C(t,"text-orange"),pink:t=>C(t,"text-pink"),purple:t=>C(t,"text-purple"),red:t=>C(t,"text-red"),teal:t=>C(t,"text-teal"),white:t=>C(t,"text-white"),yellow:t=>C(t,"text-yellow")},So=[[/^delay-?(\d+)?$/,(t,e,s)=>{const n=(t[1]?Number.parseInt(t[1]):s)||300;return e.delay=n,e}],[/^(?:op|opacity)-?(\d+)?$/,(t,e,s)=>{const n=(t[1]?Number.parseInt(t[1]):s)||100;return e.opacity=n/100,e}]];function To(){return{install(t){t.directive("mark",{name:"v-mark",mounted:(e,s)=>{const n=y(()=>{const o=typeof s.value=="object"&&!Array.isArray(s.value)?{...s.value}:{at:s.value};let a={at:o.at};const l=Object.entries(s.modifiers).filter(([u,f])=>{if(Ht[u])return a=Ht[u](a,f),!1;for(const[h,d]of So){const p=u.match(h);if(p)return a=d(p,a,f),!1}return!0});l.length&&console.warn("[Slidev] Invalid modifiers for v-mark:",l);const c={...a,...o};return c.type||(c.type="underline"),c}),r=Mo(e,n.value),i=Pe(e,s,n.value.at);if(!i){r.show();return}ie(()=>{let o;n.value.class&&(r.class=n.value.class),n.value.color&&(r.color=n.value.color);const a=n.value.at;a===!0?o=!0:a===!1?o=!1:o=i.isActive.value,o!=null&&(o?r.show():r.hide())})}})}}}const ge=[{name:"print",path:"/print",component:()=>V(()=>import("./slidev/print-jyzcjppc.js"),__vite__mapDeps([12,1,3,4,13,14,15,16]))},{path:"",redirect:{path:"/1"}}];{let t=function(e){if(!T.remote||T.remote===e.query.password)return!0;if(T.remote&&e.query.password===void 0){const s=prompt("Enter password");if(T.remote===s)return!0}return e.params.no?{path:`/${e.params.no}`}:{path:""}};ge.push({path:"/presenter/print",component:()=>V(()=>import("./slidev/print-DuifTBxY.js"),__vite__mapDeps([17,1,18,19,3,4]))}),ge.push({name:"presenter",path:"/presenter/:no",component:()=>V(()=>import("./slidev/presenter-DqwarjmO.js"),__vite__mapDeps([20,21,1,22,23,13,14,2,3,4,24,18,19,25,26,27])),beforeEnter:t}),ge.push({path:"/presenter",redirect:{path:"/presenter/1"}})}ge.push({name:"play",path:"/:no",component:()=>V(()=>import("./slidev/play-C0mExgsc.js"),__vite__mapDeps([28,1,13,14,22,23,21,2,3,4,24,15,29]))});const Ao=[];async function Po(t){function e(){document.documentElement.style.setProperty("--vh",`${window.innerHeight*.01}px`)}e(),window.addEventListener("resize",e);const s=Fs({history:Hs("/slides/fosdem2024"),routes:ge});t.use(s),t.use(Nn()),t.use(ji()),t.use(To()),t.use(js),t.use(Ws,{container:"#twoslash-container"});const n={app:t,router:s};Ce(()=>{s.afterEach(async()=>{await Ce(),et.value+=1})});for(const r of Ao)await r(n)}const ks=Ds(Hi);Po(ks);ks.mount("#app");export{ut as A,zo as B,Ie as C,Y as D,G as E,K as F,Z as G,Lo as H,pi as I,J,Wo as K,qo as L,Zn as M,Fo as N,Ro as O,No as P,V as _,Gs as a,ss as b,T as c,Oi as d,Uo as e,Ys as f,Ho as g,Fn as h,Yn as i,ye as j,me as k,Vo as l,$o as m,j as n,$e as o,Pt as p,rs as q,Eo as r,Io as s,Bo as t,Ot as u,Jt as v,jo as w,Un as x,Gn as y,Do as z};
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.prose :where(h1,h2,h3,h4,h5,h6):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-headings);font-weight:600;line-height:1.25}.prose :where(a):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-links);text-decoration:underline;font-weight:500}.prose :where(a code):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-links)}.prose :where(p,ul,ol,pre):not(:where(.not-prose,.not-prose *)){margin:1em 0;line-height:1.75}.prose :where(blockquote):not(:where(.not-prose,.not-prose *)){margin:1em 0;padding-left:1em;font-style:italic;border-left:.25em solid var(--un-prose-borders)}.prose :where(h1):not(:where(.not-prose,.not-prose *)){margin:1rem 0;font-size:2.25em}.prose :where(h2):not(:where(.not-prose,.not-prose *)){margin:1.75em 0 .5em;font-size:1.75em}.prose :where(h3):not(:where(.not-prose,.not-prose *)){margin:1.5em 0 .5em;font-size:1.375em}.prose :where(h4):not(:where(.not-prose,.not-prose *)){margin:1em 0;font-size:1.125em}.prose :where(img,video):not(:where(.not-prose,.not-prose *)){max-width:100%}.prose :where(figure,picture):not(:where(.not-prose,.not-prose *)){margin:1em 0}.prose :where(figcaption):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-captions);font-size:.875em}.prose :where(code):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-code);font-size:.875em;font-weight:600;font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.prose :where(:not(pre)>code):not(:where(.not-prose,.not-prose *)):before,.prose :where(:not(pre)>code):not(:where(.not-prose,.not-prose *)):after{content:"`"}.prose :where(pre):not(:where(.not-prose,.not-prose *)){padding:1.25rem 1.5rem;overflow-x:auto;border-radius:.375rem}.prose :where(pre,code):not(:where(.not-prose,.not-prose *)){white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;hyphens:none;background:transparent}.prose :where(pre code):not(:where(.not-prose,.not-prose *)){font-weight:inherit}.prose :where(ol,ul):not(:where(.not-prose,.not-prose *)){padding-left:1.25em}.prose :where(ol):not(:where(.not-prose,.not-prose *)){list-style-type:decimal}.prose :where(ol[type=A]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where(.not-prose,.not-prose *)){list-style-type:decimal}.prose :where(ul):not(:where(.not-prose,.not-prose *)){list-style-type:disc}.prose :where(ol>li):not(:where(.not-prose,.not-prose *))::marker,.prose :where(ul>li):not(:where(.not-prose,.not-prose *))::marker,.prose :where(summary):not(:where(.not-prose,.not-prose *))::marker{color:var(--un-prose-lists)}.prose :where(hr):not(:where(.not-prose,.not-prose *)){margin:2em 0;border:1px solid var(--un-prose-hr)}.prose :where(table):not(:where(.not-prose,.not-prose *)){display:block;margin:1em 0;border-collapse:collapse;overflow-x:auto}.prose :where(tr):not(:where(.not-prose,.not-prose *)):nth-child(2n){background:var(--un-prose-bg-soft)}.prose :where(td,th):not(:where(.not-prose,.not-prose *)){border:1px solid var(--un-prose-borders);padding:.625em 1em}.prose :where(abbr):not(:where(.not-prose,.not-prose *)){cursor:help}.prose :where(kbd):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-code);border:1px solid;padding:.25rem .5rem;font-size:.875em;border-radius:.25rem}.prose :where(details):not(:where(.not-prose,.not-prose *)){margin:1em 0;padding:1.25rem 1.5rem;background:var(--un-prose-bg-soft)}.prose :where(summary):not(:where(.not-prose,.not-prose *)){cursor:pointer;font-weight:600}.prose{color:var(--un-prose-body);max-width:65ch}.container{width:100%}.border-main,.dark .dark\:border-main,.dark [border~="dark:main"],.dark [dark\:border~=main],[border~=main]{border-color:#9ca3af33}.border-primary,.hover\:border-primary:hover{border-color:var(--slidev-theme-primary)}.bg-active{background-color:#9ca3af1a}.bg-main{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .bg-main{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.bg-primary{background-color:var(--slidev-theme-primary)}.text-primary,[text-primary=""]{color:var(--slidev-theme-primary)}@media print{.print-container{width:100%}}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 640px){@media print{.print-container{max-width:640px}}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 768px){@media print{.print-container{max-width:768px}}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1024px){@media print{.print-container{max-width:1024px}}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1280px){@media print{.print-container{max-width:1280px}}}@media (min-width: 1536px){.container{max-width:1536px}}@media (min-width: 1536px){@media print{.print-container{max-width:1536px}}}:root{--slidev-code-background: #f5f5f5;--slidev-code-foreground: #1b1b1b;--slidev-code-font-family: "Fira Code",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--slidev-code-padding: 8px;--slidev-code-font-size: 12px;--slidev-code-line-height: 18px;--slidev-code-radius: 4px;--slidev-code-margin: 4px 0;--slidev-theme-primary: #3ab9d5;--slidev-transition-duration: .5s;--slidev-slide-container-background: black;--slidev-controls-foreground: white}html.dark{--slidev-code-background: #1b1b1b;--slidev-code-foreground: #eee}html,body,#app,#page-root{padding:0;margin:0;width:100%;height:100vh;height:calc(var(--vh, 1vh) * 100);overflow:hidden;font-family:Avenir Next,Nunito Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}html{background:transparent}.slidev-icon-btn{aspect-ratio:1;display:inline-block;-webkit-user-select:none;user-select:none;outline:none;cursor:pointer;border-radius:.25rem;padding:.25rem;vertical-align:middle;opacity:.75;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.15s;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width: 768px){.slidev-icon-btn{padding:.5rem}}.slidev-icon-btn:hover{--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity));--un-bg-opacity:.1;opacity:1}.slidev-icon-btn.shallow{opacity:.3}.slidev-icon-btn.active{opacity:1}.slidev-icon-btn.disabled{opacity:.25;pointer-events:none}.slidev-vclick-target{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.1s}.slidev-vclick-hidden{opacity:0!important;pointer-events:none!important;-webkit-user-select:none!important;user-select:none!important}.slidev-vclick-fade{opacity:.5}.slidev-icon{display:inline-block;vertical-align:sub;line-height:1em}.slidev-page{position:relative;top:0;left:0;right:0;width:100%}.slidev-note-with-clicks .slidev-note-fade{color:#888888ab}.slidev-note-click-mark{-webkit-user-select:none;user-select:none;font-size:.7em;display:inline-flex;align-items:center;border-width:1px;border-color:transparent;border-radius:.25rem;background-color:#a78bfa1a;padding-left:.25rem;padding-right:.25rem;--un-text-opacity:1;color:rgb(167 139 250 / var(--un-text-opacity));font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.slidev-note-click-mark.slidev-note-click-mark-active{border-width:1px;--un-border-opacity:1;border-color:rgb(167 139 250 / var(--un-border-opacity))}.slidev-note-click-mark.slidev-note-click-mark-past{filter:saturate(0);opacity:.5}.slidev-note-click-mark.slidev-note-click-mark-future{opacity:.5}.slidev-note-click-mark:before{content:"";display:inline-block;--un-icon: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M23 28a1 1 0 0 1-.71-.29l-6.13-6.14l-3.33 5a1 1 0 0 1-1 .44a1 1 0 0 1-.81-.7l-6-20A1 1 0 0 1 6.29 5l20 6a1 1 0 0 1 .7.81a1 1 0 0 1-.44 1l-5 3.33l6.14 6.13a1 1 0 0 1 0 1.42l-4 4A1 1 0 0 1 23 28m0-2.41L25.59 23l-7.16-7.15l5.25-3.5L7.49 7.49l4.86 16.19l3.5-5.25Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em;opacity:.8}.slidev-note-click-mark:after{content:attr(data-clicks);display:inline-block;transform:translateY(.1em)}.rough-annotation{transform:scale(calc(1 / var(--slidev-slide-scale)))}html.dark:root{color-scheme:dark}html.dark .shiki{color:var(--shiki-dark, inherit);--twoslash-popup-bg: var(--shiki-dark-bg, inherit)}html.dark .shiki span{color:var(--shiki-dark)}html:not(.dark) .shiki{color:var(--shiki-light, inherit);--twoslash-popup-bg: var(--shiki-light-bg, inherit)}html:not(.dark) .shiki span{color:var(--shiki-light)}.twoslash-meta-line.twoslash-popover-line{margin-top:-10px}.slidev-code-wrapper{margin:var(--slidev-code-margin)!important;scroll-padding:var(--slidev-code-padding)}.slidev-code-wrapper:-webkit-scrollbar{width:0px}.slidev-code{font-family:var(--slidev-code-font-family)!important;padding:var(--slidev-code-padding)!important;font-size:var(--slidev-code-font-size)!important;line-height:var(--slidev-code-line-height)!important;border-radius:var(--slidev-code-radius)!important;background:var(--slidev-code-background);overflow:auto}.slidev-code .slidev-code-dishonored{opacity:.3;pointer-events:none}.slidev-code-line-numbers .slidev-code code{counter-reset:step;counter-increment:step calc(var(--start, 1) - 1)}.slidev-code-line-numbers .slidev-code code .line:before{content:counter(step);counter-increment:step;display:inline-block;text-align:right;margin-right:1.5rem;width:1rem;--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.dark .slidev-code-line-numbers .slidev-code code .line:before{--un-text-opacity:1;color:rgb(75 85 99 / var(--un-text-opacity))}.slidev-layout :not(pre)>code{font-size:.9em;background:var(--slidev-code-background);border-radius:var(--slidev-code-radius);padding:.125rem .375rem;font-weight:300}.slidev-layout :not(pre)>code:before{margin-right:-.08em}.katex,.katex :after,.katex :before{border-color:currentColor}.CodeMirror pre.CodeMirror-placeholder{opacity:.4}.slidev-katex-wrapper .mord.dishonored{opacity:.3}.slide-left-enter-active,.slide-left-leave-active,.slide-right-enter-active,.slide-right-leave-active,.slide-up-enter-active,.slide-up-leave-active,.slide-down-enter-active,.slide-down-leave-active{transition:all var(--slidev-transition-duration) ease}.slide-left-enter-from,.slide-right-leave-to{transform:translate(100%)}.slide-left-leave-to,.slide-right-enter-from{transform:translate(-100%)}.slide-up-enter-from,.slide-down-leave-to{transform:translateY(100%)}.slide-up-leave-to,.slide-down-enter-from{transform:translateY(-100%)}.fade-enter-active,.fade-leave-active{transition:opacity var(--slidev-transition-duration) ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-out-leave-active{transition:opacity calc(var(--slidev-transition-duration) * .6) ease-out}.fade-out-enter-active{transition:opacity calc(var(--slidev-transition-duration) * .8) ease-in;transition-delay:calc(var(--slidev-transition-duration) * .6)}.fade-out-enter-from,.fade-out-leave-to{opacity:0}.slidev-layout{height:100%;padding:2.5rem 3.5rem;font-size:1.1rem}.slidev-layout pre,.slidev-layout code{-webkit-user-select:text;user-select:text}.slidev-layout code{font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.slidev-layout h1{margin-bottom:1rem;font-size:2.25rem;line-height:2.5rem}.slidev-layout h6{padding-top:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase}.slidev-layout p{margin-top:1rem;margin-bottom:1rem;line-height:1.5rem}.slidev-layout ul{list-style:square}.slidev-layout ol{list-style:decimal}.slidev-layout li{line-height:1.8em}.slidev-layout blockquote{background:var(--slidev-code-background);color:var(--slidev-code-foreground);border-left-width:1px;border-color:var(--slidev-theme-primary);border-radius:.25rem;padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem}.slidev-layout blockquote>*{margin-top:0;margin-bottom:0}.slidev-layout table{width:100%}.slidev-layout tr{border-bottom-width:1px;border-color:#9ca3af33}.slidev-layout th{text-align:left;font-weight:400}.slidev-layout a{border-bottom-width:1px;border-color:currentColor;border-style:dashed}.slidev-layout a:hover{border-style:solid;color:var(--slidev-theme-primary)}.slidev-layout td,.slidev-layout th{padding:.75rem .5rem}.slidev-layout b,.slidev-layout strong{font-weight:600}.slidev-layout kbd{border-width:1px;border-bottom-width:2px;border-color:#9ca3af33;border-radius:.25rem;--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity));--un-bg-opacity:.05;padding:.125rem .25rem;font-size:.75rem;line-height:1rem;font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.slidev-layout h1,[dir=ltr] h1,.slidev-layout [dir=ltr] h1,.slidev-layout h6,[dir=ltr] h6,.slidev-layout [dir=ltr] h6{margin-left:-.05em;margin-right:0}.slidev-layout li,[dir=ltr] li,.slidev-layout [dir=ltr] li{margin-left:1.1em;margin-right:0;padding-left:.2em;padding-right:0}[dir=rtl] h1,.slidev-layout [dir=rtl] h1,[dir=rtl] h6,.slidev-layout [dir=rtl] h6{margin-right:-.05em;margin-left:0}[dir=rtl] li,.slidev-layout [dir=rtl] li{margin-right:1.1em;margin-left:0;padding-right:.2em;padding-left:0}.slidev-layout h1+p{margin-top:-.5rem;margin-bottom:1rem;opacity:.5}.slidev-layout p+h2,.slidev-layout ul+h2,.slidev-layout table+h2{margin-top:2.5rem}.slidev-layout h1{margin-bottom:1rem;margin-left:-.05em;font-size:2.25rem;line-height:2.5rem}.slidev-layout h2{font-size:1.875rem;line-height:2.25rem}.slidev-layout h3{font-size:1.5rem;line-height:2rem}.slidev-layout h4{font-size:1.25rem;line-height:1.75rem}.slidev-layout h5{font-size:1rem;line-height:1.5rem}.slidev-layout h6{margin-left:-.05em;padding-top:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase}.slidev-layout h6:not(.opacity-100){opacity:.4}.slidev-layout.cover,.slidev-layout.intro{display:grid;height:100%}.slidev-layout.cover h1,.slidev-layout.intro h1{font-size:3.75rem;line-height:1;line-height:5rem}.slidev-layout.fact{display:grid;height:100%;text-align:center}.slidev-layout.fact h1{font-size:6rem;line-height:1;font-weight:700}.slidev-layout.fact h1+p{font-size:1.5rem;line-height:2rem;font-weight:700}.slidev-layout.statement{display:grid;height:100%;text-align:center}.slidev-layout.statement h1{font-size:3.75rem;line-height:1;font-weight:700}.slidev-layout.quote{display:grid;height:100%}.slidev-layout.quote h1+p{margin-top:.5rem}.slidev-layout.section h1{font-size:3.75rem;line-height:1;font-weight:500;line-height:5rem}:root{--prism-scheme: light;--prism-foreground: #6e6e6e;--prism-background: #f4f4f4;--prism-comment: #a8a8a8;--prism-string: #555555;--prism-literal: #333333;--prism-keyword: #000000;--prism-function: #4f4f4f;--prism-deleted: #333333;--prism-class: #333333;--prism-builtin: #757575;--prism-property: #333333;--prism-namespace: #4f4f4f;--prism-punctuation: #ababab;--prism-decorator: var(--prism-class);--prism-operator: var(--prism-punctuation);--prism-number: var(--prism-literal);--prism-boolean: var(--prism-literal);--prism-variable: var(--prism-literal);--prism-constant: var(--prism-literal);--prism-symbol: var(--prism-literal);--prism-interpolation: var(--prism-literal);--prism-selector: var(--prism-keyword);--prism-keyword-control: var(--prism-keyword);--prism-regex: var(--prism-string);--prism-json-property: var(--prism-property);--prism-inline-background: var(--prism-background);--prism-comment-style: italic;--prism-url-decoration: underline;--prism-line-number: #a5a5a5;--prism-line-number-gutter: #333333;--prism-line-highlight-background: #eeeeee;--prism-selection-background: #dddddd;--prism-marker-color: var(--prism-foreground);--prism-marker-opacity: .4;--prism-marker-font-size: .8em;--prism-font-size: 1em;--prism-line-height: 1.5em;--prism-font-family: monospace;--prism-inline-font-size: var(--prism-font-size);--prism-block-font-size: var(--prism-font-size);--prism-tab-size: 2;--prism-block-padding-x: 1em;--prism-block-padding-y: 1em;--prism-block-margin-x: 0;--prism-block-margin-y: .5em;--prism-block-radius: .3em;--prism-inline-padding-x: .3em;--prism-inline-padding-y: .1em;--prism-inline-radius: .3em}div[class*=language-],pre[class*=language-],code[class*=language-]{font-size:var(--prism-font-size);font-family:var(--prism-font-family);direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:var(--prism-line-height);-moz-tab-size:var(--prism-tab-size);-o-tab-size:var(--prism-tab-size);tab-size:var(--prism-tab-size);-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none;color:var(--prism-foreground)!important}div[class*=language-],pre[class*=language-]{font-size:var(--prism-block-font-size);padding:var(--prism-block-padding-y) var(--prism-block-padding-x);margin:var(--prism-block-margin-y) var(--prism-block-margin-x);border-radius:var(--prism-block-radius);overflow:auto;background:var(--prism-background)}:not(pre)>code[class*=language-]{font-size:var(--prism-inline-font-size);padding:var(--prism-inline-padding-y) var(--prism-inline-padding-x);border-radius:var(--prism-inline-radius);background:var(--prism-inline-background)}pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection{background:var(--prism-selection-background)}pre[class*=language-]::selection,pre[class*=language-] ::selection,code[class*=language-]::selection,code[class*=language-] ::selection{background:var(--prism-selection-background)}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:var(--prism-comment);font-style:var(--prism-comment-style)}.token.namespace{color:var(--prism-namespace)}.token.interpolation{color:var(--prism-interpolation)}.token.string{color:var(--prism-string)}.token.punctuation{color:var(--prism-punctuation)}.token.operator{color:var(--prism-operator)}.token.keyword.module,.token.keyword.control-flow{color:var(--prism-keyword-control)}.token.url,.token.symbol,.token.inserted{color:var(--prism-symbol)}.token.constant{color:var(--prism-constant)}.token.string.url{text-decoration:var(--prism-url-decoration)}.token.boolean,.language-json .token.boolean{color:var(--prism-boolean)}.token.number,.language-json .token.number{color:var(--prism-number)}.token.variable{color:var(--prism-variable)}.token.keyword{color:var(--prism-keyword)}.token.atrule,.token.attr-value,.token.selector{color:var(--prism-selector)}.token.function{color:var(--prism-function)}.token.deleted{color:var(--prism-deleted)}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.class-name{color:var(--prism-class)}.token.tag,.token.builtin{color:var(--prism-builtin)}.token.attr-name,.token.property,.token.entity{color:var(--prism-property)}.language-json .token.property{color:var(--prism-json-property)}.token.regex{color:var(--prism-regex)}.token.decorator,.token.annotation{color:var(--prism-decorator)}.line-numbers .line-numbers-rows{border-right-color:var(--prism-line-number)}.line-numbers-rows>span:before{color:var(--prism-line-number-gutter)}.line-highlight{background:var(--prism-line-highlight-background)}:root{--cm-scheme: light;--cm-foreground: #6e6e6e;--cm-background: #f4f4f4;--cm-comment: #a8a8a8;--cm-string: #555555;--cm-literal: #333333;--cm-keyword: #000000;--cm-function: #4f4f4f;--cm-deleted: #333333;--cm-class: #333333;--cm-builtin: #757575;--cm-property: #333333;--cm-namespace: #4f4f4f;--cm-punctuation: #ababab;--cm-decorator: var(--cm-class);--cm-operator: var(--cm-punctuation);--cm-number: var(--cm-literal);--cm-boolean: var(--cm-literal);--cm-variable: var(--cm-literal);--cm-constant: var(--cm-literal);--cm-symbol: var(--cm-literal);--cm-interpolation: var(--cm-literal);--cm-selector: var(--cm-keyword);--cm-keyword-control: var(--cm-keyword);--cm-regex: var(--cm-string);--cm-json-property: var(--cm-property);--cm-inline-background: var(--cm-background);--cm-comment-style: italic;--cm-url-decoration: underline;--cm-line-number: #a5a5a5;--cm-line-number-gutter: #333333;--cm-line-highlight-background: #eeeeee;--cm-selection-background: #aaaaaa;--cm-marker-color: var(--cm-foreground);--cm-marker-opacity: .4;--cm-marker-font-size: .8em;--cm-font-size: 1em;--cm-line-height: 1.5em;--cm-font-family: monospace;--cm-inline-font-size: var(--cm-font-size);--cm-block-font-size: var(--cm-font-size);--cm-tab-size: 2;--cm-block-padding-x: 1em;--cm-block-padding-y: 1em;--cm-block-margin-x: 0;--cm-block-margin-y: .5em;--cm-block-radius: .3em;--cm-inline-padding-x: .3em;--cm-inline-padding-y: .1em;--cm-inline-radius: .3em}.cm-s-vars.CodeMirror{background-color:var(--cm-background);color:var(--cm-foreground)}.cm-s-vars .CodeMirror-gutters{background:var(--cm-line-number-gutter);color:var(--cm-line-number);border:none}.cm-s-vars .CodeMirror-guttermarker,.cm-s-vars .CodeMirror-guttermarker-subtle,.cm-s-vars .CodeMirror-linenumber{color:var(--cm-line-number)}.cm-s-vars div.CodeMirror-selected,.cm-s-vars.CodeMirror-focused div.CodeMirror-selected{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line::selection,.cm-s-vars .CodeMirror-line>span::selection,.cm-s-vars .CodeMirror-line>span>span::selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line::-moz-selection,.cm-s-vars .CodeMirror-line>span::-moz-selection,.cm-s-vars .CodeMirror-line>span>span::-moz-selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-activeline-background{background:var(--cm-line-highlight-background)}.cm-s-vars .cm-keyword{color:var(--cm-keyword)}.cm-s-vars .cm-variable,.cm-s-vars .cm-variable-2,.cm-s-vars .cm-variable-3,.cm-s-vars .cm-type{color:var(--cm-variable)}.cm-s-vars .cm-builtin{color:var(--cm-builtin)}.cm-s-vars .cm-atom{color:var(--cm-literal)}.cm-s-vars .cm-number{color:var(--cm-number)}.cm-s-vars .cm-def{color:var(--cm-decorator)}.cm-s-vars .cm-string,.cm-s-vars .cm-string-2{color:var(--cm-string)}.cm-s-vars .cm-comment{color:var(--cm-comment)}.cm-s-vars .cm-tag{color:var(--cm-builtin)}.cm-s-vars .cm-meta{color:var(--cm-namespace)}.cm-s-vars .cm-attribute,.cm-s-vars .cm-property{color:var(--cm-property)}.cm-s-vars .cm-qualifier{color:var(--cm-keyword)}.cm-s-vars .cm-error{color:var(--prism-deleted)}.cm-s-vars .cm-operator,.cm-s-vars .cm-bracket{color:var(--cm-punctuation)}.cm-s-vars .CodeMirror-matchingbracket{text-decoration:underline}.cm-s-vars .CodeMirror-cursor{border-left:1px solid currentColor}:root{--cm-scheme: var(--prism-scheme);--cm-foreground: var(--prism-foreground);--cm-background: var(--prism-background);--cm-comment: var(--prism-comment);--cm-string: var(--prism-string);--cm-literal: var(--prism-literal);--cm-keyword: var(--prism-keyword);--cm-function: var(--prism-function);--cm-deleted: var(--prism-deleted);--cm-class: var(--prism-class);--cm-builtin: var(--prism-builtin);--cm-property: var(--prism-property);--cm-namespace: var(--prism-namespace);--cm-punctuation: var(--prism-punctuation);--cm-decorator: var(--prism-decorator);--cm-operator: var(--prism-operator);--cm-number: var(--prism-number);--cm-boolean: var(--prism-boolean);--cm-variable: var(--prism-variable);--cm-constant: var(--prism-constant);--cm-symbol: var(--prism-symbol);--cm-interpolation: var(--prism-interpolation);--cm-selector: var(--prism-selector);--cm-keyword-control: var(--prism-keyword-control);--cm-regex: var(--prism-regex);--cm-json-property: var(--prism-json-property);--cm-inline-background: var(--prism-inline-background);--cm-comment-style: var(--prism-comment-style);--cm-url-decoration: var(--prism-url-decoration);--cm-line-number: var(--prism-line-number);--cm-line-number-gutter: var(--prism-line-number-gutter);--cm-line-highlight-background: var(--prism-line-highlight-background);--cm-selection-background: var(--prism-selection-background);--cm-marker-color: var(--prism-marker-color);--cm-marker-opacity: var(--prism-marker-opacity);--cm-marker-font-size: var(--prism-marker-font-size);--cm-font-size: var(--prism-font-size);--cm-line-height: var(--prism-line-height);--cm-font-family: var(--prism-font-family);--cm-inline-font-size: var(--prism-inline-font-size);--cm-block-font-size: var(--prism-block-font-size);--cm-tab-size: var(--prism-tab-size);--cm-block-padding-x: var(--prism-block-padding-x);--cm-block-padding-y: var(--prism-block-padding-y);--cm-block-margin-x: var(--prism-block-margin-x);--cm-block-margin-y: var(--prism-block-margin-y);--cm-block-radius: var(--prism-block-radius);--cm-inline-padding-x: var(--prism-inline-padding-x);--cm-inline-padding-y: var(--prism-inline-padding-y);--cm-inline-radius: var(--prism-inline-radius)}:root{--prism-font-family: var(--slidev-code-font-family);--prism-background: var(--slidev-code-background)}html:not(.dark){--prism-foreground: #393a34;--prism-comment: #a0ada0;--prism-string: #b56959;--prism-literal: #2f8a89;--prism-number: #296aa3;--prism-keyword: #1c6b48;--prism-function: #6c7834;--prism-boolean: #1c6b48;--prism-constant: #a65e2b;--prism-deleted: #a14f55;--prism-class: #2993a3;--prism-builtin: #ab5959;--prism-property: #b58451;--prism-namespace: #b05a78;--prism-punctuation: #8e8f8b;--prism-decorator: #bd8f8f;--prism-regex: #ab5e3f;--prism-json-property: #698c96}html.dark{--prism-foreground: #d4cfbf;--prism-comment: #758575;--prism-string: #d48372;--prism-literal: #429988;--prism-keyword: #4d9375;--prism-boolean: #1c6b48;--prism-number: #6394bf;--prism-variable: #c2b36e;--prism-function: #a1b567;--prism-deleted: #a14f55;--prism-class: #54b1bf;--prism-builtin: #e0a569;--prism-property: #dd8e6e;--prism-namespace: #db889a;--prism-punctuation: #858585;--prism-decorator: #bd8f8f;--prism-regex: #ab5e3f;--prism-json-property: #6b8b9e;--prism-line-number: #888888;--prism-line-number-gutter: #eeeeee;--prism-line-highlight-background: #444444;--prism-selection-background: #444444}:root{--twoslash-popup-bg: var(--slidev-code-background);--twoslash-popup-color: var(--slidev-code-foreground);--twoslash-docs-color: inherit;--twoslash-docs-font: inherit;--twoslash-code-font: "Fira Code",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--twoslash-underline-color: #8888;--twoslash-border-color: #8888;--twoslash-cursor-color: var(--slidev-theme-primary);--twoslash-matched-color: var(--slidev-theme-primary)}.twoslash-popup-container{font-size:13px}.twoslash-popup-container .twoslash-popup-code{font-size:.85em}.twoslash-floating .twoslash-popup-docs-tags .twoslash-popup-docs-tag-name{color:inherit;opacity:.5}.i-svg-spinners-90-ring-with-bg{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath fill='currentColor' d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute,[absolute=""]{position:absolute}.fixed,[fixed=""]{position:fixed}.relative,[relative=""]{position:relative}.inset-0,[inset-0=""]{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.bottom-10{bottom:2.5rem}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-4{right:1rem}.right-5,[right-5=""]{right:1.25rem}.top-0{top:0}.top-1\/2{top:50%}.-top-20{top:-5rem}.top-4{top:1rem}.top-5{top:1.25rem}.-z-1{z-index:-1}.z-1,[z-1=""]{z-index:1}.z-10,[z-10=""]{z-index:10}.z-20{z-index:20}.grid,[grid=""]{display:grid}.grid-cols-\[1fr_max-content\]{grid-template-columns:1fr max-content}.grid-rows-\[1fr_max-content\]{grid-template-rows:1fr max-content}.grid-rows-\[1fr_min-content\]{grid-template-rows:1fr min-content}.m-1{margin:.25rem}.m-4{margin:1rem}.m-auto{margin:auto}.my{margin-top:1rem;margin-bottom:1rem}.children\:my-auto>*,.my-auto{margin-top:auto;margin-bottom:auto}.mb-10{margin-bottom:2.5rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-0{margin-left:0}.-ml-2{margin-left:-.5rem}.mr-1,.mr1{margin-right:.25rem}.mr-2{margin-right:.5rem}.ms{margin-inline-start:1rem}.-mt-0\.5{margin-top:-.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.block{display:block}.inline-block{display:inline-block}.hidden{display:none}.aspect-ratio-initial{aspect-ratio:initial}.h-\[calc\(var\(--vh\,1vh\)\*100\)\]{height:calc(var(--vh,1vh) * 100)}.h-0\.7{height:.175rem}.h-22px{height:22px}.h-3px{height:3px}.h-40px{height:40px}.h-5,.h5,[h5=""]{height:1.25rem}.h-6{height:1.5rem}.h-full,[h-full=""]{height:100%}.h1{height:.25rem}.h2{height:.5rem}.max-w-150{max-width:37.5rem}.max-w-90,[max-w-90=""]{max-width:22.5rem}.max-w-full{max-width:100%}.min-w-16{min-width:4rem}.min-w-90,[min-w-90=""]{min-width:22.5rem}.w-1px{width:1px}.w-22px{width:22px}.w-4,[w-4=""]{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-90,[w-90=""]{width:22.5rem}.w-full,[w-full=""]{width:100%}.flex,[flex=""],[flex~="~"]{display:flex}.flex-auto,[flex-auto=""]{flex:1 1 auto}.flex-none{flex:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.translate-0{--un-translate-x:0;--un-translate-y:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-rotate-45{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:-45deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}[scale~="0.5"]{--un-scale-x:.005;--un-scale-y:.005;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-102{--un-scale-x:1.02;--un-scale-y:1.02;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-85{--un-scale-x:.85;--un-scale-y:.85;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-default{cursor:default}.cursor-pointer,[cursor-pointer=""]{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;user-select:none}.resize{resize:both}.resize-none{resize:none}.break-inside-avoid-page{break-inside:avoid-page}.break-after-page{break-after:page}.place-content-center{place-content:center}.items-center,[items-center=""]{align-items:center}.justify-center,[justify-center=""]{justify-content:center}.gap-2,[flex~=gap-2]{gap:.5rem}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-4{gap:1rem}.gap-x-8{column-gap:2rem}.gap-y-4{row-gap:1rem}.of-auto,.overflow-auto{overflow:auto}.of-hidden,.overflow-hidden,[of-hidden=""]{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.b,.border,.dark .dark\:border,.dark [dark\:border~="~"],[border~="~"],[border~="1"]{border-width:1px}[border~="0"]{border-width:0px}.border-2{border-width:2px}[border~=y]{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-r-2{border-right-width:2px}.border-t,[border~=t]{border-top-width:1px}.border-gray-300\/50{border-color:#d1d5db80}[border~=red]{--un-border-opacity:1;border-color:rgb(248 113 113 / var(--un-border-opacity))}.border-transparent,[border~=transparent]{border-color:transparent}.border-white{--un-border-opacity:1;border-color:rgb(255 255 255 / var(--un-border-opacity))}.rounded,[border~=rounded]{border-radius:.25rem}.rounded-1\/2{border-radius:50%}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.\!border-none{border-style:none!important}[bg~=black]{--un-bg-opacity:1;background-color:rgb(0 0 0 / var(--un-bg-opacity))}.bg-current{background-color:currentColor}.bg-gray\/20{background-color:#9ca3af33}.bg-transparent,[bg-transparent~=","],[bg-transparent~="{"],[bg-transparent~="&&"],[bg-transparent~="text.value"]{background-color:transparent}[bg-transparent~="!valid.value"]{background-color:transparent!important}.hover\:bg-gray-400:hover{--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity))}[bg-transparent~="placeholder:"]::placeholder{background-color:transparent}.\!bg-opacity-75{--un-bg-opacity:.75 !important}[bg~=opacity-80]{--un-bg-opacity:.8}.hover\:bg-opacity-10:hover{--un-bg-opacity:.1}[stroke-width~="1"]{stroke-width:1px}[stroke-width~="2"]{stroke-width:2px}[stroke-width~="3"]{stroke-width:3px}.dark .dark\:stroke-black{--un-stroke-opacity:1;stroke:rgb(0 0 0 / var(--un-stroke-opacity))}.stroke-white{--un-stroke-opacity:1;stroke:rgb(255 255 255 / var(--un-stroke-opacity))}.p-1{padding:.25rem}.p-16{padding:4rem}.p-2{padding:.5rem}.\!p-4{padding:1rem!important}.pa-3{padding:.75rem}.px,.px-4,.px4,[p~=x-4],[px=""]{padding-left:1rem;padding-right:1rem}.py-2,[p~=y-2]{padding-top:.5rem;padding-bottom:.5rem}.px-2,.px2{padding-left:.5rem;padding-right:.5rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-1,.py1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-4{padding-top:1rem;padding-bottom:1rem}[p~=l-1]{padding-left:.25rem}[p~=r-2]{padding-right:.5rem}.pt-\.5,[p~="t-0.5"]{padding-top:.125rem}.pb2{padding-bottom:.5rem}.pl-2{padding-left:.5rem}.pr-6{padding-right:1.5rem}.pie,[pie=""]{padding-inline-end:1rem}.text-center{text-align:center}.text-right,[text-right=""]{text-align:right}.text-wrap{text-wrap:wrap}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm,[text-sm=""],[text~=sm]{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs,[text-xs=""]{font-size:.75rem;line-height:1rem}.text-\$slidev-controls-foreground{color:var(--slidev-controls-foreground)}.text-black{--un-text-opacity:1;color:rgb(0 0 0 / var(--un-text-opacity))}.text-blue{--un-text-opacity:1;color:rgb(96 165 250 / var(--un-text-opacity))}.\!text-current{color:currentColor!important}.text-cyan{--un-text-opacity:1;color:rgb(34 211 238 / var(--un-text-opacity))}.text-gray,.text-gray-400{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.text-green{--un-text-opacity:1;color:rgb(74 222 128 / var(--un-text-opacity))}.text-green-500{--un-text-opacity:1;color:rgb(34 197 94 / var(--un-text-opacity))}.text-indigo{--un-text-opacity:1;color:rgb(129 140 248 / var(--un-text-opacity))}.text-lime{--un-text-opacity:1;color:rgb(163 230 53 / var(--un-text-opacity))}.text-orange{--un-text-opacity:1;color:rgb(251 146 60 / var(--un-text-opacity))}.text-pink{--un-text-opacity:1;color:rgb(244 114 182 / var(--un-text-opacity))}.text-purple{--un-text-opacity:1;color:rgb(192 132 252 / var(--un-text-opacity))}.text-red,.text-red-400{--un-text-opacity:1;color:rgb(248 113 113 / var(--un-text-opacity))}.dark .dark\:text-red-500{--un-text-opacity:1;color:rgb(239 68 68 / var(--un-text-opacity))}.text-red-700{--un-text-opacity:1;color:rgb(185 28 28 / var(--un-text-opacity))}.text-teal{--un-text-opacity:1;color:rgb(45 212 191 / var(--un-text-opacity))}.text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.text-yellow{--un-text-opacity:1;color:rgb(250 204 21 / var(--un-text-opacity))}.font-bold,[font-bold=""]{font-weight:700}.leading-2{line-height:.5rem}.tracking-widest{letter-spacing:.1em}.font-mono,[font-mono=""]{font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.op0,.opacity-0,[op0=""]{opacity:0}.op100,[op100=""]{opacity:1}.op15{opacity:.15}.op25,.opacity-25,[op25=""]{opacity:.25}.op30{opacity:.3}.op50,.opacity-50,[op50=""]{opacity:.5}.op80,.opacity-80{opacity:.8}.\!opacity-0{opacity:0!important}.opacity-10{opacity:.1}.\!opacity-100{opacity:1!important}.opacity-40{opacity:.4}[hover~=op100]:hover,.hover\:opacity-100:hover{opacity:1}.hover\:opacity-90:hover{opacity:.9}.shadow,[shadow~="~"]{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}[shadow~="$event"]{--un-shadow:var(--event);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.outline-none,[outline-none=""]{outline:2px solid transparent;outline-offset:2px}.\!backdrop-blur-0px{--un-backdrop-blur:blur(0px) !important;-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)!important;backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)!important}.backdrop-blur-5px{--un-backdrop-blur:blur(5px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.view-transition-name{view-transition-name:name}@media (max-width: 767.9px){.lt-md\:hidden{display:none}}@media (min-width: 1024px){.lg\:m-2{margin:.5rem}.lg\:gap-1{gap:.25rem}.lg\:p-2{padding:.5rem}.lg\:p-4{padding:1rem}}.shiki-magic-move-container{position:relative;white-space:pre}.shiki-magic-move-item{display:inline-block;transition:color var(--smm-duration, .5s) var(--smm-easing, "ease")}.shiki-magic-move-move,.shiki-magic-move-enter-active,.shiki-magic-move-leave-active{transition:all var(--smm-duration, .5s) var(--smm-easing, "ease")}.shiki-magic-move-container-resize,.shiki-magic-move-container-restyle{transition:all var(--smm-duration, .5s) var(--smm-easing, "ease");transition-delay:calc(var(--smm-duration, .5s) * var(--smm-delay-container, 1))}.shiki-magic-move-move{transition-delay:calc(calc(var(--smm-duration, .5s) * var(--smm-delay-move, 1)) + var(--smm-stagger, 0));z-index:1}.shiki-magic-move-enter-active{transition-delay:calc(calc(var(--smm-duration, .5s) * var(--smm-delay-enter, 1)) + var(--smm-stagger, 0));z-index:1}.shiki-magic-move-leave-active{transition-delay:calc(calc(var(--smm-duration, .5s) * var(--smm-delay-leave, 1)) + var(--smm-stagger, 0))}.shiki-magic-move-enter-from,.shiki-magic-move-leave-to{opacity:0}br.shiki-magic-move-leave-active{display:none}
import{at as E,au as x,av as B,a9 as Ze,aq as M,B as re,ah as Te,aw as Je,ax as Qe,ay as Xe,az as We,aA as ze,aB as Ve,an as ke,ai as y,aC as ve,af as Ee,aD as te,am as $e,aE as en,aF as I,aG as q,aH as nn,aI as rn,aJ as L,ao as tn,ap as sn,aK as C,aL as an,aM as G,ab as J,aN as un,aO as Oe,aj as me,aP as fn,aQ as on,ac as hn,aR as ie}from"./slidev/Mermaid-sWhOKcCj.js";var ln="[object Symbol]";function Q(e){return typeof e=="symbol"||C(e)&&an(e)==ln}function we(e,n){for(var r=-1,t=e==null?0:e.length,i=Array(t);++r<t;)i[r]=n(e[r],r,e);return i}var gn=1/0,se=E?E.prototype:void 0,ae=se?se.toString:void 0;function Pe(e){if(typeof e=="string")return e;if(y(e))return we(e,Pe)+"";if(Q(e))return ae?ae.call(e):"";var n=e+"";return n=="0"&&1/e==-gn?"-0":n}function dn(){}function Le(e,n){for(var r=-1,t=e==null?0:e.length;++r<t&&n(e[r],r,e)!==!1;);return e}function cn(e,n,r,t){for(var i=e.length,s=r+(t?1:-1);t?s--:++s<i;)if(n(e[s],s,e))return s;return-1}function _n(e){return e!==e}function pn(e,n,r){for(var t=r-1,i=e.length;++t<i;)if(e[t]===n)return t;return-1}function bn(e,n,r){return n===n?pn(e,n,r):cn(e,_n,r)}function yn(e,n){var r=e==null?0:e.length;return!!r&&bn(e,n,0)>-1}function T(e){return Te(e)?Je(e):Qe(e)}var An=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tn=/^\w*$/;function X(e,n){if(y(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Q(e)?!0:Tn.test(e)||!An.test(e)||n!=null&&e in Object(n)}var vn=500;function En(e){var n=Xe(e,function(t){return r.size===vn&&r.clear(),t}),r=n.cache;return n}var $n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,On=/\\(\\)?/g,mn=En(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace($n,function(r,t,i,s){n.push(i?s.replace(On,"$1"):t||r)}),n});const wn=mn;function Pn(e){return e==null?"":Pe(e)}function Ie(e,n){return y(e)?e:X(e,n)?[e]:wn(Pn(e))}var Ln=1/0;function U(e){if(typeof e=="string"||Q(e))return e;var n=e+"";return n=="0"&&1/e==-Ln?"-0":n}function Ce(e,n){n=Ie(n,e);for(var r=0,t=n.length;e!=null&&r<t;)e=e[U(n[r++])];return r&&r==t?e:void 0}function In(e,n,r){var t=e==null?void 0:Ce(e,n);return t===void 0?r:t}function W(e,n){for(var r=-1,t=n.length,i=e.length;++r<t;)e[i+r]=n[r];return e}var ue=E?E.isConcatSpreadable:void 0;function Cn(e){return y(e)||ve(e)||!!(ue&&e&&e[ue])}function Se(e,n,r,t,i){var s=-1,a=e.length;for(r||(r=Cn),i||(i=[]);++s<a;){var u=e[s];n>0&&r(u)?n>1?Se(u,n-1,r,t,i):W(i,u):t||(i[i.length]=u)}return i}function Sn(e,n,r,t){var i=-1,s=e==null?0:e.length;for(t&&s&&(r=e[++i]);++i<s;)r=n(r,e[i],i,e);return r}function Nn(e,n){return e&&G(n,T(n),e)}function Fn(e,n){return e&&G(n,J(n),e)}function Ne(e,n){for(var r=-1,t=e==null?0:e.length,i=0,s=[];++r<t;){var a=e[r];n(a,r,e)&&(s[i++]=a)}return s}function Fe(){return[]}var Mn=Object.prototype,Dn=Mn.propertyIsEnumerable,fe=Object.getOwnPropertySymbols,Rn=fe?function(e){return e==null?[]:(e=Object(e),Ne(fe(e),function(n){return Dn.call(e,n)}))}:Fe;const z=Rn;function xn(e,n){return G(e,z(e),n)}var Gn=Object.getOwnPropertySymbols,Un=Gn?function(e){for(var n=[];e;)W(n,z(e)),e=on(e);return n}:Fe;const Me=Un;function Bn(e,n){return G(e,Me(e),n)}function De(e,n,r){var t=n(e);return y(e)?t:W(t,r(e))}function Z(e){return De(e,T,z)}function jn(e){return De(e,J,Me)}var Kn=Object.prototype,Hn=Kn.hasOwnProperty;function Yn(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&Hn.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function qn(e,n){var r=n?Oe(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Zn=/\w*$/;function Jn(e){var n=new e.constructor(e.source,Zn.exec(e));return n.lastIndex=e.lastIndex,n}var oe=E?E.prototype:void 0,he=oe?oe.valueOf:void 0;function Qn(e){return he?Object(he.call(e)):{}}var Xn="[object Boolean]",Wn="[object Date]",zn="[object Map]",Vn="[object Number]",kn="[object RegExp]",er="[object Set]",nr="[object String]",rr="[object Symbol]",tr="[object ArrayBuffer]",ir="[object DataView]",sr="[object Float32Array]",ar="[object Float64Array]",ur="[object Int8Array]",fr="[object Int16Array]",or="[object Int32Array]",hr="[object Uint8Array]",lr="[object Uint8ClampedArray]",gr="[object Uint16Array]",dr="[object Uint32Array]";function cr(e,n,r){var t=e.constructor;switch(n){case tr:return Oe(e);case Xn:case Wn:return new t(+e);case ir:return qn(e,r);case sr:case ar:case ur:case fr:case or:case hr:case lr:case gr:case dr:return un(e,r);case zn:return new t;case Vn:case nr:return new t(e);case kn:return Jn(e);case er:return new t;case rr:return Qn(e)}}var _r="[object Map]";function pr(e){return C(e)&&I(e)==_r}var le=x&&x.isMap,br=le?me(le):pr;const yr=br;var Ar="[object Set]";function Tr(e){return C(e)&&I(e)==Ar}var ge=x&&x.isSet,vr=ge?me(ge):Tr;const Er=vr;var $r=1,Or=2,mr=4,Re="[object Arguments]",wr="[object Array]",Pr="[object Boolean]",Lr="[object Date]",Ir="[object Error]",xe="[object Function]",Cr="[object GeneratorFunction]",Sr="[object Map]",Nr="[object Number]",Ge="[object Object]",Fr="[object RegExp]",Mr="[object Set]",Dr="[object String]",Rr="[object Symbol]",xr="[object WeakMap]",Gr="[object ArrayBuffer]",Ur="[object DataView]",Br="[object Float32Array]",jr="[object Float64Array]",Kr="[object Int8Array]",Hr="[object Int16Array]",Yr="[object Int32Array]",qr="[object Uint8Array]",Zr="[object Uint8ClampedArray]",Jr="[object Uint16Array]",Qr="[object Uint32Array]",l={};l[Re]=l[wr]=l[Gr]=l[Ur]=l[Pr]=l[Lr]=l[Br]=l[jr]=l[Kr]=l[Hr]=l[Yr]=l[Sr]=l[Nr]=l[Ge]=l[Fr]=l[Mr]=l[Dr]=l[Rr]=l[qr]=l[Zr]=l[Jr]=l[Qr]=!0;l[Ir]=l[xe]=l[xr]=!1;function j(e,n,r,t,i,s){var a,u=n&$r,f=n&Or,d=n&mr;if(r&&(a=i?r(e,t,i,s):r(e)),a!==void 0)return a;if(!$e(e))return e;var g=y(e);if(g){if(a=Yn(e),!u)return en(e,a)}else{var o=I(e),h=o==xe||o==Cr;if(q(e))return nn(e,u);if(o==Ge||o==Re||h&&!i){if(a=f||h?{}:rn(e),!u)return f?Bn(e,Fn(a,e)):xn(e,Nn(a,e))}else{if(!l[o])return i?e:{};a=cr(e,o,u)}}s||(s=new L);var A=s.get(e);if(A)return A;s.set(e,a),Er(e)?e.forEach(function(c){a.add(j(c,n,r,c,e,s))}):yr(e)&&e.forEach(function(c,_){a.set(_,j(c,n,r,_,e,s))});var p=d?f?jn:Z:f?J:T,b=g?void 0:p(e);return Le(b||e,function(c,_){b&&(_=c,c=e[_]),tn(a,_,j(c,n,r,_,e,s))}),a}var Xr="__lodash_hash_undefined__";function Wr(e){return this.__data__.set(e,Xr),this}function zr(e){return this.__data__.has(e)}function S(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new ze;++n<r;)this.add(e[n])}S.prototype.add=S.prototype.push=Wr;S.prototype.has=zr;function Vr(e,n){for(var r=-1,t=e==null?0:e.length;++r<t;)if(n(e[r],r,e))return!0;return!1}function Ue(e,n){return e.has(n)}var kr=1,et=2;function Be(e,n,r,t,i,s){var a=r&kr,u=e.length,f=n.length;if(u!=f&&!(a&&f>u))return!1;var d=s.get(e),g=s.get(n);if(d&&g)return d==n&&g==e;var o=-1,h=!0,A=r&et?new S:void 0;for(s.set(e,n),s.set(n,e);++o<u;){var p=e[o],b=n[o];if(t)var c=a?t(b,p,o,n,e,s):t(p,b,o,e,n,s);if(c!==void 0){if(c)continue;h=!1;break}if(A){if(!Vr(n,function(_,$){if(!Ue(A,$)&&(p===_||i(p,_,r,t,s)))return A.push($)})){h=!1;break}}else if(!(p===b||i(p,b,r,t,s))){h=!1;break}}return s.delete(e),s.delete(n),h}function nt(e){var n=-1,r=Array(e.size);return e.forEach(function(t,i){r[++n]=[i,t]}),r}function V(e){var n=-1,r=Array(e.size);return e.forEach(function(t){r[++n]=t}),r}var rt=1,tt=2,it="[object Boolean]",st="[object Date]",at="[object Error]",ut="[object Map]",ft="[object Number]",ot="[object RegExp]",ht="[object Set]",lt="[object String]",gt="[object Symbol]",dt="[object ArrayBuffer]",ct="[object DataView]",de=E?E.prototype:void 0,K=de?de.valueOf:void 0;function _t(e,n,r,t,i,s,a){switch(r){case ct:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case dt:return!(e.byteLength!=n.byteLength||!s(new ie(e),new ie(n)));case it:case st:case ft:return hn(+e,+n);case at:return e.name==n.name&&e.message==n.message;case ot:case lt:return e==n+"";case ut:var u=nt;case ht:var f=t&rt;if(u||(u=V),e.size!=n.size&&!f)return!1;var d=a.get(e);if(d)return d==n;t|=tt,a.set(e,n);var g=Be(u(e),u(n),t,i,s,a);return a.delete(e),g;case gt:if(K)return K.call(e)==K.call(n)}return!1}var pt=1,bt=Object.prototype,yt=bt.hasOwnProperty;function At(e,n,r,t,i,s){var a=r&pt,u=Z(e),f=u.length,d=Z(n),g=d.length;if(f!=g&&!a)return!1;for(var o=f;o--;){var h=u[o];if(!(a?h in n:yt.call(n,h)))return!1}var A=s.get(e),p=s.get(n);if(A&&p)return A==n&&p==e;var b=!0;s.set(e,n),s.set(n,e);for(var c=a;++o<f;){h=u[o];var _=e[h],$=n[h];if(t)var ne=a?t($,_,h,n,e,s):t(_,$,h,e,n,s);if(!(ne===void 0?_===$||i(_,$,r,t,s):ne)){b=!1;break}c||(c=h=="constructor")}if(b&&!c){var N=e.constructor,F=n.constructor;N!=F&&"constructor"in e&&"constructor"in n&&!(typeof N=="function"&&N instanceof N&&typeof F=="function"&&F instanceof F)&&(b=!1)}return s.delete(e),s.delete(n),b}var Tt=1,ce="[object Arguments]",_e="[object Array]",D="[object Object]",vt=Object.prototype,pe=vt.hasOwnProperty;function Et(e,n,r,t,i,s){var a=y(e),u=y(n),f=a?_e:I(e),d=u?_e:I(n);f=f==ce?D:f,d=d==ce?D:d;var g=f==D,o=d==D,h=f==d;if(h&&q(e)){if(!q(n))return!1;a=!0,g=!1}if(h&&!g)return s||(s=new L),a||fn(e)?Be(e,n,r,t,i,s):_t(e,n,f,r,t,i,s);if(!(r&Tt)){var A=g&&pe.call(e,"__wrapped__"),p=o&&pe.call(n,"__wrapped__");if(A||p){var b=A?e.value():e,c=p?n.value():n;return s||(s=new L),i(b,c,r,t,s)}}return h?(s||(s=new L),At(e,n,r,t,i,s)):!1}function k(e,n,r,t,i){return e===n?!0:e==null||n==null||!C(e)&&!C(n)?e!==e&&n!==n:Et(e,n,r,t,k,i)}var $t=1,Ot=2;function mt(e,n,r,t){var i=r.length,s=i,a=!t;if(e==null)return!s;for(e=Object(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){u=r[i];var f=u[0],d=e[f],g=u[1];if(a&&u[2]){if(d===void 0&&!(f in e))return!1}else{var o=new L;if(t)var h=t(d,g,f,e,n,o);if(!(h===void 0?k(g,d,$t|Ot,t,o):h))return!1}}return!0}function je(e){return e===e&&!$e(e)}function wt(e){for(var n=T(e),r=n.length;r--;){var t=n[r],i=e[t];n[r]=[t,i,je(i)]}return n}function Ke(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}function Pt(e){var n=wt(e);return n.length==1&&n[0][2]?Ke(n[0][0],n[0][1]):function(r){return r===e||mt(r,e,n)}}function Lt(e,n){return e!=null&&n in Object(e)}function He(e,n,r){n=Ie(n,e);for(var t=-1,i=n.length,s=!1;++t<i;){var a=U(n[t]);if(!(s=e!=null&&r(e,a)))break;e=e[a]}return s||++t!=i?s:(i=e==null?0:e.length,!!i&&Ve(i)&&ke(a,i)&&(y(e)||ve(e)))}function It(e,n){return e!=null&&He(e,n,Lt)}var Ct=1,St=2;function Nt(e,n){return X(e)&&je(n)?Ke(U(e),n):function(r){var t=In(r,e);return t===void 0&&t===n?It(r,e):k(n,t,Ct|St)}}function Ft(e){return function(n){return n==null?void 0:n[e]}}function Mt(e){return function(n){return Ce(n,e)}}function Dt(e){return X(e)?Ft(U(e)):Mt(e)}function Ye(e){return typeof e=="function"?e:e==null?Ee:typeof e=="object"?y(e)?Nt(e[0],e[1]):Pt(e):Dt(e)}function Rt(e,n){return e&&sn(e,n,T)}function xt(e,n){return function(r,t){if(r==null)return r;if(!Te(r))return e(r,t);for(var i=r.length,s=n?i:-1,a=Object(r);(n?s--:++s<i)&&t(a[s],s,a)!==!1;);return r}}var Gt=xt(Rt);const ee=Gt;function Ut(e,n,r){for(var t=-1,i=e==null?0:e.length;++t<i;)if(r(n,e[t]))return!0;return!1}function Bt(e){return typeof e=="function"?e:Ee}function O(e,n){var r=y(e)?Le:ee;return r(e,Bt(n))}function jt(e,n){var r=[];return ee(e,function(t,i,s){n(t,i,s)&&r.push(t)}),r}function R(e,n){var r=y(e)?Ne:jt;return r(e,Ye(n))}var Kt=Object.prototype,Ht=Kt.hasOwnProperty;function Yt(e,n){return e!=null&&Ht.call(e,n)}function v(e,n){return e!=null&&He(e,n,Yt)}function qt(e,n){return we(n,function(r){return e[r]})}function H(e){return e==null?[]:qt(e,T(e))}function w(e){return e===void 0}function Zt(e,n,r,t,i){return i(e,function(s,a,u){r=t?(t=!1,s):n(r,s,a,u)}),r}function Jt(e,n,r){var t=y(e)?Sn:Zt,i=arguments.length<3;return t(e,Ye(n),r,i,ee)}var Qt=1/0,Xt=B&&1/V(new B([,-0]))[1]==Qt?function(e){return new B(e)}:dn;const Wt=Xt;var zt=200;function Vt(e,n,r){var t=-1,i=yn,s=e.length,a=!0,u=[],f=u;if(r)a=!1,i=Ut;else if(s>=zt){var d=n?null:Wt(e);if(d)return V(d);a=!1,i=Ue,f=new S}else f=n?[]:u;e:for(;++t<s;){var g=e[t],o=n?n(g):g;if(g=r||g!==0?g:0,a&&o===o){for(var h=f.length;h--;)if(f[h]===o)continue e;n&&f.push(o),u.push(g)}else i(f,o,r)||(f!==u&&f.push(o),u.push(g))}return u}var kt=Ze(function(e){return Vt(Se(e,1,We,!0))});const ei=kt;var ni="\0",m="\0",be="";class qe{constructor(n={}){this._isDirected=v(n,"directed")?n.directed:!0,this._isMultigraph=v(n,"multigraph")?n.multigraph:!1,this._isCompound=v(n,"compound")?n.compound:!1,this._label=void 0,this._defaultNodeLabelFn=M(void 0),this._defaultEdgeLabelFn=M(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[m]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(n){return this._label=n,this}graph(){return this._label}setDefaultNodeLabel(n){return re(n)||(n=M(n)),this._defaultNodeLabelFn=n,this}nodeCount(){return this._nodeCount}nodes(){return T(this._nodes)}sources(){var n=this;return R(this.nodes(),function(r){return te(n._in[r])})}sinks(){var n=this;return R(this.nodes(),function(r){return te(n._out[r])})}setNodes(n,r){var t=arguments,i=this;return O(n,function(s){t.length>1?i.setNode(s,r):i.setNode(s)}),this}setNode(n,r){return v(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=r),this):(this._nodes[n]=arguments.length>1?r:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=m,this._children[n]={},this._children[m][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)}node(n){return this._nodes[n]}hasNode(n){return v(this._nodes,n)}removeNode(n){var r=this;if(v(this._nodes,n)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],O(this.children(n),function(i){r.setParent(i)}),delete this._children[n]),O(T(this._in[n]),t),delete this._in[n],delete this._preds[n],O(T(this._out[n]),t),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this}setParent(n,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(w(r))r=m;else{r+="";for(var t=r;!w(t);t=this.parent(t))if(t===n)throw new Error("Setting "+r+" as parent of "+n+" would create a cycle");this.setNode(r)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=r,this._children[r][n]=!0,this}_removeFromParentsChildList(n){delete this._children[this._parent[n]][n]}parent(n){if(this._isCompound){var r=this._parent[n];if(r!==m)return r}}children(n){if(w(n)&&(n=m),this._isCompound){var r=this._children[n];if(r)return T(r)}else{if(n===m)return this.nodes();if(this.hasNode(n))return[]}}predecessors(n){var r=this._preds[n];if(r)return T(r)}successors(n){var r=this._sucs[n];if(r)return T(r)}neighbors(n){var r=this.predecessors(n);if(r)return ei(r,this.successors(n))}isLeaf(n){var r;return this.isDirected()?r=this.successors(n):r=this.neighbors(n),r.length===0}filterNodes(n){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;O(this._nodes,function(a,u){n(u)&&r.setNode(u,a)}),O(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,t.edge(a))});var i={};function s(a){var u=t.parent(a);return u===void 0||r.hasNode(u)?(i[a]=u,u):u in i?i[u]:s(u)}return this._isCompound&&O(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(n){return re(n)||(n=M(n)),this._defaultEdgeLabelFn=n,this}edgeCount(){return this._edgeCount}edges(){return H(this._edgeObjs)}setPath(n,r){var t=this,i=arguments;return Jt(n,function(s,a){return i.length>1?t.setEdge(s,a,r):t.setEdge(s,a),a}),this}setEdge(){var n,r,t,i,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(n=a.v,r=a.w,t=a.name,arguments.length===2&&(i=arguments[1],s=!0)):(n=a,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),n=""+n,r=""+r,w(t)||(t=""+t);var u=P(this._isDirected,n,r,t);if(v(this._edgeLabels,u))return s&&(this._edgeLabels[u]=i),this;if(!w(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(r),this._edgeLabels[u]=s?i:this._defaultEdgeLabelFn(n,r,t);var f=ri(this._isDirected,n,r,t);return n=f.v,r=f.w,Object.freeze(f),this._edgeObjs[u]=f,ye(this._preds[r],n),ye(this._sucs[n],r),this._in[r][u]=f,this._out[n][u]=f,this._edgeCount++,this}edge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t);return this._edgeLabels[i]}hasEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t);return v(this._edgeLabels,i)}removeEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t),s=this._edgeObjs[i];return s&&(n=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],Ae(this._preds[r],n),Ae(this._sucs[n],r),delete this._in[r][i],delete this._out[n][i],this._edgeCount--),this}inEdges(n,r){var t=this._in[n];if(t){var i=H(t);return r?R(i,function(s){return s.v===r}):i}}outEdges(n,r){var t=this._out[n];if(t){var i=H(t);return r?R(i,function(s){return s.w===r}):i}}nodeEdges(n,r){var t=this.inEdges(n,r);if(t)return t.concat(this.outEdges(n,r))}}qe.prototype._nodeCount=0;qe.prototype._edgeCount=0;function ye(e,n){e[n]?e[n]++:e[n]=1}function Ae(e,n){--e[n]||delete e[n]}function P(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}return i+be+s+be+(w(t)?ni:t)}function ri(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}var u={v:i,w:s};return t&&(u.name=t),u}function Y(e,n){return P(e,n.v,n.w,n.name)}export{qe as G,we as a,Se as b,ee as c,Ye as d,Rt as e,O as f,Ce as g,v as h,w as i,j,Bt as k,Ie as l,It as m,R as n,Q as o,U as p,T as q,Jt as r,cn as s,Pn as t,H as v};
import{c as C,s as vt,g as Ct,a as Ot,b as Pt,C as Gt,D as It,l as B,j as D,E as St,h as At,v as Nt,H as Ht,I as Bt}from"./slidev/Mermaid-sWhOKcCj.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var mt=function(){var r=function(I,o,u,d){for(u=u||{},d=I.length;d--;u[I[d]]=o);return u},n=[1,3],l=[1,6],h=[1,4],i=[1,5],c=[2,5],p=[1,12],m=[5,7,13,19,21,23,24,26,28,31,37,40,47],x=[7,13,19,21,23,24,26,28,31,37,40],y=[7,12,13,19,21,23,24,26,28,31,37,40],a=[7,13,47],R=[1,42],_=[1,41],b=[7,13,29,32,35,38,47],f=[1,55],k=[1,56],g=[1,57],E=[7,13,32,35,42,47],z={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(o,u,d,s,T,t,X){var e=t.length-1;switch(T){case 2:return t[e];case 3:return t[e-1];case 4:return s.setDirection(t[e-3]),t[e-1];case 6:s.setOptions(t[e-1]),this.$=t[e];break;case 7:t[e-1]+=t[e],this.$=t[e-1];break;case 9:this.$=[];break;case 10:t[e-1].push(t[e]),this.$=t[e-1];break;case 11:this.$=t[e-1];break;case 16:this.$=t[e].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=t[e].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(t[e].substr(8)),this.$=t[e].substr(8);break;case 21:s.checkout(t[e]);break;case 22:s.branch(t[e]);break;case 23:s.branch(t[e-2],t[e]);break;case 24:s.cherryPick(t[e],"",void 0);break;case 25:s.cherryPick(t[e-2],"",void 0,t[e]);break;case 26:s.cherryPick(t[e-2],"",t[e]);break;case 27:s.cherryPick(t[e-4],"",t[e],t[e-2]);break;case 28:s.cherryPick(t[e-4],"",t[e-2],t[e]);break;case 29:s.cherryPick(t[e],"",t[e-2]);break;case 30:s.cherryPick(t[e],"","");break;case 31:s.cherryPick(t[e-2],"","");break;case 32:s.cherryPick(t[e-4],"","",t[e-2]);break;case 33:s.cherryPick(t[e-4],"","",t[e]);break;case 34:s.cherryPick(t[e-2],"",t[e-4],t[e]);break;case 35:s.cherryPick(t[e-2],"","",t[e]);break;case 36:s.merge(t[e],"","","");break;case 37:s.merge(t[e-2],t[e],"","");break;case 38:s.merge(t[e-2],"",t[e],"");break;case 39:s.merge(t[e-2],"","",t[e]);break;case 40:s.merge(t[e-4],t[e],"",t[e-2]);break;case 41:s.merge(t[e-4],"",t[e],t[e-2]);break;case 42:s.merge(t[e-4],"",t[e-2],t[e]);break;case 43:s.merge(t[e-4],t[e-2],t[e],"");break;case 44:s.merge(t[e-4],t[e-2],"",t[e]);break;case 45:s.merge(t[e-4],t[e],t[e-2],"");break;case 46:s.merge(t[e-6],t[e-4],t[e-2],t[e]);break;case 47:s.merge(t[e-6],t[e],t[e-4],t[e-2]);break;case 48:s.merge(t[e-6],t[e-4],t[e],t[e-2]);break;case 49:s.merge(t[e-6],t[e-2],t[e-4],t[e]);break;case 50:s.merge(t[e-6],t[e],t[e-2],t[e-4]);break;case 51:s.merge(t[e-6],t[e-2],t[e],t[e-4]);break;case 52:s.commit(t[e]);break;case 53:s.commit("","",s.commitType.NORMAL,t[e]);break;case 54:s.commit("","",t[e],"");break;case 55:s.commit("","",t[e],t[e-2]);break;case 56:s.commit("","",t[e-2],t[e]);break;case 57:s.commit("",t[e],s.commitType.NORMAL,"");break;case 58:s.commit("",t[e-2],s.commitType.NORMAL,t[e]);break;case 59:s.commit("",t[e],s.commitType.NORMAL,t[e-2]);break;case 60:s.commit("",t[e-2],t[e],"");break;case 61:s.commit("",t[e],t[e-2],"");break;case 62:s.commit("",t[e-4],t[e-2],t[e]);break;case 63:s.commit("",t[e-4],t[e],t[e-2]);break;case 64:s.commit("",t[e-2],t[e-4],t[e]);break;case 65:s.commit("",t[e],t[e-4],t[e-2]);break;case 66:s.commit("",t[e],t[e-2],t[e-4]);break;case 67:s.commit("",t[e-2],t[e],t[e-4]);break;case 68:s.commit(t[e],"",s.commitType.NORMAL,"");break;case 69:s.commit(t[e],"",s.commitType.NORMAL,t[e-2]);break;case 70:s.commit(t[e-2],"",s.commitType.NORMAL,t[e]);break;case 71:s.commit(t[e-2],"",t[e],"");break;case 72:s.commit(t[e],"",t[e-2],"");break;case 73:s.commit(t[e],t[e-2],s.commitType.NORMAL,"");break;case 74:s.commit(t[e-2],t[e],s.commitType.NORMAL,"");break;case 75:s.commit(t[e-4],"",t[e-2],t[e]);break;case 76:s.commit(t[e-4],"",t[e],t[e-2]);break;case 77:s.commit(t[e-2],"",t[e-4],t[e]);break;case 78:s.commit(t[e],"",t[e-4],t[e-2]);break;case 79:s.commit(t[e],"",t[e-2],t[e-4]);break;case 80:s.commit(t[e-2],"",t[e],t[e-4]);break;case 81:s.commit(t[e-4],t[e],t[e-2],"");break;case 82:s.commit(t[e-4],t[e-2],t[e],"");break;case 83:s.commit(t[e-2],t[e],t[e-4],"");break;case 84:s.commit(t[e],t[e-2],t[e-4],"");break;case 85:s.commit(t[e],t[e-4],t[e-2],"");break;case 86:s.commit(t[e-2],t[e-4],t[e],"");break;case 87:s.commit(t[e-4],t[e],s.commitType.NORMAL,t[e-2]);break;case 88:s.commit(t[e-4],t[e-2],s.commitType.NORMAL,t[e]);break;case 89:s.commit(t[e-2],t[e],s.commitType.NORMAL,t[e-4]);break;case 90:s.commit(t[e],t[e-2],s.commitType.NORMAL,t[e-4]);break;case 91:s.commit(t[e],t[e-4],s.commitType.NORMAL,t[e-2]);break;case 92:s.commit(t[e-2],t[e-4],s.commitType.NORMAL,t[e]);break;case 93:s.commit(t[e-6],t[e-4],t[e-2],t[e]);break;case 94:s.commit(t[e-6],t[e-4],t[e],t[e-2]);break;case 95:s.commit(t[e-6],t[e-2],t[e-4],t[e]);break;case 96:s.commit(t[e-6],t[e],t[e-4],t[e-2]);break;case 97:s.commit(t[e-6],t[e-2],t[e],t[e-4]);break;case 98:s.commit(t[e-6],t[e],t[e-2],t[e-4]);break;case 99:s.commit(t[e-4],t[e-6],t[e-2],t[e]);break;case 100:s.commit(t[e-4],t[e-6],t[e],t[e-2]);break;case 101:s.commit(t[e-2],t[e-6],t[e-4],t[e]);break;case 102:s.commit(t[e],t[e-6],t[e-4],t[e-2]);break;case 103:s.commit(t[e-2],t[e-6],t[e],t[e-4]);break;case 104:s.commit(t[e],t[e-6],t[e-2],t[e-4]);break;case 105:s.commit(t[e],t[e-4],t[e-2],t[e-6]);break;case 106:s.commit(t[e-2],t[e-4],t[e],t[e-6]);break;case 107:s.commit(t[e],t[e-2],t[e-4],t[e-6]);break;case 108:s.commit(t[e-2],t[e],t[e-4],t[e-6]);break;case 109:s.commit(t[e-4],t[e-2],t[e],t[e-6]);break;case 110:s.commit(t[e-4],t[e],t[e-2],t[e-6]);break;case 111:s.commit(t[e-2],t[e-4],t[e-6],t[e]);break;case 112:s.commit(t[e],t[e-4],t[e-6],t[e-2]);break;case 113:s.commit(t[e-2],t[e],t[e-6],t[e-4]);break;case 114:s.commit(t[e],t[e-2],t[e-6],t[e-4]);break;case 115:s.commit(t[e-4],t[e-2],t[e-6],t[e]);break;case 116:s.commit(t[e-4],t[e],t[e-6],t[e-2]);break;case 117:this.$="";break;case 118:this.$=t[e];break;case 119:this.$=s.commitType.NORMAL;break;case 120:this.$=s.commitType.REVERSE;break;case 121:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:l,13:h,47:i},{1:[3]},{3:7,4:2,5:n,7:l,13:h,47:i},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:p},r(m,[2,124]),r(m,[2,125]),r(m,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:p},{8:[1,15]},r(x,[2,9],{11:16,12:[1,17]}),r(y,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:p},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(y,[2,7]),{1:[2,3]},{7:[1,36]},r(x,[2,10]),{4:37,7:l,13:h,47:i},r(x,[2,12]),r(a,[2,13]),r(a,[2,14]),r(a,[2,15]),{20:[1,38]},{22:[1,39]},r(a,[2,18]),r(a,[2,19]),r(a,[2,20]),{27:40,33:R,46:_},r(a,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:R,46:_},{32:[1,50],35:[1,51]},{27:52,33:R,46:_},{1:[2,4]},r(x,[2,11]),r(a,[2,16]),r(a,[2,17]),r(a,[2,21]),r(b,[2,122]),r(b,[2,123]),r(a,[2,52]),{33:[1,53]},{39:54,43:f,44:k,45:g},{33:[1,58]},{33:[1,59]},r(a,[2,118]),r(a,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(a,[2,22],{29:[1,66]}),r(a,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(a,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(E,[2,119]),r(E,[2,120]),r(E,[2,121]),r(a,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(a,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:f,44:k,45:g},{33:[1,81]},r(a,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:f,44:k,45:g},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:f,44:k,45:g},{33:[1,95]},{33:[1,96]},{39:97,43:f,44:k,45:g},{33:[1,98]},r(a,[2,37],{35:[1,100],38:[1,99]}),r(a,[2,38],{32:[1,102],35:[1,101]}),r(a,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(a,[2,23]),r(a,[2,55],{32:[1,110],42:[1,111]}),r(a,[2,59],{38:[1,112],42:[1,113]}),r(a,[2,69],{32:[1,115],38:[1,114]}),r(a,[2,56],{32:[1,116],42:[1,117]}),r(a,[2,61],{35:[1,118],42:[1,119]}),r(a,[2,72],{32:[1,121],35:[1,120]}),r(a,[2,58],{38:[1,122],42:[1,123]}),r(a,[2,60],{35:[1,124],42:[1,125]}),r(a,[2,73],{35:[1,127],38:[1,126]}),r(a,[2,70],{32:[1,129],38:[1,128]}),r(a,[2,71],{32:[1,131],35:[1,130]}),r(a,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:f,44:k,45:g},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:f,44:k,45:g},r(a,[2,25],{35:[1,140]}),r(a,[2,26],{34:[1,141]}),r(a,[2,31],{34:[1,142]}),r(a,[2,29],{34:[1,143]}),r(a,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:f,44:k,45:g},{33:[1,148]},{39:149,43:f,44:k,45:g},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:f,44:k,45:g},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:f,44:k,45:g},{33:[1,162]},{39:163,43:f,44:k,45:g},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:f,44:k,45:g},{33:[1,168]},r(a,[2,43],{35:[1,169]}),r(a,[2,44],{38:[1,170]}),r(a,[2,42],{32:[1,171]}),r(a,[2,45],{35:[1,172]}),r(a,[2,40],{38:[1,173]}),r(a,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(a,[2,66],{42:[1,181]}),r(a,[2,79],{32:[1,182]}),r(a,[2,67],{42:[1,183]}),r(a,[2,90],{38:[1,184]}),r(a,[2,80],{32:[1,185]}),r(a,[2,89],{38:[1,186]}),r(a,[2,65],{42:[1,187]}),r(a,[2,78],{32:[1,188]}),r(a,[2,64],{42:[1,189]}),r(a,[2,84],{35:[1,190]}),r(a,[2,77],{32:[1,191]}),r(a,[2,83],{35:[1,192]}),r(a,[2,63],{42:[1,193]}),r(a,[2,91],{38:[1,194]}),r(a,[2,62],{42:[1,195]}),r(a,[2,85],{35:[1,196]}),r(a,[2,86],{35:[1,197]}),r(a,[2,92],{38:[1,198]}),r(a,[2,76],{32:[1,199]}),r(a,[2,87],{38:[1,200]}),r(a,[2,75],{32:[1,201]}),r(a,[2,81],{35:[1,202]}),r(a,[2,82],{35:[1,203]}),r(a,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:f,44:k,45:g},{33:[1,207]},{33:[1,208]},{39:209,43:f,44:k,45:g},{33:[1,210]},r(a,[2,27]),r(a,[2,32]),r(a,[2,28]),r(a,[2,33]),r(a,[2,34]),r(a,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:f,44:k,45:g},{33:[1,215]},{39:216,43:f,44:k,45:g},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:f,44:k,45:g},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:f,44:k,45:g},{33:[1,229]},{39:230,43:f,44:k,45:g},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:f,44:k,45:g},r(a,[2,46]),r(a,[2,48]),r(a,[2,47]),r(a,[2,49]),r(a,[2,51]),r(a,[2,50]),r(a,[2,107]),r(a,[2,108]),r(a,[2,105]),r(a,[2,106]),r(a,[2,110]),r(a,[2,109]),r(a,[2,114]),r(a,[2,113]),r(a,[2,112]),r(a,[2,111]),r(a,[2,116]),r(a,[2,115]),r(a,[2,104]),r(a,[2,103]),r(a,[2,102]),r(a,[2,101]),r(a,[2,99]),r(a,[2,100]),r(a,[2,98]),r(a,[2,97]),r(a,[2,96]),r(a,[2,95]),r(a,[2,93]),r(a,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(o,u){if(u.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=u,d}},parse:function(o){var u=this,d=[0],s=[],T=[null],t=[],X=this.table,e="",rt=0,ft=0,wt=2,pt=1,Lt=t.slice.call(arguments,1),O=Object.create(this.lexer),F={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(F.yy[ct]=this.yy[ct]);O.setInput(o,F.yy),F.yy.lexer=O,F.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var ot=O.yylloc;t.push(ot);var Rt=O.options&&O.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var q;return q=s.pop()||O.lex()||pt,typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=u.symbols_[q]||q),q}for(var N,K,V,lt,J={},it,j,bt,st;;){if(K=d[d.length-1],this.defaultActions[K]?V=this.defaultActions[K]:((N===null||typeof N>"u")&&(N=Mt()),V=X[K]&&X[K][N]),typeof V>"u"||!V.length||!V[0]){var ht="";st=[];for(it in X[K])this.terminals_[it]&&it>wt&&st.push("'"+this.terminals_[it]+"'");O.showPosition?ht="Parse error on line "+(rt+1)+`:
`+O.showPosition()+`
Expecting `+st.join(", ")+", got '"+(this.terminals_[N]||N)+"'":ht="Parse error on line "+(rt+1)+": Unexpected "+(N==pt?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(ht,{text:O.match,token:this.terminals_[N]||N,line:O.yylineno,loc:ot,expected:st})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+N);switch(V[0]){case 1:d.push(N),T.push(O.yytext),t.push(O.yylloc),d.push(V[1]),N=null,ft=O.yyleng,e=O.yytext,rt=O.yylineno,ot=O.yylloc;break;case 2:if(j=this.productions_[V[1]][1],J.$=T[T.length-j],J._$={first_line:t[t.length-(j||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(j||1)].first_column,last_column:t[t.length-1].last_column},Rt&&(J._$.range=[t[t.length-(j||1)].range[0],t[t.length-1].range[1]]),lt=this.performAction.apply(J,[e,ft,rt,F.yy,V[1],T,t].concat(Lt)),typeof lt<"u")return lt;j&&(d=d.slice(0,-1*j*2),T=T.slice(0,-1*j),t=t.slice(0,-1*j)),d.push(this.productions_[V[1]][0]),T.push(J.$),t.push(J._$),bt=X[d[d.length-2]][d[d.length-1]],d.push(bt);break;case 3:return!0}}return!0}},M=function(){var I={EOF:1,parseError:function(u,d){if(this.yy.parser)this.yy.parser.parseError(u,d);else throw new Error(u)},setInput:function(o,u){return this.yy=u||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var u=o.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var u=o.length,d=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===s.length?this.yylloc.first_column:0)+s[s.length-d.length].length-d[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),u=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
`+u+"^"},test_match:function(o,u){var d,s,T;if(this.options.backtrack_lexer&&(T={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(T.yylloc.range=this.yylloc.range.slice(0))),s=o[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],d=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var t in T)this[t]=T[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,u,d,s;this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),t=0;t<T.length;t++)if(d=this._input.match(this.rules[T[t]]),d&&(!u||d[0].length>u[0].length)){if(u=d,s=t,this.options.backtrack_lexer){if(o=this.test_match(d,T[t]),o!==!1)return o;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(o=this.test_match(u,T[s]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var u=this.next();return u||this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){var u=this.conditionStack.length-1;return u>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},pushState:function(u){this.begin(u)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(u,d,s,T){switch(s){case 0:return this.begin("acc_title"),19;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),21;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 13;case 8:break;case 9:break;case 10:return 5;case 11:return 40;case 12:return 32;case 13:return 38;case 14:return 42;case 15:return 43;case 16:return 44;case 17:return 45;case 18:return 35;case 19:return 28;case 20:return 29;case 21:return 37;case 22:return 31;case 23:return 34;case 24:return 26;case 25:return 9;case 26:return 9;case 27:return 8;case 28:return"CARET";case 29:this.begin("options");break;case 30:this.popState();break;case 31:return 12;case 32:return 36;case 33:this.begin("string");break;case 34:this.popState();break;case 35:return 33;case 36:return 30;case 37:return 46;case 38:return 7}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:parent:)/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},options:{rules:[30,31],inclusive:!1},string:{rules:[34,35],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,36,37,38,39],inclusive:!0}}};return I}();z.lexer=M;function S(){this.yy={}}return S.prototype=z,z.Parser=S,new S}();mt.parser=mt;const Vt=mt;let at=C().gitGraph.mainBranchName,Dt=C().gitGraph.mainBranchOrder,v={},A=null,tt={};tt[at]={name:at,order:Dt};let L={};L[at]=A;let G=at,kt="LR",W=0;function ut(){return Bt({length:7})}function zt(r,n){const l=Object.create(null);return r.reduce((h,i)=>{const c=n(i);return l[c]||(l[c]=!0,h.push(i)),h},[])}const jt=function(r){kt=r};let xt={};const qt=function(r){B.debug("options str",r),r=r&&r.trim(),r=r||"{}";try{xt=JSON.parse(r)}catch(n){B.error("error while parsing gitGraph options",n.message)}},Yt=function(){return xt},Ft=function(r,n,l,h){B.debug("Entering commit:",r,n,l,h),n=D.sanitizeText(n,C()),r=D.sanitizeText(r,C()),h=D.sanitizeText(h,C());const i={id:n||W+"-"+ut(),message:r,seq:W++,type:l||Q.NORMAL,tag:h||"",parents:A==null?[]:[A.id],branch:G};A=i,v[i.id]=i,L[G]=i.id,B.debug("in pushCommit "+i.id)},Kt=function(r,n){if(r=D.sanitizeText(r,C()),L[r]===void 0)L[r]=A!=null?A.id:null,tt[r]={name:r,order:n?parseInt(n,10):null},yt(r),B.debug("in createBranch");else{let l=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+r+'")');throw l.hash={text:"branch "+r,token:"branch "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+r+'"']},l}},Ut=function(r,n,l,h){r=D.sanitizeText(r,C()),n=D.sanitizeText(n,C());const i=v[L[G]],c=v[L[r]];if(G===r){let m=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},m}else if(i===void 0||!i){let m=new Error('Incorrect usage of "merge". Current branch ('+G+")has no commits");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},m}else if(L[r]===void 0){let m=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+r]},m}else if(c===void 0||!c){let m=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},m}else if(i===c){let m=new Error('Incorrect usage of "merge". Both branches have same head');throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},m}else if(n&&v[n]!==void 0){let m=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom Id");throw m.hash={text:"merge "+r+n+l+h,token:"merge "+r+n+l+h,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+r+" "+n+"_UNIQUE "+l+" "+h]},m}const p={id:n||W+"-"+ut(),message:"merged branch "+r+" into "+G,seq:W++,parents:[A==null?null:A.id,L[r]],branch:G,type:Q.MERGE,customType:l,customId:!!n,tag:h||""};A=p,v[p.id]=p,L[G]=p.id,B.debug(L),B.debug("in mergeBranch")},Wt=function(r,n,l,h){if(B.debug("Entering cherryPick:",r,n,l),r=D.sanitizeText(r,C()),n=D.sanitizeText(n,C()),l=D.sanitizeText(l,C()),h=D.sanitizeText(h,C()),!r||v[r]===void 0){let p=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw p.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},p}let i=v[r],c=i.branch;if(h&&!(Array.isArray(i.parents)&&i.parents.includes(h)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");if(i.type===Q.MERGE&&!h)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||v[n]===void 0){if(c===G){let x=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw x.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},x}const p=v[L[G]];if(p===void 0||!p){let x=new Error('Incorrect usage of "cherry-pick". Current branch ('+G+")has no commits");throw x.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},x}const m={id:W+"-"+ut(),message:"cherry-picked "+i+" into "+G,seq:W++,parents:[A==null?null:A.id,i.id],branch:G,type:Q.CHERRY_PICK,tag:l??`cherry-pick:${i.id}${i.type===Q.MERGE?`|parent:${h}`:""}`};A=m,v[m.id]=m,L[G]=m.id,B.debug(L),B.debug("in cherryPick")}},yt=function(r){if(r=D.sanitizeText(r,C()),L[r]===void 0){let n=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+r+'")');throw n.hash={text:"checkout "+r,token:"checkout "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+r+'"']},n}else{G=r;const n=L[G];A=v[n]}};function gt(r,n,l){const h=r.indexOf(n);h===-1?r.push(l):r.splice(h,1,l)}function _t(r){const n=r.reduce((i,c)=>i.seq>c.seq?i:c,r[0]);let l="";r.forEach(function(i){i===n?l+=" *":l+=" |"});const h=[l,n.id,n.seq];for(let i in L)L[i]===n.id&&h.push(i);if(B.debug(h.join(" ")),n.parents&&n.parents.length==2){const i=v[n.parents[0]];gt(r,n,i),r.push(v[n.parents[1]])}else{if(n.parents.length==0)return;{const i=v[n.parents];gt(r,n,i)}}r=zt(r,i=>i.id),_t(r)}const Jt=function(){B.debug(v);const r=Et()[0];_t([r])},Qt=function(){v={},A=null;let r=C().gitGraph.mainBranchName,n=C().gitGraph.mainBranchOrder;L={},L[r]=null,tt={},tt[r]={name:r,order:n},G=r,W=0,St()},Xt=function(){return Object.values(tt).map((n,l)=>n.order!==null?n:{...n,order:parseFloat(`0.${l}`,10)}).sort((n,l)=>n.order-l.order).map(({name:n})=>({name:n}))},Zt=function(){return L},$t=function(){return v},Et=function(){const r=Object.keys(v).map(function(n){return v[n]});return r.forEach(function(n){B.debug(n.id)}),r.sort((n,l)=>n.seq-l.seq),r},te=function(){return G},ee=function(){return kt},re=function(){return A},Q={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ie={getConfig:()=>C().gitGraph,setDirection:jt,setOptions:qt,getOptions:Yt,commit:Ft,branch:Kt,merge:Ut,cherryPick:Wt,checkout:yt,prettyPrint:Jt,clear:Qt,getBranchesAsObjArray:Xt,getBranches:Zt,getCommits:$t,getCommitsArray:Et,getCurrentBranch:te,getDirection:ee,getHead:re,setAccTitle:vt,getAccTitle:Ct,getAccDescription:Ot,setAccDescription:Pt,setDiagramTitle:Gt,getDiagramTitle:It,commitType:Q};let Z={};const P={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},U=8;let H={},Y={},nt=[],et=0,w="LR";const se=()=>{H={},Y={},Z={},et=0,nt=[],w="LR"},Tt=r=>{const n=document.createElementNS("http://www.w3.org/2000/svg","text");let l=[];typeof r=="string"?l=r.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(r)?l=r:l=[];for(const h of l){const i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=h.trim(),n.appendChild(i)}return n},ae=r=>{let n="",l=0;return r.forEach(h=>{const i=w==="TB"?Y[h].y:Y[h].x;i>=l&&(n=h,l=i)}),n||void 0},dt=(r,n,l)=>{const h=C().gitGraph,i=r.append("g").attr("class","commit-bullets"),c=r.append("g").attr("class","commit-labels");let p=0;w==="TB"&&(p=30);const x=Object.keys(n).sort((_,b)=>n[_].seq-n[b].seq),y=h.parallelCommits,a=10,R=40;x.forEach(_=>{const b=n[_];if(y)if(b.parents.length){const E=ae(b.parents);p=w==="TB"?Y[E].y+R:Y[E].x+R}else p=0,w==="TB"&&(p=30);const f=p+a,k=w==="TB"?f:H[b.branch].pos,g=w==="TB"?H[b.branch].pos:f;if(l){let E,z=b.customType!==void 0&&b.customType!==""?b.customType:b.type;switch(z){case P.NORMAL:E="commit-normal";break;case P.REVERSE:E="commit-reverse";break;case P.HIGHLIGHT:E="commit-highlight";break;case P.MERGE:E="commit-merge";break;case P.CHERRY_PICK:E="commit-cherry-pick";break;default:E="commit-normal"}if(z===P.HIGHLIGHT){const M=i.append("rect");M.attr("x",g-10),M.attr("y",k-10),M.attr("height",20),M.attr("width",20),M.attr("class",`commit ${b.id} commit-highlight${H[b.branch].index%U} ${E}-outer`),i.append("rect").attr("x",g-6).attr("y",k-6).attr("height",12).attr("width",12).attr("class",`commit ${b.id} commit${H[b.branch].index%U} ${E}-inner`)}else if(z===P.CHERRY_PICK)i.append("circle").attr("cx",g).attr("cy",k).attr("r",10).attr("class",`commit ${b.id} ${E}`),i.append("circle").attr("cx",g-3).attr("cy",k+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${b.id} ${E}`),i.append("circle").attr("cx",g+3).attr("cy",k+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${b.id} ${E}`),i.append("line").attr("x1",g+3).attr("y1",k+1).attr("x2",g).attr("y2",k-5).attr("stroke","#fff").attr("class",`commit ${b.id} ${E}`),i.append("line").attr("x1",g-3).attr("y1",k+1).attr("x2",g).attr("y2",k-5).attr("stroke","#fff").attr("class",`commit ${b.id} ${E}`);else{const M=i.append("circle");if(M.attr("cx",g),M.attr("cy",k),M.attr("r",b.type===P.MERGE?9:10),M.attr("class",`commit ${b.id} commit${H[b.branch].index%U}`),z===P.MERGE){const S=i.append("circle");S.attr("cx",g),S.attr("cy",k),S.attr("r",6),S.attr("class",`commit ${E} ${b.id} commit${H[b.branch].index%U}`)}z===P.REVERSE&&i.append("path").attr("d",`M ${g-5},${k-5}L${g+5},${k+5}M${g-5},${k+5}L${g+5},${k-5}`).attr("class",`commit ${E} ${b.id} commit${H[b.branch].index%U}`)}}if(w==="TB"?Y[b.id]={x:g,y:f}:Y[b.id]={x:f,y:k},l){if(b.type!==P.CHERRY_PICK&&(b.customId&&b.type===P.MERGE||b.type!==P.MERGE)&&h.showCommitLabel){const M=c.append("g"),S=M.insert("rect").attr("class","commit-label-bkg"),I=M.append("text").attr("x",p).attr("y",k+25).attr("class","commit-label").text(b.id);let o=I.node().getBBox();if(S.attr("x",f-o.width/2-2).attr("y",k+13.5).attr("width",o.width+2*2).attr("height",o.height+2*2),w==="TB"&&(S.attr("x",g-(o.width+4*4+5)).attr("y",k-12),I.attr("x",g-(o.width+4*4)).attr("y",k+o.height-12)),w!=="TB"&&I.attr("x",f-o.width/2),h.rotateCommitLabel)if(w==="TB")I.attr("transform","rotate(-45, "+g+", "+k+")"),S.attr("transform","rotate(-45, "+g+", "+k+")");else{let u=-7.5-(o.width+10)/25*9.5,d=10+o.width/25*8.5;M.attr("transform","translate("+u+", "+d+") rotate(-45, "+p+", "+k+")")}}if(b.tag){const M=c.insert("polygon"),S=c.append("circle"),I=c.append("text").attr("y",k-16).attr("class","tag-label").text(b.tag);let o=I.node().getBBox();I.attr("x",f-o.width/2);const u=o.height/2,d=k-19.2;M.attr("class","tag-label-bkg").attr("points",`
${p-o.width/2-4/2},${d+2}
${p-o.width/2-4/2},${d-2}
${f-o.width/2-4},${d-u-2}
${f+o.width/2+4},${d-u-2}
${f+o.width/2+4},${d+u+2}
${f-o.width/2-4},${d+u+2}`),S.attr("cx",p-o.width/2+4/2).attr("cy",d).attr("r",1.5).attr("class","tag-hole"),w==="TB"&&(M.attr("class","tag-label-bkg").attr("points",`
${g},${p+2}
${g},${p-2}
${g+a},${p-u-2}
${g+a+o.width+4},${p-u-2}
${g+a+o.width+4},${p+u+2}
${g+a},${p+u+2}`).attr("transform","translate(12,12) rotate(45, "+g+","+p+")"),S.attr("cx",g+4/2).attr("cy",p).attr("transform","translate(12,12) rotate(45, "+g+","+p+")"),I.attr("x",g+5).attr("y",p+3).attr("transform","translate(14,14) rotate(45, "+g+","+p+")"))}}p+=R+a,p>et&&(et=p)})},ne=(r,n,l,h,i)=>{const p=(w==="TB"?l.x<h.x:l.y<h.y)?n.branch:r.branch,m=y=>y.branch===p,x=y=>y.seq>r.seq&&y.seq<n.seq;return Object.values(i).some(y=>x(y)&&m(y))},$=(r,n,l=0)=>{const h=r+Math.abs(r-n)/2;if(l>5)return h;if(nt.every(p=>Math.abs(p-h)>=10))return nt.push(h),h;const c=Math.abs(r-n);return $(r,n-c/5,l+1)},ce=(r,n,l,h)=>{const i=Y[n.id],c=Y[l.id],p=ne(n,l,i,c,h);let m="",x="",y=0,a=0,R=H[l.branch].index;l.type===P.MERGE&&n.id!==l.parents[0]&&(R=H[n.branch].index);let _;if(p){m="A 10 10, 0, 0, 0,",x="A 10 10, 0, 0, 1,",y=10,a=10;const b=i.y<c.y?$(i.y,c.y):$(c.y,i.y),f=i.x<c.x?$(i.x,c.x):$(c.x,i.x);w==="TB"?i.x<c.x?_=`M ${i.x} ${i.y} L ${f-y} ${i.y} ${x} ${f} ${i.y+a} L ${f} ${c.y-y} ${m} ${f+a} ${c.y} L ${c.x} ${c.y}`:(R=H[n.branch].index,_=`M ${i.x} ${i.y} L ${f+y} ${i.y} ${m} ${f} ${i.y+a} L ${f} ${c.y-y} ${x} ${f-a} ${c.y} L ${c.x} ${c.y}`):i.y<c.y?_=`M ${i.x} ${i.y} L ${i.x} ${b-y} ${m} ${i.x+a} ${b} L ${c.x-y} ${b} ${x} ${c.x} ${b+a} L ${c.x} ${c.y}`:(R=H[n.branch].index,_=`M ${i.x} ${i.y} L ${i.x} ${b+y} ${x} ${i.x+a} ${b} L ${c.x-y} ${b} ${m} ${c.x} ${b-a} L ${c.x} ${c.y}`)}else m="A 20 20, 0, 0, 0,",x="A 20 20, 0, 0, 1,",y=20,a=20,w==="TB"?(i.x<c.x&&(l.type===P.MERGE&&n.id!==l.parents[0]?_=`M ${i.x} ${i.y} L ${i.x} ${c.y-y} ${m} ${i.x+a} ${c.y} L ${c.x} ${c.y}`:_=`M ${i.x} ${i.y} L ${c.x-y} ${i.y} ${x} ${c.x} ${i.y+a} L ${c.x} ${c.y}`),i.x>c.x&&(m="A 20 20, 0, 0, 0,",x="A 20 20, 0, 0, 1,",y=20,a=20,l.type===P.MERGE&&n.id!==l.parents[0]?_=`M ${i.x} ${i.y} L ${i.x} ${c.y-y} ${x} ${i.x-a} ${c.y} L ${c.x} ${c.y}`:_=`M ${i.x} ${i.y} L ${c.x+y} ${i.y} ${m} ${c.x} ${i.y+a} L ${c.x} ${c.y}`),i.x===c.x&&(_=`M ${i.x} ${i.y} L ${c.x} ${c.y}`)):(i.y<c.y&&(l.type===P.MERGE&&n.id!==l.parents[0]?_=`M ${i.x} ${i.y} L ${c.x-y} ${i.y} ${x} ${c.x} ${i.y+a} L ${c.x} ${c.y}`:_=`M ${i.x} ${i.y} L ${i.x} ${c.y-y} ${m} ${i.x+a} ${c.y} L ${c.x} ${c.y}`),i.y>c.y&&(l.type===P.MERGE&&n.id!==l.parents[0]?_=`M ${i.x} ${i.y} L ${c.x-y} ${i.y} ${m} ${c.x} ${i.y-a} L ${c.x} ${c.y}`:_=`M ${i.x} ${i.y} L ${i.x} ${c.y+y} ${x} ${i.x+a} ${c.y} L ${c.x} ${c.y}`),i.y===c.y&&(_=`M ${i.x} ${i.y} L ${c.x} ${c.y}`));r.append("path").attr("d",_).attr("class","arrow arrow"+R%U)},oe=(r,n)=>{const l=r.append("g").attr("class","commit-arrows");Object.keys(n).forEach(h=>{const i=n[h];i.parents&&i.parents.length>0&&i.parents.forEach(c=>{ce(l,n[c],i,n)})})},le=(r,n)=>{const l=C().gitGraph,h=r.append("g");n.forEach((i,c)=>{const p=c%U,m=H[i.name].pos,x=h.append("line");x.attr("x1",0),x.attr("y1",m),x.attr("x2",et),x.attr("y2",m),x.attr("class","branch branch"+p),w==="TB"&&(x.attr("y1",30),x.attr("x1",m),x.attr("y2",et),x.attr("x2",m)),nt.push(m);let y=i.name;const a=Tt(y),R=h.insert("rect"),b=h.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+p);b.node().appendChild(a);let f=a.getBBox();R.attr("class","branchLabelBkg label"+p).attr("rx",4).attr("ry",4).attr("x",-f.width-4-(l.rotateCommitLabel===!0?30:0)).attr("y",-f.height/2+8).attr("width",f.width+18).attr("height",f.height+4),b.attr("transform","translate("+(-f.width-14-(l.rotateCommitLabel===!0?30:0))+", "+(m-f.height/2-1)+")"),w==="TB"&&(R.attr("x",m-f.width/2-10).attr("y",0),b.attr("transform","translate("+(m-f.width/2-5)+", 0)")),w!=="TB"&&R.attr("transform","translate(-19, "+(m-f.height/2)+")")})},he=function(r,n,l,h){se();const i=C(),c=i.gitGraph;B.debug("in gitgraph renderer",r+`
`,"id:",n,l),Z=h.db.getCommits();const p=h.db.getBranchesAsObjArray();w=h.db.getDirection();const m=At(`[id="${n}"]`);let x=0;p.forEach((y,a)=>{const R=Tt(y.name),_=m.append("g"),b=_.insert("g").attr("class","branchLabel"),f=b.insert("g").attr("class","label branch-label");f.node().appendChild(R);let k=R.getBBox();H[y.name]={pos:x,index:a},x+=50+(c.rotateCommitLabel?40:0)+(w==="TB"?k.width/2:0),f.remove(),b.remove(),_.remove()}),dt(m,Z,!1),c.showBranches&&le(m,p),oe(m,Z),dt(m,Z,!0),Nt.insertTitle(m,"gitTitleText",c.titleTopMargin,h.db.getDiagramTitle()),Ht(void 0,m,c.diagramPadding,c.useMaxWidth??i.useMaxWidth)},me={draw:he},ue=r=>`
.commit-id,
.commit-msg,
.branch-label {
fill: lightgrey;
color: lightgrey;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
${[0,1,2,3,4,5,6,7].map(n=>`
.branch-label${n} { fill: ${r["gitBranchLabel"+n]}; }
.commit${n} { stroke: ${r["git"+n]}; fill: ${r["git"+n]}; }
.commit-highlight${n} { stroke: ${r["gitInv"+n]}; fill: ${r["gitInv"+n]}; }
.label${n} { fill: ${r["git"+n]}; }
.arrow${n} { stroke: ${r["git"+n]}; }
`).join(`
`)}
.branch {
stroke-width: 1;
stroke: ${r.lineColor};
stroke-dasharray: 2;
}
.commit-label { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelColor};}
.commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelBackground}; opacity: 0.5; }
.tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};}
.tag-label-bkg { fill: ${r.tagLabelBackground}; stroke: ${r.tagLabelBorder}; }
.tag-hole { fill: ${r.textColor}; }
.commit-merge {
stroke: ${r.primaryColor};
fill: ${r.primaryColor};
}
.commit-reverse {
stroke: ${r.primaryColor};
fill: ${r.primaryColor};
stroke-width: 3;
}
.commit-highlight-outer {
}
.commit-highlight-inner {
stroke: ${r.primaryColor};
fill: ${r.primaryColor};
}
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
.gitTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${r.textColor};
}
`,fe=ue,xe={parser:Vt,db:ie,renderer:me,styles:fe};export{xe as diagram};
import{J as Be,K as Ze,R as Xe,L as qe,M as ye,N as nt,O as ke,c as wt,s as Dn,g as Mn,C as Sn,D as _n,b as Un,a as Yn,P as Fn,E as Ln,m as En,l as qt,h as zt,i as An,j as In,v as Wn,Q as Kt,T as On}from"./slidev/Mermaid-sWhOKcCj.js";import{l as Hn,c as Nn,a as Vn,b as Pn,t as Ue}from"./linear-d94cf28d-BOPJ1JvI.js";import{i as zn}from"./init-cc95ec8e-Gi6I4Gst.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";function Rn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Zn(t){return t}var Bt=1,te=2,ue=3,Rt=4,Ye=1e-6;function Xn(t){return"translate("+t+",0)"}function qn(t){return"translate(0,"+t+")"}function Gn(t){return e=>+t(e)}function jn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Qn(){return!this.__axis}function Ge(t,e){var n=[],r=null,i=null,s=6,a=6,k=3,Y=typeof window<"u"&&window.devicePixelRatio>1?0:.5,g=t===Bt||t===Rt?-1:1,b=t===Rt||t===te?"x":"y",U=t===Bt||t===ue?Xn:qn;function C(v){var q=r??(e.ticks?e.ticks.apply(e,n):e.domain()),y=i??(e.tickFormat?e.tickFormat.apply(e,n):Zn),L=Math.max(s,0)+k,O=e.range(),W=+O[0]+Y,B=+O[O.length-1]+Y,Z=(e.bandwidth?jn:Gn)(e.copy(),Y),Q=v.selection?v.selection():v,x=Q.selectAll(".domain").data([null]),A=Q.selectAll(".tick").data(q,e).order(),T=A.exit(),F=A.enter().append("g").attr("class","tick"),D=A.select("line"),w=A.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(F),D=D.merge(F.append("line").attr("stroke","currentColor").attr(b+"2",g*s)),w=w.merge(F.append("text").attr("fill","currentColor").attr(b,g*L).attr("dy",t===Bt?"0em":t===ue?"0.71em":"0.32em")),v!==Q&&(x=x.transition(v),A=A.transition(v),D=D.transition(v),w=w.transition(v),T=T.transition(v).attr("opacity",Ye).attr("transform",function(o){return isFinite(o=Z(o))?U(o+Y):this.getAttribute("transform")}),F.attr("opacity",Ye).attr("transform",function(o){var d=this.parentNode.__axis;return U((d&&isFinite(d=d(o))?d:Z(o))+Y)})),T.remove(),x.attr("d",t===Rt||t===te?a?"M"+g*a+","+W+"H"+Y+"V"+B+"H"+g*a:"M"+Y+","+W+"V"+B:a?"M"+W+","+g*a+"V"+Y+"H"+B+"V"+g*a:"M"+W+","+Y+"H"+B),A.attr("opacity",1).attr("transform",function(o){return U(Z(o)+Y)}),D.attr(b+"2",g*s),w.attr(b,g*L).text(y),Q.filter(Qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===Rt?"end":"middle"),Q.each(function(){this.__axis=Z})}return C.scale=function(v){return arguments.length?(e=v,C):e},C.ticks=function(){return n=Array.from(arguments),C},C.tickArguments=function(v){return arguments.length?(n=v==null?[]:Array.from(v),C):n.slice()},C.tickValues=function(v){return arguments.length?(r=v==null?null:Array.from(v),C):r&&r.slice()},C.tickFormat=function(v){return arguments.length?(i=v,C):i},C.tickSize=function(v){return arguments.length?(s=a=+v,C):s},C.tickSizeInner=function(v){return arguments.length?(s=+v,C):s},C.tickSizeOuter=function(v){return arguments.length?(a=+v,C):a},C.tickPadding=function(v){return arguments.length?(k=+v,C):k},C.offset=function(v){return arguments.length?(Y=+v,C):Y},C}function Jn(t){return Ge(Bt,t)}function $n(t){return Ge(ue,t)}const Kn=Math.PI/180,tr=180/Math.PI,Gt=18,je=.96422,Qe=1,Je=.82521,$e=4/29,Ct=6/29,Ke=3*Ct*Ct,er=Ct*Ct*Ct;function tn(t){if(t instanceof ot)return new ot(t.l,t.a,t.b,t.opacity);if(t instanceof ut)return en(t);t instanceof Xe||(t=Fn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/Qe),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/je),a=ee((.0139322*e+.0971045*n+.7141733*r)/Je)),new ot(116*i-16,500*(s-i),200*(i-a),t.opacity)}function nr(t,e,n,r){return arguments.length===1?tn(t):new ot(t,e,n,r??1)}function ot(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Be(ot,nr,Ze(qe,{brighter(t){return new ot(this.l+Gt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ot(this.l-Gt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=je*ne(e),t=Qe*ne(t),n=Je*ne(n),new Xe(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>er?Math.pow(t,1/3):t/Ke+$e}function ne(t){return t>Ct?t*t*t:Ke*(t-$e)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function rr(t){if(t instanceof ut)return new ut(t.h,t.c,t.l,t.opacity);if(t instanceof ot||(t=tn(t)),t.a===0&&t.b===0)return new ut(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*tr;return new ut(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function fe(t,e,n,r){return arguments.length===1?rr(t):new ut(t,e,n,r??1)}function ut(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function en(t){if(isNaN(t.h))return new ot(t.l,0,0,t.opacity);var e=t.h*Kn;return new ot(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Be(ut,fe,Ze(qe,{brighter(t){return new ut(this.h,this.c,this.l+Gt*(t??1),this.opacity)},darker(t){return new ut(this.h,this.c,this.l-Gt*(t??1),this.opacity)},rgb(){return en(this).rgb()}}));function ir(t){return function(e,n){var r=t((e=fe(e)).h,(n=fe(n)).h),i=Kt(e.c,n.c),s=Kt(e.l,n.l),a=Kt(e.opacity,n.opacity);return function(k){return e.h=r(k),e.c=i(k),e.l=s(k),e.opacity=a(k),e+""}}}const sr=ir(On);function ar(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],s=t[r],a;return s<i&&(a=n,n=r,r=a,a=i,i=s,s=a),t[n]=e.floor(i),t[r]=e.ceil(s),t}const se=new Date,ae=new Date;function K(t,e,n,r){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),k=i.ceil(s);return s-a<k-s?a:k},i.offset=(s,a)=>(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,k)=>{const Y=[];if(s=i.ceil(s),k=k==null?1:Math.floor(k),!(s<a)||!(k>0))return Y;let g;do Y.push(g=new Date(+s)),e(s,k),t(s);while(g<s&&s<a);return Y},i.filter=s=>K(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,k)=>{if(a>=a)if(k<0)for(;++k<=0;)for(;e(a,-1),!s(a););else for(;--k>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Mt=K(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Mt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?K(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Mt);Mt.range;const ft=1e3,rt=ft*60,ht=rt*60,dt=ht*24,pe=dt*7,Fe=dt*30,oe=dt*365,gt=K(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getUTCSeconds());gt.range;const Et=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ft)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());Et.range;const or=K(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());or.range;const At=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ft-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getHours());At.range;const cr=K(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getUTCHours());cr.range;const yt=K(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/dt,t=>t.getDate()-1);yt.range;const Te=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>t.getUTCDate()-1);Te.range;const lr=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>Math.floor(t/dt));lr.range;function Tt(t){return K(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/pe)}const Ot=Tt(0),It=Tt(1),nn=Tt(2),rn=Tt(3),kt=Tt(4),sn=Tt(5),an=Tt(6);Ot.range;It.range;nn.range;rn.range;kt.range;sn.range;an.range;function vt(t){return K(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/pe)}const on=vt(0),jt=vt(1),ur=vt(2),fr=vt(3),St=vt(4),hr=vt(5),dr=vt(6);on.range;jt.range;ur.range;fr.range;St.range;hr.range;dr.range;const Wt=K(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Wt.range;const mr=K(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());mr.range;const mt=K(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());mt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:K(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});mt.range;const pt=K(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:K(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function gr(t,e,n,r,i,s){const a=[[gt,1,ft],[gt,5,5*ft],[gt,15,15*ft],[gt,30,30*ft],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,ht],[i,3,3*ht],[i,6,6*ht],[i,12,12*ht],[r,1,dt],[r,2,2*dt],[n,1,pe],[e,1,Fe],[e,3,3*Fe],[t,1,oe]];function k(g,b,U){const C=b<g;C&&([g,b]=[b,g]);const v=U&&typeof U.range=="function"?U:Y(g,b,U),q=v?v.range(g,+b+1):[];return C?q.reverse():q}function Y(g,b,U){const C=Math.abs(b-g)/U,v=Pn(([,,L])=>L).right(a,C);if(v===a.length)return t.every(Ue(g/oe,b/oe,U));if(v===0)return Mt.every(Math.max(Ue(g,b,U),1));const[q,y]=a[C/a[v-1][2]<a[v][2]/C?v-1:v];return q.every(y)}return[k,Y]}const[yr,kr]=gr(mt,Wt,Ot,yt,At,Et);function ce(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function le(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Yt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function pr(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,a=t.shortDays,k=t.months,Y=t.shortMonths,g=Ft(i),b=Lt(i),U=Ft(s),C=Lt(s),v=Ft(a),q=Lt(a),y=Ft(k),L=Lt(k),O=Ft(Y),W=Lt(Y),B={a:c,A:X,b:f,B:h,c:null,d:Oe,e:Oe,f:Pr,g:Jr,G:Kr,H:Hr,I:Nr,j:Vr,L:cn,m:zr,M:Rr,p:_,q:G,Q:Ve,s:Pe,S:Br,u:Zr,U:Xr,V:qr,w:Gr,W:jr,x:null,X:null,y:Qr,Y:$r,Z:ti,"%":Ne},Z={a:H,A:V,b:I,B:P,c:null,d:He,e:He,f:ii,g:mi,G:yi,H:ei,I:ni,j:ri,L:un,m:si,M:ai,p:st,q:it,Q:Ve,s:Pe,S:oi,u:ci,U:li,V:ui,w:fi,W:hi,x:null,X:null,y:di,Y:gi,Z:ki,"%":Ne},Q={a:D,A:w,b:o,B:d,c:m,d:Ie,e:Ie,f:Ar,g:Ae,G:Ee,H:We,I:We,j:Yr,L:Er,m:Ur,M:Fr,p:F,q:_r,Q:Wr,s:Or,S:Lr,u:wr,U:Cr,V:Dr,w:xr,W:Mr,x:u,X:S,y:Ae,Y:Ee,Z:Sr,"%":Ir};B.x=x(n,B),B.X=x(r,B),B.c=x(e,B),Z.x=x(n,Z),Z.X=x(r,Z),Z.c=x(e,Z);function x(p,E){return function(M){var l=[],R=-1,N=0,j=p.length,J,et,Ut;for(M instanceof Date||(M=new Date(+M));++R<j;)p.charCodeAt(R)===37&&(l.push(p.slice(N,R)),(et=Le[J=p.charAt(++R)])!=null?J=p.charAt(++R):et=J==="e"?" ":"0",(Ut=E[J])&&(J=Ut(M,et)),l.push(J),N=R+1);return l.push(p.slice(N,R)),l.join("")}}function A(p,E){return function(M){var l=Yt(1900,void 0,1),R=T(l,p,M+="",0),N,j;if(R!=M.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if(E&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(N=le(Yt(l.y,0,1)),j=N.getUTCDay(),N=j>4||j===0?jt.ceil(N):jt(N),N=Te.offset(N,(l.V-1)*7),l.y=N.getUTCFullYear(),l.m=N.getUTCMonth(),l.d=N.getUTCDate()+(l.w+6)%7):(N=ce(Yt(l.y,0,1)),j=N.getDay(),N=j>4||j===0?It.ceil(N):It(N),N=yt.offset(N,(l.V-1)*7),l.y=N.getFullYear(),l.m=N.getMonth(),l.d=N.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),j="Z"in l?le(Yt(l.y,0,1)).getUTCDay():ce(Yt(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(j+5)%7:l.w+l.U*7-(j+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function T(p,E,M,l){for(var R=0,N=E.length,j=M.length,J,et;R<N;){if(l>=j)return-1;if(J=E.charCodeAt(R++),J===37){if(J=E.charAt(R++),et=Q[J in Le?E.charAt(R++):J],!et||(l=et(p,M,l))<0)return-1}else if(J!=M.charCodeAt(l++))return-1}return l}function F(p,E,M){var l=g.exec(E.slice(M));return l?(p.p=b.get(l[0].toLowerCase()),M+l[0].length):-1}function D(p,E,M){var l=v.exec(E.slice(M));return l?(p.w=q.get(l[0].toLowerCase()),M+l[0].length):-1}function w(p,E,M){var l=U.exec(E.slice(M));return l?(p.w=C.get(l[0].toLowerCase()),M+l[0].length):-1}function o(p,E,M){var l=O.exec(E.slice(M));return l?(p.m=W.get(l[0].toLowerCase()),M+l[0].length):-1}function d(p,E,M){var l=y.exec(E.slice(M));return l?(p.m=L.get(l[0].toLowerCase()),M+l[0].length):-1}function m(p,E,M){return T(p,e,E,M)}function u(p,E,M){return T(p,n,E,M)}function S(p,E,M){return T(p,r,E,M)}function c(p){return a[p.getDay()]}function X(p){return s[p.getDay()]}function f(p){return Y[p.getMonth()]}function h(p){return k[p.getMonth()]}function _(p){return i[+(p.getHours()>=12)]}function G(p){return 1+~~(p.getMonth()/3)}function H(p){return a[p.getUTCDay()]}function V(p){return s[p.getUTCDay()]}function I(p){return Y[p.getUTCMonth()]}function P(p){return k[p.getUTCMonth()]}function st(p){return i[+(p.getUTCHours()>=12)]}function it(p){return 1+~~(p.getUTCMonth()/3)}return{format:function(p){var E=x(p+="",B);return E.toString=function(){return p},E},parse:function(p){var E=A(p+="",!1);return E.toString=function(){return p},E},utcFormat:function(p){var E=x(p+="",Z);return E.toString=function(){return p},E},utcParse:function(p){var E=A(p+="",!0);return E.toString=function(){return p},E}}}var Le={"-":"",_:" ",0:"0"},tt=/^\s*\d+/,Tr=/^%/,vr=/[\\^$*+?|[\]().{}]/g;function z(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function br(t){return t.replace(vr,"\\$&")}function Ft(t){return new RegExp("^(?:"+t.map(br).join("|")+")","i")}function Lt(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function xr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Dr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Mr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=tt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ae(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Sr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _r(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Ur(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ie(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function We(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=tt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ir(t,e,n){var r=Tr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Wr(t,e,n){var r=tt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=tt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Oe(t,e){return z(t.getDate(),e,2)}function Hr(t,e){return z(t.getHours(),e,2)}function Nr(t,e){return z(t.getHours()%12||12,e,2)}function Vr(t,e){return z(1+yt.count(mt(t),t),e,3)}function cn(t,e){return z(t.getMilliseconds(),e,3)}function Pr(t,e){return cn(t,e)+"000"}function zr(t,e){return z(t.getMonth()+1,e,2)}function Rr(t,e){return z(t.getMinutes(),e,2)}function Br(t,e){return z(t.getSeconds(),e,2)}function Zr(t){var e=t.getDay();return e===0?7:e}function Xr(t,e){return z(Ot.count(mt(t)-1,t),e,2)}function ln(t){var e=t.getDay();return e>=4||e===0?kt(t):kt.ceil(t)}function qr(t,e){return t=ln(t),z(kt.count(mt(t),t)+(mt(t).getDay()===4),e,2)}function Gr(t){return t.getDay()}function jr(t,e){return z(It.count(mt(t)-1,t),e,2)}function Qr(t,e){return z(t.getFullYear()%100,e,2)}function Jr(t,e){return t=ln(t),z(t.getFullYear()%100,e,2)}function $r(t,e){return z(t.getFullYear()%1e4,e,4)}function Kr(t,e){var n=t.getDay();return t=n>=4||n===0?kt(t):kt.ceil(t),z(t.getFullYear()%1e4,e,4)}function ti(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+z(e/60|0,"0",2)+z(e%60,"0",2)}function He(t,e){return z(t.getUTCDate(),e,2)}function ei(t,e){return z(t.getUTCHours(),e,2)}function ni(t,e){return z(t.getUTCHours()%12||12,e,2)}function ri(t,e){return z(1+Te.count(pt(t),t),e,3)}function un(t,e){return z(t.getUTCMilliseconds(),e,3)}function ii(t,e){return un(t,e)+"000"}function si(t,e){return z(t.getUTCMonth()+1,e,2)}function ai(t,e){return z(t.getUTCMinutes(),e,2)}function oi(t,e){return z(t.getUTCSeconds(),e,2)}function ci(t){var e=t.getUTCDay();return e===0?7:e}function li(t,e){return z(on.count(pt(t)-1,t),e,2)}function fn(t){var e=t.getUTCDay();return e>=4||e===0?St(t):St.ceil(t)}function ui(t,e){return t=fn(t),z(St.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function fi(t){return t.getUTCDay()}function hi(t,e){return z(jt.count(pt(t)-1,t),e,2)}function di(t,e){return z(t.getUTCFullYear()%100,e,2)}function mi(t,e){return t=fn(t),z(t.getUTCFullYear()%100,e,2)}function gi(t,e){return z(t.getUTCFullYear()%1e4,e,4)}function yi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?St(t):St.ceil(t),z(t.getUTCFullYear()%1e4,e,4)}function ki(){return"+0000"}function Ne(){return"%"}function Ve(t){return+t}function Pe(t){return Math.floor(+t/1e3)}var xt,Qt;pi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function pi(t){return xt=pr(t),Qt=xt.format,xt.parse,xt.utcFormat,xt.utcParse,xt}function Ti(t){return new Date(t)}function vi(t){return t instanceof Date?+t:+new Date(+t)}function hn(t,e,n,r,i,s,a,k,Y,g){var b=Nn(),U=b.invert,C=b.domain,v=g(".%L"),q=g(":%S"),y=g("%I:%M"),L=g("%I %p"),O=g("%a %d"),W=g("%b %d"),B=g("%B"),Z=g("%Y");function Q(x){return(Y(x)<x?v:k(x)<x?q:a(x)<x?y:s(x)<x?L:r(x)<x?i(x)<x?O:W:n(x)<x?B:Z)(x)}return b.invert=function(x){return new Date(U(x))},b.domain=function(x){return arguments.length?C(Array.from(x,vi)):C().map(Ti)},b.ticks=function(x){var A=C();return t(A[0],A[A.length-1],x??10)},b.tickFormat=function(x,A){return A==null?Q:g(A)},b.nice=function(x){var A=C();return(!x||typeof x.range!="function")&&(x=e(A[0],A[A.length-1],x??10)),x?C(ar(A,x)):b},b.copy=function(){return Vn(b,hn(t,e,n,r,i,s,a,k,Y,g))},b}function bi(){return zn.apply(hn(yr,kr,mt,Wt,Ot,yt,At,Et,gt,Qt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var he=function(){var t=function(w,o,d,m){for(d=d||{},m=w.length;m--;d[w[m]]=o);return d},e=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],n=[1,25],r=[1,26],i=[1,27],s=[1,28],a=[1,29],k=[1,30],Y=[1,31],g=[1,9],b=[1,10],U=[1,11],C=[1,12],v=[1,13],q=[1,14],y=[1,15],L=[1,16],O=[1,18],W=[1,19],B=[1,20],Z=[1,21],Q=[1,22],x=[1,24],A=[1,32],T={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(o,d,m,u,S,c,X){var f=c.length-1;switch(S){case 1:return c[f-1];case 2:this.$=[];break;case 3:c[f-1].push(c[f]),this.$=c[f-1];break;case 4:case 5:this.$=c[f];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setDateFormat(c[f].substr(11)),this.$=c[f].substr(11);break;case 16:u.enableInclusiveEndDates(),this.$=c[f].substr(18);break;case 17:u.TopAxis(),this.$=c[f].substr(8);break;case 18:u.setAxisFormat(c[f].substr(11)),this.$=c[f].substr(11);break;case 19:u.setTickInterval(c[f].substr(13)),this.$=c[f].substr(13);break;case 20:u.setExcludes(c[f].substr(9)),this.$=c[f].substr(9);break;case 21:u.setIncludes(c[f].substr(9)),this.$=c[f].substr(9);break;case 22:u.setTodayMarker(c[f].substr(12)),this.$=c[f].substr(12);break;case 24:u.setDiagramTitle(c[f].substr(6)),this.$=c[f].substr(6);break;case 25:this.$=c[f].trim(),u.setAccTitle(this.$);break;case 26:case 27:this.$=c[f].trim(),u.setAccDescription(this.$);break;case 28:u.addSection(c[f].substr(8)),this.$=c[f].substr(8);break;case 30:u.addTask(c[f-1],c[f]),this.$="task";break;case 31:this.$=c[f-1],u.setClickEvent(c[f-1],c[f],null);break;case 32:this.$=c[f-2],u.setClickEvent(c[f-2],c[f-1],c[f]);break;case 33:this.$=c[f-2],u.setClickEvent(c[f-2],c[f-1],null),u.setLink(c[f-2],c[f]);break;case 34:this.$=c[f-3],u.setClickEvent(c[f-3],c[f-2],c[f-1]),u.setLink(c[f-3],c[f]);break;case 35:this.$=c[f-2],u.setClickEvent(c[f-2],c[f],null),u.setLink(c[f-2],c[f-1]);break;case 36:this.$=c[f-3],u.setClickEvent(c[f-3],c[f-1],c[f]),u.setLink(c[f-3],c[f-2]);break;case 37:this.$=c[f-1],u.setLink(c[f-1],c[f]);break;case 38:case 44:this.$=c[f-1]+" "+c[f];break;case 39:case 40:case 42:this.$=c[f-2]+" "+c[f-1]+" "+c[f];break;case 41:case 43:this.$=c[f-3]+" "+c[f-2]+" "+c[f-1]+" "+c[f];break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:k,18:Y,19:g,20:b,21:U,22:C,23:v,24:q,25:y,26:L,27:O,28:W,30:B,32:Z,33:Q,34:23,35:x,37:A},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:n,13:r,14:i,15:s,16:a,17:k,18:Y,19:g,20:b,21:U,22:C,23:v,24:q,25:y,26:L,27:O,28:W,30:B,32:Z,33:Q,34:23,35:x,37:A},t(e,[2,5]),t(e,[2,6]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),{29:[1,34]},{31:[1,35]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),{36:[1,36]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),{38:[1,37],40:[1,38]},t(e,[2,4]),t(e,[2,25]),t(e,[2,26]),t(e,[2,30]),t(e,[2,31],{39:[1,39],40:[1,40]}),t(e,[2,37],{38:[1,41]}),t(e,[2,32],{40:[1,42]}),t(e,[2,33]),t(e,[2,35],{39:[1,43]}),t(e,[2,34]),t(e,[2,36])],defaultActions:{},parseError:function(o,d){if(d.recoverable)this.trace(o);else{var m=new Error(o);throw m.hash=d,m}},parse:function(o){var d=this,m=[0],u=[],S=[null],c=[],X=this.table,f="",h=0,_=0,G=2,H=1,V=c.slice.call(arguments,1),I=Object.create(this.lexer),P={yy:{}};for(var st in this.yy)Object.prototype.hasOwnProperty.call(this.yy,st)&&(P.yy[st]=this.yy[st]);I.setInput(o,P.yy),P.yy.lexer=I,P.yy.parser=this,typeof I.yylloc>"u"&&(I.yylloc={});var it=I.yylloc;c.push(it);var p=I.options&&I.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function E(){var ct;return ct=u.pop()||I.lex()||H,typeof ct!="number"&&(ct instanceof Array&&(u=ct,ct=u.pop()),ct=d.symbols_[ct]||ct),ct}for(var M,l,R,N,j={},J,et,Ut,Pt;;){if(l=m[m.length-1],this.defaultActions[l]?R=this.defaultActions[l]:((M===null||typeof M>"u")&&(M=E()),R=X[l]&&X[l][M]),typeof R>"u"||!R.length||!R[0]){var $t="";Pt=[];for(J in X[l])this.terminals_[J]&&J>G&&Pt.push("'"+this.terminals_[J]+"'");I.showPosition?$t="Parse error on line "+(h+1)+`:
`+I.showPosition()+`
Expecting `+Pt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":$t="Parse error on line "+(h+1)+": Unexpected "+(M==H?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError($t,{text:I.match,token:this.terminals_[M]||M,line:I.yylineno,loc:it,expected:Pt})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+l+", token: "+M);switch(R[0]){case 1:m.push(M),S.push(I.yytext),c.push(I.yylloc),m.push(R[1]),M=null,_=I.yyleng,f=I.yytext,h=I.yylineno,it=I.yylloc;break;case 2:if(et=this.productions_[R[1]][1],j.$=S[S.length-et],j._$={first_line:c[c.length-(et||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(et||1)].first_column,last_column:c[c.length-1].last_column},p&&(j._$.range=[c[c.length-(et||1)].range[0],c[c.length-1].range[1]]),N=this.performAction.apply(j,[f,_,h,P.yy,R[1],S,c].concat(V)),typeof N<"u")return N;et&&(m=m.slice(0,-1*et*2),S=S.slice(0,-1*et),c=c.slice(0,-1*et)),m.push(this.productions_[R[1]][0]),S.push(j.$),c.push(j._$),Ut=X[m[m.length-2]][m[m.length-1]],m.push(Ut);break;case 3:return!0}}return!0}},F=function(){var w={EOF:1,parseError:function(d,m){if(this.yy.parser)this.yy.parser.parseError(d,m);else throw new Error(d)},setInput:function(o,d){return this.yy=d||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var d=o.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var d=o.length,m=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),d=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
`+d+"^"},test_match:function(o,d){var m,u,S;if(this.options.backtrack_lexer&&(S={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(S.yylloc.range=this.yylloc.range.slice(0))),u=o[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],m=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var c in S)this[c]=S[c];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,d,m,u;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),c=0;c<S.length;c++)if(m=this._input.match(this.rules[S[c]]),m&&(!d||m[0].length>d[0].length)){if(d=m,u=c,this.options.backtrack_lexer){if(o=this.test_match(m,S[c]),o!==!1)return o;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(o=this.test_match(d,S[u]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var d=this.next();return d||this.lex()},begin:function(d){this.conditionStack.push(d)},popState:function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},pushState:function(d){this.begin(d)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(d,m,u,S){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}};return w}();T.lexer=F;function D(){this.yy={}}return D.prototype=T,T.Parser=D,new D}();he.parser=he;const xi=he;var dn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ye,function(){var n="day";return function(r,i,s){var a=function(g){return g.add(4-g.isoWeekday(),n)},k=i.prototype;k.isoWeekYear=function(){return a(this).year()},k.isoWeek=function(g){if(!this.$utils().u(g))return this.add(7*(g-this.isoWeek()),n);var b,U,C,v,q=a(this),y=(b=this.isoWeekYear(),U=this.$u,C=(U?s.utc:s)().year(b).startOf("year"),v=4-C.isoWeekday(),C.isoWeekday()>4&&(v+=7),C.add(v,n));return q.diff(y,"week")+1},k.isoWeekday=function(g){return this.$utils().u(g)?this.day()||7:this.day(this.day()%7?g:g-7)};var Y=k.startOf;k.startOf=function(g,b){var U=this.$utils(),C=!!U.u(b)||b;return U.p(g)==="isoweek"?C?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):Y.bind(this)(g,b)}}})})(dn);var wi=dn.exports;const Ci=ke(wi);var mn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ye,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,k={},Y=function(y){return(y=+y)+(y>68?1900:2e3)},g=function(y){return function(L){this[y]=+L}},b=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(L){if(!L||L==="Z")return 0;var O=L.match(/([+-]|\d\d)/g),W=60*O[1]+(+O[2]||0);return W===0?0:O[0]==="+"?-W:W}(y)}],U=function(y){var L=k[y];return L&&(L.indexOf?L:L.s.concat(L.f))},C=function(y,L){var O,W=k.meridiem;if(W){for(var B=1;B<=24;B+=1)if(y.indexOf(W(B,0,L))>-1){O=B>12;break}}else O=y===(L?"pm":"PM");return O},v={A:[a,function(y){this.afternoon=C(y,!1)}],a:[a,function(y){this.afternoon=C(y,!0)}],S:[/\d/,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[s,g("seconds")],ss:[s,g("seconds")],m:[s,g("minutes")],mm:[s,g("minutes")],H:[s,g("hours")],h:[s,g("hours")],HH:[s,g("hours")],hh:[s,g("hours")],D:[s,g("day")],DD:[i,g("day")],Do:[a,function(y){var L=k.ordinal,O=y.match(/\d+/);if(this.day=O[0],L)for(var W=1;W<=31;W+=1)L(W).replace(/\[|\]/g,"")===y&&(this.day=W)}],M:[s,g("month")],MM:[i,g("month")],MMM:[a,function(y){var L=U("months"),O=(U("monthsShort")||L.map(function(W){return W.slice(0,3)})).indexOf(y)+1;if(O<1)throw new Error;this.month=O%12||O}],MMMM:[a,function(y){var L=U("months").indexOf(y)+1;if(L<1)throw new Error;this.month=L%12||L}],Y:[/[+-]?\d+/,g("year")],YY:[i,function(y){this.year=Y(y)}],YYYY:[/\d{4}/,g("year")],Z:b,ZZ:b};function q(y){var L,O;L=y,O=k&&k.formats;for(var W=(y=L.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(F,D,w){var o=w&&w.toUpperCase();return D||O[w]||n[w]||O[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(d,m,u){return m||u.slice(1)})})).match(r),B=W.length,Z=0;Z<B;Z+=1){var Q=W[Z],x=v[Q],A=x&&x[0],T=x&&x[1];W[Z]=T?{regex:A,parser:T}:Q.replace(/^\[|\]$/g,"")}return function(F){for(var D={},w=0,o=0;w<B;w+=1){var d=W[w];if(typeof d=="string")o+=d.length;else{var m=d.regex,u=d.parser,S=F.slice(o),c=m.exec(S)[0];u.call(D,c),F=F.replace(c,"")}}return function(X){var f=X.afternoon;if(f!==void 0){var h=X.hours;f?h<12&&(X.hours+=12):h===12&&(X.hours=0),delete X.afternoon}}(D),D}}return function(y,L,O){O.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(Y=y.parseTwoDigitYear);var W=L.prototype,B=W.parse;W.parse=function(Z){var Q=Z.date,x=Z.utc,A=Z.args;this.$u=x;var T=A[1];if(typeof T=="string"){var F=A[2]===!0,D=A[3]===!0,w=F||D,o=A[2];D&&(o=A[2]),k=this.$locale(),!F&&o&&(k=O.Ls[o]),this.$d=function(S,c,X){try{if(["x","X"].indexOf(c)>-1)return new Date((c==="X"?1e3:1)*S);var f=q(c)(S),h=f.year,_=f.month,G=f.day,H=f.hours,V=f.minutes,I=f.seconds,P=f.milliseconds,st=f.zone,it=new Date,p=G||(h||_?1:it.getDate()),E=h||it.getFullYear(),M=0;h&&!_||(M=_>0?_-1:it.getMonth());var l=H||0,R=V||0,N=I||0,j=P||0;return st?new Date(Date.UTC(E,M,p,l,R,N,j+60*st.offset*1e3)):X?new Date(Date.UTC(E,M,p,l,R,N,j)):new Date(E,M,p,l,R,N,j)}catch{return new Date("")}}(Q,T,x),this.init(),o&&o!==!0&&(this.$L=this.locale(o).$L),w&&Q!=this.format(T)&&(this.$d=new Date("")),k={}}else if(T instanceof Array)for(var d=T.length,m=1;m<=d;m+=1){A[1]=T[m-1];var u=O.apply(this,A);if(u.isValid()){this.$d=u.$d,this.$L=u.$L,this.init();break}m===d&&(this.$d=new Date(""))}else B.call(this,Z)}}})})(mn);var Di=mn.exports;const Mi=ke(Di);var gn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ye,function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(a){var k=this,Y=this.$locale();if(!this.isValid())return s.bind(this)(a);var g=this.$utils(),b=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(U){switch(U){case"Q":return Math.ceil((k.$M+1)/3);case"Do":return Y.ordinal(k.$D);case"gggg":return k.weekYear();case"GGGG":return k.isoWeekYear();case"wo":return Y.ordinal(k.week(),"W");case"w":case"ww":return g.s(k.week(),U==="w"?1:2,"0");case"W":case"WW":return g.s(k.isoWeek(),U==="W"?1:2,"0");case"k":case"kk":return g.s(String(k.$H===0?24:k.$H),U==="k"?1:2,"0");case"X":return Math.floor(k.$d.getTime()/1e3);case"x":return k.$d.getTime();case"z":return"["+k.offsetName()+"]";case"zzz":return"["+k.offsetName("long")+"]";default:return U}});return s.bind(this)(b)}}})})(gn);var Si=gn.exports;const _i=ke(Si);nt.extend(Ci);nt.extend(Mi);nt.extend(_i);let at="",ve="",be,xe="",Ht=[],Nt=[],we={},Ce=[],Jt=[],_t="",De="";const yn=["active","done","crit","milestone"];let Me=[],Vt=!1,Se=!1,_e="sunday",de=0;const Ui=function(){Ce=[],Jt=[],_t="",Me=[],Zt=0,ge=void 0,Xt=void 0,$=[],at="",ve="",De="",be=void 0,xe="",Ht=[],Nt=[],Vt=!1,Se=!1,de=0,we={},Ln(),_e="sunday"},Yi=function(t){ve=t},Fi=function(){return ve},Li=function(t){be=t},Ei=function(){return be},Ai=function(t){xe=t},Ii=function(){return xe},Wi=function(t){at=t},Oi=function(){Vt=!0},Hi=function(){return Vt},Ni=function(){Se=!0},Vi=function(){return Se},Pi=function(t){De=t},zi=function(){return De},Ri=function(){return at},Bi=function(t){Ht=t.toLowerCase().split(/[\s,]+/)},Zi=function(){return Ht},Xi=function(t){Nt=t.toLowerCase().split(/[\s,]+/)},qi=function(){return Nt},Gi=function(){return we},ji=function(t){_t=t,Ce.push(t)},Qi=function(){return Ce},Ji=function(){let t=ze();const e=10;let n=0;for(;!t&&n<e;)t=ze(),n++;return Jt=$,Jt},kn=function(t,e,n,r){return r.includes(t.format(e.trim()))?!1:t.isoWeekday()>=6&&n.includes("weekends")||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(t.format(e.trim()))},$i=function(t){_e=t},Ki=function(){return _e},pn=function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i;t.startTime instanceof Date?i=nt(t.startTime):i=nt(t.startTime,e,!0),i=i.add(1,"d");let s;t.endTime instanceof Date?s=nt(t.endTime):s=nt(t.endTime,e,!0);const[a,k]=ts(i,s,e,n,r);t.endTime=a.toDate(),t.renderEndTime=k},ts=function(t,e,n,r,i){let s=!1,a=null;for(;t<=e;)s||(a=e.toDate()),s=kn(t,n,r,i),s&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,a]},me=function(t,e,n){n=n.trim();const i=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(i!==null){let a=null;for(const Y of i.groups.ids.split(" ")){let g=bt(Y);g!==void 0&&(!a||g.endTime>a.endTime)&&(a=g)}if(a)return a.endTime;const k=new Date;return k.setHours(0,0,0,0),k}let s=nt(n,e.trim(),!0);if(s.isValid())return s.toDate();{qt.debug("Invalid date:"+n),qt.debug("With date format:"+e.trim());const a=new Date(n);if(a===void 0||isNaN(a.getTime())||a.getFullYear()<-1e4||a.getFullYear()>1e4)throw new Error("Invalid date:"+n);return a}},Tn=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},vn=function(t,e,n,r=!1){n=n.trim();const s=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let b=null;for(const C of s.groups.ids.split(" ")){let v=bt(C);v!==void 0&&(!b||v.startTime<b.startTime)&&(b=v)}if(b)return b.startTime;const U=new Date;return U.setHours(0,0,0,0),U}let a=nt(n,e.trim(),!0);if(a.isValid())return r&&(a=a.add(1,"d")),a.toDate();let k=nt(t);const[Y,g]=Tn(n);if(!Number.isNaN(Y)){const b=k.add(Y,g);b.isValid()&&(k=b)}return k.toDate()};let Zt=0;const Dt=function(t){return t===void 0?(Zt=Zt+1,"task"+Zt):t},es=function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};Cn(r,i,yn);for(let a=0;a<r.length;a++)r[a]=r[a].trim();let s="";switch(r.length){case 1:i.id=Dt(),i.startTime=t.endTime,s=r[0];break;case 2:i.id=Dt(),i.startTime=me(void 0,at,r[0]),s=r[1];break;case 3:i.id=Dt(r[0]),i.startTime=me(void 0,at,r[1]),s=r[2];break}return s&&(i.endTime=vn(i.startTime,at,s,Vt),i.manualEndTime=nt(s,"YYYY-MM-DD",!0).isValid(),pn(i,at,Nt,Ht)),i},ns=function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};Cn(r,i,yn);for(let s=0;s<r.length;s++)r[s]=r[s].trim();switch(r.length){case 1:i.id=Dt(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=Dt(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Dt(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]};break}return i};let ge,Xt,$=[];const bn={},rs=function(t,e){const n={section:_t,type:_t,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=ns(Xt,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Xt,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=de,de++;const i=$.push(n);Xt=n.id,bn[n.id]=i-1},bt=function(t){const e=bn[t];return $[e]},is=function(t,e){const n={section:_t,type:_t,description:t,task:t,classes:[]},r=es(ge,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,ge=n,Jt.push(n)},ze=function(){const t=function(n){const r=$[n];let i="";switch($[n].raw.startTime.type){case"prevTaskEnd":{const s=bt(r.prevTaskId);r.startTime=s.endTime;break}case"getStartDate":i=me(void 0,at,$[n].raw.startTime.startData),i&&($[n].startTime=i);break}return $[n].startTime&&($[n].endTime=vn($[n].startTime,at,$[n].raw.endTime.data,Vt),$[n].endTime&&($[n].processed=!0,$[n].manualEndTime=nt($[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),pn($[n],at,Nt,Ht))),$[n].processed};let e=!0;for(const[n,r]of $.entries())t(n),e=e&&r.processed;return e},ss=function(t,e){let n=e;wt().securityLevel!=="loose"&&(n=En.sanitizeUrl(e)),t.split(",").forEach(function(r){bt(r)!==void 0&&(wn(r,()=>{window.open(n,"_self")}),we[r]=n)}),xn(t,"clickable")},xn=function(t,e){t.split(",").forEach(function(n){let r=bt(n);r!==void 0&&r.classes.push(e)})},as=function(t,e,n){if(wt().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<r.length;s++){let a=r[s].trim();a.charAt(0)==='"'&&a.charAt(a.length-1)==='"'&&(a=a.substr(1,a.length-2)),r[s]=a}}r.length===0&&r.push(t),bt(t)!==void 0&&wn(t,()=>{Wn.runFunc(e,...r)})},wn=function(t,e){Me.push(function(){const n=document.querySelector(`[id="${t}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const n=document.querySelector(`[id="${t}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},os=function(t,e,n){t.split(",").forEach(function(r){as(r,e,n)}),xn(t,"clickable")},cs=function(t){Me.forEach(function(e){e(t)})},ls={getConfig:()=>wt().gantt,clear:Ui,setDateFormat:Wi,getDateFormat:Ri,enableInclusiveEndDates:Oi,endDatesAreInclusive:Hi,enableTopAxis:Ni,topAxisEnabled:Vi,setAxisFormat:Yi,getAxisFormat:Fi,setTickInterval:Li,getTickInterval:Ei,setTodayMarker:Ai,getTodayMarker:Ii,setAccTitle:Dn,getAccTitle:Mn,setDiagramTitle:Sn,getDiagramTitle:_n,setDisplayMode:Pi,getDisplayMode:zi,setAccDescription:Un,getAccDescription:Yn,addSection:ji,getSections:Qi,getTasks:Ji,addTask:rs,findTaskById:bt,addTaskOrg:is,setIncludes:Bi,getIncludes:Zi,setExcludes:Xi,getExcludes:qi,setClickEvent:os,setLink:ss,getLinks:Gi,bindFunctions:cs,parseDuration:Tn,isInvalidDate:kn,setWeekday:$i,getWeekday:Ki};function Cn(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(i){const s="^\\s*"+i+"\\s*$",a=new RegExp(s);t[0].match(a)&&(e[i]=!0,t.shift(1),r=!0)})}const us=function(){qt.debug("Something is calling, setConf, remove the call")},Re={monday:It,tuesday:nn,wednesday:rn,thursday:kt,friday:sn,saturday:an,sunday:Ot},fs=(t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((s,a)=>s.startTime-a.startTime||s.order-a.order),i=0;for(const s of r)for(let a=0;a<n.length;a++)if(s.startTime>=n[a]){n[a]=s.endTime,s.order=a+e,a>i&&(i=a);break}return i};let lt;const hs=function(t,e,n,r){const i=wt().gantt,s=wt().securityLevel;let a;s==="sandbox"&&(a=zt("#i"+e));const k=s==="sandbox"?zt(a.nodes()[0].contentDocument.body):zt("body"),Y=s==="sandbox"?a.nodes()[0].contentDocument:document,g=Y.getElementById(e);lt=g.parentElement.offsetWidth,lt===void 0&&(lt=1200),i.useWidth!==void 0&&(lt=i.useWidth);const b=r.db.getTasks();let U=[];for(const T of b)U.push(T.type);U=A(U);const C={};let v=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const T={};for(const D of b)T[D.section]===void 0?T[D.section]=[D]:T[D.section].push(D);let F=0;for(const D of Object.keys(T)){const w=fs(T[D],F)+1;F+=w,v+=w*(i.barHeight+i.barGap),C[D]=w}}else{v+=b.length*(i.barHeight+i.barGap);for(const T of U)C[T]=b.filter(F=>F.type===T).length}g.setAttribute("viewBox","0 0 "+lt+" "+v);const q=k.select(`[id="${e}"]`),y=bi().domain([Bn(b,function(T){return T.startTime}),Rn(b,function(T){return T.endTime})]).rangeRound([0,lt-i.leftPadding-i.rightPadding]);function L(T,F){const D=T.startTime,w=F.startTime;let o=0;return D>w?o=1:D<w&&(o=-1),o}b.sort(L),O(b,lt,v),An(q,v,lt,i.useMaxWidth),q.append("text").text(r.db.getDiagramTitle()).attr("x",lt/2).attr("y",i.titleTopMargin).attr("class","titleText");function O(T,F,D){const w=i.barHeight,o=w+i.barGap,d=i.topPadding,m=i.leftPadding,u=Hn().domain([0,U.length]).range(["#00B9FA","#F95002"]).interpolate(sr);B(o,d,m,F,D,T,r.db.getExcludes(),r.db.getIncludes()),Z(m,d,F,D),W(T,o,d,m,w,u,F),Q(o,d),x(m,d,F,D)}function W(T,F,D,w,o,d,m){const S=[...new Set(T.map(h=>h.order))].map(h=>T.find(_=>_.order===h));q.append("g").selectAll("rect").data(S).enter().append("rect").attr("x",0).attr("y",function(h,_){return _=h.order,_*F+D-2}).attr("width",function(){return m-i.rightPadding/2}).attr("height",F).attr("class",function(h){for(const[_,G]of U.entries())if(h.type===G)return"section section"+_%i.numberSectionStyles;return"section section0"});const c=q.append("g").selectAll("rect").data(T).enter(),X=r.db.getLinks();if(c.append("rect").attr("id",function(h){return h.id}).attr("rx",3).attr("ry",3).attr("x",function(h){return h.milestone?y(h.startTime)+w+.5*(y(h.endTime)-y(h.startTime))-.5*o:y(h.startTime)+w}).attr("y",function(h,_){return _=h.order,_*F+D}).attr("width",function(h){return h.milestone?o:y(h.renderEndTime||h.endTime)-y(h.startTime)}).attr("height",o).attr("transform-origin",function(h,_){return _=h.order,(y(h.startTime)+w+.5*(y(h.endTime)-y(h.startTime))).toString()+"px "+(_*F+D+.5*o).toString()+"px"}).attr("class",function(h){const _="task";let G="";h.classes.length>0&&(G=h.classes.join(" "));let H=0;for(const[I,P]of U.entries())h.type===P&&(H=I%i.numberSectionStyles);let V="";return h.active?h.crit?V+=" activeCrit":V=" active":h.done?h.crit?V=" doneCrit":V=" done":h.crit&&(V+=" crit"),V.length===0&&(V=" task"),h.milestone&&(V=" milestone "+V),V+=H,V+=" "+G,_+V}),c.append("text").attr("id",function(h){return h.id+"-text"}).text(function(h){return h.task}).attr("font-size",i.fontSize).attr("x",function(h){let _=y(h.startTime),G=y(h.renderEndTime||h.endTime);h.milestone&&(_+=.5*(y(h.endTime)-y(h.startTime))-.5*o),h.milestone&&(G=_+o);const H=this.getBBox().width;return H>G-_?G+H+1.5*i.leftPadding>m?_+w-5:G+w+5:(G-_)/2+_+w}).attr("y",function(h,_){return _=h.order,_*F+i.barHeight/2+(i.fontSize/2-2)+D}).attr("text-height",o).attr("class",function(h){const _=y(h.startTime);let G=y(h.endTime);h.milestone&&(G=_+o);const H=this.getBBox().width;let V="";h.classes.length>0&&(V=h.classes.join(" "));let I=0;for(const[st,it]of U.entries())h.type===it&&(I=st%i.numberSectionStyles);let P="";return h.active&&(h.crit?P="activeCritText"+I:P="activeText"+I),h.done?h.crit?P=P+" doneCritText"+I:P=P+" doneText"+I:h.crit&&(P=P+" critText"+I),h.milestone&&(P+=" milestoneText"),H>G-_?G+H+1.5*i.leftPadding>m?V+" taskTextOutsideLeft taskTextOutside"+I+" "+P:V+" taskTextOutsideRight taskTextOutside"+I+" "+P+" width-"+H:V+" taskText taskText"+I+" "+P+" width-"+H}),wt().securityLevel==="sandbox"){let h;h=zt("#i"+e);const _=h.nodes()[0].contentDocument;c.filter(function(G){return X[G.id]!==void 0}).each(function(G){var H=_.querySelector("#"+G.id),V=_.querySelector("#"+G.id+"-text");const I=H.parentNode;var P=_.createElement("a");P.setAttribute("xlink:href",X[G.id]),P.setAttribute("target","_top"),I.appendChild(P),P.appendChild(H),P.appendChild(V)})}}function B(T,F,D,w,o,d,m,u){if(m.length===0&&u.length===0)return;let S,c;for(const{startTime:H,endTime:V}of d)(S===void 0||H<S)&&(S=H),(c===void 0||V>c)&&(c=V);if(!S||!c)return;if(nt(c).diff(nt(S),"year")>5){qt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const X=r.db.getDateFormat(),f=[];let h=null,_=nt(S);for(;_.valueOf()<=c;)r.db.isInvalidDate(_,X,m,u)?h?h.end=_:h={start:_,end:_}:h&&(f.push(h),h=null),_=_.add(1,"d");q.append("g").selectAll("rect").data(f).enter().append("rect").attr("id",function(H){return"exclude-"+H.start.format("YYYY-MM-DD")}).attr("x",function(H){return y(H.start)+D}).attr("y",i.gridLineStartPadding).attr("width",function(H){const V=H.end.add(1,"day");return y(V)-y(H.start)}).attr("height",o-F-i.gridLineStartPadding).attr("transform-origin",function(H,V){return(y(H.start)+D+.5*(y(H.end)-y(H.start))).toString()+"px "+(V*T+.5*o).toString()+"px"}).attr("class","exclude-range")}function Z(T,F,D,w){let o=$n(y).tickSize(-w+F+i.gridLineStartPadding).tickFormat(Qt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));const m=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(m!==null){const u=m[1],S=m[2],c=r.db.getWeekday()||i.weekday;switch(S){case"millisecond":o.ticks(Mt.every(u));break;case"second":o.ticks(gt.every(u));break;case"minute":o.ticks(Et.every(u));break;case"hour":o.ticks(At.every(u));break;case"day":o.ticks(yt.every(u));break;case"week":o.ticks(Re[c].every(u));break;case"month":o.ticks(Wt.every(u));break}}if(q.append("g").attr("class","grid").attr("transform","translate("+T+", "+(w-50)+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let u=Jn(y).tickSize(-w+F+i.gridLineStartPadding).tickFormat(Qt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(m!==null){const S=m[1],c=m[2],X=r.db.getWeekday()||i.weekday;switch(c){case"millisecond":u.ticks(Mt.every(S));break;case"second":u.ticks(gt.every(S));break;case"minute":u.ticks(Et.every(S));break;case"hour":u.ticks(At.every(S));break;case"day":u.ticks(yt.every(S));break;case"week":u.ticks(Re[X].every(S));break;case"month":u.ticks(Wt.every(S));break}}q.append("g").attr("class","grid").attr("transform","translate("+T+", "+F+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function Q(T,F){let D=0;const w=Object.keys(C).map(o=>[o,C[o]]);q.append("g").selectAll("text").data(w).enter().append(function(o){const d=o[0].split(In.lineBreakRegex),m=-(d.length-1)/2,u=Y.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",m+"em");for(const[S,c]of d.entries()){const X=Y.createElementNS("http://www.w3.org/2000/svg","tspan");X.setAttribute("alignment-baseline","central"),X.setAttribute("x","10"),S>0&&X.setAttribute("dy","1em"),X.textContent=c,u.appendChild(X)}return u}).attr("x",10).attr("y",function(o,d){if(d>0)for(let m=0;m<d;m++)return D+=w[d-1][1],o[1]*T/2+D*T+F;else return o[1]*T/2+F}).attr("font-size",i.sectionFontSize).attr("class",function(o){for(const[d,m]of U.entries())if(o[0]===m)return"sectionTitle sectionTitle"+d%i.numberSectionStyles;return"sectionTitle"})}function x(T,F,D,w){const o=r.db.getTodayMarker();if(o==="off")return;const d=q.append("g").attr("class","today"),m=new Date,u=d.append("line");u.attr("x1",y(m)+T).attr("x2",y(m)+T).attr("y1",i.titleTopMargin).attr("y2",w-i.titleTopMargin).attr("class","today"),o!==""&&u.attr("style",o.replace(/,/g,";"))}function A(T){const F={},D=[];for(let w=0,o=T.length;w<o;++w)Object.prototype.hasOwnProperty.call(F,T[w])||(F[T[w]]=!0,D.push(T[w]));return D}},ds={setConf:us,draw:hs},ms=t=>`
.mermaid-main-font {
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
.exclude-range {
fill: ${t.excludeBkgColor};
}
.section {
stroke: none;
opacity: 0.2;
}
.section0 {
fill: ${t.sectionBkgColor};
}
.section2 {
fill: ${t.sectionBkgColor2};
}
.section1,
.section3 {
fill: ${t.altSectionBkgColor};
opacity: 0.2;
}
.sectionTitle0 {
fill: ${t.titleColor};
}
.sectionTitle1 {
fill: ${t.titleColor};
}
.sectionTitle2 {
fill: ${t.titleColor};
}
.sectionTitle3 {
fill: ${t.titleColor};
}
.sectionTitle {
text-anchor: start;
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
/* Grid and axis */
.grid .tick {
stroke: ${t.gridColor};
opacity: 0.8;
shape-rendering: crispEdges;
}
.grid .tick text {
font-family: ${t.fontFamily};
fill: ${t.textColor};
}
.grid path {
stroke-width: 0;
}
/* Today line */
.today {
fill: none;
stroke: ${t.todayLineColor};
stroke-width: 2px;
}
/* Task styling */
/* Default task */
.task {
stroke-width: 2;
}
.taskText {
text-anchor: middle;
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
.taskTextOutsideRight {
fill: ${t.taskTextDarkColor};
text-anchor: start;
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
.taskTextOutsideLeft {
fill: ${t.taskTextDarkColor};
text-anchor: end;
}
/* Special case clickable */
.task.clickable {
cursor: pointer;
}
.taskText.clickable {
cursor: pointer;
fill: ${t.taskTextClickableColor} !important;
font-weight: bold;
}
.taskTextOutsideLeft.clickable {
cursor: pointer;
fill: ${t.taskTextClickableColor} !important;
font-weight: bold;
}
.taskTextOutsideRight.clickable {
cursor: pointer;
fill: ${t.taskTextClickableColor} !important;
font-weight: bold;
}
/* Specific task settings for the sections*/
.taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: ${t.taskTextColor};
}
.task0,
.task1,
.task2,
.task3 {
fill: ${t.taskBkgColor};
stroke: ${t.taskBorderColor};
}
.taskTextOutside0,
.taskTextOutside2
{
fill: ${t.taskTextOutsideColor};
}
.taskTextOutside1,
.taskTextOutside3 {
fill: ${t.taskTextOutsideColor};
}
/* Active task */
.active0,
.active1,
.active2,
.active3 {
fill: ${t.activeTaskBkgColor};
stroke: ${t.activeTaskBorderColor};
}
.activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: ${t.taskTextDarkColor} !important;
}
/* Completed task */
.done0,
.done1,
.done2,
.done3 {
stroke: ${t.doneTaskBorderColor};
fill: ${t.doneTaskBkgColor};
stroke-width: 2;
}
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: ${t.taskTextDarkColor} !important;
}
/* Tasks on the critical line */
.crit0,
.crit1,
.crit2,
.crit3 {
stroke: ${t.critBorderColor};
fill: ${t.critBkgColor};
stroke-width: 2;
}
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: ${t.critBorderColor};
fill: ${t.activeTaskBkgColor};
stroke-width: 2;
}
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: ${t.critBorderColor};
fill: ${t.doneTaskBkgColor};
stroke-width: 2;
cursor: pointer;
shape-rendering: crispEdges;
}
.milestone {
transform: rotate(45deg) scale(0.8,0.8);
}
.milestoneText {
font-style: italic;
}
.doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
fill: ${t.taskTextDarkColor} !important;
}
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: ${t.taskTextDarkColor} !important;
}
.titleText {
text-anchor: middle;
font-size: 18px;
fill: ${t.titleColor||t.textColor};
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
`,gs=ms,ws={parser:xi,db:ls,renderer:ds,styles:gs};export{ws as diagram};
import{d as xDe,p as RDe}from"./flowDb-147da10a-Cx_grzty.js";import{M as Dse,O as KDe,l as Ba,h as OA,$ as $U,t as BDe,n as Ebn,p as jbn,q as DU,j as FDe}from"./slidev/Mermaid-sWhOKcCj.js";import{i as _De,a as HDe,l as qDe,b as UDe,k as GDe,m as zDe}from"./edges-1e1ebc73-BF9aEHVZ.js";import{l as XDe}from"./line-65d70945-Bv9b7vLo.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./createText-f6615236-DY9JQ1lr.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const VDe=(ct,_t,Xt)=>{const{parentById:gt}=Xt,Pr=new Set;let Li=ct;for(;Li;){if(Pr.add(Li),Li===_t)return Li;Li=gt[Li]}for(Li=_t;Li;){if(Pr.has(Li))return Li;Li=gt[Li]}return"root"};function NU(ct){throw new Error('Could not dynamically require "'+ct+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Kse={exports:{}};(function(ct,_t){(function(Xt){ct.exports=Xt()})(function(){return function(){function Xt(gt,Pr,Li){function y(Ht,Jt){if(!Pr[Ht]){if(!gt[Ht]){var Xe=typeof NU=="function"&&NU;if(!Jt&&Xe)return Xe(Ht,!0);if(Wt)return Wt(Ht,!0);var Yi=new Error("Cannot find module '"+Ht+"'");throw Yi.code="MODULE_NOT_FOUND",Yi}var Bi=Pr[Ht]={exports:{}};gt[Ht][0].call(Bi.exports,function(En){var hu=gt[Ht][1][En];return y(hu||En)},Bi,Bi.exports,Xt,gt,Pr,Li)}return Pr[Ht].exports}for(var Wt=typeof NU=="function"&&NU,Ku=0;Ku<Li.length;Ku++)y(Li[Ku]);return y}return Xt}()({1:[function(Xt,gt,Pr){Object.defineProperty(Pr,"__esModule",{value:!0});var Li=function(){function Ht(Jt,Xe){for(var Yi=0;Yi<Xe.length;Yi++){var Bi=Xe[Yi];Bi.enumerable=Bi.enumerable||!1,Bi.configurable=!0,"value"in Bi&&(Bi.writable=!0),Object.defineProperty(Jt,Bi.key,Bi)}}return function(Jt,Xe,Yi){return Xe&&Ht(Jt.prototype,Xe),Yi&&Ht(Jt,Yi),Jt}}();function y(Ht,Jt){if(!(Ht instanceof Jt))throw new TypeError("Cannot call a class as a function")}var Wt=function(){function Ht(){var Jt=this,Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Yi=Xe.defaultLayoutOptions,Bi=Yi===void 0?{}:Yi,En=Xe.algorithms,hu=En===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:En,Qc=Xe.workerFactory,Bu=Xe.workerUrl;if(y(this,Ht),this.defaultLayoutOptions=Bi,this.initialized=!1,typeof Bu>"u"&&typeof Qc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Ir=Qc;typeof Bu<"u"&&typeof Qc>"u"&&(Ir=function(D1){return new Worker(D1)});var Tf=Ir(Bu);if(typeof Tf.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Ku(Tf),this.worker.postMessage({cmd:"register",algorithms:hu}).then(function(N1){return Jt.initialized=!0}).catch(console.err)}return Li(Ht,[{key:"layout",value:function(Xe){var Yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bi=Yi.layoutOptions,En=Bi===void 0?this.defaultLayoutOptions:Bi,hu=Yi.logging,Qc=hu===void 0?!1:hu,Bu=Yi.measureExecutionTime,Ir=Bu===void 0?!1:Bu;return Xe?this.worker.postMessage({cmd:"layout",graph:Xe,layoutOptions:En,options:{logging:Qc,measureExecutionTime:Ir}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),Ht}();Pr.default=Wt;var Ku=function(){function Ht(Jt){var Xe=this;if(y(this,Ht),Jt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=Jt,this.worker.onmessage=function(Yi){setTimeout(function(){Xe.receive(Xe,Yi)},0)}}return Li(Ht,[{key:"postMessage",value:function(Xe){var Yi=this.id||0;this.id=Yi+1,Xe.id=Yi;var Bi=this;return new Promise(function(En,hu){Bi.resolvers[Yi]=function(Qc,Bu){Qc?(Bi.convertGwtStyleError(Qc),hu(Qc)):En(Bu)},Bi.worker.postMessage(Xe)})}},{key:"receive",value:function(Xe,Yi){var Bi=Yi.data,En=Xe.resolvers[Bi.id];En&&(delete Xe.resolvers[Bi.id],Bi.error?En(Bi.error):En(null,Bi.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Xe){if(Xe){var Yi=Xe.__java$exception;Yi&&(Yi.cause&&Yi.cause.backingJsObject&&(Xe.cause=Yi.cause.backingJsObject,this.convertGwtStyleError(Xe.cause)),delete Xe.__java$exception)}}}]),Ht}()},{}],2:[function(Xt,gt,Pr){(function(Li){(function(){var y;typeof window<"u"?y=window:typeof Li<"u"?y=Li:typeof self<"u"&&(y=self);var Wt;function Ku(){}function Ht(){}function Jt(){}function Xe(){}function Yi(){}function Bi(){}function En(){}function hu(){}function Qc(){}function Bu(){}function Ir(){}function Tf(){}function N1(){}function D1(){}function og(){}function V3(){}function $1(){}function ul(){}function Mbn(){}function Tbn(){}function Q2(){}function R(){}function Cbn(){}function mE(){}function Sbn(){}function Pbn(){}function Ibn(){}function Obn(){}function Abn(){}function xU(){}function Lbn(){}function Nbn(){}function Dbn(){}function AA(){}function $bn(){}function xbn(){}function Rbn(){}function LA(){}function Kbn(){}function Bbn(){}function RU(){}function Fbn(){}function _bn(){}function yu(){}function ju(){}function Y2(){}function Z2(){}function Hbn(){}function qbn(){}function Ubn(){}function Gbn(){}function KU(){}function Eu(){}function np(){}function ep(){}function zbn(){}function Xbn(){}function NA(){}function Vbn(){}function Wbn(){}function Jbn(){}function Qbn(){}function Ybn(){}function Zbn(){}function n0n(){}function e0n(){}function t0n(){}function i0n(){}function r0n(){}function c0n(){}function u0n(){}function o0n(){}function s0n(){}function f0n(){}function h0n(){}function l0n(){}function a0n(){}function d0n(){}function b0n(){}function w0n(){}function g0n(){}function p0n(){}function m0n(){}function v0n(){}function k0n(){}function y0n(){}function j0n(){}function E0n(){}function M0n(){}function T0n(){}function C0n(){}function BU(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function DA(){}function $A(){}function vE(){}function A0n(){}function L0n(){}function xA(){}function N0n(){}function D0n(){}function $0n(){}function kE(){}function x0n(){}function R0n(){}function K0n(){}function B0n(){}function F0n(){}function _0n(){}function H0n(){}function q0n(){}function U0n(){}function FU(){}function G0n(){}function z0n(){}function _U(){}function X0n(){}function V0n(){}function W0n(){}function J0n(){}function Q0n(){}function Y0n(){}function Z0n(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function RA(){}function uwn(){}function own(){}function swn(){}function fwn(){}function hwn(){}function lwn(){}function awn(){}function dwn(){}function bwn(){}function HU(){}function qU(){}function wwn(){}function gwn(){}function pwn(){}function mwn(){}function vwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Mwn(){}function Twn(){}function Cwn(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Awn(){}function Lwn(){}function Nwn(){}function Dwn(){}function $wn(){}function xwn(){}function Rwn(){}function Kwn(){}function Bwn(){}function Fwn(){}function _wn(){}function Hwn(){}function qwn(){}function Uwn(){}function Gwn(){}function zwn(){}function Xwn(){}function Vwn(){}function Wwn(){}function Jwn(){}function Qwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function ogn(){}function sgn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function mgn(){}function vgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Mgn(){}function Tgn(){}function Cgn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Agn(){}function Lgn(){}function Ngn(){}function Dgn(){}function $gn(){}function xgn(){}function Rgn(){}function Kgn(){}function Bgn(){}function Fgn(){}function _gn(){}function Hgn(){}function qgn(){}function Ugn(){}function Ggn(){}function zgn(){}function Xgn(){}function Vgn(){}function Wgn(){}function Jgn(){}function Qgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function UU(){}function o2n(){}function s2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function m2n(){}function v2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function M2n(){}function T2n(){}function C2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function A2n(){}function L2n(){}function N2n(){}function D2n(){}function $2n(){}function x2n(){}function R2n(){}function K2n(){}function B2n(){}function F2n(){}function _2n(){}function H2n(){}function q2n(){}function U2n(){}function G2n(){}function z2n(){}function X2n(){}function V2n(){}function W2n(){}function J2n(){}function Q2n(){}function Y2n(){}function Z2n(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function opn(){}function spn(){}function fpn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function mpn(){}function vpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Mpn(){}function Tpn(){}function GU(){}function Cpn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Apn(){}function Lpn(){}function Npn(){}function Dpn(){}function $pn(){}function zU(){}function xpn(){}function Rpn(){}function Kpn(){}function Bpn(){}function Fpn(){}function _pn(){}function XU(){}function VU(){}function Hpn(){}function WU(){}function JU(){}function qpn(){}function Upn(){}function Gpn(){}function zpn(){}function Xpn(){}function Vpn(){}function Wpn(){}function Jpn(){}function Qpn(){}function Ypn(){}function Zpn(){}function QU(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function o3n(){}function s3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function m3n(){}function v3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function M3n(){}function T3n(){}function C3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function A3n(){}function L3n(){}function N3n(){}function D3n(){}function $3n(){}function x3n(){}function R3n(){}function K3n(){}function B3n(){}function F3n(){}function _3n(){}function H3n(){}function q3n(){}function U3n(){}function G3n(){}function z3n(){}function X3n(){}function V3n(){}function W3n(){}function J3n(){}function Q3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function r4n(){}function c4n(){}function u4n(){}function o4n(){}function s4n(){}function f4n(){}function h4n(){}function l4n(){}function a4n(){}function d4n(){}function b4n(){}function w4n(){}function g4n(){}function p4n(){}function m4n(){}function v4n(){}function k4n(){}function y4n(){}function j4n(){}function E4n(){}function M4n(){}function T4n(){}function C4n(){}function S4n(){}function P4n(){}function I4n(){}function O4n(){}function A4n(){}function _se(){}function L4n(){}function N4n(){}function D4n(){}function $4n(){}function x4n(){}function R4n(){}function K4n(){}function B4n(){}function F4n(){}function _4n(){}function H4n(){}function q4n(){}function U4n(){}function G4n(){}function z4n(){}function X4n(){}function V4n(){}function W4n(){}function J4n(){}function Q4n(){}function Y4n(){}function Z4n(){}function nmn(){}function emn(){}function tmn(){}function imn(){}function rmn(){}function KA(){}function BA(){}function cmn(){}function FA(){}function umn(){}function omn(){}function smn(){}function fmn(){}function hmn(){}function lmn(){}function amn(){}function dmn(){}function bmn(){}function wmn(){}function YU(){}function gmn(){}function pmn(){}function mmn(){}function Hse(){}function vmn(){}function kmn(){}function ymn(){}function jmn(){}function Emn(){}function Mmn(){}function Tmn(){}function Fa(){}function Cmn(){}function tp(){}function ZU(){}function Smn(){}function Pmn(){}function Imn(){}function Omn(){}function Amn(){}function Lmn(){}function Nmn(){}function Dmn(){}function $mn(){}function xmn(){}function Rmn(){}function Kmn(){}function Bmn(){}function Fmn(){}function _mn(){}function Hmn(){}function qmn(){}function Umn(){}function Gmn(){}function hn(){}function zmn(){}function Xmn(){}function Vmn(){}function Wmn(){}function Jmn(){}function Qmn(){}function Ymn(){}function Zmn(){}function nvn(){}function evn(){}function tvn(){}function ivn(){}function rvn(){}function _A(){}function cvn(){}function uvn(){}function ovn(){}function yE(){}function svn(){}function HA(){}function jE(){}function fvn(){}function nG(){}function hvn(){}function lvn(){}function avn(){}function dvn(){}function bvn(){}function wvn(){}function EE(){}function gvn(){}function pvn(){}function ME(){}function mvn(){}function TE(){}function vvn(){}function eG(){}function kvn(){}function qA(){}function tG(){}function yvn(){}function jvn(){}function Evn(){}function Mvn(){}function qse(){}function Tvn(){}function Cvn(){}function Svn(){}function Pvn(){}function Ivn(){}function Ovn(){}function Avn(){}function Lvn(){}function Nvn(){}function Dvn(){}function W3(){}function UA(){}function $vn(){}function xvn(){}function Rvn(){}function Kvn(){}function Bvn(){}function Fvn(){}function _vn(){}function Hvn(){}function qvn(){}function Uvn(){}function Gvn(){}function zvn(){}function Xvn(){}function Vvn(){}function Wvn(){}function Jvn(){}function Qvn(){}function Yvn(){}function Zvn(){}function n6n(){}function e6n(){}function t6n(){}function i6n(){}function r6n(){}function c6n(){}function u6n(){}function o6n(){}function s6n(){}function f6n(){}function h6n(){}function l6n(){}function a6n(){}function d6n(){}function b6n(){}function w6n(){}function g6n(){}function p6n(){}function m6n(){}function v6n(){}function k6n(){}function y6n(){}function j6n(){}function E6n(){}function M6n(){}function T6n(){}function C6n(){}function S6n(){}function P6n(){}function I6n(){}function O6n(){}function A6n(){}function L6n(){}function N6n(){}function D6n(){}function $6n(){}function x6n(){}function R6n(){}function K6n(){}function B6n(){}function F6n(){}function _6n(){}function H6n(){}function q6n(){}function U6n(){}function G6n(){}function z6n(){}function X6n(){}function V6n(){}function W6n(){}function J6n(){}function Q6n(){}function Y6n(){}function Z6n(){}function n5n(){}function e5n(){}function t5n(){}function i5n(){}function r5n(){}function c5n(){}function u5n(){}function o5n(){}function s5n(){}function f5n(){}function h5n(){}function l5n(){}function a5n(){}function d5n(){}function b5n(){}function w5n(){}function g5n(){}function p5n(){}function m5n(){}function v5n(){}function k5n(){}function y5n(){}function j5n(){}function E5n(){}function M5n(){}function T5n(){}function C5n(){}function S5n(){}function iG(){}function P5n(){}function I5n(){}function GA(){Zv()}function O5n(){r7()}function A5n(){aS()}function L5n(){Q$()}function N5n(){M5()}function D5n(){lnn()}function $5n(){Us()}function x5n(){yZ()}function R5n(){Uk()}function K5n(){c7()}function B5n(){N7()}function F5n(){aMn()}function _5n(){Hp()}function H5n(){FNn()}function q5n(){kQ()}function U5n(){PAn()}function G5n(){yQ()}function z5n(){pDn()}function X5n(){SAn()}function V5n(){cm()}function W5n(){nxn()}function J5n(){Z$n()}function Q5n(){ELn()}function Y5n(){exn()}function Z5n(){ua()}function n8n(){ZE()}function e8n(){htn()}function t8n(){cn()}function i8n(){txn()}function r8n(){Ixn()}function c8n(){IAn()}function u8n(){nFn()}function o8n(){OAn()}function s8n(){bUn()}function f8n(){Hnn()}function h8n(){kl()}function l8n(){wKn()}function a8n(){lc()}function d8n(){BAn()}function b8n(){_p()}function w8n(){Men()}function g8n(){oa()}function p8n(){Ten()}function m8n(){Bf()}function v8n(){Wk()}function k8n(){ER()}function y8n(){Lx()}function uf(){wPn()}function j8n(){YT()}function E8n(){mS()}function rG(){He()}function M8n(){DC()}function T8n(){QY()}function cG(){L$()}function uG(){FS()}function C8n(){xen()}function oG(n){Jn(n)}function S8n(n){this.a=n}function CE(n){this.a=n}function P8n(n){this.a=n}function I8n(n){this.a=n}function O8n(n){this.a=n}function A8n(n){this.a=n}function L8n(n){this.a=n}function N8n(n){this.a=n}function sG(n){this.a=n}function fG(n){this.a=n}function D8n(n){this.a=n}function $8n(n){this.a=n}function zA(n){this.a=n}function x8n(n){this.a=n}function R8n(n){this.a=n}function XA(n){this.a=n}function VA(n){this.a=n}function K8n(n){this.a=n}function WA(n){this.a=n}function B8n(n){this.a=n}function F8n(n){this.a=n}function _8n(n){this.a=n}function hG(n){this.b=n}function H8n(n){this.c=n}function q8n(n){this.a=n}function U8n(n){this.a=n}function G8n(n){this.a=n}function z8n(n){this.a=n}function X8n(n){this.a=n}function V8n(n){this.a=n}function W8n(n){this.a=n}function J8n(n){this.a=n}function Q8n(n){this.a=n}function Y8n(n){this.a=n}function Z8n(n){this.a=n}function n9n(n){this.a=n}function e9n(n){this.a=n}function lG(n){this.a=n}function aG(n){this.a=n}function SE(n){this.a=n}function U9(n){this.a=n}function _a(){this.a=[]}function t9n(n,e){n.a=e}function Use(n,e){n.a=e}function Gse(n,e){n.b=e}function zse(n,e){n.b=e}function Xse(n,e){n.b=e}function dG(n,e){n.j=e}function Vse(n,e){n.g=e}function Wse(n,e){n.i=e}function Jse(n,e){n.c=e}function Qse(n,e){n.c=e}function Yse(n,e){n.d=e}function Zse(n,e){n.d=e}function Ha(n,e){n.k=e}function nfe(n,e){n.c=e}function bG(n,e){n.c=e}function wG(n,e){n.a=e}function efe(n,e){n.a=e}function tfe(n,e){n.f=e}function ife(n,e){n.a=e}function rfe(n,e){n.b=e}function JA(n,e){n.d=e}function PE(n,e){n.i=e}function gG(n,e){n.o=e}function cfe(n,e){n.r=e}function ufe(n,e){n.a=e}function ofe(n,e){n.b=e}function i9n(n,e){n.e=e}function sfe(n,e){n.f=e}function pG(n,e){n.g=e}function ffe(n,e){n.e=e}function hfe(n,e){n.f=e}function lfe(n,e){n.f=e}function QA(n,e){n.a=e}function YA(n,e){n.b=e}function afe(n,e){n.n=e}function dfe(n,e){n.a=e}function bfe(n,e){n.c=e}function wfe(n,e){n.c=e}function gfe(n,e){n.c=e}function pfe(n,e){n.a=e}function mfe(n,e){n.a=e}function vfe(n,e){n.d=e}function kfe(n,e){n.d=e}function yfe(n,e){n.e=e}function jfe(n,e){n.e=e}function Efe(n,e){n.g=e}function Mfe(n,e){n.f=e}function Tfe(n,e){n.j=e}function Cfe(n,e){n.a=e}function Sfe(n,e){n.a=e}function Pfe(n,e){n.b=e}function r9n(n){n.b=n.a}function c9n(n){n.c=n.d.d}function mG(n){this.a=n}function vG(n){this.a=n}function kG(n){this.a=n}function qa(n){this.a=n}function Ua(n){this.a=n}function G9(n){this.a=n}function u9n(n){this.a=n}function yG(n){this.a=n}function z9(n){this.a=n}function IE(n){this.a=n}function ol(n){this.a=n}function P0(n){this.a=n}function o9n(n){this.a=n}function s9n(n){this.a=n}function ZA(n){this.b=n}function J3(n){this.b=n}function Q3(n){this.b=n}function nL(n){this.a=n}function f9n(n){this.a=n}function eL(n){this.c=n}function M(n){this.c=n}function h9n(n){this.c=n}function zv(n){this.d=n}function jG(n){this.a=n}function Ce(n){this.a=n}function l9n(n){this.a=n}function EG(n){this.a=n}function MG(n){this.a=n}function TG(n){this.a=n}function CG(n){this.a=n}function SG(n){this.a=n}function PG(n){this.a=n}function Y3(n){this.a=n}function a9n(n){this.a=n}function d9n(n){this.a=n}function Z3(n){this.a=n}function b9n(n){this.a=n}function w9n(n){this.a=n}function g9n(n){this.a=n}function p9n(n){this.a=n}function m9n(n){this.a=n}function v9n(n){this.a=n}function k9n(n){this.a=n}function y9n(n){this.a=n}function j9n(n){this.a=n}function E9n(n){this.a=n}function M9n(n){this.a=n}function T9n(n){this.a=n}function C9n(n){this.a=n}function S9n(n){this.a=n}function P9n(n){this.a=n}function Xv(n){this.a=n}function I9n(n){this.a=n}function O9n(n){this.a=n}function A9n(n){this.a=n}function L9n(n){this.a=n}function OE(n){this.a=n}function N9n(n){this.a=n}function D9n(n){this.a=n}function n4(n){this.a=n}function IG(n){this.a=n}function $9n(n){this.a=n}function x9n(n){this.a=n}function R9n(n){this.a=n}function K9n(n){this.a=n}function B9n(n){this.a=n}function F9n(n){this.a=n}function OG(n){this.a=n}function AG(n){this.a=n}function LG(n){this.a=n}function Vv(n){this.a=n}function AE(n){this.e=n}function e4(n){this.a=n}function _9n(n){this.a=n}function ip(n){this.a=n}function NG(n){this.a=n}function H9n(n){this.a=n}function q9n(n){this.a=n}function U9n(n){this.a=n}function G9n(n){this.a=n}function z9n(n){this.a=n}function X9n(n){this.a=n}function V9n(n){this.a=n}function W9n(n){this.a=n}function J9n(n){this.a=n}function Q9n(n){this.a=n}function Y9n(n){this.a=n}function DG(n){this.a=n}function Z9n(n){this.a=n}function n7n(n){this.a=n}function e7n(n){this.a=n}function t7n(n){this.a=n}function i7n(n){this.a=n}function r7n(n){this.a=n}function c7n(n){this.a=n}function u7n(n){this.a=n}function o7n(n){this.a=n}function s7n(n){this.a=n}function f7n(n){this.a=n}function h7n(n){this.a=n}function l7n(n){this.a=n}function a7n(n){this.a=n}function d7n(n){this.a=n}function b7n(n){this.a=n}function w7n(n){this.a=n}function g7n(n){this.a=n}function p7n(n){this.a=n}function m7n(n){this.a=n}function v7n(n){this.a=n}function k7n(n){this.a=n}function y7n(n){this.a=n}function j7n(n){this.a=n}function E7n(n){this.a=n}function M7n(n){this.a=n}function T7n(n){this.a=n}function C7n(n){this.a=n}function S7n(n){this.a=n}function P7n(n){this.a=n}function I7n(n){this.a=n}function O7n(n){this.a=n}function A7n(n){this.a=n}function L7n(n){this.a=n}function N7n(n){this.a=n}function D7n(n){this.a=n}function $7n(n){this.a=n}function x7n(n){this.a=n}function R7n(n){this.c=n}function K7n(n){this.b=n}function B7n(n){this.a=n}function F7n(n){this.a=n}function _7n(n){this.a=n}function H7n(n){this.a=n}function q7n(n){this.a=n}function U7n(n){this.a=n}function G7n(n){this.a=n}function z7n(n){this.a=n}function X7n(n){this.a=n}function V7n(n){this.a=n}function W7n(n){this.a=n}function J7n(n){this.a=n}function Q7n(n){this.a=n}function Y7n(n){this.a=n}function Z7n(n){this.a=n}function nkn(n){this.a=n}function ekn(n){this.a=n}function tkn(n){this.a=n}function ikn(n){this.a=n}function rkn(n){this.a=n}function ckn(n){this.a=n}function ukn(n){this.a=n}function okn(n){this.a=n}function skn(n){this.a=n}function fkn(n){this.a=n}function hkn(n){this.a=n}function lkn(n){this.a=n}function sl(n){this.a=n}function sg(n){this.a=n}function akn(n){this.a=n}function dkn(n){this.a=n}function bkn(n){this.a=n}function wkn(n){this.a=n}function gkn(n){this.a=n}function pkn(n){this.a=n}function mkn(n){this.a=n}function vkn(n){this.a=n}function kkn(n){this.a=n}function ykn(n){this.a=n}function jkn(n){this.a=n}function Ekn(n){this.a=n}function Mkn(n){this.a=n}function Tkn(n){this.a=n}function Ckn(n){this.a=n}function Skn(n){this.a=n}function Pkn(n){this.a=n}function Ikn(n){this.a=n}function Okn(n){this.a=n}function Akn(n){this.a=n}function Lkn(n){this.a=n}function Nkn(n){this.a=n}function Dkn(n){this.a=n}function $kn(n){this.a=n}function xkn(n){this.a=n}function Rkn(n){this.a=n}function LE(n){this.a=n}function Kkn(n){this.f=n}function Bkn(n){this.a=n}function Fkn(n){this.a=n}function _kn(n){this.a=n}function Hkn(n){this.a=n}function qkn(n){this.a=n}function Ukn(n){this.a=n}function Gkn(n){this.a=n}function zkn(n){this.a=n}function Xkn(n){this.a=n}function Vkn(n){this.a=n}function Wkn(n){this.a=n}function Jkn(n){this.a=n}function Qkn(n){this.a=n}function Ykn(n){this.a=n}function Zkn(n){this.a=n}function nyn(n){this.a=n}function eyn(n){this.a=n}function tyn(n){this.a=n}function iyn(n){this.a=n}function ryn(n){this.a=n}function cyn(n){this.a=n}function uyn(n){this.a=n}function oyn(n){this.a=n}function syn(n){this.a=n}function fyn(n){this.a=n}function hyn(n){this.a=n}function lyn(n){this.a=n}function ayn(n){this.a=n}function tL(n){this.a=n}function $G(n){this.a=n}function lt(n){this.b=n}function dyn(n){this.a=n}function byn(n){this.a=n}function wyn(n){this.a=n}function gyn(n){this.a=n}function pyn(n){this.a=n}function myn(n){this.a=n}function vyn(n){this.a=n}function kyn(n){this.b=n}function yyn(n){this.a=n}function X9(n){this.a=n}function jyn(n){this.a=n}function Eyn(n){this.a=n}function xG(n){this.c=n}function NE(n){this.e=n}function DE(n){this.a=n}function $E(n){this.a=n}function iL(n){this.a=n}function Myn(n){this.d=n}function Tyn(n){this.a=n}function RG(n){this.a=n}function KG(n){this.a=n}function Wd(n){this.e=n}function Ife(){this.a=0}function de(){Hu(this)}function Z(){pN(this)}function rL(){sOn(this)}function Cyn(){}function Jd(){this.c=Gdn}function Syn(n,e){n.b+=e}function Ofe(n,e){e.Wb(n)}function Afe(n){return n.a}function Lfe(n){return n.a}function Nfe(n){return n.a}function Dfe(n){return n.a}function $fe(n){return n.a}function T(n){return n.e}function xfe(){return null}function Rfe(){return null}function Kfe(){Ez(),pNe()}function Bfe(n){n.b.Of(n.e)}function Pyn(n){n.b=new ML}function Wv(n,e){n.b=e-n.b}function Jv(n,e){n.a=e-n.a}function Fn(n,e){n.push(e)}function Iyn(n,e){n.sort(e)}function Oyn(n,e){e.jd(n.a)}function Ffe(n,e){gi(e,n)}function _fe(n,e,t){n.Yd(t,e)}function V9(n,e){n.e=e,e.b=n}function BG(n){oh(),this.a=n}function Ayn(n){oh(),this.a=n}function Lyn(n){oh(),this.a=n}function cL(n){mb(),this.a=n}function Nyn(n){A4(),XF.le(n)}function FG(){FG=R,new de}function Ga(){YCn.call(this)}function _G(){YCn.call(this)}function HG(){Ga.call(this)}function uL(){Ga.call(this)}function Dyn(){Ga.call(this)}function W9(){Ga.call(this)}function Mu(){Ga.call(this)}function rp(){Ga.call(this)}function Ie(){Ga.call(this)}function Ko(){Ga.call(this)}function $yn(){Ga.call(this)}function nc(){Ga.call(this)}function xyn(){Ga.call(this)}function Ryn(){this.a=this}function xE(){this.Bb|=256}function Kyn(){this.b=new GTn}function I0(n,e){n.length=e}function RE(n,e){nn(n.a,e)}function Hfe(n,e){dnn(n.c,e)}function qfe(n,e){fi(n.b,e)}function Ufe(n,e){uS(n.a,e)}function Gfe(n,e){cx(n.a,e)}function t4(n,e){it(n.e,e)}function cp(n){jS(n.c,n.b)}function zfe(n,e){n.kc().Nb(e)}function qG(n){this.a=K5e(n)}function ni(){this.a=new de}function Byn(){this.a=new de}function UG(){this.a=new rMn}function KE(){this.a=new Z}function oL(){this.a=new Z}function GG(){this.a=new Z}function hs(){this.a=new c0n}function za(){this.a=new DNn}function zG(){this.a=new FU}function XG(){this.a=new CAn}function VG(){this.a=new KSn}function Fyn(){this.a=new Z}function _yn(){this.a=new Z}function Hyn(){this.a=new Z}function WG(){this.a=new Z}function qyn(){this.d=new Z}function Uyn(){this.a=new zAn}function Gyn(){this.a=new ni}function zyn(){this.a=new de}function Xyn(){this.b=new de}function Vyn(){this.b=new Z}function JG(){this.e=new Z}function Wyn(){this.a=new Z5n}function Jyn(){this.d=new Z}function Qyn(){QOn.call(this)}function Yyn(){QOn.call(this)}function Zyn(){Z.call(this)}function QG(){HG.call(this)}function YG(){KE.call(this)}function njn(){qM.call(this)}function ejn(){WG.call(this)}function Qv(){Cyn.call(this)}function sL(){Qv.call(this)}function up(){Cyn.call(this)}function ZG(){up.call(this)}function tjn(){iz.call(this)}function ijn(){iz.call(this)}function rjn(){iz.call(this)}function cjn(){rz.call(this)}function Yv(){svn.call(this)}function nz(){svn.call(this)}function Tu(){Mt.call(this)}function ujn(){yjn.call(this)}function ojn(){yjn.call(this)}function sjn(){de.call(this)}function fjn(){de.call(this)}function hjn(){de.call(this)}function fL(){cxn.call(this)}function ljn(){ni.call(this)}function ajn(){xE.call(this)}function hL(){RX.call(this)}function ez(){de.call(this)}function lL(){RX.call(this)}function aL(){de.call(this)}function djn(){de.call(this)}function tz(){TE.call(this)}function bjn(){tz.call(this)}function wjn(){TE.call(this)}function gjn(){iG.call(this)}function iz(){this.a=new ni}function pjn(){this.a=new de}function mjn(){this.a=new Z}function rz(){this.a=new de}function op(){this.a=new Mt}function vjn(){this.j=new Z}function kjn(){this.a=new mEn}function yjn(){this.a=new mvn}function cz(){this.a=new Z4n}function Zv(){Zv=R,FF=new Ht}function dL(){dL=R,_F=new Ejn}function bL(){bL=R,HF=new jjn}function jjn(){XA.call(this,"")}function Ejn(){XA.call(this,"")}function Mjn(n){P$n.call(this,n)}function Tjn(n){P$n.call(this,n)}function uz(n){sG.call(this,n)}function oz(n){XEn.call(this,n)}function Xfe(n){XEn.call(this,n)}function Vfe(n){oz.call(this,n)}function Wfe(n){oz.call(this,n)}function Jfe(n){oz.call(this,n)}function Cjn(n){zD.call(this,n)}function Sjn(n){zD.call(this,n)}function Pjn(n){uPn.call(this,n)}function Ijn(n){Oz.call(this,n)}function n6(n){WE.call(this,n)}function sz(n){WE.call(this,n)}function Ojn(n){WE.call(this,n)}function fz(n){mje.call(this,n)}function hz(n){fz.call(this,n)}function ec(n){SIn.call(this,n)}function Ajn(n){ec.call(this,n)}function sp(){U9.call(this,{})}function Ljn(){Ljn=R,dQn=new Tbn}function BE(){BE=R,GF=new PCn}function Njn(){Njn=R,uun=new Ku}function lz(){lz=R,sun=new D1}function FE(){FE=R,C8=new $1}function wL(n){b4(),this.a=n}function gL(n){KQ(),this.a=n}function Qd(n){nD(),this.f=n}function pL(n){nD(),this.f=n}function Djn(n){bPn(),this.a=n}function $jn(n){n.b=null,n.c=0}function Qfe(n,e){n.e=e,bqn(n,e)}function Yfe(n,e){n.a=e,cEe(n)}function mL(n,e,t){n.a[e.g]=t}function Zfe(n,e,t){kke(t,n,e)}function nhe(n,e){Wae(e.i,n.n)}function xjn(n,e){v6e(n).Cd(e)}function ehe(n,e){n.a.ec().Mc(e)}function Rjn(n,e){return n.g-e.g}function the(n,e){return n*n/e}function on(n){return Jn(n),n}function $(n){return Jn(n),n}function J9(n){return Jn(n),n}function ihe(n){return new SE(n)}function rhe(n){return new q0(n)}function az(n){return Jn(n),n}function che(n){return Jn(n),n}function _E(n){ec.call(this,n)}function Or(n){ec.call(this,n)}function Kjn(n){ec.call(this,n)}function vL(n){SIn.call(this,n)}function i4(n){ec.call(this,n)}function Gn(n){ec.call(this,n)}function Ar(n){ec.call(this,n)}function Bjn(n){ec.call(this,n)}function fp(n){ec.call(this,n)}function Fl(n){ec.call(this,n)}function _l(n){ec.call(this,n)}function hp(n){ec.call(this,n)}function eh(n){ec.call(this,n)}function kL(n){ec.call(this,n)}function Ne(n){ec.call(this,n)}function Fu(n){Jn(n),this.a=n}function dz(n){return ld(n),n}function e6(n){TW(n,n.length)}function t6(n){return n.b==n.c}function O0(n){return!!n&&n.b}function uhe(n){return!!n&&n.k}function ohe(n){return!!n&&n.j}function she(n,e,t){n.c.Ef(e,t)}function Fjn(n,e){n.be(e),e.ae(n)}function lp(n){oh(),this.a=Pe(n)}function yL(){this.a=Ae(Pe(ur))}function _jn(){throw T(new Ie)}function fhe(){throw T(new Ie)}function bz(){throw T(new Ie)}function Hjn(){throw T(new Ie)}function hhe(){throw T(new Ie)}function lhe(){throw T(new Ie)}function HE(){HE=R,A4()}function Hl(){G9.call(this,"")}function i6(){G9.call(this,"")}function x1(){G9.call(this,"")}function fg(){G9.call(this,"")}function wz(n){Or.call(this,n)}function gz(n){Or.call(this,n)}function th(n){Gn.call(this,n)}function r4(n){Q3.call(this,n)}function qjn(n){r4.call(this,n)}function jL(n){KM.call(this,n)}function EL(n){WX.call(this,n,0)}function ML(){oJ.call(this,12,3)}function C(n,e){return kAn(n,e)}function qE(n,e){return o$(n,e)}function ahe(n,e){return n.a-e.a}function dhe(n,e){return n.a-e.a}function bhe(n,e){return n.a-e.a}function whe(n,e){return e in n.a}function Ujn(n){return n.a?n.b:0}function ghe(n){return n.a?n.b:0}function phe(n,e,t){e.Cd(n.a[t])}function mhe(n,e,t){e.Pe(n.a[t])}function vhe(n,e){n.b=new rr(e)}function khe(n,e){return n.b=e,n}function Gjn(n,e){return n.c=e,n}function zjn(n,e){return n.f=e,n}function yhe(n,e){return n.g=e,n}function pz(n,e){return n.a=e,n}function mz(n,e){return n.f=e,n}function jhe(n,e){return n.k=e,n}function vz(n,e){return n.a=e,n}function Ehe(n,e){return n.e=e,n}function kz(n,e){return n.e=e,n}function Mhe(n,e){return n.f=e,n}function The(n,e){n.b=!0,n.d=e}function Che(n,e){return n.b-e.b}function She(n,e){return n.g-e.g}function Phe(n,e){return n?0:e-1}function Xjn(n,e){return n?0:e-1}function Ihe(n,e){return n?e-1:0}function Ohe(n,e){return n.s-e.s}function Ahe(n,e){return e.rg(n)}function Yd(n,e){return n.b=e,n}function UE(n,e){return n.a=e,n}function Zd(n,e){return n.c=e,n}function nb(n,e){return n.d=e,n}function eb(n,e){return n.e=e,n}function yz(n,e){return n.f=e,n}function r6(n,e){return n.a=e,n}function c4(n,e){return n.b=e,n}function u4(n,e){return n.c=e,n}function an(n,e){return n.c=e,n}function Pn(n,e){return n.b=e,n}function dn(n,e){return n.d=e,n}function bn(n,e){return n.e=e,n}function Lhe(n,e){return n.f=e,n}function wn(n,e){return n.g=e,n}function gn(n,e){return n.a=e,n}function pn(n,e){return n.i=e,n}function mn(n,e){return n.j=e,n}function Nhe(n,e){ua(),ic(e,n)}function Dhe(n,e,t){J0e(n.a,e,t)}function GE(n){$N.call(this,n)}function Vjn(n){Z5e.call(this,n)}function Wjn(n){POn.call(this,n)}function jz(n){POn.call(this,n)}function R1(n){Pb.call(this,n)}function Jjn(n){MD.call(this,n)}function Qjn(n){MD.call(this,n)}function Yjn(){AX.call(this,"")}function Ni(){this.a=0,this.b=0}function Zjn(){this.b=0,this.a=0}function nEn(n,e){n.b=0,Z0(n,e)}function eEn(n,e){return n.k=e,n}function $he(n,e){return n.j=e,n}function xhe(n,e){n.c=e,n.b=!0}function tEn(){tEn=R,CQn=Xke()}function K1(){K1=R,voe=rke()}function iEn(){iEn=R,Ci=gye()}function Ez(){Ez=R,La=z4()}function o4(){o4=R,Udn=cke()}function rEn(){rEn=R,ise=uke()}function Mz(){Mz=R,yc=tEe()}function of(n){return n.e&&n.e()}function cEn(n){return n.l|n.m<<22}function uEn(n,e){return n.c._b(e)}function oEn(n,e){return rKn(n.b,e)}function TL(n){return n?n.d:null}function Rhe(n){return n?n.g:null}function Khe(n){return n?n.i:null}function Xa(n){return ll(n),n.o}function hg(n,e){return n.a+=e,n}function CL(n,e){return n.a+=e,n}function ql(n,e){return n.a+=e,n}function tb(n,e){return n.a+=e,n}function Tz(n,e){for(;n.Bd(e););}function zE(n){this.a=new ap(n)}function sEn(){throw T(new Ie)}function fEn(){throw T(new Ie)}function hEn(){throw T(new Ie)}function lEn(){throw T(new Ie)}function aEn(){throw T(new Ie)}function dEn(){throw T(new Ie)}function Ul(n){this.a=new iD(n)}function bEn(){this.a=new R5(Bln)}function wEn(){this.b=new R5(rln)}function gEn(){this.a=new R5(f1n)}function pEn(){this.b=new R5(xq)}function mEn(){this.b=new R5(xq)}function XE(n){this.a=0,this.b=n}function Cz(n){zGn(),ONe(this,n)}function s4(n){return X1(n),n.a}function Q9(n){return n.b!=n.d.c}function Sz(n,e){return n.d[e.p]}function vEn(n,e){return XCe(n,e)}function Pz(n,e,t){n.splice(e,t)}function lg(n,e){for(;n.Re(e););}function kEn(n){n.c?Lqn(n):Nqn(n)}function yEn(){throw T(new Ie)}function jEn(){throw T(new Ie)}function EEn(){throw T(new Ie)}function MEn(){throw T(new Ie)}function TEn(){throw T(new Ie)}function CEn(){throw T(new Ie)}function SEn(){throw T(new Ie)}function PEn(){throw T(new Ie)}function IEn(){throw T(new Ie)}function OEn(){throw T(new Ie)}function Bhe(){throw T(new nc)}function Fhe(){throw T(new nc)}function Y9(n){this.a=new AEn(n)}function AEn(n){Ume(this,n,jje())}function Z9(n){return!n||oOn(n)}function n7(n){return nh[n]!=-1}function _he(){cI!=0&&(cI=0),uI=-1}function LEn(){BF==null&&(BF=[])}function e7(n,e){Tg.call(this,n,e)}function f4(n,e){e7.call(this,n,e)}function NEn(n,e){this.a=n,this.b=e}function DEn(n,e){this.a=n,this.b=e}function $En(n,e){this.a=n,this.b=e}function xEn(n,e){this.a=n,this.b=e}function REn(n,e){this.a=n,this.b=e}function KEn(n,e){this.a=n,this.b=e}function BEn(n,e){this.a=n,this.b=e}function h4(n,e){this.e=n,this.d=e}function Iz(n,e){this.b=n,this.c=e}function FEn(n,e){this.b=n,this.a=e}function _En(n,e){this.b=n,this.a=e}function HEn(n,e){this.b=n,this.a=e}function qEn(n,e){this.b=n,this.a=e}function UEn(n,e){this.a=n,this.b=e}function SL(n,e){this.a=n,this.b=e}function GEn(n,e){this.a=n,this.f=e}function ib(n,e){this.g=n,this.i=e}function je(n,e){this.f=n,this.g=e}function zEn(n,e){this.b=n,this.c=e}function XEn(n){BX(n.dc()),this.c=n}function Hhe(n,e){this.a=n,this.b=e}function VEn(n,e){this.a=n,this.b=e}function WEn(n){this.a=u(Pe(n),15)}function Oz(n){this.a=u(Pe(n),15)}function JEn(n){this.a=u(Pe(n),85)}function VE(n){this.b=u(Pe(n),85)}function WE(n){this.b=u(Pe(n),51)}function JE(){this.q=new y.Date}function PL(n,e){this.a=n,this.b=e}function QEn(n,e){return Zc(n.b,e)}function t7(n,e){return n.b.Hc(e)}function YEn(n,e){return n.b.Ic(e)}function ZEn(n,e){return n.b.Qc(e)}function nMn(n,e){return n.b.Hc(e)}function eMn(n,e){return n.c.uc(e)}function tMn(n,e){return rt(n.c,e)}function sf(n,e){return n.a._b(e)}function iMn(n,e){return n>e&&e<W5}function c6(n){return n.f.c+n.i.c}function qhe(n){return zIn(),n?aQn:lQn}function ap(n){wRn.call(this,n,0)}function rMn(){iD.call(this,null)}function dp(n){this.c=n,i$n(this)}function Mt(){jCn(this),vo(this)}function fl(){fl=R,pQn=new Cbn}function l4(){l4=R,fv=new Pbn}function A0(){A0=R,ZF=new qTn}function QE(){QE=R,PQn=new UTn}function a4(){a4=R,$un=new Bbn}function Az(){i$.call(this,null)}function Va(){Va=R,v3=new Vbn}function qt(n,e){X1(n),n.a.Nb(e)}function Uhe(n,e){return n.a.Xc(e)}function Ghe(n,e){return n.a.Yc(e)}function IL(n,e){return n.a.$c(e)}function OL(n,e){return n.a._c(e)}function zhe(n,e){return n.Gc(e),n}function Xhe(n,e){return Ki(n,e),n}function Vhe(n,e){aR(H(n.a),e)}function Whe(n,e){aR(H(n.a),e)}function cMn(n,e){return n.Gc(e),n}function Jhe(n,e){return n.a.f=e,n}function uMn(n,e){return n.a.d=e,n}function oMn(n,e){return n.a.g=e,n}function sMn(n,e){return n.a.j=e,n}function As(n,e){return n.a.a=e,n}function Ls(n,e){return n.a.d=e,n}function Ns(n,e){return n.a.e=e,n}function Ds(n,e){return n.a.g=e,n}function i7(n,e){return n.a.f=e,n}function Qhe(n){return n.b=!1,n}function fMn(){fMn=R,KQn=new Zbn}function YE(){YE=R,d_=new bSn}function Lz(){Lz=R,jZn=new z0n}function hMn(){hMn=R,EZn=new Z0n}function Nz(){Nz=R,MZn=new wIn}function Dz(){Dz=R,Aon=new iwn}function lMn(){lMn=R,NZn=new dwn}function u6(){u6=R,$Zn=new bwn}function r7(){r7=R,BZn=new _wn}function c7(){c7=R,KZn=new Ni}function aMn(){aMn=R,qZn=new Tgn}function o6(){o6=R,QZn=new upn}function ZE(){ZE=R,w2=new Opn}function nM(){nM=R,Jte=new Zmn}function eM(){eM=R,Rq=new bMn}function tM(){tM=R,Kq=new dSn}function s6(){s6=R,Hj=new bOn}function dMn(){Y$n(),this.c=new ML}function bMn(){je.call(this,VXn,0)}function Yhe(n,e,t){Lr(n.d,e.f,t)}function Zhe(n,e,t,i){I9e(n,i,e,t)}function nle(n,e,t,i){nCe(i,n,e,t)}function ele(n,e,t,i){OLe(i,n,e,t)}function f6(n,e){s1(n.c.c,e.b,e)}function rb(n,e){s1(n.c.b,e.c,e)}function tle(n){return n.e.b+n.f.b}function ile(n){return n.e.a+n.f.a}function rle(n){return n.b?n.b:n.a}function cle(n){return(n.c+n.a)/2}function wMn(n,e){return B7e(n.a,e)}function h6(n,e){return n.a=e.g,n}function $z(){$z=R,qdn=new djn}function gMn(){gMn=R,Boe=new hjn}function cb(){cb=R,poe=new nvn}function pMn(){pMn=R,Toe=new lvn}function mMn(){mMn=R,Koe=new fjn}function B1(){B1=R,Is=new ez}function iM(){iM=R,yA=new de}function l6(){l6=R,MU=new CCn}function Gl(){Gl=R,dE=new SCn}function AL(){AL=R,Zoe=new C6n}function dr(){dr=R,ese=new S6n}function F1(){F1=R,xa=new I5n}function xz(){xz=R,nbn=new Z}function rM(n){return u(n,44).ld()}function LL(n){return n.b<n.d.gc()}function ule(n,e){return e.split(n)}function NL(n,e){return Ec(n,e)>0}function DL(n,e){return Ec(n,e)<0}function vMn(n,e){return JN(n.a,e)}function ole(n,e){yAn.call(this,n,e)}function Rz(n){wD(),uPn.call(this,n)}function Kz(n,e){bIn(n,n.length,e)}function u7(n,e){HIn(n,n.length,e)}function a6(n,e){return n.a.get(e)}function kMn(n,e){return Zc(n.e,e)}function Bz(n){return Jn(n),!1}function Fz(n){this.a=u(Pe(n),229)}function cM(n){On.call(this,n,21)}function uM(n,e){je.call(this,n,e)}function $L(n,e){je.call(this,n,e)}function yMn(n,e){this.b=n,this.a=e}function oM(n,e){this.d=n,this.e=e}function jMn(n,e){this.a=n,this.b=e}function EMn(n,e){this.a=n,this.b=e}function MMn(n,e){this.a=n,this.b=e}function TMn(n,e){this.a=n,this.b=e}function bp(n,e){this.a=n,this.b=e}function CMn(n,e){this.b=n,this.a=e}function _z(n,e){this.b=n,this.a=e}function Hz(n,e){je.call(this,n,e)}function qz(n,e){je.call(this,n,e)}function ag(n,e){je.call(this,n,e)}function xL(n,e){je.call(this,n,e)}function RL(n,e){je.call(this,n,e)}function KL(n,e){je.call(this,n,e)}function sM(n,e){je.call(this,n,e)}function Uz(n,e){this.b=n,this.a=e}function fM(n,e){je.call(this,n,e)}function Gz(n,e){this.b=n,this.a=e}function hM(n,e){je.call(this,n,e)}function SMn(n,e){this.b=n,this.a=e}function zz(n,e){je.call(this,n,e)}function BL(n,e){je.call(this,n,e)}function o7(n,e){je.call(this,n,e)}function d6(n,e,t){n.splice(e,0,t)}function sle(n,e,t){n.Mb(t)&&e.Cd(t)}function fle(n,e,t){e.Pe(n.a.Ye(t))}function hle(n,e,t){e.Dd(n.a.Ze(t))}function lle(n,e,t){e.Cd(n.a.Kb(t))}function ale(n,e){return Su(n.c,e)}function dle(n,e){return Su(n.e,e)}function lM(n,e){je.call(this,n,e)}function aM(n,e){je.call(this,n,e)}function b6(n,e){je.call(this,n,e)}function Xz(n,e){je.call(this,n,e)}function ei(n,e){je.call(this,n,e)}function dM(n,e){je.call(this,n,e)}function PMn(n,e){this.a=n,this.b=e}function IMn(n,e){this.a=n,this.b=e}function OMn(n,e){this.a=n,this.b=e}function AMn(n,e){this.a=n,this.b=e}function LMn(n,e){this.a=n,this.b=e}function NMn(n,e){this.a=n,this.b=e}function DMn(n,e){this.b=n,this.a=e}function $Mn(n,e){this.b=n,this.a=e}function Vz(n,e){this.b=n,this.a=e}function d4(n,e){this.c=n,this.d=e}function xMn(n,e){this.e=n,this.d=e}function RMn(n,e){this.a=n,this.b=e}function KMn(n,e){this.a=n,this.b=e}function BMn(n,e){this.a=n,this.b=e}function FMn(n,e){this.b=n,this.a=e}function _Mn(n,e){this.b=e,this.c=n}function bM(n,e){je.call(this,n,e)}function s7(n,e){je.call(this,n,e)}function FL(n,e){je.call(this,n,e)}function Wz(n,e){je.call(this,n,e)}function w6(n,e){je.call(this,n,e)}function _L(n,e){je.call(this,n,e)}function HL(n,e){je.call(this,n,e)}function f7(n,e){je.call(this,n,e)}function Jz(n,e){je.call(this,n,e)}function qL(n,e){je.call(this,n,e)}function g6(n,e){je.call(this,n,e)}function Qz(n,e){je.call(this,n,e)}function p6(n,e){je.call(this,n,e)}function m6(n,e){je.call(this,n,e)}function L0(n,e){je.call(this,n,e)}function UL(n,e){je.call(this,n,e)}function GL(n,e){je.call(this,n,e)}function Yz(n,e){je.call(this,n,e)}function h7(n,e){je.call(this,n,e)}function dg(n,e){je.call(this,n,e)}function zL(n,e){je.call(this,n,e)}function wM(n,e){je.call(this,n,e)}function l7(n,e){je.call(this,n,e)}function N0(n,e){je.call(this,n,e)}function gM(n,e){je.call(this,n,e)}function Zz(n,e){je.call(this,n,e)}function XL(n,e){je.call(this,n,e)}function VL(n,e){je.call(this,n,e)}function WL(n,e){je.call(this,n,e)}function JL(n,e){je.call(this,n,e)}function QL(n,e){je.call(this,n,e)}function YL(n,e){je.call(this,n,e)}function ZL(n,e){je.call(this,n,e)}function HMn(n,e){this.b=n,this.a=e}function nX(n,e){je.call(this,n,e)}function qMn(n,e){this.a=n,this.b=e}function UMn(n,e){this.a=n,this.b=e}function GMn(n,e){this.a=n,this.b=e}function eX(n,e){je.call(this,n,e)}function tX(n,e){je.call(this,n,e)}function zMn(n,e){this.a=n,this.b=e}function ble(n,e){return k4(),e!=n}function a7(n){return oe(n.a),n.b}function nN(n){return yMe(n,n.c),n}function XMn(){return tEn(),new CQn}function VMn(){VM(),this.a=new vV}function WMn(){AS(),this.a=new ni}function JMn(){DD(),this.b=new ni}function QMn(n,e){this.b=n,this.d=e}function YMn(n,e){this.a=n,this.b=e}function ZMn(n,e){this.a=n,this.b=e}function nTn(n,e){this.a=n,this.b=e}function eTn(n,e){this.b=n,this.a=e}function iX(n,e){je.call(this,n,e)}function rX(n,e){je.call(this,n,e)}function pM(n,e){je.call(this,n,e)}function ub(n,e){je.call(this,n,e)}function eN(n,e){je.call(this,n,e)}function mM(n,e){je.call(this,n,e)}function cX(n,e){je.call(this,n,e)}function uX(n,e){je.call(this,n,e)}function d7(n,e){je.call(this,n,e)}function oX(n,e){je.call(this,n,e)}function tN(n,e){je.call(this,n,e)}function vM(n,e){je.call(this,n,e)}function iN(n,e){je.call(this,n,e)}function rN(n,e){je.call(this,n,e)}function cN(n,e){je.call(this,n,e)}function uN(n,e){je.call(this,n,e)}function sX(n,e){je.call(this,n,e)}function oN(n,e){je.call(this,n,e)}function fX(n,e){je.call(this,n,e)}function b7(n,e){je.call(this,n,e)}function sN(n,e){je.call(this,n,e)}function hX(n,e){je.call(this,n,e)}function w7(n,e){je.call(this,n,e)}function lX(n,e){je.call(this,n,e)}function tTn(n,e){this.b=n,this.a=e}function iTn(n,e){this.b=n,this.a=e}function rTn(n,e){this.b=n,this.a=e}function cTn(n,e){this.b=n,this.a=e}function aX(n,e){this.a=n,this.b=e}function uTn(n,e){this.a=n,this.b=e}function oTn(n,e){this.a=n,this.b=e}function V(n,e){this.a=n,this.b=e}function v6(n,e){je.call(this,n,e)}function g7(n,e){je.call(this,n,e)}function wp(n,e){je.call(this,n,e)}function k6(n,e){je.call(this,n,e)}function p7(n,e){je.call(this,n,e)}function fN(n,e){je.call(this,n,e)}function kM(n,e){je.call(this,n,e)}function y6(n,e){je.call(this,n,e)}function hN(n,e){je.call(this,n,e)}function yM(n,e){je.call(this,n,e)}function bg(n,e){je.call(this,n,e)}function m7(n,e){je.call(this,n,e)}function j6(n,e){je.call(this,n,e)}function E6(n,e){je.call(this,n,e)}function v7(n,e){je.call(this,n,e)}function jM(n,e){je.call(this,n,e)}function wg(n,e){je.call(this,n,e)}function lN(n,e){je.call(this,n,e)}function sTn(n,e){je.call(this,n,e)}function EM(n,e){je.call(this,n,e)}function fTn(n,e){this.a=n,this.b=e}function hTn(n,e){this.a=n,this.b=e}function lTn(n,e){this.a=n,this.b=e}function aTn(n,e){this.a=n,this.b=e}function dTn(n,e){this.a=n,this.b=e}function bTn(n,e){this.a=n,this.b=e}function bi(n,e){this.a=n,this.b=e}function wTn(n,e){this.a=n,this.b=e}function gTn(n,e){this.a=n,this.b=e}function pTn(n,e){this.a=n,this.b=e}function mTn(n,e){this.a=n,this.b=e}function vTn(n,e){this.a=n,this.b=e}function kTn(n,e){this.a=n,this.b=e}function yTn(n,e){this.b=n,this.a=e}function jTn(n,e){this.b=n,this.a=e}function ETn(n,e){this.b=n,this.a=e}function MTn(n,e){this.b=n,this.a=e}function TTn(n,e){this.a=n,this.b=e}function CTn(n,e){this.a=n,this.b=e}function MM(n,e){je.call(this,n,e)}function STn(n,e){this.a=n,this.b=e}function PTn(n,e){this.a=n,this.b=e}function gp(n,e){je.call(this,n,e)}function ITn(n,e){this.f=n,this.c=e}function dX(n,e){return Su(n.g,e)}function wle(n,e){return Su(e.b,n)}function OTn(n,e){return wx(n.a,e)}function gle(n,e){return-n.b.af(e)}function ple(n,e){n&&Ve(hE,n,e)}function bX(n,e){n.i=null,kC(n,e)}function mle(n,e,t){yFn(e,oR(n,t))}function vle(n,e,t){yFn(e,oR(n,t))}function kle(n,e){VTe(n.a,u(e,58))}function ATn(n,e){U4e(n.a,u(e,12))}function TM(n,e){this.a=n,this.b=e}function LTn(n,e){this.a=n,this.b=e}function NTn(n,e){this.a=n,this.b=e}function DTn(n,e){this.a=n,this.b=e}function $Tn(n,e){this.a=n,this.b=e}function xTn(n,e){this.d=n,this.b=e}function RTn(n,e){this.e=n,this.a=e}function k7(n,e){this.b=n,this.c=e}function wX(n,e){this.i=n,this.g=e}function gX(n,e){this.d=n,this.e=e}function yle(n,e){cme(new ne(n),e)}function CM(n){return Rk(n.c,n.b)}function Fr(n){return n?n.md():null}function x(n){return n??null}function Si(n){return typeof n===nK}function D0(n){return typeof n===i3}function $0(n){return typeof n===atn}function ob(n,e){return Ec(n,e)==0}function SM(n,e){return Ec(n,e)>=0}function M6(n,e){return Ec(n,e)!=0}function PM(n,e){return jve(n.Kc(),e)}function _1(n,e){return n.Rd().Xb(e)}function KTn(n){return eo(n),n.d.gc()}function IM(n){return x6(n==null),n}function T6(n,e){return n.a+=""+e,n}function Er(n,e){return n.a+=""+e,n}function C6(n,e){return n.a+=""+e,n}function Lc(n,e){return n.a+=""+e,n}function Be(n,e){return n.a+=""+e,n}function pX(n,e){return n.a+=""+e,n}function jle(n){return""+(Jn(n),n)}function BTn(n){Hu(this),s5(this,n)}function FTn(){uJ(),aW.call(this)}function _Tn(n,e){pW.call(this,n,e)}function HTn(n,e){pW.call(this,n,e)}function OM(n,e){pW.call(this,n,e)}function ir(n,e){xt(n,e,n.c.b,n.c)}function gg(n,e){xt(n,e,n.a,n.a.a)}function mX(n){return Nn(n,0),null}function qTn(){this.b=0,this.a=!1}function UTn(){this.b=0,this.a=!1}function GTn(){this.b=new ap(Q0(12))}function zTn(){zTn=R,kYn=Me(jx())}function XTn(){XTn=R,HZn=Me(iqn())}function VTn(){VTn=R,lre=Me(xxn())}function vX(){vX=R,FG(),fun=new de}function ff(n){return n.a=0,n.b=0,n}function WTn(n,e){return n.a=e.g+1,n}function aN(n,e){F0.call(this,n,e)}function Tn(n,e){Lt.call(this,n,e)}function pg(n,e){wX.call(this,n,e)}function JTn(n,e){M7.call(this,n,e)}function dN(n,e){Y4.call(this,n,e)}function Ge(n,e){iM(),Ve(yA,n,e)}function QTn(n,e){n.q.setTime(id(e))}function Ele(n){y.clearTimeout(n)}function Mle(n){return Pe(n),new S6(n)}function YTn(n,e){return x(n)===x(e)}function ZTn(n,e){return n.a.a.a.cc(e)}function bN(n,e){return qo(n.a,0,e)}function kX(n){return Swe(u(n,74))}function pp(n){return wi((Jn(n),n))}function Tle(n){return wi((Jn(n),n))}function nCn(n){return Yc(n.l,n.m,n.h)}function yX(n,e){return jc(n.a,e.a)}function Cle(n,e){return FIn(n.a,e.a)}function Sle(n,e){return bt(n.a,e.a)}function ih(n,e){return n.indexOf(e)}function Ple(n,e){return n.j[e.p]==2}function sb(n,e){return n==e?0:n?1:-1}function AM(n){return n<10?"0"+n:""+n}function Vr(n){return typeof n===atn}function Ile(n){return n==r0||n==Ow}function Ole(n){return n==r0||n==Iw}function eCn(n,e){return jc(n.g,e.g)}function jX(n){return qr(n.b.b,n,0)}function tCn(){rT.call(this,0,0,0,0)}function rh(){EG.call(this,new Ql)}function EX(n,e){R4(n,0,n.length,e)}function Ale(n,e){return nn(n.a,e),e}function Lle(n,e){return Rs(),e.a+=n}function Nle(n,e){return Rs(),e.a+=n}function Dle(n,e){return Rs(),e.c+=n}function $le(n,e){return nn(n.c,e),n}function MX(n,e){return To(n.a,e),n}function iCn(n){this.a=XMn(),this.b=n}function rCn(n){this.a=XMn(),this.b=n}function rr(n){this.a=n.a,this.b=n.b}function S6(n){this.a=n,GA.call(this)}function cCn(n){this.a=n,GA.call(this)}function mp(){Ho.call(this,0,0,0,0)}function LM(n){return To(new ii,n)}function uCn(n){return jT(u(n,123))}function fo(n){return n.vh()&&n.wh()}function mg(n){return n!=Qf&&n!=Ia}function hl(n){return n==Kr||n==Xr}function vg(n){return n==us||n==Wf}function oCn(n){return n==I2||n==P2}function xle(n,e){return jc(n.g,e.g)}function sCn(n,e){return new Y4(e,n)}function Rle(n,e){return new Y4(e,n)}function TX(n){return r0e(n.b.Kc(),n.a)}function wN(n,e){um(n,e),G4(n,n.D)}function gN(n,e,t){aC(n,e),lC(n,t)}function kg(n,e,t){Ob(n,e),Ib(n,t)}function Bo(n,e,t){eu(n,e),tu(n,t)}function y7(n,e,t){_4(n,e),q4(n,t)}function j7(n,e,t){H4(n,e),U4(n,t)}function fCn(n,e,t){oV.call(this,n,e,t)}function CX(n){ITn.call(this,n,!0)}function hCn(){uM.call(this,"Tail",3)}function lCn(){uM.call(this,"Head",1)}function H1(n){dh(),mve.call(this,n)}function fb(n){rT.call(this,n,n,n,n)}function pN(n){n.c=F(ki,Kn,1,0,5,1)}function SX(n){return n.b&&xR(n),n.a}function PX(n){return n.b&&xR(n),n.c}function Kle(n,e){Uf||(n.b=e)}function Ble(n,e){return n[n.length]=e}function Fle(n,e){return n[n.length]=e}function _le(n,e){return Y0(e,Pf(n))}function Hle(n,e){return Y0(e,Pf(n))}function qle(n,e){return pC(dD(n.d),e)}function Ule(n,e){return pC(dD(n.g),e)}function Gle(n,e){return pC(dD(n.j),e)}function Di(n,e){Lt.call(this,n.b,e)}function zle(n,e){ve(Pc(n.a),LAn(e))}function Xle(n,e){ve(no(n.a),NAn(e))}function Vle(n,e,t){Bo(t,t.i+n,t.j+e)}function aCn(n,e,t){$t(n.c[e.g],e.g,t)}function Wle(n,e,t){u(n.c,71).Gi(e,t)}function mN(n,e,t){return $t(n,e,t),t}function dCn(n){nu(n.Sf(),new L9n(n))}function yg(n){return n!=null?mt(n):0}function Jle(n){return n==null?0:mt(n)}function P6(n){nt(),Wd.call(this,n)}function bCn(n){this.a=n,HV.call(this,n)}function Cf(){Cf=R,y.Math.log(2)}function Fo(){Fo=R,rl=(pMn(),Toe)}function wCn(){wCn=R,QH=new y5(lU)}function Oe(){Oe=R,new gCn,new Z}function gCn(){new de,new de,new de}function Qle(){throw T(new Fl(QJn))}function Yle(){throw T(new Fl(QJn))}function Zle(){throw T(new Fl(YJn))}function n1e(){throw T(new Fl(YJn))}function vN(n){this.a=n,VE.call(this,n)}function kN(n){this.a=n,VE.call(this,n)}function pCn(n,e){mb(),this.a=n,this.b=e}function e1e(n,e){Pe(e),Sg(n).Jc(new Bu)}function Yt(n,e){QN(n.c,n.c.length,e)}function tc(n){return n.a<n.c.c.length}function IX(n){return n.a<n.c.a.length}function mCn(n,e){return n.a?n.b:e.We()}function jc(n,e){return n<e?-1:n>e?1:0}function OX(n,e){return Ec(n,e)>0?n:e}function Yc(n,e,t){return{l:n,m:e,h:t}}function t1e(n,e){n.a!=null&&ATn(e,n.a)}function i1e(n){Zi(n,null),Oi(n,null)}function r1e(n,e,t){return Ve(n.g,t,e)}function jg(n,e,t){return ZY(e,t,n.c)}function c1e(n,e,t){return Ve(n.k,t,e)}function u1e(n,e,t){return GAe(n,e,t),t}function o1e(n,e){return ko(),e.n.b+=n}function vCn(n){ZW.call(this),this.b=n}function AX(n){mV.call(this),this.a=n}function kCn(){uM.call(this,"Range",2)}function NM(n){this.b=n,this.a=new Z}function yCn(n){this.b=new $0n,this.a=n}function jCn(n){n.a=new AA,n.c=new AA}function ECn(n){n.a=new de,n.d=new de}function MCn(n){$D(n,null),xD(n,null)}function TCn(n,e){return XAe(n.a,e,null)}function s1e(n,e){return Ve(n.a,e.a,e)}function Fi(n){return new V(n.a,n.b)}function LX(n){return new V(n.c,n.d)}function f1e(n){return new V(n.c,n.d)}function I6(n,e){return cAe(n.c,n.b,e)}function L(n,e){return n!=null&&Cx(n,e)}function yN(n,e){return Yve(n.Kc(),e)!=-1}function DM(n){return n.Ob()?n.Pb():null}function h1e(n){this.b=(Ln(),new eL(n))}function NX(n){this.a=n,de.call(this)}function CCn(){M7.call(this,null,null)}function SCn(){_M.call(this,null,null)}function PCn(){je.call(this,"INSTANCE",0)}function ICn(){LZ(),this.a=new R5(Oon)}function OCn(n){return ws(n,0,n.length)}function l1e(n,e){return new VCn(n.Kc(),e)}function DX(n,e){return n.a.Bc(e)!=null}function ACn(n,e){me(n),n.Gc(u(e,15))}function a1e(n,e,t){n.c.bd(e,u(t,136))}function d1e(n,e,t){n.c.Ui(e,u(t,136))}function LCn(n,e){n.c&&(eW(e),rAn(e))}function b1e(n,e){n.q.setHours(e),H5(n,e)}function w1e(n,e){ab(e,n.a.a.a,n.a.a.b)}function g1e(n,e,t,i){$t(n.a[e.g],t.g,i)}function jN(n,e,t){return n.a[e.g][t.g]}function p1e(n,e){return n.e[e.c.p][e.p]}function m1e(n,e){return n.c[e.c.p][e.p]}function Sf(n,e){return n.a[e.c.p][e.p]}function v1e(n,e){return n.j[e.p]=OTe(e)}function EN(n,e){return n.a.Bc(e)!=null}function k1e(n,e){return $(B(e.a))<=n}function y1e(n,e){return $(B(e.a))>=n}function j1e(n,e){return KJ(n.f,e.Pg())}function vp(n,e){return n.a*e.a+n.b*e.b}function E1e(n,e){return n.a<IV(e)?-1:1}function M1e(n,e){return KJ(n.b,e.Pg())}function T1e(n,e,t){return t?e!=0:e!=n-1}function NCn(n,e,t){n.a=e^1502,n.b=t^NK}function C1e(n,e,t){return n.a=e,n.b=t,n}function ch(n,e){return n.a*=e,n.b*=e,n}function nn(n,e){return Fn(n.c,e),!0}function O6(n,e,t){return $t(n.g,e,t),t}function ti(n,e,t){R7.call(this,n,e,t)}function $M(n,e,t){ti.call(this,n,e,t)}function $X(n,e,t){QM.call(this,n,e,t)}function DCn(n,e,t){QM.call(this,n,e,t)}function $Cn(n,e,t){$X.call(this,n,e,t)}function Cu(n,e,t){ti.call(this,n,e,t)}function xCn(n,e,t){$M.call(this,n,e,t)}function xX(n,e,t){R7.call(this,n,e,t)}function Eg(n,e,t){R7.call(this,n,e,t)}function RCn(n,e,t){xX.call(this,n,e,t)}function xM(n){n.j=F(jun,J,319,0,0,1)}function Mg(){this.a=F(ki,Kn,1,8,5,1)}function RX(){this.Bb|=256,this.Bb|=512}function ne(n){this.i=n,this.f=this.i.j}function q1(n){this.c=n,this.a=this.c.a}function Tg(n,e){this.a=n,VE.call(this,e)}function KX(n,e){return H5e(n,new x1,e).a}function BX(n){if(!n)throw T(new W9)}function FX(n){if(!n)throw T(new Mu)}function _X(){_X=R,_X(),IQn=new Rbn}function KCn(){KCn=R,AL(),nse=new C8n}function b4(){b4=R,Lun=new wL(null)}function S1e(n){G7(n,TWn),SS(n,GLe(n))}function BCn(n){n.a=u(Un(n.b.a,4),129)}function FCn(n){n.a=u(Un(n.b.a,4),129)}function _Cn(n){n.b.Qb(),--n.d.f.d,fT(n.d)}function HX(n){this.a=n,H8n.call(this,n.d)}function HCn(n,e){this.a=n,EL.call(this,e)}function qCn(n,e){this.a=n,EL.call(this,e)}function UCn(n,e){this.a=n,EL.call(this,e)}function qX(n,e){this.a=e,EL.call(this,n)}function GCn(n,e){this.a=e,zD.call(this,n)}function zCn(n,e){this.a=n,zD.call(this,e)}function XCn(n,e){this.a=e,WE.call(this,n)}function VCn(n,e){this.a=e,WE.call(this,n)}function ce(n,e){return Pe(e),new XCn(n,e)}function WCn(n,e){return new k_n(n.a,n.b,e)}function UX(n,e,t){return n.indexOf(e,t)}function RM(n,e){return n.lastIndexOf(e)}function A6(n){return n==null?gu:Jr(n)}function P1e(n){return n==null?null:n.name}function I1e(n){return n.l+n.m*o3+n.h*vd}function O1e(n){return Q9(n.a)?DAn(n):null}function ls(n){G9.call(this,(Jn(n),n))}function mo(n){G9.call(this,(Jn(n),n))}function JCn(n){XA.call(this,u(Pe(n),34))}function QCn(n){XA.call(this,u(Pe(n),34))}function MN(n){EG.call(this,new XJ(n))}function KM(n){Q3.call(this,n),this.a=n}function GX(n){J3.call(this,n),this.a=n}function zX(n){r4.call(this,n),this.a=n}function YCn(){xM(this),TT(this),this.je()}function ZCn(n){this.a=n,ZA.call(this,n)}function ho(n){return oe(n.a!=null),n.a}function nSn(n,e){return nn(e.a,n.a),n.a}function eSn(n,e){return nn(e.b,n.a),n.a}function hb(n,e){return nn(e.a,n.a),n.a}function E7(n,e,t){return N$(n,e,e,t),n}function BM(n,e){return++n.b,nn(n.a,e)}function XX(n,e){return++n.b,du(n.a,e)}function A1e(n,e){return bt(n.c.d,e.c.d)}function L1e(n,e){return bt(n.c.c,e.c.c)}function N1e(n,e){return bt(n.n.a,e.n.a)}function lu(n,e){return u(ot(n.b,e),15)}function D1e(n,e){return n.n.b=(Jn(e),e)}function $1e(n,e){return n.n.b=(Jn(e),e)}function Su(n,e){return!!e&&n.b[e.g]==e}function L6(n){return tc(n.a)||tc(n.b)}function lb(n){return n.$H||(n.$H=++bDe)}function x1e(n){return n.a!=null?n.a:null}function R1e(n,e){return bt(n.e.b,e.e.b)}function K1e(n,e){return bt(n.e.a,e.e.a)}function B1e(n,e,t){return RLn(n,e,t,n.b)}function VX(n,e,t){return RLn(n,e,t,n.c)}function F1e(n){return Rs(),!!n&&!n.dc()}function tSn(){o6(),this.b=new w7n(this)}function FM(){FM=R,bI=new Lt(gXn,0)}function _n(){_n=R,ga=!1,ov=!0}function zl(n){var e;e=n.a,n.a=n.b,n.b=e}function M7(n,e){l6(),this.a=n,this.b=e}function _M(n,e){Gl(),this.b=n,this.c=e}function TN(n,e){nD(),this.f=e,this.d=n}function WX(n,e){RJ(e,n),this.d=n,this.c=e}function JX(n,e){uZ.call(this,n,e,null)}function iSn(n,e,t,i){mW.call(this,n,e,t,i)}function kp(n){this.d=n,ne.call(this,n)}function yp(n){this.c=n,ne.call(this,n)}function T7(n){this.c=n,kp.call(this,n)}function _1e(n){return new X0(3,n)}function Lh(n){return Mo(n,mw),new Gc(n)}function rSn(n){return A4(),parseInt(n)||-1}function H1e(n){return BE(),Ee((lAn(),oQn),n)}function w4(n,e,t){return UX(n,wu(e),t)}function CN(n,e){return new iPn(n,n.gc(),e)}function q1e(n,e){return eD(n.c).Md().Xb(e)}function g4(n,e,t){var i;i=n.fd(e),i.Rb(t)}function QX(n,e,t){u(lk(n,e),21).Fc(t)}function U1e(n,e,t){cx(n.a,t),uS(n.a,e)}function C7(n){L(n,158)&&u(n,158).pi()}function cSn(n){qV.call(this,n,null,null)}function SN(n){A0(),this.b=n,this.a=!0}function uSn(n){QE(),this.b=n,this.a=!0}function p4(n){return oe(n.b!=0),n.a.a.c}function $s(n){return oe(n.b!=0),n.c.b.c}function G1e(n,e){return N$(n,e,e+1,""),n}function kt(n,e){return!!n.q&&Zc(n.q,e)}function oSn(n){return n.b=u(XW(n.a),44)}function z1e(n){return n.f!=null?n.f:""+n.g}function PN(n){return n.f!=null?n.f:""+n.g}function X1e(n,e){return n>0?e/(n*n):e*100}function V1e(n,e){return n>0?e*e/n:e*e*100}function x0(n,e){return u(Df(n.a,e),34)}function W1e(n,e){return ua(),In(n,e.e,e)}function J1e(n,e,t){return nM(),t.Mg(n,e)}function Q1e(n){return kl(),n.e.a+n.f.a/2}function Y1e(n,e,t){return kl(),t.e.a-n*e}function Z1e(n){return kl(),n.e.b+n.f.b/2}function nae(n,e,t){return kl(),t.e.b-n*e}function sSn(n){n.d=new cSn(n),n.e=new de}function fSn(){this.a=new Mb,this.b=new Mb}function hSn(n){this.c=n,this.a=1,this.b=1}function lSn(n){YR(),Pyn(this),this.Ff(n)}function eae(n,e,t){YT(),n.pf(e)&&t.Cd(n)}function tae(n,e,t){return nn(e,jKn(n,t))}function ab(n,e,t){return n.a+=e,n.b+=t,n}function iae(n,e,t){return n.a*=e,n.b*=t,n}function YX(n,e){return n.a=e.a,n.b=e.b,n}function HM(n){return n.a=-n.a,n.b=-n.b,n}function N6(n,e,t){return n.a-=e,n.b-=t,n}function aSn(n){Mt.call(this),r5(this,n)}function dSn(){je.call(this,"GROW_TREE",0)}function bSn(){je.call(this,"POLYOMINO",0)}function lo(n,e,t){Ou.call(this,n,e,t,2)}function rae(n,e,t){v5(Pc(n.a),e,LAn(t))}function wSn(n,e){l6(),M7.call(this,n,e)}function ZX(n,e){Gl(),_M.call(this,n,e)}function gSn(n,e){Gl(),ZX.call(this,n,e)}function pSn(n,e){Gl(),_M.call(this,n,e)}function cae(n,e){return n.c.Fc(u(e,136))}function uae(n,e,t){v5(no(n.a),e,NAn(t))}function mSn(n){this.c=n,eu(n,0),tu(n,0)}function IN(n,e){Fo(),oT.call(this,n,e)}function vSn(n,e){Fo(),IN.call(this,n,e)}function nV(n,e){Fo(),IN.call(this,n,e)}function eV(n,e){Fo(),oT.call(this,n,e)}function kSn(n,e){Fo(),nV.call(this,n,e)}function ySn(n,e){Fo(),eV.call(this,n,e)}function jSn(n,e){Fo(),oT.call(this,n,e)}function oae(n,e,t){return e.zl(n.e,n.c,t)}function sae(n,e,t){return e.Al(n.e,n.c,t)}function tV(n,e,t){return qS(hk(n,e),t)}function ON(n,e){return ea(n.e,u(e,54))}function fae(n){return n==null?null:DLe(n)}function hae(n){return n==null?null:Sje(n)}function lae(n){return n==null?null:Jr(n)}function aae(n){return n==null?null:Jr(n)}function un(n){return x6(n==null||D0(n)),n}function B(n){return x6(n==null||$0(n)),n}function Ae(n){return x6(n==null||Si(n)),n}function ll(n){n.o==null&&cTe(n)}function iV(n){if(!n)throw T(new W9)}function dae(n){if(!n)throw T(new uL)}function oe(n){if(!n)throw T(new nc)}function R0(n){if(!n)throw T(new Mu)}function ESn(n){if(!n)throw T(new Ko)}function m4(){m4=R,aE=new ujn,new ojn}function Cg(){Cg=R,L2=new lt("root")}function rV(){cxn.call(this),this.Bb|=hr}function bae(n,e){this.d=n,c9n(this),this.b=e}function cV(n,e){i$.call(this,n),this.a=e}function uV(n,e){i$.call(this,n),this.a=e}function oV(n,e,t){VT.call(this,n,e,t,null)}function MSn(n,e,t){VT.call(this,n,e,t,null)}function S7(n,e){this.c=n,h4.call(this,n,e)}function D6(n,e){this.a=n,S7.call(this,n,e)}function sV(n){this.q=new y.Date(id(n))}function TSn(n){return n>8?0:n+1}function CSn(n,e){Uf||nn(n.a,e)}function wae(n,e){return c7(),Q4(e.d.i,n)}function gae(n,e){return Hp(),new tUn(e,n)}function pae(n,e,t){return n.Ne(e,t)<=0?t:e}function mae(n,e,t){return n.Ne(e,t)<=0?e:t}function vae(n,e){return u(Df(n.b,e),143)}function kae(n,e){return u(Df(n.c,e),233)}function AN(n){return u(sn(n.a,n.b),294)}function SSn(n){return new V(n.c,n.d+n.a)}function PSn(n){return Jn(n),n?1231:1237}function ISn(n){return ko(),oCn(u(n,203))}function K0(){K0=R,ron=jn((go(),Gd))}function yae(n,e){e.a?TMe(n,e):EN(n.a,e.b)}function P7(n,e,t){++n.j,n.tj(),t$(n,e,t)}function OSn(n,e,t){++n.j,n.qj(e,n.Zi(e,t))}function ASn(n,e,t){var i;i=n.fd(e),i.Rb(t)}function fV(n,e,t){return t=Po(n,e,6,t),t}function hV(n,e,t){return t=Po(n,e,3,t),t}function lV(n,e,t){return t=Po(n,e,9,t),t}function uh(n,e){return G7(e,$tn),n.f=e,n}function aV(n,e){return(e&et)%n.d.length}function LSn(n,e,t){return Gen(n.c,n.b,e,t)}function NSn(n,e){this.c=n,Pb.call(this,e)}function DSn(n,e){this.a=n,kyn.call(this,e)}function I7(n,e){this.a=n,kyn.call(this,e)}function Lt(n,e){lt.call(this,n),this.a=e}function dV(n,e){xG.call(this,n),this.a=e}function LN(n,e){xG.call(this,n),this.a=e}function jae(n){XY.call(this,0,0),this.f=n}function $Sn(n,e,t){return n.a+=ws(e,0,t),n}function O7(n){return!n.a&&(n.a=new Mbn),n.a}function bV(n,e){var t;return t=n.e,n.e=e,t}function wV(n,e){var t;return t=e,!!n.Fe(t)}function Eae(n,e){return _n(),n==e?0:n?1:-1}function B0(n,e){n.a.bd(n.b,e),++n.b,n.c=-1}function A7(n){n.b?A7(n.b):n.f.c.zc(n.e,n.d)}function xSn(n){Hu(n.e),n.d.b=n.d,n.d.a=n.d}function Mae(n,e,t){Va(),t9n(n,e.Ve(n.a,t))}function gV(n,e,t){return Ip(n,u(e,22),t)}function xs(n,e){return qE(new Array(e),n)}function Tae(n){return Se(U1(n,32))^Se(n)}function NN(n){return String.fromCharCode(n)}function Cae(n){return n==null?null:n.message}function Sae(n,e,t){return n.apply(e,t)}function Pae(n,e){var t;t=n[LK],t.call(n,e)}function Iae(n,e){var t;t=n[LK],t.call(n,e)}function Oae(n,e){return c7(),!Q4(e.d.i,n)}function pV(n,e,t,i){rT.call(this,n,e,t,i)}function RSn(){qM.call(this),this.a=new Ni}function mV(){this.n=new Ni,this.o=new Ni}function KSn(){this.b=new Ni,this.c=new Z}function BSn(){this.a=new Z,this.b=new Z}function FSn(){this.a=new FU,this.b=new Kyn}function vV(){this.b=new Ql,this.a=new Ql}function _Sn(){this.b=new ni,this.a=new ni}function HSn(){this.b=new de,this.a=new de}function qSn(){this.b=new wEn,this.a=new H3n}function USn(){this.a=new n8n,this.b=new Npn}function GSn(){this.a=new Z,this.d=new Z}function qM(){this.n=new up,this.i=new mp}function zSn(n){this.a=(Mo(n,mw),new Gc(n))}function XSn(n){this.a=(Mo(n,mw),new Gc(n))}function Aae(n){return n<100?null:new R1(n)}function Lae(n,e){return n.n.a=(Jn(e),e+10)}function Nae(n,e){return n.n.a=(Jn(e),e+10)}function Dae(n,e){return e==n||km(CS(e),n)}function VSn(n,e){return Ve(n.a,e,"")==null}function $ae(n,e){var t;return t=e.qi(n.a),t}function tt(n,e){return n.a+=e.a,n.b+=e.b,n}function mi(n,e){return n.a-=e.a,n.b-=e.b,n}function xae(n){return I0(n.j.c,0),n.a=-1,n}function kV(n,e,t){return t=Po(n,e,11,t),t}function Rae(n,e,t){t!=null&&mC(e,Rx(n,t))}function Kae(n,e,t){t!=null&&vC(e,Rx(n,t))}function jp(n,e,t,i){q.call(this,n,e,t,i)}function yV(n,e,t,i){q.call(this,n,e,t,i)}function WSn(n,e,t,i){yV.call(this,n,e,t,i)}function JSn(n,e,t,i){bT.call(this,n,e,t,i)}function DN(n,e,t,i){bT.call(this,n,e,t,i)}function jV(n,e,t,i){bT.call(this,n,e,t,i)}function QSn(n,e,t,i){DN.call(this,n,e,t,i)}function EV(n,e,t,i){DN.call(this,n,e,t,i)}function Dn(n,e,t,i){jV.call(this,n,e,t,i)}function YSn(n,e,t,i){EV.call(this,n,e,t,i)}function ZSn(n,e,t,i){yW.call(this,n,e,t,i)}function F0(n,e){Or.call(this,p8+n+Cd+e)}function MV(n,e){return n.jk().wi().ri(n,e)}function TV(n,e){return n.jk().wi().ti(n,e)}function nPn(n,e){return Jn(n),x(n)===x(e)}function Sn(n,e){return Jn(n),x(n)===x(e)}function Bae(n,e){return n.b.Bd(new EMn(n,e))}function Fae(n,e){return n.b.Bd(new MMn(n,e))}function ePn(n,e){return n.b.Bd(new TMn(n,e))}function _ae(n,e){return n.e=u(n.d.Kb(e),159)}function CV(n,e,t){return n.lastIndexOf(e,t)}function Hae(n,e,t){return bt(n[e.a],n[t.a])}function qae(n,e){return U(e,(cn(),Mj),n)}function Uae(n,e){return jc(e.a.d.p,n.a.d.p)}function Gae(n,e){return jc(n.a.d.p,e.a.d.p)}function zae(n,e){return bt(n.c-n.s,e.c-e.s)}function Xae(n,e){return bt(n.b.e.a,e.b.e.a)}function Vae(n,e){return bt(n.c.e.a,e.c.e.a)}function tPn(n){return n.c?qr(n.c.a,n,0):-1}function Ep(n){return n==Ud||n==tl||n==qc}function SV(n,e){this.c=n,oD.call(this,n,e)}function iPn(n,e,t){this.a=n,WX.call(this,e,t)}function rPn(n){this.c=n,OM.call(this,Ey,0)}function cPn(n,e,t){this.c=e,this.b=t,this.a=n}function L7(n){k4(),this.d=n,this.a=new Mg}function uPn(n){oh(),this.a=(Ln(),new r4(n))}function Wae(n,e){hl(n.f)?QMe(n,e):Pye(n,e)}function oPn(n,e){s0e.call(this,n,n.length,e)}function Jae(n,e){Uf||e&&(n.d=e)}function sPn(n,e){return L(e,15)&&xqn(n.c,e)}function Qae(n,e,t){return u(n.c,71).Wk(e,t)}function UM(n,e,t){return u(n.c,71).Xk(e,t)}function Yae(n,e,t){return oae(n,u(e,343),t)}function PV(n,e,t){return sae(n,u(e,343),t)}function Zae(n,e,t){return IFn(n,u(e,343),t)}function fPn(n,e,t){return _ye(n,u(e,343),t)}function $6(n,e){return e==null?null:tw(n.b,e)}function IV(n){return $0(n)?(Jn(n),n):n.ue()}function GM(n){return!isNaN(n)&&!isFinite(n)}function $N(n){jCn(this),vo(this),Ki(this,n)}function _u(n){pN(this),GV(this.c,0,n.Pc())}function _o(n,e,t){this.a=n,this.b=e,this.c=t}function hPn(n,e,t){this.a=n,this.b=e,this.c=t}function lPn(n,e,t){this.d=n,this.b=t,this.a=e}function aPn(n){this.a=n,fl(),vc(Date.now())}function dPn(n){bo(n.a),UJ(n.c,n.b),n.b=null}function xN(){xN=R,Aun=new $bn,SQn=new xbn}function bPn(){bPn=R,Ooe=F(ki,Kn,1,0,5,1)}function wPn(){wPn=R,Voe=F(ki,Kn,1,0,5,1)}function OV(){OV=R,Woe=F(ki,Kn,1,0,5,1)}function oh(){oh=R,new BG((Ln(),Ln(),sr))}function nde(n){return K4(),Ee((yDn(),OQn),n)}function ede(n){return Gu(),Ee((lDn(),xQn),n)}function tde(n){return YC(),Ee((JLn(),HQn),n)}function ide(n){return cC(),Ee((QLn(),qQn),n)}function rde(n){return DS(),Ee((Jxn(),UQn),n)}function cde(n){return wf(),Ee((fDn(),XQn),n)}function ude(n){return Uu(),Ee((sDn(),WQn),n)}function ode(n){return bu(),Ee((hDn(),QQn),n)}function sde(n){return VS(),Ee((zTn(),kYn),n)}function fde(n){return Db(),Ee((EDn(),jYn),n)}function hde(n){return Vp(),Ee((TDn(),MYn),n)}function lde(n){return C5(),Ee((MDn(),SYn),n)}function ade(n){return YE(),Ee((jLn(),PYn),n)}function dde(n){return uC(),Ee((YLn(),GYn),n)}function bde(n){return t5(),Ee((aDn(),pZn),n)}function wde(n){return Vi(),Ee((u$n(),yZn),n)}function gde(n){return nm(),Ee((SDn(),CZn),n)}function pde(n){return dd(),Ee((CDn(),LZn),n)}function AV(n,e){if(!n)throw T(new Gn(e))}function v4(n){if(!n)throw T(new Ar(dtn))}function RN(n,e){if(n!=e)throw T(new Ko)}function gPn(n,e,t){this.a=n,this.b=e,this.c=t}function LV(n,e,t){this.a=n,this.b=e,this.c=t}function pPn(n,e,t){this.a=n,this.b=e,this.c=t}function zM(n,e,t){this.b=n,this.a=e,this.c=t}function NV(n,e,t){this.b=n,this.c=e,this.a=t}function DV(n,e,t){this.a=n,this.b=e,this.c=t}function XM(n,e,t){this.e=e,this.b=n,this.d=t}function mPn(n,e,t){this.b=n,this.a=e,this.c=t}function mde(n,e,t){return Va(),n.a.Yd(e,t),e}function KN(n){var e;return e=new u0n,e.e=n,e}function $V(n){var e;return e=new qyn,e.b=n,e}function N7(){N7=R,MI=new sgn,TI=new fgn}function VM(){VM=R,XZn=new xgn,zZn=new Rgn}function Rs(){Rs=R,YZn=new G2n,ZZn=new z2n}function vde(n){return Lb(),Ee((qNn(),fne),n)}function kde(n){return tr(),Ee((XTn(),HZn),n)}function yde(n){return AC(),Ee((IDn(),GZn),n)}function jde(n){return xf(),Ee((PDn(),tne),n)}function Ede(n){return ow(),Ee((o$n(),rne),n)}function Mde(n){return LS(),Ee(($xn(),hne),n)}function Tde(n){return Yp(),Ee((L$n(),lne),n)}function Cde(n){return QT(),Ee((cNn(),ane),n)}function Sde(n){return c5(),Ee((_Nn(),dne),n)}function Pde(n){return bC(),Ee((HNn(),bne),n)}function Ide(n){return o1(),Ee((s$n(),wne),n)}function Ode(n){return wk(),Ee((eNn(),gne),n)}function Ade(n){return jm(),Ee(($$n(),jne),n)}function Lde(n){return pr(),Ee((aRn(),Ene),n)}function Nde(n){return Z4(),Ee((GNn(),Mne),n)}function Dde(n){return vl(),Ee((zNn(),Cne),n)}function $de(n){return FT(),Ee((nNn(),Sne),n)}function xde(n){return Vk(),Ee((D$n(),yne),n)}function Rde(n){return hd(),Ee((UNn(),mne),n)}function Kde(n){return vS(),Ee((N$n(),vne),n)}function Bde(n){return sk(),Ee((tNn(),kne),n)}function Fde(n){return Yo(),Ee((h$n(),Pne),n)}function _de(n){return a1(),Ee((Xxn(),Yte),n)}function Hde(n){return w5(),Ee((XNn(),Zte),n)}function qde(n){return cw(),Ee((ODn(),nie),n)}function Ude(n){return T5(),Ee((f$n(),eie),n)}function Gde(n){return ps(),Ee((dRn(),tie),n)}function zde(n){return lh(),Ee((ADn(),iie),n)}function Xde(n){return dk(),Ee((iNn(),rie),n)}function Vde(n){return gr(),Ee((JNn(),uie),n)}function Wde(n){return PC(),Ee((VNn(),oie),n)}function Jde(n){return a5(),Ee((WNn(),sie),n)}function Qde(n){return om(),Ee((QNn(),fie),n)}function Yde(n){return dC(),Ee((YNn(),hie),n)}function Zde(n){return LC(),Ee((ZNn(),lie),n)}function nbe(n){return Ab(),Ee((oDn(),Sie),n)}function ebe(n){return Z6(),Ee((rNn(),Lie),n)}function tbe(n){return fh(),Ee((sNn(),Bie),n)}function ibe(n){return If(),Ee((fNn(),_ie),n)}function rbe(n){return af(),Ee((hNn(),tre),n)}function cbe(n){return Tb(),Ee((lNn(),fre),n)}function ube(n){return Qp(),Ee((KDn(),hre),n)}function obe(n){return F5(),Ee((VTn(),lre),n)}function sbe(n){return d5(),Ee((nDn(),are),n)}function fbe(n){return b5(),Ee((RDn(),$re),n)}function hbe(n){return RT(),Ee((uNn(),xre),n)}function lbe(n){return yC(),Ee((oNn(),_re),n)}function abe(n){return wS(),Ee((l$n(),qre),n)}function dbe(n){return Ik(),Ee((eDn(),Gre),n)}function bbe(n){return ZT(),Ee((aNn(),Ure),n)}function wbe(n){return sS(),Ee((xDn(),lce),n)}function gbe(n){return SC(),Ee((tDn(),ace),n)}function pbe(n){return XC(),Ee((iDn(),dce),n)}function mbe(n){return rS(),Ee((rDn(),wce),n)}function vbe(n){return _C(),Ee((cDn(),mce),n)}function kbe(n){return GT(),Ee((dNn(),Bce),n)}function ybe(n){return V4(),Ee((ZLn(),_Zn),n)}function jbe(n){return Vn(),Ee((x$n(),xZn),n)}function Ebe(n){return nC(),Ee((uDn(),Fce),n)}function Mbe(n){return D$(),Ee((bNn(),_ce),n)}function Tbe(n){return x5(),Ee((a$n(),qce),n)}function Cbe(n){return eM(),Ee((OLn(),Gce),n)}function Sbe(n){return $k(),Ee((bDn(),Uce),n)}function Pbe(n){return tM(),Ee((ALn(),Xce),n)}function Ibe(n){return ik(),Ee((wNn(),Vce),n)}function Obe(n){return Jk(),Ee((d$n(),Wce),n)}function Abe(n){return s6(),Ee((LLn(),lue),n)}function Lbe(n){return Tk(),Ee((gNn(),aue),n)}function Nbe(n){return pf(),Ee((w$n(),mue),n)}function Dbe(n){return l1(),Ee((Nxn(),kue),n)}function $be(n){return Bh(),Ee((R$n(),yue),n)}function xbe(n){return wd(),Ee((K$n(),Sue),n)}function Rbe(n){return ci(),Ee((b$n(),zue),n)}function Kbe(n){return $f(),Ee((wDn(),Xue),n)}function Bbe(n){return El(),Ee((BDn(),Vue),n)}function Fbe(n){return pS(),Ee((B$n(),Wue),n)}function _be(n){return jl(),Ee((dDn(),Que),n)}function Hbe(n){return Co(),Ee((FDn(),Zue),n)}function qbe(n){return lw(),Ee((Wxn(),noe),n)}function Ube(n){return Kg(),Ee((g$n(),eoe),n)}function Gbe(n){return Ai(),Ee((F$n(),toe),n)}function zbe(n){return zu(),Ee((_$n(),ioe),n)}function Xbe(n){return en(),Ee((p$n(),roe),n)}function Vbe(n){return go(),Ee((_Dn(),foe),n)}function Wbe(n){return io(),Ee((Vxn(),hoe),n)}function Jbe(n){return Gp(),Ee((gDn(),loe),n)}function Qbe(n,e){return Jn(n),n+(Jn(e),e)}function Ybe(n){return BN(),Ee((pNn(),aoe),n)}function Zbe(n){return qC(),Ee((HDn(),doe),n)}function n0e(n){return NC(),Ee((qDn(),goe),n)}function k4(){k4=R,tln=(en(),Wn),OO=Zn}function BN(){BN=R,vdn=new VPn,kdn=new NIn}function e0e(n){return!n.e&&(n.e=new Z),n.e}function FN(n,e){this.c=n,this.a=e,this.b=e-n}function vPn(n,e,t){this.a=n,this.b=e,this.c=t}function _N(n,e,t){this.a=n,this.b=e,this.c=t}function xV(n,e,t){this.a=n,this.b=e,this.c=t}function RV(n,e,t){this.a=n,this.b=e,this.c=t}function kPn(n,e,t){this.a=n,this.b=e,this.c=t}function yPn(n,e,t){this.a=n,this.b=e,this.c=t}function Xl(n,e,t){this.e=n,this.a=e,this.c=t}function jPn(n,e,t){Fo(),eJ.call(this,n,e,t)}function HN(n,e,t){Fo(),KW.call(this,n,e,t)}function KV(n,e,t){Fo(),KW.call(this,n,e,t)}function BV(n,e,t){Fo(),KW.call(this,n,e,t)}function EPn(n,e,t){Fo(),HN.call(this,n,e,t)}function FV(n,e,t){Fo(),HN.call(this,n,e,t)}function MPn(n,e,t){Fo(),FV.call(this,n,e,t)}function TPn(n,e,t){Fo(),KV.call(this,n,e,t)}function CPn(n,e,t){Fo(),BV.call(this,n,e,t)}function qN(n){rT.call(this,n.d,n.c,n.a,n.b)}function _V(n){rT.call(this,n.d,n.c,n.a,n.b)}function HV(n){this.d=n,c9n(this),this.b=nwe(n.d)}function t0e(n){return Mm(),Ee((Dxn(),Ioe),n)}function D7(n,e){return Pe(n),Pe(e),new DEn(n,e)}function Mp(n,e){return Pe(n),Pe(e),new BPn(n,e)}function i0e(n,e){return Pe(n),Pe(e),new FPn(n,e)}function r0e(n,e){return Pe(n),Pe(e),new qEn(n,e)}function UN(n){return oe(n.b!=0),Xo(n,n.a.a)}function c0e(n){return oe(n.b!=0),Xo(n,n.c.b)}function u0e(n){return!n.c&&(n.c=new W3),n.c}function y4(n){var e;return e=new Z,b$(e,n),e}function o0e(n){var e;return e=new ni,b$(e,n),e}function SPn(n){var e;return e=new UG,S$(e,n),e}function $7(n){var e;return e=new Mt,S$(e,n),e}function u(n,e){return x6(n==null||Cx(n,e)),n}function s0e(n,e,t){CIn.call(this,e,t),this.a=n}function PPn(n,e){this.c=n,this.b=e,this.a=!1}function IPn(){this.a=";,;",this.b="",this.c=""}function OPn(n,e,t){this.b=n,_Tn.call(this,e,t)}function qV(n,e,t){this.c=n,oM.call(this,e,t)}function UV(n,e,t){d4.call(this,n,e),this.b=t}function GV(n,e,t){Rnn(t,0,n,e,t.length,!1)}function Nh(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function zV(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function f0e(n,e){e&&(n.b=e,n.a=(X1(e),e.a))}function x7(n,e){if(!n)throw T(new Gn(e))}function Tp(n,e){if(!n)throw T(new Ar(e))}function XV(n,e){if(!n)throw T(new Kjn(e))}function h0e(n,e){return ZE(),jc(n.d.p,e.d.p)}function l0e(n,e){return kl(),bt(n.e.b,e.e.b)}function a0e(n,e){return kl(),bt(n.e.a,e.e.a)}function d0e(n,e){return jc(GPn(n.d),GPn(e.d))}function WM(n,e){return e&&vT(n,e.d)?e:null}function b0e(n,e){return e==(en(),Wn)?n.c:n.d}function VV(n){return Y1(dwe(Vr(n)?ds(n):n))}function w0e(n){return new V(n.c+n.b,n.d+n.a)}function APn(n){return n!=null&&!lx(n,L9,N9)}function g0e(n,e){return(fKn(n)<<4|fKn(e))&ui}function LPn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function WV(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function JV(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function p0e(n,e){var t;return t=n.c,PQ(n,e),t}function QV(n,e){return e<0?n.g=-1:n.g=e,n}function JM(n,e){return Tme(n),n.a*=e,n.b*=e,n}function NPn(n,e,t){S$n.call(this,e,t),this.d=n}function R7(n,e,t){gX.call(this,n,e),this.c=t}function QM(n,e,t){gX.call(this,n,e),this.c=t}function YV(n){OV(),TE.call(this),this.ci(n)}function DPn(){$4(),Kwe.call(this,(B1(),Is))}function $Pn(n){return nt(),new Dh(0,n)}function xPn(){xPn=R,CU=(Ln(),new nL(OF))}function YM(){YM=R,new fZ((bL(),HF),(dL(),_F))}function RPn(){RPn=R,pun=F(Gi,J,17,256,0,1)}function KPn(){this.b=$(B(rn((Us(),k_))))}function GN(n){this.b=n,this.a=Ja(this.b.a).Od()}function BPn(n,e){this.b=n,this.a=e,GA.call(this)}function FPn(n,e){this.a=n,this.b=e,GA.call(this)}function _Pn(n,e,t){this.a=n,pg.call(this,e,t)}function HPn(n,e,t){this.a=n,pg.call(this,e,t)}function j4(n,e,t){var i;i=new q0(t),bf(n,e,i)}function ZV(n,e,t){var i;return i=n[e],n[e]=t,i}function ZM(n){var e;return e=n.slice(),o$(e,n)}function nT(n){var e;return e=n.n,n.a.b+e.d+e.a}function qPn(n){var e;return e=n.n,n.e.b+e.d+e.a}function nW(n){var e;return e=n.n,n.e.a+e.b+e.c}function eW(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function Re(n,e){return xt(n,e,n.c.b,n.c),!0}function m0e(n){return n.a?n.a:vD(n)}function v0e(n){return Np(),Fh(n)==St(ra(n))}function k0e(n){return Np(),ra(n)==St(Fh(n))}function db(n,e){return O5(n,new d4(e.a,e.b))}function y0e(n,e){return yT(),Dx(n,e),new lOn(n,e)}function j0e(n,e){return n.c<e.c?-1:n.c==e.c?0:1}function UPn(n){return n.b.c.length-n.e.c.length}function GPn(n){return n.e.c.length-n.g.c.length}function zN(n){return n.e.c.length+n.g.c.length}function K7(n){return n==0||isNaN(n)?n:n<0?-1:1}function E0e(n){return!fr(n)&&n.c.i.c==n.d.i.c}function M0e(n){return ko(),(en(),su).Hc(n.j)}function T0e(n,e,t){return kl(),t.e.a+t.f.a+n*e}function C0e(n,e,t){return kl(),t.e.b+t.f.b+n*e}function S0e(n,e,t){return Ve(n.b,u(t.b,18),e)}function P0e(n,e,t){return Ve(n.b,u(t.b,18),e)}function I0e(n,e,t){wLe(n.a,n.b,n.c,u(e,166),t)}function tW(n,e,t,i){tZ.call(this,n,e,t,i,0,0)}function zPn(n){OV(),YV.call(this,n),this.a=-1}function XPn(n,e){CIn.call(this,e,1040),this.a=n}function VPn(){sTn.call(this,"COUNT_CHILDREN",0)}function eT(n,e){k7.call(this,n,e),this.a=this}function Dt(n,e){var t;return t=bD(n,e),t.i=2,t}function tT(n,e){var t;return++n.j,t=n.Cj(e),t}function Fe(n,e,t){return n.a=-1,QX(n,e.g,t),n}function O0e(n,e){return nn(n,new V(e.a,e.b))}function WPn(n){return _p(),F(DO,AP,40,n,0,1)}function JPn(n){return n.e.Rd().gc()*n.c.Rd().gc()}function XN(n,e,t){return new cPn(Fwe(n)._e(),t,e)}function A0e(n,e){IQ(n,e==null?null:(Jn(e),e))}function L0e(n,e){SQ(n,e==null?null:(Jn(e),e))}function N0e(n,e){SQ(n,e==null?null:(Jn(e),e))}function x6(n){if(!n)throw T(new i4(null))}function iW(n){if(n.c.e!=n.a)throw T(new Ko)}function rW(n){if(n.e.c!=n.b)throw T(new Ko)}function iT(n){for(Pe(n);n.Ob();)n.Pb(),n.Qb()}function VN(n){mb(),this.a=(Ln(),new nL(Pe(n)))}function cW(n){this.c=n,this.b=this.c.d.vc().Kc()}function D0e(n){n.a.ld(),u(n.a.md(),16).gc(),bz()}function QPn(n,e){return n.a+=ws(e,0,e.length),n}function sn(n,e){return Nn(e,n.c.length),n.c[e]}function YPn(n,e){return Nn(e,n.a.length),n.a[e]}function $0e(n,e){return Jn(e),mk(e,(Jn(n),n))}function x0e(n,e){return Jn(n),mk(n,(Jn(e),e))}function Wa(n,e,t,i,r,c){return jFn(n,e,t,i,r,0,c)}function R0e(n,e){return $t(e,0,uW(e[0],Tl(1)))}function K0e(n,e){return Tl(nr(Tl(n.a).a,e.a))}function uW(n,e){return K0e(u(n,168),u(e,168))}function ZPn(){ZPn=R,mun=F(t0,J,168,256,0,1)}function nIn(){nIn=R,yun=F(i0,J,191,256,0,1)}function eIn(){eIn=R,bun=F(p3,J,222,256,0,1)}function tIn(){tIn=R,gun=F(S8,J,180,128,0,1)}function oW(){Nh(this,!1,!1,!1,!1)}function sW(n){EG.call(this,new Ql),Ki(this,n)}function R6(n){this.a=new ap(n.gc()),Ki(this,n)}function iIn(n){this.c=n,this.a=new dp(this.c.a)}function rIn(n){this.a=n,this.c=new de,o6e(this)}function cIn(){this.d=new V(0,0),this.e=new ni}function Cn(n,e){Va(),i$.call(this,n),this.a=e}function rT(n,e,t,i){zV(this,n,e,t,i)}function B0e(n,e,t){return jc(e.d[n.g],t.d[n.g])}function F0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function _0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function H0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function q0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function cT(n,e,t){return y.Math.min(t/n,1/e)}function uIn(n,e){return n?0:y.Math.max(0,e-1)}function WN(n,e){return n==null?e==null:Sn(n,e)}function U0e(n,e){return n==null?e==null:JC(n,e)}function oIn(n){return n.q?n.q:(Ln(),Ln(),Wh)}function sIn(n){return n.c-u(sn(n.a,n.b),294).b}function ao(n){return n.c?n.c.f:n.e.b}function Pu(n){return n.c?n.c.g:n.e.a}function G0e(n,e){return n.a==null&&qqn(n),n.a[e]}function fIn(n){var e;return e=MFn(n),e?fIn(e):n}function uT(n,e){return nt(),new SW(n,e)}function Dh(n,e){nt(),Wd.call(this,n),this.a=e}function oT(n,e){Fo(),NE.call(this,e),this.a=n}function K6(n,e,t){this.a=n,ti.call(this,e,t,2)}function hIn(n){this.b=new Mt,this.a=n,this.c=-1}function lIn(n){WX.call(this,0,0),this.a=n,this.b=0}function sT(n){Pb.call(this,n.gc()),Kt(this,n)}function fT(n){n.b?fT(n.b):n.d.dc()&&n.f.c.Bc(n.e)}function fW(n){return Array.isArray(n)&&n.Tm===Q2}function JN(n,e){return L(e,22)&&Su(n,u(e,22))}function aIn(n,e){return L(e,22)&&kme(n,u(e,22))}function wr(n,e){return KRn(n,e,J3e(n,n.b.Ce(e)))}function z0e(n,e){return n.a.get(e)!==void 0}function hW(n){return to(n,26)*J5+to(n,27)*Q5}function dIn(n,e){return Bme(new Ubn,new b9n(n),e)}function QN(n,e,t){xRn(0,e,n.length),R4(n,0,e,t)}function bb(n,e,t){z0(e,n.c.length),d6(n.c,e,t)}function hT(n,e,t){var i;n&&(i=n.i,i.c=e,i.b=t)}function lT(n,e,t){var i;n&&(i=n.i,i.d=e,i.a=t)}function bIn(n,e,t){var i;for(i=0;i<e;++i)n[i]=t}function X0e(n,e){var t;for(t=0;t<e;++t)n[t]=-1}function yt(n,e){var t;return t=jn(n),nY(t,e),t}function V0e(n,e){return!n&&(n=[]),n[n.length]=e,n}function YN(n,e){tt(n.c,e),n.b.c+=e.a,n.b.d+=e.b}function W0e(n,e){YN(n,mi(new V(e.a,e.b),n.c))}function ZN(n,e){this.b=new Mt,this.a=n,this.c=e}function wIn(){this.b=new twn,this.c=new WOn(this)}function lW(){this.d=new i0n,this.e=new VOn(this)}function aW(){uJ(),this.f=new Mt,this.e=new Mt}function gIn(){ko(),this.k=new de,this.d=new ni}function nD(){nD=R,moe=new Di((He(),oo),0)}function pIn(){pIn=R,cQn=new lIn(F(ki,Kn,1,0,5,1))}function J0e(n,e,t){return fi(n,new bp(e.a,t.a))}function Q0e(n,e,t){return-jc(n.f[e.p],n.f[t.p])}function Y0e(n,e,t){LHn(t,n,1),nn(e,new LMn(t,n))}function Z0e(n,e,t){I5(t,n,1),nn(e,new $Mn(t,n))}function mIn(n,e,t){this.a=n,$M.call(this,e,t,22)}function vIn(n,e,t){this.a=n,$M.call(this,e,t,14)}function kIn(n,e,t,i){Fo(),rLn.call(this,n,e,t,i)}function yIn(n,e,t,i){Fo(),rLn.call(this,n,e,t,i)}function Iu(n,e,t){return n.a=-1,QX(n,e.g+1,t),n}function dW(n,e,t){return t=Po(n,u(e,54),7,t),t}function bW(n,e,t){return t=Po(n,u(e,54),3,t),t}function Se(n){return Vr(n)?n|0:cEn(n)}function jIn(n){return nt(),new OD(10,n,0)}function EIn(n){var e;return e=n.f,e||(n.f=n.Dc())}function Cp(n){var e;return e=n.i,e||(n.i=n.bc())}function aT(n){if(n.e.j!=n.d)throw T(new Ko)}function Ja(n){return n.c?n.c:n.c=n.Sd()}function eD(n){return n.d?n.d:n.d=n.Td()}function B6(n,e){return q8e(hk(n,e))?e.zi():null}function nwe(n){return L(n,15)?u(n,15).ed():n.Kc()}function wW(n){return n.Qc(F(ki,Kn,1,n.gc(),5,1))}function MIn(n){return n!=null&&uD(n)&&n.Tm!==Q2}function gW(n){return!Array.isArray(n)&&n.Tm===Q2}function TIn(n,e){return Pe(e),n.a.Jd(e)&&!n.b.Jd(e)}function ewe(n,e){return Yc(n.l&e.l,n.m&e.m,n.h&e.h)}function twe(n,e){return Yc(n.l|e.l,n.m|e.m,n.h|e.h)}function iwe(n,e){return Yc(n.l^e.l,n.m^e.m,n.h^e.h)}function Ks(n,e){return Y1(t_n(Vr(n)?ds(n):n,e))}function wb(n,e){return Y1(znn(Vr(n)?ds(n):n,e))}function U1(n,e){return Y1(Kje(Vr(n)?ds(n):n,e))}function rwe(n,e){return Eae((Jn(n),n),(Jn(e),e))}function tD(n,e){return bt((Jn(n),n),(Jn(e),e))}function dT(n){this.b=new Gc(11),this.a=(jb(),n)}function ie(n){this.a=(pIn(),cQn),this.d=u(Pe(n),51)}function CIn(n,e){this.c=0,this.d=n,this.b=e|64|wh}function pW(n,e){this.e=n,this.d=e&64?e|wh:e}function iD(n){this.b=null,this.a=(jb(),n||Iun)}function SIn(n){xM(this),this.g=n,TT(this),this.je()}function Qa(n){F1(),this.a=0,this.b=n-1,this.c=1}function mW(n,e,t,i){this.a=n,VT.call(this,n,e,t,i)}function cwe(n,e,t){n.a.Mb(t)&&(n.b=!0,e.Cd(t))}function vW(n){n.d||(n.d=n.b.Kc(),n.c=n.b.gc())}function E4(n,e){if(n<0||n>=e)throw T(new QG)}function _0(n,e){return Nk(n,(Jn(e),new a9n(e)))}function Sp(n,e){return Nk(n,(Jn(e),new d9n(e)))}function PIn(n,e,t){return VNe(n,u(e,12),u(t,12))}function IIn(n){return Au(),u(n,12).g.c.length!=0}function OIn(n){return Au(),u(n,12).e.c.length!=0}function uwe(n,e){return Hp(),bt(e.a.o.a,n.a.o.a)}function owe(n,e){e.Bb&kc&&!n.a.o&&(n.a.o=e)}function swe(n,e){e.Ug("General 'Rotator",1),jLe(n)}function fwe(n,e,t){e.qf(t,$(B(ee(n.b,t)))*n.a)}function AIn(n,e,t){return Vg(),W4(n,e)&&W4(n,t)}function F6(n){return zu(),!n.Hc(Rl)&&!n.Hc(Oa)}function hwe(n){return n.e?HJ(n.e):null}function _6(n){return Vr(n)?""+n:$qn(n)}function kW(n){var e;for(e=n;e.f;)e=e.f;return e}function lwe(n,e,t){return $t(e,0,uW(e[0],t[0])),e}function Vl(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function q(n,e,t,i){ti.call(this,n,e,t),this.b=i}function Mi(n,e,t,i,r){c$.call(this,n,e,t,i,r,-1)}function H6(n,e,t,i,r){ck.call(this,n,e,t,i,r,-1)}function bT(n,e,t,i){R7.call(this,n,e,t),this.b=i}function LIn(n){ITn.call(this,n,!1),this.a=!1}function NIn(){sTn.call(this,"LOOKAHEAD_LAYOUT",1)}function DIn(n){this.b=n,kp.call(this,n),BCn(this)}function $In(n){this.b=n,T7.call(this,n),FCn(this)}function H0(n,e,t){this.a=n,jp.call(this,e,t,5,6)}function yW(n,e,t,i){this.b=n,ti.call(this,e,t,i)}function xIn(n,e){this.b=n,H8n.call(this,n.b),this.a=e}function RIn(n){this.a=kBn(n.a),this.b=new _u(n.b)}function jW(n,e){mb(),Hhe.call(this,n,RC(new Fu(e)))}function wT(n,e){return nt(),new RW(n,e,0)}function rD(n,e){return nt(),new RW(6,n,e)}function _i(n,e){for(Jn(e);n.Ob();)e.Cd(n.Pb())}function Zc(n,e){return Si(e)?SD(n,e):!!wr(n.f,e)}function cD(n,e){return e.Vh()?ea(n.b,u(e,54)):e}function awe(n,e){return Sn(n.substr(0,e.length),e)}function $h(n){return new ie(new qX(n.a.length,n.a))}function gT(n){return new V(n.c+n.b/2,n.d+n.a/2)}function dwe(n){return Yc(~n.l&ro,~n.m&ro,~n.h&Ol)}function uD(n){return typeof n===vy||typeof n===eK}function Hu(n){n.f=new iCn(n),n.i=new rCn(n),++n.g}function KIn(n){if(!n)throw T(new nc);return n.d}function Pp(n){var e;return e=l5(n),oe(e!=null),e}function bwe(n){var e;return e=O5e(n),oe(e!=null),e}function M4(n,e){var t;return t=n.a.gc(),RJ(e,t),t-e}function fi(n,e){var t;return t=n.a.zc(e,n),t==null}function B7(n,e){return n.a.zc(e,(_n(),ga))==null}function EW(n){return new Cn(null,vwe(n,n.length))}function MW(n,e,t){return cGn(n,u(e,42),u(t,176))}function Ip(n,e,t){return _s(n.a,e),ZV(n.b,e.g,t)}function wwe(n,e,t){E4(t,n.a.c.length),Go(n.a,t,e)}function K(n,e,t,i){xRn(e,t,n.length),gwe(n,e,t,i)}function gwe(n,e,t,i){var r;for(r=e;r<t;++r)n[r]=i}function TW(n,e){var t;for(t=0;t<e;++t)n[t]=!1}function Ya(n,e,t){dh(),this.e=n,this.d=e,this.a=t}function CW(n,e,t){this.c=n,this.a=e,Ln(),this.b=t}function oD(n,e){this.d=n,ne.call(this,n),this.e=e}function hf(n,e,t){return $6e(n,e.g,t),_s(n.c,e),n}function pwe(n){return Yg(n,(ci(),Kr)),n.d=!0,n}function sD(n){return!n.j&&Tfe(n,yPe(n.g,n.b)),n.j}function BIn(n){n.a=null,n.e=null,Hu(n.b),n.d=0,++n.c}function q6(n){R0(n.b!=-1),Yl(n.c,n.a=n.b),n.b=-1}function SW(n,e){Wd.call(this,1),this.a=n,this.b=e}function mwe(n,e){return n>0?y.Math.log(n/e):-100}function FIn(n,e){return Ec(n,e)<0?-1:Ec(n,e)>0?1:0}function F7(n,e){ACn(n,L(e,160)?e:u(e,2036).Rl())}function PW(n,e){if(n==null)throw T(new fp(e))}function vwe(n,e){return yme(e,n.length),new XPn(n,e)}function IW(n,e){return e?Ki(n,e):!1}function kwe(){return BE(),S(C(uQn,1),G,549,0,[GF])}function U6(n){return n.e==0?n:new Ya(-n.e,n.d,n.a)}function ywe(n,e){return bt(n.c.c+n.c.b,e.c.c+e.c.b)}function _7(n,e){xt(n.d,e,n.b.b,n.b),++n.a,n.c=null}function _In(n,e){return n.c?_In(n.c,e):nn(n.b,e),n}function jwe(n,e,t){var i;return i=J0(n,e),qD(n,e,t),i}function HIn(n,e,t){var i;for(i=0;i<e;++i)$t(n,i,t)}function qIn(n,e,t,i,r){for(;e<t;)i[r++]=Xi(n,e++)}function T4(n,e,t,i,r){Qx(n,u(ot(e.k,t),15),t,i,r)}function gb(n,e){qt(_r(n.Oc(),new lpn),new M7n(e))}function Ewe(n,e){return bt(n.e.a+n.f.a,e.e.a+e.f.a)}function Mwe(n,e){return bt(n.e.b+n.f.b,e.e.b+e.f.b)}function fD(n){return y.Math.abs(n.d.e-n.e.e)-n.a}function Twe(n){return n==Pt?nj:n==li?"-INF":""+n}function Cwe(n){return n==Pt?nj:n==li?"-INF":""+n}function Swe(n){return Np(),St(Fh(n))==St(ra(n))}function Pwe(n,e,t){return u(n.c.hd(e,u(t,136)),44)}function Iwe(n,e){Op(n,new q0(e.f!=null?e.f:""+e.g))}function Owe(n,e){Op(n,new q0(e.f!=null?e.f:""+e.g))}function Kt(n,e){return n.Si()&&(e=gAn(n,e)),n.Fi(e)}function hD(n,e){return e=n.Yk(null,e),KFn(n,null,e)}function Awe(n,e){++n.j,Jx(n,n.i,e),nMe(n,u(e,343))}function OW(n){n?YZ(n,(fl(),pQn)):$ge((fl(),n))}function pb(n){this.d=(Jn(n),n),this.a=0,this.c=Ey}function lD(n,e){this.d=j5e(n),this.c=e,this.a=.5*e}function UIn(n){ZW.call(this),this.a=n,nn(n.a,this)}function GIn(){Ql.call(this),this.a=!0,this.b=!0}function zIn(){zIn=R,lQn=new aG(!1),aQn=new aG(!0)}function G6(n){var e;return e=n.g,e||(n.g=new sG(n))}function pT(n){var e;return e=n.k,e||(n.k=new fG(n))}function AW(n){var e;return e=n.k,e||(n.k=new fG(n))}function Lwe(n){var e;return e=n.i,e||(n.i=new x8n(n))}function XIn(n){var e;return e=n.f,e||(n.f=new HX(n))}function aD(n){var e;return e=n.j,e||(n.j=new W8n(n))}function dD(n){var e;return e=n.d,e||(n.d=new VA(n))}function VIn(n,e,t){return nt(),new qAn(n,e,t)}function WIn(n,e){return Z7(e,n.c.b.c.gc()),new NEn(n,e)}function LW(n,e){var t;return t=n.a.gc(),Z7(e,t),t-1-e}function w(n,e,t){var i;return i=bD(n,e),G$n(t,i),i}function bD(n,e){var t;return t=new QQ,t.j=n,t.d=e,t}function Pe(n){if(n==null)throw T(new rp);return n}function q0(n){if(n==null)throw T(new rp);this.a=n}function JIn(n){FG(),this.b=new Z,this.a=n,MAe(this,n)}function NW(n){this.b=n,this.a=u(as(this.b.a.e),227)}function mb(){mb=R,oh(),qF=new ID((Ln(),Ln(),sr))}function wD(){wD=R,oh(),cun=new Rz((Ln(),Ln(),hI))}function G1(){G1=R,Hn=ZEe(),An(),tg&&nke()}function mT(n){n.s=NaN,n.c=NaN,kHn(n,n.e),kHn(n,n.j)}function se(n){return(n.i==null&&bh(n),n.i).length}function QIn(n,e){return u(Ja(n.a).Md().Xb(e),44).ld()}function ee(n,e){return Si(e)?Dc(n,e):Fr(wr(n.f,e))}function Nwe(n,e){return Np(),n==Fh(e)?ra(e):Fh(e)}function Dwe(n,e,t,i){return t==0||(t-i)/t<n.e||e>=n.g}function $t(n,e,t){return dae(t==null||sIe(n,t)),n[e]=t}function DW(n,e){return zn(e,n.length+1),n.substr(e)}function gD(n,e){for(Jn(e);n.c<n.d;)n.Se(e,n.c++)}function $W(n){this.d=n,this.c=n.a.d.a,this.b=n.a.e.g}function YIn(n){this.c=n,this.a=new Mt,this.b=new Mt}function Nc(n){this.c=new Ni,this.a=new Z,this.b=n}function ZIn(n){this.b=new Z,this.a=new Z,this.c=n}function $we(n,e,t){u(e.b,68),nu(e.a,new xV(n,t,e))}function xwe(n,e){return Hp(),u(Mr(n,e.d),15).Fc(e)}function Op(n,e){var t;t=n.a.length,J0(n,t),qD(n,t,e)}function nOn(n,e){var t;t=console[n],t.call(console,e)}function eOn(n,e){var t;++n.j,t=n.Ej(),n.rj(n.Zi(t,e))}function pD(n,e,t){var i;return i=C$(n,e,t),ken(n,i)}function vb(n){return!n.d&&(n.d=new ti(jr,n,1)),n.d}function Rwe(n){return!n.a&&(n.a=new ti(Aa,n,4)),n.a}function C4(n,e){return n.a+=String.fromCharCode(e),n}function z1(n,e){return n.a+=String.fromCharCode(e),n}function xW(n,e,t){this.a=n,xG.call(this,e),this.b=t}function tOn(n,e,t){this.a=n,mJ.call(this,8,e,null,t)}function RW(n,e,t){Wd.call(this,n),this.a=e,this.b=t}function KW(n,e,t){NE.call(this,e),this.a=n,this.b=t}function iOn(n){this.c=n,this.b=this.c.a,this.a=this.c.e}function Kwe(n){this.a=(Jn(Ke),Ke),this.b=n,new ez}function rOn(n){GW(n.a),n.b=F(ki,Kn,1,n.b.length,5,1)}function bo(n){R0(n.c!=-1),n.d.gd(n.c),n.b=n.c,n.c=-1}function z6(n){return y.Math.sqrt(n.a*n.a+n.b*n.b)}function vT(n,e){return qx(n.c,n.f,e,n.b,n.a,n.e,n.d)}function kb(n,e){return E4(e,n.a.c.length),sn(n.a,e)}function sh(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function cOn(n){return L(n,102)&&(u(n,19).Bb&kc)!=0}function uOn(n){return as(n),L(n,484)?u(n,484):Jr(n)}function oOn(n){return n?n.dc():!n.Kc().Ob()}function Bwe(n){return rg?SD(rg,n):!1}function Fwe(n){return 0>=n?new Az:Gme(n-1)}function Hi(n){return!n.a&&n.c?n.c.b:n.a}function BW(n){return L(n,616)?n:new oAn(n)}function X1(n){n.c?X1(n.c):(ta(n),n.d=!0)}function X6(n){n.c?n.c.$e():(n.d=!0,fCe(n))}function sOn(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function fOn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function _we(n,e){var t;t=n.Ih(e),t>=0?n.ki(t):Pnn(n,e)}function hOn(n,e){n.c<0||n.b.b<n.c?ir(n.b,e):n.a.tf(e)}function Hwe(n,e){ve((!n.a&&(n.a=new I7(n,n)),n.a),e)}function qwe(n,e){YN(u(e.b,68),n),nu(e.a,new IG(n))}function Uwe(n,e){return jc(e.j.c.length,n.j.c.length)}function Gwe(n,e,t){return qp(),t.Lg(n,u(e.ld(),149))}function as(n){if(n==null)throw T(new rp);return n}function Jn(n){if(n==null)throw T(new rp);return n}function zwe(n){if(n.p!=4)throw T(new Mu);return n.e}function Xwe(n){if(n.p!=3)throw T(new Mu);return n.e}function Vwe(n){if(n.p!=3)throw T(new Mu);return n.j}function Wwe(n){if(n.p!=4)throw T(new Mu);return n.j}function Jwe(n){if(n.p!=6)throw T(new Mu);return n.f}function Qwe(n){if(n.p!=6)throw T(new Mu);return n.k}function FW(n){return!n.b&&(n.b=new DE(new aL)),n.b}function yb(n){return n.c==-2&&gfe(n,Uye(n.g,n.b)),n.c}function S4(n,e){var t;return t=bD("",n),t.n=e,t.i=1,t}function kT(n,e,t,i){ib.call(this,n,t),this.a=e,this.f=i}function _W(n,e,t,i){ib.call(this,n,e),this.d=t,this.a=i}function lOn(n,e){h1e.call(this,zme(Pe(n),Pe(e))),this.a=e}function ii(){vjn.call(this),I0(this.j.c,0),this.a=-1}function aOn(){cnn.call(this,ks,(o4(),Udn)),vOe(this)}function dOn(){cnn.call(this,Pd,(rEn(),ise)),hAe(this)}function bOn(){je.call(this,"DELAUNAY_TRIANGULATION",0)}function Ywe(n){return String.fromCharCode.apply(null,n)}function Ve(n,e,t){return Si(e)?Lr(n,e,t):Vc(n.f,e,t)}function HW(n){return Ln(),n?n.Oe():(jb(),jb(),Oun)}function Zwe(n){return Mo(n,cK),oC(nr(nr(5,n),n/10|0))}function wOn(n,e){return YM(),new fZ(new QCn(n),new JCn(e))}function yT(){yT=R,rQn=new hz(S(C(Id,1),WS,44,0,[]))}function gOn(n){return!n.d&&(n.d=new Q3(n.c.Cc())),n.d}function P4(n){return!n.a&&(n.a=new qjn(n.c.vc())),n.a}function pOn(n){return!n.b&&(n.b=new r4(n.c.ec())),n.b}function xh(n,e){for(;e-- >0;)n=n<<1|(n<0?1:0);return n}function mOn(n,e){var t;return t=new Nc(n),Fn(e.c,t),t}function vOn(n,e){n.u.Hc((zu(),Rl))&&zEe(n,e),h4e(n,e)}function mc(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function Mr(n,e){return JN(n.a,e)?n.b[u(e,22).g]:null}function nge(){return YE(),S(C(oon,1),G,489,0,[d_])}function ege(){return eM(),S(C($1n,1),G,490,0,[Rq])}function tge(){return tM(),S(C(zce,1),G,558,0,[Kq])}function ige(){return s6(),S(C(tan,1),G,539,0,[Hj])}function jT(n){return!n.n&&(n.n=new q(Sr,n,1,7)),n.n}function mD(n){return!n.c&&(n.c=new q(Qu,n,9,9)),n.c}function qW(n){return!n.c&&(n.c=new Dn(he,n,5,8)),n.c}function rge(n){return!n.b&&(n.b=new Dn(he,n,4,7)),n.b}function H7(n){return n.j.c.length=0,GW(n.c),xae(n.a),n}function I4(n){return n.e==rv&&jfe(n,Y8e(n.g,n.b)),n.e}function q7(n){return n.f==rv&&Mfe(n,q7e(n.g,n.b)),n.f}function We(n,e,t,i){return Hxn(n,e,t,!1),KC(n,i),n}function kOn(n,e){this.b=n,oD.call(this,n,e),BCn(this)}function yOn(n,e){this.b=n,SV.call(this,n,e),FCn(this)}function V6(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function UW(n,e){this.b=n,this.c=e,this.a=new dp(this.b)}function Xi(n,e){return zn(e,n.length),n.charCodeAt(e)}function cge(n,e){AY(n,$(yl(e,"x")),$(yl(e,"y")))}function uge(n,e){AY(n,$(yl(e,"x")),$(yl(e,"y")))}function ut(n,e){return ta(n),new Cn(n,new eQ(e,n.a))}function _r(n,e){return ta(n),new Cn(n,new FJ(e,n.a))}function U0(n,e){return ta(n),new cV(n,new ONn(e,n.a))}function ET(n,e){return ta(n),new uV(n,new ANn(e,n.a))}function oge(n,e){return new GOn(u(Pe(n),50),u(Pe(e),50))}function sge(n,e){return bt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function jOn(n,e,t){t.a?tu(n,e.b-n.f/2):eu(n,e.a-n.g/2)}function fge(n,e){return bt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function hge(n,e){return Dz(),bt((Jn(n),n),(Jn(e),e))}function lge(n){return n!=null&&t7(jA,n.toLowerCase())}function GW(n){var e;for(e=n.Kc();e.Ob();)e.Pb(),e.Qb()}function Sg(n){var e;return e=n.b,!e&&(n.b=e=new D8n(n)),e}function vD(n){var e;return e=Wme(n),e||null}function EOn(n,e){var t,i;return t=n/e,i=wi(t),t>i&&++i,i}function age(n,e,t){var i;i=u(n.d.Kb(t),159),i&&i.Nb(e)}function dge(n,e,t){wOe(n.a,t),zve(t),xMe(n.b,t),xOe(e,t)}function MT(n,e,t,i){this.a=n,this.c=e,this.b=t,this.d=i}function zW(n,e,t,i){this.c=n,this.b=e,this.a=t,this.d=i}function MOn(n,e,t,i){this.c=n,this.b=e,this.d=t,this.a=i}function Ho(n,e,t,i){this.c=n,this.d=e,this.b=t,this.a=i}function TOn(n,e,t,i){this.a=n,this.d=e,this.c=t,this.b=i}function kD(n,e,t,i){this.a=n,this.e=e,this.d=t,this.c=i}function COn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function yD(n,e,t){this.a=vtn,this.d=n,this.b=e,this.c=t}function Ap(n,e,t,i){je.call(this,n,e),this.a=t,this.b=i}function SOn(n,e){this.d=(Jn(n),n),this.a=16449,this.c=e}function POn(n){this.a=new Z,this.e=F(ye,J,53,n,0,2)}function bge(n){n.Ug("No crossing minimization",1),n.Vg()}function IOn(){ec.call(this,"There is no more element.")}function OOn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function AOn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function Za(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function LOn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function NOn(n,e,t,i){Fo(),LNn.call(this,e,t,i),this.a=n}function DOn(n,e,t,i){Fo(),LNn.call(this,e,t,i),this.a=n}function jD(n,e,t){var i,r;return i=ctn(n),r=e.ti(t,i),r}function al(n){var e,t;return t=(e=new Jd,e),F4(t,n),t}function ED(n){var e,t;return t=(e=new Jd,e),snn(t,n),t}function wge(n,e){var t;return t=ee(n.f,e),_Q(e,t),null}function $On(n){return!n.b&&(n.b=new q(Vt,n,12,3)),n.b}function xOn(n){return x6(n==null||uD(n)&&n.Tm!==Q2),n}function TT(n){return n.n&&(n.e!==Rzn&&n.je(),n.j=null),n}function O4(n){if(eo(n.d),n.d.d!=n.c)throw T(new Ko)}function XW(n){return oe(n.b<n.d.gc()),n.d.Xb(n.c=n.b++)}function vo(n){n.a.a=n.c,n.c.b=n.a,n.a.b=n.c.a=null,n.b=0}function MD(n){this.f=n,this.c=this.f.e,n.f>0&&bFn(this)}function ROn(n,e){this.a=n,bae.call(this,n,u(n.d,15).fd(e))}function gge(n,e){return bt(Pu(n)*ao(n),Pu(e)*ao(e))}function pge(n,e){return bt(Pu(n)*ao(n),Pu(e)*ao(e))}function mge(n){return _b(n)&&on(un(z(n,(cn(),Dd))))}function vge(n,e){return In(n,u(v(e,(cn(),Mv)),17),e)}function kge(n,e){return u(v(n,(W(),C3)),15).Fc(e),e}function VW(n,e){return n.b=e.b,n.c=e.c,n.d=e.d,n.a=e.a,n}function KOn(n,e,t,i){this.b=n,this.c=i,OM.call(this,e,t)}function yge(n,e,t){n.i=0,n.e=0,e!=t&&yRn(n,e,t)}function jge(n,e,t){n.i=0,n.e=0,e!=t&&jRn(n,e,t)}function Ege(n,e,t){return o6(),J5e(u(ee(n.e,e),529),t)}function Lp(n){var e;return e=n.f,e||(n.f=new h4(n,n.c))}function BOn(n,e){return Rg(n.j,e.s,e.c)+Rg(e.e,n.s,n.c)}function FOn(n,e){n.e&&!n.e.a&&(Syn(n.e,e),FOn(n.e,e))}function _On(n,e){n.d&&!n.d.a&&(Syn(n.d,e),_On(n.d,e))}function Mge(n,e){return-bt(Pu(n)*ao(n),Pu(e)*ao(e))}function Tge(n){return u(n.ld(),149).Pg()+":"+Jr(n.md())}function HOn(){tR(this,new uG),this.wb=(G1(),Hn),o4()}function qOn(n){this.b=new Z,hi(this.b,this.b),this.a=n}function WW(n,e){new Mt,this.a=new Tu,this.b=n,this.c=e}function jb(){jb=R,Iun=new xU,YF=new xU,Oun=new Lbn}function Ln(){Ln=R,sr=new Sbn,Wh=new Ibn,hI=new Obn}function JW(){JW=R,BQn=new n0n,_Qn=new lW,FQn=new e0n}function Np(){Np=R,mI=new Z,p_=new de,g_=new Z}function CT(n,e){if(n==null)throw T(new fp(e));return n}function ST(n){return!n.a&&(n.a=new q(Ye,n,10,11)),n.a}function ft(n){return!n.q&&(n.q=new q(Ps,n,11,10)),n.q}function H(n){return!n.s&&(n.s=new q(ku,n,21,17)),n.s}function Cge(n){return Pe(n),OBn(new ie(ce(n.a.Kc(),new En)))}function Sge(n,e){return wo(n),wo(e),Rjn(u(n,22),u(e,22))}function nd(n,e,t){var i,r;i=IV(t),r=new SE(i),bf(n,e,r)}function TD(n,e,t,i,r,c){ck.call(this,n,e,t,i,r,c?-2:-1)}function UOn(n,e,t,i){gX.call(this,e,t),this.b=n,this.a=i}function GOn(n,e){Vfe.call(this,new iD(n)),this.a=n,this.b=e}function QW(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function Pge(n){Rs();var e;e=u(n.g,10),e.n.a=n.d.c+e.d.b}function A4(){A4=R;var n,e;e=!$8e(),n=new V3,XF=e?new og:n}function CD(n){return Ln(),L(n,59)?new jL(n):new KM(n)}function PT(n){return L(n,16)?new R6(u(n,16)):o0e(n.Kc())}function Ige(n){return new HCn(n,n.e.Rd().gc()*n.c.Rd().gc())}function Oge(n){return new qCn(n,n.e.Rd().gc()*n.c.Rd().gc())}function YW(n){return n&&n.hashCode?n.hashCode():lb(n)}function SD(n,e){return e==null?!!wr(n.f,null):z0e(n.i,e)}function Age(n,e){var t;return t=DX(n.a,e),t&&(e.d=null),t}function zOn(n,e,t){return n.f?n.f.ef(e,t):!1}function U7(n,e,t,i){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i)}function PD(n,e,t,i){$t(n.c[e.g],e.g,t),$t(n.b[e.g],e.g,i)}function Lge(n,e,t){return $(B(t.a))<=n&&$(B(t.b))>=e}function XOn(n,e){this.g=n,this.d=S(C(Qh,1),b1,10,0,[e])}function VOn(n){this.c=n,this.b=new Ul(u(Pe(new t0n),50))}function WOn(n){this.c=n,this.b=new Ul(u(Pe(new ewn),50))}function JOn(n){this.b=n,this.a=new Ul(u(Pe(new D0n),50))}function QOn(){this.b=new ni,this.d=new Mt,this.e=new YG}function ZW(){this.c=new Ni,this.d=new Ni,this.e=new Ni}function Eb(){this.a=new Tu,this.b=(Mo(3,mw),new Gc(3))}function Wl(n,e){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e}function IT(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function YOn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function ZOn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function V1(n,e,t,i,r,c,s){return new GD(n.e,e,t,i,r,c,s)}function Nge(n,e,t){return t>=0&&Sn(n.substr(t,e.length),e)}function nAn(n,e){return L(e,149)&&Sn(n.b,u(e,149).Pg())}function Dge(n,e){return n.a?e.Gh().Kc():u(e.Gh(),71).Ii()}function eAn(n,e){var t;return t=n.b.Qc(e),WLn(t,n.b.gc()),t}function G7(n,e){if(n==null)throw T(new fp(e));return n}function Hr(n){return n.u||(Zu(n),n.u=new DSn(n,n)),n.u}function ID(n){this.a=(Ln(),L(n,59)?new jL(n):new KM(n))}function au(n){var e;return e=u(Un(n,16),29),e||n.ii()}function OT(n,e){var t;return t=Xa(n.Rm),e==null?t:t+": "+e}function qo(n,e,t){return Ri(e,t,n.length),n.substr(e,t-e)}function tAn(n,e){qM.call(this),hQ(this),this.a=n,this.c=e}function $ge(n){n&&OT(n,n.ie())}function xge(n){HE(),y.setTimeout(function(){throw n},0)}function Rge(){return YC(),S(C(Kun,1),G,436,0,[u_,Run])}function Kge(){return cC(),S(C(Fun,1),G,435,0,[Bun,o_])}function Bge(){return uC(),S(C(bon,1),G,432,0,[m_,vI])}function Fge(){return V4(),S(C(FZn,1),G,517,0,[dj,L_])}function _ge(){return FT(),S(C(Qsn,1),G,429,0,[sH,Jsn])}function Hge(){return wk(),S(C($sn,1),G,428,0,[WI,Dsn])}function qge(){return QT(),S(C(Ssn,1),G,431,0,[Csn,X_])}function Uge(){return dk(),S(C(qhn,1),G,430,0,[qH,UH])}function Gge(){return Z6(),S(C(Aie,1),G,531,0,[e9,n9])}function zge(){return yC(),S(C(Bln,1),G,501,0,[BO,N2])}function Xge(){return fh(),S(C(Kie,1),G,523,0,[m0,y1])}function Vge(){return If(),S(C(Fie,1),G,522,0,[Bd,Xf])}function Wge(){return af(),S(C(ere,1),G,528,0,[zw,Ea])}function Jge(){return sk(),S(C(Ksn,1),G,488,0,[Rsn,QI])}function Qge(){return GT(),S(C(P1n,1),G,491,0,[Dq,S1n])}function Yge(){return D$(),S(C(D1n,1),G,492,0,[L1n,N1n])}function Zge(){return RT(),S(C(Kln,1),G,433,0,[aq,Rln])}function n2e(){return ZT(),S(C(_ln,1),G,434,0,[Fln,mq])}function e2e(){return Tb(),S(C(sre,1),G,465,0,[Ma,O2])}function t2e(){return ik(),S(C(x1n,1),G,438,0,[Bq,JO])}function i2e(){return Tk(),S(C(ran,1),G,437,0,[YO,ian])}function r2e(){return BN(),S(C(dA,1),G,347,0,[vdn,kdn])}function AT(n,e,t,i){return t>=0?n.Uh(e,t,i):n.Ch(null,t,i)}function z7(n){return n.b.b==0?n.a.sf():UN(n.b)}function c2e(n){if(n.p!=5)throw T(new Mu);return Se(n.f)}function u2e(n){if(n.p!=5)throw T(new Mu);return Se(n.k)}function nJ(n){return x(n.a)===x((L$(),EU))&&rAe(n),n.a}function o2e(n,e){n.b=e,n.c>0&&n.b>0&&(n.g=cT(n.c,n.b,n.a))}function s2e(n,e){n.c=e,n.c>0&&n.b>0&&(n.g=cT(n.c,n.b,n.a))}function iAn(n,e){ufe(this,new V(n.a,n.b)),ofe(this,$7(e))}function Mb(){Wfe.call(this,new ap(Q0(12))),BX(!0),this.a=2}function OD(n,e,t){nt(),Wd.call(this,n),this.b=e,this.a=t}function eJ(n,e,t){Fo(),NE.call(this,e),this.a=n,this.b=t}function rAn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function f2e(n){return n.b==0?null:(oe(n.b!=0),Xo(n,n.a.a))}function Dc(n,e){return e==null?Fr(wr(n.f,null)):a6(n.i,e)}function cAn(n,e,t,i,r){return new rR(n,(K4(),t_),e,t,i,r)}function LT(n,e){return zLn(e),Nme(n,F(ye,_e,28,e,15,1),e)}function NT(n,e){return CT(n,"set1"),CT(e,"set2"),new VEn(n,e)}function h2e(n,e){var t=oun[n.charCodeAt(0)];return t??n}function uAn(n,e){var t,i;return t=e,i=new LA,NGn(n,t,i),i.d}function AD(n,e,t,i){var r;r=new RSn,e.a[t.g]=r,Ip(n.b,i,r)}function l2e(n,e){var t;return t=Ome(n.f,e),tt(HM(t),n.f.d)}function X7(n){var e;_me(n.a),dCn(n.a),e=new OE(n.a),_Y(e)}function a2e(n,e){_qn(n,!0),nu(n.e.Rf(),new NV(n,!0,e))}function d2e(n,e){return Np(),n==St(Fh(e))||n==St(ra(e))}function b2e(n,e){return kl(),u(v(e,(lc(),Ph)),17).a==n}function wi(n){return Math.max(Math.min(n,et),-2147483648)|0}function oAn(n){this.a=u(Pe(n),277),this.b=(Ln(),new zX(n))}function sAn(n,e,t){this.i=new Z,this.b=n,this.g=e,this.a=t}function tJ(n,e,t){this.a=new Z,this.e=n,this.f=e,this.c=t}function DT(n,e,t){this.c=new Z,this.e=n,this.f=e,this.b=t}function fAn(n){qM.call(this),hQ(this),this.a=n,this.c=!0}function w2e(n){function e(){}return e.prototype=n||{},new e}function g2e(n){if(n.Ae())return null;var e=n.n;return rI[e]}function V7(n){return n.Db>>16!=3?null:u(n.Cb,27)}function Pf(n){return n.Db>>16!=9?null:u(n.Cb,27)}function hAn(n){return n.Db>>16!=6?null:u(n.Cb,74)}function Tb(){Tb=R,Ma=new rX(s3,0),O2=new rX(f3,1)}function fh(){fh=R,m0=new eX(f3,0),y1=new eX(s3,1)}function If(){If=R,Bd=new tX(_K,0),Xf=new tX("UP",1)}function lAn(){lAn=R,oQn=Me((BE(),S(C(uQn,1),G,549,0,[GF])))}function aAn(n){var e;return e=new zE(Q0(n.length)),nY(e,n),e}function dAn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function p2e(n,e){return Zxn(n,e)?(W$n(n),!0):!1}function dl(n,e){if(e==null)throw T(new rp);return R8e(n,e)}function W7(n,e){var t;t=n.q.getHours(),n.q.setDate(e),H5(n,t)}function iJ(n,e,t){var i;i=n.Ih(e),i>=0?n.bi(i,t):een(n,e,t)}function bAn(n,e){var t;return t=n.Ih(e),t>=0?n.Wh(t):hR(n,e)}function wAn(n,e){var t;for(Pe(e),t=n.a;t;t=t.c)e.Yd(t.g,t.i)}function LD(n,e,t){var i;i=vRn(n,e,t),n.b=new EC(i.c.length)}function Pg(n,e,t){$T(),n&&Ve(kU,n,e),n&&Ve(hE,n,t)}function m2e(n,e){return VM(),_n(),u(e.a,17).a<n}function v2e(n,e){return VM(),_n(),u(e.b,17).a<n}function ND(n,e){return y.Math.abs(n)<y.Math.abs(e)?n:e}function k2e(n){return!n.a&&(n.a=new q(Ye,n,10,11)),n.a.i>0}function rJ(n){var e;return e=n.d,e=n.bj(n.f),ve(n,e),e.Ob()}function gAn(n,e){var t;return t=new sW(e),_Fn(t,n),new _u(t)}function y2e(n){if(n.p!=0)throw T(new Mu);return M6(n.f,0)}function j2e(n){if(n.p!=0)throw T(new Mu);return M6(n.k,0)}function pAn(n){return n.Db>>16!=7?null:u(n.Cb,241)}function L4(n){return n.Db>>16!=6?null:u(n.Cb,241)}function mAn(n){return n.Db>>16!=7?null:u(n.Cb,167)}function St(n){return n.Db>>16!=11?null:u(n.Cb,27)}function G0(n){return n.Db>>16!=17?null:u(n.Cb,29)}function vAn(n){return n.Db>>16!=3?null:u(n.Cb,155)}function cJ(n){var e;return ta(n),e=new ni,ut(n,new T9n(e))}function kAn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function E2e(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),H5(n,t)}function yAn(n,e){xM(this),this.f=e,this.g=n,TT(this),this.je()}function jAn(n,e){this.a=n,this.c=Fi(this.a),this.b=new IT(e)}function EAn(n,e,t){this.a=e,this.c=n,this.b=(Pe(t),new _u(t))}function MAn(n,e,t){this.a=e,this.c=n,this.b=(Pe(t),new _u(t))}function TAn(n){this.a=n,this.b=F(Pie,J,2043,n.e.length,0,2)}function CAn(){this.a=new rh,this.e=new ni,this.g=0,this.i=0}function $T(){$T=R,kU=new de,hE=new de,ple(TQn,new wvn)}function SAn(){SAn=R,aie=Iu(new ii,(Vi(),zr),(tr(),bj))}function uJ(){uJ=R,die=Iu(new ii,(Vi(),zr),(tr(),bj))}function PAn(){PAn=R,wie=Iu(new ii,(Vi(),zr),(tr(),bj))}function IAn(){IAn=R,Nie=Fe(new ii,(Vi(),zr),(tr(),N8))}function ko(){ko=R,xie=Fe(new ii,(Vi(),zr),(tr(),N8))}function OAn(){OAn=R,Rie=Fe(new ii,(Vi(),zr),(tr(),N8))}function DD(){DD=R,Hie=Fe(new ii,(Vi(),zr),(tr(),N8))}function W6(n,e,t,i,r,c){return new ml(n.e,e,n.Lj(),t,i,r,c)}function Lr(n,e,t){return e==null?Vc(n.f,null,t):$b(n.i,e,t)}function Zi(n,e){n.c&&du(n.c.g,n),n.c=e,n.c&&nn(n.c.g,n)}function $i(n,e){n.c&&du(n.c.a,n),n.c=e,n.c&&nn(n.c.a,n)}function ic(n,e){n.i&&du(n.i.j,n),n.i=e,n.i&&nn(n.i.j,n)}function Oi(n,e){n.d&&du(n.d.e,n),n.d=e,n.d&&nn(n.d.e,n)}function $D(n,e){n.a&&du(n.a.k,n),n.a=e,n.a&&nn(n.a.k,n)}function xD(n,e){n.b&&du(n.b.f,n),n.b=e,n.b&&nn(n.b.f,n)}function AAn(n,e){$we(n,n.b,n.c),u(n.b.b,68),e&&u(e.b,68).b}function M2e(n,e){return bt(u(n.c,65).c.e.b,u(e.c,65).c.e.b)}function T2e(n,e){return bt(u(n.c,65).c.e.a,u(e.c,65).c.e.a)}function C2e(n){return Y$(),_n(),u(n.a,86).d.e!=0}function xT(n,e){L(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,e)}function RD(n,e){L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,e)}function S2e(n,e){LY(n,e),L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),2)}function P2e(n,e){var t,i;t=e.c,i=t!=null,i&&Op(n,new q0(e.c))}function LAn(n){var e,t;return t=(o4(),e=new Jd,e),F4(t,n),t}function NAn(n){var e,t;return t=(o4(),e=new Jd,e),F4(t,n),t}function DAn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function I2e(n,e,t){return nn(n.a,(yT(),Dx(e,t),new ib(e,t))),n}function $c(n,e){return dr(),a$(e)?new eT(e,n):new k7(e,n)}function J7(n){return dh(),Ec(n,0)>=0?ia(n):U6(ia(n1(n)))}function O2e(n){var e;return e=u(ZM(n.b),9),new _o(n.a,e,n.c)}function $An(n,e){var t;return t=u(tw(Lp(n.a),e),16),t?t.gc():0}function xAn(n,e,t){var i;oKn(e,t,n.c.length),i=t-e,Pz(n.c,e,i)}function Jl(n,e,t){oKn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function Dp(n){this.c=new Mt,this.b=n.b,this.d=n.c,this.a=n.a}function KD(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function ed(n,e,t,i){this.c=n,this.d=i,$D(this,e),xD(this,t)}function oJ(n,e){Xfe.call(this,new ap(Q0(n))),Mo(e,Azn),this.a=e}function RAn(n,e,t){return new rR(n,(K4(),e_),null,!1,e,t)}function KAn(n,e,t){return new rR(n,(K4(),i_),e,t,null,!1)}function A2e(){return Gu(),S(C(xr,1),G,108,0,[xun,Yr,Sw])}function L2e(){return bu(),S(C(JQn,1),G,472,0,[kf,ma,Xs])}function N2e(){return Uu(),S(C(VQn,1),G,471,0,[Th,pa,zs])}function D2e(){return wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])}function $2e(){return t5(),S(C(Ion,1),G,391,0,[j_,y_,E_])}function x2e(){return Lb(),S(C(K_,1),G,372,0,[u0,va,c0])}function R2e(){return c5(),S(C(Isn,1),G,322,0,[$8,pj,Psn])}function K2e(){return bC(),S(C(Asn,1),G,351,0,[Osn,VI,V_])}function B2e(){return hd(),S(C(pne,1),G,460,0,[Q_,mv,m2])}function F2e(){return Z4(),S(C(oH,1),G,299,0,[cH,uH,mj])}function _2e(){return vl(),S(C(Tne,1),G,311,0,[vj,k2,E3])}function H2e(){return w5(),S(C(Nhn,1),G,390,0,[xH,Lhn,TO])}function q2e(){return gr(),S(C(cie,1),G,463,0,[Q8,Vu,Jc])}function U2e(){return PC(),S(C(zhn,1),G,387,0,[Uhn,GH,Ghn])}function G2e(){return a5(),S(C(Xhn,1),G,349,0,[XH,zH,Oj])}function z2e(){return om(),S(C(Whn,1),G,350,0,[VH,Vhn,Y8])}function X2e(){return dC(),S(C(Yhn,1),G,352,0,[Qhn,WH,Jhn])}function V2e(){return LC(),S(C(Zhn,1),G,388,0,[JH,Av,Gw])}function W2e(){return Ab(),S(C(Cie,1),G,464,0,[Aj,Z8,IO])}function Of(n){return cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a]))}function J2e(){return d5(),S(C(gln,1),G,392,0,[wln,ZH,Nj])}function BAn(){BAn=R,Rre=Iu(new ii,(Qp(),i9),(F5(),uln))}function RT(){RT=R,aq=new cX("DFS",0),Rln=new cX("BFS",1)}function FAn(n,e,t){var i;i=new E3n,i.b=e,i.a=t,++e.b,nn(n.d,i)}function Q2e(n,e,t){var i;i=new rr(t.d),tt(i,n),AY(e,i.a,i.b)}function Y2e(n,e){NCn(n,Se(vi(wb(e,24),YS)),Se(vi(e,YS)))}function z0(n,e){if(n<0||n>e)throw T(new Or(Ptn+n+Itn+e))}function Nn(n,e){if(n<0||n>=e)throw T(new Or(Ptn+n+Itn+e))}function zn(n,e){if(n<0||n>=e)throw T(new wz(Ptn+n+Itn+e))}function On(n,e){this.b=(Jn(n),n),this.a=e&vw?e:e|64|wh}function sJ(n){var e;return ta(n),e=(jb(),jb(),YF),fC(n,e)}function Z2e(n,e,t){var i;return i=G5(n,e,!1),i.b<=e&&i.a<=t}function npe(){return nC(),S(C(A1n,1),G,439,0,[$q,O1n,I1n])}function epe(){return _C(),S(C(a1n,1),G,394,0,[l1n,Oq,h1n])}function tpe(){return XC(),S(C(f1n,1),G,445,0,[Kj,qO,Mq])}function ipe(){return rS(),S(C(bce,1),G,456,0,[Tq,Sq,Cq])}function rpe(){return Ik(),S(C(Uln,1),G,393,0,[FO,Hln,qln])}function cpe(){return SC(),S(C(s1n,1),G,300,0,[Eq,o1n,u1n])}function upe(){return jl(),S(C(ldn,1),G,346,0,[uA,T1,E9])}function ope(){return $k(),S(C(xq,1),G,444,0,[XO,VO,WO])}function spe(){return $f(),S(C(Zan,1),G,278,0,[Rv,Jw,Kv])}function fpe(){return Gp(),S(C(mdn,1),G,280,0,[pdn,Yw,aA])}function Cb(n){return Pe(n),L(n,16)?new _u(u(n,16)):y4(n.Kc())}function fJ(n,e){return n&&n.equals?n.equals(e):x(n)===x(e)}function vi(n,e){return Y1(ewe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function lf(n,e){return Y1(twe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function BD(n,e){return Y1(iwe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hpe(n,e){var t;return t=(Jn(n),n).g,iV(!!t),Jn(e),t(e)}function _An(n,e){var t,i;return i=M4(n,e),t=n.a.fd(i),new zEn(n,t)}function lpe(n){return n.Db>>16!=6?null:u(dR(n),241)}function ape(n){if(n.p!=2)throw T(new Mu);return Se(n.f)&ui}function dpe(n){if(n.p!=2)throw T(new Mu);return Se(n.k)&ui}function E(n){return oe(n.a<n.c.c.length),n.b=n.a++,n.c.c[n.b]}function bpe(n,e){n.b=n.b|e.b,n.c=n.c|e.c,n.d=n.d|e.d,n.a=n.a|e.a}function wpe(n,e){var t;t=$(B(n.a.of((He(),iA)))),tzn(n,e,t)}function HAn(n,e){Ya.call(this,1,2,S(C(ye,1),_e,28,15,[n,e]))}function qAn(n,e,t){Wd.call(this,25),this.b=n,this.a=e,this.c=t}function yo(n){nt(),Wd.call(this,n),this.c=!1,this.a=!1}function gpe(n){return n.a==($4(),CA)&&mfe(n,OSe(n.g,n.b)),n.a}function $p(n){return n.d==($4(),CA)&&kfe(n,IIe(n.g,n.b)),n.d}function ppe(n,e){return i5(),n.c==e.c?bt(e.d,n.d):bt(e.c,n.c)}function mpe(n,e){return i5(),n.c==e.c?bt(e.d,n.d):bt(n.c,e.c)}function vpe(n,e){return i5(),n.c==e.c?bt(n.d,e.d):bt(n.c,e.c)}function kpe(n,e){return i5(),n.c==e.c?bt(n.d,e.d):bt(e.c,n.c)}function hJ(n,e){return aIn(n.a,e)?ZV(n.b,u(e,22).g,null):null}function ype(n){return nr(Ks(vc(to(n,32)),32),vc(to(n,32)))}function lJ(n){return n.b==null||n.b.length==0?"n_"+n.a:"n_"+n.b}function td(n){return n.c==null||n.c.length==0?"n_"+n.g:"n_"+n.c}function UAn(n,e){var t;for(t=n+"";t.length<e;)t="0"+t;return t}function jpe(n,e){var t;t=u(ee(n.g,e),60),nu(e.d,new KMn(n,t))}function Epe(n,e){var t,i;return t=XBn(n),i=XBn(e),t<i?-1:t>i?1:0}function GAn(n,e){var t,i;return t=s$(e),i=t,u(ee(n.c,i),17).a}function FD(n,e,t){var i;i=n.d[e.p],n.d[e.p]=n.d[t.p],n.d[t.p]=i}function Mpe(n,e,t){var i;n.n&&e&&t&&(i=new uvn,nn(n.e,i))}function _D(n,e){if(fi(n.a,e),e.d)throw T(new ec(nXn));e.d=n}function aJ(n,e){this.a=new Z,this.d=new Z,this.f=n,this.c=e}function zAn(){this.c=new ICn,this.a=new $Nn,this.b=new Xyn,lMn()}function XAn(){qp(),this.b=new de,this.a=new de,this.c=new Z}function VAn(n,e,t){this.d=n,this.j=e,this.e=t,this.o=-1,this.p=3}function WAn(n,e,t){this.d=n,this.k=e,this.f=t,this.o=-1,this.p=5}function JAn(n,e,t,i,r,c){aQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function QAn(n,e,t,i,r,c){dQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function YAn(n,e,t,i,r,c){OJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function ZAn(n,e,t,i,r,c){gQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function nLn(n,e,t,i,r,c){AJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function eLn(n,e,t,i,r,c){bQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function tLn(n,e,t,i,r,c){wQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function iLn(n,e,t,i,r,c){LJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function rLn(n,e,t,i){NE.call(this,t),this.b=n,this.c=e,this.d=i}function cLn(n,e){this.f=n,this.a=($4(),TA),this.c=TA,this.b=e}function uLn(n,e){this.g=n,this.d=($4(),CA),this.a=CA,this.b=e}function dJ(n,e){!n.c&&(n.c=new Bt(n,0)),HS(n.c,(at(),$9),e)}function Tpe(n,e){return oTe(n,e,L(e,102)&&(u(e,19).Bb&hr)!=0)}function Cpe(n,e){return FIn(vc(n.q.getTime()),vc(e.q.getTime()))}function oLn(n){return XN(n.e.Rd().gc()*n.c.Rd().gc(),16,new A8n(n))}function Spe(n){return!!n.u&&Pc(n.u.a).i!=0&&!(n.n&&Ox(n.n))}function Ppe(n){return!!n.a&&no(n.a.a).i!=0&&!(n.b&&Ax(n.b))}function bJ(n,e){return e==0?!!n.o&&n.o.f!=0:Mx(n,e)}function Ipe(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Hc(t)}function sLn(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Mc(t)}function fLn(n,e){var t;return t=1-e,n.a[t]=jC(n.a[t],t),jC(n,e)}function hLn(n,e){var t,i;return i=vi(n,mr),t=Ks(e,32),lf(t,i)}function lLn(n,e,t){var i;i=(Pe(n),new _u(n)),A7e(new EAn(i,e,t))}function Q7(n,e,t){var i;i=(Pe(n),new _u(n)),L7e(new MAn(i,e,t))}function fc(n,e,t,i,r,c){return Hxn(n,e,t,c),EY(n,i),MY(n,r),n}function aLn(n,e,t,i){return n.a+=""+qo(e==null?gu:Jr(e),t,i),n}function xi(n,e){this.a=n,zv.call(this,n),z0(e,n.gc()),this.b=e}function dLn(n){this.a=F(ki,Kn,1,JQ(y.Math.max(8,n))<<1,5,1)}function Y7(n){return u(Rf(n,F(Qh,b1,10,n.c.length,0,1)),199)}function hh(n){return u(Rf(n,F(O_,rB,18,n.c.length,0,1)),483)}function bLn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function J6(n){for(;n.d>0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function wLn(n){return oe(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function Ope(n,e,t){n.a=e,n.c=t,n.b.a.$b(),vo(n.d),I0(n.e.a.c,0)}function gLn(n,e){var t;n.e=new cz,t=aw(e),Yt(t,n.c),Oqn(n,t,0)}function ri(n,e,t,i){var r;r=new ZU,r.a=e,r.b=t,r.c=i,Re(n.a,r)}function Q(n,e,t,i){var r;r=new ZU,r.a=e,r.b=t,r.c=i,Re(n.b,r)}function pLn(n,e,t){if(n<0||e<n||e>t)throw T(new Or(qje(n,e,t)))}function Z7(n,e){if(n<0||n>=e)throw T(new Or(kEe(n,e)));return n}function Ape(n){if(!("stack"in n))try{throw n}catch{}return n}function Ig(n){return o6(),L(n.g,10)?u(n.g,10):null}function Lpe(n){return Sg(n).dc()?!1:(e1e(n,new Ir),!0)}function id(n){var e;return Vr(n)?(e=n,e==-0?0:e):X4e(n)}function mLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function vLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function kLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function wJ(n){var e;return X1(n),e=new Nbn,lg(n.a,new j9n(e)),e}function gJ(){var n,e,t;return e=(t=(n=new Jd,n),t),nn(nbn,e),e}function KT(n){var e;return X1(n),e=new Dbn,lg(n.a,new E9n(e)),e}function Npe(n,e){return n.a<=n.b?(e.Dd(n.a++),!0):!1}function yLn(n){I$.call(this,n,(K4(),n_),null,!1,null,!1)}function jLn(){jLn=R,PYn=Me((YE(),S(C(oon,1),G,489,0,[d_])))}function ELn(){ELn=R,eln=wOn(Y(1),Y(4)),nln=wOn(Y(1),Y(2))}function Dpe(n,e){return new _N(e,N6(Fi(e.e),n,n),(_n(),!0))}function BT(n){return new Gc((Mo(n,cK),oC(nr(nr(5,n),n/10|0))))}function $pe(n){return XN(n.e.Rd().gc()*n.c.Rd().gc(),273,new O8n(n))}function MLn(n){return u(Rf(n,F(RZn,LXn,12,n.c.length,0,1)),2042)}function xpe(n){return ko(),!fr(n)&&!(!fr(n)&&n.c.i.c==n.d.i.c)}function Rpe(n,e){return _p(),u(v(e,(lc(),A2)),17).a>=n.gc()}function Q6(n,e){vNe(e,n),WV(n.d),WV(u(v(n,(cn(),mO)),214))}function HD(n,e){kNe(e,n),JV(n.d),JV(u(v(n,(cn(),mO)),214))}function Kpe(n,e,t){n.d&&du(n.d.e,n),n.d=e,n.d&&bb(n.d.e,t,n)}function Bpe(n,e,t){return t.f.c.length>0?MW(n.a,e,t):MW(n.b,e,t)}function Fpe(n,e,t){var i;i=i9e();try{return Sae(n,e,t)}finally{L3e(i)}}function Sb(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.pe()),i}function Y6(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.se()),i}function N4(n,e){var t,i;return t=J0(n,e),i=null,t&&(i=t.se()),i}function bl(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=wnn(t)),i}function _pe(n,e,t){var i;return i=wm(t),RS(n.g,i,e),RS(n.i,e,t),e}function pJ(n,e,t){this.d=new $7n(this),this.e=n,this.i=e,this.f=t}function TLn(n,e,t,i){this.e=null,this.c=n,this.d=e,this.a=t,this.b=i}function CLn(n,e,t,i){ECn(this),this.c=n,this.e=e,this.f=t,this.b=i}function mJ(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function SLn(n,e,t,i){return L(t,59)?new iSn(n,e,t,i):new mW(n,e,t,i)}function D4(n){return L(n,16)?u(n,16).dc():!n.Kc().Ob()}function PLn(n){if(n.e.g!=n.b)throw T(new Ko);return!!n.c&&n.d>0}function be(n){return oe(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function vJ(n,e){Jn(e),$t(n.a,n.c,e),n.c=n.c+1&n.a.length-1,JBn(n)}function W1(n,e){Jn(e),n.b=n.b-1&n.a.length-1,$t(n.a,n.b,e),JBn(n)}function ILn(n){var e;e=n.Gh(),this.a=L(e,71)?u(e,71).Ii():e.Kc()}function Hpe(n){return new On(Sme(u(n.a.md(),16).gc(),n.a.ld()),16)}function OLn(){OLn=R,Gce=Me((eM(),S(C($1n,1),G,490,0,[Rq])))}function ALn(){ALn=R,Xce=Me((tM(),S(C(zce,1),G,558,0,[Kq])))}function LLn(){LLn=R,lue=Me((s6(),S(C(tan,1),G,539,0,[Hj])))}function qpe(){return dd(),S(C(Non,1),G,389,0,[Aw,Lon,P_,I_])}function Upe(){return K4(),S(C(lI,1),G,304,0,[n_,e_,t_,i_])}function Gpe(){return Vp(),S(C(EYn,1),G,332,0,[uj,cj,oj,sj])}function zpe(){return C5(),S(C(CYn,1),G,406,0,[fj,wI,gI,hj])}function Xpe(){return Db(),S(C(yYn,1),G,417,0,[rj,ij,l_,a_])}function Vpe(){return nm(),S(C(TZn,1),G,416,0,[r0,Ow,Iw,d2])}function Wpe(){return xf(),S(C(ene,1),G,421,0,[j3,lv,av,R_])}function Jpe(){return AC(),S(C(UZn,1),G,371,0,[x_,HI,qI,wj])}function Qpe(){return cw(),S(C(KH,1),G,203,0,[CO,RH,I2,P2])}function Ype(){return lh(),S(C(Hhn,1),G,284,0,[k1,_hn,_H,HH])}function Zpe(n){var e;return n.j==(en(),ae)&&(e=mHn(n),Su(e,Zn))}function n3e(n,e){var t;t=e.a,Zi(t,e.c.d),Oi(t,e.d.d),nw(t.a,n.n)}function kJ(n,e){var t;return t=u(Df(n.b,e),67),!t&&(t=new Mt),t}function xp(n){return o6(),L(n.g,154)?u(n.g,154):null}function e3e(n){n.a=null,n.e=null,I0(n.b.c,0),I0(n.f.c,0),n.c=null}function FT(){FT=R,sH=new Yz(qm,0),Jsn=new Yz("TOP_LEFT",1)}function Z6(){Z6=R,e9=new nX("UPPER",0),n9=new nX("LOWER",1)}function t3e(n,e){return vp(new V(e.e.a+e.f.a/2,e.e.b+e.f.b/2),n)}function NLn(n,e){return u(ho(_0(u(ot(n.k,e),15).Oc(),w2)),113)}function DLn(n,e){return u(ho(Sp(u(ot(n.k,e),15).Oc(),w2)),113)}function i3e(){return Qp(),S(C(rln,1),G,405,0,[NO,t9,i9,r9])}function r3e(){return b5(),S(C(xln,1),G,353,0,[lq,KO,hq,fq])}function c3e(){return sS(),S(C(c1n,1),G,354,0,[jq,i1n,r1n,t1n])}function u3e(){return go(),S(C(P9,1),G,386,0,[rE,Gd,iE,Qw])}function o3e(){return Co(),S(C(Yue,1),G,291,0,[nE,nl,Sa,Zj])}function s3e(){return El(),S(C(lU,1),G,223,0,[hU,Yj,Bv,R3])}function f3e(){return qC(),S(C(Mdn,1),G,320,0,[bU,ydn,Edn,jdn])}function h3e(){return NC(),S(C(woe,1),G,415,0,[wU,Cdn,Tdn,Sdn])}function l3e(n){return $T(),Zc(kU,n)?u(ee(kU,n),341).Qg():null}function Uo(n,e,t){return e<0?hR(n,t):u(t,69).wk().Bk(n,n.hi(),e)}function a3e(n,e,t){var i;return i=wm(t),RS(n.j,i,e),Ve(n.k,e,t),e}function d3e(n,e,t){var i;return i=wm(t),RS(n.d,i,e),Ve(n.e,e,t),e}function $Ln(n){var e,t;return e=(K1(),t=new HA,t),n&&SS(e,n),e}function yJ(n){var e;return e=n.aj(n.i),n.i>0&&Oc(n.g,0,e,0,n.i),e}function xLn(n,e){var t;for(t=n.j.c.length;t<e;t++)nn(n.j,n.Ng())}function RLn(n,e,t,i){var r;return r=i[e.g][t.g],$(B(v(n.a,r)))}function KLn(n,e){iM();var t;return t=u(ee(yA,n),57),!t||t.fk(e)}function b3e(n){if(n.p!=1)throw T(new Mu);return Se(n.f)<<24>>24}function w3e(n){if(n.p!=1)throw T(new Mu);return Se(n.k)<<24>>24}function g3e(n){if(n.p!=7)throw T(new Mu);return Se(n.k)<<16>>16}function p3e(n){if(n.p!=7)throw T(new Mu);return Se(n.f)<<16>>16}function Og(n,e){return e.e==0||n.e==0?P8:(Sm(),vR(n,e))}function BLn(n,e){return x(e)===x(n)?"(this Map)":e==null?gu:Jr(e)}function m3e(n,e,t){return tD(B(Fr(wr(n.f,e))),B(Fr(wr(n.f,t))))}function v3e(n,e,t){var i;i=u(ee(n.g,t),60),nn(n.a.c,new bi(e,i))}function FLn(n,e,t){n.i=0,n.e=0,e!=t&&(jRn(n,e,t),yRn(n,e,t))}function k3e(n,e,t,i,r){var c;c=yTe(r,t,i),nn(e,dEe(r,c)),rje(n,r,e)}function jJ(n,e,t,i,r){this.i=n,this.a=e,this.e=t,this.j=i,this.f=r}function _Ln(n,e){ZW.call(this),this.a=n,this.b=e,nn(this.a.b,this)}function HLn(n){this.b=new de,this.c=new de,this.d=new de,this.a=n}function qLn(n,e){var t;return t=new fg,n.Gd(t),t.a+="..",e.Hd(t),t.a}function ULn(n,e){var t;for(t=e;t;)ab(n,t.i,t.j),t=St(t);return n}function GLn(n,e,t){var i;return i=wm(t),Ve(n.b,i,e),Ve(n.c,e,t),e}function wl(n){var e;for(e=0;n.Ob();)n.Pb(),e=nr(e,1);return oC(e)}function Rh(n,e){dr();var t;return t=u(n,69).vk(),kje(t,e),t.xl(e)}function y3e(n,e,t){if(t){var i=t.oe();n.a[e]=i(t)}else delete n.a[e]}function EJ(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+ha),H5(n,t)}function j3e(n,e){return u(e==null?Fr(wr(n.f,null)):a6(n.i,e),288)}function MJ(n,e){return n==(Vn(),zt)&&e==zt?4:n==zt||e==zt?8:32}function _T(n,e,t){return BS(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function E3e(n,e,t){return Am(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function M3e(n,e,t){return bTe(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function TJ(n){n.b!=n.c&&(n.a=F(ki,Kn,1,8,5,1),n.b=0,n.c=0)}function n5(n){return oe(n.a<n.c.a.length),n.b=n.a,i$n(n),n.c.b[n.b]}function Pc(n){return n.n||(Zu(n),n.n=new mIn(n,jr,n),Hr(n)),n.n}function zLn(n){if(n<0)throw T(new Bjn("Negative array size: "+n))}function qD(n,e,t){if(t){var i=t.oe();t=i(t)}else t=void 0;n.a[e]=t}function XLn(n,e){cm();var t;return t=n.j.g-e.j.g,t!=0?t:0}function T3e(n,e){return fl(),ve(H(n.a),e)}function C3e(n,e){return fl(),ve(H(n.a),e)}function gl(n,e){dh(),Ya.call(this,n,1,S(C(ye,1),_e,28,15,[e]))}function X0(n,e){nt(),Wd.call(this,n),this.a=e,this.c=-1,this.b=-1}function V0(n,e,t,i){VAn.call(this,1,t,i),this.c=n,this.b=e}function UD(n,e,t,i){WAn.call(this,1,t,i),this.c=n,this.b=e}function GD(n,e,t,i,r,c,s){k$.call(this,e,i,r,c,s),this.c=n,this.a=t}function rd(n,e,t){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e,this.d=t}function zD(n){this.e=n,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function CJ(n){this.d=n,this.b=this.d.a.entries(),this.a=this.b.next()}function VLn(n){this.c=n,this.a=u(gs(n),156),this.b=this.a.jk().wi()}function Ql(){de.call(this),sSn(this),this.d.b=this.d,this.d.a=this.d}function xt(n,e,t,i){var r;r=new AA,r.c=e,r.b=t,r.a=i,i.b=t.a=r,++n.b}function S3e(n,e){var t;return t=e!=null?Dc(n,e):Fr(wr(n.f,e)),IM(t)}function P3e(n,e){var t;return t=e!=null?Dc(n,e):Fr(wr(n.f,e)),IM(t)}function Wr(n,e){var t;return e.b.Kb(GDn(n,e.c.Xe(),(t=new S9n(e),t)))}function I3e(n,e){var t;return zLn(e),t=n.slice(0,e),t.length=e,o$(t,n)}function WLn(n,e){var t;for(t=0;t<e;++t)$t(n,t,new jG(u(n[t],44)))}function O3e(n,e){var t;for(t=n.d-1;t>=0&&n.a[t]===e[t];t--);return t<0}function HT(n){var e;return n?new sW(n):(e=new rh,S$(e,n),e)}function A3e(n,e){var t,i;i=!1;do t=lRn(n,e),i=i|t;while(t);return i}function L3e(n){n&&rme((lz(),sun)),--cI,n&&uI!=-1&&(Ele(uI),uI=-1)}function qT(n){ZZ(),NCn(this,Se(vi(wb(n,24),YS)),Se(vi(n,YS)))}function JLn(){JLn=R,HQn=Me((YC(),S(C(Kun,1),G,436,0,[u_,Run])))}function QLn(){QLn=R,qQn=Me((cC(),S(C(Fun,1),G,435,0,[Bun,o_])))}function YLn(){YLn=R,GYn=Me((uC(),S(C(bon,1),G,432,0,[m_,vI])))}function ZLn(){ZLn=R,_Zn=Me((V4(),S(C(FZn,1),G,517,0,[dj,L_])))}function nNn(){nNn=R,Sne=Me((FT(),S(C(Qsn,1),G,429,0,[sH,Jsn])))}function eNn(){eNn=R,gne=Me((wk(),S(C($sn,1),G,428,0,[WI,Dsn])))}function tNn(){tNn=R,kne=Me((sk(),S(C(Ksn,1),G,488,0,[Rsn,QI])))}function iNn(){iNn=R,rie=Me((dk(),S(C(qhn,1),G,430,0,[qH,UH])))}function rNn(){rNn=R,Lie=Me((Z6(),S(C(Aie,1),G,531,0,[e9,n9])))}function cNn(){cNn=R,ane=Me((QT(),S(C(Ssn,1),G,431,0,[Csn,X_])))}function uNn(){uNn=R,xre=Me((RT(),S(C(Kln,1),G,433,0,[aq,Rln])))}function oNn(){oNn=R,_re=Me((yC(),S(C(Bln,1),G,501,0,[BO,N2])))}function sNn(){sNn=R,Bie=Me((fh(),S(C(Kie,1),G,523,0,[m0,y1])))}function fNn(){fNn=R,_ie=Me((If(),S(C(Fie,1),G,522,0,[Bd,Xf])))}function hNn(){hNn=R,tre=Me((af(),S(C(ere,1),G,528,0,[zw,Ea])))}function lNn(){lNn=R,fre=Me((Tb(),S(C(sre,1),G,465,0,[Ma,O2])))}function aNn(){aNn=R,Ure=Me((ZT(),S(C(_ln,1),G,434,0,[Fln,mq])))}function dNn(){dNn=R,Bce=Me((GT(),S(C(P1n,1),G,491,0,[Dq,S1n])))}function bNn(){bNn=R,_ce=Me((D$(),S(C(D1n,1),G,492,0,[L1n,N1n])))}function wNn(){wNn=R,Vce=Me((ik(),S(C(x1n,1),G,438,0,[Bq,JO])))}function gNn(){gNn=R,aue=Me((Tk(),S(C(ran,1),G,437,0,[YO,ian])))}function pNn(){pNn=R,aoe=Me((BN(),S(C(dA,1),G,347,0,[vdn,kdn])))}function N3e(){return ci(),S(C(y9,1),G,88,0,[Jf,Xr,Kr,Wf,us])}function D3e(){return en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])}function $3e(n,e,t){return u(e==null?Vc(n.f,null,t):$b(n.i,e,t),288)}function x3e(n){return(n.k==(Vn(),zt)||n.k==Zt)&&kt(n,(W(),B8))}function XD(n){return n.c&&n.d?lJ(n.c)+"->"+lJ(n.d):"e_"+lb(n)}function qi(n,e){var t,i;for(Jn(e),i=n.Kc();i.Ob();)t=i.Pb(),e.Cd(t)}function R3e(n,e){var t;t=new sp,nd(t,"x",e.a),nd(t,"y",e.b),Op(n,t)}function K3e(n,e){var t;t=new sp,nd(t,"x",e.a),nd(t,"y",e.b),Op(n,t)}function mNn(n,e){var t;for(t=e;t;)ab(n,-t.i,-t.j),t=St(t);return n}function SJ(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function Go(n,e,t){var i;return i=(Nn(e,n.c.length),n.c[e]),n.c[e]=t,i}function PJ(n,e,t){n.a.c.length=0,fAe(n,e,t),n.a.c.length==0||RPe(n,e)}function nk(n){n.i=0,u7(n.b,null),u7(n.c,null),n.a=null,n.e=null,++n.g}function UT(){UT=R,Uf=!0,LQn=!1,NQn=!1,$Qn=!1,DQn=!1}function VD(n){UT(),!Uf&&(this.c=n,this.e=!0,this.a=new Z)}function vNn(n,e){this.c=0,this.b=e,HTn.call(this,n,17493),this.a=this.c}function kNn(n){jzn(),Pyn(this),this.a=new Mt,oY(this,n),Re(this.a,n)}function yNn(){pN(this),this.b=new V(Pt,Pt),this.a=new V(li,li)}function GT(){GT=R,Dq=new sX(rin,0),S1n=new sX("TARGET_WIDTH",1)}function Ag(n,e){return(ta(n),s4(new Cn(n,new eQ(e,n.a)))).Bd(v3)}function B3e(){return Vi(),S(C(Oon,1),G,367,0,[Vs,Jh,Ac,Fc,zr])}function F3e(){return ow(),S(C(ine,1),G,375,0,[gj,zI,XI,GI,UI])}function _3e(){return o1(),S(C(Nsn,1),G,348,0,[W_,Lsn,J_,pv,gv])}function H3e(){return T5(),S(C($hn,1),G,323,0,[Dhn,BH,FH,W8,J8])}function q3e(){return Yo(),S(C(hfn,1),G,171,0,[Ej,_8,ya,H8,xw])}function U3e(){return wS(),S(C(Hre,1),G,368,0,[gq,dq,pq,bq,wq])}function G3e(){return x5(),S(C(Hce,1),G,373,0,[D2,L3,d9,a9,_j])}function z3e(){return Jk(),S(C(F1n,1),G,324,0,[R1n,Fq,B1n,_q,K1n])}function X3e(){return pf(),S(C(Zh,1),G,170,0,[xn,pi,Ih,Fd,E1])}function V3e(){return Kg(),S(C(T9,1),G,256,0,[Pa,eE,adn,M9,ddn])}function W3e(n){return HE(),function(){return Fpe(n,this,arguments)}}function fr(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function IJ(n,e){return L(e,143)?Sn(n.c,u(e,143).c):!1}function Zu(n){return n.t||(n.t=new myn(n),v5(new Djn(n),0,n.t)),n.t}function jNn(n){this.b=n,ne.call(this,n),this.a=u(Un(this.b.a,4),129)}function ENn(n){this.b=n,yp.call(this,n),this.a=u(Un(this.b.a,4),129)}function Bs(n,e,t,i,r){NNn.call(this,e,i,r),this.c=n,this.b=t}function OJ(n,e,t,i,r){VAn.call(this,e,i,r),this.c=n,this.a=t}function AJ(n,e,t,i,r){WAn.call(this,e,i,r),this.c=n,this.a=t}function LJ(n,e,t,i,r){NNn.call(this,e,i,r),this.c=n,this.a=t}function WD(n,e){var t;return t=u(Df(n.d,e),23),t||u(Df(n.e,e),23)}function MNn(n,e){var t,i;return t=e.ld(),i=n.Fe(t),!!i&&mc(i.e,e.md())}function TNn(n,e){var t;return t=e.ld(),new ib(t,n.e.pc(t,u(e.md(),16)))}function J3e(n,e){var t;return t=n.a.get(e),t??F(ki,Kn,1,0,5,1)}function CNn(n){var e;return e=n.length,Sn(Yn.substr(Yn.length-e,e),n)}function fe(n){if(pe(n))return n.c=n.a,n.a.Pb();throw T(new nc)}function NJ(n,e){return e==0||n.e==0?n:e>0?wqn(n,e):BKn(n,-e)}function Rp(n,e){return e==0||n.e==0?n:e>0?BKn(n,e):wqn(n,-e)}function DJ(n){ole.call(this,n==null?gu:Jr(n),L(n,82)?u(n,82):null)}function SNn(n){var e;return n.c||(e=n.r,L(e,90)&&(n.c=u(e,29))),n.c}function JD(n){var e;return e=new Eb,Ur(e,n),U(e,(cn(),Rr),null),e}function PNn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Vn(),Zt)&&t.k==Zt}function QD(n){var e,t,i;return e=n&ro,t=n>>22&ro,i=n<0?Ol:0,Yc(e,t,i)}function Q3e(n){var e,t,i,r;for(t=n,i=0,r=t.length;i<r;++i)e=t[i],X6(e)}function Y3e(n,e){var t,i;t=u(o5e(n.c,e),16),t&&(i=t.gc(),t.$b(),n.d-=i)}function YD(n,e,t){var i;return i=n.Ih(e),i>=0?n.Lh(i,t,!0):Hb(n,e,t)}function Z3e(n,e,t){return bt(vp(pm(n),Fi(e.b)),vp(pm(n),Fi(t.b)))}function n4e(n,e,t){return bt(vp(pm(n),Fi(e.e)),vp(pm(n),Fi(t.e)))}function e4e(n,e){return y.Math.min(J1(e.a,n.d.d.c),J1(e.b,n.d.d.c))}function ek(n,e){n._i(n.i+1),O6(n,n.i,n.Zi(n.i,e)),n.Mi(n.i++,e),n.Ni()}function e5(n){var e,t;++n.j,e=n.g,t=n.i,n.g=null,n.i=0,n.Oi(t,e),n.Ni()}function INn(n,e,t){var i;i=new NX(n.a),s5(i,n.a.a),Vc(i.f,e,t),n.a.a=i}function $J(n,e,t,i){var r;for(r=0;r<dI;r++)hT(n.a[r][e.g],t,i[e.g])}function xJ(n,e,t,i){var r;for(r=0;r<f_;r++)lT(n.a[e.g][r],t,i[e.g])}function ot(n,e){var t;return t=u(n.c.xc(e),16),!t&&(t=n.ic(e)),n.pc(e,t)}function t4e(n){var e;return e=(Pe(n),n?new _u(n):y4(n.Kc())),Yk(e),RC(e)}function Af(n){var e,t;return Pe(n),e=Zwe(n.length),t=new Gc(e),nY(t,n),t}function ZD(n,e,t,i){var r;return r=F(ye,_e,28,e,15,1),Eye(r,n,e,t,i),r}function RJ(n,e){if(n<0||n>e)throw T(new Or(Mnn(n,e,"index")));return n}function Yl(n,e){var t;return t=(Nn(e,n.c.length),n.c[e]),Pz(n.c,e,1),t}function KJ(n,e){var t,i;return t=(Jn(n),n),i=(Jn(e),e),t==i?0:t<i?-1:1}function BJ(n){var e;return e=n.e+n.f,isNaN(e)&&GM(n.d)?n.d:e}function i4e(n){return n.e=3,n.d=n.Yb(),n.e!=2?(n.e=0,!0):!1}function pl(n,e){return n.a?Be(n.a,n.b):n.a=new mo(n.d),C6(n.a,e),n}function Kp(n,e){return Si(e)?e==null?_nn(n.f,null):Gxn(n.i,e):_nn(n.f,e)}function ONn(n,e){_Tn.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function ANn(n,e){HTn.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function FJ(n,e){OM.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function LNn(n,e,t){NE.call(this,t),this.b=n,this.c=e,this.d=(gx(),TU)}function NNn(n,e,t){this.d=n,this.k=e?1:0,this.f=t?1:0,this.o=-1,this.p=0}function Lf(n){this.c=n,this.a=new M(this.c.a),this.b=new M(this.c.b)}function zT(){this.e=new Z,this.c=new Z,this.d=new Z,this.b=new Z}function DNn(){this.g=new GG,this.b=new GG,this.a=new Z,this.k=new Z}function $Nn(){this.a=new WG,this.b=new ejn,this.d=new cwn,this.e=new lwn}function xNn(n,e,t){this.a=n,this.c=e,this.d=t,nn(e.e,this),nn(t.b,this)}function _J(n,e,t){var i,r;for(i=0,r=0;r<e.length;r++)i+=n.tg(e[r],i,t)}function r4e(n,e){var t;return t=EAe(n,e),n.b=new EC(t.c.length),HOe(n,t)}function c4e(n,e){var t;t=n.q.getHours()+(e/60|0),n.q.setMinutes(e),H5(n,t)}function n$(n){var e;return e=n.b,e.b==0?null:u(Zo(e,0),65).b}function HJ(n){if(n.a){if(n.e)return HJ(n.e)}else return n;return null}function u4e(n,e){return n.p<e.p?1:n.p>e.p?-1:0}function RNn(n){var e;return n.a||(e=n.r,L(e,156)&&(n.a=u(e,156))),n.a}function o4e(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].gd(t),136),i.md()}function s4e(n){var e,t;return e=n.ld(),t=u(n.md(),16),D7(t.Nc(),new N8n(e))}function KNn(n,e){return Zc(n.a,e)?(Kp(n.a,e),!0):!1}function Bp(n,e,t){return Z7(e,n.e.Rd().gc()),Z7(t,n.c.Rd().gc()),n.a[e][t]}function XT(n,e,t){this.a=n,this.b=e,this.c=t,nn(n.t,this),nn(e.i,this)}function VT(n,e,t,i){this.f=n,this.e=e,this.d=t,this.b=i,this.c=i?i.d:null}function tk(){this.b=new Mt,this.a=new Mt,this.b=new Mt,this.a=new Mt}function $4(){$4=R;var n,e;TA=(o4(),e=new xE,e),CA=(n=new fL,n)}function f4e(n){var e;return ta(n),e=new OPn(n,n.a.e,n.a.d|4),new cV(n,e)}function BNn(n){var e;for(X1(n),e=0;n.a.Bd(new Wbn);)e=nr(e,1);return e}function WT(n,e){return Jn(e),n.c<n.d?(n.Se(e,n.c++),!0):!1}function Gc(n){pN(this),x7(n>=0,"Initial capacity must not be negative")}function JT(){JT=R,b9=new lt("org.eclipse.elk.labels.labelManager")}function FNn(){FNn=R,ysn=new Lt("separateLayerConnections",(AC(),x_))}function af(){af=R,zw=new iX("REGULAR",0),Ea=new iX("CRITICAL",1)}function ik(){ik=R,Bq=new hX("FIXED",0),JO=new hX("CENTER_NODE",1)}function QT(){QT=R,Csn=new Wz("QUADRATIC",0),X_=new Wz("SCANLINE",1)}function _Nn(){_Nn=R,dne=Me((c5(),S(C(Isn,1),G,322,0,[$8,pj,Psn])))}function HNn(){HNn=R,bne=Me((bC(),S(C(Asn,1),G,351,0,[Osn,VI,V_])))}function qNn(){qNn=R,fne=Me((Lb(),S(C(K_,1),G,372,0,[u0,va,c0])))}function UNn(){UNn=R,mne=Me((hd(),S(C(pne,1),G,460,0,[Q_,mv,m2])))}function GNn(){GNn=R,Mne=Me((Z4(),S(C(oH,1),G,299,0,[cH,uH,mj])))}function zNn(){zNn=R,Cne=Me((vl(),S(C(Tne,1),G,311,0,[vj,k2,E3])))}function XNn(){XNn=R,Zte=Me((w5(),S(C(Nhn,1),G,390,0,[xH,Lhn,TO])))}function VNn(){VNn=R,oie=Me((PC(),S(C(zhn,1),G,387,0,[Uhn,GH,Ghn])))}function WNn(){WNn=R,sie=Me((a5(),S(C(Xhn,1),G,349,0,[XH,zH,Oj])))}function JNn(){JNn=R,uie=Me((gr(),S(C(cie,1),G,463,0,[Q8,Vu,Jc])))}function QNn(){QNn=R,fie=Me((om(),S(C(Whn,1),G,350,0,[VH,Vhn,Y8])))}function YNn(){YNn=R,hie=Me((dC(),S(C(Yhn,1),G,352,0,[Qhn,WH,Jhn])))}function ZNn(){ZNn=R,lie=Me((LC(),S(C(Zhn,1),G,388,0,[JH,Av,Gw])))}function nDn(){nDn=R,are=Me((d5(),S(C(gln,1),G,392,0,[wln,ZH,Nj])))}function eDn(){eDn=R,Gre=Me((Ik(),S(C(Uln,1),G,393,0,[FO,Hln,qln])))}function tDn(){tDn=R,ace=Me((SC(),S(C(s1n,1),G,300,0,[Eq,o1n,u1n])))}function iDn(){iDn=R,dce=Me((XC(),S(C(f1n,1),G,445,0,[Kj,qO,Mq])))}function rDn(){rDn=R,wce=Me((rS(),S(C(bce,1),G,456,0,[Tq,Sq,Cq])))}function cDn(){cDn=R,mce=Me((_C(),S(C(a1n,1),G,394,0,[l1n,Oq,h1n])))}function uDn(){uDn=R,Fce=Me((nC(),S(C(A1n,1),G,439,0,[$q,O1n,I1n])))}function oDn(){oDn=R,Sie=Me((Ab(),S(C(Cie,1),G,464,0,[Aj,Z8,IO])))}function sDn(){sDn=R,WQn=Me((Uu(),S(C(VQn,1),G,471,0,[Th,pa,zs])))}function fDn(){fDn=R,XQn=Me((wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])))}function hDn(){hDn=R,QQn=Me((bu(),S(C(JQn,1),G,472,0,[kf,ma,Xs])))}function lDn(){lDn=R,xQn=Me((Gu(),S(C(xr,1),G,108,0,[xun,Yr,Sw])))}function aDn(){aDn=R,pZn=Me((t5(),S(C(Ion,1),G,391,0,[j_,y_,E_])))}function dDn(){dDn=R,Que=Me((jl(),S(C(ldn,1),G,346,0,[uA,T1,E9])))}function bDn(){bDn=R,Uce=Me(($k(),S(C(xq,1),G,444,0,[XO,VO,WO])))}function wDn(){wDn=R,Xue=Me(($f(),S(C(Zan,1),G,278,0,[Rv,Jw,Kv])))}function gDn(){gDn=R,loe=Me((Gp(),S(C(mdn,1),G,280,0,[pdn,Yw,aA])))}function Nf(n,e){return!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),wx(n.o,e)}function h4e(n,e){var t;n.C&&(t=u(Mr(n.b,e),127).n,t.d=n.C.d,t.a=n.C.a)}function qJ(n){var e,t,i,r;r=n.d,e=n.a,t=n.b,i=n.c,n.d=t,n.a=i,n.b=r,n.c=e}function l4e(n){return!n.g&&(n.g=new ME),!n.g.b&&(n.g.b=new byn(n)),n.g.b}function rk(n){return!n.g&&(n.g=new ME),!n.g.c&&(n.g.c=new pyn(n)),n.g.c}function a4e(n){return!n.g&&(n.g=new ME),!n.g.d&&(n.g.d=new wyn(n)),n.g.d}function d4e(n){return!n.g&&(n.g=new ME),!n.g.a&&(n.g.a=new gyn(n)),n.g.a}function b4e(n,e,t,i){return t&&(i=t.Rh(e,At(t.Dh(),n.c.uk()),null,i)),i}function w4e(n,e,t,i){return t&&(i=t.Th(e,At(t.Dh(),n.c.uk()),null,i)),i}function e$(n,e,t,i){var r;return r=F(ye,_e,28,e+1,15,1),vIe(r,n,e,t,i),r}function F(n,e,t,i,r,c){var s;return s=_Bn(r,i),r!=10&&S(C(n,c),e,t,r,s),s}function g4e(n,e,t){var i,r;for(r=new Y4(e,n),i=0;i<t;++i)iS(r);return r}function t$(n,e,t){var i,r;if(t!=null)for(i=0;i<e;++i)r=t[i],n.Qi(i,r)}function UJ(n,e){var t;return t=new LA,t.c=!0,t.d=e.md(),NGn(n,e.ld(),t)}function p4e(n,e){var t;t=n.q.getHours()+(e/3600|0),n.q.setSeconds(e),H5(n,t)}function GJ(n,e){var t,i;return t=e,i=CD(y4(new f$(n,t))),iT(new f$(n,t)),i}function m4e(n,e){e.Ug("Label management",1),IM(v(n,(JT(),b9))),e.Vg()}function v4e(n,e,t,i){NUn(n,e,t,Am(n,e,i,L(e,102)&&(u(e,19).Bb&hr)!=0))}function zJ(n,e,t){u(n.b,68),u(n.b,68),u(n.b,68),nu(n.a,new gPn(t,e,n))}function Ri(n,e,t){if(n<0||e>t||e<n)throw T(new wz(ZS+n+Stn+e+Mtn+t))}function i$(n){n?(this.c=n,this.b=null):(this.c=null,this.b=new Z)}function r$(n,e){oM.call(this,n,e),this.a=F(lDe,WS,447,2,0,1),this.b=!0}function XJ(n){wRn.call(this,n,0),sSn(this),this.d.b=this.d,this.d.a=this.d}function VJ(n){this.e=n,this.b=this.e.a.entries(),this.a=F(ki,Kn,1,0,5,1)}function pDn(){pDn=R,bie=Iu(Fe(new ii,(Vi(),Vs),(tr(),N_)),zr,bj)}function k4e(){return vS(),S(C(xsn,1),G,283,0,[Z_,Y_,eH,nH,tH,JI])}function y4e(){return Vk(),S(C(qsn,1),G,281,0,[YI,Fsn,Hsn,Bsn,_sn,iH])}function j4e(){return jm(),S(C(Wsn,1),G,282,0,[x8,Gsn,Vsn,Xsn,zsn,Usn])}function E4e(){return Yp(),S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2])}function M4e(){return Vn(),S(C(A_,1),G,273,0,[zt,Ti,Zt,_c,Sc,Gf])}function T4e(){return zu(),S(C(oA,1),G,279,0,[Oa,Rl,tE,S9,C9,K3])}function C4e(){return Ai(),S(C(bdn,1),G,101,0,[Ia,Qf,Fv,Ud,tl,qc])}function S4e(){return pS(),S(C(cdn,1),G,321,0,[aU,tdn,rdn,ndn,idn,edn])}function P4e(){return Bh(),S(C(fan,1),G,255,0,[Xq,qj,Uj,eA,ZO,nA])}function I4e(){return wd(),S(C(Qq,1),G,298,0,[Jq,m9,p9,Wq,w9,g9])}function WJ(n){var e;return!n.a&&n.b!=-1&&(e=n.c.Dh(),n.a=$n(e,n.b)),n.a}function ve(n,e){return n.Si()&&n.Hc(e)?!1:(n.Hi(e),!0)}function df(n,e){return G7(e,"Horizontal alignment cannot be null"),n.b=e,n}function mDn(n,e,t){nt();var i;return i=sa(n,e),t&&i&&Bwe(n)&&(i=null),i}function JJ(n,e,t){var i;i=n.b[t.c.p][t.p],i.b+=e.b,i.c+=e.c,i.a+=e.a,++i.a}function QJ(n,e,t){var i;n.d[e.g]=t,i=n.g.c,i[e.g]=y.Math.max(i[e.g],t+1)}function J1(n,e){var t,i;return t=n.a-e.a,i=n.b-e.b,y.Math.sqrt(t*t+i*i)}function YJ(n,e){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),36),sUn(n,t,0,0)}function Zl(n,e,t){var i,r;for(r=n.Kc();r.Ob();)i=u(r.Pb(),36),Pm(i,e,t)}function O4e(n){var e,t;for(t=ge(n.a,0);t.b!=t.d.c;)e=u(be(t),65),Ann(e)}function vDn(n,e){return kMn(n.e,e)||s1(n.e,e,new fBn(e)),u(Df(n.e,e),113)}function qu(n,e,t,i){return Jn(n),Jn(e),Jn(t),Jn(i),new CW(n,e,new Kbn)}function Ou(n,e,t,i){this.ak(),this.a=e,this.b=n,this.c=new yW(this,e,t,i)}function c$(n,e,t,i,r,c){mJ.call(this,e,i,r,c),this.c=n,this.b=t}function ck(n,e,t,i,r,c){mJ.call(this,e,i,r,c),this.c=n,this.a=t}function uk(n,e){var t,i,r;return r=n.r,i=n.d,t=G5(n,e,!0),t.b!=r||t.a!=i}function ok(n,e,t){var i,r;return r=(i=Tm(n.b,e),i),r?qS(hk(n,r),t):null}function A4e(n,e,t){var i,r,c;i=dl(n,t),r=null,i&&(r=wnn(i)),c=r,uBn(e,t,c)}function L4e(n,e,t){var i,r,c;i=dl(n,t),r=null,i&&(r=wnn(i)),c=r,uBn(e,t,c)}function x4(n,e){var t;return t=n.Ih(e),t>=0?n.Lh(t,!0,!0):Hb(n,e,!0)}function N4e(n,e,t){var i;return i=vRn(n,e,t),n.b=new EC(i.c.length),aen(n,i)}function D4e(n){if(n.b<=0)throw T(new nc);return--n.b,n.a-=n.c.c,Y(n.a)}function $4e(n){var e;if(!n.a)throw T(new IOn);return e=n.a,n.a=St(n.a),e}function x4e(n){for(;!n.a;)if(!ePn(n.c,new M9n(n)))return!1;return!0}function Fp(n){var e;return Pe(n),L(n,204)?(e=u(n,204),e):new _8n(n)}function R4e(n){YT(),u(n.of((He(),Ww)),181).Fc((zu(),tE)),n.qf(oU,null)}function YT(){YT=R,wue=new Emn,pue=new Mmn,gue=T6e((He(),oU),wue,Ca,pue)}function ZT(){ZT=R,Fln=new oX("LEAF_NUMBER",0),mq=new oX("NODE_SIZE",1)}function u$(n){n.a=F(ye,_e,28,n.b+1,15,1),n.c=F(ye,_e,28,n.b,15,1),n.d=0}function K4e(n,e){n.a.Ne(e.d,n.b)>0&&(nn(n.c,new UV(e.c,e.d,n.d)),n.b=e.d)}function ZJ(n,e){if(n.g==null||e>=n.i)throw T(new aN(e,n.i));return n.g[e]}function kDn(n,e,t){if(rm(n,t),t!=null&&!n.fk(t))throw T(new uL);return t}function o$(n,e){return bk(e)!=10&&S(wo(e),e.Sm,e.__elementTypeId$,bk(e),n),n}function R4(n,e,t,i){var r;i=(jb(),i||Iun),r=n.slice(e,t),Tnn(r,n,e,t,-e,i)}function zo(n,e,t,i,r){return e<0?Hb(n,t,i):u(t,69).wk().yk(n,n.hi(),e,i,r)}function B4e(n,e){return bt($(B(v(n,(W(),f0)))),$(B(v(e,f0))))}function yDn(){yDn=R,OQn=Me((K4(),S(C(lI,1),G,304,0,[n_,e_,t_,i_])))}function K4(){K4=R,n_=new uM("All",0),e_=new lCn,t_=new kCn,i_=new hCn}function Uu(){Uu=R,Th=new RL(s3,0),pa=new RL(qm,1),zs=new RL(f3,2)}function jDn(){jDn=R,FS(),sbn=Pt,mse=li,fbn=new z9(Pt),vse=new z9(li)}function EDn(){EDn=R,jYn=Me((Db(),S(C(yYn,1),G,417,0,[rj,ij,l_,a_])))}function MDn(){MDn=R,SYn=Me((C5(),S(C(CYn,1),G,406,0,[fj,wI,gI,hj])))}function TDn(){TDn=R,MYn=Me((Vp(),S(C(EYn,1),G,332,0,[uj,cj,oj,sj])))}function CDn(){CDn=R,LZn=Me((dd(),S(C(Non,1),G,389,0,[Aw,Lon,P_,I_])))}function SDn(){SDn=R,CZn=Me((nm(),S(C(TZn,1),G,416,0,[r0,Ow,Iw,d2])))}function PDn(){PDn=R,tne=Me((xf(),S(C(ene,1),G,421,0,[j3,lv,av,R_])))}function IDn(){IDn=R,GZn=Me((AC(),S(C(UZn,1),G,371,0,[x_,HI,qI,wj])))}function ODn(){ODn=R,nie=Me((cw(),S(C(KH,1),G,203,0,[CO,RH,I2,P2])))}function ADn(){ADn=R,iie=Me((lh(),S(C(Hhn,1),G,284,0,[k1,_hn,_H,HH])))}function sk(){sk=R,Rsn=new Qz(kh,0),QI=new Qz("IMPROVE_STRAIGHTNESS",1)}function LDn(n,e){var t,i;return i=e/n.c.Rd().gc()|0,t=e%n.c.Rd().gc(),Bp(n,i,t)}function NDn(n){var e;if(n.nl())for(e=n.i-1;e>=0;--e)N(n,e);return yJ(n)}function nQ(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function DDn(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[1];)t=e;return t}function F4e(n){return L(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function _4e(n){return L(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function $Dn(n,e){if(e.a)throw T(new ec(nXn));fi(n.a,e),e.a=n,!n.j&&(n.j=e)}function eQ(n,e){OM.call(this,e.zd(),e.yd()&-16449),Jn(n),this.a=n,this.c=e}function H4e(n,e){return new _N(e,ab(Fi(e.e),e.f.a+n,e.f.b+n),(_n(),!1))}function q4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function U4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function xDn(){xDn=R,lce=Me((sS(),S(C(c1n,1),G,354,0,[jq,i1n,r1n,t1n])))}function RDn(){RDn=R,$re=Me((b5(),S(C(xln,1),G,353,0,[lq,KO,hq,fq])))}function KDn(){KDn=R,hre=Me((Qp(),S(C(rln,1),G,405,0,[NO,t9,i9,r9])))}function BDn(){BDn=R,Vue=Me((El(),S(C(lU,1),G,223,0,[hU,Yj,Bv,R3])))}function FDn(){FDn=R,Zue=Me((Co(),S(C(Yue,1),G,291,0,[nE,nl,Sa,Zj])))}function _Dn(){_Dn=R,foe=Me((go(),S(C(P9,1),G,386,0,[rE,Gd,iE,Qw])))}function HDn(){HDn=R,doe=Me((qC(),S(C(Mdn,1),G,320,0,[bU,ydn,Edn,jdn])))}function qDn(){qDn=R,goe=Me((NC(),S(C(woe,1),G,415,0,[wU,Cdn,Tdn,Sdn])))}function nC(){nC=R,$q=new oN(mVn,0),O1n=new oN(Ern,1),I1n=new oN(kh,2)}function W0(n,e,t,i,r){return Jn(n),Jn(e),Jn(t),Jn(i),Jn(r),new CW(n,e,i)}function UDn(n,e){var t;return t=u(Kp(n.e,e),400),t?(eW(t),t.e):null}function du(n,e){var t;return t=qr(n,e,0),t==-1?!1:(Yl(n,t),!0)}function GDn(n,e,t){var i;return X1(n),i=new NA,i.a=e,n.a.Nb(new CMn(i,t)),i.a}function G4e(n){var e;return X1(n),e=F(Ii,Cr,28,0,15,1),lg(n.a,new y9n(e)),e}function tQ(n){var e;if(!E$(n))throw T(new nc);return n.e=1,e=n.d,n.d=null,e}function n1(n){var e;return Vr(n)&&(e=0-n,!isNaN(e))?e:Y1(tm(n))}function qr(n,e,t){for(;t<n.c.length;++t)if(mc(e,n.c[t]))return t;return-1}function s$(n){var e,t;return t=u(sn(n.j,0),12),e=u(v(t,(W(),st)),12),e}function f$(n,e){var t;this.f=n,this.b=e,t=u(ee(n.b,e),260),this.c=t?t.b:null}function zDn(){Rs(),this.b=new de,this.f=new de,this.g=new de,this.e=new de}function eC(n){xM(this),this.g=n?OT(n,n.ie()):null,this.f=n,TT(this),this.je()}function h$(n){var e;e=n.jj(),e!=null&&n.d!=-1&&u(e,94).xh(n),n.i&&n.i.oj()}function fk(n){var e;for(e=n.p+1;e<n.c.a.c.length;++e)--u(sn(n.c.a,e),10).p}function XDn(n){R0(!!n.c),RN(n.f.g,n.d),n.c.Qb(),n.c=null,n.b=UQ(n),n.d=n.f.g}function no(n){return n.b||(n.b=new vIn(n,jr,n),!n.a&&(n.a=new I7(n,n))),n.b}function hk(n,e){var t,i;return t=u(e,690),i=t.xi(),!i&&t.Ai(i=new RTn(n,e)),i}function Nr(n,e){var t,i;return t=u(e,692),i=t.$k(),!i&&t.cl(i=new uLn(n,e)),i}function iQ(n,e){o6();var t,i;return t=xp(n),i=xp(e),!!t&&!!i&&!pBn(t.k,i.k)}function tC(n,e){return mc(e,sn(n.f,0))||mc(e,sn(n.f,1))||mc(e,sn(n.f,2))}function lk(n,e){if(e<0)throw T(new Or(LVn+e));return xLn(n,e+1),sn(n.j,e)}function VDn(n,e,t,i){if(!n)throw T(new Gn(B5(e,S(C(ki,1),Kn,1,5,[t,i]))))}function ml(n,e,t,i,r,c,s){k$.call(this,e,i,r,c,s),this.c=n,this.b=t}function Kh(n,e,t){var i,r;for(i=10,r=0;r<t-1;r++)e<i&&(n.a+="0"),i*=10;n.a+=e}function iC(n){var e,t;return t=n.length,e=F(fs,gh,28,t,15,1),qIn(n,0,t,e,0),e}function ak(n){eIn();var e,t;return e=n+128,t=bun[e],!t&&(t=bun[e]=new u9n(n)),t}function WDn(n){return RN(n.d.a.e.g,n.b),oe(n.c!=n.d.a.d),n.a=n.c,n.c=n.c.a,n.a}function z4e(n){switch(n.g){case 0:return et;case 1:return-1;default:return 0}}function X4e(n){return AZ(n,(B4(),aun))<0?-I1e(tm(n)):n.l+n.m*o3+n.h*vd}function JDn(n){(this.q?this.q:(Ln(),Ln(),Wh)).Ac(n.q?n.q:(Ln(),Ln(),Wh))}function V4e(n,e){Ep(u(u(n.f,27).of((He(),v9)),101))&&e8e(mD(u(n.f,27)),e)}function l$(n,e){var t;return t=At(n.d,e),t>=0?tS(n,t,!0,!0):Hb(n,e,!0)}function rQ(n){var e;return e=cd(Un(n,32)),e==null&&(iu(n),e=cd(Un(n,32))),e}function cQ(n){var e;return n.Oh()||(e=se(n.Dh())-n.ji(),n.$h().Mk(e)),n.zh()}function QDn(n,e){con=new kE,TYn=e,O8=n,u(O8.b,68),zJ(O8,con,null),aGn(O8)}function t5(){t5=R,j_=new BL("XY",0),y_=new BL("X",1),E_=new BL("Y",2)}function bu(){bu=R,kf=new KL("TOP",0),ma=new KL(qm,1),Xs=new KL(xtn,2)}function vl(){vl=R,vj=new GL(kh,0),k2=new GL("TOP",1),E3=new GL(xtn,2)}function dk(){dk=R,qH=new Zz("INPUT_ORDER",0),UH=new Zz("PORT_DEGREE",1)}function B4(){B4=R,hun=Yc(ro,ro,524287),bQn=Yc(0,0,Cy),lun=QD(1),QD(2),aun=QD(0)}function a$(n){var e;return n.d!=n.r&&(e=gs(n),n.e=!!e&&e.lk()==bJn,n.d=e),n.e}function d$(n,e,t){var i;return i=n.g[e],O6(n,e,n.Zi(e,t)),n.Ri(e,t,i),n.Ni(),i}function rC(n,e){var t;return t=n.dd(e),t>=0?(n.gd(t),!0):!1}function b$(n,e){var t;for(Pe(n),Pe(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function Df(n,e){var t;return t=u(ee(n.e,e),400),t?(LCn(n,t),t.e):null}function YDn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function J0(n,e){var t=n.a[e],i=(F$(),VF)[typeof t];return i?i(t):bY(typeof t)}function rc(n,e){var t,i;return ta(n),i=new FJ(e,n.a),t=new rPn(i),new Cn(n,t)}function w$(n){var e;return e=n.b.c.length==0?null:sn(n.b,0),e!=null&&T$(n,0),e}function W4e(n,e){var t,i,r;r=e.c.i,t=u(ee(n.f,r),60),i=t.d.c-t.e.c,RQ(e.a,i,0)}function uQ(n,e){var t;for(++n.d,++n.c[e],t=e+1;t<n.a.length;)++n.a[t],t+=t&-t}function ZDn(n,e,t,i){nt(),Wd.call(this,26),this.c=n,this.a=e,this.d=t,this.b=i}function n$n(n,e){for(;e[0]<n.length&&ih(` \r
`,wu(Xi(n,e[0])))>=0;)++e[0]}function J4e(n,e){eu(n,e==null||GM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Q4e(n,e){tu(n,e==null||GM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Y4e(n,e){Ob(n,e==null||GM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Z4e(n,e){Ib(n,e==null||GM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function nme(n,e,t){return vp(new V(t.e.a+t.f.a/2,t.e.b+t.f.b/2),n)==(Jn(e),e)}function eme(n,e){return L(e,102)&&u(e,19).Bb&hr?new dN(e,n):new Y4(e,n)}function tme(n,e){return L(e,102)&&u(e,19).Bb&hr?new dN(e,n):new Y4(e,n)}function bk(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function e$n(n,e){return e==(xN(),xN(),SQn)?n.toLocaleLowerCase():n.toLowerCase()}function t$n(n){if(!n.e)throw T(new nc);return n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function oQ(n){if(!n.c)throw T(new nc);return n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function i$n(n){var e;for(++n.a,e=n.c.a.length;n.a<e;++n.a)if(n.c.b[n.a])return}function ime(n){var e,t;if(n.a){t=null;do e=n.a,n.a=null,t=d_n(e,t);while(n.a);n.a=t}}function rme(n){var e,t;if(n.b){t=null;do e=n.b,n.b=null,t=d_n(e,t);while(n.b);n.b=t}}function cme(n,e){var t;for(t=0;n.e!=n.i.gc();)I0e(e,ue(n),Y(t)),t!=et&&++t}function ume(n,e){var t;return t=xb(n.e.c,e.e.c),t==0?bt(n.e.d,e.e.d):t}function ome(n,e){var t,i;for(i=e.c,t=i+1;t<=e.f;t++)n.a[t]>n.a[i]&&(i=t);return i}function r$n(n){var e;return e=u(v(n,(W(),o0)),313),e?e.a==n:!1}function c$n(n){var e;return e=u(v(n,(W(),o0)),313),e?e.i==n:!1}function u$n(){u$n=R,yZn=Me((Vi(),S(C(Oon,1),G,367,0,[Vs,Jh,Ac,Fc,zr])))}function o$n(){o$n=R,rne=Me((ow(),S(C(ine,1),G,375,0,[gj,zI,XI,GI,UI])))}function s$n(){s$n=R,wne=Me((o1(),S(C(Nsn,1),G,348,0,[W_,Lsn,J_,pv,gv])))}function f$n(){f$n=R,eie=Me((T5(),S(C($hn,1),G,323,0,[Dhn,BH,FH,W8,J8])))}function h$n(){h$n=R,Pne=Me((Yo(),S(C(hfn,1),G,171,0,[Ej,_8,ya,H8,xw])))}function l$n(){l$n=R,qre=Me((wS(),S(C(Hre,1),G,368,0,[gq,dq,pq,bq,wq])))}function a$n(){a$n=R,qce=Me((x5(),S(C(Hce,1),G,373,0,[D2,L3,d9,a9,_j])))}function d$n(){d$n=R,Wce=Me((Jk(),S(C(F1n,1),G,324,0,[R1n,Fq,B1n,_q,K1n])))}function b$n(){b$n=R,zue=Me((ci(),S(C(y9,1),G,88,0,[Jf,Xr,Kr,Wf,us])))}function w$n(){w$n=R,mue=Me((pf(),S(C(Zh,1),G,170,0,[xn,pi,Ih,Fd,E1])))}function g$n(){g$n=R,eoe=Me((Kg(),S(C(T9,1),G,256,0,[Pa,eE,adn,M9,ddn])))}function p$n(){p$n=R,roe=Me((en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])))}function cC(){cC=R,Bun=new qz("BY_SIZE",0),o_=new qz("BY_SIZE_AND_SHAPE",1)}function uC(){uC=R,m_=new zz("EADES",0),vI=new zz("FRUCHTERMAN_REINGOLD",1)}function wk(){wk=R,WI=new Jz("READING_DIRECTION",0),Dsn=new Jz("ROTATION",1)}function i5(){i5=R,IZn=new rwn,OZn=new own,SZn=new swn,PZn=new uwn,AZn=new fwn}function m$n(n){this.b=new Z,this.a=new Z,this.c=new Z,this.d=new Z,this.e=n}function v$n(n){this.g=n,this.f=new Z,this.a=y.Math.min(this.g.c.c,this.g.d.c)}function k$n(n,e,t){qM.call(this),hQ(this),this.a=n,this.c=t,this.b=e.d,this.f=e.e}function sme(n,e,t){var i,r;for(r=new M(t);r.a<r.c.c.length;)i=E(r),VZ(n,e,i)}function bf(n,e,t){var i;if(e==null)throw T(new rp);return i=dl(n,e),y3e(n,e,t),i}function g$(n,e){var t;return t=u(ee(n.a,e),137),t||(t=new xA,Ve(n.a,e,t)),t}function $n(n,e){var t;return t=(n.i==null&&bh(n),n.i),e>=0&&e<t.length?t[e]:null}function fme(n,e){var t;return t=e>0?e-1:e,eEn($he(U$n(QV(new op,t),n.n),n.j),n.k)}function Dr(n){var e,t;t=(e=new hL,e),ve((!n.q&&(n.q=new q(Ps,n,11,10)),n.q),t)}function sQ(n){return(n.i&2?"interface ":n.i&1?"":"class ")+(ll(n),n.o)}function oC(n){return Ec(n,et)>0?et:Ec(n,Wi)<0?Wi:Se(n)}function Q0(n){return n<3?(Mo(n,$zn),n+1):n<W5?wi(n/.75+1):et}function y$n(n,e){return Jn(e),vW(n),n.d.Ob()?(e.Cd(n.d.Pb()),!0):!1}function hme(n,e){var t,i;return t=u(tw(n.d,e),16),t?(i=e,n.e.pc(i,t)):null}function lme(n,e,t,i){var r;n.j=-1,Knn(n,gnn(n,e,t),(dr(),r=u(e,69).vk(),r.xl(i)))}function ame(n,e){return _p(),-jc(u(v(n,(lc(),A2)),17).a,u(v(e,A2),17).a)}function j$n(n,e){return!!o5(n,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))))}function dme(){return Mm(),S(C(kA,1),G,245,0,[vU,mA,vA,pA,mU,gA,wA,pU])}function bme(){return l1(),S(C(vue,1),G,285,0,[uan,yi,Zr,$2,Qi,It,N3,Vf])}function wme(){return LS(),S(C(Tsn,1),G,276,0,[F_,q_,B_,z_,H_,__,G_,U_])}function gme(n){var e;return e=$(B(v(n,(cn(),m1)))),e<0&&(e=0,U(n,m1,e)),e}function sC(n,e){var t,i;for(i=n.Kc();i.Ob();)t=u(i.Pb(),72),U(t,(W(),S3),e)}function pme(n,e,t){var i;i=y.Math.max(0,n.b/2-.5),I5(t,i,1),nn(e,new IMn(t,i))}function mme(n,e,t){var i;return i=n.a.e[u(e.a,10).p]-n.a.e[u(t.a,10).p],wi(K7(i))}function fC(n,e){var t;return ta(n),t=new KOn(n,n.a.zd(),n.a.yd()|4,e),new Cn(n,t)}function p$(n){var e;R0(!!n.c),e=n.c.a,Xo(n.d,n.c),n.b==n.c?n.b=e:--n.a,n.c=null}function E$n(n){return n.a>=-.01&&n.a<=_f&&(n.a=0),n.b>=-.01&&n.b<=_f&&(n.b=0),n}function Lg(n){Vg();var e,t;for(t=Crn,e=0;e<n.length;e++)n[e]>t&&(t=n[e]);return t}function M$n(n,e){var t;if(t=oy(n.Dh(),e),!t)throw T(new Gn(ba+e+sF));return t}function Y0(n,e){var t;for(t=n;St(t);)if(t=St(t),t==e)return!0;return!1}function vme(n,e){var t,i,r;for(i=e.a.ld(),t=u(e.a.md(),16).gc(),r=0;r<t;r++)n.Cd(i)}function nu(n,e){var t,i,r,c;for(Jn(e),i=n.c,r=0,c=i.length;r<c;++r)t=i[r],e.Cd(t)}function T$n(n,e,t,i,r,c){var s;s=JD(i),Zi(s,r),Oi(s,c),In(n.a,i,new zM(s,e,t.f))}function C$n(n,e){ht(n,(_h(),Iq),e.f),ht(n,pce,e.e),ht(n,Pq,e.d),ht(n,gce,e.c)}function S$n(n,e){this.a=new de,this.e=new de,this.b=(w5(),TO),this.c=n,this.b=e}function P$n(n){this.d=n,this.c=n.c.vc().Kc(),this.b=null,this.a=null,this.e=(BE(),GF)}function Xo(n,e){var t;return t=e.c,e.a.b=e.b,e.b.a=e.a,e.a=e.b=null,e.c=null,--n.b,t}function kme(n,e){return e&&n.b[e.g]==e?($t(n.b,e.g,null),--n.c,!0):!1}function yme(n,e){if(0>n||n>e)throw T(new gz("fromIndex: 0, toIndex: "+n+Mtn+e))}function Pb(n){if(n<0)throw T(new Gn("Illegal Capacity: "+n));this.g=this.aj(n)}function fQ(n,e){return Cf(),Fs(fa),y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)}function m$(n,e){var t,i,r,c;for(i=n.d,r=0,c=i.length;r<c;++r)t=i[r],Sf(n.g,t).a=e}function jme(n,e,t){var i,r,c;for(r=e[t],i=0;i<r.length;i++)c=r[i],n.e[c.c.p][c.p]=i}function Eme(n){var e;for(e=0;e<n.c.length;e++)(Nn(e,n.c.length),u(n.c[e],12)).p=e}function Mme(n){var e,t;for(e=n.a.d.j,t=n.c.d.j;e!=t;)_s(n.b,e),e=BC(e);_s(n.b,e)}function Tme(n){var e;return e=y.Math.sqrt(n.a*n.a+n.b*n.b),e>0&&(n.a/=e,n.b/=e),n}function jo(n){var e;return n.w?n.w:(e=lpe(n),e&&!e.Vh()&&(n.w=e),e)}function F4(n,e){var t,i;i=n.a,t=w5e(n,e,null),i!=e&&!n.e&&(t=Dm(n,e,t)),t&&t.oj()}function I$n(n,e,t){var i,r;i=e;do r=$(n.p[i.p])+t,n.p[i.p]=r,i=n.a[i.p];while(i!=e)}function O$n(n,e,t){var i=function(){return n.apply(i,arguments)};return e.apply(i,t),i}function Cme(n){var e;return n==null?null:(e=u(n,195),Kye(e,e.length))}function N(n,e){if(n.g==null||e>=n.i)throw T(new aN(e,n.i));return n.Wi(e,n.g[e])}function Sme(n,e){Ln();var t,i;for(i=new Z,t=0;t<n;++t)Fn(i.c,e);return new jL(i)}function A$n(n){return ta(n),Tp(!0,"n may not be negative"),new Cn(n,new uxn(n.a))}function hQ(n){n.b=(Uu(),pa),n.f=(bu(),ma),n.d=(Mo(2,mw),new Gc(2)),n.e=new Ni}function hC(n){this.b=(Pe(n),new _u(n)),this.a=new Z,this.d=new Z,this.e=new Ni}function wf(){wf=R,bc=new xL("BEGIN",0),Wc=new xL(qm,1),wc=new xL("END",2)}function $f(){$f=R,Rv=new fN(qm,0),Jw=new fN("HEAD",1),Kv=new fN("TAIL",2)}function _p(){_p=R,Kre=ah(ah(ah(h6(new ii,(Qp(),t9)),(F5(),YH)),sln),aln)}function kl(){kl=R,Fre=ah(ah(ah(h6(new ii,(Qp(),r9)),(F5(),hln)),cln),fln)}function L$n(){L$n=R,lne=Me((Yp(),S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2])))}function N$n(){N$n=R,vne=Me((vS(),S(C(xsn,1),G,283,0,[Z_,Y_,eH,nH,tH,JI])))}function D$n(){D$n=R,yne=Me((Vk(),S(C(qsn,1),G,281,0,[YI,Fsn,Hsn,Bsn,_sn,iH])))}function $$n(){$$n=R,jne=Me((jm(),S(C(Wsn,1),G,282,0,[x8,Gsn,Vsn,Xsn,zsn,Usn])))}function x$n(){x$n=R,xZn=Me((Vn(),S(C(A_,1),G,273,0,[zt,Ti,Zt,_c,Sc,Gf])))}function R$n(){R$n=R,yue=Me((Bh(),S(C(fan,1),G,255,0,[Xq,qj,Uj,eA,ZO,nA])))}function K$n(){K$n=R,Sue=Me((wd(),S(C(Qq,1),G,298,0,[Jq,m9,p9,Wq,w9,g9])))}function B$n(){B$n=R,Wue=Me((pS(),S(C(cdn,1),G,321,0,[aU,tdn,rdn,ndn,idn,edn])))}function F$n(){F$n=R,toe=Me((Ai(),S(C(bdn,1),G,101,0,[Ia,Qf,Fv,Ud,tl,qc])))}function _$n(){_$n=R,ioe=Me((zu(),S(C(oA,1),G,279,0,[Oa,Rl,tE,S9,C9,K3])))}function H$n(){H$n=R,dI=(wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])).length,f_=dI}function Pme(){return lw(),S(C(yr,1),G,95,0,[Qs,xl,Ys,nf,el,Ts,No,Zs,Ms])}function Ime(n,e){return ua(),jc(n.b.c.length-n.e.c.length,e.b.c.length-e.e.c.length)}function Ng(n,e){return Khe(u5(n,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))))}function lQ(n,e){return Cf(),Fs(fa),y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)}function lC(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,1,t,n.b))}function _4(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,3,t,n.b))}function Ib(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,3,t,n.f))}function Ob(n,e){var t;t=n.g,n.g=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,4,t,n.g))}function eu(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,5,t,n.i))}function tu(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,6,t,n.j))}function H4(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,1,t,n.j))}function q4(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,4,t,n.c))}function U4(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,2,t,n.k))}function aC(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,0,t,n.a))}function e1(n,e){var t;t=n.s,n.s=e,n.Db&4&&!(n.Db&1)&&it(n,new UD(n,4,t,n.s))}function Z0(n,e){var t;t=n.t,n.t=e,n.Db&4&&!(n.Db&1)&&it(n,new UD(n,5,t,n.t))}function v$(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&it(n,new UD(n,2,t,n.d))}function G4(n,e){var t;t=n.F,n.F=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,5,t,e))}function gk(n,e){var t;return t=u(ee((iM(),yA),n),57),t?t.gk(e):F(ki,Kn,1,e,5,1)}function Ome(n,e){var t;return t=mi(Fi(u(ee(n.g,e),8)),LX(u(ee(n.f,e),470).b)),t}function Ame(n,e){var t,i,r;return t=(i=(K1(),r=new nG,r),e&&uen(i,e),i),TQ(t,n),t}function yl(n,e){var t,i;return t=e in n.a,t&&(i=dl(n,e).re(),i)?i.a:null}function q$n(n,e,t){if(rm(n,t),!n.kl()&&t!=null&&!n.fk(t))throw T(new uL);return t}function U$n(n,e){return n.n=e,n.n?(n.f=new Z,n.e=new Z):(n.f=null,n.e=null),n}function G$n(n,e){if(n){e.n=n;var t=g2e(e);if(!t){rI[n]=[e];return}t.Rm=e}}function cd(n){var e;return x6(n==null||Array.isArray(n)&&(e=bk(n),!(e>=14&&e<=16))),n}function Ee(n,e){var t;return Jn(e),t=n[":"+e],x7(!!t,"Enum constant undefined: "+e),t}function we(n,e,t,i,r,c){var s;return s=bD(n,e),G$n(t,s),s.i=r?8:0,s.f=i,s.e=r,s.g=c,s}function aQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=n,this.a=t}function dQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=n,this.a=t}function bQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=n,this.a=t}function wQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=n,this.a=t}function gQ(n,e,t,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=n,this.a=t}function z$n(n,e){var t,i,r,c;for(i=e,r=0,c=i.length;r<c;++r)t=i[r],$Dn(n.a,t);return n}function Eo(n){var e,t,i,r;for(t=n,i=0,r=t.length;i<r;++i)e=t[i],Pe(e);return new cCn(n)}function pQ(n){var e;return e=mi(Fi(n.d.d),n.c.d),vm(e,n.c.e.a,n.c.e.b),tt(e,n.c.d)}function mQ(n){var e;return e=mi(Fi(n.c.d),n.d.d),vm(e,n.d.e.a,n.d.e.b),tt(e,n.d.d)}function Lme(n){var e=/function(?:\s+([\w$]+))?\s*\(/,t=e.exec(n);return t&&t[1]||uK}function Nme(n,e,t){var i,r;return r=n.length,i=y.Math.min(t,r),Rnn(n,0,e,0,i,!0),e}function X$n(n,e,t){var i,r;for(r=e.Kc();r.Ob();)i=u(r.Pb(),74),fi(n,u(t.Kb(i),27))}function Dme(n,e){Ep(u(v(u(n.e,10),(cn(),Ft)),101))&&(Ln(),Yt(u(n.e,10).j,e))}function $me(){return DS(),S(C(ton,1),G,257,0,[eon,Qun,Yun,Jun,s_,non,Zun,Wun,Vun])}function xme(){return a1(),S(C(Ahn,1),G,265,0,[$H,Phn,Ihn,DH,Shn,Ohn,MO,Iv,Ov])}function Ab(){Ab=R,Aj=new ZL("BARYCENTER",0),Z8=new ZL(qXn,1),IO=new ZL(UXn,2)}function dC(){dC=R,Qhn=new QL("NO",0),WH=new QL(rin,1),Jhn=new QL("LOOK_BACK",2)}function bC(){bC=R,Osn=new HL("ARD",0),VI=new HL("MSD",1),V_=new HL("MANUAL",2)}function gr(){gr=R,Q8=new XL(n8,0),Vu=new XL("INPUT",1),Jc=new XL("OUTPUT",2)}function z4(){return Gq||(Gq=new Jqn,Dg(Gq,S(C(a2,1),Kn,134,0,[new rG]))),Gq}function Fs(n){if(!(n>=0))throw T(new Gn("tolerance ("+n+") must be >= 0"));return n}function V$n(n,e){var t;return L(e,44)?n.c.Mc(e):(t=wx(n,e),VC(n,e),t)}function Tr(n,e,t){return ad(n,e),zc(n,t),e1(n,0),Z0(n,1),u1(n,!0),c1(n,!0),n}function pk(n,e){var t;if(t=n.gc(),e<0||e>t)throw T(new F0(e,t));return new SV(n,e)}function wC(n,e){n.b=y.Math.max(n.b,e.d),n.e+=e.r+(n.a.c.length==0?0:n.c),nn(n.a,e)}function W$n(n){R0(n.c>=0),_8e(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function gC(n){var e,t;for(t=n.c.Cc().Kc();t.Ob();)e=u(t.Pb(),16),e.$b();n.c.$b(),n.d=0}function Rme(n){var e,t,i,r;for(t=n.a,i=0,r=t.length;i<r;++i)e=t[i],HIn(e,e.length,null)}function r5(n,e){var t,i,r,c;for(i=e,r=0,c=i.length;r<c;++r)t=i[r],xt(n,t,n.c.b,n.c)}function J$n(n,e){var t,i;for(t=0,i=n.gc();t<i;++t)if(mc(e,n.Xb(t)))return t;return-1}function vQ(n){var e,t;if(n==0)return 32;for(t=0,e=1;!(e&n);e<<=1)++t;return t}function Mo(n,e){if(n<0)throw T(new Gn(e+" cannot be negative but was: "+n));return n}function Kme(n,e){typeof window===vy&&typeof window.$gwt===vy&&(window.$gwt[n]=e)}function pC(n,e){return Rhe(o5(n.a,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))))}function Bme(n,e,t){return W0(n,new m9n(e),new zbn,new v9n(t),S(C(xr,1),G,108,0,[]))}function Fme(){return io(),S(C(gdn,1),G,264,0,[_v,uE,sA,I9,fA,lA,hA,dU,cE])}function Q$n(){Q$n=R,wQn=S(C(ye,1),_e,28,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function c5(){c5=R,$8=new _L("LAYER_SWEEP",0),pj=new _L(sB,1),Psn=new _L(kh,2)}function kQ(){kQ=R,gie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)}function Y$n(){Y$n=R,pie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)}function yQ(){yQ=R,mie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)}function Z$n(){Z$n=R,vie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)}function nxn(){nxn=R,kie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)}function exn(){exn=R,yie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)}function txn(){txn=R,Mie=Iu(Fe(Fe(new ii,(Vi(),Ac),(tr(),DI)),Fc,II),zr,NI)}function _me(n){var e,t;for(t=new M(zBn(n));t.a<t.c.c.length;)e=u(E(t),695),e._f()}function Hme(){LEn();for(var n=BF,e=0;e<arguments.length;e++)n.push(arguments[e])}function ixn(n){Lz(),this.g=new de,this.f=new de,this.b=new de,this.c=new Mb,this.i=n}function jQ(){this.f=new Ni,this.d=new ZG,this.c=new Ni,this.a=new Z,this.b=new Z}function rxn(n,e,t,i){this.ak(),this.a=e,this.b=n,this.c=null,this.c=new ZSn(this,e,t,i)}function k$(n,e,t,i,r){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1,r||(this.o=-2-i-1)}function cxn(){RX.call(this),this.n=-1,this.g=null,this.i=null,this.j=null,this.Bb|=Gs}function uxn(n){OM.call(this,n.Ad(64)?OX(0,bs(n.zd(),1)):Ey,n.yd()),this.b=1,this.a=n}function qme(n,e){return _p(),u(v(e,(lc(),A2)),17).a<n.gc()&&u(v(e,A2),17).a>=0}function EQ(n,e){n.r>0&&n.c<n.r&&(n.c+=e,n.i&&n.i.d>0&&n.g!=0&&EQ(n.i,e/n.r*n.i.d))}function MQ(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,1,t,n.c))}function y$(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,4,t,n.c))}function X4(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,2,t,n.k))}function j$(n,e){var t;t=n.D,n.D=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,2,t,n.D))}function mC(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,8,t,n.f))}function vC(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,7,t,n.i))}function TQ(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,8,t,n.a))}function CQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,0,t,n.b))}function SQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,0,t,n.b))}function PQ(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,1,t,n.c))}function IQ(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,1,t,n.d))}function Ume(n,e,t){var i;n.b=e,n.a=t,i=(n.a&512)==512?new gjn:new iG,n.c=rSe(i,n.b,n.a)}function oxn(n,e){return Pl(n.e,e)?(dr(),a$(e)?new eT(e,n):new k7(e,n)):new $Tn(e,n)}function Gme(n){var e,t;return 0>n?new Az:(e=n+1,t=new vNn(e,n),new uV(null,t))}function zme(n,e){Ln();var t;return t=new ap(1),Si(n)?Lr(t,n,e):Vc(t.f,n,e),new eL(t)}function Xme(n,e){var t,i;return t=n.c,i=e.e[n.p],i>0?u(sn(t.a,i-1),10):null}function Vme(n,e){var t,i;return t=n.o+n.p,i=e.o+e.p,t<i?-1:t==i?0:1}function Wme(n){var e;return e=v(n,(W(),st)),L(e,167)?TKn(u(e,167)):null}function sxn(n){var e;return n=y.Math.max(n,2),e=JQ(n),n>e?(e<<=1,e>0?e:W5):e}function E$(n){switch(FX(n.e!=3),n.e){case 2:return!1;case 0:return!0}return i4e(n)}function fxn(n,e){var t;return L(e,8)?(t=u(e,8),n.a==t.a&&n.b==t.b):!1}function Jme(n,e){var t;t=new kE,u(e.b,68),u(e.b,68),u(e.b,68),nu(e.a,new RV(n,t,e))}function hxn(n,e){var t,i;for(i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),zk(n,t.ld(),t.md())}function OQ(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,11,t,n.d))}function kC(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,13,t,n.j))}function AQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,21,t,n.b))}function Qme(n,e){(UT(),Uf?null:e.c).length==0&&CSn(e,new RU),Lr(n.a,Uf?null:e.c,e)}function Yme(n,e){e.Ug("Hierarchical port constraint processing",1),g9e(n),xNe(n),e.Vg()}function Lb(){Lb=R,u0=new FL("START",0),va=new FL("MIDDLE",1),c0=new FL("END",2)}function yC(){yC=R,BO=new uX("P1_NODE_PLACEMENT",0),N2=new uX("P2_EDGE_ROUTING",1)}function Q1(){Q1=R,y3=new lt(Wtn),jI=new lt(TXn),L8=new lt(CXn),lj=new lt(SXn)}function Nb(n){var e;return RN(n.f.g,n.d),oe(n.b),n.c=n.a,e=u(n.a.Pb(),44),n.b=UQ(n),e}function LQ(n){var e;return n.b==null?(Gl(),Gl(),dE):(e=n.ul()?n.tl():n.sl(),e)}function lxn(n,e){var t;return t=e==null?-1:qr(n.b,e,0),t<0?!1:(T$(n,t),!0)}function _s(n,e){var t;return Jn(e),t=e.g,n.b[t]?!1:($t(n.b,t,e),++n.c,!0)}function jC(n,e){var t,i;return t=1-e,i=n.a[t],n.a[t]=i.a[e],i.a[e]=n,n.b=!0,i.b=!1,i}function Zme(n,e){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),272),n.b=!0,fi(n.e,t),t.b=n}function nve(n,e){var t,i;return t=u(v(n,(cn(),Hw)),8),i=u(v(e,Hw),8),bt(t.b,i.b)}function M$(n,e,t){var i,r,c;return c=e>>5,r=e&31,i=vi(U1(n.n[t][c],Se(Ks(r,1))),3),i}function axn(n,e,t){var i,r,c;for(c=n.a.length-1,r=n.b,i=0;i<t;r=r+1&c,++i)$t(e,i,n.a[r])}function T$(n,e){var t;t=Yl(n.b,n.b.c.length-1),e<n.b.c.length&&(Go(n.b,e,t),$_n(n,e))}function dxn(n,e){var t;return t=u(ee(n.c,e),467),t||(t=new Jyn,t.c=e,Ve(n.c,t.c,t)),t}function eve(n,e){var t,i;i=new Z,t=e;do Fn(i.c,t),t=u(ee(n.k,t),18);while(t);return i}function C$(n,e,t){var i;return i=new Z,fen(n,e,i,t,!0,!0),n.b=new EC(i.c.length),i}function ud(n,e){var t,i;for(t=n.Pc(),R4(t,0,t.length,e),i=0;i<t.length;i++)n.hd(i,t[i])}function NQ(n){var e,t;for(t=new ne(n);t.e!=t.i.gc();)e=u(ue(t),27),eu(e,0),tu(e,0)}function bxn(n){this.e=n,this.d=new zE(Q0(Cp(this.e).gc())),this.c=this.e.a,this.b=this.e.c}function EC(n){this.b=n,this.a=F(ye,_e,28,n+1,15,1),this.c=F(ye,_e,28,n,15,1),this.d=0}function wxn(n,e,t){S$n.call(this,e,t),this.d=F(Qh,b1,10,n.a.c.length,0,1),Rf(n.a,this.d)}function gxn(n,e,t){pJ.call(this,n,e,t),this.a=new de,this.b=new de,this.d=new q7n(this)}function pxn(n){lW.call(this),this.b=$(B(v(n,(cn(),Ws)))),this.a=u(v(n,$l),223)}function S$(n,e){var t;return L(e,16)?(t=u(e,16),n.Gc(t)):b$(n,u(Pe(e),20).Kc())}function tve(n,e){qt(ut(new Cn(null,new On(new qa(n.b),1)),new fTn(n,e)),new lTn(n,e))}function ive(n,e){e.Ug(HXn,1),qt(rc(new Cn(null,new On(n.b,16)),new Swn),new Pwn),e.Vg()}function mt(n){return Si(n)?t1(n):$0(n)?pp(n):D0(n)?PSn(n):gW(n)?n.Hb():fW(n)?lb(n):YW(n)}function mxn(n){var e,t;for(t=n.c.a.ec().Kc();t.Ob();)e=u(t.Pb(),219),efe(e,new RIn(e.f))}function DQ(n){var e,t;for(t=n.c.a.ec().Kc();t.Ob();)e=u(t.Pb(),219),tfe(e,new QFn(e.e))}function zc(n,e){var t;t=n.zb,n.zb=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,1,t,n.zb))}function MC(n,e){var t;t=n.xb,n.xb=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,3,t,n.xb))}function TC(n,e){var t;t=n.yb,n.yb=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,2,t,n.yb))}function Rt(n,e){var t,i;t=(i=new fL,i),t.n=e,ve((!n.s&&(n.s=new q(ku,n,21,17)),n.s),t)}function jt(n,e){var t,i;i=(t=new rV,t),i.n=e,ve((!n.s&&(n.s=new q(ku,n,21,17)),n.s),i)}function Ki(n,e){var t,i,r;for(Jn(e),t=!1,r=e.Kc();r.Ob();)i=r.Pb(),t=t|n.Fc(i);return t}function vxn(n){var e,t,i;for(e=0,i=n.Kc();i.Ob();)t=i.Pb(),e+=t!=null?mt(t):0,e=~~e;return e}function P$(n,e){var t=n.a,i=0;for(var r in t)t.hasOwnProperty(r)&&(e[i++]=r);return e}function kxn(n){var e;return n==0?"UTC":(n<0?(n=-n,e="UTC+"):e="UTC-",e+YDn(n))}function $Q(n){return n.a<54?n.f<0?-1:n.f>0?1:0:(!n.c&&(n.c=J7(vc(n.f))),n.c).e}function yxn(n,e){e?n.B==null&&(n.B=n.D,n.D=null):n.B!=null&&(n.D=n.B,n.B=null)}function rve(n,e){return nm(),n==r0&&e==Ow||n==Ow&&e==r0||n==d2&&e==Iw||n==Iw&&e==d2}function cve(n,e){return nm(),n==r0&&e==Iw||n==r0&&e==d2||n==Ow&&e==d2||n==Ow&&e==Iw}function jxn(n,e){return Cf(),Fs(_f),y.Math.abs(0-e)<=_f||e==0||isNaN(0)&&isNaN(e)?0:n/e}function Exn(n,e){return $(B(ho(Nk(_r(new Cn(null,new On(n.c.b,16)),new O7n(n)),e))))}function xQ(n,e){return $(B(ho(Nk(_r(new Cn(null,new On(n.c.b,16)),new I7n(n)),e))))}function uve(){return pr(),S(C(rH,1),G,259,0,[ZI,cs,R8,nO,yv,v2,K8,vv,kv,eO])}function ove(){return ps(),S(C(Fhn,1),G,243,0,[SO,Pj,Ij,Rhn,Khn,xhn,Bhn,PO,p0,Uw])}function sve(n,e){var t;e.Ug("General Compactor",1),t=d8e(u(z(n,(oa(),kq)),393)),t.Cg(n)}function fve(n,e){var t,i;return t=u(z(n,(oa(),_O)),17),i=u(z(e,_O),17),jc(t.a,i.a)}function RQ(n,e,t){var i,r;for(r=ge(n,0);r.b!=r.d.c;)i=u(be(r),8),i.a+=e,i.b+=t;return n}function u5(n,e,t){var i;for(i=n.b[t&n.f];i;i=i.b)if(t==i.a&&sh(e,i.g))return i;return null}function o5(n,e,t){var i;for(i=n.c[t&n.f];i;i=i.d)if(t==i.f&&sh(e,i.i))return i;return null}function hve(n,e,t){var i,r,c;for(i=0,r=0;r<t;r++)c=e[r],n[r]=c<<1|i,i=c>>>31;i!=0&&(n[t]=i)}function I$(n,e,t,i,r,c){var s;this.c=n,s=new Z,gZ(n,s,e,n.b,t,i,r,c),this.a=new xi(s,0)}function Mxn(){this.c=new XE(0),this.b=new XE(Trn),this.d=new XE(lVn),this.a=new XE(QK)}function Vo(n,e,t,i,r,c,s){je.call(this,n,e),this.d=t,this.e=i,this.c=r,this.b=c,this.a=Af(s)}function Ut(n,e,t,i,r,c,s,f,h,l,a,d,g){return I_n(n,e,t,i,r,c,s,f,h,l,a,d,g),sx(n,!1),n}function lve(n){return n.b.c.i.k==(Vn(),Zt)?u(v(n.b.c.i,(W(),st)),12):n.b.c}function Txn(n){return n.b.d.i.k==(Vn(),Zt)?u(v(n.b.d.i,(W(),st)),12):n.b.d}function ave(n){var e;return e=KT(n),ob(e.a,0)?(QE(),QE(),PQn):(QE(),new uSn(e.b))}function O$(n){var e;return e=wJ(n),ob(e.a,0)?(A0(),A0(),ZF):(A0(),new SN(e.b))}function A$(n){var e;return e=wJ(n),ob(e.a,0)?(A0(),A0(),ZF):(A0(),new SN(e.c))}function Cxn(n){switch(n.g){case 2:return en(),Wn;case 4:return en(),Zn;default:return n}}function Sxn(n){switch(n.g){case 1:return en(),ae;case 3:return en(),Xn;default:return n}}function Pxn(n){switch(n.g){case 0:return new hmn;case 1:return new lmn;default:return null}}function Hp(){Hp=R,$_=new Lt("edgelabelcenterednessanalysis.includelabel",(_n(),ga))}function KQ(){KQ=R,Tie=ah(WTn(Fe(Fe(new ii,(Vi(),Ac),(tr(),DI)),Fc,II),zr),NI)}function Ixn(){Ixn=R,Iie=ah(WTn(Fe(Fe(new ii,(Vi(),Ac),(tr(),DI)),Fc,II),zr),NI)}function L$(){L$=R,D9=new ljn,EU=S(C(ku,1),f2,179,0,[]),Joe=S(C(Ps,1),Ucn,62,0,[])}function V4(){V4=R,dj=new Xz("TO_INTERNAL_LTR",0),L_=new Xz("TO_INPUT_DIRECTION",1)}function Au(){Au=R,Bon=new wwn,Ron=new gwn,Kon=new pwn,xon=new mwn,Fon=new vwn,_on=new kwn}function dve(n,e){e.Ug(HXn,1),_Y(Qhe(new OE((u6(),new kD(n,!1,!1,new HU))))),e.Vg()}function bve(n,e,t){t.Ug("DFS Treeifying phase",1),A8e(n,e),ICe(n,e),n.a=null,n.b=null,t.Vg()}function mk(n,e){return _n(),Si(n)?KJ(n,Ae(e)):$0(n)?tD(n,B(e)):D0(n)?rwe(n,un(e)):n.Fd(e)}function s5(n,e){var t,i;for(Jn(e),i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),n.zc(t.ld(),t.md())}function wve(n,e,t){var i;for(i=t.Kc();i.Ob();)if(!_T(n,e,i.Pb()))return!1;return!0}function gve(n,e,t,i,r){var c;return t&&(c=At(e.Dh(),n.c),r=t.Rh(e,-1-(c==-1?i:c),null,r)),r}function pve(n,e,t,i,r){var c;return t&&(c=At(e.Dh(),n.c),r=t.Th(e,-1-(c==-1?i:c),null,r)),r}function Oxn(n){var e;if(n.b==-2){if(n.e==0)e=-1;else for(e=0;n.a[e]==0;e++);n.b=e}return n.b}function mve(n){if(Jn(n),n.length==0)throw T(new th("Zero length BigInteger"));MPe(this,n)}function BQ(n){this.i=n.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),n.Qc(this.g))}function Axn(n,e,t){this.g=n,this.d=e,this.e=t,this.a=new Z,OEe(this),Ln(),Yt(this.a,null)}function FQ(n,e){e.q=n,n.d=y.Math.max(n.d,e.r),n.b+=e.d+(n.a.c.length==0?0:n.c),nn(n.a,e)}function W4(n,e){var t,i,r,c;return r=n.c,t=n.c+n.b,c=n.d,i=n.d+n.a,e.a>r&&e.a<t&&e.b>c&&e.b<i}function nw(n,e){var t,i;for(i=ge(n,0);i.b!=i.d.c;)t=u(be(i),8),t.a+=e.a,t.b+=e.b;return n}function vve(n){var e,t,i;for(i=0,t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),30),e.p=i,++i}function kve(n){var e,t,i;return n.j==(en(),Xn)&&(e=mHn(n),t=Su(e,Zn),i=Su(e,Wn),i||i&&t)}function yve(n,e){var t;return t=enn(n),Lnn(new V(t.c,t.d),new V(t.b,t.a),n.Mf(),e,n.ag())}function _Q(n,e){var t;t=u(e,190),nd(t,"x",n.i),nd(t,"y",n.j),nd(t,dF,n.g),nd(t,aF,n.f)}function CC(n,e){var t;L(e,85)?(u(n.c,79).Gk(),t=u(e,85),hxn(n,t)):u(n.c,79).Wb(e)}function f5(n,e){var t,i;for(Jn(e),i=n.vc().Kc();i.Ob();)t=u(i.Pb(),44),e.Yd(t.ld(),t.md())}function jve(n,e){var t;for(Pe(e);n.Ob();)if(t=n.Pb(),!qQ(u(t,10)))return!1;return!0}function Eve(){var n;return r_||(r_=new Byn,n=new VD(""),Kle(n,(a4(),$un)),Qme(r_,n)),r_}function Lxn(n,e){return W0(new w9n(n),new g9n(e),new p9n(e),new Gbn,S(C(xr,1),G,108,0,[]))}function SC(){SC=R,Eq=new iN(kh,0),o1n=new iN("POLAR_COORDINATE",1),u1n=new iN("ID",2)}function PC(){PC=R,Uhn=new VL("EQUALLY",0),GH=new VL(eP,1),Ghn=new VL("NORTH_SOUTH",2)}function J4(){J4=R,A8=new Lt("debugSVG",(_n(),!1)),uon=new Lt("overlapsExisted",!0)}function Nxn(){Nxn=R,kue=Me((l1(),S(C(vue,1),G,285,0,[uan,yi,Zr,$2,Qi,It,N3,Vf])))}function Dxn(){Dxn=R,Ioe=Me((Mm(),S(C(kA,1),G,245,0,[vU,mA,vA,pA,mU,gA,wA,pU])))}function $xn(){$xn=R,hne=Me((LS(),S(C(Tsn,1),G,276,0,[F_,q_,B_,z_,H_,__,G_,U_])))}function xxn(){return F5(),S(C(CDe,1),G,262,0,[YH,sln,aln,dln,lln,oln,bln,cln,hln,fln,uln])}function od(n,e,t){var i,r;return r=u($6(n.d,e),17),i=u($6(n.b,t),17),!r||!i?null:Bp(n,r.a,i.a)}function Rxn(n,e){var t;return t=CR(z4(),n),t?(ht(e,(He(),q2),t),!0):!1}function Kxn(n){return K0(),n.A.Hc((go(),Qw))&&!n.B.Hc((io(),uE))?DKn(n):null}function Bxn(){this.a=u(rn((Us(),kI)),17).a,this.c=$(B(rn(yI))),this.b=$(B(rn(v_)))}function sd(n){this.f=n,this.e=new CJ(this.f.i),this.a=this.e,this.b=UQ(this),this.d=this.f.g}function Bt(n,e){QM.call(this,Qoe,n,e),this.b=this,this.a=ru(n.Dh(),$n(this.e.Dh(),this.c))}function Mve(n,e){var t,i;for(i=new M(e.b);i.a<i.c.c.length;)t=u(E(i),30),n.a[t.p]=ije(t)}function To(n,e){var t;for(t=0;t<e.j.c.length;t++)u(lk(n,t),21).Gc(u(lk(e,t),16));return n}function N$(n,e,t,i){var r;r=n.a.length,t>r?t=r:zn(e,t+1),n.a=qo(n.a,0,e)+(""+i)+DW(n.a,t)}function Fxn(n,e){n.a=nr(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d=nr(n.d,e)}function Tve(n,e){return e<n.b.gc()?u(n.b.Xb(e),10):e==n.b.gc()?n.a:u(sn(n.e,e-n.b.gc()-1),10)}function Cve(n,e,t){return bt(vp(pm(n),new V(e.e.a,e.e.b)),vp(pm(n),new V(t.e.a,t.e.b)))}function Sve(n,e,t){return n==(Ab(),IO)?new Wpn:to(e,1)!=0?new jz(t.length):new Wjn(t.length)}function it(n,e){var t,i,r;if(t=n.th(),t!=null&&n.wh())for(i=0,r=t.length;i<r;++i)t[i].dj(e)}function Pve(n,e){var t,i,r;for(t=n.c.Xe(),r=e.Kc();r.Ob();)i=r.Pb(),n.a.Yd(t,i);return n.b.Kb(t)}function Q4(n,e){var t,i;for(t=n,i=Hi(t).e;i;){if(t=i,t==e)return!0;i=Hi(t).e}return!1}function Y1(n){var e;return e=n.h,e==0?n.l+n.m*o3:e==Ol?n.l+n.m*o3-vd:n}function Ive(n,e,t){var i,r;return i=n.a.f[e.p],r=n.a.f[t.p],i<r?-1:i==r?0:1}function Ove(n,e){var t,i;for(i=new M(e);i.a<i.c.c.length;)t=u(E(i),72),nn(n.d,t),Yye(n,t)}function Ave(n,e){var t;e.Ug("Edge and layer constraint edge reversal",1),t=FSe(n),pLe(t),e.Vg()}function Lve(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)t=u(ue(i),27),Bo(t,t.i+e.b,t.j+e.d)}function _xn(n){var e;n.d==null?(++n.e,n.f=0,ZRn(null)):(++n.e,e=n.d,n.d=null,n.f=0,ZRn(e))}function Nve(n){var e;if(n.a==n.b.a)throw T(new nc);return e=n.a,n.c=e,n.a=u(as(n.a.e),227),e}function Un(n,e){var t;return n.Db&e?(t=Bx(n,e),t==-1?n.Eb:cd(n.Eb)[t]):null}function hc(n,e){var t,i;return t=(i=new cG,i),t.G=e,!n.rb&&(n.rb=new H0(n,Mf,n)),ve(n.rb,t),t}function Je(n,e){var t,i;return t=(i=new xE,i),t.G=e,!n.rb&&(n.rb=new H0(n,Mf,n)),ve(n.rb,t),t}function Hxn(n,e,t,i){L(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,t),e&&JEe(n,e),i&&n.gl(!0)}function qxn(n,e){n.c&&(cUn(n,e,!0),qt(new Cn(null,new On(e,16)),new x7n(n))),cUn(n,e,!1)}function Dve(n){wCn();var e;return vMn(QH,n)||(e=new T3n,e.a=n,gV(QH,n,e)),u(Mr(QH,n),645)}function IC(n){var e;if(n.g>1||n.Ob())return++n.a,n.g=0,e=n.i,n.Ob(),e;throw T(new nc)}function Uxn(n){switch(n.a.g){case 1:return new WMn;case 3:return new WBn;default:return new s8n}}function HQ(n,e){switch(e){case 1:return!!n.n&&n.n.i!=0;case 2:return n.k!=null}return bJ(n,e)}function vc(n){return Sy<n&&n<vd?n<0?y.Math.ceil(n):y.Math.floor(n):Y1(sCe(n))}function vk(n){var e;return n<128?(tIn(),e=gun[n],!e&&(e=gun[n]=new yG(n)),e):new yG(n)}function $ve(n,e){var t;try{e.de()}catch(i){if(i=Ot(i),L(i,82))t=i,Fn(n.c,t);else throw T(i)}}function ds(n){var e,t,i,r;return r=n,i=0,r<0&&(r+=vd,i=Ol),t=wi(r/o3),e=wi(r-t*o3),Yc(e,t,i)}function kk(n){var e,t,i;for(i=0,t=new dp(n.a);t.a<t.c.a.length;)e=n5(t),n.b.Hc(e)&&++i;return i}function xve(n){var e,t,i;for(e=1,i=n.Kc();i.Ob();)t=i.Pb(),e=31*e+(t==null?0:mt(t)),e=~~e;return e}function Ur(n,e){var t;return e&&(t=e.nf(),t.dc()||(n.q?s5(n.q,t):n.q=new BTn(t))),n}function Gxn(n,e){var t;return t=n.a.get(e),t===void 0?++n.d:(Iae(n.a,e),--n.c,++n.b.g),t}function Rve(n,e){var t,i,r;return t=e.p-n.p,t==0?(i=n.f.a*n.f.b,r=e.f.a*e.f.b,bt(i,r)):t}function Kve(n,e){var t,i;return t=n.j,i=e.j,t!=i?t.g-i.g:n.p==e.p?0:t==(en(),Xn)?n.p-e.p:e.p-n.p}function h5(n,e,t,i,r){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i),$t(n.b[e.g],t.g,r),$t(n.b[t.g],e.g,r)}function fd(n,e,t){this.b=(Jn(n),n),this.d=(Jn(e),e),this.e=(Jn(t),t),this.c=this.d+(""+this.e)}function Y4(n,e){this.b=n,this.e=e,this.d=e.j,this.f=(dr(),u(n,69).xk()),this.k=ru(e.e.Dh(),n)}function yk(n){this.n=new Z,this.e=new Mt,this.j=new Mt,this.k=new Z,this.f=new Z,this.p=n}function zxn(n){n.r=new ni,n.w=new ni,n.t=new Z,n.i=new Z,n.d=new ni,n.a=new mp,n.c=new de}function Db(){Db=R,rj=new sM("UP",0),ij=new sM(_K,1),l_=new sM(s3,2),a_=new sM(f3,3)}function Z4(){Z4=R,cH=new UL("ONE_SIDED",0),uH=new UL("TWO_SIDED",1),mj=new UL("OFF",2)}function D$(){D$=R,L1n=new fX("EQUAL_BETWEEN_STRUCTURES",0),N1n=new fX("TO_ASPECT_RATIO",1)}function Xxn(){Xxn=R,Yte=Me((a1(),S(C(Ahn,1),G,265,0,[$H,Phn,Ihn,DH,Shn,Ohn,MO,Iv,Ov])))}function Vxn(){Vxn=R,hoe=Me((io(),S(C(gdn,1),G,264,0,[_v,uE,sA,I9,fA,lA,hA,dU,cE])))}function Wxn(){Wxn=R,noe=Me((lw(),S(C(yr,1),G,95,0,[Qs,xl,Ys,nf,el,Ts,No,Zs,Ms])))}function Jxn(){Jxn=R,UQn=Me((DS(),S(C(ton,1),G,257,0,[eon,Qun,Yun,Jun,s_,non,Zun,Wun,Vun])))}function qQ(n){var e;return e=u(v(n,(W(),gc)),64),n.k==(Vn(),Zt)&&(e==(en(),Wn)||e==Zn)}function Bve(n,e,t){var i,r;r=u(v(n,(cn(),Rr)),75),r&&(i=new Tu,J$(i,0,r),nw(i,t),Ki(e,i))}function OC(n,e,t){var i,r,c,s;s=Hi(n),i=s.d,r=s.c,c=n.n,e&&(c.a=c.a-i.b-r.a),t&&(c.b=c.b-i.d-r.b)}function Fve(n,e){var t,i;return t=n.f.c.length,i=e.f.c.length,t<i?-1:t==i?0:1}function _ve(n){return n.b.c.length!=0&&u(sn(n.b,0),72).a?u(sn(n.b,0),72).a:vD(n)}function Hve(n){var e;if(n){if(e=n,e.dc())throw T(new nc);return e.Xb(e.gc()-1)}return DAn(n.Kc())}function Qxn(n){var e;return Ec(n,0)<0&&(n=VV(n)),e=Se(U1(n,32)),64-(e!=0?iy(e):iy(Se(n))+32)}function qve(){return UT(),Uf?new VD(null):wHn(Eve(),"com.google.common.base.Strings")}function $$(n,e,t,i){return t==1?(!n.n&&(n.n=new q(Sr,n,1,7)),cr(n.n,e,i)):fnn(n,e,t,i)}function jk(n,e){var t,i;return i=(t=new UA,t),zc(i,e),ve((!n.A&&(n.A=new Cu(fu,n,7)),n.A),i),i}function Uve(n,e,t){var i,r,c,s;return c=null,s=e,r=Sb(s,gF),i=new wTn(n,t),c=(yke(i.a,i.b,r),r),c}function x$(n){var e;return(!n.a||!(n.Bb&1)&&n.a.Vh())&&(e=gs(n),L(e,156)&&(n.a=u(e,156))),n.a}function Ek(n,e){var t,i;for(Jn(e),i=e.Kc();i.Ob();)if(t=i.Pb(),!n.Hc(t))return!1;return!0}function Gve(n,e){var t,i,r;return t=n.l+e.l,i=n.m+e.m+(t>>22),r=n.h+e.h+(i>>22),Yc(t&ro,i&ro,r&Ol)}function Yxn(n,e){var t,i,r;return t=n.l-e.l,i=n.m-e.m+(t>>22),r=n.h-e.h+(i>>22),Yc(t&ro,i&ro,r&Ol)}function zve(n){var e,t;for(BLe(n),t=new M(n.d);t.a<t.c.c.length;)e=u(E(t),105),e.i&&Dje(e)}function Ot(n){var e;return L(n,82)?n:(e=n&&n.__java$exception,e||(e=new GRn(n),Nyn(e)),e)}function Mk(n){if(L(n,193))return u(n,123);if(n)return null;throw T(new fp(MWn))}function UQ(n){return n.a.Ob()?!0:n.a!=n.e?!1:(n.a=new VJ(n.f.f),n.a.Ob())}function Zxn(n,e){if(e==null)return!1;for(;n.a!=n.b;)if(rt(e,xC(n)))return!0;return!1}function nRn(n,e){return!n||!e||n==e?!1:FKn(n.d.c,e.d.c+e.d.b)&&FKn(e.d.c,n.d.c+n.d.b)}function hi(n,e){var t,i;return t=e.Pc(),i=t.length,i==0?!1:(GV(n.c,n.c.length,t),!0)}function Xve(n,e,t){var i,r;for(r=e.vc().Kc();r.Ob();)i=u(r.Pb(),44),n.yc(i.ld(),i.md(),t);return n}function R$(n){var e,t,i;for(e=new Mt,i=ge(n.d,0);i.b!=i.d.c;)t=u(be(i),65),Re(e,t.c);return e}function eRn(n,e){var t,i;for(i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),72),U(t,(W(),S3),e)}function Vve(n,e,t){var i,r;for(r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),27),Bo(i,i.i+e,i.j+t)}function tRn(n,e){if(!n)throw T(new Gn(B5("value already present: %s",S(C(ki,1),Kn,1,5,[e]))))}function Wve(n,e,t,i,r){return Vg(),y.Math.min(OGn(n,e,t,i,r),OGn(t,i,n,e,HM(new V(r.a,r.b))))}function Jve(n,e,t,i){u(t.b,68),u(t.b,68),u(i.b,68),u(i.b,68),u(i.b,68),nu(i.a,new xV(n,e,i))}function Qve(n,e){n.d==(ci(),Kr)||n.d==us?u(e.a,60).c.Fc(u(e.b,60)):u(e.b,60).c.Fc(u(e.a,60))}function iRn(n,e){var t;return t=Lh(e.a.gc()),qt(fC(new Cn(null,new On(e,1)),n.i),new oTn(n,t)),t}function rRn(n){var e,t;return t=(e=new UA,e),zc(t,"T"),ve((!n.d&&(n.d=new Cu(fu,n,11)),n.d),t),t}function GQ(n){var e,t,i,r;for(e=1,t=0,r=n.gc();t<r;++t)i=n.Vi(t),e=31*e+(i==null?0:mt(i));return e}function cRn(n,e,t,i){var r;return Z7(e,n.e.Rd().gc()),Z7(t,n.c.Rd().gc()),r=n.a[e][t],$t(n.a[e],t,i),r}function S(n,e,t,i,r){return r.Rm=n,r.Sm=e,r.Tm=Q2,r.__elementTypeId$=t,r.__elementTypeCategory$=i,r}function AC(){AC=R,x_=new dM(kh,0),HI=new dM(GXn,1),qI=new dM(zXn,2),wj=new dM("BOTH",3)}function xf(){xf=R,j3=new bM(qm,0),lv=new bM(s3,1),av=new bM(f3,2),R_=new bM("TOP",3)}function nm(){nm=R,r0=new lM("Q1",0),Ow=new lM("Q4",1),Iw=new lM("Q2",2),d2=new lM("Q3",3)}function LC(){LC=R,JH=new YL("OFF",0),Av=new YL("SINGLE_EDGE",1),Gw=new YL("MULTI_EDGE",2)}function Tk(){Tk=R,YO=new lX("MINIMUM_SPANNING_TREE",0),ian=new lX("MAXIMUM_SPANNING_TREE",1)}function qp(){qp=R,bue=new mmn,due=new pmn}function zQ(n){var e,t;return t=(K1(),e=new jE,e),n&&ve((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),t),t}function K$(n){var e,t,i,r;for(r=new Z,i=n.Kc();i.Ob();)t=u(i.Pb(),27),e=aw(t),hi(r,e);return r}function Yve(n,e){var t,i;for(CT(e,"predicate"),i=0;n.Ob();i++)if(t=n.Pb(),e.Lb(t))return i;return-1}function Up(n,e){var t,i;if(i=0,n<64&&n<=e)for(e=e<64?e:63,t=n;t<=e;t++)i=lf(i,Ks(1,t));return i}function Zve(n,e){var t,i;return t=n.c,i=e.e[n.p],i<t.a.c.length-1?u(sn(t.a,i+1),10):null}function XQ(n){Ln();var e,t,i;for(i=0,t=n.Kc();t.Ob();)e=t.Pb(),i=i+(e!=null?mt(e):0),i=i|0;return i}function n6e(n){var e,t,i;return e=u(n.e&&n.e(),9),i=(t=e.slice(),u(o$(t,e),9)),new _o(e,i,e.length)}function uRn(n,e,t){var i;Hu(n.a),nu(t.i,new Ikn(n)),i=new NM(u(ee(n.a,e.b),68)),JKn(n,i,e),t.f=i}function e6e(n){var e;Ub(n,!0),e=d1,kt(n,(cn(),Cv))&&(e+=u(v(n,Cv),17).a),U(n,Cv,Y(e))}function t6e(n){var e;return e=new ul,e.a=n,e.b=a6e(n),e.c=F(fn,J,2,2,6,1),e.c[0]=kxn(n),e.c[1]=kxn(n),e}function oRn(n){var e,t,i;return t=n.n,i=n.o,e=n.d,new Ho(t.a-e.b,t.b-e.d,i.a+(e.b+e.c),i.b+(e.d+e.a))}function i6e(n,e){return!n||!e||n==e?!1:xb(n.b.c,e.b.c+e.b.b)<0&&xb(e.b.c,n.b.c+n.b.b)<0}function sRn(n){switch(n.g){case 1:return Sa;case 2:return nl;case 3:return Zj;default:return nE}}function r6e(n){switch(u(v(n,(cn(),ou)),171).g){case 2:case 4:return!0;default:return!1}}function Ck(n,e,t){switch(t.g){case 2:n.b=e;break;case 1:n.c=e;break;case 4:n.d=e;break;case 3:n.a=e}}function VQ(n,e){switch(e){case 0:!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),n.o.c.$b();return}cR(n,e)}function c6e(n,e){var t,i;return t=u(u(ee(n.g,e.a),42).a,68),i=u(u(ee(n.g,e.b),42).a,68),xUn(t,i)}function WQ(n,e,t){var i;if(i=n.gc(),e>i)throw T(new F0(e,i));return n.Si()&&(t=gAn(n,t)),n.Ei(e,t)}function em(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)Fg(n,c,s)||xS(n,c,s,!0,!1)}function u6e(n){Vg();var e,t,i;for(t=F(Ei,J,8,2,0,1),i=0,e=0;e<2;e++)i+=.5,t[e]=Z9e(i,n);return t}function tm(n){var e,t,i;return e=~n.l+1&ro,t=~n.m+(e==0?1:0)&ro,i=~n.h+(e==0&&t==0?1:0)&Ol,Yc(e,t,i)}function JQ(n){var e;if(n<0)return Wi;if(n==0)return 0;for(e=W5;!(e&n);e>>=1);return e}function B$(n,e,t){return n>=128?!1:n<64?M6(vi(Ks(1,n),t),0):M6(vi(Ks(1,n-64),e),0)}function Sk(n,e,t){return t==null?(!n.q&&(n.q=new de),Kp(n.q,e)):(!n.q&&(n.q=new de),Ve(n.q,e,t)),n}function U(n,e,t){return t==null?(!n.q&&(n.q=new de),Kp(n.q,e)):(!n.q&&(n.q=new de),Ve(n.q,e,t)),n}function fRn(n){var e,t;return t=new zT,Ur(t,n),U(t,(Q1(),y3),n),e=new de,$Ie(n,t,e),fLe(n,t,e),t}function hRn(n){var e,t;return e=n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f,t=n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d,e||t}function lRn(n,e){var t,i,r,c;for(t=!1,i=n.a[e].length,c=0;c<i-1;c++)r=c+1,t=t|N8e(n,e,c,r);return t}function o6e(n){var e,t,i,r;for(t=n.a,i=0,r=t.length;i<r;++i)e=t[i],mRn(n,e,(en(),ae)),mRn(n,e,Xn)}function aRn(){aRn=R,Ene=Me((pr(),S(C(rH,1),G,259,0,[ZI,cs,R8,nO,yv,v2,K8,vv,kv,eO])))}function dRn(){dRn=R,tie=Me((ps(),S(C(Fhn,1),G,243,0,[SO,Pj,Ij,Rhn,Khn,xhn,Bhn,PO,p0,Uw])))}function hd(){hd=R,Q_=new qL(kh,0),mv=new qL("INCOMING_ONLY",1),m2=new qL("OUTGOING_ONLY",2)}function F$(){F$=R,VF={boolean:qhe,number:ihe,string:rhe,object:L_n,function:L_n,undefined:Rfe}}function QQ(){this.o=null,this.k=null,this.j=null,this.d=null,this.b=null,this.n=null,this.a=null}function YQ(n,e){this.c=n,this.d=e,this.b=this.d/this.c.c.Rd().gc()|0,this.a=this.d%this.c.c.Rd().gc()}function bRn(n,e){this.b=n,pg.call(this,(u(N(H((G1(),Hn).o),10),19),e.i),e.g),this.a=(L$(),EU)}function ZQ(n,e,t){this.q=new y.Date,this.q.setFullYear(n+ha,e,t),this.q.setHours(0,0,0,0),H5(this,0)}function wRn(n,e){x7(n>=0,"Negative initial capacity"),x7(e>=0,"Non-positive load factor"),Hu(this)}function s6e(n,e,t,i,r){var c,s;if(s=n.length,c=t.length,e<0||i<0||r<0||e+r>s||i+r>c)throw T(new HG)}function nY(n,e){Ln();var t,i,r,c,s;for(s=!1,i=e,r=0,c=i.length;r<c;++r)t=i[r],s=s|n.Fc(t);return s}function gRn(n,e,t){var i,r;return i=new r$(e,t),r=new LA,n.b=yqn(n,n.b,i,r),r.b||++n.c,n.b.b=!1,r.d}function l5(n){var e;return e=n.a[n.b],e==null?null:($t(n.a,n.b,null),n.b=n.b+1&n.a.length-1,e)}function pRn(n){var e,t;return t=iy(n.h),t==32?(e=iy(n.m),e==32?iy(n.l)+32:e+20-10):t-12}function eY(n){var e;return(!n.c||!(n.Bb&1)&&n.c.Db&64)&&(e=gs(n),L(e,90)&&(n.c=u(e,29))),n.c}function Z1(n){var e,t;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),60),e.d.c=-e.d.c-e.d.b;cen(n)}function na(n){var e,t;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),e.g.c=-e.g.c-e.g.b;IS(n)}function mRn(n,e,t){var i,r,c,s;for(s=g5(e,t),c=0,r=s.Kc();r.Ob();)i=u(r.Pb(),12),Ve(n.c,i,Y(c++))}function vRn(n,e,t){var i;return i=new Z,fen(n,e,i,(en(),Zn),!0,!1),fen(n,t,i,Wn,!1,!1),i}function cc(n){var e,t,i,r,c;for(e=new Ni,i=n,r=0,c=i.length;r<c;++r)t=i[r],e.a+=t.a,e.b+=t.b;return e}function _$(n,e,t){var i,r,c,s;return c=null,s=e,r=Sb(s,"labels"),i=new TTn(n,t),c=(GMe(i.a,i.b,r),r),c}function f6e(n,e,t,i){var r;return r=Jnn(n,e,t,i),!r&&(r=p5e(n,t,i),r&&!Qg(n,e,r))?null:r}function h6e(n,e,t,i){var r;return r=Qnn(n,e,t,i),!r&&(r=rx(n,t,i),r&&!Qg(n,e,r))?null:r}function l6e(n,e,t){if(Pe(e),t.Ob())for(pX(e,uOn(t.Pb()));t.Ob();)pX(e,n.a),pX(e,uOn(t.Pb()));return e}function kRn(n,e){var t;for(t=0;t<n.a.a.length;t++)if(!u(YPn(n.a,t),178).Lb(e))return!1;return!0}function a6e(n){var e;return n==0?"Etc/GMT":(n<0?(n=-n,e="Etc/GMT-"):e="Etc/GMT+",e+YDn(n))}function tY(n){var e;return n.b<=0?!1:(e=ih("MLydhHmsSDkK",wu(Xi(n.c,0))),e>1||e>=0&&n.b<3)}function H$(n){var e,t,i;e=~n.l+1&ro,t=~n.m+(e==0?1:0)&ro,i=~n.h+(e==0&&t==0?1:0)&Ol,n.l=e,n.m=t,n.h=i}function iY(n){Ln();var e,t,i;for(i=1,t=n.Kc();t.Ob();)e=t.Pb(),i=31*i+(e!=null?mt(e):0),i=i|0;return i}function d6e(n,e,t,i,r){var c;return c=znn(n,e),t&&H$(c),r&&(n=u7e(n,e),i?wa=tm(n):wa=Yc(n.l,n.m,n.h)),c}function yRn(n,e,t){n.g=uR(n,e,(en(),Zn),n.b),n.d=uR(n,t,Zn,n.b),!(n.g.c==0||n.d.c==0)&&YFn(n)}function jRn(n,e,t){n.g=uR(n,e,(en(),Wn),n.j),n.d=uR(n,t,Wn,n.j),!(n.g.c==0||n.d.c==0)&&YFn(n)}function rY(n,e){switch(e){case 7:return!!n.e&&n.e.i!=0;case 8:return!!n.d&&n.d.i!=0}return HY(n,e)}function b6e(n,e){switch(e.g){case 0:L(n.b,641)||(n.b=new Bxn);break;case 1:L(n.b,642)||(n.b=new KPn)}}function ERn(n){switch(n.g){case 0:return new gmn;default:throw T(new Gn(xP+(n.f!=null?n.f:""+n.g)))}}function MRn(n){switch(n.g){case 0:return new wmn;default:throw T(new Gn(xP+(n.f!=null?n.f:""+n.g)))}}function w6e(n,e,t){return!s4(ut(new Cn(null,new On(n.c,16)),new Z3(new hTn(e,t)))).Bd((Va(),v3))}function TRn(n,e){return vp(pm(u(v(e,(lc(),v0)),88)),new V(n.c.e.a-n.b.e.a,n.c.e.b-n.b.e.b))<=0}function g6e(n,e){for(;n.g==null&&!n.c?rJ(n):n.g==null||n.i!=0&&u(n.g[n.i-1],51).Ob();)kle(e,MS(n))}function ld(n){var e,t;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),e.f.$b();Yfe(n.b,n),uqn(n)}function Pk(n){var e,t,i;for(e=new Tu,i=ge(n,0);i.b!=i.d.c;)t=u(be(i),8),g4(e,0,new rr(t));return e}function im(n){var e;return X1(n),e=new NA,n.a.Bd(e)?(b4(),new wL(Jn(e.a))):(b4(),b4(),Lun)}function cY(n,e,t){switch(e){case 0:!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),CC(n.o,t);return}sR(n,e,t)}function q$(n,e,t){this.g=n,this.e=new Ni,this.f=new Ni,this.d=new Mt,this.b=new Mt,this.a=e,this.c=t}function U$(n,e,t,i){this.b=new Z,this.n=new Z,this.i=i,this.j=t,this.s=n,this.t=e,this.r=0,this.d=0}function rm(n,e){if(!n.Li()&&e==null)throw T(new Gn("The 'no null' constraint is violated"));return e}function t1(n){var e,t;for(e=0,t=0;t<n.length;t++)e=(e<<5)-e+(zn(t,n.length),n.charCodeAt(t))|0;return e}function CRn(n,e){var t,i,r;for(r=n.b;r;){if(t=n.a.Ne(e,r.d),t==0)return r;i=t<0?0:1,r=r.a[i]}return null}function p6e(n,e,t){var i,r;i=(_n(),!!kX(t)),r=u(e.xc(i),15),r||(r=new Z,e.zc(i,r)),r.Fc(t)}function m6e(n,e){var t,i;return t=u(z(n,(Bf(),Bj)),17).a,i=u(z(e,Bj),17).a,t==i||t<i?-1:t>i?1:0}function v6e(n){return nn(n.c,(qp(),bue)),fQ(n.a,$(B(rn((bx(),EO)))))?new tvn:new $kn(n)}function k6e(n){for(;!n.d||!n.d.Ob();)if(n.b&&!t6(n.b))n.d=u(Pp(n.b),51);else return null;return n.d}function uY(n){switch(n.g){case 1:return lVn;default:case 2:return 0;case 3:return QK;case 4:return Trn}}function y6e(){nt();var n;return IU||(n=_1e(sa("M",!0)),n=uT(sa("M",!1),n),IU=n,IU)}function NC(){NC=R,wU=new MM("ELK",0),Cdn=new MM("JSON",1),Tdn=new MM("DOT",2),Sdn=new MM("SVG",3)}function a5(){a5=R,XH=new WL("STACKED",0),zH=new WL("REVERSE_STACKED",1),Oj=new WL("SEQUENCED",2)}function d5(){d5=R,wln=new eN(kh,0),ZH=new eN("MIDDLE_TO_MIDDLE",1),Nj=new eN("AVOID_OVERLAP",2)}function cm(){cm=R,Esn=new Ygn,Msn=new Zgn,JZn=new Jgn,WZn=new n2n,VZn=new Qgn,jsn=(Jn(VZn),new Abn)}function DC(){DC=R,hdn=new fb(15),Jue=new Di((He(),M1),hdn),j9=D3,udn=Iue,odn=Hd,fdn=_2,sdn=Vw}function Dg(n,e){var t,i,r,c,s;for(i=e,r=0,c=i.length;r<c;++r)t=i[r],s=new YIn(n),t.hf(s),VIe(s);Hu(n.f)}function G$(n,e){var t;return e===n?!0:L(e,229)?(t=u(e,229),rt(n.Zb(),t.Zb())):!1}function oY(n,e){return tqn(n,e)?(In(n.b,u(v(e,(W(),Dl)),21),e),Re(n.a,e),!0):!1}function j6e(n){var e,t;e=u(v(n,(W(),Xu)),10),e&&(t=e.c,du(t.a,e),t.a.c.length==0&&du(Hi(e).b,t))}function E6e(n,e){return kt(n,(W(),dt))&&kt(e,dt)?u(v(e,dt),17).a-u(v(n,dt),17).a:0}function M6e(n,e){return kt(n,(W(),dt))&&kt(e,dt)?u(v(n,dt),17).a-u(v(e,dt),17).a:0}function SRn(n){return Uf?F(AQn,Jzn,581,0,0,1):u(Rf(n.a,F(AQn,Jzn,581,n.a.c.length,0,1)),856)}function T6e(n,e,t,i){return yT(),new hz(S(C(Id,1),WS,44,0,[(Dx(n,e),new ib(n,e)),(Dx(t,i),new ib(t,i))]))}function $g(n,e,t){var i,r;return r=(i=new hL,i),Tr(r,e,t),ve((!n.q&&(n.q=new q(Ps,n,11,10)),n.q),r),r}function z$(n){var e,t,i,r;for(r=ule(Coe,n),t=r.length,i=F(fn,J,2,t,6,1),e=0;e<t;++e)i[e]=r[e];return i}function sY(n,e){var t;e*2+1>=n.b.c.length||(sY(n,2*e+1),t=2*e+2,t<n.b.c.length&&sY(n,t),$_n(n,e))}function C6e(n,e){var t,i;for(i=ge(n,0);i.b!=i.d.c;)t=u(be(i),219),t.e.length>0&&(e.Cd(t),t.i&&E5e(t))}function fY(n,e,t){var i;for(i=t-1;i>=0&&n[i]===e[i];i--);return i<0?0:DL(vi(n[i],mr),vi(e[i],mr))?-1:1}function PRn(n,e,t){var i,r;this.g=n,this.c=e,this.a=this,this.d=this,r=sxn(t),i=F(sQn,My,227,r,0,1),this.b=i}function X$(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)if(Fg(n,c,s))return!0;return!1}function S6e(n,e){var t,i;for(i=n.Zb().Cc().Kc();i.Ob();)if(t=u(i.Pb(),16),t.Hc(e))return!0;return!1}function IRn(n,e,t){var i,r,c,s;for(Jn(t),s=!1,c=n.fd(e),r=t.Kc();r.Ob();)i=r.Pb(),c.Rb(i),s=!0;return s}function V$(n,e){var t,i;return i=u(Un(n.a,4),129),t=F(yU,TF,424,e,0,1),i!=null&&Oc(i,0,t,0,i.length),t}function ORn(n,e){var t;return t=new jR((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,e),n.e!=null||(t.c=n),t}function P6e(n,e){var t;return n===e?!0:L(e,85)?(t=u(e,85),ann(Ja(n),t.vc())):!1}function ARn(n,e,t){var i,r;for(r=t.Kc();r.Ob();)if(i=u(r.Pb(),44),n.Be(e,i.md()))return!0;return!1}function LRn(n,e,t){return n.d[e.p][t.p]||(A9e(n,e,t),n.d[e.p][t.p]=!0,n.d[t.p][e.p]=!0),n.a[e.p][t.p]}function I6e(n,e){var t;return!n||n==e||!kt(e,(W(),s0))?!1:(t=u(v(e,(W(),s0)),10),t!=n)}function W$(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.$l()}}function NRn(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n._l()}}function DRn(n){yAn.call(this,"The given string does not match the expected format for individual spacings.",n)}function O6e(n,e){var t;e.Ug("Min Size Preprocessing",1),t=ynn(n),ht(n,(_h(),f9),t.a),ht(n,UO,t.b),e.Vg()}function A6e(n){var e,t,i;for(e=0,i=F(Ei,J,8,n.b,0,1),t=ge(n,0);t.b!=t.d.c;)i[e++]=u(be(t),8);return i}function J$(n,e,t){var i,r,c;for(i=new Mt,c=ge(t,0);c.b!=c.d.c;)r=u(be(c),8),Re(i,new rr(r));IRn(n,e,i)}function L6e(n,e){var t;return t=nr(n,e),DL(BD(n,e),0)|SM(BD(n,t),0)?t:nr(Ey,BD(U1(t,63),1))}function N6e(n,e){var t,i;return t=u(n.d.Bc(e),16),t?(i=n.e.hc(),i.Gc(t),n.e.d-=t.gc(),t.$b(),i):null}function $Rn(n){var e;if(e=n.a.c.length,e>0)return E4(e-1,n.a.c.length),Yl(n.a,e-1);throw T(new $yn)}function xRn(n,e,t){if(n>e)throw T(new Gn(ZS+n+Qzn+e));if(n<0||e>t)throw T(new gz(ZS+n+Stn+e+Mtn+t))}function um(n,e){n.D==null&&n.B!=null&&(n.D=n.B,n.B=null),j$(n,e==null?null:(Jn(e),e)),n.C&&n.hl(null)}function D6e(n,e){var t;t=rn((bx(),EO))!=null&&e.Sg()!=null?$(B(e.Sg()))/$(B(rn(EO))):1,Ve(n.b,e,t)}function hY(n,e){var t,i;if(i=n.c[e],i!=0)for(n.c[e]=0,n.d-=i,t=e+1;t<n.a.length;)n.a[t]-=i,t+=t&-t}function ew(n){var e;++n.j,n.i==0?n.g=null:n.i<n.g.length&&(e=n.g,n.g=n.aj(n.i),Oc(e,0,n.g,0,n.i))}function $6e(n,e,t){if(e<0)throw T(new Or(LVn+e));e<n.j.c.length?Go(n.j,e,t):(xLn(n,e),nn(n.j,t))}function RRn(n){if(!n.a||!(n.a.i&8))throw T(new Ar("Enumeration class expected for layout option "+n.f))}function lY(n){var e;return e=(!n.a&&(n.a=new q(Kl,n,9,5)),n.a),e.i!=0?rle(u(N(e,0),694)):null}function x6e(n){var e;for(Pe(n),AV(!0,"numberToAdvance must be nonnegative"),e=0;e<0&&pe(n);e++)fe(n);return e}function Q$(){Q$=R,fon=(YE(),d_),son=new Tn(Ftn,fon),IYn=new lt(_tn),OYn=new lt(Htn),AYn=new lt(qtn)}function b5(){b5=R,lq=new mM(ein,0),KO=new mM(bVn,1),hq=new mM("FAN",2),fq=new mM("CONSTRAINT",3)}function Ik(){Ik=R,FO=new tN(kh,0),Hln=new tN("RADIAL_COMPACTION",1),qln=new tN("WEDGE_COMPACTION",2)}function om(){om=R,VH=new JL("CONSERVATIVE",0),Vhn=new JL("CONSERVATIVE_SOFT",1),Y8=new JL("SLOPPY",2)}function Gu(){Gu=R,xun=new $L("CONCURRENT",0),Yr=new $L("IDENTITY_FINISH",1),Sw=new $L("UNORDERED",2)}function Y$(){Y$=R,T_=aAn(S(C(y9,1),G,88,0,[(ci(),Kr),Xr])),C_=aAn(S(C(y9,1),G,88,0,[us,Wf]))}function wo(n){return Si(n)?fn:$0(n)?si:D0(n)?Gt:gW(n)||fW(n)?n.Rm:n.Rm||Array.isArray(n)&&C(fQn,1)||fQn}function R6e(n){return n?n.i&1?n==so?Gt:n==ye?Gi:n==cg?sv:n==Ii?si:n==Ra?t0:n==V2?i0:n==Ru?p3:S8:n:null}function xg(n){return(n.c!=n.b.b||n.i!=n.g.b)&&(I0(n.a.c,0),hi(n.a,n.b),hi(n.a,n.g),n.c=n.b.b,n.i=n.g.b),n.a}function K6e(n,e){var t,i;for(t=n.a.length-1;e!=n.b;)i=e-1&t,$t(n.a,e,n.a[i]),e=i;$t(n.a,n.b,null),n.b=n.b+1&t}function B6e(n,e){var t,i;for(t=n.a.length-1,n.c=n.c-1&t;e!=n.c;)i=e+1&t,$t(n.a,e,n.a[i]),e=i;$t(n.a,n.c,null)}function aY(n,e,t){var i,r;return z0(e,n.c.length),i=t.Pc(),r=i.length,r==0?!1:(GV(n.c,e,i),!0)}function KRn(n,e,t){var i,r,c,s;for(r=t,c=0,s=r.length;c<s;++c)if(i=r[c],n.b.Be(e,i.ld()))return i;return null}function Ok(n){var e,t,i,r,c;for(c=1,t=n,i=0,r=t.length;i<r;++i)e=t[i],c=31*c+(e!=null?mt(e):0),c=c|0;return c}function Me(n){var e,t,i,r,c;for(e={},i=n,r=0,c=i.length;r<c;++r)t=i[r],e[":"+(t.f!=null?t.f:""+t.g)]=t;return e}function F6e(n){var e,t;if(n==null)return null;for(e=0,t=n.length;e<t;e++)if(!APn(n[e]))return n[e];return null}function Z$(n,e){return!n||e&&!n.j||L(n,127)&&u(n,127).a.b==0?0:n.jf()}function $C(n,e){return!n||e&&!n.k||L(n,127)&&u(n,127).a.a==0?0:n.kf()}function BRn(n,e){return kt(n,(W(),dt))&&kt(e,dt)?jc(u(v(n,dt),17).a,u(v(e,dt),17).a):0}function FRn(n){var e,t,i;for(i=0,t=new ie(ce(n.a.Kc(),new En));pe(t);)e=u(fe(t),18),e.c.i==e.d.i||++i;return i}function _Rn(n,e){var t,i,r;for(r=e-n.f,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),315),xKn(t,t.e,t.f+r);n.f=e}function ad(n,e){var t,i,r;i=n.Yk(e,null),r=null,e&&(r=(o4(),t=new Jd,t),F4(r,n.r)),i=Kf(n,r,i),i&&i.oj()}function HRn(n,e){var t,i,r;t=n,r=0;do{if(t==e)return r;if(i=t.e,!i)throw T(new W9);t=Hi(i),++r}while(!0)}function _6e(n){var e,t,i,r;for(i=n.b.a,t=i.a.ec().Kc();t.Ob();)e=u(t.Pb(),567),r=new zHn(e,n.e,n.f),nn(n.g,r)}function H6e(n){var e;return e=new v$n(n),Q7(n.a,AZn,new Fu(S(C(aj,1),Kn,382,0,[e]))),e.d&&nn(e.f,e.d),e.f}function qRn(n,e){var t;for(t=0;t<e.length;t++)if(n==(zn(t,e.length),e.charCodeAt(t)))return!0;return!1}function q6e(n,e){return e<n.length&&(zn(e,n.length),n.charCodeAt(e)!=63)&&(zn(e,n.length),n.charCodeAt(e)!=35)}function URn(n,e,t,i){ECn(this),this.c=F(Qh,b1,10,n.a.c.length,0,1),this.e=e,Rf(n.a,this.c),this.f=t,this.b=i}function GRn(n){Njn(),xM(this),TT(this),this.e=n,bqn(this,n),this.g=n==null?gu:Jr(n),this.a="",this.b=n,this.a=""}function dY(){this.a=new amn,this.f=new jkn(this),this.b=new Ekn(this),this.i=new Mkn(this),this.e=new Tkn(this)}function zRn(){Jfe.call(this,new XJ(Q0(16))),Mo(2,Azn),this.b=2,this.a=new _W(null,null,0,null),V9(this.a,this.a)}function bY(n){throw F$(),T(new Ajn("Unexpected typeof result '"+n+"'; please report this bug to the GWT team"))}function nx(n,e,t){return y.Math.abs(e-n)<IP||y.Math.abs(t-n)<IP?!0:e-n>IP?n-t>IP:t-n>IP}function XRn(n,e){var t;for(t=0;t<e.length;t++)if(n==(zn(t,e.length),e.charCodeAt(t)))return!0;return!1}function U6e(n){var e,t;if(n==null)return!1;for(e=0,t=n.length;e<t;e++)if(!APn(n[e]))return!1;return!0}function wY(n,e){var t,i,r;return i=!1,t=e.q.d,e.d<n.b&&(r=ren(e.q,n.b),e.q.d>r&&(EFn(e.q,r),i=t!=e.q.d)),i}function VRn(n,e){var t,i,r,c,s,f,h,l;return h=e.i,l=e.j,i=n.f,r=i.i,c=i.j,s=h-r,f=l-c,t=y.Math.sqrt(s*s+f*f),t}function gY(n,e){var t,i;return i=WC(n),i||(t=(UR(),$Hn(e)),i=new Myn(t),ve(i.El(),n)),i}function Ak(n,e){var t,i;return t=u(n.c.Bc(e),16),t?(i=n.hc(),i.Gc(t),n.d-=t.gc(),t.$b(),n.mc(i)):n.jc()}function G6e(n,e){var t,i;for(i=to(n.d,1)!=0,t=!0;t;)t=!1,t=e.c.mg(e.e,i),t=t|sy(n,e,i,!1),i=!i;DQ(n)}function WRn(n,e,t,i){var r,c;n.a=e,c=i?0:1,n.f=(r=new s_n(n.c,n.a,t,c),new Fqn(t,n.a,r,n.e,n.b,n.c==(Ab(),Z8)))}function xC(n){var e;return oe(n.a!=n.b),e=n.d.a[n.a],ESn(n.b==n.d.c&&e!=null),n.c=n.a,n.a=n.a+1&n.d.a.length-1,e}function JRn(n){var e;if(n.c!=0)return n.c;for(e=0;e<n.a.length;e++)n.c=n.c*33+(n.a[e]&-1);return n.c=n.c*n.e,n.c}function z6e(n){var e;if(!(n.c.c<0?n.a>=n.c.b:n.a<=n.c.b))throw T(new nc);return e=n.a,n.a+=n.c.c,++n.b,Y(e)}function ex(n){var e;return e=new AX(n.a),Ur(e,n),U(e,(W(),st),n),e.o.a=n.g,e.o.b=n.f,e.n.a=n.i,e.n.b=n.j,e}function tx(n){return(en(),mu).Hc(n.j)?$(B(v(n,(W(),jv)))):cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a])).b}function X6e(n){var e;return e=LM(Mie),u(v(n,(W(),Hc)),21).Hc((pr(),yv))&&Fe(e,(Vi(),Ac),(tr(),RI)),e}function V6e(n){var e,t,i,r;for(r=new ni,i=new M(n);i.a<i.c.c.length;)t=u(E(i),27),e=wSe(t),Ki(r,e);return r}function W6e(n){var e,t;for(t=new M(n.r);t.a<t.c.c.length;)if(e=u(E(t),10),n.n[e.p]<=0)return e;return null}function J6e(n,e,t){var i,r;for(r=e.a.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),60),zOn(n,i,t))return!0;return!1}function Q6e(n,e,t,i){var r,c;for(c=n.Kc();c.Ob();)r=u(c.Pb(),72),r.n.a=e.a+(i.a-r.o.a)/2,r.n.b=e.b,e.b+=r.o.b+t}function Y6e(n,e,t){var i;i=new sHn(n,e),In(n.r,e.ag(),i),t&&!F6(n.u)&&(i.c=new fAn(n.d),nu(e.Rf(),new N9n(i)))}function Ec(n,e){var t;return Vr(n)&&Vr(e)&&(t=n-e,!isNaN(t))?t:AZ(Vr(n)?ds(n):n,Vr(e)?ds(e):e)}function pY(n,e){var t,i,r;for(r=1,t=n,i=e>=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function Z6e(n,e){var t,i,r;for(r=1,t=n,i=e>=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function ea(n,e){var t,i,r,c;return c=(r=n?WC(n):null,A_n((i=e,r&&r.Gl(),i))),c==e&&(t=WC(n),t&&t.Gl()),c}function QRn(n,e,t){var i,r;return r=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,0,r,e),t?t.nj(i):t=i),t}function YRn(n,e,t){var i,r;return r=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,3,r,e),t?t.nj(i):t=i),t}function mY(n,e,t){var i,r;return r=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,1,r,e),t?t.nj(i):t=i),t}function ZRn(n){var e,t;if(n!=null)for(t=0;t<n.length;++t)e=n[t],e&&(u(e.g,379),e.i)}function n5e(n,e,t,i,r,c,s,f){var h;for(h=t;c<s;)h>=i||e<t&&f.Ne(n[e],n[h])<=0?$t(r,c++,n[e++]):$t(r,c++,n[h++])}function e5e(n,e,t,i,r){e==0||i==0||(e==1?r[i]=hZ(r,t,i,n[0]):i==1?r[e]=hZ(r,n,e,t[0]):EMe(n,t,r,e,i))}function t5e(n,e,t){var i,r,c,s;for(i=t/n.gc(),r=0,s=n.Kc();s.Ob();)c=u(s.Pb(),186),_Rn(c,c.f+i*r),gke(c,e,i),++r}function i5e(n){var e,t,i;for(i=0,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),172),i=y.Math.max(i,e.g);return i}function r5e(n){var e,t,i;for(i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),219),e=t.c.kg()?t.f:t.a,e&&OOe(e,t.j)}function w5(){w5=R,xH=new zL("DUMMY_NODE_OVER",0),Lhn=new zL("DUMMY_NODE_UNDER",1),TO=new zL("EQUAL",2)}function Gp(){Gp=R,pdn=new lN("PARALLEL_NODE",0),Yw=new lN("HIERARCHICAL_NODE",1),aA=new lN("ROOT_NODE",2)}function jl(){jl=R,uA=new hN("INHERIT",0),T1=new hN("INCLUDE_CHILDREN",1),E9=new hN("SEPARATE_CHILDREN",2)}function vY(n,e){switch(e){case 1:!n.n&&(n.n=new q(Sr,n,1,7)),me(n.n);return;case 2:X4(n,null);return}VQ(n,e)}function nKn(n){switch(n.g){case 0:return new omn;case 1:return new fmn;case 2:return new smn;default:return null}}function i1(n){switch(oh(),n.c){case 0:return wD(),cun;case 1:return new lp(K_n(new dp(n)));default:return new Pjn(n)}}function eKn(n){switch(oh(),n.gc()){case 0:return wD(),cun;case 1:return new lp(n.Kc().Pb());default:return new Rz(n)}}function RC(n){var e;switch(n.gc()){case 0:return qF;case 1:return new VN(Pe(n.Xb(0)));default:return e=n,new ID(e)}}function Y(n){var e,t;return n>-129&&n<128?(RPn(),e=n+128,t=pun[e],!t&&(t=pun[e]=new mG(n)),t):new mG(n)}function sm(n){var e,t;return n>-129&&n<128?(nIn(),e=n+128,t=yun[e],!t&&(t=yun[e]=new kG(n)),t):new kG(n)}function tKn(n,e){var t;n.a.c.length>0&&(t=u(sn(n.a,n.a.c.length-1),579),oY(t,e))||nn(n.a,new kNn(e))}function c5e(n){Rs();var e,t;e=n.d.c-n.e.c,t=u(n.g,154),nu(t.b,new p7n(e)),nu(t.c,new m7n(e)),qi(t.i,new v7n(e))}function iKn(n){var e;return e=new x1,e.a+="VerticalSegment ",Lc(e,n.e),e.a+=" ",Be(e,KX(new yL,new M(n.k))),e.a}function ix(n,e){var t,i,r;for(t=0,r=uc(n,e).Kc();r.Ob();)i=u(r.Pb(),12),t+=v(i,(W(),Xu))!=null?1:0;return t}function Rg(n,e,t){var i,r,c;for(i=0,c=ge(n,0);c.b!=c.d.c&&(r=$(B(be(c))),!(r>t));)r>=e&&++i;return i}function rKn(n,e){Pe(n);try{return n._b(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return!1;throw T(t)}}function kY(n,e){Pe(n);try{return n.Hc(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return!1;throw T(t)}}function u5e(n,e){Pe(n);try{return n.Mc(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return!1;throw T(t)}}function tw(n,e){Pe(n);try{return n.xc(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return null;throw T(t)}}function o5e(n,e){Pe(n);try{return n.Bc(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return null;throw T(t)}}function g5(n,e){switch(e.g){case 2:case 1:return uc(n,e);case 3:case 4:return Qo(uc(n,e))}return Ln(),Ln(),sr}function p5(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (name: ",Er(e,n.zb),e.a+=")",e.a)}function s5e(n){var e;return e=u(Df(n.c.c,""),233),e||(e=new Dp(u4(c4(new tp,""),"Other")),s1(n.c.c,"",e)),e}function yY(n,e,t){var i,r;return r=n.sb,n.sb=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,4,r,e),t?t.nj(i):t=i),t}function jY(n,e,t){var i,r;return r=n.r,n.r=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,8,r,n.r),t?t.nj(i):t=i),t}function f5e(n,e,t){var i,r;return i=new ml(n.e,4,13,(r=e.c,r||(An(),Zf)),null,f1(n,e),!1),t?t.nj(i):t=i,t}function h5e(n,e,t){var i,r;return i=new ml(n.e,3,13,null,(r=e.c,r||(An(),Zf)),f1(n,e),!1),t?t.nj(i):t=i,t}function r1(n,e){var t,i;return t=u(e,691),i=t.el(),!i&&t.fl(i=L(e,90)?new xTn(n,u(e,29)):new cLn(n,u(e,156))),i}function Lk(n,e,t){var i;n._i(n.i+1),i=n.Zi(e,t),e!=n.i&&Oc(n.g,e,n.g,e+1,n.i-e),$t(n.g,e,i),++n.i,n.Mi(e,t),n.Ni()}function l5e(n,e){var t;return e.a&&(t=e.a.a.length,n.a?Be(n.a,n.b):n.a=new mo(n.d),aLn(n.a,e.a,e.d.length,t)),n}function a5e(n,e){var t;n.c=e,n.a=p8e(e),n.a<54&&(n.f=(t=e.d>1?hLn(e.a[0],e.a[1]):hLn(e.a[0],0),id(e.e>0?t:n1(t))))}function Nk(n,e){var t;return t=new NA,n.a.Bd(t)?(b4(),new wL(Jn(GDn(n,t.a,e)))):(X1(n),b4(),b4(),Lun)}function cKn(n,e){var t;n.c.length!=0&&(t=u(Rf(n,F(Qh,b1,10,n.c.length,0,1)),199),EX(t,new rgn),Y_n(t,e))}function uKn(n,e){var t;n.c.length!=0&&(t=u(Rf(n,F(Qh,b1,10,n.c.length,0,1)),199),EX(t,new cgn),Y_n(t,e))}function rt(n,e){return Si(n)?Sn(n,e):$0(n)?nPn(n,e):D0(n)?(Jn(n),x(n)===x(e)):gW(n)?n.Fb(e):fW(n)?YTn(n,e):fJ(n,e)}function Wo(n,e,t){if(e<0)Pnn(n,t);else{if(!t.rk())throw T(new Gn(ba+t.xe()+b8));u(t,69).wk().Ek(n,n.hi(),e)}}function oKn(n,e,t){if(n<0||e>t)throw T(new Or(ZS+n+Stn+e+", size: "+t));if(n>e)throw T(new Gn(ZS+n+Qzn+e))}function sKn(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (source: ",Er(e,n.d),e.a+=")",e.a)}function fKn(n){return n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function d5e(n){VS();var e,t,i,r;for(t=jx(),i=0,r=t.length;i<r;++i)if(e=t[i],qr(e.a,n,0)!=-1)return e;return h_}function b5e(n,e){var t,i,r,c;if(e.ej(n.a),c=u(Un(n.a,8),2035),c!=null)for(t=c,i=0,r=t.length;i<r;++i)null.Um()}function c1(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,2,t,e))}function EY(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,8,t,e))}function KC(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,8,t,e))}function u1(n,e){var t;t=(n.Bb&512)!=0,e?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,3,t,e))}function MY(n,e){var t;t=(n.Bb&512)!=0,e?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,9,t,e))}function w5e(n,e,t){var i,r;return r=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,5,r,n.a),t?GZ(t,i):t=i),t}function m5(n,e){var t;return n.b==-1&&n.a&&(t=n.a.pk(),n.b=t?n.c.Hh(n.a.Lj(),t):At(n.c.Dh(),n.a)),n.c.yh(n.b,e)}function hKn(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)if(t=u(ue(i),29),x(e)===x(t))return!0;return!1}function TY(n){var e,t;return e=n.k,e==(Vn(),Zt)?(t=u(v(n,(W(),gc)),64),t==(en(),Xn)||t==ae):!1}function lKn(n){var e;return e=wJ(n),ob(e.a,0)?(A0(),A0(),ZF):(A0(),new SN(NL(e.a,0)?BJ(e)/id(e.a):0))}function Dk(n,e){this.e=e,this.a=Qxn(n),this.a<54?this.f=id(n):this.c=(dh(),Ec(n,0)>=0?ia(n):U6(ia(n1(n))))}function aKn(n,e,t,i,r,c){this.e=new Z,this.f=(gr(),Q8),nn(this.e,n),this.d=e,this.a=t,this.b=i,this.f=r,this.c=c}function g5e(n,e,t){n.n=Wa(Ra,[J,PK],[376,28],14,[t,wi(y.Math.ceil(e/32))],2),n.o=e,n.p=t,n.j=e-1>>1,n.k=t-1>>1}function dKn(n){return n-=n>>1&1431655765,n=(n>>2&858993459)+(n&858993459),n=(n>>4)+n&252645135,n+=n>>8,n+=n>>16,n&63}function bKn(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)if(t=u(ue(i),142),x(e)===x(t))return!0;return!1}function p5e(n,e,t){var i,r,c;return c=(r=Tm(n.b,e),r),c&&(i=u(qS(hk(n,c),""),29),i)?Jnn(n,i,e,t):null}function rx(n,e,t){var i,r,c;return c=(r=Tm(n.b,e),r),c&&(i=u(qS(hk(n,c),""),29),i)?Qnn(n,i,e,t):null}function m5e(n,e){var t;if(t=Ng(n.i,e),t==null)throw T(new eh("Node did not exist in input."));return _Q(e,t),null}function v5e(n,e){var t;if(t=oy(n,e),L(t,331))return u(t,35);throw T(new Gn(ba+e+"' is not a valid attribute"))}function v5(n,e,t){var i;if(i=n.gc(),e>i)throw T(new F0(e,i));if(n.Si()&&n.Hc(t))throw T(new Gn(Vy));n.Gi(e,t)}function k5e(n,e){e.Ug("Sort end labels",1),qt(ut(rc(new Cn(null,new On(n.b,16)),new Hwn),new qwn),new Uwn),e.Vg()}function ci(){ci=R,Jf=new p7(n8,0),Xr=new p7(f3,1),Kr=new p7(s3,2),Wf=new p7(_K,3),us=new p7("UP",4)}function $k(){$k=R,XO=new sN("P1_STRUCTURE",0),VO=new sN("P2_PROCESSING_ORDER",1),WO=new sN("P3_EXECUTION",2)}function wKn(){wKn=R,Bre=ah(ah(h6(ah(ah(h6(Fe(new ii,(Qp(),t9),(F5(),YH)),i9),lln),dln),r9),oln),bln)}function y5e(n){switch(u(v(n,(W(),Ad)),311).g){case 1:U(n,Ad,(vl(),E3));break;case 2:U(n,Ad,(vl(),k2))}}function j5e(n){switch(n){case 0:return new rjn;case 1:return new tjn;case 2:return new ijn;default:throw T(new W9)}}function gKn(n){switch(n.g){case 2:return Xr;case 1:return Kr;case 4:return Wf;case 3:return us;default:return Jf}}function CY(n,e){switch(n.b.g){case 0:case 1:return e;case 2:case 3:return new Ho(e.d,0,e.a,e.b);default:return null}}function SY(n){switch(n.g){case 1:return Wn;case 2:return Xn;case 3:return Zn;case 4:return ae;default:return sc}}function xk(n){switch(n.g){case 1:return ae;case 2:return Wn;case 3:return Xn;case 4:return Zn;default:return sc}}function BC(n){switch(n.g){case 1:return Zn;case 2:return ae;case 3:return Wn;case 4:return Xn;default:return sc}}function PY(n,e,t,i){switch(e){case 1:return!n.n&&(n.n=new q(Sr,n,1,7)),n.n;case 2:return n.k}return kZ(n,e,t,i)}function k5(n,e,t){var i,r;return n.Pj()?(r=n.Qj(),i=lR(n,e,t),n.Jj(n.Ij(7,Y(t),i,e,r)),i):lR(n,e,t)}function cx(n,e){var t,i,r;n.d==null?(++n.e,--n.f):(r=e.ld(),t=e.Bi(),i=(t&et)%n.d.length,o4e(n,i,BHn(n,i,t,r)))}function fm(n,e){var t;t=(n.Bb&Gs)!=0,e?n.Bb|=Gs:n.Bb&=-1025,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,10,t,e))}function hm(n,e){var t;t=(n.Bb&vw)!=0,e?n.Bb|=vw:n.Bb&=-4097,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,12,t,e))}function lm(n,e){var t;t=(n.Bb&$u)!=0,e?n.Bb|=$u:n.Bb&=-8193,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,15,t,e))}function am(n,e){var t;t=(n.Bb&Cw)!=0,e?n.Bb|=Cw:n.Bb&=-2049,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,11,t,e))}function E5e(n){var e;n.g&&(e=n.c.kg()?n.f:n.a,hen(e.a,n.o,!0),hen(e.a,n.o,!1),U(n.o,(cn(),Ft),(Ai(),Ud)))}function M5e(n){var e;if(!n.a)throw T(new Ar("Cannot offset an unassigned cut."));e=n.c-n.b,n.b+=e,_On(n,e),FOn(n,e)}function T5e(n,e){var t;if(t=ee(n.k,e),t==null)throw T(new eh("Port did not exist in input."));return _Q(e,t),null}function C5e(n){var e,t;for(t=xHn(jo(n)).Kc();t.Ob();)if(e=Ae(t.Pb()),_5(n,e))return S3e((mMn(),Koe),e);return null}function pKn(n){var e,t;for(t=n.p.a.ec().Kc();t.Ob();)if(e=u(t.Pb(),218),e.f&&n.b[e.c]<-1e-10)return e;return null}function S5e(n){var e,t;for(t=z1(new x1,91),e=!0;n.Ob();)e||(t.a+=ur),e=!1,Lc(t,n.Pb());return(t.a+="]",t).a}function P5e(n){var e,t,i;for(e=new Z,i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),602),hi(e,u(t.Cf(),16));return e}function ux(n,e){var t,i;for(i=new M(e);i.a<i.c.c.length;)t=u(E(i),42),du(n.b.b,t.b),Age(u(t.a,194),u(t.b,86))}function I5e(n,e){var t;return t=bt(n.b.c,e.b.c),t!=0||(t=bt(n.a.a,e.a.a),t!=0)?t:bt(n.a.b,e.a.b)}function bt(n,e){return n<e?-1:n>e?1:n==e?n==0?bt(1/n,1/e):0:isNaN(n)?isNaN(e)?0:1:-1}function O5e(n){var e;return e=n.a[n.c-1&n.a.length-1],e==null?null:(n.c=n.c-1&n.a.length-1,$t(n.a,n.c,null),e)}function A5e(n){var e,t,i;for(i=0,t=n.length,e=0;e<t;e++)n[e]==32||n[e]==13||n[e]==10||n[e]==9||(n[i++]=n[e]);return i}function L5e(n,e){var t,i,r,c,s;for(s=ru(n.e.Dh(),e),c=0,t=u(n.g,124),r=0;r<n.i;++r)i=t[r],s.am(i.Lk())&&++c;return c}function N5e(n,e,t){var i,r;for(r=L(e,102)&&u(e,19).Bb&hr?new dN(e,n):new Y4(e,n),i=0;i<t;++i)iS(r);return r}function mKn(n,e,t){var i,r;if(n.c)rnn(n.c,e,t);else for(r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),163),mKn(i,e,t)}function D5e(n,e,t){var i,r;return i=u(e.of(n.a),34),r=u(t.of(n.a),34),i!=null&&r!=null?mk(i,r):i!=null?-1:r!=null?1:0}function IY(n,e){var t,i,r;for(Jn(e),t=!1,i=new M(n);i.a<i.c.c.length;)r=E(i),e.Hc(r)&&(q6(i),t=!0);return t}function jn(n){var e,t,i,r;return t=(e=u(of((i=n.Rm,r=i.f,r==ke?i:r)),9),new _o(e,u(xs(e,e.length),9),0)),_s(t,n),t}function FC(n){var e,t;return t=u(v(n,(cn(),Lo)),88),t==(ci(),Jf)?(e=$(B(v(n,oO))),e>=1?Xr:Wf):t}function $5e(n){switch(u(v(n,(cn(),$l)),223).g){case 1:return new Ipn;case 3:return new Dpn;default:return new Ppn}}function ta(n){if(n.c)ta(n.c);else if(n.d)throw T(new Ar("Stream already terminated, can't be modified or used"))}function $b(n,e,t){var i;return i=n.a.get(e),n.a.set(e,t===void 0?null:t),i===void 0?(++n.c,++n.b.g):++n.d,i}function x5e(n,e,t){var i,r;for(r=n.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),10),Ek(t,u(sn(e,i.p),16)))return i;return null}function OY(n,e,t){var i;return i=0,e&&(vg(n.a)?i+=e.f.a/2:i+=e.f.b/2),t&&(vg(n.a)?i+=t.f.a/2:i+=t.f.b/2),i}function R5e(n,e,t){var i;i=t,!i&&(i=QV(new op,0)),i.Ug(IXn,2),jBn(n.b,e,i.eh(1)),YOe(n,e,i.eh(1)),eNe(e,i.eh(1)),i.Vg()}function AY(n,e,t){var i,r;return i=(K1(),r=new yE,r),aC(i,e),lC(i,t),n&&ve((!n.a&&(n.a=new ti(xo,n,5)),n.a),i),i}function ox(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (identifier: ",Er(e,n.k),e.a+=")",e.a)}function sx(n,e){var t;t=(n.Bb&kc)!=0,e?n.Bb|=kc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,18,t,e))}function LY(n,e){var t;t=(n.Bb&kc)!=0,e?n.Bb|=kc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,18,t,e))}function dm(n,e){var t;t=(n.Bb&wh)!=0,e?n.Bb|=wh:n.Bb&=-16385,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,16,t,e))}function NY(n,e){var t;t=(n.Bb&hr)!=0,e?n.Bb|=hr:n.Bb&=-65537,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,20,t,e))}function DY(n){var e;return e=F(fs,gh,28,2,15,1),n-=hr,e[0]=(n>>10)+Py&ui,e[1]=(n&1023)+56320&ui,ws(e,0,e.length)}function K5e(n){var e;return e=sw(n),e>34028234663852886e22?Pt:e<-34028234663852886e22?li:e}function nr(n,e){var t;return Vr(n)&&Vr(e)&&(t=n+e,Sy<t&&t<vd)?t:Y1(Gve(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function er(n,e){var t;return Vr(n)&&Vr(e)&&(t=n*e,Sy<t&&t<vd)?t:Y1(FOe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function bs(n,e){var t;return Vr(n)&&Vr(e)&&(t=n-e,Sy<t&&t<vd)?t:Y1(Yxn(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function uc(n,e){var t;return n.i||Snn(n),t=u(Mr(n.g,e),42),t?new Jl(n.j,u(t.a,17).a,u(t.b,17).a):(Ln(),Ln(),sr)}function B5e(n){return Y$(),_n(),!!(yKn(u(n.a,86).j,u(n.b,88))||u(n.a,86).d.e!=0&&yKn(u(n.a,86).j,u(n.b,88)))}function F5e(n,e){return Sn(e.b&&e.c?td(e.b)+"->"+td(e.c):"e_"+mt(e),n.b&&n.c?td(n.b)+"->"+td(n.c):"e_"+mt(n))}function _5e(n,e){return Sn(e.b&&e.c?td(e.b)+"->"+td(e.c):"e_"+mt(e),n.b&&n.c?td(n.b)+"->"+td(n.c):"e_"+mt(n))}function xb(n,e){return Cf(),Fs(fa),y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:n<e?-1:n>e?1:sb(isNaN(n),isNaN(e))}function El(){El=R,hU=new kM(n8,0),Yj=new kM("POLYLINE",1),Bv=new kM("ORTHOGONAL",2),R3=new kM("SPLINES",3)}function _C(){_C=R,l1n=new uN("ASPECT_RATIO_DRIVEN",0),Oq=new uN("MAX_SCALE_DRIVEN",1),h1n=new uN("AREA_DRIVEN",2)}function H5e(n,e,t){var i;try{l6e(n,e,t)}catch(r){throw r=Ot(r),L(r,606)?(i=r,T(new DJ(i))):T(r)}return e}function q5e(n){var e,t,i;for(t=0,i=n.length;t<i;t++)if(n[t]==null)throw T(new fp("at index "+t));return e=n,new Fu(e)}function Ml(n){var e,t,i;for(e=new Z,i=new M(n.j);i.a<i.c.c.length;)t=u(E(i),12),nn(e,t.b);return Pe(e),new S6(e)}function ji(n){var e,t,i;for(e=new Z,i=new M(n.j);i.a<i.c.c.length;)t=u(E(i),12),nn(e,t.e);return Pe(e),new S6(e)}function Qt(n){var e,t,i;for(e=new Z,i=new M(n.j);i.a<i.c.c.length;)t=u(E(i),12),nn(e,t.g);return Pe(e),new S6(e)}function U5e(n,e){var t,i,r;for(r=new de,i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),Ve(r,t.ld(),Pve(n,u(t.md(),15)));return r}function G5e(n){var e,t;for(t=DMe(jo(G0(n))).Kc();t.Ob();)if(e=Ae(t.Pb()),_5(n,e))return P3e((gMn(),Boe),e);return null}function fx(n,e){var t,i,r;for(r=0,i=u(e.Kb(n),20).Kc();i.Ob();)t=u(i.Pb(),18),on(un(v(t,(W(),zf))))||++r;return r}function vKn(n){var e,t,i,r;for(e=new XSn(n.Rd().gc()),r=0,i=Fp(n.Rd().Kc());i.Ob();)t=i.Pb(),I2e(e,t,Y(r++));return Pje(e.a)}function hx(n,e,t,i){var r,c;return Jn(i),Jn(t),r=n.xc(e),c=r==null?t:cMn(u(r,15),u(t,16)),c==null?n.Bc(e):n.zc(e,c),c}function z5e(n,e,t,i){var r,c,s;for(r=e+1;r<t;++r)for(c=r;c>e&&i.Ne(n[c-1],n[c])>0;--c)s=n[c],$t(n,c,n[c-1]),$t(n,c-1,s)}function vn(n,e){var t,i,r,c,s;if(t=e.f,s1(n.c.d,t,e),e.g!=null)for(r=e.g,c=0,s=r.length;c<s;++c)i=r[c],s1(n.c.e,i,e)}function kKn(n,e){var t,i;for(t=ge(n,0);t.b!=t.d.c;){if(i=J9(B(be(t))),i==e)return;if(i>e){wLn(t);break}}_7(t,e)}function X5e(n,e){var t,i,r;i=Ig(e),r=$(B(rw(i,(cn(),Ws)))),t=y.Math.max(0,r/2-.5),I5(e,t,1),nn(n,new DMn(e,t))}function V5e(n,e,t){var i;t.Ug("Straight Line Edge Routing",1),t.dh(e,$rn),i=u(z(e,(Cg(),L2)),27),iGn(n,i),t.dh(e,LP)}function $Y(n,e){n.n.c.length==0&&nn(n.n,new DT(n.s,n.t,n.i)),nn(n.b,e),wZ(u(sn(n.n,n.n.c.length-1),209),e),BUn(n,e)}function y5(n){var e;this.a=(e=u(n.e&&n.e(),9),new _o(e,u(xs(e,e.length),9),0)),this.b=F(ki,Kn,1,this.a.a.length,5,1)}function Jr(n){var e;return Array.isArray(n)&&n.Tm===Q2?Xa(wo(n))+"@"+(e=mt(n)>>>0,e.toString(16)):n.toString()}function W5e(n,e){return n.h==Cy&&n.m==0&&n.l==0?(e&&(wa=Yc(0,0,0)),nCn((B4(),lun))):(e&&(wa=Yc(n.l,n.m,n.h)),Yc(0,0,0))}function J5e(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function yKn(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function xY(n,e,t,i){switch(e){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return PY(n,e,t,i)}function HC(n,e){if(e==n.d)return n.e;if(e==n.e)return n.d;throw T(new Gn("Node "+e+" not part of edge "+n))}function Q5e(n,e){var t;if(t=oy(n.Dh(),e),L(t,102))return u(t,19);throw T(new Gn(ba+e+"' is not a valid reference"))}function Jo(n,e,t,i){if(e<0)een(n,t,i);else{if(!t.rk())throw T(new Gn(ba+t.xe()+b8));u(t,69).wk().Ck(n,n.hi(),e,i)}}function eo(n){var e;if(n.b){if(eo(n.b),n.b.d!=n.c)throw T(new Ko)}else n.d.dc()&&(e=u(n.f.c.xc(n.e),16),e&&(n.d=e))}function Y5e(n){K0();var e,t,i,r;for(e=n.o.b,i=u(u(ot(n.r,(en(),ae)),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r=t.e,r.b+=e}function Z5e(n){var e,t,i;for(this.a=new rh,i=new M(n);i.a<i.c.c.length;)t=u(E(i),16),e=new cIn,Zme(e,t),fi(this.a,e)}function n8e(n,e){var t,i,r;for(i=ePe(n,e),r=i[i.length-1]/2,t=0;t<i.length;t++)if(i[t]>=r)return e.c+t;return e.c+e.b.gc()}function e8e(n,e){m4();var t,i,r,c;for(i=NDn(n),r=e,R4(i,0,i.length,r),t=0;t<i.length;t++)c=H7e(n,i[t],t),t!=c&&k5(n,t,c)}function lx(n,e,t){var i,r;for(i=0,r=n.length;i<r;i++)if(B$((zn(i,n.length),n.charCodeAt(i)),e,t))return!0;return!1}function t8e(n,e){var t,i;for(i=n.e.a.ec().Kc();i.Ob();)if(t=u(i.Pb(),272),fje(e,t.d)||mEe(e,t.d))return!0;return!1}function RY(n,e,t,i,r){var c,s,f;for(s=r;e.b!=e.c;)c=u(Pp(e),10),f=u(uc(c,i).Xb(0),12),n.d[f.p]=s++,Fn(t.c,f);return s}function KY(n,e){var t,i,r,c,s,f;for(i=0,t=0,c=e,s=0,f=c.length;s<f;++s)r=c[s],r>0&&(i+=r,++t);return t>1&&(i+=n.d*(t-1)),i}function i8e(n){var e,t,i,r,c;return c=nnn(n),t=Z9(n.c),i=!t,i&&(r=new _a,bf(c,"knownLayouters",r),e=new lyn(r),qi(n.c,e)),c}function BY(n){var e,t,i;for(i=new Hl,i.a+="[",e=0,t=n.gc();e<t;)Er(i,A6(n.Vi(e))),++e<t&&(i.a+=ur);return i.a+="]",i.a}function r8e(n){return n.e==null?n:(!n.c&&(n.c=new jR((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,null)),n.c)}function c8e(n){return n.k!=(Vn(),zt)?!1:Ag(new Cn(null,new pb(new ie(ce(Qt(n).a.Kc(),new En)))),new mpn)}function Qo(n){var e,t;return L(n,307)?(t=t4e(u(n,307)),e=t,e):L(n,441)?u(n,441).a:L(n,59)?new Ijn(n):new Oz(n)}function u8e(n){var e;return n==null?!0:(e=n.length,e>0&&(zn(e-1,n.length),n.charCodeAt(e-1)==58)&&!lx(n,L9,N9))}function FY(n,e){var t;return x(n)===x(e)?!0:L(e,92)?(t=u(e,92),n.e==t.e&&n.d==t.d&&O3e(n,t.a)):!1}function zp(n){switch(en(),n.g){case 4:return Xn;case 1:return Zn;case 3:return ae;case 2:return Wn;default:return sc}}function o8e(n){var e,t;if(n.b)return n.b;for(t=Uf?null:n.d;t;){if(e=Uf?null:t.b,e)return e;t=Uf?null:t.d}return a4(),$un}function _Y(n){var e,t,i;for(i=$(B(n.a.of((He(),iA)))),t=new M(n.a.Sf());t.a<t.c.c.length;)e=u(E(t),695),tzn(n,e,i)}function s8e(n){var e,t,i,r;for(e=(n.j==null&&(n.j=(A4(),r=XF.me(n),Cke(r))),n.j),t=0,i=e.length;t<i;++t);}function ax(n,e){var t,i;for(i=new M(e);i.a<i.c.c.length;)t=u(E(i),42),nn(n.b.b,u(t.b,86)),_D(u(t.a,194),u(t.b,86))}function f8e(n,e,t){var i,r;for(r=n.a.b,i=r.c.length;i<t;i++)bb(r,0,new Nc(n.a));$i(e,u(sn(r,r.c.length-t),30)),n.b[e.p]=t}function h8e(n,e,t,i,r){ko(),qs(Ns(Ls(As(Ds(new hs,0),r.d.e-n),e),r.d)),qs(Ns(Ls(As(Ds(new hs,0),t-r.a.e),r.a),i))}function jKn(n,e){var t;return n.d?Zc(n.b,e)?u(ee(n.b,e),47):(t=e.dg(),Ve(n.b,e,t),t):e.dg()}function l8e(n){var e=n.e;function t(i){return!i||i.length==0?"":" "+i.join(`
`)}return e&&(e.stack||t(n[oK]))}function HY(n,e){switch(e){case 3:return n.f!=0;case 4:return n.g!=0;case 5:return n.i!=0;case 6:return n.j!=0}return HQ(n,e)}function EKn(n){switch(n.g){case 0:return new W4n;case 1:return new Y4n;default:throw T(new Gn(cB+(n.f!=null?n.f:""+n.g)))}}function a8e(n){switch(n.g){case 0:return new J4n;case 1:return new Q4n;default:throw T(new Gn(GB+(n.f!=null?n.f:""+n.g)))}}function d8e(n){switch(n.g){case 1:return new H4n;case 2:return new fSn;default:throw T(new Gn(GB+(n.f!=null?n.f:""+n.g)))}}function MKn(n){switch(n.g){case 0:return new rz;case 1:return new cjn;default:throw T(new Gn(xP+(n.f!=null?n.f:""+n.g)))}}function dx(){ZZ();var n,e,t;t=hDe+++Date.now(),n=wi(y.Math.floor(t*Oy))&YS,e=wi(t-n*Etn),this.a=n^1502,this.b=e^NK}function Yo(){Yo=R,Ej=new h7(kh,0),_8=new h7("FIRST",1),ya=new h7(GXn,2),H8=new h7("LAST",3),xw=new h7(zXn,4)}function qC(){qC=R,bU=new EM(Ern,0),ydn=new EM("GROUP_DEC",1),Edn=new EM("GROUP_MIXED",2),jdn=new EM("GROUP_INC",3)}function b8e(n,e){var t,i,r,c;e&&(r=yl(e,"x"),t=new tyn(n),H4(t.a,(Jn(r),r)),c=yl(e,"y"),i=new ryn(n),U4(i.a,(Jn(c),c)))}function w8e(n,e){var t,i,r,c;e&&(r=yl(e,"x"),t=new uyn(n),_4(t.a,(Jn(r),r)),c=yl(e,"y"),i=new oyn(n),q4(i.a,(Jn(c),c)))}function g8e(n,e){var t,i,r,c;for(r=new Gc(e.gc()),i=e.Kc();i.Ob();)t=i.Pb(),c=OR(n,u(t,58)),c&&Fn(r.c,c);return r}function iw(n,e,t){var i,r;for(r=n.Kc();r.Ob();)if(i=r.Pb(),x(e)===x(i)||e!=null&&rt(e,i))return t&&r.Qb(),!0;return!1}function TKn(n){var e,t,i;return t=n.jh(),t?(e=n.Eh(),L(e,167)&&(i=TKn(u(e,167)),i!=null)?i+"."+t:t):null}function p8e(n){var e,t,i;return n.e==0?0:(e=n.d<<5,t=n.a[n.d-1],n.e<0&&(i=Oxn(n),i==n.d-1&&(--t,t=t|0)),e-=iy(t),e)}function m8e(n){var e,t,i;return n<fI.length?fI[n]:(t=n>>5,e=n&31,i=F(ye,_e,28,t+1,15,1),i[t]=1<<e,new Ya(1,t+1,i))}function CKn(n,e){var t,i;if(e){for(t=0;t<n.i;++t)if(i=u(n.g[t],378),i.mj(e))return!1;return ve(n,e)}else return!1}function qY(n,e,t){var i,r;if(++n.j,t.dc())return!1;for(r=t.Kc();r.Ob();)i=r.Pb(),n.qj(e,n.Zi(e,i)),++e;return!0}function v8e(n,e,t,i){var r,c;if(c=t-e,c<3)for(;c<3;)n*=10,++c;else{for(r=1;c>3;)r*=10,--c;n=(n+(r>>1))/r|0}return i.i=n,!0}function At(n,e){var t,i,r;if(t=(n.i==null&&bh(n),n.i),i=e.Lj(),i!=-1){for(r=t.length;i<r;++i)if(t[i]==e)return i}return-1}function k8e(n){var e,t,i,r,c;for(t=u(n.g,689),i=n.i-1;i>=0;--i)for(e=t[i],r=0;r<i;++r)if(c=t[r],LUn(n,e,c)){Jp(n,i);break}}function UY(n){var e,t,i,r;for(e=new _a,r=new J3(n.b.Kc());r.b.Ob();)i=u(r.b.Pb(),701),t=xje(i),jwe(e,e.a.length,t);return e.a}function GY(n){var e;return!n.c&&(n.c=new p0n),Yt(n.d,new v0n),vSe(n),e=hSe(n),qt(new Cn(null,new On(n.d,16)),new D9n(n)),e}function y8e(n,e){e.Ug("End label post-processing",1),qt(ut(rc(new Cn(null,new On(n.b,16)),new Dwn),new $wn),new xwn),e.Vg()}function zY(n){bx(),this.c=Af(S(C(IDe,1),Kn,845,0,[Jte])),this.b=new de,this.a=n,Ve(this.b,EO,1),nu(Qte,new Dkn(this))}function SKn(n,e,t){H$n(),njn.call(this),this.a=Wa(zQn,[J,Dtn],[603,217],0,[dI,f_],2),this.c=new mp,this.g=n,this.f=e,this.d=t}function XY(n,e){this.n=Wa(Ra,[J,PK],[376,28],14,[e,wi(y.Math.ceil(n/32))],2),this.o=n,this.p=e,this.j=n-1>>1,this.k=e-1>>1}function j8e(n){YT(),u(n.of((He(),Ca)),181).Hc((io(),hA))&&(u(n.of(Ww),181).Fc((zu(),K3)),u(n.of(Ca),181).Mc(hA))}function PKn(n){var e,t;e=n.d==(Yp(),dv),t=UZ(n),e&&!t||!e&&t?U(n.a,(cn(),Ch),(Bh(),Uj)):U(n.a,(cn(),Ch),(Bh(),qj))}function bx(){bx=R,nM(),EO=(cn(),g0),Qte=Af(S(C(zq,1),jrn,149,0,[Cj,Ws,C2,w0,qw,IH,Sv,Pv,OH,X8,T2,Kd,S2]))}function E8e(n,e){var t;return t=u(Wr(n,qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),t.Qc(WPn(t.gc()))}function IKn(n,e){var t,i;if(i=new Y3(n.a.ad(e,!0)),i.a.gc()<=1)throw T(new rp);return t=i.a.ec().Kc(),t.Pb(),u(t.Pb(),40)}function M8e(n,e,t){var i,r;return i=$(n.p[e.i.p])+$(n.d[e.i.p])+e.n.b+e.a.b,r=$(n.p[t.i.p])+$(n.d[t.i.p])+t.n.b+t.a.b,r-i}function VY(n,e){var t;return n.i>0&&(e.length<n.i&&(t=gk(wo(e).c,n.i),e=t),Oc(n.g,0,e,0,n.i)),e.length>n.i&&$t(e,n.i,null),e}function UC(n){var e;return n.Db&64?p5(n):(e=new ls(p5(n)),e.a+=" (instanceClassName: ",Er(e,n.D),e.a+=")",e.a)}function GC(n){var e,t,i,r;for(r=0,t=0,i=n.length;t<i;t++)e=(zn(t,n.length),n.charCodeAt(t)),e<64&&(r=lf(r,Ks(1,e)));return r}function T8e(n,e,t){var i,r;for(i=vi(t,mr),r=0;Ec(i,0)!=0&&r<e;r++)i=nr(i,vi(n[r],mr)),n[r]=Se(i),i=wb(i,32);return Se(i)}function Rk(n,e){var t,i,r,c;for(c=ru(n.e.Dh(),e),t=u(n.g,124),r=0;r<n.i;++r)if(i=t[r],c.am(i.Lk()))return!1;return!0}function wx(n,e){var t,i,r;return n.f>0?(n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=BHn(n,r,i,e),t!=-1):!1}function OKn(n,e){var t,i;n.a=nr(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d+=e,t=e-n.f,i=n.e+t,n.f=i-n.e-t,n.e=i}function WY(n,e){switch(e){case 3:Ib(n,0);return;case 4:Ob(n,0);return;case 5:eu(n,0);return;case 6:tu(n,0);return}vY(n,e)}function Rb(n,e){switch(e.g){case 1:return Mp(n.j,(Au(),Ron));case 2:return Mp(n.j,(Au(),Bon));default:return Ln(),Ln(),sr}}function JY(n){mb();var e;switch(e=n.Pc(),e.length){case 0:return qF;case 1:return new VN(Pe(e[0]));default:return new ID(q5e(e))}}function AKn(n,e){n.Xj();try{n.d.bd(n.e++,e),n.f=n.d.j,n.g=-1}catch(t){throw t=Ot(t),L(t,77)?T(new Ko):T(t)}}function gx(){gx=R,TU=new Cvn,zdn=new Svn,Xdn=new Pvn,Vdn=new Ivn,Wdn=new Ovn,Jdn=new Avn,Qdn=new Lvn,Ydn=new Nvn,Zdn=new Dvn}function zC(n,e){vX();var t,i;return t=O7((FE(),FE(),C8)),i=null,e==t&&(i=u(Dc(fun,n),624)),i||(i=new JIn(n),e==t&&Lr(fun,n,i)),i}function LKn(n){cw();var e;return(n.q?n.q:(Ln(),Ln(),Wh))._b((cn(),d0))?e=u(v(n,d0),203):e=u(v(Hi(n),z8),203),e}function rw(n,e){var t,i;return i=null,kt(n,(cn(),yO))&&(t=u(v(n,yO),96),t.pf(e)&&(i=t.of(e))),i==null&&(i=v(Hi(n),e)),i}function NKn(n,e){var t,i,r;return L(e,44)?(t=u(e,44),i=t.ld(),r=tw(n.Rc(),i),sh(r,t.md())&&(r!=null||n.Rc()._b(i))):!1}function gf(n,e){var t,i,r;return n.f>0&&(n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=$nn(n,r,i,e),t)?t.md():null}function Xc(n,e,t){var i,r,c;return n.Pj()?(i=n.i,c=n.Qj(),Lk(n,i,e),r=n.Ij(3,null,e,i,c),t?t.nj(r):t=r):Lk(n,n.i,e),t}function C8e(n,e,t){var i,r;return i=new ml(n.e,4,10,(r=e.c,L(r,90)?u(r,29):(An(),Os)),null,f1(n,e),!1),t?t.nj(i):t=i,t}function S8e(n,e,t){var i,r;return i=new ml(n.e,3,10,null,(r=e.c,L(r,90)?u(r,29):(An(),Os)),f1(n,e),!1),t?t.nj(i):t=i,t}function DKn(n){K0();var e;return e=new rr(u(n.e.of((He(),_2)),8)),n.B.Hc((io(),_v))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function ia(n){dh();var e,t;return t=Se(n),e=Se(U1(n,32)),e!=0?new HAn(t,e):t>10||t<0?new gl(1,t):kQn[t]}function Kk(n,e){var t;return Vr(n)&&Vr(e)&&(t=n%e,Sy<t&&t<vd)?t:Y1((Wen(Vr(n)?ds(n):n,Vr(e)?ds(e):e,!0),wa))}function j5(n,e){var t;bLe(e),t=u(v(n,(cn(),bO)),283),t&&U(n,bO,O7e(t)),zl(n.c),zl(n.f),qJ(n.d),qJ(u(v(n,mO),214))}function P8e(n){var e,t,i,r;for(i=uEe(n),Yt(i,BZn),r=n.d,r.c.length=0,t=new M(i);t.a<t.c.c.length;)e=u(E(t),466),hi(r,e.b)}function px(n){var e;n.c!=0&&(e=u(sn(n.a,n.b),294),e.b==1?(++n.b,n.b<n.a.c.length&&r9n(u(sn(n.a,n.b),294))):--e.b,--n.c)}function I8e(n){var e;e=n.a;do e=u(fe(new ie(ce(Qt(e).a.Kc(),new En))),18).d.i,e.k==(Vn(),Ti)&&nn(n.e,e);while(e.k==(Vn(),Ti))}function $Kn(n){this.e=F(ye,_e,28,n.length,15,1),this.c=F(so,Xh,28,n.length,16,1),this.b=F(so,Xh,28,n.length,16,1),this.f=0}function O8e(n){var e,t;for(n.j=F(Ii,Cr,28,n.p.c.length,15,1),t=new M(n.p);t.a<t.c.c.length;)e=u(E(t),10),n.j[e.p]=e.o.b/n.i}function A8e(n,e){var t,i,r,c;for(c=e.b.b,n.a=new Mt,n.b=F(ye,_e,28,c,15,1),t=0,r=ge(e.b,0);r.b!=r.d.c;)i=u(be(r),40),i.g=t++}function xKn(n,e,t){var i,r,c,s;for(c=e-n.e,s=t-n.f,r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),172),Hk(i,i.s+c,i.t+s);n.e=e,n.f=t}function Bk(n,e){var t,i;for(i=e.length,t=0;t<i;t+=2)xc(n,(zn(t,e.length),e.charCodeAt(t)),(zn(t+1,e.length),e.charCodeAt(t+1)))}function L8e(n,e){e.Ug("Min Size Postprocessing",1),ht(n,(_h(),Xw),y.Math.max($(B(z(n,Xw))),$(B(z(n,f9))))),e.Vg()}function QY(){QY=R,wdn=new fb(15),uoe=new Di((He(),M1),wdn),soe=new Di(qd,15),ooe=new Di(sU,Y(0)),coe=new Di(x2,Gm)}function go(){go=R,rE=new jM("PORTS",0),Gd=new jM("PORT_LABELS",1),iE=new jM("NODE_LABELS",2),Qw=new jM("MINIMUM_SIZE",3)}function XC(){XC=R,Kj=new rN("P1_WIDTH_APPROXIMATION",0),qO=new rN("P2_PACKING",1),Mq=new rN("P3_WHITESPACE_ELIMINATION",2)}function RKn(n){if(n.b==null){for(;n.a.Ob();)if(n.b=n.a.Pb(),!u(n.b,54).Jh())return!0;return n.b=null,!1}else return!0}function bm(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.Ne(e,c.d),t&&i==0)return c;i>=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function Fk(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.Ne(e,c.d),t&&i==0)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function N8e(n,e,t,i){var r,c,s;return r=!1,xAe(n.f,t,i)&&(e9e(n.f,n.a[e][t],n.a[e][i]),c=n.a[e],s=c[i],c[i]=c[t],c[t]=s,r=!0),r}function KKn(n,e,t){var i,r,c,s;for(r=u(ee(n.b,t),183),i=0,s=new M(e.j);s.a<s.c.c.length;)c=u(E(s),113),r[c.d.p]&&++i;return i}function YY(n,e,t){var i,r;i=u(Dc(Uv,e),122),r=u(Dc(B9,e),122),t?(Lr(Uv,n,i),Lr(B9,n,r)):(Lr(B9,n,i),Lr(Uv,n,r))}function BKn(n,e){var t,i,r,c;return t=e>>5,e&=31,r=n.d+t+(e==0?0:1),i=F(ye,_e,28,r,15,1),Aye(i,n.a,t,e),c=new Ya(n.e,r,i),J6(c),c}function D8e(n,e){var t,i,r;for(i=new ie(ce(Qt(n).a.Kc(),new En));pe(i);)if(t=u(fe(i),18),r=t.d.i,r.c==e)return!1;return!0}function ZY(n,e,t){var i,r,c,s,f;return s=n.k,f=e.k,i=t[s.g][f.g],r=B(rw(n,i)),c=B(rw(e,i)),y.Math.max((Jn(r),r),(Jn(c),c))}function $8e(){return Error.stackTraceLimit>0?(y.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function x8e(n,e){return Cf(),Cf(),Fs(fa),(y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:n<e?-1:n>e?1:sb(isNaN(n),isNaN(e)))>0}function nZ(n,e){return Cf(),Cf(),Fs(fa),(y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:n<e?-1:n>e?1:sb(isNaN(n),isNaN(e)))<0}function FKn(n,e){return Cf(),Cf(),Fs(fa),(y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:n<e?-1:n>e?1:sb(isNaN(n),isNaN(e)))<=0}function mx(n,e){for(var t=0;!e[t]||e[t]=="";)t++;for(var i=e[t++];t<e.length;t++)!e[t]||e[t]==""||(i+=n+e[t]);return i}function _Kn(n){var e,t;return e=u(Un(n.a,4),129),e!=null?(t=F(yU,TF,424,e.length,0,1),Oc(e,0,t,0,e.length),t):Ooe}function HKn(n){var e,t,i,r,c;if(n==null)return null;for(c=new Z,t=z$(n),i=0,r=t.length;i<r;++i)e=t[i],nn(c,Rc(e,!0));return c}function qKn(n){var e,t,i,r,c;if(n==null)return null;for(c=new Z,t=z$(n),i=0,r=t.length;i<r;++i)e=t[i],nn(c,Rc(e,!0));return c}function UKn(n){var e,t,i,r,c;if(n==null)return null;for(c=new Z,t=z$(n),i=0,r=t.length;i<r;++i)e=t[i],nn(c,Rc(e,!0));return c}function GKn(n,e){var t,i,r;if(n.c)Ib(n.c,e);else for(t=e-ao(n),r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),163),GKn(i,ao(i)+t)}function zKn(n,e){var t,i,r;if(n.c)Ob(n.c,e);else for(t=e-Pu(n),r=new M(n.d);r.a<r.c.c.length;)i=u(E(r),163),zKn(i,Pu(i)+t)}function ws(n,e,t){var i,r,c,s;for(c=e+t,Ri(e,c,n.length),s="",r=e;r<c;)i=y.Math.min(r+1e4,c),s+=Ywe(n.slice(r,i)),r=i;return s}function eZ(n){switch(n.g){case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:return!0;default:return!1}}function o1(){o1=R,W_=new f7(rin,0),Lsn=new f7(VXn,1),J_=new f7(sB,2),pv=new f7(ein,3),gv=new f7("GREEDY_MODEL_ORDER",4)}function lh(){lh=R,k1=new gM(kh,0),_hn=new gM("NODES_AND_EDGES",1),_H=new gM("PREFER_EDGES",2),HH=new gM("PREFER_NODES",3)}function tZ(n,e,t,i,r,c){this.a=n,this.c=e,this.b=t,this.f=i,this.d=r,this.e=c,this.c>0&&this.b>0&&(this.g=cT(this.c,this.b,this.a))}function R8e(n,e){var t=n.a,i;e=String(e),t.hasOwnProperty(e)&&(i=t[e]);var r=(F$(),VF)[typeof i],c=r?r(i):bY(typeof i);return c}function wm(n){var e,t,i;if(i=null,e=Eh in n.a,t=!e,t)throw T(new eh("Every element must have an id."));return i=Zp(dl(n,Eh)),i}function Kb(n){var e,t;for(t=a_n(n),e=null;n.c==2;)Ze(n),e||(e=(nt(),nt(),new P6(2)),pd(e,t),t=e),t.Jm(a_n(n));return t}function VC(n,e){var t,i,r;return n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=$nn(n,r,i,e),t?(V$n(n,t),t.md()):null}function XKn(n,e){return n.e>e.e?1:n.e<e.e?-1:n.d>e.d?n.e:n.d<e.d?-e.e:n.e*fY(n.a,e.a,n.d)}function VKn(n){return n>=48&&n<48+y.Math.min(10,10)?n-48:n>=97&&n<97?n-97+10:n>=65&&n<65?n-65+10:-1}function K8e(n,e){if(e.c==n)return e.d;if(e.d==n)return e.c;throw T(new Gn("Input edge is not connected to the input port."))}function B8e(n){if(JC(nv,n))return _n(),ov;if(JC(cF,n))return _n(),ga;throw T(new Gn("Expecting true or false"))}function iZ(n){switch(typeof n){case nK:return t1(n);case atn:return pp(n);case i3:return PSn(n);default:return n==null?0:lb(n)}}function ah(n,e){if(n.a<0)throw T(new Ar("Did not call before(...) or after(...) before calling add(...)."));return QX(n,n.a,e),n}function rZ(n){return $T(),L(n,162)?u(ee(hE,TQn),295).Rg(n):Zc(hE,wo(n))?u(ee(hE,wo(n)),295).Rg(n):null}function iu(n){var e,t;return n.Db&32||(t=(e=u(Un(n,16),29),se(e||n.ii())-se(n.ii())),t!=0&&Xp(n,32,F(ki,Kn,1,t,5,1))),n}function Xp(n,e,t){var i;n.Db&e?t==null?jMe(n,e):(i=Bx(n,e),i==-1?n.Eb=t:$t(cd(n.Eb),i,t)):t!=null&&GCe(n,e,t)}function F8e(n,e,t,i){var r,c;e.c.length!=0&&(r=$Te(t,i),c=xEe(e),qt(fC(new Cn(null,new On(c,1)),new N3n),new TOn(n,t,r,i)))}function _8e(n,e){var t,i,r,c;return i=n.a.length-1,t=e-n.b&i,c=n.c-e&i,r=n.c-n.b&i,ESn(t<r),t>=c?(B6e(n,e),-1):(K6e(n,e),1)}function WC(n){var e,t,i;if(i=n.Jh(),!i)for(e=0,t=n.Ph();t;t=t.Ph()){if(++e>IK)return t.Qh();if(i=t.Jh(),i||t==n)break}return i}function WKn(n,e){var t;return x(e)===x(n)?!0:!L(e,21)||(t=u(e,21),t.gc()!=n.gc())?!1:n.Ic(t)}function H8e(n,e){return n.e<e.e?-1:n.e>e.e?1:n.f<e.f?-1:n.f>e.f?1:mt(n)-mt(e)}function JC(n,e){return Jn(n),e==null?!1:Sn(n,e)?!0:n.length==e.length&&Sn(n.toLowerCase(),e.toLowerCase())}function Tl(n){var e,t;return Ec(n,-129)>0&&Ec(n,128)<0?(ZPn(),e=Se(n)+128,t=mun[e],!t&&(t=mun[e]=new vG(n)),t):new vG(n)}function dd(){dd=R,Aw=new aM(kh,0),Lon=new aM("INSIDE_PORT_SIDE_GROUPS",1),P_=new aM("GROUP_MODEL_ORDER",2),I_=new aM(ein,3)}function q8e(n){var e;return n.b||xhe(n,(e=$ae(n.e,n.a),!e||!Sn(cF,gf((!e.b&&(e.b=new lo((An(),ar),pc,e)),e.b),"qualified")))),n.c}function U8e(n,e){var t,i;for(t=(zn(e,n.length),n.charCodeAt(e)),i=e+1;i<n.length&&(zn(i,n.length),n.charCodeAt(i)==t);)++i;return i-e}function G8e(n,e){(!e&&console.groupCollapsed!=null?console.groupCollapsed:console.group??console.log).call(console,n)}function z8e(n,e,t,i){i==n,u(t.b,68),u(t.b,68),u(i.b,68),u(i.b,68).c.b,zJ(i,e,n)}function X8e(n){var e,t;for(e=new M(n.g);e.a<e.c.c.length;)u(E(e),568);t=new hqn(n.g,$(n.a),n.c),yLe(t),n.g=t.b,n.d=t.a}function JKn(n,e,t){var i,r,c;for(c=new M(t.a);c.a<c.c.c.length;)r=u(E(c),225),i=new NM(u(ee(n.a,r.b),68)),nn(e.a,i),JKn(n,i,r)}function V8e(n,e,t){var i,r,c;return i=u(N(no(n.a),e),89),c=(r=i.c,r||(An(),Zf)),(c.Vh()?ea(n.b,u(c,54)):c)==t?KS(i):F4(i,t),c}function cZ(n,e,t){e.b=y.Math.max(e.b,-t.a),e.c=y.Math.max(e.c,t.a-n.a),e.d=y.Math.max(e.d,-t.b),e.a=y.Math.max(e.a,t.b-n.b)}function uZ(n,e,t){this.c=n,this.f=new Z,this.e=new Ni,this.j=new oW,this.n=new oW,this.b=e,this.g=new Ho(e.c,e.d,e.b,e.a),this.a=t}function vx(n){var e,t,i,r;for(this.a=new rh,this.d=new ni,this.e=0,t=n,i=0,r=t.length;i<r;++i)e=t[i],!this.f&&(this.f=e),_D(this,e)}function QKn(n){dh(),n.length==0?(this.e=0,this.d=1,this.a=S(C(ye,1),_e,28,15,[0])):(this.e=1,this.d=n.length,this.a=n,J6(this))}function E5(n,e,t){njn.call(this),this.a=F(zQn,Dtn,217,(wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])).length,0,1),this.b=n,this.d=e,this.c=t}function W8e(n){var e,t,i,r,c,s;for(s=u(v(n,(W(),st)),12),U(s,jv,n.i.n.b),e=hh(n.e),i=e,r=0,c=i.length;r<c;++r)t=i[r],Oi(t,s)}function J8e(n){var e,t,i,r,c,s;for(t=u(v(n,(W(),st)),12),U(t,jv,n.i.n.b),e=hh(n.g),r=e,c=0,s=r.length;c<s;++c)i=r[c],Zi(i,t)}function Q8e(n,e){DD();var t,i;for(i=new ie(ce(Ml(n).a.Kc(),new En));pe(i);)if(t=u(fe(i),18),t.d.i==e||t.c.i==e)return t;return null}function YKn(n,e){var t,i;return t=e.qi(n.a),t&&(i=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),Qe)),i!=null)?i:e.xe()}function Y8e(n,e){var t,i;return t=e.qi(n.a),t&&(i=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),Qe)),i!=null)?i:e.xe()}function Z8e(n,e){var t,i;return t=jc(n.a.c.p,e.a.c.p),t!=0?t:(i=jc(n.a.d.i.p,e.a.d.i.p),i!=0?i:jc(e.a.d.p,n.a.d.p))}function n9e(n,e){var t,i,r,c;for(i=0,r=e.gc();i<r;++i)t=e.Tl(i),L(t,102)&&u(t,19).Bb&kc&&(c=e.Ul(i),c!=null&&OR(n,u(c,58)))}function ZKn(n,e){var t,i,r;if(nn(mI,n),e.Fc(n),t=u(ee(p_,n),21),t)for(r=t.Kc();r.Ob();)i=u(r.Pb(),27),qr(mI,i,0)!=-1||ZKn(i,e)}function e9e(n,e,t){var i,r;eR(n.e,e,t,(en(),Wn)),eR(n.i,e,t,Zn),n.a&&(r=u(v(e,(W(),st)),12),i=u(v(t,st),12),FD(n.g,r,i))}function nBn(n,e,t){var i,r,c;i=e.c.p,c=e.p,n.b[i][c]=new XOn(n,e),t&&(n.a[i][c]=new R7n(e),r=u(v(e,(W(),s0)),10),r&&In(n.d,r,e))}function t9e(n,e,t){var i,r,c,s;return c=e.j,s=t.j,c!=s?c.g-s.g:(i=n.f[e.p],r=n.f[t.p],i==0&&r==0?0:i==0?-1:r==0?1:bt(i,r))}function i9e(){var n;return cI!=0&&(n=Date.now(),n-hQn>2e3&&(hQn=n,uI=y.setTimeout(_he,10))),cI++==0?(ime((lz(),sun)),!0):!1}function r9e(n,e,t){var i;(LQn?(o8e(n),!0):NQn||$Qn?(a4(),!0):DQn&&(a4(),!1))&&(i=new aPn(e),i.b=t,aje(n,i))}function kx(n,e){var t;t=!n.A.Hc((go(),Gd))||n.q==(Ai(),qc),n.u.Hc((zu(),Rl))?t?XLe(n,e):UGn(n,e):n.u.Hc(Oa)&&(t?dLe(n,e):czn(n,e))}function eBn(n){var e;x(z(n,(He(),B2)))===x((jl(),uA))&&(St(n)?(e=u(z(St(n),B2),346),ht(n,B2,e)):ht(n,B2,E9))}function c9e(n){var e,t;return kt(n.d.i,(cn(),Mv))?(e=u(v(n.c.i,Mv),17),t=u(v(n.d.i,Mv),17),jc(e.a,t.a)>0):!1}function tBn(n,e,t){return new Ho(y.Math.min(n.a,e.a)-t/2,y.Math.min(n.b,e.b)-t/2,y.Math.abs(n.a-e.a)+t,y.Math.abs(n.b-e.b)+t)}function iBn(n){var e;this.d=new Z,this.j=new Ni,this.g=new Ni,e=n.g.b,this.f=u(v(Hi(e),(cn(),Lo)),88),this.e=$(B(nS(e,qw)))}function rBn(n){this.d=new Z,this.e=new Ql,this.c=F(ye,_e,28,(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,15,1),this.b=n}function oZ(n,e,t){var i;switch(i=t[n.g][e],n.g){case 1:case 3:return new V(0,i);case 2:case 4:return new V(i,0);default:return null}}function cBn(n,e,t){var i,r;r=u(z7(e.f),205);try{r.rf(n,t),hOn(e.f,r)}catch(c){throw c=Ot(c),L(c,103)?(i=c,T(i)):T(c)}}function uBn(n,e,t){var i,r,c,s,f,h;return i=null,f=Yen(z4(),e),c=null,f&&(r=null,h=Jen(f,t),s=null,h!=null&&(s=n.qf(f,h)),r=s,c=r),i=c,i}function yx(n,e,t,i){var r;if(r=n.length,e>=r)return r;for(e=e>0?e:0;e<r&&!B$((zn(e,n.length),n.charCodeAt(e)),t,i);e++);return e}function Rf(n,e){var t,i;for(i=n.c.length,e.length<i&&(e=qE(new Array(i),e)),t=0;t<i;++t)$t(e,t,n.c[t]);return e.length>i&&$t(e,i,null),e}function oBn(n,e){var t,i;for(i=n.a.length,e.length<i&&(e=qE(new Array(i),e)),t=0;t<i;++t)$t(e,t,n.a[t]);return e.length>i&&$t(e,i,null),e}function gm(n,e){var t,i;if(++n.j,e!=null&&(t=(i=n.a.Cb,L(i,99)?u(i,99).th():null),hMe(e,t))){Xp(n.a,4,t);return}Xp(n.a,4,u(e,129))}function u9e(n){var e;if(n==null)return null;if(e=lTe(Rc(n,!0)),e==null)throw T(new kL("Invalid hexBinary value: '"+n+"'"));return e}function QC(n,e,t){var i;e.a.length>0&&(nn(n.b,new PPn(e.a,t)),i=e.a.length,0<i?e.a=qo(e.a,0,0):0>i&&(e.a+=OCn(F(fs,gh,28,-i,15,1))))}function sBn(n,e,t){var i,r,c;if(!t[e.d])for(t[e.d]=!0,r=new M(xg(e));r.a<r.c.c.length;)i=u(E(r),218),c=HC(i,e),sBn(n,c,t)}function s1(n,e,t){var i,r,c;return r=u(ee(n.e,e),400),r?(c=bV(r,t),LCn(n,r),c):(i=new qV(n,e,t),Ve(n.e,e,i),rAn(i),null)}function o9e(n,e,t,i){var r,c,s;return r=new ml(n.e,1,13,(s=e.c,s||(An(),Zf)),(c=t.c,c||(An(),Zf)),f1(n,e),!1),i?i.nj(r):i=r,i}function jx(){return VS(),S(C(vYn,1),G,164,0,[pYn,gYn,mYn,sYn,oYn,fYn,aYn,lYn,hYn,wYn,bYn,dYn,cYn,rYn,uYn,tYn,eYn,iYn,ZQn,YQn,nYn,h_])}function pm(n){switch(n.g){case 4:return new V(0,-1);case 1:return new V(1,0);case 2:return new V(-1,0);default:return new V(0,1)}}function Ex(n){switch(n.g){case 1:return ci(),us;case 4:return ci(),Kr;case 2:return ci(),Xr;case 3:return ci(),Wf}return ci(),Jf}function s9e(n){var e;switch(e=n.hj(null),e){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}function pf(){pf=R,xn=new g7("PARENTS",0),pi=new g7("NODES",1),Ih=new g7("EDGES",2),Fd=new g7("PORTS",3),E1=new g7("LABELS",4)}function f9e(n,e,t){var i;switch(i=t.q.getFullYear()-ha+ha,i<0&&(i=-i),e){case 1:n.a+=i;break;case 2:Kh(n,i%100,2);break;default:Kh(n,i,e)}}function ge(n,e){var t,i;if(z0(e,n.b),e>=n.b>>1)for(i=n.c,t=n.b;t>e;--t)i=i.b;else for(i=n.a.a,t=0;t<e;++t)i=i.a;return new lPn(n,e,i)}function YC(){YC=R,u_=new Hz("NUM_OF_EXTERNAL_SIDES_THAN_NUM_OF_EXTENSIONS_LAST",0),Run=new Hz("CORNER_CASES_THAN_SINGLE_SIDE_LAST",1)}function fBn(n){this.b=new Z,this.e=new Z,this.d=n,this.a=!s4(ut(new Cn(null,new pb(new Lf(n.b))),new Z3(new vpn))).Bd((Va(),v3))}function hBn(n,e){var t,i,r,c;for(t=0,r=new M(e.a);r.a<r.c.c.length;)i=u(E(r),10),c=i.o.a+i.d.c+i.d.b+n.j,t=y.Math.max(t,c);return t}function lBn(n,e){var t,i,r;r=e.d.i,i=r.k,!(i==(Vn(),zt)||i==Gf)&&(t=new ie(ce(Qt(r).a.Kc(),new En)),pe(t)&&Ve(n.k,e,u(fe(t),18)))}function h9e(n,e){return kl(),bt((n.a.b==0?new V(n.c.e.a,n.c.e.b):u(p4(n.a),8)).b,(e.a.b==0?new V(e.c.e.a,e.c.e.b):u(p4(e.a),8)).b)}function l9e(n,e){return kl(),bt((n.a.b==0?new V(n.c.e.a,n.c.e.b):u(p4(n.a),8)).a,(e.a.b==0?new V(e.c.e.a,e.c.e.b):u(p4(e.a),8)).a)}function a9e(n,e){return kl(),bt((n.a.b==0?new V(n.b.e.a,n.b.e.b):u($s(n.a),8)).a,(e.a.b==0?new V(e.b.e.a,e.b.e.b):u($s(e.a),8)).a)}function d9e(n,e){return kl(),bt((n.a.b==0?new V(n.b.e.a,n.b.e.b):u($s(n.a),8)).b,(e.a.b==0?new V(e.b.e.a,e.b.e.b):u($s(e.a),8)).b)}function Kg(){Kg=R,Pa=new m7("DISTRIBUTED",0),eE=new m7("JUSTIFIED",1),adn=new m7("BEGIN",2),M9=new m7(qm,3),ddn=new m7("END",4)}function Mx(n,e){var t,i,r;return i=$n(n.Dh(),e),t=e-n.ji(),t<0?(r=n.Ih(i),r>=0?n.Wh(r):hR(n,i)):t<0?hR(n,i):u(i,69).wk().Bk(n,n.hi(),t)}function aBn(n){var e,t,i;for(i=(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),n.o),t=i.c.Kc();t.e!=t.i.gc();)e=u(t.Yj(),44),e.md();return rk(i)}function rn(n){var e;if(L(n.a,4)){if(e=rZ(n.a),e==null)throw T(new Ar(DVn+n.b+"'. "+NVn+(ll(lE),lE.k)+dcn));return e}else return n.a}function b9e(n,e){var t,i;if(n.j.length!=e.j.length)return!1;for(t=0,i=n.j.length;t<i;t++)if(!Sn(n.j[t],e.j[t]))return!1;return!0}function ue(n){var e;try{return e=n.i.Xb(n.e),n.Xj(),n.g=n.e++,e}catch(t){throw t=Ot(t),L(t,77)?(n.Xj(),T(new nc)):T(t)}}function Tx(n){var e;try{return e=n.c.Vi(n.e),n.Xj(),n.g=n.e++,e}catch(t){throw t=Ot(t),L(t,77)?(n.Xj(),T(new nc)):T(t)}}function ZC(n){var e,t,i,r;for(r=0,t=0,i=n.length;t<i;t++)e=(zn(t,n.length),n.charCodeAt(t)),e>=64&&e<128&&(r=lf(r,Ks(1,e-64)));return r}function nS(n,e){var t,i;return i=null,kt(n,(He(),$3))&&(t=u(v(n,$3),96),t.pf(e)&&(i=t.of(e))),i==null&&Hi(n)&&(i=v(Hi(n),e)),i}function w9e(n,e){var t;return t=u(v(n,(cn(),Rr)),75),yN(e,NZn)?t?vo(t):(t=new Tu,U(n,Rr,t)):t&&U(n,Rr,null),t}function M5(){M5=R,aon=(He(),qan),w_=Ean,LYn=x2,lon=M1,xYn=(aS(),Uun),$Yn=Hun,RYn=zun,DYn=_un,NYn=(Q$(),son),b_=IYn,hon=OYn,pI=AYn}function eS(n){switch(Dz(),this.c=new Z,this.d=n,n.g){case 0:case 2:this.a=HW(Aon),this.b=Pt;break;case 3:case 1:this.a=Aon,this.b=li}}function g9e(n){var e;Ep(u(v(n,(cn(),Ft)),101))&&(e=n.b,nHn((Nn(0,e.c.length),u(e.c[0],30))),nHn(u(sn(e,e.c.length-1),30)))}function p9e(n,e){e.Ug("Self-Loop post-processing",1),qt(ut(ut(rc(new Cn(null,new On(n.b,16)),new s2n),new f2n),new h2n),new l2n),e.Vg()}function dBn(n,e,t){var i,r;if(n.c)eu(n.c,n.c.i+e),tu(n.c,n.c.j+t);else for(r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),163),dBn(i,e,t)}function m9e(n){var e;if(n==null)return null;if(e=iNe(Rc(n,!0)),e==null)throw T(new kL("Invalid base64Binary value: '"+n+"'"));return e}function Zo(n,e){var t;t=n.fd(e);try{return t.Pb()}catch(i){throw i=Ot(i),L(i,112)?T(new Or("Can't get element "+e)):T(i)}}function bBn(n,e){var t,i,r;for(t=n.o,r=u(u(ot(n.r,e),21),87).Kc();r.Ob();)i=u(r.Pb(),117),i.e.a=y7e(i,t.a),i.e.b=t.b*$(B(i.b.of(bI)))}function v9e(n,e){var t,i,r;for(r=new Gc(e.gc()),i=e.Kc();i.Ob();)t=u(i.Pb(),293),t.c==t.f?Em(n,t,t.c):Hje(n,t)||Fn(r.c,t);return r}function wBn(n){var e;return e=new x1,e.a+="n",n.k!=(Vn(),zt)&&Be(Be((e.a+="(",e),PN(n.k).toLowerCase()),")"),Be((e.a+="_",e),qk(n)),e.a}function k9e(n,e){var t,i,r,c;return r=n.k,t=$(B(v(n,(W(),f0)))),c=e.k,i=$(B(v(e,f0))),c!=(Vn(),Zt)?-1:r!=Zt?1:t==i?0:t<i?-1:1}function y9e(n,e){var t,i;return t=u(u(ee(n.g,e.a),42).a,68),i=u(u(ee(n.g,e.b),42).a,68),J1(e.a,e.b)-J1(e.a,LX(t.b))-J1(e.b,LX(i.b))}function gBn(n,e){var t;switch(t=u(Mr(n.b,e),127).n,e.g){case 1:n.t>=0&&(t.d=n.t);break;case 3:n.t>=0&&(t.a=n.t)}n.C&&(t.b=n.C.b,t.c=n.C.c)}function T5(){T5=R,Dhn=new l7(Ern,0),BH=new l7(sB,1),FH=new l7("LINEAR_SEGMENTS",2),W8=new l7("BRANDES_KOEPF",3),J8=new l7(sVn,4)}function C5(){C5=R,fj=new hM(eP,0),wI=new hM(HK,1),gI=new hM(qK,2),hj=new hM(UK,3),fj.a=!1,wI.a=!0,gI.a=!1,hj.a=!0}function Vp(){Vp=R,uj=new fM(eP,0),cj=new fM(HK,1),oj=new fM(qK,2),sj=new fM(UK,3),uj.a=!1,cj.a=!0,oj.a=!1,sj.a=!0}function Wp(n,e,t,i){var r;return t>=0?n.Sh(e,t,i):(n.Ph()&&(i=(r=n.Fh(),r>=0?n.Ah(i):n.Ph().Th(n,-1-r,null,i))),n.Ch(e,t,i))}function sZ(n,e){switch(e){case 7:!n.e&&(n.e=new Dn(Vt,n,7,4)),me(n.e);return;case 8:!n.d&&(n.d=new Dn(Vt,n,8,5)),me(n.d);return}WY(n,e)}function ht(n,e,t){return t==null?(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),VC(n.o,e)):(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),zk(n.o,e,t)),n}function pBn(n,e){Ln();var t,i,r,c;for(t=n,c=e,L(n,21)&&!L(e,21)&&(t=e,c=n),r=t.Kc();r.Ob();)if(i=r.Pb(),c.Hc(i))return!1;return!0}function j9e(n,e,t,i){if(e.a<i.a)return!0;if(e.a==i.a){if(e.b<i.b)return!0;if(e.b==i.b&&n.b>t.b)return!0}return!1}function Cx(n,e){return Si(n)?!!iQn[e]:n.Sm?!!n.Sm[e]:$0(n)?!!tQn[e]:D0(n)?!!eQn[e]:!1}function E9e(n){var e;e=n.a;do e=u(fe(new ie(ce(ji(e).a.Kc(),new En))),18).c.i,e.k==(Vn(),Ti)&&n.b.Fc(e);while(e.k==(Vn(),Ti));n.b=Qo(n.b)}function mBn(n,e){var t,i,r;for(r=n,i=new ie(ce(ji(e).a.Kc(),new En));pe(i);)t=u(fe(i),18),t.c.i.c&&(r=y.Math.max(r,t.c.i.c.p));return r}function M9e(n,e){var t,i,r;for(r=0,i=u(u(ot(n.r,e),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r+=t.d.d+t.b.Mf().b+t.d.a,i.Ob()&&(r+=n.w);return r}function T9e(n,e){var t,i,r;for(r=0,i=u(u(ot(n.r,e),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r+=t.d.b+t.b.Mf().a+t.d.c,i.Ob()&&(r+=n.w);return r}function vBn(n){var e,t,i,r;if(i=0,r=aw(n),r.c.length==0)return 1;for(t=new M(r);t.a<t.c.c.length;)e=u(E(t),27),i+=vBn(e);return i}function C9e(n){var e,t,i;for(i=n.c.a,n.p=(Pe(i),new _u(i)),t=new M(i);t.a<t.c.c.length;)e=u(E(t),10),e.p=fEe(e).a;Ln(),Yt(n.p,new Vpn)}function S9e(n,e,t){var i,r,c,s;return i=n.dd(e),i!=-1&&(n.Pj()?(c=n.Qj(),s=tT(n,i),r=n.Ij(4,s,null,i,c),t?t.nj(r):t=r):tT(n,i)),t}function cr(n,e,t){var i,r,c,s;return i=n.dd(e),i!=-1&&(n.Pj()?(c=n.Qj(),s=Jp(n,i),r=n.Ij(4,s,null,i,c),t?t.nj(r):t=r):Jp(n,i)),t}function P9e(n,e,t,i){var r,c,s;t.Xh(e)&&(dr(),a$(e)?(r=u(t.Mh(e),160),n9e(n,r)):(c=(s=e,s?u(i,54).gi(s):null),c&&Ofe(t.Mh(e),c)))}function tS(n,e,t,i){var r,c,s;return c=$n(n.Dh(),e),r=e-n.ji(),r<0?(s=n.Ih(c),s>=0?n.Lh(s,t,!0):Hb(n,c,t)):u(c,69).wk().yk(n,n.hi(),r,t,i)}function I9e(n,e,t,i){var r,c;c=e.pf((He(),F2))?u(e.of(F2),21):n.j,r=d5e(c),r!=(VS(),h_)&&(t&&!eZ(r)||dnn(aTe(n,r,i),e))}function O9e(n){switch(n.g){case 1:return Db(),rj;case 3:return Db(),ij;case 2:return Db(),a_;case 4:return Db(),l_;default:return null}}function A9e(n,e,t){if(n.e)switch(n.b){case 1:yge(n.c,e,t);break;case 0:jge(n.c,e,t)}else FLn(n.c,e,t);n.a[e.p][t.p]=n.c.i,n.a[t.p][e.p]=n.c.e}function kBn(n){var e,t;if(n==null)return null;for(t=F(Qh,J,199,n.length,0,2),e=0;e<t.length;e++)t[e]=u(I3e(n[e],n[e].length),199);return t}function iS(n){var e;if(W$(n))return aT(n),n.ul()&&(e=N5(n.e,n.b,n.c,n.a,n.j),n.j=e),n.g=n.a,++n.a,++n.c,n.i=0,n.j;throw T(new nc)}function L9e(n,e){var t,i,r,c;return c=n.o,t=n.p,c<t?c*=c:t*=t,i=c+t,c=e.o,t=e.p,c<t?c*=c:t*=t,r=c+t,i<r?-1:i==r?0:1}function f1(n,e){var t,i,r;if(r=eFn(n,e),r>=0)return r;if(n.ol()){for(i=0;i<n.i;++i)if(t=n.pl(u(n.g[i],58)),x(t)===x(e))return i}return-1}function Bg(n,e,t){var i,r;if(r=n.gc(),e>=r)throw T(new F0(e,r));if(n.Si()&&(i=n.dd(t),i>=0&&i!=e))throw T(new Gn(Vy));return n.Xi(e,t)}function fZ(n,e){if(this.a=u(Pe(n),253),this.b=u(Pe(e),253),n.Ed(e)>0||n==(dL(),_F)||e==(bL(),HF))throw T(new Gn("Invalid range: "+qLn(n,e)))}function yBn(n){var e,t;for(this.b=new Z,this.c=n,this.a=!1,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),10),this.a=this.a|e.k==(Vn(),zt)}function N9e(n,e){var t,i,r;for(t=hb(new za,n),r=new M(e);r.a<r.c.c.length;)i=u(E(r),125),qs(Ns(Ls(Ds(As(new hs,0),0),t),i));return t}function jBn(n,e,t){t.Ug("Compound graph preprocessor",1),n.a=new Mb,FGn(n,e,null),SOe(n,e),QTe(n),U(e,(W(),efn),n.a),n.a=null,Hu(n.b),t.Vg()}function EBn(n,e,t){var i,r,c;for(r=new ie(ce((e?ji(n):Qt(n)).a.Kc(),new En));pe(r);)i=u(fe(r),18),c=e?i.c.i:i.d.i,c.k==(Vn(),Sc)&&$i(c,t)}function D9e(n,e){var t,i,r;for(e.Ug("Untreeify",1),t=u(v(n,(pt(),yln)),15),r=t.Kc();r.Ob();)i=u(r.Pb(),65),Re(i.b.d,i),Re(i.c.b,i);e.Vg()}function $9e(n){var e,t,i;for(i=u(ot(n.a,(ow(),zI)),15).Kc();i.Ob();)t=u(i.Pb(),105),e=jZ(t),T4(n,t,e[0],(Lb(),c0),0),T4(n,t,e[1],u0,1)}function x9e(n){var e,t,i;for(i=u(ot(n.a,(ow(),XI)),15).Kc();i.Ob();)t=u(i.Pb(),105),e=jZ(t),T4(n,t,e[0],(Lb(),c0),0),T4(n,t,e[1],u0,1)}function cw(){cw=R,CO=new wM(kh,0),RH=new wM("PORT_POSITION",1),I2=new wM("NODE_SIZE_WHERE_SPACE_PERMITS",2),P2=new wM("NODE_SIZE",3)}function rS(){rS=R,Tq=new cN("INTERACTIVE_NODE_REORDERER",0),Sq=new cN("MIN_SIZE_PRE_PROCESSOR",1),Cq=new cN("MIN_SIZE_POST_PROCESSOR",2)}function Bh(){Bh=R,Xq=new v6("AUTOMATIC",0),qj=new v6(s3,1),Uj=new v6(f3,2),eA=new v6("TOP",3),ZO=new v6(xtn,4),nA=new v6(qm,5)}function hZ(n,e,t,i){Sm();var r,c;for(r=0,c=0;c<t;c++)r=nr(er(vi(e[c],mr),vi(i,mr)),vi(Se(r),mr)),n[c]=Se(r),r=U1(r,32);return Se(r)}function lZ(n,e,t){var i,r;for(r=0,i=0;i<f_;i++)r=y.Math.max(r,Z$(n.a[e.g][i],t));return e==(wf(),Wc)&&n.b&&(r=y.Math.max(r,n.b.b)),r}function cS(n,e){var t,i;if(iV(e>0),(e&-e)==e)return wi(e*to(n,31)*4656612873077393e-25);do t=to(n,31),i=t%e;while(t-i+(e-1)<0);return wi(i)}function R9e(n,e,t){switch(t.g){case 1:n.a=e.a/2,n.b=0;break;case 2:n.a=e.a,n.b=e.b/2;break;case 3:n.a=e.a/2,n.b=e.b;break;case 4:n.a=0,n.b=e.b/2}}function _k(n,e,t,i){var r,c;for(r=e;r<n.c.length;r++)if(c=(Nn(r,n.c.length),u(n.c[r],12)),t.Mb(c))Fn(i.c,c);else return r;return n.c.length}function Sx(n){switch(n.g){case 0:return null;case 1:return new Mxn;case 2:return new cz;default:throw T(new Gn(GB+(n.f!=null?n.f:""+n.g)))}}function Hk(n,e,t){var i,r;for(Vve(n,e-n.s,t-n.t),r=new M(n.n);r.a<r.c.c.length;)i=u(E(r),209),ffe(i,i.e+e-n.s),hfe(i,i.f+t-n.t);n.s=e,n.t=t}function K9e(n){var e,t,i,r,c;for(t=0,r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),125),i.d=t++;return e=Xye(n),c=null,e.c.length>1&&(c=N9e(n,e)),c}function MBn(n){var e;return e=$(B(z(n,(He(),Qj))))*y.Math.sqrt((!n.a&&(n.a=new q(Ye,n,10,11)),n.a).i),new V(e,e/$(B(z(n,rA))))}function Px(n){var e;return n.f&&n.f.Vh()&&(e=u(n.f,54),n.f=u(ea(n,e),84),n.f!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,9,8,e,n.f))),n.f}function Ix(n){var e;return n.i&&n.i.Vh()&&(e=u(n.i,54),n.i=u(ea(n,e),84),n.i!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,9,7,e,n.i))),n.i}function br(n){var e;return n.b&&n.b.Db&64&&(e=n.b,n.b=u(ea(n,e),19),n.b!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,9,21,e,n.b))),n.b}function uS(n,e){var t,i,r;n.d==null?(++n.e,++n.f):(i=e.Bi(),uCe(n,n.f+1),r=(i&et)%n.d.length,t=n.d[r],!t&&(t=n.d[r]=n.dk()),t.Fc(e),++n.f)}function aZ(n,e,t){var i;return e.tk()?!1:e.Ik()!=-2?(i=e.ik(),i==null?t==null:rt(i,t)):e.qk()==n.e.Dh()&&t==null}function oS(){var n;Mo(16,$zn),n=sxn(16),this.b=F(UF,My,303,n,0,1),this.c=F(UF,My,303,n,0,1),this.a=null,this.e=null,this.i=0,this.f=n-1,this.g=0}function Cl(n){mV.call(this),this.k=(Vn(),zt),this.j=(Mo(6,mw),new Gc(6)),this.b=(Mo(2,mw),new Gc(2)),this.d=new sL,this.f=new ZG,this.a=n}function B9e(n){var e,t;n.c.length<=1||(e=Pqn(n,(en(),ae)),w_n(n,u(e.a,17).a,u(e.b,17).a),t=Pqn(n,Wn),w_n(n,u(t.a,17).a,u(t.b,17).a))}function F9e(n,e,t){var i,r;for(r=n.a.b,i=r.c.length;i<t;i++)bb(r,r.c.length,new Nc(n.a));$i(e,(Nn(t-1,r.c.length),u(r.c[t-1],30))),n.b[e.p]=t}function TBn(n,e){var t,i,r;for(n.b[e.g]=1,i=ge(e.d,0);i.b!=i.d.c;)t=u(be(i),65),r=t.c,n.b[r.g]==1?Re(n.a,t):n.b[r.g]==2?n.b[r.g]=1:TBn(n,r)}function CBn(n,e,t,i){var r,c,s;for(r=u(ot(i?n.a:n.b,e),21),s=r.Kc();s.Ob();)if(c=u(s.Pb(),27),NS(n,t,c))return!0;return!1}function Ox(n){var e,t;for(t=new ne(n);t.e!=t.i.gc();)if(e=u(ue(t),89),e.e||(!e.d&&(e.d=new ti(jr,e,1)),e.d).i!=0)return!0;return!1}function Ax(n){var e,t;for(t=new ne(n);t.e!=t.i.gc();)if(e=u(ue(t),89),e.e||(!e.d&&(e.d=new ti(jr,e,1)),e.d).i!=0)return!0;return!1}function _9e(n){var e,t,i;for(e=0,i=new M(n.c.a);i.a<i.c.c.length;)t=u(E(i),10),e+=wl(new ie(ce(Qt(t).a.Kc(),new En)));return e/n.c.a.c.length}function Lx(){Lx=R,ean=(ER(),Q1n),nan=new fb(8),new Di((He(),M1),nan),new Di(qd,8),hue=W1n,Y1n=tue,Z1n=iue,fue=new Di(zj,(_n(),!1))}function H9e(n,e,t){var i;t.Ug("Shrinking tree compaction",1),on(un(v(e,(J4(),A8))))?(Jme(n,e.f),QDn(e.f,(i=e.c,i))):QDn(e.f,e.c),t.Vg()}function dZ(n,e,t,i){switch(e){case 7:return!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e;case 8:return!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d}return xY(n,e,t,i)}function Nx(n){var e;return n.a&&n.a.Vh()&&(e=u(n.a,54),n.a=u(ea(n,e),142),n.a!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,9,5,e,n.a))),n.a}function bd(n){return n<48||n>102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function Dx(n,e){if(n==null)throw T(new fp("null key in entry: null="+e));if(e==null)throw T(new fp("null value in entry: "+n+"=null"))}function q9e(n,e){for(var t,i;n.Ob();)if(!e.Ob()||(t=n.Pb(),i=e.Pb(),!(x(t)===x(i)||t!=null&&rt(t,i))))return!1;return!e.Ob()}function SBn(n,e){var t;return t=S(C(Ii,1),Cr,28,15,[Z$(n.a[0],e),Z$(n.a[1],e),Z$(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function PBn(n,e){var t;return t=S(C(Ii,1),Cr,28,15,[$C(n.a[0],e),$C(n.a[1],e),$C(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function bZ(n,e,t){Ep(u(v(e,(cn(),Ft)),101))||(PJ(n,e,h1(e,t)),PJ(n,e,h1(e,(en(),ae))),PJ(n,e,h1(e,Xn)),Ln(),Yt(e.j,new D7n(n)))}function IBn(n){var e,t;for(n.c||sAe(n),t=new Tu,e=new M(n.a),E(e);e.a<e.c.c.length;)Re(t,u(E(e),418).a);return oe(t.b!=0),Xo(t,t.c.b),t}function U9e(n,e,t){var i,r,c,s,f;for(f=n.r+e,n.r+=e,n.d+=t,i=t/n.n.c.length,r=0,s=new M(n.n);s.a<s.c.c.length;)c=u(E(s),209),iTe(c,f,i,r),++r}function G9e(n){var e,t,i;for(n.b.a.$b(),n.a=F(aI,Kn,60,n.c.c.a.b.c.length,0,1),e=0,i=new M(n.c.c.a.b);i.a<i.c.c.length;)t=u(E(i),60),t.f=e++}function z9e(n){var e,t,i;for(n.b.a.$b(),n.a=F(M_,Kn,86,n.c.a.a.b.c.length,0,1),e=0,i=new M(n.c.a.a.b);i.a<i.c.c.length;)t=u(E(i),86),t.i=e++}function OBn(n){var e;if(e=x6e(n),!pe(n))throw T(new Or("position (0) must be less than the number of elements that remained ("+e+")"));return fe(n)}function X9e(n,e){var t;return n.a||(t=F(Ii,Cr,28,0,15,1),lg(n.b.a,new k9n(t)),Iyn(t,O$n(mE.prototype.Me,mE,[])),n.a=new oPn(t,n.d)),WT(n.a,e)}function ABn(n,e,t){var i;try{return Fg(n,e+n.j,t+n.k)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function V9e(n,e,t){var i;try{return DBn(n,e+n.j,t+n.k)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function W9e(n,e,t){var i;try{return $Bn(n,e+n.j,t+n.k)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function LBn(n){switch(n.g){case 1:return en(),Wn;case 4:return en(),Xn;case 3:return en(),Zn;case 2:return en(),ae;default:return en(),sc}}function J9e(n,e,t){e.k==(Vn(),zt)&&t.k==Ti&&(n.d=ix(e,(en(),ae)),n.b=ix(e,Xn)),t.k==zt&&e.k==Ti&&(n.d=ix(t,(en(),Xn)),n.b=ix(t,ae))}function $x(n,e){var t,i,r;for(r=uc(n,e),i=r.Kc();i.Ob();)if(t=u(i.Pb(),12),v(t,(W(),Xu))!=null||L6(new Lf(t.b)))return!0;return!1}function Q9e(n,e,t){t.Ug("Linear segments node placement",1),n.b=u(v(e,(W(),E2)),312),RNe(n,e),dOe(n,e),AOe(n,e),bNe(n),n.a=null,n.b=null,t.Vg()}function wZ(n,e){return eu(e,n.e+n.d+(n.c.c.length==0?0:n.b)),tu(e,n.f),n.a=y.Math.max(n.a,e.f),n.d+=e.g+(n.c.c.length==0?0:n.b),nn(n.c,e),!0}function Y9e(n,e,t){var i,r,c,s;for(s=0,i=t/n.a.c.length,c=new M(n.a);c.a<c.c.c.length;)r=u(E(c),172),Hk(r,r.s,r.t+s*i),U9e(r,n.d-r.r+e,i),++s}function Z9e(n,e){var t,i,r,c,s,f;for(r=e.length-1,s=0,f=0,i=0;i<=r;i++)c=e[i],t=pje(r,i)*pY(1-n,r-i)*pY(n,i),s+=c.a*t,f+=c.b*t;return new V(s,f)}function NBn(n,e){var t,i,r,c,s;for(t=e.gc(),n._i(n.i+t),c=e.Kc(),s=n.i,n.i+=t,i=s;i<n.i;++i)r=c.Pb(),O6(n,i,n.Zi(i,r)),n.Mi(i,r),n.Ni();return t!=0}function n7e(n,e,t){var i,r,c;return n.Pj()?(i=n.Ej(),c=n.Qj(),++n.j,n.qj(i,n.Zi(i,e)),r=n.Ij(3,null,e,i,c),t?t.nj(r):t=r):OSn(n,n.Ej(),e),t}function e7e(n,e,t){var i,r,c;return i=u(N(Pc(n.a),e),89),c=(r=i.c,L(r,90)?u(r,29):(An(),Os)),(c.Db&64?ea(n.b,c):c)==t?KS(i):F4(i,t),c}function t7e(n){var e;return n==null?null:new H1((e=Rc(n,!0),e.length>0&&(zn(0,e.length),e.charCodeAt(0)==43)?(zn(1,e.length+1),e.substr(1)):e))}function i7e(n){var e;return n==null?null:new H1((e=Rc(n,!0),e.length>0&&(zn(0,e.length),e.charCodeAt(0)==43)?(zn(1,e.length+1),e.substr(1)):e))}function gZ(n,e,t,i,r,c,s,f){var h,l;i&&(h=i.a[0],h&&gZ(n,e,t,h,r,c,s,f),qx(n,t,i.d,r,c,s,f)&&e.Fc(i),l=i.a[1],l&&gZ(n,e,t,l,r,c,s,f))}function Fg(n,e,t){try{return ob(M$(n,e,t),1)}catch(i){throw i=Ot(i),L(i,333)?T(new Or(GK+n.o+"*"+n.p+zK+e+ur+t+XK)):T(i)}}function DBn(n,e,t){try{return ob(M$(n,e,t),0)}catch(i){throw i=Ot(i),L(i,333)?T(new Or(GK+n.o+"*"+n.p+zK+e+ur+t+XK)):T(i)}}function $Bn(n,e,t){try{return ob(M$(n,e,t),2)}catch(i){throw i=Ot(i),L(i,333)?T(new Or(GK+n.o+"*"+n.p+zK+e+ur+t+XK)):T(i)}}function xBn(n,e){if(n.g==-1)throw T(new Mu);n.Xj();try{n.d.hd(n.g,e),n.f=n.d.j}catch(t){throw t=Ot(t),L(t,77)?T(new Ko):T(t)}}function r7e(n){var e,t,i,r,c;for(i=new M(n.b);i.a<i.c.c.length;)for(t=u(E(i),30),e=0,c=new M(t.a);c.a<c.c.c.length;)r=u(E(c),10),r.p=e++}function S5(n,e){var t,i,r,c;for(c=n.gc(),e.length<c&&(e=qE(new Array(c),e)),r=e,i=n.Kc(),t=0;t<c;++t)$t(r,t,i.Pb());return e.length>c&&$t(e,c,null),e}function c7e(n,e){var t,i;if(i=n.gc(),e==null){for(t=0;t<i;t++)if(n.Xb(t)==null)return t}else for(t=0;t<i;t++)if(rt(e,n.Xb(t)))return t;return-1}function xx(n,e){var t,i,r;return t=e.ld(),r=e.md(),i=n.xc(t),!(!(x(r)===x(i)||r!=null&&rt(r,i))||i==null&&!n._b(t))}function u7e(n,e){var t,i,r;return e<=22?(t=n.l&(1<<e)-1,i=r=0):e<=44?(t=n.l,i=n.m&(1<<e-22)-1,r=0):(t=n.l,i=n.m,r=n.h&(1<<e-44)-1),Yc(t,i,r)}function o7e(n,e){switch(e.g){case 1:return n.f.n.d+n.t;case 3:return n.f.n.a+n.t;case 2:return n.f.n.c+n.s;case 4:return n.f.n.b+n.s;default:return 0}}function s7e(n,e){var t,i;switch(i=e.c,t=e.a,n.b.g){case 0:t.d=n.e-i.a-i.d;break;case 1:t.d+=n.e;break;case 2:t.c=n.e-i.a-i.d;break;case 3:t.c=n.e+i.d}}function pZ(n,e,t,i){var r,c;this.a=e,this.c=i,r=n.a,zse(this,new V(-r.c,-r.d)),tt(this.b,t),c=i/2,e.a?N6(this.b,0,c):N6(this.b,c,0),nn(n.c,this)}function RBn(n,e,t,i){var r;this.c=n,this.d=e,r=new Mt,xt(r,t,r.c.b,r.c),this.a=r,this.b=u(v(i,(lc(),v0)),88),this.e=$(B(v(i,Nln))),Ezn(this)}function sS(){sS=R,jq=new vM(kh,0),i1n=new vM(WXn,1),r1n=new vM("EDGE_LENGTH_BY_POSITION",2),t1n=new vM("CROSSING_MINIMIZATION_BY_POSITION",3)}function Rx(n,e){var t,i;if(t=u(Ng(n.g,e),27),t)return t;if(i=u(Ng(n.j,e),123),i)return i;throw T(new eh("Referenced shape does not exist: "+e))}function mZ(n,e){var t,i;if(L(e,253)){i=u(e,253);try{return t=n.Ed(i),t==0}catch(r){if(r=Ot(r),L(r,212))return!1;throw T(r)}}return!1}function f7e(n,e){if(n.c==e)return n.d;if(n.d==e)return n.c;throw T(new Gn("Node 'one' must be either source or target of edge 'edge'."))}function h7e(n,e){if(n.c.i==e)return n.d.i;if(n.d.i==e)return n.c.i;throw T(new Gn("Node "+e+" is neither source nor target of edge "+n))}function l7e(n,e,t){t.Ug("Self-Loop ordering",1),qt(_r(ut(ut(rc(new Cn(null,new On(e.b,16)),new i2n),new r2n),new c2n),new u2n),new u7n(n)),t.Vg()}function a7e(n,e){var t;switch(e.g){case 2:case 4:t=n.a,n.c.d.n.b<t.d.n.b&&(t=n.c),Vl(n,e,(xf(),R_),t);break;case 1:case 3:Vl(n,e,(xf(),j3),null)}}function Kx(n,e,t,i,r,c){var s,f,h,l,a;for(s=ake(e,t,c),f=t==(en(),Xn)||t==Wn?-1:1,l=n[t.g],a=0;a<l.length;a++)h=l[a],h>0&&(h+=r),l[a]=s,s+=f*(h+i)}function KBn(n){var e,t,i;for(i=n.f,n.n=F(Ii,Cr,28,i,15,1),n.d=F(Ii,Cr,28,i,15,1),e=0;e<i;e++)t=u(sn(n.c.b,e),30),n.n[e]=hBn(n,t),n.d[e]=eqn(n,t)}function Bx(n,e){var t,i,r;for(r=0,i=2;i<e;i<<=1)n.Db&i&&++r;if(r==0){for(t=e<<=1;t<=128;t<<=1)if(n.Db&t)return 0;return-1}else return r}function BBn(n,e){var t,i,r,c,s;for(s=ru(n.e.Dh(),e),c=null,t=u(n.g,124),r=0;r<n.i;++r)i=t[r],s.am(i.Lk())&&(!c&&(c=new EE),ve(c,i));c&&uzn(n,c)}function FBn(n){var e,t,i;if(!n)return null;if(n.dc())return"";for(i=new Hl,t=n.Kc();t.Ob();)e=t.Pb(),Er(i,Ae(e)),i.a+=" ";return bN(i,i.a.length-1)}function _Bn(n,e){var t=new Array(e),i;switch(n){case 14:case 15:i=0;break;case 16:i=!1;break;default:return t}for(var r=0;r<e;++r)t[r]=i;return t}function Bb(n){var e,t,i;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),60),e.c.$b();hl(n.d)?i=n.a.c:i=n.a.d,nu(i,new A9n(n)),n.c.df(n),vqn(n)}function HBn(n){var e,t,i,r;for(t=new M(n.e.c);t.a<t.c.c.length;){for(e=u(E(t),290),r=new M(e.b);r.a<r.c.c.length;)i=u(E(r),454),qen(i);W_n(e)}}function fS(n){var e,t,i,r,c;for(i=0,c=0,r=0,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),172),c=y.Math.max(c,e.r),i+=e.d+(r>0?n.c:0),++r;n.b=i,n.d=c}function qBn(n,e){var t;return t=S(C(Ii,1),Cr,28,15,[lZ(n,(wf(),bc),e),lZ(n,Wc,e),lZ(n,wc,e)]),n.f&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function d7e(n,e,t){var i;try{xS(n,e+n.j,t+n.k,!1,!0)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function b7e(n,e,t){var i;try{xS(n,e+n.j,t+n.k,!0,!1)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function UBn(n){var e;kt(n,(cn(),a0))&&(e=u(v(n,a0),21),e.Hc((lw(),Qs))?(e.Mc(Qs),e.Fc(Ys)):e.Hc(Ys)&&(e.Mc(Ys),e.Fc(Qs)))}function GBn(n){var e;kt(n,(cn(),a0))&&(e=u(v(n,a0),21),e.Hc((lw(),nf))?(e.Mc(nf),e.Fc(Ts)):e.Hc(Ts)&&(e.Mc(Ts),e.Fc(nf)))}function Fx(n,e,t,i){var r,c,s,f;return n.a==null&&gje(n,e),s=e.b.j.c.length,c=t.d.p,f=i.d.p,r=f-1,r<0&&(r=s-1),c<=r?n.a[r]-n.a[c]:n.a[s-1]-n.a[c]+n.a[r]}function w7e(n){var e,t;if(!n.b)for(n.b=BT(u(n.f,27).kh().i),t=new ne(u(n.f,27).kh());t.e!=t.i.gc();)e=u(ue(t),135),nn(n.b,new pL(e));return n.b}function g7e(n){var e,t;if(!n.e)for(n.e=BT(mD(u(n.f,27)).i),t=new ne(mD(u(n.f,27)));t.e!=t.i.gc();)e=u(ue(t),123),nn(n.e,new Kkn(e));return n.e}function zBn(n){var e,t;if(!n.a)for(n.a=BT(ST(u(n.f,27)).i),t=new ne(ST(u(n.f,27)));t.e!=t.i.gc();)e=u(ue(t),27),nn(n.a,new TN(n,e));return n.a}function Fb(n){var e;if(!n.C&&(n.D!=null||n.B!=null))if(e=iLe(n),e)n.hl(e);else try{n.hl(null)}catch(t){if(t=Ot(t),!L(t,63))throw T(t)}return n.C}function p7e(n){switch(n.q.g){case 5:gFn(n,(en(),Xn)),gFn(n,ae);break;case 4:mGn(n,(en(),Xn)),mGn(n,ae);break;default:y_n(n,(en(),Xn)),y_n(n,ae)}}function m7e(n){switch(n.q.g){case 5:pFn(n,(en(),Zn)),pFn(n,Wn);break;case 4:vGn(n,(en(),Zn)),vGn(n,Wn);break;default:j_n(n,(en(),Zn)),j_n(n,Wn)}}function _g(n,e){var t,i,r;for(r=new Ni,i=n.Kc();i.Ob();)t=u(i.Pb(),36),Pm(t,r.a,0),r.a+=t.f.a+e,r.b=y.Math.max(r.b,t.f.b);return r.b>0&&(r.b+=e),r}function hS(n,e){var t,i,r;for(r=new Ni,i=n.Kc();i.Ob();)t=u(i.Pb(),36),Pm(t,0,r.b),r.b+=t.f.b+e,r.a=y.Math.max(r.a,t.f.a);return r.a>0&&(r.a+=e),r}function XBn(n){var e,t,i;for(i=et,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),10),kt(e,(W(),dt))&&(i=y.Math.min(i,u(v(e,dt),17).a));return i}function VBn(n,e){var t,i;if(e.length==0)return 0;for(t=pD(n.a,e[0],(en(),Wn)),t+=pD(n.a,e[e.length-1],Zn),i=0;i<e.length;i++)t+=eje(n,i,e);return t}function WBn(){K5(),this.c=new Z,this.i=new Z,this.e=new rh,this.f=new rh,this.g=new rh,this.j=new Z,this.a=new Z,this.b=new de,this.k=new de}function _x(n,e){var t,i;return n.Db>>16==6?n.Cb.Th(n,5,Ef,e):(i=br(u($n((t=u(Un(n,16),29),t||n.ii()),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function v7e(n){A4();var e=n.e;if(e&&e.stack){var t=e.stack,i=e+`
`;return t.substring(0,i.length)==i&&(t=t.substring(i.length)),t.split(`
`)}return[]}function k7e(n){var e;return e=(Q$n(),wQn),e[n>>>28]|e[n>>24&15]<<4|e[n>>20&15]<<8|e[n>>16&15]<<12|e[n>>12&15]<<16|e[n>>8&15]<<20|e[n>>4&15]<<24|e[n&15]<<28}function JBn(n){var e,t,i;n.b==n.c&&(i=n.a.length,t=JQ(y.Math.max(8,i))<<1,n.b!=0?(e=xs(n.a,t),axn(n,e,i),n.a=e,n.b=0):I0(n.a,t),n.c=i)}function y7e(n,e){var t;return t=n.b,t.pf((He(),oo))?t.ag()==(en(),Wn)?-t.Mf().a-$(B(t.of(oo))):e+$(B(t.of(oo))):t.ag()==(en(),Wn)?-t.Mf().a:e}function qk(n){var e;return n.b.c.length!=0&&u(sn(n.b,0),72).a?u(sn(n.b,0),72).a:(e=vD(n),e??""+(n.c?qr(n.c.a,n,0):-1))}function lS(n){var e;return n.f.c.length!=0&&u(sn(n.f,0),72).a?u(sn(n.f,0),72).a:(e=vD(n),e??""+(n.i?qr(n.i.j,n,0):-1))}function j7e(n,e){var t,i;if(e<0||e>=n.gc())return null;for(t=e;t<n.gc();++t)if(i=u(n.Xb(t),131),t==n.gc()-1||!i.o)return new bi(Y(t),i);return null}function E7e(n,e,t){var i,r,c,s,f;for(c=n.c,f=t?e:n,i=t?n:e,r=f.p+1;r<i.p;++r)if(s=u(sn(c.a,r),10),!(s.k==(Vn(),Gf)||Q7e(s)))return!1;return!0}function vZ(n){var e,t,i,r,c;for(c=0,r=li,i=0,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),172),c+=e.r+(i>0?n.c:0),r=y.Math.max(r,e.d),++i;n.e=c,n.b=r}function M7e(n){var e,t;if(!n.b)for(n.b=BT(u(n.f,123).kh().i),t=new ne(u(n.f,123).kh());t.e!=t.i.gc();)e=u(ue(t),135),nn(n.b,new pL(e));return n.b}function T7e(n,e){var t,i,r;if(e.dc())return m4(),m4(),aE;for(t=new NSn(n,e.gc()),r=new ne(n);r.e!=r.i.gc();)i=ue(r),e.Hc(i)&&ve(t,i);return t}function kZ(n,e,t,i){return e==0?i?(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),n.o):(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),rk(n.o)):tS(n,e,t,i)}function Hx(n){var e,t;if(n.rb)for(e=0,t=n.rb.i;e<t;++e)C7(N(n.rb,e));if(n.vb)for(e=0,t=n.vb.i;e<t;++e)C7(N(n.vb,e));B6((Lu(),zi),n),n.Bb|=1}function Et(n,e,t,i,r,c,s,f,h,l,a,d,g,p){return I_n(n,e,i,null,r,c,s,f,h,l,g,!0,p),LY(n,a),L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),2),t&&AQ(n,t),NY(n,d),n}function C7e(n){var e,t;if(n==null)return null;t=0;try{t=So(n,Wi,et)&ui}catch(i){if(i=Ot(i),L(i,130))e=iC(n),t=e[0];else throw T(i)}return vk(t)}function S7e(n){var e,t;if(n==null)return null;t=0;try{t=So(n,Wi,et)&ui}catch(i){if(i=Ot(i),L(i,130))e=iC(n),t=e[0];else throw T(i)}return vk(t)}function P7e(n,e){var t,i,r;return r=n.h-e.h,r<0||(t=n.l-e.l,i=n.m-e.m+(t>>22),r+=i>>22,r<0)?!1:(n.l=t&ro,n.m=i&ro,n.h=r&Ol,!0)}function qx(n,e,t,i,r,c,s){var f,h;return!(e.Te()&&(h=n.a.Ne(t,i),h<0||!r&&h==0)||e.Ue()&&(f=n.a.Ne(t,c),f>0||!s&&f==0))}function I7e(n,e){cm();var t;if(t=n.j.g-e.j.g,t!=0)return 0;switch(n.j.g){case 2:return fx(e,Msn)-fx(n,Msn);case 4:return fx(n,Esn)-fx(e,Esn)}return 0}function O7e(n){switch(n.g){case 0:return Y_;case 1:return Z_;case 2:return nH;case 3:return eH;case 4:return JI;case 5:return tH;default:return null}}function $r(n,e,t){var i,r;return i=(r=new lL,ad(r,e),zc(r,t),ve((!n.c&&(n.c=new q(y0,n,12,10)),n.c),r),r),e1(i,0),Z0(i,1),u1(i,!0),c1(i,!0),i}function Jp(n,e){var t,i;if(e>=n.i)throw T(new aN(e,n.i));return++n.j,t=n.g[e],i=n.i-e-1,i>0&&Oc(n.g,e+1,n.g,e,i),$t(n.g,--n.i,null),n.Qi(e,t),n.Ni(),t}function QBn(n,e){var t,i;return n.Db>>16==17?n.Cb.Th(n,21,Ss,e):(i=br(u($n((t=u(Un(n,16),29),t||n.ii()),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function A7e(n){var e,t,i,r;for(Ln(),Yt(n.c,n.a),r=new M(n.c);r.a<r.c.c.length;)for(i=E(r),t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),693),e.bf(i)}function L7e(n){var e,t,i,r;for(Ln(),Yt(n.c,n.a),r=new M(n.c);r.a<r.c.c.length;)for(i=E(r),t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),382),e.bf(i)}function N7e(n){var e,t,i,r,c;for(r=et,c=null,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),218),t.d.j^t.e.j&&(e=t.e.e-t.d.e-t.a,e<r&&(r=e,c=t));return c}function yZ(){yZ=R,hZn=new Tn(Jtn,(_n(),!1)),oZn=new Tn(Qtn,100),jon=(t5(),j_),sZn=new Tn(Ytn,jon),fZn=new Tn(Ztn,vh),lZn=new Tn(nin,Y(et))}function YBn(n,e,t){var i,r,c,s,f,h,l,a;for(l=0,r=n.a[e],c=0,s=r.length;c<s;++c)for(i=r[c],a=g5(i,t),h=a.Kc();h.Ob();)f=u(h.Pb(),12),Ve(n.f,f,Y(l++))}function D7e(n,e,t){var i,r,c,s;if(t)for(r=t.a.length,i=new Qa(r),s=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);s.Ob();)c=u(s.Pb(),17),In(n,e,Zp(J0(t,c.a)))}function $7e(n,e,t){var i,r,c,s;if(t)for(r=t.a.length,i=new Qa(r),s=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);s.Ob();)c=u(s.Pb(),17),In(n,e,Zp(J0(t,c.a)))}function jZ(n){ua();var e;return e=u(S5(Cp(n.k),F(lr,Tc,64,2,0,1)),126),R4(e,0,e.length,null),e[0]==(en(),Xn)&&e[1]==Wn&&($t(e,0,Wn),$t(e,1,Xn)),e}function ZBn(n,e,t){var i,r,c;return r=ECe(n,e,t),c=aen(n,r),u$(n.b),FD(n,e,t),Ln(),Yt(r,new U7n(n)),i=aen(n,r),u$(n.b),FD(n,t,e),new bi(Y(c),Y(i))}function nFn(){nFn=R,Die=Fe(new ii,(Vi(),zr),(tr(),N8)),AO=new Lt("linearSegments.inputPrio",Y(0)),LO=new Lt("linearSegments.outputPrio",Y(0))}function Qp(){Qp=R,NO=new pM("P1_TREEIFICATION",0),t9=new pM("P2_NODE_ORDERING",1),i9=new pM("P3_NODE_PLACEMENT",2),r9=new pM("P4_EDGE_ROUTING",3)}function x7e(n){var e,t,i,r;for(t=0,e=0,r=new ne(n);r.e!=r.i.gc();)i=u(ue(r),27),t=y.Math.max(i.g+i.i,t),e=y.Math.max(i.f+i.j,e);return new V(t,e)}function R7e(n,e){var t,i,r,c;for(c=0,i=new M(n);i.a<i.c.c.length;)t=u(E(i),27),c+=y.Math.pow(t.g*t.f-e,2);return r=y.Math.sqrt(c/(n.c.length-1)),r}function Co(){Co=R,nE=new yM("UNKNOWN",0),nl=new yM("ABOVE",1),Sa=new yM("BELOW",2),Zj=new yM("INLINE",3),new Lt("org.eclipse.elk.labelSide",nE)}function eFn(n,e){var t;if(n.Yi()&&e!=null){for(t=0;t<n.i;++t)if(rt(e,n.g[t]))return t}else for(t=0;t<n.i;++t)if(x(n.g[t])===x(e))return t;return-1}function K7e(n,e,t){var i,r;return e.c==(gr(),Jc)&&t.c==Vu?-1:e.c==Vu&&t.c==Jc?1:(i=HRn(e.a,n.a),r=HRn(t.a,n.a),e.c==Jc?r-i:i-r)}function uw(n,e,t){if(t&&(e<0||e>t.a.c.length))throw T(new Gn("index must be >= 0 and <= layer node count"));n.c&&du(n.c.a,n),n.c=t,t&&bb(t.a,e,n)}function tFn(n,e){var t,i,r;for(i=new ie(ce(Ml(n).a.Kc(),new En));pe(i);)return t=u(fe(i),18),r=u(e.Kb(t),10),new CE(Pe(r.n.b+r.o.b/2));return Zv(),Zv(),FF}function iFn(n,e){this.c=new de,this.a=n,this.b=e,this.d=u(v(n,(W(),E2)),312),x(v(n,(cn(),shn)))===x((sk(),QI))?this.e=new Yyn:this.e=new Qyn}function P5(n,e){var t,i;return i=null,n.pf((He(),$3))&&(t=u(n.of($3),96),t.pf(e)&&(i=t.of(e))),i==null&&n.Tf()&&(i=n.Tf().of(e)),i==null&&(i=rn(e)),i}function Ux(n,e){var t,i;t=n.fd(e);try{return i=t.Pb(),t.Qb(),i}catch(r){throw r=Ot(r),L(r,112)?T(new Or("Can't remove element "+e)):T(r)}}function B7e(n,e){var t,i,r;if(i=new JE,r=new ZQ(i.q.getFullYear()-ha,i.q.getMonth(),i.q.getDate()),t=JIe(n,e,r),t==0||t<e.length)throw T(new Gn(e));return r}function EZ(n,e){var t,i,r;for(Jn(e),iV(e!=n),r=n.b.c.length,i=e.Kc();i.Ob();)t=i.Pb(),nn(n.b,Jn(t));return r!=n.b.c.length?(sY(n,0),!0):!1}function Uk(){Uk=R,Con=(He(),Vj),new Di(Yq,(_n(),!0)),dZn=Hd,bZn=_2,wZn=Ca,aZn=F2,Pon=Wj,gZn=Ww,Ton=(yZ(),hZn),Eon=sZn,Mon=fZn,Son=lZn,EI=oZn}function F7e(n,e){if(e==n.c)return n.d;if(e==n.d)return n.c;throw T(new Gn("'port' must be either the source port or target port of the edge."))}function _7e(n,e,t){var i,r;switch(r=n.o,i=n.d,e.g){case 1:return-i.d-t;case 3:return r.b+i.a+t;case 2:return r.a+i.c+t;case 4:return-i.b-t;default:return 0}}function MZ(n,e,t,i){var r,c,s,f;for($i(e,u(i.Xb(0),30)),f=i.kd(1,i.gc()),c=u(t.Kb(e),20).Kc();c.Ob();)r=u(c.Pb(),18),s=r.c.i==e?r.d.i:r.c.i,MZ(n,s,t,f)}function rFn(n){var e;return e=new de,kt(n,(W(),wH))?u(v(n,wH),85):(qt(ut(new Cn(null,new On(n.j,16)),new P2n),new l7n(e)),U(n,wH,e),e)}function cFn(n,e){var t,i,r,c,s;for(i=0,r=0,t=0,s=new M(n);s.a<s.c.c.length;)c=u(E(s),186),i=y.Math.max(i,c.e),r+=c.b+(t>0?e:0),++t;return new V(i,r)}function TZ(n,e){var t,i;return n.Db>>16==6?n.Cb.Th(n,6,Vt,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),bA)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function CZ(n,e){var t,i;return n.Db>>16==7?n.Cb.Th(n,1,oE,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),Idn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function SZ(n,e){var t,i;return n.Db>>16==9?n.Cb.Th(n,9,Ye,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),Adn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function uFn(n,e){var t,i;return n.Db>>16==5?n.Cb.Th(n,9,EA,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),P1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function oFn(n,e){var t,i;return n.Db>>16==7?n.Cb.Th(n,6,Ef,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),O1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function PZ(n,e){var t,i;return n.Db>>16==3?n.Cb.Th(n,0,fE,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),S1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function sFn(){this.a=new dvn,this.g=new oS,this.j=new oS,this.b=new de,this.d=new oS,this.i=new oS,this.k=new de,this.c=new de,this.e=new de,this.f=new de}function H7e(n,e,t){var i,r,c;for(t<0&&(t=0),c=n.i,r=t;r<c;r++)if(i=N(n,r),e==null){if(i==null)return r}else if(x(e)===x(i)||rt(e,i))return r;return-1}function q7e(n,e){var t,i;return t=e.qi(n.a),t?(i=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),nI)),Sn(Yy,i)?B6(n,jo(e.qk())):i):null}function mm(n,e){var t,i;if(e){if(e==n)return!0;for(t=0,i=u(e,54).Ph();i&&i!=e;i=i.Ph()){if(++t>IK)return mm(n,i);if(i==n)return!0}}return!1}function U7e(n){switch(FM(),n.q.g){case 5:U_n(n,(en(),Xn)),U_n(n,ae);break;case 4:GHn(n,(en(),Xn)),GHn(n,ae);break;default:VGn(n,(en(),Xn)),VGn(n,ae)}}function G7e(n){switch(FM(),n.q.g){case 5:fHn(n,(en(),Zn)),fHn(n,Wn);break;case 4:bBn(n,(en(),Zn)),bBn(n,Wn);break;default:WGn(n,(en(),Zn)),WGn(n,Wn)}}function z7e(n){var e,t;e=u(v(n,(Us(),nZn)),17),e?(t=e.a,t==0?U(n,(Q1(),jI),new dx):U(n,(Q1(),jI),new qT(t))):U(n,(Q1(),jI),new qT(1))}function X7e(n,e){var t;switch(t=n.i,e.g){case 1:return-(n.n.b+n.o.b);case 2:return n.n.a-t.o.a;case 3:return n.n.b-t.o.b;case 4:return-(n.n.a+n.o.a)}return 0}function V7e(n,e){switch(n.g){case 0:return e==(Yo(),ya)?HI:qI;case 1:return e==(Yo(),ya)?HI:wj;case 2:return e==(Yo(),ya)?wj:qI;default:return wj}}function Gk(n,e){var t,i,r;for(du(n.a,e),n.e-=e.r+(n.a.c.length==0?0:n.c),r=xrn,i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),172),r=y.Math.max(r,t.d);n.b=r}function IZ(n,e){var t,i;return n.Db>>16==3?n.Cb.Th(n,12,Ye,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),Pdn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function OZ(n,e){var t,i;return n.Db>>16==11?n.Cb.Th(n,10,Ye,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),Odn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function fFn(n,e){var t,i;return n.Db>>16==10?n.Cb.Th(n,11,Ss,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),I1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function hFn(n,e){var t,i;return n.Db>>16==10?n.Cb.Th(n,12,Ps,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),ig)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function gs(n){var e;return!(n.Bb&1)&&n.r&&n.r.Vh()&&(e=u(n.r,54),n.r=u(ea(n,e),142),n.r!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,9,8,e,n.r))),n.r}function Gx(n,e,t){var i;return i=S(C(Ii,1),Cr,28,15,[tnn(n,(wf(),bc),e,t),tnn(n,Wc,e,t),tnn(n,wc,e,t)]),n.f&&(i[0]=y.Math.max(i[0],i[2]),i[2]=i[0]),i}function W7e(n,e){var t,i,r;if(r=v9e(n,e),r.c.length!=0)for(Yt(r,new Ign),t=r.c.length,i=0;i<t;i++)Em(n,(Nn(i,r.c.length),u(r.c[i],293)),mSe(n,r,i))}function J7e(n){var e,t,i,r;for(r=u(ot(n.a,(ow(),UI)),15).Kc();r.Ob();)for(i=u(r.Pb(),105),t=Cp(i.k).Kc();t.Ob();)e=u(t.Pb(),64),T4(n,i,e,(Lb(),va),1)}function Q7e(n){var e,t;if(n.k==(Vn(),Ti)){for(t=new ie(ce(Ml(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),!fr(e)&&n.c==RZ(e,n).c)return!0}return!1}function Y7e(n){var e,t;if(n.k==(Vn(),Ti)){for(t=new ie(ce(Ml(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),!fr(e)&&e.c.i.c==e.d.i.c)return!0}return!1}function Z7e(n,e){var t,i,r,c,s;if(e)for(r=e.a.length,t=new Qa(r),s=(t.b-t.a)*t.c<0?(F1(),xa):new q1(t);s.Ob();)c=u(s.Pb(),17),i=N4(e,c.a),i&&KHn(n,i)}function nke(){xz();var n,e;for(_Ne((G1(),Hn)),ANe(Hn),Hx(Hn),Gdn=(An(),Zf),e=new M(nbn);e.a<e.c.c.length;)n=u(E(e),248),Dm(n,Zf,null);return!0}function AZ(n,e){var t,i,r,c,s,f,h,l;return h=n.h>>19,l=e.h>>19,h!=l?l-h:(r=n.h,f=e.h,r!=f?r-f:(i=n.m,s=e.m,i!=s?i-s:(t=n.l,c=e.l,t-c)))}function aS(){aS=R,Xun=(DS(),s_),zun=new Tn(Otn,Xun),Gun=(cC(),o_),Uun=new Tn(Atn,Gun),qun=(YC(),u_),Hun=new Tn(Ltn,qun),_un=new Tn(Ntn,(_n(),!0))}function I5(n,e,t){var i,r;i=e*t,L(n.g,154)?(r=xp(n),r.f.d?r.f.a||(n.d.a+=i+_f):(n.d.d-=i+_f,n.d.a+=i+_f)):L(n.g,10)&&(n.d.d-=i,n.d.a+=2*i)}function lFn(n,e,t){var i,r,c,s,f;for(r=n[t.g],f=new M(e.d);f.a<f.c.c.length;)s=u(E(f),105),c=s.i,c&&c.i==t&&(i=s.d[t.g],r[i]=y.Math.max(r[i],c.j.b))}function eke(n,e){var t,i,r,c,s;for(i=0,r=0,t=0,s=new M(e.d);s.a<s.c.c.length;)c=u(E(s),315),fS(c),i=y.Math.max(i,c.b),r+=c.d+(t>0?n.b:0),++t;e.b=i,e.e=r}function aFn(n){var e,t,i;if(i=n.b,iMn(n.i,i.length)){for(t=i.length*2,n.b=F(UF,My,303,t,0,1),n.c=F(UF,My,303,t,0,1),n.f=t-1,n.i=0,e=n.a;e;e=e.c)ny(n,e,e);++n.g}}function tke(n,e,t,i){var r,c,s,f;for(r=0;r<e.o;r++)for(c=r-e.j+t,s=0;s<e.p;s++)f=s-e.k+i,Fg(e,r,s)?W9e(n,c,f)||d7e(n,c,f):$Bn(e,r,s)&&(ABn(n,c,f)||b7e(n,c,f))}function O5(n,e){return n.b.a=y.Math.min(n.b.a,e.c),n.b.b=y.Math.min(n.b.b,e.d),n.a.a=y.Math.max(n.a.a,e.c),n.a.b=y.Math.max(n.a.b,e.d),Fn(n.c,e),!0}function ike(n,e,t){var i;i=e.c.i,i.k==(Vn(),Ti)?(U(n,(W(),yf),u(v(i,yf),12)),U(n,Es,u(v(i,Es),12))):(U(n,(W(),yf),e.c),U(n,Es,t.d))}function vm(n,e,t){Vg();var i,r,c,s,f,h;return s=e/2,c=t/2,i=y.Math.abs(n.a),r=y.Math.abs(n.b),f=1,h=1,i>s&&(f=s/i),r>c&&(h=c/r),ch(n,y.Math.min(f,h)),n}function rke(){FS();var n,e;try{if(e=u(_Z((B1(),Is),tv),2113),e)return e}catch(t){if(t=Ot(t),L(t,103))n=t,OW((Oe(),n));else throw T(t)}return new fvn}function cke(){FS();var n,e;try{if(e=u(_Z((B1(),Is),ks),2040),e)return e}catch(t){if(t=Ot(t),L(t,103))n=t,OW((Oe(),n));else throw T(t)}return new $vn}function uke(){jDn();var n,e;try{if(e=u(_Z((B1(),Is),Pd),2122),e)return e}catch(t){if(t=Ot(t),L(t,103))n=t,OW((Oe(),n));else throw T(t)}return new P6n}function oke(n,e,t){var i,r;return r=n.e,n.e=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,4,r,e),t?t.nj(i):t=i),r!=e&&(e?t=Dm(n,TS(n,e),t):t=Dm(n,n.a,t)),t}function dFn(){JE.call(this),this.e=-1,this.a=!1,this.p=Wi,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Wi}function ske(n,e){var t,i,r;if(i=n.b.d.d,n.a||(i+=n.b.d.a),r=e.b.d.d,e.a||(r+=e.b.d.a),t=bt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function fke(n,e){var t,i,r;if(i=n.b.b.d,n.a||(i+=n.b.b.a),r=e.b.b.d,e.a||(r+=e.b.b.a),t=bt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function hke(n,e){var t,i,r;if(i=n.b.g.d,n.a||(i+=n.b.g.a),r=e.b.g.d,e.a||(r+=e.b.g.a),t=bt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function LZ(){LZ=R,mZn=Iu(Fe(Fe(Fe(new ii,(Vi(),Fc),(tr(),fsn)),Fc,hsn),zr,lsn),zr,Yon),kZn=Fe(Fe(new ii,Fc,Gon),Fc,Zon),vZn=Iu(new ii,zr,esn)}function lke(n){var e,t,i,r,c;for(e=u(v(n,(W(),B8)),85),c=n.n,i=e.Cc().Kc();i.Ob();)t=u(i.Pb(),314),r=t.i,r.c+=c.a,r.d+=c.b,t.c?Lqn(t):Nqn(t);U(n,B8,null)}function ake(n,e,t){var i,r;switch(r=n.b,i=r.d,e.g){case 1:return-i.d-t;case 2:return r.o.a+i.c+t;case 3:return r.o.b+i.a+t;case 4:return-i.b-t;default:return-1}}function dke(n,e,t){var i,r;for(t.Ug("Interactive node placement",1),n.a=u(v(e,(W(),E2)),312),r=new M(e.b);r.a<r.c.c.length;)i=u(E(r),30),cSe(n,i);t.Vg()}function bke(n){var e,t,i,r,c;if(i=0,r=i2,n.b)for(e=0;e<360;e++)t=e*.017453292519943295,Ien(n,n.d,0,0,Md,t),c=n.b.Dg(n.d),c<r&&(i=t,r=c);Ien(n,n.d,0,0,Md,i)}function wke(n,e){var t,i,r,c;for(c=new de,e.e=null,e.f=null,i=new M(e.i);i.a<i.c.c.length;)t=u(E(i),68),r=u(ee(n.g,t.a),42),t.a=gT(t.b),Ve(c,t.a,r);n.g=c}function gke(n,e,t){var i,r,c,s,f,h;for(r=e-n.e,c=r/n.d.c.length,s=0,h=new M(n.d);h.a<h.c.c.length;)f=u(E(h),315),i=n.b-f.b+t,xKn(f,f.e+s*c,f.f),Y9e(f,c,i),++s}function bFn(n){var e;if(n.f._j(),n.b!=-1){if(++n.b,e=n.f.d[n.a],n.b<e.i)return;++n.a}for(;n.a<n.f.d.length;++n.a)if(e=n.f.d[n.a],e&&e.i!=0){n.b=0;return}n.b=-1}function pke(n,e){var t,i,r;for(r=e.c.length,t=vEe(n,r==0?"":(Nn(0,e.c.length),Ae(e.c[0]))),i=1;i<r&&t;++i)t=u(t,54).Zh((Nn(i,e.c.length),Ae(e.c[i])));return t}function wFn(n,e){var t,i;for(i=new M(e);i.a<i.c.c.length;)t=u(E(i),10),n.c[t.c.p][t.p].a=hW(n.i),n.c[t.c.p][t.p].d=$(n.c[t.c.p][t.p].a),n.c[t.c.p][t.p].b=1}function mke(n,e){var t,i,r,c;for(c=0,i=new M(n);i.a<i.c.c.length;)t=u(E(i),163),c+=y.Math.pow(Pu(t)*ao(t)-e,2);return r=y.Math.sqrt(c/(n.c.length-1)),r}function gFn(n,e){var t,i,r,c;for(c=0,r=u(u(ot(n.r,e),21),87).Kc();r.Ob();)i=u(r.Pb(),117),c=y.Math.max(c,i.e.a+i.b.Mf().a);t=u(Mr(n.b,e),127),t.n.b=0,t.a.a=c}function pFn(n,e){var t,i,r,c;for(t=0,c=u(u(ot(n.r,e),21),87).Kc();c.Ob();)r=u(c.Pb(),117),t=y.Math.max(t,r.e.b+r.b.Mf().b);i=u(Mr(n.b,e),127),i.n.d=0,i.a.b=t}function mFn(n,e,t,i){var r,c,s;return c=nPe(n,e,t,i),s=ken(n,c),eR(n,e,t,i),u$(n.b),Ln(),Yt(c,new G7n(n)),r=ken(n,c),eR(n,t,e,i),u$(n.b),new bi(Y(s),Y(r))}function vke(n,e){var t;e.Ug("Delaunay triangulation",1),t=new Z,nu(n.i,new Skn(t)),on(un(v(n,(J4(),A8)))),n.e?Ki(n.e,azn(t)):n.e=azn(t),e.Vg()}function kke(n,e,t){var i,r;for(j7(n,n.j+e,n.k+t),r=new ne((!n.a&&(n.a=new ti(xo,n,5)),n.a));r.e!=r.i.gc();)i=u(ue(r),377),gN(i,i.a+e,i.b+t);y7(n,n.b+e,n.c+t)}function NZ(n,e,t,i){switch(t){case 7:return!n.e&&(n.e=new Dn(Vt,n,7,4)),Xc(n.e,e,i);case 8:return!n.d&&(n.d=new Dn(Vt,n,8,5)),Xc(n.d,e,i)}return Yx(n,e,t,i)}function DZ(n,e,t,i){switch(t){case 7:return!n.e&&(n.e=new Dn(Vt,n,7,4)),cr(n.e,e,i);case 8:return!n.d&&(n.d=new Dn(Vt,n,8,5)),cr(n.d,e,i)}return $$(n,e,t,i)}function yke(n,e,t){var i,r,c,s,f;if(t)for(c=t.a.length,i=new Qa(c),f=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),r=N4(t,s.a),r&&q_n(n,r,e)}function zk(n,e,t){var i,r,c,s,f;return n._j(),c=e==null?0:mt(e),n.f>0&&(s=(c&et)%n.d.length,r=$nn(n,s,c,e),r)?(f=r.nd(t),f):(i=n.ck(c,e,t),n.c.Fc(i),null)}function $Z(n,e){var t,i,r,c;switch(r1(n,e).Kl()){case 3:case 2:{for(t=Jg(e),r=0,c=t.i;r<c;++r)if(i=u(N(t,r),35),yb(Nr(n,i))==5)return i;break}}return null}function jke(n){var e,t,i,r,c;if(iMn(n.f,n.b.length))for(i=F(sQn,My,227,n.b.length*2,0,1),n.b=i,r=i.length-1,t=n.a;t!=n;t=t._d())c=u(t,227),e=c.d&r,c.a=i[e],i[e]=c}function Eke(n){var e,t;return t=u(v(n,(W(),Hc)),21),e=LM(Jie),t.Hc((pr(),v2))&&To(e,Zie),t.Hc(K8)&&To(e,nre),t.Hc(vv)&&To(e,Qie),t.Hc(kv)&&To(e,Yie),e}function xZ(n){if(n<0)throw T(new Gn("The input must be positive"));return n<oan.length?id(oan[n]):y.Math.sqrt(Md*n)*(Z6e(n,n)/pY(2.718281828459045,n))}function km(n,e){var t;if(n.Yi()&&e!=null){for(t=0;t<n.i;++t)if(rt(e,n.g[t]))return!0}else for(t=0;t<n.i;++t)if(x(n.g[t])===x(e))return!0;return!1}function Mke(n,e){if(e==null){for(;n.a.Ob();)if(u(n.a.Pb(),44).md()==null)return!0}else for(;n.a.Ob();)if(rt(e,u(n.a.Pb(),44).md()))return!0;return!1}function Tke(n,e){var t,i,r;return e===n?!0:L(e,678)?(r=u(e,2046),WKn((i=n.g,i||(n.g=new zA(n))),(t=r.g,t||(r.g=new zA(r))))):!1}function Cke(n){var e,t,i,r;for(e="gA",t="vz",r=y.Math.min(n.length,5),i=r-1;i>=0;i--)if(Sn(n[i].d,e)||Sn(n[i].d,t)){n.length>=i+1&&n.splice(0,i+1);break}return n}function Xk(n,e){var t;return Vr(n)&&Vr(e)&&(t=n/e,Sy<t&&t<vd)?t<0?y.Math.ceil(t):y.Math.floor(t):Y1(Wen(Vr(n)?ds(n):n,Vr(e)?ds(e):e,!1))}function RZ(n,e){if(e==n.c.i)return n.d.i;if(e==n.d.i)return n.c.i;throw T(new Gn("'node' must either be the source node or target node of the edge."))}function Ske(n){var e,t,i,r;if(r=u(v(n,(W(),nfn)),36),r){for(i=new Ni,e=Hi(n.c.i);e!=r;)t=e.e,e=Hi(t),ab(tt(tt(i,t.n),e.c),e.d.b,e.d.d);return i}return KZn}function Pke(n){var e;e=u(v(n,(W(),h0)),337),qt(rc(new Cn(null,new On(e.d,16)),new a2n),new c7n(n)),qt(ut(new Cn(null,new On(e.d,16)),new d2n),new o7n(n))}function zx(n,e){var t,i,r,c;for(r=e?Qt(n):ji(n),i=new ie(ce(r.a.Kc(),new En));pe(i);)if(t=u(fe(i),18),c=RZ(t,n),c.k==(Vn(),Ti)&&c.c!=n.c)return c;return null}function Ike(n){var e,t,i;for(t=new M(n.p);t.a<t.c.c.length;)e=u(E(t),10),e.k==(Vn(),zt)&&(i=e.o.b,n.i=y.Math.min(n.i,i),n.g=y.Math.max(n.g,i))}function vFn(n,e,t){var i,r,c;for(c=new M(e);c.a<c.c.c.length;)i=u(E(c),10),n.c[i.c.p][i.p].e=!1;for(r=new M(e);r.a<r.c.c.length;)i=u(E(r),10),etn(n,i,t)}function Xx(n,e,t){var i,r;i=Rg(e.j,t.s,t.c)+Rg(t.e,e.s,e.c),r=Rg(t.j,e.s,e.c)+Rg(e.e,t.s,t.c),i==r?i>0&&(n.b+=2,n.a+=i):(n.b+=1,n.a+=y.Math.min(i,r))}function kFn(n){var e;e=u(v(u(Zo(n.b,0),40),(lc(),Oln)),107),U(n,(pt(),Lv),new V(0,0)),lUn(new tk,n,e.b+e.c-$(B(v(n,iq))),e.d+e.a-$(B(v(n,rq))))}function yFn(n,e){var t,i;if(i=!1,Si(e)&&(i=!0,Op(n,new q0(Ae(e)))),i||L(e,242)&&(i=!0,Op(n,(t=IV(u(e,242)),new SE(t)))),!i)throw T(new vL(Lcn))}function Oke(n,e,t,i){var r,c,s;return r=new ml(n.e,1,10,(s=e.c,L(s,90)?u(s,29):(An(),Os)),(c=t.c,L(c,90)?u(c,29):(An(),Os)),f1(n,e),!1),i?i.nj(r):i=r,i}function KZ(n){var e,t;switch(u(v(Hi(n),(cn(),ehn)),429).g){case 0:return e=n.n,t=n.o,new V(e.a+t.a/2,e.b+t.b/2);case 1:return new rr(n.n);default:return null}}function Vk(){Vk=R,YI=new p6(kh,0),Fsn=new p6("LEFTUP",1),Hsn=new p6("RIGHTUP",2),Bsn=new p6("LEFTDOWN",3),_sn=new p6("RIGHTDOWN",4),iH=new p6("BALANCED",5)}function Ake(n,e,t){var i,r,c;if(i=bt(n.a[e.p],n.a[t.p]),i==0){if(r=u(v(e,(W(),C3)),15),c=u(v(t,C3),15),r.Hc(t))return-1;if(c.Hc(e))return 1}return i}function Lke(n){switch(n.g){case 1:return new U4n;case 2:return new G4n;case 3:return new q4n;case 0:return null;default:throw T(new Gn(GB+(n.f!=null?n.f:""+n.g)))}}function BZ(n,e,t){switch(e){case 1:!n.n&&(n.n=new q(Sr,n,1,7)),me(n.n),!n.n&&(n.n=new q(Sr,n,1,7)),Kt(n.n,u(t,16));return;case 2:X4(n,Ae(t));return}cY(n,e,t)}function FZ(n,e,t){switch(e){case 3:Ib(n,$(B(t)));return;case 4:Ob(n,$(B(t)));return;case 5:eu(n,$(B(t)));return;case 6:tu(n,$(B(t)));return}BZ(n,e,t)}function dS(n,e,t){var i,r,c;c=(i=new lL,i),r=Kf(c,e,null),r&&r.oj(),zc(c,t),ve((!n.c&&(n.c=new q(y0,n,12,10)),n.c),c),e1(c,0),Z0(c,1),u1(c,!0),c1(c,!0)}function _Z(n,e){var t,i,r;return t=a6(n.i,e),L(t,241)?(r=u(t,241),r.zi()==null,r.wi()):L(t,507)?(i=u(t,2037),r=i.b,r):null}function Nke(n,e,t,i){var r,c;return Pe(e),Pe(t),c=u($6(n.d,e),17),VDn(!!c,"Row %s not in %s",e,n.e),r=u($6(n.b,t),17),VDn(!!r,"Column %s not in %s",t,n.c),cRn(n,c.a,r.a,i)}function jFn(n,e,t,i,r,c,s){var f,h,l,a,d;if(a=r[c],l=c==s-1,f=l?i:0,d=_Bn(f,a),i!=10&&S(C(n,s-c),e[c],t[c],f,d),!l)for(++c,h=0;h<a;++h)d[h]=jFn(n,e,t,i,r,c,s);return d}function A5(n){if(n.g==-1)throw T(new Mu);n.Xj();try{n.i.gd(n.g),n.f=n.i.j,n.g<n.e&&--n.e,n.g=-1}catch(e){throw e=Ot(e),L(e,77)?T(new Ko):T(e)}}function Dke(n){var e,t,i,r;for(r=-1,i=0,t=new M(n);t.a<t.c.c.length;){if(e=u(E(t),249),e.c==(gr(),Vu)){r=i==0?0:i-1;break}else i==n.c.length-1&&(r=i);i+=1}return r}function $ke(n){var e,t,i,r;for(r=0,e=0,i=new M(n.c);i.a<i.c.c.length;)t=u(E(i),27),eu(t,n.e+r),tu(t,n.f),r+=t.g+n.b,e=y.Math.max(e,t.f+n.b);n.d=r-n.b,n.a=e-n.b}function Hg(n){var e,t,i;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),60),i=e.d.c,e.d.c=e.d.d,e.d.d=i,i=e.d.b,e.d.b=e.d.a,e.d.a=i,i=e.b.a,e.b.a=e.b.b,e.b.b=i;cen(n)}function qg(n){var e,t,i;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),i=e.g.c,e.g.c=e.g.d,e.g.d=i,i=e.g.b,e.g.b=e.g.a,e.g.a=i,i=e.e.a,e.e.a=e.e.b,e.e.b=i;IS(n)}function xke(n){var e,t,i,r,c;for(c=Cp(n.k),t=(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])),i=0,r=t.length;i<r;++i)if(e=t[i],e!=sc&&!c.Hc(e))return e;return null}function Vx(n,e){var t,i;return i=u(x1e(im(ut(new Cn(null,new On(e.j,16)),new $pn))),12),i&&(t=u(sn(i.e,0),18),t)?u(v(t,(W(),dt)),17).a:z4e(n.b)}function Rke(n,e){var t,i,r,c;for(c=new M(e.a);c.a<c.c.c.length;)for(r=u(E(c),10),e6(n.d),i=new ie(ce(Qt(r).a.Kc(),new En));pe(i);)t=u(fe(i),18),vHn(n,r,t.d.i)}function Kke(n,e){var t,i;for(du(n.b,e),i=new M(n.n);i.a<i.c.c.length;)if(t=u(E(i),209),qr(t.c,e,0)!=-1){du(t.c,e),$ke(t),t.c.c.length==0&&du(n.n,t);break}ZUn(n)}function EFn(n,e){var t,i,r,c,s;for(s=n.f,r=0,c=0,i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),172),Hk(t,n.e,s),uk(t,e),c=y.Math.max(c,t.r),s+=t.d+n.c,r=s;n.d=c,n.b=r}function MFn(n){var e,t;return t=cy(n),D4(t)?null:(e=(Pe(t),u(OBn(new ie(ce(t.a.Kc(),new En))),74)),Gr(u(N((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84)))}function bS(n){var e;return n.o||(e=n.uk(),e?n.o=new xW(n,n,null):n.al()?n.o=new dV(n,null):yb(Nr((Lu(),zi),n))==1?n.o=new VLn(n):n.o=new LN(n,null)),n.o}function Bke(n,e,t,i){var r,c,s,f,h;t.Xh(e)&&(r=(s=e,s?u(i,54).gi(s):null),r&&(h=t.Mh(e),f=e.t,f>1||f==-1?(c=u(h,15),r.Wb(g8e(n,c))):r.Wb(OR(n,u(h,58)))))}function Fke(n,e,t,i){LEn();var r=BF;function c(){for(var s=0;s<r.length;s++)r[s]()}if(n)try{Ose(c)()}catch(s){n(e,s)}else Ose(c)()}function _ke(n,e){var t,i,r,c;for(r=(c=new qa(n.b).a.vc().Kc(),new IE(c));r.a.Ob();)if(i=(t=u(r.a.Pb(),44),u(t.ld(),34)),yX(e,u(i,17))<0)return!1;return!0}function Hke(n,e){var t,i,r,c;for(r=(c=new qa(n.b).a.vc().Kc(),new IE(c));r.a.Ob();)if(i=(t=u(r.a.Pb(),44),u(t.ld(),34)),yX(e,u(i,17))>0)return!1;return!0}function qke(n){var e,t,i,r,c;for(i=new sd(new Ua(n.b).a);i.b;)t=Nb(i),e=u(t.ld(),10),c=u(u(t.md(),42).a,10),r=u(u(t.md(),42).b,8),tt(ff(e.n),tt(Fi(c.n),r))}function Uke(n){switch(u(v(n.b,(cn(),Vfn)),387).g){case 1:qt(_r(rc(new Cn(null,new On(n.d,16)),new ypn),new jpn),new Epn);break;case 2:BSe(n);break;case 0:pEe(n)}}function Gke(n,e,t){var i,r,c;for(i=t,!i&&(i=new op),i.Ug("Layout",n.a.c.length),c=new M(n.a);c.a<c.c.c.length;){if(r=u(E(c),47),i.$g())return;r.Kf(e,i.eh(1))}i.Vg()}function wd(){wd=R,Jq=new k6("V_TOP",0),m9=new k6("V_CENTER",1),p9=new k6("V_BOTTOM",2),Wq=new k6("H_LEFT",3),w9=new k6("H_CENTER",4),g9=new k6("H_RIGHT",5)}function HZ(n){var e;return n.Db&64?UC(n):(e=new ls(UC(n)),e.a+=" (abstract: ",ql(e,(n.Bb&256)!=0),e.a+=", interface: ",ql(e,(n.Bb&512)!=0),e.a+=")",e.a)}function zke(n){var e;n.c==null&&(e=x(n.b)===x(uun)?null:n.b,n.d=e==null?gu:MIn(e)?P1e(xOn(e)):Si(e)?ptn:Xa(wo(e)),n.a=n.a+": "+(MIn(e)?Cae(xOn(e)):e+""),n.c="("+n.d+") "+n.a)}function Xke(){function n(){try{return new Map().entries().next().done}catch{return!1}}return typeof Map===eK&&Map.prototype.entries&&n()?Map:NLe()}function Vke(n,e){var t,i,r,c;for(c=new xi(n.e,0),t=0;c.b<c.d.gc();){if(i=$((oe(c.b<c.d.gc()),B(c.d.Xb(c.c=c.b++)))),r=i-e,r>_B)return t;r>-1e-6&&++t}return t}function qZ(n,e){var t;e!=n.b?(t=null,n.b&&(t=AT(n.b,n,-4,t)),e&&(t=Wp(e,n,-4,t)),t=YRn(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,3,e,e))}function TFn(n,e){var t;e!=n.f?(t=null,n.f&&(t=AT(n.f,n,-1,t)),e&&(t=Wp(e,n,-1,t)),t=QRn(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,0,e,e))}function Wke(n,e,t,i){var r,c,s,f;return fo(n.e)&&(r=e.Lk(),f=e.md(),c=t.md(),s=V1(n,1,r,f,c,r.Jk()?Am(n,r,c,L(r,102)&&(u(r,19).Bb&hr)!=0):-1,!0),i?i.nj(s):i=s),i}function CFn(n){var e,t,i;if(n==null)return null;if(t=u(n,15),t.dc())return"";for(i=new Hl,e=t.Kc();e.Ob();)Er(i,(at(),Ae(e.Pb()))),i.a+=" ";return bN(i,i.a.length-1)}function SFn(n){var e,t,i;if(n==null)return null;if(t=u(n,15),t.dc())return"";for(i=new Hl,e=t.Kc();e.Ob();)Er(i,(at(),Ae(e.Pb()))),i.a+=" ";return bN(i,i.a.length-1)}function Jke(n,e,t){var i,r;return i=n.c[e.c.p][e.p],r=n.c[t.c.p][t.p],i.a!=null&&r.a!=null?tD(i.a,r.a):i.a!=null?-1:r.a!=null?1:0}function Qke(n,e,t){return t.Ug("Tree layout",1),H7(n.b),hf(n.b,(Qp(),NO),NO),hf(n.b,t9,t9),hf(n.b,i9,i9),hf(n.b,r9,r9),n.a=gy(n.b,e),Gke(n,e,t.eh(1)),t.Vg(),e}function Yke(n,e){var t,i,r,c,s,f;if(e)for(c=e.a.length,t=new Qa(c),f=(t.b-t.a)*t.c<0?(F1(),xa):new q1(t);f.Ob();)s=u(f.Pb(),17),r=N4(e,s.a),i=new Vkn(n),uge(i.a,r)}function Zke(n,e){var t,i,r,c,s,f;if(e)for(c=e.a.length,t=new Qa(c),f=(t.b-t.a)*t.c<0?(F1(),xa):new q1(t);f.Ob();)s=u(f.Pb(),17),r=N4(e,s.a),i=new Bkn(n),cge(i.a,r)}function nye(n){var e;if(n!=null&&n.length>0&&Xi(n,n.length-1)==33)try{return e=$Hn(qo(n,0,n.length-1)),e.e==null}catch(t){if(t=Ot(t),!L(t,33))throw T(t)}return!1}function eye(n,e,t){var i,r,c;switch(i=Hi(e),r=FC(i),c=new Ic,ic(c,e),t.g){case 1:gi(c,xk(zp(r)));break;case 2:gi(c,zp(r))}return U(c,(cn(),Fw),B(v(n,Fw))),c}function UZ(n){var e,t;return e=u(fe(new ie(ce(ji(n.a).a.Kc(),new En))),18),t=u(fe(new ie(ce(Qt(n.a).a.Kc(),new En))),18),on(un(v(e,(W(),zf))))||on(un(v(t,zf)))}function ow(){ow=R,gj=new s7("ONE_SIDE",0),zI=new s7("TWO_SIDES_CORNER",1),XI=new s7("TWO_SIDES_OPPOSING",2),GI=new s7("THREE_SIDES",3),UI=new s7("FOUR_SIDES",4)}function PFn(n,e){var t,i,r,c;for(c=new Z,r=0,i=e.Kc();i.Ob();){for(t=Y(u(i.Pb(),17).a+r);t.a<n.f&&!G0e(n,t.a);)t=Y(t.a+1),++r;if(t.a>=n.f)break;Fn(c.c,t)}return c}function tye(n,e){var t,i,r,c,s;for(c=new M(e.a);c.a<c.c.c.length;)for(r=u(E(c),10),i=new ie(ce(ji(r).a.Kc(),new En));pe(i);)t=u(fe(i),18),s=t.c.i.p,n.n[s]=n.n[s]-1}function iye(n){var e,t;for(t=new M(n.e.b);t.a<t.c.c.length;)e=u(E(t),30),YAe(n,e);qt(ut(rc(rc(new Cn(null,new On(n.e.b,16)),new l3n),new p3n),new m3n),new ckn(n))}function GZ(n,e){return e?n.mj(e)?!1:n.i?n.i.nj(e):L(e,152)?(n.i=u(e,152),!0):(n.i=new gvn,n.i.nj(e)):!1}function IFn(n,e,t){var i,r,c;return i=e.Lk(),c=e.md(),r=i.Jk()?V1(n,3,i,null,c,Am(n,i,c,L(i,102)&&(u(i,19).Bb&hr)!=0),!0):V1(n,1,i,i.ik(),c,-1,!0),t?t.nj(r):t=r,t}function rye(n){if(n=Rc(n,!0),Sn(nv,n)||Sn("1",n))return _n(),ov;if(Sn(cF,n)||Sn("0",n))return _n(),ga;throw T(new kL("Invalid boolean value: '"+n+"'"))}function zZ(n,e,t){var i,r,c;for(r=n.vc().Kc();r.Ob();)if(i=u(r.Pb(),44),c=i.ld(),x(e)===x(c)||e!=null&&rt(e,c))return t&&(i=new oM(i.ld(),i.md()),r.Qb()),i;return null}function cye(n){K0();var e,t,i;n.B.Hc((io(),sA))&&(i=n.f.i,e=new IT(n.a.c),t=new up,t.b=e.c-i.c,t.d=e.d-i.d,t.c=i.c+i.b-(e.c+e.b),t.a=i.d+i.a-(e.d+e.a),n.e.$f(t))}function OFn(n,e,t,i){var r,c,s;for(s=y.Math.min(t,_Un(u(n.b,68),e,t,i)),c=new M(n.a);c.a<c.c.c.length;)r=u(E(c),225),r!=e&&(s=y.Math.min(s,OFn(r,e,s,i)));return s}function XZ(n){var e,t,i,r;for(r=F(Qh,J,199,n.b.c.length,0,2),i=new xi(n.b,0);i.b<i.d.gc();)e=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),30)),t=i.b-1,r[t]=Y7(e.a);return r}function VZ(n,e,t){var i,r,c;i=u(Df(n.a,t),34),i!=null&&(c=u(Df(n.b,i),67),iw(c,t,!0)),r=u(Df(n.b,e),67),r||(r=new Mt,s1(n.b,e,r)),xt(r,t,r.c.b,r.c),s1(n.a,t,e)}function Wx(n,e,t,i,r){var c,s,f,h;for(s=Ehe(vz($V(O9e(t)),i),_7e(n,t,r)),h=h1(n,t).Kc();h.Ob();)f=u(h.Pb(),12),e[f.p]&&(c=e[f.p].i,nn(s.d,new ZN(c,CY(s,c))));GY(s)}function WZ(n,e){this.f=new de,this.b=new de,this.j=new de,this.a=n,this.c=e,this.c>0&&YBn(this,this.c-1,(en(),Zn)),this.c<this.a.length-1&&YBn(this,this.c+1,(en(),Wn))}function uye(n,e){var t,i,r,c,s;for(c=new M(e.d);c.a<c.c.c.length;)for(r=u(E(c),105),s=u(ee(n.c,r),118).o,i=new dp(r.b);i.a<i.c.a.length;)t=u(n5(i),64),QJ(r,t,s)}function JZ(n){n.length>0&&n[0].length>0&&(this.c=on(un(v(Hi(n[0][0]),(W(),ifn))))),this.a=F(jie,J,2117,n.length,0,2),this.b=F(Eie,J,2118,n.length,0,2),this.d=new zRn}function oye(n){return n.c.length==0?!1:(Nn(0,n.c.length),u(n.c[0],18)).c.i.k==(Vn(),Ti)?!0:Ag(_r(new Cn(null,new On(n,16)),new t3n),new i3n)}function AFn(n,e){var t,i,r,c,s,f,h;for(f=aw(e),c=e.f,h=e.g,s=y.Math.sqrt(c*c+h*h),r=0,i=new M(f);i.a<i.c.c.length;)t=u(E(i),27),r+=AFn(n,t);return y.Math.max(r,s)}function Ai(){Ai=R,Ia=new j6(n8,0),Qf=new j6("FREE",1),Fv=new j6("FIXED_SIDE",2),Ud=new j6("FIXED_ORDER",3),tl=new j6("FIXED_RATIO",4),qc=new j6("FIXED_POS",5)}function sye(n,e){var t,i,r;if(t=e.qi(n.a),t){for(r=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),ys)),i=1;i<(Lu(),rbn).length;++i)if(Sn(rbn[i],r))return i}return 0}function fye(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],pl(c,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function hye(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],pl(c,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function LFn(n){var e,t,i;for(i=new fd(ur,"{","}"),t=n.vc().Kc();t.Ob();)e=u(t.Pb(),44),pl(i,BLn(n,e.ld())+"="+BLn(n,e.md()));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function lye(n){for(var e,t,i,r;!t6(n.o);)t=u(Pp(n.o),42),i=u(t.a,125),e=u(t.b,218),r=HC(e,i),e.e==i?(BM(r.g,e),i.e=r.e+e.a):(BM(r.b,e),i.e=r.e-e.a),nn(n.e.a,i)}function QZ(n,e){var t,i,r;for(t=null,r=u(e.Kb(n),20).Kc();r.Ob();)if(i=u(r.Pb(),18),!t)t=i.c.i==n?i.d.i:i.c.i;else if((i.c.i==n?i.d.i:i.c.i)!=t)return!1;return!0}function NFn(n,e){var t,i,r,c,s;for(t=JHn(n,!1,e),r=new M(t);r.a<r.c.c.length;)i=u(E(r),132),i.d==0?($D(i,null),xD(i,null)):(c=i.a,s=i.b,$D(i,s),xD(i,c))}function aye(n){var e,t;return e=new ii,To(e,ire),t=u(v(n,(W(),Hc)),21),t.Hc((pr(),K8))&&To(e,ore),t.Hc(vv)&&To(e,rre),t.Hc(v2)&&To(e,ure),t.Hc(kv)&&To(e,cre),e}function YZ(n,e,t){var i,r,c,s,f;for(s8e(n),r=(n.k==null&&(n.k=F(zF,J,82,0,0,1)),n.k),c=0,s=r.length;c<s;++c)i=r[c],YZ(i);f=n.f,f&&YZ(f)}function dye(n){var e,t,i,r;for(nAe(n),t=new ie(ce(Ml(n).a.Kc(),new En));pe(t);)e=u(fe(t),18),i=e.c.i==n,r=i?e.d:e.c,i?Oi(e,null):Zi(e,null),U(e,(W(),ofn),r),SMe(n,r.i)}function bye(n,e,t,i){var r,c;switch(c=e.i,r=t[c.g][n.d[c.g]],c.g){case 1:r-=i+e.j.b,e.g.b=r;break;case 3:r+=i,e.g.b=r;break;case 4:r-=i+e.j.a,e.g.a=r;break;case 2:r+=i,e.g.a=r}}function wye(n){var e,t,i;for(t=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));t.e!=t.i.gc();)if(e=u(ue(t),27),i=cy(e),!pe(new ie(ce(i.a.Kc(),new En))))return e;return null}function wS(){wS=R,gq=new d7("OVERLAP_REMOVAL",0),dq=new d7(mVn,1),pq=new d7("ROTATION",2),bq=new d7("GRAPH_SIZE_CALCULATION",3),wq=new d7("OUTGOING_EDGE_ANGLES",4)}function gye(){var n;return Soe?u(Tm((B1(),Is),tv),2115):(n=u(L(Dc((B1(),Is),tv),569)?Dc(Is,tv):new jHn,569),Soe=!0,KAe(n),eDe(n),Hx(n),Lr(Is,tv,n),n)}function Jx(n,e,t){var i,r;if(n.j==0)return t;if(r=u(q$n(n,e,t),76),i=t.Lk(),!i.rk()||!n.a.am(i))throw T(new ec("Invalid entry feature '"+i.qk().zb+"."+i.xe()+"'"));return r}function pye(n,e){var t,i,r,c,s,f,h,l;for(f=n.a,h=0,l=f.length;h<l;++h)for(s=f[h],i=s,r=0,c=i.length;r<c;++r)if(t=i[r],x(e)===x(t)||e!=null&&rt(e,t))return!0;return!1}function mye(n){var e,t,i;return Ec(n,0)>=0?(t=Xk(n,QS),i=Kk(n,QS)):(e=U1(n,1),t=Xk(e,5e8),i=Kk(e,5e8),i=nr(Ks(i,1),vi(n,1))),lf(Ks(i,32),vi(t,mr))}function DFn(n,e,t){var i,r;switch(i=(oe(e.b!=0),u(Xo(e,e.a.a),8)),t.g){case 0:i.b=0;break;case 2:i.b=n.f;break;case 3:i.a=0;break;default:i.a=n.g}return r=ge(e,0),_7(r,i),e}function $Fn(n,e,t,i){var r,c,s,f,h;switch(h=n.b,c=e.d,s=c.j,f=oZ(s,h.d[s.g],t),r=tt(Fi(c.n),c.a),c.j.g){case 1:case 3:f.a+=r.a;break;case 2:case 4:f.b+=r.b}xt(i,f,i.c.b,i.c)}function vye(n,e,t){var i,r,c,s;for(s=qr(n.e,e,0),c=new JG,c.b=t,i=new xi(n.e,s);i.b<i.d.gc();)r=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),10)),r.p=t,nn(c.e,r),bo(i);return c}function kye(n,e,t,i){var r,c,s,f,h;for(r=null,c=0,f=new M(e);f.a<f.c.c.length;)s=u(E(f),27),h=s.i+s.g,n<s.j+s.f+i&&(r?t.i-h<t.i-c&&(r=s):r=s,c=r.i+r.g);return r?c+i:0}function yye(n,e,t,i){var r,c,s,f,h;for(c=null,r=0,f=new M(e);f.a<f.c.c.length;)s=u(E(f),27),h=s.j+s.f,n<s.i+s.g+i&&(c?t.j-h<t.j-r&&(c=s):c=s,r=c.j+c.f);return c?r+i:0}function jye(n){var e,t,i;for(e=!1,i=n.b.c.length,t=0;t<i;t++)tY(u(sn(n.b,t),443))?!e&&t+1<i&&tY(u(sn(n.b,t+1),443))&&(e=!0,u(sn(n.b,t),443).a=!0):e=!1}function Eye(n,e,t,i,r){var c,s;for(c=0,s=0;s<r;s++)c=nr(c,bs(vi(e[s],mr),vi(i[s],mr))),n[s]=Se(c),c=wb(c,32);for(;s<t;s++)c=nr(c,vi(e[s],mr)),n[s]=Se(c),c=wb(c,32)}function Mye(n,e){Sm();var t,i;for(i=(dh(),sI),t=n;e>1;e>>=1)e&1&&(i=Og(i,t)),t.d==1?t=Og(t,t):t=new QKn(pUn(t.a,t.d,F(ye,_e,28,t.d<<1,15,1)));return i=Og(i,t),i}function ZZ(){ZZ=R;var n,e,t,i;for(Nun=F(Ii,Cr,28,25,15,1),Dun=F(Ii,Cr,28,33,15,1),i=152587890625e-16,e=32;e>=0;e--)Dun[e]=i,i*=.5;for(t=1,n=24;n>=0;n--)Nun[n]=t,t*=.5}function Tye(n){var e,t;if(on(un(z(n,(cn(),Bw))))){for(t=new ie(ce(Sl(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),74),_b(e)&&on(un(z(e,Dd))))return!0}return!1}function xFn(n,e){var t,i,r;fi(n.f,e)&&(e.b=n,i=e.c,qr(n.j,i,0)!=-1||nn(n.j,i),r=e.d,qr(n.j,r,0)!=-1||nn(n.j,r),t=e.a.b,t.c.length!=0&&(!n.i&&(n.i=new iBn(n)),Ove(n.i,t)))}function Cye(n){var e,t,i,r,c;return t=n.c.d,i=t.j,r=n.d.d,c=r.j,i==c?t.p<r.p?0:1:BC(i)==c?0:SY(i)==c?1:(e=n.b,Su(e.b,BC(i))?0:1)}function gd(n){var e;this.d=new de,this.c=n.c,this.e=n.d,this.b=n.b,this.f=new hIn(n.e),this.a=n.a,n.f?this.g=n.f:this.g=(e=u(of(kA),9),new _o(e,u(xs(e,e.length),9),0))}function gS(n,e){var t,i,r,c,s,f;r=n,s=Y6(r,"layoutOptions"),!s&&(s=Y6(r,wWn)),s&&(f=s,i=null,f&&(i=(c=P$(f,F(fn,J,2,0,6,1)),new PL(f,c))),i&&(t=new ETn(f,e),qi(i,t)))}function Gr(n){if(L(n,207))return u(n,27);if(L(n,193))return Pf(u(n,123));throw T(n?new Fl("Only support nodes and ports."):new fp(MWn))}function Sye(n,e,t,i){return(e>=0&&Sn(n.substr(e,3),"GMT")||e>=0&&Sn(n.substr(e,3),"UTC"))&&(t[0]=e+3),Len(n,t,i)}function Pye(n,e){var t,i,r,c,s;for(c=n.g.a,s=n.g.b,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),72),r=t.n,r.a=c,n.i==(en(),Xn)?r.b=s+n.j.b-t.o.b:r.b=s,tt(r,e),c+=t.o.a+n.e}function RFn(n,e,t){if(n.b)throw T(new Ar("The task is already done."));return n.p!=null?!1:(n.p=e,n.r=t,n.k&&(n.o=(fl(),er(vc(Date.now()),d1))),!0)}function nnn(n){var e,t,i,r,c,s,f;return f=new sp,t=n.Pg(),r=t!=null,r&&j4(f,Eh,n.Pg()),i=n.xe(),c=i!=null,c&&j4(f,Qe,n.xe()),e=n.Og(),s=e!=null,s&&j4(f,"description",n.Og()),f}function KFn(n,e,t){var i,r,c;return c=n.q,n.q=e,n.Db&4&&!(n.Db&1)&&(r=new Mi(n,1,9,c,e),t?t.nj(r):t=r),e?(i=e.c,i!=n.r&&(t=n.Yk(i,t))):n.r&&(t=n.Yk(null,t)),t}function Iye(n,e,t){var i,r,c,s,f;for(t=(f=e,Wp(f,n.e,-1-n.c,t)),s=FW(n.a),c=(i=new sd(new Ua(s.a).a),new $E(i));c.a.b;)r=u(Nb(c.a).ld(),89),t=Dm(r,TS(r,n.a),t);return t}function Oye(n,e,t){var i,r,c,s,f;for(t=(f=e,AT(f,n.e,-1-n.c,t)),s=FW(n.a),c=(i=new sd(new Ua(s.a).a),new $E(i));c.a.b;)r=u(Nb(c.a).ld(),89),t=Dm(r,TS(r,n.a),t);return t}function Aye(n,e,t,i){var r,c,s;if(i==0)Oc(e,0,n,t,n.length-t);else for(s=32-i,n[n.length-1]=0,c=n.length-1;c>t;c--)n[c]|=e[c-t-1]>>>s,n[c-1]=e[c-t-1]<<i;for(r=0;r<t;r++)n[r]=0}function Lye(n){var e,t,i,r,c;for(e=0,t=0,c=n.Kc();c.Ob();)i=u(c.Pb(),117),e=y.Math.max(e,i.d.b),t=y.Math.max(t,i.d.c);for(r=n.Kc();r.Ob();)i=u(r.Pb(),117),i.d.b=e,i.d.c=t}function Nye(n){var e,t,i,r,c;for(t=0,e=0,c=n.Kc();c.Ob();)i=u(c.Pb(),117),t=y.Math.max(t,i.d.d),e=y.Math.max(e,i.d.a);for(r=n.Kc();r.Ob();)i=u(r.Pb(),117),i.d.d=t,i.d.a=e}function Qx(n,e,t,i,r){var c,s;c=u(Wr(ut(e.Oc(),new dpn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),Yk(c),s=u(od(n.b,t,i),15),r==0?s.cd(0,c):s.Gc(c)}function Dye(n,e,t){t.Ug("Grow Tree",1),n.b=e.f,on(un(v(e,(J4(),A8))))?(n.c=new kE,AAn(n,null)):n.c=new kE,n.a=!1,cqn(n,e.f),U(e,uon,(_n(),!!n.a)),t.Vg()}function enn(n){var e,t,i,r;for(e=null,r=new M(n.Rf());r.a<r.c.c.length;)i=u(E(r),187),t=new Ho(i.Lf().a,i.Lf().b,i.Mf().a,i.Mf().b),e?L5(e,t):e=t;return!e&&(e=new mp),e}function Yx(n,e,t,i){var r,c;return t==1?(!n.n&&(n.n=new q(Sr,n,1,7)),Xc(n.n,e,i)):(c=u($n((r=u(Un(n,16),29),r||n.ii()),t),69),c.wk().zk(n,iu(n),t-se(n.ii()),e,i))}function Zx(n,e,t){var i,r,c,s,f;for(i=t.gc(),n._i(n.i+i),f=n.i-e,f>0&&Oc(n.g,e,n.g,e+i,f),s=t.Kc(),n.i+=i,r=0;r<i;++r)c=s.Pb(),O6(n,e,n.Zi(e,c)),n.Mi(e,c),n.Ni(),++e;return i!=0}function Kf(n,e,t){var i;return e!=n.q?(n.q&&(t=AT(n.q,n,-10,t)),e&&(t=Wp(e,n,-10,t)),t=KFn(n,e,t)):n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,9,e,e),t?t.nj(i):t=i),t}function nR(n,e,t,i){return AV((t&wh)==0,"flatMap does not support SUBSIZED characteristic"),AV((t&4)==0,"flatMap does not support SORTED characteristic"),Pe(n),Pe(e),new TLn(n,e,t,i)}function $ye(n,e){PW(e,"Cannot suppress a null exception."),x7(e!=n,"Exception can not suppress itself."),!n.i&&(n.k==null?n.k=S(C(zF,1),J,82,0,[e]):n.k[n.k.length]=e)}function xye(n,e){var t;if(t=eCn(n.b.ag(),e.b.ag()),t!=0)return t;switch(n.b.ag().g){case 1:case 2:return jc(n.b.Nf(),e.b.Nf());case 3:case 4:return jc(e.b.Nf(),n.b.Nf())}return 0}function Rye(n){var e,t,i;for(i=n.e.c.length,n.a=Wa(ye,[J,_e],[53,28],15,[i,i],2),t=new M(n.c);t.a<t.c.c.length;)e=u(E(t),290),n.a[e.c.a][e.d.a]+=u(v(e,(Us(),k3)),17).a}function Kye(n,e){var t,i,r,c,s;if(n==null)return null;for(s=F(fs,gh,28,2*e,15,1),i=0,r=0;i<e;++i)t=n[i]>>4&15,c=n[i]&15,s[r++]=Ldn[t],s[r++]=Ldn[c];return ws(s,0,s.length)}function wu(n){var e,t;return n>=hr?(e=Py+(n-hr>>10&1023)&ui,t=56320+(n-hr&1023)&ui,String.fromCharCode(e)+(""+String.fromCharCode(t))):String.fromCharCode(n&ui)}function Bye(n,e){K0();var t,i,r,c;return r=u(u(ot(n.r,e),21),87),r.gc()>=2?(i=u(r.Kc().Pb(),117),t=n.u.Hc((zu(),S9)),c=n.u.Hc(K3),!i.a&&!t&&(r.gc()==2||c)):!1}function BFn(n,e,t,i,r){var c,s,f;for(c=Mqn(n,e,t,i,r),f=!1;!c;)ES(n,r,!0),f=!0,c=Mqn(n,e,t,i,r);f&&ES(n,r,!1),s=K$(r),s.c.length!=0&&(n.d&&n.d.Gg(s),BFn(n,r,t,i,s))}function pS(){pS=R,aU=new y6(kh,0),tdn=new y6("DIRECTED",1),rdn=new y6("UNDIRECTED",2),ndn=new y6("ASSOCIATION",3),idn=new y6("GENERALIZATION",4),edn=new y6("DEPENDENCY",5)}function Fye(n,e){var t;if(!Pf(n))throw T(new Ar(eWn));switch(t=Pf(n),e.g){case 1:return-(n.j+n.f);case 2:return n.i-t.g;case 3:return n.j-t.f;case 4:return-(n.i+n.g)}return 0}function _ye(n,e,t){var i,r,c;return i=e.Lk(),c=e.md(),r=i.Jk()?V1(n,4,i,c,null,Am(n,i,c,L(i,102)&&(u(i,19).Bb&hr)!=0),!0):V1(n,i.tk()?2:1,i,c,i.ik(),-1,!0),t?t.nj(r):t=r,t}function ym(n,e){var t,i;for(Jn(e),i=n.b.c.length,nn(n.b,e);i>0;){if(t=i,i=(i-1)/2|0,n.a.Ne(sn(n.b,i),e)<=0)return Go(n.b,t,e),!0;Go(n.b,t,sn(n.b,i))}return Go(n.b,i,e),!0}function tnn(n,e,t,i){var r,c;if(r=0,t)r=$C(n.a[t.g][e.g],i);else for(c=0;c<dI;c++)r=y.Math.max(r,$C(n.a[c][e.g],i));return e==(wf(),Wc)&&n.b&&(r=y.Math.max(r,n.b.a)),r}function Hye(n,e){var t,i,r,c,s,f;return r=n.i,c=e.i,!r||!c||r.i!=c.i||r.i==(en(),Zn)||r.i==(en(),Wn)?!1:(s=r.g.a,t=s+r.j.a,f=c.g.a,i=f+c.j.a,s<=i&&t>=f)}function FFn(n){switch(n.g){case 0:return new cmn;case 1:return new umn;default:throw T(new Gn("No implementation is available for the width approximator "+(n.f!=null?n.f:""+n.g)))}}function inn(n,e,t,i){var r;if(r=!1,Si(i)&&(r=!0,j4(e,t,Ae(i))),r||D0(i)&&(r=!0,inn(n,e,t,i)),r||L(i,242)&&(r=!0,nd(e,t,u(i,242))),!r)throw T(new vL(Lcn))}function qye(n,e){var t,i,r;if(t=e.qi(n.a),t&&(r=gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),vs),r!=null)){for(i=1;i<(Lu(),tbn).length;++i)if(Sn(tbn[i],r))return i}return 0}function Uye(n,e){var t,i,r;if(t=e.qi(n.a),t&&(r=gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),vs),r!=null)){for(i=1;i<(Lu(),ibn).length;++i)if(Sn(ibn[i],r))return i}return 0}function _Fn(n,e){var t,i,r,c;if(Jn(e),c=n.a.gc(),c<e.gc())for(t=n.a.ec().Kc();t.Ob();)i=t.Pb(),e.Hc(i)&&t.Qb();else for(r=e.Kc();r.Ob();)i=r.Pb(),n.a.Bc(i)!=null;return c!=n.a.gc()}function HFn(n){var e,t;switch(t=Fi(cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a]))),e=n.i.d,n.j.g){case 1:t.b-=e.d;break;case 2:t.a+=e.c;break;case 3:t.b+=e.a;break;case 4:t.a-=e.b}return t}function Gye(n){var e;for(e=(Hp(),u(fe(new ie(ce(ji(n).a.Kc(),new En))),18).c.i);e.k==(Vn(),Ti);)U(e,(W(),jj),(_n(),!0)),e=u(fe(new ie(ce(ji(e).a.Kc(),new En))),18).c.i}function eR(n,e,t,i){var r,c,s,f;for(f=g5(e,i),s=f.Kc();s.Ob();)r=u(s.Pb(),12),n.d[r.p]=n.d[r.p]+n.c[t.p];for(f=g5(t,i),c=f.Kc();c.Ob();)r=u(c.Pb(),12),n.d[r.p]=n.d[r.p]-n.c[e.p]}function rnn(n,e,t){var i,r;for(r=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));r.e!=r.i.gc();)i=u(ue(r),27),Bo(i,i.i+e,i.j+t);qi((!n.b&&(n.b=new q(Vt,n,12,3)),n.b),new aTn(e,t))}function zye(n,e,t,i){var r,c;for(c=e,r=c.d==null||n.a.Ne(t.d,c.d)>0?1:0;c.a[r]!=t;)c=c.a[r],r=n.a.Ne(t.d,c.d)>0?1:0;c.a[r]=i,i.b=t.b,i.a[0]=t.a[0],i.a[1]=t.a[1],t.a[0]=null,t.a[1]=null}function Xye(n){var e,t,i,r;for(e=new Z,t=F(so,Xh,28,n.a.c.length,16,1),TW(t,t.length),r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),125),t[i.d]||(Fn(e.c,i),sBn(n,i,t));return e}function qFn(n,e){var t,i,r,c,s;for(r=e==1?C_:T_,i=r.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),88),s=u(ot(n.f.c,t),21).Kc();s.Ob();)c=u(s.Pb(),42),du(n.b.b,c.b),du(n.b.a,u(c.b,86).d)}function Vye(n,e){var t;e.Ug("Hierarchical port position processing",1),t=n.b,t.c.length>0&&dUn((Nn(0,t.c.length),u(t.c[0],30)),n),t.c.length>1&&dUn(u(sn(t,t.c.length-1),30),n),e.Vg()}function Wye(n){zu();var e,t;return e=yt(Rl,S(C(oA,1),G,279,0,[Oa])),!(kk(NT(e,n))>1||(t=yt(S9,S(C(oA,1),G,279,0,[C9,K3])),kk(NT(t,n))>1))}function cnn(n,e){var t;t=Dc((B1(),Is),n),L(t,507)?Lr(Is,n,new NTn(this,e)):Lr(Is,n,this),tR(this,e),e==(o4(),Udn)?(this.wb=u(this,2038),u(e,2040)):this.wb=(G1(),Hn)}function Jye(n){var e,t,i;if(n==null)return null;for(e=null,t=0;t<A9.length;++t)try{return wMn(A9[t],n)}catch(r){if(r=Ot(r),L(r,33))i=r,e=i;else throw T(r)}throw T(new eC(e))}function UFn(){UFn=R,EQn=S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),MQn=S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])}function GFn(n){var e,t,i;e=Sn(typeof e,xK)?null:new Jbn,e&&(a4(),t=(i=900,i>=d1?"error":i>=900?"warn":i>=800?"info":"log"),nOn(t,n.a),n.b&&oen(e,t,n.b,"Exception: ",!0))}function v(n,e){var t,i;return i=(!n.q&&(n.q=new de),ee(n.q,e)),i??(t=e.Sg(),L(t,4)&&(t==null?(!n.q&&(n.q=new de),Kp(n.q,e)):(!n.q&&(n.q=new de),Ve(n.q,e,t))),t)}function Vi(){Vi=R,Vs=new o7("P1_CYCLE_BREAKING",0),Jh=new o7("P2_LAYERING",1),Ac=new o7("P3_NODE_ORDERING",2),Fc=new o7("P4_NODE_PLACEMENT",3),zr=new o7("P5_EDGE_ROUTING",4)}function Qye(n,e){i5();var t;if(n.c==e.c){if(n.b==e.b||rve(n.b,e.b)){if(t=Ile(n.b)?1:-1,n.a&&!e.a)return t;if(!n.a&&e.a)return-t}return jc(n.b.g,e.b.g)}else return bt(n.c,e.c)}function zFn(n,e){var t,i,r;if(onn(n,e))return!0;for(i=new M(e);i.a<i.c.c.length;)if(t=u(E(i),27),r=MFn(t),NS(n,t,r)||VRn(n,t)-n.g<=n.a)return!0;return!1}function Wk(){Wk=R,QO=(ER(),Q1n),Uq=sue,qq=oue,U1n=rue,Hq=uue,q1n=new fb(8),Qce=new Di((He(),M1),q1n),Yce=new Di(qd,8),Zce=W1n,_1n=nue,H1n=eue,Jce=new Di(zj,(_n(),!1))}function mS(){mS=R,ban=new fb(15),Tue=new Di((He(),M1),ban),Cue=new Di(qd,15),wan=new Di(Jj,Y(0)),lan=Lue,Eue=Hd,Mue=Ca,han=new Di(x2,$Vn),aan=Vj,dan=_2,Vq=Oue,jue=Gj}function Fh(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i!=1)throw T(new Gn(mF));return Gr(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84))}function XFn(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i!=1)throw T(new Gn(mF));return Mk(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84))}function VFn(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i!=1)throw T(new Gn(mF));return Mk(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))}function ra(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i!=1)throw T(new Gn(mF));return Gr(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))}function unn(n,e,t){var i,r,c;if(++n.j,r=n.Ej(),e>=r||e<0)throw T(new Or(vF+e+Cd+r));if(t>=r||t<0)throw T(new Or(kF+t+Cd+r));return e!=t?i=(c=n.Cj(t),n.qj(e,c),c):i=n.xj(t),i}function WFn(n){var e,t,i;if(i=n,n)for(e=0,t=n.Eh();t;t=t.Eh()){if(++e>IK)return WFn(t);if(i=t,t==n)throw T(new Ar("There is a cycle in the containment hierarchy of "+n))}return i}function ca(n){var e,t,i;for(i=new fd(ur,"[","]"),t=n.Kc();t.Ob();)e=t.Pb(),pl(i,x(e)===x(n)?"(this Collection)":e==null?gu:Jr(e));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function onn(n,e){var t,i;if(i=!1,e.gc()<2)return!1;for(t=0;t<e.gc();t++)t<e.gc()-1?i=i|NS(n,u(e.Xb(t),27),u(e.Xb(t+1),27)):i=i|NS(n,u(e.Xb(t),27),u(e.Xb(0),27));return i}function JFn(n,e){var t;e!=n.a?(t=null,n.a&&(t=u(n.a,54).Th(n,4,Ef,t)),e&&(t=u(e,54).Rh(n,4,Ef,t)),t=mY(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,1,e,e))}function snn(n,e){var t;e!=n.e?(n.e&&KNn(FW(n.e),n),e&&(!e.b&&(e.b=new DE(new aL)),VSn(e.b,n)),t=oke(n,e,null),t&&t.oj()):n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,4,e,e))}function Yye(n,e){var t;t=e.o,hl(n.f)?(n.j.a=y.Math.max(n.j.a,t.a),n.j.b+=t.b,n.d.c.length>1&&(n.j.b+=n.e)):(n.j.a+=t.a,n.j.b=y.Math.max(n.j.b,t.b),n.d.c.length>1&&(n.j.a+=n.e))}function ua(){ua=R,une=S(C(lr,1),Tc,64,0,[(en(),Xn),Zn,ae]),cne=S(C(lr,1),Tc,64,0,[Zn,ae,Wn]),one=S(C(lr,1),Tc,64,0,[ae,Wn,Xn]),sne=S(C(lr,1),Tc,64,0,[Wn,Xn,Zn])}function Zye(n,e,t,i){var r,c,s,f,h,l,a;if(s=n.c.d,f=n.d.d,s.j!=f.j)for(a=n.b,r=s.j,h=null;r!=f.j;)h=e==0?BC(r):SY(r),c=oZ(r,a.d[r.g],t),l=oZ(h,a.d[h.g],t),Re(i,tt(c,l)),r=h}function nje(n,e,t,i){var r,c,s,f,h;return s=ZBn(n.a,e,t),f=u(s.a,17).a,c=u(s.b,17).a,i&&(h=u(v(e,(W(),Xu)),10),r=u(v(t,Xu),10),h&&r&&(FLn(n.b,h,r),f+=n.b.i,c+=n.b.e)),f>c}function QFn(n){var e,t,i,r,c,s,f,h,l;for(this.a=kBn(n),this.b=new Z,t=n,i=0,r=t.length;i<r;++i)for(e=t[i],c=new Z,nn(this.b,c),f=e,h=0,l=f.length;h<l;++h)s=f[h],nn(c,new _u(s.j))}function eje(n,e,t){var i,r,c;return c=0,i=t[e],e<t.length-1&&(r=t[e+1],n.b[e]?(c=YNe(n.d,i,r),c+=pD(n.a,i,(en(),Zn)),c+=pD(n.a,r,Wn)):c=N4e(n.a,i,r)),n.c[e]&&(c+=r4e(n.a,i)),c}function tje(n,e,t,i,r){var c,s,f,h;for(h=null,f=new M(i);f.a<f.c.c.length;)if(s=u(E(f),453),s!=t&&qr(s.e,r,0)!=-1){h=s;break}c=JD(r),Zi(c,t.b),Oi(c,h.b),In(n.a,r,new zM(c,e,t.f))}function ije(n){var e,t,i,r;if(vg(u(v(n.b,(cn(),Lo)),88)))return 0;for(e=0,i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),10),t.k==(Vn(),zt)&&(r=t.o.a,e=y.Math.max(e,r));return e}function YFn(n){for(;n.g.c!=0&&n.d.c!=0;)AN(n.g).c>AN(n.d).c?(n.i+=n.g.c,px(n.d)):AN(n.d).c>AN(n.g).c?(n.e+=n.d.c,px(n.g)):(n.i+=sIn(n.g),n.e+=sIn(n.d),px(n.g),px(n.d))}function rje(n,e,t){var i,r,c,s;for(c=e.q,s=e.r,new ed((af(),Ea),e,c,1),new ed(Ea,c,s,1),r=new M(t);r.a<r.c.c.length;)i=u(E(r),118),i!=c&&i!=e&&i!=s&&(zen(n.a,i,e),zen(n.a,i,s))}function ZFn(n,e,t,i){n.a.d=y.Math.min(e,t),n.a.a=y.Math.max(e,i)-n.a.d,e<t?(n.b=.5*(e+t),n.g=HB*n.b+.9*e,n.f=HB*n.b+.9*t):(n.b=.5*(e+i),n.g=HB*n.b+.9*i,n.f=HB*n.b+.9*e)}function cje(n){var e,t,i,r;if(n.b!=0){for(e=new Mt,r=ge(n,0);r.b!=r.d.c;)i=u(be(r),40),Ki(e,R$(i)),t=i.e,t.a=u(v(i,(pt(),$j)),17).a,t.b=u(v(i,xj),17).a;return e}return new Mt}function uje(n){switch(u(v(n,(cn(),ou)),171).g){case 1:U(n,ou,(Yo(),H8));break;case 2:U(n,ou,(Yo(),xw));break;case 3:U(n,ou,(Yo(),_8));break;case 4:U(n,ou,(Yo(),ya))}}function oje(n,e,t){var i;t.Ug("Self-Loop routing",1),i=$5e(e),IM(v(e,(JT(),b9))),qt(_r(ut(ut(rc(new Cn(null,new On(e.b,16)),new m2n),new v2n),new k2n),new y2n),new PMn(n,i)),t.Vg()}function jm(){jm=R,x8=new m6(kh,0),Gsn=new m6(s3,1),Vsn=new m6(f3,2),Xsn=new m6("LEFT_RIGHT_CONSTRAINT_LOCKING",3),zsn=new m6("LEFT_RIGHT_CONNECTION_LOCKING",4),Usn=new m6(WXn,5)}function n_n(n,e,t){var i,r,c,s,f,h,l;f=t.a/2,c=t.b/2,i=y.Math.abs(e.a-n.a),r=y.Math.abs(e.b-n.b),h=1,l=1,i>f&&(h=f/i),r>c&&(l=c/r),s=y.Math.min(h,l),n.a+=s*(e.a-n.a),n.b+=s*(e.b-n.b)}function sje(n,e,t,i,r){var c,s;for(s=!1,c=u(sn(t.b,0),27);RIe(n,e,c,i,r)&&(s=!0,Kke(t,c),t.b.c.length!=0);)c=u(sn(t.b,0),27);return t.b.c.length==0&&Gk(t.j,t),s&&fS(e.q),s}function fje(n,e){Vg();var t,i,r,c;if(e.b<2)return!1;for(c=ge(e,0),t=u(be(c),8),i=t;c.b!=c.d.c;){if(r=u(be(c),8),mR(n,i,r))return!0;i=r}return!!mR(n,i,t)}function fnn(n,e,t,i){var r,c;return t==0?(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),UM(n.o,e,i)):(c=u($n((r=u(Un(n,16),29),r||n.ii()),t),69),c.wk().Ak(n,iu(n),t-se(n.ii()),e,i))}function tR(n,e){var t;e!=n.sb?(t=null,n.sb&&(t=u(n.sb,54).Th(n,1,O9,t)),e&&(t=u(e,54).Rh(n,1,O9,t)),t=yY(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,4,e,e))}function hje(n,e){var t,i,r,c;if(e)r=yl(e,"x"),t=new Gkn(n),_4(t.a,(Jn(r),r)),c=yl(e,"y"),i=new zkn(n),q4(i.a,(Jn(c),c));else throw T(new eh("All edge sections need an end point."))}function lje(n,e){var t,i,r,c;if(e)r=yl(e,"x"),t=new Hkn(n),H4(t.a,(Jn(r),r)),c=yl(e,"y"),i=new qkn(n),U4(i.a,(Jn(c),c));else throw T(new eh("All edge sections need a start point."))}function aje(n,e){var t,i,r,c,s,f,h;for(i=SRn(n),c=0,f=i.length;c<f;++c)GFn(e);for(h=!Uf&&n.e?Uf?null:n.d:null;h;){for(t=SRn(h),r=0,s=t.length;r<s;++r)GFn(e);h=!Uf&&h.e?Uf?null:h.d:null}}function e_n(n,e){var t,i;i=u(v(e,(cn(),Ft)),101),U(e,(W(),sfn),i),t=e.e,t&&(qt(new Cn(null,new On(t.a,16)),new OG(n)),qt(rc(new Cn(null,new On(t.b,16)),new _U),new AG(n)))}function Vn(){Vn=R,zt=new b6("NORMAL",0),Ti=new b6("LONG_EDGE",1),Zt=new b6("EXTERNAL_PORT",2),_c=new b6("NORTH_SOUTH_PORT",3),Sc=new b6("LABEL",4),Gf=new b6("BREAKING_POINT",5)}function dje(n){var e,t,i,r;if(e=!1,kt(n,(W(),B8)))for(t=u(v(n,B8),85),r=new M(n.j);r.a<r.c.c.length;)i=u(E(r),12),jTe(i)&&(e||($Ee(Hi(n)),e=!0),P8e(u(t.xc(i),314)))}function bje(n){var e,t,i,r,c,s,f,h,l;return l=nnn(n),t=n.e,c=t!=null,c&&j4(l,FP,n.e),f=n.k,s=!!f,s&&j4(l,"type",PN(n.k)),i=Z9(n.j),r=!i,r&&(h=new _a,bf(l,pF,h),e=new ayn(h),qi(n.j,e)),l}function wje(n){var e,t,i,r;for(r=z1((Mo(n.gc(),"size"),new fg),123),i=!0,t=Ja(n).Kc();t.Ob();)e=u(t.Pb(),44),i||(r.a+=ur),i=!1,Lc(z1(Lc(r,e.ld()),61),e.md());return(r.a+="}",r).a}function t_n(n,e){var t,i,r;return e&=63,e<22?(t=n.l<<e,i=n.m<<e|n.l>>22-e,r=n.h<<e|n.m>>22-e):e<44?(t=0,i=n.l<<e-22,r=n.m<<e-22|n.l>>44-e):(t=0,i=0,r=n.l<<e-44),Yc(t&ro,i&ro,r&Ol)}function sw(n){if(dun==null&&(dun=new RegExp("^\\s*[+-]?(NaN|Infinity|((\\d+\\.?\\d*)|(\\.\\d+))([eE][+-]?\\d+)?[dDfF]?)\\s*$")),!dun.test(n))throw T(new th(Vb+n+'"'));return parseFloat(n)}function i_n(n,e){var t,i,r,c,s;for(r=e==1?C_:T_,i=r.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),88),s=u(ot(n.f.c,t),21).Kc();s.Ob();)c=u(s.Pb(),42),nn(n.b.b,u(c.b,86)),nn(n.b.a,u(c.b,86).d)}function gje(n,e){var t,i,r,c;for(c=e.b.j,n.a=F(ye,_e,28,c.c.length,15,1),r=0,i=0;i<c.c.length;i++)t=(Nn(i,c.c.length),u(c.c[i],12)),t.e.c.length==0&&t.g.c.length==0?r+=1:r+=3,n.a[i]=r}function vS(){vS=R,Z_=new g6("ALWAYS_UP",0),Y_=new g6("ALWAYS_DOWN",1),eH=new g6("DIRECTION_UP",2),nH=new g6("DIRECTION_DOWN",3),tH=new g6("SMART_UP",4),JI=new g6("SMART_DOWN",5)}function pje(n,e){if(n<0||e<0)throw T(new Gn("k and n must be positive"));if(e>n)throw T(new Gn("k must be smaller than n"));return e==0||e==n?1:n==0?0:xZ(n)/(xZ(e)*xZ(n-e))}function hnn(n,e){var t,i,r,c;for(t=new CX(n);t.g==null&&!t.c?rJ(t):t.g==null||t.i!=0&&u(t.g[t.i-1],51).Ob();)if(c=u(MS(t),58),L(c,167))for(i=u(c,167),r=0;r<e.length;r++)e[r].Kg(i)}function iR(n){var e;return n.Db&64?ox(n):(e=new ls(ox(n)),e.a+=" (height: ",hg(e,n.f),e.a+=", width: ",hg(e,n.g),e.a+=", x: ",hg(e,n.i),e.a+=", y: ",hg(e,n.j),e.a+=")",e.a)}function mje(n){var e,t,i,r,c,s,f;for(e=new Ql,i=n,r=0,c=i.length;r<c;++r)if(t=i[r],s=Pe(t.ld()),f=s1(e,s,Pe(t.md())),f!=null)throw T(new Gn("duplicate key: "+s));this.b=(Ln(),new eL(e))}function vje(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],pl(c,String.fromCharCode(e));return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function lnn(){lnn=R,don=(uC(),vI),BYn=new Tn(cP,don),Y(1),KYn=new Tn(Xtn,Y(300)),Y(0),HYn=new Tn(Vtn,Y(0)),qYn=new Tn(ZK,vh),FYn=new Tn(nB,5),UYn=vI,_Yn=m_}function kje(n,e){var t;if(e!=null&&!n.c.Hk().fk(e))throw t=L(e,58)?u(e,58).Dh().zb:Xa(wo(e)),T(new i4(ba+n.c.xe()+"'s type '"+n.c.Hk().xe()+"' does not permit a value of type '"+t+"'"))}function yje(n,e,t){var i,r;for(r=new xi(n.b,0);r.b<r.d.gc();)i=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),72)),x(v(i,(W(),ufn)))===x(e)&&(pnn(i.n,Hi(n.c.i),t),bo(r),nn(e.b,i))}function r_n(n){var e,t;return t=y.Math.sqrt((n.k==null&&(n.k=xQ(n,new Hpn)),$(n.k)/(n.b*(n.g==null&&(n.g=Exn(n,new VU)),$(n.g))))),e=Se(vc(y.Math.round(t))),e=y.Math.min(e,n.f),e}function jje(){var n,e,t;for(e=0,n=0;n<1;n++){if(t=Fnn((zn(n,1),"X".charCodeAt(n))),t==0)throw T(new Ne((zn(n,2),"Unknown Option: "+"X".substr(n))));e|=t}return e}function Ic(){Au(),mV.call(this),this.j=(en(),sc),this.a=new Ni,new sL,this.f=(Mo(2,mw),new Gc(2)),this.e=(Mo(4,mw),new Gc(4)),this.g=(Mo(4,mw),new Gc(4)),this.b=new OMn(this.e,this.g)}function Eje(n,e){var t,i;return!(on(un(v(e,(W(),zf))))||(i=e.c.i,n==(Yo(),_8)&&i.k==(Vn(),Sc))||(t=u(v(i,(cn(),ou)),171),t==ya))}function Mje(n,e){var t,i;return!(on(un(v(e,(W(),zf))))||(i=e.d.i,n==(Yo(),H8)&&i.k==(Vn(),Sc))||(t=u(v(i,(cn(),ou)),171),t==xw))}function Tje(n,e){var t,i,r,c,s,f,h;for(s=n.d,h=n.o,f=new Ho(-s.b,-s.d,s.b+h.a+s.c,s.d+h.b+s.a),i=e,r=0,c=i.length;r<c;++r)t=i[r],t&&L5(f,t.i);s.b=-f.c,s.d=-f.d,s.c=f.b-s.b-h.a,s.a=f.a-s.d-h.b}function Cje(n,e){if(e.a)switch(u(v(e.b,(W(),sfn)),101).g){case 0:case 1:Uke(e);case 2:qt(new Cn(null,new On(e.d,16)),new UU),PMe(n.a,e)}else qt(new Cn(null,new On(e.d,16)),new UU)}function Jk(){Jk=R,R1n=new w7("CENTER_DISTANCE",0),Fq=new w7("CIRCLE_UNDERLAP",1),B1n=new w7("RECTANGLE_UNDERLAP",2),_q=new w7("INVERTED_OVERLAP",3),K1n=new w7("MINIMUM_ROOT_DISTANCE",4)}function Sje(n){ben();var e,t,i,r,c;if(n==null)return null;for(i=n.length,r=i*2,e=F(fs,gh,28,r,15,1),t=0;t<i;t++)c=n[t],c<0&&(c+=256),e[t*2]=PA[c>>4],e[t*2+1]=PA[c&15];return ws(e,0,e.length)}function Pje(n){yT();var e,t,i;switch(i=n.c.length,i){case 0:return rQn;case 1:return e=u(K_n(new M(n)),44),y0e(e.ld(),e.md());default:return t=u(Rf(n,F(Id,WS,44,n.c.length,0,1)),173),new fz(t)}}function Ije(n){var e,t,i,r,c,s;for(e=new Mg,t=new Mg,W1(e,n),W1(t,n);t.b!=t.c;)for(r=u(Pp(t),36),s=new M(r.a);s.a<s.c.c.length;)c=u(E(s),10),c.e&&(i=c.e,W1(e,i),W1(t,i));return e}function h1(n,e){switch(e.g){case 1:return Mp(n.j,(Au(),Kon));case 2:return Mp(n.j,(Au(),xon));case 3:return Mp(n.j,(Au(),Fon));case 4:return Mp(n.j,(Au(),_on));default:return Ln(),Ln(),sr}}function Oje(n,e){var t,i,r;t=b0e(e,n.e),i=u(ee(n.g.f,t),17).a,r=n.a.c.length-1,n.a.c.length!=0&&u(sn(n.a,r),294).c==i?(++u(sn(n.a,r),294).a,++u(sn(n.a,r),294).b):nn(n.a,new hSn(i))}function Aje(n,e,t){var i,r;return i=XSe(n,e,t),i!=0?i:kt(e,(W(),dt))&&kt(t,dt)?(r=jc(u(v(e,dt),17).a,u(v(t,dt),17).a),r<0?hy(n,e,t):r>0&&hy(n,t,e),r):pMe(n,e,t)}function oa(){oa=R,fce=(He(),D3),hce=qd,cce=Hd,uce=_2,oce=Ca,rce=F2,Jln=Wj,sce=Ww,vq=(Men(),Xre),kq=Vre,Yln=Yre,yq=ece,Zln=Zre,n1n=nce,Qln=Wre,_O=Jre,HO=Qre,Rj=tce,e1n=ice,Wln=zre}function c_n(n,e){var t,i,r,c,s;if(n.e<=e||Z2e(n,n.g,e))return n.g;for(c=n.r,i=n.g,s=n.r,r=(c-i)/2+i;i+1<c;)t=G5(n,r,!1),t.b<=r&&t.a<=e?(s=r,c=r):i=r,r=(c-i)/2+i;return s}function Lje(n,e,t){var i;i=Cqn(n,e,!0),RFn(t,"Recursive Graph Layout",i),hnn(e,S(C(can,1),Kn,536,0,[new j8n])),Nf(e,(He(),q2))||hnn(e,S(C(can,1),Kn,536,0,[new Cmn])),ltn(n,e,null,t),u_n(t)}function u_n(n){var e;if(n.p==null)throw T(new Ar("The task has not begun yet."));n.b||(n.k&&(e=(fl(),er(vc(Date.now()),d1)),n.q=id(bs(e,n.o))*1e-9),n.c<n.r&&EQ(n,n.r-n.c),n.b=!0)}function Qk(n){var e,t,i;for(i=new Tu,Re(i,new V(n.j,n.k)),t=new ne((!n.a&&(n.a=new ti(xo,n,5)),n.a));t.e!=t.i.gc();)e=u(ue(t),377),Re(i,new V(e.a,e.b));return Re(i,new V(n.b,n.c)),i}function Nje(n,e,t,i,r){var c,s,f,h,l,a;if(r)for(h=r.a.length,c=new Qa(h),a=(c.b-c.a)*c.c<0?(F1(),xa):new q1(c);a.Ob();)l=u(a.Pb(),17),f=N4(r,l.a),s=new AOn(n,e,t,i),eIe(s.a,s.b,s.c,s.d,f)}function ann(n,e){var t;if(x(n)===x(e))return!0;if(L(e,21)){t=u(e,21);try{return n.gc()==t.gc()&&n.Ic(t)}catch(i){if(i=Ot(i),L(i,169)||L(i,212))return!1;throw T(i)}}return!1}function rR(n,e,t,i,r,c){switch(this.c=n,e.g){case 2:if(n.a.Ne(r,t)<0)throw T(new Gn(Ttn+r+Wzn+t));break;case 1:n.a.Ne(r,r);break;case 3:n.a.Ne(t,t)}this.f=e,this.b=t,this.a=i,this.e=r,this.d=c}function dnn(n,e){var t;nn(n.d,e),t=e.Mf(),n.c?(n.e.a=y.Math.max(n.e.a,t.a),n.e.b+=t.b,n.d.c.length>1&&(n.e.b+=n.a)):(n.e.a+=t.a,n.e.b=y.Math.max(n.e.b,t.b),n.d.c.length>1&&(n.e.a+=n.a))}function Dje(n){var e,t,i,r;switch(r=n.i,e=r.b,i=r.j,t=r.g,r.a.g){case 0:t.a=(n.g.b.o.a-i.a)/2;break;case 1:t.a=e.d.n.a+e.d.a.a;break;case 2:t.a=e.d.n.a+e.d.a.a-i.a;break;case 3:t.b=e.d.n.b+e.d.a.b}}function $je(n,e,t){var i,r,c;for(r=new ie(ce(Ml(t).a.Kc(),new En));pe(r);)i=u(fe(r),18),!fr(i)&&!(!fr(i)&&i.c.i.c==i.d.i.c)&&(c=WHn(n,i,t,new Zyn),c.c.length>1&&Fn(e.c,c))}function o_n(n,e,t,i,r){if(i<e||r<t)throw T(new Gn("The highx must be bigger then lowx and the highy must be bigger then lowy"));return n.a<e?n.a=e:n.a>i&&(n.a=i),n.b<t?n.b=t:n.b>r&&(n.b=r),n}function xje(n){if(L(n,143))return dCe(u(n,143));if(L(n,233))return i8e(u(n,233));if(L(n,23))return bje(u(n,23));throw T(new Gn(Ncn+ca(new Fu(S(C(ki,1),Kn,1,5,[n])))))}function Rje(n,e,t,i,r){var c,s,f;for(c=!0,s=0;s<i;s++)c=c&t[s]==0;if(r==0)Oc(t,i,n,0,e),s=e;else{for(f=32-r,c=c&t[s]<<f==0,s=0;s<e-1;s++)n[s]=t[s+i]>>>r|t[s+i+1]<<f;n[s]=t[s+i]>>>r,++s}return c}function bnn(n,e,t,i){var r,c,s;if(e.k==(Vn(),Ti)){for(c=new ie(ce(ji(e).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),s=r.c.i.k,s==Ti&&n.c.a[r.c.i.c.p]==i&&n.c.a[e.c.p]==t)return!0}return!1}function Kje(n,e){var t,i,r,c;return e&=63,t=n.h&Ol,e<22?(c=t>>>e,r=n.m>>e|t<<22-e,i=n.l>>e|n.m<<22-e):e<44?(c=0,r=t>>>e-22,i=n.m>>e-22|n.h<<44-e):(c=0,r=0,i=t>>>e-44),Yc(i&ro,r&ro,c&Ol)}function s_n(n,e,t,i){var r;this.b=i,this.e=n==(Ab(),Z8),r=e[t],this.d=Wa(so,[J,Xh],[183,28],16,[r.length,r.length],2),this.a=Wa(ye,[J,_e],[53,28],15,[r.length,r.length],2),this.c=new WZ(e,t)}function Bje(n){var e,t,i;for(n.k=new oJ((en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,n.j.c.length),i=new M(n.j);i.a<i.c.c.length;)t=u(E(i),113),e=t.d.j,In(n.k,e,t);n.e=ZTe(Cp(n.k))}function f_n(n,e){var t,i,r;fi(n.d,e),t=new _3n,Ve(n.c,e,t),t.f=tx(e.c),t.a=tx(e.d),t.d=(K5(),r=e.c.i.k,r==(Vn(),zt)||r==Gf),t.e=(i=e.d.i.k,i==zt||i==Gf),t.b=e.c.j==(en(),Wn),t.c=e.d.j==Zn}function Fje(n){var e,t,i,r,c;for(c=et,r=et,i=new M(xg(n));i.a<i.c.c.length;)t=u(E(i),218),e=t.e.e-t.d.e,t.e==n&&e<r?r=e:e<c&&(c=e);return r==et&&(r=-1),c==et&&(c=-1),new bi(Y(r),Y(c))}function _je(n,e){var t,i,r;return r=i2,i=(C5(),fj),r=y.Math.abs(n.b),t=y.Math.abs(e.f-n.b),t<r&&(r=t,i=gI),t=y.Math.abs(n.a),t<r&&(r=t,i=hj),t=y.Math.abs(e.g-n.a),t<r&&(r=t,i=wI),i}function Hje(n,e){var t,i,r,c;for(t=e.a.o.a,c=new Jl(Hi(e.a).b,e.c,e.f+1),r=new zv(c);r.b<r.d.gc();)if(i=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),30)),i.c.a>=t)return Em(n,e,i.p),!0;return!1}function Ug(n,e,t,i){var r,c,s,f,h,l;for(s=t.length,c=0,r=-1,l=e$n((zn(e,n.length+1),n.substr(e)),(xN(),Aun)),f=0;f<s;++f)h=t[f].length,h>c&&awe(l,e$n(t[f],Aun))&&(r=f,c=h);return r>=0&&(i[0]=e+c),r}function h_n(n){var e;return n.Db&64?iR(n):(e=new mo(jcn),!n.a||Be(Be((e.a+=' "',e),n.a),'"'),Be(tb(Be(tb(Be(tb(Be(tb((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function l_n(n,e,t){var i,r,c,s,f;for(f=ru(n.e.Dh(),e),r=u(n.g,124),i=0,s=0;s<n.i;++s)if(c=r[s],f.am(c.Lk())){if(i==t)return dw(n,s),dr(),u(e,69).xk()?c:c.md();++i}throw T(new Or(p8+t+Cd+i))}function a_n(n){var e,t,i;if(e=n.c,e==2||e==7||e==1)return nt(),nt(),F9;for(i=otn(n),t=null;(e=n.c)!=2&&e!=7&&e!=1;)t||(t=(nt(),nt(),new P6(1)),pd(t,i),i=t),pd(t,otn(n));return i}function qje(n,e,t){return n<0||n>t?Mnn(n,t,"start index"):e<0||e>t?Mnn(e,t,"end index"):B5("end index (%s) must not be less than start index (%s)",S(C(ki,1),Kn,1,5,[Y(e),Y(n)]))}function d_n(n,e){var t,i,r,c;for(i=0,r=n.length;i<r;i++){c=n[i];try{c[1]?c[0].Um()&&(e=V0e(e,c)):c[0].Um()}catch(s){if(s=Ot(s),L(s,82))t=s,HE(),xge(L(t,486)?u(t,486).ke():t);else throw T(s)}}return e}function Em(n,e,t){var i,r,c;for(t!=e.c+e.b.gc()&&fOe(e.a,Tve(e,t-e.c)),c=e.a.c.p,n.a[c]=y.Math.max(n.a[c],e.a.o.a),r=u(v(e.a,(W(),F8)),15).Kc();r.Ob();)i=u(r.Pb(),72),U(i,$_,(_n(),!0))}function Uje(n,e){var t,i,r;r=yCe(e),U(e,(W(),aH),r),r&&(i=et,wr(n.f,r)&&(i=u(Fr(wr(n.f,r)),17).a),t=u(sn(e.g,0),18),on(un(v(t,zf)))||Ve(n,r,Y(y.Math.min(u(v(t,dt),17).a,i))))}function b_n(n,e,t){var i,r,c,s,f;for(e.p=-1,f=Rb(e,(gr(),Jc)).Kc();f.Ob();)for(s=u(f.Pb(),12),r=new M(s.g);r.a<r.c.c.length;)i=u(E(r),18),c=i.d.i,e!=c&&(c.p<0?t.Fc(i):c.p>0&&b_n(n,c,t));e.p=0}function ln(n){var e;this.c=new Mt,this.f=n.e,this.e=n.d,this.i=n.g,this.d=n.c,this.b=n.b,this.k=n.j,this.a=n.a,n.i?this.j=n.i:this.j=(e=u(of(Zh),9),new _o(e,u(xs(e,e.length),9),0)),this.g=n.f}function Gje(n){var e,t,i,r;for(e=z1(Be(new mo("Predicates."),"and"),40),t=!0,r=new zv(n);r.b<r.d.gc();)i=(oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++)),t||(e.a+=","),e.a+=""+i,t=!1;return(e.a+=")",e).a}function w_n(n,e,t){var i,r,c;if(!(t<=e+2))for(r=(t-e)/2|0,i=0;i<r;++i)c=(Nn(e+i,n.c.length),u(n.c[e+i],12)),Go(n,e+i,(Nn(t-i-1,n.c.length),u(n.c[t-i-1],12))),Nn(t-i-1,n.c.length),n.c[t-i-1]=c}function zje(n,e,t){var i,r,c,s,f,h,l,a;c=n.d.p,f=c.e,h=c.r,n.g=new L7(h),s=n.d.o.c.p,i=s>0?f[s-1]:F(Qh,b1,10,0,0,1),r=f[s],l=s<f.length-1?f[s+1]:F(Qh,b1,10,0,0,1),a=e==t-1,a?LD(n.g,r,l):LD(n.g,i,r)}function g_n(n){var e;this.j=new Z,this.f=new ni,this.b=(e=u(of(lr),9),new _o(e,u(xs(e,e.length),9),0)),this.d=F(ye,_e,28,(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,15,1),this.g=n}function p_n(n,e){var t,i,r;if(e.c.length!=0){for(t=zFn(n,e),r=!1;!t;)ES(n,e,!0),r=!0,t=zFn(n,e);r&&ES(n,e,!1),i=K$(e),n.b&&n.b.Gg(i),n.a=VRn(n,(Nn(0,e.c.length),u(e.c[0],27))),p_n(n,i)}}function cR(n,e){var t,i,r;if(i=$n(n.Dh(),e),t=e-n.ji(),t<0)if(i)if(i.rk())r=n.Ih(i),r>=0?n.ki(r):Pnn(n,i);else throw T(new Gn(ba+i.xe()+b8));else throw T(new Gn(aWn+e+dWn));else Wo(n,t,i)}function wnn(n){var e,t;if(t=null,e=!1,L(n,211)&&(e=!0,t=u(n,211).a),e||L(n,263)&&(e=!0,t=""+u(n,263).a),e||L(n,493)&&(e=!0,t=""+u(n,493).a),!e)throw T(new vL(Lcn));return t}function gnn(n,e,t){var i,r,c,s,f,h;for(h=ru(n.e.Dh(),e),i=0,f=n.i,r=u(n.g,124),s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk())){if(t==i)return s;++i,f=s+1}if(t==i)return f;throw T(new Or(p8+t+Cd+i))}function Xje(n,e){var t,i,r,c;if(n.f.c.length==0)return null;for(c=new mp,i=new M(n.f);i.a<i.c.c.length;)t=u(E(i),72),r=t.o,c.b=y.Math.max(c.b,r.a),c.a+=r.b;return c.a+=(n.f.c.length-1)*e,c}function Vje(n){var e,t,i,r;for(t=new Mt,Ki(t,n.o),i=new YG;t.b!=0;)e=u(t.b==0?null:(oe(t.b!=0),Xo(t,t.a.a)),515),r=ezn(n,e,!0),r&&nn(i.a,e);for(;i.a.c.length!=0;)e=u($Rn(i),515),ezn(n,e,!1)}function l1(){l1=R,uan=new wp(n8,0),yi=new wp("BOOLEAN",1),Zr=new wp("INT",2),$2=new wp("STRING",3),Qi=new wp("DOUBLE",4),It=new wp("ENUM",5),N3=new wp("ENUMSET",6),Vf=new wp("OBJECT",7)}function L5(n,e){var t,i,r,c,s;i=y.Math.min(n.c,e.c),c=y.Math.min(n.d,e.d),r=y.Math.max(n.c+n.b,e.c+e.b),s=y.Math.max(n.d+n.a,e.d+e.a),r<i&&(t=i,i=r,r=t),s<c&&(t=c,c=s,s=t),LPn(n,i,c,r-i,s-c)}function m_n(n,e){var t,i;if(n.f){for(;e.Ob();)if(t=u(e.Pb(),76),i=t.Lk(),L(i,102)&&u(i,19).Bb&kc&&(!n.e||i.pk()!=Hv||i.Lj()!=0)&&t.md()!=null)return e.Ub(),!0;return!1}else return e.Ob()}function v_n(n,e){var t,i;if(n.f){for(;e.Sb();)if(t=u(e.Ub(),76),i=t.Lk(),L(i,102)&&u(i,19).Bb&kc&&(!n.e||i.pk()!=Hv||i.Lj()!=0)&&t.md()!=null)return e.Pb(),!0;return!1}else return e.Sb()}function Lu(){Lu=R,ibn=S(C(fn,1),J,2,6,[Xcn,Qy,YP,IJn,ZP,PF,FP]),tbn=S(C(fn,1),J,2,6,[Xcn,"empty",Qy,Jy,"elementOnly"]),rbn=S(C(fn,1),J,2,6,[Xcn,"preserve","replace",vf]),zi=new DPn}function pnn(n,e,t){var i,r,c;if(e!=t){i=e;do tt(n,i.c),r=i.e,r&&(c=i.d,ab(n,c.b,c.d),tt(n,r.n),i=Hi(r));while(r);i=t;do mi(n,i.c),r=i.e,r&&(c=i.d,N6(n,c.b,c.d),mi(n,r.n),i=Hi(r));while(r)}}function uR(n,e,t,i){var r,c,s,f,h;if(i.f.c+i.i.c==0)for(s=n.a[n.c],f=0,h=s.length;f<h;++f)c=s[f],Ve(i,c,new Axn(n,c,t));return r=u(Fr(wr(i.f,e)),677),r.b=0,r.c=r.f,r.c==0||r9n(u(sn(r.a,r.b),294)),r}function Yp(){Yp=R,bv=new w6("MEDIAN_LAYER",0),D8=new w6("TAIL_LAYER",1),dv=new w6("HEAD_LAYER",2),Dw=new w6("SPACE_EFFICIENT_LAYER",3),p2=new w6("WIDEST_LAYER",4),g2=new w6("CENTER_LAYER",5)}function mnn(n){var e,t,i,r;for(n.e=0,r=ge(n.f,0);r.b!=r.d.c;)i=u(be(r),10),i.p>=n.d.b.c.length&&(e=new Nc(n.d),e.p=i.p-1,nn(n.d.b,e),t=new Nc(n.d),t.p=i.p,nn(n.d.b,t)),$i(i,u(sn(n.d.b,i.p),30))}function vnn(n,e,t){var i,r,c;if(!n.b[e.g]){for(n.b[e.g]=!0,i=t,!i&&(i=new tk),Re(i.b,e),c=n.a[e.g].Kc();c.Ob();)r=u(c.Pb(),65),r.b!=e&&vnn(n,r.b,i),r.c!=e&&vnn(n,r.c,i),Re(i.a,r);return i}return null}function Wje(n){switch(n.g){case 0:case 1:case 2:return en(),Xn;case 3:case 4:case 5:return en(),ae;case 6:case 7:case 8:return en(),Wn;case 9:case 10:case 11:return en(),Zn;default:return en(),sc}}function Jje(n,e){var t;return n.c.length==0?!1:(t=LKn((Nn(0,n.c.length),u(n.c[0],18)).c.i),ko(),t==(cw(),I2)||t==P2?!0:Ag(_r(new Cn(null,new On(n,16)),new r3n),new Y7n(e)))}function oR(n,e){if(L(e,207))return Ule(n,u(e,27));if(L(e,193))return Gle(n,u(e,123));if(L(e,452))return qle(n,u(e,166));throw T(new Gn(Ncn+ca(new Fu(S(C(ki,1),Kn,1,5,[e])))))}function k_n(n,e,t){var i,r;if(this.f=n,i=u(ee(n.b,e),260),r=i?i.a:0,RJ(t,r),t>=(r/2|0))for(this.e=i?i.c:null,this.d=r;t++<r;)t$n(this);else for(this.c=i?i.b:null;t-- >0;)oQ(this);this.b=e,this.a=null}function Qje(n,e){var t,i;e.a?ACe(n,e):(t=u(OL(n.b,e.b),60),t&&t==n.a[e.b.f]&&t.a&&t.a!=e.b.a&&t.c.Fc(e.b),i=u(IL(n.b,e.b),60),i&&n.a[i.f]==e.b&&i.a&&i.a!=e.b.a&&e.b.c.Fc(i),EN(n.b,e.b))}function y_n(n,e){var t,i;if(t=u(Mr(n.b,e),127),u(u(ot(n.r,e),21),87).dc()){t.n.b=0,t.n.c=0;return}t.n.b=n.C.b,t.n.c=n.C.c,n.A.Hc((go(),Gd))&&Xqn(n,e),i=T9e(n,e),kR(n,e)==(Kg(),Pa)&&(i+=2*n.w),t.a.a=i}function j_n(n,e){var t,i;if(t=u(Mr(n.b,e),127),u(u(ot(n.r,e),21),87).dc()){t.n.d=0,t.n.a=0;return}t.n.d=n.C.d,t.n.a=n.C.a,n.A.Hc((go(),Gd))&&Vqn(n,e),i=M9e(n,e),kR(n,e)==(Kg(),Pa)&&(i+=2*n.w),t.a.b=i}function Yje(n,e){var t,i,r,c;for(c=new Z,i=new M(e);i.a<i.c.c.length;)t=u(E(i),68),nn(c,new Gz(t,!0)),nn(c,new Gz(t,!1));r=new JOn(n),r.a.a.$b(),lLn(c,n.b,new Fu(S(C(RQn,1),Kn,693,0,[r])))}function E_n(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;return h=n.a,p=n.b,l=e.a,m=e.b,a=t.a,k=t.b,d=i.a,j=i.b,c=h*m-p*l,s=a*j-k*d,r=(h-l)*(k-j)-(p-m)*(a-d),f=(c*(a-d)-s*(h-l))/r,g=(c*(k-j)-s*(p-m))/r,new V(f,g)}function Zje(n,e){var t,i,r;e.Ug("End label pre-processing",1),t=$(B(v(n,(cn(),C2)))),i=$(B(v(n,qw))),r=vg(u(v(n,Lo),88)),qt(rc(new Cn(null,new On(n.b,16)),new Kwn),new pPn(t,i,r)),e.Vg()}function knn(n,e){var t,i,r;if(!n.d[e.p]){for(n.d[e.p]=!0,n.a[e.p]=!0,i=new ie(ce(Qt(e).a.Kc(),new En));pe(i);)t=u(fe(i),18),!fr(t)&&(r=t.d.i,n.a[r.p]?nn(n.b,t):knn(n,r));n.a[e.p]=!1}}function M_n(n,e,t){var i;switch(i=0,u(v(e,(cn(),ou)),171).g){case 2:i=2*-t+n.a,++n.a;break;case 1:i=-t;break;case 3:i=t;break;case 4:i=2*t+n.b,++n.b}return kt(e,(W(),dt))&&(i+=u(v(e,dt),17).a),i}function T_n(n,e,t){var i,r,c;for(t.zc(e,n),nn(n.n,e),c=n.p.zg(e),e.j==n.p.Ag()?kKn(n.e,c):kKn(n.j,c),mT(n),r=$h(Eo(S(C(Ao,1),Kn,20,0,[new e4(e),new ip(e)])));pe(r);)i=u(fe(r),12),t._b(i)||T_n(n,i,t)}function nEe(n,e,t){var i,r,c;for(t.Ug("Processor set neighbors",1),n.a=e.b.b==0?1:e.b.b,r=null,i=ge(e.b,0);!r&&i.b!=i.d.c;)c=u(be(i),40),on(un(v(c,(pt(),Ta))))&&(r=c);r&&Iqn(n,new sl(r),t),t.Vg()}function ynn(n){var e,t,i;return t=u(z(n,(He(),Hd)),21),t.Hc((go(),Qw))?(i=u(z(n,Ca),21),e=new rr(u(z(n,_2),8)),i.Hc((io(),_v))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e):new Ni}function jnn(n){var e,t,i;if(!n.b){for(i=new Evn,t=new yp(U5(n));t.e!=t.i.gc();)e=u(Tx(t),19),e.Bb&kc&&ve(i,e);ew(i),n.b=new pg((u(N(H((G1(),Hn).o),8),19),i.i),i.g),Zu(n).b&=-9}return n.b}function fw(n){var e,t,i;for(t=n.length,i=0;i<t&&(zn(i,n.length),n.charCodeAt(i)<=32);)++i;for(e=t;e>i&&(zn(e-1,n.length),n.charCodeAt(e-1)<=32);)--e;return i>0||e<t?(Ri(i,e,n.length),n.substr(i,e-i)):n}function eEe(n,e){var t,i,r,c,s,f,h,l;h=u(S5(Cp(e.k),F(lr,Tc,64,2,0,1)),126),l=e.g,t=DLn(e,h[0]),r=NLn(e,h[1]),i=Fx(n,l,t,r),c=DLn(e,h[1]),f=NLn(e,h[0]),s=Fx(n,l,c,f),i<=s?(e.a=t,e.c=r):(e.a=c,e.c=f)}function Yk(n){var e;Ln();var t,i,r,c,s,f;if(L(n,59))for(c=0,r=n.gc()-1;c<r;++c,--r)e=n.Xb(c),n.hd(c,n.Xb(r)),n.hd(r,e);else for(t=n.ed(),s=n.fd(n.gc());t.Tb()<s.Vb();)i=t.Pb(),f=s.Ub(),t.Wb(f),s.Wb(i)}function kS(n,e){var t,i,r,c,s,f;for(f=0,c=new Mg,W1(c,e);c.b!=c.c;)for(s=u(Pp(c),219),f+=VBn(s.d,s.e),r=new M(s.b);r.a<r.c.c.length;)i=u(E(r),36),t=u(sn(n.b,i.p),219),t.s||(f+=kS(n,t));return f}function C_n(n,e,t,i,r){var c,s,f,h,l;if(e)for(f=e.Kc();f.Ob();)for(s=u(f.Pb(),10),l=men(s,(gr(),Jc),t).Kc();l.Ob();)h=u(l.Pb(),12),c=u(Fr(wr(r.f,h)),118),c||(c=new yk(n.d),Fn(i.c,c),T_n(c,h,r))}function S_n(n,e,t){var i,r;zxn(this),e==(Tb(),Ma)?fi(this.r,n.c):fi(this.w,n.c),t==Ma?fi(this.r,n.d):fi(this.w,n.d),f_n(this,n),i=tx(n.c),r=tx(n.d),ZFn(this,i,r,r),this.o=(K5(),y.Math.abs(i-r)<.2)}function P_n(n,e,t){var i,r,c,s,f,h;if(f=u(Un(n.a,8),2035),f!=null)for(r=f,c=0,s=r.length;c<s;++c)null.Um();i=t,n.a.Db&1||(h=new tOn(n,t,e),i.dj(h)),L(i,686)?u(i,686).fj(n.a):i.cj()==n.a&&i.ej(null)}function tEe(){var n;return kse?u(Tm((B1(),Is),Pd),2044):(LLe(),n=u(L(Dc((B1(),Is),Pd),594)?Dc(Is,Pd):new dOn,594),kse=!0,mNe(n),ZNe(n),Ve(($z(),qdn),n,new I6n),Hx(n),Lr(Is,Pd,n),n)}function iEe(n,e,t,i){var r;return r=Ug(n,t,S(C(fn,1),J,2,6,[vK,kK,yK,jK,EK,MK,TK]),e),r<0&&(r=Ug(n,t,S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),e)),r<0?!1:(i.d=r,!0)}function rEe(n,e,t,i){var r;return r=Ug(n,t,S(C(fn,1),J,2,6,[vK,kK,yK,jK,EK,MK,TK]),e),r<0&&(r=Ug(n,t,S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),e)),r<0?!1:(i.d=r,!0)}function Vc(n,e,t){var i,r,c,s;if(s=n.b.Ce(e),r=(i=n.a.get(s),i??F(ki,Kn,1,0,5,1)),r.length==0)n.a.set(s,r);else if(c=KRn(n,e,r),c)return c.nd(t);return $t(r,r.length,new oM(e,t)),++n.c,++n.b.g,null}function cEe(n){var e,t,i;for(pTe(n),i=new Z,t=new M(n.a.a.b);t.a<t.c.c.length;)e=u(E(t),86),nn(i,new Vz(e,!0)),nn(i,new Vz(e,!1));z9e(n.c),Q7(i,n.b,new Fu(S(C(aj,1),Kn,382,0,[n.c]))),OMe(n)}function Zk(n,e){var t,i,r;for(r=new Z,i=new M(n.c.a.b);i.a<i.c.c.length;)t=u(E(i),60),e.Lb(t)&&(nn(r,new _z(t,!0)),nn(r,new _z(t,!1)));G9e(n.e),lLn(r,n.d,new Fu(S(C(RQn,1),Kn,693,0,[n.e])))}function uEe(n){var e,t,i,r;for(t=new de,r=new M(n.d);r.a<r.c.c.length;)i=u(E(r),187),e=u(i.of((W(),T3)),18),wr(t.f,e)||Ve(t,e,new qOn(e)),nn(u(Fr(wr(t.f,e)),466).b,i);return new _u(new ol(t))}function oEe(n,e){var t,i,r,c,s;for(i=new dLn(n.j.c.length),t=null,c=new M(n.j);c.a<c.c.c.length;)r=u(E(c),12),r.j!=t&&(i.b==i.c||qHn(i,t,e),TJ(i),t=r.j),s=THn(r),s&&vJ(i,s);i.b==i.c||qHn(i,t,e)}function sEe(n,e){var t,i,r;for(i=new xi(n.b,0);i.b<i.d.gc();)t=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),72)),r=u(v(t,(cn(),Sh)),278),r==($f(),Jw)&&(bo(i),nn(e.b,t),kt(t,(W(),T3))||U(t,T3,n))}function fEe(n){var e,t,i,r,c;for(e=wl(new ie(ce(Qt(n).a.Kc(),new En))),r=new ie(ce(ji(n).a.Kc(),new En));pe(r);)i=u(fe(r),18),t=i.c.i,c=wl(new ie(ce(Qt(t).a.Kc(),new En))),e=y.Math.max(e,c);return Y(e)}function Enn(n,e,t){var i,r,c;i=u(z(n,(He(),Gj)),21),r=0,c=0,e.a>t.a&&(i.Hc((wd(),w9))?r=(e.a-t.a)/2:i.Hc(g9)&&(r=e.a-t.a)),e.b>t.b&&(i.Hc((wd(),m9))?c=(e.b-t.b)/2:i.Hc(p9)&&(c=e.b-t.b)),rnn(n,r,c)}function I_n(n,e,t,i,r,c,s,f,h,l,a,d,g){L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,t),n.f=s,hm(n,f),am(n,h),fm(n,l),lm(n,a),u1(n,d),dm(n,g),c1(n,!0),e1(n,r),n.Zk(c),ad(n,e),i!=null&&(n.i=null,kC(n,i))}function Mnn(n,e,t){if(n<0)return B5(Czn,S(C(ki,1),Kn,1,5,[t,Y(n)]));if(e<0)throw T(new Gn(Szn+e));return B5("%s (%s) must not be greater than size (%s)",S(C(ki,1),Kn,1,5,[t,Y(n),Y(e)]))}function Tnn(n,e,t,i,r,c){var s,f,h,l;if(s=i-t,s<7){z5e(e,t,i,c);return}if(h=t+r,f=i+r,l=h+(f-h>>1),Tnn(e,n,h,l,-r,c),Tnn(e,n,l,f,-r,c),c.Ne(n[l-1],n[l])<=0){for(;t<i;)$t(e,t++,n[h++]);return}n5e(n,h,l,f,e,t,i,c)}function hEe(n,e){var t,i,r,c,s,f,h;for(h=e.d,r=e.b.j,f=new M(h);f.a<f.c.c.length;)for(s=u(E(f),105),c=F(so,Xh,28,r.c.length,16,1),Ve(n.b,s,c),t=s.a.d.p-1,i=s.c.d.p;t!=i;)t=(t+1)%r.c.length,c[t]=!0}function lEe(n,e){if(kQ(),kt(n,(W(),dt))&&kt(e,dt))return jc(u(v(n,dt),17).a,u(v(e,dt),17).a);throw T(new hp("The BF model order layer assigner requires all real nodes to have a model order."))}function aEe(n,e){if(yQ(),kt(n,(W(),dt))&&kt(e,dt))return jc(u(v(n,dt),17).a,u(v(e,dt),17).a);throw T(new hp("The DF model order layer assigner requires all real nodes to have a model order."))}function dEe(n,e){for(n.r=new yk(n.p),cfe(n.r,n),Ki(n.r.j,n.j),vo(n.j),Re(n.j,e),Re(n.r.e,e),mT(n),mT(n.r);n.f.c.length!=0;)MCn(u(sn(n.f,0),132));for(;n.k.c.length!=0;)MCn(u(sn(n.k,0),132));return n.r}function sR(n,e,t){var i,r,c;if(r=$n(n.Dh(),e),i=e-n.ji(),i<0)if(r)if(r.rk())c=n.Ih(r),c>=0?n.bi(c,t):een(n,r,t);else throw T(new Gn(ba+r.xe()+b8));else throw T(new Gn(aWn+e+dWn));else Jo(n,i,r,t)}function O_n(n){var e,t;if(n.f){for(;n.n>0;){if(e=u(n.k.Xb(n.n-1),76),t=e.Lk(),L(t,102)&&u(t,19).Bb&kc&&(!n.e||t.pk()!=Hv||t.Lj()!=0)&&e.md()!=null)return!0;--n.n}return!1}else return n.n>0}function A_n(n){var e,t,i,r;if(t=u(n,54)._h(),t)try{if(i=null,e=Tm((B1(),Is),gUn(r8e(t))),e&&(r=e.ai(),r&&(i=r.Fl(che(t.e)))),i&&i!=n)return A_n(i)}catch(c){if(c=Ot(c),!L(c,63))throw T(c)}return n}function bEe(n,e,t){var i,r,c;t.Ug("Remove overlaps",1),t.dh(e,$rn),i=u(z(e,(Cg(),L2)),27),n.f=i,n.a=Sx(u(z(e,(oa(),Rj)),300)),r=B(z(e,(He(),qd))),pG(n,(Jn(r),r)),c=aw(i),KGn(n,e,c,t),t.dh(e,LP)}function wEe(n){var e,t,i;if(on(un(z(n,(He(),Xj))))){for(i=new Z,t=new ie(ce(Sl(n).a.Kc(),new En));pe(t);)e=u(fe(t),74),_b(e)&&on(un(z(e,nU)))&&Fn(i.c,e);return i}else return Ln(),Ln(),sr}function L_n(n){if(!n)return Ljn(),dQn;var e=n.valueOf?n.valueOf():n;if(e!==n){var t=VF[typeof e];return t?t(e):bY(typeof e)}else return n instanceof Array||n instanceof y.Array?new lG(n):new U9(n)}function N_n(n,e,t){var i,r,c;switch(c=n.o,i=u(Mr(n.p,t),252),r=i.i,r.b=ty(i),r.a=ey(i),r.b=y.Math.max(r.b,c.a),r.b>c.a&&!e&&(r.b=c.a),r.c=-(r.b-c.a)/2,t.g){case 1:r.d=-r.a;break;case 3:r.d=c.b}NR(i),DR(i)}function D_n(n,e,t){var i,r,c;switch(c=n.o,i=u(Mr(n.p,t),252),r=i.i,r.b=ty(i),r.a=ey(i),r.a=y.Math.max(r.a,c.b),r.a>c.b&&!e&&(r.a=c.b),r.d=-(r.a-c.b)/2,t.g){case 4:r.c=-r.b;break;case 2:r.c=c.a}NR(i),DR(i)}function gEe(n,e){var t,i,r,c,s;if(!e.dc()){if(r=u(e.Xb(0),131),e.gc()==1){lqn(n,r,r,1,0,e);return}for(t=1;t<e.gc();)(r.j||!r.o)&&(c=j7e(e,t),c&&(i=u(c.a,17).a,s=u(c.b,131),lqn(n,r,s,t,i,e),t=i+1,r=s))}}function pEe(n){var e,t,i,r,c,s;for(s=new _u(n.d),Yt(s,new kpn),e=(LS(),S(C(Tsn,1),G,276,0,[F_,q_,B_,z_,H_,__,G_,U_])),t=0,c=new M(s);c.a<c.c.c.length;)r=u(E(c),105),i=e[t%e.length],gMe(r,i),++t}function mEe(n,e){Vg();var t,i,r,c;if(e.b<2)return!1;for(c=ge(e,0),t=u(be(c),8),i=t;c.b!=c.d.c;){if(r=u(be(c),8),!(W4(n,i)&&W4(n,r)))return!1;i=r}return!!(W4(n,i)&&W4(n,t))}function Cnn(n,e){var t,i,r,c,s,f,h,l,a,d;return a=null,d=n,s=yl(d,"x"),t=new Jkn(e),J4e(t.a,s),f=yl(d,"y"),i=new Qkn(e),Q4e(i.a,f),h=yl(d,dF),r=new Ykn(e),Y4e(r.a,h),l=yl(d,aF),c=new Zkn(e),a=(Z4e(c.a,l),l),a}function hw(n,e){Uqn(n,e),n.b&1&&(n.a.a=null),n.b&2&&(n.a.f=null),n.b&4&&(n.a.g=null,n.a.i=null),n.b&16&&(n.a.d=null,n.a.e=null),n.b&8&&(n.a.b=null),n.b&32&&(n.a.j=null,n.a.c=null)}function vEe(n,e){var t,i,r;if(r=0,e.length>0)try{r=So(e,Wi,et)}catch(c){throw c=Ot(c),L(c,130)?(i=c,T(new eC(i))):T(c)}return t=(!n.a&&(n.a=new iL(n)),n.a),r<t.i&&r>=0?u(N(t,r),58):null}function kEe(n,e){if(n<0)return B5(Czn,S(C(ki,1),Kn,1,5,["index",Y(n)]));if(e<0)throw T(new Gn(Szn+e));return B5("%s (%s) must be less than size (%s)",S(C(ki,1),Kn,1,5,["index",Y(n),Y(e)]))}function yEe(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),C6(c.a,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function jEe(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),C6(c.a,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function EEe(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),C6(c.a,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function MEe(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),C6(c.a,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function $_n(n,e){var t,i,r,c,s,f;for(t=n.b.c.length,r=sn(n.b,e);e*2+1<t&&(i=(c=2*e+1,s=c+1,f=c,s<t&&n.a.Ne(sn(n.b,s),sn(n.b,c))<0&&(f=s),f),!(n.a.Ne(r,sn(n.b,i))<0));)Go(n.b,e,sn(n.b,i)),e=i;Go(n.b,e,r)}function fR(n,e,t){var i,r;return i=t.d,r=t.e,n.g[i.d]<=n.i[e.d]&&n.i[e.d]<=n.i[i.d]&&n.g[r.d]<=n.i[e.d]&&n.i[e.d]<=n.i[r.d]?!(n.i[i.d]<n.i[r.d]):n.i[i.d]<n.i[r.d]}function TEe(n,e){var t;if(t=u(v(e,(cn(),U8)),322),t!=n)throw T(new hp("The hierarchy aware processor "+t+" in child node "+e+" is only allowed if the root node specifies the same hierarchical processor."))}function CEe(n,e){var t,i,r,c,s;for(i=(!e.s&&(e.s=new q(ku,e,21,17)),e.s),c=null,r=0,s=i.i;r<s;++r)switch(t=u(N(i,r),179),yb(Nr(n,t))){case 2:case 3:!c&&(c=new Z),Fn(c.c,t)}return c||(Ln(),Ln(),sr)}function x_n(n,e,t){var i,r,c,s,f,h;for(h=Pt,c=new M(nqn(n.b));c.a<c.c.c.length;)for(r=u(E(c),177),f=new M(nqn(e.b));f.a<f.c.c.length;)s=u(E(f),177),i=Wve(r.a,r.b,s.a,s.b,t),h=y.Math.min(h,i);return h}function gi(n,e){if(!e)throw T(new rp);if(n.j=e,!n.d)switch(n.j.g){case 1:n.a.a=n.o.a/2,n.a.b=0;break;case 2:n.a.a=n.o.a,n.a.b=n.o.b/2;break;case 3:n.a.a=n.o.a/2,n.a.b=n.o.b;break;case 4:n.a.a=0,n.a.b=n.o.b/2}}function SEe(n,e){var t,i,r;return L(e.g,10)&&u(e.g,10).k==(Vn(),Zt)?Pt:(r=xp(e),r?y.Math.max(0,n.b/2-.5):(t=Ig(e),t?(i=$(B(rw(t,(cn(),g0)))),y.Math.max(0,i/2-.5)):Pt))}function PEe(n,e){var t,i,r;return L(e.g,10)&&u(e.g,10).k==(Vn(),Zt)?Pt:(r=xp(e),r?y.Math.max(0,n.b/2-.5):(t=Ig(e),t?(i=$(B(rw(t,(cn(),g0)))),y.Math.max(0,i/2-.5)):Pt))}function IEe(n,e){Rs();var t,i,r,c,s,f;for(t=null,s=e.Kc();s.Ob();)c=u(s.Pb(),131),!c.o&&(i=f1e(c.a),r=w0e(c.a),f=new q5(i,r,null,u(c.d.a.ec().Kc().Pb(),18)),nn(f.c,c.a),Fn(n.c,f),t&&nn(t.d,f),t=f)}function OEe(n){var e,t,i,r,c,s;for(s=g5(n.d,n.e),c=s.Kc();c.Ob();)for(r=u(c.Pb(),12),i=n.e==(en(),Wn)?r.e:r.g,t=new M(i);t.a<t.c.c.length;)e=u(E(t),18),!fr(e)&&e.c.i.c!=e.d.i.c&&(Oje(n,e),++n.f,++n.c)}function R_n(n,e){var t,i;if(e.dc())return Ln(),Ln(),sr;for(i=new Z,nn(i,Y(Wi)),t=1;t<n.f;++t)n.a==null&&qqn(n),n.a[t]&&nn(i,Y(t));return i.c.length==1?(Ln(),Ln(),sr):(nn(i,Y(et)),FIe(e,i))}function AEe(n,e){var t,i,r,c,s,f,h;s=e.c.i.k!=(Vn(),zt),h=s?e.d:e.c,t=F7e(e,h).i,r=u(ee(n.k,h),125),i=n.i[t.p].a,tPn(h.i)<(t.c?qr(t.c.a,t,0):-1)?(c=r,f=i):(c=i,f=r),qs(Ns(Ls(Ds(As(new hs,0),4),c),f))}function LEe(n,e,t){var i,r,c,s,f,h;if(t)for(r=t.a.length,i=new Qa(r),f=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),h=Rx(n,Zp(J0(t,s.a))),h&&(c=(!e.b&&(e.b=new Dn(he,e,4,7)),e.b),ve(c,h))}function NEe(n,e,t){var i,r,c,s,f,h;if(t)for(r=t.a.length,i=new Qa(r),f=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),h=Rx(n,Zp(J0(t,s.a))),h&&(c=(!e.c&&(e.c=new Dn(he,e,5,8)),e.c),ve(c,h))}function ny(n,e,t){var i,r;i=e.a&n.f,e.b=n.b[i],n.b[i]=e,r=e.f&n.f,e.d=n.c[r],n.c[r]=e,t?(e.e=t.e,e.e?e.e.c=e:n.a=e,e.c=t.c,e.c?e.c.e=e:n.e=e):(e.e=n.e,e.c=null,n.e?n.e.c=e:n.a=e,n.e=e),++n.i,++n.g}function K_n(n){var e,t,i;if(e=n.Pb(),!n.Ob())return e;for(i=Lc(Be(new x1,"expected one element but was: <"),e),t=0;t<4&&n.Ob();t++)Lc((i.a+=ur,i),n.Pb());throw n.Ob()&&(i.a+=", ..."),i.a+=">",T(new Gn(i.a))}function DEe(n){var e,t;return t=-n.a,e=S(C(fs,1),gh,28,15,[43,48,48,48,48]),t<0&&(e[0]=45,t=-t),e[1]=e[1]+((t/60|0)/10|0)&ui,e[2]=e[2]+(t/60|0)%10&ui,e[3]=e[3]+(t%60/10|0)&ui,e[4]=e[4]+t%10&ui,ws(e,0,e.length)}function Snn(n){var e,t,i,r;for(n.g=new y5(u(Pe(lr),297)),i=0,t=(en(),Xn),e=0;e<n.j.c.length;e++)r=u(sn(n.j,e),12),r.j!=t&&(i!=e&&Ip(n.g,t,new bi(Y(i),Y(e))),t=r.j,i=e);Ip(n.g,t,new bi(Y(i),Y(e)))}function $Ee(n){var e,t,i,r,c,s,f;for(i=0,t=new M(n.b);t.a<t.c.c.length;)for(e=u(E(t),30),c=new M(e.a);c.a<c.c.c.length;)for(r=u(E(c),10),r.p=i++,f=new M(r.j);f.a<f.c.c.length;)s=u(E(f),12),s.p=i++}function Pnn(n,e){var t,i,r;if(r=Qg((Lu(),zi),n.Dh(),e),r)dr(),u(r,69).xk()||(r=$p(Nr(zi,r))),i=(t=n.Ih(r),u(t>=0?n.Lh(t,!0,!0):Hb(n,r,!0),160)),u(i,220).Zl(e);else throw T(new Gn(ba+e.xe()+b8))}function Inn(n){var e,t;return n>-0x800000000000&&n<0x800000000000?n==0?0:(e=n<0,e&&(n=-n),t=wi(y.Math.floor(y.Math.log(n)/.6931471805599453)),(!e||n!=y.Math.pow(2,t))&&++t,t):Qxn(vc(n))}function xEe(n){var e,t,i,r,c,s,f;for(c=new rh,t=new M(n);t.a<t.c.c.length;)e=u(E(t),132),s=e.a,f=e.b,!(c.a._b(s)||c.a._b(f))&&(r=s,i=f,s.e.b+s.j.b>2&&f.e.b+f.j.b<=2&&(r=f,i=s),c.a.zc(r,c),r.q=i);return c}function REe(n,e,t){t.Ug("Eades radial",1),t.dh(e,LP),n.d=u(z(e,(Cg(),L2)),27),n.c=$(B(z(e,(oa(),HO)))),n.e=Sx(u(z(e,Rj),300)),n.a=a8e(u(z(e,e1n),434)),n.b=Lke(u(z(e,Qln),354)),bke(n),t.dh(e,LP)}function KEe(n,e){if(e.Ug("Target Width Setter",1),Nf(n,(Bf(),Nq)))ht(n,(_h(),Xw),B(z(n,Nq)));else throw T(new _l("A target width has to be set if the TargetWidthWidthApproximator should be used."));e.Vg()}function B_n(n,e){var t,i,r;return i=new Cl(n),Ur(i,e),U(i,(W(),cO),e),U(i,(cn(),Ft),(Ai(),qc)),U(i,Ch,(Bh(),nA)),Ha(i,(Vn(),Zt)),t=new Ic,ic(t,i),gi(t,(en(),Wn)),r=new Ic,ic(r,i),gi(r,Zn),i}function F_n(n){switch(n.g){case 0:return new gL((Ab(),Aj));case 1:return new i8n;case 2:return new r8n;default:throw T(new Gn("No implementation is available for the crossing minimizer "+(n.f!=null?n.f:""+n.g)))}}function __n(n,e){var t,i,r,c,s;for(n.c[e.p]=!0,nn(n.a,e),s=new M(e.j);s.a<s.c.c.length;)for(c=u(E(s),12),i=new Lf(c.b);tc(i.a)||tc(i.b);)t=u(tc(i.a)?E(i.a):E(i.b),18),r=K8e(c,t).i,n.c[r.p]||__n(n,r)}function H_n(n){var e,t,i,r,c,s,f;for(s=0,t=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));t.e!=t.i.gc();)e=u(ue(t),27),f=e.g,r=e.f,i=y.Math.sqrt(f*f+r*r),s=y.Math.max(i,s),c=H_n(e),s=y.Math.max(c,s);return s}function zu(){zu=R,Oa=new E6("OUTSIDE",0),Rl=new E6("INSIDE",1),tE=new E6("NEXT_TO_PORT_IF_POSSIBLE",2),S9=new E6("ALWAYS_SAME_SIDE",3),C9=new E6("ALWAYS_OTHER_SAME_SIDE",4),K3=new E6("SPACE_EFFICIENT",5)}function q_n(n,e,t){var i,r,c,s,f,h;return i=_pe(n,(r=(K1(),c=new Yv,c),t&&PS(r,t),r),e),X4(i,bl(e,Eh)),gS(e,i),YMe(e,i),Cnn(e,i),s=e,f=Sb(s,"ports"),h=new CTn(n,i),xTe(h.a,h.b,f),_$(n,e,i),Uve(n,e,i),i}function BEe(n){var e,t;return t=-n.a,e=S(C(fs,1),gh,28,15,[43,48,48,58,48,48]),t<0&&(e[0]=45,t=-t),e[1]=e[1]+((t/60|0)/10|0)&ui,e[2]=e[2]+(t/60|0)%10&ui,e[4]=e[4]+(t%60/10|0)&ui,e[5]=e[5]+t%10&ui,ws(e,0,e.length)}function FEe(n){var e;return e=S(C(fs,1),gh,28,15,[71,77,84,45,48,48,58,48,48]),n<=0&&(e[3]=43,n=-n),e[4]=e[4]+((n/60|0)/10|0)&ui,e[5]=e[5]+(n/60|0)%10&ui,e[7]=e[7]+(n%60/10|0)&ui,e[8]=e[8]+n%10&ui,ws(e,0,e.length)}function _Ee(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),C6(c.a,""+_6(e));return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function Onn(n,e){var t,i,r;for(r=et,i=new M(xg(e));i.a<i.c.c.length;)t=u(E(i),218),t.f&&!n.c[t.c]&&(n.c[t.c]=!0,r=y.Math.min(r,Onn(n,HC(t,e))));return n.i[e.d]=n.j,n.g[e.d]=y.Math.min(r,n.j++),n.g[e.d]}function U_n(n,e){var t,i,r;for(r=u(u(ot(n.r,e),21),87).Kc();r.Ob();)i=u(r.Pb(),117),i.e.b=(t=i.b,t.pf((He(),oo))?t.ag()==(en(),Xn)?-t.Mf().b-$(B(t.of(oo))):$(B(t.of(oo))):t.ag()==(en(),Xn)?-t.Mf().b:0)}function HEe(n){var e,t,i,r,c,s,f;for(t=PX(n.e),c=ch(N6(Fi(SX(n.e)),n.d*n.a,n.c*n.b),-.5),e=t.a-c.a,r=t.b-c.b,f=0;f<n.c;f++){for(i=e,s=0;s<n.d;s++)t8e(n.e,new Ho(i,r,n.a,n.b))&&xS(n,s,f,!1,!0),i+=n.a;r+=n.b}}function Ann(n){var e,t,i,r,c;e=n.a,t=n.b,r=n.c,i=new V(t.e.a+t.f.a/2,t.e.b+t.f.b/2),c=new V(r.e.a+r.f.a/2,r.e.b+r.f.b/2),xt(e,i,e.a,e.a.a),xt(e,c,e.c.b,e.c),n_n(i,u(Zo(e,1),8),n.b.f),n_n(c,u(Zo(e,e.b-2),8),n.c.f)}function Zp(n){var e,t;if(t=!1,L(n,211))return t=!0,u(n,211).a;if(!t&&L(n,263)&&(e=u(n,263).a%1==0,e))return t=!0,Y(Tle(u(n,263).a));throw T(new eh("Id must be a string or an integer: '"+n+"'."))}function qEe(n,e){var t,i,r,c,s,f;for(c=null,r=new LIn((!n.a&&(n.a=new iL(n)),n.a));xnn(r);)if(t=u(MS(r),58),i=(s=t.Dh(),f=(Jg(s),s.o),!f||!t.Xh(f)?null:MV(x$(f),t.Mh(f))),i!=null&&Sn(i,e)){c=t;break}return c}function G_n(n,e,t){var i,r,c,s,f;if(Mo(t,"occurrences"),t==0)return f=u(tw(Lp(n.a),e),16),f?f.gc():0;if(s=u(tw(Lp(n.a),e),16),!s)return 0;if(c=s.gc(),t>=c)s.$b();else for(r=s.Kc(),i=0;i<t;i++)r.Pb(),r.Qb();return c}function UEe(n,e,t){var i,r,c,s;return Mo(t,"oldCount"),Mo(0,"newCount"),i=u(tw(Lp(n.a),e),16),(i?i.gc():0)==t?(Mo(0,"count"),r=(c=u(tw(Lp(n.a),e),16),c?c.gc():0),s=-r,s>0?bz():s<0&&G_n(n,e,-s),!0):!1}function ey(n){var e,t,i,r,c,s,f;if(f=0,n.b==0){for(s=SBn(n,!0),e=0,i=s,r=0,c=i.length;r<c;++r)t=i[r],t>0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}else f=Ujn(O$(U0(ut(EW(n.a),new f0n),new h0n)));return f>0?f+n.n.d+n.n.a:0}function ty(n){var e,t,i,r,c,s,f;if(f=0,n.b==0)f=Ujn(O$(U0(ut(EW(n.a),new o0n),new s0n)));else{for(s=PBn(n,!0),e=0,i=s,r=0,c=i.length;r<c;++r)t=i[r],t>0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}return f>0?f+n.n.b+n.n.c:0}function GEe(n){var e,t;if(n.c.length!=2)throw T(new Ar("Order only allowed for two paths."));e=(Nn(0,n.c.length),u(n.c[0],18)),t=(Nn(1,n.c.length),u(n.c[1],18)),e.d.i!=t.c.i&&(n.c.length=0,Fn(n.c,t),Fn(n.c,e))}function z_n(n,e,t){var i;for(kg(t,e.g,e.f),Bo(t,e.i,e.j),i=0;i<(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i;i++)z_n(n,u(N((!e.a&&(e.a=new q(Ye,e,10,11)),e.a),i),27),u(N((!t.a&&(t.a=new q(Ye,t,10,11)),t.a),i),27))}function zEe(n,e){var t,i,r,c;for(c=u(Mr(n.b,e),127),t=c.a,r=u(u(ot(n.r,e),21),87).Kc();r.Ob();)i=u(r.Pb(),117),i.c&&(t.a=y.Math.max(t.a,nW(i.c)));if(t.a>0)switch(e.g){case 2:c.n.c=n.s;break;case 4:c.n.b=n.s}}function XEe(n,e){var t,i,r;return t=u(v(e,(Us(),k3)),17).a-u(v(n,k3),17).a,t==0?(i=mi(Fi(u(v(n,(Q1(),lj)),8)),u(v(n,L8),8)),r=mi(Fi(u(v(e,lj),8)),u(v(e,L8),8)),bt(i.a*i.b,r.a*r.b)):t}function VEe(n,e){var t,i,r;return t=u(v(e,(lc(),RO)),17).a-u(v(n,RO),17).a,t==0?(i=mi(Fi(u(v(n,(pt(),Dj)),8)),u(v(n,Lv),8)),r=mi(Fi(u(v(e,Dj),8)),u(v(e,Lv),8)),bt(i.a*i.b,r.a*r.b)):t}function X_n(n){var e,t;return t=new x1,t.a+="e_",e=_ve(n),e!=null&&(t.a+=""+e),n.c&&n.d&&(Be((t.a+=" ",t),lS(n.c)),Be(Lc((t.a+="[",t),n.c.i),"]"),Be((t.a+=iB,t),lS(n.d)),Be(Lc((t.a+="[",t),n.d.i),"]")),t.a}function V_n(n){switch(n.g){case 0:return new d8n;case 1:return new b8n;case 2:return new l8n;case 3:return new h8n;default:throw T(new Gn("No implementation is available for the layout phase "+(n.f!=null?n.f:""+n.g)))}}function Lnn(n,e,t,i,r){var c;switch(c=0,r.g){case 1:c=y.Math.max(0,e.b+n.b-(t.b+i));break;case 3:c=y.Math.max(0,-n.b-i);break;case 2:c=y.Math.max(0,-n.a-i);break;case 4:c=y.Math.max(0,e.a+n.a-(t.a+i))}return c}function WEe(n,e,t){var i,r,c,s,f;if(t)for(r=t.a.length,i=new Qa(r),f=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),c=N4(t,s.a),Ccn in c.a||pF in c.a?fPe(n,c,e):PNe(n,c,e),S1e(u(ee(n.b,wm(c)),74))}function Nnn(n){var e,t;switch(n.b){case-1:return!0;case 0:return t=n.t,t>1||t==-1?(n.b=-1,!0):(e=gs(n),e&&(dr(),e.lk()==bJn)?(n.b=-1,!0):(n.b=1,!1));default:case 1:return!1}}function Dnn(n,e){var t,i,r,c;if(Ze(n),n.c!=0||n.a!=123)throw T(new Ne($e((Oe(),xWn))));if(c=e==112,i=n.d,t=w4(n.i,125,i),t<0)throw T(new Ne($e((Oe(),RWn))));return r=qo(n.i,i,t),n.d=t+1,mDn(r,c,(n.e&512)==512)}function W_n(n){var e,t,i,r,c,s,f;if(i=n.a.c.length,i>0)for(s=n.c.d,f=n.d.d,r=ch(mi(new V(f.a,f.b),s),1/(i+1)),c=new V(s.a,s.b),t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),250),e.d.a=c.a+r.a,e.d.b=c.b+r.b,tt(c,r)}function JEe(n,e){var t,i,r;if(!e)j$(n,null),G4(n,null);else if(e.i&4)for(i="[]",t=e.c;;t=t.c){if(!(t.i&4)){r=az((ll(t),t.o+i)),j$(n,r),G4(n,r);break}i+="[]"}else r=az((ll(e),e.o)),j$(n,r),G4(n,r);n.hl(e)}function N5(n,e,t,i,r){var c,s,f,h;return h=ON(n,u(r,58)),x(h)!==x(r)?(f=u(n.g[t],76),c=Rh(e,h),O6(n,t,Jx(n,t,c)),fo(n.e)&&(s=V1(n,9,c.Lk(),r,h,i,!1),GZ(s,new ml(n.e,9,n.c,f,c,i,!1)),h$(s)),h):r}function QEe(n,e,t){var i,r,c,s,f,h;for(i=u(ot(n.c,e),15),r=u(ot(n.c,t),15),c=i.fd(i.gc()),s=r.fd(r.gc());c.Sb()&&s.Sb();)if(f=u(c.Ub(),17),h=u(s.Ub(),17),f!=h)return jc(f.a,h.a);return!c.Ob()&&!s.Ob()?0:c.Ob()?1:-1}function YEe(n){var e,t,i,r,c,s,f;for(f=Lh(n.c.length),r=new M(n);r.a<r.c.c.length;){for(i=u(E(r),10),s=new ni,c=Qt(i),t=new ie(ce(c.a.Kc(),new En));pe(t);)e=u(fe(t),18),e.c.i==e.d.i||fi(s,e.d.i);Fn(f.c,s)}return f}function J_n(n,e){var t,i,r;try{return r=hpe(n.a,e),r}catch(c){if(c=Ot(c),L(c,33)){try{if(i=So(e,Wi,et),t=of(n.a),i>=0&&i<t.length)return t[i]}catch(s){if(s=Ot(s),!L(s,130))throw T(s)}return null}else throw T(c)}}function hR(n,e){var t,i,r;if(r=Qg((Lu(),zi),n.Dh(),e),r)return dr(),u(r,69).xk()||(r=$p(Nr(zi,r))),i=(t=n.Ih(r),u(t>=0?n.Lh(t,!0,!0):Hb(n,r,!0),160)),u(i,220).Wl(e);throw T(new Gn(ba+e.xe()+sF))}function ZEe(){xz();var n;return Yoe?u(Tm((B1(),Is),ks),2038):(Ge(Id,new k6n),VAe(),n=u(L(Dc((B1(),Is),ks),560)?Dc(Is,ks):new aOn,560),Yoe=!0,WNe(n),tDe(n),Ve(($z(),qdn),n,new xvn),Lr(Is,ks,n),n)}function nMe(n,e){var t,i,r,c;n.j=-1,fo(n.e)?(t=n.i,c=n.i!=0,ek(n,e),i=new ml(n.e,3,n.c,null,e,t,c),r=e.zl(n.e,n.c,null),r=IFn(n,e,r),r?(r.nj(i),r.oj()):it(n.e,i)):(ek(n,e),r=e.zl(n.e,n.c,null),r&&r.oj())}function yS(n,e){var t,i,r;if(r=0,i=e[0],i>=n.length)return-1;for(t=(zn(i,n.length),n.charCodeAt(i));t>=48&&t<=57&&(r=r*10+(t-48),++i,!(i>=n.length));)t=(zn(i,n.length),n.charCodeAt(i));return i>e[0]?e[0]=i:r=-1,r}function eMe(n){var e,t,i,r,c;return r=u(n.a,17).a,c=u(n.b,17).a,t=r,i=c,e=y.Math.max(y.Math.abs(r),y.Math.abs(c)),r<=0&&r==c?(t=0,i=c-1):r==-e&&c!=e?(t=c,i=r,c>=0&&++t):(t=-c,i=r),new bi(Y(t),Y(i))}function tMe(n,e,t,i){var r,c,s,f,h,l;for(r=0;r<e.o;r++)for(c=r-e.j+t,s=0;s<e.p;s++)if(f=s-e.k+i,h=c,l=f,h+=n.j,l+=n.k,h>=0&&l>=0&&h<n.o&&l<n.p&&(!DBn(e,r,s)&&ABn(n,c,f)||Fg(e,r,s)&&!V9e(n,c,f)))return!0;return!1}function iMe(n,e,t){var i,r,c,s,f;s=n.c,f=n.d,c=cc(S(C(Ei,1),J,8,0,[s.i.n,s.n,s.a])).b,r=(c+cc(S(C(Ei,1),J,8,0,[f.i.n,f.n,f.a])).b)/2,i=null,s.j==(en(),Zn)?i=new V(e+s.i.c.c.a+t,r):i=new V(e-t,r),g4(n.a,0,i)}function _b(n){var e,t,i,r;for(e=null,i=$h(Eo(S(C(Ao,1),Kn,20,0,[(!n.b&&(n.b=new Dn(he,n,4,7)),n.b),(!n.c&&(n.c=new Dn(he,n,5,8)),n.c)])));pe(i);)if(t=u(fe(i),84),r=Gr(t),!e)e=r;else if(e!=r)return!1;return!0}function lR(n,e,t){var i;if(++n.j,e>=n.i)throw T(new Or(vF+e+Cd+n.i));if(t>=n.i)throw T(new Or(kF+t+Cd+n.i));return i=n.g[t],e!=t&&(e<t?Oc(n.g,e,n.g,e+1,t-e):Oc(n.g,t+1,n.g,t,e-t),$t(n.g,e,i),n.Pi(e,i,t),n.Ni()),i}function In(n,e,t){var i;if(i=u(n.c.xc(e),16),i)return i.Fc(t)?(++n.d,!0):!1;if(i=n.ic(e),i.Fc(t))return++n.d,n.c.zc(e,i),!0;throw T(new DJ("New Collection violated the Collection spec"))}function iy(n){var e,t,i;return n<0?0:n==0?32:(i=-(n>>16),e=i>>16&16,t=16-e,n=n>>e,i=n-256,e=i>>16&8,t+=e,n<<=e,i=n-vw,e=i>>16&4,t+=e,n<<=e,i=n-wh,e=i>>16&2,t+=e,n<<=e,i=n>>14,e=i&~(i>>1),t+2-e)}function rMe(n){Np();var e,t,i,r;for(mI=new Z,p_=new de,g_=new Z,e=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),VLe(e),r=new ne(e);r.e!=r.i.gc();)i=u(ue(r),27),qr(mI,i,0)==-1&&(t=new Z,nn(g_,t),ZKn(i,t));return g_}function cMe(n,e,t){var i,r,c,s;n.a=t.b.d,L(e,326)?(r=Xg(u(e,74),!1,!1),c=Qk(r),i=new R9n(n),qi(c,i),dy(c,r),e.of((He(),k0))!=null&&qi(u(e.of(k0),75),i)):(s=u(e,422),s.rh(s.nh()+n.a.a),s.sh(s.oh()+n.a.b))}function uMe(n,e){var t,i,r;for(r=new Z,i=ge(e.a,0);i.b!=i.d.c;)t=u(be(i),65),t.c.g==n.g&&x(v(t.b,(lc(),Ph)))!==x(v(t.c,Ph))&&!Ag(new Cn(null,new On(r,16)),new hkn(t))&&Fn(r.c,t);return Yt(r,new U3n),r}function Q_n(n,e,t){var i,r,c,s;return L(e,153)&&L(t,153)?(c=u(e,153),s=u(t,153),n.a[c.a][s.a]+n.a[s.a][c.a]):L(e,250)&&L(t,250)&&(i=u(e,250),r=u(t,250),i.a==r.a)?u(v(r.a,(Us(),k3)),17).a:0}function Y_n(n,e){var t,i,r,c,s,f,h,l;for(l=$(B(v(e,(cn(),X8)))),h=n[0].n.a+n[0].o.a+n[0].d.c+l,f=1;f<n.length;f++)i=n[f].n,r=n[f].o,t=n[f].d,c=i.a-t.b-h,c<0&&(i.a-=c),s=e.f,s.a=y.Math.max(s.a,i.a+r.a),h=i.a+r.a+t.c+l}function oMe(n,e){var t,i,r,c,s,f;return i=u(u(ee(n.g,e.a),42).a,68),r=u(u(ee(n.g,e.b),42).a,68),c=i.b,s=r.b,t=NOe(c,s),t>=0?t:(f=z6(mi(new V(s.c+s.b/2,s.d+s.a/2),new V(c.c+c.b/2,c.d+c.a/2))),-(MUn(c,s)-1)*f)}function sMe(n,e,t){var i;qt(new Cn(null,(!t.a&&(t.a=new q(Tt,t,6,6)),new On(t.a,16))),new dTn(n,e)),qt(new Cn(null,(!t.n&&(t.n=new q(Sr,t,1,7)),new On(t.n,16))),new bTn(n,e)),i=u(z(t,(He(),k0)),75),i&&RQ(i,n,e)}function Hb(n,e,t){var i,r,c;if(c=Qg((Lu(),zi),n.Dh(),e),c)return dr(),u(c,69).xk()||(c=$p(Nr(zi,c))),r=(i=n.Ih(c),u(i>=0?n.Lh(i,!0,!0):Hb(n,c,!0),160)),u(r,220).Sl(e,t);throw T(new Gn(ba+e.xe()+sF))}function $nn(n,e,t,i){var r,c,s,f,h;if(r=n.d[e],r){if(c=r.g,h=r.i,i!=null){for(f=0;f<h;++f)if(s=u(c[f],136),s.Bi()==t&&rt(i,s.ld()))return s}else for(f=0;f<h;++f)if(s=u(c[f],136),x(s.ld())===x(i))return s}return null}function fMe(n,e){var t,i,r,c,s;for(i=(!e.s&&(e.s=new q(ku,e,21,17)),e.s),c=null,r=0,s=i.i;r<s;++r)switch(t=u(N(i,r),179),yb(Nr(n,t))){case 4:case 5:case 6:{!c&&(c=new Z),Fn(c.c,t);break}}return c||(Ln(),Ln(),sr)}function ry(n,e){var t;if(e<0)throw T(new _E("Negative exponent"));if(e==0)return sI;if(e==1||FY(n,sI)||FY(n,P8))return n;if(!MHn(n,0)){for(t=1;!MHn(n,t);)++t;return Og(m8e(t*e),ry(NJ(n,t),e))}return Mye(n,e)}function hMe(n,e){var t,i,r;if(x(n)===x(e))return!0;if(n==null||e==null||n.length!=e.length)return!1;for(t=0;t<n.length;++t)if(i=n[t],r=e[t],!(x(i)===x(r)||i!=null&&rt(i,r)))return!1;return!0}function Z_n(n){Nz();var e,t,i;for(this.b=MZn,this.c=(ci(),Jf),this.f=(hMn(),EZn),this.a=n,kz(this,new nwn),IS(this),i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),86),t.d||(e=new vx(S(C(M_,1),Kn,86,0,[t])),nn(n.a,e))}function lMe(n,e,t){var i,r,c,s,f,h;if(!n||n.c.length==0)return null;for(c=new tAn(e,!t),r=new M(n);r.a<r.c.c.length;)i=u(E(r),72),dnn(c,(u6(),new AE(i)));return s=c.i,s.a=(h=c.n,c.e.b+h.d+h.a),s.b=(f=c.n,c.e.a+f.b+f.c),c}function nHn(n){var e,t,i,r,c,s,f;for(f=Y7(n.a),EX(f,new egn),t=null,r=f,c=0,s=r.length;c<s&&(i=r[c],i.k==(Vn(),Zt));++c)e=u(v(i,(W(),gc)),64),!(e!=(en(),Wn)&&e!=Zn)&&(t&&u(v(t,C3),15).Fc(i),t=i)}function aMe(n,e,t){var i,r,c,s,f,h,l;h=(Nn(e,n.c.length),u(n.c[e],339)),Yl(n,e),h.b/2>=t&&(i=e,l=(h.c+h.a)/2,s=l-t,h.c<=l-t&&(r=new FN(h.c,s),bb(n,i++,r)),f=l+t,f<=h.a&&(c=new FN(f,h.a),z0(i,n.c.length),d6(n.c,i,c)))}function eHn(n,e,t){var i,r,c,s,f,h;if(!e.dc()){for(r=new Mt,h=e.Kc();h.Ob();)for(f=u(h.Pb(),40),Ve(n.a,Y(f.g),Y(t)),s=(i=ge(new sl(f).a.d,0),new sg(i));Q9(s.a);)c=u(be(s.a),65).c,xt(r,c,r.c.b,r.c);eHn(n,r,t+1)}}function xnn(n){var e;if(!n.c&&n.g==null)n.d=n.bj(n.f),ve(n,n.d),e=n.d;else{if(n.g==null)return!0;if(n.i==0)return!1;e=u(n.g[n.i-1],51)}return e==n.b&&null.Vm>=null.Um()?(MS(n),xnn(n)):e.Ob()}function tHn(n){if(this.a=n,n.c.i.k==(Vn(),Zt))this.c=n.c,this.d=u(v(n.c.i,(W(),gc)),64);else if(n.d.i.k==Zt)this.c=n.d,this.d=u(v(n.d.i,(W(),gc)),64);else throw T(new Gn("Edge "+n+" is not an external edge."))}function iHn(n,e){var t,i,r;r=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,3,r,n.b)),e?e!=n&&(zc(n,e.zb),v$(n,e.d),t=(i=e.c,i??e.zb),y$(n,t==null||Sn(t,e.zb)?null:t)):(zc(n,null),v$(n,0),y$(n,null))}function rHn(n,e){var t;this.e=(mb(),Pe(n),mb(),JY(n)),this.c=(Pe(e),JY(e)),BX(this.e.Rd().dc()==this.c.Rd().dc()),this.d=vKn(this.e),this.b=vKn(this.c),t=Wa(ki,[J,Kn],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=t,Rme(this)}function cHn(n){!oun&&(oun=uNe());var e=n.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(t){return h2e(t)});return'"'+e+'"'}function Rnn(n,e,t,i,r,c){var s,f,h,l,a;if(r!=0)for(x(n)===x(t)&&(n=n.slice(e,e+r),e=0),h=t,f=e,l=e+r;f<l;)s=y.Math.min(f+1e4,l),r=s-f,a=n.slice(f,s),a.splice(0,0,i,c?r:0),Array.prototype.splice.apply(h,a),f=s,i+=r}function uHn(n){JW();var e,t;for(this.b=BQn,this.c=_Qn,this.g=(fMn(),KQn),this.d=(ci(),Jf),this.a=n,cen(this),t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),60),!e.a&&nSn(z$n(new XG,S(C(aI,1),Kn,60,0,[e])),n),e.e=new IT(e.d)}function dMe(n){var e,t,i,r,c,s;for(r=n.e.c.length,i=F(rs,kw,15,r,0,1),s=new M(n.e);s.a<s.c.c.length;)c=u(E(s),153),i[c.a]=new Mt;for(t=new M(n.c);t.a<t.c.c.length;)e=u(E(t),290),i[e.c.a].Fc(e),i[e.d.a].Fc(e);return i}function bMe(n,e){var t,i,r,c,s;if(t=u(Un(n.a,4),129),s=t==null?0:t.length,e>=s)throw T(new F0(e,s));return r=t[e],s==1?i=null:(i=F(yU,TF,424,s-1,0,1),Oc(t,0,i,0,e),c=s-e-1,c>0&&Oc(t,e+1,i,e,c)),gm(n,i),P_n(n,e,r),r}function oHn(n){var e,t;if(n.f){for(;n.n<n.o;){if(e=u(n.j?n.j.$i(n.n):n.k.Xb(n.n),76),t=e.Lk(),L(t,102)&&u(t,19).Bb&kc&&(!n.e||t.pk()!=Hv||t.Lj()!=0)&&e.md()!=null)return!0;++n.n}return!1}else return n.n<n.o}function n3(){n3=R,_3=u(N(H((Mz(),yc).qb),6),35),F3=u(N(H(yc.qb),3),35),SU=u(N(H(yc.qb),4),35),PU=u(N(H(yc.qb),5),19),bS(_3),bS(F3),bS(SU),bS(PU),tse=new Fu(S(C(ku,1),f2,179,0,[_3,F3]))}function sHn(n,e){var t;this.d=new Qv,this.b=e,this.e=new rr(e.Lf()),t=n.u.Hc((zu(),tE)),n.u.Hc(Rl)?n.D?this.a=t&&!e.bg():this.a=!0:n.u.Hc(Oa)?t?this.a=!(e.Uf().Kc().Ob()||e.Wf().Kc().Ob()):this.a=!1:this.a=!1}function fHn(n,e){var t,i,r,c;for(t=n.o.a,c=u(u(ot(n.r,e),21),87).Kc();c.Ob();)r=u(c.Pb(),117),r.e.a=(i=r.b,i.pf((He(),oo))?i.ag()==(en(),Wn)?-i.Mf().a-$(B(i.of(oo))):t+$(B(i.of(oo))):i.ag()==(en(),Wn)?-i.Mf().a:t)}function hHn(n,e){var t,i,r,c;t=u(v(n,(cn(),Lo)),88),c=u(z(e,Tv),64),r=u(v(n,Ft),101),r!=(Ai(),Qf)&&r!=Ia?c==(en(),sc)&&(c=Ken(e,t),c==sc&&(c=zp(t))):(i=hGn(e),i>0?c=zp(t):c=xk(zp(t))),ht(e,Tv,c)}function wMe(n,e){var t;e.Ug("Partition preprocessing",1),t=u(Wr(ut(rc(ut(new Cn(null,new On(n.a,16)),new zgn),new Xgn),new Vgn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),qt(t.Oc(),new Wgn),e.Vg()}function gMe(n,e){var t,i,r,c,s;for(s=n.j,e.a!=e.b&&Yt(s,new Tpn),r=s.c.length/2|0,i=0;i<r;i++)c=(Nn(i,s.c.length),u(s.c[i],113)),c.c&&gi(c.d,e.a);for(t=r;t<s.c.length;t++)c=(Nn(t,s.c.length),u(s.c[t],113)),c.c&&gi(c.d,e.b)}function pMe(n,e,t){var i,r,c;return i=n.c[e.c.p][e.p],r=n.c[t.c.p][t.p],i.a!=null&&r.a!=null?(c=tD(i.a,r.a),c<0?hy(n,e,t):c>0&&hy(n,t,e),c):i.a!=null?(hy(n,e,t),-1):r.a!=null?(hy(n,t,e),1):0}function mMe(n,e){var t,i,r,c,s;for(r=e.b.b,n.a=F(rs,kw,15,r,0,1),n.b=F(so,Xh,28,r,16,1),s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),40),n.a[c.g]=new Mt;for(i=ge(e.a,0);i.b!=i.d.c;)t=u(be(i),65),n.a[t.b.g].Fc(t),n.a[t.c.g].Fc(t)}function lHn(n,e){var t,i,r,c;n.Pj()?(t=n.Ej(),c=n.Qj(),++n.j,n.qj(t,n.Zi(t,e)),i=n.Ij(3,null,e,t,c),n.Mj()?(r=n.Nj(e,null),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(eOn(n,e),n.Mj()&&(r=n.Nj(e,null),r&&r.oj()))}function Knn(n,e,t){var i,r,c;n.Pj()?(c=n.Qj(),Lk(n,e,t),i=n.Ij(3,null,t,e,c),n.Mj()?(r=n.Nj(t,null),n.Tj()&&(r=n.Uj(t,r)),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(Lk(n,e,t),n.Mj()&&(r=n.Nj(t,null),r&&r.oj()))}function jS(n,e){var t,i,r,c,s;for(s=ru(n.e.Dh(),e),r=new EE,t=u(n.g,124),c=n.i;--c>=0;)i=t[c],s.am(i.Lk())&&ve(r,i);!uzn(n,r)&&fo(n.e)&&t4(n,e.Jk()?V1(n,6,e,(Ln(),sr),null,-1,!1):V1(n,e.tk()?2:1,e,null,null,-1,!1))}function vMe(n,e){var t,i,r,c,s;return n.a==(jm(),x8)?!0:(c=e.a.c,t=e.a.c+e.a.b,!(e.j&&(i=e.A,s=i.c.c.a-i.o.a/2,r=c-(i.n.a+i.o.a),r>s)||e.q&&(i=e.C,s=i.c.c.a-i.o.a/2,r=i.n.a-t,r>s)))}function aHn(n){DD();var e,t,i,r,c,s,f;for(t=new Ql,r=new M(n.e.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=new M(i.a);s.a<s.c.c.length;)c=u(E(s),10),f=n.g[c.p],e=u(Df(t,f),15),e||(e=new Z,s1(t,f,e)),e.Fc(c);return t}function dHn(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (startX: ",hg(e,n.j),e.a+=", startY: ",hg(e,n.k),e.a+=", endX: ",hg(e,n.b),e.a+=", endY: ",hg(e,n.c),e.a+=", identifier: ",Er(e,n.d),e.a+=")",e.a)}function Bnn(n){var e;return n.Db&64?p5(n):(e=new ls(p5(n)),e.a+=" (ordered: ",ql(e,(n.Bb&256)!=0),e.a+=", unique: ",ql(e,(n.Bb&512)!=0),e.a+=", lowerBound: ",CL(e,n.s),e.a+=", upperBound: ",CL(e,n.t),e.a+=")",e.a)}function bHn(n,e,t,i,r,c,s,f){var h;return L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,t),n.f=i,hm(n,r),am(n,c),fm(n,s),lm(n,!1),u1(n,!0),dm(n,f),c1(n,!0),e1(n,0),n.b=0,Z0(n,1),h=Kf(n,e,null),h&&h.oj(),sx(n,!1),n}function wHn(n,e){var t,i,r,c;return t=u(Dc(n.a,e),525),t||(i=new VD(e),r=(UT(),Uf?null:i.c),c=qo(r,0,y.Math.max(0,RM(r,wu(46)))),Jae(i,wHn(n,c)),(Uf?null:i.c).length==0&&CSn(i,new RU),Lr(n.a,Uf?null:i.c,i),i)}function kMe(n,e){var t;n.b=e,n.g=new Z,t=MMe(n.b),n.e=t,n.f=t,n.c=on(un(v(n.b,(aS(),_un)))),n.a=B(v(n.b,(He(),x2))),n.a==null&&(n.a=1),$(n.a)>1?n.e*=$(n.a):n.f/=$(n.a),_6e(n),X8e(n),USe(n),U(n.b,(M5(),pI),n.g)}function gHn(n,e,t){var i,r,c,s,f,h;for(i=0,h=t,e||(i=t*(n.c.length-1),h*=-1),c=new M(n);c.a<c.c.c.length;){for(r=u(E(c),10),U(r,(cn(),Ch),(Bh(),nA)),r.o.a=i,f=h1(r,(en(),Zn)).Kc();f.Ob();)s=u(f.Pb(),12),s.n.a=i;i+=h}}function e3(n,e,t){var i,r,c,s,f,h;return f=n.pl(t),f!=t?(s=n.g[e],h=f,O6(n,e,n.Zi(e,h)),c=s,n.Ri(e,h,c),n.al()&&(i=t,r=n.Oj(i,null),!u(f,54).Ph()&&(r=n.Nj(h,r)),r&&r.oj()),fo(n.e)&&t4(n,n.Ij(9,t,f,e,!1)),f):t}function yMe(n,e){var t,i,r,c;for(i=new M(n.a.a);i.a<i.c.c.length;)t=u(E(i),194),t.g=!0;for(c=new M(n.a.b);c.a<c.c.c.length;)r=u(E(c),86),r.k=on(un(n.e.Kb(new bi(r,e)))),r.d.g=r.d.g&on(un(n.e.Kb(new bi(r,e))));return n}function pHn(n,e){var t,i;if(n.c.length!=0){if(n.c.length==2)t3((Nn(0,n.c.length),u(n.c[0],10)),(Co(),nl)),t3((Nn(1,n.c.length),u(n.c[1],10)),Sa);else for(i=new M(n);i.a<i.c.c.length;)t=u(E(i),10),t3(t,e);n.c.length=0}}function mHn(n){var e,t,i,r,c;if(t=(e=u(of(lr),9),new _o(e,u(xs(e,e.length),9),0)),c=u(v(n,(W(),Xu)),10),c)for(r=new M(c.j);r.a<r.c.c.length;)i=u(E(r),12),x(v(i,st))===x(n)&&L6(new Lf(i.b))&&_s(t,i.j);return t}function vHn(n,e,t){var i,r,c,s,f;if(!n.d[t.p]){for(r=new ie(ce(Qt(t).a.Kc(),new En));pe(r);){for(i=u(fe(r),18),f=i.d.i,s=new ie(ce(ji(f).a.Kc(),new En));pe(s);)c=u(fe(s),18),c.c.i==e&&(n.a[c.p]=!0);vHn(n,e,f)}n.d[t.p]=!0}}function jMe(n,e){var t,i,r,c,s,f,h;if(i=dKn(n.Db&254),i==1)n.Eb=null;else if(c=cd(n.Eb),i==2)r=Bx(n,e),n.Eb=c[r==0?1:0];else{for(s=F(ki,Kn,1,i-1,5,1),t=2,f=0,h=0;t<=128;t<<=1)t==e?++f:n.Db&t&&(s[h++]=c[f++]);n.Eb=s}n.Db&=~e}function Fnn(n){var e;switch(e=0,n){case 105:e=2;break;case 109:e=8;break;case 115:e=4;break;case 120:e=16;break;case 117:e=32;break;case 119:e=64;break;case 70:e=256;break;case 72:e=128;break;case 88:e=512;break;case 44:e=Gs}return e}function EMe(n,e,t,i,r){var c,s,f,h;if(x(n)===x(e)&&i==r){pUn(n,i,t);return}for(f=0;f<i;f++){for(s=0,c=n[f],h=0;h<r;h++)s=nr(nr(er(vi(c,mr),vi(e[h],mr)),vi(t[f+h],mr)),vi(Se(s),mr)),t[f+h]=Se(s),s=U1(s,32);t[f+r]=Se(s)}}function MMe(n){var e,t,i,r,c,s,f,h,l,a,d;for(a=0,l=0,r=n.a,f=r.a.gc(),i=r.a.ec().Kc();i.Ob();)t=u(i.Pb(),567),e=(t.b&&xR(t),t.a),d=e.a,s=e.b,a+=d+s,l+=d*s;return h=y.Math.sqrt(400*f*l-4*l+a*a)+a,c=2*(100*f-1),c==0?h:h/c}function kHn(n,e){e.b!=0&&(isNaN(n.s)?n.s=$((oe(e.b!=0),B(e.a.a.c))):n.s=y.Math.min(n.s,$((oe(e.b!=0),B(e.a.a.c)))),isNaN(n.c)?n.c=$((oe(e.b!=0),B(e.c.b.c))):n.c=y.Math.max(n.c,$((oe(e.b!=0),B(e.c.b.c)))))}function D5(n){var e,t,i,r;for(e=null,i=$h(Eo(S(C(Ao,1),Kn,20,0,[(!n.b&&(n.b=new Dn(he,n,4,7)),n.b),(!n.c&&(n.c=new Dn(he,n,5,8)),n.c)])));pe(i);)if(t=u(fe(i),84),r=Gr(t),!e)e=St(r);else if(e!=St(r))return!0;return!1}function aR(n,e){var t,i,r,c;n.Pj()?(t=n.i,c=n.Qj(),ek(n,e),i=n.Ij(3,null,e,t,c),n.Mj()?(r=n.Nj(e,null),n.Tj()&&(r=n.Uj(e,r)),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(ek(n,e),n.Mj()&&(r=n.Nj(e,null),r&&r.oj()))}function TMe(n,e){var t,i,r,c;if(c=B7(n.a,e.b),!c)throw T(new Ar("Invalid hitboxes for scanline overlap calculation."));for(r=!1,i=n.a.a.ec().Kc();i.Ob();)if(t=u(i.Pb(),68),i6e(e.b,t))Dhe(n.b.a,e.b,t),r=!0;else if(r)break}function CMe(n){var e;if(!n.a)throw T(new Ar("IDataType class expected for layout option "+n.f));if(e=l3e(n.a),e==null)throw T(new Ar("Couldn't create new instance of property '"+n.f+"'. "+NVn+(ll(lE),lE.k)+dcn));return u(e,423)}function dR(n){var e,t,i,r,c;return c=n.Ph(),c&&c.Vh()&&(r=ea(n,c),r!=c)?(t=n.Fh(),i=(e=n.Fh(),e>=0?n.Ah(null):n.Ph().Th(n,-1-e,null,null)),n.Bh(u(r,54),t),i&&i.oj(),n.vh()&&n.wh()&&t>-1&&it(n,new Mi(n,9,t,c,r)),r):c}function _nn(n,e){var t,i,r,c,s;for(c=n.b.Ce(e),i=(t=n.a.get(c),t??F(ki,Kn,1,0,5,1)),s=0;s<i.length;s++)if(r=i[s],n.b.Be(e,r.ld()))return i.length==1?(i.length=0,Pae(n.a,c)):i.splice(s,1),--n.c,++n.b.g,r.md();return null}function yHn(n){var e,t,i,r,c,s,f,h;for(s=0,c=n.f.e,i=0;i<c.c.length;++i)for(f=(Nn(i,c.c.length),u(c.c[i],153)),r=i+1;r<c.c.length;++r)h=(Nn(r,c.c.length),u(c.c[r],153)),t=J1(f.d,h.d),e=t-n.a[f.a][h.a],s+=n.i[f.a][h.a]*e*e;return s}function SMe(n,e){var t;if(!kt(e,(cn(),ou))&&(t=V7e(u(v(e,ysn),371),u(v(n,ou),171)),U(e,ysn,t),!pe(new ie(ce(Ml(e).a.Kc(),new En)))))switch(t.g){case 1:U(e,ou,(Yo(),_8));break;case 2:U(e,ou,(Yo(),H8))}}function PMe(n,e){var t;_Se(n),n.a=(t=new ML,qt(new Cn(null,new On(e.d,16)),new T7n(t)),t),iPe(n,u(v(e.b,(cn(),EH)),349)),$9e(n),$Me(n),J7e(n),x9e(n),WOe(n,e),qt(rc(new Cn(null,oLn(Lwe(n.b).a)),new spn),new fpn),e.a=!1,n.a=null}function Hnn(){Hnn=R,bre=new Tn(Srn,(_n(),!1)),wre=new Tn(Prn,7),Y(0),vre=new Tn(Irn,Y(0)),pre=new Tn(Orn,Y(-1)),Mln=(b5(),lq),kre=new Tn(Arn,Mln),jln=(d5(),Nj),gre=new Tn(Lrn,jln),Eln=(RT(),aq),mre=new Tn(Nrn,Eln)}function jHn(){cnn.call(this,tv,(K1(),voe)),this.p=null,this.a=null,this.f=null,this.n=null,this.g=null,this.c=null,this.i=null,this.j=null,this.d=null,this.b=null,this.e=null,this.k=null,this.o=null,this.s=null,this.q=!1,this.r=!1}function Mm(){Mm=R,vU=new gp(JXn,0),mA=new gp("INSIDE_SELF_LOOPS",1),vA=new gp("MULTI_EDGES",2),pA=new gp("EDGE_LABELS",3),mU=new gp("PORTS",4),gA=new gp("COMPOUND",5),wA=new gp("CLUSTERS",6),pU=new gp("DISCONNECTED",7)}function EHn(n,e,t){var i,r,c;n.Pj()?(c=n.Qj(),++n.j,n.qj(e,n.Zi(e,t)),i=n.Ij(3,null,t,e,c),n.Mj()?(r=n.Nj(t,null),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(++n.j,n.qj(e,n.Zi(e,t)),n.Mj()&&(r=n.Nj(t,null),r&&r.oj()))}function MHn(n,e){var t,i,r;if(e==0)return(n.a[0]&1)!=0;if(e<0)throw T(new _E("Negative bit address"));if(r=e>>5,r>=n.d)return n.e<0;if(t=n.a[r],e=1<<(e&31),n.e<0){if(i=Oxn(n),r<i)return!1;i==r?t=-t:t=~t}return(t&e)!=0}function IMe(n,e,t,i){var r;u(t.b,68),u(t.b,68),u(i.b,68),u(i.b,68),r=mi(Fi(u(t.b,68).c),u(i.b,68).c),JM(r,x_n(u(t.b,68),u(i.b,68),r)),u(i.b,68),u(i.b,68),u(i.b,68).c.a+r.a,u(i.b,68).c.b+r.b,u(i.b,68),nu(i.a,new RV(n,e,i))}function qnn(n,e){var t,i,r,c,s,f,h;if(c=e.e,c){for(t=dR(c),i=u(n.g,689),s=0;s<n.i;++s)if(h=i[s],Nx(h)==t&&(r=(!h.d&&(h.d=new ti(jr,h,1)),h.d),f=u(t.Mh(SR(c,c.Cb,c.Db>>16)),15).dd(c),f<r.i))return qnn(n,u(N(r,f),89))}return e}function b(n,e,t){var i=rI,r,c=i[n],s=c instanceof Array?c[0]:null;c&&!s?o=c:(o=(r=e&&e.prototype,!r&&(r=rI[e]),w2e(r)),o.Sm=t,!e&&(o.Tm=Q2),i[n]=o);for(var f=3;f<arguments.length;++f)arguments[f].prototype=o;s&&(o.Rm=s)}function pe(n){for(var e;!u(Pe(n.a),51).Ob();){if(n.d=k6e(n),!n.d)return!1;if(n.a=u(n.d.Pb(),51),L(n.a,38)){if(e=u(n.a,38),n.a=e.a,!n.b&&(n.b=new Mg),W1(n.b,n.d),e.b)for(;!t6(e.b);)W1(n.b,u(bwe(e.b),51));n.d=e.d}}return!0}function Unn(n,e){var t,i,r,c;for(r=1,e.j=!0,c=null,i=new M(xg(e));i.a<i.c.c.length;)t=u(E(i),218),n.c[t.c]||(n.c[t.c]=!0,c=HC(t,e),t.f?r+=Unn(n,c):!c.j&&t.a==t.e.e-t.d.e&&(t.f=!0,fi(n.p,t),r+=Unn(n,c)));return r}function OMe(n){var e,t,i;for(t=new M(n.a.a.b);t.a<t.c.c.length;)e=u(E(t),86),i=(Jn(0),0),i>0&&(!(hl(n.a.c)&&e.n.d)&&!(vg(n.a.c)&&e.n.b)&&(e.g.d+=y.Math.max(0,i/2-.5)),!(hl(n.a.c)&&e.n.a)&&!(vg(n.a.c)&&e.n.c)&&(e.g.a-=i-1))}function THn(n){var e,t,i,r,c;if(r=new Z,c=kUn(n,r),e=u(v(n,(W(),Xu)),10),e)for(i=new M(e.j);i.a<i.c.c.length;)t=u(E(i),12),x(v(t,st))===x(n)&&(c=y.Math.max(c,kUn(t,r)));return r.c.length==0||U(n,y2,c),c!=-1?r:null}function CHn(n,e,t){var i,r,c,s,f,h;c=u(sn(e.e,0),18).c,i=c.i,r=i.k,h=u(sn(t.g,0),18).d,s=h.i,f=s.k,r==(Vn(),Ti)?U(n,(W(),yf),u(v(i,yf),12)):U(n,(W(),yf),c),f==Ti?U(n,(W(),Es),u(v(s,Es),12)):U(n,(W(),Es),h)}function Gnn(n){var e,t,i;this.c=n,i=u(v(n,(cn(),Lo)),88),e=$(B(v(n,oO))),t=$(B(v(n,khn))),i==(ci(),Kr)||i==Xr||i==Jf?this.b=e*t:this.b=1/(e*t),this.j=$(B(v(n,S2))),this.e=$(B(v(n,g0))),this.f=n.b.c.length}function znn(n,e){var t,i,r,c,s;return e&=63,t=n.h,i=(t&Cy)!=0,i&&(t|=-1048576),e<22?(s=t>>e,c=n.m>>e|t<<22-e,r=n.l>>e|n.m<<22-e):e<44?(s=i?Ol:0,c=t>>e-22,r=n.m>>e-22|t<<44-e):(s=i?Ol:0,c=i?ro:0,r=t>>e-44),Yc(r&ro,c&ro,s&Ol)}function bR(n){var e,t,i,r,c,s;for(this.c=new Z,this.d=n,i=Pt,r=Pt,e=li,t=li,s=ge(n,0);s.b!=s.d.c;)c=u(be(s),8),i=y.Math.min(i,c.a),r=y.Math.min(r,c.b),e=y.Math.max(e,c.a),t=y.Math.max(t,c.b);this.a=new Ho(i,r,e-i,t-r)}function SHn(n,e){var t,i,r,c,s,f;for(c=new M(n.b);c.a<c.c.c.length;)for(r=u(E(c),30),f=new M(r.a);f.a<f.c.c.length;)for(s=u(E(f),10),s.k==(Vn(),Sc)&&t3(s,e),i=new ie(ce(Qt(s).a.Kc(),new En));pe(i);)t=u(fe(i),18),eRn(t,e)}function AMe(n,e){var t,i,r;for(e.Ug("Layer constraint preprocessing",1),t=new Z,r=new xi(n.a,0);r.b<r.d.gc();)i=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),10)),r6e(i)&&(dye(i),Fn(t.c,i),bo(r));t.c.length==0||U(n,(W(),hH),t),e.Vg()}function LMe(n){var e,t;for(n.e=F(ye,_e,28,n.p.c.length,15,1),n.k=F(ye,_e,28,n.p.c.length,15,1),t=new M(n.p);t.a<t.c.c.length;)e=u(E(t),10),n.e[e.p]=wl(new ie(ce(ji(e).a.Kc(),new En))),n.k[e.p]=wl(new ie(ce(Qt(e).a.Kc(),new En)))}function NMe(n){var e,t,i,r,c,s;for(r=0,n.q=new Z,e=new ni,s=new M(n.p);s.a<s.c.c.length;){for(c=u(E(s),10),c.p=r,i=new ie(ce(Qt(c).a.Kc(),new En));pe(i);)t=u(fe(i),18),fi(e,t.d.i);e.a.Bc(c)!=null,nn(n.q,new R6(e)),e.a.$b(),++r}}function PHn(n,e){var t,i,r,c,s,f,h,l,a;if(n.a.f>0&&L(e,44)&&(n.a._j(),l=u(e,44),h=l.ld(),c=h==null?0:mt(h),s=aV(n.a,c),t=n.a.d[s],t)){for(i=u(t.g,379),a=t.i,f=0;f<a;++f)if(r=i[f],r.Bi()==c&&r.Fb(l))return PHn(n,l),!0}return!1}function DMe(n){var e,t,i,r,c,s,f;if(e=n.qi(ks),e&&(f=Ae(gf((!e.b&&(e.b=new lo((An(),ar),pc,e)),e.b),"settingDelegates")),f!=null)){for(t=new Z,r=ww(f,"\\w+"),c=0,s=r.length;c<s;++c)i=r[c],Fn(t.c,i);return t}return Ln(),Ln(),sr}function $Me(n){var e,t,i,r;for(r=u(ot(n.a,(ow(),GI)),15).Kc();r.Ob();)i=u(r.Pb(),105),t=(e=Cp(i.k),e.Hc((en(),Xn))?e.Hc(Zn)?e.Hc(ae)?e.Hc(Wn)?null:une:sne:one:cne),T4(n,i,t[0],(Lb(),c0),0),T4(n,i,t[1],va,1),T4(n,i,t[2],u0,1)}function xMe(n,e){var t,i;t=gPe(e),iSe(n,e,t),NFn(n.a,u(v(Hi(e.b),(W(),P3)),234)),KPe(n),uye(n,e),i=F(ye,_e,28,e.b.j.c.length,15,1),VR(n,e,(en(),Xn),i,t),VR(n,e,Zn,i,t),VR(n,e,ae,i,t),VR(n,e,Wn,i,t),n.a=null,n.c=null,n.b=null}function Xnn(n,e,t){switch(e){case 7:!n.e&&(n.e=new Dn(Vt,n,7,4)),me(n.e),!n.e&&(n.e=new Dn(Vt,n,7,4)),Kt(n.e,u(t,16));return;case 8:!n.d&&(n.d=new Dn(Vt,n,8,5)),me(n.d),!n.d&&(n.d=new Dn(Vt,n,8,5)),Kt(n.d,u(t,16));return}FZ(n,e,t)}function Vnn(n,e){var t,i,r,c,s;if(x(e)===x(n))return!0;if(!L(e,15)||(s=u(e,15),n.gc()!=s.gc()))return!1;for(c=s.Kc(),i=n.Kc();i.Ob();)if(t=i.Pb(),r=c.Pb(),!(x(t)===x(r)||t!=null&&rt(t,r)))return!1;return!0}function RMe(n,e){var t,i,r,c;for(c=u(Wr(rc(rc(new Cn(null,new On(e.b,16)),new lgn),new agn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),c.Jc(new dgn),t=0,r=c.Kc();r.Ob();)i=u(r.Pb(),12),i.p==-1&&Wnn(n,i,t++)}function IHn(n){switch(n.g){case 0:return new o8n;case 1:return new c8n;case 2:return new u8n;case 3:return new JMn;case 4:return new gIn;default:throw T(new Gn("No implementation is available for the node placer "+(n.f!=null?n.f:""+n.g)))}}function OHn(n){switch(n.g){case 0:return new aW;case 1:return new X5n;case 2:return new z5n;case 3:return new U5n;case 4:return new FTn;default:throw T(new Gn("No implementation is available for the cycle breaker "+(n.f!=null?n.f:""+n.g)))}}function KMe(n,e){var t,i,r,c,s;i=new Mt,xt(i,e,i.c.b,i.c);do for(t=(oe(i.b!=0),u(Xo(i,i.a.a),40)),n.b[t.g]=1,c=ge(t.d,0);c.b!=c.d.c;)r=u(be(c),65),s=r.c,n.b[s.g]==1?Re(n.a,r):n.b[s.g]==2?n.b[s.g]=1:xt(i,s,i.c.b,i.c);while(i.b!=0)}function BMe(n,e,t){var i;i=null,e&&(i=e.d),O5(n,new d4(e.n.a-i.b+t.a,e.n.b-i.d+t.b)),O5(n,new d4(e.n.a-i.b+t.a,e.n.b+e.o.b+i.a+t.b)),O5(n,new d4(e.n.a+e.o.a+i.c+t.a,e.n.b-i.d+t.b)),O5(n,new d4(e.n.a+e.o.a+i.c+t.a,e.n.b+e.o.b+i.a+t.b))}function Wnn(n,e,t){var i,r,c;for(e.p=t,c=$h(Eo(S(C(Ao,1),Kn,20,0,[new e4(e),new ip(e)])));pe(c);)i=u(fe(c),12),i.p==-1&&Wnn(n,i,t);if(e.i.k==(Vn(),Ti))for(r=new M(e.i.j);r.a<r.c.c.length;)i=u(E(r),12),i!=e&&i.p==-1&&Wnn(n,i,t)}function FMe(n,e){var t,i,r,c,s,f;for(i=new Ql,s=HT(new Fu(n.g)),c=s.a.ec().Kc();c.Ob();){if(r=u(c.Pb(),10),!r){e.bh("There are no classes in a balanced layout.");break}f=n.j[r.p],t=u(Df(i,f),15),t||(t=new Z,s1(i,f,t)),t.Fc(r)}return i}function AHn(n){var e,t,i,r,c;if(r=u(Wr(cJ(sJ(n)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),i=i2,r.gc()>=2)for(t=r.Kc(),e=B(t.Pb());t.Ob();)c=e,e=B(t.Pb()),i=y.Math.min(i,(Jn(e),e-(Jn(c),c)));return i}function _Me(n,e){var t,i,r;for(r=new Z,i=ge(e.a,0);i.b!=i.d.c;)t=u(be(i),65),t.b.g==n.g&&!Sn(t.b.c,OP)&&x(v(t.b,(lc(),Ph)))!==x(v(t.c,Ph))&&!Ag(new Cn(null,new On(r,16)),new lkn(t))&&Fn(r.c,t);return Yt(r,new V3n),r}function HMe(n,e){var t,i,r;if(x(e)===x(Pe(n)))return!0;if(!L(e,15)||(i=u(e,15),r=n.gc(),r!=i.gc()))return!1;if(L(i,59)){for(t=0;t<r;t++)if(!sh(n.Xb(t),i.Xb(t)))return!1;return!0}else return q9e(n.Kc(),i.Kc())}function qMe(n,e,t,i,r,c){var s,f,h,l;for(f=!s4(ut(n.Oc(),new Z3(new Cgn))).Bd((Va(),v3)),s=n,c==(ci(),us)&&(s=Qo(s)),l=s.Kc();l.Ob();)h=u(l.Pb(),72),h.n.a=e.a,f?h.n.b=e.b+(i.b-h.o.b)/2:r?h.n.b=e.b:h.n.b=e.b+i.b-h.o.b,e.a+=h.o.a+t}function UMe(n,e){var t,i,r,c,s;for(e.Ug("Port side processing",1),s=new M(n.a);s.a<s.c.c.length;)r=u(E(s),10),GUn(r);for(i=new M(n.b);i.a<i.c.c.length;)for(t=u(E(i),30),c=new M(t.a);c.a<c.c.c.length;)r=u(E(c),10),GUn(r);e.Vg()}function GMe(n,e,t){var i,r,c,s,f,h,l;if(t)for(c=t.a.length,i=new Qa(c),f=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),h=N4(t,s.a),h&&(l=Ame(bl(h,wF),e),Ve(n.f,l,h),r=Eh in h.a,r&&X4(l,bl(h,Eh)),gS(h,l),Cnn(h,l))}function zMe(n,e,t){var i,r,c,s,f;if(f=t,!f&&(f=QV(new op,0)),f.Ug(IXn,1),SGn(n.c,e),s=JAe(n.a,e),s.gc()==1)sGn(u(s.Xb(0),36),f);else for(c=1/s.gc(),r=s.Kc();r.Ob();){if(i=u(r.Pb(),36),t.$g())return;sGn(i,f.eh(c))}she(n.a,s,e),MSe(e),f.Vg()}function LHn(n,e,t){var i,r,c,s,f;if(r=n.f,!r&&(r=u(n.a.a.ec().Kc().Pb(),60)),I5(r,e,t),n.a.a.gc()!=1)for(i=e*t,s=n.a.a.ec().Kc();s.Ob();)c=u(s.Pb(),60),c!=r&&(f=xp(c),f.f.d?(c.d.d+=i+_f,c.d.a-=i+_f):f.f.a&&(c.d.a-=i+_f))}function wR(n,e,t,i,r){var c,s,f,h,l,a,d,g,p;return s=t-n,f=i-e,c=y.Math.atan2(s,f),h=c+QK,l=c-QK,a=r*y.Math.sin(h)+n,g=r*y.Math.cos(h)+e,d=r*y.Math.sin(l)+n,p=r*y.Math.cos(l)+e,Af(S(C(Ei,1),J,8,0,[new V(a,g),new V(d,p)]))}function XMe(n,e,t,i){var r,c,s,f,h,l,a,d;r=t,a=e,c=a;do c=n.a[c.p],f=(d=n.g[c.p],$(n.p[d.p])+$(n.d[c.p])-c.d.d),h=Xme(c,i),h&&(s=(l=n.g[h.p],$(n.p[l.p])+$(n.d[h.p])+h.o.b+h.d.a),r=y.Math.min(r,f-(s+jg(n.k,c,h))));while(a!=c);return r}function VMe(n,e,t,i){var r,c,s,f,h,l,a,d;r=t,a=e,c=a;do c=n.a[c.p],s=(d=n.g[c.p],$(n.p[d.p])+$(n.d[c.p])+c.o.b+c.d.a),h=Zve(c,i),h&&(f=(l=n.g[h.p],$(n.p[l.p])+$(n.d[h.p])-h.d.d),r=y.Math.min(r,f-(s+jg(n.k,c,h))));while(a!=c);return r}function NHn(n,e){var t;if(e.Ug("Equal Whitespace Eliminator",1),Nf(n,(_h(),GO)))t5e(u(z(n,GO),15),$(B(z(n,A3))),(t=$(B(z(n,s9))),$(B(z(n,(Bf(),l9)))),t));else throw T(new _l("The graph does not contain rows."));e.Vg()}function z(n,e){var t,i;return i=(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),gf(n.o,e)),i??(t=e.Sg(),L(t,4)&&(t==null?(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),VC(n.o,e)):(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),zk(n.o,e,t))),t)}function lw(){lw=R,Qs=new bg("H_LEFT",0),xl=new bg("H_CENTER",1),Ys=new bg("H_RIGHT",2),nf=new bg("V_TOP",3),el=new bg("V_CENTER",4),Ts=new bg("V_BOTTOM",5),No=new bg("INSIDE",6),Zs=new bg("OUTSIDE",7),Ms=new bg("H_PRIORITY",8)}function WMe(n,e){var t,i,r,c,s,f,h;if(!e.f)throw T(new Gn("The input edge is not a tree edge."));for(c=null,r=et,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),218),f=t.d,h=t.e,fR(n,f,e)&&!fR(n,h,e)&&(s=h.e-f.e-t.a,s<r&&(r=s,c=t));return c}function JMe(n){var e,t,i,r,c,s;if(!(n.f.e.c.length<=1)){e=0,r=yHn(n),t=Pt;do{for(e>0&&(r=t),s=new M(n.f.e);s.a<s.c.c.length;)c=u(E(s),153),!on(un(v(c,(Uk(),Ton))))&&(i=fIe(n,c),tt(ff(c.d),i));t=yHn(n)}while(!Dwe(n,e++,r,t))}}function QMe(n,e){var t,i,r,c,s;for(c=n.g.a,s=n.g.b,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),72),r=t.n,n.a==(xf(),lv)||n.i==(en(),Zn)?r.a=c:n.a==av||n.i==(en(),Wn)?r.a=c+n.j.a-t.o.a:r.a=c+(n.j.a-t.o.a)/2,r.b=s,tt(r,e),s+=t.o.b+n.e}function YMe(n,e){var t,i,r,c,s,f,h,l,a,d;l=n,h=Y6(l,"individualSpacings"),h&&(i=Nf(e,(He(),$3)),s=!i,s&&(r=new _A,ht(e,$3,r)),f=u(z(e,$3),385),d=h,c=null,d&&(c=(a=P$(d,F(fn,J,2,0,6,1)),new PL(d,a))),c&&(t=new MTn(d,f),qi(c,t)))}function ZMe(n,e){var t,i,r,c,s,f,h,l,a,d,g;return h=null,d=n,a=null,(jWn in d.a||EWn in d.a||BP in d.a)&&(l=null,g=zQ(e),s=Y6(d,jWn),t=new Wkn(g),b8e(t.a,s),f=Y6(d,EWn),i=new cyn(g),w8e(i.a,f),c=Sb(d,BP),r=new syn(g),l=(Zke(r.a,c),c),a=l),h=a,h}function nTe(n,e){var t,i,r;if(e===n)return!0;if(L(e,552)){if(r=u(e,849),n.a.d!=r.a.d||Sg(n).gc()!=Sg(r).gc())return!1;for(i=Sg(r).Kc();i.Ob();)if(t=u(i.Pb(),425),$An(n,t.a.ld())!=u(t.a.md(),16).gc())return!1;return!0}return!1}function eTe(n){var e,t,i,r;return i=u(n.a,17).a,r=u(n.b,17).a,e=i,t=r,i==0&&r==0?t-=1:i==-1&&r<=0?(e=0,t-=2):i<=0&&r>0?(e-=1,t-=1):i>=0&&r<0?(e+=1,t+=1):i>0&&r>=0?(e-=1,t+=1):(e+=1,t-=1),new bi(Y(e),Y(t))}function tTe(n,e){return n.c<e.c?-1:n.c>e.c?1:n.b<e.b?-1:n.b>e.b?1:n.a!=e.a?mt(n.a)-mt(e.a):n.d==(Z6(),e9)&&e.d==n9?-1:n.d==n9&&e.d==e9?1:0}function DHn(n,e){var t,i,r,c,s;return c=e.a,c.c.i==e.b?s=c.d:s=c.c,c.c.i==e.b?i=c.c:i=c.d,r=M8e(n.a,s,i),r>0&&r<i2?(t=XMe(n.a,i.i,r,n.c),I$n(n.a,i.i,-t),t>0):r<0&&-r<i2?(t=VMe(n.a,i.i,-r,n.c),I$n(n.a,i.i,t),t>0):!1}function iTe(n,e,t,i){var r,c,s,f,h,l,a,d;for(r=(e-n.d)/n.c.c.length,c=0,n.a+=t,n.d=e,d=new M(n.c);d.a<d.c.c.length;)a=u(E(d),27),l=a.g,h=a.f,eu(a,a.i+c*r),tu(a,a.j+i*t),Ob(a,a.g+r),Ib(a,n.a),++c,f=a.g,s=a.f,Enn(a,new V(f,s),new V(l,h))}function rTe(n){var e,t,i,r,c,s,f;if(n==null)return null;for(f=n.length,r=(f+1)/2|0,s=F(Ru,s2,28,r,15,1),f%2!=0&&(s[--r]=pen((zn(f-1,n.length),n.charCodeAt(f-1)))),t=0,i=0;t<r;++t)e=pen(Xi(n,i++)),c=pen(Xi(n,i++)),s[t]=(e<<4|c)<<24>>24;return s}function cTe(n){if(n.ze()){var e=n.c;e.Ae()?n.o="["+e.n:e.ze()?n.o="["+e.xe():n.o="[L"+e.xe()+";",n.b=e.we()+"[]",n.k=e.ye()+"[]";return}var t=n.j,i=n.d;i=i.split("/"),n.o=mx(".",[t,mx("$",i)]),n.b=mx(".",[t,mx(".",i)]),n.k=i[i.length-1]}function uTe(n,e){var t,i,r,c,s;for(s=null,c=new M(n.e.a);c.a<c.c.c.length;)if(r=u(E(c),125),r.b.a.c.length==r.g.a.c.length){for(i=r.e,s=Fje(r),t=r.e-u(s.a,17).a+1;t<r.e+u(s.b,17).a;t++)e[t]<e[i]&&(i=t);e[i]<e[r.e]&&(--e[r.e],++e[i],r.e=i)}}function gR(n){var e,t,i,r,c,s,f,h;for(r=Pt,i=li,t=new M(n.e.b);t.a<t.c.c.length;)for(e=u(E(t),30),s=new M(e.a);s.a<s.c.c.length;)c=u(E(s),10),h=$(n.p[c.p]),f=h+$(n.b[n.g[c.p].p]),r=y.Math.min(r,h),i=y.Math.max(i,f);return i-r}function $Hn(n){UR();var e,t,i,r;return i=ih(n,wu(35)),e=i==-1?n:(Ri(0,i,n.length),n.substr(0,i)),t=i==-1?null:(zn(i+1,n.length+1),n.substr(i+1)),r=j3e(Hdn,e),r?t!=null&&(r=ORn(r,(Jn(t),t))):(r=qNe(e),$3e(Hdn,e,r),t!=null&&(r=ORn(r,t))),r}function Jnn(n,e,t,i){var r,c,s,f,h;for(r=Cen(n,e),f=0,h=r.gc();f<h;++f)if(c=u(r.Xb(f),179),Sn(i,I4(Nr(n,c)))){if(s=q7(Nr(n,c)),t==null){if(s==null)return c}else if(Sn(t,s))return c}return null}function Qnn(n,e,t,i){var r,c,s,f,h;for(r=PR(n,e),f=0,h=r.gc();f<h;++f)if(c=u(r.Xb(f),179),Sn(i,I4(Nr(n,c)))){if(s=q7(Nr(n,c)),t==null){if(s==null)return c}else if(Sn(t,s))return c}return null}function oTe(n,e,t){var i,r,c,s,f,h;if(s=new EE,f=ru(n.e.Dh(),e),i=u(n.g,124),dr(),u(e,69).xk())for(c=0;c<n.i;++c)r=i[c],f.am(r.Lk())&&ve(s,r);else for(c=0;c<n.i;++c)r=i[c],f.am(r.Lk())&&(h=r.md(),ve(s,t?N5(n,e,c,s.i,h):h));return yJ(s)}function xHn(n){var e,t,i,r,c,s,f;if(n&&(e=n.qi(ks),e&&(s=Ae(gf((!e.b&&(e.b=new lo((An(),ar),pc,e)),e.b),"conversionDelegates")),s!=null))){for(f=new Z,i=ww(s,"\\w+"),r=0,c=i.length;r<c;++r)t=i[r],Fn(f.c,t);return f}return Ln(),Ln(),sr}function RHn(n,e){var t,i,r,c,s,f,h,l;for(s=e==1?C_:T_,c=s.a.ec().Kc();c.Ob();)for(r=u(c.Pb(),88),h=u(ot(n.f.c,r),21).Kc();h.Ob();)switch(f=u(h.Pb(),42),i=u(f.b,86),l=u(f.a,194),t=l.c,r.g){case 2:case 1:i.g.d+=t;break;case 4:case 3:i.g.c+=t}}function sTe(n,e){var t,i,r,c,s;for(t=new y5(wv),r=(Yp(),S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2])),c=0,s=r.length;c<s;++c)i=r[c],gV(t,i,new Z);return qt(_r(ut(rc(new Cn(null,new On(n.b,16)),new Sgn),new Pgn),new i7n(e)),new r7n(t)),t}function ES(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=e.Kc();c.Ob();)r=u(c.Pb(),27),a=r.i+r.g/2,g=r.j+r.f/2,h=n.f,s=h.i+h.g/2,f=h.j+h.f/2,l=a-s,d=g-f,i=y.Math.sqrt(l*l+d*d),l*=n.e/i,d*=n.e/i,t?(a-=l,g-=d):(a+=l,g+=d),eu(r,a-r.g/2),tu(r,g-r.f/2)}function Gg(n){var e,t,i;if(!n.c&&n.b!=null){for(e=n.b.length-4;e>=0;e-=2)for(t=0;t<=e;t+=2)(n.b[t]>n.b[t+2]||n.b[t]===n.b[t+2]&&n.b[t+1]>n.b[t+3])&&(i=n.b[t+2],n.b[t+2]=n.b[t],n.b[t]=i,i=n.b[t+3],n.b[t+3]=n.b[t+1],n.b[t+1]=i);n.c=!0}}function fTe(n,e){var t,i,r,c,s,f,h,l,a;for(l=-1,a=0,s=n,f=0,h=s.length;f<h;++f){for(c=s[f],t=new NPn(l==-1?n[0]:n[l],e,(w5(),TO)),i=0;i<c.length;i++)for(r=i+1;r<c.length;r++)kt(c[i],(W(),dt))&&kt(c[r],dt)&&dzn(t,c[i],c[r])>0&&++a;++l}return a}function Hs(n){var e,t;return t=new mo(Xa(n.Rm)),t.a+="@",Be(t,(e=mt(n)>>>0,e.toString(16))),n.Vh()?(t.a+=" (eProxyURI: ",Lc(t,n._h()),n.Kh()&&(t.a+=" eClass: ",Lc(t,n.Kh())),t.a+=")"):n.Kh()&&(t.a+=" (eClass: ",Lc(t,n.Kh()),t.a+=")"),t.a}function $5(n){var e,t,i,r;if(n.e)throw T(new Ar((ll(c_),RK+c_.k+KK)));for(n.d==(ci(),Jf)&&US(n,Kr),t=new M(n.a.a);t.a<t.c.c.length;)e=u(E(t),316),e.g=e.i;for(r=new M(n.a.b);r.a<r.c.c.length;)i=u(E(r),60),i.i=li;return n.b.cf(n),n}function hTe(n,e){var t,i,r,c,s;if(e<2*n.b)throw T(new Gn("The knot vector must have at least two time the dimension elements."));for(n.f=1,r=0;r<n.b;r++)nn(n.e,0);for(s=e+1-2*n.b,t=s,c=1;c<s;c++)nn(n.e,c/t);if(n.d)for(i=0;i<n.b;i++)nn(n.e,1)}function KHn(n,e){var t,i,r,c,s,f,h,l,a;if(l=e,a=u(pC(dD(n.i),l),27),!a)throw r=bl(l,Eh),f="Unable to find elk node for json object '"+r,h=f+"' Panic!",T(new eh(h));c=Sb(l,"edges"),t=new gTn(n,a),WEe(t.a,t.b,c),s=Sb(l,gF),i=new _kn(n),Z7e(i.a,s)}function BHn(n,e,t,i){var r,c,s,f,h;if(i!=null){if(r=n.d[e],r){for(c=r.g,h=r.i,f=0;f<h;++f)if(s=u(c[f],136),s.Bi()==t&&rt(i,s.ld()))return f}}else if(r=n.d[e],r){for(c=r.g,h=r.i,f=0;f<h;++f)if(s=u(c[f],136),x(s.ld())===x(i))return f}return-1}function Tm(n,e){var t,i,r;return t=e==null?Fr(wr(n.f,null)):a6(n.i,e),L(t,241)?(r=u(t,241),r.zi()==null,r):L(t,507)?(i=u(t,2037),r=i.a,r&&(r.yb==null||(e==null?Vc(n.f,null,r):$b(n.i,e,r))),r):null}function lTe(n){ben();var e,t,i,r,c,s,f;if(n==null||(r=n.length,r%2!=0))return null;for(e=iC(n),c=r/2|0,t=F(Ru,s2,28,c,15,1),i=0;i<c;i++){if(s=K9[e[i*2]],s==-1||(f=K9[e[i*2+1]],f==-1))return null;t[i]=(s<<4|f)<<24>>24}return t}function aTe(n,e,t){var i,r,c;if(r=u(Mr(n.i,e),314),!r)if(r=new k$n(n.d,e,t),Ip(n.i,e,r),eZ(e))g1e(n.a,e.c,e.b,r);else switch(c=Wje(e),i=u(Mr(n.p,c),252),c.g){case 1:case 3:r.j=!0,mL(i,e.b,r);break;case 4:case 2:r.k=!0,mL(i,e.c,r)}return r}function dTe(n,e){var t,i,r,c,s,f,h,l,a;for(h=Lh(n.c-n.b&n.a.length-1),l=null,a=null,c=new V6(n);c.a!=c.b;)r=u(xC(c),10),t=(f=u(v(r,(W(),yf)),12),f?f.i:null),i=(s=u(v(r,Es),12),s?s.i:null),(l!=t||a!=i)&&(pHn(h,e),l=t,a=i),Fn(h.c,r);pHn(h,e)}function bTe(n,e,t,i){var r,c,s,f,h,l;if(f=new EE,h=ru(n.e.Dh(),e),r=u(n.g,124),dr(),u(e,69).xk())for(s=0;s<n.i;++s)c=r[s],h.am(c.Lk())&&ve(f,c);else for(s=0;s<n.i;++s)c=r[s],h.am(c.Lk())&&(l=c.md(),ve(f,i?N5(n,e,s,f.i,l):l));return VY(f,t)}function FHn(n,e){var t,i,r,c,s,f,h,l;if(r=n.b[e.p],r>=0)return r;for(c=1,f=new M(e.j);f.a<f.c.c.length;)for(s=u(E(f),12),i=new M(s.g);i.a<i.c.c.length;)t=u(E(i),18),l=t.d.i,e!=l&&(h=FHn(n,l),c=y.Math.max(c,h+1));return f8e(n,e,c),c}function _Hn(n,e){var t,i,r,c,s,f,h,l;if(r=n.b[e.p],r>=0)return r;for(c=1,f=new M(e.j);f.a<f.c.c.length;)for(s=u(E(f),12),i=new M(s.e);i.a<i.c.c.length;)t=u(E(i),18),l=t.c.i,e!=l&&(h=_Hn(n,l),c=y.Math.max(c,h+1));return F9e(n,e,c),c}function HHn(n,e,t){var i,r,c;for(i=1;i<n.c.length;i++){for(c=(Nn(i,n.c.length),u(n.c[i],10)),r=i;r>0&&e.Ne((Nn(r-1,n.c.length),u(n.c[r-1],10)),c)>0;)Go(n,r,(Nn(r-1,n.c.length),u(n.c[r-1],10))),--r;Nn(r,n.c.length),n.c[r]=c}t.a=new de,t.b=new de}function wTe(n,e,t){var i,r,c,s,f,h,l,a;for(a=(i=u(e.e&&e.e(),9),new _o(i,u(xs(i,i.length),9),0)),h=ww(t,"[\\[\\]\\s,]+"),c=h,s=0,f=c.length;s<f;++s)if(r=c[s],fw(r).length!=0){if(l=J_n(n,r),l==null)return null;_s(a,u(l,22))}return a}function gTe(n){var e,t,i,r;for(r=n.length,e=null,i=0;i<r;i++)t=(zn(i,n.length),n.charCodeAt(i)),ih(".*+?{[()|\\^$",wu(t))>=0?(e||(e=new i6,i>0&&Er(e,(Ri(0,i,n.length),n.substr(0,i)))),e.a+="\\",C4(e,t&ui)):e&&C4(e,t&ui);return e?e.a:n}function pTe(n){var e,t,i;for(t=new M(n.a.a.b);t.a<t.c.c.length;)e=u(E(t),86),i=(Jn(0),0),i>0&&(!(hl(n.a.c)&&e.n.d)&&!(vg(n.a.c)&&e.n.b)&&(e.g.d-=y.Math.max(0,i/2-.5)),!(hl(n.a.c)&&e.n.a)&&!(vg(n.a.c)&&e.n.c)&&(e.g.a+=y.Math.max(0,i-1)))}function qHn(n,e,t){var i,r;if((n.c-n.b&n.a.length-1)==2)e==(en(),Xn)||e==Zn?(sC(u(l5(n),15),(Co(),nl)),sC(u(l5(n),15),Sa)):(sC(u(l5(n),15),(Co(),Sa)),sC(u(l5(n),15),nl));else for(r=new V6(n);r.a!=r.b;)i=u(xC(r),15),sC(i,t)}function mTe(n,e){var t,i,r,c,s,f,h;for(r=y4(new $G(n)),f=new xi(r,r.c.length),c=y4(new $G(e)),h=new xi(c,c.c.length),s=null;f.b>0&&h.b>0&&(t=(oe(f.b>0),u(f.a.Xb(f.c=--f.b),27)),i=(oe(h.b>0),u(h.a.Xb(h.c=--h.b),27)),t==i);)s=t;return s}function UHn(n,e,t){var i,r,c,s;GAn(n,e)>GAn(n,t)?(i=uc(t,(en(),Zn)),n.d=i.dc()?0:zN(u(i.Xb(0),12)),s=uc(e,Wn),n.b=s.dc()?0:zN(u(s.Xb(0),12))):(r=uc(t,(en(),Wn)),n.d=r.dc()?0:zN(u(r.Xb(0),12)),c=uc(e,Zn),n.b=c.dc()?0:zN(u(c.Xb(0),12)))}function GHn(n,e){var t,i,r,c;for(t=n.o.a,c=u(u(ot(n.r,e),21),87).Kc();c.Ob();)r=u(c.Pb(),117),r.e.a=t*$(B(r.b.of(bI))),r.e.b=(i=r.b,i.pf((He(),oo))?i.ag()==(en(),Xn)?-i.Mf().b-$(B(i.of(oo))):$(B(i.of(oo))):i.ag()==(en(),Xn)?-i.Mf().b:0)}function vTe(n,e){var t,i,r,c;for(e.Ug("Self-Loop pre-processing",1),i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),10),c8e(t)&&(r=(c=new rBn(t),U(t,(W(),h0),c),qPe(c),c),qt(_r(rc(new Cn(null,new On(r.d,16)),new w2n),new g2n),new p2n),xCe(r));e.Vg()}function kTe(n){var e,t,i,r,c,s,f,h;e=!0,r=null,c=null;n:for(h=new M(n.a);h.a<h.c.c.length;)for(f=u(E(h),10),i=new ie(ce(ji(f).a.Kc(),new En));pe(i);){if(t=u(fe(i),18),r&&r!=f){e=!1;break n}if(r=f,s=t.c.i,c&&c!=s){e=!1;break n}c=s}return e}function yTe(n,e,t){var i,r,c,s,f,h;for(c=-1,f=-1,s=0;s<e.c.length&&(r=(Nn(s,e.c.length),u(e.c[s],339)),!(r.c>n.c));s++)r.a>=n.s&&(c<0&&(c=s),f=s);return h=(n.s+n.c)/2,c>=0&&(i=oPe(n,e,c,f),h=cle((Nn(i,e.c.length),u(e.c[i],339))),aMe(e,i,t)),h}function Te(n,e,t){var i,r,c,s,f,h,l;for(s=(c=new eG,c),IQ(s,(Jn(e),e)),l=(!s.b&&(s.b=new lo((An(),ar),pc,s)),s.b),h=1;h<t.length;h+=2)zk(l,t[h-1],t[h]);for(i=(!n.Ab&&(n.Ab=new q(Ue,n,0,3)),n.Ab),f=0;f<0;++f)r=Rwe(u(N(i,i.i-1),598)),i=r;ve(i,s)}function zHn(n,e,t){var i,r,c;for(jae.call(this,new Z),this.a=e,this.b=t,this.e=n,i=(n.b&&xR(n),n.a),this.d=EOn(i.a,this.a),this.c=EOn(i.b,this.b),g5e(this,this.d,this.c),HEe(this),c=this.e.e.a.ec().Kc();c.Ob();)r=u(c.Pb(),272),r.c.c.length>0&&iAe(this,r)}function Ynn(n,e,t,i,r,c){var s,f,h;if(!r[e.a]){for(r[e.a]=!0,s=i,!s&&(s=new zT),nn(s.e,e),h=c[e.a].Kc();h.Ob();)f=u(h.Pb(),290),!(f.d==t||f.c==t)&&(f.c!=e&&Ynn(n,f.c,e,s,r,c),f.d!=e&&Ynn(n,f.d,e,s,r,c),nn(s.c,f),hi(s.d,f.b));return s}return null}function jTe(n){var e,t,i,r,c,s,f;for(e=0,r=new M(n.e);r.a<r.c.c.length;)i=u(E(r),18),t=Ag(new Cn(null,new On(i.b,16)),new Gwn),t&&++e;for(s=new M(n.g);s.a<s.c.c.length;)c=u(E(s),18),f=Ag(new Cn(null,new On(c.b,16)),new zwn),f&&++e;return e>=2}function ETe(n,e,t,i,r){var c,s,f,h,l,a;for(c=n.c.d.j,s=u(Zo(t,0),8),a=1;a<t.b;a++)l=u(Zo(t,a),8),xt(i,s,i.c.b,i.c),f=ch(tt(new rr(s),l),.5),h=ch(new KD(uY(c)),r),tt(f,h),xt(i,f,i.c.b,i.c),s=l,c=e==0?BC(c):SY(c);Re(i,(oe(t.b!=0),u(t.c.b.c,8)))}function MTe(n){lw();var e,t,i;return t=yt(No,S(C(yr,1),G,95,0,[Zs])),!(kk(NT(t,n))>1||(e=yt(Qs,S(C(yr,1),G,95,0,[xl,Ys])),kk(NT(e,n))>1)||(i=yt(nf,S(C(yr,1),G,95,0,[el,Ts])),kk(NT(i,n))>1))}function Znn(n,e,t){var i,r,c;for(c=new M(n.t);c.a<c.c.c.length;)i=u(E(c),274),i.b.s<0&&i.c>0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&Re(e,i.b));for(r=new M(n.i);r.a<r.c.c.length;)i=u(E(r),274),i.a.s<0&&i.c>0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&Re(t,i.a))}function MS(n){var e,t,i,r,c;if(n.g==null&&(n.d=n.bj(n.f),ve(n,n.d),n.c))return c=n.f,c;if(e=u(n.g[n.i-1],51),r=e.Pb(),n.e=e,t=n.bj(r),t.Ob())n.d=t,ve(n,t);else for(n.d=null;!e.Ob()&&($t(n.g,--n.i,null),n.i!=0);)i=u(n.g[n.i-1],51),e=i;return r}function TTe(n,e){var t,i,r,c,s,f;if(i=e,r=i.Lk(),Pl(n.e,r)){if(r.Si()&&_T(n,r,i.md()))return!1}else for(f=ru(n.e.Dh(),r),t=u(n.g,124),c=0;c<n.i;++c)if(s=t[c],f.am(s.Lk()))return rt(s,i)?!1:(u(Bg(n,c,e),76),!0);return ve(n,e)}function CTe(n,e,t,i){var r,c,s,f;for(r=new Cl(n),Ha(r,(Vn(),Sc)),U(r,(W(),st),e),U(r,F8,i),U(r,(cn(),Ft),(Ai(),qc)),U(r,yf,e.c),U(r,Es,e.d),kqn(e,r),f=y.Math.floor(t/2),s=new M(r.j);s.a<s.c.c.length;)c=u(E(s),12),c.n.b=f;return r}function XHn(n){var e,t,i,r,c,s,f;for(e=0,i=new M(n.a);i.a<i.c.c.length;)for(t=u(E(i),10),c=new ie(ce(Qt(t).a.Kc(),new En));pe(c);)r=u(fe(c),18),n==r.d.i.c&&r.c.j==(en(),Wn)&&(s=Of(r.c).b,f=Of(r.d).b,e=y.Math.max(e,y.Math.abs(f-s)));return e}function VHn(n,e,t){var i,r,c,s,f;for(t.Ug("ELK Force",1),on(un(z(e,(Us(),pon))))||X7((i=new Xv((cb(),new Qd(e))),i)),f=fRn(e),z7e(f),b6e(n,u(v(f,gon),432)),s=FUn(n.a,f),c=s.Kc();c.Ob();)r=u(c.Pb(),235),pIe(n.b,r,t.eh(1/s.gc()));f=nzn(s),hzn(f),t.Vg()}function nen(n,e,t){switch(t.g){case 1:return new V(e.a,y.Math.min(n.d.b,e.b));case 2:return new V(y.Math.max(n.c.a,e.a),e.b);case 3:return new V(e.a,y.Math.max(n.c.b,e.b));case 4:return new V(y.Math.min(e.a,n.d.a),e.b)}return new V(e.a,e.b)}function cy(n){var e,t,i;for(e=Lh(1+(!n.c&&(n.c=new q(Qu,n,9,9)),n.c).i),nn(e,(!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d)),i=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));i.e!=i.i.gc();)t=u(ue(i),123),nn(e,(!t.d&&(t.d=new Dn(Vt,t,8,5)),t.d));return Pe(e),new S6(e)}function Sl(n){var e,t,i;for(e=Lh(1+(!n.c&&(n.c=new q(Qu,n,9,9)),n.c).i),nn(e,(!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e)),i=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));i.e!=i.i.gc();)t=u(ue(i),123),nn(e,(!t.e&&(t.e=new Dn(Vt,t,7,4)),t.e));return Pe(e),new S6(e)}function STe(n){var e,t,i,r;if(n==null)return null;if(i=Rc(n,!0),r=nj.length,Sn(i.substr(i.length-r,r),nj)){if(t=i.length,t==4){if(e=(zn(0,i.length),i.charCodeAt(0)),e==43)return sbn;if(e==45)return mse}else if(t==3)return sbn}return sw(i)}function PTe(n,e){var t,i,r,c,s;if(e.Ug("Breaking Point Processor",1),lLe(n),on(un(v(n,(cn(),Thn))))){for(r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),t=0,s=new M(i.a);s.a<s.c.c.length;)c=u(E(s),10),c.p=t++;uOe(n),aqn(n,!0),aqn(n,!1)}e.Vg()}function ITe(n,e,t,i){var r,c,s,f,h,l,a,d,g;for(d=i?(en(),Wn):(en(),Zn),r=!1,h=e[t],l=0,a=h.length;l<a;++l)f=h[l],!Ep(u(v(f,(cn(),Ft)),101))&&(s=f.e,g=!uc(f,d).dc()&&!!s,g&&(c=XZ(s),n.b=new WZ(c,i?0:c.length-1)),r=r|gSe(n,f,d,g));return r}function WHn(n,e,t,i){var r,c,s;if(s=RZ(e,t),Fn(i.c,e),n.j[s.p]==-1||n.j[s.p]==2||n.a[e.p])return i;for(n.j[s.p]=-1,c=new ie(ce(Ml(s).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),!(!(!fr(r)&&!(!fr(r)&&r.c.i.c==r.d.i.c))||r==e))return WHn(n,r,s,i);return i}function OTe(n){var e,t,i,r;for(e=0,t=0,r=new M(n.j);r.a<r.c.c.length;)if(i=u(E(r),12),e=Se(nr(e,BNn(ut(new Cn(null,new On(i.e,16)),new w3n)))),t=Se(nr(t,BNn(ut(new Cn(null,new On(i.g,16)),new g3n)))),e>1||t>1)return 2;return e+t==1?2:0}function to(n,e){var t,i,r,c,s,f;return c=n.a*NK+n.b*1502,f=n.b*NK+11,t=y.Math.floor(f*Oy),c+=t,f-=t*Etn,c%=Etn,n.a=c,n.b=f,e<=24?y.Math.floor(n.a*Nun[e]):(r=n.a*(1<<e-24),s=y.Math.floor(n.b*Dun[e]),i=r+s,i>=2147483648&&(i-=4294967296),i)}function JHn(n,e,t){var i,r,c,s,f,h,l;for(c=new Z,l=new Mt,s=new Mt,XIe(n,l,s,e),TAe(n,l,s,e,t),h=new M(n);h.a<h.c.c.length;)for(f=u(E(h),118),r=new M(f.k);r.a<r.c.c.length;)i=u(E(r),132),(!e||i.c==(af(),Ea))&&f.g>i.b.g&&Fn(c.c,i);return c}function ATe(n,e,t){var i,r,c,s,f,h;for(f=n.c,s=(t.q?t.q:(Ln(),Ln(),Wh)).vc().Kc();s.Ob();)c=u(s.Pb(),44),i=!s4(ut(new Cn(null,new On(f,16)),new Z3(new uTn(e,c)))).Bd((Va(),v3)),i&&(h=c.md(),L(h,4)&&(r=rZ(h),r!=null&&(h=r)),e.qf(u(c.ld(),149),h))}function LTe(n,e,t){var i,r;if(H7(n.b),hf(n.b,($k(),XO),(s6(),Hj)),hf(n.b,VO,e.g),hf(n.b,WO,e.a),n.a=gy(n.b,e),t.Ug("Compaction by shrinking a tree",n.a.c.length),e.i.c.length>1)for(r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),47),i.Kf(e,t.eh(1));t.Vg()}function een(n,e,t){var i,r,c;if(c=Qg((Lu(),zi),n.Dh(),e),c){if(dr(),!u(c,69).xk()&&(c=$p(Nr(zi,c)),!c))throw T(new Gn(ba+e.xe()+b8));r=(i=n.Ih(c),u(i>=0?n.Lh(i,!0,!0):Hb(n,c,!0),160)),u(r,220).Xl(e,t)}else throw T(new Gn(ba+e.xe()+b8))}function TS(n,e){var t,i,r,c,s;if(e){for(c=L(n.Cb,90)||L(n.Cb,102),s=!c&&L(n.Cb,331),i=new ne((!e.a&&(e.a=new K6(e,jr,e)),e.a));i.e!=i.i.gc();)if(t=u(ue(i),89),r=KS(t),c?L(r,90):s?L(r,156):r)return r;return c?(An(),Os):(An(),Zf)}else return null}function NTe(n,e){var t,i,r,c;for(e.Ug("Resize child graph to fit parent.",1),i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),30),hi(n.a,t.a),t.a.c.length=0;for(c=new M(n.a);c.a<c.c.c.length;)r=u(E(c),10),$i(r,null);n.b.c.length=0,ZCe(n),n.e&&JPe(n.e,n),e.Vg()}function DTe(n,e){var t,i,r,c,s;for(e.Ug("Edge joining",1),t=on(un(v(n,(cn(),AH)))),r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=new xi(i.a,0);s.b<s.d.gc();)c=(oe(s.b<s.d.gc()),u(s.d.Xb(s.c=s.b++),10)),c.k==(Vn(),Ti)&&(XR(c,t),bo(s));e.Vg()}function $Te(n,e){var t,i,r,c,s;for(t=new Z,r=rc(new Cn(null,new On(n,16)),new D3n),c=rc(new Cn(null,new On(n,16)),new $3n),s=G4e(f4e(U0(bCe(S(C(dDe,1),Kn,848,0,[r,c])),new x3n))),i=1;i<s.length;i++)s[i]-s[i-1]>=2*e&&nn(t,new FN(s[i-1]+e,s[i]-e));return t}function xTe(n,e,t){var i,r,c,s,f,h,l,a;if(t)for(c=t.a.length,i=new Qa(c),f=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),r=N4(t,s.a),r&&(h=a3e(n,(l=(K1(),a=new nz,a),e&&ten(l,e),l),r),X4(h,bl(r,Eh)),gS(r,h),Cnn(r,h),_$(n,r,h))}function CS(n){var e,t,i,r,c,s;if(!n.j){if(s=new Mvn,e=D9,c=e.a.zc(n,e),c==null){for(i=new ne(Hr(n));i.e!=i.i.gc();)t=u(ue(i),29),r=CS(t),Kt(s,r),ve(s,t);e.a.Bc(n)!=null}ew(s),n.j=new pg((u(N(H((G1(),Hn).o),11),19),s.i),s.g),Zu(n).b&=-33}return n.j}function RTe(n){var e,t,i,r;if(n==null)return null;if(i=Rc(n,!0),r=nj.length,Sn(i.substr(i.length-r,r),nj)){if(t=i.length,t==4){if(e=(zn(0,i.length),i.charCodeAt(0)),e==43)return fbn;if(e==45)return vse}else if(t==3)return fbn}return new qG(i)}function KTe(n){var e,t,i;return t=n.l,t&t-1||(i=n.m,i&i-1)||(e=n.h,e&e-1)||e==0&&i==0&&t==0?-1:e==0&&i==0&&t!=0?vQ(t):e==0&&i!=0&&t==0?vQ(i)+22:e!=0&&i==0&&t==0?vQ(e)+44:-1}function zg(n,e){var t,i,r,c,s;for(r=e.a&n.f,c=null,i=n.b[r];;i=i.b){if(i==e){c?c.b=e.b:n.b[r]=e.b;break}c=i}for(s=e.f&n.f,c=null,t=n.c[s];;t=t.d){if(t==e){c?c.d=e.d:n.c[s]=e.d;break}c=t}e.e?e.e.c=e.c:n.a=e.c,e.c?e.c.e=e.e:n.e=e.e,--n.i,++n.g}function BTe(n,e){var t;e.d?e.d.b=e.b:n.a=e.b,e.b?e.b.d=e.d:n.e=e.d,!e.e&&!e.c?(t=u(as(u(Kp(n.b,e.a),260)),260),t.a=0,++n.c):(t=u(as(u(ee(n.b,e.a),260)),260),--t.a,e.e?e.e.c=e.c:t.b=u(as(e.c),511),e.c?e.c.e=e.e:t.c=u(as(e.e),511)),--n.d}function FTe(n){var e,t,i,r,c,s,f,h,l,a;for(t=n.o,e=n.p,s=et,r=Wi,f=et,c=Wi,l=0;l<t;++l)for(a=0;a<e;++a)Fg(n,l,a)&&(s=y.Math.min(s,l),r=y.Math.max(r,l),f=y.Math.min(f,a),c=y.Math.max(c,a));return h=r-s+1,i=c-f+1,new COn(Y(s),Y(f),Y(h),Y(i))}function pR(n,e){var t,i,r,c;for(c=new xi(n,0),t=(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),148));c.b<c.d.gc();)i=(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),148)),r=new UV(i.c,t.d,e),oe(c.b>0),c.a.Xb(c.c=--c.b),B0(c,r),oe(c.b<c.d.gc()),c.d.Xb(c.c=c.b++),r.a=!1,t=i}function QHn(n){var e,t,i,r,c,s;for(r=u(v(n,(W(),tO)),12),s=new M(n.j);s.a<s.c.c.length;){for(c=u(E(s),12),i=new M(c.g);i.a<i.c.c.length;)return e=u(E(i),18),Oi(e,r),c;for(t=new M(c.e);t.a<t.c.c.length;)return e=u(E(t),18),Zi(e,r),c}return null}function YHn(n,e,t){var i,r,c,s,f,h;for(h=u(x0(n.a,e),17).a,t?VZ(n.a,Y(h+1),e):VZ(n.a,Y(h-1),e),s=new rh,r=new ie(ce((t?Qt(e):ji(e)).a.Kc(),new En));pe(r);)i=u(fe(r),18),t?c=i.d.i:c=i.c.i,x(x0(n.a,c))===x(x0(n.a,e))&&(f=s.a.zc(c,s),f==null);return s}function _Te(n,e,t){var i,r;i=vc(t.q.getTime()),Ec(i,0)<0?(r=d1-Se(Kk(n1(i),d1)),r==d1&&(r=0)):r=Se(Kk(i,d1)),e==1?(r=y.Math.min((r+50)/100|0,9),z1(n,48+r&ui)):e==2?(r=y.Math.min((r+5)/10|0,99),Kh(n,r,2)):(Kh(n,r,3),e>3&&Kh(n,0,e-3))}function HTe(n){var e,t,i,r;return x(v(n,(cn(),Kw)))===x((jl(),T1))?!n.e&&x(v(n,Mj))!==x((Z4(),mj)):(i=u(v(n,kH),299),r=on(un(v(n,yH)))||x(v(n,U8))===x((c5(),pj)),e=u(v(n,Hfn),17).a,t=n.a.c.length,!r&&i!=(Z4(),mj)&&(e==0||e>t))}function qTe(n){var e,t;for(t=0;t<n.c.length&&!(UPn((Nn(t,n.c.length),u(n.c[t],113)))>0);t++);if(t>0&&t<n.c.length-1)return t;for(e=0;e<n.c.length&&!(UPn((Nn(e,n.c.length),u(n.c[e],113)))>0);e++);return e>0&&t<n.c.length-1?e:n.c.length/2|0}function ZHn(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=6&&e){if(mm(n,e))throw T(new Gn(w8+dHn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?TZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,6,i)),i=fV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,6,e,e))}function SS(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(mm(n,e))throw T(new Gn(w8+nGn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?IZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,12,i)),i=hV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,3,e,e))}function ten(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=9&&e){if(mm(n,e))throw T(new Gn(w8+Yqn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?SZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,9,i)),i=lV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,9,e,e))}function Cm(n){var e,t,i,r,c;if(i=gs(n),c=n.j,c==null&&i)return n.Jk()?null:i.ik();if(L(i,156)){if(t=i.jk(),t&&(r=t.wi(),r!=n.i)){if(e=u(i,156),e.nk())try{n.g=r.ti(e,c)}catch(s){if(s=Ot(s),L(s,82))n.g=null;else throw T(s)}n.i=r}return n.g}return null}function nqn(n){var e;return e=new Z,nn(e,new bp(new V(n.c,n.d),new V(n.c+n.b,n.d))),nn(e,new bp(new V(n.c,n.d),new V(n.c,n.d+n.a))),nn(e,new bp(new V(n.c+n.b,n.d+n.a),new V(n.c+n.b,n.d))),nn(e,new bp(new V(n.c+n.b,n.d+n.a),new V(n.c,n.d+n.a))),e}function UTe(n){var e,t,i;if(n==null)return gu;try{return Jr(n)}catch(r){if(r=Ot(r),L(r,103))return e=r,i=Xa(wo(n))+"@"+(t=(fl(),iZ(n)>>>0),t.toString(16)),r9e(qve(),(a4(),"Exception during lenientFormat for "+i),e),"<"+i+" threw "+Xa(e.Rm)+">";throw T(r)}}function GTe(n,e,t){var i,r,c;for(c=e.a.ec().Kc();c.Ob();)r=u(c.Pb(),74),i=u(ee(n.b,r),272),!i&&(St(Fh(r))==St(ra(r))?LCe(n,r,t):Fh(r)==St(ra(r))?ee(n.c,r)==null&&ee(n.b,ra(r))!=null&&LGn(n,r,t,!1):ee(n.d,r)==null&&ee(n.b,Fh(r))!=null&&LGn(n,r,t,!0))}function zTe(n,e){var t,i,r,c,s,f,h;for(r=n.Kc();r.Ob();)for(i=u(r.Pb(),10),f=new Ic,ic(f,i),gi(f,(en(),Zn)),U(f,(W(),uO),(_n(),!0)),s=e.Kc();s.Ob();)c=u(s.Pb(),10),h=new Ic,ic(h,c),gi(h,Wn),U(h,uO,!0),t=new Eb,U(t,uO,!0),Zi(t,f),Oi(t,h)}function XTe(n,e,t,i){var r,c,s,f;r=KKn(n,e,t),c=KKn(n,t,e),s=u(ee(n.c,e),118),f=u(ee(n.c,t),118),r<c?new ed((af(),zw),s,f,c-r):c<r?new ed((af(),zw),f,s,r-c):(r!=0||!(!e.i||!t.i)&&i[e.i.c][t.i.c])&&(new ed((af(),zw),s,f,0),new ed(zw,f,s,0))}function eqn(n,e){var t,i,r,c,s,f,h;for(r=0,s=new M(e.a);s.a<s.c.c.length;)for(c=u(E(s),10),r+=c.o.b+c.d.a+c.d.d+n.e,i=new ie(ce(ji(c).a.Kc(),new En));pe(i);)t=u(fe(i),18),t.c.i.k==(Vn(),_c)&&(h=t.c.i,f=u(v(h,(W(),st)),10),r+=f.o.b+f.d.a+f.d.d);return r}function x5(){x5=R,D2=new b7("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),L3=new b7("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),d9=new b7("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),a9=new b7("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),_j=new b7("WHOLE_DRAWING",4)}function VTe(n,e){if(L(e,207))return m5e(n,u(e,27));if(L(e,193))return T5e(n,u(e,123));if(L(e,366))return wge(n,u(e,135));if(L(e,326))return LIe(n,u(e,74));if(e)return null;throw T(new Gn(Ncn+ca(new Fu(S(C(ki,1),Kn,1,5,[e])))))}function WTe(n){var e,t,i,r,c,s,f;for(c=new Mt,r=new M(n.d.a);r.a<r.c.c.length;)i=u(E(r),125),i.b.a.c.length==0&&xt(c,i,c.c.b,c.c);if(c.b>1)for(e=hb((t=new za,++n.b,t),n.d),f=ge(c,0);f.b!=f.d.c;)s=u(be(f),125),qs(Ns(Ls(Ds(As(new hs,1),0),e),s))}function JTe(n,e,t){var i,r,c,s,f;for(t.Ug("Breaking Point Removing",1),n.a=u(v(e,(cn(),$l)),223),c=new M(e.b);c.a<c.c.c.length;)for(r=u(E(c),30),f=new M(Cb(r.a));f.a<f.c.c.length;)s=u(E(f),10),r$n(s)&&(i=u(v(s,(W(),o0)),313),!i.d&&GGn(n,i));t.Vg()}function PS(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=11&&e){if(mm(n,e))throw T(new Gn(w8+jen(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?OZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,10,i)),i=kV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,11,e,e))}function QTe(n){var e,t,i,r;for(i=new sd(new Ua(n.b).a);i.b;)t=Nb(i),r=u(t.ld(),12),e=u(t.md(),10),U(e,(W(),st),r),U(r,Xu,e),U(r,yj,(_n(),!0)),gi(r,u(v(e,gc),64)),v(e,gc),U(r.i,(cn(),Ft),(Ai(),Fv)),u(v(Hi(r.i),Hc),21).Fc((pr(),yv))}function YTe(n,e,t){var i,r,c,s,f,h;if(c=0,s=0,n.c)for(h=new M(n.d.i.j);h.a<h.c.c.length;)f=u(E(h),12),c+=f.e.c.length;else c=1;if(n.d)for(h=new M(n.c.i.j);h.a<h.c.c.length;)f=u(E(h),12),s+=f.g.c.length;else s=1;return r=wi(K7(s-c)),i=(t+e)/2+(t-e)*(.4*r),i}function ZTe(n){ow();var e,t;if(n.Hc((en(),sc)))throw T(new Gn("Port sides must not contain UNDEFINED"));switch(n.gc()){case 1:return gj;case 2:return e=n.Hc(Zn)&&n.Hc(Wn),t=n.Hc(Xn)&&n.Hc(ae),e||t?XI:zI;case 3:return GI;case 4:return UI;default:return null}}function mR(n,e,t){return Vg(),W4(n,e)&&W4(n,t)?!1:WR(new V(n.c,n.d),new V(n.c+n.b,n.d),e,t)||WR(new V(n.c+n.b,n.d),new V(n.c+n.b,n.d+n.a),e,t)||WR(new V(n.c+n.b,n.d+n.a),new V(n.c,n.d+n.a),e,t)||WR(new V(n.c,n.d+n.a),new V(n.c,n.d),e,t)}function ien(n,e){var t,i,r,c;if(!n.dc()){for(t=0,i=n.gc();t<i;++t)if(c=Ae(n.Xb(t)),c==null?e==null:Sn(c.substr(0,3),"!##")?e!=null&&(r=e.length,!Sn(c.substr(c.length-r,r),e)||c.length!=e.length+3)&&!Sn(Pd,e):Sn(c,OF)&&!Sn(Pd,e)||Sn(c,e))return!0}return!1}function nCe(n,e,t,i){var r,c,s,f,h,l;for(s=n.j.c.length,h=F(gDe,Dtn,314,s,0,1),f=0;f<s;f++)c=u(sn(n.j,f),12),c.p=f,h[f]=lMe(THn(c),t,i);for(TCe(n,h,t,e,i),l=new de,r=0;r<h.length;r++)h[r]&&Ve(l,u(sn(n.j,r),12),h[r]);l.f.c+l.i.c!=0&&(U(n,(W(),B8),l),Tje(n,h))}function eCe(n,e){var t,i,r,c,s,f;for(e.Ug("Partition postprocessing",1),i=new M(n.b);i.a<i.c.c.length;)for(t=u(E(i),30),c=new M(t.a);c.a<c.c.c.length;)for(r=u(E(c),10),f=new M(r.j);f.a<f.c.c.length;)s=u(E(f),12),on(un(v(s,(W(),uO))))&&q6(f);e.Vg()}function tCe(n,e,t){var i,r,c;for(r=new M(n.a.b);r.a<r.c.c.length;)if(i=u(E(r),60),c=Ig(i),c&&c.k==(Vn(),Zt))switch(u(v(c,(W(),gc)),64).g){case 4:c.n.a=e.a;break;case 2:c.n.a=t.a-(c.o.a+c.d.c);break;case 1:c.n.b=e.b;break;case 3:c.n.b=t.b-(c.o.b+c.d.a)}}function iCe(n,e,t){var i,r,c;for(t.Ug("Processor determine the height for each level",1),n.a=e.b.b==0?1:e.b.b,r=null,i=ge(e.b,0);!r&&i.b!=i.d.c;)c=u(be(i),40),on(un(v(c,(pt(),Ta))))&&(r=c);r&&UUn(n,Af(S(C(DO,1),AP,40,0,[r])),t,u(v(e,(lc(),v0)),88)),t.Vg()}function rCe(n){var e,t,i,r,c,s;for(i=(K1(),c=new Yv,c),uy(i,n),t=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));t.e!=t.i.gc();)e=u(ue(t),27),s=(r=new Yv,r),PS(s,i),kg(s,e.g,e.f),X4(s,e.k),Bo(s,e.i,e.j),ve((!i.a&&(i.a=new q(Ye,i,10,11)),i.a),s),uy(s,e);return i}function cCe(n,e,t){var i,r,c,s,f;return r=u(z(e,(mS(),wan)),17),!r&&(r=Y(0)),c=u(z(t,wan),17),!c&&(c=Y(0)),r.a>c.a?-1:r.a<c.a?1:n.a&&(i=bt(e.j,t.j),i!=0||(i=bt(e.i,t.i),i!=0))?i:(s=e.g*e.f,f=t.g*t.f,bt(s,f))}function uCe(n,e){var t,i,r,c,s,f,h,l,a,d;if(++n.e,h=n.d==null?0:n.d.length,e>h){for(a=n.d,n.d=F(Ddn,Hcn,66,2*h+4,0,1),c=0;c<h;++c)if(l=a[c],l)for(i=l.g,d=l.i,f=0;f<d;++f)r=u(i[f],136),s=aV(n,r.Bi()),t=n.d[s],!t&&(t=n.d[s]=n.dk()),t.Fc(r);return!0}else return!1}function oCe(n,e,t){var i,r,c,s,f,h;if(r=t,c=r.Lk(),Pl(n.e,c)){if(c.Si()){for(i=u(n.g,124),s=0;s<n.i;++s)if(f=i[s],rt(f,r)&&s!=e)throw T(new Gn(Vy))}}else for(h=ru(n.e.Dh(),c),i=u(n.g,124),s=0;s<n.i;++s)if(f=i[s],h.am(f.Lk()))throw T(new Gn(Zy));v5(n,e,t)}function tqn(n,e){var t,i,r,c,s,f;for(t=u(v(e,(W(),Dl)),21),s=u(ot((YR(),wt),t),21),f=u(ot(qe,t),21),c=s.Kc();c.Ob();)if(i=u(c.Pb(),21),!u(ot(n.b,i),15).dc())return!1;for(r=f.Kc();r.Ob();)if(i=u(r.Pb(),21),!u(ot(n.b,i),15).dc())return!1;return!0}function ren(n,e){var t,i,r,c,s,f,h,l,a;if(n.a.c.length==1)return c_n(u(sn(n.a,0),172),e);for(s=i5e(n),h=0,l=n.d,c=s,a=n.d,f=(l-c)/2+c;c+1<l;){for(h=0,i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),172),h+=(r=G5(t,f,!1),r.a);h<e?(a=f,l=f):c=f,f=(l-c)/2+c}return a}function uy(n,e){var t,i,r,c,s;if(!e)return n;if(L(e,342))for(r=u(e,342),c=(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),n.o),i=r.gh().c.Kc();i.e!=i.i.gc();)t=u(i.Yj(),44),s=t.md(),zk(c,u(t.ld(),149),s);else!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),hxn(n.o,e.nf());return n}function sCe(n){var e,t,i,r,c;return isNaN(n)?(B4(),aun):n<-9223372036854776e3?(B4(),bQn):n>=9223372036854776e3?(B4(),hun):(r=!1,n<0&&(r=!0,n=-n),i=0,n>=vd&&(i=wi(n/vd),n-=i*vd),t=0,n>=o3&&(t=wi(n/o3),n-=t*o3),e=wi(n),c=Yc(e,t,i),r&&H$(c),c)}function fCe(n){var e,t,i,r,c;if(c=new Z,nu(n.b,new P9n(c)),n.b.c.length=0,c.c.length!=0){for(e=(Nn(0,c.c.length),u(c.c[0],82)),t=1,i=c.c.length;t<i;++t)r=(Nn(t,c.c.length),u(c.c[t],82)),r!=e&&$ye(e,r);if(L(e,63))throw T(u(e,63));if(L(e,296))throw T(u(e,296))}}function hCe(n,e){var t,i,r,c;for(t=!e||!n.u.Hc((zu(),Rl)),c=0,r=new M(n.e.Xf());r.a<r.c.c.length;){if(i=u(E(r),852),i.ag()==(en(),sc))throw T(new Gn("Label and node size calculator can only be used with ports that have port sides assigned."));i.Qf(c++),Y6e(n,i,t)}}function cen(n){var e,t,i,r,c;for(t=new M(n.a.a);t.a<t.c.c.length;){for(e=u(E(t),316),e.j=null,c=e.a.a.ec().Kc();c.Ob();)i=u(c.Pb(),60),ff(i.b),(!e.j||i.d.c<e.j.d.c)&&(e.j=i);for(r=e.a.a.ec().Kc();r.Ob();)i=u(r.Pb(),60),i.b.a=i.d.c-e.j.d.c,i.b.b=i.d.d-e.j.d.d}return n}function IS(n){var e,t,i,r,c;for(t=new M(n.a.a);t.a<t.c.c.length;){for(e=u(E(t),194),e.f=null,c=e.a.a.ec().Kc();c.Ob();)i=u(c.Pb(),86),ff(i.e),(!e.f||i.g.c<e.f.g.c)&&(e.f=i);for(r=e.a.a.ec().Kc();r.Ob();)i=u(r.Pb(),86),i.e.a=i.g.c-e.f.g.c,i.e.b=i.g.d-e.f.g.d}return n}function lCe(n){var e,t,i;return t=u(n.a,17).a,i=u(n.b,17).a,e=y.Math.max(y.Math.abs(t),y.Math.abs(i)),t<e&&i==-e?new bi(Y(t+1),Y(i)):t==e&&i<e?new bi(Y(t),Y(i+1)):t>=-e&&i==e?new bi(Y(t-1),Y(i)):new bi(Y(t),Y(i-1))}function iqn(){return tr(),S(C(yDe,1),G,81,0,[Qon,Von,b2,N_,gsn,OI,FI,Nw,bsn,csn,asn,Lw,wsn,tsn,psn,Hon,DI,D_,PI,RI,vsn,xI,qon,dsn,ksn,KI,msn,II,Zon,hsn,fsn,_I,zon,SI,LI,Gon,hv,osn,isn,lsn,N8,Won,Xon,ssn,rsn,NI,BI,Uon,$I,usn,AI,nsn,Yon,bj,CI,esn,Jon])}function aCe(n,e,t){n.d=0,n.b=0,e.k==(Vn(),_c)&&t.k==_c&&u(v(e,(W(),st)),10)==u(v(t,st),10)&&(s$(e).j==(en(),Xn)?UHn(n,e,t):UHn(n,t,e)),e.k==_c&&t.k==Ti?s$(e).j==(en(),Xn)?n.d=1:n.b=1:t.k==_c&&e.k==Ti&&(s$(t).j==(en(),Xn)?n.b=1:n.d=1),J9e(n,e,t)}function dCe(n){var e,t,i,r,c,s,f,h,l,a,d;return d=nnn(n),e=n.a,h=e!=null,h&&j4(d,"category",n.a),r=Z9(new qa(n.d)),s=!r,s&&(l=new _a,bf(d,"knownOptions",l),t=new fyn(l),qi(new qa(n.d),t)),c=Z9(n.g),f=!c,f&&(a=new _a,bf(d,"supportedFeatures",a),i=new hyn(a),qi(n.g,i)),d}function bCe(n){var e,t,i,r,c,s,f,h,l;for(i=!1,e=336,t=0,c=new zSn(n.length),f=n,h=0,l=f.length;h<l;++h)s=f[h],i=i|(ta(s),!1),r=(X1(s),s.a),nn(c.a,Pe(r)),e&=r.yd(),t=L6e(t,r.zd());return u(u(_In(new Cn(null,nR(new On((mb(),JY(c.a)),16),new N1,e,t)),new e9n(n)),687),848)}function wCe(n,e){var t;n.d&&(e.c!=n.e.c||cve(n.e.b,e.b))&&(nn(n.f,n.d),n.a=n.d.c+n.d.b,n.d=null,n.e=null),Ole(e.b)?n.c=e:n.b=e,(e.b==(nm(),r0)&&!e.a||e.b==Iw&&e.a||e.b==d2&&e.a||e.b==Ow&&!e.a)&&n.c&&n.b&&(t=new Ho(n.a,n.c.d,e.c-n.a,n.b.d-n.c.d),n.d=t,n.e=e)}function R5(n){var e;if(vjn.call(this),this.i=new jmn,this.g=n,this.f=u(n.e&&n.e(),9).length,this.f==0)throw T(new Gn("There must be at least one phase in the phase enumeration."));this.c=(e=u(of(this.g),9),new _o(e,u(xs(e,e.length),9),0)),this.a=new ii,this.b=new de}function uen(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=7&&e){if(mm(n,e))throw T(new Gn(w8+h_n(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?CZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=u(e,54).Rh(n,1,oE,i)),i=dW(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,7,e,e))}function rqn(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(mm(n,e))throw T(new Gn(w8+sKn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?PZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=u(e,54).Rh(n,0,fE,i)),i=bW(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,3,e,e))}function vR(n,e){Sm();var t,i,r,c,s,f,h,l,a;return e.d>n.d&&(f=n,n=e,e=f),e.d<63?tSe(n,e):(s=(n.d&-2)<<4,l=NJ(n,s),a=NJ(e,s),i=BR(n,Rp(l,s)),r=BR(e,Rp(a,s)),h=vR(l,a),t=vR(i,r),c=vR(BR(l,i),BR(r,a)),c=zR(zR(c,h),t),c=Rp(c,s),h=Rp(h,s<<1),zR(zR(h,c),t))}function a1(){a1=R,$H=new dg(sVn,0),Phn=new dg("LONGEST_PATH",1),Ihn=new dg("LONGEST_PATH_SOURCE",2),DH=new dg("COFFMAN_GRAHAM",3),Shn=new dg(sB,4),Ohn=new dg("STRETCH_WIDTH",5),MO=new dg("MIN_WIDTH",6),Iv=new dg("BF_MODEL_ORDER",7),Ov=new dg("DF_MODEL_ORDER",8)}function gCe(n,e,t){var i,r,c,s,f;for(s=g5(n,t),f=F(Qh,b1,10,e.length,0,1),i=0,c=s.Kc();c.Ob();)r=u(c.Pb(),12),on(un(v(r,(W(),yj))))&&(f[i++]=u(v(r,Xu),10));if(i<e.length)throw T(new Ar("Expected "+e.length+" hierarchical ports, but found only "+i+"."));return f}function pCe(n,e){var t,i,r,c,s,f;if(!n.tb){for(c=(!n.rb&&(n.rb=new H0(n,Mf,n)),n.rb),f=new ap(c.i),r=new ne(c);r.e!=r.i.gc();)i=u(ue(r),142),s=i.xe(),t=u(s==null?Vc(f.f,null,i):$b(f.i,s,i),142),t&&(s==null?Vc(f.f,null,t):$b(f.i,s,t));n.tb=f}return u(Dc(n.tb,e),142)}function oy(n,e){var t,i,r,c,s;if((n.i==null&&bh(n),n.i).length,!n.p){for(s=new ap((3*n.g.i/2|0)+1),r=new yp(n.g);r.e!=r.i.gc();)i=u(Tx(r),179),c=i.xe(),t=u(c==null?Vc(s.f,null,i):$b(s.i,c,i),179),t&&(c==null?Vc(s.f,null,t):$b(s.i,c,t));n.p=s}return u(Dc(n.p,e),179)}function oen(n,e,t,i,r){var c,s,f,h,l;for(G8e(i+OT(t,t.ie()),r),nOn(e,l8e(t)),c=t.f,c&&oen(n,e,c,"Caused by: ",!1),f=(t.k==null&&(t.k=F(zF,J,82,0,0,1)),t.k),h=0,l=f.length;h<l;++h)s=f[h],oen(n,e,s,"Suppressed: ",!1);console.groupEnd!=null&&console.groupEnd.call(console)}function sy(n,e,t,i){var r,c,s,f,h;for(h=e.e,f=h.length,s=e.q.ug(h,t?0:f-1,t),r=h[t?0:f-1],s=s|Gqn(n,r,t,i),c=t?1:f-2;t?c<f:c>=0;c+=t?1:-1)s=s|e.c.lg(h,c,t,i&&!on(un(v(e.j,(W(),ka))))&&!on(un(v(e.j,(W(),j2))))),s=s|e.q.ug(h,c,t),s=s|Gqn(n,h[c],t,i);return fi(n.c,e),s}function OS(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(a=MLn(n.j),d=0,g=a.length;d<g;++d){if(l=a[d],t==(gr(),Vu)||t==Q8)for(h=hh(l.g),r=h,c=0,s=r.length;c<s;++c)i=r[c],Mje(e,i)&&Ub(i,!0);if(t==Jc||t==Q8)for(f=hh(l.e),r=f,c=0,s=r.length;c<s;++c)i=r[c],Eje(e,i)&&Ub(i,!0)}}function mCe(n){var e,t;switch(e=null,t=null,xke(n).g){case 1:e=(en(),Zn),t=Wn;break;case 2:e=(en(),ae),t=Xn;break;case 3:e=(en(),Wn),t=Zn;break;case 4:e=(en(),Xn),t=ae}wG(n,u(ho(Sp(u(ot(n.k,e),15).Oc(),w2)),113)),bG(n,u(ho(_0(u(ot(n.k,t),15).Oc(),w2)),113))}function vCe(n){var e,t,i,r,c,s;if(r=u(sn(n.j,0),12),r.e.c.length+r.g.c.length==0)n.n.a=0;else{for(s=0,i=$h(Eo(S(C(Ao,1),Kn,20,0,[new e4(r),new ip(r)])));pe(i);)t=u(fe(i),12),s+=t.i.n.a+t.n.a+t.a.a;e=u(v(n,(cn(),b0)),8),c=e?e.a:0,n.n.a=s/(r.e.c.length+r.g.c.length)-c}}function cqn(n,e){var t,i,r;for(i=new M(e.a);i.a<i.c.c.length;)t=u(E(i),225),YN(u(t.b,68),mi(Fi(u(e.b,68).c),u(e.b,68).a)),r=MUn(u(e.b,68).b,u(t.b,68).b),r>1&&(n.a=!0),W0e(u(t.b,68),tt(Fi(u(e.b,68).c),ch(mi(Fi(u(t.b,68).a),u(e.b,68).a),r))),AAn(n,e),cqn(n,t)}function uqn(n){var e,t,i,r,c,s,f;for(c=new M(n.a.a);c.a<c.c.c.length;)i=u(E(c),194),i.e=0,i.d.a.$b();for(r=new M(n.a.a);r.a<r.c.c.length;)for(i=u(E(r),194),t=i.a.a.ec().Kc();t.Ob();)for(e=u(t.Pb(),86),f=e.f.Kc();f.Ob();)s=u(f.Pb(),86),s.d!=i&&(fi(i.d,s),++s.d.e)}function kCe(n){var e,t,i,r,c,s,f,h;for(h=n.j.c.length,t=0,e=h,r=2*h,f=new M(n.j);f.a<f.c.c.length;)switch(s=u(E(f),12),s.j.g){case 2:case 4:s.p=-1;break;case 1:case 3:i=s.e.c.length,c=s.g.c.length,i>0&&c>0?s.p=e++:i>0?s.p=t++:c>0?s.p=r++:s.p=t++}Ln(),Yt(n.j,new _gn)}function yCe(n){var e,t;t=null,e=u(sn(n.g,0),18);do{if(t=e.d.i,kt(t,(W(),Es)))return u(v(t,Es),12).i;if(t.k!=(Vn(),zt)&&pe(new ie(ce(Qt(t).a.Kc(),new En))))e=u(fe(new ie(ce(Qt(t).a.Kc(),new En))),18);else if(t.k!=zt)return null}while(t&&t.k!=(Vn(),zt));return t}function jCe(n,e){var t,i,r,c,s,f,h,l,a;for(f=e.j,s=e.g,h=u(sn(f,f.c.length-1),113),a=(Nn(0,f.c.length),u(f.c[0],113)),l=Fx(n,s,h,a),c=1;c<f.c.length;c++)t=(Nn(c-1,f.c.length),u(f.c[c-1],113)),r=(Nn(c,f.c.length),u(f.c[c],113)),i=Fx(n,s,t,r),i>l&&(h=t,a=r,l=i);e.a=a,e.c=h}function ECe(n,e,t){var i,r,c,s,f,h,l;for(l=new Ul(new X7n(n)),s=S(C(RZn,1),LXn,12,0,[e,t]),f=0,h=s.length;f<h;++f)for(c=s[f],l.a.zc(c,(_n(),ga))==null,r=new Lf(c.b);tc(r.a)||tc(r.b);)i=u(tc(r.a)?E(r.a):E(r.b),18),i.c==i.d||B7(l,c==i.c?i.d:i.c);return Pe(l),new _u(l)}function qs(n){if(!n.a.d||!n.a.e)throw T(new Ar((ll(GQn),GQn.k+" must have a source and target "+(ll(ion),ion.k)+" specified.")));if(n.a.d==n.a.e)throw T(new Ar("Network simplex does not support self-loops: "+n.a+" "+n.a.d+" "+n.a.e));return BM(n.a.d.g,n.a),BM(n.a.e.b,n.a),n.a}function MCe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Constraints Postprocessor",1),s=0,c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),h=0,f=!1,i=new M(r.a);i.a<i.c.c.length;)t=u(E(i),10),t.k==(Vn(),zt)&&(f=!0,U(t,(cn(),gO),Y(s)),U(t,aO,Y(h)),++h);f&&++s}e.Vg()}function oqn(n,e,t){var i,r,c,s,f,h;if(i=0,e.b!=0&&t.b!=0){c=ge(e,0),s=ge(t,0),f=$(B(be(c))),h=$(B(be(s))),r=!0;do{if(f>h-n.b&&f<h+n.b)return-1;f>h-n.a&&f<h+n.a&&++i,f<=h&&c.b!=c.d.c?f=$(B(be(c))):h<=f&&s.b!=s.d.c?h=$(B(be(s))):r=!1}while(r)}return i}function sqn(n,e){var t,i;return H7(n.a),hf(n.a,(yC(),BO),BO),hf(n.a,N2,N2),i=new ii,Fe(i,N2,(wS(),gq)),x(z(e,(oa(),kq)))!==x((Ik(),FO))&&Fe(i,N2,dq),on(un(z(e,Yln)))&&Fe(i,N2,pq),Fe(i,N2,bq),on(un(z(e,n1n)))&&Iu(i,N2,wq),MX(n.a,i),t=gy(n.a,e),t}function TCe(n,e,t,i,r){var c,s,f,h;for(h=(c=u(of(lr),9),new _o(c,u(xs(c,c.length),9),0)),f=new M(n.j);f.a<f.c.c.length;)s=u(E(f),12),e[s.p]&&(QLe(s,e[s.p],i),_s(h,s.j));r?(Wx(n,e,(en(),Zn),2*t,i),Wx(n,e,Wn,2*t,i)):(Wx(n,e,(en(),Xn),2*t,i),Wx(n,e,ae,2*t,i))}function CCe(n){var e,t;for(t=new ie(ce(Qt(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),e.d.i.k!=(Vn(),Sc))throw T(new _l(oB+qk(n)+"' has its layer constraint set to LAST, but has at least one outgoing edge that does not go to a LAST_SEPARATE node. That must not happen."))}function SCe(n,e,t){var i,r,c,s,f;for(t.Ug("Longest path layering",1),n.a=e,f=n.a.a,n.b=F(ye,_e,28,f.c.length,15,1),i=0,s=new M(f);s.a<s.c.c.length;)r=u(E(s),10),r.p=i,n.b[i]=-1,++i;for(c=new M(f);c.a<c.c.c.length;)r=u(E(c),10),FHn(n,r);f.c.length=0,n.a=null,n.b=null,t.Vg()}function PCe(n,e,t,i){var r,c,s,f,h,l,a,d,g;for(h=0,a=new M(n.a);a.a<a.c.c.length;){for(l=u(E(a),10),f=0,c=new ie(ce(ji(l).a.Kc(),new En));pe(c);)r=u(fe(c),18),d=Of(r.c).b,g=Of(r.d).b,f=y.Math.max(f,y.Math.abs(g-d));h=y.Math.max(h,f)}return s=i*y.Math.min(1,e/t)*h,s}function ICe(n,e){var t,i,r,c,s;for(s=u(v(e,(lc(),Lln)),433),c=ge(e.b,0);c.b!=c.d.c;)if(r=u(be(c),40),n.b[r.g]==0){switch(s.g){case 0:TBn(n,r);break;case 1:KMe(n,r)}n.b[r.g]=2}for(i=ge(n.a,0);i.b!=i.d.c;)t=u(be(i),65),iw(t.b.d,t,!0),iw(t.c.b,t,!0);U(e,(pt(),yln),n.a)}function sen(n){var e;return e=new i6,n&256&&(e.a+="F"),n&128&&(e.a+="H"),n&512&&(e.a+="X"),n&2&&(e.a+="i"),n&8&&(e.a+="m"),n&4&&(e.a+="s"),n&32&&(e.a+="u"),n&64&&(e.a+="w"),n&16&&(e.a+="x"),n&Gs&&(e.a+=","),az(e.a)}function OCe(n,e){var t,i,r,c,s,f;e.Ug(PVn,1),r=u(z(n,(Bf(),h9)),107),c=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),s=x7e(c),f=y.Math.max(s.a,$(B(z(n,(_h(),f9))))-(r.b+r.c)),i=y.Math.max(s.b,$(B(z(n,UO)))-(r.d+r.a)),t=i-s.b,ht(n,s9,t),ht(n,A3,f),ht(n,Dv,i+t),e.Vg()}function ru(n,e){dr();var t,i,r,c;return e?e==(at(),pse)||(e==cse||e==zd||e==rse)&&n!=obn?new itn(n,e):(i=u(e,692),t=i.$k(),t||(I4(Nr((Lu(),zi),e)),t=i.$k()),c=(!t.i&&(t.i=new de),t.i),r=u(Fr(wr(c.f,n)),2041),!r&&Ve(c,n,r=new itn(n,e)),r):ese}function ACe(n,e){var t,i;if(i=B7(n.b,e.b),!i)throw T(new Ar("Invalid hitboxes for scanline constraint calculation."));(nRn(e.b,u(Ghe(n.b,e.b),60))||nRn(e.b,u(Uhe(n.b,e.b),60)))&&fl(),n.a[e.b.f]=u(OL(n.b,e.b),60),t=u(IL(n.b,e.b),60),t&&(n.a[t.f]=e.b)}function LCe(n,e,t){var i,r,c,s,f,h,l,a,d;for(c=Xg(e,!1,!1),l=Qk(c),d=$(B(z(e,(M5(),w_)))),r=mzn(l,d+n.a),a=new bR(r),Ur(a,e),Ve(n.b,e,a),Fn(t.c,a),h=(!e.n&&(e.n=new q(Sr,e,1,7)),e.n),f=new ne(h);f.e!=f.i.gc();)s=u(ue(f),135),i=fy(n,s,!0,0,0),Fn(t.c,i);return a}function NCe(n,e){var t,i,r,c,s,f,h;for(r=new Z,t=0;t<=n.j;t++)i=new Nc(e),i.p=n.j-t,Fn(r.c,i);for(f=new M(n.p);f.a<f.c.c.length;)s=u(E(f),10),$i(s,u(sn(r,n.j-n.g[s.p]),30));for(c=new M(r);c.a<c.c.c.length;)h=u(E(c),30),h.a.c.length==0&&q6(c);e.b.c.length=0,hi(e.b,r)}function DCe(n,e){var t,i,r,c,s,f,h,l,a;for(h=u(v(n,(W(),st)),12),l=cc(S(C(Ei,1),J,8,0,[h.i.n,h.n,h.a])).a,a=n.i.n.b,t=hh(n.e),r=t,c=0,s=r.length;c<s;++c)i=r[c],Oi(i,h),ir(i.a,new V(l,a)),e&&(f=u(v(i,(cn(),Rr)),75),f||(f=new Tu,U(i,Rr,f)),Re(f,new V(l,a)))}function $Ce(n,e){var t,i,r,c,s,f,h,l,a;for(r=u(v(n,(W(),st)),12),l=cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).a,a=n.i.n.b,t=hh(n.g),s=t,f=0,h=s.length;f<h;++f)c=s[f],Zi(c,r),gg(c.a,new V(l,a)),e&&(i=u(v(c,(cn(),Rr)),75),i||(i=new Tu,U(c,Rr,i)),Re(i,new V(l,a)))}function xCe(n){var e,t,i,r,c,s,f,h,l;if(i=n.b,c=i.e,s=Ep(u(v(i,(cn(),Ft)),101)),t=!!c&&u(v(c,(W(),Hc)),21).Hc((pr(),cs)),!(s||t))for(l=(f=new ol(n.e).a.vc().Kc(),new P0(f));l.a.Ob();)h=(e=u(l.a.Pb(),44),u(e.md(),113)),h.a&&(r=h.d,ic(r,null),h.c=!0,n.a=!0)}function RCe(n,e){var t,i,r,c;for(e.Ug("Semi-Interactive Crossing Minimization Processor",1),t=!1,r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),30),c=Nk(fC(ut(ut(new Cn(null,new On(i.a,16)),new E2n),new M2n),new T2n),new C2n),t=t|c.a!=null;t&&U(n,(W(),ifn),(_n(),!0)),e.Vg()}function KCe(n,e){var t,i,r,c,s,f;for(n.b=new Z,n.d=u(v(e,(W(),P3)),234),n.e=ype(n.d),c=new Mt,r=Af(S(C(DZn,1),OXn,36,0,[e])),s=0;s<r.c.length;)i=(Nn(s,r.c.length),u(r.c[s],36)),i.p=s++,t=new EGn(i,n.a,n.b),hi(r,t.b),nn(n.b,t),t.s&&(f=ge(c,0),_7(f,t));return n.c=new ni,c}function BCe(n,e){var t,i,r,c,s,f;for(s=u(u(ot(n.r,e),21),87).Kc();s.Ob();)c=u(s.Pb(),117),t=c.c?nW(c.c):0,t>0?c.a?(f=c.b.Mf().a,t>f&&(r=(t-f)/2,c.d.b=r,c.d.c=r)):c.d.c=n.s+t:F6(n.u)&&(i=enn(c.b),i.c<0&&(c.d.b=-i.c),i.c+i.b>c.b.Mf().a&&(c.d.c=i.c+i.b-c.b.Mf().a))}function FCe(n,e){var t,i,r,c,s;s=new Z,t=e;do c=u(ee(n.b,t),131),c.B=t.c,c.D=t.d,Fn(s.c,c),t=u(ee(n.k,t),18);while(t);return i=(Nn(0,s.c.length),u(s.c[0],131)),i.j=!0,i.A=u(i.d.a.ec().Kc().Pb(),18).c.i,r=u(sn(s,s.c.length-1),131),r.q=!0,r.C=u(r.d.a.ec().Kc().Pb(),18).d.i,s}function _Ce(n){var e,t;if(e=u(n.a,17).a,t=u(n.b,17).a,e>=0){if(e==t)return new bi(Y(-e-1),Y(-e-1));if(e==-t)return new bi(Y(-e),Y(t+1))}return y.Math.abs(e)>y.Math.abs(t)?e<0?new bi(Y(-e),Y(t)):new bi(Y(-e),Y(t+1)):new bi(Y(e+1),Y(t))}function HCe(n){var e,t;t=u(v(n,(cn(),ou)),171),e=u(v(n,(W(),Ad)),311),t==(Yo(),ya)?(U(n,ou,Ej),U(n,Ad,(vl(),k2))):t==xw?(U(n,ou,Ej),U(n,Ad,(vl(),E3))):e==(vl(),k2)?(U(n,ou,ya),U(n,Ad,vj)):e==E3&&(U(n,ou,xw),U(n,Ad,vj))}function AS(){AS=R,Lj=new S3n,Jie=Fe(new ii,(Vi(),Ac),(tr(),PI)),Zie=Iu(Fe(new ii,Ac,xI),zr,$I),nre=ah(ah(h6(Iu(Fe(new ii,Vs,FI),zr,BI),Fc),KI),_I),Qie=Iu(Fe(Fe(Fe(new ii,Jh,OI),Fc,LI),Fc,hv),zr,AI),Yie=Iu(Fe(Fe(new ii,Fc,hv),Fc,SI),zr,CI)}function K5(){K5=R,ire=Fe(Iu(new ii,(Vi(),zr),(tr(),nsn)),Ac,PI),ore=ah(ah(h6(Iu(Fe(new ii,Vs,FI),zr,BI),Fc),KI),_I),rre=Iu(Fe(Fe(Fe(new ii,Jh,OI),Fc,LI),Fc,hv),zr,AI),ure=Fe(Fe(new ii,Ac,xI),zr,$I),cre=Iu(Fe(Fe(new ii,Fc,hv),Fc,SI),zr,CI)}function qCe(n,e,t,i,r){var c,s;(!fr(e)&&e.c.i.c==e.d.i.c||!fxn(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])),t))&&!fr(e)&&(e.c==r?g4(e.a,0,new rr(t)):Re(e.a,new rr(t)),i&&!sf(n.a,t)&&(s=u(v(e,(cn(),Rr)),75),s||(s=new Tu,U(e,Rr,s)),c=new rr(t),xt(s,c,s.c.b,s.c),fi(n.a,c)))}function fqn(n,e){var t,i,r,c;for(c=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),t=c&n.b.length-1,r=null,i=n.b[t];i;r=i,i=i.a)if(i.d==c&&sh(i.i,e))return r?r.a=i.a:n.b[t]=i.a,Fjn(u(as(i.c),604),u(as(i.f),604)),V9(u(as(i.b),227),u(as(i.e),227)),--n.f,++n.e,!0;return!1}function UCe(n){var e,t;for(t=new ie(ce(ji(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),e.c.i.k!=(Vn(),Sc))throw T(new _l(oB+qk(n)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function GCe(n,e,t){var i,r,c,s,f,h,l;if(r=dKn(n.Db&254),r==0)n.Eb=t;else{if(r==1)f=F(ki,Kn,1,2,5,1),c=Bx(n,e),c==0?(f[0]=t,f[1]=n.Eb):(f[0]=n.Eb,f[1]=t);else for(f=F(ki,Kn,1,r+1,5,1),s=cd(n.Eb),i=2,h=0,l=0;i<=128;i<<=1)i==e?f[l++]=t:n.Db&i&&(f[l++]=s[h++]);n.Eb=f}n.Db|=e}function hqn(n,e,t){var i,r,c,s;for(this.b=new Z,r=0,i=0,s=new M(n);s.a<s.c.c.length;)c=u(E(s),176),t&&YIe(c),nn(this.b,c),r+=c.o,i+=c.p;this.b.c.length>0&&(c=u(sn(this.b,0),176),r+=c.o,i+=c.p),r*=2,i*=2,e>1?r=wi(y.Math.ceil(r*e)):i=wi(y.Math.ceil(i/e)),this.a=new XY(r,i)}function lqn(n,e,t,i,r,c){var s,f,h,l,a,d,g,p,m,k,j,P;for(a=i,e.j&&e.o?(p=u(ee(n.f,e.A),60),k=p.d.c+p.d.b,--a):k=e.a.c+e.a.b,d=r,t.q&&t.o?(p=u(ee(n.f,t.C),60),l=p.d.c,++d):l=t.a.c,j=l-k,h=y.Math.max(2,d-a),f=j/h,m=k+f,g=a;g<d;++g)s=u(c.Xb(g),131),P=s.a.b,s.a.c=m-P/2,m+=f}function aqn(n,e){var t,i,r,c,s,f,h,l,a,d,g;r=e?new Kpn:new Bpn,c=!1;do for(c=!1,l=e?Qo(n.b):n.b,h=l.Kc();h.Ob();)for(f=u(h.Pb(),30),g=Cb(f.a),e||Qo(g),d=new M(g);d.a<d.c.c.length;)a=u(E(d),10),r.Mb(a)&&(i=a,t=u(v(a,(W(),o0)),313),s=e?t.b:t.k,c=Kqn(i,s,e,!1));while(c)}function fen(n,e,t,i,r,c){var s,f,h,l,a,d;for(l=t.c.length,c&&(n.c=F(ye,_e,28,e.length,15,1)),s=r?0:e.length-1;r?s<e.length:s>=0;s+=r?1:-1){for(f=e[s],h=i==(en(),Zn)?r?uc(f,i):Qo(uc(f,i)):r?Qo(uc(f,i)):uc(f,i),c&&(n.c[f.p]=h.gc()),d=h.Kc();d.Ob();)a=u(d.Pb(),12),n.d[a.p]=l++;hi(t,h)}}function dqn(n,e,t){var i,r,c,s,f,h,l,a;for(c=$(B(n.b.Kc().Pb())),l=$(B(Hve(e.b))),i=ch(Fi(n.a),l-t),r=ch(Fi(e.a),t-c),a=tt(i,r),ch(a,1/(l-c)),this.a=a,this.b=new Z,f=!0,s=n.b.Kc(),s.Pb();s.Ob();)h=$(B(s.Pb())),f&&h-t>_B&&(this.b.Fc(t),f=!1),this.b.Fc(h);f&&this.b.Fc(t)}function zCe(n){var e,t,i,r;if(hPe(n,n.n),n.d.c.length>0){for(e6(n.c);Unn(n,u(E(new M(n.e.a)),125))<n.e.a.c.length;){for(e=N7e(n),r=e.e.e-e.d.e-e.a,e.e.j&&(r=-r),i=new M(n.e.a);i.a<i.c.c.length;)t=u(E(i),125),t.j&&(t.e+=r);e6(n.c)}e6(n.c),Onn(n,u(E(new M(n.e.a)),125)),pGn(n)}}function XCe(n,e){qp();var t,i;if(t=WD(z4(),e.Pg()),t){if(i=t.j,L(n,207))return k2e(u(n,27))?Su(i,(pf(),pi))||Su(i,xn):Su(i,(pf(),pi));if(L(n,326))return Su(i,(pf(),Ih));if(L(n,193))return Su(i,(pf(),Fd));if(L(n,366))return Su(i,(pf(),E1))}return!0}function VCe(n,e,t){var i,r,c,s,f,h;if(r=t,c=r.Lk(),Pl(n.e,c)){if(c.Si()){for(i=u(n.g,124),s=0;s<n.i;++s)if(f=i[s],rt(f,r)&&s!=e)throw T(new Gn(Vy))}}else for(h=ru(n.e.Dh(),c),i=u(n.g,124),s=0;s<n.i;++s)if(f=i[s],h.am(f.Lk())&&s!=e)throw T(new Gn(Zy));return u(Bg(n,e,t),76)}function bqn(n,e){if(e instanceof Object)try{if(e.__java$exception=n,navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&$doc.documentMode<9)return;var t=n;Object.defineProperties(e,{cause:{get:function(){var i=t.he();return i&&i.fe()}},suppressed:{get:function(){return t.ge()}}})}catch{}}function wqn(n,e){var t,i,r,c,s;if(i=e>>5,e&=31,i>=n.d)return n.e<0?(dh(),vQn):(dh(),P8);if(c=n.d-i,r=F(ye,_e,28,c+1,15,1),Rje(r,c,n.a,i,e),n.e<0){for(t=0;t<i&&n.a[t]==0;t++);if(t<i||e>0&&n.a[t]<<32-e){for(t=0;t<c&&r[t]==-1;t++)r[t]=0;t==c&&++c,++r[t]}}return s=new Ya(n.e,c,r),J6(s),s}function gqn(n){var e,t,i,r;return r=Pf(n),t=new $9n(r),i=new x9n(r),e=new Z,hi(e,(!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d)),hi(e,(!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e)),u(Wr(_r(ut(new Cn(null,new On(e,16)),t),i),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),Sw),Yr]))),21)}function WCe(n,e){var t;switch(t=u(v(n,(cn(),bO)),283),e.Ug("Label side selection ("+t+")",1),t.g){case 0:SHn(n,(Co(),nl));break;case 1:SHn(n,(Co(),Sa));break;case 2:zUn(n,(Co(),nl));break;case 3:zUn(n,(Co(),Sa));break;case 4:Tqn(n,(Co(),nl));break;case 5:Tqn(n,(Co(),Sa))}e.Vg()}function Pl(n,e){dr();var t,i,r;return e.Jk()?!0:e.Ik()==-2?e==(n3(),_3)||e==F3||e==SU||e==PU?!0:(r=n.Dh(),At(r,e)>=0?!1:(t=Qg((Lu(),zi),r,e),t?(i=t.Ik(),(i>1||i==-1)&&yb(Nr(zi,t))!=3):!0)):!1}function JCe(n,e,t,i){var r,c,s,f,h;return f=Gr(u(N((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84)),h=Gr(u(N((!e.c&&(e.c=new Dn(he,e,5,8)),e.c),0),84)),St(f)==St(h)||Y0(h,f)?null:(s=V7(e),s==t?i:(c=u(ee(n.a,s),10),c&&(r=c.e,r)?r:null))}function QCe(n,e,t){var i,r,c,s,f;for(t.Ug("Longest path to source layering",1),n.a=e,f=n.a.a,n.b=F(ye,_e,28,f.c.length,15,1),i=0,s=new M(f);s.a<s.c.c.length;)r=u(E(s),10),r.p=i,n.b[i]=-1,++i;for(c=new M(f);c.a<c.c.c.length;)r=u(E(c),10),_Hn(n,r);f.c.length=0,n.a=null,n.b=null,t.Vg()}function hen(n,e,t){var i,r,c,s,f,h;if(i=Ihe(t,n.length),s=n[i],c=Xjn(t,s.length),s[c].k==(Vn(),Zt))for(h=e.j,r=0;r<h.c.length;r++)f=(Nn(r,h.c.length),u(h.c[r],12)),(t?f.j==(en(),Zn):f.j==(en(),Wn))&&on(un(v(f,(W(),yj))))&&(Go(h,r,u(v(s[c],(W(),st)),12)),c+=t?1:-1)}function YCe(n,e){var t,i,r,c,s,f,h,l;e.Ug("Greedy Width Approximator",1),t=$(B(z(n,(Bf(),zO)))),h=u(z(n,h9),107),c=u(z(n,M1n),394),s=on(un(z(n,E1n))),f=$(B(z(n,l9))),l=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),NQ(l),r=new vPn(t,c,s),i=sPe(r,l,f,h),ht(n,(_h(),Xw),i.c),e.Vg()}function pqn(n){if(n.g==null)switch(n.p){case 0:n.g=y2e(n)?(_n(),ov):(_n(),ga);break;case 1:n.g=ak(b3e(n));break;case 2:n.g=vk(ape(n));break;case 3:n.g=Xwe(n);break;case 4:n.g=new z9(zwe(n));break;case 6:n.g=Tl(Jwe(n));break;case 5:n.g=Y(c2e(n));break;case 7:n.g=sm(p3e(n))}return n.g}function len(n){if(n.n==null)switch(n.p){case 0:n.n=j2e(n)?(_n(),ov):(_n(),ga);break;case 1:n.n=ak(w3e(n));break;case 2:n.n=vk(dpe(n));break;case 3:n.n=Vwe(n);break;case 4:n.n=new z9(Wwe(n));break;case 6:n.n=Tl(Qwe(n));break;case 5:n.n=Y(u2e(n));break;case 7:n.n=sm(g3e(n))}return n.n}function mqn(n,e,t,i){var r,c,s,f,h;if(f=(dr(),u(e,69).xk()),Pl(n.e,e)){if(e.Si()&&BS(n,e,i,L(e,102)&&(u(e,19).Bb&hr)!=0))throw T(new Gn(Vy))}else for(h=ru(n.e.Dh(),e),r=u(n.g,124),s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk()))throw T(new Gn(Zy));v5(n,gnn(n,e,t),f?u(i,76):Rh(e,i))}function vqn(n){var e,t,i,r,c,s,f;for(c=new M(n.a.a);c.a<c.c.c.length;)i=u(E(c),316),i.g=0,i.i=0,i.e.a.$b();for(r=new M(n.a.a);r.a<r.c.c.length;)for(i=u(E(r),316),t=i.a.a.ec().Kc();t.Ob();)for(e=u(t.Pb(),60),f=e.c.Kc();f.Ob();)s=u(f.Pb(),60),s.a!=i&&(fi(i.e,s),++s.a.g,++s.a.i)}function ZCe(n){var e,t,i,r,c;r=u(v(n,(cn(),xd)),21),c=u(v(n,kO),21),t=new V(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),e=new rr(t),r.Hc((go(),Qw))&&(i=u(v(n,Ev),8),c.Hc((io(),_v))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),e.a=y.Math.max(t.a,i.a),e.b=y.Math.max(t.b,i.b)),eOe(n,t,e)}function nSe(n,e){var t,i,r;e.a?(B7(n.b,e.b),n.a[e.b.i]=u(OL(n.b,e.b),86),t=u(IL(n.b,e.b),86),t&&(n.a[t.i]=e.b)):(i=u(OL(n.b,e.b),86),i&&i==n.a[e.b.i]&&i.d&&i.d!=e.b.d&&i.f.Fc(e.b),r=u(IL(n.b,e.b),86),r&&n.a[r.i]==e.b&&r.d&&r.d!=e.b.d&&e.b.f.Fc(r),EN(n.b,e.b))}function kqn(n,e){var t,i,r,c,s,f;return c=n.d,f=$(B(v(n,(cn(),m1)))),f<0&&(f=0,U(n,m1,f)),e.o.b=f,s=y.Math.floor(f/2),i=new Ic,gi(i,(en(),Wn)),ic(i,e),i.n.b=s,r=new Ic,gi(r,Zn),ic(r,e),r.n.b=s,Oi(n,i),t=new Eb,Ur(t,n),U(t,Rr,null),Zi(t,r),Oi(t,c),bIe(e,n,t),sEe(n,t),t}function eSe(n){var e,t;return t=u(v(n,(W(),Hc)),21),e=new ii,t.Hc((pr(),R8))&&(To(e,zie),To(e,iln)),(t.Hc(yv)||on(un(v(n,(cn(),TH)))))&&(To(e,iln),t.Hc(v2)&&To(e,Vie)),t.Hc(cs)&&To(e,Gie),t.Hc(K8)&&To(e,Wie),t.Hc(nO)&&To(e,Xie),t.Hc(vv)&&To(e,qie),t.Hc(kv)&&To(e,Uie),e}function tSe(n,e){var t,i,r,c,s,f,h,l,a,d,g;return i=n.d,c=e.d,f=i+c,h=n.e!=e.e?-1:1,f==2?(a=er(vi(n.a[0],mr),vi(e.a[0],mr)),g=Se(a),d=Se(U1(a,32)),d==0?new gl(h,g):new Ya(h,2,S(C(ye,1),_e,28,15,[g,d]))):(t=n.a,r=e.a,s=F(ye,_e,28,f,15,1),e5e(t,i,r,c,s),l=new Ya(h,f,s),J6(l),l)}function yqn(n,e,t,i){var r,c;if(e){if(r=n.a.Ne(t.d,e.d),r==0)return i.d=bV(e,t.e),i.b=!0,e;c=r<0?0:1,e.a[c]=yqn(n,e.a[c],t,i),O0(e.a[c])&&(O0(e.a[1-c])?(e.b=!0,e.a[0].b=!1,e.a[1].b=!1):O0(e.a[c].a[c])?e=jC(e,1-c):O0(e.a[c].a[1-c])&&(e=fLn(e,1-c)))}else return t;return e}function jqn(n,e,t){var i,r,c,s;r=n.i,i=n.n,$J(n,(wf(),bc),r.c+i.b,t),$J(n,wc,r.c+r.b-i.c-t[2],t),s=r.b-i.b-i.c,t[0]>0&&(t[0]+=n.d,s-=t[0]),t[2]>0&&(t[2]+=n.d,s-=t[2]),c=y.Math.max(0,s),t[1]=y.Math.max(t[1],s),$J(n,Wc,r.c+i.b+t[0]-(t[1]-s)/2,t),e==Wc&&(n.c.b=c,n.c.c=r.c+i.b+(c-s)/2)}function Eqn(){this.c=F(Ii,Cr,28,(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,15,1),this.b=F(Ii,Cr,28,S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]).length,15,1),this.a=F(Ii,Cr,28,S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]).length,15,1),Kz(this.c,Pt),Kz(this.b,li),Kz(this.a,li)}function xc(n,e,t){var i,r,c,s;if(e<=t?(r=e,c=t):(r=t,c=e),i=0,n.b==null)n.b=F(ye,_e,28,2,15,1),n.b[0]=r,n.b[1]=c,n.c=!0;else{if(i=n.b.length,n.b[i-1]+1==r){n.b[i-1]=c;return}s=F(ye,_e,28,i+2,15,1),Oc(n.b,0,s,0,i),n.b=s,n.b[i-1]>=r&&(n.c=!1,n.a=!1),n.b[i++]=r,n.b[i]=c,n.c||Gg(n)}}function iSe(n,e,t){var i,r,c,s,f,h,l;for(l=e.d,n.a=new Gc(l.c.length),n.c=new de,f=new M(l);f.a<f.c.c.length;)s=u(E(f),105),c=new yk(null),nn(n.a,c),Ve(n.c,s,c);for(n.b=new de,hEe(n,e),i=0;i<l.c.length-1;i++)for(h=u(sn(e.d,i),105),r=i+1;r<l.c.length;r++)XTe(n,h,u(sn(e.d,r),105),t)}function aw(n){var e,t,i,r,c;for(r=new Z,e=new R6((!n.a&&(n.a=new q(Ye,n,10,11)),n.a)),i=new ie(ce(Sl(n).a.Kc(),new En));pe(i);)t=u(fe(i),74),L(N((!t.b&&(t.b=new Dn(he,t,4,7)),t.b),0),193)||(c=Gr(u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),e.a._b(c)||Fn(r.c,c));return r}function rSe(n,e,t){var i,r,c;if(n.e=t,n.d=0,n.b=0,n.f=1,n.i=e,(n.e&16)==16&&(n.i=bPe(n.i)),n.j=n.i.length,Ze(n),c=Kb(n),n.d!=n.j)throw T(new Ne($e((Oe(),SWn))));if(n.g){for(i=0;i<n.g.a.c.length;i++)if(r=u(kb(n.g,i),592),n.f<=r.a)throw T(new Ne($e((Oe(),PWn))));n.g.a.c.length=0}return c}function cSe(n,e){var t,i,r,c,s,f,h;for(t=li,f=(Vn(),zt),r=new M(e.a);r.a<r.c.c.length;)i=u(E(r),10),c=i.k,c!=zt&&(s=B(v(i,(W(),cfn))),s==null?(t=y.Math.max(t,0),i.n.b=t+VX(n.a,c,f)):i.n.b=(Jn(s),s)),h=VX(n.a,c,f),i.n.b<t+h+i.d.d&&(i.n.b=t+h+i.d.d),t=i.n.b+i.o.b+i.d.a,f=c}function Mqn(n,e,t,i,r){var c,s,f,h,l,a;if(n.d&&n.d.Gg(r),c=u(r.Xb(0),27),CBn(n,t,c,!1)||(s=u(r.Xb(r.gc()-1),27),CBn(n,i,s,!0))||onn(n,r))return!0;for(a=r.Kc();a.Ob();)for(l=u(a.Pb(),27),h=e.Kc();h.Ob();)if(f=u(h.Pb(),27),NS(n,l,f))return!0;return!1}function uSe(n,e,t){var i,r,c,s,f,h,l,a,d,g;g=e.c.length,d=(l=n.Ih(t),u(l>=0?n.Lh(l,!1,!0):Hb(n,t,!1),61));n:for(c=d.Kc();c.Ob();){for(r=u(c.Pb(),58),a=0;a<g;++a)if(s=(Nn(a,e.c.length),u(e.c[a],76)),h=s.md(),f=s.Lk(),i=r.Nh(f,!1),h==null?i!=null:!rt(h,i))continue n;return r}return null}function oSe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Comment post-processing",1),c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),i=new Z,f=new M(r.a);f.a<f.c.c.length;)s=u(E(f),10),h=u(v(s,(W(),I3)),15),t=u(v(s,M3),15),(h||t)&&(MLe(s,h,t),h&&hi(i,h),t&&hi(i,t));hi(r.a,i)}e.Vg()}function sSe(n,e,t,i){var r,c,s,f;for(r=u(h1(e,(en(),Wn)).Kc().Pb(),12),c=u(h1(e,Zn).Kc().Pb(),12),f=new M(n.j);f.a<f.c.c.length;){for(s=u(E(f),12);s.e.c.length!=0;)Oi(u(sn(s.e,0),18),r);for(;s.g.c.length!=0;)Zi(u(sn(s.g,0),18),c)}t||U(e,(W(),yf),null),i||U(e,(W(),Es),null)}function Xg(n,e,t){var i,r;if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i==0)return zQ(n);if(i=u(N((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),0),166),e&&(me((!i.a&&(i.a=new ti(xo,i,5)),i.a)),H4(i,0),U4(i,0),_4(i,0),q4(i,0)),t)for(r=(!n.a&&(n.a=new q(Tt,n,6,6)),n.a);r.i>1;)dw(r,r.i-1);return i}function Tqn(n,e){var t,i,r,c,s,f,h;for(t=new Mg,c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),h=!0,i=0,f=new M(r.a);f.a<f.c.c.length;)switch(s=u(E(f),10),s.k.g){case 4:++i;case 1:vJ(t,s);break;case 0:oEe(s,e);default:t.b==t.c||wUn(t,i,h,!1,e),h=!1,i=0}t.b==t.c||wUn(t,i,h,!0,e)}}function aen(n,e){var t,i,r,c,s,f;for(t=0,f=new M(e);f.a<f.c.c.length;){for(s=u(E(f),12),hY(n.b,n.d[s.p]),r=new Lf(s.b);tc(r.a)||tc(r.b);)i=u(tc(r.a)?E(r.a):E(r.b),18),c=Sz(n,s==i.c?i.d:i.c),c>n.d[s.p]&&(t+=SJ(n.b,c),W1(n.a,Y(c)));for(;!t6(n.a);)uQ(n.b,u(Pp(n.a),17).a)}return t}function fSe(n){var e,t,i,r,c,s,f,h,l;for(n.a=new vV,l=0,r=0,i=new M(n.i.b);i.a<i.c.c.length;){for(e=u(E(i),30),e.p=r,h=new M(e.a);h.a<h.c.c.length;)f=u(E(h),10),f.p=l,++l;++r}for(c=n.r==(ps(),p0),s=c?XZn:zZn,t=new M(n.i.b);t.a<t.c.c.length;)e=u(E(t),30),Yt(e.a,s),sme(n.a,Y(e.p),e.a)}function Cqn(n,e,t){var i,r,c,s;for(c=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i,r=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));r.e!=r.i.gc();)i=u(ue(r),27),(!i.a&&(i.a=new q(Ye,i,10,11)),i.a).i==0||(c+=Cqn(n,i,!1));if(t)for(s=St(e);s;)c+=(!s.a&&(s.a=new q(Ye,s,10,11)),s.a).i,s=St(s);return c}function dw(n,e){var t,i,r,c;return n.Pj()?(i=null,r=n.Qj(),n.Tj()&&(i=n.Vj(n.$i(e),null)),t=n.Ij(4,c=Jp(n,e),null,e,r),n.Mj()&&c!=null&&(i=n.Oj(c,i)),i?(i.nj(t),i.oj()):n.Jj(t),c):(c=Jp(n,e),n.Mj()&&c!=null&&(i=n.Oj(c,null),i&&i.oj()),c)}function hSe(n){var e,t,i,r,c,s,f,h,l,a;for(l=n.a,e=new ni,h=0,i=new M(n.d);i.a<i.c.c.length;){for(t=u(E(i),226),a=0,ud(t.b,new m0n),s=ge(t.b,0);s.b!=s.d.c;)c=u(be(s),226),e.a._b(c)&&(r=t.c,f=c.c,a<f.d+f.a+l&&a+r.a+l>f.d&&(a=f.d+f.a+l));t.c.d=a,e.a.zc(t,e),h=y.Math.max(h,t.c.d+t.c.a)}return h}function pr(){pr=R,ZI=new L0("COMMENTS",0),cs=new L0("EXTERNAL_PORTS",1),R8=new L0("HYPEREDGES",2),nO=new L0("HYPERNODES",3),yv=new L0("NON_FREE_PORTS",4),v2=new L0("NORTH_SOUTH_PORTS",5),K8=new L0(JXn,6),vv=new L0("CENTER_LABELS",7),kv=new L0("END_LABELS",8),eO=new L0("PARTITIONS",9)}function lSe(n,e,t,i,r){return i<0?(i=Ug(n,r,S(C(fn,1),J,2,6,[sK,fK,hK,lK,c3,aK,dK,bK,wK,gK,pK,mK]),e),i<0&&(i=Ug(n,r,S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function aSe(n,e,t,i,r){return i<0?(i=Ug(n,r,S(C(fn,1),J,2,6,[sK,fK,hK,lK,c3,aK,dK,bK,wK,gK,pK,mK]),e),i<0&&(i=Ug(n,r,S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function dSe(n,e,t,i,r,c){var s,f,h,l;if(f=32,i<0){if(e[0]>=n.length||(f=Xi(n,e[0]),f!=43&&f!=45)||(++e[0],i=yS(n,e),i<0))return!1;f==45&&(i=-i)}return f==32&&e[0]-t==2&&r.b==2&&(h=new JE,l=h.q.getFullYear()-ha+ha-80,s=l%100,c.a=i==s,i+=(l/100|0)*100+(i<s?100:0)),c.p=i,!0}function Sqn(n,e){var t,i,r,c,s;St(n)&&(s=u(v(e,(cn(),xd)),181),x(z(n,Ft))===x((Ai(),Ia))&&ht(n,Ft,Qf),i=(cb(),new Qd(St(n))),c=new TN(St(n)?new Qd(St(n)):null,n),r=HGn(i,c,!1,!0),_s(s,(go(),Qw)),t=u(v(e,Ev),8),t.a=y.Math.max(r.a,t.a),t.b=y.Math.max(r.b,t.b))}function bSe(n,e,t){var i,r,c,s,f,h;for(s=u(v(n,(W(),hH)),15).Kc();s.Ob();){switch(c=u(s.Pb(),10),u(v(c,(cn(),ou)),171).g){case 2:$i(c,e);break;case 4:$i(c,t)}for(r=new ie(ce(Ml(c).a.Kc(),new En));pe(r);)i=u(fe(r),18),!(i.c&&i.d)&&(f=!i.d,h=u(v(i,ofn),12),f?Oi(i,h):Zi(i,h))}}function LS(){LS=R,F_=new Ap(eP,0,(en(),Xn),Xn),q_=new Ap(qK,1,ae,ae),B_=new Ap(HK,2,Zn,Zn),z_=new Ap(UK,3,Wn,Wn),H_=new Ap("NORTH_WEST_CORNER",4,Wn,Xn),__=new Ap("NORTH_EAST_CORNER",5,Xn,Zn),G_=new Ap("SOUTH_WEST_CORNER",6,ae,Wn),U_=new Ap("SOUTH_EAST_CORNER",7,Zn,ae)}function wSe(n){var e,t,i,r,c,s;for(c=new ni,e=new R6((!n.a&&(n.a=new q(Ye,n,10,11)),n.a)),r=new ie(ce(Sl(n).a.Kc(),new En));pe(r);)i=u(fe(r),74),L(N((!i.b&&(i.b=new Dn(he,i,4,7)),i.b),0),193)||(s=Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84)),e.a._b(s)||(t=c.a.zc(s,c),t==null));return c}function Vg(){Vg=R,oan=S(C(Ra,1),PK,28,14,[1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368e3,{l:3506176,m:794077,h:1},{l:884736,m:916411,h:20},{l:3342336,m:3912489,h:363},{l:589824,m:3034138,h:6914},{l:3407872,m:1962506,h:138294}]),y.Math.pow(2,-65)}function Sm(){Sm=R;var n,e;for(m3=F(l2,J,92,32,0,1),I8=F(l2,J,92,32,0,1),n=1,e=0;e<=18;e++)m3[e]=(dh(),Ec(n,0)>=0?ia(n):U6(ia(n1(n)))),I8[e]=SM(Ks(n,e),0)?ia(Ks(n,e)):U6(ia(n1(Ks(n,e)))),n=er(n,5);for(;e<I8.length;e++)m3[e]=Og(m3[e-1],m3[1]),I8[e]=Og(I8[e-1],(dh(),QF))}function Pqn(n,e){var t,i,r,c,s;if(n.c.length==0)return new bi(Y(0),Y(0));for(t=(Nn(0,n.c.length),u(n.c[0],12)).j,s=0,c=e.g,i=e.g+1;s<n.c.length-1&&t.g<c;)++s,t=(Nn(s,n.c.length),u(n.c[s],12)).j;for(r=s;r<n.c.length-1&&t.g<i;)++r,t=(Nn(s,n.c.length),u(n.c[s],12)).j;return new bi(Y(s),Y(r))}function gSe(n,e,t,i){var r,c,s,f,h,l,a;h=uc(e,t),(t==(en(),ae)||t==Wn)&&(h=Qo(h)),s=!1;do for(r=!1,c=0;c<h.gc()-1;c++)l=u(h.Xb(c),12),f=u(h.Xb(c+1),12),nje(n,l,f,i)&&(s=!0,FD(n.a,u(h.Xb(c),12),u(h.Xb(c+1),12)),a=u(h.Xb(c+1),12),h.hd(c+1,u(h.Xb(c),12)),h.hd(c,a),r=!0);while(r);return s}function pSe(n,e,t){var i,r,c,s;for(t.Ug(aVn,1),r=u(Wr(ut(new Cn(null,new On(e.b,16)),new l4n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),eHn(n,r,0),s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),40),i=ee(n.a,Y(c.g))!=null?u(ee(n.a,Y(c.g)),17).a:0,U(c,(lc(),Ph),Y(i));t.Vg()}function NS(n,e,t){var i,r,c,s,f,h,l,a;return f=e.i-n.g/2,h=t.i-n.g/2,l=e.j-n.g/2,a=t.j-n.g/2,c=e.g+n.g,s=t.g+n.g,i=e.f+n.g,r=t.f+n.g,f<h+s&&h<f&&l<a+r&&a<l||h<f+c&&f<h&&a<l+i&&l<a||f<h+s&&h<f&&l<a&&a<l+i?!0:h<f+c&&f<h&&l<a+r&&a<l}function mSe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=e.c.length,s=(Nn(t,e.c.length),u(e.c[t],293)),f=s.a.o.a,d=s.c,g=0,l=s.c;l<=s.f;l++){if(f<=n.a[l])return l;for(a=n.a[l],h=null,r=t+1;r<c;r++)i=(Nn(r,e.c.length),u(e.c[r],293)),i.c<=l&&i.f>=l&&(h=i);h&&(a=y.Math.max(a,h.a.o.a)),a>g&&(d=l,g=a)}return d}function vSe(n){var e,t,i,r,c,s,f;for(c=new Ul(u(Pe(new k0n),50)),f=li,t=new M(n.d);t.a<t.c.c.length;){for(e=u(E(t),226),f=e.c.c;c.a.gc()!=0&&(s=u(c.a.Tc(),226),s.c.c+s.c.b<f);)c.a.Bc(s)!=null;for(r=c.a.ec().Kc();r.Ob();)i=u(r.Pb(),226),Re(i.b,e),Re(e.b,i);c.a.zc(e,(_n(),ga))==null}}function Iqn(n,e,t){var i,r,c,s,f;if(!D4(e)){for(f=t.eh((L(e,16)?u(e,16).gc():wl(e.Kc()))/n.a|0),f.Ug(dVn,1),s=new d4n,c=null,r=e.Kc();r.Ob();)i=u(r.Pb(),40),s=Eo(S(C(Ao,1),Kn,20,0,[s,new sl(i)])),c&&(U(c,(pt(),dre),i),U(i,cq,c),n$(i)==n$(c)&&(U(c,uq,i),U(i,$O,c))),c=i;f.Vg(),Iqn(n,s,t)}}function kSe(n,e){var t,i,r;if(e==null){for(i=(!n.a&&(n.a=new q(Kl,n,9,5)),new ne(n.a));i.e!=i.i.gc();)if(t=u(ue(i),694),r=t.c,(r??t.zb)==null)return t}else for(i=(!n.a&&(n.a=new q(Kl,n,9,5)),new ne(n.a));i.e!=i.i.gc();)if(t=u(ue(i),694),Sn(e,(r=t.c,r??t.zb)))return t;return null}function kR(n,e){var t;switch(t=null,e.g){case 1:n.e.pf((He(),iU))&&(t=u(n.e.of(iU),256));break;case 3:n.e.pf((He(),rU))&&(t=u(n.e.of(rU),256));break;case 2:n.e.pf((He(),tU))&&(t=u(n.e.of(tU),256));break;case 4:n.e.pf((He(),cU))&&(t=u(n.e.of(cU),256))}return!t&&(t=u(n.e.of((He(),xan)),256)),t}function Oqn(n,e,t){var i,r,c,s,f,h;for(r=t,c=0,f=new M(e);f.a<f.c.c.length;)s=u(E(f),27),ht(s,(oa(),_O),Y(r++)),h=aw(s),i=y.Math.atan2(s.j+s.f/2,s.i+s.g/2),i+=i<0?Md:0,i<.7853981633974483||i>jVn?Yt(h,n.b):i<=jVn&&i>EVn?Yt(h,n.d):i<=EVn&&i>MVn?Yt(h,n.c):i<=MVn&&Yt(h,n.a),c=Oqn(n,h,c);return r}function Aqn(n,e,t,i){var r,c,s,f,h,l;for(r=(i.c+i.a)/2,vo(e.j),Re(e.j,r),vo(t.e),Re(t.e,r),l=new Zjn,f=new M(n.f);f.a<f.c.c.length;)c=u(E(f),132),h=c.a,Xx(l,e,h),Xx(l,t,h);for(s=new M(n.k);s.a<s.c.c.length;)c=u(E(s),132),h=c.b,Xx(l,e,h),Xx(l,t,h);return l.b+=2,l.a+=BOn(e,n.q),l.a+=BOn(n.q,t),l}function ySe(n,e,t){var i;t.Ug("Processor arrange node",1),on(un(v(e,(lc(),Cln)))),i=u(ho(im(ut(new Cn(null,new On(e.b,16)),new L4n))),40),n.a=u(v(e,$ln),353),n.a==(b5(),hq)||n.a==KO?qGn(n,new Fu(S(C(DO,1),AP,40,0,[i])),t.eh(1)):n.a==fq&&pzn(n,new Fu(S(C(DO,1),AP,40,0,[i])),t.eh(1)),t.Vg()}function Bf(){Bf=R,zO=new Di((He(),x2),1.3),$ce=new Di(Vw,(_n(),!1)),k1n=new fb(15),h9=new Di(M1,k1n),l9=new Di(qd,15),Ace=Gj,Dce=Hd,xce=_2,Rce=Ca,Nce=F2,Aq=Wj,Kce=Ww,M1n=(Ten(),Pce),E1n=Sce,Nq=Oce,T1n=Ice,v1n=Mce,Lq=Ece,m1n=jce,j1n=Cce,p1n=Vj,Lce=eU,Bj=kce,g1n=vce,Fj=yce,y1n=Tce}function Lqn(n){var e,t,i,r,c,s,f;for(t=n.i,e=n.n,f=t.d,n.f==(bu(),ma)?f+=(t.a-n.e.b)/2:n.f==Xs&&(f+=t.a-n.e.b),r=new M(n.d);r.a<r.c.c.length;){switch(i=u(E(r),187),s=i.Mf(),c=new Ni,c.b=f,f+=s.b+n.a,n.b.g){case 0:c.a=t.c+e.b;break;case 1:c.a=t.c+e.b+(t.b-s.a)/2;break;case 2:c.a=t.c+t.b-e.c-s.a}i.Of(c)}}function Nqn(n){var e,t,i,r,c,s,f;for(t=n.i,e=n.n,f=t.c,n.b==(Uu(),pa)?f+=(t.b-n.e.a)/2:n.b==zs&&(f+=t.b-n.e.a),r=new M(n.d);r.a<r.c.c.length;){switch(i=u(E(r),187),s=i.Mf(),c=new Ni,c.a=f,f+=s.a+n.a,n.f.g){case 0:c.b=t.d+e.d;break;case 1:c.b=t.d+e.d+(t.a-s.b)/2;break;case 2:c.b=t.d+t.a-e.a-s.b}i.Of(c)}}function jSe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;a=t.a.c,s=t.a.c+t.a.b,c=u(ee(t.c,e),468),p=c.f,m=c.a,h=new V(a,p),d=new V(s,m),r=a,t.p||(r+=n.c),r+=t.F+t.v*n.b,l=new V(r,p),g=new V(r,m),r5(e.a,S(C(Ei,1),J,8,0,[h,l])),f=t.d.a.gc()>1,f&&(i=new V(r,t.b),Re(e.a,i)),r5(e.a,S(C(Ei,1),J,8,0,[g,d]))}function den(n,e,t){var i,r;for(e<n.d.b.c.length?(n.b=u(sn(n.d.b,e),30),n.a=u(sn(n.d.b,e-1),30),n.c=e):(n.a=new Nc(n.d),n.a.p=e-1,nn(n.d.b,n.a),n.b=new Nc(n.d),n.b.p=e,nn(n.d.b,n.b),n.c=e),$i(t,n.b),r=new ie(ce(ji(t).a.Kc(),new En));pe(r);)i=u(fe(r),18),!i.c.i.c&&i.c.i.k==(Vn(),Sc)&&$i(i.c.i,n.a)}function Dqn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,KP),"ELK Randomizer"),'Distributes the nodes randomly on the plane, leading to very obfuscating layouts. Can be useful to demonstrate the power of "real" layout algorithms.'),new Vmn))),Q(n,KP,Wb,wdn),Q(n,KP,yw,15),Q(n,KP,uP,Y(0)),Q(n,KP,l3,Gm)}function ben(){ben=R;var n,e,t,i,r,c;for(K9=F(Ru,s2,28,255,15,1),PA=F(fs,gh,28,16,15,1),e=0;e<255;e++)K9[e]=-1;for(t=57;t>=48;t--)K9[t]=t-48<<24>>24;for(i=70;i>=65;i--)K9[i]=i-65+10<<24>>24;for(r=102;r>=97;r--)K9[r]=r-97+10<<24>>24;for(c=0;c<10;c++)PA[c]=48+c&ui;for(n=10;n<=15;n++)PA[n]=65+n-10&ui}function ESe(n,e){e.Ug("Process graph bounds",1),U(n,(pt(),iq),a7(A$(U0(new Cn(null,new On(n.b,16)),new r4n)))),U(n,rq,a7(A$(U0(new Cn(null,new On(n.b,16)),new c4n)))),U(n,vln,a7(O$(U0(new Cn(null,new On(n.b,16)),new u4n)))),U(n,kln,a7(O$(U0(new Cn(null,new On(n.b,16)),new o4n)))),e.Vg()}function MSe(n){var e,t,i,r,c;r=u(v(n,(cn(),xd)),21),c=u(v(n,kO),21),t=new V(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),e=new rr(t),r.Hc((go(),Qw))&&(i=u(v(n,Ev),8),c.Hc((io(),_v))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),e.a=y.Math.max(t.a,i.a),e.b=y.Math.max(t.b,i.b)),on(un(v(n,SH)))||nOe(n,t,e)}function TSe(n,e){var t,i,r,c;for(c=uc(e,(en(),ae)).Kc();c.Ob();)i=u(c.Pb(),12),t=u(v(i,(W(),Xu)),10),t&&qs(Ns(Ls(Ds(As(new hs,0),.1),n.i[e.p].d),n.i[t.p].a));for(r=uc(e,Xn).Kc();r.Ob();)i=u(r.Pb(),12),t=u(v(i,(W(),Xu)),10),t&&qs(Ns(Ls(Ds(As(new hs,0),.1),n.i[t.p].d),n.i[e.p].a))}function yR(n){var e,t,i,r,c,s;if(!n.c){if(s=new kvn,e=D9,c=e.a.zc(n,e),c==null){for(i=new ne(Pc(n));i.e!=i.i.gc();)t=u(ue(i),89),r=KS(t),L(r,90)&&Kt(s,yR(u(r,29))),ve(s,t);e.a.Bc(n)!=null,e.a.gc()==0}k8e(s),ew(s),n.c=new pg((u(N(H((G1(),Hn).o),15),19),s.i),s.g),Zu(n).b&=-33}return n.c}function wen(n){var e;if(n.c!=10)throw T(new Ne($e((Oe(),qP))));switch(e=n.a,e){case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw T(new Ne($e((Oe(),is))))}return e}function $qn(n){var e,t,i,r,c;if(n.l==0&&n.m==0&&n.h==0)return"0";if(n.h==Cy&&n.m==0&&n.l==0)return"-9223372036854775808";if(n.h>>19)return"-"+$qn(tm(n));for(t=n,i="";!(t.l==0&&t.m==0&&t.h==0);){if(r=QD(QS),t=Wen(t,r,!0),e=""+cEn(wa),!(t.l==0&&t.m==0&&t.h==0))for(c=9-e.length;c>0;c--)e="0"+e;i=e+i}return i}function CSe(n){var e,t,i,r,c,s,f;for(e=!1,t=0,r=new M(n.d.b);r.a<r.c.c.length;)for(i=u(E(r),30),i.p=t++,s=new M(i.a);s.a<s.c.c.length;)c=u(E(s),10),!e&&!D4(Ml(c))&&(e=!0);f=yt((ci(),Jf),S(C(y9,1),G,88,0,[Kr,Xr])),e||(_s(f,us),_s(f,Wf)),n.a=new m$n(f),Hu(n.f),Hu(n.b),Hu(n.e),Hu(n.g)}function SSe(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var n="__proto__",e=Object.create(null);if(e[n]!==void 0)return!1;var t=Object.getOwnPropertyNames(e);return!(t.length!=0||(e[n]=42,e[n]!==42)||Object.getOwnPropertyNames(e).length==0)}function PSe(n,e,t){var i,r,c,s,f,h,l,a,d;for(i=t.c,r=t.d,f=Of(e.c),h=Of(e.d),i==e.c?(f=nen(n,f,r),h=HFn(e.d)):(f=HFn(e.c),h=nen(n,h,r)),l=new GE(e.a),xt(l,f,l.a,l.a.a),xt(l,h,l.c.b,l.c),s=e.c==i,d=new _yn,c=0;c<l.b-1;++c)a=new bi(u(Zo(l,c),8),u(Zo(l,c+1),8)),s&&c==0||!s&&c==l.b-2?d.b=a:nn(d.a,a);return d}function ISe(n,e){var t,i,r,c;if(c=n.j.g-e.j.g,c!=0)return c;if(t=u(v(n,(cn(),v1)),17),i=u(v(e,v1),17),t&&i&&(r=t.a-i.a,r!=0))return r;switch(n.j.g){case 1:return bt(n.n.a,e.n.a);case 2:return bt(n.n.b,e.n.b);case 3:return bt(e.n.a,n.n.a);case 4:return bt(e.n.b,n.n.b);default:throw T(new Ar(tin))}}function gen(n,e,t,i){var r,c,s,f,h;if(wl((N7(),new ie(ce(Ml(e).a.Kc(),new En))))>=n.a||!QZ(e,t))return-1;if(D4(u(i.Kb(e),20)))return 1;for(r=0,s=u(i.Kb(e),20).Kc();s.Ob();)if(c=u(s.Pb(),18),h=c.c.i==e?c.d.i:c.c.i,f=gen(n,h,t,i),f==-1||(r=y.Math.max(r,f),r>n.c-1))return-1;return r+1}function xqn(n,e){var t,i,r,c,s,f;if(x(e)===x(n))return!0;if(!L(e,15)||(i=u(e,15),f=n.gc(),i.gc()!=f))return!1;if(s=i.Kc(),n.Yi()){for(t=0;t<f;++t)if(r=n.Vi(t),c=s.Pb(),r==null?c!=null:!rt(r,c))return!1}else for(t=0;t<f;++t)if(r=n.Vi(t),c=s.Pb(),x(r)!==x(c))return!1;return!0}function Rqn(n,e){var t,i,r,c,s,f;if(n.f>0){if(n._j(),e!=null){for(c=0;c<n.d.length;++c)if(t=n.d[c],t){for(i=u(t.g,379),f=t.i,s=0;s<f;++s)if(r=i[s],rt(e,r.md()))return!0}}else for(c=0;c<n.d.length;++c)if(t=n.d[c],t){for(i=u(t.g,379),f=t.i,s=0;s<f;++s)if(r=i[s],x(e)===x(r.md()))return!0}}return!1}function OSe(n,e){var t,i,r;return t=e.qi(n.a),t&&(r=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),"affiliation")),r!=null)?(i=RM(r,wu(35)),i==-1?rx(n,B6(n,jo(e.qk())),r):i==0?rx(n,null,(zn(1,r.length+1),r.substr(1))):rx(n,(Ri(0,i,r.length),r.substr(0,i)),(zn(i+1,r.length+1),r.substr(i+1)))):null}function ASe(n,e,t){var i,r,c,s;t.Ug("Orthogonally routing hierarchical port edges",1),n.a=0,i=COe(e),AAe(e,i),wAe(n,e,i),ALe(e),r=u(v(e,(cn(),Ft)),101),c=e.b,BGn((Nn(0,c.c.length),u(c.c[0],30)),r,e),BGn(u(sn(c,c.c.length-1),30),r,e),s=e.b,WUn((Nn(0,s.c.length),u(s.c[0],30))),WUn(u(sn(s,s.c.length-1),30)),t.Vg()}function pen(n){switch(n){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n-48<<24>>24;case 97:case 98:case 99:case 100:case 101:case 102:return n-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return n-65+10<<24>>24;default:throw T(new th("Invalid hexadecimal"))}}function DS(){DS=R,eon=new ag("SPIRAL",0),Qun=new ag("LINE_BY_LINE",1),Yun=new ag("MANHATTAN",2),Jun=new ag("JITTER",3),s_=new ag("QUADRANTS_LINE_BY_LINE",4),non=new ag("QUADRANTS_MANHATTAN",5),Zun=new ag("QUADRANTS_JITTER",6),Wun=new ag("COMBINE_LINE_BY_LINE_MANHATTAN",7),Vun=new ag("COMBINE_JITTER_MANHATTAN",8)}function Kqn(n,e,t,i){var r,c,s,f,h,l;for(h=zx(n,t),l=zx(e,t),r=!1;h&&l&&(i||E7e(h,l,t));)s=zx(h,t),f=zx(l,t),fk(e),fk(n),c=h.c,XR(h,!1),XR(l,!1),t?(uw(e,l.p,c),e.p=l.p,uw(n,h.p+1,c),n.p=h.p):(uw(n,h.p,c),n.p=h.p,uw(e,l.p+1,c),e.p=l.p),$i(h,null),$i(l,null),h=s,l=f,r=!0;return r}function Bqn(n){switch(n.g){case 0:return new Y5n;case 1:return new J5n;case 3:return new dMn;case 4:return new Xpn;case 5:return new _Sn;case 6:return new Q5n;case 2:return new W5n;case 7:return new q5n;case 8:return new G5n;default:throw T(new Gn("No implementation is available for the layerer "+(n.f!=null?n.f:""+n.g)))}}function LSe(n,e,t,i){var r,c,s,f,h;for(r=!1,c=!1,f=new M(i.j);f.a<f.c.c.length;)s=u(E(f),12),x(v(s,(W(),st)))===x(t)&&(s.g.c.length==0?s.e.c.length==0||(r=!0):c=!0);return h=0,r&&r^c?h=t.j==(en(),Xn)?-n.e[i.c.p][i.p]:e-n.e[i.c.p][i.p]:c&&r^c?h=n.e[i.c.p][i.p]+1:r&&c&&(h=t.j==(en(),Xn)?0:e/2),h}function jR(n,e,t,i,r,c,s,f){var h,l,a;for(h=0,e!=null&&(h^=t1(e.toLowerCase())),t!=null&&(h^=t1(t)),i!=null&&(h^=t1(i)),s!=null&&(h^=t1(s)),f!=null&&(h^=t1(f)),l=0,a=c.length;l<a;l++)h^=t1(c[l]);n?h|=256:h&=-257,r?h|=16:h&=-17,this.f=h,this.i=e==null?null:(Jn(e),e),this.a=t,this.d=i,this.j=c,this.g=s,this.e=f}function men(n,e,t){var i,r;switch(r=null,e.g){case 1:r=(Au(),Ron);break;case 2:r=(Au(),Bon)}switch(i=null,t.g){case 1:i=(Au(),Kon);break;case 2:i=(Au(),xon);break;case 3:i=(Au(),Fon);break;case 4:i=(Au(),_on)}return r&&i?Mp(n.j,new S8n(new Fu(S(C(cDe,1),Kn,178,0,[u(Pe(r),178),u(Pe(i),178)])))):(Ln(),Ln(),sr)}function NSe(n){var e,t,i;switch(e=u(v(n,(cn(),Ev)),8),U(n,Ev,new V(e.b,e.a)),u(v(n,Ch),255).g){case 1:U(n,Ch,(Bh(),eA));break;case 2:U(n,Ch,(Bh(),ZO));break;case 3:U(n,Ch,(Bh(),qj));break;case 4:U(n,Ch,(Bh(),Uj))}(n.q?n.q:(Ln(),Ln(),Wh))._b(Hw)&&(t=u(v(n,Hw),8),i=t.a,t.a=t.b,t.b=i)}function Fqn(n,e,t,i,r,c){if(this.b=t,this.d=r,n>=e.length)throw T(new Or("Greedy SwitchDecider: Free layer not in graph."));this.c=e[n],this.e=new L7(i),C$(this.e,this.c,(en(),Wn)),this.i=new L7(i),C$(this.i,this.c,Zn),this.f=new rIn(this.c),this.a=!c&&r.i&&!r.s&&this.c[0].k==(Vn(),Zt),this.a&&zje(this,n,e.length)}function _qn(n,e){var t,i,r,c,s,f;c=!n.B.Hc((io(),cE)),s=n.B.Hc(dU),n.a=new SKn(s,c,n.c),n.n&&VW(n.a.n,n.n),mL(n.g,(wf(),Wc),n.a),e||(i=new E5(1,c,n.c),i.n.a=n.k,Ip(n.p,(en(),Xn),i),r=new E5(1,c,n.c),r.n.d=n.k,Ip(n.p,ae,r),f=new E5(0,c,n.c),f.n.c=n.k,Ip(n.p,Wn,f),t=new E5(0,c,n.c),t.n.b=n.k,Ip(n.p,Zn,t))}function DSe(n){var e,t,i;switch(e=u(v(n.d,(cn(),$l)),223),e.g){case 2:t=jNe(n);break;case 3:t=(i=new Z,qt(ut(_r(rc(rc(new Cn(null,new On(n.d.b,16)),new ipn),new rpn),new cpn),new U2n),new E7n(i)),i);break;default:throw T(new Ar("Compaction not supported for "+e+" edges."))}UOe(n,t),qi(new qa(n.g),new y7n(n))}function $Se(n,e){var t,i,r,c,s,f,h;if(e.Ug("Process directions",1),t=u(v(n,(lc(),v0)),88),t!=(ci(),Wf))for(r=ge(n.b,0);r.b!=r.d.c;){switch(i=u(be(r),40),f=u(v(i,(pt(),$j)),17).a,h=u(v(i,xj),17).a,t.g){case 4:h*=-1;break;case 1:c=f,f=h,h=c;break;case 2:s=f,f=-h,h=s}U(i,$j,Y(f)),U(i,xj,Y(h))}e.Vg()}function xSe(n,e){var t;return t=new xA,e&&Ur(t,u(ee(n.a,oE),96)),L(e,422)&&Ur(t,u(ee(n.a,sE),96)),L(e,366)?(Ur(t,u(ee(n.a,Sr),96)),t):(L(e,84)&&Ur(t,u(ee(n.a,he),96)),L(e,207)?(Ur(t,u(ee(n.a,Ye),96)),t):L(e,193)?(Ur(t,u(ee(n.a,Qu),96)),t):(L(e,326)&&Ur(t,u(ee(n.a,Vt),96)),t))}function RSe(n){var e,t,i,r,c,s,f,h;for(h=new yNn,f=new M(n.a);f.a<f.c.c.length;)if(s=u(E(f),10),s.k!=(Vn(),Zt)){for(BMe(h,s,new Ni),c=new ie(ce(Qt(s).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),!(r.c.i.k==Zt||r.d.i.k==Zt))for(i=ge(r.a,0);i.b!=i.d.c;)t=u(be(i),8),e=t,O5(h,new d4(e.a,e.b))}return h}function ER(){ER=R,Q1n=new lt(YB),J1n=(s6(),Hj),W1n=new Tn(eF,J1n),V1n=(Tk(),YO),sue=new Tn(ocn,V1n),X1n=(Jk(),Fq),oue=new Tn(scn,X1n),rue=new Tn(ZB,null),z1n=(ik(),JO),uue=new Tn(nF,z1n),G1n=(eM(),Rq),nue=new Tn(fcn,G1n),eue=new Tn(hcn,(_n(),!1)),tue=new Tn(lcn,Y(64)),iue=new Tn(acn,!0),cue=Bq}function Hqn(n,e){var t,i,r,c,s,f,h,l,a,d;for(n.p=1,r=n.c,d=new rh,a=Rb(n,(gr(),Jc)).Kc();a.Ob();)for(l=u(a.Pb(),12),i=new M(l.g);i.a<i.c.c.length;)t=u(E(i),18),h=t.d.i,n!=h&&(c=h.c,c.p<=r.p&&(s=r.p+1,s==e.b.c.length?(f=new Nc(e),f.p=s,nn(e.b,f),$i(h,f)):(f=u(sn(e.b,s),30),$i(h,f)),d.a.zc(h,d)));return d}function KSe(n,e){var t,i;if(t=u(v(n,(pt(),nq)),15),!t||t.gc()<1)return null;if(t.gc()==1)return u(t.Xb(0),40);switch(i=null,e.g){case 2:i=u(ho(Sp(t.Oc(),new e4n)),40);break;case 1:i=u(ho(_0(t.Oc(),new Q3n)),40);break;case 4:i=u(ho(Sp(t.Oc(),new Y3n)),40);break;case 3:i=u(ho(_0(t.Oc(),new Z3n)),40)}return i}function qqn(n){var e,t,i,r,c,s;if(n.a==null)if(n.a=F(so,Xh,28,n.c.b.c.length,16,1),n.a[0]=!1,kt(n.c,(cn(),NH)))for(i=u(v(n.c,NH),15),t=i.Kc();t.Ob();)e=u(t.Pb(),17).a,e>0&&e<n.a.length&&(n.a[e]=!1);else for(s=new M(n.c.b),s.a<s.c.c.length&&E(s),r=1;s.a<s.c.c.length;)c=u(E(s),30),n.a[r++]=kTe(c)}function _h(){_h=R,s9=new lt("additionalHeight"),Dv=new lt("drawingHeight"),A3=new lt("drawingWidth"),UO=new lt("minHeight"),f9=new lt("minWidth"),GO=new lt("rows"),Xw=new lt("targetWidth"),Iq=new Lt("minRowIncrease",0),pce=new Lt("maxRowIncrease",0),Pq=new Lt("minRowDecrease",0),gce=new Lt("maxRowDecrease",0)}function Uqn(n,e){var t,i,r,c;switch(r=n.b,e){case 1:{n.b|=1,n.b|=4,n.b|=8;break}case 2:{n.b|=2,n.b|=4,n.b|=8;break}case 4:{n.b|=1,n.b|=2,n.b|=4,n.b|=8;break}case 3:{n.b|=16,n.b|=8;break}case 0:{n.b|=32,n.b|=16,n.b|=8,n.b|=1,n.b|=2,n.b|=4;break}}if(n.b!=r&&n.c)for(i=new ne(n.c);i.e!=i.i.gc();)c=u(ue(i),482),t=Zu(c),hw(t,e)}function Gqn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;for(r=!1,s=e,f=0,h=s.length;f<h;++f)c=s[f],on((_n(),!!c.e))&&!u(sn(n.b,c.e.p),219).s&&(r=r|(l=c.e,a=u(sn(n.b,l.p),219),d=a.e,g=Xjn(t,d.length),p=d[g][0],p.k==(Vn(),Zt)?d[g]=gCe(c,d[g],t?(en(),Wn):(en(),Zn)):a.c.mg(d,t),m=sy(n,a,t,i),hen(a.e,a.o,t),m));return r}function zqn(n,e){var t,i,r,c,s;for(c=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i,r=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));r.e!=r.i.gc();)i=u(ue(r),27),x(z(i,(He(),B2)))!==x((jl(),E9))&&(s=u(z(e,q2),143),t=u(z(i,q2),143),(s==t||s&&IJ(s,t))&&(!i.a&&(i.a=new q(Ye,i,10,11)),i.a).i!=0&&(c+=zqn(n,i)));return c}function BSe(n){var e,t,i,r,c,s,f;for(i=0,f=0,s=new M(n.d);s.a<s.c.c.length;)c=u(E(s),105),r=u(Wr(ut(new Cn(null,new On(c.j,16)),new GU),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),t=null,i<=f?(t=(en(),Xn),i+=r.gc()):f<i&&(t=(en(),ae),f+=r.gc()),e=t,qt(_r(r.Oc(),new Mpn),new C7n(e))}function FSe(n){var e,t,i,r,c;for(c=new Gc(n.a.c.length),r=new M(n.a);r.a<r.c.c.length;){switch(i=u(E(r),10),t=u(v(i,(cn(),ou)),171),e=null,t.g){case 1:case 2:e=(hd(),m2);break;case 3:case 4:e=(hd(),mv)}e?(U(i,(W(),rO),(hd(),m2)),e==mv?OS(i,t,(gr(),Vu)):e==m2&&OS(i,t,(gr(),Jc))):Fn(c.c,i)}return c}function _Se(n){var e,t,i,r,c,s,f,h;for(n.b=new rHn(new Fu((en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]))),new Fu((Lb(),S(C(K_,1),G,372,0,[u0,va,c0])))),s=S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]),f=0,h=s.length;f<h;++f)for(c=s[f],t=S(C(K_,1),G,372,0,[u0,va,c0]),i=0,r=t.length;i<r;++i)e=t[i],Nke(n.b,c,e,new Z)}function Xqn(n,e){var t,i,r,c,s,f,h,l,a,d;if(s=u(u(ot(n.r,e),21),87),f=n.u.Hc((zu(),Oa)),t=n.u.Hc(S9),i=n.u.Hc(C9),l=n.u.Hc(K3),d=n.B.Hc((io(),lA)),a=!t&&!i&&(l||s.gc()==2),BCe(n,e),r=null,h=null,f){for(c=s.Kc(),r=u(c.Pb(),117),h=r;c.Ob();)h=u(c.Pb(),117);r.d.b=0,h.d.c=0,a&&!r.a&&(r.d.c=0)}d&&(Lye(s),f&&(r.d.b=0,h.d.c=0))}function Vqn(n,e){var t,i,r,c,s,f,h,l,a,d;if(s=u(u(ot(n.r,e),21),87),f=n.u.Hc((zu(),Oa)),t=n.u.Hc(S9),i=n.u.Hc(C9),h=n.u.Hc(K3),d=n.B.Hc((io(),lA)),l=!t&&!i&&(h||s.gc()==2),oIe(n,e),a=null,r=null,f){for(c=s.Kc(),a=u(c.Pb(),117),r=a;c.Ob();)r=u(c.Pb(),117);a.d.d=0,r.d.a=0,l&&!a.a&&(a.d.a=0)}d&&(Nye(s),f&&(a.d.d=0,r.d.a=0))}function Wqn(n,e,t){var i,r,c,s,f,h,l,a;if(r=e.k,e.p>=0)return!1;if(e.p=t.b,nn(t.e,e),r==(Vn(),Ti)||r==_c){for(s=new M(e.j);s.a<s.c.c.length;)for(c=u(E(s),12),a=(i=new M(new ip(c).a.g),new NG(i));tc(a.a);)if(l=u(E(a.a),18).d,f=l.i,h=f.k,e.c!=f.c&&(h==Ti||h==_c)&&Wqn(n,f,t))return!0}return!0}function $S(n){var e;return n.Db&64?Bnn(n):(e=new ls(Bnn(n)),e.a+=" (changeable: ",ql(e,(n.Bb&Gs)!=0),e.a+=", volatile: ",ql(e,(n.Bb&Cw)!=0),e.a+=", transient: ",ql(e,(n.Bb&vw)!=0),e.a+=", defaultValueLiteral: ",Er(e,n.j),e.a+=", unsettable: ",ql(e,(n.Bb&$u)!=0),e.a+=", derived: ",ql(e,(n.Bb&wh)!=0),e.a+=")",e.a)}function HSe(n,e){var t,i,r,c,s;return r=e.qi(n.a),r&&(i=(!r.b&&(r.b=new lo((An(),ar),pc,r)),r.b),t=Ae(gf(i,Ji)),t!=null&&(c=t.lastIndexOf("#"),s=c==-1?tV(n,e.jk(),t):c==0?ok(n,null,(zn(1,t.length+1),t.substr(1))):ok(n,(Ri(0,c,t.length),t.substr(0,c)),(zn(c+1,t.length+1),t.substr(c+1))),L(s,156)))?u(s,156):null}function qSe(n,e){var t,i,r,c,s;return i=e.qi(n.a),i&&(t=(!i.b&&(i.b=new lo((An(),ar),pc,i)),i.b),c=Ae(gf(t,IF)),c!=null&&(r=c.lastIndexOf("#"),s=r==-1?tV(n,e.jk(),c):r==0?ok(n,null,(zn(1,c.length+1),c.substr(1))):ok(n,(Ri(0,r,c.length),c.substr(0,r)),(zn(r+1,c.length+1),c.substr(r+1))),L(s,156)))?u(s,156):null}function USe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(r=FTe(n.d),s=u(v(n.b,(M5(),lon)),107),f=s.b+s.c,h=s.d+s.a,a=r.d.a*n.e+f,l=r.b.a*n.f+h,Xse(n.b,new V(a,l)),g=new M(n.g);g.a<g.c.c.length;)d=u(E(g),568),e=d.g-r.a.a,t=d.i-r.c.a,i=tt(iae(new V(e,t),d.a,d.b),ch(N6(Fi(SX(d.e)),d.d*d.a,d.c*d.b),-.5)),c=PX(d.e),The(d.e,mi(i,c))}function GSe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(e.Ug("Restoring reversed edges",1),h=new M(n.b);h.a<h.c.c.length;)for(f=u(E(h),30),a=new M(f.a);a.a<a.c.c.length;)for(l=u(E(a),10),g=new M(l.j);g.a<g.c.c.length;)for(d=u(E(g),12),s=hh(d.g),i=s,r=0,c=i.length;r<c;++r)t=i[r],on(un(v(t,(W(),zf))))&&Ub(t,!1);e.Vg()}function zSe(n,e,t,i){var r,c,s,f,h;for(h=F(Ii,J,109,(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,0,2),c=S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]),s=0,f=c.length;s<f;++s)r=c[s],h[r.g]=F(Ii,Cr,28,n.c[r.g],15,1);return lFn(h,n,Xn),lFn(h,n,ae),Kx(h,n,Xn,e,t,i),Kx(h,n,Zn,e,t,i),Kx(h,n,ae,e,t,i),Kx(h,n,Wn,e,t,i),h}function XSe(n,e,t){if(Zc(n.a,e)){if(sf(u(ee(n.a,e),49),t))return 1}else Ve(n.a,e,new ni);if(Zc(n.a,t)){if(sf(u(ee(n.a,t),49),e))return-1}else Ve(n.a,t,new ni);if(Zc(n.b,e)){if(sf(u(ee(n.b,e),49),t))return-1}else Ve(n.b,e,new ni);if(Zc(n.b,t)){if(sf(u(ee(n.b,t),49),e))return 1}else Ve(n.b,t,new ni);return 0}function VSe(n){var e,t,i,r,c,s;n.q==(Ai(),tl)||n.q==qc||(r=n.f.n.d+nT(u(Mr(n.b,(en(),Xn)),127))+n.c,e=n.f.n.a+nT(u(Mr(n.b,ae),127))+n.c,i=u(Mr(n.b,Zn),127),s=u(Mr(n.b,Wn),127),c=y.Math.max(0,i.n.d-r),c=y.Math.max(c,s.n.d-r),t=y.Math.max(0,i.n.a-e),t=y.Math.max(t,s.n.a-e),i.n.d=c,s.n.d=c,i.n.a=t,s.n.a=t)}function ven(n,e,t,i){var r,c,s,f,h,l;if(t==null){for(r=u(n.g,124),f=0;f<n.i;++f)if(s=r[f],s.Lk()==e)return cr(n,s,i)}return c=(dr(),u(e,69).xk()?u(t,76):Rh(e,t)),fo(n.e)?(l=!Rk(n,e),i=Xc(n,c,i),h=e.Jk()?V1(n,3,e,null,t,Am(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0),l):V1(n,1,e,e.ik(),t,-1,l),i?i.nj(h):i=h):i=Xc(n,c,i),i}function Jqn(){this.b=new Ql,this.d=new Ql,this.e=new Ql,this.c=new Ql,this.a=new de,this.f=new de,Pg(Ei,new Tmn,new Smn),Pg(san,new Kmn,new Bmn),Pg(Don,new Fmn,new _mn),Pg($on,new Hmn,new qmn),Pg(boe,new Umn,new Gmn),Pg(uDe,new Pmn,new Imn),Pg(fDe,new Omn,new Amn),Pg(oDe,new Lmn,new Nmn),Pg(sDe,new Dmn,new $mn),Pg(aDe,new xmn,new Rmn)}function B5(n,e){var t,i,r,c,s;for(n=n==null?gu:(Jn(n),n),r=0;r<e.length;r++)e[r]=UTe(e[r]);for(t=new fg,s=0,i=0;i<e.length&&(c=n.indexOf("%s",s),c!=-1);)t.a+=""+qo(n==null?gu:(Jn(n),n),s,c),Lc(t,e[i++]),s=c+2;if(aLn(t,n,s,n.length),i<e.length){for(t.a+=" [",Lc(t,e[i++]);i<e.length;)t.a+=ur,Lc(t,e[i++]);t.a+="]"}return t.a}function ken(n,e){var t,i,r,c,s,f,h;for(t=0,h=new M(e);h.a<h.c.c.length;){for(f=u(E(h),12),hY(n.b,n.d[f.p]),s=0,r=new Lf(f.b);tc(r.a)||tc(r.b);)i=u(tc(r.a)?E(r.a):E(r.b),18),fOn(i)?(c=Sz(n,f==i.c?i.d:i.c),c>n.d[f.p]&&(t+=SJ(n.b,c),W1(n.a,Y(c)))):++s;for(t+=n.b.d*s;!t6(n.a);)uQ(n.b,u(Pp(n.a),17).a)}return t}function Qqn(n){var e,t,i,r,c,s;return c=0,e=gs(n),e.kk()&&(c|=4),n.Bb&$u&&(c|=2),L(n,102)?(t=u(n,19),r=br(t),t.Bb&kc&&(c|=32),r&&(se(G0(r)),c|=8,s=r.t,(s>1||s==-1)&&(c|=16),r.Bb&kc&&(c|=64)),t.Bb&hr&&(c|=Cw),c|=Gs):L(e,469)?c|=512:(i=e.kk(),i&&i.i&1&&(c|=256)),n.Bb&512&&(c|=128),c}function WSe(n,e){var t;return n.f==CU?(t=yb(Nr((Lu(),zi),e)),n.e?t==4&&e!=(n3(),_3)&&e!=(n3(),F3)&&e!=(n3(),SU)&&e!=(n3(),PU):t==2):n.d&&(n.d.Hc(e)||n.d.Hc($p(Nr((Lu(),zi),e)))||n.d.Hc(Qg((Lu(),zi),n.b,e)))?!0:n.f&&ien((Lu(),n.f),q7(Nr(zi,e)))?(t=yb(Nr(zi,e)),n.e?t==4:t==2):!1}function JSe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(g=-1,p=0,l=n,a=0,d=l.length;a<d;++a){for(h=l[a],c=h,s=0,f=c.length;s<f;++s)for(r=c[s],e=new CLn(g==-1?n[0]:n[g],u(v(Hi(r),(cn(),Yh)),284),rFn(r),on(un(v(Hi(r),mH)))),t=0;t<r.j.c.length;t++)for(i=t+1;i<r.j.c.length;i++)PIn(e,u(sn(r.j,t),12),u(sn(r.j,i),12))>0&&++p;++g}return p}function QSe(n,e,t,i){var r,c,s,f,h,l,a,d;return s=u(z(t,(He(),D3)),8),h=s.a,a=s.b+n,r=y.Math.atan2(a,h),r<0&&(r+=Md),r+=e,r>Md&&(r-=Md),f=u(z(i,D3),8),l=f.a,d=f.b+n,c=y.Math.atan2(d,l),c<0&&(c+=Md),c+=e,c>Md&&(c-=Md),Cf(),Fs(1e-10),y.Math.abs(r-c)<=1e-10||r==c||isNaN(r)&&isNaN(c)?0:r<c?-1:r>c?1:sb(isNaN(r),isNaN(c))}function MR(n){var e,t,i,r,c,s,f;for(f=new de,i=new M(n.a.b);i.a<i.c.c.length;)e=u(E(i),60),Ve(f,e,new Z);for(r=new M(n.a.b);r.a<r.c.c.length;)for(e=u(E(r),60),e.i=li,s=e.c.Kc();s.Ob();)c=u(s.Pb(),60),u(Fr(wr(f.f,c)),15).Fc(e);for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),60),e.c.$b(),e.c=u(Fr(wr(f.f,e)),15);vqn(n)}function TR(n){var e,t,i,r,c,s,f;for(f=new de,i=new M(n.a.b);i.a<i.c.c.length;)e=u(E(i),86),Ve(f,e,new Z);for(r=new M(n.a.b);r.a<r.c.c.length;)for(e=u(E(r),86),e.o=li,s=e.f.Kc();s.Ob();)c=u(s.Pb(),86),u(Fr(wr(f.f,c)),15).Fc(e);for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),e.f.$b(),e.f=u(Fr(wr(f.f,e)),15);uqn(n)}function YSe(n,e,t,i){var r,c;for(tke(n,e,t,i),Vse(e,n.j-e.j+t),Wse(e,n.k-e.k+i),c=new M(e.f);c.a<c.c.c.length;)switch(r=u(E(c),334),r.a.g){case 0:em(n,e.g+r.b.a,0,e.g+r.c.a,e.i-1);break;case 1:em(n,e.g+e.o,e.i+r.b.a,n.o-1,e.i+r.c.a);break;case 2:em(n,e.g+r.b.a,e.i+e.p,e.g+r.c.a,n.p-1);break;default:em(n,0,e.i+r.b.a,e.g-1,e.i+r.c.a)}}function ZSe(n,e){var t,i,r,c,s,f,h,l;for(c=new Z,e.b.c.length=0,t=u(Wr(sJ(new Cn(null,new On(new qa(n.a.b),1))),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),r=t.Kc();r.Ob();)if(i=u(r.Pb(),17),s=kJ(n.a,i),s.b!=0)for(f=new Nc(e),Fn(c.c,f),f.p=i.a,l=ge(s,0);l.b!=l.d.c;)h=u(be(l),10),$i(h,f);hi(e.b,c)}function xS(n,e,t,i,r){var c,s,f;try{if(e>=n.o)throw T(new QG);f=e>>5,s=e&31,c=Ks(1,Se(Ks(s,1))),r?n.n[t][f]=lf(n.n[t][f],c):n.n[t][f]=vi(n.n[t][f],VV(c)),c=Ks(c,1),i?n.n[t][f]=lf(n.n[t][f],c):n.n[t][f]=vi(n.n[t][f],VV(c))}catch(h){throw h=Ot(h),L(h,333)?T(new Or(GK+n.o+"*"+n.p+zK+e+ur+t+XK)):T(h)}}function nPe(n,e,t,i){var r,c,s,f,h,l,a,d,g;for(g=new Ul(new z7n(n)),f=S(C(Qh,1),b1,10,0,[e,t]),h=0,l=f.length;h<l;++h)for(s=f[h],d=g5(s,i).Kc();d.Ob();)for(a=u(d.Pb(),12),c=new Lf(a.b);tc(c.a)||tc(c.b);)r=u(tc(c.a)?E(c.a):E(c.b),18),fr(r)||(g.a.zc(a,(_n(),ga))==null,fOn(r)&&B7(g,a==r.c?r.d:r.c));return Pe(g),new _u(g)}function yen(n,e,t,i){var r,c,s;e&&(c=$(B(v(e,(pt(),j1))))+i,s=t+$(B(v(e,xO)))/2,U(e,$j,Y(Se(vc(y.Math.round(c))))),U(e,xj,Y(Se(vc(y.Math.round(s))))),e.d.b==0||yen(n,u(DM((r=ge(new sl(e).a.d,0),new sg(r))),40),t+$(B(v(e,xO)))+n.b,i+$(B(v(e,Nv)))),v(e,uq)!=null&¥(n,u(v(e,uq),40),t,i))}function ePe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(h=Hi(e.a),r=$(B(v(h,(cn(),Kd))))*2,a=$(B(v(h,S2))),l=y.Math.max(r,a),c=F(Ii,Cr,28,e.f-e.c+1,15,1),i=-l,t=0,f=e.b.Kc();f.Ob();)s=u(f.Pb(),10),i+=n.a[s.c.p]+l,c[t++]=i;for(i+=n.a[e.a.c.p]+l,c[t++]=i,g=new M(e.e);g.a<g.c.c.length;)d=u(E(g),10),i+=n.a[d.c.p]+l,c[t++]=i;return c}function tPe(n,e){var t,i,r,c;if(c=u(z(n,(He(),H2)),64).g-u(z(e,H2),64).g,c!=0)return c;if(t=u(z(n,uU),17),i=u(z(e,uU),17),t&&i&&(r=t.a-i.a,r!=0))return r;switch(u(z(n,H2),64).g){case 1:return bt(n.i,e.i);case 2:return bt(n.j,e.j);case 3:return bt(e.i,n.i);case 4:return bt(e.j,n.j);default:throw T(new Ar(tin))}}function jen(n){var e,t,i;return n.Db&64?iR(n):(e=new mo(Ecn),t=n.k,t?Be(Be((e.a+=' "',e),t),'"'):(!n.n&&(n.n=new q(Sr,n,1,7)),n.n.i>0&&(i=(!n.n&&(n.n=new q(Sr,n,1,7)),u(N(n.n,0),135)).a,!i||Be(Be((e.a+=' "',e),i),'"'))),Be(tb(Be(tb(Be(tb(Be(tb((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function Yqn(n){var e,t,i;return n.Db&64?iR(n):(e=new mo(Mcn),t=n.k,t?Be(Be((e.a+=' "',e),t),'"'):(!n.n&&(n.n=new q(Sr,n,1,7)),n.n.i>0&&(i=(!n.n&&(n.n=new q(Sr,n,1,7)),u(N(n.n,0),135)).a,!i||Be(Be((e.a+=' "',e),i),'"'))),Be(tb(Be(tb(Be(tb(Be(tb((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function iPe(n,e){var t,i,r,c,s;for(e==(a5(),zH)&&Yk(u(ot(n.a,(ow(),gj)),15)),r=u(ot(n.a,(ow(),gj)),15).Kc();r.Ob();)switch(i=u(r.Pb(),105),t=u(sn(i.j,0),113).d.j,c=new _u(i.j),Yt(c,new apn),e.g){case 2:Qx(n,c,t,(Lb(),va),1);break;case 1:case 0:s=qTe(c),Qx(n,new Jl(c,0,s),t,(Lb(),va),0),Qx(n,new Jl(c,s,c.c.length),t,va,1)}}function CR(n,e){var t,i,r,c,s,f,h;if(e==null||e.length==0)return null;if(r=u(Dc(n.a,e),143),!r){for(i=(f=new ol(n.b).a.vc().Kc(),new P0(f));i.a.Ob();)if(t=(c=u(i.a.Pb(),44),u(c.md(),143)),s=t.c,h=e.length,Sn(s.substr(s.length-h,h),e)&&(e.length==s.length||Xi(s,s.length-e.length-1)==46)){if(r)return null;r=t}r&&Lr(n.a,e,r)}return r}function rPe(n,e){var t,i,r,c;return t=new C0n,i=u(Wr(_r(new Cn(null,new On(n.f,16)),t),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),Sw),Yr]))),21),r=i.gc(),i=u(Wr(_r(new Cn(null,new On(e.f,16)),t),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[Sw,Yr]))),21),c=i.gc(),r<c?-1:r==c?0:1}function Zqn(n){var e,t,i;kt(n,(cn(),a0))&&(i=u(v(n,a0),21),!i.dc()&&(t=(e=u(of(yr),9),new _o(e,u(xs(e,e.length),9),0)),i.Hc((lw(),No))?_s(t,No):_s(t,Zs),i.Hc(Ms)||_s(t,Ms),i.Hc(Qs)?_s(t,nf):i.Hc(xl)?_s(t,el):i.Hc(Ys)&&_s(t,Ts),i.Hc(nf)?_s(t,Qs):i.Hc(el)?_s(t,xl):i.Hc(Ts)&&_s(t,Ys),U(n,a0,t)))}function cPe(n){var e,t,i,r,c,s,f;for(r=u(v(n,(W(),s0)),10),i=n.j,t=(Nn(0,i.c.length),u(i.c[0],12)),s=new M(r.j);s.a<s.c.c.length;)if(c=u(E(s),12),x(c)===x(v(t,st))){c.j==(en(),Xn)&&n.p>r.p?(gi(c,ae),c.d&&(f=c.o.b,e=c.a.b,c.a.b=f-e)):c.j==ae&&r.p>n.p&&(gi(c,Xn),c.d&&(f=c.o.b,e=c.a.b,c.a.b=-(f-e)));break}return r}function fy(n,e,t,i,r){var c,s,f,h,l,a,d;if(!(L(e,207)||L(e,366)||L(e,193)))throw T(new Gn("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return s=n.a/2,h=e.i+i-s,a=e.j+r-s,l=h+e.g+n.a,d=a+e.f+n.a,c=new Tu,Re(c,new V(h,a)),Re(c,new V(h,d)),Re(c,new V(l,d)),Re(c,new V(l,a)),f=new bR(c),Ur(f,e),t&&Ve(n.b,e,f),f}function Pm(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=new V(e,t),a=new M(n.a);a.a<a.c.c.length;)for(l=u(E(a),10),tt(l.n,c),g=new M(l.j);g.a<g.c.c.length;)for(d=u(E(g),12),r=new M(d.g);r.a<r.c.c.length;)for(i=u(E(r),18),nw(i.a,c),s=u(v(i,(cn(),Rr)),75),s&&nw(s,c),h=new M(i.b);h.a<h.c.c.length;)f=u(E(h),72),tt(f.n,c)}function uPe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=new V(e,t),a=new M(n.a);a.a<a.c.c.length;)for(l=u(E(a),10),tt(l.n,c),g=new M(l.j);g.a<g.c.c.length;)for(d=u(E(g),12),r=new M(d.g);r.a<r.c.c.length;)for(i=u(E(r),18),nw(i.a,c),s=u(v(i,(cn(),Rr)),75),s&&nw(s,c),h=new M(i.b);h.a<h.c.c.length;)f=u(E(h),72),tt(f.n,c)}function nUn(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i==0)throw T(new hp("Edges must have a source."));if((!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i==0)throw T(new hp("Edges must have a target."));if(!n.b&&(n.b=new Dn(he,n,4,7)),!(n.b.i<=1&&(!n.c&&(n.c=new Dn(he,n,5,8)),n.c.i<=1)))throw T(new hp("Hyperedges are not supported."))}function Een(n,e){var t,i,r,c,s,f,h,l,a,d;for(d=0,c=new Mg,W1(c,e);c.b!=c.c;)for(h=u(Pp(c),219),l=0,a=u(v(e.j,(cn(),Yh)),284),s=$(B(v(e.j,hO))),f=$(B(v(e.j,Ffn))),a!=(lh(),k1)&&(l+=s*fTe(h.e,a),l+=f*JSe(h.e)),d+=VBn(h.d,h.e)+l,r=new M(h.b);r.a<r.c.c.length;)i=u(E(r),36),t=u(sn(n.b,i.p),219),t.s||(d+=kS(n,t));return d}function dh(){dh=R;var n;for(sI=new gl(1,1),QF=new gl(1,10),P8=new gl(0,0),vQn=new gl(-1,1),kQn=S(C(l2,1),J,92,0,[P8,sI,new gl(1,2),new gl(1,3),new gl(1,4),new gl(1,5),new gl(1,6),new gl(1,7),new gl(1,8),new gl(1,9),QF]),fI=F(l2,J,92,32,0,1),n=0;n<fI.length;n++)fI[n]=SM(Ks(1,n),0)?ia(Ks(1,n)):U6(ia(n1(Ks(1,n))))}function eUn(n,e,t,i,r,c,s){if(n.c=i.Lf().a,n.d=i.Lf().b,r&&(n.c+=r.Lf().a,n.d+=r.Lf().b),n.b=e.Mf().a,n.a=e.Mf().b,!r)t?n.c-=s+e.Mf().a:n.c+=i.Mf().a+s;else switch(r.ag().g){case 0:case 2:n.c+=r.Mf().a+s+c.a+s;break;case 4:n.c-=s+c.a+s+e.Mf().a;break;case 1:n.c+=r.Mf().a+s,n.d-=s+c.b+s+e.Mf().b;break;case 3:n.c+=r.Mf().a+s,n.d+=r.Mf().b+s+c.b+s}}function tUn(n,e){var t,i;for(this.b=new Z,this.e=new Z,this.a=n,this.d=e,E9e(this),I8e(this),this.b.dc()?this.c=n.c.p:this.c=u(this.b.Xb(0),10).c.p,this.e.c.length==0?this.f=n.c.p:this.f=u(sn(this.e,this.e.c.length-1),10).c.p,i=u(v(n,(W(),F8)),15).Kc();i.Ob();)if(t=u(i.Pb(),72),kt(t,(cn(),dO))){this.d=u(v(t,dO),232);break}}function Im(n,e,t){var i,r,c,s,f,h,l,a;for(i=u(ee(n.a,e),49),c=u(ee(n.a,t),49),r=u(ee(n.e,e),49),s=u(ee(n.e,t),49),i.a.zc(t,i),s.a.zc(e,s),a=c.a.ec().Kc();a.Ob();)l=u(a.Pb(),10),i.a.zc(l,i),fi(u(ee(n.e,l),49),e),Ki(u(ee(n.e,l),49),r);for(h=r.a.ec().Kc();h.Ob();)f=u(h.Pb(),10),s.a.zc(f,s),fi(u(ee(n.a,f),49),t),Ki(u(ee(n.a,f),49),c)}function hy(n,e,t){var i,r,c,s,f,h,l,a;for(i=u(ee(n.a,e),49),c=u(ee(n.a,t),49),r=u(ee(n.b,e),49),s=u(ee(n.b,t),49),i.a.zc(t,i),s.a.zc(e,s),a=c.a.ec().Kc();a.Ob();)l=u(a.Pb(),10),i.a.zc(l,i),fi(u(ee(n.b,l),49),e),Ki(u(ee(n.b,l),49),r);for(h=r.a.ec().Kc();h.Ob();)f=u(h.Pb(),10),s.a.zc(f,s),fi(u(ee(n.a,f),49),t),Ki(u(ee(n.a,f),49),c)}function ns(n,e,t){var i,r,c,s,f,h,l,a;for(i=u(ee(n.a,e),49),c=u(ee(n.a,t),49),r=u(ee(n.d,e),49),s=u(ee(n.d,t),49),i.a.zc(t,i),s.a.zc(e,s),a=c.a.ec().Kc();a.Ob();)l=u(a.Pb(),12),i.a.zc(l,i),fi(u(ee(n.d,l),49),e),Ki(u(ee(n.d,l),49),r);for(h=r.a.ec().Kc();h.Ob();)f=u(h.Pb(),12),s.a.zc(f,s),fi(u(ee(n.a,f),49),t),Ki(u(ee(n.a,f),49),c)}function oPe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;if(c=t,t<i)for(g=(p=new yk(n.p),m=new yk(n.p),Ki(p.e,n.e),p.q=n.q,p.r=m,mT(p),Ki(m.j,n.j),m.r=p,mT(m),new bi(p,m)),d=u(g.a,118),a=u(g.b,118),r=(Nn(c,e.c.length),u(e.c[c],339)),s=Aqn(n,d,a,r),l=t+1;l<=i;l++)f=(Nn(l,e.c.length),u(e.c[l],339)),h=Aqn(n,d,a,f),j9e(f,h,r,s)&&(r=f,s=h,c=l);return c}function sPe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;for(s=u(N(e,0),27),eu(s,0),tu(s,0),g=new Z,Fn(g.c,s),f=s,c=new tW(n.a,s.g,s.f,(x5(),_j)),p=1;p<e.i;p++)m=u(N(e,p),27),h=RR(n,D2,m,f,c,g,t),l=RR(n,L3,m,f,c,g,t),a=RR(n,d9,m,f,c,g,t),d=RR(n,a9,m,f,c,g,t),r=ROe(n,h,l,a,d,m,f,i),eu(m,r.d),tu(m,r.e),lfe(r,_j),c=r,f=m,Fn(g.c,m);return c}function fPe(n,e,t){var i,r,c,s,f,h,l,a,d,g;if(a=null,g=e,d=GLn(n,$Ln(t),g),X4(d,bl(g,Eh)),s=Sb(g,Ccn),i=new pTn(n,d),LEe(i.a,i.b,s),f=Sb(g,pF),r=new mTn(n,d),NEe(r.a,r.b,f),(!d.b&&(d.b=new Dn(he,d,4,7)),d.b).i==0||(!d.c&&(d.c=new Dn(he,d,5,8)),d.c).i==0)throw c=bl(g,Eh),h=vWn+c,l=h+iv,T(new eh(l));return gS(g,d),dNe(n,g,d),a=_$(n,g,d),a}function hPe(n,e){var t,i,r,c,s,f,h;for(r=F(ye,_e,28,n.e.a.c.length,15,1),s=new M(n.e.a);s.a<s.c.c.length;)c=u(E(s),125),r[c.d]+=c.b.a.c.length;for(f=$7(e);f.b!=0;)for(c=u(f.b==0?null:(oe(f.b!=0),Xo(f,f.a.a)),125),i=Fp(new M(c.g.a));i.Ob();)t=u(i.Pb(),218),h=t.e,h.e=y.Math.max(h.e,c.e+t.a),--r[h.d],r[h.d]==0&&xt(f,h,f.c.b,f.c)}function iUn(n){var e,t,i,r,c,s,f,h,l,a,d;for(t=Wi,r=et,f=new M(n.e.a);f.a<f.c.c.length;)c=u(E(f),125),r=y.Math.min(r,c.e),t=y.Math.max(t,c.e);for(e=F(ye,_e,28,t-r+1,15,1),s=new M(n.e.a);s.a<s.c.c.length;)c=u(E(s),125),c.e-=r,++e[c.e];if(i=0,n.k!=null)for(l=n.k,a=0,d=l.length;a<d&&(h=l[a],e[i++]+=h,e.length!=i);++a);return e}function lPe(n,e){var t,i,r,c,s,f;if(e.Ug("Edge routing",1),r=u(v(n,(lc(),oq)),392),r==(d5(),ZH))O4e(n);else if(r==Nj)for(u(ho(im(ut(new Cn(null,new On(n.b,16)),new X3n))),40),c=$(B(v(n,Nln))),s=$(B(v(n,Pln))),f=u(v(n,v0),88),gNe(n,f,c),XNe(n,f,c,s),QNe(n,f,c,s),i=ge(n.a,0);i.b!=i.d.c;)t=u(be(i),65),t.a.b<2&&Ann(t);e.Vg()}function rUn(n){switch(n.d){case 9:case 8:return!0;case 3:case 5:case 4:case 6:return!1;case 7:return u(len(n),17).a==n.o;case 1:case 2:{if(n.o==-2)return!1;switch(n.p){case 0:case 1:case 2:case 6:case 5:case 7:return ob(n.k,n.f);case 3:case 4:return n.j==n.e;default:return n.n==null?n.g==null:rt(n.n,n.g)}}default:return!1}}function aPe(n,e){var t,i,r;switch(e.Ug("Breaking Point Insertion",1),i=new Gnn(n),u(v(n,(cn(),LH)),351).g){case 2:r=new WU;break;case 0:r=new zU;break;default:r=new JU}if(t=r.og(n,i),on(un(v(n,Mhn)))&&(t=eAe(n,t)),!r.pg()&&kt(n,jO))switch(u(v(n,jO),352).g){case 2:t=R_n(i,t);break;case 1:t=PFn(i,t)}if(t.dc()){e.Vg();return}yNe(n,t),e.Vg()}function cUn(n,e,t){var i,r,c,s,f,h,l,a,d;for(c=new Gc(e.c.length),l=new M(e);l.a<l.c.c.length;)s=u(E(l),10),nn(c,n.b[s.c.p][s.p]);for(JOe(n,c,t),d=null;d=_Ae(c);)OIe(n,u(d.a,239),u(d.b,239),c);for(e.c.length=0,r=new M(c);r.a<r.c.c.length;)for(i=u(E(r),239),f=i.d,h=0,a=f.length;h<a;++h)s=f[h],Fn(e.c,s),n.a[s.c.p][s.p].a=Sf(i.g,i.d[0]).a}function uUn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,a8),"ELK Fixed"),"Keeps the current layout as it is, without any automatic modification. Optional coordinates can be given for nodes and edge bend points."),new Xmn))),Q(n,a8,Wb,hdn),Q(n,a8,CP,rn(j9)),Q(n,a8,gcn,rn(udn)),Q(n,a8,r2,rn(odn)),Q(n,a8,d3,rn(fdn)),Q(n,a8,zm,rn(sdn))}function RS(n,e,t){var i,r,c,s,f;if(i=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),f=Se(er(Uh,xh(Se(er(t==null?0:mt(t),Gh)),15))),c=u5(n,e,i),c&&f==c.f&&sh(t,c.i))return t;if(s=o5(n,t,f),s)throw T(new Gn("value already present: "+t));return r=new kT(e,i,t,f),c?(zg(n,c),ny(n,r,c),c.e=null,c.c=null,c.i):(ny(n,r,null),aFn(n),null)}function dPe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;a=t.a.c,s=t.a.c+t.a.b,c=u(ee(t.c,e),468),p=c.f,m=c.a,c.b?h=new V(s,p):h=new V(a,p),c.c?d=new V(a,m):d=new V(s,m),r=a,t.p||(r+=n.c),r+=t.F+t.v*n.b,l=new V(r,p),g=new V(r,m),r5(e.a,S(C(Ei,1),J,8,0,[h,l])),f=t.d.a.gc()>1,f&&(i=new V(r,t.b),Re(e.a,i)),r5(e.a,S(C(Ei,1),J,8,0,[g,d]))}function ps(){ps=R,SO=new N0(kh,0),Pj=new N0("NIKOLOV",1),Ij=new N0("NIKOLOV_PIXEL",2),Rhn=new N0("NIKOLOV_IMPROVED",3),Khn=new N0("NIKOLOV_IMPROVED_PIXEL",4),xhn=new N0("DUMMYNODE_PERCENTAGE",5),Bhn=new N0("NODECOUNT_PERCENTAGE",6),PO=new N0("NO_BOUNDARY",7),p0=new N0("MODEL_ORDER_LEFT_TO_RIGHT",8),Uw=new N0("MODEL_ORDER_RIGHT_TO_LEFT",9)}function bPe(n){var e,t,i,r,c;for(i=n.length,e=new i6,c=0;c<i;)if(t=Xi(n,c++),!(t==9||t==10||t==12||t==13||t==32)){if(t==35){for(;c<i&&(t=Xi(n,c++),!(t==13||t==10)););continue}t==92&&c<i?(r=(zn(c,n.length),n.charCodeAt(c)))==35||r==9||r==10||r==12||r==13||r==32?(C4(e,r&ui),++c):(e.a+="\\",C4(e,r&ui),++c):C4(e,t&ui)}return e.a}function Men(){Men=R,zre=new Tn(Brn,(_n(),!1)),Jre=new Tn(Frn,Y(0)),Qre=new Tn(_rn,0),Yre=new Tn(NP,!1),Gln=(Ik(),FO),Vre=new Tn(zB,Gln),Y(0),Xre=new Tn(XB,Y(1)),Xln=(SC(),Eq),tce=new Tn(Hrn,Xln),Vln=(ZT(),mq),ice=new Tn(qrn,Vln),zln=(sS(),jq),Wre=new Tn(Urn,zln),ece=new Tn(VB,0),Zre=new Tn(WB,!1),nce=new Tn(Grn,!1)}function wPe(n,e){var t,i,r;for(i=new M(e);i.a<i.c.c.length;)if(t=u(E(i),27),In(n.a,t,t),In(n.b,t,t),r=aw(t),r.c.length!=0)for(n.d&&n.d.Gg(r),In(n.a,t,(Nn(0,r.c.length),u(r.c[0],27))),In(n.b,t,u(sn(r,r.c.length-1),27));K$(r).c.length!=0;)r=K$(r),n.d&&n.d.Gg(r),In(n.a,t,(Nn(0,r.c.length),u(r.c[0],27))),In(n.b,t,u(sn(r,r.c.length-1),27))}function SR(n,e,t){var i,r,c,s,f,h;if(e)if(t<=-1){if(i=$n(e.Dh(),-1-t),L(i,102))return u(i,19);for(s=u(e.Mh(i),160),f=0,h=s.gc();f<h;++f)if(x(s.Ul(f))===x(n)&&(r=s.Tl(f),L(r,102)&&(c=u(r,19),c.Bb&kc)))return c;throw T(new Ar("The containment feature could not be located"))}else return br(u($n(n.Dh(),t),19));else return null}function gPe(n){var e,t,i,r,c,s,f,h,l,a;for(t=0,f=new M(n.d);f.a<f.c.c.length;)s=u(E(f),105),s.i&&(s.i.c=t++);for(e=Wa(so,[J,Xh],[183,28],16,[t,t],2),a=n.d,r=0;r<a.c.length;r++)if(h=(Nn(r,a.c.length),u(a.c[r],105)),h.i)for(c=r+1;c<a.c.length;c++)l=(Nn(c,a.c.length),u(a.c[c],105)),l.i&&(i=Hye(h,l),e[h.i.c][l.i.c]=i,e[l.i.c][h.i.c]=i);return e}function Ten(){Ten=R,Tce=new Tn(Vrn,(_n(),!1)),Y(-1),vce=new Tn(Wrn,Y(-1)),Y(-1),kce=new Tn(Jrn,Y(-1)),yce=new Tn(Qrn,!1),w1n=(GT(),Dq),Ice=new Tn(Yrn,w1n),Oce=new Tn(Zrn,-1),b1n=(_C(),Oq),Pce=new Tn(ncn,b1n),Sce=new Tn(ecn,!0),d1n=(nC(),$q),Mce=new Tn(tcn,d1n),Ece=new Tn(icn,!1),Y(1),jce=new Tn(rcn,Y(1)),Cce=new lt(ccn)}function F5(){F5=R,YH=new ub("ROOT_PROC",0),sln=new ub("FAN_PROC",1),aln=new ub("LEVEL_PROC",2),dln=new ub("NEIGHBORS_PROC",3),lln=new ub("LEVEL_HEIGHT",4),oln=new ub("DIRECTION_PROC",5),bln=new ub("NODE_POSITION_PROC",6),cln=new ub("COMPACTION_PROC",7),hln=new ub("LEVEL_COORDS",8),fln=new ub("GRAPH_BOUNDS_PROC",9),uln=new ub("DETREEIFYING_PROC",10)}function Cen(n,e){var t,i,r,c,s,f,h,l,a,d;for(d=Hr(e),l=null,r=!1,f=0,a=Pc(d.a).i;f<a;++f)s=u(py(d,f,(c=u(N(Pc(d.a),f),89),h=c.c,L(h,90)?u(h,29):(An(),Os))),29),t=Cen(n,s),t.dc()||(l?(r||(r=!0,l=new sT(l)),l.Gc(t)):l=t);return i=CEe(n,e),i.dc()?l||(Ln(),Ln(),sr):l?(r||(l=new sT(l)),l.Gc(i),l):i}function PR(n,e){var t,i,r,c,s,f,h,l,a,d;for(d=Hr(e),l=null,i=!1,f=0,a=Pc(d.a).i;f<a;++f)c=u(py(d,f,(r=u(N(Pc(d.a),f),89),h=r.c,L(h,90)?u(h,29):(An(),Os))),29),t=PR(n,c),t.dc()||(l?(i||(i=!0,l=new sT(l)),l.Gc(t)):l=t);return s=fMe(n,e),s.dc()?l||(Ln(),Ln(),sr):l?(i||(l=new sT(l)),l.Gc(s),l):s}function pPe(n){var e,t,i,r;i=n.o,K0(),n.A.dc()||rt(n.A,ron)?r=i.a:(r=ty(n.f),n.A.Hc((go(),iE))&&!n.B.Hc((io(),I9))&&(r=y.Math.max(r,ty(u(Mr(n.p,(en(),Xn)),252))),r=y.Math.max(r,ty(u(Mr(n.p,ae),252)))),e=Kxn(n),e&&(r=y.Math.max(r,e.a))),on(un(n.e.Tf().of((He(),Vw))))?i.a=y.Math.max(i.a,r):i.a=r,t=n.f.i,t.c=0,t.b=r,NR(n.f)}function ly(n,e,t){var i,r,c,s,f,h;if(L(e,76))return cr(n,e,t);for(f=null,c=null,i=u(n.g,124),s=0;s<n.i;++s)if(r=i[s],rt(e,r.md())&&(c=r.Lk(),L(c,102)&&u(c,19).Bb&kc)){f=r;break}return f&&(fo(n.e)&&(h=c.Jk()?V1(n,4,c,e,null,Am(n,c,e,L(c,102)&&(u(c,19).Bb&hr)!=0),!0):V1(n,c.tk()?2:1,c,e,c.ik(),-1,!0),t?t.nj(h):t=h),t=ly(n,f,t)),t}function mPe(n,e,t){var i,r,c,s;if(s=ru(n.e.Dh(),e),i=u(n.g,124),dr(),u(e,69).xk()){for(c=0;c<n.i;++c)if(r=i[c],s.am(r.Lk())&&rt(r,t))return dw(n,c),!0}else if(t!=null){for(c=0;c<n.i;++c)if(r=i[c],s.am(r.Lk())&&rt(t,r.md()))return dw(n,c),!0}else for(c=0;c<n.i;++c)if(r=i[c],s.am(r.Lk())&&r.md()==null)return dw(n,c),!0;return!1}function vPe(n,e){var t,i,r,c,s;if(e.Ug("Node and Port Label Placement and Node Sizing",1),dCn((u6(),new kD(n,!0,!0,new Egn))),u(v(n,(W(),Hc)),21).Hc((pr(),cs)))for(c=u(v(n,(cn(),_w)),21),r=c.Hc((zu(),tE)),s=on(un(v(n,bhn))),i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),30),qt(ut(new Cn(null,new On(t.a,16)),new Mgn),new mPn(c,r,s));e.Vg()}function kPe(n,e){var t,i,r,c,s;for(n.c==null||n.c.length<e.c.length?n.c=F(so,Xh,28,e.c.length,16,1):e6(n.c),n.a=new Z,i=0,s=new M(e);s.a<s.c.c.length;)r=u(E(s),10),r.p=i++;for(t=new Mt,c=new M(e);c.a<c.c.c.length;)r=u(E(c),10),n.c[r.p]||(__n(n,r),t.b==0||(oe(t.b!=0),u(t.a.a.c,15)).gc()<n.a.c.length?gg(t,n.a):ir(t,n.a),n.a=new Z);return t}function oUn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,Ym),"ELK SPOrE Overlap Removal"),'A node overlap removal algorithm proposed by Nachmanson et al. in "Node overlap removal by growing a tree".'),new bmn))),Q(n,Ym,YB,rn(ean)),Q(n,Ym,Wb,nan),Q(n,Ym,yw,8),Q(n,Ym,eF,rn(hue)),Q(n,Ym,lcn,rn(Y1n)),Q(n,Ym,acn,rn(Z1n)),Q(n,Ym,Uy,(_n(),!1))}function yPe(n,e){var t,i,r,c,s,f,h;if(t=e.qi(n.a),t&&(h=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),Vcn)),h!=null)){for(i=new Z,c=ww(h,"\\w"),s=0,f=c.length;s<f;++s)r=c[s],Sn(r,"##other")?nn(i,"!##"+B6(n,jo(e.qk()))):Sn(r,"##local")?i.c.push(null):Sn(r,Yy)?nn(i,B6(n,jo(e.qk()))):Fn(i.c,r);return i}return Ln(),Ln(),sr}function sUn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p;for(s=ab(e.c,t,i),d=new M(e.a);d.a<d.c.c.length;){for(a=u(E(d),10),tt(a.n,s),p=new M(a.j);p.a<p.c.c.length;)for(g=u(E(p),12),c=new M(g.g);c.a<c.c.c.length;)for(r=u(E(c),18),nw(r.a,s),f=u(v(r,(cn(),Rr)),75),f&&nw(f,s),l=new M(r.b);l.a<l.c.c.length;)h=u(E(l),72),tt(h.n,s);nn(n.a,a),a.a=n}}function ay(n){var e,t,i,r,c,s,f,h;if(n.d)throw T(new Ar((ll(S_),RK+S_.k+KK)));for(n.c==(ci(),Jf)&&Yg(n,Kr),t=new M(n.a.a);t.a<t.c.c.length;)e=u(E(t),194),e.e=0;for(s=new M(n.a.b);s.a<s.c.c.length;)for(c=u(E(s),86),c.o=li,r=c.f.Kc();r.Ob();)i=u(r.Pb(),86),++i.d.e;for(kLe(n),h=new M(n.a.b);h.a<h.c.c.length;)f=u(E(h),86),f.k=!0;return n}function jPe(n,e){var t,i,r,c,s,f,h,l;for(f=new g_n(n),t=new Mt,xt(t,e,t.c.b,t.c);t.b!=0;){for(i=u(t.b==0?null:(oe(t.b!=0),Xo(t,t.a.a)),113),i.d.p=1,s=new M(i.e);s.a<s.c.c.length;)r=u(E(s),340),xFn(f,r),l=r.d,l.d.p==0&&xt(t,l,t.c.b,t.c);for(c=new M(i.b);c.a<c.c.c.length;)r=u(E(c),340),xFn(f,r),h=r.c,h.d.p==0&&xt(t,h,t.c.b,t.c)}return f}function fUn(n){var e,t,i,r,c;if(i=$(B(z(n,(He(),Rue)))),i!=1)for(kg(n,i*n.g,i*n.f),t=Mle(i0e((!n.c&&(n.c=new q(Qu,n,9,9)),n.c),new ivn)),c=$h(Eo(S(C(Ao,1),Kn,20,0,[(!n.n&&(n.n=new q(Sr,n,1,7)),n.n),(!n.c&&(n.c=new q(Qu,n,9,9)),n.c),t])));pe(c);)r=u(fe(c),422),r.qh(i*r.nh(),i*r.oh()),r.ph(i*r.mh(),i*r.lh()),e=u(r.of(Kan),8),e&&(e.a*=i,e.b*=i)}function Sen(n,e,t){var i,r,c,s,f;if(s=(dr(),u(e,69).xk()),Pl(n.e,e)){if(e.Si()&&BS(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0))return!1}else for(f=ru(n.e.Dh(),e),i=u(n.g,124),c=0;c<n.i;++c)if(r=i[c],f.am(r.Lk()))return(s?rt(r,t):t==null?r.md()==null:rt(t,r.md()))?!1:(u(Bg(n,c,s?u(t,76):Rh(e,t)),76),!0);return ve(n,s?u(t,76):Rh(e,t))}function EPe(n,e,t,i,r){var c,s,f,h,l,a,d,g;for(s=new M(n.b);s.a<s.c.c.length;)for(c=u(E(s),30),g=Y7(c.a),l=g,a=0,d=l.length;a<d;++a)switch(h=l[a],u(v(h,(cn(),ou)),171).g){case 1:UCe(h),$i(h,e),EBn(h,!0,i);break;case 3:CCe(h),$i(h,t),EBn(h,!1,r)}for(f=new xi(n.b,0);f.b<f.d.gc();)(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),30)).a.c.length==0&&bo(f)}function MPe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(p=e.length,h=p,zn(0,e.length),e.charCodeAt(0)==45?(d=-1,g=1,--p):(d=1,g=0),c=(KR(),jQn)[10],r=p/c|0,j=p%c,j!=0&&++r,f=F(ye,_e,28,r,15,1),t=yQn[8],s=0,m=g+(j==0?c:j),k=g;k<h;k=m,m=k+c)i=So((Ri(k,m,e.length),e.substr(k,m-k)),Wi,et),l=(Sm(),hZ(f,f,s,t)),l+=T8e(f,s,i),f[s++]=l;a=s,n.e=d,n.d=a,n.a=f,J6(n)}function TPe(n,e){var t,i,r,c;return t=new O0n,i=u(Wr(_r(new Cn(null,new On(n.f,16)),t),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),Sw),Yr]))),21),r=i.gc(),i=u(Wr(_r(new Cn(null,new On(e.f,16)),t),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[Sw,Yr]))),21),c=i.gc(),r=r==1?1:0,c=c==1?1:0,r<c?-1:r==c?0:1}function CPe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(f=n.i,r=on(un(v(f,(cn(),Bw)))),a=0,i=0,l=new M(n.g);l.a<l.c.c.length;)h=u(E(l),18),s=fr(h),c=s&&r&&on(un(v(h,Dd))),g=h.d.i,s&&c?++i:s&&!c?++a:Hi(g).e==f?++i:++a;for(t=new M(n.e);t.a<t.c.c.length;)e=u(E(t),18),s=fr(e),c=s&&r&&on(un(v(e,Dd))),d=e.c.i,s&&c?++a:s&&!c?++i:Hi(d).e==f?++a:++i;return a-i}function Wg(n,e,t,i){this.e=n,this.k=u(v(n,(W(),E2)),312),this.g=F(Qh,b1,10,e,0,1),this.b=F(si,J,345,e,7,1),this.a=F(Qh,b1,10,e,0,1),this.d=F(si,J,345,e,7,1),this.j=F(Qh,b1,10,e,0,1),this.i=F(si,J,345,e,7,1),this.p=F(si,J,345,e,7,1),this.n=F(Gt,J,485,e,8,1),u7(this.n,(_n(),!1)),this.f=F(Gt,J,485,e,8,1),u7(this.f,!0),this.o=t,this.c=i}function hUn(n,e){var t,i,r,c,s,f;if(!e.dc())if(u(e.Xb(0),293).d==(Yp(),Dw))W7e(n,e);else for(i=e.Kc();i.Ob();){switch(t=u(i.Pb(),293),t.d.g){case 5:Em(n,t,n8e(n,t));break;case 0:Em(n,t,(s=t.f-t.c+1,f=(s-1)/2|0,t.c+f));break;case 4:Em(n,t,ome(n,t));break;case 2:PKn(t),Em(n,t,(c=UZ(t),c?t.c:t.f));break;case 1:PKn(t),Em(n,t,(r=UZ(t),r?t.f:t.c))}Gye(t.a)}}function Pen(n,e,t,i){var r,c,s;return s=new GEn(e,t),n.a?i?(r=u(as(u(ee(n.b,e),260)),260),++r.a,s.d=i.d,s.e=i.e,s.b=i,s.c=i,i.e?i.e.c=s:r.b=s,i.d?i.d.b=s:n.a=s,i.d=s,i.e=s):(u(as(n.e),511).b=s,s.d=n.e,n.e=s,r=u(ee(n.b,e),260),r?(++r.a,c=r.c,c.c=s,s.e=c,r.c=s):(Ve(n.b,e,r=new QW(s)),++n.c)):(n.a=n.e=s,Ve(n.b,e,new QW(s)),++n.c),++n.d,s}function IR(n,e){var t,i,r,c,s;if(e.Ug("Network simplex",1),n.e.a.c.length<1){e.Vg();return}for(c=new M(n.e.a);c.a<c.c.c.length;)r=u(E(c),125),r.e=0;for(s=n.e.a.c.length>=40,s&&wIe(n),MOe(n),zCe(n),t=pKn(n),i=0;t&&i<n.f;)APe(n,t,WMe(n,t)),t=pKn(n),++i;s&&lye(n),n.a?uTe(n,iUn(n)):iUn(n),n.b=null,n.d=null,n.p=null,n.c=null,n.g=null,n.i=null,n.n=null,n.o=null,e.Vg()}function SPe(n,e){var t,i,r,c,s,f,h;if(!e.e){for(e.e=!0,i=e.d.a.ec().Kc();i.Ob();){if(t=u(i.Pb(),18),e.o&&e.d.a.gc()<=1){s=e.a.c,f=e.a.c+e.a.b,h=new V(s+(f-s)/2,e.b),Re(u(e.d.a.ec().Kc().Pb(),18).a,h);continue}if(r=u(ee(e.c,t),468),r.b||r.c){dPe(n,t,e);continue}c=n.d==(om(),Y8)&&(r.d||r.e)&&vMe(n,e)&&e.d.a.gc()<=1,c?nLe(t,e):jSe(n,t,e)}e.k&&qi(e.d,new Ywn)}}function Ien(n,e,t,i,r,c){var s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(g=c,f=(i+r)/2+g,j=t*y.Math.cos(f),P=t*y.Math.sin(f),O=j-e.g/2,A=P-e.f/2,eu(e,O),tu(e,A),d=n.a.Eg(e),k=2*y.Math.acos(t/t+n.c),k<r-i?(p=k/d,s=(i+r-k)/2):(p=(r-i)/d,s=i),m=aw(e),n.e&&(n.e.Fg(n.d),n.e.Gg(m)),l=new M(m);l.a<l.c.c.length;)h=u(E(l),27),a=n.a.Eg(h),Ien(n,h,t+n.c,s,s+p*a,c),s+=p*a}function PPe(n,e,t){var i;switch(i=t.q.getMonth(),e){case 5:Be(n,S(C(fn,1),J,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[i]);break;case 4:Be(n,S(C(fn,1),J,2,6,[sK,fK,hK,lK,c3,aK,dK,bK,wK,gK,pK,mK])[i]);break;case 3:Be(n,S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[i]);break;default:Kh(n,i+1,e)}}function IPe(n,e,t,i){var r,c,s,f,h,l,a,d,g;for(h=new V(t,i),mi(h,u(v(e,(Q1(),L8)),8)),g=new M(e.e);g.a<g.c.c.length;)d=u(E(g),153),tt(d.d,h),nn(n.e,d);for(f=new M(e.c);f.a<f.c.c.length;){for(s=u(E(f),290),c=new M(s.a);c.a<c.c.c.length;)r=u(E(c),250),tt(r.d,h);nn(n.c,s)}for(a=new M(e.d);a.a<a.c.c.length;)l=u(E(a),454),tt(l.d,h),nn(n.d,l)}function Oen(n,e){var t,i,r,c,s,f,h,l;for(h=new M(e.j);h.a<h.c.c.length;)for(f=u(E(h),12),r=new Lf(f.b);tc(r.a)||tc(r.b);)i=u(tc(r.a)?E(r.a):E(r.b),18),t=i.c==f?i.d:i.c,c=t.i,e!=c&&(l=u(v(i,(cn(),Cv)),17).a,l<0&&(l=0),s=c.p,n.b[s]==0&&(i.d==t?(n.a[s]-=l+1,n.a[s]<=0&&n.c[s]>0&&Re(n.f,c)):(n.c[s]-=l+1,n.c[s]<=0&&n.a[s]>0&&Re(n.e,c))))}function lUn(n,e,t,i){var r,c,s,f,h,l,a;for(h=new V(t,i),mi(h,u(v(e,(pt(),Lv)),8)),a=ge(e.b,0);a.b!=a.d.c;)l=u(be(a),40),tt(l.e,h),Re(n.b,l);for(f=u(Wr(cJ(new Cn(null,new On(e.a,16))),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15).Kc();f.Ob();){for(s=u(f.Pb(),65),c=ge(s.a,0);c.b!=c.d.c;)r=u(be(c),8),r.a+=h.a,r.b+=h.b;Re(n.a,s)}}function Aen(n,e){var t,i,r,c;if(0<(L(n,16)?u(n,16).gc():wl(n.Kc()))){if(r=e,1<r){for(--r,c=new G3n,i=n.Kc();i.Ob();)t=u(i.Pb(),40),c=Eo(S(C(Ao,1),Kn,20,0,[c,new sl(t)]));return Aen(c,r)}if(r<0){for(c=new z3n,i=n.Kc();i.Ob();)t=u(i.Pb(),40),c=Eo(S(C(Ao,1),Kn,20,0,[c,new sl(t)]));if(0<(L(c,16)?u(c,16).gc():wl(c.Kc())))return Aen(c,r)}}return u(DM(n.Kc()),40)}function OPe(n,e,t){var i,r,c,s;for(t.Ug("Processor order nodes",2),n.b=$(B(v(e,(lc(),sq)))),n.a=u(v(e,v0),88),n.a==(ci(),Jf)&&(n.a=Wf,U(e,v0,n.a)),r=new Mt,s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),40),on(un(v(c,(pt(),Ta))))&&xt(r,c,r.c.b,r.c);i=(oe(r.b!=0),u(r.a.a.c,40)),oGn(n,i),t.fh(1),yen(n,i,0-$(B(v(i,(pt(),xO))))/2,0),t.fh(1),t.Vg()}function io(){io=R,_v=new wg("DEFAULT_MINIMUM_SIZE",0),uE=new wg("MINIMUM_SIZE_ACCOUNTS_FOR_PADDING",1),sA=new wg("COMPUTE_PADDING",2),I9=new wg("OUTSIDE_NODE_LABELS_OVERHANG",3),fA=new wg("PORTS_OVERHANG",4),lA=new wg("UNIFORM_PORT_SPACING",5),hA=new wg("SPACE_EFFICIENT_PORT_LABELS",6),dU=new wg("FORCE_TABULAR_NODE_LABELS",7),cE=new wg("ASYMMETRICAL",8)}function OR(n,e){var t,i,r,c,s,f,h,l;if(e){if(t=(c=e.Dh(),c?jo(c).wi().si(c):null),t){for(s1(n,e,t),r=e.Dh(),h=0,l=(r.i==null&&bh(r),r.i).length;h<l;++h)f=(i=(r.i==null&&bh(r),r.i),h>=0&&h<i.length?i[h]:null),f.rk()&&!f.sk()&&(L(f,331)?P9e(n,u(f,35),e,t):(s=u(f,19),s.Bb&kc&&Bke(n,s,e,t)));e.Vh()&&u(t,54).ei(u(e,54)._h())}return t}else return null}function APe(n,e,t){var i,r,c;if(!e.f)throw T(new Gn("Given leave edge is no tree edge."));if(t.f)throw T(new Gn("Given enter edge is a tree edge already."));for(e.f=!1,DX(n.p,e),t.f=!0,fi(n.p,t),i=t.e.e-t.d.e-t.a,fR(n,t.e,e)||(i=-i),c=new M(n.e.a);c.a<c.c.c.length;)r=u(E(c),125),fR(n,r,e)||(r.e+=i);n.j=1,e6(n.c),Onn(n,u(E(new M(n.e.a)),125)),pGn(n)}function aUn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p;if(jme(n,e,t),c=e[t],p=i?(en(),Wn):(en(),Zn),T1e(e.length,t,i)){for(r=e[i?t-1:t+1],_J(n,r,i?(gr(),Jc):(gr(),Vu)),h=c,a=0,g=h.length;a<g;++a)s=h[a],bZ(n,s,p);for(_J(n,c,i?(gr(),Vu):(gr(),Jc)),f=r,l=0,d=f.length;l<d;++l)s=f[l],s.e||bZ(n,s,xk(p))}else for(f=c,l=0,d=f.length;l<d;++l)s=f[l],bZ(n,s,p);return!1}function LPe(n,e,t,i,r){var c,s,f,h,l,a,d;for(Ln(),Yt(n,new Ymn),f=new xi(n,0),d=new Z,c=0;f.b<f.d.gc();)s=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),163)),d.c.length!=0&&Pu(s)*ao(s)>c*2?(a=new hC(d),l=Pu(s)/ao(s),h=QR(a,e,new up,t,i,r,l),tt(ff(a.e),h),d.c.length=0,c=0,Fn(d.c,a),Fn(d.c,s),c=Pu(a)*ao(a)+Pu(s)*ao(s)):(Fn(d.c,s),c+=Pu(s)*ao(s));return d}function dUn(n,e){var t,i,r,c,s,f;if(f=u(v(e,(cn(),Ft)),101),f==(Ai(),tl)||f==qc)for(r=new V(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a).b,s=new M(n.a);s.a<s.c.c.length;)c=u(E(s),10),c.k==(Vn(),Zt)&&(t=u(v(c,(W(),gc)),64),!(t!=(en(),Zn)&&t!=Wn)&&(i=$(B(v(c,f0))),f==tl&&(i*=r),c.n.b=i-u(v(c,b0),8).b,OC(c,!1,!0)))}function NPe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;if(fo(n.e)){if(e!=t&&(r=u(n.g,124),p=r[t],s=p.Lk(),Pl(n.e,s))){for(m=ru(n.e.Dh(),s),h=-1,f=-1,i=0,l=0,d=e>t?e:t;l<=d;++l)l==t?f=i++:(c=r[l],a=m.am(c.Lk()),l==e&&(h=l==d&&!a?i-1:i),a&&++i);return g=u(k5(n,e,t),76),f!=h&&t4(n,new ck(n.e,7,s,Y(f),p.md(),h)),g}}else return u(lR(n,e,t),76);return u(k5(n,e,t),76)}function DPe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Port order processing",1),h=u(v(n,(cn(),whn)),430),i=new M(n.b);i.a<i.c.c.length;)for(t=u(E(i),30),c=new M(t.a);c.a<c.c.c.length;)r=u(E(c),10),s=u(v(r,Ft),101),f=r.j,s==(Ai(),Ud)||s==tl||s==qc?(Ln(),Yt(f,jsn)):s!=Qf&&s!=Ia&&(Ln(),Yt(f,JZn),B9e(f),h==(dk(),UH)&&Yt(f,WZn)),r.i=!0,Snn(r);e.Vg()}function $Pe(n){var e,t,i,r,c,s,f,h;for(h=new de,e=new oL,s=n.Kc();s.Ob();)r=u(s.Pb(),10),f=hb(i7(new za,r),e),Vc(h.f,r,f);for(c=n.Kc();c.Ob();)for(r=u(c.Pb(),10),i=new ie(ce(Qt(r).a.Kc(),new En));pe(i);)t=u(fe(i),18),!fr(t)&&qs(Ns(Ls(As(Ds(new hs,y.Math.max(1,u(v(t,(cn(),ghn)),17).a)),1),u(ee(h,t.c.i),125)),u(ee(h,t.d.i),125)));return e}function bUn(){bUn=R,zie=Fe(new ii,(Vi(),Fc),(tr(),osn)),iln=Fe(new ii,Ac,PI),Vie=Iu(Fe(new ii,Ac,xI),zr,$I),Gie=Iu(Fe(Fe(new ii,Ac,tsn),Fc,isn),zr,rsn),Wie=ah(ah(h6(Iu(Fe(new ii,Vs,FI),zr,BI),Fc),KI),_I),Xie=Iu(new ii,zr,ssn),qie=Iu(Fe(Fe(Fe(new ii,Jh,OI),Fc,LI),Fc,hv),zr,AI),Uie=Iu(Fe(Fe(new ii,Fc,hv),Fc,SI),zr,CI)}function xPe(n,e,t,i,r,c){var s,f,h,l,a,d,g;for(l=pRn(e)-pRn(n),s=t_n(e,l),h=Yc(0,0,0);l>=0&&(f=P7e(n,s),!(f&&(l<22?h.l|=1<<l:l<44?h.m|=1<<l-22:h.h|=1<<l-44,n.l==0&&n.m==0&&n.h==0)));)a=s.m,d=s.h,g=s.l,s.h=d>>>1,s.m=a>>>1|(d&1)<<21,s.l=g>>>1|(a&1)<<21,--l;return t&&H$(h),c&&(i?(wa=tm(n),r&&(wa=Yxn(wa,(B4(),lun)))):wa=Yc(n.l,n.m,n.h)),h}function RPe(n,e){var t,i,r,c,s,f,h,l,a,d;for(l=n.e[e.c.p][e.p]+1,h=e.c.a.c.length+1,f=new M(n.a);f.a<f.c.c.length;){for(s=u(E(f),12),d=0,c=0,r=$h(Eo(S(C(Ao,1),Kn,20,0,[new e4(s),new ip(s)])));pe(r);)i=u(fe(r),12),i.i.c==e.c&&(d+=p1e(n,i.i)+1,++c);t=d/c,a=s.j,a==(en(),Zn)?t<l?n.f[s.p]=n.c-t:n.f[s.p]=n.b+(h-t):a==Wn&&(t<l?n.f[s.p]=n.b+t:n.f[s.p]=n.c-(h-t))}}function So(n,e,t){var i,r,c,s,f;if(n==null)throw T(new th(gu));for(c=n.length,s=c>0&&(zn(0,n.length),n.charCodeAt(0)==45||(zn(0,n.length),n.charCodeAt(0)==43))?1:0,i=s;i<c;i++)if(VKn((zn(i,n.length),n.charCodeAt(i)))==-1)throw T(new th(Vb+n+'"'));if(f=parseInt(n,10),r=f<e,isNaN(f))throw T(new th(Vb+n+'"'));if(r||f>t)throw T(new th(Vb+n+'"'));return f}function KPe(n){var e,t,i,r,c,s,f;for(s=new Mt,c=new M(n.a);c.a<c.c.c.length;)r=u(E(c),118),JA(r,r.f.c.length),PE(r,r.k.c.length),r.i==0&&(r.o=0,xt(s,r,s.c.b,s.c));for(;s.b!=0;)for(r=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),118),i=r.o+1,t=new M(r.f);t.a<t.c.c.length;)e=u(E(t),132),f=e.a,gG(f,y.Math.max(f.o,i)),PE(f,f.i-1),f.i==0&&xt(s,f,s.c.b,s.c)}function BPe(n){var e,t,i,r,c,s,f,h;for(s=new M(n);s.a<s.c.c.length;){for(c=u(E(s),74),i=Gr(u(N((!c.b&&(c.b=new Dn(he,c,4,7)),c.b),0),84)),f=i.i,h=i.j,r=u(N((!c.a&&(c.a=new q(Tt,c,6,6)),c.a),0),166),j7(r,r.j+f,r.k+h),y7(r,r.b+f,r.c+h),t=new ne((!r.a&&(r.a=new ti(xo,r,5)),r.a));t.e!=t.i.gc();)e=u(ue(t),377),gN(e,e.a+f,e.b+h);RQ(u(z(c,(He(),k0)),75),f,h)}}function Om(n){var e;switch(n){case 100:return Zg(T8,!0);case 68:return Zg(T8,!1);case 119:return Zg(NF,!0);case 87:return Zg(NF,!1);case 115:return Zg(DF,!0);case 83:return Zg(DF,!1);case 99:return Zg($F,!0);case 67:return Zg($F,!1);case 105:return Zg(xF,!0);case 73:return Zg(xF,!1);default:throw T(new ec((e=n,zJn+e.toString(16))))}}function FPe(n){var e,t,i,r,c;switch(r=u(sn(n.a,0),10),e=new Cl(n),nn(n.a,e),e.o.a=y.Math.max(1,r.o.a),e.o.b=y.Math.max(1,r.o.b),e.n.a=r.n.a,e.n.b=r.n.b,u(v(r,(W(),gc)),64).g){case 4:e.n.a+=2;break;case 1:e.n.b+=2;break;case 2:e.n.a-=2;break;case 3:e.n.b-=2}return i=new Ic,ic(i,e),t=new Eb,c=u(sn(r.j,0),12),Zi(t,c),Oi(t,i),tt(ff(i.n),c.n),tt(ff(i.a),c.a),e}function wUn(n,e,t,i,r){t&&(!i||(n.c-n.b&n.a.length-1)>1)&&e==1&&u(n.a[n.b],10).k==(Vn(),Sc)?t3(u(n.a[n.b],10),(Co(),nl)):i&&(!t||(n.c-n.b&n.a.length-1)>1)&&e==1&&u(n.a[n.c-1&n.a.length-1],10).k==(Vn(),Sc)?t3(u(n.a[n.c-1&n.a.length-1],10),(Co(),Sa)):(n.c-n.b&n.a.length-1)==2?(t3(u(l5(n),10),(Co(),nl)),t3(u(l5(n),10),Sa)):dTe(n,r),TJ(n)}function _Pe(n,e,t){var i,r,c,s,f;for(c=0,r=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));r.e!=r.i.gc();)i=u(ue(r),27),s="",(!i.n&&(i.n=new q(Sr,i,1,7)),i.n).i==0||(s=u(N((!i.n&&(i.n=new q(Sr,i,1,7)),i.n),0),135).a),f=new q$(c++,e,s),Ur(f,i),U(f,(pt(),u9),i),f.e.b=i.j+i.f/2,f.f.a=y.Math.max(i.g,1),f.e.a=i.i+i.g/2,f.f.b=y.Math.max(i.f,1),Re(e.b,f),Vc(t.f,i,f)}function HPe(n){var e,t,i,r,c;i=u(v(n,(W(),st)),27),c=u(z(i,(cn(),xd)),181).Hc((go(),Gd)),n.e||(r=u(v(n,Hc),21),e=new V(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),r.Hc((pr(),cs))?(ht(i,Ft,(Ai(),qc)),Gb(i,e.a,e.b,!1,!0)):on(un(z(i,SH)))||Gb(i,e.a,e.b,!0,!0)),c?ht(i,xd,jn(Gd)):ht(i,xd,(t=u(of(P9),9),new _o(t,u(xs(t,t.length),9),0)))}function Len(n,e,t){var i,r,c,s;if(e[0]>=n.length)return t.o=0,!0;switch(Xi(n,e[0])){case 43:r=1;break;case 45:r=-1;break;default:return t.o=0,!0}if(++e[0],c=e[0],s=yS(n,e),s==0&&e[0]==c)return!1;if(e[0]<n.length&&Xi(n,e[0])==58){if(i=s*60,++e[0],c=e[0],s=yS(n,e),s==0&&e[0]==c)return!1;i+=s}else i=s,i<24&&e[0]-c<=2?i*=60:i=i%100+(i/100|0)*60;return i*=r,t.o=-i,!0}function qPe(n){var e,t,i,r,c,s,f,h,l;for(s=new Z,i=new ie(ce(Qt(n.b).a.Kc(),new En));pe(i);)t=u(fe(i),18),fr(t)&&nn(s,new xNn(t,vDn(n,t.c),vDn(n,t.d)));for(l=(c=new ol(n.e).a.vc().Kc(),new P0(c));l.a.Ob();)f=(e=u(l.a.Pb(),44),u(e.md(),113)),f.d.p=0;for(h=(r=new ol(n.e).a.vc().Kc(),new P0(r));h.a.Ob();)f=(e=u(h.a.Pb(),44),u(e.md(),113)),f.d.p==0&&nn(n.d,jPe(n,f))}function UPe(n){var e,t,i,r,c,s,f;for(c=Pf(n),r=new ne((!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e));r.e!=r.i.gc();)if(i=u(ue(r),74),f=Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84)),!Y0(f,c))return!0;for(t=new ne((!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d));t.e!=t.i.gc();)if(e=u(ue(t),74),s=Gr(u(N((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84)),!Y0(s,c))return!0;return!1}function GPe(n,e){var t,i,r,c,s,f,h,l,a;for(s=new M(e.b);s.a<s.c.c.length;)for(c=u(E(s),30),l=new M(c.a);l.a<l.c.c.length;){for(h=u(E(l),10),a=new Z,f=0,i=new ie(ce(ji(h).a.Kc(),new En));pe(i);)t=u(fe(i),18),!(fr(t)||!fr(t)&&t.c.i.c==t.d.i.c)&&(r=u(v(t,(cn(),O3)),17).a,r>f&&(f=r,a.c.length=0),r==f&&nn(a,new bi(t.c.i,t)));Ln(),Yt(a,n.c),bb(n.b,h.p,a)}}function zPe(n,e){var t,i,r,c,s,f,h,l,a;for(s=new M(e.b);s.a<s.c.c.length;)for(c=u(E(s),30),l=new M(c.a);l.a<l.c.c.length;){for(h=u(E(l),10),a=new Z,f=0,i=new ie(ce(Qt(h).a.Kc(),new En));pe(i);)t=u(fe(i),18),!(fr(t)||!fr(t)&&t.c.i.c==t.d.i.c)&&(r=u(v(t,(cn(),O3)),17).a,r>f&&(f=r,a.c.length=0),r==f&&nn(a,new bi(t.d.i,t)));Ln(),Yt(a,n.c),bb(n.f,h.p,a)}}function XPe(n,e){var t,i,r,c,s,f,h,l;if(l=un(v(e,(lc(),Ore))),l==null||(Jn(l),l)){for(mMe(n,e),r=new Z,h=ge(e.b,0);h.b!=h.d.c;)s=u(be(h),40),t=vnn(n,s,null),t&&(Ur(t,e),Fn(r.c,t));if(n.a=null,n.b=null,r.c.length>1)for(i=new M(r);i.a<i.c.c.length;)for(t=u(E(i),121),c=0,f=ge(t.b,0);f.b!=f.d.c;)s=u(be(f),40),s.g=c++;return r}return Af(S(C(TDe,1),jXn,121,0,[e]))}function VPe(n){var e,t,i,r,c,s,f,h;for(h=new Tu,e=ge(n,0),f=null,t=u(be(e),8),r=u(be(e),8);e.b!=e.d.c;)f=t,t=r,r=u(be(e),8),c=E$n(mi(new V(f.a,f.b),t)),s=E$n(mi(new V(r.a,r.b),t)),i=10,i=y.Math.min(i,y.Math.abs(c.a+c.b)/2),i=y.Math.min(i,y.Math.abs(s.a+s.b)/2),c.a=K7(c.a)*i,c.b=K7(c.b)*i,s.a=K7(s.a)*i,s.b=K7(s.b)*i,Re(h,tt(c,t)),Re(h,tt(s,t));return h}function WPe(n,e,t){var i,r,c,s,f,h;if(t.Ug("Minimize Crossings "+n.a,1),i=e.b.c.length==0||!s4(ut(new Cn(null,new On(e.b,16)),new Z3(new Jpn))).Bd((Va(),v3)),h=e.b.c.length==1&&u(sn(e.b,0),30).a.c.length==1,c=x(v(e,(cn(),Kw)))===x((jl(),T1)),i||h&&!c){t.Vg();return}r=KCe(n,e),s=(f=u(Zo(r,0),219),f.c.kg()?f.c.eg()?new _7n(n):new H7n(n):new F7n(n)),C6e(r,s),r5e(n),t.Vg()}function Po(n,e,t,i){var r,c,s,f,h;return s=n.Ph(),h=n.Jh(),r=null,h?e&&!(SR(n,e,t).Bb&hr)?(i=cr(h.El(),n,i),n.di(null),r=e.Qh()):h=null:(s&&(h=s.Qh()),e&&(r=e.Qh())),h!=r&&h&&h.Il(n),f=n.Fh(),n.Bh(e,t),h!=r&&r&&r.Hl(n),n.vh()&&n.wh()&&(s&&f>=0&&f!=t&&(c=new Mi(n,1,f,s,null),i?i.nj(c):i=c),t>=0&&(c=new Mi(n,1,t,f==t?s:null,e),i?i.nj(c):i=c)),i}function gUn(n){var e,t,i;if(n.b==null){if(i=new Hl,n.i!=null&&(Er(i,n.i),i.a+=":"),n.f&256){for(n.f&256&&n.a!=null&&(lge(n.i)||(i.a+="//"),Er(i,n.a)),n.d!=null&&(i.a+="/",Er(i,n.d)),n.f&16&&(i.a+="/"),e=0,t=n.j.length;e<t;e++)e!=0&&(i.a+="/"),Er(i,n.j[e]);n.g!=null&&(i.a+="?",Er(i,n.g))}else Er(i,n.a);n.e!=null&&(i.a+="#",Er(i,n.e)),n.b=i.a}return n.b}function JPe(n,e){var t,i,r,c,s,f;for(r=new M(e.a);r.a<r.c.c.length;)i=u(E(r),10),c=v(i,(W(),st)),L(c,12)&&(s=u(c,12),f=DUn(e,i,s.o.a,s.o.b),s.n.a=f.a,s.n.b=f.b,gi(s,u(v(i,gc),64)));t=new V(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),u(v(e,(W(),Hc)),21).Hc((pr(),cs))?(U(n,(cn(),Ft),(Ai(),qc)),u(v(Hi(n),Hc),21).Fc(yv),jGn(n,t,!1)):jGn(n,t,!0)}function QPe(n,e,t,i,r){var c,s,f,h;c=new Cl(n),Ha(c,(Vn(),_c)),U(c,(cn(),Ft),(Ai(),qc)),U(c,(W(),st),e.c.i),s=new Ic,U(s,st,e.c),gi(s,r),ic(s,c),U(e.c,Xu,c),f=new Cl(n),Ha(f,_c),U(f,Ft,qc),U(f,st,e.d.i),h=new Ic,U(h,st,e.d),gi(h,r),ic(h,f),U(e.d,Xu,f),Zi(e,s),Oi(e,h),z0(0,t.c.length),d6(t.c,0,c),Fn(i.c,f),U(c,iO,Y(1)),U(f,iO,Y(1))}function YPe(n,e,t,i){var r,c,s,f,h;if(h=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),r=Se(er(Uh,xh(Se(er(t==null?0:mt(t),Gh)),15))),f=o5(n,e,h),s=u5(n,t,r),f&&r==f.a&&sh(t,f.g))return t;if(s&&!i)throw T(new Gn("key already present: "+t));return f&&zg(n,f),s&&zg(n,s),c=new kT(t,r,e,h),ny(n,c,s),s&&(s.e=null,s.c=null),f&&(f.e=null,f.c=null),aFn(n),f?f.g:null}function pUn(n,e,t){var i,r,c,s,f;for(c=0;c<e;c++){for(i=0,f=c+1;f<e;f++)i=nr(nr(er(vi(n[c],mr),vi(n[f],mr)),vi(t[c+f],mr)),vi(Se(i),mr)),t[c+f]=Se(i),i=U1(i,32);t[c+e]=Se(i)}for(hve(t,t,e<<1),i=0,r=0,s=0;r<e;++r,s++)i=nr(nr(er(vi(n[r],mr),vi(n[r],mr)),vi(t[s],mr)),vi(Se(i),mr)),t[s]=Se(i),i=U1(i,32),++s,i=nr(i,vi(t[s],mr)),t[s]=Se(i),i=U1(i,32);return t}function mUn(n,e,t){var i,r,c,s,f,h,l,a;if(!D4(e)){for(h=$(B(rw(t.c,(cn(),X8)))),l=u(rw(t.c,Sj),140),!l&&(l=new Qv),i=t.a,r=null,f=e.Kc();f.Ob();)s=u(f.Pb(),12),a=0,r?(a=h,a+=r.o.b):a=l.d,c=hb(i7(new za,s),n.f),Ve(n.k,s,c),qs(Ns(Ls(As(Ds(new hs,0),wi(y.Math.ceil(a))),i),c)),r=s,i=c;qs(Ns(Ls(As(Ds(new hs,0),wi(y.Math.ceil(l.a+r.o.b))),i),t.d))}}function ZPe(n,e,t,i,r,c,s,f){var h,l,a,d,g,p;return p=!1,g=c-t.s,a=t.t-e.f+(l=G5(t,g,!1),l.a),i.g+f>g?!1:(d=(h=G5(i,g,!1),h.a),a+f+d<=e.b&&(uk(t,c-t.s),t.c=!0,uk(i,c-t.s),Hk(i,t.s,t.t+t.d+f),i.k=!0,FQ(t.q,i),p=!0,r&&(wC(e,i),i.j=e,n.c.length>s&&(Gk((Nn(s,n.c.length),u(n.c[s],186)),i),(Nn(s,n.c.length),u(n.c[s],186)).a.c.length==0&&Yl(n,s)))),p)}function nIe(n,e){var t,i,r,c,s,f;if(e.Ug("Partition midprocessing",1),r=new Mb,qt(ut(new Cn(null,new On(n.a,16)),new qgn),new h7n(r)),r.d!=0){for(f=u(Wr(sJ((c=r.i,new Cn(null,(c||(r.i=new Tg(r,r.c))).Nc()))),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),i=f.Kc(),t=u(i.Pb(),17);i.Ob();)s=u(i.Pb(),17),zTe(u(ot(r,t),21),u(ot(r,s),21)),t=s;e.Vg()}}function vUn(n,e,t){var i,r,c,s,f,h,l,a;if(e.p==0){for(e.p=1,s=t,s||(r=new Z,c=(i=u(of(lr),9),new _o(i,u(xs(i,i.length),9),0)),s=new bi(r,c)),u(s.a,15).Fc(e),e.k==(Vn(),Zt)&&u(s.b,21).Fc(u(v(e,(W(),gc)),64)),h=new M(e.j);h.a<h.c.c.length;)for(f=u(E(h),12),a=$h(Eo(S(C(Ao,1),Kn,20,0,[new e4(f),new ip(f)])));pe(a);)l=u(fe(a),12),vUn(n,l.i,s);return s}return null}function _5(n,e){var t,i,r,c,s;if(n.Ab){if(n.Ab){if(s=n.Ab.i,s>0){if(r=u(n.Ab.g,2033),e==null){for(c=0;c<s;++c)if(t=r[c],t.d==null)return t}else for(c=0;c<s;++c)if(t=r[c],Sn(e,t.d))return t}}else if(e==null){for(i=new ne(n.Ab);i.e!=i.i.gc();)if(t=u(ue(i),598),t.d==null)return t}else for(i=new ne(n.Ab);i.e!=i.i.gc();)if(t=u(ue(i),598),Sn(e,t.d))return t}return null}function eIe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;p=d3e(n,zQ(e),r),OQ(p,bl(r,Eh)),Wt=null,m=r,k=Y6(m,mWn),j=new Fkn(p),lje(j.a,k),P=Y6(m,"endPoint"),O=new Ukn(p),hje(O.a,P),A=Sb(m,BP),D=new Xkn(p),Yke(D.a,A),d=bl(r,Icn),c=new vTn(n,p),Rae(c.a,c.b,d),g=bl(r,Pcn),s=new kTn(n,p),Kae(s.a,s.b,g),l=Sb(r,Acn),f=new yTn(t,p),D7e(f.b,f.a,l),a=Sb(r,Ocn),h=new jTn(i,p),$7e(h.b,h.a,a)}function Nen(n,e,t){var i,r,c,s,f;switch(f=null,e.g){case 1:for(r=new M(n.j);r.a<r.c.c.length;)if(i=u(E(r),12),on(un(v(i,(W(),lH)))))return i;f=new Ic,U(f,(W(),lH),(_n(),!0));break;case 2:for(s=new M(n.j);s.a<s.c.c.length;)if(c=u(E(s),12),on(un(v(c,(W(),dH)))))return c;f=new Ic,U(f,(W(),dH),(_n(),!0))}return f&&(ic(f,n),gi(f,t),R9e(f.n,n.o,t)),f}function kUn(n,e){var t,i,r,c,s,f;for(f=-1,s=new Mt,i=new Lf(n.b);tc(i.a)||tc(i.b);){for(t=u(tc(i.a)?E(i.a):E(i.b),18),f=y.Math.max(f,$(B(v(t,(cn(),m1))))),t.c==n?qt(ut(new Cn(null,new On(t.b,16)),new Bwn),new J9n(s)):qt(ut(new Cn(null,new On(t.b,16)),new Fwn),new Q9n(s)),c=ge(s,0);c.b!=c.d.c;)r=u(be(c),72),kt(r,(W(),T3))||U(r,T3,t);hi(e,s),vo(s)}return f}function qb(n,e,t,i,r){var c,s,f,h,l;f=r?i.b:i.a,!sf(n.a,i)&&(l=f>t.s&&f<t.c,h=!1,t.e.b!=0&&t.j.b!=0&&(h=h|(y.Math.abs(f-$(B(p4(t.e))))<vh&&y.Math.abs(f-$(B(p4(t.j))))<vh),h=h|(y.Math.abs(f-$(B($s(t.e))))<vh&&y.Math.abs(f-$(B($s(t.j))))<vh)),(l||h)&&(s=u(v(e,(cn(),Rr)),75),s||(s=new Tu,U(e,Rr,s)),c=new rr(i),xt(s,c,s.c.b,s.c),fi(n.a,c)))}function tIe(n,e,t,i){var r,c,s,f,h,l,a;if(tMe(n,e,t,i))return!0;for(s=new M(e.f);s.a<s.c.c.length;){switch(c=u(E(s),334),f=!1,h=n.j-e.j+t,l=h+e.o,a=n.k-e.k+i,r=a+e.p,c.a.g){case 0:f=X$(n,h+c.b.a,0,h+c.c.a,a-1);break;case 1:f=X$(n,l,a+c.b.a,n.o-1,a+c.c.a);break;case 2:f=X$(n,h+c.b.a,r,h+c.c.a,n.p-1);break;default:f=X$(n,0,a+c.b.a,h-1,a+c.c.a)}if(f)return!0}return!1}function iIe(n,e,t){var i,r,c,s,f,h,l,a,d;for(t.Ug("Processor set coordinates",1),n.a=e.b.b==0?1:e.b.b,l=null,i=ge(e.b,0);!l&&i.b!=i.d.c;)d=u(be(i),40),on(un(v(d,(pt(),Ta))))&&(l=d,h=d.e,h.a=u(v(d,$j),17).a,h.b=u(v(d,xj),17).a);f=R$(l),a=1;do f=cje((r=f,t.eh(a),r)),a=f.b/n.a|0;while(f.b!=0);for(s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),40),mi(c.e,new V(c.f.a/2,c.f.b/2));t.Vg()}function rIe(n,e,t){var i,r,c,s,f,h,l,a;for(t.Ug(aVn,1),Hu(n.b),Hu(n.a),f=null,c=ge(e.b,0);!f&&c.b!=c.d.c;)l=u(be(c),40),on(un(v(l,(pt(),Ta))))&&(f=l);for(h=new Mt,xt(h,f,h.c.b,h.c),JGn(n,h),a=ge(e.b,0);a.b!=a.d.c;)l=u(be(a),40),s=Ae(v(l,(pt(),c9))),r=Dc(n.b,s)!=null?u(Dc(n.b,s),17).a:0,U(l,tq,Y(r)),i=1+(Dc(n.a,s)!=null?u(Dc(n.a,s),17).a:0),U(l,mln,Y(i));t.Vg()}function yUn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,Zb),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new zmn))),Q(n,Zb,Wb,ban),Q(n,Zb,yw,15),Q(n,Zb,Dy,Y(0)),Q(n,Zb,bcn,rn(lan)),Q(n,Zb,r2,rn(Eue)),Q(n,Zb,a3,rn(Mue)),Q(n,Zb,l3,$Vn),Q(n,Zb,i8,rn(aan)),Q(n,Zb,d3,rn(dan)),Q(n,Zb,wcn,rn(Vq)),Q(n,Zb,TP,rn(jue))}function jUn(n,e){var t,i,r,c,s,f,h,l,a;if(r=n.i,s=r.o.a,c=r.o.b,s<=0&&c<=0)return en(),sc;switch(l=n.n.a,a=n.n.b,f=n.o.a,t=n.o.b,e.g){case 2:case 1:if(l<0)return en(),Wn;if(l+f>s)return en(),Zn;break;case 4:case 3:if(a<0)return en(),Xn;if(a+t>c)return en(),ae}return h=(l+f/2)/s,i=(a+t/2)/c,h+i<=1&&h-i<=0?(en(),Wn):h+i>=1&&h-i>=0?(en(),Zn):i<.5?(en(),Xn):(en(),ae)}function cIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(t=!1,a=$(B(v(e,(cn(),g0)))),m=fa*a,r=new M(e.b);r.a<r.c.c.length;)for(i=u(E(r),30),l=new M(i.a),c=u(E(l),10),d=kW(n.a[c.p]);l.a<l.c.c.length;)f=u(E(l),10),g=kW(n.a[f.p]),d!=g&&(p=jg(n.b,c,f),s=c.n.b+c.o.b+c.d.a+d.a+p,h=f.n.b-f.d.d+g.a,s>h+m&&(k=d.g+g.g,g.a=(g.g*g.a+d.g*d.a)/k,g.g=k,d.f=g,t=!0)),c=f,d=g;return t}function EUn(n,e,t,i,r,c,s){var f,h,l,a,d,g;for(g=new mp,l=e.Kc();l.Ob();)for(f=u(l.Pb(),853),d=new M(f.Rf());d.a<d.c.c.length;)a=u(E(d),187),x(a.of((He(),Zq)))===x(($f(),Kv))&&(eUn(g,a,!1,i,r,c,s),L5(n,g));for(h=t.Kc();h.Ob();)for(f=u(h.Pb(),853),d=new M(f.Rf());d.a<d.c.c.length;)a=u(E(d),187),x(a.of((He(),Zq)))===x(($f(),Jw))&&(eUn(g,a,!0,i,r,c,s),L5(n,g))}function uIe(n,e,t){var i,r,c,s,f,h,l;for(s=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));s.e!=s.i.gc();)for(c=u(ue(s),27),r=new ie(ce(Sl(c).a.Kc(),new En));pe(r);)i=u(fe(r),74),!D5(i)&&!D5(i)&&!_b(i)&&(h=u(Fr(wr(t.f,c)),40),l=u(ee(t,Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84))),40),h&&l&&(f=new WW(h,l),U(f,(pt(),u9),i),Ur(f,i),Re(h.d,f),Re(l.b,f),Re(e.a,f)))}function oIe(n,e){var t,i,r,c,s,f,h,l;for(h=u(u(ot(n.r,e),21),87).Kc();h.Ob();)f=u(h.Pb(),117),r=f.c?qPn(f.c):0,r>0?f.a?(l=f.b.Mf().b,r>l&&(n.v||f.c.d.c.length==1?(s=(r-l)/2,f.d.d=s,f.d.a=s):(t=u(sn(f.c.d,0),187).Mf().b,i=(t-l)/2,f.d.d=y.Math.max(0,i),f.d.a=r-i-l))):f.d.a=n.t+r:F6(n.u)&&(c=enn(f.b),c.d<0&&(f.d.d=-c.d),c.d+c.a>f.b.Mf().b&&(f.d.a=c.d+c.a-f.b.Mf().b))}function Us(){Us=R,k3=new Di((He(),Jj),Y(1)),yI=new Di(qd,80),tZn=new Di(Uan,5),zYn=new Di(x2,Gm),nZn=new Di(sU,Y(1)),eZn=new Di(fU,(_n(),!0)),mon=new fb(50),YYn=new Di(M1,mon),won=Vj,von=v9,XYn=new Di(Yq,!1),pon=Wj,JYn=Vw,QYn=Ca,WYn=Hd,VYn=F2,ZYn=Ww,gon=(lnn(),BYn),k_=qYn,kI=KYn,v_=FYn,kon=HYn,cZn=k9,uZn=cA,rZn=Qj,iZn=rA,yon=(Gp(),Yw),new Di(x3,yon)}function sIe(n,e){var t;switch(bk(n)){case 6:return Si(e);case 7:return $0(e);case 8:return D0(e);case 3:return Array.isArray(e)&&(t=bk(e),!(t>=14&&t<=16));case 11:return e!=null&&typeof e===eK;case 12:return e!=null&&(typeof e===vy||typeof e==eK);case 0:return Cx(e,n.__elementTypeId$);case 2:return uD(e)&&e.Tm!==Q2;case 1:return uD(e)&&e.Tm!==Q2||Cx(e,n.__elementTypeId$);default:return!0}}function MUn(n,e){var t,i,r,c;return i=y.Math.min(y.Math.abs(n.c-(e.c+e.b)),y.Math.abs(n.c+n.b-e.c)),c=y.Math.min(y.Math.abs(n.d-(e.d+e.a)),y.Math.abs(n.d+n.a-e.d)),t=y.Math.abs(n.c+n.b/2-(e.c+e.b/2)),t>n.b/2+e.b/2||(r=y.Math.abs(n.d+n.a/2-(e.d+e.a/2)),r>n.a/2+e.a/2)?1:t==0&&r==0?0:t==0?c/r+1:r==0?i/t+1:y.Math.min(i/t,c/r)+1}function fIe(n,e){var t,i,r,c,s,f,h;for(c=0,f=0,h=0,r=new M(n.f.e);r.a<r.c.c.length;)i=u(E(r),153),e!=i&&(s=n.i[e.a][i.a],c+=s,t=J1(e.d,i.d),t>0&&n.d!=(t5(),E_)&&(f+=s*(i.d.a+n.a[e.a][i.a]*(e.d.a-i.d.a)/t)),t>0&&n.d!=(t5(),y_)&&(h+=s*(i.d.b+n.a[e.a][i.a]*(e.d.b-i.d.b)/t)));switch(n.d.g){case 1:return new V(f/c,e.d.b);case 2:return new V(e.d.a,h/c);default:return new V(f/c,h/c)}}function TUn(n){var e,t,i,r,c,s;for(t=(!n.a&&(n.a=new ti(xo,n,5)),n.a).i+2,s=new Gc(t),nn(s,new V(n.j,n.k)),qt(new Cn(null,(!n.a&&(n.a=new ti(xo,n,5)),new On(n.a,16))),new xkn(s)),nn(s,new V(n.b,n.c)),e=1;e<s.c.length-1;)i=(Nn(e-1,s.c.length),u(s.c[e-1],8)),r=(Nn(e,s.c.length),u(s.c[e],8)),c=(Nn(e+1,s.c.length),u(s.c[e+1],8)),i.a==r.a&&r.a==c.a||i.b==r.b&&r.b==c.b?Yl(s,e):++e;return s}function CUn(n,e){cm();var t,i,r,c,s;if(s=u(v(n.i,(cn(),Ft)),101),c=n.j.g-e.j.g,c!=0||!(s==(Ai(),Ud)||s==tl||s==qc))return 0;if(s==(Ai(),Ud)&&(t=u(v(n,v1),17),i=u(v(e,v1),17),t&&i&&(r=t.a-i.a,r!=0)))return r;switch(n.j.g){case 1:return bt(n.n.a,e.n.a);case 2:return bt(n.n.b,e.n.b);case 3:return bt(e.n.a,n.n.a);case 4:return bt(e.n.b,n.n.b);default:throw T(new Ar(tin))}}function SUn(n,e){var t,i,r,c,s,f,h;for(t=eSn(sMn(uMn(oMn(new VG,e),new IT(e.e)),ZZn),n.a),e.j.c.length==0||$Dn(u(sn(e.j,0),60).a,t),h=new rL,Ve(n.e,t,h),s=new ni,f=new ni,c=new M(e.k);c.a<c.c.c.length;)r=u(E(c),18),fi(s,r.c),fi(f,r.d);i=s.a.gc()-f.a.gc(),i<0?(Ck(h,!0,(ci(),Kr)),Ck(h,!1,Xr)):i>0&&(Ck(h,!1,(ci(),Kr)),Ck(h,!0,Xr)),nu(e.g,new BMn(n,t)),Ve(n.g,e,t)}function PUn(){PUn=R;var n;for(vun=S(C(ye,1),_e,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),WF=F(ye,_e,28,37,15,1),gQn=S(C(ye,1),_e,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),kun=F(Ra,PK,28,37,14,1),n=2;n<=36;n++)WF[n]=wi(y.Math.pow(n,vun[n])),kun[n]=Xk(Ey,WF[n])}function hIe(n){var e;if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i!=1)throw T(new Gn(tWn+(!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i));return e=new Tu,Mk(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84))&&Ki(e,gzn(n,Mk(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84)),!1)),Mk(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))&&Ki(e,gzn(n,Mk(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84)),!0)),e}function IUn(n,e){var t,i,r,c,s;for(e.d?r=n.a.c==(fh(),m0)?ji(e.b):Qt(e.b):r=n.a.c==(fh(),y1)?ji(e.b):Qt(e.b),c=!1,i=new ie(ce(r.a.Kc(),new En));pe(i);)if(t=u(fe(i),18),s=on(n.a.f[n.a.g[e.b.p].p]),!(!s&&!fr(t)&&t.c.i.c==t.d.i.c)&&!(on(n.a.n[n.a.g[e.b.p].p])||on(n.a.n[n.a.g[e.b.p].p]))&&(c=!0,sf(n.b,n.a.g[h7e(t,e.b).p])))return e.c=!0,e.a=t,e;return e.c=c,e.a=null,e}function Den(n,e,t){var i,r,c,s,f,h,l;if(i=t.gc(),i==0)return!1;if(n.Pj())if(h=n.Qj(),qY(n,e,t),s=i==1?n.Ij(3,null,t.Kc().Pb(),e,h):n.Ij(5,null,t,e,h),n.Mj()){for(f=i<100?null:new R1(i),c=e+i,r=e;r<c;++r)l=n.xj(r),f=n.Nj(l,f),f=f;f?(f.nj(s),f.oj()):n.Jj(s)}else n.Jj(s);else if(qY(n,e,t),n.Mj()){for(f=i<100?null:new R1(i),c=e+i,r=e;r<c;++r)f=n.Nj(n.xj(r),f);f&&f.oj()}return!0}function OUn(n,e,t){var i,r,c,s,f;return n.Pj()?(r=null,c=n.Qj(),i=n.Ij(1,f=(s=n.Dj(e,n.Zi(e,t)),s),t,e,c),n.Mj()&&!(n.Yi()&&f?rt(f,t):x(f)===x(t))&&(f&&(r=n.Oj(f,r)),r=n.Nj(t,r)),r?(r.nj(i),r.oj()):n.Jj(i),f):(f=(s=n.Dj(e,n.Zi(e,t)),s),n.Mj()&&!(n.Yi()&&f?rt(f,t):x(f)===x(t))&&(r=null,f&&(r=n.Oj(f,null)),r=n.Nj(t,r),r&&r.oj()),f)}function $en(n,e){var t,i,r,c,s,f,h,l,a;if(n.e=e,n.f=u(v(e,(Q1(),jI)),234),Rye(e),n.d=y.Math.max(e.e.c.length*16+e.c.c.length,256),!on(un(v(e,(Us(),won)))))for(a=n.e.e.c.length,h=new M(e.e);h.a<h.c.c.length;)f=u(E(h),153),l=f.d,l.a=hW(n.f)*a,l.b=hW(n.f)*a;for(t=e.b,c=new M(e.c);c.a<c.c.c.length;)if(r=u(E(c),290),i=u(v(r,kon),17).a,i>0){for(s=0;s<i;s++)nn(t,new UIn(r));W_n(r)}}function AUn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;if(g=new q0(n.Zg()),bf(e,Qe,g),t&&!n.Xg().a.dc())for(a=new _a,bf(e,"logs",a),f=0,m=new J3(n.Xg().b.Kc());m.b.Ob();)p=Ae(m.b.Pb()),d=new q0(p),J0(a,f),qD(a,f,d),++f;if(i&&(l=new SE(n.Wg()),bf(e,"executionTime",l)),!n.Yg().a.dc())for(s=new _a,bf(e,gF,s),f=0,c=new J3(n.Yg().b.Kc());c.b.Ob();)r=u(c.b.Pb(),871),h=new sp,J0(s,f),qD(s,f,h),AUn(r,h,t,i),++f}function xen(){xen=R,AL(),Ise=new P5n,S(C(B3,2),J,381,0,[S(C(B3,1),iI,600,0,[new Y9(xJn)])]),S(C(B3,2),J,381,0,[S(C(B3,1),iI,600,0,[new Y9(Ycn)])]),S(C(B3,2),J,381,0,[S(C(B3,1),iI,600,0,[new Y9(RJn)]),S(C(B3,1),iI,600,0,[new Y9(Ycn)])]),new H1("-1"),S(C(B3,2),J,381,0,[S(C(B3,1),iI,600,0,[new Y9("\\c+")])]),new H1("0"),new H1("0"),new H1("1"),new H1("0"),new H1(qJn)}function lIe(n,e){var t,i,r,c,s,f,h,l,a,d;for(e.Ug("Hypernodes processing",1),r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),f=new M(i.a);f.a<f.c.c.length;)if(s=u(E(f),10),on(un(v(s,(cn(),wO))))&&s.j.c.length<=2){for(d=0,a=0,t=0,c=0,l=new M(s.j);l.a<l.c.c.length;)switch(h=u(E(l),12),h.j.g){case 1:++d;break;case 2:++a;break;case 3:++t;break;case 4:++c}d==0&&t==0&&wNe(n,s,c<=a)}e.Vg()}function aIe(n,e,t,i,r){var c,s,f,h,l,a,d;for(s=new M(e);s.a<s.c.c.length;){if(c=u(E(s),18),h=c.c,t.a._b(h))l=(Tb(),Ma);else if(i.a._b(h))l=(Tb(),O2);else throw T(new Gn("Source port must be in one of the port sets."));if(a=c.d,t.a._b(a))d=(Tb(),Ma);else if(i.a._b(a))d=(Tb(),O2);else throw T(new Gn("Target port must be in one of the port sets."));f=new S_n(c,l,d),Ve(n.b,c,f),Fn(r.c,f)}}function KS(n){var e,t;return n.c&&n.c.Vh()&&(t=u(n.c,54),n.c=u(ea(n,t),142),n.c!=t&&(n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,9,2,t,n.c)),L(n.Cb,411)?n.Db>>16==-15&&n.Cb.Yh()&&h$(new c$(n.Cb,9,13,t,n.c,f1(no(u(n.Cb,62)),n))):L(n.Cb,90)&&n.Db>>16==-23&&n.Cb.Yh()&&(e=n.c,L(e,90)||(e=(An(),Os)),L(t,90)||(t=(An(),Os)),h$(new c$(n.Cb,9,10,t,e,f1(Pc(u(n.Cb,29)),n)))))),n.c}function dIe(n,e,t){var i,r,c,s,f,h,l,a,d;for(t.Ug("Hyperedge merging",1),RMe(n,e),h=new xi(e.b,0);h.b<h.d.gc();)if(f=(oe(h.b<h.d.gc()),u(h.d.Xb(h.c=h.b++),30)),a=f.a,a.c.length!=0)for(i=null,r=null,c=null,s=null,l=0;l<a.c.length;l++)i=(Nn(l,a.c.length),u(a.c[l],10)),r=i.k,r==(Vn(),Ti)&&s==Ti&&(d=sOe(i,c),d.a&&(sSe(i,c,d.b,d.c),Nn(l,a.c.length),Pz(a.c,l,1),--l,i=c,r=s)),c=i,s=r;t.Vg()}function LUn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;if(e==t)return!0;if(e=qnn(n,e),t=qnn(n,t),i=Nx(e),i){if(a=Nx(t),a!=i)return a?(h=i.mk(),m=a.mk(),h==m&&h!=null):!1;if(s=(!e.d&&(e.d=new ti(jr,e,1)),e.d),c=s.i,g=(!t.d&&(t.d=new ti(jr,t,1)),t.d),c==g.i){for(l=0;l<c;++l)if(r=u(N(s,l),89),d=u(N(g,l),89),!LUn(n,r,d))return!1}return!0}else return f=e.e,p=t.e,f==p}function NUn(n,e,t,i){var r,c,s,f,h,l,a,d;if(Pl(n.e,e)){for(d=ru(n.e.Dh(),e),c=u(n.g,124),a=null,h=-1,f=-1,r=0,l=0;l<n.i;++l)s=c[l],d.am(s.Lk())&&(r==t&&(h=l),r==i&&(f=l,a=s.md()),++r);if(h==-1)throw T(new Or(vF+t+Cd+r));if(f==-1)throw T(new Or(kF+i+Cd+r));return k5(n,h,f),fo(n.e)&&t4(n,V1(n,7,e,Y(i),a,t,!0)),a}else throw T(new Gn("The feature must be many-valued to support move"))}function DUn(n,e,t,i){var r,c,s,f,h;switch(h=new rr(e.n),h.a+=e.o.a/2,h.b+=e.o.b/2,f=$(B(v(e,(cn(),Fw)))),c=n.f,s=n.d,r=n.c,u(v(e,(W(),gc)),64).g){case 1:h.a+=s.b+r.a-t/2,h.b=-i-f,e.n.b=-(s.d+f+r.b);break;case 2:h.a=c.a+s.b+s.c+f,h.b+=s.d+r.b-i/2,e.n.a=c.a+s.c+f-r.a;break;case 3:h.a+=s.b+r.a-t/2,h.b=c.b+s.d+s.a+f,e.n.b=c.b+s.a+f-r.b;break;case 4:h.a=-t-f,h.b+=s.d+r.b-i/2,e.n.a=-(s.b+f+r.a)}return h}function $Un(n){var e,t,i,r,c,s;return i=new jQ,Ur(i,n),x(v(i,(cn(),Lo)))===x((ci(),Jf))&&U(i,Lo,FC(i)),v(i,(JT(),b9))==null&&(s=u(WFn(n),167),U(i,b9,IM(s.of(b9)))),U(i,(W(),st),n),U(i,Hc,(e=u(of(rH),9),new _o(e,u(xs(e,e.length),9),0))),r=aLe((St(n)&&(cb(),new Qd(St(n))),cb(),new TN(St(n)?new Qd(St(n)):null,n)),Xr),c=u(v(i,hhn),107),t=i.d,dAn(t,c),dAn(t,r),i}function bIe(n,e,t){var i,r;i=e.c.i,r=t.d.i,i.k==(Vn(),Ti)?(U(n,(W(),yf),u(v(i,yf),12)),U(n,Es,u(v(i,Es),12)),U(n,$w,un(v(i,$w)))):i.k==Sc?(U(n,(W(),yf),u(v(i,yf),12)),U(n,Es,u(v(i,Es),12)),U(n,$w,(_n(),!0))):r.k==Sc?(U(n,(W(),yf),u(v(r,yf),12)),U(n,Es,u(v(r,Es),12)),U(n,$w,(_n(),!0))):(U(n,(W(),yf),e.c),U(n,Es,t.d))}function wIe(n){var e,t,i,r,c,s,f;for(n.o=new Mg,i=new Mt,s=new M(n.e.a);s.a<s.c.c.length;)c=u(E(s),125),xg(c).c.length==1&&xt(i,c,i.c.b,i.c);for(;i.b!=0;)c=u(i.b==0?null:(oe(i.b!=0),Xo(i,i.a.a)),125),xg(c).c.length!=0&&(e=u(sn(xg(c),0),218),t=c.g.a.c.length>0,f=HC(e,c),XX(t?f.b:f.g,e),xg(f).c.length==1&&xt(i,f,i.c.b,i.c),r=new bi(c,e),W1(n.o,r),du(n.e.a,c))}function xUn(n,e){var t,i,r,c,s,f,h;return i=y.Math.abs(gT(n.b).a-gT(e.b).a),f=y.Math.abs(gT(n.b).b-gT(e.b).b),r=0,h=0,t=1,s=1,i>n.b.b/2+e.b.b/2&&(r=y.Math.min(y.Math.abs(n.b.c-(e.b.c+e.b.b)),y.Math.abs(n.b.c+n.b.b-e.b.c)),t=1-r/i),f>n.b.a/2+e.b.a/2&&(h=y.Math.min(y.Math.abs(n.b.d-(e.b.d+e.b.a)),y.Math.abs(n.b.d+n.b.a-e.b.d)),s=1-h/f),c=y.Math.min(t,s),(1-c)*y.Math.sqrt(i*i+f*f)}function gIe(n){var e,t,i,r;for(JR(n,n.e,n.f,(Tb(),Ma),!0,n.c,n.i),JR(n,n.e,n.f,Ma,!1,n.c,n.i),JR(n,n.e,n.f,O2,!0,n.c,n.i),JR(n,n.e,n.f,O2,!1,n.c,n.i),aIe(n,n.c,n.e,n.f,n.i),i=new xi(n.i,0);i.b<i.d.gc();)for(e=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),131)),r=new xi(n.i,i.b);r.b<r.d.gc();)t=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),131)),tAe(e,t);TNe(n.i,u(v(n.d,(W(),P3)),234)),BAe(n.i)}function AR(n,e){var t,i;if(e!=null){if(i=Fb(n),i)if(i.i&1){if(i==so)return D0(e);if(i==ye)return L(e,17);if(i==cg)return L(e,161);if(i==Ru)return L(e,222);if(i==fs)return L(e,180);if(i==Ii)return $0(e);if(i==V2)return L(e,191);if(i==Ra)return L(e,168)}else return iM(),t=u(ee(yA,i),57),!t||t.fk(e);else if(L(e,58))return n.dl(u(e,58))}return!1}function Ren(){Ren=R;var n,e,t,i,r,c,s,f,h;for(nh=F(Ru,s2,28,255,15,1),A1=F(fs,gh,28,64,15,1),e=0;e<255;e++)nh[e]=-1;for(t=90;t>=65;t--)nh[t]=t-65<<24>>24;for(i=122;i>=97;i--)nh[i]=i-97+26<<24>>24;for(r=57;r>=48;r--)nh[r]=r-48+52<<24>>24;for(nh[43]=62,nh[47]=63,c=0;c<=25;c++)A1[c]=65+c&ui;for(s=26,h=0;s<=51;++s,h++)A1[s]=97+h&ui;for(n=52,f=0;n<=61;++n,f++)A1[n]=48+f&ui;A1[62]=43,A1[63]=47}function RUn(n,e){var t,i,r,c,s,f;return r=$Q(n),f=$Q(e),r==f?n.e==e.e&&n.a<54&&e.a<54?n.f<e.f?-1:n.f>e.f?1:0:(i=n.e-e.e,t=(n.d>0?n.d:y.Math.floor((n.a-1)*Uzn)+1)-(e.d>0?e.d:y.Math.floor((e.a-1)*Uzn)+1),t>i+1?r:t<i-1?-r:(c=(!n.c&&(n.c=J7(vc(n.f))),n.c),s=(!e.c&&(e.c=J7(vc(e.f))),e.c),i<0?c=Og(c,VUn(-i)):i>0&&(s=Og(s,VUn(i))),XKn(c,s))):r<f?-1:1}function pIe(n,e,t){var i,r,c,s,f,h,l,a;for(t.Ug(MXn,1),n.vf(e),c=0;n.xf(c)&&!t.$g();){for(n.wf(),a=$h(Eo(S(C(Ao,1),Kn,20,0,[e.e,e.d,e.b])));pe(a);)for(h=u(fe(a),309),f=$h(Eo(S(C(Ao,1),Kn,20,0,[e.e,e.d,e.b])));pe(f);)s=u(fe(f),309),s!=h&&(r=n.uf(s,h),r&&tt(h.c,r));for(l=$h(Eo(S(C(Ao,1),Kn,20,0,[e.e,e.d,e.b])));pe(l);)h=u(fe(l),309),i=h.c,o_n(i,-n.d,-n.d,n.d,n.d),tt(h.d,i),i.a=0,i.b=0;++c}t.Vg()}function mIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(n.dc())return new Ni;for(l=0,d=0,r=n.Kc();r.Ob();)i=u(r.Pb(),36),c=i.f,l=y.Math.max(l,c.a),d+=c.a*c.b;for(l=y.Math.max(l,y.Math.sqrt(d)*$(B(v(u(n.Kc().Pb(),36),(cn(),oO))))),g=0,p=0,h=0,t=e,f=n.Kc();f.Ob();)s=u(f.Pb(),36),a=s.f,g+a.a>l&&(g=0,p+=h+e,h=0),Pm(s,g,p),t=y.Math.max(t,g+a.a),h=y.Math.max(h,a.b),g+=a.a+e;return new V(t+e,p+h+e)}function Ken(n,e){var t,i,r,c,s,f,h;if(!Pf(n))throw T(new Ar(eWn));if(i=Pf(n),c=i.g,r=i.f,c<=0&&r<=0)return en(),sc;switch(f=n.i,h=n.j,e.g){case 2:case 1:if(f<0)return en(),Wn;if(f+n.g>c)return en(),Zn;break;case 4:case 3:if(h<0)return en(),Xn;if(h+n.f>r)return en(),ae}return s=(f+n.g/2)/c,t=(h+n.f/2)/r,s+t<=1&&s-t<=0?(en(),Wn):s+t>=1&&s-t>=0?(en(),Zn):t<.5?(en(),Xn):(en(),ae)}function vIe(n,e,t,i,r){var c,s;if(c=nr(vi(e[0],mr),vi(i[0],mr)),n[0]=Se(c),c=wb(c,32),t>=r){for(s=1;s<r;s++)c=nr(c,nr(vi(e[s],mr),vi(i[s],mr))),n[s]=Se(c),c=wb(c,32);for(;s<t;s++)c=nr(c,vi(e[s],mr)),n[s]=Se(c),c=wb(c,32)}else{for(s=1;s<t;s++)c=nr(c,nr(vi(e[s],mr),vi(i[s],mr))),n[s]=Se(c),c=wb(c,32);for(;s<r;s++)c=nr(c,vi(i[s],mr)),n[s]=Se(c),c=wb(c,32)}Ec(c,0)!=0&&(n[s]=Se(c))}function bw(n){nt();var e,t,i,r,c,s;if(n.e!=4&&n.e!=5)throw T(new Gn("Token#complementRanges(): must be RANGE: "+n.e));for(c=n,Gg(c),z5(c),i=c.b.length+2,c.b[0]==0&&(i-=2),t=c.b[c.b.length-1],t==cv&&(i-=2),r=new yo(4),r.b=F(ye,_e,28,i,15,1),s=0,c.b[0]>0&&(r.b[s++]=0,r.b[s++]=c.b[0]-1),e=1;e<c.b.length-2;e+=2)r.b[s++]=c.b[e]+1,r.b[s++]=c.b[e+1]-1;return t!=cv&&(r.b[s++]=t+1,r.b[s]=cv),r.a=!0,r}function kIe(n,e){var t,i,r,c,s,f,h,l,a;for(e.Ug("Layer constraint edge reversal",1),s=new M(n.b);s.a<s.c.c.length;){for(c=u(E(s),30),a=-1,t=new Z,l=Y7(c.a),r=0;r<l.length;r++)i=u(v(l[r],(W(),Ad)),311),a==-1?i!=(vl(),k2)&&(a=r):i==(vl(),k2)&&($i(l[r],null),uw(l[r],a++,c)),i==(vl(),E3)&&Fn(t.c,l[r]);for(h=new M(t);h.a<h.c.c.length;)f=u(E(h),10),$i(f,null),$i(f,c)}e.Vg()}function LR(n,e,t){var i,r,c,s,f,h,l,a;if(i=t.gc(),i==0)return!1;if(n.Pj())if(l=n.Qj(),Zx(n,e,t),s=i==1?n.Ij(3,null,t.Kc().Pb(),e,l):n.Ij(5,null,t,e,l),n.Mj()){for(f=i<100?null:new R1(i),c=e+i,r=e;r<c;++r)a=n.g[r],f=n.Nj(a,f),f=n.Uj(a,f);f?(f.nj(s),f.oj()):n.Jj(s)}else n.Jj(s);else if(Zx(n,e,t),n.Mj()){for(f=i<100?null:new R1(i),c=e+i,r=e;r<c;++r)h=n.g[r],f=n.Nj(h,f);f&&f.oj()}return!0}function yIe(n,e){var t,i,r,c,s,f,h,l,a;for(e.Ug("Hierarchical port dummy size processing",1),h=new Z,a=new Z,i=$(B(v(n,(cn(),T2)))),t=i*2,c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),h.c.length=0,a.c.length=0,f=new M(r.a);f.a<f.c.c.length;)s=u(E(f),10),s.k==(Vn(),Zt)&&(l=u(v(s,(W(),gc)),64),l==(en(),Xn)?Fn(h.c,s):l==ae&&Fn(a.c,s));gHn(h,!0,t),gHn(a,!1,t)}e.Vg()}function Ben(n,e,t,i){var r,c,s,f,h;for(s=new M(n.k);s.a<s.c.c.length;)r=u(E(s),132),(!i||r.c==(af(),Ea))&&(h=r.b,h.g<0&&r.d>0&&(JA(h,h.d-r.d),r.c==(af(),Ea)&&ife(h,h.a-r.d),h.d<=0&&h.i>0&&xt(e,h,e.c.b,e.c)));for(c=new M(n.f);c.a<c.c.c.length;)r=u(E(c),132),(!i||r.c==(af(),Ea))&&(f=r.a,f.g<0&&r.d>0&&(PE(f,f.i-r.d),r.c==(af(),Ea)&&rfe(f,f.b-r.d),f.i<=0&&f.d>0&&xt(t,f,t.c.b,t.c)))}function jIe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p;for(Ln(),Yt(n,new Jmn),s=$7(n),p=new Z,g=new Z,f=null,h=0;s.b!=0;)c=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),163),!f||Pu(f)*ao(f)/2<Pu(c)*ao(c)?(f=c,Fn(p.c,c)):(h+=Pu(c)*ao(c),Fn(g.c,c),g.c.length>1&&(h>Pu(f)*ao(f)/2||s.b==0)&&(d=new hC(g),a=Pu(f)/ao(f),l=QR(d,e,new up,t,i,r,a),tt(ff(d.e),l),f=d,Fn(p.c,d),h=0,g.c.length=0));return hi(p,g),p}function Oc(n,e,t,i,r){fl();var c,s,f,h,l,a,d;if(PW(n,"src"),PW(t,"dest"),d=wo(n),h=wo(t),XV((d.i&4)!=0,"srcType is not an array"),XV((h.i&4)!=0,"destType is not an array"),a=d.c,s=h.c,XV(a.i&1?a==s:(s.i&1)==0,"Array types don't match"),s6e(n,e,t,i,r),!(a.i&1)&&d!=h)if(l=cd(n),c=cd(t),x(n)===x(t)&&e<i)for(e+=r,f=i+r;f-- >i;)$t(c,f,l[--e]);else for(f=i+r;i<f;)$t(c,i++,l[e++]);else Rnn(n,e,t,i,r,!0)}function KUn(n,e){var t,i,r,c,s,f,h,l,a;switch(e.Ug("Box layout",2),r=J9(B(z(n,(mS(),Cue)))),c=u(z(n,Tue),107),t=on(un(z(n,lan))),i=on(un(z(n,aan))),u(z(n,Vq),320).g){case 0:s=(a=new _u((!n.a&&(n.a=new q(Ye,n,10,11)),n.a)),Ln(),Yt(a,new Nkn(i)),a),f=ynn(n),h=B(z(n,han)),(h==null||(Jn(h),h<=0))&&(h=1.3),l=nNe(s,r,c,f.a,f.b,t,(Jn(h),h)),Gb(n,l.a,l.b,!1,!0);break;default:zOe(n,r,c,t)}e.Vg()}function EIe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m;for(g=Vke(n,t),h=0;h<e;h++){for(B0(r,t),p=new Z,m=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),418)),a=g+h;a<n.b;a++)f=m,m=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),418)),nn(p,new dqn(f,m,t));for(d=g+h;d<n.b;d++)oe(i.b>0),i.a.Xb(i.c=--i.b),d>g+h&&bo(i);for(s=new M(p);s.a<s.c.c.length;)c=u(E(s),418),B0(i,c);if(h<e-1)for(l=g+h;l<n.b;l++)oe(i.b>0),i.a.Xb(i.c=--i.b)}}function MIe(){nt();var n,e,t,i,r,c;if(OU)return OU;for(n=new yo(4),gw(n,sa(RF,!0)),V5(n,sa("M",!0)),V5(n,sa("C",!0)),c=new yo(4),i=0;i<11;i++)xc(c,i,i);return e=new yo(4),gw(e,sa("M",!0)),xc(e,4448,4607),xc(e,65438,65439),r=new P6(2),pd(r,n),pd(r,F9),t=new P6(2),t.Jm(uT(c,sa("L",!0))),t.Jm(e),t=new X0(3,t),t=new SW(r,t),OU=t,OU}function ww(n,e){var t,i,r,c,s,f,h,l;for(t=new RegExp(e,"g"),h=F(fn,J,2,0,6,1),i=0,l=n,c=null;;)if(f=t.exec(l),f==null||l==""){h[i]=l;break}else s=f.index,h[i]=(Ri(0,s,l.length),l.substr(0,s)),l=qo(l,s+f[0].length,l.length),t.lastIndex=0,c==l&&(h[i]=(Ri(0,1,l.length),l.substr(0,1)),l=(zn(1,l.length+1),l.substr(1))),c=l,++i;if(n.length>0){for(r=h.length;r>0&&h[r-1]=="";)--r;r<h.length&&(h.length=r)}return h}function lc(){lc=R,Aln=new fb(20),Oln=new Di((He(),M1),Aln),sq=new Di(qd,20),Nln=new Di(Gan,3),yre=new Di(x2,Gm),RO=new Di(Jj,Y(1)),Ore=new Di(fU,(_n(),!0)),Cln=zj,Sln=(ci(),Jf),v0=new Di(_d,Sln),jre=Vj,Ere=eU,Tre=Hd,Cre=Vw,Sre=_2,Pre=Ca,Mre=F2,Iln=Wj,Ire=Ww,$ln=(Hnn(),kre),Lln=mre,Nre=k9,Dre=cA,Lre=Qj,Are=rA,Dln=(Gp(),Yw),new Di(x3,Dln),A2=pre,oq=gre,Ph=vre,Tln=bre,Pln=wre}function TIe(n){var e,t;if(e=Ae(z(n,(He(),$v))),!Rxn(e,n)&&!Nf(n,q2)&&((!n.a&&(n.a=new q(Ye,n,10,11)),n.a).i!=0||on(un(z(n,Xj)))))if(e==null||fw(e).length==0){if(!Rxn(Yn,n))throw t=Be(Be(new mo("Unable to load default layout algorithm "),Yn)," for unconfigured node "),GS(n,t),T(new _l(t.a))}else throw t=Be(Be(new mo("Layout algorithm '"),e),"' not found for "),GS(n,t),T(new _l(t.a))}function NR(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;if(t=n.i,e=n.n,n.b==0)for(p=t.c+e.b,g=t.b-e.b-e.c,s=n.a,h=0,a=s.length;h<a;++h)r=s[h],hT(r,p,g);else i=PBn(n,!1),hT(n.a[0],t.c+e.b,i[0]),hT(n.a[2],t.c+t.b-e.c-i[2],i[2]),d=t.b-e.b-e.c,i[0]>0&&(d-=i[0]+n.c,i[0]+=n.c),i[2]>0&&(d-=i[2]+n.c),i[1]=y.Math.max(i[1],d),hT(n.a[1],t.c+e.b+i[0]-(i[1]-d)/2,i[1]);for(c=n.a,f=0,l=c.length;f<l;++f)r=c[f],L(r,336)&&u(r,336).lf()}function CIe(n){var e,t,i,r,c,s,f,h,l,a,d;for(d=new M3n,d.d=0,s=new M(n.b);s.a<s.c.c.length;)c=u(E(s),30),d.d+=c.a.c.length;for(i=0,r=0,d.a=F(ye,_e,28,n.b.c.length,15,1),l=0,a=0,d.e=F(ye,_e,28,d.d,15,1),t=new M(n.b);t.a<t.c.c.length;)for(e=u(E(t),30),e.p=i++,d.a[e.p]=r++,a=0,h=new M(e.a);h.a<h.c.c.length;)f=u(E(h),10),f.p=l++,d.e[f.p]=a++;return d.c=new ukn(d),d.b=Lh(d.d),GPe(d,n),d.f=Lh(d.d),zPe(d,n),d}function BUn(n,e){var t,i,r,c;for(c=u(sn(n.n,n.n.c.length-1),209).d,n.p=y.Math.min(n.p,e.g),n.r=y.Math.max(n.r,c),n.g=y.Math.max(n.g,e.g+(n.b.c.length==1?0:n.i)),n.o=y.Math.min(n.o,e.f),n.e+=e.f+(n.b.c.length==1?0:n.i),n.f=y.Math.max(n.f,e.f),r=n.n.c.length>0?(n.n.c.length-1)*n.i:0,i=new M(n.n);i.a<i.c.c.length;)t=u(E(i),209),r+=t.a;n.d=r,n.a=n.e/n.b.c.length-n.i*((n.b.c.length-1)/n.b.c.length),vZ(n.j)}function FUn(n,e){var t,i,r,c,s,f,h,l,a,d;if(a=un(v(e,(Us(),eZn))),a==null||(Jn(a),a)){for(d=F(so,Xh,28,e.e.c.length,16,1),s=dMe(e),r=new Mt,l=new M(e.e);l.a<l.c.c.length;)f=u(E(l),153),t=Ynn(n,f,null,null,d,s),t&&(Ur(t,e),xt(r,t,r.c.b,r.c));if(r.b>1)for(i=ge(r,0);i.b!=i.d.c;)for(t=u(be(i),235),c=0,h=new M(t.e);h.a<h.c.c.length;)f=u(E(h),153),f.a=c++;return r}return Af(S(C(mDe,1),jXn,235,0,[e]))}function bh(n){var e,t,i,r,c,s,f;if(!n.g){if(f=new qA,e=D9,s=e.a.zc(n,e),s==null){for(i=new ne(Hr(n));i.e!=i.i.gc();)t=u(ue(i),29),Kt(f,bh(t));e.a.Bc(n)!=null,e.a.gc()==0}for(r=f.i,c=(!n.s&&(n.s=new q(ku,n,21,17)),new ne(n.s));c.e!=c.i.gc();++r)afe(u(ue(c),462),r);Kt(f,(!n.s&&(n.s=new q(ku,n,21,17)),n.s)),ew(f),n.g=new bRn(n,f),n.i=u(f.g,254),n.i==null&&(n.i=EU),n.p=null,Zu(n).b&=-5}return n.g}function SIe(n,e){var t,i,r,c,s,f,h,l,a;if(t=e.qi(n.a),t&&(h=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),"memberTypes")),h!=null)){for(l=new Z,c=ww(h,"\\w"),s=0,f=c.length;s<f;++s)r=c[s],i=r.lastIndexOf("#"),a=i==-1?tV(n,e.jk(),r):i==0?ok(n,null,(zn(1,r.length+1),r.substr(1))):ok(n,(Ri(0,i,r.length),r.substr(0,i)),(zn(i+1,r.length+1),r.substr(i+1))),L(a,156)&&nn(l,u(a,156));return l}return Ln(),Ln(),sr}function DR(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m;if(i=n.i,t=n.n,n.b==0)e=SBn(n,!1),lT(n.a[0],i.d+t.d,e[0]),lT(n.a[2],i.d+i.a-t.a-e[2],e[2]),g=i.a-t.d-t.a,d=g,e[0]>0&&(e[0]+=n.c,d-=e[0]),e[2]>0&&(d-=e[2]+n.c),e[1]=y.Math.max(e[1],d),lT(n.a[1],i.d+t.d+e[0]-(e[1]-d)/2,e[1]);else for(m=i.d+t.d,p=i.a-t.d-t.a,s=n.a,h=0,a=s.length;h<a;++h)r=s[h],lT(r,m,p);for(c=n.a,f=0,l=c.length;f<l;++f)r=c[f],L(r,336)&&u(r,336).mf()}function PIe(n){var e,t,i,r,c,s,f,h,l,a;for(a=F(ye,_e,28,n.b.c.length+1,15,1),l=new ni,i=0,c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),a[i++]=l.a.gc(),h=new M(r.a);h.a<h.c.c.length;)for(s=u(E(h),10),t=new ie(ce(Qt(s).a.Kc(),new En));pe(t);)e=u(fe(t),18),l.a.zc(e,l);for(f=new M(r.a);f.a<f.c.c.length;)for(s=u(E(f),10),t=new ie(ce(ji(s).a.Kc(),new En));pe(t);)e=u(fe(t),18),l.a.Bc(e)!=null}return a}function BS(n,e,t,i){var r,c,s,f,h;if(h=ru(n.e.Dh(),e),r=u(n.g,124),dr(),u(e,69).xk()){for(s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk())&&rt(c,t))return!0}else if(t!=null){for(f=0;f<n.i;++f)if(c=r[f],h.am(c.Lk())&&rt(t,c.md()))return!0;if(i){for(s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk())&&x(t)===x(ON(n,u(c.md(),58))))return!0}}else for(s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk())&&c.md()==null)return!1;return!1}function IIe(n,e){var t,i,r,c,s,f;if(t=e.qi(n.a),t&&(f=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),FP)),f!=null))switch(r=RM(f,wu(35)),i=e.qk(),r==-1?(s=B6(n,jo(i)),c=f):r==0?(s=null,c=(zn(1,f.length+1),f.substr(1))):(s=(Ri(0,r,f.length),f.substr(0,r)),c=(zn(r+1,f.length+1),f.substr(r+1))),yb(Nr(n,e))){case 2:case 3:return f6e(n,i,s,c);case 0:case 4:case 5:case 6:return h6e(n,i,s,c)}return null}function _Un(n,e,t,i){var r,c,s,f;for(f=t,s=new M(e.a);s.a<s.c.c.length;){if(c=u(E(s),225),r=u(c.b,68),xb(n.b.c,r.b.c+r.b.b)<=0&&xb(r.b.c,n.b.c+n.b.b)<=0&&xb(n.b.d,r.b.d+r.b.a)<=0&&xb(r.b.d,n.b.d+n.b.a)<=0){if(xb(r.b.c,n.b.c+n.b.b)==0&&i.a<0||xb(r.b.c+r.b.b,n.b.c)==0&&i.a>0||xb(r.b.d,n.b.d+n.b.a)==0&&i.b<0||xb(r.b.d+r.b.a,n.b.d)==0&&i.b>0){f=0;break}}else f=y.Math.min(f,x_n(n,r,i));f=y.Math.min(f,_Un(n,c,f,i))}return f}function dy(n,e){var t,i,r,c,s,f,h;if(n.b<2)throw T(new Gn("The vector chain must contain at least a source and a target point."));for(r=(oe(n.b!=0),u(n.a.a.c,8)),j7(e,r.a,r.b),h=new kp((!e.a&&(e.a=new ti(xo,e,5)),e.a)),s=ge(n,1);s.a<n.b-1;)f=u(be(s),8),h.e!=h.i.gc()?t=u(ue(h),377):(t=(K1(),i=new yE,i),AKn(h,t)),gN(t,f.a,f.b);for(;h.e!=h.i.gc();)ue(h),A5(h);c=(oe(n.b!=0),u(n.c.b.c,8)),y7(e,c.a,c.b)}function HUn(n,e,t,i){var r,c,s,f,h,l;if(l=ru(n.e.Dh(),e),s=u(n.g,124),Pl(n.e,e)){if(e.Si()&&(c=Am(n,e,i,L(e,102)&&(u(e,19).Bb&hr)!=0),c>=0&&c!=t))throw T(new Gn(Vy));for(r=0,h=0;h<n.i;++h)if(f=s[h],l.am(f.Lk())){if(r==t)return u(Bg(n,h,(dr(),u(e,69).xk()?u(i,76):Rh(e,i))),76);++r}throw T(new Or(p8+t+Cd+r))}else{for(h=0;h<n.i;++h)if(f=s[h],l.am(f.Lk()))return dr(),u(e,69).xk()?f:f.md();return null}}function qUn(n,e){var t,i,r,c,s,f,h,l,a;for(t=0,r=new M((Nn(0,n.c.length),u(n.c[0],105)).g.b.j);r.a<r.c.c.length;)i=u(E(r),12),i.p=t++;for(e==(en(),Xn)?Yt(n,new Cpn):Yt(n,new Spn),f=0,a=n.c.length-1;f<a;)s=(Nn(f,n.c.length),u(n.c[f],105)),l=(Nn(a,n.c.length),u(n.c[a],105)),c=e==Xn?s.c:s.a,h=e==Xn?l.a:l.c,Vl(s,e,(xf(),av),c),Vl(l,e,lv,h),++f,--a;f==a&&Vl((Nn(f,n.c.length),u(n.c[f],105)),e,(xf(),j3),null)}function OIe(n,e,t,i){var r,c,s,f,h,l;for(s=new kGn(n,e,t),h=new xi(i,0),r=!1;h.b<h.d.gc();)f=(oe(h.b<h.d.gc()),u(h.d.Xb(h.c=h.b++),239)),f==e||f==t?bo(h):!r&&$(Sf(f.g,f.d[0]).a)>$(Sf(s.g,s.d[0]).a)?(oe(h.b>0),h.a.Xb(h.c=--h.b),B0(h,s),r=!0):f.e&&f.e.gc()>0&&(c=(!f.e&&(f.e=new Z),f.e).Mc(e),l=(!f.e&&(f.e=new Z),f.e).Mc(t),(c||l)&&((!f.e&&(f.e=new Z),f.e).Fc(s),++s.c));r||Fn(i.c,s)}function AIe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;return d=n.a.i+n.a.g/2,g=n.a.i+n.a.g/2,m=e.i+e.g/2,j=e.j+e.f/2,f=new V(m,j),l=u(z(e,(He(),D3)),8),l.a=l.a+d,l.b=l.b+g,c=(f.b-l.b)/(f.a-l.a),i=f.b-c*f.a,k=t.i+t.g/2,P=t.j+t.f/2,h=new V(k,P),a=u(z(t,D3),8),a.a=a.a+d,a.b=a.b+g,s=(h.b-a.b)/(h.a-a.a),r=h.b-s*h.a,p=(i-r)/(s-c),l.a<p&&f.a<p||p<l.a&&p<f.a?!1:!(a.a<p&&h.a<p||p<a.a&&p<h.a)}function LIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(g=u(ee(n.c,e),190),!g)throw T(new eh("Edge did not exist in input."));return l=wm(g),c=Z9((!e.a&&(e.a=new q(Tt,e,6,6)),e.a)),f=!c,f&&(p=new _a,t=new kPn(n,l,p),yle((!e.a&&(e.a=new q(Tt,e,6,6)),e.a),t),bf(g,Scn,p)),r=Nf(e,(He(),k0)),r&&(a=u(z(e,k0),75),s=!a||oOn(a),h=!s,h&&(d=new _a,i=new iyn(d),qi(a,i),bf(g,"junctionPoints",d))),j4(g,"container",V7(e).k),null}function UUn(n,e,t,i){var r,c,s,f,h,l;if(!D4(e)){if(l=t.eh((L(e,16)?u(e,16).gc():wl(e.Kc()))/n.a|0),l.Ug(dVn,1),h=new h4n,f=0,i==(ci(),Kr)||i==Xr)for(s=e.Kc();s.Ob();)r=u(s.Pb(),40),h=Eo(S(C(Ao,1),Kn,20,0,[h,new sl(r)])),f<r.f.a&&(f=r.f.a);else for(s=e.Kc();s.Ob();)r=u(s.Pb(),40),h=Eo(S(C(Ao,1),Kn,20,0,[h,new sl(r)])),f<r.f.b&&(f=r.f.b);for(c=e.Kc();c.Ob();)r=u(c.Pb(),40),U(r,(pt(),xO),f);l.Vg(),UUn(n,h,t,i)}}function Fen(n,e,t){var i,r,c,s,f,h,l,a;this.a=n,this.b=e,this.c=t,this.e=Af(S(C(wDe,1),Kn,177,0,[new bp(n,e),new bp(e,t),new bp(t,n)])),this.f=Af(S(C(Ei,1),J,8,0,[n,e,t])),this.d=(i=mi(Fi(this.b),this.a),r=mi(Fi(this.c),this.a),c=mi(Fi(this.c),this.b),s=i.a*(this.a.a+this.b.a)+i.b*(this.a.b+this.b.b),f=r.a*(this.a.a+this.c.a)+r.b*(this.a.b+this.c.b),h=2*(i.a*c.b-i.b*c.a),l=(r.b*s-i.b*f)/h,a=(i.a*f-r.a*s)/h,new V(l,a))}function Ub(n,e){var t,i,r,c,s,f;for(c=n.c,s=n.d,Zi(n,null),Oi(n,null),e&&on(un(v(s,(W(),lH))))?Zi(n,Nen(s.i,(gr(),Jc),(en(),Zn))):Zi(n,s),e&&on(un(v(c,(W(),dH))))?Oi(n,Nen(c.i,(gr(),Vu),(en(),Wn))):Oi(n,c),i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),72),r=u(v(t,(cn(),Sh)),278),r==($f(),Kv)?U(t,Sh,Jw):r==Jw&&U(t,Sh,Kv);f=on(un(v(n,(W(),zf)))),U(n,zf,(_n(),!f)),n.a=Pk(n.a)}function NIe(n,e){var t,i,r,c,s;return t=pm(u(v(e,(lc(),v0)),88)),n.b.b==0?null:(s=u(Wr(_r(new Cn(null,new On(n.b,16)),new W3n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),c=u(Wr(ut(new Cn(null,new On(e.b,16)),new skn(s)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),r=B(ho(_0(_r(c.Oc(),new fkn(t)),(jb(),jb(),YF)))),i=u(ho(im(ut(c.Oc(),new nTn(t,r)))),40),i)}function DIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;t=hb(new za,n.f),l=n.i[e.c.i.p],p=n.i[e.d.i.p],h=e.c,g=e.d,f=h.a.b,d=g.a.b,l.b||(f+=h.n.b),p.b||(d+=g.n.b),a=wi(y.Math.max(0,f-d)),s=wi(y.Math.max(0,d-f)),m=(k=y.Math.max(1,u(v(e,(cn(),O3)),17).a),j=MJ(e.c.i.k,e.d.i.k),k*j),r=qs(Ns(Ls(As(Ds(new hs,m),s),t),u(ee(n.k,e.c),125))),c=qs(Ns(Ls(As(Ds(new hs,m),a),t),u(ee(n.k,e.d),125))),i=new qMn(r,c),n.c[e.p]=i}function $Ie(n,e,t){var i,r,c,s,f,h;for(i=0,c=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));c.e!=c.i.gc();)r=u(ue(c),27),s="",(!r.n&&(r.n=new q(Sr,r,1,7)),r.n).i==0||(s=u(N((!r.n&&(r.n=new q(Sr,r,1,7)),r.n),0),135).a),f=new vCn(s),Ur(f,r),U(f,(Q1(),y3),r),f.a=i++,f.d.a=r.i+r.g/2,f.d.b=r.j+r.f/2,f.e.a=y.Math.max(r.g,1),f.e.b=y.Math.max(r.f,1),nn(e.e,f),Vc(t.f,r,f),h=u(z(r,(Us(),von)),101),h==(Ai(),Ia)&&(h=Qf)}function xIe(n,e){var t,i,r,c,s,f,h;e.Ug("Layer constraint postprocessing",1),h=n.b,h.c.length!=0&&(i=(Nn(0,h.c.length),u(h.c[0],30)),s=u(sn(h,h.c.length-1),30),t=new Nc(n),c=new Nc(n),EPe(n,i,s,t,c),t.a.c.length==0||(z0(0,h.c.length),d6(h.c,0,t)),c.a.c.length==0||Fn(h.c,c)),kt(n,(W(),hH))&&(r=new Nc(n),f=new Nc(n),bSe(n,r,f),r.a.c.length==0||(z0(0,h.c.length),d6(h.c,0,r)),f.a.c.length==0||Fn(h.c,f)),e.Vg()}function by(n){var e,t,i;switch(n){case 91:case 93:case 45:case 94:case 44:case 92:i="\\"+String.fromCharCode(n&ui);break;case 12:i="\\f";break;case 10:i="\\n";break;case 13:i="\\r";break;case 9:i="\\t";break;case 27:i="\\e";break;default:n<32?(t=(e=n>>>0,"0"+e.toString(16)),i="\\x"+qo(t,t.length-2,t.length)):n>=hr?(t=(e=n>>>0,"0"+e.toString(16)),i="\\v"+qo(t,t.length-6,t.length)):i=""+String.fromCharCode(n&ui)}return i}function GUn(n){var e,t,i;if(mg(u(v(n,(cn(),Ft)),101)))for(t=new M(n.j);t.a<t.c.c.length;)e=u(E(t),12),e.j==(en(),sc)&&(i=u(v(e,(W(),Xu)),10),i?gi(e,u(v(i,gc),64)):e.e.c.length-e.g.c.length<0?gi(e,Zn):gi(e,Wn));else{for(t=new M(n.j);t.a<t.c.c.length;)e=u(E(t),12),i=u(v(e,(W(),Xu)),10),i?gi(e,u(v(i,gc),64)):e.e.c.length-e.g.c.length<0?gi(e,(en(),Zn)):gi(e,(en(),Wn));U(n,Ft,(Ai(),Fv))}}function _en(n){var e,t,i,r,c,s;for(this.e=new Z,this.a=new Z,t=n.b-1;t<3;t++)g4(n,0,u(Zo(n,0),8));if(n.b<4)throw T(new Gn("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,hTe(this,n.b+this.b-1),s=new Z,c=new M(this.e),e=0;e<this.b-1;e++)nn(s,B(E(c)));for(r=ge(n,0);r.b!=r.d.c;)i=u(be(r),8),nn(s,B(E(c))),nn(this.a,new iAn(i,s)),Nn(0,s.c.length),s.c.splice(0,1)}function zUn(n,e){var t,i,r,c,s,f,h,l,a;for(c=new M(n.b);c.a<c.c.c.length;)for(r=u(E(c),30),f=new M(r.a);f.a<f.c.c.length;)for(s=u(E(f),10),s.k==(Vn(),Sc)&&(h=(l=u(fe(new ie(ce(ji(s).a.Kc(),new En))),18),a=u(fe(new ie(ce(Qt(s).a.Kc(),new En))),18),!on(un(v(l,(W(),zf))))||!on(un(v(a,zf)))?e:sRn(e)),t3(s,h)),i=new ie(ce(Qt(s).a.Kc(),new En));pe(i);)t=u(fe(i),18),h=on(un(v(t,(W(),zf))))?sRn(e):e,eRn(t,h)}function RIe(n,e,t,i,r){var c,s,f;if(t.f>=e.o&&t.f<=e.f||e.a*.5<=t.f&&e.a*1.5>=t.f){if(s=u(sn(e.n,e.n.c.length-1),209),s.e+s.d+t.g+r<=i&&(c=u(sn(e.n,e.n.c.length-1),209),c.f-n.f+t.f<=n.b||n.a.c.length==1))return $Y(e,t),!0;if(e.s+t.g<=i&&(e.t+e.d+t.f+r<=n.b||n.a.c.length==1))return nn(e.b,t),f=u(sn(e.n,e.n.c.length-1),209),nn(e.n,new DT(e.s,f.f+f.a+e.i,e.i)),wZ(u(sn(e.n,e.n.c.length-1),209),t),BUn(e,t),!0}return!1}function XUn(n,e,t){var i,r,c,s;return n.Pj()?(r=null,c=n.Qj(),i=n.Ij(1,s=d$(n,e,t),t,e,c),n.Mj()&&!(n.Yi()&&s!=null?rt(s,t):x(s)===x(t))?(s!=null&&(r=n.Oj(s,r)),r=n.Nj(t,r),n.Tj()&&(r=n.Wj(s,t,r)),r?(r.nj(i),r.oj()):n.Jj(i)):(n.Tj()&&(r=n.Wj(s,t,r)),r?(r.nj(i),r.oj()):n.Jj(i)),s):(s=d$(n,e,t),n.Mj()&&!(n.Yi()&&s!=null?rt(s,t):x(s)===x(t))&&(r=null,s!=null&&(r=n.Oj(s,null)),r=n.Nj(t,r),r&&r.oj()),s)}function KIe(n,e){var t,i,r,c,s;if(e.Ug("Path-Like Graph Wrapping",1),n.b.c.length==0){e.Vg();return}if(r=new Gnn(n),s=(r.i==null&&(r.i=xQ(r,new XU)),$(r.i)*r.f),t=s/(r.i==null&&(r.i=xQ(r,new XU)),$(r.i)),r.b>t){e.Vg();return}switch(u(v(n,(cn(),LH)),351).g){case 2:c=new WU;break;case 0:c=new zU;break;default:c=new JU}if(i=c.og(n,r),!c.pg())switch(u(v(n,jO),352).g){case 2:i=R_n(r,i);break;case 1:i=PFn(r,i)}DOe(n,r,i),e.Vg()}function H5(n,e){var t,i,r,c,s,f,h,l;e%=24,n.q.getHours()!=e&&(i=new y.Date(n.q.getTime()),i.setDate(i.getDate()+1),f=n.q.getTimezoneOffset()-i.getTimezoneOffset(),f>0&&(h=f/60|0,l=f%60,r=n.q.getDate(),t=n.q.getHours(),t+h>=24&&++r,c=new y.Date(n.q.getFullYear(),n.q.getMonth(),r,e+h,n.q.getMinutes()+l,n.q.getSeconds(),n.q.getMilliseconds()),n.q.setTime(c.getTime()))),s=n.q.getTime(),n.q.setTime(s+36e5),n.q.getHours()!=e&&n.q.setTime(s)}function BIe(n,e){var t,i,r,c;if(Y2e(n.d,n.e),n.c.a.$b(),$(B(v(e.j,(cn(),hO))))!=0||$(B(v(e.j,hO)))!=0)for(t=i2,x(v(e.j,Yh))!==x((lh(),k1))&&U(e.j,(W(),ka),(_n(),!0)),c=u(v(e.j,V8),17).a,r=0;r<c&&(i=ZIe(n,e),!(i<t&&(t=i,mxn(n),t==0)));r++);else for(t=et,x(v(e.j,Yh))!==x((lh(),k1))&&U(e.j,(W(),ka),(_n(),!0)),c=u(v(e.j,V8),17).a,r=0;r<c&&(i=YUn(n,e),!(i<t&&(t=i,mxn(n),t==0)));r++);}function FIe(n,e){var t,i,r,c,s,f,h,l;for(s=new Z,f=0,t=0,h=0;f<e.c.length-1&&t<n.gc();){for(i=u(n.Xb(t),17).a+h;(Nn(f+1,e.c.length),u(e.c[f+1],17)).a<i;)++f;for(l=0,c=i-(Nn(f,e.c.length),u(e.c[f],17)).a,r=(Nn(f+1,e.c.length),u(e.c[f+1],17)).a-i,c>r&&++l,nn(s,(Nn(f+l,e.c.length),u(e.c[f+l],17))),h+=(Nn(f+l,e.c.length),u(e.c[f+l],17)).a-i,++t;t<n.gc()&&u(n.Xb(t),17).a+h<=(Nn(f+l,e.c.length),u(e.c[f+l],17)).a;)++t;f+=1+l}return s}function _Ie(n,e){var t,i,r,c,s;for(s=new ie(ce(ji(e).a.Kc(),new En));pe(s);)if(c=u(fe(s),18),n.f.b==0?(r=c.c.i.k==(Vn(),zt)&&!!c.c.i.c&&c.c.i.c.p==n.c,pe(new ie(ce(ji(c.c.i).a.Kc(),new En)))?(t=u(fe(new ie(ce(ji(c.c.i).a.Kc(),new En))),18).c.i.c,i=c.c.i.k==Sc&&!!t&&t.p==n.c):i=!1):(r=c.c.i.k==(Vn(),zt)&&c.c.i.p==n.c,i=c.c.i.k==Sc&&u(fe(new ie(ce(ji(c.c.i).a.Kc(),new En))),18).c.i.p==n.c),r||i)return!0;return!1}function HIe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(g=new Z,P=HT(i),j=e*n.a,d=0,m=0,c=new ni,s=new ni,f=new Z,O=0,A=0,p=0,k=0,l=0,a=0;P.a.gc()!=0;)h=x5e(P,r,s),h&&(P.a.Bc(h)!=null,Fn(f.c,h),c.a.zc(h,c),m=n.f[h.p],O+=n.e[h.p]-m*n.b,d=n.c[h.p],A+=d*n.b,a+=m*n.b,k+=n.e[h.p]),(!h||P.a.gc()==0||O>=j&&n.e[h.p]>m*n.b||A>=t*j)&&(Fn(g.c,f),f=new Z,Ki(s,c),c.a.$b(),l-=a,p=y.Math.max(p,l*n.b+k),l+=A,O=A,A=0,a=0,k=0);return new bi(p,g)}function $R(n){var e,t,i,r,c,s,f;if(!n.d){if(f=new jvn,e=D9,c=e.a.zc(n,e),c==null){for(i=new ne(Hr(n));i.e!=i.i.gc();)t=u(ue(i),29),Kt(f,$R(t));e.a.Bc(n)!=null,e.a.gc()==0}for(s=f.i,r=(!n.q&&(n.q=new q(Ps,n,11,10)),new ne(n.q));r.e!=r.i.gc();++s)u(ue(r),411);Kt(f,(!n.q&&(n.q=new q(Ps,n,11,10)),n.q)),ew(f),n.d=new pg((u(N(H((G1(),Hn).o),9),19),f.i),f.g),n.e=u(f.g,688),n.e==null&&(n.e=Joe),Zu(n).b&=-17}return n.d}function Am(n,e,t,i){var r,c,s,f,h,l;if(l=ru(n.e.Dh(),e),h=0,r=u(n.g,124),dr(),u(e,69).xk()){for(s=0;s<n.i;++s)if(c=r[s],l.am(c.Lk())){if(rt(c,t))return h;++h}}else if(t!=null){for(f=0;f<n.i;++f)if(c=r[f],l.am(c.Lk())){if(rt(t,c.md()))return h;++h}if(i){for(h=0,s=0;s<n.i;++s)if(c=r[s],l.am(c.Lk())){if(x(t)===x(ON(n,u(c.md(),58))))return h;++h}}}else for(s=0;s<n.i;++s)if(c=r[s],l.am(c.Lk())){if(c.md()==null)return h;++h}return-1}function qIe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k;if(t.Xh(e)&&(a=(p=e,p?u(i,54).gi(p):null),a))if(k=t.Nh(e,n.a),m=e.t,m>1||m==-1)if(d=u(k,71),g=u(a,71),d.dc())g.$b();else for(s=!!br(e),c=0,f=n.a?d.Kc():d.Ii();f.Ob();)l=u(f.Pb(),58),r=u(Df(n,l),58),r?(s?(h=g.dd(r),h==-1?g.Gi(c,r):c!=h&&g.Ui(c,r)):g.Gi(c,r),++c):n.b&&!s&&(g.Gi(c,l),++c);else k==null?a.Wb(null):(r=Df(n,k),r==null?n.b&&!br(e)&&a.Wb(k):a.Wb(r))}function UIe(n,e){var t,i,r,c,s,f,h,l;for(t=new ogn,r=new ie(ce(ji(e).a.Kc(),new En));pe(r);)if(i=u(fe(r),18),!fr(i)&&(f=i.c.i,QZ(f,TI))){if(l=gen(n,f,TI,MI),l==-1)continue;t.b=y.Math.max(t.b,l),!t.a&&(t.a=new Z),nn(t.a,f)}for(s=new ie(ce(Qt(e).a.Kc(),new En));pe(s);)if(c=u(fe(s),18),!fr(c)&&(h=c.d.i,QZ(h,MI))){if(l=gen(n,h,MI,TI),l==-1)continue;t.d=y.Math.max(t.d,l),!t.c&&(t.c=new Z),nn(t.c,h)}return t}function GIe(n,e,t,i){var r,c,s,f,h,l,a;if(t.d.i!=e.i){for(r=new Cl(n),Ha(r,(Vn(),Ti)),U(r,(W(),st),t),U(r,(cn(),Ft),(Ai(),qc)),Fn(i.c,r),s=new Ic,ic(s,r),gi(s,(en(),Wn)),f=new Ic,ic(f,r),gi(f,Zn),a=t.d,Oi(t,s),c=new Eb,Ur(c,t),U(c,Rr,null),Zi(c,f),Oi(c,a),l=new xi(t.b,0);l.b<l.d.gc();)h=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),72)),x(v(h,Sh))===x(($f(),Jw))&&(U(h,T3,t),bo(l),nn(c.b,h));CHn(r,s,f)}}function zIe(n,e,t,i){var r,c,s,f,h,l,a;if(t.c.i!=e.i)for(r=new Cl(n),Ha(r,(Vn(),Ti)),U(r,(W(),st),t),U(r,(cn(),Ft),(Ai(),qc)),Fn(i.c,r),s=new Ic,ic(s,r),gi(s,(en(),Wn)),f=new Ic,ic(f,r),gi(f,Zn),Oi(t,s),c=new Eb,Ur(c,t),U(c,Rr,null),Zi(c,f),Oi(c,e),CHn(r,s,f),l=new xi(t.b,0);l.b<l.d.gc();)h=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),72)),a=u(v(h,Sh),278),a==($f(),Jw)&&(kt(h,T3)||U(h,T3,t),bo(l),nn(c.b,h))}function VUn(n){Sm();var e,t,i,r;if(e=wi(n),n<I8.length)return I8[e];if(n<=50)return ry((dh(),QF),e);if(n<=d1)return Rp(ry(m3[1],e),e);if(n>1e6)throw T(new _E("power of ten too big"));if(n<=et)return Rp(ry(m3[1],e),e);for(i=ry(m3[1],et),r=i,t=vc(n-et),e=wi(n%et);Ec(t,et)>0;)r=Og(r,i),t=bs(t,et);for(r=Og(r,ry(m3[1],e)),r=Rp(r,et),t=vc(n-et);Ec(t,et)>0;)r=Rp(r,et),t=bs(t,et);return r=Rp(r,e),r}function WUn(n){var e,t,i,r,c,s,f,h,l,a;for(h=new M(n.a);h.a<h.c.c.length;)if(f=u(E(h),10),f.k==(Vn(),Zt)&&(r=u(v(f,(W(),gc)),64),r==(en(),Zn)||r==Wn))for(i=new ie(ce(Ml(f).a.Kc(),new En));pe(i);)t=u(fe(i),18),e=t.a,e.b!=0&&(l=t.c,l.i==f&&(c=(oe(e.b!=0),u(e.a.a.c,8)),c.b=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])).b),a=t.d,a.i==f&&(s=(oe(e.b!=0),u(e.c.b.c,8)),s.b=cc(S(C(Ei,1),J,8,0,[a.i.n,a.n,a.a])).b))}function q5(n,e,t,i){var r,c,s;if(this.j=new Z,this.k=new Z,this.b=new Z,this.c=new Z,this.e=new mp,this.i=new Tu,this.f=new rL,this.d=new Z,this.g=new Z,nn(this.b,n),nn(this.b,e),this.e.c=y.Math.min(n.a,e.a),this.e.d=y.Math.min(n.b,e.b),this.e.b=y.Math.abs(n.a-e.a),this.e.a=y.Math.abs(n.b-e.b),r=u(v(i,(cn(),Rr)),75),r)for(s=ge(r,0);s.b!=s.d.c;)c=u(be(s),8),lQ(c.a,n.a)&&Re(this.i,c);t&&nn(this.j,t),nn(this.k,i)}function XIe(n,e,t,i){var r,c,s,f,h,l,a;for(f=-1,a=new M(n);a.a<a.c.c.length;)l=u(E(a),118),l.g=f--,r=Se(KT(ET(ut(new Cn(null,new On(l.f,16)),new P3n),new I3n)).d),c=Se(KT(ET(ut(new Cn(null,new On(l.k,16)),new O3n),new A3n)).d),s=r,h=c,i||(s=Se(KT(ET(new Cn(null,new On(l.f,16)),new L3n)).d),h=Se(KT(ET(new Cn(null,new On(l.k,16)),new C3n)).d)),l.d=s,l.a=r,l.i=h,l.b=c,h==0?xt(t,l,t.c.b,t.c):s==0&&xt(e,l,e.c.b,e.c)}function t3(n,e){var t,i,r,c,s,f;if(n.k==(Vn(),Sc)&&(t=n.k==Sc&&!s4(ut(u(v(n,(W(),F8)),15).Oc(),new Z3(new qU))).Bd((Va(),v3))?(Co(),Zj):e,U(n,(W(),S3),t),t!=(Co(),Sa)))for(i=u(v(n,st),18),f=$(B(v(i,(cn(),m1)))),s=0,t==nl?s=n.o.b-y.Math.ceil(f/2):t==Zj&&(s=y.Math.ceil(n.o.b-$(B(v(Hi(n),C2)))-f)/2,n.o.b-=$(B(v(Hi(n),C2))),n.o.b-=f),c=new M(n.j);c.a<c.c.c.length;)r=u(E(c),12),r.n.b=s}function JUn(n,e,t){var i,r,c,s,f,h,l,a,d;for(r=!0,s=new M(n.b);s.a<s.c.c.length;){for(c=u(E(s),30),l=li,a=null,h=new M(c.a);h.a<h.c.c.length;)if(f=u(E(h),10),d=$(e.p[f.p])+$(e.d[f.p])-f.d.d,i=$(e.p[f.p])+$(e.d[f.p])+f.o.b+f.d.a,d>l&&i>l)a=f,l=$(e.p[f.p])+$(e.d[f.p])+f.o.b+f.d.a;else{r=!1,t._g()&&t.bh("bk node placement breaks on "+f+" which should have been after "+a);break}if(!r)break}return t._g()&&t.bh(e+" is feasible: "+r),r}function Hen(n,e,t,i){var r,c,s,f,h,l,a,d,g;if(c=new Cl(n),Ha(c,(Vn(),_c)),U(c,(cn(),Ft),(Ai(),qc)),r=0,e){for(s=new Ic,U(s,(W(),st),e),U(c,st,e.i),gi(s,(en(),Wn)),ic(s,c),g=hh(e.e),l=g,a=0,d=l.length;a<d;++a)h=l[a],Oi(h,s);U(e,Xu,c),++r}if(t){for(f=new Ic,U(c,(W(),st),t.i),U(f,st,t),gi(f,(en(),Zn)),ic(f,c),g=hh(t.g),l=g,a=0,d=l.length;a<d;++a)h=l[a],Zi(h,f);U(t,Xu,c),++r}return U(c,(W(),iO),Y(r)),Fn(i.c,c),c}function VIe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(t=(l=new ol(n.c.b).a.vc().Kc(),new P0(l));t.a.Ob();)e=(f=u(t.a.Pb(),44),u(f.md(),143)),r=e.a,r==null&&(r=""),i=kae(n.c,r),!i&&r.length==0&&(i=s5e(n)),i&&!iw(i.c,e,!1)&&Re(i.c,e);for(s=ge(n.a,0);s.b!=s.d.c;)c=u(be(s),487),a=WD(n.c,c.a),p=WD(n.c,c.b),a&&p&&Re(a.c,new bi(p,c.c));for(vo(n.a),g=ge(n.b,0);g.b!=g.d.c;)d=u(be(g),487),e=vae(n.c,d.a),h=WD(n.c,d.b),e&&h&&Yhe(e,h,d.c);vo(n.b)}function WIe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;c=new U9(n),s=new sFn,r=(nk(s.g),nk(s.j),Hu(s.b),nk(s.d),nk(s.i),Hu(s.k),Hu(s.c),Hu(s.e),p=q_n(s,c,null),KHn(s,c),p),e&&(l=new U9(e),f=rOe(l),hnn(r,S(C(can,1),Kn,536,0,[f]))),g=!1,d=!1,t&&(l=new U9(t),HP in l.a&&(g=dl(l,HP).qe().a),CWn in l.a&&(d=dl(l,CWn).qe().a)),a=eEn(U$n(new op,g),d),Lje(new vmn,r,a),HP in c.a&&bf(c,HP,null),(g||d)&&(h=new sp,AUn(a,h,g,d),bf(c,HP,h)),i=new nyn(s),g6e(new CX(r),i)}function JIe(n,e,t){var i,r,c,s,f,h,l,a,d;for(s=new dFn,l=S(C(ye,1),_e,28,15,[0]),r=-1,c=0,i=0,h=0;h<n.b.c.length;++h)if(a=u(sn(n.b,h),443),a.b>0){if(r<0&&a.a&&(r=h,c=l[0],i=0),r>=0){if(f=a.b,h==r&&(f-=i++,f==0))return 0;if(!ZGn(e,l,a,f,s)){h=r-1,l[0]=c;continue}}else if(r=-1,!ZGn(e,l,a,0,s))return 0}else{if(r=-1,Xi(a.c,0)==32){if(d=l[0],n$n(e,l),l[0]>d)continue}else if(Nge(e,a.c,l[0])){l[0]+=a.c.length;continue}return 0}return $Le(s,t)?l[0]:0}function QIe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(a=new dT(new K9n(t)),f=F(so,Xh,28,n.f.e.c.length,16,1),TW(f,f.length),t[e.a]=0,l=new M(n.f.e);l.a<l.c.c.length;)h=u(E(l),153),h.a!=e.a&&(t[h.a]=et),Tp(ym(a,h),_m);for(;a.b.c.length!=0;)for(d=u(w$(a),153),f[d.a]=!0,c=WCn(new SL(n.b,d),0);c.c;)r=u(oQ(c),290),g=f7e(r,d),!f[g.a]&&(kt(r,(Uk(),EI))?s=$(B(v(r,EI))):s=n.c,i=t[d.a]+s,i<t[g.a]&&(t[g.a]=i,lxn(a,g),Tp(ym(a,g),_m)))}function YIe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m;for(s=n.o,i=F(ye,_e,28,s,15,1),r=F(ye,_e,28,s,15,1),t=n.p,e=F(ye,_e,28,t,15,1),c=F(ye,_e,28,t,15,1),l=0;l<s;l++){for(d=0;d<t&&!Fg(n,l,d);)++d;i[l]=d}for(a=0;a<s;a++){for(d=t-1;d>=0&&!Fg(n,a,d);)--d;r[a]=d}for(p=0;p<t;p++){for(f=0;f<s&&!Fg(n,f,p);)++f;e[p]=f}for(m=0;m<t;m++){for(f=s-1;f>=0&&!Fg(n,f,m);)--f;c[m]=f}for(h=0;h<s;h++)for(g=0;g<t;g++)h<c[g]&&h>e[g]&&g<r[h]&&g>i[h]&&xS(n,h,g,!1,!0)}function qen(n){var e,t,i,r,c,s,f,h;t=on(un(v(n,(Us(),XYn)))),c=n.a.c.d,f=n.a.d.d,t?(s=ch(mi(new V(f.a,f.b),c),.5),h=ch(Fi(n.e),.5),e=mi(tt(new V(c.a,c.b),s),h),YX(n.d,e)):(r=$(B(v(n.a,tZn))),i=n.d,c.a>=f.a?c.b>=f.b?(i.a=f.a+(c.a-f.a)/2+r,i.b=f.b+(c.b-f.b)/2-r-n.e.b):(i.a=f.a+(c.a-f.a)/2+r,i.b=c.b+(f.b-c.b)/2+r):c.b>=f.b?(i.a=c.a+(f.a-c.a)/2+r,i.b=f.b+(c.b-f.b)/2+r):(i.a=c.a+(f.a-c.a)/2+r,i.b=c.b+(f.b-c.b)/2-r-n.e.b))}function U5(n){var e,t,i,r,c,s,f,h;if(!n.f){if(h=new tG,f=new tG,e=D9,s=e.a.zc(n,e),s==null){for(c=new ne(Hr(n));c.e!=c.i.gc();)r=u(ue(c),29),Kt(h,U5(r));e.a.Bc(n)!=null,e.a.gc()==0}for(i=(!n.s&&(n.s=new q(ku,n,21,17)),new ne(n.s));i.e!=i.i.gc();)t=u(ue(i),179),L(t,102)&&ve(f,u(t,19));ew(f),n.r=new _Pn(n,(u(N(H((G1(),Hn).o),6),19),f.i),f.g),Kt(h,n.r),ew(h),n.f=new pg((u(N(H(Hn.o),5),19),h.i),h.g),Zu(n).b&=-3}return n.f}function QUn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,jd),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new K0n))),Q(n,jd,WK,rn(aon)),Q(n,jd,JK,rn(w_)),Q(n,jd,l3,rn(LYn)),Q(n,jd,Wb,rn(lon)),Q(n,jd,Atn,rn(xYn)),Q(n,jd,Ltn,rn($Yn)),Q(n,jd,Otn,rn(RYn)),Q(n,jd,Ntn,rn(DYn)),Q(n,jd,Ftn,rn(NYn)),Q(n,jd,_tn,rn(b_)),Q(n,jd,Htn,rn(hon)),Q(n,jd,qtn,rn(pI))}function FS(){FS=R,Ldn=S(C(fs,1),gh,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),Coe=new RegExp(`[
\r\f]+`);try{A9=S(C(NDe,1),Kn,2114,0,[new X9((vX(),zC("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",O7((FE(),FE(),C8))))),new X9(zC("yyyy-MM-dd'T'HH:mm:ss'.'SSS",O7(C8))),new X9(zC("yyyy-MM-dd'T'HH:mm:ss",O7(C8))),new X9(zC("yyyy-MM-dd'T'HH:mm",O7(C8))),new X9(zC("yyyy-MM-dd",O7(C8)))])}catch(n){if(n=Ot(n),!L(n,82))throw T(n)}}function ZIe(n,e){var t,i,r,c;if(r=to(n.d,1)!=0,i=Een(n,e),i==0&&on(un(v(e.j,(W(),ka)))))return 0;!on(un(v(e.j,(W(),ka))))&&!on(un(v(e.j,j2)))||x(v(e.j,(cn(),Yh)))===x((lh(),k1))?e.c.mg(e.e,r):r=on(un(v(e.j,ka))),sy(n,e,r,!0),on(un(v(e.j,j2)))&&U(e.j,j2,(_n(),!1)),on(un(v(e.j,ka)))&&(U(e.j,ka,(_n(),!1)),U(e.j,j2,!0)),t=Een(n,e);do{if(DQ(n),t==0)return 0;r=!r,c=t,sy(n,e,r,!1),t=Een(n,e)}while(c>t);return c}function YUn(n,e){var t,i,r,c;if(r=to(n.d,1)!=0,i=kS(n,e),i==0&&on(un(v(e.j,(W(),ka)))))return 0;!on(un(v(e.j,(W(),ka))))&&!on(un(v(e.j,j2)))||x(v(e.j,(cn(),Yh)))===x((lh(),k1))?e.c.mg(e.e,r):r=on(un(v(e.j,ka))),sy(n,e,r,!0),on(un(v(e.j,j2)))&&U(e.j,j2,(_n(),!1)),on(un(v(e.j,ka)))&&(U(e.j,ka,(_n(),!1)),U(e.j,j2,!0)),t=kS(n,e);do{if(DQ(n),t==0)return 0;r=!r,c=t,sy(n,e,r,!1),t=kS(n,e)}while(c>t);return c}function Uen(n,e,t,i){var r,c,s,f,h,l,a,d,g;return h=mi(new V(t.a,t.b),n),l=h.a*e.b-h.b*e.a,a=e.a*i.b-e.b*i.a,d=(h.a*i.b-h.b*i.a)/a,g=l/a,a==0?l==0?(r=tt(new V(t.a,t.b),ch(new V(i.a,i.b),.5)),c=J1(n,r),s=J1(tt(new V(n.a,n.b),e),r),f=y.Math.sqrt(i.a*i.a+i.b*i.b)*.5,c<s&&c<=f?new V(n.a,n.b):s<=f?tt(new V(n.a,n.b),e):null):null:d>=0&&d<=1&&g>=0&&g<=1?tt(new V(n.a,n.b),ch(new V(e.a,e.b),d)):null}function nOe(n,e,t){var i,r,c,s,f;if(i=u(v(n,(cn(),vH)),21),t.a>e.a&&(i.Hc((wd(),w9))?n.c.a+=(t.a-e.a)/2:i.Hc(g9)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((wd(),m9))?n.c.b+=(t.b-e.b)/2:i.Hc(p9)&&(n.c.b+=t.b-e.b)),u(v(n,(W(),Hc)),21).Hc((pr(),cs))&&(t.a>e.a||t.b>e.b))for(f=new M(n.a);f.a<f.c.c.length;)s=u(E(f),10),s.k==(Vn(),Zt)&&(r=u(v(s,gc),64),r==(en(),Zn)?s.n.a+=t.a-e.a:r==ae&&(s.n.b+=t.b-e.b));c=n.d,n.f.a=t.a-c.b-c.c,n.f.b=t.b-c.d-c.a}function eOe(n,e,t){var i,r,c,s,f;if(i=u(v(n,(cn(),vH)),21),t.a>e.a&&(i.Hc((wd(),w9))?n.c.a+=(t.a-e.a)/2:i.Hc(g9)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((wd(),m9))?n.c.b+=(t.b-e.b)/2:i.Hc(p9)&&(n.c.b+=t.b-e.b)),u(v(n,(W(),Hc)),21).Hc((pr(),cs))&&(t.a>e.a||t.b>e.b))for(s=new M(n.a);s.a<s.c.c.length;)c=u(E(s),10),c.k==(Vn(),Zt)&&(r=u(v(c,gc),64),r==(en(),Zn)?c.n.a+=t.a-e.a:r==ae&&(c.n.b+=t.b-e.b));f=n.d,n.f.a=t.a-f.b-f.c,n.f.b=t.b-f.d-f.a}function tOe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(e=aHn(n),a=(f=new qa(e).a.vc().Kc(),new IE(f));a.a.Ob();){for(l=(r=u(a.a.Pb(),44),u(r.ld(),10)),d=0,g=0,d=l.d.d,g=l.o.b+l.d.a,n.d[l.p]=0,t=l;(c=n.a[t.p])!=l;)i=Q8e(t,c),h=0,n.c==(fh(),y1)?h=i.d.n.b+i.d.a.b-i.c.n.b-i.c.a.b:h=i.c.n.b+i.c.a.b-i.d.n.b-i.d.a.b,s=$(n.d[t.p])+h,n.d[c.p]=s,d=y.Math.max(d,c.d.d-s),g=y.Math.max(g,s+c.o.b+c.d.a),t=c;t=l;do n.d[t.p]=$(n.d[t.p])+d,t=n.a[t.p];while(t!=l);n.b[l.p]=d+g}}function G5(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=0,s=n.t,r=0,i=0,h=0,g=0,d=0,t&&(n.n.c.length=0,nn(n.n,new DT(n.s,n.t,n.i))),f=0,a=new M(n.b);a.a<a.c.c.length;)l=u(E(a),27),c+l.g+(f>0?n.i:0)>e&&h>0&&(c=0,s+=h+n.i,r=y.Math.max(r,g),i+=h+n.i,h=0,g=0,t&&(++d,nn(n.n,new DT(n.s,s,n.i))),f=0),g+=l.g+(f>0?n.i:0),h=y.Math.max(h,l.f),t&&wZ(u(sn(n.n,d),209),l),c+=l.g+(f>0?n.i:0),++f;return r=y.Math.max(r,g),i+=h,t&&(n.r=r,n.d=i,vZ(n.j)),new Ho(n.s,n.t,r,i)}function xR(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(n.b=!1,d=Pt,h=li,g=Pt,l=li,i=n.e.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),272),r=t.a,d=y.Math.min(d,r.c),h=y.Math.max(h,r.c+r.b),g=y.Math.min(g,r.d),l=y.Math.max(l,r.d+r.a),s=new M(t.c);s.a<s.c.c.length;)c=u(E(s),407),e=c.a,e.a?(a=r.d+c.b.b,f=a+c.c,g=y.Math.min(g,a),l=y.Math.max(l,f)):(a=r.c+c.b.a,f=a+c.c,d=y.Math.min(d,a),h=y.Math.max(h,f));n.a=new V(h-d,l-g),n.c=new V(d+n.d.a,g+n.d.b)}function Jg(n){var e,t,i,r,c,s,f,h;if(!n.a){if(n.o=null,h=new vyn(n),e=new yvn,t=D9,f=t.a.zc(n,t),f==null){for(s=new ne(Hr(n));s.e!=s.i.gc();)c=u(ue(s),29),Kt(h,Jg(c));t.a.Bc(n)!=null,t.a.gc()==0}for(r=(!n.s&&(n.s=new q(ku,n,21,17)),new ne(n.s));r.e!=r.i.gc();)i=u(ue(r),179),L(i,331)&&ve(e,u(i,35));ew(e),n.k=new HPn(n,(u(N(H((G1(),Hn).o),7),19),e.i),e.g),Kt(h,n.k),ew(h),n.a=new pg((u(N(H(Hn.o),4),19),h.i),h.g),Zu(n).b&=-2}return n.a}function Gen(n,e,t,i){var r,c,s,f,h,l,a;if(a=ru(n.e.Dh(),e),r=0,c=u(n.g,124),h=null,dr(),u(e,69).xk()){for(f=0;f<n.i;++f)if(s=c[f],a.am(s.Lk())){if(rt(s,t)){h=s;break}++r}}else if(t!=null){for(f=0;f<n.i;++f)if(s=c[f],a.am(s.Lk())){if(rt(t,s.md())){h=s;break}++r}}else for(f=0;f<n.i;++f)if(s=c[f],a.am(s.Lk())){if(s.md()==null){h=s;break}++r}return h&&(fo(n.e)&&(l=e.Jk()?new GD(n.e,4,e,t,null,r,!0):V1(n,e.tk()?2:1,e,t,e.ik(),-1,!0),i?i.nj(l):i=l),i=ly(n,h,i)),i}function RR(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m,k;switch(m=0,k=0,h=r.c,f=r.b,a=t.f,p=t.g,e.g){case 0:m=i.i+i.g+s,n.c?k=yye(m,c,i,s):k=i.j,g=y.Math.max(h,m+p),l=y.Math.max(f,k+a);break;case 1:k=i.j+i.f+s,n.c?m=kye(k,c,i,s):m=i.i,g=y.Math.max(h,m+p),l=y.Math.max(f,k+a);break;case 2:m=h+s,k=0,g=h+s+p,l=y.Math.max(f,a);break;case 3:m=0,k=f+s,g=y.Math.max(h,p),l=f+s+a;break;default:throw T(new Gn("IllegalPlacementOption."))}return d=new tZ(n.a,g,l,e,m,k),d}function iOe(n){var e,t,i,r,c,s,f,h,l,a,d,g;if(f=n.d,d=u(v(n,(W(),I3)),15),e=u(v(n,M3),15),!(!d&&!e)){if(c=$(B(rw(n,(cn(),PH)))),s=$(B(rw(n,phn))),g=0,d){for(l=0,r=d.Kc();r.Ob();)i=u(r.Pb(),10),l=y.Math.max(l,i.o.b),g+=i.o.a;g+=c*(d.gc()-1),f.d+=l+s}if(t=0,e){for(l=0,r=e.Kc();r.Ob();)i=u(r.Pb(),10),l=y.Math.max(l,i.o.b),t+=i.o.a;t+=c*(e.gc()-1),f.a+=l+s}h=y.Math.max(g,t),h>n.o.a&&(a=(h-n.o.a)/2,f.b=y.Math.max(f.b,a),f.c=y.Math.max(f.c,a))}}function rOe(n){var e,t,i,r,c,s,f,h;for(c=new XAn,$le(c,(qp(),due)),i=(r=P$(n,F(fn,J,2,0,6,1)),new zv(new Fu(new PL(n,r).b)));i.b<i.d.gc();)t=(oe(i.b<i.d.gc()),Ae(i.d.Xb(i.c=i.b++))),s=Yen(La,t),s&&(e=dl(n,t),e.te()?f=e.te().a:e.qe()?f=""+e.qe().a:e.re()?f=""+e.re().a:f=e.Ib(),h=Jen(s,f),h!=null&&((Su(s.j,(pf(),pi))||Su(s.j,xn))&&Sk(g$(c,Ye),s,h),Su(s.j,Ih)&&Sk(g$(c,Vt),s,h),Su(s.j,Fd)&&Sk(g$(c,Qu),s,h),Su(s.j,E1)&&Sk(g$(c,Sr),s,h)));return c}function wy(n,e,t){var i,r,c,s,f,h,l,a;if(r=u(n.g,124),Pl(n.e,e))return dr(),u(e,69).xk()?new eT(e,n):new k7(e,n);for(l=ru(n.e.Dh(),e),i=0,f=0;f<n.i;++f){if(c=r[f],s=c.Lk(),l.am(s)){if(dr(),u(e,69).xk())return c;if(s==(n3(),_3)||s==F3){for(h=new mo(Jr(c.md()));++f<n.i;)c=r[f],s=c.Lk(),(s==_3||s==F3)&&Be(h,Jr(c.md()));return TV(u(e.Hk(),156),h.a)}else return a=c.md(),a!=null&&t&&L(e,102)&&u(e,19).Bb&hr&&(a=N5(n,e,f,i,a)),a}++i}return e.ik()}function _S(n,e,t,i){var r,c,s,f,h,l;if(h=ru(n.e.Dh(),e),c=u(n.g,124),Pl(n.e,e)){for(r=0,f=0;f<n.i;++f)if(s=c[f],h.am(s.Lk())){if(r==t)return dr(),u(e,69).xk()?s:(l=s.md(),l!=null&&i&&L(e,102)&&u(e,19).Bb&hr&&(l=N5(n,e,f,r,l)),l);++r}throw T(new Or(p8+t+Cd+r))}else{for(r=0,f=0;f<n.i;++f){if(s=c[f],h.am(s.Lk()))return dr(),u(e,69).xk()?s:(l=s.md(),l!=null&&i&&L(e,102)&&u(e,19).Bb&hr&&(l=N5(n,e,f,r,l)),l);++r}return e.ik()}}function KR(){KR=R,yQn=S(C(ye,1),_e,28,15,[Wi,1162261467,W5,1220703125,362797056,1977326743,W5,387420489,QS,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,W5,1291467969,1544804416,1838265625,60466176]),jQn=S(C(ye,1),_e,28,15,[-1,-1,31,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5])}function BR(n,e){var t,i,r,c,s,f,h,l,a,d;if(s=n.e,h=e.e,h==0)return n;if(s==0)return e.e==0?e:new Ya(-e.e,e.d,e.a);if(c=n.d,f=e.d,c+f==2)return t=vi(n.a[0],mr),i=vi(e.a[0],mr),s<0&&(t=n1(t)),h<0&&(i=n1(i)),dh(),SM(bs(t,i),0)?ia(bs(t,i)):U6(ia(n1(bs(t,i))));if(r=c!=f?c>f?1:-1:fY(n.a,e.a,c),r==-1)d=-h,a=s==h?ZD(e.a,f,n.a,c):e$(e.a,f,n.a,c);else if(d=s,s==h){if(r==0)return dh(),P8;a=ZD(n.a,c,e.a,f)}else a=e$(n.a,c,e.a,f);return l=new Ya(d,a.length,a),J6(l),l}function cOe(n,e){var t,i,r,c;if(c=$Un(e),!e.c&&(e.c=new q(Qu,e,9,9)),qt(new Cn(null,(!e.c&&(e.c=new q(Qu,e,9,9)),new On(e.c,16))),new H9n(c)),r=u(v(c,(W(),Hc)),21),QAe(e,r),r.Hc((pr(),cs)))for(i=new ne((!e.c&&(e.c=new q(Qu,e,9,9)),e.c));i.e!=i.i.gc();)t=u(ue(i),123),CLe(n,e,c,t);return u(z(e,(cn(),xd)),181).gc()!=0&&Sqn(e,c),on(un(v(c,ahn)))&&r.Fc(eO),kt(c,Tj)&&xjn(new zY($(B(v(c,Tj)))),c),x(z(e,Kw))===x((jl(),T1))?JNe(n,e,c):DNe(n,e,c),c}function uOe(n){var e,t,i,r,c,s,f,h;for(r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=new M(Cb(i.a));s.a<s.c.c.length;)if(c=u(E(s),10),c$n(c)&&(t=u(v(c,(W(),o0)),313),!t.g&&t.d))for(e=t,h=t.d;h;)Kqn(h.i,h.k,!1,!0),fk(e.a),fk(h.i),fk(h.k),fk(h.b),Oi(h.c,e.c.d),Oi(e.c,null),$i(e.a,null),$i(h.i,null),$i(h.k,null),$i(h.b,null),f=new jJ(e.i,h.a,e.e,h.j,h.f),f.k=e.k,f.n=e.n,f.b=e.b,f.c=h.c,f.g=e.g,f.d=h.d,U(e.i,o0,f),U(h.a,o0,f),h=h.d,e=f}function Rc(n,e){var t,i,r,c,s,f,h;if(n==null)return null;if(c=n.length,c==0)return"";for(h=F(fs,gh,28,c,15,1),Ri(0,c,n.length),Ri(0,c,h.length),qIn(n,0,c,h,0),t=null,f=e,r=0,s=0;r<c;r++)i=h[r],Tzn(),i<=32&&I[i]&2?f?(!t&&(t=new ls(n)),G1e(t,r-s++)):(f=e,i!=32&&(!t&&(t=new ls(n)),N$(t,r-s,r-s+1," "))):f=!1;return f?t?(c=t.a.length,c>0?qo(t.a,0,c-1):""):(Ri(0,c-1,n.length),n.substr(0,c-1)):t?t.a:n}function oOe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Sort By Input Model "+v(n,(cn(),Yh)),1),r=0,i=new M(n.b);i.a<i.c.c.length;){for(t=u(E(i),30),h=r==0?0:r-1,f=u(sn(n.b,h),30),s=new M(t.a);s.a<s.c.c.length;)c=u(E(s),10),x(v(c,Ft))!==x((Ai(),Ud))&&x(v(c,Ft))!==x(qc)&&(Ln(),Yt(c.j,new URn(f,u(v(n,Yh),284),rFn(c),on(un(v(n,mH))))),e.bh("Node "+c+" ports: "+c.j));Ln(),Yt(t.a,new wxn(f,u(v(n,Yh),284),u(v(n,_fn),390))),e.bh("Layer "+r+": "+t),++r}e.Vg()}function gw(n,e){var t,i,r,c,s;if(s=u(e,138),Gg(n),Gg(s),s.b!=null){if(n.c=!0,n.b==null){n.b=F(ye,_e,28,s.b.length,15,1),Oc(s.b,0,n.b,0,s.b.length);return}for(c=F(ye,_e,28,n.b.length+s.b.length,15,1),t=0,i=0,r=0;t<n.b.length||i<s.b.length;)t>=n.b.length?(c[r++]=s.b[i++],c[r++]=s.b[i++]):i>=s.b.length?(c[r++]=n.b[t++],c[r++]=n.b[t++]):s.b[i]<n.b[t]||s.b[i]===n.b[t]&&s.b[i+1]<n.b[t+1]?(c[r++]=s.b[i++],c[r++]=s.b[i++]):(c[r++]=n.b[t++],c[r++]=n.b[t++]);n.b=c}}function sOe(n,e){var t,i,r,c,s,f,h,l,a,d;return t=on(un(v(n,(W(),$w)))),f=on(un(v(e,$w))),i=u(v(n,yf),12),h=u(v(e,yf),12),r=u(v(n,Es),12),l=u(v(e,Es),12),a=!!i&&i==h,d=!!r&&r==l,!t&&!f?new DV(u(E(new M(n.j)),12).p==u(E(new M(e.j)),12).p,a,d):(c=(!on(un(v(n,$w)))||on(un(v(n,jj))))&&(!on(un(v(e,$w)))||on(un(v(e,jj)))),s=(!on(un(v(n,$w)))||!on(un(v(n,jj))))&&(!on(un(v(e,$w)))||!on(un(v(e,jj)))),new DV(a&&c||d&&s,a,d))}function ZUn(n){var e,t,i,r,c,s,f,h;for(i=0,t=0,h=new Mt,e=0,f=new M(n.n);f.a<f.c.c.length;)s=u(E(f),209),s.c.c.length==0?xt(h,s,h.c.b,h.c):(i=y.Math.max(i,s.d),t+=s.a+(e>0?n.i:0)),++e;for(IY(n.n,h),n.d=t,n.r=i,n.g=0,n.f=0,n.e=0,n.o=Pt,n.p=Pt,c=new M(n.b);c.a<c.c.c.length;)r=u(E(c),27),n.p=y.Math.min(n.p,r.g),n.g=y.Math.max(n.g,r.g),n.f=y.Math.max(n.f,r.f),n.o=y.Math.min(n.o,r.f),n.e+=r.f+n.i;n.a=n.e/n.b.c.length-n.i*((n.b.c.length-1)/n.b.c.length),vZ(n.j)}function nGn(n){var e,t,i,r;return n.Db&64?ox(n):(e=new mo(ycn),i=n.k,i?Be(Be((e.a+=' "',e),i),'"'):(!n.n&&(n.n=new q(Sr,n,1,7)),n.n.i>0&&(r=(!n.n&&(n.n=new q(Sr,n,1,7)),u(N(n.n,0),135)).a,!r||Be(Be((e.a+=' "',e),r),'"'))),t=(!n.b&&(n.b=new Dn(he,n,4,7)),!(n.b.i<=1&&(!n.c&&(n.c=new Dn(he,n,5,8)),n.c.i<=1))),t?e.a+=" [":e.a+=" ",Be(e,KX(new yL,new ne(n.b))),t&&(e.a+="]"),e.a+=iB,t&&(e.a+="["),Be(e,KX(new yL,new ne(n.c))),t&&(e.a+="]"),e.a)}function fOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(_=n.c,X=e.c,t=qr(_.a,n,0),i=qr(X.a,e,0),A=u(Rb(n,(gr(),Vu)).Kc().Pb(),12),kn=u(Rb(n,Jc).Kc().Pb(),12),D=u(Rb(e,Vu).Kc().Pb(),12),Rn=u(Rb(e,Jc).Kc().Pb(),12),P=hh(A.e),tn=hh(kn.g),O=hh(D.e),yn=hh(Rn.g),uw(n,i,X),s=O,a=0,m=s.length;a<m;++a)r=s[a],Oi(r,A);for(f=yn,d=0,k=f.length;d<k;++d)r=f[d],Zi(r,kn);for(uw(e,t,_),h=P,g=0,j=h.length;g<j;++g)r=h[g],Oi(r,D);for(c=tn,l=0,p=c.length;l<p;++l)r=c[l],Zi(r,Rn)}function hOe(n){var e,t,i,r,c,s,f;for(s=u(z(n,(Cg(),L2)),27),i=new ne((!s.e&&(s.e=new Dn(Vt,s,7,4)),s.e));i.e!=i.i.gc();)t=u(ue(i),74),f=new V(u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166).j,u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166).k),c=new V(u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166).b,u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166).c),r=new V(c.a-f.a,c.b-f.b),e=y.Math.atan2(r.b,r.a),u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84).qf((oa(),yq),e)}function lOe(n,e){var t,i,r,c,s,f,h,l,a;for(e.Ug("Interactive Node Reorderer",1),a=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),f=new Z,r=new ne(a);r.e!=r.i.gc();)t=u(ue(r),27),Nf(t,(Bf(),Bj))&&Fn(f.c,t);for(c=new M(f);c.a<c.c.c.length;)t=u(E(c),27),rC(a,t);for(Ln(),Yt(f,new emn),s=new M(f);s.a<s.c.c.length;)t=u(E(s),27),l=u(z(t,(Bf(),Bj)),17).a,l=y.Math.min(l,a.i),v5(a,l,t);for(h=0,i=new ne(a);i.e!=i.i.gc();)t=u(ue(i),27),ht(t,(Bf(),g1n),Y(h)),++h;e.Vg()}function zen(n,e,t){var i,r,c,s,f,h,l,a;return y.Math.abs(e.s-e.c)<vh||y.Math.abs(t.s-t.c)<vh?0:(i=oqn(n,e.j,t.e),r=oqn(n,t.j,e.e),c=i==-1||r==-1,s=0,c?(i==-1&&(new ed((af(),Ea),t,e,1),++s),r==-1&&(new ed((af(),Ea),e,t,1),++s)):(f=Rg(e.j,t.s,t.c),f+=Rg(t.e,e.s,e.c),h=Rg(t.j,e.s,e.c),h+=Rg(e.e,t.s,t.c),l=i+16*f,a=r+16*h,l<a?new ed((af(),zw),e,t,a-l):l>a?new ed((af(),zw),t,e,l-a):l>0&&a>0&&(new ed((af(),zw),e,t,0),new ed(zw,t,e,0))),s)}function aOe(n,e,t){var i,r,c;for(n.a=new Z,c=ge(e.b,0);c.b!=c.d.c;){for(r=u(be(c),40);u(v(r,(lc(),Ph)),17).a>n.a.c.length-1;)nn(n.a,new bi(i2,Crn));i=u(v(r,Ph),17).a,t==(ci(),Kr)||t==Xr?(r.e.a<$(B(u(sn(n.a,i),42).a))&&QA(u(sn(n.a,i),42),r.e.a),r.e.a+r.f.a>$(B(u(sn(n.a,i),42).b))&&YA(u(sn(n.a,i),42),r.e.a+r.f.a)):(r.e.b<$(B(u(sn(n.a,i),42).a))&&QA(u(sn(n.a,i),42),r.e.b),r.e.b+r.f.b>$(B(u(sn(n.a,i),42).b))&&YA(u(sn(n.a,i),42),r.e.b+r.f.b))}}function eGn(n,e,t,i){var r,c,s,f,h,l,a;if(c=FC(i),f=on(un(v(i,(cn(),uhn)))),(f||on(un(v(n,wO))))&&!mg(u(v(n,Ft),101)))r=zp(c),h=Nen(n,t,t==(gr(),Jc)?r:xk(r));else switch(h=new Ic,ic(h,n),e?(a=h.n,a.a=e.a-n.n.a,a.b=e.b-n.n.b,o_n(a,0,0,n.o.a,n.o.b),gi(h,jUn(h,c))):(r=zp(c),gi(h,t==(gr(),Jc)?r:xk(r))),s=u(v(i,(W(),Hc)),21),l=h.j,c.g){case 2:case 1:(l==(en(),Xn)||l==ae)&&s.Fc((pr(),v2));break;case 4:case 3:(l==(en(),Zn)||l==Wn)&&s.Fc((pr(),v2))}return h}function tGn(n,e){var t,i,r,c,s,f;for(s=new sd(new Ua(n.f.b).a);s.b;){if(c=Nb(s),r=u(c.ld(),602),e==1){if(r.Af()!=(ci(),us)&&r.Af()!=Wf)continue}else if(r.Af()!=(ci(),Kr)&&r.Af()!=Xr)continue;switch(i=u(u(c.md(),42).b,86),f=u(u(c.md(),42).a,194),t=f.c,r.Af().g){case 2:i.g.c=n.e.a,i.g.b=y.Math.max(1,i.g.b+t);break;case 1:i.g.c=i.g.c+t,i.g.b=y.Math.max(1,i.g.b-t);break;case 4:i.g.d=n.e.b,i.g.a=y.Math.max(1,i.g.a+t);break;case 3:i.g.d=i.g.d+t,i.g.a=y.Math.max(1,i.g.a-t)}}}function dOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(f=F(ye,_e,28,e.b.c.length,15,1),l=F(A_,G,273,e.b.c.length,0,1),h=F(Qh,b1,10,e.b.c.length,0,1),d=n.a,g=0,p=d.length;g<p;++g){for(a=d[g],k=0,s=new M(a.e);s.a<s.c.c.length;)r=u(E(s),10),i=jX(r.c),++f[i],m=$(B(v(e,(cn(),Ws)))),f[i]>0&&h[i]&&(m=jg(n.b,h[i],r)),k=y.Math.max(k,r.c.c.b+m);for(c=new M(a.e);c.a<c.c.c.length;)r=u(E(c),10),r.n.b=k+r.d.d,t=r.c,t.c.b=k+r.d.d+r.o.b+r.d.a,l[qr(t.b.b,t,0)]=r.k,h[qr(t.b.b,t,0)]=r}}function iGn(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(i=new ie(ce(Sl(e).a.Kc(),new En));pe(i);)t=u(fe(i),74),L(N((!t.b&&(t.b=new Dn(he,t,4,7)),t.b),0),193)||(h=Gr(u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),D5(t)||(s=e.i+e.g/2,f=e.j+e.f/2,a=h.i+h.g/2,d=h.j+h.f/2,g=new Ni,g.a=a-s,g.b=d-f,c=new V(g.a,g.b),vm(c,e.g,e.f),g.a-=c.a,g.b-=c.b,s=a-g.a,f=d-g.b,l=new V(g.a,g.b),vm(l,h.g,h.f),g.a-=l.a,g.b-=l.b,a=s+g.a,d=f+g.b,r=Xg(t,!0,!0),H4(r,s),U4(r,f),_4(r,a),q4(r,d),iGn(n,h)))}function rGn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,Qb),"ELK SPOrE Compaction"),"ShrinkTree is a compaction algorithm that maintains the topology of a layout. The relocation of diagram elements is based on contracting a spanning tree."),new dmn))),Q(n,Qb,YB,rn(QO)),Q(n,Qb,ocn,rn(Uq)),Q(n,Qb,scn,rn(qq)),Q(n,Qb,ZB,rn(U1n)),Q(n,Qb,nF,rn(Hq)),Q(n,Qb,Wb,q1n),Q(n,Qb,yw,8),Q(n,Qb,eF,rn(Zce)),Q(n,Qb,fcn,rn(_1n)),Q(n,Qb,hcn,rn(H1n)),Q(n,Qb,Uy,(_n(),!1))}function bOe(n,e){var t,i,r,c,s,f,h,l,a,d;for(e.Ug("Simple node placement",1),d=u(v(n,(W(),E2)),312),f=0,c=new M(n.b);c.a<c.c.c.length;){for(i=u(E(c),30),s=i.c,s.b=0,t=null,l=new M(i.a);l.a<l.c.c.length;)h=u(E(l),10),t&&(s.b+=ZY(h,t,d.c)),s.b+=h.d.d+h.o.b+h.d.a,t=h;f=y.Math.max(f,s.b)}for(r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=i.c,a=(f-s.b)/2,t=null,l=new M(i.a);l.a<l.c.c.length;)h=u(E(l),10),t&&(a+=ZY(h,t,d.c)),a+=h.d.d,h.n.b=a,a+=h.o.b+h.d.a,t=h;e.Vg()}function wOe(n,e){var t,i,r,c;for(Eme(e.b.j),qt(_r(new Cn(null,new On(e.d,16)),new Apn),new Lpn),c=new M(e.d);c.a<c.c.c.length;){switch(r=u(E(c),105),r.e.g){case 0:t=u(sn(r.j,0),113).d.j,wG(r,u(ho(Sp(u(ot(r.k,t),15).Oc(),w2)),113)),bG(r,u(ho(_0(u(ot(r.k,t),15).Oc(),w2)),113));break;case 1:i=jZ(r),wG(r,u(ho(Sp(u(ot(r.k,i[0]),15).Oc(),w2)),113)),bG(r,u(ho(_0(u(ot(r.k,i[1]),15).Oc(),w2)),113));break;case 2:eEe(n,r);break;case 3:mCe(r);break;case 4:jCe(n,r)}Mme(r)}n.a=null}function FR(n,e,t){var i,r,c,s,f,h,l,a;return i=n.a.o==(If(),Xf)?Pt:li,f=IUn(n,new QMn(e,t)),!f.a&&f.c?(Re(n.d,f),i):f.a?(r=f.a.c,h=f.a.d,t?(l=n.a.c==(fh(),m0)?h:r,c=n.a.c==m0?r:h,s=n.a.g[c.i.p],a=$(n.a.p[s.p])+$(n.a.d[c.i.p])+c.n.b+c.a.b-$(n.a.d[l.i.p])-l.n.b-l.a.b):(l=n.a.c==(fh(),y1)?h:r,c=n.a.c==y1?r:h,a=$(n.a.p[n.a.g[c.i.p].p])+$(n.a.d[c.i.p])+c.n.b+c.a.b-$(n.a.d[l.i.p])-l.n.b-l.a.b),n.a.n[n.a.g[r.i.p].p]=(_n(),!0),n.a.n[n.a.g[h.i.p].p]=!0,a):i}function gOe(n,e,t,i){var r,c,s,f,h,l,a,d;if(i.gc()==0)return!1;if(h=(dr(),u(e,69).xk()),s=h?i:new Pb(i.gc()),Pl(n.e,e)){if(e.Si())for(a=i.Kc();a.Ob();)l=a.Pb(),BS(n,e,l,L(e,102)&&(u(e,19).Bb&hr)!=0)||(c=Rh(e,l),s.Fc(c));else if(!h)for(a=i.Kc();a.Ob();)l=a.Pb(),c=Rh(e,l),s.Fc(c)}else{for(d=ru(n.e.Dh(),e),r=u(n.g,124),f=0;f<n.i;++f)if(c=r[f],d.am(c.Lk()))throw T(new Gn(Zy));if(i.gc()>1)throw T(new Gn(Zy));h||(c=Rh(e,i.Kc().Pb()),s.Fc(c))}return WQ(n,gnn(n,e,t),s)}function HS(n,e,t){var i,r,c,s,f,h,l,a;if(Pl(n.e,e))h=(dr(),u(e,69).xk()?new eT(e,n):new k7(e,n)),jS(h.c,h.b),I6(h,u(t,16));else{for(a=ru(n.e.Dh(),e),i=u(n.g,124),s=0;s<n.i;++s)if(r=i[s],c=r.Lk(),a.am(c)){if(c==(n3(),_3)||c==F3){for(l=aZ(n,e,t),f=s,l?dw(n,s):++s;s<n.i;)r=i[s],c=r.Lk(),c==_3||c==F3?dw(n,s):++s;l||u(Bg(n,f,Rh(e,t)),76)}else aZ(n,e,t)?dw(n,s):u(Bg(n,s,(dr(),u(e,69).xk()?u(t,76):Rh(e,t))),76);return}aZ(n,e,t)||ve(n,(dr(),u(e,69).xk()?u(t,76):Rh(e,t)))}}function cGn(n,e,t){var i,r,c,s,f,h,l,a;return rt(t,n.b)||(n.b=t,c=new L0n,s=u(Wr(_r(new Cn(null,new On(t.f,16)),c),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),Sw),Yr]))),21),n.e=!0,n.f=!0,n.c=!0,n.d=!0,r=s.Hc((Vp(),uj)),i=s.Hc(oj),r&&!i&&(n.f=!1),!r&&i&&(n.d=!1),r=s.Hc(cj),i=s.Hc(sj),r&&!i&&(n.c=!1),!r&&i&&(n.e=!1)),a=u(n.a.Ve(e,t),42),h=u(a.a,17).a,l=u(a.b,17).a,f=!1,h<0?n.c||(f=!0):n.e||(f=!0),l<0?n.d||(f=!0):n.f||(f=!0),f?cGn(n,a,t):a}function pOe(n){var e,t,i,r;r=n.o,K0(),n.A.dc()||rt(n.A,ron)?e=r.b:(e=ey(n.f),n.A.Hc((go(),iE))&&!n.B.Hc((io(),I9))&&(e=y.Math.max(e,ey(u(Mr(n.p,(en(),Zn)),252))),e=y.Math.max(e,ey(u(Mr(n.p,Wn),252)))),t=Kxn(n),t&&(e=y.Math.max(e,t.b)),n.A.Hc(rE)&&(n.q==(Ai(),tl)||n.q==qc)&&(e=y.Math.max(e,nT(u(Mr(n.b,(en(),Zn)),127))),e=y.Math.max(e,nT(u(Mr(n.b,Wn),127))))),on(un(n.e.Tf().of((He(),Vw))))?r.b=y.Math.max(r.b,e):r.b=e,i=n.f.i,i.d=0,i.a=e,DR(n.f)}function uGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(d=0;d<e.length;d++){for(f=n.Kc();f.Ob();)c=u(f.Pb(),230),c.hg(d,e);for(g=0;g<e[d].length;g++){for(h=n.Kc();h.Ob();)c=u(h.Pb(),230),c.ig(d,g,e);for(k=e[d][g].j,p=0;p<k.c.length;p++){for(l=n.Kc();l.Ob();)c=u(l.Pb(),230),c.jg(d,g,p,e);for(m=(Nn(p,k.c.length),u(k.c[p],12)),t=0,r=new Lf(m.b);tc(r.a)||tc(r.b);)for(i=u(tc(r.a)?E(r.a):E(r.b),18),a=n.Kc();a.Ob();)c=u(a.Pb(),230),c.gg(d,g,p,t++,i,e)}}}for(s=n.Kc();s.Ob();)c=u(s.Pb(),230),c.fg()}function mOe(n,e){var t,i,r,c,s,f,h;for(n.b=$(B(v(e,(cn(),T2)))),n.c=$(B(v(e,Kd))),n.d=u(v(e,MH),350),n.a=u(v(e,fO),282),r7e(e),f=u(Wr(ut(ut(rc(rc(new Cn(null,new On(e.b,16)),new Vwn),new Wwn),new Jwn),new Qwn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),r=f.Kc();r.Ob();)t=u(r.Pb(),18),s=u(v(t,(W(),Ld)),15),s.Jc(new Y9n(n)),U(t,Ld,null);for(i=f.Kc();i.Ob();)t=u(i.Pb(),18),h=u(v(t,(W(),ffn)),18),c=u(v(t,M2),15),LNe(n,c,h),U(t,M2,null)}function _R(n,e){var t,i,r,c,s,f,h;if(n.a){if(f=n.a.xe(),h=null,f!=null?e.a+=""+f:(s=n.a.mk(),s!=null&&(c=ih(s,wu(91)),c!=-1?(h=(zn(c,s.length+1),s.substr(c)),e.a+=""+qo(s==null?gu:(Jn(s),s),0,c)):e.a+=""+s)),n.d&&n.d.i!=0){for(r=!0,e.a+="<",i=new ne(n.d);i.e!=i.i.gc();)t=u(ue(i),89),r?r=!1:e.a+=ur,_R(t,e);e.a+=">"}h!=null&&(e.a+=""+h)}else n.e?(f=n.e.zb,f!=null&&(e.a+=""+f)):(e.a+="?",n.b?(e.a+=" super ",_R(n.b,e)):n.f&&(e.a+=" extends ",_R(n.f,e)))}function vOe(n){n.b=null,n.a=null,n.o=null,n.q=null,n.v=null,n.w=null,n.B=null,n.p=null,n.Q=null,n.R=null,n.S=null,n.T=null,n.U=null,n.V=null,n.W=null,n.bb=null,n.eb=null,n.ab=null,n.H=null,n.db=null,n.c=null,n.d=null,n.f=null,n.n=null,n.r=null,n.s=null,n.u=null,n.G=null,n.J=null,n.e=null,n.j=null,n.i=null,n.g=null,n.k=null,n.t=null,n.F=null,n.I=null,n.L=null,n.M=null,n.O=null,n.P=null,n.$=null,n.N=null,n.Z=null,n.cb=null,n.K=null,n.D=null,n.A=null,n.C=null,n._=null,n.fb=null,n.X=null,n.Y=null,n.gb=!1,n.hb=!1}function kOe(n){var e,t,i,r;if(i=ZR((!n.c&&(n.c=J7(vc(n.f))),n.c),0),n.e==0||n.a==0&&n.f!=-1&&n.e<0)return i;if(e=$Q(n)<0?1:0,t=n.e,r=(i.length+1+y.Math.abs(wi(n.e)),new fg),e==1&&(r.a+="-"),n.e>0)if(t-=i.length-e,t>=0){for(r.a+="0.";t>Od.length;t-=Od.length)QPn(r,Od);$Sn(r,Od,wi(t)),Be(r,(zn(e,i.length+1),i.substr(e)))}else t=e-t,Be(r,qo(i,e,wi(t))),r.a+=".",Be(r,DW(i,wi(t)));else{for(Be(r,(zn(e,i.length+1),i.substr(e)));t<-Od.length;t+=Od.length)QPn(r,Od);$Sn(r,Od,wi(-t))}return r.a}function HR(n){var e,t,i,r,c,s,f,h,l;return!(n.k!=(Vn(),zt)||n.j.c.length<=1||(c=u(v(n,(cn(),Ft)),101),c==(Ai(),qc))||(r=(cw(),(n.q?n.q:(Ln(),Ln(),Wh))._b(d0)?i=u(v(n,d0),203):i=u(v(Hi(n),z8),203),i),r==CO)||!(r==I2||r==P2)&&(s=$(B(rw(n,X8))),e=u(v(n,Sj),140),!e&&(e=new pV(s,s,s,s)),l=uc(n,(en(),Wn)),h=e.d+e.a+(l.gc()-1)*s,h>n.o.b||(t=uc(n,Zn),f=e.d+e.a+(t.gc()-1)*s,f>n.o.b)))}function yOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;e.Ug("Orthogonal edge routing",1),l=$(B(v(n,(cn(),S2)))),t=$(B(v(n,T2))),i=$(B(v(n,Kd))),g=new lD(0,t),j=0,s=new xi(n.b,0),f=null,a=null,h=null,d=null;do a=s.b<s.d.gc()?(oe(s.b<s.d.gc()),u(s.d.Xb(s.c=s.b++),30)):null,d=a?a.a:null,f&&(Ven(f,j),j+=f.c.a),k=f?j+i:j,m=Zen(g,n,h,d,k),r=!f||PM(h,(AS(),Lj)),c=!a||PM(d,(AS(),Lj)),m>0?(p=(m-1)*t,f&&(p+=i),a&&(p+=i),p<l&&!r&&!c&&(p=l),j+=p):!r&&!c&&(j+=l),f=a,h=d;while(a);n.f.a=j,e.Vg()}function qS(n,e){var t,i,r,c,s,f,h,l,a,d;if(a=null,n.d&&(a=u(Dc(n.d,e),142)),!a){if(c=n.a.vi(),d=c.i,!n.d||c6(n.d)!=d){for(h=new de,n.d&&s5(h,n.d),l=h.f.c+h.i.c,f=l;f<d;++f)i=u(N(c,f),142),r=r1(n.e,i).xe(),t=u(r==null?Vc(h.f,null,i):$b(h.i,r,i),142),t&&t!=i&&(r==null?Vc(h.f,null,t):$b(h.i,r,t));if(h.f.c+h.i.c!=d)for(s=0;s<l;++s)i=u(N(c,s),142),r=r1(n.e,i).xe(),t=u(r==null?Vc(h.f,null,i):$b(h.i,r,i),142),t&&t!=i&&(r==null?Vc(h.f,null,t):$b(h.i,r,t));n.d=h}a=u(Dc(n.d,e),142)}return a}function qR(n,e,t,i,r,c,s){var f,h,l,a,d,g,p;return d=on(un(v(e,(cn(),ohn)))),g=null,c==(gr(),Vu)&&i.c.i==t?g=i.c:c==Jc&&i.d.i==t&&(g=i.d),l=s,!l||!d||g?(a=(en(),sc),g?a=g.j:mg(u(v(t,Ft),101))&&(a=c==Vu?Wn:Zn),h=jOe(n,e,t,c,a,i),f=JD((Hi(t),i)),c==Vu?(Zi(f,u(sn(h.j,0),12)),Oi(f,r)):(Zi(f,r),Oi(f,u(sn(h.j,0),12))),l=new aKn(i,f,h,u(v(h,(W(),st)),12),c,!g)):(nn(l.e,i),p=y.Math.max($(B(v(l.d,m1))),$(B(v(i,m1)))),U(l.d,m1,p)),In(n.a,i,new zM(l.d,e,c)),l}function UR(){UR=R;var n;Hdn=new sjn,$oe=F(fn,J,2,0,6,1),Noe=lf(Up(33,58),Up(1,26)),Doe=lf(Up(97,122),Up(65,90)),Rdn=Up(48,57),Aoe=lf(Noe,0),Loe=lf(Doe,Rdn),Kdn=lf(lf(0,Up(1,6)),Up(33,38)),Bdn=lf(lf(Rdn,Up(65,70)),Up(97,102)),xoe=lf(Aoe,ZC("-_.!~*'()")),Roe=lf(Loe,GC("-_.!~*'()")),ZC(eJn),GC(eJn),lf(xoe,ZC(";:@&=+$,")),lf(Roe,GC(";:@&=+$,")),Fdn=ZC(":/?#"),_dn=GC(":/?#"),L9=ZC("/?#"),N9=GC("/?#"),n=new ni,n.a.zc("jar",n),n.a.zc("zip",n),n.a.zc("archive",n),jA=(Ln(),new r4(n))}function jOe(n,e,t,i,r,c){var s,f,h,l,a,d;return s=null,l=i==(gr(),Vu)?c.c:c.d,h=FC(e),l.i==t?(s=u(ee(n.b,l),10),s||(s=my(l,u(v(t,(cn(),Ft)),101),r,CPe(l),null,l.n,l.o,h,e),U(s,(W(),st),l),Ve(n.b,l,s))):(s=my((a=new xA,d=$(B(v(e,(cn(),Ws))))/2,Sk(a,Fw,d),a),u(v(t,Ft),101),r,i==Vu?-1:1,null,new Ni,new V(0,0),h,e),f=eye(s,t,i),U(s,(W(),st),f),Ve(n.b,f,s)),u(v(e,(W(),Hc)),21).Fc((pr(),cs)),mg(u(v(e,(cn(),Ft)),101))?U(e,Ft,(Ai(),Fv)):U(e,Ft,(Ai(),Qf)),s}function Lm(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;f=0,m=0,h=LT(n.g,n.g.length),c=n.e,s=n.j,i=n.b,r=n.c;do{for(p=0,a=new M(n.q);a.a<a.c.c.length;)l=u(E(a),10),g=CGn(n,l),t=!0,(n.r==(ps(),Pj)||n.r==Ij)&&(t=on(un(g.b))),u(g.a,17).a<0&&t?(++p,h=LT(n.g,n.g.length),n.e=n.e+u(g.a,17).a,m+=c-n.e,c=n.e+u(g.a,17).a,s=n.j,i=Cb(n.b),r=Cb(n.c)):(n.g=LT(h,h.length),n.e=c,n.b=(Pe(i),i?new _u(i):y4(new M(i))),n.c=(Pe(r),r?new _u(r):y4(new M(r))),n.j=s);++f,d=p!=0&&on(un(e.Kb(new bi(Y(m),Y(f)))))}while(d)}function EOe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn;return s=n.f,g=e.f,f=s==(x5(),L3)||s==a9,p=g==L3||g==a9,h=s==D2||s==d9,m=g==D2||g==d9,l=s==D2||s==L3,k=g==D2||g==L3,f&&p?n.f==a9?n:e:h&&m?n.f==d9?n:e:l&&k?(s==D2?(d=n,a=e):(d=e,a=n),c=(j=t.j+t.f,P=d.e+i.f,O=y.Math.max(j,P),A=O-y.Math.min(t.j,d.e),D=d.d+i.g-t.i,D*A),r=(_=t.i+t.g,X=a.d+i.g,tn=y.Math.max(_,X),yn=tn-y.Math.min(t.i,a.d),kn=a.e+i.f-t.j,yn*kn),c<=r?n.f==D2?n:e:n.f==L3?n:e):n}function oGn(n,e){var t,i,r,c,s,f,h,l,a,d;if(U(e,(pt(),Nv),0),h=u(v(e,$O),40),e.d.b==0)h?(a=$(B(v(h,j1)))+n.b+OY(n,h,e),U(e,j1,a)):U(e,j1,0);else{for(i=(c=ge(new sl(e).a.d,0),new sg(c));Q9(i.a);)t=u(be(i.a),65).c,oGn(n,t);f=u(DM((s=ge(new sl(e).a.d,0),new sg(s))),40),d=u(O1e((r=ge(new sl(e).a.d,0),new sg(r))),40),l=($(B(v(d,j1)))+$(B(v(f,j1))))/2,h?(a=$(B(v(h,j1)))+n.b+OY(n,h,e),U(e,j1,a),U(e,Nv,$(B(v(e,j1)))-l),$Ae(n,e)):U(e,j1,l)}}function MOe(n){var e,t,i,r,c,s,f,h,l,a,d;for(a=n.e.a.c.length,s=new M(n.e.a);s.a<s.c.c.length;)c=u(E(s),125),c.j=!1;for(n.i=F(ye,_e,28,a,15,1),n.g=F(ye,_e,28,a,15,1),n.n=new Z,r=0,d=new Z,h=new M(n.e.a);h.a<h.c.c.length;)f=u(E(h),125),f.d=r++,f.b.a.c.length==0&&nn(n.n,f),hi(d,f.g);for(e=0,i=new M(d);i.a<i.c.c.length;)t=u(E(i),218),t.c=e++,t.f=!1;l=d.c.length,n.b==null||n.b.length<l?(n.b=F(Ii,Cr,28,l,15,1),n.c=F(so,Xh,28,l,16,1)):e6(n.c),n.d=d,n.p=new MN(Q0(n.d.c.length)),n.j=1}function TOe(n,e){var t,i,r,c,s,f,h,l,a;if(!(e.e.c.length<=1)){for(n.f=e,n.d=u(v(n.f,(Uk(),Eon)),391),n.g=u(v(n.f,Son),17).a,n.e=$(B(v(n.f,Mon))),n.c=$(B(v(n.f,EI))),BIn(n.b),r=new M(n.f.c);r.a<r.c.c.length;)i=u(E(r),290),Pen(n.b,i.c,i,null),Pen(n.b,i.d,i,null);for(f=n.f.e.c.length,n.a=Wa(Ii,[J,Cr],[109,28],15,[f,f],2),l=new M(n.f.e);l.a<l.c.c.length;)h=u(E(l),153),QIe(n,h,n.a[h.a]);for(n.i=Wa(Ii,[J,Cr],[109,28],15,[f,f],2),c=0;c<f;++c)for(s=0;s<f;++s)t=n.a[c][s],a=1/(t*t),n.i[c][s]=a}}function sGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(f=e.ah(),f||e.Ug(MXn,1),t=u(v(n,(W(),bH)),15),s=1/t.gc(),e._g())for(e.bh("ELK Layered uses the following "+t.gc()+" modules:"),p=0,g=t.Kc();g.Ob();)a=u(g.Pb(),47),i=(p<10?"0":"")+p++,e.bh(" Slot "+i+": "+Xa(wo(a)));for(d=t.Kc();d.Ob();){if(a=u(d.Pb(),47),e.$g())return;a.Kf(n,e.eh(s))}for(c=new M(n.b);c.a<c.c.c.length;)r=u(E(c),30),hi(n.a,r.a),r.a.c.length=0;for(l=new M(n.a);l.a<l.c.c.length;)h=u(E(l),10),$i(h,null);n.b.c.length=0,f||e.Vg()}function COe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;if(l=new Z,!kt(n,(W(),fH)))return l;for(i=u(v(n,fH),15).Kc();i.Ob();)e=u(i.Pb(),10),qOe(e,n),Fn(l.c,e);for(c=new M(n.b);c.a<c.c.c.length;)for(r=u(E(c),30),f=new M(r.a);f.a<f.c.c.length;)s=u(E(f),10),s.k==(Vn(),Zt)&&(h=u(v(s,cO),10),h&&(a=new Ic,ic(a,s),d=u(v(s,gc),64),gi(a,d),g=u(sn(h.j,0),12),p=new Eb,Zi(p,a),Oi(p,g)));for(t=new M(l);t.a<t.c.c.length;)e=u(E(t),10),$i(e,u(sn(n.b,n.b.c.length-1),30));return l}function fGn(n,e,t){var i,r,c,s,f,h,l,a,d;for(d=new Z,a=new aJ(0,t),c=0,wC(a,new U$(0,0,a,t)),r=0,l=new ne(n);l.e!=l.i.gc();)h=u(ue(l),27),i=u(sn(a.a,a.a.c.length-1),172),f=r+h.g+(u(sn(a.a,0),172).b.c.length==0?0:t),(f>e||on(un(z(h,(Bf(),Fj)))))&&(r=0,c+=a.b+t,Fn(d.c,a),a=new aJ(c,t),i=new U$(0,a.f,a,t),wC(a,i),r=0),i.b.c.length==0||!on(un(z(St(h),(Bf(),Lq))))&&(h.f>=i.o&&h.f<=i.f||i.a*.5<=h.f&&i.a*1.5>=h.f)?$Y(i,h):(s=new U$(i.s+i.r+t,a.f,a,t),wC(a,s),$Y(s,h)),r=h.i+h.g;return Fn(d.c,a),d}function z5(n){var e,t,i,r;if(!(n.b==null||n.b.length<=2)&&!n.a){for(e=0,r=0;r<n.b.length;){for(e!=r?(n.b[e]=n.b[r++],n.b[e+1]=n.b[r++]):r+=2,t=n.b[e+1];r<n.b.length&&!(t+1<n.b[r]);)if(t+1==n.b[r])n.b[e+1]=n.b[r+1],t=n.b[e+1],r+=2;else if(t>=n.b[r+1])r+=2;else if(t<n.b[r+1])n.b[e+1]=n.b[r+1],t=n.b[e+1],r+=2;else throw T(new ec("Token#compactRanges(): Internel Error: ["+n.b[e]+","+n.b[e+1]+"] ["+n.b[r]+","+n.b[r+1]+"]"));e+=2}e!=n.b.length&&(i=F(ye,_e,28,e,15,1),Oc(n.b,0,i,0,e),n.b=i),n.a=!0}}function SOe(n,e){var t,i,r,c,s,f,h;for(s=Cp(n.a).Kc();s.Ob();){if(c=u(s.Pb(),18),c.b.c.length>0)for(i=new _u(u(ot(n.a,c),21)),Ln(),Yt(i,new LG(e)),r=new xi(c.b,0);r.b<r.d.gc();){switch(t=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),72)),f=-1,u(v(t,(cn(),Sh)),278).g){case 1:f=i.c.length-1;break;case 0:f=Dke(i);break;case 2:f=0}f!=-1&&(h=(Nn(f,i.c.length),u(i.c[f],249)),nn(h.b.b,t),u(v(Hi(h.b.c.i),(W(),Hc)),21).Fc((pr(),kv)),u(v(Hi(h.b.c.i),Hc),21).Fc(vv),bo(r),U(t,ufn,c))}Zi(c,null),Oi(c,null)}}function POe(n,e){var t,i,r,c;return t=new j0n,i=u(Wr(_r(new Cn(null,new On(n.f,16)),t),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),Sw),Yr]))),21),r=i.gc(),r=r==2?1:0,r==1&&ob(Kk(u(Wr(ut(i.Lc(),new E0n),Lxn(Tl(0),new KU)),168).a,2),0)&&(r=0),i=u(Wr(_r(new Cn(null,new On(e.f,16)),t),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[Sw,Yr]))),21),c=i.gc(),c=c==2?1:0,c==1&&ob(Kk(u(Wr(ut(i.Lc(),new M0n),Lxn(Tl(0),new KU)),168).a,2),0)&&(c=0),r<c?-1:r==c?0:1}function hGn(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(e=Pf(n),c=on(un(z(e,(cn(),Bw)))),a=0,r=0,l=new ne((!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e));l.e!=l.i.gc();)h=u(ue(l),74),f=_b(h),s=f&&c&&on(un(z(h,Dd))),g=Gr(u(N((!h.c&&(h.c=new Dn(he,h,5,8)),h.c),0),84)),f&&s?++r:f&&!s?++a:St(g)==e||g==e?++r:++a;for(i=new ne((!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d));i.e!=i.i.gc();)t=u(ue(i),74),f=_b(t),s=f&&c&&on(un(z(t,Dd))),d=Gr(u(N((!t.b&&(t.b=new Dn(he,t,4,7)),t.b),0),84)),f&&s?++a:f&&!s?++r:St(d)==e||d==e?++a:++r;return a-r}function IOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(e.Ug("Edge splitting",1),n.b.c.length<=2){e.Vg();return}for(c=new xi(n.b,0),s=(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),30));c.b<c.d.gc();)for(r=s,s=(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),30)),h=new M(r.a);h.a<h.c.c.length;)for(f=u(E(h),10),a=new M(f.j);a.a<a.c.c.length;)for(l=u(E(a),12),i=new M(l.g);i.a<i.c.c.length;)t=u(E(i),18),g=t.d,d=g.i.c,d!=r&&d!=s&&kqn(t,(p=new Cl(n),Ha(p,(Vn(),Ti)),U(p,(W(),st),t),U(p,(cn(),Ft),(Ai(),qc)),$i(p,s),p));e.Vg()}function OOe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(a=new Z,g=new ni,s=e.b,r=0;r<s.c.length;r++){for(l=(Nn(r,s.c.length),u(s.c[r],30)).a,a.c.length=0,c=0;c<l.c.length;c++)f=n.a[r][c],f.p=c,f.k==(Vn(),_c)&&Fn(a.c,f),Go(u(sn(e.b,r),30).a,c,f),f.j.c.length=0,hi(f.j,u(u(sn(n.b,r),15).Xb(c),16)),Ep(u(v(f,(cn(),Ft)),101))||U(f,Ft,(Ai(),Ud));for(i=new M(a);i.a<i.c.c.length;)t=u(E(i),10),d=cPe(t),g.a.zc(d,g),g.a.zc(t,g)}for(h=g.a.ec().Kc();h.Ob();)f=u(h.Pb(),10),Ln(),Yt(f.j,(cm(),jsn)),f.i=!0,Snn(f)}function lGn(n){var e,t,i,r,c;return n.g!=null?n.g:n.a<32?(n.g=WLe(vc(n.f),wi(n.e)),n.g):(r=ZR((!n.c&&(n.c=J7(vc(n.f))),n.c),0),n.e==0?r:(e=(!n.c&&(n.c=J7(vc(n.f))),n.c).e<0?2:1,t=r.length,i=-n.e+t-e,c=new x1,c.a+=""+r,n.e>0&&i>=-6?i>=0?E7(c,t-wi(n.e),"."):(N$(c,e-1,e-1,"0."),E7(c,e+1,ws(Od,0,-wi(i)-1))):(t-e>=1&&(E7(c,e,"."),++t),E7(c,t,"E"),i>0&&E7(c,++t,"+"),E7(c,++t,""+_6(vc(i)))),n.g=c.a,n.g))}function AOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn;i=$(B(v(e,(cn(),fhn)))),_=u(v(e,V8),17).a,g=4,r=3,X=20/_,p=!1,h=0,s=et;do{for(c=h!=1,d=h!=0,tn=0,j=n.a,O=0,D=j.length;O<D;++O)m=j[O],m.f=null,mLe(n,m,c,d,i),tn+=y.Math.abs(m.a);do f=cIe(n,e);while(f);for(k=n.a,P=0,A=k.length;P<A;++P)if(m=k[P],t=kW(m).a,t!=0)for(a=new M(m.e);a.a<a.c.c.length;)l=u(E(a),10),l.n.b+=t;h==0||h==1?(--g,g<=0&&(tn<s||-g>_)?(h=2,s=et):h==0?(h=1,s=tn):(h=0,s=tn)):(p=tn>=s||s-tn<X,s=tn,p&&--r)}while(!(p&&r<=0))}function GR(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;for(m=new de,c=n.a.ec().Kc();c.Ob();)i=u(c.Pb(),177),Ve(m,i,t.af(i));for(s=(Pe(n),n?new _u(n):y4(n.a.ec().Kc())),Yt(s,new O9n(m)),f=HT(s),h=new NM(e),p=new de,Vc(p.f,e,h);f.a.gc()!=0;){for(l=null,a=null,d=null,r=f.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),177),$(B(Fr(wr(m.f,i))))<=Pt){if(Zc(p,i.a)&&!Zc(p,i.b)){a=i.b,d=i.a,l=i;break}if(Zc(p,i.b)&&!Zc(p,i.a)){a=i.a,d=i.b,l=i;break}}if(!l)break;g=new NM(a),nn(u(Fr(wr(p.f,d)),225).a,g),Vc(p.f,a,g),f.a.Bc(l)!=null}return h}function LOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;for(t.Ug("Depth-first cycle removal",1),d=e.a,a=d.c.length,n.c=new Z,n.d=F(so,Xh,28,a,16,1),n.a=F(so,Xh,28,a,16,1),n.b=new Z,s=0,l=new M(d);l.a<l.c.c.length;)h=u(E(l),10),h.p=s,D4(ji(h))&&nn(n.c,h),++s;for(p=new M(n.c);p.a<p.c.c.length;)g=u(E(p),10),knn(n,g);for(c=0;c<a;c++)n.d[c]||(f=(Nn(c,d.c.length),u(d.c[c],10)),knn(n,f));for(r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),18),Ub(i,!0),U(e,(W(),kj),(_n(),!0));n.c=null,n.d=null,n.a=null,n.b=null,t.Vg()}function NOe(n,e){Vg();var t,i,r,c,s,f;return c=e.c-(n.c+n.b),r=n.c-(e.c+e.b),s=n.d-(e.d+e.a),t=e.d-(n.d+n.a),i=y.Math.max(r,c),f=y.Math.max(s,t),Cf(),Fs(jh),(y.Math.abs(i)<=jh||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:sb(isNaN(i),isNaN(0)))>=0^(Fs(jh),(y.Math.abs(f)<=jh||f==0||isNaN(f)&&isNaN(0)?0:f<0?-1:f>0?1:sb(isNaN(f),isNaN(0)))>=0)?y.Math.max(f,i):(Fs(jh),(y.Math.abs(i)<=jh||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:sb(isNaN(i),isNaN(0)))>0?y.Math.sqrt(f*f+i*i):-y.Math.sqrt(f*f+i*i))}function pd(n,e){var t,i,r,c,s,f;if(e){if(!n.a&&(n.a=new KE),n.e==2){RE(n.a,e);return}if(e.e==1){for(r=0;r<e.Pm();r++)pd(n,e.Lm(r));return}if(f=n.a.a.c.length,f==0){RE(n.a,e);return}if(s=u(kb(n.a,f-1),122),!((s.e==0||s.e==10)&&(e.e==0||e.e==10))){RE(n.a,e);return}c=e.e==0?2:e.Mm().length,s.e==0?(t=new i6,i=s.Km(),i>=hr?Er(t,DY(i)):C4(t,i&ui),s=new OD(10,null,0),wwe(n.a,s,f-1)):(t=(s.Mm().length+c,new i6),Er(t,s.Mm())),e.e==0?(i=e.Km(),i>=hr?Er(t,DY(i)):C4(t,i&ui)):Er(t,e.Mm()),u(s,530).b=t.a}}function DOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(!t.dc()){for(f=0,g=0,i=t.Kc(),m=u(i.Pb(),17).a;f<e.f;){if(f==m&&(g=0,i.Ob()?m=u(i.Pb(),17).a:m=e.f+1),f!=g){for(j=u(sn(n.b,f),30),p=u(sn(n.b,g),30),k=Cb(j.a),d=new M(k);d.a<d.c.c.length;)if(a=u(E(d),10),uw(a,p.a.c.length,p),g==0)for(s=Cb(ji(a)),c=new M(s);c.a<c.c.c.length;)r=u(E(c),18),Ub(r,!0),U(n,(W(),kj),(_n(),!0)),gGn(n,r,1)}++g,++f}for(h=new xi(n.b,0);h.b<h.d.gc();)l=(oe(h.b<h.d.gc()),u(h.d.Xb(h.c=h.b++),30)),l.a.c.length==0&&bo(h)}}function $Oe(n,e,t){var i,r,c;if(r=u(v(e,(cn(),fO)),282),r!=(jm(),x8)){switch(t.Ug("Horizontal Compaction",1),n.a=e,c=new zDn,i=new uHn((c.d=e,c.c=u(v(c.d,$l),223),CSe(c),NAe(c),DSe(c),c.a)),yhe(i,n.b),u(v(e,Bfn),431).g){case 1:Gjn(i,new pxn(n.a));break;default:Gjn(i,(JW(),FQn))}switch(r.g){case 1:$5(i);break;case 2:$5(US(i,(ci(),Xr)));break;case 3:$5(zjn(US($5(i),(ci(),Xr)),new q2n));break;case 4:$5(zjn(US($5(i),(ci(),Xr)),new g7n(c)));break;case 5:$5(khe(i,QZn))}US(i,(ci(),Kr)),i.e=!0,sLe(c),t.Vg()}}function xOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(s=e.b,a=s.o,h=s.d,i=$(B(nS(s,(cn(),Ws)))),r=$(B(nS(s,C2))),l=$(B(nS(s,OH))),f=new sL,zV(f,h.d,h.c,h.a,h.b),g=zSe(e,i,r,l),P=new M(e.d);P.a<P.c.c.length;){for(j=u(E(P),105),m=j.f.a.ec().Kc();m.Ob();)p=u(m.Pb(),340),c=p.a,d=Cye(p),t=(O=new Tu,$Fn(p,p.c,g,O),Zye(p,d,g,O),$Fn(p,p.d,g,O),O),t=n.ng(p,d,t),vo(c.a),Ki(c.a,t),qt(new Cn(null,new On(t,16)),new FMn(a,f));k=j.i,k&&(bye(j,k,g,r),A=new rr(k.g),cZ(a,f,A),tt(A,k.j),cZ(a,f,A))}zV(h,f.d,f.c,f.a,f.b)}function ROe(n,e,t,i,r,c,s,f){var h,l,a,d;switch(h=Af(S(C(PDe,1),Kn,238,0,[e,t,i,r])),d=null,n.b.g){case 1:d=Af(S(C(C1n,1),Kn,535,0,[new FA,new KA,new BA]));break;case 0:d=Af(S(C(C1n,1),Kn,535,0,[new BA,new KA,new FA]));break;case 2:d=Af(S(C(C1n,1),Kn,535,0,[new KA,new FA,new BA]))}for(a=new M(d);a.a<a.c.c.length;)l=u(E(a),535),h.c.length>1&&(h=l.Hg(h,n.a,f));return h.c.length==1?u(sn(h,h.c.length-1),238):h.c.length==2?EOe((Nn(0,h.c.length),u(h.c[0],238)),(Nn(1,h.c.length),u(h.c[1],238)),s,c):null}function KOe(n,e,t){var i,r,c,s,f,h,l;for(t.Ug("Find roots",1),n.a.c.length=0,r=ge(e.b,0);r.b!=r.d.c;)i=u(be(r),40),i.b.b==0&&(U(i,(pt(),Ta),(_n(),!0)),nn(n.a,i));switch(n.a.c.length){case 0:c=new q$(0,e,"DUMMY_ROOT"),U(c,(pt(),Ta),(_n(),!0)),U(c,eq,!0),Re(e.b,c);break;case 1:break;default:for(s=new q$(0,e,OP),h=new M(n.a);h.a<h.c.c.length;)f=u(E(h),40),l=new WW(s,f),U(l,(pt(),eq),(_n(),!0)),Re(s.a.a,l),Re(s.d,l),Re(f.b,l),U(f,Ta,!1);U(s,(pt(),Ta),(_n(),!0)),U(s,eq,!0),Re(e.b,s)}t.Vg()}function aGn(n){var e,t,i,r,c,s;for(nu(n.a,new N0n),t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),225),i=mi(Fi(u(n.b,68).c),u(e.b,68).c),TYn?(s=u(n.b,68).b,c=u(e.b,68).b,y.Math.abs(i.a)>=y.Math.abs(i.b)?(i.b=0,c.d+c.a>s.d&&c.d<s.d+s.a&&JM(i,y.Math.max(s.c-(c.c+c.b),c.c-(s.c+s.b)))):(i.a=0,c.c+c.b>s.c&&c.c<s.c+s.b&&JM(i,y.Math.max(s.d-(c.d+c.a),c.d-(s.d+s.a))))):JM(i,xUn(u(n.b,68),u(e.b,68))),r=y.Math.sqrt(i.a*i.a+i.b*i.b),r=OFn(O8,e,r,i),JM(i,r),YN(u(e.b,68),i),nu(e.a,new IG(i)),u(O8.b,68),zJ(O8,con,e)}function BOe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m;for(n.f=new oL,l=0,r=0,s=new M(n.e.b);s.a<s.c.c.length;)for(c=u(E(s),30),h=new M(c.a);h.a<h.c.c.length;){for(f=u(E(h),10),f.p=l++,i=new ie(ce(Qt(f).a.Kc(),new En));pe(i);)t=u(fe(i),18),t.p=r++;for(e=HR(f),g=new M(f.j);g.a<g.c.c.length;)d=u(E(g),12),e&&(m=d.a.b,m!=y.Math.floor(m)&&(a=m-id(vc(y.Math.round(m))),d.a.b-=a)),p=d.n.b+d.a.b,p!=y.Math.floor(p)&&(a=p-id(vc(y.Math.round(p))),d.n.b-=a)}n.g=l,n.b=r,n.i=F(MDe,Kn,412,l,0,1),n.c=F(EDe,Kn,655,r,0,1),n.d.a.$b()}function me(n){var e,t,i,r,c,s,f,h,l;if(n.Pj())if(h=n.Qj(),n.i>0){if(e=new wX(n.i,n.g),t=n.i,c=t<100?null:new R1(t),n.Tj())for(i=0;i<n.i;++i)s=n.g[i],c=n.Vj(s,c);if(e5(n),r=t==1?n.Ij(4,N(e,0),null,0,h):n.Ij(6,e,null,-1,h),n.Mj()){for(i=new yp(e);i.e!=i.i.gc();)c=n.Oj(Tx(i),c);c?(c.nj(r),c.oj()):n.Jj(r)}else c?(c.nj(r),c.oj()):n.Jj(r)}else e5(n),n.Jj(n.Ij(6,(Ln(),sr),null,-1,h));else if(n.Mj())if(n.i>0){for(f=n.g,l=n.i,e5(n),c=l<100?null:new R1(l),i=0;i<l;++i)s=f[i],c=n.Oj(s,c);c&&c.oj()}else e5(n);else e5(n)}function Xen(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(zxn(this),t==(Tb(),Ma)?fi(this.r,n):fi(this.w,n),a=Pt,l=li,s=e.a.ec().Kc();s.Ob();)r=u(s.Pb(),42),f=u(r.a,465),i=u(r.b,18),h=i.c,h==n&&(h=i.d),f==Ma?fi(this.r,h):fi(this.w,h),g=(en(),mu).Hc(h.j)?$(B(v(h,(W(),jv)))):cc(S(C(Ei,1),J,8,0,[h.i.n,h.n,h.a])).b,a=y.Math.min(a,g),l=y.Math.max(l,g);for(d=(en(),mu).Hc(n.j)?$(B(v(n,(W(),jv)))):cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a])).b,ZFn(this,d,a,l),c=e.a.ec().Kc();c.Ob();)r=u(c.Pb(),42),f_n(this,u(r.b,18));this.o=!1}function FOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;return t=n.l&8191,i=n.l>>13|(n.m&15)<<9,r=n.m>>4&8191,c=n.m>>17|(n.h&255)<<5,s=(n.h&1048320)>>8,f=e.l&8191,h=e.l>>13|(e.m&15)<<9,l=e.m>>4&8191,a=e.m>>17|(e.h&255)<<5,d=(e.h&1048320)>>8,yn=t*f,kn=i*f,Rn=r*f,Bn=c*f,te=s*f,h!=0&&(kn+=t*h,Rn+=i*h,Bn+=r*h,te+=c*h),l!=0&&(Rn+=t*l,Bn+=i*l,te+=r*l),a!=0&&(Bn+=t*a,te+=i*a),d!=0&&(te+=t*d),p=yn&ro,m=(kn&511)<<13,g=p+m,j=yn>>22,P=kn>>9,O=(Rn&262143)<<4,A=(Bn&31)<<17,k=j+P+O+A,_=Rn>>18,X=Bn>>5,tn=(te&4095)<<8,D=_+X+tn,k+=g>>22,g&=ro,D+=k>>22,k&=ro,D&=Ol,Yc(g,k,D)}function dGn(n){var e,t,i,r,c,s,f;if(f=u(sn(n.j,0),12),f.g.c.length!=0&&f.e.c.length!=0)throw T(new Ar("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(f.g.c.length!=0){for(c=Pt,t=new M(f.g);t.a<t.c.c.length;)e=u(E(t),18),s=e.d.i,i=u(v(s,(cn(),pO)),140),c=y.Math.min(c,s.n.a-i.b);return new CE(Pe(c))}if(f.e.c.length!=0){for(r=li,t=new M(f.e);t.a<t.c.c.length;)e=u(E(t),18),s=e.c.i,i=u(v(s,(cn(),pO)),140),r=y.Math.max(r,s.n.a+s.o.a+i.c);return new CE(Pe(r))}return Zv(),Zv(),FF}function bGn(n,e){var t,i,r,c,s,f,h;if(n.ol()){if(n.i>4)if(n.fk(e)){if(n.al()){if(r=u(e,54),i=r.Eh(),h=i==n.e&&(n.ml()?r.yh(r.Fh(),n.il())==n.jl():-1-r.Fh()==n.Lj()),n.nl()&&!h&&!i&&r.Jh()){for(c=0;c<n.i;++c)if(t=n.pl(u(n.g[c],58)),x(t)===x(e))return!0}return h}else if(n.ml()&&!n.ll()){if(s=u(e,58).Mh(br(u(n.Lk(),19))),x(s)===x(n.e))return!0;if(s==null||!u(s,58).Vh())return!1}}else return!1;if(f=km(n,e),n.nl()&&!f){for(c=0;c<n.i;++c)if(r=n.pl(u(n.g[c],58)),x(r)===x(e))return!0}return f}else return km(n,e)}function _Oe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(t.Ug("Interactive cycle breaking",1),d=new Z,p=new M(e.a);p.a<p.c.c.length;)for(g=u(E(p),10),g.p=1,m=KZ(g).a,a=Rb(g,(gr(),Jc)).Kc();a.Ob();)for(l=u(a.Pb(),12),c=new M(l.g);c.a<c.c.c.length;)i=u(E(c),18),k=i.d.i,k!=g&&(j=KZ(k).a,j<m&&Fn(d.c,i));for(s=new M(d);s.a<s.c.c.length;)i=u(E(s),18),Ub(i,!0);for(d.c.length=0,h=new M(e.a);h.a<h.c.c.length;)f=u(E(h),10),f.p>0&&b_n(n,f,d);for(r=new M(d);r.a<r.c.c.length;)i=u(E(r),18),Ub(i,!0);d.c.length=0,t.Vg()}function HOe(n,e){var t,i,r,c,s,f,h,l,a;for(t=0,a=new Z,f=new M(e);f.a<f.c.c.length;){switch(s=u(E(f),12),hY(n.b,n.d[s.p]),a.c.length=0,s.i.k.g){case 0:i=u(v(s,(W(),Xu)),10),nu(i.j,new V7n(a));break;case 1:t1e(im(ut(new Cn(null,new On(s.i.j,16)),new W7n(s))),new J7n(a));break;case 3:r=u(v(s,(W(),st)),12),nn(a,new bi(r,Y(s.e.c.length+s.g.c.length)))}for(l=new M(a);l.a<l.c.c.length;)h=u(E(l),42),c=Sz(n,u(h.a,12)),c>n.d[s.p]&&(t+=SJ(n.b,c)*u(h.b,17).a,W1(n.a,Y(c)));for(;!t6(n.a);)uQ(n.b,u(Pp(n.a),17).a)}return t}function qOe(n,e){var t,i,r,c,s,f,h,l,a,d;if(a=u(v(n,(W(),gc)),64),i=u(sn(n.j,0),12),a==(en(),Xn)?gi(i,ae):a==ae&&gi(i,Xn),u(v(e,(cn(),xd)),181).Hc((go(),Gd))){if(h=$(B(v(n,Sv))),l=$(B(v(n,Pv))),s=$(B(v(n,qw))),f=u(v(e,_w),21),f.Hc((zu(),Rl)))for(t=l,d=n.o.a/2-i.n.a,c=new M(i.f);c.a<c.c.c.length;)r=u(E(c),72),r.n.b=t,r.n.a=d-r.o.a/2,t+=r.o.b+s;else if(f.Hc(Oa))for(c=new M(i.f);c.a<c.c.c.length;)r=u(E(c),72),r.n.a=h+n.o.a-i.n.a;wpe(new OE((u6(),new kD(e,!1,!1,new HU))),new XM(null,n,!1))}}function UOe(n,e){var t,i,r,c,s,f,h,l,a;if(e.c.length!=0){for(Ln(),QN(e.c,e.c.length,null),r=new M(e),i=u(E(r),154);r.a<r.c.c.length;)t=u(E(r),154),lQ(i.e.c,t.e.c)&&!(nZ(SSn(i.e).b,t.e.d)||nZ(SSn(t.e).b,i.e.d))?i=(hi(i.k,t.k),hi(i.b,t.b),hi(i.c,t.c),Ki(i.i,t.i),hi(i.d,t.d),hi(i.j,t.j),c=y.Math.min(i.e.c,t.e.c),s=y.Math.min(i.e.d,t.e.d),f=y.Math.max(i.e.c+i.e.b,t.e.c+t.e.b),h=f-c,l=y.Math.max(i.e.d+i.e.a,t.e.d+t.e.a),a=l-s,LPn(i.e,c,s,h,a),bpe(i.f,t.f),!i.a&&(i.a=t.a),hi(i.g,t.g),nn(i.g,t),i):(SUn(n,i),i=t);SUn(n,i)}}function GOe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;for(h=new Z,c=new M(e.a);c.a<c.c.c.length;)for(r=u(E(c),10),f=new M(r.j);f.a<f.c.c.length;){for(s=u(E(f),12),a=null,A=hh(s.g),D=0,_=A.length;D<_;++D)O=A[D],Q4(O.d.i,t)||(P=qR(n,e,t,O,O.c,(gr(),Jc),a),P!=a&&Fn(h.c,P),P.c&&(a=P));for(l=null,m=hh(s.e),k=0,j=m.length;k<j;++k)p=m[k],Q4(p.c.i,t)||(P=qR(n,e,t,p,p.d,(gr(),Vu),l),P!=l&&Fn(h.c,P),P.c&&(l=P))}for(g=new M(h);g.a<g.c.c.length;)d=u(E(g),453),qr(e.a,d.a,0)!=-1||nn(e.a,d.a),d.c&&Fn(i.c,d)}function zOe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;for(d=new rr(u(z(n,(mS(),dan)),8)),d.a=y.Math.max(d.a-t.b-t.c,0),d.b=y.Math.max(d.b-t.d-t.a,0),r=B(z(n,han)),(r==null||(Jn(r),r<=0))&&(r=1.3),f=new Z,m=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));m.e!=m.i.gc();)p=u(ue(m),27),s=new mSn(p),Fn(f.c,s);switch(g=u(z(n,Vq),320),g.g){case 3:j=LPe(f,e,d.a,d.b,(l=i,Jn(r),l));break;case 1:j=jIe(f,e,d.a,d.b,(a=i,Jn(r),a));break;default:j=VOe(f,e,d.a,d.b,(h=i,Jn(r),h))}c=new hC(j),k=QR(c,e,t,d.a,d.b,i,(Jn(r),r)),Gb(n,k.a,k.b,!1,!0)}function XOe(n,e,t,i){var r,c,s,f,h,l;if(f=n.j,f==(en(),sc)&&e!=(Ai(),Qf)&&e!=(Ai(),Ia)&&(f=jUn(n,t),gi(n,f),!(n.q?n.q:(Ln(),Ln(),Wh))._b((cn(),Fw))&&f!=sc&&(n.n.a!=0||n.n.b!=0)&&U(n,Fw,X7e(n,f))),e==(Ai(),tl)){switch(l=0,f.g){case 1:case 3:c=n.i.o.a,c>0&&(l=n.n.a/c);break;case 2:case 4:r=n.i.o.b,r>0&&(l=n.n.b/r)}U(n,(W(),f0),l)}if(h=n.o,s=n.a,i)s.a=i.a,s.b=i.b,n.d=!0;else if(e!=Qf&&e!=Ia&&f!=sc)switch(f.g){case 1:s.a=h.a/2;break;case 2:s.a=h.a,s.b=h.b/2;break;case 3:s.a=h.a/2,s.b=h.b;break;case 4:s.b=h.b/2}else s.a=h.a/2,s.b=h.b/2}function X5(n){var e,t,i,r,c,s,f,h,l,a;if(n.Pj())if(a=n.Ej(),h=n.Qj(),a>0)if(e=new BQ(n.pj()),t=a,c=t<100?null:new R1(t),P7(n,t,e.g),r=t==1?n.Ij(4,N(e,0),null,0,h):n.Ij(6,e,null,-1,h),n.Mj()){for(i=new ne(e);i.e!=i.i.gc();)c=n.Oj(ue(i),c);c?(c.nj(r),c.oj()):n.Jj(r)}else c?(c.nj(r),c.oj()):n.Jj(r);else P7(n,n.Ej(),n.Fj()),n.Jj(n.Ij(6,(Ln(),sr),null,-1,h));else if(n.Mj())if(a=n.Ej(),a>0){for(f=n.Fj(),l=a,P7(n,a,f),c=l<100?null:new R1(l),i=0;i<l;++i)s=f[i],c=n.Oj(s,c);c&&c.oj()}else P7(n,n.Ej(),n.Fj());else P7(n,n.Ej(),n.Fj())}function VOe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j;for(f=F(Ii,Cr,28,n.c.length,15,1),g=new dT(new Qmn),EZ(g,n),l=0,k=new Z;g.b.c.length!=0;)if(s=u(g.b.c.length==0?null:sn(g.b,0),163),l>1&&Pu(s)*ao(s)/2>f[0]){for(c=0;c<k.c.length-1&&Pu(s)*ao(s)/2>f[c];)++c;m=new Jl(k,0,c+1),d=new hC(m),a=Pu(s)/ao(s),h=QR(d,e,new up,t,i,r,a),tt(ff(d.e),h),Tp(ym(g,d),_m),p=new Jl(k,c+1,k.c.length),EZ(g,p),k.c.length=0,l=0,bIn(f,f.length,0)}else j=g.b.c.length==0?null:sn(g.b,0),j!=null&&T$(g,0),l>0&&(f[l]=f[l-1]),f[l]+=Pu(s)*ao(s),++l,Fn(k.c,s);return k}function WOe(n,e){var t,i,r,c;t=e.b,c=new _u(t.j),r=0,i=t.j,i.c.length=0,gb(u(od(n.b,(en(),Xn),(Lb(),u0)),15),t),r=_k(c,r,new bpn,i),gb(u(od(n.b,Xn,va),15),t),r=_k(c,r,new opn,i),gb(u(od(n.b,Xn,c0),15),t),gb(u(od(n.b,Zn,u0),15),t),gb(u(od(n.b,Zn,va),15),t),r=_k(c,r,new wpn,i),gb(u(od(n.b,Zn,c0),15),t),gb(u(od(n.b,ae,u0),15),t),r=_k(c,r,new gpn,i),gb(u(od(n.b,ae,va),15),t),r=_k(c,r,new ppn,i),gb(u(od(n.b,ae,c0),15),t),gb(u(od(n.b,Wn,u0),15),t),r=_k(c,r,new hpn,i),gb(u(od(n.b,Wn,va),15),t),gb(u(od(n.b,Wn,c0),15),t)}function JOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;for(f=new M(e);f.a<f.c.c.length;)c=u(E(f),239),c.e=null,c.c=0;for(h=null,s=new M(e);s.a<s.c.c.length;)if(c=u(E(s),239),d=c.d[0],!(t&&d.k!=(Vn(),zt))){for(p=u(v(d,(W(),C3)),15).Kc();p.Ob();)g=u(p.Pb(),10),(!t||g.k==(Vn(),zt))&&((!c.e&&(c.e=new Z),c.e).Fc(n.b[g.c.p][g.p]),++n.b[g.c.p][g.p].c);if(!t&&d.k==(Vn(),zt)){if(h)for(a=u(ot(n.d,h),21).Kc();a.Ob();)for(l=u(a.Pb(),10),r=u(ot(n.d,d),21).Kc();r.Ob();)i=u(r.Pb(),10),e0e(n.b[l.c.p][l.p]).Fc(n.b[i.c.p][i.p]),++n.b[i.c.p][i.p].c;h=d}}}function QOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(t.Ug("Model order cycle breaking",1),n.a=0,n.b=0,p=new Z,a=e.a.c.length,l=new M(e.a);l.a<l.c.c.length;)h=u(E(l),10),kt(h,(W(),dt))&&(a=y.Math.max(a,u(v(h,dt),17).a+1));for(k=new M(e.a);k.a<k.c.c.length;)for(m=u(E(k),10),s=M_n(n,m,a),g=Rb(m,(gr(),Jc)).Kc();g.Ob();)for(d=u(g.Pb(),12),c=new M(d.g);c.a<c.c.c.length;)i=u(E(c),18),j=i.d.i,f=M_n(n,j,a),f<s&&Fn(p.c,i);for(r=new M(p);r.a<r.c.c.length;)i=u(E(r),18),Ub(i,!0),U(e,(W(),kj),(_n(),!0));p.c.length=0,t.Vg()}function wGn(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(s=e.d,f=t.d;s.a-f.a==0&&s.b-f.b==0;)h=!1,L(e,250)&&L(t,250)&&!h?(l=u(e,250).a,a=mi(new rr(mQ(l)),pQ(l)),i=2,r=new V(a.a/y.Math.sqrt(a.a*a.a+a.b*a.b)*i,-a.b/y.Math.sqrt(a.a*a.a+a.b*a.b)*i),tt(s,r),d=u(t,250).a,g=mi(new rr(mQ(d)),pQ(d)),i=a==g?-2:2,c=new V(g.a/y.Math.sqrt(g.a*g.a+g.b*g.b)*i,-(g.b/y.Math.sqrt(g.a*g.a+g.b*g.b))*i),tt(s,c),h=!0):(s.a+=to(n,26)*J5+to(n,27)*Q5-.5,s.b+=to(n,26)*J5+to(n,27)*Q5-.5,f.a+=to(n,26)*J5+to(n,27)*Q5-.5,f.b+=to(n,26)*J5+to(n,27)*Q5-.5)}function YOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(l=Ije(e),k=u(v(e,(cn(),U8)),322),qi(l,new B9n(k)),j=u(v(e,Mj),299),qi(l,new F9n(j)),m=0,a=new Z,c=new V6(l);c.a!=c.b;)r=u(xC(c),36),SGn(n.c,r),g=u(v(r,(W(),bH)),15),m+=g.gc(),i=g.Kc(),nn(a,new bi(r,i));for(t.Ug("Recursive hierarchical layout",m),p=u(u(sn(a,a.c.length-1),42).b,51);p.Ob();)for(h=new M(a);h.a<h.c.c.length;)for(f=u(E(h),42),g=u(f.b,51),s=u(f.a,36);g.Ob();)if(d=u(g.Pb(),47),L(d,514)){if(s.e)break;d.Kf(s,t.eh(1));break}else d.Kf(s,t.eh(1));t.Vg()}function ZOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(e.Ug("Layer size calculation",1),a=Pt,l=li,r=!1,f=new M(n.b);f.a<f.c.c.length;)if(s=u(E(f),30),h=s.c,h.a=0,h.b=0,s.a.c.length!=0){for(r=!0,g=new M(s.a);g.a<g.c.c.length;)d=u(E(g),10),m=d.o,p=d.d,h.a=y.Math.max(h.a,m.a+p.b+p.c);i=u(sn(s.a,0),10),k=i.n.b-i.d.d,i.k==(Vn(),Zt)&&(k-=u(v(n,(cn(),Sj)),140).d),c=u(sn(s.a,s.a.c.length-1),10),t=c.n.b+c.o.b+c.d.a,c.k==Zt&&(t+=u(v(n,(cn(),Sj)),140).a),h.b=t-k,a=y.Math.min(a,k),l=y.Math.max(l,t)}r||(a=0,l=0),n.f.b=l-a,n.c.b-=a,e.Vg()}function Ven(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(c=0,s=0,l=new M(n.a);l.a<l.c.c.length;)f=u(E(l),10),c=y.Math.max(c,f.d.b),s=y.Math.max(s,f.d.c);for(h=new M(n.a);h.a<h.c.c.length;){switch(f=u(E(h),10),t=u(v(f,(cn(),Ch)),255),t.g){case 1:m=0;break;case 2:m=1;break;case 5:m=.5;break;default:for(i=0,d=0,p=new M(f.j);p.a<p.c.c.length;)g=u(E(p),12),g.e.c.length==0||++i,g.g.c.length==0||++d;i+d==0?m=.5:m=d/(i+d)}j=n.c,a=f.o.a,P=(j.a-a)*m,m>.5?P-=s*2*(m-.5):m<.5&&(P+=c*2*(.5-m)),r=f.d.b,P<r&&(P=r),k=f.d.c,P>j.a-k-a&&(P=j.a-k-a),f.n.a=e+P}}function nAe(n){var e,t,i,r,c;if(i=u(v(n,(cn(),ou)),171),i==(Yo(),ya)){for(t=new ie(ce(ji(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),!PNn(e))throw T(new _l(oB+qk(n)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(i==xw){for(c=new ie(ce(Qt(n).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),!PNn(r))throw T(new _l(oB+qk(n)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function gy(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(n.e&&n.c.c<n.f)throw T(new Ar("Expected "+n.f+" phases to be configured; only found "+n.c.c));for(a=u(of(n.g),9),p=Lh(n.f),c=a,f=0,l=c.length;f<l;++f)i=c[f],d=u(lk(n,i.g),188),d?nn(p,u(jKn(n,d),106)):p.c.push(null);for(m=new ii,qt(ut(_r(ut(new Cn(null,new On(p,16)),new kmn),new Okn(e)),new ymn),new Akn(m)),To(m,n.a),t=new Z,r=a,s=0,h=r.length;s<h;++s)i=r[s],hi(t,iRn(n,PT(u(lk(m,i.g),20)))),g=u(sn(p,i.g),106),g&&Fn(t.c,g);return hi(t,iRn(n,PT(u(lk(m,a[a.length-1].g+1),20)))),t}function eAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(g=new Z,r=new Z,k=null,f=e.Kc();f.Ob();)s=u(f.Pb(),17),c=new K7n(s.a),Fn(r.c,c),k&&(c.d=k,k.e=c),k=c;for(A=PIe(n),a=0;a<r.c.length;++a){for(p=null,j=HJ((Nn(0,r.c.length),u(r.c[0],661))),t=null,i=Pt,d=1;d<n.b.c.length;++d)P=j?y.Math.abs(j.b-d):y.Math.abs(d-p.b)+1,m=p?y.Math.abs(d-p.b):P+1,m<P?(l=p,h=m):(l=j,h=P),O=(D=$(B(v(n,(cn(),Ehn)))),A[d]+y.Math.pow(h,D)),O<i&&(i=O,t=l,t.c=d),j&&d==j.b&&(p=j,j=hwe(j));t&&(nn(g,Y(t.c)),t.a=!0,M5e(t))}return Ln(),QN(g.c,g.c.length,null),g}function Wen(n,e,t){var i,r,c,s,f,h;if(e.l==0&&e.m==0&&e.h==0)throw T(new _E("divide by zero"));if(n.l==0&&n.m==0&&n.h==0)return t&&(wa=Yc(0,0,0)),Yc(0,0,0);if(e.h==Cy&&e.m==0&&e.l==0)return W5e(n,t);if(h=!1,e.h>>19&&(e=tm(e),h=!h),s=KTe(e),c=!1,r=!1,i=!1,n.h==Cy&&n.m==0&&n.l==0)if(r=!0,c=!0,s==-1)n=nCn((B4(),hun)),i=!0,h=!h;else return f=znn(n,s),h&&H$(f),t&&(wa=Yc(0,0,0)),f;else n.h>>19&&(c=!0,n=tm(n),i=!0,h=!h);return s!=-1?d6e(n,s,h,c,t):AZ(n,e)<0?(t&&(c?wa=tm(n):wa=Yc(n.l,n.m,n.h)),Yc(0,0,0)):xPe(i?n:Yc(n.l,n.m,n.h),e,h,c,r,t)}function zR(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(s=n.e,h=e.e,s==0)return e;if(h==0)return n;if(c=n.d,f=e.d,c+f==2)return t=vi(n.a[0],mr),i=vi(e.a[0],mr),s==h?(a=nr(t,i),m=Se(a),p=Se(U1(a,32)),p==0?new gl(s,m):new Ya(s,2,S(C(ye,1),_e,28,15,[m,p]))):(dh(),SM(s<0?bs(i,t):bs(t,i),0)?ia(s<0?bs(i,t):bs(t,i)):U6(ia(n1(s<0?bs(i,t):bs(t,i)))));if(s==h)g=s,d=c>=f?e$(n.a,c,e.a,f):e$(e.a,f,n.a,c);else{if(r=c!=f?c>f?1:-1:fY(n.a,e.a,c),r==0)return dh(),P8;r==1?(g=s,d=ZD(n.a,c,e.a,f)):(g=h,d=ZD(e.a,f,n.a,c))}return l=new Ya(g,d.length,d),J6(l),l}function tAe(n,e){var t,i,r,c,s,f,h;if(!(n.g>e.f||e.g>n.f)){for(t=0,i=0,s=n.w.a.ec().Kc();s.Ob();)r=u(s.Pb(),12),nx(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&++t;for(f=n.r.a.ec().Kc();f.Ob();)r=u(f.Pb(),12),nx(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&--t;for(h=e.w.a.ec().Kc();h.Ob();)r=u(h.Pb(),12),nx(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&++i;for(c=e.r.a.ec().Kc();c.Ob();)r=u(c.Pb(),12),nx(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&--i;t<i?new XT(n,e,i-t):i<t?new XT(e,n,t-i):(new XT(e,n,0),new XT(n,e,0))}}function iAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(l=e.c,r=PX(n.e),d=ch(N6(Fi(SX(n.e)),n.d*n.a,n.c*n.b),-.5),t=r.a-d.a,i=r.b-d.b,s=e.a,t=s.c-t,i=s.d-i,h=new M(l);h.a<h.c.c.length;){switch(f=u(E(h),407),g=f.b,p=t+g.a,j=i+g.b,m=wi(p/n.a),P=wi(j/n.b),c=f.a,c.g){case 0:a=(Vp(),uj);break;case 1:a=(Vp(),cj);break;case 2:a=(Vp(),oj);break;default:a=(Vp(),sj)}c.a?(O=wi((j+f.c)/n.b),nn(n.f,new LV(a,Y(P),Y(O))),c==(C5(),hj)?em(n,0,P,m,O):em(n,m,P,n.d-1,O)):(k=wi((p+f.c)/n.a),nn(n.f,new LV(a,Y(m),Y(k))),c==(C5(),fj)?em(n,m,0,k,P):em(n,m,P,k,n.c-1))}}function rAe(n){var e,t,i,r,c,s,f,h,l,a;for(e=new qA,t=new qA,l=Sn(Jy,(r=_5(n.b,Ke),r?Ae(gf((!r.b&&(r.b=new lo((An(),ar),pc,r)),r.b),vs)):null)),h=0;h<n.i;++h)f=u(n.g[h],179),L(f,102)?(s=u(f,19),s.Bb&kc?(!(s.Bb&wh)||!l&&(c=_5(s,Ke),(c?Ae(gf((!c.b&&(c.b=new lo((An(),ar),pc,c)),c.b),FP)):null)==null))&&ve(e,s):(a=br(s),a&&a.Bb&kc||(!(s.Bb&wh)||!l&&(i=_5(s,Ke),(i?Ae(gf((!i.b&&(i.b=new lo((An(),ar),pc,i)),i.b),FP)):null)==null))&&ve(t,s))):(dr(),u(f,69).xk()&&(f.sk()||(ve(e,f),ve(t,f))));ew(e),ew(t),n.a=u(e.g,254),u(t.g,254)}function Qg(n,e,t){var i,r,c,s,f,h,l,a,d;if(At(e,t)>=0)return t;switch(yb(Nr(n,t))){case 2:{if(Sn("",r1(n,t.qk()).xe())){if(h=q7(Nr(n,t)),f=I4(Nr(n,t)),a=Jnn(n,e,h,f),a)return a;for(r=Cen(n,e),s=0,d=r.gc();s<d;++s)if(a=u(r.Xb(s),179),ien(sD(Nr(n,a)),h))return a}return null}case 4:{if(Sn("",r1(n,t.qk()).xe())){for(i=t;i;i=gpe(Nr(n,i)))if(l=q7(Nr(n,i)),f=I4(Nr(n,i)),a=Qnn(n,e,l,f),a)return a;if(h=q7(Nr(n,t)),Sn(Pd,h))return $Z(n,e);for(c=PR(n,e),s=0,d=c.gc();s<d;++s)if(a=u(c.Xb(s),179),ien(sD(Nr(n,a)),h))return a}return null}default:return null}}function cAe(n,e,t){var i,r,c,s,f,h,l,a;if(t.gc()==0)return!1;if(f=(dr(),u(e,69).xk()),c=f?t:new Pb(t.gc()),Pl(n.e,e)){if(e.Si())for(l=t.Kc();l.Ob();)h=l.Pb(),BS(n,e,h,L(e,102)&&(u(e,19).Bb&hr)!=0)||(r=Rh(e,h),c.Hc(r)||c.Fc(r));else if(!f)for(l=t.Kc();l.Ob();)h=l.Pb(),r=Rh(e,h),c.Fc(r)}else{if(t.gc()>1)throw T(new Gn(Zy));for(a=ru(n.e.Dh(),e),i=u(n.g,124),s=0;s<n.i;++s)if(r=i[s],a.am(r.Lk())){if(t.Hc(f?r:r.md()))return!1;for(l=t.Kc();l.Ob();)h=l.Pb(),u(Bg(n,s,f?u(h,76):Rh(e,h)),76);return!0}f||(r=Rh(e,t.Kc().Pb()),c.Fc(r))}return Kt(n,c)}function uAe(n,e){var t,i,r,c,s,f,h,l,a;for(a=new Mt,f=(l=new ol(n.c).a.vc().Kc(),new P0(l));f.a.Ob();)c=(r=u(f.a.Pb(),44),u(r.md(),467)),c.b==0&&xt(a,c,a.c.b,a.c);for(;a.b!=0;)for(c=u(a.b==0?null:(oe(a.b!=0),Xo(a,a.a.a)),467),c.a==null&&(c.a=0),i=new M(c.d);i.a<i.c.c.length;)t=u(E(i),663),t.b.a==null?t.b.a=$(c.a)+t.a:e.o==(If(),Bd)?t.b.a=y.Math.min($(t.b.a),$(c.a)+t.a):t.b.a=y.Math.max($(t.b.a),$(c.a)+t.a),--t.b.b,t.b.b==0&&Re(a,t.b);for(s=(h=new ol(n.c).a.vc().Kc(),new P0(h));s.a.Ob();)c=(r=u(s.a.Pb(),44),u(r.md(),467)),e.i[c.c.p]=c.a}function oAe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;for(a=t+e.c.c.a,p=new M(e.j);p.a<p.c.c.length;){if(g=u(E(p),12),r=cc(S(C(Ei,1),J,8,0,[g.i.n,g.n,g.a])),e.k==(Vn(),_c)&&(f=u(v(g,(W(),st)),12),r.a=cc(S(C(Ei,1),J,8,0,[f.i.n,f.n,f.a])).a,e.n.a=r.a),s=new V(0,r.b),g.j==(en(),Zn))s.a=a;else if(g.j==Wn)s.a=t;else continue;if(m=y.Math.abs(r.a-s.a),!(m<=i&&!Y7e(e)))for(c=g.g.c.length+g.e.c.length>1,l=new Lf(g.b);tc(l.a)||tc(l.b);)h=u(tc(l.a)?E(l.a):E(l.b),18),d=h.c==g?h.d:h.c,y.Math.abs(cc(S(C(Ei,1),J,8,0,[d.i.n,d.n,d.a])).b-s.b)>1&&qCe(n,h,s,c,g)}}function sAe(n){var e,t,i,r,c,s;if(r=new xi(n.e,0),i=new xi(n.a,0),n.d)for(t=0;t<n.b;t++)oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++);else for(t=0;t<n.b-1;t++)oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++),bo(r);for(e=$((oe(r.b<r.d.gc()),B(r.d.Xb(r.c=r.b++))));n.f-e>_B;){for(c=e,s=0;y.Math.abs(e-c)<_B;)++s,e=$((oe(r.b<r.d.gc()),B(r.d.Xb(r.c=r.b++)))),oe(i.b<i.d.gc()),i.d.Xb(i.c=i.b++);s<n.b&&(oe(r.b>0),r.a.Xb(r.c=--r.b),EIe(n,n.b-s,c,i,r),oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++)),oe(i.b>0),i.a.Xb(i.c=--i.b)}if(!n.d)for(t=0;t<n.b-1;t++)oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++),bo(r);n.d=!0,n.c=!0}function at(){at=R,obn=(Mz(),yc).b,cse=u(N(H(yc.b),0),35),zd=u(N(H(yc.b),1),35),rse=u(N(H(yc.b),2),35),G2=yc.bb,u(N(H(yc.bb),0),35),u(N(H(yc.bb),1),35),z2=yc.fb,$9=u(N(H(yc.fb),0),35),u(N(H(yc.fb),1),35),u(N(H(yc.fb),2),19),M0=yc.qb,pse=u(N(H(yc.qb),0),35),u(N(H(yc.qb),1),19),u(N(H(yc.qb),2),19),gE=u(N(H(yc.qb),3),35),pE=u(N(H(yc.qb),4),35),R9=u(N(H(yc.qb),6),35),x9=u(N(H(yc.qb),5),19),use=yc.j,ose=yc.k,sse=yc.q,fse=yc.w,hse=yc.B,lse=yc.A,ase=yc.C,dse=yc.D,bse=yc._,wse=yc.cb,gse=yc.hb}function fAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;n.c=0,n.b=0,i=2*e.c.a.c.length+1;n:for(d=t.Kc();d.Ob();){if(a=u(d.Pb(),12),f=a.j==(en(),Xn)||a.j==ae,p=0,f){if(g=u(v(a,(W(),Xu)),10),!g)continue;p+=LSe(n,i,a,g)}else{for(l=new M(a.g);l.a<l.c.c.length;)if(h=u(E(l),18),r=h.d,r.i.c==e.c){nn(n.a,a);continue n}else p+=n.g[r.p];for(s=new M(a.e);s.a<s.c.c.length;)if(c=u(E(s),18),r=c.c,r.i.c==e.c){nn(n.a,a);continue n}else p-=n.g[r.p]}a.e.c.length+a.g.c.length>0?(n.f[a.p]=p/(a.e.c.length+a.g.c.length),n.c=y.Math.min(n.c,n.f[a.p]),n.b=y.Math.max(n.b,n.f[a.p])):f&&(n.f[a.p]=p)}}function hAe(n){n.b=null,n.bb=null,n.fb=null,n.qb=null,n.a=null,n.c=null,n.d=null,n.e=null,n.f=null,n.n=null,n.M=null,n.L=null,n.Q=null,n.R=null,n.K=null,n.db=null,n.eb=null,n.g=null,n.i=null,n.j=null,n.k=null,n.gb=null,n.o=null,n.p=null,n.q=null,n.r=null,n.$=null,n.ib=null,n.S=null,n.T=null,n.t=null,n.s=null,n.u=null,n.v=null,n.w=null,n.B=null,n.A=null,n.C=null,n.D=null,n.F=null,n.G=null,n.H=null,n.I=null,n.J=null,n.P=null,n.Z=null,n.U=null,n.V=null,n.W=null,n.X=null,n.Y=null,n._=null,n.ab=null,n.cb=null,n.hb=null,n.nb=null,n.lb=null,n.mb=null,n.ob=null,n.pb=null,n.jb=null,n.kb=null,n.N=!1,n.O=!1}function lAe(n,e,t){var i,r,c,s;for(t.Ug("Graph transformation ("+n.a+")",1),s=Cb(e.a),c=new M(e.b);c.a<c.c.c.length;)r=u(E(c),30),hi(s,r.a);if(i=u(v(e,(cn(),Ufn)),428),i==(wk(),WI))switch(u(v(e,Lo),88).g){case 2:Q6(e,s);break;case 3:j5(e,s);break;case 4:n.a==(V4(),dj)?(j5(e,s),HD(e,s)):(HD(e,s),j5(e,s))}else if(n.a==(V4(),dj))switch(u(v(e,Lo),88).g){case 2:Q6(e,s),HD(e,s);break;case 3:j5(e,s),Q6(e,s);break;case 4:Q6(e,s),j5(e,s)}else switch(u(v(e,Lo),88).g){case 2:Q6(e,s),HD(e,s);break;case 3:Q6(e,s),j5(e,s);break;case 4:j5(e,s),Q6(e,s)}t.Vg()}function aAe(n){var e,t,i,r,c,s,f,h;for(c=new M(n.a.b);c.a<c.c.c.length;)r=u(E(c),86),r.b.c=r.g.c,r.b.d=r.g.d;for(h=new V(Pt,Pt),e=new V(li,li),i=new M(n.a.b);i.a<i.c.c.length;)t=u(E(i),86),h.a=y.Math.min(h.a,t.g.c),h.b=y.Math.min(h.b,t.g.d),e.a=y.Math.max(e.a,t.g.c+t.g.b),e.b=y.Math.max(e.b,t.g.d+t.g.a);for(f=pT(n.c).a.nc();f.Ob();)s=u(f.Pb(),42),t=u(s.b,86),h.a=y.Math.min(h.a,t.g.c),h.b=y.Math.min(h.b,t.g.d),e.a=y.Math.max(e.a,t.g.c+t.g.b),e.b=y.Math.max(e.b,t.g.d+t.g.a);n.d=HM(new V(h.a,h.b)),n.e=mi(new V(e.a,e.b),h),n.a.a.c.length=0,n.a.b.c.length=0}function dAe(n){i5();var e,t,i,r,c,s,f;for(f=new Hyn,t=new M(n);t.a<t.c.c.length;)e=u(E(t),148),(!f.b||e.c>=f.b.c)&&(f.b=e),(!f.c||e.c<=f.c.c)&&(f.d=f.c,f.c=e),(!f.e||e.d>=f.e.d)&&(f.e=e),(!f.f||e.d<=f.f.d)&&(f.f=e);return i=new eS((nm(),r0)),Q7(n,OZn,new Fu(S(C(aj,1),Kn,382,0,[i]))),s=new eS(Ow),Q7(n,IZn,new Fu(S(C(aj,1),Kn,382,0,[s]))),r=new eS(Iw),Q7(n,PZn,new Fu(S(C(aj,1),Kn,382,0,[r]))),c=new eS(d2),Q7(n,SZn,new Fu(S(C(aj,1),Kn,382,0,[c]))),pR(i.c,r0),pR(r.c,Iw),pR(c.c,d2),pR(s.c,Ow),f.a.c.length=0,hi(f.a,i.c),hi(f.a,Qo(r.c)),hi(f.a,c.c),hi(f.a,Qo(s.c)),f}function bAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;for(e.Ug(PVn,1),p=$(B(z(n,(_h(),Xw)))),s=$(B(z(n,(Bf(),l9)))),f=u(z(n,h9),107),NQ((!n.a&&(n.a=new q(Ye,n,10,11)),n.a)),a=fGn((!n.a&&(n.a=new q(Ye,n,10,11)),n.a),p,s),!n.a&&(n.a=new q(Ye,n,10,11)),l=new M(a);l.a<l.c.c.length;)for(h=u(E(l),186),r=new M(h.a);r.a<r.c.c.length;)i=u(E(r),172),g=new tJ(i.s,i.t,$(B(z(n,l9)))),FQ(g,i),nn(h.d,g);d=cFn(a,s),m=y.Math.max(d.a,$(B(z(n,f9)))-(f.b+f.c)),c=y.Math.max(d.b,$(B(z(n,UO)))-(f.d+f.a)),t=c-d.b,ht(n,s9,t),ht(n,A3,m),ht(n,Dv,c+t),ht(n,GO,a),e.Vg()}function wAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k;for(l=new rh,a=new rh,m=new rh,k=new rh,h=$(B(v(e,(cn(),g0)))),c=$(B(v(e,Ws))),f=new M(t);f.a<f.c.c.length;)if(s=u(E(f),10),d=u(v(s,(W(),gc)),64),d==(en(),Xn))for(a.a.zc(s,a),r=new ie(ce(ji(s).a.Kc(),new En));pe(r);)i=u(fe(r),18),fi(l,i.c.i);else if(d==ae)for(k.a.zc(s,k),r=new ie(ce(ji(s).a.Kc(),new En));pe(r);)i=u(fe(r),18),fi(m,i.c.i);l.a.gc()!=0&&(g=new lD(2,c),p=Zen(g,e,l,a,-h-e.c.b),p>0&&(n.a=h+(p-1)*c,e.c.b+=n.a,e.f.b+=n.a)),m.a.gc()!=0&&(g=new lD(1,c),p=Zen(g,e,m,k,e.f.b+h-e.c.b),p>0&&(e.f.b+=h+(p-1)*c))}function gGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(a=$(B(v(n,(cn(),w0)))),i=$(B(v(n,vhn))),g=new _A,U(g,w0,a+i),l=e,P=l.d,k=l.c.i,O=l.d.i,j=jX(k.c),A=jX(O.c),r=new Z,d=j;d<=A;d++)f=new Cl(n),Ha(f,(Vn(),Ti)),U(f,(W(),st),l),U(f,Ft,(Ai(),qc)),U(f,yO,g),p=u(sn(n.b,d),30),d==j?uw(f,p.a.c.length-t,p):$i(f,p),D=$(B(v(l,m1))),D<0&&(D=0,U(l,m1,D)),f.o.b=D,m=y.Math.floor(D/2),s=new Ic,gi(s,(en(),Wn)),ic(s,f),s.n.b=m,h=new Ic,gi(h,Zn),ic(h,f),h.n.b=m,Oi(l,s),c=new Eb,Ur(c,l),U(c,Rr,null),Zi(c,h),Oi(c,P),ike(f,l,c),Fn(r.c,c),l=c;return r}function XR(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(h=u(h1(n,(en(),Wn)).Kc().Pb(),12).e,p=u(h1(n,Zn).Kc().Pb(),12).g,f=h.c.length,A=Of(u(sn(n.j,0),12));f-- >0;){for(k=(Nn(0,h.c.length),u(h.c[0],18)),r=(Nn(0,p.c.length),u(p.c[0],18)),O=r.d.e,c=qr(O,r,0),Kpe(k,r.d,c),Zi(r,null),Oi(r,null),m=k.a,e&&Re(m,new rr(A)),i=ge(r.a,0);i.b!=i.d.c;)t=u(be(i),8),Re(m,new rr(t));for(P=k.b,g=new M(r.b);g.a<g.c.c.length;)d=u(E(g),72),Fn(P.c,d);if(j=u(v(k,(cn(),Rr)),75),s=u(v(r,Rr),75),s)for(j||(j=new Tu,U(k,Rr,j)),a=ge(s,0);a.b!=a.d.c;)l=u(be(a),8),Re(j,new rr(l))}}function gAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;if(k=e.b.c.length,!(k<3)){for(p=F(ye,_e,28,k,15,1),d=0,a=new M(e.b);a.a<a.c.c.length;)l=u(E(a),30),p[d++]=l.a.c.length;for(g=new xi(e.b,2),i=1;i<k-1;i++)for(t=(oe(g.b<g.d.gc()),u(g.d.Xb(g.c=g.b++),30)),m=new M(t.a),c=0,f=0,h=0;h<p[i+1];h++)if(A=u(E(m),10),h==p[i+1]-1||bnn(n,A,i+1,i)){for(s=p[i]-1,bnn(n,A,i+1,i)&&(s=n.c.e[u(u(u(sn(n.c.b,A.p),15).Xb(0),42).a,10).p]);f<=h;){if(O=u(sn(t.a,f),10),!bnn(n,O,i+1,i))for(P=u(sn(n.c.b,O.p),15).Kc();P.Ob();)j=u(P.Pb(),42),r=n.c.e[u(j.a,10).p],(r<c||r>s)&&fi(n.b,u(j.b,18));++f}c=s}}}function Jen(n,e){var t;if(e==null||Sn(e,gu)||e.length==0&&n.k!=(l1(),N3))return null;switch(n.k.g){case 1:return JC(e,nv)?(_n(),ov):JC(e,cF)?(_n(),ga):null;case 2:try{return Y(So(e,Wi,et))}catch(i){if(i=Ot(i),L(i,130))return null;throw T(i)}case 4:try{return sw(e)}catch(i){if(i=Ot(i),L(i,130))return null;throw T(i)}case 3:return e;case 5:return RRn(n),J_n(n,e);case 6:return RRn(n),wTe(n,n.a,e);case 7:try{return t=CMe(n),t.cg(e),t}catch(i){if(i=Ot(i),L(i,33))return null;throw T(i)}default:throw T(new Ar("Invalid type set for this layout option."))}}function Qen(n){var e;switch(n.d){case 1:{if(n.Sj())return n.o!=-2;break}case 2:{if(n.Sj())return n.o==-2;break}case 3:case 5:case 4:case 6:case 7:return n.o>-2;default:return!1}switch(e=n.Rj(),n.p){case 0:return e!=null&&on(un(e))!=M6(n.k,0);case 1:return e!=null&&u(e,222).a!=Se(n.k)<<24>>24;case 2:return e!=null&&u(e,180).a!=(Se(n.k)&ui);case 6:return e!=null&&M6(u(e,168).a,n.k);case 5:return e!=null&&u(e,17).a!=Se(n.k);case 7:return e!=null&&u(e,191).a!=Se(n.k)<<16>>16;case 3:return e!=null&&$(B(e))!=n.j;case 4:return e!=null&&u(e,161).a!=n.j;default:return e==null?n.n!=null:!rt(e,n.n)}}function py(n,e,t){var i,r,c,s;return n.ol()&&n.nl()&&(s=cD(n,u(t,58)),x(s)!==x(t))?(n.xj(e),n.Dj(e,kDn(n,e,s)),n.al()&&(c=(r=u(t,54),n.ml()?n.kl()?r.Th(n.b,br(u($n(au(n.b),n.Lj()),19)).n,u($n(au(n.b),n.Lj()).Hk(),29).kk(),null):r.Th(n.b,At(r.Dh(),br(u($n(au(n.b),n.Lj()),19))),null,null):r.Th(n.b,-1-n.Lj(),null,null)),!u(s,54).Ph()&&(c=(i=u(s,54),n.ml()?n.kl()?i.Rh(n.b,br(u($n(au(n.b),n.Lj()),19)).n,u($n(au(n.b),n.Lj()).Hk(),29).kk(),c):i.Rh(n.b,At(i.Dh(),br(u($n(au(n.b),n.Lj()),19))),null,c):i.Rh(n.b,-1-n.Lj(),null,c))),c&&c.oj()),fo(n.b)&&n.Jj(n.Ij(9,t,s,e,!1)),s):t}function pGn(n){var e,t,i,r,c,s,f,h,l,a;for(i=new Z,s=new M(n.e.a);s.a<s.c.c.length;){for(r=u(E(s),125),a=0,r.k.c.length=0,t=new M(xg(r));t.a<t.c.c.length;)e=u(E(t),218),e.f&&(nn(r.k,e),++a);a==1&&Fn(i.c,r)}for(c=new M(i);c.a<c.c.c.length;)for(r=u(E(c),125);r.k.c.length==1;){for(l=u(E(new M(r.k)),218),n.b[l.c]=l.g,f=l.d,h=l.e,t=new M(xg(r));t.a<t.c.c.length;)e=u(E(t),218),rt(e,l)||(e.f?f==e.d||h==e.e?n.b[l.c]-=n.b[e.c]-e.g:n.b[l.c]+=n.b[e.c]-e.g:r==f?e.d==r?n.b[l.c]+=e.g:n.b[l.c]-=e.g:e.d==r?n.b[l.c]-=e.g:n.b[l.c]+=e.g);du(f.k,l),du(h.k,l),f==r?r=l.e:r=l.d}}function mGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(t=u(Mr(n.b,e),127),h=u(u(ot(n.r,e),21),87),h.dc()){t.n.b=0,t.n.c=0;return}for(l=n.u.Hc((zu(),Rl)),s=0,f=h.Kc(),a=null,d=0,g=0;f.Ob();)i=u(f.Pb(),117),r=$(B(i.b.of((FM(),bI)))),c=i.b.Mf().a,n.A.Hc((go(),Gd))&&Xqn(n,e),a?(p=g+a.d.c+n.w+i.d.b,s=y.Math.max(s,(Cf(),Fs(_f),y.Math.abs(d-r)<=_f||d==r||isNaN(d)&&isNaN(r)?0:p/(r-d)))):n.C&&n.C.b>0&&(s=y.Math.max(s,jxn(n.C.b+i.d.b,r))),a=i,d=r,g=c;n.C&&n.C.c>0&&(p=g+n.C.c,l&&(p+=a.d.c),s=y.Math.max(s,(Cf(),Fs(_f),y.Math.abs(d-1)<=_f||d==1||isNaN(d)&&isNaN(1)?0:p/(1-d)))),t.n.b=0,t.a.a=s}function vGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(t=u(Mr(n.b,e),127),h=u(u(ot(n.r,e),21),87),h.dc()){t.n.d=0,t.n.a=0;return}for(l=n.u.Hc((zu(),Rl)),s=0,n.A.Hc((go(),Gd))&&Vqn(n,e),f=h.Kc(),a=null,g=0,d=0;f.Ob();)i=u(f.Pb(),117),c=$(B(i.b.of((FM(),bI)))),r=i.b.Mf().b,a?(p=d+a.d.a+n.w+i.d.d,s=y.Math.max(s,(Cf(),Fs(_f),y.Math.abs(g-c)<=_f||g==c||isNaN(g)&&isNaN(c)?0:p/(c-g)))):n.C&&n.C.d>0&&(s=y.Math.max(s,jxn(n.C.d+i.d.d,c))),a=i,g=c,d=r;n.C&&n.C.a>0&&(p=d+n.C.a,l&&(p+=a.d.a),s=y.Math.max(s,(Cf(),Fs(_f),y.Math.abs(g-1)<=_f||g==1||isNaN(g)&&isNaN(1)?0:p/(1-g)))),t.n.d=0,t.a.b=s}function pAe(n,e,t,i,r,c,s,f){var h,l,a,d,g,p,m,k,j,P;if(m=!1,l=ren(t.q,e.f+e.b-t.q.f),p=i.f>e.b&&f,P=r-(t.q.e+l-s),d=(h=G5(i,P,!1),h.a),p&&d>i.f)return!1;if(p){for(g=0,j=new M(e.d);j.a<j.c.c.length;)k=u(E(j),315),g+=ren(k,i.f)+s;P=r-g}return P<i.g||(a=c==n.c.length-1&&P>=(Nn(c,n.c.length),u(n.c[c],186)).e,!p&&d>e.b&&!a)?!1:((a||p||d<=e.b)&&(a&&d>e.b?(t.d=d,uk(t,c_n(t,d))):(EFn(t.q,l),t.c=!0),uk(i,r-(t.s+t.r)),Hk(i,t.q.e+t.q.d,e.f),wC(e,i),n.c.length>c&&(Gk((Nn(c,n.c.length),u(n.c[c],186)),i),(Nn(c,n.c.length),u(n.c[c],186)).a.c.length==0&&Yl(n,c)),m=!0),m)}function kGn(n,e,t){var i,r,c,s,f,h;for(this.g=n,f=e.d.length,h=t.d.length,this.d=F(Qh,b1,10,f+h,0,1),s=0;s<f;s++)this.d[s]=e.d[s];for(c=0;c<h;c++)this.d[f+c]=t.d[c];if(e.e){if(this.e=$7(e.e),this.e.Mc(t),t.e)for(r=t.e.Kc();r.Ob();)i=u(r.Pb(),239),i!=e&&(this.e.Hc(i)?--i.c:this.e.Fc(i))}else t.e&&(this.e=$7(t.e),this.e.Mc(e));this.f=e.f+t.f,this.a=e.a+t.a,this.a>0?m$(this,this.f/this.a):Sf(e.g,e.d[0]).a!=null&&Sf(t.g,t.d[0]).a!=null?m$(this,($(Sf(e.g,e.d[0]).a)+$(Sf(t.g,t.d[0]).a))/2):Sf(e.g,e.d[0]).a!=null?m$(this,Sf(e.g,e.d[0]).a):Sf(t.g,t.d[0]).a!=null&&m$(this,Sf(t.g,t.d[0]).a)}function mAe(n,e){var t,i,r,c,s,f,h,l,a,d;for(n.a=new ZIn(n6e(y9)),i=new M(e.a);i.a<i.c.c.length;){for(t=u(E(i),855),f=new vx(S(C(M_,1),Kn,86,0,[])),nn(n.a.a,f),l=new M(t.d);l.a<l.c.c.length;)h=u(E(l),116),a=new JX(n,h),ntn(a,u(v(t.c,(W(),Dl)),21)),Zc(n.g,t)||(Ve(n.g,t,new V(h.c,h.d)),Ve(n.f,t,a)),nn(n.a.b,a),_D(f,a);for(s=new M(t.b);s.a<s.c.c.length;)c=u(E(s),602),a=new JX(n,c.Df()),Ve(n.b,c,new bi(f,a)),ntn(a,u(v(t.c,(W(),Dl)),21)),c.Bf()&&(d=new uZ(n,c.Bf(),1),ntn(d,u(v(t.c,Dl),21)),r=new vx(S(C(M_,1),Kn,86,0,[])),_D(r,d),In(n.c,c.Af(),new bi(f,d)))}return n.a}function yGn(n){var e;this.a=n,e=(Vn(),S(C(A_,1),G,273,0,[zt,Ti,Zt,_c,Sc,Gf])).length,this.b=Wa(zq,[J,jrn],[601,149],0,[e,e],2),this.c=Wa(zq,[J,jrn],[601,149],0,[e,e],2),PD(this,zt,(cn(),g0),S2),h5(this,zt,Ti,w0,Kd),U7(this,zt,_c,w0),U7(this,zt,Zt,w0),h5(this,zt,Sc,g0,S2),PD(this,Ti,Ws,T2),U7(this,Ti,_c,Ws),U7(this,Ti,Zt,Ws),h5(this,Ti,Sc,w0,Kd),aCn(this,_c,Ws),U7(this,_c,Zt,Ws),U7(this,_c,Sc,IH),aCn(this,Zt,X8),h5(this,Zt,Sc,Pv,Sv),PD(this,Sc,Ws,Ws),PD(this,Gf,Ws,T2),h5(this,Gf,zt,w0,Kd),h5(this,Gf,Sc,w0,Kd),h5(this,Gf,Ti,w0,Kd)}function vAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(s=t.Lk(),L(s,102)&&u(s,19).Bb&hr&&(g=u(t.md(),54),k=ea(n.e,g),k!=g)){if(a=Rh(s,k),O6(n,e,Jx(n,e,a)),d=null,fo(n.e)&&(i=Qg((Lu(),zi),n.e.Dh(),s),i!=$n(n.e.Dh(),n.c))){for(j=ru(n.e.Dh(),s),f=0,c=u(n.g,124),h=0;h<e;++h)r=c[h],j.am(r.Lk())&&++f;d=new GD(n.e,9,i,g,k,f,!1),d.nj(new ml(n.e,9,n.c,t,a,e,!1))}return m=u(s,19),p=br(m),p?(d=g.Th(n.e,At(g.Dh(),p),null,d),d=u(k,54).Rh(n.e,At(k.Dh(),p),null,d)):m.Bb&kc&&(l=-1-At(n.e.Dh(),m),d=g.Th(n.e,l,null,null),!u(k,54).Ph()&&(d=u(k,54).Rh(n.e,l,null,d))),d&&d.oj(),a}return t}function kAe(n){var e,t,i;for(Dg(La,S(C(a2,1),Kn,134,0,[new rG])),t=new lG(n),i=0;i<t.a.length;++i)e=J0(t,i).te().a,Sn(e,"layered")?Dg(La,S(C(a2,1),Kn,134,0,[new e8n])):Sn(e,"force")?Dg(La,S(C(a2,1),Kn,134,0,[new D5n])):Sn(e,"stress")?Dg(La,S(C(a2,1),Kn,134,0,[new x5n])):Sn(e,"mrtree")?Dg(La,S(C(a2,1),Kn,134,0,[new f8n])):Sn(e,"radial")?Dg(La,S(C(a2,1),Kn,134,0,[new w8n])):Sn(e,"disco")?Dg(La,S(C(a2,1),Kn,134,0,[new A5n,new L5n])):Sn(e,"sporeOverlap")||Sn(e,"sporeCompaction")?Dg(La,S(C(a2,1),Kn,134,0,[new k8n])):Sn(e,"rectpacking")&&Dg(La,S(C(a2,1),Kn,134,0,[new p8n]))}function jGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(g=new rr(n.o),P=e.a/g.a,f=e.b/g.b,k=e.a-g.a,c=e.b-g.b,t)for(r=x(v(n,(cn(),Ft)))===x((Ai(),qc)),m=new M(n.j);m.a<m.c.c.length;)switch(p=u(E(m),12),p.j.g){case 1:r||(p.n.a*=P);break;case 2:p.n.a+=k,r||(p.n.b*=f);break;case 3:r||(p.n.a*=P),p.n.b+=c;break;case 4:r||(p.n.b*=f)}for(l=new M(n.b);l.a<l.c.c.length;)h=u(E(l),72),a=h.n.a+h.o.a/2,d=h.n.b+h.o.b/2,j=a/g.a,s=d/g.b,j+s>=1&&(j-s>0&&d>=0?(h.n.a+=k,h.n.b+=c*s):j-s<0&&a>=0&&(h.n.a+=k*j,h.n.b+=c));n.o.a=e.a,n.o.b=e.b,U(n,(cn(),xd),(go(),i=u(of(P9),9),new _o(i,u(xs(i,i.length),9),0)))}function yAe(n,e,t,i,r,c){var s;if(!(e==null||!lx(e,Fdn,_dn)))throw T(new Gn("invalid scheme: "+e));if(!n&&!(t!=null&&ih(t,wu(35))==-1&&t.length>0&&(zn(0,t.length),t.charCodeAt(0)!=47)))throw T(new Gn("invalid opaquePart: "+t));if(n&&!(e!=null&&t7(jA,e.toLowerCase()))&&!(t==null||!lx(t,L9,N9)))throw T(new Gn(tJn+t));if(n&&e!=null&&t7(jA,e.toLowerCase())&&!nye(t))throw T(new Gn(tJn+t));if(!u8e(i))throw T(new Gn("invalid device: "+i));if(!U6e(r))throw s=r==null?"invalid segments: null":"invalid segment: "+F6e(r),T(new Gn(s));if(!(c==null||ih(c,wu(35))==-1))throw T(new Gn("invalid query: "+c))}function jAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(t.Ug("Network simplex layering",1),n.b=e,P=u(v(e,(cn(),V8)),17).a*4,j=n.b.a,j.c.length<1){t.Vg();return}for(c=kPe(n,j),k=null,r=ge(c,0);r.b!=r.d.c;){for(i=u(be(r),15),f=P*wi(y.Math.sqrt(i.gc())),s=$Pe(i),IR(pz(jhe(mz(KN(s),f),k),!0),t.eh(1)),g=n.b.b,m=new M(s.a);m.a<m.c.c.length;){for(p=u(E(m),125);g.c.length<=p.e;)bb(g,g.c.length,new Nc(n.b));a=u(p.f,10),$i(a,u(sn(g,p.e),30))}if(c.b>1)for(k=F(ye,_e,28,n.b.b.c.length,15,1),d=0,l=new M(n.b.b);l.a<l.c.c.length;)h=u(E(l),30),k[d++]=h.a.c.length}j.c.length=0,n.a=null,n.b=null,n.c=null,t.Vg()}function EAe(n,e){var t,i,r,c,s,f,h,l,a,d;for(a=new Z,d=new Mg,c=null,r=0,i=0;i<e.length;++i)switch(t=e[i],I6e(c,t)&&(r=RY(n,d,a,OO,r)),kt(t,(W(),s0))&&(c=u(v(t,s0),10)),t.k.g){case 0:for(h=TX(Mp(uc(t,(en(),Xn)),new QU));E$(h);)s=u(tQ(h),12),n.d[s.p]=r++,Fn(a.c,s);for(r=RY(n,d,a,OO,r),l=TX(Mp(uc(t,ae),new QU));E$(l);)s=u(tQ(l),12),n.d[s.p]=r++,Fn(a.c,s);break;case 3:uc(t,tln).dc()||(s=u(uc(t,tln).Xb(0),12),n.d[s.p]=r++,Fn(a.c,s)),uc(t,OO).dc()||W1(d,t);break;case 1:for(f=uc(t,(en(),Wn)).Kc();f.Ob();)s=u(f.Pb(),12),n.d[s.p]=r++,Fn(a.c,s);uc(t,Zn).Jc(new HMn(d,t))}return RY(n,d,a,OO,r),a}function Yen(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(e==null||e.length==0)return null;if(c=u(Dc(n.f,e),23),!c){for(r=(p=new ol(n.d).a.vc().Kc(),new P0(p));r.a.Ob();)if(t=(s=u(r.a.Pb(),44),u(s.md(),23)),f=t.f,m=e.length,Sn(f.substr(f.length-m,m),e)&&(e.length==f.length||Xi(f,f.length-e.length-1)==46)){if(c)return null;c=t}if(!c){for(i=(g=new ol(n.d).a.vc().Kc(),new P0(g));i.a.Ob();)if(t=(s=u(i.a.Pb(),44),u(s.md(),23)),d=t.g,d!=null){for(h=d,l=0,a=h.length;l<a;++l)if(f=h[l],m=e.length,Sn(f.substr(f.length-m,m),e)&&(e.length==f.length||Xi(f,f.length-e.length-1)==46)){if(c)return null;c=t}}}c&&Lr(n.f,e,c)}return c}function MAe(n,e){var t,i,r,c,s;for(t=new fg,s=!1,c=0;c<e.length;c++){if(i=(zn(c,e.length),e.charCodeAt(c)),i==32){for(QC(n,t,0),t.a+=" ",QC(n,t,0);c+1<e.length&&(zn(c+1,e.length),e.charCodeAt(c+1)==32);)++c;continue}if(s){i==39?c+1<e.length&&(zn(c+1,e.length),e.charCodeAt(c+1)==39)?(t.a+=String.fromCharCode(i),++c):s=!1:t.a+=String.fromCharCode(i);continue}if(ih("GyMLdkHmsSEcDahKzZv",wu(i))>0){QC(n,t,0),t.a+=String.fromCharCode(i),r=U8e(e,c),QC(n,t,r),c+=r-1;continue}i==39?c+1<e.length&&(zn(c+1,e.length),e.charCodeAt(c+1)==39)?(t.a+="'",++c):s=!0:t.a+=String.fromCharCode(i)}QC(n,t,0),jye(n)}function TAe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(A=SPn(n),h=new Z,c=n.c.length,l=c-1,a=c+1;A.a.gc()!=0;){for(;t.b!=0;)P=(oe(t.b!=0),u(Xo(t,t.a.a),118)),A.a.Bc(P)!=null,P.g=l--,Ben(P,e,t,i);for(;e.b!=0;)O=(oe(e.b!=0),u(Xo(e,e.a.a),118)),A.a.Bc(O)!=null,O.g=a++,Ben(O,e,t,i);for(f=Wi,k=A.a.ec().Kc();k.Ob();){if(m=u(k.Pb(),118),!i&&m.b>0&&m.a<=0){h.c.length=0,Fn(h.c,m);break}p=m.i-m.d,p>=f&&(p>f&&(h.c.length=0,f=p),Fn(h.c,m))}h.c.length!=0&&(s=u(sn(h,cS(r,h.c.length)),118),A.a.Bc(s)!=null,s.g=a++,Ben(s,e,t,i),h.c.length=0)}for(j=n.c.length+1,g=new M(n);g.a<g.c.c.length;)d=u(E(g),118),d.g<c&&(d.g=d.g+j)}function EGn(n,e,t){var i,r,c,s;this.j=n,this.e=XZ(n),this.o=this.j.e,this.i=!!this.o,this.p=this.i?u(sn(t,Hi(this.o).p),219):null,r=u(v(n,(W(),Hc)),21),this.g=r.Hc((pr(),cs)),this.b=new Z,this.d=new $Kn(this.e),s=u(v(this.j,P3),234),this.q=Sve(e,s,this.e),this.k=new TAn(this),c=Af(S(C(nne,1),Kn,230,0,[this,this.d,this.k,this.q])),e==(Ab(),Aj)&&!on(un(v(n,(cn(),l0))))?(i=new JZ(this.e),Fn(c.c,i),this.c=new pJ(i,s,u(this.q,413))):e==Aj&&on(un(v(n,(cn(),l0))))?(i=new JZ(this.e),Fn(c.c,i),this.c=new gxn(i,s,u(this.q,413))):this.c=new _Mn(e,this),nn(c,this.c),uGn(c,this.e),this.s=aNe(this.k)}function CAe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j;for(c=new Z,l=new M(i);l.a<l.c.c.length;)if(f=u(E(l),453),s=null,f.f==(gr(),Jc))for(m=new M(f.e);m.a<m.c.c.length;)p=u(E(m),18),j=p.d.i,Hi(j)==e?T$n(n,e,f,p,f.b,p.d):!t||Q4(j,t)?tje(n,e,f,i,p):(g=qR(n,e,t,p,f.b,Jc,s),g!=s&&Fn(c.c,g),g.c&&(s=g));else for(d=new M(f.e);d.a<d.c.c.length;)if(a=u(E(d),18),k=a.c.i,Hi(k)==e)T$n(n,e,f,a,a.c,f.b);else{if(!t||Q4(k,t))continue;g=qR(n,e,t,a,f.b,Vu,s),g!=s&&Fn(c.c,g),g.c&&(s=g)}for(h=new M(c);h.a<h.c.c.length;)f=u(E(h),453),qr(e.a,f.a,0)!=-1||nn(e.a,f.a),f.c&&Fn(r.c,f)}function MGn(n){var e,t,i,r,c,s,f;for(e=0,c=new M(n.b.a);c.a<c.c.c.length;)i=u(E(c),194),i.b=0,i.c=0;for(i_n(n,0),ax(n,n.g),IS(n.c),dz(n.c),t=(ci(),Kr),ay(nN(Yg(ay(nN(Yg(ay(Yg(n.c,t)),gKn(t)))),t))),Yg(n.c,Kr),ux(n,n.g),qFn(n,0),tGn(n,0),RHn(n,1),i_n(n,1),ax(n,n.d),IS(n.c),s=new M(n.b.a);s.a<s.c.c.length;)i=u(E(s),194),e+=y.Math.abs(i.c);for(f=new M(n.b.a);f.a<f.c.c.length;)i=u(E(f),194),i.b=0,i.c=0;for(t=us,ay(nN(Yg(ay(nN(Yg(ay(dz(Yg(n.c,t))),gKn(t)))),t))),Yg(n.c,Kr),ux(n,n.d),qFn(n,1),tGn(n,1),RHn(n,0),dz(n.c),r=new M(n.b.a);r.a<r.c.c.length;)i=u(E(r),194),e+=y.Math.abs(i.c);return e}function SAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(on(un(v(t,(cn(),Bw)))))for(f=new M(t.j);f.a<f.c.c.length;)for(s=u(E(f),12),g=hh(s.g),l=g,a=0,d=l.length;a<d;++a)h=l[a],c=h.d.i==t,r=c&&on(un(v(h,Dd))),r&&(m=h.c,p=u(ee(n.b,m),10),p||(p=my(m,(Ai(),Qf),m.j,-1,null,null,m.o,u(v(e,Lo),88),e),U(p,(W(),st),m),Ve(n.b,m,p),nn(e.a,p)),j=h.d,k=u(ee(n.b,j),10),k||(k=my(j,(Ai(),Qf),j.j,1,null,null,j.o,u(v(e,Lo),88),e),U(k,(W(),st),j),Ve(n.b,j,k),nn(e.a,k)),i=JD(h),Zi(i,u(sn(p.j,0),12)),Oi(i,u(sn(k.j,0),12)),In(n.a,h,new zM(i,e,(gr(),Jc))),u(v(e,(W(),Hc)),21).Fc((pr(),cs)))}function PAe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(r=new M(n.a.b);r.a<r.c.c.length;)for(t=u(E(r),30),h=new M(t.a);h.a<h.c.c.length;)f=u(E(h),10),e.j[f.p]=f,e.i[f.p]=e.o==(If(),Xf)?li:Pt;for(Hu(n.c),s=n.a.b,e.c==(fh(),y1)&&(s=Qo(s)),Ope(n.e,e,n.b),u7(e.p,null),c=s.Kc();c.Ob();)for(t=u(c.Pb(),30),l=t.a,e.o==(If(),Xf)&&(l=Qo(l)),g=l.Kc();g.Ob();)d=u(g.Pb(),10),e.g[d.p]==d&&ozn(n,d,e);for(uAe(n,e),i=s.Kc();i.Ob();)for(t=u(i.Pb(),30),g=new M(t.a);g.a<g.c.c.length;)d=u(E(g),10),e.p[d.p]=e.p[e.g[d.p].p],d==e.g[d.p]&&(a=$(e.i[e.j[d.p].p]),(e.o==(If(),Xf)&&a>li||e.o==Bd&&a<Pt)&&(e.p[d.p]=$(e.p[d.p])+a));n.e.xg()}function IAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;for(t.Ug("Label dummy switching",1),i=u(v(e,(cn(),dO)),232),vve(e),r=sTe(e,i),n.a=F(Ii,Cr,28,e.b.c.length,15,1),f=(Yp(),S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2])),a=0,p=f.length;a<p;++a)if(c=f[a],(c==p2||c==g2||c==Dw)&&!u(Su(r.a,c)?r.b[c.g]:null,15).dc()){Mve(n,e);break}for(h=S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2]),d=0,m=h.length;d<m;++d)c=h[d],c==p2||c==g2||c==Dw||hUn(n,u(Su(r.a,c)?r.b[c.g]:null,15));for(s=S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2]),l=0,g=s.length;l<g;++l)c=s[l],(c==p2||c==g2||c==Dw)&&hUn(n,u(Su(r.a,c)?r.b[c.g]:null,15));n.a=null,t.Vg()}function TGn(n,e){var t,i,r,c,s,f,h,l,a;if(l=e,!(l.b==null||n.b==null)){for(Gg(n),z5(n),Gg(l),z5(l),t=F(ye,_e,28,n.b.length+l.b.length,15,1),a=0,i=0,s=0;i<n.b.length&&s<l.b.length;)if(r=n.b[i],c=n.b[i+1],f=l.b[s],h=l.b[s+1],c<f)i+=2;else if(c>=f&&r<=h)f<=r&&c<=h?(t[a++]=r,t[a++]=c,i+=2):f<=r?(t[a++]=r,t[a++]=h,n.b[i]=h+1,s+=2):c<=h?(t[a++]=f,t[a++]=c,i+=2):(t[a++]=f,t[a++]=h,n.b[i]=h+1);else if(h<r)s+=2;else throw T(new ec("Token#intersectRanges(): Internal Error: ["+n.b[i]+","+n.b[i+1]+"] & ["+l.b[s]+","+l.b[s+1]+"]"));for(;i<n.b.length;)t[a++]=n.b[i++],t[a++]=n.b[i++];n.b=F(ye,_e,28,a,15,1),Oc(t,0,n.b,0,a)}}function OAe(n){var e,t,i,r,c,s,f;for(e=new Z,n.g=new Z,n.d=new Z,s=new sd(new Ua(n.f.b).a);s.b;)c=Nb(s),nn(e,u(u(c.md(),42).b,86)),hl(u(c.ld(),602).Af())?nn(n.d,u(c.md(),42)):nn(n.g,u(c.md(),42));for(ax(n,n.d),ax(n,n.g),n.c=new Z_n(n.b),Mhe(n.c,(Lz(),jZn)),ux(n,n.d),ux(n,n.g),hi(e,n.c.a.b),n.e=new V(Pt,Pt),n.a=new V(li,li),i=new M(e);i.a<i.c.c.length;)t=u(E(i),86),n.e.a=y.Math.min(n.e.a,t.g.c),n.e.b=y.Math.min(n.e.b,t.g.d),n.a.a=y.Math.max(n.a.a,t.g.c+t.g.b),n.a.b=y.Math.max(n.a.b,t.g.d+t.g.a);kz(n.c,new Q0n),f=0;do r=MGn(n),++f;while((f<2||r>fa)&&f<10);kz(n.c,new Y0n),MGn(n),pwe(n.c),aAe(n.f)}function AAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(t=u(v(n,(cn(),Ft)),101),s=n.f,c=n.d,f=s.a+c.b+c.c,h=0-c.d-n.c.b,a=s.b+c.d+c.a-n.c.b,l=new Z,d=new Z,r=new M(e);r.a<r.c.c.length;){switch(i=u(E(r),10),t.g){case 1:case 2:case 3:vCe(i);break;case 4:g=u(v(i,b0),8),p=g?g.a:0,i.n.a=f*$(B(v(i,(W(),f0))))-p,OC(i,!0,!1);break;case 5:m=u(v(i,b0),8),k=m?m.a:0,i.n.a=$(B(v(i,(W(),f0))))-k,OC(i,!0,!1),s.a=y.Math.max(s.a,i.n.a+i.o.a/2)}switch(u(v(i,(W(),gc)),64).g){case 1:i.n.b=h,Fn(l.c,i);break;case 3:i.n.b=a,Fn(d.c,i)}}switch(t.g){case 1:case 2:cKn(l,n),cKn(d,n);break;case 3:uKn(l,n),uKn(d,n)}}function LAe(n,e){var t,i,r,c,s,f,h,l,a,d,g;switch(n.k.g){case 1:if(i=u(v(n,(W(),st)),18),t=u(v(i,rfn),75),t?on(un(v(i,zf)))&&(t=Pk(t)):t=new Tu,l=u(v(n,yf),12),l){if(a=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])),e<=a.a)return a.b;xt(t,a,t.a,t.a.a)}if(d=u(v(n,Es),12),d){if(g=cc(S(C(Ei,1),J,8,0,[d.i.n,d.n,d.a])),g.a<=e)return g.b;xt(t,g,t.c.b,t.c)}if(t.b>=2){for(h=ge(t,0),s=u(be(h),8),f=u(be(h),8);f.a<e&&h.b!=h.d.c;)s=f,f=u(be(h),8);return s.b+(e-s.a)/(f.a-s.a)*(f.b-s.b)}break;case 3:switch(c=u(v(u(sn(n.j,0),12),(W(),st)),12),r=c.i,c.j.g){case 1:return r.n.b;case 3:return r.n.b+r.o.b}}return KZ(n).b}function NAe(n){var e,t,i,r,c,s,f,h,l,a,d;for(s=new M(n.d.b);s.a<s.c.c.length;)for(c=u(E(s),30),h=new M(c.a);h.a<h.c.c.length;){if(f=u(E(h),10),on(un(v(f,(cn(),q8))))&&!D4(Ml(f))){i=u(Cge(Ml(f)),18),a=i.c.i,a==f&&(a=i.d.i),d=new bi(a,mi(Fi(f.n),a.n)),Ve(n.b,f,d);continue}r=new Ho(f.n.a-f.d.b,f.n.b-f.d.d,f.o.a+f.d.b+f.d.c,f.o.b+f.d.d+f.d.a),e=eSn(sMn(uMn(oMn(new VG,f),r),YZn),n.a),nSn(Jhe(z$n(new XG,S(C(aI,1),Kn,60,0,[e])),e),n.a),l=new rL,Ve(n.e,e,l),t=wl(new ie(ce(ji(f).a.Kc(),new En)))-wl(new ie(ce(Qt(f).a.Kc(),new En))),t<0?Ck(l,!0,(ci(),Kr)):t>0&&Ck(l,!0,(ci(),Xr)),f.k==(Vn(),Zt)&&sOn(l),Ve(n.f,f,e)}}function DAe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(r=u(v(n,(pt(),u9)),27),l=et,a=et,f=Wi,h=Wi,A=ge(n.b,0);A.b!=A.d.c;)P=u(be(A),40),p=P.e,m=P.f,l=y.Math.min(l,p.a-m.a/2),a=y.Math.min(a,p.b-m.b/2),f=y.Math.max(f,p.a+m.a/2),h=y.Math.max(h,p.b+m.b/2);for(g=u(z(r,(lc(),Oln)),107),O=ge(n.b,0);O.b!=O.d.c;)P=u(be(O),40),d=v(P,u9),L(d,207)&&(c=u(d,27),Bo(c,P.e.a,P.e.b),uy(c,P));for(j=ge(n.a,0);j.b!=j.d.c;)k=u(be(j),65),i=u(v(k,u9),74),i&&(e=k.a,t=Xg(i,!0,!0),dy(e,t));D=f-l+(g.b+g.c),s=h-a+(g.d+g.a),on(un(z(r,(He(),Vw))))||Gb(r,D,s,!1,!1),ht(r,K2,D-(g.b+g.c)),ht(r,R2,s-(g.d+g.a))}function CGn(n,e){var t,i,r,c,s,f,h,l,a,d;for(h=!0,r=0,l=n.g[e.p],a=e.o.b+n.o,t=n.d[e.p][2],Go(n.b,l,Y(u(sn(n.b,l),17).a-1+t)),Go(n.c,l,$(B(sn(n.c,l)))-a+t*n.f),++l,l>=n.j?(++n.j,nn(n.b,Y(1)),nn(n.c,a)):(i=n.d[e.p][1],Go(n.b,l,Y(u(sn(n.b,l),17).a+1-i)),Go(n.c,l,$(B(sn(n.c,l)))+a-i*n.f)),(n.r==(ps(),Pj)&&(u(sn(n.b,l),17).a>n.k||u(sn(n.b,l-1),17).a>n.k)||n.r==Ij&&($(B(sn(n.c,l)))>n.n||$(B(sn(n.c,l-1)))>n.n))&&(h=!1),s=new ie(ce(ji(e).a.Kc(),new En));pe(s);)c=u(fe(s),18),f=c.c.i,n.g[f.p]==l&&(d=CGn(n,f),r=r+u(d.a,17).a,h=h&&on(un(d.b)));return n.g[e.p]=l,r=r+n.d[e.p][0],new bi(Y(r),(_n(),!!h))}function SGn(n,e){var t,i,r,c,s;t=$(B(v(e,(cn(),Ws)))),t<2&&U(e,Ws,2),i=u(v(e,Lo),88),i==(ci(),Jf)&&U(e,Lo,FC(e)),r=u(v(e,Ute),17),r.a==0?U(e,(W(),P3),new dx):U(e,(W(),P3),new qT(r.a)),c=un(v(e,G8)),c==null&&U(e,G8,(_n(),x(v(e,$l))===x((El(),Bv)))),qt(new Cn(null,new On(e.a,16)),new OG(n)),qt(rc(new Cn(null,new On(e.b,16)),new _U),new AG(n)),s=new yGn(e),U(e,(W(),E2),s),H7(n.a),hf(n.a,(Vi(),Vs),u(v(e,Nd),188)),hf(n.a,Jh,u(v(e,$d),188)),hf(n.a,Ac,u(v(e,U8),188)),hf(n.a,Fc,u(v(e,vO),188)),hf(n.a,zr,Dve(u(v(e,$l),223))),MX(n.a,INe(e)),U(e,bH,gy(n.a,e))}function Zen(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P;for(d=new de,s=new Z,C_n(n,t,n.d.Ag(),s,d),C_n(n,i,n.d.Bg(),s,d),n.b=.2*(k=AHn(rc(new Cn(null,new On(s,16)),new R3n)),j=AHn(rc(new Cn(null,new On(s,16)),new K3n)),y.Math.min(k,j)),c=0,f=0;f<s.c.length-1;f++)for(h=(Nn(f,s.c.length),u(s.c[f],118)),m=f+1;m<s.c.length;m++)c+=zen(n,h,(Nn(m,s.c.length),u(s.c[m],118)));for(g=u(v(e,(W(),P3)),234),c>=2&&(P=JHn(s,!0,g),!n.e&&(n.e=new okn(n)),F8e(n.e,P,s,n.b)),NFn(s,g),FAe(s),p=-1,a=new M(s);a.a<a.c.c.length;)l=u(E(a),118),!(y.Math.abs(l.s-l.c)<vh)&&(p=y.Math.max(p,l.o),n.d.yg(l,r,n.c));return n.d.a.a.$b(),p+1}function $Ae(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(d=u(DM((s=ge(new sl(e).a.d,0),new sg(s))),40),m=d?u(v(d,(pt(),cq)),40):null,r=1;d&&m;){for(h=0,D=0,t=d,i=m,f=0;f<r;f++)t=n$(t),i=n$(i),D+=$(B(v(t,(pt(),Nv)))),h+=$(B(v(i,Nv)));if(A=$(B(v(m,(pt(),j1)))),O=$(B(v(d,j1))),g=OY(n,d,m),p=A+h+n.b+g-O-D,0<p){for(l=e,a=0;l&&l!=i;)++a,l=u(v(l,$O),40);if(l)for(P=p/a,l=e;l!=i;)j=$(B(v(l,j1)))+p,U(l,j1,j),k=$(B(v(l,Nv)))+p,U(l,Nv,k),p-=P,l=u(v(l,$O),40);else return}++r,d.d.b==0?d=Aen(new sl(e),r):d=u(DM((c=ge(new sl(d).a.d,0),new sg(c))),40),m=d?u(v(d,cq),40):null}}function xAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;return g=n.c[e],p=n.c[t],m=u(v(g,(W(),C3)),15),!!m&&m.gc()!=0&&m.Hc(p)||(k=g.k!=(Vn(),Ti)&&p.k!=Ti,j=u(v(g,s0),10),P=u(v(p,s0),10),O=j!=P,A=!!j&&j!=g||!!P&&P!=p,D=$x(g,(en(),Xn)),_=$x(p,ae),A=A|($x(g,ae)||$x(p,Xn)),X=A&&O||D||_,k&&X)||g.k==(Vn(),_c)&&p.k==zt||p.k==(Vn(),_c)&&g.k==zt?!1:(a=n.c[e],c=n.c[t],r=mFn(n.e,a,c,(en(),Wn)),h=mFn(n.i,a,c,Zn),aCe(n.f,a,c),l=LRn(n.b,a,c)+u(r.a,17).a+u(h.a,17).a+n.f.d,f=LRn(n.b,c,a)+u(r.b,17).a+u(h.b,17).a+n.f.b,n.a&&(d=u(v(a,st),12),s=u(v(c,st),12),i=ZBn(n.g,d,s),l+=u(i.a,17).a,f+=u(i.b,17).a),l>f)}function PGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(l=Pt,a=Pt,f=li,h=li,g=new M(e.i);g.a<g.c.c.length;)d=u(E(g),68),r=u(u(ee(n.g,d.a),42).b,27),Bo(r,d.b.c,d.b.d),l=y.Math.min(l,r.i),a=y.Math.min(a,r.j),f=y.Math.max(f,r.i+r.g),h=y.Math.max(h,r.j+r.f);for(p=u(z(n.c,(Wk(),Qce)),107),Gb(n.c,f-l+(p.b+p.c),h-a+(p.d+p.a),!0,!0),rnn(n.c,-l+p.b,-a+p.d),i=new ne($On(n.c));i.e!=i.i.gc();)t=u(ue(i),74),s=Xg(t,!0,!0),m=Fh(t),j=ra(t),k=new V(m.i+m.g/2,m.j+m.f/2),c=new V(j.i+j.g/2,j.j+j.f/2),P=mi(new V(c.a,c.b),k),vm(P,m.g,m.f),tt(k,P),O=mi(new V(k.a,k.b),c),vm(O,j.g,j.f),tt(c,O),j7(s,k.a,k.b),y7(s,c.a,c.b)}function RAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;for(e.Ug("Label dummy removal",1),i=$(B(v(n,(cn(),C2)))),r=$(B(v(n,qw))),l=u(v(n,Lo),88),h=new M(n.b);h.a<h.c.c.length;)for(f=u(E(h),30),d=new xi(f.a,0);d.b<d.d.gc();)a=(oe(d.b<d.d.gc()),u(d.d.Xb(d.c=d.b++),10)),a.k==(Vn(),Sc)&&(g=u(v(a,(W(),st)),18),m=$(B(v(g,m1))),s=x(v(a,S3))===x((Co(),Sa)),t=new rr(a.n),s&&(t.b+=m+i),c=new V(a.o.a,a.o.b+(a.k==Sc&&!s4(ut(u(v(a,F8),15).Oc(),new Z3(new qU))).Bd((Va(),v3))?0:-m-i)),p=u(v(a,F8),15),l==(ci(),us)||l==Wf?qMe(p,t,r,c,s,l):Q6e(p,t,r,c),hi(g.b,p),XR(a,x(v(n,$l))===x((El(),Yj))),bo(d));e.Vg()}function KAe(n){n.q||(n.q=!0,n.p=hc(n,0),n.a=hc(n,1),jt(n.a,0),n.f=hc(n,2),jt(n.f,1),Rt(n.f,2),n.n=hc(n,3),Rt(n.n,3),Rt(n.n,4),Rt(n.n,5),Rt(n.n,6),n.g=hc(n,4),jt(n.g,7),Rt(n.g,8),n.c=hc(n,5),jt(n.c,7),jt(n.c,8),n.i=hc(n,6),jt(n.i,9),jt(n.i,10),jt(n.i,11),jt(n.i,12),Rt(n.i,13),n.j=hc(n,7),jt(n.j,9),n.d=hc(n,8),jt(n.d,3),jt(n.d,4),jt(n.d,5),jt(n.d,6),Rt(n.d,7),Rt(n.d,8),Rt(n.d,9),Rt(n.d,10),n.b=hc(n,9),Rt(n.b,0),Rt(n.b,1),n.e=hc(n,10),Rt(n.e,1),Rt(n.e,2),Rt(n.e,3),Rt(n.e,4),jt(n.e,5),jt(n.e,6),jt(n.e,7),jt(n.e,8),jt(n.e,9),jt(n.e,10),Rt(n.e,11),n.k=hc(n,11),Rt(n.k,0),Rt(n.k,1),n.o=Je(n,12),n.s=Je(n,13))}function ntn(n,e){e.dc()&&Nh(n.j,!0,!0,!0,!0),rt(e,(en(),ef))&&Nh(n.j,!0,!0,!0,!1),rt(e,os)&&Nh(n.j,!1,!0,!0,!0),rt(e,Do)&&Nh(n.j,!0,!0,!1,!0),rt(e,Cs)&&Nh(n.j,!0,!1,!0,!0),rt(e,Wu)&&Nh(n.j,!1,!0,!0,!1),rt(e,ss)&&Nh(n.j,!1,!0,!1,!0),rt(e,$o)&&Nh(n.j,!0,!1,!1,!0),rt(e,tf)&&Nh(n.j,!0,!1,!0,!1),rt(e,mu)&&Nh(n.j,!0,!0,!0,!0),rt(e,su)&&Nh(n.j,!0,!0,!0,!0),rt(e,mu)&&Nh(n.j,!0,!0,!0,!0),rt(e,pu)&&Nh(n.j,!0,!0,!0,!0),rt(e,vu)&&Nh(n.j,!0,!0,!0,!0),rt(e,Ju)&&Nh(n.j,!0,!0,!0,!0),rt(e,Uc)&&Nh(n.j,!0,!0,!0,!0)}function IGn(n,e,t){var i,r,c,s,f,h,l,a,d;if(n.a!=e.jk())throw T(new Gn(ev+e.xe()+n0));if(i=r1((Lu(),zi),e).Jl(),i)return i.jk().wi().ri(i,t);if(s=r1(zi,e).Ll(),s){if(t==null)return null;if(f=u(t,15),f.dc())return"";for(d=new Hl,c=f.Kc();c.Ob();)r=c.Pb(),Er(d,s.jk().wi().ri(s,r)),d.a+=" ";return bN(d,d.a.length-1)}if(a=r1(zi,e).Ml(),!a.dc()){for(l=a.Kc();l.Ob();)if(h=u(l.Pb(),156),h.fk(t))try{if(d=h.jk().wi().ri(h,t),d!=null)return d}catch(g){if(g=Ot(g),!L(g,103))throw T(g)}throw T(new Gn("Invalid value: '"+t+"' for datatype :"+e.xe()))}return u(e,847).ok(),t==null?null:L(t,180)?""+u(t,180).a:wo(t)==oI?TCn(A9[0],u(t,206)):Jr(t)}function BAe(n){var e,t,i,r,c,s,f,h,l,a;for(l=new Mt,f=new Mt,c=new M(n);c.a<c.c.c.length;)i=u(E(c),131),i.v=0,i.n=i.i.c.length,i.u=i.t.c.length,i.n==0&&xt(l,i,l.c.b,l.c),i.u==0&&i.r.a.gc()==0&&xt(f,i,f.c.b,f.c);for(s=-1;l.b!=0;)for(i=u(Ux(l,0),131),t=new M(i.t);t.a<t.c.c.length;)e=u(E(t),274),a=e.b,a.v=y.Math.max(a.v,i.v+1),s=y.Math.max(s,a.v),--a.n,a.n==0&&xt(l,a,l.c.b,l.c);if(s>-1){for(r=ge(f,0);r.b!=r.d.c;)i=u(be(r),131),i.v=s;for(;f.b!=0;)for(i=u(Ux(f,0),131),t=new M(i.i);t.a<t.c.c.length;)e=u(E(t),274),h=e.a,h.r.a.gc()==0&&(h.v=y.Math.min(h.v,i.v-1),--h.u,h.u==0&&xt(f,h,f.c.b,f.c))}}function FAe(n){var e,t,i,r,c,s,f,h,l,a;for(l=new Z,f=new Z,s=new M(n);s.a<s.c.c.length;)r=u(E(s),118),JA(r,r.f.c.length),PE(r,r.k.c.length),r.d==0&&Fn(l.c,r),r.i==0&&r.e.b==0&&Fn(f.c,r);for(i=-1;l.c.length!=0;)for(r=u(Yl(l,0),118),t=new M(r.k);t.a<t.c.c.length;)e=u(E(t),132),a=e.b,gG(a,y.Math.max(a.o,r.o+1)),i=y.Math.max(i,a.o),JA(a,a.d-1),a.d==0&&Fn(l.c,a);if(i>-1){for(c=new M(f);c.a<c.c.c.length;)r=u(E(c),118),r.o=i;for(;f.c.length!=0;)for(r=u(Yl(f,0),118),t=new M(r.f);t.a<t.c.c.length;)e=u(E(t),132),h=e.a,!(h.e.b>0)&&(gG(h,y.Math.min(h.o,r.o-1)),PE(h,h.i-1),h.i==0&&Fn(f.c,h))}}function OGn(n,e,t,i,r){var c,s,f,h;return h=Pt,s=!1,f=Uen(n,mi(new V(e.a,e.b),n),tt(new V(t.a,t.b),r),mi(new V(i.a,i.b),t)),c=!!f&&!(y.Math.abs(f.a-n.a)<=Yb&&y.Math.abs(f.b-n.b)<=Yb||y.Math.abs(f.a-e.a)<=Yb&&y.Math.abs(f.b-e.b)<=Yb),f=Uen(n,mi(new V(e.a,e.b),n),t,r),f&&((y.Math.abs(f.a-n.a)<=Yb&&y.Math.abs(f.b-n.b)<=Yb)==(y.Math.abs(f.a-e.a)<=Yb&&y.Math.abs(f.b-e.b)<=Yb)||c?h=y.Math.min(h,z6(mi(f,t))):s=!0),f=Uen(n,mi(new V(e.a,e.b),n),i,r),f&&(s||(y.Math.abs(f.a-n.a)<=Yb&&y.Math.abs(f.b-n.b)<=Yb)==(y.Math.abs(f.a-e.a)<=Yb&&y.Math.abs(f.b-e.b)<=Yb)||c)&&(h=y.Math.min(h,z6(mi(f,i)))),h}function AGn(n){rb(n,new gd(UE(eb(Yd(nb(Zd(new Fa,la),PXn),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new X0n),cu))),Q(n,la,i8,rn(Con)),Q(n,la,oP,(_n(),!0)),Q(n,la,r2,rn(dZn)),Q(n,la,d3,rn(bZn)),Q(n,la,a3,rn(wZn)),Q(n,la,Xm,rn(aZn)),Q(n,la,r8,rn(Pon)),Q(n,la,Vm,rn(gZn)),Q(n,la,Jtn,rn(Ton)),Q(n,la,Ytn,rn(Eon)),Q(n,la,Ztn,rn(Mon)),Q(n,la,nin,rn(Son)),Q(n,la,Qtn,rn(EI))}function _Ae(n){var e,t,i,r,c,s,f,h;for(e=null,i=new M(n);i.a<i.c.c.length;)t=u(E(i),239),$(Sf(t.g,t.d[0]).a),t.b=null,t.e&&t.e.gc()>0&&t.c==0&&(!e&&(e=new Z),Fn(e.c,t));if(e)for(;e.c.length!=0;){if(t=u(Yl(e,0),239),t.b&&t.b.c.length>0){for(c=(!t.b&&(t.b=new Z),new M(t.b));c.a<c.c.c.length;)if(r=u(E(c),239),J9(Sf(r.g,r.d[0]).a)==J9(Sf(t.g,t.d[0]).a)){if(qr(n,r,0)>qr(n,t,0))return new bi(r,t)}else if($(Sf(r.g,r.d[0]).a)>$(Sf(t.g,t.d[0]).a))return new bi(r,t)}for(f=(!t.e&&(t.e=new Z),t.e).Kc();f.Ob();)s=u(f.Pb(),239),h=(!s.b&&(s.b=new Z),s.b),z0(0,h.c.length),d6(h.c,0,t),s.c==h.c.length&&Fn(e.c,s)}return null}function HAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(e.Ug("Interactive crossing minimization",1),s=0,c=new M(n.b);c.a<c.c.c.length;)i=u(E(c),30),i.p=s++;for(g=XZ(n),j=new jz(g.length),uGn(new Fu(S(C(nne,1),Kn,230,0,[j])),g),k=0,s=0,r=new M(n.b);r.a<r.c.c.length;){for(i=u(E(r),30),t=0,d=0,a=new M(i.a);a.a<a.c.c.length;)for(h=u(E(a),10),h.n.a>0&&(t+=h.n.a+h.o.a/2,++d),m=new M(h.j);m.a<m.c.c.length;)p=u(E(m),12),p.p=k++;for(d>0&&(t/=d),P=F(Ii,Cr,28,i.a.c.length,15,1),f=0,l=new M(i.a);l.a<l.c.c.length;)h=u(E(l),10),h.p=f++,P[h.p]=LAe(h,t),h.k==(Vn(),Ti)&&U(h,(W(),cfn),P[h.p]);Ln(),Yt(i.a,new B7n(P)),aUn(j,g,s,!0),++s}e.Vg()}function V5(n,e){var t,i,r,c,s,f,h,l,a;if(e.e==5){TGn(n,e);return}if(l=e,!(l.b==null||n.b==null)){for(Gg(n),z5(n),Gg(l),z5(l),t=F(ye,_e,28,n.b.length+l.b.length,15,1),a=0,i=0,s=0;i<n.b.length&&s<l.b.length;)if(r=n.b[i],c=n.b[i+1],f=l.b[s],h=l.b[s+1],c<f)t[a++]=n.b[i++],t[a++]=n.b[i++];else if(c>=f&&r<=h)f<=r&&c<=h?i+=2:f<=r?(n.b[i]=h+1,s+=2):c<=h?(t[a++]=r,t[a++]=f-1,i+=2):(t[a++]=r,t[a++]=f-1,n.b[i]=h+1,s+=2);else if(h<r)s+=2;else throw T(new ec("Token#subtractRanges(): Internal Error: ["+n.b[i]+","+n.b[i+1]+"] - ["+l.b[s]+","+l.b[s+1]+"]"));for(;i<n.b.length;)t[a++]=n.b[i++],t[a++]=n.b[i++];n.b=F(ye,_e,28,a,15,1),Oc(t,0,n.b,0,a)}}function LGn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(f=Xg(e,!1,!1),P=Qk(f),i&&(P=Pk(P)),A=$(B(z(e,(M5(),w_)))),j=(oe(P.b!=0),u(P.a.a.c,8)),d=u(Zo(P,1),8),P.b>2?(a=new Z,hi(a,new Jl(P,1,P.b)),c=mzn(a,A+n.a),O=new bR(c),Ur(O,e),Fn(t.c,O)):i?O=u(ee(n.b,Fh(e)),272):O=u(ee(n.b,ra(e)),272),h=Fh(e),i&&(h=ra(e)),s=_je(j,h),l=A+n.a,s.a?(l+=y.Math.abs(j.b-d.b),k=new V(d.a,(d.b+j.b)/2)):(l+=y.Math.abs(j.a-d.a),k=new V((d.a+j.a)/2,d.b)),i?Ve(n.d,e,new pZ(O,s,k,l)):Ve(n.c,e,new pZ(O,s,k,l)),Ve(n.b,e,O),m=(!e.n&&(e.n=new q(Sr,e,1,7)),e.n),p=new ne(m);p.e!=p.i.gc();)g=u(ue(p),135),r=fy(n,g,!0,0,0),Fn(t.c,r)}function qAe(n){var e,t,i,r,c,s,f;if(!n.A.dc()){if(n.A.Hc((go(),rE))&&(u(Mr(n.b,(en(),Xn)),127).k=!0,u(Mr(n.b,ae),127).k=!0,e=n.q!=(Ai(),tl)&&n.q!=qc,dG(u(Mr(n.b,Zn),127),e),dG(u(Mr(n.b,Wn),127),e),dG(n.g,e),n.A.Hc(Gd)&&(u(Mr(n.b,Xn),127).j=!0,u(Mr(n.b,ae),127).j=!0,u(Mr(n.b,Zn),127).k=!0,u(Mr(n.b,Wn),127).k=!0,n.g.k=!0)),n.A.Hc(iE))for(n.a.j=!0,n.a.k=!0,n.g.j=!0,n.g.k=!0,f=n.B.Hc((io(),I9)),r=jx(),c=0,s=r.length;c<s;++c)i=r[c],t=u(Mr(n.i,i),314),t&&(eZ(i)?(t.j=!0,t.k=!0):(t.j=!f,t.k=!f));n.A.Hc(Qw)&&n.B.Hc((io(),uE))&&(n.g.j=!0,n.g.j=!0,n.a.j||(n.a.j=!0,n.a.k=!0,n.a.e=!0))}}function UAe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(i=new M(n.e.b);i.a<i.c.c.length;)for(t=u(E(i),30),c=new M(t.a);c.a<c.c.c.length;)if(r=u(E(c),10),p=n.i[r.p],l=p.a.e,h=p.d.e,r.n.b=l,P=h-l-r.o.b,e=HR(r),g=(cw(),(r.q?r.q:(Ln(),Ln(),Wh))._b((cn(),d0))?d=u(v(r,d0),203):d=u(v(Hi(r),z8),203),d),e&&(g==I2||g==P2)&&(r.o.b+=P),e&&(g==RH||g==I2||g==P2)){for(k=new M(r.j);k.a<k.c.c.length;)m=u(E(k),12),(en(),su).Hc(m.j)&&(a=u(ee(n.k,m),125),m.n.b=a.e-l);for(f=new M(r.b);f.a<f.c.c.length;)s=u(E(f),72),j=u(v(r,a0),21),j.Hc((lw(),Ts))?s.n.b+=P:j.Hc(el)&&(s.n.b+=P/2);(g==I2||g==P2)&&uc(r,(en(),ae)).Jc(new ekn(P))}}function GAe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(l=new Z,h=new M(e.a);h.a<h.c.c.length;)for(s=u(E(h),10),g=uc(s,(en(),Zn)).Kc();g.Ob();)for(d=u(g.Pb(),12),r=new M(d.g);r.a<r.c.c.length;)i=u(E(r),18),!(!fr(i)&&i.c.i.c==i.d.i.c||fr(i)||i.d.i.c!=t)&&Fn(l.c,i);for(f=Qo(t.a).Kc();f.Ob();)for(s=u(f.Pb(),10),g=uc(s,(en(),Wn)).Kc();g.Ob();)for(d=u(g.Pb(),12),r=new M(d.e);r.a<r.c.c.length;)if(i=u(E(r),18),!(!fr(i)&&i.c.i.c==i.d.i.c||fr(i)||i.c.i.c!=e)&&l.c.length!=0){for(a=new xi(l,l.c.length),c=(oe(a.b>0),u(a.a.Xb(a.c=--a.b),18));c!=i&&a.b>0;)n.a[c.p]=!0,n.a[i.p]=!0,c=(oe(a.b>0),u(a.a.Xb(a.c=--a.b),18));a.b>0&&bo(a)}}function NGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;if(!n.b)return!1;for(s=null,g=null,h=new r$(null,null),r=1,h.a[1]=n.b,d=h;d.a[r];)l=r,f=g,g=d,d=d.a[r],i=n.a.Ne(e,d.d),r=i<0?0:1,i==0&&(!t.c||mc(d.e,t.d))&&(s=d),!(d&&d.b)&&!O0(d.a[r])&&(O0(d.a[1-r])?g=g.a[l]=jC(d,r):O0(d.a[1-r])||(p=g.a[1-l],p&&(!O0(p.a[1-l])&&!O0(p.a[l])?(g.b=!1,p.b=!0,d.b=!0):(c=f.a[1]==g?1:0,O0(p.a[l])?f.a[c]=fLn(g,l):O0(p.a[1-l])&&(f.a[c]=jC(g,l)),d.b=f.a[c].b=!0,f.a[c].a[0].b=!1,f.a[c].a[1].b=!1))));return s&&(t.b=!0,t.d=s.e,d!=s&&(a=new r$(d.d,d.e),zye(n,h,s,a),g==s&&(g=a)),g.a[g.a[1]==d?1:0]=d.a[d.a[0]?0:1],--n.c),n.b=h.a[1],n.b&&(n.b.b=!1),t.b}function zAe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(r=new M(n.a.a.b);r.a<r.c.c.length;)for(i=u(E(r),60),h=i.c.Kc();h.Ob();)f=u(h.Pb(),60),i.a!=f.a&&(hl(n.a.d)?d=n.a.g.ff(i,f):d=n.a.g.gf(i,f),c=i.b.a+i.d.b+d-f.b.a,c=y.Math.ceil(c),c=y.Math.max(0,c),iQ(i,f)?(s=hb(new za,n.d),l=wi(y.Math.ceil(f.b.a-i.b.a)),e=l-(f.b.a-i.b.a),a=xp(i).a,t=i,a||(a=xp(f).a,e=-e,t=f),a&&(t.b.a-=e,a.n.a-=e),qs(Ns(Ls(Ds(As(new hs,y.Math.max(0,l)),1),s),n.c[i.a.d])),qs(Ns(Ls(Ds(As(new hs,y.Math.max(0,-l)),1),s),n.c[f.a.d]))):(g=1,(L(i.g,154)&&L(f.g,10)||L(f.g,154)&&L(i.g,10))&&(g=2),qs(Ns(Ls(Ds(As(new hs,wi(c)),g),n.c[i.a.d]),n.c[f.a.d]))))}function DGn(n,e,t){var i,r,c,s,f,h,l,a,d,g;if(t)for(i=-1,a=new xi(e,0);a.b<a.d.gc();){if(f=(oe(a.b<a.d.gc()),u(a.d.Xb(a.c=a.b++),10)),d=n.c[f.c.p][f.p].a,d==null){for(s=i+1,c=new xi(e,a.b);c.b<c.d.gc();)if(g=m1e(n,(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),10))).a,g!=null){s=(Jn(g),g);break}d=(i+s)/2,n.c[f.c.p][f.p].a=d,n.c[f.c.p][f.p].d=(Jn(d),d),n.c[f.c.p][f.p].b=1}i=(Jn(d),d)}else{for(r=0,l=new M(e);l.a<l.c.c.length;)f=u(E(l),10),n.c[f.c.p][f.p].a!=null&&(r=y.Math.max(r,$(n.c[f.c.p][f.p].a)));for(r+=2,h=new M(e);h.a<h.c.c.length;)f=u(E(h),10),n.c[f.c.p][f.p].a==null&&(d=to(n.i,24)*Oy*r-1,n.c[f.c.p][f.p].a=d,n.c[f.c.p][f.p].d=d,n.c[f.c.p][f.p].b=1)}}function XAe(n,e,t){var i,r,c,s,f,h,l,a,d;for(!t&&(t=t6e(e.q.getTimezoneOffset())),r=(e.q.getTimezoneOffset()-t.a)*6e4,f=new sV(nr(vc(e.q.getTime()),r)),h=f,f.q.getTimezoneOffset()!=e.q.getTimezoneOffset()&&(r>0?r-=864e5:r+=864e5,h=new sV(nr(vc(e.q.getTime()),r))),a=new fg,l=n.a.length,c=0;c<l;)if(i=Xi(n.a,c),i>=97&&i<=122||i>=65&&i<=90){for(s=c+1;s<l&&Xi(n.a,s)==i;++s);zNe(a,i,s-c,f,h,t),c=s}else if(i==39){if(++c,c<l&&Xi(n.a,c)==39){a.a+="'",++c;continue}for(d=!1;!d;){for(s=c;s<l&&Xi(n.a,s)!=39;)++s;if(s>=l)throw T(new Gn("Missing trailing '"));s+1<l&&Xi(n.a,s+1)==39?++s:d=!0,Be(a,qo(n.a,c,s)),c=s+1}}else a.a+=String.fromCharCode(i),++c;return a.a}function VAe(){Ge(ng,new Xvn),Ge(Ue,new r6n),Ge(Ss,new w6n),Ge(Mf,new y6n),Ge(jU,new j6n),Ge(EA,new E6n),Ge(Kl,new M6n),Ge(O9,new T6n),Ge(fE,new Rvn),Ge(gU,new Kvn),Ge(Aa,new Bvn),Ge(Ps,new Fvn),Ge(Ef,new _vn),Ge(y0,new Hvn),Ge(eg,new qvn),Ge(ku,new Uvn),Ge(Zw,new Gvn),Ge(pc,new zvn),Ge(jr,new Vvn),Ge(fu,new Wvn),Ge(Gt,new Jvn),Ge(C(Ru,1),new Qvn),Ge(p3,new Yvn),Ge(S8,new Zvn),Ge(oI,new n6n),Ge(mbn,new e6n),Ge(si,new t6n),Ge(Ndn,new i6n),Ge(xdn,new c6n),Ge(cbn,new u6n),Ge(MA,new o6n),Ge(sv,new s6n),Ge(Gi,new f6n),Ge(iun,new h6n),Ge(t0,new l6n),Ge(run,new a6n),Ge(ebn,new d6n),Ge(vbn,new b6n),Ge(i0,new g6n),Ge(fn,new p6n),Ge($dn,new m6n),Ge(kbn,new v6n)}function $Gn(n,e){var t,i,r,c,s,f,h,l,a;if(n==null)return gu;if(h=e.a.zc(n,e),h!=null)return"[...]";for(t=new fd(ur,"[","]"),r=n,c=0,s=r.length;c<s;++c)i=r[c],i!=null&&wo(i).i&4?Array.isArray(i)&&(a=bk(i),!(a>=14&&a<=16))?e.a._b(i)?(t.a?Be(t.a,t.b):t.a=new mo(t.d),C6(t.a,"[...]")):(f=cd(i),l=new R6(e),pl(t,$Gn(f,l))):L(i,183)?pl(t,MEe(u(i,183))):L(i,195)?pl(t,fye(u(i,195))):L(i,201)?pl(t,vje(u(i,201))):L(i,2111)?pl(t,hye(u(i,2111))):L(i,53)?pl(t,EEe(u(i,53))):L(i,376)?pl(t,_Ee(u(i,376))):L(i,846)?pl(t,jEe(u(i,846))):L(i,109)&&pl(t,yEe(u(i,109))):pl(t,i==null?gu:Jr(i));return t.a?t.e.length==0?t.a.a:t.a.a+(""+t.e):t.c}function Nm(n,e){var t,i,r,c;c=n.F,e==null?(n.F=null,um(n,null)):(n.F=(Jn(e),e),i=ih(e,wu(60)),i!=-1?(r=(Ri(0,i,e.length),e.substr(0,i)),ih(e,wu(46))==-1&&!Sn(r,i3)&&!Sn(r,m8)&&!Sn(r,GP)&&!Sn(r,v8)&&!Sn(r,k8)&&!Sn(r,y8)&&!Sn(r,j8)&&!Sn(r,E8)&&(r=wJn),t=RM(e,wu(62)),t!=-1&&(r+=""+(zn(t+1,e.length+1),e.substr(t+1))),um(n,r)):(r=e,ih(e,wu(46))==-1&&(i=ih(e,wu(91)),i!=-1&&(r=(Ri(0,i,e.length),e.substr(0,i))),!Sn(r,i3)&&!Sn(r,m8)&&!Sn(r,GP)&&!Sn(r,v8)&&!Sn(r,k8)&&!Sn(r,y8)&&!Sn(r,j8)&&!Sn(r,E8)?(r=wJn,i!=-1&&(r+=""+(zn(i,e.length+1),e.substr(i)))):r=e),um(n,r),r==e&&(n.F=n.D))),n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,5,c,e))}function xGn(n,e){var t,i,r,c,s,f,h,l,a,d;if(h=e.length-1,f=(zn(h,e.length),e.charCodeAt(h)),f==93){if(s=ih(e,wu(91)),s>=0)return r=Q5e(n,(Ri(1,s,e.length),e.substr(1,s-1))),a=(Ri(s+1,h,e.length),e.substr(s+1,h-(s+1))),ENe(n,a,r)}else{if(t=-1,wun==null&&(wun=new RegExp("\\d")),wun.test(String.fromCharCode(f))&&(t=CV(e,wu(46),h-1),t>=0)){i=u(YD(n,M$n(n,(Ri(1,t,e.length),e.substr(1,t-1))),!1),61),l=0;try{l=So((zn(t+1,e.length+1),e.substr(t+1)),Wi,et)}catch(g){throw g=Ot(g),L(g,130)?(c=g,T(new eC(c))):T(g)}if(l<i.gc())return d=i.Xb(l),L(d,76)&&(d=u(d,76).md()),u(d,58)}if(t<0)return u(YD(n,M$n(n,(zn(1,e.length+1),e.substr(1))),!1),58)}return null}function WAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(e.Ug("Label dummy insertions",1),d=new Z,s=$(B(v(n,(cn(),C2)))),l=$(B(v(n,qw))),a=u(v(n,Lo),88),p=new M(n.a);p.a<p.c.c.length;)for(g=u(E(p),10),c=new ie(ce(Qt(g).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),r.c.i!=r.d.i&&yN(r.b,qZn)){for(k=gme(r),m=Lh(r.b.c.length),t=CTe(n,r,k,m),Fn(d.c,t),i=t.o,f=new xi(r.b,0);f.b<f.d.gc();)h=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),72)),x(v(h,Sh))===x(($f(),Rv))&&(a==(ci(),us)||a==Wf?(i.a+=h.o.a+l,i.b=y.Math.max(i.b,h.o.b)):(i.a=y.Math.max(i.a,h.o.a),i.b+=h.o.b+l),Fn(m.c,h),bo(f));a==(ci(),us)||a==Wf?(i.a-=l,i.b+=s+k):i.b+=s-l+k}hi(n.a,d),e.Vg()}function JAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(n.c=n.e,m=un(v(e,(cn(),Gte))),p=m==null||(Jn(m),m),c=u(v(e,(W(),Hc)),21).Hc((pr(),cs)),r=u(v(e,Ft),101),t=!(r==(Ai(),Ud)||r==tl||r==qc),p&&(t||!c)){for(d=new M(e.a);d.a<d.c.c.length;)l=u(E(d),10),l.p=0;for(g=new Z,a=new M(e.a);a.a<a.c.c.length;)if(l=u(E(a),10),i=vUn(n,l,null),i){for(h=new jQ,Ur(h,e),U(h,Dl,u(i.b,21)),VW(h.d,e.d),U(h,Ev,null),f=u(i.a,15).Kc();f.Ob();)s=u(f.Pb(),10),nn(h.a,s),s.a=h;g.Fc(h)}c&&(x(v(e,Rw))===x((dd(),P_))?n.c=n.b:x(v(e,Rw))===x(I_)?n.c=n.d:n.c=n.a)}else g=new Fu(S(C(DZn,1),OXn,36,0,[e]));return x(v(e,Rw))!==x((dd(),Aw))&&(Ln(),g.jd(new hwn)),g}function Dm(n,e,t){var i,r,c,s,f,h,l;if(l=n.c,!e&&(e=Gdn),n.c=e,n.Db&4&&!(n.Db&1)&&(h=new Mi(n,1,2,l,n.c),t?t.nj(h):t=h),l!=e){if(L(n.Cb,292))n.Db>>16==-10?t=u(n.Cb,292).Yk(e,t):n.Db>>16==-15&&(!e&&(e=(An(),Zf)),!l&&(l=(An(),Zf)),n.Cb.Yh()&&(h=new ml(n.Cb,1,13,l,e,f1(no(u(n.Cb,62)),n),!1),t?t.nj(h):t=h));else if(L(n.Cb,90))n.Db>>16==-23&&(L(e,90)||(e=(An(),Os)),L(l,90)||(l=(An(),Os)),n.Cb.Yh()&&(h=new ml(n.Cb,1,10,l,e,f1(Pc(u(n.Cb,29)),n),!1),t?t.nj(h):t=h));else if(L(n.Cb,457))for(f=u(n.Cb,850),s=(!f.b&&(f.b=new DE(new aL)),f.b),c=(i=new sd(new Ua(s.a).a),new $E(i));c.a.b;)r=u(Nb(c.a).ld(),89),t=Dm(r,TS(r,f),t)}return t}function QAe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(s=on(un(z(n,(cn(),Bw)))),g=u(z(n,_w),21),h=!1,l=!1,d=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));d.e!=d.i.gc()&&(!h||!l);){for(c=u(ue(d),123),f=0,r=$h(Eo(S(C(Ao,1),Kn,20,0,[(!c.d&&(c.d=new Dn(Vt,c,8,5)),c.d),(!c.e&&(c.e=new Dn(Vt,c,7,4)),c.e)])));pe(r)&&(i=u(fe(r),74),a=s&&_b(i)&&on(un(z(i,Dd))),t=bGn((!i.b&&(i.b=new Dn(he,i,4,7)),i.b),c)?n==St(Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84))):n==St(Gr(u(N((!i.b&&(i.b=new Dn(he,i,4,7)),i.b),0),84))),!((a||t)&&(++f,f>1))););(f>0||g.Hc((zu(),Rl))&&(!c.n&&(c.n=new q(Sr,c,1,7)),c.n).i>0)&&(h=!0),f>1&&(l=!0)}h&&e.Fc((pr(),cs)),l&&e.Fc((pr(),R8))}function RGn(n){var e,t,i,r,c,s,f,h,l,a,d,g;if(g=u(z(n,(He(),Hd)),21),g.dc())return null;if(f=0,s=0,g.Hc((go(),rE))){for(a=u(z(n,v9),101),i=2,t=2,r=2,c=2,e=St(n)?u(z(St(n),_d),88):u(z(n,_d),88),l=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));l.e!=l.i.gc();)if(h=u(ue(l),123),d=u(z(h,H2),64),d==(en(),sc)&&(d=Ken(h,e),ht(h,H2,d)),a==(Ai(),qc))switch(d.g){case 1:i=y.Math.max(i,h.i+h.g);break;case 2:t=y.Math.max(t,h.j+h.f);break;case 3:r=y.Math.max(r,h.i+h.g);break;case 4:c=y.Math.max(c,h.j+h.f)}else switch(d.g){case 1:i+=h.g+2;break;case 2:t+=h.f+2;break;case 3:r+=h.g+2;break;case 4:c+=h.f+2}f=y.Math.max(i,r),s=y.Math.max(t,c)}return Gb(n,f,s,!0,!0)}function VR(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(O=u(Wr(fC(ut(new Cn(null,new On(e.d,16)),new S7n(t)),new P7n(t)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),d=et,a=Wi,h=new M(e.b.j);h.a<h.c.c.length;)f=u(E(h),12),f.j==t&&(d=y.Math.min(d,f.p),a=y.Math.max(a,f.p));if(d==et)for(s=0;s<O.gc();s++)QJ(u(O.Xb(s),105),t,s);else for(A=F(ye,_e,28,r.length,15,1),X0e(A,A.length),P=O.Kc();P.Ob();){for(j=u(P.Pb(),105),c=u(ee(n.b,j),183),l=0,k=d;k<=a;k++)c[k]&&(l=y.Math.max(l,i[k]));if(j.i){for(p=j.i.c,D=new ni,g=0;g<r.length;g++)r[p][g]&&fi(D,Y(A[g]));for(;sf(D,Y(l));)++l}for(QJ(j,t,l),m=d;m<=a;m++)c[m]&&(i[m]=l+1);j.i&&(A[j.i.c]=l)}}function YAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(r=null,i=new M(e.a);i.a<i.c.c.length;)t=u(E(i),10),HR(t)?c=(f=hb(i7(new za,t),n.f),h=hb(i7(new za,t),n.f),l=new zW(t,!0,f,h),a=t.o.b,d=(cw(),(t.q?t.q:(Ln(),Ln(),Wh))._b((cn(),d0))?g=u(v(t,d0),203):g=u(v(Hi(t),z8),203),g),p=1e4,d==P2&&(p=1),m=qs(Ns(Ls(As(Ds(new hs,p),wi(y.Math.ceil(a))),f),h)),d==I2&&fi(n.d,m),mUn(n,Qo(uc(t,(en(),Wn))),l),mUn(n,uc(t,Zn),l),l):c=(k=hb(i7(new za,t),n.f),qt(ut(new Cn(null,new On(t.j,16)),new c3n),new UMn(n,k)),new zW(t,!1,k,k)),n.i[t.p]=c,r&&(s=r.c.d.a+jg(n.n,r.c,t)+t.d.d,r.b||(s+=r.c.o.b),qs(Ns(Ls(Ds(As(new hs,wi(y.Math.ceil(s))),0),r.d),c.a))),r=c}function ZAe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p;for(c=new tHn(e),d=PSe(n,e,c),p=y.Math.max($(B(v(e,(cn(),m1)))),1),a=new M(d.a);a.a<a.c.c.length;)l=u(E(a),42),h=tBn(u(l.a,8),u(l.b,8),p),Wt=!0,Wt=Wt&db(t,new V(h.c,h.d)),Wt=Wt&db(t,ab(new V(h.c,h.d),h.b,0)),Wt=Wt&db(t,ab(new V(h.c,h.d),0,h.a)),Wt&db(t,ab(new V(h.c,h.d),h.b,h.a));switch(g=c.d,f=tBn(u(d.b.a,8),u(d.b.b,8),p),g==(en(),Wn)||g==Zn?(i.c[g.g]=y.Math.min(i.c[g.g],f.d),i.b[g.g]=y.Math.max(i.b[g.g],f.d+f.a)):(i.c[g.g]=y.Math.min(i.c[g.g],f.c),i.b[g.g]=y.Math.max(i.b[g.g],f.c+f.b)),r=li,s=c.c.i.d,g.g){case 4:r=s.c;break;case 2:r=s.b;break;case 1:r=s.a;break;case 3:r=s.d}return i.a[g.g]=y.Math.max(i.a[g.g],r),c}function nLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;f=u(ee(e.c,n),468),O=e.a.c,h=e.a.c+e.a.b,kn=f.f,Rn=f.a,s=kn<Rn,k=new V(O,kn),A=new V(h,Rn),r=(O+h)/2,j=new V(r,kn),D=new V(r,Rn),c=YTe(n,kn,Rn),X=Of(e.B),tn=new V(r,c),yn=Of(e.D),t=u6e(S(C(Ei,1),J,8,0,[X,tn,yn])),p=!1,P=e.B.i,P&&P.c&&f.d&&(l=s&&P.p<P.c.a.c.length-1||!s&&P.p>0,l?l&&(g=P.p,s?++g:--g,d=u(sn(P.c.a,g),10),i=oRn(d),p=!(mR(i,X,t[0])||AIn(i,X,t[0]))):p=!0),m=!1,_=e.D.i,_&&_.c&&f.e&&(a=s&&_.p>0||!s&&_.p<_.c.a.c.length-1,a?(g=_.p,s?--g:++g,d=u(sn(_.c.a,g),10),i=oRn(d),m=!(mR(i,t[0],yn)||AIn(i,t[0],yn))):m=!0),p&&m&&Re(n.a,tn),p||r5(n.a,S(C(Ei,1),J,8,0,[k,j])),m||r5(n.a,S(C(Ei,1),J,8,0,[D,A]))}function eLe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(p=e.c.length,g=0,d=new M(n.b);d.a<d.c.c.length;)if(a=u(E(d),30),P=a.a,P.c.length!=0){for(j=new M(P),l=0,O=null,r=u(E(j),10),c=null;r;){if(c=u(sn(e,r.p),261),c.c>=0){for(h=null,f=new xi(a.a,l+1);f.b<f.d.gc()&&(s=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),10)),h=u(sn(e,s.p),261),!(h.d==c.d&&h.c<c.c));)h=null;h&&(O&&(Go(i,r.p,Y(u(sn(i,r.p),17).a-1)),u(sn(t,O.p),15).Mc(c)),c=vye(c,r,p++),Fn(e.c,c),nn(t,new Z),O?(u(sn(t,O.p),15).Fc(c),nn(i,Y(1))):nn(i,Y(0)))}m=null,j.a<j.c.c.length&&(m=u(E(j),10),k=u(sn(e,m.p),261),u(sn(t,r.p),15).Fc(k),Go(i,m.p,Y(u(sn(i,m.p),17).a+1))),c.d=g,c.c=l++,O=r,r=m}++g}}function tLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;if(c=u(v(n,(W(),st)),74),!!c){for(i=n.a,r=new rr(t),tt(r,Ske(n)),Q4(n.d.i,n.c.i)?(g=n.c,d=cc(S(C(Ei,1),J,8,0,[g.n,g.a])),mi(d,t)):d=Of(n.c),xt(i,d,i.a,i.a.a),p=Of(n.d),v(n,gH)!=null&&tt(p,u(v(n,gH),8)),xt(i,p,i.c.b,i.c),nw(i,r),s=Xg(c,!0,!0),mC(s,u(N((!c.b&&(c.b=new Dn(he,c,4,7)),c.b),0),84)),vC(s,u(N((!c.c&&(c.c=new Dn(he,c,5,8)),c.c),0),84)),dy(i,s),a=new M(n.b);a.a<a.c.c.length;)l=u(E(a),72),f=u(v(l,st),135),Ob(f,l.o.a),Ib(f,l.o.b),Bo(f,l.n.a+r.a,l.n.b+r.b),ht(f,(Hp(),$_),un(v(l,$_)));h=u(v(n,(cn(),Rr)),75),h?(nw(h,r),ht(c,Rr,h)):ht(c,Rr,null),e==(El(),R3)?ht(c,$l,R3):ht(c,$l,null)}}function KGn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn;if(t.c.length!=0){for(m=new Z,p=new M(t);p.a<p.c.c.length;)g=u(E(p),27),nn(m,new V(g.i,g.j));for(i.dh(e,"Before removing overlaps");onn(n,t);)ES(n,t,!1);if(i.dh(e,"After removing overlaps"),f=0,h=0,r=null,t.c.length!=0&&(r=(Nn(0,t.c.length),u(t.c[0],27)),f=r.i-(Nn(0,m.c.length),u(m.c[0],8)).a,h=r.j-(Nn(0,m.c.length),u(m.c[0],8)).b),s=y.Math.sqrt(f*f+h*h),d=V6e(t),c=1,d.a.gc()!=0){for(a=d.a.ec().Kc();a.Ob();)l=u(a.Pb(),27),k=n.f,j=k.i+k.g/2,P=k.j+k.f/2,O=l.i+l.g/2,A=l.j+l.f/2,D=O-j,_=A-P,X=y.Math.sqrt(D*D+_*_),tn=D/X,yn=_/X,eu(l,l.i+tn*s),tu(l,l.j+yn*s);i.dh(e,"Child movement "+c),++c}n.a&&n.a.Gg(new _u(d)),KGn(n,e,new _u(d),i)}}function WR(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;return h=n,a=mi(new V(e.a,e.b),n),l=t,d=mi(new V(i.a,i.b),t),g=h.a,j=h.b,m=l.a,O=l.b,p=a.a,P=a.b,k=d.a,A=d.b,r=k*P-p*A,Cf(),Fs(jh),y.Math.abs(0-r)<=jh||r==0||isNaN(0)&&isNaN(r)?!1:(s=1/r*((g-m)*P-(j-O)*p),f=1/r*-(-(g-m)*A+(j-O)*k),c=(Fs(jh),(y.Math.abs(0-s)<=jh||s==0||isNaN(0)&&isNaN(s)?0:0<s?-1:0>s?1:sb(isNaN(0),isNaN(s)))<0&&(Fs(jh),(y.Math.abs(s-1)<=jh||s==1||isNaN(s)&&isNaN(1)?0:s<1?-1:s>1?1:sb(isNaN(s),isNaN(1)))<0)&&(Fs(jh),(y.Math.abs(0-f)<=jh||f==0||isNaN(0)&&isNaN(f)?0:0<f?-1:0>f?1:sb(isNaN(0),isNaN(f)))<0)&&(Fs(jh),(y.Math.abs(f-1)<=jh||f==1||isNaN(f)&&isNaN(1)?0:f<1?-1:f>1?1:sb(isNaN(f),isNaN(1)))<0)),c)}function iLe(n){var e,t,i,r;if(t=n.D!=null?n.D:n.B,e=ih(t,wu(91)),e!=-1){i=(Ri(0,e,t.length),t.substr(0,e)),r=new Hl;do r.a+="[";while((e=w4(t,91,++e))!=-1);Sn(i,i3)?r.a+="Z":Sn(i,m8)?r.a+="B":Sn(i,GP)?r.a+="C":Sn(i,v8)?r.a+="D":Sn(i,k8)?r.a+="F":Sn(i,y8)?r.a+="I":Sn(i,j8)?r.a+="J":Sn(i,E8)?r.a+="S":(r.a+="L",r.a+=""+i,r.a+=";");try{return null}catch(c){if(c=Ot(c),!L(c,63))throw T(c)}}else if(ih(t,wu(46))==-1){if(Sn(t,i3))return so;if(Sn(t,m8))return Ru;if(Sn(t,GP))return fs;if(Sn(t,v8))return Ii;if(Sn(t,k8))return cg;if(Sn(t,y8))return ye;if(Sn(t,j8))return Ra;if(Sn(t,E8))return V2}return null}function rLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn;for(n.e=e,f=rMe(e),X=new Z,i=new M(f);i.a<i.c.c.length;){for(t=u(E(i),15),tn=new Z,Fn(X.c,tn),h=new ni,m=t.Kc();m.Ob();){for(p=u(m.Pb(),27),c=fy(n,p,!0,0,0),Fn(tn.c,c),k=p.i,j=p.j,g=(!p.n&&(p.n=new q(Sr,p,1,7)),p.n),d=new ne(g);d.e!=d.i.gc();)l=u(ue(d),135),r=fy(n,l,!1,k,j),Fn(tn.c,r);for(_=(!p.c&&(p.c=new q(Qu,p,9,9)),p.c),O=new ne(_);O.e!=O.i.gc();)for(P=u(ue(O),123),s=fy(n,P,!1,k,j),Fn(tn.c,s),A=P.i+k,D=P.j+j,g=(!P.n&&(P.n=new q(Sr,P,1,7)),P.n),a=new ne(g);a.e!=a.i.gc();)l=u(ue(a),135),r=fy(n,l,!1,A,D),Fn(tn.c,r);Ki(h,PT(Eo(S(C(Ao,1),Kn,20,0,[Sl(p),cy(p)]))))}GTe(n,h,tn)}return n.f=new Vjn(X),Ur(n.f,e),n.f}function cLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;for(d=new $W(new PG(n));d.c!=d.d.a.d;)for(a=WDn(d),f=u(a.d,58),e=u(a.e,58),s=f.Dh(),k=0,D=(s.i==null&&bh(s),s.i).length;k<D;++k)if(l=(c=(s.i==null&&bh(s),s.i),k>=0&&k<c.length?c[k]:null),l.rk()&&!l.sk()){if(L(l,102))h=u(l,19),!(h.Bb&kc)&&(X=br(h),!(X&&X.Bb&kc))&&qIe(n,h,f,e);else if(dr(),u(l,69).xk()&&(t=(_=l,u(_?u(e,54).gi(_):null,160)),t))for(p=u(f.Mh(l),160),i=t.gc(),j=0,m=p.gc();j<m;++j)if(g=p.Tl(j),L(g,102)){if(A=p.Ul(j),r=Df(n,A),r==null&&A!=null){if(O=u(g,19),!n.b||O.Bb&kc||br(O))continue;r=A}if(!t.Ol(g,r)){for(P=0;P<i;++P)if(t.Tl(P)==g&&x(t.Ul(P))===x(r)){t.Ti(t.gc()-1,P),--i;break}}}else t.Ol(p.Tl(j),p.Ul(j))}}function uLe(n,e,t){var i;if(t.Ug("StretchWidth layering",1),e.a.c.length==0){t.Vg();return}for(n.c=e,n.t=0,n.u=0,n.i=Pt,n.g=li,n.d=$(B(v(e,(cn(),Ws)))),C9e(n),NMe(n),LMe(n),Ike(n),O8e(n),n.i=y.Math.max(1,n.i),n.g=y.Math.max(1,n.g),n.d=n.d/n.i,n.f=n.g/n.i,n.s=_9e(n),i=new Nc(n.c),nn(n.c.b,i),n.r=Cb(n.p),n.n=LT(n.k,n.k.length);n.r.c.length!=0;)n.o=W6e(n),!n.o||hRn(n)&&n.b.a.gc()!=0?(tye(n,i),i=new Nc(n.c),nn(n.c.b,i),Ki(n.a,n.b),n.b.a.$b(),n.t=n.u,n.u=0):hRn(n)?(n.c.b.c.length=0,i=new Nc(n.c),nn(n.c.b,i),n.t=0,n.u=0,n.b.a.$b(),n.a.a.$b(),++n.f,n.r=Cb(n.p),n.n=LT(n.k,n.k.length)):($i(n.o,i),du(n.r,n.o),fi(n.b,n.o),n.t=n.t-n.k[n.o.p]*n.d+n.j[n.o.p],n.u+=n.e[n.o.p]*n.d);e.a.c.length=0,Yk(e.b),t.Vg()}function oLe(n){var e,t,i,r,c,s,f,h,l,a,d;for(n.j=F(ye,_e,28,n.g,15,1),n.o=new Z,qt(rc(new Cn(null,new On(n.e.b,16)),new a3n),new tkn(n)),n.a=F(so,Xh,28,n.b,16,1),Nk(new Cn(null,new On(n.e.b,16)),new rkn(n)),i=(d=new Z,qt(ut(rc(new Cn(null,new On(n.e.b,16)),new b3n),new ikn(n)),new GMn(n,d)),d),h=new M(i);h.a<h.c.c.length;)if(f=u(E(h),515),!(f.c.length<=1)){if(f.c.length==2){GEe(f),HR((Nn(0,f.c.length),u(f.c[0],18)).d.i)||nn(n.o,f);continue}if(!(oye(f)||Jje(f,new d3n)))for(l=new M(f),r=null;l.a<l.c.c.length;)e=u(E(l),18),t=n.c[e.p],!r||l.a>=l.c.c.length?a=MJ((Vn(),zt),Ti):a=MJ((Vn(),Ti),Ti),a*=2,c=t.a.g,t.a.g=y.Math.max(c,c+(a-c)),s=t.b.g,t.b.g=y.Math.max(s,s+(a-s)),r=e}}function sLe(n){var e,t,i,r;for(qt(ut(new Cn(null,new On(n.a.b,16)),new X2n),new V2n),qke(n),qt(ut(new Cn(null,new On(n.a.b,16)),new W2n),new J2n),n.c==(El(),R3)&&(qt(ut(rc(new Cn(null,new On(new qa(n.f),1)),new Q2n),new Y2n),new k7n(n)),qt(ut(_r(rc(rc(new Cn(null,new On(n.d.b,16)),new Z2n),new npn),new epn),new tpn),new j7n(n))),r=new V(Pt,Pt),e=new V(li,li),i=new M(n.a.b);i.a<i.c.c.length;)t=u(E(i),60),r.a=y.Math.min(r.a,t.d.c),r.b=y.Math.min(r.b,t.d.d),e.a=y.Math.max(e.a,t.d.c+t.d.b),e.b=y.Math.max(e.b,t.d.d+t.d.a);tt(ff(n.d.c),HM(new V(r.a,r.b))),tt(ff(n.d.f),mi(new V(e.a,e.b),r)),tCe(n,r,e),Hu(n.f),Hu(n.b),Hu(n.g),Hu(n.e),n.a.a.c.length=0,n.a.b.c.length=0,n.a=null,n.d=null}function US(n,e){var t;if(n.e)throw T(new Ar((ll(c_),RK+c_.k+KK)));if(!dle(n.a,e))throw T(new ec(tXn+e+iXn));if(e==n.d)return n;switch(t=n.d,n.d=e,t.g){case 0:switch(e.g){case 2:Bb(n);break;case 1:Z1(n),Bb(n);break;case 4:Hg(n),Bb(n);break;case 3:Hg(n),Z1(n),Bb(n)}break;case 2:switch(e.g){case 1:Z1(n),MR(n);break;case 4:Hg(n),Bb(n);break;case 3:Hg(n),Z1(n),Bb(n)}break;case 1:switch(e.g){case 2:Z1(n),MR(n);break;case 4:Z1(n),Hg(n),Bb(n);break;case 3:Z1(n),Hg(n),Z1(n),Bb(n)}break;case 4:switch(e.g){case 2:Hg(n),Bb(n);break;case 1:Hg(n),Z1(n),Bb(n);break;case 3:Z1(n),MR(n)}break;case 3:switch(e.g){case 2:Z1(n),Hg(n),Bb(n);break;case 1:Z1(n),Hg(n),Z1(n),Bb(n);break;case 4:Z1(n),MR(n)}}return n}function Yg(n,e){var t;if(n.d)throw T(new Ar((ll(S_),RK+S_.k+KK)));if(!ale(n.a,e))throw T(new ec(tXn+e+iXn));if(e==n.c)return n;switch(t=n.c,n.c=e,t.g){case 0:switch(e.g){case 2:ld(n);break;case 1:na(n),ld(n);break;case 4:qg(n),ld(n);break;case 3:qg(n),na(n),ld(n)}break;case 2:switch(e.g){case 1:na(n),TR(n);break;case 4:qg(n),ld(n);break;case 3:qg(n),na(n),ld(n)}break;case 1:switch(e.g){case 2:na(n),TR(n);break;case 4:na(n),qg(n),ld(n);break;case 3:na(n),qg(n),na(n),ld(n)}break;case 4:switch(e.g){case 2:qg(n),ld(n);break;case 1:qg(n),na(n),ld(n);break;case 3:na(n),TR(n)}break;case 3:switch(e.g){case 2:na(n),qg(n),ld(n);break;case 1:na(n),qg(n),na(n),ld(n);break;case 4:na(n),TR(n)}}return n}function GS(n,e){var t,i,r,c,s,f,h,l;if(L(n.Eh(),167)?(GS(u(n.Eh(),167),e),e.a+=" > "):e.a+="Root ",t=n.Dh().zb,Sn(t.substr(0,3),"Elk")?Be(e,(zn(3,t.length+1),t.substr(3))):e.a+=""+t,r=n.jh(),r){Be((e.a+=" ",e),r);return}if(L(n,366)&&(l=u(n,135).a,l)){Be((e.a+=" ",e),l);return}for(s=new ne(n.kh());s.e!=s.i.gc();)if(c=u(ue(s),135),l=c.a,l){Be((e.a+=" ",e),l);return}if(L(n,326)&&(i=u(n,74),!i.b&&(i.b=new Dn(he,i,4,7)),i.b.i!=0&&(!i.c&&(i.c=new Dn(he,i,5,8)),i.c.i!=0))){for(e.a+=" (",f=new kp((!i.b&&(i.b=new Dn(he,i,4,7)),i.b));f.e!=f.i.gc();)f.e>0&&(e.a+=ur),GS(u(ue(f),167),e);for(e.a+=iB,h=new kp((!i.c&&(i.c=new Dn(he,i,5,8)),i.c));h.e!=h.i.gc();)h.e>0&&(e.a+=ur),GS(u(ue(h),167),e);e.a+=")"}}function fLe(n,e,t){var i,r,c,s,f,h,l,a;for(h=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));h.e!=h.i.gc();)for(f=u(ue(h),27),r=new ie(ce(Sl(f).a.Kc(),new En));pe(r);){if(i=u(fe(r),74),!i.b&&(i.b=new Dn(he,i,4,7)),!(i.b.i<=1&&(!i.c&&(i.c=new Dn(he,i,5,8)),i.c.i<=1)))throw T(new hp("Graph must not contain hyperedges."));if(!D5(i)&&f!=Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84)))for(l=new BSn,Ur(l,i),U(l,(Q1(),y3),i),Jse(l,u(Fr(wr(t.f,f)),153)),Zse(l,u(ee(t,Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84))),153)),nn(e.c,l),s=new ne((!i.n&&(i.n=new q(Sr,i,1,7)),i.n));s.e!=s.i.gc();)c=u(ue(s),135),a=new _Ln(l,c.a),Ur(a,c),U(a,y3,c),a.e.a=y.Math.max(c.g,1),a.e.b=y.Math.max(c.f,1),qen(a),nn(e.d,a)}}function hLe(n,e,t){var i,r,c,s,f,h,l,a,d,g;switch(t.Ug("Node promotion heuristic",1),n.i=e,n.r=u(v(e,(cn(),ja)),243),n.r!=(ps(),p0)&&n.r!=Uw?RLe(n):fSe(n),a=u(v(n.i,chn),17).a,c=new Kgn,n.r.g){case 2:case 1:Lm(n,c);break;case 3:for(n.r=PO,Lm(n,c),h=0,f=new M(n.b);f.a<f.c.c.length;)s=u(E(f),17),h=y.Math.max(h,s.a);h>n.k&&(n.r=Pj,Lm(n,c));break;case 4:for(n.r=PO,Lm(n,c),l=0,r=new M(n.c);r.a<r.c.c.length;)i=B(E(r)),l=y.Math.max(l,(Jn(i),i));l>n.n&&(n.r=Ij,Lm(n,c));break;case 6:g=wi(y.Math.ceil(n.g.length*a/100)),Lm(n,new s7n(g));break;case 5:d=wi(y.Math.ceil(n.e*a/100)),Lm(n,new f7n(d));break;case 8:yzn(n,!0);break;case 9:yzn(n,!1);break;default:Lm(n,c)}n.r!=p0&&n.r!=Uw?NCe(n,e):ZSe(n,e),t.Vg()}function lLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(d=n.b,a=new xi(d,0),B0(a,new Nc(n)),O=!1,s=1;a.b<a.d.gc();){for(l=(oe(a.b<a.d.gc()),u(a.d.Xb(a.c=a.b++),30)),k=(Nn(s,d.c.length),u(d.c[s],30)),j=Cb(l.a),P=j.c.length,m=new M(j);m.a<m.c.c.length;)g=u(E(m),10),$i(g,k);if(O){for(p=Qo(j).Kc();p.Ob();)for(g=u(p.Pb(),10),c=new M(Cb(ji(g)));c.a<c.c.c.length;)r=u(E(c),18),Ub(r,!0),U(n,(W(),kj),(_n(),!0)),i=gGn(n,r,P),t=u(v(g,o0),313),A=u(sn(i,i.c.length-1),18),t.k=A.c.i,t.n=A,t.b=r.d.i,t.c=r;O=!1}else j.c.length!=0&&(e=(Nn(0,j.c.length),u(j.c[0],10)),e.k==(Vn(),Gf)&&(O=!0,s=-1));++s}for(f=new xi(n.b,0);f.b<f.d.gc();)h=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),30)),h.a.c.length==0&&bo(f)}function aLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(d=new ttn(n),a2e(d,!(e==(ci(),us)||e==Wf)),a=d.a,g=new up,r=(wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])),s=0,h=r.length;s<h;++s)t=r[s],l=jN(a,bc,t),l&&(g.d=y.Math.max(g.d,l.jf()));for(i=S(C(Pw,1),G,237,0,[bc,Wc,wc]),c=0,f=i.length;c<f;++c)t=i[c],l=jN(a,wc,t),l&&(g.a=y.Math.max(g.a,l.jf()));for(k=S(C(Pw,1),G,237,0,[bc,Wc,wc]),P=0,A=k.length;P<A;++P)p=k[P],l=jN(a,p,bc),l&&(g.b=y.Math.max(g.b,l.kf()));for(m=S(C(Pw,1),G,237,0,[bc,Wc,wc]),j=0,O=m.length;j<O;++j)p=m[j],l=jN(a,p,wc),l&&(g.c=y.Math.max(g.c,l.kf()));return g.d>0&&(g.d+=a.n.d,g.d+=a.d),g.a>0&&(g.a+=a.n.a,g.a+=a.d),g.b>0&&(g.b+=a.n.b,g.b+=a.d),g.c>0&&(g.c+=a.n.c,g.c+=a.d),g}function BGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;for(g=t.d,d=t.c,c=new V(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),s=c.b,l=new M(n.a);l.a<l.c.c.length;)if(f=u(E(l),10),f.k==(Vn(),Zt)){switch(i=u(v(f,(W(),gc)),64),r=u(v(f,tfn),8),a=f.n,i.g){case 2:a.a=t.f.a+g.c-d.a;break;case 4:a.a=-d.a-g.b}switch(m=0,i.g){case 2:case 4:e==(Ai(),tl)?(p=$(B(v(f,f0))),a.b=c.b*p-u(v(f,(cn(),b0)),8).b,m=a.b+r.b,OC(f,!1,!0)):e==qc&&(a.b=$(B(v(f,f0)))-u(v(f,(cn(),b0)),8).b,m=a.b+r.b,OC(f,!1,!0))}s=y.Math.max(s,m)}for(t.f.b+=s-c.b,h=new M(n.a);h.a<h.c.c.length;)if(f=u(E(h),10),f.k==(Vn(),Zt))switch(i=u(v(f,(W(),gc)),64),a=f.n,i.g){case 1:a.b=-d.b-g.d;break;case 3:a.b=t.f.b+g.a-d.b}}function dLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(a=u(u(ot(n.r,e),21),87),a.gc()<=2||e==(en(),Zn)||e==(en(),Wn)){czn(n,e);return}for(k=n.u.Hc((zu(),K3)),t=e==(en(),Xn)?(Db(),rj):(Db(),ij),P=e==Xn?(bu(),Xs):(bu(),kf),i=vz($V(t),n.s),j=e==Xn?Pt:li,l=a.Kc();l.Ob();)f=u(l.Pb(),117),!(!f.c||f.c.d.c.length<=0)&&(m=f.b.Mf(),p=f.e,d=f.c,g=d.i,g.b=(c=d.n,d.e.a+c.b+c.c),g.a=(s=d.n,d.e.b+s.d+s.a),k?(g.c=p.a-(r=d.n,d.e.a+r.b+r.c)-n.s,k=!1):g.c=p.a+m.a+n.s,G7(P,$tn),d.f=P,df(d,(Uu(),zs)),nn(i.d,new ZN(g,CY(i,g))),j=e==Xn?y.Math.min(j,p.b):y.Math.max(j,p.b+f.b.Mf().b));for(j+=e==Xn?-n.t:n.t,GY((i.e=j,i)),h=a.Kc();h.Ob();)f=u(h.Pb(),117),!(!f.c||f.c.d.c.length<=0)&&(g=f.c.i,g.c-=f.e.a,g.d-=f.e.b)}function FGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(r=new Z,k=new M(e.a);k.a<k.c.c.length;)if(m=u(E(k),10),p=m.e,p&&(i=FGn(n,p,m),hi(r,i),SAe(n,p,m),u(v(p,(W(),Hc)),21).Hc((pr(),cs))))for(O=u(v(m,(cn(),Ft)),101),g=u(v(m,_w),181).Hc((zu(),Rl)),P=new M(m.j);P.a<P.c.c.length;)for(j=u(E(P),12),c=u(ee(n.b,j),10),c||(c=my(j,O,j.j,-(j.e.c.length-j.g.c.length),null,new Ni,j.o,u(v(p,Lo),88),p),U(c,st,j),Ve(n.b,j,c),nn(p.a,c)),s=u(sn(c.j,0),12),a=new M(j.f);a.a<a.c.c.length;)l=u(E(a),72),f=new Yjn,f.o.a=l.o.a,f.o.b=l.o.b,nn(s.f,f),g||(A=j.j,d=0,F6(u(v(m,_w),21))&&(d=Lnn(l.n,l.o,j.o,0,A)),O==(Ai(),Qf)||(en(),su).Hc(A)?f.o.a=d:f.o.b=d);return h=new Z,CAe(n,e,t,r,h),t&&GOe(n,e,t,h),h}function etn(n,e,t){var i,r,c,s,f,h,l,a,d;if(!n.c[e.c.p][e.p].e){for(n.c[e.c.p][e.p].e=!0,n.c[e.c.p][e.p].b=0,n.c[e.c.p][e.p].d=0,n.c[e.c.p][e.p].a=null,a=new M(e.j);a.a<a.c.c.length;)for(l=u(E(a),12),d=t?new e4(l):new ip(l),h=d.Kc();h.Ob();)f=u(h.Pb(),12),s=f.i,s.c==e.c?s!=e&&(etn(n,s,t),n.c[e.c.p][e.p].b+=n.c[s.c.p][s.p].b,n.c[e.c.p][e.p].d+=n.c[s.c.p][s.p].d):(n.c[e.c.p][e.p].d+=n.g[f.p],++n.c[e.c.p][e.p].b);if(c=u(v(e,(W(),Ysn)),15),c)for(r=c.Kc();r.Ob();)i=u(r.Pb(),10),e.c==i.c&&(etn(n,i,t),n.c[e.c.p][e.p].b+=n.c[i.c.p][i.p].b,n.c[e.c.p][e.p].d+=n.c[i.c.p][i.p].d);n.c[e.c.p][e.p].b>0&&(n.c[e.c.p][e.p].d+=to(n.i,24)*Oy*.07000000029802322-.03500000014901161,n.c[e.c.p][e.p].a=n.c[e.c.p][e.p].d/n.c[e.c.p][e.p].b)}}function bLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(m=new M(n);m.a<m.c.c.length;){for(p=u(E(m),10),zl(p.n),zl(p.o),qJ(p.f),Zqn(p),NSe(p),j=new M(p.j);j.a<j.c.c.length;){for(k=u(E(j),12),zl(k.n),zl(k.a),zl(k.o),gi(k,LBn(k.j)),c=u(v(k,(cn(),v1)),17),c&&U(k,v1,Y(-c.a)),r=new M(k.g);r.a<r.c.c.length;){for(i=u(E(r),18),t=ge(i.a,0);t.b!=t.d.c;)e=u(be(t),8),zl(e);if(h=u(v(i,Rr),75),h)for(f=ge(h,0);f.b!=f.d.c;)s=u(be(f),8),zl(s);for(d=new M(i.b);d.a<d.c.c.length;)l=u(E(d),72),zl(l.n),zl(l.o)}for(g=new M(k.f);g.a<g.c.c.length;)l=u(E(g),72),zl(l.n),zl(l.o)}for(p.k==(Vn(),Zt)&&(U(p,(W(),gc),LBn(u(v(p,gc),64))),HCe(p)),a=new M(p.b);a.a<a.c.c.length;)l=u(E(a),72),Zqn(l),zl(l.o),zl(l.n)}}function wLe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;Rn=ee(n.e,i),Rn==null&&(Rn=new sp,p=u(Rn,190),O=e+"_s",A=O+r,g=new q0(A),bf(p,Eh,g)),kn=u(Rn,190),Op(t,kn),te=new sp,nd(te,"x",i.j),nd(te,"y",i.k),bf(kn,mWn,te),tn=new sp,nd(tn,"x",i.b),nd(tn,"y",i.c),bf(kn,"endPoint",tn),d=Z9((!i.a&&(i.a=new ti(xo,i,5)),i.a)),m=!d,m&&(X=new _a,c=new eyn(X),qi((!i.a&&(i.a=new ti(xo,i,5)),i.a),c),bf(kn,BP,X)),h=Px(i),D=!!h,D&&inn(n.a,kn,Icn,oR(n,Px(i))),P=Ix(i),_=!!P,_&&inn(n.a,kn,Pcn,oR(n,Ix(i))),l=(!i.e&&(i.e=new Dn(Tt,i,10,9)),i.e).i==0,k=!l,k&&(yn=new _a,s=new STn(n,yn),qi((!i.e&&(i.e=new Dn(Tt,i,10,9)),i.e),s),bf(kn,Acn,yn)),a=(!i.g&&(i.g=new Dn(Tt,i,9,10)),i.g).i==0,j=!a,j&&(Bn=new _a,f=new PTn(n,Bn),qi((!i.g&&(i.g=new Dn(Tt,i,9,10)),i.g),f),bf(kn,Ocn,Bn))}function gLe(n){K0();var e,t,i,r,c,s,f;for(i=n.f.n,s=AW(n.r).a.nc();s.Ob();){if(c=u(s.Pb(),117),r=0,c.b.pf((He(),oo))&&(r=$(B(c.b.of(oo))),r<0))switch(c.b.ag().g){case 1:i.d=y.Math.max(i.d,-r);break;case 3:i.a=y.Math.max(i.a,-r);break;case 2:i.c=y.Math.max(i.c,-r);break;case 4:i.b=y.Math.max(i.b,-r)}if(F6(n.u))switch(e=yve(c.b,r),f=!u(n.e.of(Ca),181).Hc((io(),cE)),t=!1,c.b.ag().g){case 1:t=e>i.d,i.d=y.Math.max(i.d,e),f&&t&&(i.d=y.Math.max(i.d,i.a),i.a=i.d+r);break;case 3:t=e>i.a,i.a=y.Math.max(i.a,e),f&&t&&(i.a=y.Math.max(i.a,i.d),i.d=i.a+r);break;case 2:t=e>i.c,i.c=y.Math.max(i.c,e),f&&t&&(i.c=y.Math.max(i.b,i.c),i.b=i.c+r);break;case 4:t=e>i.b,i.b=y.Math.max(i.b,e),f&&t&&(i.b=y.Math.max(i.b,i.c),i.c=i.b+r)}}}function _Gn(n,e){var t,i,r,c,s,f,h,l,a;return l="",e.length==0?n.ne(vtn,uK,-1,-1):(a=fw(e),Sn(a.substr(0,3),"at ")&&(a=(zn(3,a.length+1),a.substr(3))),a=a.replace(/\[.*?\]/g,""),s=a.indexOf("("),s==-1?(s=a.indexOf("@"),s==-1?(l=a,a=""):(l=fw((zn(s+1,a.length+1),a.substr(s+1))),a=fw((Ri(0,s,a.length),a.substr(0,s))))):(t=a.indexOf(")",s),l=(Ri(s+1,t,a.length),a.substr(s+1,t-(s+1))),a=fw((Ri(0,s,a.length),a.substr(0,s)))),s=ih(a,wu(46)),s!=-1&&(a=(zn(s+1,a.length+1),a.substr(s+1))),(a.length==0||Sn(a,"Anonymous function"))&&(a=uK),f=RM(l,wu(58)),r=CV(l,wu(58),f-1),h=-1,i=-1,c=vtn,f!=-1&&r!=-1&&(c=(Ri(0,r,l.length),l.substr(0,r)),h=rSn((Ri(r+1,f,l.length),l.substr(r+1,f-(r+1)))),i=rSn((zn(f+1,l.length+1),l.substr(f+1)))),n.ne(c,a,h,i))}function pLe(n){var e,t,i,r,c,s,f,h,l,a,d;for(l=new M(n);l.a<l.c.c.length;){switch(h=u(E(l),10),s=u(v(h,(cn(),ou)),171),c=null,s.g){case 1:case 2:c=(hd(),m2);break;case 3:case 4:c=(hd(),mv)}if(c)U(h,(W(),rO),(hd(),m2)),c==mv?OS(h,s,(gr(),Vu)):c==m2&&OS(h,s,(gr(),Jc));else if(mg(u(v(h,Ft),101))&&h.j.c.length!=0){for(e=!0,d=new M(h.j);d.a<d.c.c.length;){if(a=u(E(d),12),!(a.j==(en(),Zn)&&a.e.c.length-a.g.c.length>0||a.j==Wn&&a.e.c.length-a.g.c.length<0)){e=!1;break}for(r=new M(a.g);r.a<r.c.c.length;)if(t=u(E(r),18),f=u(v(t.d.i,ou),171),f==(Yo(),H8)||f==xw){e=!1;break}for(i=new M(a.e);i.a<i.c.c.length;)if(t=u(E(i),18),f=u(v(t.c.i,ou),171),f==(Yo(),_8)||f==ya){e=!1;break}}e&&OS(h,s,(gr(),Q8))}}}function mLe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;for(X=0,p=0,d=new M(e.e);d.a<d.c.c.length;){for(a=u(E(d),10),g=0,f=0,h=t?u(v(a,AO),17).a:Wi,P=i?u(v(a,LO),17).a:Wi,l=y.Math.max(h,P),A=new M(a.j);A.a<A.c.c.length;){if(O=u(E(A),12),D=a.n.b+O.n.b+O.a.b,i)for(s=new M(O.g);s.a<s.c.c.length;)c=u(E(s),18),k=c.d,m=k.i,e!=n.a[m.p]&&(j=y.Math.max(u(v(m,AO),17).a,u(v(m,LO),17).a),_=u(v(c,(cn(),O3)),17).a,_>=l&&_>=j&&(g+=m.n.b+k.n.b+k.a.b-D,++f));if(t)for(s=new M(O.e);s.a<s.c.c.length;)c=u(E(s),18),k=c.c,m=k.i,e!=n.a[m.p]&&(j=y.Math.max(u(v(m,AO),17).a,u(v(m,LO),17).a),_=u(v(c,(cn(),O3)),17).a,_>=l&&_>=j&&(g+=m.n.b+k.n.b+k.a.b-D,++f))}f>0&&(X+=g/f,++p)}p>0?(e.a=r*X/p,e.g=p):(e.a=0,e.g=0)}function vLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn;for(c=n.f.b,g=c.a,a=c.b,m=n.e.g,p=n.e.f,kg(n.e,c.a,c.b),X=g/m,tn=a/p,l=new ne(jT(n.e));l.e!=l.i.gc();)h=u(ue(l),135),eu(h,h.i*X),tu(h,h.j*tn);for(O=new ne(mD(n.e));O.e!=O.i.gc();)P=u(ue(O),123),D=P.i,_=P.j,D>0&&eu(P,D*X),_>0&&tu(P,_*tn);for(f5(n.b,new U0n),e=new Z,f=new sd(new Ua(n.c).a);f.b;)s=Nb(f),i=u(s.ld(),74),t=u(s.md(),407).a,r=Xg(i,!1,!1),d=DFn(Fh(i),Qk(r),t),dy(d,r),A=XFn(i),A&&qr(e,A,0)==-1&&(Fn(e.c,A),jOn(A,(oe(d.b!=0),u(d.a.a.c,8)),t));for(j=new sd(new Ua(n.d).a);j.b;)k=Nb(j),i=u(k.ld(),74),t=u(k.md(),407).a,r=Xg(i,!1,!1),d=DFn(ra(i),Pk(Qk(r)),t),d=Pk(d),dy(d,r),A=VFn(i),A&&qr(e,A,0)==-1&&(Fn(e.c,A),jOn(A,(oe(d.b!=0),u(d.c.b.c,8)),t))}function HGn(n,e,t,i){var r,c,s,f,h;return f=new ttn(e),hCe(f,i),r=!0,n&&n.pf((He(),_d))&&(c=u(n.of((He(),_d)),88),r=c==(ci(),Jf)||c==Kr||c==Xr),_qn(f,!1),nu(f.e.Rf(),new NV(f,!1,r)),AD(f,f.f,(wf(),bc),(en(),Xn)),AD(f,f.f,wc,ae),AD(f,f.g,bc,Wn),AD(f,f.g,wc,Zn),gBn(f,Xn),gBn(f,ae),vOn(f,Zn),vOn(f,Wn),K0(),s=f.A.Hc((go(),Qw))&&f.B.Hc((io(),uE))?DKn(f):null,s&&vhe(f.a,s),gLe(f),p7e(f),m7e(f),qAe(f),pPe(f),U7e(f),kx(f,Xn),kx(f,ae),VSe(f),pOe(f),t&&(Y5e(f),G7e(f),kx(f,Zn),kx(f,Wn),h=f.B.Hc((io(),I9)),N_n(f,h,Xn),N_n(f,h,ae),D_n(f,h,Zn),D_n(f,h,Wn),qt(new Cn(null,new On(new ol(f.i),0)),new d0n),qt(ut(new Cn(null,AW(f.r).a.oc()),new b0n),new w0n),cye(f),f.e.Pf(f.o),qt(new Cn(null,AW(f.r).a.oc()),new g0n)),f.o}function kLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(l=Pt,i=new M(n.a.b);i.a<i.c.c.length;)e=u(E(i),86),l=y.Math.min(l,e.d.f.g.c+e.e.a);for(p=new Mt,s=new M(n.a.a);s.a<s.c.c.length;)c=u(E(s),194),c.i=l,c.e==0&&xt(p,c,p.c.b,p.c);for(;p.b!=0;){for(c=u(p.b==0?null:(oe(p.b!=0),Xo(p,p.a.a)),194),r=c.f.g.c,g=c.a.a.ec().Kc();g.Ob();)a=u(g.Pb(),86),k=c.i+a.e.a,a.d.g||a.g.c<k?a.o=k:a.o=a.g.c;for(r-=c.f.o,c.b+=r,n.c==(ci(),Xr)||n.c==Wf?c.c+=r:c.c-=r,d=c.a.a.ec().Kc();d.Ob();)for(a=u(d.Pb(),86),h=a.f.Kc();h.Ob();)f=u(h.Pb(),86),hl(n.c)?m=n.f.yf(a,f):m=n.f.zf(a,f),f.d.i=y.Math.max(f.d.i,a.o+a.g.b+m-f.e.a),f.k||(f.d.i=y.Math.max(f.d.i,f.g.c-f.e.a)),--f.d.e,f.d.e==0&&Re(p,f.d)}for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),e.g.c=e.o}function yLe(n){var e,t,i,r,c,s,f,h;switch(f=n.b,e=n.a,u(v(n,(aS(),Uun)),435).g){case 0:Yt(f,new Ce(new S0n));break;case 1:default:Yt(f,new Ce(new P0n))}switch(u(v(n,Hun),436).g){case 1:Yt(f,new BU),Yt(f,new I0n),Yt(f,new y0n);break;case 0:default:Yt(f,new BU),Yt(f,new T0n)}switch(u(v(n,zun),257).g){case 0:h=new A0n;break;case 1:h=new $A;break;case 2:h=new vE;break;case 3:h=new DA;break;case 5:h=new n4(new vE);break;case 4:h=new n4(new $A);break;case 7:h=new Uz(new n4(new $A),new n4(new vE));break;case 8:h=new Uz(new n4(new DA),new n4(new vE));break;case 6:default:h=new n4(new DA)}for(s=new M(f);s.a<s.c.c.length;){for(c=u(E(s),176),i=0,r=0,t=new bi(Y(i),Y(r));tIe(e,c,i,r);)t=u(h.Ve(t,c),42),i=u(t.a,17).a,r=u(t.b,17).a;YSe(e,c,i,r)}}function qGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;for(t.Ug(pVn,1),g=(pt(),tq),n.a==(b5(),KO)&&(g=mln),a=0,Ln(),e.jd(new tL(g)),c=e.gc(),f=e.fd(e.gc()),l=!0;l&&f.Sb();)O=u(f.Ub(),40),u(v(O,g),17).a==0?--c:l=!1;if(X=e.kd(0,c),s=new $N(X),X=e.kd(c,e.gc()),h=new $N(X),s.b==0)for(k=ge(h,0);k.b!=k.d.c;)m=u(be(k),40),U(m,o9,Y(a++));else for(d=s.b,_=ge(s,0);_.b!=_.d.c;){for(D=u(be(_),40),U(D,o9,Y(a++)),i=R$(D),qGn(n,i,t.eh(1/d|0)),ud(i,HW(new tL(o9))),p=new Mt,A=ge(i,0);A.b!=A.d.c;)for(O=u(be(A),40),P=ge(D.d,0);P.b!=P.d.c;)j=u(be(P),65),j.c==O&&xt(p,j,p.c.b,p.c);for(vo(D.d),Ki(D.d,p),f=ge(h,h.b),r=D.d.b,l=!0;0<r&&l&&f.Sb();)O=u(f.Ub(),40),u(v(O,g),17).a==0?(U(O,o9,Y(a++)),--r,f.Qb()):l=!1}t.Vg()}function jLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(d=$(B(z(n,(oa(),yq)))),on(un(z(n,Zln)))&&(a=u(z(n,(Cg(),L2)),27),c=u(N(qW(u(N((!a.e&&(a.e=new Dn(Vt,a,7,4)),a.e),(!a.e&&(a.e=new Dn(Vt,a,7,4)),a.e).i-1),74)),0),27),i=u(N(qW(u(N((!a.e&&(a.e=new Dn(Vt,a,7,4)),a.e),0),74)),0),27),s=new V(c.i+c.g/2,c.j+c.f/2),r=new V(i.i+i.g/2,i.j+i.f/2),t=d,t<=0&&(t+=Md),g=y.Math.acos((s.a*r.a+s.b*r.b)/(y.Math.sqrt(s.a*s.a+s.b*s.b)*y.Math.sqrt(r.a*r.a+r.b*r.b))),g<=0&&(g+=Md),e=y.Math.atan2(s.b,s.a),e<=0&&(e+=Md),d=Trn-(e-t+g/2)),h=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));h.e!=h.i.gc();)f=u(ue(h),27),l=new V(f.i+f.g/2,f.j+f.f/2),p=l.a*y.Math.cos(d)-l.b*y.Math.sin(d),l.b=l.a*y.Math.sin(d)+l.b*y.Math.cos(d),l.a=p,Bo(f,l.a-f.g/2,l.b-f.f/2)}function ELe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(e.Ug("Inverted port preprocessing",1),a=n.b,l=new xi(a,0),t=null,A=new Z;l.b<l.d.gc();){for(O=t,t=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),30)),p=new M(A);p.a<p.c.c.length;)d=u(E(p),10),$i(d,O);for(A.c.length=0,m=new M(t.a);m.a<m.c.c.length;)if(d=u(E(m),10),d.k==(Vn(),zt)&&mg(u(v(d,(cn(),Ft)),101))){for(P=men(d,(gr(),Vu),(en(),Zn)).Kc();P.Ob();)for(k=u(P.Pb(),12),h=k.e,f=u(Rf(h,F(O_,rB,18,h.c.length,0,1)),483),r=f,c=0,s=r.length;c<s;++c)i=r[c],zIe(n,k,i,A);for(j=men(d,Jc,Wn).Kc();j.Ob();)for(k=u(j.Pb(),12),h=k.g,f=u(Rf(h,F(O_,rB,18,h.c.length,0,1)),483),r=f,c=0,s=r.length;c<s;++c)i=r[c],GIe(n,k,i,A)}}for(g=new M(A);g.a<g.c.c.length;)d=u(E(g),10),$i(d,t);e.Vg()}function JR(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m,k,j,P,O,A;for(g=null,i==(Tb(),Ma)?g=e:i==O2&&(g=t),k=g.a.ec().Kc();k.Ob();){for(m=u(k.Pb(),12),j=cc(S(C(Ei,1),J,8,0,[m.i.n,m.n,m.a])).b,A=new ni,f=new ni,l=new Lf(m.b);tc(l.a)||tc(l.b);)if(h=u(tc(l.a)?E(l.a):E(l.b),18),on(un(v(h,(W(),zf))))==r&&qr(c,h,0)!=-1){if(h.d==m?P=h.c:P=h.d,O=cc(S(C(Ei,1),J,8,0,[P.i.n,P.n,P.a])).b,y.Math.abs(O-j)<.2)continue;O<j?e.a._b(P)?fi(A,new bi(Ma,h)):fi(A,new bi(O2,h)):e.a._b(P)?fi(f,new bi(Ma,h)):fi(f,new bi(O2,h))}if(A.a.gc()>1)for(p=new Xen(m,A,i),qi(A,new YMn(n,p)),Fn(s.c,p),d=A.a.ec().Kc();d.Ob();)a=u(d.Pb(),42),du(c,a.b);if(f.a.gc()>1)for(p=new Xen(m,f,i),qi(f,new ZMn(n,p)),Fn(s.c,p),d=f.a.ec().Kc();d.Ob();)a=u(d.Pb(),42),du(c,a.b)}}function MLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(k=n.n,j=n.o,g=n.d,d=$(B(rw(n,(cn(),PH)))),e){for(a=d*(e.gc()-1),p=0,h=e.Kc();h.Ob();)s=u(h.Pb(),10),a+=s.o.a,p=y.Math.max(p,s.o.b);for(P=k.a-(a-j.a)/2,c=k.b-g.d+p,i=j.a/(e.gc()+1),r=i,f=e.Kc();f.Ob();)s=u(f.Pb(),10),s.n.a=P,s.n.b=c-s.o.b,P+=s.o.a+d,l=QHn(s),l.n.a=s.o.a/2-l.a.a,l.n.b=s.o.b,m=u(v(s,(W(),tO)),12),m.e.c.length+m.g.c.length==1&&(m.n.a=r-m.a.a,m.n.b=0,ic(m,n)),r+=i}if(t){for(a=d*(t.gc()-1),p=0,h=t.Kc();h.Ob();)s=u(h.Pb(),10),a+=s.o.a,p=y.Math.max(p,s.o.b);for(P=k.a-(a-j.a)/2,c=k.b+j.b+g.a-p,i=j.a/(t.gc()+1),r=i,f=t.Kc();f.Ob();)s=u(f.Pb(),10),s.n.a=P,s.n.b=c,P+=s.o.a+d,l=QHn(s),l.n.a=s.o.a/2-l.a.a,l.n.b=0,m=u(v(s,(W(),tO)),12),m.e.c.length+m.g.c.length==1&&(m.n.a=r-m.a.a,m.n.b=j.b,ic(m,n)),r+=i}}function TLe(n,e){var t,i,r,c,s,f;if(u(v(e,(W(),Hc)),21).Hc((pr(),cs))){for(f=new M(e.a);f.a<f.c.c.length;)c=u(E(f),10),c.k==(Vn(),zt)&&(r=u(v(c,(cn(),pO)),140),n.c=y.Math.min(n.c,c.n.a-r.b),n.a=y.Math.max(n.a,c.n.a+c.o.a+r.c),n.d=y.Math.min(n.d,c.n.b-r.d),n.b=y.Math.max(n.b,c.n.b+c.o.b+r.a));for(s=new M(e.a);s.a<s.c.c.length;)if(c=u(E(s),10),c.k!=(Vn(),zt))switch(c.k.g){case 2:if(i=u(v(c,(cn(),ou)),171),i==(Yo(),ya)){c.n.a=n.c-10,tFn(c,new mgn).Jb(new Z9n(c));break}if(i==xw){c.n.a=n.a+10,tFn(c,new vgn).Jb(new n7n(c));break}if(t=u(v(c,Ad),311),t==(vl(),k2)){dGn(c).Jb(new e7n(c)),c.n.b=n.d-10;break}if(t==E3){dGn(c).Jb(new t7n(c)),c.n.b=n.b+10;break}break;default:throw T(new Gn("The node type "+c.k+" is not supported by the "+kDe))}}}function CLe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;for(h=new V(i.i+i.g/2,i.j+i.f/2),p=hGn(i),m=u(z(e,(cn(),Ft)),101),j=u(z(i,Tv),64),OTn(aBn(i),Fw)||(i.i==0&&i.j==0?k=0:k=Fye(i,j),ht(i,Fw,k)),l=new V(e.g,e.f),r=my(i,m,j,p,l,h,new V(i.g,i.f),u(v(t,Lo),88),t),U(r,(W(),st),i),c=u(sn(r.j,0),12),nfe(c,UPe(i)),U(r,_w,(zu(),jn(Oa))),d=u(z(e,_w),181).Hc(Rl),f=new ne((!i.n&&(i.n=new q(Sr,i,1,7)),i.n));f.e!=f.i.gc();)if(s=u(ue(f),135),!on(un(z(s,Rd)))&&s.a&&(g=ex(s),nn(c.f,g),!d))switch(a=0,F6(u(z(e,_w),21))&&(a=Lnn(new V(s.i,s.j),new V(s.g,s.f),new V(i.g,i.f),0,j)),j.g){case 2:case 4:g.o.a=a;break;case 1:case 3:g.o.b=a}U(r,Sv,B(z(St(e),Sv))),U(r,Pv,B(z(St(e),Pv))),U(r,qw,B(z(St(e),qw))),nn(t.a,r),Ve(n.a,i,r)}function SLe(n,e,t,i,r,c){var s,f,h,l,a,d;for(l=new Ic,Ur(l,e),gi(l,u(z(e,(cn(),Tv)),64)),U(l,(W(),st),e),ic(l,t),d=l.o,d.a=e.g,d.b=e.f,a=l.n,a.a=e.i,a.b=e.j,Ve(n.a,e,l),s=Ag(_r(rc(new Cn(null,(!e.e&&(e.e=new Dn(Vt,e,7,4)),new On(e.e,16))),new Ewn),new ywn),new U9n(e)),s||(s=Ag(_r(rc(new Cn(null,(!e.d&&(e.d=new Dn(Vt,e,8,5)),new On(e.d,16))),new Mwn),new jwn),new G9n(e))),s||(s=Ag(new Cn(null,(!e.e&&(e.e=new Dn(Vt,e,7,4)),new On(e.e,16))),new Twn)),U(l,yj,(_n(),!!s)),XOe(l,c,r,u(z(e,b0),8)),h=new ne((!e.n&&(e.n=new q(Sr,e,1,7)),e.n));h.e!=h.i.gc();)f=u(ue(h),135),!on(un(z(f,Rd)))&&f.a&&nn(l.f,ex(f));switch(r.g){case 2:case 1:(l.j==(en(),Xn)||l.j==ae)&&i.Fc((pr(),v2));break;case 4:case 3:(l.j==(en(),Zn)||l.j==Wn)&&i.Fc((pr(),v2))}return l}function PLe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(A=0,m=0,p=0,g=1,O=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));O.e!=O.i.gc();)j=u(ue(O),27),g+=wl(new ie(ce(Sl(j).a.Kc(),new En))),yn=j.g,m=y.Math.max(m,yn),d=j.f,p=y.Math.max(p,d),A+=yn*d;for(k=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a).i,s=A+2*i*i*g*k,c=y.Math.sqrt(s),h=y.Math.max(c*t,m),f=y.Math.max(c/t,p),P=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));P.e!=P.i.gc();)j=u(ue(P),27),kn=r.b+(to(e,26)*J5+to(e,27)*Q5)*(h-j.g),Rn=r.b+(to(e,26)*J5+to(e,27)*Q5)*(f-j.f),eu(j,kn),tu(j,Rn);for(tn=h+(r.b+r.c),X=f+(r.d+r.a),_=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));_.e!=_.i.gc();)for(D=u(ue(_),27),a=new ie(ce(Sl(D).a.Kc(),new En));pe(a);)l=u(fe(a),74),D5(l)||NNe(l,e,tn,X);tn+=r.b+r.c,X+=r.d+r.a,Gb(n,tn,X,!1,!0)}function ttn(n){var e;if(this.r=oge(new l0n,new a0n),this.b=new y5(u(Pe(lr),297)),this.p=new y5(u(Pe(lr),297)),this.i=new y5(u(Pe(vYn),297)),this.e=n,this.o=new rr(n.Mf()),this.D=n.Yf()||on(un(n.of((He(),Xj)))),this.A=u(n.of((He(),Hd)),21),this.B=u(n.of(Ca),21),this.q=u(n.of(v9),101),this.u=u(n.of(Ww),21),!Wye(this.u))throw T(new _l("Invalid port label placement: "+this.u));if(this.v=on(un(n.of(_an))),this.j=u(n.of(F2),21),!MTe(this.j))throw T(new _l("Invalid node label placement: "+this.j));this.n=u(P5(n,Pan),107),this.k=$(B(P5(n,iA))),this.d=$(B(P5(n,zan))),this.w=$(B(P5(n,Qan))),this.s=$(B(P5(n,Xan))),this.t=$(B(P5(n,Van))),this.C=u(P5(n,Wan),140),this.c=2*this.d,e=!this.B.Hc((io(),cE)),this.f=new E5(0,e,0),this.g=new E5(1,e,0),mL(this.f,(wf(),Wc),this.g)}function ILe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(e.Ug("Comment pre-processing",1),t=0,h=new M(n.a);h.a<h.c.c.length;)if(f=u(E(h),10),on(un(v(f,(cn(),q8))))){for(++t,r=0,i=null,l=null,m=new M(f.j);m.a<m.c.c.length;)g=u(E(m),12),r+=g.e.c.length+g.g.c.length,g.e.c.length==1&&(i=u(sn(g.e,0),18),l=i.c),g.g.c.length==1&&(i=u(sn(g.g,0),18),l=i.d);if(r==1&&l.e.c.length+l.g.c.length==1&&!on(un(v(l.i,q8))))oNe(f,i,l,l.i),q6(h);else{for(P=new Z,p=new M(f.j);p.a<p.c.c.length;){for(g=u(E(p),12),d=new M(g.g);d.a<d.c.c.length;)a=u(E(d),18),a.d.g.c.length==0||Fn(P.c,a);for(s=new M(g.e);s.a<s.c.c.length;)c=u(E(s),18),c.c.e.c.length==0||Fn(P.c,c)}for(j=new M(P);j.a<j.c.c.length;)k=u(E(j),18),Ub(k,!0)}}e._g()&&e.bh("Found "+t+" comment boxes"),e.Vg()}function itn(n,e){xPn();var t,i,r,c,s,f,h;if(this.a=new NX(this),this.b=n,this.c=e,this.f=sD(Nr((Lu(),zi),e)),this.f.dc())if((f=$Z(zi,n))==e)for(this.e=!0,this.d=new Z,this.f=new avn,this.f.Fc(Pd),u(qS(hk(zi,jo(n)),""),29)==n&&this.f.Fc(B6(zi,jo(n))),r=PR(zi,n).Kc();r.Ob();)switch(i=u(r.Pb(),179),yb(Nr(zi,i))){case 4:{this.d.Fc(i);break}case 5:{this.f.Gc(sD(Nr(zi,i)));break}}else if(dr(),u(e,69).xk())for(this.e=!0,this.f=null,this.d=new Z,s=0,h=(n.i==null&&bh(n),n.i).length;s<h;++s)for(i=(t=(n.i==null&&bh(n),n.i),s>=0&&s<t.length?t[s]:null),c=$p(Nr(zi,i));c;c=$p(Nr(zi,c)))c==e&&this.d.Fc(i);else yb(Nr(zi,e))==1&&f?(this.f=null,this.d=(n3(),tse)):(this.f=null,this.e=!0,this.d=(Ln(),new nL(e)));else this.e=yb(Nr(zi,e))==5,this.f.Fb(CU)&&(this.f=CU)}function UGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;for(t=0,i=o7e(n,e),g=n.s,p=n.t,l=u(u(ot(n.r,e),21),87).Kc();l.Ob();)if(h=u(l.Pb(),117),!(!h.c||h.c.d.c.length<=0)){switch(m=h.b.Mf(),f=h.b.pf((He(),oo))?$(B(h.b.of(oo))):0,a=h.c,d=a.i,d.b=(s=a.n,a.e.a+s.b+s.c),d.a=(c=a.n,a.e.b+c.d+c.a),e.g){case 1:d.c=h.a?(m.a-d.b)/2:m.a+g,d.d=m.b+f+i,df(a,(Uu(),pa)),uh(a,(bu(),kf));break;case 3:d.c=h.a?(m.a-d.b)/2:m.a+g,d.d=-f-i-d.a,df(a,(Uu(),pa)),uh(a,(bu(),Xs));break;case 2:d.c=-f-i-d.b,h.a?(r=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(m.b-r)/2):d.d=m.b+p,df(a,(Uu(),zs)),uh(a,(bu(),ma));break;case 4:d.c=m.a+f+i,h.a?(r=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(m.b-r)/2):d.d=m.b+p,df(a,(Uu(),Th)),uh(a,(bu(),ma))}(e==(en(),Xn)||e==ae)&&(t=y.Math.max(t,d.a))}t>0&&(u(Mr(n.b,e),127).a.b=t)}function OLe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k;if(g=$(B(v(n,(cn(),Sv)))),p=$(B(v(n,Pv))),d=$(B(v(n,qw))),f=n.o,c=u(sn(n.j,0),12),s=c.n,k=Xje(c,d),!!k){if(e.Hc((zu(),Rl)))switch(u(v(n,(W(),gc)),64).g){case 1:k.c=(f.a-k.b)/2-s.a,k.d=p;break;case 3:k.c=(f.a-k.b)/2-s.a,k.d=-p-k.a;break;case 2:t&&c.e.c.length==0&&c.g.c.length==0?(a=i?k.a:u(sn(c.f,0),72).o.b,k.d=(f.b-a)/2-s.b):k.d=f.b+p-s.b,k.c=-g-k.b;break;case 4:t&&c.e.c.length==0&&c.g.c.length==0?(a=i?k.a:u(sn(c.f,0),72).o.b,k.d=(f.b-a)/2-s.b):k.d=f.b+p-s.b,k.c=g}else if(e.Hc(Oa))switch(u(v(n,(W(),gc)),64).g){case 1:case 3:k.c=s.a+g;break;case 2:case 4:t&&!c.c?(a=i?k.a:u(sn(c.f,0),72).o.b,k.d=(f.b-a)/2-s.b):k.d=s.b+p}for(r=k.d,l=new M(c.f);l.a<l.c.c.length;)h=u(E(l),72),m=h.n,m.a=k.c,m.b=r,r+=h.o.b+d}}function ALe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn;for(X=new Z,m=new M(n.b);m.a<m.c.c.length;)for(p=u(E(m),30),P=new M(p.a);P.a<P.c.c.length;)if(k=u(E(P),10),k.k==(Vn(),Zt)&&kt(k,(W(),cO))){for(O=null,D=null,A=null,kn=new M(k.j);kn.a<kn.c.c.length;)switch(yn=u(E(kn),12),yn.j.g){case 4:O=yn;break;case 2:D=yn;break;default:A=yn}for(_=u(sn(A.g,0),18),a=new GE(_.a),l=new rr(A.n),tt(l,k.n),d=ge(a,0),_7(d,l),tn=Pk(_.a),g=new rr(A.n),tt(g,k.n),xt(tn,g,tn.c.b,tn.c),Rn=u(v(k,cO),10),Bn=u(sn(Rn.j,0),12),h=u(Rf(O.e,F(O_,rB,18,0,0,1)),483),i=h,c=0,f=i.length;c<f;++c)e=i[c],Oi(e,Bn),J$(e.a,e.a.b,a);for(h=hh(D.g),t=h,r=0,s=t.length;r<s;++r)e=t[r],Zi(e,Bn),J$(e.a,0,tn);Zi(_,null),Oi(_,null),Fn(X.c,k)}for(j=new M(X);j.a<j.c.c.length;)k=u(E(j),10),$i(k,null)}function LLe(){Ge(bE,new _6n),Ge(SA,new Y6n),Ge(wE,new f5n),Ge(ubn,new k5n),Ge(fn,new M5n),Ge(C(Ru,1),new T5n),Ge(Gt,new C5n),Ge(p3,new S5n),Ge(fn,new O6n),Ge(fn,new A6n),Ge(fn,new L6n),Ge(si,new N6n),Ge(fn,new D6n),Ge(rs,new $6n),Ge(rs,new x6n),Ge(fn,new R6n),Ge(sv,new B6n),Ge(fn,new F6n),Ge(fn,new H6n),Ge(fn,new q6n),Ge(fn,new U6n),Ge(fn,new G6n),Ge(C(Ru,1),new z6n),Ge(fn,new X6n),Ge(fn,new V6n),Ge(rs,new W6n),Ge(rs,new J6n),Ge(fn,new Q6n),Ge(Gi,new Z6n),Ge(fn,new n5n),Ge(t0,new e5n),Ge(fn,new t5n),Ge(fn,new i5n),Ge(fn,new r5n),Ge(fn,new c5n),Ge(rs,new u5n),Ge(rs,new o5n),Ge(fn,new s5n),Ge(fn,new h5n),Ge(fn,new l5n),Ge(fn,new a5n),Ge(fn,new d5n),Ge(fn,new b5n),Ge(i0,new w5n),Ge(fn,new g5n),Ge(fn,new p5n),Ge(fn,new m5n),Ge(i0,new v5n),Ge(t0,new y5n),Ge(fn,new j5n),Ge(Gi,new E5n)}function GGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;switch(a=new Tu,n.a.g){case 3:g=u(v(e.e,(W(),Ld)),15),p=u(v(e.j,Ld),15),m=u(v(e.f,Ld),15),t=u(v(e.e,M2),15),i=u(v(e.j,M2),15),r=u(v(e.f,M2),15),s=new Z,hi(s,g),p.Jc(new _pn),hi(s,Qo(p)),hi(s,m),c=new Z,hi(c,t),hi(c,Qo(i)),hi(c,r),U(e.f,Ld,s),U(e.f,M2,c),U(e.f,ffn,e.f),U(e.e,Ld,null),U(e.e,M2,null),U(e.j,Ld,null),U(e.j,M2,null);break;case 1:Ki(a,e.e.a),Re(a,e.i.n),Ki(a,Qo(e.j.a)),Re(a,e.a.n),Ki(a,e.f.a);break;default:Ki(a,e.e.a),Ki(a,Qo(e.j.a)),Ki(a,e.f.a)}vo(e.f.a),Ki(e.f.a,a),Zi(e.f,e.e.c),f=u(v(e.e,(cn(),Rr)),75),l=u(v(e.j,Rr),75),h=u(v(e.f,Rr),75),(f||l||h)&&(d=new Tu,IW(d,h),IW(d,l),IW(d,f),U(e.f,Rr,d)),Zi(e.j,null),Oi(e.j,null),Zi(e.e,null),Oi(e.e,null),$i(e.a,null),$i(e.i,null),e.g&&GGn(n,e.g)}function zGn(){zGn=R;var n,e,t;for(new Dk(1,0),new Dk(10,0),new Dk(0,0),mQn=F(JF,J,247,11,0,1),Od=F(fs,gh,28,100,15,1),Eun=S(C(Ii,1),Cr,28,15,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,48828125,244140625,1220703125,6103515625,30517578125,152587890625,762939453125,3814697265625,19073486328125,95367431640625,476837158203125,0x878678326eac9]),Mun=F(ye,_e,28,Eun.length,15,1),Tun=S(C(Ii,1),Cr,28,15,[1,10,100,d1,1e4,IK,1e6,1e7,1e8,QS,1e10,1e11,1e12,1e13,1e14,1e15,1e16]),Cun=F(ye,_e,28,Tun.length,15,1),Sun=F(JF,J,247,11,0,1),n=0;n<Sun.length;n++)mQn[n]=new Dk(n,0),Sun[n]=new Dk(0,n),Od[n]=48;for(;n<Od.length;n++)Od[n]=48;for(t=0;t<Mun.length;t++)Mun[t]=Inn(Eun[t]);for(e=0;e<Cun.length;e++)Cun[e]=Inn(Tun[e]);Sm()}function NLe(){function n(){this.obj=this.createObject()}return n.prototype.createObject=function(e){return Object.create(null)},n.prototype.get=function(e){return this.obj[e]},n.prototype.set=function(e,t){this.obj[e]=t},n.prototype[LK]=function(e){delete this.obj[e]},n.prototype.keys=function(){return Object.getOwnPropertyNames(this.obj)},n.prototype.entries=function(){var e=this.keys(),t=this,i=0;return{next:function(){if(i>=e.length)return{done:!0};var r=e[i++];return{value:[r,t.get(r)],done:!1}}}},SSe()||(n.prototype.createObject=function(){return{}},n.prototype.get=function(e){return this.obj[":"+e]},n.prototype.set=function(e,t){this.obj[":"+e]=t},n.prototype[LK]=function(e){delete this.obj[":"+e]},n.prototype.keys=function(){var e=[];for(var t in this.obj)t.charCodeAt(0)==58&&e.push(t.substring(1));return e}),n}function pt(){pt=R,u9=new lt(Wtn),new Lt("DEPTH",Y(0)),tq=new Lt("FAN",Y(0)),mln=new Lt(bVn,Y(0)),Ta=new Lt("ROOT",(_n(),!1)),cq=new Lt("LEFTNEIGHBOR",null),dre=new Lt("RIGHTNEIGHBOR",null),$O=new Lt("LEFTSIBLING",null),uq=new Lt("RIGHTSIBLING",null),eq=new Lt("DUMMY",!1),new Lt("LEVEL",Y(0)),yln=new Lt("REMOVABLE_EDGES",new Mt),$j=new Lt("XCOOR",Y(0)),xj=new Lt("YCOOR",Y(0)),xO=new Lt("LEVELHEIGHT",0),jf=new Lt("LEVELMIN",0),Js=new Lt("LEVELMAX",0),iq=new Lt("GRAPH_XMIN",0),rq=new Lt("GRAPH_YMIN",0),vln=new Lt("GRAPH_XMAX",0),kln=new Lt("GRAPH_YMAX",0),pln=new Lt("COMPACT_LEVEL_ASCENSION",!1),nq=new Lt("COMPACT_CONSTRAINTS",new Z),c9=new Lt("ID",""),o9=new Lt("POSITION",Y(0)),j1=new Lt("PRELIM",0),Nv=new Lt("MODIFIER",0),Lv=new lt(CXn),Dj=new lt(SXn)}function DLe(n){Ren();var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(n==null)return null;if(d=n.length*8,d==0)return"";for(f=d%24,p=d/24|0,g=f!=0?p+1:p,c=null,c=F(fs,gh,28,g*4,15,1),l=0,a=0,e=0,t=0,i=0,s=0,r=0,h=0;h<p;h++)e=n[r++],t=n[r++],i=n[r++],a=(t&15)<<24>>24,l=(e&3)<<24>>24,m=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,k=t&-128?(t>>4^240)<<24>>24:t>>4<<24>>24,j=i&-128?(i>>6^252)<<24>>24:i>>6<<24>>24,c[s++]=A1[m],c[s++]=A1[k|l<<4],c[s++]=A1[a<<2|j],c[s++]=A1[i&63];return f==8?(e=n[r],l=(e&3)<<24>>24,m=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,c[s++]=A1[m],c[s++]=A1[l<<4],c[s++]=61,c[s++]=61):f==16&&(e=n[r],t=n[r+1],a=(t&15)<<24>>24,l=(e&3)<<24>>24,m=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,k=t&-128?(t>>4^240)<<24>>24:t>>4<<24>>24,c[s++]=A1[m],c[s++]=A1[k|l<<4],c[s++]=A1[a<<2],c[s++]=61),ws(c,0,c.length)}function $Le(n,e){var t,i,r,c,s,f,h;if(n.e==0&&n.p>0&&(n.p=-(n.p-1)),n.p>Wi&&EJ(e,n.p-ha),s=e.q.getDate(),W7(e,1),n.k>=0&&E2e(e,n.k),n.c>=0?W7(e,n.c):n.k>=0?(h=new ZQ(e.q.getFullYear()-ha,e.q.getMonth(),35),i=35-h.q.getDate(),W7(e,y.Math.min(i,s))):W7(e,s),n.f<0&&(n.f=e.q.getHours()),n.b>0&&n.f<12&&(n.f+=12),b1e(e,n.f==24&&n.g?0:n.f),n.j>=0&&c4e(e,n.j),n.n>=0&&p4e(e,n.n),n.i>=0&&QTn(e,nr(er(Xk(vc(e.q.getTime()),d1),d1),n.i)),n.a&&(r=new JE,EJ(r,r.q.getFullYear()-ha-80),DL(vc(e.q.getTime()),vc(r.q.getTime()))&&EJ(e,r.q.getFullYear()-ha+100)),n.d>=0){if(n.c==-1)t=(7+n.d-e.q.getDay())%7,t>3&&(t-=7),f=e.q.getMonth(),W7(e,e.q.getDate()+t),e.q.getMonth()!=f&&W7(e,e.q.getDate()+(t>0?-7:7));else if(e.q.getDay()!=n.d)return!1}return n.o>Wi&&(c=e.q.getTimezoneOffset(),QTn(e,nr(vc(e.q.getTime()),(n.o-c)*60*d1))),!0}function XGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(r=v(e,(W(),st)),!!L(r,207)){for(m=u(r,27),k=e.e,g=new rr(e.c),c=e.d,g.a+=c.b,g.b+=c.d,D=u(z(m,(cn(),kO)),181),Su(D,(io(),sA))&&(p=u(z(m,hhn),107),Use(p,c.a),Yse(p,c.d),Gse(p,c.b),Qse(p,c.c)),t=new Z,a=new M(e.a);a.a<a.c.c.length;)for(h=u(E(a),10),L(v(h,st),207)?_Le(h,g):L(v(h,st),193)&&!k&&(i=u(v(h,st),123),O=DUn(e,h,i.g,i.f),Bo(i,O.a,O.b)),P=new M(h.j);P.a<P.c.c.length;)j=u(E(P),12),qt(ut(new Cn(null,new On(j.g,16)),new z9n(h)),new X9n(t));if(k)for(P=new M(k.j);P.a<P.c.c.length;)j=u(E(P),12),qt(ut(new Cn(null,new On(j.g,16)),new V9n(k)),new W9n(t));for(A=u(z(m,$l),223),f=new M(t);f.a<f.c.c.length;)s=u(E(f),18),tLe(s,A,g);for(HPe(e),l=new M(e.a);l.a<l.c.c.length;)h=u(E(l),10),d=h.e,d&&XGn(n,d)}}function VGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(!u(u(ot(n.r,e),21),87).dc()){if(s=u(Mr(n.b,e),127),h=s.i,f=s.n,a=kR(n,e),i=h.b-f.b-f.c,r=s.a.a,c=h.c+f.b,p=n.w,(a==(Kg(),Pa)||a==eE)&&u(u(ot(n.r,e),21),87).gc()==1&&(r=a==Pa?r-2*n.w:r,a=M9),i<r&&!n.B.Hc((io(),fA)))a==Pa?(p+=(i-r)/(u(u(ot(n.r,e),21),87).gc()+1),c+=p):p+=(i-r)/(u(u(ot(n.r,e),21),87).gc()-1);else switch(i<r&&(r=a==Pa?r-2*n.w:r,a=M9),a.g){case 3:c+=(i-r)/2;break;case 4:c+=i-r;break;case 0:t=(i-r)/(u(u(ot(n.r,e),21),87).gc()+1),p+=y.Math.max(0,t),c+=p;break;case 1:t=(i-r)/(u(u(ot(n.r,e),21),87).gc()-1),p+=y.Math.max(0,t)}for(g=u(u(ot(n.r,e),21),87).Kc();g.Ob();)d=u(g.Pb(),117),d.e.a=c+d.d.b,d.e.b=(l=d.b,l.pf((He(),oo))?l.ag()==(en(),Xn)?-l.Mf().b-$(B(l.of(oo))):$(B(l.of(oo))):l.ag()==(en(),Xn)?-l.Mf().b:0),c+=d.d.b+d.b.Mf().a+d.d.c+p}}function WGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(!u(u(ot(n.r,e),21),87).dc()){if(s=u(Mr(n.b,e),127),h=s.i,f=s.n,d=kR(n,e),i=h.a-f.d-f.a,r=s.a.b,c=h.d+f.d,m=n.w,l=n.o.a,(d==(Kg(),Pa)||d==eE)&&u(u(ot(n.r,e),21),87).gc()==1&&(r=d==Pa?r-2*n.w:r,d=M9),i<r&&!n.B.Hc((io(),fA)))d==Pa?(m+=(i-r)/(u(u(ot(n.r,e),21),87).gc()+1),c+=m):m+=(i-r)/(u(u(ot(n.r,e),21),87).gc()-1);else switch(i<r&&(r=d==Pa?r-2*n.w:r,d=M9),d.g){case 3:c+=(i-r)/2;break;case 4:c+=i-r;break;case 0:t=(i-r)/(u(u(ot(n.r,e),21),87).gc()+1),m+=y.Math.max(0,t),c+=m;break;case 1:t=(i-r)/(u(u(ot(n.r,e),21),87).gc()-1),m+=y.Math.max(0,t)}for(p=u(u(ot(n.r,e),21),87).Kc();p.Ob();)g=u(p.Pb(),117),g.e.a=(a=g.b,a.pf((He(),oo))?a.ag()==(en(),Wn)?-a.Mf().a-$(B(a.of(oo))):l+$(B(a.of(oo))):a.ag()==(en(),Wn)?-a.Mf().a:l),g.e.b=c+g.d.d,c+=g.d.d+g.b.Mf().b+g.d.a+m}}function xLe(n,e){var t,i,r,c,s;for(e.Ug("Processor determine the coords for each level",1),i=new Z,s=ge(n.b,0);s.b!=s.d.c;){for(r=u(be(s),40);u(v(r,(lc(),Ph)),17).a>i.c.length-1;)nn(i,new bi(i2,Crn));t=u(v(r,Ph),17).a,hl(u(v(n,v0),88))?(r.e.a<$(B((Nn(t,i.c.length),u(i.c[t],42)).a))&&QA((Nn(t,i.c.length),u(i.c[t],42)),r.e.a),r.e.a+r.f.a>$(B((Nn(t,i.c.length),u(i.c[t],42)).b))&&YA((Nn(t,i.c.length),u(i.c[t],42)),r.e.a+r.f.a)):(r.e.b<$(B((Nn(t,i.c.length),u(i.c[t],42)).a))&&QA((Nn(t,i.c.length),u(i.c[t],42)),r.e.b),r.e.b+r.f.b>$(B((Nn(t,i.c.length),u(i.c[t],42)).b))&&YA((Nn(t,i.c.length),u(i.c[t],42)),r.e.b+r.f.b))}for(c=ge(n.b,0);c.b!=c.d.c;)r=u(be(c),40),t=u(v(r,(lc(),Ph)),17).a,U(r,(pt(),jf),B((Nn(t,i.c.length),u(i.c[t],42)).a)),U(r,Js,B((Nn(t,i.c.length),u(i.c[t],42)).b));e.Vg()}function RLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(n.o=$(B(v(n.i,(cn(),g0)))),n.f=$(B(v(n.i,Kd))),n.j=n.i.b.c.length,f=n.j-1,g=0,n.k=0,n.n=0,n.b=Af(F(Gi,J,17,n.j,0,1)),n.c=Af(F(si,J,345,n.j,7,1)),s=new M(n.i.b);s.a<s.c.c.length;){for(r=u(E(s),30),r.p=f,d=new M(r.a);d.a<d.c.c.length;)a=u(E(d),10),a.p=g,++g;--f}for(n.g=F(ye,_e,28,g,15,1),n.d=Wa(ye,[J,_e],[53,28],15,[g,3],2),n.p=new Z,n.q=new Z,e=0,n.e=0,c=new M(n.i.b);c.a<c.c.c.length;){for(r=u(E(c),30),f=r.p,i=0,k=0,h=r.a.c.length,l=0,d=new M(r.a);d.a<d.c.c.length;)a=u(E(d),10),g=a.p,n.g[g]=a.c.p,l+=a.o.b+n.o,t=wl(new ie(ce(ji(a).a.Kc(),new En))),m=wl(new ie(ce(Qt(a).a.Kc(),new En))),n.d[g][0]=m-t,n.d[g][1]=t,n.d[g][2]=m,i+=t,k+=m,t>0&&nn(n.q,a),nn(n.p,a);e-=i,p=h+e,l+=e*n.f,Go(n.b,f,Y(p)),Go(n.c,f,l),n.k=y.Math.max(n.k,p),n.n=y.Math.max(n.n,l),n.e+=e,e+=k}}function en(){en=R;var n;sc=new v7(n8,0),Xn=new v7(eP,1),Zn=new v7(HK,2),ae=new v7(qK,3),Wn=new v7(UK,4),Yf=(Ln(),new r4((n=u(of(lr),9),new _o(n,u(xs(n,n.length),9),0)))),ef=i1(yt(Xn,S(C(lr,1),Tc,64,0,[]))),os=i1(yt(Zn,S(C(lr,1),Tc,64,0,[]))),Do=i1(yt(ae,S(C(lr,1),Tc,64,0,[]))),Cs=i1(yt(Wn,S(C(lr,1),Tc,64,0,[]))),mu=i1(yt(Xn,S(C(lr,1),Tc,64,0,[ae]))),su=i1(yt(Zn,S(C(lr,1),Tc,64,0,[Wn]))),tf=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Wn]))),Wu=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Zn]))),$o=i1(yt(ae,S(C(lr,1),Tc,64,0,[Wn]))),ss=i1(yt(Zn,S(C(lr,1),Tc,64,0,[ae]))),Ju=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Zn,Wn]))),pu=i1(yt(Zn,S(C(lr,1),Tc,64,0,[ae,Wn]))),vu=i1(yt(Xn,S(C(lr,1),Tc,64,0,[ae,Wn]))),xu=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Zn,ae]))),Uc=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Zn,ae,Wn])))}function KLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn;for(e.Ug(XXn,1),k=new Z,X=new Z,l=new M(n.b);l.a<l.c.c.length;)for(h=u(E(l),30),P=-1,m=Y7(h.a),d=m,g=0,p=d.length;g<p;++g)if(a=d[g],++P,!!(a.k==(Vn(),zt)&&mg(u(v(a,(cn(),Ft)),101)))){for(Ep(u(v(a,(cn(),Ft)),101))||kCe(a),U(a,(W(),s0),a),k.c.length=0,X.c.length=0,t=new Z,D=new Mt,S$(D,h1(a,(en(),Xn))),fzn(n,D,k,X,t),f=P,tn=a,c=new M(k);c.a<c.c.c.length;)i=u(E(c),10),uw(i,f,h),++P,U(i,s0,a),s=u(sn(i.j,0),12),j=u(v(s,st),12),on(un(v(j,pH)))||u(v(i,C3),15).Fc(tn);for(vo(D),A=h1(a,ae).Kc();A.Ob();)O=u(A.Pb(),12),xt(D,O,D.a,D.a.a);for(fzn(n,D,X,null,t),_=a,r=new M(X);r.a<r.c.c.length;)i=u(E(r),10),uw(i,++P,h),U(i,s0,a),s=u(sn(i.j,0),12),j=u(v(s,st),12),on(un(v(j,pH)))||u(v(_,C3),15).Fc(i);t.c.length==0||U(a,Ysn,t)}e.Vg()}function JGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;if(e.b!=0){for(p=new Mt,f=null,m=null,i=wi(y.Math.floor(y.Math.log(e.b)*y.Math.LOG10E)+1),h=0,A=ge(e,0);A.b!=A.d.c;)for(P=u(be(A),40),x(m)!==x(v(P,(pt(),c9)))&&(m=Ae(v(P,c9)),h=0),m!=null?f=m+UAn(h++,i):f=UAn(h++,i),U(P,c9,f),j=(r=ge(new sl(P).a.d,0),new sg(r));Q9(j.a);)k=u(be(j.a),65).c,xt(p,k,p.c.b,p.c),U(k,c9,f);for(g=new de,s=0;s<f.length-i;s++)for(O=ge(e,0);O.b!=O.d.c;)P=u(be(O),40),l=qo(Ae(v(P,(pt(),c9))),0,s+1),t=(l==null?Fr(wr(g.f,null)):a6(g.i,l))!=null?u(l==null?Fr(wr(g.f,null)):a6(g.i,l),17).a+1:1,Lr(g,l,Y(t));for(d=new sd(new Ua(g).a);d.b;)a=Nb(d),c=Y(ee(n.a,a.ld())!=null?u(ee(n.a,a.ld()),17).a:0),Lr(n.a,Ae(a.ld()),Y(u(a.md(),17).a+c.a)),c=u(ee(n.b,a.ld()),17),(!c||c.a<u(a.md(),17).a)&&Lr(n.b,Ae(a.ld()),u(a.md(),17));JGn(n,p)}}function BLe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(t=null,h=null,r=u(v(n.b,(cn(),EH)),349),r==(a5(),Oj)&&(t=new Z,h=new Z),f=new M(n.d);f.a<f.c.c.length;)if(s=u(E(f),105),c=s.i,!!c)switch(s.e.g){case 0:e=u(n5(new dp(s.b)),64),r==Oj&&e==(en(),Xn)?Fn(t.c,s):r==Oj&&e==(en(),ae)?Fn(h.c,s):a7e(s,e);break;case 1:l=s.a.d.j,a=s.c.d.j,l==(en(),Xn)?Vl(s,Xn,(xf(),lv),s.a):a==Xn?Vl(s,Xn,(xf(),av),s.c):l==ae?Vl(s,ae,(xf(),av),s.a):a==ae&&Vl(s,ae,(xf(),lv),s.c);break;case 2:case 3:i=s.b,Su(i,(en(),Xn))?Su(i,ae)?Su(i,Wn)?Su(i,Zn)||Vl(s,Xn,(xf(),av),s.c):Vl(s,Xn,(xf(),lv),s.a):Vl(s,Xn,(xf(),j3),null):Vl(s,ae,(xf(),j3),null);break;case 4:d=s.a.d.j,g=s.a.d.j,d==(en(),Xn)||g==Xn?Vl(s,ae,(xf(),j3),null):Vl(s,Xn,(xf(),j3),null)}t&&(t.c.length==0||qUn(t,(en(),Xn)),h.c.length==0||qUn(h,(en(),ae)))}function FLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(t.Ug("Breadth first model order layering",1),n.a=e,j=new Z,k=new M(n.a.a);k.a<k.c.c.length;)p=u(E(k),10),p.k==(Vn(),zt)&&Fn(j.c,p);for(Ln(),Yt(j,new Gpn),h=!0,r=new Nc(n.a),i=null,nn(n.a.b,r),m=new M(j);m.a<m.c.c.length;)if(p=u(E(m),10),h)$i(p,r),h=!1;else{for(f=new ie(ce(ji(p).a.Kc(),new En));pe(f);)c=u(fe(f),18),(c.c.i.k==(Vn(),zt)&&c.c.i.c==r||c.c.i.k==Sc&&u(fe(new ie(ce(ji(c.c.i).a.Kc(),new En))),18).c.i.c==r)&&(i=new Nc(n.a),nn(n.a.b,i),r=new Nc(n.a),nn(n.a.b,r));for(s=new ie(ce(ji(p).a.Kc(),new En));pe(s);)c=u(fe(s),18),c.c.i.k==(Vn(),Sc)&&!c.c.i.c&&$i(c.c.i,i);$i(p,r)}for(n.a.a.c.length=0,P=new Z,d=new M(n.a.b);d.a<d.c.c.length;)l=u(E(d),30),l.a.c.length==0&&Fn(P.c,l);for(IY(n.a.b,P),g=0,a=new M(n.a.b);a.a<a.c.c.length;)l=u(E(a),30),l.p=g,++g;t.Vg()}function _Le(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(i=u(v(n,(W(),st)),27),m=u(v(n,(cn(),aO)),17).a,c=u(v(n,gO),17).a,ht(i,aO,Y(m)),ht(i,gO,Y(c)),eu(i,n.n.a+e.a),tu(i,n.n.b+e.b),(u(z(i,xd),181).gc()!=0||n.e||x(v(Hi(n),vO))===x((T5(),J8))&&oCn((cw(),(n.q?n.q:(Ln(),Ln(),Wh))._b(d0)?g=u(v(n,d0),203):g=u(v(Hi(n),z8),203),g)))&&(Ob(i,n.o.a),Ib(i,n.o.b)),d=new M(n.j);d.a<d.c.c.length;)l=u(E(d),12),k=v(l,st),L(k,193)&&(r=u(k,123),Bo(r,l.n.a,l.n.b),ht(r,Tv,l.j));for(p=u(v(n,a0),181).gc()!=0,h=new M(n.b);h.a<h.c.c.length;)s=u(E(h),72),(p||u(v(s,a0),181).gc()!=0)&&(t=u(v(s,st),135),kg(t,s.o.a,s.o.b),Bo(t,s.n.a,s.n.b));if(!F6(u(v(n,_w),21)))for(a=new M(n.j);a.a<a.c.c.length;)for(l=u(E(a),12),f=new M(l.f);f.a<f.c.c.length;)s=u(E(f),72),t=u(v(s,st),135),Ob(t,s.o.a),Ib(t,s.o.b),Bo(t,s.n.a,s.n.b)}function HLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn;for(e.Ug("Calculate Graph Size",1),e.dh(n,$rn),d=i2,g=i2,l=xrn,a=xrn,k=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));k.e!=k.i.gc();)p=u(ue(k),27),O=p.i,A=p.j,kn=p.g,f=p.f,h=u(z(p,(He(),xv)),140),d=y.Math.min(d,O-h.b),g=y.Math.min(g,A-h.d),l=y.Math.max(l,O+kn+h.c),a=y.Math.max(a,A+f+h.a);for(P=u(z(n,(He(),M1)),107),j=new V(d-P.b,g-P.d),yn=l-d+(P.b+P.c),s=a-g+(P.d+P.a),on(un(z(n,(oa(),Wln))))&&(D=u(z(n,(Cg(),L2)),27),_=u(z(D,xv),140),X=D.i+D.g/2+(_.b+_.c)/2-j.a,tn=D.j+D.f/2+(_.d+_.a)/2-j.b,r=yn-X,c=s-tn,r<yn/2?(t=r-X,yn+=t,j.a-=t):(t=X-r,yn+=t),c<s/2?(i=c-tn,s+=i,j.b-=i):(i=tn-c,s+=i)),m=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));m.e!=m.i.gc();)p=u(ue(m),27),eu(p,p.i-j.a),tu(p,p.j-j.b);on(un(z(n,Vw)))||(Ob(n,yn),Ib(n,s)),ht(n,K2,yn-(P.b+P.c)),ht(n,R2,s-(P.d+P.a)),e.dh(n,LP)}function qLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;if(n.e.a.$b(),n.f.a.$b(),n.c.c.length=0,n.i.c.length=0,n.g.a.$b(),e)for(s=new M(e.a);s.a<s.c.c.length;)for(c=u(E(s),10),d=h1(c,(en(),Zn)).Kc();d.Ob();)for(a=u(d.Pb(),12),fi(n.e,a),r=new M(a.g);r.a<r.c.c.length;)i=u(E(r),18),!fr(i)&&(nn(n.c,i),lBn(n,i),f=i.c.i.k,(f==(Vn(),zt)||f==_c||f==Zt||f==Gf)&&nn(n.j,i),p=i.d,g=p.i.c,g==t?fi(n.f,p):g==e?fi(n.e,p):du(n.c,i));if(t)for(s=new M(t.a);s.a<s.c.c.length;){for(c=u(E(s),10),l=new M(c.j);l.a<l.c.c.length;)for(h=u(E(l),12),r=new M(h.g);r.a<r.c.c.length;)i=u(E(r),18),fr(i)&&fi(n.g,i);for(d=h1(c,(en(),Wn)).Kc();d.Ob();)for(a=u(d.Pb(),12),fi(n.f,a),r=new M(a.g);r.a<r.c.c.length;)i=u(E(r),18),!fr(i)&&(nn(n.c,i),lBn(n,i),f=i.c.i.k,(f==(Vn(),zt)||f==_c||f==Zt||f==Gf)&&nn(n.j,i),p=i.d,g=p.i.c,g==t?fi(n.f,p):g==e?fi(n.e,p):du(n.c,i))}}function ULe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(t.Ug("Polyline edge routing",1),j=$(B(v(e,(cn(),Xfn)))),p=$(B(v(e,S2))),r=$(B(v(e,T2))),i=y.Math.min(1,r/p),A=0,h=0,e.b.c.length!=0&&(D=XHn(u(sn(e.b,0),30)),A=.4*i*D),f=new xi(e.b,0);f.b<f.d.gc();){for(s=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),30)),c=PM(s,Lj),c&&A>0&&(A-=p),Ven(s,A),a=0,g=new M(s.a);g.a<g.c.c.length;){for(d=u(E(g),10),l=0,k=new ie(ce(Qt(d).a.Kc(),new En));pe(k);)m=u(fe(k),18),P=Of(m.c).b,O=Of(m.d).b,s==m.d.i.c&&!fr(m)&&(iMe(m,A,.4*i*y.Math.abs(P-O)),m.c.j==(en(),Wn)&&(P=0,O=0)),l=y.Math.max(l,y.Math.abs(O-P));switch(d.k.g){case 0:case 4:case 1:case 3:case 5:oAe(n,d,A,j)}a=y.Math.max(a,l)}f.b<f.d.gc()&&(D=XHn((oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),30))),a=y.Math.max(a,D),oe(f.b>0),f.a.Xb(f.c=--f.b)),h=.4*i*a,!c&&f.b<f.d.gc()&&(h+=p),A+=s.c.a+h}n.a.a.$b(),e.f.a=A,t.Vg()}function GLe(n){var e,t,i,r,c;switch(G7(n,TWn),(!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i+(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i){case 0:throw T(new Gn("The edge must have at least one source or target."));case 1:return(!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i==0?St(Gr(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))):St(Gr(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84)))}if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i==1&&(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i==1){if(r=Gr(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84)),c=Gr(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84)),St(r)==St(c))return St(r);if(r==St(c))return r;if(c==St(r))return c}for(i=$h(Eo(S(C(Ao,1),Kn,20,0,[(!n.b&&(n.b=new Dn(he,n,4,7)),n.b),(!n.c&&(n.c=new Dn(he,n,5,8)),n.c)]))),e=Gr(u(fe(i),84));pe(i);)if(t=Gr(u(fe(i),84)),t!=e&&!Y0(t,e)){if(St(t)==St(e))e=St(t);else if(e=mTe(e,t),!e)return null}return e}function rtn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;if(g=e.length,g>0&&(h=(zn(0,e.length),e.charCodeAt(0)),h!=64)){if(h==37&&(d=e.lastIndexOf("%"),l=!1,d!=0&&(d==g-1||(l=(zn(d+1,e.length),e.charCodeAt(d+1)==46))))){if(s=(Ri(1,d,e.length),e.substr(1,d-1)),A=Sn("%",s)?null:ctn(s),i=0,l)try{i=So((zn(d+2,e.length+1),e.substr(d+2)),Wi,et)}catch(D){throw D=Ot(D),L(D,130)?(f=D,T(new eC(f))):T(D)}for(j=LQ(n.Gh());j.Ob();)if(m=IC(j),L(m,519)&&(r=u(m,598),O=r.d,(A==null?O==null:Sn(A,O))&&i--==0))return r;return null}if(a=e.lastIndexOf("."),p=a==-1?e:(Ri(0,a,e.length),e.substr(0,a)),t=0,a!=-1)try{t=So((zn(a+1,e.length+1),e.substr(a+1)),Wi,et)}catch(D){if(D=Ot(D),L(D,130))p=e;else throw T(D)}for(p=Sn("%",p)?null:ctn(p),k=LQ(n.Gh());k.Ob();)if(m=IC(k),L(m,197)&&(c=u(m,197),P=c.xe(),(p==null?P==null:Sn(p,P))&&t--==0))return c;return null}return xGn(n,e)}function zLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(a=new de,h=new Mb,i=new M(n.a.a.b);i.a<i.c.c.length;)if(e=u(E(i),60),l=Ig(e),l)Vc(a.f,l,e);else if(O=xp(e),O)for(c=new M(O.k);c.a<c.c.c.length;)r=u(E(c),18),In(h,r,e);for(t=new M(n.a.a.b);t.a<t.c.c.length;)if(e=u(E(t),60),l=Ig(e),l){for(f=new ie(ce(Qt(l).a.Kc(),new En));pe(f);)if(s=u(fe(f),18),!fr(s)&&(m=s.c,P=s.d,!((en(),mu).Hc(s.c.j)&&mu.Hc(s.d.j)))){if(k=u(ee(a,s.d.i),60),qs(Ns(Ls(Ds(As(new hs,0),100),n.c[e.a.d]),n.c[k.a.d])),m.j==Wn&&IIn((Au(),m))){for(g=u(ot(h,s),21).Kc();g.Ob();)if(d=u(g.Pb(),60),d.d.c<e.d.c){if(p=n.c[d.a.d],j=n.c[e.a.d],p==j)continue;qs(Ns(Ls(Ds(As(new hs,1),100),p),j))}}if(P.j==Zn&&OIn((Au(),P))){for(g=u(ot(h,s),21).Kc();g.Ob();)if(d=u(g.Pb(),60),d.d.c>e.d.c){if(p=n.c[e.a.d],j=n.c[d.a.d],p==j)continue;qs(Ns(Ls(Ds(As(new hs,1),100),p),j))}}}}}function XLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;if(g=u(u(ot(n.r,e),21),87),e==(en(),Zn)||e==Wn){UGn(n,e);return}for(c=e==Xn?(Db(),ij):(Db(),rj),D=e==Xn?(bu(),kf):(bu(),Xs),t=u(Mr(n.b,e),127),i=t.i,r=i.c+Lg(S(C(Ii,1),Cr,28,15,[t.n.b,n.C.b,n.k])),P=i.c+i.b-Lg(S(C(Ii,1),Cr,28,15,[t.n.c,n.C.c,n.k])),s=vz($V(c),n.t),O=e==Xn?li:Pt,d=g.Kc();d.Ob();)l=u(d.Pb(),117),!(!l.c||l.c.d.c.length<=0)&&(j=l.b.Mf(),k=l.e,p=l.c,m=p.i,m.b=(h=p.n,p.e.a+h.b+h.c),m.a=(f=p.n,p.e.b+f.d+f.a),G7(D,$tn),p.f=D,df(p,(Uu(),zs)),m.c=k.a-(m.b-j.a)/2,_=y.Math.min(r,k.a),X=y.Math.max(P,k.a+j.a),m.c<_?m.c=_:m.c+m.b>X&&(m.c=X-m.b),nn(s.d,new ZN(m,CY(s,m))),O=e==Xn?y.Math.max(O,k.b+l.b.Mf().b):y.Math.min(O,k.b));for(O+=e==Xn?n.t:-n.t,A=GY((s.e=O,s)),A>0&&(u(Mr(n.b,e),127).a.b=A),a=g.Kc();a.Ob();)l=u(a.Pb(),117),!(!l.c||l.c.d.c.length<=0)&&(m=l.c.i,m.c-=l.e.a,m.d-=l.e.b)}function VLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(e=new de,h=new ne(n);h.e!=h.i.gc();){for(f=u(ue(h),27),t=new ni,Ve(p_,f,t),p=new B0n,r=u(Wr(new Cn(null,new pb(new ie(ce(cy(f).a.Kc(),new En)))),dIn(p,qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)])))),85),X$n(t,u(r.xc((_n(),!0)),16),new F0n),i=u(Wr(ut(u(r.xc(!1),15).Lc(),new _0n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),s=i.Kc();s.Ob();)c=u(s.Pb(),74),g=XFn(c),g&&(l=u(Fr(wr(e.f,g)),21),l||(l=gqn(g),Vc(e.f,g,l)),Ki(t,l));for(r=u(Wr(new Cn(null,new pb(new ie(ce(Sl(f).a.Kc(),new En)))),dIn(p,qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr])))),85),X$n(t,u(r.xc(!0),16),new H0n),i=u(Wr(ut(u(r.xc(!1),15).Lc(),new q0n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),d=i.Kc();d.Ob();)a=u(d.Pb(),74),g=VFn(a),g&&(l=u(Fr(wr(e.f,g)),21),l||(l=gqn(g),Vc(e.f,g,l)),Ki(t,l))}}function WLe(n,e){KR();var t,i,r,c,s,f,h,l,a,d,g,p,m,k;if(h=Ec(n,0)<0,h&&(n=n1(n)),Ec(n,0)==0)switch(e){case 0:return"0";case 1:return Fm;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return p=new x1,e<0?p.a+="0E+":p.a+="0E",p.a+=e==Wi?"2147483648":""+-e,p.a}a=18,d=F(fs,gh,28,a+1,15,1),t=a,k=n;do l=k,k=Xk(k,10),d[--t]=Se(nr(48,bs(l,er(k,10))))&ui;while(Ec(k,0)!=0);if(r=bs(bs(bs(a,t),e),1),e==0)return h&&(d[--t]=45),ws(d,t,a-t);if(e>0&&Ec(r,-6)>=0){if(Ec(r,0)>=0){for(c=t+Se(r),f=a-1;f>=c;f--)d[f+1]=d[f];return d[++c]=46,h&&(d[--t]=45),ws(d,t,a-t+1)}for(s=2;DL(s,nr(n1(r),1));s++)d[--t]=48;return d[--t]=46,d[--t]=48,h&&(d[--t]=45),ws(d,t,a-t)}return m=t+1,i=a,g=new fg,h&&(g.a+="-"),i-m>=1?(z1(g,d[t]),g.a+=".",g.a+=ws(d,t+1,a-t-1)):g.a+=ws(d,t,a-t),g.a+="E",Ec(r,0)>0&&(g.a+="+"),g.a+=""+_6(r),g.a}function Gb(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;if(j=new V(n.g,n.f),k=ynn(n),k.a=y.Math.max(k.a,e),k.b=y.Math.max(k.b,t),X=k.a/j.a,a=k.b/j.b,D=k.a-j.a,h=k.b-j.b,i)for(s=St(n)?u(z(St(n),(He(),_d)),88):u(z(n,(He(),_d)),88),f=x(z(n,(He(),v9)))===x((Ai(),qc)),O=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));O.e!=O.i.gc();)switch(P=u(ue(O),123),A=u(z(P,H2),64),A==(en(),sc)&&(A=Ken(P,s),ht(P,H2,A)),A.g){case 1:f||eu(P,P.i*X);break;case 2:eu(P,P.i+D),f||tu(P,P.j*a);break;case 3:f||eu(P,P.i*X),tu(P,P.j+h);break;case 4:f||tu(P,P.j*a)}if(kg(n,k.a,k.b),r)for(g=new ne((!n.n&&(n.n=new q(Sr,n,1,7)),n.n));g.e!=g.i.gc();)d=u(ue(g),135),p=d.i+d.g/2,m=d.j+d.f/2,_=p/j.a,l=m/j.b,_+l>=1&&(_-l>0&&m>=0?(eu(d,d.i+D),tu(d,d.j+h*l)):_-l<0&&p>=0&&(eu(d,d.i+D*_),tu(d,d.j+h)));return ht(n,(He(),Hd),(go(),c=u(of(P9),9),new _o(c,u(xs(c,c.length),9),0))),new V(X,a)}function QGn(n){rb(n,new gd(UE(eb(Yd(nb(Zd(new Fa,es),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new V4n),es))),Q(n,es,CP,rn(fce)),Q(n,es,yw,rn(hce)),Q(n,es,r2,rn(cce)),Q(n,es,d3,rn(uce)),Q(n,es,a3,rn(oce)),Q(n,es,Xm,rn(rce)),Q(n,es,r8,rn(Jln)),Q(n,es,Vm,rn(sce)),Q(n,es,XB,rn(vq)),Q(n,es,zB,rn(kq)),Q(n,es,NP,rn(Yln)),Q(n,es,VB,rn(yq)),Q(n,es,WB,rn(Zln)),Q(n,es,Grn,rn(n1n)),Q(n,es,Urn,rn(Qln)),Q(n,es,Frn,rn(_O)),Q(n,es,_rn,rn(HO)),Q(n,es,Hrn,rn(Rj)),Q(n,es,qrn,rn(e1n)),Q(n,es,Brn,rn(Wln))}function zS(n){var e,t,i,r,c,s,f,h,l,a,d;if(n==null)throw T(new th(gu));if(l=n,c=n.length,h=!1,c>0&&(e=(zn(0,n.length),n.charCodeAt(0)),(e==45||e==43)&&(n=(zn(1,n.length+1),n.substr(1)),--c,h=e==45)),c==0)throw T(new th(Vb+l+'"'));for(;n.length>0&&(zn(0,n.length),n.charCodeAt(0)==48);)n=(zn(1,n.length+1),n.substr(1)),--c;if(c>(PUn(),gQn)[10])throw T(new th(Vb+l+'"'));for(r=0;r<c;r++)if(VKn((zn(r,n.length),n.charCodeAt(r)))==-1)throw T(new th(Vb+l+'"'));for(d=0,s=vun[10],a=WF[10],f=n1(kun[10]),t=!0,i=c%s,i>0&&(d=-parseInt((Ri(0,i,n.length),n.substr(0,i)),10),n=(zn(i,n.length+1),n.substr(i)),c-=i,t=!1);c>=s;){if(i=parseInt((Ri(0,s,n.length),n.substr(0,s)),10),n=(zn(s,n.length+1),n.substr(s)),c-=s,t)t=!1;else{if(Ec(d,f)<0)throw T(new th(Vb+l+'"'));d=er(d,a)}d=bs(d,i)}if(Ec(d,0)>0)throw T(new th(Vb+l+'"'));if(!h&&(d=n1(d),Ec(d,0)<0))throw T(new th(Vb+l+'"'));return d}function ctn(n){UR();var e,t,i,r,c,s,f,h;if(n==null)return null;if(r=ih(n,wu(37)),r<0)return n;for(h=new mo((Ri(0,r,n.length),n.substr(0,r))),e=F(Ru,s2,28,4,15,1),f=0,i=0,s=n.length;r<s;r++)if(zn(r,n.length),n.charCodeAt(r)==37&&n.length>r+2&&B$((zn(r+1,n.length),n.charCodeAt(r+1)),Kdn,Bdn)&&B$((zn(r+2,n.length),n.charCodeAt(r+2)),Kdn,Bdn))if(t=g0e((zn(r+1,n.length),n.charCodeAt(r+1)),(zn(r+2,n.length),n.charCodeAt(r+2))),r+=2,i>0?(t&192)==128?e[f++]=t<<24>>24:i=0:t>=128&&((t&224)==192?(e[f++]=t<<24>>24,i=2):(t&240)==224?(e[f++]=t<<24>>24,i=3):(t&248)==240&&(e[f++]=t<<24>>24,i=4)),i>0){if(f==i){switch(f){case 2:{z1(h,((e[0]&31)<<6|e[1]&63)&ui);break}case 3:{z1(h,((e[0]&15)<<12|(e[1]&63)<<6|e[2]&63)&ui);break}}f=0,i=0}}else{for(c=0;c<f;++c)z1(h,e[c]&ui);f=0,h.a+=String.fromCharCode(t)}else{for(c=0;c<f;++c)z1(h,e[c]&ui);f=0,z1(h,(zn(r,n.length),n.charCodeAt(r)))}return h.a}function YGn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m;if(p=St(Gr(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84))),m=St(Gr(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))),d=p==m,f=new Ni,e=u(z(n,(DC(),udn)),75),e&&e.b>=2){if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i==0)t=(K1(),r=new jE,r),ve((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),t);else if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i>1)for(g=new kp((!n.a&&(n.a=new q(Tt,n,6,6)),n.a));g.e!=g.i.gc();)A5(g);dy(e,u(N((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),0),166))}if(d)for(i=new ne((!n.a&&(n.a=new q(Tt,n,6,6)),n.a));i.e!=i.i.gc();)for(t=u(ue(i),166),l=new ne((!t.a&&(t.a=new ti(xo,t,5)),t.a));l.e!=l.i.gc();)h=u(ue(l),377),f.a=y.Math.max(f.a,h.a),f.b=y.Math.max(f.b,h.b);for(s=new ne((!n.n&&(n.n=new q(Sr,n,1,7)),n.n));s.e!=s.i.gc();)c=u(ue(s),135),a=u(z(c,j9),8),a&&Bo(c,a.a,a.b),d&&(f.a=y.Math.max(f.a,c.i+c.g),f.b=y.Math.max(f.b,c.j+c.f));return f}function ZGn(n,e,t,i,r){var c,s,f;if(n$n(n,e),s=e[0],c=Xi(t.c,0),f=-1,tY(t))if(i>0){if(s+i>n.length)return!1;f=yS((Ri(0,s+i,n.length),n.substr(0,s+i)),e)}else f=yS(n,e);switch(c){case 71:return f=Ug(n,s,S(C(fn,1),J,2,6,[Kzn,Bzn]),e),r.e=f,!0;case 77:return lSe(n,e,r,f,s);case 76:return aSe(n,e,r,f,s);case 69:return iEe(n,e,s,r);case 99:return rEe(n,e,s,r);case 97:return f=Ug(n,s,S(C(fn,1),J,2,6,["AM","PM"]),e),r.b=f,!0;case 121:return dSe(n,e,s,f,t,r);case 100:return f<=0?!1:(r.c=f,!0);case 83:return f<0?!1:v8e(f,s,e[0],r);case 104:f==12&&(f=0);case 75:case 72:return f<0?!1:(r.f=f,r.g=!1,!0);case 107:return f<0?!1:(r.f=f,r.g=!0,!0);case 109:return f<0?!1:(r.j=f,!0);case 115:return f<0?!1:(r.n=f,!0);case 90:if(s<n.length&&(zn(s,n.length),n.charCodeAt(s)==90))return++e[0],r.o=0,!0;case 122:case 118:return Sye(n,s,e,r);default:return!1}}function JLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn;for(A=e.c.length,r=new Wg(n.a,t,null,null),yn=F(Ii,Cr,28,A,15,1),k=F(Ii,Cr,28,A,15,1),m=F(Ii,Cr,28,A,15,1),j=0,f=0;f<A;f++)k[f]=et,m[f]=Wi;for(h=0;h<A;h++)for(i=(Nn(h,e.c.length),u(e.c[h],185)),yn[h]=gR(i),yn[j]>yn[h]&&(j=h),d=new M(n.a.b);d.a<d.c.c.length;)for(a=u(E(d),30),O=new M(a.a);O.a<O.c.c.length;)P=u(E(O),10),X=$(i.p[P.p])+$(i.d[P.p]),k[h]=y.Math.min(k[h],X),m[h]=y.Math.max(m[h],X+P.o.b);for(tn=F(Ii,Cr,28,A,15,1),l=0;l<A;l++)(Nn(l,e.c.length),u(e.c[l],185)).o==(If(),Bd)?tn[l]=k[j]-k[l]:tn[l]=m[j]-m[l];for(c=F(Ii,Cr,28,A,15,1),p=new M(n.a.b);p.a<p.c.c.length;)for(g=u(E(p),30),_=new M(g.a);_.a<_.c.c.length;){for(D=u(E(_),10),s=0;s<A;s++)c[s]=$((Nn(s,e.c.length),u(e.c[s],185)).p[D.p])+$((Nn(s,e.c.length),u(e.c[s],185)).d[D.p])+tn[s];Iyn(c,O$n(mE.prototype.Me,mE,[])),r.p[D.p]=(c[1]+c[2])/2,r.d[D.p]=0}return r}function QLe(n,e,t){var i,r,c,s,f;switch(i=e.i,c=n.i.o,r=n.i.d,f=n.n,s=cc(S(C(Ei,1),J,8,0,[f,n.a])),n.j.g){case 1:uh(e,(bu(),Xs)),i.d=-r.d-t-i.a,u(u(sn(e.d,0),187).of((W(),S3)),291)==(Co(),nl)?(df(e,(Uu(),zs)),i.c=s.a-$(B(v(n,y2)))-t-i.b):(df(e,(Uu(),Th)),i.c=s.a+$(B(v(n,y2)))+t);break;case 2:df(e,(Uu(),Th)),i.c=c.a+r.c+t,u(u(sn(e.d,0),187).of((W(),S3)),291)==(Co(),nl)?(uh(e,(bu(),Xs)),i.d=s.b-$(B(v(n,y2)))-t-i.a):(uh(e,(bu(),kf)),i.d=s.b+$(B(v(n,y2)))+t);break;case 3:uh(e,(bu(),kf)),i.d=c.b+r.a+t,u(u(sn(e.d,0),187).of((W(),S3)),291)==(Co(),nl)?(df(e,(Uu(),zs)),i.c=s.a-$(B(v(n,y2)))-t-i.b):(df(e,(Uu(),Th)),i.c=s.a+$(B(v(n,y2)))+t);break;case 4:df(e,(Uu(),zs)),i.c=-r.b-t-i.b,u(u(sn(e.d,0),187).of((W(),S3)),291)==(Co(),nl)?(uh(e,(bu(),Xs)),i.d=s.b-$(B(v(n,y2)))-t-i.a):(uh(e,(bu(),kf)),i.d=s.b+$(B(v(n,y2)))+t)}}function YLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k;for(t.Ug(kVn,1),!e.a&&(e.a=new q(Ye,e,10,11)),i=$(B(z(e,(Bf(),zO)))),a=$(B(z(e,l9))),g=u(z(e,h9),107),p=new aX(i,a),c=vzn(p,e,g),C$n(e,p),f=u(z(e,m1n),17).a;f>1;){if(r=rCe(e),d=c.g,m=u(z(e,h9),107),k=$(B(z(e,zO))),(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i>1&&$(B(z(e,(_h(),Iq))))!=Pt&&(c.c+(m.b+m.c))/(c.b+(m.d+m.a))<k?ht(r,(_h(),Xw),$(B(z(e,Xw)))+$(B(z(e,Iq)))):(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i>1&&$(B(z(e,(_h(),Pq))))!=Pt&&(c.c+(m.b+m.c))/(c.b+(m.d+m.a))>k&&ht(r,(_h(),Xw),y.Math.max($(B(z(e,f9))),$(B(z(r,Xw)))-$(B(z(e,Pq))))),p=new aX(i,a),h=vzn(p,r,g),l=h.g,l>=d&&l==l){for(s=0;s<(!r.a&&(r.a=new q(Ye,r,10,11)),r.a).i;s++)z_n(n,u(N((!r.a&&(r.a=new q(Ye,r,10,11)),r.a),s),27),u(N((!e.a&&(e.a=new q(Ye,e,10,11)),e.a),s),27));C$n(e,p),s2e(c,h.c),o2e(c,h.b)}--f}ht(e,(_h(),Dv),c.b),ht(e,A3,c.c),t.Vg()}function ZLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(e.Ug("Interactive node layering",1),t=new Z,g=new M(n.a);g.a<g.c.c.length;){for(a=u(E(g),10),h=a.n.a,f=h+a.o.a,f=y.Math.max(h+1,f),O=new xi(t,0),i=null;O.b<O.d.gc();)if(j=(oe(O.b<O.d.gc()),u(O.d.Xb(O.c=O.b++),578)),j.c>=f){oe(O.b>0),O.a.Xb(O.c=--O.b);break}else j.a>h&&(i?(hi(i.b,j.b),i.a=y.Math.max(i.a,j.a),bo(O)):(nn(j.b,a),j.c=y.Math.min(j.c,h),j.a=y.Math.max(j.a,f),i=j));i||(i=new Vyn,i.c=h,i.a=f,B0(O,i),nn(i.b,a))}for(s=n.b,l=0,P=new M(t);P.a<P.c.c.length;)for(j=u(E(P),578),r=new Nc(n),r.p=l++,Fn(s.c,r),p=new M(j.b);p.a<p.c.c.length;)a=u(E(p),10),$i(a,r),a.p=0;for(d=new M(n.a);d.a<d.c.c.length;)if(a=u(E(d),10),a.p==0)for(k=Hqn(a,n);k.a.gc()!=0;)m=u(k.a.ec().Kc().Pb(),10),k.a.Bc(m)!=null,Ki(k,Hqn(m,n));for(c=new xi(s,0);c.b<c.d.gc();)(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),30)).a.c.length==0&&bo(c);n.a.c.length=0,e.Vg()}function nNe(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt;for(p=0,Rn=0,h=new M(n);h.a<h.c.c.length;)f=u(E(h),27),RGn(f),p=y.Math.max(p,f.g),Rn+=f.g*f.f;for(m=Rn/n.c.length,kn=R7e(n,m),Rn+=n.c.length*kn,p=y.Math.max(p,y.Math.sqrt(Rn*s))+t.b,xe=t.b,Nt=t.d,g=0,a=t.b+t.c,yn=new Mt,Re(yn,Y(0)),X=new Mt,l=new xi(n,0);l.b<l.d.gc();)f=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),27)),te=f.g,d=f.f,xe+te>p&&(c&&(ir(X,g),ir(yn,Y(l.b-1))),xe=t.b,Nt+=g+e,g=0,a=y.Math.max(a,t.b+t.c+te)),eu(f,xe),tu(f,Nt),a=y.Math.max(a,xe+te+t.c),g=y.Math.max(g,d),xe+=te+e;if(a=y.Math.max(a,i),Bn=Nt+g+t.a,Bn<r&&(g+=r-Bn,Bn=r),c)for(xe=t.b,l=new xi(n,0),ir(yn,Y(n.c.length)),tn=ge(yn,0),P=u(be(tn),17).a,ir(X,g),_=ge(X,0),D=0;l.b<l.d.gc();)l.b==P&&(xe=t.b,D=$(B(be(_))),P=u(be(tn),17).a),f=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),27)),O=f.f,Ib(f,D),k=D,l.b==P&&(j=a-xe-t.c,A=f.g,Ob(f,j),Enn(f,new V(j,k),new V(A,O))),xe+=f.g+e;return new V(a,Bn)}function eNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn;for(e.Ug("Compound graph postprocessor",1),t=on(un(v(n,(cn(),AH)))),f=u(v(n,(W(),efn)),229),a=new ni,P=f.ec().Kc();P.Ob();){for(j=u(P.Pb(),18),s=new _u(f.cc(j)),Ln(),Yt(s,new LG(n)),_=lve((Nn(0,s.c.length),u(s.c[0],249))),tn=Txn(u(sn(s,s.c.length-1),249)),A=_.i,Q4(tn.i,A)?O=A.e:O=Hi(A),d=w9e(j,s),vo(j.a),g=null,c=new M(s);c.a<c.c.c.length;)r=u(E(c),249),k=new Ni,pnn(k,r.a,O),p=r.b,i=new Tu,J$(i,0,p.a),nw(i,k),D=new rr(Of(p.c)),X=new rr(Of(p.d)),tt(D,k),tt(X,k),g&&(i.b==0?m=X:m=(oe(i.b!=0),u(i.a.a.c,8)),yn=y.Math.abs(g.a-m.a)>vh,kn=y.Math.abs(g.b-m.b)>vh,(!t&&yn&&kn||t&&(yn||kn))&&Re(j.a,D)),Ki(j.a,i),i.b==0?g=D:g=(oe(i.b!=0),u(i.c.b.c,8)),Bve(p,d,k),Txn(r)==tn&&(Hi(tn.i)!=r.a&&(k=new Ni,pnn(k,Hi(tn.i),O)),U(j,gH,k)),yje(p,j,O),a.a.zc(p,a);Zi(j,_),Oi(j,tn)}for(l=a.a.ec().Kc();l.Ob();)h=u(l.Pb(),18),Zi(h,null),Oi(h,null);e.Vg()}function tNe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(r=u(v(n,(lc(),v0)),88),a=r==(ci(),Kr)||r==Xr?Wf:Xr,t=u(Wr(ut(new Cn(null,new On(n.b,16)),new n4n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),h=u(Wr(_r(t.Oc(),new wkn(e)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),h.Gc(u(Wr(_r(t.Oc(),new gkn(e)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),16)),h.jd(new pkn(a)),g=new Ul(new mkn(r)),i=new de,f=h.Kc();f.Ob();)s=u(f.Pb(),240),l=u(s.a,40),on(un(s.c))?(g.a.zc(l,(_n(),ga))==null,new Y3(g.a.Zc(l,!1)).a.gc()>0&&Ve(i,l,u(new Y3(g.a.Zc(l,!1)).a.Vc(),40)),new Y3(g.a.ad(l,!0)).a.gc()>1&&Ve(i,IKn(g,l),l)):(new Y3(g.a.Zc(l,!1)).a.gc()>0&&(c=u(new Y3(g.a.Zc(l,!1)).a.Vc(),40),x(c)===x(Fr(wr(i.f,l)))&&u(v(l,(pt(),nq)),15).Fc(c)),new Y3(g.a.ad(l,!0)).a.gc()>1&&(d=IKn(g,l),x(Fr(wr(i.f,d)))===x(l)&&u(v(d,(pt(),nq)),15).Fc(l)),g.a.Bc(l)!=null)}function nzn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(n.gc()==1)return u(n.Xb(0),235);if(n.gc()<=0)return new zT;for(r=n.Kc();r.Ob();){for(t=u(r.Pb(),235),m=0,a=et,d=et,h=Wi,l=Wi,p=new M(t.e);p.a<p.c.c.length;)g=u(E(p),153),m+=u(v(g,(Us(),k3)),17).a,a=y.Math.min(a,g.d.a-g.e.a/2),d=y.Math.min(d,g.d.b-g.e.b/2),h=y.Math.max(h,g.d.a+g.e.a/2),l=y.Math.max(l,g.d.b+g.e.b/2);U(t,(Us(),k3),Y(m)),U(t,(Q1(),L8),new V(a,d)),U(t,lj,new V(h,l))}for(Ln(),n.jd(new G0n),k=new zT,Ur(k,u(n.Xb(0),96)),f=0,O=0,c=n.Kc();c.Ob();)t=u(c.Pb(),235),j=mi(Fi(u(v(t,(Q1(),lj)),8)),u(v(t,L8),8)),f=y.Math.max(f,j.a),O+=j.a*j.b;for(f=y.Math.max(f,y.Math.sqrt(O)*$(B(v(k,(Us(),zYn))))),P=$(B(v(k,yI))),A=0,D=0,s=0,e=P,i=n.Kc();i.Ob();)t=u(i.Pb(),235),j=mi(Fi(u(v(t,(Q1(),lj)),8)),u(v(t,L8),8)),A+j.a>f&&(A=0,D+=s+P,s=0),IPe(k,t,A,D),e=y.Math.max(e,A+j.a),s=y.Math.max(s,j.b),A+=j.a+P;return k}function iNe(n){Ren();var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(n==null||(c=iC(n),m=A5e(c),m%4!=0))return null;if(k=m/4|0,k==0)return F(Ru,s2,28,0,15,1);for(d=null,e=0,t=0,i=0,r=0,s=0,f=0,h=0,l=0,p=0,g=0,a=0,d=F(Ru,s2,28,k*3,15,1);p<k-1;p++){if(!n7(s=c[a++])||!n7(f=c[a++])||!n7(h=c[a++])||!n7(l=c[a++]))return null;e=nh[s],t=nh[f],i=nh[h],r=nh[l],d[g++]=(e<<2|t>>4)<<24>>24,d[g++]=((t&15)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24}return!n7(s=c[a++])||!n7(f=c[a++])?null:(e=nh[s],t=nh[f],h=c[a++],l=c[a++],nh[h]==-1||nh[l]==-1?h==61&&l==61?t&15?null:(j=F(Ru,s2,28,p*3+1,15,1),Oc(d,0,j,0,p*3),j[g]=(e<<2|t>>4)<<24>>24,j):h!=61&&l==61?(i=nh[h],i&3?null:(j=F(Ru,s2,28,p*3+2,15,1),Oc(d,0,j,0,p*3),j[g++]=(e<<2|t>>4)<<24>>24,j[g]=((t&15)<<4|i>>2&15)<<24>>24,j)):null:(i=nh[h],r=nh[l],d[g++]=(e<<2|t>>4)<<24>>24,d[g++]=((t&15)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24,d))}function rNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;for(e.Ug(XXn,1),m=u(v(n,(cn(),$l)),223),r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),l=Y7(i.a),s=l,f=0,h=s.length;f<h;++f)if(c=s[f],c.k==(Vn(),_c)){if(m==(El(),R3))for(d=new M(c.j);d.a<d.c.c.length;)a=u(E(d),12),a.e.c.length==0||W8e(a),a.g.c.length==0||J8e(a);else if(L(v(c,(W(),st)),18))j=u(v(c,st),18),P=u(h1(c,(en(),Wn)).Kc().Pb(),12),O=u(h1(c,Zn).Kc().Pb(),12),A=u(v(P,st),12),D=u(v(O,st),12),Zi(j,D),Oi(j,A),_=new rr(O.i.n),_.a=cc(S(C(Ei,1),J,8,0,[D.i.n,D.n,D.a])).a,Re(j.a,_),_=new rr(P.i.n),_.a=cc(S(C(Ei,1),J,8,0,[A.i.n,A.n,A.a])).a,Re(j.a,_);else{if(c.j.c.length>=2){for(k=!0,g=new M(c.j),t=u(E(g),12),p=null;g.a<g.c.c.length;)if(p=t,t=u(E(g),12),!rt(v(p,st),v(t,st))){k=!1;break}}else k=!1;for(d=new M(c.j);d.a<d.c.c.length;)a=u(E(d),12),a.e.c.length==0||DCe(a,k),a.g.c.length==0||$Ce(a,k)}$i(c,null)}e.Vg()}function cNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;for(f=new M(n.a.b);f.a<f.c.c.length;)for(c=u(E(f),30),A=new M(c.a);A.a<A.c.c.length;)O=u(E(A),10),e.g[O.p]=O,e.a[O.p]=O,e.d[O.p]=0;for(h=n.a.b,e.c==(fh(),y1)&&(h=Qo(h)),s=h.Kc();s.Ob();)for(c=u(s.Pb(),30),p=-1,g=c.a,e.o==(If(),Xf)&&(p=et,g=Qo(g)),_=g.Kc();_.Ob();)if(D=u(_.Pb(),10),d=null,e.c==y1?d=u(sn(n.b.f,D.p),15):d=u(sn(n.b.b,D.p),15),d.gc()>0)if(i=d.gc(),l=wi(y.Math.floor((i+1)/2))-1,r=wi(y.Math.ceil((i+1)/2))-1,e.o==Xf)for(a=r;a>=l;a--)e.a[D.p]==D&&(k=u(d.Xb(a),42),m=u(k.a,10),!sf(t,k.b)&&p>n.b.e[m.p]&&(e.a[m.p]=D,e.g[D.p]=e.g[m.p],e.a[D.p]=e.g[D.p],e.f[e.g[D.p].p]=(_n(),!!(on(e.f[e.g[D.p].p])&D.k==(Vn(),Ti))),p=n.b.e[m.p]));else for(a=l;a<=r;a++)e.a[D.p]==D&&(P=u(d.Xb(a),42),j=u(P.a,10),!sf(t,P.b)&&p<n.b.e[j.p]&&(e.a[j.p]=D,e.g[D.p]=e.g[j.p],e.a[D.p]=e.g[D.p],e.f[e.g[D.p].p]=(_n(),!!(on(e.f[e.g[D.p].p])&D.k==(Vn(),Ti))),p=n.b.e[j.p]))}function ezn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn;return A=n.c[(Nn(0,e.c.length),u(e.c[0],18)).p],tn=n.c[(Nn(1,e.c.length),u(e.c[1],18)).p],A.a.e.e-A.a.a-(A.b.e.e-A.b.a)==0&&tn.a.e.e-tn.a.a-(tn.b.e.e-tn.b.a)==0||(P=A.b.e.f,!L(P,10))?!1:(j=u(P,10),_=n.i[j.p],X=j.c?qr(j.c.a,j,0):-1,c=Pt,X>0&&(r=u(sn(j.c.a,X-1),10),s=n.i[r.p],yn=y.Math.ceil(jg(n.n,r,j)),c=_.a.e-j.d.d-(s.a.e+r.o.b+r.d.a)-yn),l=Pt,X<j.c.a.c.length-1&&(h=u(sn(j.c.a,X+1),10),a=n.i[h.p],yn=y.Math.ceil(jg(n.n,h,j)),l=a.a.e-h.d.d-(_.a.e+j.o.b+j.d.a)-yn),t&&(Cf(),Fs(jh),y.Math.abs(c-l)<=jh||c==l||isNaN(c)&&isNaN(l))?!0:(i=fD(A.a),f=-fD(A.b),d=-fD(tn.a),O=fD(tn.b),k=A.a.e.e-A.a.a-(A.b.e.e-A.b.a)>0&&tn.a.e.e-tn.a.a-(tn.b.e.e-tn.b.a)<0,m=A.a.e.e-A.a.a-(A.b.e.e-A.b.a)<0&&tn.a.e.e-tn.a.a-(tn.b.e.e-tn.b.a)>0,p=A.a.e.e+A.b.a<tn.b.e.e+tn.a.a,g=A.a.e.e+A.b.a>tn.b.e.e+tn.a.a,D=0,!k&&!m&&(g?c+d>0?D=d:l-i>0&&(D=i):p&&(c+f>0?D=f:l-O>0&&(D=O))),_.a.e+=D,_.b&&(_.d.e+=D),!1))}function tzn(n,e,t){var i,r,c,s,f,h,l,a,d,g;if(i=new Ho(e.Lf().a,e.Lf().b,e.Mf().a,e.Mf().b),r=new mp,n.c)for(s=new M(e.Rf());s.a<s.c.c.length;)c=u(E(s),187),r.c=c.Lf().a+e.Lf().a,r.d=c.Lf().b+e.Lf().b,r.b=c.Mf().a,r.a=c.Mf().b,L5(i,r);for(l=new M(e.Xf());l.a<l.c.c.length;){if(h=u(E(l),852),a=h.Lf().a+e.Lf().a,d=h.Lf().b+e.Lf().b,n.e&&(r.c=a,r.d=d,r.b=h.Mf().a,r.a=h.Mf().b,L5(i,r)),n.d)for(s=new M(h.Rf());s.a<s.c.c.length;)c=u(E(s),187),r.c=c.Lf().a+a,r.d=c.Lf().b+d,r.b=c.Mf().a,r.a=c.Mf().b,L5(i,r);if(n.b){if(g=new V(-t,-t),u(e.of((He(),Ww)),181).Hc((zu(),Oa)))for(s=new M(h.Rf());s.a<s.c.c.length;)c=u(E(s),187),g.a+=c.Mf().a+t,g.b+=c.Mf().b+t;g.a=y.Math.max(g.a,0),g.b=y.Math.max(g.b,0),EUn(i,h.Wf(),h.Uf(),e,h,g,t)}}n.b&&EUn(i,e.Wf(),e.Uf(),e,null,null,t),f=new qN(e.Vf()),f.d=y.Math.max(0,e.Lf().b-i.d),f.a=y.Math.max(0,i.d+i.a-(e.Lf().b+e.Mf().b)),f.b=y.Math.max(0,e.Lf().a-i.c),f.c=y.Math.max(0,i.c+i.b-(e.Lf().a+e.Mf().a)),e.Zf(f)}function uNe(){var n=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F"];return n[34]='\\"',n[92]="\\\\",n[173]="\\u00ad",n[1536]="\\u0600",n[1537]="\\u0601",n[1538]="\\u0602",n[1539]="\\u0603",n[1757]="\\u06dd",n[1807]="\\u070f",n[6068]="\\u17b4",n[6069]="\\u17b5",n[8203]="\\u200b",n[8204]="\\u200c",n[8205]="\\u200d",n[8206]="\\u200e",n[8207]="\\u200f",n[8232]="\\u2028",n[8233]="\\u2029",n[8234]="\\u202a",n[8235]="\\u202b",n[8236]="\\u202c",n[8237]="\\u202d",n[8238]="\\u202e",n[8288]="\\u2060",n[8289]="\\u2061",n[8290]="\\u2062",n[8291]="\\u2063",n[8292]="\\u2064",n[8298]="\\u206a",n[8299]="\\u206b",n[8300]="\\u206c",n[8301]="\\u206d",n[8302]="\\u206e",n[8303]="\\u206f",n[65279]="\\ufeff",n[65529]="\\ufff9",n[65530]="\\ufffa",n[65531]="\\ufffb",n}function izn(n){rb(n,new gd(yz(UE(eb(Yd(nb(Zd(new Fa,cu),"ELK Force"),"Force-based algorithm provided by the Eclipse Layout Kernel. Implements methods that follow physical analogies by simulating forces that move the nodes into a balanced distribution. Currently the original Eades model and the Fruchterman - Reingold model are supported."),new W0n),cu),yt((Mm(),vA),S(C(kA,1),G,245,0,[pA]))))),Q(n,cu,Dy,Y(1)),Q(n,cu,yw,80),Q(n,cu,eB,5),Q(n,cu,l3,Gm),Q(n,cu,uP,Y(1)),Q(n,cu,t8,(_n(),!0)),Q(n,cu,Wb,mon),Q(n,cu,i8,rn(won)),Q(n,cu,tB,rn(von)),Q(n,cu,oP,!1),Q(n,cu,r8,rn(pon)),Q(n,cu,zm,rn(JYn)),Q(n,cu,a3,rn(QYn)),Q(n,cu,r2,rn(WYn)),Q(n,cu,Xm,rn(VYn)),Q(n,cu,Vm,rn(ZYn)),Q(n,cu,cP,rn(gon)),Q(n,cu,ZK,rn(k_)),Q(n,cu,Xtn,rn(kI)),Q(n,cu,nB,rn(v_)),Q(n,cu,Vtn,rn(kon)),Q(n,cu,$y,rn(cZn)),Q(n,cu,xy,rn(uZn)),Q(n,cu,Ry,rn(rZn)),Q(n,cu,Ky,rn(iZn)),Q(n,cu,Jb,yon)}function sa(n,e){nt();var t,i,r,c,s,f,h,l,a,d,g,p,m;if(c6(Uv)==0){for(d=F(DDe,J,122,yse.length,0,1),s=0;s<d.length;s++)d[s]=new yo(4);for(i=new i6,c=0;c<hbn.length;c++){if(a=new yo(4),c<84?(f=c*2,p=(zn(f,KF.length),KF.charCodeAt(f)),g=(zn(f+1,KF.length),KF.charCodeAt(f+1)),xc(a,p,g)):(f=(c-84)*2,xc(a,lbn[f],lbn[f+1])),h=hbn[c],Sn(h,"Specials")&&xc(a,65520,65533),Sn(h,WJn)&&(xc(a,983040,1048573),xc(a,1048576,1114109)),Lr(Uv,h,a),Lr(B9,h,bw(a)),l=i.a.length,0<l?i.a=qo(i.a,0,0):0>l&&(i.a+=OCn(F(fs,gh,28,-l,15,1))),i.a+="Is",ih(h,wu(32))>=0)for(r=0;r<h.length;r++)zn(r,h.length),h.charCodeAt(r)!=32&&C4(i,(zn(r,h.length),h.charCodeAt(r)));else i.a+=""+h;YY(i.a,h,!0)}YY(RF,"Cn",!1),YY(eun,"Cn",!0),t=new yo(4),xc(t,0,cv),Lr(Uv,"ALL",t),Lr(B9,"ALL",bw(t)),!rg&&(rg=new de),Lr(rg,RF,RF),!rg&&(rg=new de),Lr(rg,eun,eun),!rg&&(rg=new de),Lr(rg,"ALL","ALL")}return m=u(Dc(e?Uv:B9,n),138),m}function rzn(n){rb(n,new gd(yz(UE(eb(Yd(nb(Zd(new Fa,uu),"ELK Mr. Tree"),"Tree-based algorithm provided by the Eclipse Layout Kernel. Computes a spanning tree of the input graph and arranges all nodes according to the resulting parent-children hierarchy. I pity the fool who doesn't use Mr. Tree Layout."),new g4n),gVn),jn((Mm(),pU))))),Q(n,uu,Wb,Aln),Q(n,uu,yw,20),Q(n,uu,$B,3),Q(n,uu,l3,Gm),Q(n,uu,Dy,Y(1)),Q(n,uu,t8,(_n(),!0)),Q(n,uu,Uy,rn(Cln)),Q(n,uu,xB,Sln),Q(n,uu,i8,rn(jre)),Q(n,uu,SP,rn(Ere)),Q(n,uu,r2,rn(Tre)),Q(n,uu,zm,rn(Cre)),Q(n,uu,d3,rn(Sre)),Q(n,uu,a3,rn(Pre)),Q(n,uu,Xm,rn(Mre)),Q(n,uu,r8,rn(Iln)),Q(n,uu,Vm,rn(Ire)),Q(n,uu,Arn,rn($ln)),Q(n,uu,Nrn,rn(Lln)),Q(n,uu,$y,rn(Nre)),Q(n,uu,xy,rn(Dre)),Q(n,uu,Ry,rn(Lre)),Q(n,uu,Ky,rn(Are)),Q(n,uu,Jb,Dln),Q(n,uu,Orn,rn(A2)),Q(n,uu,Lrn,rn(oq)),Q(n,uu,Irn,rn(Ph)),Q(n,uu,Srn,rn(Tln)),Q(n,uu,Prn,rn(Pln))}function czn(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(l=u(u(ot(n.r,e),21),87),s=Bye(n,e),t=n.u.Hc((zu(),C9)),h=l.Kc();h.Ob();)if(f=u(h.Pb(),117),!(!f.c||f.c.d.c.length<=0)){switch(g=f.b.Mf(),a=f.c,d=a.i,d.b=(c=a.n,a.e.a+c.b+c.c),d.a=(r=a.n,a.e.b+r.d+r.a),e.g){case 1:f.a?(d.c=(g.a-d.b)/2,df(a,(Uu(),pa))):s||t?(d.c=-d.b-n.s,df(a,(Uu(),zs))):(d.c=g.a+n.s,df(a,(Uu(),Th))),d.d=-d.a-n.t,uh(a,(bu(),Xs));break;case 3:f.a?(d.c=(g.a-d.b)/2,df(a,(Uu(),pa))):s||t?(d.c=-d.b-n.s,df(a,(Uu(),zs))):(d.c=g.a+n.s,df(a,(Uu(),Th))),d.d=g.b+n.t,uh(a,(bu(),kf));break;case 2:f.a?(i=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(g.b-i)/2,uh(a,(bu(),ma))):s||t?(d.d=-d.a-n.t,uh(a,(bu(),Xs))):(d.d=g.b+n.t,uh(a,(bu(),kf))),d.c=g.a+n.s,df(a,(Uu(),Th));break;case 4:f.a?(i=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(g.b-i)/2,uh(a,(bu(),ma))):s||t?(d.d=-d.a-n.t,uh(a,(bu(),Xs))):(d.d=g.b+n.t,uh(a,(bu(),kf))),d.c=-d.b-n.s,df(a,(Uu(),zs))}s=!1}}function oNe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;if(g=!1,d=!1,mg(u(v(i,(cn(),Ft)),101))){s=!1,f=!1;n:for(m=new M(i.j);m.a<m.c.c.length;)for(p=u(E(m),12),j=$h(Eo(S(C(Ao,1),Kn,20,0,[new e4(p),new ip(p)])));pe(j);)if(k=u(fe(j),12),!on(un(v(k.i,q8)))){if(p.j==(en(),Xn)){s=!0;break n}if(p.j==ae){f=!0;break n}}g=f&&!s,d=s&&!f}if(!g&&!d&&i.b.c.length!=0){for(a=0,l=new M(i.b);l.a<l.c.c.length;)h=u(E(l),72),a+=h.n.b+h.o.b/2;a/=i.b.c.length,O=a>=i.o.b/2}else O=!d;O?(P=u(v(i,(W(),I3)),15),P?g?c=P:(r=u(v(i,M3),15),r?P.gc()<=r.gc()?c=P:c=r:(c=new Z,U(i,M3,c))):(c=new Z,U(i,I3,c))):(r=u(v(i,(W(),M3)),15),r?d?c=r:(P=u(v(i,I3),15),P?r.gc()<=P.gc()?c=r:c=P:(c=new Z,U(i,I3,c))):(c=new Z,U(i,M3,c))),c.Fc(n),U(n,(W(),tO),t),e.d==t?(Oi(e,null),t.e.c.length+t.g.c.length==0&&ic(t,null),j6e(t)):(Zi(e,null),t.e.c.length+t.g.c.length==0&&ic(t,null)),vo(e.a)}function sNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt;for(t.Ug("MinWidth layering",1),p=e.b,tn=e.a,Nt=u(v(e,(cn(),ihn)),17).a,f=u(v(e,rhn),17).a,n.b=$(B(v(e,Ws))),n.d=Pt,D=new M(tn);D.a<D.c.c.length;)O=u(E(D),10),O.k==(Vn(),zt)&&(Rn=O.o.b,n.d=y.Math.min(n.d,Rn));for(n.d=y.Math.max(1,n.d),yn=tn.c.length,n.c=F(ye,_e,28,yn,15,1),n.f=F(ye,_e,28,yn,15,1),n.e=F(Ii,Cr,28,yn,15,1),l=0,n.a=0,_=new M(tn);_.a<_.c.c.length;)O=u(E(_),10),O.p=l++,n.c[O.p]=FRn(ji(O)),n.f[O.p]=FRn(Qt(O)),n.e[O.p]=O.o.b/n.d,n.a+=n.e[O.p];for(n.b/=n.d,n.a/=yn,X=YEe(tn),Yt(tn,HW(new N7n(n))),k=Pt,m=et,s=null,xe=Nt,te=Nt,c=f,r=f,Nt<0&&(xe=u(eln.a.Id(),17).a,te=u(eln.b.Id(),17).a),f<0&&(c=u(nln.a.Id(),17).a,r=u(nln.b.Id(),17).a),Bn=xe;Bn<=te;Bn++)for(i=c;i<=r;i++)kn=HIe(n,Bn,i,tn,X),P=$(B(kn.a)),g=u(kn.b,15),j=g.gc(),(P<k||P==k&&j<m)&&(k=P,m=j,s=g);for(d=s.Kc();d.Ob();){for(a=u(d.Pb(),15),h=new Nc(e),A=a.Kc();A.Ob();)O=u(A.Pb(),10),$i(O,h);Fn(p.c,h)}Yk(p),tn.c.length=0,t.Vg()}function fNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;if(t.Ug("Spline edge routing",1),e.b.c.length==0){e.f.a=0,t.Vg();return}O=$(B(v(e,(cn(),S2)))),f=$(B(v(e,Kd))),s=$(B(v(e,T2))),P=u(v(e,MH),350),yn=P==(om(),Y8),tn=$(B(v(e,Wfn))),n.d=e,n.j.c.length=0,n.a.c.length=0,Hu(n.k),h=u(sn(e.b,0),30),a=PM(h.a,(AS(),Lj)),m=u(sn(e.b,e.b.c.length-1),30),d=PM(m.a,Lj),k=new M(e.b),j=null,te=0;do{for(A=k.a<k.c.c.length?u(E(k),30):null,qLe(n,j,A),gIe(n),kn=ghe(ave(ET(ut(new Cn(null,new On(n.i,16)),new B3n),new F3n))),Bn=0,D=te,g=!j||a&&j==h,p=!A||d&&A==m,kn>0?(l=0,j&&(l+=f),l+=(kn-1)*s,A&&(l+=f),yn&&A&&(l=y.Math.max(l,PCe(A,s,O,tn))),l<O&&!g&&!p&&(Bn=(O-l)/2,l=O),D+=l):!g&&!p&&(D+=O),A&&Ven(A,D),X=new M(n.i);X.a<X.c.c.length;)_=u(E(X),131),_.a.c=te,_.a.b=D-te,_.F=Bn,_.p=!j;hi(n.a,n.i),te=D,A&&(te+=A.c.a),j=A,g=p}while(A);for(r=new M(n.j);r.a<r.c.c.length;)i=u(E(r),18),c=eve(n,i),U(i,(W(),M2),c),Rn=FCe(n,i),U(i,Ld,Rn);e.f.a=te,n.d=null,t.Vg()}function hNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(n.b=e,n.a=u(v(e,(cn(),Qfn)),17).a,n.c=u(v(e,Zfn),17).a,n.c==0&&(n.c=et),j=new xi(e.b,0);j.b<j.d.gc();){for(k=(oe(j.b<j.d.gc()),u(j.d.Xb(j.c=j.b++),30)),f=new Z,a=-1,D=-1,A=new M(k.a);A.a<A.c.c.length;)O=u(E(A),10),wl((N7(),new ie(ce(Ml(O).a.Kc(),new En))))>=n.a&&(i=UIe(n,O),a=y.Math.max(a,i.b),D=y.Math.max(D,i.d),nn(f,new bi(O,i)));for(yn=new Z,l=0;l<a;++l)bb(yn,0,(oe(j.b>0),j.a.Xb(j.c=--j.b),kn=new Nc(n.b),B0(j,kn),oe(j.b<j.d.gc()),j.d.Xb(j.c=j.b++),kn));for(s=new M(f);s.a<s.c.c.length;)if(r=u(E(s),42),p=u(r.b,580).a,!!p)for(g=new M(p);g.a<g.c.c.length;)d=u(E(g),10),MZ(n,d,MI,yn);for(t=new Z,h=0;h<D;++h)nn(t,(Rn=new Nc(n.b),B0(j,Rn),Rn));for(c=new M(f);c.a<c.c.c.length;)if(r=u(E(c),42),tn=u(r.b,580).c,!!tn)for(X=new M(tn);X.a<X.c.c.length;)_=u(E(X),10),MZ(n,_,TI,t)}for(P=new xi(e.b,0);P.b<P.d.gc();)m=(oe(P.b<P.d.gc()),u(P.d.Xb(P.c=P.b++),30)),m.a.c.length==0&&bo(P)}function uzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(k=n.i!=0,A=!1,P=null,fo(n.e)){if(a=e.gc(),a>0){for(g=a<100?null:new R1(a),l=new BQ(e),m=l.g,P=F(ye,_e,28,a,15,1),i=0,D=new Pb(a),r=0;r<n.i;++r){f=n.g[r],p=f;n:for(O=0;O<2;++O){for(h=a;--h>=0;)if(p!=null?rt(p,m[h]):x(p)===x(m[h])){P.length<=i&&(j=P,P=F(ye,_e,28,2*P.length,15,1),Oc(j,0,P,0,i)),P[i++]=r,ve(D,m[h]);break n}if(p=p,x(p)===x(f))break}}if(l=D,m=D.g,a=i,i>P.length&&(j=P,P=F(ye,_e,28,i,15,1),Oc(j,0,P,0,i)),i>0){for(A=!0,c=0;c<i;++c)p=m[c],g=fPn(n,u(p,76),g);for(s=i;--s>=0;)Jp(n,P[s]);if(i!=a){for(r=a;--r>=i;)Jp(l,r);j=P,P=F(ye,_e,28,i,15,1),Oc(j,0,P,0,i)}e=l}}}else for(e=T7e(n,e),r=n.i;--r>=0;)e.Hc(n.g[r])&&(Jp(n,r),A=!0);if(A){if(P!=null){for(t=e.gc(),d=t==1?W6(n,4,e.Kc().Pb(),null,P[0],k):W6(n,6,e,P,P[0],k),g=t<100?null:new R1(t),r=e.Kc();r.Ob();)p=r.Pb(),g=PV(n,u(p,76),g);g?(g.nj(d),g.oj()):it(n.e,d)}else{for(g=Aae(e.gc()),r=e.Kc();r.Ob();)p=r.Pb(),g=PV(n,u(p,76),g);g&&g.oj()}return!0}else return!1}function lNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(t=new yBn(e),t.a||FPe(e),l=RSe(e),h=new Mb,j=new Eqn,k=new M(e.a);k.a<k.c.c.length;)for(m=u(E(k),10),r=new ie(ce(Qt(m).a.Kc(),new En));pe(r);)i=u(fe(r),18),(i.c.i.k==(Vn(),Zt)||i.d.i.k==Zt)&&(a=ZAe(n,i,l,j),In(h,Ex(a.d),a.a));for(s=new Z,A=u(v(t.c,(W(),Dl)),21).Kc();A.Ob();){switch(O=u(A.Pb(),64),p=j.c[O.g],g=j.b[O.g],f=j.a[O.g],c=null,P=null,O.g){case 4:c=new Ho(n.d.a,p,l.b.a-n.d.a,g-p),P=new Ho(n.d.a,p,f,g-p),db(l,new V(c.c+c.b,c.d)),db(l,new V(c.c+c.b,c.d+c.a));break;case 2:c=new Ho(l.a.a,p,n.c.a-l.a.a,g-p),P=new Ho(n.c.a-f,p,f,g-p),db(l,new V(c.c,c.d)),db(l,new V(c.c,c.d+c.a));break;case 1:c=new Ho(p,n.d.b,g-p,l.b.b-n.d.b),P=new Ho(p,n.d.b,g-p,f),db(l,new V(c.c,c.d+c.a)),db(l,new V(c.c+c.b,c.d+c.a));break;case 3:c=new Ho(p,l.a.b,g-p,n.c.b-l.a.b),P=new Ho(p,n.c.b-f,g-p,f),db(l,new V(c.c,c.d)),db(l,new V(c.c+c.b,c.d))}c&&(d=new Gyn,d.d=O,d.b=c,d.c=P,d.a=PT(u(ot(h,Ex(O)),21)),Fn(s.c,d))}return hi(t.b,s),t.d=H6e(dAe(l)),t}function ozn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k;if(t.p[e.p]==null){f=!0,t.p[e.p]=0,s=e,k=t.o==(If(),Bd)?li:Pt;do r=n.b.e[s.p],c=s.c.a.c.length,t.o==Bd&&r>0||t.o==Xf&&r<c-1?(h=null,l=null,t.o==Xf?h=u(sn(s.c.a,r+1),10):h=u(sn(s.c.a,r-1),10),l=t.g[h.p],ozn(n,l,t),k=n.e.wg(k,e,s),t.j[e.p]==e&&(t.j[e.p]=t.j[l.p]),t.j[e.p]==t.j[l.p]?(m=jg(n.d,s,h),t.o==Xf?(i=$(t.p[e.p]),d=$(t.p[l.p])+$(t.d[h.p])-h.d.d-m-s.d.a-s.o.b-$(t.d[s.p]),f?(f=!1,t.p[e.p]=y.Math.min(d,k)):t.p[e.p]=y.Math.min(i,y.Math.min(d,k))):(i=$(t.p[e.p]),d=$(t.p[l.p])+$(t.d[h.p])+h.o.b+h.d.a+m+s.d.d-$(t.d[s.p]),f?(f=!1,t.p[e.p]=y.Math.max(d,k)):t.p[e.p]=y.Math.max(i,y.Math.max(d,k)))):(m=$(B(v(n.a,(cn(),g0)))),p=dxn(n,t.j[e.p]),a=dxn(n,t.j[l.p]),t.o==Xf?(g=$(t.p[e.p])+$(t.d[s.p])+s.o.b+s.d.a+m-($(t.p[l.p])+$(t.d[h.p])-h.d.d),FAn(p,a,g)):(g=$(t.p[e.p])+$(t.d[s.p])-s.d.d-$(t.p[l.p])-$(t.d[h.p])-h.o.b-h.d.a-m,FAn(p,a,g)))):k=n.e.wg(k,e,s),s=t.a[s.p];while(s!=e);qfe(n.e,e)}}function aNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn;if(t=$(B(v(n.a.j,(cn(),qfn)))),t<-1||!n.a.i||Ep(u(v(n.a.o,Ft),101))||uc(n.a.o,(en(),Zn)).gc()<2&&uc(n.a.o,Wn).gc()<2)return!0;if(n.a.c.kg())return!1;for(_=0,D=0,A=new Z,h=n.a.e,l=0,a=h.length;l<a;++l){for(f=h[l],g=f,p=0,k=g.length;p<k;++p){if(d=g[p],d.k==(Vn(),_c)){Fn(A.c,d);continue}for(i=n.b[d.c.p][d.p],d.k==Zt?(i.b=1,u(v(d,(W(),st)),12).j==(en(),Zn)&&(D+=i.a)):(kn=uc(d,(en(),Wn)),kn.dc()||!yN(kn,new Zpn)?i.c=1:(r=uc(d,Zn),(r.dc()||!yN(r,new Ypn))&&(_+=i.a))),s=new ie(ce(Qt(d).a.Kc(),new En));pe(s);)c=u(fe(s),18),_+=i.c,D+=i.b,yn=c.d.i,JJ(n,i,yn);for(P=Eo(S(C(Ao,1),Kn,20,0,[uc(d,(en(),Xn)),uc(d,ae)])),tn=new ie(new qX(P.a.length,P.a));pe(tn);)X=u(fe(tn),12),O=u(v(X,(W(),Xu)),10),O&&(_+=i.c,D+=i.b,JJ(n,i,O))}for(m=new M(A);m.a<m.c.c.length;)for(d=u(E(m),10),i=n.b[d.c.p][d.p],s=new ie(ce(Qt(d).a.Kc(),new En));pe(s);)c=u(fe(s),18),_+=i.c,D+=i.b,yn=c.d.i,JJ(n,i,yn);A.c.length=0}return e=_+D,j=e==0?Pt:(_-D)/e,j>=t}function dNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;for(A=e,O=new Mb,D=new Mb,a=Sb(A,Scn),i=new OOn(n,t,O,D),Nje(i.a,i.b,i.c,i.d,a),h=(tn=O.i,tn||(O.i=new Tg(O,O.c))),kn=h.Kc();kn.Ob();)for(yn=u(kn.Pb(),166),r=u(ot(O,yn),21),k=r.Kc();k.Ob();)if(m=k.Pb(),_=u(Ng(n.d,m),166),_)f=(!yn.e&&(yn.e=new Dn(Tt,yn,10,9)),yn.e),ve(f,_);else throw s=bl(A,Eh),g=kWn+m+yWn+s,p=g+iv,T(new eh(p));for(l=(X=D.i,X||(D.i=new Tg(D,D.c))),Bn=l.Kc();Bn.Ob();)for(Rn=u(Bn.Pb(),166),c=u(ot(D,Rn),21),P=c.Kc();P.Ob();)if(j=P.Pb(),_=u(Ng(n.d,j),166),_)d=(!Rn.g&&(Rn.g=new Dn(Tt,Rn,9,10)),Rn.g),ve(d,_);else throw s=bl(A,Eh),g=kWn+j+yWn+s,p=g+iv,T(new eh(p));!t.b&&(t.b=new Dn(he,t,4,7)),t.b.i!=0&&(!t.c&&(t.c=new Dn(he,t,5,8)),t.c.i!=0)&&(!t.b&&(t.b=new Dn(he,t,4,7)),t.b.i<=1&&(!t.c&&(t.c=new Dn(he,t,5,8)),t.c.i<=1))&&(!t.a&&(t.a=new q(Tt,t,6,6)),t.a).i==1&&(te=u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166),!Px(te)&&!Ix(te)&&(mC(te,u(N((!t.b&&(t.b=new Dn(he,t,4,7)),t.b),0),84)),vC(te,u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84))))}function bNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(A=n.a,D=0,_=A.length;D<_;++D){for(O=A[D],l=et,a=et,m=new M(O.e);m.a<m.c.c.length;)g=u(E(m),10),s=g.c?qr(g.c.a,g,0):-1,s>0?(d=u(sn(g.c.a,s-1),10),yn=jg(n.b,g,d),j=g.n.b-g.d.d-(d.n.b+d.o.b+d.d.a+yn)):j=g.n.b-g.d.d,l=y.Math.min(j,l),s<g.c.a.c.length-1?(d=u(sn(g.c.a,s+1),10),yn=jg(n.b,g,d),P=d.n.b-d.d.d-(g.n.b+g.o.b+g.d.a+yn)):P=2*g.n.b,a=y.Math.min(P,a);for(h=et,c=!1,r=u(sn(O.e,0),10),Rn=new M(r.j);Rn.a<Rn.c.c.length;)for(kn=u(E(Rn),12),k=r.n.b+kn.n.b+kn.a.b,i=new M(kn.e);i.a<i.c.c.length;)t=u(E(i),18),X=t.c,e=X.i.n.b+X.n.b+X.a.b-k,y.Math.abs(e)<y.Math.abs(h)&&y.Math.abs(e)<(e<0?l:a)&&(h=e,c=!0);for(f=u(sn(O.e,O.e.c.length-1),10),tn=new M(f.j);tn.a<tn.c.c.length;)for(X=u(E(tn),12),k=f.n.b+X.n.b+X.a.b,i=new M(X.g);i.a<i.c.c.length;)t=u(E(i),18),kn=t.d,e=kn.i.n.b+kn.n.b+kn.a.b-k,y.Math.abs(e)<y.Math.abs(h)&&y.Math.abs(e)<(e<0?l:a)&&(h=e,c=!0);if(c&&h!=0)for(p=new M(O.e);p.a<p.c.c.length;)g=u(E(p),10),g.n.b+=h}}function wNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(i=new Z,r=et,c=et,s=et,t)for(r=n.f.a,k=new M(e.j);k.a<k.c.c.length;)for(m=u(E(k),12),h=new M(m.g);h.a<h.c.c.length;)f=u(E(h),18),f.a.b!=0&&(a=u(p4(f.a),8),a.a<r&&(c=r-a.a,s=et,i.c.length=0,r=a.a),a.a<=r&&(Fn(i.c,f),f.a.b>1&&(s=y.Math.min(s,y.Math.abs(u(Zo(f.a,1),8).b-a.b)))));else for(k=new M(e.j);k.a<k.c.c.length;)for(m=u(E(k),12),h=new M(m.e);h.a<h.c.c.length;)f=u(E(h),18),f.a.b!=0&&(g=u($s(f.a),8),g.a>r&&(c=g.a-r,s=et,i.c.length=0,r=g.a),g.a>=r&&(Fn(i.c,f),f.a.b>1&&(s=y.Math.min(s,y.Math.abs(u(Zo(f.a,f.a.b-2),8).b-g.b)))));if(i.c.length!=0&&c>e.o.a/2&&s>e.o.b/2){for(p=new Ic,ic(p,e),gi(p,(en(),Xn)),p.n.a=e.o.a/2,P=new Ic,ic(P,e),gi(P,ae),P.n.a=e.o.a/2,P.n.b=e.o.b,h=new M(i);h.a<h.c.c.length;)f=u(E(h),18),t?(l=u(UN(f.a),8),j=f.a.b==0?Of(f.d):u(p4(f.a),8),j.b>=l.b?Zi(f,P):Zi(f,p)):(l=u(c0e(f.a),8),j=f.a.b==0?Of(f.c):u($s(f.a),8),j.b>=l.b?Oi(f,P):Oi(f,p)),d=u(v(f,(cn(),Rr)),75),d&&iw(d,l,!0);e.n.a=r-e.o.a/2}}function gNe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(f=ge(n.b,0);f.b!=f.d.c;)if(s=u(be(f),40),!Sn(s.c,OP))for(l=_Me(s,n),e==(ci(),Kr)||e==Xr?Yt(l,new T4n):Yt(l,new C4n),h=l.c.length,i=0;i<h;i++)a=(Nn(i,l.c.length),u(l.c[i],65)).c,Sn(a.c,"n11"),!(on(un(v(s,(pt(),pln))))&&!TRn((Nn(i,l.c.length),u(l.c[i],65)),n))&&(r=h==1?.5:(i+1)/(h+1),e==Kr?(c=$(B(v(s,jf))),g=s.e.b+s.f.b*r,gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(y.Math.min(c,s.e.a-t),g)),gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(s.e.a,g))):e==Xr?(c=$(B(v(s,Js)))+t,g=s.e.b+s.f.b*r,gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(c,g)),gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(s.e.a+s.f.a,g))):e==us?(c=$(B(v(s,jf))),d=s.e.a+s.f.a*r,gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(d,y.Math.min(s.e.b-t,c))),gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(d,s.e.b))):(c=$(B(v(s,Js)))+t,d=s.e.a+s.f.a*r,gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(d,c)),gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(d,s.e.b+s.f.b))))}function my(n,e,t,i,r,c,s,f,h){var l,a,d,g,p,m,k;switch(p=t,a=new Cl(h),Ha(a,(Vn(),Zt)),U(a,(W(),tfn),s),U(a,(cn(),Ft),(Ai(),qc)),k=$(B(n.of(Fw))),U(a,Fw,k),d=new Ic,ic(d,a),e!=Qf&&e!=Ia||(i>=0?p=zp(f):p=xk(zp(f)),n.qf(Tv,p)),l=new Ni,g=!1,n.pf(b0)?(YX(l,u(n.of(b0),8)),g=!0):C1e(l,s.a/2,s.b/2),p.g){case 4:U(a,ou,(Yo(),ya)),U(a,rO,(hd(),m2)),a.o.b=s.b,k<0&&(a.o.a=-k),gi(d,(en(),Zn)),g||(l.a=s.a),l.a-=s.a;break;case 2:U(a,ou,(Yo(),xw)),U(a,rO,(hd(),mv)),a.o.b=s.b,k<0&&(a.o.a=-k),gi(d,(en(),Wn)),g||(l.a=0);break;case 1:U(a,Ad,(vl(),k2)),a.o.a=s.a,k<0&&(a.o.b=-k),gi(d,(en(),ae)),g||(l.b=s.b),l.b-=s.b;break;case 3:U(a,Ad,(vl(),E3)),a.o.a=s.a,k<0&&(a.o.b=-k),gi(d,(en(),Xn)),g||(l.b=0)}if(YX(d.n,l),U(a,b0,l),e==Ud||e==tl||e==qc){if(m=0,e==Ud&&n.pf(v1))switch(p.g){case 1:case 2:m=u(n.of(v1),17).a;break;case 3:case 4:m=-u(n.of(v1),17).a}else switch(p.g){case 4:case 2:m=c.b,e==tl&&(m/=r.b);break;case 1:case 3:m=c.a,e==tl&&(m/=r.a)}U(a,f0,m)}return U(a,gc,p),a}function pNe(){Ez();function n(i){var r=this;this.dispatch=function(c){var s=c.data;switch(s.cmd){case"algorithms":var f=UY((Ln(),new Q3(new ol(La.b))));i.postMessage({id:s.id,data:f});break;case"categories":var h=UY((Ln(),new Q3(new ol(La.c))));i.postMessage({id:s.id,data:h});break;case"options":var l=UY((Ln(),new Q3(new ol(La.d))));i.postMessage({id:s.id,data:l});break;case"register":kAe(s.algorithms),i.postMessage({id:s.id});break;case"layout":WIe(s.graph,s.layoutOptions||{},s.options||{}),i.postMessage({id:s.id,data:s.graph});break}},this.saveDispatch=function(c){try{r.dispatch(c)}catch(s){i.postMessage({id:c.data.id,error:s})}}}function e(i){var r=this;this.dispatcher=new n({postMessage:function(c){r.onmessage({data:c})}}),this.postMessage=function(c){setTimeout(function(){r.dispatcher.saveDispatch({data:c})},0)}}if(typeof document===xK&&typeof self!==xK){var t=new n(self);self.onmessage=t.saveDispatch}else typeof gt!==xK&>.exports&&(Object.defineProperty(Pr,"__esModule",{value:!0}),gt.exports={default:e,Worker:e})}function szn(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(a=new Cl(t),Ur(a,e),U(a,(W(),st),e),a.o.a=e.g,a.o.b=e.f,a.n.a=e.i,a.n.b=e.j,nn(t.a,a),Ve(n.a,e,a),((!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i!=0||on(un(z(e,(cn(),Bw)))))&&U(a,Zsn,(_n(),!0)),l=u(v(t,Hc),21),d=u(v(a,(cn(),Ft)),101),d==(Ai(),Ia)?U(a,Ft,Qf):d!=Qf&&l.Fc((pr(),yv)),g=0,i=u(v(t,Lo),88),h=new ne((!e.c&&(e.c=new q(Qu,e,9,9)),e.c));h.e!=h.i.gc();)f=u(ue(h),123),r=St(e),(x(z(r,Yh))!==x((lh(),k1))||x(z(r,Nd))===x((o1(),pv))||x(z(r,Nd))===x((o1(),gv))||on(un(z(r,l0)))||x(z(r,Rw))!==x((dd(),Aw))||x(z(r,ja))===x((ps(),p0))||x(z(r,ja))===x((ps(),Uw))||x(z(r,$d))===x((a1(),Iv))||x(z(r,$d))===x((a1(),Ov)))&&!on(un(z(e,lO)))&&ht(f,dt,Y(g++)),on(un(z(f,Rd)))||SLe(n,f,a,l,i,d);for(s=new ne((!e.n&&(e.n=new q(Sr,e,1,7)),e.n));s.e!=s.i.gc();)c=u(ue(s),135),!on(un(z(c,Rd)))&&c.a&&nn(a.b,ex(c));return on(un(v(a,q8)))&&l.Fc((pr(),ZI)),on(un(v(a,wO)))&&(l.Fc((pr(),nO)),l.Fc(R8),U(a,Ft,Qf)),a}function QR(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt;for(k=0,Rn=0,l=new M(n.b);l.a<l.c.c.length;)h=u(E(l),163),h.c&&RGn(h.c),k=y.Math.max(k,Pu(h)),Rn+=Pu(h)*ao(h);for(j=Rn/n.b.c.length,kn=mke(n.b,j),Rn+=n.b.c.length*kn,k=y.Math.max(k,y.Math.sqrt(Rn*s))+t.b,xe=t.b,Nt=t.d,p=0,d=t.b+t.c,yn=new Mt,Re(yn,Y(0)),X=new Mt,a=new xi(n.b,0),m=null,f=new Z;a.b<a.d.gc();)h=(oe(a.b<a.d.gc()),u(a.d.Xb(a.c=a.b++),163)),te=Pu(h),g=ao(h),xe+te>k&&(c&&(ir(X,p),ir(yn,Y(a.b-1)),nn(n.d,m),f.c.length=0),xe=t.b,Nt+=p+e,p=0,d=y.Math.max(d,t.b+t.c+te)),Fn(f.c,h),dBn(h,xe,Nt),d=y.Math.max(d,xe+te+t.c),p=y.Math.max(p,g),xe+=te+e,m=h;if(hi(n.a,f),nn(n.d,u(sn(f,f.c.length-1),163)),d=y.Math.max(d,i),Bn=Nt+p+t.a,Bn<r&&(p+=r-Bn,Bn=r),c)for(xe=t.b,a=new xi(n.b,0),ir(yn,Y(n.b.c.length)),tn=ge(yn,0),O=u(be(tn),17).a,ir(X,p),_=ge(X,0),D=0;a.b<a.d.gc();)a.b==O&&(xe=t.b,D=$(B(be(_))),O=u(be(tn),17).a),h=(oe(a.b<a.d.gc()),u(a.d.Xb(a.c=a.b++),163)),GKn(h,D),a.b==O&&(P=d-xe-t.c,A=Pu(h),zKn(h,P),mKn(h,(P-A)/2,0)),xe+=Pu(h)+e;return new V(d,Bn)}function mNe(n){n.N||(n.N=!0,n.b=hc(n,0),Rt(n.b,0),Rt(n.b,1),Rt(n.b,2),n.bb=hc(n,1),Rt(n.bb,0),Rt(n.bb,1),n.fb=hc(n,2),Rt(n.fb,3),Rt(n.fb,4),jt(n.fb,5),n.qb=hc(n,3),Rt(n.qb,0),jt(n.qb,1),jt(n.qb,2),Rt(n.qb,3),Rt(n.qb,4),jt(n.qb,5),Rt(n.qb,6),n.a=Je(n,4),n.c=Je(n,5),n.d=Je(n,6),n.e=Je(n,7),n.f=Je(n,8),n.g=Je(n,9),n.i=Je(n,10),n.j=Je(n,11),n.k=Je(n,12),n.n=Je(n,13),n.o=Je(n,14),n.p=Je(n,15),n.q=Je(n,16),n.s=Je(n,17),n.r=Je(n,18),n.t=Je(n,19),n.u=Je(n,20),n.v=Je(n,21),n.w=Je(n,22),n.B=Je(n,23),n.A=Je(n,24),n.C=Je(n,25),n.D=Je(n,26),n.F=Je(n,27),n.G=Je(n,28),n.H=Je(n,29),n.J=Je(n,30),n.I=Je(n,31),n.K=Je(n,32),n.M=Je(n,33),n.L=Je(n,34),n.P=Je(n,35),n.Q=Je(n,36),n.R=Je(n,37),n.S=Je(n,38),n.T=Je(n,39),n.U=Je(n,40),n.V=Je(n,41),n.X=Je(n,42),n.W=Je(n,43),n.Y=Je(n,44),n.Z=Je(n,45),n.$=Je(n,46),n._=Je(n,47),n.ab=Je(n,48),n.cb=Je(n,49),n.db=Je(n,50),n.eb=Je(n,51),n.gb=Je(n,52),n.hb=Je(n,53),n.ib=Je(n,54),n.jb=Je(n,55),n.kb=Je(n,56),n.lb=Je(n,57),n.mb=Je(n,58),n.nb=Je(n,59),n.ob=Je(n,60),n.pb=Je(n,61))}function vNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(O=0,e.f.a==0)for(j=new M(n);j.a<j.c.c.length;)m=u(E(j),10),O=y.Math.max(O,m.n.a+m.o.a+m.d.c);else O=e.f.a-e.c.a;for(O-=e.c.a,k=new M(n);k.a<k.c.c.length;){switch(m=u(E(k),10),Jv(m.n,O-m.o.a),WV(m.f),UBn(m),(m.q?m.q:(Ln(),Ln(),Wh))._b((cn(),Hw))&&Jv(u(v(m,Hw),8),O-m.o.a),u(v(m,Ch),255).g){case 1:U(m,Ch,(Bh(),Uj));break;case 2:U(m,Ch,(Bh(),qj))}for(P=m.o,D=new M(m.j);D.a<D.c.c.length;){for(A=u(E(D),12),Jv(A.n,P.a-A.o.a),Jv(A.a,A.o.a),gi(A,Cxn(A.j)),s=u(v(A,v1),17),s&&U(A,v1,Y(-s.a)),c=new M(A.g);c.a<c.c.c.length;){for(r=u(E(c),18),i=ge(r.a,0);i.b!=i.d.c;)t=u(be(i),8),t.a=O-t.a;if(l=u(v(r,Rr),75),l)for(h=ge(l,0);h.b!=h.d.c;)f=u(be(h),8),f.a=O-f.a;for(g=new M(r.b);g.a<g.c.c.length;)a=u(E(g),72),Jv(a.n,O-a.o.a)}for(p=new M(A.f);p.a<p.c.c.length;)a=u(E(p),72),Jv(a.n,A.o.a-a.o.a)}for(m.k==(Vn(),Zt)&&(U(m,(W(),gc),Cxn(u(v(m,gc),64))),uje(m)),d=new M(m.b);d.a<d.c.c.length;)a=u(E(d),72),UBn(a),Jv(a.n,P.a-a.o.a)}}function kNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(O=0,e.f.b==0)for(j=new M(n);j.a<j.c.c.length;)m=u(E(j),10),O=y.Math.max(O,m.n.b+m.o.b+m.d.a);else O=e.f.b-e.c.b;for(O-=e.c.b,k=new M(n);k.a<k.c.c.length;){switch(m=u(E(k),10),Wv(m.n,O-m.o.b),JV(m.f),GBn(m),(m.q?m.q:(Ln(),Ln(),Wh))._b((cn(),Hw))&&Wv(u(v(m,Hw),8),O-m.o.b),u(v(m,Ch),255).g){case 3:U(m,Ch,(Bh(),ZO));break;case 4:U(m,Ch,(Bh(),eA))}for(P=m.o,D=new M(m.j);D.a<D.c.c.length;){for(A=u(E(D),12),Wv(A.n,P.b-A.o.b),Wv(A.a,A.o.b),gi(A,Sxn(A.j)),s=u(v(A,v1),17),s&&U(A,v1,Y(-s.a)),c=new M(A.g);c.a<c.c.c.length;){for(r=u(E(c),18),i=ge(r.a,0);i.b!=i.d.c;)t=u(be(i),8),t.b=O-t.b;if(l=u(v(r,Rr),75),l)for(h=ge(l,0);h.b!=h.d.c;)f=u(be(h),8),f.b=O-f.b;for(g=new M(r.b);g.a<g.c.c.length;)a=u(E(g),72),Wv(a.n,O-a.o.b)}for(p=new M(A.f);p.a<p.c.c.length;)a=u(E(p),72),Wv(a.n,A.o.b-a.o.b)}for(m.k==(Vn(),Zt)&&(U(m,(W(),gc),Sxn(u(v(m,gc),64))),y5e(m)),d=new M(m.b);d.a<d.c.c.length;)a=u(E(d),72),GBn(a),Wv(a.n,P.b-a.o.b)}}function yNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe;for(O=new xi(n.b,0),a=e.Kc(),m=0,l=u(a.Pb(),17).a,_=0,t=new ni,tn=new rh;O.b<O.d.gc();){for(P=(oe(O.b<O.d.gc()),u(O.d.Xb(O.c=O.b++),30)),D=new M(P.a);D.a<D.c.c.length;){for(A=u(E(D),10),p=new ie(ce(Qt(A).a.Kc(),new En));pe(p);)d=u(fe(p),18),tn.a.zc(d,tn);for(g=new ie(ce(ji(A).a.Kc(),new En));pe(g);)d=u(fe(g),18),tn.a.Bc(d)!=null}if(m+1==l){for(r=new Nc(n),B0(O,r),c=new Nc(n),B0(O,c),kn=tn.a.ec().Kc();kn.Ob();)yn=u(kn.Pb(),18),t.a._b(yn)||(++_,t.a.zc(yn,t)),s=new Cl(n),U(s,(cn(),Ft),(Ai(),Fv)),$i(s,r),Ha(s,(Vn(),Gf)),k=new Ic,ic(k,s),gi(k,(en(),Wn)),Rn=new Ic,ic(Rn,s),gi(Rn,Zn),i=new Cl(n),U(i,Ft,Fv),$i(i,c),Ha(i,Gf),j=new Ic,ic(j,i),gi(j,Wn),Bn=new Ic,ic(Bn,i),gi(Bn,Zn),X=new Eb,Zi(X,yn.c),Oi(X,k),U(X,(W(),dt),u(v(yn,dt),17)),xe=new Eb,Zi(xe,Rn),Oi(xe,j),U(xe,dt,u(v(yn,dt),17)),Zi(yn,Bn),f=new jJ(s,i,X,xe,yn),U(s,o0,f),U(i,o0,f),te=X.c.i,te.k==Gf&&(h=u(v(te,o0),313),h.d=f,f.g=h);if(a.Ob())l=u(a.Pb(),17).a;else break}++m}return Y(_)}function jNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(k=new Z,g=new M(n.d.b);g.a<g.c.c.length;)for(d=u(E(g),30),m=new M(d.a);m.a<m.c.c.length;){for(p=u(E(m),10),r=u(ee(n.f,p),60),h=new ie(ce(Qt(p).a.Kc(),new En));pe(h);)if(s=u(fe(h),18),i=ge(s.a,0),l=!0,a=null,i.b!=i.d.c){for(e=u(be(i),8),t=null,s.c.j==(en(),Xn)&&(j=new q5(e,new V(e.a,r.d.d),r,s),j.f.a=!0,j.a=s.c,Fn(k.c,j)),s.c.j==ae&&(j=new q5(e,new V(e.a,r.d.d+r.d.a),r,s),j.f.d=!0,j.a=s.c,Fn(k.c,j));i.b!=i.d.c;)t=u(be(i),8),lQ(e.b,t.b)||(a=new q5(e,t,null,s),Fn(k.c,a),l&&(l=!1,t.b<r.d.d?a.f.a=!0:t.b>r.d.d+r.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))),i.b!=i.d.c&&(e=t);a&&(c=u(ee(n.f,s.d.i),60),e.b<c.d.d?a.f.a=!0:e.b>c.d.d+c.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))}for(f=new ie(ce(ji(p).a.Kc(),new En));pe(f);)s=u(fe(f),18),s.a.b!=0&&(e=u($s(s.a),8),s.d.j==(en(),Xn)&&(j=new q5(e,new V(e.a,r.d.d),r,s),j.f.a=!0,j.a=s.d,Fn(k.c,j)),s.d.j==ae&&(j=new q5(e,new V(e.a,r.d.d+r.d.a),r,s),j.f.d=!0,j.a=s.d,Fn(k.c,j)))}return k}function ENe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(h=new Z,d=e.length,s=eY(t),l=0;l<d;++l){switch(a=UX(e,wu(61),l),i=v5e(s,(Ri(l,a,e.length),e.substr(l,a-l))),r=x$(i),c=r.jk().wi(),Xi(e,++a)){case 39:{f=w4(e,39,++a),nn(h,new TM(i,jD((Ri(a,f,e.length),e.substr(a,f-a)),c,r))),l=f+1;break}case 34:{f=w4(e,34,++a),nn(h,new TM(i,jD((Ri(a,f,e.length),e.substr(a,f-a)),c,r))),l=f+1;break}case 91:{g=new Z,nn(h,new TM(i,g));n:for(;;){switch(Xi(e,++a)){case 39:{f=w4(e,39,++a),nn(g,jD((Ri(a,f,e.length),e.substr(a,f-a)),c,r)),a=f+1;break}case 34:{f=w4(e,34,++a),nn(g,jD((Ri(a,f,e.length),e.substr(a,f-a)),c,r)),a=f+1;break}case 110:{if(++a,e.indexOf("ull",a)==a)g.c.push(null);else throw T(new ec(lWn));a+=3;break}}if(a<d)switch(zn(a,e.length),e.charCodeAt(a)){case 44:break;case 93:break n;default:throw T(new ec("Expecting , or ]"))}else break}l=a+1;break}case 110:{if(++a,e.indexOf("ull",a)==a)nn(h,new TM(i,null));else throw T(new ec(lWn));l=a+3;break}}if(l<d){if(zn(l,e.length),e.charCodeAt(l)!=44)throw T(new ec("Expecting ,"))}else break}return uSe(n,h,t)}function MNe(n){var e,t,i,r,c;switch(e=n.c,c=null,e){case 6:return n.Em();case 13:return n.Fm();case 23:return n.wm();case 22:return n.Bm();case 18:return n.ym();case 8:Ze(n),c=(nt(),abn);break;case 9:return n.em(!0);case 19:return n.fm();case 10:switch(n.a){case 100:case 68:case 119:case 87:case 115:case 83:return c=n.dm(n.a),Ze(n),c;case 101:case 102:case 110:case 114:case 116:case 117:case 118:case 120:t=n.cm(),t<hr?c=(nt(),nt(),new Dh(0,t)):c=jIn(DY(t));break;case 99:return n.om();case 67:return n.jm();case 105:return n.rm();case 73:return n.km();case 103:return n.pm();case 88:return n.lm();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n.gm();case 80:case 112:if(c=Dnn(n,n.a),!c)throw T(new Ne($e((Oe(),EF))));break;default:c=$Pn(n.a)}Ze(n);break;case 0:if(n.a==93||n.a==123||n.a==125)throw T(new Ne($e((Oe(),xcn))));c=$Pn(n.a),i=n.a,Ze(n),(i&64512)==Py&&n.c==0&&(n.a&64512)==56320&&(r=F(fs,gh,28,2,15,1),r[0]=i&ui,r[1]=n.a&ui,c=rD(jIn(ws(r,0,r.length)),0),Ze(n));break;default:throw T(new Ne($e((Oe(),xcn))))}return c}function TNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn;for(kn=new Mt,X=new Mt,j=-1,h=new M(n);h.a<h.c.c.length;){for(s=u(E(h),131),s.s=j--,a=0,A=0,c=new M(s.t);c.a<c.c.c.length;)i=u(E(c),274),A+=i.c;for(r=new M(s.i);r.a<r.c.c.length;)i=u(E(r),274),a+=i.c;s.n=a,s.u=A,A==0?xt(X,s,X.c.b,X.c):a==0&&xt(kn,s,kn.c.b,kn.c)}for(Bn=HT(n),d=n.c.length,k=d+1,P=d-1,p=new Z;Bn.a.gc()!=0;){for(;X.b!=0;)_=(oe(X.b!=0),u(Xo(X,X.a.a),131)),Bn.a.Bc(_)!=null,_.s=P--,Znn(_,kn,X);for(;kn.b!=0;)tn=(oe(kn.b!=0),u(Xo(kn,kn.a.a),131)),Bn.a.Bc(tn)!=null,tn.s=k++,Znn(tn,kn,X);for(m=Wi,l=Bn.a.ec().Kc();l.Ob();)s=u(l.Pb(),131),O=s.u-s.n,O>=m&&(O>m&&(p.c.length=0,m=O),Fn(p.c,s));p.c.length!=0&&(g=u(sn(p,cS(e,p.c.length)),131),Bn.a.Bc(g)!=null,g.s=k++,Znn(g,kn,X),p.c.length=0)}for(D=n.c.length+1,f=new M(n);f.a<f.c.c.length;)s=u(E(f),131),s.s<d&&(s.s+=D);for(yn=new M(n);yn.a<yn.c.c.length;)for(tn=u(E(yn),131),t=new xi(tn.t,0);t.b<t.d.gc();)i=(oe(t.b<t.d.gc()),u(t.d.Xb(t.c=t.b++),274)),Rn=i.b,tn.s>Rn.s&&(bo(t),du(Rn.i,i),i.c>0&&(i.a=Rn,nn(Rn.t,i),i.b=tn,nn(tn.i,i)))}function fzn(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn;for(k=new Gc(e.b),D=new Gc(e.b),g=new Gc(e.b),yn=new Gc(e.b),j=new Gc(e.b),tn=ge(e,0);tn.b!=tn.d.c;)for(_=u(be(tn),12),f=new M(_.g);f.a<f.c.c.length;)if(c=u(E(f),18),c.c.i==c.d.i){if(_.j==c.d.j){Fn(yn.c,c);continue}else if(_.j==(en(),Xn)&&c.d.j==ae){Fn(j.c,c);continue}}for(h=new M(j);h.a<h.c.c.length;)c=u(E(h),18),QPe(n,c,t,i,(en(),Zn));for(s=new M(yn);s.a<s.c.c.length;)c=u(E(s),18),kn=new Cl(n),Ha(kn,(Vn(),_c)),U(kn,(cn(),Ft),(Ai(),qc)),U(kn,(W(),st),c),Rn=new Ic,U(Rn,st,c.d),gi(Rn,(en(),Wn)),ic(Rn,kn),Bn=new Ic,U(Bn,st,c.c),gi(Bn,Zn),ic(Bn,kn),U(c.c,Xu,kn),U(c.d,Xu,kn),Zi(c,null),Oi(c,null),Fn(t.c,kn),U(kn,iO,Y(2));for(X=ge(e,0);X.b!=X.d.c;)_=u(be(X),12),l=_.e.c.length>0,P=_.g.c.length>0,l&&P?Fn(g.c,_):l?Fn(k.c,_):P&&Fn(D.c,_);for(m=new M(k);m.a<m.c.c.length;)p=u(E(m),12),nn(r,Hen(n,p,null,t));for(A=new M(D);A.a<A.c.c.length;)O=u(E(A),12),nn(r,Hen(n,null,O,t));for(d=new M(g);d.a<d.c.c.length;)a=u(E(d),12),nn(r,Hen(n,a,a,t))}function utn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(g=Pt,p=Pt,a=0,d=0,h=new Z,f=new ne((!n.b&&(n.b=new q(Vt,n,12,3)),n.b));f.e!=f.i.gc();)c=u(ue(f),74),h=Eo(S(C(Ao,1),Kn,20,0,[h,(!c.n&&(c.n=new q(Sr,c,1,7)),c.n)]));for(A=$h(Eo(S(C(Ao,1),Kn,20,0,[(!n.n&&(n.n=new q(Sr,n,1,7)),n.n),(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),h])));pe(A);)O=u(fe(A),422),l=u(O.of((He(),xv)),140),g>O.nh()-l.b&&(g=O.nh()-l.b),p>O.oh()-l.d&&(p=O.oh()-l.d),a<O.nh()+O.mh()+l.c&&(a=O.nh()+O.mh()+l.c),d<O.oh()+O.lh()+l.a&&(d=O.oh()+O.lh()+l.a);for(s=new ne((!n.b&&(n.b=new q(Vt,n,12,3)),n.b));s.e!=s.i.gc();)for(c=u(ue(s),74),P=new ne((!c.a&&(c.a=new q(Tt,c,6,6)),c.a));P.e!=P.i.gc();)for(j=u(ue(P),166),m=j.j,i=j.b,k=j.k,r=j.c,g=y.Math.min(g,m),g=y.Math.min(g,i),a=y.Math.max(a,m),a=y.Math.max(a,i),p=y.Math.min(p,k),p=y.Math.min(p,r),d=y.Math.max(d,k),d=y.Math.max(d,r),t=new ne((!j.a&&(j.a=new ti(xo,j,5)),j.a));t.e!=t.i.gc();)e=u(ue(t),377),g=y.Math.min(g,e.a),a=y.Math.max(a,e.a),p=y.Math.min(p,e.b),d=y.Math.max(d,e.b);ht(n,(He(),K2),a-g),ht(n,R2,d-p)}function CNe(n,e,t){var i,r,c,s,f,h,l,a,d;if(t.Ug("Network simplex node placement",1),n.e=e,n.n=u(v(e,(W(),E2)),312),BOe(n),iye(n),qt(rc(new Cn(null,new On(n.e.b,16)),new u3n),new nkn(n)),qt(ut(rc(ut(rc(new Cn(null,new On(n.e.b,16)),new v3n),new k3n),new y3n),new j3n),new Z7n(n)),on(un(v(n.e,(cn(),G8))))&&(s=t.eh(1),s.Ug("Straight Edges Pre-Processing",1),oLe(n),s.Vg()),K9e(n.f),c=u(v(e,V8),17).a*n.f.a.c.length,IR(pz(mz(KN(n.f),c),!1),t.eh(1)),n.d.a.gc()!=0){for(s=t.eh(1),s.Ug("Flexible Where Space Processing",1),f=u(ho(Sp(_r(new Cn(null,new On(n.f.a,16)),new o3n),new n3n)),17).a,h=u(ho(_0(_r(new Cn(null,new On(n.f.a,16)),new s3n),new e3n)),17).a,l=h-f,a=hb(new za,n.f),d=hb(new za,n.f),qs(Ns(Ls(As(Ds(new hs,2e4),l),a),d)),qt(ut(ut(EW(n.i),new f3n),new h3n),new MOn(f,a,l,d)),r=n.d.a.ec().Kc();r.Ob();)i=u(r.Pb(),218),i.g=1;IR(pz(mz(KN(n.f),c),!1),s.eh(1)),s.Vg()}on(un(v(e,G8)))&&(s=t.eh(1),s.Ug("Straight Edges Post-Processing",1),Vje(n),s.Vg()),UAe(n),n.e=null,n.f=null,n.i=null,n.c=null,Hu(n.k),n.j=null,n.a=null,n.o=null,n.d.a.$b(),t.Vg()}function SNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(t.Ug("Depth first model order layering",1),n.d=e,j=new Z,k=new M(n.d.a);k.a<k.c.c.length;)p=u(E(k),10),p.k==(Vn(),zt)&&Fn(j.c,p);for(Ln(),Yt(j,new zpn),s=!0,n.b=new Nc(n.d),n.a=null,nn(n.d.b,n.b),n.b.p=0,n.c=0,n.f=new Mt,m=new M(j);m.a<m.c.c.length;)if(p=u(E(m),10),s)$i(p,n.b),s=!1;else if(_Ie(n,p))if(g=n.c,g=mBn(g,p),i=g+2,a=g-n.c,n.f.b==0)den(n,i,p);else if(a>0){for(A=ge(n.f,0);A.b!=A.d.c;)O=u(be(A),10),O.p+=g-n.e;mnn(n),vo(n.f),den(n,i,p)}else{for(Re(n.f,p),p.p=i,n.e=y.Math.max(n.e,i),c=new ie(ce(ji(p).a.Kc(),new En));pe(c);)r=u(fe(c),18),!r.c.i.c&&r.c.i.k==(Vn(),Sc)&&(Re(n.f,r.c.i),r.c.i.p=i-1);n.c=i}else mnn(n),vo(n.f),i=0,pe(new ie(ce(ji(p).a.Kc(),new En)))?(g=0,g=mBn(g,p),i=g+2,den(n,i,p)):(Re(n.f,p),p.p=0,n.e=y.Math.max(n.e,0),n.b=u(sn(n.d.b,0),30),n.c=0);for(n.f.b==0||mnn(n),n.d.a.c.length=0,P=new Z,l=new M(n.d.b);l.a<l.c.c.length;)f=u(E(l),30),f.a.c.length==0&&Fn(P.c,f);for(IY(n.d.b,P),d=0,h=new M(n.d.b);h.a<h.c.c.length;)f=u(E(h),30),f.p=d,++d;t.Vg()}function PNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt,Yu,Br;if(Rn=null,te=e,Bn=GLn(n,$Ln(t),te),X4(Bn,bl(te,Eh)),xe=u(Ng(n.g,Zp(dl(te,lF))),27),g=dl(te,"sourcePort"),i=null,g&&(i=Zp(g)),Nt=u(Ng(n.j,i),123),!xe)throw f=wm(te),m="An edge must have a source node (edge id: '"+f,k=m+iv,T(new eh(k));if(Nt&&!sh(Pf(Nt),xe))throw h=bl(te,Eh),j="The source port of an edge must be a port of the edge's source node (edge id: '"+h,P=j+iv,T(new eh(P));if(yn=(!Bn.b&&(Bn.b=new Dn(he,Bn,4,7)),Bn.b),c=null,Nt?c=Nt:c=xe,ve(yn,c),Yu=u(Ng(n.g,Zp(dl(te,Dcn))),27),p=dl(te,"targetPort"),r=null,p&&(r=Zp(p)),Br=u(Ng(n.j,r),123),!Yu)throw d=wm(te),O="An edge must have a target node (edge id: '"+d,A=O+iv,T(new eh(A));if(Br&&!sh(Pf(Br),Yu))throw l=bl(te,Eh),D="The target port of an edge must be a port of the edge's target node (edge id: '"+l,_=D+iv,T(new eh(_));if(kn=(!Bn.c&&(Bn.c=new Dn(he,Bn,5,8)),Bn.c),s=null,Br?s=Br:s=Yu,ve(kn,s),(!Bn.b&&(Bn.b=new Dn(he,Bn,4,7)),Bn.b).i==0||(!Bn.c&&(Bn.c=new Dn(he,Bn,5,8)),Bn.c).i==0)throw a=bl(te,Eh),X=vWn+a,tn=X+iv,T(new eh(tn));return gS(te,Bn),ZMe(te,Bn),Rn=_$(n,te,Bn),Rn}function hzn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt;for(p=u(v(n,(Q1(),y3)),27),A=et,D=et,P=Wi,O=Wi,X=new M(n.e);X.a<X.c.c.length;)_=u(E(X),153),Bn=_.d,te=_.e,A=y.Math.min(A,Bn.a-te.a/2),D=y.Math.min(D,Bn.b-te.b/2),P=y.Math.max(P,Bn.a+te.a/2),O=y.Math.max(O,Bn.b+te.b/2);for(t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),250),Bn=e.d,te=e.e,A=y.Math.min(A,Bn.a-te.a/2),D=y.Math.min(D,Bn.b-te.b/2),P=y.Math.max(P,Bn.a+te.a/2),O=y.Math.max(O,Bn.b+te.b/2);for(Rn=u(z(p,(Us(),YYn)),107),kn=new V(Rn.b-A,Rn.d-D),l=new M(n.e);l.a<l.c.c.length;)h=u(E(l),153),yn=v(h,y3),L(yn,207)&&(k=u(yn,27),tn=tt(new rr(h.d),kn),Bo(k,tn.a-k.g/2,tn.b-k.f/2));for(c=new M(n.c);c.a<c.c.c.length;)r=u(E(c),290),d=u(v(r,y3),74),g=Xg(d,!0,!0),xe=new rr(pQ(r)),tt(xe,kn),j7(g,xe.a,xe.b),nu(r.a,new SMn(kn,g)),i=new rr(mQ(r)),tt(i,kn),y7(g,i.a,i.b);for(f=new M(n.d);f.a<f.c.c.length;)s=u(E(f),454),m=u(v(s,y3),135),j=tt(new rr(s.d),kn),Bo(m,j.a,j.b);Nt=P-A+(Rn.b+Rn.c),a=O-D+(Rn.d+Rn.a),on(un(z(p,(He(),Vw))))||Gb(p,Nt,a,!1,!0),ht(p,K2,Nt-(Rn.b+Rn.c)),ht(p,R2,a-(Rn.d+Rn.a))}function lzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;return d=mIe(lu(n,(en(),Yf)),e),m=_g(lu(n,ef),e),D=_g(lu(n,Do),e),yn=hS(lu(n,Cs),e),g=hS(lu(n,os),e),O=_g(lu(n,tf),e),k=_g(lu(n,Wu),e),X=_g(lu(n,$o),e),_=_g(lu(n,ss),e),kn=hS(lu(n,su),e),P=_g(lu(n,mu),e),A=_g(lu(n,Ju),e),tn=_g(lu(n,pu),e),Rn=hS(lu(n,vu),e),p=hS(lu(n,xu),e),j=_g(lu(n,Uc),e),t=Lg(S(C(Ii,1),Cr,28,15,[O.a,yn.a,X.a,Rn.a])),i=Lg(S(C(Ii,1),Cr,28,15,[m.a,d.a,D.a,j.a])),r=P.a,c=Lg(S(C(Ii,1),Cr,28,15,[k.a,g.a,_.a,p.a])),l=Lg(S(C(Ii,1),Cr,28,15,[O.b,m.b,k.b,A.b])),h=Lg(S(C(Ii,1),Cr,28,15,[yn.b,d.b,g.b,j.b])),a=kn.b,f=Lg(S(C(Ii,1),Cr,28,15,[X.b,D.b,_.b,tn.b])),Zl(lu(n,Yf),t+r,l+a),Zl(lu(n,Uc),t+r,l+a),Zl(lu(n,ef),t+r,0),Zl(lu(n,Do),t+r,l+a+h),Zl(lu(n,Cs),0,l+a),Zl(lu(n,os),t+r+i,l+a),Zl(lu(n,Wu),t+r+i,0),Zl(lu(n,$o),0,l+a+h),Zl(lu(n,ss),t+r+i,l+a+h),Zl(lu(n,su),0,l),Zl(lu(n,mu),t,0),Zl(lu(n,pu),0,l+a+h),Zl(lu(n,xu),t+r+i,0),s=new Ni,s.a=Lg(S(C(Ii,1),Cr,28,15,[t+i+r+c,kn.a,A.a,tn.a])),s.b=Lg(S(C(Ii,1),Cr,28,15,[l+h+a+f,P.b,Rn.b,p.b])),s}function azn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(O=new V(Pt,Pt),e=new V(li,li),yn=new M(n);yn.a<yn.c.c.length;)tn=u(E(yn),8),O.a=y.Math.min(O.a,tn.a),O.b=y.Math.min(O.b,tn.b),e.a=y.Math.max(e.a,tn.a),e.b=y.Math.max(e.b,tn.b);for(g=new V(e.a-O.a,e.b-O.b),l=new V(O.a-50,O.b-g.a-50),a=new V(O.a-50,e.b+g.a+50),d=new V(e.a+g.b/2+50,O.b+g.b/2),p=new Fen(l,a,d),X=new ni,c=new Z,t=new Z,X.a.zc(p,X),Rn=new M(n);Rn.a<Rn.c.c.length;){for(kn=u(E(Rn),8),c.c.length=0,_=X.a.ec().Kc();_.Ob();)A=u(_.Pb(),317),i=A.d,J1(i,A.a),xb(J1(A.d,kn),J1(A.d,A.a))<0&&Fn(c.c,A);for(t.c.length=0,D=new M(c);D.a<D.c.c.length;)for(A=u(E(D),317),j=new M(A.e);j.a<j.c.c.length;){for(m=u(E(j),177),s=!0,h=new M(c);h.a<h.c.c.length;)f=u(E(h),317),f!=A&&(mc(m,sn(f.e,0))||mc(m,sn(f.e,1))||mc(m,sn(f.e,2)))&&(s=!1);s&&Fn(t.c,m)}for(_Fn(X,c),qi(X,new Qbn),k=new M(t);k.a<k.c.c.length;)m=u(E(k),177),fi(X,new Fen(kn,m.a,m.b))}for(P=new ni,qi(X,new I9n(P)),r=P.a.ec().Kc();r.Ob();)m=u(r.Pb(),177),(tC(p,m.a)||tC(p,m.b))&&r.Qb();return qi(P,new Ybn),P}function Mc(){Mc=R,iEn(),Moe=Ci.a,u(N(H(Ci.a),0),19),joe=Ci.f,u(N(H(Ci.f),0),19),u(N(H(Ci.f),1),35),Eoe=Ci.n,u(N(H(Ci.n),0),35),u(N(H(Ci.n),1),35),u(N(H(Ci.n),2),35),u(N(H(Ci.n),3),35),Idn=Ci.g,u(N(H(Ci.g),0),19),u(N(H(Ci.g),1),35),yoe=Ci.c,u(N(H(Ci.c),0),19),u(N(H(Ci.c),1),19),Odn=Ci.i,u(N(H(Ci.i),0),19),u(N(H(Ci.i),1),19),u(N(H(Ci.i),2),19),u(N(H(Ci.i),3),19),u(N(H(Ci.i),4),35),Adn=Ci.j,u(N(H(Ci.j),0),19),Pdn=Ci.d,u(N(H(Ci.d),0),19),u(N(H(Ci.d),1),19),u(N(H(Ci.d),2),19),u(N(H(Ci.d),3),19),u(N(H(Ci.d),4),35),u(N(H(Ci.d),5),35),u(N(H(Ci.d),6),35),u(N(H(Ci.d),7),35),koe=Ci.b,u(N(H(Ci.b),0),35),u(N(H(Ci.b),1),35),bA=Ci.e,u(N(H(Ci.e),0),35),u(N(H(Ci.e),1),35),u(N(H(Ci.e),2),35),u(N(H(Ci.e),3),35),u(N(H(Ci.e),4),19),u(N(H(Ci.e),5),19),u(N(H(Ci.e),6),19),u(N(H(Ci.e),7),19),u(N(H(Ci.e),8),19),u(N(H(Ci.e),9),19),u(N(H(Ci.e),10),35),il=Ci.k,u(N(H(Ci.k),0),35),u(N(H(Ci.k),1),35)}function otn(n){var e,t,i,r,c;switch(e=n.c,e){case 11:return n.vm();case 12:return n.xm();case 14:return n.zm();case 15:return n.Cm();case 16:return n.Am();case 17:return n.Dm();case 21:return Ze(n),nt(),nt(),F9;case 10:switch(n.a){case 65:return n.hm();case 90:return n.mm();case 122:return n.tm();case 98:return n.nm();case 66:return n.im();case 60:return n.sm();case 62:return n.qm()}}switch(c=MNe(n),e=n.c,e){case 3:return n.Im(c);case 4:return n.Gm(c);case 5:return n.Hm(c);case 0:if(n.a==123&&n.d<n.j){if(r=n.d,i=0,t=-1,(e=Xi(n.i,r++))>=48&&e<=57){for(i=e-48;r<n.j&&(e=Xi(n.i,r++))>=48&&e<=57;)if(i=i*10+e-48,i<0)throw T(new Ne($e((Oe(),Fcn))))}else throw T(new Ne($e((Oe(),XWn))));if(t=i,e==44){if(r>=n.j)throw T(new Ne($e((Oe(),WWn))));if((e=Xi(n.i,r++))>=48&&e<=57){for(t=e-48;r<n.j&&(e=Xi(n.i,r++))>=48&&e<=57;)if(t=t*10+e-48,t<0)throw T(new Ne($e((Oe(),Fcn))));if(i>t)throw T(new Ne($e((Oe(),JWn))))}else t=-1}if(e!=125)throw T(new Ne($e((Oe(),VWn))));n.bm(r)?(c=(nt(),nt(),new X0(9,c)),n.d=r+1):(c=(nt(),nt(),new X0(3,c)),n.d=r),c.Om(i),c.Nm(t),Ze(n)}}return c}function INe(n){var e,t,i,r,c;switch(t=u(v(n,(W(),Hc)),21),e=LM(mZn),r=u(v(n,(cn(),Kw)),346),r==(jl(),T1)&&To(e,vZn),on(un(v(n,TH)))?Fe(e,(Vi(),Vs),(tr(),D_)):Fe(e,(Vi(),Ac),(tr(),D_)),v(n,(JT(),b9))!=null&&To(e,kZn),(on(un(v(n,nhn)))||on(un(v(n,Jfn))))&&Iu(e,(Vi(),zr),(tr(),Won)),u(v(n,Lo),88).g){case 2:case 3:case 4:Iu(Fe(e,(Vi(),Vs),(tr(),Qon)),zr,Jon)}switch(t.Hc((pr(),ZI))&&Iu(Fe(Fe(e,(Vi(),Vs),(tr(),Von)),Fc,zon),zr,Xon),x(v(n,ja))!==x((ps(),SO))&&Fe(e,(Vi(),Ac),(tr(),asn)),t.Hc(eO)&&(Fe(e,(Vi(),Vs),(tr(),gsn)),Fe(e,Jh,bsn),Fe(e,Ac,wsn)),x(v(n,fO))!==x((jm(),x8))&&x(v(n,$l))!==x((El(),Yj))&&Iu(e,(Vi(),zr),(tr(),usn)),on(un(v(n,Yfn)))&&Fe(e,(Vi(),Ac),(tr(),csn)),on(un(v(n,yH)))&&Fe(e,(Vi(),Ac),(tr(),psn)),HTe(n)&&(x(v(n,Kw))===x(T1)?i=u(v(n,Mj),299):i=u(v(n,kH),299),c=i==(Z4(),cH)?(tr(),dsn):(tr(),ksn),Fe(e,(Vi(),Fc),c)),u(v(n,Chn),388).g){case 1:Fe(e,(Vi(),Fc),(tr(),msn));break;case 2:Iu(Fe(Fe(e,(Vi(),Ac),(tr(),Hon)),Fc,qon),zr,Uon)}return x(v(n,Yh))!==x((lh(),k1))&&Fe(e,(Vi(),Ac),(tr(),vsn)),e}function dzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;if(Zc(n.a,e)){if(sf(u(ee(n.a,e),49),t))return 1}else Ve(n.a,e,new ni);if(Zc(n.a,t)){if(sf(u(ee(n.a,t),49),e))return-1}else Ve(n.a,t,new ni);if(Zc(n.e,e)){if(sf(u(ee(n.e,e),49),t))return-1}else Ve(n.e,e,new ni);if(Zc(n.e,t)){if(sf(u(ee(n.a,t),49),e))return 1}else Ve(n.e,t,new ni);if(n.c==(lh(),_H)||!kt(e,(W(),dt))||!kt(t,(W(),dt))){for(d=null,l=new M(e.j);l.a<l.c.c.length;)f=u(E(l),12),f.e.c.length==0||u(sn(f.e,0),18).c.i.c!=e.c&&(d=u(sn(f.e,0),18).c);for(p=null,h=new M(t.j);h.a<h.c.c.length;)f=u(E(h),12),f.e.c.length==0||u(sn(f.e,0),18).c.i.c!=t.c&&(p=u(sn(f.e,0),18).c);if(d&&p){if(a=d.i,g=p.i,a&&a==g){for(k=new M(a.j);k.a<k.c.c.length;){if(m=u(E(k),12),m==d)return Im(n,t,e),-1;if(m==p)return Im(n,e,t),1}return jc(Vx(n,e),Vx(n,t))}for(P=n.d,O=0,A=P.length;O<A;++O){if(j=P[O],j==a)return Im(n,t,e),-1;if(j==g)return Im(n,e,t),1}}if(!kt(e,(W(),dt))||!kt(t,dt))return r=Vx(n,e),s=Vx(n,t),r>s?Im(n,e,t):Im(n,t,e),r<s?-1:r>s?1:0}return i=u(v(e,(W(),dt)),17).a,c=u(v(t,dt),17).a,i>c?Im(n,e,t):Im(n,t,e),i<c?-1:i>c?1:0}function zb(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(t==null)return null;if(n.a!=e.jk())throw T(new Gn(ev+e.xe()+n0));if(L(e,469)){if(j=kSe(u(e,685),t),!j)throw T(new Gn(fF+t+"' is not a valid enumerator of '"+e.xe()+"'"));return j}switch(r1((Lu(),zi),e).Nl()){case 2:{t=Rc(t,!1);break}case 3:{t=Rc(t,!0);break}}if(i=r1(zi,e).Jl(),i)return i.jk().wi().ti(i,t);if(g=r1(zi,e).Ll(),g){for(j=new Z,l=z$(t),a=0,d=l.length;a<d;++a)h=l[a],nn(j,g.jk().wi().ti(g,h));return j}if(k=r1(zi,e).Ml(),!k.dc()){for(m=k.Kc();m.Ob();){p=u(m.Pb(),156);try{if(j=p.jk().wi().ti(p,t),j!=null)return j}catch(P){if(P=Ot(P),!L(P,63))throw T(P)}}throw T(new Gn(fF+t+"' does not match any member types of the union datatype '"+e.xe()+"'"))}if(u(e,847).ok(),r=R6e(e.kk()),!r)return null;if(r==S8){s=0;try{s=So(t,Wi,et)&ui}catch(P){if(P=Ot(P),L(P,130))c=iC(t),s=c[0];else throw T(P)}return vk(s)}if(r==oI){for(f=0;f<A9.length;++f)try{return wMn(A9[f],t)}catch(P){if(P=Ot(P),!L(P,33))throw T(P)}throw T(new Gn(fF+t+"' is not a date formatted string of the form yyyy-MM-dd'T'HH:mm:ss'.'SSSZ or a valid subset thereof"))}throw T(new Gn(fF+t+"' is invalid. "))}function YR(){YR=R,wt=new Mb,In(wt,(en(),Yf),Uc),In(wt,Cs,Uc),In(wt,Cs,vu),In(wt,os,xu),In(wt,os,Uc),In(wt,ef,Uc),In(wt,ef,Ju),In(wt,Do,pu),In(wt,Do,Uc),In(wt,mu,su),In(wt,mu,Uc),In(wt,mu,Ju),In(wt,mu,pu),In(wt,su,mu),In(wt,su,vu),In(wt,su,xu),In(wt,su,Uc),In(wt,tf,tf),In(wt,tf,Ju),In(wt,tf,vu),In(wt,Wu,Wu),In(wt,Wu,Ju),In(wt,Wu,xu),In(wt,$o,$o),In(wt,$o,pu),In(wt,$o,vu),In(wt,ss,ss),In(wt,ss,pu),In(wt,ss,xu),In(wt,Ju,ef),In(wt,Ju,mu),In(wt,Ju,tf),In(wt,Ju,Wu),In(wt,Ju,Uc),In(wt,Ju,Ju),In(wt,Ju,vu),In(wt,Ju,xu),In(wt,pu,Do),In(wt,pu,mu),In(wt,pu,$o),In(wt,pu,ss),In(wt,pu,pu),In(wt,pu,vu),In(wt,pu,xu),In(wt,pu,Uc),In(wt,vu,Cs),In(wt,vu,su),In(wt,vu,tf),In(wt,vu,$o),In(wt,vu,Ju),In(wt,vu,pu),In(wt,vu,vu),In(wt,vu,Uc),In(wt,xu,os),In(wt,xu,su),In(wt,xu,Wu),In(wt,xu,ss),In(wt,xu,Ju),In(wt,xu,pu),In(wt,xu,xu),In(wt,xu,Uc),In(wt,Uc,Yf),In(wt,Uc,Cs),In(wt,Uc,os),In(wt,Uc,ef),In(wt,Uc,Do),In(wt,Uc,mu),In(wt,Uc,su),In(wt,Uc,Ju),In(wt,Uc,pu),In(wt,Uc,vu),In(wt,Uc,xu),In(wt,Uc,Uc)}function stn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn;for(n.d=new V(Pt,Pt),n.c=new V(li,li),g=e.Kc();g.Ob();)for(a=u(g.Pb(),36),A=new M(a.a);A.a<A.c.c.length;)O=u(E(A),10),n.d.a=y.Math.min(n.d.a,O.n.a-O.d.b),n.d.b=y.Math.min(n.d.b,O.n.b-O.d.d),n.c.a=y.Math.max(n.c.a,O.n.a+O.o.a+O.d.c),n.c.b=y.Math.max(n.c.b,O.n.b+O.o.b+O.d.a);for(f=new Fyn,d=e.Kc();d.Ob();)a=u(d.Pb(),36),i=lNe(n,a),nn(f.a,i),i.a=i.a|!u(v(i.c,(W(),Dl)),21).dc();for(n.b=(Y$(),yn=new J0n,yn.f=new ixn(t),yn.b=mAe(yn.f,f),yn),OAe((m=n.b,new op,m)),n.e=new Ni,n.a=n.b.f.e,s=new M(f.a);s.a<s.c.c.length;)for(r=u(E(s),855),D=l2e(n.b,r),uPe(r.c,D.a,D.b),j=new M(r.c.a);j.a<j.c.c.length;)k=u(E(j),10),k.k==(Vn(),Zt)&&(P=nen(n,k.n,u(v(k,(W(),gc)),64)),tt(ff(k.n),P));for(c=new M(f.a);c.a<c.c.c.length;)for(r=u(E(c),855),l=new M(P5e(r));l.a<l.c.c.length;)for(h=u(E(l),18),tn=new GE(h.a),g4(tn,0,Of(h.c)),Re(tn,Of(h.d)),p=null,X=ge(tn,0);X.b!=X.d.c;){if(_=u(be(X),8),!p){p=_;continue}fQ(p.a,_.a)?(n.e.a=y.Math.min(n.e.a,p.a),n.a.a=y.Math.max(n.a.a,p.a)):fQ(p.b,_.b)&&(n.e.b=y.Math.min(n.e.b,p.b),n.a.b=y.Math.max(n.a.b,p.b)),p=_}HM(n.e),tt(n.a,n.e)}function ONe(n,e){var t,i,r,c,s,f,h,l;if(t=0,s=0,c=e.length,f=null,l=new fg,s<c&&(zn(s,e.length),e.charCodeAt(s)==43)&&(++s,++t,s<c&&(zn(s,e.length),e.charCodeAt(s)==43||(zn(s,e.length),e.charCodeAt(s)==45))))throw T(new th(Vb+e+'"'));for(;s<c&&(zn(s,e.length),e.charCodeAt(s)!=46)&&(zn(s,e.length),e.charCodeAt(s)!=101)&&(zn(s,e.length),e.charCodeAt(s)!=69);)++s;if(l.a+=""+qo(e==null?gu:(Jn(e),e),t,s),s<c&&(zn(s,e.length),e.charCodeAt(s)==46)){for(++s,t=s;s<c&&(zn(s,e.length),e.charCodeAt(s)!=101)&&(zn(s,e.length),e.charCodeAt(s)!=69);)++s;n.e=s-t,l.a+=""+qo(e==null?gu:(Jn(e),e),t,s)}else n.e=0;if(s<c&&(zn(s,e.length),e.charCodeAt(s)==101||(zn(s,e.length),e.charCodeAt(s)==69))&&(++s,t=s,s<c&&(zn(s,e.length),e.charCodeAt(s)==43)&&(++s,s<c&&(zn(s,e.length),e.charCodeAt(s)!=45)&&++t),f=(Ri(t,c,e.length),e.substr(t,c-t)),n.e=n.e-So(f,Wi,et),n.e!=wi(n.e)))throw T(new th("Scale out of range."));if(h=l.a,h.length<16){if(n.f=(Pun==null&&(Pun=new RegExp("^[+-]?\\d*$","i")),Pun.test(h)?parseInt(h,10):NaN),isNaN(n.f))throw T(new th(Vb+e+'"'));n.a=Inn(n.f)}else a5e(n,new H1(h));for(n.d=l.a.length,r=0;r<l.a.length&&(i=Xi(l.a,r),!(i!=45&&i!=48));++r)--n.d;n.d==0&&(n.d=1)}function ANe(n){Te(n.b,ks,S(C(fn,1),J,2,6,[e0,"ConsistentTransient"])),Te(n.a,ks,S(C(fn,1),J,2,6,[e0,"WellFormedSourceURI"])),Te(n.o,ks,S(C(fn,1),J,2,6,[e0,"InterfaceIsAbstract AtMostOneID UniqueFeatureNames UniqueOperationSignatures NoCircularSuperTypes WellFormedMapEntryClass ConsistentSuperTypes DisjointFeatureAndOperationSignatures"])),Te(n.p,ks,S(C(fn,1),J,2,6,[e0,"WellFormedInstanceTypeName UniqueTypeParameterNames"])),Te(n.v,ks,S(C(fn,1),J,2,6,[e0,"UniqueEnumeratorNames UniqueEnumeratorLiterals"])),Te(n.R,ks,S(C(fn,1),J,2,6,[e0,"WellFormedName"])),Te(n.T,ks,S(C(fn,1),J,2,6,[e0,"UniqueParameterNames UniqueTypeParameterNames NoRepeatingVoid"])),Te(n.U,ks,S(C(fn,1),J,2,6,[e0,"WellFormedNsURI WellFormedNsPrefix UniqueSubpackageNames UniqueClassifierNames UniqueNsURIs"])),Te(n.W,ks,S(C(fn,1),J,2,6,[e0,"ConsistentOpposite SingleContainer ConsistentKeys ConsistentUnique ConsistentContainer"])),Te(n.bb,ks,S(C(fn,1),J,2,6,[e0,"ValidDefaultValueLiteral"])),Te(n.eb,ks,S(C(fn,1),J,2,6,[e0,"ValidLowerBound ValidUpperBound ConsistentBounds ValidType"])),Te(n.H,ks,S(C(fn,1),J,2,6,[e0,"ConsistentType ConsistentBounds ConsistentArguments"]))}function LNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn;if(!e.dc()){if(r=new Tu,f=t||u(e.Xb(0),18),m=f.c,K5(),g=m.i.k,!(g==(Vn(),zt)||g==_c||g==Zt||g==Gf))throw T(new Gn("The target node of the edge must be a normal node or a northSouthPort."));for(ir(r,cc(S(C(Ei,1),J,8,0,[m.i.n,m.n,m.a]))),(en(),mu).Hc(m.j)&&(j=$(B(v(m,(W(),jv)))),d=new V(cc(S(C(Ei,1),J,8,0,[m.i.n,m.n,m.a])).a,j),xt(r,d,r.c.b,r.c)),a=null,i=!1,h=e.Kc();h.Ob();)s=u(h.Pb(),18),c=s.a,c.b!=0&&(i?(l=ch(tt(a,(oe(c.b!=0),u(c.a.a.c,8))),.5),xt(r,l,r.c.b,r.c),i=!1):i=!0,a=Fi((oe(c.b!=0),u(c.c.b.c,8))),Ki(r,c),vo(c));k=f.d,mu.Hc(k.j)&&(j=$(B(v(k,(W(),jv)))),d=new V(cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a])).a,j),xt(r,d,r.c.b,r.c)),ir(r,cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a]))),n.d==(om(),VH)&&(P=(oe(r.b!=0),u(r.a.a.c,8)),O=u(Zo(r,1),8),A=new KD(uY(m.j)),A.a*=5,A.b*=5,D=mi(new V(O.a,O.b),P),_=new V(ND(A.a,D.a),ND(A.b,D.b)),tt(_,P),X=ge(r,1),_7(X,_),tn=(oe(r.b!=0),u(r.c.b.c,8)),yn=u(Zo(r,r.b-2),8),A=new KD(uY(k.j)),A.a*=5,A.b*=5,D=mi(new V(yn.a,yn.b),tn),kn=new V(ND(A.a,D.a),ND(A.b,D.b)),tt(kn,tn),g4(r,r.b-1,kn)),p=new _en(r),Ki(f.a,IBn(p))}}function NNe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt,Yu,Br,Ro,W2,L1,rf,cf;if(A=u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84),_=A.nh(),X=A.oh(),D=A.mh()/2,k=A.lh()/2,L(A,193)&&(O=u(A,123),_+=Pf(O).i,_+=Pf(O).i),_+=D,X+=k,Bn=u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84),xe=Bn.nh(),Nt=Bn.oh(),te=Bn.mh()/2,tn=Bn.lh()/2,L(Bn,193)&&(Rn=u(Bn,123),xe+=Pf(Rn).i,xe+=Pf(Rn).i),xe+=te,Nt+=tn,(!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i==0)f=(K1(),l=new jE,l),ve((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),f);else if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i>1)for(m=new kp((!n.a&&(n.a=new q(Tt,n,6,6)),n.a));m.e!=m.i.gc();)A5(m);for(s=u(N((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),0),166),j=xe,xe>_+D?j=_+D:xe<_-D&&(j=_-D),P=Nt,Nt>X+k?P=X+k:Nt<X-k&&(P=X-k),j>_-D&&j<_+D&&P>X-k&&P<X+k&&(j=_+D),H4(s,j),U4(s,P),yn=_,_>xe+te?yn=xe+te:_<xe-te&&(yn=xe-te),kn=X,X>Nt+tn?kn=Nt+tn:X<Nt-tn&&(kn=Nt-tn),yn>xe-te&&yn<xe+te&&kn>Nt-tn&&kn<Nt+tn&&(kn=Nt+tn),_4(s,yn),q4(s,kn),me((!s.a&&(s.a=new ti(xo,s,5)),s.a)),c=cS(e,5),A==Bn&&++c,Ro=yn-j,rf=kn-P,Yu=y.Math.sqrt(Ro*Ro+rf*rf),d=Yu*.20000000298023224,W2=Ro/(c+1),cf=rf/(c+1),Br=j,L1=P,a=0;a<c;a++)Br+=W2,L1+=cf,g=Br+to(e,24)*Oy*d-d/2,g<0?g=1:g>t&&(g=t-1),p=L1+to(e,24)*Oy*d-d/2,p<0?p=1:p>i&&(p=i-1),r=(K1(),h=new yE,h),aC(r,g),lC(r,p),ve((!s.a&&(s.a=new ti(xo,s,5)),s.a),r)}function bzn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,co),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new rmn))),Q(n,co,l3,1.3),Q(n,co,zm,(_n(),!1)),Q(n,co,Wb,k1n),Q(n,co,yw,15),Q(n,co,TP,rn(Ace)),Q(n,co,r2,rn(Dce)),Q(n,co,d3,rn(xce)),Q(n,co,a3,rn(Rce)),Q(n,co,Xm,rn(Nce)),Q(n,co,r8,rn(Aq)),Q(n,co,Vm,rn(Kce)),Q(n,co,ncn,rn(M1n)),Q(n,co,ecn,rn(E1n)),Q(n,co,Zrn,rn(Nq)),Q(n,co,Yrn,rn(T1n)),Q(n,co,tcn,rn(v1n)),Q(n,co,icn,rn(Lq)),Q(n,co,rcn,rn(m1n)),Q(n,co,ccn,rn(j1n)),Q(n,co,i8,rn(p1n)),Q(n,co,SP,rn(Lce)),Q(n,co,Jrn,rn(Bj)),Q(n,co,Wrn,rn(g1n)),Q(n,co,Qrn,rn(Fj)),Q(n,co,Vrn,rn(y1n))}function ZR(n,e){KR();var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe;if(yn=n.e,m=n.d,r=n.a,yn==0)switch(e){case 0:return"0";case 1:return Fm;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return X=new x1,e<0?X.a+="0E+":X.a+="0E",X.a+=-e,X.a}if(A=m*10+1+7,D=F(fs,gh,28,A+1,15,1),t=A,m==1)if(f=r[0],f<0){xe=vi(f,mr);do k=xe,xe=Xk(xe,10),D[--t]=48+Se(bs(k,er(xe,10)))&ui;while(Ec(xe,0)!=0)}else{xe=f;do k=xe,xe=xe/10|0,D[--t]=48+(k-xe*10)&ui;while(xe!=0)}else{Rn=F(ye,_e,28,m,15,1),te=m,Oc(r,0,Rn,0,te);n:for(;;){for(tn=0,l=te-1;l>=0;l--)Bn=nr(Ks(tn,32),vi(Rn[l],mr)),P=mye(Bn),Rn[l]=Se(P),tn=Se(wb(P,32));O=Se(tn),j=t;do D[--t]=48+O%10&ui;while((O=O/10|0)!=0&&t!=0);for(i=9-j+t,h=0;h<i&&t>0;h++)D[--t]=48;for(d=te-1;Rn[d]==0;d--)if(d==0)break n;te=d+1}for(;D[t]==48;)++t}if(p=yn<0,s=A-t-e-1,e==0)return p&&(D[--t]=45),ws(D,t,A-t);if(e>0&&s>=-6){if(s>=0){for(a=t+s,g=A-1;g>=a;g--)D[g+1]=D[g];return D[++a]=46,p&&(D[--t]=45),ws(D,t,A-t+1)}for(d=2;d<-s+1;d++)D[--t]=48;return D[--t]=46,D[--t]=48,p&&(D[--t]=45),ws(D,t,A-t)}return kn=t+1,c=A,_=new fg,p&&(_.a+="-"),c-kn>=1?(z1(_,D[t]),_.a+=".",_.a+=ws(D,t+1,A-t-1)):_.a+=ws(D,t,A-t),_.a+="E",s>0&&(_.a+="+"),_.a+=""+s,_.a}function wzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;switch(n.c=e,n.g=new de,t=(cb(),new Qd(n.c)),i=new OE(t),_Y(i),A=Ae(z(n.c,(Wk(),U1n))),h=u(z(n.c,qq),324),_=u(z(n.c,Uq),437),s=u(z(n.c,_1n),490),D=u(z(n.c,Hq),438),n.j=$(B(z(n.c,Yce))),f=n.a,h.g){case 0:f=n.a;break;case 1:f=n.b;break;case 2:f=n.i;break;case 3:f=n.e;break;case 4:f=n.f;break;default:throw T(new Gn(xP+(h.f!=null?h.f:""+h.g)))}if(n.d=new sAn(f,_,s),U(n.d,(J4(),A8),un(z(n.c,Jce))),n.d.c=on(un(z(n.c,H1n))),ST(n.c).i==0)return n.d;for(d=new ne(ST(n.c));d.e!=d.i.gc();){for(a=u(ue(d),27),p=a.g/2,g=a.f/2,X=new V(a.i+p,a.j+g);Zc(n.g,X);)ab(X,(y.Math.random()-.5)*vh,(y.Math.random()-.5)*vh);k=u(z(a,(He(),xv)),140),j=new jAn(X,new Ho(X.a-p-n.j/2-k.b,X.b-g-n.j/2-k.d,a.g+n.j+(k.b+k.c),a.f+n.j+(k.d+k.a))),nn(n.d.i,j),Ve(n.g,X,new bi(j,a))}switch(D.g){case 0:if(A==null)n.d.d=u(sn(n.d.i,0),68);else for(O=new M(n.d.i);O.a<O.c.c.length;)j=u(E(O),68),m=u(u(ee(n.g,j.a),42).b,27).jh(),m!=null&&Sn(m,A)&&(n.d.d=j);break;case 1:for(r=new V(n.c.g,n.c.f),r.a*=.5,r.b*=.5,ab(r,n.c.i,n.c.j),c=Pt,P=new M(n.d.i);P.a<P.c.c.length;)j=u(E(P),68),l=J1(j.a,r),l<c&&(c=l,n.d.d=j);break;default:throw T(new Gn(xP+(D.f!=null?D.f:""+D.g)))}return n.d}function DNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(g=0,r=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));r.e!=r.i.gc();)i=u(ue(r),27),on(un(z(i,(cn(),Rd))))||(a=St(i),(x(z(a,Yh))!==x((lh(),k1))||x(z(a,Nd))===x((o1(),pv))||x(z(a,Nd))===x((o1(),gv))||on(un(z(a,l0)))||x(z(a,Rw))!==x((dd(),Aw))||x(z(a,ja))===x((ps(),p0))||x(z(a,ja))===x((ps(),Uw))||x(z(a,$d))===x((a1(),Iv))||x(z(a,$d))===x((a1(),Ov)))&&!on(un(z(i,lO)))&&(ht(i,(W(),dt),Y(g)),++g),szn(n,i,t));for(g=0,l=new ne((!e.b&&(e.b=new q(Vt,e,12,3)),e.b));l.e!=l.i.gc();)f=u(ue(l),74),(x(z(e,(cn(),Yh)))!==x((lh(),k1))||x(z(e,Nd))===x((o1(),pv))||x(z(e,Nd))===x((o1(),gv))||on(un(z(e,l0)))||x(z(e,Rw))!==x((dd(),Aw))||x(z(e,ja))===x((ps(),p0))||x(z(e,ja))===x((ps(),Uw))||x(z(e,$d))===x((a1(),Iv))||x(z(e,$d))===x((a1(),Ov)))&&(ht(f,(W(),dt),Y(g)),++g),k=Fh(f),j=ra(f),d=on(un(z(k,Bw))),m=!on(un(z(f,Rd))),p=d&&_b(f)&&on(un(z(f,Dd))),c=St(k)==e&&St(k)==St(j),s=(St(k)==e&&j==e)^(St(j)==e&&k==e),m&&!p&&(s||c)&&ftn(n,f,e,t);if(St(e))for(h=new ne($On(St(e)));h.e!=h.i.gc();)f=u(ue(h),74),k=Fh(f),k==e&&_b(f)&&(p=on(un(z(k,(cn(),Bw))))&&on(un(z(f,Dd))),p&&ftn(n,f,e,t))}function $Ne(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt,Yu,Br,Ro;for(t.Ug("Greedy cycle removal",1),A=e.a,Ro=A.c.length,n.a=F(ye,_e,28,Ro,15,1),n.c=F(ye,_e,28,Ro,15,1),n.b=F(ye,_e,28,Ro,15,1),l=0,P=new M(A);P.a<P.c.c.length;){for(k=u(E(P),10),k.p=l,kn=new M(k.j);kn.a<kn.c.c.length;){for(X=u(E(kn),12),f=new M(X.e);f.a<f.c.c.length;)i=u(E(f),18),i.c.i!=k&&(te=u(v(i,(cn(),Cv)),17).a,n.a[l]+=te>0?te+1:1);for(s=new M(X.g);s.a<s.c.c.length;)i=u(E(s),18),i.d.i!=k&&(te=u(v(i,(cn(),Cv)),17).a,n.c[l]+=te>0?te+1:1)}n.c[l]==0?Re(n.e,k):n.a[l]==0&&Re(n.f,k),++l}for(m=-1,p=1,d=new Z,n.d=u(v(e,(W(),P3)),234);Ro>0;){for(;n.e.b!=0;)Nt=u(UN(n.e),10),n.b[Nt.p]=m--,Oen(n,Nt),--Ro;for(;n.f.b!=0;)Yu=u(UN(n.f),10),n.b[Yu.p]=p++,Oen(n,Yu),--Ro;if(Ro>0){for(g=Wi,O=new M(A);O.a<O.c.c.length;)k=u(E(O),10),n.b[k.p]==0&&(D=n.c[k.p]-n.a[k.p],D>=g&&(D>g&&(d.c.length=0,g=D),Fn(d.c,k)));a=n.sg(d),n.b[a.p]=p++,Oen(n,a),--Ro}}for(xe=A.c.length+1,l=0;l<A.c.length;l++)n.b[l]<0&&(n.b[l]+=xe);for(j=new M(A);j.a<j.c.c.length;)for(k=u(E(j),10),Bn=MLn(k.j),tn=Bn,yn=0,Rn=tn.length;yn<Rn;++yn)for(X=tn[yn],_=hh(X.g),r=_,c=0,h=r.length;c<h;++c)i=r[c],Br=i.d.i.p,n.b[k.p]>n.b[Br]&&(Ub(i,!0),U(e,kj,(_n(),!0)));n.a=null,n.c=null,n.b=null,vo(n.f),vo(n.e),t.Vg()}function gzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;for(_=u(N((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),0),166),a=new Tu,D=new de,X=TUn(_),Vc(D.f,_,X),g=new de,i=new Mt,m=$h(Eo(S(C(Ao,1),Kn,20,0,[(!e.d&&(e.d=new Dn(Vt,e,8,5)),e.d),(!e.e&&(e.e=new Dn(Vt,e,7,4)),e.e)])));pe(m);){if(p=u(fe(m),74),(!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i!=1)throw T(new Gn(tWn+(!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i));p!=n&&(j=u(N((!p.a&&(p.a=new q(Tt,p,6,6)),p.a),0),166),xt(i,j,i.c.b,i.c),k=u(Fr(wr(D.f,j)),13),k||(k=TUn(j),Vc(D.f,j,k)),d=t?mi(new rr(u(sn(X,X.c.length-1),8)),u(sn(k,k.c.length-1),8)):mi(new rr((Nn(0,X.c.length),u(X.c[0],8))),(Nn(0,k.c.length),u(k.c[0],8))),Vc(g.f,j,d))}if(i.b!=0)for(P=u(sn(X,t?X.c.length-1:0),8),l=1;l<X.c.length;l++){for(O=u(sn(X,t?X.c.length-1-l:l),8),r=ge(i,0);r.b!=r.d.c;)j=u(be(r),166),k=u(Fr(wr(D.f,j)),13),k.c.length<=l?p$(r):(A=tt(new rr(u(sn(k,t?k.c.length-1-l:l),8)),u(Fr(wr(g.f,j)),8)),(O.a!=A.a||O.b!=A.b)&&(c=O.a-P.a,f=O.b-P.b,s=A.a-P.a,h=A.b-P.b,s*f==h*c&&(c==0||isNaN(c)?c:c<0?-1:1)==(s==0||isNaN(s)?s:s<0?-1:1)&&(f==0||isNaN(f)?f:f<0?-1:1)==(h==0||isNaN(h)?h:h<0?-1:1)?(y.Math.abs(c)<y.Math.abs(s)||y.Math.abs(f)<y.Math.abs(h))&&xt(a,O,a.c.b,a.c):l>1&&xt(a,P,a.c.b,a.c),p$(r)));P=O}return a}function pzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(t.Ug(pVn,1),Rn=u(Wr(ut(new Cn(null,new On(e,16)),new N4n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),a=u(Wr(ut(new Cn(null,new On(e,16)),new kkn(e)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),m=u(Wr(ut(new Cn(null,new On(e,16)),new vkn(e)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),k=F(DO,AP,40,e.gc(),0,1),s=0;s<a.gc();s++)r=u(a.Xb(s),40),kn=u(v(r,(lc(),A2)),17).a,kn>=0&&kn<a.gc()&&!k[kn]&&(k[kn]=r,a.gd(s),--s);for(f=0;f<a.gc();f++)for(r=u(a.Xb(f),40),kn=u(v(r,(lc(),A2)),17).a,g=0;;g++){if(p=kn+g,p<k.length&&p>=0&&!k[p]){k[p]=r,a.gd(f),--f;break}if(p=kn-g,p<k.length&&p>=0&&!k[p]){k[p]=r,a.gd(f),--f;break}}for(m.jd(new D4n),h=k.length-1;h>=0;h--)!k[h]&&!m.dc()&&(k[h]=u(m.Xb(0),40),m.gd(0));for(l=0;l<k.length;l++)!k[l]&&!Rn.dc()&&(k[l]=u(Rn.Xb(0),40),Rn.gd(0));for(c=0;c<k.length;c++)U(k[c],(pt(),o9),Y(c));for(d=u(E8e(ut(new Cn(null,new On(e,16)),new $4n)),534),X=d,tn=0,yn=X.length;tn<yn;++tn){for(_=X[tn],i=R$(_),pzn(n,i,t.eh(1/d.length|0)),Ln(),ud(i,new tL((pt(),o9))),j=new Mt,D=ge(i,0);D.b!=D.d.c;)for(A=u(be(D),40),O=ge(_.d,0);O.b!=O.d.c;)P=u(be(O),65),P.c==A&&xt(j,P,j.c.b,j.c);vo(_.d),Ki(_.d,j)}t.Vg()}function mzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(i=new Z,f=new Z,j=e/2,p=n.gc(),r=u(n.Xb(0),8),P=u(n.Xb(1),8),m=wR(r.a,r.b,P.a,P.b,j),nn(i,(Nn(0,m.c.length),u(m.c[0],8))),nn(f,(Nn(1,m.c.length),u(m.c[1],8))),l=2;l<p;l++)k=r,r=P,P=u(n.Xb(l),8),m=wR(r.a,r.b,k.a,k.b,j),nn(i,(Nn(1,m.c.length),u(m.c[1],8))),nn(f,(Nn(0,m.c.length),u(m.c[0],8))),m=wR(r.a,r.b,P.a,P.b,j),nn(i,(Nn(0,m.c.length),u(m.c[0],8))),nn(f,(Nn(1,m.c.length),u(m.c[1],8)));for(m=wR(P.a,P.b,r.a,r.b,j),nn(i,(Nn(1,m.c.length),u(m.c[1],8))),nn(f,(Nn(0,m.c.length),u(m.c[0],8))),t=new Tu,s=new Z,Re(t,(Nn(0,i.c.length),u(i.c[0],8))),a=1;a<i.c.length-2;a+=2)c=(Nn(a,i.c.length),u(i.c[a],8)),g=E_n((Nn(a-1,i.c.length),u(i.c[a-1],8)),c,(Nn(a+1,i.c.length),u(i.c[a+1],8)),(Nn(a+2,i.c.length),u(i.c[a+2],8))),!isFinite(g.a)||!isFinite(g.b)?xt(t,c,t.c.b,t.c):xt(t,g,t.c.b,t.c);for(Re(t,u(sn(i,i.c.length-1),8)),nn(s,(Nn(0,f.c.length),u(f.c[0],8))),d=1;d<f.c.length-2;d+=2)c=(Nn(d,f.c.length),u(f.c[d],8)),g=E_n((Nn(d-1,f.c.length),u(f.c[d-1],8)),c,(Nn(d+1,f.c.length),u(f.c[d+1],8)),(Nn(d+2,f.c.length),u(f.c[d+2],8))),!isFinite(g.a)||!isFinite(g.b)?Fn(s.c,c):Fn(s.c,g);for(nn(s,u(sn(f,f.c.length-1),8)),h=s.c.length-1;h>=0;h--)Re(t,(Nn(h,s.c.length),u(s.c[h],8)));return t}function vzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(A=$(B(z(e,(_h(),Xw)))),p=$(B(z(e,f9))),g=$(B(z(e,UO))),NQ((!e.a&&(e.a=new q(Ye,e,10,11)),e.a)),P=fGn((!e.a&&(e.a=new q(Ye,e,10,11)),e.a),A,n.b),j=0;j<P.c.length;j++)if(h=(Nn(j,P.c.length),u(P.c[j],186)),j!=0&&(m=(Nn(j-1,P.c.length),u(P.c[j-1],186)),_Rn(h,m.f+m.b+n.b)),k=KNe(j,P,A,n.b,on(un(z(e,(Bf(),Lq))))),on(un(k.b))){for(c=new M(h.a);c.a<c.c.c.length;)r=u(E(c),172),r.c=!1,r.k=!1,ZUn(r);h.d=new Z,h.e=A,--j}else if(eke(n,h),j+1<P.c.length&&(n.e=y.Math.max(h.e+n.b+u(sn((Nn(j+1,P.c.length),u(P.c[j+1],186)).a,0),172).r-A,n.c),n.f=y.Math.min(h.e+n.b+u(sn((Nn(j+1,P.c.length),u(P.c[j+1],186)).a,0),172).r-A,n.d),h.d.c.length!=0&&(n.c=y.Math.max(n.c,u(sn(h.d,h.d.c.length-1),315).d+(h.d.c.length<=1?0:n.b)),n.d=y.Math.min(n.c,u(sn(h.d,h.d.c.length-1),315).d+(h.d.c.length<=1?0:n.b)))),P.c.length==1)for(d=u(sn(h.d,h.d.c.length-1),315),a=u(sn(d.a,d.a.c.length-1),172),f=new M(a.n);f.a<f.c.c.length;)s=u(E(f),209),n.c=y.Math.max(n.c,a.r-s.d),n.d=y.Math.min(n.d,a.r-s.d),n.e=y.Math.max(n.e,s.d+n.b),n.f=y.Math.min(n.f,s.d+n.b);return O=cFn(P,n.b),D=y.Math.max(O.a,p-(t.b+t.c)),l=y.Math.max(O.b,g-(t.d+t.a)),i=l-O.b,ht(e,s9,i),ht(e,GO,P),new tW(n.a,D,O.b+i,(x5(),_j))}function xNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;if(tn=u(v(n,(cn(),Ft)),101),tn!=(Ai(),Qf)&&tn!=Ia){for(m=n.b,p=m.c.length,a=new Gc((Mo(p+2,cK),oC(nr(nr(5,p+2),(p+2)/10|0)))),k=new Gc((Mo(p+2,cK),oC(nr(nr(5,p+2),(p+2)/10|0)))),nn(a,new de),nn(a,new de),nn(k,new Z),nn(k,new Z),X=new Z,e=0;e<p;e++)for(t=(Nn(e,m.c.length),u(m.c[e],30)),yn=(Nn(e,a.c.length),u(a.c[e],85)),j=new de,Fn(a.c,j),Rn=(Nn(e,k.c.length),u(k.c[e],15)),O=new Z,Fn(k.c,O),r=new M(t.a);r.a<r.c.c.length;){if(i=u(E(r),10),TY(i)){Fn(X.c,i);continue}for(l=new ie(ce(ji(i).a.Kc(),new En));pe(l);)f=u(fe(l),18),Bn=f.c.i,TY(Bn)&&(kn=u(yn.xc(v(Bn,(W(),st))),10),kn||(kn=B_n(n,Bn),yn.zc(v(Bn,st),kn),Rn.Fc(kn)),Zi(f,u(sn(kn.j,1),12)));for(h=new ie(ce(Qt(i).a.Kc(),new En));pe(h);)f=u(fe(h),18),te=f.d.i,TY(te)&&(P=u(ee(j,v(te,(W(),st))),10),P||(P=B_n(n,te),Ve(j,v(te,st),P),Fn(O.c,P)),Oi(f,u(sn(P.j,0),12)))}for(d=0;d<k.c.length;d++)if(A=(Nn(d,k.c.length),u(k.c[d],15)),!A.dc())for(g=null,d==0?(g=new Nc(n),z0(0,m.c.length),d6(m.c,0,g)):d==a.c.length-1?(g=new Nc(n),Fn(m.c,g)):g=(Nn(d-1,m.c.length),u(m.c[d-1],30)),s=A.Kc();s.Ob();)c=u(s.Pb(),10),$i(c,g);for(_=new M(X);_.a<_.c.c.length;)D=u(E(_),10),$i(D,null);U(n,(W(),fH),X)}}function RNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt,Yu,Br;for(Nt=new Z,m=new M(e.b);m.a<m.c.c.length;)for(g=u(E(m),30),_=new M(g.a);_.a<_.c.c.length;){for(D=u(E(_),10),D.p=-1,d=Wi,yn=Wi,Rn=new M(D.j);Rn.a<Rn.c.c.length;){for(kn=u(E(Rn),12),r=new M(kn.e);r.a<r.c.c.length;)t=u(E(r),18),Bn=u(v(t,(cn(),O3)),17).a,d=y.Math.max(d,Bn);for(i=new M(kn.g);i.a<i.c.c.length;)t=u(E(i),18),Bn=u(v(t,(cn(),O3)),17).a,yn=y.Math.max(yn,Bn)}U(D,AO,Y(d)),U(D,LO,Y(yn))}for(P=0,p=new M(e.b);p.a<p.c.c.length;)for(g=u(E(p),30),_=new M(g.a);_.a<_.c.c.length;)D=u(E(_),10),D.p<0&&(xe=new JG,xe.b=P++,Wqn(n,D,xe),Fn(Nt.c,xe));for(tn=Lh(Nt.c.length),a=Lh(Nt.c.length),s=0;s<Nt.c.length;s++)nn(tn,new Z),nn(a,Y(0));for(eLe(e,Nt,tn,a),Yu=u(Rf(Nt,F($ie,hVn,261,Nt.c.length,0,1)),854),X=u(Rf(tn,F(rs,kw,15,tn.c.length,0,1)),198),l=F(ye,_e,28,a.c.length,15,1),f=0;f<l.length;f++)l[f]=(Nn(f,a.c.length),u(a.c[f],17)).a;for(O=0,A=new Z,h=0;h<Yu.length;h++)l[h]==0&&Fn(A.c,Yu[h]);for(j=F(ye,_e,28,Yu.length,15,1);A.c.length!=0;)for(xe=u(Yl(A,0),261),j[xe.b]=O++;!X[xe.b].dc();)Br=u(X[xe.b].gd(0),261),--l[Br.b],l[Br.b]==0&&Fn(A.c,Br);for(n.a=F($ie,hVn,261,Yu.length,0,1),c=0;c<Yu.length;c++)for(k=Yu[c],te=j[c],n.a[te]=k,k.b=te,_=new M(k.e);_.a<_.c.c.length;)D=u(E(_),10),D.p=te;return n.a}function KNe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P;for(k=!1,h=!1,g=n+1,m=(Nn(n,e.c.length),u(e.c[n],186)),f=m.a,l=null,s=0;s<m.a.c.length;s++)if(c=(Nn(s,f.c.length),u(f.c[s],172)),!c.c){if(c.b.c.length==0){fl(),Gk(m,c),--s,k=!0;continue}if(c.k||(l&&fS(l),l=new tJ(l?l.e+l.d+i:0,m.f,i),Hk(c,l.e+l.d,m.f),nn(m.d,l),FQ(l,c),c.k=!0),a=null,a=(P=null,s<m.a.c.length-1?P=u(sn(m.a,s+1),172):g<e.c.length&&(Nn(g,e.c.length),u(e.c[g],186)).a.c.length!=0&&(P=u(sn((Nn(g,e.c.length),u(e.c[g],186)).a,0),172)),P),j=!1,a&&(j=!rt(a.j,m)),a){if(a.b.c.length!=0&&!on(un(u(sn(a.b,0),27).of((Bf(),Fj)))))uk(c,t-c.s),fS(c.q),k=k|sje(m,c,a,t,i);else{Gk(m,a);break}if(a.b.c.length==0)for(e.c.length>g&&Gk((Nn(g,e.c.length),u(e.c[g],186)),a),a=null;e.c.length>g&&(Nn(g,e.c.length),u(e.c[g],186)).a.c.length==0;)du(e,(Nn(g,e.c.length),e.c[g]));if(!a){--s;continue}if(!on(un(u(sn(a.b,0),27).of((Bf(),Fj))))&&ZPe(e,m,c,a,j,t,g,i)){k=!0;continue}if(j){if(p=m.b,d=a.f,!on(un(u(sn(a.b,0),27).of(Fj)))&&pAe(e,m,c,a,t,g,i,r)){if(k=!0,p<d){h=!0,a.j=m;break}continue}else if(wY(m,c)){c.c=!0,k=!0;continue}}else if(wY(m,c)){c.c=!0,k=!0;continue}if(k)continue}if(wY(m,c)){c.c=!0,k=!0,a&&(a.k=!1);continue}else fS(c.q)}return new bi((_n(),!!k),!!h)}function cn(){cn=R,PH=(He(),Kue),phn=Bue,Cj=qan,Ws=Fue,C2=Uan,w0=Gan,qw=zan,Sv=Xan,Pv=Van,IH=iA,g0=qd,OH=_ue,X8=Qan,yO=$3,Tj=(htn(),ete),T2=tte,Kd=ite,S2=rte,qte=new Di(Jj,Y(0)),Cv=Yee,ghn=Zee,O3=nte,Chn=Cte,vhn=ote,khn=hte,LH=pte,yhn=dte,jhn=wte,jO=Ote,NH=Ste,Mhn=jte,Ehn=kte,Thn=Mte,d0=zee,z8=Xee,MH=hee,Wfn=aee,Vte=k9,Wte=cA,Xte=Qj,zte=rA,mhn=(Gp(),Yw),new Di(x3,mhn),lhn=new fb(12),hhn=new Di(M1,lhn),zfn=(El(),Bv),$l=new Di(yan,zfn),Fw=new Di(oo,0),Ute=new Di(sU,Y(1)),oO=new Di(x2,Gm),Rd=tA,Ft=v9,Tv=H2,xte=zj,Ch=Pue,Kw=B2,Gte=new Di(fU,(_n(),!0)),Bw=Xj,Dd=nU,xd=Hd,kO=Ca,SH=Vw,Gfn=(ci(),Jf),Lo=new Di(_d,Gfn),a0=F2,mO=Pan,_w=Ww,Hte=oU,bhn=_an,dhn=(Kg(),eE),new Di(xan,dhn),Bte=iU,Fte=rU,_te=cU,Kte=tU,AH=ute,$d=Dee,ja=Nee,V8=cte,ou=Cee,Nd=tee,U8=eee,l0=Fne,Hfn=_ne,kH=Gne,Mj=Hne,yH=Zne,uhn=$ee,ohn=xee,ehn=kee,vO=Jee,CH=Bee,TH=wee,fhn=Uee,Vfn=see,EH=fee,vH=Gj,shn=Ree,fO=Lne,Bfn=Ane,sO=One,Yfn=mee,Qfn=pee,Zfn=vee,Ev=_2,Rr=k0,m1=Ean,Sh=Zq,jH=Yq,qfn=Xne,v1=uU,q8=Aue,wO=Nue,b0=Kan,ahn=Due,Mv=$ue,ihn=Pee,rhn=Oee,Hw=D3,pH=Ine,chn=Lee,bO=cee,dO=ree,pO=xv,thn=Eee,G8=_ee,Sj=Wan,Ufn=iee,whn=Qee,Xfn=uee,Nte=Wne,Dte=Jne,Rte=Tee,$te=Qne,nhn=eU,gO=See,aO=Yne,Yh=Bne,_fn=xne,hO=Dne,Ffn=$ne,lO=Rne,Rw=Nne,mH=Kne,Jfn=gee}function Ze(n){var e,t,i;if(n.d>=n.j){n.a=-1,n.c=1;return}if(e=Xi(n.i,n.d++),n.a=e,n.b==1){switch(e){case 92:if(i=10,n.d>=n.j)throw T(new Ne($e((Oe(),qP))));n.a=Xi(n.i,n.d++);break;case 45:(n.e&512)==512&&n.d<n.j&&Xi(n.i,n.d)==91?(++n.d,i=24):i=0;break;case 91:if((n.e&512)!=512&&n.d<n.j&&Xi(n.i,n.d)==58){++n.d,i=20;break}default:(e&64512)==Py&&n.d<n.j&&(t=Xi(n.i,n.d),(t&64512)==56320&&(n.a=hr+(e-Py<<10)+t-56320,++n.d)),i=0}n.c=i;return}switch(e){case 124:i=2;break;case 42:i=3;break;case 43:i=4;break;case 63:i=5;break;case 41:i=7;break;case 46:i=8;break;case 91:i=9;break;case 94:i=11;break;case 36:i=12;break;case 40:if(i=6,n.d>=n.j||Xi(n.i,n.d)!=63)break;if(++n.d>=n.j)throw T(new Ne($e((Oe(),jF))));switch(e=Xi(n.i,n.d++),e){case 58:i=13;break;case 61:i=14;break;case 33:i=15;break;case 91:i=19;break;case 62:i=18;break;case 60:if(n.d>=n.j)throw T(new Ne($e((Oe(),jF))));if(e=Xi(n.i,n.d++),e==61)i=16;else if(e==33)i=17;else throw T(new Ne($e((Oe(),IWn))));break;case 35:for(;n.d<n.j&&(e=Xi(n.i,n.d++),e!=41););if(e!=41)throw T(new Ne($e((Oe(),OWn))));i=21;break;default:if(e==45||97<=e&&e<=122||65<=e&&e<=90){--n.d,i=22;break}else if(e==40){i=23;break}throw T(new Ne($e((Oe(),jF))))}break;case 92:if(i=10,n.d>=n.j)throw T(new Ne($e((Oe(),qP))));n.a=Xi(n.i,n.d++);break;default:i=0}n.c=i}function BNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(t.Ug("Process compaction",1),!!on(un(v(e,(lc(),Tln))))){for(r=u(v(e,v0),88),p=$(B(v(e,sq))),aOe(n,e,r),tNe(e,p/2/2),m=e.b,ud(m,new akn(r)),l=ge(m,0);l.b!=l.d.c;)if(h=u(be(l),40),!on(un(v(h,(pt(),Ta))))){if(i=KSe(h,r),k=NIe(h,e),d=0,g=0,i)switch(j=i.e,r.g){case 2:d=j.a-p-h.f.a,k.e.a-p-h.f.a<d&&(d=k.e.a-p-h.f.a),g=d+h.f.a;break;case 1:d=j.a+i.f.a+p,k.e.a+p>d&&(d=k.e.a+k.f.a+p),g=d+h.f.a;break;case 4:d=j.b-p-h.f.b,k.e.b-p-h.f.b<d&&(d=k.e.b-p-h.f.b),g=d+h.f.b;break;case 3:d=j.b+i.f.b+p,k.e.b+p>d&&(d=k.e.b+k.f.b+p),g=d+h.f.b}else if(k)switch(r.g){case 2:d=k.e.a-p-h.f.a,g=d+h.f.a;break;case 1:d=k.e.a+k.f.a+p,g=d+h.f.a;break;case 4:d=k.e.b-p-h.f.b,g=d+h.f.b;break;case 3:d=k.e.b+k.f.b+p,g=d+h.f.b}x(v(e,oq))===x((d5(),Nj))?(c=d,s=g,f=im(ut(new Cn(null,new On(n.a,16)),new eTn(c,s))),f.a!=null?r==(ci(),Kr)||r==Xr?h.e.a=d:h.e.b=d:(r==(ci(),Kr)||r==us?f=im(ut(A$n(new Cn(null,new On(n.a,16))),new dkn(c))):f=im(ut(A$n(new Cn(null,new On(n.a,16))),new bkn(c))),f.a!=null&&(r==Kr||r==Xr?h.e.a=$(B((oe(f.a!=null),u(f.a,42)).a)):h.e.b=$(B((oe(f.a!=null),u(f.a,42)).a)))),f.a!=null&&(a=qr(n.a,(oe(f.a!=null),f.a),0),a>0&&a!=u(v(h,Ph),17).a&&(U(h,pln,(_n(),!0)),U(h,Ph,Y(a))))):r==(ci(),Kr)||r==Xr?h.e.a=d:h.e.b=d}t.Vg()}}function kzn(n){var e,t,i,r,c,s,f,h,l;for(n.b=1,Ze(n),e=null,n.c==0&&n.a==94?(Ze(n),e=(nt(),nt(),new yo(4)),xc(e,0,cv),f=new yo(4)):f=(nt(),nt(),new yo(4)),r=!0;(l=n.c)!=1;){if(l==0&&n.a==93&&!r){e&&(V5(e,f),f=e);break}if(t=n.a,i=!1,l==10)switch(t){case 100:case 68:case 119:case 87:case 115:case 83:gw(f,Om(t)),i=!0;break;case 105:case 73:case 99:case 67:t=(gw(f,Om(t)),-1),t<0&&(i=!0);break;case 112:case 80:if(h=Dnn(n,t),!h)throw T(new Ne($e((Oe(),EF))));gw(f,h),i=!0;break;default:t=wen(n)}else if(l==24&&!r){if(e&&(V5(e,f),f=e),c=kzn(n),V5(f,c),n.c!=0||n.a!=93)throw T(new Ne($e((Oe(),BWn))));break}if(Ze(n),!i){if(l==0){if(t==91)throw T(new Ne($e((Oe(),Kcn))));if(t==93)throw T(new Ne($e((Oe(),Bcn))));if(t==45&&!r&&n.a!=93)throw T(new Ne($e((Oe(),MF))))}if(n.c!=0||n.a!=45||t==45&&r)xc(f,t,t);else{if(Ze(n),(l=n.c)==1)throw T(new Ne($e((Oe(),UP))));if(l==0&&n.a==93)xc(f,t,t),xc(f,45,45);else{if(l==0&&n.a==93||l==24)throw T(new Ne($e((Oe(),MF))));if(s=n.a,l==0){if(s==91)throw T(new Ne($e((Oe(),Kcn))));if(s==93)throw T(new Ne($e((Oe(),Bcn))));if(s==45)throw T(new Ne($e((Oe(),MF))))}else l==10&&(s=wen(n));if(Ze(n),t>s)throw T(new Ne($e((Oe(),HWn))));xc(f,t,s)}}}r=!1}if(n.c==1)throw T(new Ne($e((Oe(),UP))));return Gg(f),z5(f),n.b=0,Ze(n),f}function FNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;if(t.Ug("Coffman-Graham Layering",1),e.a.c.length==0){t.Vg();return}for(_=u(v(e,(cn(),thn)),17).a,h=0,s=0,g=new M(e.a);g.a<g.c.c.length;)for(d=u(E(g),10),d.p=h++,c=new ie(ce(Qt(d).a.Kc(),new En));pe(c);)r=u(fe(c),18),r.p=s++;for(n.d=F(so,Xh,28,h,16,1),n.a=F(so,Xh,28,s,16,1),n.b=F(ye,_e,28,h,15,1),n.e=F(ye,_e,28,h,15,1),n.f=F(ye,_e,28,h,15,1),gC(n.c),Rke(n,e),m=new dT(new A7n(n)),D=new M(e.a);D.a<D.c.c.length;){for(O=u(E(D),10),c=new ie(ce(ji(O).a.Kc(),new En));pe(c);)r=u(fe(c),18),n.a[r.p]||++n.b[O.p];n.b[O.p]==0&&Tp(ym(m,O),_m)}for(f=0;m.b.c.length!=0;)for(O=u(w$(m),10),n.f[O.p]=f++,c=new ie(ce(Qt(O).a.Kc(),new En));pe(c);)r=u(fe(c),18),!n.a[r.p]&&(j=r.d.i,--n.b[j.p],In(n.c,j,Y(n.f[O.p])),n.b[j.p]==0&&Tp(ym(m,j),_m));for(p=new dT(new L7n(n)),A=new M(e.a);A.a<A.c.c.length;){for(O=u(E(A),10),c=new ie(ce(Qt(O).a.Kc(),new En));pe(c);)r=u(fe(c),18),n.a[r.p]||++n.e[O.p];n.e[O.p]==0&&Tp(ym(p,O),_m)}for(a=new Z,i=mOn(e,a);p.b.c.length!=0;)for(P=u(w$(p),10),(i.a.c.length>=_||!D8e(P,i))&&(i=mOn(e,a)),$i(P,i),c=new ie(ce(ji(P).a.Kc(),new En));pe(c);)r=u(fe(c),18),!n.a[r.p]&&(k=r.c.i,--n.e[k.p],n.e[k.p]==0&&Tp(ym(p,k),_m));for(l=a.c.length-1;l>=0;--l)nn(e.b,(Nn(l,a.c.length),u(a.c[l],30)));e.a.c.length=0,t.Vg()}function yzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;D=!1;do for(D=!1,c=e?new qa(n.a.b).a.gc()-2:1;e?c>=0:c<new qa(n.a.b).a.gc();c+=e?-1:1)for(r=kJ(n.a,Y(c)),p=0;p<r.b;p++)if(d=u(Zo(r,p),10),!!kt(d,(W(),dt))&&!(_ke(n.a,Y(c))&&n.r==(ps(),p0)||Hke(n.a,Y(c))&&n.r==(ps(),Uw))){for(A=!0,P=0;P<r.b;P++)j=u(Zo(r,P),10),kt(j,dt)&&(e&&u(v(d,dt),17).a<u(v(j,dt),17).a||!e&&u(v(d,dt),17).a>u(v(j,dt),17).a)&&(A=!1);if(A){for(h=e?c+1:c-1,f=kJ(n.a,Y(h)),s=!1,O=!0,i=!1,a=ge(f,0);a.b!=a.d.c;)l=u(be(a),10),kt(l,dt)?l.p!=d.p&&(s=s|(e?u(v(l,dt),17).a<u(v(d,dt),17).a:u(v(l,dt),17).a>u(v(d,dt),17).a),O=!1):!s&&O&&l.k==(Vn(),Sc)&&(i=!0,e?g=u(fe(new ie(ce(ji(l).a.Kc(),new En))),18).c.i:g=u(fe(new ie(ce(Qt(l).a.Kc(),new En))),18).d.i,g==d&&(e?t=u(fe(new ie(ce(Qt(l).a.Kc(),new En))),18).d.i:t=u(fe(new ie(ce(ji(l).a.Kc(),new En))),18).c.i,(e?u(x0(n.a,t),17).a-u(x0(n.a,g),17).a:u(x0(n.a,g),17).a-u(x0(n.a,t),17).a)<=2&&(O=!1)));if(i&&O&&(e?t=u(fe(new ie(ce(Qt(d).a.Kc(),new En))),18).d.i:t=u(fe(new ie(ce(ji(d).a.Kc(),new En))),18).c.i,(e?u(x0(n.a,t),17).a-u(x0(n.a,d),17).a:u(x0(n.a,d),17).a-u(x0(n.a,t),17).a)<=2&&t.k==(Vn(),zt)&&(O=!1)),s||O){for(k=YHn(n,d,e);k.a.gc()!=0;)m=u(k.a.ec().Kc().Pb(),10),k.a.Bc(m)!=null,Ki(k,YHn(n,m,e));--p,D=!0}}}while(D)}function _Ne(n){Te(n.c,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#decimal"])),Te(n.d,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#integer"])),Te(n.e,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#boolean"])),Te(n.f,Ke,S(C(fn,1),J,2,6,[Ji,"EBoolean",Qe,"EBoolean:Object"])),Te(n.i,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#byte"])),Te(n.g,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#hexBinary"])),Te(n.j,Ke,S(C(fn,1),J,2,6,[Ji,"EByte",Qe,"EByte:Object"])),Te(n.n,Ke,S(C(fn,1),J,2,6,[Ji,"EChar",Qe,"EChar:Object"])),Te(n.t,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#double"])),Te(n.u,Ke,S(C(fn,1),J,2,6,[Ji,"EDouble",Qe,"EDouble:Object"])),Te(n.F,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#float"])),Te(n.G,Ke,S(C(fn,1),J,2,6,[Ji,"EFloat",Qe,"EFloat:Object"])),Te(n.I,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#int"])),Te(n.J,Ke,S(C(fn,1),J,2,6,[Ji,"EInt",Qe,"EInt:Object"])),Te(n.N,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#long"])),Te(n.O,Ke,S(C(fn,1),J,2,6,[Ji,"ELong",Qe,"ELong:Object"])),Te(n.Z,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#short"])),Te(n.$,Ke,S(C(fn,1),J,2,6,[Ji,"EShort",Qe,"EShort:Object"])),Te(n._,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#string"]))}function HNe(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m;return g=u(i.a,17).a,p=u(i.b,17).a,d=n.b,m=n.c,f=0,a=0,e==(ci(),Kr)||e==Xr?(a=a7(lKn(U0(_r(new Cn(null,new On(t.b,16)),new x4n),new m4n))),d.e.b+d.f.b/2>a?(l=++p,f=$(B(ho(_0(_r(new Cn(null,new On(t.b,16)),new rTn(r,l)),new v4n))))):(h=++g,f=$(B(ho(Sp(_r(new Cn(null,new On(t.b,16)),new cTn(r,h)),new k4n)))))):(a=a7(lKn(U0(_r(new Cn(null,new On(t.b,16)),new M4n),new p4n))),d.e.a+d.f.a/2>a?(l=++p,f=$(B(ho(_0(_r(new Cn(null,new On(t.b,16)),new tTn(r,l)),new y4n))))):(h=++g,f=$(B(ho(Sp(_r(new Cn(null,new On(t.b,16)),new iTn(r,h)),new j4n)))))),e==Kr?(ir(n.a,new V($(B(v(d,(pt(),jf))))-r,f)),ir(n.a,new V(m.e.a+m.f.a+r+c,f)),ir(n.a,new V(m.e.a+m.f.a+r+c,m.e.b+m.f.b/2)),ir(n.a,new V(m.e.a+m.f.a,m.e.b+m.f.b/2))):e==Xr?(ir(n.a,new V($(B(v(d,(pt(),Js))))+r,d.e.b+d.f.b/2)),ir(n.a,new V(d.e.a+d.f.a+r,f)),ir(n.a,new V(m.e.a-r-c,f)),ir(n.a,new V(m.e.a-r-c,m.e.b+m.f.b/2)),ir(n.a,new V(m.e.a,m.e.b+m.f.b/2))):e==us?(ir(n.a,new V(f,$(B(v(d,(pt(),jf))))-r)),ir(n.a,new V(f,m.e.b+m.f.b+r+c)),ir(n.a,new V(m.e.a+m.f.a/2,m.e.b+m.f.b+r+c)),ir(n.a,new V(m.e.a+m.f.a/2,m.e.b+m.f.b+r))):(n.a.b==0||(u($s(n.a),8).b=$(B(v(d,(pt(),Js))))+r*u(s.b,17).a),ir(n.a,new V(f,$(B(v(d,(pt(),Js))))+r*u(s.b,17).a)),ir(n.a,new V(f,m.e.b-r*u(s.a,17).a-c))),new bi(Y(g),Y(p))}function qNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;if(s=!0,d=null,i=null,r=null,e=!1,p=$oe,l=null,c=null,f=0,h=yx(n,f,Fdn,_dn),h<n.length&&(zn(h,n.length),n.charCodeAt(h)==58)&&(d=(Ri(f,h,n.length),n.substr(f,h-f)),f=h+1),t=d!=null&&t7(jA,d.toLowerCase()),t){if(h=n.lastIndexOf("!/"),h==-1)throw T(new Gn("no archive separator"));s=!0,i=qo(n,f,++h),f=h}else f>=0&&Sn(n.substr(f,2),"//")?(f+=2,h=yx(n,f,L9,N9),i=(Ri(f,h,n.length),n.substr(f,h-f)),f=h):d!=null&&(f==n.length||(zn(f,n.length),n.charCodeAt(f)!=47))&&(s=!1,h=UX(n,wu(35),f),h==-1&&(h=n.length),i=(Ri(f,h,n.length),n.substr(f,h-f)),f=h);if(!t&&f<n.length&&(zn(f,n.length),n.charCodeAt(f)==47)&&(h=yx(n,f+1,L9,N9),a=(Ri(f+1,h,n.length),n.substr(f+1,h-(f+1))),a.length>0&&Xi(a,a.length-1)==58&&(r=a,f=h)),f<n.length&&(zn(f,n.length),n.charCodeAt(f)==47)&&(++f,e=!0),f<n.length&&(zn(f,n.length),n.charCodeAt(f)!=63)&&(zn(f,n.length),n.charCodeAt(f)!=35)){for(g=new Z;f<n.length&&(zn(f,n.length),n.charCodeAt(f)!=63)&&(zn(f,n.length),n.charCodeAt(f)!=35);)h=yx(n,f,L9,N9),nn(g,(Ri(f,h,n.length),n.substr(f,h-f))),f=h,f<n.length&&(zn(f,n.length),n.charCodeAt(f)==47)&&(q6e(n,++f)||g.c.push(""));p=F(fn,J,2,g.c.length,6,1),Rf(g,p)}return f<n.length&&(zn(f,n.length),n.charCodeAt(f)==63)&&(h=w4(n,35,++f),h==-1&&(h=n.length),l=(Ri(f,h,n.length),n.substr(f,h-f)),f=h),f<n.length&&(c=DW(n,++f)),yAe(s,d,i,r,p,l),new jR(s,d,i,r,e,p,l,c)}function jzn(){jzn=R,YR(),qe=new Mb,In(qe,(en(),ef),Yf),In(qe,Cs,Yf),In(qe,Wu,Yf),In(qe,tf,Yf),In(qe,vu,Yf),In(qe,Ju,Yf),In(qe,tf,ef),In(qe,Yf,os),In(qe,ef,os),In(qe,Cs,os),In(qe,Wu,os),In(qe,mu,os),In(qe,tf,os),In(qe,vu,os),In(qe,Ju,os),In(qe,su,os),In(qe,Yf,Do),In(qe,ef,Do),In(qe,os,Do),In(qe,Cs,Do),In(qe,Wu,Do),In(qe,mu,Do),In(qe,tf,Do),In(qe,su,Do),In(qe,$o,Do),In(qe,vu,Do),In(qe,xu,Do),In(qe,Ju,Do),In(qe,ef,Cs),In(qe,Wu,Cs),In(qe,tf,Cs),In(qe,Ju,Cs),In(qe,ef,Wu),In(qe,Cs,Wu),In(qe,tf,Wu),In(qe,Wu,Wu),In(qe,vu,Wu),In(qe,Yf,ss),In(qe,ef,ss),In(qe,os,ss),In(qe,Do,ss),In(qe,Cs,ss),In(qe,Wu,ss),In(qe,mu,ss),In(qe,tf,ss),In(qe,$o,ss),In(qe,su,ss),In(qe,Ju,ss),In(qe,vu,ss),In(qe,Uc,ss),In(qe,Yf,$o),In(qe,ef,$o),In(qe,os,$o),In(qe,Cs,$o),In(qe,Wu,$o),In(qe,mu,$o),In(qe,tf,$o),In(qe,su,$o),In(qe,Ju,$o),In(qe,xu,$o),In(qe,Uc,$o),In(qe,ef,su),In(qe,Cs,su),In(qe,Wu,su),In(qe,tf,su),In(qe,$o,su),In(qe,Ju,su),In(qe,vu,su),In(qe,Yf,pu),In(qe,ef,pu),In(qe,os,pu),In(qe,Cs,pu),In(qe,Wu,pu),In(qe,mu,pu),In(qe,tf,pu),In(qe,su,pu),In(qe,Ju,pu),In(qe,ef,vu),In(qe,os,vu),In(qe,Do,vu),In(qe,Wu,vu),In(qe,Yf,xu),In(qe,ef,xu),In(qe,Do,xu),In(qe,Cs,xu),In(qe,Wu,xu),In(qe,mu,xu),In(qe,tf,xu),In(qe,tf,Uc),In(qe,Wu,Uc),In(qe,su,Yf),In(qe,su,Cs),In(qe,su,os),In(qe,mu,Yf),In(qe,mu,ef),In(qe,mu,Do)}function UNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;switch(t.Ug("Brandes & Koepf node placement",1),n.a=e,n.c=CIe(e),i=u(v(e,(cn(),CH)),281),p=on(un(v(e,G8))),n.d=i==(Vk(),YI)&&!p||i==iH,gAe(n,e),_=null,X=null,P=null,O=null,j=(Mo(4,mw),new Gc(4)),u(v(e,CH),281).g){case 3:P=new Wg(e,n.c.d,(If(),Bd),(fh(),y1)),Fn(j.c,P);break;case 1:O=new Wg(e,n.c.d,(If(),Xf),(fh(),y1)),Fn(j.c,O);break;case 4:_=new Wg(e,n.c.d,(If(),Bd),(fh(),m0)),Fn(j.c,_);break;case 2:X=new Wg(e,n.c.d,(If(),Xf),(fh(),m0)),Fn(j.c,X);break;default:P=new Wg(e,n.c.d,(If(),Bd),(fh(),y1)),O=new Wg(e,n.c.d,Xf,y1),_=new Wg(e,n.c.d,Bd,m0),X=new Wg(e,n.c.d,Xf,m0),Fn(j.c,_),Fn(j.c,X),Fn(j.c,P),Fn(j.c,O)}for(r=new zMn(e,n.c),f=new M(j);f.a<f.c.c.length;)c=u(E(f),185),cNe(r,c,n.b),tOe(c);for(g=new iFn(e,n.c),h=new M(j);h.a<h.c.c.length;)c=u(E(h),185),PAe(g,c);if(t._g())for(l=new M(j);l.a<l.c.c.length;)c=u(E(l),185),t.bh(c+" size is "+gR(c));if(d=null,n.d&&(a=JLe(n,j,n.c.d),JUn(e,a,t)&&(d=a)),!d)for(l=new M(j);l.a<l.c.c.length;)c=u(E(l),185),JUn(e,c,t)&&(!d||gR(d)>gR(c))&&(d=c);for(!d&&(d=(Nn(0,j.c.length),u(j.c[0],185))),k=new M(e.b);k.a<k.c.c.length;)for(m=u(E(k),30),D=new M(m.a);D.a<D.c.c.length;)A=u(E(D),10),A.n.b=$(d.p[A.p])+$(d.d[A.p]);for(t._g()&&(t.bh("Chosen node placement: "+d),t.bh("Blocks: "+aHn(d)),t.bh("Classes: "+FMe(d,t)),t.bh("Marked edges: "+n.b)),s=new M(j);s.a<s.c.c.length;)c=u(E(s),185),c.g=null,c.b=null,c.a=null,c.d=null,c.j=null,c.i=null,c.p=null;e3e(n.c),n.b.a.$b(),t.Vg()}function GNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;if(n.c.length==1)return kFn((Nn(0,n.c.length),u(n.c[0],121))),Nn(0,n.c.length),u(n.c[0],121);if(n.c.length<=0)return new tk;for(h=new M(n);h.a<h.c.c.length;){for(s=u(E(h),121),O=0,m=et,k=et,g=Wi,p=Wi,P=ge(s.b,0);P.b!=P.d.c;)j=u(be(P),40),O+=u(v(j,(lc(),RO)),17).a,m=y.Math.min(m,j.e.a),k=y.Math.min(k,j.e.b),g=y.Math.max(g,j.e.a+j.f.a),p=y.Math.max(p,j.e.b+j.f.b);U(s,(lc(),RO),Y(O)),U(s,(pt(),Lv),new V(m,k)),U(s,Dj,new V(g,p))}for(Ln(),Yt(n,new q3n),_=new tk,Ur(_,(Nn(0,n.c.length),u(n.c[0],96))),d=0,Rn=0,l=new M(n);l.a<l.c.c.length;)s=u(E(l),121),X=mi(Fi(u(v(s,(pt(),Dj)),8)),u(v(s,Lv),8)),d=y.Math.max(d,X.a),Rn+=X.a*X.b;for(d=y.Math.max(d,y.Math.sqrt(Rn)*$(B(v(_,(lc(),yre))))),tn=$(B(v(_,sq))),Bn=0,te=0,a=0,e=tn,f=new M(n);f.a<f.c.c.length;)s=u(E(f),121),X=mi(Fi(u(v(s,(pt(),Dj)),8)),u(v(s,Lv),8)),Bn+X.a>d&&(Bn=0,te+=a+tn,a=0),lUn(_,s,Bn,te),e=y.Math.max(e,Bn+X.a),a=y.Math.max(a,X.b),Bn+=X.a+tn;for(D=new de,t=new de,kn=new M(n);kn.a<kn.c.c.length;)for(yn=u(E(kn),121),i=on(un(v(yn,(He(),zj)))),A=yn.q?yn.q:Wh,c=A.vc().Kc();c.Ob();)r=u(c.Pb(),44),Zc(D,r.ld())?x(u(r.ld(),149).Sg())!==x(r.md())&&(i&&Zc(t,r.ld())?(fl(),""+u(r.ld(),149).Pg()):(Ve(D,u(r.ld(),149),r.md()),U(_,u(r.ld(),149),r.md()),i&&Ve(t,u(r.ld(),149),r.md()))):(Ve(D,u(r.ld(),149),r.md()),U(_,u(r.ld(),149),r.md()));return kFn(_),_}function XS(n,e){switch(n.e){case 0:case 2:case 4:case 6:case 42:case 44:case 46:case 48:case 8:case 10:case 12:case 14:case 16:case 18:case 20:case 22:case 24:case 26:case 28:case 30:case 32:case 34:case 36:case 38:return new UOn(n.b,n.a,e,n.c);case 1:return new $M(n.a,e,At(e.Dh(),n.c));case 43:return new xCn(n.a,e,At(e.Dh(),n.c));case 3:return new ti(n.a,e,At(e.Dh(),n.c));case 45:return new Cu(n.a,e,At(e.Dh(),n.c));case 41:return new Ou(u(gs(n.c),29),n.a,e,At(e.Dh(),n.c));case 50:return new rxn(u(gs(n.c),29),n.a,e,At(e.Dh(),n.c));case 5:return new yV(n.a,e,At(e.Dh(),n.c),n.d.n);case 47:return new WSn(n.a,e,At(e.Dh(),n.c),n.d.n);case 7:return new q(n.a,e,At(e.Dh(),n.c),n.d.n);case 49:return new jp(n.a,e,At(e.Dh(),n.c),n.d.n);case 9:return new $Cn(n.a,e,At(e.Dh(),n.c));case 11:return new DCn(n.a,e,At(e.Dh(),n.c));case 13:return new $X(n.a,e,At(e.Dh(),n.c));case 15:return new QM(n.a,e,At(e.Dh(),n.c));case 17:return new RCn(n.a,e,At(e.Dh(),n.c));case 19:return new Eg(n.a,e,At(e.Dh(),n.c));case 21:return new xX(n.a,e,At(e.Dh(),n.c));case 23:return new R7(n.a,e,At(e.Dh(),n.c));case 25:return new YSn(n.a,e,At(e.Dh(),n.c),n.d.n);case 27:return new Dn(n.a,e,At(e.Dh(),n.c),n.d.n);case 29:return new QSn(n.a,e,At(e.Dh(),n.c),n.d.n);case 31:return new JSn(n.a,e,At(e.Dh(),n.c),n.d.n);case 33:return new EV(n.a,e,At(e.Dh(),n.c),n.d.n);case 35:return new jV(n.a,e,At(e.Dh(),n.c),n.d.n);case 37:return new DN(n.a,e,At(e.Dh(),n.c),n.d.n);case 39:return new bT(n.a,e,At(e.Dh(),n.c),n.d.n);case 40:return new Bt(e,At(e.Dh(),n.c));default:throw T(new ec("Unknown feature style: "+n.e))}}function Ezn(n){var e,t,i,r,c,s,f,h;for(c=0,r=n.a.b,h=ge(n.a,0);h.b!=h.d.c;){if(f=u(be(h),240),s=(c+1)/(r+1),!n.c&&!n.d)return;n.c&&!n.d?(n.g=!0,n.b==(ci(),Kr)?(i=n.c.e.b+n.c.f.b+n.e*(c+1),e=new V($(B(v(n.c,(pt(),Js))))+n.e,i),t=new V($(B(v(n.c,jf)))-n.e,i)):n.b==Xr?(i=n.c.e.b+n.c.f.b+n.e*(c+1),e=new V($(B(v(n.c,(pt(),jf))))-n.e,i),t=new V($(B(v(n.c,Js)))+n.e,i)):n.b==us?(i=n.c.e.a+n.c.f.a+n.e*(c+1),e=new V(i,$(B(v(n.c,(pt(),Js))))+n.e),t=new V(i,$(B(v(n.c,jf)))-n.e)):(i=n.c.e.a+n.c.f.a+n.e*(c+1),e=new V(i,$(B(v(n.c,(pt(),jf))))-n.e),t=new V(i,$(B(v(n.c,Js)))+n.e))):n.c&&n.d?n.b==(ci(),Kr)?(i=n.d.e.b*s+(n.c.e.b+n.c.f.b)*(1-s),e=new V($(B(v(n.c,(pt(),Js))))+n.e,i),t=new V($(B(v(n.c,jf)))-n.e,i)):n.b==Xr?(i=n.d.e.b*s+(n.c.e.b+n.c.f.b)*(1-s),e=new V($(B(v(n.c,(pt(),jf))))-n.e,i),t=new V($(B(v(n.c,Js)))+n.e,i)):n.b==us?(i=n.d.e.a*s+(n.c.e.a+n.c.f.a)*(1-s),e=new V(i,$(B(v(n.c,(pt(),Js))))+n.e),t=new V(i,$(B(v(n.c,jf)))-n.e)):(i=n.d.e.a*s+(n.c.e.a+n.c.f.a)*(1-s),e=new V(i,$(B(v(n.c,(pt(),jf))))-n.e),t=new V(i,$(B(v(n.c,Js)))+n.e)):(n.f=!0,n.b==(ci(),Kr)?(i=n.d.e.b-n.e*(c+1),e=new V($(B(v(n.d,(pt(),Js))))+n.e,i),t=new V($(B(v(n.d,jf)))-n.e,i)):n.b==Xr?(i=n.d.e.b-n.e*(c+1),e=new V($(B(v(n.d,(pt(),jf))))-n.e,i),t=new V($(B(v(n.d,Js)))+n.e,i)):n.b==us?(i=n.d.e.a-n.e*(c+1),e=new V(i,$(B(v(n.d,(pt(),Js))))+n.e),t=new V(i,$(B(v(n.d,jf)))-n.e)):(i=n.d.e.a-n.e*(c+1),e=new V(i,$(B(v(n.d,(pt(),jf))))-n.e),t=new V(i,$(B(v(n.d,Js)))+n.e))),u(f.a,8).a=e.a,u(f.a,8).b=e.b,f.b.a=t.a,f.b.b=t.b,++c}}function zNe(n,e,t,i,r,c){var s,f,h,l,a,d,g,p,m,k,j,P;switch(e){case 71:f=i.q.getFullYear()-ha>=-1900?1:0,t>=4?Be(n,S(C(fn,1),J,2,6,[Kzn,Bzn])[f]):Be(n,S(C(fn,1),J,2,6,["BC","AD"])[f]);break;case 121:f9e(n,t,i);break;case 77:PPe(n,t,i);break;case 107:h=r.q.getHours(),h==0?Kh(n,24,t):Kh(n,h,t);break;case 83:_Te(n,t,r);break;case 69:a=i.q.getDay(),t==5?Be(n,S(C(fn,1),J,2,6,["S","M","T","W","T","F","S"])[a]):t==4?Be(n,S(C(fn,1),J,2,6,[vK,kK,yK,jK,EK,MK,TK])[a]):Be(n,S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[a]);break;case 97:r.q.getHours()>=12&&r.q.getHours()<24?Be(n,S(C(fn,1),J,2,6,["AM","PM"])[1]):Be(n,S(C(fn,1),J,2,6,["AM","PM"])[0]);break;case 104:d=r.q.getHours()%12,d==0?Kh(n,12,t):Kh(n,d,t);break;case 75:g=r.q.getHours()%12,Kh(n,g,t);break;case 72:p=r.q.getHours(),Kh(n,p,t);break;case 99:m=i.q.getDay(),t==5?Be(n,S(C(fn,1),J,2,6,["S","M","T","W","T","F","S"])[m]):t==4?Be(n,S(C(fn,1),J,2,6,[vK,kK,yK,jK,EK,MK,TK])[m]):t==3?Be(n,S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[m]):Kh(n,m,1);break;case 76:k=i.q.getMonth(),t==5?Be(n,S(C(fn,1),J,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[k]):t==4?Be(n,S(C(fn,1),J,2,6,[sK,fK,hK,lK,c3,aK,dK,bK,wK,gK,pK,mK])[k]):t==3?Be(n,S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[k]):Kh(n,k+1,t);break;case 81:j=i.q.getMonth()/3|0,t<4?Be(n,S(C(fn,1),J,2,6,["Q1","Q2","Q3","Q4"])[j]):Be(n,S(C(fn,1),J,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[j]);break;case 100:P=i.q.getDate(),Kh(n,P,t);break;case 109:l=r.q.getMinutes(),Kh(n,l,t);break;case 115:s=r.q.getSeconds(),Kh(n,s,t);break;case 122:t<4?Be(n,c.c[0]):Be(n,c.c[1]);break;case 118:Be(n,c.b);break;case 90:t<3?Be(n,DEe(c)):t==3?Be(n,BEe(c)):Be(n,FEe(c.a));break;default:return!1}return!0}function ftn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe;if(nUn(e),h=u(N((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84),a=u(N((!e.c&&(e.c=new Dn(he,e,5,8)),e.c),0),84),f=Gr(h),l=Gr(a),s=(!e.a&&(e.a=new q(Tt,e,6,6)),e.a).i==0?null:u(N((!e.a&&(e.a=new q(Tt,e,6,6)),e.a),0),166),tn=u(ee(n.a,f),10),Bn=u(ee(n.a,l),10),yn=null,te=null,L(h,193)&&(X=u(ee(n.a,h),305),L(X,12)?yn=u(X,12):L(X,10)&&(tn=u(X,10),yn=u(sn(tn.j,0),12))),L(a,193)&&(Rn=u(ee(n.a,a),305),L(Rn,12)?te=u(Rn,12):L(Rn,10)&&(Bn=u(Rn,10),te=u(sn(Bn.j,0),12))),!tn||!Bn)throw T(new hp("The source or the target of edge "+e+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(k=new Eb,Ur(k,e),U(k,(W(),st),e),U(k,(cn(),Rr),null),p=u(v(i,Hc),21),tn==Bn&&p.Fc((pr(),K8)),yn||(_=(gr(),Jc),kn=null,s&&mg(u(v(tn,Ft),101))&&(kn=new V(s.j,s.k),ULn(kn,V7(e)),mNn(kn,t),Y0(l,f)&&(_=Vu,tt(kn,tn.n))),yn=eGn(tn,kn,_,i)),te||(_=(gr(),Vu),xe=null,s&&mg(u(v(Bn,Ft),101))&&(xe=new V(s.b,s.c),ULn(xe,V7(e)),mNn(xe,t)),te=eGn(Bn,xe,_,Hi(Bn))),Zi(k,yn),Oi(k,te),(yn.e.c.length>1||yn.g.c.length>1||te.e.c.length>1||te.g.c.length>1)&&p.Fc((pr(),R8)),g=new ne((!e.n&&(e.n=new q(Sr,e,1,7)),e.n));g.e!=g.i.gc();)if(d=u(ue(g),135),!on(un(z(d,Rd)))&&d.a)switch(j=ex(d),nn(k.b,j),u(v(j,Sh),278).g){case 1:case 2:p.Fc((pr(),kv));break;case 0:p.Fc((pr(),vv)),U(j,Sh,($f(),Rv))}if(c=u(v(i,U8),322),P=u(v(i,vO),323),r=c==(c5(),pj)||P==(T5(),BH),s&&(!s.a&&(s.a=new ti(xo,s,5)),s.a).i!=0&&r){for(O=Qk(s),m=new Tu,D=ge(O,0);D.b!=D.d.c;)A=u(be(D),8),Re(m,new rr(A));U(k,rfn,m)}return k}function XNe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt;for(kn=0,Rn=0,tn=new de,_=u(ho(_0(_r(new Cn(null,new On(n.b,16)),new E4n),new A4n)),17).a+1,yn=F(ye,_e,28,_,15,1),j=F(ye,_e,28,_,15,1),k=0;k<_;k++)yn[k]=0,j[k]=0;for(h=u(Wr(cJ(new Cn(null,new On(n.a,16))),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),a=h.Kc();a.Ob();)if(l=u(a.Pb(),65),te=u(v(l.b,(lc(),Ph)),17).a,Nt=u(v(l.c,Ph),17).a,D=Nt-te,D>1)for(f=te+1;f<Nt;f++){if(d=f,X=u(Wr(ut(new Cn(null,new On(n.b,16)),new ykn(d)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),m=0,e==(ci(),Kr)||e==Xr){for(X.jd(new I4n),m=0;m<X.gc()&&(P=(f-te)/(Nt-te),!(u(X.Xb(m),40).e.b>l.b.e.b*(1-P)+l.c.e.b*P));m++);if(X.gc()>0&&(xe=l.a.b==0?Fi(l.b.e):u($s(l.a),8),A=tt(Fi(u(X.Xb(X.gc()-1),40).e),u(X.Xb(X.gc()-1),40).f),g=tt(Fi(u(X.Xb(0),40).e),u(X.Xb(0),40).f),m>=X.gc()-1&&xe.b>A.b&&l.c.e.b>A.b||m<=0&&xe.b<g.a&&l.c.e.b<g.b))continue}else{for(X.jd(new O4n),m=0;m<X.gc()&&(P=(f-te)/(Nt-te),!(u(X.Xb(m),40).e.a>l.b.e.a*(1-P)+l.c.e.a*P));m++);if(X.gc()>0&&(xe=l.a.b==0?Fi(l.b.e):u($s(l.a),8),A=tt(Fi(u(X.Xb(X.gc()-1),40).e),u(X.Xb(X.gc()-1),40).f),g=tt(Fi(u(X.Xb(0),40).e),u(X.Xb(0),40).f),m>=X.gc()-1&&xe.a>A.a&&l.c.e.a>A.a||m<=0&&xe.a<g.a&&l.c.e.a<g.a))continue}r=new Ni,c=new Ni,Re(l.a,r),Re(l.a,c),s=new _N(r,c,l),O=lf(Ks(f,32),vi(m,mr)),Zc(tn,Tl(O))?(p=u(ee(tn,Tl(O)),675),Re(p.a,s),hl(p.b)?ud(p.a,new R4n):ud(p.a,new K4n),Ezn(p)):(p=new RBn(m==0?null:u(X.Xb(m-1),40),m==X.gc()?null:u(X.Xb(m),40),s,n),Ve(tn,Tl(O),p)),e==Kr||e==Xr?(p.f&&p.d.e.b<=$(B(v(n,(pt(),rq))))&&++kn,p.g&&p.c.e.b+p.c.f.b>=$(B(v(n,(pt(),kln))))&&++Rn):(p.f&&p.d.e.a<=$(B(v(n,(pt(),iq))))&&++kn,p.g&&p.c.e.a+p.c.f.a>=$(B(v(n,(pt(),vln))))&&++Rn)}else D==0?Ann(l):D<0&&(++yn[te],++j[Nt],Bn=HNe(l,e,n,new bi(Y(kn),Y(Rn)),t,i,new bi(Y(j[Nt]),Y(yn[te]))),kn=u(Bn.a,17).a,Rn=u(Bn.b,17).a)}function VNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;if(i=e,h=t,n.b&&i.j==(en(),Wn)&&h.j==(en(),Wn)&&(O=i,i=h,h=O),Zc(n.a,i)){if(sf(u(ee(n.a,i),49),h))return 1}else Ve(n.a,i,new ni);if(Zc(n.a,h)){if(sf(u(ee(n.a,h),49),i))return-1}else Ve(n.a,h,new ni);if(Zc(n.d,i)){if(sf(u(ee(n.d,i),49),h))return-1}else Ve(n.d,i,new ni);if(Zc(n.d,h)){if(sf(u(ee(n.a,h),49),i))return 1}else Ve(n.d,h,new ni);if(i.j!=h.j)return P=xle(i.j,h.j),P==-1?ns(n,h,i):ns(n,i,h),P;if(i.e.c.length!=0&&h.e.c.length!=0){if(n.b&&(P=BRn(i,h),P!=0))return P==-1?ns(n,h,i):P==1&&ns(n,i,h),P;if(c=u(sn(i.e,0),18).c.i,a=u(sn(h.e,0),18).c.i,c==a)return r=u(v(u(sn(i.e,0),18),(W(),dt)),17).a,l=u(v(u(sn(h.e,0),18),dt),17).a,r>l?ns(n,i,h):ns(n,h,i),r<l?-1:r>l?1:0;for(m=n.c,k=0,j=m.length;k<j;++k){if(p=m[k],p==c)return ns(n,i,h),1;if(p==a)return ns(n,h,i),-1}}return i.g.c.length!=0&&h.g.c.length!=0?(f=u(v(i,(W(),aH)),10),g=u(v(h,aH),10),n.e==(lh(),HH)&&f&&g&&kt(f,dt)&&kt(g,dt)?(r=u(v(f,dt),17).a,l=u(v(g,dt),17).a,r>l?ns(n,i,h):ns(n,h,i),r<l?-1:r>l?1:0):n.b&&(P=BRn(i,h),P!=0)?(P==-1?ns(n,h,i):P==1&&ns(n,i,h),P):(s=0,d=0,kt(u(sn(i.g,0),18),dt)&&(s=u(v(u(sn(i.g,0),18),dt),17).a),kt(u(sn(h.g,0),18),dt)&&(d=u(v(u(sn(i.g,0),18),dt),17).a),f&&f==g?on(un(v(u(sn(i.g,0),18),zf)))&&!on(un(v(u(sn(h.g,0),18),zf)))?(ns(n,i,h),1):!on(un(v(u(sn(i.g,0),18),zf)))&&on(un(v(u(sn(h.g,0),18),zf)))?(ns(n,h,i),-1):(s>d?ns(n,i,h):ns(n,h,i),s<d?-1:s>d?1:0):(n.f&&(n.f._b(f)&&(s=u(n.f.xc(f),17).a),n.f._b(g)&&(d=u(n.f.xc(g),17).a)),s>d?ns(n,i,h):ns(n,h,i),s<d?-1:s>d?1:0))):i.e.c.length!=0&&h.g.c.length!=0?(ns(n,i,h),1):i.g.c.length!=0&&h.e.c.length!=0?(ns(n,h,i),-1):kt(i,(W(),dt))&&kt(h,dt)?(r=u(v(i,dt),17).a,l=u(v(h,dt),17).a,r>l?ns(n,i,h):ns(n,h,i),r<l?-1:r>l?1:0):(ns(n,h,i),-1)}function WNe(n){n.gb||(n.gb=!0,n.b=hc(n,0),Rt(n.b,18),jt(n.b,19),n.a=hc(n,1),Rt(n.a,1),jt(n.a,2),jt(n.a,3),jt(n.a,4),jt(n.a,5),n.o=hc(n,2),Rt(n.o,8),Rt(n.o,9),jt(n.o,10),jt(n.o,11),jt(n.o,12),jt(n.o,13),jt(n.o,14),jt(n.o,15),jt(n.o,16),jt(n.o,17),jt(n.o,18),jt(n.o,19),jt(n.o,20),jt(n.o,21),jt(n.o,22),jt(n.o,23),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),n.p=hc(n,3),Rt(n.p,2),Rt(n.p,3),Rt(n.p,4),Rt(n.p,5),jt(n.p,6),jt(n.p,7),Dr(n.p),Dr(n.p),n.q=hc(n,4),Rt(n.q,8),n.v=hc(n,5),jt(n.v,9),Dr(n.v),Dr(n.v),Dr(n.v),n.w=hc(n,6),Rt(n.w,2),Rt(n.w,3),Rt(n.w,4),jt(n.w,5),n.B=hc(n,7),jt(n.B,1),Dr(n.B),Dr(n.B),Dr(n.B),n.Q=hc(n,8),jt(n.Q,0),Dr(n.Q),n.R=hc(n,9),Rt(n.R,1),n.S=hc(n,10),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),n.T=hc(n,11),jt(n.T,10),jt(n.T,11),jt(n.T,12),jt(n.T,13),jt(n.T,14),Dr(n.T),Dr(n.T),n.U=hc(n,12),Rt(n.U,2),Rt(n.U,3),jt(n.U,4),jt(n.U,5),jt(n.U,6),jt(n.U,7),Dr(n.U),n.V=hc(n,13),jt(n.V,10),n.W=hc(n,14),Rt(n.W,18),Rt(n.W,19),Rt(n.W,20),jt(n.W,21),jt(n.W,22),jt(n.W,23),n.bb=hc(n,15),Rt(n.bb,10),Rt(n.bb,11),Rt(n.bb,12),Rt(n.bb,13),Rt(n.bb,14),Rt(n.bb,15),Rt(n.bb,16),jt(n.bb,17),Dr(n.bb),Dr(n.bb),n.eb=hc(n,16),Rt(n.eb,2),Rt(n.eb,3),Rt(n.eb,4),Rt(n.eb,5),Rt(n.eb,6),Rt(n.eb,7),jt(n.eb,8),jt(n.eb,9),n.ab=hc(n,17),Rt(n.ab,0),Rt(n.ab,1),n.H=hc(n,18),jt(n.H,0),jt(n.H,1),jt(n.H,2),jt(n.H,3),jt(n.H,4),jt(n.H,5),Dr(n.H),n.db=hc(n,19),jt(n.db,2),n.c=Je(n,20),n.d=Je(n,21),n.e=Je(n,22),n.f=Je(n,23),n.i=Je(n,24),n.g=Je(n,25),n.j=Je(n,26),n.k=Je(n,27),n.n=Je(n,28),n.r=Je(n,29),n.s=Je(n,30),n.t=Je(n,31),n.u=Je(n,32),n.fb=Je(n,33),n.A=Je(n,34),n.C=Je(n,35),n.D=Je(n,36),n.F=Je(n,37),n.G=Je(n,38),n.I=Je(n,39),n.J=Je(n,40),n.L=Je(n,41),n.M=Je(n,42),n.N=Je(n,43),n.O=Je(n,44),n.P=Je(n,45),n.X=Je(n,46),n.Y=Je(n,47),n.Z=Je(n,48),n.$=Je(n,49),n._=Je(n,50),n.cb=Je(n,51),n.K=Je(n,52))}function JNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;for(s=new Mt,X=u(v(t,(cn(),Lo)),88),k=0,Ki(s,(!e.a&&(e.a=new q(Ye,e,10,11)),e.a));s.b!=0;)a=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),27),l=St(a),(x(z(l,Yh))!==x((lh(),k1))||x(z(l,Nd))===x((o1(),pv))||x(z(l,Nd))===x((o1(),gv))||on(un(z(l,l0)))||x(z(l,Rw))!==x((dd(),Aw))||x(z(l,ja))===x((ps(),p0))||x(z(l,ja))===x((ps(),Uw))||x(z(l,$d))===x((a1(),Iv))||x(z(l,$d))===x((a1(),Ov)))&&!on(un(z(a,lO)))&&ht(a,(W(),dt),Y(k++)),P=!on(un(z(a,Rd))),P&&(g=(!a.a&&(a.a=new q(Ye,a,10,11)),a.a).i!=0,m=Tye(a),p=x(z(a,Kw))===x((jl(),T1)),te=!Nf(a,(He(),$v))||CNn(Ae(z(a,$v))),D=null,te&&p&&(g||m)&&(D=$Un(a),U(D,Lo,X),kt(D,Tj)&&xjn(new zY($(B(v(D,Tj)))),D),u(z(a,xd),181).gc()!=0&&(d=D,qt(new Cn(null,(!a.c&&(a.c=new q(Qu,a,9,9)),new On(a.c,16))),new q9n(d)),Sqn(a,D))),tn=t,yn=u(ee(n.a,St(a)),10),yn&&(tn=yn.e),A=szn(n,a,tn),D&&(A.e=D,D.e=A,Ki(s,(!a.a&&(a.a=new q(Ye,a,10,11)),a.a))));for(k=0,xt(s,e,s.c.b,s.c);s.b!=0;){for(c=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),27),h=new ne((!c.b&&(c.b=new q(Vt,c,12,3)),c.b));h.e!=h.i.gc();)f=u(ue(h),74),nUn(f),(x(z(e,Yh))!==x((lh(),k1))||x(z(e,Nd))===x((o1(),pv))||x(z(e,Nd))===x((o1(),gv))||on(un(z(e,l0)))||x(z(e,Rw))!==x((dd(),Aw))||x(z(e,ja))===x((ps(),p0))||x(z(e,ja))===x((ps(),Uw))||x(z(e,$d))===x((a1(),Iv))||x(z(e,$d))===x((a1(),Ov)))&&ht(f,(W(),dt),Y(k++)),Rn=Gr(u(N((!f.b&&(f.b=new Dn(he,f,4,7)),f.b),0),84)),Bn=Gr(u(N((!f.c&&(f.c=new Dn(he,f,5,8)),f.c),0),84)),!(on(un(z(f,Rd)))||on(un(z(Rn,Rd)))||on(un(z(Bn,Rd))))&&(j=_b(f)&&on(un(z(Rn,Bw)))&&on(un(z(f,Dd))),_=c,j||Y0(Bn,Rn)?_=Rn:Y0(Rn,Bn)&&(_=Bn),tn=t,yn=u(ee(n.a,_),10),yn&&(tn=yn.e),O=ftn(n,f,_,tn),U(O,(W(),nfn),JCe(n,f,e,t)));if(p=x(z(c,Kw))===x((jl(),T1)),p)for(r=new ne((!c.a&&(c.a=new q(Ye,c,10,11)),c.a));r.e!=r.i.gc();)i=u(ue(r),27),te=!Nf(i,(He(),$v))||CNn(Ae(z(i,$v))),kn=x(z(i,Kw))===x(T1),te&&kn&&xt(s,i,s.c.b,s.c)}}function W(){W=R;var n,e;st=new lt(Wtn),nfn=new lt("coordinateOrigin"),bH=new lt("processors"),Zsn=new Lt("compoundNode",(_n(),!1)),yj=new Lt("insideConnections",!1),rfn=new lt("originalBendpoints"),cfn=new lt("originalDummyNodePosition"),ufn=new lt("originalLabelEdge"),F8=new lt("representedLabels"),B8=new lt("endLabels"),T3=new lt("endLabel.origin"),S3=new Lt("labelSide",(Co(),nE)),y2=new Lt("maxEdgeThickness",0),zf=new Lt("reversed",!1),P3=new lt(TXn),yf=new Lt("longEdgeSource",null),Es=new Lt("longEdgeTarget",null),$w=new Lt("longEdgeHasLabelDummies",!1),jj=new Lt("longEdgeBeforeLabelDummy",!1),rO=new Lt("edgeConstraint",(hd(),Q_)),s0=new lt("inLayerLayoutUnit"),Ad=new Lt("inLayerConstraint",(vl(),vj)),C3=new Lt("inLayerSuccessorConstraint",new Z),ifn=new Lt("inLayerSuccessorConstraintBetweenNonDummies",!1),Xu=new lt("portDummy"),iO=new Lt("crossingHint",Y(0)),Hc=new Lt("graphProperties",(e=u(of(rH),9),new _o(e,u(xs(e,e.length),9),0))),gc=new Lt("externalPortSide",(en(),sc)),tfn=new Lt("externalPortSize",new Ni),fH=new lt("externalPortReplacedDummies"),cO=new lt("externalPortReplacedDummy"),Dl=new Lt("externalPortConnections",(n=u(of(lr),9),new _o(n,u(xs(n,n.length),9),0))),f0=new Lt(gXn,0),Ysn=new lt("barycenterAssociates"),I3=new lt("TopSideComments"),M3=new lt("BottomSideComments"),tO=new lt("CommentConnectionPort"),lH=new Lt("inputCollect",!1),dH=new Lt("outputCollect",!1),kj=new Lt("cyclic",!1),efn=new lt("crossHierarchyMap"),gH=new lt("targetOffset"),new Lt("splineLabelSize",new Ni),E2=new lt("spacings"),uO=new Lt("partitionConstraint",!1),o0=new lt("breakingPoint.info"),ffn=new lt("splines.survivingEdge"),Ld=new lt("splines.route.start"),M2=new lt("splines.edgeChain"),sfn=new lt("originalPortConstraints"),h0=new lt("selfLoopHolder"),jv=new lt("splines.nsPortY"),dt=new lt("modelOrder"),aH=new lt("longEdgeTargetNode"),ka=new Lt(QXn,!1),j2=new Lt(QXn,!1),hH=new lt("layerConstraints.hiddenNodes"),ofn=new lt("layerConstraints.opposidePort"),wH=new lt("targetNode.modelOrder")}function QNe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;for(d=ge(n.b,0);d.b!=d.d.c;)if(a=u(be(d),40),!Sn(a.c,OP))for(c=u(Wr(new Cn(null,new On(uMe(a,n),16)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),e==(ci(),Kr)||e==Xr?c.jd(new S4n):c.jd(new P4n),m=c.gc(),r=0;r<m;r++)s=m==1?.5:(1+r)/(m+1),e==Kr?(l=$(B(v(a,(pt(),Js)))),a.e.a+a.f.a+i<l?ir(u(c.Xb(r),65).a,new V(l+t,a.e.b+a.f.b*s)):u(c.Xb(r),65).a.b>0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(h-p)/(y.Math.abs(f-g)/40)>50&&(p>h?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a+i/5.3,a.e.b+a.f.b*s-i/2)):ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a+i/5.3,a.e.b+a.f.b*s+i/2)))),ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a,a.e.b+a.f.b*s))):e==Xr?(l=$(B(v(a,(pt(),jf)))),a.e.a-i>l?ir(u(c.Xb(r),65).a,new V(l-t,a.e.b+a.f.b*s)):u(c.Xb(r),65).a.b>0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(h-p)/(y.Math.abs(f-g)/40)>50&&(p>h?ir(u(c.Xb(r),65).a,new V(a.e.a-i/5.3,a.e.b+a.f.b*s-i/2)):ir(u(c.Xb(r),65).a,new V(a.e.a-i/5.3,a.e.b+a.f.b*s+i/2)))),ir(u(c.Xb(r),65).a,new V(a.e.a,a.e.b+a.f.b*s))):e==us?(l=$(B(v(a,(pt(),Js)))),a.e.b+a.f.b+i<l?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,l+t)):u(c.Xb(r),65).a.b>0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(f-g)/(y.Math.abs(h-p)/40)>50&&(g>f?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s-i/2,a.e.b+i/5.3+a.f.b)):ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s+i/2,a.e.b+i/5.3+a.f.b)))),ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,a.e.b+a.f.b))):(l=$(B(v(a,(pt(),jf)))),TRn(u(c.Xb(r),65),n)?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,u($s(u(c.Xb(r),65).a),8).b)):a.e.b-i>l?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,l-t)):u(c.Xb(r),65).a.b>0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(f-g)/(y.Math.abs(h-p)/40)>50&&(g>f?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s-i/2,a.e.b-i/5.3)):ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s+i/2,a.e.b-i/5.3)))),ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,a.e.b)))}function He(){He=R;var n,e;$v=new lt(xVn),q2=new lt(RVn),gan=(Bh(),Xq),Pue=new Tn(irn,gan),x2=new Tn(l3,null),Iue=new lt(gcn),man=(wd(),yt(Jq,S(C(Qq,1),G,298,0,[Wq]))),Gj=new Tn(TP,man),zj=new Tn(Uy,(_n(),!1)),van=(ci(),Jf),_d=new Tn(xB,van),jan=(El(),hU),yan=new Tn(qy,jan),Lue=new Tn(bcn,!1),Tan=(jl(),uA),B2=new Tn(MP,Tan),Dan=new fb(12),M1=new Tn(Wb,Dan),Vj=new Tn(i8,!1),eU=new Tn(SP,!1),Wj=new Tn(r8,!1),Ban=(Ai(),Ia),v9=new Tn(tB,Ban),D3=new lt(CP),Jj=new lt(Dy),sU=new lt(uP),fU=new lt(t8),Can=new Tu,k0=new Tn(brn,Can),Aue=new Tn(prn,!1),Nue=new Tn(mrn,!1),San=new Qv,xv=new Tn(krn,San),tA=new Tn(ern,!1),Rue=new Tn(KVn,1),K2=new lt(BVn),R2=new lt(FVn),k9=new Tn($y,!1),new Tn(_Vn,!0),Y(0),new Tn(HVn,Y(100)),new Tn(qVn,!1),Y(0),new Tn(UVn,Y(4e3)),Y(0),new Tn(GVn,Y(400)),new Tn(zVn,!1),new Tn(XVn,!1),new Tn(VVn,!0),new Tn(WVn,!1),pan=(qC(),bU),Oue=new Tn(wcn,pan),Kue=new Tn(Uin,10),Bue=new Tn(Gin,10),qan=new Tn(WK,20),Fue=new Tn(zin,10),Uan=new Tn(eB,2),Gan=new Tn($B,10),zan=new Tn(Xin,0),iA=new Tn(Jin,5),Xan=new Tn(Vin,1),Van=new Tn(Win,1),qd=new Tn(yw,20),_ue=new Tn(Qin,10),Qan=new Tn(Yin,10),$3=new lt(Zin),Jan=new tCn,Wan=new Tn(yrn,Jan),$ue=new lt(KB),$an=!1,Due=new Tn(RB,$an),Ian=new fb(5),Pan=new Tn(urn,Ian),Oan=(lw(),e=u(of(yr),9),new _o(e,u(xs(e,e.length),9),0)),F2=new Tn(Xm,Oan),Ran=(Kg(),Pa),xan=new Tn(frn,Ran),iU=new lt(hrn),rU=new lt(lrn),cU=new lt(arn),tU=new lt(drn),Aan=(n=u(of(P9),9),new _o(n,u(xs(n,n.length),9),0)),Hd=new Tn(r2,Aan),Nan=jn((io(),_v)),Ca=new Tn(a3,Nan),Lan=new V(0,0),_2=new Tn(d3,Lan),Vw=new Tn(zm,!1),kan=($f(),Rv),Zq=new Tn(wrn,kan),Yq=new Tn(oP,!1),Y(1),new Tn(JVn,null),Kan=new lt(vrn),uU=new lt(grn),Han=(en(),sc),H2=new Tn(trn,Han),oo=new lt(nrn),Fan=(zu(),jn(Oa)),Ww=new Tn(Vm,Fan),oU=new Tn(orn,!1),_an=new Tn(srn,!0),cA=new Tn(xy,1),Yan=new Tn(pcn,null),Qj=new Tn(Ry,150),rA=new Tn(Ky,1.414),x3=new Tn(Jb,null),Hue=new Tn(mcn,1),Xj=new Tn(rrn,!1),nU=new Tn(crn,!1),Ean=new Tn(JK,1),Man=(pS(),aU),new Tn(QVn,Man),xue=!0,Uue=(Gp(),Yw),Gue=Yw,que=Yw}function tr(){tr=R,Qon=new ei("DIRECTION_PREPROCESSOR",0),Von=new ei("COMMENT_PREPROCESSOR",1),b2=new ei("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),N_=new ei("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),gsn=new ei("PARTITION_PREPROCESSOR",4),OI=new ei("LABEL_DUMMY_INSERTER",5),FI=new ei("SELF_LOOP_PREPROCESSOR",6),Nw=new ei("LAYER_CONSTRAINT_PREPROCESSOR",7),bsn=new ei("PARTITION_MIDPROCESSOR",8),csn=new ei("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),asn=new ei("NODE_PROMOTION",10),Lw=new ei("LAYER_CONSTRAINT_POSTPROCESSOR",11),wsn=new ei("PARTITION_POSTPROCESSOR",12),tsn=new ei("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),psn=new ei("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),Hon=new ei("BREAKING_POINT_INSERTER",15),DI=new ei("LONG_EDGE_SPLITTER",16),D_=new ei("PORT_SIDE_PROCESSOR",17),PI=new ei("INVERTED_PORT_PROCESSOR",18),RI=new ei("PORT_LIST_SORTER",19),vsn=new ei("SORT_BY_INPUT_ORDER_OF_MODEL",20),xI=new ei("NORTH_SOUTH_PORT_PREPROCESSOR",21),qon=new ei("BREAKING_POINT_PROCESSOR",22),dsn=new ei(qXn,23),ksn=new ei(UXn,24),KI=new ei("SELF_LOOP_PORT_RESTORER",25),msn=new ei("SINGLE_EDGE_GRAPH_WRAPPER",26),II=new ei("IN_LAYER_CONSTRAINT_PROCESSOR",27),Zon=new ei("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),hsn=new ei("LABEL_AND_NODE_SIZE_PROCESSOR",29),fsn=new ei("INNERMOST_NODE_MARGIN_CALCULATOR",30),_I=new ei("SELF_LOOP_ROUTER",31),zon=new ei("COMMENT_NODE_MARGIN_CALCULATOR",32),SI=new ei("END_LABEL_PREPROCESSOR",33),LI=new ei("LABEL_DUMMY_SWITCHER",34),Gon=new ei("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),hv=new ei("LABEL_SIDE_SELECTOR",36),osn=new ei("HYPEREDGE_DUMMY_MERGER",37),isn=new ei("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),lsn=new ei("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),N8=new ei("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),Won=new ei("CONSTRAINTS_POSTPROCESSOR",41),Xon=new ei("COMMENT_POSTPROCESSOR",42),ssn=new ei("HYPERNODE_PROCESSOR",43),rsn=new ei("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),NI=new ei("LONG_EDGE_JOINER",45),BI=new ei("SELF_LOOP_POSTPROCESSOR",46),Uon=new ei("BREAKING_POINT_REMOVER",47),$I=new ei("NORTH_SOUTH_PORT_POSTPROCESSOR",48),usn=new ei("HORIZONTAL_COMPACTOR",49),AI=new ei("LABEL_DUMMY_REMOVER",50),nsn=new ei("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),Yon=new ei("END_LABEL_SORTER",52),bj=new ei("REVERSED_EDGE_RESTORER",53),CI=new ei("END_LABEL_POSTPROCESSOR",54),esn=new ei("HIERARCHICAL_NODE_RESIZER",55),Jon=new ei("DIRECTION_POSTPROCESSOR",56)}function htn(){htn=R,kfn=(wk(),WI),iee=new Tn(cin,kfn),wee=new Tn(uin,(_n(),!1)),Cfn=(FT(),sH),kee=new Tn(lP,Cfn),$ee=new Tn(oin,!1),xee=new Tn(sin,!0),Ine=new Tn(fin,!1),Dfn=(dk(),qH),Qee=new Tn(hin,Dfn),Y(1),cte=new Tn(lin,Y(7)),ute=new Tn(ain,!1),gee=new Tn(din,!1),vfn=(o1(),W_),tee=new Tn(fB,vfn),Ifn=(a1(),$H),Dee=new Tn(Hy,Ifn),Sfn=(Yo(),Ej),Cee=new Tn(bin,Sfn),Y(-1),Tee=new Tn(win,null),Y(-1),See=new Tn(gin,Y(-1)),Y(-1),Pee=new Tn(hB,Y(4)),Y(-1),Oee=new Tn(lB,Y(2)),Pfn=(ps(),SO),Nee=new Tn(aB,Pfn),Y(0),Lee=new Tn(dB,Y(0)),Eee=new Tn(bB,Y(et)),mfn=(c5(),$8),eee=new Tn(o8,mfn),Fne=new Tn(pin,!1),Xne=new Tn(wB,.1),Zne=new Tn(gB,!1),Wne=new Tn(min,null),Jne=new Tn(vin,null),Y(-1),Qne=new Tn(kin,null),Y(-1),Yne=new Tn(yin,Y(-1)),Y(0),_ne=new Tn(jin,Y(40)),pfn=(Z4(),uH),Gne=new Tn(pB,pfn),gfn=mj,Hne=new Tn(aP,gfn),Nfn=(T5(),W8),Jee=new Tn(c2,Nfn),_ee=new lt(dP),Ofn=(sk(),QI),Ree=new Tn(mB,Ofn),Afn=(Vk(),YI),Bee=new Tn(vB,Afn),Uee=new Tn(kB,.3),zee=new lt(yB),Lfn=(cw(),CO),Xee=new Tn(jB,Lfn),Efn=(PC(),GH),see=new Tn(Ein,Efn),Mfn=(a5(),XH),fee=new Tn(Min,Mfn),Tfn=(om(),Y8),hee=new Tn(bP,Tfn),aee=new Tn(wP,.2),uee=new Tn(EB,2),ete=new Tn(Tin,null),ite=new Tn(Cin,10),tte=new Tn(Sin,10),rte=new Tn(Pin,20),Y(0),Yee=new Tn(Iin,Y(0)),Y(0),Zee=new Tn(Oin,Y(0)),Y(0),nte=new Tn(Ain,Y(0)),One=new Tn(MB,!1),afn=(jm(),x8),Lne=new Tn(Lin,afn),lfn=(QT(),X_),Ane=new Tn(Nin,lfn),mee=new Tn(gP,!1),Y(0),pee=new Tn(TB,Y(16)),Y(0),vee=new Tn(CB,Y(5)),Rfn=(LC(),JH),Cte=new Tn(Al,Rfn),ote=new Tn(pP,10),hte=new Tn(mP,1),xfn=(bC(),VI),pte=new Tn(s8,xfn),dte=new lt(SB),$fn=Y(1),Y(0),wte=new Tn(PB,$fn),Kfn=(dC(),WH),Ote=new Tn(vP,Kfn),Ste=new lt(kP),jte=new Tn(yP,!0),kte=new Tn(jP,2),Mte=new Tn(IB,!0),jfn=(vS(),JI),cee=new Tn(Din,jfn),yfn=(Yp(),bv),ree=new Tn($in,yfn),wfn=(lh(),k1),Bne=new Tn(EP,wfn),Kne=new Tn(xin,!1),Rne=new Tn(Rin,!1),dfn=(dd(),Aw),Nne=new Tn(OB,dfn),bfn=(w5(),xH),xne=new Tn(Kin,bfn),Dne=new Tn(AB,0),$ne=new Tn(LB,0),jee=J_,yee=pj,Iee=MO,Aee=MO,Mee=DH,Vne=(jl(),T1),nee=$8,zne=$8,qne=$8,Une=T1,Hee=J8,qee=W8,Kee=W8,Fee=W8,Gee=FH,Wee=J8,Vee=J8,lee=(El(),R3),dee=R3,bee=Y8,oee=Yj,ste=Av,fte=Gw,lte=Av,ate=Gw,mte=Av,vte=Gw,bte=V_,gte=VI,Ate=Av,Lte=Gw,Pte=Av,Ite=Gw,Ete=Gw,yte=Gw,Tte=Gw}function YNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt,Yu,Br,Ro,W2,L1,rf,cf,Xd,q3,Ka,U3,Oh,cl,T0,G3,J2,Ah,Vd,Bl,Lse,ybn,C0,_9,AU,z3,H9,ug,q9,LU,Nse;for(ybn=0,xe=e,Br=0,L1=xe.length;Br<L1;++Br)for(Bn=xe[Br],cl=new M(Bn.j);cl.a<cl.c.c.length;){for(Oh=u(E(cl),12),G3=0,f=new M(Oh.g);f.a<f.c.c.length;)s=u(E(f),18),Bn.c!=s.d.i.c&&++G3;G3>0&&(n.a[Oh.p]=ybn++)}for(H9=0,Nt=t,Ro=0,rf=Nt.length;Ro<rf;++Ro){for(Bn=Nt[Ro],cf=0,cl=new M(Bn.j);cl.a<cl.c.c.length&&(Oh=u(E(cl),12),Oh.j==(en(),Xn));)for(f=new M(Oh.e);f.a<f.c.c.length;)if(s=u(E(f),18),Bn.c!=s.c.i.c){++cf;break}for(q3=0,J2=new xi(Bn.j,Bn.j.c.length);J2.b>0;){for(Oh=(oe(J2.b>0),u(J2.a.Xb(J2.c=--J2.b),12)),G3=0,f=new M(Oh.e);f.a<f.c.c.length;)s=u(E(f),18),Bn.c!=s.c.i.c&&++G3;G3>0&&(Oh.j==(en(),Xn)?(n.a[Oh.p]=H9,++H9):(n.a[Oh.p]=H9+cf+q3,++q3))}H9+=q3}for(T0=new de,m=new rh,te=e,Yu=0,W2=te.length;Yu<W2;++Yu)for(Bn=te[Yu],AU=new M(Bn.j);AU.a<AU.c.c.length;)for(_9=u(E(AU),12),f=new M(_9.g);f.a<f.c.c.length;)if(s=u(E(f),18),q9=s.d,Bn.c!=q9.i.c)if(C0=u(Fr(wr(T0.f,_9)),478),ug=u(Fr(wr(T0.f,q9)),478),!C0&&!ug)p=new GSn,m.a.zc(p,m),nn(p.a,s),nn(p.d,_9),Vc(T0.f,_9,p),nn(p.d,q9),Vc(T0.f,q9,p);else if(!C0)nn(ug.a,s),nn(ug.d,_9),Vc(T0.f,_9,ug);else if(!ug)nn(C0.a,s),nn(C0.d,q9),Vc(T0.f,q9,C0);else if(C0==ug)nn(C0.a,s);else{for(nn(C0.a,s),U3=new M(ug.d);U3.a<U3.c.c.length;)Ka=u(E(U3),12),Vc(T0.f,Ka,C0);hi(C0.a,ug.a),hi(C0.d,ug.d),m.a.Bc(ug)!=null}for(k=u(S5(m,F(jDe,{3:1,4:1,5:1,2045:1},478,m.a.gc(),0,1)),2045),Rn=e[0].c,Lse=t[0].c,a=k,d=0,g=a.length;d<g;++d)for(l=a[d],l.e=ybn,l.f=H9,cl=new M(l.d);cl.a<cl.c.c.length;)Oh=u(E(cl),12),Ah=n.a[Oh.p],Oh.i.c==Rn?(Ah<l.e&&(l.e=Ah),Ah>l.b&&(l.b=Ah)):Oh.i.c==Lse&&(Ah<l.f&&(l.f=Ah),Ah>l.c&&(l.c=Ah));for(R4(k,0,k.length,null),z3=F(ye,_e,28,k.length,15,1),i=F(ye,_e,28,H9+1,15,1),P=0;P<k.length;P++)z3[P]=k[P].f,i[z3[P]]=1;for(c=0,O=0;O<i.length;O++)i[O]==1?i[O]=c:--c;for(Vd=0,A=0;A<z3.length;A++)z3[A]+=i[z3[A]],Vd=y.Math.max(Vd,z3[A]+1);for(h=1;h<Vd;)h*=2;for(Nse=2*h-1,h-=1,LU=F(ye,_e,28,Nse,15,1),r=0,yn=0;yn<z3.length;yn++)for(tn=z3[yn]+h,++LU[tn];tn>0;)tn%2>0&&(r+=LU[tn+1]),tn=(tn-1)/2|0,++LU[tn];for(kn=F(Oie,Kn,374,k.length*2,0,1),D=0;D<k.length;D++)kn[2*D]=new MT(k[D],k[D].e,k[D].b,(Z6(),e9)),kn[2*D+1]=new MT(k[D],k[D].b,k[D].e,n9);for(R4(kn,0,kn.length,null),Xd=0,_=0;_<kn.length;_++)switch(kn[_].d.g){case 0:++Xd;break;case 1:--Xd,r+=Xd}for(Bl=F(Oie,Kn,374,k.length*2,0,1),X=0;X<k.length;X++)Bl[2*X]=new MT(k[X],k[X].f,k[X].c,(Z6(),e9)),Bl[2*X+1]=new MT(k[X],k[X].c,k[X].f,n9);for(R4(Bl,0,Bl.length,null),Xd=0,j=0;j<Bl.length;j++)switch(Bl[j].d.g){case 0:++Xd;break;case 1:--Xd,r+=Xd}return r}function nt(){nt=R,F9=new Wd(7),dbn=new Dh(8,94),new Dh(8,64),bbn=new Dh(8,36),Ese=new Dh(8,65),Mse=new Dh(8,122),Tse=new Dh(8,90),Sse=new Dh(8,98),jse=new Dh(8,66),Cse=new Dh(8,60),Pse=new Dh(8,62),abn=new Wd(11),IA=new yo(4),xc(IA,48,57),Gv=new yo(4),xc(Gv,48,57),xc(Gv,65,90),xc(Gv,95,95),xc(Gv,97,122),H3=new yo(4),xc(H3,9,9),xc(H3,10,10),xc(H3,12,12),xc(H3,13,13),xc(H3,32,32),wbn=bw(IA),pbn=bw(Gv),gbn=bw(H3),Uv=new de,B9=new de,yse=S(C(fn,1),J,2,6,["Cn","Lu","Ll","Lt","Lm","Lo","Mn","Me","Mc","Nd","Nl","No","Zs","Zl","Zp","Cc","Cf",null,"Co","Cs","Pd","Ps","Pe","Pc","Po","Sm","Sc","Sk","So","Pi","Pf","L","M","N","Z","C","P","S"]),hbn=S(C(fn,1),J,2,6,["Basic Latin","Latin-1 Supplement","Latin Extended-A","Latin Extended-B","IPA Extensions","Spacing Modifier Letters","Combining Diacritical Marks","Greek","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul Jamo","Ethiopic","Cherokee","Unified Canadian Aboriginal Syllabics","Ogham","Runic","Khmer","Mongolian","Latin Extended Additional","Greek Extended","General Punctuation","Superscripts and Subscripts","Currency Symbols","Combining Marks for Symbols","Letterlike Symbols","Number Forms","Arrows","Mathematical Operators","Miscellaneous Technical","Control Pictures","Optical Character Recognition","Enclosed Alphanumerics","Box Drawing","Block Elements","Geometric Shapes","Miscellaneous Symbols","Dingbats","Braille Patterns","CJK Radicals Supplement","Kangxi Radicals","Ideographic Description Characters","CJK Symbols and Punctuation","Hiragana","Katakana","Bopomofo","Hangul Compatibility Jamo","Kanbun","Bopomofo Extended","Enclosed CJK Letters and Months","CJK Compatibility","CJK Unified Ideographs Extension A","CJK Unified Ideographs","Yi Syllables","Yi Radicals","Hangul Syllables",WJn,"CJK Compatibility Ideographs","Alphabetic Presentation Forms","Arabic Presentation Forms-A","Combining Half Marks","CJK Compatibility Forms","Small Form Variants","Arabic Presentation Forms-B","Specials","Halfwidth and Fullwidth Forms","Old Italic","Gothic","Deseret","Byzantine Musical Symbols","Musical Symbols","Mathematical Alphanumeric Symbols","CJK Unified Ideographs Extension B","CJK Compatibility Ideographs Supplement","Tags"]),lbn=S(C(ye,1),_e,28,15,[66304,66351,66352,66383,66560,66639,118784,119039,119040,119295,119808,120831,131072,173782,194560,195103,917504,917631])}function VS(){VS=R,pYn=new Vo("OUT_T_L",0,(Uu(),Th),(bu(),Xs),(wf(),bc),bc,S(C(js,1),Kn,21,0,[yt((lw(),Zs),S(C(yr,1),G,95,0,[nf,Qs]))])),gYn=new Vo("OUT_T_C",1,pa,Xs,bc,Wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[nf,xl])),yt(Zs,S(C(yr,1),G,95,0,[nf,xl,Ms]))])),mYn=new Vo("OUT_T_R",2,zs,Xs,bc,wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[nf,Ys]))])),sYn=new Vo("OUT_B_L",3,Th,kf,wc,bc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ts,Qs]))])),oYn=new Vo("OUT_B_C",4,pa,kf,wc,Wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ts,xl])),yt(Zs,S(C(yr,1),G,95,0,[Ts,xl,Ms]))])),fYn=new Vo("OUT_B_R",5,zs,kf,wc,wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ts,Ys]))])),aYn=new Vo("OUT_L_T",6,zs,kf,bc,bc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Qs,nf,Ms]))])),lYn=new Vo("OUT_L_C",7,zs,ma,Wc,bc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Qs,el])),yt(Zs,S(C(yr,1),G,95,0,[Qs,el,Ms]))])),hYn=new Vo("OUT_L_B",8,zs,Xs,wc,bc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Qs,Ts,Ms]))])),wYn=new Vo("OUT_R_T",9,Th,kf,bc,wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ys,nf,Ms]))])),bYn=new Vo("OUT_R_C",10,Th,ma,Wc,wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ys,el])),yt(Zs,S(C(yr,1),G,95,0,[Ys,el,Ms]))])),dYn=new Vo("OUT_R_B",11,Th,Xs,wc,wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ys,Ts,Ms]))])),cYn=new Vo("IN_T_L",12,Th,kf,bc,bc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[nf,Qs])),yt(No,S(C(yr,1),G,95,0,[nf,Qs,Ms]))])),rYn=new Vo("IN_T_C",13,pa,kf,bc,Wc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[nf,xl])),yt(No,S(C(yr,1),G,95,0,[nf,xl,Ms]))])),uYn=new Vo("IN_T_R",14,zs,kf,bc,wc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[nf,Ys])),yt(No,S(C(yr,1),G,95,0,[nf,Ys,Ms]))])),tYn=new Vo("IN_C_L",15,Th,ma,Wc,bc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[el,Qs])),yt(No,S(C(yr,1),G,95,0,[el,Qs,Ms]))])),eYn=new Vo("IN_C_C",16,pa,ma,Wc,Wc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[el,xl])),yt(No,S(C(yr,1),G,95,0,[el,xl,Ms]))])),iYn=new Vo("IN_C_R",17,zs,ma,Wc,wc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[el,Ys])),yt(No,S(C(yr,1),G,95,0,[el,Ys,Ms]))])),ZQn=new Vo("IN_B_L",18,Th,Xs,wc,bc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[Ts,Qs])),yt(No,S(C(yr,1),G,95,0,[Ts,Qs,Ms]))])),YQn=new Vo("IN_B_C",19,pa,Xs,wc,Wc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[Ts,xl])),yt(No,S(C(yr,1),G,95,0,[Ts,xl,Ms]))])),nYn=new Vo("IN_B_R",20,zs,Xs,wc,wc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[Ts,Ys])),yt(No,S(C(yr,1),G,95,0,[Ts,Ys,Ms]))])),h_=new Vo(n8,21,null,null,null,null,S(C(js,1),Kn,21,0,[]))}function An(){An=R,tg=(G1(),Hn).b,u(N(H(Hn.b),0),35),u(N(H(Hn.b),1),19),S1=Hn.a,u(N(H(Hn.a),0),35),u(N(H(Hn.a),1),19),u(N(H(Hn.a),2),19),u(N(H(Hn.a),3),19),u(N(H(Hn.a),4),19),Na=Hn.o,u(N(H(Hn.o),0),35),u(N(H(Hn.o),1),35),_oe=u(N(H(Hn.o),2),19),u(N(H(Hn.o),3),19),u(N(H(Hn.o),4),19),u(N(H(Hn.o),5),19),u(N(H(Hn.o),6),19),u(N(H(Hn.o),7),19),u(N(H(Hn.o),8),19),u(N(H(Hn.o),9),19),u(N(H(Hn.o),10),19),u(N(H(Hn.o),11),19),u(N(H(Hn.o),12),19),u(N(H(Hn.o),13),19),u(N(H(Hn.o),14),19),u(N(H(Hn.o),15),19),u(N(ft(Hn.o),0),62),u(N(ft(Hn.o),1),62),u(N(ft(Hn.o),2),62),u(N(ft(Hn.o),3),62),u(N(ft(Hn.o),4),62),u(N(ft(Hn.o),5),62),u(N(ft(Hn.o),6),62),u(N(ft(Hn.o),7),62),u(N(ft(Hn.o),8),62),u(N(ft(Hn.o),9),62),Foe=Hn.p,u(N(H(Hn.p),0),35),u(N(H(Hn.p),1),35),u(N(H(Hn.p),2),35),u(N(H(Hn.p),3),35),u(N(H(Hn.p),4),19),u(N(H(Hn.p),5),19),u(N(ft(Hn.p),0),62),u(N(ft(Hn.p),1),62),Hoe=Hn.q,u(N(H(Hn.q),0),35),Da=Hn.v,u(N(H(Hn.v),0),19),u(N(ft(Hn.v),0),62),u(N(ft(Hn.v),1),62),u(N(ft(Hn.v),2),62),P1=Hn.w,u(N(H(Hn.w),0),35),u(N(H(Hn.w),1),35),u(N(H(Hn.w),2),35),u(N(H(Hn.w),3),19),$a=Hn.B,u(N(H(Hn.B),0),19),u(N(ft(Hn.B),0),62),u(N(ft(Hn.B),1),62),u(N(ft(Hn.B),2),62),qoe=Hn.Q,u(N(H(Hn.Q),0),19),u(N(ft(Hn.Q),0),62),Uoe=Hn.R,u(N(H(Hn.R),0),35),Os=Hn.S,u(N(ft(Hn.S),0),62),u(N(ft(Hn.S),1),62),u(N(ft(Hn.S),2),62),u(N(ft(Hn.S),3),62),u(N(ft(Hn.S),4),62),u(N(ft(Hn.S),5),62),u(N(ft(Hn.S),6),62),u(N(ft(Hn.S),7),62),u(N(ft(Hn.S),8),62),u(N(ft(Hn.S),9),62),u(N(ft(Hn.S),10),62),u(N(ft(Hn.S),11),62),u(N(ft(Hn.S),12),62),u(N(ft(Hn.S),13),62),u(N(ft(Hn.S),14),62),I1=Hn.T,u(N(H(Hn.T),0),19),u(N(H(Hn.T),2),19),Goe=u(N(H(Hn.T),3),19),u(N(H(Hn.T),4),19),u(N(ft(Hn.T),0),62),u(N(ft(Hn.T),1),62),u(N(H(Hn.T),1),19),O1=Hn.U,u(N(H(Hn.U),0),35),u(N(H(Hn.U),1),35),u(N(H(Hn.U),2),19),u(N(H(Hn.U),3),19),u(N(H(Hn.U),4),19),u(N(H(Hn.U),5),19),u(N(ft(Hn.U),0),62),ig=Hn.V,u(N(H(Hn.V),0),19),U2=Hn.W,u(N(H(Hn.W),0),35),u(N(H(Hn.W),1),35),u(N(H(Hn.W),2),35),u(N(H(Hn.W),3),19),u(N(H(Hn.W),4),19),u(N(H(Hn.W),5),19),zoe=Hn.bb,u(N(H(Hn.bb),0),35),u(N(H(Hn.bb),1),35),u(N(H(Hn.bb),2),35),u(N(H(Hn.bb),3),35),u(N(H(Hn.bb),4),35),u(N(H(Hn.bb),5),35),u(N(H(Hn.bb),6),35),u(N(H(Hn.bb),7),19),u(N(ft(Hn.bb),0),62),u(N(ft(Hn.bb),1),62),Xoe=Hn.eb,u(N(H(Hn.eb),0),35),u(N(H(Hn.eb),1),35),u(N(H(Hn.eb),2),35),u(N(H(Hn.eb),3),35),u(N(H(Hn.eb),4),35),u(N(H(Hn.eb),5),35),u(N(H(Hn.eb),6),19),u(N(H(Hn.eb),7),19),ar=Hn.ab,u(N(H(Hn.ab),0),35),u(N(H(Hn.ab),1),35),j0=Hn.H,u(N(H(Hn.H),0),19),u(N(H(Hn.H),1),19),u(N(H(Hn.H),2),19),u(N(H(Hn.H),3),19),u(N(H(Hn.H),4),19),u(N(H(Hn.H),5),19),u(N(ft(Hn.H),0),62),E0=Hn.db,u(N(H(Hn.db),0),19),Zf=Hn.M}function ZNe(n){var e;n.O||(n.O=!0,zc(n,"type"),MC(n,"ecore.xml.type"),TC(n,Pd),e=u(Tm((B1(),Is),Pd),2044),ve(Hr(n.fb),n.b),fc(n.b,bE,"AnyType",!1,!1,!0),Ut(u(N(H(n.b),0),35),n.wb.D,Jy,null,0,-1,bE,!1,!1,!0,!1,!1,!1),Ut(u(N(H(n.b),1),35),n.wb.D,"any",null,0,-1,bE,!0,!0,!0,!1,!1,!0),Ut(u(N(H(n.b),2),35),n.wb.D,"anyAttribute",null,0,-1,bE,!1,!1,!0,!1,!1,!1),fc(n.bb,SA,OJn,!1,!1,!0),Ut(u(N(H(n.bb),0),35),n.gb,"data",null,0,1,SA,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.bb),1),35),n.gb,Dcn,null,1,1,SA,!1,!1,!0,!1,!0,!1),fc(n.fb,wE,AJn,!1,!1,!0),Ut(u(N(H(n.fb),0),35),e.gb,"rawValue",null,0,1,wE,!0,!0,!0,!1,!0,!0),Ut(u(N(H(n.fb),1),35),e.a,g8,null,0,1,wE,!0,!0,!0,!1,!0,!0),Et(u(N(H(n.fb),2),19),n.wb.q,null,"instanceType",1,1,wE,!1,!1,!0,!1,!1,!1,!1),fc(n.qb,ubn,LJn,!1,!1,!0),Ut(u(N(H(n.qb),0),35),n.wb.D,Jy,null,0,-1,null,!1,!1,!0,!1,!1,!1),Et(u(N(H(n.qb),1),19),n.wb.ab,null,"xMLNSPrefixMap",0,-1,null,!0,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.qb),2),19),n.wb.ab,null,"xSISchemaLocation",0,-1,null,!0,!1,!0,!0,!1,!1,!1),Ut(u(N(H(n.qb),3),35),n.gb,"cDATA",null,0,-2,null,!0,!0,!0,!1,!1,!0),Ut(u(N(H(n.qb),4),35),n.gb,"comment",null,0,-2,null,!0,!0,!0,!1,!1,!0),Et(u(N(H(n.qb),5),19),n.bb,null,GJn,0,-2,null,!0,!0,!0,!0,!1,!1,!0),Ut(u(N(H(n.qb),6),35),n.gb,wF,null,0,-2,null,!0,!0,!0,!1,!1,!0),We(n.a,ki,"AnySimpleType",!0),We(n.c,fn,"AnyURI",!0),We(n.d,C(Ru,1),"Base64Binary",!0),We(n.e,so,"Boolean",!0),We(n.f,Gt,"BooleanObject",!0),We(n.g,Ru,"Byte",!0),We(n.i,p3,"ByteObject",!0),We(n.j,fn,"Date",!0),We(n.k,fn,"DateTime",!0),We(n.n,JF,"Decimal",!0),We(n.o,Ii,"Double",!0),We(n.p,si,"DoubleObject",!0),We(n.q,fn,"Duration",!0),We(n.s,rs,"ENTITIES",!0),We(n.r,rs,"ENTITIESBase",!0),We(n.t,fn,Jcn,!0),We(n.u,cg,"Float",!0),We(n.v,sv,"FloatObject",!0),We(n.w,fn,"GDay",!0),We(n.B,fn,"GMonth",!0),We(n.A,fn,"GMonthDay",!0),We(n.C,fn,"GYear",!0),We(n.D,fn,"GYearMonth",!0),We(n.F,C(Ru,1),"HexBinary",!0),We(n.G,fn,"ID",!0),We(n.H,fn,"IDREF",!0),We(n.J,rs,"IDREFS",!0),We(n.I,rs,"IDREFSBase",!0),We(n.K,ye,"Int",!0),We(n.M,l2,"Integer",!0),We(n.L,Gi,"IntObject",!0),We(n.P,fn,"Language",!0),We(n.Q,Ra,"Long",!0),We(n.R,t0,"LongObject",!0),We(n.S,fn,"Name",!0),We(n.T,fn,tI,!0),We(n.U,l2,"NegativeInteger",!0),We(n.V,fn,Zcn,!0),We(n.X,rs,"NMTOKENS",!0),We(n.W,rs,"NMTOKENSBase",!0),We(n.Y,l2,"NonNegativeInteger",!0),We(n.Z,l2,"NonPositiveInteger",!0),We(n.$,fn,"NormalizedString",!0),We(n._,fn,"NOTATION",!0),We(n.ab,fn,"PositiveInteger",!0),We(n.cb,fn,"QName",!0),We(n.db,V2,"Short",!0),We(n.eb,i0,"ShortObject",!0),We(n.gb,fn,ptn,!0),We(n.hb,fn,"Time",!0),We(n.ib,fn,"Token",!0),We(n.jb,V2,"UnsignedByte",!0),We(n.kb,i0,"UnsignedByteObject",!0),We(n.lb,Ra,"UnsignedInt",!0),We(n.mb,t0,"UnsignedIntObject",!0),We(n.nb,l2,"UnsignedLong",!0),We(n.ob,ye,"UnsignedShort",!0),We(n.pb,Gi,"UnsignedShortObject",!0),gY(n,Pd),nDe(n))}function ltn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt,Yu,Br,Ro,W2,L1,rf,cf,Xd,q3,Ka,U3,Oh,cl,T0,G3,J2,Ah,Vd,Bl;if(i.$g()||on(un(z(e,(He(),tA)))))return Ln(),Ln(),sr;if(tn=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i!=0,kn=wEe(e),yn=!kn.dc(),tn||yn){if(r=u(z(e,q2),143),!r)throw T(new _l("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(J2=dX(r,(Mm(),mA)),eBn(e),!tn&&yn&&!J2)return Ln(),Ln(),sr;if(A=new Z,x(z(e,B2))===x((jl(),T1))&&(dX(r,gA)||dX(r,wA))){if(on(un(z(e,k9))))throw T(new _l("Topdown layout cannot be used together with hierarchy handling."));for(W2=zqn(n,e),L1=new Mt,Ki(L1,(!e.a&&(e.a=new q(Ye,e,10,11)),e.a));L1.b!=0;)Br=u(L1.b==0?null:(oe(L1.b!=0),Xo(L1,L1.a.a)),27),eBn(Br),G3=x(z(Br,B2))===x(E9),G3||Nf(Br,$v)&&!IJ(r,z(Br,q2))?(j=ltn(n,Br,t,i),hi(A,j),ht(Br,B2,E9),fUn(Br)):Ki(L1,(!Br.a&&(Br.a=new q(Ye,Br,10,11)),Br.a))}else{if(W2=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i,on(un(z(e,k9)))){if(Ah=i.eh(1),Ah.Ug(AVn,1),z(e,x3)==null)throw T(new _l(e.k+" has not been assigned a top-down node type."));if(u(z(e,x3),280)==(Gp(),Yw)||u(z(e,x3),280)==aA)for(O=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));O.e!=O.i.gc();)P=u(ue(O),27),Yu=u(z(P,q2),143),(!P.a&&(P.a=new q(Ye,P,10,11)),P.a).i>0&&z7(Yu.f),z(P,Yan)!=null&&(f=u(z(P,Yan),347),T0=f.Tg(P),kg(P,y.Math.max(P.g,T0.a),y.Math.max(P.f,T0.b)));if(rf=u(z(e,M1),107),p=e.g-(rf.b+rf.c),g=e.f-(rf.d+rf.a),Ah.bh("Available Child Area: ("+p+"|"+g+")"),ht(e,x2,p/g),cBn(e,r,i.eh(W2)),u(z(e,x3),280)==aA&&(utn(e),kg(e,rf.b+$(B(z(e,K2)))+rf.c,rf.d+$(B(z(e,R2)))+rf.a)),Ah.bh("Executed layout algorithm: "+Ae(z(e,$v))+" on node "+e.k),u(z(e,x3),280)==Yw){if(p<0||g<0)throw T(new _l("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+e.k));for(Nf(e,K2)||Nf(e,R2)||utn(e),k=$(B(z(e,K2))),m=$(B(z(e,R2))),Ah.bh("Desired Child Area: ("+k+"|"+m+")"),Xd=p/k,q3=g/m,cf=y.Math.min(Xd,y.Math.min(q3,$(B(z(e,Hue))))),ht(e,cA,cf),Ah.bh(e.k+" -- Local Scale Factor (X|Y): ("+Xd+"|"+q3+")"),D=u(z(e,Gj),21),c=0,s=0,cf<Xd&&(D.Hc((wd(),w9))?c=(p/2-k*cf/2)/cf:D.Hc(g9)&&(c=(p-k*cf)/cf)),cf<q3&&(D.Hc((wd(),m9))?s=(g/2-m*cf/2)/cf:D.Hc(p9)&&(s=(g-m*cf)/cf)),Vd=c+(rf.b/cf-rf.b),Bl=s+(rf.d/cf-rf.d),Ah.bh("Shift: ("+Vd+"|"+Bl+")"),Ro=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));Ro.e!=Ro.i.gc();)Br=u(ue(Ro),27),eu(Br,Br.i+Vd),tu(Br,Br.j+Bl);for(X=new ne((!e.b&&(e.b=new q(Vt,e,12,3)),e.b));X.e!=X.i.gc();){for(_=u(ue(X),74),U3=new ne((!_.a&&(_.a=new q(Tt,_,6,6)),_.a));U3.e!=U3.i.gc();)for(Ka=u(ue(U3),166),j7(Ka,Ka.j+Vd,Ka.k+Bl),y7(Ka,Ka.b+Vd,Ka.c+Bl),l=new ne((!Ka.a&&(Ka.a=new ti(xo,Ka,5)),Ka.a));l.e!=l.i.gc();)h=u(ue(l),377),gN(h,h.a+Vd,h.b+Bl);for(Nt=new ne((!_.n&&(_.n=new q(Sr,_,1,7)),_.n));Nt.e!=Nt.i.gc();)xe=u(ue(Nt),135),Bo(xe,xe.i+Vd,xe.j+Bl);for(te=u(z(_,k0),75),Bn=ge(te,0);Bn.b!=Bn.d.c;)Rn=u(be(Bn),8),Rn.a+=Vd,Rn.b+=Bl;ht(_,k0,te)}}Ah.Vg()}for(d=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));d.e!=d.i.gc();)a=u(ue(d),27),j=ltn(n,a,t,i),hi(A,j),fUn(a)}if(i.$g())return Ln(),Ln(),sr;for(cl=new M(A);cl.a<cl.c.c.length;)Oh=u(E(cl),74),ht(Oh,tA,(_n(),!0));return on(un(z(e,k9)))||cBn(e,r,i.eh(W2)),BPe(A),yn&&J2?kn:(Ln(),Ln(),sr)}else return Ln(),Ln(),sr}function Zg(n,e){var t,i;return X2||(X2=new de,qv=new de,i=(nt(),nt(),new yo(4)),Bk(i,`
\r\r `),Lr(X2,DF,i),Lr(qv,DF,bw(i)),i=new yo(4),Bk(i,XJn),Lr(X2,T8,i),Lr(qv,T8,bw(i)),i=new yo(4),Bk(i,XJn),Lr(X2,T8,i),Lr(qv,T8,bw(i)),i=new yo(4),Bk(i,VJn),gw(i,u(Dc(X2,T8),122)),Lr(X2,NF,i),Lr(qv,NF,bw(i)),i=new yo(4),Bk(i,"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),Lr(X2,$F,i),Lr(qv,$F,bw(i)),i=new yo(4),Bk(i,VJn),xc(i,95,95),xc(i,58,58),Lr(X2,xF,i),Lr(qv,xF,bw(i))),t=u(Dc(e?X2:qv,n),138),t}function Mzn(n){rb(n,new gd(yz(UE(eb(Yd(nb(Zd(new Fa,Yn),"ELK Layered"),"Layer-based algorithm provided by the Eclipse Layout Kernel. Arranges as many edges as possible into one direction by placing nodes into subsequent layers. This implementation supports different routing styles (straight, orthogonal, splines); if orthogonal routing is selected, arbitrary port constraints are respected, thus enabling the layout of block diagrams such as actor-oriented models or circuit schematics. Furthermore, full layout of compound graphs with cross-hierarchy edges is supported when the respective option is activated on the top level."),new Upn),Yn),yt((Mm(),vU),S(C(kA,1),G,245,0,[mA,vA,pA,mU,gA,wA]))))),Q(n,Yn,Uin,rn(PH)),Q(n,Yn,Gin,rn(phn)),Q(n,Yn,WK,rn(Cj)),Q(n,Yn,zin,rn(Ws)),Q(n,Yn,eB,rn(C2)),Q(n,Yn,$B,rn(w0)),Q(n,Yn,Xin,rn(qw)),Q(n,Yn,Vin,rn(Sv)),Q(n,Yn,Win,rn(Pv)),Q(n,Yn,Jin,rn(IH)),Q(n,Yn,yw,rn(g0)),Q(n,Yn,Qin,rn(OH)),Q(n,Yn,Yin,rn(X8)),Q(n,Yn,Zin,rn(yO)),Q(n,Yn,Tin,rn(Tj)),Q(n,Yn,Sin,rn(T2)),Q(n,Yn,Cin,rn(Kd)),Q(n,Yn,Pin,rn(S2)),Q(n,Yn,Dy,Y(0)),Q(n,Yn,Iin,rn(Cv)),Q(n,Yn,Oin,rn(ghn)),Q(n,Yn,Ain,rn(O3)),Q(n,Yn,Al,rn(Chn)),Q(n,Yn,pP,rn(vhn)),Q(n,Yn,mP,rn(khn)),Q(n,Yn,s8,rn(LH)),Q(n,Yn,SB,rn(yhn)),Q(n,Yn,PB,rn(jhn)),Q(n,Yn,vP,rn(jO)),Q(n,Yn,kP,rn(NH)),Q(n,Yn,yP,rn(Mhn)),Q(n,Yn,jP,rn(Ehn)),Q(n,Yn,IB,rn(Thn)),Q(n,Yn,yB,rn(d0)),Q(n,Yn,jB,rn(z8)),Q(n,Yn,bP,rn(MH)),Q(n,Yn,wP,rn(Wfn)),Q(n,Yn,$y,rn(Vte)),Q(n,Yn,xy,rn(Wte)),Q(n,Yn,Ry,rn(Xte)),Q(n,Yn,Ky,rn(zte)),Q(n,Yn,Jb,mhn),Q(n,Yn,Wb,lhn),Q(n,Yn,qy,zfn),Q(n,Yn,nrn,0),Q(n,Yn,uP,Y(1)),Q(n,Yn,l3,Gm),Q(n,Yn,ern,rn(Rd)),Q(n,Yn,tB,rn(Ft)),Q(n,Yn,trn,rn(Tv)),Q(n,Yn,Uy,rn(xte)),Q(n,Yn,irn,rn(Ch)),Q(n,Yn,MP,rn(Kw)),Q(n,Yn,t8,(_n(),!0)),Q(n,Yn,rrn,rn(Bw)),Q(n,Yn,crn,rn(Dd)),Q(n,Yn,r2,rn(xd)),Q(n,Yn,a3,rn(kO)),Q(n,Yn,zm,rn(SH)),Q(n,Yn,xB,Gfn),Q(n,Yn,Xm,rn(a0)),Q(n,Yn,urn,rn(mO)),Q(n,Yn,Vm,rn(_w)),Q(n,Yn,orn,rn(Hte)),Q(n,Yn,srn,rn(bhn)),Q(n,Yn,frn,dhn),Q(n,Yn,hrn,rn(Bte)),Q(n,Yn,lrn,rn(Fte)),Q(n,Yn,arn,rn(_te)),Q(n,Yn,drn,rn(Kte)),Q(n,Yn,ain,rn(AH)),Q(n,Yn,Hy,rn($d)),Q(n,Yn,aB,rn(ja)),Q(n,Yn,lin,rn(V8)),Q(n,Yn,bin,rn(ou)),Q(n,Yn,fB,rn(Nd)),Q(n,Yn,o8,rn(U8)),Q(n,Yn,pin,rn(l0)),Q(n,Yn,jin,rn(Hfn)),Q(n,Yn,pB,rn(kH)),Q(n,Yn,aP,rn(Mj)),Q(n,Yn,gB,rn(yH)),Q(n,Yn,oin,rn(uhn)),Q(n,Yn,sin,rn(ohn)),Q(n,Yn,lP,rn(ehn)),Q(n,Yn,c2,rn(vO)),Q(n,Yn,vB,rn(CH)),Q(n,Yn,uin,rn(TH)),Q(n,Yn,kB,rn(fhn)),Q(n,Yn,Ein,rn(Vfn)),Q(n,Yn,Min,rn(EH)),Q(n,Yn,TP,rn(vH)),Q(n,Yn,mB,rn(shn)),Q(n,Yn,Lin,rn(fO)),Q(n,Yn,Nin,rn(Bfn)),Q(n,Yn,MB,rn(sO)),Q(n,Yn,gP,rn(Yfn)),Q(n,Yn,TB,rn(Qfn)),Q(n,Yn,CB,rn(Zfn)),Q(n,Yn,d3,rn(Ev)),Q(n,Yn,brn,rn(Rr)),Q(n,Yn,JK,rn(m1)),Q(n,Yn,wrn,rn(Sh)),Q(n,Yn,oP,rn(jH)),Q(n,Yn,wB,rn(qfn)),Q(n,Yn,grn,rn(v1)),Q(n,Yn,prn,rn(q8)),Q(n,Yn,mrn,rn(wO)),Q(n,Yn,vrn,rn(b0)),Q(n,Yn,RB,rn(ahn)),Q(n,Yn,KB,rn(Mv)),Q(n,Yn,hB,rn(ihn)),Q(n,Yn,lB,rn(rhn)),Q(n,Yn,CP,rn(Hw)),Q(n,Yn,fin,rn(pH)),Q(n,Yn,dB,rn(chn)),Q(n,Yn,Din,rn(bO)),Q(n,Yn,$in,rn(dO)),Q(n,Yn,krn,rn(pO)),Q(n,Yn,bB,rn(thn)),Q(n,Yn,dP,rn(G8)),Q(n,Yn,yrn,rn(Sj)),Q(n,Yn,cin,rn(Ufn)),Q(n,Yn,hin,rn(whn)),Q(n,Yn,EB,rn(Xfn)),Q(n,Yn,min,rn(Nte)),Q(n,Yn,vin,rn(Dte)),Q(n,Yn,win,rn(Rte)),Q(n,Yn,kin,rn($te)),Q(n,Yn,SP,rn(nhn)),Q(n,Yn,gin,rn(gO)),Q(n,Yn,yin,rn(aO)),Q(n,Yn,EP,rn(Yh)),Q(n,Yn,Kin,rn(_fn)),Q(n,Yn,AB,rn(hO)),Q(n,Yn,LB,rn(Ffn)),Q(n,Yn,Rin,rn(lO)),Q(n,Yn,OB,rn(Rw)),Q(n,Yn,xin,rn(mH)),Q(n,Yn,din,rn(Jfn))}function nDe(n){Te(n.a,Ke,S(C(fn,1),J,2,6,[Qe,"anySimpleType"])),Te(n.b,Ke,S(C(fn,1),J,2,6,[Qe,"anyType",vs,Jy])),Te(u(N(H(n.b),0),35),Ke,S(C(fn,1),J,2,6,[vs,PF,Qe,":mixed"])),Te(u(N(H(n.b),1),35),Ke,S(C(fn,1),J,2,6,[vs,PF,Vcn,OF,Qe,":1",NJn,"lax"])),Te(u(N(H(n.b),2),35),Ke,S(C(fn,1),J,2,6,[vs,IJn,Vcn,OF,Qe,":2",NJn,"lax"])),Te(n.c,Ke,S(C(fn,1),J,2,6,[Qe,"anyURI",ys,vf])),Te(n.d,Ke,S(C(fn,1),J,2,6,[Qe,"base64Binary",ys,vf])),Te(n.e,Ke,S(C(fn,1),J,2,6,[Qe,i3,ys,vf])),Te(n.f,Ke,S(C(fn,1),J,2,6,[Qe,"boolean:Object",Ji,i3])),Te(n.g,Ke,S(C(fn,1),J,2,6,[Qe,m8])),Te(n.i,Ke,S(C(fn,1),J,2,6,[Qe,"byte:Object",Ji,m8])),Te(n.j,Ke,S(C(fn,1),J,2,6,[Qe,"date",ys,vf])),Te(n.k,Ke,S(C(fn,1),J,2,6,[Qe,"dateTime",ys,vf])),Te(n.n,Ke,S(C(fn,1),J,2,6,[Qe,"decimal",ys,vf])),Te(n.o,Ke,S(C(fn,1),J,2,6,[Qe,v8,ys,vf])),Te(n.p,Ke,S(C(fn,1),J,2,6,[Qe,"double:Object",Ji,v8])),Te(n.q,Ke,S(C(fn,1),J,2,6,[Qe,"duration",ys,vf])),Te(n.s,Ke,S(C(fn,1),J,2,6,[Qe,"ENTITIES",Ji,DJn,Wcn,"1"])),Te(n.r,Ke,S(C(fn,1),J,2,6,[Qe,DJn,IF,Jcn])),Te(n.t,Ke,S(C(fn,1),J,2,6,[Qe,Jcn,Ji,tI])),Te(n.u,Ke,S(C(fn,1),J,2,6,[Qe,k8,ys,vf])),Te(n.v,Ke,S(C(fn,1),J,2,6,[Qe,"float:Object",Ji,k8])),Te(n.w,Ke,S(C(fn,1),J,2,6,[Qe,"gDay",ys,vf])),Te(n.B,Ke,S(C(fn,1),J,2,6,[Qe,"gMonth",ys,vf])),Te(n.A,Ke,S(C(fn,1),J,2,6,[Qe,"gMonthDay",ys,vf])),Te(n.C,Ke,S(C(fn,1),J,2,6,[Qe,"gYear",ys,vf])),Te(n.D,Ke,S(C(fn,1),J,2,6,[Qe,"gYearMonth",ys,vf])),Te(n.F,Ke,S(C(fn,1),J,2,6,[Qe,"hexBinary",ys,vf])),Te(n.G,Ke,S(C(fn,1),J,2,6,[Qe,"ID",Ji,tI])),Te(n.H,Ke,S(C(fn,1),J,2,6,[Qe,"IDREF",Ji,tI])),Te(n.J,Ke,S(C(fn,1),J,2,6,[Qe,"IDREFS",Ji,$Jn,Wcn,"1"])),Te(n.I,Ke,S(C(fn,1),J,2,6,[Qe,$Jn,IF,"IDREF"])),Te(n.K,Ke,S(C(fn,1),J,2,6,[Qe,y8])),Te(n.M,Ke,S(C(fn,1),J,2,6,[Qe,Qcn])),Te(n.L,Ke,S(C(fn,1),J,2,6,[Qe,"int:Object",Ji,y8])),Te(n.P,Ke,S(C(fn,1),J,2,6,[Qe,"language",Ji,AF,LF,xJn])),Te(n.Q,Ke,S(C(fn,1),J,2,6,[Qe,j8])),Te(n.R,Ke,S(C(fn,1),J,2,6,[Qe,"long:Object",Ji,j8])),Te(n.S,Ke,S(C(fn,1),J,2,6,[Qe,"Name",Ji,AF,LF,Ycn])),Te(n.T,Ke,S(C(fn,1),J,2,6,[Qe,tI,Ji,"Name",LF,RJn])),Te(n.U,Ke,S(C(fn,1),J,2,6,[Qe,"negativeInteger",Ji,KJn,ej,"-1"])),Te(n.V,Ke,S(C(fn,1),J,2,6,[Qe,Zcn,Ji,AF,LF,"\\c+"])),Te(n.X,Ke,S(C(fn,1),J,2,6,[Qe,"NMTOKENS",Ji,BJn,Wcn,"1"])),Te(n.W,Ke,S(C(fn,1),J,2,6,[Qe,BJn,IF,Zcn])),Te(n.Y,Ke,S(C(fn,1),J,2,6,[Qe,nun,Ji,Qcn,tj,"0"])),Te(n.Z,Ke,S(C(fn,1),J,2,6,[Qe,KJn,Ji,Qcn,ej,"0"])),Te(n.$,Ke,S(C(fn,1),J,2,6,[Qe,FJn,Ji,nK,ys,"replace"])),Te(n._,Ke,S(C(fn,1),J,2,6,[Qe,"NOTATION",ys,vf])),Te(n.ab,Ke,S(C(fn,1),J,2,6,[Qe,"positiveInteger",Ji,nun,tj,"1"])),Te(n.bb,Ke,S(C(fn,1),J,2,6,[Qe,"processingInstruction_._type",vs,"empty"])),Te(u(N(H(n.bb),0),35),Ke,S(C(fn,1),J,2,6,[vs,YP,Qe,"data"])),Te(u(N(H(n.bb),1),35),Ke,S(C(fn,1),J,2,6,[vs,YP,Qe,Dcn])),Te(n.cb,Ke,S(C(fn,1),J,2,6,[Qe,"QName",ys,vf])),Te(n.db,Ke,S(C(fn,1),J,2,6,[Qe,E8])),Te(n.eb,Ke,S(C(fn,1),J,2,6,[Qe,"short:Object",Ji,E8])),Te(n.fb,Ke,S(C(fn,1),J,2,6,[Qe,"simpleAnyType",vs,Qy])),Te(u(N(H(n.fb),0),35),Ke,S(C(fn,1),J,2,6,[Qe,":3",vs,Qy])),Te(u(N(H(n.fb),1),35),Ke,S(C(fn,1),J,2,6,[Qe,":4",vs,Qy])),Te(u(N(H(n.fb),2),19),Ke,S(C(fn,1),J,2,6,[Qe,":5",vs,Qy])),Te(n.gb,Ke,S(C(fn,1),J,2,6,[Qe,nK,ys,"preserve"])),Te(n.hb,Ke,S(C(fn,1),J,2,6,[Qe,"time",ys,vf])),Te(n.ib,Ke,S(C(fn,1),J,2,6,[Qe,AF,Ji,FJn,ys,vf])),Te(n.jb,Ke,S(C(fn,1),J,2,6,[Qe,_Jn,ej,"255",tj,"0"])),Te(n.kb,Ke,S(C(fn,1),J,2,6,[Qe,"unsignedByte:Object",Ji,_Jn])),Te(n.lb,Ke,S(C(fn,1),J,2,6,[Qe,HJn,ej,"4294967295",tj,"0"])),Te(n.mb,Ke,S(C(fn,1),J,2,6,[Qe,"unsignedInt:Object",Ji,HJn])),Te(n.nb,Ke,S(C(fn,1),J,2,6,[Qe,"unsignedLong",Ji,nun,ej,qJn,tj,"0"])),Te(n.ob,Ke,S(C(fn,1),J,2,6,[Qe,UJn,ej,"65535",tj,"0"])),Te(n.pb,Ke,S(C(fn,1),J,2,6,[Qe,"unsignedShort:Object",Ji,UJn])),Te(n.qb,Ke,S(C(fn,1),J,2,6,[Qe,"",vs,Jy])),Te(u(N(H(n.qb),0),35),Ke,S(C(fn,1),J,2,6,[vs,PF,Qe,":mixed"])),Te(u(N(H(n.qb),1),19),Ke,S(C(fn,1),J,2,6,[vs,YP,Qe,"xmlns:prefix"])),Te(u(N(H(n.qb),2),19),Ke,S(C(fn,1),J,2,6,[vs,YP,Qe,"xsi:schemaLocation"])),Te(u(N(H(n.qb),3),35),Ke,S(C(fn,1),J,2,6,[vs,ZP,Qe,"cDATA",nI,Yy])),Te(u(N(H(n.qb),4),35),Ke,S(C(fn,1),J,2,6,[vs,ZP,Qe,"comment",nI,Yy])),Te(u(N(H(n.qb),5),19),Ke,S(C(fn,1),J,2,6,[vs,ZP,Qe,GJn,nI,Yy])),Te(u(N(H(n.qb),6),35),Ke,S(C(fn,1),J,2,6,[vs,ZP,Qe,wF,nI,Yy]))}function $e(n){return Sn("_UI_EMFDiagnostic_marker",n)?"EMF Problem":Sn("_UI_CircularContainment_diagnostic",n)?"An object may not circularly contain itself":Sn(SWn,n)?"Wrong character.":Sn(PWn,n)?"Invalid reference number.":Sn(qP,n)?"A character is required after \\.":Sn(jF,n)?"'?' is not expected. '(?:' or '(?=' or '(?!' or '(?<' or '(?#' or '(?>'?":Sn(IWn,n)?"'(?<' or '(?<!' is expected.":Sn(OWn,n)?"A comment is not terminated.":Sn(Sd,n)?"')' is expected.":Sn($cn,n)?"Unexpected end of the pattern in a modifier group.":Sn(AWn,n)?"':' is expected.":Sn(LWn,n)?"Unexpected end of the pattern in a conditional group.":Sn(NWn,n)?"A back reference or an anchor or a lookahead or a look-behind is expected in a conditional pattern.":Sn(DWn,n)?"There are more than three choices in a conditional group.":Sn($Wn,n)?"A character in U+0040-U+005f must follow \\c.":Sn(xWn,n)?"A '{' is required before a character category.":Sn(RWn,n)?"A property name is not closed by '}'.":Sn(xcn,n)?"Unexpected meta character.":Sn(EF,n)?"Unknown property.":Sn(Rcn,n)?"A POSIX character class must be closed by ':]'.":Sn(UP,n)?"Unexpected end of the pattern in a character class.":Sn(KWn,n)?"Unknown name for a POSIX character class.":Sn("parser.cc.4",n)?"'-' is invalid here.":Sn(BWn,n)?"']' is expected.":Sn(Kcn,n)?"'[' is invalid in a character class. Write '\\['.":Sn(Bcn,n)?"']' is invalid in a character class. Write '\\]'.":Sn(MF,n)?"'-' is an invalid character range. Write '\\-'.":Sn(FWn,n)?"'[' is expected.":Sn(_Wn,n)?"')' or '-[' or '+[' or '&[' is expected.":Sn(HWn,n)?"The range end code point is less than the start code point.":Sn(g1,n)?"Invalid Unicode hex notation.":Sn(qWn,n)?"Overflow in a hex notation.":Sn(UWn,n)?"'\\x{' must be closed by '}'.":Sn(GWn,n)?"Invalid Unicode code point.":Sn(zWn,n)?"An anchor must not be here.":Sn(is,n)?"This expression is not supported in the current option setting.":Sn(XWn,n)?"Invalid quantifier. A digit is expected.":Sn(VWn,n)?"Invalid quantifier. Invalid quantity or a '}' is missing.":Sn(WWn,n)?"Invalid quantifier. A digit or '}' is expected.":Sn(JWn,n)?"Invalid quantifier. A min quantity must be <= a max quantity.":Sn(Fcn,n)?"Invalid quantifier. A quantity value overflow.":Sn("_UI_PackageRegistry_extensionpoint",n)?"Ecore Package Registry for Generated Packages":Sn("_UI_DynamicPackageRegistry_extensionpoint",n)?"Ecore Package Registry for Dynamic Packages":Sn("_UI_FactoryRegistry_extensionpoint",n)?"Ecore Factory Override Registry":Sn("_UI_URIExtensionParserRegistry_extensionpoint",n)?"URI Extension Parser Registry":Sn("_UI_URIProtocolParserRegistry_extensionpoint",n)?"URI Protocol Parser Registry":Sn("_UI_URIContentParserRegistry_extensionpoint",n)?"URI Content Parser Registry":Sn("_UI_ContentHandlerRegistry_extensionpoint",n)?"Content Handler Registry":Sn("_UI_URIMappingRegistry_extensionpoint",n)?"URI Converter Mapping Registry":Sn("_UI_PackageRegistryImplementation_extensionpoint",n)?"Ecore Package Registry Implementation":Sn("_UI_ValidationDelegateRegistry_extensionpoint",n)?"Validation Delegate Registry":Sn("_UI_SettingDelegateRegistry_extensionpoint",n)?"Feature Setting Delegate Factory Registry":Sn("_UI_InvocationDelegateRegistry_extensionpoint",n)?"Operation Invocation Delegate Factory Registry":Sn("_UI_EClassInterfaceNotAbstract_diagnostic",n)?"A class that is an interface must also be abstract":Sn("_UI_EClassNoCircularSuperTypes_diagnostic",n)?"A class may not be a super type of itself":Sn("_UI_EClassNotWellFormedMapEntryNoInstanceClassName_diagnostic",n)?"A class that inherits from a map entry class must have instance class name 'java.util.Map$Entry'":Sn("_UI_EReferenceOppositeOfOppositeInconsistent_diagnostic",n)?"The opposite of the opposite may not be a reference different from this one":Sn("_UI_EReferenceOppositeNotFeatureOfType_diagnostic",n)?"The opposite must be a feature of the reference's type":Sn("_UI_EReferenceTransientOppositeNotTransient_diagnostic",n)?"The opposite of a transient reference must be transient if it is proxy resolving":Sn("_UI_EReferenceOppositeBothContainment_diagnostic",n)?"The opposite of a containment reference must not be a containment reference":Sn("_UI_EReferenceConsistentUnique_diagnostic",n)?"A containment or bidirectional reference must be unique if its upper bound is different from 1":Sn("_UI_ETypedElementNoType_diagnostic",n)?"The typed element must have a type":Sn("_UI_EAttributeNoDataType_diagnostic",n)?"The generic attribute type must not refer to a class":Sn("_UI_EReferenceNoClass_diagnostic",n)?"The generic reference type must not refer to a data type":Sn("_UI_EGenericTypeNoTypeParameterAndClassifier_diagnostic",n)?"A generic type can't refer to both a type parameter and a classifier":Sn("_UI_EGenericTypeNoClass_diagnostic",n)?"A generic super type must refer to a class":Sn("_UI_EGenericTypeNoTypeParameterOrClassifier_diagnostic",n)?"A generic type in this context must refer to a classifier or a type parameter":Sn("_UI_EGenericTypeBoundsOnlyForTypeArgument_diagnostic",n)?"A generic type may have bounds only when used as a type argument":Sn("_UI_EGenericTypeNoUpperAndLowerBound_diagnostic",n)?"A generic type must not have both a lower and an upper bound":Sn("_UI_EGenericTypeNoTypeParameterOrClassifierAndBound_diagnostic",n)?"A generic type with bounds must not also refer to a type parameter or classifier":Sn("_UI_EGenericTypeNoArguments_diagnostic",n)?"A generic type may have arguments only if it refers to a classifier":Sn("_UI_EGenericTypeOutOfScopeTypeParameter_diagnostic",n)?"A generic type may only refer to a type parameter that is in scope":n}function eDe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k;n.r||(n.r=!0,zc(n,"graph"),MC(n,"graph"),TC(n,tv),jk(n.o,"T"),ve(Hr(n.a),n.p),ve(Hr(n.f),n.a),ve(Hr(n.n),n.f),ve(Hr(n.g),n.n),ve(Hr(n.c),n.n),ve(Hr(n.i),n.c),ve(Hr(n.j),n.c),ve(Hr(n.d),n.f),ve(Hr(n.e),n.a),fc(n.p,pDe,pXn,!0,!0,!1),m=$g(n.p,n.p,"setProperty"),k=rRn(m),l=al(n.o),a=(t=(i=new Jd,i),t),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),d=ED(k),qZ(a,d),dS(m,l,Tcn),l=ED(k),dS(m,l,g8),m=$g(n.p,null,"getProperty"),k=rRn(m),l=al(n.o),a=ED(k),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),dS(m,l,Tcn),l=ED(k),p=Kf(m,l,null),p&&p.oj(),m=$g(n.p,n.wb.e,"hasProperty"),l=al(n.o),a=(r=(c=new Jd,c),r),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),dS(m,l,Tcn),m=$g(n.p,n.p,"copyProperties"),$r(m,n.p,lF),m=$g(n.p,null,"getAllProperties"),l=al(n.wb.P),a=al(n.o),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),d=(s=(f=new Jd,f),s),ve((!a.d&&(a.d=new ti(jr,a,1)),a.d),d),a=al(n.wb.M),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),g=Kf(m,l,null),g&&g.oj(),fc(n.a,Hv,iWn,!0,!1,!0),Et(u(N(H(n.a),0),19),n.k,null,wWn,0,-1,Hv,!1,!1,!0,!0,!1,!1,!1),fc(n.f,oE,cWn,!0,!1,!0),Et(u(N(H(n.f),0),19),n.g,u(N(H(n.g),0),19),"labels",0,-1,oE,!1,!1,!0,!0,!1,!1,!1),Ut(u(N(H(n.f),1),35),n.wb._,gWn,null,0,1,oE,!1,!1,!0,!1,!0,!1),fc(n.n,sE,"ElkShape",!0,!1,!0),Ut(u(N(H(n.n),0),35),n.wb.t,aF,Fm,1,1,sE,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.n),1),35),n.wb.t,dF,Fm,1,1,sE,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.n),2),35),n.wb.t,"x",Fm,1,1,sE,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.n),3),35),n.wb.t,"y",Fm,1,1,sE,!1,!1,!0,!1,!0,!1),m=$g(n.n,null,"setDimensions"),$r(m,n.wb.t,dF),$r(m,n.wb.t,aF),m=$g(n.n,null,"setLocation"),$r(m,n.wb.t,"x"),$r(m,n.wb.t,"y"),fc(n.g,Sr,jcn,!1,!1,!0),Et(u(N(H(n.g),0),19),n.f,u(N(H(n.f),0),19),bF,0,1,Sr,!1,!1,!0,!1,!1,!1,!1),Ut(u(N(H(n.g),1),35),n.wb._,wF,"",0,1,Sr,!1,!1,!0,!1,!0,!1),fc(n.c,he,uWn,!0,!1,!0),Et(u(N(H(n.c),0),19),n.d,u(N(H(n.d),1),19),"outgoingEdges",0,-1,he,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.c),1),19),n.d,u(N(H(n.d),2),19),"incomingEdges",0,-1,he,!1,!1,!0,!1,!0,!1,!1),fc(n.i,Ye,Ecn,!1,!1,!0),Et(u(N(H(n.i),0),19),n.j,u(N(H(n.j),0),19),"ports",0,-1,Ye,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.i),1),19),n.i,u(N(H(n.i),2),19),gF,0,-1,Ye,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.i),2),19),n.i,u(N(H(n.i),1),19),bF,0,1,Ye,!1,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.i),3),19),n.d,u(N(H(n.d),0),19),"containedEdges",0,-1,Ye,!1,!1,!0,!0,!1,!1,!1),Ut(u(N(H(n.i),4),35),n.wb.e,pWn,null,0,1,Ye,!0,!0,!1,!1,!0,!0),fc(n.j,Qu,Mcn,!1,!1,!0),Et(u(N(H(n.j),0),19),n.i,u(N(H(n.i),0),19),bF,0,1,Qu,!1,!1,!0,!1,!1,!1,!1),fc(n.d,Vt,ycn,!1,!1,!0),Et(u(N(H(n.d),0),19),n.i,u(N(H(n.i),3),19),"containingNode",0,1,Vt,!1,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.d),1),19),n.c,u(N(H(n.c),0),19),Ccn,0,-1,Vt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.d),2),19),n.c,u(N(H(n.c),1),19),pF,0,-1,Vt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.d),3),19),n.e,u(N(H(n.e),5),19),Scn,0,-1,Vt,!1,!1,!0,!0,!1,!1,!1),Ut(u(N(H(n.d),4),35),n.wb.e,"hyperedge",null,0,1,Vt,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.d),5),35),n.wb.e,pWn,null,0,1,Vt,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.d),6),35),n.wb.e,"selfloop",null,0,1,Vt,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.d),7),35),n.wb.e,"connected",null,0,1,Vt,!0,!0,!1,!1,!0,!0),fc(n.b,xo,rWn,!1,!1,!0),Ut(u(N(H(n.b),0),35),n.wb.t,"x",Fm,1,1,xo,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.b),1),35),n.wb.t,"y",Fm,1,1,xo,!1,!1,!0,!1,!0,!1),m=$g(n.b,null,"set"),$r(m,n.wb.t,"x"),$r(m,n.wb.t,"y"),fc(n.e,Tt,oWn,!1,!1,!0),Ut(u(N(H(n.e),0),35),n.wb.t,"startX",null,0,1,Tt,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.e),1),35),n.wb.t,"startY",null,0,1,Tt,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.e),2),35),n.wb.t,"endX",null,0,1,Tt,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.e),3),35),n.wb.t,"endY",null,0,1,Tt,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.e),4),19),n.b,null,BP,0,-1,Tt,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.e),5),19),n.d,u(N(H(n.d),3),19),bF,0,1,Tt,!1,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.e),6),19),n.c,null,Pcn,0,1,Tt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.e),7),19),n.c,null,Icn,0,1,Tt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.e),8),19),n.e,u(N(H(n.e),9),19),Ocn,0,-1,Tt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.e),9),19),n.e,u(N(H(n.e),8),19),Acn,0,-1,Tt,!1,!1,!0,!1,!0,!1,!1),Ut(u(N(H(n.e),10),35),n.wb._,gWn,null,0,1,Tt,!1,!1,!0,!1,!0,!1),m=$g(n.e,null,"setStartLocation"),$r(m,n.wb.t,"x"),$r(m,n.wb.t,"y"),m=$g(n.e,null,"setEndLocation"),$r(m,n.wb.t,"x"),$r(m,n.wb.t,"y"),fc(n.k,Id,"ElkPropertyToValueMapEntry",!1,!1,!1),l=al(n.o),a=(h=(e=new Jd,e),h),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),bHn(u(N(H(n.k),0),35),l,"key",Id,!1,!1,!0,!1),Ut(u(N(H(n.k),1),35),n.s,g8,null,0,1,Id,!1,!1,!0,!1,!0,!1),We(n.o,zq,"IProperty",!0),We(n.s,ki,"PropertyValue",!0),gY(n,tv))}function Tzn(){Tzn=R,I=F(Ru,s2,28,hr,15,1),I[9]=35,I[10]=19,I[13]=19,I[32]=51,I[33]=49,I[34]=33,K(I,35,38,49),I[38]=1,K(I,39,45,49),K(I,45,47,-71),I[47]=49,K(I,48,58,-71),I[58]=61,I[59]=49,I[60]=1,I[61]=49,I[62]=33,K(I,63,65,49),K(I,65,91,-3),K(I,91,93,33),I[93]=1,I[94]=33,I[95]=-3,I[96]=33,K(I,97,123,-3),K(I,123,183,33),I[183]=-87,K(I,184,192,33),K(I,192,215,-19),I[215]=33,K(I,216,247,-19),I[247]=33,K(I,248,306,-19),K(I,306,308,33),K(I,308,319,-19),K(I,319,321,33),K(I,321,329,-19),I[329]=33,K(I,330,383,-19),I[383]=33,K(I,384,452,-19),K(I,452,461,33),K(I,461,497,-19),K(I,497,500,33),K(I,500,502,-19),K(I,502,506,33),K(I,506,536,-19),K(I,536,592,33),K(I,592,681,-19),K(I,681,699,33),K(I,699,706,-19),K(I,706,720,33),K(I,720,722,-87),K(I,722,768,33),K(I,768,838,-87),K(I,838,864,33),K(I,864,866,-87),K(I,866,902,33),I[902]=-19,I[903]=-87,K(I,904,907,-19),I[907]=33,I[908]=-19,I[909]=33,K(I,910,930,-19),I[930]=33,K(I,931,975,-19),I[975]=33,K(I,976,983,-19),K(I,983,986,33),I[986]=-19,I[987]=33,I[988]=-19,I[989]=33,I[990]=-19,I[991]=33,I[992]=-19,I[993]=33,K(I,994,1012,-19),K(I,1012,1025,33),K(I,1025,1037,-19),I[1037]=33,K(I,1038,1104,-19),I[1104]=33,K(I,1105,1117,-19),I[1117]=33,K(I,1118,1154,-19),I[1154]=33,K(I,1155,1159,-87),K(I,1159,1168,33),K(I,1168,1221,-19),K(I,1221,1223,33),K(I,1223,1225,-19),K(I,1225,1227,33),K(I,1227,1229,-19),K(I,1229,1232,33),K(I,1232,1260,-19),K(I,1260,1262,33),K(I,1262,1270,-19),K(I,1270,1272,33),K(I,1272,1274,-19),K(I,1274,1329,33),K(I,1329,1367,-19),K(I,1367,1369,33),I[1369]=-19,K(I,1370,1377,33),K(I,1377,1415,-19),K(I,1415,1425,33),K(I,1425,1442,-87),I[1442]=33,K(I,1443,1466,-87),I[1466]=33,K(I,1467,1470,-87),I[1470]=33,I[1471]=-87,I[1472]=33,K(I,1473,1475,-87),I[1475]=33,I[1476]=-87,K(I,1477,1488,33),K(I,1488,1515,-19),K(I,1515,1520,33),K(I,1520,1523,-19),K(I,1523,1569,33),K(I,1569,1595,-19),K(I,1595,1600,33),I[1600]=-87,K(I,1601,1611,-19),K(I,1611,1619,-87),K(I,1619,1632,33),K(I,1632,1642,-87),K(I,1642,1648,33),I[1648]=-87,K(I,1649,1720,-19),K(I,1720,1722,33),K(I,1722,1727,-19),I[1727]=33,K(I,1728,1743,-19),I[1743]=33,K(I,1744,1748,-19),I[1748]=33,I[1749]=-19,K(I,1750,1765,-87),K(I,1765,1767,-19),K(I,1767,1769,-87),I[1769]=33,K(I,1770,1774,-87),K(I,1774,1776,33),K(I,1776,1786,-87),K(I,1786,2305,33),K(I,2305,2308,-87),I[2308]=33,K(I,2309,2362,-19),K(I,2362,2364,33),I[2364]=-87,I[2365]=-19,K(I,2366,2382,-87),K(I,2382,2385,33),K(I,2385,2389,-87),K(I,2389,2392,33),K(I,2392,2402,-19),K(I,2402,2404,-87),K(I,2404,2406,33),K(I,2406,2416,-87),K(I,2416,2433,33),K(I,2433,2436,-87),I[2436]=33,K(I,2437,2445,-19),K(I,2445,2447,33),K(I,2447,2449,-19),K(I,2449,2451,33),K(I,2451,2473,-19),I[2473]=33,K(I,2474,2481,-19),I[2481]=33,I[2482]=-19,K(I,2483,2486,33),K(I,2486,2490,-19),K(I,2490,2492,33),I[2492]=-87,I[2493]=33,K(I,2494,2501,-87),K(I,2501,2503,33),K(I,2503,2505,-87),K(I,2505,2507,33),K(I,2507,2510,-87),K(I,2510,2519,33),I[2519]=-87,K(I,2520,2524,33),K(I,2524,2526,-19),I[2526]=33,K(I,2527,2530,-19),K(I,2530,2532,-87),K(I,2532,2534,33),K(I,2534,2544,-87),K(I,2544,2546,-19),K(I,2546,2562,33),I[2562]=-87,K(I,2563,2565,33),K(I,2565,2571,-19),K(I,2571,2575,33),K(I,2575,2577,-19),K(I,2577,2579,33),K(I,2579,2601,-19),I[2601]=33,K(I,2602,2609,-19),I[2609]=33,K(I,2610,2612,-19),I[2612]=33,K(I,2613,2615,-19),I[2615]=33,K(I,2616,2618,-19),K(I,2618,2620,33),I[2620]=-87,I[2621]=33,K(I,2622,2627,-87),K(I,2627,2631,33),K(I,2631,2633,-87),K(I,2633,2635,33),K(I,2635,2638,-87),K(I,2638,2649,33),K(I,2649,2653,-19),I[2653]=33,I[2654]=-19,K(I,2655,2662,33),K(I,2662,2674,-87),K(I,2674,2677,-19),K(I,2677,2689,33),K(I,2689,2692,-87),I[2692]=33,K(I,2693,2700,-19),I[2700]=33,I[2701]=-19,I[2702]=33,K(I,2703,2706,-19),I[2706]=33,K(I,2707,2729,-19),I[2729]=33,K(I,2730,2737,-19),I[2737]=33,K(I,2738,2740,-19),I[2740]=33,K(I,2741,2746,-19),K(I,2746,2748,33),I[2748]=-87,I[2749]=-19,K(I,2750,2758,-87),I[2758]=33,K(I,2759,2762,-87),I[2762]=33,K(I,2763,2766,-87),K(I,2766,2784,33),I[2784]=-19,K(I,2785,2790,33),K(I,2790,2800,-87),K(I,2800,2817,33),K(I,2817,2820,-87),I[2820]=33,K(I,2821,2829,-19),K(I,2829,2831,33),K(I,2831,2833,-19),K(I,2833,2835,33),K(I,2835,2857,-19),I[2857]=33,K(I,2858,2865,-19),I[2865]=33,K(I,2866,2868,-19),K(I,2868,2870,33),K(I,2870,2874,-19),K(I,2874,2876,33),I[2876]=-87,I[2877]=-19,K(I,2878,2884,-87),K(I,2884,2887,33),K(I,2887,2889,-87),K(I,2889,2891,33),K(I,2891,2894,-87),K(I,2894,2902,33),K(I,2902,2904,-87),K(I,2904,2908,33),K(I,2908,2910,-19),I[2910]=33,K(I,2911,2914,-19),K(I,2914,2918,33),K(I,2918,2928,-87),K(I,2928,2946,33),K(I,2946,2948,-87),I[2948]=33,K(I,2949,2955,-19),K(I,2955,2958,33),K(I,2958,2961,-19),I[2961]=33,K(I,2962,2966,-19),K(I,2966,2969,33),K(I,2969,2971,-19),I[2971]=33,I[2972]=-19,I[2973]=33,K(I,2974,2976,-19),K(I,2976,2979,33),K(I,2979,2981,-19),K(I,2981,2984,33),K(I,2984,2987,-19),K(I,2987,2990,33),K(I,2990,2998,-19),I[2998]=33,K(I,2999,3002,-19),K(I,3002,3006,33),K(I,3006,3011,-87),K(I,3011,3014,33),K(I,3014,3017,-87),I[3017]=33,K(I,3018,3022,-87),K(I,3022,3031,33),I[3031]=-87,K(I,3032,3047,33),K(I,3047,3056,-87),K(I,3056,3073,33),K(I,3073,3076,-87),I[3076]=33,K(I,3077,3085,-19),I[3085]=33,K(I,3086,3089,-19),I[3089]=33,K(I,3090,3113,-19),I[3113]=33,K(I,3114,3124,-19),I[3124]=33,K(I,3125,3130,-19),K(I,3130,3134,33),K(I,3134,3141,-87),I[3141]=33,K(I,3142,3145,-87),I[3145]=33,K(I,3146,3150,-87),K(I,3150,3157,33),K(I,3157,3159,-87),K(I,3159,3168,33),K(I,3168,3170,-19),K(I,3170,3174,33),K(I,3174,3184,-87),K(I,3184,3202,33),K(I,3202,3204,-87),I[3204]=33,K(I,3205,3213,-19),I[3213]=33,K(I,3214,3217,-19),I[3217]=33,K(I,3218,3241,-19),I[3241]=33,K(I,3242,3252,-19),I[3252]=33,K(I,3253,3258,-19),K(I,3258,3262,33),K(I,3262,3269,-87),I[3269]=33,K(I,3270,3273,-87),I[3273]=33,K(I,3274,3278,-87),K(I,3278,3285,33),K(I,3285,3287,-87),K(I,3287,3294,33),I[3294]=-19,I[3295]=33,K(I,3296,3298,-19),K(I,3298,3302,33),K(I,3302,3312,-87),K(I,3312,3330,33),K(I,3330,3332,-87),I[3332]=33,K(I,3333,3341,-19),I[3341]=33,K(I,3342,3345,-19),I[3345]=33,K(I,3346,3369,-19),I[3369]=33,K(I,3370,3386,-19),K(I,3386,3390,33),K(I,3390,3396,-87),K(I,3396,3398,33),K(I,3398,3401,-87),I[3401]=33,K(I,3402,3406,-87),K(I,3406,3415,33),I[3415]=-87,K(I,3416,3424,33),K(I,3424,3426,-19),K(I,3426,3430,33),K(I,3430,3440,-87),K(I,3440,3585,33),K(I,3585,3631,-19),I[3631]=33,I[3632]=-19,I[3633]=-87,K(I,3634,3636,-19),K(I,3636,3643,-87),K(I,3643,3648,33),K(I,3648,3654,-19),K(I,3654,3663,-87),I[3663]=33,K(I,3664,3674,-87),K(I,3674,3713,33),K(I,3713,3715,-19),I[3715]=33,I[3716]=-19,K(I,3717,3719,33),K(I,3719,3721,-19),I[3721]=33,I[3722]=-19,K(I,3723,3725,33),I[3725]=-19,K(I,3726,3732,33),K(I,3732,3736,-19),I[3736]=33,K(I,3737,3744,-19),I[3744]=33,K(I,3745,3748,-19),I[3748]=33,I[3749]=-19,I[3750]=33,I[3751]=-19,K(I,3752,3754,33),K(I,3754,3756,-19),I[3756]=33,K(I,3757,3759,-19),I[3759]=33,I[3760]=-19,I[3761]=-87,K(I,3762,3764,-19),K(I,3764,3770,-87),I[3770]=33,K(I,3771,3773,-87),I[3773]=-19,K(I,3774,3776,33),K(I,3776,3781,-19),I[3781]=33,I[3782]=-87,I[3783]=33,K(I,3784,3790,-87),K(I,3790,3792,33),K(I,3792,3802,-87),K(I,3802,3864,33),K(I,3864,3866,-87),K(I,3866,3872,33),K(I,3872,3882,-87),K(I,3882,3893,33),I[3893]=-87,I[3894]=33,I[3895]=-87,I[3896]=33,I[3897]=-87,K(I,3898,3902,33),K(I,3902,3904,-87),K(I,3904,3912,-19),I[3912]=33,K(I,3913,3946,-19),K(I,3946,3953,33),K(I,3953,3973,-87),I[3973]=33,K(I,3974,3980,-87),K(I,3980,3984,33),K(I,3984,3990,-87),I[3990]=33,I[3991]=-87,I[3992]=33,K(I,3993,4014,-87),K(I,4014,4017,33),K(I,4017,4024,-87),I[4024]=33,I[4025]=-87,K(I,4026,4256,33),K(I,4256,4294,-19),K(I,4294,4304,33),K(I,4304,4343,-19),K(I,4343,4352,33),I[4352]=-19,I[4353]=33,K(I,4354,4356,-19),I[4356]=33,K(I,4357,4360,-19),I[4360]=33,I[4361]=-19,I[4362]=33,K(I,4363,4365,-19),I[4365]=33,K(I,4366,4371,-19),K(I,4371,4412,33),I[4412]=-19,I[4413]=33,I[4414]=-19,I[4415]=33,I[4416]=-19,K(I,4417,4428,33),I[4428]=-19,I[4429]=33,I[4430]=-19,I[4431]=33,I[4432]=-19,K(I,4433,4436,33),K(I,4436,4438,-19),K(I,4438,4441,33),I[4441]=-19,K(I,4442,4447,33),K(I,4447,4450,-19),I[4450]=33,I[4451]=-19,I[4452]=33,I[4453]=-19,I[4454]=33,I[4455]=-19,I[4456]=33,I[4457]=-19,K(I,4458,4461,33),K(I,4461,4463,-19),K(I,4463,4466,33),K(I,4466,4468,-19),I[4468]=33,I[4469]=-19,K(I,4470,4510,33),I[4510]=-19,K(I,4511,4520,33),I[4520]=-19,K(I,4521,4523,33),I[4523]=-19,K(I,4524,4526,33),K(I,4526,4528,-19),K(I,4528,4535,33),K(I,4535,4537,-19),I[4537]=33,I[4538]=-19,I[4539]=33,K(I,4540,4547,-19),K(I,4547,4587,33),I[4587]=-19,K(I,4588,4592,33),I[4592]=-19,K(I,4593,4601,33),I[4601]=-19,K(I,4602,7680,33),K(I,7680,7836,-19),K(I,7836,7840,33),K(I,7840,7930,-19),K(I,7930,7936,33),K(I,7936,7958,-19),K(I,7958,7960,33),K(I,7960,7966,-19),K(I,7966,7968,33),K(I,7968,8006,-19),K(I,8006,8008,33),K(I,8008,8014,-19),K(I,8014,8016,33),K(I,8016,8024,-19),I[8024]=33,I[8025]=-19,I[8026]=33,I[8027]=-19,I[8028]=33,I[8029]=-19,I[8030]=33,K(I,8031,8062,-19),K(I,8062,8064,33),K(I,8064,8117,-19),I[8117]=33,K(I,8118,8125,-19),I[8125]=33,I[8126]=-19,K(I,8127,8130,33),K(I,8130,8133,-19),I[8133]=33,K(I,8134,8141,-19),K(I,8141,8144,33),K(I,8144,8148,-19),K(I,8148,8150,33),K(I,8150,8156,-19),K(I,8156,8160,33),K(I,8160,8173,-19),K(I,8173,8178,33),K(I,8178,8181,-19),I[8181]=33,K(I,8182,8189,-19),K(I,8189,8400,33),K(I,8400,8413,-87),K(I,8413,8417,33),I[8417]=-87,K(I,8418,8486,33),I[8486]=-19,K(I,8487,8490,33),K(I,8490,8492,-19),K(I,8492,8494,33),I[8494]=-19,K(I,8495,8576,33),K(I,8576,8579,-19),K(I,8579,12293,33),I[12293]=-87,I[12294]=33,I[12295]=-19,K(I,12296,12321,33),K(I,12321,12330,-19),K(I,12330,12336,-87),I[12336]=33,K(I,12337,12342,-87),K(I,12342,12353,33),K(I,12353,12437,-19),K(I,12437,12441,33),K(I,12441,12443,-87),K(I,12443,12445,33),K(I,12445,12447,-87),K(I,12447,12449,33),K(I,12449,12539,-19),I[12539]=33,K(I,12540,12543,-87),K(I,12543,12549,33),K(I,12549,12589,-19),K(I,12589,19968,33),K(I,19968,40870,-19),K(I,40870,44032,33),K(I,44032,55204,-19),K(I,55204,Py,33),K(I,57344,65534,33)}function tDe(n){var e,t,i,r,c,s,f;n.hb||(n.hb=!0,zc(n,"ecore"),MC(n,"ecore"),TC(n,ks),jk(n.fb,"E"),jk(n.L,"T"),jk(n.P,"K"),jk(n.P,"V"),jk(n.cb,"E"),ve(Hr(n.b),n.bb),ve(Hr(n.a),n.Q),ve(Hr(n.o),n.p),ve(Hr(n.p),n.R),ve(Hr(n.q),n.p),ve(Hr(n.v),n.q),ve(Hr(n.w),n.R),ve(Hr(n.B),n.Q),ve(Hr(n.R),n.Q),ve(Hr(n.T),n.eb),ve(Hr(n.U),n.R),ve(Hr(n.V),n.eb),ve(Hr(n.W),n.bb),ve(Hr(n.bb),n.eb),ve(Hr(n.eb),n.R),ve(Hr(n.db),n.R),fc(n.b,ng,uJn,!1,!1,!0),Ut(u(N(H(n.b),0),35),n.e,"iD",null,0,1,ng,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.b),1),19),n.q,null,"eAttributeType",1,1,ng,!0,!0,!1,!1,!0,!1,!0),fc(n.a,Ue,iJn,!1,!1,!0),Ut(u(N(H(n.a),0),35),n._,lF,null,0,1,Ue,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.a),1),19),n.ab,null,"details",0,-1,Ue,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.a),2),19),n.Q,u(N(H(n.Q),0),19),"eModelElement",0,1,Ue,!0,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.a),3),19),n.S,null,"contents",0,-1,Ue,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.a),4),19),n.S,null,"references",0,-1,Ue,!1,!1,!0,!1,!0,!1,!1),fc(n.o,Ss,"EClass",!1,!1,!0),Ut(u(N(H(n.o),0),35),n.e,"abstract",null,0,1,Ss,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.o),1),35),n.e,"interface",null,0,1,Ss,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.o),2),19),n.o,null,"eSuperTypes",0,-1,Ss,!1,!1,!0,!1,!0,!0,!1),Et(u(N(H(n.o),3),19),n.T,u(N(H(n.T),0),19),"eOperations",0,-1,Ss,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.o),4),19),n.b,null,"eAllAttributes",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),5),19),n.W,null,"eAllReferences",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),6),19),n.W,null,"eReferences",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),7),19),n.b,null,"eAttributes",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),8),19),n.W,null,"eAllContainments",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),9),19),n.T,null,"eAllOperations",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),10),19),n.bb,null,"eAllStructuralFeatures",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),11),19),n.o,null,"eAllSuperTypes",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),12),19),n.b,null,"eIDAttribute",0,1,Ss,!0,!0,!1,!1,!1,!1,!0),Et(u(N(H(n.o),13),19),n.bb,u(N(H(n.bb),7),19),"eStructuralFeatures",0,-1,Ss,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.o),14),19),n.H,null,"eGenericSuperTypes",0,-1,Ss,!1,!1,!0,!0,!1,!0,!1),Et(u(N(H(n.o),15),19),n.H,null,"eAllGenericSuperTypes",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),f=Tr(u(N(ft(n.o),0),62),n.e,"isSuperTypeOf"),$r(f,n.o,"someClass"),Tr(u(N(ft(n.o),1),62),n.I,"getFeatureCount"),f=Tr(u(N(ft(n.o),2),62),n.bb,mJn),$r(f,n.I,"featureID"),f=Tr(u(N(ft(n.o),3),62),n.I,vJn),$r(f,n.bb,M8),f=Tr(u(N(ft(n.o),4),62),n.bb,mJn),$r(f,n._,"featureName"),Tr(u(N(ft(n.o),5),62),n.I,"getOperationCount"),f=Tr(u(N(ft(n.o),6),62),n.T,"getEOperation"),$r(f,n.I,"operationID"),f=Tr(u(N(ft(n.o),7),62),n.I,kJn),$r(f,n.T,zcn),f=Tr(u(N(ft(n.o),8),62),n.T,"getOverride"),$r(f,n.T,zcn),f=Tr(u(N(ft(n.o),9),62),n.H,"getFeatureType"),$r(f,n.bb,M8),fc(n.p,Mf,oJn,!0,!1,!0),Ut(u(N(H(n.p),0),35),n._,"instanceClassName",null,0,1,Mf,!1,!0,!0,!0,!0,!1),e=al(n.L),t=gJ(),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),bHn(u(N(H(n.p),1),35),e,"instanceClass",Mf,!0,!0,!1,!0),Ut(u(N(H(n.p),2),35),n.M,yJn,null,0,1,Mf,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.p),3),35),n._,"instanceTypeName",null,0,1,Mf,!1,!0,!0,!0,!0,!1),Et(u(N(H(n.p),4),19),n.U,u(N(H(n.U),3),19),"ePackage",0,1,Mf,!0,!1,!1,!1,!0,!1,!1),Et(u(N(H(n.p),5),19),n.db,null,jJn,0,-1,Mf,!1,!1,!0,!0,!0,!1,!1),f=Tr(u(N(ft(n.p),0),62),n.e,EJn),$r(f,n.M,vy),Tr(u(N(ft(n.p),1),62),n.I,"getClassifierID"),fc(n.q,jU,"EDataType",!1,!1,!0),Ut(u(N(H(n.q),0),35),n.e,"serializable",nv,0,1,jU,!1,!1,!0,!1,!0,!1),fc(n.v,EA,"EEnum",!1,!1,!0),Et(u(N(H(n.v),0),19),n.w,u(N(H(n.w),3),19),"eLiterals",0,-1,EA,!1,!1,!0,!0,!1,!1,!1),f=Tr(u(N(ft(n.v),0),62),n.w,MJn),$r(f,n._,Qe),f=Tr(u(N(ft(n.v),1),62),n.w,MJn),$r(f,n.I,g8),f=Tr(u(N(ft(n.v),2),62),n.w,"getEEnumLiteralByLiteral"),$r(f,n._,"literal"),fc(n.w,Kl,sJn,!1,!1,!0),Ut(u(N(H(n.w),0),35),n.I,g8,null,0,1,Kl,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.w),1),35),n.A,"instance",null,0,1,Kl,!0,!1,!0,!1,!0,!1),Ut(u(N(H(n.w),2),35),n._,"literal",null,0,1,Kl,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.w),3),19),n.v,u(N(H(n.v),0),19),"eEnum",0,1,Kl,!0,!1,!1,!1,!1,!1,!1),fc(n.B,O9,"EFactory",!1,!1,!0),Et(u(N(H(n.B),0),19),n.U,u(N(H(n.U),2),19),"ePackage",1,1,O9,!0,!1,!0,!1,!1,!1,!1),f=Tr(u(N(ft(n.B),0),62),n.S,"create"),$r(f,n.o,"eClass"),f=Tr(u(N(ft(n.B),1),62),n.M,"createFromString"),$r(f,n.q,"eDataType"),$r(f,n._,"literalValue"),f=Tr(u(N(ft(n.B),2),62),n._,"convertToString"),$r(f,n.q,"eDataType"),$r(f,n.M,"instanceValue"),fc(n.Q,fE,sWn,!0,!1,!0),Et(u(N(H(n.Q),0),19),n.a,u(N(H(n.a),2),19),"eAnnotations",0,-1,fE,!1,!1,!0,!0,!1,!1,!1),f=Tr(u(N(ft(n.Q),0),62),n.a,"getEAnnotation"),$r(f,n._,lF),fc(n.R,gU,fWn,!0,!1,!0),Ut(u(N(H(n.R),0),35),n._,Qe,null,0,1,gU,!1,!1,!0,!1,!0,!1),fc(n.S,Aa,"EObject",!1,!1,!0),Tr(u(N(ft(n.S),0),62),n.o,"eClass"),Tr(u(N(ft(n.S),1),62),n.e,"eIsProxy"),Tr(u(N(ft(n.S),2),62),n.X,"eResource"),Tr(u(N(ft(n.S),3),62),n.S,"eContainer"),Tr(u(N(ft(n.S),4),62),n.bb,"eContainingFeature"),Tr(u(N(ft(n.S),5),62),n.W,"eContainmentFeature"),f=Tr(u(N(ft(n.S),6),62),null,"eContents"),e=al(n.fb),t=al(n.S),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),r=Kf(f,e,null),r&&r.oj(),f=Tr(u(N(ft(n.S),7),62),null,"eAllContents"),e=al(n.cb),t=al(n.S),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),c=Kf(f,e,null),c&&c.oj(),f=Tr(u(N(ft(n.S),8),62),null,"eCrossReferences"),e=al(n.fb),t=al(n.S),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),s=Kf(f,e,null),s&&s.oj(),f=Tr(u(N(ft(n.S),9),62),n.M,"eGet"),$r(f,n.bb,M8),f=Tr(u(N(ft(n.S),10),62),n.M,"eGet"),$r(f,n.bb,M8),$r(f,n.e,"resolve"),f=Tr(u(N(ft(n.S),11),62),null,"eSet"),$r(f,n.bb,M8),$r(f,n.M,"newValue"),f=Tr(u(N(ft(n.S),12),62),n.e,"eIsSet"),$r(f,n.bb,M8),f=Tr(u(N(ft(n.S),13),62),null,"eUnset"),$r(f,n.bb,M8),f=Tr(u(N(ft(n.S),14),62),n.M,"eInvoke"),$r(f,n.T,zcn),e=al(n.fb),t=gJ(),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),dS(f,e,"arguments"),Hwe(f,n.K),fc(n.T,Ps,hJn,!1,!1,!0),Et(u(N(H(n.T),0),19),n.o,u(N(H(n.o),3),19),TJn,0,1,Ps,!0,!1,!1,!1,!1,!1,!1),Et(u(N(H(n.T),1),19),n.db,null,jJn,0,-1,Ps,!1,!1,!0,!0,!0,!1,!1),Et(u(N(H(n.T),2),19),n.V,u(N(H(n.V),0),19),"eParameters",0,-1,Ps,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.T),3),19),n.p,null,"eExceptions",0,-1,Ps,!1,!1,!0,!1,!0,!0,!1),Et(u(N(H(n.T),4),19),n.H,null,"eGenericExceptions",0,-1,Ps,!1,!1,!0,!0,!1,!0,!1),Tr(u(N(ft(n.T),0),62),n.I,kJn),f=Tr(u(N(ft(n.T),1),62),n.e,"isOverrideOf"),$r(f,n.T,"someOperation"),fc(n.U,Ef,"EPackage",!1,!1,!0),Ut(u(N(H(n.U),0),35),n._,"nsURI",null,0,1,Ef,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.U),1),35),n._,"nsPrefix",null,0,1,Ef,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.U),2),19),n.B,u(N(H(n.B),0),19),"eFactoryInstance",1,1,Ef,!0,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.U),3),19),n.p,u(N(H(n.p),4),19),"eClassifiers",0,-1,Ef,!1,!1,!0,!0,!0,!1,!1),Et(u(N(H(n.U),4),19),n.U,u(N(H(n.U),5),19),"eSubpackages",0,-1,Ef,!1,!1,!0,!0,!0,!1,!1),Et(u(N(H(n.U),5),19),n.U,u(N(H(n.U),4),19),"eSuperPackage",0,1,Ef,!0,!1,!1,!1,!0,!1,!1),f=Tr(u(N(ft(n.U),0),62),n.p,"getEClassifier"),$r(f,n._,Qe),fc(n.V,y0,lJn,!1,!1,!0),Et(u(N(H(n.V),0),19),n.T,u(N(H(n.T),2),19),"eOperation",0,1,y0,!0,!1,!1,!1,!1,!1,!1),fc(n.W,eg,aJn,!1,!1,!0),Ut(u(N(H(n.W),0),35),n.e,"containment",null,0,1,eg,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.W),1),35),n.e,"container",null,0,1,eg,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.W),2),35),n.e,"resolveProxies",nv,0,1,eg,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.W),3),19),n.W,null,"eOpposite",0,1,eg,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.W),4),19),n.o,null,"eReferenceType",1,1,eg,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.W),5),19),n.b,null,"eKeys",0,-1,eg,!1,!1,!0,!1,!0,!1,!1),fc(n.bb,ku,cJn,!0,!1,!0),Ut(u(N(H(n.bb),0),35),n.e,"changeable",nv,0,1,ku,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.bb),1),35),n.e,"volatile",null,0,1,ku,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.bb),2),35),n.e,"transient",null,0,1,ku,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.bb),3),35),n._,"defaultValueLiteral",null,0,1,ku,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.bb),4),35),n.M,yJn,null,0,1,ku,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.bb),5),35),n.e,"unsettable",null,0,1,ku,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.bb),6),35),n.e,"derived",null,0,1,ku,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.bb),7),19),n.o,u(N(H(n.o),13),19),TJn,0,1,ku,!0,!1,!1,!1,!1,!1,!1),Tr(u(N(ft(n.bb),0),62),n.I,vJn),f=Tr(u(N(ft(n.bb),1),62),null,"getContainerClass"),e=al(n.L),t=gJ(),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),i=Kf(f,e,null),i&&i.oj(),fc(n.eb,Zw,rJn,!0,!1,!0),Ut(u(N(H(n.eb),0),35),n.e,"ordered",nv,0,1,Zw,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.eb),1),35),n.e,"unique",nv,0,1,Zw,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.eb),2),35),n.I,"lowerBound",null,0,1,Zw,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.eb),3),35),n.I,"upperBound","1",0,1,Zw,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.eb),4),35),n.e,"many",null,0,1,Zw,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.eb),5),35),n.e,"required",null,0,1,Zw,!0,!0,!1,!1,!0,!0),Et(u(N(H(n.eb),6),19),n.p,null,"eType",0,1,Zw,!1,!0,!0,!1,!0,!0,!1),Et(u(N(H(n.eb),7),19),n.H,null,"eGenericType",0,1,Zw,!1,!0,!0,!0,!1,!0,!1),fc(n.ab,Id,"EStringToStringMapEntry",!1,!1,!1),Ut(u(N(H(n.ab),0),35),n._,"key",null,0,1,Id,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.ab),1),35),n._,g8,null,0,1,Id,!1,!1,!0,!1,!0,!1),fc(n.H,jr,fJn,!1,!1,!0),Et(u(N(H(n.H),0),19),n.H,null,"eUpperBound",0,1,jr,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.H),1),19),n.H,null,"eTypeArguments",0,-1,jr,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.H),2),19),n.p,null,"eRawType",1,1,jr,!0,!1,!1,!1,!0,!1,!0),Et(u(N(H(n.H),3),19),n.H,null,"eLowerBound",0,1,jr,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.H),4),19),n.db,null,"eTypeParameter",0,1,jr,!1,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.H),5),19),n.p,null,"eClassifier",0,1,jr,!1,!1,!0,!1,!0,!1,!1),f=Tr(u(N(ft(n.H),0),62),n.e,EJn),$r(f,n.M,vy),fc(n.db,fu,dJn,!1,!1,!0),Et(u(N(H(n.db),0),19),n.H,null,"eBounds",0,-1,fu,!1,!1,!0,!0,!1,!1,!1),We(n.c,JF,"EBigDecimal",!0),We(n.d,l2,"EBigInteger",!0),We(n.e,so,"EBoolean",!0),We(n.f,Gt,"EBooleanObject",!0),We(n.i,Ru,"EByte",!0),We(n.g,C(Ru,1),"EByteArray",!0),We(n.j,p3,"EByteObject",!0),We(n.k,fs,"EChar",!0),We(n.n,S8,"ECharacterObject",!0),We(n.r,oI,"EDate",!0),We(n.s,mbn,"EDiagnosticChain",!1),We(n.t,Ii,"EDouble",!0),We(n.u,si,"EDoubleObject",!0),We(n.fb,Ndn,"EEList",!1),We(n.A,xdn,"EEnumerator",!1),We(n.C,cbn,"EFeatureMap",!1),We(n.D,MA,"EFeatureMapEntry",!1),We(n.F,cg,"EFloat",!0),We(n.G,sv,"EFloatObject",!0),We(n.I,ye,"EInt",!0),We(n.J,Gi,"EIntegerObject",!0),We(n.L,iun,"EJavaClass",!0),We(n.M,ki,"EJavaObject",!0),We(n.N,Ra,"ELong",!0),We(n.O,t0,"ELongObject",!0),We(n.P,run,"EMap",!1),We(n.X,ebn,"EResource",!1),We(n.Y,vbn,"EResourceSet",!1),We(n.Z,V2,"EShort",!0),We(n.$,i0,"EShortObject",!0),We(n._,fn,"EString",!0),We(n.cb,$dn,"ETreeIterator",!1),We(n.K,kbn,"EInvocationTargetException",!1),gY(n,ks))}var vy="object",i3="boolean",atn="number",nK="string",eK="function",et=2147483647,ac="java.lang",ky={3:1},yy="com.google.common.base",ur=", ",Czn="%s (%s) must not be negative",Kn={3:1,4:1,5:1},Szn="negative size: ",dtn="no calls to next() since the last call to remove()",Pzn="Optional.of(",gu="null",$m={204:1,51:1},Mn="com.google.common.collect",xm={204:1,51:1,128:1},md={229:1,3:1},Pi={51:1},le="java.util",Xb={85:1},pw={20:1,31:1,16:1},Ff=2063,Nu={20:1,31:1,16:1,21:1},btn={85:1,139:1,133:1},Izn={20:1,31:1,16:1,21:1,87:1},wtn={20:1,31:1,16:1,277:1,21:1,87:1},Hh={51:1,128:1},tK={358:1,44:1},Ozn="AbstractMapEntry",Azn="expectedValuesPerKey",J={3:1,6:1,4:1,5:1},wh=16384,Io={159:1},re={41:1},jy={202:1},Ey={l:4194303,m:4194303,h:524287},iK={253:1,3:1,34:1},Lzn="range unbounded on this side",qh={20:1},Nzn={20:1,16:1},gtn={3:1,20:1,31:1,16:1},Rm={307:1,3:1,20:1,31:1,16:1,15:1,59:1},WS={3:1,4:1,5:1,173:1},Km={3:1,85:1},rK={20:1,16:1,21:1},r3={3:1,20:1,31:1,16:1,21:1},Dzn={20:1,16:1,21:1,87:1},Uh=461845907,Gh=-862048943,My={3:1,6:1,4:1,5:1,173:1},$zn="expectedSize",Gs=1024,W5=1073741824,mw="initialArraySize",G={3:1,6:1,4:1,9:1,5:1},Bm={20:1,31:1,56:1,16:1,15:1},cK="arraySize",xzn={20:1,31:1,56:1,16:1,15:1,59:1},Le={46:1},JS={380:1},fa=1e-4,Wi=-2147483648,Rzn="__noinit__",Il={3:1,103:1,63:1,82:1},Ty="com.google.gwt.core.client.impl",ptn="String",mtn="com.google.gwt.core.client",uK="anonymous",oK="fnStack",vtn="Unknown",gh={201:1,3:1,4:1},d1=1e3,ui=65535,sK="January",fK="February",hK="March",lK="April",c3="May",aK="June",dK="July",bK="August",wK="September",gK="October",pK="November",mK="December",ha=1900,_e={53:1,3:1,4:1},Kzn="Before Christ",Bzn="Anno Domini",vK="Sunday",kK="Monday",yK="Tuesday",jK="Wednesday",EK="Thursday",MK="Friday",TK="Saturday",ktn="com.google.gwt.i18n.shared",Fzn="DateTimeFormat",CK="com.google.gwt.i18n.client",_zn="DefaultDateTimeFormatInfo",Hzn={3:1,4:1,34:1,206:1},u3="com.google.gwt.json.client",ro=4194303,Ol=1048575,Cy=524288,o3=4194304,vd=17592186044416,QS=1e9,Sy=-17592186044416,ytn="java.io",SK={3:1,103:1,77:1,63:1,82:1},qzn={3:1,296:1,82:1},Vb='For input string: "',Pt=1/0,li=-1/0,vw=4096,PK={3:1,4:1,376:1},Yn="org.eclipse.elk.layered",hr=65536,Py=55296,Cr={109:1,3:1,4:1},IK=1e5,Uzn=.3010299956639812,mr=4294967295,Fm="0.0",OK={44:1},_m="Unable to add element to queue",Gzn={3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1},zzn={3:1,20:1,31:1,56:1,16:1,15:1,59:1},Xzn={20:1,16:1,15:1},AK={3:1,50:1},Iy={189:1},n2={3:1,4:1,85:1},jtn={3:1,4:1,20:1,31:1,16:1,49:1,21:1},LK="delete",J5=14901161193847656e-24,Q5=11102230246251565e-32,NK=15525485,Oy=5960464477539063e-23,Etn=16777216,YS=16777215,Mtn=", length: ",Vzn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1},Ttn="subMap: ",Wzn=" less than ",DK={3:1,34:1,22:1,304:1},$K="java.util.function",Y5="java.util.logging",Jzn={3:1,4:1,5:1,856:1},xK="undefined",ai="java.util.stream",Ctn={533:1,687:1},ZS="fromIndex: ",Qzn=" > toIndex: ",Stn=", toIndex: ",Ptn="Index: ",Itn=", Size: ",Hm="org.eclipse.elk.alg.common",De={50:1},Yzn="org.eclipse.elk.alg.common.compaction",Zzn="Scanline/EventHandler",zh="org.eclipse.elk.alg.common.compaction.oned",nXn="CNode belongs to another CGroup.",eXn="ISpacingsHandler/1",RK="The ",KK=" instance has been finished already.",tXn="The direction ",iXn=" is not supported by the CGraph instance.",rXn="OneDimensionalCompactor",cXn="OneDimensionalCompactor/lambda$0$Type",uXn="Quadruplet",oXn="ScanlineConstraintCalculator",sXn="ScanlineConstraintCalculator/ConstraintsScanlineHandler",fXn="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",hXn="ScanlineConstraintCalculator/Timestamp",lXn="ScanlineConstraintCalculator/lambda$0$Type",ph={178:1,46:1},BK="org.eclipse.elk.alg.common.compaction.options",oc="org.eclipse.elk.core.data",Otn="org.eclipse.elk.polyomino.traversalStrategy",Atn="org.eclipse.elk.polyomino.lowLevelSort",Ltn="org.eclipse.elk.polyomino.highLevelSort",Ntn="org.eclipse.elk.polyomino.fill",ms={134:1},FK="polyomino",Z5="org.eclipse.elk.alg.common.networksimplex",Xh={183:1,3:1,4:1},aXn="org.eclipse.elk.alg.common.nodespacing",kd="org.eclipse.elk.alg.common.nodespacing.cellsystem",qm="CENTER",dXn={217:1,336:1},Dtn={3:1,4:1,5:1,603:1},s3="LEFT",f3="RIGHT",$tn="Vertical alignment cannot be null",xtn="BOTTOM",nP="org.eclipse.elk.alg.common.nodespacing.internal",n8="UNDEFINED",_f=.01,Ay="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",bXn="LabelPlacer/lambda$0$Type",wXn="LabelPlacer/lambda$1$Type",gXn="portRatioOrPosition",Um="org.eclipse.elk.alg.common.overlaps",_K="DOWN",mh="org.eclipse.elk.alg.common.polyomino",eP="NORTH",HK="EAST",qK="SOUTH",UK="WEST",tP="org.eclipse.elk.alg.common.polyomino.structures",Rtn="Direction",GK="Grid is only of size ",zK=". Requested point (",XK=") is out of bounds.",iP=" Given center based coordinates were (",Ly="org.eclipse.elk.graph.properties",pXn="IPropertyHolder",Ktn={3:1,96:1,137:1},h3="org.eclipse.elk.alg.common.spore",mXn="org.eclipse.elk.alg.common.utils",yd={205:1},e2="org.eclipse.elk.core",vXn="Connected Components Compaction",kXn="org.eclipse.elk.alg.disco",rP="org.eclipse.elk.alg.disco.graph",VK="org.eclipse.elk.alg.disco.options",Btn="CompactionStrategy",Ftn="org.eclipse.elk.disco.componentCompaction.strategy",_tn="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",Htn="org.eclipse.elk.disco.debug.discoGraph",qtn="org.eclipse.elk.disco.debug.discoPolys",yXn="componentCompaction",jd="org.eclipse.elk.disco",WK="org.eclipse.elk.spacing.componentComponent",JK="org.eclipse.elk.edge.thickness",l3="org.eclipse.elk.aspectRatio",Wb="org.eclipse.elk.padding",t2="org.eclipse.elk.alg.disco.transform",QK=1.5707963267948966,i2=17976931348623157e292,kw={3:1,4:1,5:1,198:1},jXn={3:1,6:1,4:1,5:1,100:1,115:1},YK="org.eclipse.elk.alg.force",Utn="ComponentsProcessor",EXn="ComponentsProcessor/1",Gtn="ElkGraphImporter/lambda$0$Type",Ny="org.eclipse.elk.alg.force.graph",MXn="Component Layout",ztn="org.eclipse.elk.alg.force.model",cP="org.eclipse.elk.force.model",Xtn="org.eclipse.elk.force.iterations",Vtn="org.eclipse.elk.force.repulsivePower",ZK="org.eclipse.elk.force.temperature",vh=.001,nB="org.eclipse.elk.force.repulsion",e8="org.eclipse.elk.alg.force.options",Gm=1.600000023841858,cu="org.eclipse.elk.force",Dy="org.eclipse.elk.priority",yw="org.eclipse.elk.spacing.nodeNode",eB="org.eclipse.elk.spacing.edgeLabel",uP="org.eclipse.elk.randomSeed",t8="org.eclipse.elk.separateConnectedComponents",i8="org.eclipse.elk.interactive",tB="org.eclipse.elk.portConstraints",oP="org.eclipse.elk.edgeLabels.inline",r8="org.eclipse.elk.omitNodeMicroLayout",zm="org.eclipse.elk.nodeSize.fixedGraphSize",a3="org.eclipse.elk.nodeSize.options",r2="org.eclipse.elk.nodeSize.constraints",Xm="org.eclipse.elk.nodeLabels.placement",Vm="org.eclipse.elk.portLabels.placement",$y="org.eclipse.elk.topdownLayout",xy="org.eclipse.elk.topdown.scaleFactor",Ry="org.eclipse.elk.topdown.hierarchicalNodeWidth",Ky="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",Jb="org.eclipse.elk.topdown.nodeType",Wtn="origin",TXn="random",CXn="boundingBox.upLeft",SXn="boundingBox.lowRight",Jtn="org.eclipse.elk.stress.fixed",Qtn="org.eclipse.elk.stress.desiredEdgeLength",Ytn="org.eclipse.elk.stress.dimension",Ztn="org.eclipse.elk.stress.epsilon",nin="org.eclipse.elk.stress.iterationLimit",la="org.eclipse.elk.stress",PXn="ELK Stress",d3="org.eclipse.elk.nodeSize.minimum",sP="org.eclipse.elk.alg.force.stress",IXn="Layered layout",b3="org.eclipse.elk.alg.layered",By="org.eclipse.elk.alg.layered.compaction.components",c8="org.eclipse.elk.alg.layered.compaction.oned",fP="org.eclipse.elk.alg.layered.compaction.oned.algs",Ed="org.eclipse.elk.alg.layered.compaction.recthull",Hf="org.eclipse.elk.alg.layered.components",kh="NONE",ein="MODEL_ORDER",Tc={3:1,6:1,4:1,9:1,5:1,126:1},OXn={3:1,6:1,4:1,5:1,150:1,100:1,115:1},hP="org.eclipse.elk.alg.layered.compound",vt={47:1},Kc="org.eclipse.elk.alg.layered.graph",iB=" -> ",AXn="Not supported by LGraph",tin="Port side is undefined",rB={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},b1={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},LXn={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},NXn=`([{"' \r
`,DXn=`)]}"' \r
`,$Xn="The given string contains parts that cannot be parsed as numbers.",Fy="org.eclipse.elk.core.math",xXn={3:1,4:1,140:1,214:1,423:1},RXn={3:1,4:1,107:1,214:1,423:1},w1="org.eclipse.elk.alg.layered.graph.transform",KXn="ElkGraphImporter",BXn="ElkGraphImporter/lambda$1$Type",FXn="ElkGraphImporter/lambda$2$Type",_Xn="ElkGraphImporter/lambda$4$Type",Qn="org.eclipse.elk.alg.layered.intermediate",HXn="Node margin calculation",qXn="ONE_SIDED_GREEDY_SWITCH",UXn="TWO_SIDED_GREEDY_SWITCH",cB="No implementation is available for the layout processor ",uB="IntermediateProcessorStrategy",oB="Node '",GXn="FIRST_SEPARATE",zXn="LAST_SEPARATE",XXn="Odd port side processing",di="org.eclipse.elk.alg.layered.intermediate.compaction",u8="org.eclipse.elk.alg.layered.intermediate.greedyswitch",Vh="org.eclipse.elk.alg.layered.p3order.counting",_y={230:1},w3="org.eclipse.elk.alg.layered.intermediate.loops",Oo="org.eclipse.elk.alg.layered.intermediate.loops.ordering",aa="org.eclipse.elk.alg.layered.intermediate.loops.routing",iin="org.eclipse.elk.alg.layered.intermediate.preserveorder",yh="org.eclipse.elk.alg.layered.intermediate.wrapping",Cc="org.eclipse.elk.alg.layered.options",sB="INTERACTIVE",rin="GREEDY",VXn="DEPTH_FIRST",WXn="EDGE_LENGTH",JXn="SELF_LOOPS",QXn="firstTryWithInitialOrder",cin="org.eclipse.elk.layered.directionCongruency",uin="org.eclipse.elk.layered.feedbackEdges",lP="org.eclipse.elk.layered.interactiveReferencePoint",oin="org.eclipse.elk.layered.mergeEdges",sin="org.eclipse.elk.layered.mergeHierarchyEdges",fin="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",hin="org.eclipse.elk.layered.portSortingStrategy",lin="org.eclipse.elk.layered.thoroughness",ain="org.eclipse.elk.layered.unnecessaryBendpoints",din="org.eclipse.elk.layered.generatePositionAndLayerIds",fB="org.eclipse.elk.layered.cycleBreaking.strategy",Hy="org.eclipse.elk.layered.layering.strategy",bin="org.eclipse.elk.layered.layering.layerConstraint",win="org.eclipse.elk.layered.layering.layerChoiceConstraint",gin="org.eclipse.elk.layered.layering.layerId",hB="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",lB="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",aB="org.eclipse.elk.layered.layering.nodePromotion.strategy",dB="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",bB="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",o8="org.eclipse.elk.layered.crossingMinimization.strategy",pin="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",wB="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",gB="org.eclipse.elk.layered.crossingMinimization.semiInteractive",min="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",vin="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",kin="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",yin="org.eclipse.elk.layered.crossingMinimization.positionId",jin="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",pB="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",aP="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",c2="org.eclipse.elk.layered.nodePlacement.strategy",dP="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",mB="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",vB="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",kB="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",yB="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",jB="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",Ein="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Min="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",bP="org.eclipse.elk.layered.edgeRouting.splines.mode",wP="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",EB="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",Tin="org.eclipse.elk.layered.spacing.baseValue",Cin="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",Sin="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",Pin="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",Iin="org.eclipse.elk.layered.priority.direction",Oin="org.eclipse.elk.layered.priority.shortness",Ain="org.eclipse.elk.layered.priority.straightness",MB="org.eclipse.elk.layered.compaction.connectedComponents",Lin="org.eclipse.elk.layered.compaction.postCompaction.strategy",Nin="org.eclipse.elk.layered.compaction.postCompaction.constraints",gP="org.eclipse.elk.layered.highDegreeNodes.treatment",TB="org.eclipse.elk.layered.highDegreeNodes.threshold",CB="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Al="org.eclipse.elk.layered.wrapping.strategy",pP="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",mP="org.eclipse.elk.layered.wrapping.correctionFactor",s8="org.eclipse.elk.layered.wrapping.cutting.strategy",SB="org.eclipse.elk.layered.wrapping.cutting.cuts",PB="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",vP="org.eclipse.elk.layered.wrapping.validify.strategy",kP="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",yP="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",jP="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",IB="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",Din="org.eclipse.elk.layered.edgeLabels.sideSelection",$in="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",EP="org.eclipse.elk.layered.considerModelOrder.strategy",xin="org.eclipse.elk.layered.considerModelOrder.portModelOrder",Rin="org.eclipse.elk.layered.considerModelOrder.noModelOrder",OB="org.eclipse.elk.layered.considerModelOrder.components",Kin="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",AB="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",LB="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",NB="layering",YXn="layering.minWidth",ZXn="layering.nodePromotion",Wm="crossingMinimization",MP="org.eclipse.elk.hierarchyHandling",nVn="crossingMinimization.greedySwitch",eVn="nodePlacement",tVn="nodePlacement.bk",iVn="edgeRouting",qy="org.eclipse.elk.edgeRouting",qf="spacing",Bin="priority",Fin="compaction",rVn="compaction.postCompaction",cVn="Specifies whether and how post-process compaction is applied.",_in="highDegreeNodes",Hin="wrapping",uVn="wrapping.cutting",oVn="wrapping.validify",qin="wrapping.multiEdge",DB="edgeLabels",f8="considerModelOrder",Uin="org.eclipse.elk.spacing.commentComment",Gin="org.eclipse.elk.spacing.commentNode",zin="org.eclipse.elk.spacing.edgeEdge",$B="org.eclipse.elk.spacing.edgeNode",Xin="org.eclipse.elk.spacing.labelLabel",Vin="org.eclipse.elk.spacing.labelPortHorizontal",Win="org.eclipse.elk.spacing.labelPortVertical",Jin="org.eclipse.elk.spacing.labelNode",Qin="org.eclipse.elk.spacing.nodeSelfLoop",Yin="org.eclipse.elk.spacing.portPort",Zin="org.eclipse.elk.spacing.individual",nrn="org.eclipse.elk.port.borderOffset",ern="org.eclipse.elk.noLayout",trn="org.eclipse.elk.port.side",Uy="org.eclipse.elk.debugMode",irn="org.eclipse.elk.alignment",rrn="org.eclipse.elk.insideSelfLoops.activate",crn="org.eclipse.elk.insideSelfLoops.yo",xB="org.eclipse.elk.direction",urn="org.eclipse.elk.nodeLabels.padding",orn="org.eclipse.elk.portLabels.nextToPortIfPossible",srn="org.eclipse.elk.portLabels.treatAsGroup",frn="org.eclipse.elk.portAlignment.default",hrn="org.eclipse.elk.portAlignment.north",lrn="org.eclipse.elk.portAlignment.south",arn="org.eclipse.elk.portAlignment.west",drn="org.eclipse.elk.portAlignment.east",TP="org.eclipse.elk.contentAlignment",brn="org.eclipse.elk.junctionPoints",wrn="org.eclipse.elk.edgeLabels.placement",grn="org.eclipse.elk.port.index",prn="org.eclipse.elk.commentBox",mrn="org.eclipse.elk.hypernode",vrn="org.eclipse.elk.port.anchor",RB="org.eclipse.elk.partitioning.activate",KB="org.eclipse.elk.partitioning.partition",CP="org.eclipse.elk.position",krn="org.eclipse.elk.margins",yrn="org.eclipse.elk.spacing.portsSurrounding",SP="org.eclipse.elk.interactiveLayout",dc="org.eclipse.elk.core.util",jrn={3:1,4:1,5:1,601:1},sVn="NETWORK_SIMPLEX",Ern="SIMPLE",vr={106:1,47:1},PP="org.eclipse.elk.alg.layered.p1cycles",Ll="org.eclipse.elk.alg.layered.p2layers",Mrn={413:1,230:1},fVn={846:1,3:1,4:1},Du="org.eclipse.elk.alg.layered.p3order",kr="org.eclipse.elk.alg.layered.p4nodes",hVn={3:1,4:1,5:1,854:1},jh=1e-5,da="org.eclipse.elk.alg.layered.p4nodes.bk",BB="org.eclipse.elk.alg.layered.p5edges",mf="org.eclipse.elk.alg.layered.p5edges.orthogonal",FB="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",_B=1e-6,jw="org.eclipse.elk.alg.layered.p5edges.splines",HB=.09999999999999998,IP=1e-8,lVn=4.71238898038469,Trn=3.141592653589793,Nl="org.eclipse.elk.alg.mrtree",qB=.10000000149011612,OP="SUPER_ROOT",h8="org.eclipse.elk.alg.mrtree.graph",Crn=-17976931348623157e292,Bc="org.eclipse.elk.alg.mrtree.intermediate",aVn="Processor compute fanout",AP={3:1,6:1,4:1,5:1,534:1,100:1,115:1},dVn="Set neighbors in level",Gy="org.eclipse.elk.alg.mrtree.options",bVn="DESCENDANTS",Srn="org.eclipse.elk.mrtree.compaction",Prn="org.eclipse.elk.mrtree.edgeEndTextureLength",Irn="org.eclipse.elk.mrtree.treeLevel",Orn="org.eclipse.elk.mrtree.positionConstraint",Arn="org.eclipse.elk.mrtree.weighting",Lrn="org.eclipse.elk.mrtree.edgeRoutingMode",Nrn="org.eclipse.elk.mrtree.searchOrder",wVn="Position Constraint",uu="org.eclipse.elk.mrtree",gVn="org.eclipse.elk.tree",pVn="Processor arrange level",Jm="org.eclipse.elk.alg.mrtree.p2order",po="org.eclipse.elk.alg.mrtree.p4route",Drn="org.eclipse.elk.alg.radial",Md=6.283185307179586,$rn="Before",xrn=5e-324,LP="After",Rrn="org.eclipse.elk.alg.radial.intermediate",mVn="COMPACTION",UB="org.eclipse.elk.alg.radial.intermediate.compaction",vVn={3:1,4:1,5:1,100:1},Krn="org.eclipse.elk.alg.radial.intermediate.optimization",GB="No implementation is available for the layout option ",l8="org.eclipse.elk.alg.radial.options",Brn="org.eclipse.elk.radial.centerOnRoot",Frn="org.eclipse.elk.radial.orderId",_rn="org.eclipse.elk.radial.radius",NP="org.eclipse.elk.radial.rotate",zB="org.eclipse.elk.radial.compactor",XB="org.eclipse.elk.radial.compactionStepSize",Hrn="org.eclipse.elk.radial.sorter",qrn="org.eclipse.elk.radial.wedgeCriteria",Urn="org.eclipse.elk.radial.optimizationCriteria",VB="org.eclipse.elk.radial.rotation.targetAngle",WB="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",Grn="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",kVn="Compaction",zrn="rotation",es="org.eclipse.elk.radial",yVn="org.eclipse.elk.alg.radial.p1position.wedge",Xrn="org.eclipse.elk.alg.radial.sorting",jVn=5.497787143782138,EVn=3.9269908169872414,MVn=2.356194490192345,TVn="org.eclipse.elk.alg.rectpacking",DP="org.eclipse.elk.alg.rectpacking.intermediate",JB="org.eclipse.elk.alg.rectpacking.options",Vrn="org.eclipse.elk.rectpacking.trybox",Wrn="org.eclipse.elk.rectpacking.currentPosition",Jrn="org.eclipse.elk.rectpacking.desiredPosition",Qrn="org.eclipse.elk.rectpacking.inNewRow",Yrn="org.eclipse.elk.rectpacking.widthApproximation.strategy",Zrn="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",ncn="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",ecn="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",tcn="org.eclipse.elk.rectpacking.packing.strategy",icn="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",rcn="org.eclipse.elk.rectpacking.packing.compaction.iterations",ccn="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",QB="widthApproximation",CVn="Compaction Strategy",SVn="packing.compaction",co="org.eclipse.elk.rectpacking",Qm="org.eclipse.elk.alg.rectpacking.p1widthapproximation",$P="org.eclipse.elk.alg.rectpacking.p2packing",PVn="No Compaction",ucn="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",zy="org.eclipse.elk.alg.rectpacking.util",xP="No implementation available for ",Ew="org.eclipse.elk.alg.spore",Mw="org.eclipse.elk.alg.spore.options",Qb="org.eclipse.elk.sporeCompaction",YB="org.eclipse.elk.underlyingLayoutAlgorithm",ocn="org.eclipse.elk.processingOrder.treeConstruction",scn="org.eclipse.elk.processingOrder.spanningTreeCostFunction",ZB="org.eclipse.elk.processingOrder.preferredRoot",nF="org.eclipse.elk.processingOrder.rootSelection",eF="org.eclipse.elk.structure.structureExtractionStrategy",fcn="org.eclipse.elk.compaction.compactionStrategy",hcn="org.eclipse.elk.compaction.orthogonal",lcn="org.eclipse.elk.overlapRemoval.maxIterations",acn="org.eclipse.elk.overlapRemoval.runScanline",tF="processingOrder",IVn="overlapRemoval",Ym="org.eclipse.elk.sporeOverlap",OVn="org.eclipse.elk.alg.spore.p1structure",iF="org.eclipse.elk.alg.spore.p2processingorder",rF="org.eclipse.elk.alg.spore.p3execution",AVn="Topdown Layout",LVn="Invalid index: ",Zm="org.eclipse.elk.core.alg",u2={341:1},Tw={295:1},NVn="Make sure its type is registered with the ",dcn=" utility class.",nv="true",cF="false",DVn="Couldn't clone property '",Yb=.05,uo="org.eclipse.elk.core.options",$Vn=1.2999999523162842,Zb="org.eclipse.elk.box",bcn="org.eclipse.elk.expandNodes",wcn="org.eclipse.elk.box.packingMode",xVn="org.eclipse.elk.algorithm",RVn="org.eclipse.elk.resolvedAlgorithm",gcn="org.eclipse.elk.bendPoints",iDe="org.eclipse.elk.labelManager",KVn="org.eclipse.elk.scaleFactor",BVn="org.eclipse.elk.childAreaWidth",FVn="org.eclipse.elk.childAreaHeight",_Vn="org.eclipse.elk.animate",HVn="org.eclipse.elk.animTimeFactor",qVn="org.eclipse.elk.layoutAncestors",UVn="org.eclipse.elk.maxAnimTime",GVn="org.eclipse.elk.minAnimTime",zVn="org.eclipse.elk.progressBar",XVn="org.eclipse.elk.validateGraph",VVn="org.eclipse.elk.validateOptions",WVn="org.eclipse.elk.zoomToFit",rDe="org.eclipse.elk.font.name",JVn="org.eclipse.elk.font.size",pcn="org.eclipse.elk.topdown.sizeApproximator",mcn="org.eclipse.elk.topdown.scaleCap",QVn="org.eclipse.elk.edge.type",YVn="partitioning",ZVn="nodeLabels",RP="portAlignment",uF="nodeSize",oF="port",vcn="portLabels",Xy="topdown",nWn="insideSelfLoops",a8="org.eclipse.elk.fixed",KP="org.eclipse.elk.random",kcn={3:1,34:1,22:1,347:1},eWn="port must have a parent node to calculate the port side",tWn="The edge needs to have exactly one edge section. Found: ",d8="org.eclipse.elk.core.util.adapters",ts="org.eclipse.emf.ecore",o2="org.eclipse.elk.graph",iWn="EMapPropertyHolder",rWn="ElkBendPoint",cWn="ElkGraphElement",uWn="ElkConnectableShape",ycn="ElkEdge",oWn="ElkEdgeSection",sWn="EModelElement",fWn="ENamedElement",jcn="ElkLabel",Ecn="ElkNode",Mcn="ElkPort",hWn={94:1,93:1},g3="org.eclipse.emf.common.notify.impl",ba="The feature '",b8="' is not a valid changeable feature",lWn="Expecting null",sF="' is not a valid feature",aWn="The feature ID",dWn=" is not a valid feature ID",kc=32768,bWn={110:1,94:1,93:1,58:1,54:1,99:1},qn="org.eclipse.emf.ecore.impl",Td="org.eclipse.elk.graph.impl",w8="Recursive containment not allowed for ",ev="The datatype '",n0="' is not a valid classifier",fF="The value '",s2={195:1,3:1,4:1},hF="The class '",tv="http://www.eclipse.org/elk/ElkGraph",Tcn="property",g8="value",lF="source",wWn="properties",gWn="identifier",aF="height",dF="width",bF="parent",wF="text",gF="children",pWn="hierarchical",Ccn="sources",pF="targets",Scn="sections",BP="bendPoints",Pcn="outgoingShape",Icn="incomingShape",Ocn="outgoingSections",Acn="incomingSections",or="org.eclipse.emf.common.util",Lcn="Severe implementation error in the Json to ElkGraph importer.",Eh="id",Ui="org.eclipse.elk.graph.json",Ncn="Unhandled parameter types: ",mWn="startPoint",vWn="An edge must have at least one source and one target (edge id: '",iv="').",kWn="Referenced edge section does not exist: ",yWn=" (edge id: '",Dcn="target",jWn="sourcePoint",EWn="targetPoint",FP="group",Qe="name",MWn="connectableShape cannot be null",TWn="edge cannot be null",mF="Passed edge is not 'simple'.",_P="org.eclipse.elk.graph.util",Vy="The 'no duplicates' constraint is violated",vF="targetIndex=",Cd=", size=",kF="sourceIndex=",Mh={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},yF={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},HP="logging",CWn="measureExecutionTime",SWn="parser.parse.1",PWn="parser.parse.2",qP="parser.next.1",jF="parser.next.2",IWn="parser.next.3",OWn="parser.next.4",Sd="parser.factor.1",$cn="parser.factor.2",AWn="parser.factor.3",LWn="parser.factor.4",NWn="parser.factor.5",DWn="parser.factor.6",$Wn="parser.atom.1",xWn="parser.atom.2",RWn="parser.atom.3",xcn="parser.atom.4",EF="parser.atom.5",Rcn="parser.cc.1",UP="parser.cc.2",KWn="parser.cc.3",BWn="parser.cc.5",Kcn="parser.cc.6",Bcn="parser.cc.7",MF="parser.cc.8",FWn="parser.ope.1",_Wn="parser.ope.2",HWn="parser.ope.3",g1="parser.descape.1",qWn="parser.descape.2",UWn="parser.descape.3",GWn="parser.descape.4",zWn="parser.descape.5",is="parser.process.1",XWn="parser.quantifier.1",VWn="parser.quantifier.2",WWn="parser.quantifier.3",JWn="parser.quantifier.4",Fcn="parser.quantifier.5",QWn="org.eclipse.emf.common.notify",_cn={424:1,686:1},YWn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},Wy={378:1,152:1},p8="index=",TF={3:1,4:1,5:1,129:1},ZWn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},Hcn={3:1,6:1,4:1,5:1,198:1},nJn={3:1,4:1,5:1,173:1,379:1},eJn=";/?:@&=+$,",tJn="invalid authority: ",iJn="EAnnotation",rJn="ETypedElement",cJn="EStructuralFeature",uJn="EAttribute",oJn="EClassifier",sJn="EEnumLiteral",fJn="EGenericType",hJn="EOperation",lJn="EParameter",aJn="EReference",dJn="ETypeParameter",Ct="org.eclipse.emf.ecore.util",CF={79:1},qcn={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},bJn="org.eclipse.emf.ecore.util.FeatureMap$Entry",$u=8192,Cw=2048,m8="byte",GP="char",v8="double",k8="float",y8="int",j8="long",E8="short",wJn="java.lang.Object",f2={3:1,4:1,5:1,254:1},Ucn={3:1,4:1,5:1,688:1},gJn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},Qr={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},Jy="mixed",Ke="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",vs="kind",pJn={3:1,4:1,5:1,689:1},Gcn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},zP={20:1,31:1,56:1,16:1,15:1,61:1,71:1},XP={51:1,128:1,287:1},VP={76:1,343:1},WP="The value of type '",JP="' must be of type '",h2=1352,ks="http://www.eclipse.org/emf/2002/Ecore",QP=-32768,e0="constraints",Ji="baseType",mJn="getEStructuralFeature",vJn="getFeatureID",M8="feature",kJn="getOperationID",zcn="operation",yJn="defaultValue",jJn="eTypeParameters",EJn="isInstance",MJn="getEEnumLiteral",TJn="eContainingClass",ze={57:1},CJn={3:1,4:1,5:1,124:1},SJn="org.eclipse.emf.ecore.resource",PJn={94:1,93:1,599:1,2034:1},SF="org.eclipse.emf.ecore.resource.impl",Xcn="unspecified",Qy="simple",YP="attribute",IJn="attributeWildcard",ZP="element",PF="elementWildcard",vf="collapse",IF="itemType",nI="namespace",Yy="##targetNamespace",ys="whiteSpace",Vcn="wildcards",Pd="http://www.eclipse.org/emf/2003/XMLType",OF="##any",rv="uninitialized",Zy="The multiplicity constraint is violated",eI="org.eclipse.emf.ecore.xml.type",OJn="ProcessingInstruction",AJn="SimpleAnyType",LJn="XMLTypeDocumentRoot",oi="org.eclipse.emf.ecore.xml.type.impl",nj="INF",NJn="processing",DJn="ENTITIES_._base",Wcn="minLength",Jcn="ENTITY",tI="NCName",$Jn="IDREFS_._base",Qcn="integer",AF="token",LF="pattern",xJn="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",Ycn="\\i\\c*",RJn="[\\i-[:]][\\c-[:]]*",KJn="nonPositiveInteger",ej="maxInclusive",Zcn="NMTOKEN",BJn="NMTOKENS_._base",nun="nonNegativeInteger",tj="minInclusive",FJn="normalizedString",_Jn="unsignedByte",HJn="unsignedInt",qJn="18446744073709551615",UJn="unsignedShort",GJn="processingInstruction",p1="org.eclipse.emf.ecore.xml.type.internal",cv=1114111,zJn="Internal Error: shorthands: \\u",T8="xml:isDigit",NF="xml:isWord",DF="xml:isSpace",$F="xml:isNameChar",xF="xml:isInitialNameChar",XJn="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",VJn="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",WJn="Private Use",RF="ASSIGNED",KF="\0ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ֏ۿ܀ݏހऀॿঀ૿ఀ౿ಀഀൿༀက႟ႠჿᄀᇿሀᎠ᐀ᙿ ᚠក᠀Ḁỿἀ ⁰₠⃐℀⅏⅐←⇿∀⋿⌀⏿␀⑀①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⼀⿰ 〿ゟ゠ヿㄯ㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒐가힣豈ffﭏﭐ﷿︠︯︰﹏﹐ﹰ\uFEFF\uFEFF",eun="UNASSIGNED",uv={3:1,122:1},JJn="org.eclipse.emf.ecore.xml.type.util",iI={3:1,4:1,5:1,381:1},tun="org.eclipse.xtext.xbase.lib",QJn="Cannot add elements to a Range",YJn="Cannot set elements in a Range",ZJn="Cannot remove elements from a Range",nQn="user.agent",o,rI,BF;y.goog=y.goog||{},y.goog.global=y.goog.global||y,rI={},b(1,null,{},Ku),o.Fb=function(e){return YTn(this,e)},o.Gb=function(){return this.Rm},o.Hb=function(){return lb(this)},o.Ib=function(){var e;return Xa(wo(this))+"@"+(e=mt(this)>>>0,e.toString(16))},o.equals=function(n){return this.Fb(n)},o.hashCode=function(){return this.Hb()},o.toString=function(){return this.Ib()};var eQn,tQn,iQn;b(297,1,{297:1,2124:1},QQ),o.ve=function(e){var t;return t=new QQ,t.i=4,e>1?t.c=kAn(this,e-1):t.c=this,t},o.we=function(){return ll(this),this.b},o.xe=function(){return Xa(this)},o.ye=function(){return ll(this),this.k},o.ze=function(){return(this.i&4)!=0},o.Ae=function(){return(this.i&1)!=0},o.Ib=function(){return sQ(this)},o.i=0;var ki=w(ac,"Object",1),iun=w(ac,"Class",297);b(2096,1,ky),w(yy,"Optional",2096),b(1191,2096,ky,Ht),o.Fb=function(e){return e===this},o.Hb=function(){return 2040732332},o.Ib=function(){return"Optional.absent()"},o.Jb=function(e){return Pe(e),Zv(),FF};var FF;w(yy,"Absent",1191),b(636,1,{},yL),w(yy,"Joiner",636);var cDe=Dt(yy,"Predicate");b(589,1,{178:1,589:1,3:1,46:1},S8n),o.Mb=function(e){return kRn(this,e)},o.Lb=function(e){return kRn(this,e)},o.Fb=function(e){var t;return L(e,589)?(t=u(e,589),Vnn(this.a,t.a)):!1},o.Hb=function(){return iY(this.a)+306654252},o.Ib=function(){return Gje(this.a)},w(yy,"Predicates/AndPredicate",589),b(419,2096,{419:1,3:1},CE),o.Fb=function(e){var t;return L(e,419)?(t=u(e,419),rt(this.a,t.a)):!1},o.Hb=function(){return 1502476572+mt(this.a)},o.Ib=function(){return Pzn+this.a+")"},o.Jb=function(e){return new CE(CT(e.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},w(yy,"Present",419),b(204,1,$m),o.Nb=function(e){_i(this,e)},o.Qb=function(){_jn()},w(Mn,"UnmodifiableIterator",204),b(2076,204,xm),o.Qb=function(){_jn()},o.Rb=function(e){throw T(new Ie)},o.Wb=function(e){throw T(new Ie)},w(Mn,"UnmodifiableListIterator",2076),b(399,2076,xm),o.Ob=function(){return this.c<this.d},o.Sb=function(){return this.c>0},o.Pb=function(){if(this.c>=this.d)throw T(new nc);return this.Xb(this.c++)},o.Tb=function(){return this.c},o.Ub=function(){if(this.c<=0)throw T(new nc);return this.Xb(--this.c)},o.Vb=function(){return this.c-1},o.c=0,o.d=0,w(Mn,"AbstractIndexedListIterator",399),b(713,204,$m),o.Ob=function(){return E$(this)},o.Pb=function(){return tQ(this)},o.e=1,w(Mn,"AbstractIterator",713),b(2084,1,{229:1}),o.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},o.Fb=function(e){return G$(this,e)},o.Hb=function(){return mt(this.Zb())},o.dc=function(){return this.gc()==0},o.ec=function(){return Cp(this)},o.Ib=function(){return Jr(this.Zb())},w(Mn,"AbstractMultimap",2084),b(742,2084,md),o.$b=function(){gC(this)},o._b=function(e){return uEn(this,e)},o.ac=function(){return new h4(this,this.c)},o.ic=function(e){return this.hc()},o.bc=function(){return new Tg(this,this.c)},o.jc=function(){return this.mc(this.hc())},o.kc=function(){return new Tjn(this)},o.lc=function(){return nR(this.c.vc().Nc(),new Xe,64,this.d)},o.cc=function(e){return ot(this,e)},o.fc=function(e){return Ak(this,e)},o.gc=function(){return this.d},o.mc=function(e){return Ln(),new Q3(e)},o.nc=function(){return new Mjn(this)},o.oc=function(){return nR(this.c.Cc().Nc(),new Jt,64,this.d)},o.pc=function(e,t){return new VT(this,e,t,null)},o.d=0,w(Mn,"AbstractMapBasedMultimap",742),b(1696,742,md),o.hc=function(){return new Gc(this.a)},o.jc=function(){return Ln(),Ln(),sr},o.cc=function(e){return u(ot(this,e),15)},o.fc=function(e){return u(Ak(this,e),15)},o.Zb=function(){return Lp(this)},o.Fb=function(e){return G$(this,e)},o.qc=function(e){return u(ot(this,e),15)},o.rc=function(e){return u(Ak(this,e),15)},o.mc=function(e){return CD(u(e,15))},o.pc=function(e,t){return SLn(this,e,u(t,15),null)},w(Mn,"AbstractListMultimap",1696),b(748,1,Pi),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.c.Ob()||this.e.Ob()},o.Pb=function(){var e;return this.e.Ob()||(e=u(this.c.Pb(),44),this.b=e.ld(),this.a=u(e.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},o.Qb=function(){this.e.Qb(),u(as(this.a),16).dc()&&this.c.Qb(),--this.d.d},w(Mn,"AbstractMapBasedMultimap/Itr",748),b(1129,748,Pi,Mjn),o.sc=function(e,t){return t},w(Mn,"AbstractMapBasedMultimap/1",1129),b(1130,1,{},Jt),o.Kb=function(e){return u(e,16).Nc()},w(Mn,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130),b(1131,748,Pi,Tjn),o.sc=function(e,t){return new ib(e,t)},w(Mn,"AbstractMapBasedMultimap/2",1131);var run=Dt(le,"Map");b(2065,1,Xb),o.wc=function(e){f5(this,e)},o.yc=function(e,t,i){return hx(this,e,t,i)},o.$b=function(){this.vc().$b()},o.tc=function(e){return xx(this,e)},o._b=function(e){return!!zZ(this,e,!1)},o.uc=function(e){var t,i,r;for(i=this.vc().Kc();i.Ob();)if(t=u(i.Pb(),44),r=t.md(),x(e)===x(r)||e!=null&&rt(e,r))return!0;return!1},o.Fb=function(e){var t,i,r;if(e===this)return!0;if(!L(e,85)||(r=u(e,85),this.gc()!=r.gc()))return!1;for(i=r.vc().Kc();i.Ob();)if(t=u(i.Pb(),44),!this.tc(t))return!1;return!0},o.xc=function(e){return Fr(zZ(this,e,!1))},o.Hb=function(){return XQ(this.vc())},o.dc=function(){return this.gc()==0},o.ec=function(){return new qa(this)},o.zc=function(e,t){throw T(new Fl("Put not supported on this map"))},o.Ac=function(e){s5(this,e)},o.Bc=function(e){return Fr(zZ(this,e,!0))},o.gc=function(){return this.vc().gc()},o.Ib=function(){return LFn(this)},o.Cc=function(){return new ol(this)},w(le,"AbstractMap",2065),b(2085,2065,Xb),o.bc=function(){return new VE(this)},o.vc=function(){return EIn(this)},o.ec=function(){var e;return e=this.g,e||(this.g=this.bc())},o.Cc=function(){var e;return e=this.i,e||(this.i=new JEn(this))},w(Mn,"Maps/ViewCachingAbstractMap",2085),b(402,2085,Xb,h4),o.xc=function(e){return hme(this,e)},o.Bc=function(e){return N6e(this,e)},o.$b=function(){this.d==this.e.c?this.e.$b():iT(new cW(this))},o._b=function(e){return rKn(this.d,e)},o.Ec=function(){return new P8n(this)},o.Dc=function(){return this.Ec()},o.Fb=function(e){return this===e||rt(this.d,e)},o.Hb=function(){return mt(this.d)},o.ec=function(){return this.e.ec()},o.gc=function(){return this.d.gc()},o.Ib=function(){return Jr(this.d)},w(Mn,"AbstractMapBasedMultimap/AsMap",402);var Ao=Dt(ac,"Iterable");b(31,1,pw),o.Jc=function(e){qi(this,e)},o.Lc=function(){return this.Oc()},o.Nc=function(){return new On(this,0)},o.Oc=function(){return new Cn(null,this.Nc())},o.Fc=function(e){throw T(new Fl("Add not supported on this collection"))},o.Gc=function(e){return Ki(this,e)},o.$b=function(){GW(this)},o.Hc=function(e){return iw(this,e,!1)},o.Ic=function(e){return Ek(this,e)},o.dc=function(){return this.gc()==0},o.Mc=function(e){return iw(this,e,!0)},o.Pc=function(){return wW(this)},o.Qc=function(e){return S5(this,e)},o.Ib=function(){return ca(this)},w(le,"AbstractCollection",31);var js=Dt(le,"Set");b(Ff,31,Nu),o.Nc=function(){return new On(this,1)},o.Fb=function(e){return WKn(this,e)},o.Hb=function(){return XQ(this)},w(le,"AbstractSet",Ff),b(2068,Ff,Nu),w(Mn,"Sets/ImprovedAbstractSet",2068),b(2069,2068,Nu),o.$b=function(){this.Rc().$b()},o.Hc=function(e){return NKn(this,e)},o.dc=function(){return this.Rc().dc()},o.Mc=function(e){var t;return this.Hc(e)&&L(e,44)?(t=u(e,44),this.Rc().ec().Mc(t.ld())):!1},o.gc=function(){return this.Rc().gc()},w(Mn,"Maps/EntrySet",2069),b(1127,2069,Nu,P8n),o.Hc=function(e){return kY(this.a.d.vc(),e)},o.Kc=function(){return new cW(this.a)},o.Rc=function(){return this.a},o.Mc=function(e){var t;return kY(this.a.d.vc(),e)?(t=u(as(u(e,44)),44),Y3e(this.a.e,t.ld()),!0):!1},o.Nc=function(){return D7(this.a.d.vc().Nc(),new I8n(this.a))},w(Mn,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127),b(1128,1,{},I8n),o.Kb=function(e){return TNn(this.a,u(e,44))},w(Mn,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128),b(746,1,Pi,cW),o.Nb=function(e){_i(this,e)},o.Pb=function(){var e;return e=u(this.b.Pb(),44),this.a=u(e.md(),16),TNn(this.c,e)},o.Ob=function(){return this.b.Ob()},o.Qb=function(){v4(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},w(Mn,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746),b(542,2068,Nu,VE),o.$b=function(){this.b.$b()},o.Hc=function(e){return this.b._b(e)},o.Jc=function(e){Pe(e),this.b.wc(new z8n(e))},o.dc=function(){return this.b.dc()},o.Kc=function(){return new n6(this.b.vc().Kc())},o.Mc=function(e){return this.b._b(e)?(this.b.Bc(e),!0):!1},o.gc=function(){return this.b.gc()},w(Mn,"Maps/KeySet",542),b(327,542,Nu,Tg),o.$b=function(){var e;iT((e=this.b.vc().Kc(),new Iz(this,e)))},o.Ic=function(e){return this.b.ec().Ic(e)},o.Fb=function(e){return this===e||rt(this.b.ec(),e)},o.Hb=function(){return mt(this.b.ec())},o.Kc=function(){var e;return e=this.b.vc().Kc(),new Iz(this,e)},o.Mc=function(e){var t,i;return i=0,t=u(this.b.Bc(e),16),t&&(i=t.gc(),t.$b(),this.a.d-=i),i>0},o.Nc=function(){return this.b.ec().Nc()},w(Mn,"AbstractMapBasedMultimap/KeySet",327),b(747,1,Pi,Iz),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.c.Ob()},o.Pb=function(){return this.a=u(this.c.Pb(),44),this.a.ld()},o.Qb=function(){var e;v4(!!this.a),e=u(this.a.md(),16),this.c.Qb(),this.b.a.d-=e.gc(),e.$b(),this.a=null},w(Mn,"AbstractMapBasedMultimap/KeySet/1",747),b(503,402,{85:1,133:1},S7),o.bc=function(){return this.Sc()},o.ec=function(){return this.Uc()},o.Sc=function(){return new e7(this.c,this.Wc())},o.Tc=function(){return this.Wc().Tc()},o.Uc=function(){var e;return e=this.b,e||(this.b=this.Sc())},o.Vc=function(){return this.Wc().Vc()},o.Wc=function(){return u(this.d,133)},w(Mn,"AbstractMapBasedMultimap/SortedAsMap",503),b(446,503,btn,D6),o.bc=function(){return new f4(this.a,u(u(this.d,133),139))},o.Sc=function(){return new f4(this.a,u(u(this.d,133),139))},o.ec=function(){var e;return e=this.b,u(e||(this.b=new f4(this.a,u(u(this.d,133),139))),277)},o.Uc=function(){var e;return e=this.b,u(e||(this.b=new f4(this.a,u(u(this.d,133),139))),277)},o.Wc=function(){return u(u(this.d,133),139)},o.Xc=function(e){return u(u(this.d,133),139).Xc(e)},o.Yc=function(e){return u(u(this.d,133),139).Yc(e)},o.Zc=function(e,t){return new D6(this.a,u(u(this.d,133),139).Zc(e,t))},o.$c=function(e){return u(u(this.d,133),139).$c(e)},o._c=function(e){return u(u(this.d,133),139)._c(e)},o.ad=function(e,t){return new D6(this.a,u(u(this.d,133),139).ad(e,t))},w(Mn,"AbstractMapBasedMultimap/NavigableAsMap",446),b(502,327,Izn,e7),o.Nc=function(){return this.b.ec().Nc()},w(Mn,"AbstractMapBasedMultimap/SortedKeySet",502),b(401,502,wtn,f4),w(Mn,"AbstractMapBasedMultimap/NavigableKeySet",401),b(551,31,pw,VT),o.Fc=function(e){var t,i;return eo(this),i=this.d.dc(),t=this.d.Fc(e),t&&(++this.f.d,i&&A7(this)),t},o.Gc=function(e){var t,i,r;return e.dc()?!1:(r=(eo(this),this.d.gc()),t=this.d.Gc(e),t&&(i=this.d.gc(),this.f.d+=i-r,r==0&&A7(this)),t)},o.$b=function(){var e;e=(eo(this),this.d.gc()),e!=0&&(this.d.$b(),this.f.d-=e,fT(this))},o.Hc=function(e){return eo(this),this.d.Hc(e)},o.Ic=function(e){return eo(this),this.d.Ic(e)},o.Fb=function(e){return e===this?!0:(eo(this),rt(this.d,e))},o.Hb=function(){return eo(this),mt(this.d)},o.Kc=function(){return eo(this),new HV(this)},o.Mc=function(e){var t;return eo(this),t=this.d.Mc(e),t&&(--this.f.d,fT(this)),t},o.gc=function(){return KTn(this)},o.Nc=function(){return eo(this),this.d.Nc()},o.Ib=function(){return eo(this),Jr(this.d)},w(Mn,"AbstractMapBasedMultimap/WrappedCollection",551);var rs=Dt(le,"List");b(744,551,{20:1,31:1,16:1,15:1},mW),o.jd=function(e){ud(this,e)},o.Nc=function(){return eo(this),this.d.Nc()},o.bd=function(e,t){var i;eo(this),i=this.d.dc(),u(this.d,15).bd(e,t),++this.a.d,i&&A7(this)},o.cd=function(e,t){var i,r,c;return t.dc()?!1:(c=(eo(this),this.d.gc()),i=u(this.d,15).cd(e,t),i&&(r=this.d.gc(),this.a.d+=r-c,c==0&&A7(this)),i)},o.Xb=function(e){return eo(this),u(this.d,15).Xb(e)},o.dd=function(e){return eo(this),u(this.d,15).dd(e)},o.ed=function(){return eo(this),new bCn(this)},o.fd=function(e){return eo(this),new ROn(this,e)},o.gd=function(e){var t;return eo(this),t=u(this.d,15).gd(e),--this.a.d,fT(this),t},o.hd=function(e,t){return eo(this),u(this.d,15).hd(e,t)},o.kd=function(e,t){return eo(this),SLn(this.a,this.e,u(this.d,15).kd(e,t),this.b?this.b:this)},w(Mn,"AbstractMapBasedMultimap/WrappedList",744),b(1126,744,{20:1,31:1,16:1,15:1,59:1},iSn),w(Mn,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126),b(628,1,Pi,HV),o.Nb=function(e){_i(this,e)},o.Ob=function(){return O4(this),this.b.Ob()},o.Pb=function(){return O4(this),this.b.Pb()},o.Qb=function(){_Cn(this)},w(Mn,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628),b(745,628,Hh,bCn,ROn),o.Qb=function(){_Cn(this)},o.Rb=function(e){var t;t=KTn(this.a)==0,(O4(this),u(this.b,128)).Rb(e),++this.a.a.d,t&&A7(this.a)},o.Sb=function(){return(O4(this),u(this.b,128)).Sb()},o.Tb=function(){return(O4(this),u(this.b,128)).Tb()},o.Ub=function(){return(O4(this),u(this.b,128)).Ub()},o.Vb=function(){return(O4(this),u(this.b,128)).Vb()},o.Wb=function(e){(O4(this),u(this.b,128)).Wb(e)},w(Mn,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745),b(743,551,Izn,oV),o.Nc=function(){return eo(this),this.d.Nc()},w(Mn,"AbstractMapBasedMultimap/WrappedSortedSet",743),b(1125,743,wtn,fCn),w(Mn,"AbstractMapBasedMultimap/WrappedNavigableSet",1125),b(1124,551,Nu,MSn),o.Nc=function(){return eo(this),this.d.Nc()},w(Mn,"AbstractMapBasedMultimap/WrappedSet",1124),b(1133,1,{},Xe),o.Kb=function(e){return s4e(u(e,44))},w(Mn,"AbstractMapBasedMultimap/lambda$1$Type",1133),b(1132,1,{},N8n),o.Kb=function(e){return new ib(this.a,e)},w(Mn,"AbstractMapBasedMultimap/lambda$2$Type",1132);var Id=Dt(le,"Map/Entry");b(358,1,tK),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),sh(this.ld(),t.ld())&&sh(this.md(),t.md())):!1},o.Hb=function(){var e,t;return e=this.ld(),t=this.md(),(e==null?0:mt(e))^(t==null?0:mt(t))},o.nd=function(e){throw T(new Ie)},o.Ib=function(){return this.ld()+"="+this.md()},w(Mn,Ozn,358),b(2086,31,pw),o.$b=function(){this.od().$b()},o.Hc=function(e){var t;return L(e,44)?(t=u(e,44),Ipe(this.od(),t.ld(),t.md())):!1},o.Mc=function(e){var t;return L(e,44)?(t=u(e,44),sLn(this.od(),t.ld(),t.md())):!1},o.gc=function(){return this.od().d},w(Mn,"Multimaps/Entries",2086),b(749,2086,pw,sG),o.Kc=function(){return this.a.kc()},o.od=function(){return this.a},o.Nc=function(){return this.a.lc()},w(Mn,"AbstractMultimap/Entries",749),b(750,749,Nu,uz),o.Nc=function(){return this.a.lc()},o.Fb=function(e){return ann(this,e)},o.Hb=function(){return vxn(this)},w(Mn,"AbstractMultimap/EntrySet",750),b(751,31,pw,fG),o.$b=function(){this.a.$b()},o.Hc=function(e){return S6e(this.a,e)},o.Kc=function(){return this.a.nc()},o.gc=function(){return this.a.d},o.Nc=function(){return this.a.oc()},w(Mn,"AbstractMultimap/Values",751),b(2087,31,{849:1,20:1,31:1,16:1}),o.Jc=function(e){Pe(e),Sg(this).Jc(new Y8n(e))},o.Nc=function(){var e;return e=Sg(this).Nc(),nR(e,new Tf,64|e.yd()&1296,this.a.d)},o.Fc=function(e){return bz(),!0},o.Gc=function(e){return Pe(this),Pe(e),L(e,552)?Lpe(u(e,849)):!e.dc()&&b$(this,e.Kc())},o.Hc=function(e){var t;return t=u(tw(Lp(this.a),e),16),(t?t.gc():0)>0},o.Fb=function(e){return nTe(this,e)},o.Hb=function(){return mt(Sg(this))},o.dc=function(){return Sg(this).dc()},o.Mc=function(e){return G_n(this,e,1)>0},o.Ib=function(){return Jr(Sg(this))},w(Mn,"AbstractMultiset",2087),b(2089,2068,Nu),o.$b=function(){gC(this.a.a)},o.Hc=function(e){var t,i;return L(e,504)?(i=u(e,425),u(i.a.md(),16).gc()<=0?!1:(t=$An(this.a,i.a.ld()),t==u(i.a.md(),16).gc())):!1},o.Mc=function(e){var t,i,r,c;return L(e,504)&&(i=u(e,425),t=i.a.ld(),r=u(i.a.md(),16).gc(),r!=0)?(c=this.a,UEe(c,t,r)):!1},w(Mn,"Multisets/EntrySet",2089),b(1139,2089,Nu,D8n),o.Kc=function(){return new Ojn(EIn(Lp(this.a.a)).Kc())},o.gc=function(){return Lp(this.a.a).gc()},w(Mn,"AbstractMultiset/EntrySet",1139),b(627,742,md),o.hc=function(){return this.pd()},o.jc=function(){return this.qd()},o.cc=function(e){return this.rd(e)},o.fc=function(e){return this.sd(e)},o.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},o.qd=function(){return Ln(),Ln(),hI},o.Fb=function(e){return G$(this,e)},o.rd=function(e){return u(ot(this,e),21)},o.sd=function(e){return u(Ak(this,e),21)},o.mc=function(e){return Ln(),new r4(u(e,21))},o.pc=function(e,t){return new MSn(this,e,u(t,21))},w(Mn,"AbstractSetMultimap",627),b(1723,627,md),o.hc=function(){return new Ul(this.b)},o.pd=function(){return new Ul(this.b)},o.jc=function(){return BW(new Ul(this.b))},o.qd=function(){return BW(new Ul(this.b))},o.cc=function(e){return u(u(ot(this,e),21),87)},o.rd=function(e){return u(u(ot(this,e),21),87)},o.fc=function(e){return u(u(Ak(this,e),21),87)},o.sd=function(e){return u(u(Ak(this,e),21),87)},o.mc=function(e){return L(e,277)?BW(u(e,277)):(Ln(),new zX(u(e,87)))},o.Zb=function(){var e;return e=this.f,e||(this.f=L(this.c,139)?new D6(this,u(this.c,139)):L(this.c,133)?new S7(this,u(this.c,133)):new h4(this,this.c))},o.pc=function(e,t){return L(t,277)?new fCn(this,e,u(t,277)):new oV(this,e,u(t,87))},w(Mn,"AbstractSortedSetMultimap",1723),b(1724,1723,md),o.Zb=function(){var e;return e=this.f,u(u(e||(this.f=L(this.c,139)?new D6(this,u(this.c,139)):L(this.c,133)?new S7(this,u(this.c,133)):new h4(this,this.c)),133),139)},o.ec=function(){var e;return e=this.i,u(u(e||(this.i=L(this.c,139)?new f4(this,u(this.c,139)):L(this.c,133)?new e7(this,u(this.c,133)):new Tg(this,this.c)),87),277)},o.bc=function(){return L(this.c,139)?new f4(this,u(this.c,139)):L(this.c,133)?new e7(this,u(this.c,133)):new Tg(this,this.c)},w(Mn,"AbstractSortedKeySortedSetMultimap",1724),b(2109,1,{2046:1}),o.Fb=function(e){return Tke(this,e)},o.Hb=function(){var e;return XQ((e=this.g,e||(this.g=new zA(this))))},o.Ib=function(){var e;return LFn((e=this.f,e||(this.f=new HX(this))))},w(Mn,"AbstractTable",2109),b(679,Ff,Nu,zA),o.$b=function(){Hjn()},o.Hc=function(e){var t,i;return L(e,479)?(t=u(e,697),i=u(tw(XIn(this.a),_1(t.c.e,t.b)),85),!!i&&kY(i.vc(),new ib(_1(t.c.c,t.a),Bp(t.c,t.b,t.a)))):!1},o.Kc=function(){return Ige(this.a)},o.Mc=function(e){var t,i;return L(e,479)?(t=u(e,697),i=u(tw(XIn(this.a),_1(t.c.e,t.b)),85),!!i&&u5e(i.vc(),new ib(_1(t.c.c,t.a),Bp(t.c,t.b,t.a)))):!1},o.gc=function(){return JPn(this.a)},o.Nc=function(){return $pe(this.a)},w(Mn,"AbstractTable/CellSet",679),b(2025,31,pw,x8n),o.$b=function(){Hjn()},o.Hc=function(e){return pye(this.a,e)},o.Kc=function(){return Oge(this.a)},o.gc=function(){return JPn(this.a)},o.Nc=function(){return oLn(this.a)},w(Mn,"AbstractTable/Values",2025),b(1697,1696,md),w(Mn,"ArrayListMultimapGwtSerializationDependencies",1697),b(520,1697,md,ML,oJ),o.hc=function(){return new Gc(this.a)},o.a=0,w(Mn,"ArrayListMultimap",520),b(678,2109,{678:1,2046:1,3:1},rHn),w(Mn,"ArrayTable",678),b(2021,399,xm,HCn),o.Xb=function(e){return new YQ(this.a,e)},w(Mn,"ArrayTable/1",2021),b(2022,1,{},O8n),o.td=function(e){return new YQ(this.a,e)},w(Mn,"ArrayTable/1methodref$getCell$Type",2022),b(2110,1,{697:1}),o.Fb=function(e){var t;return e===this?!0:L(e,479)?(t=u(e,697),sh(_1(this.c.e,this.b),_1(t.c.e,t.b))&&sh(_1(this.c.c,this.a),_1(t.c.c,t.a))&&sh(Bp(this.c,this.b,this.a),Bp(t.c,t.b,t.a))):!1},o.Hb=function(){return Ok(S(C(ki,1),Kn,1,5,[_1(this.c.e,this.b),_1(this.c.c,this.a),Bp(this.c,this.b,this.a)]))},o.Ib=function(){return"("+_1(this.c.e,this.b)+","+_1(this.c.c,this.a)+")="+Bp(this.c,this.b,this.a)},w(Mn,"Tables/AbstractCell",2110),b(479,2110,{479:1,697:1},YQ),o.a=0,o.b=0,o.d=0,w(Mn,"ArrayTable/2",479),b(2024,1,{},A8n),o.td=function(e){return LDn(this.a,e)},w(Mn,"ArrayTable/2methodref$getValue$Type",2024),b(2023,399,xm,qCn),o.Xb=function(e){return LDn(this.a,e)},w(Mn,"ArrayTable/3",2023),b(2077,2065,Xb),o.$b=function(){iT(this.kc())},o.vc=function(){return new G8n(this)},o.lc=function(){return new SOn(this.kc(),this.gc())},w(Mn,"Maps/IteratorBasedAbstractMap",2077),b(842,2077,Xb),o.$b=function(){throw T(new Ie)},o._b=function(e){return oEn(this.c,e)},o.kc=function(){return new UCn(this,this.c.b.c.gc())},o.lc=function(){return XN(this.c.b.c.gc(),16,new L8n(this))},o.xc=function(e){var t;return t=u($6(this.c,e),17),t?this.vd(t.a):null},o.dc=function(){return this.c.b.c.dc()},o.ec=function(){return eD(this.c)},o.zc=function(e,t){var i;if(i=u($6(this.c,e),17),!i)throw T(new Gn(this.ud()+" "+e+" not in "+eD(this.c)));return this.wd(i.a,t)},o.Bc=function(e){throw T(new Ie)},o.gc=function(){return this.c.b.c.gc()},w(Mn,"ArrayTable/ArrayMap",842),b(2020,1,{},L8n),o.td=function(e){return WIn(this.a,e)},w(Mn,"ArrayTable/ArrayMap/0methodref$getEntry$Type",2020),b(2018,358,tK,NEn),o.ld=function(){return q1e(this.a,this.b)},o.md=function(){return this.a.vd(this.b)},o.nd=function(e){return this.a.wd(this.b,e)},o.b=0,w(Mn,"ArrayTable/ArrayMap/1",2018),b(2019,399,xm,UCn),o.Xb=function(e){return WIn(this.a,e)},w(Mn,"ArrayTable/ArrayMap/2",2019),b(2017,842,Xb,xIn),o.ud=function(){return"Column"},o.vd=function(e){return Bp(this.b,this.a,e)},o.wd=function(e,t){return cRn(this.b,this.a,e,t)},o.a=0,w(Mn,"ArrayTable/Row",2017),b(843,842,Xb,HX),o.vd=function(e){return new xIn(this.a,e)},o.zc=function(e,t){return u(t,85),hhe()},o.wd=function(e,t){return u(t,85),lhe()},o.ud=function(){return"Row"},w(Mn,"ArrayTable/RowMap",843),b(1157,1,Io,DEn),o.Ad=function(e){return(this.a.yd()&-262&e)!=0},o.yd=function(){return this.a.yd()&-262},o.zd=function(){return this.a.zd()},o.Nb=function(e){this.a.Nb(new xEn(e,this.b))},o.Bd=function(e){return this.a.Bd(new $En(e,this.b))},w(Mn,"CollectSpliterators/1",1157),b(1158,1,re,$En),o.Cd=function(e){this.a.Cd(this.b.Kb(e))},w(Mn,"CollectSpliterators/1/lambda$0$Type",1158),b(1159,1,re,xEn),o.Cd=function(e){this.a.Cd(this.b.Kb(e))},w(Mn,"CollectSpliterators/1/lambda$1$Type",1159),b(1154,1,Io,cPn),o.Ad=function(e){return((16464|this.b)&e)!=0},o.yd=function(){return 16464|this.b},o.zd=function(){return this.a.zd()},o.Nb=function(e){this.a.Qe(new KEn(e,this.c))},o.Bd=function(e){return this.a.Re(new REn(e,this.c))},o.b=0,w(Mn,"CollectSpliterators/1WithCharacteristics",1154),b(1155,1,jy,REn),o.Dd=function(e){this.a.Cd(this.b.td(e))},w(Mn,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1155),b(1156,1,jy,KEn),o.Dd=function(e){this.a.Cd(this.b.td(e))},w(Mn,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1156),b(1150,1,Io),o.Ad=function(e){return(this.a&e)!=0},o.yd=function(){return this.a},o.zd=function(){return this.e&&(this.b=OX(this.b,this.e.zd())),OX(this.b,0)},o.Nb=function(e){this.e&&(this.e.Nb(e),this.e=null),this.c.Nb(new BEn(this,e)),this.b=0},o.Bd=function(e){for(;;){if(this.e&&this.e.Bd(e))return M6(this.b,Ey)&&(this.b=bs(this.b,1)),!0;if(this.e=null,!this.c.Bd(new R8n(this)))return!1}},o.a=0,o.b=0,w(Mn,"CollectSpliterators/FlatMapSpliterator",1150),b(1152,1,re,R8n),o.Cd=function(e){_ae(this.a,e)},w(Mn,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1152),b(1153,1,re,BEn),o.Cd=function(e){age(this.a,this.b,e)},w(Mn,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1153),b(1151,1150,Io,TLn),w(Mn,"CollectSpliterators/FlatMapSpliteratorOfObject",1151),b(253,1,iK),o.Fd=function(e){return this.Ed(u(e,253))},o.Ed=function(e){var t;return e==(bL(),HF)?1:e==(dL(),_F)?-1:(t=(YM(),mk(this.a,e.a)),t!=0?t:L(this,526)==L(e,526)?0:L(this,526)?1:-1)},o.Id=function(){return this.a},o.Fb=function(e){return mZ(this,e)},w(Mn,"Cut",253),b(1823,253,iK,Ejn),o.Ed=function(e){return e==this?0:1},o.Gd=function(e){throw T(new _G)},o.Hd=function(e){e.a+="+∞)"},o.Id=function(){throw T(new Ar(Lzn))},o.Hb=function(){return fl(),iZ(this)},o.Jd=function(e){return!1},o.Ib=function(){return"+∞"};var _F;w(Mn,"Cut/AboveAll",1823),b(526,253,{253:1,526:1,3:1,34:1},JCn),o.Gd=function(e){Lc((e.a+="(",e),this.a)},o.Hd=function(e){z1(Lc(e,this.a),93)},o.Hb=function(){return~mt(this.a)},o.Jd=function(e){return YM(),mk(this.a,e)<0},o.Ib=function(){return"/"+this.a+"\\"},w(Mn,"Cut/AboveValue",526),b(1822,253,iK,jjn),o.Ed=function(e){return e==this?0:-1},o.Gd=function(e){e.a+="(-∞"},o.Hd=function(e){throw T(new _G)},o.Id=function(){throw T(new Ar(Lzn))},o.Hb=function(){return fl(),iZ(this)},o.Jd=function(e){return!0},o.Ib=function(){return"-∞"};var HF;w(Mn,"Cut/BelowAll",1822),b(1824,253,iK,QCn),o.Gd=function(e){Lc((e.a+="[",e),this.a)},o.Hd=function(e){z1(Lc(e,this.a),41)},o.Hb=function(){return mt(this.a)},o.Jd=function(e){return YM(),mk(this.a,e)<=0},o.Ib=function(){return"\\"+this.a+"/"},w(Mn,"Cut/BelowValue",1824),b(547,1,qh),o.Jc=function(e){qi(this,e)},o.Ib=function(){return S5e(u(CT(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},w(Mn,"FluentIterable",547),b(442,547,qh,S6),o.Kc=function(){return new ie(ce(this.a.Kc(),new En))},w(Mn,"FluentIterable/2",442),b(1059,547,qh,cCn),o.Kc=function(){return $h(this)},w(Mn,"FluentIterable/3",1059),b(724,399,xm,qX),o.Xb=function(e){return this.a[e].Kc()},w(Mn,"FluentIterable/3/1",724),b(2070,1,{}),o.Ib=function(){return Jr(this.Kd().b)},w(Mn,"ForwardingObject",2070),b(2071,2070,Nzn),o.Kd=function(){return this.Ld()},o.Jc=function(e){qi(this,e)},o.Lc=function(){return this.Oc()},o.Nc=function(){return new On(this,0)},o.Oc=function(){return new Cn(null,this.Nc())},o.Fc=function(e){return this.Ld(),fEn()},o.Gc=function(e){return this.Ld(),hEn()},o.$b=function(){this.Ld(),lEn()},o.Hc=function(e){return this.Ld().Hc(e)},o.Ic=function(e){return this.Ld().Ic(e)},o.dc=function(){return this.Ld().b.dc()},o.Kc=function(){return this.Ld().Kc()},o.Mc=function(e){return this.Ld(),aEn()},o.gc=function(){return this.Ld().b.gc()},o.Pc=function(){return this.Ld().Pc()},o.Qc=function(e){return this.Ld().Qc(e)},w(Mn,"ForwardingCollection",2071),b(2078,31,gtn),o.Kc=function(){return this.Od()},o.Fc=function(e){throw T(new Ie)},o.Gc=function(e){throw T(new Ie)},o.Md=function(){var e;return e=this.c,e||(this.c=this.Nd())},o.$b=function(){throw T(new Ie)},o.Hc=function(e){return e!=null&&iw(this,e,!1)},o.Nd=function(){switch(this.gc()){case 0:return mb(),mb(),qF;case 1:return mb(),new VN(Pe(this.Od().Pb()));default:return new jW(this,this.Pc())}},o.Mc=function(e){throw T(new Ie)},w(Mn,"ImmutableCollection",2078),b(727,2078,gtn,BG),o.Kc=function(){return Fp(this.a.Kc())},o.Hc=function(e){return e!=null&&this.a.Hc(e)},o.Ic=function(e){return this.a.Ic(e)},o.dc=function(){return this.a.dc()},o.Od=function(){return Fp(this.a.Kc())},o.gc=function(){return this.a.gc()},o.Pc=function(){return this.a.Pc()},o.Qc=function(e){return this.a.Qc(e)},o.Ib=function(){return Jr(this.a)},w(Mn,"ForwardingImmutableCollection",727),b(307,2078,Rm),o.Kc=function(){return this.Od()},o.ed=function(){return this.Pd(0)},o.fd=function(e){return this.Pd(e)},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.kd=function(e,t){return this.Qd(e,t)},o.bd=function(e,t){throw T(new Ie)},o.cd=function(e,t){throw T(new Ie)},o.Md=function(){return this},o.Fb=function(e){return HMe(this,e)},o.Hb=function(){return xve(this)},o.dd=function(e){return e==null?-1:c7e(this,e)},o.Od=function(){return this.Pd(0)},o.Pd=function(e){return CN(this,e)},o.gd=function(e){throw T(new Ie)},o.hd=function(e,t){throw T(new Ie)},o.Qd=function(e,t){var i;return RC((i=new WEn(this),new Jl(i,e,t)))};var qF;w(Mn,"ImmutableList",307),b(2105,307,Rm),o.Kc=function(){return Fp(this.Rd().Kc())},o.kd=function(e,t){return RC(this.Rd().kd(e,t))},o.Hc=function(e){return e!=null&&this.Rd().Hc(e)},o.Ic=function(e){return this.Rd().Ic(e)},o.Fb=function(e){return rt(this.Rd(),e)},o.Xb=function(e){return _1(this,e)},o.Hb=function(){return mt(this.Rd())},o.dd=function(e){return this.Rd().dd(e)},o.dc=function(){return this.Rd().dc()},o.Od=function(){return Fp(this.Rd().Kc())},o.gc=function(){return this.Rd().gc()},o.Qd=function(e,t){return RC(this.Rd().kd(e,t))},o.Pc=function(){return this.Rd().Qc(F(ki,Kn,1,this.Rd().gc(),5,1))},o.Qc=function(e){return this.Rd().Qc(e)},o.Ib=function(){return Jr(this.Rd())},w(Mn,"ForwardingImmutableList",2105),b(729,1,Km),o.vc=function(){return Ja(this)},o.wc=function(e){f5(this,e)},o.ec=function(){return eD(this)},o.yc=function(e,t,i){return hx(this,e,t,i)},o.Cc=function(){return this.Vd()},o.$b=function(){throw T(new Ie)},o._b=function(e){return this.xc(e)!=null},o.uc=function(e){return this.Vd().Hc(e)},o.Td=function(){return new Ayn(this)},o.Ud=function(){return new Lyn(this)},o.Fb=function(e){return P6e(this,e)},o.Hb=function(){return Ja(this).Hb()},o.dc=function(){return this.gc()==0},o.zc=function(e,t){return fhe()},o.Bc=function(e){throw T(new Ie)},o.Ib=function(){return wje(this)},o.Vd=function(){return this.e?this.e:this.e=this.Ud()},o.c=null,o.d=null,o.e=null;var rQn;w(Mn,"ImmutableMap",729),b(730,729,Km),o._b=function(e){return oEn(this,e)},o.uc=function(e){return eMn(this.b,e)},o.Sd=function(){return eKn(new $8n(this))},o.Td=function(){return eKn(pOn(this.b))},o.Ud=function(){return oh(),new BG(gOn(this.b))},o.Fb=function(e){return tMn(this.b,e)},o.xc=function(e){return $6(this,e)},o.Hb=function(){return mt(this.b.c)},o.dc=function(){return this.b.c.dc()},o.gc=function(){return this.b.c.gc()},o.Ib=function(){return Jr(this.b.c)},w(Mn,"ForwardingImmutableMap",730),b(2072,2071,rK),o.Kd=function(){return this.Wd()},o.Ld=function(){return this.Wd()},o.Nc=function(){return new On(this,1)},o.Fb=function(e){return e===this||this.Wd().Fb(e)},o.Hb=function(){return this.Wd().Hb()},w(Mn,"ForwardingSet",2072),b(1085,2072,rK,$8n),o.Kd=function(){return P4(this.a.b)},o.Ld=function(){return P4(this.a.b)},o.Hc=function(e){if(L(e,44)&&u(e,44).ld()==null)return!1;try{return nMn(P4(this.a.b),e)}catch(t){if(t=Ot(t),L(t,212))return!1;throw T(t)}},o.Wd=function(){return P4(this.a.b)},o.Qc=function(e){var t;return t=eAn(P4(this.a.b),e),P4(this.a.b).b.gc()<t.length&&$t(t,P4(this.a.b).b.gc(),null),t},w(Mn,"ForwardingImmutableMap/1",1085),b(2079,2078,r3),o.Kc=function(){return this.Od()},o.Nc=function(){return new On(this,1)},o.Fb=function(e){return ann(this,e)},o.Hb=function(){return vxn(this)},w(Mn,"ImmutableSet",2079),b(719,2079,r3),o.Kc=function(){return Fp(new J3(this.a.b.Kc()))},o.Hc=function(e){return e!=null&&t7(this.a,e)},o.Ic=function(e){return YEn(this.a,e)},o.Hb=function(){return mt(this.a.b)},o.dc=function(){return this.a.b.dc()},o.Od=function(){return Fp(new J3(this.a.b.Kc()))},o.gc=function(){return this.a.b.gc()},o.Pc=function(){return this.a.b.Pc()},o.Qc=function(e){return ZEn(this.a,e)},o.Ib=function(){return Jr(this.a.b)},w(Mn,"ForwardingImmutableSet",719),b(2073,2072,Dzn),o.Kd=function(){return this.b},o.Ld=function(){return this.b},o.Wd=function(){return this.b},o.Nc=function(){return new cM(this)},w(Mn,"ForwardingSortedSet",2073),b(543,2077,Km,oS),o.Ac=function(e){s5(this,e)},o.Cc=function(){var e;return e=this.d,new vN(e||(this.d=new VA(this)))},o.$b=function(){nk(this)},o._b=function(e){return!!u5(this,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))))},o.uc=function(e){return j$n(this,e)},o.kc=function(){return new GCn(this,this)},o.wc=function(e){wAn(this,e)},o.xc=function(e){return Ng(this,e)},o.ec=function(){return new kN(this)},o.zc=function(e,t){return RS(this,e,t)},o.Bc=function(e){var t;return t=u5(this,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))),t?(zg(this,t),t.e=null,t.c=null,t.i):null},o.gc=function(){return this.i},o.xd=function(){var e;return e=this.d,new vN(e||(this.d=new VA(this)))},o.f=0,o.g=0,o.i=0,w(Mn,"HashBiMap",543),b(544,1,Pi),o.Nb=function(e){_i(this,e)},o.Ob=function(){return PLn(this)},o.Pb=function(){var e;if(!PLn(this))throw T(new nc);return e=u(as(this.c),303),this.c=e.c,this.f=e,--this.d,this.Xd(e)},o.Qb=function(){if(this.e.g!=this.b)throw T(new Ko);if(!this.f)throw T(new Ar(dtn));zg(this.e,this.f),this.b=this.e.g,this.f=null},o.b=0,o.d=0,o.f=null,w(Mn,"HashBiMap/Itr",544),b(1023,544,Pi,GCn),o.Xd=function(e){return new FEn(this,e)},w(Mn,"HashBiMap/1",1023),b(Gs,358,tK,FEn),o.ld=function(){return this.a.g},o.md=function(){return this.a.i},o.nd=function(e){var t,i,r;return i=this.a.i,r=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),r==this.a.f&&(x(e)===x(i)||e!=null&&rt(e,i))?e:(tRn(!o5(this.b.a,e,r),e),zg(this.b.a,this.a),t=new kT(this.a.g,this.a.a,e,r),ny(this.b.a,t,this.a),this.a.e=null,this.a.c=null,this.b.b=this.b.a.g,this.b.f==this.a&&(this.b.f=t),this.a=t,i)},w(Mn,"HashBiMap/1/MapEntry",Gs),b(246,358,{358:1,246:1,3:1,44:1},ib),o.ld=function(){return this.g},o.md=function(){return this.i},o.nd=function(e){throw T(new Ie)},w(Mn,"ImmutableEntry",246),b(303,246,{358:1,303:1,246:1,3:1,44:1},kT),o.a=0,o.f=0;var UF=w(Mn,"HashBiMap/BiEntry",303);b(619,2077,Km,VA),o.Ac=function(e){s5(this,e)},o.Cc=function(){return new kN(this.a)},o.$b=function(){nk(this.a)},o._b=function(e){return j$n(this.a,e)},o.kc=function(){return new zCn(this,this.a)},o.wc=function(e){Pe(e),wAn(this.a,new K8n(e))},o.xc=function(e){return pC(this,e)},o.ec=function(){return new vN(this)},o.zc=function(e,t){return YPe(this.a,e,t,!1)},o.Bc=function(e){var t;return t=o5(this.a,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))),t?(zg(this.a,t),t.e=null,t.c=null,t.g):null},o.gc=function(){return this.a.i},o.xd=function(){return new kN(this.a)},w(Mn,"HashBiMap/Inverse",619),b(1020,544,Pi,zCn),o.Xd=function(e){return new _En(this,e)},w(Mn,"HashBiMap/Inverse/1",1020),b(1021,358,tK,_En),o.ld=function(){return this.a.i},o.md=function(){return this.a.g},o.nd=function(e){var t,i,r;return r=this.a.g,t=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),t==this.a.a&&(x(e)===x(r)||e!=null&&rt(e,r))?e:(tRn(!u5(this.b.a.a,e,t),e),zg(this.b.a.a,this.a),i=new kT(e,t,this.a.i,this.a.f),this.a=i,ny(this.b.a.a,i,null),this.b.b=this.b.a.a.g,r)},w(Mn,"HashBiMap/Inverse/1/InverseEntry",1021),b(620,542,Nu,vN),o.Kc=function(){return new Cjn(this.a.a)},o.Mc=function(e){var t;return t=o5(this.a.a,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))),t?(zg(this.a.a,t),!0):!1},w(Mn,"HashBiMap/Inverse/InverseKeySet",620),b(1019,544,Pi,Cjn),o.Xd=function(e){return e.i},w(Mn,"HashBiMap/Inverse/InverseKeySet/1",1019),b(1022,1,{},K8n),o.Yd=function(e,t){_fe(this.a,e,t)},w(Mn,"HashBiMap/Inverse/lambda$0$Type",1022),b(618,542,Nu,kN),o.Kc=function(){return new Sjn(this.a)},o.Mc=function(e){var t;return t=u5(this.a,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))),t?(zg(this.a,t),t.e=null,t.c=null,!0):!1},w(Mn,"HashBiMap/KeySet",618),b(1018,544,Pi,Sjn),o.Xd=function(e){return e.g},w(Mn,"HashBiMap/KeySet/1",1018),b(1123,627,md),w(Mn,"HashMultimapGwtSerializationDependencies",1123),b(271,1123,md,Mb),o.hc=function(){return new zE(Q0(this.a))},o.pd=function(){return new zE(Q0(this.a))},o.a=2,w(Mn,"HashMultimap",271),b(2097,307,Rm),o.Hc=function(e){return this.Zd().Hc(e)},o.dc=function(){return this.Zd().dc()},o.gc=function(){return this.Zd().gc()},w(Mn,"ImmutableAsList",2097),b(2030,730,Km),o.Vd=function(){return oh(),new lp(this.a)},o.Cc=function(){return oh(),new lp(this.a)},o.xd=function(){return oh(),new lp(this.a)},w(Mn,"ImmutableBiMap",2030),b(2075,1,{}),w(Mn,"ImmutableCollection/Builder",2075),b(1035,719,r3,Pjn),w(Mn,"ImmutableEnumSet",1035),b(980,399,xm,iPn),o.Xb=function(e){return this.a.Xb(e)},w(Mn,"ImmutableList/1",980),b(979,2075,{},zSn),w(Mn,"ImmutableList/Builder",979),b(623,204,$m,WA),o.Ob=function(){return this.a.Ob()},o.Pb=function(){return u(this.a.Pb(),44).ld()},w(Mn,"ImmutableMap/1",623),b(1054,1,{},Yi),o.Kb=function(e){return u(e,44).ld()},w(Mn,"ImmutableMap/2methodref$getKey$Type",1054),b(1053,1,{},XSn),w(Mn,"ImmutableMap/Builder",1053),b(2098,2079,r3),o.Md=function(){var e;return e=this.b,e||(this.b=new cL(this))},o.Nd=function(){return new jW(this,S5(this,F(ki,Kn,1,this.gc(),5,1)))},w(Mn,"ImmutableSet/CachingAsList",2098),b(2099,2098,r3),o.Kc=function(){var e;return e=Ja(this.a).Od(),new WA(e)},o.Nd=function(){return new cL(this)},o.Jc=function(e){var t,i;for(Pe(e),i=this.gc(),t=0;t<i;t++)e.Cd(u(Ja(this.a).Md().Xb(t),44).ld())},o.Od=function(){var e;return e=this.b,CN(e||(this.b=new cL(this)),0)},o.Nc=function(){return XN(this.gc(),1296,new F8n(this))},w(Mn,"IndexedImmutableSet",2099),b(1230,2099,r3,Ayn),o.Kc=function(){var e;return e=Ja(this.a).Od(),new WA(e)},o.Hc=function(e){return this.a._b(e)},o.Jc=function(e){Pe(e),f5(this.a,new B8n(e))},o.Od=function(){var e;return e=Ja(this.a).Od(),new WA(e)},o.gc=function(){return this.a.gc()},o.Nc=function(){return D7(Ja(this.a).Nc(),new Yi)},w(Mn,"ImmutableMapKeySet",1230),b(1231,1,{},B8n),o.Yd=function(e,t){oh(),this.a.Cd(e)},w(Mn,"ImmutableMapKeySet/lambda$0$Type",1231),b(1227,2078,gtn,Lyn),o.Kc=function(){return new GN(this)},o.Md=function(){var e;return e=Ja(this.a).Md(),new pCn(this,e)},o.Hc=function(e){return e!=null&&Mke(new GN(this),e)},o.Od=function(){return new GN(this)},o.gc=function(){return this.a.gc()},o.Nc=function(){return D7(Ja(this.a).Nc(),new Bi)},w(Mn,"ImmutableMapValues",1227),b(1228,1,{},Bi),o.Kb=function(e){return u(e,44).md()},w(Mn,"ImmutableMapValues/0methodref$getValue$Type",1228),b(637,204,$m,GN),o.Ob=function(){return this.a.Ob()},o.Pb=function(){return u(this.a.Pb(),44).md()},w(Mn,"ImmutableMapValues/1",637),b(1229,2097,Rm,pCn),o.Zd=function(){return this.a},o.Xb=function(e){return u(this.b.Xb(e),44).md()},w(Mn,"ImmutableMapValues/2",1229),b(1232,1,{},F8n),o.td=function(e){return QIn(this.a,e)},w(Mn,"IndexedImmutableSet/0methodref$get$Type",1232),b(638,2097,Rm,cL),o.Zd=function(){return this.a},o.Xb=function(e){return QIn(this.a,e)},o.gc=function(){return this.a.a.gc()},w(Mn,"IndexedImmutableSet/1",638),b(43,1,{},En),o.Kb=function(e){return u(e,20).Kc()},o.Fb=function(e){return this===e},w(Mn,"Iterables/10",43),b(1055,547,qh,BPn),o.Jc=function(e){Pe(e),this.b.Jc(new HEn(this.a,e))},o.Kc=function(){return TX(this)},w(Mn,"Iterables/4",1055),b(1056,1,re,HEn),o.Cd=function(e){sle(this.b,this.a,e)},w(Mn,"Iterables/4/lambda$0$Type",1056),b(1057,547,qh,FPn),o.Jc=function(e){Pe(e),qi(this.a,new UEn(e,this.b))},o.Kc=function(){return ce(new ne(this.a),this.b)},w(Mn,"Iterables/5",1057),b(1058,1,re,UEn),o.Cd=function(e){this.a.Cd(uCn(e))},w(Mn,"Iterables/5/lambda$0$Type",1058),b(1087,204,$m,_8n),o.Ob=function(){return this.a.Ob()},o.Pb=function(){return this.a.Pb()},w(Mn,"Iterators/1",1087),b(1088,713,$m,qEn),o.Yb=function(){for(var e;this.b.Ob();)if(e=this.b.Pb(),this.a.Lb(e))return e;return this.e=2,null},w(Mn,"Iterators/5",1088),b(497,1,Pi),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.b.Ob()},o.Pb=function(){return this.$d(this.b.Pb())},o.Qb=function(){this.b.Qb()},w(Mn,"TransformedIterator",497),b(1089,497,Pi,XCn),o.$d=function(e){return this.a.Kb(e)},w(Mn,"Iterators/6",1089),b(732,204,$m,hG),o.Ob=function(){return!this.a},o.Pb=function(){if(this.a)throw T(new nc);return this.a=!0,this.b},o.a=!1,w(Mn,"Iterators/9",732),b(1086,399,xm,lIn),o.Xb=function(e){return this.a[this.b+e]},o.b=0;var cQn;w(Mn,"Iterators/ArrayItr",1086),b(38,1,{38:1,51:1},ie),o.Nb=function(e){_i(this,e)},o.Ob=function(){return pe(this)},o.Pb=function(){return fe(this)},o.Qb=function(){if(!this.c)throw T(new Ar(dtn));this.c.Qb(),this.c=null},w(Mn,"Iterators/ConcatenatedIterator",38),b(22,1,{3:1,34:1,22:1}),o.Fd=function(e){return Rjn(this,u(e,22))},o.Fb=function(e){return this===e},o.Hb=function(){return lb(this)},o.Ib=function(){return PN(this)},o.g=0;var ke=w(ac,"Enum",22);b(549,22,{549:1,3:1,34:1,22:1,51:1},PCn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return!1},o.Pb=function(){throw T(new nc)},o.Qb=function(){v4(!1)};var GF,uQn=we(Mn,"Iterators/EmptyModifiableIterator",549,ke,kwe,H1e),oQn;b(1907,627,md),w(Mn,"LinkedHashMultimapGwtSerializationDependencies",1907),b(1908,1907,md,zRn),o.hc=function(){return new MN(Q0(this.b))},o.$b=function(){gC(this),V9(this.a,this.a)},o.pd=function(){return new MN(Q0(this.b))},o.ic=function(e){return new PRn(this,e,this.b)},o.kc=function(){return new NW(this)},o.lc=function(){var e;return new On((e=this.g,u(e||(this.g=new uz(this)),21)),17)},o.ec=function(){var e;return e=this.i,e||(this.i=new Tg(this,this.c))},o.nc=function(){return new sz(new NW(this))},o.oc=function(){var e;return D7(new On((e=this.g,u(e||(this.g=new uz(this)),21)),17),new hu)},o.b=2,w(Mn,"LinkedHashMultimap",1908),b(1911,1,{},hu),o.Kb=function(e){return u(e,44).md()},w(Mn,"LinkedHashMultimap/0methodref$getValue$Type",1911),b(834,1,Pi,NW),o.Nb=function(e){_i(this,e)},o.Pb=function(){return Nve(this)},o.Ob=function(){return this.a!=this.b.a},o.Qb=function(){v4(!!this.c),sLn(this.b,this.c.g,this.c.i),this.c=null},w(Mn,"LinkedHashMultimap/1",834),b(227,246,{358:1,246:1,227:1,604:1,3:1,44:1},_W),o._d=function(){return u(as(this.f),604)},o.ae=function(e){this.c=e},o.be=function(e){this.f=e},o.d=0;var sQn=w(Mn,"LinkedHashMultimap/ValueEntry",227);b(1909,2068,{604:1,20:1,31:1,16:1,21:1},PRn),o.Fc=function(e){var t,i,r,c,s;for(s=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),t=s&this.b.length-1,c=this.b[t],i=c;i;i=i.a)if(i.d==s&&sh(i.i,e))return!1;return r=new _W(this.c,e,s,c),Fjn(this.d,r),r.f=this,this.d=r,V9(u(as(this.g.a.b),227),r),V9(r,this.g.a),this.b[t]=r,++this.f,++this.e,jke(this),!0},o.$b=function(){var e,t;for(u7(this.b,null),this.f=0,e=this.a;e!=this;e=e._d())t=u(e,227),V9(u(as(t.b),227),u(as(t.e),227));this.a=this,this.d=this,++this.e},o.Hc=function(e){var t,i;for(i=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),t=this.b[i&this.b.length-1];t;t=t.a)if(t.d==i&&sh(t.i,e))return!0;return!1},o.Jc=function(e){var t;for(Pe(e),t=this.a;t!=this;t=t._d())e.Cd(u(t,227).i)},o._d=function(){return this.a},o.Kc=function(){return new iOn(this)},o.Mc=function(e){return fqn(this,e)},o.ae=function(e){this.d=e},o.be=function(e){this.a=e},o.gc=function(){return this.f},o.e=0,o.f=0,w(Mn,"LinkedHashMultimap/ValueSet",1909),b(1910,1,Pi,iOn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return iW(this),this.b!=this.c},o.Pb=function(){var e,t;if(iW(this),this.b==this.c)throw T(new nc);return e=u(this.b,227),t=e.i,this.d=e,this.b=u(as(e.f),604),t},o.Qb=function(){iW(this),v4(!!this.d),fqn(this.c,this.d.i),this.a=this.c.e,this.d=null},o.a=0,w(Mn,"LinkedHashMultimap/ValueSet/1",1910),b(780,2084,md,GTn),o.Zb=function(){var e;return e=this.f,e||(this.f=new Fz(this))},o.Fb=function(e){return G$(this,e)},o.cc=function(e){return new SL(this,e)},o.fc=function(e){return GJ(this,e)},o.$b=function(){BIn(this)},o._b=function(e){return QEn(this,e)},o.ac=function(){return new Fz(this)},o.bc=function(){return new q8n(this)},o.qc=function(e){return new SL(this,e)},o.dc=function(){return!this.a},o.rc=function(e){return GJ(this,e)},o.gc=function(){return this.d},o.c=0,o.d=0,w(Mn,"LinkedListMultimap",780),b(56,31,Bm),o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.bd=function(e,t){throw T(new Fl("Add not supported on this list"))},o.Fc=function(e){return this.bd(this.gc(),e),!0},o.cd=function(e,t){var i,r,c;for(Jn(t),i=!1,c=t.Kc();c.Ob();)r=c.Pb(),this.bd(e++,r),i=!0;return i},o.$b=function(){this.ce(0,this.gc())},o.Fb=function(e){return Vnn(this,e)},o.Hb=function(){return iY(this)},o.dd=function(e){return J$n(this,e)},o.Kc=function(){return new zv(this)},o.ed=function(){return this.fd(0)},o.fd=function(e){return new xi(this,e)},o.gd=function(e){throw T(new Fl("Remove not supported on this list"))},o.ce=function(e,t){var i,r;for(r=this.fd(e),i=e;i<t;++i)r.Pb(),r.Qb()},o.hd=function(e,t){throw T(new Fl("Set not supported on this list"))},o.kd=function(e,t){return new Jl(this,e,t)},o.j=0,w(le,"AbstractList",56),b(2062,56,Bm),o.bd=function(e,t){g4(this,e,t)},o.cd=function(e,t){return IRn(this,e,t)},o.Xb=function(e){return Zo(this,e)},o.Kc=function(){return this.fd(0)},o.gd=function(e){return Ux(this,e)},o.hd=function(e,t){var i,r;i=this.fd(e);try{return r=i.Pb(),i.Wb(t),r}catch(c){throw c=Ot(c),L(c,112)?T(new Or("Can't set element "+e)):T(c)}},w(le,"AbstractSequentialList",2062),b(646,2062,Bm,SL),o.fd=function(e){return WCn(this,e)},o.gc=function(){var e;return e=u(ee(this.a.b,this.b),260),e?e.a:0},w(Mn,"LinkedListMultimap/1",646),b(1316,2068,Nu,q8n),o.Hc=function(e){return QEn(this.a,e)},o.Kc=function(){return new bxn(this.a)},o.Mc=function(e){return!GJ(this.a,e).a.dc()},o.gc=function(){return c6(this.a.b)},w(Mn,"LinkedListMultimap/1KeySetImpl",1316),b(1315,1,Pi,bxn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return rW(this),!!this.c},o.Pb=function(){if(rW(this),!this.c)throw T(new nc);this.a=this.c,fi(this.d,this.a.a);do this.c=this.c.b;while(this.c&&!fi(this.d,this.c.a));return this.a.a},o.Qb=function(){rW(this),v4(!!this.a),iT(new f$(this.e,this.a.a)),this.a=null,this.b=this.e.c},o.b=0,w(Mn,"LinkedListMultimap/DistinctKeyIterator",1315),b(260,1,{260:1},QW),o.a=0,w(Mn,"LinkedListMultimap/KeyList",260),b(511,358,{358:1,511:1,44:1},GEn),o.ld=function(){return this.a},o.md=function(){return this.f},o.nd=function(e){var t;return t=this.f,this.f=e,t},w(Mn,"LinkedListMultimap/Node",511),b(566,1,Hh,f$,k_n),o.Nb=function(e){_i(this,e)},o.Rb=function(e){this.e=Pen(this.f,this.b,e,this.c),++this.d,this.a=null},o.Ob=function(){return!!this.c},o.Sb=function(){return!!this.e},o.Pb=function(){return oQ(this)},o.Tb=function(){return this.d},o.Ub=function(){return t$n(this)},o.Vb=function(){return this.d-1},o.Qb=function(){v4(!!this.a),this.a!=this.c?(this.e=this.a.e,--this.d):this.c=this.a.c,BTe(this.f,this.a),this.a=null},o.Wb=function(e){FX(!!this.a),this.a.f=e},o.d=0,w(Mn,"LinkedListMultimap/ValueForKeyIterator",566),b(1031,56,Bm),o.bd=function(e,t){this.a.bd(e,t)},o.cd=function(e,t){return this.a.cd(e,t)},o.Hc=function(e){return this.a.Hc(e)},o.Xb=function(e){return this.a.Xb(e)},o.gd=function(e){return this.a.gd(e)},o.hd=function(e,t){return this.a.hd(e,t)},o.gc=function(){return this.a.gc()},w(Mn,"Lists/AbstractListWrapper",1031),b(1032,1031,xzn),w(Mn,"Lists/RandomAccessListWrapper",1032),b(1034,1032,xzn,WEn),o.fd=function(e){return this.a.fd(e)},w(Mn,"Lists/1",1034),b(441,56,{441:1,20:1,31:1,56:1,16:1,15:1},Oz),o.bd=function(e,t){this.a.bd(M4(this,e),t)},o.$b=function(){this.a.$b()},o.Xb=function(e){return this.a.Xb(LW(this,e))},o.Kc=function(){return _An(this,0)},o.fd=function(e){return _An(this,e)},o.gd=function(e){return this.a.gd(LW(this,e))},o.ce=function(e,t){(pLn(e,t,this.a.gc()),Qo(this.a.kd(M4(this,t),M4(this,e)))).$b()},o.hd=function(e,t){return this.a.hd(LW(this,e),t)},o.gc=function(){return this.a.gc()},o.kd=function(e,t){return pLn(e,t,this.a.gc()),Qo(this.a.kd(M4(this,t),M4(this,e)))},w(Mn,"Lists/ReverseList",441),b(1030,441,{441:1,20:1,31:1,56:1,16:1,15:1,59:1},Ijn),w(Mn,"Lists/RandomAccessReverseList",1030),b(1033,1,Hh,zEn),o.Nb=function(e){_i(this,e)},o.Rb=function(e){this.c.Rb(e),this.c.Ub(),this.a=!1},o.Ob=function(){return this.c.Sb()},o.Sb=function(){return this.c.Ob()},o.Pb=function(){if(!this.c.Sb())throw T(new nc);return this.a=!0,this.c.Ub()},o.Tb=function(){return M4(this.b,this.c.Tb())},o.Ub=function(){if(!this.c.Ob())throw T(new nc);return this.a=!0,this.c.Pb()},o.Vb=function(){return M4(this.b,this.c.Tb())-1},o.Qb=function(){v4(this.a),this.c.Qb(),this.a=!1},o.Wb=function(e){FX(this.a),this.c.Wb(e)},o.a=!1,w(Mn,"Lists/ReverseList/1",1033),b(440,497,Pi,n6),o.$d=function(e){return rM(e)},w(Mn,"Maps/1",440),b(712,497,Pi,sz),o.$d=function(e){return u(e,44).md()},w(Mn,"Maps/2",712),b(975,497,Pi,VCn),o.$d=function(e){return new ib(e,ZTn(this.a,e))},w(Mn,"Maps/3",975),b(972,2069,Nu,G8n),o.Jc=function(e){zfe(this.a,e)},o.Kc=function(){return this.a.kc()},o.Rc=function(){return this.a},o.Nc=function(){return this.a.lc()},w(Mn,"Maps/IteratorBasedAbstractMap/1",972),b(973,1,{},z8n),o.Yd=function(e,t){this.a.Cd(e)},w(Mn,"Maps/KeySet/lambda$0$Type",973),b(971,31,pw,JEn),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a.uc(e)},o.Jc=function(e){Pe(e),this.a.wc(new U8n(e))},o.dc=function(){return this.a.dc()},o.Kc=function(){return new sz(this.a.vc().Kc())},o.Mc=function(e){var t,i;try{return iw(this,e,!0)}catch(r){if(r=Ot(r),L(r,48)){for(i=this.a.vc().Kc();i.Ob();)if(t=u(i.Pb(),44),sh(e,t.md()))return this.a.Bc(t.ld()),!0;return!1}else throw T(r)}},o.gc=function(){return this.a.gc()},w(Mn,"Maps/Values",971),b(974,1,{},U8n),o.Yd=function(e,t){this.a.Cd(t)},w(Mn,"Maps/Values/lambda$0$Type",974),b(752,2085,Xb,Fz),o.xc=function(e){return this.a._b(e)?this.a.cc(e):null},o.Bc=function(e){return this.a._b(e)?this.a.fc(e):null},o.$b=function(){this.a.$b()},o._b=function(e){return this.a._b(e)},o.Ec=function(){return new X8n(this)},o.Dc=function(){return this.Ec()},o.dc=function(){return this.a.dc()},o.ec=function(){return this.a.ec()},o.gc=function(){return this.a.ec().gc()},w(Mn,"Multimaps/AsMap",752),b(1134,2069,Nu,X8n),o.Kc=function(){return l1e(this.a.a.ec(),new V8n(this))},o.Rc=function(){return this.a},o.Mc=function(e){var t;return NKn(this,e)?(t=u(as(u(e,44)),44),ehe(this.a,t.ld()),!0):!1},w(Mn,"Multimaps/AsMap/EntrySet",1134),b(1138,1,{},V8n),o.Kb=function(e){return ZTn(this,e)},o.Fb=function(e){return this===e},w(Mn,"Multimaps/AsMap/EntrySet/1",1138),b(552,2087,{552:1,849:1,20:1,31:1,16:1},W8n),o.$b=function(){gC(this.a)},o.Hc=function(e){return uEn(this.a,e)},o.Jc=function(e){Pe(e),qi(G6(this.a),new Q8n(e))},o.Kc=function(){return new n6(G6(this.a).a.kc())},o.gc=function(){return this.a.d},o.Nc=function(){return D7(G6(this.a).Nc(),new Qc)},w(Mn,"Multimaps/Keys",552),b(1136,1,{},Qc),o.Kb=function(e){return u(e,44).ld()},w(Mn,"Multimaps/Keys/0methodref$getKey$Type",1136),b(1135,497,Pi,Ojn),o.$d=function(e){return new J8n(u(e,44))},w(Mn,"Multimaps/Keys/1",1135),b(2088,1,{425:1}),o.Fb=function(e){var t;return L(e,504)?(t=u(e,425),u(this.a.md(),16).gc()==u(t.a.md(),16).gc()&&sh(this.a.ld(),t.a.ld())):!1},o.Hb=function(){var e;return e=this.a.ld(),(e==null?0:mt(e))^u(this.a.md(),16).gc()},o.Ib=function(){var e,t;return t=A6(this.a.ld()),e=u(this.a.md(),16).gc(),e==1?t:t+" x "+e},w(Mn,"Multisets/AbstractEntry",2088),b(504,2088,{504:1,425:1},J8n),w(Mn,"Multimaps/Keys/1/1",504),b(1137,1,re,Q8n),o.Cd=function(e){this.a.Cd(u(e,44).ld())},w(Mn,"Multimaps/Keys/lambda$1$Type",1137),b(1140,1,re,Bu),o.Cd=function(e){D0e(u(e,425))},w(Mn,"Multiset/lambda$0$Type",1140),b(753,1,re,Y8n),o.Cd=function(e){vme(this.a,u(e,425))},w(Mn,"Multiset/lambda$1$Type",753),b(1141,1,{},Ir),w(Mn,"Multisets/0methodref$add$Type",1141),b(754,1,{},Tf),o.Kb=function(e){return Hpe(u(e,425))},w(Mn,"Multisets/lambda$1$Type",754),b(2106,1,ky),w(Mn,"RangeGwtSerializationDependencies",2106),b(521,2106,{178:1,521:1,3:1,46:1},fZ),o.Lb=function(e){return TIn(this,u(e,34))},o.Mb=function(e){return TIn(this,u(e,34))},o.Fb=function(e){var t;return L(e,521)?(t=u(e,521),mZ(this.a,t.a)&&mZ(this.b,t.b)):!1},o.Hb=function(){return this.a.Hb()*31+this.b.Hb()},o.Ib=function(){return qLn(this.a,this.b)},w(Mn,"Range",521),b(654,2097,Rm,jW),o.fd=function(e){return CN(this.b,e)},o.Zd=function(){return this.a},o.Xb=function(e){return _1(this.b,e)},o.Pd=function(e){return CN(this.b,e)},w(Mn,"RegularImmutableAsList",654),b(656,2105,Rm,ID),o.Rd=function(){return this.a},w(Mn,"RegularImmutableList",656),b(548,730,Km,fz,hz),w(Mn,"RegularImmutableMap",548),b(731,719,r3,Rz);var cun;w(Mn,"RegularImmutableSet",731),b(2074,Ff,Nu),o.Kc=function(){return new UW(this.a,this.b)},o.Fc=function(e){throw T(new Ie)},o.Gc=function(e){throw T(new Ie)},o.$b=function(){throw T(new Ie)},o.Mc=function(e){throw T(new Ie)},w(Mn,"Sets/SetView",2074),b(976,2074,Nu,VEn),o.Kc=function(){return new UW(this.a,this.b)},o.Hc=function(e){return JN(this.a,e)&&this.b.Hc(e)},o.Ic=function(e){return Ek(this.a,e)&&this.b.Ic(e)},o.dc=function(){return pBn(this.b,this.a)},o.Lc=function(){return ut(new Cn(null,new On(this.a,1)),new n9n(this.b))},o.gc=function(){return kk(this)},o.Oc=function(){return ut(new Cn(null,new On(this.a,1)),new Z8n(this.b))},w(Mn,"Sets/2",976),b(977,1,Le,Z8n),o.Mb=function(e){return this.a.Hc(e)},w(Mn,"Sets/2/0methodref$contains$Type",977),b(714,713,$m,UW),o.Yb=function(){for(var e;IX(this.a);)if(e=n5(this.a),this.c.Hc(e))return e;return this.e=2,null},w(Mn,"Sets/2/1",714),b(978,1,Le,n9n),o.Mb=function(e){return this.a.Hc(e)},w(Mn,"Sets/2/1methodref$contains$Type",978),b(616,2073,{616:1,3:1,20:1,16:1,277:1,21:1,87:1},oAn),o.Kd=function(){return this.b},o.Ld=function(){return this.b},o.Wd=function(){return this.b},o.Jc=function(e){this.a.Jc(e)},o.Lc=function(){return this.a.Lc()},o.Oc=function(){return this.a.Oc()},w(Mn,"Sets/UnmodifiableNavigableSet",616),b(2031,2030,Km,lOn),o.Vd=function(){return oh(),new lp(this.a)},o.Cc=function(){return oh(),new lp(this.a)},o.xd=function(){return oh(),new lp(this.a)},w(Mn,"SingletonImmutableBiMap",2031),b(657,2105,Rm,VN),o.Rd=function(){return this.a},w(Mn,"SingletonImmutableList",657),b(363,2079,r3,lp),o.Kc=function(){return new hG(this.a)},o.Hc=function(e){return rt(this.a,e)},o.Od=function(){return new hG(this.a)},o.gc=function(){return 1},w(Mn,"SingletonImmutableSet",363),b(1148,1,{},N1),o.Kb=function(e){return u(e,159)},w(Mn,"Streams/lambda$0$Type",1148),b(1149,1,JS,e9n),o.de=function(){Q3e(this.a)},w(Mn,"Streams/lambda$1$Type",1149),b(1725,1724,md,GOn),o.Zb=function(){var e;return e=this.f,u(u(e||(this.f=L(this.c,139)?new D6(this,u(this.c,139)):L(this.c,133)?new S7(this,u(this.c,133)):new h4(this,this.c)),133),139)},o.hc=function(){return new Ul(this.b)},o.pd=function(){return new Ul(this.b)},o.ec=function(){var e;return e=this.i,u(u(e||(this.i=L(this.c,139)?new f4(this,u(this.c,139)):L(this.c,133)?new e7(this,u(this.c,133)):new Tg(this,this.c)),87),277)},o.ac=function(){return L(this.c,139)?new D6(this,u(this.c,139)):L(this.c,133)?new S7(this,u(this.c,133)):new h4(this,this.c)},o.ic=function(e){return e==null&&this.a.Ne(e,e),new Ul(this.b)},w(Mn,"TreeMultimap",1725),b(82,1,{3:1,82:1}),o.ee=function(e){return new Error(e)},o.fe=function(){return this.e},o.ge=function(){var e,t,i;for(i=(this.k==null&&(this.k=F(zF,J,82,0,0,1)),this.k),t=F(ki,Kn,1,i.length,5,1),e=0;e<i.length;e++)t[e]=i[e].e;return t},o.he=function(){return this.f},o.ie=function(){return this.g},o.je=function(){Qfe(this,Ape(this.ee(OT(this,this.g)))),Nyn(this)},o.Ib=function(){return OT(this,this.ie())},o.e=Rzn,o.i=!1,o.n=!0;var zF=w(ac,"Throwable",82);b(103,82,{3:1,103:1,82:1}),w(ac,"Exception",103),b(63,103,Il,Ga,ec),w(ac,"RuntimeException",63),b(607,63,Il),w(ac,"JsException",607),b(875,607,Il),w(Ty,"JavaScriptExceptionBase",875),b(486,875,{486:1,3:1,103:1,63:1,82:1},GRn),o.ie=function(){return zke(this),this.c},o.ke=function(){return x(this.b)===x(uun)?null:this.b};var uun;w(mtn,"JavaScriptException",486);var fQn=w(mtn,"JavaScriptObject$",0),oun;b(2047,1,{}),w(mtn,"Scheduler",2047);var cI=0,hQn=0,uI=-1;b(902,2047,{},D1);var sun;w(Ty,"SchedulerImpl",902);var XF;b(2058,1,{}),w(Ty,"StackTraceCreator/Collector",2058),b(876,2058,{},og),o.le=function(e){var t={},i=[];e[oK]=i;for(var r=arguments.callee.caller;r;){var c=(A4(),r.name||(r.name=Lme(r.toString())));i.push(c);var s=":"+c,f=t[s];if(f){var h,l;for(h=0,l=f.length;h<l;h++)if(f[h]===r)return}(f||(t[s]=[])).push(r),r=r.caller}},o.me=function(e){var t,i,r,c;for(r=(A4(),e&&e[oK]?e[oK]:[]),i=r.length,c=F(jun,J,319,i,0,1),t=0;t<i;t++)c[t]=new yD(r[t],null,-1);return c},w(Ty,"StackTraceCreator/CollectorLegacy",876),b(2059,2058,{}),o.le=function(e){},o.ne=function(e,t,i,r){return new yD(t,e+"@"+r,i<0?-1:i)},o.me=function(e){var t,i,r,c,s,f;if(c=v7e(e),s=F(jun,J,319,0,0,1),t=0,r=c.length,r==0)return s;for(f=_Gn(this,c[0]),Sn(f.d,uK)||(s[t++]=f),i=1;i<r;i++)s[t++]=_Gn(this,c[i]);return s},w(Ty,"StackTraceCreator/CollectorModern",2059),b(877,2059,{},V3),o.ne=function(e,t,i,r){return new yD(t,e,-1)},w(Ty,"StackTraceCreator/CollectorModernNoSourceMap",877),b(1064,1,{}),w(ktn,Fzn,1064),b(624,1064,{624:1},JIn);var fun;w(CK,Fzn,624),b(2101,1,{}),w(ktn,_zn,2101),b(2102,2101,{}),w(CK,_zn,2102),b(1120,1,{},$1);var C8;w(CK,"LocaleInfo",1120),b(2027,1,{},ul),o.a=0,w(CK,"TimeZone",2027),b(1293,2102,{},Mbn),w("com.google.gwt.i18n.client.impl.cldr","DateTimeFormatInfoImpl",1293),b(443,1,{443:1},PPn),o.a=!1,o.b=0,w(ktn,"DateTimeFormat/PatternPart",443),b(206,1,Hzn,JE,ZQ,sV),o.Fd=function(e){return Cpe(this,u(e,206))},o.Fb=function(e){return L(e,206)&&ob(vc(this.q.getTime()),vc(u(e,206).q.getTime()))},o.Hb=function(){var e;return e=vc(this.q.getTime()),Se(BD(e,U1(e,32)))},o.Ib=function(){var e,t,i;return i=-this.q.getTimezoneOffset(),e=(i>=0?"+":"")+(i/60|0),t=AM(y.Math.abs(i)%60),(UFn(),EQn)[this.q.getDay()]+" "+MQn[this.q.getMonth()]+" "+AM(this.q.getDate())+" "+AM(this.q.getHours())+":"+AM(this.q.getMinutes())+":"+AM(this.q.getSeconds())+" GMT"+e+t+" "+this.q.getFullYear()};var oI=w(le,"Date",206);b(2015,206,Hzn,dFn),o.a=!1,o.b=0,o.c=0,o.d=0,o.e=0,o.f=0,o.g=!1,o.i=0,o.j=0,o.k=0,o.n=0,o.o=0,o.p=0,w("com.google.gwt.i18n.shared.impl","DateRecord",2015),b(2064,1,{}),o.pe=function(){return null},o.qe=function(){return null},o.re=function(){return null},o.se=function(){return null},o.te=function(){return null},w(u3,"JSONValue",2064),b(221,2064,{221:1},_a,lG),o.Fb=function(e){return L(e,221)?fJ(this.a,u(e,221).a):!1},o.oe=function(){return Dfe},o.Hb=function(){return YW(this.a)},o.pe=function(){return this},o.Ib=function(){var e,t,i;for(i=new mo("["),t=0,e=this.a.length;t<e;t++)t>0&&(i.a+=","),Lc(i,J0(this,t));return i.a+="]",i.a},w(u3,"JSONArray",221),b(493,2064,{493:1},aG),o.oe=function(){return $fe},o.qe=function(){return this},o.Ib=function(){return _n(),""+this.a},o.a=!1;var lQn,aQn;w(u3,"JSONBoolean",493),b(997,63,Il,Ajn),w(u3,"JSONException",997),b(1036,2064,{},Tbn),o.oe=function(){return xfe},o.Ib=function(){return gu};var dQn;w(u3,"JSONNull",1036),b(263,2064,{263:1},SE),o.Fb=function(e){return L(e,263)?this.a==u(e,263).a:!1},o.oe=function(){return Lfe},o.Hb=function(){return pp(this.a)},o.re=function(){return this},o.Ib=function(){return this.a+""},o.a=0,w(u3,"JSONNumber",263),b(190,2064,{190:1},sp,U9),o.Fb=function(e){return L(e,190)?fJ(this.a,u(e,190).a):!1},o.oe=function(){return Nfe},o.Hb=function(){return YW(this.a)},o.se=function(){return this},o.Ib=function(){var e,t,i,r,c,s,f;for(f=new mo("{"),e=!0,s=P$(this,F(fn,J,2,0,6,1)),i=s,r=0,c=i.length;r<c;++r)t=i[r],e?e=!1:f.a+=ur,Be(f,cHn(t)),f.a+=":",Lc(f,dl(this,t));return f.a+="}",f.a},w(u3,"JSONObject",190),b(605,Ff,Nu,PL),o.Hc=function(e){return Si(e)&&whe(this.a,Ae(e))},o.Kc=function(){return new zv(new Fu(this.b))},o.gc=function(){return this.b.length},w(u3,"JSONObject/1",605);var VF;b(211,2064,{211:1},q0),o.Fb=function(e){return L(e,211)?Sn(this.a,u(e,211).a):!1},o.oe=function(){return Afe},o.Hb=function(){return t1(this.a)},o.te=function(){return this},o.Ib=function(){return cHn(this.a)},w(u3,"JSONString",211);var wa,hun,bQn,lun,aun;b(2060,1,{533:1}),w(ytn,"OutputStream",2060),b(2061,2060,{533:1}),w(ytn,"FilterOutputStream",2061),b(878,2061,{533:1},Cbn),w(ytn,"PrintStream",878),b(427,1,{484:1}),o.Ib=function(){return this.a},w(ac,"AbstractStringBuilder",427),b(538,63,Il,_E),w(ac,"ArithmeticException",538),b(77,63,SK,HG,Or),w(ac,"IndexOutOfBoundsException",77),b(333,77,{3:1,333:1,103:1,77:1,63:1,82:1},QG,gz),w(ac,"ArrayIndexOutOfBoundsException",333),b(537,63,Il,uL,Kjn),w(ac,"ArrayStoreException",537),b(296,82,qzn,vL),w(ac,"Error",296),b(200,296,qzn,_G,DJ),w(ac,"AssertionError",200),eQn={3:1,485:1,34:1};var ga,ov,Gt=w(ac,"Boolean",485);b(242,1,{3:1,242:1});var dun;w(ac,"Number",242),b(222,242,{3:1,222:1,34:1,242:1},u9n),o.Fd=function(e){return ahe(this,u(e,222))},o.ue=function(){return this.a},o.Fb=function(e){return L(e,222)&&u(e,222).a==this.a},o.Hb=function(){return this.a},o.Ib=function(){return""+this.a},o.a=0;var p3=w(ac,"Byte",222),bun;b(180,1,{3:1,180:1,34:1},yG),o.Fd=function(e){return dhe(this,u(e,180))},o.Fb=function(e){return L(e,180)&&u(e,180).a==this.a},o.Hb=function(){return this.a},o.Ib=function(){return String.fromCharCode(this.a)},o.a=0;var wun,S8=w(ac,"Character",180),gun;b(212,63,{3:1,212:1,103:1,63:1,82:1},Dyn,i4),w(ac,"ClassCastException",212),tQn={3:1,34:1,345:1,242:1};var si=w(ac,"Double",345);b(161,242,{3:1,34:1,161:1,242:1},z9,qG),o.Fd=function(e){return Sle(this,u(e,161))},o.ue=function(){return this.a},o.Fb=function(e){return L(e,161)&&nPn(this.a,u(e,161).a)},o.Hb=function(){return wi(this.a)},o.Ib=function(){return""+this.a},o.a=0;var sv=w(ac,"Float",161);b(33,63,{3:1,103:1,33:1,63:1,82:1},W9,Gn,DRn),w(ac,"IllegalArgumentException",33),b(73,63,Il,Mu,Ar),w(ac,"IllegalStateException",73),b(17,242,{3:1,34:1,17:1,242:1},mG),o.Fd=function(e){return yX(this,u(e,17))},o.ue=function(){return this.a},o.Fb=function(e){return L(e,17)&&u(e,17).a==this.a},o.Hb=function(){return this.a},o.Ib=function(){return""+this.a},o.a=0;var Gi=w(ac,"Integer",17),pun,wQn;b(168,242,{3:1,34:1,168:1,242:1},vG),o.Fd=function(e){return Cle(this,u(e,168))},o.ue=function(){return id(this.a)},o.Fb=function(e){return L(e,168)&&ob(u(e,168).a,this.a)},o.Hb=function(){return Tae(this.a)},o.Ib=function(){return""+_6(this.a)},o.a=0;var t0=w(ac,"Long",168),mun;b(2140,1,{}),b(1904,63,Il,Bjn),w(ac,"NegativeArraySizeException",1904),b(169,607,{3:1,103:1,169:1,63:1,82:1},rp,fp),o.ee=function(e){return new TypeError(e)},w(ac,"NullPointerException",169);var vun,WF,gQn,kun;b(130,33,{3:1,103:1,33:1,130:1,63:1,82:1},th),w(ac,"NumberFormatException",130),b(191,242,{3:1,34:1,242:1,191:1},kG),o.Fd=function(e){return bhe(this,u(e,191))},o.ue=function(){return this.a},o.Fb=function(e){return L(e,191)&&u(e,191).a==this.a},o.Hb=function(){return this.a},o.Ib=function(){return""+this.a},o.a=0;var i0=w(ac,"Short",191),yun;b(319,1,{3:1,319:1},yD),o.Fb=function(e){var t;return L(e,319)?(t=u(e,319),this.c==t.c&&this.d==t.d&&this.a==t.a&&this.b==t.b):!1},o.Hb=function(){return Ok(S(C(ki,1),Kn,1,5,[Y(this.c),this.a,this.d,this.b]))},o.Ib=function(){return this.a+"."+this.d+"("+(this.b!=null?this.b:"Unknown Source")+(this.c>=0?":"+this.c:"")+")"},o.c=0;var jun=w(ac,"StackTraceElement",319);iQn={3:1,484:1,34:1,2:1};var fn=w(ac,ptn,2);b(111,427,{484:1},Hl,i6,ls),w(ac,"StringBuffer",111),b(104,427,{484:1},x1,fg,mo),w(ac,"StringBuilder",104),b(702,77,SK,wz),w(ac,"StringIndexOutOfBoundsException",702),b(2145,1,{});var pQn;b(48,63,{3:1,103:1,63:1,82:1,48:1},Ie,Fl),w(ac,"UnsupportedOperationException",48),b(247,242,{3:1,34:1,242:1,247:1},Dk,Cz),o.Fd=function(e){return RUn(this,u(e,247))},o.ue=function(){return sw(lGn(this))},o.Fb=function(e){var t;return this===e?!0:L(e,247)?(t=u(e,247),this.e==t.e&&RUn(this,t)==0):!1},o.Hb=function(){var e;return this.b!=0?this.b:this.a<54?(e=vc(this.f),this.b=Se(vi(e,-1)),this.b=33*this.b+Se(vi(wb(e,32),-1)),this.b=17*this.b+wi(this.e),this.b):(this.b=17*JRn(this.c)+wi(this.e),this.b)},o.Ib=function(){return lGn(this)},o.a=0,o.b=0,o.d=0,o.e=0,o.f=0;var mQn,Od,Eun,Mun,Tun,Cun,Sun,Pun,JF=w("java.math","BigDecimal",247);b(92,242,{3:1,34:1,242:1,92:1},gl,HAn,Ya,QKn,H1),o.Fd=function(e){return XKn(this,u(e,92))},o.ue=function(){return sw(ZR(this,0))},o.Fb=function(e){return FY(this,e)},o.Hb=function(){return JRn(this)},o.Ib=function(){return ZR(this,0)},o.b=-2,o.c=0,o.d=0,o.e=0;var vQn,sI,kQn,QF,fI,P8,l2=w("java.math","BigInteger",92),yQn,jQn,m3,I8;b(498,2065,Xb),o.$b=function(){Hu(this)},o._b=function(e){return Zc(this,e)},o.uc=function(e){return ARn(this,e,this.i)||ARn(this,e,this.f)},o.vc=function(){return new Ua(this)},o.xc=function(e){return ee(this,e)},o.zc=function(e,t){return Ve(this,e,t)},o.Bc=function(e){return Kp(this,e)},o.gc=function(){return c6(this)},o.g=0,w(le,"AbstractHashMap",498),b(267,Ff,Nu,Ua),o.$b=function(){this.a.$b()},o.Hc=function(e){return mLn(this,e)},o.Kc=function(){return new sd(this.a)},o.Mc=function(e){var t;return mLn(this,e)?(t=u(e,44).ld(),this.a.Bc(t),!0):!1},o.gc=function(){return this.a.gc()},w(le,"AbstractHashMap/EntrySet",267),b(268,1,Pi,sd),o.Nb=function(e){_i(this,e)},o.Pb=function(){return Nb(this)},o.Ob=function(){return this.b},o.Qb=function(){XDn(this)},o.b=!1,o.d=0,w(le,"AbstractHashMap/EntrySetIterator",268),b(426,1,Pi,zv),o.Nb=function(e){_i(this,e)},o.Ob=function(){return LL(this)},o.Pb=function(){return XW(this)},o.Qb=function(){bo(this)},o.b=0,o.c=-1,w(le,"AbstractList/IteratorImpl",426),b(98,426,Hh,xi),o.Qb=function(){bo(this)},o.Rb=function(e){B0(this,e)},o.Sb=function(){return this.b>0},o.Tb=function(){return this.b},o.Ub=function(){return oe(this.b>0),this.a.Xb(this.c=--this.b)},o.Vb=function(){return this.b-1},o.Wb=function(e){R0(this.c!=-1),this.a.hd(this.c,e)},w(le,"AbstractList/ListIteratorImpl",98),b(244,56,Bm,Jl),o.bd=function(e,t){z0(e,this.b),this.c.bd(this.a+e,t),++this.b},o.Xb=function(e){return Nn(e,this.b),this.c.Xb(this.a+e)},o.gd=function(e){var t;return Nn(e,this.b),t=this.c.gd(this.a+e),--this.b,t},o.hd=function(e,t){return Nn(e,this.b),this.c.hd(this.a+e,t)},o.gc=function(){return this.b},o.a=0,o.b=0,w(le,"AbstractList/SubList",244),b(266,Ff,Nu,qa),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a._b(e)},o.Kc=function(){var e;return e=this.a.vc().Kc(),new IE(e)},o.Mc=function(e){return this.a._b(e)?(this.a.Bc(e),!0):!1},o.gc=function(){return this.a.gc()},w(le,"AbstractMap/1",266),b(541,1,Pi,IE),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a.Ob()},o.Pb=function(){var e;return e=u(this.a.Pb(),44),e.ld()},o.Qb=function(){this.a.Qb()},w(le,"AbstractMap/1/1",541),b(231,31,pw,ol),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a.uc(e)},o.Kc=function(){var e;return e=this.a.vc().Kc(),new P0(e)},o.gc=function(){return this.a.gc()},w(le,"AbstractMap/2",231),b(301,1,Pi,P0),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a.Ob()},o.Pb=function(){var e;return e=u(this.a.Pb(),44),e.md()},o.Qb=function(){this.a.Qb()},w(le,"AbstractMap/2/1",301),b(494,1,{494:1,44:1}),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),mc(this.d,t.ld())&&mc(this.e,t.md())):!1},o.ld=function(){return this.d},o.md=function(){return this.e},o.Hb=function(){return yg(this.d)^yg(this.e)},o.nd=function(e){return bV(this,e)},o.Ib=function(){return this.d+"="+this.e},w(le,"AbstractMap/AbstractEntry",494),b(397,494,{494:1,397:1,44:1},oM),w(le,"AbstractMap/SimpleEntry",397),b(2082,1,OK),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),mc(this.ld(),t.ld())&&mc(this.md(),t.md())):!1},o.Hb=function(){return yg(this.ld())^yg(this.md())},o.Ib=function(){return this.ld()+"="+this.md()},w(le,Ozn,2082),b(2090,2065,btn),o.Xc=function(e){return TL(this.Ee(e))},o.tc=function(e){return MNn(this,e)},o._b=function(e){return wV(this,e)},o.vc=function(){return new ZA(this)},o.Tc=function(){return KIn(this.Ge())},o.Yc=function(e){return TL(this.He(e))},o.xc=function(e){var t;return t=e,Fr(this.Fe(t))},o.$c=function(e){return TL(this.Ie(e))},o.ec=function(){return new o9n(this)},o.Vc=function(){return KIn(this.Je())},o._c=function(e){return TL(this.Ke(e))},w(le,"AbstractNavigableMap",2090),b(629,Ff,Nu,ZA),o.Hc=function(e){return L(e,44)&&MNn(this.b,u(e,44))},o.Kc=function(){return this.b.De()},o.Mc=function(e){var t;return L(e,44)?(t=u(e,44),this.b.Le(t)):!1},o.gc=function(){return this.b.gc()},w(le,"AbstractNavigableMap/EntrySet",629),b(1146,Ff,wtn,o9n),o.Nc=function(){return new cM(this)},o.$b=function(){this.a.$b()},o.Hc=function(e){return wV(this.a,e)},o.Kc=function(){var e;return e=this.a.vc().b.De(),new s9n(e)},o.Mc=function(e){return wV(this.a,e)?(this.a.Bc(e),!0):!1},o.gc=function(){return this.a.gc()},w(le,"AbstractNavigableMap/NavigableKeySet",1146),b(1147,1,Pi,s9n),o.Nb=function(e){_i(this,e)},o.Ob=function(){return LL(this.a.a)},o.Pb=function(){var e;return e=oSn(this.a),e.ld()},o.Qb=function(){dPn(this.a)},w(le,"AbstractNavigableMap/NavigableKeySet/1",1147),b(2103,31,pw),o.Fc=function(e){return Tp(ym(this,e),_m),!0},o.Gc=function(e){return Jn(e),x7(e!=this,"Can't add a queue to itself"),Ki(this,e)},o.$b=function(){for(;w$(this)!=null;);},w(le,"AbstractQueue",2103),b(310,31,{4:1,20:1,31:1,16:1},Mg,dLn),o.Fc=function(e){return vJ(this,e),!0},o.$b=function(){TJ(this)},o.Hc=function(e){return Zxn(new V6(this),e)},o.dc=function(){return t6(this)},o.Kc=function(){return new V6(this)},o.Mc=function(e){return p2e(new V6(this),e)},o.gc=function(){return this.c-this.b&this.a.length-1},o.Nc=function(){return new On(this,272)},o.Qc=function(e){var t;return t=this.c-this.b&this.a.length-1,e.length<t&&(e=qE(new Array(t),e)),axn(this,e,t),e.length>t&&$t(e,t,null),e},o.b=0,o.c=0,w(le,"ArrayDeque",310),b(459,1,Pi,V6),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a!=this.b},o.Pb=function(){return xC(this)},o.Qb=function(){W$n(this)},o.a=0,o.b=0,o.c=-1,w(le,"ArrayDeque/IteratorImpl",459),b(13,56,Gzn,Z,Gc,_u),o.bd=function(e,t){bb(this,e,t)},o.Fc=function(e){return nn(this,e)},o.cd=function(e,t){return aY(this,e,t)},o.Gc=function(e){return hi(this,e)},o.$b=function(){I0(this.c,0)},o.Hc=function(e){return qr(this,e,0)!=-1},o.Jc=function(e){nu(this,e)},o.Xb=function(e){return sn(this,e)},o.dd=function(e){return qr(this,e,0)},o.dc=function(){return this.c.length==0},o.Kc=function(){return new M(this)},o.gd=function(e){return Yl(this,e)},o.Mc=function(e){return du(this,e)},o.ce=function(e,t){xAn(this,e,t)},o.hd=function(e,t){return Go(this,e,t)},o.gc=function(){return this.c.length},o.jd=function(e){Yt(this,e)},o.Pc=function(){return ZM(this.c)},o.Qc=function(e){return Rf(this,e)};var uDe=w(le,"ArrayList",13);b(7,1,Pi,M),o.Nb=function(e){_i(this,e)},o.Ob=function(){return tc(this)},o.Pb=function(){return E(this)},o.Qb=function(){q6(this)},o.a=0,o.b=-1,w(le,"ArrayList/1",7),b(2112,y.Function,{},mE),o.Me=function(e,t){return bt(e,t)},b(151,56,zzn,Fu),o.Hc=function(e){return J$n(this,e)!=-1},o.Jc=function(e){var t,i,r,c;for(Jn(e),i=this.a,r=0,c=i.length;r<c;++r)t=i[r],e.Cd(t)},o.Xb=function(e){return YPn(this,e)},o.hd=function(e,t){var i;return i=(Nn(e,this.a.length),this.a[e]),$t(this.a,e,t),i},o.gc=function(){return this.a.length},o.jd=function(e){QN(this.a,this.a.length,e)},o.Pc=function(){return oBn(this,F(ki,Kn,1,this.a.length,5,1))},o.Qc=function(e){return oBn(this,e)},w(le,"Arrays/ArrayList",151);var sr,Wh,hI;b(953,56,zzn,Sbn),o.Hc=function(e){return!1},o.Xb=function(e){return mX(e)},o.Kc=function(){return Ln(),l4(),fv},o.ed=function(){return Ln(),l4(),fv},o.gc=function(){return 0},w(le,"Collections/EmptyList",953),b(954,1,Hh,Pbn),o.Nb=function(e){_i(this,e)},o.Rb=function(e){throw T(new Ie)},o.Ob=function(){return!1},o.Sb=function(){return!1},o.Pb=function(){throw T(new nc)},o.Tb=function(){return 0},o.Ub=function(){throw T(new nc)},o.Vb=function(){return-1},o.Qb=function(){throw T(new Mu)},o.Wb=function(e){throw T(new Mu)};var fv;w(le,"Collections/EmptyListIterator",954),b(956,2065,Km,Ibn),o._b=function(e){return!1},o.uc=function(e){return!1},o.vc=function(){return Ln(),hI},o.xc=function(e){return null},o.ec=function(){return Ln(),hI},o.gc=function(){return 0},o.Cc=function(){return Ln(),sr},w(le,"Collections/EmptyMap",956),b(955,Ff,r3,Obn),o.Hc=function(e){return!1},o.Kc=function(){return Ln(),l4(),fv},o.gc=function(){return 0},w(le,"Collections/EmptySet",955),b(608,56,{3:1,20:1,31:1,56:1,16:1,15:1},nL),o.Hc=function(e){return mc(this.a,e)},o.Xb=function(e){return Nn(e,1),this.a},o.gc=function(){return 1},w(le,"Collections/SingletonList",608),b(384,1,Nzn,Q3),o.Jc=function(e){qi(this,e)},o.Lc=function(){return new Cn(null,this.Nc())},o.Nc=function(){return new On(this,0)},o.Oc=function(){return new Cn(null,this.Nc())},o.Fc=function(e){return fEn()},o.Gc=function(e){return hEn()},o.$b=function(){lEn()},o.Hc=function(e){return t7(this,e)},o.Ic=function(e){return YEn(this,e)},o.dc=function(){return this.b.dc()},o.Kc=function(){return new J3(this.b.Kc())},o.Mc=function(e){return aEn()},o.gc=function(){return this.b.gc()},o.Pc=function(){return this.b.Pc()},o.Qc=function(e){return ZEn(this,e)},o.Ib=function(){return Jr(this.b)},w(le,"Collections/UnmodifiableCollection",384),b(383,1,Pi,J3),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.b.Ob()},o.Pb=function(){return this.b.Pb()},o.Qb=function(){dEn()},w(le,"Collections/UnmodifiableCollectionIterator",383),b(540,384,Xzn,KM),o.Nc=function(){return new On(this,16)},o.bd=function(e,t){throw T(new Ie)},o.cd=function(e,t){throw T(new Ie)},o.Fb=function(e){return rt(this.a,e)},o.Xb=function(e){return this.a.Xb(e)},o.Hb=function(){return mt(this.a)},o.dd=function(e){return this.a.dd(e)},o.dc=function(){return this.a.dc()},o.ed=function(){return new GX(this.a.fd(0))},o.fd=function(e){return new GX(this.a.fd(e))},o.gd=function(e){throw T(new Ie)},o.hd=function(e,t){throw T(new Ie)},o.jd=function(e){throw T(new Ie)},o.kd=function(e,t){return new KM(this.a.kd(e,t))},w(le,"Collections/UnmodifiableList",540),b(705,383,Hh,GX),o.Qb=function(){dEn()},o.Rb=function(e){throw T(new Ie)},o.Sb=function(){return this.a.Sb()},o.Tb=function(){return this.a.Tb()},o.Ub=function(){return this.a.Ub()},o.Vb=function(){return this.a.Vb()},o.Wb=function(e){throw T(new Ie)},w(le,"Collections/UnmodifiableListIterator",705),b(609,1,Xb,eL),o.wc=function(e){f5(this,e)},o.yc=function(e,t,i){return hx(this,e,t,i)},o.$b=function(){throw T(new Ie)},o._b=function(e){return this.c._b(e)},o.uc=function(e){return eMn(this,e)},o.vc=function(){return P4(this)},o.Fb=function(e){return tMn(this,e)},o.xc=function(e){return this.c.xc(e)},o.Hb=function(){return mt(this.c)},o.dc=function(){return this.c.dc()},o.ec=function(){return pOn(this)},o.zc=function(e,t){throw T(new Ie)},o.Bc=function(e){throw T(new Ie)},o.gc=function(){return this.c.gc()},o.Ib=function(){return Jr(this.c)},o.Cc=function(){return gOn(this)},w(le,"Collections/UnmodifiableMap",609),b(396,384,rK,r4),o.Nc=function(){return new On(this,1)},o.Fb=function(e){return rt(this.b,e)},o.Hb=function(){return mt(this.b)},w(le,"Collections/UnmodifiableSet",396),b(957,396,rK,qjn),o.Hc=function(e){return nMn(this,e)},o.Ic=function(e){return this.b.Ic(e)},o.Kc=function(){var e;return e=this.b.Kc(),new f9n(e)},o.Pc=function(){var e;return e=this.b.Pc(),WLn(e,e.length),e},o.Qc=function(e){return eAn(this,e)},w(le,"Collections/UnmodifiableMap/UnmodifiableEntrySet",957),b(958,1,Pi,f9n),o.Nb=function(e){_i(this,e)},o.Pb=function(){return new jG(u(this.a.Pb(),44))},o.Ob=function(){return this.a.Ob()},o.Qb=function(){throw T(new Ie)},w(le,"Collections/UnmodifiableMap/UnmodifiableEntrySet/1",958),b(703,1,OK,jG),o.Fb=function(e){return this.a.Fb(e)},o.ld=function(){return this.a.ld()},o.md=function(){return this.a.md()},o.Hb=function(){return this.a.Hb()},o.nd=function(e){throw T(new Ie)},o.Ib=function(){return Jr(this.a)},w(le,"Collections/UnmodifiableMap/UnmodifiableEntrySet/UnmodifiableEntry",703),b(610,540,{20:1,16:1,15:1,59:1},jL),w(le,"Collections/UnmodifiableRandomAccessList",610),b(704,396,Dzn,zX),o.Nc=function(){return new cM(this)},o.Fb=function(e){return rt(this.a,e)},o.Hb=function(){return mt(this.a)},w(le,"Collections/UnmodifiableSortedSet",704),b(858,1,AK,Abn),o.Ne=function(e,t){var i;return i=XLn(u(e,12),u(t,12)),i!=0?i:CUn(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(le,"Comparator/lambda$0$Type",858);var Iun,YF,Oun;b(769,1,AK,xU),o.Ne=function(e,t){return x0e(u(e,34),u(t,34))},o.Fb=function(e){return this===e},o.Oe=function(){return jb(),Oun},w(le,"Comparators/NaturalOrderComparator",769),b(1226,1,AK,Lbn),o.Ne=function(e,t){return $0e(u(e,34),u(t,34))},o.Fb=function(e){return this===e},o.Oe=function(){return jb(),YF},w(le,"Comparators/ReverseNaturalOrderComparator",1226),b(52,1,AK,Ce),o.Fb=function(e){return this===e},o.Ne=function(e,t){return this.a.Ne(t,e)},o.Oe=function(){return this.a},w(le,"Comparators/ReversedComparator",52),b(175,63,Il,Ko),w(le,"ConcurrentModificationException",175);var EQn,MQn;b(1948,1,Iy,Nbn),o.Pe=function(e){OKn(this,e)},o.Ib=function(){return"DoubleSummaryStatistics[count = "+_6(this.a)+", avg = "+(NL(this.a,0)?BJ(this)/id(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+BJ(this)+"]"},o.a=0,o.b=li,o.c=Pt,o.d=0,o.e=0,o.f=0,w(le,"DoubleSummaryStatistics",1948),b(1868,63,Il,$yn),w(le,"EmptyStackException",1868),b(461,2065,Xb,y5),o.zc=function(e,t){return gV(this,e,t)},o.$b=function(){rOn(this)},o._b=function(e){return vMn(this,e)},o.uc=function(e){var t,i;for(i=new dp(this.a);i.a<i.c.a.length;)if(t=n5(i),mc(e,this.b[t.g]))return!0;return!1},o.vc=function(){return new l9n(this)},o.xc=function(e){return Mr(this,e)},o.Bc=function(e){return hJ(this,e)},o.gc=function(){return this.a.c},w(le,"EnumMap",461),b(1340,Ff,Nu,l9n),o.$b=function(){rOn(this.a)},o.Hc=function(e){return vLn(this,e)},o.Kc=function(){return new iIn(this.a)},o.Mc=function(e){var t;return vLn(this,e)?(t=u(e,44).ld(),hJ(this.a,t),!0):!1},o.gc=function(){return this.a.a.c},w(le,"EnumMap/EntrySet",1340),b(1341,1,Pi,iIn),o.Nb=function(e){_i(this,e)},o.Pb=function(){return this.b=n5(this.a),new yMn(this.c,this.b)},o.Ob=function(){return IX(this.a)},o.Qb=function(){R0(!!this.b),hJ(this.c,this.b),this.b=null},w(le,"EnumMap/EntrySetIterator",1341),b(1342,2082,OK,yMn),o.ld=function(){return this.a},o.md=function(){return this.b.b[this.a.g]},o.nd=function(e){return ZV(this.b.b,this.a.g,e)},w(le,"EnumMap/MapEntry",1342),b(181,Ff,{20:1,31:1,16:1,181:1,21:1});var TQn=w(le,"EnumSet",181);b(162,181,{20:1,31:1,16:1,181:1,162:1,21:1},_o),o.Fc=function(e){return _s(this,u(e,22))},o.Hc=function(e){return JN(this,e)},o.Kc=function(){return new dp(this)},o.Mc=function(e){return aIn(this,e)},o.gc=function(){return this.c},o.c=0,w(le,"EnumSet/EnumSetImpl",162),b(356,1,Pi,dp),o.Nb=function(e){_i(this,e)},o.Pb=function(){return n5(this)},o.Ob=function(){return IX(this)},o.Qb=function(){R0(this.b!=-1),$t(this.c.b,this.b,null),--this.c.c,this.b=-1},o.a=-1,o.b=-1,w(le,"EnumSet/EnumSetImpl/IteratorImpl",356),b(45,498,n2,de,ap,BTn),o.Be=function(e,t){return x(e)===x(t)||e!=null&&rt(e,t)},o.Ce=function(e){var t;return e==null?0:(t=mt(e),t|0)},w(le,"HashMap",45),b(49,Ff,jtn,ni,zE,R6),o.Fc=function(e){return fi(this,e)},o.$b=function(){this.a.$b()},o.Hc=function(e){return sf(this,e)},o.dc=function(){return this.a.gc()==0},o.Kc=function(){return this.a.ec().Kc()},o.Mc=function(e){return DX(this,e)},o.gc=function(){return this.a.gc()};var oDe=w(le,"HashSet",49);b(1897,1,jy,Dbn),o.Dd=function(e){Fxn(this,e)},o.Ib=function(){return"IntSummaryStatistics[count = "+_6(this.a)+", avg = "+(NL(this.a,0)?id(this.d)/id(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+_6(this.d)+"]"},o.a=0,o.b=Wi,o.c=et,o.d=0,w(le,"IntSummaryStatistics",1897),b(1062,1,qh,iCn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new VJ(this)},o.c=0,w(le,"InternalHashCodeMap",1062),b(726,1,Pi,VJ),o.Nb=function(e){_i(this,e)},o.Pb=function(){return this.d=this.a[this.c++],this.d},o.Ob=function(){var e;return this.c<this.a.length?!0:(e=this.b.next(),e.done?!1:(this.a=e.value[1],this.c=0,!0))},o.Qb=function(){_nn(this.e,this.d.ld()),this.c!=0&&--this.c},o.c=0,o.d=null,w(le,"InternalHashCodeMap/1",726);var CQn;b(1060,1,qh,rCn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new CJ(this)},o.c=0,o.d=0,w(le,"InternalStringMap",1060),b(725,1,Pi,CJ),o.Nb=function(e){_i(this,e)},o.Pb=function(){return this.c=this.a,this.a=this.b.next(),new hPn(this.d,this.c,this.d.d)},o.Ob=function(){return!this.a.done},o.Qb=function(){Gxn(this.d,this.c.value[0])},w(le,"InternalStringMap/1",725),b(1061,2082,OK,hPn),o.ld=function(){return this.b.value[0]},o.md=function(){return this.a.d!=this.c?a6(this.a,this.b.value[0]):this.b.value[1]},o.nd=function(e){return $b(this.a,this.b.value[0],e)},o.c=0,w(le,"InternalStringMap/2",1061),b(215,45,n2,Ql,XJ),o.$b=function(){xSn(this)},o._b=function(e){return kMn(this,e)},o.uc=function(e){var t;for(t=this.d.a;t!=this.d;){if(mc(t.e,e))return!0;t=t.a}return!1},o.vc=function(){return new PG(this)},o.xc=function(e){return Df(this,e)},o.zc=function(e,t){return s1(this,e,t)},o.Bc=function(e){return UDn(this,e)},o.gc=function(){return c6(this.e)},o.c=!1,w(le,"LinkedHashMap",215),b(400,397,{494:1,397:1,400:1,44:1},cSn,qV),w(le,"LinkedHashMap/ChainEntry",400),b(715,Ff,Nu,PG),o.$b=function(){xSn(this.a)},o.Hc=function(e){return kLn(this,e)},o.Kc=function(){return new $W(this)},o.Mc=function(e){var t;return kLn(this,e)?(t=u(e,44).ld(),UDn(this.a,t),!0):!1},o.gc=function(){return c6(this.a.e)},w(le,"LinkedHashMap/EntrySet",715),b(716,1,Pi,$W),o.Nb=function(e){_i(this,e)},o.Pb=function(){return WDn(this)},o.Ob=function(){return this.c!=this.d.a.d},o.Qb=function(){R0(!!this.a),RN(this.d.a.e.g,this.b),eW(this.a),Kp(this.d.a.e,this.a.d),this.b=this.d.a.e.g,this.a=null},o.b=0,w(le,"LinkedHashMap/EntrySet/EntryIterator",716),b(174,49,jtn,rh,MN,sW);var sDe=w(le,"LinkedHashSet",174);b(67,2062,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1},Mt,$N),o.Fc=function(e){return Re(this,e)},o.$b=function(){vo(this)},o.fd=function(e){return ge(this,e)},o.gc=function(){return this.b},o.b=0;var fDe=w(le,"LinkedList",67);b(981,1,Hh,lPn),o.Nb=function(e){_i(this,e)},o.Rb=function(e){_7(this,e)},o.Ob=function(){return Q9(this)},o.Sb=function(){return this.b.b!=this.d.a},o.Pb=function(){return be(this)},o.Tb=function(){return this.a},o.Ub=function(){return wLn(this)},o.Vb=function(){return this.a-1},o.Qb=function(){p$(this)},o.Wb=function(e){R0(!!this.c),this.c.c=e},o.a=0,o.c=null,w(le,"LinkedList/ListIteratorImpl",981),b(617,1,{},AA),w(le,"LinkedList/Node",617),b(2057,1,{});var Aun,SQn;w(le,"Locale",2057),b(873,2057,{},$bn),o.Ib=function(){return""},w(le,"Locale/1",873),b(874,2057,{},xbn),o.Ib=function(){return"unknown"},w(le,"Locale/4",874),b(112,63,{3:1,103:1,63:1,82:1,112:1},nc,IOn),w(le,"NoSuchElementException",112),b(475,1,{475:1},wL),o.Fb=function(e){var t;return e===this?!0:L(e,475)?(t=u(e,475),mc(this.a,t.a)):!1},o.Hb=function(){return yg(this.a)},o.Ib=function(){return this.a!=null?Pzn+A6(this.a)+")":"Optional.empty()"};var Lun;w(le,"Optional",475),b(414,1,{414:1},qTn,SN),o.Fb=function(e){var t;return e===this?!0:L(e,414)?(t=u(e,414),this.a==t.a&&bt(this.b,t.b)==0):!1},o.Hb=function(){return this.a?wi(this.b):0},o.Ib=function(){return this.a?"OptionalDouble.of("+(""+this.b)+")":"OptionalDouble.empty()"},o.a=!1,o.b=0;var ZF;w(le,"OptionalDouble",414),b(524,1,{524:1},UTn,uSn),o.Fb=function(e){var t;return e===this?!0:L(e,524)?(t=u(e,524),this.a==t.a&&jc(this.b,t.b)==0):!1},o.Hb=function(){return this.a?this.b:0},o.Ib=function(){return this.a?"OptionalInt.of("+(""+this.b)+")":"OptionalInt.empty()"},o.a=!1,o.b=0;var PQn;w(le,"OptionalInt",524),b(510,2103,pw,dT),o.Gc=function(e){return EZ(this,e)},o.$b=function(){I0(this.b.c,0)},o.Hc=function(e){return(e==null?-1:qr(this.b,e,0))!=-1},o.Kc=function(){return new h9n(this)},o.Mc=function(e){return lxn(this,e)},o.gc=function(){return this.b.c.length},o.Nc=function(){return new On(this,256)},o.Pc=function(){return ZM(this.b.c)},o.Qc=function(e){return Rf(this.b,e)},w(le,"PriorityQueue",510),b(1296,1,Pi,h9n),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a<this.c.b.c.length},o.Pb=function(){return oe(this.a<this.c.b.c.length),this.b=this.a++,sn(this.c.b,this.b)},o.Qb=function(){R0(this.b!=-1),T$(this.c,this.a=this.b),this.b=-1},o.a=0,o.b=-1,w(le,"PriorityQueue/1",1296),b(234,1,{234:1},dx,qT),o.a=0,o.b=0;var Nun,Dun,hDe=0;w(le,"Random",234),b(25,1,Io,On,pb,SOn),o.Ad=function(e){return(this.a&e)!=0},o.yd=function(){return this.a},o.zd=function(){return vW(this),this.c},o.Nb=function(e){vW(this),this.d.Nb(e)},o.Bd=function(e){return y$n(this,e)},o.a=0,o.c=0,w(le,"Spliterators/IteratorSpliterator",25),b(495,25,Io,cM),w(le,"SortedSet/1",495),b(611,1,Iy,TG),o.Pe=function(e){this.a.Cd(e)},w(le,"Spliterator/OfDouble/0methodref$accept$Type",611),b(612,1,Iy,MG),o.Pe=function(e){this.a.Cd(e)},w(le,"Spliterator/OfDouble/1methodref$accept$Type",612),b(613,1,jy,CG),o.Dd=function(e){this.a.Cd(Y(e))},w(le,"Spliterator/OfInt/2methodref$accept$Type",613),b(614,1,jy,SG),o.Dd=function(e){this.a.Cd(Y(e))},w(le,"Spliterator/OfInt/3methodref$accept$Type",614),b(625,1,Io),o.Nb=function(e){Tz(this,e)},o.Ad=function(e){return(this.d&e)!=0},o.yd=function(){return this.d},o.zd=function(){return this.e},o.d=0,o.e=0,w(le,"Spliterators/BaseSpliterator",625),b(736,625,Io),o.Qe=function(e){lg(this,e)},o.Nb=function(e){L(e,189)?lg(this,u(e,189)):lg(this,new MG(e))},o.Bd=function(e){return L(e,189)?this.Re(u(e,189)):this.Re(new TG(e))},w(le,"Spliterators/AbstractDoubleSpliterator",736),b(735,625,Io),o.Qe=function(e){lg(this,e)},o.Nb=function(e){L(e,202)?lg(this,u(e,202)):lg(this,new SG(e))},o.Bd=function(e){return L(e,202)?this.Re(u(e,202)):this.Re(new CG(e))},w(le,"Spliterators/AbstractIntSpliterator",735),b(500,625,Io),w(le,"Spliterators/AbstractSpliterator",500),b(706,1,Io),o.Nb=function(e){Tz(this,e)},o.Ad=function(e){return(this.b&e)!=0},o.yd=function(){return this.b},o.zd=function(){return this.d-this.c},o.b=0,o.c=0,o.d=0,w(le,"Spliterators/BaseArraySpliterator",706),b(960,706,Io,XPn),o.Se=function(e,t){phe(this,u(e,41),t)},o.Nb=function(e){gD(this,e)},o.Bd=function(e){return WT(this,e)},w(le,"Spliterators/ArraySpliterator",960),b(707,706,Io,oPn),o.Se=function(e,t){mhe(this,u(e,189),t)},o.Qe=function(e){gD(this,e)},o.Nb=function(e){L(e,189)?gD(this,u(e,189)):gD(this,new MG(e))},o.Re=function(e){return WT(this,e)},o.Bd=function(e){return L(e,189)?WT(this,u(e,189)):WT(this,new TG(e))},w(le,"Spliterators/DoubleArraySpliterator",707),b(2066,1,Io),o.Nb=function(e){Tz(this,e)},o.Ad=function(e){return(16448&e)!=0},o.yd=function(){return 16448},o.zd=function(){return 0};var IQn;w(le,"Spliterators/EmptySpliterator",2066),b(959,2066,Io,Rbn),o.Qe=function(e){oG(e)},o.Nb=function(e){L(e,202)?oG(u(e,202)):oG(new SG(e))},o.Re=function(e){return Bz(e)},o.Bd=function(e){return L(e,202)?Bz(u(e,202)):Bz(new CG(e))},w(le,"Spliterators/EmptySpliterator/OfInt",959),b(588,56,Vzn,KE),o.bd=function(e,t){E4(e,this.a.c.length+1),bb(this.a,e,t)},o.Fc=function(e){return nn(this.a,e)},o.cd=function(e,t){return E4(e,this.a.c.length+1),aY(this.a,e,t)},o.Gc=function(e){return hi(this.a,e)},o.$b=function(){I0(this.a.c,0)},o.Hc=function(e){return qr(this.a,e,0)!=-1},o.Ic=function(e){return Ek(this.a,e)},o.Jc=function(e){nu(this.a,e)},o.Xb=function(e){return E4(e,this.a.c.length),sn(this.a,e)},o.dd=function(e){return qr(this.a,e,0)},o.dc=function(){return this.a.c.length==0},o.Kc=function(){return new M(this.a)},o.gd=function(e){return E4(e,this.a.c.length),Yl(this.a,e)},o.ce=function(e,t){xAn(this.a,e,t)},o.hd=function(e,t){return E4(e,this.a.c.length),Go(this.a,e,t)},o.gc=function(){return this.a.c.length},o.jd=function(e){Yt(this.a,e)},o.kd=function(e,t){return new Jl(this.a,e,t)},o.Pc=function(){return ZM(this.a.c)},o.Qc=function(e){return Rf(this.a,e)},o.Ib=function(){return ca(this.a)},w(le,"Vector",588),b(824,588,Vzn,YG),w(le,"Stack",824),b(213,1,{213:1},fd),o.Ib=function(){return bLn(this)},w(le,"StringJoiner",213),b(553,2090,{3:1,85:1,139:1,133:1},rMn,iD),o.$b=function(){$jn(this)},o.De=function(){return new yLn(this)},o.vc=function(){return new ZCn(this)},o.Ee=function(e){return bm(this,e,!0)},o.Fe=function(e){return CRn(this,e)},o.Ge=function(){return nQ(this)},o.He=function(e){return Fk(this,e,!0)},o.Ie=function(e){return bm(this,e,!1)},o.Je=function(){return DDn(this)},o.Ke=function(e){return Fk(this,e,!1)},o.Zc=function(e,t){return RAn(this,e,t)},o.zc=function(e,t){return gRn(this,e,t)},o.Bc=function(e){return uAn(this,e)},o.Le=function(e){return UJ(this,e)},o.gc=function(){return this.c},o.ad=function(e,t){return KAn(this,e,t)},o.c=0,w(le,"TreeMap",553),b(554,1,Pi,yLn,I$),o.Nb=function(e){_i(this,e)},o.Pb=function(){return oSn(this)},o.Ob=function(){return LL(this.a)},o.Qb=function(){dPn(this)},w(le,"TreeMap/EntryIterator",554),b(1142,629,Nu,ZCn),o.$b=function(){$jn(this.a)},w(le,"TreeMap/EntrySet",1142),b(447,397,{494:1,397:1,44:1,447:1},r$),o.b=!1;var lDe=w(le,"TreeMap/Node",447);b(630,1,{},LA),o.Ib=function(){return"State: mv="+this.c+" value="+this.d+" done="+this.a+" found="+this.b},o.a=!1,o.b=!1,o.c=!1,w(le,"TreeMap/State",630),b(631,2090,btn,rR),o.De=function(){return new I$(this.c,this.f,this.b,this.a,this.e,this.d)},o.vc=function(){return new ZA(this)},o.Ee=function(e){return WM(this,bm(this.c,e,!0))},o.Fe=function(e){return WM(this,CRn(this.c,e))},o.Ge=function(){var e;return this.f.Te()?this.a?e=bm(this.c,this.b,!0):e=bm(this.c,this.b,!1):e=nQ(this.c),e&&vT(this,e.d)?e:null},o.He=function(e){return WM(this,Fk(this.c,e,!0))},o.Ie=function(e){return WM(this,bm(this.c,e,!1))},o.Je=function(){var e;return this.f.Ue()?this.d?e=Fk(this.c,this.e,!0):e=Fk(this.c,this.e,!1):e=DDn(this.c),e&&vT(this,e.d)?e:null},o.Ke=function(e){return WM(this,Fk(this.c,e,!1))},o.Zc=function(e,t){if(this.f.Ue()&&this.c.a.Ne(e,this.e)>0)throw T(new Gn(Ttn+e+" greater than "+this.e));return this.f.Te()?cAn(this.c,this.b,this.a,e,t):RAn(this.c,e,t)},o.zc=function(e,t){if(!qx(this.c,this.f,e,this.b,this.a,this.e,this.d))throw T(new Gn(e+" outside the range "+this.b+" to "+this.e));return gRn(this.c,e,t)},o.Bc=function(e){var t;return t=e,qx(this.c,this.f,t,this.b,this.a,this.e,this.d)?uAn(this.c,t):null},o.Le=function(e){return vT(this,e.ld())&&UJ(this.c,e)},o.gc=function(){var e,t,i;if(this.f.Te()?this.a?t=bm(this.c,this.b,!0):t=bm(this.c,this.b,!1):t=nQ(this.c),!(t&&vT(this,t.d)&&t))return 0;for(e=0,i=new I$(this.c,this.f,this.b,this.a,this.e,this.d);LL(i.a);i.b=u(XW(i.a),44))++e;return e},o.ad=function(e,t){if(this.f.Te()&&this.c.a.Ne(e,this.b)<0)throw T(new Gn(Ttn+e+Wzn+this.b));return this.f.Ue()?cAn(this.c,e,t,this.e,this.d):KAn(this.c,e,t)},o.a=!1,o.d=!1,w(le,"TreeMap/SubMap",631),b(304,22,DK,uM),o.Te=function(){return!1},o.Ue=function(){return!1};var n_,e_,t_,i_,lI=we(le,"TreeMap/SubMapType",304,ke,Upe,nde);b(1143,304,DK,lCn),o.Ue=function(){return!0},we(le,"TreeMap/SubMapType/1",1143,lI,null,null),b(1144,304,DK,kCn),o.Te=function(){return!0},o.Ue=function(){return!0},we(le,"TreeMap/SubMapType/2",1144,lI,null,null),b(1145,304,DK,hCn),o.Te=function(){return!0},we(le,"TreeMap/SubMapType/3",1145,lI,null,null);var OQn;b(157,Ff,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},UG,Ul,Y3),o.Nc=function(){return new cM(this)},o.Fc=function(e){return B7(this,e)},o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a._b(e)},o.Kc=function(){return this.a.ec().Kc()},o.Mc=function(e){return EN(this,e)},o.gc=function(){return this.a.gc()};var aDe=w(le,"TreeSet",157);b(1082,1,{},a9n),o.Ve=function(e,t){return pae(this.a,e,t)},w($K,"BinaryOperator/lambda$0$Type",1082),b(1083,1,{},d9n),o.Ve=function(e,t){return mae(this.a,e,t)},w($K,"BinaryOperator/lambda$1$Type",1083),b(952,1,{},Kbn),o.Kb=function(e){return e},w($K,"Function/lambda$0$Type",952),b(395,1,Le,Z3),o.Mb=function(e){return!this.a.Mb(e)},w($K,"Predicate/lambda$2$Type",395),b(581,1,{581:1});var AQn=w(Y5,"Handler",581);b(2107,1,ky),o.xe=function(){return"DUMMY"},o.Ib=function(){return this.xe()};var $un;w(Y5,"Level",2107),b(1706,2107,ky,Bbn),o.xe=function(){return"INFO"},w(Y5,"Level/LevelInfo",1706),b(1843,1,{},Byn);var r_;w(Y5,"LogManager",1843),b(1896,1,ky,aPn),o.b=null,w(Y5,"LogRecord",1896),b(525,1,{525:1},VD),o.e=!1;var LQn=!1,NQn=!1,Uf=!1,DQn=!1,$Qn=!1;w(Y5,"Logger",525),b(835,581,{581:1},RU),w(Y5,"SimpleConsoleLogHandler",835),b(108,22,{3:1,34:1,22:1,108:1},$L);var xun,Yr,Sw,xr=we(ai,"Collector/Characteristics",108,ke,A2e,ede),xQn;b(758,1,{},CW),w(ai,"CollectorImpl",758),b(1074,1,{},Fbn),o.Ve=function(e,t){return l5e(u(e,213),u(t,213))},w(ai,"Collectors/10methodref$merge$Type",1074),b(1075,1,{},_bn),o.Kb=function(e){return bLn(u(e,213))},w(ai,"Collectors/11methodref$toString$Type",1075),b(1076,1,{},b9n),o.Kb=function(e){return _n(),!!kX(e)},w(ai,"Collectors/12methodref$test$Type",1076),b(144,1,{},yu),o.Yd=function(e,t){u(e,16).Fc(t)},w(ai,"Collectors/20methodref$add$Type",144),b(146,1,{},ju),o.Xe=function(){return new Z},w(ai,"Collectors/21methodref$ctor$Type",146),b(359,1,{},Y2),o.Xe=function(){return new ni},w(ai,"Collectors/23methodref$ctor$Type",359),b(360,1,{},Z2),o.Yd=function(e,t){fi(u(e,49),t)},w(ai,"Collectors/24methodref$add$Type",360),b(1069,1,{},Hbn),o.Ve=function(e,t){return cMn(u(e,15),u(t,16))},w(ai,"Collectors/4methodref$addAll$Type",1069),b(1073,1,{},qbn),o.Yd=function(e,t){pl(u(e,213),u(t,484))},w(ai,"Collectors/9methodref$add$Type",1073),b(1072,1,{},IPn),o.Xe=function(){return new fd(this.a,this.b,this.c)},w(ai,"Collectors/lambda$15$Type",1072),b(1077,1,{},Ubn),o.Xe=function(){var e;return e=new Ql,s1(e,(_n(),!1),new Z),s1(e,!0,new Z),e},w(ai,"Collectors/lambda$22$Type",1077),b(1078,1,{},w9n),o.Xe=function(){return S(C(ki,1),Kn,1,5,[this.a])},w(ai,"Collectors/lambda$25$Type",1078),b(1079,1,{},g9n),o.Yd=function(e,t){R0e(this.a,cd(e))},w(ai,"Collectors/lambda$26$Type",1079),b(1080,1,{},p9n),o.Ve=function(e,t){return lwe(this.a,cd(e),cd(t))},w(ai,"Collectors/lambda$27$Type",1080),b(1081,1,{},Gbn),o.Kb=function(e){return cd(e)[0]},w(ai,"Collectors/lambda$28$Type",1081),b(728,1,{},KU),o.Ve=function(e,t){return uW(e,t)},w(ai,"Collectors/lambda$4$Type",728),b(145,1,{},Eu),o.Ve=function(e,t){return zhe(u(e,16),u(t,16))},w(ai,"Collectors/lambda$42$Type",145),b(361,1,{},np),o.Ve=function(e,t){return Xhe(u(e,49),u(t,49))},w(ai,"Collectors/lambda$50$Type",361),b(362,1,{},ep),o.Kb=function(e){return u(e,49)},w(ai,"Collectors/lambda$51$Type",362),b(1068,1,{},m9n),o.Yd=function(e,t){p6e(this.a,u(e,85),t)},w(ai,"Collectors/lambda$7$Type",1068),b(1070,1,{},zbn),o.Ve=function(e,t){return Xve(u(e,85),u(t,85),new Hbn)},w(ai,"Collectors/lambda$8$Type",1070),b(1071,1,{},v9n),o.Kb=function(e){return U5e(this.a,u(e,85))},w(ai,"Collectors/lambda$9$Type",1071),b(550,1,{}),o.$e=function(){X6(this)},o.d=!1,w(ai,"TerminatableStream",550),b(827,550,Ctn,cV),o.$e=function(){X6(this)},w(ai,"DoubleStreamImpl",827),b(1847,736,Io,OPn),o.Re=function(e){return X9e(this,u(e,189))},o.a=null,w(ai,"DoubleStreamImpl/2",1847),b(1848,1,Iy,k9n),o.Pe=function(e){Fle(this.a,e)},w(ai,"DoubleStreamImpl/2/lambda$0$Type",1848),b(1845,1,Iy,y9n),o.Pe=function(e){Ble(this.a,e)},w(ai,"DoubleStreamImpl/lambda$0$Type",1845),b(1846,1,Iy,j9n),o.Pe=function(e){OKn(this.a,e)},w(ai,"DoubleStreamImpl/lambda$2$Type",1846),b(1397,735,Io,vNn),o.Re=function(e){return Npe(this,u(e,202))},o.a=0,o.b=0,o.c=0,w(ai,"IntStream/5",1397),b(806,550,Ctn,uV),o.$e=function(){X6(this)},o._e=function(){return X1(this),this.a},w(ai,"IntStreamImpl",806),b(807,550,Ctn,Az),o.$e=function(){X6(this)},o._e=function(){return X1(this),_X(),IQn},w(ai,"IntStreamImpl/Empty",807),b(1687,1,jy,E9n),o.Dd=function(e){Fxn(this.a,e)},w(ai,"IntStreamImpl/lambda$4$Type",1687);var dDe=Dt(ai,"Stream");b(26,550,{533:1,687:1,848:1},Cn),o.$e=function(){X6(this)};var v3;w(ai,"StreamImpl",26),b(1102,500,Io,rPn),o.Bd=function(e){for(;x4e(this);){if(this.a.Bd(e))return!0;X6(this.b),this.b=null,this.a=null}return!1},w(ai,"StreamImpl/1",1102),b(1103,1,re,M9n),o.Cd=function(e){f0e(this.a,u(e,848))},w(ai,"StreamImpl/1/lambda$0$Type",1103),b(1104,1,Le,T9n),o.Mb=function(e){return fi(this.a,e)},w(ai,"StreamImpl/1methodref$add$Type",1104),b(1105,500,Io,KOn),o.Bd=function(e){var t;return this.a||(t=new Z,this.b.a.Nb(new C9n(t)),Ln(),Yt(t,this.c),this.a=new On(t,16)),y$n(this.a,e)},o.a=null,w(ai,"StreamImpl/5",1105),b(1106,1,re,C9n),o.Cd=function(e){nn(this.a,e)},w(ai,"StreamImpl/5/2methodref$add$Type",1106),b(737,500,Io,eQ),o.Bd=function(e){for(this.b=!1;!this.b&&this.c.Bd(new jMn(this,e)););return this.b},o.b=!1,w(ai,"StreamImpl/FilterSpliterator",737),b(1096,1,re,jMn),o.Cd=function(e){cwe(this.a,this.b,e)},w(ai,"StreamImpl/FilterSpliterator/lambda$0$Type",1096),b(1091,736,Io,ONn),o.Re=function(e){return Bae(this,u(e,189))},w(ai,"StreamImpl/MapToDoubleSpliterator",1091),b(1095,1,re,EMn),o.Cd=function(e){fle(this.a,this.b,e)},w(ai,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095),b(1090,735,Io,ANn),o.Re=function(e){return Fae(this,u(e,202))},w(ai,"StreamImpl/MapToIntSpliterator",1090),b(1094,1,re,MMn),o.Cd=function(e){hle(this.a,this.b,e)},w(ai,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094),b(734,500,Io,FJ),o.Bd=function(e){return ePn(this,e)},w(ai,"StreamImpl/MapToObjSpliterator",734),b(1093,1,re,TMn),o.Cd=function(e){lle(this.a,this.b,e)},w(ai,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093),b(1092,500,Io,uxn),o.Bd=function(e){for(;NL(this.b,0);){if(!this.a.Bd(new Xbn))return!1;this.b=bs(this.b,1)}return this.a.Bd(e)},o.b=0,w(ai,"StreamImpl/SkipSpliterator",1092),b(1097,1,re,Xbn),o.Cd=function(e){},w(ai,"StreamImpl/SkipSpliterator/lambda$0$Type",1097),b(626,1,re,NA),o.Cd=function(e){t9n(this,e)},w(ai,"StreamImpl/ValueConsumer",626),b(1098,1,re,Vbn),o.Cd=function(e){Va()},w(ai,"StreamImpl/lambda$0$Type",1098),b(1099,1,re,Wbn),o.Cd=function(e){Va()},w(ai,"StreamImpl/lambda$1$Type",1099),b(1100,1,{},S9n),o.Ve=function(e,t){return mde(this.a,e,t)},w(ai,"StreamImpl/lambda$4$Type",1100),b(1101,1,re,CMn),o.Cd=function(e){Mae(this.b,this.a,e)},w(ai,"StreamImpl/lambda$5$Type",1101),b(1107,1,re,P9n),o.Cd=function(e){$ve(this.a,u(e,380))},w(ai,"TerminatableStream/lambda$0$Type",1107),b(2142,1,{}),b(2014,1,{},Jbn),w("javaemul.internal","ConsoleLogger",2014);var bDe=0;b(2134,1,{}),b(1830,1,re,Qbn),o.Cd=function(e){u(e,317)},w(Hm,"BowyerWatsonTriangulation/lambda$0$Type",1830),b(1831,1,re,I9n),o.Cd=function(e){Ki(this.a,u(e,317).e)},w(Hm,"BowyerWatsonTriangulation/lambda$1$Type",1831),b(1832,1,re,Ybn),o.Cd=function(e){u(e,177)},w(Hm,"BowyerWatsonTriangulation/lambda$2$Type",1832),b(1827,1,De,O9n),o.Ne=function(e,t){return m3e(this.a,u(e,177),u(t,177))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Hm,"NaiveMinST/lambda$0$Type",1827),b(449,1,{},Xv),w(Hm,"NodeMicroLayout",449),b(177,1,{177:1},bp),o.Fb=function(e){var t;return L(e,177)?(t=u(e,177),mc(this.a,t.a)&&mc(this.b,t.b)||mc(this.a,t.b)&&mc(this.b,t.a)):!1},o.Hb=function(){return yg(this.a)+yg(this.b)};var wDe=w(Hm,"TEdge",177);b(317,1,{317:1},Fen),o.Fb=function(e){var t;return L(e,317)?(t=u(e,317),tC(this,t.a)&&tC(this,t.b)&&tC(this,t.c)):!1},o.Hb=function(){return yg(this.a)+yg(this.b)+yg(this.c)},w(Hm,"TTriangle",317),b(225,1,{225:1},NM),w(Hm,"Tree",225),b(1218,1,{},EAn),w(Yzn,"Scanline",1218);var RQn=Dt(Yzn,Zzn);b(1758,1,{},m$n),w(zh,"CGraph",1758),b(316,1,{316:1},CAn),o.b=0,o.c=0,o.d=0,o.g=0,o.i=0,o.k=li,w(zh,"CGroup",316),b(830,1,{},XG),w(zh,"CGroup/CGroupBuilder",830),b(60,1,{60:1},KSn),o.Ib=function(){var e;return this.j?Ae(this.j.Kb(this)):(ll(aI),aI.o+"@"+(e=lb(this)>>>0,e.toString(16)))},o.f=0,o.i=li;var aI=w(zh,"CNode",60);b(829,1,{},VG),w(zh,"CNode/CNodeBuilder",829);var KQn;b(1590,1,{},Zbn),o.ff=function(e,t){return 0},o.gf=function(e,t){return 0},w(zh,eXn,1590),b(1853,1,{},n0n),o.cf=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(a=Pt,r=new M(e.a.b);r.a<r.c.c.length;)t=u(E(r),60),a=y.Math.min(a,t.a.j.d.c+t.b.a);for(m=new Mt,f=new M(e.a.a);f.a<f.c.c.length;)s=u(E(f),316),s.k=a,s.g==0&&xt(m,s,m.c.b,m.c);for(;m.b!=0;){for(s=u(m.b==0?null:(oe(m.b!=0),Xo(m,m.a.a)),316),c=s.j.d.c,p=s.a.a.ec().Kc();p.Ob();)d=u(p.Pb(),60),j=s.k+d.b.a,!J6e(e,s,e.d)||d.d.c<j?d.i=j:d.i=d.d.c;for(c-=s.j.i,s.b+=c,e.d==(ci(),Xr)||e.d==Wf?s.c+=c:s.c-=c,g=s.a.a.ec().Kc();g.Ob();)for(d=u(g.Pb(),60),l=d.c.Kc();l.Ob();)h=u(l.Pb(),60),hl(e.d)?k=e.g.ff(d,h):k=e.g.gf(d,h),h.a.k=y.Math.max(h.a.k,d.i+d.d.b+k-h.b.a),zOn(e,h,e.d)&&(h.a.k=y.Math.max(h.a.k,h.d.c-h.b.a)),--h.a.g,h.a.g==0&&Re(m,h.a)}for(i=new M(e.a.b);i.a<i.c.c.length;)t=u(E(i),60),t.d.c=t.i},w(zh,"LongestPathCompaction",1853),b(1756,1,{},uHn),o.e=!1;var BQn,FQn,_Qn,c_=w(zh,rXn,1756);b(1757,1,re,A9n),o.Cd=function(e){Qve(this.a,u(e,42))},w(zh,cXn,1757),b(1854,1,{},e0n),o.df=function(e){var t,i,r,c,s,f,h;for(i=new M(e.a.b);i.a<i.c.c.length;)t=u(E(i),60),t.c.$b();for(c=new M(e.a.b);c.a<c.c.c.length;)for(r=u(E(c),60),f=new M(e.a.b);f.a<f.c.c.length;)s=u(E(f),60),r!=s&&(r.a&&r.a==s.a||(hl(e.d)?h=e.g.gf(r,s):h=e.g.ff(r,s),(s.d.c>r.d.c||r.d.c==s.d.c&&r.d.b<s.d.b)&&x8e(s.d.d+s.d.a+h,r.d.d)&&nZ(s.d.d,r.d.d+r.d.a+h)&&r.c.Fc(s)))},w(zh,"QuadraticConstraintCalculation",1854),b(529,1,{529:1},rL),o.a=!1,o.b=!1,o.c=!1,o.d=!1,w(zh,uXn,529),b(817,1,{},lW),o.df=function(e){this.c=e,Zk(this,new r0n)},w(zh,oXn,817),b(1784,1,{693:1},VOn),o.bf=function(e){Qje(this,u(e,473))},w(zh,sXn,1784),b(1785,1,De,t0n),o.Ne=function(e,t){return sge(u(e,60),u(t,60))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(zh,fXn,1785),b(473,1,{473:1},_z),o.a=!1,w(zh,hXn,473),b(1786,1,De,i0n),o.Ne=function(e,t){return ske(u(e,473),u(t,473))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(zh,lXn,1786),b(1787,1,ph,r0n),o.Lb=function(e){return u(e,60),!0},o.Fb=function(e){return this===e},o.Mb=function(e){return u(e,60),!0},w(zh,"ScanlineConstraintCalculator/lambda$1$Type",1787),b(436,22,{3:1,34:1,22:1,436:1},Hz);var Run,u_,Kun=we(BK,"HighLevelSortingCriterion",436,ke,Rge,tde),HQn;b(435,22,{3:1,34:1,22:1,435:1},qz);var Bun,o_,Fun=we(BK,"LowLevelSortingCriterion",435,ke,Kge,ide),qQn,a2=Dt(oc,"ILayoutMetaDataProvider");b(864,1,ms,A5n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Otn),FK),"Polyomino Traversal Strategy"),"Traversal strategy for trying different candidate positions for polyominoes."),Xun),(l1(),It)),ton),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Atn),FK),"Polyomino Secondary Sorting Criterion"),"Possible secondary sorting criteria for the processing order of polyominoes. They are used when polyominoes are equal according to the primary sorting criterion HighLevelSortingCriterion."),Gun),It),Fun),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ltn),FK),"Polyomino Primary Sorting Criterion"),"Possible primary sorting criteria for the processing order of polyominoes."),qun),It),Kun),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ntn),FK),"Fill Polyominoes"),"Use the Profile Fill algorithm to fill polyominoes to prevent small polyominoes from being placed inside of big polyominoes with large holes. Might increase packing area."),(_n(),!0)),yi),Gt),jn(xn))))};var _un,Hun,qun,Uun,Gun,zun,Xun;w(BK,"PolyominoOptions",864),b(257,22,{3:1,34:1,22:1,257:1},ag);var Vun,Wun,Jun,Qun,Yun,Zun,s_,non,eon,ton=we(BK,"TraversalStrategy",257,ke,$me,rde),UQn;b(218,1,{218:1},c0n),o.Ib=function(){return"NEdge[id="+this.b+" w="+this.g+" d="+this.a+"]"},o.a=1,o.b=0,o.c=0,o.f=!1,o.g=0;var GQn=w(Z5,"NEdge",218);b(182,1,{},hs),w(Z5,"NEdge/NEdgeBuilder",182),b(662,1,{},oL),w(Z5,"NGraph",662),b(125,1,{125:1},DNn),o.c=-1,o.d=0,o.e=0,o.i=-1,o.j=!1;var ion=w(Z5,"NNode",125);b(808,1,Xzn,GG),o.Jc=function(e){qi(this,e)},o.Lc=function(){return new Cn(null,new On(this,16))},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.Oc=function(){return new Cn(null,new On(this,16))},o.bd=function(e,t){++this.b,bb(this.a,e,t)},o.Fc=function(e){return BM(this,e)},o.cd=function(e,t){return++this.b,aY(this.a,e,t)},o.Gc=function(e){return++this.b,hi(this.a,e)},o.$b=function(){++this.b,I0(this.a.c,0)},o.Hc=function(e){return qr(this.a,e,0)!=-1},o.Ic=function(e){return Ek(this.a,e)},o.Xb=function(e){return sn(this.a,e)},o.dd=function(e){return qr(this.a,e,0)},o.dc=function(){return this.a.c.length==0},o.Kc=function(){return Fp(new M(this.a))},o.ed=function(){throw T(new Ie)},o.fd=function(e){throw T(new Ie)},o.gd=function(e){return++this.b,Yl(this.a,e)},o.Mc=function(e){return XX(this,e)},o.hd=function(e,t){return++this.b,Go(this.a,e,t)},o.gc=function(){return this.a.c.length},o.kd=function(e,t){return new Jl(this.a,e,t)},o.Pc=function(){return ZM(this.a.c)},o.Qc=function(e){return Rf(this.a,e)},o.b=0,w(Z5,"NNode/ChangeAwareArrayList",808),b(275,1,{},za),w(Z5,"NNode/NNodeBuilder",275),b(1695,1,{},u0n),o.a=!1,o.f=et,o.j=0,w(Z5,"NetworkSimplex",1695),b(1314,1,re,L9n),o.Cd=function(e){HGn(this.a,u(e,695),!0,!1)},w(aXn,"NodeLabelAndSizeCalculator/lambda$0$Type",1314),b(565,1,{},OE),o.b=!0,o.c=!0,o.d=!0,o.e=!0,w(aXn,"NodeMarginCalculator",565),b(217,1,{217:1}),o.j=!1,o.k=!1;var zQn=w(kd,"Cell",217);b(127,217,{127:1,217:1},RSn),o.jf=function(){return nT(this)},o.kf=function(){var e;return e=this.n,this.a.a+e.b+e.c},w(kd,"AtomicCell",127),b(237,22,{3:1,34:1,22:1,237:1},xL);var bc,Wc,wc,Pw=we(kd,"ContainerArea",237,ke,D2e,cde),XQn;b(336,217,dXn),w(kd,"ContainerCell",336),b(1538,336,dXn,SKn),o.jf=function(){var e;return e=0,this.e?this.b?e=this.b.b:this.a[1][1]&&(e=this.a[1][1].jf()):e=KY(this,qBn(this,!0)),e>0?e+this.n.d+this.n.a:0},o.kf=function(){var e,t,i,r,c;if(c=0,this.e)this.b?c=this.b.a:this.a[1][1]&&(c=this.a[1][1].kf());else if(this.g)c=KY(this,Gx(this,null,!0));else for(t=(wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])),i=0,r=t.length;i<r;++i)e=t[i],c=y.Math.max(c,KY(this,Gx(this,e,!0)));return c>0?c+this.n.b+this.n.c:0},o.lf=function(){var e,t,i,r,c;if(this.g)for(e=Gx(this,null,!1),i=(wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])),r=0,c=i.length;r<c;++r)t=i[r],jqn(this,t,e);else for(i=(wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])),r=0,c=i.length;r<c;++r)t=i[r],e=Gx(this,t,!1),jqn(this,t,e)},o.mf=function(){var e,t,i,r;t=this.i,e=this.n,r=qBn(this,!1),xJ(this,(wf(),bc),t.d+e.d,r),xJ(this,wc,t.d+t.a-e.a-r[2],r),i=t.a-e.d-e.a,r[0]>0&&(r[0]+=this.d,i-=r[0]),r[2]>0&&(r[2]+=this.d,i-=r[2]),this.c.a=y.Math.max(0,i),this.c.d=t.d+e.d+(this.c.a-i)/2,r[1]=y.Math.max(r[1],i),xJ(this,Wc,t.d+e.d+r[0]-(r[1]-i)/2,r)},o.b=null,o.d=0,o.e=!1,o.f=!1,o.g=!1;var f_=0,dI=0;w(kd,"GridContainerCell",1538),b(471,22,{3:1,34:1,22:1,471:1},RL);var pa,Th,zs,VQn=we(kd,"HorizontalLabelAlignment",471,ke,N2e,ude),WQn;b(314,217,{217:1,314:1},fAn,k$n,tAn),o.jf=function(){return qPn(this)},o.kf=function(){return nW(this)},o.a=0,o.c=!1;var gDe=w(kd,"LabelCell",314);b(252,336,{217:1,336:1,252:1},E5),o.jf=function(){return ey(this)},o.kf=function(){return ty(this)},o.lf=function(){NR(this)},o.mf=function(){DR(this)},o.b=0,o.c=0,o.d=!1,w(kd,"StripContainerCell",252),b(1691,1,Le,o0n),o.Mb=function(e){return uhe(u(e,217))},w(kd,"StripContainerCell/lambda$0$Type",1691),b(1692,1,{},s0n),o.Ye=function(e){return u(e,217).kf()},w(kd,"StripContainerCell/lambda$1$Type",1692),b(1693,1,Le,f0n),o.Mb=function(e){return ohe(u(e,217))},w(kd,"StripContainerCell/lambda$2$Type",1693),b(1694,1,{},h0n),o.Ye=function(e){return u(e,217).jf()},w(kd,"StripContainerCell/lambda$3$Type",1694),b(472,22,{3:1,34:1,22:1,472:1},KL);var Xs,ma,kf,JQn=we(kd,"VerticalLabelAlignment",472,ke,L2e,ode),QQn;b(800,1,{},ttn),o.c=0,o.d=0,o.k=0,o.s=0,o.t=0,o.v=!1,o.w=0,o.D=!1,w(nP,"NodeContext",800),b(1536,1,De,l0n),o.Ne=function(e,t){return eCn(u(e,64),u(t,64))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(nP,"NodeContext/0methodref$comparePortSides$Type",1536),b(1537,1,De,a0n),o.Ne=function(e,t){return xye(u(e,117),u(t,117))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(nP,"NodeContext/1methodref$comparePortContexts$Type",1537),b(164,22,{3:1,34:1,22:1,164:1},Vo);var YQn,ZQn,nYn,eYn,tYn,iYn,rYn,cYn,uYn,oYn,sYn,fYn,hYn,lYn,aYn,dYn,bYn,wYn,gYn,pYn,mYn,h_,vYn=we(nP,"NodeLabelLocation",164,ke,jx,sde),kYn;b(117,1,{117:1},sHn),o.a=!1,w(nP,"PortContext",117),b(1541,1,re,d0n),o.Cd=function(e){kEn(u(e,314))},w(Ay,bXn,1541),b(1542,1,Le,b0n),o.Mb=function(e){return!!u(e,117).c},w(Ay,wXn,1542),b(1543,1,re,w0n),o.Cd=function(e){kEn(u(e,117).c)},w(Ay,"LabelPlacer/lambda$2$Type",1543);var ron;b(1540,1,re,g0n),o.Cd=function(e){K0(),Bfe(u(e,117))},w(Ay,"NodeLabelAndSizeUtilities/lambda$0$Type",1540),b(801,1,re,NV),o.Cd=function(e){Zhe(this.b,this.c,this.a,u(e,187))},o.a=!1,o.c=!1,w(Ay,"NodeLabelCellCreator/lambda$0$Type",801),b(1539,1,re,N9n),o.Cd=function(e){Hfe(this.a,u(e,187))},w(Ay,"PortContextCreator/lambda$0$Type",1539);var bI;b(1902,1,{},p0n),w(Um,"GreedyRectangleStripOverlapRemover",1902),b(1903,1,De,m0n),o.Ne=function(e,t){return A1e(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Um,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903),b(1849,1,{},qyn),o.a=5,o.e=0,w(Um,"RectangleStripOverlapRemover",1849),b(1850,1,De,v0n),o.Ne=function(e,t){return L1e(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Um,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850),b(1852,1,De,k0n),o.Ne=function(e,t){return ywe(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Um,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852),b(417,22,{3:1,34:1,22:1,417:1},sM);var ij,l_,a_,rj,yYn=we(Um,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,ke,Xpe,fde),jYn;b(226,1,{226:1},ZN),w(Um,"RectangleStripOverlapRemover/RectangleNode",226),b(1851,1,re,D9n),o.Cd=function(e){s7e(this.a,u(e,226))},w(Um,"RectangleStripOverlapRemover/lambda$1$Type",1851),b(1323,1,De,y0n),o.Ne=function(e,t){return POe(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1323),b(1326,1,{},j0n),o.Kb=function(e){return u(e,334).a},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1326),b(1327,1,Le,E0n),o.Mb=function(e){return u(e,332).a},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1327),b(1328,1,Le,M0n),o.Mb=function(e){return u(e,332).a},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1328),b(1321,1,De,T0n),o.Ne=function(e,t){return rPe(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1321),b(1324,1,{},C0n),o.Kb=function(e){return u(e,334).a},w(mh,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1324),b(781,1,De,BU),o.Ne=function(e,t){return Fve(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/MinNumOfExtensionsComparator",781),b(1319,1,De,S0n),o.Ne=function(e,t){return Vme(u(e,330),u(t,330))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/MinPerimeterComparator",1319),b(1320,1,De,P0n),o.Ne=function(e,t){return L9e(u(e,330),u(t,330))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/MinPerimeterComparatorWithShape",1320),b(1322,1,De,I0n),o.Ne=function(e,t){return TPe(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1322),b(1325,1,{},O0n),o.Kb=function(e){return u(e,334).a},w(mh,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1325),b(782,1,{},Uz),o.Ve=function(e,t){return Bpe(this,u(e,42),u(t,176))},w(mh,"SuccessorCombination",782),b(649,1,{},DA),o.Ve=function(e,t){var i;return eMe((i=u(e,42),u(t,176),i))},w(mh,"SuccessorJitter",649),b(648,1,{},$A),o.Ve=function(e,t){var i;return _Ce((i=u(e,42),u(t,176),i))},w(mh,"SuccessorLineByLine",648),b(573,1,{},vE),o.Ve=function(e,t){var i;return eTe((i=u(e,42),u(t,176),i))},w(mh,"SuccessorManhattan",573),b(1344,1,{},A0n),o.Ve=function(e,t){var i;return lCe((i=u(e,42),u(t,176),i))},w(mh,"SuccessorMaxNormWindingInMathPosSense",1344),b(409,1,{},n4),o.Ve=function(e,t){return MW(this,e,t)},o.c=!1,o.d=!1,o.e=!1,o.f=!1,w(mh,"SuccessorQuadrantsGeneric",409),b(1345,1,{},L0n),o.Kb=function(e){return u(e,334).a},w(mh,"SuccessorQuadrantsGeneric/lambda$0$Type",1345),b(332,22,{3:1,34:1,22:1,332:1},fM),o.a=!1;var cj,uj,oj,sj,EYn=we(tP,Rtn,332,ke,Gpe,hde),MYn;b(1317,1,{}),o.Ib=function(){var e,t,i,r,c,s;for(i=" ",e=Y(0),c=0;c<this.o;c++)i+=""+e.a,e=Y(TSn(e.a));for(i+=`
`,e=Y(0),s=0;s<this.p;s++){for(i+=""+e.a,e=Y(TSn(e.a)),r=0;r<this.o;r++)t=M$(this,r,s),Ec(t,0)==0?i+="_":Ec(t,1)==0?i+="X":i+="0";i+=`
`}return qo(i,0,i.length-1)},o.o=0,o.p=0,w(tP,"TwoBitGrid",1317),b(330,1317,{330:1},XY),o.j=0,o.k=0,w(tP,"PlanarGrid",330),b(176,330,{330:1,176:1}),o.g=0,o.i=0,w(tP,"Polyomino",176);var pDe=Dt(Ly,pXn);b(137,1,Ktn,xA),o.qf=function(e,t){return Sk(this,e,t)},o.nf=function(){return oIn(this)},o.of=function(e){return v(this,e)},o.pf=function(e){return kt(this,e)},w(Ly,"MapPropertyHolder",137),b(1318,137,Ktn,hqn),w(tP,"Polyominoes",1318);var TYn=!1,O8,con;b(1828,1,re,N0n),o.Cd=function(e){aGn(u(e,225))},w(h3,"DepthFirstCompaction/0methodref$compactTree$Type",1828),b(825,1,re,IG),o.Cd=function(e){qwe(this.a,u(e,225))},w(h3,"DepthFirstCompaction/lambda$1$Type",825),b(1829,1,re,gPn),o.Cd=function(e){z8e(this.a,this.b,this.c,u(e,225))},w(h3,"DepthFirstCompaction/lambda$2$Type",1829);var A8,uon;b(68,1,{68:1},jAn),w(h3,"Node",68),b(1214,1,{},yCn),w(h3,"ScanlineOverlapCheck",1214),b(1215,1,{693:1},JOn),o.bf=function(e){yae(this,u(e,451))},w(h3,"ScanlineOverlapCheck/OverlapsScanlineHandler",1215),b(1216,1,De,D0n),o.Ne=function(e,t){return I5e(u(e,68),u(t,68))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(h3,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1216),b(451,1,{451:1},Gz),o.a=!1,w(h3,"ScanlineOverlapCheck/Timestamp",451),b(1217,1,De,$0n),o.Ne=function(e,t){return fke(u(e,451),u(t,451))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(h3,"ScanlineOverlapCheck/lambda$0$Type",1217),b(557,1,{},kE),w(mXn,"SVGImage",557),b(334,1,{334:1},LV),o.Ib=function(){return"("+this.a+ur+this.b+ur+this.c+")"},w(mXn,"UniqueTriple",334),b(205,1,yd),w(e2,"AbstractLayoutProvider",205),b(1114,205,yd,x0n),o.rf=function(e,t){var i,r,c,s;switch(t.Ug(vXn,1),this.a=$(B(z(e,(M5(),aon)))),Nf(e,b_)&&(c=Ae(z(e,b_)),i=CR(z4(),c),i&&(r=u(z7(i.f),205),r.rf(e,t.eh(1)))),s=new HLn(this.a),this.b=rLe(s,e),u(z(e,(Q$(),son)),489).g){case 0:kMe(new R0n,this.b),ht(e,pI,v(this.b,pI));break;default:fl()}vLe(s),ht(e,hon,this.b),t.Vg()},o.a=0,w(kXn,"DisCoLayoutProvider",1114),b(1208,1,{},R0n),o.c=!1,o.e=0,o.f=0,w(kXn,"DisCoPolyominoCompactor",1208),b(567,1,{567:1},cIn),o.b=!0,w(rP,"DCComponent",567),b(406,22,{3:1,34:1,22:1,406:1},hM),o.a=!1;var wI,fj,gI,hj,CYn=we(rP,"DCDirection",406,ke,zpe,lde),SYn;b(272,137,{3:1,272:1,96:1,137:1},bR),w(rP,"DCElement",272),b(407,1,{407:1},pZ),o.c=0,w(rP,"DCExtension",407),b(762,137,Ktn,Vjn),w(rP,"DCGraph",762),b(489,22,{3:1,34:1,22:1,489:1},bSn);var d_,oon=we(VK,Btn,489,ke,nge,ade),PYn;b(865,1,ms,L5n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ftn),yXn),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),fon),(l1(),It)),oon),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,_tn),yXn),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),$2),fn),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Htn),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),Vf),ki),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,qtn),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),Vf),ki),jn(xn)))),QUn((new N5n,e))};var IYn,son,fon,OYn,AYn;w(VK,"DisCoMetaDataProvider",865),b(1010,1,ms,N5n),o.hf=function(e){QUn(e)};var LYn,b_,NYn,hon,pI,w_,lon,DYn,$Yn,xYn,RYn,aon;w(VK,"DisCoOptions",1010),b(1011,1,{},K0n),o.sf=function(){var e;return e=new x0n,e},o.tf=function(e){},w(VK,"DisCoOptions/DiscoFactory",1011),b(568,176,{330:1,176:1,568:1},zHn),o.a=0,o.b=0,o.c=0,o.d=0,w("org.eclipse.elk.alg.disco.structures","DCPolyomino",568);var g_,p_,mI;b(1286,1,Le,B0n),o.Mb=function(e){return kX(e)},w(t2,"ElkGraphComponentsProcessor/lambda$0$Type",1286),b(1287,1,{},F0n),o.Kb=function(e){return Np(),Fh(u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$1$Type",1287),b(1288,1,Le,_0n),o.Mb=function(e){return v0e(u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$2$Type",1288),b(1289,1,{},H0n),o.Kb=function(e){return Np(),ra(u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$3$Type",1289),b(1290,1,Le,q0n),o.Mb=function(e){return k0e(u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$4$Type",1290),b(1291,1,Le,$9n),o.Mb=function(e){return d2e(this.a,u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$5$Type",1291),b(1292,1,{},x9n),o.Kb=function(e){return Nwe(this.a,u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$6$Type",1292),b(1205,1,{},HLn),o.a=0,w(t2,"ElkGraphTransformer",1205),b(1206,1,{},U0n),o.Yd=function(e,t){cMe(this,u(e,167),u(t,272))},w(t2,"ElkGraphTransformer/OffsetApplier",1206),b(1207,1,re,R9n),o.Cd=function(e){w1e(this,u(e,8))},w(t2,"ElkGraphTransformer/OffsetApplier/OffSetToChainApplier",1207),b(760,1,{},FU),w(YK,Utn,760),b(1195,1,De,G0n),o.Ne=function(e,t){return XEe(u(e,235),u(t,235))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(YK,EXn,1195),b(1196,1,re,SMn),o.Cd=function(e){Q2e(this.b,this.a,u(e,250))},w(YK,Gtn,1196),b(738,205,yd,zG),o.rf=function(e,t){VHn(this,e,t)},w(YK,"ForceLayoutProvider",738),b(309,137,{3:1,309:1,96:1,137:1}),w(Ny,"FParticle",309),b(250,309,{3:1,250:1,309:1,96:1,137:1},UIn),o.Ib=function(){var e;return this.a?(e=qr(this.a.a,this,0),e>=0?"b"+e+"["+XD(this.a)+"]":"b["+XD(this.a)+"]"):"b_"+lb(this)},w(Ny,"FBendpoint",250),b(290,137,{3:1,290:1,96:1,137:1},BSn),o.Ib=function(){return XD(this)},w(Ny,"FEdge",290),b(235,137,{3:1,235:1,96:1,137:1},zT);var mDe=w(Ny,"FGraph",235);b(454,309,{3:1,454:1,309:1,96:1,137:1},_Ln),o.Ib=function(){return this.b==null||this.b.length==0?"l["+XD(this.a)+"]":"l_"+this.b},w(Ny,"FLabel",454),b(153,309,{3:1,153:1,309:1,96:1,137:1},vCn),o.Ib=function(){return lJ(this)},o.a=0,w(Ny,"FNode",153),b(2100,1,{}),o.vf=function(e){$en(this,e)},o.wf=function(){HBn(this)},o.d=0,w(ztn,"AbstractForceModel",2100),b(641,2100,{641:1},Bxn),o.uf=function(e,t){var i,r,c,s,f;return wGn(this.f,e,t),c=mi(Fi(t.d),e.d),f=y.Math.sqrt(c.a*c.a+c.b*c.b),r=y.Math.max(0,f-z6(e.e)/2-z6(t.e)/2),i=Q_n(this.e,e,t),i>0?s=-mwe(r,this.c)*i:s=X1e(r,this.b)*u(v(e,(Us(),k3)),17).a,ch(c,s/f),c},o.vf=function(e){$en(this,e),this.a=u(v(e,(Us(),kI)),17).a,this.c=$(B(v(e,yI))),this.b=$(B(v(e,v_)))},o.xf=function(e){return e<this.a},o.a=0,o.b=0,o.c=0,w(ztn,"EadesModel",641),b(642,2100,{642:1},KPn),o.uf=function(e,t){var i,r,c,s,f;return wGn(this.f,e,t),c=mi(Fi(t.d),e.d),f=y.Math.sqrt(c.a*c.a+c.b*c.b),r=y.Math.max(0,f-z6(e.e)/2-z6(t.e)/2),s=V1e(r,this.a)*u(v(e,(Us(),k3)),17).a,i=Q_n(this.e,e,t),i>0&&(s-=the(r,this.a)*i),ch(c,s*this.b/f),c},o.vf=function(e){var t,i,r,c,s,f,h;for($en(this,e),this.b=$(B(v(e,(Us(),k_)))),this.c=this.b/u(v(e,kI),17).a,r=e.e.c.length,s=0,c=0,h=new M(e.e);h.a<h.c.c.length;)f=u(E(h),153),s+=f.e.a,c+=f.e.b;t=s*c,i=$(B(v(e,yI)))*_f,this.a=y.Math.sqrt(t/(2*r))*i},o.wf=function(){HBn(this),this.b-=this.c},o.xf=function(e){return this.b>0},o.a=0,o.b=0,o.c=0,w(ztn,"FruchtermanReingoldModel",642),b(860,1,ms,D5n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,cP),""),"Force Model"),"Determines the model for force calculation."),don),(l1(),It)),bon),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Xtn),""),"Iterations"),"The number of iterations on the force model."),Y(300)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Vtn),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Y(0)),Zr),Gi),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ZK),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),vh),Qi),si),jn(xn)))),ri(e,ZK,cP,UYn),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,nB),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Qi),si),jn(xn)))),ri(e,nB,cP,_Yn),izn((new $5n,e))};var KYn,BYn,don,FYn,_Yn,HYn,qYn,UYn;w(e8,"ForceMetaDataProvider",860),b(432,22,{3:1,34:1,22:1,432:1},zz);var m_,vI,bon=we(e8,"ForceModelStrategy",432,ke,Bge,dde),GYn;b(d1,1,ms,$5n),o.hf=function(e){izn(e)};var zYn,XYn,won,kI,gon,VYn,WYn,JYn,QYn,pon,YYn,mon,von,ZYn,k3,nZn,v_,kon,eZn,tZn,yI,k_,iZn,rZn,cZn,yon,uZn;w(e8,"ForceOptions",d1),b(1001,1,{},W0n),o.sf=function(){var e;return e=new zG,e},o.tf=function(e){},w(e8,"ForceOptions/ForceFactory",1001);var lj,L8,y3,jI;b(861,1,ms,x5n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Jtn),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(_n(),!1)),(l1(),yi)),Gt),jn((pf(),pi))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Qtn),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),Qi),si),yt(xn,S(C(Zh,1),G,170,0,[Ih]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ytn),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),jon),It),Ion),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ztn),""),"Stress Epsilon"),"Termination criterion for the iterative process."),vh),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,nin),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Y(et)),Zr),Gi),jn(xn)))),AGn((new R5n,e))};var oZn,sZn,jon,fZn,hZn,lZn;w(e8,"StressMetaDataProvider",861),b(1004,1,ms,R5n),o.hf=function(e){AGn(e)};var EI,Eon,Mon,Ton,Con,Son,aZn,dZn,bZn,wZn,Pon,gZn;w(e8,"StressOptions",1004),b(1005,1,{},X0n),o.sf=function(){var e;return e=new FSn,e},o.tf=function(e){},w(e8,"StressOptions/StressFactory",1005),b(1110,205,yd,FSn),o.rf=function(e,t){var i,r,c,s,f;for(t.Ug(PXn,1),on(un(z(e,(Uk(),Con))))?on(un(z(e,Pon)))||X7((i=new Xv((cb(),new Qd(e))),i)):VHn(new zG,e,t.eh(1)),c=fRn(e),r=FUn(this.a,c),f=r.Kc();f.Ob();)s=u(f.Pb(),235),!(s.e.c.length<=1)&&(TOe(this.b,s),JMe(this.b),nu(s.d,new V0n));c=nzn(r),hzn(c),t.Vg()},w(sP,"StressLayoutProvider",1110),b(1111,1,re,V0n),o.Cd=function(e){qen(u(e,454))},w(sP,"StressLayoutProvider/lambda$0$Type",1111),b(1002,1,{},Kyn),o.c=0,o.e=0,o.g=0,w(sP,"StressMajorization",1002),b(391,22,{3:1,34:1,22:1,391:1},BL);var y_,j_,E_,Ion=we(sP,"StressMajorization/Dimension",391,ke,$2e,bde),pZn;b(1003,1,De,K9n),o.Ne=function(e,t){return Hae(this.a,u(e,153),u(t,153))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(sP,"StressMajorization/lambda$0$Type",1003),b(1192,1,{},zAn),w(b3,"ElkLayered",1192),b(1193,1,re,B9n),o.Cd=function(e){TEe(this.a,u(e,36))},w(b3,"ElkLayered/lambda$0$Type",1193),b(1194,1,re,F9n),o.Cd=function(e){qae(this.a,u(e,36))},w(b3,"ElkLayered/lambda$1$Type",1194),b(1281,1,{},ICn);var mZn,vZn,kZn;w(b3,"GraphConfigurator",1281),b(770,1,re,OG),o.Cd=function(e){e_n(this.a,u(e,10))},w(b3,"GraphConfigurator/lambda$0$Type",770),b(771,1,{},_U),o.Kb=function(e){return LZ(),new Cn(null,new On(u(e,30).a,16))},w(b3,"GraphConfigurator/lambda$1$Type",771),b(772,1,re,AG),o.Cd=function(e){e_n(this.a,u(e,10))},w(b3,"GraphConfigurator/lambda$2$Type",772),b(1109,205,yd,Uyn),o.rf=function(e,t){var i;i=cOe(new zyn,e),x(z(e,(cn(),Kw)))===x((jl(),T1))?R5e(this.a,i,t):zMe(this.a,i,t),t.$g()||XGn(new K5n,i)},w(b3,"LayeredLayoutProvider",1109),b(367,22,{3:1,34:1,22:1,367:1},o7);var Vs,Jh,Ac,Fc,zr,Oon=we(b3,"LayeredPhases",367,ke,B3e,wde),yZn;b(1717,1,{},ixn),o.i=0;var jZn;w(By,"ComponentsToCGraphTransformer",1717);var EZn;b(1718,1,{},z0n),o.yf=function(e,t){return y.Math.min(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},o.zf=function(e,t){return y.Math.min(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},w(By,"ComponentsToCGraphTransformer/1",1718),b(86,1,{86:1}),o.i=0,o.k=!0,o.o=li;var M_=w(c8,"CNode",86);b(470,86,{470:1,86:1},JX,uZ),o.Ib=function(){return""},w(By,"ComponentsToCGraphTransformer/CRectNode",470),b(1688,1,{},J0n);var T_,C_;w(By,"OneDimensionalComponentsCompaction",1688),b(1689,1,{},Q0n),o.Kb=function(e){return C2e(u(e,42))},o.Fb=function(e){return this===e},w(By,"OneDimensionalComponentsCompaction/lambda$0$Type",1689),b(1690,1,{},Y0n),o.Kb=function(e){return B5e(u(e,42))},o.Fb=function(e){return this===e},w(By,"OneDimensionalComponentsCompaction/lambda$1$Type",1690),b(1720,1,{},ZIn),w(c8,"CGraph",1720),b(194,1,{194:1},vx),o.b=0,o.c=0,o.e=0,o.g=!0,o.i=li,w(c8,"CGroup",194),b(1719,1,{},Z0n),o.yf=function(e,t){return y.Math.max(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},o.zf=function(e,t){return y.Math.max(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},w(c8,eXn,1719),b(1721,1,{},Z_n),o.d=!1;var MZn,S_=w(c8,rXn,1721);b(1722,1,{},nwn),o.Kb=function(e){return Nz(),_n(),u(u(e,42).a,86).d.e!=0},o.Fb=function(e){return this===e},w(c8,cXn,1722),b(833,1,{},oW),o.a=!1,o.b=!1,o.c=!1,o.d=!1,w(c8,uXn,833),b(1898,1,{},wIn),w(fP,oXn,1898);var aj=Dt(Ed,Zzn);b(1899,1,{382:1},WOn),o.bf=function(e){nSe(this,u(e,476))},w(fP,sXn,1899),b(ha,1,De,ewn),o.Ne=function(e,t){return fge(u(e,86),u(t,86))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(fP,fXn,ha),b(476,1,{476:1},Vz),o.a=!1,w(fP,hXn,476),b(1901,1,De,twn),o.Ne=function(e,t){return hke(u(e,476),u(t,476))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(fP,lXn,1901),b(148,1,{148:1},d4,UV),o.Fb=function(e){var t;return e==null||vDe!=wo(e)?!1:(t=u(e,148),mc(this.c,t.c)&&mc(this.d,t.d))},o.Hb=function(){return Ok(S(C(ki,1),Kn,1,5,[this.c,this.d]))},o.Ib=function(){return"("+this.c+ur+this.d+(this.a?"cx":"")+this.b+")"},o.a=!0,o.c=0,o.d=0;var vDe=w(Ed,"Point",148);b(416,22,{3:1,34:1,22:1,416:1},lM);var r0,Iw,d2,Ow,TZn=we(Ed,"Point/Quadrant",416,ke,Vpe,gde),CZn;b(1708,1,{},Hyn),o.b=null,o.c=null,o.d=null,o.e=null,o.f=null;var SZn,PZn,IZn,OZn,AZn;w(Ed,"RectilinearConvexHull",1708),b(583,1,{382:1},eS),o.bf=function(e){K4e(this,u(e,148))},o.b=0;var Aon;w(Ed,"RectilinearConvexHull/MaximalElementsEventHandler",583),b(1710,1,De,iwn),o.Ne=function(e,t){return hge(B(e),B(t))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710),b(1709,1,{382:1},v$n),o.bf=function(e){wCe(this,u(e,148))},o.a=0,o.b=null,o.c=null,o.d=null,o.e=null,w(Ed,"RectilinearConvexHull/RectangleEventHandler",1709),b(1711,1,De,rwn),o.Ne=function(e,t){return mpe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$0$Type",1711),b(1712,1,De,own),o.Ne=function(e,t){return vpe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$1$Type",1712),b(1713,1,De,swn),o.Ne=function(e,t){return ppe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$2$Type",1713),b(1714,1,De,uwn),o.Ne=function(e,t){return kpe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$3$Type",1714),b(1715,1,De,fwn),o.Ne=function(e,t){return Qye(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$4$Type",1715),b(1716,1,{},MAn),w(Ed,"Scanline",1716),b(2104,1,{}),w(Hf,"AbstractGraphPlacer",2104),b(335,1,{335:1},lSn),o.Ff=function(e){return this.Gf(e)?(In(this.b,u(v(e,(W(),Dl)),21),e),!0):!1},o.Gf=function(e){var t,i,r,c;for(t=u(v(e,(W(),Dl)),21),c=u(ot(wt,t),21),r=c.Kc();r.Ob();)if(i=u(r.Pb(),21),!u(ot(this.b,i),15).dc())return!1;return!0};var wt;w(Hf,"ComponentGroup",335),b(779,2104,{},WG),o.Hf=function(e){var t,i;for(i=new M(this.a);i.a<i.c.c.length;)if(t=u(E(i),335),t.Ff(e))return;nn(this.a,new lSn(e))},o.Ef=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k;if(this.a.c.length=0,t.a.c.length=0,e.dc()){t.f.a=0,t.f.b=0;return}for(f=u(e.Xb(0),36),Ur(t,f),c=e.Kc();c.Ob();)r=u(c.Pb(),36),this.Hf(r);for(k=new Ni,s=$(B(v(f,(cn(),Cj)))),a=new M(this.a);a.a<a.c.c.length;)h=u(E(a),335),d=lzn(h,s),Zl(pT(h.b),k.a,k.b),k.a+=d.a,k.b+=d.b;if(t.f.a=k.a-s,t.f.b=k.b-s,on(un(v(f,sO)))&&x(v(f,$l))===x((El(),Bv))){for(m=e.Kc();m.Ob();)g=u(m.Pb(),36),Pm(g,g.c.a,g.c.b);for(i=new RA,stn(i,e,s),p=e.Kc();p.Ob();)g=u(p.Pb(),36),tt(ff(g.c),i.e);tt(ff(t.f),i.a)}for(l=new M(this.a);l.a<l.c.c.length;)h=u(E(l),335),YJ(t,pT(h.b))},w(Hf,"ComponentGroupGraphPlacer",779),b(1312,779,{},ejn),o.Hf=function(e){tKn(this,e)},o.Ef=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(this.a.c.length=0,t.a.c.length=0,e.dc()){t.f.a=0,t.f.b=0;return}for(f=u(e.Xb(0),36),Ur(t,f),c=e.Kc();c.Ob();)r=u(c.Pb(),36),tKn(this,r);for(D=new Ni,A=new Ni,j=new Ni,k=new Ni,s=$(B(v(f,(cn(),Cj)))),a=new M(this.a);a.a<a.c.c.length;){if(h=u(E(a),335),hl(u(v(t,(He(),_d)),88))){for(j.a=D.a,O=new n6(G6(aD(h.b).a).a.kc());O.b.Ob();)if(P=u(rM(O.b.Pb()),21),P.Hc((en(),Xn))){j.a=A.a;break}}else if(vg(u(v(t,_d),88))){for(j.b=D.b,O=new n6(G6(aD(h.b).a).a.kc());O.b.Ob();)if(P=u(rM(O.b.Pb()),21),P.Hc((en(),Wn))){j.b=A.b;break}}if(d=lzn(u(h,579),s),Zl(pT(h.b),j.a,j.b),hl(u(v(t,_d),88))){for(A.a=j.a+d.a,k.a=y.Math.max(k.a,A.a),O=new n6(G6(aD(h.b).a).a.kc());O.b.Ob();)if(P=u(rM(O.b.Pb()),21),P.Hc((en(),ae))){D.a=j.a+d.a;break}A.b=j.b+d.b,j.b=A.b,k.b=y.Math.max(k.b,j.b)}else if(vg(u(v(t,_d),88))){for(A.b=j.b+d.b,k.b=y.Math.max(k.b,A.b),O=new n6(G6(aD(h.b).a).a.kc());O.b.Ob();)if(P=u(rM(O.b.Pb()),21),P.Hc((en(),Zn))){D.b=j.b+d.b;break}A.a=j.a+d.a,j.a=A.a,k.a=y.Math.max(k.a,j.a)}}if(t.f.a=k.a-s,t.f.b=k.b-s,on(un(v(f,sO)))&&x(v(f,$l))===x((El(),Bv))){for(m=e.Kc();m.Ob();)g=u(m.Pb(),36),Pm(g,g.c.a,g.c.b);for(i=new RA,stn(i,e,s),p=e.Kc();p.Ob();)g=u(p.Pb(),36),tt(ff(g.c),i.e);tt(ff(t.f),i.a)}for(l=new M(this.a);l.a<l.c.c.length;)h=u(E(l),335),YJ(t,pT(h.b))},w(Hf,"ComponentGroupModelOrderGraphPlacer",1312),b(389,22,{3:1,34:1,22:1,389:1},aM);var P_,Lon,I_,Aw,Non=we(Hf,"ComponentOrderingStrategy",389,ke,qpe,pde),LZn;b(659,1,{},RA),w(Hf,"ComponentsCompactor",659),b(1533,13,Gzn,yNn),o.Fc=function(e){return O5(this,u(e,148))},w(Hf,"ComponentsCompactor/Hullpoints",1533),b(1530,1,{855:1},yBn),o.a=!1,w(Hf,"ComponentsCompactor/InternalComponent",1530),b(1529,1,qh,Fyn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new M(this.a)},w(Hf,"ComponentsCompactor/InternalConnectedComponents",1529),b(1532,1,{602:1},tHn),o.Bf=function(){return null},o.Cf=function(){return this.a},o.Af=function(){return Ex(this.d)},o.Df=function(){return this.b},w(Hf,"ComponentsCompactor/InternalExternalExtension",1532),b(1531,1,{602:1},Gyn),o.Cf=function(){return this.a},o.Af=function(){return Ex(this.d)},o.Bf=function(){return this.c},o.Df=function(){return this.b},w(Hf,"ComponentsCompactor/InternalUnionExternalExtension",1531),b(1535,1,{},Eqn),w(Hf,"ComponentsCompactor/OuterSegments",1535),b(1534,1,{},_yn),w(Hf,"ComponentsCompactor/Segments",1534),b(1282,1,{},$Nn),w(Hf,Utn,1282),b(1283,1,De,hwn),o.Ne=function(e,t){return Epe(u(e,36),u(t,36))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Hf,"ComponentsProcessor/lambda$0$Type",1283),b(579,335,{335:1,579:1},kNn),o.Ff=function(e){return oY(this,e)},o.Gf=function(e){return tqn(this,e)};var qe;w(Hf,"ModelOrderComponentGroup",579),b(1310,2104,{},lwn),o.Ef=function(e,t){var i,r,c,s,f,h,l,a,d,g,p;if(e.gc()==1){g=u(e.Xb(0),36),g!=t&&(t.a.c.length=0,sUn(t,g,0,0),Ur(t,g),VW(t.d,g.d),t.f.a=g.f.a,t.f.b=g.f.b);return}else if(e.dc()){t.a.c.length=0,t.f.a=0,t.f.b=0;return}for(this.Jf(e,t),c=u(e.Xb(0),36),t.a.c.length=0,Ur(t,c),a=0,p=0,f=e.Kc();f.Ob();)s=u(f.Pb(),36),d=s.f,a=y.Math.max(a,d.a),p+=d.a*d.b;if(a=y.Math.max(a,y.Math.sqrt(p)*$(B(v(t,(cn(),oO))))),r=$(B(v(t,Cj))),this.If(e,t,a,r),on(un(v(c,sO)))){for(i=new RA,stn(i,e,r),l=e.Kc();l.Ob();)h=u(l.Pb(),36),tt(ff(h.c),i.e);tt(ff(t.f),i.a)}YJ(t,e)},o.If=function(e,t,i,r){var c,s,f,h,l,a,d,g;for(d=0,g=0,h=0,c=r,f=e.Kc();f.Ob();)s=u(f.Pb(),36),a=s.f,d+a.a>i&&(d=0,g+=h+r,h=0),l=s.c,Pm(s,d+l.a,g+l.b),ff(l),c=y.Math.max(c,d+a.a),h=y.Math.max(h,a.b),d+=a.a+r;t.f.a=c,t.f.b=g+h},o.Jf=function(e,t){var i,r,c,s,f;if(x(v(t,(cn(),Rw)))===x((dd(),Aw))){for(r=e.Kc();r.Ob();){for(i=u(r.Pb(),36),f=0,s=new M(i.a);s.a<s.c.c.length;)c=u(E(s),10),f+=u(v(c,qte),17).a;i.p=f}Ln(),e.jd(new awn)}},w(Hf,"SimpleRowGraphPlacer",1310),b(1313,1310,{},cwn),o.If=function(e,t,i,r){var c,s,f,h,l,a,d,g,p,m;for(p=0,m=0,h=0,c=r,l=null,g=0,f=e.Kc();f.Ob();)s=u(f.Pb(),36),d=s.f,(p+d.a>i&&!u(v(s,(W(),Dl)),21).Hc((en(),Xn))||l&&u(v(l,(W(),Dl)),21).Hc((en(),Zn))||u(v(s,(W(),Dl)),21).Hc((en(),Wn)))&&(p=g,m+=h+r,h=0),a=s.c,u(v(s,(W(),Dl)),21).Hc((en(),Xn))&&(p=c+r),Pm(s,p+a.a,m+a.b),c=y.Math.max(c,p+d.a),u(v(s,Dl),21).Hc(ae)&&(g=y.Math.max(g,p+d.a+r)),ff(a),h=y.Math.max(h,d.b),p+=d.a+r,l=s;t.f.a=c,t.f.b=m+h},o.Jf=function(e,t){},w(Hf,"ModelOrderRowGraphPlacer",1313),b(1311,1,De,awn),o.Ne=function(e,t){return Rve(u(e,36),u(t,36))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Hf,"SimpleRowGraphPlacer/1",1311);var NZn;b(1280,1,ph,dwn),o.Lb=function(e){var t;return t=u(v(u(e,249).b,(cn(),Rr)),75),!!t&&t.b!=0},o.Fb=function(e){return this===e},o.Mb=function(e){var t;return t=u(v(u(e,249).b,(cn(),Rr)),75),!!t&&t.b!=0},w(hP,"CompoundGraphPostprocessor/1",1280),b(1279,1,vt,Xyn),o.Kf=function(e,t){jBn(this,u(e,36),t)},w(hP,"CompoundGraphPreprocessor",1279),b(453,1,{453:1},aKn),o.c=!1,w(hP,"CompoundGraphPreprocessor/ExternalPort",453),b(249,1,{249:1},zM),o.Ib=function(){return PN(this.c)+":"+X_n(this.b)},w(hP,"CrossHierarchyEdge",249),b(777,1,De,LG),o.Ne=function(e,t){return K7e(this,u(e,249),u(t,249))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(hP,"CrossHierarchyEdgeComparator",777),b(305,137,{3:1,305:1,96:1,137:1}),o.p=0,w(Kc,"LGraphElement",305),b(18,305,{3:1,18:1,305:1,96:1,137:1},Eb),o.Ib=function(){return X_n(this)};var O_=w(Kc,"LEdge",18);b(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},jQ),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new M(this.b)},o.Ib=function(){return this.b.c.length==0?"G-unlayered"+ca(this.a):this.a.c.length==0?"G-layered"+ca(this.b):"G[layerless"+ca(this.a)+", layers"+ca(this.b)+"]"};var DZn=w(Kc,"LGraph",36),$Zn;b(666,1,{}),o.Lf=function(){return this.e.n},o.of=function(e){return v(this.e,e)},o.Mf=function(){return this.e.o},o.Nf=function(){return this.e.p},o.pf=function(e){return kt(this.e,e)},o.Of=function(e){this.e.n.a=e.a,this.e.n.b=e.b},o.Pf=function(e){this.e.o.a=e.a,this.e.o.b=e.b},o.Qf=function(e){this.e.p=e},w(Kc,"LGraphAdapters/AbstractLShapeAdapter",666),b(474,1,{853:1},Vv),o.Rf=function(){var e,t;if(!this.b)for(this.b=Lh(this.a.b.c.length),t=new M(this.a.b);t.a<t.c.c.length;)e=u(E(t),72),nn(this.b,new AE(e));return this.b},o.b=null,w(Kc,"LGraphAdapters/LEdgeAdapter",474),b(665,1,{},kD),o.Sf=function(){var e,t,i,r,c,s;if(!this.b){for(this.b=new Z,r=new M(this.a.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=new M(i.a);s.a<s.c.c.length;)if(c=u(E(s),10),this.c.Mb(c)&&(nn(this.b,new XM(this,c,this.e)),this.d)){if(kt(c,(W(),I3)))for(t=u(v(c,I3),15).Kc();t.Ob();)e=u(t.Pb(),10),nn(this.b,new XM(this,e,!1));if(kt(c,M3))for(t=u(v(c,M3),15).Kc();t.Ob();)e=u(t.Pb(),10),nn(this.b,new XM(this,e,!1))}}return this.b},o.Lf=function(){throw T(new Fl(AXn))},o.of=function(e){return v(this.a,e)},o.Mf=function(){return this.a.f},o.Nf=function(){return this.a.p},o.pf=function(e){return kt(this.a,e)},o.Of=function(e){throw T(new Fl(AXn))},o.Pf=function(e){this.a.f.a=e.a,this.a.f.b=e.b},o.Qf=function(e){this.a.p=e},o.b=null,o.d=!1,o.e=!1,w(Kc,"LGraphAdapters/LGraphAdapter",665),b(585,666,{187:1},AE),w(Kc,"LGraphAdapters/LLabelAdapter",585),b(584,666,{695:1},XM),o.Tf=function(){return this.b},o.Uf=function(){return Ln(),Ln(),sr},o.Rf=function(){var e,t;if(!this.a)for(this.a=Lh(u(this.e,10).b.c.length),t=new M(u(this.e,10).b);t.a<t.c.c.length;)e=u(E(t),72),nn(this.a,new AE(e));return this.a},o.Vf=function(){var e;return e=u(this.e,10).d,new pV(e.d,e.c,e.a,e.b)},o.Wf=function(){return Ln(),Ln(),sr},o.Xf=function(){var e,t;if(!this.c)for(this.c=Lh(u(this.e,10).j.c.length),t=new M(u(this.e,10).j);t.a<t.c.c.length;)e=u(E(t),12),nn(this.c,new xMn(e,this.d));return this.c},o.Yf=function(){return on(un(v(u(this.e,10),(W(),Zsn))))},o.Zf=function(e){u(this.e,10).d.b=e.b,u(this.e,10).d.d=e.d,u(this.e,10).d.c=e.c,u(this.e,10).d.a=e.a},o.$f=function(e){u(this.e,10).f.b=e.b,u(this.e,10).f.d=e.d,u(this.e,10).f.c=e.c,u(this.e,10).f.a=e.a},o._f=function(){Dme(this,(u6(),$Zn))},o.a=null,o.b=null,o.c=null,o.d=!1,w(Kc,"LGraphAdapters/LNodeAdapter",584),b(1788,666,{852:1},xMn),o.Uf=function(){var e,t,i,r,c,s,f,h;if(this.d&&u(this.e,12).i.k==(Vn(),_c))return Ln(),Ln(),sr;if(!this.a){for(this.a=new Z,i=new M(u(this.e,12).e);i.a<i.c.c.length;)e=u(E(i),18),nn(this.a,new Vv(e));if(this.d&&(r=u(v(u(this.e,12),(W(),Xu)),10),r))for(t=new ie(ce(ji(r).a.Kc(),new En));pe(t);)e=u(fe(t),18),nn(this.a,new Vv(e));if(kt(u(this.e,12).i,(W(),h0))&&(f=u(v(u(this.e,12).i,h0),337),h=u(Df(f.e,this.e),113),h))for(s=new M(h.b);s.a<s.c.c.length;)c=u(E(s),340),nn(this.a,new Vv(c.a))}return this.a},o.Rf=function(){var e,t;if(!this.b)for(this.b=Lh(u(this.e,12).f.c.length),t=new M(u(this.e,12).f);t.a<t.c.c.length;)e=u(E(t),72),nn(this.b,new AE(e));return this.b},o.Wf=function(){var e,t,i,r,c,s,f,h;if(this.d&&u(this.e,12).i.k==(Vn(),_c))return Ln(),Ln(),sr;if(!this.c){for(this.c=new Z,i=new M(u(this.e,12).g);i.a<i.c.c.length;)e=u(E(i),18),nn(this.c,new Vv(e));if(this.d&&(r=u(v(u(this.e,12),(W(),Xu)),10),r))for(t=new ie(ce(Qt(r).a.Kc(),new En));pe(t);)e=u(fe(t),18),nn(this.c,new Vv(e));if(kt(u(this.e,12).i,(W(),h0))&&(f=u(v(u(this.e,12).i,h0),337),h=u(Df(f.e,this.e),113),h))for(s=new M(h.e);s.a<s.c.c.length;)c=u(E(s),340),nn(this.c,new Vv(c.a))}return this.c},o.ag=function(){return u(this.e,12).j},o.bg=function(){return on(un(v(u(this.e,12),(W(),yj))))},o.a=null,o.b=null,o.c=null,o.d=!1,w(Kc,"LGraphAdapters/LPortAdapter",1788),b(1789,1,De,bwn),o.Ne=function(e,t){return ISe(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Kc,"LGraphAdapters/PortComparator",1789),b(818,1,Le,HU),o.Mb=function(e){return u(e,10),u6(),!0},w(Kc,"LGraphAdapters/lambda$0$Type",818),b(404,305,{3:1,305:1,404:1,96:1,137:1}),w(Kc,"LShape",404),b(72,404,{3:1,305:1,72:1,404:1,96:1,137:1},Yjn,AX),o.Ib=function(){var e;return e=m0e(this),e==null?"label":"l_"+e},w(Kc,"LLabel",72),b(214,1,{3:1,4:1,214:1,423:1}),o.Fb=function(e){var t;return L(e,214)?(t=u(e,214),this.d==t.d&&this.a==t.a&&this.b==t.b&&this.c==t.c):!1},o.Hb=function(){var e,t;return e=pp(this.b)<<16,e|=pp(this.a)&ui,t=pp(this.c)<<16,t|=pp(this.d)&ui,e^t},o.cg=function(e){var t,i,r,c,s,f,h,l,a,d,g;for(s=0;s<e.length&&qRn((zn(s,e.length),e.charCodeAt(s)),NXn);)++s;for(t=e.length;t>0&&qRn((zn(t-1,e.length),e.charCodeAt(t-1)),DXn);)--t;if(s<t){d=ww((Ri(s,t,e.length),e.substr(s,t-s)),",|;");try{for(h=d,l=0,a=h.length;l<a;++l){if(f=h[l],c=ww(f,"="),c.length!=2)throw T(new Gn("Expecting a list of key-value pairs."));r=fw(c[0]),g=sw(fw(c[1])),Sn(r,"top")?this.d=g:Sn(r,"left")?this.b=g:Sn(r,"bottom")?this.a=g:Sn(r,"right")&&(this.c=g)}}catch(p){throw p=Ot(p),L(p,130)?(i=p,T(new Gn($Xn+i))):T(p)}}},o.Ib=function(){return"[top="+this.d+",left="+this.b+",bottom="+this.a+",right="+this.c+"]"},o.a=0,o.b=0,o.c=0,o.d=0,w(Fy,"Spacing",214),b(140,214,xXn,Qv,tCn,pV,qN);var Don=w(Fy,"ElkMargin",140);b(660,140,xXn,sL),w(Kc,"LMargin",660),b(10,404,{3:1,305:1,10:1,404:1,96:1,137:1},Cl),o.Ib=function(){return wBn(this)},o.i=!1;var Qh=w(Kc,"LNode",10);b(273,22,{3:1,34:1,22:1,273:1},b6);var Gf,Zt,Sc,Ti,zt,_c,A_=we(Kc,"LNode/NodeType",273,ke,M4e,jbe),xZn;b(775,1,Le,qU),o.Mb=function(e){return on(un(v(u(e,72),(cn(),jH))))},w(Kc,"LNode/lambda$0$Type",775),b(107,214,RXn,up,fb,_V);var $on=w(Fy,"ElkPadding",107);b(778,107,RXn,ZG),w(Kc,"LPadding",778),b(12,404,{3:1,305:1,12:1,404:1,96:1,137:1},Ic),o.Ib=function(){var e,t,i;return e=new x1,Be((e.a+="p_",e),lS(this)),this.i&&Be(Lc((e.a+="[",e),this.i),"]"),this.e.c.length==1&&this.g.c.length==0&&u(sn(this.e,0),18).c!=this&&(t=u(sn(this.e,0),18).c,Be((e.a+=" << ",e),lS(t)),Be(Lc((e.a+="[",e),t.i),"]")),this.e.c.length==0&&this.g.c.length==1&&u(sn(this.g,0),18).d!=this&&(i=u(sn(this.g,0),18).d,Be((e.a+=" >> ",e),lS(i)),Be(Lc((e.a+="[",e),i.i),"]")),e.a},o.c=!0,o.d=!1;var xon,Ron,Kon,Bon,Fon,_on,RZn=w(Kc,"LPort",12);b(408,1,qh,e4),o.Jc=function(e){qi(this,e)},o.Kc=function(){var e;return e=new M(this.a.e),new _9n(e)},w(Kc,"LPort/1",408),b(1309,1,Pi,_9n),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(E(this.a),18).c},o.Ob=function(){return tc(this.a)},o.Qb=function(){q6(this.a)},w(Kc,"LPort/1/1",1309),b(369,1,qh,ip),o.Jc=function(e){qi(this,e)},o.Kc=function(){var e;return e=new M(this.a.g),new NG(e)},w(Kc,"LPort/2",369),b(776,1,Pi,NG),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(E(this.a),18).d},o.Ob=function(){return tc(this.a)},o.Qb=function(){q6(this.a)},w(Kc,"LPort/2/1",776),b(1302,1,qh,OMn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new Lf(this)},w(Kc,"LPort/CombineIter",1302),b(208,1,Pi,Lf),o.Nb=function(e){_i(this,e)},o.Qb=function(){sEn()},o.Ob=function(){return L6(this)},o.Pb=function(){return tc(this.a)?E(this.a):E(this.b)},w(Kc,"LPort/CombineIter/1",208),b(1303,1,ph,wwn),o.Lb=function(e){return IIn(e)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).g.c.length!=0},w(Kc,"LPort/lambda$0$Type",1303),b(1304,1,ph,gwn),o.Lb=function(e){return OIn(e)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).e.c.length!=0},w(Kc,"LPort/lambda$1$Type",1304),b(1305,1,ph,pwn),o.Lb=function(e){return Au(),u(e,12).j==(en(),Xn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).j==(en(),Xn)},w(Kc,"LPort/lambda$2$Type",1305),b(1306,1,ph,mwn),o.Lb=function(e){return Au(),u(e,12).j==(en(),Zn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).j==(en(),Zn)},w(Kc,"LPort/lambda$3$Type",1306),b(1307,1,ph,vwn),o.Lb=function(e){return Au(),u(e,12).j==(en(),ae)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).j==(en(),ae)},w(Kc,"LPort/lambda$4$Type",1307),b(1308,1,ph,kwn),o.Lb=function(e){return Au(),u(e,12).j==(en(),Wn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).j==(en(),Wn)},w(Kc,"LPort/lambda$5$Type",1308),b(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},Nc),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new M(this.a)},o.Ib=function(){return"L_"+qr(this.b.b,this,0)+ca(this.a)},w(Kc,"Layer",30),b(1330,1,{},zyn),w(w1,KXn,1330),b(1334,1,{},ywn),o.Kb=function(e){return Gr(u(e,84))},w(w1,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334),b(1337,1,{},jwn),o.Kb=function(e){return Gr(u(e,84))},w(w1,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337),b(1331,1,re,H9n),o.Cd=function(e){hHn(this.a,u(e,123))},w(w1,Gtn,1331),b(1332,1,re,q9n),o.Cd=function(e){hHn(this.a,u(e,123))},w(w1,BXn,1332),b(1333,1,{},Ewn),o.Kb=function(e){return new Cn(null,new On(qW(u(e,74)),16))},w(w1,FXn,1333),b(1335,1,Le,U9n),o.Mb=function(e){return _le(this.a,u(e,27))},w(w1,_Xn,1335),b(1336,1,{},Mwn),o.Kb=function(e){return new Cn(null,new On(rge(u(e,74)),16))},w(w1,"ElkGraphImporter/lambda$5$Type",1336),b(1338,1,Le,G9n),o.Mb=function(e){return Hle(this.a,u(e,27))},w(w1,"ElkGraphImporter/lambda$7$Type",1338),b(1339,1,Le,Twn),o.Mb=function(e){return mge(u(e,74))},w(w1,"ElkGraphImporter/lambda$8$Type",1339),b(1297,1,{},K5n);var KZn;w(w1,"ElkGraphLayoutTransferrer",1297),b(1298,1,Le,z9n),o.Mb=function(e){return Oae(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$0$Type",1298),b(1299,1,re,X9n),o.Cd=function(e){c7(),nn(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$1$Type",1299),b(1300,1,Le,V9n),o.Mb=function(e){return wae(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$2$Type",1300),b(1301,1,re,W9n),o.Cd=function(e){c7(),nn(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$3$Type",1301),b(819,1,{},vV),w(Qn,"BiLinkedHashMultiMap",819),b(1550,1,vt,Cwn),o.Kf=function(e,t){ive(u(e,36),t)},w(Qn,"CommentNodeMarginCalculator",1550),b(1551,1,{},Swn),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"CommentNodeMarginCalculator/lambda$0$Type",1551),b(1552,1,re,Pwn),o.Cd=function(e){iOe(u(e,10))},w(Qn,"CommentNodeMarginCalculator/lambda$1$Type",1552),b(1553,1,vt,Iwn),o.Kf=function(e,t){oSe(u(e,36),t)},w(Qn,"CommentPostprocessor",1553),b(1554,1,vt,Own),o.Kf=function(e,t){ILe(u(e,36),t)},w(Qn,"CommentPreprocessor",1554),b(1555,1,vt,Awn),o.Kf=function(e,t){MCe(u(e,36),t)},w(Qn,"ConstraintsPostprocessor",1555),b(1556,1,vt,Lwn),o.Kf=function(e,t){Ave(u(e,36),t)},w(Qn,"EdgeAndLayerConstraintEdgeReverser",1556),b(1557,1,vt,Nwn),o.Kf=function(e,t){y8e(u(e,36),t)},w(Qn,"EndLabelPostprocessor",1557),b(1558,1,{},Dwn),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"EndLabelPostprocessor/lambda$0$Type",1558),b(1559,1,Le,$wn),o.Mb=function(e){return x3e(u(e,10))},w(Qn,"EndLabelPostprocessor/lambda$1$Type",1559),b(1560,1,re,xwn),o.Cd=function(e){lke(u(e,10))},w(Qn,"EndLabelPostprocessor/lambda$2$Type",1560),b(1561,1,vt,Rwn),o.Kf=function(e,t){Zje(u(e,36),t)},w(Qn,"EndLabelPreprocessor",1561),b(1562,1,{},Kwn),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"EndLabelPreprocessor/lambda$0$Type",1562),b(1563,1,re,pPn),o.Cd=function(e){nle(this.a,this.b,this.c,u(e,10))},o.a=0,o.b=0,o.c=!1,w(Qn,"EndLabelPreprocessor/lambda$1$Type",1563),b(1564,1,Le,Bwn),o.Mb=function(e){return x(v(u(e,72),(cn(),Sh)))===x(($f(),Kv))},w(Qn,"EndLabelPreprocessor/lambda$2$Type",1564),b(1565,1,re,J9n),o.Cd=function(e){Re(this.a,u(e,72))},w(Qn,"EndLabelPreprocessor/lambda$3$Type",1565),b(1566,1,Le,Fwn),o.Mb=function(e){return x(v(u(e,72),(cn(),Sh)))===x(($f(),Jw))},w(Qn,"EndLabelPreprocessor/lambda$4$Type",1566),b(1567,1,re,Q9n),o.Cd=function(e){Re(this.a,u(e,72))},w(Qn,"EndLabelPreprocessor/lambda$5$Type",1567),b(1615,1,vt,O5n),o.Kf=function(e,t){k5e(u(e,36),t)};var BZn;w(Qn,"EndLabelSorter",1615),b(1616,1,De,_wn),o.Ne=function(e,t){return Z8e(u(e,466),u(t,466))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"EndLabelSorter/1",1616),b(466,1,{466:1},qOn),w(Qn,"EndLabelSorter/LabelGroup",466),b(1617,1,{},Hwn),o.Kb=function(e){return r7(),new Cn(null,new On(u(e,30).a,16))},w(Qn,"EndLabelSorter/lambda$0$Type",1617),b(1618,1,Le,qwn),o.Mb=function(e){return r7(),u(e,10).k==(Vn(),zt)},w(Qn,"EndLabelSorter/lambda$1$Type",1618),b(1619,1,re,Uwn),o.Cd=function(e){dje(u(e,10))},w(Qn,"EndLabelSorter/lambda$2$Type",1619),b(1620,1,Le,Gwn),o.Mb=function(e){return r7(),x(v(u(e,72),(cn(),Sh)))===x(($f(),Jw))},w(Qn,"EndLabelSorter/lambda$3$Type",1620),b(1621,1,Le,zwn),o.Mb=function(e){return r7(),x(v(u(e,72),(cn(),Sh)))===x(($f(),Kv))},w(Qn,"EndLabelSorter/lambda$4$Type",1621),b(1568,1,vt,Xwn),o.Kf=function(e,t){mOe(this,u(e,36))},o.b=0,o.c=0,w(Qn,"FinalSplineBendpointsCalculator",1568),b(1569,1,{},Vwn),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"FinalSplineBendpointsCalculator/lambda$0$Type",1569),b(1570,1,{},Wwn),o.Kb=function(e){return new Cn(null,new pb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(Qn,"FinalSplineBendpointsCalculator/lambda$1$Type",1570),b(1571,1,Le,Jwn),o.Mb=function(e){return!fr(u(e,18))},w(Qn,"FinalSplineBendpointsCalculator/lambda$2$Type",1571),b(1572,1,Le,Qwn),o.Mb=function(e){return kt(u(e,18),(W(),Ld))},w(Qn,"FinalSplineBendpointsCalculator/lambda$3$Type",1572),b(1573,1,re,Y9n),o.Cd=function(e){SPe(this.a,u(e,131))},w(Qn,"FinalSplineBendpointsCalculator/lambda$4$Type",1573),b(1574,1,re,Ywn),o.Cd=function(e){Yk(u(e,18).a)},w(Qn,"FinalSplineBendpointsCalculator/lambda$5$Type",1574),b(803,1,vt,DG),o.Kf=function(e,t){lAe(this,u(e,36),t)},w(Qn,"GraphTransformer",803),b(517,22,{3:1,34:1,22:1,517:1},Xz);var L_,dj,FZn=we(Qn,"GraphTransformer/Mode",517,ke,Fge,ybe),_Zn;b(1575,1,vt,Zwn),o.Kf=function(e,t){NTe(u(e,36),t)},w(Qn,"HierarchicalNodeResizingProcessor",1575),b(1576,1,vt,ngn),o.Kf=function(e,t){Yme(u(e,36),t)},w(Qn,"HierarchicalPortConstraintProcessor",1576),b(1577,1,De,egn),o.Ne=function(e,t){return k9e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"HierarchicalPortConstraintProcessor/NodeComparator",1577),b(1578,1,vt,tgn),o.Kf=function(e,t){yIe(u(e,36),t)},w(Qn,"HierarchicalPortDummySizeProcessor",1578),b(1579,1,vt,ign),o.Kf=function(e,t){ASe(this,u(e,36),t)},o.a=0,w(Qn,"HierarchicalPortOrthogonalEdgeRouter",1579),b(1580,1,De,rgn),o.Ne=function(e,t){return N1e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"HierarchicalPortOrthogonalEdgeRouter/1",1580),b(1581,1,De,cgn),o.Ne=function(e,t){return B4e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"HierarchicalPortOrthogonalEdgeRouter/2",1581),b(1582,1,vt,ugn),o.Kf=function(e,t){Vye(u(e,36),t)},w(Qn,"HierarchicalPortPositionProcessor",1582),b(1583,1,vt,B5n),o.Kf=function(e,t){hNe(this,u(e,36))},o.a=0,o.c=0;var MI,TI;w(Qn,"HighDegreeNodeLayeringProcessor",1583),b(580,1,{580:1},ogn),o.b=-1,o.d=-1,w(Qn,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",580),b(1584,1,{},sgn),o.Kb=function(e){return N7(),ji(u(e,10))},o.Fb=function(e){return this===e},w(Qn,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1584),b(1585,1,{},fgn),o.Kb=function(e){return N7(),Qt(u(e,10))},o.Fb=function(e){return this===e},w(Qn,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1585),b(1591,1,vt,hgn),o.Kf=function(e,t){dIe(this,u(e,36),t)},w(Qn,"HyperedgeDummyMerger",1591),b(804,1,{},DV),o.a=!1,o.b=!1,o.c=!1,w(Qn,"HyperedgeDummyMerger/MergeState",804),b(1592,1,{},lgn),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"HyperedgeDummyMerger/lambda$0$Type",1592),b(1593,1,{},agn),o.Kb=function(e){return new Cn(null,new On(u(e,10).j,16))},w(Qn,"HyperedgeDummyMerger/lambda$1$Type",1593),b(1594,1,re,dgn),o.Cd=function(e){u(e,12).p=-1},w(Qn,"HyperedgeDummyMerger/lambda$2$Type",1594),b(1595,1,vt,bgn),o.Kf=function(e,t){lIe(u(e,36),t)},w(Qn,"HypernodesProcessor",1595),b(1596,1,vt,wgn),o.Kf=function(e,t){kIe(u(e,36),t)},w(Qn,"InLayerConstraintProcessor",1596),b(1597,1,vt,ggn),o.Kf=function(e,t){dve(u(e,36),t)},w(Qn,"InnermostNodeMarginCalculator",1597),b(1598,1,vt,pgn),o.Kf=function(e,t){TLe(this,u(e,36))},o.a=li,o.b=li,o.c=Pt,o.d=Pt;var kDe=w(Qn,"InteractiveExternalPortPositioner",1598);b(1599,1,{},mgn),o.Kb=function(e){return u(e,18).d.i},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$0$Type",1599),b(1600,1,{},Z9n),o.Kb=function(e){return D1e(this.a,B(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$1$Type",1600),b(1601,1,{},vgn),o.Kb=function(e){return u(e,18).c.i},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$2$Type",1601),b(1602,1,{},n7n),o.Kb=function(e){return $1e(this.a,B(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$3$Type",1602),b(1603,1,{},e7n),o.Kb=function(e){return Lae(this.a,B(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$4$Type",1603),b(1604,1,{},t7n),o.Kb=function(e){return Nae(this.a,B(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$5$Type",1604),b(81,22,{3:1,34:1,22:1,81:1,196:1},ei),o.dg=function(){switch(this.g){case 15:return new xpn;case 22:return new Rpn;case 47:return new Fpn;case 28:case 35:return new Ogn;case 32:return new Cwn;case 42:return new Iwn;case 1:return new Own;case 41:return new Awn;case 56:return new DG((V4(),dj));case 0:return new DG((V4(),L_));case 2:return new Lwn;case 54:return new Nwn;case 33:return new Rwn;case 51:return new Xwn;case 55:return new Zwn;case 13:return new ngn;case 38:return new tgn;case 44:return new ign;case 40:return new ugn;case 9:return new B5n;case 49:return new tSn;case 37:return new hgn;case 43:return new bgn;case 27:return new wgn;case 30:return new ggn;case 3:return new pgn;case 18:return new ygn;case 29:return new jgn;case 5:return new F5n;case 50:return new kgn;case 34:return new _5n;case 36:return new Agn;case 52:return new O5n;case 11:return new Lgn;case 7:return new H5n;case 39:return new Ngn;case 45:return new Dgn;case 16:return new $gn;case 10:return new VMn;case 48:return new Bgn;case 21:return new Fgn;case 23:return new gL((Ab(),Z8));case 8:return new Hgn;case 12:return new Ugn;case 4:return new Ggn;case 19:return new V5n;case 17:return new e2n;case 53:return new t2n;case 6:return new b2n;case 25:return new Wyn;case 46:return new o2n;case 31:return new USn;case 14:return new j2n;case 26:return new qpn;case 20:return new S2n;case 24:return new gL((Ab(),IO));default:throw T(new Gn(cB+(this.f!=null?this.f:""+this.g)))}};var Hon,qon,Uon,Gon,zon,Xon,Von,Won,Jon,Qon,b2,CI,SI,Yon,Zon,nsn,esn,tsn,isn,rsn,N8,csn,usn,osn,ssn,fsn,N_,PI,II,hsn,OI,AI,LI,hv,Lw,Nw,lsn,NI,DI,asn,$I,xI,dsn,bsn,wsn,gsn,RI,D_,bj,KI,BI,FI,_I,psn,msn,vsn,ksn,yDe=we(Qn,uB,81,ke,iqn,kde),HZn;b(1605,1,vt,ygn),o.Kf=function(e,t){ELe(u(e,36),t)},w(Qn,"InvertedPortProcessor",1605),b(1606,1,vt,jgn),o.Kf=function(e,t){vPe(u(e,36),t)},w(Qn,"LabelAndNodeSizeProcessor",1606),b(1607,1,Le,Egn),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"LabelAndNodeSizeProcessor/lambda$0$Type",1607),b(1608,1,Le,Mgn),o.Mb=function(e){return u(e,10).k==(Vn(),Zt)},w(Qn,"LabelAndNodeSizeProcessor/lambda$1$Type",1608),b(1609,1,re,mPn),o.Cd=function(e){ele(this.b,this.a,this.c,u(e,10))},o.a=!1,o.c=!1,w(Qn,"LabelAndNodeSizeProcessor/lambda$2$Type",1609),b(1610,1,vt,F5n),o.Kf=function(e,t){WAe(u(e,36),t)};var qZn;w(Qn,"LabelDummyInserter",1610),b(1611,1,ph,Tgn),o.Lb=function(e){return x(v(u(e,72),(cn(),Sh)))===x(($f(),Rv))},o.Fb=function(e){return this===e},o.Mb=function(e){return x(v(u(e,72),(cn(),Sh)))===x(($f(),Rv))},w(Qn,"LabelDummyInserter/1",1611),b(1612,1,vt,kgn),o.Kf=function(e,t){RAe(u(e,36),t)},w(Qn,"LabelDummyRemover",1612),b(1613,1,Le,Cgn),o.Mb=function(e){return on(un(v(u(e,72),(cn(),jH))))},w(Qn,"LabelDummyRemover/lambda$0$Type",1613),b(1378,1,vt,_5n),o.Kf=function(e,t){IAe(this,u(e,36),t)},o.a=null;var $_;w(Qn,"LabelDummySwitcher",1378),b(293,1,{293:1},tUn),o.c=0,o.d=null,o.f=0,w(Qn,"LabelDummySwitcher/LabelDummyInfo",293),b(1379,1,{},Sgn),o.Kb=function(e){return Hp(),new Cn(null,new On(u(e,30).a,16))},w(Qn,"LabelDummySwitcher/lambda$0$Type",1379),b(1380,1,Le,Pgn),o.Mb=function(e){return Hp(),u(e,10).k==(Vn(),Sc)},w(Qn,"LabelDummySwitcher/lambda$1$Type",1380),b(1381,1,{},i7n),o.Kb=function(e){return gae(this.a,u(e,10))},w(Qn,"LabelDummySwitcher/lambda$2$Type",1381),b(1382,1,re,r7n),o.Cd=function(e){xwe(this.a,u(e,293))},w(Qn,"LabelDummySwitcher/lambda$3$Type",1382),b(1383,1,De,Ign),o.Ne=function(e,t){return uwe(u(e,293),u(t,293))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"LabelDummySwitcher/lambda$4$Type",1383),b(802,1,vt,Ogn),o.Kf=function(e,t){m4e(u(e,36),t)},w(Qn,"LabelManagementProcessor",802),b(1614,1,vt,Agn),o.Kf=function(e,t){WCe(u(e,36),t)},w(Qn,"LabelSideSelector",1614),b(1622,1,vt,Lgn),o.Kf=function(e,t){xIe(u(e,36),t)},w(Qn,"LayerConstraintPostprocessor",1622),b(1623,1,vt,H5n),o.Kf=function(e,t){AMe(u(e,36),t)};var ysn;w(Qn,"LayerConstraintPreprocessor",1623),b(371,22,{3:1,34:1,22:1,371:1},dM);var wj,HI,qI,x_,UZn=we(Qn,"LayerConstraintPreprocessor/HiddenNodeConnections",371,ke,Jpe,yde),GZn;b(1624,1,vt,Ngn),o.Kf=function(e,t){ZOe(u(e,36),t)},w(Qn,"LayerSizeAndGraphHeightCalculator",1624),b(1625,1,vt,Dgn),o.Kf=function(e,t){DTe(u(e,36),t)},w(Qn,"LongEdgeJoiner",1625),b(1626,1,vt,$gn),o.Kf=function(e,t){IOe(u(e,36),t)},w(Qn,"LongEdgeSplitter",1626),b(1627,1,vt,VMn),o.Kf=function(e,t){hLe(this,u(e,36),t)},o.e=0,o.f=0,o.j=0,o.k=0,o.n=0,o.o=0;var zZn,XZn;w(Qn,"NodePromotion",1627),b(1628,1,De,xgn),o.Ne=function(e,t){return E6e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"NodePromotion/1",1628),b(1629,1,De,Rgn),o.Ne=function(e,t){return M6e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"NodePromotion/2",1629),b(1630,1,{},Kgn),o.Kb=function(e){return u(e,42),VM(),_n(),!0},o.Fb=function(e){return this===e},w(Qn,"NodePromotion/lambda$0$Type",1630),b(1631,1,{},s7n),o.Kb=function(e){return v2e(this.a,u(e,42))},o.Fb=function(e){return this===e},o.a=0,w(Qn,"NodePromotion/lambda$1$Type",1631),b(1632,1,{},f7n),o.Kb=function(e){return m2e(this.a,u(e,42))},o.Fb=function(e){return this===e},o.a=0,w(Qn,"NodePromotion/lambda$2$Type",1632),b(1633,1,vt,Bgn),o.Kf=function(e,t){rNe(u(e,36),t)},w(Qn,"NorthSouthPortPostprocessor",1633),b(1634,1,vt,Fgn),o.Kf=function(e,t){KLe(u(e,36),t)},w(Qn,"NorthSouthPortPreprocessor",1634),b(1635,1,De,_gn),o.Ne=function(e,t){return Kve(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"NorthSouthPortPreprocessor/lambda$0$Type",1635),b(1636,1,vt,Hgn),o.Kf=function(e,t){nIe(u(e,36),t)},w(Qn,"PartitionMidprocessor",1636),b(1637,1,Le,qgn),o.Mb=function(e){return kt(u(e,10),(cn(),Mv))},w(Qn,"PartitionMidprocessor/lambda$0$Type",1637),b(1638,1,re,h7n),o.Cd=function(e){vge(this.a,u(e,10))},w(Qn,"PartitionMidprocessor/lambda$1$Type",1638),b(1639,1,vt,Ugn),o.Kf=function(e,t){eCe(u(e,36),t)},w(Qn,"PartitionPostprocessor",1639),b(1640,1,vt,Ggn),o.Kf=function(e,t){wMe(u(e,36),t)},w(Qn,"PartitionPreprocessor",1640),b(1641,1,Le,zgn),o.Mb=function(e){return kt(u(e,10),(cn(),Mv))},w(Qn,"PartitionPreprocessor/lambda$0$Type",1641),b(1642,1,{},Xgn),o.Kb=function(e){return new Cn(null,new pb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(Qn,"PartitionPreprocessor/lambda$1$Type",1642),b(1643,1,Le,Vgn),o.Mb=function(e){return c9e(u(e,18))},w(Qn,"PartitionPreprocessor/lambda$2$Type",1643),b(1644,1,re,Wgn),o.Cd=function(e){e6e(u(e,18))},w(Qn,"PartitionPreprocessor/lambda$3$Type",1644),b(1645,1,vt,V5n),o.Kf=function(e,t){DPe(u(e,36),t)};var jsn,VZn,WZn,JZn,Esn,Msn;w(Qn,"PortListSorter",1645),b(1648,1,De,Jgn),o.Ne=function(e,t){return XLn(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"PortListSorter/lambda$0$Type",1648),b(1650,1,De,Qgn),o.Ne=function(e,t){return CUn(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"PortListSorter/lambda$1$Type",1650),b(1646,1,{},Ygn),o.Kb=function(e){return cm(),u(e,12).e},w(Qn,"PortListSorter/lambda$2$Type",1646),b(1647,1,{},Zgn),o.Kb=function(e){return cm(),u(e,12).g},w(Qn,"PortListSorter/lambda$3$Type",1647),b(1649,1,De,n2n),o.Ne=function(e,t){return I7e(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"PortListSorter/lambda$4$Type",1649),b(1651,1,vt,e2n),o.Kf=function(e,t){UMe(u(e,36),t)},w(Qn,"PortSideProcessor",1651),b(1652,1,vt,t2n),o.Kf=function(e,t){GSe(u(e,36),t)},w(Qn,"ReversedEdgeRestorer",1652),b(1657,1,vt,Wyn),o.Kf=function(e,t){l7e(this,u(e,36),t)},w(Qn,"SelfLoopPortRestorer",1657),b(1658,1,{},i2n),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"SelfLoopPortRestorer/lambda$0$Type",1658),b(1659,1,Le,r2n),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"SelfLoopPortRestorer/lambda$1$Type",1659),b(1660,1,Le,c2n),o.Mb=function(e){return kt(u(e,10),(W(),h0))},w(Qn,"SelfLoopPortRestorer/lambda$2$Type",1660),b(1661,1,{},u2n),o.Kb=function(e){return u(v(u(e,10),(W(),h0)),337)},w(Qn,"SelfLoopPortRestorer/lambda$3$Type",1661),b(1662,1,re,u7n),o.Cd=function(e){Cje(this.a,u(e,337))},w(Qn,"SelfLoopPortRestorer/lambda$4$Type",1662),b(805,1,re,UU),o.Cd=function(e){Bje(u(e,105))},w(Qn,"SelfLoopPortRestorer/lambda$5$Type",805),b(1663,1,vt,o2n),o.Kf=function(e,t){p9e(u(e,36),t)},w(Qn,"SelfLoopPostProcessor",1663),b(1664,1,{},s2n),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"SelfLoopPostProcessor/lambda$0$Type",1664),b(1665,1,Le,f2n),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"SelfLoopPostProcessor/lambda$1$Type",1665),b(1666,1,Le,h2n),o.Mb=function(e){return kt(u(e,10),(W(),h0))},w(Qn,"SelfLoopPostProcessor/lambda$2$Type",1666),b(1667,1,re,l2n),o.Cd=function(e){Pke(u(e,10))},w(Qn,"SelfLoopPostProcessor/lambda$3$Type",1667),b(1668,1,{},a2n),o.Kb=function(e){return new Cn(null,new On(u(e,105).f,1))},w(Qn,"SelfLoopPostProcessor/lambda$4$Type",1668),b(1669,1,re,c7n),o.Cd=function(e){n3e(this.a,u(e,340))},w(Qn,"SelfLoopPostProcessor/lambda$5$Type",1669),b(1670,1,Le,d2n),o.Mb=function(e){return!!u(e,105).i},w(Qn,"SelfLoopPostProcessor/lambda$6$Type",1670),b(1671,1,re,o7n),o.Cd=function(e){nhe(this.a,u(e,105))},w(Qn,"SelfLoopPostProcessor/lambda$7$Type",1671),b(1653,1,vt,b2n),o.Kf=function(e,t){vTe(u(e,36),t)},w(Qn,"SelfLoopPreProcessor",1653),b(1654,1,{},w2n),o.Kb=function(e){return new Cn(null,new On(u(e,105).f,1))},w(Qn,"SelfLoopPreProcessor/lambda$0$Type",1654),b(1655,1,{},g2n),o.Kb=function(e){return u(e,340).a},w(Qn,"SelfLoopPreProcessor/lambda$1$Type",1655),b(1656,1,re,p2n),o.Cd=function(e){i1e(u(e,18))},w(Qn,"SelfLoopPreProcessor/lambda$2$Type",1656),b(1672,1,vt,USn),o.Kf=function(e,t){oje(this,u(e,36),t)},w(Qn,"SelfLoopRouter",1672),b(1673,1,{},m2n),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"SelfLoopRouter/lambda$0$Type",1673),b(1674,1,Le,v2n),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"SelfLoopRouter/lambda$1$Type",1674),b(1675,1,Le,k2n),o.Mb=function(e){return kt(u(e,10),(W(),h0))},w(Qn,"SelfLoopRouter/lambda$2$Type",1675),b(1676,1,{},y2n),o.Kb=function(e){return u(v(u(e,10),(W(),h0)),337)},w(Qn,"SelfLoopRouter/lambda$3$Type",1676),b(1677,1,re,PMn),o.Cd=function(e){dge(this.a,this.b,u(e,337))},w(Qn,"SelfLoopRouter/lambda$4$Type",1677),b(1678,1,vt,j2n),o.Kf=function(e,t){RCe(u(e,36),t)},w(Qn,"SemiInteractiveCrossMinProcessor",1678),b(1679,1,Le,E2n),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1679),b(1680,1,Le,M2n),o.Mb=function(e){return oIn(u(e,10))._b((cn(),Hw))},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1680),b(1681,1,De,T2n),o.Ne=function(e,t){return nve(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1681),b(1682,1,{},C2n),o.Ve=function(e,t){return kge(u(e,10),u(t,10))},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1682),b(1684,1,vt,S2n),o.Kf=function(e,t){oOe(u(e,36),t)},w(Qn,"SortByInputModelProcessor",1684),b(1685,1,Le,P2n),o.Mb=function(e){return u(e,12).g.c.length!=0},w(Qn,"SortByInputModelProcessor/lambda$0$Type",1685),b(1686,1,re,l7n),o.Cd=function(e){Uje(this.a,u(e,12))},w(Qn,"SortByInputModelProcessor/lambda$1$Type",1686),b(1759,817,{},pxn),o.df=function(e){var t,i,r,c;switch(this.c=e,this.a.g){case 2:t=new Z,qt(ut(new Cn(null,new On(this.c.a.b,16)),new H2n),new RMn(this,t)),Zk(this,new O2n),nu(t,new A2n),t.c.length=0,qt(ut(new Cn(null,new On(this.c.a.b,16)),new L2n),new d7n(t)),Zk(this,new N2n),nu(t,new D2n),t.c.length=0,i=mCn(A$(U0(new Cn(null,new On(this.c.a.b,16)),new b7n(this))),new $2n),qt(new Cn(null,new On(this.c.a.a,16)),new AMn(i,t)),Zk(this,new R2n),nu(t,new K2n),t.c.length=0;break;case 3:r=new Z,Zk(this,new I2n),c=mCn(A$(U0(new Cn(null,new On(this.c.a.b,16)),new a7n(this))),new x2n),qt(ut(new Cn(null,new On(this.c.a.b,16)),new B2n),new NMn(c,r)),Zk(this,new F2n),nu(r,new _2n),r.c.length=0;break;default:throw T(new xyn)}},o.b=0,w(di,"EdgeAwareScanlineConstraintCalculation",1759),b(1760,1,ph,I2n),o.Lb=function(e){return L(u(e,60).g,154)},o.Fb=function(e){return this===e},o.Mb=function(e){return L(u(e,60).g,154)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1760),b(1761,1,{},a7n),o.Ye=function(e){return SEe(this.a,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1761),b(1769,1,JS,IMn),o.de=function(){I5(this.a,this.b,-1)},o.b=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1769),b(1771,1,ph,O2n),o.Lb=function(e){return L(u(e,60).g,154)},o.Fb=function(e){return this===e},o.Mb=function(e){return L(u(e,60).g,154)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1771),b(1772,1,re,A2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1772),b(1773,1,Le,L2n),o.Mb=function(e){return L(u(e,60).g,10)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1773),b(1775,1,re,d7n),o.Cd=function(e){X5e(this.a,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1775),b(1774,1,JS,DMn),o.de=function(){I5(this.b,this.a,-1)},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1774),b(1776,1,ph,N2n),o.Lb=function(e){return L(u(e,60).g,10)},o.Fb=function(e){return this===e},o.Mb=function(e){return L(u(e,60).g,10)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1776),b(1777,1,re,D2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1777),b(1778,1,{},b7n),o.Ye=function(e){return PEe(this.a,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1778),b(1779,1,{},$2n),o.We=function(){return 0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1779),b(1762,1,{},x2n),o.We=function(){return 0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1762),b(1781,1,re,AMn),o.Cd=function(e){Y0e(this.a,this.b,u(e,316))},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1781),b(1780,1,JS,LMn),o.de=function(){LHn(this.a,this.b,-1)},o.b=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1780),b(1782,1,ph,R2n),o.Lb=function(e){return u(e,60),!0},o.Fb=function(e){return this===e},o.Mb=function(e){return u(e,60),!0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1782),b(1783,1,re,K2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1783),b(1763,1,Le,B2n),o.Mb=function(e){return L(u(e,60).g,10)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1763),b(1765,1,re,NMn),o.Cd=function(e){Z0e(this.a,this.b,u(e,60))},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1765),b(1764,1,JS,$Mn),o.de=function(){I5(this.b,this.a,-1)},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1764),b(1766,1,ph,F2n),o.Lb=function(e){return u(e,60),!0},o.Fb=function(e){return this===e},o.Mb=function(e){return u(e,60),!0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1766),b(1767,1,re,_2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1767),b(1768,1,Le,H2n),o.Mb=function(e){return L(u(e,60).g,154)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1768),b(1770,1,re,RMn),o.Cd=function(e){pme(this.a,this.b,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1770),b(1586,1,vt,tSn),o.Kf=function(e,t){$Oe(this,u(e,36),t)};var QZn;w(di,"HorizontalGraphCompactor",1586),b(1587,1,{},w7n),o.ff=function(e,t){var i,r,c;return iQ(e,t)||(i=Ig(e),r=Ig(t),i&&i.k==(Vn(),Zt)||r&&r.k==(Vn(),Zt))?0:(c=u(v(this.a.a,(W(),E2)),312),B1e(c,i?i.k:(Vn(),Ti),r?r.k:(Vn(),Ti)))},o.gf=function(e,t){var i,r,c;return iQ(e,t)?1:(i=Ig(e),r=Ig(t),c=u(v(this.a.a,(W(),E2)),312),VX(c,i?i.k:(Vn(),Ti),r?r.k:(Vn(),Ti)))},w(di,"HorizontalGraphCompactor/1",1587),b(1588,1,{},q2n),o.ef=function(e,t){return o6(),e.a.i==0},w(di,"HorizontalGraphCompactor/lambda$0$Type",1588),b(1589,1,{},g7n),o.ef=function(e,t){return Ege(this.a,e,t)},w(di,"HorizontalGraphCompactor/lambda$1$Type",1589),b(1730,1,{},zDn);var YZn,ZZn;w(di,"LGraphToCGraphTransformer",1730),b(1738,1,Le,U2n),o.Mb=function(e){return e!=null},w(di,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1738),b(1731,1,{},G2n),o.Kb=function(e){return Rs(),Jr(v(u(u(e,60).g,10),(W(),st)))},w(di,"LGraphToCGraphTransformer/lambda$0$Type",1731),b(1732,1,{},z2n),o.Kb=function(e){return Rs(),iKn(u(u(e,60).g,154))},w(di,"LGraphToCGraphTransformer/lambda$1$Type",1732),b(1741,1,Le,X2n),o.Mb=function(e){return Rs(),L(u(e,60).g,10)},w(di,"LGraphToCGraphTransformer/lambda$10$Type",1741),b(1742,1,re,V2n),o.Cd=function(e){Pge(u(e,60))},w(di,"LGraphToCGraphTransformer/lambda$11$Type",1742),b(1743,1,Le,W2n),o.Mb=function(e){return Rs(),L(u(e,60).g,154)},w(di,"LGraphToCGraphTransformer/lambda$12$Type",1743),b(1747,1,re,J2n),o.Cd=function(e){c5e(u(e,60))},w(di,"LGraphToCGraphTransformer/lambda$13$Type",1747),b(1744,1,re,p7n),o.Cd=function(e){Lle(this.a,u(e,8))},o.a=0,w(di,"LGraphToCGraphTransformer/lambda$14$Type",1744),b(1745,1,re,m7n),o.Cd=function(e){Dle(this.a,u(e,116))},o.a=0,w(di,"LGraphToCGraphTransformer/lambda$15$Type",1745),b(1746,1,re,v7n),o.Cd=function(e){Nle(this.a,u(e,8))},o.a=0,w(di,"LGraphToCGraphTransformer/lambda$16$Type",1746),b(1748,1,{},Q2n),o.Kb=function(e){return Rs(),new Cn(null,new pb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(di,"LGraphToCGraphTransformer/lambda$17$Type",1748),b(1749,1,Le,Y2n),o.Mb=function(e){return Rs(),fr(u(e,18))},w(di,"LGraphToCGraphTransformer/lambda$18$Type",1749),b(1750,1,re,k7n),o.Cd=function(e){W4e(this.a,u(e,18))},w(di,"LGraphToCGraphTransformer/lambda$19$Type",1750),b(1734,1,re,y7n),o.Cd=function(e){jpe(this.a,u(e,154))},w(di,"LGraphToCGraphTransformer/lambda$2$Type",1734),b(1751,1,{},Z2n),o.Kb=function(e){return Rs(),new Cn(null,new On(u(e,30).a,16))},w(di,"LGraphToCGraphTransformer/lambda$20$Type",1751),b(1752,1,{},npn),o.Kb=function(e){return Rs(),new Cn(null,new pb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(di,"LGraphToCGraphTransformer/lambda$21$Type",1752),b(1753,1,{},epn),o.Kb=function(e){return Rs(),u(v(u(e,18),(W(),Ld)),15)},w(di,"LGraphToCGraphTransformer/lambda$22$Type",1753),b(1754,1,Le,tpn),o.Mb=function(e){return F1e(u(e,15))},w(di,"LGraphToCGraphTransformer/lambda$23$Type",1754),b(1755,1,re,j7n),o.Cd=function(e){gEe(this.a,u(e,15))},w(di,"LGraphToCGraphTransformer/lambda$24$Type",1755),b(1733,1,re,KMn),o.Cd=function(e){v3e(this.a,this.b,u(e,154))},w(di,"LGraphToCGraphTransformer/lambda$3$Type",1733),b(1735,1,{},ipn),o.Kb=function(e){return Rs(),new Cn(null,new On(u(e,30).a,16))},w(di,"LGraphToCGraphTransformer/lambda$4$Type",1735),b(1736,1,{},rpn),o.Kb=function(e){return Rs(),new Cn(null,new pb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(di,"LGraphToCGraphTransformer/lambda$5$Type",1736),b(1737,1,{},cpn),o.Kb=function(e){return Rs(),u(v(u(e,18),(W(),Ld)),15)},w(di,"LGraphToCGraphTransformer/lambda$6$Type",1737),b(1739,1,re,E7n),o.Cd=function(e){IEe(this.a,u(e,15))},w(di,"LGraphToCGraphTransformer/lambda$8$Type",1739),b(1740,1,re,BMn),o.Cd=function(e){r1e(this.a,this.b,u(e,154))},w(di,"LGraphToCGraphTransformer/lambda$9$Type",1740),b(1729,1,{},upn),o.cf=function(e){var t,i,r,c,s;for(this.a=e,this.d=new oL,this.c=F(ion,Kn,125,this.a.a.a.c.length,0,1),this.b=0,i=new M(this.a.a.a);i.a<i.c.c.length;)t=u(E(i),316),t.d=this.b,s=hb(i7(new za,t),this.d),this.c[this.b]=s,++this.b;for(zAe(this),zLe(this),WTe(this),IR(KN(this.d),new op),c=new M(this.a.a.b);c.a<c.c.c.length;)r=u(E(c),60),r.d.c=this.c[r.a.d].e+r.b.a},o.b=0,w(di,"NetworkSimplexCompaction",1729),b(154,1,{34:1,154:1},q5),o.Fd=function(e){return ume(this,u(e,154))},o.Ib=function(){return iKn(this)},w(di,"VerticalSegment",154),b(841,1,{},WZ),o.c=0,o.e=0,o.i=0,w(u8,"BetweenLayerEdgeTwoNodeCrossingsCounter",841),b(677,1,{677:1},Axn),o.Ib=function(){return"AdjacencyList [node="+this.d+", adjacencies= "+this.a+"]"},o.b=0,o.c=0,o.f=0,w(u8,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList",677),b(294,1,{34:1,294:1},hSn),o.Fd=function(e){return j0e(this,u(e,294))},o.Ib=function(){return"Adjacency [position="+this.c+", cardinality="+this.a+", currentCardinality="+this.b+"]"},o.a=0,o.b=0,o.c=0,w(u8,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList/Adjacency",294),b(2026,1,{},s_n),o.b=0,o.e=!1,w(u8,"CrossingMatrixFiller",2026);var nne=Dt(Vh,"IInitializable");b(1867,1,_y,_Mn),o.gg=function(e,t,i,r,c,s){},o.ig=function(e,t,i){},o.eg=function(){return this.c!=(Ab(),Z8)},o.fg=function(){this.e=F(ye,_e,28,this.d,15,1)},o.hg=function(e,t){t[e][0].c.p=e},o.jg=function(e,t,i,r){++this.d},o.kg=function(){return!0},o.lg=function(e,t,i,r){return WRn(this,e,t,i),A3e(this,t)},o.mg=function(e,t){var i;return i=Phe(t,e.length),WRn(this,e,i,t),lRn(this,i)},o.d=0,w(u8,"GreedySwitchHeuristic",1867),b(2029,1,{},rIn),o.b=0,o.d=0,w(u8,"NorthSouthEdgeNeighbouringNodeCrossingsCounter",2029),b(2016,1,{},Fqn),o.a=!1,w(u8,"SwitchDecider",2016),b(105,1,{105:1},g_n),o.a=null,o.c=null,o.i=null,w(w3,"SelfHyperLoop",105),b(2013,1,{},iBn),o.c=0,o.e=0,w(w3,"SelfHyperLoopLabels",2013),b(421,22,{3:1,34:1,22:1,421:1},bM);var j3,lv,av,R_,ene=we(w3,"SelfHyperLoopLabels/Alignment",421,ke,Wpe,jde),tne;b(340,1,{340:1},xNn),w(w3,"SelfLoopEdge",340),b(337,1,{337:1},rBn),o.a=!1,w(w3,"SelfLoopHolder",337),b(1790,1,Le,mpn),o.Mb=function(e){return fr(u(e,18))},w(w3,"SelfLoopHolder/lambda$0$Type",1790),b(113,1,{113:1},fBn),o.a=!1,o.c=!1,w(w3,"SelfLoopPort",113),b(1855,1,Le,vpn),o.Mb=function(e){return fr(u(e,18))},w(w3,"SelfLoopPort/lambda$0$Type",1855),b(375,22,{3:1,34:1,22:1,375:1},s7);var UI,gj,GI,zI,XI,ine=we(w3,"SelfLoopType",375,ke,F3e,Ede),rne;b(1798,1,{},Z5n);var cne,une,one,sne;w(Oo,"PortRestorer",1798),b(372,22,{3:1,34:1,22:1,372:1},FL);var c0,va,u0,K_=we(Oo,"PortRestorer/PortSideArea",372,ke,x2e,vde),fne;b(1799,1,{},spn),o.Kb=function(e){return ua(),u(e,15).Oc()},w(Oo,"PortRestorer/lambda$0$Type",1799),b(1800,1,re,fpn),o.Cd=function(e){ua(),u(e,113).c=!1},w(Oo,"PortRestorer/lambda$1$Type",1800),b(1809,1,Le,hpn),o.Mb=function(e){return ua(),u(e,12).j==(en(),Wn)},w(Oo,"PortRestorer/lambda$10$Type",1809),b(1810,1,{},lpn),o.Kb=function(e){return ua(),u(e,113).d},w(Oo,"PortRestorer/lambda$11$Type",1810),b(1811,1,re,M7n),o.Cd=function(e){Nhe(this.a,u(e,12))},w(Oo,"PortRestorer/lambda$12$Type",1811),b(1801,1,re,T7n),o.Cd=function(e){W1e(this.a,u(e,105))},w(Oo,"PortRestorer/lambda$2$Type",1801),b(1802,1,De,apn),o.Ne=function(e,t){return Ime(u(e,113),u(t,113))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Oo,"PortRestorer/lambda$3$Type",1802),b(1803,1,Le,dpn),o.Mb=function(e){return ua(),u(e,113).c},w(Oo,"PortRestorer/lambda$4$Type",1803),b(1804,1,Le,bpn),o.Mb=function(e){return kve(u(e,12))},w(Oo,"PortRestorer/lambda$5$Type",1804),b(1805,1,Le,opn),o.Mb=function(e){return ua(),u(e,12).j==(en(),Xn)},w(Oo,"PortRestorer/lambda$6$Type",1805),b(1806,1,Le,wpn),o.Mb=function(e){return ua(),u(e,12).j==(en(),Zn)},w(Oo,"PortRestorer/lambda$7$Type",1806),b(1807,1,Le,gpn),o.Mb=function(e){return Zpe(u(e,12))},w(Oo,"PortRestorer/lambda$8$Type",1807),b(1808,1,Le,ppn),o.Mb=function(e){return ua(),u(e,12).j==(en(),ae)},w(Oo,"PortRestorer/lambda$9$Type",1808),b(276,22,{3:1,34:1,22:1,276:1},Ap);var B_,F_,__,H_,q_,U_,G_,z_,Tsn=we(Oo,"PortSideAssigner/Target",276,ke,wme,Mde),hne;b(1791,1,{},ypn),o.Kb=function(e){return ut(new Cn(null,new On(u(e,105).j,16)),new GU)},w(Oo,"PortSideAssigner/lambda$1$Type",1791),b(1792,1,{},jpn),o.Kb=function(e){return u(e,113).d},w(Oo,"PortSideAssigner/lambda$2$Type",1792),b(1793,1,re,Epn),o.Cd=function(e){gi(u(e,12),(en(),Xn))},w(Oo,"PortSideAssigner/lambda$3$Type",1793),b(1794,1,{},Mpn),o.Kb=function(e){return u(e,113).d},w(Oo,"PortSideAssigner/lambda$4$Type",1794),b(1795,1,re,C7n),o.Cd=function(e){Ffe(this.a,u(e,12))},w(Oo,"PortSideAssigner/lambda$5$Type",1795),b(1796,1,De,kpn),o.Ne=function(e,t){return Uwe(u(e,105),u(t,105))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Oo,"PortSideAssigner/lambda$6$Type",1796),b(1797,1,De,Tpn),o.Ne=function(e,t){return d0e(u(e,113),u(t,113))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Oo,"PortSideAssigner/lambda$7$Type",1797),b(820,1,Le,GU),o.Mb=function(e){return u(e,113).c},w(Oo,"PortSideAssigner/lambda$8$Type",820),b(2108,1,{}),w(aa,"AbstractSelfLoopRouter",2108),b(1816,1,De,Cpn),o.Ne=function(e,t){return Gae(u(e,105),u(t,105))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(aa,bXn,1816),b(1817,1,De,Spn),o.Ne=function(e,t){return Uae(u(e,105),u(t,105))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(aa,wXn,1817),b(1856,2108,{},Ppn),o.ng=function(e,t,i){return i},w(aa,"OrthogonalSelfLoopRouter",1856),b(1858,1,re,FMn),o.Cd=function(e){cZ(this.b,this.a,u(e,8))},w(aa,"OrthogonalSelfLoopRouter/lambda$0$Type",1858),b(1857,1856,{},Ipn),o.ng=function(e,t,i){var r,c;return r=e.c.d,g4(i,0,tt(Fi(r.n),r.a)),c=e.d.d,Re(i,tt(Fi(c.n),c.a)),VPe(i)},w(aa,"PolylineSelfLoopRouter",1857),b(1812,1,{},n8n),o.a=null;var w2;w(aa,"RoutingDirector",1812),b(1813,1,De,Opn),o.Ne=function(e,t){return h0e(u(e,113),u(t,113))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(aa,"RoutingDirector/lambda$0$Type",1813),b(1814,1,{},Apn),o.Kb=function(e){return ZE(),u(e,105).j},w(aa,"RoutingDirector/lambda$1$Type",1814),b(1815,1,re,Lpn),o.Cd=function(e){ZE(),u(e,15).jd(w2)},w(aa,"RoutingDirector/lambda$2$Type",1815),b(1818,1,{},Npn),w(aa,"RoutingSlotAssigner",1818),b(1819,1,Le,S7n),o.Mb=function(e){return wle(this.a,u(e,105))},w(aa,"RoutingSlotAssigner/lambda$0$Type",1819),b(1820,1,De,P7n),o.Ne=function(e,t){return B0e(this.a,u(e,105),u(t,105))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(aa,"RoutingSlotAssigner/lambda$1$Type",1820),b(1859,1856,{},Dpn),o.ng=function(e,t,i){var r,c,s,f;return r=$(B(nS(e.b.g.b,(cn(),C2)))),f=new aSn(S(C(Ei,1),J,8,0,[(s=e.c.d,tt(new rr(s.n),s.a))])),ETe(e,t,i,f,r),Re(f,(c=e.d.d,tt(new rr(c.n),c.a))),IBn(new _en(f))},w(aa,"SplineSelfLoopRouter",1859),b(586,1,De,wxn,NPn),o.Ne=function(e,t){return dzn(this,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(iin,"ModelOrderNodeComparator",586),b(1821,1,Le,$pn),o.Mb=function(e){return u(e,12).e.c.length!=0},w(iin,"ModelOrderNodeComparator/lambda$0$Type",1821),b(821,1,De,URn,CLn),o.Ne=function(e,t){return PIn(this,e,t)},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},o.b=!1,w(iin,"ModelOrderPortComparator",821),b(815,1,{},zU),o.og=function(e,t){var i,r,c,s;for(c=r_n(t),i=new Z,s=t.f/c,r=1;r<c;++r)nn(i,Y(Se(vc(y.Math.round(r*s)))));return i},o.pg=function(){return!1},w(yh,"ARDCutIndexHeuristic",815),b(1544,1,vt,xpn),o.Kf=function(e,t){aPe(u(e,36),t)},w(yh,"BreakingPointInserter",1544),b(313,1,{313:1},jJ),o.Ib=function(){var e;return e=new x1,e.a+="BPInfo[",e.a+=`
start=`,Lc(e,this.i),e.a+=`
end=`,Lc(e,this.a),e.a+=`
nodeStartEdge=`,Lc(e,this.e),e.a+=`
startEndEdge=`,Lc(e,this.j),e.a+=`
originalEdge=`,Lc(e,this.f),e.a+=`
startInLayerDummy=`,Lc(e,this.k),e.a+=`
startInLayerEdge=`,Lc(e,this.n),e.a+=`
endInLayerDummy=`,Lc(e,this.b),e.a+=`
endInLayerEdge=`,Lc(e,this.c),e.a},w(yh,"BreakingPointInserter/BPInfo",313),b(661,1,{661:1},K7n),o.a=!1,o.b=0,o.c=0,w(yh,"BreakingPointInserter/Cut",661),b(1545,1,vt,Rpn),o.Kf=function(e,t){PTe(u(e,36),t)},w(yh,"BreakingPointProcessor",1545),b(1546,1,Le,Kpn),o.Mb=function(e){return r$n(u(e,10))},w(yh,"BreakingPointProcessor/0methodref$isEnd$Type",1546),b(1547,1,Le,Bpn),o.Mb=function(e){return c$n(u(e,10))},w(yh,"BreakingPointProcessor/1methodref$isStart$Type",1547),b(1548,1,vt,Fpn),o.Kf=function(e,t){JTe(this,u(e,36),t)},w(yh,"BreakingPointRemover",1548),b(1549,1,re,_pn),o.Cd=function(e){u(e,131).k=!0},w(yh,"BreakingPointRemover/lambda$0$Type",1549),b(811,1,{},Gnn),o.b=0,o.e=0,o.f=0,o.j=0,w(yh,"GraphStats",811),b(812,1,{},XU),o.Ve=function(e,t){return y.Math.max($(B(e)),$(B(t)))},w(yh,"GraphStats/0methodref$max$Type",812),b(813,1,{},VU),o.Ve=function(e,t){return y.Math.max($(B(e)),$(B(t)))},w(yh,"GraphStats/2methodref$max$Type",813),b(1726,1,{},Hpn),o.Ve=function(e,t){return Qbe(B(e),B(t))},w(yh,"GraphStats/lambda$1$Type",1726),b(1727,1,{},I7n),o.Kb=function(e){return hBn(this.a,u(e,30))},w(yh,"GraphStats/lambda$2$Type",1727),b(1728,1,{},O7n),o.Kb=function(e){return eqn(this.a,u(e,30))},w(yh,"GraphStats/lambda$6$Type",1728),b(814,1,{},WU),o.og=function(e,t){var i;return i=u(v(e,(cn(),yhn)),15),i||(Ln(),Ln(),sr)},o.pg=function(){return!1},w(yh,"ICutIndexCalculator/ManualCutIndexCalculator",814),b(816,1,{},JU),o.og=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;for(_=(t.n==null&&KBn(t),t.n),l=(t.d==null&&KBn(t),t.d),D=F(Ii,Cr,28,_.length,15,1),D[0]=_[0],O=_[0],a=1;a<_.length;a++)D[a]=D[a-1]+_[a],O+=_[a];for(c=r_n(t)-1,f=u(v(e,(cn(),jhn)),17).a,r=li,i=new Z,p=y.Math.max(0,c-f);p<=y.Math.min(t.f-1,c+f);p++){if(j=O/(p+1),P=0,d=1,s=new Z,A=li,g=0,h=0,k=l[0],p==0)A=O,h=(t.g==null&&(t.g=Exn(t,new VU)),$(t.g));else{for(;d<t.f;)D[d-1]-P>=j&&(nn(s,Y(d)),A=y.Math.max(A,D[d-1]-g),h+=k,P+=D[d-1]-P,g=D[d-1],k=l[d]),k=y.Math.max(k,l[d]),++d;h+=k}m=y.Math.min(1/A,1/t.b/h),m>r&&(r=m,i=s)}return i},o.pg=function(){return!1},w(yh,"MSDCutIndexHeuristic",816),b(1683,1,vt,qpn),o.Kf=function(e,t){KIe(u(e,36),t)},w(yh,"SingleEdgeGraphWrapper",1683),b(232,22,{3:1,34:1,22:1,232:1},w6);var g2,dv,bv,Dw,D8,p2,wv=we(Cc,"CenterEdgeLabelPlacementStrategy",232,ke,E4e,Tde),lne;b(431,22,{3:1,34:1,22:1,431:1},Wz);var Csn,X_,Ssn=we(Cc,"ConstraintCalculationStrategy",431,ke,qge,Cde),ane;b(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},_L),o.dg=function(){return F_n(this)},o.qg=function(){return F_n(this)};var pj,$8,Psn,Isn=we(Cc,"CrossingMinimizationStrategy",322,ke,R2e,Sde),dne;b(351,22,{3:1,34:1,22:1,351:1},HL);var Osn,V_,VI,Asn=we(Cc,"CuttingStrategy",351,ke,K2e,Pde),bne;b(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},f7),o.dg=function(){return OHn(this)},o.qg=function(){return OHn(this)};var Lsn,W_,gv,J_,pv,Nsn=we(Cc,"CycleBreakingStrategy",348,ke,_3e,Ide),wne;b(428,22,{3:1,34:1,22:1,428:1},Jz);var WI,Dsn,$sn=we(Cc,"DirectionCongruency",428,ke,Hge,Ode),gne;b(460,22,{3:1,34:1,22:1,460:1},qL);var mv,Q_,m2,pne=we(Cc,"EdgeConstraint",460,ke,B2e,Rde),mne;b(283,22,{3:1,34:1,22:1,283:1},g6);var Y_,Z_,nH,eH,JI,tH,xsn=we(Cc,"EdgeLabelSideSelection",283,ke,k4e,Kde),vne;b(488,22,{3:1,34:1,22:1,488:1},Qz);var QI,Rsn,Ksn=we(Cc,"EdgeStraighteningStrategy",488,ke,Jge,Bde),kne;b(281,22,{3:1,34:1,22:1,281:1},p6);var iH,Bsn,Fsn,YI,_sn,Hsn,qsn=we(Cc,"FixedAlignment",281,ke,y4e,xde),yne;b(282,22,{3:1,34:1,22:1,282:1},m6);var Usn,Gsn,zsn,Xsn,x8,Vsn,Wsn=we(Cc,"GraphCompactionStrategy",282,ke,j4e,Ade),jne;b(259,22,{3:1,34:1,22:1,259:1},L0);var vv,ZI,kv,cs,R8,nO,yv,v2,eO,K8,rH=we(Cc,"GraphProperties",259,ke,uve,Lde),Ene;b(299,22,{3:1,34:1,22:1,299:1},UL);var mj,cH,uH,oH=we(Cc,"GreedySwitchType",299,ke,F2e,Nde),Mne;b(311,22,{3:1,34:1,22:1,311:1},GL);var E3,vj,k2,Tne=we(Cc,"InLayerConstraint",311,ke,_2e,Dde),Cne;b(429,22,{3:1,34:1,22:1,429:1},Yz);var sH,Jsn,Qsn=we(Cc,"InteractiveReferencePoint",429,ke,_ge,$de),Sne,Ysn,M3,o0,tO,Zsn,nfn,iO,efn,kj,rO,B8,T3,Dl,fH,cO,gc,tfn,ka,Hc,hH,lH,yj,Ad,s0,C3,ifn,S3,jj,$w,yf,Es,aH,y2,dt,st,rfn,cfn,ufn,ofn,sfn,dH,uO,Xu,f0,bH,P3,F8,zf,j2,h0,E2,M2,jv,Ld,ffn,wH,gH,I3;b(171,22,{3:1,34:1,22:1,171:1},h7);var _8,ya,H8,xw,Ej,hfn=we(Cc,"LayerConstraint",171,ke,q3e,Fde),Pne;b(859,1,ms,e8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,cin),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),kfn),(l1(),It)),$sn),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,uin),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(_n(),!1)),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,lP),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),Cfn),It),Qsn),jn(xn)))),ri(e,lP,fB,jee),ri(e,lP,o8,yee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,oin),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,sin),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),yi),Gt),jn(xn)))),vn(e,new ln(Lhe(pn(gn(mn(Pn(an(wn(dn(bn(new hn,fin),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),yi),Gt),jn(Fd)),S(C(fn,1),J,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,hin),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),Dfn),It),qhn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,lin),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Y(7)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ain),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,din),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,fB),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),vfn),It),Nsn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Hy),NB),"Node Layering Strategy"),"Strategy for node layering."),Ifn),It),Ahn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,bin),NB),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),Sfn),It),hfn),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,win),NB),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,gin),NB),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Y(-1)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,hB),YXn),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Y(4)),Zr),Gi),jn(xn)))),ri(e,hB,Hy,Iee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,lB),YXn),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Y(2)),Zr),Gi),jn(xn)))),ri(e,lB,Hy,Aee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,aB),ZXn),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),Pfn),It),Fhn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,dB),ZXn),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Y(0)),Zr),Gi),jn(xn)))),ri(e,dB,aB,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,bB),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Y(et)),Zr),Gi),jn(xn)))),ri(e,bB,Hy,Mee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,o8),Wm),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),mfn),It),Isn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,pin),Wm),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,wB),Wm),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Qi),si),jn(xn)))),ri(e,wB,MP,Vne),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,gB),Wm),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),yi),Gt),jn(xn)))),ri(e,gB,o8,nee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,min),Wm),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),$2),fn),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,vin),Wm),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),$2),fn),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,kin),Wm),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,yin),Wm),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Y(-1)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,jin),nVn),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Y(40)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,pB),nVn),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),pfn),It),oH),jn(xn)))),ri(e,pB,o8,zne),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,aP),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),gfn),It),oH),jn(xn)))),ri(e,aP,o8,qne),ri(e,aP,MP,Une),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,c2),eVn),"Node Placement Strategy"),"Strategy for node placement."),Nfn),It),$hn),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,dP),eVn),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),yi),Gt),jn(xn)))),ri(e,dP,c2,Hee),ri(e,dP,c2,qee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,mB),tVn),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),Ofn),It),Ksn),jn(xn)))),ri(e,mB,c2,Kee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,vB),tVn),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),Afn),It),qsn),jn(xn)))),ri(e,vB,c2,Fee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,kB),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Qi),si),jn(xn)))),ri(e,kB,c2,Gee),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,yB),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),It),KH),jn(pi)))),ri(e,yB,c2,Wee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,jB),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),Lfn),It),KH),jn(xn)))),ri(e,jB,c2,Vee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ein),iVn),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),Efn),It),zhn),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Min),iVn),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),Mfn),It),Xhn),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,bP),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),Tfn),It),Whn),jn(xn)))),ri(e,bP,qy,lee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,wP),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Qi),si),jn(xn)))),ri(e,wP,qy,dee),ri(e,wP,bP,bee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,EB),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),Qi),si),jn(xn)))),ri(e,EB,qy,oee),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Tin),qf),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Cin),qf),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Sin),qf),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Pin),qf),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Iin),Bin),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Y(0)),Zr),Gi),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Oin),Bin),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Y(0)),Zr),Gi),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ain),Bin),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Y(0)),Zr),Gi),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,MB),Fin),vXn),"Tries to further compact components (disconnected sub-graphs)."),!1),yi),Gt),jn(xn)))),ri(e,MB,t8,!0),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Lin),rVn),"Post Compaction Strategy"),cVn),afn),It),Wsn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Nin),rVn),"Post Compaction Constraint Calculation"),cVn),lfn),It),Ssn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,gP),_in),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,TB),_in),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Y(16)),Zr),Gi),jn(xn)))),ri(e,TB,gP,!0),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,CB),_in),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Y(5)),Zr),Gi),jn(xn)))),ri(e,CB,gP,!0),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Al),Hin),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),Rfn),It),Zhn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,pP),Hin),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),Qi),si),jn(xn)))),ri(e,pP,Al,ste),ri(e,pP,Al,fte),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,mP),Hin),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),Qi),si),jn(xn)))),ri(e,mP,Al,lte),ri(e,mP,Al,ate),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,s8),uVn),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),xfn),It),Asn),jn(xn)))),ri(e,s8,Al,mte),ri(e,s8,Al,vte),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,SB),uVn),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),Vf),rs),jn(xn)))),ri(e,SB,s8,bte),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,PB),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),$fn),Zr),Gi),jn(xn)))),ri(e,PB,s8,gte),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,vP),oVn),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),Kfn),It),Yhn),jn(xn)))),ri(e,vP,Al,Ate),ri(e,vP,Al,Lte),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,kP),oVn),"Valid Indices for Wrapping"),null),Vf),rs),jn(xn)))),ri(e,kP,Al,Pte),ri(e,kP,Al,Ite),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,yP),qin),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),yi),Gt),jn(xn)))),ri(e,yP,Al,Ete),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,jP),qin),"Distance Penalty When Improving Cuts"),null),2),Qi),si),jn(xn)))),ri(e,jP,Al,yte),ri(e,jP,yP,!0),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,IB),qin),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),yi),Gt),jn(xn)))),ri(e,IB,Al,Tte),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Din),DB),"Edge Label Side Selection"),"Method to decide on edge label sides."),jfn),It),xsn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,$in),DB),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),yfn),It),wv),yt(xn,S(C(Zh,1),G,170,0,[E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,EP),f8),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),wfn),It),Hhn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,xin),f8),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Rin),f8),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,OB),f8),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),dfn),It),Non),jn(xn)))),ri(e,OB,t8,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Kin),f8),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),bfn),It),Nhn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,AB),f8),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),Qi),si),jn(xn)))),ri(e,AB,EP,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,LB),f8),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),Qi),si),jn(xn)))),ri(e,LB,EP,null),Mzn((new t8n,e))};var Ine,One,Ane,lfn,Lne,afn,Nne,dfn,Dne,$ne,xne,bfn,Rne,Kne,Bne,wfn,Fne,_ne,Hne,gfn,qne,Une,Gne,pfn,zne,Xne,Vne,Wne,Jne,Qne,Yne,Zne,nee,eee,mfn,tee,vfn,iee,kfn,ree,yfn,cee,jfn,uee,oee,see,Efn,fee,Mfn,hee,Tfn,lee,aee,dee,bee,wee,gee,pee,mee,vee,kee,Cfn,yee,jee,Eee,Mee,Tee,Cee,Sfn,See,Pee,Iee,Oee,Aee,Lee,Nee,Pfn,Dee,Ifn,$ee,xee,Ree,Ofn,Kee,Bee,Afn,Fee,_ee,Hee,qee,Uee,Gee,zee,Xee,Lfn,Vee,Wee,Jee,Nfn,Qee,Dfn,Yee,Zee,nte,ete,tte,ite,rte,cte,ute,ote,ste,fte,hte,lte,ate,dte,bte,wte,$fn,gte,pte,xfn,mte,vte,kte,yte,jte,Ete,Mte,Tte,Cte,Rfn,Ste,Pte,Ite,Ote,Kfn,Ate,Lte;w(Cc,"LayeredMetaDataProvider",859),b(998,1,ms,t8n),o.hf=function(e){Mzn(e)};var Ch,pH,oO,q8,sO,Bfn,fO,Rw,hO,Ffn,_fn,lO,mH,Yh,vH,l0,Hfn,Mj,kH,qfn,Nte,Dte,$te,aO,yH,U8,Nd,xte,Lo,Ufn,Gfn,dO,jH,Sh,bO,$l,zfn,Xfn,Vfn,EH,MH,Wfn,m1,TH,Jfn,Kw,Qfn,Yfn,Zfn,wO,Bw,Dd,nhn,ehn,Rr,thn,Rte,ou,gO,ihn,rhn,chn,ja,$d,pO,uhn,ohn,mO,a0,shn,CH,G8,fhn,d0,z8,vO,xd,SH,Ev,kO,Rd,hhn,lhn,ahn,Mv,dhn,Kte,Bte,Fte,_te,b0,Fw,Ft,v1,Hte,_w,bhn,Tv,whn,Hw,qte,Cv,ghn,O3,Ute,Gte,Tj,PH,phn,Cj,Ws,T2,C2,w0,Kd,yO,qw,IH,Sv,Pv,g0,S2,OH,Sj,X8,V8,zte,Xte,Vte,mhn,Wte,AH,vhn,khn,yhn,jhn,LH,Ehn,Mhn,Thn,Chn,NH,jO;w(Cc,"LayeredOptions",998),b(999,1,{},Upn),o.sf=function(){var e;return e=new Uyn,e},o.tf=function(e){},w(Cc,"LayeredOptions/LayeredFactory",999),b(1391,1,{}),o.a=0;var Jte;w(dc,"ElkSpacings/AbstractSpacingsBuilder",1391),b(792,1391,{},zY);var EO,Qte;w(Cc,"LayeredSpacings/LayeredSpacingsBuilder",792),b(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},dg),o.dg=function(){return Bqn(this)},o.qg=function(){return Bqn(this)};var Iv,DH,Ov,Shn,Phn,Ihn,MO,$H,Ohn,Ahn=we(Cc,"LayeringStrategy",265,ke,xme,_de),Yte;b(390,22,{3:1,34:1,22:1,390:1},zL);var xH,Lhn,TO,Nhn=we(Cc,"LongEdgeOrderingStrategy",390,ke,H2e,Hde),Zte;b(203,22,{3:1,34:1,22:1,203:1},wM);var P2,I2,CO,RH,KH=we(Cc,"NodeFlexibility",203,ke,Qpe,qde),nie;b(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},l7),o.dg=function(){return IHn(this)},o.qg=function(){return IHn(this)};var W8,BH,FH,J8,Dhn,$hn=we(Cc,"NodePlacementStrategy",323,ke,H3e,Ude),eie;b(243,22,{3:1,34:1,22:1,243:1},N0);var xhn,p0,Uw,Pj,Rhn,Khn,Ij,Bhn,SO,PO,Fhn=we(Cc,"NodePromotionStrategy",243,ke,ove,Gde),tie;b(284,22,{3:1,34:1,22:1,284:1},gM);var _hn,k1,_H,HH,Hhn=we(Cc,"OrderingStrategy",284,ke,Ype,zde),iie;b(430,22,{3:1,34:1,22:1,430:1},Zz);var qH,UH,qhn=we(Cc,"PortSortingStrategy",430,ke,Uge,Xde),rie;b(463,22,{3:1,34:1,22:1,463:1},XL);var Vu,Jc,Q8,cie=we(Cc,"PortType",463,ke,q2e,Vde),uie;b(387,22,{3:1,34:1,22:1,387:1},VL);var Uhn,GH,Ghn,zhn=we(Cc,"SelfLoopDistributionStrategy",387,ke,U2e,Wde),oie;b(349,22,{3:1,34:1,22:1,349:1},WL);var zH,Oj,XH,Xhn=we(Cc,"SelfLoopOrderingStrategy",349,ke,G2e,Jde),sie;b(312,1,{312:1},yGn),w(Cc,"Spacings",312),b(350,22,{3:1,34:1,22:1,350:1},JL);var VH,Vhn,Y8,Whn=we(Cc,"SplineRoutingMode",350,ke,z2e,Qde),fie;b(352,22,{3:1,34:1,22:1,352:1},QL);var WH,Jhn,Qhn,Yhn=we(Cc,"ValidifyStrategy",352,ke,X2e,Yde),hie;b(388,22,{3:1,34:1,22:1,388:1},YL);var Gw,JH,Av,Zhn=we(Cc,"WrappingStrategy",388,ke,V2e,Zde),lie;b(1398,1,vr,X5n),o.rg=function(e){return u(e,36),aie},o.Kf=function(e,t){LOe(this,u(e,36),t)};var aie;w(PP,"DepthFirstCycleBreaker",1398),b(793,1,vr,aW),o.rg=function(e){return u(e,36),die},o.Kf=function(e,t){$Ne(this,u(e,36),t)},o.sg=function(e){return u(sn(e,cS(this.d,e.c.length)),10)};var die;w(PP,"GreedyCycleBreaker",793),b(1401,793,vr,FTn),o.sg=function(e){var t,i,r,c;for(c=null,t=et,r=new M(e);r.a<r.c.c.length;)i=u(E(r),10),kt(i,(W(),dt))&&u(v(i,dt),17).a<t&&(t=u(v(i,dt),17).a,c=i);return c||u(sn(e,cS(this.d,e.c.length)),10)},w(PP,"GreedyModelOrderCycleBreaker",1401),b(1399,1,vr,z5n),o.rg=function(e){return u(e,36),bie},o.Kf=function(e,t){_Oe(this,u(e,36),t)};var bie;w(PP,"InteractiveCycleBreaker",1399),b(1400,1,vr,U5n),o.rg=function(e){return u(e,36),wie},o.Kf=function(e,t){QOe(this,u(e,36),t)},o.a=0,o.b=0;var wie;w(PP,"ModelOrderCycleBreaker",1400),b(1413,1,vr,q5n),o.rg=function(e){return u(e,36),gie},o.Kf=function(e,t){FLe(this,u(e,36),t)};var gie;w(Ll,"BreadthFirstModelOrderLayerer",1413),b(1414,1,De,Gpn),o.Ne=function(e,t){return lEe(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"BreadthFirstModelOrderLayerer/lambda$0$Type",1414),b(1404,1,vr,dMn),o.rg=function(e){return u(e,36),pie},o.Kf=function(e,t){FNe(this,u(e,36),t)};var pie;w(Ll,"CoffmanGrahamLayerer",1404),b(1405,1,De,A7n),o.Ne=function(e,t){return QEe(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type",1405),b(1406,1,De,L7n),o.Ne=function(e,t){return Q0e(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"CoffmanGrahamLayerer/lambda$1$Type",1406),b(1415,1,vr,G5n),o.rg=function(e){return u(e,36),mie},o.Kf=function(e,t){SNe(this,u(e,36),t)},o.c=0,o.e=0;var mie;w(Ll,"DepthFirstModelOrderLayerer",1415),b(1416,1,De,zpn),o.Ne=function(e,t){return aEe(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"DepthFirstModelOrderLayerer/lambda$0$Type",1416),b(1407,1,vr,Xpn),o.rg=function(e){return u(e,36),Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),N_)),Jh,Nw),Ac,Lw)},o.Kf=function(e,t){ZLe(u(e,36),t)},w(Ll,"InteractiveLayerer",1407),b(578,1,{578:1},Vyn),o.a=0,o.c=0,w(Ll,"InteractiveLayerer/LayerSpan",578),b(1403,1,vr,J5n),o.rg=function(e){return u(e,36),vie},o.Kf=function(e,t){SCe(this,u(e,36),t)};var vie;w(Ll,"LongestPathLayerer",1403),b(1412,1,vr,W5n),o.rg=function(e){return u(e,36),kie},o.Kf=function(e,t){QCe(this,u(e,36),t)};var kie;w(Ll,"LongestPathSourceLayerer",1412),b(1410,1,vr,Q5n),o.rg=function(e){return u(e,36),Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)},o.Kf=function(e,t){sNe(this,u(e,36),t)},o.a=0,o.b=0,o.d=0;var nln,eln;w(Ll,"MinWidthLayerer",1410),b(1411,1,De,N7n),o.Ne=function(e,t){return Ive(this,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"MinWidthLayerer/MinOutgoingEdgesComparator",1411),b(1402,1,vr,Y5n),o.rg=function(e){return u(e,36),yie},o.Kf=function(e,t){jAe(this,u(e,36),t)};var yie;w(Ll,"NetworkSimplexLayerer",1402),b(1408,1,vr,_Sn),o.rg=function(e){return u(e,36),Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)},o.Kf=function(e,t){uLe(this,u(e,36),t)},o.d=0,o.f=0,o.g=0,o.i=0,o.s=0,o.t=0,o.u=0,w(Ll,"StretchWidthLayerer",1408),b(1409,1,De,Vpn),o.Ne=function(e,t){return u4e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"StretchWidthLayerer/1",1409),b(413,1,Mrn),o.gg=function(e,t,i,r,c,s){},o.ug=function(e,t,i){return aUn(this,e,t,i)},o.fg=function(){this.g=F(cg,fVn,28,this.d,15,1),this.f=F(cg,fVn,28,this.d,15,1)},o.hg=function(e,t){this.e[e]=F(ye,_e,28,t[e].length,15,1)},o.ig=function(e,t,i){var r;r=i[e][t],r.p=t,this.e[e][t]=t},o.jg=function(e,t,i,r){u(sn(r[e][t].j,i),12).p=this.d++},o.b=0,o.c=0,o.d=0,w(Du,"AbstractBarycenterPortDistributor",413),b(1698,1,De,D7n),o.Ne=function(e,t){return t9e(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Du,"AbstractBarycenterPortDistributor/lambda$0$Type",1698),b(832,1,_y,pJ),o.gg=function(e,t,i,r,c,s){},o.ig=function(e,t,i){},o.jg=function(e,t,i,r){},o.eg=function(){return!1},o.fg=function(){this.c=this.e.a,this.g=this.f.g},o.hg=function(e,t){t[e][0].c.p=e},o.kg=function(){return!1},o.vg=function(e,t,i,r){i?wFn(this,e):(vFn(this,e,r),DGn(this,e,t)),e.c.length>1&&(on(un(v(Hi((Nn(0,e.c.length),u(e.c[0],10))),(cn(),l0))))?HHn(e,this.d,u(this,669)):(Ln(),Yt(e,this.d)),qxn(this.e,e))},o.lg=function(e,t,i,r){var c,s,f,h,l,a,d;for(t!=uIn(i,e.length)&&(s=e[t-(i?1:-1)],_J(this.f,s,i?(gr(),Jc):(gr(),Vu))),c=e[t][0],d=!r||c.k==(Vn(),Zt),a=Af(e[t]),this.vg(a,d,!1,i),f=0,l=new M(a);l.a<l.c.c.length;)h=u(E(l),10),e[t][f++]=h;return!1},o.mg=function(e,t){var i,r,c,s,f;for(f=uIn(t,e.length),s=Af(e[f]),this.vg(s,!1,!0,t),i=0,c=new M(s);c.a<c.c.c.length;)r=u(E(c),10),e[f][i++]=r;return!1},w(Du,"BarycenterHeuristic",832),b(667,1,{667:1},R7n),o.Ib=function(){return"BarycenterState [node="+this.c+", summedWeight="+this.d+", degree="+this.b+", barycenter="+this.a+", visited="+this.e+"]"},o.b=0,o.d=0,o.e=!1;var jie=w(Du,"BarycenterHeuristic/BarycenterState",667);b(1865,1,De,$7n),o.Ne=function(e,t){return Jke(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Du,"BarycenterHeuristic/lambda$0$Type",1865),b(831,1,_y,JZ),o.fg=function(){},o.gg=function(e,t,i,r,c,s){},o.jg=function(e,t,i,r){},o.hg=function(e,t){this.a[e]=F(jie,{3:1,4:1,5:1,2117:1},667,t[e].length,0,1),this.b[e]=F(Eie,{3:1,4:1,5:1,2118:1},239,t[e].length,0,1)},o.ig=function(e,t,i){nBn(this,i[e][t],!0)},o.c=!1,w(Du,"ForsterConstraintResolver",831),b(239,1,{239:1},XOn,kGn),o.Ib=function(){var e,t;for(t=new x1,t.a+="[",e=0;e<this.d.length;e++)Be(t,wBn(this.d[e])),Sf(this.g,this.d[0]).a!=null&&Be(Be((t.a+="<",t),jle(Sf(this.g,this.d[0]).a)),">"),e<this.d.length-1&&(t.a+=ur);return(t.a+="]",t).a},o.a=0,o.c=0,o.f=0;var Eie=w(Du,"ForsterConstraintResolver/ConstraintGroup",239);b(1860,1,re,x7n),o.Cd=function(e){nBn(this.a,u(e,10),!1)},w(Du,"ForsterConstraintResolver/lambda$0$Type",1860),b(219,1,{219:1,230:1},EGn),o.gg=function(e,t,i,r,c,s){},o.hg=function(e,t){},o.fg=function(){this.r=F(ye,_e,28,this.n,15,1)},o.ig=function(e,t,i){var r,c;c=i[e][t],r=c.e,r&&nn(this.b,r)},o.jg=function(e,t,i,r){++this.n},o.Ib=function(){return $Gn(this.e,new ni)},o.g=!1,o.i=!1,o.n=0,o.s=!1,w(Du,"GraphInfoHolder",219),b(1905,1,_y,Wpn),o.gg=function(e,t,i,r,c,s){},o.hg=function(e,t){},o.jg=function(e,t,i,r){},o.ug=function(e,t,i){return i&&t>0?LD(this.a,e[t-1],e[t]):!i&&t<e.length-1?LD(this.a,e[t],e[t+1]):C$(this.a,e[t],i?(en(),Wn):(en(),Zn)),ITe(this,e,t,i)},o.fg=function(){this.d=F(ye,_e,28,this.c,15,1),this.a=new L7(this.d)},o.ig=function(e,t,i){var r;r=i[e][t],this.c+=r.j.c.length},o.c=0,w(Du,"GreedyPortDistributor",1905),b(1421,1,vr,i8n),o.rg=function(e){return X6e(u(e,36))},o.Kf=function(e,t){HAe(u(e,36),t)};var Mie;w(Du,"InteractiveCrossingMinimizer",1421),b(1422,1,De,B7n),o.Ne=function(e,t){return Ake(this,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Du,"InteractiveCrossingMinimizer/1",1422),b(514,1,{514:1,106:1,47:1},gL),o.rg=function(e){var t;return u(e,36),t=LM(Tie),Fe(t,(Vi(),Ac),(tr(),RI)),t},o.Kf=function(e,t){WPe(this,u(e,36),t)},o.e=0;var Tie;w(Du,"LayerSweepCrossingMinimizer",514),b(1418,1,re,F7n),o.Cd=function(e){BIe(this.a,u(e,219))},w(Du,"LayerSweepCrossingMinimizer/0methodref$compareDifferentRandomizedLayouts$Type",1418),b(1419,1,re,_7n),o.Cd=function(e){G6e(this.a,u(e,219))},w(Du,"LayerSweepCrossingMinimizer/1methodref$minimizeCrossingsNoCounter$Type",1419),b(1420,1,re,H7n),o.Cd=function(e){YUn(this.a,u(e,219))},w(Du,"LayerSweepCrossingMinimizer/2methodref$minimizeCrossingsWithCounter$Type",1420),b(464,22,{3:1,34:1,22:1,464:1},ZL);var Aj,Z8,IO,Cie=we(Du,"LayerSweepCrossingMinimizer/CrossMinType",464,ke,W2e,nbe),Sie;b(1417,1,Le,Jpn),o.Mb=function(e){return KQ(),u(e,30).a.c.length==0},w(Du,"LayerSweepCrossingMinimizer/lambda$0$Type",1417),b(1862,1,_y,TAn),o.fg=function(){},o.gg=function(e,t,i,r,c,s){},o.jg=function(e,t,i,r){},o.hg=function(e,t){t[e][0].c.p=e,this.b[e]=F(Pie,{3:1,4:1,5:1,2043:1},668,t[e].length,0,1)},o.ig=function(e,t,i){var r;r=i[e][t],r.p=t,$t(this.b[e],t,new Qpn)},w(Du,"LayerSweepTypeDecider",1862),b(668,1,{668:1},Qpn),o.Ib=function(){return"NodeInfo [connectedEdges="+this.a+", hierarchicalInfluence="+this.b+", randomInfluence="+this.c+"]"},o.a=0,o.b=0,o.c=0;var Pie=w(Du,"LayerSweepTypeDecider/NodeInfo",668);b(1863,1,ph,Ypn),o.Lb=function(e){return L6(new Lf(u(e,12).b))},o.Fb=function(e){return this===e},o.Mb=function(e){return L6(new Lf(u(e,12).b))},w(Du,"LayerSweepTypeDecider/lambda$0$Type",1863),b(1864,1,ph,Zpn),o.Lb=function(e){return L6(new Lf(u(e,12).b))},o.Fb=function(e){return this===e},o.Mb=function(e){return L6(new Lf(u(e,12).b))},w(Du,"LayerSweepTypeDecider/lambda$1$Type",1864),b(1906,413,Mrn,Wjn),o.tg=function(e,t,i){var r,c,s,f,h,l,a,d,g;switch(a=this.g,i.g){case 1:{for(r=0,c=0,l=new M(e.j);l.a<l.c.c.length;)f=u(E(l),12),f.e.c.length!=0&&(++r,f.j==(en(),Xn)&&++c);for(s=t+c,g=t+r,h=Rb(e,(gr(),Vu)).Kc();h.Ob();)f=u(h.Pb(),12),f.j==(en(),Xn)?(a[f.p]=s,--s):(a[f.p]=g,--g);return r}case 2:{for(d=0,h=Rb(e,(gr(),Jc)).Kc();h.Ob();)f=u(h.Pb(),12),++d,a[f.p]=t+d;return d}default:throw T(new W9)}},w(Du,"LayerTotalPortDistributor",1906),b(669,832,{669:1,230:1},gxn),o.vg=function(e,t,i,r){i?wFn(this,e):(vFn(this,e,r),DGn(this,e,t)),e.c.length>1&&(on(un(v(Hi((Nn(0,e.c.length),u(e.c[0],10))),(cn(),l0))))?HHn(e,this.d,this):(Ln(),Yt(e,this.d)),on(un(v(Hi((Nn(0,e.c.length),u(e.c[0],10))),l0)))||qxn(this.e,e))},w(Du,"ModelOrderBarycenterHeuristic",669),b(1866,1,De,q7n),o.Ne=function(e,t){return Aje(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Du,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866),b(1423,1,vr,r8n),o.rg=function(e){var t;return u(e,36),t=LM(Iie),Fe(t,(Vi(),Ac),(tr(),RI)),t},o.Kf=function(e,t){bge((u(e,36),t))};var Iie;w(Du,"NoCrossingMinimizer",1423),b(809,413,Mrn,jz),o.tg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m;switch(g=this.g,i.g){case 1:{for(c=0,s=0,d=new M(e.j);d.a<d.c.c.length;)l=u(E(d),12),l.e.c.length!=0&&(++c,l.j==(en(),Xn)&&++s);for(r=1/(c+1),f=t+s*r,m=t+1-r,a=Rb(e,(gr(),Vu)).Kc();a.Ob();)l=u(a.Pb(),12),l.j==(en(),Xn)?(g[l.p]=f,f-=r):(g[l.p]=m,m-=r);break}case 2:{for(h=0,d=new M(e.j);d.a<d.c.c.length;)l=u(E(d),12),l.g.c.length==0||++h;for(r=1/(h+1),p=t+r,a=Rb(e,(gr(),Jc)).Kc();a.Ob();)l=u(a.Pb(),12),g[l.p]=p,p+=r;break}default:throw T(new Gn("Port type is undefined"))}return 1},w(Du,"NodeRelativePortDistributor",809),b(822,1,{},RIn,QFn),w(Du,"SweepCopy",822),b(1861,1,_y,$Kn),o.hg=function(e,t){},o.fg=function(){var e;e=F(ye,_e,28,this.f,15,1),this.d=new Q7n(e),this.a=new L7(e)},o.gg=function(e,t,i,r,c,s){var f;f=u(sn(s[e][t].j,i),12),c.c==f&&c.c.i.c==c.d.i.c&&++this.e[e]},o.ig=function(e,t,i){var r;r=i[e][t],this.c[e]=this.c[e]|r.k==(Vn(),_c)},o.jg=function(e,t,i,r){var c;c=u(sn(r[e][t].j,i),12),c.p=this.f++,c.g.c.length+c.e.c.length>1&&(c.j==(en(),Zn)?this.b[e]=!0:c.j==Wn&&e>0&&(this.b[e-1]=!0))},o.f=0,w(Vh,"AllCrossingsCounter",1861),b(595,1,{},EC),o.b=0,o.d=0,w(Vh,"BinaryIndexedTree",595),b(532,1,{},L7);var tln,OO;w(Vh,"CrossingsCounter",532),b(1950,1,De,U7n),o.Ne=function(e,t){return F0e(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Vh,"CrossingsCounter/lambda$0$Type",1950),b(1951,1,De,G7n),o.Ne=function(e,t){return _0e(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Vh,"CrossingsCounter/lambda$1$Type",1951),b(1952,1,De,z7n),o.Ne=function(e,t){return H0e(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Vh,"CrossingsCounter/lambda$2$Type",1952),b(1953,1,De,X7n),o.Ne=function(e,t){return q0e(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Vh,"CrossingsCounter/lambda$3$Type",1953),b(1954,1,re,V7n),o.Cd=function(e){q4e(this.a,u(e,12))},w(Vh,"CrossingsCounter/lambda$4$Type",1954),b(1955,1,Le,W7n),o.Mb=function(e){return ble(this.a,u(e,12))},w(Vh,"CrossingsCounter/lambda$5$Type",1955),b(1956,1,re,J7n),o.Cd=function(e){ATn(this,e)},w(Vh,"CrossingsCounter/lambda$6$Type",1956),b(1957,1,re,HMn),o.Cd=function(e){var t;k4(),W1(this.b,(t=this.a,u(e,12),t))},w(Vh,"CrossingsCounter/lambda$7$Type",1957),b(839,1,ph,QU),o.Lb=function(e){return k4(),kt(u(e,12),(W(),Xu))},o.Fb=function(e){return this===e},o.Mb=function(e){return k4(),kt(u(e,12),(W(),Xu))},w(Vh,"CrossingsCounter/lambda$8$Type",839),b(1949,1,{},Q7n),w(Vh,"HyperedgeCrossingsCounter",1949),b(478,1,{34:1,478:1},GSn),o.Fd=function(e){return H8e(this,u(e,478))},o.b=0,o.c=0,o.e=0,o.f=0;var jDe=w(Vh,"HyperedgeCrossingsCounter/Hyperedge",478);b(374,1,{34:1,374:1},MT),o.Fd=function(e){return tTe(this,u(e,374))},o.b=0,o.c=0;var Oie=w(Vh,"HyperedgeCrossingsCounter/HyperedgeCorner",374);b(531,22,{3:1,34:1,22:1,531:1},nX);var n9,e9,Aie=we(Vh,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,ke,Gge,ebe),Lie;b(1425,1,vr,c8n),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Nie:null},o.Kf=function(e,t){dke(this,u(e,36),t)};var Nie;w(kr,"InteractiveNodePlacer",1425),b(1426,1,vr,u8n),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Die:null},o.Kf=function(e,t){Q9e(this,u(e,36),t)};var Die,AO,LO;w(kr,"LinearSegmentsNodePlacer",1426),b(261,1,{34:1,261:1},JG),o.Fd=function(e){return Che(this,u(e,261))},o.Fb=function(e){var t;return L(e,261)?(t=u(e,261),this.b==t.b):!1},o.Hb=function(){return this.b},o.Ib=function(){return"ls"+ca(this.e)},o.a=0,o.b=0,o.c=-1,o.d=-1,o.g=0;var $ie=w(kr,"LinearSegmentsNodePlacer/LinearSegment",261);b(1428,1,vr,gIn),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?xie:null},o.Kf=function(e,t){CNe(this,u(e,36),t)},o.b=0,o.g=0;var xie;w(kr,"NetworkSimplexPlacer",1428),b(1447,1,De,n3n),o.Ne=function(e,t){return jc(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(kr,"NetworkSimplexPlacer/0methodref$compare$Type",1447),b(1449,1,De,e3n),o.Ne=function(e,t){return jc(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(kr,"NetworkSimplexPlacer/1methodref$compare$Type",1449),b(655,1,{655:1},qMn);var EDe=w(kr,"NetworkSimplexPlacer/EdgeRep",655);b(412,1,{412:1},zW),o.b=!1;var MDe=w(kr,"NetworkSimplexPlacer/NodeRep",412);b(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},Zyn),w(kr,"NetworkSimplexPlacer/Path",515),b(1429,1,{},t3n),o.Kb=function(e){return u(e,18).d.i.k},w(kr,"NetworkSimplexPlacer/Path/lambda$0$Type",1429),b(1430,1,Le,i3n),o.Mb=function(e){return u(e,273)==(Vn(),Ti)},w(kr,"NetworkSimplexPlacer/Path/lambda$1$Type",1430),b(1431,1,{},r3n),o.Kb=function(e){return u(e,18).d.i},w(kr,"NetworkSimplexPlacer/Path/lambda$2$Type",1431),b(1432,1,Le,Y7n),o.Mb=function(e){return ISn(LKn(u(e,10)))},w(kr,"NetworkSimplexPlacer/Path/lambda$3$Type",1432),b(1433,1,Le,c3n),o.Mb=function(e){return M0e(u(e,12))},w(kr,"NetworkSimplexPlacer/lambda$0$Type",1433),b(1434,1,re,UMn),o.Cd=function(e){c1e(this.a,this.b,u(e,12))},w(kr,"NetworkSimplexPlacer/lambda$1$Type",1434),b(1443,1,re,Z7n),o.Cd=function(e){AEe(this.a,u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$10$Type",1443),b(1444,1,{},u3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$11$Type",1444),b(1445,1,re,nkn),o.Cd=function(e){TSe(this.a,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$12$Type",1445),b(1446,1,{},o3n),o.Kb=function(e){return ko(),Y(u(e,125).e)},w(kr,"NetworkSimplexPlacer/lambda$13$Type",1446),b(1448,1,{},s3n),o.Kb=function(e){return ko(),Y(u(e,125).e)},w(kr,"NetworkSimplexPlacer/lambda$15$Type",1448),b(1450,1,Le,f3n),o.Mb=function(e){return ko(),u(e,412).c.k==(Vn(),zt)},w(kr,"NetworkSimplexPlacer/lambda$17$Type",1450),b(1451,1,Le,h3n),o.Mb=function(e){return ko(),u(e,412).c.j.c.length>1},w(kr,"NetworkSimplexPlacer/lambda$18$Type",1451),b(1452,1,re,MOn),o.Cd=function(e){h8e(this.c,this.b,this.d,this.a,u(e,412))},o.c=0,o.d=0,w(kr,"NetworkSimplexPlacer/lambda$19$Type",1452),b(1435,1,{},l3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$2$Type",1435),b(1453,1,re,ekn),o.Cd=function(e){o1e(this.a,u(e,12))},o.a=0,w(kr,"NetworkSimplexPlacer/lambda$20$Type",1453),b(1454,1,{},a3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$21$Type",1454),b(1455,1,re,tkn),o.Cd=function(e){v1e(this.a,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$22$Type",1455),b(1456,1,Le,d3n),o.Mb=function(e){return ISn(e)},w(kr,"NetworkSimplexPlacer/lambda$23$Type",1456),b(1457,1,{},b3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$24$Type",1457),b(1458,1,Le,ikn),o.Mb=function(e){return Ple(this.a,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$25$Type",1458),b(1459,1,re,GMn),o.Cd=function(e){$je(this.a,this.b,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$26$Type",1459),b(1460,1,Le,w3n),o.Mb=function(e){return ko(),!fr(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$27$Type",1460),b(1461,1,Le,g3n),o.Mb=function(e){return ko(),!fr(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$28$Type",1461),b(1462,1,{},rkn),o.Ve=function(e,t){return u1e(this.a,u(e,30),u(t,30))},w(kr,"NetworkSimplexPlacer/lambda$29$Type",1462),b(1436,1,{},p3n),o.Kb=function(e){return ko(),new Cn(null,new pb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(kr,"NetworkSimplexPlacer/lambda$3$Type",1436),b(1437,1,Le,m3n),o.Mb=function(e){return ko(),xpe(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$4$Type",1437),b(1438,1,re,ckn),o.Cd=function(e){DIe(this.a,u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$5$Type",1438),b(1439,1,{},v3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$6$Type",1439),b(1440,1,Le,k3n),o.Mb=function(e){return ko(),u(e,10).k==(Vn(),zt)},w(kr,"NetworkSimplexPlacer/lambda$7$Type",1440),b(1441,1,{},y3n),o.Kb=function(e){return ko(),new Cn(null,new pb(new ie(ce(Ml(u(e,10)).a.Kc(),new En))))},w(kr,"NetworkSimplexPlacer/lambda$8$Type",1441),b(1442,1,Le,j3n),o.Mb=function(e){return ko(),E0e(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$9$Type",1442),b(1424,1,vr,o8n),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Rie:null},o.Kf=function(e,t){bOe(u(e,36),t)};var Rie;w(kr,"SimpleNodePlacer",1424),b(185,1,{185:1},Wg),o.Ib=function(){var e;return e="",this.c==(fh(),m0)?e+=f3:this.c==y1&&(e+=s3),this.o==(If(),Bd)?e+=_K:this.o==Xf?e+="UP":e+="BALANCED",e},w(da,"BKAlignedLayout",185),b(523,22,{3:1,34:1,22:1,523:1},eX);var y1,m0,Kie=we(da,"BKAlignedLayout/HDirection",523,ke,Xge,tbe),Bie;b(522,22,{3:1,34:1,22:1,522:1},tX);var Bd,Xf,Fie=we(da,"BKAlignedLayout/VDirection",522,ke,Vge,ibe),_ie;b(1699,1,{},zMn),w(da,"BKAligner",1699),b(1702,1,{},iFn),w(da,"BKCompactor",1702),b(663,1,{663:1},E3n),o.a=0,w(da,"BKCompactor/ClassEdge",663),b(467,1,{467:1},Jyn),o.a=null,o.b=0,w(da,"BKCompactor/ClassNode",467),b(1427,1,vr,JMn),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Hie:null},o.Kf=function(e,t){UNe(this,u(e,36),t)},o.d=!1;var Hie;w(da,"BKNodePlacer",1427),b(1700,1,{},M3n),o.d=0,w(da,"NeighborhoodInformation",1700),b(1701,1,De,ukn),o.Ne=function(e,t){return mme(this,u(e,42),u(t,42))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(da,"NeighborhoodInformation/NeighborComparator",1701),b(823,1,{}),w(da,"ThresholdStrategy",823),b(1825,823,{},Qyn),o.wg=function(e,t,i){return this.a.o==(If(),Xf)?Pt:li},o.xg=function(){},w(da,"ThresholdStrategy/NullThresholdStrategy",1825),b(587,1,{587:1},QMn),o.c=!1,o.d=!1,w(da,"ThresholdStrategy/Postprocessable",587),b(1826,823,{},Yyn),o.wg=function(e,t,i){var r,c,s;return c=t==i,r=this.a.a[i.p]==t,c||r?(s=e,this.a.c==(fh(),m0)?(c&&(s=FR(this,t,!0)),!isNaN(s)&&!isFinite(s)&&r&&(s=FR(this,i,!1))):(c&&(s=FR(this,t,!0)),!isNaN(s)&&!isFinite(s)&&r&&(s=FR(this,i,!1))),s):e},o.xg=function(){for(var e,t,i,r,c;this.d.b!=0;)c=u(f2e(this.d),587),r=IUn(this,c),r.a&&(e=r.a,i=on(this.a.f[this.a.g[c.b.p].p]),!(!i&&!fr(e)&&e.c.i.c==e.d.i.c)&&(t=DHn(this,c),t||Ale(this.e,c)));for(;this.e.a.c.length!=0;)DHn(this,u($Rn(this.e),587))},w(da,"ThresholdStrategy/SimpleThresholdStrategy",1826),b(645,1,{645:1,188:1,196:1},T3n),o.dg=function(){return Uxn(this)},o.qg=function(){return Uxn(this)};var QH;w(BB,"EdgeRouterFactory",645),b(1485,1,vr,s8n),o.rg=function(e){return eSe(u(e,36))},o.Kf=function(e,t){yOe(u(e,36),t)};var qie,Uie,Gie,zie,Xie,iln,Vie,Wie;w(BB,"OrthogonalEdgeRouter",1485),b(1478,1,vr,WMn),o.rg=function(e){return Eke(u(e,36))},o.Kf=function(e,t){ULe(this,u(e,36),t)};var Jie,Qie,Yie,Zie,Lj,nre;w(BB,"PolylineEdgeRouter",1478),b(1479,1,ph,S3n),o.Lb=function(e){return qQ(u(e,10))},o.Fb=function(e){return this===e},o.Mb=function(e){return qQ(u(e,10))},w(BB,"PolylineEdgeRouter/1",1479),b(1872,1,Le,P3n),o.Mb=function(e){return u(e,132).c==(af(),Ea)},w(mf,"HyperEdgeCycleDetector/lambda$0$Type",1872),b(1873,1,{},I3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$1$Type",1873),b(1874,1,Le,O3n),o.Mb=function(e){return u(e,132).c==(af(),Ea)},w(mf,"HyperEdgeCycleDetector/lambda$2$Type",1874),b(1875,1,{},A3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$3$Type",1875),b(1876,1,{},L3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$4$Type",1876),b(1877,1,{},C3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$5$Type",1877),b(118,1,{34:1,118:1},yk),o.Fd=function(e){return She(this,u(e,118))},o.Fb=function(e){var t;return L(e,118)?(t=u(e,118),this.g==t.g):!1},o.Hb=function(){return this.g},o.Ib=function(){var e,t,i,r;for(e=new mo("{"),r=new M(this.n);r.a<r.c.c.length;)i=u(E(r),12),t=qk(i.i),t==null&&(t="n"+tPn(i.i)),e.a+=""+t,r.a<r.c.c.length&&(e.a+=",");return e.a+="}",e.a},o.a=0,o.b=0,o.c=NaN,o.d=0,o.g=0,o.i=0,o.o=0,o.s=NaN,w(mf,"HyperEdgeSegment",118),b(132,1,{132:1},ed),o.Ib=function(){return this.a+"->"+this.b+" ("+z1e(this.c)+")"},o.d=0,w(mf,"HyperEdgeSegmentDependency",132),b(528,22,{3:1,34:1,22:1,528:1},iX);var Ea,zw,ere=we(mf,"HyperEdgeSegmentDependency/DependencyType",528,ke,Wge,rbe),tre;b(1878,1,{},okn),w(mf,"HyperEdgeSegmentSplitter",1878),b(1879,1,{},Zjn),o.a=0,o.b=0,w(mf,"HyperEdgeSegmentSplitter/AreaRating",1879),b(339,1,{339:1},FN),o.a=0,o.b=0,o.c=0,w(mf,"HyperEdgeSegmentSplitter/FreeArea",339),b(1880,1,De,N3n),o.Ne=function(e,t){return zae(u(e,118),u(t,118))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mf,"HyperEdgeSegmentSplitter/lambda$0$Type",1880),b(1881,1,re,TOn),o.Cd=function(e){k3e(this.a,this.d,this.c,this.b,u(e,118))},o.b=0,w(mf,"HyperEdgeSegmentSplitter/lambda$1$Type",1881),b(1882,1,{},D3n),o.Kb=function(e){return new Cn(null,new On(u(e,118).e,16))},w(mf,"HyperEdgeSegmentSplitter/lambda$2$Type",1882),b(1883,1,{},$3n),o.Kb=function(e){return new Cn(null,new On(u(e,118).j,16))},w(mf,"HyperEdgeSegmentSplitter/lambda$3$Type",1883),b(1884,1,{},x3n),o.Ye=function(e){return $(B(e))},w(mf,"HyperEdgeSegmentSplitter/lambda$4$Type",1884),b(664,1,{},lD),o.a=0,o.b=0,o.c=0,w(mf,"OrthogonalRoutingGenerator",664),b(1703,1,{},R3n),o.Kb=function(e){return new Cn(null,new On(u(e,118).e,16))},w(mf,"OrthogonalRoutingGenerator/lambda$0$Type",1703),b(1704,1,{},K3n),o.Kb=function(e){return new Cn(null,new On(u(e,118).j,16))},w(mf,"OrthogonalRoutingGenerator/lambda$1$Type",1704),b(670,1,{}),w(FB,"BaseRoutingDirectionStrategy",670),b(1870,670,{},tjn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;if(!(e.r&&!e.q))for(d=t+e.o*i,a=new M(e.n);a.a<a.c.c.length;)for(l=u(E(a),12),g=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])).a,h=new M(l.g);h.a<h.c.c.length;)f=u(E(h),18),fr(f)||(k=f.d,j=cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a])).a,y.Math.abs(g-j)>vh&&(s=d,c=e,r=new V(g,s),Re(f.a,r),qb(this,f,c,r,!1),p=e.r,p&&(m=$(B(Zo(p.e,0))),r=new V(m,s),Re(f.a,r),qb(this,f,c,r,!1),s=t+p.o*i,c=p,r=new V(m,s),Re(f.a,r),qb(this,f,c,r,!1)),r=new V(j,s),Re(f.a,r),qb(this,f,c,r,!1)))},o.zg=function(e){return e.i.n.a+e.n.a+e.a.a},o.Ag=function(){return en(),ae},o.Bg=function(){return en(),Xn},w(FB,"NorthToSouthRoutingStrategy",1870),b(1871,670,{},ijn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;if(!(e.r&&!e.q))for(d=t-e.o*i,a=new M(e.n);a.a<a.c.c.length;)for(l=u(E(a),12),g=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])).a,h=new M(l.g);h.a<h.c.c.length;)f=u(E(h),18),fr(f)||(k=f.d,j=cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a])).a,y.Math.abs(g-j)>vh&&(s=d,c=e,r=new V(g,s),Re(f.a,r),qb(this,f,c,r,!1),p=e.r,p&&(m=$(B(Zo(p.e,0))),r=new V(m,s),Re(f.a,r),qb(this,f,c,r,!1),s=t-p.o*i,c=p,r=new V(m,s),Re(f.a,r),qb(this,f,c,r,!1)),r=new V(j,s),Re(f.a,r),qb(this,f,c,r,!1)))},o.zg=function(e){return e.i.n.a+e.n.a+e.a.a},o.Ag=function(){return en(),Xn},o.Bg=function(){return en(),ae},w(FB,"SouthToNorthRoutingStrategy",1871),b(1869,670,{},rjn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;if(!(e.r&&!e.q))for(d=t+e.o*i,a=new M(e.n);a.a<a.c.c.length;)for(l=u(E(a),12),g=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])).b,h=new M(l.g);h.a<h.c.c.length;)f=u(E(h),18),fr(f)||(k=f.d,j=cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a])).b,y.Math.abs(g-j)>vh&&(s=d,c=e,r=new V(s,g),Re(f.a,r),qb(this,f,c,r,!0),p=e.r,p&&(m=$(B(Zo(p.e,0))),r=new V(s,m),Re(f.a,r),qb(this,f,c,r,!0),s=t+p.o*i,c=p,r=new V(s,m),Re(f.a,r),qb(this,f,c,r,!0)),r=new V(s,j),Re(f.a,r),qb(this,f,c,r,!0)))},o.zg=function(e){return e.i.n.b+e.n.b+e.a.b},o.Ag=function(){return en(),Zn},o.Bg=function(){return en(),Wn},w(FB,"WestToEastRoutingStrategy",1869),b(828,1,{},_en),o.Ib=function(){return ca(this.a)},o.b=0,o.c=!1,o.d=!1,o.f=0,w(jw,"NubSpline",828),b(418,1,{418:1},dqn,iAn),w(jw,"NubSpline/PolarCP",418),b(1480,1,vr,WBn),o.rg=function(e){return aye(u(e,36))},o.Kf=function(e,t){fNe(this,u(e,36),t)};var ire,rre,cre,ure,ore;w(jw,"SplineEdgeRouter",1480),b(274,1,{274:1},XT),o.Ib=function(){return this.a+" ->("+this.c+") "+this.b},o.c=0,w(jw,"SplineEdgeRouter/Dependency",274),b(465,22,{3:1,34:1,22:1,465:1},rX);var Ma,O2,sre=we(jw,"SplineEdgeRouter/SideToProcess",465,ke,e2e,cbe),fre;b(1481,1,Le,B3n),o.Mb=function(e){return K5(),!u(e,131).o},w(jw,"SplineEdgeRouter/lambda$0$Type",1481),b(1482,1,{},F3n),o.Ze=function(e){return K5(),u(e,131).v+1},w(jw,"SplineEdgeRouter/lambda$1$Type",1482),b(1483,1,re,YMn),o.Cd=function(e){S0e(this.a,this.b,u(e,42))},w(jw,"SplineEdgeRouter/lambda$2$Type",1483),b(1484,1,re,ZMn),o.Cd=function(e){P0e(this.a,this.b,u(e,42))},w(jw,"SplineEdgeRouter/lambda$3$Type",1484),b(131,1,{34:1,131:1},S_n,Xen),o.Fd=function(e){return Ohe(this,u(e,131))},o.b=0,o.e=!1,o.f=0,o.g=0,o.j=!1,o.k=!1,o.n=0,o.o=!1,o.p=!1,o.q=!1,o.s=0,o.u=0,o.v=0,o.F=0,w(jw,"SplineSegment",131),b(468,1,{468:1},_3n),o.a=0,o.b=!1,o.c=!1,o.d=!1,o.e=!1,o.f=0,w(jw,"SplineSegment/EdgeInformation",468),b(1198,1,{},H3n),w(Nl,Utn,1198),b(1199,1,De,q3n),o.Ne=function(e,t){return VEe(u(e,121),u(t,121))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Nl,EXn,1199),b(1197,1,{},wEn),w(Nl,"MrTree",1197),b(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},pM),o.dg=function(){return V_n(this)},o.qg=function(){return V_n(this)};var NO,t9,i9,r9,rln=we(Nl,"TreeLayoutPhases",405,ke,i3e,ube),hre;b(1112,205,yd,qSn),o.rf=function(e,t){var i,r,c,s,f,h,l,a;for(on(un(z(e,(lc(),Iln))))||X7((i=new Xv((cb(),new Qd(e))),i)),f=t.eh(qB),f.Ug("build tGraph",1),h=(l=new tk,Ur(l,e),U(l,(pt(),u9),e),a=new de,_Pe(e,l,a),uIe(e,l,a),l),f.Vg(),f=t.eh(qB),f.Ug("Split graph",1),s=XPe(this.a,h),f.Vg(),c=new M(s);c.a<c.c.c.length;)r=u(E(c),121),Qke(this.b,r,t.eh(.5999999940395355/s.c.length));f=t.eh(qB),f.Ug("Pack components",1),h=GNe(s),f.Vg(),f=t.eh(qB),f.Ug("Apply layout results",1),DAe(h),f.Vg()},w(Nl,"TreeLayoutProvider",1112),b(1894,1,qh,G3n),o.Jc=function(e){qi(this,e)},o.Kc=function(){return Ln(),l4(),fv},w(Nl,"TreeUtil/1",1894),b(1895,1,qh,z3n),o.Jc=function(e){qi(this,e)},o.Kc=function(){return Ln(),l4(),fv},w(Nl,"TreeUtil/2",1895),b(1885,1,Le,X3n),o.Mb=function(e){return on(un(v(u(e,40),(pt(),Ta))))},w(Nl,"TreeUtil/lambda$0$Type",1885),b(1891,1,Le,skn),o.Mb=function(e){return this.a.Hc(u(e,40))},w(Nl,"TreeUtil/lambda$10$Type",1891),b(1892,1,{},fkn),o.Kb=function(e){return t3e(this.a,u(e,40))},w(Nl,"TreeUtil/lambda$11$Type",1892),b(1893,1,Le,nTn),o.Mb=function(e){return nme(this.a,this.b,u(e,40))},w(Nl,"TreeUtil/lambda$12$Type",1893),b(1886,1,Le,hkn),o.Mb=function(e){return F5e(this.a,u(e,65))},w(Nl,"TreeUtil/lambda$3$Type",1886),b(1887,1,De,U3n),o.Ne=function(e,t){return Xae(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Nl,"TreeUtil/lambda$4$Type",1887),b(1888,1,Le,lkn),o.Mb=function(e){return _5e(this.a,u(e,65))},w(Nl,"TreeUtil/lambda$7$Type",1888),b(1889,1,De,V3n),o.Ne=function(e,t){return Vae(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Nl,"TreeUtil/lambda$8$Type",1889),b(1890,1,{},W3n),o.Kb=function(e){return u(e,65).b},w(Nl,"TreeUtil/lambda$9$Type",1890),b(508,137,{3:1,508:1,96:1,137:1}),o.g=0,w(h8,"TGraphElement",508),b(65,508,{3:1,65:1,508:1,96:1,137:1},WW),o.Ib=function(){return this.b&&this.c?td(this.b)+"->"+td(this.c):"e_"+mt(this)},w(h8,"TEdge",65),b(121,137,{3:1,121:1,96:1,137:1},tk),o.Ib=function(){var e,t,i,r,c;for(c=null,r=ge(this.b,0);r.b!=r.d.c;)i=u(be(r),40),c+=(i.c==null||i.c.length==0?"n_"+i.g:"n_"+i.c)+`
`;for(t=ge(this.a,0);t.b!=t.d.c;)e=u(be(t),65),c+=(e.b&&e.c?td(e.b)+"->"+td(e.c):"e_"+mt(e))+`
`;return c};var TDe=w(h8,"TGraph",121);b(643,508,{3:1,508:1,643:1,96:1,137:1}),w(h8,"TShape",643),b(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},q$),o.Ib=function(){return td(this)};var DO=w(h8,"TNode",40);b(236,1,qh,sl),o.Jc=function(e){qi(this,e)},o.Kc=function(){var e;return e=ge(this.a.d,0),new sg(e)},w(h8,"TNode/2",236),b(329,1,Pi,sg),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(be(this.a),65).c},o.Ob=function(){return Q9(this.a)},o.Qb=function(){p$(this.a)},w(h8,"TNode/2/1",329),b(1923,1,vt,J3n),o.Kf=function(e,t){BNe(this,u(e,121),t)},w(Bc,"CompactionProcessor",1923),b(1924,1,De,akn),o.Ne=function(e,t){return Cve(this.a,u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$0$Type",1924),b(1925,1,Le,eTn),o.Mb=function(e){return Lge(this.b,this.a,u(e,42))},o.a=0,o.b=0,w(Bc,"CompactionProcessor/lambda$1$Type",1925),b(1934,1,De,Q3n),o.Ne=function(e,t){return Ewe(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$10$Type",1934),b(1935,1,De,Y3n),o.Ne=function(e,t){return R1e(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$11$Type",1935),b(1936,1,De,Z3n),o.Ne=function(e,t){return Mwe(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$12$Type",1936),b(1926,1,Le,dkn),o.Mb=function(e){return k1e(this.a,u(e,42))},o.a=0,w(Bc,"CompactionProcessor/lambda$2$Type",1926),b(1927,1,Le,bkn),o.Mb=function(e){return y1e(this.a,u(e,42))},o.a=0,w(Bc,"CompactionProcessor/lambda$3$Type",1927),b(1928,1,Le,n4n),o.Mb=function(e){return u(e,40).c.indexOf(OP)==-1},w(Bc,"CompactionProcessor/lambda$4$Type",1928),b(1929,1,{},wkn),o.Kb=function(e){return Dpe(this.a,u(e,40))},o.a=0,w(Bc,"CompactionProcessor/lambda$5$Type",1929),b(1930,1,{},gkn),o.Kb=function(e){return H4e(this.a,u(e,40))},o.a=0,w(Bc,"CompactionProcessor/lambda$6$Type",1930),b(1931,1,De,pkn),o.Ne=function(e,t){return Z3e(this.a,u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$7$Type",1931),b(1932,1,De,mkn),o.Ne=function(e,t){return n4e(this.a,u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$8$Type",1932),b(1933,1,De,e4n),o.Ne=function(e,t){return K1e(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$9$Type",1933),b(1921,1,vt,t4n),o.Kf=function(e,t){$Se(u(e,121),t)},w(Bc,"DirectionProcessor",1921),b(1913,1,vt,HSn),o.Kf=function(e,t){rIe(this,u(e,121),t)},w(Bc,"FanProcessor",1913),b(1937,1,vt,i4n),o.Kf=function(e,t){ESe(u(e,121),t)},w(Bc,"GraphBoundsProcessor",1937),b(1938,1,{},r4n),o.Ye=function(e){return u(e,40).e.a},w(Bc,"GraphBoundsProcessor/lambda$0$Type",1938),b(1939,1,{},c4n),o.Ye=function(e){return u(e,40).e.b},w(Bc,"GraphBoundsProcessor/lambda$1$Type",1939),b(1940,1,{},u4n),o.Ye=function(e){return ile(u(e,40))},w(Bc,"GraphBoundsProcessor/lambda$2$Type",1940),b(1941,1,{},o4n),o.Ye=function(e){return tle(u(e,40))},w(Bc,"GraphBoundsProcessor/lambda$3$Type",1941),b(262,22,{3:1,34:1,22:1,262:1,196:1},ub),o.dg=function(){switch(this.g){case 0:return new mjn;case 1:return new HSn;case 2:return new pjn;case 3:return new a4n;case 4:return new f4n;case 8:return new s4n;case 5:return new t4n;case 6:return new b4n;case 7:return new J3n;case 9:return new i4n;case 10:return new w4n;default:throw T(new Gn(cB+(this.f!=null?this.f:""+this.g)))}};var cln,uln,oln,sln,fln,hln,lln,aln,dln,bln,YH,CDe=we(Bc,uB,262,ke,xxn,obe),lre;b(1920,1,vt,s4n),o.Kf=function(e,t){xLe(u(e,121),t)},w(Bc,"LevelCoordinatesProcessor",1920),b(1918,1,vt,f4n),o.Kf=function(e,t){iCe(this,u(e,121),t)},o.a=0,w(Bc,"LevelHeightProcessor",1918),b(1919,1,qh,h4n),o.Jc=function(e){qi(this,e)},o.Kc=function(){return Ln(),l4(),fv},w(Bc,"LevelHeightProcessor/1",1919),b(1914,1,vt,pjn),o.Kf=function(e,t){pSe(this,u(e,121),t)},w(Bc,"LevelProcessor",1914),b(1915,1,Le,l4n),o.Mb=function(e){return on(un(v(u(e,40),(pt(),Ta))))},w(Bc,"LevelProcessor/lambda$0$Type",1915),b(1916,1,vt,a4n),o.Kf=function(e,t){nEe(this,u(e,121),t)},o.a=0,w(Bc,"NeighborsProcessor",1916),b(1917,1,qh,d4n),o.Jc=function(e){qi(this,e)},o.Kc=function(){return Ln(),l4(),fv},w(Bc,"NeighborsProcessor/1",1917),b(1922,1,vt,b4n),o.Kf=function(e,t){iIe(this,u(e,121),t)},o.a=0,w(Bc,"NodePositionProcessor",1922),b(1912,1,vt,mjn),o.Kf=function(e,t){KOe(this,u(e,121),t)},w(Bc,"RootProcessor",1912),b(1942,1,vt,w4n),o.Kf=function(e,t){D9e(u(e,121),t)},w(Bc,"Untreeifyer",1942),b(392,22,{3:1,34:1,22:1,392:1},eN);var Nj,ZH,wln,gln=we(Gy,"EdgeRoutingMode",392,ke,J2e,sbe),are,Dj,Lv,nq,pln,mln,eq,tq,vln,iq,kln,rq,c9,cq,$O,xO,Js,jf,Nv,u9,o9,j1,yln,dre,uq,Ta,$j,xj;b(862,1,ms,f8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Srn),""),wVn),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(_n(),!1)),(l1(),yi)),Gt),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Prn),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Irn),""),"Tree Level"),"The index for the tree level the node is in"),Y(0)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Orn),""),wVn),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),Y(-1)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Arn),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),Mln),It),xln),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Lrn),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),jln),It),gln),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Nrn),""),"Search Order"),"Which search order to use when computing a spanning tree."),Eln),It),Kln),jn(xn)))),rzn((new a8n,e))};var bre,wre,gre,jln,pre,mre,Eln,vre,kre,Mln;w(Gy,"MrTreeMetaDataProvider",862),b(1006,1,ms,a8n),o.hf=function(e){rzn(e)};var yre,Tln,Cln,v0,Sln,Pln,oq,jre,Ere,Mre,Tre,Cre,Sre,Pre,Iln,Oln,Aln,Ire,A2,RO,Lln,Ore,Nln,sq,Are,Lre,Nre,Dln,Dre,Ph,$ln;w(Gy,"MrTreeOptions",1006),b(1007,1,{},g4n),o.sf=function(){var e;return e=new qSn,e},o.tf=function(e){},w(Gy,"MrTreeOptions/MrtreeFactory",1007),b(353,22,{3:1,34:1,22:1,353:1},mM);var fq,KO,hq,lq,xln=we(Gy,"OrderWeighting",353,ke,r3e,fbe),$re;b(433,22,{3:1,34:1,22:1,433:1},cX);var Rln,aq,Kln=we(Gy,"TreeifyingOrder",433,ke,Zge,hbe),xre;b(1486,1,vr,d8n),o.rg=function(e){return u(e,121),Rre},o.Kf=function(e,t){bve(this,u(e,121),t)};var Rre;w("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1486),b(1487,1,vr,b8n),o.rg=function(e){return u(e,121),Kre},o.Kf=function(e,t){ySe(this,u(e,121),t)};var Kre;w(Jm,"NodeOrderer",1487),b(1494,1,{},_se),o.td=function(e){return WPn(e)},w(Jm,"NodeOrderer/0methodref$lambda$6$Type",1494),b(1488,1,Le,L4n),o.Mb=function(e){return _p(),on(un(v(u(e,40),(pt(),Ta))))},w(Jm,"NodeOrderer/lambda$0$Type",1488),b(1489,1,Le,N4n),o.Mb=function(e){return _p(),u(v(u(e,40),(lc(),A2)),17).a<0},w(Jm,"NodeOrderer/lambda$1$Type",1489),b(1490,1,Le,kkn),o.Mb=function(e){return qme(this.a,u(e,40))},w(Jm,"NodeOrderer/lambda$2$Type",1490),b(1491,1,Le,vkn),o.Mb=function(e){return Rpe(this.a,u(e,40))},w(Jm,"NodeOrderer/lambda$3$Type",1491),b(1492,1,De,D4n),o.Ne=function(e,t){return ame(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Jm,"NodeOrderer/lambda$4$Type",1492),b(1493,1,Le,$4n),o.Mb=function(e){return _p(),u(v(u(e,40),(pt(),tq)),17).a!=0},w(Jm,"NodeOrderer/lambda$5$Type",1493),b(1495,1,vr,l8n),o.rg=function(e){return u(e,121),Bre},o.Kf=function(e,t){OPe(this,u(e,121),t)},o.b=0;var Bre;w("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495),b(1496,1,vr,h8n),o.rg=function(e){return u(e,121),Fre},o.Kf=function(e,t){lPe(u(e,121),t)};var Fre,SDe=w(po,"EdgeRouter",1496);b(1498,1,De,A4n),o.Ne=function(e,t){return jc(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/0methodref$compare$Type",1498),b(1503,1,{},m4n),o.Ye=function(e){return $(B(e))},w(po,"EdgeRouter/1methodref$doubleValue$Type",1503),b(1505,1,De,v4n),o.Ne=function(e,t){return bt($(B(e)),$(B(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/2methodref$compare$Type",1505),b(1507,1,De,k4n),o.Ne=function(e,t){return bt($(B(e)),$(B(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/3methodref$compare$Type",1507),b(1509,1,{},p4n),o.Ye=function(e){return $(B(e))},w(po,"EdgeRouter/4methodref$doubleValue$Type",1509),b(1511,1,De,y4n),o.Ne=function(e,t){return bt($(B(e)),$(B(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/5methodref$compare$Type",1511),b(1513,1,De,j4n),o.Ne=function(e,t){return bt($(B(e)),$(B(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/6methodref$compare$Type",1513),b(1497,1,{},E4n),o.Kb=function(e){return kl(),u(v(u(e,40),(lc(),Ph)),17)},w(po,"EdgeRouter/lambda$0$Type",1497),b(1508,1,{},M4n),o.Kb=function(e){return Q1e(u(e,40))},w(po,"EdgeRouter/lambda$11$Type",1508),b(1510,1,{},tTn),o.Kb=function(e){return T0e(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$13$Type",1510),b(1512,1,{},iTn),o.Kb=function(e){return Y1e(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$15$Type",1512),b(1514,1,De,T4n),o.Ne=function(e,t){return h9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$17$Type",1514),b(1515,1,De,C4n),o.Ne=function(e,t){return l9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$18$Type",1515),b(1516,1,De,S4n),o.Ne=function(e,t){return d9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$19$Type",1516),b(1499,1,Le,ykn),o.Mb=function(e){return b2e(this.a,u(e,40))},o.a=0,w(po,"EdgeRouter/lambda$2$Type",1499),b(1517,1,De,P4n),o.Ne=function(e,t){return a9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$20$Type",1517),b(1500,1,De,I4n),o.Ne=function(e,t){return l0e(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$3$Type",1500),b(1501,1,De,O4n),o.Ne=function(e,t){return a0e(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$4$Type",1501),b(1502,1,{},x4n),o.Kb=function(e){return Z1e(u(e,40))},w(po,"EdgeRouter/lambda$5$Type",1502),b(1504,1,{},rTn),o.Kb=function(e){return C0e(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$7$Type",1504),b(1506,1,{},cTn),o.Kb=function(e){return nae(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$9$Type",1506),b(675,1,{675:1},RBn),o.e=0,o.f=!1,o.g=!1,w(po,"MultiLevelEdgeNodeNodeGap",675),b(1943,1,De,R4n),o.Ne=function(e,t){return M2e(u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943),b(1944,1,De,K4n),o.Ne=function(e,t){return T2e(u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944);var L2;b(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},uX),o.dg=function(){return EKn(this)},o.qg=function(){return EKn(this)};var BO,N2,Bln=we(Drn,"RadialLayoutPhases",501,ke,zge,lbe),_re;b(1113,205,yd,bEn),o.rf=function(e,t){var i,r,c,s,f,h;if(i=sqn(this,e),t.Ug("Radial layout",i.c.length),on(un(z(e,(oa(),Jln))))||X7((r=new Xv((cb(),new Qd(e))),r)),h=wye(e),ht(e,(Cg(),L2),h),!h)throw T(new Gn("The given graph is not a tree!"));for(c=$(B(z(e,HO))),c==0&&(c=H_n(e)),ht(e,HO,c),f=new M(sqn(this,e));f.a<f.c.c.length;)s=u(E(f),47),s.Kf(e,t.eh(1));t.Vg()},w(Drn,"RadialLayoutProvider",1113),b(556,1,De,XE),o.Ne=function(e,t){return QSe(this.a,this.b,u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},o.a=0,o.b=0,w(Drn,"RadialUtil/lambda$0$Type",556),b(1395,1,vt,B4n),o.Kf=function(e,t){HLe(u(e,27),t)},w(Rrn,"CalculateGraphSize",1395),b(1396,1,vt,F4n),o.Kf=function(e,t){hOe(u(e,27))},w(Rrn,"EdgeAngleCalculator",1396),b(368,22,{3:1,34:1,22:1,368:1,196:1},d7),o.dg=function(){switch(this.g){case 0:return new z4n;case 1:return new _4n;case 2:return new X4n;case 3:return new B4n;case 4:return new F4n;default:throw T(new Gn(cB+(this.f!=null?this.f:""+this.g)))}};var dq,bq,wq,gq,pq,Hre=we(Rrn,uB,368,ke,U3e,abe),qre;b(653,1,{}),o.e=1,o.g=0,w(UB,"AbstractRadiusExtensionCompaction",653),b(1834,653,{},fSn),o.Cg=function(e){var t,i,r,c,s,f,h,l,a;for(this.c=u(z(e,(Cg(),L2)),27),sfe(this,this.c),this.d=Sx(u(z(e,(oa(),Rj)),300)),l=u(z(e,vq),17),l&&i9n(this,l.a),h=B(z(e,(He(),qd))),pG(this,(Jn(h),h)),a=aw(this.c),this.d&&this.d.Gg(a),wPe(this,a),f=new Fu(S(C(Ye,1),vVn,27,0,[this.c])),i=0;i<2;i++)for(t=0;t<a.c.length;t++)c=new Fu(S(C(Ye,1),vVn,27,0,[(Nn(t,a.c.length),u(a.c[t],27))])),s=t<a.c.length-1?(Nn(t+1,a.c.length),u(a.c[t+1],27)):(Nn(0,a.c.length),u(a.c[0],27)),r=t==0?u(sn(a,a.c.length-1),27):(Nn(t-1,a.c.length),u(a.c[t-1],27)),BFn(this,(Nn(t,a.c.length),u(a.c[t],27),f),r,s,c)},w(UB,"AnnulusWedgeCompaction",1834),b(1393,1,vt,_4n),o.Kf=function(e,t){sve(u(e,27),t)},w(UB,"GeneralCompactor",1393),b(1833,653,{},H4n),o.Cg=function(e){var t,i,r,c;i=u(z(e,(Cg(),L2)),27),this.f=i,this.b=Sx(u(z(e,(oa(),Rj)),300)),c=u(z(e,vq),17),c&&i9n(this,c.a),r=B(z(e,(He(),qd))),pG(this,(Jn(r),r)),t=aw(i),this.b&&this.b.Gg(t),p_n(this,t)},o.a=0,w(UB,"RadialCompaction",1833),b(1842,1,{},q4n),o.Dg=function(e){var t,i,r,c,s,f;for(this.a=e,t=0,f=aw(e),r=0,s=new M(f);s.a<s.c.c.length;)for(c=u(E(s),27),++r,i=r;i<f.c.length;i++)AIe(this,c,(Nn(i,f.c.length),u(f.c[i],27)))&&(t+=1);return t},w(Krn,"CrossingMinimizationPosition",1842),b(1840,1,{},U4n),o.Dg=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m;for(r=0,i=new ie(ce(Sl(e).a.Kc(),new En));pe(i);)t=u(fe(i),74),h=Gr(u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),a=h.i+h.g/2,d=h.j+h.f/2,c=e.i+e.g/2,s=e.j+e.f/2,g=new Ni,g.a=a-c,g.b=d-s,f=new V(g.a,g.b),vm(f,e.g,e.f),g.a-=f.a,g.b-=f.b,c=a-g.a,s=d-g.b,l=new V(g.a,g.b),vm(l,h.g,h.f),g.a-=l.a,g.b-=l.b,a=c+g.a,d=s+g.b,p=a-c,m=d-s,r+=y.Math.sqrt(p*p+m*m);return r},w(Krn,"EdgeLengthOptimization",1840),b(1841,1,{},G4n),o.Dg=function(e){var t,i,r,c,s,f,h,l,a,d,g;for(r=0,i=new ie(ce(Sl(e).a.Kc(),new En));pe(i);)t=u(fe(i),74),h=Gr(u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),l=h.i+h.g/2,a=h.j+h.f/2,c=u(z(h,(He(),D3)),8),s=e.i+c.a+e.g/2,f=e.j+c.b+e.f,d=l-s,g=a-f,r+=y.Math.sqrt(d*d+g*g);return r},w(Krn,"EdgeLengthPositionOptimization",1841),b(1392,653,vt,z4n),o.Kf=function(e,t){bEe(this,u(e,27),t)},w("org.eclipse.elk.alg.radial.intermediate.overlaps","RadiusExtensionOverlapRemoval",1392),b(1394,1,vt,X4n),o.Kf=function(e,t){swe(u(e,27),t)},w("org.eclipse.elk.alg.radial.intermediate.rotation","GeneralRotator",1394),b(434,22,{3:1,34:1,22:1,434:1},oX);var Fln,mq,_ln=we(l8,"AnnulusWedgeCriteria",434,ke,n2e,bbe),Ure;b(393,22,{3:1,34:1,22:1,393:1},tN);var FO,Hln,qln,Uln=we(l8,Btn,393,ke,rpe,dbe),Gre;b(863,1,ms,w8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Brn),""),"Center On Root"),"Centers the layout on the root of the tree i.e. so that the central node is also the center node of the final layout. This introduces additional whitespace."),(_n(),!1)),(l1(),yi)),Gt),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Frn),""),"Order ID"),"The id can be used to define an order for nodes of one radius. This can be used to sort them in the layer accordingly."),Y(0)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,_rn),""),"Radius"),"The radius option can be used to set the initial radius for the radial layouter."),0),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,NP),""),"Rotate"),"The rotate option determines whether a rotation of the layout should be performed."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,zB),""),kVn),"With the compacter option it can be determined how compaction on the graph is done. It can be chosen between none, the radial compaction or the compaction of wedges separately."),Gln),It),Uln),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,XB),""),"Compaction Step Size"),"Determine the size of steps with which the compaction is done. Step size 1 correlates to a compaction of 1 pixel per Iteration."),Y(1)),Zr),Gi),jn(xn)))),ri(e,XB,zB,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Hrn),""),"Sorter"),"Sort the nodes per radius according to the sorting algorithm. The strategies are none, by the given order id, or sorting them by polar coordinates."),Xln),It),s1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,qrn),""),"Annulus Wedge Criteria"),"Determine how the wedge for the node placement is calculated. It can be chosen between wedge determination by the number of leaves or by the maximum sum of diagonals."),Vln),It),_ln),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Urn),""),"Translation Optimization"),"Find the optimal translation of the nodes of the first radii according to this criteria. For example edge crossings can be minimized."),zln),It),c1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,VB),zrn),"Target Angle"),"The angle in radians that the layout should be rotated to after layout."),0),Qi),si),jn(xn)))),ri(e,VB,NP,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,WB),zrn),"Additional Wedge Space"),"If set to true, modifies the target angle by rotating further such that space is left for an edge to pass in between the nodes. This option should only be used in conjunction with top-down layout."),!1),yi),Gt),jn(xn)))),ri(e,WB,NP,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Grn),zrn),"Outgoing Edge Angles"),"Calculate the required angle of connected nodes to leave space for an incoming edge. This option should only be used in conjunction with top-down layout."),!1),yi),Gt),jn(xn)))),QGn((new g8n,e))};var zre,Xre,Vre,Gln,Wre,zln,Jre,Qre,Yre,Zre,nce,ece,tce,Xln,ice,Vln;w(l8,"RadialMetaDataProvider",863),b(1008,1,ms,g8n),o.hf=function(e){QGn(e)};var Wln,vq,kq,rce,cce,uce,oce,Jln,Qln,_O,sce,fce,HO,Yln,Zln,n1n,yq,Rj,hce,e1n;w(l8,"RadialOptions",1008),b(1009,1,{},V4n),o.sf=function(){var e;return e=new bEn,e},o.tf=function(e){},w(l8,"RadialOptions/RadialFactory",1009),b(354,22,{3:1,34:1,22:1,354:1},vM);var t1n,i1n,r1n,jq,c1n=we(l8,"RadialTranslationStrategy",354,ke,c3e,wbe),lce;b(300,22,{3:1,34:1,22:1,300:1},iN);var u1n,Eq,o1n,s1n=we(l8,"SortingStrategy",300,ke,cpe,gbe),ace;b(1476,1,vr,W4n),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){REe(this,u(e,27),t)},o.c=0,w("org.eclipse.elk.alg.radial.p1position","EadesRadial",1476),b(1838,1,{},J4n),o.Eg=function(e){return vBn(e)},w(yVn,"AnnulusWedgeByLeafs",1838),b(1839,1,{},Q4n),o.Eg=function(e){return AFn(this,e)},w(yVn,"AnnulusWedgeByNodeSpace",1839),b(1477,1,vr,Y4n),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){V5e(this,u(e,27),t)},w("org.eclipse.elk.alg.radial.p2routing","StraightLineEdgeRouter",1477),b(826,1,{},cz),o.Fg=function(e){},o.Gg=function(e){Oyn(this,e)},w(Xrn,"IDSorter",826),b(1837,1,De,Z4n),o.Ne=function(e,t){return fve(u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Xrn,"IDSorter/lambda$0$Type",1837),b(1836,1,{},Mxn),o.Fg=function(e){gLn(this,e)},o.Gg=function(e){var t;e.dc()||(this.e||(t=fIn(u(e.Xb(0),27)),gLn(this,t)),Oyn(this.e,e))},w(Xrn,"PolarCoordinateSorter",1836),b(445,22,{3:1,34:1,22:1,445:1},rN);var Kj,qO,Mq,f1n=we(TVn,"RectPackingLayoutPhases",445,ke,tpe,pbe),dce;b(1118,205,yd,gEn),o.rf=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;if(t.Ug("Rectangle Packing",1),g=u(z(e,(Bf(),h9)),107),l=on(un(z(e,$ce))),d=$(B(z(e,l9))),kn=on(un(z(e,y1n))),D=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a),on(un(z(e,Aq)))||X7((c=new Xv((cb(),new Qd(e))),c)),yn=!1,kn&&D.i>=3)for(X=u(N(D,0),27),tn=u(N(D,1),27),s=0;s+2<D.i;)if(_=X,X=tn,tn=u(N(D,s+2),27),_.f>=X.f+tn.f+d||tn.f>=_.f+X.f+d){yn=!0;break}else++s;else yn=!0;if(!yn){for(p=D.i,h=new ne(D);h.e!=h.i.gc();)f=u(ue(h),27),ht(f,(He(),Jj),Y(p)),--p;KUn(e,new op),t.Vg();return}for(i=(H7(this.a),hf(this.a,(XC(),Kj),u(z(e,T1n),188)),hf(this.a,qO,u(z(e,v1n),188)),hf(this.a,Mq,u(z(e,j1n),188)),MX(this.a,(Rn=new ii,Fe(Rn,Kj,(rS(),Sq)),Fe(Rn,qO,Cq),on(un(z(e,p1n)))&&Fe(Rn,Kj,Tq),Rn)),gy(this.a,e)),a=1/i.c.length,k=new M(i);k.a<k.c.c.length;){if(m=u(E(k),47),t.$g())return;m.Kf(e,t.eh(a))}for(P=0,j=0,A=new ne(D);A.e!=A.i.gc();)O=u(ue(A),27),P=y.Math.max(P,O.i+O.g),j=y.Math.max(j,O.j+O.f);Enn(e,new V($(B(z(e,(_h(),A3)))),$(B(z(e,Dv)))),new V(P,j)),Lve(D,g),l||Gb(e,$(B(z(e,A3)))+(g.b+g.c),$(B(z(e,Dv)))+(g.d+g.a),!1,!0),on(un(z(e,Aq)))||X7((r=new Xv((cb(),new Qd(e))),r)),t.Vg()},w(TVn,"RectPackingLayoutProvider",1118),b(1518,1,vt,nmn),o.Kf=function(e,t){lOe(u(e,27),t)},w(DP,"InteractiveNodeReorderer",1518),b(1519,1,De,emn),o.Ne=function(e,t){return m6e(u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(DP,"InteractiveNodeReorderer/lambda$0$Type",1519),b(456,22,{3:1,34:1,22:1,456:1,196:1},cN),o.dg=function(){switch(this.g){case 0:return new nmn;case 1:return new imn;case 2:return new tmn}return null};var Tq,Cq,Sq,bce=we(DP,uB,456,ke,ipe,mbe),wce;b(1521,1,vt,tmn),o.Kf=function(e,t){L8e(u(e,27),t)},w(DP,"MinSizePostProcessor",1521),b(1520,1,vt,imn),o.Kf=function(e,t){O6e(u(e,27),t)},w(DP,"MinSizePreProcessor",1520);var s9,Dv,A3,gce,pce,UO,Pq,Iq,f9,GO,Xw;b(394,22,{3:1,34:1,22:1,394:1},uN);var h1n,l1n,Oq,a1n=we(JB,"OptimizationGoal",394,ke,epe,vbe),mce;b(867,1,ms,p8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Vrn),""),"Try box layout first"),"Whether one should check whether the regions are stackable to see whether box layout would do the job. For example, nodes with the same height are not stackable inside a row. Therefore, box layout will perform better and faster."),(_n(),!1)),(l1(),yi)),Gt),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Wrn),""),"Current position of a node in the order of nodes"),"The rectangles are ordered. Normally according to their definition the the model. This option specifies the current position of a node."),Y(-1)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Jrn),""),"Desired index of node"),"The rectangles are ordered. Normally according to their definition the the model. This option allows to specify a desired position that has preference over the original position."),Y(-1)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Qrn),""),"In new Row"),"If set to true this node begins in a new row. Consequently this node cannot be moved in a previous layer during compaction. Width approximation does does not take this into account."),!1),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Yrn),QB),"Width Approximation Strategy"),"Strategy for finding an initial width of the drawing."),w1n),It),P1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Zrn),QB),"Target Width"),"Option to place the rectangles in the given target width instead of approximating the width using the desired aspect ratio. The padding is not included in this. Meaning a drawing will have width of targetwidth + horizontal padding."),-1),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ncn),QB),"Optimization Goal"),"Optimization goal for approximation of the bounding box given by the first iteration. Determines whether layout is sorted by the maximum scaling, aspect ratio, or area. Depending on the strategy the aspect ratio might be nearly ignored."),b1n),It),a1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ecn),QB),"Shift Last Placed."),"When placing a rectangle behind or below the last placed rectangle in the first iteration, it is sometimes possible to shift the rectangle further to the left or right, resulting in less whitespace. True (default) enables the shift and false disables it. Disabling the shift produces a greater approximated area by the first iteration and a layout, when using ONLY the first iteration (default not the case), where it is sometimes impossible to implement a size transformation of rectangles that will fill the bounding box and eliminate empty spaces."),!0),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,tcn),"packing"),CVn),"Strategy for finding an initial placement on nodes."),d1n),It),A1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,icn),SVn),"Row Height Reevaluation"),"During the compaction step the height of a row is normally not changed. If this options is set, the blocks of other rows might be added if they exceed the row height. If this is the case the whole row has to be packed again to be optimal regarding the new row height. This option should, therefore, be used with care since it might be computation heavy."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,rcn),SVn),"Compaction iterations"),"Defines the number of compaction iterations. E.g. if set to 2 the width is initially approximated, then the drawing is compacted and based on the resulting drawing the target width is decreased or increased and a second compaction step is executed and the result compared to the first one. The best run is used based on the scale measure."),Y(1)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,ccn),"whiteSpaceElimination"),"White Space Approximation Strategy"),"Strategy for expanding nodes such that whitespace in the parent is eliminated."),It),D1n),jn(xn)))),bzn((new m8n,e))};var vce,kce,yce,jce,Ece,Mce,d1n,Tce,Cce,Sce,Pce,b1n,Ice,w1n,Oce;w(JB,"RectPackingMetaDataProvider",867),b(1016,1,ms,m8n),o.hf=function(e){bzn(e)};var zO,Ace,g1n,Bj,p1n,Lce,Fj,Nce,Dce,$ce,xce,Rce,Aq,m1n,Lq,v1n,h9,k1n,Kce,l9,y1n,j1n,E1n,M1n,T1n,Nq;w(JB,"RectPackingOptions",1016),b(1017,1,{},rmn),o.sf=function(){var e;return e=new gEn,e},o.tf=function(e){},w(JB,"RectPackingOptions/RectpackingFactory",1017),b(1705,1,{},vPn),o.a=0,o.c=!1,w(Qm,"AreaApproximation",1705);var C1n=Dt(Qm,"BestCandidateFilter");b(673,1,{535:1},KA),o.Hg=function(e,t,i){var r,c,s,f,h,l;for(l=new Z,s=Pt,h=new M(e);h.a<h.c.c.length;)f=u(E(h),238),s=y.Math.min(s,(f.c+(i.b+i.c))*(f.b+(i.d+i.a)));for(c=new M(e);c.a<c.c.c.length;)r=u(E(c),238),(r.c+(i.b+i.c))*(r.b+(i.d+i.a))==s&&Fn(l.c,r);return l},w(Qm,"AreaFilter",673),b(674,1,{535:1},BA),o.Hg=function(e,t,i){var r,c,s,f,h,l;for(h=new Z,l=Pt,f=new M(e);f.a<f.c.c.length;)s=u(E(f),238),l=y.Math.min(l,y.Math.abs((s.c+(i.b+i.c))/(s.b+(i.d+i.a))-t));for(c=new M(e);c.a<c.c.c.length;)r=u(E(c),238),y.Math.abs((r.c+(i.b+i.c))/(r.b+(i.d+i.a))-t)==l&&Fn(h.c,r);return h},w(Qm,"AspectRatioFilter",674),b(1469,1,vr,cmn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){YCe(u(e,27),t)},w(Qm,"GreedyWidthApproximator",1469),b(672,1,{535:1},FA),o.Hg=function(e,t,i){var r,c,s,f,h,l;for(l=new Z,s=li,h=new M(e);h.a<h.c.c.length;)f=u(E(h),238),s=y.Math.max(s,cT(f.c+(i.b+i.c),f.b+(i.d+i.a),f.a));for(c=new M(e);c.a<c.c.c.length;)r=u(E(c),238),cT(r.c+(i.b+i.c),r.b+(i.d+i.a),r.a)==s&&Fn(l.c,r);return l},w(Qm,"ScaleMeasureFilter",672),b(1470,1,vr,umn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){KEe(u(e,27),t)},w(Qm,"TargetWidthWidthApproximator",1470),b(491,22,{3:1,34:1,22:1,491:1,188:1,196:1},sX),o.dg=function(){return FFn(this)},o.qg=function(){return FFn(this)};var Dq,S1n,P1n=we(Qm,"WidthApproximationStrategy",491,ke,Qge,kbe),Bce;b(1471,1,vr,omn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){YLe(this,u(e,27),t)},w($P,"Compactor",1471),b(1473,1,vr,smn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){OCe(u(e,27),t)},w($P,"NoPlacement",1473),b(439,22,{3:1,34:1,22:1,439:1,188:1,196:1},oN),o.dg=function(){return nKn(this)},o.qg=function(){return nKn(this)};var $q,I1n,O1n,A1n=we($P,"PackingStrategy",439,ke,npe,Ebe),Fce;b(810,1,{},aX),o.a=0,o.b=0,o.c=0,o.d=Pt,o.e=0,o.f=Pt,w($P,"RowFillingAndCompaction",810),b(1472,1,vr,fmn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){bAe(u(e,27),t)},w($P,"SimplePlacement",1472),b(1474,1,vr,hmn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){this.Ig(u(e,27),t)},o.Ig=function(e,t){NHn(e,t)},w(ucn,"EqualWhitespaceEliminator",1474),b(1475,1474,vr,lmn),o.Ig=function(e,t){var i,r,c,s,f;t.Ug("To Aspect Ratio Whitesapce Eliminator",1),f=$(B(z(e,(_h(),A3)))),s=$(B(z(e,Dv))),c=$(B(z(e,(Bf(),zO)))),i=$(B(z(e,s9))),r=f/s,r<c?(f=s*c,ht(e,A3,f)):(i+=f/c-s,ht(e,s9,i),ht(e,Dv,s+i)),NHn(e,t),t.Vg()},w(ucn,"ToAspectratioNodeExpander",1475),b(492,22,{3:1,34:1,22:1,492:1,188:1,196:1},fX),o.dg=function(){return Pxn(this)},o.qg=function(){return Pxn(this)};var L1n,N1n,D1n=we(ucn,"WhiteSpaceEliminationStrategy",492,ke,Yge,Mbe),_ce;b(172,1,{172:1},U$),o.a=0,o.c=!1,o.d=0,o.e=0,o.f=0,o.g=0,o.i=0,o.k=!1,o.o=Pt,o.p=Pt,o.r=0,o.s=0,o.t=0,w(zy,"Block",172),b(209,1,{209:1},DT),o.a=0,o.b=0,o.d=0,o.e=0,o.f=0,w(zy,"BlockRow",209),b(315,1,{315:1},tJ),o.b=0,o.c=0,o.d=0,o.e=0,o.f=0,w(zy,"BlockStack",315),b(238,1,{238:1},tW,tZ),o.a=0,o.b=0,o.c=0,o.d=0,o.e=0,o.g=0;var PDe=w(zy,"DrawingData",238);b(373,22,{3:1,34:1,22:1,373:1},b7);var L3,D2,a9,d9,_j,Hce=we(zy,"DrawingDataDescriptor",373,ke,G3e,Tbe),qce;b(186,1,{186:1},aJ),o.b=0,o.c=0,o.e=0,o.f=0,w(zy,"RectRow",186),b(763,1,{},dY),o.j=0,w(Ew,KXn,763),b(1209,1,{},amn),o.af=function(e){return J1(e.a,e.b)},w(Ew,Gtn,1209),b(1210,1,{},jkn),o.af=function(e){return e4e(this.a,e)},w(Ew,BXn,1210),b(1211,1,{},Ekn),o.af=function(e){return y9e(this.a,e)},w(Ew,FXn,1211),b(1212,1,{},Mkn),o.af=function(e){return c6e(this.a,e)},w(Ew,"ElkGraphImporter/lambda$3$Type",1212),b(1213,1,{},Tkn),o.af=function(e){return oMe(this.a,e)},w(Ew,_Xn,1213),b(1115,205,yd,pEn),o.rf=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m;for(Nf(e,(Wk(),QO))&&(m=Ae(z(e,(Lx(),ean))),s=CR(z4(),m),s&&(f=u(z7(s.f),205),f.rf(e,t.eh(1)))),ht(e,Hq,(ik(),JO)),ht(e,qq,(Jk(),_q)),ht(e,Uq,(Tk(),YO)),h=u(z(e,(Lx(),Y1n)),17).a,t.Ug("Overlap removal",1),on(un(z(e,fue))),l=new ni,a=new Ckn(l),r=new dY,i=wzn(r,e),d=!0,c=0;c<h&&d;){if(on(un(z(e,Z1n)))){if(l.a.$b(),Yje(new yCn(a),i.i),l.a.gc()==0)break;i.e=l}for(H7(this.b),hf(this.b,($k(),XO),(s6(),Hj)),hf(this.b,VO,i.g),hf(this.b,WO,(tM(),Kq)),this.a=gy(this.b,i),p=new M(this.a);p.a<p.c.c.length;)g=u(E(p),47),g.Kf(i,t.eh(1));wke(r,i),d=on(un(v(i,(J4(),uon)))),++c}PGn(r,i),t.Vg()},w(Ew,"OverlapRemovalLayoutProvider",1115),b(1116,1,{},Ckn),w(Ew,"OverlapRemovalLayoutProvider/lambda$0$Type",1116),b(444,22,{3:1,34:1,22:1,444:1},sN);var XO,VO,WO,xq=we(Ew,"SPOrEPhases",444,ke,ope,Sbe),Uce;b(1219,1,{},mEn),w(Ew,"ShrinkTree",1219),b(1117,205,yd,kjn),o.rf=function(e,t){var i,r,c,s,f;Nf(e,(Wk(),QO))&&(f=Ae(z(e,QO)),c=CR(z4(),f),c&&(s=u(z7(c.f),205),s.rf(e,t.eh(1)))),r=new dY,i=wzn(r,e),LTe(this.a,i,t.eh(1)),PGn(r,i)},w(Ew,"ShrinkTreeLayoutProvider",1117),b(306,137,{3:1,306:1,96:1,137:1},sAn),o.c=!1,w("org.eclipse.elk.alg.spore.graph","Graph",306),b(490,22,{3:1,34:1,22:1,490:1,188:1,196:1},bMn),o.dg=function(){return ERn(this)},o.qg=function(){return ERn(this)};var Rq,$1n=we(Mw,Btn,490,ke,ege,Cbe),Gce;b(558,22,{3:1,34:1,22:1,558:1,188:1,196:1},dSn),o.dg=function(){return new YU},o.qg=function(){return new YU};var Kq,zce=we(Mw,"OverlapRemovalStrategy",558,ke,tge,Pbe),Xce;b(438,22,{3:1,34:1,22:1,438:1},hX);var JO,Bq,x1n=we(Mw,"RootSelection",438,ke,t2e,Ibe),Vce;b(324,22,{3:1,34:1,22:1,324:1},w7);var R1n,Fq,_q,K1n,B1n,F1n=we(Mw,"SpanningTreeCostFunction",324,ke,z3e,Obe),Wce;b(1014,1,ms,v8n),o.hf=function(e){rGn(e)};var _1n,H1n,Jce,Qce,q1n,U1n,Hq,qq,Uq,Yce,Zce,QO;w(Mw,"SporeCompactionOptions",1014),b(1015,1,{},dmn),o.sf=function(){var e;return e=new kjn,e},o.tf=function(e){},w(Mw,"SporeCompactionOptions/SporeCompactionFactory",1015),b(866,1,ms,k8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,YB),""),"Underlying Layout Algorithm"),"A layout algorithm that is applied to the graph before it is compacted. If this is null, nothing is applied before compaction."),(l1(),$2)),fn),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,eF),"structure"),"Structure Extraction Strategy"),"This option defines what kind of triangulation or other partitioning of the plane is applied to the vertices."),J1n),It),tan),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ocn),tF),"Tree Construction Strategy"),"Whether a minimum spanning tree or a maximum spanning tree should be constructed."),V1n),It),ran),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,scn),tF),"Cost Function for Spanning Tree"),"The cost function is used in the creation of the spanning tree."),X1n),It),F1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ZB),tF),"Root node for spanning tree construction"),"The identifier of the node that is preferred as the root of the spanning tree. If this is null, the first node is chosen."),null),$2),fn),jn(xn)))),ri(e,ZB,nF,cue),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,nF),tF),"Root selection for spanning tree"),"This sets the method used to select a root node for the construction of a spanning tree"),z1n),It),x1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,fcn),Fin),CVn),"This option defines how the compaction is applied."),G1n),It),$1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,hcn),Fin),"Orthogonal Compaction"),"Restricts the translation of nodes to orthogonal directions in the compaction phase."),(_n(),!1)),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,lcn),IVn),"Upper limit for iterations of overlap removal"),null),Y(64)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,acn),IVn),"Whether to run a supplementary scanline overlap check."),null),!0),yi),Gt),jn(xn)))),oUn((new y8n,e)),rGn((new v8n,e))};var nue,G1n,eue,tue,iue,rue,cue,uue,z1n,oue,X1n,sue,V1n,W1n,J1n,Q1n;w(Mw,"SporeMetaDataProvider",866),b(1012,1,ms,y8n),o.hf=function(e){oUn(e)};var fue,Y1n,Z1n,nan,hue,ean;w(Mw,"SporeOverlapRemovalOptions",1012),b(1013,1,{},bmn),o.sf=function(){var e;return e=new pEn,e},o.tf=function(e){},w(Mw,"SporeOverlapRemovalOptions/SporeOverlapFactory",1013),b(539,22,{3:1,34:1,22:1,539:1,188:1,196:1},bOn),o.dg=function(){return MRn(this)},o.qg=function(){return MRn(this)};var Hj,tan=we(Mw,"StructureExtractionStrategy",539,ke,ige,Abe),lue;b(437,22,{3:1,34:1,22:1,437:1,188:1,196:1},lX),o.dg=function(){return MKn(this)},o.qg=function(){return MKn(this)};var ian,YO,ran=we(Mw,"TreeConstructionStrategy",437,ke,i2e,Lbe),aue;b(1463,1,vr,wmn),o.rg=function(e){return u(e,306),new ii},o.Kf=function(e,t){vke(u(e,306),t)},w(OVn,"DelaunayTriangulationPhase",1463),b(1464,1,re,Skn),o.Cd=function(e){nn(this.a,u(e,68).a)},w(OVn,"DelaunayTriangulationPhase/lambda$0$Type",1464),b(794,1,vr,rz),o.rg=function(e){return u(e,306),new ii},o.Kf=function(e,t){this.Jg(u(e,306),t)},o.Jg=function(e,t){var i,r,c;t.Ug("Minimum spanning tree construction",1),e.d?r=e.d.a:r=u(sn(e.i,0),68).a,on(un(v(e,(J4(),A8))))?c=GR(e.e,r,(i=e.b,i)):c=GR(e.e,r,e.b),uRn(this,c,e),t.Vg()},w(iF,"MinSTPhase",794),b(1466,794,vr,cjn),o.Jg=function(e,t){var i,r,c,s;t.Ug("Maximum spanning tree construction",1),i=new Pkn(e),e.d?c=e.d.c:c=u(sn(e.i,0),68).c,on(un(v(e,(J4(),A8))))?s=GR(e.e,c,(r=i,r)):s=GR(e.e,c,i),uRn(this,s,e),t.Vg()},w(iF,"MaxSTPhase",1466),b(1467,1,{},Pkn),o.af=function(e){return gle(this.a,e)},w(iF,"MaxSTPhase/lambda$0$Type",1467),b(1465,1,re,Ikn),o.Cd=function(e){s1e(this.a,u(e,68))},w(iF,"MinSTPhase/lambda$0$Type",1465),b(796,1,vr,YU),o.rg=function(e){return u(e,306),new ii},o.Kf=function(e,t){Dye(this,u(e,306),t)},o.a=!1,w(rF,"GrowTreePhase",796),b(797,1,re,xV),o.Cd=function(e){Jve(this.a,this.b,this.c,u(e,225))},w(rF,"GrowTreePhase/lambda$0$Type",797),b(1468,1,vr,gmn),o.rg=function(e){return u(e,306),new ii},o.Kf=function(e,t){H9e(this,u(e,306),t)},w(rF,"ShrinkTreeCompactionPhase",1468),b(795,1,re,RV),o.Cd=function(e){IMe(this.a,this.b,this.c,u(e,225))},w(rF,"ShrinkTreeCompactionPhase/lambda$0$Type",795);var can=Dt(dc,"IGraphElementVisitor");b(872,1,{536:1},XAn),o.Kg=function(e){var t;t=xSe(this,e),Ur(t,u(ee(this.b,e),96)),ATe(this,e,t)};var due,bue;w(e2,"LayoutConfigurator",872);var IDe=Dt(e2,"LayoutConfigurator/IPropertyHolderOptionFilter");b(944,1,{2032:1},pmn),o.Lg=function(e,t){return qp(),!e.pf(t)},w(e2,"LayoutConfigurator/lambda$0$Type",944),b(943,1,{845:1},mmn),o.Mg=function(e,t){return qp(),!e.pf(t)},w(e2,"LayoutConfigurator/lambda$1$Type",943),b(945,1,{2032:1},Hse),o.Lg=function(e,t){return vEn(e,t)},w(e2,"LayoutConfigurator/lambda$2$Type",945),b(946,1,Le,uTn),o.Mb=function(e){return Gwe(this.a,this.b,u(e,2032))},w(e2,"LayoutConfigurator/lambda$3$Type",946),b(869,1,{},vmn),w(e2,"RecursiveGraphLayoutEngine",869),b(224,63,Il,xyn,_l),w(e2,"UnsupportedConfigurationException",224),b(370,63,Il,hp),w(e2,"UnsupportedGraphException",370),b(761,1,{}),w(dc,"AbstractRandomListAccessor",761),b(450,761,{},R5),o.Ng=function(){return null},o.d=!0,o.e=!0,o.f=0,w(Zm,"AlgorithmAssembler",450),b(1200,1,Le,kmn),o.Mb=function(e){return!!u(e,106)},w(Zm,"AlgorithmAssembler/lambda$0$Type",1200),b(1201,1,{},Okn),o.Kb=function(e){return Ahe(this.a,u(e,106))},w(Zm,"AlgorithmAssembler/lambda$1$Type",1201),b(1202,1,Le,ymn),o.Mb=function(e){return!!u(e,80)},w(Zm,"AlgorithmAssembler/lambda$2$Type",1202),b(1203,1,re,Akn),o.Cd=function(e){To(this.a,u(e,80))},w(Zm,"AlgorithmAssembler/lambda$3$Type",1203),b(1204,1,re,oTn),o.Cd=function(e){tae(this.a,this.b,u(e,196))},w(Zm,"AlgorithmAssembler/lambda$4$Type",1204),b(1343,1,De,jmn),o.Ne=function(e,t){return Sge(u(e,196),u(t,196))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Zm,"EnumBasedFactoryComparator",1343),b(80,761,{80:1},ii),o.Ng=function(){return new ni},o.a=0,w(Zm,"LayoutProcessorConfiguration",80),b(1025,1,{536:1},j8n),o.Kg=function(e){f5(gue,new Lkn(e))};var wue,gue,pue;w(oc,"DeprecatedLayoutOptionReplacer",1025),b(1026,1,re,Emn),o.Cd=function(e){R4e(u(e,167))},w(oc,"DeprecatedLayoutOptionReplacer/lambda$0$Type",1026),b(1027,1,re,Mmn),o.Cd=function(e){j8e(u(e,167))},w(oc,"DeprecatedLayoutOptionReplacer/lambda$1$Type",1027),b(1028,1,{},Lkn),o.Yd=function(e,t){eae(this.a,u(e,149),u(t,41))},w(oc,"DeprecatedLayoutOptionReplacer/lambda$2$Type",1028),b(143,1,{701:1,143:1},gd),o.Fb=function(e){return IJ(this,e)},o.Og=function(){return this.b},o.Pg=function(){return this.c},o.xe=function(){return this.e},o.Hb=function(){return t1(this.c)},o.Ib=function(){return"Layout Algorithm: "+this.c};var ODe=w(oc,"LayoutAlgorithmData",143);b(269,1,{},Fa),w(oc,"LayoutAlgorithmData/Builder",269),b(1029,1,{536:1},Cmn),o.Kg=function(e){L(e,207)&&!on(un(e.of((He(),tA))))&&TIe(u(e,27))},w(oc,"LayoutAlgorithmResolver",1029),b(233,1,{701:1,233:1},Dp),o.Fb=function(e){return L(e,233)?Sn(this.b,u(e,233).b):!1},o.Og=function(){return this.a},o.Pg=function(){return this.b},o.xe=function(){return this.d},o.Hb=function(){return t1(this.b)},o.Ib=function(){return"Layout Type: "+this.b},w(oc,"LayoutCategoryData",233),b(357,1,{},tp),w(oc,"LayoutCategoryData/Builder",357),b(879,1,{},Jqn);var Gq;w(oc,"LayoutMetaDataService",879),b(880,1,{},YIn),w(oc,"LayoutMetaDataService/Registry",880),b(487,1,{487:1},ZU),w(oc,"LayoutMetaDataService/Registry/Triple",487),b(881,1,u2,Tmn),o.Qg=function(){return new Ni},w(oc,"LayoutMetaDataService/lambda$0$Type",881),b(882,1,Tw,Smn),o.Rg=function(e){return Fi(u(e,8))},w(oc,"LayoutMetaDataService/lambda$1$Type",882),b(891,1,u2,Pmn),o.Qg=function(){return new Z},w(oc,"LayoutMetaDataService/lambda$10$Type",891),b(892,1,Tw,Imn),o.Rg=function(e){return new _u(u(e,13))},w(oc,"LayoutMetaDataService/lambda$11$Type",892),b(893,1,u2,Omn),o.Qg=function(){return new Mt},w(oc,"LayoutMetaDataService/lambda$12$Type",893),b(894,1,Tw,Amn),o.Rg=function(e){return $7(u(e,67))},w(oc,"LayoutMetaDataService/lambda$13$Type",894),b(895,1,u2,Lmn),o.Qg=function(){return new ni},w(oc,"LayoutMetaDataService/lambda$14$Type",895),b(896,1,Tw,Nmn),o.Rg=function(e){return PT(u(e,49))},w(oc,"LayoutMetaDataService/lambda$15$Type",896),b(897,1,u2,Dmn),o.Qg=function(){return new rh},w(oc,"LayoutMetaDataService/lambda$16$Type",897),b(898,1,Tw,$mn),o.Rg=function(e){return HT(u(e,49))},w(oc,"LayoutMetaDataService/lambda$17$Type",898),b(899,1,u2,xmn),o.Qg=function(){return new UG},w(oc,"LayoutMetaDataService/lambda$18$Type",899),b(900,1,Tw,Rmn),o.Rg=function(e){return SPn(u(e,157))},w(oc,"LayoutMetaDataService/lambda$19$Type",900),b(883,1,u2,Kmn),o.Qg=function(){return new Tu},w(oc,"LayoutMetaDataService/lambda$2$Type",883),b(884,1,Tw,Bmn),o.Rg=function(e){return new GE(u(e,75))},w(oc,"LayoutMetaDataService/lambda$3$Type",884),b(885,1,u2,Fmn),o.Qg=function(){return new Qv},w(oc,"LayoutMetaDataService/lambda$4$Type",885),b(886,1,Tw,_mn),o.Rg=function(e){return new qN(u(e,140))},w(oc,"LayoutMetaDataService/lambda$5$Type",886),b(887,1,u2,Hmn),o.Qg=function(){return new up},w(oc,"LayoutMetaDataService/lambda$6$Type",887),b(888,1,Tw,qmn),o.Rg=function(e){return new _V(u(e,107))},w(oc,"LayoutMetaDataService/lambda$7$Type",888),b(889,1,u2,Umn),o.Qg=function(){return new _A},w(oc,"LayoutMetaDataService/lambda$8$Type",889),b(890,1,Tw,Gmn),o.Rg=function(e){return new JDn(u(e,385))},w(oc,"LayoutMetaDataService/lambda$9$Type",890);var zq=Dt(Ly,"IProperty");b(23,1,{34:1,701:1,23:1,149:1},ln),o.Fd=function(e){return j1e(this,u(e,149))},o.Fb=function(e){return L(e,23)?Sn(this.f,u(e,23).f):L(e,149)&&Sn(this.f,u(e,149).Pg())},o.Sg=function(){var e;if(L(this.b,4)){if(e=rZ(this.b),e==null)throw T(new Ar(DVn+this.f+"'. Make sure it's type is registered with the "+(ll(lE),lE.k)+dcn));return e}else return this.b},o.Og=function(){return this.d},o.Pg=function(){return this.f},o.xe=function(){return this.i},o.Hb=function(){return t1(this.f)},o.Ib=function(){return"Layout Option: "+this.f},w(oc,"LayoutOptionData",23),b(24,1,{},hn),w(oc,"LayoutOptionData/Builder",24),b(170,22,{3:1,34:1,22:1,170:1},g7);var Ih,E1,pi,xn,Fd,Zh=we(oc,"LayoutOptionData/Target",170,ke,X3e,Nbe),mue;b(285,22,{3:1,34:1,22:1,285:1},wp);var yi,Qi,It,N3,Zr,Vf,$2,uan,vue=we(oc,"LayoutOptionData/Type",285,ke,bme,Dbe),kue,b9,oan;b(116,1,{116:1},mp,Ho,IT),o.Fb=function(e){var t;return e==null||!L(e,116)?!1:(t=u(e,116),mc(this.c,t.c)&&mc(this.d,t.d)&&mc(this.b,t.b)&&mc(this.a,t.a))},o.Hb=function(){return Ok(S(C(ki,1),Kn,1,5,[this.c,this.d,this.b,this.a]))},o.Ib=function(){return"Rect[x="+this.c+",y="+this.d+",w="+this.b+",h="+this.a+"]"},o.a=0,o.b=0,o.c=0,o.d=0,w(Fy,"ElkRectangle",116),b(8,1,{3:1,4:1,8:1,423:1},Ni,KD,V,rr),o.Fb=function(e){return fxn(this,e)},o.Hb=function(){return pp(this.a)+k7e(pp(this.b))},o.cg=function(e){var t,i,r,c;for(r=0;r<e.length&&XRn((zn(r,e.length),e.charCodeAt(r)),NXn);)++r;for(t=e.length;t>0&&XRn((zn(t-1,e.length),e.charCodeAt(t-1)),DXn);)--t;if(r>=t)throw T(new Gn("The given string does not contain any numbers."));if(c=ww((Ri(r,t,e.length),e.substr(r,t-r)),`,|;|\r|
`),c.length!=2)throw T(new Gn("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=sw(fw(c[0])),this.b=sw(fw(c[1]))}catch(s){throw s=Ot(s),L(s,130)?(i=s,T(new Gn($Xn+i))):T(s)}},o.Ib=function(){return"("+this.a+","+this.b+")"},o.a=0,o.b=0;var Ei=w(Fy,"KVector",8);b(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},Tu,GE,aSn),o.Pc=function(){return A6e(this)},o.cg=function(e){var t,i,r,c,s,f;r=ww(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
`),vo(this);try{for(i=0,s=0,c=0,f=0;i<r.length;)r[i]!=null&&fw(r[i]).length>0&&(s%2==0?c=sw(r[i]):f=sw(r[i]),s>0&&s%2!=0&&Re(this,new V(c,f)),++s),++i}catch(h){throw h=Ot(h),L(h,130)?(t=h,T(new Gn("The given string does not match the expected format for vectors."+t))):T(h)}},o.Ib=function(){var e,t,i;for(e=new mo("("),t=ge(this,0);t.b!=t.d.c;)i=u(be(t),8),Be(e,i.a+","+i.b),t.b!=t.d.c&&(e.a+="; ");return(e.a+=")",e).a};var san=w(Fy,"KVectorChain",75);b(255,22,{3:1,34:1,22:1,255:1},v6);var Xq,ZO,nA,qj,Uj,eA,fan=we(uo,"Alignment",255,ke,P4e,$be),yue;b(991,1,ms,E8n),o.hf=function(e){yUn(e)};var han,Vq,jue,lan,aan,Eue,dan,Mue,Tue,ban,wan,Cue;w(uo,"BoxLayouterOptions",991),b(992,1,{},zmn),o.sf=function(){var e;return e=new Wmn,e},o.tf=function(e){},w(uo,"BoxLayouterOptions/BoxFactory",992),b(298,22,{3:1,34:1,22:1,298:1},k6);var w9,Wq,g9,p9,m9,Jq,Qq=we(uo,"ContentAlignment",298,ke,I4e,xbe),Sue;b(699,1,ms,rG),o.hf=function(e){vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,xVn),""),"Layout Algorithm"),"Select a specific layout algorithm."),(l1(),$2)),fn),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,RVn),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),Vf),ODe),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,irn),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),gan),It),fan),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,l3),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,gcn),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),Vf),san),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,TP),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),man),N3),Qq),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Uy),""),"Debug Mode"),"Whether additional debug information shall be generated."),(_n(),!1)),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,xB),""),Rtn),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),van),It),y9),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,qy),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),jan),It),lU),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,bcn),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,MP),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),Tan),It),ldn),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Wb),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),Dan),Vf),$on),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,i8),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,SP),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,r8),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,tB),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),Ban),It),bdn),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,CP),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),Vf),Ei),yt(pi,S(C(Zh,1),G,170,0,[Fd,E1]))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Dy),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Zr),Gi),yt(pi,S(C(Zh,1),G,170,0,[Ih]))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,uP),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,t8),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,brn),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),Can),Vf),san),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,prn),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,mrn),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,iDe),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),Vf),$De),yt(xn,S(C(Zh,1),G,170,0,[E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,krn),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),San),Vf),Don),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ern),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),yi),Gt),yt(pi,S(C(Zh,1),G,170,0,[Ih,Fd,E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,KVn),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),Qi),si),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,BVn),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,FVn),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,$y),""),AVn),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),yi),Gt),jn(xn)))),ri(e,$y,Jb,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,_Vn),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,HVn),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Y(100)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,qVn),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,UVn),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Y(4e3)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,GVn),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Y(400)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,zVn),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,XVn),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,VVn),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,WVn),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,wcn),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),pan),It),Mdn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Uin),qf),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Gin),qf),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,WK),qf),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,zin),qf),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,eB),qf),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,$B),qf),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Xin),qf),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Jin),qf),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Vin),qf),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Win),qf),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,yw),qf),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Qin),qf),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Yin),qf),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Qi),si),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Zin),qf),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),Vf),boe),yt(pi,S(C(Zh,1),G,170,0,[Ih,Fd,E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,yrn),qf),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),Jan),Vf),Don),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,KB),YVn),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),Zr),Gi),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),ri(e,KB,RB,xue),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,RB),YVn),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),$an),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,urn),ZVn),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),Ian),Vf),$on),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Xm),ZVn),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),Oan),N3),yr),yt(pi,S(C(Zh,1),G,170,0,[E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,frn),RP),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),Ran),It),T9),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,hrn),RP),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),It),T9),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,lrn),RP),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),It),T9),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,arn),RP),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),It),T9),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,drn),RP),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),It),T9),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,r2),uF),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),Aan),N3),P9),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,a3),uF),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),Nan),N3),gdn),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,d3),uF),"Node Size Minimum"),"The minimal size to which a node can be reduced."),Lan),Vf),Ei),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,zm),uF),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,wrn),DB),"Edge Label Placement"),"Gives a hint on where to put edge labels."),kan),It),Zan),jn(E1)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,oP),DB),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),yi),Gt),jn(E1)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,rDe),"font"),"Font Name"),"Font name used for a label."),$2),fn),jn(E1)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,JVn),"font"),"Font Size"),"Font size used for a label."),Zr),Gi),jn(E1)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,vrn),oF),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),Vf),Ei),jn(Fd)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,grn),oF),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),Zr),Gi),jn(Fd)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,trn),oF),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),Han),It),lr),jn(Fd)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,nrn),oF),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),Qi),si),jn(Fd)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Vm),vcn),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),Fan),N3),oA),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,orn),vcn),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,srn),vcn),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,xy),Xy),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),Qi),si),jn(xn)))),ri(e,xy,Jb,Uue),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,pcn),Xy),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),It),dA),jn(pi)))),ri(e,pcn,Jb,Gue),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ry),Xy),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),Qi),si),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),ri(e,Ry,Jb,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ky),Xy),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),Qi),si),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),ri(e,Ky,Jb,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Jb),Xy),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),It),mdn),jn(pi)))),ri(e,Jb,zm,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,mcn),Xy),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),Qi),si),jn(xn)))),ri(e,mcn,Jb,que),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,rrn),nWn),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,crn),nWn),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),yi),Gt),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,JK),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),Qi),si),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,QVn),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),Man),It),cdn),jn(Ih)))),f6(e,new Dp(r6(u4(c4(new tp,Yn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),f6(e,new Dp(r6(u4(c4(new tp,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),f6(e,new Dp(r6(u4(c4(new tp,cu),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),f6(e,new Dp(r6(u4(c4(new tp,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),f6(e,new Dp(r6(u4(c4(new tp,gVn),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),f6(e,new Dp(r6(u4(c4(new tp,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),f6(e,new Dp(r6(u4(c4(new tp,es),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),uUn((new M8n,e)),yUn((new E8n,e)),Dqn((new T8n,e))};var $v,Pue,gan,x2,Iue,Oue,pan,R2,K2,Aue,Gj,man,zj,_d,van,Yq,Zq,kan,yan,jan,Ean,Man,Lue,B2,Tan,Nue,Xj,nU,Vj,eU,k0,Can,xv,San,Pan,Ian,F2,Oan,Hd,Aan,Vw,_2,Lan,Ca,Nan,tA,Wj,M1,Dan,Due,$an,$ue,xue,xan,Ran,tU,iU,rU,cU,Kan,oo,v9,Ban,uU,oU,Ww,Fan,_an,H2,Han,D3,Jj,sU,q2,Rue,fU,Kue,Bue,qan,Fue,Uan,Gan,$3,zan,iA,Xan,Van,qd,_ue,Wan,Jan,Qan,rA,Qj,k9,x3,Hue,que,cA,Uue,Yan,Gue;w(uo,"CoreOptions",699),b(88,22,{3:1,34:1,22:1,88:1},p7);var Wf,Kr,Xr,Jf,us,y9=we(uo,Rtn,88,ke,N3e,Rbe),zue;b(278,22,{3:1,34:1,22:1,278:1},fN);var Rv,Jw,Kv,Zan=we(uo,"EdgeLabelPlacement",278,ke,spe,Kbe),Xue;b(223,22,{3:1,34:1,22:1,223:1},kM);var Bv,Yj,R3,hU,lU=we(uo,"EdgeRouting",223,ke,s3e,Bbe),Vue;b(321,22,{3:1,34:1,22:1,321:1},y6);var ndn,edn,tdn,idn,aU,rdn,cdn=we(uo,"EdgeType",321,ke,S4e,Fbe),Wue;b(989,1,ms,M8n),o.hf=function(e){uUn(e)};var udn,odn,sdn,fdn,Jue,hdn,j9;w(uo,"FixedLayouterOptions",989),b(990,1,{},Xmn),o.sf=function(){var e;return e=new rvn,e},o.tf=function(e){},w(uo,"FixedLayouterOptions/FixedFactory",990),b(346,22,{3:1,34:1,22:1,346:1},hN);var T1,uA,E9,ldn=we(uo,"HierarchyHandling",346,ke,upe,_be),Que;b(291,22,{3:1,34:1,22:1,291:1},yM);var nl,Sa,Zj,nE,Yue=we(uo,"LabelSide",291,ke,o3e,Hbe),Zue;b(95,22,{3:1,34:1,22:1,95:1},bg);var xl,Qs,Ms,Ys,No,Zs,Ts,el,nf,yr=we(uo,"NodeLabelPlacement",95,ke,Pme,qbe),noe;b(256,22,{3:1,34:1,22:1,256:1},m7);var adn,M9,Pa,ddn,eE,T9=we(uo,"PortAlignment",256,ke,V3e,Ube),eoe;b(101,22,{3:1,34:1,22:1,101:1},j6);var Ud,qc,tl,Fv,Qf,Ia,bdn=we(uo,"PortConstraints",101,ke,C4e,Gbe),toe;b(279,22,{3:1,34:1,22:1,279:1},E6);var C9,S9,Rl,tE,Oa,K3,oA=we(uo,"PortLabelPlacement",279,ke,T4e,zbe),ioe;b(64,22,{3:1,34:1,22:1,64:1},v7);var Zn,Xn,os,ss,pu,su,Yf,ef,Wu,xu,Uc,Ju,mu,vu,tf,Do,$o,Cs,ae,sc,Wn,lr=we(uo,"PortSide",64,ke,D3e,Xbe),roe;b(993,1,ms,T8n),o.hf=function(e){Dqn(e)};var coe,uoe,wdn,ooe,soe;w(uo,"RandomLayouterOptions",993),b(994,1,{},Vmn),o.sf=function(){var e;return e=new evn,e},o.tf=function(e){},w(uo,"RandomLayouterOptions/RandomFactory",994),b(386,22,{3:1,34:1,22:1,386:1},jM);var Qw,iE,rE,Gd,P9=we(uo,"SizeConstraint",386,ke,u3e,Vbe),foe;b(264,22,{3:1,34:1,22:1,264:1},wg);var cE,sA,_v,dU,uE,I9,fA,hA,lA,gdn=we(uo,"SizeOptions",264,ke,Fme,Wbe),hoe;b(280,22,{3:1,34:1,22:1,280:1},lN);var Yw,pdn,aA,mdn=we(uo,"TopdownNodeTypes",280,ke,fpe,Jbe),loe;b(347,22,kcn);var vdn,kdn,dA=we(uo,"TopdownSizeApproximator",347,ke,r2e,Ybe);b(987,347,kcn,VPn),o.Tg=function(e){return MBn(e)},we(uo,"TopdownSizeApproximator/1",987,dA,null,null),b(988,347,kcn,NIn),o.Tg=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(t=u(z(e,(He(),q2)),143),tn=(K1(),m=new Yv,m),uy(tn,e),yn=new de,s=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));s.e!=s.i.gc();)r=u(ue(s),27),A=(p=new Yv,p),PS(A,tn),uy(A,r),Rn=MBn(r),kg(A,y.Math.max(r.g,Rn.a),y.Math.max(r.f,Rn.b)),Vc(yn.f,r,A);for(c=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));c.e!=c.i.gc();)for(r=u(ue(c),27),d=new ne((!r.e&&(r.e=new Dn(Vt,r,7,4)),r.e));d.e!=d.i.gc();)a=u(ue(d),74),_=u(Fr(wr(yn.f,r)),27),X=u(ee(yn,N((!a.c&&(a.c=new Dn(he,a,5,8)),a.c),0)),27),D=(g=new HA,g),ve((!D.b&&(D.b=new Dn(he,D,4,7)),D.b),_),ve((!D.c&&(D.c=new Dn(he,D,5,8)),D.c),X),SS(D,St(_)),uy(D,a);j=u(z7(t.f),205);try{j.rf(tn,new ovn),hOn(t.f,j)}catch(Bn){throw Bn=Ot(Bn),L(Bn,103)?(k=Bn,T(k)):T(Bn)}return Nf(tn,K2)||Nf(tn,R2)||utn(tn),l=$(B(z(tn,K2))),h=$(B(z(tn,R2))),f=l/h,i=$(B(z(tn,Qj)))*y.Math.sqrt((!tn.a&&(tn.a=new q(Ye,tn,10,11)),tn.a).i),kn=u(z(tn,M1),107),O=kn.b+kn.c+1,P=kn.d+kn.a+1,new V(y.Math.max(O,i),y.Math.max(P,i/f))},we(uo,"TopdownSizeApproximator/2",988,dA,null,null);var aoe;b(344,1,{871:1},op),o.Ug=function(e,t){return RFn(this,e,t)},o.Vg=function(){u_n(this)},o.Wg=function(){return this.q},o.Xg=function(){return this.f?CD(this.f):null},o.Yg=function(){return CD(this.a)},o.Zg=function(){return this.p},o.$g=function(){return!1},o._g=function(){return this.n},o.ah=function(){return this.p!=null&&!this.b},o.bh=function(e){var t;this.n&&(t=e,nn(this.f,t))},o.dh=function(e,t){var i,r;this.n&&e&&Mpe(this,(i=new GIn,r=OR(i,e),cLe(i),r),(NC(),wU))},o.eh=function(e){var t;return this.b?null:(t=fme(this,this.g),Re(this.a,t),t.i=this,this.d=e,t)},o.fh=function(e){e>0&&!this.b&&EQ(this,e)},o.b=!1,o.c=0,o.d=-1,o.e=null,o.f=null,o.g=-1,o.j=!1,o.k=!1,o.n=!1,o.o=0,o.q=0,o.r=0,w(dc,"BasicProgressMonitor",344),b(717,205,yd,Wmn),o.rf=function(e,t){KUn(e,t)},w(dc,"BoxLayoutProvider",717),b(983,1,De,Nkn),o.Ne=function(e,t){return cCe(this,u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},o.a=!1,w(dc,"BoxLayoutProvider/1",983),b(163,1,{163:1},hC,mSn),o.Ib=function(){return this.c?jen(this.c):ca(this.b)},w(dc,"BoxLayoutProvider/Group",163),b(320,22,{3:1,34:1,22:1,320:1},EM);var ydn,jdn,Edn,bU,Mdn=we(dc,"BoxLayoutProvider/PackingMode",320,ke,f3e,Zbe),doe;b(984,1,De,Jmn),o.Ne=function(e,t){return Mge(u(e,163),u(t,163))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(dc,"BoxLayoutProvider/lambda$0$Type",984),b(985,1,De,Qmn),o.Ne=function(e,t){return gge(u(e,163),u(t,163))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(dc,"BoxLayoutProvider/lambda$1$Type",985),b(986,1,De,Ymn),o.Ne=function(e,t){return pge(u(e,163),u(t,163))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(dc,"BoxLayoutProvider/lambda$2$Type",986),b(1384,1,{845:1},Zmn),o.Mg=function(e,t){return nM(),!L(t,167)||vEn((qp(),u(e,167)),t)},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384),b(1385,1,re,Dkn),o.Cd=function(e){D6e(this.a,u(e,149))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385),b(1386,1,re,tvn),o.Cd=function(e){u(e,96),nM()},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386),b(1390,1,re,$kn),o.Cd=function(e){tve(this.a,u(e,96))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390),b(1388,1,Le,fTn),o.Mb=function(e){return w6e(this.a,this.b,u(e,149))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388),b(1387,1,Le,hTn),o.Mb=function(e){return J1e(this.a,this.b,u(e,845))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387),b(1389,1,re,lTn),o.Cd=function(e){fwe(this.a,this.b,u(e,149))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389),b(947,1,{},ivn),o.Kb=function(e){return uCn(e)},o.Fb=function(e){return this===e},w(dc,"ElkUtil/lambda$0$Type",947),b(948,1,re,aTn),o.Cd=function(e){sMe(this.a,this.b,u(e,74))},o.a=0,o.b=0,w(dc,"ElkUtil/lambda$1$Type",948),b(949,1,re,dTn),o.Cd=function(e){Zfe(this.a,this.b,u(e,166))},o.a=0,o.b=0,w(dc,"ElkUtil/lambda$2$Type",949),b(950,1,re,bTn),o.Cd=function(e){Vle(this.a,this.b,u(e,135))},o.a=0,o.b=0,w(dc,"ElkUtil/lambda$3$Type",950),b(951,1,re,xkn),o.Cd=function(e){O0e(this.a,u(e,377))},w(dc,"ElkUtil/lambda$4$Type",951),b(325,1,{34:1,325:1},Ife),o.Fd=function(e){return E1e(this,u(e,242))},o.Fb=function(e){var t;return L(e,325)?(t=u(e,325),this.a==t.a):!1},o.Hb=function(){return wi(this.a)},o.Ib=function(){return this.a+" (exclusive)"},o.a=0,w(dc,"ExclusiveBounds/ExclusiveLowerBound",325),b(1119,205,yd,rvn),o.rf=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn;for(t.Ug("Fixed Layout",1),s=u(z(e,(He(),yan)),223),g=0,p=0,A=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));A.e!=A.i.gc();){for(P=u(ue(A),27),kn=u(z(P,(DC(),j9)),8),kn&&(Bo(P,kn.a,kn.b),u(z(P,odn),181).Hc((go(),Qw))&&(m=u(z(P,fdn),8),m.a>0&&m.b>0&&Gb(P,m.a,m.b,!0,!0))),g=y.Math.max(g,P.i+P.g),p=y.Math.max(p,P.j+P.f),a=new ne((!P.n&&(P.n=new q(Sr,P,1,7)),P.n));a.e!=a.i.gc();)h=u(ue(a),135),kn=u(z(h,j9),8),kn&&Bo(h,kn.a,kn.b),g=y.Math.max(g,P.i+h.i+h.g),p=y.Math.max(p,P.j+h.j+h.f);for(X=new ne((!P.c&&(P.c=new q(Qu,P,9,9)),P.c));X.e!=X.i.gc();)for(_=u(ue(X),123),kn=u(z(_,j9),8),kn&&Bo(_,kn.a,kn.b),tn=P.i+_.i,yn=P.j+_.j,g=y.Math.max(g,tn+_.g),p=y.Math.max(p,yn+_.f),l=new ne((!_.n&&(_.n=new q(Sr,_,1,7)),_.n));l.e!=l.i.gc();)h=u(ue(l),135),kn=u(z(h,j9),8),kn&&Bo(h,kn.a,kn.b),g=y.Math.max(g,tn+h.i+h.g),p=y.Math.max(p,yn+h.j+h.f);for(c=new ie(ce(Sl(P).a.Kc(),new En));pe(c);)i=u(fe(c),74),d=YGn(i),g=y.Math.max(g,d.a),p=y.Math.max(p,d.b);for(r=new ie(ce(cy(P).a.Kc(),new En));pe(r);)i=u(fe(r),74),St(Fh(i))!=e&&(d=YGn(i),g=y.Math.max(g,d.a),p=y.Math.max(p,d.b))}if(s==(El(),Bv))for(O=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));O.e!=O.i.gc();)for(P=u(ue(O),27),r=new ie(ce(Sl(P).a.Kc(),new En));pe(r);)i=u(fe(r),74),f=hIe(i),f.b==0?ht(i,k0,null):ht(i,k0,f);on(un(z(e,(DC(),sdn))))||(D=u(z(e,Jue),107),j=g+D.b+D.c,k=p+D.d+D.a,Gb(e,j,k,!0,!0)),t.Vg()},w(dc,"FixedLayoutProvider",1119),b(385,137,{3:1,423:1,385:1,96:1,137:1},_A,JDn),o.cg=function(e){var t,i,r,c,s,f,h,l,a;if(e)try{for(l=ww(e,";,;"),s=l,f=0,h=s.length;f<h;++f){if(c=s[f],i=ww(c,"\\:"),r=Yen(z4(),i[0]),!r)throw T(new Gn("Invalid option id: "+i[0]));if(a=Jen(r,i[1]),a==null)throw T(new Gn("Invalid option value: "+i[1]));a==null?(!this.q&&(this.q=new de),Kp(this.q,r)):(!this.q&&(this.q=new de),Ve(this.q,r,a))}}catch(d){throw d=Ot(d),L(d,103)?(t=d,T(new DRn(t))):T(d)}},o.Ib=function(){var e;return e=Ae(Wr(_r((this.q?this.q:(Ln(),Ln(),Wh)).vc().Oc(),new cvn),W0(new IPn,new qbn,new Fbn,new _bn,S(C(xr,1),G,108,0,[])))),e};var boe=w(dc,"IndividualSpacings",385);b(982,1,{},cvn),o.Kb=function(e){return Tge(u(e,44))},w(dc,"IndividualSpacings/lambda$0$Type",982),b(718,1,{},hIn),o.c=0,w(dc,"InstancePool",718),b(1835,1,{},uvn),w(dc,"LoggedGraph",1835),b(415,22,{3:1,34:1,22:1,415:1},MM);var Tdn,wU,Cdn,Sdn,woe=we(dc,"LoggedGraph/Type",415,ke,h3e,n0e),goe;b(1063,1,{871:1},ovn),o.Ug=function(e,t){return!1},o.Vg=function(){},o.Wg=function(){return 0},o.Xg=function(){return null},o.Yg=function(){return null},o.Zg=function(){return null},o.$g=function(){return!1},o._g=function(){return!1},o.ah=function(){return!1},o.bh=function(e){},o.dh=function(e,t){},o.eh=function(e){return this},o.fh=function(e){},w(dc,"NullElkProgressMonitor",1063),b(42,1,{20:1,42:1},bi),o.Jc=function(e){qi(this,e)},o.Fb=function(e){var t,i,r;return L(e,42)?(i=u(e,42),t=this.a==null?i.a==null:rt(this.a,i.a),r=this.b==null?i.b==null:rt(this.b,i.b),t&&r):!1},o.Hb=function(){var e,t,i,r,c,s;return i=this.a==null?0:mt(this.a),e=i&ui,t=i&-65536,s=this.b==null?0:mt(this.b),r=s&ui,c=s&-65536,e^c>>16&ui|t^r<<16},o.Kc=function(){return new Rkn(this)},o.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+Jr(this.b)+")":this.b==null?"pair("+Jr(this.a)+",null)":"pair("+Jr(this.a)+","+Jr(this.b)+")"},w(dc,"Pair",42),b(995,1,Pi,Rkn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},o.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw T(new nc)},o.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),T(new Mu)},o.b=!1,o.c=!1,w(dc,"Pair/1",995),b(455,1,{455:1},COn),o.Fb=function(e){return mc(this.a,u(e,455).a)&&mc(this.c,u(e,455).c)&&mc(this.d,u(e,455).d)&&mc(this.b,u(e,455).b)},o.Hb=function(){return Ok(S(C(ki,1),Kn,1,5,[this.a,this.c,this.d,this.b]))},o.Ib=function(){return"("+this.a+ur+this.c+ur+this.d+ur+this.b+")"},w(dc,"Quadruple",455),b(1108,205,yd,evn),o.rf=function(e,t){var i,r,c,s,f;if(t.Ug("Random Layout",1),(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i==0){t.Vg();return}s=u(z(e,(QY(),ooe)),17),s&&s.a!=0?c=new qT(s.a):c=new dx,i=J9(B(z(e,coe))),f=J9(B(z(e,soe))),r=u(z(e,uoe),107),PLe(e,c,i,f,r),t.Vg()},w(dc,"RandomLayoutProvider",1108),b(240,1,{240:1},_N),o.Fb=function(e){return mc(this.a,u(e,240).a)&&mc(this.b,u(e,240).b)&&mc(this.c,u(e,240).c)},o.Hb=function(){return Ok(S(C(ki,1),Kn,1,5,[this.a,this.b,this.c]))},o.Ib=function(){return"("+this.a+ur+this.b+ur+this.c+")"},w(dc,"Triple",240);var poe;b(562,1,{}),o.Lf=function(){return new V(this.f.i,this.f.j)},o.of=function(e){return nAn(e,(He(),oo))?z(this.f,moe):z(this.f,e)},o.Mf=function(){return new V(this.f.g,this.f.f)},o.Nf=function(){return this.g},o.pf=function(e){return Nf(this.f,e)},o.Of=function(e){eu(this.f,e.a),tu(this.f,e.b)},o.Pf=function(e){Ob(this.f,e.a),Ib(this.f,e.b)},o.Qf=function(e){this.g=e},o.g=0;var moe;w(d8,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562),b(563,1,{853:1},LE),o.Rf=function(){var e,t;if(!this.b)for(this.b=BT(jT(this.a).i),t=new ne(jT(this.a));t.e!=t.i.gc();)e=u(ue(t),135),nn(this.b,new pL(e));return this.b},o.b=null,w(d8,"ElkGraphAdapters/ElkEdgeAdapter",563),b(289,562,{},Qd),o.Sf=function(){return zBn(this)},o.a=null,w(d8,"ElkGraphAdapters/ElkGraphAdapter",289),b(640,562,{187:1},pL),w(d8,"ElkGraphAdapters/ElkLabelAdapter",640),b(639,562,{695:1},TN),o.Rf=function(){return w7e(this)},o.Vf=function(){var e;return e=u(z(this.f,(He(),xv)),140),!e&&(e=new Qv),e},o.Xf=function(){return g7e(this)},o.Zf=function(e){var t;t=new qN(e),ht(this.f,(He(),xv),t)},o.$f=function(e){ht(this.f,(He(),M1),new _V(e))},o.Tf=function(){return this.d},o.Uf=function(){var e,t;if(!this.a)for(this.a=new Z,t=new ie(ce(cy(u(this.f,27)).a.Kc(),new En));pe(t);)e=u(fe(t),74),nn(this.a,new LE(e));return this.a},o.Wf=function(){var e,t;if(!this.c)for(this.c=new Z,t=new ie(ce(Sl(u(this.f,27)).a.Kc(),new En));pe(t);)e=u(fe(t),74),nn(this.c,new LE(e));return this.c},o.Yf=function(){return ST(u(this.f,27)).i!=0||on(un(u(this.f,27).of((He(),Xj))))},o._f=function(){V4e(this,(cb(),poe))},o.a=null,o.b=null,o.c=null,o.d=null,o.e=null,w(d8,"ElkGraphAdapters/ElkNodeAdapter",639),b(1284,562,{852:1},Kkn),o.Rf=function(){return M7e(this)},o.Uf=function(){var e,t;if(!this.a)for(this.a=Lh(u(this.f,123).hh().i),t=new ne(u(this.f,123).hh());t.e!=t.i.gc();)e=u(ue(t),74),nn(this.a,new LE(e));return this.a},o.Wf=function(){var e,t;if(!this.c)for(this.c=Lh(u(this.f,123).ih().i),t=new ne(u(this.f,123).ih());t.e!=t.i.gc();)e=u(ue(t),74),nn(this.c,new LE(e));return this.c},o.ag=function(){return u(u(this.f,123).of((He(),H2)),64)},o.bg=function(){var e,t,i,r,c,s,f,h;for(r=Pf(u(this.f,123)),i=new ne(u(this.f,123).ih());i.e!=i.i.gc();)for(e=u(ue(i),74),h=new ne((!e.c&&(e.c=new Dn(he,e,5,8)),e.c));h.e!=h.i.gc();){if(f=u(ue(h),84),Y0(Gr(f),r))return!0;if(Gr(f)==r&&on(un(z(e,(He(),nU)))))return!0}for(t=new ne(u(this.f,123).hh());t.e!=t.i.gc();)for(e=u(ue(t),74),s=new ne((!e.b&&(e.b=new Dn(he,e,4,7)),e.b));s.e!=s.i.gc();)if(c=u(ue(s),84),Y0(Gr(c),r))return!0;return!1},o.a=null,o.b=null,o.c=null,w(d8,"ElkGraphAdapters/ElkPortAdapter",1284),b(1285,1,De,nvn),o.Ne=function(e,t){return tPe(u(e,123),u(t,123))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(d8,"ElkGraphAdapters/PortComparator",1285);var Aa=Dt(ts,"EObject"),Hv=Dt(o2,iWn),xo=Dt(o2,rWn),oE=Dt(o2,cWn),sE=Dt(o2,"ElkShape"),he=Dt(o2,uWn),Vt=Dt(o2,ycn),Tt=Dt(o2,oWn),fE=Dt(ts,sWn),O9=Dt(ts,"EFactory"),voe,gU=Dt(ts,fWn),Ef=Dt(ts,"EPackage"),Ci,koe,yoe,Pdn,bA,joe,Idn,Odn,Adn,il,Eoe,Moe,Sr=Dt(o2,jcn),Ye=Dt(o2,Ecn),Qu=Dt(o2,Mcn);b(93,1,hWn),o.th=function(){return this.uh(),null},o.uh=function(){return null},o.vh=function(){return this.uh(),!1},o.wh=function(){return!1},o.xh=function(e){it(this,e)},w(g3,"BasicNotifierImpl",93),b(99,93,bWn),o.Yh=function(){return fo(this)},o.yh=function(e,t){return e},o.zh=function(){throw T(new Ie)},o.Ah=function(e){var t;return t=br(u($n(this.Dh(),this.Fh()),19)),this.Ph().Th(this,t.n,t.f,e)},o.Bh=function(e,t){throw T(new Ie)},o.Ch=function(e,t,i){return Po(this,e,t,i)},o.Dh=function(){var e;return this.zh()&&(e=this.zh().Nk(),e)?e:this.ii()},o.Eh=function(){return dR(this)},o.Fh=function(){throw T(new Ie)},o.Gh=function(){var e,t;return t=this.$h().Ok(),!t&&this.zh().Tk(t=(l6(),e=nJ(bh(this.Dh())),e==null?MU:new M7(this,e))),t},o.Hh=function(e,t){return e},o.Ih=function(e){var t;return t=e.pk(),t?e.Lj():At(this.Dh(),e)},o.Jh=function(){var e;return e=this.zh(),e?e.Qk():null},o.Kh=function(){return this.zh()?this.zh().Nk():null},o.Lh=function(e,t,i){return tS(this,e,t,i)},o.Mh=function(e){return x4(this,e)},o.Nh=function(e,t){return YD(this,e,t)},o.Oh=function(){var e;return e=this.zh(),!!e&&e.Rk()},o.Ph=function(){throw T(new Ie)},o.Qh=function(){return WC(this)},o.Rh=function(e,t,i,r){return Wp(this,e,t,r)},o.Sh=function(e,t,i){var r;return r=u($n(this.Dh(),t),69),r.wk().zk(this,this.hi(),t-this.ji(),e,i)},o.Th=function(e,t,i,r){return AT(this,e,t,r)},o.Uh=function(e,t,i){var r;return r=u($n(this.Dh(),t),69),r.wk().Ak(this,this.hi(),t-this.ji(),e,i)},o.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},o.Wh=function(e){return Mx(this,e)},o.Xh=function(e){return bAn(this,e)},o.Zh=function(e){return xGn(this,e)},o.$h=function(){throw T(new Ie)},o._h=function(){return this.zh()?this.zh().Pk():null},o.ai=function(){return WC(this)},o.bi=function(e,t){sR(this,e,t)},o.ci=function(e){this.$h().Sk(e)},o.di=function(e){this.$h().Vk(e)},o.ei=function(e){this.$h().Uk(e)},o.fi=function(e,t){var i,r,c,s;return s=this.Jh(),s&&e&&(t=cr(s.El(),this,t),s.Il(this)),r=this.Ph(),r&&(SR(this,this.Ph(),this.Fh()).Bb&hr?(c=r.Qh(),c&&(e?!s&&c.Il(this):c.Hl(this))):(t=(i=this.Fh(),i>=0?this.Ah(t):this.Ph().Th(this,-1-i,null,t)),t=this.Ch(null,-1,t))),this.di(e),t},o.gi=function(e){var t,i,r,c,s,f,h,l;if(i=this.Dh(),s=At(i,e),t=this.ji(),s>=t)return u(e,69).wk().Dk(this,this.hi(),s-t);if(s<=-1)if(f=Qg((Lu(),zi),i,e),f){if(dr(),u(f,69).xk()||(f=$p(Nr(zi,f))),c=(r=this.Ih(f),u(r>=0?this.Lh(r,!0,!0):Hb(this,f,!0),160)),l=f.Ik(),l>1||l==-1)return u(u(c,220).Sl(e,!1),79)}else throw T(new Gn(ba+e.xe()+sF));else if(e.Jk())return r=this.Ih(e),u(r>=0?this.Lh(r,!1,!0):Hb(this,e,!1),79);return h=new LTn(this,e),h},o.hi=function(){return cQ(this)},o.ii=function(){return(G1(),Hn).S},o.ji=function(){return se(this.ii())},o.ki=function(e){cR(this,e)},o.Ib=function(){return Hs(this)},w(qn,"BasicEObjectImpl",99);var Toe;b(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),o.li=function(e){var t;return t=rQ(this),t[e]},o.mi=function(e,t){var i;i=rQ(this),$t(i,e,t)},o.ni=function(e){var t;t=rQ(this),$t(t,e,null)},o.th=function(){return u(Un(this,4),129)},o.uh=function(){throw T(new Ie)},o.vh=function(){return(this.Db&4)!=0},o.zh=function(){throw T(new Ie)},o.oi=function(e){Xp(this,2,e)},o.Bh=function(e,t){this.Db=t<<16|this.Db&255,this.oi(e)},o.Dh=function(){return au(this)},o.Fh=function(){return this.Db>>16},o.Gh=function(){var e,t;return l6(),t=nJ(bh((e=u(Un(this,16),29),e||this.ii()))),t==null?MU:new M7(this,t)},o.wh=function(){return(this.Db&1)==0},o.Jh=function(){return u(Un(this,128),2034)},o.Kh=function(){return u(Un(this,16),29)},o.Oh=function(){return(this.Db&32)!=0},o.Ph=function(){return u(Un(this,2),54)},o.Vh=function(){return(this.Db&64)!=0},o.$h=function(){throw T(new Ie)},o._h=function(){return u(Un(this,64),288)},o.ci=function(e){Xp(this,16,e)},o.di=function(e){Xp(this,128,e)},o.ei=function(e){Xp(this,64,e)},o.hi=function(){return iu(this)},o.Db=0,w(qn,"MinimalEObjectImpl",119),b(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.oi=function(e){this.Cb=e},o.Ph=function(){return this.Cb},w(qn,"MinimalEObjectImpl/Container",120),b(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return kZ(this,e,t,i)},o.Uh=function(e,t,i){return fnn(this,e,t,i)},o.Wh=function(e){return bJ(this,e)},o.bi=function(e,t){cY(this,e,t)},o.ii=function(){return Mc(),Moe},o.ki=function(e){VQ(this,e)},o.nf=function(){return aBn(this)},o.gh=function(){return!this.o&&(this.o=new Ou((Mc(),il),C1,this,0)),this.o},o.of=function(e){return z(this,e)},o.pf=function(e){return Nf(this,e)},o.qf=function(e,t){return ht(this,e,t)},w(Td,"EMapPropertyHolderImpl",2083),b(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},yE),o.Lh=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return tS(this,e,t,i)},o.Wh=function(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return Mx(this,e)},o.bi=function(e,t){switch(e){case 0:aC(this,$(B(t)));return;case 1:lC(this,$(B(t)));return}sR(this,e,t)},o.ii=function(){return Mc(),koe},o.ki=function(e){switch(e){case 0:aC(this,0);return;case 1:lC(this,0);return}cR(this,e)},o.Ib=function(){var e;return this.Db&64?Hs(this):(e=new ls(Hs(this)),e.a+=" (x: ",hg(e,this.a),e.a+=", y: ",hg(e,this.b),e.a+=")",e.a)},o.a=0,o.b=0,w(Td,"ElkBendPointImpl",572),b(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return PY(this,e,t,i)},o.Sh=function(e,t,i){return Yx(this,e,t,i)},o.Uh=function(e,t,i){return $$(this,e,t,i)},o.Wh=function(e){return HQ(this,e)},o.bi=function(e,t){BZ(this,e,t)},o.ii=function(){return Mc(),joe},o.ki=function(e){vY(this,e)},o.jh=function(){return this.k},o.kh=function(){return jT(this)},o.Ib=function(){return ox(this)},o.k=null,w(Td,"ElkGraphElementImpl",739),b(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return xY(this,e,t,i)},o.Wh=function(e){return HY(this,e)},o.bi=function(e,t){FZ(this,e,t)},o.ii=function(){return Mc(),Eoe},o.ki=function(e){WY(this,e)},o.lh=function(){return this.f},o.mh=function(){return this.g},o.nh=function(){return this.i},o.oh=function(){return this.j},o.ph=function(e,t){kg(this,e,t)},o.qh=function(e,t){Bo(this,e,t)},o.rh=function(e){eu(this,e)},o.sh=function(e){tu(this,e)},o.Ib=function(){return iR(this)},o.f=0,o.g=0,o.i=0,o.j=0,w(Td,"ElkShapeImpl",740),b(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return dZ(this,e,t,i)},o.Sh=function(e,t,i){return NZ(this,e,t,i)},o.Uh=function(e,t,i){return DZ(this,e,t,i)},o.Wh=function(e){return rY(this,e)},o.bi=function(e,t){Xnn(this,e,t)},o.ii=function(){return Mc(),yoe},o.ki=function(e){sZ(this,e)},o.hh=function(){return!this.d&&(this.d=new Dn(Vt,this,8,5)),this.d},o.ih=function(){return!this.e&&(this.e=new Dn(Vt,this,7,4)),this.e},w(Td,"ElkConnectableShapeImpl",741),b(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},HA),o.Ah=function(e){return IZ(this,e)},o.Lh=function(e,t,i){switch(e){case 3:return V7(this);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),this.c;case 6:return!this.a&&(this.a=new q(Tt,this,6,6)),this.a;case 7:return _n(),!this.b&&(this.b=new Dn(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i<=1));case 8:return _n(),!!D5(this);case 9:return _n(),!!_b(this);case 10:return _n(),!this.b&&(this.b=new Dn(he,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i!=0)}return PY(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 3:return this.Cb&&(i=(r=this.Db>>16,r>=0?IZ(this,i):this.Cb.Th(this,-1-r,null,i))),hV(this,u(e,27),i);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),Xc(this.b,e,i);case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),Xc(this.c,e,i);case 6:return!this.a&&(this.a=new q(Tt,this,6,6)),Xc(this.a,e,i)}return Yx(this,e,t,i)},o.Uh=function(e,t,i){switch(t){case 3:return hV(this,null,i);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),cr(this.b,e,i);case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),cr(this.c,e,i);case 6:return!this.a&&(this.a=new q(Tt,this,6,6)),cr(this.a,e,i)}return $$(this,e,t,i)},o.Wh=function(e){switch(e){case 3:return!!V7(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Dn(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i<=1));case 8:return D5(this);case 9:return _b(this);case 10:return!this.b&&(this.b=new Dn(he,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i!=0)}return HQ(this,e)},o.bi=function(e,t){switch(e){case 3:SS(this,u(t,27));return;case 4:!this.b&&(this.b=new Dn(he,this,4,7)),me(this.b),!this.b&&(this.b=new Dn(he,this,4,7)),Kt(this.b,u(t,16));return;case 5:!this.c&&(this.c=new Dn(he,this,5,8)),me(this.c),!this.c&&(this.c=new Dn(he,this,5,8)),Kt(this.c,u(t,16));return;case 6:!this.a&&(this.a=new q(Tt,this,6,6)),me(this.a),!this.a&&(this.a=new q(Tt,this,6,6)),Kt(this.a,u(t,16));return}BZ(this,e,t)},o.ii=function(){return Mc(),Pdn},o.ki=function(e){switch(e){case 3:SS(this,null);return;case 4:!this.b&&(this.b=new Dn(he,this,4,7)),me(this.b);return;case 5:!this.c&&(this.c=new Dn(he,this,5,8)),me(this.c);return;case 6:!this.a&&(this.a=new q(Tt,this,6,6)),me(this.a);return}vY(this,e)},o.Ib=function(){return nGn(this)},w(Td,"ElkEdgeImpl",326),b(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},jE),o.Ah=function(e){return TZ(this,e)},o.Lh=function(e,t,i){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new ti(xo,this,5)),this.a;case 6:return hAn(this);case 7:return t?Ix(this):this.i;case 8:return t?Px(this):this.f;case 9:return!this.g&&(this.g=new Dn(Tt,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Dn(Tt,this,10,9)),this.e;case 11:return this.d}return kZ(this,e,t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?TZ(this,i):this.Cb.Th(this,-1-c,null,i))),fV(this,u(e,74),i);case 9:return!this.g&&(this.g=new Dn(Tt,this,9,10)),Xc(this.g,e,i);case 10:return!this.e&&(this.e=new Dn(Tt,this,10,9)),Xc(this.e,e,i)}return s=u($n((r=u(Un(this,16),29),r||(Mc(),bA)),t),69),s.wk().zk(this,iu(this),t-se((Mc(),bA)),e,i)},o.Uh=function(e,t,i){switch(t){case 5:return!this.a&&(this.a=new ti(xo,this,5)),cr(this.a,e,i);case 6:return fV(this,null,i);case 9:return!this.g&&(this.g=new Dn(Tt,this,9,10)),cr(this.g,e,i);case 10:return!this.e&&(this.e=new Dn(Tt,this,10,9)),cr(this.e,e,i)}return fnn(this,e,t,i)},o.Wh=function(e){switch(e){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!hAn(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return bJ(this,e)},o.bi=function(e,t){switch(e){case 1:H4(this,$(B(t)));return;case 2:U4(this,$(B(t)));return;case 3:_4(this,$(B(t)));return;case 4:q4(this,$(B(t)));return;case 5:!this.a&&(this.a=new ti(xo,this,5)),me(this.a),!this.a&&(this.a=new ti(xo,this,5)),Kt(this.a,u(t,16));return;case 6:ZHn(this,u(t,74));return;case 7:vC(this,u(t,84));return;case 8:mC(this,u(t,84));return;case 9:!this.g&&(this.g=new Dn(Tt,this,9,10)),me(this.g),!this.g&&(this.g=new Dn(Tt,this,9,10)),Kt(this.g,u(t,16));return;case 10:!this.e&&(this.e=new Dn(Tt,this,10,9)),me(this.e),!this.e&&(this.e=new Dn(Tt,this,10,9)),Kt(this.e,u(t,16));return;case 11:OQ(this,Ae(t));return}cY(this,e,t)},o.ii=function(){return Mc(),bA},o.ki=function(e){switch(e){case 1:H4(this,0);return;case 2:U4(this,0);return;case 3:_4(this,0);return;case 4:q4(this,0);return;case 5:!this.a&&(this.a=new ti(xo,this,5)),me(this.a);return;case 6:ZHn(this,null);return;case 7:vC(this,null);return;case 8:mC(this,null);return;case 9:!this.g&&(this.g=new Dn(Tt,this,9,10)),me(this.g);return;case 10:!this.e&&(this.e=new Dn(Tt,this,10,9)),me(this.e);return;case 11:OQ(this,null);return}VQ(this,e)},o.Ib=function(){return dHn(this)},o.b=0,o.c=0,o.d=null,o.j=0,o.k=0,w(Td,"ElkEdgeSectionImpl",452),b(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),o.Lh=function(e,t,i){var r;return e==0?(!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab):zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Sh=function(e,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i)):(c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().zk(this,iu(this),t-se(this.ii()),e,i))},o.Uh=function(e,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i)):(c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i))},o.Wh=function(e){var t;return e==0?!!this.Ab&&this.Ab.i!=0:Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.Zh=function(e){return rtn(this,e)},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.di=function(e){Xp(this,128,e)},o.ii=function(){return An(),qoe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){this.Bb|=1},o.qi=function(e){return _5(this,e)},o.Bb=0,w(qn,"EModelElementImpl",158),b(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},uG),o.ri=function(e,t){return IGn(this,e,t)},o.si=function(e){var t,i,r,c,s;if(this.a!=jo(e)||e.Bb&256)throw T(new Gn(hF+e.zb+n0));for(r=Hr(e);Pc(r.a).i!=0;){if(i=u(py(r,0,(t=u(N(Pc(r.a),0),89),s=t.c,L(s,90)?u(s,29):(An(),Os))),29),Fb(i))return c=jo(i).wi().si(i),u(c,54).ci(e),c;r=Hr(i)}return(e.D!=null?e.D:e.B)=="java.util.Map$Entry"?new zPn(e):new YV(e)},o.ti=function(e,t){return zb(this,e,t)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.a}return zo(this,e-se((An(),$a)),$n((r=u(Un(this,16),29),r||$a),e),t,i)},o.Sh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 1:return this.a&&(i=u(this.a,54).Th(this,4,Ef,i)),mY(this,u(e,241),i)}return c=u($n((r=u(Un(this,16),29),r||(An(),$a)),t),69),c.wk().zk(this,iu(this),t-se((An(),$a)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 1:return mY(this,null,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),$a)),t),69),c.wk().Ak(this,iu(this),t-se((An(),$a)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return Uo(this,e-se((An(),$a)),$n((t=u(Un(this,16),29),t||$a),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:JFn(this,u(t,241));return}Jo(this,e-se((An(),$a)),$n((i=u(Un(this,16),29),i||$a),e),t)},o.ii=function(){return An(),$a},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:JFn(this,null);return}Wo(this,e-se((An(),$a)),$n((t=u(Un(this,16),29),t||$a),e))};var A9,Ldn,Coe;w(qn,"EFactoryImpl",720),b(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},fvn),o.ri=function(e,t){switch(e.hk()){case 12:return u(t,149).Pg();case 13:return Jr(t);default:throw T(new Gn(ev+e.xe()+n0))}},o.si=function(e){var t,i,r,c,s,f,h,l;switch(e.G==-1&&(e.G=(t=jo(e),t?f1(t.vi(),e):-1)),e.G){case 4:return s=new nG,s;case 6:return f=new Yv,f;case 7:return h=new nz,h;case 8:return r=new HA,r;case 9:return i=new yE,i;case 10:return c=new jE,c;case 11:return l=new hvn,l;default:throw T(new Gn(hF+e.zb+n0))}},o.ti=function(e,t){switch(e.hk()){case 13:case 12:return null;default:throw T(new Gn(ev+e.xe()+n0))}},w(Td,"ElkGraphFactoryImpl",1037),b(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),o.Gh=function(){var e,t;return t=(e=u(Un(this,16),29),nJ(bh(e||this.ii()))),t==null?(l6(),l6(),MU):new wSn(this,t)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.xe()}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:this.ui(Ae(t));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),Uoe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:this.ui(null);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.xe=function(){return this.zb},o.ui=function(e){zc(this,e)},o.Ib=function(){return p5(this)},o.zb=null,w(qn,"ENamedElementImpl",448),b(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},HOn),o.Ah=function(e){return oFn(this,e)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new H0(this,Mf,this)),this.rb;case 6:return!this.vb&&(this.vb=new jp(Ef,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?u(this.Cb,241):null:pAn(this)}return zo(this,e-se((An(),O1)),$n((r=u(Un(this,16),29),r||O1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 4:return this.sb&&(i=u(this.sb,54).Th(this,1,O9,i)),yY(this,u(e,480),i);case 5:return!this.rb&&(this.rb=new H0(this,Mf,this)),Xc(this.rb,e,i);case 6:return!this.vb&&(this.vb=new jp(Ef,this,6,7)),Xc(this.vb,e,i);case 7:return this.Cb&&(i=(c=this.Db>>16,c>=0?oFn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,7,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),O1)),t),69),s.wk().zk(this,iu(this),t-se((An(),O1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 4:return yY(this,null,i);case 5:return!this.rb&&(this.rb=new H0(this,Mf,this)),cr(this.rb,e,i);case 6:return!this.vb&&(this.vb=new jp(Ef,this,6,7)),cr(this.vb,e,i);case 7:return Po(this,null,7,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),O1)),t),69),c.wk().Ak(this,iu(this),t-se((An(),O1)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!pAn(this)}return Uo(this,e-se((An(),O1)),$n((t=u(Un(this,16),29),t||O1),e))},o.Zh=function(e){var t;return t=pCe(this,e),t||rtn(this,e)},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:zc(this,Ae(t));return;case 2:TC(this,Ae(t));return;case 3:MC(this,Ae(t));return;case 4:tR(this,u(t,480));return;case 5:!this.rb&&(this.rb=new H0(this,Mf,this)),me(this.rb),!this.rb&&(this.rb=new H0(this,Mf,this)),Kt(this.rb,u(t,16));return;case 6:!this.vb&&(this.vb=new jp(Ef,this,6,7)),me(this.vb),!this.vb&&(this.vb=new jp(Ef,this,6,7)),Kt(this.vb,u(t,16));return}Jo(this,e-se((An(),O1)),$n((i=u(Un(this,16),29),i||O1),e),t)},o.ei=function(e){var t,i;if(e&&this.rb)for(i=new ne(this.rb);i.e!=i.i.gc();)t=ue(i),L(t,364)&&(u(t,364).w=null);Xp(this,64,e)},o.ii=function(){return An(),O1},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:TC(this,null);return;case 3:MC(this,null);return;case 4:tR(this,null);return;case 5:!this.rb&&(this.rb=new H0(this,Mf,this)),me(this.rb);return;case 6:!this.vb&&(this.vb=new jp(Ef,this,6,7)),me(this.vb);return}Wo(this,e-se((An(),O1)),$n((t=u(Un(this,16),29),t||O1),e))},o.pi=function(){Hx(this)},o.vi=function(){return!this.rb&&(this.rb=new H0(this,Mf,this)),this.rb},o.wi=function(){return this.sb},o.xi=function(){return this.ub},o.yi=function(){return this.xb},o.zi=function(){return this.yb},o.Ai=function(e){this.ub=e},o.Ib=function(){var e;return this.Db&64?p5(this):(e=new ls(p5(this)),e.a+=" (nsURI: ",Er(e,this.yb),e.a+=", nsPrefix: ",Er(e,this.xb),e.a+=")",e.a)},o.xb=null,o.yb=null,w(qn,"EPackageImpl",184),b(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},jHn),o.q=!1,o.r=!1;var Soe=!1;w(Td,"ElkGraphPackageImpl",569),b(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},nG),o.Ah=function(e){return CZ(this,e)},o.Lh=function(e,t,i){switch(e){case 7:return mAn(this);case 8:return this.a}return xY(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 7:return this.Cb&&(i=(r=this.Db>>16,r>=0?CZ(this,i):this.Cb.Th(this,-1-r,null,i))),dW(this,u(e,167),i)}return Yx(this,e,t,i)},o.Uh=function(e,t,i){return t==7?dW(this,null,i):$$(this,e,t,i)},o.Wh=function(e){switch(e){case 7:return!!mAn(this);case 8:return!Sn("",this.a)}return HY(this,e)},o.bi=function(e,t){switch(e){case 7:uen(this,u(t,167));return;case 8:TQ(this,Ae(t));return}FZ(this,e,t)},o.ii=function(){return Mc(),Idn},o.ki=function(e){switch(e){case 7:uen(this,null);return;case 8:TQ(this,"");return}WY(this,e)},o.Ib=function(){return h_n(this)},o.a="",w(Td,"ElkLabelImpl",366),b(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Yv),o.Ah=function(e){return OZ(this,e)},o.Lh=function(e,t,i){switch(e){case 9:return!this.c&&(this.c=new q(Qu,this,9,9)),this.c;case 10:return!this.a&&(this.a=new q(Ye,this,10,11)),this.a;case 11:return St(this);case 12:return!this.b&&(this.b=new q(Vt,this,12,3)),this.b;case 13:return _n(),!this.a&&(this.a=new q(Ye,this,10,11)),this.a.i>0}return dZ(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 9:return!this.c&&(this.c=new q(Qu,this,9,9)),Xc(this.c,e,i);case 10:return!this.a&&(this.a=new q(Ye,this,10,11)),Xc(this.a,e,i);case 11:return this.Cb&&(i=(r=this.Db>>16,r>=0?OZ(this,i):this.Cb.Th(this,-1-r,null,i))),kV(this,u(e,27),i);case 12:return!this.b&&(this.b=new q(Vt,this,12,3)),Xc(this.b,e,i)}return NZ(this,e,t,i)},o.Uh=function(e,t,i){switch(t){case 9:return!this.c&&(this.c=new q(Qu,this,9,9)),cr(this.c,e,i);case 10:return!this.a&&(this.a=new q(Ye,this,10,11)),cr(this.a,e,i);case 11:return kV(this,null,i);case 12:return!this.b&&(this.b=new q(Vt,this,12,3)),cr(this.b,e,i)}return DZ(this,e,t,i)},o.Wh=function(e){switch(e){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!St(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new q(Ye,this,10,11)),this.a.i>0}return rY(this,e)},o.bi=function(e,t){switch(e){case 9:!this.c&&(this.c=new q(Qu,this,9,9)),me(this.c),!this.c&&(this.c=new q(Qu,this,9,9)),Kt(this.c,u(t,16));return;case 10:!this.a&&(this.a=new q(Ye,this,10,11)),me(this.a),!this.a&&(this.a=new q(Ye,this,10,11)),Kt(this.a,u(t,16));return;case 11:PS(this,u(t,27));return;case 12:!this.b&&(this.b=new q(Vt,this,12,3)),me(this.b),!this.b&&(this.b=new q(Vt,this,12,3)),Kt(this.b,u(t,16));return}Xnn(this,e,t)},o.ii=function(){return Mc(),Odn},o.ki=function(e){switch(e){case 9:!this.c&&(this.c=new q(Qu,this,9,9)),me(this.c);return;case 10:!this.a&&(this.a=new q(Ye,this,10,11)),me(this.a);return;case 11:PS(this,null);return;case 12:!this.b&&(this.b=new q(Vt,this,12,3)),me(this.b);return}sZ(this,e)},o.Ib=function(){return jen(this)},w(Td,"ElkNodeImpl",207),b(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},nz),o.Ah=function(e){return SZ(this,e)},o.Lh=function(e,t,i){return e==9?Pf(this):dZ(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 9:return this.Cb&&(i=(r=this.Db>>16,r>=0?SZ(this,i):this.Cb.Th(this,-1-r,null,i))),lV(this,u(e,27),i)}return NZ(this,e,t,i)},o.Uh=function(e,t,i){return t==9?lV(this,null,i):DZ(this,e,t,i)},o.Wh=function(e){return e==9?!!Pf(this):rY(this,e)},o.bi=function(e,t){switch(e){case 9:ten(this,u(t,27));return}Xnn(this,e,t)},o.ii=function(){return Mc(),Adn},o.ki=function(e){switch(e){case 9:ten(this,null);return}sZ(this,e)},o.Ib=function(){return Yqn(this)},w(Td,"ElkPortImpl",193);var Poe=Dt(or,"BasicEMap/Entry");b(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},hvn),o.Fb=function(e){return this===e},o.ld=function(){return this.b},o.Hb=function(){return lb(this)},o.Di=function(e){CQ(this,u(e,149))},o.Lh=function(e,t,i){switch(e){case 0:return this.b;case 1:return this.c}return tS(this,e,t,i)},o.Wh=function(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return Mx(this,e)},o.bi=function(e,t){switch(e){case 0:CQ(this,u(t,149));return;case 1:MQ(this,t);return}sR(this,e,t)},o.ii=function(){return Mc(),il},o.ki=function(e){switch(e){case 0:CQ(this,null);return;case 1:MQ(this,null);return}cR(this,e)},o.Bi=function(){var e;return this.a==-1&&(e=this.b,this.a=e?mt(e):0),this.a},o.md=function(){return this.c},o.Ci=function(e){this.a=e},o.nd=function(e){var t;return t=this.c,MQ(this,e),t},o.Ib=function(){var e;return this.Db&64?Hs(this):(e=new x1,Be(Be(Be(e,this.b?this.b.Pg():gu),iB),A6(this.c)),e.a)},o.a=-1,o.c=null;var C1=w(Td,"ElkPropertyToValueMapEntryImpl",1122);b(996,1,{},dvn),w(Ui,"JsonAdapter",996),b(216,63,Il,eh),w(Ui,"JsonImportException",216),b(868,1,{},sFn),w(Ui,"JsonImporter",868),b(903,1,{},wTn),w(Ui,"JsonImporter/lambda$0$Type",903),b(904,1,{},gTn),w(Ui,"JsonImporter/lambda$1$Type",904),b(912,1,{},Bkn),w(Ui,"JsonImporter/lambda$10$Type",912),b(914,1,{},pTn),w(Ui,"JsonImporter/lambda$11$Type",914),b(915,1,{},mTn),w(Ui,"JsonImporter/lambda$12$Type",915),b(921,1,{},OOn),w(Ui,"JsonImporter/lambda$13$Type",921),b(920,1,{},AOn),w(Ui,"JsonImporter/lambda$14$Type",920),b(916,1,{},vTn),w(Ui,"JsonImporter/lambda$15$Type",916),b(917,1,{},kTn),w(Ui,"JsonImporter/lambda$16$Type",917),b(918,1,{},yTn),w(Ui,"JsonImporter/lambda$17$Type",918),b(919,1,{},jTn),w(Ui,"JsonImporter/lambda$18$Type",919),b(924,1,{},Fkn),w(Ui,"JsonImporter/lambda$19$Type",924),b(905,1,{},_kn),w(Ui,"JsonImporter/lambda$2$Type",905),b(922,1,{},Hkn),w(Ui,"JsonImporter/lambda$20$Type",922),b(923,1,{},qkn),w(Ui,"JsonImporter/lambda$21$Type",923),b(927,1,{},Ukn),w(Ui,"JsonImporter/lambda$22$Type",927),b(925,1,{},Gkn),w(Ui,"JsonImporter/lambda$23$Type",925),b(926,1,{},zkn),w(Ui,"JsonImporter/lambda$24$Type",926),b(929,1,{},Xkn),w(Ui,"JsonImporter/lambda$25$Type",929),b(928,1,{},Vkn),w(Ui,"JsonImporter/lambda$26$Type",928),b(930,1,re,ETn),o.Cd=function(e){A4e(this.b,this.a,Ae(e))},w(Ui,"JsonImporter/lambda$27$Type",930),b(931,1,re,MTn),o.Cd=function(e){L4e(this.b,this.a,Ae(e))},w(Ui,"JsonImporter/lambda$28$Type",931),b(932,1,{},TTn),w(Ui,"JsonImporter/lambda$29$Type",932),b(908,1,{},Wkn),w(Ui,"JsonImporter/lambda$3$Type",908),b(933,1,{},CTn),w(Ui,"JsonImporter/lambda$30$Type",933),b(934,1,{},Jkn),w(Ui,"JsonImporter/lambda$31$Type",934),b(935,1,{},Qkn),w(Ui,"JsonImporter/lambda$32$Type",935),b(936,1,{},Ykn),w(Ui,"JsonImporter/lambda$33$Type",936),b(937,1,{},Zkn),w(Ui,"JsonImporter/lambda$34$Type",937),b(870,1,{},nyn),w(Ui,"JsonImporter/lambda$35$Type",870),b(941,1,{},kPn),w(Ui,"JsonImporter/lambda$36$Type",941),b(938,1,re,eyn),o.Cd=function(e){R3e(this.a,u(e,377))},w(Ui,"JsonImporter/lambda$37$Type",938),b(939,1,re,STn),o.Cd=function(e){mle(this.a,this.b,u(e,166))},w(Ui,"JsonImporter/lambda$38$Type",939),b(940,1,re,PTn),o.Cd=function(e){vle(this.a,this.b,u(e,166))},w(Ui,"JsonImporter/lambda$39$Type",940),b(906,1,{},tyn),w(Ui,"JsonImporter/lambda$4$Type",906),b(942,1,re,iyn),o.Cd=function(e){K3e(this.a,u(e,8))},w(Ui,"JsonImporter/lambda$40$Type",942),b(907,1,{},ryn),w(Ui,"JsonImporter/lambda$5$Type",907),b(911,1,{},cyn),w(Ui,"JsonImporter/lambda$6$Type",911),b(909,1,{},uyn),w(Ui,"JsonImporter/lambda$7$Type",909),b(910,1,{},oyn),w(Ui,"JsonImporter/lambda$8$Type",910),b(913,1,{},syn),w(Ui,"JsonImporter/lambda$9$Type",913),b(961,1,re,fyn),o.Cd=function(e){Op(this.a,new q0(Ae(e)))},w(Ui,"JsonMetaDataConverter/lambda$0$Type",961),b(962,1,re,hyn),o.Cd=function(e){Iwe(this.a,u(e,245))},w(Ui,"JsonMetaDataConverter/lambda$1$Type",962),b(963,1,re,lyn),o.Cd=function(e){P2e(this.a,u(e,143))},w(Ui,"JsonMetaDataConverter/lambda$2$Type",963),b(964,1,re,ayn),o.Cd=function(e){Owe(this.a,u(e,170))},w(Ui,"JsonMetaDataConverter/lambda$3$Type",964),b(245,22,{3:1,34:1,22:1,245:1},gp);var wA,gA,pU,pA,mA,vA,mU,vU,kA=we(Ly,"GraphFeature",245,ke,dme,t0e),Ioe;b(11,1,{34:1,149:1},lt,Lt,Tn,Di),o.Fd=function(e){return M1e(this,u(e,149))},o.Fb=function(e){return nAn(this,e)},o.Sg=function(){return rn(this)},o.Pg=function(){return this.b},o.Hb=function(){return t1(this.b)},o.Ib=function(){return this.b},w(Ly,"Property",11),b(671,1,De,tL),o.Ne=function(e,t){return D5e(this,u(e,96),u(t,96))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ly,"PropertyHolderComparator",671),b(709,1,Pi,$G),o.Nb=function(e){_i(this,e)},o.Pb=function(){return $4e(this)},o.Qb=function(){sEn()},o.Ob=function(){return!!this.a},w(_P,"ElkGraphUtil/AncestorIterator",709);var Ndn=Dt(or,"EList");b(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),o.bd=function(e,t){v5(this,e,t)},o.Fc=function(e){return ve(this,e)},o.cd=function(e,t){return WQ(this,e,t)},o.Gc=function(e){return Kt(this,e)},o.Ii=function(){return new yp(this)},o.Ji=function(){return new T7(this)},o.Ki=function(e){return pk(this,e)},o.Li=function(){return!0},o.Mi=function(e,t){},o.Ni=function(){},o.Oi=function(e,t){t$(this,e,t)},o.Pi=function(e,t,i){},o.Qi=function(e,t){},o.Ri=function(e,t,i){},o.Fb=function(e){return xqn(this,e)},o.Hb=function(){return GQ(this)},o.Si=function(){return!1},o.Kc=function(){return new ne(this)},o.ed=function(){return new kp(this)},o.fd=function(e){var t;if(t=this.gc(),e<0||e>t)throw T(new F0(e,t));return new oD(this,e)},o.Ui=function(e,t){this.Ti(e,this.dd(t))},o.Mc=function(e){return rC(this,e)},o.Wi=function(e,t){return t},o.hd=function(e,t){return Bg(this,e,t)},o.Ib=function(){return BY(this)},o.Yi=function(){return!0},o.Zi=function(e,t){return rm(this,t)},w(or,"AbstractEList",70),b(66,70,Mh,EE,Pb,BQ),o.Ei=function(e,t){return Zx(this,e,t)},o.Fi=function(e){return NBn(this,e)},o.Gi=function(e,t){Lk(this,e,t)},o.Hi=function(e){ek(this,e)},o.$i=function(e){return ZJ(this,e)},o.$b=function(){e5(this)},o.Hc=function(e){return km(this,e)},o.Xb=function(e){return N(this,e)},o._i=function(e){var t,i,r;++this.j,i=this.g==null?0:this.g.length,e>i&&(r=this.g,t=i+(i/2|0)+4,t<e&&(t=e),this.g=this.aj(t),r!=null&&Oc(r,0,this.g,0,this.i))},o.dd=function(e){return eFn(this,e)},o.dc=function(){return this.i==0},o.Ti=function(e,t){return lR(this,e,t)},o.aj=function(e){return F(ki,Kn,1,e,5,1)},o.Vi=function(e){return this.g[e]},o.gd=function(e){return Jp(this,e)},o.Xi=function(e,t){return d$(this,e,t)},o.gc=function(){return this.i},o.Pc=function(){return yJ(this)},o.Qc=function(e){return VY(this,e)},o.i=0;var Ddn=w(or,"BasicEList",66),$dn=Dt(or,"TreeIterator");b(708,66,yF),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.g==null&&!this.c?rJ(this):this.g==null||this.i!=0&&u(this.g[this.i-1],51).Ob()},o.Pb=function(){return MS(this)},o.Qb=function(){if(!this.e)throw T(new Ar("There is no valid object to remove."));this.e.Qb()},o.c=!1,w(or,"AbstractTreeIterator",708),b(700,708,yF,CX),o.bj=function(e){var t;return t=u(e,58).Gh().Kc(),L(t,287)&&u(t,287).wl(new bvn),t},w(_P,"ElkGraphUtil/PropertiesSkippingTreeIterator",700),b(965,1,{},bvn),w(_P,"ElkGraphUtil/PropertiesSkippingTreeIterator/1",965);var hE,kU,lE=w(_P,"ElkReflect",null);b(901,1,Tw,wvn),o.Rg=function(e){return $T(),O2e(u(e,181))},w(_P,"ElkReflect/lambda$0$Type",901);var La;Dt(or,"ResourceLocator"),b(1065,1,{}),w(or,"DelegatingResourceLocator",1065),b(1066,1065,{}),w("org.eclipse.emf.common","EMFPlugin",1066);var yU=Dt(QWn,"Adapter"),ADe=Dt(QWn,"Notification");b(1174,1,_cn),o.cj=function(){return this.d},o.dj=function(e){},o.ej=function(e){this.d=e},o.fj=function(e){this.d==e&&(this.d=null)},o.d=null,w(g3,"AdapterImpl",1174),b(2093,70,YWn),o.Ei=function(e,t){return qY(this,e,t)},o.Fi=function(e){var t,i,r;if(++this.j,e.dc())return!1;for(t=this.Ej(),r=e.Kc();r.Ob();)i=r.Pb(),this.rj(this.Zi(t,i)),++t;return!0},o.Gi=function(e,t){OSn(this,e,t)},o.Hi=function(e){eOn(this,e)},o.pj=function(){return this.sj()},o.$b=function(){P7(this,this.Ej(),this.Fj())},o.Hc=function(e){return this.uj(e)},o.Ic=function(e){return this.vj(e)},o.qj=function(e,t){this.Bj().Um()},o.rj=function(e){this.Bj().Um()},o.sj=function(){return this.Bj()},o.tj=function(){this.Bj().Um()},o.uj=function(e){return this.Bj().Um()},o.vj=function(e){return this.Bj().Um()},o.wj=function(e){return this.Bj().Um()},o.xj=function(e){return this.Bj().Um()},o.yj=function(){return this.Bj().Um()},o.zj=function(e){return this.Bj().Um()},o.Aj=function(){return this.Bj().Um()},o.Cj=function(e){return this.Bj().Um()},o.Dj=function(e,t){return this.Bj().Um()},o.Ej=function(){return this.Bj().Um()},o.Fj=function(){return this.Bj().Um()},o.Gj=function(e){return this.Bj().Um()},o.Hj=function(){return this.Bj().Um()},o.Fb=function(e){return this.wj(e)},o.Xb=function(e){return this.Wi(e,this.xj(e))},o.Hb=function(){return this.yj()},o.dd=function(e){return this.zj(e)},o.dc=function(){return this.Aj()},o.Ti=function(e,t){return unn(this,e,t)},o.Vi=function(e){return this.xj(e)},o.gd=function(e){return tT(this,e)},o.Mc=function(e){var t;return t=this.dd(e),t>=0?(this.gd(t),!0):!1},o.Xi=function(e,t){return this.Dj(e,this.Zi(e,t))},o.gc=function(){return this.Ej()},o.Pc=function(){return this.Fj()},o.Qc=function(e){return this.Gj(e)},o.Ib=function(){return this.Hj()},w(or,"DelegatingEList",2093),b(2094,2093,YWn),o.Ei=function(e,t){return Den(this,e,t)},o.Fi=function(e){return this.Ei(this.Ej(),e)},o.Gi=function(e,t){EHn(this,e,t)},o.Hi=function(e){lHn(this,e)},o.Li=function(){return!this.Mj()},o.$b=function(){X5(this)},o.Ij=function(e,t,i,r,c){return new ZOn(this,e,t,i,r,c)},o.Jj=function(e){it(this.jj(),e)},o.Kj=function(){return null},o.Lj=function(){return-1},o.jj=function(){return null},o.Mj=function(){return!1},o.Nj=function(e,t){return t},o.Oj=function(e,t){return t},o.Pj=function(){return!1},o.Qj=function(){return!this.Aj()},o.Ti=function(e,t){var i,r;return this.Pj()?(r=this.Qj(),i=unn(this,e,t),this.Jj(this.Ij(7,Y(t),i,e,r)),i):unn(this,e,t)},o.gd=function(e){var t,i,r,c;return this.Pj()?(i=null,r=this.Qj(),t=this.Ij(4,c=tT(this,e),null,e,r),this.Mj()&&c?(i=this.Oj(c,i),i?(i.nj(t),i.oj()):this.Jj(t)):i?(i.nj(t),i.oj()):this.Jj(t),c):(c=tT(this,e),this.Mj()&&c&&(i=this.Oj(c,null),i&&i.oj()),c)},o.Xi=function(e,t){return OUn(this,e,t)},w(g3,"DelegatingNotifyingListImpl",2094),b(152,1,Wy),o.nj=function(e){return GZ(this,e)},o.oj=function(){h$(this)},o.gj=function(){return this.d},o.Kj=function(){return null},o.Rj=function(){return null},o.hj=function(e){return-1},o.ij=function(){return pqn(this)},o.jj=function(){return null},o.kj=function(){return len(this)},o.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},o.Sj=function(){return!1},o.mj=function(e){var t,i,r,c,s,f,h,l,a,d,g;switch(this.d){case 1:case 2:switch(c=e.gj(),c){case 1:case 2:if(s=e.jj(),x(s)===x(this.jj())&&this.hj(null)==e.hj(null))return this.g=e.ij(),e.gj()==1&&(this.d=1),!0}case 4:{switch(c=e.gj(),c){case 4:{if(s=e.jj(),x(s)===x(this.jj())&&this.hj(null)==e.hj(null))return a=Qen(this),l=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,f=e.lj(),this.d=6,g=new Pb(2),l<=f?(ve(g,this.n),ve(g,e.kj()),this.g=S(C(ye,1),_e,28,15,[this.o=l,f+1])):(ve(g,e.kj()),ve(g,this.n),this.g=S(C(ye,1),_e,28,15,[this.o=f,l])),this.n=g,a||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(c=e.gj(),c){case 4:{if(s=e.jj(),x(s)===x(this.jj())&&this.hj(null)==e.hj(null)){for(a=Qen(this),f=e.lj(),d=u(this.g,53),r=F(ye,_e,28,d.length+1,15,1),t=0;t<d.length&&(h=d[t],h<=f);)r[t++]=h,++f;for(i=u(this.n,15),i.bd(t,e.kj()),r[t]=f;++t<r.length;)r[t]=d[t-1];return this.g=r,a||(this.o=-2-r[0]),!0}break}}break}}return!1},o.Ib=function(){var e,t,i,r;switch(r=new ls(Xa(this.Rm)+"@"+(t=mt(this)>>>0,t.toString(16))),r.a+=" (eventType: ",this.d){case 1:{r.a+="SET";break}case 2:{r.a+="UNSET";break}case 3:{r.a+="ADD";break}case 5:{r.a+="ADD_MANY";break}case 4:{r.a+="REMOVE";break}case 6:{r.a+="REMOVE_MANY";break}case 7:{r.a+="MOVE";break}case 8:{r.a+="REMOVING_ADAPTER";break}case 9:{r.a+="RESOLVE";break}default:{CL(r,this.d);break}}if(rUn(this)&&(r.a+=", touch: true"),r.a+=", position: ",CL(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=", notifier: ",T6(r,this.jj()),r.a+=", feature: ",T6(r,this.Kj()),r.a+=", oldValue: ",T6(r,len(this)),r.a+=", newValue: ",this.d==6&&L(this.g,53)){for(i=u(this.g,53),r.a+="[",e=0;e<i.length;)r.a+=i[e],++e<i.length&&(r.a+=ur);r.a+="]"}else T6(r,pqn(this));return r.a+=", isTouch: ",ql(r,rUn(this)),r.a+=", wasSet: ",ql(r,Qen(this)),r.a+=")",r.a},o.d=0,o.e=0,o.f=0,o.j=0,o.k=0,o.o=0,o.p=0,w(g3,"NotificationImpl",152),b(1188,152,Wy,ZOn),o.Kj=function(){return this.a.Kj()},o.hj=function(e){return this.a.Lj()},o.jj=function(){return this.a.jj()},w(g3,"DelegatingNotifyingListImpl/1",1188),b(251,66,Mh,gvn,R1),o.Fc=function(e){return CKn(this,u(e,378))},o.nj=function(e){return CKn(this,e)},o.oj=function(){var e,t,i;for(e=0;e<this.i;++e)t=u(this.g[e],378),i=t.jj(),i!=null&&t.gj()!=-1&&u(i,94).xh(t)},o.aj=function(e){return F(ADe,Kn,378,e,0,1)},w(g3,"NotificationChainImpl",251),b(1524,93,hWn),o.uh=function(){return this.e},o.wh=function(){return(this.f&1)!=0},o.f=1,w(g3,"NotifierImpl",1524),b(2091,66,Mh),o.Ei=function(e,t){return LR(this,e,t)},o.Fi=function(e){return this.Ei(this.i,e)},o.Gi=function(e,t){Knn(this,e,t)},o.Hi=function(e){aR(this,e)},o.Li=function(){return!this.Mj()},o.$b=function(){me(this)},o.Ij=function(e,t,i,r,c){return new YOn(this,e,t,i,r,c)},o.Jj=function(e){it(this.jj(),e)},o.Kj=function(){return null},o.Lj=function(){return-1},o.jj=function(){return null},o.Mj=function(){return!1},o.Tj=function(){return!1},o.Nj=function(e,t){return t},o.Oj=function(e,t){return t},o.Pj=function(){return!1},o.Qj=function(){return this.i!=0},o.Ti=function(e,t){return k5(this,e,t)},o.gd=function(e){return dw(this,e)},o.Xi=function(e,t){return XUn(this,e,t)},o.Uj=function(e,t){return t},o.Vj=function(e,t){return t},o.Wj=function(e,t,i){return i},w(g3,"NotifyingListImpl",2091),b(1187,152,Wy,YOn),o.Kj=function(){return this.a.Kj()},o.hj=function(e){return this.a.Lj()},o.jj=function(){return this.a.jj()},w(g3,"NotifyingListImpl/1",1187),b(966,66,Mh,NSn),o.Hc=function(e){return this.i>10?((!this.b||this.c.j!=this.a)&&(this.b=new R6(this),this.a=this.j),sf(this.b,e)):km(this,e)},o.Yi=function(){return!0},o.a=0,w(or,"AbstractEList/1",966),b(302,77,SK,F0),w(or,"AbstractEList/BasicIndexOutOfBoundsException",302),b(37,1,Pi,ne),o.Nb=function(e){_i(this,e)},o.Xj=function(){if(this.i.j!=this.f)throw T(new Ko)},o.Yj=function(){return ue(this)},o.Ob=function(){return this.e!=this.i.gc()},o.Pb=function(){return this.Yj()},o.Qb=function(){A5(this)},o.e=0,o.f=0,o.g=-1,w(or,"AbstractEList/EIterator",37),b(286,37,Hh,kp,oD),o.Qb=function(){A5(this)},o.Rb=function(e){AKn(this,e)},o.Zj=function(){var e;try{return e=this.d.Xb(--this.e),this.Xj(),this.g=this.e,e}catch(t){throw t=Ot(t),L(t,77)?(this.Xj(),T(new nc)):T(t)}},o.$j=function(e){xBn(this,e)},o.Sb=function(){return this.e!=0},o.Tb=function(){return this.e},o.Ub=function(){return this.Zj()},o.Vb=function(){return this.e-1},o.Wb=function(e){this.$j(e)},w(or,"AbstractEList/EListIterator",286),b(355,37,Pi,yp),o.Yj=function(){return Tx(this)},o.Qb=function(){throw T(new Ie)},w(or,"AbstractEList/NonResolvingEIterator",355),b(398,286,Hh,T7,SV),o.Rb=function(e){throw T(new Ie)},o.Yj=function(){var e;try{return e=this.c.Vi(this.e),this.Xj(),this.g=this.e++,e}catch(t){throw t=Ot(t),L(t,77)?(this.Xj(),T(new nc)):T(t)}},o.Zj=function(){var e;try{return e=this.c.Vi(--this.e),this.Xj(),this.g=this.e,e}catch(t){throw t=Ot(t),L(t,77)?(this.Xj(),T(new nc)):T(t)}},o.Qb=function(){throw T(new Ie)},o.Wb=function(e){throw T(new Ie)},w(or,"AbstractEList/NonResolvingEListIterator",398),b(2080,70,ZWn),o.Ei=function(e,t){var i,r,c,s,f,h,l,a,d,g,p;if(c=t.gc(),c!=0){for(a=u(Un(this.a,4),129),d=a==null?0:a.length,p=d+c,r=V$(this,p),g=d-e,g>0&&Oc(a,e,r,e+c,g),l=t.Kc(),f=0;f<c;++f)h=l.Pb(),i=e+f,mN(r,i,rm(this,h));for(gm(this,r),s=0;s<c;++s)h=r[e],this.Mi(e,h),++e;return!0}else return++this.j,!1},o.Fi=function(e){var t,i,r,c,s,f,h,l,a;if(r=e.gc(),r!=0){for(l=(i=u(Un(this.a,4),129),i==null?0:i.length),a=l+r,t=V$(this,a),h=e.Kc(),s=l;s<a;++s)f=h.Pb(),mN(t,s,rm(this,f));for(gm(this,t),c=l;c<a;++c)f=t[c],this.Mi(c,f);return!0}else return++this.j,!1},o.Gi=function(e,t){var i,r,c,s;r=u(Un(this.a,4),129),c=r==null?0:r.length,i=V$(this,c+1),s=rm(this,t),e!=c&&Oc(r,e,i,e+1,c-e),$t(i,e,s),gm(this,i),this.Mi(e,t)},o.Hi=function(e){var t,i,r;r=(i=u(Un(this.a,4),129),i==null?0:i.length),t=V$(this,r+1),mN(t,r,rm(this,e)),gm(this,t),this.Mi(r,e)},o.Ii=function(){return new ENn(this)},o.Ji=function(){return new $In(this)},o.Ki=function(e){var t,i;if(i=(t=u(Un(this.a,4),129),t==null?0:t.length),e<0||e>i)throw T(new F0(e,i));return new yOn(this,e)},o.$b=function(){var e,t;++this.j,e=u(Un(this.a,4),129),t=e==null?0:e.length,gm(this,null),t$(this,t,e)},o.Hc=function(e){var t,i,r,c,s;if(t=u(Un(this.a,4),129),t!=null){if(e!=null){for(r=t,c=0,s=r.length;c<s;++c)if(i=r[c],rt(e,i))return!0}else for(r=t,c=0,s=r.length;c<s;++c)if(i=r[c],x(i)===x(e))return!0}return!1},o.Xb=function(e){var t,i;if(t=u(Un(this.a,4),129),i=t==null?0:t.length,e>=i)throw T(new F0(e,i));return t[e]},o.dd=function(e){var t,i,r;if(t=u(Un(this.a,4),129),t!=null){if(e!=null){for(i=0,r=t.length;i<r;++i)if(rt(e,t[i]))return i}else for(i=0,r=t.length;i<r;++i)if(x(t[i])===x(e))return i}return-1},o.dc=function(){return u(Un(this.a,4),129)==null},o.Kc=function(){return new jNn(this)},o.ed=function(){return new DIn(this)},o.fd=function(e){var t,i;if(i=(t=u(Un(this.a,4),129),t==null?0:t.length),e<0||e>i)throw T(new F0(e,i));return new kOn(this,e)},o.Ti=function(e,t){var i,r,c;if(i=_Kn(this),c=i==null?0:i.length,e>=c)throw T(new Or(vF+e+Cd+c));if(t>=c)throw T(new Or(kF+t+Cd+c));return r=i[t],e!=t&&(e<t?Oc(i,e,i,e+1,t-e):Oc(i,t+1,i,t,e-t),$t(i,e,r),gm(this,i)),r},o.Vi=function(e){return u(Un(this.a,4),129)[e]},o.gd=function(e){return bMe(this,e)},o.Xi=function(e,t){var i,r;return i=_Kn(this),r=i[e],mN(i,e,rm(this,t)),gm(this,i),r},o.gc=function(){var e;return e=u(Un(this.a,4),129),e==null?0:e.length},o.Pc=function(){var e,t,i;return e=u(Un(this.a,4),129),i=e==null?0:e.length,t=F(yU,TF,424,i,0,1),i>0&&Oc(e,0,t,0,i),t},o.Qc=function(e){var t,i,r;return t=u(Un(this.a,4),129),r=t==null?0:t.length,r>0&&(e.length<r&&(i=gk(wo(e).c,r),e=i),Oc(t,0,e,0,r)),e.length>r&&$t(e,r,null),e};var Ooe;w(or,"ArrayDelegatingEList",2080),b(1051,37,Pi,jNn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw T(new Ko)},o.Qb=function(){A5(this),this.a=u(Un(this.b.a,4),129)},w(or,"ArrayDelegatingEList/EIterator",1051),b(722,286,Hh,DIn,kOn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw T(new Ko)},o.$j=function(e){xBn(this,e),this.a=u(Un(this.b.a,4),129)},o.Qb=function(){A5(this),this.a=u(Un(this.b.a,4),129)},w(or,"ArrayDelegatingEList/EListIterator",722),b(1052,355,Pi,ENn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw T(new Ko)},w(or,"ArrayDelegatingEList/NonResolvingEIterator",1052),b(723,398,Hh,$In,yOn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw T(new Ko)},w(or,"ArrayDelegatingEList/NonResolvingEListIterator",723),b(615,302,SK,aN),w(or,"BasicEList/BasicIndexOutOfBoundsException",615),b(710,66,Mh,wX),o.bd=function(e,t){throw T(new Ie)},o.Fc=function(e){throw T(new Ie)},o.cd=function(e,t){throw T(new Ie)},o.Gc=function(e){throw T(new Ie)},o.$b=function(){throw T(new Ie)},o._i=function(e){throw T(new Ie)},o.Kc=function(){return this.Ii()},o.ed=function(){return this.Ji()},o.fd=function(e){return this.Ki(e)},o.Ti=function(e,t){throw T(new Ie)},o.Ui=function(e,t){throw T(new Ie)},o.gd=function(e){throw T(new Ie)},o.Mc=function(e){throw T(new Ie)},o.hd=function(e,t){throw T(new Ie)},w(or,"BasicEList/UnmodifiableEList",710),b(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),o.bd=function(e,t){a1e(this,e,u(t,44))},o.Fc=function(e){return cae(this,u(e,44))},o.Jc=function(e){qi(this,e)},o.Xb=function(e){return u(N(this.c,e),136)},o.Ti=function(e,t){return u(this.c.Ti(e,t),44)},o.Ui=function(e,t){d1e(this,e,u(t,44))},o.Lc=function(){return new Cn(null,new On(this,16))},o.gd=function(e){return u(this.c.gd(e),44)},o.hd=function(e,t){return Pwe(this,e,u(t,44))},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.Oc=function(){return new Cn(null,new On(this,16))},o.cd=function(e,t){return this.c.cd(e,t)},o.Gc=function(e){return this.c.Gc(e)},o.$b=function(){this.c.$b()},o.Hc=function(e){return this.c.Hc(e)},o.Ic=function(e){return Ek(this.c,e)},o._j=function(){var e,t,i;if(this.d==null){for(this.d=F(Ddn,Hcn,66,2*this.f+1,0,1),i=this.e,this.f=0,t=this.c.Kc();t.e!=t.i.gc();)e=u(t.Yj(),136),uS(this,e);this.e=i}},o.Fb=function(e){return sPn(this,e)},o.Hb=function(){return GQ(this.c)},o.dd=function(e){return this.c.dd(e)},o.ak=function(){this.c=new dyn(this)},o.dc=function(){return this.f==0},o.Kc=function(){return this.c.Kc()},o.ed=function(){return this.c.ed()},o.fd=function(e){return this.c.fd(e)},o.bk=function(){return rk(this)},o.ck=function(e,t,i){return new yPn(e,t,i)},o.dk=function(){return new pvn},o.Mc=function(e){return V$n(this,e)},o.gc=function(){return this.f},o.kd=function(e,t){return new Jl(this.c,e,t)},o.Pc=function(){return this.c.Pc()},o.Qc=function(e){return this.c.Qc(e)},o.Ib=function(){return BY(this.c)},o.e=0,o.f=0,w(or,"BasicEMap",721),b(1046,66,Mh,dyn),o.Mi=function(e,t){Ufe(this,u(t,136))},o.Pi=function(e,t,i){var r;++(r=this,u(t,136),r).a.e},o.Qi=function(e,t){Gfe(this,u(t,136))},o.Ri=function(e,t,i){U1e(this,u(t,136),u(i,136))},o.Oi=function(e,t){_xn(this.a)},w(or,"BasicEMap/1",1046),b(1047,66,Mh,pvn),o.aj=function(e){return F(LDe,nJn,621,e,0,1)},w(or,"BasicEMap/2",1047),b(1048,Ff,Nu,byn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){return wx(this.a,e)},o.Kc=function(){return this.a.f==0?(m4(),aE.a):new Jjn(this.a)},o.Mc=function(e){var t;return t=this.a.f,VC(this.a,e),this.a.f!=t},o.gc=function(){return this.a.f},w(or,"BasicEMap/3",1048),b(1049,31,pw,wyn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){return Rqn(this.a,e)},o.Kc=function(){return this.a.f==0?(m4(),aE.a):new Qjn(this.a)},o.gc=function(){return this.a.f},w(or,"BasicEMap/4",1049),b(1050,Ff,Nu,gyn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){var t,i,r,c,s,f,h,l,a;if(this.a.f>0&&L(e,44)&&(this.a._j(),l=u(e,44),h=l.ld(),c=h==null?0:mt(h),s=aV(this.a,c),t=this.a.d[s],t)){for(i=u(t.g,379),a=t.i,f=0;f<a;++f)if(r=i[f],r.Bi()==c&&r.Fb(l))return!0}return!1},o.Kc=function(){return this.a.f==0?(m4(),aE.a):new MD(this.a)},o.Mc=function(e){return PHn(this,e)},o.gc=function(){return this.a.f},w(or,"BasicEMap/5",1050),b(622,1,Pi,MD),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.b!=-1},o.Pb=function(){var e;if(this.f.e!=this.c)throw T(new Ko);if(this.b==-1)throw T(new nc);return this.d=this.a,this.e=this.b,bFn(this),e=u(this.f.d[this.d].g[this.e],136),this.ek(e)},o.Qb=function(){if(this.f.e!=this.c)throw T(new Ko);if(this.e==-1)throw T(new Mu);this.f.c.Mc(N(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&this.b!=-1&&--this.b},o.ek=function(e){return e},o.a=0,o.b=-1,o.c=0,o.d=0,o.e=0,w(or,"BasicEMap/BasicEMapIterator",622),b(1044,622,Pi,Jjn),o.ek=function(e){return e.ld()},w(or,"BasicEMap/BasicEMapKeyIterator",1044),b(1045,622,Pi,Qjn),o.ek=function(e){return e.md()},w(or,"BasicEMap/BasicEMapValueIterator",1045),b(1043,1,Xb,pyn),o.wc=function(e){f5(this,e)},o.yc=function(e,t,i){return hx(this,e,t,i)},o.$b=function(){this.a.c.$b()},o._b=function(e){return OTn(this,e)},o.uc=function(e){return Rqn(this.a,e)},o.vc=function(){return d4e(this.a)},o.Fb=function(e){return sPn(this.a,e)},o.xc=function(e){return gf(this.a,e)},o.Hb=function(){return GQ(this.a.c)},o.dc=function(){return this.a.f==0},o.ec=function(){return l4e(this.a)},o.zc=function(e,t){return zk(this.a,e,t)},o.Bc=function(e){return VC(this.a,e)},o.gc=function(){return this.a.f},o.Ib=function(){return BY(this.a.c)},o.Cc=function(){return a4e(this.a)},w(or,"BasicEMap/DelegatingMap",1043),b(621,1,{44:1,136:1,621:1},yPn),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),(this.b!=null?rt(this.b,t.ld()):x(this.b)===x(t.ld()))&&(this.c!=null?rt(this.c,t.md()):x(this.c)===x(t.md()))):!1},o.Bi=function(){return this.a},o.ld=function(){return this.b},o.md=function(){return this.c},o.Hb=function(){return this.a^(this.c==null?0:mt(this.c))},o.Ci=function(e){this.a=e},o.Di=function(e){throw T(new Ga)},o.nd=function(e){var t;return t=this.c,this.c=e,t},o.Ib=function(){return this.b+"->"+this.c},o.a=0;var LDe=w(or,"BasicEMap/EntryImpl",621);b(546,1,{},ME),w(or,"BasicEMap/View",546);var aE;b(783,1,{}),o.Fb=function(e){return Vnn((Ln(),sr),e)},o.Hb=function(){return iY((Ln(),sr))},o.Ib=function(){return ca((Ln(),sr))},w(or,"ECollections/BasicEmptyUnmodifiableEList",783),b(1348,1,Hh,mvn),o.Nb=function(e){_i(this,e)},o.Rb=function(e){throw T(new Ie)},o.Ob=function(){return!1},o.Sb=function(){return!1},o.Pb=function(){throw T(new nc)},o.Tb=function(){return 0},o.Ub=function(){throw T(new nc)},o.Vb=function(){return-1},o.Qb=function(){throw T(new Ie)},o.Wb=function(e){throw T(new Ie)},w(or,"ECollections/BasicEmptyUnmodifiableEList/1",1348),b(1346,783,{20:1,16:1,15:1,61:1},ujn),o.bd=function(e,t){yEn()},o.Fc=function(e){return jEn()},o.cd=function(e,t){return EEn()},o.Gc=function(e){return MEn()},o.$b=function(){TEn()},o.Hc=function(e){return!1},o.Ic=function(e){return!1},o.Jc=function(e){qi(this,e)},o.Xb=function(e){return mX((Ln(),e)),null},o.dd=function(e){return-1},o.dc=function(){return!0},o.Kc=function(){return this.a},o.ed=function(){return this.a},o.fd=function(e){return this.a},o.Ti=function(e,t){return CEn()},o.Ui=function(e,t){SEn()},o.Lc=function(){return new Cn(null,new On(this,16))},o.gd=function(e){return PEn()},o.Mc=function(e){return IEn()},o.hd=function(e,t){return OEn()},o.gc=function(){return 0},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.Oc=function(){return new Cn(null,new On(this,16))},o.kd=function(e,t){return Ln(),new Jl(sr,e,t)},o.Pc=function(){return wW((Ln(),sr))},o.Qc=function(e){return Ln(),S5(sr,e)},w(or,"ECollections/EmptyUnmodifiableEList",1346),b(1347,783,{20:1,16:1,15:1,61:1,597:1},ojn),o.bd=function(e,t){yEn()},o.Fc=function(e){return jEn()},o.cd=function(e,t){return EEn()},o.Gc=function(e){return MEn()},o.$b=function(){TEn()},o.Hc=function(e){return!1},o.Ic=function(e){return!1},o.Jc=function(e){qi(this,e)},o.Xb=function(e){return mX((Ln(),e)),null},o.dd=function(e){return-1},o.dc=function(){return!0},o.Kc=function(){return this.a},o.ed=function(){return this.a},o.fd=function(e){return this.a},o.Ti=function(e,t){return CEn()},o.Ui=function(e,t){SEn()},o.Lc=function(){return new Cn(null,new On(this,16))},o.gd=function(e){return PEn()},o.Mc=function(e){return IEn()},o.hd=function(e,t){return OEn()},o.gc=function(){return 0},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.Oc=function(){return new Cn(null,new On(this,16))},o.kd=function(e,t){return Ln(),new Jl(sr,e,t)},o.Pc=function(){return wW((Ln(),sr))},o.Qc=function(e){return Ln(),S5(sr,e)},o.bk=function(){return Ln(),Ln(),Wh},w(or,"ECollections/EmptyUnmodifiableEMap",1347);var xdn=Dt(or,"Enumerator"),yA;b(288,1,{288:1},jR),o.Fb=function(e){var t;return this===e?!0:L(e,288)?(t=u(e,288),this.f==t.f&&U0e(this.i,t.i)&&WN(this.a,this.f&256?t.f&256?t.a:null:t.f&256?null:t.a)&&WN(this.d,t.d)&&WN(this.g,t.g)&&WN(this.e,t.e)&&b9e(this,t)):!1},o.Hb=function(){return this.f},o.Ib=function(){return gUn(this)},o.f=0;var Aoe=0,Loe=0,Noe=0,Doe=0,Rdn=0,Kdn=0,Bdn=0,Fdn=0,_dn=0,$oe,L9=0,N9=0,xoe=0,Roe=0,jA,Hdn;w(or,"URI",288),b(1121,45,n2,sjn),o.zc=function(e,t){return u(Lr(this,Ae(e),u(t,288)),288)},w(or,"URI/URICache",1121),b(506,66,Mh,avn,sT),o.Si=function(){return!0},w(or,"UniqueEList",506),b(590,63,Il,eC),w(or,"WrappedException",590);var Ue=Dt(ts,iJn),Zw=Dt(ts,rJn),ku=Dt(ts,cJn),ng=Dt(ts,uJn),Mf=Dt(ts,oJn),Ss=Dt(ts,"EClass"),jU=Dt(ts,"EDataType"),Koe;b(1233,45,n2,fjn),o.xc=function(e){return Si(e)?Dc(this,e):Fr(wr(this.f,e))},w(ts,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233);var EA=Dt(ts,"EEnum"),Kl=Dt(ts,sJn),jr=Dt(ts,fJn),Ps=Dt(ts,hJn),Is,y0=Dt(ts,lJn),eg=Dt(ts,aJn);b(1042,1,{},lvn),o.Ib=function(){return"NIL"},w(ts,"EStructuralFeature/Internal/DynamicValueHolder/1",1042);var Boe;b(1041,45,n2,hjn),o.xc=function(e){return Si(e)?Dc(this,e):Fr(wr(this.f,e))},w(ts,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041);var fu=Dt(ts,dJn),B3=Dt(ts,"EValidator/PatternMatcher"),qdn,Udn,Hn,S1,tg,Na,Foe,_oe,Hoe,Da,P1,$a,j0,Zf,qoe,Uoe,Os,I1,Goe,O1,ig,U2,ar,zoe,Xoe,E0,MA=Dt(Ct,"FeatureMap/Entry");b(545,1,{76:1},TM),o.Lk=function(){return this.a},o.md=function(){return this.b},w(qn,"BasicEObjectImpl/1",545),b(1040,1,CF,LTn),o.Fk=function(e){return YD(this.a,this.b,e)},o.Qj=function(){return bAn(this.a,this.b)},o.Wb=function(e){iJ(this.a,this.b,e)},o.Gk=function(){_we(this.a,this.b)},w(qn,"BasicEObjectImpl/4",1040),b(2081,1,{114:1}),o.Mk=function(e){this.e=e==0?Voe:F(ki,Kn,1,e,5,1)},o.li=function(e){return this.e[e]},o.mi=function(e,t){this.e[e]=t},o.ni=function(e){this.e[e]=null},o.Nk=function(){return this.c},o.Ok=function(){throw T(new Ie)},o.Pk=function(){throw T(new Ie)},o.Qk=function(){return this.d},o.Rk=function(){return this.e!=null},o.Sk=function(e){this.c=e},o.Tk=function(e){throw T(new Ie)},o.Uk=function(e){throw T(new Ie)},o.Vk=function(e){this.d=e};var Voe;w(qn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081),b(192,2081,{114:1},uf),o.Ok=function(){return this.a},o.Pk=function(){return this.b},o.Tk=function(e){this.a=e},o.Uk=function(e){this.b=e},w(qn,"BasicEObjectImpl/EPropertiesHolderImpl",192),b(516,99,bWn,TE),o.uh=function(){return this.f},o.zh=function(){return this.k},o.Bh=function(e,t){this.g=e,this.i=t},o.Dh=function(){return this.j&2?this.$h().Nk():this.ii()},o.Fh=function(){return this.i},o.wh=function(){return(this.j&1)!=0},o.Ph=function(){return this.g},o.Vh=function(){return(this.j&4)!=0},o.$h=function(){return!this.k&&(this.k=new uf),this.k},o.ci=function(e){this.$h().Sk(e),e?this.j|=2:this.j&=-3},o.ei=function(e){this.$h().Uk(e),e?this.j|=4:this.j&=-5},o.ii=function(){return(G1(),Hn).S},o.i=0,o.j=1,w(qn,"EObjectImpl",516),b(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},YV),o.li=function(e){return this.e[e]},o.mi=function(e,t){this.e[e]=t},o.ni=function(e){this.e[e]=null},o.Dh=function(){return this.d},o.Ih=function(e){return At(this.d,e)},o.Kh=function(){return this.d},o.Oh=function(){return this.e!=null},o.$h=function(){return!this.k&&(this.k=new vvn),this.k},o.ci=function(e){this.d=e},o.hi=function(){var e;return this.e==null&&(e=se(this.d),this.e=e==0?Woe:F(ki,Kn,1,e,5,1)),this},o.ji=function(){return 0};var Woe;w(qn,"DynamicEObjectImpl",798),b(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},zPn),o.Fb=function(e){return this===e},o.Hb=function(){return lb(this)},o.ci=function(e){this.d=e,this.b=oy(e,"key"),this.c=oy(e,g8)},o.Bi=function(){var e;return this.a==-1&&(e=l$(this,this.b),this.a=e==null?0:mt(e)),this.a},o.ld=function(){return l$(this,this.b)},o.md=function(){return l$(this,this.c)},o.Ci=function(e){this.a=e},o.Di=function(e){iJ(this,this.b,e)},o.nd=function(e){var t;return t=l$(this,this.c),iJ(this,this.c,e),t},o.a=0,w(qn,"DynamicEObjectImpl/BasicEMapEntry",1522),b(1523,1,{114:1},vvn),o.Mk=function(e){throw T(new Ie)},o.li=function(e){throw T(new Ie)},o.mi=function(e,t){throw T(new Ie)},o.ni=function(e){throw T(new Ie)},o.Nk=function(){throw T(new Ie)},o.Ok=function(){return this.a},o.Pk=function(){return this.b},o.Qk=function(){return this.c},o.Rk=function(){throw T(new Ie)},o.Sk=function(e){throw T(new Ie)},o.Tk=function(e){this.a=e},o.Uk=function(e){this.b=e},o.Vk=function(e){this.c=e},w(qn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523),b(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},eG),o.Ah=function(e){return PZ(this,e)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.d;case 2:return i?(!this.b&&(this.b=new lo((An(),ar),pc,this)),this.b):(!this.b&&(this.b=new lo((An(),ar),pc,this)),rk(this.b));case 3:return vAn(this);case 4:return!this.a&&(this.a=new ti(Aa,this,4)),this.a;case 5:return!this.c&&(this.c=new Eg(Aa,this,5)),this.c}return zo(this,e-se((An(),S1)),$n((r=u(Un(this,16),29),r||S1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 3:return this.Cb&&(i=(c=this.Db>>16,c>=0?PZ(this,i):this.Cb.Th(this,-1-c,null,i))),bW(this,u(e,155),i)}return s=u($n((r=u(Un(this,16),29),r||(An(),S1)),t),69),s.wk().zk(this,iu(this),t-se((An(),S1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 2:return!this.b&&(this.b=new lo((An(),ar),pc,this)),UM(this.b,e,i);case 3:return bW(this,null,i);case 4:return!this.a&&(this.a=new ti(Aa,this,4)),cr(this.a,e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),S1)),t),69),c.wk().Ak(this,iu(this),t-se((An(),S1)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!vAn(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return Uo(this,e-se((An(),S1)),$n((t=u(Un(this,16),29),t||S1),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:A0e(this,Ae(t));return;case 2:!this.b&&(this.b=new lo((An(),ar),pc,this)),CC(this.b,t);return;case 3:rqn(this,u(t,155));return;case 4:!this.a&&(this.a=new ti(Aa,this,4)),me(this.a),!this.a&&(this.a=new ti(Aa,this,4)),Kt(this.a,u(t,16));return;case 5:!this.c&&(this.c=new Eg(Aa,this,5)),me(this.c),!this.c&&(this.c=new Eg(Aa,this,5)),Kt(this.c,u(t,16));return}Jo(this,e-se((An(),S1)),$n((i=u(Un(this,16),29),i||S1),e),t)},o.ii=function(){return An(),S1},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:IQ(this,null);return;case 2:!this.b&&(this.b=new lo((An(),ar),pc,this)),this.b.c.$b();return;case 3:rqn(this,null);return;case 4:!this.a&&(this.a=new ti(Aa,this,4)),me(this.a);return;case 5:!this.c&&(this.c=new Eg(Aa,this,5)),me(this.c);return}Wo(this,e-se((An(),S1)),$n((t=u(Un(this,16),29),t||S1),e))},o.Ib=function(){return sKn(this)},o.d=null,w(qn,"EAnnotationImpl",519),b(141,721,qcn,Ou),o.Gi=function(e,t){Wle(this,e,u(t,44))},o.Wk=function(e,t){return Qae(this,u(e,44),t)},o.$i=function(e){return u(u(this.c,71).$i(e),136)},o.Ii=function(){return u(this.c,71).Ii()},o.Ji=function(){return u(this.c,71).Ji()},o.Ki=function(e){return u(this.c,71).Ki(e)},o.Xk=function(e,t){return UM(this,e,t)},o.Fk=function(e){return u(this.c,79).Fk(e)},o.ak=function(){},o.Qj=function(){return u(this.c,79).Qj()},o.ck=function(e,t,i){var r;return r=u(jo(this.b).wi().si(this.b),136),r.Ci(e),r.Di(t),r.nd(i),r},o.dk=function(){return new RG(this)},o.Wb=function(e){CC(this,e)},o.Gk=function(){u(this.c,79).Gk()},w(Ct,"EcoreEMap",141),b(165,141,qcn,lo),o._j=function(){var e,t,i,r,c,s;if(this.d==null){for(s=F(Ddn,Hcn,66,2*this.f+1,0,1),i=this.c.Kc();i.e!=i.i.gc();)t=u(i.Yj(),136),r=t.Bi(),c=(r&et)%s.length,e=s[c],!e&&(e=s[c]=new RG(this)),e.Fc(t);this.d=s}},w(qn,"EAnnotationImpl/1",165),b(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),!!this.Jk();case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hD(this,i)}return c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i)},o.Wh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&vb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&vb(this.q).i==0)}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:this.ui(Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:this.Zk(u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),Xoe},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:this.ui(null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:this.Zk(1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){gs(this),this.Bb|=1},o.Hk=function(){return gs(this)},o.Ik=function(){return this.t},o.Jk=function(){var e;return e=this.t,e>1||e==-1},o.Si=function(){return(this.Bb&512)!=0},o.Yk=function(e,t){return jY(this,e,t)},o.Zk=function(e){Z0(this,e)},o.Ib=function(){return Bnn(this)},o.s=0,o.t=1,w(qn,"ETypedElementImpl",292),b(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),o.Ah=function(e){return QBn(this,e)},o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),!!this.Jk();case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return _n(),!!(this.Bb&Gs);case 11:return _n(),!!(this.Bb&Cw);case 12:return _n(),!!(this.Bb&vw);case 13:return this.j;case 14:return Cm(this);case 15:return _n(),!!(this.Bb&$u);case 16:return _n(),!!(this.Bb&wh);case 17:return G0(this)}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 17:return this.Cb&&(i=(c=this.Db>>16,c>=0?QBn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,17,i)}return s=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),s.wk().zk(this,iu(this),t-se(this.ii()),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hD(this,i);case 17:return Po(this,null,17,i)}return c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i)},o.Wh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&vb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&vb(this.q).i==0);case 10:return(this.Bb&Gs)==0;case 11:return(this.Bb&Cw)!=0;case 12:return(this.Bb&vw)!=0;case 13:return this.j!=null;case 14:return Cm(this)!=null;case 15:return(this.Bb&$u)!=0;case 16:return(this.Bb&wh)!=0;case 17:return!!G0(this)}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:RD(this,Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:this.Zk(u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return;case 10:fm(this,on(un(t)));return;case 11:am(this,on(un(t)));return;case 12:hm(this,on(un(t)));return;case 13:bX(this,Ae(t));return;case 15:lm(this,on(un(t)));return;case 16:dm(this,on(un(t)));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),zoe},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,90)&&hw(Zu(u(this.Cb,90)),4),zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:this.Zk(1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return;case 10:fm(this,!0);return;case 11:am(this,!1);return;case 12:hm(this,!1);return;case 13:this.i=null,kC(this,null);return;case 15:lm(this,!1);return;case 16:dm(this,!1);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){I4(Nr((Lu(),zi),this)),gs(this),this.Bb|=1},o.pk=function(){return this.f},o.ik=function(){return Cm(this)},o.qk=function(){return G0(this)},o.uk=function(){return null},o.$k=function(){return this.k},o.Lj=function(){return this.n},o.vk=function(){return bS(this)},o.wk=function(){var e,t,i,r,c,s,f,h,l;return this.p||(i=G0(this),(i.i==null&&bh(i),i.i).length,r=this.uk(),r&&se(G0(r)),c=gs(this),f=c.kk(),e=f?f.i&1?f==so?Gt:f==ye?Gi:f==cg?sv:f==Ii?si:f==Ra?t0:f==V2?i0:f==Ru?p3:S8:f:null,t=Cm(this),h=c.ik(),G5e(this),this.Bb&wh&&((s=$Z((Lu(),zi),i))&&s!=this||(s=$p(Nr(zi,this))))?this.p=new DTn(this,s):this.Jk()?this.al()?r?this.Bb&$u?e?this.bl()?this.p=new Za(47,e,this,r):this.p=new Za(5,e,this,r):this.bl()?this.p=new rd(46,this,r):this.p=new rd(4,this,r):e?this.bl()?this.p=new Za(49,e,this,r):this.p=new Za(7,e,this,r):this.bl()?this.p=new rd(48,this,r):this.p=new rd(6,this,r):this.Bb&$u?e?e==Id?this.p=new Xl(50,Poe,this):this.bl()?this.p=new Xl(43,e,this):this.p=new Xl(1,e,this):this.bl()?this.p=new Wl(42,this):this.p=new Wl(0,this):e?e==Id?this.p=new Xl(41,Poe,this):this.bl()?this.p=new Xl(45,e,this):this.p=new Xl(3,e,this):this.bl()?this.p=new Wl(44,this):this.p=new Wl(2,this):L(c,156)?e==MA?this.p=new Wl(40,this):this.Bb&512?this.Bb&$u?e?this.p=new Xl(9,e,this):this.p=new Wl(8,this):e?this.p=new Xl(11,e,this):this.p=new Wl(10,this):this.Bb&$u?e?this.p=new Xl(13,e,this):this.p=new Wl(12,this):e?this.p=new Xl(15,e,this):this.p=new Wl(14,this):r?(l=r.t,l>1||l==-1?this.bl()?this.Bb&$u?e?this.p=new Za(25,e,this,r):this.p=new rd(24,this,r):e?this.p=new Za(27,e,this,r):this.p=new rd(26,this,r):this.Bb&$u?e?this.p=new Za(29,e,this,r):this.p=new rd(28,this,r):e?this.p=new Za(31,e,this,r):this.p=new rd(30,this,r):this.bl()?this.Bb&$u?e?this.p=new Za(33,e,this,r):this.p=new rd(32,this,r):e?this.p=new Za(35,e,this,r):this.p=new rd(34,this,r):this.Bb&$u?e?this.p=new Za(37,e,this,r):this.p=new rd(36,this,r):e?this.p=new Za(39,e,this,r):this.p=new rd(38,this,r)):this.bl()?this.Bb&$u?e?this.p=new Xl(17,e,this):this.p=new Wl(16,this):e?this.p=new Xl(19,e,this):this.p=new Wl(18,this):this.Bb&$u?e?this.p=new Xl(21,e,this):this.p=new Wl(20,this):e?this.p=new Xl(23,e,this):this.p=new Wl(22,this):this._k()?this.bl()?this.p=new jPn(u(c,29),this,r):this.p=new eJ(u(c,29),this,r):L(c,156)?e==MA?this.p=new Wl(40,this):this.Bb&$u?e?this.p=new yIn(t,h,this,(gx(),f==ye?Qdn:f==so?zdn:f==Ra?Ydn:f==cg?Jdn:f==Ii?Wdn:f==V2?Zdn:f==Ru?Xdn:f==fs?Vdn:TU)):this.p=new DOn(u(c,156),t,h,this):e?this.p=new kIn(t,h,this,(gx(),f==ye?Qdn:f==so?zdn:f==Ra?Ydn:f==cg?Jdn:f==Ii?Wdn:f==V2?Zdn:f==Ru?Xdn:f==fs?Vdn:TU)):this.p=new NOn(u(c,156),t,h,this):this.al()?r?this.Bb&$u?this.bl()?this.p=new MPn(u(c,29),this,r):this.p=new FV(u(c,29),this,r):this.bl()?this.p=new EPn(u(c,29),this,r):this.p=new HN(u(c,29),this,r):this.Bb&$u?this.bl()?this.p=new kSn(u(c,29),this):this.p=new nV(u(c,29),this):this.bl()?this.p=new vSn(u(c,29),this):this.p=new IN(u(c,29),this):this.bl()?r?this.Bb&$u?this.p=new TPn(u(c,29),this,r):this.p=new KV(u(c,29),this,r):this.Bb&$u?this.p=new ySn(u(c,29),this):this.p=new eV(u(c,29),this):r?this.Bb&$u?this.p=new CPn(u(c,29),this,r):this.p=new BV(u(c,29),this,r):this.Bb&$u?this.p=new jSn(u(c,29),this):this.p=new oT(u(c,29),this)),this.p},o.rk=function(){return(this.Bb&Gs)!=0},o._k=function(){return!1},o.al=function(){return!1},o.sk=function(){return(this.Bb&wh)!=0},o.xk=function(){return a$(this)},o.bl=function(){return!1},o.tk=function(){return(this.Bb&$u)!=0},o.cl=function(e){this.k=e},o.ui=function(e){RD(this,e)},o.Ib=function(){return $S(this)},o.e=!1,o.n=0,w(qn,"EStructuralFeatureImpl",462),b(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},fL),o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),!!Nnn(this);case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return _n(),!!(this.Bb&Gs);case 11:return _n(),!!(this.Bb&Cw);case 12:return _n(),!!(this.Bb&vw);case 13:return this.j;case 14:return Cm(this);case 15:return _n(),!!(this.Bb&$u);case 16:return _n(),!!(this.Bb&wh);case 17:return G0(this);case 18:return _n(),!!(this.Bb&kc);case 19:return t?x$(this):RNn(this)}return zo(this,e-se((An(),tg)),$n((r=u(Un(this,16),29),r||tg),e),t,i)},o.Wh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return Nnn(this);case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&vb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&vb(this.q).i==0);case 10:return(this.Bb&Gs)==0;case 11:return(this.Bb&Cw)!=0;case 12:return(this.Bb&vw)!=0;case 13:return this.j!=null;case 14:return Cm(this)!=null;case 15:return(this.Bb&$u)!=0;case 16:return(this.Bb&wh)!=0;case 17:return!!G0(this);case 18:return(this.Bb&kc)!=0;case 19:return!!RNn(this)}return Uo(this,e-se((An(),tg)),$n((t=u(Un(this,16),29),t||tg),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:RD(this,Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:nEn(this,u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return;case 10:fm(this,on(un(t)));return;case 11:am(this,on(un(t)));return;case 12:hm(this,on(un(t)));return;case 13:bX(this,Ae(t));return;case 15:lm(this,on(un(t)));return;case 16:dm(this,on(un(t)));return;case 18:sx(this,on(un(t)));return}Jo(this,e-se((An(),tg)),$n((i=u(Un(this,16),29),i||tg),e),t)},o.ii=function(){return An(),tg},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,90)&&hw(Zu(u(this.Cb,90)),4),zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:this.b=0,Z0(this,1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return;case 10:fm(this,!0);return;case 11:am(this,!1);return;case 12:hm(this,!1);return;case 13:this.i=null,kC(this,null);return;case 15:lm(this,!1);return;case 16:dm(this,!1);return;case 18:sx(this,!1);return}Wo(this,e-se((An(),tg)),$n((t=u(Un(this,16),29),t||tg),e))},o.pi=function(){x$(this),I4(Nr((Lu(),zi),this)),gs(this),this.Bb|=1},o.Jk=function(){return Nnn(this)},o.Yk=function(e,t){return this.b=0,this.a=null,jY(this,e,t)},o.Zk=function(e){nEn(this,e)},o.Ib=function(){var e;return this.Db&64?$S(this):(e=new ls($S(this)),e.a+=" (iD: ",ql(e,(this.Bb&kc)!=0),e.a+=")",e.a)},o.b=0,w(qn,"EAttributeImpl",331),b(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),o.dl=function(e){return e.Dh()==this},o.Ah=function(e){return _x(this,e)},o.Bh=function(e,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=e},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Fb(this);case 4:return this.ik();case 5:return this.F;case 6:return t?jo(this):L4(this);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),this.A}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?_x(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,6,i)}return s=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),s.wk().zk(this,iu(this),t-se(this.ii()),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 6:return Po(this,null,6,i);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),cr(this.A,e,i)}return c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Fb(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!L4(this);case 7:return!!this.A&&this.A.i!=0}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:xT(this,Ae(t));return;case 2:wN(this,Ae(t));return;case 5:Nm(this,Ae(t));return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A),!this.A&&(this.A=new Cu(fu,this,7)),Kt(this.A,u(t,16));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),Foe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:um(this,null),G4(this,this.D);return;case 5:Nm(this,null);return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.hk=function(){var e;return this.G==-1&&(this.G=(e=jo(this),e?f1(e.vi(),this):-1)),this.G},o.ik=function(){return null},o.jk=function(){return jo(this)},o.el=function(){return this.v},o.kk=function(){return Fb(this)},o.lk=function(){return this.D!=null?this.D:this.B},o.mk=function(){return this.F},o.fk=function(e){return AR(this,e)},o.fl=function(e){this.v=e},o.gl=function(e){yxn(this,e)},o.hl=function(e){this.C=e},o.ui=function(e){xT(this,e)},o.Ib=function(){return UC(this)},o.C=null,o.D=null,o.G=-1,w(qn,"EClassifierImpl",364),b(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},cG),o.dl=function(e){return Dae(this,e.Dh())},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Fb(this);case 4:return null;case 5:return this.F;case 6:return t?jo(this):L4(this);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),this.A;case 8:return _n(),!!(this.Bb&256);case 9:return _n(),!!(this.Bb&512);case 10:return Hr(this);case 11:return!this.q&&(this.q=new q(Ps,this,11,10)),this.q;case 12:return Jg(this);case 13:return U5(this);case 14:return U5(this),this.r;case 15:return Jg(this),this.k;case 16:return jnn(this);case 17:return $R(this);case 18:return bh(this);case 19:return CS(this);case 20:return Jg(this),this.o;case 21:return!this.s&&(this.s=new q(ku,this,21,17)),this.s;case 22:return Pc(this);case 23:return yR(this)}return zo(this,e-se((An(),Na)),$n((r=u(Un(this,16),29),r||Na),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?_x(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,6,i);case 11:return!this.q&&(this.q=new q(Ps,this,11,10)),Xc(this.q,e,i);case 21:return!this.s&&(this.s=new q(ku,this,21,17)),Xc(this.s,e,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),Na)),t),69),s.wk().zk(this,iu(this),t-se((An(),Na)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 6:return Po(this,null,6,i);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),cr(this.A,e,i);case 11:return!this.q&&(this.q=new q(Ps,this,11,10)),cr(this.q,e,i);case 21:return!this.s&&(this.s=new q(ku,this,21,17)),cr(this.s,e,i);case 22:return cr(Pc(this),e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),Na)),t),69),c.wk().Ak(this,iu(this),t-se((An(),Na)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Fb(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!L4(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&Pc(this.u.a).i!=0&&!(this.n&&Ox(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return Jg(this).i!=0;case 13:return U5(this).i!=0;case 14:return U5(this),this.r.i!=0;case 15:return Jg(this),this.k.i!=0;case 16:return jnn(this).i!=0;case 17:return $R(this).i!=0;case 18:return bh(this).i!=0;case 19:return CS(this).i!=0;case 20:return Jg(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&Ox(this.n);case 23:return yR(this).i!=0}return Uo(this,e-se((An(),Na)),$n((t=u(Un(this,16),29),t||Na),e))},o.Zh=function(e){var t;return t=this.i==null||this.q&&this.q.i!=0?null:oy(this,e),t||rtn(this,e)},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:xT(this,Ae(t));return;case 2:wN(this,Ae(t));return;case 5:Nm(this,Ae(t));return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A),!this.A&&(this.A=new Cu(fu,this,7)),Kt(this.A,u(t,16));return;case 8:EY(this,on(un(t)));return;case 9:MY(this,on(un(t)));return;case 10:X5(Hr(this)),Kt(Hr(this),u(t,16));return;case 11:!this.q&&(this.q=new q(Ps,this,11,10)),me(this.q),!this.q&&(this.q=new q(Ps,this,11,10)),Kt(this.q,u(t,16));return;case 21:!this.s&&(this.s=new q(ku,this,21,17)),me(this.s),!this.s&&(this.s=new q(ku,this,21,17)),Kt(this.s,u(t,16));return;case 22:me(Pc(this)),Kt(Pc(this),u(t,16));return}Jo(this,e-se((An(),Na)),$n((i=u(Un(this,16),29),i||Na),e),t)},o.ii=function(){return An(),Na},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:um(this,null),G4(this,this.D);return;case 5:Nm(this,null);return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A);return;case 8:EY(this,!1);return;case 9:MY(this,!1);return;case 10:this.u&&X5(this.u);return;case 11:!this.q&&(this.q=new q(Ps,this,11,10)),me(this.q);return;case 21:!this.s&&(this.s=new q(ku,this,21,17)),me(this.s);return;case 22:this.n&&me(this.n);return}Wo(this,e-se((An(),Na)),$n((t=u(Un(this,16),29),t||Na),e))},o.pi=function(){var e,t;if(Jg(this),U5(this),jnn(this),$R(this),bh(this),CS(this),yR(this),e5(u0e(Zu(this))),this.s)for(e=0,t=this.s.i;e<t;++e)C7(N(this.s,e));if(this.q)for(e=0,t=this.q.i;e<t;++e)C7(N(this.q,e));r1((Lu(),zi),this).xe(),this.Bb|=1},o.Ib=function(){return HZ(this)},o.k=null,o.r=null;var D9,Joe,EU;w(qn,"EClassImpl",90),b(2092,2091,gJn),o.Ei=function(e,t){return LR(this,e,t)},o.Fi=function(e){return LR(this,this.i,e)},o.Gi=function(e,t){Knn(this,e,t)},o.Hi=function(e){aR(this,e)},o.Wk=function(e,t){return Xc(this,e,t)},o.$i=function(e){return ZJ(this,e)},o.Xk=function(e,t){return cr(this,e,t)},o.Xi=function(e,t){return XUn(this,e,t)},o.Ii=function(){return new yp(this)},o.Ji=function(){return new T7(this)},o.Ki=function(e){return pk(this,e)},w(Ct,"NotifyingInternalEListImpl",2092),b(632,2092,Qr),o.Hc=function(e){return bGn(this,e)},o.Ij=function(e,t,i,r,c){return W6(this,e,t,i,r,c)},o.Jj=function(e){t4(this,e)},o.Fk=function(e){return this},o.Lk=function(){return $n(this.e.Dh(),this.Lj())},o.Kj=function(){return this.Lk()},o.Lj=function(){return At(this.e.Dh(),this.Lk())},o.il=function(){return u(this.Lk().Hk(),29).kk()},o.jl=function(){return br(u(this.Lk(),19)).n},o.jj=function(){return this.e},o.kl=function(){return!0},o.ll=function(){return!1},o.ml=function(){return!1},o.nl=function(){return!1},o.dd=function(e){return f1(this,e)},o.Nj=function(e,t){var i;return i=u(e,54),this.ml()?this.kl()?i.Rh(this.e,this.jl(),this.il(),t):i.Rh(this.e,At(i.Dh(),br(u(this.Lk(),19))),null,t):i.Rh(this.e,-1-this.Lj(),null,t)},o.Oj=function(e,t){var i;return i=u(e,54),this.ml()?this.kl()?i.Th(this.e,this.jl(),this.il(),t):i.Th(this.e,At(i.Dh(),br(u(this.Lk(),19))),null,t):i.Th(this.e,-1-this.Lj(),null,t)},o.al=function(){return!1},o.ol=function(){return!0},o.fk=function(e){return KLn(this.d,e)},o.Pj=function(){return fo(this.e)},o.Qj=function(){return this.i!=0},o.aj=function(e){return gk(this.d,e)},o.Wi=function(e,t){return this.ol()&&this.nl()?e3(this,e,u(t,58)):t},o.pl=function(e){return e.Vh()?ea(this.e,u(e,54)):e},o.Wb=function(e){ACn(this,e)},o.Pc=function(){return NDn(this)},o.Qc=function(e){var t;if(this.nl())for(t=this.i-1;t>=0;--t)N(this,t);return VY(this,e)},o.Gk=function(){me(this)},o.Zi=function(e,t){return q$n(this,e,t)},w(Ct,"EcoreEList",632),b(505,632,Qr,R7),o.Li=function(){return!1},o.Lj=function(){return this.c},o.Mj=function(){return!1},o.ol=function(){return!0},o.Si=function(){return!0},o.Wi=function(e,t){return t},o.Yi=function(){return!1},o.c=0,w(Ct,"EObjectEList",505),b(83,505,Qr,ti),o.Mj=function(){return!0},o.ml=function(){return!1},o.al=function(){return!0},w(Ct,"EObjectContainmentEList",83),b(555,83,Qr,$M),o.Ni=function(){this.b=!0},o.Qj=function(){return this.b},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.b,this.b=!1,it(this.e,new Bs(this.e,2,this.c,e,!1))):this.b=!1},o.b=!1,w(Ct,"EObjectContainmentEList/Unsettable",555),b(1161,555,Qr,mIn),o.Ti=function(e,t){var i,r;return i=u(k5(this,e,t),89),fo(this.e)&&t4(this,new ck(this.a,7,(An(),_oe),Y(t),(r=i.c,L(r,90)?u(r,29):Os),e)),i},o.Uj=function(e,t){return S8e(this,u(e,89),t)},o.Vj=function(e,t){return C8e(this,u(e,89),t)},o.Wj=function(e,t,i){return Oke(this,u(e,89),u(t,89),i)},o.Ij=function(e,t,i,r,c){switch(e){case 3:return W6(this,e,t,i,r,this.i>1);case 5:return W6(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new ml(this.e,e,this.c,t,i,r,!0)}},o.Tj=function(){return!0},o.Qj=function(){return Ox(this)},o.Gk=function(){me(this)},w(qn,"EClassImpl/1",1161),b(1175,1174,_cn),o.dj=function(e){var t,i,r,c,s,f,h;if(i=e.gj(),i!=8){if(r=s9e(e),r==0)switch(i){case 1:case 9:{h=e.kj(),h!=null&&(t=Zu(u(h,482)),!t.c&&(t.c=new W3),rC(t.c,e.jj())),f=e.ij(),f!=null&&(c=u(f,482),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new W3),ve(t.c,u(e.jj(),29))));break}case 3:{f=e.ij(),f!=null&&(c=u(f,482),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new W3),ve(t.c,u(e.jj(),29))));break}case 5:{if(f=e.ij(),f!=null)for(s=u(f,16).Kc();s.Ob();)c=u(s.Pb(),482),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new W3),ve(t.c,u(e.jj(),29)));break}case 4:{h=e.kj(),h!=null&&(c=u(h,482),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new W3),rC(t.c,e.jj())));break}case 6:{if(h=e.kj(),h!=null)for(s=u(h,16).Kc();s.Ob();)c=u(s.Pb(),482),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new W3),rC(t.c,e.jj()));break}}this.ql(r)}},o.ql=function(e){Uqn(this,e)},o.b=63,w(qn,"ESuperAdapter",1175),b(1176,1175,_cn,myn),o.ql=function(e){hw(this,e)},w(qn,"EClassImpl/10",1176),b(1165,710,Qr),o.Ei=function(e,t){return Zx(this,e,t)},o.Fi=function(e){return NBn(this,e)},o.Gi=function(e,t){Lk(this,e,t)},o.Hi=function(e){ek(this,e)},o.$i=function(e){return ZJ(this,e)},o.Xi=function(e,t){return d$(this,e,t)},o.Wk=function(e,t){throw T(new Ie)},o.Ii=function(){return new yp(this)},o.Ji=function(){return new T7(this)},o.Ki=function(e){return pk(this,e)},o.Xk=function(e,t){throw T(new Ie)},o.Fk=function(e){return this},o.Qj=function(){return this.i!=0},o.Wb=function(e){throw T(new Ie)},o.Gk=function(){throw T(new Ie)},w(Ct,"EcoreEList/UnmodifiableEList",1165),b(328,1165,Qr,pg),o.Yi=function(){return!1},w(Ct,"EcoreEList/UnmodifiableEList/FastCompare",328),b(1168,328,Qr,bRn),o.dd=function(e){var t,i,r;if(L(e,179)&&(t=u(e,179),i=t.Lj(),i!=-1)){for(r=this.i;i<r;++i)if(x(this.g[i])===x(e))return i}return-1},w(qn,"EClassImpl/1EAllStructuralFeaturesList",1168),b(1162,506,Mh,kvn),o.aj=function(e){return F(jr,pJn,89,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/1EGenericSuperTypeEList",1162),b(633,506,Mh,qA),o.aj=function(e){return F(ku,f2,179,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/1EStructuralFeatureUniqueEList",633),b(755,506,Mh,tG),o.aj=function(e){return F(eg,f2,19,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/1ReferenceList",755),b(1163,506,Mh,vyn),o.Mi=function(e,t){owe(this,u(t,35))},o.aj=function(e){return F(ng,f2,35,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/2",1163),b(1164,506,Mh,yvn),o.aj=function(e){return F(ng,f2,35,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/3",1164),b(1166,328,Qr,HPn),o.Fc=function(e){return T3e(this,u(e,35))},o.Hi=function(e){Vhe(this,u(e,35))},w(qn,"EClassImpl/4",1166),b(1167,328,Qr,_Pn),o.Fc=function(e){return C3e(this,u(e,19))},o.Hi=function(e){Whe(this,u(e,19))},w(qn,"EClassImpl/5",1167),b(1169,506,Mh,jvn),o.aj=function(e){return F(Ps,Ucn,62,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/6",1169),b(1170,506,Mh,Evn),o.aj=function(e){return F(eg,f2,19,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/7",1170),b(2095,2094,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,71:1}),o.Ei=function(e,t){return Den(this,e,t)},o.Fi=function(e){return Den(this,this.Ej(),e)},o.Gi=function(e,t){EHn(this,e,t)},o.Hi=function(e){lHn(this,e)},o.Wk=function(e,t){return n7e(this,e,t)},o.Xk=function(e,t){return S9e(this,e,t)},o.Xi=function(e,t){return OUn(this,e,t)},o.$i=function(e){return this.xj(e)},o.Ii=function(){return new yp(this)},o.pj=function(){return this.sj()},o.Ji=function(){return new T7(this)},o.Ki=function(e){return pk(this,e)},w(Ct,"DelegatingNotifyingInternalEListImpl",2095),b(756,2095,Gcn),o.Li=function(){var e;return e=$n(au(this.b),this.Lj()).Hk(),L(e,156)&&!L(e,469)&&(e.kk().i&1)==0},o.Hc=function(e){var t,i,r,c,s,f,h,l;if(this.ol()){if(l=this.Ej(),l>4)if(this.fk(e)){if(this.al()){if(r=u(e,54),i=r.Eh(),h=i==this.b&&(this.ml()?r.yh(r.Fh(),u($n(au(this.b),this.Lj()).Hk(),29).kk())==br(u($n(au(this.b),this.Lj()),19)).n:-1-r.Fh()==this.Lj()),this.nl()&&!h&&!i&&r.Jh()){for(c=0;c<l;++c)if(t=cD(this,this.xj(c)),x(t)===x(e))return!0}return h}else if(this.ml()&&!this.ll()){if(s=u(e,58).Mh(br(u($n(au(this.b),this.Lj()),19))),x(s)===x(this.b))return!0;if(s==null||!u(s,58).Vh())return!1}}else return!1;if(f=this.uj(e),this.nl()&&!f){for(c=0;c<l;++c)if(r=cD(this,this.xj(c)),x(r)===x(e))return!0}return f}else return this.uj(e)},o.Ij=function(e,t,i,r,c){return new ml(this.b,e,this.Lj(),t,i,r,c)},o.Jj=function(e){it(this.b,e)},o.Fk=function(e){return this},o.Kj=function(){return $n(au(this.b),this.Lj())},o.Lj=function(){return At(au(this.b),$n(au(this.b),this.Lj()))},o.jj=function(){return this.b},o.kl=function(){return!!$n(au(this.b),this.Lj()).Hk().kk()},o.Mj=function(){var e,t;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),(e.Bb&kc)!=0||!!br(u(t,19))):!1},o.ll=function(){var e,t,i,r;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),i=br(e),!!i&&(r=i.t,r>1||r==-1)):!1},o.ml=function(){var e,t,i;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),i=br(e),!!i):!1},o.nl=function(){var e,t;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),(e.Bb&hr)!=0):!1},o.dd=function(e){var t,i,r,c;if(r=this.zj(e),r>=0)return r;if(this.ol()){for(i=0,c=this.Ej();i<c;++i)if(t=cD(this,this.xj(i)),x(t)===x(e))return i}return-1},o.Nj=function(e,t){var i;return i=u(e,54),this.ml()?this.kl()?i.Rh(this.b,br(u($n(au(this.b),this.Lj()),19)).n,u($n(au(this.b),this.Lj()).Hk(),29).kk(),t):i.Rh(this.b,At(i.Dh(),br(u($n(au(this.b),this.Lj()),19))),null,t):i.Rh(this.b,-1-this.Lj(),null,t)},o.Oj=function(e,t){var i;return i=u(e,54),this.ml()?this.kl()?i.Th(this.b,br(u($n(au(this.b),this.Lj()),19)).n,u($n(au(this.b),this.Lj()).Hk(),29).kk(),t):i.Th(this.b,At(i.Dh(),br(u($n(au(this.b),this.Lj()),19))),null,t):i.Th(this.b,-1-this.Lj(),null,t)},o.al=function(){var e,t;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),(e.Bb&kc)!=0):!1},o.ol=function(){return L($n(au(this.b),this.Lj()).Hk(),90)},o.fk=function(e){return $n(au(this.b),this.Lj()).Hk().fk(e)},o.Pj=function(){return fo(this.b)},o.Qj=function(){return!this.Aj()},o.Si=function(){return $n(au(this.b),this.Lj()).Si()},o.Wi=function(e,t){return py(this,e,t)},o.Wb=function(e){X5(this),Kt(this,u(e,15))},o.Pc=function(){var e;if(this.nl())for(e=this.Ej()-1;e>=0;--e)py(this,e,this.xj(e));return this.Fj()},o.Qc=function(e){var t;if(this.nl())for(t=this.Ej()-1;t>=0;--t)py(this,t,this.xj(t));return this.Gj(e)},o.Gk=function(){X5(this)},o.Zi=function(e,t){return kDn(this,e,t)},w(Ct,"DelegatingEcoreEList",756),b(1171,756,Gcn,DSn),o.qj=function(e,t){rae(this,e,u(t,29))},o.rj=function(e){zle(this,u(e,29))},o.xj=function(e){var t,i;return t=u(N(Pc(this.a),e),89),i=t.c,L(i,90)?u(i,29):(An(),Os)},o.Cj=function(e){var t,i;return t=u(dw(Pc(this.a),e),89),i=t.c,L(i,90)?u(i,29):(An(),Os)},o.Dj=function(e,t){return e7e(this,e,u(t,29))},o.Li=function(){return!1},o.Ij=function(e,t,i,r,c){return null},o.sj=function(){return new yyn(this)},o.tj=function(){me(Pc(this.a))},o.uj=function(e){return hKn(this,e)},o.vj=function(e){var t,i;for(i=e.Kc();i.Ob();)if(t=i.Pb(),!hKn(this,t))return!1;return!0},o.wj=function(e){var t,i,r;if(L(e,15)&&(r=u(e,15),r.gc()==Pc(this.a).i)){for(t=r.Kc(),i=new ne(this);t.Ob();)if(x(t.Pb())!==x(ue(i)))return!1;return!0}return!1},o.yj=function(){var e,t,i,r,c;for(i=1,t=new ne(Pc(this.a));t.e!=t.i.gc();)e=u(ue(t),89),r=(c=e.c,L(c,90)?u(c,29):(An(),Os)),i=31*i+(r?lb(r):0);return i},o.zj=function(e){var t,i,r,c;for(r=0,i=new ne(Pc(this.a));i.e!=i.i.gc();){if(t=u(ue(i),89),x(e)===x((c=t.c,L(c,90)?u(c,29):(An(),Os))))return r;++r}return-1},o.Aj=function(){return Pc(this.a).i==0},o.Bj=function(){return null},o.Ej=function(){return Pc(this.a).i},o.Fj=function(){var e,t,i,r,c,s;for(s=Pc(this.a).i,c=F(ki,Kn,1,s,5,1),i=0,t=new ne(Pc(this.a));t.e!=t.i.gc();)e=u(ue(t),89),c[i++]=(r=e.c,L(r,90)?u(r,29):(An(),Os));return c},o.Gj=function(e){var t,i,r,c,s,f,h;for(h=Pc(this.a).i,e.length<h&&(c=gk(wo(e).c,h),e=c),e.length>h&&$t(e,h,null),r=0,i=new ne(Pc(this.a));i.e!=i.i.gc();)t=u(ue(i),89),s=(f=t.c,L(f,90)?u(f,29):(An(),Os)),$t(e,r++,s);return e},o.Hj=function(){var e,t,i,r,c;for(c=new Hl,c.a+="[",e=Pc(this.a),t=0,r=Pc(this.a).i;t<r;)Er(c,A6((i=u(N(e,t),89).c,L(i,90)?u(i,29):(An(),Os)))),++t<r&&(c.a+=ur);return c.a+="]",c.a},o.Jj=function(e){},o.Lj=function(){return 10},o.kl=function(){return!0},o.Mj=function(){return!1},o.ll=function(){return!1},o.ml=function(){return!1},o.nl=function(){return!0},o.al=function(){return!1},o.ol=function(){return!0},o.fk=function(e){return L(e,90)},o.Qj=function(){return Spe(this.a)},o.Si=function(){return!0},o.Yi=function(){return!0},w(qn,"EClassImpl/8",1171),b(1172,2062,Bm,yyn),o.fd=function(e){return pk(this.a,e)},o.gc=function(){return Pc(this.a.a).i},w(qn,"EClassImpl/8/1",1172),b(1173,506,Mh,Mvn),o.aj=function(e){return F(Mf,Kn,142,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/9",1173),b(1160,49,jtn,ljn),w(qn,"EClassImpl/MyHashSet",1160),b(577,364,{110:1,94:1,93:1,142:1,156:1,847:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1},xE),o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Fb(this);case 4:return this.ik();case 5:return this.F;case 6:return t?jo(this):L4(this);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),this.A;case 8:return _n(),!!(this.Bb&256)}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Fb(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!L4(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:xT(this,Ae(t));return;case 2:wN(this,Ae(t));return;case 5:Nm(this,Ae(t));return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A),!this.A&&(this.A=new Cu(fu,this,7)),Kt(this.A,u(t,16));return;case 8:KC(this,on(un(t)));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),Hoe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:um(this,null),G4(this,this.D);return;case 5:Nm(this,null);return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A);return;case 8:KC(this,!0);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){r1((Lu(),zi),this).xe(),this.Bb|=1},o.ok=function(){var e,t,i;if(!this.c&&(e=xHn(jo(this)),!e.dc()))for(i=e.Kc();i.Ob();)t=Ae(i.Pb()),_5(this,t)&&C5e(this);return this.b},o.ik=function(){var e;if(!this.e){e=null;try{e=Fb(this)}catch(t){if(t=Ot(t),!L(t,103))throw T(t)}this.d=null,e&&e.i&1&&(e==so?this.d=(_n(),ga):e==ye?this.d=Y(0):e==cg?this.d=new z9(0):e==Ii?this.d=0:e==Ra?this.d=Tl(0):e==V2?this.d=sm(0):e==Ru?this.d=ak(0):this.d=vk(0)),this.e=!0}return this.d},o.nk=function(){return(this.Bb&256)!=0},o.rl=function(e){e&&(this.D="org.eclipse.emf.common.util.AbstractEnumerator")},o.gl=function(e){yxn(this,e),this.rl(e)},o.hl=function(e){this.C=e,this.e=!1},o.Ib=function(){var e;return this.Db&64?UC(this):(e=new ls(UC(this)),e.a+=" (serializable: ",ql(e,(this.Bb&256)!=0),e.a+=")",e.a)},o.c=!1,o.d=null,o.e=!1,w(qn,"EDataTypeImpl",577),b(469,577,{110:1,94:1,93:1,142:1,156:1,847:1,685:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,469:1,158:1,119:1,120:1,691:1},ajn),o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Fb(this);case 4:return lY(this);case 5:return this.F;case 6:return t?jo(this):L4(this);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),this.A;case 8:return _n(),!!(this.Bb&256);case 9:return!this.a&&(this.a=new q(Kl,this,9,5)),this.a}return zo(this,e-se((An(),Da)),$n((r=u(Un(this,16),29),r||Da),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?_x(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,6,i);case 9:return!this.a&&(this.a=new q(Kl,this,9,5)),Xc(this.a,e,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),Da)),t),69),s.wk().zk(this,iu(this),t-se((An(),Da)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 6:return Po(this,null,6,i);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),cr(this.A,e,i);case 9:return!this.a&&(this.a=new q(Kl,this,9,5)),cr(this.a,e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),Da)),t),69),c.wk().Ak(this,iu(this),t-se((An(),Da)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Fb(this);case 4:return!!lY(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!L4(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return Uo(this,e-se((An(),Da)),$n((t=u(Un(this,16),29),t||Da),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:xT(this,Ae(t));return;case 2:wN(this,Ae(t));return;case 5:Nm(this,Ae(t));return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A),!this.A&&(this.A=new Cu(fu,this,7)),Kt(this.A,u(t,16));return;case 8:KC(this,on(un(t)));return;case 9:!this.a&&(this.a=new q(Kl,this,9,5)),me(this.a),!this.a&&(this.a=new q(Kl,this,9,5)),Kt(this.a,u(t,16));return}Jo(this,e-se((An(),Da)),$n((i=u(Un(this,16),29),i||Da),e),t)},o.ii=function(){return An(),Da},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:um(this,null),G4(this,this.D);return;case 5:Nm(this,null);return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A);return;case 8:KC(this,!0);return;case 9:!this.a&&(this.a=new q(Kl,this,9,5)),me(this.a);return}Wo(this,e-se((An(),Da)),$n((t=u(Un(this,16),29),t||Da),e))},o.pi=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e<t;++e)C7(N(this.a,e));r1((Lu(),zi),this).xe(),this.Bb|=1},o.ik=function(){return lY(this)},o.fk=function(e){return e!=null},o.rl=function(e){},w(qn,"EEnumImpl",469),b(582,448,{110:1,94:1,93:1,2039:1,694:1,155:1,197:1,58:1,114:1,54:1,99:1,582:1,158:1,119:1,120:1},Ryn),o.xe=function(){return this.zb},o.Ah=function(e){return uFn(this,e)},o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Y(this.d);case 3:return this.b?this.b:this.a;case 4:return c=this.c,c??this.zb;case 5:return this.Db>>16==5?u(this.Cb,685):null}return zo(this,e-se((An(),P1)),$n((r=u(Un(this,16),29),r||P1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 5:return this.Cb&&(i=(c=this.Db>>16,c>=0?uFn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,5,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),P1)),t),69),s.wk().zk(this,iu(this),t-se((An(),P1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 5:return Po(this,null,5,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),P1)),t),69),c.wk().Ak(this,iu(this),t-se((An(),P1)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&u(this.Cb,685))}return Uo(this,e-se((An(),P1)),$n((t=u(Un(this,16),29),t||P1),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:zc(this,Ae(t));return;case 2:v$(this,u(t,17).a);return;case 3:iHn(this,u(t,2039));return;case 4:y$(this,Ae(t));return}Jo(this,e-se((An(),P1)),$n((i=u(Un(this,16),29),i||P1),e),t)},o.ii=function(){return An(),P1},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:v$(this,0);return;case 3:iHn(this,null);return;case 4:y$(this,null);return}Wo(this,e-se((An(),P1)),$n((t=u(Un(this,16),29),t||P1),e))},o.Ib=function(){var e;return e=this.c,e??this.zb},o.b=null,o.c=null,o.d=0,w(qn,"EEnumLiteralImpl",582);var NDe=Dt(qn,"EFactoryImpl/InternalEDateTimeFormat");b(499,1,{2114:1},X9),w(qn,"EFactoryImpl/1ClientInternalEDateTimeFormat",499),b(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},Jd),o.Ch=function(e,t,i){var r;return i=Po(this,e,t,i),this.e&&L(e,179)&&(r=TS(this,this.e),r!=this.c&&(i=Dm(this,r,i))),i},o.Lh=function(e,t,i){var r;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new ti(jr,this,1)),this.d;case 2:return t?KS(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?Nx(this):this.a}return zo(this,e-se((An(),j0)),$n((r=u(Un(this,16),29),r||j0),e),t,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return QRn(this,null,i);case 1:return!this.d&&(this.d=new ti(jr,this,1)),cr(this.d,e,i);case 3:return YRn(this,null,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),j0)),t),69),c.wk().Ak(this,iu(this),t-se((An(),j0)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return Uo(this,e-se((An(),j0)),$n((t=u(Un(this,16),29),t||j0),e))},o.bi=function(e,t){var i;switch(e){case 0:TFn(this,u(t,89));return;case 1:!this.d&&(this.d=new ti(jr,this,1)),me(this.d),!this.d&&(this.d=new ti(jr,this,1)),Kt(this.d,u(t,16));return;case 3:qZ(this,u(t,89));return;case 4:snn(this,u(t,850));return;case 5:F4(this,u(t,142));return}Jo(this,e-se((An(),j0)),$n((i=u(Un(this,16),29),i||j0),e),t)},o.ii=function(){return An(),j0},o.ki=function(e){var t;switch(e){case 0:TFn(this,null);return;case 1:!this.d&&(this.d=new ti(jr,this,1)),me(this.d);return;case 3:qZ(this,null);return;case 4:snn(this,null);return;case 5:F4(this,null);return}Wo(this,e-se((An(),j0)),$n((t=u(Un(this,16),29),t||j0),e))},o.Ib=function(){var e;return e=new mo(Hs(this)),e.a+=" (expression: ",_R(this,e),e.a+=")",e.a};var Gdn;w(qn,"EGenericTypeImpl",248),b(2067,2062,zP),o.Gi=function(e,t){ASn(this,e,t)},o.Wk=function(e,t){return ASn(this,this.gc(),e),t},o.$i=function(e){return Zo(this.pj(),e)},o.Ii=function(){return this.Ji()},o.pj=function(){return new Tyn(this)},o.Ji=function(){return this.Ki(0)},o.Ki=function(e){return this.pj().fd(e)},o.Xk=function(e,t){return iw(this,e,!0),t},o.Ti=function(e,t){var i,r;return r=Ux(this,t),i=this.fd(e),i.Rb(r),r},o.Ui=function(e,t){var i;iw(this,t,!0),i=this.fd(e),i.Rb(t)},w(Ct,"AbstractSequentialInternalEList",2067),b(496,2067,zP,M7),o.$i=function(e){return Zo(this.pj(),e)},o.Ii=function(){return this.b==null?(Gl(),Gl(),dE):this.sl()},o.pj=function(){return new JTn(this.a,this.b)},o.Ji=function(){return this.b==null?(Gl(),Gl(),dE):this.sl()},o.Ki=function(e){var t,i;if(this.b==null){if(e<0||e>1)throw T(new Or(p8+e+", size=0"));return Gl(),Gl(),dE}for(i=this.sl(),t=0;t<e;++t)IC(i);return i},o.dc=function(){var e,t,i,r,c,s;if(this.b!=null){for(i=0;i<this.b.length;++i)if(e=this.b[i],!this.vl()||this.a.Xh(e)){if(s=this.a.Nh(e,!1),dr(),u(e,69).xk()){for(t=u(s,160),r=0,c=t.gc();r<c;++r)if(cOn(t.Tl(r))&&t.Ul(r)!=null)return!1}else if(e.Jk()){if(!u(s,16).dc())return!1}else if(s!=null)return!1}}return!0},o.Kc=function(){return LQ(this)},o.fd=function(e){var t,i;if(this.b==null){if(e!=0)throw T(new Or(p8+e+", size=0"));return Gl(),Gl(),dE}for(i=this.ul()?this.tl():this.sl(),t=0;t<e;++t)IC(i);return i},o.Ti=function(e,t){throw T(new Ie)},o.Ui=function(e,t){throw T(new Ie)},o.sl=function(){return new _M(this.a,this.b)},o.tl=function(){return new ZX(this.a,this.b)},o.ul=function(){return!0},o.gc=function(){var e,t,i,r,c,s,f;if(c=0,this.b!=null){for(i=0;i<this.b.length;++i)if(e=this.b[i],!this.vl()||this.a.Xh(e))if(f=this.a.Nh(e,!1),dr(),u(e,69).xk())for(t=u(f,160),r=0,s=t.gc();r<s;++r)cOn(t.Tl(r))&&t.Ul(r)!=null&&++c;else e.Jk()?c+=u(f,16).gc():f!=null&&++c}return c},o.vl=function(){return!0};var MU;w(Ct,"EContentsEList",496),b(1177,496,zP,wSn),o.sl=function(){return new pSn(this.a,this.b)},o.tl=function(){return new gSn(this.a,this.b)},o.vl=function(){return!1},w(qn,"ENamedElementImpl/1",1177),b(287,1,XP,_M),o.Nb=function(e){_i(this,e)},o.Rb=function(e){throw T(new Ie)},o.wl=function(e){if(this.g!=0||this.e)throw T(new Ar("Iterator already in use or already filtered"));this.e=e},o.Ob=function(){var e,t,i,r,c,s;switch(this.g){case 3:case 2:return!0;case 1:return!1;case-3:this.p?this.p.Pb():++this.n;default:if(!this.k||(this.p?!m_n(this,this.p):!oHn(this))){for(;this.d<this.c.length;)if(t=this.c[this.d++],(!this.e||t.pk()!=Hv||t.Lj()!=0)&&(!this.vl()||this.b.Xh(t))){if(s=this.b.Nh(t,this.ul()),this.f=(dr(),u(t,69).xk()),this.f||t.Jk()){if(this.ul()?(r=u(s,15),this.k=r):(r=u(s,71),this.k=this.j=r),L(this.k,59)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.Ji():this.k.ed(),this.p?m_n(this,this.p):oHn(this))return c=this.p?this.p.Pb():this.j?this.j.$i(this.n++):this.k.Xb(this.n++),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=3,!0}else if(s!=null)return this.k=null,this.p=null,i=s,this.i=i,this.g=2,!0}return this.k=null,this.p=null,this.f=!1,this.g=1,!1}else return c=this.p?this.p.Pb():this.j?this.j.$i(this.n++):this.k.Xb(this.n++),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=3,!0}},o.Sb=function(){var e,t,i,r,c,s;switch(this.g){case-3:case-2:return!0;case-1:return!1;case 3:this.p?this.p.Ub():--this.n;default:if(!this.k||(this.p?!v_n(this,this.p):!O_n(this))){for(;this.d>0;)if(t=this.c[--this.d],(!this.e||t.pk()!=Hv||t.Lj()!=0)&&(!this.vl()||this.b.Xh(t))){if(s=this.b.Nh(t,this.ul()),this.f=(dr(),u(t,69).xk()),this.f||t.Jk()){if(this.ul()?(r=u(s,15),this.k=r):(r=u(s,71),this.k=this.j=r),L(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?v_n(this,this.p):O_n(this))return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=-3,!0}else if(s!=null)return this.k=null,this.p=null,i=s,this.i=i,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=-3,!0}},o.Pb=function(){return IC(this)},o.Tb=function(){return this.a},o.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw T(new nc)},o.Vb=function(){return this.a-1},o.Qb=function(){throw T(new Ie)},o.ul=function(){return!1},o.Wb=function(e){throw T(new Ie)},o.vl=function(){return!0},o.a=0,o.d=0,o.f=!1,o.g=0,o.n=0,o.o=0;var dE;w(Ct,"EContentsEList/FeatureIteratorImpl",287),b(711,287,XP,ZX),o.ul=function(){return!0},w(Ct,"EContentsEList/ResolvingFeatureIteratorImpl",711),b(1178,711,XP,gSn),o.vl=function(){return!1},w(qn,"ENamedElementImpl/1/1",1178),b(1179,287,XP,pSn),o.vl=function(){return!1},w(qn,"ENamedElementImpl/1/2",1179),b(39,152,Wy,V0,UD,Mi,c$,ml,Bs,aQ,JAn,dQ,QAn,OJ,YAn,gQ,ZAn,AJ,nLn,bQ,eLn,H6,ck,TD,wQ,tLn,LJ,iLn),o.Kj=function(){return WJ(this)},o.Rj=function(){var e;return e=WJ(this),e?e.ik():null},o.hj=function(e){return this.b==-1&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,e)},o.jj=function(){return this.c},o.Sj=function(){var e;return e=WJ(this),e?e.tk():!1},o.b=-1,w(qn,"ENotificationImpl",39),b(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},hL),o.Ah=function(e){return fFn(this,e)},o.Lh=function(e,t,i){var r,c,s;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),s=this.t,s>1||s==-1;case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,29):null;case 11:return!this.d&&(this.d=new Cu(fu,this,11)),this.d;case 12:return!this.c&&(this.c=new q(y0,this,12,10)),this.c;case 13:return!this.a&&(this.a=new I7(this,this)),this.a;case 14:return no(this)}return zo(this,e-se((An(),I1)),$n((r=u(Un(this,16),29),r||I1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?fFn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,10,i);case 12:return!this.c&&(this.c=new q(y0,this,12,10)),Xc(this.c,e,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),I1)),t),69),s.wk().zk(this,iu(this),t-se((An(),I1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hD(this,i);case 10:return Po(this,null,10,i);case 11:return!this.d&&(this.d=new Cu(fu,this,11)),cr(this.d,e,i);case 12:return!this.c&&(this.c=new q(y0,this,12,10)),cr(this.c,e,i);case 14:return cr(no(this),e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),I1)),t),69),c.wk().Ak(this,iu(this),t-se((An(),I1)),e,i)},o.Wh=function(e){var t,i,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&vb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&vb(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&no(this.a.a).i!=0&&!(this.b&&Ax(this.b));case 14:return!!this.b&&Ax(this.b)}return Uo(this,e-se((An(),I1)),$n((t=u(Un(this,16),29),t||I1),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:zc(this,Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:Z0(this,u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return;case 11:!this.d&&(this.d=new Cu(fu,this,11)),me(this.d),!this.d&&(this.d=new Cu(fu,this,11)),Kt(this.d,u(t,16));return;case 12:!this.c&&(this.c=new q(y0,this,12,10)),me(this.c),!this.c&&(this.c=new q(y0,this,12,10)),Kt(this.c,u(t,16));return;case 13:!this.a&&(this.a=new I7(this,this)),X5(this.a),!this.a&&(this.a=new I7(this,this)),Kt(this.a,u(t,16));return;case 14:me(no(this)),Kt(no(this),u(t,16));return}Jo(this,e-se((An(),I1)),$n((i=u(Un(this,16),29),i||I1),e),t)},o.ii=function(){return An(),I1},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:Z0(this,1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return;case 11:!this.d&&(this.d=new Cu(fu,this,11)),me(this.d);return;case 12:!this.c&&(this.c=new q(y0,this,12,10)),me(this.c);return;case 13:this.a&&X5(this.a);return;case 14:this.b&&me(this.b);return}Wo(this,e-se((An(),I1)),$n((t=u(Un(this,16),29),t||I1),e))},o.pi=function(){var e,t;if(this.c)for(e=0,t=this.c.i;e<t;++e)C7(N(this.c,e));gs(this),this.Bb|=1},w(qn,"EOperationImpl",411),b(513,756,Gcn,I7),o.qj=function(e,t){uae(this,e,u(t,142))},o.rj=function(e){Xle(this,u(e,142))},o.xj=function(e){var t,i;return t=u(N(no(this.a),e),89),i=t.c,i||(An(),Zf)},o.Cj=function(e){var t,i;return t=u(dw(no(this.a),e),89),i=t.c,i||(An(),Zf)},o.Dj=function(e,t){return V8e(this,e,u(t,142))},o.Li=function(){return!1},o.Ij=function(e,t,i,r,c){return null},o.sj=function(){return new jyn(this)},o.tj=function(){me(no(this.a))},o.uj=function(e){return bKn(this,e)},o.vj=function(e){var t,i;for(i=e.Kc();i.Ob();)if(t=i.Pb(),!bKn(this,t))return!1;return!0},o.wj=function(e){var t,i,r;if(L(e,15)&&(r=u(e,15),r.gc()==no(this.a).i)){for(t=r.Kc(),i=new ne(this);t.Ob();)if(x(t.Pb())!==x(ue(i)))return!1;return!0}return!1},o.yj=function(){var e,t,i,r,c;for(i=1,t=new ne(no(this.a));t.e!=t.i.gc();)e=u(ue(t),89),r=(c=e.c,c||(An(),Zf)),i=31*i+(r?mt(r):0);return i},o.zj=function(e){var t,i,r,c;for(r=0,i=new ne(no(this.a));i.e!=i.i.gc();){if(t=u(ue(i),89),x(e)===x((c=t.c,c||(An(),Zf))))return r;++r}return-1},o.Aj=function(){return no(this.a).i==0},o.Bj=function(){return null},o.Ej=function(){return no(this.a).i},o.Fj=function(){var e,t,i,r,c,s;for(s=no(this.a).i,c=F(ki,Kn,1,s,5,1),i=0,t=new ne(no(this.a));t.e!=t.i.gc();)e=u(ue(t),89),c[i++]=(r=e.c,r||(An(),Zf));return c},o.Gj=function(e){var t,i,r,c,s,f,h;for(h=no(this.a).i,e.length<h&&(c=gk(wo(e).c,h),e=c),e.length>h&&$t(e,h,null),r=0,i=new ne(no(this.a));i.e!=i.i.gc();)t=u(ue(i),89),s=(f=t.c,f||(An(),Zf)),$t(e,r++,s);return e},o.Hj=function(){var e,t,i,r,c;for(c=new Hl,c.a+="[",e=no(this.a),t=0,r=no(this.a).i;t<r;)Er(c,A6((i=u(N(e,t),89).c,i||(An(),Zf)))),++t<r&&(c.a+=ur);return c.a+="]",c.a},o.Jj=function(e){},o.Lj=function(){return 13},o.kl=function(){return!0},o.Mj=function(){return!1},o.ll=function(){return!1},o.ml=function(){return!1},o.nl=function(){return!0},o.al=function(){return!1},o.ol=function(){return!0},o.fk=function(e){return L(e,142)},o.Qj=function(){return Ppe(this.a)},o.Si=function(){return!0},o.Yi=function(){return!0},w(qn,"EOperationImpl/1",513),b(1376,2062,Bm,jyn),o.fd=function(e){return pk(this.a,e)},o.gc=function(){return no(this.a.a).i},w(qn,"EOperationImpl/1/1",1376),b(1377,555,Qr,vIn),o.Ti=function(e,t){var i,r;return i=u(k5(this,e,t),89),fo(this.e)&&t4(this,new ck(this.a,7,(An(),Goe),Y(t),(r=i.c,r||Zf),e)),i},o.Uj=function(e,t){return h5e(this,u(e,89),t)},o.Vj=function(e,t){return f5e(this,u(e,89),t)},o.Wj=function(e,t,i){return o9e(this,u(e,89),u(t,89),i)},o.Ij=function(e,t,i,r,c){switch(e){case 3:return W6(this,e,t,i,r,this.i>1);case 5:return W6(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new ml(this.e,e,this.c,t,i,r,!0)}},o.Tj=function(){return!0},o.Qj=function(){return Ax(this)},o.Gk=function(){me(this)},w(qn,"EOperationImpl/2",1377),b(507,1,{2037:1,507:1},NTn),w(qn,"EPackageImpl/1",507),b(14,83,Qr,q),o.il=function(){return this.d},o.jl=function(){return this.b},o.ml=function(){return!0},o.b=0,w(Ct,"EObjectContainmentWithInverseEList",14),b(365,14,Qr,jp),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectContainmentWithInverseEList/Resolving",365),b(308,365,Qr,H0),o.Ni=function(){this.a.tb=null},w(qn,"EPackageImpl/2",308),b(1278,1,{},qse),w(qn,"EPackageImpl/3",1278),b(733,45,n2,ez),o._b=function(e){return Si(e)?SD(this,e):!!wr(this.f,e)},w(qn,"EPackageRegistryImpl",733),b(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},lL),o.Ah=function(e){return hFn(this,e)},o.Lh=function(e,t,i){var r,c,s;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),s=this.t,s>1||s==-1;case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,62):null}return zo(this,e-se((An(),ig)),$n((r=u(Un(this,16),29),r||ig),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?hFn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,10,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),ig)),t),69),s.wk().zk(this,iu(this),t-se((An(),ig)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hD(this,i);case 10:return Po(this,null,10,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),ig)),t),69),c.wk().Ak(this,iu(this),t-se((An(),ig)),e,i)},o.Wh=function(e){var t,i,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&vb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&vb(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,62))}return Uo(this,e-se((An(),ig)),$n((t=u(Un(this,16),29),t||ig),e))},o.ii=function(){return An(),ig},w(qn,"EParameterImpl",518),b(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},rV),o.Lh=function(e,t,i){var r,c,s,f;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),f=this.t,f>1||f==-1;case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return _n(),!!(this.Bb&Gs);case 11:return _n(),!!(this.Bb&Cw);case 12:return _n(),!!(this.Bb&vw);case 13:return this.j;case 14:return Cm(this);case 15:return _n(),!!(this.Bb&$u);case 16:return _n(),!!(this.Bb&wh);case 17:return G0(this);case 18:return _n(),!!(this.Bb&kc);case 19:return _n(),s=br(this),!!(s&&s.Bb&kc);case 20:return _n(),!!(this.Bb&hr);case 21:return t?br(this):this.b;case 22:return t?eY(this):SNn(this);case 23:return!this.a&&(this.a=new Eg(ng,this,23)),this.a}return zo(this,e-se((An(),U2)),$n((r=u(Un(this,16),29),r||U2),e),t,i)},o.Wh=function(e){var t,i,r,c;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return c=this.t,c>1||c==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&vb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&vb(this.q).i==0);case 10:return(this.Bb&Gs)==0;case 11:return(this.Bb&Cw)!=0;case 12:return(this.Bb&vw)!=0;case 13:return this.j!=null;case 14:return Cm(this)!=null;case 15:return(this.Bb&$u)!=0;case 16:return(this.Bb&wh)!=0;case 17:return!!G0(this);case 18:return(this.Bb&kc)!=0;case 19:return r=br(this),!!r&&(r.Bb&kc)!=0;case 20:return(this.Bb&hr)==0;case 21:return!!this.b;case 22:return!!SNn(this);case 23:return!!this.a&&this.a.i!=0}return Uo(this,e-se((An(),U2)),$n((t=u(Un(this,16),29),t||U2),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:RD(this,Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:Z0(this,u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return;case 10:fm(this,on(un(t)));return;case 11:am(this,on(un(t)));return;case 12:hm(this,on(un(t)));return;case 13:bX(this,Ae(t));return;case 15:lm(this,on(un(t)));return;case 16:dm(this,on(un(t)));return;case 18:S2e(this,on(un(t)));return;case 20:NY(this,on(un(t)));return;case 21:AQ(this,u(t,19));return;case 23:!this.a&&(this.a=new Eg(ng,this,23)),me(this.a),!this.a&&(this.a=new Eg(ng,this,23)),Kt(this.a,u(t,16));return}Jo(this,e-se((An(),U2)),$n((i=u(Un(this,16),29),i||U2),e),t)},o.ii=function(){return An(),U2},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,90)&&hw(Zu(u(this.Cb,90)),4),zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:Z0(this,1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return;case 10:fm(this,!0);return;case 11:am(this,!1);return;case 12:hm(this,!1);return;case 13:this.i=null,kC(this,null);return;case 15:lm(this,!1);return;case 16:dm(this,!1);return;case 18:LY(this,!1),L(this.Cb,90)&&hw(Zu(u(this.Cb,90)),2);return;case 20:NY(this,!0);return;case 21:AQ(this,null);return;case 23:!this.a&&(this.a=new Eg(ng,this,23)),me(this.a);return}Wo(this,e-se((An(),U2)),$n((t=u(Un(this,16),29),t||U2),e))},o.pi=function(){eY(this),I4(Nr((Lu(),zi),this)),gs(this),this.Bb|=1},o.uk=function(){return br(this)},o._k=function(){var e;return e=br(this),!!e&&(e.Bb&kc)!=0},o.al=function(){return(this.Bb&kc)!=0},o.bl=function(){return(this.Bb&hr)!=0},o.Yk=function(e,t){return this.c=null,jY(this,e,t)},o.Ib=function(){var e;return this.Db&64?$S(this):(e=new ls($S(this)),e.a+=" (containment: ",ql(e,(this.Bb&kc)!=0),e.a+=", resolveProxies: ",ql(e,(this.Bb&hr)!=0),e.a+=")",e.a)},w(qn,"EReferenceImpl",102),b(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},Tvn),o.Fb=function(e){return this===e},o.ld=function(){return this.b},o.md=function(){return this.c},o.Hb=function(){return lb(this)},o.Di=function(e){L0e(this,Ae(e))},o.nd=function(e){return p0e(this,Ae(e))},o.Lh=function(e,t,i){var r;switch(e){case 0:return this.b;case 1:return this.c}return zo(this,e-se((An(),ar)),$n((r=u(Un(this,16),29),r||ar),e),t,i)},o.Wh=function(e){var t;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return Uo(this,e-se((An(),ar)),$n((t=u(Un(this,16),29),t||ar),e))},o.bi=function(e,t){var i;switch(e){case 0:N0e(this,Ae(t));return;case 1:PQ(this,Ae(t));return}Jo(this,e-se((An(),ar)),$n((i=u(Un(this,16),29),i||ar),e),t)},o.ii=function(){return An(),ar},o.ki=function(e){var t;switch(e){case 0:SQ(this,null);return;case 1:PQ(this,null);return}Wo(this,e-se((An(),ar)),$n((t=u(Un(this,16),29),t||ar),e))},o.Bi=function(){var e;return this.a==-1&&(e=this.b,this.a=e==null?0:t1(e)),this.a},o.Ci=function(e){this.a=e},o.Ib=function(){var e;return this.Db&64?Hs(this):(e=new ls(Hs(this)),e.a+=" (key: ",Er(e,this.b),e.a+=", value: ",Er(e,this.c),e.a+=")",e.a)},o.a=-1,o.b=null,o.c=null;var pc=w(qn,"EStringToStringMapEntryImpl",561),Qoe=Dt(Ct,"FeatureMap/Entry/Internal");b(576,1,VP),o.xl=function(e){return this.yl(u(e,54))},o.yl=function(e){return this.xl(e)},o.Fb=function(e){var t,i;return this===e?!0:L(e,76)?(t=u(e,76),t.Lk()==this.c?(i=this.md(),i==null?t.md()==null:rt(i,t.md())):!1):!1},o.Lk=function(){return this.c},o.Hb=function(){var e;return e=this.md(),mt(this.c)^(e==null?0:mt(e))},o.Ib=function(){var e,t;return e=this.c,t=jo(e.qk()).yi(),e.xe(),(t!=null&&t.length!=0?t+":"+e.xe():e.xe())+"="+this.md()},w(qn,"EStructuralFeatureImpl/BasicFeatureMapEntry",576),b(791,576,VP,dV),o.yl=function(e){return new dV(this.c,e)},o.md=function(){return this.a},o.zl=function(e,t,i){return gve(this,e,this.a,t,i)},o.Al=function(e,t,i){return pve(this,e,this.a,t,i)},w(qn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791),b(1350,1,{},DTn),o.yk=function(e,t,i,r,c){var s;return s=u(x4(e,this.b),220),s.Yl(this.a).Fk(r)},o.zk=function(e,t,i,r,c){var s;return s=u(x4(e,this.b),220),s.Pl(this.a,r,c)},o.Ak=function(e,t,i,r,c){var s;return s=u(x4(e,this.b),220),s.Ql(this.a,r,c)},o.Bk=function(e,t,i){var r;return r=u(x4(e,this.b),220),r.Yl(this.a).Qj()},o.Ck=function(e,t,i,r){var c;c=u(x4(e,this.b),220),c.Yl(this.a).Wb(r)},o.Dk=function(e,t,i){return u(x4(e,this.b),220).Yl(this.a)},o.Ek=function(e,t,i){var r;r=u(x4(e,this.b),220),r.Yl(this.a).Gk()},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350),b(91,1,{},Xl,Za,Wl,rd),o.yk=function(e,t,i,r,c){var s;if(s=t.li(i),s==null&&t.mi(i,s=XS(this,e)),!c)switch(this.e){case 50:case 41:return u(s,597).bk();case 40:return u(s,220).Vl()}return s},o.zk=function(e,t,i,r,c){var s,f;return f=t.li(i),f==null&&t.mi(i,f=XS(this,e)),s=u(f,71).Wk(r,c),s},o.Ak=function(e,t,i,r,c){var s;return s=t.li(i),s!=null&&(c=u(s,71).Xk(r,c)),c},o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null&&u(r,79).Qj()},o.Ck=function(e,t,i,r){var c;c=u(t.li(i),79),!c&&t.mi(i,c=XS(this,e)),c.Wb(r)},o.Dk=function(e,t,i){var r,c;return c=t.li(i),c==null&&t.mi(i,c=XS(this,e)),L(c,79)?u(c,79):(r=u(t.li(i),15),new Eyn(r))},o.Ek=function(e,t,i){var r;r=u(t.li(i),79),!r&&t.mi(i,r=XS(this,e)),r.Gk()},o.b=0,o.e=0,w(qn,"EStructuralFeatureImpl/InternalSettingDelegateMany",91),b(512,1,{}),o.zk=function(e,t,i,r,c){throw T(new Ie)},o.Ak=function(e,t,i,r,c){throw T(new Ie)},o.Dk=function(e,t,i){return new LOn(this,e,t,i)};var rl;w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512),b(1367,1,CF,LOn),o.Fk=function(e){return this.a.yk(this.c,this.d,this.b,e,!0)},o.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},o.Wb=function(e){this.a.Ck(this.c,this.d,this.b,e)},o.Gk=function(){this.a.Ek(this.c,this.d,this.b)},o.b=0,w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367),b(784,512,{},eJ),o.yk=function(e,t,i,r,c){return SR(e,e.Ph(),e.Fh())==this.b?this.bl()&&r?dR(e):e.Ph():null},o.zk=function(e,t,i,r,c){var s,f;return e.Ph()&&(c=(s=e.Fh(),s>=0?e.Ah(c):e.Ph().Th(e,-1-s,null,c))),f=At(e.Dh(),this.e),e.Ch(r,f,c)},o.Ak=function(e,t,i,r,c){var s;return s=At(e.Dh(),this.e),e.Ch(null,s,c)},o.Bk=function(e,t,i){var r;return r=At(e.Dh(),this.e),!!e.Ph()&&e.Fh()==r},o.Ck=function(e,t,i,r){var c,s,f,h,l;if(r!=null&&!AR(this.a,r))throw T(new i4(WP+(L(r,58)?HZ(u(r,58).Dh()):sQ(wo(r)))+JP+this.a+"'"));if(c=e.Ph(),f=At(e.Dh(),this.e),x(r)!==x(c)||e.Fh()!=f&&r!=null){if(mm(e,u(r,58)))throw T(new Gn(w8+e.Ib()));l=null,c&&(l=(s=e.Fh(),s>=0?e.Ah(l):e.Ph().Th(e,-1-s,null,l))),h=u(r,54),h&&(l=h.Rh(e,At(h.Dh(),this.b),null,l)),l=e.Ch(h,f,l),l&&l.oj()}else e.vh()&&e.wh()&&it(e,new Mi(e,1,f,r,r))},o.Ek=function(e,t,i){var r,c,s,f;r=e.Ph(),r?(f=(c=e.Fh(),c>=0?e.Ah(null):e.Ph().Th(e,-1-c,null,null)),s=At(e.Dh(),this.e),f=e.Ch(null,s,f),f&&f.oj()):e.vh()&&e.wh()&&it(e,new H6(e,1,this.e,null,null))},o.bl=function(){return!1},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784),b(1351,784,{},jPn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351),b(574,512,{}),o.yk=function(e,t,i,r,c){var s;return s=t.li(i),s==null?this.b:x(s)===x(rl)?null:s},o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null&&(x(r)===x(rl)||!rt(r,this.b))},o.Ck=function(e,t,i,r){var c,s;e.vh()&&e.wh()?(c=(s=t.li(i),s==null?this.b:x(s)===x(rl)?null:s),r==null?this.c!=null?(t.mi(i,null),r=this.b):this.b!=null?t.mi(i,rl):t.mi(i,null):(this.Bl(r),t.mi(i,r)),it(e,this.d.Cl(e,1,this.e,c,r))):r==null?this.c!=null?t.mi(i,null):this.b!=null?t.mi(i,rl):t.mi(i,null):(this.Bl(r),t.mi(i,r))},o.Ek=function(e,t,i){var r,c;e.vh()&&e.wh()?(r=(c=t.li(i),c==null?this.b:x(c)===x(rl)?null:c),t.ni(i),it(e,this.d.Cl(e,1,this.e,r,this.b))):t.ni(i)},o.Bl=function(e){throw T(new Dyn)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574),b(h2,1,{},Cvn),o.Cl=function(e,t,i,r,c){return new H6(e,t,i,r,c)},o.Dl=function(e,t,i,r,c,s){return new TD(e,t,i,r,c,s)};var zdn,Xdn,Vdn,Wdn,Jdn,Qdn,Ydn,TU,Zdn;w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",h2),b(1368,h2,{},Svn),o.Cl=function(e,t,i,r,c){return new LJ(e,t,i,on(un(r)),on(un(c)))},o.Dl=function(e,t,i,r,c,s){return new iLn(e,t,i,on(un(r)),on(un(c)),s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368),b(1369,h2,{},Pvn),o.Cl=function(e,t,i,r,c){return new aQ(e,t,i,u(r,222).a,u(c,222).a)},o.Dl=function(e,t,i,r,c,s){return new JAn(e,t,i,u(r,222).a,u(c,222).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369),b(1370,h2,{},Ivn),o.Cl=function(e,t,i,r,c){return new dQ(e,t,i,u(r,180).a,u(c,180).a)},o.Dl=function(e,t,i,r,c,s){return new QAn(e,t,i,u(r,180).a,u(c,180).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370),b(1371,h2,{},Ovn),o.Cl=function(e,t,i,r,c){return new OJ(e,t,i,$(B(r)),$(B(c)))},o.Dl=function(e,t,i,r,c,s){return new YAn(e,t,i,$(B(r)),$(B(c)),s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371),b(1372,h2,{},Avn),o.Cl=function(e,t,i,r,c){return new gQ(e,t,i,u(r,161).a,u(c,161).a)},o.Dl=function(e,t,i,r,c,s){return new ZAn(e,t,i,u(r,161).a,u(c,161).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372),b(1373,h2,{},Lvn),o.Cl=function(e,t,i,r,c){return new AJ(e,t,i,u(r,17).a,u(c,17).a)},o.Dl=function(e,t,i,r,c,s){return new nLn(e,t,i,u(r,17).a,u(c,17).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373),b(1374,h2,{},Nvn),o.Cl=function(e,t,i,r,c){return new bQ(e,t,i,u(r,168).a,u(c,168).a)},o.Dl=function(e,t,i,r,c,s){return new eLn(e,t,i,u(r,168).a,u(c,168).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374),b(1375,h2,{},Dvn),o.Cl=function(e,t,i,r,c){return new wQ(e,t,i,u(r,191).a,u(c,191).a)},o.Dl=function(e,t,i,r,c,s){return new tLn(e,t,i,u(r,191).a,u(c,191).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375),b(1353,574,{},NOn),o.Bl=function(e){if(!this.a.fk(e))throw T(new i4(WP+wo(e)+JP+this.a+"'"))},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353),b(1354,574,{},kIn),o.Bl=function(e){},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354),b(785,574,{}),o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null},o.Ck=function(e,t,i,r){var c,s;e.vh()&&e.wh()?(c=!0,s=t.li(i),s==null?(c=!1,s=this.b):x(s)===x(rl)&&(s=null),r==null?this.c!=null?(t.mi(i,null),r=this.b):t.mi(i,rl):(this.Bl(r),t.mi(i,r)),it(e,this.d.Dl(e,1,this.e,s,r,!c))):r==null?this.c!=null?t.mi(i,null):t.mi(i,rl):(this.Bl(r),t.mi(i,r))},o.Ek=function(e,t,i){var r,c;e.vh()&&e.wh()?(r=!0,c=t.li(i),c==null?(r=!1,c=this.b):x(c)===x(rl)&&(c=null),t.ni(i),it(e,this.d.Dl(e,2,this.e,c,this.b,r))):t.ni(i)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785),b(1355,785,{},DOn),o.Bl=function(e){if(!this.a.fk(e))throw T(new i4(WP+wo(e)+JP+this.a+"'"))},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355),b(1356,785,{},yIn),o.Bl=function(e){},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356),b(410,512,{},oT),o.yk=function(e,t,i,r,c){var s,f,h,l,a;if(a=t.li(i),this.tk()&&x(a)===x(rl))return null;if(this.bl()&&r&&a!=null){if(h=u(a,54),h.Vh()&&(l=ea(e,h),h!=l)){if(!AR(this.a,l))throw T(new i4(WP+wo(l)+JP+this.a+"'"));t.mi(i,a=l),this.al()&&(s=u(l,54),f=h.Th(e,this.b?At(h.Dh(),this.b):-1-At(e.Dh(),this.e),null,null),!s.Ph()&&(f=s.Rh(e,this.b?At(s.Dh(),this.b):-1-At(e.Dh(),this.e),null,f)),f&&f.oj()),e.vh()&&e.wh()&&it(e,new H6(e,9,this.e,h,l))}return a}else return a},o.zk=function(e,t,i,r,c){var s,f;return f=t.li(i),x(f)===x(rl)&&(f=null),t.mi(i,r),this.Mj()?x(f)!==x(r)&&f!=null&&(s=u(f,54),c=s.Th(e,At(s.Dh(),this.b),null,c)):this.al()&&f!=null&&(c=u(f,54).Th(e,-1-At(e.Dh(),this.e),null,c)),e.vh()&&e.wh()&&(!c&&(c=new R1(4)),c.nj(new H6(e,1,this.e,f,r))),c},o.Ak=function(e,t,i,r,c){var s;return s=t.li(i),x(s)===x(rl)&&(s=null),t.ni(i),e.vh()&&e.wh()&&(!c&&(c=new R1(4)),this.tk()?c.nj(new H6(e,2,this.e,s,null)):c.nj(new H6(e,1,this.e,s,null))),c},o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null},o.Ck=function(e,t,i,r){var c,s,f,h,l;if(r!=null&&!AR(this.a,r))throw T(new i4(WP+(L(r,58)?HZ(u(r,58).Dh()):sQ(wo(r)))+JP+this.a+"'"));l=t.li(i),h=l!=null,this.tk()&&x(l)===x(rl)&&(l=null),f=null,this.Mj()?x(l)!==x(r)&&(l!=null&&(c=u(l,54),f=c.Th(e,At(c.Dh(),this.b),null,f)),r!=null&&(c=u(r,54),f=c.Rh(e,At(c.Dh(),this.b),null,f))):this.al()&&x(l)!==x(r)&&(l!=null&&(f=u(l,54).Th(e,-1-At(e.Dh(),this.e),null,f)),r!=null&&(f=u(r,54).Rh(e,-1-At(e.Dh(),this.e),null,f))),r==null&&this.tk()?t.mi(i,rl):t.mi(i,r),e.vh()&&e.wh()?(s=new TD(e,1,this.e,l,r,this.tk()&&!h),f?(f.nj(s),f.oj()):it(e,s)):f&&f.oj()},o.Ek=function(e,t,i){var r,c,s,f,h;h=t.li(i),f=h!=null,this.tk()&&x(h)===x(rl)&&(h=null),s=null,h!=null&&(this.Mj()?(r=u(h,54),s=r.Th(e,At(r.Dh(),this.b),null,s)):this.al()&&(s=u(h,54).Th(e,-1-At(e.Dh(),this.e),null,s))),t.ni(i),e.vh()&&e.wh()?(c=new TD(e,this.tk()?2:1,this.e,h,null,f),s?(s.nj(c),s.oj()):it(e,c)):s&&s.oj()},o.Mj=function(){return!1},o.al=function(){return!1},o.bl=function(){return!1},o.tk=function(){return!1},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410),b(575,410,{},IN),o.al=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575),b(1359,575,{},vSn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359),b(787,575,{},nV),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787),b(1361,787,{},kSn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361),b(650,575,{},HN),o.Mj=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650),b(1360,650,{},EPn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360),b(788,650,{},FV),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788),b(1362,788,{},MPn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362),b(651,410,{},eV),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651),b(1363,651,{},ySn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363),b(789,651,{},KV),o.Mj=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789),b(1364,789,{},TPn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364),b(1357,410,{},jSn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357),b(786,410,{},BV),o.Mj=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786),b(1358,786,{},CPn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358),b(790,576,VP,xW),o.yl=function(e){return new xW(this.a,this.c,e)},o.md=function(){return this.b},o.zl=function(e,t,i){return b4e(this,e,this.b,i)},o.Al=function(e,t,i){return w4e(this,e,this.b,i)},w(qn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790),b(1365,1,CF,Eyn),o.Fk=function(e){return this.a},o.Qj=function(){return L(this.a,97)?u(this.a,97).Qj():!this.a.dc()},o.Wb=function(e){this.a.$b(),this.a.Gc(u(e,15))},o.Gk=function(){L(this.a,97)?u(this.a,97).Gk():this.a.$b()},w(qn,"EStructuralFeatureImpl/SettingMany",1365),b(1366,576,VP,VLn),o.xl=function(e){return new LN((at(),R9),this.b.ri(this.a,e))},o.md=function(){return null},o.zl=function(e,t,i){return i},o.Al=function(e,t,i){return i},w(qn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366),b(652,576,VP,LN),o.xl=function(e){return new LN(this.c,e)},o.md=function(){return this.a},o.zl=function(e,t,i){return i},o.Al=function(e,t,i){return i},w(qn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652),b(403,506,Mh,W3),o.aj=function(e){return F(Ss,Kn,29,e,0,1)},o.Yi=function(){return!1},w(qn,"ESuperAdapter/1",403),b(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},UA),o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new K6(this,jr,this)),this.a}return zo(this,e-se((An(),E0)),$n((r=u(Un(this,16),29),r||E0),e),t,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 2:return!this.a&&(this.a=new K6(this,jr,this)),cr(this.a,e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),E0)),t),69),c.wk().Ak(this,iu(this),t-se((An(),E0)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return Uo(this,e-se((An(),E0)),$n((t=u(Un(this,16),29),t||E0),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:zc(this,Ae(t));return;case 2:!this.a&&(this.a=new K6(this,jr,this)),me(this.a),!this.a&&(this.a=new K6(this,jr,this)),Kt(this.a,u(t,16));return}Jo(this,e-se((An(),E0)),$n((i=u(Un(this,16),29),i||E0),e),t)},o.ii=function(){return An(),E0},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:!this.a&&(this.a=new K6(this,jr,this)),me(this.a);return}Wo(this,e-se((An(),E0)),$n((t=u(Un(this,16),29),t||E0),e))},w(qn,"ETypeParameterImpl",457),b(458,83,Qr,K6),o.Nj=function(e,t){return Iye(this,u(e,89),t)},o.Oj=function(e,t){return Oye(this,u(e,89),t)},w(qn,"ETypeParameterImpl/1",458),b(647,45,n2,aL),o.ec=function(){return new DE(this)},w(qn,"ETypeParameterImpl/2",647),b(570,Ff,Nu,DE),o.Fc=function(e){return VSn(this,u(e,89))},o.Gc=function(e){var t,i,r;for(r=!1,i=e.Kc();i.Ob();)t=u(i.Pb(),89),Ve(this.a,t,"")==null&&(r=!0);return r},o.$b=function(){Hu(this.a)},o.Hc=function(e){return Zc(this.a,e)},o.Kc=function(){var e;return e=new sd(new Ua(this.a).a),new $E(e)},o.Mc=function(e){return KNn(this,e)},o.gc=function(){return c6(this.a)},w(qn,"ETypeParameterImpl/2/1",570),b(571,1,Pi,$E),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(Nb(this.a).ld(),89)},o.Ob=function(){return this.a.b},o.Qb=function(){XDn(this.a)},w(qn,"ETypeParameterImpl/2/1/1",571),b(1329,45,n2,djn),o._b=function(e){return Si(e)?SD(this,e):!!wr(this.f,e)},o.xc=function(e){var t,i;return t=Si(e)?Dc(this,e):Fr(wr(this.f,e)),L(t,851)?(i=u(t,851),t=i.Kk(),Ve(this,u(e,241),t),t):t??(e==null?(AL(),Zoe):null)},w(qn,"EValidatorRegistryImpl",1329),b(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},$vn),o.ri=function(e,t){switch(e.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:Jr(t);case 25:return Cme(t);case 27:return F4e(t);case 28:return _4e(t);case 29:return t==null?null:TCn(A9[0],u(t,206));case 41:return t==null?"":Xa(u(t,297));case 42:return Jr(t);case 50:return Ae(t);default:throw T(new Gn(ev+e.xe()+n0))}},o.si=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;switch(e.G==-1&&(e.G=(p=jo(e),p?f1(p.vi(),e):-1)),e.G){case 0:return i=new fL,i;case 1:return t=new eG,t;case 2:return r=new cG,r;case 4:return c=new xE,c;case 5:return s=new ajn,s;case 6:return f=new Ryn,f;case 7:return h=new uG,h;case 10:return a=new TE,a;case 11:return d=new hL,d;case 12:return g=new HOn,g;case 13:return m=new lL,m;case 14:return k=new rV,k;case 17:return j=new Tvn,j;case 18:return l=new Jd,l;case 19:return P=new UA,P;default:throw T(new Gn(hF+e.zb+n0))}},o.ti=function(e,t){switch(e.hk()){case 20:return t==null?null:new Cz(t);case 21:return t==null?null:new H1(t);case 23:case 22:return t==null?null:B8e(t);case 26:case 24:return t==null?null:ak(So(t,-128,127)<<24>>24);case 25:return rTe(t);case 27:return C7e(t);case 28:return S7e(t);case 29:return Jye(t);case 32:case 31:return t==null?null:sw(t);case 38:case 37:return t==null?null:new qG(t);case 40:case 39:return t==null?null:Y(So(t,Wi,et));case 41:return null;case 42:return t==null,null;case 44:case 43:return t==null?null:Tl(zS(t));case 49:case 48:return t==null?null:sm(So(t,QP,32767)<<16>>16);case 50:return t;default:throw T(new Gn(ev+e.xe()+n0))}},w(qn,"EcoreFactoryImpl",1349),b(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},aOn),o.gb=!1,o.hb=!1;var nbn,Yoe=!1;w(qn,"EcorePackageImpl",560),b(1234,1,{851:1},xvn),o.Kk=function(){return KCn(),nse},w(qn,"EcorePackageImpl/1",1234),b(1243,1,ze,Rvn),o.fk=function(e){return L(e,155)},o.gk=function(e){return F(fE,Kn,155,e,0,1)},w(qn,"EcorePackageImpl/10",1243),b(1244,1,ze,Kvn),o.fk=function(e){return L(e,197)},o.gk=function(e){return F(gU,Kn,197,e,0,1)},w(qn,"EcorePackageImpl/11",1244),b(1245,1,ze,Bvn),o.fk=function(e){return L(e,58)},o.gk=function(e){return F(Aa,Kn,58,e,0,1)},w(qn,"EcorePackageImpl/12",1245),b(1246,1,ze,Fvn),o.fk=function(e){return L(e,411)},o.gk=function(e){return F(Ps,Ucn,62,e,0,1)},w(qn,"EcorePackageImpl/13",1246),b(1247,1,ze,_vn),o.fk=function(e){return L(e,241)},o.gk=function(e){return F(Ef,Kn,241,e,0,1)},w(qn,"EcorePackageImpl/14",1247),b(1248,1,ze,Hvn),o.fk=function(e){return L(e,518)},o.gk=function(e){return F(y0,Kn,2116,e,0,1)},w(qn,"EcorePackageImpl/15",1248),b(1249,1,ze,qvn),o.fk=function(e){return L(e,102)},o.gk=function(e){return F(eg,f2,19,e,0,1)},w(qn,"EcorePackageImpl/16",1249),b(1250,1,ze,Uvn),o.fk=function(e){return L(e,179)},o.gk=function(e){return F(ku,f2,179,e,0,1)},w(qn,"EcorePackageImpl/17",1250),b(1251,1,ze,Gvn),o.fk=function(e){return L(e,481)},o.gk=function(e){return F(Zw,Kn,481,e,0,1)},w(qn,"EcorePackageImpl/18",1251),b(1252,1,ze,zvn),o.fk=function(e){return L(e,561)},o.gk=function(e){return F(pc,nJn,561,e,0,1)},w(qn,"EcorePackageImpl/19",1252),b(1235,1,ze,Xvn),o.fk=function(e){return L(e,331)},o.gk=function(e){return F(ng,f2,35,e,0,1)},w(qn,"EcorePackageImpl/2",1235),b(1253,1,ze,Vvn),o.fk=function(e){return L(e,248)},o.gk=function(e){return F(jr,pJn,89,e,0,1)},w(qn,"EcorePackageImpl/20",1253),b(1254,1,ze,Wvn),o.fk=function(e){return L(e,457)},o.gk=function(e){return F(fu,Kn,850,e,0,1)},w(qn,"EcorePackageImpl/21",1254),b(1255,1,ze,Jvn),o.fk=function(e){return D0(e)},o.gk=function(e){return F(Gt,J,485,e,8,1)},w(qn,"EcorePackageImpl/22",1255),b(1256,1,ze,Qvn),o.fk=function(e){return L(e,195)},o.gk=function(e){return F(Ru,J,195,e,0,2)},w(qn,"EcorePackageImpl/23",1256),b(1257,1,ze,Yvn),o.fk=function(e){return L(e,222)},o.gk=function(e){return F(p3,J,222,e,0,1)},w(qn,"EcorePackageImpl/24",1257),b(1258,1,ze,Zvn),o.fk=function(e){return L(e,180)},o.gk=function(e){return F(S8,J,180,e,0,1)},w(qn,"EcorePackageImpl/25",1258),b(1259,1,ze,n6n),o.fk=function(e){return L(e,206)},o.gk=function(e){return F(oI,J,206,e,0,1)},w(qn,"EcorePackageImpl/26",1259),b(1260,1,ze,e6n),o.fk=function(e){return!1},o.gk=function(e){return F(mbn,Kn,2215,e,0,1)},w(qn,"EcorePackageImpl/27",1260),b(1261,1,ze,t6n),o.fk=function(e){return $0(e)},o.gk=function(e){return F(si,J,345,e,7,1)},w(qn,"EcorePackageImpl/28",1261),b(1262,1,ze,i6n),o.fk=function(e){return L(e,61)},o.gk=function(e){return F(Ndn,kw,61,e,0,1)},w(qn,"EcorePackageImpl/29",1262),b(1236,1,ze,r6n),o.fk=function(e){return L(e,519)},o.gk=function(e){return F(Ue,{3:1,4:1,5:1,2033:1},598,e,0,1)},w(qn,"EcorePackageImpl/3",1236),b(1263,1,ze,c6n),o.fk=function(e){return L(e,582)},o.gk=function(e){return F(xdn,Kn,2039,e,0,1)},w(qn,"EcorePackageImpl/30",1263),b(1264,1,ze,u6n),o.fk=function(e){return L(e,160)},o.gk=function(e){return F(cbn,kw,160,e,0,1)},w(qn,"EcorePackageImpl/31",1264),b(1265,1,ze,o6n),o.fk=function(e){return L(e,76)},o.gk=function(e){return F(MA,CJn,76,e,0,1)},w(qn,"EcorePackageImpl/32",1265),b(1266,1,ze,s6n),o.fk=function(e){return L(e,161)},o.gk=function(e){return F(sv,J,161,e,0,1)},w(qn,"EcorePackageImpl/33",1266),b(1267,1,ze,f6n),o.fk=function(e){return L(e,17)},o.gk=function(e){return F(Gi,J,17,e,0,1)},w(qn,"EcorePackageImpl/34",1267),b(1268,1,ze,h6n),o.fk=function(e){return L(e,297)},o.gk=function(e){return F(iun,Kn,297,e,0,1)},w(qn,"EcorePackageImpl/35",1268),b(1269,1,ze,l6n),o.fk=function(e){return L(e,168)},o.gk=function(e){return F(t0,J,168,e,0,1)},w(qn,"EcorePackageImpl/36",1269),b(1270,1,ze,a6n),o.fk=function(e){return L(e,85)},o.gk=function(e){return F(run,Kn,85,e,0,1)},w(qn,"EcorePackageImpl/37",1270),b(1271,1,ze,d6n),o.fk=function(e){return L(e,599)},o.gk=function(e){return F(ebn,Kn,599,e,0,1)},w(qn,"EcorePackageImpl/38",1271),b(1272,1,ze,b6n),o.fk=function(e){return!1},o.gk=function(e){return F(vbn,Kn,2216,e,0,1)},w(qn,"EcorePackageImpl/39",1272),b(1237,1,ze,w6n),o.fk=function(e){return L(e,90)},o.gk=function(e){return F(Ss,Kn,29,e,0,1)},w(qn,"EcorePackageImpl/4",1237),b(1273,1,ze,g6n),o.fk=function(e){return L(e,191)},o.gk=function(e){return F(i0,J,191,e,0,1)},w(qn,"EcorePackageImpl/40",1273),b(1274,1,ze,p6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(qn,"EcorePackageImpl/41",1274),b(1275,1,ze,m6n),o.fk=function(e){return L(e,596)},o.gk=function(e){return F($dn,Kn,596,e,0,1)},w(qn,"EcorePackageImpl/42",1275),b(1276,1,ze,v6n),o.fk=function(e){return!1},o.gk=function(e){return F(kbn,J,2217,e,0,1)},w(qn,"EcorePackageImpl/43",1276),b(1277,1,ze,k6n),o.fk=function(e){return L(e,44)},o.gk=function(e){return F(Id,WS,44,e,0,1)},w(qn,"EcorePackageImpl/44",1277),b(1238,1,ze,y6n),o.fk=function(e){return L(e,142)},o.gk=function(e){return F(Mf,Kn,142,e,0,1)},w(qn,"EcorePackageImpl/5",1238),b(1239,1,ze,j6n),o.fk=function(e){return L(e,156)},o.gk=function(e){return F(jU,Kn,156,e,0,1)},w(qn,"EcorePackageImpl/6",1239),b(1240,1,ze,E6n),o.fk=function(e){return L(e,469)},o.gk=function(e){return F(EA,Kn,685,e,0,1)},w(qn,"EcorePackageImpl/7",1240),b(1241,1,ze,M6n),o.fk=function(e){return L(e,582)},o.gk=function(e){return F(Kl,Kn,694,e,0,1)},w(qn,"EcorePackageImpl/8",1241),b(1242,1,ze,T6n),o.fk=function(e){return L(e,480)},o.gk=function(e){return F(O9,Kn,480,e,0,1)},w(qn,"EcorePackageImpl/9",1242),b(1038,2080,ZWn,Djn),o.Mi=function(e,t){b5e(this,u(t,424))},o.Qi=function(e,t){P_n(this,e,u(t,424))},w(qn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038),b(1039,152,Wy,tOn),o.jj=function(){return this.a.a},w(qn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039),b(1067,1066,{},gCn),w("org.eclipse.emf.ecore.plugin","EcorePlugin",1067);var ebn=Dt(SJn,"Resource");b(799,1524,PJn),o.Hl=function(e){},o.Il=function(e){},o.El=function(){return!this.a&&(this.a=new iL(this)),this.a},o.Fl=function(e){var t,i,r,c,s;if(r=e.length,r>0)if(zn(0,e.length),e.charCodeAt(0)==47){for(s=new Gc(4),c=1,t=1;t<r;++t)zn(t,e.length),e.charCodeAt(t)==47&&(nn(s,c==t?"":(Ri(c,t,e.length),e.substr(c,t-c))),c=t+1);return nn(s,(zn(c,e.length+1),e.substr(c))),pke(this,s)}else zn(r-1,e.length),e.charCodeAt(r-1)==63&&(i=CV(e,wu(63),r-2),i>0&&(e=(Ri(0,i,e.length),e.substr(0,i))));return qEe(this,e)},o.Gl=function(){return this.c},o.Ib=function(){var e;return Xa(this.Rm)+"@"+(e=mt(this)>>>0,e.toString(16))+" uri='"+this.d+"'"},o.b=!1,w(SF,"ResourceImpl",799),b(1525,799,PJn,Myn),w(SF,"BinaryResourceImpl",1525),b(1190,708,yF),o.bj=function(e){return L(e,58)?Dge(this,u(e,58)):L(e,599)?new ne(u(e,599).El()):x(e)===x(this.f)?u(e,16).Kc():(m4(),aE.a)},o.Ob=function(){return xnn(this)},o.a=!1,w(Ct,"EcoreUtil/ContentTreeIterator",1190),b(1526,1190,yF,LIn),o.bj=function(e){return x(e)===x(this.f)?u(e,15).Kc():new ILn(u(e,58))},w(SF,"ResourceImpl/5",1526),b(658,2092,gJn,iL),o.Hc=function(e){return this.i<=4?km(this,e):L(e,54)&&u(e,54).Jh()==this.a},o.Mi=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},o.Oi=function(e,t){e==0?this.a.b||(this.a.b=!0):t$(this,e,t)},o.Qi=function(e,t){},o.Ri=function(e,t,i){},o.Lj=function(){return 2},o.jj=function(){return this.a},o.Mj=function(){return!0},o.Nj=function(e,t){var i;return i=u(e,54),t=i.fi(this.a,t),t},o.Oj=function(e,t){var i;return i=u(e,54),i.fi(null,t)},o.Pj=function(){return!1},o.Si=function(){return!0},o.aj=function(e){return F(Aa,Kn,58,e,0,1)},o.Yi=function(){return!1},w(SF,"ResourceImpl/ContentsEList",658),b(970,2062,Bm,Tyn),o.fd=function(e){return this.a.Ki(e)},o.gc=function(){return this.a.gc()},w(Ct,"AbstractSequentialInternalEList/1",970);var tbn,ibn,zi,rbn;b(634,1,{},DPn);var TA,CA;w(Ct,"BasicExtendedMetaData",634),b(1181,1,{},xTn),o.Jl=function(){return null},o.Kl=function(){return this.a==-2&&dfe(this,qye(this.d,this.b)),this.a},o.Ll=function(){return null},o.Ml=function(){return Ln(),Ln(),sr},o.xe=function(){return this.c==rv&&bfe(this,YKn(this.d,this.b)),this.c},o.Nl=function(){return 0},o.a=-2,o.c=rv,w(Ct,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181),b(1182,1,{},cLn),o.Jl=function(){return this.a==($4(),TA)&&pfe(this,HSe(this.f,this.b)),this.a},o.Kl=function(){return 0},o.Ll=function(){return this.c==($4(),TA)&&wfe(this,qSe(this.f,this.b)),this.c},o.Ml=function(){return!this.d&&vfe(this,SIe(this.f,this.b)),this.d},o.xe=function(){return this.e==rv&&yfe(this,YKn(this.f,this.b)),this.e},o.Nl=function(){return this.g==-2&&Efe(this,sye(this.f,this.b)),this.g},o.e=rv,o.g=-2,w(Ct,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182),b(1180,1,{},RTn),o.b=!1,o.c=!1,w(Ct,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180),b(1183,1,{},uLn),o.c=-2,o.e=rv,o.f=rv,w(Ct,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183),b(593,632,Qr,QM),o.Lj=function(){return this.c},o.ol=function(){return!1},o.Wi=function(e,t){return t},o.c=0,w(Ct,"EDataTypeEList",593);var cbn=Dt(Ct,"FeatureMap");b(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},Bt),o.bd=function(e,t){oCe(this,e,u(t,76))},o.Fc=function(e){return TTe(this,u(e,76))},o.Hi=function(e){Awe(this,u(e,76))},o.Nj=function(e,t){return Yae(this,u(e,76),t)},o.Oj=function(e,t){return PV(this,u(e,76),t)},o.Ti=function(e,t){return NPe(this,e,t)},o.Wi=function(e,t){return vAe(this,e,u(t,76))},o.hd=function(e,t){return VCe(this,e,u(t,76))},o.Uj=function(e,t){return Zae(this,u(e,76),t)},o.Vj=function(e,t){return fPn(this,u(e,76),t)},o.Wj=function(e,t,i){return Wke(this,u(e,76),u(t,76),i)},o.Zi=function(e,t){return Jx(this,e,u(t,76))},o.Ol=function(e,t){return Sen(this,e,t)},o.cd=function(e,t){var i,r,c,s,f,h,l,a,d;for(a=new Pb(t.gc()),c=t.Kc();c.Ob();)if(r=u(c.Pb(),76),s=r.Lk(),Pl(this.e,s))(!s.Si()||!_T(this,s,r.md())&&!km(a,r))&&ve(a,r);else{for(d=ru(this.e.Dh(),s),i=u(this.g,124),f=!0,h=0;h<this.i;++h)if(l=i[h],d.am(l.Lk())){u(Bg(this,h,r),76),f=!1;break}f&&ve(a,r)}return WQ(this,e,a)},o.Gc=function(e){var t,i,r,c,s,f,h,l,a;for(l=new Pb(e.gc()),r=e.Kc();r.Ob();)if(i=u(r.Pb(),76),c=i.Lk(),Pl(this.e,c))(!c.Si()||!_T(this,c,i.md())&&!km(l,i))&&ve(l,i);else{for(a=ru(this.e.Dh(),c),t=u(this.g,124),s=!0,f=0;f<this.i;++f)if(h=t[f],a.am(h.Lk())){u(Bg(this,f,i),76),s=!1;break}s&&ve(l,i)}return Kt(this,l)},o.Fi=function(e){return this.j=-1,LR(this,this.i,e)},o.Pl=function(e,t,i){return ven(this,e,t,i)},o.Xk=function(e,t){return ly(this,e,t)},o.Ql=function(e,t,i){return Gen(this,e,t,i)},o.Rl=function(){return this},o.Sl=function(e,t){return wy(this,e,t)},o.Tl=function(e){return u(N(this,e),76).Lk()},o.Ul=function(e){return u(N(this,e),76).md()},o.Vl=function(){return this.b},o.Mj=function(){return!0},o.Tj=function(){return!0},o.Wl=function(e){return!Rk(this,e)},o.aj=function(e){return F(Qoe,CJn,343,e,0,1)},o.pl=function(e){return ON(this,e)},o.Wb=function(e){F7(this,e)},o.Xl=function(e,t){HS(this,e,t)},o.Yl=function(e){return oxn(this,e)},o.Zl=function(e){BBn(this,e)},w(Ct,"BasicFeatureMap",78),b(1960,1,Hh),o.Nb=function(e){_i(this,e)},o.Rb=function(e){if(this.g==-1)throw T(new Mu);aT(this);try{mqn(this.e,this.b,this.a,e),this.d=this.e.j,iS(this)}catch(t){throw t=Ot(t),L(t,77)?T(new Ko):T(t)}},o.Ob=function(){return W$(this)},o.Sb=function(){return NRn(this)},o.Pb=function(){return iS(this)},o.Tb=function(){return this.a},o.Ub=function(){var e;if(NRn(this))return aT(this),this.g=--this.a,this.ul()&&(e=N5(this.e,this.b,this.c,this.a,this.j),this.j=e),this.i=0,this.j;throw T(new nc)},o.Vb=function(){return this.a-1},o.Qb=function(){if(this.g==-1)throw T(new Mu);aT(this);try{l_n(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(e){throw e=Ot(e),L(e,77)?T(new Ko):T(e)}},o.ul=function(){return!1},o.Wb=function(e){if(this.g==-1)throw T(new Mu);aT(this);try{HUn(this.e,this.b,this.g,e),this.d=this.e.j}catch(t){throw t=Ot(t),L(t,77)?T(new Ko):T(t)}},o.a=0,o.c=0,o.d=0,o.f=!1,o.g=0,o.i=0,w(Ct,"FeatureMapUtil/BasicFeatureEIterator",1960),b(420,1960,Hh,Y4),o.$l=function(){var e,t,i;for(i=this.e.i,e=u(this.e.g,124);this.c<i;){if(t=e[this.c],this.k.am(t.Lk()))return this.j=this.f?t:t.md(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},o._l=function(){var e,t;for(e=u(this.e.g,124);--this.c>=0;)if(t=e[this.c],this.k.am(t.Lk()))return this.j=this.f?t:t.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},w(Ct,"BasicFeatureMap/FeatureEIterator",420),b(676,420,Hh,dN),o.ul=function(){return!0},w(Ct,"BasicFeatureMap/ResolvingFeatureEIterator",676),b(968,496,zP,CCn),o.pj=function(){return this},w(Ct,"EContentsEList/1",968),b(969,496,zP,JTn),o.ul=function(){return!1},w(Ct,"EContentsEList/2",969),b(967,287,XP,SCn),o.wl=function(e){},o.Ob=function(){return!1},o.Sb=function(){return!1},w(Ct,"EContentsEList/FeatureIteratorImpl/1",967),b(840,593,Qr,$X),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EDataTypeEList/Unsettable",840),b(1958,593,Qr,DCn),o.Si=function(){return!0},w(Ct,"EDataTypeUniqueEList",1958),b(1959,840,Qr,$Cn),o.Si=function(){return!0},w(Ct,"EDataTypeUniqueEList/Unsettable",1959),b(147,83,Qr,Cu),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectContainmentEList/Resolving",147),b(1184,555,Qr,xCn),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectContainmentEList/Unsettable/Resolving",1184),b(766,14,Qr,yV),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EObjectContainmentWithInverseEList/Unsettable",766),b(1222,766,Qr,WSn),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222),b(757,505,Qr,xX),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EObjectEList/Unsettable",757),b(338,505,Qr,Eg),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectResolvingEList",338),b(1844,757,Qr,RCn),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectResolvingEList/Unsettable",1844),b(1527,1,{},C6n);var Zoe;w(Ct,"EObjectValidator",1527),b(559,505,Qr,bT),o.il=function(){return this.d},o.jl=function(){return this.b},o.Mj=function(){return!0},o.ml=function(){return!0},o.b=0,w(Ct,"EObjectWithInverseEList",559),b(1225,559,Qr,JSn),o.ll=function(){return!0},w(Ct,"EObjectWithInverseEList/ManyInverse",1225),b(635,559,Qr,DN),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EObjectWithInverseEList/Unsettable",635),b(1224,635,Qr,QSn),o.ll=function(){return!0},w(Ct,"EObjectWithInverseEList/Unsettable/ManyInverse",1224),b(767,559,Qr,jV),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectWithInverseResolvingEList",767),b(32,767,Qr,Dn),o.ll=function(){return!0},w(Ct,"EObjectWithInverseResolvingEList/ManyInverse",32),b(768,635,Qr,EV),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectWithInverseResolvingEList/Unsettable",768),b(1223,768,Qr,YSn),o.ll=function(){return!0},w(Ct,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223),b(1185,632,Qr),o.Li=function(){return(this.b&1792)==0},o.Ni=function(){this.b|=1},o.kl=function(){return(this.b&4)!=0},o.Mj=function(){return(this.b&40)!=0},o.ll=function(){return(this.b&16)!=0},o.ml=function(){return(this.b&8)!=0},o.nl=function(){return(this.b&Cw)!=0},o.al=function(){return(this.b&32)!=0},o.ol=function(){return(this.b&Gs)!=0},o.fk=function(e){return this.d?KLn(this.d,e):this.Lk().Hk().fk(e)},o.Qj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},o.Si=function(){return(this.b&128)!=0},o.Gk=function(){var e;me(this),this.b&2&&(fo(this.e)?(e=(this.b&1)!=0,this.b&=-2,t4(this,new Bs(this.e,2,At(this.e.Dh(),this.Lk()),e,!1))):this.b&=-2)},o.Yi=function(){return(this.b&1536)==0},o.b=0,w(Ct,"EcoreEList/Generic",1185),b(1186,1185,Qr,UOn),o.Lk=function(){return this.a},w(Ct,"EcoreEList/Dynamic",1186),b(765,66,Mh,RG),o.aj=function(e){return gk(this.a.a,e)},w(Ct,"EcoreEMap/1",765),b(764,83,Qr,yW),o.Mi=function(e,t){uS(this.b,u(t,136))},o.Oi=function(e,t){_xn(this.b)},o.Pi=function(e,t,i){var r;++(r=this.b,u(t,136),r).e},o.Qi=function(e,t){cx(this.b,u(t,136))},o.Ri=function(e,t,i){cx(this.b,u(i,136)),x(i)===x(t)&&u(i,136).Ci(Jle(u(t,136).ld())),uS(this.b,u(t,136))},w(Ct,"EcoreEMap/DelegateEObjectContainmentEList",764),b(1220,141,qcn,rxn),w(Ct,"EcoreEMap/Unsettable",1220),b(1221,764,Qr,ZSn),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221),b(1189,215,n2,GIn),o.a=!1,o.b=!1,w(Ct,"EcoreUtil/Copier",1189),b(759,1,Pi,ILn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return RKn(this)},o.Pb=function(){var e;return RKn(this),e=this.b,this.b=null,e},o.Qb=function(){this.a.Qb()},w(Ct,"EcoreUtil/ProperContentIterator",759),b(1528,1527,{},C8n);var nse;w(Ct,"EcoreValidator",1528);var ese;Dt(Ct,"FeatureMapUtil/Validator"),b(1295,1,{2041:1},S6n),o.am=function(e){return!0},w(Ct,"FeatureMapUtil/1",1295),b(773,1,{2041:1},itn),o.am=function(e){var t;return this.c==e?!0:(t=un(ee(this.a,e)),t==null?WSe(this,e)?(INn(this.a,e,(_n(),ov)),!0):(INn(this.a,e,(_n(),ga)),!1):t==(_n(),ov))},o.e=!1;var CU;w(Ct,"FeatureMapUtil/BasicValidator",773),b(774,45,n2,NX),w(Ct,"FeatureMapUtil/BasicValidator/Cache",774),b(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},k7),o.bd=function(e,t){mqn(this.c,this.b,e,t)},o.Fc=function(e){return Sen(this.c,this.b,e)},o.cd=function(e,t){return gOe(this.c,this.b,e,t)},o.Gc=function(e){return I6(this,e)},o.Gi=function(e,t){lme(this.c,this.b,e,t)},o.Wk=function(e,t){return ven(this.c,this.b,e,t)},o.$i=function(e){return _S(this.c,this.b,e,!1)},o.Ii=function(){return sCn(this.c,this.b)},o.Ji=function(){return Rle(this.c,this.b)},o.Ki=function(e){return g4e(this.c,this.b,e)},o.Xk=function(e,t){return LSn(this,e,t)},o.$b=function(){cp(this)},o.Hc=function(e){return _T(this.c,this.b,e)},o.Ic=function(e){return wve(this.c,this.b,e)},o.Xb=function(e){return _S(this.c,this.b,e,!0)},o.Fk=function(e){return this},o.dd=function(e){return E3e(this.c,this.b,e)},o.dc=function(){return CM(this)},o.Qj=function(){return!Rk(this.c,this.b)},o.Kc=function(){return eme(this.c,this.b)},o.ed=function(){return tme(this.c,this.b)},o.fd=function(e){return N5e(this.c,this.b,e)},o.Ti=function(e,t){return NUn(this.c,this.b,e,t)},o.Ui=function(e,t){v4e(this.c,this.b,e,t)},o.gd=function(e){return l_n(this.c,this.b,e)},o.Mc=function(e){return mPe(this.c,this.b,e)},o.hd=function(e,t){return HUn(this.c,this.b,e,t)},o.Wb=function(e){jS(this.c,this.b),I6(this,u(e,15))},o.gc=function(){return L5e(this.c,this.b)},o.Pc=function(){return Tpe(this.c,this.b)},o.Qc=function(e){return M3e(this.c,this.b,e)},o.Ib=function(){var e,t;for(t=new Hl,t.a+="[",e=sCn(this.c,this.b);W$(e);)Er(t,A6(iS(e))),W$(e)&&(t.a+=ur);return t.a+="]",t.a},o.Gk=function(){jS(this.c,this.b)},w(Ct,"FeatureMapUtil/FeatureEList",509),b(644,39,Wy,GD),o.hj=function(e){return m5(this,e)},o.mj=function(e){var t,i,r,c,s,f,h;switch(this.d){case 1:case 2:{if(s=e.jj(),x(s)===x(this.c)&&m5(this,null)==e.hj(null))return this.g=e.ij(),e.gj()==1&&(this.d=1),!0;break}case 3:{switch(c=e.gj(),c){case 3:{if(s=e.jj(),x(s)===x(this.c)&&m5(this,null)==e.hj(null))return this.d=5,t=new Pb(2),ve(t,this.g),ve(t,e.ij()),this.g=t,!0;break}}break}case 5:{switch(c=e.gj(),c){case 3:{if(s=e.jj(),x(s)===x(this.c)&&m5(this,null)==e.hj(null))return i=u(this.g,16),i.Fc(e.ij()),!0;break}}break}case 4:{switch(c=e.gj(),c){case 3:{if(s=e.jj(),x(s)===x(this.c)&&m5(this,null)==e.hj(null))return this.d=1,this.g=e.ij(),!0;break}case 4:{if(s=e.jj(),x(s)===x(this.c)&&m5(this,null)==e.hj(null))return this.d=6,h=new Pb(2),ve(h,this.n),ve(h,e.kj()),this.n=h,f=S(C(ye,1),_e,28,15,[this.o,e.lj()]),this.g=f,!0;break}}break}case 6:{switch(c=e.gj(),c){case 4:{if(s=e.jj(),x(s)===x(this.c)&&m5(this,null)==e.hj(null))return i=u(this.n,16),i.Fc(e.kj()),f=u(this.g,53),r=F(ye,_e,28,f.length+1,15,1),Oc(f,0,r,0,f.length),r[f.length]=e.lj(),this.g=r,!0;break}}break}}return!1},w(Ct,"FeatureMapUtil/FeatureENotificationImpl",644),b(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},eT),o.Ol=function(e,t){return Sen(this.c,e,t)},o.Pl=function(e,t,i){return ven(this.c,e,t,i)},o.Ql=function(e,t,i){return Gen(this.c,e,t,i)},o.Rl=function(){return this},o.Sl=function(e,t){return wy(this.c,e,t)},o.Tl=function(e){return u(_S(this.c,this.b,e,!1),76).Lk()},o.Ul=function(e){return u(_S(this.c,this.b,e,!1),76).md()},o.Vl=function(){return this.a},o.Wl=function(e){return!Rk(this.c,e)},o.Xl=function(e,t){HS(this.c,e,t)},o.Yl=function(e){return oxn(this.c,e)},o.Zl=function(e){BBn(this.c,e)},w(Ct,"FeatureMapUtil/FeatureFeatureMap",564),b(1294,1,CF,$Tn),o.Fk=function(e){return _S(this.b,this.a,-1,e)},o.Qj=function(){return!Rk(this.b,this.a)},o.Wb=function(e){HS(this.b,this.a,e)},o.Gk=function(){jS(this.b,this.a)},w(Ct,"FeatureMapUtil/FeatureValue",1294);var F3,SU,PU,_3,tse,bE=Dt(eI,"AnyType");b(680,63,Il,kL),w(eI,"InvalidDatatypeValueException",680);var SA=Dt(eI,OJn),wE=Dt(eI,AJn),ubn=Dt(eI,LJn),ise,yc,obn,zd,rse,cse,use,ose,sse,fse,hse,lse,ase,dse,bse,G2,wse,z2,$9,gse,M0,gE,pE,pse,x9,R9;b(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},tz),o.Lh=function(e,t,i){switch(e){case 0:return i?(!this.c&&(this.c=new Bt(this,0)),this.c):(!this.c&&(this.c=new Bt(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Bt(this,0)),u($c(this.c,(at(),zd)),160)):(!this.c&&(this.c=new Bt(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Vl();case 2:return i?(!this.b&&(this.b=new Bt(this,2)),this.b):(!this.b&&(this.b=new Bt(this,2)),this.b.b)}return zo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e),t,i)},o.Uh=function(e,t,i){var r;switch(t){case 0:return!this.c&&(this.c=new Bt(this,0)),ly(this.c,e,i);case 1:return(!this.c&&(this.c=new Bt(this,0)),u(u($c(this.c,(at(),zd)),160),71)).Xk(e,i);case 2:return!this.b&&(this.b=new Bt(this,2)),ly(this.b,e,i)}return r=u($n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),t),69),r.wk().Ak(this,cQ(this),t-se(this.ii()),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Bt(this,0)),u($c(this.c,(at(),zd)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return Uo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e))},o.bi=function(e,t){switch(e){case 0:!this.c&&(this.c=new Bt(this,0)),F7(this.c,t);return;case 1:(!this.c&&(this.c=new Bt(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new Bt(this,2)),F7(this.b,t);return}Jo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e),t)},o.ii=function(){return at(),obn},o.ki=function(e){switch(e){case 0:!this.c&&(this.c=new Bt(this,0)),me(this.c);return;case 1:(!this.c&&(this.c=new Bt(this,0)),u($c(this.c,(at(),zd)),160)).$b();return;case 2:!this.b&&(this.b=new Bt(this,2)),me(this.b);return}Wo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e))},o.Ib=function(){var e;return this.j&4?Hs(this):(e=new ls(Hs(this)),e.a+=" (mixed: ",T6(e,this.c),e.a+=", anyAttribute: ",T6(e,this.b),e.a+=")",e.a)},w(oi,"AnyTypeImpl",844),b(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},K6n),o.Lh=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return zo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e),t,i)},o.Wh=function(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return Uo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e))},o.bi=function(e,t){switch(e){case 0:Cfe(this,Ae(t));return;case 1:Pfe(this,Ae(t));return}Jo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e),t)},o.ii=function(){return at(),G2},o.ki=function(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}Wo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e))},o.Ib=function(){var e;return this.j&4?Hs(this):(e=new ls(Hs(this)),e.a+=" (data: ",Er(e,this.a),e.a+=", target: ",Er(e,this.b),e.a+=")",e.a)},o.a=null,o.b=null,w(oi,"ProcessingInstructionImpl",681),b(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},bjn),o.Lh=function(e,t,i){switch(e){case 0:return i?(!this.c&&(this.c=new Bt(this,0)),this.c):(!this.c&&(this.c=new Bt(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Bt(this,0)),u($c(this.c,(at(),zd)),160)):(!this.c&&(this.c=new Bt(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Vl();case 2:return i?(!this.b&&(this.b=new Bt(this,2)),this.b):(!this.b&&(this.b=new Bt(this,2)),this.b.b);case 3:return!this.c&&(this.c=new Bt(this,0)),Ae(wy(this.c,(at(),$9),!0));case 4:return TV(this.a,(!this.c&&(this.c=new Bt(this,0)),Ae(wy(this.c,(at(),$9),!0))));case 5:return this.a}return zo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e),t,i)},o.Wh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Bt(this,0)),u($c(this.c,(at(),zd)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new Bt(this,0)),Ae(wy(this.c,(at(),$9),!0))!=null;case 4:return TV(this.a,(!this.c&&(this.c=new Bt(this,0)),Ae(wy(this.c,(at(),$9),!0))))!=null;case 5:return!!this.a}return Uo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e))},o.bi=function(e,t){switch(e){case 0:!this.c&&(this.c=new Bt(this,0)),F7(this.c,t);return;case 1:(!this.c&&(this.c=new Bt(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new Bt(this,2)),F7(this.b,t);return;case 3:dJ(this,Ae(t));return;case 4:dJ(this,MV(this.a,t));return;case 5:Sfe(this,u(t,156));return}Jo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e),t)},o.ii=function(){return at(),z2},o.ki=function(e){switch(e){case 0:!this.c&&(this.c=new Bt(this,0)),me(this.c);return;case 1:(!this.c&&(this.c=new Bt(this,0)),u($c(this.c,(at(),zd)),160)).$b();return;case 2:!this.b&&(this.b=new Bt(this,2)),me(this.b);return;case 3:!this.c&&(this.c=new Bt(this,0)),HS(this.c,(at(),$9),null);return;case 4:dJ(this,MV(this.a,null));return;case 5:this.a=null;return}Wo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e))},w(oi,"SimpleAnyTypeImpl",682),b(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},wjn),o.Lh=function(e,t,i){switch(e){case 0:return i?(!this.a&&(this.a=new Bt(this,0)),this.a):(!this.a&&(this.a=new Bt(this,0)),this.a.b);case 1:return i?(!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),this.b):(!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),rk(this.b));case 2:return i?(!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),this.c):(!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),rk(this.c));case 3:return!this.a&&(this.a=new Bt(this,0)),$c(this.a,(at(),gE));case 4:return!this.a&&(this.a=new Bt(this,0)),$c(this.a,(at(),pE));case 5:return!this.a&&(this.a=new Bt(this,0)),$c(this.a,(at(),x9));case 6:return!this.a&&(this.a=new Bt(this,0)),$c(this.a,(at(),R9))}return zo(this,e-se((at(),M0)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():M0,e),t,i)},o.Uh=function(e,t,i){var r;switch(t){case 0:return!this.a&&(this.a=new Bt(this,0)),ly(this.a,e,i);case 1:return!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),UM(this.b,e,i);case 2:return!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),UM(this.c,e,i);case 5:return!this.a&&(this.a=new Bt(this,0)),LSn($c(this.a,(at(),x9)),e,i)}return r=u($n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():(at(),M0),t),69),r.wk().Ak(this,cQ(this),t-se((at(),M0)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new Bt(this,0)),!CM($c(this.a,(at(),gE)));case 4:return!this.a&&(this.a=new Bt(this,0)),!CM($c(this.a,(at(),pE)));case 5:return!this.a&&(this.a=new Bt(this,0)),!CM($c(this.a,(at(),x9)));case 6:return!this.a&&(this.a=new Bt(this,0)),!CM($c(this.a,(at(),R9)))}return Uo(this,e-se((at(),M0)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():M0,e))},o.bi=function(e,t){switch(e){case 0:!this.a&&(this.a=new Bt(this,0)),F7(this.a,t);return;case 1:!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),CC(this.b,t);return;case 2:!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),CC(this.c,t);return;case 3:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),gE))),!this.a&&(this.a=new Bt(this,0)),I6($c(this.a,gE),u(t,16));return;case 4:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),pE))),!this.a&&(this.a=new Bt(this,0)),I6($c(this.a,pE),u(t,16));return;case 5:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),x9))),!this.a&&(this.a=new Bt(this,0)),I6($c(this.a,x9),u(t,16));return;case 6:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),R9))),!this.a&&(this.a=new Bt(this,0)),I6($c(this.a,R9),u(t,16));return}Jo(this,e-se((at(),M0)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():M0,e),t)},o.ii=function(){return at(),M0},o.ki=function(e){switch(e){case 0:!this.a&&(this.a=new Bt(this,0)),me(this.a);return;case 1:!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),gE)));return;case 4:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),pE)));return;case 5:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),x9)));return;case 6:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),R9)));return}Wo(this,e-se((at(),M0)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():M0,e))},o.Ib=function(){var e;return this.j&4?Hs(this):(e=new ls(Hs(this)),e.a+=" (mixed: ",T6(e,this.a),e.a+=")",e.a)},w(oi,"XMLTypeDocumentRootImpl",683),b(2028,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},P6n),o.ri=function(e,t){switch(e.hk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:Jr(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return Ae(t);case 6:return fae(u(t,195));case 12:case 47:case 49:case 11:return IGn(this,e,t);case 13:return t==null?null:kOe(u(t,247));case 15:case 14:return t==null?null:Twe($(B(t)));case 17:return CFn((at(),t));case 18:return CFn(t);case 21:case 20:return t==null?null:Cwe(u(t,161).a);case 27:return hae(u(t,195));case 30:return FBn((at(),u(t,15)));case 31:return FBn(u(t,15));case 40:return aae((at(),t));case 42:return SFn((at(),t));case 43:return SFn(t);case 59:case 48:return lae((at(),t));default:throw T(new Gn(ev+e.xe()+n0))}},o.si=function(e){var t,i,r,c,s;switch(e.G==-1&&(e.G=(i=jo(e),i?f1(i.vi(),e):-1)),e.G){case 0:return t=new tz,t;case 1:return r=new K6n,r;case 2:return c=new bjn,c;case 3:return s=new wjn,s;default:throw T(new Gn(hF+e.zb+n0))}},o.ti=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;switch(e.hk()){case 5:case 52:case 4:return t;case 6:return m9e(t);case 8:case 7:return t==null?null:rye(t);case 9:return t==null?null:ak(So((r=Rc(t,!0),r.length>0&&(zn(0,r.length),r.charCodeAt(0)==43)?(zn(1,r.length+1),r.substr(1)):r),-128,127)<<24>>24);case 10:return t==null?null:ak(So((c=Rc(t,!0),c.length>0&&(zn(0,c.length),c.charCodeAt(0)==43)?(zn(1,c.length+1),c.substr(1)):c),-128,127)<<24>>24);case 11:return Ae(zb(this,(at(),use),t));case 12:return Ae(zb(this,(at(),ose),t));case 13:return t==null?null:new Cz(Rc(t,!0));case 15:case 14:return STe(t);case 16:return Ae(zb(this,(at(),sse),t));case 17:return HKn((at(),t));case 18:return HKn(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Rc(t,!0);case 21:case 20:return RTe(t);case 22:return Ae(zb(this,(at(),fse),t));case 23:return Ae(zb(this,(at(),hse),t));case 24:return Ae(zb(this,(at(),lse),t));case 25:return Ae(zb(this,(at(),ase),t));case 26:return Ae(zb(this,(at(),dse),t));case 27:return u9e(t);case 30:return qKn((at(),t));case 31:return qKn(t);case 32:return t==null?null:Y(So((d=Rc(t,!0),d.length>0&&(zn(0,d.length),d.charCodeAt(0)==43)?(zn(1,d.length+1),d.substr(1)):d),Wi,et));case 33:return t==null?null:new H1((g=Rc(t,!0),g.length>0&&(zn(0,g.length),g.charCodeAt(0)==43)?(zn(1,g.length+1),g.substr(1)):g));case 34:return t==null?null:Y(So((p=Rc(t,!0),p.length>0&&(zn(0,p.length),p.charCodeAt(0)==43)?(zn(1,p.length+1),p.substr(1)):p),Wi,et));case 36:return t==null?null:Tl(zS((m=Rc(t,!0),m.length>0&&(zn(0,m.length),m.charCodeAt(0)==43)?(zn(1,m.length+1),m.substr(1)):m)));case 37:return t==null?null:Tl(zS((k=Rc(t,!0),k.length>0&&(zn(0,k.length),k.charCodeAt(0)==43)?(zn(1,k.length+1),k.substr(1)):k)));case 40:return i7e((at(),t));case 42:return UKn((at(),t));case 43:return UKn(t);case 44:return t==null?null:new H1((j=Rc(t,!0),j.length>0&&(zn(0,j.length),j.charCodeAt(0)==43)?(zn(1,j.length+1),j.substr(1)):j));case 45:return t==null?null:new H1((P=Rc(t,!0),P.length>0&&(zn(0,P.length),P.charCodeAt(0)==43)?(zn(1,P.length+1),P.substr(1)):P));case 46:return Rc(t,!1);case 47:return Ae(zb(this,(at(),bse),t));case 59:case 48:return t7e((at(),t));case 49:return Ae(zb(this,(at(),wse),t));case 50:return t==null?null:sm(So((O=Rc(t,!0),O.length>0&&(zn(0,O.length),O.charCodeAt(0)==43)?(zn(1,O.length+1),O.substr(1)):O),QP,32767)<<16>>16);case 51:return t==null?null:sm(So((s=Rc(t,!0),s.length>0&&(zn(0,s.length),s.charCodeAt(0)==43)?(zn(1,s.length+1),s.substr(1)):s),QP,32767)<<16>>16);case 53:return Ae(zb(this,(at(),gse),t));case 55:return t==null?null:sm(So((f=Rc(t,!0),f.length>0&&(zn(0,f.length),f.charCodeAt(0)==43)?(zn(1,f.length+1),f.substr(1)):f),QP,32767)<<16>>16);case 56:return t==null?null:sm(So((h=Rc(t,!0),h.length>0&&(zn(0,h.length),h.charCodeAt(0)==43)?(zn(1,h.length+1),h.substr(1)):h),QP,32767)<<16>>16);case 57:return t==null?null:Tl(zS((l=Rc(t,!0),l.length>0&&(zn(0,l.length),l.charCodeAt(0)==43)?(zn(1,l.length+1),l.substr(1)):l)));case 58:return t==null?null:Tl(zS((a=Rc(t,!0),a.length>0&&(zn(0,a.length),a.charCodeAt(0)==43)?(zn(1,a.length+1),a.substr(1)):a)));case 60:return t==null?null:Y(So((i=Rc(t,!0),i.length>0&&(zn(0,i.length),i.charCodeAt(0)==43)?(zn(1,i.length+1),i.substr(1)):i),Wi,et));case 61:return t==null?null:Y(So(Rc(t,!0),Wi,et));default:throw T(new Gn(ev+e.xe()+n0))}};var mse,sbn,vse,fbn;w(oi,"XMLTypeFactoryImpl",2028),b(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},dOn),o.N=!1,o.O=!1;var kse=!1;w(oi,"XMLTypePackageImpl",594),b(1961,1,{851:1},I6n),o.Kk=function(){return xen(),Ise},w(oi,"XMLTypePackageImpl/1",1961),b(1970,1,ze,O6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/10",1970),b(1971,1,ze,A6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/11",1971),b(1972,1,ze,L6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/12",1972),b(1973,1,ze,N6n),o.fk=function(e){return $0(e)},o.gk=function(e){return F(si,J,345,e,7,1)},w(oi,"XMLTypePackageImpl/13",1973),b(1974,1,ze,D6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/14",1974),b(1975,1,ze,$6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/15",1975),b(1976,1,ze,x6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/16",1976),b(1977,1,ze,R6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/17",1977),b(1978,1,ze,B6n),o.fk=function(e){return L(e,161)},o.gk=function(e){return F(sv,J,161,e,0,1)},w(oi,"XMLTypePackageImpl/18",1978),b(1979,1,ze,F6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/19",1979),b(1962,1,ze,_6n),o.fk=function(e){return L(e,857)},o.gk=function(e){return F(bE,Kn,857,e,0,1)},w(oi,"XMLTypePackageImpl/2",1962),b(1980,1,ze,H6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/20",1980),b(1981,1,ze,q6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/21",1981),b(1982,1,ze,U6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/22",1982),b(1983,1,ze,G6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/23",1983),b(1984,1,ze,z6n),o.fk=function(e){return L(e,195)},o.gk=function(e){return F(Ru,J,195,e,0,2)},w(oi,"XMLTypePackageImpl/24",1984),b(1985,1,ze,X6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/25",1985),b(1986,1,ze,V6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/26",1986),b(1987,1,ze,W6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/27",1987),b(1988,1,ze,J6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/28",1988),b(1989,1,ze,Q6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/29",1989),b(1963,1,ze,Y6n),o.fk=function(e){return L(e,681)},o.gk=function(e){return F(SA,Kn,2119,e,0,1)},w(oi,"XMLTypePackageImpl/3",1963),b(1990,1,ze,Z6n),o.fk=function(e){return L(e,17)},o.gk=function(e){return F(Gi,J,17,e,0,1)},w(oi,"XMLTypePackageImpl/30",1990),b(1991,1,ze,n5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/31",1991),b(1992,1,ze,e5n),o.fk=function(e){return L(e,168)},o.gk=function(e){return F(t0,J,168,e,0,1)},w(oi,"XMLTypePackageImpl/32",1992),b(1993,1,ze,t5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/33",1993),b(1994,1,ze,i5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/34",1994),b(1995,1,ze,r5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/35",1995),b(1996,1,ze,c5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/36",1996),b(1997,1,ze,u5n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/37",1997),b(1998,1,ze,o5n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/38",1998),b(1999,1,ze,s5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/39",1999),b(1964,1,ze,f5n),o.fk=function(e){return L(e,682)},o.gk=function(e){return F(wE,Kn,2120,e,0,1)},w(oi,"XMLTypePackageImpl/4",1964),b(2e3,1,ze,h5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/40",2e3),b(2001,1,ze,l5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/41",2001),b(2002,1,ze,a5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/42",2002),b(2003,1,ze,d5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/43",2003),b(2004,1,ze,b5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/44",2004),b(2005,1,ze,w5n),o.fk=function(e){return L(e,191)},o.gk=function(e){return F(i0,J,191,e,0,1)},w(oi,"XMLTypePackageImpl/45",2005),b(2006,1,ze,g5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/46",2006),b(2007,1,ze,p5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/47",2007),b(2008,1,ze,m5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/48",2008),b(2009,1,ze,v5n),o.fk=function(e){return L(e,191)},o.gk=function(e){return F(i0,J,191,e,0,1)},w(oi,"XMLTypePackageImpl/49",2009),b(1965,1,ze,k5n),o.fk=function(e){return L(e,683)},o.gk=function(e){return F(ubn,Kn,2121,e,0,1)},w(oi,"XMLTypePackageImpl/5",1965),b(2010,1,ze,y5n),o.fk=function(e){return L(e,168)},o.gk=function(e){return F(t0,J,168,e,0,1)},w(oi,"XMLTypePackageImpl/50",2010),b(2011,1,ze,j5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/51",2011),b(2012,1,ze,E5n),o.fk=function(e){return L(e,17)},o.gk=function(e){return F(Gi,J,17,e,0,1)},w(oi,"XMLTypePackageImpl/52",2012),b(1966,1,ze,M5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/6",1966),b(1967,1,ze,T5n),o.fk=function(e){return L(e,195)},o.gk=function(e){return F(Ru,J,195,e,0,2)},w(oi,"XMLTypePackageImpl/7",1967),b(1968,1,ze,C5n),o.fk=function(e){return D0(e)},o.gk=function(e){return F(Gt,J,485,e,8,1)},w(oi,"XMLTypePackageImpl/8",1968),b(1969,1,ze,S5n),o.fk=function(e){return L(e,222)},o.gk=function(e){return F(p3,J,222,e,0,1)},w(oi,"XMLTypePackageImpl/9",1969);var nh,A1,K9,PA,I;b(55,63,Il,Ne),w(p1,"RegEx/ParseException",55),b(836,1,{},iG),o.bm=function(e){return e<this.j&&Xi(this.i,e)==63},o.cm=function(){var e,t,i,r,c;if(this.c!=10)throw T(new Ne($e((Oe(),qP))));switch(e=this.a,e){case 101:e=27;break;case 102:e=12;break;case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 120:if(Ze(this),this.c!=0)throw T(new Ne($e((Oe(),g1))));if(this.a==123){c=0,i=0;do{if(Ze(this),this.c!=0)throw T(new Ne($e((Oe(),g1))));if((c=bd(this.a))<0)break;if(i>i*16)throw T(new Ne($e((Oe(),qWn))));i=i*16+c}while(!0);if(this.a!=125)throw T(new Ne($e((Oe(),UWn))));if(i>cv)throw T(new Ne($e((Oe(),GWn))));e=i}else{if(c=0,this.c!=0||(c=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(i=c,Ze(this),this.c!=0||(c=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));i=i*16+c,e=i}break;case 117:if(r=0,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));t=t*16+r,e=t;break;case 118:if(Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,t>cv)throw T(new Ne($e((Oe(),"parser.descappe.4"))));e=t;break;case 65:case 90:case 122:throw T(new Ne($e((Oe(),zWn))))}return e},o.dm=function(e){var t,i;switch(e){case 100:i=(this.e&32)==32?sa("Nd",!0):(nt(),IA);break;case 68:i=(this.e&32)==32?sa("Nd",!1):(nt(),wbn);break;case 119:i=(this.e&32)==32?sa("IsWord",!0):(nt(),Gv);break;case 87:i=(this.e&32)==32?sa("IsWord",!1):(nt(),pbn);break;case 115:i=(this.e&32)==32?sa("IsSpace",!0):(nt(),H3);break;case 83:i=(this.e&32)==32?sa("IsSpace",!1):(nt(),gbn);break;default:throw T(new ec((t=e,zJn+t.toString(16))))}return i},o.em=function(e){var t,i,r,c,s,f,h,l,a,d,g,p;for(this.b=1,Ze(this),t=null,this.c==0&&this.a==94?(Ze(this),e?d=(nt(),nt(),new yo(5)):(t=(nt(),nt(),new yo(4)),xc(t,0,cv),d=new yo(4))):d=(nt(),nt(),new yo(4)),c=!0;(p=this.c)!=1&&!(p==0&&this.a==93&&!c);){if(c=!1,i=this.a,r=!1,p==10)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:gw(d,this.dm(i)),r=!0;break;case 105:case 73:case 99:case 67:i=this.um(d,i),i<0&&(r=!0);break;case 112:case 80:if(g=Dnn(this,i),!g)throw T(new Ne($e((Oe(),EF))));gw(d,g),r=!0;break;default:i=this.cm()}else if(p==20){if(f=w4(this.i,58,this.d),f<0)throw T(new Ne($e((Oe(),Rcn))));if(h=!0,Xi(this.i,this.d)==94&&(++this.d,h=!1),s=qo(this.i,this.d,f),l=mDn(s,h,(this.e&512)==512),!l)throw T(new Ne($e((Oe(),KWn))));if(gw(d,l),r=!0,f+1>=this.j||Xi(this.i,f+1)!=93)throw T(new Ne($e((Oe(),Rcn))));this.d=f+2}if(Ze(this),!r)if(this.c!=0||this.a!=45)xc(d,i,i);else{if(Ze(this),(p=this.c)==1)throw T(new Ne($e((Oe(),UP))));p==0&&this.a==93?(xc(d,i,i),xc(d,45,45)):(a=this.a,p==10&&(a=this.cm()),Ze(this),xc(d,i,a))}(this.e&Gs)==Gs&&this.c==0&&this.a==44&&Ze(this)}if(this.c==1)throw T(new Ne($e((Oe(),UP))));return t&&(V5(t,d),d=t),Gg(d),z5(d),this.b=0,Ze(this),d},o.fm=function(){var e,t,i,r;for(i=this.em(!1);(r=this.c)!=7;)if(e=this.a,r==0&&(e==45||e==38)||r==4){if(Ze(this),this.c!=9)throw T(new Ne($e((Oe(),FWn))));if(t=this.em(!1),r==4)gw(i,t);else if(e==45)V5(i,t);else if(e==38)TGn(i,t);else throw T(new ec("ASSERT"))}else throw T(new Ne($e((Oe(),_Wn))));return Ze(this),i},o.gm=function(){var e,t;return e=this.a-48,t=(nt(),nt(),new OD(12,null,e)),!this.g&&(this.g=new KE),RE(this.g,new KG(e)),Ze(this),t},o.hm=function(){return Ze(this),nt(),Ese},o.im=function(){return Ze(this),nt(),jse},o.jm=function(){throw T(new Ne($e((Oe(),is))))},o.km=function(){throw T(new Ne($e((Oe(),is))))},o.lm=function(){return Ze(this),y6e()},o.mm=function(){return Ze(this),nt(),Tse},o.nm=function(){return Ze(this),nt(),Sse},o.om=function(){var e;if(this.d>=this.j||((e=Xi(this.i,this.d++))&65504)!=64)throw T(new Ne($e((Oe(),$Wn))));return Ze(this),nt(),nt(),new Dh(0,e-64)},o.pm=function(){return Ze(this),MIe()},o.qm=function(){return Ze(this),nt(),Pse},o.rm=function(){var e;return e=(nt(),nt(),new Dh(0,105)),Ze(this),e},o.sm=function(){return Ze(this),nt(),Cse},o.tm=function(){return Ze(this),nt(),Mse},o.um=function(e,t){return this.cm()},o.vm=function(){return Ze(this),nt(),dbn},o.wm=function(){var e,t,i,r,c;if(this.d+1>=this.j)throw T(new Ne($e((Oe(),LWn))));if(r=-1,t=null,e=Xi(this.i,this.d),49<=e&&e<=57){if(r=e-48,!this.g&&(this.g=new KE),RE(this.g,new KG(r)),++this.d,Xi(this.i,this.d)!=41)throw T(new Ne($e((Oe(),Sd))));++this.d}else switch(e==63&&--this.d,Ze(this),t=otn(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw T(new Ne($e((Oe(),Sd))));break;default:throw T(new Ne($e((Oe(),NWn))))}if(Ze(this),c=Kb(this),i=null,c.e==2){if(c.Pm()!=2)throw T(new Ne($e((Oe(),DWn))));i=c.Lm(1),c=c.Lm(0)}if(this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),nt(),nt(),new ZDn(r,t,c,i)},o.xm=function(){return Ze(this),nt(),bbn},o.ym=function(){var e;if(Ze(this),e=wT(24,Kb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.zm=function(){var e;if(Ze(this),e=wT(20,Kb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Am=function(){var e;if(Ze(this),e=wT(22,Kb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Bm=function(){var e,t,i,r,c;for(e=0,i=0,t=-1;this.d<this.j&&(t=Xi(this.i,this.d),c=Fnn(t),c!=0);)e|=c,++this.d;if(this.d>=this.j)throw T(new Ne($e((Oe(),$cn))));if(t==45){for(++this.d;this.d<this.j&&(t=Xi(this.i,this.d),c=Fnn(t),c!=0);)i|=c,++this.d;if(this.d>=this.j)throw T(new Ne($e((Oe(),$cn))))}if(t==58){if(++this.d,Ze(this),r=VIn(Kb(this),e,i),this.c!=7)throw T(new Ne($e((Oe(),Sd))));Ze(this)}else if(t==41)++this.d,Ze(this),r=VIn(Kb(this),e,i);else throw T(new Ne($e((Oe(),AWn))));return r},o.Cm=function(){var e;if(Ze(this),e=wT(21,Kb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Dm=function(){var e;if(Ze(this),e=wT(23,Kb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Em=function(){var e,t;if(Ze(this),e=this.f++,t=rD(Kb(this),e),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),t},o.Fm=function(){var e;if(Ze(this),e=rD(Kb(this),0),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Gm=function(e){return Ze(this),this.c==5?(Ze(this),uT(e,(nt(),nt(),new X0(9,e)))):uT(e,(nt(),nt(),new X0(3,e)))},o.Hm=function(e){var t;return Ze(this),t=(nt(),nt(),new P6(2)),this.c==5?(Ze(this),pd(t,F9),pd(t,e)):(pd(t,e),pd(t,F9)),t},o.Im=function(e){return Ze(this),this.c==5?(Ze(this),nt(),nt(),new X0(9,e)):(nt(),nt(),new X0(3,e))},o.a=0,o.b=0,o.c=0,o.d=0,o.e=0,o.f=1,o.g=null,o.j=0,w(p1,"RegEx/RegexParser",836),b(1947,836,{},gjn),o.bm=function(e){return!1},o.cm=function(){return wen(this)},o.dm=function(e){return Om(e)},o.em=function(e){return kzn(this)},o.fm=function(){throw T(new Ne($e((Oe(),is))))},o.gm=function(){throw T(new Ne($e((Oe(),is))))},o.hm=function(){throw T(new Ne($e((Oe(),is))))},o.im=function(){throw T(new Ne($e((Oe(),is))))},o.jm=function(){return Ze(this),Om(67)},o.km=function(){return Ze(this),Om(73)},o.lm=function(){throw T(new Ne($e((Oe(),is))))},o.mm=function(){throw T(new Ne($e((Oe(),is))))},o.nm=function(){throw T(new Ne($e((Oe(),is))))},o.om=function(){return Ze(this),Om(99)},o.pm=function(){throw T(new Ne($e((Oe(),is))))},o.qm=function(){throw T(new Ne($e((Oe(),is))))},o.rm=function(){return Ze(this),Om(105)},o.sm=function(){throw T(new Ne($e((Oe(),is))))},o.tm=function(){throw T(new Ne($e((Oe(),is))))},o.um=function(e,t){return gw(e,Om(t)),-1},o.vm=function(){return Ze(this),nt(),nt(),new Dh(0,94)},o.wm=function(){throw T(new Ne($e((Oe(),is))))},o.xm=function(){return Ze(this),nt(),nt(),new Dh(0,36)},o.ym=function(){throw T(new Ne($e((Oe(),is))))},o.zm=function(){throw T(new Ne($e((Oe(),is))))},o.Am=function(){throw T(new Ne($e((Oe(),is))))},o.Bm=function(){throw T(new Ne($e((Oe(),is))))},o.Cm=function(){throw T(new Ne($e((Oe(),is))))},o.Dm=function(){throw T(new Ne($e((Oe(),is))))},o.Em=function(){var e;if(Ze(this),e=rD(Kb(this),0),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Fm=function(){throw T(new Ne($e((Oe(),is))))},o.Gm=function(e){return Ze(this),uT(e,(nt(),nt(),new X0(3,e)))},o.Hm=function(e){var t;return Ze(this),t=(nt(),nt(),new P6(2)),pd(t,e),pd(t,F9),t},o.Im=function(e){return Ze(this),nt(),nt(),new X0(3,e)};var X2=null,qv=null;w(p1,"RegEx/ParserForXMLSchema",1947),b(122,1,uv,Wd),o.Jm=function(e){throw T(new ec("Not supported."))},o.Km=function(){return-1},o.Lm=function(e){return null},o.Mm=function(){return null},o.Nm=function(e){},o.Om=function(e){},o.Pm=function(){return 0},o.Ib=function(){return this.Qm(0)},o.Qm=function(e){return this.e==11?".":""},o.e=0;var hbn,Uv,B9,yse,lbn,rg=null,IA,IU=null,abn,F9,OU=null,dbn,bbn,wbn,gbn,pbn,jse,H3,Ese,Mse,Tse,Cse,Gv,Sse,Pse,DDe=w(p1,"RegEx/Token",122);b(138,122,{3:1,138:1,122:1},yo),o.Qm=function(e){var t,i,r;if(this.e==4)if(this==abn)i=".";else if(this==IA)i="\\d";else if(this==Gv)i="\\w";else if(this==H3)i="\\s";else{for(r=new Hl,r.a+="[",t=0;t<this.b.length;t+=2)e&Gs&&t>0&&(r.a+=","),this.b[t]===this.b[t+1]?Er(r,by(this.b[t])):(Er(r,by(this.b[t])),r.a+="-",Er(r,by(this.b[t+1])));r.a+="]",i=r.a}else if(this==wbn)i="\\D";else if(this==pbn)i="\\W";else if(this==gbn)i="\\S";else{for(r=new Hl,r.a+="[^",t=0;t<this.b.length;t+=2)e&Gs&&t>0&&(r.a+=","),this.b[t]===this.b[t+1]?Er(r,by(this.b[t])):(Er(r,by(this.b[t])),r.a+="-",Er(r,by(this.b[t+1])));r.a+="]",i=r.a}return i},o.a=!1,o.c=!1,w(p1,"RegEx/RangeToken",138),b(592,1,{592:1},KG),o.a=0,w(p1,"RegEx/RegexParser/ReferencePosition",592),b(591,1,{3:1,591:1},AEn),o.Fb=function(e){var t;return e==null||!L(e,591)?!1:(t=u(e,591),Sn(this.b,t.b)&&this.a==t.a)},o.Hb=function(){return t1(this.b+"/"+sen(this.a))},o.Ib=function(){return this.c.Qm(this.a)},o.a=0,w(p1,"RegEx/RegularExpression",591),b(228,122,uv,Dh),o.Km=function(){return this.a},o.Qm=function(e){var t,i,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r="\\"+NN(this.a&ui);break;case 12:r="\\f";break;case 10:r="\\n";break;case 13:r="\\r";break;case 9:r="\\t";break;case 27:r="\\e";break;default:this.a>=hr?(i=(t=this.a>>>0,"0"+t.toString(16)),r="\\v"+qo(i,i.length-6,i.length)):r=""+NN(this.a&ui)}break;case 8:this==dbn||this==bbn?r=""+NN(this.a&ui):r="\\"+NN(this.a&ui);break;default:r=null}return r},o.a=0,w(p1,"RegEx/Token/CharToken",228),b(318,122,uv,X0),o.Lm=function(e){return this.a},o.Nm=function(e){this.b=e},o.Om=function(e){this.c=e},o.Pm=function(){return 1},o.Qm=function(e){var t;if(this.e==3)if(this.c<0&&this.b<0)t=this.a.Qm(e)+"*";else if(this.c==this.b)t=this.a.Qm(e)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)t=this.a.Qm(e)+"{"+this.c+",}";else throw T(new ec("Token#toString(): CLOSURE "+this.c+ur+this.b));else if(this.c<0&&this.b<0)t=this.a.Qm(e)+"*?";else if(this.c==this.b)t=this.a.Qm(e)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)t=this.a.Qm(e)+"{"+this.c+",}?";else throw T(new ec("Token#toString(): NONGREEDYCLOSURE "+this.c+ur+this.b));return t},o.b=0,o.c=0,w(p1,"RegEx/Token/ClosureToken",318),b(837,122,uv,SW),o.Lm=function(e){return e==0?this.a:this.b},o.Pm=function(){return 2},o.Qm=function(e){var t;return this.b.e==3&&this.b.Lm(0)==this.a?t=this.a.Qm(e)+"+":this.b.e==9&&this.b.Lm(0)==this.a?t=this.a.Qm(e)+"+?":t=this.a.Qm(e)+(""+this.b.Qm(e)),t},w(p1,"RegEx/Token/ConcatToken",837),b(1945,122,uv,ZDn),o.Lm=function(e){if(e==0)return this.d;if(e==1)return this.b;throw T(new ec("Internal Error: "+e))},o.Pm=function(){return this.b?2:1},o.Qm=function(e){var t;return this.c>0?t="(?("+this.c+")":this.a.e==8?t="(?("+this.a+")":t="(?"+this.a,this.b?t+=this.d+"|"+this.b+")":t+=this.d+")",t},o.c=0,w(p1,"RegEx/Token/ConditionToken",1945),b(1946,122,uv,qAn),o.Lm=function(e){return this.b},o.Pm=function(){return 1},o.Qm=function(e){return"(?"+(this.a==0?"":sen(this.a))+(this.c==0?"":sen(this.c))+":"+this.b.Qm(e)+")"},o.a=0,o.c=0,w(p1,"RegEx/Token/ModifierToken",1946),b(838,122,uv,RW),o.Lm=function(e){return this.a},o.Pm=function(){return 1},o.Qm=function(e){var t;switch(t=null,this.e){case 6:this.b==0?t="(?:"+this.a.Qm(e)+")":t="("+this.a.Qm(e)+")";break;case 20:t="(?="+this.a.Qm(e)+")";break;case 21:t="(?!"+this.a.Qm(e)+")";break;case 22:t="(?<="+this.a.Qm(e)+")";break;case 23:t="(?<!"+this.a.Qm(e)+")";break;case 24:t="(?>"+this.a.Qm(e)+")"}return t},o.b=0,w(p1,"RegEx/Token/ParenToken",838),b(530,122,{3:1,122:1,530:1},OD),o.Mm=function(){return this.b},o.Qm=function(e){return this.e==12?"\\"+this.a:gTe(this.b)},o.a=0,w(p1,"RegEx/Token/StringToken",530),b(477,122,uv,P6),o.Jm=function(e){pd(this,e)},o.Lm=function(e){return u(kb(this.a,e),122)},o.Pm=function(){return this.a?this.a.a.c.length:0},o.Qm=function(e){var t,i,r,c,s;if(this.e==1){if(this.a.a.c.length==2)t=u(kb(this.a,0),122),i=u(kb(this.a,1),122),i.e==3&&i.Lm(0)==t?c=t.Qm(e)+"+":i.e==9&&i.Lm(0)==t?c=t.Qm(e)+"+?":c=t.Qm(e)+(""+i.Qm(e));else{for(s=new Hl,r=0;r<this.a.a.c.length;r++)Er(s,u(kb(this.a,r),122).Qm(e));c=s.a}return c}if(this.a.a.c.length==2&&u(kb(this.a,1),122).e==7)c=u(kb(this.a,0),122).Qm(e)+"?";else if(this.a.a.c.length==2&&u(kb(this.a,0),122).e==7)c=u(kb(this.a,1),122).Qm(e)+"??";else{for(s=new Hl,Er(s,u(kb(this.a,0),122).Qm(e)),r=1;r<this.a.a.c.length;r++)s.a+="|",Er(s,u(kb(this.a,r),122).Qm(e));c=s.a}return c},w(p1,"RegEx/Token/UnionToken",477),b(527,1,{600:1},Y9),o.Ib=function(){return this.a.b},w(JJn,"XMLTypeUtil/PatternMatcherImpl",527),b(1707,1527,{},P5n);var Ise;w(JJn,"XMLTypeValidator",1707),b(270,1,qh,Qa),o.Jc=function(e){qi(this,e)},o.Kc=function(){return(this.b-this.a)*this.c<0?xa:new q1(this)},o.a=0,o.b=0,o.c=0;var xa;w(tun,"ExclusiveRange",270),b(1084,1,Hh,I5n),o.Rb=function(e){u(e,17),Qle()},o.Nb=function(e){_i(this,e)},o.Pb=function(){return Bhe()},o.Ub=function(){return Fhe()},o.Wb=function(e){u(e,17),Zle()},o.Ob=function(){return!1},o.Sb=function(){return!1},o.Tb=function(){return-1},o.Vb=function(){return-1},o.Qb=function(){throw T(new Fl(ZJn))},w(tun,"ExclusiveRange/1",1084),b(258,1,Hh,q1),o.Rb=function(e){u(e,17),Yle()},o.Nb=function(e){_i(this,e)},o.Pb=function(){return z6e(this)},o.Ub=function(){return D4e(this)},o.Wb=function(e){u(e,17),n1e()},o.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},o.Sb=function(){return this.b>0},o.Tb=function(){return this.b},o.Vb=function(){return this.b-1},o.Qb=function(){throw T(new Fl(ZJn))},o.a=0,o.b=0,w(tun,"ExclusiveRange/RangeIterator",258);var fs=S4(GP,"C"),ye=S4(y8,"I"),so=S4(i3,"Z"),Ra=S4(j8,"J"),Ru=S4(m8,"B"),Ii=S4(v8,"D"),cg=S4(k8,"F"),V2=S4(E8,"S"),$De=Dt("org.eclipse.elk.core.labels","ILabelManager"),mbn=Dt(or,"DiagnosticChain"),vbn=Dt(SJn,"ResourceSet"),kbn=w(or,"InvocationTargetException",null),Ose=(HE(),W3e),Ase=Ase=Fke;Hme(Kfe),Kme("permProps",[[["locale","default"],[nQn,"gecko1_8"]],[["locale","default"],[nQn,"safari"]]]),Ase(null,"elk",null)}).call(this)}).call(this,typeof Dse<"u"?Dse:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(Xt,gt,Pr){function Li(Jt,Xe){if(!(Jt instanceof Xe))throw new TypeError("Cannot call a class as a function")}function y(Jt,Xe){if(!Jt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Xe&&(typeof Xe=="object"||typeof Xe=="function")?Xe:Jt}function Wt(Jt,Xe){if(typeof Xe!="function"&&Xe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Xe);Jt.prototype=Object.create(Xe&&Xe.prototype,{constructor:{value:Jt,enumerable:!1,writable:!0,configurable:!0}}),Xe&&(Object.setPrototypeOf?Object.setPrototypeOf(Jt,Xe):Jt.__proto__=Xe)}var Ku=Xt("./elk-api.js").default,Ht=function(Jt){Wt(Xe,Jt);function Xe(){var Yi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Li(this,Xe);var Bi=Object.assign({},Yi),En=!1;try{Xt.resolve("web-worker"),En=!0}catch{}if(Yi.workerUrl)if(En){var hu=Xt("web-worker");Bi.workerFactory=function(Ir){return new hu(Ir)}}else console.warn(`Web worker requested but 'web-worker' package not installed.
Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
... Falling back to non-web worker version.`);if(!Bi.workerFactory){var Qc=Xt("./elk-worker.min.js"),Bu=Qc.Worker;Bi.workerFactory=function(Ir){return new Bu(Ir)}}return y(this,(Xe.__proto__||Object.getPrototypeOf(Xe)).call(this,Bi))}return Xe}(Ku);Object.defineProperty(gt.exports,"__esModule",{value:!0}),gt.exports=Ht,Ht.default=Ht},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(Xt,gt,Pr){gt.exports=Worker},{}]},{},[3])(3)})})(Kse);var WDe=Kse.exports;const JDe=KDe(WDe),$se=new JDe;let S0={};const QDe={};let X3={};const YDe=async function(ct,_t,Xt,gt,Pr,Li,y){const Ku=Xt.select(`[id="${_t}"]`).insert("g").attr("class","nodes"),Ht=Object.keys(ct);return await Promise.all(Ht.map(async function(Jt){const Xe=ct[Jt];let Yi="default";Xe.classes.length>0&&(Yi=Xe.classes.join(" ")),Yi=Yi+" flowchart-label";const Bi=Ebn(Xe.styles);let En=Xe.text!==void 0?Xe.text:Xe.id;const hu={width:0,height:0},Qc=[{id:Xe.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:Xe.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:Xe.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:Xe.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let Bu=0,Ir="",Tf={};switch(Xe.type){case"round":Bu=5,Ir="rect";break;case"square":Ir="rect";break;case"diamond":Ir="question",Tf={portConstraints:"FIXED_SIDE"};break;case"hexagon":Ir="hexagon";break;case"odd":Ir="rect_left_inv_arrow";break;case"lean_right":Ir="lean_right";break;case"lean_left":Ir="lean_left";break;case"trapezoid":Ir="trapezoid";break;case"inv_trapezoid":Ir="inv_trapezoid";break;case"odd_right":Ir="rect_left_inv_arrow";break;case"circle":Ir="circle";break;case"ellipse":Ir="ellipse";break;case"stadium":Ir="stadium";break;case"subroutine":Ir="subroutine";break;case"cylinder":Ir="cylinder";break;case"group":Ir="rect";break;case"doublecircle":Ir="doublecircle";break;default:Ir="rect"}const N1={labelStyle:Bi.labelStyle,shape:Ir,labelText:En,labelType:Xe.labelType,rx:Bu,ry:Bu,class:Yi,style:Bi.style,id:Xe.id,link:Xe.link,linkTarget:Xe.linkTarget,tooltip:Pr.db.getTooltip(Xe.id)||"",domId:Pr.db.lookUpDomId(Xe.id),haveCallback:Xe.haveCallback,width:Xe.type==="group"?500:void 0,dir:Xe.dir,type:Xe.type,props:Xe.props,padding:$U().flowchart.padding};let D1,og;if(N1.type!=="group")og=await HDe(Ku,N1,Xe.dir),D1=og.node().getBBox();else{gt.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:$1,bbox:ul}=await qDe(Ku,N1,void 0,!0);hu.width=ul.width,hu.wrappingWidth=$U().flowchart.wrappingWidth,hu.height=ul.height,hu.labelNode=$1.node(),N1.labelData=hu}const V3={id:Xe.id,ports:Xe.type==="diamond"?Qc:[],layoutOptions:Tf,labelText:En,labelData:hu,domId:Pr.db.lookUpDomId(Xe.id),width:D1==null?void 0:D1.width,height:D1==null?void 0:D1.height,type:Xe.type,el:og,parent:Li.parentById[Xe.id]};X3[N1.id]=V3})),y},xse=(ct,_t,Xt)=>{const gt={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return gt.TD=gt.TB,gt[Xt][_t][ct]},Rse=(ct,_t,Xt)=>{if(Ba.info("getNextPort",{node:ct,edgeDirection:_t,graphDirection:Xt}),!S0[ct])switch(Xt){case"TB":case"TD":S0[ct]={inPosition:"north",outPosition:"south"};break;case"BT":S0[ct]={inPosition:"south",outPosition:"north"};break;case"RL":S0[ct]={inPosition:"east",outPosition:"west"};break;case"LR":S0[ct]={inPosition:"west",outPosition:"east"};break}const gt=_t==="in"?S0[ct].inPosition:S0[ct].outPosition;return _t==="in"?S0[ct].inPosition=xse(S0[ct].inPosition,_t,Xt):S0[ct].outPosition=xse(S0[ct].outPosition,_t,Xt),gt},ZDe=(ct,_t)=>{let Xt=ct.start,gt=ct.end;const Pr=Xt,Li=gt,y=X3[Xt],Wt=X3[gt];return!y||!Wt?{source:Xt,target:gt}:(y.type==="diamond"&&(Xt=`${Xt}-${Rse(Xt,"out",_t)}`),Wt.type==="diamond"&&(gt=`${gt}-${Rse(gt,"in",_t)}`),{source:Xt,target:gt,sourceId:Pr,targetId:Li})},n$e=function(ct,_t,Xt,gt){Ba.info("abc78 edges = ",ct);const Pr=gt.insert("g").attr("class","edgeLabels");let Li={},y=_t.db.getDirection(),Wt,Ku;if(ct.defaultStyle!==void 0){const Ht=Ebn(ct.defaultStyle);Wt=Ht.style,Ku=Ht.labelStyle}return ct.forEach(function(Ht){const Jt="L-"+Ht.start+"-"+Ht.end;Li[Jt]===void 0?(Li[Jt]=0,Ba.info("abc78 new entry",Jt,Li[Jt])):(Li[Jt]++,Ba.info("abc78 new entry",Jt,Li[Jt]));let Xe=Jt+"-"+Li[Jt];Ba.info("abc78 new link id to be used is",Jt,Xe,Li[Jt]);const Yi="LS-"+Ht.start,Bi="LE-"+Ht.end,En={style:"",labelStyle:""};switch(En.minlen=Ht.length||1,Ht.type==="arrow_open"?En.arrowhead="none":En.arrowhead="normal",En.arrowTypeStart="arrow_open",En.arrowTypeEnd="arrow_open",Ht.type){case"double_arrow_cross":En.arrowTypeStart="arrow_cross";case"arrow_cross":En.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":En.arrowTypeStart="arrow_point";case"arrow_point":En.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":En.arrowTypeStart="arrow_circle";case"arrow_circle":En.arrowTypeEnd="arrow_circle";break}let hu="",Qc="";switch(Ht.stroke){case"normal":hu="fill:none;",Wt!==void 0&&(hu=Wt),Ku!==void 0&&(Qc=Ku),En.thickness="normal",En.pattern="solid";break;case"dotted":En.thickness="normal",En.pattern="dotted",En.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":En.thickness="thick",En.pattern="solid",En.style="stroke-width: 3.5px;fill:none;";break}if(Ht.style!==void 0){const og=Ebn(Ht.style);hu=og.style,Qc=og.labelStyle}En.style=En.style+=hu,En.labelStyle=En.labelStyle+=Qc,Ht.interpolate!==void 0?En.curve=jbn(Ht.interpolate,DU):ct.defaultInterpolate!==void 0?En.curve=jbn(ct.defaultInterpolate,DU):En.curve=jbn(QDe.curve,DU),Ht.text===void 0?Ht.style!==void 0&&(En.arrowheadStyle="fill: #333"):(En.arrowheadStyle="fill: #333",En.labelpos="c"),En.labelType=Ht.labelType,En.label=Ht.text.replace(FDe.lineBreakRegex,`
`),Ht.style===void 0&&(En.style=En.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),En.labelStyle=En.labelStyle.replace("color:","fill:"),En.id=Xe,En.classes="flowchart-link "+Yi+" "+Bi;const Bu=UDe(Pr,En),{source:Ir,target:Tf,sourceId:N1,targetId:D1}=ZDe(Ht,y);Ba.debug("abc78 source and target",Ir,Tf),Xt.edges.push({id:"e"+Ht.start+Ht.end,sources:[Ir],targets:[Tf],sourceId:N1,targetId:D1,labelEl:Bu,labels:[{width:En.width,height:En.height,orgWidth:En.width,orgHeight:En.height,text:En.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:En})}),Xt},e$e=function(ct,_t,Xt,gt,Pr){let Li="";gt&&(Li=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Li=Li.replace(/\(/g,"\\("),Li=Li.replace(/\)/g,"\\)")),zDe(ct,_t,Li,Pr,Xt)},t$e=function(ct,_t){return Ba.info("Extracting classes"),_t.db.getClasses()},i$e=function(ct){const _t={parentById:{},childrenById:{}},Xt=ct.getSubGraphs();return Ba.info("Subgraphs - ",Xt),Xt.forEach(function(gt){gt.nodes.forEach(function(Pr){_t.parentById[Pr]=gt.id,_t.childrenById[gt.id]===void 0&&(_t.childrenById[gt.id]=[]),_t.childrenById[gt.id].push(Pr)})}),Xt.forEach(function(gt){gt.id,_t.parentById[gt.id]!==void 0&&_t.parentById[gt.id]}),_t},r$e=function(ct,_t,Xt){const gt=VDe(ct,_t,Xt);if(gt===void 0||gt==="root")return{x:0,y:0};const Pr=X3[gt].offset;return{x:Pr.posX,y:Pr.posY}},c$e=function(ct,_t,Xt,gt,Pr,Li){const y=r$e(_t.sourceId,_t.targetId,Pr),Wt=_t.sections[0].startPoint,Ku=_t.sections[0].endPoint,Jt=(_t.sections[0].bendPoints?_t.sections[0].bendPoints:[]).map(Tf=>[Tf.x+y.x,Tf.y+y.y]),Xe=[[Wt.x+y.x,Wt.y+y.y],...Jt,[Ku.x+y.x,Ku.y+y.y]],{x:Yi,y:Bi}=GDe(_t.edgeData),En=XDe().x(Yi).y(Bi).curve(DU),hu=ct.insert("path").attr("d",En(Xe)).attr("class","path "+Xt.classes).attr("fill","none"),Qc=ct.insert("g").attr("class","edgeLabel"),Bu=OA(Qc.node().appendChild(_t.labelEl)),Ir=Bu.node().firstChild.getBoundingClientRect();Bu.attr("width",Ir.width),Bu.attr("height",Ir.height),Qc.attr("transform",`translate(${_t.labels[0].x+y.x}, ${_t.labels[0].y+y.y})`),e$e(hu,Xt,gt.type,gt.arrowMarkerAbsolute,Li)},Bse=(ct,_t)=>{ct.forEach(Xt=>{Xt.children||(Xt.children=[]);const gt=_t.childrenById[Xt.id];gt&>.forEach(Pr=>{Xt.children.push(X3[Pr])}),Bse(Xt.children,_t)})},u$e=async function(ct,_t,Xt,gt){var Pr;gt.db.clear(),X3={},S0={},gt.db.setGen("gen-2"),gt.parser.parse(ct);const Li=OA("body").append("div").attr("style","height:400px").attr("id","cy");let y={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(Ba.info("Drawing flowchart using v3 renderer",$se),gt.db.getDirection()){case"BT":y.layoutOptions["elk.direction"]="UP";break;case"TB":y.layoutOptions["elk.direction"]="DOWN";break;case"LR":y.layoutOptions["elk.direction"]="RIGHT";break;case"RL":y.layoutOptions["elk.direction"]="LEFT";break}const{securityLevel:Ku,flowchart:Ht}=$U();let Jt;Ku==="sandbox"&&(Jt=OA("#i"+_t));const Xe=Ku==="sandbox"?OA(Jt.nodes()[0].contentDocument.body):OA("body"),Yi=Ku==="sandbox"?Jt.nodes()[0].contentDocument:document,Bi=Xe.select(`[id="${_t}"]`);_De(Bi,["point","circle","cross"],gt.type,_t);const hu=gt.db.getVertices();let Qc;const Bu=gt.db.getSubGraphs();Ba.info("Subgraphs - ",Bu);for(let $1=Bu.length-1;$1>=0;$1--)Qc=Bu[$1],gt.db.addVertex(Qc.id,{text:Qc.title,type:Qc.labelType},"group",void 0,Qc.classes,Qc.dir);const Ir=Bi.insert("g").attr("class","subgraphs"),Tf=i$e(gt.db);y=await YDe(hu,_t,Xe,Yi,gt,Tf,y);const N1=Bi.insert("g").attr("class","edges edgePath"),D1=gt.db.getEdges();y=n$e(D1,gt,y,Bi),Object.keys(X3).forEach($1=>{const ul=X3[$1];ul.parent||y.children.push(ul),Tf.childrenById[$1]!==void 0&&(ul.labels=[{text:ul.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:ul.labelData.width,height:ul.labelData.height}],delete ul.x,delete ul.y,delete ul.width,delete ul.height)}),Bse(y.children,Tf),Ba.info("after layout",JSON.stringify(y,null,2));const V3=await $se.layout(y);Fse(0,0,V3.children,Bi,Ir,gt,0),Ba.info("after layout",V3),(Pr=V3.edges)==null||Pr.map($1=>{c$e(N1,$1,$1.edgeData,gt,Tf,_t)}),BDe({},Bi,Ht.diagramPadding,Ht.useMaxWidth),Li.remove()},Fse=(ct,_t,Xt,gt,Pr,Li,y)=>{Xt.forEach(function(Wt){if(Wt)if(X3[Wt.id].offset={posX:Wt.x+ct,posY:Wt.y+_t,x:ct,y:_t,depth:y,width:Wt.width,height:Wt.height},Wt.type==="group"){const Ku=Pr.insert("g").attr("class","subgraph");Ku.insert("rect").attr("class","subgraph subgraph-lvl-"+y%5+" node").attr("x",Wt.x+ct).attr("y",Wt.y+_t).attr("width",Wt.width).attr("height",Wt.height);const Ht=Ku.insert("g").attr("class","label"),Jt=$U().flowchart.htmlLabels?Wt.labelData.width/2:0;Ht.attr("transform",`translate(${Wt.labels[0].x+ct+Wt.x+Jt}, ${Wt.labels[0].y+_t+Wt.y+3})`),Ht.node().appendChild(Wt.labelData.labelNode),Ba.info("Id (UGH)= ",Wt.type,Wt.labels)}else Ba.info("Id (UGH)= ",Wt.id),Wt.el.attr("transform",`translate(${Wt.x+ct+Wt.width/2}, ${Wt.y+_t+Wt.height/2})`)}),Xt.forEach(function(Wt){Wt&&Wt.type==="group"&&Fse(ct+Wt.x,_t+Wt.y,Wt.children,gt,Pr,Li,y+1)})},o$e={getClasses:t$e,draw:u$e},s$e=ct=>{let _t="";for(let Xt=0;Xt<5;Xt++)_t+=`
.subgraph-lvl-${Xt} {
fill: ${ct[`surface${Xt}`]};
stroke: ${ct[`surfacePeer${Xt}`]};
}
`;return _t},f$e=ct=>`.label {
font-family: ${ct.fontFamily};
color: ${ct.nodeTextColor||ct.textColor};
}
.cluster-label text {
fill: ${ct.titleColor};
}
.cluster-label span {
color: ${ct.titleColor};
}
.label text,span {
fill: ${ct.nodeTextColor||ct.textColor};
color: ${ct.nodeTextColor||ct.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${ct.mainBkg};
stroke: ${ct.nodeBorder};
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${ct.arrowheadColor};
}
.edgePath .path {
stroke: ${ct.lineColor};
stroke-width: 2.0px;
}
.flowchart-link {
stroke: ${ct.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${ct.edgeLabelBackground};
rect {
opacity: 0.85;
background-color: ${ct.edgeLabelBackground};
fill: ${ct.edgeLabelBackground};
}
text-align: center;
}
.cluster rect {
fill: ${ct.clusterBkg};
stroke: ${ct.clusterBorder};
stroke-width: 1px;
}
.cluster text {
fill: ${ct.titleColor};
}
.cluster span {
color: ${ct.titleColor};
}
/* .cluster div {
color: ${ct.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${ct.fontFamily};
font-size: 12px;
background: ${ct.tertiaryColor};
border: 1px solid ${ct.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${ct.textColor};
}
.subgraph {
stroke-width:2;
rx:3;
}
// .subgraph-lvl-1 {
// fill:#ccc;
// // stroke:black;
// }
.flowchart-label text {
text-anchor: middle;
}
${s$e(ct)}
`,h$e=f$e,j$e={db:xDe,renderer:o$e,parser:RDe,styles:h$e};export{j$e as diagram};
import{p as e,f as o}from"./flowDb-147da10a-Cx_grzty.js";import{f as t,a}from"./styles-c171666c-DFB0BSW8.js";import{u as i}from"./slidev/Mermaid-sWhOKcCj.js";import"./graph-af3d5df6-B9Rrt_D8.js";import"./index-c8395ba2-BeB0hvAS.js";import"./layout-6685625a-TirZJcn7.js";import"./clone-d2e37f8c-kF1Uud7q.js";import"./edges-1e1ebc73-BF9aEHVZ.js";import"./createText-f6615236-DY9JQ1lr.js";import"./line-65d70945-Bv9b7vLo.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";import"./channel-d3ac35ac-BF6w4Boq.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";const C={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{C as diagram};
import{p as Lt,f as V}from"./flowDb-147da10a-Cx_grzty.js";import{G as _t,h as S,f as tt}from"./graph-af3d5df6-B9Rrt_D8.js";import{h as x,n as Y,o as et,c as G,r as rt,j as at,l as R,p as z,q as U,t as Et}from"./slidev/Mermaid-sWhOKcCj.js";import{u as Tt,r as Nt,p as At,l as Ct,d as M}from"./layout-6685625a-TirZJcn7.js";import{f as It,a as Bt,b as nt,s as Mt,c as N,i as st,d as E,e as it,g as ot}from"./styles-c171666c-DFB0BSW8.js";import{l as Dt}from"./line-65d70945-Bv9b7vLo.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./index-c8395ba2-BeB0hvAS.js";import"./clone-d2e37f8c-kF1Uud7q.js";import"./edges-1e1ebc73-BF9aEHVZ.js";import"./createText-f6615236-DY9JQ1lr.js";import"./channel-d3ac35ac-BF6w4Boq.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";function Rt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Gt(r,e){return fetch(r,e).then(Rt)}function Pt(r){return(e,t)=>Gt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Ut=Pt("image/svg+xml"),H={normal:Wt,vee:Vt,undirected:zt};function $t(r){H=r}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Yt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Ht(r,e){for(var t=r.append("text"),n=Xt(e.label).split(`
`),a=0;a<n.length;a++)t.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(n[a]);return N(t,e.labelStyle),t}function Xt(r){for(var e="",t=!1,n,a=0;a<r.length;++a)if(n=r[a],t){switch(n){case"n":e+=`
`;break;default:e+=n}t=!1}else n==="\\"?t=!0:e+=n;return e}function J(r,e,t){var n=e.label,a=r.append("g");e.labelType==="svg"?Yt(a,e):typeof n!="string"||e.labelType==="html"?nt(a,e):Ht(a,e);var s=a.node().getBBox(),i;switch(t){case"top":i=-e.height/2;break;case"bottom":i=e.height/2-s.height;break;default:i=-s.height/2}return a.attr("transform","translate("+-s.width/2+","+i+")"),a}var X=function(r,e){var t=e.nodes().filter(function(s){return st(e,s)}),n=r.selectAll("g.cluster").data(t,function(s){return s});E(n.exit(),e).style("opacity",0).remove();var a=n.enter().append("g").attr("class","cluster").attr("id",function(s){var i=e.node(s);return i.id}).style("opacity",0).each(function(s){var i=e.node(s),o=x(this);x(this).append("rect");var c=o.append("g").attr("class","label");J(c,i,i.clusterLabelPos)});return n=n.merge(a),n=E(n,e).style("opacity",1),n.selectAll("rect").each(function(s){var i=e.node(s),o=x(this);N(o,i.style)}),n};function Ft(r){X=r}let F=function(r,e){var t=r.selectAll("g.edgeLabel").data(e.edges(),function(a){return it(a)}).classed("update",!0);t.exit().remove(),t.enter().append("g").classed("edgeLabel",!0).style("opacity",0),t=r.selectAll("g.edgeLabel"),t.each(function(a){var s=x(this);s.select(".label").remove();var i=e.edge(a),o=J(s,e.edge(a),0).classed("label",!0),c=o.node().getBBox();i.labelId&&o.attr("id",i.labelId),S(i,"width")||(i.width=c.width),S(i,"height")||(i.height=c.height)});var n;return t.exit?n=t.exit():n=t.selectAll(null),E(n,e).style("opacity",0).remove(),t};function qt(r){F=r}function O(r,e){return r.intersect(e)}var q=function(r,e,t){var n=r.selectAll("g.edgePath").data(e.edges(),function(i){return it(i)}).classed("update",!0),a=Ot(n,e);jt(n,e);var s=n.merge!==void 0?n.merge(a):n;return E(s,e).style("opacity",1),s.each(function(i){var o=x(this),c=e.edge(i);c.elem=this,c.id&&o.attr("id",c.id),ot(o,c.class,(o.classed("update")?"update ":"")+"edgePath")}),s.selectAll("path.path").each(function(i){var o=e.edge(i);o.arrowheadId=Tt("arrowhead");var c=x(this).attr("marker-end",function(){return"url("+Kt(location.href,o.arrowheadId)+")"}).style("fill","none");E(c,e).attr("d",function(d){return Jt(e,d)}),N(c,o.style)}),s.selectAll("defs *").remove(),s.selectAll("defs").each(function(i){var o=e.edge(i),c=t[o.arrowhead];c(x(this),o.arrowheadId,o,"arrowhead")}),s};function Qt(r){q=r}function Kt(r,e){var t=r.split("#")[0];return t+"#"+e}function Jt(r,e){var t=r.edge(e),n=r.node(e.v),a=r.node(e.w),s=t.points.slice(1,t.points.length-1);return s.unshift(O(n,s[0])),s.push(O(a,s[s.length-1])),lt(t,s)}function lt(r,e){var t=(Dt||Ut.line)().x(function(n){return n.x}).y(function(n){return n.y});return(t.curve||t.interpolate)(r.curve),t(e)}function Zt(r){var e=r.getBBox(),t=r.ownerSVGElement.getScreenCTM().inverse().multiply(r.getScreenCTM()).translate(e.width/2,e.height/2);return{x:t.e,y:t.f}}function Ot(r,e){var t=r.enter().append("g").attr("class","edgePath").style("opacity",0);return t.append("path").attr("class","path").attr("d",function(n){var a=e.edge(n),s=e.node(n.v).elem,i=Nt(a.points.length).map(function(){return Zt(s)});return lt(a,i)}),t.append("defs"),t}function jt(r,e){var t=r.exit();E(t,e).style("opacity",0).remove()}var Q=function(r,e,t){var n=e.nodes().filter(function(i){return!st(e,i)}),a=r.selectAll("g.node").data(n,function(i){return i}).classed("update",!0);a.exit().remove(),a.enter().append("g").attr("class","node").style("opacity",0),a=r.selectAll("g.node"),a.each(function(i){var o=e.node(i),c=x(this);ot(c,o.class,(c.classed("update")?"update ":"")+"node"),c.select("g.label").remove();var d=c.append("g").attr("class","label"),l=J(d,o),v=t[o.shape],h=At(l.node().getBBox(),"width","height");o.elem=this,o.id&&c.attr("id",o.id),o.labelId&&d.attr("id",o.labelId),S(o,"width")&&(h.width=o.width),S(o,"height")&&(h.height=o.height),h.width+=o.paddingLeft+o.paddingRight,h.height+=o.paddingTop+o.paddingBottom,d.attr("transform","translate("+(o.paddingLeft-o.paddingRight)/2+","+(o.paddingTop-o.paddingBottom)/2+")");var u=x(this);u.select(".label-container").remove();var p=v(u,h,o).classed("label-container",!0);N(p,o.style);var y=p.node().getBBox();o.width=y.width,o.height=y.height});var s;return a.exit?s=a.exit():s=a.selectAll(null),E(s,e).style("opacity",0).remove(),a};function te(r){Q=r}function ee(r,e){var t=r.filter(function(){return!x(this).classed("update")});function n(a){var s=e.node(a);return"translate("+s.x+","+s.y+")"}t.attr("transform",n),E(r,e).style("opacity",1).attr("transform",n),E(t.selectAll("rect"),e).attr("width",function(a){return e.node(a).width}).attr("height",function(a){return e.node(a).height}).attr("x",function(a){var s=e.node(a);return-s.width/2}).attr("y",function(a){var s=e.node(a);return-s.height/2})}function re(r,e){var t=r.filter(function(){return!x(this).classed("update")});function n(a){var s=e.edge(a);return S(s,"x")?"translate("+s.x+","+s.y+")":""}t.attr("transform",n),E(r,e).style("opacity",1).attr("transform",n)}function ae(r,e){var t=r.filter(function(){return!x(this).classed("update")});function n(a){var s=e.node(a);return"translate("+s.x+","+s.y+")"}t.attr("transform",n),E(r,e).style("opacity",1).attr("transform",n)}function ct(r,e,t,n){var a=r.x,s=r.y,i=a-n.x,o=s-n.y,c=Math.sqrt(e*e*o*o+t*t*i*i),d=Math.abs(e*t*i/c);n.x<a&&(d=-d);var l=Math.abs(e*t*o/c);return n.y<s&&(l=-l),{x:a+d,y:s+l}}function ne(r,e,t){return ct(r,e,e,t)}function se(r,e,t,n){var a,s,i,o,c,d,l,v,h,u,p,y,f,g,k;if(a=e.y-r.y,i=r.x-e.x,c=e.x*r.y-r.x*e.y,h=a*t.x+i*t.y+c,u=a*n.x+i*n.y+c,!(h!==0&&u!==0&&j(h,u))&&(s=n.y-t.y,o=t.x-n.x,d=n.x*t.y-t.x*n.y,l=s*r.x+o*r.y+d,v=s*e.x+o*e.y+d,!(l!==0&&v!==0&&j(l,v))&&(p=a*o-s*i,p!==0)))return y=Math.abs(p/2),f=i*d-o*c,g=f<0?(f-y)/p:(f+y)/p,f=s*c-a*d,k=f<0?(f-y)/p:(f+y)/p,{x:g,y:k}}function j(r,e){return r*e>0}function T(r,e,t){var n=r.x,a=r.y,s=[],i=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;e.forEach(function(p){i=Math.min(i,p.x),o=Math.min(o,p.y)});for(var c=n-r.width/2-i,d=a-r.height/2-o,l=0;l<e.length;l++){var v=e[l],h=e[l<e.length-1?l+1:0],u=se(r,t,{x:c+v.x,y:d+v.y},{x:c+h.x,y:d+h.y});u&&s.push(u)}return s.length?(s.length>1&&s.sort(function(p,y){var f=p.x-t.x,g=p.y-t.y,k=Math.sqrt(f*f+g*g),I=y.x-t.x,_=y.y-t.y,$=Math.sqrt(I*I+_*_);return k<$?-1:k===$?0:1}),s[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",r),r)}function Z(r,e){var t=r.x,n=r.y,a=e.x-t,s=e.y-n,i=r.width/2,o=r.height/2,c,d;return Math.abs(s)*i>Math.abs(a)*o?(s<0&&(o=-o),c=s===0?0:o*a/s,d=o):(a<0&&(i=-i),c=i,d=a===0?0:i*s/a),{x:t+c,y:n+d}}var K={rect:oe,ellipse:le,circle:ce,diamond:de};function ie(r){K=r}function oe(r,e,t){var n=r.insert("rect",":first-child").attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return t.intersect=function(a){return Z(t,a)},n}function le(r,e,t){var n=e.width/2,a=e.height/2,s=r.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",n).attr("ry",a);return t.intersect=function(i){return ct(t,n,a,i)},s}function ce(r,e,t){var n=Math.max(e.width,e.height)/2,a=r.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",n);return t.intersect=function(s){return ne(t,n,s)},a}function de(r,e,t){var n=e.width*Math.SQRT2/2,a=e.height*Math.SQRT2/2,s=[{x:0,y:-a},{x:-n,y:0},{x:0,y:a},{x:n,y:0}],i=r.insert("polygon",":first-child").attr("points",s.map(function(o){return o.x+","+o.y}).join(" "));return t.intersect=function(o){return T(t,s,o)},i}function he(){var r=function(e,t){pe(t);var n=D(e,"output"),a=D(n,"clusters"),s=D(n,"edgePaths"),i=F(D(n,"edgeLabels"),t),o=Q(D(n,"nodes"),t,K);Ct(t),ae(o,t),re(i,t),q(s,t,H);var c=X(a,t);ee(c,t),ve(t)};return r.createNodes=function(e){return arguments.length?(te(e),r):Q},r.createClusters=function(e){return arguments.length?(Ft(e),r):X},r.createEdgeLabels=function(e){return arguments.length?(qt(e),r):F},r.createEdgePaths=function(e){return arguments.length?(Qt(e),r):q},r.shapes=function(e){return arguments.length?(ie(e),r):K},r.arrows=function(e){return arguments.length?($t(e),r):H},r}var ue={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},fe={arrowhead:"normal",curve:U};function pe(r){r.nodes().forEach(function(e){var t=r.node(e);!S(t,"label")&&!r.children(e).length&&(t.label=e),S(t,"paddingX")&&M(t,{paddingLeft:t.paddingX,paddingRight:t.paddingX}),S(t,"paddingY")&&M(t,{paddingTop:t.paddingY,paddingBottom:t.paddingY}),S(t,"padding")&&M(t,{paddingLeft:t.padding,paddingRight:t.padding,paddingTop:t.padding,paddingBottom:t.padding}),M(t,ue),tt(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(n){t[n]=Number(t[n])}),S(t,"width")&&(t._prevWidth=t.width),S(t,"height")&&(t._prevHeight=t.height)}),r.edges().forEach(function(e){var t=r.edge(e);S(t,"label")||(t.label=""),M(t,fe)})}function ve(r){tt(r.nodes(),function(e){var t=r.node(e);S(t,"_prevWidth")?t.width=t._prevWidth:delete t.width,S(t,"_prevHeight")?t.height=t._prevHeight:delete t.height,delete t._prevWidth,delete t._prevHeight})}function D(r,e){var t=r.select("g."+e);return t.empty()&&(t=r.append("g").attr("class",e)),t}function dt(r,e,t){const n=e.width,a=e.height,s=(n+a)*.9,i=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}],o=A(r,s,s,i);return t.intersect=function(c){return T(t,i,c)},o}function ht(r,e,t){const a=e.height,s=a/4,i=e.width+2*s,o=[{x:s,y:0},{x:i-s,y:0},{x:i,y:-a/2},{x:i-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],c=A(r,i,a,o);return t.intersect=function(d){return T(t,o,d)},c}function ut(r,e,t){const n=e.width,a=e.height,s=[{x:-a/2,y:0},{x:n,y:0},{x:n,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function ft(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function pt(r,e,t){const n=e.width,a=e.height,s=[{x:2*a/6,y:0},{x:n+a/6,y:0},{x:n-2*a/6,y:-a},{x:-a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function vt(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n+2*a/6,y:0},{x:n-a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function gt(r,e,t){const n=e.width,a=e.height,s=[{x:a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:-2*a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function yt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n+a/2,y:0},{x:n,y:-a/2},{x:n+a/2,y:-a},{x:0,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function mt(r,e,t){const n=e.height,a=e.width+n/4,s=r.insert("rect",":first-child").attr("rx",n/2).attr("ry",n/2).attr("x",-a/2).attr("y",-n/2).attr("width",a).attr("height",n);return t.intersect=function(i){return Z(t,i)},s}function wt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n,y:0},{x:n,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:n+8,y:0},{x:n+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function xt(r,e,t){const n=e.width,a=n/2,s=a/(2.5+n/50),i=e.height+s,o="M 0,"+s+" a "+a+","+s+" 0,0,0 "+n+" 0 a "+a+","+s+" 0,0,0 "+-n+" 0 l 0,"+i+" a "+a+","+s+" 0,0,0 "+n+" 0 l 0,"+-i,c=r.attr("label-offset-y",s).insert("path",":first-child").attr("d",o).attr("transform","translate("+-n/2+","+-(i/2+s)+")");return t.intersect=function(d){const l=Z(t,d),v=l.x-t.x;if(a!=0&&(Math.abs(v)<t.width/2||Math.abs(v)==t.width/2&&Math.abs(l.y-t.y)>t.height/2-s)){let h=s*s*(1-v*v/(a*a));h!=0&&(h=Math.sqrt(h)),h=s-h,d.y-t.y>0&&(h=-h),l.y+=h}return l},c}function ge(r){r.shapes().question=dt,r.shapes().hexagon=ht,r.shapes().stadium=mt,r.shapes().subroutine=wt,r.shapes().cylinder=xt,r.shapes().rect_left_inv_arrow=ut,r.shapes().lean_right=ft,r.shapes().lean_left=pt,r.shapes().trapezoid=vt,r.shapes().inv_trapezoid=gt,r.shapes().rect_right_inv_arrow=yt}function ye(r){r({question:dt}),r({hexagon:ht}),r({stadium:mt}),r({subroutine:wt}),r({cylinder:xt}),r({rect_left_inv_arrow:ut}),r({lean_right:ft}),r({lean_left:pt}),r({trapezoid:vt}),r({inv_trapezoid:gt}),r({rect_right_inv_arrow:yt})}function A(r,e,t,n){return r.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("transform","translate("+-e/2+","+t/2+")")}const me={addToRender:ge,addToRenderV2:ye},bt={},we=function(r){const e=Object.keys(r);for(const t of e)bt[t]=r[t]},kt=async function(r,e,t,n,a,s){const i=n?n.select(`[id="${t}"]`):x(`[id="${t}"]`),o=a||document,c=Object.keys(r);for(const d of c){const l=r[d];let v="default";l.classes.length>0&&(v=l.classes.join(" "));const h=Y(l.styles);let u=l.text!==void 0?l.text:l.id,p;if(et(G().flowchart.htmlLabels)){const g={label:await rt(u.replace(/fa[blrs]?:fa-[\w-]+/g,k=>`<i class='${k.replace(":"," ")}'></i>`),G())};p=nt(i,g).node(),p.parentNode.removeChild(p)}else{const g=o.createElementNS("http://www.w3.org/2000/svg","text");g.setAttribute("style",h.labelStyle.replace("color:","fill:"));const k=u.split(at.lineBreakRegex);for(const I of k){const _=o.createElementNS("http://www.w3.org/2000/svg","tspan");_.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),_.setAttribute("dy","1em"),_.setAttribute("x","1"),_.textContent=I,g.appendChild(_)}p=g}let y=0,f="";switch(l.type){case"round":y=5,f="rect";break;case"square":f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"odd":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"odd_right":f="rect_left_inv_arrow";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder";break;case"group":f="rect";break;default:f="rect"}R.warn("Adding node",l.id,l.domId),e.setNode(s.db.lookUpDomId(l.id),{labelType:"svg",labelStyle:h.labelStyle,shape:f,label:p,rx:y,ry:y,class:v,style:h.style,id:s.db.lookUpDomId(l.id)})}},St=async function(r,e,t){let n=0,a,s;if(r.defaultStyle!==void 0){const i=Y(r.defaultStyle);a=i.style,s=i.labelStyle}for(const i of r){n++;const o="L-"+i.start+"-"+i.end,c="LS-"+i.start,d="LE-"+i.end,l={};i.type==="arrow_open"?l.arrowhead="none":l.arrowhead="normal";let v="",h="";if(i.style!==void 0){const u=Y(i.style);v=u.style,h=u.labelStyle}else switch(i.stroke){case"normal":v="fill:none",a!==void 0&&(v=a),s!==void 0&&(h=s);break;case"dotted":v="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":v=" stroke-width: 3.5px;fill:none";break}l.style=v,l.labelStyle=h,i.interpolate!==void 0?l.curve=z(i.interpolate,U):r.defaultInterpolate!==void 0?l.curve=z(r.defaultInterpolate,U):l.curve=z(bt.curve,U),i.text===void 0?i.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",et(G().flowchart.htmlLabels)?(l.labelType="html",l.label=`<span id="L-${o}" class="edgeLabel L-${c}' L-${d}" style="${l.labelStyle}">${await rt(i.text.replace(/fa[blrs]?:fa-[\w-]+/g,u=>`<i class='${u.replace(":"," ")}'></i>`),G())}</span>`):(l.labelType="text",l.label=i.text.replace(at.lineBreakRegex,`
`),i.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=o,l.class=c+" "+d,l.minlen=i.length||1,e.setEdge(t.db.lookUpDomId(i.start),t.db.lookUpDomId(i.end),l,n)}},xe=function(r,e){return R.info("Extracting classes"),e.db.getClasses()},be=async function(r,e,t,n){R.info("Drawing flowchart");const{securityLevel:a,flowchart:s}=G();let i;a==="sandbox"&&(i=x("#i"+e));const o=a==="sandbox"?x(i.nodes()[0].contentDocument.body):x("body"),c=a==="sandbox"?i.nodes()[0].contentDocument:document;let d=n.db.getDirection();d===void 0&&(d="TD");const l=s.nodeSpacing||50,v=s.rankSpacing||50,h=new _t({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:l,ranksep:v,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let u;const p=n.db.getSubGraphs();for(let m=p.length-1;m>=0;m--)u=p[m],n.db.addVertex(u.id,u.title,"group",void 0,u.classes);const y=n.db.getVertices();R.warn("Get vertices",y);const f=n.db.getEdges();let g=0;for(g=p.length-1;g>=0;g--){u=p[g],Mt("cluster").append("text");for(let m=0;m<u.nodes.length;m++)R.warn("Setting subgraph",u.nodes[m],n.db.lookUpDomId(u.nodes[m]),n.db.lookUpDomId(u.id)),h.setParent(n.db.lookUpDomId(u.nodes[m]),n.db.lookUpDomId(u.id))}await kt(y,h,e,o,c,n),await St(f,h,n);const k=new he;me.addToRender(k),k.arrows().none=function(b,L,w,B){const C=b.append("marker").attr("id",L).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");N(C,w[B+"Style"])},k.arrows().normal=function(b,L){b.append("marker").attr("id",L).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const I=o.select(`[id="${e}"]`),_=o.select("#"+e+" g");for(k(_,h),_.selectAll("g.node").attr("title",function(){return n.db.getTooltip(this.id)}),n.db.indexNodes("subGraph"+g),g=0;g<p.length;g++)if(u=p[g],u.title!=="undefined"){const m=c.querySelectorAll("#"+e+' [id="'+n.db.lookUpDomId(u.id)+'"] rect'),b=c.querySelectorAll("#"+e+' [id="'+n.db.lookUpDomId(u.id)+'"]'),L=m[0].x.baseVal.value,w=m[0].y.baseVal.value,B=m[0].width.baseVal.value,C=x(b[0]).select(".label");C.attr("transform",`translate(${L+B/2}, ${w+14})`),C.attr("id",e+"Text");for(let W=0;W<u.classes.length;W++)b[0].classList.add(u.classes[W])}if(!s.htmlLabels){const m=c.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const b of m){const L=b.getBBox(),w=c.createElementNS("http://www.w3.org/2000/svg","rect");w.setAttribute("rx",0),w.setAttribute("ry",0),w.setAttribute("width",L.width),w.setAttribute("height",L.height),b.insertBefore(w,b.firstChild)}}Et(h,I,s.diagramPadding,s.useMaxWidth),Object.keys(y).forEach(function(m){const b=y[m];if(b.link){const L=o.select("#"+e+' [id="'+n.db.lookUpDomId(m)+'"]');if(L){const w=c.createElementNS("http://www.w3.org/2000/svg","a");w.setAttributeNS("http://www.w3.org/2000/svg","class",b.classes.join(" ")),w.setAttributeNS("http://www.w3.org/2000/svg","href",b.link),w.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),a==="sandbox"?w.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):b.linkTarget&&w.setAttributeNS("http://www.w3.org/2000/svg","target",b.linkTarget);const B=L.insert(function(){return w},":first-child"),P=L.select(".label-container");P&&B.append(function(){return P.node()});const C=L.select(".label");C&&B.append(function(){return C.node()})}}})},ke={setConf:we,addVertices:kt,addEdges:St,getClasses:xe,draw:be},We={parser:Lt,db:V,renderer:It,styles:Bt,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,ke.setConf(r.flowchart),V.clear(),V.setGen("gen-1")}};export{We as diagram};
import{c as et,as as me,s as ye,g as ve,a as Ve,b as Le,C as Ie,D as Re,l as J1,v as dt,E as Ne,j as we,h as w1}from"./slidev/Mermaid-sWhOKcCj.js";var pt=function(){var e=function(f1,a,o,f){for(o=o||{},f=f1.length;f--;o[f1[f]]=a);return o},u=[1,4],i=[1,3],n=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],U=[1,14],F=[1,15],w=[1,16],X=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],S=[1,49],k=[1,48],l1=[1,29],U1=[1,30],G1=[1,31],M1=[1,32],K1=[1,33],x=[1,44],B=[1,46],m=[1,42],y=[1,47],v=[1,43],V=[1,50],L=[1,45],I=[1,51],R=[1,52],Y1=[1,34],j1=[1,35],z1=[1,36],X1=[1,37],I1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],q=[1,61],Q=[1,60],Z=[1,62],H1=[8,9,11,73,75],k1=[1,88],b1=[1,93],g1=[1,92],D1=[1,89],F1=[1,85],T1=[1,91],C1=[1,87],S1=[1,94],_1=[1,90],x1=[1,95],B1=[1,86],W1=[8,9,10,11,73,75],N=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Et=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],R1=[42,58,86,99,102,103,106,108,111,112,113],kt=[1,121],bt=[1,120],gt=[1,128],Dt=[1,142],Ft=[1,143],Tt=[1,144],Ct=[1,145],St=[1,130],_t=[1,132],xt=[1,136],Bt=[1,137],mt=[1,138],yt=[1,139],vt=[1,140],Vt=[1,141],Lt=[1,146],It=[1,147],Rt=[1,126],Nt=[1,127],wt=[1,134],Ot=[1,129],Pt=[1,133],Ut=[1,131],nt=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Gt=[1,149],T=[8,9,11],K=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],p=[1,169],O=[1,165],P=[1,166],A=[1,170],d=[1,167],E=[1,168],m1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mt=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],J=[1,235],$=[1,233],t1=[1,237],e1=[1,231],s1=[1,232],u1=[1,234],i1=[1,236],r1=[1,238],y1=[1,255],Kt=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],at={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,f,r,C,t,N1){var s=t.length-1;switch(C){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:this.$=t[s];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 43:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 49:this.$=t[s];break;case 50:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],r.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 71:this.$=t[s];break;case 72:var Y=r.destructLink(t[s],t[s-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,text:t[s-1]};break;case 73:this.$={text:t[s],type:"text"};break;case 74:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:this.$={text:t[s],type:"string"};break;case 76:this.$={text:t[s],type:"markdown"};break;case 77:var Y=r.destructLink(t[s]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length};break;case 78:this.$=t[s-1];break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 94:this.$={text:t[s],type:"text"};break;case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 96:this.$={text:t[s],type:"text"};break;case 98:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 121:case 123:this.$=[t[s]];break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 174:this.$=t[s];break;case 175:this.$=t[s-1]+""+t[s];break;case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:u,10:i,12:n},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:n},{4:8,9:u,10:i,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:I1,15:53,18:56},e(b,[2,3]),e(b,[2,4]),e(b,[2,5]),e(b,[2,6]),e(b,[2,7]),e(b,[2,8]),{8:q,9:Q,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:q,9:Q,11:Z,21:66},{8:q,9:Q,11:Z,21:67},{8:q,9:Q,11:Z,21:68},{8:q,9:Q,11:Z,21:69},{8:q,9:Q,11:Z,21:70},{8:q,9:Q,10:[1,71],11:Z,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(H1,[2,46],{18:75,10:I1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:k1,42:b1,58:g1,77:[1,83],86:D1,92:[1,80],94:[1,81],98:82,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(W1,[2,47]),e(W1,[2,49],{44:[1,96]}),e(N,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(M,[2,174]),e(M,[2,135]),e(M,[2,136]),e(M,[2,137]),e(M,[2,138]),e(M,[2,139]),e(M,[2,140]),e(M,[2,141]),e(M,[2,142]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Et,[2,26],{18:111,10:I1}),e(b,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(R1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:kt,116:bt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:gt,12:Dt,14:Ft,27:Tt,28:122,32:Ct,42:St,58:_t,73:xt,77:[1,124],78:[1,125],80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:123,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(nt,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(H1,[2,45],{42:Gt}),{42:S,45:150,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{42:S,45:155,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,110],{10:[1,161]}),e(K,[2,176]),e(K,[2,163]),e(K,[2,164]),e(K,[2,165]),e(K,[2,166]),e(K,[2,167]),e(K,[2,168]),e(K,[2,169]),e(K,[2,170]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),{42:S,45:162,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{30:163,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:171,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:174,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:175,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:176,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:181,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:182,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:183,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(M,[2,175]),e(c,[2,20]),e(Et,[2,25]),e(H1,[2,43],{18:184,10:I1}),e(R1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:kt,116:bt},e(m1,[2,73]),e(m1,[2,75]),e(m1,[2,76]),e(m1,[2,161]),e(m1,[2,162]),{8:q,9:Q,10:gt,11:Z,12:Dt,14:Ft,21:191,27:Tt,29:[1,190],32:Ct,42:St,58:_t,73:xt,80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:192,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:I1,18:194},{10:[1,195],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,196]},{10:[1,197],103:[1,198]},e(Mt,[2,121]),{10:[1,199],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,200],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(K,[2,177]),{77:[1,205],95:[1,206]},e(W1,[2,50],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),{31:[1,207],65:p,79:208,113:A,114:d,115:E},e(h1,[2,79]),e(h1,[2,81]),e(h1,[2,82]),e(h1,[2,146]),e(h1,[2,147]),e(h1,[2,148]),e(h1,[2,149]),{47:[1,209],65:p,79:208,113:A,114:d,115:E},{30:210,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{49:[1,211],65:p,79:208,113:A,114:d,115:E},{51:[1,212],65:p,79:208,113:A,114:d,115:E},{53:[1,213],65:p,79:208,113:A,114:d,115:E},{55:[1,214],65:p,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:p,79:208,113:A,114:d,115:E},{64:[1,217],65:p,79:208,113:A,114:d,115:E},{30:218,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{31:[1,219],65:p,79:208,113:A,114:d,115:E},{65:p,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:p,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(H1,[2,44],{42:Gt}),e(R1,[2,70]),e(R1,[2,69]),{60:[1,224],65:p,79:208,113:A,114:d,115:E},e(R1,[2,72]),e(m1,[2,74]),{30:225,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(nt,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{10:J,58:$,81:t1,89:228,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:239,101:[1,240],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:241,101:[1,242],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{102:[1,243]},{10:J,58:$,81:t1,89:244,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{42:S,45:245,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(N,[2,51]),e(h1,[2,80]),e(N,[2,52]),{49:[1,250],65:p,79:208,113:A,114:d,115:E},e(N,[2,59]),e(N,[2,54]),e(N,[2,55]),e(N,[2,56]),{106:[1,251]},e(N,[2,58]),e(N,[2,60]),{64:[1,252],65:p,79:208,113:A,114:d,115:E},e(N,[2,62]),e(N,[2,63]),e(N,[2,65]),e(N,[2,64]),e(N,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(W1,[2,48]),e(T,[2,114],{103:y1}),e(Kt,[2,123],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(W,[2,125]),e(W,[2,127]),e(W,[2,128]),e(W,[2,129]),e(W,[2,130]),e(W,[2,131]),e(W,[2,132]),e(W,[2,133]),e(W,[2,134]),e(T,[2,115],{103:y1}),{10:[1,257]},e(T,[2,116],{103:y1}),{10:[1,258]},e(Mt,[2,122]),e(T,[2,98],{103:y1}),e(T,[2,99],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:q,9:Q,11:Z,21:264},e(b,[2,34]),{10:J,58:$,81:t1,102:e1,104:265,105:230,106:s1,107:u1,108:i1,109:r1},e(W,[2,126]),{14:k1,42:b1,58:g1,86:D1,98:266,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{14:k1,42:b1,58:g1,86:D1,98:267,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{95:[1,268]},e(T,[2,113]),e(N,[2,53]),{30:269,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(N,[2,61]),e(nt,l,{5:270}),e(Kt,[2,124],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(T,[2,119],{117:160,10:[1,271],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,120],{117:160,10:[1,272],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,107]),{31:[1,273],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:J,58:$,81:t1,89:275,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:276,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},e(N,[2,57]),e(b,[2,33]),e(T,[2,117],{103:y1}),e(T,[2,118],{103:y1})],defaultActions:{},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var f=new Error(a);throw f.hash=o,f}},parse:function(a){var o=this,f=[0],r=[],C=[null],t=[],N1=this.table,s="",Y=0,Yt=0,Se=2,jt=1,_e=t.slice.call(arguments,1),_=Object.create(this.lexer),d1={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(d1.yy[ot]=this.yy[ot]);_.setInput(a,d1.yy),d1.yy.lexer=_,d1.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var lt=_.yylloc;t.push(lt);var xe=_.options&&_.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(){var a1;return a1=r.pop()||_.lex()||jt,typeof a1!="number"&&(a1 instanceof Array&&(r=a1,a1=r.pop()),a1=o.symbols_[a1]||a1),a1}for(var G,E1,j,ht,v1={},q1,n1,zt,Q1;;){if(E1=f[f.length-1],this.defaultActions[E1]?j=this.defaultActions[E1]:((G===null||typeof G>"u")&&(G=Be()),j=N1[E1]&&N1[E1][G]),typeof j>"u"||!j.length||!j[0]){var ft="";Q1=[];for(q1 in N1[E1])this.terminals_[q1]&&q1>Se&&Q1.push("'"+this.terminals_[q1]+"'");_.showPosition?ft="Parse error on line "+(Y+1)+`:
`+_.showPosition()+`
Expecting `+Q1.join(", ")+", got '"+(this.terminals_[G]||G)+"'":ft="Parse error on line "+(Y+1)+": Unexpected "+(G==jt?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(ft,{text:_.match,token:this.terminals_[G]||G,line:_.yylineno,loc:lt,expected:Q1})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E1+", token: "+G);switch(j[0]){case 1:f.push(G),C.push(_.yytext),t.push(_.yylloc),f.push(j[1]),G=null,Yt=_.yyleng,s=_.yytext,Y=_.yylineno,lt=_.yylloc;break;case 2:if(n1=this.productions_[j[1]][1],v1.$=C[C.length-n1],v1._$={first_line:t[t.length-(n1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(n1||1)].first_column,last_column:t[t.length-1].last_column},xe&&(v1._$.range=[t[t.length-(n1||1)].range[0],t[t.length-1].range[1]]),ht=this.performAction.apply(v1,[s,Yt,Y,d1.yy,j[1],C,t].concat(_e)),typeof ht<"u")return ht;n1&&(f=f.slice(0,-1*n1*2),C=C.slice(0,-1*n1),t=t.slice(0,-1*n1)),f.push(this.productions_[j[1]][0]),C.push(v1.$),t.push(v1._$),zt=N1[f[f.length-2]][f[f.length-1]],f.push(zt);break;case 3:return!0}}return!0}},Ce=function(){var f1={EOF:1,parseError:function(o,f){if(this.yy.parser)this.yy.parser.parseError(o,f);else throw new Error(o)},setInput:function(a,o){return this.yy=o||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var o=a.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var o=a.length,f=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===r.length?this.yylloc.first_column:0)+r[r.length-f.length].length-f[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),o=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
`+o+"^"},test_match:function(a,o){var f,r,C;if(this.options.backtrack_lexer&&(C={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(C.yylloc.range=this.yylloc.range.slice(0))),r=a[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],f=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var t in C)this[t]=C[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,o,f,r;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),t=0;t<C.length;t++)if(f=this._input.match(this.rules[C[t]]),f&&(!o||f[0].length>o[0].length)){if(o=f,r=t,this.options.backtrack_lexer){if(a=this.test_match(f,C[t]),a!==!1)return a;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(a=this.test_match(o,C[r]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return o||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(o,f,r,C){switch(r){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return o.lex.firstGraph()&&this.begin("dir"),12;case 30:return o.lex.firstGraph()&&this.begin("dir"),12;case 31:return o.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;case 39:return this.popState(),14;case 40:return this.popState(),14;case 41:return this.popState(),14;case 42:return this.popState(),14;case 43:return this.popState(),14;case 44:return this.popState(),14;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:return 116;case 64:return this.popState(),75;case 65:return this.pushState("thickEdgeText"),73;case 66:return 116;case 67:return this.popState(),75;case 68:return this.pushState("dottedEdgeText"),73;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112:return 11}},rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}};return f1}();at.lexer=Ce;function ct(){this.yy={}}return ct.prototype=at,at.Parser=ct,new ct}();pt.parser=pt;const Xe=pt,Oe="flowchart-";let Xt=0,L1=et(),D={},H=[],V1={},c1=[],$1={},tt={},Z1=0,At=!0,z,st,ut=[];const it=e=>we.sanitizeText(e,L1),P1=function(e){const u=Object.keys(D);for(const i of u)if(D[i].id===e)return D[i].domId;return e},Ht=function(e,u,i,n,c,l,h={}){let U,F=e;F!==void 0&&F.trim().length!==0&&(D[F]===void 0&&(D[F]={id:F,labelType:"text",domId:Oe+F+"-"+Xt,styles:[],classes:[]}),Xt++,u!==void 0?(L1=et(),U=it(u.text.trim()),D[F].labelType=u.type,U[0]==='"'&&U[U.length-1]==='"'&&(U=U.substring(1,U.length-1)),D[F].text=U):D[F].text===void 0&&(D[F].text=e),i!==void 0&&(D[F].type=i),n!=null&&n.forEach(function(w){D[F].styles.push(w)}),c!=null&&c.forEach(function(w){D[F].classes.push(w)}),l!==void 0&&(D[F].dir=l),D[F].props===void 0?D[F].props=h:h!==void 0&&Object.assign(D[F].props,h))},Wt=function(e,u,i){const l={start:e,end:u,type:void 0,text:"",labelType:"text"};J1.info("abc78 Got edge...",l);const h=i.text;if(h!==void 0&&(l.text=it(h.text.trim()),l.text[0]==='"'&&l.text[l.text.length-1]==='"'&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=h.type),i!==void 0&&(l.type=i.type,l.stroke=i.stroke,l.length=i.length),(l==null?void 0:l.length)>10&&(l.length=10),H.length<(L1.maxEdges??500))J1.info("abc78 pushing edge..."),H.push(l);else throw new Error(`Edge limit exceeded. ${H.length} edges found, but the limit is ${L1.maxEdges}.
Initialize mermaid with maxEdges set to a higher number to allow more edges.
You cannot set this config via configuration inside the diagram as it is a secure config.
You have to call mermaid.initialize.`)},qt=function(e,u,i){J1.info("addLink (abc78)",e,u,i);let n,c;for(n=0;n<e.length;n++)for(c=0;c<u.length;c++)Wt(e[n],u[c],i)},Qt=function(e,u){e.forEach(function(i){i==="default"?H.defaultInterpolate=u:H[i].interpolate=u})},Zt=function(e,u){e.forEach(function(i){if(i>=H.length)throw new Error(`The index ${i} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${H.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);i==="default"?H.defaultStyle=u:(dt.isSubstringInArray("fill",u)===-1&&u.push("fill:none"),H[i].style=u)})},Jt=function(e,u){e.split(",").forEach(function(i){V1[i]===void 0&&(V1[i]={id:i,styles:[],textStyles:[]}),u!=null&&u.forEach(function(n){if(n.match("color")){const c=n.replace("fill","bgFill").replace("color","fill");V1[i].textStyles.push(c)}V1[i].styles.push(n)})})},$t=function(e){z=e,z.match(/.*</)&&(z="RL"),z.match(/.*\^/)&&(z="BT"),z.match(/.*>/)&&(z="LR"),z.match(/.*v/)&&(z="TB"),z==="TD"&&(z="TB")},rt=function(e,u){e.split(",").forEach(function(i){let n=i;D[n]!==void 0&&D[n].classes.push(u),$1[n]!==void 0&&$1[n].classes.push(u)})},Pe=function(e,u){e.split(",").forEach(function(i){u!==void 0&&(tt[st==="gen-1"?P1(i):i]=it(u))})},Ue=function(e,u,i){let n=P1(e);if(et().securityLevel!=="loose"||u===void 0)return;let c=[];if(typeof i=="string"){c=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l<c.length;l++){let h=c[l].trim();h.charAt(0)==='"'&&h.charAt(h.length-1)==='"'&&(h=h.substr(1,h.length-2)),c[l]=h}}c.length===0&&c.push(e),D[e]!==void 0&&(D[e].haveCallback=!0,ut.push(function(){const l=document.querySelector(`[id="${n}"]`);l!==null&&l.addEventListener("click",function(){dt.runFunc(u,...c)},!1)}))},te=function(e,u,i){e.split(",").forEach(function(n){D[n]!==void 0&&(D[n].link=dt.formatUrl(u,L1),D[n].linkTarget=i)}),rt(e,"clickable")},ee=function(e){if(tt.hasOwnProperty(e))return tt[e]},se=function(e,u,i){e.split(",").forEach(function(n){Ue(n,u,i)}),rt(e,"clickable")},ue=function(e){ut.forEach(function(u){u(e)})},ie=function(){return z.trim()},re=function(){return D},ne=function(){return H},ae=function(){return V1},ce=function(e){let u=w1(".mermaidTooltip");(u._groups||u)[0][0]===null&&(u=w1("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),w1(e).select("svg").selectAll("g.node").on("mouseover",function(){const c=w1(this);if(c.attr("title")===null)return;const h=this.getBoundingClientRect();u.transition().duration(200).style("opacity",".9"),u.text(c.attr("title")).style("left",window.scrollX+h.left+(h.right-h.left)/2+"px").style("top",window.scrollY+h.bottom+"px"),u.html(u.html().replace(/<br\/>/g,"<br/>")),c.classed("hover",!0)}).on("mouseout",function(){u.transition().duration(500).style("opacity",0),w1(this).classed("hover",!1)})};ut.push(ce);const oe=function(e="gen-1"){D={},V1={},H=[],ut=[ce],c1=[],$1={},Z1=0,tt={},At=!0,st=e,L1=et(),Ne()},le=e=>{st=e||"gen-2"},he=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},fe=function(e,u,i){let n=e.text.trim(),c=i.text;e===i&&i.text.match(/\s/)&&(n=void 0);function l(X){const o1={boolean:{},number:{},string:{}},p1=[];let A1;return{nodeList:X.filter(function(k){const l1=typeof k;return k.stmt&&k.stmt==="dir"?(A1=k.value,!1):k.trim()===""?!1:l1 in o1?o1[l1].hasOwnProperty(k)?!1:o1[l1][k]=!0:p1.includes(k)?!1:p1.push(k)}),dir:A1}}let h=[];const{nodeList:U,dir:F}=l(h.concat.apply(h,u));if(h=U,st==="gen-1")for(let X=0;X<h.length;X++)h[X]=P1(h[X]);n=n||"subGraph"+Z1,c=c||"",c=it(c),Z1=Z1+1;const w={id:n,nodes:h,title:c.trim(),classes:[],dir:F,labelType:i.type};return J1.info("Adding",w.id,w.nodes,w.dir),w.nodes=Fe(w,c1).nodes,c1.push(w),$1[n]=w,n},Ge=function(e){for(const[u,i]of c1.entries())if(i.id===e)return u;return-1};let O1=-1;const pe=[],Ae=function(e,u){const i=c1[u].nodes;if(O1=O1+1,O1>2e3)return;if(pe[O1]=u,c1[u].id===e)return{result:!0,count:0};let n=0,c=1;for(;n<i.length;){const l=Ge(i[n]);if(l>=0){const h=Ae(e,l);if(h.result)return{result:!0,count:c+h.count};c=c+h.count}n=n+1}return{result:!1,count:c}},de=function(e){return pe[e]},Ee=function(){O1=-1,c1.length>0&&Ae("none",c1.length-1)},ke=function(){return c1},be=()=>At?(At=!1,!0):!1,Me=e=>{let u=e.trim(),i="arrow_open";switch(u[0]){case"<":i="arrow_point",u=u.slice(1);break;case"x":i="arrow_cross",u=u.slice(1);break;case"o":i="arrow_circle",u=u.slice(1);break}let n="normal";return u.includes("=")&&(n="thick"),u.includes(".")&&(n="dotted"),{type:i,stroke:n}},Ke=(e,u)=>{const i=u.length;let n=0;for(let c=0;c<i;++c)u[c]===e&&++n;return n},Ye=e=>{const u=e.trim();let i=u.slice(0,-1),n="arrow_open";switch(u.slice(-1)){case"x":n="arrow_cross",u[0]==="x"&&(n="double_"+n,i=i.slice(1));break;case">":n="arrow_point",u[0]==="<"&&(n="double_"+n,i=i.slice(1));break;case"o":n="arrow_circle",u[0]==="o"&&(n="double_"+n,i=i.slice(1));break}let c="normal",l=i.length-1;i[0]==="="&&(c="thick"),i[0]==="~"&&(c="invisible");let h=Ke(".",i);return h&&(c="dotted",l=h),{type:n,stroke:c,length:l}},ge=(e,u)=>{const i=Ye(e);let n;if(u){if(n=Me(u),n.stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if(n.type==="arrow_open")n.type=i.type;else{if(n.type!==i.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return n.type==="double_arrow"&&(n.type="double_arrow_point"),n.length=i.length,n}return i},De=(e,u)=>{let i=!1;return e.forEach(n=>{n.nodes.indexOf(u)>=0&&(i=!0)}),i},Fe=(e,u)=>{const i=[];return e.nodes.forEach((n,c)=>{De(u,n)||i.push(e.nodes[c])}),{nodes:i}},Te={firstGraph:be},je={defaultConfig:()=>me.flowchart,setAccTitle:ye,getAccTitle:ve,getAccDescription:Ve,setAccDescription:Le,addVertex:Ht,lookUpDomId:P1,addLink:qt,updateLinkInterpolate:Qt,updateLink:Zt,addClass:Jt,setDirection:$t,setClass:rt,setTooltip:Pe,getTooltip:ee,setClickEvent:se,setLink:te,bindFunctions:ue,getDirection:ie,getVertices:re,getEdges:ne,getClasses:ae,clear:oe,setGen:le,defaultStyle:he,addSubGraph:fe,getDepthFirstPos:de,indexNodes:Ee,getSubGraphs:ke,destructLink:ge,lex:Te,exists:De,makeUniq:Fe,setDiagramTitle:Ie,getDiagramTitle:Re},He=Object.freeze(Object.defineProperty({__proto__:null,addClass:Jt,addLink:qt,addSingleLink:Wt,addSubGraph:fe,addVertex:Ht,bindFunctions:ue,clear:oe,default:je,defaultStyle:he,destructLink:ge,firstGraph:be,getClasses:ae,getDepthFirstPos:de,getDirection:ie,getEdges:ne,getSubGraphs:ke,getTooltip:ee,getVertices:re,indexNodes:Ee,lex:Te,lookUpDomId:P1,setClass:rt,setClickEvent:se,setDirection:$t,setGen:le,setLink:te,updateLink:Zt,updateLinkInterpolate:Qt},Symbol.toStringTag,{value:"Module"}));export{He as d,je as f,Xe as p};
import{c as Z,s as Et,g as mt,b as gt,a as kt,C as Rt,D as Ot,l as V,E as bt,h as rt,v as Nt,i as xt,F as Tt,G as At}from"./slidev/Mermaid-sWhOKcCj.js";import{G as Mt}from"./graph-af3d5df6-B9Rrt_D8.js";import{l as St}from"./layout-6685625a-TirZJcn7.js";import{l as wt}from"./line-65d70945-Bv9b7vLo.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";var at=function(){var t=function(S,a,n,c){for(n=n||{},c=S.length;c--;n[S[c]]=a);return n},e=[6,8,10,20,22,24,26,27,28],r=[1,10],u=[1,11],l=[1,12],f=[1,13],y=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],g=[1,24],R=[1,25],p=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],x=[1,34],I=[27,28,46,47],F=[41,42,43,44,45],W=[17,34],C=[1,54],T=[1,53],M=[17,34,36,38],O={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(a,n,c,d,E,i,K){var s=i.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:i[s-1].push(i[s]),this.$=i[s-1];break;case 4:case 5:this.$=i[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(i[s-4]),d.addEntity(i[s-2]),d.addRelationship(i[s-4],i[s],i[s-2],i[s-3]);break;case 9:d.addEntity(i[s-3]),d.addAttributes(i[s-3],i[s-1]);break;case 10:d.addEntity(i[s-2]);break;case 11:d.addEntity(i[s]);break;case 12:d.addEntity(i[s-6],i[s-4]),d.addAttributes(i[s-6],i[s-1]);break;case 13:d.addEntity(i[s-5],i[s-3]);break;case 14:d.addEntity(i[s-3],i[s-1]);break;case 15:case 16:this.$=i[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=i[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=i[s];break;case 20:case 41:case 42:this.$=i[s].replace(/"/g,"");break;case 21:case 29:this.$=[i[s]];break;case 22:i[s].push(i[s-1]),this.$=i[s];break;case 23:this.$={attributeType:i[s-1],attributeName:i[s]};break;case 24:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeKeyTypeList:i[s]};break;case 25:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeComment:i[s]};break;case 26:this.$={attributeType:i[s-3],attributeName:i[s-2],attributeKeyTypeList:i[s-1],attributeComment:i[s]};break;case 27:case 28:case 31:this.$=i[s];break;case 30:i[s-2].push(i[s]),this.$=i[s-2];break;case 32:this.$=i[s].replace(/"/g,"");break;case 33:this.$={cardA:i[s],relType:i[s-1],cardB:i[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:u,24:l,26:f,27:y,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:l,26:f,27:y,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:g,45:R}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(p,[2,19]),t(p,[2,20]),t(e,[2,4]),{11:29,27:y,28:o},{16:30,17:[1,31],29:32,30:33,34:x},{11:35,27:y,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:x},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:g,45:R},t(F,[2,39]),t(F,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(W,[2,23],{32:50,33:51,35:52,37:C,38:T}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(W,[2,24],{33:56,36:[1,57],38:T}),t(W,[2,25]),t(M,[2,29]),t(W,[2,32]),t(M,[2,31]),{16:58,17:[1,59],29:32,30:33,34:x},t(W,[2,26]),{35:60,37:C},{17:[1,61]},t(e,[2,13]),t(M,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(a,n){if(n.recoverable)this.trace(a);else{var c=new Error(a);throw c.hash=n,c}},parse:function(a){var n=this,c=[0],d=[],E=[null],i=[],K=this.table,s="",Q=0,st=0,yt=2,ot=1,pt=i.slice.call(arguments,1),N=Object.create(this.lexer),G={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(G.yy[J]=this.yy[J]);N.setInput(a,G.yy),G.yy.lexer=N,G.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var $=N.yylloc;i.push($);var ft=N.options&&N.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var Y;return Y=d.pop()||N.lex()||ot,typeof Y!="number"&&(Y instanceof Array&&(d=Y,Y=d.pop()),Y=n.symbols_[Y]||Y),Y}for(var w,H,D,tt,z={},j,P,lt,q;;){if(H=c[c.length-1],this.defaultActions[H]?D=this.defaultActions[H]:((w===null||typeof w>"u")&&(w=_t()),D=K[H]&&K[H][w]),typeof D>"u"||!D.length||!D[0]){var et="";q=[];for(j in K[H])this.terminals_[j]&&j>yt&&q.push("'"+this.terminals_[j]+"'");N.showPosition?et="Parse error on line "+(Q+1)+`:
`+N.showPosition()+`
Expecting `+q.join(", ")+", got '"+(this.terminals_[w]||w)+"'":et="Parse error on line "+(Q+1)+": Unexpected "+(w==ot?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(et,{text:N.match,token:this.terminals_[w]||w,line:N.yylineno,loc:$,expected:q})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+w);switch(D[0]){case 1:c.push(w),E.push(N.yytext),i.push(N.yylloc),c.push(D[1]),w=null,st=N.yyleng,s=N.yytext,Q=N.yylineno,$=N.yylloc;break;case 2:if(P=this.productions_[D[1]][1],z.$=E[E.length-P],z._$={first_line:i[i.length-(P||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(P||1)].first_column,last_column:i[i.length-1].last_column},ft&&(z._$.range=[i[i.length-(P||1)].range[0],i[i.length-1].range[1]]),tt=this.performAction.apply(z,[s,st,Q,G.yy,D[1],E,i].concat(pt)),typeof tt<"u")return tt;P&&(c=c.slice(0,-1*P*2),E=E.slice(0,-1*P),i=i.slice(0,-1*P)),c.push(this.productions_[D[1]][0]),E.push(z.$),i.push(z._$),lt=K[c[c.length-2]][c[c.length-1]],c.push(lt);break;case 3:return!0}}return!0}},b=function(){var S={EOF:1,parseError:function(n,c){if(this.yy.parser)this.yy.parser.parseError(n,c);else throw new Error(n)},setInput:function(a,n){return this.yy=n||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var n=a.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var n=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),n=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
`+n+"^"},test_match:function(a,n){var c,d,E;if(this.options.backtrack_lexer&&(E={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(E.yylloc.range=this.yylloc.range.slice(0))),d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var i in E)this[i]=E[i];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,n,c,d;this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),i=0;i<E.length;i++)if(c=this._input.match(this.rules[E[i]]),c&&(!n||c[0].length>n[0].length)){if(n=c,d=i,this.options.backtrack_lexer){if(a=this.test_match(c,E[i]),a!==!1)return a;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(a=this.test_match(n,E[d]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,c,d,E){switch(d){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;case 22:return c.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return c.yytext[0];case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};return S}();O.lexer=b;function v(){this.yy={}}return v.prototype=O,O.Parser=v,new v}();at.parser=at;const It=at;let U={},nt=[];const Dt={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},vt={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},dt=function(t,e=void 0){return U[t]===void 0?(U[t]={attributes:[],alias:e},V.info("Added new entity :",t)):U[t]&&!U[t].alias&&e&&(U[t].alias=e,V.info(`Add alias '${e}' to entity '${t}'`)),U[t]},Lt=()=>U,Bt=function(t,e){let r=dt(t),u;for(u=e.length-1;u>=0;u--)r.attributes.push(e[u]),V.debug("Added attribute ",e[u].attributeName)},Ct=function(t,e,r,u){let l={entityA:t,roleA:e,entityB:r,relSpec:u};nt.push(l),V.debug("Added new relationship :",l)},Pt=()=>nt,Yt=function(){U={},nt=[],bt()},Zt={Cardinality:Dt,Identification:vt,getConfig:()=>Z().er,addEntity:dt,addAttributes:Bt,getEntities:Lt,addRelationship:Ct,getRelationships:Pt,clear:Yt,setAccTitle:Et,getAccTitle:mt,setAccDescription:gt,getAccDescription:kt,setDiagramTitle:Rt,getDiagramTitle:Ot},L={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},Ft=function(t,e){let r;t.append("defs").append("marker").attr("id",L.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",L.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",L.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",L.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",L.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",L.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},B={ERMarkers:L,insertMarkers:Ft},Wt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Ut(t){return typeof t=="string"&&Wt.test(t)}const A=[];for(let t=0;t<256;++t)A.push((t+256).toString(16).slice(1));function Gt(t,e=0){return A[t[e+0]]+A[t[e+1]]+A[t[e+2]]+A[t[e+3]]+"-"+A[t[e+4]]+A[t[e+5]]+"-"+A[t[e+6]]+A[t[e+7]]+"-"+A[t[e+8]]+A[t[e+9]]+"-"+A[t[e+10]]+A[t[e+11]]+A[t[e+12]]+A[t[e+13]]+A[t[e+14]]+A[t[e+15]]}function Ht(t){if(!Ut(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function zt(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}const Kt="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Vt="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Xt(t,e,r){function u(l,f,y,o){var h;if(typeof l=="string"&&(l=zt(l)),typeof f=="string"&&(f=Ht(f)),((h=f)===null||h===void 0?void 0:h.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let _=new Uint8Array(16+l.length);if(_.set(f),_.set(l,f.length),_=r(_),_[6]=_[6]&15|e,_[8]=_[8]&63|128,y){o=o||0;for(let m=0;m<16;++m)y[o+m]=_[m];return y}return Gt(_)}try{u.name=t}catch{}return u.DNS=Kt,u.URL=Vt,u}function Qt(t,e,r,u){switch(t){case 0:return e&r^~e&u;case 1:return e^r^u;case 2:return e&r^e&u^r&u;case 3:return e^r^u}}function it(t,e){return t<<e|t>>>32-e}function jt(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const y=unescape(encodeURIComponent(t));t=[];for(let o=0;o<y.length;++o)t.push(y.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const u=t.length/4+2,l=Math.ceil(u/16),f=new Array(l);for(let y=0;y<l;++y){const o=new Uint32Array(16);for(let h=0;h<16;++h)o[h]=t[y*64+h*4]<<24|t[y*64+h*4+1]<<16|t[y*64+h*4+2]<<8|t[y*64+h*4+3];f[y]=o}f[l-1][14]=(t.length-1)*8/Math.pow(2,32),f[l-1][14]=Math.floor(f[l-1][14]),f[l-1][15]=(t.length-1)*8&4294967295;for(let y=0;y<l;++y){const o=new Uint32Array(80);for(let p=0;p<16;++p)o[p]=f[y][p];for(let p=16;p<80;++p)o[p]=it(o[p-3]^o[p-8]^o[p-14]^o[p-16],1);let h=r[0],_=r[1],m=r[2],g=r[3],R=r[4];for(let p=0;p<80;++p){const x=Math.floor(p/20),I=it(h,5)+Qt(x,_,m,g)+R+e[x]+o[p]>>>0;R=g,g=m,m=it(_,30)>>>0,_=h,h=I}r[0]=r[0]+h>>>0,r[1]=r[1]+_>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+R>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const qt=Xt("v5",80,jt),Jt=qt,$t=/[^\dA-Za-z](\W)*/g;let k={},X=new Map;const te=function(t){const e=Object.keys(t);for(const r of e)k[r]=t[r]},ee=(t,e,r)=>{const u=k.entityPadding/3,l=k.entityPadding/3,f=k.fontSize*.85,y=e.node().getBBox(),o=[];let h=!1,_=!1,m=0,g=0,R=0,p=0,x=y.height+u*2,I=1;r.forEach(T=>{T.attributeKeyTypeList!==void 0&&T.attributeKeyTypeList.length>0&&(h=!0),T.attributeComment!==void 0&&(_=!0)}),r.forEach(T=>{const M=`${e.node().id}-attr-${I}`;let O=0;const b=At(T.attributeType),v=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",f+"px").text(b),S=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",f+"px").text(T.attributeName),a={};a.tn=v,a.nn=S;const n=v.node().getBBox(),c=S.node().getBBox();if(m=Math.max(m,n.width),g=Math.max(g,c.width),O=Math.max(n.height,c.height),h){const d=T.attributeKeyTypeList!==void 0?T.attributeKeyTypeList.join(","):"",E=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",f+"px").text(d);a.kn=E;const i=E.node().getBBox();R=Math.max(R,i.width),O=Math.max(O,i.height)}if(_){const d=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",f+"px").text(T.attributeComment||"");a.cn=d;const E=d.node().getBBox();p=Math.max(p,E.width),O=Math.max(O,E.height)}a.height=O,o.push(a),x+=O+u*2,I+=1});let F=4;h&&(F+=2),_&&(F+=2);const W=m+g+R+p,C={width:Math.max(k.minEntityWidth,Math.max(y.width+k.entityPadding*2,W+l*F)),height:r.length>0?x:Math.max(k.minEntityHeight,y.height+k.entityPadding*2)};if(r.length>0){const T=Math.max(0,(C.width-W-l*F)/(F/2));e.attr("transform","translate("+C.width/2+","+(u+y.height/2)+")");let M=y.height+u*2,O="attributeBoxOdd";o.forEach(b=>{const v=M+u+b.height/2;b.tn.attr("transform","translate("+l+","+v+")");const S=t.insert("rect","#"+b.tn.node().id).classed(`er ${O}`,!0).attr("x",0).attr("y",M).attr("width",m+l*2+T).attr("height",b.height+u*2),a=parseFloat(S.attr("x"))+parseFloat(S.attr("width"));b.nn.attr("transform","translate("+(a+l)+","+v+")");const n=t.insert("rect","#"+b.nn.node().id).classed(`er ${O}`,!0).attr("x",a).attr("y",M).attr("width",g+l*2+T).attr("height",b.height+u*2);let c=parseFloat(n.attr("x"))+parseFloat(n.attr("width"));if(h){b.kn.attr("transform","translate("+(c+l)+","+v+")");const d=t.insert("rect","#"+b.kn.node().id).classed(`er ${O}`,!0).attr("x",c).attr("y",M).attr("width",R+l*2+T).attr("height",b.height+u*2);c=parseFloat(d.attr("x"))+parseFloat(d.attr("width"))}_&&(b.cn.attr("transform","translate("+(c+l)+","+v+")"),t.insert("rect","#"+b.cn.node().id).classed(`er ${O}`,"true").attr("x",c).attr("y",M).attr("width",p+l*2+T).attr("height",b.height+u*2)),M+=b.height+u*2,O=O==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else C.height=Math.max(k.minEntityHeight,x),e.attr("transform","translate("+C.width/2+","+C.height/2+")");return C},re=function(t,e,r){const u=Object.keys(e);let l;return u.forEach(function(f){const y=le(f,"entity");X.set(f,y);const o=t.append("g").attr("id",y);l=l===void 0?y:l;const h="text-"+y,_=o.append("text").classed("er entityLabel",!0).attr("id",h).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",Z().fontFamily).style("font-size",k.fontSize+"px").text(e[f].alias??f),{width:m,height:g}=ee(o,_,e[f].attributes),p=o.insert("rect","#"+h).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",m).attr("height",g).node().getBBox();r.setNode(y,{width:p.width,height:p.height,shape:"rect",id:y})}),l},ie=function(t,e){e.nodes().forEach(function(r){r!==void 0&&e.node(r)!==void 0&&t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )")})},ut=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},ae=function(t,e){return t.forEach(function(r){e.setEdge(X.get(r.entityA),X.get(r.entityB),{relationship:r},ut(r))}),t};let ct=0;const ne=function(t,e,r,u,l){ct++;const f=r.edge(X.get(e.entityA),X.get(e.entityB),ut(e)),y=wt().x(function(x){return x.x}).y(function(x){return x.y}).curve(Tt),o=t.insert("path","#"+u).classed("er relationshipLine",!0).attr("d",y(f.points)).style("stroke",k.stroke).style("fill","none");e.relSpec.relType===l.db.Identification.NON_IDENTIFYING&&o.attr("stroke-dasharray","8,8");let h="";switch(k.arrowMarkerAbsolute&&(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,h=h.replace(/\(/g,"\\("),h=h.replace(/\)/g,"\\)")),e.relSpec.cardA){case l.db.Cardinality.ZERO_OR_ONE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ZERO_OR_ONE_END+")");break;case l.db.Cardinality.ZERO_OR_MORE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ZERO_OR_MORE_END+")");break;case l.db.Cardinality.ONE_OR_MORE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ONE_OR_MORE_END+")");break;case l.db.Cardinality.ONLY_ONE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ONLY_ONE_END+")");break;case l.db.Cardinality.MD_PARENT:o.attr("marker-end","url("+h+"#"+B.ERMarkers.MD_PARENT_END+")");break}switch(e.relSpec.cardB){case l.db.Cardinality.ZERO_OR_ONE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ZERO_OR_ONE_START+")");break;case l.db.Cardinality.ZERO_OR_MORE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ZERO_OR_MORE_START+")");break;case l.db.Cardinality.ONE_OR_MORE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ONE_OR_MORE_START+")");break;case l.db.Cardinality.ONLY_ONE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ONLY_ONE_START+")");break;case l.db.Cardinality.MD_PARENT:o.attr("marker-start","url("+h+"#"+B.ERMarkers.MD_PARENT_START+")");break}const _=o.node().getTotalLength(),m=o.node().getPointAtLength(_*.5),g="rel"+ct,p=t.append("text").classed("er relationshipLabel",!0).attr("id",g).attr("x",m.x).attr("y",m.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",Z().fontFamily).style("font-size",k.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+g).classed("er relationshipLabelBox",!0).attr("x",m.x-p.width/2).attr("y",m.y-p.height/2).attr("width",p.width).attr("height",p.height)},se=function(t,e,r,u){k=Z().er,V.info("Drawing ER diagram");const l=Z().securityLevel;let f;l==="sandbox"&&(f=rt("#i"+e));const o=(l==="sandbox"?rt(f.nodes()[0].contentDocument.body):rt("body")).select(`[id='${e}']`);B.insertMarkers(o,k);let h;h=new Mt({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:k.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const _=re(o,u.db.getEntities(),h),m=ae(u.db.getRelationships(),h);St(h),ie(o,h),m.forEach(function(I){ne(o,I,h,_,u)});const g=k.diagramPadding;Nt.insertTitle(o,"entityTitleText",k.titleTopMargin,u.db.getDiagramTitle());const R=o.node().getBBox(),p=R.width+g*2,x=R.height+g*2;xt(o,x,p,k.useMaxWidth),o.attr("viewBox",`${R.x-g} ${R.y-g} ${p} ${x}`)},oe="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function le(t="",e=""){const r=t.replace($t,"");return`${ht(e)}${ht(r)}${Jt(t,oe)}`}function ht(t=""){return t.length>0?`${t}-`:""}const ce={setConf:te,draw:se},he=t=>`
.entityBox {
fill: ${t.mainBkg};
stroke: ${t.nodeBorder};
}
.attributeBoxOdd {
fill: ${t.attributeBackgroundColorOdd};
stroke: ${t.nodeBorder};
}
.attributeBoxEven {
fill: ${t.attributeBackgroundColorEven};
stroke: ${t.nodeBorder};
}
.relationshipLabelBox {
fill: ${t.tertiaryColor};
opacity: 0.7;
background-color: ${t.tertiaryColor};
rect {
opacity: 0.5;
}
}
.relationshipLine {
stroke: ${t.lineColor};
}
.entityTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${t.textColor};
}
#MD_PARENT_START {
fill: #f5f5f5 !important;
stroke: ${t.lineColor} !important;
stroke-width: 1;
}
#MD_PARENT_END {
fill: #f5f5f5 !important;
stroke: ${t.lineColor} !important;
stroke-width: 1;
}
`,de=he,Oe={parser:It,db:Zt,renderer:ce,styles:de};export{Oe as diagram};
import{o as H,c as b,d as q,aU as Q,h as E,l as g,v as j,F as lt}from"./slidev/Mermaid-sWhOKcCj.js";import{a as st}from"./createText-f6615236-DY9JQ1lr.js";import{l as ct}from"./line-65d70945-Bv9b7vLo.js";const ht=(e,t,a,i)=>{t.forEach(l=>{wt[l](e,a,i)})},ot=(e,t,a)=>{g.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},yt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},pt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ft=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},dt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},xt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},gt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ut=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},bt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},wt={extension:ot,composition:yt,aggregation:pt,dependency:ft,lollipop:dt,point:xt,circle:gt,cross:ut,barb:bt},hr=ht;function mt(e,t){t&&e.attr("style",t)}function kt(e){const t=E(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=t.append("xhtml:div"),i=e.label,l=e.isNode?"nodeLabel":"edgeLabel";return a.html('<span class="'+l+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+i+"</span>"),mt(a,e.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const vt=(e,t,a,i)=>{let l=e||"";if(typeof l=="object"&&(l=l[0]),H(b().flowchart.htmlLabels)){l=l.replace(/\\n|\n/g,"<br />"),g.debug("vertexText"+l);const r={isNode:i,label:Q(l).replace(/fa[blrs]?:fa-[\w-]+/g,n=>`<i class='${n.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return kt(r)}else{const r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof l=="string"?s=l.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(l)?s=l:s=[];for(const n of s){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),a?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}return r}},R=vt,M=async(e,t,a,i)=>{let l;const r=t.useHtmlLabels||H(b().flowchart.htmlLabels);a?l=a:l="node default";const s=e.insert("g").attr("class",l).attr("id",t.domId||t.id),n=s.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=n.node();let h;t.labelType==="markdown"?h=st(n,q(Q(c),b()),{useHtmlLabels:r,width:t.width||b().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(R(q(Q(c),b()),t.labelStyle,!1,i));let y=h.getBBox();const f=t.padding/2;if(H(b().flowchart.htmlLabels)){const p=h.children[0],x=E(h),k=p.getElementsByTagName("img");if(k){const d=c.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...k].map(u=>new Promise(S=>{function B(){if(u.style.display="flex",u.style.flexDirection="column",d){const C=b().fontSize?b().fontSize:window.getComputedStyle(document.body).fontSize,D=parseInt(C,10)*5+"px";u.style.minWidth=D,u.style.maxWidth=D}else u.style.width="100%";S(u)}setTimeout(()=>{u.complete&&B()}),u.addEventListener("error",B),u.addEventListener("load",B)})))}y=p.getBoundingClientRect(),x.attr("width",y.width),x.attr("height",y.height)}return r?n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"):n.attr("transform","translate(0, "+-y.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:s,bbox:y,halfPadding:f,label:n}},m=(e,t)=>{const a=t.node().getBBox();e.width=a.width,e.height=a.height};function I(e,t,a,i){return e.insert("polygon",":first-child").attr("points",i.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}function Lt(e,t){return e.intersect(t)}function it(e,t,a,i){var l=e.x,r=e.y,s=l-i.x,n=r-i.y,c=Math.sqrt(t*t*n*n+a*a*s*s),o=Math.abs(t*a*s/c);i.x<l&&(o=-o);var h=Math.abs(t*a*n/c);return i.y<r&&(h=-h),{x:l+o,y:r+h}}function St(e,t,a){return it(e,t,t,a)}function Mt(e,t,a,i){var l,r,s,n,c,o,h,y,f,p,x,k,d,u,S;if(l=t.y-e.y,s=e.x-t.x,c=t.x*e.y-e.x*t.y,f=l*a.x+s*a.y+c,p=l*i.x+s*i.y+c,!(f!==0&&p!==0&&J(f,p))&&(r=i.y-a.y,n=a.x-i.x,o=i.x*a.y-a.x*i.y,h=r*e.x+n*e.y+o,y=r*t.x+n*t.y+o,!(h!==0&&y!==0&&J(h,y))&&(x=l*n-r*s,x!==0)))return k=Math.abs(x/2),d=s*o-n*c,u=d<0?(d-k)/x:(d+k)/x,d=r*c-l*o,S=d<0?(d-k)/x:(d+k)/x,{x:u,y:S}}function J(e,t){return e*t>0}function Tt(e,t,a){var i=e.x,l=e.y,r=[],s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(x){s=Math.min(s,x.x),n=Math.min(n,x.y)}):(s=Math.min(s,t.x),n=Math.min(n,t.y));for(var c=i-e.width/2-s,o=l-e.height/2-n,h=0;h<t.length;h++){var y=t[h],f=t[h<t.length-1?h+1:0],p=Mt(e,a,{x:c+y.x,y:o+y.y},{x:c+f.x,y:o+f.y});p&&r.push(p)}return r.length?(r.length>1&&r.sort(function(x,k){var d=x.x-a.x,u=x.y-a.y,S=Math.sqrt(d*d+u*u),B=k.x-a.x,C=k.y-a.y,X=Math.sqrt(B*B+C*C);return S<X?-1:S===X?0:1}),r[0]):e}const Bt=(e,t)=>{var a=e.x,i=e.y,l=t.x-a,r=t.y-i,s=e.width/2,n=e.height/2,c,o;return Math.abs(r)*s>Math.abs(l)*n?(r<0&&(n=-n),c=r===0?0:n*l/r,o=n):(l<0&&(s=-s),c=s,o=l===0?0:s*r/l),{x:a+c,y:i+o}},Et=Bt,w={node:Lt,circle:St,ellipse:it,polygon:Tt,rect:Et},Ct=async(e,t)=>{t.useHtmlLabels||b().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:i,bbox:l,halfPadding:r}=await M(e,t,"node "+t.classes,!0);g.info("Classes = ",t.classes);const s=i.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-l.width/2-r).attr("y",-l.height/2-r).attr("width",l.width+t.padding).attr("height",l.height+t.padding),m(t,s),t.intersect=function(n){return w.rect(t,n)},i},$t=Ct,_t=e=>{const t=new Set;for(const a of e)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},Rt=(e,t,a)=>{const i=_t(e),l=2,r=t.height+2*a.padding,s=r/l,n=t.width+2*s+a.padding,c=a.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:s,y:0},{x:n/2,y:2*c},{x:n-s,y:0},{x:n,y:0},{x:n,y:-r/3},{x:n+2*c,y:-r/2},{x:n,y:-2*r/3},{x:n,y:-r},{x:n-s,y:-r},{x:n/2,y:-r-2*c},{x:s,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*c,y:-r/2},{x:0,y:-r/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:s,y:-r},{x:n-s,y:-r},{x:n,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:n,y:-s},{x:n,y:-r+s},{x:0,y:-r}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:n,y:0},{x:0,y:-s},{x:0,y:-r+s},{x:n,y:-r}]:i.has("right")&&i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")&&i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:n,y:-s},{x:0,y:-r}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:n,y:0},{x:0,y:-r}]:i.has("left")&&i.has("up")?[{x:n,y:0},{x:0,y:-s},{x:n,y:-r}]:i.has("left")&&i.has("down")?[{x:n,y:0},{x:0,y:0},{x:n,y:-r}]:i.has("right")?[{x:s,y:-c},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r+c}]:i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")?[{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c}]:i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:[{x:0,y:0}]},K=e=>e?" "+e:"",_=(e,t)=>`${t||"node default"}${K(e.classes)} ${K(e.class)}`,P=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=l+r,n=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];g.info("Question main (Circle)");const c=I(a,s,s,n);return c.attr("style",t.style),m(t,c),t.intersect=function(o){return g.warn("Intersect called"),w.polygon(t,n,o)},a},Ht=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=28,l=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}];return a.insert("polygon",":first-child").attr("points",l.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(s){return w.circle(t,14,s)},a},It=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=4,r=i.height+t.padding,s=r/l,n=i.width+2*s+t.padding,c=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}],o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Nt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,void 0,!0),l=2,r=i.height+2*t.padding,s=r/l,n=i.width+2*s+t.padding,c=Rt(t.directions,i,t),o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Ot=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-r/2,y:0},{x:l,y:0},{x:l,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return I(a,l,r,s).attr("style",t.style),t.width=l+r,t.height=r,t.intersect=function(c){return w.polygon(t,s,c)},a},Wt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Xt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:2*r/6,y:0},{x:l+r/6,y:0},{x:l-2*r/6,y:-r},{x:-r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Yt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l+2*r/6,y:0},{x:l-r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Dt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:-2*r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},At=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l+r/2,y:0},{x:l,y:-r/2},{x:l+r/2,y:-r},{x:0,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},jt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=l/2,s=r/(2.5+l/50),n=i.height+s+t.padding,c="M 0,"+s+" a "+r+","+s+" 0,0,0 "+l+" 0 a "+r+","+s+" 0,0,0 "+-l+" 0 l 0,"+n+" a "+r+","+s+" 0,0,0 "+l+" 0 l 0,"+-n,o=a.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-l/2+","+-(n/2+s)+")");return m(t,o),t.intersect=function(h){const y=w.rect(t,h),f=y.x-t.x;if(r!=0&&(Math.abs(f)<t.width/2||Math.abs(f)==t.width/2&&Math.abs(y.y-t.y)>t.height/2-s)){let p=s*s*(1-f*f/(r*r));p!=0&&(p=Math.sqrt(p)),p=s-p,h.y-t.y>0&&(p=-p),y.y+=p}return y},a},Ut=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes+" "+t.class,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},zt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},Zt=async(e,t)=>{const{shapeSvg:a}=await M(e,t,"label",!0);g.trace("Classes = ",t.class);const i=a.insert("rect",":first-child"),l=0,r=0;if(i.attr("width",l).attr("height",r),a.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(V(i,t.props.borders,l,r),s.delete("borders")),s.forEach(n=>{g.warn(`Unknown node property ${n}`)})}return m(t,i),t.intersect=function(s){return w.rect(t,s)},a};function V(e,t,a,i){const l=[],r=n=>{l.push(n,0)},s=n=>{l.push(0,n)};t.includes("t")?(g.debug("add top border"),r(a)):s(a),t.includes("r")?(g.debug("add right border"),r(i)):s(i),t.includes("b")?(g.debug("add bottom border"),r(a)):s(a),t.includes("l")?(g.debug("add left border"),r(i)):s(i),e.attr("stroke-dasharray",l.join(" "))}const Ft=(e,t)=>{let a;t.classes?a="node "+t.classes:a="node default";const i=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=i.insert("rect",":first-child"),r=i.insert("line"),s=i.insert("g").attr("class","label"),n=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof n=="object"?c=n[0]:c=n,g.info("Label text abc79",c,n,typeof n=="object");const o=s.node().appendChild(R(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(H(b().flowchart.htmlLabels)){const k=o.children[0],d=E(o);h=k.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}g.info("Text 2",n);const y=n.slice(1,n.length);let f=o.getBBox();const p=s.node().appendChild(R(y.join?y.join("<br/>"):y,t.labelStyle,!0,!0));if(H(b().flowchart.htmlLabels)){const k=p.children[0],d=E(p);h=k.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}const x=t.padding/2;return E(p).attr("transform","translate( "+(h.width>f.width?0:(f.width-h.width)/2)+", "+(f.height+x+5)+")"),E(o).attr("transform","translate( "+(h.width<f.width?0:-(f.width-h.width)/2)+", 0)"),h=s.node().getBBox(),s.attr("transform","translate("+-h.width/2+", "+(-h.height/2-x+3)+")"),l.attr("class","outer title-state").attr("x",-h.width/2-x).attr("y",-h.height/2-x).attr("width",h.width+t.padding).attr("height",h.height+t.padding),r.attr("class","divider").attr("x1",-h.width/2-x).attr("x2",h.width/2+x).attr("y1",-h.height/2-x+f.height+x).attr("y2",-h.height/2-x+f.height+x),m(t,l),t.intersect=function(k){return w.rect(t,k)},i},Gt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.height+t.padding,r=i.width+l/4+t.padding,s=a.insert("rect",":first-child").attr("style",t.style).attr("rx",l/2).attr("ry",l/2).attr("x",-r/2).attr("y",-l/2).attr("width",r).attr("height",l);return m(t,s),t.intersect=function(n){return w.rect(t,n)},a},Qt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t,void 0),!0),r=a.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("Circle main"),m(t,r),t.intersect=function(s){return g.info("Circle intersect",t,i.width/2+l,s),w.circle(t,i.width/2+l,s)},a},Vt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t,void 0),!0),r=5,s=a.insert("g",":first-child"),n=s.insert("circle"),c=s.insert("circle");return s.attr("class",t.class),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l+r).attr("width",i.width+t.padding+r*2).attr("height",i.height+t.padding+r*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("DoubleCircle main"),m(t,n),t.intersect=function(o){return g.info("DoubleCircle intersect",t,i.width/2+l+r,o),w.circle(t,i.width/2+l+r,o)},a},qt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l,y:0},{x:l,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Jt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),m(t,i),t.intersect=function(l){return w.circle(t,7,l)},a},tt=(e,t,a)=>{const i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l=70,r=10;a==="LR"&&(l=10,r=70);const s=i.append("rect").attr("x",-1*l/2).attr("y",-1*r/2).attr("width",l).attr("height",r).attr("class","fork-join");return m(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(n){return w.rect(t,n)},i},Kt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child"),l=a.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),m(t,l),t.intersect=function(r){return w.circle(t,7,r)},a},Pt=(e,t)=>{const a=t.padding/2,i=4,l=8;let r;t.classes?r="node "+t.classes:r="node default";const s=e.insert("g").attr("class",r).attr("id",t.domId||t.id),n=s.insert("rect",":first-child"),c=s.insert("line"),o=s.insert("line");let h=0,y=i;const f=s.insert("g").attr("class","label");let p=0;const x=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",d=f.node().appendChild(R(k,t.labelStyle,!0,!0));let u=d.getBBox();if(H(b().flowchart.htmlLabels)){const v=d.children[0],L=E(d);u=v.getBoundingClientRect(),L.attr("width",u.width),L.attr("height",u.height)}t.classData.annotations[0]&&(y+=u.height+i,h+=u.width);let S=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(b().flowchart.htmlLabels?S+="<"+t.classData.type+">":S+="<"+t.classData.type+">");const B=f.node().appendChild(R(S,t.labelStyle,!0,!0));E(B).attr("class","classTitle");let C=B.getBBox();if(H(b().flowchart.htmlLabels)){const v=B.children[0],L=E(B);C=v.getBoundingClientRect(),L.attr("width",C.width),L.attr("height",C.height)}y+=C.height+i,C.width>h&&(h=C.width);const X=[];t.classData.members.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(/</g,"<").replace(/>/g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const G=N.children[0],A=E(N);$=G.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,X.push(N)}),y+=l;const D=[];if(t.classData.methods.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(/</g,"<").replace(/>/g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const G=N.children[0],A=E(N);$=G.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,D.push(N)}),y+=l,x){let v=(h-u.width)/2;E(d).attr("transform","translate( "+(-1*h/2+v)+", "+-1*y/2+")"),p=u.height+i}let nt=(h-C.width)/2;return E(B).attr("transform","translate( "+(-1*h/2+nt)+", "+(-1*y/2+p)+")"),p+=C.height+i,c.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,X.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p+l/2)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),p+=l,o.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,D.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),n.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-a).attr("y",-(y/2)-a).attr("width",h+t.padding).attr("height",y+t.padding),m(t,n),t.intersect=function(v){return w.rect(t,v)},s},rt={rhombus:P,composite:zt,question:P,rect:Ut,labelRect:Zt,rectWithTitle:Ft,choice:Ht,circle:Qt,doublecircle:Vt,stadium:Gt,hexagon:It,block_arrow:Nt,rect_left_inv_arrow:Ot,lean_right:Wt,lean_left:Xt,trapezoid:Yt,inv_trapezoid:Dt,rect_right_inv_arrow:At,cylinder:jt,start:Jt,end:Kt,note:$t,subroutine:qt,fork:tt,join:tt,class_box:Pt};let Y={};const or=async(e,t,a)=>{let i,l;if(t.link){let r;b().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",r),l=await rt[t.shape](i,t,a)}else l=await rt[t.shape](e,t,a),i=l;return t.tooltip&&l.attr("title",t.tooltip),t.class&&l.attr("class","node default "+t.class),i.attr("data-node","true"),i.attr("data-id",t.id),Y[t.id]=i,t.haveCallback&&Y[t.id].attr("class",Y[t.id].attr("class")+" clickable"),i},yr=(e,t)=>{Y[t.id]=e},pr=()=>{Y={}},fr=e=>{const t=Y[e.id];g.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const a=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-a)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},tr=({flowchart:e})=>{var t,a;const i=((t=e==null?void 0:e.subGraphTitleMargin)==null?void 0:t.top)??0,l=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,r=i+l;return{subGraphTitleTopMargin:i,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:r}},O={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function U(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Z(e),t=Z(t);const[a,i]=[e.x,e.y],[l,r]=[t.x,t.y],s=l-a,n=r-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}const Z=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,rr=e=>({x:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaX:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.cos(r)*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaX:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.cos(r)*(s>=0?1:-1)}return Z(t).x+l},y:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaY:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.abs(Math.sin(r))*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaY:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.abs(Math.sin(r))*(s>=0?1:-1)}return Z(t).y+l}}),ar=(e,t,a,i,l)=>{t.arrowTypeStart&&at(e,"start",t.arrowTypeStart,a,i,l),t.arrowTypeEnd&&at(e,"end",t.arrowTypeEnd,a,i,l)},er={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},at=(e,t,a,i,l,r)=>{const s=er[a];if(!s){g.warn(`Unknown arrow type: ${a}`);return}const n=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${l}_${r}-${s}${n})`)};let F={},T={};const dr=()=>{F={},T={}},xr=(e,t)=>{const a=H(b().flowchart.htmlLabels),i=t.labelType==="markdown"?st(e,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0}):R(t.label,t.labelStyle),l=e.insert("g").attr("class","edgeLabel"),r=l.insert("g").attr("class","label");r.node().appendChild(i);let s=i.getBBox();if(a){const c=i.children[0],o=E(i);s=c.getBoundingClientRect(),o.attr("width",s.width),o.attr("height",s.height)}r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),F[t.id]=l,t.width=s.width,t.height=s.height;let n;if(t.startLabelLeft){const c=R(t.startLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startLeft=o,z(n,t.startLabelLeft)}if(t.startLabelRight){const c=R(t.startLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=o.node().appendChild(c),h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startRight=o,z(n,t.startLabelRight)}if(t.endLabelLeft){const c=R(t.endLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endLeft=o,z(n,t.endLabelLeft)}if(t.endLabelRight){const c=R(t.endLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endRight=o,z(n,t.endLabelRight)}return i};function z(e,t){b().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}const gr=(e,t)=>{g.debug("Moving label abc88 ",e.id,e.label,F[e.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const i=b(),{subGraphTitleTotalMargin:l}=tr(i);if(e.label){const r=F[e.id];let s=e.x,n=e.y;if(a){const c=j.calcLabelPosition(a);g.debug("Moving label "+e.label+" from (",s,",",n,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(s=c.x,n=c.y)}r.attr("transform",`translate(${s}, ${n+l/2})`)}if(e.startLabelLeft){const r=T[e.id].startLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.startLabelRight){const r=T[e.id].startRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelLeft){const r=T[e.id].endLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelRight){const r=T[e.id].endRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}},sr=(e,t)=>{const a=e.x,i=e.y,l=Math.abs(t.x-a),r=Math.abs(t.y-i),s=e.width/2,n=e.height/2;return l>=s||r>=n},ir=(e,t,a)=>{g.debug(`intersection calc abc89:
outsidePoint: ${JSON.stringify(t)}
insidePoint : ${JSON.stringify(a)}
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,l=e.y,r=Math.abs(i-a.x),s=e.width/2;let n=a.x<t.x?s-r:s+r;const c=e.height/2,o=Math.abs(t.y-a.y),h=Math.abs(t.x-a.x);if(Math.abs(l-t.y)*s>Math.abs(i-t.x)*c){let y=a.y<t.y?t.y-c-l:l-c-t.y;n=h*y/o;const f={x:a.x<t.x?a.x+n:a.x-h+n,y:a.y<t.y?a.y+o-y:a.y-o+y};return n===0&&(f.x=t.x,f.y=t.y),h===0&&(f.x=t.x),o===0&&(f.y=t.y),g.debug(`abc89 topp/bott calc, Q ${o}, q ${y}, R ${h}, r ${n}`,f),f}else{a.x<t.x?n=t.x-s-i:n=i-s-t.x;let y=o*n/h,f=a.x<t.x?a.x+h-n:a.x-h+n,p=a.y<t.y?a.y+y:a.y-y;return g.debug(`sides calc abc89, Q ${o}, q ${y}, R ${h}, r ${n}`,{_x:f,_y:p}),n===0&&(f=t.x,p=t.y),h===0&&(f=t.x),o===0&&(p=t.y),{x:f,y:p}}},et=(e,t)=>{g.debug("abc88 cutPathAtIntersect",e,t);let a=[],i=e[0],l=!1;return e.forEach(r=>{if(!sr(t,r)&&!l){const s=ir(t,i,r);let n=!1;a.forEach(c=>{n=n||c.x===s.x&&c.y===s.y}),a.some(c=>c.x===s.x&&c.y===s.y)||a.push(s),l=!0}else i=r,l||a.push(r)}),a},ur=function(e,t,a,i,l,r,s){let n=a.points;g.debug("abc88 InsertEdge: edge=",a,"e=",t);let c=!1;const o=r.node(t.v);var h=r.node(t.w);h!=null&&h.intersect&&(o!=null&&o.intersect)&&(n=n.slice(1,a.points.length-1),n.unshift(o.intersect(n[0])),n.push(h.intersect(n[n.length-1]))),a.toCluster&&(g.debug("to cluster abc88",i[a.toCluster]),n=et(a.points,i[a.toCluster].node),c=!0),a.fromCluster&&(g.debug("from cluster abc88",i[a.fromCluster]),n=et(n.reverse(),i[a.fromCluster].node).reverse(),c=!0);const y=n.filter(C=>!Number.isNaN(C.y));let f=lt;a.curve&&(l==="graph"||l==="flowchart")&&(f=a.curve);const{x:p,y:x}=rr(a),k=ct().x(p).y(x).curve(f);let d;switch(a.thickness){case"normal":d="edge-thickness-normal";break;case"thick":d="edge-thickness-thick";break;case"invisible":d="edge-thickness-thick";break;default:d=""}switch(a.pattern){case"solid":d+=" edge-pattern-solid";break;case"dotted":d+=" edge-pattern-dotted";break;case"dashed":d+=" edge-pattern-dashed";break}const u=e.append("path").attr("d",k(y)).attr("id",a.id).attr("class"," "+d+(a.classes?" "+a.classes:"")).attr("style",a.style);let S="";(b().flowchart.arrowMarkerAbsolute||b().state.arrowMarkerAbsolute)&&(S=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,S=S.replace(/\(/g,"\\("),S=S.replace(/\)/g,"\\)")),ar(u,a,S,s,l);let B={};return c&&(B.updatedPath=n),B.originalPath=a.points,B};export{or as a,xr as b,ur as c,gr as d,pr as e,dr as f,tr as g,R as h,hr as i,Et as j,rr as k,M as l,ar as m,fr as p,yr as s,m as u};
import{l as At,aU as zt,aV as It}from"./slidev/Mermaid-sWhOKcCj.js";const Tt={};function Bt(n,r){const t=r||Tt,e=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,u=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return et(n,e,u)}function et(n,r,t){if(Lt(n)){if("value"in n)return n.type==="html"&&!t?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Vn(n.children,r,t)}return Array.isArray(n)?Vn(n,r,t):""}function Vn(n,r,t){const e=[];let u=-1;for(;++u<n.length;)e[u]=et(n[u],r,t);return e.join("")}function Lt(n){return!!(n&&typeof n=="object")}function tn(n,r,t,e){const u=n.length;let i=0,l;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,t=t>0?t:0,e.length<1e4)l=Array.from(e),l.unshift(r,t),n.splice(...l);else for(t&&n.splice(r,t);i<e.length;)l=e.slice(i,i+1e4),l.unshift(r,0),n.splice(...l),i+=1e4,r+=1e4}function Z(n,r){return n.length>0?(tn(n,n.length,0,r),n):r}const Wn={}.hasOwnProperty;function Ot(n){const r={};let t=-1;for(;++t<n.length;)Dt(r,n[t]);return r}function Dt(n,r){let t;for(t in r){const u=(Wn.call(n,t)?n[t]:void 0)||(n[t]={}),i=r[t];let l;if(i)for(l in i){Wn.call(u,l)||(u[l]=[]);const a=i[l];Pt(u[l],Array.isArray(a)?a:a?[a]:[])}}}function Pt(n,r){let t=-1;const e=[];for(;++t<r.length;)(r[t].add==="after"?n:e).push(r[t]);tn(n,0,0,e)}const _t=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,nn=cn(/[A-Za-z]/),X=cn(/[\dA-Za-z]/),Mt=cn(/[#-'*+\--9=?A-Z^-~]/);function An(n){return n!==null&&(n<32||n===127)}const zn=cn(/\d/),jt=cn(/[\dA-Fa-f]/),Rt=cn(/[!-/:-@[-`{-~]/);function C(n){return n!==null&&n<-2}function v(n){return n!==null&&(n<0||n===32)}function z(n){return n===-2||n===-1||n===32}const qt=cn(_t),Ht=cn(/\s/);function cn(n){return r;function r(t){return t!==null&&n.test(String.fromCharCode(t))}}function O(n,r,t,e){const u=e?e-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(f){return z(f)?(n.enter(t),a(f)):r(f)}function a(f){return z(f)&&i++<u?(n.consume(f),a):(n.exit(t),r(f))}}const Nt={tokenize:Vt};function Vt(n){const r=n.attempt(this.parser.constructs.contentInitial,e,u);let t;return r;function e(a){if(a===null){n.consume(a);return}return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),O(n,r,"linePrefix")}function u(a){return n.enter("paragraph"),i(a)}function i(a){const f=n.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=f),t=f,l(a)}function l(a){if(a===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(a);return}return C(a)?(n.consume(a),n.exit("chunkText"),i):(n.consume(a),l)}}const Wt={tokenize:Qt},Qn={tokenize:Ut};function Qt(n){const r=this,t=[];let e=0,u,i,l;return a;function a(F){if(e<t.length){const D=t[e];return r.containerState=D[1],n.attempt(D[0].continuation,f,c)(F)}return c(F)}function f(F){if(e++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,u&&j();const D=r.events.length;let _=D,k;for(;_--;)if(r.events[_][0]==="exit"&&r.events[_][1].type==="chunkFlow"){k=r.events[_][1].end;break}y(e);let T=D;for(;T<r.events.length;)r.events[T][1].end=Object.assign({},k),T++;return tn(r.events,_+1,0,r.events.slice(D)),r.events.length=T,c(F)}return a(F)}function c(F){if(e===t.length){if(!u)return x(F);if(u.currentConstruct&&u.currentConstruct.concrete)return A(F);r.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return r.containerState={},n.check(Qn,p,m)(F)}function p(F){return u&&j(),y(e),x(F)}function m(F){return r.parser.lazy[r.now().line]=e!==t.length,l=r.now().offset,A(F)}function x(F){return r.containerState={},n.attempt(Qn,h,A)(F)}function h(F){return e++,t.push([r.currentConstruct,r.containerState]),x(F)}function A(F){if(F===null){u&&j(),y(0),n.consume(F);return}return u=u||r.parser.flow(r.now()),n.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:u}),I(F)}function I(F){if(F===null){M(n.exit("chunkFlow"),!0),y(0),n.consume(F);return}return C(F)?(n.consume(F),M(n.exit("chunkFlow")),e=0,r.interrupt=void 0,a):(n.consume(F),I)}function M(F,D){const _=r.sliceStream(F);if(D&&_.push(null),F.previous=i,i&&(i.next=F),i=F,u.defineSkip(F.start),u.write(_),r.parser.lazy[F.start.line]){let k=u.events.length;for(;k--;)if(u.events[k][1].start.offset<l&&(!u.events[k][1].end||u.events[k][1].end.offset>l))return;const T=r.events.length;let H=T,N,V;for(;H--;)if(r.events[H][0]==="exit"&&r.events[H][1].type==="chunkFlow"){if(N){V=r.events[H][1].end;break}N=!0}for(y(e),k=T;k<r.events.length;)r.events[k][1].end=Object.assign({},V),k++;tn(r.events,H+1,0,r.events.slice(T)),r.events.length=k}}function y(F){let D=t.length;for(;D-- >F;){const _=t[D];r.containerState=_[1],_[0].exit.call(r,n)}t.length=F}function j(){u.write([null]),i=void 0,u=void 0,r.containerState._closeFlow=void 0}}function Ut(n,r,t){return O(n,n.attempt(this.parser.constructs.document,r,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Un(n){if(n===null||v(n)||Ht(n))return 1;if(qt(n))return 2}function Ln(n,r,t){const e=[];let u=-1;for(;++u<n.length;){const i=n[u].resolveAll;i&&!e.includes(i)&&(r=i(r,t),e.push(i))}return r}const In={name:"attention",tokenize:vt,resolveAll:$t};function $t(n,r){let t=-1,e,u,i,l,a,f,c,p;for(;++t<n.length;)if(n[t][0]==="enter"&&n[t][1].type==="attentionSequence"&&n[t][1]._close){for(e=t;e--;)if(n[e][0]==="exit"&&n[e][1].type==="attentionSequence"&&n[e][1]._open&&r.sliceSerialize(n[e][1]).charCodeAt(0)===r.sliceSerialize(n[t][1]).charCodeAt(0)){if((n[e][1]._close||n[t][1]._open)&&(n[t][1].end.offset-n[t][1].start.offset)%3&&!((n[e][1].end.offset-n[e][1].start.offset+n[t][1].end.offset-n[t][1].start.offset)%3))continue;f=n[e][1].end.offset-n[e][1].start.offset>1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const m=Object.assign({},n[e][1].end),x=Object.assign({},n[t][1].start);$n(m,-f),$n(x,f),l={type:f>1?"strongSequence":"emphasisSequence",start:m,end:Object.assign({},n[e][1].end)},a={type:f>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:x},i={type:f>1?"strongText":"emphasisText",start:Object.assign({},n[e][1].end),end:Object.assign({},n[t][1].start)},u={type:f>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},a.end)},n[e][1].end=Object.assign({},l.start),n[t][1].start=Object.assign({},a.end),c=[],n[e][1].end.offset-n[e][1].start.offset&&(c=Z(c,[["enter",n[e][1],r],["exit",n[e][1],r]])),c=Z(c,[["enter",u,r],["enter",l,r],["exit",l,r],["enter",i,r]]),c=Z(c,Ln(r.parser.constructs.insideSpan.null,n.slice(e+1,t),r)),c=Z(c,[["exit",i,r],["enter",a,r],["exit",a,r],["exit",u,r]]),n[t][1].end.offset-n[t][1].start.offset?(p=2,c=Z(c,[["enter",n[t][1],r],["exit",n[t][1],r]])):p=0,tn(n,e-1,t-e+3,c),t=e+c.length-p-2;break}}for(t=-1;++t<n.length;)n[t][1].type==="attentionSequence"&&(n[t][1].type="data");return n}function vt(n,r){const t=this.parser.constructs.attentionMarkers.null,e=this.previous,u=Un(e);let i;return l;function l(f){return i=f,n.enter("attentionSequence"),a(f)}function a(f){if(f===i)return n.consume(f),a;const c=n.exit("attentionSequence"),p=Un(f),m=!p||p===2&&u||t.includes(f),x=!u||u===2&&p||t.includes(e);return c._open=!!(i===42?m:m&&(u||!x)),c._close=!!(i===42?x:x&&(p||!m)),r(f)}}function $n(n,r){n.column+=r,n.offset+=r,n._bufferIndex+=r}const Zt={name:"autolink",tokenize:Yt};function Yt(n,r,t){let e=0;return u;function u(h){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),i}function i(h){return nn(h)?(n.consume(h),l):c(h)}function l(h){return h===43||h===45||h===46||X(h)?(e=1,a(h)):c(h)}function a(h){return h===58?(n.consume(h),e=0,f):(h===43||h===45||h===46||X(h))&&e++<32?(n.consume(h),a):(e=0,c(h))}function f(h){return h===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):h===null||h===32||h===60||An(h)?t(h):(n.consume(h),f)}function c(h){return h===64?(n.consume(h),p):Mt(h)?(n.consume(h),c):t(h)}function p(h){return X(h)?m(h):t(h)}function m(h){return h===46?(n.consume(h),e=0,p):h===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):x(h)}function x(h){if((h===45||X(h))&&e++<63){const A=h===45?x:m;return n.consume(h),A}return t(h)}}const Sn={tokenize:Gt,partial:!0};function Gt(n,r,t){return e;function e(i){return z(i)?O(n,u,"linePrefix")(i):u(i)}function u(i){return i===null||C(i)?r(i):t(i)}}const rt={name:"blockQuote",tokenize:Jt,continuation:{tokenize:Kt},exit:Xt};function Jt(n,r,t){const e=this;return u;function u(l){if(l===62){const a=e.containerState;return a.open||(n.enter("blockQuote",{_container:!0}),a.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(l),n.exit("blockQuoteMarker"),i}return t(l)}function i(l){return z(l)?(n.enter("blockQuotePrefixWhitespace"),n.consume(l),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),r):(n.exit("blockQuotePrefix"),r(l))}}function Kt(n,r,t){const e=this;return u;function u(l){return z(l)?O(n,i,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return n.attempt(rt,r,t)(l)}}function Xt(n){n.exit("blockQuote")}const it={name:"characterEscape",tokenize:ne};function ne(n,r,t){return e;function e(i){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(i),n.exit("escapeMarker"),u}function u(i){return Rt(i)?(n.enter("characterEscapeValue"),n.consume(i),n.exit("characterEscapeValue"),n.exit("characterEscape"),r):t(i)}}const vn=document.createElement("i");function On(n){const r="&"+n+";";vn.innerHTML=r;const t=vn.textContent;return t.charCodeAt(t.length-1)===59&&n!=="semi"||t===r?!1:t}const ut={name:"characterReference",tokenize:te};function te(n,r,t){const e=this;let u=0,i,l;return a;function a(m){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(m),n.exit("characterReferenceMarker"),f}function f(m){return m===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(m),n.exit("characterReferenceMarkerNumeric"),c):(n.enter("characterReferenceValue"),i=31,l=X,p(m))}function c(m){return m===88||m===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(m),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),i=6,l=jt,p):(n.enter("characterReferenceValue"),i=7,l=zn,p(m))}function p(m){if(m===59&&u){const x=n.exit("characterReferenceValue");return l===X&&!On(e.sliceSerialize(x))?t(m):(n.enter("characterReferenceMarker"),n.consume(m),n.exit("characterReferenceMarker"),n.exit("characterReference"),r)}return l(m)&&u++<i?(n.consume(m),p):t(m)}}const Zn={tokenize:re,partial:!0},Yn={name:"codeFenced",tokenize:ee,concrete:!0};function ee(n,r,t){const e=this,u={tokenize:_,partial:!0};let i=0,l=0,a;return f;function f(k){return c(k)}function c(k){const T=e.events[e.events.length-1];return i=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,a=k,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),p(k)}function p(k){return k===a?(l++,n.consume(k),p):l<3?t(k):(n.exit("codeFencedFenceSequence"),z(k)?O(n,m,"whitespace")(k):m(k))}function m(k){return k===null||C(k)?(n.exit("codeFencedFence"),e.interrupt?r(k):n.check(Zn,I,D)(k)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),x(k))}function x(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),m(k)):z(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),O(n,h,"whitespace")(k)):k===96&&k===a?t(k):(n.consume(k),x)}function h(k){return k===null||C(k)?m(k):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),A(k))}function A(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),m(k)):k===96&&k===a?t(k):(n.consume(k),A)}function I(k){return n.attempt(u,D,M)(k)}function M(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),y}function y(k){return i>0&&z(k)?O(n,j,"linePrefix",i+1)(k):j(k)}function j(k){return k===null||C(k)?n.check(Zn,I,D)(k):(n.enter("codeFlowValue"),F(k))}function F(k){return k===null||C(k)?(n.exit("codeFlowValue"),j(k)):(n.consume(k),F)}function D(k){return n.exit("codeFenced"),r(k)}function _(k,T,H){let N=0;return V;function V(w){return k.enter("lineEnding"),k.consume(w),k.exit("lineEnding"),d}function d(w){return k.enter("codeFencedFence"),z(w)?O(k,S,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):S(w)}function S(w){return w===a?(k.enter("codeFencedFenceSequence"),P(w)):H(w)}function P(w){return w===a?(N++,k.consume(w),P):N>=l?(k.exit("codeFencedFenceSequence"),z(w)?O(k,R,"whitespace")(w):R(w)):H(w)}function R(w){return w===null||C(w)?(k.exit("codeFencedFence"),T(w)):H(w)}}}function re(n,r,t){const e=this;return u;function u(l){return l===null?t(l):(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}const Cn={name:"codeIndented",tokenize:ue},ie={tokenize:le,partial:!0};function ue(n,r,t){const e=this;return u;function u(c){return n.enter("codeIndented"),O(n,i,"linePrefix",5)(c)}function i(c){const p=e.events[e.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(c):t(c)}function l(c){return c===null?f(c):C(c)?n.attempt(ie,l,f)(c):(n.enter("codeFlowValue"),a(c))}function a(c){return c===null||C(c)?(n.exit("codeFlowValue"),l(c)):(n.consume(c),a)}function f(c){return n.exit("codeIndented"),r(c)}}function le(n,r,t){const e=this;return u;function u(l){return e.parser.lazy[e.now().line]?t(l):C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),u):O(n,i,"linePrefix",5)(l)}function i(l){const a=e.events[e.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):C(l)?u(l):t(l)}}const ae={name:"codeText",tokenize:ce,resolve:oe,previous:se};function oe(n){let r=n.length-4,t=3,e,u;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(e=t;++e<r;)if(n[e][1].type==="codeTextData"){n[t][1].type="codeTextPadding",n[r][1].type="codeTextPadding",t+=2,r-=2;break}}for(e=t-1,r++;++e<=r;)u===void 0?e!==r&&n[e][1].type!=="lineEnding"&&(u=e):(e===r||n[e][1].type==="lineEnding")&&(n[u][1].type="codeTextData",e!==u+2&&(n[u][1].end=n[e-1][1].end,n.splice(u+2,e-u-2),r-=e-u-2,e=u+2),u=void 0);return n}function se(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ce(n,r,t){let e=0,u,i;return l;function l(m){return n.enter("codeText"),n.enter("codeTextSequence"),a(m)}function a(m){return m===96?(n.consume(m),e++,a):(n.exit("codeTextSequence"),f(m))}function f(m){return m===null?t(m):m===32?(n.enter("space"),n.consume(m),n.exit("space"),f):m===96?(i=n.enter("codeTextSequence"),u=0,p(m)):C(m)?(n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),f):(n.enter("codeTextData"),c(m))}function c(m){return m===null||m===32||m===96||C(m)?(n.exit("codeTextData"),f(m)):(n.consume(m),c)}function p(m){return m===96?(n.consume(m),u++,p):u===e?(n.exit("codeTextSequence"),n.exit("codeText"),r(m)):(i.type="codeTextData",c(m))}}function lt(n){const r={};let t=-1,e,u,i,l,a,f,c;for(;++t<n.length;){for(;t in r;)t=r[t];if(e=n[t],t&&e[1].type==="chunkFlow"&&n[t-1][1].type==="listItemPrefix"&&(f=e[1]._tokenizer.events,i=0,i<f.length&&f[i][1].type==="lineEndingBlank"&&(i+=2),i<f.length&&f[i][1].type==="content"))for(;++i<f.length&&f[i][1].type!=="content";)f[i][1].type==="chunkText"&&(f[i][1]._isInFirstContentOfListItem=!0,i++);if(e[0]==="enter")e[1].contentType&&(Object.assign(r,he(n,t)),t=r[t],c=!0);else if(e[1]._container){for(i=t,u=void 0;i--&&(l=n[i],l[1].type==="lineEnding"||l[1].type==="lineEndingBlank");)l[0]==="enter"&&(u&&(n[u][1].type="lineEndingBlank"),l[1].type="lineEnding",u=i);u&&(e[1].end=Object.assign({},n[u][1].start),a=n.slice(u,t),a.unshift(e),tn(n,u,t-u+1,a))}}return!c}function he(n,r){const t=n[r][1],e=n[r][2];let u=r-1;const i=[],l=t._tokenizer||e.parser[t.contentType](t.start),a=l.events,f=[],c={};let p,m,x=-1,h=t,A=0,I=0;const M=[I];for(;h;){for(;n[++u][1]!==h;);i.push(u),h._tokenizer||(p=e.sliceStream(h),h.next||p.push(null),m&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(p),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),m=h,h=h.next}for(h=t;++x<a.length;)a[x][0]==="exit"&&a[x-1][0]==="enter"&&a[x][1].type===a[x-1][1].type&&a[x][1].start.line!==a[x][1].end.line&&(I=x+1,M.push(I),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):M.pop(),x=M.length;x--;){const y=a.slice(M[x],M[x+1]),j=i.pop();f.unshift([j,j+y.length-1]),tn(n,j,2,y)}for(x=-1;++x<f.length;)c[A+f[x][0]]=A+f[x][1],A+=f[x][1]-f[x][0]-1;return c}const pe={tokenize:xe,resolve:fe},me={tokenize:ge,partial:!0};function fe(n){return lt(n),n}function xe(n,r){let t;return e;function e(a){return n.enter("content"),t=n.enter("chunkContent",{contentType:"content"}),u(a)}function u(a){return a===null?i(a):C(a)?n.check(me,l,i)(a):(n.consume(a),u)}function i(a){return n.exit("chunkContent"),n.exit("content"),r(a)}function l(a){return n.consume(a),n.exit("chunkContent"),t.next=n.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,u}}function ge(n,r,t){const e=this;return u;function u(l){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),O(n,i,"linePrefix")}function i(l){if(l===null||C(l))return t(l);const a=e.events[e.events.length-1];return!e.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):n.interrupt(e.parser.constructs.flow,t,r)(l)}}function at(n,r,t,e,u,i,l,a,f){const c=f||Number.POSITIVE_INFINITY;let p=0;return m;function m(y){return y===60?(n.enter(e),n.enter(u),n.enter(i),n.consume(y),n.exit(i),x):y===null||y===32||y===41||An(y)?t(y):(n.enter(e),n.enter(l),n.enter(a),n.enter("chunkString",{contentType:"string"}),I(y))}function x(y){return y===62?(n.enter(i),n.consume(y),n.exit(i),n.exit(u),n.exit(e),r):(n.enter(a),n.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(n.exit("chunkString"),n.exit(a),x(y)):y===null||y===60||C(y)?t(y):(n.consume(y),y===92?A:h)}function A(y){return y===60||y===62||y===92?(n.consume(y),h):h(y)}function I(y){return!p&&(y===null||y===41||v(y))?(n.exit("chunkString"),n.exit(a),n.exit(l),n.exit(e),r(y)):p<c&&y===40?(n.consume(y),p++,I):y===41?(n.consume(y),p--,I):y===null||y===32||y===40||An(y)?t(y):(n.consume(y),y===92?M:I)}function M(y){return y===40||y===41||y===92?(n.consume(y),I):I(y)}}function ot(n,r,t,e,u,i){const l=this;let a=0,f;return c;function c(h){return n.enter(e),n.enter(u),n.consume(h),n.exit(u),n.enter(i),p}function p(h){return a>999||h===null||h===91||h===93&&!f||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(n.exit(i),n.enter(u),n.consume(h),n.exit(u),n.exit(e),r):C(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),p):(n.enter("chunkString",{contentType:"string"}),m(h))}function m(h){return h===null||h===91||h===93||C(h)||a++>999?(n.exit("chunkString"),p(h)):(n.consume(h),f||(f=!z(h)),h===92?x:m)}function x(h){return h===91||h===92||h===93?(n.consume(h),a++,m):m(h)}}function st(n,r,t,e,u,i){let l;return a;function a(x){return x===34||x===39||x===40?(n.enter(e),n.enter(u),n.consume(x),n.exit(u),l=x===40?41:x,f):t(x)}function f(x){return x===l?(n.enter(u),n.consume(x),n.exit(u),n.exit(e),r):(n.enter(i),c(x))}function c(x){return x===l?(n.exit(i),f(l)):x===null?t(x):C(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),O(n,c,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===l||x===null||C(x)?(n.exit("chunkString"),c(x)):(n.consume(x),x===92?m:p)}function m(x){return x===l||x===92?(n.consume(x),p):p(x)}}function bn(n,r){let t;return e;function e(u){return C(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),t=!0,e):z(u)?O(n,e,t?"linePrefix":"lineSuffix")(u):r(u)}}function xn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ke={name:"definition",tokenize:ye},be={tokenize:de,partial:!0};function ye(n,r,t){const e=this;let u;return i;function i(h){return n.enter("definition"),l(h)}function l(h){return ot.call(e,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return u=xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)),h===58?(n.enter("definitionMarker"),n.consume(h),n.exit("definitionMarker"),f):t(h)}function f(h){return v(h)?bn(n,c)(h):c(h)}function c(h){return at(n,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return n.attempt(be,m,m)(h)}function m(h){return z(h)?O(n,x,"whitespace")(h):x(h)}function x(h){return h===null||C(h)?(n.exit("definition"),e.parser.defined.push(u),r(h)):t(h)}}function de(n,r,t){return e;function e(a){return v(a)?bn(n,u)(a):t(a)}function u(a){return st(n,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return z(a)?O(n,l,"whitespace")(a):l(a)}function l(a){return a===null||C(a)?r(a):t(a)}}const Se={name:"hardBreakEscape",tokenize:Fe};function Fe(n,r,t){return e;function e(i){return n.enter("hardBreakEscape"),n.consume(i),u}function u(i){return C(i)?(n.exit("hardBreakEscape"),r(i)):t(i)}}const Ee={name:"headingAtx",tokenize:we,resolve:Ce};function Ce(n,r){let t=n.length-2,e=3,u,i;return n[e][1].type==="whitespace"&&(e+=2),t-2>e&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(e===t-1||t-4>e&&n[t-2][1].type==="whitespace")&&(t-=e+1===t?2:4),t>e&&(u={type:"atxHeadingText",start:n[e][1].start,end:n[t][1].end},i={type:"chunkText",start:n[e][1].start,end:n[t][1].end,contentType:"text"},tn(n,e,t-e+1,[["enter",u,r],["enter",i,r],["exit",i,r],["exit",u,r]])),n}function we(n,r,t){let e=0;return u;function u(p){return n.enter("atxHeading"),i(p)}function i(p){return n.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&e++<6?(n.consume(p),l):p===null||v(p)?(n.exit("atxHeadingSequence"),a(p)):t(p)}function a(p){return p===35?(n.enter("atxHeadingSequence"),f(p)):p===null||C(p)?(n.exit("atxHeading"),r(p)):z(p)?O(n,a,"whitespace")(p):(n.enter("atxHeadingText"),c(p))}function f(p){return p===35?(n.consume(p),f):(n.exit("atxHeadingSequence"),a(p))}function c(p){return p===null||p===35||v(p)?(n.exit("atxHeadingText"),a(p)):(n.consume(p),c)}}const Ae=["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"],Gn=["pre","script","style","textarea"],ze={name:"htmlFlow",tokenize:Le,resolveTo:Be,concrete:!0},Ie={tokenize:De,partial:!0},Te={tokenize:Oe,partial:!0};function Be(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function Le(n,r,t){const e=this;let u,i,l,a,f;return c;function c(s){return p(s)}function p(s){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(s),m}function m(s){return s===33?(n.consume(s),x):s===47?(n.consume(s),i=!0,I):s===63?(n.consume(s),u=3,e.interrupt?r:o):nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function x(s){return s===45?(n.consume(s),u=2,h):s===91?(n.consume(s),u=5,a=0,A):nn(s)?(n.consume(s),u=4,e.interrupt?r:o):t(s)}function h(s){return s===45?(n.consume(s),e.interrupt?r:o):t(s)}function A(s){const J="CDATA[";return s===J.charCodeAt(a++)?(n.consume(s),a===J.length?e.interrupt?r:S:A):t(s)}function I(s){return nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function M(s){if(s===null||s===47||s===62||v(s)){const J=s===47,hn=l.toLowerCase();return!J&&!i&&Gn.includes(hn)?(u=1,e.interrupt?r(s):S(s)):Ae.includes(l.toLowerCase())?(u=6,J?(n.consume(s),y):e.interrupt?r(s):S(s)):(u=7,e.interrupt&&!e.parser.lazy[e.now().line]?t(s):i?j(s):F(s))}return s===45||X(s)?(n.consume(s),l+=String.fromCharCode(s),M):t(s)}function y(s){return s===62?(n.consume(s),e.interrupt?r:S):t(s)}function j(s){return z(s)?(n.consume(s),j):V(s)}function F(s){return s===47?(n.consume(s),V):s===58||s===95||nn(s)?(n.consume(s),D):z(s)?(n.consume(s),F):V(s)}function D(s){return s===45||s===46||s===58||s===95||X(s)?(n.consume(s),D):_(s)}function _(s){return s===61?(n.consume(s),k):z(s)?(n.consume(s),_):F(s)}function k(s){return s===null||s===60||s===61||s===62||s===96?t(s):s===34||s===39?(n.consume(s),f=s,T):z(s)?(n.consume(s),k):H(s)}function T(s){return s===f?(n.consume(s),f=null,N):s===null||C(s)?t(s):(n.consume(s),T)}function H(s){return s===null||s===34||s===39||s===47||s===60||s===61||s===62||s===96||v(s)?_(s):(n.consume(s),H)}function N(s){return s===47||s===62||z(s)?F(s):t(s)}function V(s){return s===62?(n.consume(s),d):t(s)}function d(s){return s===null||C(s)?S(s):z(s)?(n.consume(s),d):t(s)}function S(s){return s===45&&u===2?(n.consume(s),U):s===60&&u===1?(n.consume(s),W):s===62&&u===4?(n.consume(s),G):s===63&&u===3?(n.consume(s),o):s===93&&u===5?(n.consume(s),en):C(s)&&(u===6||u===7)?(n.exit("htmlFlowData"),n.check(Ie,rn,P)(s)):s===null||C(s)?(n.exit("htmlFlowData"),P(s)):(n.consume(s),S)}function P(s){return n.check(Te,R,rn)(s)}function R(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),w}function w(s){return s===null||C(s)?P(s):(n.enter("htmlFlowData"),S(s))}function U(s){return s===45?(n.consume(s),o):S(s)}function W(s){return s===47?(n.consume(s),l="",Y):S(s)}function Y(s){if(s===62){const J=l.toLowerCase();return Gn.includes(J)?(n.consume(s),G):S(s)}return nn(s)&&l.length<8?(n.consume(s),l+=String.fromCharCode(s),Y):S(s)}function en(s){return s===93?(n.consume(s),o):S(s)}function o(s){return s===62?(n.consume(s),G):s===45&&u===2?(n.consume(s),o):S(s)}function G(s){return s===null||C(s)?(n.exit("htmlFlowData"),rn(s)):(n.consume(s),G)}function rn(s){return n.exit("htmlFlow"),r(s)}}function Oe(n,r,t){const e=this;return u;function u(l){return C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i):t(l)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}function De(n,r,t){return e;function e(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),n.attempt(Sn,r,t)}}const Pe={name:"htmlText",tokenize:_e};function _e(n,r,t){const e=this;let u,i,l;return a;function a(o){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(o),f}function f(o){return o===33?(n.consume(o),c):o===47?(n.consume(o),_):o===63?(n.consume(o),F):nn(o)?(n.consume(o),H):t(o)}function c(o){return o===45?(n.consume(o),p):o===91?(n.consume(o),i=0,A):nn(o)?(n.consume(o),j):t(o)}function p(o){return o===45?(n.consume(o),h):t(o)}function m(o){return o===null?t(o):o===45?(n.consume(o),x):C(o)?(l=m,W(o)):(n.consume(o),m)}function x(o){return o===45?(n.consume(o),h):m(o)}function h(o){return o===62?U(o):o===45?x(o):m(o)}function A(o){const G="CDATA[";return o===G.charCodeAt(i++)?(n.consume(o),i===G.length?I:A):t(o)}function I(o){return o===null?t(o):o===93?(n.consume(o),M):C(o)?(l=I,W(o)):(n.consume(o),I)}function M(o){return o===93?(n.consume(o),y):I(o)}function y(o){return o===62?U(o):o===93?(n.consume(o),y):I(o)}function j(o){return o===null||o===62?U(o):C(o)?(l=j,W(o)):(n.consume(o),j)}function F(o){return o===null?t(o):o===63?(n.consume(o),D):C(o)?(l=F,W(o)):(n.consume(o),F)}function D(o){return o===62?U(o):F(o)}function _(o){return nn(o)?(n.consume(o),k):t(o)}function k(o){return o===45||X(o)?(n.consume(o),k):T(o)}function T(o){return C(o)?(l=T,W(o)):z(o)?(n.consume(o),T):U(o)}function H(o){return o===45||X(o)?(n.consume(o),H):o===47||o===62||v(o)?N(o):t(o)}function N(o){return o===47?(n.consume(o),U):o===58||o===95||nn(o)?(n.consume(o),V):C(o)?(l=N,W(o)):z(o)?(n.consume(o),N):U(o)}function V(o){return o===45||o===46||o===58||o===95||X(o)?(n.consume(o),V):d(o)}function d(o){return o===61?(n.consume(o),S):C(o)?(l=d,W(o)):z(o)?(n.consume(o),d):N(o)}function S(o){return o===null||o===60||o===61||o===62||o===96?t(o):o===34||o===39?(n.consume(o),u=o,P):C(o)?(l=S,W(o)):z(o)?(n.consume(o),S):(n.consume(o),R)}function P(o){return o===u?(n.consume(o),u=void 0,w):o===null?t(o):C(o)?(l=P,W(o)):(n.consume(o),P)}function R(o){return o===null||o===34||o===39||o===60||o===61||o===96?t(o):o===47||o===62||v(o)?N(o):(n.consume(o),R)}function w(o){return o===47||o===62||v(o)?N(o):t(o)}function U(o){return o===62?(n.consume(o),n.exit("htmlTextData"),n.exit("htmlText"),r):t(o)}function W(o){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),Y}function Y(o){return z(o)?O(n,en,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):en(o)}function en(o){return n.enter("htmlTextData"),l(o)}}const Dn={name:"labelEnd",tokenize:Ne,resolveTo:He,resolveAll:qe},Me={tokenize:Ve},je={tokenize:We},Re={tokenize:Qe};function qe(n){let r=-1;for(;++r<n.length;){const t=n[r][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(n.splice(r+1,t.type==="labelImage"?4:2),t.type="data",r++)}return n}function He(n,r){let t=n.length,e=0,u,i,l,a;for(;t--;)if(u=n[t][1],i){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;n[t][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(l){if(n[t][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(i=t,u.type!=="labelLink")){e=2;break}}else u.type==="labelEnd"&&(l=t);const f={type:n[i][1].type==="labelLink"?"link":"image",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)},c={type:"label",start:Object.assign({},n[i][1].start),end:Object.assign({},n[l][1].end)},p={type:"labelText",start:Object.assign({},n[i+e+2][1].end),end:Object.assign({},n[l-2][1].start)};return a=[["enter",f,r],["enter",c,r]],a=Z(a,n.slice(i+1,i+e+3)),a=Z(a,[["enter",p,r]]),a=Z(a,Ln(r.parser.constructs.insideSpan.null,n.slice(i+e+4,l-3),r)),a=Z(a,[["exit",p,r],n[l-2],n[l-1],["exit",c,r]]),a=Z(a,n.slice(l+1)),a=Z(a,[["exit",f,r]]),tn(n,i,n.length,a),n}function Ne(n,r,t){const e=this;let u=e.events.length,i,l;for(;u--;)if((e.events[u][1].type==="labelImage"||e.events[u][1].type==="labelLink")&&!e.events[u][1]._balanced){i=e.events[u][1];break}return a;function a(x){return i?i._inactive?m(x):(l=e.parser.defined.includes(xn(e.sliceSerialize({start:i.end,end:e.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(x),n.exit("labelMarker"),n.exit("labelEnd"),f):t(x)}function f(x){return x===40?n.attempt(Me,p,l?p:m)(x):x===91?n.attempt(je,p,l?c:m)(x):l?p(x):m(x)}function c(x){return n.attempt(Re,p,m)(x)}function p(x){return r(x)}function m(x){return i._balanced=!0,t(x)}}function Ve(n,r,t){return e;function e(m){return n.enter("resource"),n.enter("resourceMarker"),n.consume(m),n.exit("resourceMarker"),u}function u(m){return v(m)?bn(n,i)(m):i(m)}function i(m){return m===41?p(m):at(n,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function l(m){return v(m)?bn(n,f)(m):p(m)}function a(m){return t(m)}function f(m){return m===34||m===39||m===40?st(n,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):p(m)}function c(m){return v(m)?bn(n,p)(m):p(m)}function p(m){return m===41?(n.enter("resourceMarker"),n.consume(m),n.exit("resourceMarker"),n.exit("resource"),r):t(m)}}function We(n,r,t){const e=this;return u;function u(a){return ot.call(e,n,i,l,"reference","referenceMarker","referenceString")(a)}function i(a){return e.parser.defined.includes(xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)))?r(a):t(a)}function l(a){return t(a)}}function Qe(n,r,t){return e;function e(i){return n.enter("reference"),n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),u}function u(i){return i===93?(n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),n.exit("reference"),r):t(i)}}const Ue={name:"labelStartImage",tokenize:$e,resolveAll:Dn.resolveAll};function $e(n,r,t){const e=this;return u;function u(a){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(a),n.exit("labelImageMarker"),i}function i(a){return a===91?(n.enter("labelMarker"),n.consume(a),n.exit("labelMarker"),n.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(a):r(a)}}const ve={name:"labelStartLink",tokenize:Ze,resolveAll:Dn.resolveAll};function Ze(n,r,t){const e=this;return u;function u(l){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(l),n.exit("labelMarker"),n.exit("labelLink"),i}function i(l){return l===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(l):r(l)}}const wn={name:"lineEnding",tokenize:Ye};function Ye(n,r){return t;function t(e){return n.enter("lineEnding"),n.consume(e),n.exit("lineEnding"),O(n,r,"linePrefix")}}const yn={name:"thematicBreak",tokenize:Ge};function Ge(n,r,t){let e=0,u;return i;function i(c){return n.enter("thematicBreak"),l(c)}function l(c){return u=c,a(c)}function a(c){return c===u?(n.enter("thematicBreakSequence"),f(c)):e>=3&&(c===null||C(c))?(n.exit("thematicBreak"),r(c)):t(c)}function f(c){return c===u?(n.consume(c),e++,f):(n.exit("thematicBreakSequence"),z(c)?O(n,a,"whitespace")(c):a(c))}}const $={name:"list",tokenize:Xe,continuation:{tokenize:nr},exit:er},Je={tokenize:rr,partial:!0},Ke={tokenize:tr,partial:!0};function Xe(n,r,t){const e=this,u=e.events[e.events.length-1];let i=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,l=0;return a;function a(h){const A=e.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!e.containerState.marker||h===e.containerState.marker:zn(h)){if(e.containerState.type||(e.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),h===42||h===45?n.check(yn,t,c)(h):c(h);if(!e.interrupt||h===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),f(h)}return t(h)}function f(h){return zn(h)&&++l<10?(n.consume(h),f):(!e.interrupt||l<2)&&(e.containerState.marker?h===e.containerState.marker:h===41||h===46)?(n.exit("listItemValue"),c(h)):t(h)}function c(h){return n.enter("listItemMarker"),n.consume(h),n.exit("listItemMarker"),e.containerState.marker=e.containerState.marker||h,n.check(Sn,e.interrupt?t:p,n.attempt(Je,x,m))}function p(h){return e.containerState.initialBlankLine=!0,i++,x(h)}function m(h){return z(h)?(n.enter("listItemPrefixWhitespace"),n.consume(h),n.exit("listItemPrefixWhitespace"),x):t(h)}function x(h){return e.containerState.size=i+e.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(h)}}function nr(n,r,t){const e=this;return e.containerState._closeFlow=void 0,n.check(Sn,u,i);function u(a){return e.containerState.furtherBlankLines=e.containerState.furtherBlankLines||e.containerState.initialBlankLine,O(n,r,"listItemIndent",e.containerState.size+1)(a)}function i(a){return e.containerState.furtherBlankLines||!z(a)?(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,l(a)):(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,n.attempt(Ke,r,l)(a))}function l(a){return e.containerState._closeFlow=!0,e.interrupt=void 0,O(n,n.attempt($,r,t),"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function tr(n,r,t){const e=this;return O(n,u,"listItemIndent",e.containerState.size+1);function u(i){const l=e.events[e.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===e.containerState.size?r(i):t(i)}}function er(n){n.exit(this.containerState.type)}function rr(n,r,t){const e=this;return O(n,u,"listItemPrefixWhitespace",e.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(i){const l=e.events[e.events.length-1];return!z(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):t(i)}}const Jn={name:"setextUnderline",tokenize:ur,resolveTo:ir};function ir(n,r){let t=n.length,e,u,i;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){e=t;break}n[t][1].type==="paragraph"&&(u=t)}else n[t][1].type==="content"&&n.splice(t,1),!i&&n[t][1].type==="definition"&&(i=t);const l={type:"setextHeading",start:Object.assign({},n[u][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[u][1].type="setextHeadingText",i?(n.splice(u,0,["enter",l,r]),n.splice(i+1,0,["exit",n[e][1],r]),n[e][1].end=Object.assign({},n[i][1].end)):n[e][1]=l,n.push(["exit",l,r]),n}function ur(n,r,t){const e=this;let u;return i;function i(c){let p=e.events.length,m;for(;p--;)if(e.events[p][1].type!=="lineEnding"&&e.events[p][1].type!=="linePrefix"&&e.events[p][1].type!=="content"){m=e.events[p][1].type==="paragraph";break}return!e.parser.lazy[e.now().line]&&(e.interrupt||m)?(n.enter("setextHeadingLine"),u=c,l(c)):t(c)}function l(c){return n.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===u?(n.consume(c),a):(n.exit("setextHeadingLineSequence"),z(c)?O(n,f,"lineSuffix")(c):f(c))}function f(c){return c===null||C(c)?(n.exit("setextHeadingLine"),r(c)):t(c)}}const lr={tokenize:ar};function ar(n){const r=this,t=n.attempt(Sn,e,n.attempt(this.parser.constructs.flowInitial,u,O(n,n.attempt(this.parser.constructs.flow,u,n.attempt(pe,u)),"linePrefix")));return t;function e(i){if(i===null){n.consume(i);return}return n.enter("lineEndingBlank"),n.consume(i),n.exit("lineEndingBlank"),r.currentConstruct=void 0,t}function u(i){if(i===null){n.consume(i);return}return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),r.currentConstruct=void 0,t}}const or={resolveAll:ht()},sr=ct("string"),cr=ct("text");function ct(n){return{tokenize:r,resolveAll:ht(n==="text"?hr:void 0)};function r(t){const e=this,u=this.parser.constructs[n],i=t.attempt(u,l,a);return l;function l(p){return c(p)?i(p):a(p)}function a(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),f}function f(p){return c(p)?(t.exit("data"),i(p)):(t.consume(p),f)}function c(p){if(p===null)return!0;const m=u[p];let x=-1;if(m)for(;++x<m.length;){const h=m[x];if(!h.previous||h.previous.call(e,e.previous))return!0}return!1}}}function ht(n){return r;function r(t,e){let u=-1,i;for(;++u<=t.length;)i===void 0?t[u]&&t[u][1].type==="data"&&(i=u,u++):(!t[u]||t[u][1].type!=="data")&&(u!==i+2&&(t[i][1].end=t[u-1][1].end,t.splice(i+2,u-i-2),u=i+2),i=void 0);return n?n(t,e):t}}function hr(n,r){let t=0;for(;++t<=n.length;)if((t===n.length||n[t][1].type==="lineEnding")&&n[t-1][1].type==="data"){const e=n[t-1][1],u=r.sliceStream(e);let i=u.length,l=-1,a=0,f;for(;i--;){const c=u[i];if(typeof c=="string"){for(l=c.length;c.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(c===-2)f=!0,a++;else if(c!==-1){i++;break}}if(a){const c={type:t===n.length||f||a<2?"lineSuffix":"hardBreakTrailing",start:{line:e.end.line,column:e.end.column-a,offset:e.end.offset-a,_index:e.start._index+i,_bufferIndex:i?l:e.start._bufferIndex+l},end:Object.assign({},e.end)};e.end=Object.assign({},c.start),e.start.offset===e.end.offset?Object.assign(e,c):(n.splice(t,0,["enter",c,r],["exit",c,r]),t+=2)}t++}return n}function pr(n,r,t){let e=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const u={},i=[];let l=[],a=[];const f={consume:j,enter:F,exit:D,attempt:T(_),check:T(k),interrupt:T(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:n,sliceStream:h,sliceSerialize:x,now:A,defineSkip:I,write:m};let p=r.tokenize.call(c,f);return r.resolveAll&&i.push(r),c;function m(d){return l=Z(l,d),M(),l[l.length-1]!==null?[]:(H(r,0),c.events=Ln(i,c.events,c),c.events)}function x(d,S){return fr(h(d),S)}function h(d){return mr(l,d)}function A(){const{line:d,column:S,offset:P,_index:R,_bufferIndex:w}=e;return{line:d,column:S,offset:P,_index:R,_bufferIndex:w}}function I(d){u[d.line]=d.column,V()}function M(){let d;for(;e._index<l.length;){const S=l[e._index];if(typeof S=="string")for(d=e._index,e._bufferIndex<0&&(e._bufferIndex=0);e._index===d&&e._bufferIndex<S.length;)y(S.charCodeAt(e._bufferIndex));else y(S)}}function y(d){p=p(d)}function j(d){C(d)?(e.line++,e.column=1,e.offset+=d===-3?2:1,V()):d!==-1&&(e.column++,e.offset++),e._bufferIndex<0?e._index++:(e._bufferIndex++,e._bufferIndex===l[e._index].length&&(e._bufferIndex=-1,e._index++)),c.previous=d}function F(d,S){const P=S||{};return P.type=d,P.start=A(),c.events.push(["enter",P,c]),a.push(P),P}function D(d){const S=a.pop();return S.end=A(),c.events.push(["exit",S,c]),S}function _(d,S){H(d,S.from)}function k(d,S){S.restore()}function T(d,S){return P;function P(R,w,U){let W,Y,en,o;return Array.isArray(R)?rn(R):"tokenize"in R?rn([R]):G(R);function G(Q){return pn;function pn(an){const mn=an!==null&&Q[an],fn=an!==null&&Q.null,Fn=[...Array.isArray(mn)?mn:mn?[mn]:[],...Array.isArray(fn)?fn:fn?[fn]:[]];return rn(Fn)(an)}}function rn(Q){return W=Q,Y=0,Q.length===0?U:s(Q[Y])}function s(Q){return pn;function pn(an){return o=N(),en=Q,Q.partial||(c.currentConstruct=Q),Q.name&&c.parser.constructs.disable.null.includes(Q.name)?hn():Q.tokenize.call(S?Object.assign(Object.create(c),S):c,f,J,hn)(an)}}function J(Q){return d(en,o),w}function hn(Q){return o.restore(),++Y<W.length?s(W[Y]):U}}}function H(d,S){d.resolveAll&&!i.includes(d)&&i.push(d),d.resolve&&tn(c.events,S,c.events.length-S,d.resolve(c.events.slice(S),c)),d.resolveTo&&(c.events=d.resolveTo(c.events,c))}function N(){const d=A(),S=c.previous,P=c.currentConstruct,R=c.events.length,w=Array.from(a);return{restore:U,from:R};function U(){e=d,c.previous=S,c.currentConstruct=P,c.events.length=R,a=w,V()}}function V(){e.line in u&&e.column<2&&(e.column=u[e.line],e.offset+=u[e.line]-1)}}function mr(n,r){const t=r.start._index,e=r.start._bufferIndex,u=r.end._index,i=r.end._bufferIndex;let l;if(t===u)l=[n[t].slice(e,i)];else{if(l=n.slice(t,u),e>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(e):l.shift()}i>0&&l.push(n[u].slice(0,i))}return l}function fr(n,r){let t=-1;const e=[];let u;for(;++t<n.length;){const i=n[t];let l;if(typeof i=="string")l=i;else switch(i){case-5:{l="\r";break}case-4:{l=`
`;break}case-3:{l=`\r
`;break}case-2:{l=r?" ":" ";break}case-1:{if(!r&&u)continue;l=" ";break}default:l=String.fromCharCode(i)}u=i===-2,e.push(l)}return e.join("")}const xr={42:$,43:$,45:$,48:$,49:$,50:$,51:$,52:$,53:$,54:$,55:$,56:$,57:$,62:rt},gr={91:ke},kr={[-2]:Cn,[-1]:Cn,32:Cn},br={35:Ee,42:yn,45:[Jn,yn],60:ze,61:Jn,95:yn,96:Yn,126:Yn},yr={38:ut,92:it},dr={[-5]:wn,[-4]:wn,[-3]:wn,33:Ue,38:ut,42:In,60:[Zt,Pe],91:ve,92:[Se,it],93:Dn,95:In,96:ae},Sr={null:[In,or]},Fr={null:[42,95]},Er={null:[]},Cr=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Fr,contentInitial:gr,disable:Er,document:xr,flow:br,flowInitial:kr,insideSpan:Sr,string:yr,text:dr},Symbol.toStringTag,{value:"Module"}));function wr(n){const t=Ot([Cr,...(n||{}).extensions||[]]),e={defined:[],lazy:{},constructs:t,content:u(Nt),document:u(Wt),flow:u(lr),string:u(sr),text:u(cr)};return e;function u(i){return l;function l(a){return pr(e,i,a)}}}const Kn=/[\0\t\n\r]/g;function Ar(){let n=1,r="",t=!0,e;return u;function u(i,l,a){const f=[];let c,p,m,x,h;for(i=r+i.toString(l),m=0,r="",t&&(i.charCodeAt(0)===65279&&m++,t=void 0);m<i.length;){if(Kn.lastIndex=m,c=Kn.exec(i),x=c&&c.index!==void 0?c.index:i.length,h=i.charCodeAt(x),!c){r=i.slice(m);break}if(h===10&&m===x&&e)f.push(-3),e=void 0;else switch(e&&(f.push(-5),e=void 0),m<x&&(f.push(i.slice(m,x)),n+=x-m),h){case 0:{f.push(65533),n++;break}case 9:{for(p=Math.ceil(n/4)*4,f.push(-2);n++<p;)f.push(-1);break}case 10:{f.push(-4),n=1;break}default:e=!0,n=1}m=x+1}return a&&(e&&f.push(-5),r&&f.push(r),f.push(null)),f}}function zr(n){for(;!lt(n););return n}function pt(n,r){const t=Number.parseInt(n,r);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCharCode(t)}const Ir=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Tr(n){return n.replace(Ir,Br)}function Br(n,r,t){if(r)return r;if(t.charCodeAt(0)===35){const u=t.charCodeAt(1),i=u===120||u===88;return pt(t.slice(i?2:1),i?16:10)}return On(t)||n}function dn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Xn(n.position):"start"in n||"end"in n?Xn(n):"line"in n||"column"in n?Tn(n):""}function Tn(n){return nt(n&&n.line)+":"+nt(n&&n.column)}function Xn(n){return Tn(n&&n.start)+"-"+Tn(n&&n.end)}function nt(n){return n&&typeof n=="number"?n:1}const mt={}.hasOwnProperty,ft=function(n,r,t){return typeof r!="string"&&(t=r,r=void 0),Lr(t)(zr(wr(t).document().write(Ar()(n,r,!0))))};function Lr(n){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Hn),autolinkProtocol:d,autolinkEmail:d,atxHeading:a(jn),blockQuote:a(Fn),characterEscape:d,characterReference:d,codeFenced:a(Mn),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:a(Mn,f),codeText:a(kt,f),codeTextData:d,data:d,codeFlowValue:d,definition:a(bt),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:a(yt),hardBreakEscape:a(Rn),hardBreakTrailing:a(Rn),htmlFlow:a(qn,f),htmlFlowData:d,htmlText:a(qn,f),htmlTextData:d,image:a(dt),label:f,link:a(Hn),listItem:a(St),listItemValue:A,listOrdered:a(Nn,h),listUnordered:a(Nn),paragraph:a(Ft),reference:hn,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:a(jn),strong:a(Et),thematicBreak:a(wt)},exit:{atxHeading:p(),atxHeadingSequence:T,autolink:p(),autolinkEmail:fn,autolinkProtocol:mn,blockQuote:p(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:pn,characterReferenceMarkerNumeric:pn,characterReferenceValue:an,codeFenced:p(j),codeFencedFence:y,codeFencedFenceInfo:I,codeFencedFenceMeta:M,codeFlowValue:S,codeIndented:p(F),codeText:p(W),codeTextData:S,data:S,definition:p(),definitionDestinationString:k,definitionLabelString:D,definitionTitleString:_,emphasis:p(),hardBreakEscape:p(R),hardBreakTrailing:p(R),htmlFlow:p(w),htmlFlowData:S,htmlText:p(U),htmlTextData:S,image:p(en),label:G,labelText:o,lineEnding:P,link:p(Y),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Q,resourceDestinationString:rn,resourceTitleString:s,resource:J,setextHeading:p(V),setextHeadingLineSequence:N,setextHeadingText:H,strong:p(),thematicBreak:p()}};xt(r,(n||{}).mdastExtensions||[]);const t={};return e;function e(g){let b={type:"root",children:[]};const E={stack:[b],tokenStack:[],config:r,enter:c,exit:m,buffer:f,resume:x,setData:i,getData:l},B=[];let L=-1;for(;++L<g.length;)if(g[L][1].type==="listOrdered"||g[L][1].type==="listUnordered")if(g[L][0]==="enter")B.push(L);else{const K=B.pop();L=u(g,K,L)}for(L=-1;++L<g.length;){const K=r[g[L][0]];mt.call(K,g[L][1].type)&&K[g[L][1].type].call(Object.assign({sliceSerialize:g[L][2].sliceSerialize},E),g[L][1])}if(E.tokenStack.length>0){const K=E.tokenStack[E.tokenStack.length-1];(K[1]||tt).call(E,void 0,K[0])}for(b.position={start:sn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:sn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},L=-1;++L<r.transforms.length;)b=r.transforms[L](b)||b;return b}function u(g,b,E){let B=b-1,L=-1,K=!1,on,un,gn,kn;for(;++B<=E;){const q=g[B];if(q[1].type==="listUnordered"||q[1].type==="listOrdered"||q[1].type==="blockQuote"?(q[0]==="enter"?L++:L--,kn=void 0):q[1].type==="lineEndingBlank"?q[0]==="enter"&&(on&&!kn&&!L&&!gn&&(gn=B),kn=void 0):q[1].type==="linePrefix"||q[1].type==="listItemValue"||q[1].type==="listItemMarker"||q[1].type==="listItemPrefix"||q[1].type==="listItemPrefixWhitespace"||(kn=void 0),!L&&q[0]==="enter"&&q[1].type==="listItemPrefix"||L===-1&&q[0]==="exit"&&(q[1].type==="listUnordered"||q[1].type==="listOrdered")){if(on){let En=B;for(un=void 0;En--;){const ln=g[En];if(ln[1].type==="lineEnding"||ln[1].type==="lineEndingBlank"){if(ln[0]==="exit")continue;un&&(g[un][1].type="lineEndingBlank",K=!0),ln[1].type="lineEnding",un=En}else if(!(ln[1].type==="linePrefix"||ln[1].type==="blockQuotePrefix"||ln[1].type==="blockQuotePrefixWhitespace"||ln[1].type==="blockQuoteMarker"||ln[1].type==="listItemIndent"))break}gn&&(!un||gn<un)&&(on._spread=!0),on.end=Object.assign({},un?g[un][1].start:q[1].end),g.splice(un||B,0,["exit",on,q[2]]),B++,E++}q[1].type==="listItemPrefix"&&(on={type:"listItem",_spread:!1,start:Object.assign({},q[1].start),end:void 0},g.splice(B,0,["enter",on,q[2]]),B++,E++,gn=void 0,kn=!0)}}return g[b][1]._spread=K,E}function i(g,b){t[g]=b}function l(g){return t[g]}function a(g,b){return E;function E(B){c.call(this,g(B),B),b&&b.call(this,B)}}function f(){this.stack.push({type:"fragment",children:[]})}function c(g,b,E){return this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([b,E]),g.position={start:sn(b.start)},g}function p(g){return b;function b(E){g&&g.call(this,E),m.call(this,E)}}function m(g,b){const E=this.stack.pop(),B=this.tokenStack.pop();if(B)B[0].type!==g.type&&(b?b.call(this,g,B[0]):(B[1]||tt).call(this,g,B[0]));else throw new Error("Cannot close `"+g.type+"` ("+dn({start:g.start,end:g.end})+"): it’s not open");return E.position.end=sn(g.end),E}function x(){return Bt(this.stack.pop())}function h(){i("expectingFirstListItemValue",!0)}function A(g){if(l("expectingFirstListItemValue")){const b=this.stack[this.stack.length-2];b.start=Number.parseInt(this.sliceSerialize(g),10),i("expectingFirstListItemValue")}}function I(){const g=this.resume(),b=this.stack[this.stack.length-1];b.lang=g}function M(){const g=this.resume(),b=this.stack[this.stack.length-1];b.meta=g}function y(){l("flowCodeInside")||(this.buffer(),i("flowCodeInside",!0))}function j(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")}function F(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g.replace(/(\r?\n|\r)$/g,"")}function D(g){const b=this.resume(),E=this.stack[this.stack.length-1];E.label=b,E.identifier=xn(this.sliceSerialize(g)).toLowerCase()}function _(){const g=this.resume(),b=this.stack[this.stack.length-1];b.title=g}function k(){const g=this.resume(),b=this.stack[this.stack.length-1];b.url=g}function T(g){const b=this.stack[this.stack.length-1];if(!b.depth){const E=this.sliceSerialize(g).length;b.depth=E}}function H(){i("setextHeadingSlurpLineEnding",!0)}function N(g){const b=this.stack[this.stack.length-1];b.depth=this.sliceSerialize(g).charCodeAt(0)===61?1:2}function V(){i("setextHeadingSlurpLineEnding")}function d(g){const b=this.stack[this.stack.length-1];let E=b.children[b.children.length-1];(!E||E.type!=="text")&&(E=Ct(),E.position={start:sn(g.start)},b.children.push(E)),this.stack.push(E)}function S(g){const b=this.stack.pop();b.value+=this.sliceSerialize(g),b.position.end=sn(g.end)}function P(g){const b=this.stack[this.stack.length-1];if(l("atHardBreak")){const E=b.children[b.children.length-1];E.position.end=sn(g.end),i("atHardBreak");return}!l("setextHeadingSlurpLineEnding")&&r.canContainEols.includes(b.type)&&(d.call(this,g),S.call(this,g))}function R(){i("atHardBreak",!0)}function w(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function U(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function W(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function Y(){const g=this.stack[this.stack.length-1];if(l("inReference")){const b=l("referenceType")||"shortcut";g.type+="Reference",g.referenceType=b,delete g.url,delete g.title}else delete g.identifier,delete g.label;i("referenceType")}function en(){const g=this.stack[this.stack.length-1];if(l("inReference")){const b=l("referenceType")||"shortcut";g.type+="Reference",g.referenceType=b,delete g.url,delete g.title}else delete g.identifier,delete g.label;i("referenceType")}function o(g){const b=this.sliceSerialize(g),E=this.stack[this.stack.length-2];E.label=Tr(b),E.identifier=xn(b).toLowerCase()}function G(){const g=this.stack[this.stack.length-1],b=this.resume(),E=this.stack[this.stack.length-1];if(i("inReference",!0),E.type==="link"){const B=g.children;E.children=B}else E.alt=b}function rn(){const g=this.resume(),b=this.stack[this.stack.length-1];b.url=g}function s(){const g=this.resume(),b=this.stack[this.stack.length-1];b.title=g}function J(){i("inReference")}function hn(){i("referenceType","collapsed")}function Q(g){const b=this.resume(),E=this.stack[this.stack.length-1];E.label=b,E.identifier=xn(this.sliceSerialize(g)).toLowerCase(),i("referenceType","full")}function pn(g){i("characterReferenceType",g.type)}function an(g){const b=this.sliceSerialize(g),E=l("characterReferenceType");let B;E?(B=pt(b,E==="characterReferenceMarkerNumeric"?10:16),i("characterReferenceType")):B=On(b);const L=this.stack.pop();L.value+=B,L.position.end=sn(g.end)}function mn(g){S.call(this,g);const b=this.stack[this.stack.length-1];b.url=this.sliceSerialize(g)}function fn(g){S.call(this,g);const b=this.stack[this.stack.length-1];b.url="mailto:"+this.sliceSerialize(g)}function Fn(){return{type:"blockquote",children:[]}}function Mn(){return{type:"code",lang:null,meta:null,value:""}}function kt(){return{type:"inlineCode",value:""}}function bt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function yt(){return{type:"emphasis",children:[]}}function jn(){return{type:"heading",depth:void 0,children:[]}}function Rn(){return{type:"break"}}function qn(){return{type:"html",value:""}}function dt(){return{type:"image",title:null,url:"",alt:null}}function Hn(){return{type:"link",title:null,url:"",children:[]}}function Nn(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function St(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function Ft(){return{type:"paragraph",children:[]}}function Et(){return{type:"strong",children:[]}}function Ct(){return{type:"text",value:""}}function wt(){return{type:"thematicBreak"}}}function sn(n){return{line:n.line,column:n.column,offset:n.offset}}function xt(n,r){let t=-1;for(;++t<r.length;){const e=r[t];Array.isArray(e)?xt(n,e):Or(n,e)}}function Or(n,r){let t;for(t in r)if(mt.call(r,t)){if(t==="canContainEols"){const e=r[t];e&&n[t].push(...e)}else if(t==="transforms"){const e=r[t];e&&n[t].push(...e)}else if(t==="enter"||t==="exit"){const e=r[t];e&&Object.assign(n[t],e)}}}function tt(n,r){throw n?new Error("Cannot close `"+n.type+"` ("+dn({start:n.start,end:n.end})+"): a different token (`"+r.type+"`, "+dn({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+dn({start:r.start,end:r.end})+") is still open")}function Dr(n){const r=n.replace(/\n{2,}/g,`
`);return It(r)}function Pr(n){const r=Dr(n),{children:t}=ft(r),e=[[]];let u=0;function i(l,a="normal"){l.type==="text"?l.value.split(`
`).forEach((c,p)=>{p!==0&&(u++,e.push([])),c.split(" ").forEach(m=>{m&&e[u].push({content:m,type:a})})}):(l.type==="strong"||l.type==="emphasis")&&l.children.forEach(f=>{i(f,l.type)})}return t.forEach(l=>{l.type==="paragraph"&&l.children.forEach(a=>{i(a)})}),e}function _r(n){const{children:r}=ft(n);function t(e){return e.type==="text"?e.value.replace(/\n/g,"<br/>"):e.type==="strong"?`<strong>${e.children.map(t).join("")}</strong>`:e.type==="emphasis"?`<em>${e.children.map(t).join("")}</em>`:e.type==="paragraph"?`<p>${e.children.map(t).join("")}</p>`:`Unsupported markdown: ${e.type}`}return r.map(t).join("")}function Mr(n){return Intl.Segmenter?[...new Intl.Segmenter().segment(n)].map(r=>r.segment):[...n]}function jr(n,r){const t=Mr(r.content);return gt(n,[],t,r.type)}function gt(n,r,t,e){if(t.length===0)return[{content:r.join(""),type:e},{content:"",type:e}];const[u,...i]=t,l=[...r,u];return n([{content:l.join(""),type:e}])?gt(n,l,i,e):(r.length===0&&u&&(r.push(u),t.shift()),[{content:r.join(""),type:e},{content:t.join(""),type:e}])}function Rr(n,r){if(n.some(({content:t})=>t.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Bn(n,r)}function Bn(n,r,t=[],e=[]){if(n.length===0)return e.length>0&&t.push(e),t.length>0?t:[];let u="";n[0].content===" "&&(u=" ",n.shift());const i=n.shift()??{content:" ",type:"normal"},l=[...e];if(u!==""&&l.push({content:u,type:"normal"}),l.push(i),r(l))return Bn(n,r,t,l);if(e.length>0)t.push(e),n.unshift(i);else if(i.content){const[a,f]=jr(r,i);t.push([a]),f.content&&n.unshift(f)}return Bn(n,r,t)}function qr(n,r){r&&n.attr("style",r)}function Hr(n,r,t,e,u=!1){const i=n.append("foreignObject"),l=i.append("xhtml:div"),a=r.label,f=r.isNode?"nodeLabel":"edgeLabel";l.html(`
<span class="${f} ${e}" `+(r.labelStyle?'style="'+r.labelStyle+'"':"")+">"+a+"</span>"),qr(l,r.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("max-width",t+"px"),l.attr("xmlns","http://www.w3.org/1999/xhtml"),u&&l.attr("class","labelBkg");let c=l.node().getBoundingClientRect();return c.width===t&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",t+"px"),c=l.node().getBoundingClientRect()),i.style("width",c.width),i.style("height",c.height),i.node()}function Pn(n,r,t){return n.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",r*t-.1+"em").attr("dy",t+"em")}function Nr(n,r,t){const e=n.append("text"),u=Pn(e,1,r);_n(u,t);const i=u.node().getComputedTextLength();return e.remove(),i}function Qr(n,r,t){var e;const u=n.append("text"),i=Pn(u,1,r);_n(i,[{content:t,type:"normal"}]);const l=(e=i.node())==null?void 0:e.getBoundingClientRect();return l&&u.remove(),l}function Vr(n,r,t,e=!1){const i=r.append("g"),l=i.insert("rect").attr("class","background"),a=i.append("text").attr("y","-10.1");let f=0;for(const c of t){const p=x=>Nr(i,1.1,x)<=n,m=p(c)?[c]:Rr(c,p);for(const x of m){const h=Pn(a,f,1.1);_n(h,x),f++}}if(e){const c=a.node().getBBox(),p=2;return l.attr("x",-p).attr("y",-p).attr("width",c.width+2*p).attr("height",c.height+2*p),i.node()}else return a.node()}function _n(n,r){n.text(""),r.forEach((t,e)=>{const u=n.append("tspan").attr("font-style",t.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",t.type==="strong"?"bold":"normal");e===0?u.text(t.content):u.text(" "+t.content)})}const Ur=(n,r="",{style:t="",isTitle:e=!1,classes:u="",useHtmlLabels:i=!0,isNode:l=!0,width:a=200,addSvgBackground:f=!1}={})=>{if(At.info("createText",r,t,e,u,i,l,f),i){const c=_r(r),p={isNode:l,label:zt(c).replace(/fa[blrs]?:fa-[\w-]+/g,x=>`<i class='${x.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return Hr(n,p,a,u,f)}else{const c=Pr(r);return Vr(a,n,c,f)}};export{Ur as a,Qr as c};
import{j as r}from"./graph-af3d5df6-B9Rrt_D8.js";var e=4;function a(o){return r(o,e)}export{a as c};
import{p as M,d as _,s as R}from"./styles-d48462a7-C8TUyLNy.js";import{l as d,c,h as w,v as B,t as G,n as D,p as E,q as C,j as A}from"./slidev/Mermaid-sWhOKcCj.js";import{G as q}from"./graph-af3d5df6-B9Rrt_D8.js";import{r as z}from"./index-c8395ba2-BeB0hvAS.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./layout-6685625a-TirZJcn7.js";import"./clone-d2e37f8c-kF1Uud7q.js";import"./edges-1e1ebc73-BF9aEHVZ.js";import"./createText-f6615236-DY9JQ1lr.js";import"./line-65d70945-Bv9b7vLo.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const S=s=>A.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const P=function(s,e,y,a){const t=Object.keys(s);d.info("keys:",t),d.info(s),t.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};e.setNode(l.id,p),$(l.classes,e,y,a,l.id),d.info("setNode",p)})},$=function(s,e,y,a,t){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==t).forEach(function(o){var r,l;const n=s[o],p=n.cssClasses.join(" "),f=D(n.styles),m=n.label??n.id,u=0,b={labelStyle:f.labelStyle,shape:"class_box",labelText:S(m),classData:n,rx:u,ry:u,class:p,style:f.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,t)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};e.setNode(n.id,b),t&&e.setParent(n.id,t),d.info("setNode",b)})},F=function(s,e,y,a){d.info(s),s.forEach(function(t,i){var o,r;const l=t,n="",p={labelStyle:"",style:""},f=l.text,m=0,h={labelStyle:p.labelStyle,shape:"note",labelText:S(f),noteData:l,rx:m,ry:m,class:n,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(e.setNode(l.id,h),d.info("setNode",h),!l.class||!(l.class in a))return;const b=y+i,x={id:`edgeNote${b}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,C)};e.setEdge(l.id,l.class,x,b)})},H=function(s,e){const y=c().flowchart;let a=0;s.forEach(function(t){var i;a++;const o={classes:"relation",pattern:t.relation.lineType==1?"dashed":"solid",id:`id_${t.id1}_${t.id2}_${a}`,arrowhead:t.type==="arrow_open"?"none":"normal",startLabelRight:t.relationTitle1==="none"?"":t.relationTitle1,endLabelLeft:t.relationTitle2==="none"?"":t.relationTitle2,arrowTypeStart:N(t.relation.type1),arrowTypeEnd:N(t.relation.type2),style:"fill:none",labelStyle:"",curve:E(y==null?void 0:y.curve,C)};if(d.info(o,t),t.style!==void 0){const r=D(t.style);o.style=r.style,o.labelStyle=r.labelStyle}t.text=t.title,t.text===void 0?t.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label='<span class="edgeLabel">'+t.text+"</span>"):(o.labelType="text",o.label=t.text.replace(A.lineBreakRegex,`
`),t.style===void 0&&(o.style=o.style||"stroke: #333; stroke-width: 1.5px;fill:none"),o.labelStyle=o.labelStyle.replace("color:","fill:"))),e.setEdge(t.id1,t.id2,o,a)})},V=function(s){k={...k,...s}},W=async function(s,e,y,a){d.info("Drawing class - ",e);const t=c().flowchart??c().class,i=c().securityLevel;d.info("config:",t);const o=(t==null?void 0:t.nodeSpacing)??50,r=(t==null?void 0:t.rankSpacing)??50,l=new q({multigraph:!0,compound:!0}).setGraph({rankdir:a.db.getDirection(),nodesep:o,ranksep:r,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=a.db.getNamespaces(),p=a.db.getClasses(),f=a.db.getRelations(),m=a.db.getNotes();d.info(f),P(n,l,e,a),$(p,l,e,a),H(f,l),F(m,l,f.length+1,p);let u;i==="sandbox"&&(u=w("#i"+e));const h=i==="sandbox"?w(u.nodes()[0].contentDocument.body):w("body"),b=h.select(`[id="${e}"]`),x=h.select("#"+e+" g");if(await z(x,l,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",e),B.insertTitle(b,"classTitleText",(t==null?void 0:t.titleTopMargin)??5,a.db.getDiagramTitle()),G(l,b,t==null?void 0:t.diagramPadding,t==null?void 0:t.useMaxWidth),!(t!=null&&t.htmlLabels)){const T=i==="sandbox"?u.nodes()[0].contentDocument:document,I=T.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const g of I){const L=g.getBBox(),v=T.createElementNS("http://www.w3.org/2000/svg","rect");v.setAttribute("rx",0),v.setAttribute("ry",0),v.setAttribute("width",L.width),v.setAttribute("height",L.height),g.insertBefore(v,g.firstChild)}}};function N(s){let e;switch(s){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}const J={setConf:V,draw:W},it={parser:M,db:_,renderer:J,styles:R,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,_.clear()}};export{it as diagram};
import{p as G,d as v,s as A}from"./styles-d48462a7-C8TUyLNy.js";import{c as S,l as y,h as B,i as W,F as $,v as M,G as I}from"./slidev/Mermaid-sWhOKcCj.js";import{G as O}from"./graph-af3d5df6-B9Rrt_D8.js";import{l as P}from"./layout-6685625a-TirZJcn7.js";import{l as X}from"./line-65d70945-Bv9b7vLo.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";let H=0;const Y=function(i,a,t,o,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=X().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let f,h;const x=a.points.length;let b=M.calcLabelPosition(a.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},J=function(i,a,t,o){y.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=C(a);const f=c.append("tspan").text(r).attr("class","title");n||f.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,u;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){_(d,l,n,t),n=!1})}const m=s.node().getBBox();var w=" ";a.cssClasses.length>0&&(w=w+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},C=function(i){let a=i.id;return i.type&&(a+="<"+I(i.type)+">"),a},Z=function(i,a,t,o){y.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(`
`);n.forEach(function(x){y.debug(`Adding line: ${x}`),c.append("tspan").text(x).attr("class","title").attr("dy",t.textHeight)});const r=s.node().getBBox(),h=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",r.width+2*t.padding).attr("height",r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return c.node().childNodes.forEach(function(x){x.setAttribute("x",(h-x.getBBox().width)/2)}),g.width=h,g.height=r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,g},_=function(i,a,t,o){const{displayText:p,cssStyle:g}=a.getDisplayDetails(),s=i.append("tspan").attr("x",o.padding).text(p);g!==""&&s.attr("style",a.cssStyle),t||s.attr("dy",o.textHeight)},N={getClassTitleString:C,drawClass:J,drawEdge:Y,drawNote:Z};let T={};const E=20,L=function(i){const a=Object.entries(T).find(t=>t[1].label===i);if(a)return a[0]},R=function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},F=function(i,a,t,o){const p=S().class;T={},y.info("Rendering diagram "+i);const g=S().securityLevel;let s;g==="sandbox"&&(s=B("#i"+a));const c=g==="sandbox"?B(s.nodes()[0].contentDocument.body):B("body"),n=c.select(`[id='${a}']`);R(n);const r=new O({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});const f=o.db.getClasses(),h=Object.keys(f);for(const e of h){const d=f[e],l=N.drawClass(n,d,p,o);T[l.id]=l,r.setNode(l.id,l),y.info("Org height: "+l.height)}o.db.getRelations().forEach(function(e){y.info("tjoho"+L(e.id1)+L(e.id2)+JSON.stringify(e)),r.setEdge(L(e.id1),L(e.id2),{relation:e},e.title||"DEFAULT")}),o.db.getNotes().forEach(function(e){y.debug(`Adding note: ${JSON.stringify(e)}`);const d=N.drawNote(n,e,p,o);T[d.id]=d,r.setNode(d.id,d),e.class&&e.class in f&&r.setEdge(e.id,L(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),P(r),r.nodes().forEach(function(e){e!==void 0&&r.node(e)!==void 0&&(y.debug("Node "+e+": "+JSON.stringify(r.node(e))),c.select("#"+(o.db.lookUpDomId(e)||e)).attr("transform","translate("+(r.node(e).x-r.node(e).width/2)+","+(r.node(e).y-r.node(e).height/2)+" )"))}),r.edges().forEach(function(e){e!==void 0&&r.edge(e)!==void 0&&(y.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(r.edge(e))),N.drawEdge(n,r.edge(e),r.edge(e).relation,p,o))});const u=n.node().getBBox(),m=u.width+E*2,w=u.height+E*2;W(n,w,m,p.useMaxWidth);const k=`${u.x-E} ${u.y-E} ${m} ${w}`;y.debug(`viewBox ${k}`),n.attr("viewBox",k)},U={draw:F},it={parser:G,db:v,renderer:U,styles:A,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,v.clear()}};export{it as diagram};
import{aS as o,aT as r}from"./slidev/Mermaid-sWhOKcCj.js";const s=(a,n)=>o.lang.round(r.parse(a)[n]),e=s;export{e as c};
import{s as we,g as Oe,a as Te,b as Re,c as Dt,d as ue,e as De,f as wt,h as Nt,l as le,i as Se,w as Pe,j as Kt,k as oe,m as Me}from"./slidev/Mermaid-sWhOKcCj.js";import{d as Le,g as Ne}from"./svgDrawCommon-99ae2c94-BzrMl0LX.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var Yt=function(){var e=function(bt,_,x,m){for(x=x||{},m=bt.length;m--;x[bt[m]]=_);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],O=[1,30],R=[1,31],S=[1,32],L=[1,33],Y=[1,34],Q=[1,35],H=[1,36],q=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],it=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],lt=[1,51],ot=[1,52],ct=[1,53],ht=[1,54],ut=[1,55],dt=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],At=[14,42],Vt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],v=[1,82],k=[1,83],A=[1,84],C=[1,85],w=[12,14,42],ne=[12,14,33,42],Pt=[12,14,33,42,76,77,79,80],mt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(_,x,m,g,T,u,Tt){var y=u.length-1;switch(T){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let Et={};Et[u[y-1].trim()]=u[y].trim(),this.$=Et;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(At,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(At,[2,14]),e(Vt,[2,16],{12:[1,76]}),e(At,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:v,77:k,79:A,80:C},{35:86,75:81,76:v,77:k,79:A,80:C},{35:87,75:81,76:v,77:k,79:A,80:C},{35:88,75:81,76:v,77:k,79:A,80:C},{35:89,75:81,76:v,77:k,79:A,80:C},{35:90,75:81,76:v,77:k,79:A,80:C},{35:91,75:81,76:v,77:k,79:A,80:C},{35:92,75:81,76:v,77:k,79:A,80:C},{35:93,75:81,76:v,77:k,79:A,80:C},{35:94,75:81,76:v,77:k,79:A,80:C},{35:95,75:81,76:v,77:k,79:A,80:C},{35:96,75:81,76:v,77:k,79:A,80:C},{35:97,75:81,76:v,77:k,79:A,80:C},{35:98,75:81,76:v,77:k,79:A,80:C},{35:99,75:81,76:v,77:k,79:A,80:C},{35:100,75:81,76:v,77:k,79:A,80:C},{35:101,75:81,76:v,77:k,79:A,80:C},{35:102,75:81,76:v,77:k,79:A,80:C},{35:103,75:81,76:v,77:k,79:A,80:C},{35:104,75:81,76:v,77:k,79:A,80:C},e(w,[2,59]),{35:105,75:81,76:v,77:k,79:A,80:C},{35:106,75:81,76:v,77:k,79:A,80:C},{35:107,75:81,76:v,77:k,79:A,80:C},{35:108,75:81,76:v,77:k,79:A,80:C},{35:109,75:81,76:v,77:k,79:A,80:C},{35:110,75:81,76:v,77:k,79:A,80:C},{35:111,75:81,76:v,77:k,79:A,80:C},{35:112,75:81,76:v,77:k,79:A,80:C},{35:113,75:81,76:v,77:k,79:A,80:C},{35:114,75:81,76:v,77:k,79:A,80:C},{35:115,75:81,76:v,77:k,79:A,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:k,79:A,80:C},{35:120,75:81,76:v,77:k,79:A,80:C},{35:121,75:81,76:v,77:k,79:A,80:C},{35:122,75:81,76:v,77:k,79:A,80:C},{35:123,75:81,76:v,77:k,79:A,80:C},{35:124,75:81,76:v,77:k,79:A,80:C},{35:125,75:81,76:v,77:k,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(At,[2,15]),e(Vt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(At,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(Ot,[2,21]),e(Ot,[2,22]),e(w,[2,39]),e(ne,[2,71],{75:81,35:132,76:v,77:k,79:A,80:C}),e(Pt,[2,73]),{78:[1,133]},e(Pt,[2,75]),e(Pt,[2,76]),e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),e(w,[2,47]),e(w,[2,48]),e(w,[2,49]),e(w,[2,50]),e(w,[2,51]),e(w,[2,52]),e(w,[2,53]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(w,[2,60]),e(w,[2,61]),e(w,[2,62]),e(w,[2,63]),e(w,[2,64]),e(w,[2,65]),e(w,[2,66]),e(w,[2,67]),e(w,[2,68]),e(w,[2,69]),e(w,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(mt,[2,28]),e(mt,[2,29]),e(mt,[2,30]),e(mt,[2,31]),e(mt,[2,32]),e(mt,[2,33]),e(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Vt,[2,18]),e(At,[2,38]),e(ne,[2,72]),e(Pt,[2,74]),e(w,[2,24]),e(w,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(_,x){if(x.recoverable)this.trace(_);else{var m=new Error(_);throw m.hash=x,m}},parse:function(_){var x=this,m=[0],g=[],T=[null],u=[],Tt=this.table,y="",Et=0,se=0,ve=2,ae=1,ke=u.slice.call(arguments,1),D=Object.create(this.lexer),vt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(vt.yy[Qt]=this.yy[Qt]);D.setInput(_,vt.yy),vt.yy.lexer=D,vt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;u.push(Ht);var Ae=D.options&&D.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ce(){var X;return X=g.pop()||D.lex()||ae,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,kt,N,qt,Ct={},Mt,z,re,Lt;;){if(kt=m[m.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((M===null||typeof M>"u")&&(M=Ce()),N=Tt[kt]&&Tt[kt][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in Tt[kt])this.terminals_[Mt]&&Mt>ve&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`:
`+D.showPosition()+`
Expecting `+Lt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Gt="Parse error on line "+(Et+1)+": Unexpected "+(M==ae?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Gt,{text:D.match,token:this.terminals_[M]||M,line:D.yylineno,loc:Ht,expected:Lt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+M);switch(N[0]){case 1:m.push(M),T.push(D.yytext),u.push(D.yylloc),m.push(N[1]),M=null,se=D.yyleng,y=D.yytext,Et=D.yylineno,Ht=D.yylloc;break;case 2:if(z=this.productions_[N[1]][1],Ct.$=T[T.length-z],Ct._$={first_line:u[u.length-(z||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(z||1)].first_column,last_column:u[u.length-1].last_column},Ae&&(Ct._$.range=[u[u.length-(z||1)].range[0],u[u.length-1].range[1]]),qt=this.performAction.apply(Ct,[y,se,Et,vt.yy,N[1],T,u].concat(ke)),typeof qt<"u")return qt;z&&(m=m.slice(0,-1*z*2),T=T.slice(0,-1*z),u=u.slice(0,-1*z)),m.push(this.productions_[N[1]][0]),T.push(Ct.$),u.push(Ct._$),re=Tt[m[m.length-2]][m[m.length-1]],m.push(re);break;case 3:return!0}}return!0}},Ee=function(){var bt={EOF:1,parseError:function(x,m){if(this.yy.parser)this.yy.parser.parseError(x,m);else throw new Error(x)},setInput:function(_,x){return this.yy=x||this.yy||{},this._input=_,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var x=_.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},unput:function(_){var x=_.length,m=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===g.length?this.yylloc.first_column:0)+g[g.length-m.length].length-m[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(_){this.unput(this.match.slice(_))},pastInput:function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _=this.pastInput(),x=new Array(_.length+1).join("-");return _+this.upcomingInput()+`
`+x+"^"},test_match:function(_,x){var m,g,T;if(this.options.backtrack_lexer&&(T={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(T.yylloc.range=this.yylloc.range.slice(0))),g=_[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_[0].length),this.matched+=_[0],m=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var u in T)this[u]=T[u];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,x,m,g;this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),u=0;u<T.length;u++)if(m=this._input.match(this.rules[T[u]]),m&&(!x||m[0].length>x[0].length)){if(x=m,g=u,this.options.backtrack_lexer){if(_=this.test_match(m,T[u]),_!==!1)return _;if(this._backtrack){x=!1;continue}else return!1}else if(!this.options.flex)break}return x?(_=this.test_match(x,T[g]),_!==!1?_:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var x=this.next();return x||this.lex()},begin:function(x){this.conditionStack.push(x)},popState:function(){var x=this.conditionStack.length-1;return x>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(x){return x=this.conditionStack.length-1-Math.abs(x||0),x>=0?this.conditionStack[x]:"INITIAL"},pushState:function(x){this.begin(x)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(x,m,g,T){switch(g){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return bt}();Xt.lexer=Ee;function Wt(){this.yy={}}return Wt.prototype=Xt,Xt.Parser=Wt,new Wt}();Yt.parser=Yt;const Be=Yt;let U=[],_t=[""],P="global",j="",V=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],St=[],te="",ee=!1,It=4,jt=2;var de;const Ye=function(){return de},Ie=function(e){de=ue(e,Dt())},je=function(e,t,a,o,l,i,s,r,n){if(e==null||t===void 0||t===null||a===void 0||a===null||o===void 0||o===null)return;let h={};const f=St.find(d=>d.from===t&&d.to===a);if(f?h=f:St.push(h),h.type=e,h.from=t,h.to=a,h.label={text:o},l==null)h.techn={text:""};else if(typeof l=="object"){let[d,p]=Object.entries(l)[0];h[d]={text:p}}else h.techn={text:l};if(i==null)h.descr={text:""};else if(typeof i=="object"){let[d,p]=Object.entries(i)[0];h[d]={text:p}}else h.descr={text:i};if(typeof s=="object"){let[d,p]=Object.entries(s)[0];h[d]=p}else h.sprite=s;if(typeof r=="object"){let[d,p]=Object.entries(r)[0];h[d]=p}else h.tags=r;if(typeof n=="object"){let[d,p]=Object.entries(n)[0];h[d]=p}else h.link=n;h.wrap=xt()},Ue=function(e,t,a,o,l,i,s){if(t===null||a===null)return;let r={};const n=U.find(h=>h.alias===t);if(n&&t===n.alias?r=n:(r.alias=t,U.push(r)),a==null?r.label={text:""}:r.label={text:a},o==null)r.descr={text:""};else if(typeof o=="object"){let[h,f]=Object.entries(o)[0];r[h]={text:f}}else r.descr={text:o};if(typeof l=="object"){let[h,f]=Object.entries(l)[0];r[h]=f}else r.sprite=l;if(typeof i=="object"){let[h,f]=Object.entries(i)[0];r[h]=f}else r.tags=i;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];r[h]=f}else r.link=s;r.typeC4Shape={text:e},r.parentBoundary=P,r.wrap=xt()},Fe=function(e,t,a,o,l,i,s,r){if(t===null||a===null)return;let n={};const h=U.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,U.push(n)),a==null?n.label={text:""}:n.label={text:a},o==null)n.techn={text:""};else if(typeof o=="object"){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.techn={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if(typeof i=="object"){let[f,d]=Object.entries(i)[0];n[f]=d}else n.sprite=i;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if(typeof r=="object"){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.wrap=xt(),n.typeC4Shape={text:e},n.parentBoundary=P},Ve=function(e,t,a,o,l,i,s,r){if(t===null||a===null)return;let n={};const h=U.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,U.push(n)),a==null?n.label={text:""}:n.label={text:a},o==null)n.techn={text:""};else if(typeof o=="object"){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.techn={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if(typeof i=="object"){let[f,d]=Object.entries(i)[0];n[f]=d}else n.sprite=i;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if(typeof r=="object"){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.wrap=xt(),n.typeC4Shape={text:e},n.parentBoundary=P},ze=function(e,t,a,o,l){if(e===null||t===null)return;let i={};const s=V.find(r=>r.alias===e);if(s&&e===s.alias?i=s:(i.alias=e,V.push(i)),t==null?i.label={text:""}:i.label={text:t},a==null)i.type={text:"system"};else if(typeof a=="object"){let[r,n]=Object.entries(a)[0];i[r]={text:n}}else i.type={text:a};if(typeof o=="object"){let[r,n]=Object.entries(o)[0];i[r]=n}else i.tags=o;if(typeof l=="object"){let[r,n]=Object.entries(l)[0];i[r]=n}else i.link=l;i.parentBoundary=P,i.wrap=xt(),j=P,P=e,_t.push(j)},Xe=function(e,t,a,o,l){if(e===null||t===null)return;let i={};const s=V.find(r=>r.alias===e);if(s&&e===s.alias?i=s:(i.alias=e,V.push(i)),t==null?i.label={text:""}:i.label={text:t},a==null)i.type={text:"container"};else if(typeof a=="object"){let[r,n]=Object.entries(a)[0];i[r]={text:n}}else i.type={text:a};if(typeof o=="object"){let[r,n]=Object.entries(o)[0];i[r]=n}else i.tags=o;if(typeof l=="object"){let[r,n]=Object.entries(l)[0];i[r]=n}else i.link=l;i.parentBoundary=P,i.wrap=xt(),j=P,P=e,_t.push(j)},We=function(e,t,a,o,l,i,s,r){if(t===null||a===null)return;let n={};const h=V.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,V.push(n)),a==null?n.label={text:""}:n.label={text:a},o==null)n.type={text:"node"};else if(typeof o=="object"){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.type={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if(typeof s=="object"){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if(typeof r=="object"){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.nodeType=e,n.parentBoundary=P,n.wrap=xt(),j=P,P=t,_t.push(j)},Qe=function(){P=j,_t.pop(),j=_t.pop(),_t.push(j)},He=function(e,t,a,o,l,i,s,r,n,h,f){let d=U.find(p=>p.alias===t);if(!(d===void 0&&(d=V.find(p=>p.alias===t),d===void 0))){if(a!=null)if(typeof a=="object"){let[p,E]=Object.entries(a)[0];d[p]=E}else d.bgColor=a;if(o!=null)if(typeof o=="object"){let[p,E]=Object.entries(o)[0];d[p]=E}else d.fontColor=o;if(l!=null)if(typeof l=="object"){let[p,E]=Object.entries(l)[0];d[p]=E}else d.borderColor=l;if(i!=null)if(typeof i=="object"){let[p,E]=Object.entries(i)[0];d[p]=E}else d.shadowing=i;if(s!=null)if(typeof s=="object"){let[p,E]=Object.entries(s)[0];d[p]=E}else d.shape=s;if(r!=null)if(typeof r=="object"){let[p,E]=Object.entries(r)[0];d[p]=E}else d.sprite=r;if(n!=null)if(typeof n=="object"){let[p,E]=Object.entries(n)[0];d[p]=E}else d.techn=n;if(h!=null)if(typeof h=="object"){let[p,E]=Object.entries(h)[0];d[p]=E}else d.legendText=h;if(f!=null)if(typeof f=="object"){let[p,E]=Object.entries(f)[0];d[p]=E}else d.legendSprite=f}},qe=function(e,t,a,o,l,i,s){const r=St.find(n=>n.from===t&&n.to===a);if(r!==void 0){if(o!=null)if(typeof o=="object"){let[n,h]=Object.entries(o)[0];r[n]=h}else r.textColor=o;if(l!=null)if(typeof l=="object"){let[n,h]=Object.entries(l)[0];r[n]=h}else r.lineColor=l;if(i!=null)if(typeof i=="object"){let[n,h]=Object.entries(i)[0];r[n]=parseInt(h)}else r.offsetX=parseInt(i);if(s!=null)if(typeof s=="object"){let[n,h]=Object.entries(s)[0];r[n]=parseInt(h)}else r.offsetY=parseInt(s)}},Ge=function(e,t,a){let o=It,l=jt;if(typeof t=="object"){const i=Object.values(t)[0];o=parseInt(i)}else o=parseInt(t);if(typeof a=="object"){const i=Object.values(a)[0];l=parseInt(i)}else l=parseInt(a);o>=1&&(It=o),l>=1&&(jt=l)},Ke=function(){return It},Je=function(){return jt},Ze=function(){return P},$e=function(){return j},fe=function(e){return e==null?U:U.filter(t=>t.parentBoundary===e)},t0=function(e){return U.find(t=>t.alias===e)},e0=function(e){return Object.keys(fe(e))},pe=function(e){return e==null?V:V.filter(t=>t.parentBoundary===e)},i0=pe,n0=function(){return St},s0=function(){return te},a0=function(e){ee=e},xt=function(){return ee},r0=function(){U=[],V=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],j="",P="global",_t=[""],St=[],_t=[""],te="",ee=!1,It=4,jt=2},l0={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},o0={FILLED:0,OPEN:1},c0={LEFTOF:0,RIGHTOF:1,OVER:2},h0=function(e){te=ue(e,Dt())},Jt={addPersonOrSystem:Ue,addPersonOrSystemBoundary:ze,addContainer:Fe,addContainerBoundary:Xe,addComponent:Ve,addDeploymentNode:We,popBoundaryParseStack:Qe,addRel:je,updateElStyle:He,updateRelStyle:qe,updateLayoutConfig:Ge,autoWrap:xt,setWrap:a0,getC4ShapeArray:fe,getC4Shape:t0,getC4ShapeKeys:e0,getBoundaries:pe,getBoundarys:i0,getCurrentBoundaryParse:Ze,getParentBoundaryParse:$e,getRels:n0,getTitle:s0,getC4Type:Ye,getC4ShapeInRow:Ke,getC4BoundaryInRow:Je,setAccTitle:we,getAccTitle:Oe,getAccDescription:Te,setAccDescription:Re,getConfig:()=>Dt().c4,clear:r0,LINETYPE:l0,ARROWTYPE:o0,PLACEMENT:c0,setTitle:h0,setC4Type:Ie},ie=function(e,t){return Le(e,t)},ye=function(e,t,a,o,l,i){const s=e.append("image");s.attr("width",t),s.attr("height",a),s.attr("x",o),s.attr("y",l);let r=i.startsWith("data:image/png;base64")?i:Me.sanitizeUrl(i);s.attr("xlink:href",r)},u0=(e,t,a)=>{const o=e.append("g");let l=0;for(let i of t){let s=i.textColor?i.textColor:"#444444",r=i.lineColor?i.lineColor:"#444444",n=i.offsetX?parseInt(i.offsetX):0,h=i.offsetY?parseInt(i.offsetY):0,f="";if(l===0){let p=o.append("line");p.attr("x1",i.startPoint.x),p.attr("y1",i.startPoint.y),p.attr("x2",i.endPoint.x),p.attr("y2",i.endPoint.y),p.attr("stroke-width","1"),p.attr("stroke",r),p.style("fill","none"),i.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(i.type==="birel"||i.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)"),l=-1}else{let p=o.append("path");p.attr("fill","none").attr("stroke-width","1").attr("stroke",r).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",i.startPoint.x).replaceAll("starty",i.startPoint.y).replaceAll("controlx",i.startPoint.x+(i.endPoint.x-i.startPoint.x)/2-(i.endPoint.x-i.startPoint.x)/4).replaceAll("controly",i.startPoint.y+(i.endPoint.y-i.startPoint.y)/2).replaceAll("stopx",i.endPoint.x).replaceAll("stopy",i.endPoint.y)),i.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(i.type==="birel"||i.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)")}let d=a.messageFont();W(a)(i.label.text,o,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+n,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+h,i.label.width,i.label.height,{fill:s},d),i.techn&&i.techn.text!==""&&(d=a.messageFont(),W(a)("["+i.techn.text+"]",o,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+n,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+a.messageFontSize+5+h,Math.max(i.label.width,i.techn.width),i.techn.height,{fill:s,"font-style":"italic"},d))}},d0=function(e,t,a){const o=e.append("g");let l=t.bgColor?t.bgColor:"none",i=t.borderColor?t.borderColor:"#444444",s=t.fontColor?t.fontColor:"black",r={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(r={"stroke-width":1});let n={x:t.x,y:t.y,fill:l,stroke:i,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:r};ie(o,n);let h=a.boundaryFont();h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=s,W(a)(t.label.text,o,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},h),t.type&&t.type.text!==""&&(h=a.boundaryFont(),h.fontColor=s,W(a)(t.type.text,o,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},h)),t.descr&&t.descr.text!==""&&(h=a.boundaryFont(),h.fontSize=h.fontSize-2,h.fontColor=s,W(a)(t.descr.text,o,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},h))},f0=function(e,t,a){var o;let l=t.bgColor?t.bgColor:a[t.typeC4Shape.text+"_bg_color"],i=t.borderColor?t.borderColor:a[t.typeC4Shape.text+"_border_color"],s=t.fontColor?t.fontColor:"#FFFFFF",r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const n=e.append("g");n.attr("class","person-man");const h=Ne();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":h.x=t.x,h.y=t.y,h.fill=l,h.width=t.width,h.height=t.height,h.stroke=i,h.rx=2.5,h.ry=2.5,h.attrs={"stroke-width":.5},ie(n,h);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":n.append("path").attr("fill",l).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),n.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":n.append("path").attr("fill",l).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),n.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let f=v0(a,t.typeC4Shape.text);switch(n.append("text").attr("fill",s).attr("font-family",f.fontFamily).attr("font-size",f.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":ye(n,48,48,t.x+t.width/2-24,t.y+t.image.Y,r);break}let d=a[t.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=s,W(a)(t.label.text,n,t.x,t.y+t.label.Y,t.width,t.height,{fill:s},d),d=a[t.typeC4Shape.text+"Font"](),d.fontColor=s,t.techn&&((o=t.techn)==null?void 0:o.text)!==""?W(a)(t.techn.text,n,t.x,t.y+t.techn.Y,t.width,t.height,{fill:s,"font-style":"italic"},d):t.type&&t.type.text!==""&&W(a)(t.type.text,n,t.x,t.y+t.type.Y,t.width,t.height,{fill:s,"font-style":"italic"},d),t.descr&&t.descr.text!==""&&(d=a.personFont(),d.fontColor=s,W(a)(t.descr.text,n,t.x,t.y+t.descr.Y,t.width,t.height,{fill:s},d)),t.height},p0=function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},y0=function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},g0=function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},b0=function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},_0=function(e){e.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},x0=function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},m0=function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},E0=function(e){const a=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);a.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),a.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},v0=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),W=function(){function e(l,i,s,r,n,h,f){const d=i.append("text").attr("x",s+n/2).attr("y",r+h/2+5).style("text-anchor","middle").text(l);o(d,f)}function t(l,i,s,r,n,h,f,d){const{fontSize:p,fontFamily:E,fontWeight:O}=d,R=l.split(Kt.lineBreakRegex);for(let S=0;S<R.length;S++){const L=S*p-p*(R.length-1)/2,Y=i.append("text").attr("x",s+n/2).attr("y",r).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",p).style("font-weight",O).style("font-family",E);Y.append("tspan").attr("dy",L).text(R[S]).attr("alignment-baseline","mathematical"),o(Y,f)}}function a(l,i,s,r,n,h,f,d){const p=i.append("switch"),O=p.append("foreignObject").attr("x",s).attr("y",r).attr("width",n).attr("height",h).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");O.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(l),t(l,p,s,r,n,h,f,d),o(O,f)}function o(l,i){for(const s in i)i.hasOwnProperty(s)&&l.attr(s,i[s])}return function(l){return l.textPlacement==="fo"?a:l.textPlacement==="old"?e:t}}(),F={drawRect:ie,drawBoundary:d0,drawC4Shape:f0,drawRels:u0,drawImage:ye,insertArrowHead:b0,insertArrowEnd:_0,insertArrowFilledHead:x0,insertDynamicNumber:m0,insertArrowCrossHead:E0,insertDatabaseIcon:p0,insertComputerIcon:y0,insertClockIcon:g0};let Ut=0,Ft=0,ge=4,Zt=2;Yt.yy=Jt;let b={};class be{constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,$t(t.db.getConfig())}setData(t,a,o,l){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=a,this.nextData.starty=this.data.starty=o,this.nextData.stopy=this.data.stopy=l}updateVal(t,a,o,l){t[a]===void 0?t[a]=o:t[a]=l(o,t[a])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let a=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+t.margin*2,o=a+t.width,l=this.nextData.starty+t.margin*2,i=l+t.height;(a>=this.data.widthLimit||o>=this.data.widthLimit||this.nextData.cnt>ge)&&(a=this.nextData.startx+t.margin+b.nextLinePaddingX,l=this.nextData.stopy+t.margin*2,this.nextData.stopx=o=a+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=l+t.height,this.nextData.cnt=1),t.x=a,t.y=l,this.updateVal(this.data,"startx",a,Math.min),this.updateVal(this.data,"starty",l,Math.min),this.updateVal(this.data,"stopx",o,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",a,Math.min),this.updateVal(this.nextData,"starty",l,Math.min),this.updateVal(this.nextData,"stopx",o,Math.max),this.updateVal(this.nextData,"stopy",i,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},$t(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}}const $t=function(e){De(b,e),e.fontFamily&&(b.personFontFamily=b.systemFontFamily=b.messageFontFamily=e.fontFamily),e.fontSize&&(b.personFontSize=b.systemFontSize=b.messageFontSize=e.fontSize),e.fontWeight&&(b.personFontWeight=b.systemFontWeight=b.messageFontWeight=e.fontWeight)},Rt=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),Bt=e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),k0=e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight});function I(e,t,a,o,l){if(!t[e].width)if(a)t[e].text=Pe(t[e].text,l,o),t[e].textLines=t[e].text.split(Kt.lineBreakRegex).length,t[e].width=l,t[e].height=oe(t[e].text,o);else{let i=t[e].text.split(Kt.lineBreakRegex);t[e].textLines=i.length;let s=0;t[e].height=0,t[e].width=0;for(const r of i)t[e].width=Math.max(wt(r,o),t[e].width),s=oe(r,o),t[e].height=t[e].height+s}}const _e=function(e,t,a){t.x=a.data.startx,t.y=a.data.starty,t.width=a.data.stopx-a.data.startx,t.height=a.data.stopy-a.data.starty,t.label.y=b.c4ShapeMargin-35;let o=t.wrap&&b.wrap,l=Bt(b);l.fontSize=l.fontSize+2,l.fontWeight="bold";let i=wt(t.label.text,l);I("label",t,o,l,i),F.drawBoundary(e,t,b)},xe=function(e,t,a,o){let l=0;for(const i of o){l=0;const s=a[i];let r=Rt(b,s.typeC4Shape.text);switch(r.fontSize=r.fontSize-2,s.typeC4Shape.width=wt("«"+s.typeC4Shape.text+"»",r),s.typeC4Shape.height=r.fontSize+2,s.typeC4Shape.Y=b.c4ShapePadding,l=s.typeC4Shape.Y+s.typeC4Shape.height-4,s.image={width:0,height:0,Y:0},s.typeC4Shape.text){case"person":case"external_person":s.image.width=48,s.image.height=48,s.image.Y=l,l=s.image.Y+s.image.height;break}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=l,l=s.image.Y+s.image.height);let n=s.wrap&&b.wrap,h=b.width-b.c4ShapePadding*2,f=Rt(b,s.typeC4Shape.text);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",I("label",s,n,f,h),s.label.Y=l+8,l=s.label.Y+s.label.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let E=Rt(b,s.typeC4Shape.text);I("type",s,n,E,h),s.type.Y=l+5,l=s.type.Y+s.type.height}else if(s.techn&&s.techn.text!==""){s.techn.text="["+s.techn.text+"]";let E=Rt(b,s.techn.text);I("techn",s,n,E,h),s.techn.Y=l+5,l=s.techn.Y+s.techn.height}let d=l,p=s.label.width;if(s.descr&&s.descr.text!==""){let E=Rt(b,s.typeC4Shape.text);I("descr",s,n,E,h),s.descr.Y=l+20,l=s.descr.Y+s.descr.height,p=Math.max(s.label.width,s.descr.width),d=l-s.descr.textLines*5}p=p+b.c4ShapePadding,s.width=Math.max(s.width||b.width,p,b.width),s.height=Math.max(s.height||b.height,d,b.height),s.margin=s.margin||b.c4ShapeMargin,e.insert(s),F.drawC4Shape(t,s,b)}e.bumpLastMargin(b.c4ShapeMargin)};class B{constructor(t,a){this.x=t,this.y=a}}let ce=function(e,t){let a=e.x,o=e.y,l=t.x,i=t.y,s=a+e.width/2,r=o+e.height/2,n=Math.abs(a-l),h=Math.abs(o-i),f=h/n,d=e.height/e.width,p=null;return o==i&&a<l?p=new B(a+e.width,r):o==i&&a>l?p=new B(a,r):a==l&&o<i?p=new B(s,o+e.height):a==l&&o>i&&(p=new B(s,o)),a>l&&o<i?d>=f?p=new B(a,r+f*e.width/2):p=new B(s-n/h*e.height/2,o+e.height):a<l&&o<i?d>=f?p=new B(a+e.width,r+f*e.width/2):p=new B(s+n/h*e.height/2,o+e.height):a<l&&o>i?d>=f?p=new B(a+e.width,r-f*e.width/2):p=new B(s+e.height/2*n/h,o):a>l&&o>i&&(d>=f?p=new B(a,r-e.width/2*f):p=new B(s-e.height/2*n/h,o)),p},A0=function(e,t){let a={x:0,y:0};a.x=t.x+t.width/2,a.y=t.y+t.height/2;let o=ce(e,a);a.x=e.x+e.width/2,a.y=e.y+e.height/2;let l=ce(t,a);return{startPoint:o,endPoint:l}};const C0=function(e,t,a,o){let l=0;for(let i of t){l=l+1;let s=i.wrap&&b.wrap,r=k0(b);o.db.getC4Type()==="C4Dynamic"&&(i.label.text=l+": "+i.label.text);let h=wt(i.label.text,r);I("label",i,s,r,h),i.techn&&i.techn.text!==""&&(h=wt(i.techn.text,r),I("techn",i,s,r,h)),i.descr&&i.descr.text!==""&&(h=wt(i.descr.text,r),I("descr",i,s,r,h));let f=a(i.from),d=a(i.to),p=A0(f,d);i.startPoint=p.startPoint,i.endPoint=p.endPoint}F.drawRels(e,t,b)};function me(e,t,a,o,l){let i=new be(l);i.data.widthLimit=a.data.widthLimit/Math.min(Zt,o.length);for(let[s,r]of o.entries()){let n=0;r.image={width:0,height:0,Y:0},r.sprite&&(r.image.width=48,r.image.height=48,r.image.Y=n,n=r.image.Y+r.image.height);let h=r.wrap&&b.wrap,f=Bt(b);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",I("label",r,h,f,i.data.widthLimit),r.label.Y=n+8,n=r.label.Y+r.label.height,r.type&&r.type.text!==""){r.type.text="["+r.type.text+"]";let O=Bt(b);I("type",r,h,O,i.data.widthLimit),r.type.Y=n+5,n=r.type.Y+r.type.height}if(r.descr&&r.descr.text!==""){let O=Bt(b);O.fontSize=O.fontSize-2,I("descr",r,h,O,i.data.widthLimit),r.descr.Y=n+20,n=r.descr.Y+r.descr.height}if(s==0||s%Zt===0){let O=a.data.startx+b.diagramMarginX,R=a.data.stopy+b.diagramMarginY+n;i.setData(O,O,R,R)}else{let O=i.data.stopx!==i.data.startx?i.data.stopx+b.diagramMarginX:i.data.startx,R=i.data.starty;i.setData(O,O,R,R)}i.name=r.alias;let d=l.db.getC4ShapeArray(r.alias),p=l.db.getC4ShapeKeys(r.alias);p.length>0&&xe(i,e,d,p),t=r.alias;let E=l.db.getBoundarys(t);E.length>0&&me(e,t,i,E,l),r.alias!=="global"&&_e(e,r,i),a.data.stopy=Math.max(i.data.stopy+b.c4ShapeMargin,a.data.stopy),a.data.stopx=Math.max(i.data.stopx+b.c4ShapeMargin,a.data.stopx),Ut=Math.max(Ut,a.data.stopx),Ft=Math.max(Ft,a.data.stopy)}}const w0=function(e,t,a,o){b=Dt().c4;const l=Dt().securityLevel;let i;l==="sandbox"&&(i=Nt("#i"+t));const s=l==="sandbox"?Nt(i.nodes()[0].contentDocument.body):Nt("body");let r=o.db;o.db.setWrap(b.wrap),ge=r.getC4ShapeInRow(),Zt=r.getC4BoundaryInRow(),le.debug(`C:${JSON.stringify(b,null,2)}`);const n=l==="sandbox"?s.select(`[id="${t}"]`):Nt(`[id="${t}"]`);F.insertComputerIcon(n),F.insertDatabaseIcon(n),F.insertClockIcon(n);let h=new be(o);h.setData(b.diagramMarginX,b.diagramMarginX,b.diagramMarginY,b.diagramMarginY),h.data.widthLimit=screen.availWidth,Ut=b.diagramMarginX,Ft=b.diagramMarginY;const f=o.db.getTitle();let d=o.db.getBoundarys("");me(n,"",h,d,o),F.insertArrowHead(n),F.insertArrowEnd(n),F.insertArrowCrossHead(n),F.insertArrowFilledHead(n),C0(n,o.db.getRels(),o.db.getC4Shape,o),h.data.stopx=Ut,h.data.stopy=Ft;const p=h.data;let O=p.stopy-p.starty+2*b.diagramMarginY;const S=p.stopx-p.startx+2*b.diagramMarginX;f&&n.append("text").text(f).attr("x",(p.stopx-p.startx)/2-4*b.diagramMarginX).attr("y",p.starty+b.diagramMarginY),Se(n,O,S,b.useMaxWidth);const L=f?60:0;n.attr("viewBox",p.startx-b.diagramMarginX+" -"+(b.diagramMarginY+L)+" "+S+" "+(O+L)),le.debug("models:",p)},he={drawPersonOrSystemArray:xe,drawBoundary:_e,setConf:$t,draw:w0},O0=e=>`.person {
stroke: ${e.personBorder};
fill: ${e.personBkg};
}
`,T0=O0,N0={parser:Be,db:Jt,renderer:he,styles:T0,init:({c4:e,wrap:t})=>{he.setConf(e),Jt.setWrap(t)}};export{N0 as diagram};
.disable-view-transition[data-v-026ee359] *{view-transition-name:none!important}
import{c as _e,$ as se,h as H,i as Ee,l as S,E as ye,z as we,n as De}from"./slidev/Mermaid-sWhOKcCj.js";import{c as ve}from"./clone-d2e37f8c-kF1Uud7q.js";import{c as Ne}from"./channel-d3ac35ac-BF6w4Boq.js";import{i as ke,c as Ie,b as Oe,d as Te,a as he,p as ze}from"./edges-1e1ebc73-BF9aEHVZ.js";import{G as Ce}from"./graph-af3d5df6-B9Rrt_D8.js";import{o as Ae}from"./ordinal-475e0c0c-BmOJQ37o.js";import{d as Re}from"./Tableau10-31042135-CvOaoHrI.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./createText-f6615236-DY9JQ1lr.js";import"./line-65d70945-Bv9b7vLo.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";import"./init-cc95ec8e-Gi6I4Gst.js";var oe,le,ee=function(){var e=function(D,l,s,i){for(s=s||{},i=D.length;i--;s[D[i]]=l);return s},a=[1,7],d=[1,13],c=[1,14],n=[1,15],g=[1,19],o=[1,16],f=[1,17],b=[1,18],p=[8,30],x=[8,21,28,29,30,31,32,40,44,47],E=[1,23],T=[1,24],v=[8,15,16,21,28,29,30,31,32,40,44,47],N=[8,15,16,21,27,28,29,30,31,32,40,44,47],y=[1,49],L={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(l,s,i,u,h,t,m){var r=t.length-1;switch(h){case 4:u.getLogger().debug("Rule: separator (NL) ");break;case 5:u.getLogger().debug("Rule: separator (Space) ");break;case 6:u.getLogger().debug("Rule: separator (EOF) ");break;case 7:u.getLogger().debug("Rule: hierarchy: ",t[r-1]),u.setHierarchy(t[r-1]);break;case 8:u.getLogger().debug("Stop NL ");break;case 9:u.getLogger().debug("Stop EOF ");break;case 10:u.getLogger().debug("Stop NL2 ");break;case 11:u.getLogger().debug("Stop EOF2 ");break;case 12:u.getLogger().debug("Rule: statement: ",t[r]),typeof t[r].length=="number"?this.$=t[r]:this.$=[t[r]];break;case 13:u.getLogger().debug("Rule: statement #2: ",t[r-1]),this.$=[t[r-1]].concat(t[r]);break;case 14:u.getLogger().debug("Rule: link: ",t[r],l),this.$={edgeTypeStr:t[r],label:""};break;case 15:u.getLogger().debug("Rule: LABEL link: ",t[r-3],t[r-1],t[r]),this.$={edgeTypeStr:t[r],label:t[r-1]};break;case 18:const R=parseInt(t[r]),Y=u.generateId();this.$={id:Y,type:"space",label:"",width:R,children:[]};break;case 23:u.getLogger().debug("Rule: (nodeStatement link node) ",t[r-2],t[r-1],t[r]," typestr: ",t[r-1].edgeTypeStr);const F=u.edgeStrToEdgeData(t[r-1].edgeTypeStr);this.$=[{id:t[r-2].id,label:t[r-2].label,type:t[r-2].type,directions:t[r-2].directions},{id:t[r-2].id+"-"+t[r].id,start:t[r-2].id,end:t[r].id,label:t[r-1].label,type:"edge",directions:t[r].directions,arrowTypeEnd:F,arrowTypeStart:"arrow_open"},{id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions}];break;case 24:u.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[r-1],t[r]),this.$={id:t[r-1].id,label:t[r-1].label,type:u.typeStr2Type(t[r-1].typeStr),directions:t[r-1].directions,widthInColumns:parseInt(t[r],10)};break;case 25:u.getLogger().debug("Rule: nodeStatement (node) ",t[r]),this.$={id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions,widthInColumns:1};break;case 26:u.getLogger().debug("APA123",this?this:"na"),u.getLogger().debug("COLUMNS: ",t[r]),this.$={type:"column-setting",columns:t[r]==="auto"?-1:parseInt(t[r])};break;case 27:u.getLogger().debug("Rule: id-block statement : ",t[r-2],t[r-1]),u.generateId(),this.$={...t[r-2],type:"composite",children:t[r-1]};break;case 28:u.getLogger().debug("Rule: blockStatement : ",t[r-2],t[r-1],t[r]);const C=u.generateId();this.$={id:C,type:"composite",label:"",children:t[r-1]};break;case 29:u.getLogger().debug("Rule: node (NODE_ID separator): ",t[r]),this.$={id:t[r]};break;case 30:u.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[r-1],t[r]),this.$={id:t[r-1],label:t[r].label,typeStr:t[r].typeStr,directions:t[r].directions};break;case 31:u.getLogger().debug("Rule: dirList: ",t[r]),this.$=[t[r]];break;case 32:u.getLogger().debug("Rule: dirList: ",t[r-1],t[r]),this.$=[t[r-1]].concat(t[r]);break;case 33:u.getLogger().debug("Rule: nodeShapeNLabel: ",t[r-2],t[r-1],t[r]),this.$={typeStr:t[r-2]+t[r],label:t[r-1]};break;case 34:u.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[r-3],t[r-2]," #3:",t[r-1],t[r]),this.$={typeStr:t[r-3]+t[r],label:t[r-2],directions:t[r-1]};break;case 35:case 36:this.$={type:"classDef",id:t[r-1].trim(),css:t[r].trim()};break;case 37:this.$={type:"applyClass",id:t[r-1].trim(),styleClass:t[r].trim()};break;case 38:this.$={type:"applyStyles",id:t[r-1].trim(),stylesStr:t[r].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{8:[1,20]},e(p,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:a,28:d,29:c,31:n,32:g,40:o,44:f,47:b}),e(x,[2,16],{14:22,15:E,16:T}),e(x,[2,17]),e(x,[2,18]),e(x,[2,19]),e(x,[2,20]),e(x,[2,21]),e(x,[2,22]),e(v,[2,25],{27:[1,25]}),e(x,[2,26]),{19:26,26:12,32:g},{11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(N,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(p,[2,13]),{26:35,32:g},{32:[2,14]},{17:[1,36]},e(v,[2,24]),{11:37,13:4,14:22,15:E,16:T,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(N,[2,30]),{18:[1,43]},{18:[1,44]},e(v,[2,23]),{18:[1,45]},{30:[1,46]},e(x,[2,28]),e(x,[2,35]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),{37:[1,47]},{34:48,35:y},{15:[1,50]},e(x,[2,27]),e(N,[2,33]),{39:[1,51]},{34:52,35:y,39:[2,31]},{32:[2,15]},e(N,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(l,s){if(s.recoverable)this.trace(l);else{var i=new Error(l);throw i.hash=s,i}},parse:function(l){var s=this,i=[0],u=[],h=[null],t=[],m=this.table,r="",R=0,Y=0,F=2,C=1,Se=t.slice.call(arguments,1),w=Object.create(this.lexer),K={yy:{}};for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z)&&(K.yy[Z]=this.yy[Z]);w.setInput(l,K.yy),K.yy.lexer=w,K.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var J=w.yylloc;t.push(J);var Le=w.options&&w.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var P;return P=u.pop()||w.lex()||C,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}for(var I,M,z,Q,W={},X,B,ae,G;;){if(M=i[i.length-1],this.defaultActions[M]?z=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=me()),z=m[M]&&m[M][I]),typeof z>"u"||!z.length||!z[0]){var $="";G=[];for(X in m[M])this.terminals_[X]&&X>F&&G.push("'"+this.terminals_[X]+"'");w.showPosition?$="Parse error on line "+(R+1)+`:
`+w.showPosition()+`
Expecting `+G.join(", ")+", got '"+(this.terminals_[I]||I)+"'":$="Parse error on line "+(R+1)+": Unexpected "+(I==C?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError($,{text:w.match,token:this.terminals_[I]||I,line:w.yylineno,loc:J,expected:G})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+I);switch(z[0]){case 1:i.push(I),h.push(w.yytext),t.push(w.yylloc),i.push(z[1]),I=null,Y=w.yyleng,r=w.yytext,R=w.yylineno,J=w.yylloc;break;case 2:if(B=this.productions_[z[1]][1],W.$=h[h.length-B],W._$={first_line:t[t.length-(B||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(B||1)].first_column,last_column:t[t.length-1].last_column},Le&&(W._$.range=[t[t.length-(B||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(W,[r,Y,R,K.yy,z[1],h,t].concat(Se)),typeof Q<"u")return Q;B&&(i=i.slice(0,-1*B*2),h=h.slice(0,-1*B),t=t.slice(0,-1*B)),i.push(this.productions_[z[1]][0]),h.push(W.$),t.push(W._$),ae=m[i[i.length-2]][i[i.length-1]],i.push(ae);break;case 3:return!0}}return!0}},A=function(){var D={EOF:1,parseError:function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},setInput:function(l,s){return this.yy=s||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var s=l.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},unput:function(l){var s=l.length,i=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var h=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===u.length?this.yylloc.first_column:0)+u[u.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(l){this.unput(this.match.slice(l))},pastInput:function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var l=this.pastInput(),s=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
`+s+"^"},test_match:function(l,s){var i,u,h;if(this.options.backtrack_lexer&&(h={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(h.yylloc.range=this.yylloc.range.slice(0))),u=l[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],i=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var t in h)this[t]=h[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,s,i,u;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),t=0;t<h.length;t++)if(i=this._input.match(this.rules[h[t]]),i&&(!s||i[0].length>s[0].length)){if(s=i,u=t,this.options.backtrack_lexer){if(l=this.test_match(i,h[t]),l!==!1)return l;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(l=this.test_match(s,h[u]),l!==!1?l:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return s||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(s,i,u,h){switch(u){case 0:return 10;case 1:return s.getLogger().debug("Found space-block"),31;case 2:return s.getLogger().debug("Found nl-block"),31;case 3:return s.getLogger().debug("Found space-block"),29;case 4:s.getLogger().debug(".",i.yytext);break;case 5:s.getLogger().debug("_",i.yytext);break;case 6:return 5;case 7:return i.yytext=-1,28;case 8:return i.yytext=i.yytext.replace(/columns\s+/,""),s.getLogger().debug("COLUMNS (LEX)",i.yytext),28;case 9:this.pushState("md_string");break;case 10:return"MD_STR";case 11:this.popState();break;case 12:this.pushState("string");break;case 13:s.getLogger().debug("LEX: POPPING STR:",i.yytext),this.popState();break;case 14:return s.getLogger().debug("LEX: STR end:",i.yytext),"STR";case 15:return i.yytext=i.yytext.replace(/space\:/,""),s.getLogger().debug("SPACE NUM (LEX)",i.yytext),21;case 16:return i.yytext="1",s.getLogger().debug("COLUMNS (LEX)",i.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),s.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),s.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),s.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),s.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),s.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),s.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),s.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),s.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),s.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),s.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return s.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return s.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return s.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return s.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 60:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 61:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 62:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 63:return s.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return s.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 65:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 66:return this.pushState("NODE"),36;case 67:return this.pushState("NODE"),36;case 68:return this.pushState("NODE"),36;case 69:return this.pushState("NODE"),36;case 70:return this.pushState("NODE"),36;case 71:return this.pushState("NODE"),36;case 72:return this.pushState("NODE"),36;case 73:return s.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),s.getLogger().debug("LEX ARR START"),38;case 75:return s.getLogger().debug("Lex: NODE_ID",i.yytext),32;case 76:return s.getLogger().debug("Lex: EOF",i.yytext),8;case 77:this.pushState("md_string");break;case 78:this.pushState("md_string");break;case 79:return"NODE_DESCR";case 80:this.popState();break;case 81:s.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:s.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return s.getLogger().debug("LEX: NODE_DESCR:",i.yytext),"NODE_DESCR";case 84:s.getLogger().debug("LEX POPPING"),this.popState();break;case 85:s.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (right): dir:",i.yytext),"DIR";case 87:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (left):",i.yytext),"DIR";case 88:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (x):",i.yytext),"DIR";case 89:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (y):",i.yytext),"DIR";case 90:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (up):",i.yytext),"DIR";case 91:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (down):",i.yytext),"DIR";case 92:return i.yytext="]>",s.getLogger().debug("Lex (ARROW_DIR end):",i.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return s.getLogger().debug("Lex: LINK","#"+i.yytext+"#"),15;case 94:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 95:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 96:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 97:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 98:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 99:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 100:this.pushState("md_string");break;case 101:return s.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),s.getLogger().debug("Lex: LINK","#"+i.yytext+"#"),15;case 103:return this.popState(),s.getLogger().debug("Lex: LINK",i.yytext),15;case 104:return this.popState(),s.getLogger().debug("Lex: LINK",i.yytext),15;case 105:return s.getLogger().debug("Lex: COLON",i.yytext),i.yytext=i.yytext.slice(1),27}},rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}};return D}();L.lexer=A;function k(){this.yy={}}return k.prototype=L,L.Parser=k,new k}();ee.parser=ee;const Be=ee;let O={},ie=[],V={};const ce="color",ue="fill",Pe="bgFill",ge=",";let j={};const Fe=function(e,a=""){j[e]===void 0&&(j[e]={id:e,styles:[],textStyles:[]});const d=j[e];a!=null&&a.split(ge).forEach(c=>{const n=c.replace(/([^;]*);/,"$1").trim();if(c.match(ce)){const o=n.replace(ue,Pe).replace(ce,ue);d.textStyles.push(o)}d.styles.push(n)})},Ke=function(e,a=""){const d=O[e];a!=null&&(d.styles=a.split(ge))},Me=function(e,a){e.split(",").forEach(function(d){let c=O[d];if(c===void 0){const n=d.trim();O[n]={id:n,type:"na",children:[]},c=O[n]}c.classes||(c.classes=[]),c.classes.push(a)})},pe=(e,a)=>{const d=e.flat(),c=[];for(const n of d){if(n.type==="classDef"){Fe(n.id,n.css);continue}if(n.type==="applyClass"){Me(n.id,(n==null?void 0:n.styleClass)||"");continue}if(n.type==="applyStyles"){n!=null&&n.stylesStr&&Ke(n.id,n==null?void 0:n.stylesStr);continue}if(n.type==="column-setting")a.columns=n.columns||-1;else if(n.type==="edge")V[n.id]?V[n.id]++:V[n.id]=1,n.id=V[n.id]+"-"+n.id,ie.push(n);else{n.label||(n.type==="composite"?n.label="":n.label=n.id);const g=!O[n.id];if(g?O[n.id]=n:(n.type!=="na"&&(O[n.id].type=n.type),n.label!==n.id&&(O[n.id].label=n.label)),n.children&&pe(n.children,n),n.type==="space"){const o=n.width||1;for(let f=0;f<o;f++){const b=ve(n);b.id=b.id+"-"+f,O[b.id]=b,c.push(b)}}else g&&c.push(n)}}a.children=c};let re=[],U={id:"root",type:"composite",children:[],columns:-1};const Ye=()=>{S.debug("Clear called"),ye(),U={id:"root",type:"composite",children:[],columns:-1},O={root:U},re=[],j={},ie=[],V={}};function We(e){switch(S.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return S.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function Ve(e){switch(S.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}function je(e){switch(e.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}let de=0;const Ue=()=>(de++,"id-"+Math.random().toString(36).substr(2,12)+"-"+de),Xe=e=>{U.children=e,pe(e,U),re=U.children},Ge=e=>{const a=O[e];return a?a.columns?a.columns:a.children?a.children.length:-1:-1},He=()=>[...Object.values(O)],qe=()=>re||[],Ze=()=>ie,Je=e=>O[e],Qe=e=>{O[e.id]=e},$e=()=>console,et=function(){return j},tt={getConfig:()=>se().block,typeStr2Type:We,edgeTypeStr2Type:Ve,edgeStrToEdgeData:je,getLogger:$e,getBlocksFlat:He,getBlocks:qe,getEdges:Ze,setHierarchy:Xe,getBlock:Je,setBlock:Qe,getColumns:Ge,getClasses:et,clear:Ye,generateId:Ue},st=tt,q=(e,a)=>{const d=Ne,c=d(e,"r"),n=d(e,"g"),g=d(e,"b");return we(c,n,g,a)},it=e=>`.label {
font-family: ${e.fontFamily};
color: ${e.nodeTextColor||e.textColor};
}
.cluster-label text {
fill: ${e.titleColor};
}
.cluster-label span,p {
color: ${e.titleColor};
}
.label text,span,p {
fill: ${e.nodeTextColor||e.textColor};
color: ${e.nodeTextColor||e.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${e.mainBkg};
stroke: ${e.nodeBorder};
stroke-width: 1px;
}
.flowchart-label text {
text-anchor: middle;
}
// .flowchart-label .text-outer-tspan {
// text-anchor: middle;
// }
// .flowchart-label .text-inner-tspan {
// text-anchor: start;
// }
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${e.arrowheadColor};
}
.edgePath .path {
stroke: ${e.lineColor};
stroke-width: 2.0px;
}
.flowchart-link {
stroke: ${e.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${e.edgeLabelBackground};
rect {
opacity: 0.5;
background-color: ${e.edgeLabelBackground};
fill: ${e.edgeLabelBackground};
}
text-align: center;
}
/* For html labels only */
.labelBkg {
background-color: ${q(e.edgeLabelBackground,.5)};
// background-color:
}
.node .cluster {
// fill: ${q(e.mainBkg,.5)};
fill: ${q(e.clusterBkg,.5)};
stroke: ${q(e.clusterBorder,.2)};
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
stroke-width: 1px;
}
.cluster text {
fill: ${e.titleColor};
}
.cluster span,p {
color: ${e.titleColor};
}
/* .cluster div {
color: ${e.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${e.fontFamily};
font-size: 12px;
background: ${e.tertiaryColor};
border: 1px solid ${e.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${e.textColor};
}
`,rt=it;function fe(e,a,d=!1){var c,n,g;const o=e;let f="default";(((c=o==null?void 0:o.classes)==null?void 0:c.length)||0)>0&&(f=((o==null?void 0:o.classes)||[]).join(" ")),f=f+" flowchart-label";let b=0,p="",x;switch(o.type){case"round":b=5,p="rect";break;case"composite":b=0,p="composite",x=0;break;case"square":p="rect";break;case"diamond":p="question";break;case"hexagon":p="hexagon";break;case"block_arrow":p="block_arrow";break;case"odd":p="rect_left_inv_arrow";break;case"lean_right":p="lean_right";break;case"lean_left":p="lean_left";break;case"trapezoid":p="trapezoid";break;case"inv_trapezoid":p="inv_trapezoid";break;case"rect_left_inv_arrow":p="rect_left_inv_arrow";break;case"circle":p="circle";break;case"ellipse":p="ellipse";break;case"stadium":p="stadium";break;case"subroutine":p="subroutine";break;case"cylinder":p="cylinder";break;case"group":p="rect";break;case"doublecircle":p="doublecircle";break;default:p="rect"}const E=De((o==null?void 0:o.styles)||[]),T=o.label,v=o.size||{width:0,height:0,x:0,y:0};return{labelStyle:E.labelStyle,shape:p,labelText:T,rx:b,ry:b,class:f,style:E.style,id:o.id,directions:o.directions,width:v.width,height:v.height,x:v.x,y:v.y,positioned:d,intersect:void 0,type:o.type,padding:x??(((g=(n=se())==null?void 0:n.block)==null?void 0:g.padding)||0)}}async function nt(e,a,d){const c=fe(a,d,!1);if(c.type==="group")return;const n=await he(e,c),g=n.node().getBBox(),o=d.getBlock(c.id);o.size={width:g.width,height:g.height,x:0,y:0,node:n},d.setBlock(o),n.remove()}async function at(e,a,d){const c=fe(a,d,!0);d.getBlock(c.id).type!=="space"&&(await he(e,c),a.intersect=c==null?void 0:c.intersect,ze(c))}async function ne(e,a,d,c){for(const n of a)await c(e,n,d),n.children&&await ne(e,n.children,d,c)}async function ot(e,a,d){await ne(e,a,d,nt)}async function lt(e,a,d){await ne(e,a,d,at)}async function ct(e,a,d,c,n){const g=new Ce({multigraph:!0,compound:!0});g.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const o of d)o.size&&g.setNode(o.id,{width:o.size.width,height:o.size.height,intersect:o.intersect});for(const o of a)if(o.start&&o.end){const f=c.getBlock(o.start),b=c.getBlock(o.end);if(f!=null&&f.size&&(b!=null&&b.size)){const p=f.size,x=b.size,E=[{x:p.x,y:p.y},{x:p.x+(x.x-p.x)/2,y:p.y+(x.y-p.y)/2},{x:x.x,y:x.y}];await Ie(e,{v:o.start,w:o.end,name:o.id},{...o,arrowTypeEnd:o.arrowTypeEnd,arrowTypeStart:o.arrowTypeStart,points:E,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",g,n),o.label&&(await Oe(e,{...o,label:o.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:o.arrowTypeEnd,arrowTypeStart:o.arrowTypeStart,points:E,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),await Te({...o,x:E[1].x,y:E[1].y},{originalPath:E}))}}}const _=((le=(oe=_e())==null?void 0:oe.block)==null?void 0:le.padding)||8;function ut(e,a){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(a<0||!Number.isInteger(a))throw new Error("Position must be a non-negative integer."+a);if(e<0)return{px:a,py:0};if(e===1)return{px:0,py:a};const d=a%e,c=Math.floor(a/e);return{px:d,py:c}}const dt=e=>{let a=0,d=0;for(const c of e.children){const{width:n,height:g,x:o,y:f}=c.size||{width:0,height:0,x:0,y:0};S.debug("getMaxChildSize abc95 child:",c.id,"width:",n,"height:",g,"x:",o,"y:",f,c.type),c.type!=="space"&&(n>a&&(a=n/(e.widthInColumns||1)),g>d&&(d=g))}return{width:a,height:d}};function te(e,a,d=0,c=0){var n,g,o,f,b,p,x,E,T,v,N;S.debug("setBlockSizes abc95 (start)",e.id,(n=e==null?void 0:e.size)==null?void 0:n.x,"block width =",e==null?void 0:e.size,"sieblingWidth",d),(g=e==null?void 0:e.size)!=null&&g.width||(e.size={width:d,height:c,x:0,y:0});let y=0,L=0;if(((o=e.children)==null?void 0:o.length)>0){for(const h of e.children)te(h,a);const A=dt(e);y=A.width,L=A.height,S.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",y,L);for(const h of e.children)h.size&&(S.debug(`abc95 Setting size of children of ${e.id} id=${h.id} ${y} ${L} ${h.size}`),h.size.width=y*(h.widthInColumns||1)+_*((h.widthInColumns||1)-1),h.size.height=L,h.size.x=0,h.size.y=0,S.debug(`abc95 updating size of ${e.id} children child:${h.id} maxWidth:${y} maxHeight:${L}`));for(const h of e.children)te(h,a,y,L);const k=e.columns||-1;let D=0;for(const h of e.children)D+=h.widthInColumns||1;let l=e.children.length;k>0&&k<D&&(l=k),e.widthInColumns;const s=Math.ceil(D/l);let i=l*(y+_)+_,u=s*(L+_)+_;if(i<d){S.debug(`Detected to small siebling: abc95 ${e.id} sieblingWidth ${d} sieblingHeight ${c} width ${i}`),i=d,u=c;const h=(d-l*_-_)/l,t=(c-s*_-_)/s;S.debug("Size indata abc88",e.id,"childWidth",h,"maxWidth",y),S.debug("Size indata abc88",e.id,"childHeight",t,"maxHeight",L),S.debug("Size indata abc88 xSize",l,"padding",_);for(const m of e.children)m.size&&(m.size.width=h,m.size.height=t,m.size.x=0,m.size.y=0)}if(S.debug(`abc95 (finale calc) ${e.id} xSize ${l} ySize ${s} columns ${k}${e.children.length} width=${Math.max(i,((f=e.size)==null?void 0:f.width)||0)}`),i<(((b=e==null?void 0:e.size)==null?void 0:b.width)||0)){i=((p=e==null?void 0:e.size)==null?void 0:p.width)||0;const h=k>0?Math.min(e.children.length,k):e.children.length;if(h>0){const t=(i-h*_-_)/h;S.debug("abc95 (growing to fit) width",e.id,i,(x=e.size)==null?void 0:x.width,t);for(const m of e.children)m.size&&(m.size.width=t)}}e.size={width:i,height:u,x:0,y:0}}S.debug("setBlockSizes abc94 (done)",e.id,(E=e==null?void 0:e.size)==null?void 0:E.x,(T=e==null?void 0:e.size)==null?void 0:T.width,(v=e==null?void 0:e.size)==null?void 0:v.y,(N=e==null?void 0:e.size)==null?void 0:N.height)}function be(e,a){var d,c,n,g,o,f,b,p,x,E,T,v,N,y,L,A,k;S.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(d=e==null?void 0:e.size)==null?void 0:d.x} y: ${(c=e==null?void 0:e.size)==null?void 0:c.y} width: ${(n=e==null?void 0:e.size)==null?void 0:n.width}`);const D=e.columns||-1;if(S.debug("layoutBlocks columns abc95",e.id,"=>",D,e),e.children&&e.children.length>0){const l=((o=(g=e==null?void 0:e.children[0])==null?void 0:g.size)==null?void 0:o.width)||0,s=e.children.length*l+(e.children.length-1)*_;S.debug("widthOfChildren 88",s,"posX");let i=0;S.debug("abc91 block?.size?.x",e.id,(f=e==null?void 0:e.size)==null?void 0:f.x);let u=(b=e==null?void 0:e.size)!=null&&b.x?((p=e==null?void 0:e.size)==null?void 0:p.x)+(-((x=e==null?void 0:e.size)==null?void 0:x.width)/2||0):-_,h=0;for(const t of e.children){const m=e;if(!t.size)continue;const{width:r,height:R}=t.size,{px:Y,py:F}=ut(D,i);if(F!=h&&(h=F,u=(E=e==null?void 0:e.size)!=null&&E.x?((T=e==null?void 0:e.size)==null?void 0:T.x)+(-((v=e==null?void 0:e.size)==null?void 0:v.width)/2||0):-_,S.debug("New row in layout for block",e.id," and child ",t.id,h)),S.debug(`abc89 layout blocks (child) id: ${t.id} Pos: ${i} (px, py) ${Y},${F} (${(N=m==null?void 0:m.size)==null?void 0:N.x},${(y=m==null?void 0:m.size)==null?void 0:y.y}) parent: ${m.id} width: ${r}${_}`),m.size){const C=r/2;t.size.x=u+_+C,S.debug(`abc91 layout blocks (calc) px, pyid:${t.id} startingPos=X${u} new startingPosX${t.size.x} ${C} padding=${_} width=${r} halfWidth=${C} => x:${t.size.x} y:${t.size.y} ${t.widthInColumns} (width * (child?.w || 1)) / 2 ${r*((t==null?void 0:t.widthInColumns)||1)/2}`),u=t.size.x+C,t.size.y=m.size.y-m.size.height/2+F*(R+_)+R/2+_,S.debug(`abc88 layout blocks (calc) px, pyid:${t.id}startingPosX${u}${_}${C}=>x:${t.size.x}y:${t.size.y}${t.widthInColumns}(width * (child?.w || 1)) / 2${r*((t==null?void 0:t.widthInColumns)||1)/2}`)}t.children&&be(t),i+=(t==null?void 0:t.widthInColumns)||1,S.debug("abc88 columnsPos",t,i)}}S.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${(L=e==null?void 0:e.size)==null?void 0:L.x} y: ${(A=e==null?void 0:e.size)==null?void 0:A.y} width: ${(k=e==null?void 0:e.size)==null?void 0:k.width}`)}function xe(e,{minX:a,minY:d,maxX:c,maxY:n}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:g,y:o,width:f,height:b}=e.size;g-f/2<a&&(a=g-f/2),o-b/2<d&&(d=o-b/2),g+f/2>c&&(c=g+f/2),o+b/2>n&&(n=o+b/2)}if(e.children)for(const g of e.children)({minX:a,minY:d,maxX:c,maxY:n}=xe(g,{minX:a,minY:d,maxX:c,maxY:n}));return{minX:a,minY:d,maxX:c,maxY:n}}function ht(e){const a=e.getBlock("root");if(!a)return;te(a,e,0,0),be(a),S.debug("getBlocks",JSON.stringify(a,null,2));const{minX:d,minY:c,maxX:n,maxY:g}=xe(a),o=g-c,f=n-d;return{x:d,y:c,width:f,height:o}}const gt=function(e,a){return a.db.getClasses()},pt=async function(e,a,d,c){const{securityLevel:n,block:g}=se(),o=c.db;let f;n==="sandbox"&&(f=H("#i"+a));const b=n==="sandbox"?H(f.nodes()[0].contentDocument.body):H("body"),p=n==="sandbox"?b.select(`[id="${a}"]`):H(`[id="${a}"]`);ke(p,["point","circle","cross"],c.type,a);const E=o.getBlocks(),T=o.getBlocksFlat(),v=o.getEdges(),N=p.insert("g").attr("class","block");await ot(N,E,o);const y=ht(o);if(await lt(N,E,o),await ct(N,v,T,o,a),y){const L=y,A=Math.max(1,Math.round(.125*(L.width/L.height))),k=L.height+A+10,D=L.width+10,{useMaxWidth:l}=g;Ee(p,k,D,!!l),S.debug("Here Bounds",y,L),p.attr("viewBox",`${L.x-5} ${L.y-5} ${L.width+10} ${L.height+10}`)}Ae(Re)},ft={draw:pt,getClasses:gt},zt={parser:Be,db:st,renderer:ft,styles:rt};export{zt as diagram};
function t(r){return typeof r=="object"&&"length"in r?r:Array.from(r)}export{t as a};
import{w as ln,c as S}from"./path-39bad7e2-CbwjOpE9.js";import{aW as an,aX as j,aY as w,aZ as rn,a_ as y,Y as on,a$ as C,b0 as _,b1 as un,b2 as t,b3 as sn,b4 as tn,b5 as fn}from"./slidev/Mermaid-sWhOKcCj.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function mn(l){return l.endAngle}function pn(l){return l&&l.padAngle}function dn(l,h,q,Y,v,A,W,a){var D=q-l,i=Y-h,n=W-v,m=a-A,r=m*D-n*i;if(!(r*r<y))return r=(n*(h-A)-m*(l-v))/r,[l+r*D,h+r*i]}function L(l,h,q,Y,v,A,W){var a=l-q,D=h-Y,i=(W?A:-A)/C(a*a+D*D),n=i*D,m=-i*a,r=l+n,s=h+m,f=q+n,c=Y+m,X=(r+f)/2,o=(s+c)/2,p=f-r,g=c-s,R=p*p+g*g,T=v-A,b=r*c-f*s,E=(g<0?-1:1)*C(fn(0,T*T*R-b*b)),I=(b*g-p*E)/R,O=(-b*p-g*E)/R,P=(b*g+p*E)/R,d=(-b*p+g*E)/R,x=I-X,e=O-o,u=P-X,Z=d-o;return x*x+e*e>u*u+Z*Z&&(I=P,O=d),{cx:I,cy:O,x01:-n,y01:-m,x11:I*(v/T-1),y11:O*(v/T-1)}}function vn(){var l=cn,h=yn,q=S(0),Y=null,v=gn,A=mn,W=pn,a=null,D=ln(i);function i(){var n,m,r=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-rn,c=A.apply(this,arguments)-rn,X=un(c-f),o=c>f;if(a||(a=n=D()),s<r&&(m=s,s=r,r=m),!(s>y))a.moveTo(0,0);else if(X>on-y)a.moveTo(s*j(f),s*w(f)),a.arc(0,0,s,f,c,!o),r>y&&(a.moveTo(r*j(c),r*w(c)),a.arc(0,0,r,c,f,o));else{var p=f,g=c,R=f,T=c,b=X,E=X,I=W.apply(this,arguments)/2,O=I>y&&(Y?+Y.apply(this,arguments):C(r*r+s*s)),P=_(un(s-r)/2,+q.apply(this,arguments)),d=P,x=P,e,u;if(O>y){var Z=sn(O/r*w(I)),F=sn(O/s*w(I));(b-=Z*2)>y?(Z*=o?1:-1,R+=Z,T-=Z):(b=0,R=T=(f+c)/2),(E-=F*2)>y?(F*=o?1:-1,p+=F,g-=F):(E=0,p=g=(f+c)/2)}var z=s*j(p),B=s*w(p),G=r*j(T),H=r*w(T);if(P>y){var J=s*j(g),K=s*w(g),M=r*j(R),N=r*w(R),$;if(X<an)if($=dn(z,B,M,N,J,K,G,H)){var Q=z-$[0],U=B-$[1],V=J-$[0],k=K-$[1],nn=1/w(tn((Q*V+U*k)/(C(Q*Q+U*U)*C(V*V+k*k)))/2),en=C($[0]*$[0]+$[1]*$[1]);d=_(P,(r-en)/(nn-1)),x=_(P,(s-en)/(nn+1))}else d=x=0}E>y?x>y?(e=L(M,N,z,B,s,x,o),u=L(J,K,G,H,s,x,o),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<P?a.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(u.y01,u.x01),!o):(a.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(e.y11,e.x11),!o),a.arc(0,0,s,t(e.cy+e.y11,e.cx+e.x11),t(u.cy+u.y11,u.cx+u.x11),!o),a.arc(u.cx,u.cy,x,t(u.y11,u.x11),t(u.y01,u.x01),!o))):(a.moveTo(z,B),a.arc(0,0,s,p,g,!o)):a.moveTo(z,B),!(r>y)||!(b>y)?a.lineTo(G,H):d>y?(e=L(G,H,J,K,r,-d,o),u=L(z,B,M,N,r,-d,o),a.lineTo(e.cx+e.x01,e.cy+e.y01),d<P?a.arc(e.cx,e.cy,d,t(e.y01,e.x01),t(u.y01,u.x01),!o):(a.arc(e.cx,e.cy,d,t(e.y01,e.x01),t(e.y11,e.x11),!o),a.arc(0,0,r,t(e.cy+e.y11,e.cx+e.x11),t(u.cy+u.y11,u.cx+u.x11),o),a.arc(u.cx,u.cy,d,t(u.y11,u.x11),t(u.y01,u.x01),!o))):a.arc(0,0,r,T,R,o)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,m=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-an/2;return[j(m)*n,w(m)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:S(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:S(+n),i):h},i.cornerRadius=function(n){return arguments.length?(q=typeof n=="function"?n:S(+n),i):q},i.padRadius=function(n){return arguments.length?(Y=n==null?null:typeof n=="function"?n:S(+n),i):Y},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:S(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:S(+n),i):A},i.padAngle=function(n){return arguments.length?(W=typeof n=="function"?n:S(+n),i):W},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{vn as d};
function o(e){for(var c=e.length/6|0,n=new Array(c),a=0;a<c;)n[a]="#"+e.slice(a*6,++a*6);return n}const r=o("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");export{r as d};
#slide-container{position:relative;break-after:page;overflow:hidden}#slide-content{position:relative;position:absolute;left:50%;top:50%;overflow:hidden;--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark #slide-content{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.select-list[data-v-3f89fa11]{padding-top:.5rem;padding-bottom:.5rem}.item[data-v-3f89fa11]{display:flex;cursor:default;white-space:nowrap;border-radius:.25rem;padding:.25rem 1rem}.item svg[data-v-3f89fa11]{margin-top:auto;margin-bottom:auto;margin-right:.25rem;margin-left:-.5rem}.item[data-v-3f89fa11]:hover{--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity));--un-bg-opacity:.1}.title[data-v-3f89fa11]{padding:.25rem 1.75rem;font-size:.75rem;line-height:1rem;letter-spacing:.1em;text-transform:uppercase;opacity:.5}.autocomplete-list[data-v-f5ee02a7]{margin-top:.25rem;--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity));overflow:auto;max-height:calc(100vh - 100px)}.dark .autocomplete-list[data-v-f5ee02a7]{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.autocomplete[data-v-f5ee02a7]{cursor:pointer}#slideshow[data-v-afb4231e]{height:100%}#slideshow>div[data-v-afb4231e]{position:absolute;height:100%;width:100%}
.slidev-note :first-child{margin-top:0}
.v-popper--theme-menu .v-popper__arrow-inner{border-color:#9ca3af33}
.two-cols-header[data-v-1401df1d]{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}.col-header[data-v-1401df1d]{grid-area:1 / 1 / 2 / 3}.col-left[data-v-1401df1d]{grid-area:2 / 1 / 3 / 2}.col-right[data-v-1401df1d]{grid-area:2 / 2 / 3 / 3}.col-bottom[data-v-1401df1d]{align-self:end;grid-area:3 / 1 / 3 / 3}
/slides/fosdem2024/* /slides/fosdem2024/index.html 200
<!DOCTYPE html>
<html lang="en">
<head>
<title>Nix for genetics</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Avenir+Next:wght@200;400;600&family=Nunito+Sans:wght@200;400;600&family=Fira+Code:wght@200;400;600&display=swap" type="text/css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Avenir+Next:wght@200;400;600&family=Nunito+Sans:wght@200;400;600&family=Fira+Code:wght@200;400;600&display=swap" type="text/css">
<script type="module" crossorigin src="/slides/fosdem2024/assets/index-DENYuTHS.js"></script>
<link rel="modulepreload" crossorigin href="/slides/fosdem2024/assets/modules/vue-O-XuQLLR.js">
<link rel="modulepreload" crossorigin href="/slides/fosdem2024/assets/modules/shiki-CBnMlxcT.js">
<link rel="stylesheet" crossorigin href="/slides/fosdem2024/assets/modules/shiki-BSchMNmt.css">
<link rel="stylesheet" crossorigin href="/slides/fosdem2024/assets/index-BAThGyva.css">
</head>
<body>
<div id="app"></div>
<div id="mermaid-rendering-container"></div>
<div id="app"></div>
<div id="mermaid-rendering-container"></div>
</body>
</html>
import{bd as zt,be as ot,ba as wt,b9 as Ft,ap as Nt,aq as Xt,aT as Yt,aU as St,ar as Ht,as as $t,aV as Ut,ay as Ct,b8 as qt,az as jt,au as Gt}from"./index-Hfn5l4aw.js";import{c as Qt}from"./createText-77e212b0-L6d34XR_.js";import{i as Kt}from"./init-cc95ec8e-Hi12RPRh.js";import{o as Zt}from"./ordinal-475e0c0c-Beet9Qdq.js";import{l as ft}from"./linear-ad2a9be7-2u7jZYmT.js";import{l as pt}from"./line-b015ae81-MIcjsH1n.js";import"./array-b7dcf730-Nw74a44z.js";import"./path-39bad7e2-aUcfwwLI.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s<n;)o[s]=e+s*i;return o}function st(){var e=Zt().unknown(void 0),t=e.domain,i=e.range,s=0,n=1,o,c,f=!1,d=0,R=0,_=.5;delete e.unknown;function A(){var m=t().length,T=n<s,S=T?n:s,P=T?s:n;o=(P-S)/Math.max(1,m-d+R*2),f&&(o=Math.floor(o)),S+=(P-S-o*(m-d))*_,c=o*(1-d),f&&(S=Math.round(S),c=Math.round(c));var p=Jt(m).map(function(C){return S+o*C});return i(T?p.reverse():p)}return e.domain=function(m){return arguments.length?(t(m),A()):t()},e.range=function(m){return arguments.length?([s,n]=m,s=+s,n=+n,A()):[s,n]},e.rangeRound=function(m){return[s,n]=m,s=+s,n=+n,f=!0,A()},e.bandwidth=function(){return c},e.step=function(){return o},e.round=function(m){return arguments.length?(f=!!m,A()):f},e.padding=function(m){return arguments.length?(d=Math.min(1,R=+m),A()):d},e.paddingInner=function(m){return arguments.length?(d=Math.min(1,m),A()):d},e.paddingOuter=function(m){return arguments.length?(R=+m,A()):R},e.align=function(m){return arguments.length?(_=Math.max(0,Math.min(1,m)),A()):_},e.copy=function(){return st(t(),[s,n]).round(f).paddingInner(d).paddingOuter(R).align(_)},Kt.apply(A(),arguments)}var nt=function(){var e=function(V,r,l,u){for(l=l||{},u=V.length;u--;l[V[u]]=r);return l},t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],o=[1,6],c=[1,7],f=[1,5,10,12,14,16,18,19,21,23,34,35,36],d=[1,25],R=[1,26],_=[1,28],A=[1,29],m=[1,30],T=[1,31],S=[1,32],P=[1,33],p=[1,34],C=[1,35],h=[1,36],L=[1,37],z=[1,43],lt=[1,42],ct=[1,47],$=[1,50],w=[1,10,12,14,16,18,19,21,23,34,35,36],Q=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],v=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],ut=[1,64],K={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(r,l,u,g,b,a,F){var x=a.length-1;switch(b){case 5:g.setOrientation(a[x]);break;case 9:g.setDiagramTitle(a[x].text.trim());break;case 12:g.setLineData({text:"",type:"text"},a[x]);break;case 13:g.setLineData(a[x-1],a[x]);break;case 14:g.setBarData({text:"",type:"text"},a[x]);break;case 15:g.setBarData(a[x-1],a[x]);break;case 16:this.$=a[x].trim(),g.setAccTitle(this.$);break;case 17:case 18:this.$=a[x].trim(),g.setAccDescription(this.$);break;case 19:this.$=a[x-1];break;case 20:this.$=[Number(a[x-2]),...a[x]];break;case 21:this.$=[Number(a[x])];break;case 22:g.setXAxisTitle(a[x]);break;case 23:g.setXAxisTitle(a[x-1]);break;case 24:g.setXAxisTitle({type:"text",text:""});break;case 25:g.setXAxisBand(a[x]);break;case 26:g.setXAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 27:this.$=a[x-1];break;case 28:this.$=[a[x-2],...a[x]];break;case 29:this.$=[a[x]];break;case 30:g.setYAxisTitle(a[x]);break;case 31:g.setYAxisTitle(a[x-1]);break;case 32:g.setYAxisTitle({type:"text",text:""});break;case 33:g.setYAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 37:this.$={text:a[x],type:"text"};break;case 38:this.$={text:a[x],type:"text"};break;case 39:this.$={text:a[x],type:"markdown"};break;case 40:this.$=a[x];break;case 41:this.$=a[x-1]+""+a[x];break}},table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:o,36:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:o,36:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:o,36:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(f,[2,34]),e(f,[2,35]),e(f,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:o,36:c}),{1:[2,3]},e(f,[2,5]),e(t,[2,7],{4:22,34:n,35:o,36:c}),{11:23,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:p,48:C,49:h,50:L},{11:39,13:38,24:z,27:lt,29:40,30:41,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:p,48:C,49:h,50:L},{11:45,15:44,27:ct,33:46,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:p,48:C,49:h,50:L},{11:49,17:48,24:$,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:p,48:C,49:h,50:L},{11:52,17:51,24:$,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:p,48:C,49:h,50:L},{20:[1,53]},{22:[1,54]},e(w,[2,18]),{1:[2,2]},e(w,[2,8]),e(w,[2,9]),e(Q,[2,37],{40:55,41:_,42:A,43:m,44:T,45:S,46:P,47:p,48:C,49:h,50:L}),e(Q,[2,38]),e(Q,[2,39]),e(v,[2,40]),e(v,[2,42]),e(v,[2,43]),e(v,[2,44]),e(v,[2,45]),e(v,[2,46]),e(v,[2,47]),e(v,[2,48]),e(v,[2,49]),e(v,[2,50]),e(v,[2,51]),e(w,[2,10]),e(w,[2,22],{30:41,29:56,24:z,27:lt}),e(w,[2,24]),e(w,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:p,48:C,49:h,50:L},e(w,[2,11]),e(w,[2,30],{33:60,27:ct}),e(w,[2,32]),{31:[1,61]},e(w,[2,12]),{17:62,24:$},{25:63,27:ut},e(w,[2,14]),{17:65,24:$},e(w,[2,16]),e(w,[2,17]),e(v,[2,41]),e(w,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(w,[2,31]),{27:[1,69]},e(w,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(w,[2,15]),e(w,[2,26]),e(w,[2,27]),{11:59,32:72,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:p,48:C,49:h,50:L},e(w,[2,33]),e(w,[2,19]),{25:73,27:ut},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(r,l){if(l.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=l,u}},parse:function(r){var l=this,u=[0],g=[],b=[null],a=[],F=this.table,x="",U=0,gt=0,Vt=2,xt=1,Bt=a.slice.call(arguments,1),k=Object.create(this.lexer),B={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(B.yy[J]=this.yy[J]);k.setInput(r,B.yy),B.yy.lexer=k,B.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Wt=k.options&&k.options.ranges;typeof B.yy.parseError=="function"?this.parseError=B.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,W,E,it,O={},q,M,dt,j;;){if(W=u[u.length-1],this.defaultActions[W]?E=this.defaultActions[W]:((D===null||typeof D>"u")&&(D=Ot()),E=F[W]&&F[W][D]),typeof E>"u"||!E.length||!E[0]){var et="";j=[];for(q in F[W])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`:
`+k.showPosition()+`
Expecting `+j.join(", ")+", got '"+(this.terminals_[D]||D)+"'":et="Parse error on line "+(U+1)+": Unexpected "+(D==xt?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(et,{text:k.match,token:this.terminals_[D]||D,line:k.yylineno,loc:tt,expected:j})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+D);switch(E[0]){case 1:u.push(D),b.push(k.yytext),a.push(k.yylloc),u.push(E[1]),D=null,gt=k.yyleng,x=k.yytext,U=k.yylineno,tt=k.yylloc;break;case 2:if(M=this.productions_[E[1]][1],O.$=b[b.length-M],O._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},Wt&&(O._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),it=this.performAction.apply(O,[x,gt,U,B.yy,E[1],b,a].concat(Bt)),typeof it<"u")return it;M&&(u=u.slice(0,-1*M*2),b=b.slice(0,-1*M),a=a.slice(0,-1*M)),u.push(this.productions_[E[1]][0]),b.push(O.$),a.push(O._$),dt=F[u[u.length-2]][u[u.length-1]],u.push(dt);break;case 3:return!0}}return!0}},It=function(){var V={EOF:1,parseError:function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},setInput:function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var l=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===g.length?this.yylloc.first_column:0)+g[g.length-u.length].length-u[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
`+l+"^"},test_match:function(r,l){var u,g,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),g=r[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],u=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var a in b)this[a]=b[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,l,u,g;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),a=0;a<b.length;a++)if(u=this._input.match(this.rules[b[a]]),u&&(!l||u[0].length>l[0].length)){if(l=u,g=a,this.options.backtrack_lexer){if(r=this.test_match(u,b[a]),r!==!1)return r;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(r=this.test_match(l,b[g]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var l=this.next();return l||this.lex()},begin:function(l){this.conditionStack.push(l)},popState:function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},pushState:function(l){this.begin(l)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(l,u,g,b){switch(g){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";case 17:return this.pushState("axis_data"),"Y_AXIS";case 18:return this.pushState("axis_band_data"),24;case 19:return 31;case 20:return this.pushState("data"),16;case 21:return this.pushState("data"),18;case 22:return this.pushState("data_inner"),24;case 23:return 27;case 24:return this.popState(),26;case 25:this.popState();break;case 26:this.pushState("string");break;case 27:this.popState();break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 43:break;case 44:return 35;case 45:return 36}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}};return V}();K.lexer=It;function Z(){this.yy={}}return Z.prototype=K,K.Parser=Z,new Z}();nt.parser=nt;const ti=nt;function mt(e){return e.type==="bar"}function _t(e){return e.type==="band"}function N(e){return e.type==="linear"}class kt{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((o,c)=>Math.max(c.length,o),0)*i,height:i};const s={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const o of t){const c=Qt(n,1,o),f=c?c.width:o.length*i,d=c?c.height:i;s.width=Math.max(s.width,f),s.height=Math.max(s.height,d)}return n.remove(),s}}const yt=.7,bt=.2;class Rt{constructor(t,i,s,n){this.axisConfig=t,this.title=i,this.textDimensionCalculator=s,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){yt*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(yt*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=bt*t.width;this.outerPadding=Math.min(s.width/2,n);const o=s.height+this.axisConfig.labelPadding*2;this.labelTextHeight=s.height,o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=bt*t.height;this.outerPadding=Math.min(s.height/2,n);const o=s.width+this.axisConfig.labelPadding*2;o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${i},${this.getScaleValue(s)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(s)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}}class ii extends Rt{constructor(t,i,s,n,o){super(t,n,o,i),this.categories=s,this.scale=st().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=st().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),Ct.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)||this.getRange()[0]}}class ei extends Rt{constructor(t,i,s,n,o){super(t,n,o,i),this.domain=s,this.scale=ft().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=ft().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}}function At(e,t,i,s){const n=new kt(s);return _t(e)?new ii(t,i,e.categories,e.title,n):new ei(t,i,[e.min,e.max],e.title,n)}class si{constructor(t,i,s,n){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(i.width,t.width),n=i.height+2*this.chartConfig.titlePadding;return i.width<=s&&i.height<=n&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=n,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}}function ni(e,t,i,s){const n=new kt(s);return new si(n,e,t,i)}class ai{constructor(t,i,s,n,o){this.plotData=t,this.xAxis=i,this.yAxis=s,this.orientation=n,this.plotIndex=o}getDrawableElement(){const t=this.plotData.data.map(s=>[this.xAxis.getScaleValue(s[0]),this.yAxis.getScaleValue(s[1])]);let i;return this.orientation==="horizontal"?i=pt().y(s=>s[0]).x(s=>s[1])(t):i=pt().x(s=>s[0]).y(s=>s[1])(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}}class oi{constructor(t,i,s,n,o,c){this.barData=t,this.boundingRect=i,this.xAxis=s,this.yAxis=n,this.orientation=o,this.plotIndex=c}getDrawableElement(){const t=this.barData.data.map(o=>[this.xAxis.getScaleValue(o[0]),this.yAxis.getScaleValue(o[1])]),s=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),n=s/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:this.boundingRect.x,y:o[0]-n,height:s,width:o[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:o[0]-n,y:o[1],width:s,height:this.boundingRect.y+this.boundingRect.height-o[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}}class ri{constructor(t,i,s){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[i,s]of this.chartData.plots.entries())switch(s.type){case"line":{const n=new ai(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break;case"bar":{const n=new oi(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break}return t}}function hi(e,t,i){return new ri(e,t,i)}class li{constructor(t,i,s,n){this.chartConfig=t,this.chartData=i,this.componentStore={title:ni(t,i,s,n),plot:hi(t,i,s),xAxis:At(i.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},n),yAxis:At(i.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},n)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),c=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),f=this.componentStore.plot.calculateSpace({width:o,height:c});t-=f.width,i-=f.height,f=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),n=f.height,i-=f.height,this.componentStore.xAxis.setAxisPosition("bottom"),f=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=f.height,this.componentStore.yAxis.setAxisPosition("left"),f=this.componentStore.yAxis.calculateSpace({width:t,height:i}),s=f.width,t-=f.width,t>0&&(o+=t,t=0),i>0&&(c+=i,i=0),this.componentStore.plot.calculateSpace({width:o,height:c}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.xAxis.setRange([s,s+o]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:n+c}),this.componentStore.yAxis.setRange([n,n+c]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(d=>mt(d))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizonatalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=0,c=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),f=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),d=this.componentStore.plot.calculateSpace({width:c,height:f});t-=d.width,i-=d.height,d=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=d.height,i-=d.height,this.componentStore.xAxis.setAxisPosition("left"),d=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=d.width,n=d.width,this.componentStore.yAxis.setAxisPosition("top"),d=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=d.height,o=s+d.height,t>0&&(c+=t,t=0),i>0&&(f+=i,i=0),this.componentStore.plot.calculateSpace({width:c,height:f}),this.componentStore.plot.setBoundingBoxXY({x:n,y:o}),this.componentStore.yAxis.setRange([n,n+c]),this.componentStore.yAxis.setBoundingBoxXY({x:n,y:s}),this.componentStore.xAxis.setRange([o,o+f]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some(R=>mt(R))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizonatalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}}class ci{static build(t,i,s,n){return new li(t,i,s,n).getDrawableElement()}}let X=0,Tt,Y=Pt(),H=Dt(),y=Lt(),at=H.plotColorPalette.split(",").map(e=>e.trim()),G=!1,rt=!1;function Dt(){const e=zt(),t=ot();return wt(e.xyChart,t.themeVariables.xyChart)}function Pt(){const e=ot();return wt(Ft.xyChart,e.xyChart)}function Lt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function ht(e){const t=ot();return Gt(e.trim(),t)}function ui(e){Tt=e}function gi(e){e==="horizontal"?Y.chartOrientation="horizontal":Y.chartOrientation="vertical"}function xi(e){y.xAxis.title=ht(e.text)}function vt(e,t){y.xAxis={type:"linear",title:y.xAxis.title,min:e,max:t},G=!0}function di(e){y.xAxis={type:"band",title:y.xAxis.title,categories:e.map(t=>ht(t.text))},G=!0}function fi(e){y.yAxis.title=ht(e.text)}function pi(e,t){y.yAxis={type:"linear",title:y.yAxis.title,min:e,max:t},rt=!0}function mi(e){const t=Math.min(...e),i=Math.max(...e),s=N(y.yAxis)?y.yAxis.min:1/0,n=N(y.yAxis)?y.yAxis.max:-1/0;y.yAxis={type:"linear",title:y.yAxis.title,min:Math.min(s,t),max:Math.max(n,i)}}function Et(e){let t=[];if(e.length===0)return t;if(!G){const i=N(y.xAxis)?y.xAxis.min:1/0,s=N(y.xAxis)?y.xAxis.max:-1/0;vt(Math.min(i,1),Math.max(s,e.length))}if(rt||mi(e),_t(y.xAxis)&&(t=y.xAxis.categories.map((i,s)=>[i,e[s]])),N(y.xAxis)){const i=y.xAxis.min,s=y.xAxis.max,n=(s-i+1)/e.length,o=[];for(let c=i;c<=s;c+=n)o.push(`${c}`);t=o.map((c,f)=>[c,e[f]])}return t}function Mt(e){return at[e===0?0:e%at.length]}function yi(e,t){const i=Et(t);y.plots.push({type:"line",strokeFill:Mt(X),strokeWidth:2,data:i}),X++}function bi(e,t){const i=Et(t);y.plots.push({type:"bar",fill:Mt(X),data:i}),X++}function Ai(){if(y.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return y.title=St(),ci.build(Y,y,H,Tt)}function wi(){return H}function Si(){return Y}const Ci=function(){Ut(),X=0,Y=Pt(),y=Lt(),H=Dt(),at=H.plotColorPalette.split(",").map(e=>e.trim()),G=!1,rt=!1},_i={getDrawableElem:Ai,clear:Ci,setAccTitle:Nt,getAccTitle:Xt,setDiagramTitle:Yt,getDiagramTitle:St,getAccDescription:Ht,setAccDescription:$t,setOrientation:gi,setXAxisTitle:xi,setXAxisRangeData:vt,setXAxisBand:di,setYAxisTitle:fi,setYAxisRangeData:pi,setLineData:yi,setBarData:bi,setTmpSVGG:ui,getChartThemeConfig:wi,getChartConfig:Si},ki=(e,t,i,s)=>{const n=s.db,o=n.getChartThemeConfig(),c=n.getChartConfig();function f(p){return p==="top"?"text-before-edge":"middle"}function d(p){return p==="left"?"start":p==="right"?"end":"middle"}function R(p){return`translate(${p.x}, ${p.y}) rotate(${p.rotation||0})`}Ct.debug(`Rendering xychart chart
`+e);const _=qt(t),A=_.append("g").attr("class","main"),m=A.append("rect").attr("width",c.width).attr("height",c.height).attr("class","background");jt(_,c.height,c.width,!0),_.attr("viewBox",`0 0 ${c.width} ${c.height}`),m.attr("fill",o.backgroundColor),n.setTmpSVGG(_.append("g").attr("class","mermaid-tmp-group"));const T=n.getDrawableElem(),S={};function P(p){let C=A,h="";for(const[L]of p.entries()){let z=A;L>0&&S[h]&&(z=S[h]),h+=p[L],C=S[h],C||(C=S[h]=z.append("g").attr("class",p[L]))}return C}for(const p of T){if(p.data.length===0)continue;const C=P(p.groupTexts);switch(p.type){case"rect":C.selectAll("rect").data(p.data).enter().append("rect").attr("x",h=>h.x).attr("y",h=>h.y).attr("width",h=>h.width).attr("height",h=>h.height).attr("fill",h=>h.fill).attr("stroke",h=>h.strokeFill).attr("stroke-width",h=>h.strokeWidth);break;case"text":C.selectAll("text").data(p.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",h=>h.fill).attr("font-size",h=>h.fontSize).attr("dominant-baseline",h=>f(h.verticalPos)).attr("text-anchor",h=>d(h.horizontalPos)).attr("transform",h=>R(h)).text(h=>h.text);break;case"path":C.selectAll("path").data(p.data).enter().append("path").attr("d",h=>h.path).attr("fill",h=>h.fill?h.fill:"none").attr("stroke",h=>h.strokeFill).attr("stroke-width",h=>h.strokeWidth);break}}},Ri={draw:ki},Vi={parser:ti,db:_i,renderer:Ri};export{Vi as diagram};
import{c2 as o,aD as i}from"./index-Hfn5l4aw.js";const c=(s,t)=>{const r=s.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.rx!==void 0&&r.attr("rx",t.rx),t.ry!==void 0&&r.attr("ry",t.ry),t.attrs!==void 0)for(const e in t.attrs)r.attr(e,t.attrs[e]);return t.class!==void 0&&r.attr("class",t.class),r},x=(s,t)=>{const r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};c(s,r).lower()},d=(s,t)=>{const r=t.text.replace(o," "),e=s.append("text");e.attr("x",t.x),e.attr("y",t.y),e.attr("class","legend"),e.style("text-anchor",t.anchor),t.class!==void 0&&e.attr("class",t.class);const n=e.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(r),e},h=(s,t,r,e)=>{const n=s.append("image");n.attr("x",t),n.attr("y",r);const a=i(e);n.attr("xlink:href",a)},y=(s,t,r,e)=>{const n=s.append("use");n.attr("x",t),n.attr("y",r);const a=i(e);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),p=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,y as b,h as c,c as d,p as e,d as f,g};
import{G as R}from"./layout-94e1e85f-BAM45a7u.js";import{aE as N,ay as y,aF as V,at as $,aB as G,aG as C,aH as E,ax as _,aK as q,aI as F,aL as D,aM as H,aN as U,aO as j,aP as K,aQ as Q,aR as W,aS as X}from"./index-Hfn5l4aw.js";import{r as J}from"./index-20c9cf41-l8R8WdfM.js";function Y(e){return typeof e=="string"?new D([document.querySelectorAll(e)],[document.documentElement]):new D([U(e)],H)}const Z=(e,l)=>W.lang.round(X.parse(e)[l]),O=Z;function be(e,l){return!!e.children(l).length}function fe(e){return L(e.v)+":"+L(e.w)+":"+L(e.name)}var ee=/:/g;function L(e){return e?String(e).replace(ee,"\\:"):""}function te(e,l){l&&e.attr("style",l)}function ue(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function we(e,l){var c=l.graph();if(K(c)){var a=c.transition;if(Q(a))return a(e)}return e}function re(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}te(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const z={},le=function(e){const l=Object.keys(e);for(const c of l)z[c]=e[c]},P=function(e,l,c,a,i,d){const u=a.select(`[id="${c}"]`);Object.keys(e).forEach(function(p){const r=e[p];let g="default";r.classes.length>0&&(g=r.classes.join(" ")),g=g+" flowchart-label";const w=N(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(y.info("vertex",r,r.labelType),r.labelType==="markdown")y.info("vertex",r,r.labelType);else if(V($().flowchart.htmlLabels)){const m={label:t.replace(/fa[blrs]?:fa-[\w-]+/g,k=>`<i class='${k.replace(":"," ")}'></i>`)};s=re(u,m).node(),s.parentNode.removeChild(s)}else{const m=i.createElementNS("http://www.w3.org/2000/svg","text");m.setAttribute("style",w.labelStyle.replace("color:","fill:"));const k=t.split(G.lineBreakRegex);for(const T of k){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=T,m.appendChild(v)}s=m}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}l.setNode(r.id,{labelStyle:w.labelStyle,shape:o,labelText:t,labelType:r.labelType,rx:b,ry:b,class:g,style:w.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:$().flowchart.padding}),y.info("setNode",{labelStyle:w.labelStyle,labelType:r.labelType,shape:o,labelText:t,rx:b,ry:b,class:g,style:w.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:$().flowchart.padding})})},M=function(e,l,c){y.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=N(e.defaultStyle);d=n.style,u=n.labelStyle}e.forEach(function(n){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,y.info("abc78 new entry",p,i[p])):(i[p]++,y.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];y.info("abc78 new link id to be used is",p,r,i[p]);const g="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=N(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=C(n.interpolate,E):e.defaultInterpolate!==void 0?t.curve=C(e.defaultInterpolate,E):t.curve=C(z.curve,E),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=n.text.replace(G.lineBreakRegex,`
`),n.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=r,t.classes="flowchart-link "+g+" "+w,l.setEdge(n.start,n.end,t,a)})},ae=function(e,l){return l.db.getClasses()},oe=async function(e,l,c,a){y.info("Drawing flowchart");let i=a.db.getDirection();i===void 0&&(i="TD");const{securityLevel:d,flowchart:u}=$(),n=u.nodeSpacing||50,p=u.rankSpacing||50;let r;d==="sandbox"&&(r=_("#i"+l));const g=d==="sandbox"?_(r.nodes()[0].contentDocument.body):_("body"),w=d==="sandbox"?r.nodes()[0].contentDocument:document,t=new R({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:n,ranksep:p,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let s;const b=a.db.getSubGraphs();y.info("Subgraphs - ",b);for(let f=b.length-1;f>=0;f--)s=b[f],y.info("Subgraph - ",s),a.db.addVertex(s.id,{text:s.title,type:s.labelType},"group",void 0,s.classes,s.dir);const o=a.db.getVertices(),m=a.db.getEdges();y.info("Edges",m);let k=0;for(k=b.length-1;k>=0;k--){s=b[k],Y("cluster").append("text");for(let f=0;f<s.nodes.length;f++)y.info("Setting up subgraphs",s.nodes[f],s.id),t.setParent(s.nodes[f],s.id)}P(o,t,l,g,w,a),M(m,t);const T=g.select(`[id="${l}"]`),v=g.select("#"+l+" g");if(await J(v,t,["point","circle","cross"],"flowchart",l),q.insertTitle(T,"flowchartTitleText",u.titleTopMargin,a.db.getDiagramTitle()),F(t,T,u.diagramPadding,u.useMaxWidth),a.db.indexNodes("subGraph"+k),!u.htmlLabels){const f=w.querySelectorAll('[id="'+l+'"] .edgeLabel .label');for(const x of f){const S=x.getBBox(),h=w.createElementNS("http://www.w3.org/2000/svg","rect");h.setAttribute("rx",0),h.setAttribute("ry",0),h.setAttribute("width",S.width),h.setAttribute("height",S.height),x.insertBefore(h,x.firstChild)}}Object.keys(o).forEach(function(f){const x=o[f];if(x.link){const S=_("#"+l+' [id="'+f+'"]');if(S){const h=w.createElementNS("http://www.w3.org/2000/svg","a");h.setAttributeNS("http://www.w3.org/2000/svg","class",x.classes.join(" ")),h.setAttributeNS("http://www.w3.org/2000/svg","href",x.link),h.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),d==="sandbox"?h.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):x.linkTarget&&h.setAttributeNS("http://www.w3.org/2000/svg","target",x.linkTarget);const A=S.insert(function(){return h},":first-child"),B=S.select(".label-container");B&&A.append(function(){return B.node()});const I=S.select(".label");I&&A.append(function(){return I.node()})}}})},he={setConf:le,addVertices:P,addEdges:M,getClasses:ae,draw:oe},ne=(e,l)=>{const c=O,a=c(e,"r"),i=c(e,"g"),d=c(e,"b");return j(a,i,d,l)},se=e=>`.label {
font-family: ${e.fontFamily};
color: ${e.nodeTextColor||e.textColor};
}
.cluster-label text {
fill: ${e.titleColor};
}
.cluster-label span,p {
color: ${e.titleColor};
}
.label text,span,p {
fill: ${e.nodeTextColor||e.textColor};
color: ${e.nodeTextColor||e.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${e.mainBkg};
stroke: ${e.nodeBorder};
stroke-width: 1px;
}
.flowchart-label text {
text-anchor: middle;
}
// .flowchart-label .text-outer-tspan {
// text-anchor: middle;
// }
// .flowchart-label .text-inner-tspan {
// text-anchor: start;
// }
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${e.arrowheadColor};
}
.edgePath .path {
stroke: ${e.lineColor};
stroke-width: 2.0px;
}
.flowchart-link {
stroke: ${e.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${e.edgeLabelBackground};
rect {
opacity: 0.5;
background-color: ${e.edgeLabelBackground};
fill: ${e.edgeLabelBackground};
}
text-align: center;
}
/* For html labels only */
.labelBkg {
background-color: ${ne(e.edgeLabelBackground,.5)};
// background-color:
}
.cluster rect {
fill: ${e.clusterBkg};
stroke: ${e.clusterBorder};
stroke-width: 1px;
}
.cluster text {
fill: ${e.titleColor};
}
.cluster span,p {
color: ${e.titleColor};
}
/* .cluster div {
color: ${e.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${e.fontFamily};
font-size: 12px;
background: ${e.tertiaryColor};
border: 1px solid ${e.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${e.textColor};
}
`,ye=se;export{ye as a,re as b,te as c,we as d,fe as e,he as f,ue as g,be as i,Y as s};
import{p as J,d as B,s as Q,D as H,a as X,S as Z,b as F,c as I}from"./styles-275f40ca-02prN6vb.js";import{G as tt}from"./layout-94e1e85f-BAM45a7u.js";import{ay as E,at as g,ax as x,aK as et,az as ot,aB as w}from"./index-Hfn5l4aw.js";import{r as st}from"./index-20c9cf41-l8R8WdfM.js";import"./edges-9f0d1f4d-OJsHViVb.js";import"./createText-77e212b0-L6d34XR_.js";import"./line-b015ae81-MIcjsH1n.js";import"./array-b7dcf730-Nw74a44z.js";import"./path-39bad7e2-aUcfwwLI.js";const h="rect",C="rectWithTitle",nt="start",ct="end",it="divider",rt="roundedWithTitle",at="note",lt="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,U="transition",St="note",Tt="note-edge",pt=`${U} ${Tt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,V="parent",Y="note",At="state",N="----",ht=`${N}${Y}`,M=`${N}${V}`,z="fill:none",W="fill: #333",m="c",K="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",c=N){const i=e!==null&&e.length>0?`${c}${e}`:"";return`${At}-${t}${i}-${n}`}const A=(t,n,e,c,i,r)=>{const o=e.id,u=$t(c[o]);if(o!=="root"){let T=h;e.start===!0&&(T=nt),e.start===!1&&(T=ct),e.type!==H&&(T=e.type),y[o]||(y[o]={id:o,shape:T,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(E.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===X?it:rt,s.classes=s.classes+" "+Dt+" "+(r?ft:""));const p={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,d),type:s.type,padding:15};if(p.centerLabel=!0,e.note){const a={labelStyle:"",shape:at,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,Y),type:s.type,padding:15},l={labelStyle:"",shape:lt,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,d,V),type:"group",padding:0};d++;const D=o+M;t.setNode(D,l),t.setNode(a.id,a),t.setNode(o,p),t.setParent(o,D),t.setParent(a.id,D);let S=o,b=a.id;e.note.position==="left of"&&(S=a.id,b=o),t.setEdge(S,b,{arrowhead:"none",arrowType:"",style:z,labelStyle:"",classes:pt,arrowheadStyle:W,labelpos:m,labelType:K,thickness:q})}else t.setNode(o,p)}n&&n.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(E.trace("Adding nodes children "),xt(t,e,e.doc,c,i,!r))},xt=(t,n,e,c,i,r)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,c,i,r);break;case H:A(t,n,o,c,i,r);break;case Z:{A(t,n,o.state1,c,i,r),A(t,n,o.state2,c,i,r);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:z,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:W,labelpos:m,labelType:K,thickness:q,classes:U};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let c=0;c<t.doc.length;c++){const i=t.doc[c];i.stmt==="dir"&&(e=i.value)}return e},Ct=async function(t,n,e,c){E.info("Drawing state diagram (v2)",n),y={},c.db.getDirection();const{securityLevel:i,state:r}=g(),o=r.nodeSpacing||50,u=r.rankSpacing||50;E.info(c.db.getRootDocV2()),c.db.extract(c.db.getRootDocV2()),E.info(c.db.getRootDocV2());const T=c.db.getStates(),s=new tt({multigraph:!0,compound:!0}).setGraph({rankdir:G(c.db.getRootDocV2()),nodesep:o,ranksep:u,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});A(s,void 0,c.db.getRootDocV2(),T,c.db,!0);let p;i==="sandbox"&&(p=x("#i"+n));const a=i==="sandbox"?x(p.nodes()[0].contentDocument.body):x("body"),l=a.select(`[id="${n}"]`),D=a.select("#"+n+" g");await st(D,s,["barb"],_,n);const S=8;et.insertTitle(l,"statediagramTitleText",r.titleTopMargin,c.db.getDiagramTitle());const b=l.node().getBBox(),L=b.width+S*2,P=b.height+S*2;l.attr("class",_);const O=l.node().getBBox();ot(l,P,L,r.useMaxWidth);const k=`${O.x-S} ${O.y-S} ${L} ${P}`;E.debug(`viewBox ${k}`),l.attr("viewBox",k);const j=document.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(const $ of j){const v=$.getBBox(),f=document.createElementNS("http://www.w3.org/2000/svg",h);f.setAttribute("rx",0),f.setAttribute("ry",0),f.setAttribute("width",v.width),f.setAttribute("height",v.height),$.insertBefore(f,$.firstChild)}},Rt={setConf:yt,getClasses:gt,draw:Ct},Mt={parser:J,db:B,renderer:Rt,styles:Q,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{Mt as diagram};
import{p as A,d as N,s as P}from"./styles-275f40ca-02prN6vb.js";import{at as t,ax as H,ay as b,az as R,aB as T,aW as v,aK as U}from"./index-Hfn5l4aw.js";import{G as C,l as F}from"./layout-94e1e85f-BAM45a7u.js";import{l as $}from"./line-b015ae81-MIcjsH1n.js";import"./array-b7dcf730-Nw74a44z.js";import"./path-39bad7e2-aUcfwwLI.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,i)=>{const o=function(l,m,w){const E=l.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,r=!0;i.descriptions.forEach(function(l){a||(o(p,l,r),r=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,i,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=r.node().getBBox().width+s;let d=Math.max(x,p);d===p&&(d=d+s);let l;const m=e.node().getBBox();i.doc,l=a-c,x>p&&(l=(p-d)/2+c),Math.abs(a-m.x)<c&&x>p&&(l=a-(x-p)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",w).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=p&&r.attr("x",a+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,i)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},K=(e,i,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"<br/>");p=p.replace(/\n/g,"<br/>");const a=p.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",i+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},Z=(e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:s,textHeight:g}=K(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,i){const o=i.id,c={id:o,label:i.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&O(s),i.type==="end"&&_(s),(i.type==="fork"||i.type==="join")&&q(s,i),i.type==="note"&&Z(i.note.text,s),i.type==="divider"&&X(s),i.type==="default"&&i.descriptions.length===0&&J(s,i),i.type==="default"&&i.descriptions.length>0&&Y(s,i);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const Q=function(e,i,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};i.points=i.points.filter(r=>!Number.isNaN(r.y));const s=i.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(v),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(i.points),d=T.getRows(o.title);let l=0;const m=[];let w=0,E=0;for(let u=0;u<=d.length;u++){const h=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();w=Math.max(w,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=h.node().getBBox().height,b.info("Title height",l,x)),m.push(h)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;m.forEach((h,f)=>h.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},V=function(){},j=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},D=function(e,i,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+i));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${i}']`);j(r);const y=c.db.getRootDoc();W(y,r,void 0,!1,p,a,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,m=d.height+x*2,w=l*1.75;R(r,m,w,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+m)},tt=e=>e?e.length*B.fontSizeFactor:1,W=(e,i,o,c,s,g,p)=>{const a=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){y=!1;break}o?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}}),p.db.extract(e);const x=p.db.getStates(),d=p.db.getRelations(),l=Object.keys(x);for(const n of l){const u=x[n];o&&(u.parentId=o);let h;if(u.doc){let f=i.append("g").attr("id",u.id).attr("class","stateGroup");h=W(u.doc,f,u.id,!c,s,g,p);{f=I(f,u,c);let S=f.node().getBBox();h.width=S.width,h.height=S.height+B.padding/2,z[u.id]={y:B.compositTitleSize}}}else h=L(i,u);if(u.note){const f={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},S=L(i,f);u.note.position==="left of"?(a.setNode(h.id+"-note",S),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",S)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}b.debug("Count=",a.nodeCount(),a);let m=0;d.forEach(function(n){m++,b.debug("Setting edge",n),a.setEdge(n.id1,n.id2,{relation:n,width:tt(n.title),height:B.labelHeight*T.getRows(n.title).length,labelpos:"c"},"id"+m)}),F(a),b.debug("Graph after layout",a.nodes());const w=i.node();a.nodes().forEach(function(n){n!==void 0&&a.node(n)!==void 0?(b.warn("Node "+n+": "+JSON.stringify(a.node(n))),s.select("#"+w.id+" #"+n).attr("transform","translate("+(a.node(n).x-a.node(n).width/2)+","+(a.node(n).y+(z[n]?z[n].y:0)-a.node(n).height/2)+" )"),s.select("#"+w.id+" #"+n).attr("data-x-shift",a.node(n).x-a.node(n).width/2),g.querySelectorAll("#"+w.id+" #"+n+" .divider").forEach(h=>{const f=h.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let E=w.getBBox();a.edges().forEach(function(n){n!==void 0&&a.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),Q(i,a.edge(n),a.edge(n).relation))}),E=w.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,a),k},et={setConf:V,draw:D},dt={parser:A,db:N,renderer:et,styles:P,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{dt as diagram};
import{aq as ge,aU as Te,aT as ye,at as lt,ap as Jt,as as Ee,ar as be,aV as me,ay as K,au as kt,aB as v,av as we,ax as Pt,az as ve,aK as B,aD as Zt,bb as Qt,bk as _e,bl as Pe}from"./index-Hfn5l4aw.js";import{d as ke,a as Le,g as Lt,b as Ie,c as Ae,e as Yt}from"./svgDrawCommon-1b9ff2ad-B4iIY08o.js";var Vt=function(){var t=function(ct,w,P,L){for(P=P||{},L=ct.length;L--;P[ct[L]]=w);return P},e=[1,2],o=[1,3],s=[1,4],r=[2,4],n=[1,9],c=[1,11],h=[1,13],p=[1,14],i=[1,16],g=[1,17],E=[1,18],u=[1,24],x=[1,25],m=[1,26],k=[1,27],A=[1,28],D=[1,29],S=[1,30],W=[1,31],M=[1,32],tt=[1,33],q=[1,34],G=[1,35],Z=[1,36],z=[1,37],F=[1,38],O=[1,39],X=[1,41],H=[1,42],J=[1,43],Q=[1,44],j=[1,45],y=[1,46],_=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],I=[4,5,16,50,52,53],ht=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],et=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],N=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],zt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ot=[68,69,70],it=[1,120],At={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,P,L,T,R,l,Et){var d=l.length-1;switch(R){case 3:return T.apply(l[d]),l[d];case 4:case 9:this.$=[];break;case 5:case 10:l[d-1].push(l[d]),this.$=l[d-1];break;case 6:case 7:case 11:case 12:this.$=l[d];break;case 8:case 13:this.$=[];break;case 15:l[d].type="createParticipant",this.$=l[d];break;case 16:l[d-1].unshift({type:"boxStart",boxData:T.parseBoxData(l[d-2])}),l[d-1].push({type:"boxEnd",boxText:l[d-2]}),this.$=l[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(l[d-2]),sequenceIndexStep:Number(l[d-1]),sequenceVisible:!0,signalType:T.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(l[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:T.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:T.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:T.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:T.LINETYPE.ACTIVE_START,actor:l[d-1]};break;case 23:this.$={type:"activeEnd",signalType:T.LINETYPE.ACTIVE_END,actor:l[d-1]};break;case 29:T.setDiagramTitle(l[d].substring(6)),this.$=l[d].substring(6);break;case 30:T.setDiagramTitle(l[d].substring(7)),this.$=l[d].substring(7);break;case 31:this.$=l[d].trim(),T.setAccTitle(this.$);break;case 32:case 33:this.$=l[d].trim(),T.setAccDescription(this.$);break;case 34:l[d-1].unshift({type:"loopStart",loopText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.LOOP_START}),l[d-1].push({type:"loopEnd",loopText:l[d-2],signalType:T.LINETYPE.LOOP_END}),this.$=l[d-1];break;case 35:l[d-1].unshift({type:"rectStart",color:T.parseMessage(l[d-2]),signalType:T.LINETYPE.RECT_START}),l[d-1].push({type:"rectEnd",color:T.parseMessage(l[d-2]),signalType:T.LINETYPE.RECT_END}),this.$=l[d-1];break;case 36:l[d-1].unshift({type:"optStart",optText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.OPT_START}),l[d-1].push({type:"optEnd",optText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.OPT_END}),this.$=l[d-1];break;case 37:l[d-1].unshift({type:"altStart",altText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.ALT_START}),l[d-1].push({type:"altEnd",signalType:T.LINETYPE.ALT_END}),this.$=l[d-1];break;case 38:l[d-1].unshift({type:"parStart",parText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.PAR_START}),l[d-1].push({type:"parEnd",signalType:T.LINETYPE.PAR_END}),this.$=l[d-1];break;case 39:l[d-1].unshift({type:"parStart",parText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.PAR_OVER_START}),l[d-1].push({type:"parEnd",signalType:T.LINETYPE.PAR_END}),this.$=l[d-1];break;case 40:l[d-1].unshift({type:"criticalStart",criticalText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.CRITICAL_START}),l[d-1].push({type:"criticalEnd",signalType:T.LINETYPE.CRITICAL_END}),this.$=l[d-1];break;case 41:l[d-1].unshift({type:"breakStart",breakText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.BREAK_START}),l[d-1].push({type:"breakEnd",optText:T.parseMessage(l[d-2]),signalType:T.LINETYPE.BREAK_END}),this.$=l[d-1];break;case 43:this.$=l[d-3].concat([{type:"option",optionText:T.parseMessage(l[d-1]),signalType:T.LINETYPE.CRITICAL_OPTION},l[d]]);break;case 45:this.$=l[d-3].concat([{type:"and",parText:T.parseMessage(l[d-1]),signalType:T.LINETYPE.PAR_AND},l[d]]);break;case 47:this.$=l[d-3].concat([{type:"else",altText:T.parseMessage(l[d-1]),signalType:T.LINETYPE.ALT_ELSE},l[d]]);break;case 48:l[d-3].draw="participant",l[d-3].type="addParticipant",l[d-3].description=T.parseMessage(l[d-1]),this.$=l[d-3];break;case 49:l[d-1].draw="participant",l[d-1].type="addParticipant",this.$=l[d-1];break;case 50:l[d-3].draw="actor",l[d-3].type="addParticipant",l[d-3].description=T.parseMessage(l[d-1]),this.$=l[d-3];break;case 51:l[d-1].draw="actor",l[d-1].type="addParticipant",this.$=l[d-1];break;case 52:l[d-1].type="destroyParticipant",this.$=l[d-1];break;case 53:this.$=[l[d-1],{type:"addNote",placement:l[d-2],actor:l[d-1].actor,text:l[d]}];break;case 54:l[d-2]=[].concat(l[d-1],l[d-1]).slice(0,2),l[d-2][0]=l[d-2][0].actor,l[d-2][1]=l[d-2][1].actor,this.$=[l[d-1],{type:"addNote",placement:T.PLACEMENT.OVER,actor:l[d-2].slice(0,2),text:l[d]}];break;case 55:this.$=[l[d-1],{type:"addLinks",actor:l[d-1].actor,text:l[d]}];break;case 56:this.$=[l[d-1],{type:"addALink",actor:l[d-1].actor,text:l[d]}];break;case 57:this.$=[l[d-1],{type:"addProperties",actor:l[d-1].actor,text:l[d]}];break;case 58:this.$=[l[d-1],{type:"addDetails",actor:l[d-1].actor,text:l[d]}];break;case 61:this.$=[l[d-2],l[d]];break;case 62:this.$=l[d];break;case 63:this.$=T.PLACEMENT.LEFTOF;break;case 64:this.$=T.PLACEMENT.RIGHTOF;break;case 65:this.$=[l[d-4],l[d-1],{type:"addMessage",from:l[d-4].actor,to:l[d-1].actor,signalType:l[d-3],msg:l[d],activate:!0},{type:"activeStart",signalType:T.LINETYPE.ACTIVE_START,actor:l[d-1]}];break;case 66:this.$=[l[d-4],l[d-1],{type:"addMessage",from:l[d-4].actor,to:l[d-1].actor,signalType:l[d-3],msg:l[d]},{type:"activeEnd",signalType:T.LINETYPE.ACTIVE_END,actor:l[d-4]}];break;case 67:this.$=[l[d-3],l[d-1],{type:"addMessage",from:l[d-3].actor,to:l[d-1].actor,signalType:l[d-2],msg:l[d]}];break;case 68:this.$={type:"addParticipant",actor:l[d]};break;case 69:this.$=T.LINETYPE.SOLID_OPEN;break;case 70:this.$=T.LINETYPE.DOTTED_OPEN;break;case 71:this.$=T.LINETYPE.SOLID;break;case 72:this.$=T.LINETYPE.DOTTED;break;case 73:this.$=T.LINETYPE.SOLID_CROSS;break;case 74:this.$=T.LINETYPE.DOTTED_CROSS;break;case 75:this.$=T.LINETYPE.SOLID_POINT;break;case 76:this.$=T.LINETYPE.DOTTED_POINT;break;case 77:this.$=T.parseMessage(l[d].trim().substring(1));break}},table:[{3:1,4:e,5:o,6:s},{1:[3]},{3:5,4:e,5:o,6:s},{3:6,4:e,5:o,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:c,8:8,9:10,12:12,13:h,14:p,17:15,18:i,21:g,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:x,31:m,33:k,35:A,36:D,37:S,38:W,39:M,41:tt,43:q,44:G,46:Z,50:z,52:F,53:O,54:X,59:H,60:J,61:Q,62:j,70:y},t(_,[2,5]),{9:47,12:12,13:h,14:p,17:15,18:i,21:g,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:x,31:m,33:k,35:A,36:D,37:S,38:W,39:M,41:tt,43:q,44:G,46:Z,50:z,52:F,53:O,54:X,59:H,60:J,61:Q,62:j,70:y},t(_,[2,7]),t(_,[2,8]),t(_,[2,14]),{12:48,50:z,52:F,53:O},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:y},{22:55,70:y},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(_,[2,29]),t(_,[2,30]),{32:[1,61]},{34:[1,62]},t(_,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:y},{22:72,70:y},{22:73,70:y},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:y},{22:88,70:y},{22:89,70:y},{22:90,70:y},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(_,[2,6]),t(_,[2,15]),t(I,[2,9],{10:91}),t(_,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(_,[2,21]),{5:[1,95]},{5:[1,96]},t(_,[2,24]),t(_,[2,25]),t(_,[2,26]),t(_,[2,27]),t(_,[2,28]),t(_,[2,31]),t(_,[2,32]),t(ht,r,{7:97}),t(ht,r,{7:98}),t(ht,r,{7:99}),t(et,r,{40:100,7:101}),t(N,r,{42:102,7:103}),t(N,r,{7:103,42:104}),t(zt,r,{45:105,7:106}),t(ht,r,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:y},t(ot,[2,69]),t(ot,[2,70]),t(ot,[2,71]),t(ot,[2,72]),t(ot,[2,73]),t(ot,[2,74]),t(ot,[2,75]),t(ot,[2,76]),{22:116,70:y},{22:118,58:117,70:y},{70:[2,63]},{70:[2,64]},{56:119,79:it},{56:121,79:it},{56:122,79:it},{56:123,79:it},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:z,52:F,53:O},{5:[1,129]},t(_,[2,19]),t(_,[2,20]),t(_,[2,22]),t(_,[2,23]),{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,130],17:15,18:i,21:g,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:x,31:m,33:k,35:A,36:D,37:S,38:W,39:M,41:tt,43:q,44:G,46:Z,50:z,52:F,53:O,54:X,59:H,60:J,61:Q,62:j,70:y},{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,131],17:15,18:i,21:g,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:x,31:m,33:k,35:A,36:D,37:S,38:W,39:M,41:tt,43:q,44:G,46:Z,50:z,52:F,53:O,54:X,59:H,60:J,61:Q,62:j,70:y},{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,132],17:15,18:i,21:g,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:x,31:m,33:k,35:A,36:D,37:S,38:W,39:M,41:tt,43:q,44:G,46:Z,50:z,52:F,53:O,54:X,59:H,60:J,61:Q,62:j,70:y},{16:[1,133]},{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,46],17:15,18:i,21:g,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:x,31:m,33:k,35:A,36:D,37:S,38:W,39:M,41:tt,43:q,44:G,46:Z,49:[1,134],50:z,52:F,53:O,54:X,59:H,60:J,61:Q,62:j,70:y},{16:[1,135]},{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,44],17:15,18:i,21:g,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:x,31:m,33:k,35:A,36:D,37:S,38:W,39:M,41:tt,43:q,44:G,46:Z,48:[1,136],50:z,52:F,53:O,54:X,59:H,60:J,61:Q,62:j,70:y},{16:[1,137]},{16:[1,138]},{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,42],17:15,18:i,21:g,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:x,31:m,33:k,35:A,36:D,37:S,38:W,39:M,41:tt,43:q,44:G,46:Z,47:[1,139],50:z,52:F,53:O,54:X,59:H,60:J,61:Q,62:j,70:y},{4:n,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,140],17:15,18:i,21:g,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:u,30:x,31:m,33:k,35:A,36:D,37:S,38:W,39:M,41:tt,43:q,44:G,46:Z,50:z,52:F,53:O,54:X,59:H,60:J,61:Q,62:j,70:y},{15:[1,141]},t(_,[2,49]),{15:[1,142]},t(_,[2,51]),t(_,[2,52]),{22:143,70:y},{22:144,70:y},{56:145,79:it},{56:146,79:it},{56:147,79:it},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(_,[2,16]),t(I,[2,10]),{12:149,50:z,52:F,53:O},t(I,[2,12]),t(I,[2,13]),t(_,[2,18]),t(_,[2,34]),t(_,[2,35]),t(_,[2,36]),t(_,[2,37]),{15:[1,150]},t(_,[2,38]),{15:[1,151]},t(_,[2,39]),t(_,[2,40]),{15:[1,152]},t(_,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:it},{56:156,79:it},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:y},t(I,[2,11]),t(et,r,{7:101,40:158}),t(N,r,{7:103,42:159}),t(zt,r,{7:106,45:160}),t(_,[2,48]),t(_,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,P){if(P.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=P,L}},parse:function(w){var P=this,L=[0],T=[],R=[null],l=[],Et=this.table,d="",wt=0,Ht=0,pe=2,Ut=1,ue=l.slice.call(arguments,1),Y=Object.create(this.lexer),dt={yy:{}};for(var St in this.yy)Object.prototype.hasOwnProperty.call(this.yy,St)&&(dt.yy[St]=this.yy[St]);Y.setInput(w,dt.yy),dt.yy.lexer=Y,dt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Mt=Y.yylloc;l.push(Mt);var fe=Y.options&&Y.options.ranges;typeof dt.yy.parseError=="function"?this.parseError=dt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function xe(){var at;return at=T.pop()||Y.lex()||Ut,typeof at!="number"&&(at instanceof Array&&(T=at,at=T.pop()),at=P.symbols_[at]||at),at}for(var U,pt,$,Rt,gt={},vt,nt,Kt,_t;;){if(pt=L[L.length-1],this.defaultActions[pt]?$=this.defaultActions[pt]:((U===null||typeof U>"u")&&(U=xe()),$=Et[pt]&&Et[pt][U]),typeof $>"u"||!$.length||!$[0]){var Dt="";_t=[];for(vt in Et[pt])this.terminals_[vt]&&vt>pe&&_t.push("'"+this.terminals_[vt]+"'");Y.showPosition?Dt="Parse error on line "+(wt+1)+`:
`+Y.showPosition()+`
Expecting `+_t.join(", ")+", got '"+(this.terminals_[U]||U)+"'":Dt="Parse error on line "+(wt+1)+": Unexpected "+(U==Ut?"end of input":"'"+(this.terminals_[U]||U)+"'"),this.parseError(Dt,{text:Y.match,token:this.terminals_[U]||U,line:Y.yylineno,loc:Mt,expected:_t})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pt+", token: "+U);switch($[0]){case 1:L.push(U),R.push(Y.yytext),l.push(Y.yylloc),L.push($[1]),U=null,Ht=Y.yyleng,d=Y.yytext,wt=Y.yylineno,Mt=Y.yylloc;break;case 2:if(nt=this.productions_[$[1]][1],gt.$=R[R.length-nt],gt._$={first_line:l[l.length-(nt||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(nt||1)].first_column,last_column:l[l.length-1].last_column},fe&&(gt._$.range=[l[l.length-(nt||1)].range[0],l[l.length-1].range[1]]),Rt=this.performAction.apply(gt,[d,Ht,wt,dt.yy,$[1],R,l].concat(ue)),typeof Rt<"u")return Rt;nt&&(L=L.slice(0,-1*nt*2),R=R.slice(0,-1*nt),l=l.slice(0,-1*nt)),L.push(this.productions_[$[1]][0]),R.push(gt.$),l.push(gt._$),Kt=Et[L[L.length-2]][L[L.length-1]],L.push(Kt);break;case 3:return!0}}return!0}},de=function(){var ct={EOF:1,parseError:function(P,L){if(this.yy.parser)this.yy.parser.parseError(P,L);else throw new Error(P)},setInput:function(w,P){return this.yy=P||this.yy||{},this._input=w,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var P=w.match(/(?:\r\n?|\n).*/g);return P?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},unput:function(w){var P=w.length,L=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-P),this.offset-=P;var T=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),L.length-1&&(this.yylineno-=L.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:L?(L.length===T.length?this.yylloc.first_column:0)+T[T.length-L.length].length-L[0].length:this.yylloc.first_column-P},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-P]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(w){this.unput(this.match.slice(w))},pastInput:function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var w=this.pastInput(),P=new Array(w.length+1).join("-");return w+this.upcomingInput()+`
`+P+"^"},test_match:function(w,P){var L,T,R;if(this.options.backtrack_lexer&&(R={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(R.yylloc.range=this.yylloc.range.slice(0))),T=w[0].match(/(?:\r\n?|\n).*/g),T&&(this.yylineno+=T.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:T?T[T.length-1].length-T[T.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(w[0].length),this.matched+=w[0],L=this.performAction.call(this,this.yy,this,P,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),L)return L;if(this._backtrack){for(var l in R)this[l]=R[l];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var w,P,L,T;this._more||(this.yytext="",this.match="");for(var R=this._currentRules(),l=0;l<R.length;l++)if(L=this._input.match(this.rules[R[l]]),L&&(!P||L[0].length>P[0].length)){if(P=L,T=l,this.options.backtrack_lexer){if(w=this.test_match(L,R[l]),w!==!1)return w;if(this._backtrack){P=!1;continue}else return!1}else if(!this.options.flex)break}return P?(w=this.test_match(P,R[T]),w!==!1?w:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var P=this.next();return P||this.lex()},begin:function(P){this.conditionStack.push(P)},popState:function(){var P=this.conditionStack.length-1;return P>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(P){return P=this.conditionStack.length-1-Math.abs(P||0),P>=0?this.conditionStack[P]:"INITIAL"},pushState:function(P){this.begin(P)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(P,L,T,R){switch(T){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;case 8:return this.begin("ID"),50;case 9:return this.begin("ID"),52;case 10:return 13;case 11:return this.begin("ID"),53;case 12:return L.yytext=L.yytext.trim(),this.begin("ALIAS"),70;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),36;case 16:return this.begin("LINE"),37;case 17:return this.begin("LINE"),38;case 18:return this.begin("LINE"),39;case 19:return this.begin("LINE"),49;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),48;case 23:return this.begin("LINE"),44;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),46;case 26:return this.popState(),15;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;case 37:return this.begin("ID"),23;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;case 41:return this.popState(),"acc_title_value";case 42:return this.begin("acc_descr"),33;case 43:return this.popState(),"acc_descr_value";case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 51:return 5;case 52:return L.yytext=L.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 71;case 56:return 72;case 57:return 75;case 58:return 76;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 68;case 63:return 69;case 64:return 5;case 65:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[45,46],inclusive:!1},acc_descr:{rules:[43],inclusive:!1},acc_title:{rules:[41],inclusive:!1},ID:{rules:[2,3,12],inclusive:!1},ALIAS:{rules:[2,3,13,14],inclusive:!1},LINE:{rules:[2,3,26],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65],inclusive:!0}}};return ct}();At.lexer=de;function Nt(){this.yy={}}return Nt.prototype=At,At.Parser=Nt,new Nt}();Vt.parser=Vt;const Ne=Vt;class Se{constructor(e){this.init=e,this.records=this.init()}reset(){this.records=this.init()}}const b=new Se(()=>({prevActor:void 0,actors:{},createdActors:{},destroyedActors:{},boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),Me=function(t){b.records.boxes.push({name:t.text,wrap:t.wrap===void 0&&ft()||!!t.wrap,fill:t.color,actorKeys:[]}),b.records.currentBox=b.records.boxes.slice(-1)[0]},Ct=function(t,e,o,s){let r=b.records.currentBox;const n=b.records.actors[t];if(n){if(b.records.currentBox&&n.box&&b.records.currentBox!==n.box)throw new Error("A same participant should only be defined in one Box: "+n.name+" can't be in '"+n.box.name+"' and in '"+b.records.currentBox.name+"' at the same time.");if(r=n.box?n.box:b.records.currentBox,n.box=r,n&&e===n.name&&o==null)return}(o==null||o.text==null)&&(o={text:e,wrap:null,type:s}),(s==null||o.text==null)&&(o={text:e,wrap:null,type:s}),b.records.actors[t]={box:r,name:e,description:o.text,wrap:o.wrap===void 0&&ft()||!!o.wrap,prevActor:b.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:s||"participant"},b.records.prevActor&&b.records.actors[b.records.prevActor]&&(b.records.actors[b.records.prevActor].nextActor=t),b.records.currentBox&&b.records.currentBox.actorKeys.push(t),b.records.prevActor=t},Re=t=>{let e,o=0;for(e=0;e<b.records.messages.length;e++)b.records.messages[e].type===bt.ACTIVE_START&&b.records.messages[e].from.actor===t&&o++,b.records.messages[e].type===bt.ACTIVE_END&&b.records.messages[e].from.actor===t&&o--;return o},De=function(t,e,o,s){b.records.messages.push({from:t,to:e,message:o.text,wrap:o.wrap===void 0&&ft()||!!o.wrap,answer:s})},V=function(t,e,o={text:void 0,wrap:void 0},s,r=!1){if(s===bt.ACTIVE_END&&Re(t.actor)<1){let c=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw c.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},c}return b.records.messages.push({from:t,to:e,message:o.text,wrap:o.wrap===void 0&&ft()||!!o.wrap,type:s,activate:r}),!0},Ve=function(){return b.records.boxes.length>0},Ce=function(){return b.records.boxes.some(t=>t.name)},Oe=function(){return b.records.messages},Be=function(){return b.records.boxes},Ye=function(){return b.records.actors},Fe=function(){return b.records.createdActors},We=function(){return b.records.destroyedActors},mt=function(t){return b.records.actors[t]},qe=function(){return Object.keys(b.records.actors)},ze=function(){b.records.sequenceNumbersEnabled=!0},He=function(){b.records.sequenceNumbersEnabled=!1},Ue=()=>b.records.sequenceNumbersEnabled,Ke=function(t){b.records.wrapEnabled=t},ft=()=>b.records.wrapEnabled!==void 0?b.records.wrapEnabled:lt().sequence.wrap,Ge=function(){b.reset(),me()},Xe=function(t){const e=t.trim(),o={text:e.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:e.match(/^:?wrap:/)!==null?!0:e.match(/^:?nowrap:/)!==null?!1:void 0};return K.debug("parseMessage:",o),o},Je=function(t){const e=t.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let o=e!=null&&e[1]?e[1].trim():"transparent",s=e!=null&&e[2]?e[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",o)||(o="transparent",s=t.trim());else{const r=new Option().style;r.color=o,r.color!==o&&(o="transparent",s=t.trim())}return{color:o,text:s!==void 0?kt(s.replace(/^:?(?:no)?wrap:/,""),lt()):void 0,wrap:s!==void 0?s.match(/^:?wrap:/)!==null?!0:s.match(/^:?nowrap:/)!==null?!1:void 0:void 0}},bt={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32},Ze={FILLED:0,OPEN:1},Qe={LEFTOF:0,RIGHTOF:1,OVER:2},jt=function(t,e,o){const s={actor:t,placement:e,message:o.text,wrap:o.wrap===void 0&&ft()||!!o.wrap},r=[].concat(t,t);b.records.notes.push(s),b.records.messages.push({from:r[0],to:r[1],message:o.text,wrap:o.wrap===void 0&&ft()||!!o.wrap,type:bt.NOTE,placement:e})},$t=function(t,e){const o=mt(t);try{let s=kt(e.text,lt());s=s.replace(/&/g,"&"),s=s.replace(/=/g,"=");const r=JSON.parse(s);Ft(o,r)}catch(s){K.error("error while parsing actor link text",s)}},je=function(t,e){const o=mt(t);try{const c={};let h=kt(e.text,lt());var s=h.indexOf("@");h=h.replace(/&/g,"&"),h=h.replace(/=/g,"=");var r=h.slice(0,s-1).trim(),n=h.slice(s+1).trim();c[r]=n,Ft(o,c)}catch(c){K.error("error while parsing actor link text",c)}};function Ft(t,e){if(t.links==null)t.links=e;else for(let o in e)t.links[o]=e[o]}const te=function(t,e){const o=mt(t);try{let s=kt(e.text,lt());const r=JSON.parse(s);ee(o,r)}catch(s){K.error("error while parsing actor properties text",s)}};function ee(t,e){if(t.properties==null)t.properties=e;else for(let o in e)t.properties[o]=e[o]}function $e(){b.records.currentBox=void 0}const se=function(t,e){const o=mt(t),s=document.getElementById(e.text);try{const r=s.innerHTML,n=JSON.parse(r);n.properties&&ee(o,n.properties),n.links&&Ft(o,n.links)}catch(r){K.error("error while parsing actor details text",r)}},t0=function(t,e){if(t!==void 0&&t.properties!==void 0)return t.properties[e]},re=function(t){if(Array.isArray(t))t.forEach(function(e){re(e)});else switch(t.type){case"sequenceIndex":b.records.messages.push({from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":Ct(t.actor,t.actor,t.description,t.draw);break;case"createParticipant":if(b.records.actors[t.actor])throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");b.records.lastCreated=t.actor,Ct(t.actor,t.actor,t.description,t.draw),b.records.createdActors[t.actor]=b.records.messages.length;break;case"destroyParticipant":b.records.lastDestroyed=t.actor,b.records.destroyedActors[t.actor]=b.records.messages.length;break;case"activeStart":V(t.actor,void 0,void 0,t.signalType);break;case"activeEnd":V(t.actor,void 0,void 0,t.signalType);break;case"addNote":jt(t.actor,t.placement,t.text);break;case"addLinks":$t(t.actor,t.text);break;case"addALink":je(t.actor,t.text);break;case"addProperties":te(t.actor,t.text);break;case"addDetails":se(t.actor,t.text);break;case"addMessage":if(b.records.lastCreated){if(t.to!==b.records.lastCreated)throw new Error("The created participant "+b.records.lastCreated+" does not have an associated creating message after its declaration. Please check the sequence diagram.");b.records.lastCreated=void 0}else if(b.records.lastDestroyed){if(t.to!==b.records.lastDestroyed&&t.from!==b.records.lastDestroyed)throw new Error("The destroyed participant "+b.records.lastDestroyed+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");b.records.lastDestroyed=void 0}V(t.from,t.to,t.msg,t.signalType,t.activate);break;case"boxStart":Me(t.boxData);break;case"boxEnd":$e();break;case"loopStart":V(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":V(void 0,void 0,void 0,t.signalType);break;case"rectStart":V(void 0,void 0,t.color,t.signalType);break;case"rectEnd":V(void 0,void 0,void 0,t.signalType);break;case"optStart":V(void 0,void 0,t.optText,t.signalType);break;case"optEnd":V(void 0,void 0,void 0,t.signalType);break;case"altStart":V(void 0,void 0,t.altText,t.signalType);break;case"else":V(void 0,void 0,t.altText,t.signalType);break;case"altEnd":V(void 0,void 0,void 0,t.signalType);break;case"setAccTitle":Jt(t.text);break;case"parStart":V(void 0,void 0,t.parText,t.signalType);break;case"and":V(void 0,void 0,t.parText,t.signalType);break;case"parEnd":V(void 0,void 0,void 0,t.signalType);break;case"criticalStart":V(void 0,void 0,t.criticalText,t.signalType);break;case"option":V(void 0,void 0,t.optionText,t.signalType);break;case"criticalEnd":V(void 0,void 0,void 0,t.signalType);break;case"breakStart":V(void 0,void 0,t.breakText,t.signalType);break;case"breakEnd":V(void 0,void 0,void 0,t.signalType);break}},Gt={addActor:Ct,addMessage:De,addSignal:V,addLinks:$t,addDetails:se,addProperties:te,autoWrap:ft,setWrap:Ke,enableSequenceNumbers:ze,disableSequenceNumbers:He,showSequenceNumbers:Ue,getMessages:Oe,getActors:Ye,getCreatedActors:Fe,getDestroyedActors:We,getActor:mt,getActorKeys:qe,getActorProperty:t0,getAccTitle:ge,getBoxes:Be,getDiagramTitle:Te,setDiagramTitle:ye,getConfig:()=>lt().sequence,clear:Ge,parseMessage:Xe,parseBoxData:Je,LINETYPE:bt,ARROWTYPE:Ze,PLACEMENT:Qe,addNote:jt,setAccTitle:Jt,apply:re,setAccDescription:Ee,getAccDescription:be,hasAtLeastOneBox:Ve,hasAtLeastOneBoxWithTitle:Ce},e0=t=>`.actor {
stroke: ${t.actorBorder};
fill: ${t.actorBkg};
}
text.actor > tspan {
fill: ${t.actorTextColor};
stroke: none;
}
.actor-line {
stroke: ${t.actorLineColor};
}
.messageLine0 {
stroke-width: 1.5;
stroke-dasharray: none;
stroke: ${t.signalColor};
}
.messageLine1 {
stroke-width: 1.5;
stroke-dasharray: 2, 2;
stroke: ${t.signalColor};
}
#arrowhead path {
fill: ${t.signalColor};
stroke: ${t.signalColor};
}
.sequenceNumber {
fill: ${t.sequenceNumberColor};
}
#sequencenumber {
fill: ${t.signalColor};
}
#crosshead path {
fill: ${t.signalColor};
stroke: ${t.signalColor};
}
.messageText {
fill: ${t.signalTextColor};
stroke: none;
}
.labelBox {
stroke: ${t.labelBoxBorderColor};
fill: ${t.labelBoxBkgColor};
}
.labelText, .labelText > tspan {
fill: ${t.labelTextColor};
stroke: none;
}
.loopText, .loopText > tspan {
fill: ${t.loopTextColor};
stroke: none;
}
.loopLine {
stroke-width: 2px;
stroke-dasharray: 2, 2;
stroke: ${t.labelBoxBorderColor};
fill: ${t.labelBoxBorderColor};
}
.note {
//stroke: #decc93;
stroke: ${t.noteBorderColor};
fill: ${t.noteBkgColor};
}
.noteText, .noteText > tspan {
fill: ${t.noteTextColor};
stroke: none;
}
.activation0 {
fill: ${t.activationBkgColor};
stroke: ${t.activationBorderColor};
}
.activation1 {
fill: ${t.activationBkgColor};
stroke: ${t.activationBorderColor};
}
.activation2 {
fill: ${t.activationBkgColor};
stroke: ${t.activationBorderColor};
}
.actorPopupMenu {
position: absolute;
}
.actorPopupMenuPanel {
position: absolute;
fill: ${t.actorBkg};
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
}
.actor-man line {
stroke: ${t.actorBorder};
fill: ${t.actorBkg};
}
.actor-man circle, line {
stroke: ${t.actorBorder};
fill: ${t.actorBkg};
stroke-width: 2px;
}
`,s0=e0,ut=18*2,Wt=function(t,e){return ke(t,e)},ie=(t,e)=>{_e(()=>{const o=document.querySelectorAll(t);o.length!==0&&(o[0].addEventListener("mouseover",function(){a0("actor"+e+"_popup")}),o[0].addEventListener("mouseout",function(){o0("actor"+e+"_popup")}))})},r0=function(t,e,o,s,r){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};const n=e.links,c=e.actorCnt,h=e.rectData;var p="none";r&&(p="block !important");const i=t.append("g");i.attr("id","actor"+c+"_popup"),i.attr("class","actorPopupMenu"),i.attr("display",p),ie("#actor"+c+"_popup",c);var g="";h.class!==void 0&&(g=" "+h.class);let E=h.width>o?h.width:o;const u=i.append("rect");if(u.attr("class","actorPopupMenuPanel"+g),u.attr("x",h.x),u.attr("y",h.height),u.attr("fill",h.fill),u.attr("stroke",h.stroke),u.attr("width",E),u.attr("height",h.height),u.attr("rx",h.rx),u.attr("ry",h.ry),n!=null){var x=20;for(let A in n){var m=i.append("a"),k=Zt(n[A]);m.attr("xlink:href",k),m.attr("target","_blank"),v0(s)(A,m,h.x+10,h.height+x,E,20,{class:"actor"},s),x+=30}}return u.attr("height",x),{height:h.height+x,width:E}},i0=function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = 'block'; }"},n0=function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = 'none'; }"},a0=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="block")},o0=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="none")},yt=function(t,e){let o=0,s=0;const r=e.text.split(v.lineBreakRegex),[n,c]=Qt(e.fontSize);let h=[],p=0,i=()=>e.y;if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":i=()=>Math.round(e.y+e.textMargin);break;case"middle":case"center":i=()=>Math.round(e.y+(o+s+e.textMargin)/2);break;case"bottom":case"end":i=()=>Math.round(e.y+(o+s+2*e.textMargin)-e.textMargin);break}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle";break}for(let[g,E]of r.entries()){e.textMargin!==void 0&&e.textMargin===0&&n!==void 0&&(p=g*n);const u=t.append("text");u.attr("x",e.x),u.attr("y",i()),e.anchor!==void 0&&u.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),e.fontFamily!==void 0&&u.style("font-family",e.fontFamily),c!==void 0&&u.style("font-size",c),e.fontWeight!==void 0&&u.style("font-weight",e.fontWeight),e.fill!==void 0&&u.attr("fill",e.fill),e.class!==void 0&&u.attr("class",e.class),e.dy!==void 0?u.attr("dy",e.dy):p!==0&&u.attr("dy",p);const x=E||Pe;if(e.tspan){const m=u.append("tspan");m.attr("x",e.x),e.fill!==void 0&&m.attr("fill",e.fill),m.text(x)}else u.text(x);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(s+=(u._groups||u)[0][0].getBBox().height,o=s),h.push(u)}return h},ne=function(t,e){function o(r,n,c,h,p){return r+","+n+" "+(r+c)+","+n+" "+(r+c)+","+(n+h-p)+" "+(r+c-p*1.2)+","+(n+h)+" "+r+","+(n+h)}const s=t.append("polygon");return s.attr("points",o(e.x,e.y,e.width,e.height,7)),s.attr("class","labelBox"),e.y=e.y+e.height/2,yt(t,e),s};let st=-1;const ae=(t,e,o,s)=>{t.select&&o.forEach(r=>{const n=e[r],c=t.select("#actor"+n.actorCnt);!s.mirrorActors&&n.stopy?c.attr("y2",n.stopy+n.height/2):s.mirrorActors&&c.attr("y2",n.stopy)})},c0=function(t,e,o,s){const r=s?e.stopy:e.starty,n=e.x+e.width/2,c=r+5,h=t.append("g").lower();var p=h;s||(st++,p.append("line").attr("id","actor"+st).attr("x1",n).attr("y1",c).attr("x2",n).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),p=h.append("g"),e.actorCnt=st,e.links!=null&&(p.attr("id","root-"+st),ie("#root-"+st,st)));const i=Lt();var g="actor";e.properties!=null&&e.properties.class?g=e.properties.class:i.fill="#eaeaea",i.x=e.x,i.y=r,i.width=e.width,i.height=e.height,i.class=g,i.rx=3,i.ry=3;const E=Wt(p,i);if(e.rectData=i,e.properties!=null&&e.properties.icon){const x=e.properties.icon.trim();x.charAt(0)==="@"?Ie(p,i.x+i.width-20,i.y+10,x.substr(1)):Ae(p,i.x+i.width-20,i.y+10,x)}qt(o)(e.description,p,i.x,i.y,i.width,i.height,{class:"actor"},o);let u=e.height;if(E.node){const x=E.node().getBBox();e.height=x.height,u=x.height}return u},l0=function(t,e,o,s){const r=s?e.stopy:e.starty,n=e.x+e.width/2,c=r+80;t.lower(),s||(st++,t.append("line").attr("id","actor"+st).attr("x1",n).attr("y1",c).attr("x2",n).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),e.actorCnt=st);const h=t.append("g");h.attr("class","actor-man");const p=Lt();p.x=e.x,p.y=r,p.fill="#eaeaea",p.width=e.width,p.height=e.height,p.class="actor",p.rx=3,p.ry=3,h.append("line").attr("id","actor-man-torso"+st).attr("x1",n).attr("y1",r+25).attr("x2",n).attr("y2",r+45),h.append("line").attr("id","actor-man-arms"+st).attr("x1",n-ut/2).attr("y1",r+33).attr("x2",n+ut/2).attr("y2",r+33),h.append("line").attr("x1",n-ut/2).attr("y1",r+60).attr("x2",n).attr("y2",r+45),h.append("line").attr("x1",n).attr("y1",r+45).attr("x2",n+ut/2-2).attr("y2",r+60);const i=h.append("circle");i.attr("cx",e.x+e.width/2),i.attr("cy",r+10),i.attr("r",15),i.attr("width",e.width),i.attr("height",e.height);const g=h.node().getBBox();return e.height=g.height,qt(o)(e.description,h,p.x,p.y+35,p.width,p.height,{class:"actor"},o),e.height},h0=function(t,e,o,s){switch(e.type){case"actor":return l0(t,e,o,s);case"participant":return c0(t,e,o,s)}},d0=function(t,e,o){const r=t.append("g");oe(r,e),e.name&&qt(o)(e.name,r,e.x,e.y+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},o),r.lower()},p0=function(t){return t.append("g")},u0=function(t,e,o,s,r){const n=Lt(),c=e.anchored;n.x=e.startx,n.y=e.starty,n.class="activation"+r%3,n.width=e.stopx-e.startx,n.height=o-e.starty,Wt(c,n)},f0=function(t,e,o,s){const{boxMargin:r,boxTextMargin:n,labelBoxHeight:c,labelBoxWidth:h,messageFontFamily:p,messageFontSize:i,messageFontWeight:g}=s,E=t.append("g"),u=function(k,A,D,S){return E.append("line").attr("x1",k).attr("y1",A).attr("x2",D).attr("y2",S).attr("class","loopLine")};u(e.startx,e.starty,e.stopx,e.starty),u(e.stopx,e.starty,e.stopx,e.stopy),u(e.startx,e.stopy,e.stopx,e.stopy),u(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0&&e.sections.forEach(function(k){u(e.startx,k.y,e.stopx,k.y).style("stroke-dasharray","3, 3")});let x=Yt();x.text=o,x.x=e.startx,x.y=e.starty,x.fontFamily=p,x.fontSize=i,x.fontWeight=g,x.anchor="middle",x.valign="middle",x.tspan=!1,x.width=h||50,x.height=c||20,x.textMargin=n,x.class="labelText",ne(E,x),x=ce(),x.text=e.title,x.x=e.startx+h/2+(e.stopx-e.startx)/2,x.y=e.starty+r+n,x.anchor="middle",x.valign="middle",x.textMargin=n,x.class="loopText",x.fontFamily=p,x.fontSize=i,x.fontWeight=g,x.wrap=!0;let m=yt(E,x);return e.sectionTitles!==void 0&&e.sectionTitles.forEach(function(k,A){if(k.message){x.text=k.message,x.x=e.startx+(e.stopx-e.startx)/2,x.y=e.sections[A].y+r+n,x.class="loopText",x.anchor="middle",x.valign="middle",x.tspan=!1,x.fontFamily=p,x.fontSize=i,x.fontWeight=g,x.wrap=e.wrap,m=yt(E,x);let D=Math.round(m.map(S=>(S._groups||S)[0][0].getBBox().height).reduce((S,W)=>S+W));e.sections[A].height+=D-(r+n)}}),e.height=Math.round(e.stopy-e.starty),E},oe=function(t,e){Le(t,e)},x0=function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},g0=function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},T0=function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},y0=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},E0=function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},b0=function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},m0=function(t){t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},ce=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},w0=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},qt=function(){function t(r,n,c,h,p,i,g){const E=n.append("text").attr("x",c+p/2).attr("y",h+i/2+5).style("text-anchor","middle").text(r);s(E,g)}function e(r,n,c,h,p,i,g,E){const{actorFontSize:u,actorFontFamily:x,actorFontWeight:m}=E,[k,A]=Qt(u),D=r.split(v.lineBreakRegex);for(let S=0;S<D.length;S++){const W=S*k-k*(D.length-1)/2,M=n.append("text").attr("x",c+p/2).attr("y",h).style("text-anchor","middle").style("font-size",A).style("font-weight",m).style("font-family",x);M.append("tspan").attr("x",c+p/2).attr("dy",W).text(D[S]),M.attr("y",h+i/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(M,g)}}function o(r,n,c,h,p,i,g,E){const u=n.append("switch"),m=u.append("foreignObject").attr("x",c).attr("y",h).attr("width",p).attr("height",i).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");m.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(r),e(r,u,c,h,p,i,g,E),s(m,g)}function s(r,n){for(const c in n)n.hasOwnProperty(c)&&r.attr(c,n[c])}return function(r){return r.textPlacement==="fo"?o:r.textPlacement==="old"?t:e}}(),v0=function(){function t(r,n,c,h,p,i,g){const E=n.append("text").attr("x",c).attr("y",h).style("text-anchor","start").text(r);s(E,g)}function e(r,n,c,h,p,i,g,E){const{actorFontSize:u,actorFontFamily:x,actorFontWeight:m}=E,k=r.split(v.lineBreakRegex);for(let A=0;A<k.length;A++){const D=A*u-u*(k.length-1)/2,S=n.append("text").attr("x",c).attr("y",h).style("text-anchor","start").style("font-size",u).style("font-weight",m).style("font-family",x);S.append("tspan").attr("x",c).attr("dy",D).text(k[A]),S.attr("y",h+i/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(S,g)}}function o(r,n,c,h,p,i,g,E){const u=n.append("switch"),m=u.append("foreignObject").attr("x",c).attr("y",h).attr("width",p).attr("height",i).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");m.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(r),e(r,u,c,h,p,i,g,E),s(m,g)}function s(r,n){for(const c in n)n.hasOwnProperty(c)&&r.attr(c,n[c])}return function(r){return r.textPlacement==="fo"?o:r.textPlacement==="old"?t:e}}(),C={drawRect:Wt,drawText:yt,drawLabel:ne,drawActor:h0,drawBox:d0,drawPopup:r0,anchorElement:p0,drawActivation:u0,drawLoop:f0,drawBackgroundRect:oe,insertArrowHead:y0,insertArrowFilledHead:E0,insertSequenceNumber:b0,insertArrowCrossHead:m0,insertDatabaseIcon:x0,insertComputerIcon:g0,insertClockIcon:T0,getTextObj:ce,getNoteRect:w0,popupMenu:i0,popdownMenu:n0,fixLifeLineHeights:ae,sanitizeUrl:Zt};let a={};const f={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(t=>t.height||0))+(this.loops.length===0?0:this.loops.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.messages.length===0?0:this.messages.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.notes.length===0?0:this.notes.map(t=>t.height||0).reduce((t,e)=>t+e))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(t){this.boxes.push(t)},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,he(lt())},updateVal:function(t,e,o,s){t[e]===void 0?t[e]=o:t[e]=s(o,t[e])},updateBounds:function(t,e,o,s){const r=this;let n=0;function c(h){return function(i){n++;const g=r.sequenceItems.length-n+1;r.updateVal(i,"starty",e-g*a.boxMargin,Math.min),r.updateVal(i,"stopy",s+g*a.boxMargin,Math.max),r.updateVal(f.data,"startx",t-g*a.boxMargin,Math.min),r.updateVal(f.data,"stopx",o+g*a.boxMargin,Math.max),h!=="activation"&&(r.updateVal(i,"startx",t-g*a.boxMargin,Math.min),r.updateVal(i,"stopx",o+g*a.boxMargin,Math.max),r.updateVal(f.data,"starty",e-g*a.boxMargin,Math.min),r.updateVal(f.data,"stopy",s+g*a.boxMargin,Math.max))}}this.sequenceItems.forEach(c()),this.activations.forEach(c("activation"))},insert:function(t,e,o,s){const r=v.getMin(t,o),n=v.getMax(t,o),c=v.getMin(e,s),h=v.getMax(e,s);this.updateVal(f.data,"startx",r,Math.min),this.updateVal(f.data,"starty",c,Math.min),this.updateVal(f.data,"stopx",n,Math.max),this.updateVal(f.data,"stopy",h,Math.max),this.updateBounds(r,c,n,h)},newActivation:function(t,e,o){const s=o[t.from.actor],r=It(t.from.actor).length||0,n=s.x+s.width/2+(r-1)*a.activationWidth/2;this.activations.push({startx:n,starty:this.verticalPos+2,stopx:n+a.activationWidth,stopy:void 0,actor:t.from.actor,anchored:C.anchorElement(e)})},endActivation:function(t){const e=this.activations.map(function(o){return o.actor}).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},isLoopOverlap:function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},addSectionToLoop:function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:f.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},saveVerticalPos:function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},resetVerticalPos:function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=v.getMax(this.data.stopy,this.verticalPos)},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},_0=function(t,e){f.bumpVerticalPos(a.boxMargin),e.height=a.boxMargin,e.starty=f.getVerticalPos();const o=Lt();o.x=e.startx,o.y=e.starty,o.width=e.width||a.width,o.class="note";const s=t.append("g"),r=C.drawRect(s,o),n=Yt();n.x=e.startx,n.y=e.starty,n.width=o.width,n.dy="1em",n.text=e.message,n.class="noteText",n.fontFamily=a.noteFontFamily,n.fontSize=a.noteFontSize,n.fontWeight=a.noteFontWeight,n.anchor=a.noteAlign,n.textMargin=a.noteMargin,n.valign="center";const c=yt(s,n),h=Math.round(c.map(p=>(p._groups||p)[0][0].getBBox().height).reduce((p,i)=>p+i));r.attr("height",h+2*a.noteMargin),e.height+=h+2*a.noteMargin,f.bumpVerticalPos(h+2*a.noteMargin),e.stopy=e.starty+h+2*a.noteMargin,e.stopx=e.startx+o.width,f.insert(e.startx,e.starty,e.stopx,e.stopy),f.models.addNote(e)},xt=t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),Tt=t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),Ot=t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight});function P0(t,e){f.bumpVerticalPos(10);const{startx:o,stopx:s,message:r}=e,n=v.splitBreaks(r).length,c=B.calculateTextDimensions(r,xt(a)),h=c.height/n;e.height+=h,f.bumpVerticalPos(h);let p,i=c.height-10;const g=c.width;if(o===s){p=f.getVerticalPos()+i,a.rightAngles||(i+=a.boxMargin,p=f.getVerticalPos()+i),i+=30;const E=v.getMax(g/2,a.width/2);f.insert(o-E,f.getVerticalPos()-10+i,s+E,f.getVerticalPos()+30+i)}else i+=a.boxMargin,p=f.getVerticalPos()+i,f.insert(o,p-10,s,p);return f.bumpVerticalPos(i),e.height+=i,e.stopy=e.starty+e.height,f.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),p}const k0=function(t,e,o,s){const{startx:r,stopx:n,starty:c,message:h,type:p,sequenceIndex:i,sequenceVisible:g}=e,E=B.calculateTextDimensions(h,xt(a)),u=Yt();u.x=r,u.y=c+10,u.width=n-r,u.class="messageText",u.dy="1em",u.text=h,u.fontFamily=a.messageFontFamily,u.fontSize=a.messageFontSize,u.fontWeight=a.messageFontWeight,u.anchor=a.messageAlign,u.valign="center",u.textMargin=a.wrapPadding,u.tspan=!1,yt(t,u);const x=E.width;let m;r===n?a.rightAngles?m=t.append("path").attr("d",`M ${r},${o} H ${r+v.getMax(a.width/2,x/2)} V ${o+25} H ${r}`):m=t.append("path").attr("d","M "+r+","+o+" C "+(r+60)+","+(o-10)+" "+(r+60)+","+(o+30)+" "+r+","+(o+20)):(m=t.append("line"),m.attr("x1",r),m.attr("y1",o),m.attr("x2",n),m.attr("y2",o)),p===s.db.LINETYPE.DOTTED||p===s.db.LINETYPE.DOTTED_CROSS||p===s.db.LINETYPE.DOTTED_POINT||p===s.db.LINETYPE.DOTTED_OPEN?(m.style("stroke-dasharray","3, 3"),m.attr("class","messageLine1")):m.attr("class","messageLine0");let k="";a.arrowMarkerAbsolute&&(k=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,k=k.replace(/\(/g,"\\("),k=k.replace(/\)/g,"\\)")),m.attr("stroke-width",2),m.attr("stroke","none"),m.style("fill","none"),(p===s.db.LINETYPE.SOLID||p===s.db.LINETYPE.DOTTED)&&m.attr("marker-end","url("+k+"#arrowhead)"),(p===s.db.LINETYPE.SOLID_POINT||p===s.db.LINETYPE.DOTTED_POINT)&&m.attr("marker-end","url("+k+"#filled-head)"),(p===s.db.LINETYPE.SOLID_CROSS||p===s.db.LINETYPE.DOTTED_CROSS)&&m.attr("marker-end","url("+k+"#crosshead)"),(g||a.showSequenceNumbers)&&(m.attr("marker-start","url("+k+"#sequencenumber)"),t.append("text").attr("x",r).attr("y",o+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(i))},L0=function(t,e,o,s,r,n,c){let h=0,p=0,i,g=0;for(const E of s){const u=e[E],x=u.box;i&&i!=x&&(c||f.models.addBox(i),p+=a.boxMargin+i.margin),x&&x!=i&&(c||(x.x=h+p,x.y=r),p+=x.margin),u.width=u.width||a.width,u.height=v.getMax(u.height||a.height,a.height),u.margin=u.margin||a.actorMargin,g=v.getMax(g,u.height),o[u.name]&&(p+=u.width/2),u.x=h+p,u.starty=f.getVerticalPos(),f.insert(u.x,r,u.x+u.width,u.height),h+=u.width+p,u.box&&(u.box.width=h+x.margin-u.box.x),p=u.margin,i=u.box,f.models.addActor(u)}i&&!c&&f.models.addBox(i),f.bumpVerticalPos(g)},Bt=function(t,e,o,s){if(s){let r=0;f.bumpVerticalPos(a.boxMargin*2);for(const n of o){const c=e[n];c.stopy||(c.stopy=f.getVerticalPos());const h=C.drawActor(t,c,a,!0);r=v.getMax(r,h)}f.bumpVerticalPos(r+a.boxMargin)}else for(const r of o){const n=e[r];C.drawActor(t,n,a,!1)}},le=function(t,e,o,s){let r=0,n=0;for(const c of o){const h=e[c],p=S0(h),i=C.drawPopup(t,h,p,a,a.forceMenus,s);i.height>r&&(r=i.height),i.width+h.x>n&&(n=i.width+h.x)}return{maxHeight:r,maxWidth:n}},he=function(t){we(a,t),t.fontFamily&&(a.actorFontFamily=a.noteFontFamily=a.messageFontFamily=t.fontFamily),t.fontSize&&(a.actorFontSize=a.noteFontSize=a.messageFontSize=t.fontSize),t.fontWeight&&(a.actorFontWeight=a.noteFontWeight=a.messageFontWeight=t.fontWeight)},It=function(t){return f.activations.filter(function(e){return e.actor===t})},Xt=function(t,e){const o=e[t],s=It(t),r=s.reduce(function(c,h){return v.getMin(c,h.startx)},o.x+o.width/2-1),n=s.reduce(function(c,h){return v.getMax(c,h.stopx)},o.x+o.width/2+1);return[r,n]};function rt(t,e,o,s,r){f.bumpVerticalPos(o);let n=s;if(e.id&&e.message&&t[e.id]){const c=t[e.id].width,h=xt(a);e.message=B.wrapLabel(`[${e.message}]`,c-2*a.wrapPadding,h),e.width=c,e.wrap=!0;const p=B.calculateTextDimensions(e.message,h),i=v.getMax(p.height,a.labelBoxHeight);n=s+i,K.debug(`${i} - ${e.message}`)}r(e),f.bumpVerticalPos(n)}function I0(t,e,o,s,r,n,c){function h(i,g){i.x<r[t.from].x?(f.insert(e.stopx-g,e.starty,e.startx,e.stopy+i.height/2+a.noteMargin),e.stopx=e.stopx+g):(f.insert(e.startx,e.starty,e.stopx+g,e.stopy+i.height/2+a.noteMargin),e.stopx=e.stopx-g)}function p(i,g){i.x<r[t.to].x?(f.insert(e.startx-g,e.starty,e.stopx,e.stopy+i.height/2+a.noteMargin),e.startx=e.startx+g):(f.insert(e.stopx,e.starty,e.startx+g,e.stopy+i.height/2+a.noteMargin),e.startx=e.startx-g)}if(n[t.to]==s){const i=r[t.to],g=i.type=="actor"?ut/2+3:i.width/2+3;h(i,g),i.starty=o-i.height/2,f.bumpVerticalPos(i.height/2)}else if(c[t.from]==s){const i=r[t.from];if(a.mirrorActors){const g=i.type=="actor"?ut/2:i.width/2;p(i,g)}i.stopy=o-i.height/2,f.bumpVerticalPos(i.height/2)}else if(c[t.to]==s){const i=r[t.to];if(a.mirrorActors){const g=i.type=="actor"?ut/2+3:i.width/2+3;h(i,g)}i.stopy=o-i.height/2,f.bumpVerticalPos(i.height/2)}}const A0=function(t,e,o,s){const{securityLevel:r,sequence:n}=lt();a=n;let c;r==="sandbox"&&(c=Pt("#i"+e));const h=r==="sandbox"?Pt(c.nodes()[0].contentDocument.body):Pt("body"),p=r==="sandbox"?c.nodes()[0].contentDocument:document;f.init(),K.debug(s.db);const i=r==="sandbox"?h.select(`[id="${e}"]`):Pt(`[id="${e}"]`),g=s.db.getActors(),E=s.db.getCreatedActors(),u=s.db.getDestroyedActors(),x=s.db.getBoxes();let m=s.db.getActorKeys();const k=s.db.getMessages(),A=s.db.getDiagramTitle(),D=s.db.hasAtLeastOneBox(),S=s.db.hasAtLeastOneBoxWithTitle(),W=N0(g,k,s);if(a.height=M0(g,W,x),C.insertComputerIcon(i),C.insertDatabaseIcon(i),C.insertClockIcon(i),D&&(f.bumpVerticalPos(a.boxMargin),S&&f.bumpVerticalPos(x[0].textMaxHeight)),a.hideUnusedParticipants===!0){const y=new Set;k.forEach(_=>{y.add(_.from),y.add(_.to)}),m=m.filter(_=>y.has(_))}L0(i,g,E,m,0,k,!1);const M=V0(k,g,W,s);C.insertArrowHead(i),C.insertArrowCrossHead(i),C.insertArrowFilledHead(i),C.insertSequenceNumber(i);function tt(y,_){const I=f.endActivation(y);I.starty+18>_&&(I.starty=_-6,_+=12),C.drawActivation(i,I,_,a,It(y.from.actor).length),f.insert(I.startx,_-10,I.stopx,_)}let q=1,G=1;const Z=[],z=[];k.forEach(function(y,_){let I,ht,et;switch(y.type){case s.db.LINETYPE.NOTE:f.resetVerticalPos(),ht=y.noteModel,_0(i,ht);break;case s.db.LINETYPE.ACTIVE_START:f.newActivation(y,i,g);break;case s.db.LINETYPE.ACTIVE_END:tt(y,f.getVerticalPos());break;case s.db.LINETYPE.LOOP_START:rt(M,y,a.boxMargin,a.boxMargin+a.boxTextMargin,N=>f.newLoop(N));break;case s.db.LINETYPE.LOOP_END:I=f.endLoop(),C.drawLoop(i,I,"loop",a),f.bumpVerticalPos(I.stopy-f.getVerticalPos()),f.models.addLoop(I);break;case s.db.LINETYPE.RECT_START:rt(M,y,a.boxMargin,a.boxMargin,N=>f.newLoop(void 0,N.message));break;case s.db.LINETYPE.RECT_END:I=f.endLoop(),z.push(I),f.models.addLoop(I),f.bumpVerticalPos(I.stopy-f.getVerticalPos());break;case s.db.LINETYPE.OPT_START:rt(M,y,a.boxMargin,a.boxMargin+a.boxTextMargin,N=>f.newLoop(N));break;case s.db.LINETYPE.OPT_END:I=f.endLoop(),C.drawLoop(i,I,"opt",a),f.bumpVerticalPos(I.stopy-f.getVerticalPos()),f.models.addLoop(I);break;case s.db.LINETYPE.ALT_START:rt(M,y,a.boxMargin,a.boxMargin+a.boxTextMargin,N=>f.newLoop(N));break;case s.db.LINETYPE.ALT_ELSE:rt(M,y,a.boxMargin+a.boxTextMargin,a.boxMargin,N=>f.addSectionToLoop(N));break;case s.db.LINETYPE.ALT_END:I=f.endLoop(),C.drawLoop(i,I,"alt",a),f.bumpVerticalPos(I.stopy-f.getVerticalPos()),f.models.addLoop(I);break;case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:rt(M,y,a.boxMargin,a.boxMargin+a.boxTextMargin,N=>f.newLoop(N)),f.saveVerticalPos();break;case s.db.LINETYPE.PAR_AND:rt(M,y,a.boxMargin+a.boxTextMargin,a.boxMargin,N=>f.addSectionToLoop(N));break;case s.db.LINETYPE.PAR_END:I=f.endLoop(),C.drawLoop(i,I,"par",a),f.bumpVerticalPos(I.stopy-f.getVerticalPos()),f.models.addLoop(I);break;case s.db.LINETYPE.AUTONUMBER:q=y.message.start||q,G=y.message.step||G,y.message.visible?s.db.enableSequenceNumbers():s.db.disableSequenceNumbers();break;case s.db.LINETYPE.CRITICAL_START:rt(M,y,a.boxMargin,a.boxMargin+a.boxTextMargin,N=>f.newLoop(N));break;case s.db.LINETYPE.CRITICAL_OPTION:rt(M,y,a.boxMargin+a.boxTextMargin,a.boxMargin,N=>f.addSectionToLoop(N));break;case s.db.LINETYPE.CRITICAL_END:I=f.endLoop(),C.drawLoop(i,I,"critical",a),f.bumpVerticalPos(I.stopy-f.getVerticalPos()),f.models.addLoop(I);break;case s.db.LINETYPE.BREAK_START:rt(M,y,a.boxMargin,a.boxMargin+a.boxTextMargin,N=>f.newLoop(N));break;case s.db.LINETYPE.BREAK_END:I=f.endLoop(),C.drawLoop(i,I,"break",a),f.bumpVerticalPos(I.stopy-f.getVerticalPos()),f.models.addLoop(I);break;default:try{et=y.msgModel,et.starty=f.getVerticalPos(),et.sequenceIndex=q,et.sequenceVisible=s.db.showSequenceNumbers();const N=P0(i,et);I0(y,et,N,_,g,E,u),Z.push({messageModel:et,lineStartY:N}),f.models.addMessage(et)}catch(N){K.error("error while drawing message",N)}}[s.db.LINETYPE.SOLID_OPEN,s.db.LINETYPE.DOTTED_OPEN,s.db.LINETYPE.SOLID,s.db.LINETYPE.DOTTED,s.db.LINETYPE.SOLID_CROSS,s.db.LINETYPE.DOTTED_CROSS,s.db.LINETYPE.SOLID_POINT,s.db.LINETYPE.DOTTED_POINT].includes(y.type)&&(q=q+G)}),K.debug("createdActors",E),K.debug("destroyedActors",u),Bt(i,g,m,!1),Z.forEach(y=>k0(i,y.messageModel,y.lineStartY,s)),a.mirrorActors&&Bt(i,g,m,!0),z.forEach(y=>C.drawBackgroundRect(i,y)),ae(i,g,m,a),f.models.boxes.forEach(function(y){y.height=f.getVerticalPos()-y.y,f.insert(y.x,y.y,y.x+y.width,y.height),y.startx=y.x,y.starty=y.y,y.stopx=y.startx+y.width,y.stopy=y.starty+y.height,y.stroke="rgb(0,0,0, 0.5)",C.drawBox(i,y,a)}),D&&f.bumpVerticalPos(a.boxMargin);const F=le(i,g,m,p),{bounds:O}=f.getBounds();let X=O.stopy-O.starty;X<F.maxHeight&&(X=F.maxHeight);let H=X+2*a.diagramMarginY;a.mirrorActors&&(H=H-a.boxMargin+a.bottomMarginAdj);let J=O.stopx-O.startx;J<F.maxWidth&&(J=F.maxWidth);const Q=J+2*a.diagramMarginX;A&&i.append("text").text(A).attr("x",(O.stopx-O.startx)/2-2*a.diagramMarginX).attr("y",-25),ve(i,H,Q,a.useMaxWidth);const j=A?40:0;i.attr("viewBox",O.startx-a.diagramMarginX+" -"+(a.diagramMarginY+j)+" "+Q+" "+(H+j)),K.debug("models:",f.models)};function N0(t,e,o){const s={};return e.forEach(function(r){if(t[r.to]&&t[r.from]){const n=t[r.to];if(r.placement===o.db.PLACEMENT.LEFTOF&&!n.prevActor||r.placement===o.db.PLACEMENT.RIGHTOF&&!n.nextActor)return;const c=r.placement!==void 0,h=!c,p=c?Tt(a):xt(a),i=r.wrap?B.wrapLabel(r.message,a.width-2*a.wrapPadding,p):r.message,E=B.calculateTextDimensions(i,p).width+2*a.wrapPadding;h&&r.from===n.nextActor?s[r.to]=v.getMax(s[r.to]||0,E):h&&r.from===n.prevActor?s[r.from]=v.getMax(s[r.from]||0,E):h&&r.from===r.to?(s[r.from]=v.getMax(s[r.from]||0,E/2),s[r.to]=v.getMax(s[r.to]||0,E/2)):r.placement===o.db.PLACEMENT.RIGHTOF?s[r.from]=v.getMax(s[r.from]||0,E):r.placement===o.db.PLACEMENT.LEFTOF?s[n.prevActor]=v.getMax(s[n.prevActor]||0,E):r.placement===o.db.PLACEMENT.OVER&&(n.prevActor&&(s[n.prevActor]=v.getMax(s[n.prevActor]||0,E/2)),n.nextActor&&(s[r.from]=v.getMax(s[r.from]||0,E/2)))}}),K.debug("maxMessageWidthPerActor:",s),s}const S0=function(t){let e=0;const o=Ot(a);for(const s in t.links){const n=B.calculateTextDimensions(s,o).width+2*a.wrapPadding+2*a.boxMargin;e<n&&(e=n)}return e};function M0(t,e,o){let s=0;Object.keys(t).forEach(n=>{const c=t[n];c.wrap&&(c.description=B.wrapLabel(c.description,a.width-2*a.wrapPadding,Ot(a)));const h=B.calculateTextDimensions(c.description,Ot(a));c.width=c.wrap?a.width:v.getMax(a.width,h.width+2*a.wrapPadding),c.height=c.wrap?v.getMax(h.height,a.height):a.height,s=v.getMax(s,c.height)});for(const n in e){const c=t[n];if(!c)continue;const h=t[c.nextActor];if(!h){const E=e[n]+a.actorMargin-c.width/2;c.margin=v.getMax(E,a.actorMargin);continue}const i=e[n]+a.actorMargin-c.width/2-h.width/2;c.margin=v.getMax(i,a.actorMargin)}let r=0;return o.forEach(n=>{const c=xt(a);let h=n.actorKeys.reduce((g,E)=>g+=t[E].width+(t[E].margin||0),0);h-=2*a.boxTextMargin,n.wrap&&(n.name=B.wrapLabel(n.name,h-2*a.wrapPadding,c));const p=B.calculateTextDimensions(n.name,c);r=v.getMax(p.height,r);const i=v.getMax(h,p.width+2*a.wrapPadding);if(n.margin=a.boxTextMargin,h<i){const g=(i-h)/2;n.margin+=g}}),o.forEach(n=>n.textMaxHeight=r),v.getMax(s,a.height)}const R0=function(t,e,o){const s=e[t.from].x,r=e[t.to].x,n=t.wrap&&t.message;let c=B.calculateTextDimensions(n?B.wrapLabel(t.message,a.width,Tt(a)):t.message,Tt(a));const h={width:n?a.width:v.getMax(a.width,c.width+2*a.noteMargin),height:0,startx:e[t.from].x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===o.db.PLACEMENT.RIGHTOF?(h.width=n?v.getMax(a.width,c.width):v.getMax(e[t.from].width/2+e[t.to].width/2,c.width+2*a.noteMargin),h.startx=s+(e[t.from].width+a.actorMargin)/2):t.placement===o.db.PLACEMENT.LEFTOF?(h.width=n?v.getMax(a.width,c.width+2*a.noteMargin):v.getMax(e[t.from].width/2+e[t.to].width/2,c.width+2*a.noteMargin),h.startx=s-h.width+(e[t.from].width-a.actorMargin)/2):t.to===t.from?(c=B.calculateTextDimensions(n?B.wrapLabel(t.message,v.getMax(a.width,e[t.from].width),Tt(a)):t.message,Tt(a)),h.width=n?v.getMax(a.width,e[t.from].width):v.getMax(e[t.from].width,a.width,c.width+2*a.noteMargin),h.startx=s+(e[t.from].width-h.width)/2):(h.width=Math.abs(s+e[t.from].width/2-(r+e[t.to].width/2))+a.actorMargin,h.startx=s<r?s+e[t.from].width/2-a.actorMargin/2:r+e[t.to].width/2-a.actorMargin/2),n&&(h.message=B.wrapLabel(t.message,h.width-2*a.wrapPadding,Tt(a))),K.debug(`NM:[${h.startx},${h.stopx},${h.starty},${h.stopy}:${h.width},${h.height}=${t.message}]`),h},D0=function(t,e,o){if(![o.db.LINETYPE.SOLID_OPEN,o.db.LINETYPE.DOTTED_OPEN,o.db.LINETYPE.SOLID,o.db.LINETYPE.DOTTED,o.db.LINETYPE.SOLID_CROSS,o.db.LINETYPE.DOTTED_CROSS,o.db.LINETYPE.SOLID_POINT,o.db.LINETYPE.DOTTED_POINT].includes(t.type))return{};const[s,r]=Xt(t.from,e),[n,c]=Xt(t.to,e),h=s<=n,p=h?r:s;let i=h?n:c;const g=Math.abs(n-c)>2,E=k=>h?-k:k;t.from===t.to?i=p:(t.activate&&!g&&(i+=E(a.activationWidth/2-1)),[o.db.LINETYPE.SOLID_OPEN,o.db.LINETYPE.DOTTED_OPEN].includes(t.type)||(i+=E(3)));const u=[s,r,n,c],x=Math.abs(p-i);t.wrap&&t.message&&(t.message=B.wrapLabel(t.message,v.getMax(x+2*a.wrapPadding,a.width),xt(a)));const m=B.calculateTextDimensions(t.message,xt(a));return{width:v.getMax(t.wrap?0:m.width+2*a.wrapPadding,x+2*a.wrapPadding,a.width),height:0,startx:p,stopx:i,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,u),toBounds:Math.max.apply(null,u)}},V0=function(t,e,o,s){const r={},n=[];let c,h,p;return t.forEach(function(i){switch(i.id=B.random({length:10}),i.type){case s.db.LINETYPE.LOOP_START:case s.db.LINETYPE.ALT_START:case s.db.LINETYPE.OPT_START:case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:case s.db.LINETYPE.CRITICAL_START:case s.db.LINETYPE.BREAK_START:n.push({id:i.id,msg:i.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case s.db.LINETYPE.ALT_ELSE:case s.db.LINETYPE.PAR_AND:case s.db.LINETYPE.CRITICAL_OPTION:i.message&&(c=n.pop(),r[c.id]=c,r[i.id]=c,n.push(c));break;case s.db.LINETYPE.LOOP_END:case s.db.LINETYPE.ALT_END:case s.db.LINETYPE.OPT_END:case s.db.LINETYPE.PAR_END:case s.db.LINETYPE.CRITICAL_END:case s.db.LINETYPE.BREAK_END:c=n.pop(),r[c.id]=c;break;case s.db.LINETYPE.ACTIVE_START:{const E=e[i.from?i.from.actor:i.to.actor],u=It(i.from?i.from.actor:i.to.actor).length,x=E.x+E.width/2+(u-1)*a.activationWidth/2,m={startx:x,stopx:x+a.activationWidth,actor:i.from.actor,enabled:!0};f.activations.push(m)}break;case s.db.LINETYPE.ACTIVE_END:{const E=f.activations.map(u=>u.actor).lastIndexOf(i.from.actor);delete f.activations.splice(E,1)[0]}break}i.placement!==void 0?(h=R0(i,e,s),i.noteModel=h,n.forEach(E=>{c=E,c.from=v.getMin(c.from,h.startx),c.to=v.getMax(c.to,h.startx+h.width),c.width=v.getMax(c.width,Math.abs(c.from-c.to))-a.labelBoxWidth})):(p=D0(i,e,s),i.msgModel=p,p.startx&&p.stopx&&n.length>0&&n.forEach(E=>{if(c=E,p.startx===p.stopx){const u=e[i.from],x=e[i.to];c.from=v.getMin(u.x-p.width/2,u.x-u.width/2,c.from),c.to=v.getMax(x.x+p.width/2,x.x+u.width/2,c.to),c.width=v.getMax(c.width,Math.abs(c.to-c.from))-a.labelBoxWidth}else c.from=v.getMin(p.startx,c.from),c.to=v.getMax(p.stopx,c.to),c.width=v.getMax(c.width,p.width)-a.labelBoxWidth}))}),f.activations=[],K.debug("Loop type widths:",r),r},C0={bounds:f,drawActors:Bt,drawActorsPopup:le,setConf:he,draw:A0},Y0={parser:Ne,db:Gt,renderer:C0,styles:s0,init:({wrap:t})=>{Gt.setWrap(t)}};export{Y0 as diagram};
import{at as rt,aq as mt,ap as kt,ar as _t,as as xt,aU as vt,aT as bt,aV as wt,aB as St,c3 as Lt,ax as G,aI as Et}from"./index-Hfn5l4aw.js";import{o as At}from"./ordinal-475e0c0c-Beet9Qdq.js";import"./init-cc95ec8e-Hi12RPRh.js";function Tt(t){for(var n=t.length/6|0,i=new Array(n),l=0;l<n;)i[l]="#"+t.slice(l*6,++l*6);return i}const Mt=Tt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");var tt=function(){var t=function(p,s,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=s);return o},n=[1,9],i=[1,10],l=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(s,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(l,[2,8]),t(l,[2,9]),{19:[1,16]},t(l,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:i},{15:18,16:7,17:8,18:n,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(l,[2,10]),{15:21,16:7,17:8,18:n,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(s,o){if(o.recoverable)this.trace(s);else{var c=new Error(s);throw c.hash=o,c}},parse:function(s){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,z=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(M.yy[$]=this.yy[$]);S.setInput(s,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var P=S.yylloc;y.push(P);var C=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,O,T,V,e={},f,a,h,r;;){if(O=c[c.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=d()),T=x[O]&&x[O][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[O])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`:
`+S.showPosition()+`
Expecting `+r.join(", ")+", got '"+(this.terminals_[w]||w)+"'":k="Parse error on line "+(L+1)+": Unexpected "+(w==I?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(k,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:P,expected:r})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+w);switch(T[0]){case 1:c.push(w),b.push(S.yytext),y.push(S.yylloc),c.push(T[1]),w=null,A=S.yyleng,E=S.yytext,L=S.yylineno,P=S.yylloc;break;case 2:if(a=this.productions_[T[1]][1],e.$=b[b.length-a],e._$={first_line:y[y.length-(a||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(a||1)].first_column,last_column:y[y.length-1].last_column},C&&(e._$.range=[y[y.length-(a||1)].range[0],y[y.length-1].range[1]]),V=this.performAction.apply(e,[E,A,L,M.yy,T[1],b,y].concat(z)),typeof V<"u")return V;a&&(c=c.slice(0,-1*a*2),b=b.slice(0,-1*a),y=y.slice(0,-1*a)),c.push(this.productions_[T[1]][0]),b.push(e.$),y.push(e._$),h=x[c[c.length-2]][c[c.length-1]],c.push(h);break;case 3:return!0}}return!0}},_=function(){var p={EOF:1,parseError:function(o,c){if(this.yy.parser)this.yy.parser.parseError(o,c);else throw new Error(o)},setInput:function(s,o){return this.yy=o||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var o=s.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var o=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===m.length?this.yylloc.first_column:0)+m[m.length-c.length].length-c[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),o=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
`+o+"^"},test_match:function(s,o){var c,m,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),m=s[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],c=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var y in b)this[y]=b[y];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,o,c,m;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),y=0;y<b.length;y++)if(c=this._input.match(this.rules[b[y]]),c&&(!o||c[0].length>o[0].length)){if(o=c,m=y,this.options.backtrack_lexer){if(s=this.test_match(c,b[y]),s!==!1)return s;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(s=this.test_match(o,b[m]),s!==!1?s:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return o||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{easy_keword_rules:!0},performAction:function(o,c,m,b){switch(m){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/,/^(?:$)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:(\u002C))/,/^(?:(\u0022))/,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/,/^(?:(\u0022)(?!(\u0022)))/,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return p}();u.lexer=_;function g(){this.yy={}}return g.prototype=u,u.Parser=g,new g}();tt.parser=tt;const q=tt;let X=[],Q=[],B={};const Nt=()=>{X=[],Q=[],B={},wt()};class Pt{constructor(n,i,l=0){this.source=n,this.target=i,this.value=l}}const Ct=(t,n,i)=>{X.push(new Pt(t,n,i))};class It{constructor(n){this.ID=n}}const Ot=t=>(t=St.sanitizeText(t,rt()),B[t]||(B[t]=new It(t),Q.push(B[t])),B[t]),$t=()=>Q,zt=()=>X,Dt=()=>({nodes:Q.map(t=>({id:t.ID})),links:X.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),jt={nodesMap:B,getConfig:()=>rt().sankey,getNodes:$t,getLinks:zt,getGraph:Dt,addLink:Ct,findOrCreateNode:Ot,getAccTitle:mt,setAccTitle:kt,getAccDescription:_t,setAccDescription:xt,getDiagramTitle:vt,setDiagramTitle:bt,clear:Nt};function ot(t,n){let i;if(n===void 0)for(const l of t)l!=null&&(i<l||i===void 0&&l>=l)&&(i=l);else{let l=-1;for(let u of t)(u=n(u,++l,t))!=null&&(i<u||i===void 0&&u>=u)&&(i=u)}return i}function yt(t,n){let i;if(n===void 0)for(const l of t)l!=null&&(i>l||i===void 0&&l>=l)&&(i=l);else{let l=-1;for(let u of t)(u=n(u,++l,t))!=null&&(i>u||i===void 0&&u>=u)&&(i=u)}return i}function Z(t,n){let i=0;if(n===void 0)for(let l of t)(l=+l)&&(i+=l);else{let l=-1;for(let u of t)(u=+n(u,++l,t))&&(i+=u)}return i}function Bt(t){return t.target.depth}function Vt(t){return t.depth}function Ut(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function Rt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,Bt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return H(t.source,n.source)||t.index-n.index}function at(t,n){return H(t.target,n.target)||t.index-n.index}function H(t,n){return t.y0-n.y0}function J(t){return t.value}function Wt(t){return t.index}function Ft(t){return t.nodes}function Gt(t){return t.links}function ct(t,n){const i=t.get(n);if(!i)throw new Error("missing: "+n);return i}function ut({nodes:t}){for(const n of t){let i=n.y0,l=i;for(const u of n.sourceLinks)u.y0=i+u.width/2,i+=u.width;for(const u of n.targetLinks)u.y1=l+u.width/2,l+=u.width}}function Yt(){let t=0,n=0,i=1,l=1,u=24,_=8,g,p=Wt,s=dt,o,c,m=Ft,b=Gt,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ut(e),e}x.update=function(e){return ut(e),e},x.nodeId=function(e){return arguments.length?(p=typeof e=="function"?e:Y(e),x):p},x.nodeAlign=function(e){return arguments.length?(s=typeof e=="function"?e:Y(e),x):s},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=g=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:Y(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,i=+e[0],l=+e[1],x):[i-t,l-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],i=+e[1][0],n=+e[0][1],l=+e[1][1],x):[[t,n],[i,l]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const a=new Map(e.map((h,r)=>[p(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=ct(a,k)),typeof v!="object"&&(v=r.target=ct(a,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function L({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function A({nodes:e}){const f=e.length;let a=new Set(e),h=new Set,r=0;for(;a.size;){for(const k of a){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");a=h,h=new Set}}function N({nodes:e}){const f=e.length;let a=new Set(e),h=new Set,r=0;for(;a.size;){for(const k of a){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");a=h,h=new Set}}function I({nodes:e}){const f=ot(e,r=>r.depth)+1,a=(i-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(s.call(null,r,f))));r.layer=k,r.x0=t+k*a,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function z(e){const f=yt(e,a=>(l-n-(a.length-1)*g)/Z(a,J));for(const a of e){let h=n;for(const r of a){r.y0=h,r.y1=h+r.value*f,h=r.y1+g;for(const k of r.sourceLinks)k.width=k.value*f}h=(l-h+g)/(a.length+1);for(let r=0;r<a.length;++r){const k=a[r];k.y0+=h*(r+1),k.y1+=h*(r+1)}O(a)}}function S(e){const f=I(e);g=Math.min(_,(l-n)/(ot(f,a=>a.length)-1)),z(f);for(let a=0;a<y;++a){const h=Math.pow(.99,a),r=Math.max(1-h,(a+1)/y);$(f,h,r),M(f,h,r)}}function M(e,f,a){for(let h=1,r=e.length;h<r;++h){const k=e[h];for(const v of k){let U=0,D=0;for(const{source:W,value:K}of v.targetLinks){let F=K*(v.layer-W.layer);U+=T(W,v)*F,D+=F}if(!(D>0))continue;let R=(U/D-v.y0)*f;v.y0+=R,v.y1+=R,w(v)}o===void 0&&k.sort(H),P(k,a)}}function $(e,f,a){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let U=0,D=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);U+=V(v,W)*F,D+=F}if(!(D>0))continue;let R=(U/D-v.y0)*f;v.y0+=R,v.y1+=R,w(v)}o===void 0&&k.sort(H),P(k,a)}}function P(e,f){const a=e.length>>1,h=e[a];d(e,h.y0-g,a-1,f),C(e,h.y1+g,a+1,f),d(e,l,e.length-1,f),C(e,n,0,f)}function C(e,f,a,h){for(;a<e.length;++a){const r=e[a],k=(f-r.y0)*h;k>1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+g}}function d(e,f,a,h){for(;a>=0;--a){const r=e[a],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-g}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:a}}of f)a.sort(at);for(const{target:{targetLinks:a}}of e)a.sort(lt)}}function O(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:a}of e)f.sort(at),a.sort(lt)}function T(e,f){let a=e.y0-(e.sourceLinks.length-1)*g/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;a+=r+g}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;a-=r}return a}function V(e,f){let a=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;a+=r+g}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;a-=r}return a}return x}var et=Math.PI,nt=2*et,j=1e-6,qt=nt-j;function it(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function gt(){return new it}it.prototype=gt.prototype={constructor:it,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,i,l){this._+="Q"+ +t+","+ +n+","+(this._x1=+i)+","+(this._y1=+l)},bezierCurveTo:function(t,n,i,l,u,_){this._+="C"+ +t+","+ +n+","+ +i+","+ +l+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,i,l,u){t=+t,n=+n,i=+i,l=+l,u=+u;var _=this._x1,g=this._y1,p=i-t,s=l-n,o=_-t,c=g-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>j)if(!(Math.abs(c*p-s*o)>j)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=i-_,y=l-g,x=p*p+s*s,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(m),N=u*Math.tan((et-Math.acos((x+m-E)/(2*L*A)))/2),I=N/A,z=N/L;Math.abs(I-1)>j&&(this._+="L"+(t+I*o)+","+(n+I*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+z*p)+","+(this._y1=n+z*s)}},arc:function(t,n,i,l,u,_){t=+t,n=+n,i=+i,_=!!_;var g=i*Math.cos(l),p=i*Math.sin(l),s=t+g,o=n+p,c=1^_,m=_?l-u:u-l;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+s+","+o:(Math.abs(this._x1-s)>j||Math.abs(this._y1-o)>j)&&(this._+="L"+s+","+o),i&&(m<0&&(m=m%nt+nt),m>qt?this._+="A"+i+","+i+",0,1,"+c+","+(t-g)+","+(n-p)+"A"+i+","+i+",0,1,"+c+","+(this._x1=s)+","+(this._y1=o):m>j&&(this._+="A"+i+","+i+",0,"+ +(m>=et)+","+c+","+(this._x1=t+i*Math.cos(u))+","+(this._y1=n+i*Math.sin(u))))},rect:function(t,n,i,l){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +i+"v"+ +l+"h"+-i+"Z"},toString:function(){return this._}};function ht(t){return function(){return t}}function Ht(t){return t[0]}function Xt(t){return t[1]}var Qt=Array.prototype.slice;function Kt(t){return t.source}function Zt(t){return t.target}function Jt(t){var n=Kt,i=Zt,l=Ht,u=Xt,_=null;function g(){var p,s=Qt.call(arguments),o=n.apply(this,s),c=i.apply(this,s);if(_||(_=p=gt()),t(_,+l.apply(this,(s[0]=o,s)),+u.apply(this,s),+l.apply(this,(s[0]=c,s)),+u.apply(this,s)),p)return _=null,p+""||null}return g.source=function(p){return arguments.length?(n=p,g):n},g.target=function(p){return arguments.length?(i=p,g):i},g.x=function(p){return arguments.length?(l=typeof p=="function"?p:ht(+p),g):l},g.y=function(p){return arguments.length?(u=typeof p=="function"?p:ht(+p),g):u},g.context=function(p){return arguments.length?(_=p??null,g):_},g}function te(t,n,i,l,u){t.moveTo(n,i),t.bezierCurveTo(n=(n+l)/2,i,n,u,l,u)}function ee(){return Jt(te)}function ne(t){return[t.source.x1,t.y0]}function ie(t){return[t.target.x0,t.y1]}function se(){return ee().source(ne).target(ie)}const pt=class st{static next(n){return new st(n+ ++st.count)}constructor(n){this.id=n,this.href=`#${n}`}toString(){return"url("+this.href+")"}};pt.count=0;let ft=pt;const re={left:Vt,right:Ut,center:Rt,justify:dt},oe=function(t,n,i,l){const{securityLevel:u,sankey:_}=rt(),g=Lt.sankey;let p;u==="sandbox"&&(p=G("#i"+n));const s=u==="sandbox"?G(p.nodes()[0].contentDocument.body):G("body"),o=u==="sandbox"?s.select(`[id="${n}"]`):G(`[id="${n}"]`),c=(_==null?void 0:_.width)??g.width,m=(_==null?void 0:_.height)??g.width,b=(_==null?void 0:_.useMaxWidth)??g.useMaxWidth,y=(_==null?void 0:_.nodeAlignment)??g.nodeAlignment,x=(_==null?void 0:_.prefix)??g.prefix,E=(_==null?void 0:_.suffix)??g.suffix,L=(_==null?void 0:_.showValues)??g.showValues,A=l.db.getGraph(),N=re[y];Yt().nodeId(d=>d.id).nodeWidth(10).nodePadding(10+(L?15:0)).nodeAlign(N).extent([[0,0],[c,m]])(A);const S=At(Mt);o.append("g").attr("class","nodes").selectAll(".node").data(A.nodes).join("g").attr("class","node").attr("id",d=>(d.uid=ft.next("node-")).id).attr("transform",function(d){return"translate("+d.x0+","+d.y0+")"}).attr("x",d=>d.x0).attr("y",d=>d.y0).append("rect").attr("height",d=>d.y1-d.y0).attr("width",d=>d.x1-d.x0).attr("fill",d=>S(d.id));const M=({id:d,value:w})=>L?`${d}
${x}${Math.round(w*100)/100}${E}`:d;o.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(A.nodes).join("text").attr("x",d=>d.x0<c/2?d.x1+6:d.x0-6).attr("y",d=>(d.y1+d.y0)/2).attr("dy",`${L?"0":"0.35"}em`).attr("text-anchor",d=>d.x0<c/2?"start":"end").text(M);const $=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(A.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),P=(_==null?void 0:_.linkColor)||"gradient";if(P==="gradient"){const d=$.append("linearGradient").attr("id",w=>(w.uid=ft.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",w=>w.source.x1).attr("x2",w=>w.target.x0);d.append("stop").attr("offset","0%").attr("stop-color",w=>S(w.source.id)),d.append("stop").attr("offset","100%").attr("stop-color",w=>S(w.target.id))}let C;switch(P){case"gradient":C=d=>d.uid;break;case"source":C=d=>S(d.source.id);break;case"target":C=d=>S(d.target.id);break;default:C=P}$.append("path").attr("d",se()).attr("stroke",C).attr("stroke-width",d=>Math.max(1,d.width)),Et(void 0,o,0,b)},le={draw:oe},ae=t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
`).trim(),ce=q.parse.bind(q);q.parse=t=>ce(ae(t));const ye={parser:q,db:jt,renderer:le};export{ye as diagram};
import{at as Te,ap as Ce,aq as Fe,as as Me,ar as De,ay as Ne,aV as Pe,ax as oe,az as Ye,aB as ke}from"./index-Hfn5l4aw.js";import{G as Ue,l as Be}from"./layout-94e1e85f-BAM45a7u.js";import{l as Qe}from"./line-b015ae81-MIcjsH1n.js";import"./array-b7dcf730-Nw74a44z.js";import"./path-39bad7e2-aUcfwwLI.js";var ce=function(){var e=function(V,i,r,a){for(r=r||{},a=V.length;a--;r[V[a]]=i);return r},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],E=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],ye=[1,48],fe=[1,49],_e=[1,50],Ee=[1,51],ge=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],z=[1,69],j=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,r,a,n,y,s,W){var _=s.length-1;switch(y){case 4:this.$=s[_].trim(),n.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),n.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:n.addRequirement(s[_-3],s[_-4]);break;case 14:n.setNewReqId(s[_-2]);break;case 15:n.setNewReqText(s[_-2]);break;case 16:n.setNewReqRisk(s[_-2]);break;case 17:n.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=n.RequirementType.REQUIREMENT;break;case 21:this.$=n.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=n.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=n.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=n.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=n.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=n.RiskLevel.LOW_RISK;break;case 27:this.$=n.RiskLevel.MED_RISK;break;case 28:this.$=n.RiskLevel.HIGH_RISK;break;case 29:this.$=n.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=n.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=n.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=n.VerifyType.VERIFY_TEST;break;case 33:n.addElement(s[_-3]);break;case 34:n.setNewElementType(s[_-2]);break;case 35:n.setNewElementDocRef(s[_-2]);break;case 38:n.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:n.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=n.Relationships.CONTAINS;break;case 41:this.$=n.Relationships.COPIES;break;case 42:this.$=n.Relationships.DERIVES;break;case 43:this.$=n.Relationships.SATISFIES;break;case 44:this.$=n.Relationships.VERIFIES;break;case 45:this.$=n.Relationships.REFINES;break;case 46:this.$=n.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:ye,57:fe,58:_e,59:Ee,60:ge,61:Re},{52:54,55:pe,56:ye,57:fe,58:_e,59:Ee,60:ge,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:z,30:j,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:z,30:j,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:z,30:j,46:110,47:X,49:J},{5:z,30:j,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=r,a}},parse:function(i){var r=this,a=[0],n=[],y=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),g=Object.create(this.lexer),L={yy:{}};for(var re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,re)&&(L.yy[re]=this.yy[re]);g.setInput(i,L.yy),L.yy.lexer=g,L.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var se=g.yylloc;s.push(se);var Oe=g.options&&g.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=n.pop()||g.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(n=$,$=n.pop()),$=r.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");g.showPosition?le="Parse error on line "+(Z+1)+`:
`+g.showPosition()+`
Expecting `+te.join(", ")+", got '"+(this.terminals_[I]||I)+"'":le="Parse error on line "+(Z+1)+": Unexpected "+(I==Ie?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(le,{text:g.match,token:this.terminals_[I]||I,line:g.yylineno,loc:se,expected:te})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+I);switch(S[0]){case 1:a.push(I),y.push(g.yytext),s.push(g.yylloc),a.push(S[1]),I=null,me=g.yyleng,_=g.yytext,Z=g.yylineno,se=g.yylloc;break;case 2:if(w=this.productions_[S[1]][1],Q.$=y[y.length-w],Q._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},Oe&&(Q._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),ae=this.performAction.apply(Q,[_,me,Z,L.yy,S[1],y,s].concat(qe)),typeof ae<"u")return ae;w&&(a=a.slice(0,-1*w*2),y=y.slice(0,-1*w),s=s.slice(0,-1*w)),a.push(this.productions_[S[1]][0]),y.push(Q.$),s.push(Q._$),be=W[a[a.length-2]][a[a.length-1]],a.push(be);break;case 3:return!0}}return!0}},$e=function(){var V={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===n.length?this.yylloc.first_column:0)+n[n.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+r+"^"},test_match:function(i,r){var a,n,y;if(this.options.backtrack_lexer&&(y={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(y.yylloc.range=this.yylloc.range.slice(0))),n=i[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],a=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var s in y)this[s]=y[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,r,a,n;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),s=0;s<y.length;s++)if(a=this._input.match(this.rules[y[s]]),a&&(!r||a[0].length>r[0].length)){if(r=a,n=s,this.options.backtrack_lexer){if(i=this.test_match(a,y[s]),i!==!1)return i;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(i=this.test_match(r,y[n]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,n,y){switch(n){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:return a.yytext=a.yytext.trim(),62}},rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50],inclusive:!0}}};return V}();ie.lexer=$e;function ne(){this.yy={}}return ne.prototype=ie,ie.Parser=ne,new ne}();ce.parser=ce;const He=ce;let ue=[],b={},K={},q={},G={};const We={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},Ke={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},Ge={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},ze={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},je=(e,t)=>(K[e]===void 0&&(K[e]={name:e,type:t,id:b.id,text:b.text,risk:b.risk,verifyMethod:b.verifyMethod}),b={},K[e]),Xe=()=>K,Je=e=>{b!==void 0&&(b.id=e)},Ze=e=>{b!==void 0&&(b.text=e)},et=e=>{b!==void 0&&(b.risk=e)},tt=e=>{b!==void 0&&(b.verifyMethod=e)},it=e=>(G[e]===void 0&&(G[e]={name:e,type:q.type,docRef:q.docRef},Ne.info("Added new requirement: ",e)),q={},G[e]),nt=()=>G,rt=e=>{q!==void 0&&(q.type=e)},st=e=>{q!==void 0&&(q.docRef=e)},at=(e,t,l)=>{ue.push({type:e,src:t,dst:l})},lt=()=>ue,ot=()=>{ue=[],b={},K={},q={},G={},Pe()},ct={RequirementType:We,RiskLevel:Ke,VerifyType:Ge,Relationships:ze,getConfig:()=>Te().req,addRequirement:je,getRequirements:Xe,setNewReqId:Je,setNewReqText:Ze,setNewReqRisk:et,setNewReqVerifyMethod:tt,setAccTitle:Ce,getAccTitle:Fe,setAccDescription:Me,getAccDescription:De,addElement:it,getElements:nt,setNewElementType:rt,setNewElementDocRef:st,addRelationship:at,getRelationships:lt,clear:ot},ht=e=>`
marker {
fill: ${e.relationColor};
stroke: ${e.relationColor};
}
marker.cross {
stroke: ${e.lineColor};
}
svg {
font-family: ${e.fontFamily};
font-size: ${e.fontSize};
}
.reqBox {
fill: ${e.requirementBackground};
fill-opacity: 1.0;
stroke: ${e.requirementBorderColor};
stroke-width: ${e.requirementBorderSize};
}
.reqTitle, .reqLabel{
fill: ${e.requirementTextColor};
}
.reqLabelBox {
fill: ${e.relationLabelBackground};
fill-opacity: 1.0;
}
.req-title-line {
stroke: ${e.requirementBorderColor};
stroke-width: ${e.requirementBorderSize};
}
.relationshipLine {
stroke: ${e.relationColor};
stroke-width: 1;
}
.relationshipLabel {
fill: ${e.relationLabelColor};
}
`,ut=ht,he={CONTAINS:"contains",ARROW:"arrow"},dt=(e,t)=>{let l=e.append("defs").append("marker").attr("id",he.CONTAINS+"_line_ending").attr("refX",0).attr("refY",t.line_height/2).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("g");l.append("circle").attr("cx",t.line_height/2).attr("cy",t.line_height/2).attr("r",t.line_height/2).attr("fill","none"),l.append("line").attr("x1",0).attr("x2",t.line_height).attr("y1",t.line_height/2).attr("y2",t.line_height/2).attr("stroke-width",1),l.append("line").attr("y1",0).attr("y2",t.line_height).attr("x1",t.line_height/2).attr("x2",t.line_height/2).attr("stroke-width",1),e.append("defs").append("marker").attr("id",he.ARROW+"_line_ending").attr("refX",t.line_height).attr("refY",.5*t.line_height).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("path").attr("d",`M0,0
L${t.line_height},${t.line_height/2}
M${t.line_height},${t.line_height/2}
L0,${t.line_height}`).attr("stroke-width",1)},xe={ReqMarkers:he,insertLineEndings:dt};let f={},Se=0;const Ae=(e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",f.rect_min_width+"px").attr("height",f.rect_min_height+"px"),ve=(e,t,l)=>{let c=f.rect_min_width/2,u=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",c).attr("y",f.rect_padding).attr("dominant-baseline","hanging"),d=0;l.forEach(E=>{d==0?u.append("tspan").attr("text-anchor","middle").attr("x",f.rect_min_width/2).attr("dy",0).text(E):u.append("tspan").attr("text-anchor","middle").attr("x",f.rect_min_width/2).attr("dy",f.line_height*.75).text(E),d++});let p=1.5*f.rect_padding,h=d*f.line_height*.75,o=p+h;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",f.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:u,y:o}},we=(e,t,l,c)=>{let u=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",f.rect_padding).attr("y",c).attr("dominant-baseline","hanging"),d=0;const p=30;let h=[];return l.forEach(o=>{let E=o.length;for(;E>p&&d<3;){let R=o.substring(0,p);o=o.substring(p,o.length),E=o.length,h[h.length]=R,d++}if(d==3){let R=h[h.length-1];h[h.length-1]=R.substring(0,R.length-4)+"..."}else h[h.length]=o;d=0}),h.forEach(o=>{u.append("tspan").attr("x",f.rect_padding).attr("dy",f.line_height).text(o)}),u},pt=(e,t,l,c)=>{const u=t.node().getTotalLength(),d=t.node().getPointAtLength(u*.5),p="rel"+Se;Se++;const o=e.append("text").attr("class","req relationshipLabel").attr("id",p).attr("x",d.x).attr("y",d.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(c).node().getBBox();e.insert("rect","#"+p).attr("class","req reqLabelBox").attr("x",d.x-o.width/2).attr("y",d.y-o.height/2).attr("width",o.width).attr("height",o.height).attr("fill","white").attr("fill-opacity","85%")},yt=function(e,t,l,c,u){const d=l.edge(H(t.src),H(t.dst)),p=Qe().x(function(o){return o.x}).y(function(o){return o.y}),h=e.insert("path","#"+c).attr("class","er relationshipLine").attr("d",p(d.points)).attr("fill","none");t.type==u.db.Relationships.CONTAINS?h.attr("marker-start","url("+ke.getUrl(f.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(h.attr("stroke-dasharray","10,7"),h.attr("marker-end","url("+ke.getUrl(f.arrowMarkerAbsolute)+"#"+xe.ReqMarkers.ARROW+"_line_ending)")),pt(e,h,f,`<<${t.type}>>`)},ft=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];c=H(c),Ne.info("Added new requirement: ",c);const d=l.append("g").attr("id",c),p="req-"+c,h=Ae(d,p);let o=ve(d,c+"_title",[`<<${u.type}>>`,`${u.name}`]);we(d,c+"_body",[`Id: ${u.id}`,`Text: ${u.text}`,`Risk: ${u.risk}`,`Verification: ${u.verifyMethod}`],o.y);const E=h.node().getBBox();t.setNode(c,{width:E.width,height:E.height,shape:"rect",id:c})})},_t=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];const d=H(c),p=l.append("g").attr("id",d),h="element-"+d,o=Ae(p,h);let E=ve(p,h+"_title",["<<Element>>",`${c}`]);we(p,h+"_body",[`Type: ${u.type||"Not Specified"}`,`Doc Ref: ${u.docRef||"None"}`],E.y);const R=o.node().getBBox();t.setNode(d,{width:R.width,height:R.height,shape:"rect",id:d})})},Et=(e,t)=>(e.forEach(function(l){let c=H(l.src),u=H(l.dst);t.setEdge(c,u,{relationship:l})}),e),gt=function(e,t){t.nodes().forEach(function(l){l!==void 0&&t.node(l)!==void 0&&(e.select("#"+l),e.select("#"+l).attr("transform","translate("+(t.node(l).x-t.node(l).width/2)+","+(t.node(l).y-t.node(l).height/2)+" )"))})},H=e=>e.replace(/\s/g,"").replace(/\./g,"_"),Rt=(e,t,l,c)=>{f=Te().requirement;const u=f.securityLevel;let d;u==="sandbox"&&(d=oe("#i"+t));const h=(u==="sandbox"?oe(d.nodes()[0].contentDocument.body):oe("body")).select(`[id='${t}']`);xe.insertLineEndings(h,f);const o=new Ue({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:f.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let E=c.db.getRequirements(),R=c.db.getElements(),A=c.db.getRelationships();ft(E,o,h),_t(R,o,h),Et(A,o),Be(o),gt(h,o),A.forEach(function(x){yt(h,x,o,t,c)});const T=f.rect_padding,N=h.node().getBBox(),v=N.width+T*2,k=N.height+T*2;Ye(h,k,v,f.useMaxWidth),h.attr("viewBox",`${N.x-T} ${N.y-T} ${v} ${k}`)},mt={draw:Rt},Nt={parser:He,db:ct,renderer:mt,styles:ut};export{Nt as diagram};
import{bd as vt,at as yt,b9 as D,ay as ot,ap as Lt,aq as Ct,aT as zt,aU as bt,ar as Et,as as Dt,aV as It,ax as gt,az as Bt,au as wt}from"./index-Hfn5l4aw.js";import{l as mt}from"./linear-ad2a9be7-2u7jZYmT.js";import"./init-cc95ec8e-Hi12RPRh.js";var pt=function(){var e=function(K,n,r,l){for(r=r||{},l=K.length;l--;r[K[l]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],m=[1,33],_=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:o.addPoint(a[u-3],a[u-1],a[u]);break;case 18:o.setXAxisLeftText(a[u-2]),o.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",o.setXAxisLeftText(a[u-1]);break;case 20:o.setXAxisLeftText(a[u]);break;case 21:o.setYAxisBottomText(a[u-2]),o.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",o.setYAxisBottomText(a[u-1]);break;case 23:o.setYAxisBottomText(a[u]);break;case 24:o.setQuadrant1Text(a[u]);break;case 25:o.setQuadrant2Text(a[u]);break;case 26:o.setQuadrant3Text(a[u]);break;case 27:o.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:m,42:_,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=r,l}},parse:function(n){var r=this,l=[0],o=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=o.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,_t,lt;;){if(J=l[l.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";lt=[];for(rt in et[J])this.terminals_[rt]&&rt>St&<.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`:
`+E.showPosition()+`
Expecting `+lt.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ft="Parse error on line "+(st+1)+": Unexpected "+(W==Tt?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(ft,{text:E.match,token:this.terminals_[W]||W,line:E.yylineno,loc:ut,expected:lt})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+W);switch(H[0]){case 1:l.push(W),q.push(E.yytext),a.push(E.yylloc),l.push(H[1]),W=null,qt=E.yyleng,u=E.yytext,st=E.yylineno,ut=E.yylloc;break;case 2:if($=this.productions_[H[1]][1],tt.$=q[q.length-$],tt._$={first_line:a[a.length-($||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-($||1)].first_column,last_column:a[a.length-1].last_column},Ft&&(tt._$.range=[a[a.length-($||1)].range[0],a[a.length-1].range[1]]),xt=this.performAction.apply(tt,[u,qt,st,Z.yy,H[1],q,a].concat(kt)),typeof xt<"u")return xt;$&&(l=l.slice(0,-1*$*2),q=q.slice(0,-1*$),a=a.slice(0,-1*$)),l.push(this.productions_[H[1]][0]),q.push(tt.$),a.push(tt._$),_t=et[l[l.length-2]][l[l.length-1]],l.push(_t);break;case 3:return!0}}return!0}},At=function(){var K={EOF:1,parseError:function(r,l){if(this.yy.parser)this.yy.parser.parseError(r,l);else throw new Error(r)},setInput:function(n,r){return this.yy=r||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var r=n.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var r=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var q=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===o.length?this.yylloc.first_column:0)+o[o.length-l.length].length-l[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),r=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
`+r+"^"},test_match:function(n,r){var l,o,q;if(this.options.backtrack_lexer&&(q={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(q.yylloc.range=this.yylloc.range.slice(0))),o=n[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],l=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var a in q)this[a]=q[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,r,l,o;this._more||(this.yytext="",this.match="");for(var q=this._currentRules(),a=0;a<q.length;a++)if(l=this._input.match(this.rules[q[a]]),l&&(!r||l[0].length>r[0].length)){if(r=l,o=a,this.options.backtrack_lexer){if(n=this.test_match(l,q[a]),n!==!1)return n;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(n=this.test_match(r,q[o]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,l,o,q){switch(o){case 0:break;case 1:break;case 2:return 32;case 3:break;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 22:this.popState();break;case 23:this.begin("string");break;case 24:this.popState();break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 28:this.popState();break;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:return 46;case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return K}();ht.lexer=At;function ct(){this.yy={}}return ct.prototype=ht,ht.Parser=ct,new ct}();pt.parser=pt;const Rt=pt,R=vt();class Vt{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var s,h,x,f,d,c,g,i,y,p,B,N,V,I,b,M,X,C;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((s=D.quadrantChart)==null?void 0:s.chartWidth)||500,chartWidth:((h=D.quadrantChart)==null?void 0:h.chartHeight)||500,titlePadding:((x=D.quadrantChart)==null?void 0:x.titlePadding)||10,titleFontSize:((f=D.quadrantChart)==null?void 0:f.titleFontSize)||20,quadrantPadding:((d=D.quadrantChart)==null?void 0:d.quadrantPadding)||5,xAxisLabelPadding:((c=D.quadrantChart)==null?void 0:c.xAxisLabelPadding)||5,yAxisLabelPadding:((g=D.quadrantChart)==null?void 0:g.yAxisLabelPadding)||5,xAxisLabelFontSize:((i=D.quadrantChart)==null?void 0:i.xAxisLabelFontSize)||16,yAxisLabelFontSize:((y=D.quadrantChart)==null?void 0:y.yAxisLabelFontSize)||16,quadrantLabelFontSize:((p=D.quadrantChart)==null?void 0:p.quadrantLabelFontSize)||16,quadrantTextTopPadding:((B=D.quadrantChart)==null?void 0:B.quadrantTextTopPadding)||5,pointTextPadding:((N=D.quadrantChart)==null?void 0:N.pointTextPadding)||5,pointLabelFontSize:((V=D.quadrantChart)==null?void 0:V.pointLabelFontSize)||12,pointRadius:((I=D.quadrantChart)==null?void 0:I.pointRadius)||5,xAxisPosition:((b=D.quadrantChart)==null?void 0:b.xAxisPosition)||"top",yAxisPosition:((M=D.quadrantChart)==null?void 0:M.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((X=D.quadrantChart)==null?void 0:X.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((C=D.quadrantChart)==null?void 0:C.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:R.quadrant1Fill,quadrant2Fill:R.quadrant2Fill,quadrant3Fill:R.quadrant3Fill,quadrant4Fill:R.quadrant4Fill,quadrant1TextFill:R.quadrant1TextFill,quadrant2TextFill:R.quadrant2TextFill,quadrant3TextFill:R.quadrant3TextFill,quadrant4TextFill:R.quadrant4TextFill,quadrantPointFill:R.quadrantPointFill,quadrantPointTextFill:R.quadrantPointTextFill,quadrantXAxisTextFill:R.quadrantXAxisTextFill,quadrantYAxisTextFill:R.quadrantYAxisTextFill,quadrantTitleFill:R.quadrantTitleFill,quadrantInternalBorderStrokeFill:R.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:R.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),ot.info("clear called")}setData(s){this.data={...this.data,...s}}addPoints(s){this.data.points=[...s,...this.data.points]}setConfig(s){ot.trace("setConfig called with: ",s),this.config={...this.config,...s}}setThemeConfig(s){ot.trace("setThemeConfig called with: ",s),this.themeConfig={...this.themeConfig,...s}}calculateSpace(s,h,x,f){const d=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,c={top:s==="top"&&h?d:0,bottom:s==="bottom"&&h?d:0},g=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,i={left:this.config.yAxisPosition==="left"&&x?g:0,right:this.config.yAxisPosition==="right"&&x?g:0},y=this.config.titleFontSize+this.config.titlePadding*2,p={top:f?y:0},B=this.config.quadrantPadding+i.left,N=this.config.quadrantPadding+c.top+p.top,V=this.config.chartWidth-this.config.quadrantPadding*2-i.left-i.right,I=this.config.chartHeight-this.config.quadrantPadding*2-c.top-c.bottom-p.top,b=V/2,M=I/2;return{xAxisSpace:c,yAxisSpace:i,titleSpace:p,quadrantSpace:{quadrantLeft:B,quadrantTop:N,quadrantWidth:V,quadrantHalfWidth:b,quadrantHeight:I,quadrantHalfHeight:M}}}getAxisLabels(s,h,x,f){const{quadrantSpace:d,titleSpace:c}=f,{quadrantHalfHeight:g,quadrantHeight:i,quadrantLeft:y,quadrantHalfWidth:p,quadrantTop:B,quadrantWidth:N}=d,V=!!this.data.xAxisRightText,I=!!this.data.yAxisTopText,b=[];return this.data.xAxisLeftText&&h&&b.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:y+(V?p/2:0),y:s==="top"?this.config.xAxisLabelPadding+c.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:V?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&h&&b.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:y+p+(V?p/2:0),y:s==="top"?this.config.xAxisLabelPadding+c.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:V?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&x&&b.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+y+N+this.config.quadrantPadding,y:B+i-(I?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&x&&b.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+y+N+this.config.quadrantPadding,y:B+g-(I?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),b}getQuadrants(s){const{quadrantSpace:h}=s,{quadrantHalfHeight:x,quadrantLeft:f,quadrantHalfWidth:d,quadrantTop:c}=h,g=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+d,y:c,width:d,height:x,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:c,width:d,height:x,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:c+x,width:d,height:x,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+d,y:c+x,width:d,height:x,fill:this.themeConfig.quadrant4Fill}];for(const i of g)i.text.x=i.x+i.width/2,this.data.points.length===0?(i.text.y=i.y+i.height/2,i.text.horizontalPos="middle"):(i.text.y=i.y+this.config.quadrantTextTopPadding,i.text.horizontalPos="top");return g}getQuadrantPoints(s){const{quadrantSpace:h}=s,{quadrantHeight:x,quadrantLeft:f,quadrantTop:d,quadrantWidth:c}=h,g=mt().domain([0,1]).range([f,c+f]),i=mt().domain([0,1]).range([x+d,d]);return this.data.points.map(p=>({x:g(p.x),y:i(p.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:p.text,fill:this.themeConfig.quadrantPointTextFill,x:g(p.x),y:i(p.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}}))}getBorders(s){const h=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:x}=s,{quadrantHalfHeight:f,quadrantHeight:d,quadrantLeft:c,quadrantHalfWidth:g,quadrantTop:i,quadrantWidth:y}=x;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c-h,y1:i,x2:c+y+h,y2:i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c+y,y1:i+h,x2:c+y,y2:i+d-h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c-h,y1:i+d,x2:c+y+h,y2:i+d},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c,y1:i+h,x2:c,y2:i+d-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:c+g,y1:i+h,x2:c+g,y2:i+d-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:c+h,y1:i+f,x2:c+y-h,y2:i+f}]}getTitle(s){if(s)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const s=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),h=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),x=this.config.showTitle&&!!this.data.titleText,f=this.data.points.length>0?"bottom":this.config.xAxisPosition,d=this.calculateSpace(f,s,h,x);return{points:this.getQuadrantPoints(d),quadrants:this.getQuadrants(d),axisLabels:this.getAxisLabels(f,s,h,d),borderLines:this.getBorders(d),title:this.getTitle(x)}}}const Wt=yt();function G(e){return wt(e.trim(),Wt)}const w=new Vt;function Nt(e){w.setData({quadrant1Text:G(e.text)})}function Ut(e){w.setData({quadrant2Text:G(e.text)})}function Qt(e){w.setData({quadrant3Text:G(e.text)})}function Ht(e){w.setData({quadrant4Text:G(e.text)})}function Mt(e){w.setData({xAxisLeftText:G(e.text)})}function Xt(e){w.setData({xAxisRightText:G(e.text)})}function Ot(e){w.setData({yAxisTopText:G(e.text)})}function Yt(e){w.setData({yAxisBottomText:G(e.text)})}function $t(e,s,h){w.addPoints([{x:s,y:h,text:G(e.text)}])}function jt(e){w.setConfig({chartWidth:e})}function Gt(e){w.setConfig({chartHeight:e})}function Kt(){const e=yt(),{themeVariables:s,quadrantChart:h}=e;return h&&w.setConfig(h),w.setThemeConfig({quadrant1Fill:s.quadrant1Fill,quadrant2Fill:s.quadrant2Fill,quadrant3Fill:s.quadrant3Fill,quadrant4Fill:s.quadrant4Fill,quadrant1TextFill:s.quadrant1TextFill,quadrant2TextFill:s.quadrant2TextFill,quadrant3TextFill:s.quadrant3TextFill,quadrant4TextFill:s.quadrant4TextFill,quadrantPointFill:s.quadrantPointFill,quadrantPointTextFill:s.quadrantPointTextFill,quadrantXAxisTextFill:s.quadrantXAxisTextFill,quadrantYAxisTextFill:s.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:s.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:s.quadrantInternalBorderStrokeFill,quadrantTitleFill:s.quadrantTitleFill}),w.setData({titleText:bt()}),w.build()}const Zt=function(){w.clear(),It()},Jt={setWidth:jt,setHeight:Gt,setQuadrant1Text:Nt,setQuadrant2Text:Ut,setQuadrant3Text:Qt,setQuadrant4Text:Ht,setXAxisLeftText:Mt,setXAxisRightText:Xt,setYAxisTopText:Ot,setYAxisBottomText:Yt,addPoint:$t,getQuadrantData:Kt,clear:Zt,setAccTitle:Lt,getAccTitle:Ct,setDiagramTitle:zt,getDiagramTitle:bt,getAccDescription:Et,setAccDescription:Dt},te=(e,s,h,x)=>{var f,d,c;function g(t){return t==="top"?"hanging":"middle"}function i(t){return t==="left"?"start":"middle"}function y(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}const p=yt();ot.debug(`Rendering quadrant chart
`+e);const B=p.securityLevel;let N;B==="sandbox"&&(N=gt("#i"+s));const I=(B==="sandbox"?gt(N.nodes()[0].contentDocument.body):gt("body")).select(`[id="${s}"]`),b=I.append("g").attr("class","main"),M=((f=p.quadrantChart)==null?void 0:f.chartWidth)||500,X=((d=p.quadrantChart)==null?void 0:d.chartHeight)||500;Bt(I,X,M,((c=p.quadrantChart)==null?void 0:c.useMaxWidth)||!0),I.attr("viewBox","0 0 "+M+" "+X),x.db.setHeight(X),x.db.setWidth(M);const C=x.db.getQuadrantData(),it=b.append("g").attr("class","quadrants"),at=b.append("g").attr("class","border"),nt=b.append("g").attr("class","data-points"),U=b.append("g").attr("class","labels"),Q=b.append("g").attr("class","title");C.title&&Q.append("text").attr("x",0).attr("y",0).attr("fill",C.title.fill).attr("font-size",C.title.fontSize).attr("dominant-baseline",g(C.title.horizontalPos)).attr("text-anchor",i(C.title.verticalPos)).attr("transform",y(C.title)).text(C.title.text),C.borderLines&&at.selectAll("line").data(C.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth);const T=it.selectAll("g.quadrant").data(C.quadrants).enter().append("g").attr("class","quadrant");T.append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),T.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>g(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>y(t.text)).text(t=>t.text.text),U.selectAll("g.label").data(C.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>g(t.horizontalPos)).attr("text-anchor",t=>i(t.verticalPos)).attr("transform",t=>y(t));const _=nt.selectAll("g.data-point").data(C.points).enter().append("g").attr("class","data-point");_.append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill),_.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>g(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>y(t.text))},ee={draw:te},se={parser:Rt,db:Jt,renderer:ee,styles:()=>""};export{se as diagram};
import{b2 as Ca,b4 as Vl,au as mp,at as nn,ay as Wr,ax as ei,aI as bp,c6 as Ep,c7 as wp,c8 as xp}from"./index-Hfn5l4aw.js";import{a as Tp}from"./createText-77e212b0-L6d34XR_.js";var Ki=function(){var pe=function(j,Y,te,L){for(te=te||{},L=j.length;L--;te[j[L]]=Y);return te},ve=[1,4],ee=[1,13],he=[1,12],H=[1,15],O=[1,16],T=[1,20],x=[1,19],S=[6,7,8],z=[1,26],U=[1,24],P=[1,25],K=[6,7,11],D=[1,6,13,15,16,19,22],V=[1,33],_=[1,34],Q=[1,6,7,11,13,15,16,19,22],ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(Y,te,L,$,k,W,fe){var ge=W.length-1;switch(k){case 6:case 7:return $;case 8:$.getLogger().trace("Stop NL ");break;case 9:$.getLogger().trace("Stop EOF ");break;case 11:$.getLogger().trace("Stop NL2 ");break;case 12:$.getLogger().trace("Stop EOF2 ");break;case 15:$.getLogger().info("Node: ",W[ge].id),$.addNode(W[ge-1].length,W[ge].id,W[ge].descr,W[ge].type);break;case 16:$.getLogger().trace("Icon: ",W[ge]),$.decorateNode({icon:W[ge]});break;case 17:case 21:$.decorateNode({class:W[ge]});break;case 18:$.getLogger().trace("SPACELIST");break;case 19:$.getLogger().trace("Node: ",W[ge].id),$.addNode(0,W[ge].id,W[ge].descr,W[ge].type);break;case 20:$.decorateNode({icon:W[ge]});break;case 25:$.getLogger().trace("node found ..",W[ge-2]),this.$={id:W[ge-1],descr:W[ge-1],type:$.getType(W[ge-2],W[ge])};break;case 26:this.$={id:W[ge],descr:W[ge],type:$.nodeType.DEFAULT};break;case 27:$.getLogger().trace("node found ..",W[ge-3]),this.$={id:W[ge-3],descr:W[ge-1],type:$.getType(W[ge-2],W[ge])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:ve},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:ve},{6:ee,7:[1,10],9:9,12:11,13:he,14:14,15:H,16:O,17:17,18:18,19:T,22:x},pe(S,[2,3]),{1:[2,2]},pe(S,[2,4]),pe(S,[2,5]),{1:[2,6],6:ee,12:21,13:he,14:14,15:H,16:O,17:17,18:18,19:T,22:x},{6:ee,9:22,12:11,13:he,14:14,15:H,16:O,17:17,18:18,19:T,22:x},{6:z,7:U,10:23,11:P},pe(K,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:T,22:x}),pe(K,[2,18]),pe(K,[2,19]),pe(K,[2,20]),pe(K,[2,21]),pe(K,[2,23]),pe(K,[2,24]),pe(K,[2,26],{19:[1,30]}),{20:[1,31]},{6:z,7:U,10:32,11:P},{1:[2,7],6:ee,12:21,13:he,14:14,15:H,16:O,17:17,18:18,19:T,22:x},pe(D,[2,14],{7:V,11:_}),pe(Q,[2,8]),pe(Q,[2,9]),pe(Q,[2,10]),pe(K,[2,15]),pe(K,[2,16]),pe(K,[2,17]),{20:[1,35]},{21:[1,36]},pe(D,[2,13],{7:V,11:_}),pe(Q,[2,11]),pe(Q,[2,12]),{21:[1,37]},pe(K,[2,25]),pe(K,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(Y,te){if(te.recoverable)this.trace(Y);else{var L=new Error(Y);throw L.hash=te,L}},parse:function(Y){var te=this,L=[0],$=[],k=[null],W=[],fe=this.table,ge="",Ae=0,Ne=0,_e=2,tt=1,ht=W.slice.call(arguments,1),Pe=Object.create(this.lexer),$e={yy:{}};for(var Xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Xe)&&($e.yy[Xe]=this.yy[Xe]);Pe.setInput(Y,$e.yy),$e.yy.lexer=Pe,$e.yy.parser=this,typeof Pe.yylloc>"u"&&(Pe.yylloc={});var rt=Pe.yylloc;W.push(rt);var ut=Pe.options&&Pe.options.ranges;typeof $e.yy.parseError=="function"?this.parseError=$e.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var jt;return jt=$.pop()||Pe.lex()||tt,typeof jt!="number"&&(jt instanceof Array&&($=jt,jt=$.pop()),jt=te.symbols_[jt]||jt),jt}for(var je,pt,Et,kt,ct={},cr,Wt,sn,Kr;;){if(pt=L[L.length-1],this.defaultActions[pt]?Et=this.defaultActions[pt]:((je===null||typeof je>"u")&&(je=nt()),Et=fe[pt]&&fe[pt][je]),typeof Et>"u"||!Et.length||!Et[0]){var Da="";Kr=[];for(cr in fe[pt])this.terminals_[cr]&&cr>_e&&Kr.push("'"+this.terminals_[cr]+"'");Pe.showPosition?Da="Parse error on line "+(Ae+1)+`:
`+Pe.showPosition()+`
Expecting `+Kr.join(", ")+", got '"+(this.terminals_[je]||je)+"'":Da="Parse error on line "+(Ae+1)+": Unexpected "+(je==tt?"end of input":"'"+(this.terminals_[je]||je)+"'"),this.parseError(Da,{text:Pe.match,token:this.terminals_[je]||je,line:Pe.yylineno,loc:rt,expected:Kr})}if(Et[0]instanceof Array&&Et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pt+", token: "+je);switch(Et[0]){case 1:L.push(je),k.push(Pe.yytext),W.push(Pe.yylloc),L.push(Et[1]),je=null,Ne=Pe.yyleng,ge=Pe.yytext,Ae=Pe.yylineno,rt=Pe.yylloc;break;case 2:if(Wt=this.productions_[Et[1]][1],ct.$=k[k.length-Wt],ct._$={first_line:W[W.length-(Wt||1)].first_line,last_line:W[W.length-1].last_line,first_column:W[W.length-(Wt||1)].first_column,last_column:W[W.length-1].last_column},ut&&(ct._$.range=[W[W.length-(Wt||1)].range[0],W[W.length-1].range[1]]),kt=this.performAction.apply(ct,[ge,Ne,Ae,$e.yy,Et[1],k,W].concat(ht)),typeof kt<"u")return kt;Wt&&(L=L.slice(0,-1*Wt*2),k=k.slice(0,-1*Wt),W=W.slice(0,-1*Wt)),L.push(this.productions_[Et[1]][0]),k.push(ct.$),W.push(ct._$),sn=fe[L[L.length-2]][L[L.length-1]],L.push(sn);break;case 3:return!0}}return!0}},le=function(){var j={EOF:1,parseError:function(te,L){if(this.yy.parser)this.yy.parser.parseError(te,L);else throw new Error(te)},setInput:function(Y,te){return this.yy=te||this.yy||{},this._input=Y,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Y=this._input[0];this.yytext+=Y,this.yyleng++,this.offset++,this.match+=Y,this.matched+=Y;var te=Y.match(/(?:\r\n?|\n).*/g);return te?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Y},unput:function(Y){var te=Y.length,L=Y.split(/(?:\r\n?|\n)/g);this._input=Y+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-te),this.offset-=te;var $=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),L.length-1&&(this.yylineno-=L.length-1);var k=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:L?(L.length===$.length?this.yylloc.first_column:0)+$[$.length-L.length].length-L[0].length:this.yylloc.first_column-te},this.options.ranges&&(this.yylloc.range=[k[0],k[0]+this.yyleng-te]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Y){this.unput(this.match.slice(Y))},pastInput:function(){var Y=this.matched.substr(0,this.matched.length-this.match.length);return(Y.length>20?"...":"")+Y.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Y=this.match;return Y.length<20&&(Y+=this._input.substr(0,20-Y.length)),(Y.substr(0,20)+(Y.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Y=this.pastInput(),te=new Array(Y.length+1).join("-");return Y+this.upcomingInput()+`
`+te+"^"},test_match:function(Y,te){var L,$,k;if(this.options.backtrack_lexer&&(k={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(k.yylloc.range=this.yylloc.range.slice(0))),$=Y[0].match(/(?:\r\n?|\n).*/g),$&&(this.yylineno+=$.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$?$[$.length-1].length-$[$.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Y[0].length},this.yytext+=Y[0],this.match+=Y[0],this.matches=Y,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Y[0].length),this.matched+=Y[0],L=this.performAction.call(this,this.yy,this,te,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),L)return L;if(this._backtrack){for(var W in k)this[W]=k[W];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Y,te,L,$;this._more||(this.yytext="",this.match="");for(var k=this._currentRules(),W=0;W<k.length;W++)if(L=this._input.match(this.rules[k[W]]),L&&(!te||L[0].length>te[0].length)){if(te=L,$=W,this.options.backtrack_lexer){if(Y=this.test_match(L,k[W]),Y!==!1)return Y;if(this._backtrack){te=!1;continue}else return!1}else if(!this.options.flex)break}return te?(Y=this.test_match(te,k[$]),Y!==!1?Y:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var te=this.next();return te||this.lex()},begin:function(te){this.conditionStack.push(te)},popState:function(){var te=this.conditionStack.length-1;return te>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(te){return te=this.conditionStack.length-1-Math.abs(te||0),te>=0?this.conditionStack[te]:"INITIAL"},pushState:function(te){this.begin(te)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(te,L,$,k){switch($){case 0:return te.getLogger().trace("Found comment",L.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:te.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return te.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:te.getLogger().trace("end icon"),this.popState();break;case 10:return te.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return te.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return te.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return te.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:te.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return te.getLogger().trace("description:",L.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),te.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),te.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),te.getLogger().trace("node end ...",L.yytext),"NODE_DEND";case 30:return this.popState(),te.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),te.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),te.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),te.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),te.getLogger().trace("node end (("),"NODE_DEND";case 35:return te.getLogger().trace("Long description:",L.yytext),20;case 36:return te.getLogger().trace("Long description:",L.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return j}();ne.lexer=le;function J(){this.yy={}}return J.prototype=ne,ne.Parser=J,new J}();Ki.parser=Ki;const Cp=Ki,on=pe=>mp(pe,nn());let Jt=[],_l=0,Zi={};const Dp=()=>{Jt=[],_l=0,Zi={}},Sp=function(pe){for(let ve=Jt.length-1;ve>=0;ve--)if(Jt[ve].level<pe)return Jt[ve];return null},Lp=()=>Jt.length>0?Jt[0]:null,Ap=(pe,ve,ee,he)=>{Wr.info("addNode",pe,ve,ee,he);const H=nn(),O={id:_l++,nodeId:on(ve),level:pe,descr:on(ee),type:he,children:[],width:nn().mindmap.maxNodeWidth};switch(O.type){case yt.ROUNDED_RECT:O.padding=2*H.mindmap.padding;break;case yt.RECT:O.padding=2*H.mindmap.padding;break;case yt.HEXAGON:O.padding=2*H.mindmap.padding;break;default:O.padding=H.mindmap.padding}const T=Sp(pe);if(T)T.children.push(O),Jt.push(O);else if(Jt.length===0)Jt.push(O);else{let x=new Error('There can be only one root. No parent could be found for ("'+O.descr+'")');throw x.hash={text:"branch "+name,token:"branch "+name,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+name+'"']},x}},yt={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Op=(pe,ve)=>{switch(Wr.debug("In get type",pe,ve),pe){case"[":return yt.RECT;case"(":return ve===")"?yt.ROUNDED_RECT:yt.CLOUD;case"((":return yt.CIRCLE;case")":return yt.CLOUD;case"))":return yt.BANG;case"{{":return yt.HEXAGON;default:return yt.DEFAULT}},Ul=(pe,ve)=>{Zi[pe]=ve},Np=pe=>{const ve=Jt[Jt.length-1];pe&&pe.icon&&(ve.icon=on(pe.icon)),pe&&pe.class&&(ve.class=on(pe.class))},qr=pe=>{switch(pe){case yt.DEFAULT:return"no-border";case yt.RECT:return"rect";case yt.ROUNDED_RECT:return"rounded-rect";case yt.CIRCLE:return"circle";case yt.CLOUD:return"cloud";case yt.BANG:return"bang";case yt.HEXAGON:return"hexgon";default:return"no-border"}};let Yl;const Mp=pe=>{Yl=pe},Ip=()=>Wr,Rp=pe=>Jt[pe],Qi=pe=>Zi[pe],kp=Object.freeze(Object.defineProperty({__proto__:null,addNode:Ap,clear:Dp,decorateNode:Np,getElementById:Qi,getLogger:Ip,getMindmap:Lp,getNodeById:Rp,getType:Op,nodeType:yt,get parseError(){return Yl},sanitizeText:on,setElementForId:Ul,setErrorHandler:Mp,type2Str:qr},Symbol.toStringTag,{value:"Module"})),Hl=12,Pp=function(pe,ve,ee){pe.append("path").attr("id","node-"+ve.id).attr("class","node-bkg node-"+qr(ve.type)).attr("d",`M0 ${ve.height-5} v${-ve.height+2*5} q0,-5 5,-5 h${ve.width-2*5} q5,0 5,5 v${ve.height-5} H0 Z`),pe.append("line").attr("class","node-line-"+ee).attr("x1",0).attr("y1",ve.height).attr("x2",ve.width).attr("y2",ve.height)},Bp=function(pe,ve){pe.append("rect").attr("id","node-"+ve.id).attr("class","node-bkg node-"+qr(ve.type)).attr("height",ve.height).attr("width",ve.width)},Fp=function(pe,ve){const ee=ve.width,he=ve.height,H=.15*ee,O=.25*ee,T=.35*ee,x=.2*ee;pe.append("path").attr("id","node-"+ve.id).attr("class","node-bkg node-"+qr(ve.type)).attr("d",`M0 0 a${H},${H} 0 0,1 ${ee*.25},${-1*ee*.1}
a${T},${T} 1 0,1 ${ee*.4},${-1*ee*.1}
a${O},${O} 1 0,1 ${ee*.35},${1*ee*.2}
a${H},${H} 1 0,1 ${ee*.15},${1*he*.35}
a${x},${x} 1 0,1 ${-1*ee*.15},${1*he*.65}
a${O},${H} 1 0,1 ${-1*ee*.25},${ee*.15}
a${T},${T} 1 0,1 ${-1*ee*.5},0
a${H},${H} 1 0,1 ${-1*ee*.25},${-1*ee*.15}
a${H},${H} 1 0,1 ${-1*ee*.1},${-1*he*.35}
a${x},${x} 1 0,1 ${ee*.1},${-1*he*.65}
H0 V0 Z`)},Gp=function(pe,ve){const ee=ve.width,he=ve.height,H=.15*ee;pe.append("path").attr("id","node-"+ve.id).attr("class","node-bkg node-"+qr(ve.type)).attr("d",`M0 0 a${H},${H} 1 0,0 ${ee*.25},${-1*he*.1}
a${H},${H} 1 0,0 ${ee*.25},0
a${H},${H} 1 0,0 ${ee*.25},0
a${H},${H} 1 0,0 ${ee*.25},${1*he*.1}
a${H},${H} 1 0,0 ${ee*.15},${1*he*.33}
a${H*.8},${H*.8} 1 0,0 0,${1*he*.34}
a${H},${H} 1 0,0 ${-1*ee*.15},${1*he*.33}
a${H},${H} 1 0,0 ${-1*ee*.25},${he*.15}
a${H},${H} 1 0,0 ${-1*ee*.25},0
a${H},${H} 1 0,0 ${-1*ee*.25},0
a${H},${H} 1 0,0 ${-1*ee*.25},${-1*he*.15}
a${H},${H} 1 0,0 ${-1*ee*.1},${-1*he*.33}
a${H*.8},${H*.8} 1 0,0 0,${-1*he*.34}
a${H},${H} 1 0,0 ${ee*.1},${-1*he*.33}
H0 V0 Z`)},zp=function(pe,ve){pe.append("circle").attr("id","node-"+ve.id).attr("class","node-bkg node-"+qr(ve.type)).attr("r",ve.width/2)};function $p(pe,ve,ee,he,H){return pe.insert("polygon",":first-child").attr("points",he.map(function(O){return O.x+","+O.y}).join(" ")).attr("transform","translate("+(H.width-ve)/2+", "+ee+")")}const Vp=function(pe,ve){const ee=ve.height,H=ee/4,O=ve.width-ve.padding+2*H,T=[{x:H,y:0},{x:O-H,y:0},{x:O,y:-ee/2},{x:O-H,y:-ee},{x:H,y:-ee},{x:0,y:-ee/2}];$p(pe,O,ee,T,ve)},_p=function(pe,ve){pe.append("rect").attr("id","node-"+ve.id).attr("class","node-bkg node-"+qr(ve.type)).attr("height",ve.height).attr("rx",ve.padding).attr("ry",ve.padding).attr("width",ve.width)},Up=function(pe,ve,ee,he){const H=he.htmlLabels,O=ee%(Hl-1),T=pe.append("g");ve.section=O;let x="section-"+O;O<0&&(x+=" section-root"),T.attr("class",(ve.class?ve.class+" ":"")+"mindmap-node "+x);const S=T.append("g"),z=T.append("g"),U=ve.descr.replace(/(<br\/*>)/g,`
`);Tp(z,U,{useHtmlLabels:H,width:ve.width,classes:"mindmap-node-label"}),H||z.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const P=z.node().getBBox(),K=he.fontSize.replace?he.fontSize.replace("px",""):he.fontSize;if(ve.height=P.height+K*1.1*.5+ve.padding,ve.width=P.width+2*ve.padding,ve.icon)if(ve.type===yt.CIRCLE)ve.height+=50,ve.width+=50,T.append("foreignObject").attr("height","50px").attr("width",ve.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+O+" "+ve.icon),z.attr("transform","translate("+ve.width/2+", "+(ve.height/2-1.5*ve.padding)+")");else{ve.width+=50;const D=ve.height;ve.height=Math.max(D,60);const V=Math.abs(ve.height-D);T.append("foreignObject").attr("width","60px").attr("height",ve.height).attr("style","text-align: center;margin-top:"+V/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+O+" "+ve.icon),z.attr("transform","translate("+(25+ve.width/2)+", "+(V/2+ve.padding/2)+")")}else if(H){const D=(ve.width-P.width)/2,V=(ve.height-P.height)/2;z.attr("transform","translate("+D+", "+V+")")}else{const D=ve.width/2,V=ve.padding/2;z.attr("transform","translate("+D+", "+V+")")}switch(ve.type){case yt.DEFAULT:Pp(S,ve,O);break;case yt.ROUNDED_RECT:_p(S,ve);break;case yt.RECT:Bp(S,ve);break;case yt.CIRCLE:S.attr("transform","translate("+ve.width/2+", "+ +ve.height/2+")"),zp(S,ve);break;case yt.CLOUD:Fp(S,ve);break;case yt.BANG:Gp(S,ve);break;case yt.HEXAGON:Vp(S,ve);break}return Ul(ve.id,T),ve.height},Yp=function(ve,ee,he,H,O){const T=O%(Hl-1),x=he.x+he.width/2,S=he.y+he.height/2,z=ee.x+ee.width/2,U=ee.y+ee.height/2,P=z>x?x+Math.abs(x-z)/2:x-Math.abs(x-z)/2,K=U>S?S+Math.abs(S-U)/2:S-Math.abs(S-U)/2,D=z>x?Math.abs(x-P)/2+x:-Math.abs(x-P)/2+x,V=U>S?Math.abs(S-K)/2+S:-Math.abs(S-K)/2+S;ve.append("path").attr("d",he.direction==="TB"||he.direction==="BT"?`M${x},${S} Q${x},${V} ${P},${K} T${z},${U}`:`M${x},${S} Q${D},${S} ${P},${K} T${z},${U}`).attr("class","edge section-edge-"+T+" edge-depth-"+H)},Hp=function(pe){const ve=Qi(pe.id),ee=pe.x||0,he=pe.y||0;ve.attr("transform","translate("+ee+","+he+")")},Xl={drawNode:Up,positionNode:Hp,drawEdge:Yp};var Wl={exports:{}};(function(pe,ve){(function(ee,he){pe.exports=he()})(Ca,function(){function ee(t){"@babel/helpers - typeof";return ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(t)}function he(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function H(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function O(t,e,r){return e&&H(t.prototype,e),r&&H(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function T(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function x(t,e){return S(t)||z(t,e)||U(t,e)||K()}function S(t){if(Array.isArray(t))return t}function z(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var a=[],n=!0,i=!1,o,s;try{for(r=r.call(t);!(n=(o=r.next()).done)&&(a.push(o.value),!(e&&a.length===e));n=!0);}catch(u){i=!0,s=u}finally{try{!n&&r.return!=null&&r.return()}finally{if(i)throw s}}return a}}function U(t,e){if(t){if(typeof t=="string")return P(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P(t,e)}}function P(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function K(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var D=typeof window>"u"?null:window,V=D?D.navigator:null;D&&D.document;var _=ee(""),Q=ee({}),ne=ee(function(){}),le=typeof HTMLElement>"u"?"undefined":ee(HTMLElement),J=function(e){return e&&e.instanceString&&Y(e.instanceString)?e.instanceString():null},j=function(e){return e!=null&&ee(e)==_},Y=function(e){return e!=null&&ee(e)===ne},te=function(e){return!ge(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},L=function(e){return e!=null&&ee(e)===Q&&!te(e)&&e.constructor===Object},$=function(e){return e!=null&&ee(e)===Q},k=function(e){return e!=null&&ee(e)===ee(1)&&!isNaN(e)},W=function(e){return k(e)&&Math.floor(e)===e},fe=function(e){if(le!=="undefined")return e!=null&&e instanceof HTMLElement},ge=function(e){return Ae(e)||Ne(e)},Ae=function(e){return J(e)==="collection"&&e._private.single},Ne=function(e){return J(e)==="collection"&&!e._private.single},_e=function(e){return J(e)==="core"},tt=function(e){return J(e)==="stylesheet"},ht=function(e){return J(e)==="event"},Pe=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},$e=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},Xe=function(e){return L(e)&&k(e.x1)&&k(e.x2)&&k(e.y1)&&k(e.y2)},rt=function(e){return $(e)&&Y(e.then)},ut=function(){return V&&V.userAgent.match(/msie|trident|edge/i)},nt=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);return i.join("$")});var a=function n(){var i=this,o=arguments,s,u=r.apply(i,o),l=n.cache;return(s=l[u])||(s=l[u]=e.apply(i,o)),s};return a.cache={},a},je=nt(function(t){return t.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}),pt=nt(function(t){return t.replace(/(-\w)/g,function(e){return e[1].toUpperCase()})}),Et=nt(function(t,e){return t+e[0].toUpperCase()+e.substring(1)},function(t,e){return t+"$"+e}),kt=function(e){return Pe(e)?e:e.charAt(0).toUpperCase()+e.substring(1)},ct="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",cr="rgb[a]?\\(("+ct+"[%]?)\\s*,\\s*("+ct+"[%]?)\\s*,\\s*("+ct+"[%]?)(?:\\s*,\\s*("+ct+"))?\\)",Wt="rgb[a]?\\((?:"+ct+"[%]?)\\s*,\\s*(?:"+ct+"[%]?)\\s*,\\s*(?:"+ct+"[%]?)(?:\\s*,\\s*(?:"+ct+"))?\\)",sn="hsl[a]?\\(("+ct+")\\s*,\\s*("+ct+"[%])\\s*,\\s*("+ct+"[%])(?:\\s*,\\s*("+ct+"))?\\)",Kr="hsl[a]?\\((?:"+ct+")\\s*,\\s*(?:"+ct+"[%])\\s*,\\s*(?:"+ct+"[%])(?:\\s*,\\s*(?:"+ct+"))?\\)",Da="\\#[0-9a-fA-F]{3}",jt="\\#[0-9a-fA-F]{6}",Ji=function(e,r){return e<r?-1:e>r?1:0},Jl=function(e,r){return-1*Ji(e,r)},Ue=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r<e.length;r++){var a=e[r];if(a!=null)for(var n=Object.keys(a),i=0;i<n.length;i++){var o=n[i];t[o]=a[o]}}return t},jl=function(e){if(!(!(e.length===4||e.length===7)||e[0]!=="#")){var r=e.length===4,a,n,i,o=16;return r?(a=parseInt(e[1]+e[1],o),n=parseInt(e[2]+e[2],o),i=parseInt(e[3]+e[3],o)):(a=parseInt(e[1]+e[2],o),n=parseInt(e[3]+e[4],o),i=parseInt(e[5]+e[6],o)),[a,n,i]}},eu=function(e){var r,a,n,i,o,s,u,l;function v(d,g,y){return y<0&&(y+=1),y>1&&(y-=1),y<1/6?d+(g-d)*6*y:y<1/2?g:y<2/3?d+(g-d)*(2/3-y)*6:d}var f=new RegExp("^"+sn+"$").exec(e);if(f){if(a=parseInt(f[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(f[2]),n<0||n>100||(n=n/100,i=parseFloat(f[3]),i<0||i>100)||(i=i/100,o=f[4],o!==void 0&&(o=parseFloat(o),o<0||o>1)))return;if(n===0)s=u=l=Math.round(i*255);else{var h=i<.5?i*(1+n):i+n-i*n,c=2*i-h;s=Math.round(255*v(c,h,a+1/3)),u=Math.round(255*v(c,h,a)),l=Math.round(255*v(c,h,a-1/3))}r=[s,u,l,o]}return r},tu=function(e){var r,a=new RegExp("^"+cr+"$").exec(e);if(a){r=[];for(var n=[],i=1;i<=3;i++){var o=a[i];if(o[o.length-1]==="%"&&(n[i]=!0),o=parseFloat(o),n[i]&&(o=o/100*255),o<0||o>255)return;r.push(Math.floor(o))}var s=n[1]||n[2]||n[3],u=n[1]&&n[2]&&n[3];if(s&&!u)return;var l=a[4];if(l!==void 0){if(l=parseFloat(l),l<0||l>1)return;r.push(l)}}return r},ru=function(e){return nu[e.toLowerCase()]},au=function(e){return(te(e)?e:null)||ru(e)||jl(e)||tu(e)||eu(e)},nu={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},ji=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i<n;i++){var o=a[i];if(L(o))throw Error("Tried to set map with object key");i<a.length-1?(r[o]==null&&(r[o]={}),r=r[o]):r[o]=e.value}},eo=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i<n;i++){var o=a[i];if(L(o))throw Error("Tried to get map with object key");if(r=r[o],r==null)return r}return r};function iu(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Rr=iu,Sa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Ca<"u"?Ca:typeof self<"u"?self:{};function ou(t,e){return e={exports:{}},t(e,e.exports),e.exports}var su=typeof Sa=="object"&&Sa&&Sa.Object===Object&&Sa,lu=su,uu=typeof self=="object"&&self&&self.Object===Object&&self,vu=lu||uu||Function("return this")(),ln=vu,fu=function(){return ln.Date.now()},ti=fu,hu=/\s/;function cu(t){for(var e=t.length;e--&&hu.test(t.charAt(e)););return e}var du=cu,gu=/^\s+/;function pu(t){return t&&t.slice(0,du(t)+1).replace(gu,"")}var yu=pu,mu=ln.Symbol,Zr=mu,to=Object.prototype,bu=to.hasOwnProperty,Eu=to.toString,La=Zr?Zr.toStringTag:void 0;function wu(t){var e=bu.call(t,La),r=t[La];try{t[La]=void 0;var a=!0}catch{}var n=Eu.call(t);return a&&(e?t[La]=r:delete t[La]),n}var xu=wu,Tu=Object.prototype,Cu=Tu.toString;function Du(t){return Cu.call(t)}var Su=Du,Lu="[object Null]",Au="[object Undefined]",ro=Zr?Zr.toStringTag:void 0;function Ou(t){return t==null?t===void 0?Au:Lu:ro&&ro in Object(t)?xu(t):Su(t)}var ao=Ou;function Nu(t){return t!=null&&typeof t=="object"}var Mu=Nu,Iu="[object Symbol]";function Ru(t){return typeof t=="symbol"||Mu(t)&&ao(t)==Iu}var Aa=Ru,no=NaN,ku=/^[-+]0x[0-9a-f]+$/i,Pu=/^0b[01]+$/i,Bu=/^0o[0-7]+$/i,Fu=parseInt;function Gu(t){if(typeof t=="number")return t;if(Aa(t))return no;if(Rr(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Rr(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=yu(t);var r=Pu.test(t);return r||Bu.test(t)?Fu(t.slice(2),r?2:8):ku.test(t)?no:+t}var io=Gu,zu="Expected a function",$u=Math.max,Vu=Math.min;function _u(t,e,r){var a,n,i,o,s,u,l=0,v=!1,f=!1,h=!0;if(typeof t!="function")throw new TypeError(zu);e=io(e)||0,Rr(r)&&(v=!!r.leading,f="maxWait"in r,i=f?$u(io(r.maxWait)||0,e):i,h="trailing"in r?!!r.trailing:h);function c(A){var w=a,I=n;return a=n=void 0,l=A,o=t.apply(I,w),o}function d(A){return l=A,s=setTimeout(p,e),v?c(A):o}function g(A){var w=A-u,I=A-l,C=e-w;return f?Vu(C,i-I):C}function y(A){var w=A-u,I=A-l;return u===void 0||w>=e||w<0||f&&I>=i}function p(){var A=ti();if(y(A))return m(A);s=setTimeout(p,g(A))}function m(A){return s=void 0,h&&a?c(A):(a=n=void 0,o)}function b(){s!==void 0&&clearTimeout(s),l=0,a=u=n=s=void 0}function E(){return s===void 0?o:m(ti())}function M(){var A=ti(),w=y(A);if(a=arguments,n=this,u=A,w){if(s===void 0)return d(u);if(f)return clearTimeout(s),s=setTimeout(p,e),c(u)}return s===void 0&&(s=setTimeout(p,e)),o}return M.cancel=b,M.flush=E,M}var un=_u,ri=D?D.performance:null,oo=ri&&ri.now?function(){return ri.now()}:function(){return Date.now()},Uu=function(){if(D){if(D.requestAnimationFrame)return function(t){D.requestAnimationFrame(t)};if(D.mozRequestAnimationFrame)return function(t){D.mozRequestAnimationFrame(t)};if(D.webkitRequestAnimationFrame)return function(t){D.webkitRequestAnimationFrame(t)};if(D.msRequestAnimationFrame)return function(t){D.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(oo())},1e3/60)}}(),vn=function(e){return Uu(e)},dr=oo,Qr=9261,so=65599,Oa=5381,lo=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qr,a=r,n;n=e.next(),!n.done;)a=a*so+n.value|0;return a},Na=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qr;return r*so+e|0},Ma=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oa;return(r<<5)+r+e|0},Yu=function(e,r){return e*2097152+r},Er=function(e){return e[0]*2097152+e[1]},fn=function(e,r){return[Na(e[0],r[0]),Ma(e[1],r[1])]},Hu=function(e,r){var a={value:0,done:!1},n=0,i=e.length,o={next:function(){return n<i?a.value=e[n++]:a.done=!0,a}};return lo(o,r)},kr=function(e,r){var a={value:0,done:!1},n=0,i=e.length,o={next:function(){return n<i?a.value=e.charCodeAt(n++):a.done=!0,a}};return lo(o,r)},uo=function(){return Xu(arguments)},Xu=function(e){for(var r,a=0;a<e.length;a++){var n=e[a];a===0?r=kr(n):r=kr(n,r)}return r},vo=!0,Wu=console.warn!=null,qu=console.trace!=null,ai=Number.MAX_SAFE_INTEGER||9007199254740991,fo=function(){return!0},hn=function(){return!1},ho=function(){return 0},ni=function(){},xt=function(e){throw new Error(e)},co=function(e){if(e!==void 0)vo=!!e;else return vo},vt=function(e){co()&&(Wu?console.warn(e):(console.log(e),qu&&console.trace()))},Ku=function(e){return Ue({},e)},sr=function(e){return e==null?e:te(e)?e.slice():L(e)?Ku(e):e},Zu=function(e){return e.slice()},go=function(e,r){for(r=e="";e++<36;r+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return r},Qu={},po=function(){return Qu},Lt=function(e){var r=Object.keys(e);return function(a){for(var n={},i=0;i<r.length;i++){var o=r[i],s=a==null?void 0:a[o];n[o]=s===void 0?e[o]:s}return n}},wr=function(e,r,a){for(var n=e.length-1;n>=0&&!(e[n]===r&&(e.splice(n,1),a));n--);},ii=function(e){e.splice(0,e.length)},Ju=function(e,r){for(var a=0;a<r.length;a++){var n=r[a];e.push(n)}},er=function(e,r,a){return a&&(r=Et(a,r)),e[r]},xr=function(e,r,a,n){a&&(r=Et(a,r)),e[r]=n},ju=function(){function t(){he(this,t),this._obj={}}return O(t,[{key:"set",value:function(r,a){return this._obj[r]=a,this}},{key:"delete",value:function(r){return this._obj[r]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(r){return this._obj[r]!==void 0}},{key:"get",value:function(r){return this._obj[r]}}]),t}(),lr=typeof Map<"u"?Map:ju,ev="undefined",tv=function(){function t(e){if(he(this,t),this._obj=Object.create(null),this.size=0,e!=null){var r;e.instanceString!=null&&e.instanceString()===this.instanceString()?r=e.toArray():r=e;for(var a=0;a<r.length;a++)this.add(r[a])}}return O(t,[{key:"instanceString",value:function(){return"set"}},{key:"add",value:function(r){var a=this._obj;a[r]!==1&&(a[r]=1,this.size++)}},{key:"delete",value:function(r){var a=this._obj;a[r]===1&&(a[r]=0,this.size--)}},{key:"clear",value:function(){this._obj=Object.create(null)}},{key:"has",value:function(r){return this._obj[r]===1}},{key:"toArray",value:function(){var r=this;return Object.keys(this._obj).filter(function(a){return r.has(a)})}},{key:"forEach",value:function(r,a){return this.toArray().forEach(r,a)}}]),t}(),Jr=(typeof Set>"u"?"undefined":ee(Set))!==ev?Set:tv,cn=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!_e(e)){xt("An element must have a core reference and parameters set");return}var n=r.group;if(n==null&&(r.data&&r.data.source!=null&&r.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){xt("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?n==="edges":!!r.pannable,active:!1,classes:new Jr,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),r.renderedPosition){var o=r.renderedPosition,s=e.pan(),u=e.zoom();i.position={x:(o.x-s.x)/u,y:(o.y-s.y)/u}}var l=[];te(r.classes)?l=r.classes:j(r.classes)&&(l=r.classes.split(/\s+/));for(var v=0,f=l.length;v<f;v++){var h=l[v];!h||h===""||i.classes.add(h)}this.createEmitter();var c=r.style||r.css;c&&(vt("Setting a `style` bypass at element creation should be done only when absolutely necessary. Try to use the stylesheet instead."),this.style(c)),(a===void 0||a)&&this.restore()},yo=function(e){return e={bfs:e.bfs||!e.dfs,dfs:e.dfs||!e.bfs},function(a,n,i){var o;L(a)&&!ge(a)&&(o=a,a=o.roots||o.root,n=o.visit,i=o.directed),i=arguments.length===2&&!Y(n)?n:i,n=Y(n)?n:function(){};for(var s=this._private.cy,u=a=j(a)?this.filter(a):a,l=[],v=[],f={},h={},c={},d=0,g,y=this.byGroup(),p=y.nodes,m=y.edges,b=0;b<u.length;b++){var E=u[b],M=E.id();E.isNode()&&(l.unshift(E),e.bfs&&(c[M]=!0,v.push(E)),h[M]=0)}for(var A=function(){var X=e.bfs?l.shift():l.pop(),G=X.id();if(e.dfs){if(c[G])return"continue";c[G]=!0,v.push(X)}var re=h[G],q=f[G],Z=q!=null?q.source():null,ie=q!=null?q.target():null,se=q==null?void 0:X.same(Z)?ie[0]:Z[0],de=void 0;if(de=n(X,q,se,d++,re),de===!0)return g=X,"break";if(de===!1)return"break";for(var oe=X.connectedEdges().filter(function(ye){return(!i||ye.source().same(X))&&m.has(ye)}),ce=0;ce<oe.length;ce++){var we=oe[ce],Te=we.connectedNodes().filter(function(ye){return!ye.same(X)&&p.has(ye)}),Ee=Te.id();Te.length!==0&&!c[Ee]&&(Te=Te[0],l.push(Te),e.bfs&&(c[Ee]=!0,v.push(Te)),f[Ee]=we,h[Ee]=h[G]+1)}};l.length!==0;){var w=A();if(w!=="continue"&&w==="break")break}for(var I=s.collection(),C=0;C<v.length;C++){var B=v[C],F=f[B.id()];F!=null&&I.push(F),I.push(B)}return{path:s.collection(I),found:s.collection(g)}}},Ia={breadthFirstSearch:yo({bfs:!0}),depthFirstSearch:yo({dfs:!0})};Ia.bfs=Ia.breadthFirstSearch,Ia.dfs=Ia.depthFirstSearch;var rv=ou(function(t,e){(function(){var r,a,n,i,o,s,u,l,v,f,h,c,d,g,y;n=Math.floor,f=Math.min,a=function(p,m){return p<m?-1:p>m?1:0},v=function(p,m,b,E,M){var A;if(b==null&&(b=0),M==null&&(M=a),b<0)throw new Error("lo must be non-negative");for(E==null&&(E=p.length);b<E;)A=n((b+E)/2),M(m,p[A])<0?E=A:b=A+1;return[].splice.apply(p,[b,b-b].concat(m)),m},s=function(p,m,b){return b==null&&(b=a),p.push(m),g(p,0,p.length-1,b)},o=function(p,m){var b,E;return m==null&&(m=a),b=p.pop(),p.length?(E=p[0],p[0]=b,y(p,0,m)):E=b,E},l=function(p,m,b){var E;return b==null&&(b=a),E=p[0],p[0]=m,y(p,0,b),E},u=function(p,m,b){var E;return b==null&&(b=a),p.length&&b(p[0],m)<0&&(E=[p[0],m],m=E[0],p[0]=E[1],y(p,0,b)),m},i=function(p,m){var b,E,M,A,w,I;for(m==null&&(m=a),A=(function(){I=[];for(var C=0,B=n(p.length/2);0<=B?C<B:C>B;0<=B?C++:C--)I.push(C);return I}).apply(this).reverse(),w=[],E=0,M=A.length;E<M;E++)b=A[E],w.push(y(p,b,m));return w},d=function(p,m,b){var E;if(b==null&&(b=a),E=p.indexOf(m),E!==-1)return g(p,0,E,b),y(p,E,b)},h=function(p,m,b){var E,M,A,w,I;if(b==null&&(b=a),M=p.slice(0,m),!M.length)return M;for(i(M,b),I=p.slice(m),A=0,w=I.length;A<w;A++)E=I[A],u(M,E,b);return M.sort(b).reverse()},c=function(p,m,b){var E,M,A,w,I,C,B,F,R;if(b==null&&(b=a),m*10<=p.length){if(A=p.slice(0,m).sort(b),!A.length)return A;for(M=A[A.length-1],B=p.slice(m),w=0,C=B.length;w<C;w++)E=B[w],b(E,M)<0&&(v(A,E,0,null,b),A.pop(),M=A[A.length-1]);return A}for(i(p,b),R=[],I=0,F=f(m,p.length);0<=F?I<F:I>F;0<=F?++I:--I)R.push(o(p,b));return R},g=function(p,m,b,E){var M,A,w;for(E==null&&(E=a),M=p[b];b>m;){if(w=b-1>>1,A=p[w],E(M,A)<0){p[b]=A,b=w;continue}break}return p[b]=M},y=function(p,m,b){var E,M,A,w,I;for(b==null&&(b=a),M=p.length,I=m,A=p[m],E=2*m+1;E<M;)w=E+1,w<M&&!(b(p[E],p[w])<0)&&(E=w),p[m]=p[E],m=E,E=2*m+1;return p[m]=A,g(p,I,m,b)},r=function(){p.push=s,p.pop=o,p.replace=l,p.pushpop=u,p.heapify=i,p.updateItem=d,p.nlargest=h,p.nsmallest=c;function p(m){this.cmp=m??a,this.nodes=[]}return p.prototype.push=function(m){return s(this.nodes,m,this.cmp)},p.prototype.pop=function(){return o(this.nodes,this.cmp)},p.prototype.peek=function(){return this.nodes[0]},p.prototype.contains=function(m){return this.nodes.indexOf(m)!==-1},p.prototype.replace=function(m){return l(this.nodes,m,this.cmp)},p.prototype.pushpop=function(m){return u(this.nodes,m,this.cmp)},p.prototype.heapify=function(){return i(this.nodes,this.cmp)},p.prototype.updateItem=function(m){return d(this.nodes,m,this.cmp)},p.prototype.clear=function(){return this.nodes=[]},p.prototype.empty=function(){return this.nodes.length===0},p.prototype.size=function(){return this.nodes.length},p.prototype.clone=function(){var m;return m=new p,m.nodes=this.nodes.slice(0),m},p.prototype.toArray=function(){return this.nodes.slice(0)},p.prototype.insert=p.prototype.push,p.prototype.top=p.prototype.peek,p.prototype.front=p.prototype.peek,p.prototype.has=p.prototype.contains,p.prototype.copy=p.prototype.clone,p}(),function(p,m){return t.exports=m()}(this,function(){return r})}).call(Sa)}),Ra=rv,av=Lt({root:null,weight:function(e){return 1},directed:!1}),nv={dijkstra:function(e){if(!L(e)){var r=arguments;e={root:r[0],weight:r[1],directed:r[2]}}var a=av(e),n=a.root,i=a.weight,o=a.directed,s=this,u=i,l=j(n)?this.filter(n)[0]:n[0],v={},f={},h={},c=this.byGroup(),d=c.nodes,g=c.edges;g.unmergeBy(function(re){return re.isLoop()});for(var y=function(q){return v[q.id()]},p=function(q,Z){v[q.id()]=Z,m.updateItem(q)},m=new Ra(function(re,q){return y(re)-y(q)}),b=0;b<d.length;b++){var E=d[b];v[E.id()]=E.same(l)?0:1/0,m.push(E)}for(var M=function(q,Z){for(var ie=(o?q.edgesTo(Z):q.edgesWith(Z)).intersect(g),se=1/0,de,oe=0;oe<ie.length;oe++){var ce=ie[oe],we=u(ce);(we<se||!de)&&(se=we,de=ce)}return{edge:de,dist:se}};m.size()>0;){var A=m.pop(),w=y(A),I=A.id();if(h[I]=w,w!==1/0)for(var C=A.neighborhood().intersect(d),B=0;B<C.length;B++){var F=C[B],R=F.id(),X=M(A,F),G=w+X.dist;G<y(F)&&(p(F,G),f[R]={node:A,edge:X.edge})}}return{distanceTo:function(q){var Z=j(q)?d.filter(q)[0]:q[0];return h[Z.id()]},pathTo:function(q){var Z=j(q)?d.filter(q)[0]:q[0],ie=[],se=Z,de=se.id();if(Z.length>0)for(ie.unshift(Z);f[de];){var oe=f[de];ie.unshift(oe.edge),ie.unshift(oe.node),se=oe.node,de=se.id()}return s.spawn(ie)}}}},iv={kruskal:function(e){e=e||function(b){return 1};for(var r=this.byGroup(),a=r.nodes,n=r.edges,i=a.length,o=new Array(i),s=a,u=function(E){for(var M=0;M<o.length;M++){var A=o[M];if(A.has(E))return M}},l=0;l<i;l++)o[l]=this.spawn(a[l]);for(var v=n.sort(function(b,E){return e(b)-e(E)}),f=0;f<v.length;f++){var h=v[f],c=h.source()[0],d=h.target()[0],g=u(c),y=u(d),p=o[g],m=o[y];g!==y&&(s.merge(h),p.merge(m),o.splice(y,1))}return s}},ov=Lt({root:null,goal:null,weight:function(e){return 1},heuristic:function(e){return 0},directed:!1}),sv={aStar:function(e){var r=this.cy(),a=ov(e),n=a.root,i=a.goal,o=a.heuristic,s=a.directed,u=a.weight;n=r.collection(n)[0],i=r.collection(i)[0];var l=n.id(),v=i.id(),f={},h={},c={},d=new Ra(function(de,oe){return h[de.id()]-h[oe.id()]}),g=new Jr,y={},p={},m=function(oe,ce){d.push(oe),g.add(ce)},b,E,M=function(){b=d.pop(),E=b.id(),g.delete(E)},A=function(oe){return g.has(oe)};m(n,l),f[l]=0,h[l]=o(n);for(var w=0;d.size()>0;){if(M(),w++,E===v){for(var I=[],C=i,B=v,F=p[B];I.unshift(C),F!=null&&I.unshift(F),C=y[B],C!=null;)B=C.id(),F=p[B];return{found:!0,distance:f[E],path:this.spawn(I),steps:w}}c[E]=!0;for(var R=b._private.edges,X=0;X<R.length;X++){var G=R[X];if(this.hasElementWithId(G.id())&&!(s&&G.data("source")!==E)){var re=G.source(),q=G.target(),Z=re.id()!==E?re:q,ie=Z.id();if(this.hasElementWithId(ie)&&!c[ie]){var se=f[E]+u(G);if(!A(ie)){f[ie]=se,h[ie]=se+o(Z),m(Z,ie),y[ie]=b,p[ie]=G;continue}se<f[ie]&&(f[ie]=se,h[ie]=se+o(Z),y[ie]=b,p[ie]=G)}}}}return{found:!1,distance:void 0,path:void 0,steps:w}}},lv=Lt({weight:function(e){return 1},directed:!1}),uv={floydWarshall:function(e){for(var r=this.cy(),a=lv(e),n=a.weight,i=a.directed,o=n,s=this.byGroup(),u=s.nodes,l=s.edges,v=u.length,f=v*v,h=function(we){return u.indexOf(we)},c=function(we){return u[we]},d=new Array(f),g=0;g<f;g++){var y=g%v,p=(g-y)/v;p===y?d[g]=0:d[g]=1/0}for(var m=new Array(f),b=new Array(f),E=0;E<l.length;E++){var M=l[E],A=M.source()[0],w=M.target()[0];if(A!==w){var I=h(A),C=h(w),B=I*v+C,F=o(M);if(d[B]>F&&(d[B]=F,m[B]=C,b[B]=M),!i){var R=C*v+I;!i&&d[R]>F&&(d[R]=F,m[R]=I,b[R]=M)}}}for(var X=0;X<v;X++)for(var G=0;G<v;G++)for(var re=G*v+X,q=0;q<v;q++){var Z=G*v+q,ie=X*v+q;d[re]+d[ie]<d[Z]&&(d[Z]=d[re]+d[ie],m[Z]=m[re])}var se=function(we){return(j(we)?r.filter(we):we)[0]},de=function(we){return h(se(we))},oe={distance:function(we,Te){var Ee=de(we),ye=de(Te);return d[Ee*v+ye]},path:function(we,Te){var Ee=de(we),ye=de(Te),ae=c(Ee);if(Ee===ye)return ae.collection();if(m[Ee*v+ye]==null)return r.collection();var xe=r.collection(),Ce=Ee,Oe;for(xe.merge(ae);Ee!==ye;)Ce=Ee,Ee=m[Ee*v+ye],Oe=b[Ce*v+Ee],xe.merge(Oe),xe.merge(c(Ee));return xe}};return oe}},vv=Lt({weight:function(e){return 1},directed:!1,root:null}),fv={bellmanFord:function(e){var r=this,a=vv(e),n=a.weight,i=a.directed,o=a.root,s=n,u=this,l=this.cy(),v=this.byGroup(),f=v.edges,h=v.nodes,c=h.length,d=new lr,g=!1,y=[];o=l.collection(o)[0],f.unmergeBy(function(Fe){return Fe.isLoop()});for(var p=f.length,m=function(ke){var ze=d.get(ke.id());return ze||(ze={},d.set(ke.id(),ze)),ze},b=function(ke){return(j(ke)?l.$(ke):ke)[0]},E=function(ke){return m(b(ke)).dist},M=function(ke){for(var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o,et=b(ke),qe=[],Ye=et;;){if(Ye==null)return r.spawn();var Se=m(Ye),N=Se.edge,ue=Se.pred;if(qe.unshift(Ye[0]),Ye.same(ze)&&qe.length>0)break;N!=null&&qe.unshift(N),Ye=ue}return u.spawn(qe)},A=0;A<c;A++){var w=h[A],I=m(w);w.same(o)?I.dist=0:I.dist=1/0,I.pred=null,I.edge=null}for(var C=!1,B=function(ke,ze,et,qe,Ye,Se){var N=qe.dist+Se;N<Ye.dist&&!et.same(qe.edge)&&(Ye.dist=N,Ye.pred=ke,Ye.edge=et,C=!0)},F=1;F<c;F++){C=!1;for(var R=0;R<p;R++){var X=f[R],G=X.source(),re=X.target(),q=s(X),Z=m(G),ie=m(re);B(G,re,X,Z,ie,q),i||B(re,G,X,ie,Z,q)}if(!C)break}if(C)for(var se=[],de=0;de<p;de++){var oe=f[de],ce=oe.source(),we=oe.target(),Te=s(oe),Ee=m(ce).dist,ye=m(we).dist;if(Ee+Te<ye||!i&&ye+Te<Ee)if(g||(vt("Graph contains a negative weight cycle for Bellman-Ford"),g=!0),e.findNegativeWeightCycles!==!1){var ae=[];Ee+Te<ye&&ae.push(ce),!i&&ye+Te<Ee&&ae.push(we);for(var xe=ae.length,Ce=0;Ce<xe;Ce++){var Oe=ae[Ce],Ie=[Oe];Ie.push(m(Oe).edge);for(var He=m(Oe).pred;Ie.indexOf(He)===-1;)Ie.push(He),Ie.push(m(He).edge),He=m(He).pred;Ie=Ie.slice(Ie.indexOf(He));for(var We=Ie[0].id(),Re=0,Me=2;Me<Ie.length;Me+=2)Ie[Me].id()<We&&(We=Ie[Me].id(),Re=Me);Ie=Ie.slice(Re).concat(Ie.slice(0,Re)),Ie.push(Ie[0]);var Ve=Ie.map(function(Fe){return Fe.id()}).join(",");se.indexOf(Ve)===-1&&(y.push(u.spawn(Ie)),se.push(Ve))}}else break}return{distanceTo:E,pathTo:M,hasNegativeWeightCycle:g,negativeWeightCycles:y}}},hv=Math.sqrt(2),cv=function(e,r,a){a.length===0&&xt("Karger-Stein must be run on a connected (sub)graph");for(var n=a[e],i=n[1],o=n[2],s=r[i],u=r[o],l=a,v=l.length-1;v>=0;v--){var f=l[v],h=f[1],c=f[2];(r[h]===s&&r[c]===u||r[h]===u&&r[c]===s)&&l.splice(v,1)}for(var d=0;d<l.length;d++){var g=l[d];g[1]===u?(l[d]=g.slice(),l[d][1]=s):g[2]===u&&(l[d]=g.slice(),l[d][2]=s)}for(var y=0;y<r.length;y++)r[y]===u&&(r[y]=s);return l},oi=function(e,r,a,n){for(;a>n;){var i=Math.floor(Math.random()*r.length);r=cv(i,e,r),a--}return r},dv={kargerStein:function(){var e=this,r=this.byGroup(),a=r.nodes,n=r.edges;n.unmergeBy(function(ie){return ie.isLoop()});var i=a.length,o=n.length,s=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),u=Math.floor(i/hv);if(i<2){xt("At least 2 nodes are required for Karger-Stein algorithm");return}for(var l=[],v=0;v<o;v++){var f=n[v];l.push([v,a.indexOf(f.source()),a.indexOf(f.target())])}for(var h=1/0,c=[],d=new Array(i),g=new Array(i),y=new Array(i),p=function(se,de){for(var oe=0;oe<i;oe++)de[oe]=se[oe]},m=0;m<=s;m++){for(var b=0;b<i;b++)g[b]=b;var E=oi(g,l.slice(),i,u),M=E.slice();p(g,y);var A=oi(g,E,u,2),w=oi(y,M,u,2);A.length<=w.length&&A.length<h?(h=A.length,c=A,p(g,d)):w.length<=A.length&&w.length<h&&(h=w.length,c=w,p(y,d))}for(var I=this.spawn(c.map(function(ie){return n[ie[0]]})),C=this.spawn(),B=this.spawn(),F=d[0],R=0;R<d.length;R++){var X=d[R],G=a[R];X===F?C.merge(G):B.merge(G)}var re=function(se){var de=e.spawn();return se.forEach(function(oe){de.merge(oe),oe.connectedEdges().forEach(function(ce){e.contains(ce)&&!I.contains(ce)&&de.merge(ce)})}),de},q=[re(C),re(B)],Z={cut:I,components:q,partition1:C,partition2:B};return Z}},gv=function(e){return{x:e.x,y:e.y}},dn=function(e,r,a){return{x:e.x*r+a.x,y:e.y*r+a.y}},mo=function(e,r,a){return{x:(e.x-a.x)/r,y:(e.y-a.y)/r}},jr=function(e){return{x:e[0],y:e[1]}},pv=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=r;i<a;i++){var o=e[i];isFinite(o)&&(n=Math.min(o,n))}return n},yv=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=r;i<a;i++){var o=e[i];isFinite(o)&&(n=Math.max(o,n))}return n},mv=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,o=r;o<a;o++){var s=e[o];isFinite(s)&&(n+=s,i++)}return n/i},bv=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(r,a):(a<e.length&&e.splice(a,e.length-a),r>0&&e.splice(0,r));for(var s=0,u=e.length-1;u>=0;u--){var l=e[u];o?isFinite(l)||(e[u]=-1/0,s++):e.splice(u,1)}i&&e.sort(function(h,c){return h-c});var v=e.length,f=Math.floor(v/2);return v%2!==0?e[f+1+s]:(e[f-1+s]+e[f+s])/2},Ev=function(e){return Math.PI*e/180},gn=function(e,r){return Math.atan2(r,e)-Math.PI/2},si=Math.log2||function(t){return Math.log(t)/Math.log(2)},bo=function(e){return e>0?1:e<0?-1:0},Pr=function(e,r){return Math.sqrt(Br(e,r))},Br=function(e,r){var a=r.x-e.x,n=r.y-e.y;return a*a+n*n},wv=function(e){for(var r=e.length,a=0,n=0;n<r;n++)a+=e[n];for(var i=0;i<r;i++)e[i]=e[i]/a;return e},St=function(e,r,a,n){return(1-n)*(1-n)*e+2*(1-n)*n*r+n*n*a},ea=function(e,r,a,n){return{x:St(e.x,r.x,a.x,n),y:St(e.y,r.y,a.y,n)}},xv=function(e,r,a,n){var i={x:r.x-e.x,y:r.y-e.y},o=Pr(e,r),s={x:i.x/o,y:i.y/o};return a=a??0,n=n??a*o,{x:e.x+s.x*n,y:e.y+s.y*n}},ka=function(e,r,a){return Math.max(e,Math.min(a,r))},Ut=function(e){if(e==null)return{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0};if(e.x1!=null&&e.y1!=null){if(e.x2!=null&&e.y2!=null&&e.x2>=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},Tv=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Cv=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Dv=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},Sv=function(e,r,a){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},pn=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},li=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,o;if(r.length===1)a=n=i=o=r[0];else if(r.length===2)a=i=r[0],o=n=r[1];else if(r.length===4){var s=x(r,4);a=s[0],n=s[1],i=s[2],o=s[3]}return e.x1-=o,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Eo=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},ui=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2<r.x1||r.x2<e.x1||e.y2<r.y1||r.y2<e.y1||e.y1>r.y2||r.y1>e.y2)},ta=function(e,r,a){return e.x1<=r&&r<=e.x2&&e.y1<=a&&a<=e.y2},Lv=function(e,r){return ta(e,r.x,r.y)},wo=function(e,r){return ta(e,r.x1,r.y1)&&ta(e,r.x2,r.y2)},xo=function(e,r,a,n,i,o,s){var u=Fa(i,o),l=i/2,v=o/2,f;{var h=a-l+u-s,c=n-v-s,d=a+l-u+s,g=c;if(f=Tr(e,r,a,n,h,c,d,g,!1),f.length>0)return f}{var y=a+l+s,p=n-v+u-s,m=y,b=n+v-u+s;if(f=Tr(e,r,a,n,y,p,m,b,!1),f.length>0)return f}{var E=a-l+u-s,M=n+v+s,A=a+l-u+s,w=M;if(f=Tr(e,r,a,n,E,M,A,w,!1),f.length>0)return f}{var I=a-l-s,C=n-v+u-s,B=I,F=n+v-u+s;if(f=Tr(e,r,a,n,I,C,B,F,!1),f.length>0)return f}var R;{var X=a-l+u,G=n-v+u;if(R=Pa(e,r,a,n,X,G,u+s),R.length>0&&R[0]<=X&&R[1]<=G)return[R[0],R[1]]}{var re=a+l-u,q=n-v+u;if(R=Pa(e,r,a,n,re,q,u+s),R.length>0&&R[0]>=re&&R[1]<=q)return[R[0],R[1]]}{var Z=a+l-u,ie=n+v-u;if(R=Pa(e,r,a,n,Z,ie,u+s),R.length>0&&R[0]>=Z&&R[1]>=ie)return[R[0],R[1]]}{var se=a-l+u,de=n+v-u;if(R=Pa(e,r,a,n,se,de,u+s),R.length>0&&R[0]<=se&&R[1]>=de)return[R[0],R[1]]}return[]},Av=function(e,r,a,n,i,o,s){var u=s,l=Math.min(a,i),v=Math.max(a,i),f=Math.min(n,o),h=Math.max(n,o);return l-u<=e&&e<=v+u&&f-u<=r&&r<=h+u},Ov=function(e,r,a,n,i,o,s,u,l){var v={x1:Math.min(a,s,i)-l,x2:Math.max(a,s,i)+l,y1:Math.min(n,u,o)-l,y2:Math.max(n,u,o)+l};return!(e<v.x1||e>v.x2||r<v.y1||r>v.y2)},Nv=function(e,r,a,n){a-=n;var i=r*r-4*e*a;if(i<0)return[];var o=Math.sqrt(i),s=2*e,u=(-r+o)/s,l=(-r-o)/s;return[u,l]},Mv=function(e,r,a,n,i){var o=1e-5;e===0&&(e=o),r/=e,a/=e,n/=e;var s,u,l,v,f,h,c,d;if(u=(3*a-r*r)/9,l=-(27*n)+r*(9*a-2*(r*r)),l/=54,s=u*u*u+l*l,i[1]=0,c=r/3,s>0){f=l+Math.sqrt(s),f=f<0?-Math.pow(-f,1/3):Math.pow(f,1/3),h=l-Math.sqrt(s),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),i[0]=-c+f+h,c+=(f+h)/2,i[4]=i[2]=-c,c=Math.sqrt(3)*(-h+f)/2,i[3]=c,i[5]=-c;return}if(i[5]=i[3]=0,s===0){d=l<0?-Math.pow(-l,1/3):Math.pow(l,1/3),i[0]=-c+2*d,i[4]=i[2]=-(d+c);return}u=-u,v=u*u*u,v=Math.acos(l/Math.sqrt(v)),d=2*Math.sqrt(u),i[0]=-c+d*Math.cos(v/3),i[2]=-c+d*Math.cos((v+2*Math.PI)/3),i[4]=-c+d*Math.cos((v+4*Math.PI)/3)},Iv=function(e,r,a,n,i,o,s,u){var l=1*a*a-4*a*i+2*a*s+4*i*i-4*i*s+s*s+n*n-4*n*o+2*n*u+4*o*o-4*o*u+u*u,v=1*9*a*i-3*a*a-3*a*s-6*i*i+3*i*s+9*n*o-3*n*n-3*n*u-6*o*o+3*o*u,f=1*3*a*a-6*a*i+a*s-a*e+2*i*i+2*i*e-s*e+3*n*n-6*n*o+n*u-n*r+2*o*o+2*o*r-u*r,h=1*a*i-a*a+a*e-i*e+n*o-n*n+n*r-o*r,c=[];Mv(l,v,f,h,c);for(var d=1e-7,g=[],y=0;y<6;y+=2)Math.abs(c[y+1])<d&&c[y]>=0&&c[y]<=1&&g.push(c[y]);g.push(1),g.push(0);for(var p=-1,m,b,E,M=0;M<g.length;M++)m=Math.pow(1-g[M],2)*a+2*(1-g[M])*g[M]*i+g[M]*g[M]*s,b=Math.pow(1-g[M],2)*n+2*(1-g[M])*g[M]*o+g[M]*g[M]*u,E=Math.pow(m-e,2)+Math.pow(b-r,2),p>=0?E<p&&(p=E):p=E;return p},Rv=function(e,r,a,n,i,o){var s=[e-a,r-n],u=[i-a,o-n],l=u[0]*u[0]+u[1]*u[1],v=s[0]*s[0]+s[1]*s[1],f=s[0]*u[0]+s[1]*u[1],h=f*f/l;return f<0?v:h>l?(e-i)*(e-i)+(r-o)*(r-o):v-h},Yt=function(e,r,a){for(var n,i,o,s,u,l=0,v=0;v<a.length/2;v++)if(n=a[v*2],i=a[v*2+1],v+1<a.length/2?(o=a[(v+1)*2],s=a[(v+1)*2+1]):(o=a[(v+1-a.length/2)*2],s=a[(v+1-a.length/2)*2+1]),!(n==e&&o==e))if(n>=e&&e>=o||n<=e&&e<=o)u=(e-n)/(o-n)*(s-i)+i,u>r&&l++;else continue;return l%2!==0},gr=function(e,r,a,n,i,o,s,u,l){var v=new Array(a.length),f;u[0]!=null?(f=Math.atan(u[1]/u[0]),u[0]<0?f=f+Math.PI/2:f=-f-Math.PI/2):f=u;for(var h=Math.cos(-f),c=Math.sin(-f),d=0;d<v.length/2;d++)v[d*2]=o/2*(a[d*2]*h-a[d*2+1]*c),v[d*2+1]=s/2*(a[d*2+1]*h+a[d*2]*c),v[d*2]+=n,v[d*2+1]+=i;var g;if(l>0){var y=Co(v,-l);g=To(y)}else g=v;return Yt(e,r,g)},kv=function(e,r,a,n,i,o,s){for(var u=new Array(a.length),l=o/2,v=s/2,f=hi(o,s),h=f*f,c=0;c<a.length/4;c++){var d=void 0,g=void 0;c===0?d=a.length-2:d=c*4-2,g=c*4+2;var y=n+l*a[c*4],p=i+v*a[c*4+1],m=-a[d]*a[g]-a[d+1]*a[g+1],b=f/Math.tan(Math.acos(m)/2),E=y-b*a[d],M=p-b*a[d+1],A=y+b*a[g],w=p+b*a[g+1];u[c*4]=E,u[c*4+1]=M,u[c*4+2]=A,u[c*4+3]=w;var I=a[d+1],C=-a[d],B=I*a[g]+C*a[g+1];B<0&&(I*=-1,C*=-1);var F=E+I*f,R=M+C*f,X=Math.pow(F-e,2)+Math.pow(R-r,2);if(X<=h)return!0}return Yt(e,r,u)},To=function(e){for(var r=new Array(e.length/2),a,n,i,o,s,u,l,v,f=0;f<e.length/4;f++){a=e[f*4],n=e[f*4+1],i=e[f*4+2],o=e[f*4+3],f<e.length/4-1?(s=e[(f+1)*4],u=e[(f+1)*4+1],l=e[(f+1)*4+2],v=e[(f+1)*4+3]):(s=e[0],u=e[1],l=e[2],v=e[3]);var h=Tr(a,n,i,o,s,u,l,v,!0);r[f*2]=h[0],r[f*2+1]=h[1]}return r},Co=function(e,r){for(var a=new Array(e.length*2),n,i,o,s,u=0;u<e.length/2;u++){n=e[u*2],i=e[u*2+1],u<e.length/2-1?(o=e[(u+1)*2],s=e[(u+1)*2+1]):(o=e[0],s=e[1]);var l=s-i,v=-(o-n),f=Math.sqrt(l*l+v*v),h=l/f,c=v/f;a[u*4]=n+h*r,a[u*4+1]=i+c*r,a[u*4+2]=o+h*r,a[u*4+3]=s+c*r}return a},Pv=function(e,r,a,n,i,o){var s=a-e,u=n-r;s/=i,u/=o;var l=Math.sqrt(s*s+u*u),v=l-1;if(v<0)return[];var f=v/l;return[(a-e)*f+e,(n-r)*f+r]},Fr=function(e,r,a,n,i,o,s){return e-=i,r-=o,e/=a/2+s,r/=n/2+s,e*e+r*r<=1},Pa=function(e,r,a,n,i,o,s){var u=[a-e,n-r],l=[e-i,r-o],v=u[0]*u[0]+u[1]*u[1],f=2*(l[0]*u[0]+l[1]*u[1]),h=l[0]*l[0]+l[1]*l[1]-s*s,c=f*f-4*v*h;if(c<0)return[];var d=(-f+Math.sqrt(c))/(2*v),g=(-f-Math.sqrt(c))/(2*v),y=Math.min(d,g),p=Math.max(d,g),m=[];if(y>=0&&y<=1&&m.push(y),p>=0&&p<=1&&m.push(p),m.length===0)return[];var b=m[0]*u[0]+e,E=m[0]*u[1]+r;if(m.length>1){if(m[0]==m[1])return[b,E];var M=m[1]*u[0]+e,A=m[1]*u[1]+r;return[b,E,M,A]}else return[b,E]},vi=function(e,r,a){return r<=e&&e<=a||a<=e&&e<=r?e:e<=r&&r<=a||a<=r&&r<=e?r:a},Tr=function(e,r,a,n,i,o,s,u,l){var v=e-i,f=a-e,h=s-i,c=r-o,d=n-r,g=u-o,y=h*c-g*v,p=f*c-d*v,m=g*f-h*d;if(m!==0){var b=y/m,E=p/m,M=.001,A=0-M,w=1+M;return A<=b&&b<=w&&A<=E&&E<=w?[e+b*f,r+b*d]:l?[e+b*f,r+b*d]:[]}else return y===0||p===0?vi(e,a,s)===s?[s,u]:vi(e,a,i)===i?[i,o]:vi(i,s,a)===a?[a,n]:[]:[]},Ba=function(e,r,a,n,i,o,s,u){var l=[],v,f=new Array(a.length),h=!0;o==null&&(h=!1);var c;if(h){for(var d=0;d<f.length/2;d++)f[d*2]=a[d*2]*o+n,f[d*2+1]=a[d*2+1]*s+i;if(u>0){var g=Co(f,-u);c=To(g)}else c=f}else c=a;for(var y,p,m,b,E=0;E<c.length/2;E++)y=c[E*2],p=c[E*2+1],E<c.length/2-1?(m=c[(E+1)*2],b=c[(E+1)*2+1]):(m=c[0],b=c[1]),v=Tr(e,r,n,i,y,p,m,b),v.length!==0&&l.push(v[0],v[1]);return l},Bv=function(e,r,a,n,i,o,s,u){for(var l=[],v,f=new Array(a.length),h=o/2,c=s/2,d=hi(o,s),g=0;g<a.length/4;g++){var y=void 0,p=void 0;g===0?y=a.length-2:y=g*4-2,p=g*4+2;var m=n+h*a[g*4],b=i+c*a[g*4+1],E=-a[y]*a[p]-a[y+1]*a[p+1],M=d/Math.tan(Math.acos(E)/2),A=m-M*a[y],w=b-M*a[y+1],I=m+M*a[p],C=b+M*a[p+1];g===0?(f[a.length-2]=A,f[a.length-1]=w):(f[g*4-2]=A,f[g*4-1]=w),f[g*4]=I,f[g*4+1]=C;var B=a[y+1],F=-a[y],R=B*a[p]+F*a[p+1];R<0&&(B*=-1,F*=-1);var X=A+B*d,G=w+F*d;v=Pa(e,r,n,i,X,G,d),v.length!==0&&l.push(v[0],v[1])}for(var re=0;re<f.length/4;re++)v=Tr(e,r,n,i,f[re*4],f[re*4+1],f[re*4+2],f[re*4+3],!1),v.length!==0&&l.push(v[0],v[1]);if(l.length>2){for(var q=[l[0],l[1]],Z=Math.pow(q[0]-e,2)+Math.pow(q[1]-r,2),ie=1;ie<l.length/2;ie++){var se=Math.pow(l[ie*2]-e,2)+Math.pow(l[ie*2+1]-r,2);se<=Z&&(q[0]=l[ie*2],q[1]=l[ie*2+1],Z=se)}return q}return l},yn=function(e,r,a){var n=[e[0]-r[0],e[1]-r[1]],i=Math.sqrt(n[0]*n[0]+n[1]*n[1]),o=(i-a)/i;return o<0&&(o=1e-5),[r[0]+o*n[0],r[1]+o*n[1]]},$t=function(e,r){var a=fi(e,r);return a=Do(a),a},Do=function(e){for(var r,a,n=e.length/2,i=1/0,o=1/0,s=-1/0,u=-1/0,l=0;l<n;l++)r=e[2*l],a=e[2*l+1],i=Math.min(i,r),s=Math.max(s,r),o=Math.min(o,a),u=Math.max(u,a);for(var v=2/(s-i),f=2/(u-o),h=0;h<n;h++)r=e[2*h]=e[2*h]*v,a=e[2*h+1]=e[2*h+1]*f,i=Math.min(i,r),s=Math.max(s,r),o=Math.min(o,a),u=Math.max(u,a);if(o<-1)for(var c=0;c<n;c++)a=e[2*c+1]=e[2*c+1]+(-1-o);return e},fi=function(e,r){var a=1/e*2*Math.PI,n=e%2===0?Math.PI/2+a/2:Math.PI/2;n+=r;for(var i=new Array(e*2),o,s=0;s<e;s++)o=s*a+n,i[2*s]=Math.cos(o),i[2*s+1]=Math.sin(-o);return i},Fa=function(e,r){return Math.min(e/4,r/4,8)},hi=function(e,r){return Math.min(e/10,r/10,8)},So=function(){return 8},Fv=function(e,r,a){return[e-2*r+a,2*(r-e),e]},ci=function(e,r){return{heightOffset:Math.min(15,.05*r),widthOffset:Math.min(100,.25*e),ctrlPtOffsetPct:.05}},Gv=Lt({dampingFactor:.8,precision:1e-6,iterations:200,weight:function(e){return 1}}),zv={pageRank:function(e){for(var r=Gv(e),a=r.dampingFactor,n=r.precision,i=r.iterations,o=r.weight,s=this._private.cy,u=this.byGroup(),l=u.nodes,v=u.edges,f=l.length,h=f*f,c=v.length,d=new Array(h),g=new Array(f),y=(1-a)/f,p=0;p<f;p++){for(var m=0;m<f;m++){var b=p*f+m;d[b]=0}g[p]=0}for(var E=0;E<c;E++){var M=v[E],A=M.data("source"),w=M.data("target");if(A!==w){var I=l.indexOfId(A),C=l.indexOfId(w),B=o(M),F=C*f+I;d[F]+=B,g[I]+=B}}for(var R=1/f+y,X=0;X<f;X++)if(g[X]===0)for(var G=0;G<f;G++){var re=G*f+X;d[re]=R}else for(var q=0;q<f;q++){var Z=q*f+X;d[Z]=d[Z]/g[X]+y}for(var ie=new Array(f),se=new Array(f),de,oe=0;oe<f;oe++)ie[oe]=1;for(var ce=0;ce<i;ce++){for(var we=0;we<f;we++)se[we]=0;for(var Te=0;Te<f;Te++)for(var Ee=0;Ee<f;Ee++){var ye=Te*f+Ee;se[Te]+=d[ye]*ie[Ee]}wv(se),de=ie,ie=se,se=de;for(var ae=0,xe=0;xe<f;xe++){var Ce=de[xe]-ie[xe];ae+=Ce*Ce}if(ae<n)break}var Oe={rank:function(He){return He=s.collection(He)[0],ie[l.indexOf(He)]}};return Oe}},Lo=Lt({root:null,weight:function(e){return 1},directed:!1,alpha:0}),ra={degreeCentralityNormalized:function(e){e=Lo(e);var r=this.cy(),a=this.nodes(),n=a.length;if(e.directed){for(var v={},f={},h=0,c=0,d=0;d<n;d++){var g=a[d],y=g.id();e.root=g;var p=this.degreeCentrality(e);h<p.indegree&&(h=p.indegree),c<p.outdegree&&(c=p.outdegree),v[y]=p.indegree,f[y]=p.outdegree}return{indegree:function(b){return h==0?0:(j(b)&&(b=r.filter(b)),v[b.id()]/h)},outdegree:function(b){return c===0?0:(j(b)&&(b=r.filter(b)),f[b.id()]/c)}}}else{for(var i={},o=0,s=0;s<n;s++){var u=a[s];e.root=u;var l=this.degreeCentrality(e);o<l.degree&&(o=l.degree),i[u.id()]=l.degree}return{degree:function(b){return o===0?0:(j(b)&&(b=r.filter(b)),i[b.id()]/o)}}}},degreeCentrality:function(e){e=Lo(e);var r=this.cy(),a=this,n=e,i=n.root,o=n.weight,s=n.directed,u=n.alpha;if(i=r.collection(i)[0],s){for(var c=i.connectedEdges(),d=c.filter(function(A){return A.target().same(i)&&a.has(A)}),g=c.filter(function(A){return A.source().same(i)&&a.has(A)}),y=d.length,p=g.length,m=0,b=0,E=0;E<d.length;E++)m+=o(d[E]);for(var M=0;M<g.length;M++)b+=o(g[M]);return{indegree:Math.pow(y,1-u)*Math.pow(m,u),outdegree:Math.pow(p,1-u)*Math.pow(b,u)}}else{for(var l=i.connectedEdges().intersection(a),v=l.length,f=0,h=0;h<l.length;h++)f+=o(l[h]);return{degree:Math.pow(v,1-u)*Math.pow(f,u)}}}};ra.dc=ra.degreeCentrality,ra.dcn=ra.degreeCentralityNormalised=ra.degreeCentralityNormalized;var Ao=Lt({harmonic:!0,weight:function(){return 1},directed:!1,root:null}),aa={closenessCentralityNormalized:function(e){for(var r=Ao(e),a=r.harmonic,n=r.weight,i=r.directed,o=this.cy(),s={},u=0,l=this.nodes(),v=this.floydWarshall({weight:n,directed:i}),f=0;f<l.length;f++){for(var h=0,c=l[f],d=0;d<l.length;d++)if(f!==d){var g=v.distance(c,l[d]);a?h+=1/g:h+=g}a||(h=1/h),u<h&&(u=h),s[c.id()]=h}return{closeness:function(p){return u==0?0:(j(p)?p=o.filter(p)[0].id():p=p.id(),s[p]/u)}}},closenessCentrality:function(e){var r=Ao(e),a=r.root,n=r.weight,i=r.directed,o=r.harmonic;a=this.filter(a)[0];for(var s=this.dijkstra({root:a,weight:n,directed:i}),u=0,l=this.nodes(),v=0;v<l.length;v++){var f=l[v];if(!f.same(a)){var h=s.distanceTo(f);o?u+=1/h:u+=h}}return o?u:1/u}};aa.cc=aa.closenessCentrality,aa.ccn=aa.closenessCentralityNormalised=aa.closenessCentralityNormalized;var $v=Lt({weight:null,directed:!1}),di={betweennessCentrality:function(e){for(var r=$v(e),a=r.directed,n=r.weight,i=n!=null,o=this.cy(),s=this.nodes(),u={},l={},v=0,f={set:function(b,E){l[b]=E,E>v&&(v=E)},get:function(b){return l[b]}},h=0;h<s.length;h++){var c=s[h],d=c.id();a?u[d]=c.outgoers().nodes():u[d]=c.openNeighborhood().nodes(),f.set(d,0)}for(var g=function(b){for(var E=s[b].id(),M=[],A={},w={},I={},C=new Ra(function(Ee,ye){return I[Ee]-I[ye]}),B=0;B<s.length;B++){var F=s[B].id();A[F]=[],w[F]=0,I[F]=1/0}for(w[E]=1,I[E]=0,C.push(E);!C.empty();){var R=C.pop();if(M.push(R),i)for(var X=0;X<u[R].length;X++){var G=u[R][X],re=o.getElementById(R),q=void 0;re.edgesTo(G).length>0?q=re.edgesTo(G)[0]:q=G.edgesTo(re)[0];var Z=n(q);G=G.id(),I[G]>I[R]+Z&&(I[G]=I[R]+Z,C.nodes.indexOf(G)<0?C.push(G):C.updateItem(G),w[G]=0,A[G]=[]),I[G]==I[R]+Z&&(w[G]=w[G]+w[R],A[G].push(R))}else for(var ie=0;ie<u[R].length;ie++){var se=u[R][ie].id();I[se]==1/0&&(C.push(se),I[se]=I[R]+1),I[se]==I[R]+1&&(w[se]=w[se]+w[R],A[se].push(R))}}for(var de={},oe=0;oe<s.length;oe++)de[s[oe].id()]=0;for(;M.length>0;){for(var ce=M.pop(),we=0;we<A[ce].length;we++){var Te=A[ce][we];de[Te]=de[Te]+w[Te]/w[ce]*(1+de[ce])}ce!=s[b].id()&&f.set(ce,f.get(ce)+de[ce])}},y=0;y<s.length;y++)g(y);var p={betweenness:function(b){var E=o.collection(b).id();return f.get(E)},betweennessNormalized:function(b){if(v==0)return 0;var E=o.collection(b).id();return f.get(E)/v}};return p.betweennessNormalised=p.betweennessNormalized,p}};di.bc=di.betweennessCentrality;var Vv=Lt({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(t){return 1}]}),_v=function(e){return Vv(e)},Uv=function(e,r){for(var a=0,n=0;n<r.length;n++)a+=r[n](e);return a},Yv=function(e,r,a){for(var n=0;n<r;n++)e[n*r+n]=a},Oo=function(e,r){for(var a,n=0;n<r;n++){a=0;for(var i=0;i<r;i++)a+=e[i*r+n];for(var o=0;o<r;o++)e[o*r+n]=e[o*r+n]/a}},Hv=function(e,r,a){for(var n=new Array(a*a),i=0;i<a;i++){for(var o=0;o<a;o++)n[i*a+o]=0;for(var s=0;s<a;s++)for(var u=0;u<a;u++)n[i*a+u]+=e[i*a+s]*r[s*a+u]}return n},Xv=function(e,r,a){for(var n=e.slice(0),i=1;i<a;i++)e=Hv(e,n,r);return e},Wv=function(e,r,a){for(var n=new Array(r*r),i=0;i<r*r;i++)n[i]=Math.pow(e[i],a);return Oo(n,r),n},qv=function(e,r,a,n){for(var i=0;i<a;i++){var o=Math.round(e[i]*Math.pow(10,n))/Math.pow(10,n),s=Math.round(r[i]*Math.pow(10,n))/Math.pow(10,n);if(o!==s)return!1}return!0},Kv=function(e,r,a,n){for(var i=[],o=0;o<r;o++){for(var s=[],u=0;u<r;u++)Math.round(e[o*r+u]*1e3)/1e3>0&&s.push(a[u]);s.length!==0&&i.push(n.collection(s))}return i},Zv=function(e,r){for(var a=0;a<e.length;a++)if(!r[a]||e[a].id()!==r[a].id())return!1;return!0},Qv=function(e){for(var r=0;r<e.length;r++)for(var a=0;a<e.length;a++)r!=a&&Zv(e[r],e[a])&&e.splice(a,1);return e},No=function(e){for(var r=this.nodes(),a=this.edges(),n=this.cy(),i=_v(e),o={},s=0;s<r.length;s++)o[r[s].id()]=s;for(var u=r.length,l=u*u,v=new Array(l),f,h=0;h<l;h++)v[h]=0;for(var c=0;c<a.length;c++){var d=a[c],g=o[d.source().id()],y=o[d.target().id()],p=Uv(d,i.attributes);v[g*u+y]+=p,v[y*u+g]+=p}Yv(v,u,i.multFactor),Oo(v,u);for(var m=!0,b=0;m&&b<i.maxIterations;)m=!1,f=Xv(v,u,i.expandFactor),v=Wv(f,u,i.inflateFactor),qv(v,f,l,4)||(m=!0),b++;var E=Kv(v,u,r,n);return E=Qv(E),E},Jv={markovClustering:No,mcl:No},jv=function(e){return e},Mo=function(e,r){return Math.abs(r-e)},Io=function(e,r,a){return e+Mo(r,a)},Ro=function(e,r,a){return e+Math.pow(a-r,2)},ef=function(e){return Math.sqrt(e)},tf=function(e,r,a){return Math.max(e,Mo(r,a))},Ga=function(e,r,a,n,i){for(var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:jv,s=n,u,l,v=0;v<e;v++)u=r(v),l=a(v),s=i(s,u,l);return o(s)},na={euclidean:function(e,r,a){return e>=2?Ga(e,r,a,0,Ro,ef):Ga(e,r,a,0,Io)},squaredEuclidean:function(e,r,a){return Ga(e,r,a,0,Ro)},manhattan:function(e,r,a){return Ga(e,r,a,0,Io)},max:function(e,r,a){return Ga(e,r,a,-1/0,tf)}};na["squared-euclidean"]=na.squaredEuclidean,na.squaredeuclidean=na.squaredEuclidean;function mn(t,e,r,a,n,i){var o;return Y(t)?o=t:o=na[t]||na.euclidean,e===0&&Y(t)?o(n,i):o(e,r,a,n,i)}var rf=Lt({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),gi=function(e){return rf(e)},bn=function(e,r,a,n,i){var o=i!=="kMedoids",s=o?function(f){return a[f]}:function(f){return n[f](a)},u=function(h){return n[h](r)},l=a,v=r;return mn(e,n.length,s,u,l,v)},pi=function(e,r,a){for(var n=a.length,i=new Array(n),o=new Array(n),s=new Array(r),u=null,l=0;l<n;l++)i[l]=e.min(a[l]).value,o[l]=e.max(a[l]).value;for(var v=0;v<r;v++){u=[];for(var f=0;f<n;f++)u[f]=Math.random()*(o[f]-i[f])+i[f];s[v]=u}return s},ko=function(e,r,a,n,i){for(var o=1/0,s=0,u=0;u<r.length;u++){var l=bn(a,e,r[u],n,i);l<o&&(o=l,s=u)}return s},Po=function(e,r,a){for(var n=[],i=null,o=0;o<r.length;o++)i=r[o],a[i.id()]===e&&n.push(i);return n},af=function(e,r,a){return Math.abs(r-e)<=a},nf=function(e,r,a){for(var n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++){var o=Math.abs(e[n][i]-r[n][i]);if(o>a)return!1}return!0},of=function(e,r,a){for(var n=0;n<a;n++)if(e===r[n])return!0;return!1},Bo=function(e,r){var a=new Array(r);if(e.length<50)for(var n=0;n<r;n++){for(var i=e[Math.floor(Math.random()*e.length)];of(i,a,n);)i=e[Math.floor(Math.random()*e.length)];a[n]=i}else for(var o=0;o<r;o++)a[o]=e[Math.floor(Math.random()*e.length)];return a},Fo=function(e,r,a){for(var n=0,i=0;i<r.length;i++)n+=bn("manhattan",r[i],e,a,"kMedoids");return n},sf=function(e){var r=this.cy(),a=this.nodes(),n=null,i=gi(e),o=new Array(i.k),s={},u;i.testMode?typeof i.testCentroids=="number"?(i.testCentroids,u=pi(a,i.k,i.attributes)):ee(i.testCentroids)==="object"?u=i.testCentroids:u=pi(a,i.k,i.attributes):u=pi(a,i.k,i.attributes);for(var l=!0,v=0;l&&v<i.maxIterations;){for(var f=0;f<a.length;f++)n=a[f],s[n.id()]=ko(n,u,i.distance,i.attributes,"kMeans");l=!1;for(var h=0;h<i.k;h++){var c=Po(h,a,s);if(c.length!==0){for(var d=i.attributes.length,g=u[h],y=new Array(d),p=new Array(d),m=0;m<d;m++){p[m]=0;for(var b=0;b<c.length;b++)n=c[b],p[m]+=i.attributes[m](n);y[m]=p[m]/c.length,af(y[m],g[m],i.sensitivityThreshold)||(l=!0)}u[h]=y,o[h]=r.collection(c)}}v++}return o},lf=function(e){var r=this.cy(),a=this.nodes(),n=null,i=gi(e),o=new Array(i.k),s,u={},l,v=new Array(i.k);i.testMode?typeof i.testCentroids=="number"||(ee(i.testCentroids)==="object"?s=i.testCentroids:s=Bo(a,i.k)):s=Bo(a,i.k);for(var f=!0,h=0;f&&h<i.maxIterations;){for(var c=0;c<a.length;c++)n=a[c],u[n.id()]=ko(n,s,i.distance,i.attributes,"kMedoids");f=!1;for(var d=0;d<s.length;d++){var g=Po(d,a,u);if(g.length!==0){v[d]=Fo(s[d],g,i.attributes);for(var y=0;y<g.length;y++)l=Fo(g[y],g,i.attributes),l<v[d]&&(v[d]=l,s[d]=g[y],f=!0);o[d]=r.collection(g)}}h++}return o},uf=function(e,r,a,n,i){for(var o,s,u=0;u<r.length;u++)for(var l=0;l<e.length;l++)n[u][l]=Math.pow(a[u][l],i.m);for(var v=0;v<e.length;v++)for(var f=0;f<i.attributes.length;f++){o=0,s=0;for(var h=0;h<r.length;h++)o+=n[h][v]*i.attributes[f](r[h]),s+=n[h][v];e[v][f]=o/s}},vf=function(e,r,a,n,i){for(var o=0;o<e.length;o++)r[o]=e[o].slice();for(var s,u,l,v=2/(i.m-1),f=0;f<a.length;f++)for(var h=0;h<n.length;h++){s=0;for(var c=0;c<a.length;c++)u=bn(i.distance,n[h],a[f],i.attributes,"cmeans"),l=bn(i.distance,n[h],a[c],i.attributes,"cmeans"),s+=Math.pow(u/l,v);e[h][f]=1/s}},ff=function(e,r,a,n){for(var i=new Array(a.k),o=0;o<i.length;o++)i[o]=[];for(var s,u,l=0;l<r.length;l++){s=-1/0,u=-1;for(var v=0;v<r[0].length;v++)r[l][v]>s&&(s=r[l][v],u=v);i[u].push(e[l])}for(var f=0;f<i.length;f++)i[f]=n.collection(i[f]);return i},Go=function(e){var r=this.cy(),a=this.nodes(),n=gi(e),i,o,s,u,l;u=new Array(a.length);for(var v=0;v<a.length;v++)u[v]=new Array(n.k);s=new Array(a.length);for(var f=0;f<a.length;f++)s[f]=new Array(n.k);for(var h=0;h<a.length;h++){for(var c=0,d=0;d<n.k;d++)s[h][d]=Math.random(),c+=s[h][d];for(var g=0;g<n.k;g++)s[h][g]=s[h][g]/c}o=new Array(n.k);for(var y=0;y<n.k;y++)o[y]=new Array(n.attributes.length);l=new Array(a.length);for(var p=0;p<a.length;p++)l[p]=new Array(n.k);for(var m=!0,b=0;m&&b<n.maxIterations;)m=!1,uf(o,a,s,l,n),vf(s,u,o,a,n),nf(s,u,n.sensitivityThreshold)||(m=!0),b++;return i=ff(a,s,n,r),{clusters:i,degreeOfMembership:s}},hf={kMeans:sf,kMedoids:lf,fuzzyCMeans:Go,fcm:Go},cf=Lt({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),df={single:"min",complete:"max"},gf=function(e){var r=cf(e),a=df[r.linkage];return a!=null&&(r.linkage=a),r},zo=function(e,r,a,n,i){for(var o=0,s=1/0,u,l=i.attributes,v=function(C,B){return mn(i.distance,l.length,function(F){return l[F](C)},function(F){return l[F](B)},C,B)},f=0;f<e.length;f++){var h=e[f].key,c=a[h][n[h]];c<s&&(o=h,s=c)}if(i.mode==="threshold"&&s>=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var d=r[o],g=r[n[o]],y;i.mode==="dendrogram"?y={left:d,right:g,key:d.key}:y={value:d.value.concat(g.value),key:d.key},e[d.index]=y,e.splice(g.index,1),r[d.key]=y;for(var p=0;p<e.length;p++){var m=e[p];d.key===m.key?u=1/0:i.linkage==="min"?(u=a[d.key][m.key],a[d.key][m.key]>a[g.key][m.key]&&(u=a[g.key][m.key])):i.linkage==="max"?(u=a[d.key][m.key],a[d.key][m.key]<a[g.key][m.key]&&(u=a[g.key][m.key])):i.linkage==="mean"?u=(a[d.key][m.key]*d.size+a[g.key][m.key]*g.size)/(d.size+g.size):i.mode==="dendrogram"?u=v(m.value,d.value):u=v(m.value[0],d.value[0]),a[d.key][m.key]=a[m.key][d.key]=u}for(var b=0;b<e.length;b++){var E=e[b].key;if(n[E]===d.key||n[E]===g.key){for(var M=E,A=0;A<e.length;A++){var w=e[A].key;a[E][w]<a[E][M]&&(M=w)}n[E]=M}e[b].index=b}return d.key=g.key=d.index=g.index=null,!0},En=function t(e,r,a){e&&(e.value?r.push(e.value):(e.left&&t(e.left,r),e.right&&t(e.right,r)))},pf=function t(e,r){if(!e)return"";if(e.left&&e.right){var a=t(e.left,r),n=t(e.right,r),i=r.add({group:"nodes",data:{id:a+","+n}});return r.add({group:"edges",data:{source:a,target:i.id()}}),r.add({group:"edges",data:{source:n,target:i.id()}}),i.id()}else if(e.value)return e.value.id()},yf=function t(e,r,a){if(!e)return[];var n=[],i=[],o=[];return r===0?(e.left&&En(e.left,n),e.right&&En(e.right,i),o=n.concat(i),[a.collection(o)]):r===1?e.value?[a.collection(e.value)]:(e.left&&En(e.left,n),e.right&&En(e.right,i),[a.collection(n),a.collection(i)]):e.value?[a.collection(e.value)]:(e.left&&(n=t(e.left,r-1,a)),e.right&&(i=t(e.right,r-1,a)),n.concat(i))},$o=function(e){for(var r=this.cy(),a=this.nodes(),n=gf(e),i=n.attributes,o=function(b,E){return mn(n.distance,i.length,function(M){return i[M](b)},function(M){return i[M](E)},b,E)},s=[],u=[],l=[],v=[],f=0;f<a.length;f++){var h={value:n.mode==="dendrogram"?a[f]:[a[f]],key:f,index:f};s[f]=h,v[f]=h,u[f]=[],l[f]=0}for(var c=0;c<s.length;c++)for(var d=0;d<=c;d++){var g=void 0;n.mode==="dendrogram"?g=c===d?1/0:o(s[c].value,s[d].value):g=c===d?1/0:o(s[c].value[0],s[d].value[0]),u[c][d]=g,u[d][c]=g,g<u[c][l[c]]&&(l[c]=d)}for(var y=zo(s,v,u,l,n);y;)y=zo(s,v,u,l,n);var p;return n.mode==="dendrogram"?(p=yf(s[0],n.dendrogramDepth,r),n.addDendrogram&&pf(s[0],r)):(p=new Array(s.length),s.forEach(function(m,b){m.key=m.index=null,p[b]=r.collection(m.value)})),p},mf={hierarchicalClustering:$o,hca:$o},bf=Lt({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),Ef=function(e){var r=e.damping,a=e.preference;.5<=r&&r<1||xt("Damping must range on [0.5, 1). Got: ".concat(r));var n=["median","mean","min","max"];return n.some(function(i){return i===a})||k(a)||xt("Preference must be one of [".concat(n.map(function(i){return"'".concat(i,"'")}).join(", "),"] or a number. Got: ").concat(a)),bf(e)},wf=function(e,r,a,n){var i=function(s,u){return n[u](s)};return-mn(e,n.length,function(o){return i(r,o)},function(o){return i(a,o)},r,a)},xf=function(e,r){var a=null;return r==="median"?a=bv(e):r==="mean"?a=mv(e):r==="min"?a=pv(e):r==="max"?a=yv(e):a=r,a},Tf=function(e,r,a){for(var n=[],i=0;i<e;i++)r[i*e+i]+a[i*e+i]>0&&n.push(i);return n},Vo=function(e,r,a){for(var n=[],i=0;i<e;i++){for(var o=-1,s=-1/0,u=0;u<a.length;u++){var l=a[u];r[i*e+l]>s&&(o=l,s=r[i*e+l])}o>0&&n.push(o)}for(var v=0;v<a.length;v++)n[a[v]]=a[v];return n},Cf=function(e,r,a){for(var n=Vo(e,r,a),i=0;i<a.length;i++){for(var o=[],s=0;s<n.length;s++)n[s]===a[i]&&o.push(s);for(var u=-1,l=-1/0,v=0;v<o.length;v++){for(var f=0,h=0;h<o.length;h++)f+=r[o[h]*e+o[v]];f>l&&(u=v,l=f)}a[i]=o[u]}return n=Vo(e,r,a),n},_o=function(e){for(var r=this.cy(),a=this.nodes(),n=Ef(e),i={},o=0;o<a.length;o++)i[a[o].id()]=o;var s,u,l,v,f,h;s=a.length,u=s*s,l=new Array(u);for(var c=0;c<u;c++)l[c]=-1/0;for(var d=0;d<s;d++)for(var g=0;g<s;g++)d!==g&&(l[d*s+g]=wf(n.distance,a[d],a[g],n.attributes));v=xf(l,n.preference);for(var y=0;y<s;y++)l[y*s+y]=v;f=new Array(u);for(var p=0;p<u;p++)f[p]=0;h=new Array(u);for(var m=0;m<u;m++)h[m]=0;for(var b=new Array(s),E=new Array(s),M=new Array(s),A=0;A<s;A++)b[A]=0,E[A]=0,M[A]=0;for(var w=new Array(s*n.minIterations),I=0;I<w.length;I++)w[I]=0;var C;for(C=0;C<n.maxIterations;C++){for(var B=0;B<s;B++){for(var F=-1/0,R=-1/0,X=-1,G=0,re=0;re<s;re++)b[re]=f[B*s+re],G=h[B*s+re]+l[B*s+re],G>=F?(R=F,F=G,X=re):G>R&&(R=G);for(var q=0;q<s;q++)f[B*s+q]=(1-n.damping)*(l[B*s+q]-F)+n.damping*b[q];f[B*s+X]=(1-n.damping)*(l[B*s+X]-R)+n.damping*b[X]}for(var Z=0;Z<s;Z++){for(var ie=0,se=0;se<s;se++)b[se]=h[se*s+Z],E[se]=Math.max(0,f[se*s+Z]),ie+=E[se];ie-=E[Z],E[Z]=f[Z*s+Z],ie+=E[Z];for(var de=0;de<s;de++)h[de*s+Z]=(1-n.damping)*Math.min(0,ie-E[de])+n.damping*b[de];h[Z*s+Z]=(1-n.damping)*(ie-E[Z])+n.damping*b[Z]}for(var oe=0,ce=0;ce<s;ce++){var we=h[ce*s+ce]+f[ce*s+ce]>0?1:0;w[C%n.minIterations*s+ce]=we,oe+=we}if(oe>0&&(C>=n.minIterations-1||C==n.maxIterations-1)){for(var Te=0,Ee=0;Ee<s;Ee++){M[Ee]=0;for(var ye=0;ye<n.minIterations;ye++)M[Ee]+=w[ye*s+Ee];(M[Ee]===0||M[Ee]===n.minIterations)&&Te++}if(Te===s)break}}for(var ae=Tf(s,f,h),xe=Cf(s,l,ae),Ce={},Oe=0;Oe<ae.length;Oe++)Ce[ae[Oe]]=[];for(var Ie=0;Ie<a.length;Ie++){var He=i[a[Ie].id()],We=xe[He];We!=null&&Ce[We].push(a[Ie])}for(var Re=new Array(ae.length),Me=0;Me<ae.length;Me++)Re[Me]=r.collection(Ce[ae[Me]]);return Re},Df={affinityPropagation:_o,ap:_o},Sf=Lt({root:void 0,directed:!1}),Lf={hierholzer:function(e){if(!L(e)){var r=arguments;e={root:r[0],directed:r[1]}}var a=Sf(e),n=a.root,i=a.directed,o=this,s=!1,u,l,v;n&&(v=j(n)?this.filter(n)[0].id():n[0].id());var f={},h={};i?o.forEach(function(m){var b=m.id();if(m.isNode()){var E=m.indegree(!0),M=m.outdegree(!0),A=E-M,w=M-E;A==1?u?s=!0:u=b:w==1?l?s=!0:l=b:(w>1||A>1)&&(s=!0),f[b]=[],m.outgoers().forEach(function(I){I.isEdge()&&f[b].push(I.id())})}else h[b]=[void 0,m.target().id()]}):o.forEach(function(m){var b=m.id();if(m.isNode()){var E=m.degree(!0);E%2&&(u?l?s=!0:l=b:u=b),f[b]=[],m.connectedEdges().forEach(function(M){return f[b].push(M.id())})}else h[b]=[m.source().id(),m.target().id()]});var c={found:!1,trail:void 0};if(s)return c;if(l&&u)if(i){if(v&&l!=v)return c;v=l}else{if(v&&l!=v&&u!=v)return c;v||(v=l)}else v||(v=o[0].id());var d=function(b){for(var E=b,M=[b],A,w,I;f[E].length;)A=f[E].shift(),w=h[A][0],I=h[A][1],E!=I?(f[I]=f[I].filter(function(C){return C!=A}),E=I):!i&&E!=w&&(f[w]=f[w].filter(function(C){return C!=A}),E=w),M.unshift(A),M.unshift(E);return M},g=[],y=[];for(y=d(v);y.length!=1;)f[y[0]].length==0?(g.unshift(o.getElementById(y.shift())),g.unshift(o.getElementById(y.shift()))):y=d(y.shift()).concat(y);g.unshift(o.getElementById(y.shift()));for(var p in f)if(f[p].length)return c;return c.found=!0,c.trail=this.spawn(g,!0),c}},wn=function(){var e=this,r={},a=0,n=0,i=[],o=[],s={},u=function(h,c){for(var d=o.length-1,g=[],y=e.spawn();o[d].x!=h||o[d].y!=c;)g.push(o.pop().edge),d--;g.push(o.pop().edge),g.forEach(function(p){var m=p.connectedNodes().intersection(e);y.merge(p),m.forEach(function(b){var E=b.id(),M=b.connectedEdges().intersection(e);y.merge(b),r[E].cutVertex?y.merge(M.filter(function(A){return A.isLoop()})):y.merge(M)})}),i.push(y)},l=function f(h,c,d){h===d&&(n+=1),r[c]={id:a,low:a++,cutVertex:!1};var g=e.getElementById(c).connectedEdges().intersection(e);if(g.size()===0)i.push(e.spawn(e.getElementById(c)));else{var y,p,m,b;g.forEach(function(E){y=E.source().id(),p=E.target().id(),m=y===c?p:y,m!==d&&(b=E.id(),s[b]||(s[b]=!0,o.push({x:c,y:m,edge:E})),m in r?r[c].low=Math.min(r[c].low,r[m].id):(f(h,m,c),r[c].low=Math.min(r[c].low,r[m].low),r[c].id<=r[m].low&&(r[c].cutVertex=!0,u(c,m))))})}};e.forEach(function(f){if(f.isNode()){var h=f.id();h in r||(n=0,l(h,h),r[h].cutVertex=n>1)}});var v=Object.keys(r).filter(function(f){return r[f].cutVertex}).map(function(f){return e.getElementById(f)});return{cut:e.spawn(v),components:i}},Af={hopcroftTarjanBiconnected:wn,htbc:wn,htb:wn,hopcroftTarjanBiconnectedComponents:wn},xn=function(){var e=this,r={},a=0,n=[],i=[],o=e.spawn(e),s=function u(l){i.push(l),r[l]={index:a,low:a++,explored:!1};var v=e.getElementById(l).connectedEdges().intersection(e);if(v.forEach(function(g){var y=g.target().id();y!==l&&(y in r||u(y),r[y].explored||(r[l].low=Math.min(r[l].low,r[y].low)))}),r[l].index===r[l].low){for(var f=e.spawn();;){var h=i.pop();if(f.merge(e.getElementById(h)),r[h].low=r[l].index,r[h].explored=!0,h===l)break}var c=f.edgesWith(f),d=f.merge(c);n.push(d),o=o.difference(d)}};return e.forEach(function(u){if(u.isNode()){var l=u.id();l in r||s(l)}}),{cut:o,components:n}},Of={tarjanStronglyConnected:xn,tsc:xn,tscc:xn,tarjanStronglyConnectedComponents:xn},Uo={};[Ia,nv,iv,sv,uv,fv,dv,zv,ra,aa,di,Jv,hf,mf,Df,Lf,Af,Of].forEach(function(t){Ue(Uo,t)});/*!
Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable
Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com)
Licensed under The MIT License (http://opensource.org/licenses/MIT)
*/var Yo=0,Ho=1,Xo=2,pr=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=Yo,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};pr.prototype={fulfill:function(e){return Wo(this,Ho,"fulfillValue",e)},reject:function(e){return Wo(this,Xo,"rejectReason",e)},then:function(e,r){var a=this,n=new pr;return a.onFulfilled.push(Zo(e,n,"fulfill")),a.onRejected.push(Zo(r,n,"reject")),qo(a),n.proxy}};var Wo=function(e,r,a,n){return e.state===Yo&&(e.state=r,e[a]=n,qo(e)),e},qo=function(e){e.state===Ho?Ko(e,"onFulfilled",e.fulfillValue):e.state===Xo&&Ko(e,"onRejected",e.rejectReason)},Ko=function(e,r,a){if(e[r].length!==0){var n=e[r];e[r]=[];var i=function(){for(var s=0;s<n.length;s++)n[s](a)};typeof setImmediate=="function"?setImmediate(i):setTimeout(i,0)}},Zo=function(e,r,a){return function(n){if(typeof e!="function")r[a].call(r,n);else{var i;try{i=e(n)}catch(o){r.reject(o);return}Nf(r,i)}}},Nf=function t(e,r){if(e===r||e.proxy===r){e.reject(new TypeError("cannot resolve promise with itself"));return}var a;if(ee(r)==="object"&&r!==null||typeof r=="function")try{a=r.then}catch(i){e.reject(i);return}if(typeof a=="function"){var n=!1;try{a.call(r,function(i){n||(n=!0,i===r?e.reject(new TypeError("circular thenable chain")):t(e,i))},function(i){n||(n=!0,e.reject(i))})}catch(i){n||e.reject(i)}return}e.fulfill(r)};pr.all=function(t){return new pr(function(e,r){for(var a=new Array(t.length),n=0,i=function(u,l){a[u]=l,n++,n===t.length&&e(a)},o=0;o<t.length;o++)(function(s){var u=t[s],l=u!=null&&u.then!=null;if(l)u.then(function(f){i(s,f)},function(f){r(f)});else{var v=u;i(s,v)}})(o)})},pr.resolve=function(t){return new pr(function(e,r){e(t)})},pr.reject=function(t){return new pr(function(e,r){r(t)})};var ia=typeof Promise<"u"?Promise:pr,yi=function(e,r,a){var n=_e(e),i=!n,o=this._private=Ue({duration:1e3},r,a);if(o.target=e,o.style=o.style||o.css,o.started=!1,o.playing=!1,o.hooked=!1,o.applying=!1,o.progress=0,o.completes=[],o.frames=[],o.complete&&Y(o.complete)&&o.completes.push(o.complete),i){var s=e.position();o.startPosition=o.startPosition||{x:s.x,y:s.y},o.startStyle=o.startStyle||e.cy().style().getAnimationStartStyle(e,o.style)}if(n){var u=e.pan();o.startPan={x:u.x,y:u.y},o.startZoom=e.zoom()}this.length=1,this[0]=this},Gr=yi.prototype;Ue(Gr,{instanceString:function(){return"animation"},hook:function(){var e=this._private;if(!e.hooked){var r,a=e.target._private.animation;e.queue?r=a.queue:r=a.current,r.push(this),ge(e.target)&&e.target.cy().addToAnimationPool(e.target),e.hooked=!0}return this},play:function(){var e=this._private;return e.progress===1&&(e.progress=0),e.playing=!0,e.started=!1,e.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var e=this._private;return e.applying=!0,e.started=!1,e.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var e=this._private;return e.playing=!1,e.started=!1,this},stop:function(){var e=this._private;return e.playing=!1,e.started=!1,e.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(e){var r=this._private;return e===void 0?r.progress*r.duration:this.progress(e/r.duration)},progress:function(e){var r=this._private,a=r.playing;return e===void 0?r.progress:(a&&this.pause(),r.progress=e,r.started=!1,a&&this.play(),this)},completed:function(){return this._private.progress===1},reverse:function(){var e=this._private,r=e.playing;r&&this.pause(),e.progress=1-e.progress,e.started=!1;var a=function(l,v){var f=e[l];f!=null&&(e[l]=e[v],e[v]=f)};if(a("zoom","startZoom"),a("pan","startPan"),a("position","startPosition"),e.style)for(var n=0;n<e.style.length;n++){var i=e.style[n],o=i.name,s=e.startStyle[o];e.startStyle[o]=i,e.style[n]=s}return r&&this.play(),this},promise:function(e){var r=this._private,a;switch(e){case"frame":a=r.frames;break;default:case"complete":case"completed":a=r.completes}return new ia(function(n,i){a.push(function(){n()})})}}),Gr.complete=Gr.completed,Gr.run=Gr.play,Gr.running=Gr.playing;var Mf={animated:function(){return function(){var r=this,a=r.length!==void 0,n=a?r:[r],i=this._private.cy||this;if(!i.styleEnabled())return!1;var o=n[0];if(o)return o._private.animation.current.length>0}},clearQueue:function(){return function(){var r=this,a=r.length!==void 0,n=a?r:[r],i=this._private.cy||this;if(!i.styleEnabled())return this;for(var o=0;o<n.length;o++){var s=n[o];s._private.animation.queue=[]}return this}},delay:function(){return function(r,a){var n=this._private.cy||this;return n.styleEnabled()?this.animate({delay:r,duration:r,complete:a}):this}},delayAnimation:function(){return function(r,a){var n=this._private.cy||this;return n.styleEnabled()?this.animation({delay:r,duration:r,complete:a}):this}},animation:function(){return function(r,a){var n=this,i=n.length!==void 0,o=i?n:[n],s=this._private.cy||this,u=!i,l=!u;if(!s.styleEnabled())return this;var v=s.style();r=Ue({},r,a);var f=Object.keys(r).length===0;if(f)return new yi(o[0],r);switch(r.duration===void 0&&(r.duration=400),r.duration){case"slow":r.duration=600;break;case"fast":r.duration=200;break}if(l&&(r.style=v.getPropsList(r.style||r.css),r.css=void 0),l&&r.renderedPosition!=null){var h=r.renderedPosition,c=s.pan(),d=s.zoom();r.position=mo(h,d,c)}if(u&&r.panBy!=null){var g=r.panBy,y=s.pan();r.pan={x:y.x+g.x,y:y.y+g.y}}var p=r.center||r.centre;if(u&&p!=null){var m=s.getCenterPan(p.eles,r.zoom);m!=null&&(r.pan=m)}if(u&&r.fit!=null){var b=r.fit,E=s.getFitViewport(b.eles||b.boundingBox,b.padding);E!=null&&(r.pan=E.pan,r.zoom=E.zoom)}if(u&&L(r.zoom)){var M=s.getZoomedViewport(r.zoom);M!=null?(M.zoomed&&(r.zoom=M.zoom),M.panned&&(r.pan=M.pan)):r.zoom=null}return new yi(o[0],r)}},animate:function(){return function(r,a){var n=this,i=n.length!==void 0,o=i?n:[n],s=this._private.cy||this;if(!s.styleEnabled())return this;a&&(r=Ue({},r,a));for(var u=0;u<o.length;u++){var l=o[u],v=l.animated()&&(r.queue===void 0||r.queue),f=l.animation(r,v?{queue:!0}:void 0);f.play()}return this}},stop:function(){return function(r,a){var n=this,i=n.length!==void 0,o=i?n:[n],s=this._private.cy||this;if(!s.styleEnabled())return this;for(var u=0;u<o.length;u++){for(var l=o[u],v=l._private,f=v.animation.current,h=0;h<f.length;h++){var c=f[h],d=c._private;a&&(d.duration=0)}r&&(v.animation.queue=[]),a||(v.animation.current=[])}return s.notify("draw"),this}}},If=Array.isArray,Tn=If,Rf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kf=/^\w*$/;function Pf(t,e){if(Tn(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||Aa(t)?!0:kf.test(t)||!Rf.test(t)||e!=null&&t in Object(e)}var Bf=Pf,Ff="[object AsyncFunction]",Gf="[object Function]",zf="[object GeneratorFunction]",$f="[object Proxy]";function Vf(t){if(!Rr(t))return!1;var e=ao(t);return e==Gf||e==zf||e==Ff||e==$f}var _f=Vf,Uf=ln["__core-js_shared__"],mi=Uf,Qo=function(){var t=/[^.]+$/.exec(mi&&mi.keys&&mi.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Yf(t){return!!Qo&&Qo in t}var Hf=Yf,Xf=Function.prototype,Wf=Xf.toString;function qf(t){if(t!=null){try{return Wf.call(t)}catch{}try{return t+""}catch{}}return""}var Kf=qf,Zf=/[\\^$.*+?()[\]{}|]/g,Qf=/^\[object .+?Constructor\]$/,Jf=Function.prototype,jf=Object.prototype,eh=Jf.toString,th=jf.hasOwnProperty,rh=RegExp("^"+eh.call(th).replace(Zf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ah(t){if(!Rr(t)||Hf(t))return!1;var e=_f(t)?rh:Qf;return e.test(Kf(t))}var nh=ah;function ih(t,e){return t==null?void 0:t[e]}var oh=ih;function sh(t,e){var r=oh(t,e);return nh(r)?r:void 0}var bi=sh,lh=bi(Object,"create"),za=lh;function uh(){this.__data__=za?za(null):{},this.size=0}var vh=uh;function fh(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var hh=fh,ch="__lodash_hash_undefined__",dh=Object.prototype,gh=dh.hasOwnProperty;function ph(t){var e=this.__data__;if(za){var r=e[t];return r===ch?void 0:r}return gh.call(e,t)?e[t]:void 0}var yh=ph,mh=Object.prototype,bh=mh.hasOwnProperty;function Eh(t){var e=this.__data__;return za?e[t]!==void 0:bh.call(e,t)}var wh=Eh,xh="__lodash_hash_undefined__";function Th(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=za&&e===void 0?xh:e,this}var Ch=Th;function oa(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var a=t[e];this.set(a[0],a[1])}}oa.prototype.clear=vh,oa.prototype.delete=hh,oa.prototype.get=yh,oa.prototype.has=wh,oa.prototype.set=Ch;var Jo=oa;function Dh(){this.__data__=[],this.size=0}var Sh=Dh;function Lh(t,e){return t===e||t!==t&&e!==e}var jo=Lh;function Ah(t,e){for(var r=t.length;r--;)if(jo(t[r][0],e))return r;return-1}var Cn=Ah,Oh=Array.prototype,Nh=Oh.splice;function Mh(t){var e=this.__data__,r=Cn(e,t);if(r<0)return!1;var a=e.length-1;return r==a?e.pop():Nh.call(e,r,1),--this.size,!0}var Ih=Mh;function Rh(t){var e=this.__data__,r=Cn(e,t);return r<0?void 0:e[r][1]}var kh=Rh;function Ph(t){return Cn(this.__data__,t)>-1}var Bh=Ph;function Fh(t,e){var r=this.__data__,a=Cn(r,t);return a<0?(++this.size,r.push([t,e])):r[a][1]=e,this}var Gh=Fh;function sa(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var a=t[e];this.set(a[0],a[1])}}sa.prototype.clear=Sh,sa.prototype.delete=Ih,sa.prototype.get=kh,sa.prototype.has=Bh,sa.prototype.set=Gh;var zh=sa,$h=bi(ln,"Map"),Vh=$h;function _h(){this.size=0,this.__data__={hash:new Jo,map:new(Vh||zh),string:new Jo}}var Uh=_h;function Yh(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var Hh=Yh;function Xh(t,e){var r=t.__data__;return Hh(e)?r[typeof e=="string"?"string":"hash"]:r.map}var Dn=Xh;function Wh(t){var e=Dn(this,t).delete(t);return this.size-=e?1:0,e}var qh=Wh;function Kh(t){return Dn(this,t).get(t)}var Zh=Kh;function Qh(t){return Dn(this,t).has(t)}var Jh=Qh;function jh(t,e){var r=Dn(this,t),a=r.size;return r.set(t,e),this.size+=r.size==a?0:1,this}var ec=jh;function la(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var a=t[e];this.set(a[0],a[1])}}la.prototype.clear=Uh,la.prototype.delete=qh,la.prototype.get=Zh,la.prototype.has=Jh,la.prototype.set=ec;var es=la,tc="Expected a function";function Ei(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(tc);var r=function(){var a=arguments,n=e?e.apply(this,a):a[0],i=r.cache;if(i.has(n))return i.get(n);var o=t.apply(this,a);return r.cache=i.set(n,o)||i,o};return r.cache=new(Ei.Cache||es),r}Ei.Cache=es;var rc=Ei,ac=500;function nc(t){var e=rc(t,function(a){return r.size===ac&&r.clear(),a}),r=e.cache;return e}var ic=nc,oc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sc=/\\(\\)?/g,lc=ic(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(oc,function(r,a,n,i){e.push(n?i.replace(sc,"$1"):a||r)}),e}),ts=lc;function uc(t,e){for(var r=-1,a=t==null?0:t.length,n=Array(a);++r<a;)n[r]=e(t[r],r,t);return n}var rs=uc,vc=1/0,as=Zr?Zr.prototype:void 0,ns=as?as.toString:void 0;function is(t){if(typeof t=="string")return t;if(Tn(t))return rs(t,is)+"";if(Aa(t))return ns?ns.call(t):"";var e=t+"";return e=="0"&&1/t==-vc?"-0":e}var fc=is;function hc(t){return t==null?"":fc(t)}var os=hc;function cc(t,e){return Tn(t)?t:Bf(t,e)?[t]:ts(os(t))}var ss=cc,dc=1/0;function gc(t){if(typeof t=="string"||Aa(t))return t;var e=t+"";return e=="0"&&1/t==-dc?"-0":e}var wi=gc;function pc(t,e){e=ss(e,t);for(var r=0,a=e.length;t!=null&&r<a;)t=t[wi(e[r++])];return r&&r==a?t:void 0}var yc=pc;function mc(t,e,r){var a=t==null?void 0:yc(t,e);return a===void 0?r:a}var bc=mc,Ec=function(){try{var t=bi(Object,"defineProperty");return t({},"",{}),t}catch{}}(),ls=Ec;function wc(t,e,r){e=="__proto__"&&ls?ls(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var xc=wc,Tc=Object.prototype,Cc=Tc.hasOwnProperty;function Dc(t,e,r){var a=t[e];(!(Cc.call(t,e)&&jo(a,r))||r===void 0&&!(e in t))&&xc(t,e,r)}var Sc=Dc,Lc=9007199254740991,Ac=/^(?:0|[1-9]\d*)$/;function Oc(t,e){var r=typeof t;return e=e??Lc,!!e&&(r=="number"||r!="symbol"&&Ac.test(t))&&t>-1&&t%1==0&&t<e}var Nc=Oc;function Mc(t,e,r,a){if(!Rr(t))return t;e=ss(e,t);for(var n=-1,i=e.length,o=i-1,s=t;s!=null&&++n<i;){var u=wi(e[n]),l=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return t;if(n!=o){var v=s[u];l=a?a(v,u,s):void 0,l===void 0&&(l=Rr(v)?v:Nc(e[n+1])?[]:{})}Sc(s,u,l),s=s[u]}return t}var Ic=Mc;function Rc(t,e,r){return t==null?t:Ic(t,e,r)}var kc=Rc;function Pc(t,e){var r=-1,a=t.length;for(e||(e=Array(a));++r<a;)e[r]=t[r];return e}var Bc=Pc;function Fc(t){return Tn(t)?rs(t,wi):Aa(t)?[t]:Bc(ts(os(t)))}var Gc=Fc,zc={data:function(e){var r={field:"data",bindingEvent:"data",allowBinding:!1,allowSetting:!1,allowGetting:!1,settingEvent:"data",settingTriggersEvent:!1,triggerFnName:"trigger",immutableKeys:{},updateStyle:!1,beforeGet:function(n){},beforeSet:function(n,i){},onSet:function(n){},canSet:function(n){return!0}};return e=Ue({},r,e),function(n,i){var o=e,s=this,u=s.length!==void 0,l=u?s:[s],v=u?s[0]:s;if(j(n)){var f=n.indexOf(".")!==-1,h=f&&Gc(n);if(o.allowGetting&&i===void 0){var c;return v&&(o.beforeGet(v),h&&v._private[o.field][n]===void 0?c=bc(v._private[o.field],h):c=v._private[o.field][n]),c}else if(o.allowSetting&&i!==void 0){var d=!o.immutableKeys[n];if(d){var g=T({},n,i);o.beforeSet(s,g);for(var y=0,p=l.length;y<p;y++){var m=l[y];o.canSet(m)&&(h&&v._private[o.field][n]===void 0?kc(m._private[o.field],h,i):m._private[o.field][n]=i)}o.updateStyle&&s.updateStyle(),o.onSet(s),o.settingTriggersEvent&&s[o.triggerFnName](o.settingEvent)}}}else if(o.allowSetting&&L(n)){var b=n,E,M,A=Object.keys(b);o.beforeSet(s,b);for(var w=0;w<A.length;w++){E=A[w],M=b[E];var I=!o.immutableKeys[E];if(I)for(var C=0;C<l.length;C++){var B=l[C];o.canSet(B)&&(B._private[o.field][E]=M)}}o.updateStyle&&s.updateStyle(),o.onSet(s),o.settingTriggersEvent&&s[o.triggerFnName](o.settingEvent)}else if(o.allowBinding&&Y(n)){var F=n;s.on(o.bindingEvent,F)}else if(o.allowGetting&&n===void 0){var R;return v&&(o.beforeGet(v),R=v._private[o.field]),R}return s}},removeData:function(e){var r={field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!1,immutableKeys:{}};return e=Ue({},r,e),function(n){var i=e,o=this,s=o.length!==void 0,u=s?o:[o];if(j(n)){for(var l=n.split(/\s+/),v=l.length,f=0;f<v;f++){var h=l[f];if(!Pe(h)){var c=!i.immutableKeys[h];if(c)for(var d=0,g=u.length;d<g;d++)u[d]._private[i.field][h]=void 0}}i.triggerEvent&&o[i.triggerFnName](i.event)}else if(n===void 0){for(var y=0,p=u.length;y<p;y++)for(var m=u[y]._private[i.field],b=Object.keys(m),E=0;E<b.length;E++){var M=b[E],A=!i.immutableKeys[M];A&&(m[M]=void 0)}i.triggerEvent&&o[i.triggerFnName](i.event)}return o}}},$c={eventAliasesOn:function(e){var r=e;r.addListener=r.listen=r.bind=r.on,r.unlisten=r.unbind=r.off=r.removeListener,r.trigger=r.emit,r.pon=r.promiseOn=function(a,n){var i=this,o=Array.prototype.slice.call(arguments,0);return new ia(function(s,u){var l=function(c){i.off.apply(i,f),s(c)},v=o.concat([l]),f=v.concat([]);i.on.apply(i,v)})}}},ft={};[Mf,zc,$c].forEach(function(t){Ue(ft,t)});var Vc={animate:ft.animate(),animation:ft.animation(),animated:ft.animated(),clearQueue:ft.clearQueue(),delay:ft.delay(),delayAnimation:ft.delayAnimation(),stop:ft.stop()},Sn={classes:function(e){var r=this;if(e===void 0){var a=[];return r[0]._private.classes.forEach(function(d){return a.push(d)}),a}else te(e)||(e=(e||"").match(/\S+/g)||[]);for(var n=[],i=new Jr(e),o=0;o<r.length;o++){for(var s=r[o],u=s._private,l=u.classes,v=!1,f=0;f<e.length;f++){var h=e[f],c=l.has(h);if(!c){v=!0;break}}v||(v=l.size!==e.length),v&&(u.classes=i,n.push(s))}return n.length>0&&this.spawn(n).updateStyle().emit("class"),r},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var r=this[0];return r!=null&&r._private.classes.has(e)},toggleClass:function(e,r){te(e)||(e=e.match(/\S+/g)||[]);for(var a=this,n=r===void 0,i=[],o=0,s=a.length;o<s;o++)for(var u=a[o],l=u._private.classes,v=!1,f=0;f<e.length;f++){var h=e[f],c=l.has(h),d=!1;r||n&&!c?(l.add(h),d=!0):(!r||n&&c)&&(l.delete(h),d=!0),!v&&d&&(i.push(u),v=!0)}return i.length>0&&this.spawn(i).updateStyle().emit("class"),a},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,r){var a=this;if(r==null)r=250;else if(r===0)return a;return a.addClass(e),setTimeout(function(){a.removeClass(e)},r),a}};Sn.className=Sn.classNames=Sn.classes;var it={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:ct,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};it.variable="(?:[\\w-.]|(?:\\\\"+it.metaChar+"))+",it.className="(?:[\\w-]|(?:\\\\"+it.metaChar+"))+",it.value=it.string+"|"+it.number,it.id=it.variable,function(){var t,e,r;for(t=it.comparatorOp.split("|"),r=0;r<t.length;r++)e=t[r],it.comparatorOp+="|@"+e;for(t=it.comparatorOp.split("|"),r=0;r<t.length;r++)e=t[r],!(e.indexOf("!")>=0)&&e!=="="&&(it.comparatorOp+="|\\!"+e)}();var gt=function(){return{checks:[]}},Be={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},xi=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(t,e){return Jl(t.selector,e.selector)}),_c=function(){for(var t={},e,r=0;r<xi.length;r++)e=xi[r],t[e.selector]=e.matches;return t}(),Uc=function(e,r){return _c[e](r)},Yc="("+xi.map(function(t){return t.selector}).join("|")+")",ua=function(e){return e.replace(new RegExp("\\\\("+it.metaChar+")","g"),function(r,a){return a})},Cr=function(e,r,a){e[e.length-1]=a},Ti=[{name:"group",query:!0,regex:"("+it.group+")",populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:Be.GROUP,value:i==="*"?i:i+"s"})}},{name:"state",query:!0,regex:Yc,populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:Be.STATE,value:i})}},{name:"id",query:!0,regex:"\\#("+it.id+")",populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:Be.ID,value:ua(i)})}},{name:"className",query:!0,regex:"\\.("+it.className+")",populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:Be.CLASS,value:ua(i)})}},{name:"dataExists",query:!0,regex:"\\[\\s*("+it.variable+")\\s*\\]",populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:Be.DATA_EXIST,field:ua(i)})}},{name:"dataCompare",query:!0,regex:"\\[\\s*("+it.variable+")\\s*("+it.comparatorOp+")\\s*("+it.value+")\\s*\\]",populate:function(e,r,a){var n=x(a,3),i=n[0],o=n[1],s=n[2],u=new RegExp("^"+it.string+"$").exec(s)!=null;u?s=s.substring(1,s.length-1):s=parseFloat(s),r.checks.push({type:Be.DATA_COMPARE,field:ua(i),operator:o,value:s})}},{name:"dataBool",query:!0,regex:"\\[\\s*("+it.boolOp+")\\s*("+it.variable+")\\s*\\]",populate:function(e,r,a){var n=x(a,2),i=n[0],o=n[1];r.checks.push({type:Be.DATA_BOOL,field:ua(o),operator:i})}},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+it.meta+")\\s*("+it.comparatorOp+")\\s*("+it.number+")\\s*\\]\\]",populate:function(e,r,a){var n=x(a,3),i=n[0],o=n[1],s=n[2];r.checks.push({type:Be.META_COMPARE,field:ua(i),operator:o,value:parseFloat(s)})}},{name:"nextQuery",separator:!0,regex:it.separator,populate:function(e,r){var a=e.currentSubject,n=e.edgeCount,i=e.compoundCount,o=e[e.length-1];a!=null&&(o.subject=a,e.currentSubject=null),o.edgeCount=n,o.compoundCount=i,e.edgeCount=0,e.compoundCount=0;var s=e[e.length++]=gt();return s}},{name:"directedEdge",separator:!0,regex:it.directedEdge,populate:function(e,r){if(e.currentSubject==null){var a=gt(),n=r,i=gt();return a.checks.push({type:Be.DIRECTED_EDGE,source:n,target:i}),Cr(e,r,a),e.edgeCount++,i}else{var o=gt(),s=r,u=gt();return o.checks.push({type:Be.NODE_SOURCE,source:s,target:u}),Cr(e,r,o),e.edgeCount++,u}}},{name:"undirectedEdge",separator:!0,regex:it.undirectedEdge,populate:function(e,r){if(e.currentSubject==null){var a=gt(),n=r,i=gt();return a.checks.push({type:Be.UNDIRECTED_EDGE,nodes:[n,i]}),Cr(e,r,a),e.edgeCount++,i}else{var o=gt(),s=r,u=gt();return o.checks.push({type:Be.NODE_NEIGHBOR,node:s,neighbor:u}),Cr(e,r,o),u}}},{name:"child",separator:!0,regex:it.child,populate:function(e,r){if(e.currentSubject==null){var a=gt(),n=gt(),i=e[e.length-1];return a.checks.push({type:Be.CHILD,parent:i,child:n}),Cr(e,r,a),e.compoundCount++,n}else if(e.currentSubject===r){var o=gt(),s=e[e.length-1],u=gt(),l=gt(),v=gt(),f=gt();return o.checks.push({type:Be.COMPOUND_SPLIT,left:s,right:u,subject:l}),l.checks=r.checks,r.checks=[{type:Be.TRUE}],f.checks.push({type:Be.TRUE}),u.checks.push({type:Be.PARENT,parent:f,child:v}),Cr(e,s,o),e.currentSubject=l,e.compoundCount++,v}else{var h=gt(),c=gt(),d=[{type:Be.PARENT,parent:h,child:c}];return h.checks=r.checks,r.checks=d,e.compoundCount++,c}}},{name:"descendant",separator:!0,regex:it.descendant,populate:function(e,r){if(e.currentSubject==null){var a=gt(),n=gt(),i=e[e.length-1];return a.checks.push({type:Be.DESCENDANT,ancestor:i,descendant:n}),Cr(e,r,a),e.compoundCount++,n}else if(e.currentSubject===r){var o=gt(),s=e[e.length-1],u=gt(),l=gt(),v=gt(),f=gt();return o.checks.push({type:Be.COMPOUND_SPLIT,left:s,right:u,subject:l}),l.checks=r.checks,r.checks=[{type:Be.TRUE}],f.checks.push({type:Be.TRUE}),u.checks.push({type:Be.ANCESTOR,ancestor:f,descendant:v}),Cr(e,s,o),e.currentSubject=l,e.compoundCount++,v}else{var h=gt(),c=gt(),d=[{type:Be.ANCESTOR,ancestor:h,descendant:c}];return h.checks=r.checks,r.checks=d,e.compoundCount++,c}}},{name:"subject",modifier:!0,regex:it.subject,populate:function(e,r){if(e.currentSubject!=null&&e.currentSubject!==r)return vt("Redefinition of subject in selector `"+e.toString()+"`"),!1;e.currentSubject=r;var a=e[e.length-1],n=a.checks[0],i=n==null?null:n.type;i===Be.DIRECTED_EDGE?n.type=Be.NODE_TARGET:i===Be.UNDIRECTED_EDGE&&(n.type=Be.NODE_NEIGHBOR,n.node=n.nodes[1],n.neighbor=n.nodes[0],n.nodes=null)}}];Ti.forEach(function(t){return t.regexObj=new RegExp("^"+t.regex)});var Hc=function(e){for(var r,a,n,i=0;i<Ti.length;i++){var o=Ti[i],s=o.name,u=e.match(o.regexObj);if(u!=null){a=u,r=o,n=s;var l=u[0];e=e.substring(l.length);break}}return{expr:r,match:a,name:n,remaining:e}},Xc=function(e){var r=e.match(/^\s+/);if(r){var a=r[0];e=e.substring(a.length)}return e},Wc=function(e){var r=this,a=r.inputText=e,n=r[0]=gt();for(r.length=1,a=Xc(a);;){var i=Hc(a);if(i.expr==null)return vt("The selector `"+e+"`is invalid"),!1;var o=i.match.slice(1),s=i.expr.populate(r,n,o);if(s===!1)return!1;if(s!=null&&(n=s),a=i.remaining,a.match(/^\s*$/))break}var u=r[r.length-1];r.currentSubject!=null&&(u.subject=r.currentSubject),u.edgeCount=r.edgeCount,u.compoundCount=r.compoundCount;for(var l=0;l<r.length;l++){var v=r[l];if(v.compoundCount>0&&v.edgeCount>0)return vt("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(v.edgeCount>1)return vt("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;v.edgeCount===1&&vt("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},qc=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(v){return v??""},r=function(v){return j(v)?'"'+v+'"':e(v)},a=function(v){return" "+v+" "},n=function(v,f){var h=v.type,c=v.value;switch(h){case Be.GROUP:{var d=e(c);return d.substring(0,d.length-1)}case Be.DATA_COMPARE:{var g=v.field,y=v.operator;return"["+g+a(e(y))+r(c)+"]"}case Be.DATA_BOOL:{var p=v.operator,m=v.field;return"["+e(p)+m+"]"}case Be.DATA_EXIST:{var b=v.field;return"["+b+"]"}case Be.META_COMPARE:{var E=v.operator,M=v.field;return"[["+M+a(e(E))+r(c)+"]]"}case Be.STATE:return c;case Be.ID:return"#"+c;case Be.CLASS:return"."+c;case Be.PARENT:case Be.CHILD:return i(v.parent,f)+a(">")+i(v.child,f);case Be.ANCESTOR:case Be.DESCENDANT:return i(v.ancestor,f)+" "+i(v.descendant,f);case Be.COMPOUND_SPLIT:{var A=i(v.left,f),w=i(v.subject,f),I=i(v.right,f);return A+(A.length>0?" ":"")+w+I}case Be.TRUE:return""}},i=function(v,f){return v.checks.reduce(function(h,c,d){return h+(f===v&&d===0?"$":"")+n(c,f)},"")},o="",s=0;s<this.length;s++){var u=this[s];o+=i(u,u.subject),this.length>1&&s<this.length-1&&(o+=", ")}return this.toStringCache=o,o},Kc={parse:Wc,toString:qc},us=function(e,r,a){var n,i=j(e),o=k(e),s=j(a),u,l,v=!1,f=!1,h=!1;switch(r.indexOf("!")>=0&&(r=r.replace("!",""),f=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),v=!0),(i||s||v)&&(u=!i&&!o?"":""+e,l=""+a),v&&(e=u=u.toLowerCase(),a=l=l.toLowerCase()),r){case"*=":n=u.indexOf(l)>=0;break;case"$=":n=u.indexOf(l,u.length-l.length)>=0;break;case"^=":n=u.indexOf(l)===0;break;case"=":n=e===a;break;case">":h=!0,n=e>a;break;case">=":h=!0,n=e>=a;break;case"<":h=!0,n=e<a;break;case"<=":h=!0,n=e<=a;break;default:n=!1;break}return f&&(e!=null||!h)&&(n=!n),n},Zc=function(e,r){switch(r){case"?":return!!e;case"!":return!e;case"^":return e===void 0}},Qc=function(e){return e!==void 0},Ci=function(e,r){return e.data(r)},Jc=function(e,r){return e[r]()},Tt=[],wt=function(e,r){return e.checks.every(function(a){return Tt[a.type](a,r)})};Tt[Be.GROUP]=function(t,e){var r=t.value;return r==="*"||r===e.group()},Tt[Be.STATE]=function(t,e){var r=t.value;return Uc(r,e)},Tt[Be.ID]=function(t,e){var r=t.value;return e.id()===r},Tt[Be.CLASS]=function(t,e){var r=t.value;return e.hasClass(r)},Tt[Be.META_COMPARE]=function(t,e){var r=t.field,a=t.operator,n=t.value;return us(Jc(e,r),a,n)},Tt[Be.DATA_COMPARE]=function(t,e){var r=t.field,a=t.operator,n=t.value;return us(Ci(e,r),a,n)},Tt[Be.DATA_BOOL]=function(t,e){var r=t.field,a=t.operator;return Zc(Ci(e,r),a)},Tt[Be.DATA_EXIST]=function(t,e){var r=t.field;return t.operator,Qc(Ci(e,r))},Tt[Be.UNDIRECTED_EDGE]=function(t,e){var r=t.nodes[0],a=t.nodes[1],n=e.source(),i=e.target();return wt(r,n)&&wt(a,i)||wt(a,n)&&wt(r,i)},Tt[Be.NODE_NEIGHBOR]=function(t,e){return wt(t.node,e)&&e.neighborhood().some(function(r){return r.isNode()&&wt(t.neighbor,r)})},Tt[Be.DIRECTED_EDGE]=function(t,e){return wt(t.source,e.source())&&wt(t.target,e.target())},Tt[Be.NODE_SOURCE]=function(t,e){return wt(t.source,e)&&e.outgoers().some(function(r){return r.isNode()&&wt(t.target,r)})},Tt[Be.NODE_TARGET]=function(t,e){return wt(t.target,e)&&e.incomers().some(function(r){return r.isNode()&&wt(t.source,r)})},Tt[Be.CHILD]=function(t,e){return wt(t.child,e)&&wt(t.parent,e.parent())},Tt[Be.PARENT]=function(t,e){return wt(t.parent,e)&&e.children().some(function(r){return wt(t.child,r)})},Tt[Be.DESCENDANT]=function(t,e){return wt(t.descendant,e)&&e.ancestors().some(function(r){return wt(t.ancestor,r)})},Tt[Be.ANCESTOR]=function(t,e){return wt(t.ancestor,e)&&e.descendants().some(function(r){return wt(t.descendant,r)})},Tt[Be.COMPOUND_SPLIT]=function(t,e){return wt(t.subject,e)&&wt(t.left,e)&&wt(t.right,e)},Tt[Be.TRUE]=function(){return!0},Tt[Be.COLLECTION]=function(t,e){var r=t.value;return r.has(e)},Tt[Be.FILTER]=function(t,e){var r=t.value;return r(e)};var jc=function(e){var r=this;if(r.length===1&&r[0].checks.length===1&&r[0].checks[0].type===Be.ID)return e.getElementById(r[0].checks[0].value).collection();var a=function(i){for(var o=0;o<r.length;o++){var s=r[o];if(wt(s,i))return!0}return!1};return r.text()==null&&(a=function(){return!0}),e.filter(a)},ed=function(e){for(var r=this,a=0;a<r.length;a++){var n=r[a];if(wt(n,e))return!0}return!1},td={matches:ed,filter:jc},Dr=function(e){this.inputText=e,this.currentSubject=null,this.compoundCount=0,this.edgeCount=0,this.length=0,e==null||j(e)&&e.match(/^\s*$/)||(ge(e)?this.addQuery({checks:[{type:Be.COLLECTION,value:e.collection()}]}):Y(e)?this.addQuery({checks:[{type:Be.FILTER,value:e}]}):j(e)?this.parse(e)||(this.invalid=!0):xt("A selector must be created from a string; found "))},Sr=Dr.prototype;[Kc,td].forEach(function(t){return Ue(Sr,t)}),Sr.text=function(){return this.inputText},Sr.size=function(){return this.length},Sr.eq=function(t){return this[t]},Sr.sameText=function(t){return!this.invalid&&!t.invalid&&this.text()===t.text()},Sr.addQuery=function(t){this[this.length++]=t},Sr.selector=Sr.toString;var Lr={allAre:function(e){var r=new Dr(e);return this.every(function(a){return r.matches(a)})},is:function(e){var r=new Dr(e);return this.some(function(a){return r.matches(a)})},some:function(e,r){for(var a=0;a<this.length;a++){var n=r?e.apply(r,[this[a],a,this]):e(this[a],a,this);if(n)return!0}return!1},every:function(e,r){for(var a=0;a<this.length;a++){var n=r?e.apply(r,[this[a],a,this]):e(this[a],a,this);if(!n)return!1}return!0},same:function(e){if(this===e)return!0;e=this.cy().collection(e);var r=this.length,a=e.length;return r!==a?!1:r===1?this[0]===e[0]:this.every(function(n){return e.hasElementWithId(n.id())})},anySame:function(e){return e=this.cy().collection(e),this.some(function(r){return e.hasElementWithId(r.id())})},allAreNeighbors:function(e){e=this.cy().collection(e);var r=this.neighborhood();return e.every(function(a){return r.hasElementWithId(a.id())})},contains:function(e){e=this.cy().collection(e);var r=this;return e.every(function(a){return r.hasElementWithId(a.id())})}};Lr.allAreNeighbours=Lr.allAreNeighbors,Lr.has=Lr.contains,Lr.equal=Lr.equals=Lr.same;var Kt=function(e,r){return function(n,i,o,s){var u=n,l=this,v;if(u==null?v="":ge(u)&&u.length===1&&(v=u.id()),l.length===1&&v){var f=l[0]._private,h=f.traversalCache=f.traversalCache||{},c=h[r]=h[r]||[],d=kr(v),g=c[d];return g||(c[d]=e.call(l,n,i,o,s))}else return e.call(l,n,i,o,s)}},va={parent:function(e){var r=[];if(this.length===1){var a=this[0]._private.parent;if(a)return a}for(var n=0;n<this.length;n++){var i=this[n],o=i._private.parent;o&&r.push(o)}return this.spawn(r,!0).filter(e)},parents:function(e){for(var r=[],a=this.parent();a.nonempty();){for(var n=0;n<a.length;n++){var i=a[n];r.push(i)}a=a.parent()}return this.spawn(r,!0).filter(e)},commonAncestors:function(e){for(var r,a=0;a<this.length;a++){var n=this[a],i=n.parents();r=r||i,r=r.intersect(i)}return r.filter(e)},orphans:function(e){return this.stdFilter(function(r){return r.isOrphan()}).filter(e)},nonorphans:function(e){return this.stdFilter(function(r){return r.isChild()}).filter(e)},children:Kt(function(t){for(var e=[],r=0;r<this.length;r++)for(var a=this[r],n=a._private.children,i=0;i<n.length;i++)e.push(n[i]);return this.spawn(e,!0).filter(t)},"children"),siblings:function(e){return this.parent().children().not(this).filter(e)},isParent:function(){var e=this[0];if(e)return e.isNode()&&e._private.children.length!==0},isChildless:function(){var e=this[0];if(e)return e.isNode()&&e._private.children.length===0},isChild:function(){var e=this[0];if(e)return e.isNode()&&e._private.parent!=null},isOrphan:function(){var e=this[0];if(e)return e.isNode()&&e._private.parent==null},descendants:function(e){var r=[];function a(n){for(var i=0;i<n.length;i++){var o=n[i];r.push(o),o.children().nonempty()&&a(o.children())}}return a(this.children()),this.spawn(r,!0).filter(e)}};function Di(t,e,r,a){for(var n=[],i=new Jr,o=t.cy(),s=o.hasCompoundNodes(),u=0;u<t.length;u++){var l=t[u];r?n.push(l):s&&a(n,i,l)}for(;n.length>0;){var v=n.shift();e(v),i.add(v.id()),s&&a(n,i,v)}return t}function vs(t,e,r){if(r.isParent())for(var a=r._private.children,n=0;n<a.length;n++){var i=a[n];e.has(i.id())||t.push(i)}}va.forEachDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Di(this,t,e,vs)};function fs(t,e,r){if(r.isChild()){var a=r._private.parent;e.has(a.id())||t.push(a)}}va.forEachUp=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Di(this,t,e,fs)};function rd(t,e,r){fs(t,e,r),vs(t,e,r)}va.forEachUpAndDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Di(this,t,e,rd)},va.ancestors=va.parents;var $a,hs;$a=hs={data:ft.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:ft.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:ft.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ft.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:ft.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:ft.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}},$a.attr=$a.data,$a.removeAttr=$a.removeData;var ad=hs,Ln={};function Si(t){return function(e){var r=this;if(e===void 0&&(e=!0),r.length!==0)if(r.isNode()&&!r.removed()){for(var a=0,n=r[0],i=n._private.edges,o=0;o<i.length;o++){var s=i[o];!e&&s.isLoop()||(a+=t(n,s))}return a}else return}}Ue(Ln,{degree:Si(function(t,e){return e.source().same(e.target())?2:1}),indegree:Si(function(t,e){return e.target().same(t)?1:0}),outdegree:Si(function(t,e){return e.source().same(t)?1:0})});function fa(t,e){return function(r){for(var a,n=this.nodes(),i=0;i<n.length;i++){var o=n[i],s=o[t](r);s!==void 0&&(a===void 0||e(s,a))&&(a=s)}return a}}Ue(Ln,{minDegree:fa("degree",function(t,e){return t<e}),maxDegree:fa("degree",function(t,e){return t>e}),minIndegree:fa("indegree",function(t,e){return t<e}),maxIndegree:fa("indegree",function(t,e){return t>e}),minOutdegree:fa("outdegree",function(t,e){return t<e}),maxOutdegree:fa("outdegree",function(t,e){return t>e})}),Ue(Ln,{totalDegree:function(e){for(var r=0,a=this.nodes(),n=0;n<a.length;n++)r+=a[n].degree(e);return r}});var tr,cs,ds=function(e,r,a){for(var n=0;n<e.length;n++){var i=e[n];if(!i.locked()){var o=i._private.position,s={x:r.x!=null?r.x-o.x:0,y:r.y!=null?r.y-o.y:0};i.isParent()&&!(s.x===0&&s.y===0)&&i.children().shift(s,a),i.dirtyBoundingBoxCache()}}},gs={field:"position",bindingEvent:"position",allowBinding:!0,allowSetting:!0,settingEvent:"position",settingTriggersEvent:!0,triggerFnName:"emitAndNotify",allowGetting:!0,validKeys:["x","y"],beforeGet:function(e){e.updateCompoundBounds()},beforeSet:function(e,r){ds(e,r,!1)},onSet:function(e){e.dirtyCompoundBoundsCache()},canSet:function(e){return!e.locked()}};tr=cs={position:ft.data(gs),silentPosition:ft.data(Ue({},gs,{allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!1,beforeSet:function(e,r){ds(e,r,!0)},onSet:function(e){e.dirtyCompoundBoundsCache()}})),positions:function(e,r){if(L(e))r?this.silentPosition(e):this.position(e);else if(Y(e)){var a=e,n=this.cy();n.startBatch();for(var i=0;i<this.length;i++){var o=this[i],s=void 0;(s=a(o,i))&&(r?o.silentPosition(s):o.position(s))}n.endBatch()}return this},silentPositions:function(e){return this.positions(e,!0)},shift:function(e,r,a){var n;if(L(e)?(n={x:k(e.x)?e.x:0,y:k(e.y)?e.y:0},a=r):j(e)&&k(r)&&(n={x:0,y:0},n[e]=r),n!=null){var i=this.cy();i.startBatch();for(var o=0;o<this.length;o++){var s=this[o];if(!(i.hasCompoundNodes()&&s.isChild()&&s.ancestors().anySame(this))){var u=s.position(),l={x:u.x+n.x,y:u.y+n.y};a?s.silentPosition(l):s.position(l)}}i.endBatch()}return this},silentShift:function(e,r){return L(e)?this.shift(e,!0):j(e)&&k(r)&&this.shift(e,r,!0),this},renderedPosition:function(e,r){var a=this[0],n=this.cy(),i=n.zoom(),o=n.pan(),s=L(e)?e:void 0,u=s!==void 0||r!==void 0&&j(e);if(a&&a.isNode())if(u)for(var l=0;l<this.length;l++){var v=this[l];r!==void 0?v.position(e,(r-o[e])/i):s!==void 0&&v.position(mo(s,i,o))}else{var f=a.position();return s=dn(f,i,o),e===void 0?s:s[e]}else if(!u)return;return this},relativePosition:function(e,r){var a=this[0],n=this.cy(),i=L(e)?e:void 0,o=i!==void 0||r!==void 0&&j(e),s=n.hasCompoundNodes();if(a&&a.isNode())if(o)for(var u=0;u<this.length;u++){var l=this[u],v=s?l.parent():null,f=v&&v.length>0,h=f;f&&(v=v[0]);var c=h?v.position():{x:0,y:0};r!==void 0?l.position(e,r+c[e]):i!==void 0&&l.position({x:i.x+c.x,y:i.y+c.y})}else{var d=a.position(),g=s?a.parent():null,y=g&&g.length>0,p=y;y&&(g=g[0]);var m=p?g.position():{x:0,y:0};return i={x:d.x-m.x,y:d.y-m.y},e===void 0?i:i[e]}else if(!o)return;return this}},tr.modelPosition=tr.point=tr.position,tr.modelPositions=tr.points=tr.positions,tr.renderedPoint=tr.renderedPosition,tr.relativePoint=tr.relativePosition;var nd=cs,ha,Ar;ha=Ar={},Ar.renderedBoundingBox=function(t){var e=this.boundingBox(t),r=this.cy(),a=r.zoom(),n=r.pan(),i=e.x1*a+n.x,o=e.x2*a+n.x,s=e.y1*a+n.y,u=e.y2*a+n.y;return{x1:i,x2:o,y1:s,y2:u,w:o-i,h:u-s}},Ar.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(r){if(r.isParent()){var a=r._private;a.compoundBoundsClean=!1,a.bbCache=null,t||r.emitAndNotify("bounds")}}),this)},Ar.updateCompoundBounds=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function r(o){if(!o.isParent())return;var s=o._private,u=o.children(),l=o.pstyle("compound-sizing-wrt-labels").value==="include",v={width:{val:o.pstyle("min-width").pfValue,left:o.pstyle("min-width-bias-left"),right:o.pstyle("min-width-bias-right")},height:{val:o.pstyle("min-height").pfValue,top:o.pstyle("min-height-bias-top"),bottom:o.pstyle("min-height-bias-bottom")}},f=u.boundingBox({includeLabels:l,includeOverlays:!1,useCache:!1}),h=s.position;(f.w===0||f.h===0)&&(f={w:o.pstyle("width").pfValue,h:o.pstyle("height").pfValue},f.x1=h.x-f.w/2,f.x2=h.x+f.w/2,f.y1=h.y-f.h/2,f.y2=h.y+f.h/2);function c(C,B,F){var R=0,X=0,G=B+F;return C>0&&G>0&&(R=B/G*C,X=F/G*C),{biasDiff:R,biasComplementDiff:X}}function d(C,B,F,R){if(F.units==="%")switch(R){case"width":return C>0?F.pfValue*C:0;case"height":return B>0?F.pfValue*B:0;case"average":return C>0&&B>0?F.pfValue*(C+B)/2:0;case"min":return C>0&&B>0?C>B?F.pfValue*B:F.pfValue*C:0;case"max":return C>0&&B>0?C>B?F.pfValue*C:F.pfValue*B:0;default:return 0}else return F.units==="px"?F.pfValue:0}var g=v.width.left.value;v.width.left.units==="px"&&v.width.val>0&&(g=g*100/v.width.val);var y=v.width.right.value;v.width.right.units==="px"&&v.width.val>0&&(y=y*100/v.width.val);var p=v.height.top.value;v.height.top.units==="px"&&v.height.val>0&&(p=p*100/v.height.val);var m=v.height.bottom.value;v.height.bottom.units==="px"&&v.height.val>0&&(m=m*100/v.height.val);var b=c(v.width.val-f.w,g,y),E=b.biasDiff,M=b.biasComplementDiff,A=c(v.height.val-f.h,p,m),w=A.biasDiff,I=A.biasComplementDiff;s.autoPadding=d(f.w,f.h,o.pstyle("padding"),o.pstyle("padding-relative-to").value),s.autoWidth=Math.max(f.w,v.width.val),h.x=(-E+f.x1+f.x2+M)/2,s.autoHeight=Math.max(f.h,v.height.val),h.y=(-w+f.y1+f.y2+I)/2}for(var a=0;a<this.length;a++){var n=this[a],i=n._private;(!i.compoundBoundsClean||t)&&(r(n),e.batching()||(i.compoundBoundsClean=!0))}return this};var Zt=function(e){return e===1/0||e===-1/0?0:e},rr=function(e,r,a,n,i){n-r===0||i-a===0||r==null||a==null||n==null||i==null||(e.x1=r<e.x1?r:e.x1,e.x2=n>e.x2?n:e.x2,e.y1=a<e.y1?a:e.y1,e.y2=i>e.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},zr=function(e,r){return r==null?e:rr(e,r.x1,r.y1,r.x2,r.y2)},Va=function(e,r,a){return er(e,r,a)},An=function(e,r,a){if(!r.cy().headless()){var n=r._private,i=n.rstyle,o=i.arrowWidth/2,s=r.pstyle(a+"-arrow-shape").value,u,l;if(s!=="none"){a==="source"?(u=i.srcX,l=i.srcY):a==="target"?(u=i.tgtX,l=i.tgtY):(u=i.midX,l=i.midY);var v=n.arrowBounds=n.arrowBounds||{},f=v[a]=v[a]||{};f.x1=u-o,f.y1=l-o,f.x2=u+o,f.y2=l+o,f.w=f.x2-f.x1,f.h=f.y2-f.y1,pn(f,1),rr(e,f.x1,f.y1,f.x2,f.y2)}}},Li=function(e,r,a){if(!r.cy().headless()){var n;a?n=a+"-":n="";var i=r._private,o=i.rstyle,s=r.pstyle(n+"label").strValue;if(s){var u=r.pstyle("text-halign"),l=r.pstyle("text-valign"),v=Va(o,"labelWidth",a),f=Va(o,"labelHeight",a),h=Va(o,"labelX",a),c=Va(o,"labelY",a),d=r.pstyle(n+"text-margin-x").pfValue,g=r.pstyle(n+"text-margin-y").pfValue,y=r.isEdge(),p=r.pstyle(n+"text-rotation"),m=r.pstyle("text-outline-width").pfValue,b=r.pstyle("text-border-width").pfValue,E=b/2,M=r.pstyle("text-background-padding").pfValue,A=2,w=f,I=v,C=I/2,B=w/2,F,R,X,G;if(y)F=h-C,R=h+C,X=c-B,G=c+B;else{switch(u.value){case"left":F=h-I,R=h;break;case"center":F=h-C,R=h+C;break;case"right":F=h,R=h+I;break}switch(l.value){case"top":X=c-w,G=c;break;case"center":X=c-B,G=c+B;break;case"bottom":X=c,G=c+w;break}}F+=d-Math.max(m,E)-M-A,R+=d+Math.max(m,E)+M+A,X+=g-Math.max(m,E)-M-A,G+=g+Math.max(m,E)+M+A;var re=a||"main",q=i.labelBounds,Z=q[re]=q[re]||{};Z.x1=F,Z.y1=X,Z.x2=R,Z.y2=G,Z.w=R-F,Z.h=G-X;var ie=y&&p.strValue==="autorotate",se=p.pfValue!=null&&p.pfValue!==0;if(ie||se){var de=ie?Va(i.rstyle,"labelAngle",a):p.pfValue,oe=Math.cos(de),ce=Math.sin(de),we=(F+R)/2,Te=(X+G)/2;if(!y){switch(u.value){case"left":we=R;break;case"right":we=F;break}switch(l.value){case"top":Te=G;break;case"bottom":Te=X;break}}var Ee=function(We,Re){return We=We-we,Re=Re-Te,{x:We*oe-Re*ce+we,y:We*ce+Re*oe+Te}},ye=Ee(F,X),ae=Ee(F,G),xe=Ee(R,X),Ce=Ee(R,G);F=Math.min(ye.x,ae.x,xe.x,Ce.x),R=Math.max(ye.x,ae.x,xe.x,Ce.x),X=Math.min(ye.y,ae.y,xe.y,Ce.y),G=Math.max(ye.y,ae.y,xe.y,Ce.y)}var Oe=re+"Rot",Ie=q[Oe]=q[Oe]||{};Ie.x1=F,Ie.y1=X,Ie.x2=R,Ie.y2=G,Ie.w=R-F,Ie.h=G-X,rr(e,F,X,R,G),rr(i.labelBounds.all,F,X,R,G)}return e}},id=function(e,r){var a=e._private.cy,n=a.styleEnabled(),i=a.headless(),o=Ut(),s=e._private,u=e.isNode(),l=e.isEdge(),v,f,h,c,d,g,y=s.rstyle,p=u&&n?e.pstyle("bounds-expansion").pfValue:[0],m=function(Ve){return Ve.pstyle("display").value!=="none"},b=!n||m(e)&&(!l||m(e.source())&&m(e.target()));if(b){var E=0,M=0;n&&r.includeOverlays&&(E=e.pstyle("overlay-opacity").value,E!==0&&(M=e.pstyle("overlay-padding").value));var A=0,w=0;n&&r.includeUnderlays&&(A=e.pstyle("underlay-opacity").value,A!==0&&(w=e.pstyle("underlay-padding").value));var I=Math.max(M,w),C=0,B=0;if(n&&(C=e.pstyle("width").pfValue,B=C/2),u&&r.includeNodes){var F=e.position();d=F.x,g=F.y;var R=e.outerWidth(),X=R/2,G=e.outerHeight(),re=G/2;v=d-X,f=d+X,h=g-re,c=g+re,rr(o,v,h,f,c)}else if(l&&r.includeEdges)if(n&&!i){var q=e.pstyle("curve-style").strValue;if(v=Math.min(y.srcX,y.midX,y.tgtX),f=Math.max(y.srcX,y.midX,y.tgtX),h=Math.min(y.srcY,y.midY,y.tgtY),c=Math.max(y.srcY,y.midY,y.tgtY),v-=B,f+=B,h-=B,c+=B,rr(o,v,h,f,c),q==="haystack"){var Z=y.haystackPts;if(Z&&Z.length===2){if(v=Z[0].x,h=Z[0].y,f=Z[1].x,c=Z[1].y,v>f){var ie=v;v=f,f=ie}if(h>c){var se=h;h=c,c=se}rr(o,v-B,h-B,f+B,c+B)}}else if(q==="bezier"||q==="unbundled-bezier"||q==="segments"||q==="taxi"){var de;switch(q){case"bezier":case"unbundled-bezier":de=y.bezierPts;break;case"segments":case"taxi":de=y.linePts;break}if(de!=null)for(var oe=0;oe<de.length;oe++){var ce=de[oe];v=ce.x-B,f=ce.x+B,h=ce.y-B,c=ce.y+B,rr(o,v,h,f,c)}}}else{var we=e.source(),Te=we.position(),Ee=e.target(),ye=Ee.position();if(v=Te.x,f=ye.x,h=Te.y,c=ye.y,v>f){var ae=v;v=f,f=ae}if(h>c){var xe=h;h=c,c=xe}v-=B,f+=B,h-=B,c+=B,rr(o,v,h,f,c)}if(n&&r.includeEdges&&l&&(An(o,e,"mid-source"),An(o,e,"mid-target"),An(o,e,"source"),An(o,e,"target")),n){var Ce=e.pstyle("ghost").value==="yes";if(Ce){var Oe=e.pstyle("ghost-offset-x").pfValue,Ie=e.pstyle("ghost-offset-y").pfValue;rr(o,o.x1+Oe,o.y1+Ie,o.x2+Oe,o.y2+Ie)}}var He=s.bodyBounds=s.bodyBounds||{};Eo(He,o),li(He,p),pn(He,1),n&&(v=o.x1,f=o.x2,h=o.y1,c=o.y2,rr(o,v-I,h-I,f+I,c+I));var We=s.overlayBounds=s.overlayBounds||{};Eo(We,o),li(We,p),pn(We,1);var Re=s.labelBounds=s.labelBounds||{};Re.all!=null?Cv(Re.all):Re.all=Ut(),n&&r.includeLabels&&(r.includeMainLabels&&Li(o,e,null),l&&(r.includeSourceLabels&&Li(o,e,"source"),r.includeTargetLabels&&Li(o,e,"target")))}return o.x1=Zt(o.x1),o.y1=Zt(o.y1),o.x2=Zt(o.x2),o.y2=Zt(o.y2),o.w=Zt(o.x2-o.x1),o.h=Zt(o.y2-o.y1),o.w>0&&o.h>0&&b&&(li(o,p),pn(o,1)),o},ps=function(e){var r=0,a=function(o){return(o?1:0)<<r++},n=0;return n+=a(e.incudeNodes),n+=a(e.includeEdges),n+=a(e.includeLabels),n+=a(e.includeMainLabels),n+=a(e.includeSourceLabels),n+=a(e.includeTargetLabels),n+=a(e.includeOverlays),n},ys=function(e){if(e.isEdge()){var r=e.source().position(),a=e.target().position(),n=function(o){return Math.round(o)};return Hu([n(r.x),n(r.y),n(a.x),n(a.y)])}else return 0},ms=function(e,r){var a=e._private,n,i=e.isEdge(),o=r==null?bs:ps(r),s=o===bs,u=ys(e),l=a.bbCachePosKey===u,v=r.useCache&&l,f=function(g){return g._private.bbCache==null||g._private.styleDirty},h=!v||f(e)||i&&f(e.source())||f(e.target());if(h?(l||e.recalculateRenderedStyle(v),n=id(e,_a),a.bbCache=n,a.bbCachePosKey=u):n=a.bbCache,!s){var c=e.isNode();n=Ut(),(r.includeNodes&&c||r.includeEdges&&!c)&&(r.includeOverlays?zr(n,a.overlayBounds):zr(n,a.bodyBounds)),r.includeLabels&&(r.includeMainLabels&&(!i||r.includeSourceLabels&&r.includeTargetLabels)?zr(n,a.labelBounds.all):(r.includeMainLabels&&zr(n,a.labelBounds.mainRot),r.includeSourceLabels&&zr(n,a.labelBounds.sourceRot),r.includeTargetLabels&&zr(n,a.labelBounds.targetRot))),n.w=n.x2-n.x1,n.h=n.y2-n.y1}return n},_a={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,useCache:!0},bs=ps(_a),Es=Lt(_a);Ar.boundingBox=function(t){var e;if(this.length===1&&this[0]._private.bbCache!=null&&!this[0]._private.styleDirty&&(t===void 0||t.useCache===void 0||t.useCache===!0))t===void 0?t=_a:t=Es(t),e=ms(this[0],t);else{e=Ut(),t=t||_a;var r=Es(t),a=this,n=a.cy(),i=n.styleEnabled();if(i)for(var o=0;o<a.length;o++){var s=a[o],u=s._private,l=ys(s),v=u.bbCachePosKey===l,f=r.useCache&&v&&!u.styleDirty;s.recalculateRenderedStyle(f)}this.updateCompoundBounds(!t.useCache);for(var h=0;h<a.length;h++){var c=a[h];zr(e,ms(c,r))}}return e.x1=Zt(e.x1),e.y1=Zt(e.y1),e.x2=Zt(e.x2),e.y2=Zt(e.y2),e.w=Zt(e.x2-e.x1),e.h=Zt(e.y2-e.y1),e},Ar.dirtyBoundingBoxCache=function(){for(var t=0;t<this.length;t++){var e=this[t]._private;e.bbCache=null,e.bbCachePosKey=null,e.bodyBounds=null,e.overlayBounds=null,e.labelBounds.all=null,e.labelBounds.source=null,e.labelBounds.target=null,e.labelBounds.main=null,e.labelBounds.sourceRot=null,e.labelBounds.targetRot=null,e.labelBounds.mainRot=null,e.arrowBounds.source=null,e.arrowBounds.target=null,e.arrowBounds["mid-source"]=null,e.arrowBounds["mid-target"]=null}return this.emitAndNotify("bounds"),this},Ar.boundingBoxAt=function(t){var e=this.nodes(),r=this.cy(),a=r.hasCompoundNodes(),n=r.collection();if(a&&(n=e.filter(function(l){return l.isParent()}),e=e.not(n)),L(t)){var i=t;t=function(){return i}}var o=function(v,f){return v._private.bbAtOldPos=t(v,f)},s=function(v){return v._private.bbAtOldPos};r.startBatch(),e.forEach(o).silentPositions(t),a&&(n.dirtyCompoundBoundsCache(),n.dirtyBoundingBoxCache(),n.updateCompoundBounds(!0));var u=Tv(this.boundingBox({useCache:!1}));return e.silentPositions(s),a&&(n.dirtyCompoundBoundsCache(),n.dirtyBoundingBoxCache(),n.updateCompoundBounds(!0)),r.endBatch(),u},ha.boundingbox=ha.bb=ha.boundingBox,ha.renderedBoundingbox=ha.renderedBoundingBox;var od=Ar,Ua,Ya;Ua=Ya={};var ws=function(e){e.uppercaseName=kt(e.name),e.autoName="auto"+e.uppercaseName,e.labelName="label"+e.uppercaseName,e.outerName="outer"+e.uppercaseName,e.uppercaseOuterName=kt(e.outerName),Ua[e.name]=function(){var a=this[0],n=a._private,i=n.cy,o=i._private.styleEnabled;if(a)if(o){if(a.isParent())return a.updateCompoundBounds(),n[e.autoName]||0;var s=a.pstyle(e.name);switch(s.strValue){case"label":return a.recalculateRenderedStyle(),n.rstyle[e.labelName]||0;default:return s.pfValue}}else return 1},Ua["outer"+e.uppercaseName]=function(){var a=this[0],n=a._private,i=n.cy,o=i._private.styleEnabled;if(a)if(o){var s=a[e.name](),u=a.pstyle("border-width").pfValue,l=2*a.padding();return s+u+l}else return 1},Ua["rendered"+e.uppercaseName]=function(){var a=this[0];if(a){var n=a[e.name]();return n*this.cy().zoom()}},Ua["rendered"+e.uppercaseOuterName]=function(){var a=this[0];if(a){var n=a[e.outerName]();return n*this.cy().zoom()}}};ws({name:"width"}),ws({name:"height"}),Ya.padding=function(){var t=this[0],e=t._private;return t.isParent()?(t.updateCompoundBounds(),e.autoPadding!==void 0?e.autoPadding:t.pstyle("padding").pfValue):t.pstyle("padding").pfValue},Ya.paddedHeight=function(){var t=this[0];return t.height()+2*t.padding()},Ya.paddedWidth=function(){var t=this[0];return t.width()+2*t.padding()};var sd=Ya,ld=function(e,r){if(e.isEdge())return r(e)},ud=function(e,r){if(e.isEdge()){var a=e.cy();return dn(r(e),a.zoom(),a.pan())}},vd=function(e,r){if(e.isEdge()){var a=e.cy(),n=a.pan(),i=a.zoom();return r(e).map(function(o){return dn(o,i,n)})}},fd=function(e){return e.renderer().getControlPoints(e)},hd=function(e){return e.renderer().getSegmentPoints(e)},cd=function(e){return e.renderer().getSourceEndpoint(e)},dd=function(e){return e.renderer().getTargetEndpoint(e)},gd=function(e){return e.renderer().getEdgeMidpoint(e)},xs={controlPoints:{get:fd,mult:!0},segmentPoints:{get:hd,mult:!0},sourceEndpoint:{get:cd},targetEndpoint:{get:dd},midpoint:{get:gd}},pd=function(e){return"rendered"+e[0].toUpperCase()+e.substr(1)},yd=Object.keys(xs).reduce(function(t,e){var r=xs[e],a=pd(e);return t[e]=function(){return ld(this,r.get)},r.mult?t[a]=function(){return vd(this,r.get)}:t[a]=function(){return ud(this,r.get)},t},{}),md=Ue({},nd,od,sd,yd);/*!
Event object based on jQuery events, MIT license
https://jquery.org/license/
https://tldrlegal.com/license/mit-license
https://github.com/jquery/jquery/blob/master/src/event.js
*/var Ts=function(e,r){this.recycle(e,r)};function Ha(){return!1}function On(){return!0}Ts.prototype={instanceString:function(){return"event"},recycle:function(e,r){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=Ha,e!=null&&e.preventDefault?(this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?On:Ha):e!=null&&e.type?r=e:this.type=e,r!=null&&(this.originalEvent=r.originalEvent,this.type=r.type!=null?r.type:this.type,this.cy=r.cy,this.target=r.target,this.position=r.position,this.renderedPosition=r.renderedPosition,this.namespace=r.namespace,this.layout=r.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var a=this.position,n=this.cy.zoom(),i=this.cy.pan();this.renderedPosition={x:a.x*n+i.x,y:a.y*n+i.y}}this.timeStamp=e&&e.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=On;var e=this.originalEvent;e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){this.isPropagationStopped=On;var e=this.originalEvent;e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=On,this.stopPropagation()},isDefaultPrevented:Ha,isPropagationStopped:Ha,isImmediatePropagationStopped:Ha};var Cs=/^([^.]+)(\.(?:[^.]+))?$/,bd=".*",Ds={qualifierCompare:function(e,r){return e===r},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(e){return e},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},Ss=Object.keys(Ds),Ed={};function Nn(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ed,e=arguments.length>1?arguments[1]:void 0,r=0;r<Ss.length;r++){var a=Ss[r];this[a]=t[a]||Ds[a]}this.context=e||this.context,this.listeners=[],this.emitting=0}var Or=Nn.prototype,Ls=function(e,r,a,n,i,o,s){Y(n)&&(i=n,n=null),s&&(o==null?o=s:o=Ue({},o,s));for(var u=te(a)?a:a.split(/\s+/),l=0;l<u.length;l++){var v=u[l];if(!Pe(v)){var f=v.match(Cs);if(f){var h=f[1],c=f[2]?f[2]:null,d=r(e,v,h,c,n,i,o);if(d===!1)break}}}},As=function(e,r){return e.addEventFields(e.context,r),new Ts(r.type,r)},wd=function(e,r,a){if(ht(a)){r(e,a);return}else if(L(a)){r(e,As(e,a));return}for(var n=te(a)?a:a.split(/\s+/),i=0;i<n.length;i++){var o=n[i];if(!Pe(o)){var s=o.match(Cs);if(s){var u=s[1],l=s[2]?s[2]:null,v=As(e,{type:u,namespace:l,target:e.context});r(e,v)}}}};Or.on=Or.addListener=function(t,e,r,a,n){return Ls(this,function(i,o,s,u,l,v,f){Y(v)&&i.listeners.push({event:o,callback:v,type:s,namespace:u,qualifier:l,conf:f})},t,e,r,a,n),this},Or.one=function(t,e,r,a){return this.on(t,e,r,a,{one:!0})},Or.removeListener=Or.off=function(t,e,r,a){var n=this;this.emitting!==0&&(this.listeners=Zu(this.listeners));for(var i=this.listeners,o=function(l){var v=i[l];Ls(n,function(f,h,c,d,g,y){if((v.type===c||t==="*")&&(!d&&v.namespace!==".*"||v.namespace===d)&&(!g||f.qualifierCompare(v.qualifier,g))&&(!y||v.callback===y))return i.splice(l,1),!1},t,e,r,a)},s=i.length-1;s>=0;s--)o(s);return this},Or.removeAllListeners=function(){return this.removeListener("*")},Or.emit=Or.trigger=function(t,e,r){var a=this.listeners,n=a.length;return this.emitting++,te(e)||(e=[e]),wd(this,function(i,o){r!=null&&(a=[{event:o.event,type:o.type,namespace:o.namespace,callback:r}],n=a.length);for(var s=function(v){var f=a[v];if(f.type===o.type&&(!f.namespace||f.namespace===o.namespace||f.namespace===bd)&&i.eventMatches(i.context,f,o)){var h=[o];e!=null&&Ju(h,e),i.beforeEmit(i.context,f,o),f.conf&&f.conf.one&&(i.listeners=i.listeners.filter(function(g){return g!==f}));var c=i.callbackContext(i.context,f,o),d=f.callback.apply(c,h);i.afterEmit(i.context,f,o),d===!1&&(o.stopPropagation(),o.preventDefault())}},u=0;u<n;u++)s(u);i.bubble(i.context)&&!o.isPropagationStopped()&&i.parent(i.context).emit(o,e)},t),this.emitting--,this};var xd={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,a){var n=r.qualifier;return n!=null?e!==a.target&&Ae(a.target)&&n.matches(a.target):!0},addEventFields:function(e,r){r.cy=e.cy(),r.target=e},callbackContext:function(e,r,a){return r.qualifier!=null?a.target:e},beforeEmit:function(e,r){r.conf&&r.conf.once&&r.conf.onceCollection.removeListener(r.event,r.qualifier,r.callback)},bubble:function(){return!0},parent:function(e){return e.isChild()?e.parent():e.cy()}},Mn=function(e){return j(e)?new Dr(e):e},Os={createEmitter:function(){for(var e=0;e<this.length;e++){var r=this[e],a=r._private;a.emitter||(a.emitter=new Nn(xd,r))}return this},emitter:function(){return this._private.emitter},on:function(e,r,a){for(var n=Mn(r),i=0;i<this.length;i++){var o=this[i];o.emitter().on(e,n,a)}return this},removeListener:function(e,r,a){for(var n=Mn(r),i=0;i<this.length;i++){var o=this[i];o.emitter().removeListener(e,n,a)}return this},removeAllListeners:function(){for(var e=0;e<this.length;e++){var r=this[e];r.emitter().removeAllListeners()}return this},one:function(e,r,a){for(var n=Mn(r),i=0;i<this.length;i++){var o=this[i];o.emitter().one(e,n,a)}return this},once:function(e,r,a){for(var n=Mn(r),i=0;i<this.length;i++){var o=this[i];o.emitter().on(e,n,a,{once:!0,onceCollection:this})}},emit:function(e,r){for(var a=0;a<this.length;a++){var n=this[a];n.emitter().emit(e,r)}return this},emitAndNotify:function(e,r){if(this.length!==0)return this.cy().notify(e,this),this.emit(e,r),this}};ft.eventAliasesOn(Os);var Ns={nodes:function(e){return this.filter(function(r){return r.isNode()}).filter(e)},edges:function(e){return this.filter(function(r){return r.isEdge()}).filter(e)},byGroup:function(){for(var e=this.spawn(),r=this.spawn(),a=0;a<this.length;a++){var n=this[a];n.isNode()?e.push(n):r.push(n)}return{nodes:e,edges:r}},filter:function(e,r){if(e===void 0)return this;if(j(e)||ge(e))return new Dr(e).filter(this);if(Y(e)){for(var a=this.spawn(),n=this,i=0;i<n.length;i++){var o=n[i],s=r?e.apply(r,[o,i,n]):e(o,i,n);s&&a.push(o)}return a}return this.spawn()},not:function(e){if(e){j(e)&&(e=this.filter(e));for(var r=this.spawn(),a=0;a<this.length;a++){var n=this[a],i=e.has(n);i||r.push(n)}return r}else return this},absoluteComplement:function(){var e=this.cy();return e.mutableElements().not(this)},intersect:function(e){if(j(e)){var r=e;return this.filter(r)}for(var a=this.spawn(),n=this,i=e,o=this.length<e.length,s=o?n:i,u=o?i:n,l=0;l<s.length;l++){var v=s[l];u.has(v)&&a.push(v)}return a},xor:function(e){var r=this._private.cy;j(e)&&(e=r.$(e));var a=this.spawn(),n=this,i=e,o=function(u,l){for(var v=0;v<u.length;v++){var f=u[v],h=f._private.data.id,c=l.hasElementWithId(h);c||a.push(f)}};return o(n,i),o(i,n),a},diff:function(e){var r=this._private.cy;j(e)&&(e=r.$(e));var a=this.spawn(),n=this.spawn(),i=this.spawn(),o=this,s=e,u=function(v,f,h){for(var c=0;c<v.length;c++){var d=v[c],g=d._private.data.id,y=f.hasElementWithId(g);y?i.merge(d):h.push(d)}};return u(o,s,a),u(s,o,n),{left:a,right:n,both:i}},add:function(e){var r=this._private.cy;if(!e)return this;if(j(e)){var a=e;e=r.mutableElements().filter(a)}for(var n=this.spawnSelf(),i=0;i<e.length;i++){var o=e[i],s=!this.has(o);s&&n.push(o)}return n},merge:function(e){var r=this._private,a=r.cy;if(!e)return this;if(e&&j(e)){var n=e;e=a.mutableElements().filter(n)}for(var i=r.map,o=0;o<e.length;o++){var s=e[o],u=s._private.data.id,l=!i.has(u);if(l){var v=this.length++;this[v]=s,i.set(u,{ele:s,index:v})}}return this},unmergeAt:function(e){var r=this[e],a=r.id(),n=this._private,i=n.map;this[e]=void 0,i.delete(a);var o=e===this.length-1;if(this.length>1&&!o){var s=this.length-1,u=this[s],l=u._private.data.id;this[s]=void 0,this[e]=u,i.set(l,{ele:u,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var r=this._private,a=e._private.data.id,n=r.map,i=n.get(a);if(!i)return this;var o=i.index;return this.unmergeAt(o),this},unmerge:function(e){var r=this._private.cy;if(!e)return this;if(e&&j(e)){var a=e;e=r.mutableElements().filter(a)}for(var n=0;n<e.length;n++)this.unmergeOne(e[n]);return this},unmergeBy:function(e){for(var r=this.length-1;r>=0;r--){var a=this[r];e(a)&&this.unmergeAt(r)}return this},map:function(e,r){for(var a=[],n=this,i=0;i<n.length;i++){var o=n[i],s=r?e.apply(r,[o,i,n]):e(o,i,n);a.push(s)}return a},reduce:function(e,r){for(var a=r,n=this,i=0;i<n.length;i++)a=e(a,n[i],i,n);return a},max:function(e,r){for(var a=-1/0,n,i=this,o=0;o<i.length;o++){var s=i[o],u=r?e.apply(r,[s,o,i]):e(s,o,i);u>a&&(a=u,n=s)}return{value:a,ele:n}},min:function(e,r){for(var a=1/0,n,i=this,o=0;o<i.length;o++){var s=i[o],u=r?e.apply(r,[s,o,i]):e(s,o,i);u<a&&(a=u,n=s)}return{value:a,ele:n}}},ot=Ns;ot.u=ot["|"]=ot["+"]=ot.union=ot.or=ot.add,ot["\\"]=ot["!"]=ot["-"]=ot.difference=ot.relativeComplement=ot.subtract=ot.not,ot.n=ot["&"]=ot["."]=ot.and=ot.intersection=ot.intersect,ot["^"]=ot["(+)"]=ot["(-)"]=ot.symmetricDifference=ot.symdiff=ot.xor,ot.fnFilter=ot.filterFn=ot.stdFilter=ot.filter,ot.complement=ot.abscomp=ot.absoluteComplement;var Td={isNode:function(){return this.group()==="nodes"},isEdge:function(){return this.group()==="edges"},isLoop:function(){return this.isEdge()&&this.source()[0]===this.target()[0]},isSimple:function(){return this.isEdge()&&this.source()[0]!==this.target()[0]},group:function(){var e=this[0];if(e)return e._private.group}},Ms=function(e,r){var a=e.cy(),n=a.hasCompoundNodes();function i(v){var f=v.pstyle("z-compound-depth");return f.value==="auto"?n?v.zDepth():0:f.value==="bottom"?-1:f.value==="top"?ai:0}var o=i(e)-i(r);if(o!==0)return o;function s(v){var f=v.pstyle("z-index-compare");return f.value==="auto"&&v.isNode()?1:0}var u=s(e)-s(r);if(u!==0)return u;var l=e.pstyle("z-index").value-r.pstyle("z-index").value;return l!==0?l:e.poolIndex()-r.poolIndex()},In={forEach:function(e,r){if(Y(e))for(var a=this.length,n=0;n<a;n++){var i=this[n],o=r?e.apply(r,[i,n,this]):e(i,n,this);if(o===!1)break}return this},toArray:function(){for(var e=[],r=0;r<this.length;r++)e.push(this[r]);return e},slice:function(e,r){var a=[],n=this.length;r==null&&(r=n),e==null&&(e=0),e<0&&(e=n+e),r<0&&(r=n+r);for(var i=e;i>=0&&i<r&&i<n;i++)a.push(this[i]);return this.spawn(a)},size:function(){return this.length},eq:function(e){return this[e]||this.spawn()},first:function(){return this[0]||this.spawn()},last:function(){return this[this.length-1]||this.spawn()},empty:function(){return this.length===0},nonempty:function(){return!this.empty()},sort:function(e){if(!Y(e))return this;var r=this.toArray().sort(e);return this.spawn(r)},sortByZIndex:function(){return this.sort(Ms)},zDepth:function(){var e=this[0];if(e){var r=e._private,a=r.group;if(a==="nodes"){var n=r.data.parent?e.parents().size():0;return e.isParent()?n:ai-1}else{var i=r.source,o=r.target,s=i.zDepth(),u=o.zDepth();return Math.max(s,u,0)}}}};In.each=In.forEach;var Cd=function(){var e="undefined",r=(typeof Symbol>"u"?"undefined":ee(Symbol))!=e&&ee(Symbol.iterator)!=e;r&&(In[Symbol.iterator]=function(){var a=this,n={value:void 0,done:!1},i=0,o=this.length;return T({next:function(){return i<o?n.value=a[i++]:(n.value=void 0,n.done=!0),n}},Symbol.iterator,function(){return this})})};Cd();var Dd=Lt({nodeDimensionsIncludeLabels:!1}),Rn={layoutDimensions:function(e){e=Dd(e);var r;if(!this.takesUpSpace())r={w:0,h:0};else if(e.nodeDimensionsIncludeLabels){var a=this.boundingBox();r={w:a.w,h:a.h}}else r={w:this.outerWidth(),h:this.outerHeight()};return(r.w===0||r.h===0)&&(r.w=r.h=1),r},layoutPositions:function(e,r,a){var n=this.nodes().filter(function(M){return!M.isParent()}),i=this.cy(),o=r.eles,s=function(A){return A.id()},u=nt(a,s);e.emit({type:"layoutstart",layout:e}),e.animations=[];var l=function(A,w,I){var C={x:w.x1+w.w/2,y:w.y1+w.h/2},B={x:(I.x-C.x)*A,y:(I.y-C.y)*A};return{x:C.x+B.x,y:C.y+B.y}},v=r.spacingFactor&&r.spacingFactor!==1,f=function(){if(!v)return null;for(var A=Ut(),w=0;w<n.length;w++){var I=n[w],C=u(I,w);Sv(A,C.x,C.y)}return A},h=f(),c=nt(function(M,A){var w=u(M,A);if(v){var I=Math.abs(r.spacingFactor);w=l(I,h,w)}return r.transform!=null&&(w=r.transform(M,w)),w},s);if(r.animate){for(var d=0;d<n.length;d++){var g=n[d],y=c(g,d),p=r.animateFilter==null||r.animateFilter(g,d);if(p){var m=g.animation({position:y,duration:r.animationDuration,easing:r.animationEasing});e.animations.push(m)}else g.position(y)}if(r.fit){var b=i.animation({fit:{boundingBox:o.boundingBoxAt(c),padding:r.padding},duration:r.animationDuration,easing:r.animationEasing});e.animations.push(b)}else if(r.zoom!==void 0&&r.pan!==void 0){var E=i.animation({zoom:r.zoom,pan:r.pan,duration:r.animationDuration,easing:r.animationEasing});e.animations.push(E)}e.animations.forEach(function(M){return M.play()}),e.one("layoutready",r.ready),e.emit({type:"layoutready",layout:e}),ia.all(e.animations.map(function(M){return M.promise()})).then(function(){e.one("layoutstop",r.stop),e.emit({type:"layoutstop",layout:e})})}else n.positions(c),r.fit&&i.fit(r.eles,r.padding),r.zoom!=null&&i.zoom(r.zoom),r.pan&&i.pan(r.pan),e.one("layoutready",r.ready),e.emit({type:"layoutready",layout:e}),e.one("layoutstop",r.stop),e.emit({type:"layoutstop",layout:e});return this},layout:function(e){var r=this.cy();return r.makeLayout(Ue({},e,{eles:this}))}};Rn.createLayout=Rn.makeLayout=Rn.layout;function Is(t,e,r){var a=r._private,n=a.styleCache=a.styleCache||[],i;return(i=n[t])!=null||(i=n[t]=e(r)),i}function kn(t,e){return t=kr(t),function(a){return Is(t,e,a)}}function Pn(t,e){t=kr(t);var r=function(n){return e.call(n)};return function(){var n=this[0];if(n)return Is(t,r,n)}}var At={recalculateRenderedStyle:function(e){var r=this.cy(),a=r.renderer(),n=r.styleEnabled();return a&&n&&a.recalculateRenderedStyle(this,e),this},dirtyStyleCache:function(){var e=this.cy(),r=function(i){return i._private.styleCache=null};if(e.hasCompoundNodes()){var a;a=this.spawnSelf().merge(this.descendants()).merge(this.parents()),a.merge(a.connectedEdges()),a.forEach(r)}else this.forEach(function(n){r(n),n.connectedEdges().forEach(r)});return this},updateStyle:function(e){var r=this._private.cy;if(!r.styleEnabled())return this;if(r.batching()){var a=r._private.batchStyleEles;return a.merge(this),this}var n=r.hasCompoundNodes(),i=this;e=!!(e||e===void 0),n&&(i=this.spawnSelf().merge(this.descendants()).merge(this.parents()));var o=i;return e?o.emitAndNotify("style"):o.emit("style"),i.forEach(function(s){return s._private.styleDirty=!0}),this},cleanStyle:function(){var e=this.cy();if(e.styleEnabled())for(var r=0;r<this.length;r++){var a=this[r];a._private.styleDirty&&(a._private.styleDirty=!1,e.style().apply(a))}},parsedStyle:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a=this[0],n=a.cy();if(n.styleEnabled()&&a){this.cleanStyle();var i=a._private.style[e];return i??(r?n.style().getDefaultProperty(e):null)}},numericStyle:function(e){var r=this[0];if(r.cy().styleEnabled()&&r){var a=r.pstyle(e);return a.pfValue!==void 0?a.pfValue:a.value}},numericStyleUnits:function(e){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(e).units},renderedStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var a=this[0];if(a)return r.style().getRenderedStyle(a,e)},style:function(e,r){var a=this.cy();if(!a.styleEnabled())return this;var n=!1,i=a.style();if(L(e)){var o=e;i.applyBypass(this,o,n),this.emitAndNotify("style")}else if(j(e))if(r===void 0){var s=this[0];return s?i.getStylePropertyValue(s,e):void 0}else i.applyBypass(this,e,r,n),this.emitAndNotify("style");else if(e===void 0){var u=this[0];return u?i.getRawStyle(u):void 0}return this},removeStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var a=!1,n=r.style(),i=this;if(e===void 0)for(var o=0;o<i.length;o++){var s=i[o];n.removeAllBypasses(s,a)}else{e=e.split(/\s+/);for(var u=0;u<i.length;u++){var l=i[u];n.removeBypasses(l,e,a)}}return this.emitAndNotify("style"),this},show:function(){return this.css("display","element"),this},hide:function(){return this.css("display","none"),this},effectiveOpacity:function(){var e=this.cy();if(!e.styleEnabled())return 1;var r=e.hasCompoundNodes(),a=this[0];if(a){var n=a._private,i=a.pstyle("opacity").value;if(!r)return i;var o=n.data.parent?a.parents():null;if(o)for(var s=0;s<o.length;s++){var u=o[s],l=u.pstyle("opacity").value;i=l*i}return i}},transparent:function(){var e=this.cy();if(!e.styleEnabled())return!1;var r=this[0],a=r.cy().hasCompoundNodes();if(r)return a?r.effectiveOpacity()===0:r.pstyle("opacity").value===0},backgrounding:function(){var e=this.cy();if(!e.styleEnabled())return!1;var r=this[0];return!!r._private.backgrounding}};function Ai(t,e){var r=t._private,a=r.data.parent?t.parents():null;if(a)for(var n=0;n<a.length;n++){var i=a[n];if(!e(i))return!1}return!0}function Oi(t){var e=t.ok,r=t.edgeOkViaNode||t.ok,a=t.parentOk||t.ok;return function(){var n=this.cy();if(!n.styleEnabled())return!0;var i=this[0],o=n.hasCompoundNodes();if(i){var s=i._private;if(!e(i))return!1;if(i.isNode())return!o||Ai(i,a);var u=s.source,l=s.target;return r(u)&&(!o||Ai(u,r))&&(u===l||r(l)&&(!o||Ai(l,r)))}}}var ca=kn("eleTakesUpSpace",function(t){return t.pstyle("display").value==="element"&&t.width()!==0&&(t.isNode()?t.height()!==0:!0)});At.takesUpSpace=Pn("takesUpSpace",Oi({ok:ca}));var Sd=kn("eleInteractive",function(t){return t.pstyle("events").value==="yes"&&t.pstyle("visibility").value==="visible"&&ca(t)}),Ld=kn("parentInteractive",function(t){return t.pstyle("visibility").value==="visible"&&ca(t)});At.interactive=Pn("interactive",Oi({ok:Sd,parentOk:Ld,edgeOkViaNode:ca})),At.noninteractive=function(){var t=this[0];if(t)return!t.interactive()};var Ad=kn("eleVisible",function(t){return t.pstyle("visibility").value==="visible"&&t.pstyle("opacity").pfValue!==0&&ca(t)}),Od=ca;At.visible=Pn("visible",Oi({ok:Ad,edgeOkViaNode:Od})),At.hidden=function(){var t=this[0];if(t)return!t.visible()},At.isBundledBezier=Pn("isBundledBezier",function(){return this.cy().styleEnabled()?!this.removed()&&this.pstyle("curve-style").value==="bezier"&&this.takesUpSpace():!1}),At.bypass=At.css=At.style,At.renderedCss=At.renderedStyle,At.removeBypass=At.removeCss=At.removeStyle,At.pstyle=At.parsedStyle;var Nr={};function Rs(t){return function(){var e=arguments,r=[];if(e.length===2){var a=e[0],n=e[1];this.on(t.event,a,n)}else if(e.length===1&&Y(e[0])){var i=e[0];this.on(t.event,i)}else if(e.length===0||e.length===1&&te(e[0])){for(var o=e.length===1?e[0]:null,s=0;s<this.length;s++){var u=this[s],l=!t.ableField||u._private[t.ableField],v=u._private[t.field]!=t.value;if(t.overrideAble){var f=t.overrideAble(u);if(f!==void 0&&(l=f,!f))return this}l&&(u._private[t.field]=t.value,v&&r.push(u))}var h=this.spawn(r);h.updateStyle(),h.emit(t.event),o&&h.emit(o)}return this}}function da(t){Nr[t.field]=function(){var e=this[0];if(e){if(t.overrideField){var r=t.overrideField(e);if(r!==void 0)return r}return e._private[t.field]}},Nr[t.on]=Rs({event:t.on,field:t.field,ableField:t.ableField,overrideAble:t.overrideAble,value:!0}),Nr[t.off]=Rs({event:t.off,field:t.field,ableField:t.ableField,overrideAble:t.overrideAble,value:!1})}da({field:"locked",overrideField:function(e){return e.cy().autolock()?!0:void 0},on:"lock",off:"unlock"}),da({field:"grabbable",overrideField:function(e){return e.cy().autoungrabify()||e.pannable()?!1:void 0},on:"grabify",off:"ungrabify"}),da({field:"selected",ableField:"selectable",overrideAble:function(e){return e.cy().autounselectify()?!1:void 0},on:"select",off:"unselect"}),da({field:"selectable",overrideField:function(e){return e.cy().autounselectify()?!1:void 0},on:"selectify",off:"unselectify"}),Nr.deselect=Nr.unselect,Nr.grabbed=function(){var t=this[0];if(t)return t._private.grabbed},da({field:"active",on:"activate",off:"unactivate"}),da({field:"pannable",on:"panify",off:"unpanify"}),Nr.inactive=function(){var t=this[0];if(t)return!t._private.active};var Pt={},ks=function(e){return function(a){for(var n=this,i=[],o=0;o<n.length;o++){var s=n[o];if(s.isNode()){for(var u=!1,l=s.connectedEdges(),v=0;v<l.length;v++){var f=l[v],h=f.source(),c=f.target();if(e.noIncomingEdges&&c===s&&h!==s||e.noOutgoingEdges&&h===s&&c!==s){u=!0;break}}u||i.push(s)}}return this.spawn(i,!0).filter(a)}},Ps=function(e){return function(r){for(var a=this,n=[],i=0;i<a.length;i++){var o=a[i];if(o.isNode())for(var s=o.connectedEdges(),u=0;u<s.length;u++){var l=s[u],v=l.source(),f=l.target();e.outgoing&&v===o?(n.push(l),n.push(f)):e.incoming&&f===o&&(n.push(l),n.push(v))}}return this.spawn(n,!0).filter(r)}},Bs=function(e){return function(r){for(var a=this,n=[],i={};;){var o=e.outgoing?a.outgoers():a.incomers();if(o.length===0)break;for(var s=!1,u=0;u<o.length;u++){var l=o[u],v=l.id();i[v]||(i[v]=!0,n.push(l),s=!0)}if(!s)break;a=o}return this.spawn(n,!0).filter(r)}};Pt.clearTraversalCache=function(){for(var t=0;t<this.length;t++)this[t]._private.traversalCache=null},Ue(Pt,{roots:ks({noIncomingEdges:!0}),leaves:ks({noOutgoingEdges:!0}),outgoers:Kt(Ps({outgoing:!0}),"outgoers"),successors:Bs({outgoing:!0}),incomers:Kt(Ps({incoming:!0}),"incomers"),predecessors:Bs({incoming:!0})}),Ue(Pt,{neighborhood:Kt(function(t){for(var e=[],r=this.nodes(),a=0;a<r.length;a++)for(var n=r[a],i=n.connectedEdges(),o=0;o<i.length;o++){var s=i[o],u=s.source(),l=s.target(),v=n===u?l:u;v.length>0&&e.push(v[0]),e.push(s[0])}return this.spawn(e,!0).filter(t)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),Pt.neighbourhood=Pt.neighborhood,Pt.closedNeighbourhood=Pt.closedNeighborhood,Pt.openNeighbourhood=Pt.openNeighborhood,Ue(Pt,{source:Kt(function(e){var r=this[0],a;return r&&(a=r._private.source||r.cy().collection()),a&&e?a.filter(e):a},"source"),target:Kt(function(e){var r=this[0],a;return r&&(a=r._private.target||r.cy().collection()),a&&e?a.filter(e):a},"target"),sources:Fs({attr:"source"}),targets:Fs({attr:"target"})});function Fs(t){return function(r){for(var a=[],n=0;n<this.length;n++){var i=this[n],o=i._private[t.attr];o&&a.push(o)}return this.spawn(a,!0).filter(r)}}Ue(Pt,{edgesWith:Kt(Gs(),"edgesWith"),edgesTo:Kt(Gs({thisIsSrc:!0}),"edgesTo")});function Gs(t){return function(r){var a=[],n=this._private.cy,i=t||{};j(r)&&(r=n.$(r));for(var o=0;o<r.length;o++)for(var s=r[o]._private.edges,u=0;u<s.length;u++){var l=s[u],v=l._private.data,f=this.hasElementWithId(v.source)&&r.hasElementWithId(v.target),h=r.hasElementWithId(v.source)&&this.hasElementWithId(v.target),c=f||h;c&&((i.thisIsSrc||i.thisIsTgt)&&(i.thisIsSrc&&!f||i.thisIsTgt&&!h)||a.push(l))}return this.spawn(a,!0)}}Ue(Pt,{connectedEdges:Kt(function(t){for(var e=[],r=this,a=0;a<r.length;a++){var n=r[a];if(n.isNode())for(var i=n._private.edges,o=0;o<i.length;o++){var s=i[o];e.push(s)}}return this.spawn(e,!0).filter(t)},"connectedEdges"),connectedNodes:Kt(function(t){for(var e=[],r=this,a=0;a<r.length;a++){var n=r[a];n.isEdge()&&(e.push(n.source()[0]),e.push(n.target()[0]))}return this.spawn(e,!0).filter(t)},"connectedNodes"),parallelEdges:Kt(zs(),"parallelEdges"),codirectedEdges:Kt(zs({codirected:!0}),"codirectedEdges")});function zs(t){var e={codirected:!1};return t=Ue({},e,t),function(a){for(var n=[],i=this.edges(),o=t,s=0;s<i.length;s++)for(var u=i[s],l=u._private,v=l.source,f=v._private.data.id,h=l.data.target,c=v._private.edges,d=0;d<c.length;d++){var g=c[d],y=g._private.data,p=y.target,m=y.source,b=p===h&&m===f,E=f===p&&h===m;(o.codirected&&b||!o.codirected&&(b||E))&&n.push(g)}return this.spawn(n,!0).filter(a)}}Ue(Pt,{components:function(e){var r=this,a=r.cy(),n=a.collection(),i=e==null?r.nodes():e.nodes(),o=[];e!=null&&i.empty()&&(i=e.sources());var s=function(v,f){n.merge(v),i.unmerge(v),f.merge(v)};if(i.empty())return r.spawn();var u=function(){var v=a.collection();o.push(v);var f=i[0];s(f,v),r.bfs({directed:!1,roots:f,visit:function(c){return s(c,v)}}),v.forEach(function(h){h.connectedEdges().forEach(function(c){r.has(c)&&v.has(c.source())&&v.has(c.target())&&v.merge(c)})})};do u();while(i.length>0);return o},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),Pt.componentsOf=Pt.components;var Ot=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){xt("A collection must have a reference to the core");return}var i=new lr,o=!1;if(!r)r=[];else if(r.length>0&&L(r[0])&&!Ae(r[0])){o=!0;for(var s=[],u=new Jr,l=0,v=r.length;l<v;l++){var f=r[l];f.data==null&&(f.data={});var h=f.data;if(h.id==null)h.id=go();else if(e.hasElementWithId(h.id)||u.has(h.id))continue;var c=new cn(e,f,!1);s.push(c),u.add(h.id)}r=s}this.length=0;for(var d=0,g=r.length;d<g;d++){var y=r[d][0];if(y!=null){var p=y._private.data.id;(!a||!i.has(p))&&(a&&i.set(p,{index:this.length,ele:y}),this[this.length]=y,this.length++)}}this._private={eles:this,cy:e,get map(){return this.lazyMap==null&&this.rebuildMap(),this.lazyMap},set map(m){this.lazyMap=m},rebuildMap:function(){for(var b=this.lazyMap=new lr,E=this.eles,M=0;M<E.length;M++){var A=E[M];b.set(A.id(),{index:M,ele:A})}}},a&&(this._private.map=i),o&&!n&&this.restore()},mt=cn.prototype=Ot.prototype=Object.create(Array.prototype);mt.instanceString=function(){return"collection"},mt.spawn=function(t,e){return new Ot(this.cy(),t,e)},mt.spawnSelf=function(){return this.spawn(this)},mt.cy=function(){return this._private.cy},mt.renderer=function(){return this._private.cy.renderer()},mt.element=function(){return this[0]},mt.collection=function(){return Ne(this)?this:new Ot(this._private.cy,[this])},mt.unique=function(){return new Ot(this._private.cy,this,!0)},mt.hasElementWithId=function(t){return t=""+t,this._private.map.has(t)},mt.getElementById=function(t){t=""+t;var e=this._private.cy,r=this._private.map.get(t);return r?r.ele:new Ot(e)},mt.$id=mt.getElementById,mt.poolIndex=function(){var t=this._private.cy,e=t._private.elements,r=this[0]._private.data.id;return e._private.map.get(r).index},mt.indexOf=function(t){var e=t[0]._private.data.id;return this._private.map.get(e).index},mt.indexOfId=function(t){return t=""+t,this._private.map.get(t).index},mt.json=function(t){var e=this.element(),r=this.cy();if(e==null&&t)return this;if(e!=null){var a=e._private;if(L(t)){if(r.startBatch(),t.data){e.data(t.data);var n=a.data;if(e.isEdge()){var i=!1,o={},s=t.data.source,u=t.data.target;s!=null&&s!=n.source&&(o.source=""+s,i=!0),u!=null&&u!=n.target&&(o.target=""+u,i=!0),i&&(e=e.move(o))}else{var l="parent"in t.data,v=t.data.parent;l&&(v!=null||n.parent!=null)&&v!=n.parent&&(v===void 0&&(v=null),v!=null&&(v=""+v),e=e.move({parent:v}))}}t.position&&e.position(t.position);var f=function(g,y,p){var m=t[g];m!=null&&m!==a[g]&&(m?e[y]():e[p]())};return f("removed","remove","restore"),f("selected","select","unselect"),f("selectable","selectify","unselectify"),f("locked","lock","unlock"),f("grabbable","grabify","ungrabify"),f("pannable","panify","unpanify"),t.classes!=null&&e.classes(t.classes),r.endBatch(),this}else if(t===void 0){var h={data:sr(a.data),position:sr(a.position),group:a.group,removed:a.removed,selected:a.selected,selectable:a.selectable,locked:a.locked,grabbable:a.grabbable,pannable:a.pannable,classes:null};h.classes="";var c=0;return a.classes.forEach(function(d){return h.classes+=c++===0?d:" "+d}),h}}},mt.jsons=function(){for(var t=[],e=0;e<this.length;e++){var r=this[e],a=r.json();t.push(a)}return t},mt.clone=function(){for(var t=this.cy(),e=[],r=0;r<this.length;r++){var a=this[r],n=a.json(),i=new cn(t,n,!1);e.push(i)}return new Ot(t,e)},mt.copy=mt.clone,mt.restore=function(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=r.cy(),n=a._private,i=[],o=[],s,u=0,l=r.length;u<l;u++){var v=r[u];e&&!v.removed()||(v.isNode()?i.push(v):o.push(v))}s=i.concat(o);var f,h=function(){s.splice(f,1),f--};for(f=0;f<s.length;f++){var c=s[f],d=c._private,g=d.data;if(c.clearTraversalCache(),!(!e&&!d.removed)){if(g.id===void 0)g.id=go();else if(k(g.id))g.id=""+g.id;else if(Pe(g.id)||!j(g.id)){xt("Can not create element with invalid string ID `"+g.id+"`"),h();continue}else if(a.hasElementWithId(g.id)){xt("Can not create second element with ID `"+g.id+"`"),h();continue}}var y=g.id;if(c.isNode()){var p=d.position;p.x==null&&(p.x=0),p.y==null&&(p.y=0)}if(c.isEdge()){for(var m=c,b=["source","target"],E=b.length,M=!1,A=0;A<E;A++){var w=b[A],I=g[w];k(I)&&(I=g[w]=""+g[w]),I==null||I===""?(xt("Can not create edge `"+y+"` with unspecified "+w),M=!0):a.hasElementWithId(I)||(xt("Can not create edge `"+y+"` with nonexistant "+w+" `"+I+"`"),M=!0)}if(M){h();continue}var C=a.getElementById(g.source),B=a.getElementById(g.target);C.same(B)?C._private.edges.push(m):(C._private.edges.push(m),B._private.edges.push(m)),m._private.source=C,m._private.target=B}d.map=new lr,d.map.set(y,{ele:c,index:0}),d.removed=!1,e&&a.addToPool(c)}for(var F=0;F<i.length;F++){var R=i[F],X=R._private.data;k(X.parent)&&(X.parent=""+X.parent);var G=X.parent,re=G!=null;if(re||R._private.parent){var q=R._private.parent?a.collection().merge(R._private.parent):a.getElementById(G);if(q.empty())X.parent=void 0;else if(q[0].removed())vt("Node added with missing parent, reference to parent removed"),X.parent=void 0,R._private.parent=null;else{for(var Z=!1,ie=q;!ie.empty();){if(R.same(ie)){Z=!0,X.parent=void 0;break}ie=ie.parent()}Z||(q[0]._private.children.push(R),R._private.parent=q[0],n.hasCompoundNodes=!0)}}}if(s.length>0){for(var se=s.length===r.length?r:new Ot(a,s),de=0;de<se.length;de++){var oe=se[de];oe.isNode()||(oe.parallelEdges().clearTraversalCache(),oe.source().clearTraversalCache(),oe.target().clearTraversalCache())}var ce;n.hasCompoundNodes?ce=a.collection().merge(se).merge(se.connectedNodes()).merge(se.parent()):ce=se,ce.dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(t),t?se.emitAndNotify("add"):e&&se.emit("add")}return r},mt.removed=function(){var t=this[0];return t&&t._private.removed},mt.inside=function(){var t=this[0];return t&&!t._private.removed},mt.remove=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=[],n={},i=r._private.cy;function o(G){for(var re=G._private.edges,q=0;q<re.length;q++)u(re[q])}function s(G){for(var re=G._private.children,q=0;q<re.length;q++)u(re[q])}function u(G){var re=n[G.id()];e&&G.removed()||re||(n[G.id()]=!0,G.isNode()?(a.push(G),o(G),s(G)):a.unshift(G))}for(var l=0,v=r.length;l<v;l++){var f=r[l];u(f)}function h(G,re){var q=G._private.edges;wr(q,re),G.clearTraversalCache()}function c(G){G.clearTraversalCache()}var d=[];d.ids={};function g(G,re){re=re[0],G=G[0];var q=G._private.children,Z=G.id();wr(q,re),re._private.parent=null,d.ids[Z]||(d.ids[Z]=!0,d.push(G))}r.dirtyCompoundBoundsCache(),e&&i.removeFromPool(a);for(var y=0;y<a.length;y++){var p=a[y];if(p.isEdge()){var m=p.source()[0],b=p.target()[0];h(m,p),h(b,p);for(var E=p.parallelEdges(),M=0;M<E.length;M++){var A=E[M];c(A),A.isBundledBezier()&&A.dirtyBoundingBoxCache()}}else{var w=p.parent();w.length!==0&&g(w,p)}e&&(p._private.removed=!0)}var I=i._private.elements;i._private.hasCompoundNodes=!1;for(var C=0;C<I.length;C++){var B=I[C];if(B.isParent()){i._private.hasCompoundNodes=!0;break}}var F=new Ot(this.cy(),a);F.size()>0&&(t?F.emitAndNotify("remove"):e&&F.emit("remove"));for(var R=0;R<d.length;R++){var X=d[R];(!e||!X.removed())&&X.updateStyle()}return F},mt.move=function(t){var e=this._private.cy,r=this,a=!1,n=!1,i=function(d){return d==null?d:""+d};if(t.source!==void 0||t.target!==void 0){var o=i(t.source),s=i(t.target),u=o!=null&&e.hasElementWithId(o),l=s!=null&&e.hasElementWithId(s);(u||l)&&(e.batch(function(){r.remove(a,n),r.emitAndNotify("moveout");for(var c=0;c<r.length;c++){var d=r[c],g=d._private.data;d.isEdge()&&(u&&(g.source=o),l&&(g.target=s))}r.restore(a,n)}),r.emitAndNotify("move"))}else if(t.parent!==void 0){var v=i(t.parent),f=v===null||e.hasElementWithId(v);if(f){var h=v===null?void 0:v;e.batch(function(){var c=r.remove(a,n);c.emitAndNotify("moveout");for(var d=0;d<r.length;d++){var g=r[d],y=g._private.data;g.isNode()&&(y.parent=h)}c.restore(a,n)}),r.emitAndNotify("move")}}return this},[Uo,Vc,Sn,Lr,va,ad,Ln,md,Os,Ns,Td,In,Rn,At,Nr,Pt].forEach(function(t){Ue(mt,t)});var Nd={add:function(e){var r,a=this;if(ge(e)){var n=e;if(n._private.cy===a)r=n.restore();else{for(var i=[],o=0;o<n.length;o++){var s=n[o];i.push(s.json())}r=new Ot(a,i)}}else if(te(e)){var u=e;r=new Ot(a,u)}else if(L(e)&&(te(e.nodes)||te(e.edges))){for(var l=e,v=[],f=["nodes","edges"],h=0,c=f.length;h<c;h++){var d=f[h],g=l[d];if(te(g))for(var y=0,p=g.length;y<p;y++){var m=Ue({group:d},g[y]);v.push(m)}}r=new Ot(a,v)}else{var b=e;r=new cn(a,b).collection()}return r},remove:function(e){if(!ge(e)){if(j(e)){var r=e;e=this.$(r)}}return e.remove()}};/*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */function Md(t,e,r,a){var n=4,i=.001,o=1e-7,s=10,u=11,l=1/(u-1),v=typeof Float32Array<"u";if(arguments.length!==4)return!1;for(var f=0;f<4;++f)if(typeof arguments[f]!="number"||isNaN(arguments[f])||!isFinite(arguments[f]))return!1;t=Math.min(t,1),r=Math.min(r,1),t=Math.max(t,0),r=Math.max(r,0);var h=v?new Float32Array(u):new Array(u);function c(B,F){return 1-3*F+3*B}function d(B,F){return 3*F-6*B}function g(B){return 3*B}function y(B,F,R){return((c(F,R)*B+d(F,R))*B+g(F))*B}function p(B,F,R){return 3*c(F,R)*B*B+2*d(F,R)*B+g(F)}function m(B,F){for(var R=0;R<n;++R){var X=p(F,t,r);if(X===0)return F;var G=y(F,t,r)-B;F-=G/X}return F}function b(){for(var B=0;B<u;++B)h[B]=y(B*l,t,r)}function E(B,F,R){var X,G,re=0;do G=F+(R-F)/2,X=y(G,t,r)-B,X>0?R=G:F=G;while(Math.abs(X)>o&&++re<s);return G}function M(B){for(var F=0,R=1,X=u-1;R!==X&&h[R]<=B;++R)F+=l;--R;var G=(B-h[R])/(h[R+1]-h[R]),re=F+G*l,q=p(re,t,r);return q>=i?m(B,re):q===0?re:E(B,F,F+l)}var A=!1;function w(){A=!0,(t!==e||r!==a)&&b()}var I=function(F){return A||w(),t===e&&r===a?F:F===0?0:F===1?1:y(M(F),e,a)};I.getControlPoints=function(){return[{x:t,y:e},{x:r,y:a}]};var C="generateBezier("+[t,e,r,a]+")";return I.toString=function(){return C},I}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var Id=function(){function t(a){return-a.tension*a.x-a.friction*a.v}function e(a,n,i){var o={x:a.x+i.dx*n,v:a.v+i.dv*n,tension:a.tension,friction:a.friction};return{dx:o.v,dv:t(o)}}function r(a,n){var i={dx:a.v,dv:t(a)},o=e(a,n*.5,i),s=e(a,n*.5,o),u=e(a,n,s),l=1/6*(i.dx+2*(o.dx+s.dx)+u.dx),v=1/6*(i.dv+2*(o.dv+s.dv)+u.dv);return a.x=a.x+l*n,a.v=a.v+v*n,a}return function a(n,i,o){var s={x:-1,v:0,tension:null,friction:null},u=[0],l=0,v=1/1e4,f=16/1e3,h,c,d;for(n=parseFloat(n)||500,i=parseFloat(i)||20,o=o||null,s.tension=n,s.friction=i,h=o!==null,h?(l=a(n,i),c=l/o*f):c=f;d=r(d||s,c),u.push(1+d.x),l+=16,Math.abs(d.x)>v&&Math.abs(d.v)>v;);return h?function(g){return u[g*(u.length-1)|0]}:l}}(),bt=function(e,r,a,n){var i=Md(e,r,a,n);return function(o,s,u){return o+(s-o)*i(u)}},Bn={linear:function(e,r,a){return e+(r-e)*a},ease:bt(.25,.1,.25,1),"ease-in":bt(.42,0,1,1),"ease-out":bt(0,0,.58,1),"ease-in-out":bt(.42,0,.58,1),"ease-in-sine":bt(.47,0,.745,.715),"ease-out-sine":bt(.39,.575,.565,1),"ease-in-out-sine":bt(.445,.05,.55,.95),"ease-in-quad":bt(.55,.085,.68,.53),"ease-out-quad":bt(.25,.46,.45,.94),"ease-in-out-quad":bt(.455,.03,.515,.955),"ease-in-cubic":bt(.55,.055,.675,.19),"ease-out-cubic":bt(.215,.61,.355,1),"ease-in-out-cubic":bt(.645,.045,.355,1),"ease-in-quart":bt(.895,.03,.685,.22),"ease-out-quart":bt(.165,.84,.44,1),"ease-in-out-quart":bt(.77,0,.175,1),"ease-in-quint":bt(.755,.05,.855,.06),"ease-out-quint":bt(.23,1,.32,1),"ease-in-out-quint":bt(.86,0,.07,1),"ease-in-expo":bt(.95,.05,.795,.035),"ease-out-expo":bt(.19,1,.22,1),"ease-in-out-expo":bt(1,0,0,1),"ease-in-circ":bt(.6,.04,.98,.335),"ease-out-circ":bt(.075,.82,.165,1),"ease-in-out-circ":bt(.785,.135,.15,.86),spring:function(e,r,a){if(a===0)return Bn.linear;var n=Id(e,r,a);return function(i,o,s){return i+(o-i)*n(s)}},"cubic-bezier":bt};function $s(t,e,r,a,n){if(a===1||e===r)return r;var i=n(e,r,a);return t==null||((t.roundValue||t.color)&&(i=Math.round(i)),t.min!==void 0&&(i=Math.max(i,t.min)),t.max!==void 0&&(i=Math.min(i,t.max))),i}function Vs(t,e){return t.pfValue!=null||t.value!=null?t.pfValue!=null&&(e==null||e.type.units!=="%")?t.pfValue:t.value:t}function ga(t,e,r,a,n){var i=n!=null?n.type:null;r<0?r=0:r>1&&(r=1);var o=Vs(t,n),s=Vs(e,n);if(k(o)&&k(s))return $s(i,o,s,r,a);if(te(o)&&te(s)){for(var u=[],l=0;l<s.length;l++){var v=o[l],f=s[l];if(v!=null&&f!=null){var h=$s(i,v,f,r,a);u.push(h)}else u.push(f)}return u}}function Rd(t,e,r,a){var n=!a,i=t._private,o=e._private,s=o.easing,u=o.startTime,l=a?t:t.cy(),v=l.style();if(!o.easingImpl)if(s==null)o.easingImpl=Bn.linear;else{var f;if(j(s)){var h=v.parse("transition-timing-function",s);f=h.value}else f=s;var c,d;j(f)?(c=f,d=[]):(c=f[1],d=f.slice(2).map(function(se){return+se})),d.length>0?(c==="spring"&&d.push(o.duration),o.easingImpl=Bn[c].apply(null,d)):o.easingImpl=Bn[c]}var g=o.easingImpl,y;if(o.duration===0?y=1:y=(r-u)/o.duration,o.applying&&(y=o.progress),y<0?y=0:y>1&&(y=1),o.delay==null){var p=o.startPosition,m=o.position;if(m&&n&&!t.locked()){var b={};Xa(p.x,m.x)&&(b.x=ga(p.x,m.x,y,g)),Xa(p.y,m.y)&&(b.y=ga(p.y,m.y,y,g)),t.position(b)}var E=o.startPan,M=o.pan,A=i.pan,w=M!=null&&a;w&&(Xa(E.x,M.x)&&(A.x=ga(E.x,M.x,y,g)),Xa(E.y,M.y)&&(A.y=ga(E.y,M.y,y,g)),t.emit("pan"));var I=o.startZoom,C=o.zoom,B=C!=null&&a;B&&(Xa(I,C)&&(i.zoom=ka(i.minZoom,ga(I,C,y,g),i.maxZoom)),t.emit("zoom")),(w||B)&&t.emit("viewport");var F=o.style;if(F&&F.length>0&&n){for(var R=0;R<F.length;R++){var X=F[R],G=X.name,re=X,q=o.startStyle[G],Z=v.properties[q.name],ie=ga(q,re,y,g,Z);v.overrideBypass(t,G,ie)}t.emit("style")}}return o.progress=y,y}function Xa(t,e){return t==null||e==null?!1:k(t)&&k(e)?!0:!!(t&&e)}function kd(t,e,r,a){var n=e._private;n.started=!0,n.startTime=r-n.progress*n.duration}function _s(t,e){var r=e._private.aniEles,a=[];function n(v,f){var h=v._private,c=h.animation.current,d=h.animation.queue,g=!1;if(c.length===0){var y=d.shift();y&&c.push(y)}for(var p=function(A){for(var w=A.length-1;w>=0;w--){var I=A[w];I()}A.splice(0,A.length)},m=c.length-1;m>=0;m--){var b=c[m],E=b._private;if(E.stopped){c.splice(m,1),E.hooked=!1,E.playing=!1,E.started=!1,p(E.frames);continue}!E.playing&&!E.applying||(E.playing&&E.applying&&(E.applying=!1),E.started||kd(v,b,t),Rd(v,b,t,f),E.applying&&(E.applying=!1),p(E.frames),E.step!=null&&E.step(t),b.completed()&&(c.splice(m,1),E.hooked=!1,E.playing=!1,E.started=!1,p(E.completes)),g=!0)}return!f&&c.length===0&&d.length===0&&a.push(v),g}for(var i=!1,o=0;o<r.length;o++){var s=r[o],u=n(s);i=i||u}var l=n(e,!0);(i||l)&&(r.length>0?e.notify("draw",r):e.notify("draw")),r.unmerge(a),e.emit("step")}var Pd={animate:ft.animate(),animation:ft.animation(),animated:ft.animated(),clearQueue:ft.clearQueue(),delay:ft.delay(),delayAnimation:ft.delayAnimation(),stop:ft.stop(),addToAnimationPool:function(e){var r=this;r.styleEnabled()&&r._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function r(){e._private.animationsRunning&&vn(function(i){_s(i,e),r()})}var a=e.renderer();a&&a.beforeRender?a.beforeRender(function(i,o){_s(o,e)},a.beforeRenderPriorities.animations):r()}},Bd={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,a){var n=r.qualifier;return n!=null?e!==a.target&&Ae(a.target)&&n.matches(a.target):!0},addEventFields:function(e,r){r.cy=e,r.target=e},callbackContext:function(e,r,a){return r.qualifier!=null?a.target:e}},Fn=function(e){return j(e)?new Dr(e):e},Us={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new Nn(Bd,this)),this},emitter:function(){return this._private.emitter},on:function(e,r,a){return this.emitter().on(e,Fn(r),a),this},removeListener:function(e,r,a){return this.emitter().removeListener(e,Fn(r),a),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,r,a){return this.emitter().one(e,Fn(r),a),this},once:function(e,r,a){return this.emitter().one(e,Fn(r),a),this},emit:function(e,r){return this.emitter().emit(e,r),this},emitAndNotify:function(e,r){return this.emit(e),this.notify(e,r),this}};ft.eventAliasesOn(Us);var Ni={png:function(e){var r=this._private.renderer;return e=e||{},r.png(e)},jpg:function(e){var r=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",r.jpg(e)}};Ni.jpeg=Ni.jpg;var Gn={layout:function(e){var r=this;if(e==null){xt("Layout options must be specified to make a layout");return}if(e.name==null){xt("A `name` must be specified to make a layout");return}var a=e.name,n=r.extension("layout",a);if(n==null){xt("No such layout `"+a+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var i;j(e.eles)?i=r.$(e.eles):i=e.eles!=null?e.eles:r.$();var o=new n(Ue({},e,{cy:r,eles:i}));return o}};Gn.createLayout=Gn.makeLayout=Gn.layout;var Fd={notify:function(e,r){var a=this._private;if(this.batching()){a.batchNotifications=a.batchNotifications||{};var n=a.batchNotifications[e]=a.batchNotifications[e]||this.collection();r!=null&&n.merge(r);return}if(a.notificationsEnabled){var i=this.renderer();this.destroyed()||!i||i.notify(e,r)}},notifications:function(e){var r=this._private;return e===void 0?r.notificationsEnabled:(r.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(e.batchNotifications).forEach(function(a){var n=e.batchNotifications[a];n.empty()?r.notify(a):r.notify(a,n)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var r=this;return this.batch(function(){for(var a=Object.keys(e),n=0;n<a.length;n++){var i=a[n],o=e[i],s=r.getElementById(i);s.data(o)}})}},Gd=Lt({hideEdgesOnViewport:!1,textureOnViewport:!1,motionBlur:!1,motionBlurOpacity:.05,pixelRatio:void 0,desktopTapThreshold:4,touchTapThreshold:8,wheelSensitivity:1,debug:!1,showFps:!1}),Mi={renderTo:function(e,r,a,n){var i=this._private.renderer;return i.renderTo(e,r,a,n),this},renderer:function(){return this._private.renderer},forceRender:function(){return this.notify("draw"),this},resize:function(){return this.invalidateSize(),this.emitAndNotify("resize"),this},initRenderer:function(e){var r=this,a=r.extension("renderer",e.name);if(a==null){xt("Can not initialise: No such renderer `".concat(e.name,"` found. Did you forget to import it and `cytoscape.use()` it?"));return}e.wheelSensitivity!==void 0&&vt("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");var n=Gd(e);n.cy=r,r._private.renderer=new a(n),this.notify("init")},destroyRenderer:function(){var e=this;e.notify("destroy");var r=e.container();if(r)for(r._cyreg=null;r.childNodes.length>0;)r.removeChild(r.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(a){var n=a._private;n.rscratch={},n.rstyle={},n.animation.current=[],n.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};Mi.invalidateDimensions=Mi.resize;var zn={collection:function(e,r){return j(e)?this.$(e):ge(e)?e.collection():te(e)?(r||(r={}),new Ot(this,e,r.unique,r.removed)):new Ot(this)},nodes:function(e){var r=this.$(function(a){return a.isNode()});return e?r.filter(e):r},edges:function(e){var r=this.$(function(a){return a.isEdge()});return e?r.filter(e):r},$:function(e){var r=this._private.elements;return e?r.filter(e):r.spawnSelf()},mutableElements:function(){return this._private.elements}};zn.elements=zn.filter=zn.$;var Bt={},Wa="t",zd="f";Bt.apply=function(t){for(var e=this,r=e._private,a=r.cy,n=a.collection(),i=0;i<t.length;i++){var o=t[i],s=e.getContextMeta(o);if(!s.empty){var u=e.getContextStyle(s),l=e.applyContextStyle(s,u,o);o._private.appliedInitStyle?e.updateTransitions(o,l.diffProps):o._private.appliedInitStyle=!0;var v=e.updateStyleHints(o);v&&n.push(o)}}return n},Bt.getPropertiesDiff=function(t,e){var r=this,a=r._private.propDiffs=r._private.propDiffs||{},n=t+"-"+e,i=a[n];if(i)return i;for(var o=[],s={},u=0;u<r.length;u++){var l=r[u],v=t[u]===Wa,f=e[u]===Wa,h=v!==f,c=l.mappedProperties.length>0;if(h||f&&c){var d=void 0;h&&c||h?d=l.properties:c&&(d=l.mappedProperties);for(var g=0;g<d.length;g++){for(var y=d[g],p=y.name,m=!1,b=u+1;b<r.length;b++){var E=r[b],M=e[b]===Wa;if(M&&(m=E.properties[y.name]!=null,m))break}!s[p]&&!m&&(s[p]=!0,o.push(p))}}}return a[n]=o,o},Bt.getContextMeta=function(t){for(var e=this,r="",a,n=t._private.styleCxtKey||"",i=0;i<e.length;i++){var o=e[i],s=o.selector&&o.selector.matches(t);s?r+=Wa:r+=zd}return a=e.getPropertiesDiff(n,r),t._private.styleCxtKey=r,{key:r,diffPropNames:a,empty:a.length===0}},Bt.getContextStyle=function(t){var e=t.key,r=this,a=this._private.contextStyles=this._private.contextStyles||{};if(a[e])return a[e];for(var n={_private:{key:e}},i=0;i<r.length;i++){var o=r[i],s=e[i]===Wa;if(s)for(var u=0;u<o.properties.length;u++){var l=o.properties[u];n[l.name]=l}}return a[e]=n,n},Bt.applyContextStyle=function(t,e,r){for(var a=this,n=t.diffPropNames,i={},o=a.types,s=0;s<n.length;s++){var u=n[s],l=e[u],v=r.pstyle(u);if(!l)if(v)v.bypass?l={name:u,deleteBypassed:!0}:l={name:u,delete:!0};else continue;if(v!==l){if(l.mapped===o.fn&&v!=null&&v.mapping!=null&&v.mapping.value===l.value){var f=v.mapping,h=f.fnValue=l.value(r);if(h===f.prevFnValue)continue}var c=i[u]={prev:v};a.applyParsedProperty(r,l),c.next=r.pstyle(u),c.next&&c.next.bypass&&(c.next=c.next.bypassed)}}return{diffProps:i}},Bt.updateStyleHints=function(t){var e=t._private,r=this,a=r.propertyGroupNames,n=r.propertyGroupKeys,i=function(Oe,Ie,He){return r.getPropertiesHash(Oe,Ie,He)},o=e.styleKey;if(t.removed())return!1;var s=e.group==="nodes",u=t._private.style;a=Object.keys(u);for(var l=0;l<n.length;l++){var v=n[l];e.styleKeys[v]=[Qr,Oa]}for(var f=function(Oe,Ie){return e.styleKeys[Ie][0]=Na(Oe,e.styleKeys[Ie][0])},h=function(Oe,Ie){return e.styleKeys[Ie][1]=Ma(Oe,e.styleKeys[Ie][1])},c=function(Oe,Ie){f(Oe,Ie),h(Oe,Ie)},d=function(Oe,Ie){for(var He=0;He<Oe.length;He++){var We=Oe.charCodeAt(He);f(We,Ie),h(We,Ie)}},g=2e9,y=function(Oe){return-128<Oe&&Oe<128&&Math.floor(Oe)!==Oe?g-(Oe*1024|0):Oe},p=0;p<a.length;p++){var m=a[p],b=u[m];if(b!=null){var E=this.properties[m],M=E.type,A=E.groupKey,w=void 0;E.hashOverride!=null?w=E.hashOverride(t,b):b.pfValue!=null&&(w=b.pfValue);var I=E.enums==null?b.value:null,C=w!=null,B=I!=null,F=C||B,R=b.units;if(M.number&&F&&!M.multiple){var X=C?w:I;c(y(X),A),!C&&R!=null&&d(R,A)}else d(b.strValue,A)}}for(var G=[Qr,Oa],re=0;re<n.length;re++){var q=n[re],Z=e.styleKeys[q];G[0]=Na(Z[0],G[0]),G[1]=Ma(Z[1],G[1])}e.styleKey=Yu(G[0],G[1]);var ie=e.styleKeys;e.labelDimsKey=Er(ie.labelDimensions);var se=i(t,["label"],ie.labelDimensions);if(e.labelKey=Er(se),e.labelStyleKey=Er(fn(ie.commonLabel,se)),!s){var de=i(t,["source-label"],ie.labelDimensions);e.sourceLabelKey=Er(de),e.sourceLabelStyleKey=Er(fn(ie.commonLabel,de));var oe=i(t,["target-label"],ie.labelDimensions);e.targetLabelKey=Er(oe),e.targetLabelStyleKey=Er(fn(ie.commonLabel,oe))}if(s){var ce=e.styleKeys,we=ce.nodeBody,Te=ce.nodeBorder,Ee=ce.backgroundImage,ye=ce.compound,ae=ce.pie,xe=[we,Te,Ee,ye,ae].filter(function(Ce){return Ce!=null}).reduce(fn,[Qr,Oa]);e.nodeKey=Er(xe),e.hasPie=ae!=null&&ae[0]!==Qr&&ae[1]!==Oa}return o!==e.styleKey},Bt.clearStyleHints=function(t){var e=t._private;e.styleCxtKey="",e.styleKeys={},e.styleKey=null,e.labelKey=null,e.labelStyleKey=null,e.sourceLabelKey=null,e.sourceLabelStyleKey=null,e.targetLabelKey=null,e.targetLabelStyleKey=null,e.nodeKey=null,e.hasPie=null},Bt.applyParsedProperty=function(t,e){var r=this,a=e,n=t._private.style,i,o=r.types,s=r.properties[a.name].type,u=a.bypass,l=n[a.name],v=l&&l.bypass,f=t._private,h="mapping",c=function(we){return we==null?null:we.pfValue!=null?we.pfValue:we.value},d=function(){var we=c(l),Te=c(a);r.checkTriggers(t,a.name,we,Te)};if(a&&a.name.substr(0,3)==="pie"&&vt("The pie style properties are deprecated. Create charts using background images instead."),e.name==="curve-style"&&t.isEdge()&&(e.value!=="bezier"&&t.isLoop()||e.value==="haystack"&&(t.source().isParent()||t.target().isParent()))&&(a=e=this.parse(e.name,"bezier",u)),a.delete)return n[a.name]=void 0,d(),!0;if(a.deleteBypassed)return l?l.bypass?(l.bypassed=void 0,d(),!0):!1:(d(),!0);if(a.deleteBypass)return l?l.bypass?(n[a.name]=l.bypassed,d(),!0):!1:(d(),!0);var g=function(){vt("Do not assign mappings to elements without corresponding data (i.e. ele `"+t.id()+"` has no mapping for property `"+a.name+"` with data field `"+a.field+"`); try a `["+a.field+"]` selector to limit scope to elements with `"+a.field+"` defined")};switch(a.mapped){case o.mapData:{for(var y=a.field.split("."),p=f.data,m=0;m<y.length&&p;m++){var b=y[m];p=p[b]}if(p==null)return g(),!1;var E;if(k(p)){var M=a.fieldMax-a.fieldMin;M===0?E=0:E=(p-a.fieldMin)/M}else return vt("Do not use continuous mappers without specifying numeric data (i.e. `"+a.field+": "+p+"` for `"+t.id()+"` is non-numeric)"),!1;if(E<0?E=0:E>1&&(E=1),s.color){var A=a.valueMin[0],w=a.valueMax[0],I=a.valueMin[1],C=a.valueMax[1],B=a.valueMin[2],F=a.valueMax[2],R=a.valueMin[3]==null?1:a.valueMin[3],X=a.valueMax[3]==null?1:a.valueMax[3],G=[Math.round(A+(w-A)*E),Math.round(I+(C-I)*E),Math.round(B+(F-B)*E),Math.round(R+(X-R)*E)];i={bypass:a.bypass,name:a.name,value:G,strValue:"rgb("+G[0]+", "+G[1]+", "+G[2]+")"}}else if(s.number){var re=a.valueMin+(a.valueMax-a.valueMin)*E;i=this.parse(a.name,re,a.bypass,h)}else return!1;if(!i)return g(),!1;i.mapping=a,a=i;break}case o.data:{for(var q=a.field.split("."),Z=f.data,ie=0;ie<q.length&&Z;ie++){var se=q[ie];Z=Z[se]}if(Z!=null&&(i=this.parse(a.name,Z,a.bypass,h)),!i)return g(),!1;i.mapping=a,a=i;break}case o.fn:{var de=a.value,oe=a.fnValue!=null?a.fnValue:de(t);if(a.prevFnValue=oe,oe==null)return vt("Custom function mappers may not return null (i.e. `"+a.name+"` for ele `"+t.id()+"` is null)"),!1;if(i=this.parse(a.name,oe,a.bypass,h),!i)return vt("Custom function mappers may not return invalid values for the property type (i.e. `"+a.name+"` for ele `"+t.id()+"` is invalid)"),!1;i.mapping=sr(a),a=i;break}case void 0:break;default:return!1}return u?(v?a.bypassed=l.bypassed:a.bypassed=l,n[a.name]=a):v?l.bypassed=a:n[a.name]=a,d(),!0},Bt.cleanElements=function(t,e){for(var r=0;r<t.length;r++){var a=t[r];if(this.clearStyleHints(a),a.dirtyCompoundBoundsCache(),a.dirtyBoundingBoxCache(),!e)a._private.style={};else for(var n=a._private.style,i=Object.keys(n),o=0;o<i.length;o++){var s=i[o],u=n[s];u!=null&&(u.bypass?u.bypassed=null:n[s]=null)}}},Bt.update=function(){var t=this._private.cy,e=t.mutableElements();e.updateStyle()},Bt.updateTransitions=function(t,e){var r=this,a=t._private,n=t.pstyle("transition-property").value,i=t.pstyle("transition-duration").pfValue,o=t.pstyle("transition-delay").pfValue;if(n.length>0&&i>0){for(var s={},u=!1,l=0;l<n.length;l++){var v=n[l],f=t.pstyle(v),h=e[v];if(h){var c=h.prev,d=c,g=h.next!=null?h.next:f,y=!1,p=void 0,m=1e-6;d&&(k(d.pfValue)&&k(g.pfValue)?(y=g.pfValue-d.pfValue,p=d.pfValue+m*y):k(d.value)&&k(g.value)?(y=g.value-d.value,p=d.value+m*y):te(d.value)&&te(g.value)&&(y=d.value[0]!==g.value[0]||d.value[1]!==g.value[1]||d.value[2]!==g.value[2],p=d.strValue),y&&(s[v]=g.strValue,this.applyBypass(t,v,p),u=!0))}}if(!u)return;a.transitioning=!0,new ia(function(b){o>0?t.delayAnimation(o).play().promise().then(b):b()}).then(function(){return t.animation({style:s,duration:i,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1})}else a.transitioning&&(this.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1)},Bt.checkTrigger=function(t,e,r,a,n,i){var o=this.properties[e],s=n(o);s!=null&&s(r,a)&&i(o)},Bt.checkZOrderTrigger=function(t,e,r,a){var n=this;this.checkTrigger(t,e,r,a,function(i){return i.triggersZOrder},function(){n._private.cy.notify("zorder",t)})},Bt.checkBoundsTrigger=function(t,e,r,a){this.checkTrigger(t,e,r,a,function(n){return n.triggersBounds},function(n){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),n.triggersBoundsOfParallelBeziers&&(e==="curve-style"&&(r==="bezier"||a==="bezier")||e==="display"&&(r==="none"||a==="none"))&&t.parallelEdges().forEach(function(i){i.isBundledBezier()&&i.dirtyBoundingBoxCache()})})},Bt.checkTriggers=function(t,e,r,a){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,r,a),this.checkBoundsTrigger(t,e,r,a)};var qa={};qa.applyBypass=function(t,e,r,a){var n=this,i=[],o=!0;if(e==="*"||e==="**"){if(r!==void 0)for(var s=0;s<n.properties.length;s++){var u=n.properties[s],l=u.name,v=this.parse(l,r,!0);v&&i.push(v)}}else if(j(e)){var f=this.parse(e,r,!0);f&&i.push(f)}else if(L(e)){var h=e;a=r;for(var c=Object.keys(h),d=0;d<c.length;d++){var g=c[d],y=h[g];if(y===void 0&&(y=h[pt(g)]),y!==void 0){var p=this.parse(g,y,!0);p&&i.push(p)}}}else return!1;if(i.length===0)return!1;for(var m=!1,b=0;b<t.length;b++){for(var E=t[b],M={},A=void 0,w=0;w<i.length;w++){var I=i[w];if(a){var C=E.pstyle(I.name);A=M[I.name]={prev:C}}m=this.applyParsedProperty(E,sr(I))||m,a&&(A.next=E.pstyle(I.name))}m&&this.updateStyleHints(E),a&&this.updateTransitions(E,M,o)}return m},qa.overrideBypass=function(t,e,r){e=je(e);for(var a=0;a<t.length;a++){var n=t[a],i=n._private.style[e],o=this.properties[e].type,s=o.color,u=o.mutiple,l=i?i.pfValue!=null?i.pfValue:i.value:null;!i||!i.bypass?this.applyBypass(n,e,r):(i.value=r,i.pfValue!=null&&(i.pfValue=r),s?i.strValue="rgb("+r.join(",")+")":u?i.strValue=r.join(" "):i.strValue=""+r,this.updateStyleHints(n)),this.checkTriggers(n,e,l,r)}},qa.removeAllBypasses=function(t,e){return this.removeBypasses(t,this.propertyNames,e)},qa.removeBypasses=function(t,e,r){for(var a=!0,n=0;n<t.length;n++){for(var i=t[n],o={},s=0;s<e.length;s++){var u=e[s],l=this.properties[u],v=i.pstyle(l.name);if(!(!v||!v.bypass)){var f="",h=this.parse(u,f,!0),c=o[l.name]={prev:v};this.applyParsedProperty(i,h),c.next=i.pstyle(l.name)}}this.updateStyleHints(i),r&&this.updateTransitions(i,o,a)}};var Ii={};Ii.getEmSizeInPixels=function(){var t=this.containerCss("font-size");return t!=null?parseFloat(t):1},Ii.containerCss=function(t){var e=this._private.cy,r=e.container();if(D&&r&&D.getComputedStyle)return D.getComputedStyle(r).getPropertyValue(t)};var ur={};ur.getRenderedStyle=function(t,e){return e?this.getStylePropertyValue(t,e,!0):this.getRawStyle(t,!0)},ur.getRawStyle=function(t,e){var r=this;if(t=t[0],t){for(var a={},n=0;n<r.properties.length;n++){var i=r.properties[n],o=r.getStylePropertyValue(t,i.name,e);o!=null&&(a[i.name]=o,a[pt(i.name)]=o)}return a}},ur.getIndexedStyle=function(t,e,r,a){var n=t.pstyle(e)[r][a];return n??t.cy().style().getDefaultProperty(e)[r][0]},ur.getStylePropertyValue=function(t,e,r){var a=this;if(t=t[0],t){var n=a.properties[e];n.alias&&(n=n.pointsTo);var i=n.type,o=t.pstyle(n.name);if(o){var s=o.value,u=o.units,l=o.strValue;if(r&&i.number&&s!=null&&k(s)){var v=t.cy().zoom(),f=function(y){return y*v},h=function(y,p){return f(y)+p},c=te(s),d=c?u.every(function(g){return g!=null}):u!=null;return d?c?s.map(function(g,y){return h(g,u[y])}).join(" "):h(s,u):c?s.map(function(g){return j(g)?g:""+f(g)}).join(" "):""+f(s)}else if(l!=null)return l}return null}},ur.getAnimationStartStyle=function(t,e){for(var r={},a=0;a<e.length;a++){var n=e[a],i=n.name,o=t.pstyle(i);o!==void 0&&(L(o)?o=this.parse(i,o.strValue):o=this.parse(i,o)),o&&(r[i]=o)}return r},ur.getPropsList=function(t){var e=this,r=[],a=t,n=e.properties;if(a)for(var i=Object.keys(a),o=0;o<i.length;o++){var s=i[o],u=a[s],l=n[s]||n[je(s)],v=this.parse(l.name,u);v&&r.push(v)}return r},ur.getNonDefaultPropertiesHash=function(t,e,r){var a=r.slice(),n,i,o,s,u,l;for(u=0;u<e.length;u++)if(n=e[u],i=t.pstyle(n,!1),i!=null)if(i.pfValue!=null)a[0]=Na(s,a[0]),a[1]=Ma(s,a[1]);else for(o=i.strValue,l=0;l<o.length;l++)s=o.charCodeAt(l),a[0]=Na(s,a[0]),a[1]=Ma(s,a[1]);return a},ur.getPropertiesHash=ur.getNonDefaultPropertiesHash;var $n={};$n.appendFromJson=function(t){for(var e=this,r=0;r<t.length;r++){var a=t[r],n=a.selector,i=a.style||a.css,o=Object.keys(i);e.selector(n);for(var s=0;s<o.length;s++){var u=o[s],l=i[u];e.css(u,l)}}return e},$n.fromJson=function(t){var e=this;return e.resetToDefault(),e.appendFromJson(t),e},$n.json=function(){for(var t=[],e=this.defaultLength;e<this.length;e++){for(var r=this[e],a=r.selector,n=r.properties,i={},o=0;o<n.length;o++){var s=n[o];i[s.name]=s.strValue}t.push({selector:a?a.toString():"core",style:i})}return t};var Ri={};Ri.appendFromString=function(t){var e=this,r=this,a=""+t,n,i,o;a=a.replace(/[/][*](\s|.)+?[*][/]/g,"");function s(){a.length>n.length?a=a.substr(n.length):a=""}function u(){i.length>o.length?i=i.substr(o.length):i=""}for(;;){var l=a.match(/^\s*$/);if(l)break;var v=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!v){vt("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}n=v[0];var f=v[1];if(f!=="core"){var h=new Dr(f);if(h.invalid){vt("Skipping parsing of block: Invalid selector found in string stylesheet: "+f),s();continue}}var c=v[2],d=!1;i=c;for(var g=[];;){var y=i.match(/^\s*$/);if(y)break;var p=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!p){vt("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+c),d=!0;break}o=p[0];var m=p[1],b=p[2],E=e.properties[m];if(!E){vt("Skipping property: Invalid property name in: "+o),u();continue}var M=r.parse(m,b);if(!M){vt("Skipping property: Invalid property definition in: "+o),u();continue}g.push({name:m,val:b}),u()}if(d){s();break}r.selector(f);for(var A=0;A<g.length;A++){var w=g[A];r.css(w.name,w.val)}s()}return r},Ri.fromString=function(t){var e=this;return e.resetToDefault(),e.appendFromString(t),e};var Nt={};(function(){var t=ct,e=Wt,r=Kr,a=Da,n=jt,i=function(xe){return"^"+xe+"\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"},o=function(xe){var Ce=t+"|\\w+|"+e+"|"+r+"|"+a+"|"+n;return"^"+xe+"\\s*\\(([\\w\\.]+)\\s*\\,\\s*("+t+")\\s*\\,\\s*("+t+")\\s*,\\s*("+Ce+")\\s*\\,\\s*("+Ce+")\\)$"},s=[`^url\\s*\\(\\s*['"]?(.+?)['"]?\\s*\\)$`,"^(none)$","^(.+)$"];Nt.types={time:{number:!0,min:0,units:"s|ms",implicitUnits:"ms"},percent:{number:!0,min:0,max:100,units:"%",implicitUnits:"%"},percentages:{number:!0,min:0,max:100,units:"%",implicitUnits:"%",multiple:!0},zeroOneNumber:{number:!0,min:0,max:1,unitless:!0},zeroOneNumbers:{number:!0,min:0,max:1,unitless:!0,multiple:!0},nOneOneNumber:{number:!0,min:-1,max:1,unitless:!0},nonNegativeInt:{number:!0,min:0,integer:!0,unitless:!0},position:{enums:["parent","origin"]},nodeSize:{number:!0,min:0,enums:["label"]},number:{number:!0,unitless:!0},numbers:{number:!0,unitless:!0,multiple:!0},positiveNumber:{number:!0,unitless:!0,min:0,strictMin:!0},size:{number:!0,min:0},bidirectionalSize:{number:!0},bidirectionalSizeMaybePercent:{number:!0,allowPercent:!0},bidirectionalSizes:{number:!0,multiple:!0},sizeMaybePercent:{number:!0,min:0,allowPercent:!0},axisDirection:{enums:["horizontal","leftward","rightward","vertical","upward","downward","auto"]},paddingRelativeTo:{enums:["width","height","average","min","max"]},bgWH:{number:!0,min:0,allowPercent:!0,enums:["auto"],multiple:!0},bgPos:{number:!0,allowPercent:!0,multiple:!0},bgRelativeTo:{enums:["inner","include-padding"],multiple:!0},bgRepeat:{enums:["repeat","repeat-x","repeat-y","no-repeat"],multiple:!0},bgFit:{enums:["none","contain","cover"],multiple:!0},bgCrossOrigin:{enums:["anonymous","use-credentials"],multiple:!0},bgClip:{enums:["none","node"],multiple:!0},bgContainment:{enums:["inside","over"],multiple:!0},color:{color:!0},colors:{color:!0,multiple:!0},fill:{enums:["solid","linear-gradient","radial-gradient"]},bool:{enums:["yes","no"]},bools:{enums:["yes","no"],multiple:!0},lineStyle:{enums:["solid","dotted","dashed"]},lineCap:{enums:["butt","round","square"]},borderStyle:{enums:["solid","dotted","dashed","double"]},curveStyle:{enums:["bezier","unbundled-bezier","haystack","segments","straight","straight-triangle","taxi"]},fontFamily:{regex:'^([\\w- \\"]+(?:\\s*,\\s*[\\w- \\"]+)*)$'},fontStyle:{enums:["italic","normal","oblique"]},fontWeight:{enums:["normal","bold","bolder","lighter","100","200","300","400","500","600","800","900",100,200,300,400,500,600,700,800,900]},textDecoration:{enums:["none","underline","overline","line-through"]},textTransform:{enums:["none","uppercase","lowercase"]},textWrap:{enums:["none","wrap","ellipsis"]},textOverflowWrap:{enums:["whitespace","anywhere"]},textBackgroundShape:{enums:["rectangle","roundrectangle","round-rectangle"]},nodeShape:{enums:["rectangle","roundrectangle","round-rectangle","cutrectangle","cut-rectangle","bottomroundrectangle","bottom-round-rectangle","barrel","ellipse","triangle","round-triangle","square","pentagon","round-pentagon","hexagon","round-hexagon","concavehexagon","concave-hexagon","heptagon","round-heptagon","octagon","round-octagon","tag","round-tag","star","diamond","round-diamond","vee","rhomboid","polygon"]},overlayShape:{enums:["roundrectangle","round-rectangle","ellipse"]},compoundIncludeLabels:{enums:["include","exclude"]},arrowShape:{enums:["tee","triangle","triangle-tee","circle-triangle","triangle-cross","triangle-backcurve","vee","square","circle","diamond","chevron","none"]},arrowFill:{enums:["filled","hollow"]},display:{enums:["element","none"]},visibility:{enums:["hidden","visible"]},zCompoundDepth:{enums:["bottom","orphan","auto","top"]},zIndexCompare:{enums:["auto","manual"]},valign:{enums:["top","center","bottom"]},halign:{enums:["left","center","right"]},justification:{enums:["left","center","right","auto"]},text:{string:!0},data:{mapping:!0,regex:i("data")},layoutData:{mapping:!0,regex:i("layoutData")},scratch:{mapping:!0,regex:i("scratch")},mapData:{mapping:!0,regex:o("mapData")},mapLayoutData:{mapping:!0,regex:o("mapLayoutData")},mapScratch:{mapping:!0,regex:o("mapScratch")},fn:{mapping:!0,fn:!0},url:{regexes:s,singleRegexMatchValue:!0},urls:{regexes:s,singleRegexMatchValue:!0,multiple:!0},propList:{propList:!0},angle:{number:!0,units:"deg|rad",implicitUnits:"rad"},textRotation:{number:!0,units:"deg|rad",implicitUnits:"rad",enums:["none","autorotate"]},polygonPointList:{number:!0,multiple:!0,evenMultiple:!0,min:-1,max:1,unitless:!0},edgeDistances:{enums:["intersection","node-position"]},edgeEndpoint:{number:!0,multiple:!0,units:"%|px|em|deg|rad",implicitUnits:"px",enums:["inside-to-node","outside-to-node","outside-to-node-or-label","outside-to-line","outside-to-line-or-label"],singleEnum:!0,validate:function(xe,Ce){switch(xe.length){case 2:return Ce[0]!=="deg"&&Ce[0]!=="rad"&&Ce[1]!=="deg"&&Ce[1]!=="rad";case 1:return j(xe[0])||Ce[0]==="deg"||Ce[0]==="rad";default:return!1}}},easing:{regexes:["^(spring)\\s*\\(\\s*("+t+")\\s*,\\s*("+t+")\\s*\\)$","^(cubic-bezier)\\s*\\(\\s*("+t+")\\s*,\\s*("+t+")\\s*,\\s*("+t+")\\s*,\\s*("+t+")\\s*\\)$"],enums:["linear","ease","ease-in","ease-out","ease-in-out","ease-in-sine","ease-out-sine","ease-in-out-sine","ease-in-quad","ease-out-quad","ease-in-out-quad","ease-in-cubic","ease-out-cubic","ease-in-out-cubic","ease-in-quart","ease-out-quart","ease-in-out-quart","ease-in-quint","ease-out-quint","ease-in-out-quint","ease-in-expo","ease-out-expo","ease-in-out-expo","ease-in-circ","ease-out-circ","ease-in-out-circ"]},gradientDirection:{enums:["to-bottom","to-top","to-left","to-right","to-bottom-right","to-bottom-left","to-top-right","to-top-left","to-right-bottom","to-left-bottom","to-right-top","to-left-top"]},boundsExpansion:{number:!0,multiple:!0,min:0,validate:function(xe){var Ce=xe.length;return Ce===1||Ce===2||Ce===4}}};var u={zeroNonZero:function(xe,Ce){return(xe==null||Ce==null)&&xe!==Ce||xe==0&&Ce!=0?!0:xe!=0&&Ce==0},any:function(xe,Ce){return xe!=Ce},emptyNonEmpty:function(xe,Ce){var Oe=Pe(xe),Ie=Pe(Ce);return Oe&&!Ie||!Oe&&Ie}},l=Nt.types,v=[{name:"label",type:l.text,triggersBounds:u.any,triggersZOrder:u.emptyNonEmpty},{name:"text-rotation",type:l.textRotation,triggersBounds:u.any},{name:"text-margin-x",type:l.bidirectionalSize,triggersBounds:u.any},{name:"text-margin-y",type:l.bidirectionalSize,triggersBounds:u.any}],f=[{name:"source-label",type:l.text,triggersBounds:u.any},{name:"source-text-rotation",type:l.textRotation,triggersBounds:u.any},{name:"source-text-margin-x",type:l.bidirectionalSize,triggersBounds:u.any},{name:"source-text-margin-y",type:l.bidirectionalSize,triggersBounds:u.any},{name:"source-text-offset",type:l.size,triggersBounds:u.any}],h=[{name:"target-label",type:l.text,triggersBounds:u.any},{name:"target-text-rotation",type:l.textRotation,triggersBounds:u.any},{name:"target-text-margin-x",type:l.bidirectionalSize,triggersBounds:u.any},{name:"target-text-margin-y",type:l.bidirectionalSize,triggersBounds:u.any},{name:"target-text-offset",type:l.size,triggersBounds:u.any}],c=[{name:"font-family",type:l.fontFamily,triggersBounds:u.any},{name:"font-style",type:l.fontStyle,triggersBounds:u.any},{name:"font-weight",type:l.fontWeight,triggersBounds:u.any},{name:"font-size",type:l.size,triggersBounds:u.any},{name:"text-transform",type:l.textTransform,triggersBounds:u.any},{name:"text-wrap",type:l.textWrap,triggersBounds:u.any},{name:"text-overflow-wrap",type:l.textOverflowWrap,triggersBounds:u.any},{name:"text-max-width",type:l.size,triggersBounds:u.any},{name:"text-outline-width",type:l.size,triggersBounds:u.any},{name:"line-height",type:l.positiveNumber,triggersBounds:u.any}],d=[{name:"text-valign",type:l.valign,triggersBounds:u.any},{name:"text-halign",type:l.halign,triggersBounds:u.any},{name:"color",type:l.color},{name:"text-outline-color",type:l.color},{name:"text-outline-opacity",type:l.zeroOneNumber},{name:"text-background-color",type:l.color},{name:"text-background-opacity",type:l.zeroOneNumber},{name:"text-background-padding",type:l.size,triggersBounds:u.any},{name:"text-border-opacity",type:l.zeroOneNumber},{name:"text-border-color",type:l.color},{name:"text-border-width",type:l.size,triggersBounds:u.any},{name:"text-border-style",type:l.borderStyle,triggersBounds:u.any},{name:"text-background-shape",type:l.textBackgroundShape,triggersBounds:u.any},{name:"text-justification",type:l.justification}],g=[{name:"events",type:l.bool},{name:"text-events",type:l.bool}],y=[{name:"display",type:l.display,triggersZOrder:u.any,triggersBounds:u.any,triggersBoundsOfParallelBeziers:!0},{name:"visibility",type:l.visibility,triggersZOrder:u.any},{name:"opacity",type:l.zeroOneNumber,triggersZOrder:u.zeroNonZero},{name:"text-opacity",type:l.zeroOneNumber},{name:"min-zoomed-font-size",type:l.size},{name:"z-compound-depth",type:l.zCompoundDepth,triggersZOrder:u.any},{name:"z-index-compare",type:l.zIndexCompare,triggersZOrder:u.any},{name:"z-index",type:l.nonNegativeInt,triggersZOrder:u.any}],p=[{name:"overlay-padding",type:l.size,triggersBounds:u.any},{name:"overlay-color",type:l.color},{name:"overlay-opacity",type:l.zeroOneNumber,triggersBounds:u.zeroNonZero},{name:"overlay-shape",type:l.overlayShape,triggersBounds:u.any}],m=[{name:"underlay-padding",type:l.size,triggersBounds:u.any},{name:"underlay-color",type:l.color},{name:"underlay-opacity",type:l.zeroOneNumber,triggersBounds:u.zeroNonZero},{name:"underlay-shape",type:l.overlayShape,triggersBounds:u.any}],b=[{name:"transition-property",type:l.propList},{name:"transition-duration",type:l.time},{name:"transition-delay",type:l.time},{name:"transition-timing-function",type:l.easing}],E=function(xe,Ce){return Ce.value==="label"?-xe.poolIndex():Ce.pfValue},M=[{name:"height",type:l.nodeSize,triggersBounds:u.any,hashOverride:E},{name:"width",type:l.nodeSize,triggersBounds:u.any,hashOverride:E},{name:"shape",type:l.nodeShape,triggersBounds:u.any},{name:"shape-polygon-points",type:l.polygonPointList,triggersBounds:u.any},{name:"background-color",type:l.color},{name:"background-fill",type:l.fill},{name:"background-opacity",type:l.zeroOneNumber},{name:"background-blacken",type:l.nOneOneNumber},{name:"background-gradient-stop-colors",type:l.colors},{name:"background-gradient-stop-positions",type:l.percentages},{name:"background-gradient-direction",type:l.gradientDirection},{name:"padding",type:l.sizeMaybePercent,triggersBounds:u.any},{name:"padding-relative-to",type:l.paddingRelativeTo,triggersBounds:u.any},{name:"bounds-expansion",type:l.boundsExpansion,triggersBounds:u.any}],A=[{name:"border-color",type:l.color},{name:"border-opacity",type:l.zeroOneNumber},{name:"border-width",type:l.size,triggersBounds:u.any},{name:"border-style",type:l.borderStyle}],w=[{name:"background-image",type:l.urls},{name:"background-image-crossorigin",type:l.bgCrossOrigin},{name:"background-image-opacity",type:l.zeroOneNumbers},{name:"background-image-containment",type:l.bgContainment},{name:"background-image-smoothing",type:l.bools},{name:"background-position-x",type:l.bgPos},{name:"background-position-y",type:l.bgPos},{name:"background-width-relative-to",type:l.bgRelativeTo},{name:"background-height-relative-to",type:l.bgRelativeTo},{name:"background-repeat",type:l.bgRepeat},{name:"background-fit",type:l.bgFit},{name:"background-clip",type:l.bgClip},{name:"background-width",type:l.bgWH},{name:"background-height",type:l.bgWH},{name:"background-offset-x",type:l.bgPos},{name:"background-offset-y",type:l.bgPos}],I=[{name:"position",type:l.position,triggersBounds:u.any},{name:"compound-sizing-wrt-labels",type:l.compoundIncludeLabels,triggersBounds:u.any},{name:"min-width",type:l.size,triggersBounds:u.any},{name:"min-width-bias-left",type:l.sizeMaybePercent,triggersBounds:u.any},{name:"min-width-bias-right",type:l.sizeMaybePercent,triggersBounds:u.any},{name:"min-height",type:l.size,triggersBounds:u.any},{name:"min-height-bias-top",type:l.sizeMaybePercent,triggersBounds:u.any},{name:"min-height-bias-bottom",type:l.sizeMaybePercent,triggersBounds:u.any}],C=[{name:"line-style",type:l.lineStyle},{name:"line-color",type:l.color},{name:"line-fill",type:l.fill},{name:"line-cap",type:l.lineCap},{name:"line-opacity",type:l.zeroOneNumber},{name:"line-dash-pattern",type:l.numbers},{name:"line-dash-offset",type:l.number},{name:"line-gradient-stop-colors",type:l.colors},{name:"line-gradient-stop-positions",type:l.percentages},{name:"curve-style",type:l.curveStyle,triggersBounds:u.any,triggersBoundsOfParallelBeziers:!0},{name:"haystack-radius",type:l.zeroOneNumber,triggersBounds:u.any},{name:"source-endpoint",type:l.edgeEndpoint,triggersBounds:u.any},{name:"target-endpoint",type:l.edgeEndpoint,triggersBounds:u.any},{name:"control-point-step-size",type:l.size,triggersBounds:u.any},{name:"control-point-distances",type:l.bidirectionalSizes,triggersBounds:u.any},{name:"control-point-weights",type:l.numbers,triggersBounds:u.any},{name:"segment-distances",type:l.bidirectionalSizes,triggersBounds:u.any},{name:"segment-weights",type:l.numbers,triggersBounds:u.any},{name:"taxi-turn",type:l.bidirectionalSizeMaybePercent,triggersBounds:u.any},{name:"taxi-turn-min-distance",type:l.size,triggersBounds:u.any},{name:"taxi-direction",type:l.axisDirection,triggersBounds:u.any},{name:"edge-distances",type:l.edgeDistances,triggersBounds:u.any},{name:"arrow-scale",type:l.positiveNumber,triggersBounds:u.any},{name:"loop-direction",type:l.angle,triggersBounds:u.any},{name:"loop-sweep",type:l.angle,triggersBounds:u.any},{name:"source-distance-from-node",type:l.size,triggersBounds:u.any},{name:"target-distance-from-node",type:l.size,triggersBounds:u.any}],B=[{name:"ghost",type:l.bool,triggersBounds:u.any},{name:"ghost-offset-x",type:l.bidirectionalSize,triggersBounds:u.any},{name:"ghost-offset-y",type:l.bidirectionalSize,triggersBounds:u.any},{name:"ghost-opacity",type:l.zeroOneNumber}],F=[{name:"selection-box-color",type:l.color},{name:"selection-box-opacity",type:l.zeroOneNumber},{name:"selection-box-border-color",type:l.color},{name:"selection-box-border-width",type:l.size},{name:"active-bg-color",type:l.color},{name:"active-bg-opacity",type:l.zeroOneNumber},{name:"active-bg-size",type:l.size},{name:"outside-texture-bg-color",type:l.color},{name:"outside-texture-bg-opacity",type:l.zeroOneNumber}],R=[];Nt.pieBackgroundN=16,R.push({name:"pie-size",type:l.sizeMaybePercent});for(var X=1;X<=Nt.pieBackgroundN;X++)R.push({name:"pie-"+X+"-background-color",type:l.color}),R.push({name:"pie-"+X+"-background-size",type:l.percent}),R.push({name:"pie-"+X+"-background-opacity",type:l.zeroOneNumber});var G=[],re=Nt.arrowPrefixes=["source","mid-source","target","mid-target"];[{name:"arrow-shape",type:l.arrowShape,triggersBounds:u.any},{name:"arrow-color",type:l.color},{name:"arrow-fill",type:l.arrowFill}].forEach(function(ae){re.forEach(function(xe){var Ce=xe+"-"+ae.name,Oe=ae.type,Ie=ae.triggersBounds;G.push({name:Ce,type:Oe,triggersBounds:Ie})})},{});var q=Nt.properties=[].concat(g,b,y,p,m,B,d,c,v,f,h,M,A,w,R,I,C,G,F),Z=Nt.propertyGroups={behavior:g,transition:b,visibility:y,overlay:p,underlay:m,ghost:B,commonLabel:d,labelDimensions:c,mainLabel:v,sourceLabel:f,targetLabel:h,nodeBody:M,nodeBorder:A,backgroundImage:w,pie:R,compound:I,edgeLine:C,edgeArrow:G,core:F},ie=Nt.propertyGroupNames={},se=Nt.propertyGroupKeys=Object.keys(Z);se.forEach(function(ae){ie[ae]=Z[ae].map(function(xe){return xe.name}),Z[ae].forEach(function(xe){return xe.groupKey=ae})});var de=Nt.aliases=[{name:"content",pointsTo:"label"},{name:"control-point-distance",pointsTo:"control-point-distances"},{name:"control-point-weight",pointsTo:"control-point-weights"},{name:"edge-text-rotation",pointsTo:"text-rotation"},{name:"padding-left",pointsTo:"padding"},{name:"padding-right",pointsTo:"padding"},{name:"padding-top",pointsTo:"padding"},{name:"padding-bottom",pointsTo:"padding"}];Nt.propertyNames=q.map(function(ae){return ae.name});for(var oe=0;oe<q.length;oe++){var ce=q[oe];q[ce.name]=ce}for(var we=0;we<de.length;we++){var Te=de[we],Ee=q[Te.pointsTo],ye={name:Te.name,alias:!0,pointsTo:Ee};q.push(ye),q[Te.name]=ye}})(),Nt.getDefaultProperty=function(t){return this.getDefaultProperties()[t]},Nt.getDefaultProperties=function(){var t=this._private;if(t.defaultProperties!=null)return t.defaultProperties;for(var e=Ue({"selection-box-color":"#ddd","selection-box-opacity":.65,"selection-box-border-color":"#aaa","selection-box-border-width":1,"active-bg-color":"black","active-bg-opacity":.15,"active-bg-size":30,"outside-texture-bg-color":"#000","outside-texture-bg-opacity":.125,events:"yes","text-events":"no","text-valign":"top","text-halign":"center","text-justification":"auto","line-height":1,color:"#000","text-outline-color":"#000","text-outline-width":0,"text-outline-opacity":1,"text-opacity":1,"text-decoration":"none","text-transform":"none","text-wrap":"none","text-overflow-wrap":"whitespace","text-max-width":9999,"text-background-color":"#000","text-background-opacity":0,"text-background-shape":"rectangle","text-background-padding":0,"text-border-opacity":0,"text-border-width":0,"text-border-style":"solid","text-border-color":"#000","font-family":"Helvetica Neue, Helvetica, sans-serif","font-style":"normal","font-weight":"normal","font-size":16,"min-zoomed-font-size":0,"text-rotation":"none","source-text-rotation":"none","target-text-rotation":"none",visibility:"visible",display:"element",opacity:1,"z-compound-depth":"auto","z-index-compare":"auto","z-index":0,label:"","text-margin-x":0,"text-margin-y":0,"source-label":"","source-text-offset":0,"source-text-margin-x":0,"source-text-margin-y":0,"target-label":"","target-text-offset":0,"target-text-margin-x":0,"target-text-margin-y":0,"overlay-opacity":0,"overlay-color":"#000","overlay-padding":10,"overlay-shape":"round-rectangle","underlay-opacity":0,"underlay-color":"#000","underlay-padding":10,"underlay-shape":"round-rectangle","transition-property":"none","transition-duration":0,"transition-delay":0,"transition-timing-function":"linear","background-blacken":0,"background-color":"#999","background-fill":"solid","background-opacity":1,"background-image":"none","background-image-crossorigin":"anonymous","background-image-opacity":1,"background-image-containment":"inside","background-image-smoothing":"yes","background-position-x":"50%","background-position-y":"50%","background-offset-x":0,"background-offset-y":0,"background-width-relative-to":"include-padding","background-height-relative-to":"include-padding","background-repeat":"no-repeat","background-fit":"none","background-clip":"node","background-width":"auto","background-height":"auto","border-color":"#000","border-opacity":1,"border-width":0,"border-style":"solid",height:30,width:30,shape:"ellipse","shape-polygon-points":"-1, -1, 1, -1, 1, 1, -1, 1","bounds-expansion":0,"background-gradient-direction":"to-bottom","background-gradient-stop-colors":"#999","background-gradient-stop-positions":"0%",ghost:"no","ghost-offset-y":0,"ghost-offset-x":0,"ghost-opacity":0,padding:0,"padding-relative-to":"width",position:"origin","compound-sizing-wrt-labels":"include","min-width":0,"min-width-bias-left":0,"min-width-bias-right":0,"min-height":0,"min-height-bias-top":0,"min-height-bias-bottom":0},{"pie-size":"100%"},[{name:"pie-{{i}}-background-color",value:"black"},{name:"pie-{{i}}-background-size",value:"0%"},{name:"pie-{{i}}-background-opacity",value:1}].reduce(function(u,l){for(var v=1;v<=Nt.pieBackgroundN;v++){var f=l.name.replace("{{i}}",v),h=l.value;u[f]=h}return u},{}),{"line-style":"solid","line-color":"#999","line-fill":"solid","line-cap":"butt","line-opacity":1,"line-gradient-stop-colors":"#999","line-gradient-stop-positions":"0%","control-point-step-size":40,"control-point-weights":.5,"segment-weights":.5,"segment-distances":20,"taxi-turn":"50%","taxi-turn-min-distance":10,"taxi-direction":"auto","edge-distances":"intersection","curve-style":"haystack","haystack-radius":0,"arrow-scale":1,"loop-direction":"-45deg","loop-sweep":"-90deg","source-distance-from-node":0,"target-distance-from-node":0,"source-endpoint":"outside-to-node","target-endpoint":"outside-to-node","line-dash-pattern":[6,3],"line-dash-offset":0},[{name:"arrow-shape",value:"none"},{name:"arrow-color",value:"#999"},{name:"arrow-fill",value:"filled"}].reduce(function(u,l){return Nt.arrowPrefixes.forEach(function(v){var f=v+"-"+l.name,h=l.value;u[f]=h}),u},{})),r={},a=0;a<this.properties.length;a++){var n=this.properties[a];if(!n.pointsTo){var i=n.name,o=e[i],s=this.parse(i,o);r[i]=s}}return t.defaultProperties=r,t.defaultProperties},Nt.addDefaultStylesheet=function(){this.selector(":parent").css({shape:"rectangle",padding:10,"background-color":"#eee","border-color":"#ccc","border-width":1}).selector("edge").css({width:3}).selector(":loop").css({"curve-style":"bezier"}).selector("edge:compound").css({"curve-style":"bezier","source-endpoint":"outside-to-line","target-endpoint":"outside-to-line"}).selector(":selected").css({"background-color":"#0169D9","line-color":"#0169D9","source-arrow-color":"#0169D9","target-arrow-color":"#0169D9","mid-source-arrow-color":"#0169D9","mid-target-arrow-color":"#0169D9"}).selector(":parent:selected").css({"background-color":"#CCE1F9","border-color":"#aec8e5"}).selector(":active").css({"overlay-color":"black","overlay-padding":10,"overlay-opacity":.25}),this.defaultLength=this.length};var Vn={};Vn.parse=function(t,e,r,a){var n=this;if(Y(e))return n.parseImplWarn(t,e,r,a);var i=a==="mapping"||a===!0||a===!1||a==null?"dontcare":a,o=r?"t":"f",s=""+e,u=uo(t,s,o,i),l=n.propCache=n.propCache||[],v;return(v=l[u])||(v=l[u]=n.parseImplWarn(t,e,r,a)),(r||a==="mapping")&&(v=sr(v),v&&(v.value=sr(v.value))),v},Vn.parseImplWarn=function(t,e,r,a){var n=this.parseImpl(t,e,r,a);return!n&&e!=null&&vt("The style property `".concat(t,": ").concat(e,"` is invalid")),n&&(n.name==="width"||n.name==="height")&&e==="label"&&vt("The style value of `label` is deprecated for `"+n.name+"`"),n},Vn.parseImpl=function(t,e,r,a){var n=this;t=je(t);var i=n.properties[t],o=e,s=n.types;if(!i||e===void 0)return null;i.alias&&(i=i.pointsTo,t=i.name);var u=j(e);u&&(e=e.trim());var l=i.type;if(!l)return null;if(r&&(e===""||e===null))return{name:t,value:e,bypass:!0,deleteBypass:!0};if(Y(e))return{name:t,value:e,strValue:"fn",mapped:s.fn,bypass:r};var v,f;if(!(!u||a||e.length<7||e[1]!=="a")){if(e.length>=7&&e[0]==="d"&&(v=new RegExp(s.data.regex).exec(e))){if(r)return!1;var h=s.data;return{name:t,value:v,strValue:""+e,mapped:h,field:v[1],bypass:r}}else if(e.length>=10&&e[0]==="m"&&(f=new RegExp(s.mapData.regex).exec(e))){if(r||l.multiple)return!1;var c=s.mapData;if(!(l.color||l.number))return!1;var d=this.parse(t,f[4]);if(!d||d.mapped)return!1;var g=this.parse(t,f[5]);if(!g||g.mapped)return!1;if(d.pfValue===g.pfValue||d.strValue===g.strValue)return vt("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+d.strValue+"`"),this.parse(t,d.strValue);if(l.color){var y=d.value,p=g.value,m=y[0]===p[0]&&y[1]===p[1]&&y[2]===p[2]&&(y[3]===p[3]||(y[3]==null||y[3]===1)&&(p[3]==null||p[3]===1));if(m)return!1}return{name:t,value:f,strValue:""+e,mapped:c,field:f[1],fieldMin:parseFloat(f[2]),fieldMax:parseFloat(f[3]),valueMin:d.value,valueMax:g.value,bypass:r}}}if(l.multiple&&a!=="multiple"){var b;if(u?b=e.split(/\s+/):te(e)?b=e:b=[e],l.evenMultiple&&b.length%2!==0)return null;for(var E=[],M=[],A=[],w="",I=!1,C=0;C<b.length;C++){var B=n.parse(t,b[C],r,"multiple");I=I||j(B.value),E.push(B.value),A.push(B.pfValue!=null?B.pfValue:B.value),M.push(B.units),w+=(C>0?" ":"")+B.strValue}return l.validate&&!l.validate(E,M)?null:l.singleEnum&&I?E.length===1&&j(E[0])?{name:t,value:E[0],strValue:E[0],bypass:r}:null:{name:t,value:E,pfValue:A,strValue:w,bypass:r,units:M}}var F=function(){for(var Ce=0;Ce<l.enums.length;Ce++){var Oe=l.enums[Ce];if(Oe===e)return{name:t,value:e,strValue:""+e,bypass:r}}return null};if(l.number){var R,X="px";if(l.units&&(R=l.units),l.implicitUnits&&(X=l.implicitUnits),!l.unitless)if(u){var G="px|em"+(l.allowPercent?"|\\%":"");R&&(G=R);var re=e.match("^("+ct+")("+G+")?$");re&&(e=re[1],R=re[2]||X)}else(!R||l.implicitUnits)&&(R=X);if(e=parseFloat(e),isNaN(e)&&l.enums===void 0)return null;if(isNaN(e)&&l.enums!==void 0)return e=o,F();if(l.integer&&!W(e)||l.min!==void 0&&(e<l.min||l.strictMin&&e===l.min)||l.max!==void 0&&(e>l.max||l.strictMax&&e===l.max))return null;var q={name:t,value:e,strValue:""+e+(R||""),units:R,bypass:r};return l.unitless||R!=="px"&&R!=="em"?q.pfValue=e:q.pfValue=R==="px"||!R?e:this.getEmSizeInPixels()*e,(R==="ms"||R==="s")&&(q.pfValue=R==="ms"?e:1e3*e),(R==="deg"||R==="rad")&&(q.pfValue=R==="rad"?e:Ev(e)),R==="%"&&(q.pfValue=e/100),q}else if(l.propList){var Z=[],ie=""+e;if(ie!=="none"){for(var se=ie.split(/\s*,\s*|\s+/),de=0;de<se.length;de++){var oe=se[de].trim();n.properties[oe]?Z.push(oe):vt("`"+oe+"` is not a valid property name")}if(Z.length===0)return null}return{name:t,value:Z,strValue:Z.length===0?"none":Z.join(" "),bypass:r}}else if(l.color){var ce=au(e);return ce?{name:t,value:ce,pfValue:ce,strValue:"rgb("+ce[0]+","+ce[1]+","+ce[2]+")",bypass:r}:null}else if(l.regex||l.regexes){if(l.enums){var we=F();if(we)return we}for(var Te=l.regexes?l.regexes:[l.regex],Ee=0;Ee<Te.length;Ee++){var ye=new RegExp(Te[Ee]),ae=ye.exec(e);if(ae)return{name:t,value:l.singleRegexMatchValue?ae[1]:ae,strValue:""+e,bypass:r}}return null}else return l.string?{name:t,value:""+e,strValue:""+e,bypass:r}:l.enums?F():null};var Ft=function t(e){if(!(this instanceof t))return new t(e);if(!_e(e)){xt("A style must have a core reference");return}this._private={cy:e,coreStyle:{}},this.length=0,this.resetToDefault()},Gt=Ft.prototype;Gt.instanceString=function(){return"style"},Gt.clear=function(){for(var t=this._private,e=t.cy,r=e.elements(),a=0;a<this.length;a++)this[a]=void 0;return this.length=0,t.contextStyles={},t.propDiffs={},this.cleanElements(r,!0),r.forEach(function(n){var i=n[0]._private;i.styleDirty=!0,i.appliedInitStyle=!1}),this},Gt.resetToDefault=function(){return this.clear(),this.addDefaultStylesheet(),this},Gt.core=function(t){return this._private.coreStyle[t]||this.getDefaultProperty(t)},Gt.selector=function(t){var e=t==="core"?null:new Dr(t),r=this.length++;return this[r]={selector:e,properties:[],mappedProperties:[],index:r},this},Gt.css=function(){var t=this,e=arguments;if(e.length===1)for(var r=e[0],a=0;a<t.properties.length;a++){var n=t.properties[a],i=r[n.name];i===void 0&&(i=r[pt(n.name)]),i!==void 0&&this.cssRule(n.name,i)}else e.length===2&&this.cssRule(e[0],e[1]);return this},Gt.style=Gt.css,Gt.cssRule=function(t,e){var r=this.parse(t,e);if(r){var a=this.length-1;this[a].properties.push(r),this[a].properties[r.name]=r,r.name.match(/pie-(\d+)-background-size/)&&r.value&&(this._private.hasPie=!0),r.mapped&&this[a].mappedProperties.push(r);var n=!this[a].selector;n&&(this._private.coreStyle[r.name]=r)}return this},Gt.append=function(t){return tt(t)?t.appendToStyle(this):te(t)?this.appendFromJson(t):j(t)&&this.appendFromString(t),this},Ft.fromJson=function(t,e){var r=new Ft(t);return r.fromJson(e),r},Ft.fromString=function(t,e){return new Ft(t).fromString(e)},[Bt,qa,Ii,ur,$n,Ri,Nt,Vn].forEach(function(t){Ue(Gt,t)}),Ft.types=Gt.types,Ft.properties=Gt.properties,Ft.propertyGroups=Gt.propertyGroups,Ft.propertyGroupNames=Gt.propertyGroupNames,Ft.propertyGroupKeys=Gt.propertyGroupKeys;var $d={style:function(e){if(e){var r=this.setStyle(e);r.update()}return this._private.style},setStyle:function(e){var r=this._private;return tt(e)?r.style=e.generateStyle(this):te(e)?r.style=Ft.fromJson(this,e):j(e)?r.style=Ft.fromString(this,e):r.style=Ft(this),r.style},updateStyle:function(){this.mutableElements().updateStyle()}},Vd="single",$r={autolock:function(e){if(e!==void 0)this._private.autolock=!!e;else return this._private.autolock;return this},autoungrabify:function(e){if(e!==void 0)this._private.autoungrabify=!!e;else return this._private.autoungrabify;return this},autounselectify:function(e){if(e!==void 0)this._private.autounselectify=!!e;else return this._private.autounselectify;return this},selectionType:function(e){var r=this._private;if(r.selectionType==null&&(r.selectionType=Vd),e!==void 0)(e==="additive"||e==="single")&&(r.selectionType=e);else return r.selectionType;return this},panningEnabled:function(e){if(e!==void 0)this._private.panningEnabled=!!e;else return this._private.panningEnabled;return this},userPanningEnabled:function(e){if(e!==void 0)this._private.userPanningEnabled=!!e;else return this._private.userPanningEnabled;return this},zoomingEnabled:function(e){if(e!==void 0)this._private.zoomingEnabled=!!e;else return this._private.zoomingEnabled;return this},userZoomingEnabled:function(e){if(e!==void 0)this._private.userZoomingEnabled=!!e;else return this._private.userZoomingEnabled;return this},boxSelectionEnabled:function(e){if(e!==void 0)this._private.boxSelectionEnabled=!!e;else return this._private.boxSelectionEnabled;return this},pan:function(){var e=arguments,r=this._private.pan,a,n,i,o,s;switch(e.length){case 0:return r;case 1:if(j(e[0]))return a=e[0],r[a];if(L(e[0])){if(!this._private.panningEnabled)return this;i=e[0],o=i.x,s=i.y,k(o)&&(r.x=o),k(s)&&(r.y=s),this.emit("pan viewport")}break;case 2:if(!this._private.panningEnabled)return this;a=e[0],n=e[1],(a==="x"||a==="y")&&k(n)&&(r[a]=n),this.emit("pan viewport");break}return this.notify("viewport"),this},panBy:function(e,r){var a=arguments,n=this._private.pan,i,o,s,u,l;if(!this._private.panningEnabled)return this;switch(a.length){case 1:L(e)&&(s=a[0],u=s.x,l=s.y,k(u)&&(n.x+=u),k(l)&&(n.y+=l),this.emit("pan viewport"));break;case 2:i=e,o=r,(i==="x"||i==="y")&&k(o)&&(n[i]+=o),this.emit("pan viewport");break}return this.notify("viewport"),this},fit:function(e,r){var a=this.getFitViewport(e,r);if(a){var n=this._private;n.zoom=a.zoom,n.pan=a.pan,this.emit("pan zoom viewport"),this.notify("viewport")}return this},getFitViewport:function(e,r){if(k(e)&&r===void 0&&(r=e,e=void 0),!(!this._private.panningEnabled||!this._private.zoomingEnabled)){var a;if(j(e)){var n=e;e=this.$(n)}else if(Xe(e)){var i=e;a={x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2},a.w=a.x2-a.x1,a.h=a.y2-a.y1}else ge(e)||(e=this.mutableElements());if(!(ge(e)&&e.empty())){a=a||e.boundingBox();var o=this.width(),s=this.height(),u;if(r=k(r)?r:0,!isNaN(o)&&!isNaN(s)&&o>0&&s>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0){u=Math.min((o-2*r)/a.w,(s-2*r)/a.h),u=u>this._private.maxZoom?this._private.maxZoom:u,u=u<this._private.minZoom?this._private.minZoom:u;var l={x:(o-u*(a.x1+a.x2))/2,y:(s-u*(a.y1+a.y2))/2};return{zoom:u,pan:l}}}}},zoomRange:function(e,r){var a=this._private;if(r==null){var n=e;e=n.min,r=n.max}return k(e)&&k(r)&&e<=r?(a.minZoom=e,a.maxZoom=r):k(e)&&r===void 0&&e<=a.maxZoom?a.minZoom=e:k(r)&&e===void 0&&r>=a.minZoom&&(a.maxZoom=r),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var r=this._private,a=r.pan,n=r.zoom,i,o,s=!1;if(r.zoomingEnabled||(s=!0),k(e)?o=e:L(e)&&(o=e.level,e.position!=null?i=dn(e.position,n,a):e.renderedPosition!=null&&(i=e.renderedPosition),i!=null&&!r.panningEnabled&&(s=!0)),o=o>r.maxZoom?r.maxZoom:o,o=o<r.minZoom?r.minZoom:o,s||!k(o)||o===n||i!=null&&(!k(i.x)||!k(i.y)))return null;if(i!=null){var u=a,l=n,v=o,f={x:-v/l*(i.x-u.x)+i.x,y:-v/l*(i.y-u.y)+i.y};return{zoomed:!0,panned:!0,zoom:v,pan:f}}else return{zoomed:!0,panned:!1,zoom:o,pan:a}},zoom:function(e){if(e===void 0)return this._private.zoom;var r=this.getZoomedViewport(e),a=this._private;return r==null||!r.zoomed?this:(a.zoom=r.zoom,r.panned&&(a.pan.x=r.pan.x,a.pan.y=r.pan.y),this.emit("zoom"+(r.panned?" pan":"")+" viewport"),this.notify("viewport"),this)},viewport:function(e){var r=this._private,a=!0,n=!0,i=[],o=!1,s=!1;if(!e)return this;if(k(e.zoom)||(a=!1),L(e.pan)||(n=!1),!a&&!n)return this;if(a){var u=e.zoom;u<r.minZoom||u>r.maxZoom||!r.zoomingEnabled?o=!0:(r.zoom=u,i.push("zoom"))}if(n&&(!o||!e.cancelOnFailedZoom)&&r.panningEnabled){var l=e.pan;k(l.x)&&(r.pan.x=l.x,s=!1),k(l.y)&&(r.pan.y=l.y,s=!1),s||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(e){var r=this.getCenterPan(e);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,r){if(this._private.panningEnabled){if(j(e)){var a=e;e=this.mutableElements().filter(a)}else ge(e)||(e=this.mutableElements());if(e.length!==0){var n=e.boundingBox(),i=this.width(),o=this.height();r=r===void 0?this._private.zoom:r;var s={x:(i-r*(n.x1+n.x2))/2,y:(o-r*(n.y1+n.y2))/2};return s}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,r=e.container;return e.sizeCache=e.sizeCache||(r?function(){var a=D.getComputedStyle(r),n=function(o){return parseFloat(a.getPropertyValue(o))};return{width:r.clientWidth-n("padding-left")-n("padding-right"),height:r.clientHeight-n("padding-top")-n("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,r=this._private.zoom,a=this.renderedExtent(),n={x1:(a.x1-e.x)/r,x2:(a.x2-e.x)/r,y1:(a.y1-e.y)/r,y2:(a.y2-e.y)/r};return n.w=n.x2-n.x1,n.h=n.y2-n.y1,n},renderedExtent:function(){var e=this.width(),r=this.height();return{x1:0,y1:0,x2:e,y2:r,w:e,h:r}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};$r.centre=$r.center,$r.autolockNodes=$r.autolock,$r.autoungrabifyNodes=$r.autoungrabify;var Ka={data:ft.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:ft.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:ft.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ft.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Ka.attr=Ka.data,Ka.removeAttr=Ka.removeData;var Za=function(e){var r=this;e=Ue({},e);var a=e.container;a&&!fe(a)&&fe(a[0])&&(a=a[0]);var n=a?a._cyreg:null;n=n||{},n&&n.cy&&(n.cy.destroy(),n={});var i=n.readies=n.readies||[];a&&(a._cyreg=n),n.cy=r;var o=D!==void 0&&a!==void 0&&!e.headless,s=e;s.layout=Ue({name:o?"grid":"null"},s.layout),s.renderer=Ue({name:o?"canvas":"null"},s.renderer);var u=function(d,g,y){return g!==void 0?g:y!==void 0?y:d},l=this._private={container:a,ready:!1,options:s,elements:new Ot(this),listeners:[],aniEles:new Ot(this),data:s.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:u(!0,s.zoomingEnabled),userZoomingEnabled:u(!0,s.userZoomingEnabled),panningEnabled:u(!0,s.panningEnabled),userPanningEnabled:u(!0,s.userPanningEnabled),boxSelectionEnabled:u(!0,s.boxSelectionEnabled),autolock:u(!1,s.autolock,s.autolockNodes),autoungrabify:u(!1,s.autoungrabify,s.autoungrabifyNodes),autounselectify:u(!1,s.autounselectify),styleEnabled:s.styleEnabled===void 0?o:s.styleEnabled,zoom:k(s.zoom)?s.zoom:1,pan:{x:L(s.pan)&&k(s.pan.x)?s.pan.x:0,y:L(s.pan)&&k(s.pan.y)?s.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:u(250,s.multiClickDebounceTime)};this.createEmitter(),this.selectionType(s.selectionType),this.zoomRange({min:s.minZoom,max:s.maxZoom});var v=function(d,g){var y=d.some(rt);if(y)return ia.all(d).then(g);g(d)};l.styleEnabled&&r.setStyle([]);var f=Ue({},s,s.renderer);r.initRenderer(f);var h=function(d,g,y){r.notifications(!1);var p=r.mutableElements();p.length>0&&p.remove(),d!=null&&(L(d)||te(d))&&r.add(d),r.one("layoutready",function(b){r.notifications(!0),r.emit(b),r.one("load",g),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",y),r.emit("done")});var m=Ue({},r._private.options.layout);m.eles=r.elements(),r.layout(m).run()};v([s.style,s.elements],function(c){var d=c[0],g=c[1];l.styleEnabled&&r.style().append(d),h(g,function(){r.startAnimationLoop(),l.ready=!0,Y(s.ready)&&r.on("ready",s.ready);for(var y=0;y<i.length;y++){var p=i[y];r.on("ready",p)}n&&(n.readies=[]),r.emit("ready")},s.done)})},_n=Za.prototype;Ue(_n,{instanceString:function(){return"core"},isReady:function(){return this._private.ready},destroyed:function(){return this._private.destroyed},ready:function(e){return this.isReady()?this.emitter().emit("ready",[],e):this.on("ready",e),this},destroy:function(){var e=this;if(!e.destroyed())return e.stopAnimationLoop(),e.destroyRenderer(),this.emit("destroy"),e._private.destroyed=!0,e},hasElementWithId:function(e){return this._private.elements.hasElementWithId(e)},getElementById:function(e){return this._private.elements.getElementById(e)},hasCompoundNodes:function(){return this._private.hasCompoundNodes},headless:function(){return this._private.renderer.isHeadless()},styleEnabled:function(){return this._private.styleEnabled},addToPool:function(e){return this._private.elements.merge(e),this},removeFromPool:function(e){return this._private.elements.unmerge(e),this},container:function(){return this._private.container||null},mount:function(e){if(e!=null){var r=this,a=r._private,n=a.options;return!fe(e)&&fe(e[0])&&(e=e[0]),r.stopAnimationLoop(),r.destroyRenderer(),a.container=e,a.styleEnabled=!0,r.invalidateSize(),r.initRenderer(Ue({},n,n.renderer,{name:n.renderer.name==="null"?"canvas":n.renderer.name})),r.startAnimationLoop(),r.style(n.style),r.emit("mount"),r}},unmount:function(){var e=this;return e.stopAnimationLoop(),e.destroyRenderer(),e.initRenderer({name:"null"}),e.emit("unmount"),e},options:function(){return sr(this._private.options)},json:function(e){var r=this,a=r._private,n=r.mutableElements(),i=function(E){return r.getElementById(E.id())};if(L(e)){if(r.startBatch(),e.elements){var o={},s=function(E,M){for(var A=[],w=[],I=0;I<E.length;I++){var C=E[I];if(!C.data.id){vt("cy.json() cannot handle elements without an ID attribute");continue}var B=""+C.data.id,F=r.getElementById(B);o[B]=!0,F.length!==0?w.push({ele:F,json:C}):(M&&(C.group=M),A.push(C))}r.add(A);for(var R=0;R<w.length;R++){var X=w[R],G=X.ele,re=X.json;G.json(re)}};if(te(e.elements))s(e.elements);else for(var u=["nodes","edges"],l=0;l<u.length;l++){var v=u[l],f=e.elements[v];te(f)&&s(f,v)}var h=r.collection();n.filter(function(b){return!o[b.id()]}).forEach(function(b){b.isParent()?h.merge(b):b.remove()}),h.forEach(function(b){return b.children().move({parent:null})}),h.forEach(function(b){return i(b).remove()})}e.style&&r.style(e.style),e.zoom!=null&&e.zoom!==a.zoom&&r.zoom(e.zoom),e.pan&&(e.pan.x!==a.pan.x||e.pan.y!==a.pan.y)&&r.pan(e.pan),e.data&&r.data(e.data);for(var c=["minZoom","maxZoom","zoomingEnabled","userZoomingEnabled","panningEnabled","userPanningEnabled","boxSelectionEnabled","autolock","autoungrabify","autounselectify","multiClickDebounceTime"],d=0;d<c.length;d++){var g=c[d];e[g]!=null&&r[g](e[g])}return r.endBatch(),this}else{var y=!!e,p={};y?p.elements=this.elements().map(function(b){return b.json()}):(p.elements={},n.forEach(function(b){var E=b.group();p.elements[E]||(p.elements[E]=[]),p.elements[E].push(b.json())})),this._private.styleEnabled&&(p.style=r.style().json()),p.data=sr(r.data());var m=a.options;return p.zoomingEnabled=a.zoomingEnabled,p.userZoomingEnabled=a.userZoomingEnabled,p.zoom=a.zoom,p.minZoom=a.minZoom,p.maxZoom=a.maxZoom,p.panningEnabled=a.panningEnabled,p.userPanningEnabled=a.userPanningEnabled,p.pan=sr(a.pan),p.boxSelectionEnabled=a.boxSelectionEnabled,p.renderer=sr(m.renderer),p.hideEdgesOnViewport=m.hideEdgesOnViewport,p.textureOnViewport=m.textureOnViewport,p.wheelSensitivity=m.wheelSensitivity,p.motionBlur=m.motionBlur,p.multiClickDebounceTime=m.multiClickDebounceTime,p}}}),_n.$id=_n.getElementById,[Nd,Pd,Us,Ni,Gn,Fd,Mi,zn,$d,$r,Ka].forEach(function(t){Ue(_n,t)});var _d={fit:!0,directed:!1,padding:30,circle:!1,grid:!1,spacingFactor:1.75,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,roots:void 0,maximal:!1,depthSort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}},pa=function(e){return e.scratch("breadthfirst")},Ys=function(e,r){return e.scratch("breadthfirst",r)};function Hs(t){this.options=Ue({},_d,t)}Hs.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=a.nodes().filter(function(Re){return!Re.isParent()}),i=a,o=e.directed,s=e.maximal||e.maximalAdjustments>0,u=Ut(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),l;if(ge(e.roots))l=e.roots;else if(te(e.roots)){for(var v=[],f=0;f<e.roots.length;f++){var h=e.roots[f],c=r.getElementById(h);v.push(c)}l=r.collection(v)}else if(j(e.roots))l=r.$(e.roots);else if(o)l=n.roots();else{var d=a.components();l=r.collection();for(var g=function(Me){var Ve=d[Me],Fe=Ve.maxDegree(!1),ke=Ve.filter(function(ze){return ze.degree(!1)===Fe});l=l.add(ke)},y=0;y<d.length;y++)g(y)}var p=[],m={},b=function(Me,Ve){p[Ve]==null&&(p[Ve]=[]);var Fe=p[Ve].length;p[Ve].push(Me),Ys(Me,{index:Fe,depth:Ve})},E=function(Me,Ve){var Fe=pa(Me),ke=Fe.depth,ze=Fe.index;p[ke][ze]=null,b(Me,Ve)};i.bfs({roots:l,directed:e.directed,visit:function(Me,Ve,Fe,ke,ze){var et=Me[0],qe=et.id();b(et,ze),m[qe]=!0}});for(var M=[],A=0;A<n.length;A++){var w=n[A];m[w.id()]||M.push(w)}var I=function(Me){for(var Ve=p[Me],Fe=0;Fe<Ve.length;Fe++){var ke=Ve[Fe];if(ke==null){Ve.splice(Fe,1),Fe--;continue}Ys(ke,{depth:Me,index:Fe})}},C=function(){for(var Me=0;Me<p.length;Me++)I(Me)},B=function(Me,Ve){for(var Fe=pa(Me),ke=Me.incomers().filter(function(N){return N.isNode()&&a.has(N)}),ze=-1,et=Me.id(),qe=0;qe<ke.length;qe++){var Ye=ke[qe],Se=pa(Ye);ze=Math.max(ze,Se.depth)}return Fe.depth<=ze?Ve[et]?null:(E(Me,ze+1),Ve[et]=!0,!0):!1};if(o&&s){var F=[],R={},X=function(Me){return F.push(Me)},G=function(){return F.shift()};for(n.forEach(function(Re){return F.push(Re)});F.length>0;){var re=G(),q=B(re,R);if(q)re.outgoers().filter(function(Re){return Re.isNode()&&a.has(Re)}).forEach(X);else if(q===null){vt("Detected double maximal shift for node `"+re.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}C();var Z=0;if(e.avoidOverlap)for(var ie=0;ie<n.length;ie++){var se=n[ie],de=se.layoutDimensions(e),oe=de.w,ce=de.h;Z=Math.max(Z,oe,ce)}var we={},Te=function(Me){if(we[Me.id()])return we[Me.id()];for(var Ve=pa(Me).depth,Fe=Me.neighborhood(),ke=0,ze=0,et=0;et<Fe.length;et++){var qe=Fe[et];if(!(qe.isEdge()||qe.isParent()||!n.has(qe))){var Ye=pa(qe);if(Ye!=null){var Se=Ye.index,N=Ye.depth;if(!(Se==null||N==null)){var ue=p[N].length;N<Ve&&(ke+=Se/ue,ze++)}}}}return ze=Math.max(1,ze),ke=ke/ze,ze===0&&(ke=0),we[Me.id()]=ke,ke},Ee=function(Me,Ve){var Fe=Te(Me),ke=Te(Ve),ze=Fe-ke;return ze===0?Ji(Me.id(),Ve.id()):ze};e.depthSort!==void 0&&(Ee=e.depthSort);for(var ye=0;ye<p.length;ye++)p[ye].sort(Ee),I(ye);for(var ae=[],xe=0;xe<M.length;xe++)ae.push(M[xe]);p.unshift(ae),C();for(var Ce=0,Oe=0;Oe<p.length;Oe++)Ce=Math.max(p[Oe].length,Ce);var Ie={x:u.x1+u.w/2,y:u.x1+u.h/2},He=p.reduce(function(Re,Me){return Math.max(Re,Me.length)},0),We=function(Me){var Ve=pa(Me),Fe=Ve.depth,ke=Ve.index,ze=p[Fe].length,et=Math.max(u.w/((e.grid?He:ze)+1),Z),qe=Math.max(u.h/(p.length+1),Z),Ye=Math.min(u.w/2/p.length,u.h/2/p.length);if(Ye=Math.max(Ye,Z),e.circle){var N=Ye*Fe+Ye-(p.length>0&&p[0].length<=3?Ye/2:0),ue=2*Math.PI/p[Fe].length*ke;return Fe===0&&p[0].length===1&&(N=1),{x:Ie.x+N*Math.cos(ue),y:Ie.y+N*Math.sin(ue)}}else{var Se={x:Ie.x+(ke+1-(ze+1)/2)*et,y:(Fe+1)*qe};return Se}};return a.nodes().layoutPositions(this,e,We),this};var Ud={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function Xs(t){this.options=Ue({},Ud,t)}Xs.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,i=a.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));for(var o=Ut(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},u=e.sweep===void 0?2*Math.PI-2*Math.PI/i.length:e.sweep,l=u/Math.max(1,i.length-1),v,f=0,h=0;h<i.length;h++){var c=i[h],d=c.layoutDimensions(e),g=d.w,y=d.h;f=Math.max(f,g,y)}if(k(e.radius)?v=e.radius:i.length<=1?v=0:v=Math.min(o.h,o.w)/2-f,i.length>1&&e.avoidOverlap){f*=1.75;var p=Math.cos(l)-Math.cos(0),m=Math.sin(l)-Math.sin(0),b=Math.sqrt(f*f/(p*p+m*m));v=Math.max(b,v)}var E=function(A,w){var I=e.startAngle+w*l*(n?1:-1),C=v*Math.cos(I),B=v*Math.sin(I),F={x:s.x+C,y:s.y+B};return F};return a.nodes().layoutPositions(this,e,E),this};var Yd={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function Ws(t){this.options=Ue({},Yd,t)}Ws.prototype.run=function(){for(var t=this.options,e=t,r=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=t.cy,n=e.eles,i=n.nodes().not(":parent"),o=Ut(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},u=[],l=0,v=0;v<i.length;v++){var f=i[v],h=void 0;h=e.concentric(f),u.push({value:h,node:f}),f._private.scratch.concentric=h}i.updateStyle();for(var c=0;c<i.length;c++){var d=i[c],g=d.layoutDimensions(e);l=Math.max(l,g.w,g.h)}u.sort(function(Re,Me){return Me.value-Re.value});for(var y=e.levelWidth(i),p=[[]],m=p[0],b=0;b<u.length;b++){var E=u[b];if(m.length>0){var M=Math.abs(m[0].value-E.value);M>=y&&(m=[],p.push(m))}m.push(E)}var A=l+e.minNodeSpacing;if(!e.avoidOverlap){var w=p.length>0&&p[0].length>1,I=Math.min(o.w,o.h)/2-A,C=I/(p.length+w?1:0);A=Math.min(A,C)}for(var B=0,F=0;F<p.length;F++){var R=p[F],X=e.sweep===void 0?2*Math.PI-2*Math.PI/R.length:e.sweep,G=R.dTheta=X/Math.max(1,R.length-1);if(R.length>1&&e.avoidOverlap){var re=Math.cos(G)-Math.cos(0),q=Math.sin(G)-Math.sin(0),Z=Math.sqrt(A*A/(re*re+q*q));B=Math.max(Z,B)}R.r=B,B+=A}if(e.equidistant){for(var ie=0,se=0,de=0;de<p.length;de++){var oe=p[de],ce=oe.r-se;ie=Math.max(ie,ce)}se=0;for(var we=0;we<p.length;we++){var Te=p[we];we===0&&(se=Te.r),Te.r=se,se+=ie}}for(var Ee={},ye=0;ye<p.length;ye++)for(var ae=p[ye],xe=ae.dTheta,Ce=ae.r,Oe=0;Oe<ae.length;Oe++){var Ie=ae[Oe],He=e.startAngle+(r?1:-1)*xe*Oe,We={x:s.x+Ce*Math.cos(He),y:s.y+Ce*Math.sin(He)};Ee[Ie.node.id()]=We}return n.nodes().layoutPositions(this,e,function(Re){var Me=Re.id();return Ee[Me]}),this};var ki,Hd={ready:function(){},stop:function(){},animate:!0,animationEasing:void 0,animationDuration:void 0,animateFilter:function(e,r){return!0},animationThreshold:250,refresh:20,fit:!0,padding:30,boundingBox:void 0,nodeDimensionsIncludeLabels:!1,randomize:!1,componentSpacing:40,nodeRepulsion:function(e){return 2048},nodeOverlap:4,idealEdgeLength:function(e){return 32},edgeElasticity:function(e){return 32},nestingFactor:1.2,gravity:1,numIter:1e3,initialTemp:1e3,coolingFactor:.99,minTemp:1};function Un(t){this.options=Ue({},Hd,t),this.options.layout=this}Un.prototype.run=function(){var t=this.options,e=t.cy,r=this;r.stopped=!1,(t.animate===!0||t.animate===!1)&&r.emit({type:"layoutstart",layout:r}),t.debug===!0?ki=!0:ki=!1;var a=Xd(e,r,t);ki&&Kd(a),t.randomize&&Zd(a);var n=dr(),i=function(){Qd(a,e,t),t.fit===!0&&e.fit(t.padding)},o=function(h){return!(r.stopped||h>=t.numIter||(Jd(a,t),a.temperature=a.temperature*t.coolingFactor,a.temperature<t.minTemp))},s=function(){if(t.animate===!0||t.animate===!1)i(),r.one("layoutstop",t.stop),r.emit({type:"layoutstop",layout:r});else{var h=t.eles.nodes(),c=qs(a,t,h);h.layoutPositions(r,t,c)}},u=0,l=!0;if(t.animate===!0){var v=function f(){for(var h=0;l&&h<t.refresh;)l=o(u),u++,h++;if(!l)Zs(a,t),s();else{var c=dr();c-n>=t.animationThreshold&&i(),vn(f)}};v()}else{for(;l;)l=o(u),u++;Zs(a,t),s()}return this},Un.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},Un.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var Xd=function(e,r,a){for(var n=a.eles.edges(),i=a.eles.nodes(),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:n.size(),temperature:a.initialTemp,clientWidth:e.width(),clientHeight:e.width(),boundingBox:Ut(a.boundingBox?a.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()})},s=a.eles.components(),u={},l=0;l<s.length;l++)for(var v=s[l],f=0;f<v.length;f++){var h=v[f];u[h.id()]=l}for(var l=0;l<o.nodeSize;l++){var c=i[l],d=c.layoutDimensions(a),g={};g.isLocked=c.locked(),g.id=c.data("id"),g.parentId=c.data("parent"),g.cmptId=u[c.id()],g.children=[],g.positionX=c.position("x"),g.positionY=c.position("y"),g.offsetX=0,g.offsetY=0,g.height=d.w,g.width=d.h,g.maxX=g.positionX+g.width/2,g.minX=g.positionX-g.width/2,g.maxY=g.positionY+g.height/2,g.minY=g.positionY-g.height/2,g.padLeft=parseFloat(c.style("padding")),g.padRight=parseFloat(c.style("padding")),g.padTop=parseFloat(c.style("padding")),g.padBottom=parseFloat(c.style("padding")),g.nodeRepulsion=Y(a.nodeRepulsion)?a.nodeRepulsion(c):a.nodeRepulsion,o.layoutNodes.push(g),o.idToIndex[g.id]=l}for(var y=[],p=0,m=-1,b=[],l=0;l<o.nodeSize;l++){var c=o.layoutNodes[l],E=c.parentId;E!=null?o.layoutNodes[o.idToIndex[E]].children.push(c.id):(y[++m]=c.id,b.push(c.id))}for(o.graphSet.push(b);p<=m;){var M=y[p++],A=o.idToIndex[M],h=o.layoutNodes[A],w=h.children;if(w.length>0){o.graphSet.push(w);for(var l=0;l<w.length;l++)y[++m]=w[l]}}for(var l=0;l<o.graphSet.length;l++)for(var I=o.graphSet[l],f=0;f<I.length;f++){var C=o.idToIndex[I[f]];o.indexToGraph[C]=l}for(var l=0;l<o.edgeSize;l++){var B=n[l],F={};F.id=B.data("id"),F.sourceId=B.data("source"),F.targetId=B.data("target");var R=Y(a.idealEdgeLength)?a.idealEdgeLength(B):a.idealEdgeLength,X=Y(a.edgeElasticity)?a.edgeElasticity(B):a.edgeElasticity,G=o.idToIndex[F.sourceId],re=o.idToIndex[F.targetId],q=o.indexToGraph[G],Z=o.indexToGraph[re];if(q!=Z){for(var ie=Wd(F.sourceId,F.targetId,o),se=o.graphSet[ie],de=0,g=o.layoutNodes[G];se.indexOf(g.id)===-1;)g=o.layoutNodes[o.idToIndex[g.parentId]],de++;for(g=o.layoutNodes[re];se.indexOf(g.id)===-1;)g=o.layoutNodes[o.idToIndex[g.parentId]],de++;R*=de*a.nestingFactor}F.idealLength=R,F.elasticity=X,o.layoutEdges.push(F)}return o},Wd=function(e,r,a){var n=qd(e,r,0,a);return 2>n.count?0:n.graph},qd=function t(e,r,a,n){var i=n.graphSet[a];if(-1<i.indexOf(e)&&-1<i.indexOf(r))return{count:2,graph:a};for(var o=0,s=0;s<i.length;s++){var u=i[s],l=n.idToIndex[u],v=n.layoutNodes[l].children;if(v.length!==0){var f=n.indexToGraph[n.idToIndex[v[0]]],h=t(e,r,f,n);if(h.count!==0)if(h.count===1){if(o++,o===2)break}else return h}}return{count:o,graph:a}},Kd,Zd=function(e,r){for(var a=e.clientWidth,n=e.clientHeight,i=0;i<e.nodeSize;i++){var o=e.layoutNodes[i];o.children.length===0&&!o.isLocked&&(o.positionX=Math.random()*a,o.positionY=Math.random()*n)}},qs=function(e,r,a){var n=e.boundingBox,i={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0};return r.boundingBox&&(a.forEach(function(o){var s=e.layoutNodes[e.idToIndex[o.data("id")]];i.x1=Math.min(i.x1,s.positionX),i.x2=Math.max(i.x2,s.positionX),i.y1=Math.min(i.y1,s.positionY),i.y2=Math.max(i.y2,s.positionY)}),i.w=i.x2-i.x1,i.h=i.y2-i.y1),function(o,s){var u=e.layoutNodes[e.idToIndex[o.data("id")]];if(r.boundingBox){var l=(u.positionX-i.x1)/i.w,v=(u.positionY-i.y1)/i.h;return{x:n.x1+l*n.w,y:n.y1+v*n.h}}else return{x:u.positionX,y:u.positionY}}},Qd=function(e,r,a){var n=a.layout,i=a.eles.nodes(),o=qs(e,a,i);i.positions(o),e.ready!==!0&&(e.ready=!0,n.one("layoutready",a.ready),n.emit({type:"layoutready",layout:this}))},Jd=function(e,r,a){jd(e,r),rg(e),ag(e,r),ng(e),ig(e)},jd=function(e,r){for(var a=0;a<e.graphSet.length;a++)for(var n=e.graphSet[a],i=n.length,o=0;o<i;o++)for(var s=e.layoutNodes[e.idToIndex[n[o]]],u=o+1;u<i;u++){var l=e.layoutNodes[e.idToIndex[n[u]]];eg(s,l,e,r)}},Ks=function(e){return-e+2*e*Math.random()},eg=function(e,r,a,n){var i=e.cmptId,o=r.cmptId;if(!(i!==o&&!a.isCompound)){var s=r.positionX-e.positionX,u=r.positionY-e.positionY,l=1;s===0&&u===0&&(s=Ks(l),u=Ks(l));var v=tg(e,r,s,u);if(v>0)var f=n.nodeOverlap*v,h=Math.sqrt(s*s+u*u),c=f*s/h,d=f*u/h;else var g=Yn(e,s,u),y=Yn(r,-1*s,-1*u),p=y.x-g.x,m=y.y-g.y,b=p*p+m*m,h=Math.sqrt(b),f=(e.nodeRepulsion+r.nodeRepulsion)/b,c=f*p/h,d=f*m/h;e.isLocked||(e.offsetX-=c,e.offsetY-=d),r.isLocked||(r.offsetX+=c,r.offsetY+=d)}},tg=function(e,r,a,n){if(a>0)var i=e.maxX-r.minX;else var i=r.maxX-e.minX;if(n>0)var o=e.maxY-r.minY;else var o=r.maxY-e.minY;return i>=0&&o>=0?Math.sqrt(i*i+o*o):0},Yn=function(e,r,a){var n=e.positionX,i=e.positionY,o=e.height||1,s=e.width||1,u=a/r,l=o/s,v={};return r===0&&0<a||r===0&&0>a?(v.x=n,v.y=i+o/2,v):0<r&&-1*l<=u&&u<=l?(v.x=n+s/2,v.y=i+s*a/2/r,v):0>r&&-1*l<=u&&u<=l?(v.x=n-s/2,v.y=i-s*a/2/r,v):0<a&&(u<=-1*l||u>=l)?(v.x=n+o*r/2/a,v.y=i+o/2,v):(0>a&&(u<=-1*l||u>=l)&&(v.x=n-o*r/2/a,v.y=i-o/2),v)},rg=function(e,r){for(var a=0;a<e.edgeSize;a++){var n=e.layoutEdges[a],i=e.idToIndex[n.sourceId],o=e.layoutNodes[i],s=e.idToIndex[n.targetId],u=e.layoutNodes[s],l=u.positionX-o.positionX,v=u.positionY-o.positionY;if(!(l===0&&v===0)){var f=Yn(o,l,v),h=Yn(u,-1*l,-1*v),c=h.x-f.x,d=h.y-f.y,g=Math.sqrt(c*c+d*d),y=Math.pow(n.idealLength-g,2)/n.elasticity;if(g!==0)var p=y*c/g,m=y*d/g;else var p=0,m=0;o.isLocked||(o.offsetX+=p,o.offsetY+=m),u.isLocked||(u.offsetX-=p,u.offsetY-=m)}}},ag=function(e,r){if(r.gravity!==0)for(var a=1,n=0;n<e.graphSet.length;n++){var i=e.graphSet[n],o=i.length;if(n===0)var s=e.clientHeight/2,u=e.clientWidth/2;else var l=e.layoutNodes[e.idToIndex[i[0]]],v=e.layoutNodes[e.idToIndex[l.parentId]],s=v.positionX,u=v.positionY;for(var f=0;f<o;f++){var h=e.layoutNodes[e.idToIndex[i[f]]];if(!h.isLocked){var c=s-h.positionX,d=u-h.positionY,g=Math.sqrt(c*c+d*d);if(g>a){var y=r.gravity*c/g,p=r.gravity*d/g;h.offsetX+=y,h.offsetY+=p}}}}},ng=function(e,r){var a=[],n=0,i=-1;for(a.push.apply(a,e.graphSet[0]),i+=e.graphSet[0].length;n<=i;){var o=a[n++],s=e.idToIndex[o],u=e.layoutNodes[s],l=u.children;if(0<l.length&&!u.isLocked){for(var v=u.offsetX,f=u.offsetY,h=0;h<l.length;h++){var c=e.layoutNodes[e.idToIndex[l[h]]];c.offsetX+=v,c.offsetY+=f,a[++i]=l[h]}u.offsetX=0,u.offsetY=0}}},ig=function(e,r){for(var a=0;a<e.nodeSize;a++){var n=e.layoutNodes[a];0<n.children.length&&(n.maxX=void 0,n.minX=void 0,n.maxY=void 0,n.minY=void 0)}for(var a=0;a<e.nodeSize;a++){var n=e.layoutNodes[a];if(!(0<n.children.length||n.isLocked)){var i=og(n.offsetX,n.offsetY,e.temperature);n.positionX+=i.x,n.positionY+=i.y,n.offsetX=0,n.offsetY=0,n.minX=n.positionX-n.width,n.maxX=n.positionX+n.width,n.minY=n.positionY-n.height,n.maxY=n.positionY+n.height,sg(n,e)}}for(var a=0;a<e.nodeSize;a++){var n=e.layoutNodes[a];0<n.children.length&&!n.isLocked&&(n.positionX=(n.maxX+n.minX)/2,n.positionY=(n.maxY+n.minY)/2,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY)}},og=function(e,r,a){var n=Math.sqrt(e*e+r*r);if(n>a)var i={x:a*e/n,y:a*r/n};else var i={x:e,y:r};return i},sg=function t(e,r){var a=e.parentId;if(a!=null){var n=r.layoutNodes[r.idToIndex[a]],i=!1;if((n.maxX==null||e.maxX+n.padRight>n.maxX)&&(n.maxX=e.maxX+n.padRight,i=!0),(n.minX==null||e.minX-n.padLeft<n.minX)&&(n.minX=e.minX-n.padLeft,i=!0),(n.maxY==null||e.maxY+n.padBottom>n.maxY)&&(n.maxY=e.maxY+n.padBottom,i=!0),(n.minY==null||e.minY-n.padTop<n.minY)&&(n.minY=e.minY-n.padTop,i=!0),i)return t(n,r)}},Zs=function(e,r){for(var a=e.layoutNodes,n=[],i=0;i<a.length;i++){var o=a[i],s=o.cmptId,u=n[s]=n[s]||[];u.push(o)}for(var l=0,i=0;i<n.length;i++){var v=n[i];if(v){v.x1=1/0,v.x2=-1/0,v.y1=1/0,v.y2=-1/0;for(var f=0;f<v.length;f++){var h=v[f];v.x1=Math.min(v.x1,h.positionX-h.width/2),v.x2=Math.max(v.x2,h.positionX+h.width/2),v.y1=Math.min(v.y1,h.positionY-h.height/2),v.y2=Math.max(v.y2,h.positionY+h.height/2)}v.w=v.x2-v.x1,v.h=v.y2-v.y1,l+=v.w*v.h}}n.sort(function(m,b){return b.w*b.h-m.w*m.h});for(var c=0,d=0,g=0,y=0,p=Math.sqrt(l)*e.clientWidth/e.clientHeight,i=0;i<n.length;i++){var v=n[i];if(v){for(var f=0;f<v.length;f++){var h=v[f];h.isLocked||(h.positionX+=c-v.x1,h.positionY+=d-v.y1)}c+=v.w+r.componentSpacing,g+=v.w+r.componentSpacing,y=Math.max(y,v.h),g>p&&(d+=y+r.componentSpacing,c=0,g=0,y=0)}}},lg={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function Qs(t){this.options=Ue({},lg,t)}Qs.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=a.nodes().not(":parent");e.sort&&(n=n.sort(e.sort));var i=Ut(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(i.h===0||i.w===0)a.nodes().layoutPositions(this,e,function(we){return{x:i.x1,y:i.y1}});else{var o=n.size(),s=Math.sqrt(o*i.h/i.w),u=Math.round(s),l=Math.round(i.w/i.h*s),v=function(Te){if(Te==null)return Math.min(u,l);var Ee=Math.min(u,l);Ee==u?u=Te:l=Te},f=function(Te){if(Te==null)return Math.max(u,l);var Ee=Math.max(u,l);Ee==u?u=Te:l=Te},h=e.rows,c=e.cols!=null?e.cols:e.columns;if(h!=null&&c!=null)u=h,l=c;else if(h!=null&&c==null)u=h,l=Math.ceil(o/u);else if(h==null&&c!=null)l=c,u=Math.ceil(o/l);else if(l*u>o){var d=v(),g=f();(d-1)*g>=o?v(d-1):(g-1)*d>=o&&f(g-1)}else for(;l*u<o;){var y=v(),p=f();(p+1)*y>=o?f(p+1):v(y+1)}var m=i.w/l,b=i.h/u;if(e.condense&&(m=0,b=0),e.avoidOverlap)for(var E=0;E<n.length;E++){var M=n[E],A=M._private.position;(A.x==null||A.y==null)&&(A.x=0,A.y=0);var w=M.layoutDimensions(e),I=e.avoidOverlapPadding,C=w.w+I,B=w.h+I;m=Math.max(m,C),b=Math.max(b,B)}for(var F={},R=function(Te,Ee){return!!F["c-"+Te+"-"+Ee]},X=function(Te,Ee){F["c-"+Te+"-"+Ee]=!0},G=0,re=0,q=function(){re++,re>=l&&(re=0,G++)},Z={},ie=0;ie<n.length;ie++){var se=n[ie],de=e.position(se);if(de&&(de.row!==void 0||de.col!==void 0)){var oe={row:de.row,col:de.col};if(oe.col===void 0)for(oe.col=0;R(oe.row,oe.col);)oe.col++;else if(oe.row===void 0)for(oe.row=0;R(oe.row,oe.col);)oe.row++;Z[se.id()]=oe,X(oe.row,oe.col)}}var ce=function(Te,Ee){var ye,ae;if(Te.locked()||Te.isParent())return!1;var xe=Z[Te.id()];if(xe)ye=xe.col*m+m/2+i.x1,ae=xe.row*b+b/2+i.y1;else{for(;R(G,re);)q();ye=re*m+m/2+i.x1,ae=G*b+b/2+i.y1,X(G,re),q()}return{x:ye,y:ae}};n.layoutPositions(this,e,ce)}return this};var ug={ready:function(){},stop:function(){}};function Pi(t){this.options=Ue({},ug,t)}Pi.prototype.run=function(){var t=this.options,e=t.eles,r=this;return t.cy,r.emit("layoutstart"),e.nodes().positions(function(){return{x:0,y:0}}),r.one("layoutready",t.ready),r.emit("layoutready"),r.one("layoutstop",t.stop),r.emit("layoutstop"),this},Pi.prototype.stop=function(){return this};var vg={positions:void 0,zoom:void 0,pan:void 0,fit:!0,padding:30,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function Js(t){this.options=Ue({},vg,t)}Js.prototype.run=function(){var t=this.options,e=t.eles,r=e.nodes(),a=Y(t.positions);function n(i){if(t.positions==null)return gv(i.position());if(a)return t.positions(i);var o=t.positions[i._private.data.id];return o??null}return r.layoutPositions(this,t,function(i,o){var s=n(i);return i.locked()||s==null?!1:s}),this};var fg={fit:!0,padding:30,boundingBox:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function js(t){this.options=Ue({},fg,t)}js.prototype.run=function(){var t=this.options,e=t.cy,r=t.eles,a=Ut(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),n=function(o,s){return{x:a.x1+Math.round(Math.random()*a.w),y:a.y1+Math.round(Math.random()*a.h)}};return r.nodes().layoutPositions(this,t,n),this};var hg=[{name:"breadthfirst",impl:Hs},{name:"circle",impl:Xs},{name:"concentric",impl:Ws},{name:"cose",impl:Un},{name:"grid",impl:Qs},{name:"null",impl:Pi},{name:"preset",impl:Js},{name:"random",impl:js}];function el(t){this.options=t,this.notifications=0}var tl=function(){},rl=function(){throw new Error("A headless instance can not render images")};el.prototype={recalculateRenderedStyle:tl,notify:function(){this.notifications++},init:tl,isHeadless:function(){return!0},png:rl,jpg:rl};var Bi={};Bi.arrowShapeWidth=.3,Bi.registerArrowShapes=function(){var t=this.arrowShapes={},e=this,r=function(l,v,f,h,c,d,g){var y=c.x-f/2-g,p=c.x+f/2+g,m=c.y-f/2-g,b=c.y+f/2+g,E=y<=l&&l<=p&&m<=v&&v<=b;return E},a=function(l,v,f,h,c){var d=l*Math.cos(h)-v*Math.sin(h),g=l*Math.sin(h)+v*Math.cos(h),y=d*f,p=g*f,m=y+c.x,b=p+c.y;return{x:m,y:b}},n=function(l,v,f,h){for(var c=[],d=0;d<l.length;d+=2){var g=l[d],y=l[d+1];c.push(a(g,y,v,f,h))}return c},i=function(l){for(var v=[],f=0;f<l.length;f++){var h=l[f];v.push(h.x,h.y)}return v},o=function(l){return l.pstyle("width").pfValue*l.pstyle("arrow-scale").pfValue*2},s=function(l,v){j(v)&&(v=t[v]),t[l]=Ue({name:l,points:[-.15,-.3,.15,-.3,.15,.3,-.15,.3],collide:function(h,c,d,g,y,p){var m=i(n(this.points,d+2*p,g,y)),b=Yt(h,c,m);return b},roughCollide:r,draw:function(h,c,d,g){var y=n(this.points,c,d,g);e.arrowShapeImpl("polygon")(h,y)},spacing:function(h){return 0},gap:o},v)};s("none",{collide:hn,roughCollide:hn,draw:ni,spacing:ho,gap:ho}),s("triangle",{points:[-.15,-.3,0,0,.15,-.3]}),s("arrow","triangle"),s("triangle-backcurve",{points:t.triangle.points,controlPoint:[0,-.15],roughCollide:r,draw:function(l,v,f,h,c){var d=n(this.points,v,f,h),g=this.controlPoint,y=a(g[0],g[1],v,f,h);e.arrowShapeImpl(this.name)(l,d,y)},gap:function(l){return o(l)*.8}}),s("triangle-tee",{points:[0,0,.15,-.3,-.15,-.3,0,0],pointsTee:[-.15,-.4,-.15,-.5,.15,-.5,.15,-.4],collide:function(l,v,f,h,c,d,g){var y=i(n(this.points,f+2*g,h,c)),p=i(n(this.pointsTee,f+2*g,h,c)),m=Yt(l,v,y)||Yt(l,v,p);return m},draw:function(l,v,f,h,c){var d=n(this.points,v,f,h),g=n(this.pointsTee,v,f,h);e.arrowShapeImpl(this.name)(l,d,g)}}),s("circle-triangle",{radius:.15,pointsTr:[0,-.15,.15,-.45,-.15,-.45,0,-.15],collide:function(l,v,f,h,c,d,g){var y=c,p=Math.pow(y.x-l,2)+Math.pow(y.y-v,2)<=Math.pow((f+2*g)*this.radius,2),m=i(n(this.points,f+2*g,h,c));return Yt(l,v,m)||p},draw:function(l,v,f,h,c){var d=n(this.pointsTr,v,f,h);e.arrowShapeImpl(this.name)(l,d,h.x,h.y,this.radius*v)},spacing:function(l){return e.getArrowWidth(l.pstyle("width").pfValue,l.pstyle("arrow-scale").value)*this.radius}}),s("triangle-cross",{points:[0,0,.15,-.3,-.15,-.3,0,0],baseCrossLinePts:[-.15,-.4,-.15,-.4,.15,-.4,.15,-.4],crossLinePts:function(l,v){var f=this.baseCrossLinePts.slice(),h=v/l,c=3,d=5;return f[c]=f[c]-h,f[d]=f[d]-h,f},collide:function(l,v,f,h,c,d,g){var y=i(n(this.points,f+2*g,h,c)),p=i(n(this.crossLinePts(f,d),f+2*g,h,c)),m=Yt(l,v,y)||Yt(l,v,p);return m},draw:function(l,v,f,h,c){var d=n(this.points,v,f,h),g=n(this.crossLinePts(v,c),v,f,h);e.arrowShapeImpl(this.name)(l,d,g)}}),s("vee",{points:[-.15,-.3,0,0,.15,-.3,0,-.15],gap:function(l){return o(l)*.525}}),s("circle",{radius:.15,collide:function(l,v,f,h,c,d,g){var y=c,p=Math.pow(y.x-l,2)+Math.pow(y.y-v,2)<=Math.pow((f+2*g)*this.radius,2);return p},draw:function(l,v,f,h,c){e.arrowShapeImpl(this.name)(l,h.x,h.y,this.radius*v)},spacing:function(l){return e.getArrowWidth(l.pstyle("width").pfValue,l.pstyle("arrow-scale").value)*this.radius}}),s("tee",{points:[-.15,0,-.15,-.1,.15,-.1,.15,0],spacing:function(l){return 1},gap:function(l){return 1}}),s("square",{points:[-.15,0,.15,0,.15,-.3,-.15,-.3]}),s("diamond",{points:[-.15,-.15,0,-.3,.15,-.15,0,0],gap:function(l){return l.pstyle("width").pfValue*l.pstyle("arrow-scale").value}}),s("chevron",{points:[0,0,-.15,-.15,-.1,-.2,0,-.1,.1,-.2,.15,-.15],gap:function(l){return .95*l.pstyle("width").pfValue*l.pstyle("arrow-scale").value}})};var Vr={};Vr.projectIntoViewport=function(t,e){var r=this.cy,a=this.findContainerClientCoords(),n=a[0],i=a[1],o=a[4],s=r.pan(),u=r.zoom(),l=((t-n)/o-s.x)/u,v=((e-i)/o-s.y)/u;return[l,v]},Vr.findContainerClientCoords=function(){if(this.containerBB)return this.containerBB;var t=this.container,e=t.getBoundingClientRect(),r=D.getComputedStyle(t),a=function(p){return parseFloat(r.getPropertyValue(p))},n={left:a("padding-left"),right:a("padding-right"),top:a("padding-top"),bottom:a("padding-bottom")},i={left:a("border-left-width"),right:a("border-right-width"),top:a("border-top-width"),bottom:a("border-bottom-width")},o=t.clientWidth,s=t.clientHeight,u=n.left+n.right,l=n.top+n.bottom,v=i.left+i.right,f=e.width/(o+v),h=o-u,c=s-l,d=e.left+n.left+i.left,g=e.top+n.top+i.top;return this.containerBB=[d,g,h,c,f]},Vr.invalidateContainerClientCoordsCache=function(){this.containerBB=null},Vr.findNearestElement=function(t,e,r,a){return this.findNearestElements(t,e,r,a)[0]},Vr.findNearestElements=function(t,e,r,a){var n=this,i=this,o=i.getCachedZSortedEles(),s=[],u=i.cy.zoom(),l=i.cy.hasCompoundNodes(),v=(a?24:8)/u,f=(a?8:2)/u,h=(a?8:2)/u,c=1/0,d,g;r&&(o=o.interactive);function y(w,I){if(w.isNode()){if(g)return;g=w,s.push(w)}if(w.isEdge()&&(I==null||I<c))if(d){if(d.pstyle("z-compound-depth").value===w.pstyle("z-compound-depth").value&&d.pstyle("z-compound-depth").value===w.pstyle("z-compound-depth").value){for(var C=0;C<s.length;C++)if(s[C].isEdge()){s[C]=w,d=w,c=I??c;break}}}else s.push(w),d=w,c=I??c}function p(w){var I=w.outerWidth()+2*f,C=w.outerHeight()+2*f,B=I/2,F=C/2,R=w.position();if(R.x-B<=t&&t<=R.x+B&&R.y-F<=e&&e<=R.y+F){var X=i.nodeShapes[n.getNodeShape(w)];if(X.checkPoint(t,e,0,I,C,R.x,R.y))return y(w,0),!0}}function m(w){var I=w._private,C=I.rscratch,B=w.pstyle("width").pfValue,F=w.pstyle("arrow-scale").value,R=B/2+v,X=R*R,G=R*2,ie=I.source,se=I.target,re;if(C.edgeType==="segments"||C.edgeType==="straight"||C.edgeType==="haystack"){for(var q=C.allpts,Z=0;Z+3<q.length;Z+=2)if(Av(t,e,q[Z],q[Z+1],q[Z+2],q[Z+3],G)&&X>(re=Rv(t,e,q[Z],q[Z+1],q[Z+2],q[Z+3])))return y(w,re),!0}else if(C.edgeType==="bezier"||C.edgeType==="multibezier"||C.edgeType==="self"||C.edgeType==="compound"){for(var q=C.allpts,Z=0;Z+5<C.allpts.length;Z+=4)if(Ov(t,e,q[Z],q[Z+1],q[Z+2],q[Z+3],q[Z+4],q[Z+5],G)&&X>(re=Iv(t,e,q[Z],q[Z+1],q[Z+2],q[Z+3],q[Z+4],q[Z+5])))return y(w,re),!0}for(var ie=ie||I.source,se=se||I.target,de=n.getArrowWidth(B,F),oe=[{name:"source",x:C.arrowStartX,y:C.arrowStartY,angle:C.srcArrowAngle},{name:"target",x:C.arrowEndX,y:C.arrowEndY,angle:C.tgtArrowAngle},{name:"mid-source",x:C.midX,y:C.midY,angle:C.midsrcArrowAngle},{name:"mid-target",x:C.midX,y:C.midY,angle:C.midtgtArrowAngle}],Z=0;Z<oe.length;Z++){var ce=oe[Z],we=i.arrowShapes[w.pstyle(ce.name+"-arrow-shape").value],Te=w.pstyle("width").pfValue;if(we.roughCollide(t,e,de,ce.angle,{x:ce.x,y:ce.y},Te,v)&&we.collide(t,e,de,ce.angle,{x:ce.x,y:ce.y},Te,v))return y(w),!0}l&&s.length>0&&(p(ie),p(se))}function b(w,I,C){return er(w,I,C)}function E(w,I){var C=w._private,B=h,F;I?F=I+"-":F="",w.boundingBox();var R=C.labelBounds[I||"main"],X=w.pstyle(F+"label").value,G=w.pstyle("text-events").strValue==="yes";if(!(!G||!X)){var re=b(C.rscratch,"labelX",I),q=b(C.rscratch,"labelY",I),Z=b(C.rscratch,"labelAngle",I),ie=w.pstyle(F+"text-margin-x").pfValue,se=w.pstyle(F+"text-margin-y").pfValue,de=R.x1-B-ie,oe=R.x2+B-ie,ce=R.y1-B-se,we=R.y2+B-se;if(Z){var Te=Math.cos(Z),Ee=Math.sin(Z),ye=function(We,Re){return We=We-re,Re=Re-q,{x:We*Te-Re*Ee+re,y:We*Ee+Re*Te+q}},ae=ye(de,ce),xe=ye(de,we),Ce=ye(oe,ce),Oe=ye(oe,we),Ie=[ae.x+ie,ae.y+se,Ce.x+ie,Ce.y+se,Oe.x+ie,Oe.y+se,xe.x+ie,xe.y+se];if(Yt(t,e,Ie))return y(w),!0}else if(ta(R,t,e))return y(w),!0}}for(var M=o.length-1;M>=0;M--){var A=o[M];A.isNode()?p(A)||E(A):m(A)||E(A)||E(A,"source")||E(A,"target")}return s},Vr.getAllInBox=function(t,e,r,a){var n=this.getCachedZSortedEles().interactive,i=[],o=Math.min(t,r),s=Math.max(t,r),u=Math.min(e,a),l=Math.max(e,a);t=o,r=s,e=u,a=l;for(var v=Ut({x1:t,y1:e,x2:r,y2:a}),f=0;f<n.length;f++){var h=n[f];if(h.isNode()){var c=h,d=c.boundingBox({includeNodes:!0,includeEdges:!1,includeLabels:!1});ui(v,d)&&!wo(d,v)&&i.push(c)}else{var g=h,y=g._private,p=y.rscratch;if(p.startX!=null&&p.startY!=null&&!ta(v,p.startX,p.startY)||p.endX!=null&&p.endY!=null&&!ta(v,p.endX,p.endY))continue;if(p.edgeType==="bezier"||p.edgeType==="multibezier"||p.edgeType==="self"||p.edgeType==="compound"||p.edgeType==="segments"||p.edgeType==="haystack"){for(var m=y.rstyle.bezierPts||y.rstyle.linePts||y.rstyle.haystackPts,b=!0,E=0;E<m.length;E++)if(!Lv(v,m[E])){b=!1;break}b&&i.push(g)}else(p.edgeType==="haystack"||p.edgeType==="straight")&&i.push(g)}}return i};var Hn={};Hn.calculateArrowAngles=function(t){var e=t._private.rscratch,r=e.edgeType==="haystack",a=e.edgeType==="bezier",n=e.edgeType==="multibezier",i=e.edgeType==="segments",o=e.edgeType==="compound",s=e.edgeType==="self",u,l,v,f,h,c,p,m;if(r?(v=e.haystackPts[0],f=e.haystackPts[1],h=e.haystackPts[2],c=e.haystackPts[3]):(v=e.arrowStartX,f=e.arrowStartY,h=e.arrowEndX,c=e.arrowEndY),p=e.midX,m=e.midY,i)u=v-e.segpts[0],l=f-e.segpts[1];else if(n||o||s||a){var d=e.allpts,g=St(d[0],d[2],d[4],.1),y=St(d[1],d[3],d[5],.1);u=v-g,l=f-y}else u=v-p,l=f-m;e.srcArrowAngle=gn(u,l);var p=e.midX,m=e.midY;if(r&&(p=(v+h)/2,m=(f+c)/2),u=h-v,l=c-f,i){var d=e.allpts;if(d.length/2%2===0){var b=d.length/2,E=b-2;u=d[b]-d[E],l=d[b+1]-d[E+1]}else{var b=d.length/2-1,E=b-2,M=b+2;u=d[b]-d[E],l=d[b+1]-d[E+1]}}else if(n||o||s){var d=e.allpts,A=e.ctrlpts,w,I,C,B;if(A.length/2%2===0){var F=d.length/2-1,R=F+2,X=R+2;w=St(d[F],d[R],d[X],0),I=St(d[F+1],d[R+1],d[X+1],0),C=St(d[F],d[R],d[X],1e-4),B=St(d[F+1],d[R+1],d[X+1],1e-4)}else{var R=d.length/2-1,F=R-2,X=R+2;w=St(d[F],d[R],d[X],.4999),I=St(d[F+1],d[R+1],d[X+1],.4999),C=St(d[F],d[R],d[X],.5),B=St(d[F+1],d[R+1],d[X+1],.5)}u=C-w,l=B-I}if(e.midtgtArrowAngle=gn(u,l),e.midDispX=u,e.midDispY=l,u*=-1,l*=-1,i){var d=e.allpts;if(d.length/2%2!==0){var b=d.length/2-1,M=b+2;u=-(d[M]-d[b]),l=-(d[M+1]-d[b+1])}}if(e.midsrcArrowAngle=gn(u,l),i)u=h-e.segpts[e.segpts.length-2],l=c-e.segpts[e.segpts.length-1];else if(n||o||s||a){var d=e.allpts,G=d.length,g=St(d[G-6],d[G-4],d[G-2],.9),y=St(d[G-5],d[G-3],d[G-1],.9);u=h-g,l=c-y}else u=h-p,l=c-m;e.tgtArrowAngle=gn(u,l)},Hn.getArrowWidth=Hn.getArrowHeight=function(t,e){var r=this.arrowWidthCache=this.arrowWidthCache||{},a=r[t+", "+e];return a||(a=Math.max(Math.pow(t*13.37,.9),29)*e,r[t+", "+e]=a,a)};var Vt={};Vt.findHaystackPoints=function(t){for(var e=0;e<t.length;e++){var r=t[e],a=r._private,n=a.rscratch;if(!n.haystack){var i=Math.random()*2*Math.PI;n.source={x:Math.cos(i),y:Math.sin(i)},i=Math.random()*2*Math.PI,n.target={x:Math.cos(i),y:Math.sin(i)}}var o=a.source,s=a.target,u=o.position(),l=s.position(),v=o.width(),f=s.width(),h=o.height(),c=s.height(),d=r.pstyle("haystack-radius").value,g=d/2;n.haystackPts=n.allpts=[n.source.x*v*g+u.x,n.source.y*h*g+u.y,n.target.x*f*g+l.x,n.target.y*c*g+l.y],n.midX=(n.allpts[0]+n.allpts[2])/2,n.midY=(n.allpts[1]+n.allpts[3])/2,n.edgeType="haystack",n.haystack=!0,this.storeEdgeProjections(r),this.calculateArrowAngles(r),this.recalculateEdgeLabelProjections(r),this.calculateLabelAngles(r)}},Vt.findSegmentsPoints=function(t,e){var r=t._private.rscratch,a=e.posPts,n=e.intersectionPts,i=e.vectorNormInverse,o=t.pstyle("edge-distances").value,s=t.pstyle("segment-weights"),u=t.pstyle("segment-distances"),l=Math.min(s.pfValue.length,u.pfValue.length);r.edgeType="segments",r.segpts=[];for(var v=0;v<l;v++){var f=s.pfValue[v],h=u.pfValue[v],c=1-f,d=f,g=o==="node-position"?a:n,y={x:g.x1*c+g.x2*d,y:g.y1*c+g.y2*d};r.segpts.push(y.x+i.x*h,y.y+i.y*h)}},Vt.findLoopPoints=function(t,e,r,a){var n=t._private.rscratch,i=e.dirCounts,o=e.srcPos,s=t.pstyle("control-point-distances"),u=s?s.pfValue[0]:void 0,l=t.pstyle("loop-direction").pfValue,v=t.pstyle("loop-sweep").pfValue,f=t.pstyle("control-point-step-size").pfValue;n.edgeType="self";var h=r,c=f;a&&(h=0,c=u);var d=l-Math.PI/2,g=d-v/2,y=d+v/2,p=l+"_"+v;h=i[p]===void 0?i[p]=0:++i[p],n.ctrlpts=[o.x+Math.cos(g)*1.4*c*(h/3+1),o.y+Math.sin(g)*1.4*c*(h/3+1),o.x+Math.cos(y)*1.4*c*(h/3+1),o.y+Math.sin(y)*1.4*c*(h/3+1)]},Vt.findCompoundLoopPoints=function(t,e,r,a){var n=t._private.rscratch;n.edgeType="compound";var i=e.srcPos,o=e.tgtPos,s=e.srcW,u=e.srcH,l=e.tgtW,v=e.tgtH,f=t.pstyle("control-point-step-size").pfValue,h=t.pstyle("control-point-distances"),c=h?h.pfValue[0]:void 0,d=r,g=f;a&&(d=0,g=c);var y=50,p={x:i.x-s/2,y:i.y-u/2},m={x:o.x-l/2,y:o.y-v/2},b={x:Math.min(p.x,m.x),y:Math.min(p.y,m.y)},E=.5,M=Math.max(E,Math.log(s*.01)),A=Math.max(E,Math.log(l*.01));n.ctrlpts=[b.x,b.y-(1+Math.pow(y,1.12)/100)*g*(d/3+1)*M,b.x-(1+Math.pow(y,1.12)/100)*g*(d/3+1)*A,b.y]},Vt.findStraightEdgePoints=function(t){t._private.rscratch.edgeType="straight"},Vt.findBezierPoints=function(t,e,r,a,n){var i=t._private.rscratch,o=e.vectorNormInverse,s=e.posPts,u=e.intersectionPts,l=t.pstyle("edge-distances").value,v=t.pstyle("control-point-step-size").pfValue,f=t.pstyle("control-point-distances"),h=t.pstyle("control-point-weights"),c=f&&h?Math.min(f.value.length,h.value.length):1,d=f?f.pfValue[0]:void 0,g=h.value[0],y=a;i.edgeType=y?"multibezier":"bezier",i.ctrlpts=[];for(var p=0;p<c;p++){var m=(.5-e.eles.length/2+r)*v*(n?-1:1),b=void 0,E=bo(m);y&&(d=f?f.pfValue[p]:v,g=h.value[p]),a?b=d:b=d!==void 0?E*d:void 0;var M=b!==void 0?b:m,A=1-g,w=g,I=l==="node-position"?s:u,C={x:I.x1*A+I.x2*w,y:I.y1*A+I.y2*w};i.ctrlpts.push(C.x+o.x*M,C.y+o.y*M)}},Vt.findTaxiPoints=function(t,e){var r=t._private.rscratch;r.edgeType="segments";var a="vertical",n="horizontal",i="leftward",o="rightward",s="downward",u="upward",l="auto",v=e.posPts,f=e.srcW,h=e.srcH,c=e.tgtW,d=e.tgtH,g=t.pstyle("edge-distances").value,y=g!=="node-position",p=t.pstyle("taxi-direction").value,m=p,b=t.pstyle("taxi-turn"),E=b.units==="%",M=b.pfValue,A=M<0,w=t.pstyle("taxi-turn-min-distance").pfValue,I=y?(f+c)/2:0,C=y?(h+d)/2:0,B=v.x2-v.x1,F=v.y2-v.y1,R=function(Ge,at){return Ge>0?Math.max(Ge-at,0):Math.min(Ge+at,0)},X=R(B,I),G=R(F,C),re=!1;m===l?p=Math.abs(X)>Math.abs(G)?n:a:m===u||m===s?(p=a,re=!0):(m===i||m===o)&&(p=n,re=!0);var q=p===a,Z=q?G:X,ie=q?F:B,se=bo(ie),de=!1;!(re&&(E||A))&&(m===s&&ie<0||m===u&&ie>0||m===i&&ie>0||m===o&&ie<0)&&(se*=-1,Z=se*Math.abs(Z),de=!0);var oe;if(E){var ce=M<0?1+M:M;oe=ce*Z}else{var we=M<0?Z:0;oe=we+M*se}var Te=function(Ge){return Math.abs(Ge)<w||Math.abs(Ge)>=Math.abs(Z)},Ee=Te(oe),ye=Te(Math.abs(Z)-Math.abs(oe)),ae=Ee||ye;if(ae&&!de)if(q){var xe=Math.abs(ie)<=h/2,Ce=Math.abs(B)<=c/2;if(xe){var Oe=(v.x1+v.x2)/2,Ie=v.y1,He=v.y2;r.segpts=[Oe,Ie,Oe,He]}else if(Ce){var We=(v.y1+v.y2)/2,Re=v.x1,Me=v.x2;r.segpts=[Re,We,Me,We]}else r.segpts=[v.x1,v.y2]}else{var Ve=Math.abs(ie)<=f/2,Fe=Math.abs(F)<=d/2;if(Ve){var ke=(v.y1+v.y2)/2,ze=v.x1,et=v.x2;r.segpts=[ze,ke,et,ke]}else if(Fe){var qe=(v.x1+v.x2)/2,Ye=v.y1,Se=v.y2;r.segpts=[qe,Ye,qe,Se]}else r.segpts=[v.x2,v.y1]}else if(q){var N=v.y1+oe+(y?h/2*se:0),ue=v.x1,De=v.x2;r.segpts=[ue,N,De,N]}else{var me=v.x1+oe+(y?f/2*se:0),be=v.y1,Ke=v.y2;r.segpts=[me,be,me,Ke]}},Vt.tryToCorrectInvalidPoints=function(t,e){var r=t._private.rscratch;if(r.edgeType==="bezier"){var a=e.srcPos,n=e.tgtPos,i=e.srcW,o=e.srcH,s=e.tgtW,u=e.tgtH,l=e.srcShape,v=e.tgtShape,f=!k(r.startX)||!k(r.startY),h=!k(r.arrowStartX)||!k(r.arrowStartY),c=!k(r.endX)||!k(r.endY),d=!k(r.arrowEndX)||!k(r.arrowEndY),g=3,y=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth,p=g*y,m=Pr({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),b=m<p,E=Pr({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.endX,y:r.endY}),M=E<p,A=!1;if(f||h||b){A=!0;var w={x:r.ctrlpts[0]-a.x,y:r.ctrlpts[1]-a.y},I=Math.sqrt(w.x*w.x+w.y*w.y),C={x:w.x/I,y:w.y/I},B=Math.max(i,o),F={x:r.ctrlpts[0]+C.x*2*B,y:r.ctrlpts[1]+C.y*2*B},R=l.intersectLine(a.x,a.y,i,o,F.x,F.y,0);b?(r.ctrlpts[0]=r.ctrlpts[0]+C.x*(p-m),r.ctrlpts[1]=r.ctrlpts[1]+C.y*(p-m)):(r.ctrlpts[0]=R[0]+C.x*p,r.ctrlpts[1]=R[1]+C.y*p)}if(c||d||M){A=!0;var X={x:r.ctrlpts[0]-n.x,y:r.ctrlpts[1]-n.y},G=Math.sqrt(X.x*X.x+X.y*X.y),re={x:X.x/G,y:X.y/G},q=Math.max(i,o),Z={x:r.ctrlpts[0]+re.x*2*q,y:r.ctrlpts[1]+re.y*2*q},ie=v.intersectLine(n.x,n.y,s,u,Z.x,Z.y,0);M?(r.ctrlpts[0]=r.ctrlpts[0]+re.x*(p-E),r.ctrlpts[1]=r.ctrlpts[1]+re.y*(p-E)):(r.ctrlpts[0]=ie[0]+re.x*p,r.ctrlpts[1]=ie[1]+re.y*p)}A&&this.findEndpoints(t)}},Vt.storeAllpts=function(t){var e=t._private.rscratch;if(e.edgeType==="multibezier"||e.edgeType==="bezier"||e.edgeType==="self"||e.edgeType==="compound"){e.allpts=[],e.allpts.push(e.startX,e.startY);for(var r=0;r+1<e.ctrlpts.length;r+=2)e.allpts.push(e.ctrlpts[r],e.ctrlpts[r+1]),r+3<e.ctrlpts.length&&e.allpts.push((e.ctrlpts[r]+e.ctrlpts[r+2])/2,(e.ctrlpts[r+1]+e.ctrlpts[r+3])/2);e.allpts.push(e.endX,e.endY);var a,n;e.ctrlpts.length/2%2===0?(a=e.allpts.length/2-1,e.midX=e.allpts[a],e.midY=e.allpts[a+1]):(a=e.allpts.length/2-3,n=.5,e.midX=St(e.allpts[a],e.allpts[a+2],e.allpts[a+4],n),e.midY=St(e.allpts[a+1],e.allpts[a+3],e.allpts[a+5],n))}else if(e.edgeType==="straight")e.allpts=[e.startX,e.startY,e.endX,e.endY],e.midX=(e.startX+e.endX+e.arrowStartX+e.arrowEndX)/4,e.midY=(e.startY+e.endY+e.arrowStartY+e.arrowEndY)/4;else if(e.edgeType==="segments")if(e.allpts=[],e.allpts.push(e.startX,e.startY),e.allpts.push.apply(e.allpts,e.segpts),e.allpts.push(e.endX,e.endY),e.segpts.length%4===0){var i=e.segpts.length/2,o=i-2;e.midX=(e.segpts[o]+e.segpts[i])/2,e.midY=(e.segpts[o+1]+e.segpts[i+1])/2}else{var s=e.segpts.length/2-1;e.midX=e.segpts[s],e.midY=e.segpts[s+1]}},Vt.checkForInvalidEdgeWarning=function(t){var e=t[0]._private.rscratch;e.nodesOverlap||k(e.startX)&&k(e.startY)&&k(e.endX)&&k(e.endY)?e.loggedErr=!1:e.loggedErr||(e.loggedErr=!0,vt("Edge `"+t.id()+"` has invalid endpoints and so it is impossible to draw. Adjust your edge style (e.g. control points) accordingly or use an alternative edge type. This is expected behaviour when the source node and the target node overlap."))},Vt.findEdgeControlPoints=function(t){var e=this;if(!(!t||t.length===0)){for(var r=this,a=r.cy,n=a.hasCompoundNodes(),i={map:new lr,get:function(w){var I=this.map.get(w[0]);return I!=null?I.get(w[1]):null},set:function(w,I){var C=this.map.get(w[0]);C==null&&(C=new lr,this.map.set(w[0],C)),C.set(w[1],I)}},o=[],s=[],u=0;u<t.length;u++){var l=t[u],v=l._private,f=l.pstyle("curve-style").value;if(!(l.removed()||!l.takesUpSpace())){if(f==="haystack"){s.push(l);continue}var h=f==="unbundled-bezier"||f==="segments"||f==="straight"||f==="straight-triangle"||f==="taxi",c=f==="unbundled-bezier"||f==="bezier",d=v.source,g=v.target,y=d.poolIndex(),p=g.poolIndex(),m=[y,p].sort(),b=i.get(m);b==null&&(b={eles:[]},i.set(m,b),o.push(m)),b.eles.push(l),h&&(b.hasUnbundled=!0),c&&(b.hasBezier=!0)}}for(var E=function(w){var I=o[w],C=i.get(I),B=void 0;if(!C.hasUnbundled){var F=C.eles[0].parallelEdges().filter(function(Se){return Se.isBundledBezier()});ii(C.eles),F.forEach(function(Se){return C.eles.push(Se)}),C.eles.sort(function(Se,N){return Se.poolIndex()-N.poolIndex()})}var R=C.eles[0],X=R.source(),G=R.target();if(X.poolIndex()>G.poolIndex()){var re=X;X=G,G=re}var q=C.srcPos=X.position(),Z=C.tgtPos=G.position(),ie=C.srcW=X.outerWidth(),se=C.srcH=X.outerHeight(),de=C.tgtW=G.outerWidth(),oe=C.tgtH=G.outerHeight(),ce=C.srcShape=r.nodeShapes[e.getNodeShape(X)],we=C.tgtShape=r.nodeShapes[e.getNodeShape(G)];C.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var Te=0;Te<C.eles.length;Te++){var Ee=C.eles[Te],ye=Ee[0]._private.rscratch,ae=Ee.pstyle("curve-style").value,xe=ae==="unbundled-bezier"||ae==="segments"||ae==="taxi",Ce=!X.same(Ee.source());if(!C.calculatedIntersection&&X!==G&&(C.hasBezier||C.hasUnbundled)){C.calculatedIntersection=!0;var Oe=ce.intersectLine(q.x,q.y,ie,se,Z.x,Z.y,0),Ie=C.srcIntn=Oe,He=we.intersectLine(Z.x,Z.y,de,oe,q.x,q.y,0),We=C.tgtIntn=He,Re=C.intersectionPts={x1:Oe[0],x2:He[0],y1:Oe[1],y2:He[1]},Me=C.posPts={x1:q.x,x2:Z.x,y1:q.y,y2:Z.y},Ve=He[1]-Oe[1],Fe=He[0]-Oe[0],ke=Math.sqrt(Fe*Fe+Ve*Ve),ze=C.vector={x:Fe,y:Ve},et=C.vectorNorm={x:ze.x/ke,y:ze.y/ke},qe={x:-et.y,y:et.x};C.nodesOverlap=!k(ke)||we.checkPoint(Oe[0],Oe[1],0,de,oe,Z.x,Z.y)||ce.checkPoint(He[0],He[1],0,ie,se,q.x,q.y),C.vectorNormInverse=qe,B={nodesOverlap:C.nodesOverlap,dirCounts:C.dirCounts,calculatedIntersection:!0,hasBezier:C.hasBezier,hasUnbundled:C.hasUnbundled,eles:C.eles,srcPos:Z,tgtPos:q,srcW:de,srcH:oe,tgtW:ie,tgtH:se,srcIntn:We,tgtIntn:Ie,srcShape:we,tgtShape:ce,posPts:{x1:Me.x2,y1:Me.y2,x2:Me.x1,y2:Me.y1},intersectionPts:{x1:Re.x2,y1:Re.y2,x2:Re.x1,y2:Re.y1},vector:{x:-ze.x,y:-ze.y},vectorNorm:{x:-et.x,y:-et.y},vectorNormInverse:{x:-qe.x,y:-qe.y}}}var Ye=Ce?B:C;ye.nodesOverlap=Ye.nodesOverlap,ye.srcIntn=Ye.srcIntn,ye.tgtIntn=Ye.tgtIntn,n&&(X.isParent()||X.isChild()||G.isParent()||G.isChild())&&(X.parents().anySame(G)||G.parents().anySame(X)||X.same(G)&&X.isParent())?e.findCompoundLoopPoints(Ee,Ye,Te,xe):X===G?e.findLoopPoints(Ee,Ye,Te,xe):ae==="segments"?e.findSegmentsPoints(Ee,Ye):ae==="taxi"?e.findTaxiPoints(Ee,Ye):ae==="straight"||!xe&&C.eles.length%2===1&&Te===Math.floor(C.eles.length/2)?e.findStraightEdgePoints(Ee):e.findBezierPoints(Ee,Ye,Te,xe,Ce),e.findEndpoints(Ee),e.tryToCorrectInvalidPoints(Ee,Ye),e.checkForInvalidEdgeWarning(Ee),e.storeAllpts(Ee),e.storeEdgeProjections(Ee),e.calculateArrowAngles(Ee),e.recalculateEdgeLabelProjections(Ee),e.calculateLabelAngles(Ee)}},M=0;M<o.length;M++)E(M);this.findHaystackPoints(s)}};function al(t){var e=[];if(t!=null){for(var r=0;r<t.length;r+=2){var a=t[r],n=t[r+1];e.push({x:a,y:n})}return e}}Vt.getSegmentPoints=function(t){var e=t[0]._private.rscratch,r=e.edgeType;if(r==="segments")return this.recalculateRenderedStyle(t),al(e.segpts)},Vt.getControlPoints=function(t){var e=t[0]._private.rscratch,r=e.edgeType;if(r==="bezier"||r==="multibezier"||r==="self"||r==="compound")return this.recalculateRenderedStyle(t),al(e.ctrlpts)},Vt.getEdgeMidpoint=function(t){var e=t[0]._private.rscratch;return this.recalculateRenderedStyle(t),{x:e.midX,y:e.midY}};var Qa={};Qa.manualEndptToPx=function(t,e){var r=this,a=t.position(),n=t.outerWidth(),i=t.outerHeight();if(e.value.length===2){var o=[e.pfValue[0],e.pfValue[1]];return e.units[0]==="%"&&(o[0]=o[0]*n),e.units[1]==="%"&&(o[1]=o[1]*i),o[0]+=a.x,o[1]+=a.y,o}else{var s=e.pfValue[0];s=-Math.PI/2+s;var u=2*Math.max(n,i),l=[a.x+Math.cos(s)*u,a.y+Math.sin(s)*u];return r.nodeShapes[this.getNodeShape(t)].intersectLine(a.x,a.y,n,i,l[0],l[1],0)}},Qa.findEndpoints=function(t){var e=this,r,a=t.source()[0],n=t.target()[0],i=a.position(),o=n.position(),s=t.pstyle("target-arrow-shape").value,u=t.pstyle("source-arrow-shape").value,l=t.pstyle("target-distance-from-node").pfValue,v=t.pstyle("source-distance-from-node").pfValue,f=t.pstyle("curve-style").value,h=t._private.rscratch,c=h.edgeType,d=f==="taxi",g=c==="self"||c==="compound",y=c==="bezier"||c==="multibezier"||g,p=c!=="bezier",m=c==="straight"||c==="segments",b=c==="segments",E=y||p||m,M=g||d,A=t.pstyle("source-endpoint"),w=M?"outside-to-node":A.value,I=t.pstyle("target-endpoint"),C=M?"outside-to-node":I.value;h.srcManEndpt=A,h.tgtManEndpt=I;var B,F,R,X;if(y){var G=[h.ctrlpts[0],h.ctrlpts[1]],re=p?[h.ctrlpts[h.ctrlpts.length-2],h.ctrlpts[h.ctrlpts.length-1]]:G;B=re,F=G}else if(m){var q=b?h.segpts.slice(0,2):[o.x,o.y],Z=b?h.segpts.slice(h.segpts.length-2):[i.x,i.y];B=Z,F=q}if(C==="inside-to-node")r=[o.x,o.y];else if(I.units)r=this.manualEndptToPx(n,I);else if(C==="outside-to-line")r=h.tgtIntn;else if(C==="outside-to-node"||C==="outside-to-node-or-label"?R=B:(C==="outside-to-line"||C==="outside-to-line-or-label")&&(R=[i.x,i.y]),r=e.nodeShapes[this.getNodeShape(n)].intersectLine(o.x,o.y,n.outerWidth(),n.outerHeight(),R[0],R[1],0),C==="outside-to-node-or-label"||C==="outside-to-line-or-label"){var ie=n._private.rscratch,se=ie.labelWidth,de=ie.labelHeight,oe=ie.labelX,ce=ie.labelY,we=se/2,Te=de/2,Ee=n.pstyle("text-valign").value;Ee==="top"?ce-=Te:Ee==="bottom"&&(ce+=Te);var ye=n.pstyle("text-halign").value;ye==="left"?oe-=we:ye==="right"&&(oe+=we);var ae=Ba(R[0],R[1],[oe-we,ce-Te,oe+we,ce-Te,oe+we,ce+Te,oe-we,ce+Te],o.x,o.y);if(ae.length>0){var xe=i,Ce=Br(xe,jr(r)),Oe=Br(xe,jr(ae)),Ie=Ce;if(Oe<Ce&&(r=ae,Ie=Oe),ae.length>2){var He=Br(xe,{x:ae[2],y:ae[3]});He<Ie&&(r=[ae[2],ae[3]])}}}var We=yn(r,B,e.arrowShapes[s].spacing(t)+l),Re=yn(r,B,e.arrowShapes[s].gap(t)+l);if(h.endX=Re[0],h.endY=Re[1],h.arrowEndX=We[0],h.arrowEndY=We[1],w==="inside-to-node")r=[i.x,i.y];else if(A.units)r=this.manualEndptToPx(a,A);else if(w==="outside-to-line")r=h.srcIntn;else if(w==="outside-to-node"||w==="outside-to-node-or-label"?X=F:(w==="outside-to-line"||w==="outside-to-line-or-label")&&(X=[o.x,o.y]),r=e.nodeShapes[this.getNodeShape(a)].intersectLine(i.x,i.y,a.outerWidth(),a.outerHeight(),X[0],X[1],0),w==="outside-to-node-or-label"||w==="outside-to-line-or-label"){var Me=a._private.rscratch,Ve=Me.labelWidth,Fe=Me.labelHeight,ke=Me.labelX,ze=Me.labelY,et=Ve/2,qe=Fe/2,Ye=a.pstyle("text-valign").value;Ye==="top"?ze-=qe:Ye==="bottom"&&(ze+=qe);var Se=a.pstyle("text-halign").value;Se==="left"?ke-=et:Se==="right"&&(ke+=et);var N=Ba(X[0],X[1],[ke-et,ze-qe,ke+et,ze-qe,ke+et,ze+qe,ke-et,ze+qe],i.x,i.y);if(N.length>0){var ue=o,De=Br(ue,jr(r)),me=Br(ue,jr(N)),be=De;if(me<De&&(r=[N[0],N[1]],be=me),N.length>2){var Ke=Br(ue,{x:N[2],y:N[3]});Ke<be&&(r=[N[2],N[3]])}}}var Le=yn(r,F,e.arrowShapes[u].spacing(t)+v),Ge=yn(r,F,e.arrowShapes[u].gap(t)+v);h.startX=Ge[0],h.startY=Ge[1],h.arrowStartX=Le[0],h.arrowStartY=Le[1],E&&(!k(h.startX)||!k(h.startY)||!k(h.endX)||!k(h.endY)?h.badLine=!0:h.badLine=!1)},Qa.getSourceEndpoint=function(t){var e=t[0]._private.rscratch;switch(this.recalculateRenderedStyle(t),e.edgeType){case"haystack":return{x:e.haystackPts[0],y:e.haystackPts[1]};default:return{x:e.arrowStartX,y:e.arrowStartY}}},Qa.getTargetEndpoint=function(t){var e=t[0]._private.rscratch;switch(this.recalculateRenderedStyle(t),e.edgeType){case"haystack":return{x:e.haystackPts[2],y:e.haystackPts[3]};default:return{x:e.arrowEndX,y:e.arrowEndY}}};var Fi={};function cg(t,e,r){for(var a=function(l,v,f,h){return St(l,v,f,h)},n=e._private,i=n.rstyle.bezierPts,o=0;o<t.bezierProjPcts.length;o++){var s=t.bezierProjPcts[o];i.push({x:a(r[0],r[2],r[4],s),y:a(r[1],r[3],r[5],s)})}}Fi.storeEdgeProjections=function(t){var e=t._private,r=e.rscratch,a=r.edgeType;if(e.rstyle.bezierPts=null,e.rstyle.linePts=null,e.rstyle.haystackPts=null,a==="multibezier"||a==="bezier"||a==="self"||a==="compound"){e.rstyle.bezierPts=[];for(var n=0;n+5<r.allpts.length;n+=4)cg(this,t,r.allpts.slice(n,n+6))}else if(a==="segments")for(var i=e.rstyle.linePts=[],n=0;n+1<r.allpts.length;n+=2)i.push({x:r.allpts[n],y:r.allpts[n+1]});else if(a==="haystack"){var o=r.haystackPts;e.rstyle.haystackPts=[{x:o[0],y:o[1]},{x:o[2],y:o[3]}]}e.rstyle.arrowWidth=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth},Fi.recalculateEdgeProjections=function(t){this.findEdgeControlPoints(t)};var vr={};vr.recalculateNodeLabelProjection=function(t){var e=t.pstyle("label").strValue;if(!Pe(e)){var r,a,n=t._private,i=t.width(),o=t.height(),s=t.padding(),u=t.position(),l=t.pstyle("text-halign").strValue,v=t.pstyle("text-valign").strValue,f=n.rscratch,h=n.rstyle;switch(l){case"left":r=u.x-i/2-s;break;case"right":r=u.x+i/2+s;break;default:r=u.x}switch(v){case"top":a=u.y-o/2-s;break;case"bottom":a=u.y+o/2+s;break;default:a=u.y}f.labelX=r,f.labelY=a,h.labelX=r,h.labelY=a,this.calculateLabelAngles(t),this.applyLabelDimensions(t)}};var nl=function(e,r){var a=Math.atan(r/e);return e===0&&a<0&&(a=a*-1),a},il=function(e,r){var a=r.x-e.x,n=r.y-e.y;return nl(a,n)},dg=function(e,r,a,n){var i=ka(0,n-.001,1),o=ka(0,n+.001,1),s=ea(e,r,a,i),u=ea(e,r,a,o);return il(s,u)};vr.recalculateEdgeLabelProjections=function(t){var e,r=t._private,a=r.rscratch,n=this,i={mid:t.pstyle("label").strValue,source:t.pstyle("source-label").strValue,target:t.pstyle("target-label").strValue};if(i.mid||i.source||i.target){e={x:a.midX,y:a.midY};var o=function(f,h,c){xr(r.rscratch,f,h,c),xr(r.rstyle,f,h,c)};o("labelX",null,e.x),o("labelY",null,e.y);var s=nl(a.midDispX,a.midDispY);o("labelAutoAngle",null,s);var u=function v(){if(v.cache)return v.cache;for(var f=[],h=0;h+5<a.allpts.length;h+=4){var c={x:a.allpts[h],y:a.allpts[h+1]},d={x:a.allpts[h+2],y:a.allpts[h+3]},g={x:a.allpts[h+4],y:a.allpts[h+5]};f.push({p0:c,p1:d,p2:g,startDist:0,length:0,segments:[]})}var y=r.rstyle.bezierPts,p=n.bezierProjPcts.length;function m(w,I,C,B,F){var R=Pr(I,C),X=w.segments[w.segments.length-1],G={p0:I,p1:C,t0:B,t1:F,startDist:X?X.startDist+X.length:0,length:R};w.segments.push(G),w.length+=R}for(var b=0;b<f.length;b++){var E=f[b],M=f[b-1];M&&(E.startDist=M.startDist+M.length),m(E,E.p0,y[b*p],0,n.bezierProjPcts[0]);for(var A=0;A<p-1;A++)m(E,y[b*p+A],y[b*p+A+1],n.bezierProjPcts[A],n.bezierProjPcts[A+1]);m(E,y[b*p+p-1],E.p2,n.bezierProjPcts[p-1],1)}return v.cache=f},l=function(f){var h,c=f==="source";if(i[f]){var d=t.pstyle(f+"-text-offset").pfValue;switch(a.edgeType){case"self":case"compound":case"bezier":case"multibezier":{for(var g=u(),y,p=0,m=0,b=0;b<g.length;b++){for(var E=g[c?b:g.length-1-b],M=0;M<E.segments.length;M++){var A=E.segments[c?M:E.segments.length-1-M],w=b===g.length-1&&M===E.segments.length-1;if(p=m,m+=A.length,m>=d||w){y={cp:E,segment:A};break}}if(y)break}var I=y.cp,C=y.segment,B=(d-p)/C.length,F=C.t1-C.t0,R=c?C.t0+F*B:C.t1-F*B;R=ka(0,R,1),e=ea(I.p0,I.p1,I.p2,R),h=dg(I.p0,I.p1,I.p2,R);break}case"straight":case"segments":case"haystack":{for(var X=0,G,re,q,Z,ie=a.allpts.length,se=0;se+3<ie&&(c?(q={x:a.allpts[se],y:a.allpts[se+1]},Z={x:a.allpts[se+2],y:a.allpts[se+3]}):(q={x:a.allpts[ie-2-se],y:a.allpts[ie-1-se]},Z={x:a.allpts[ie-4-se],y:a.allpts[ie-3-se]}),G=Pr(q,Z),re=X,X+=G,!(X>=d));se+=2);var de=d-re,oe=de/G;oe=ka(0,oe,1),e=xv(q,Z,oe),h=il(q,Z);break}}o("labelX",f,e.x),o("labelY",f,e.y),o("labelAutoAngle",f,h)}};l("source"),l("target"),this.applyLabelDimensions(t)}},vr.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))},vr.applyPrefixedLabelDimensions=function(t,e){var r=t._private,a=this.getLabelText(t,e),n=this.calculateLabelDimensions(t,a),i=t.pstyle("line-height").pfValue,o=t.pstyle("text-wrap").strValue,s=er(r.rscratch,"labelWrapCachedLines",e)||[],u=o!=="wrap"?1:Math.max(s.length,1),l=n.height/u,v=l*i,f=n.width,h=n.height+(u-1)*(i-1)*l;xr(r.rstyle,"labelWidth",e,f),xr(r.rscratch,"labelWidth",e,f),xr(r.rstyle,"labelHeight",e,h),xr(r.rscratch,"labelHeight",e,h),xr(r.rscratch,"labelLineHeight",e,v)},vr.getLabelText=function(t,e){var r=t._private,a=e?e+"-":"",n=t.pstyle(a+"label").strValue,i=t.pstyle("text-transform").value,o=function(de,oe){return oe?(xr(r.rscratch,de,e,oe),oe):er(r.rscratch,de,e)};if(!n)return"";i=="none"||(i=="uppercase"?n=n.toUpperCase():i=="lowercase"&&(n=n.toLowerCase()));var s=t.pstyle("text-wrap").value;if(s==="wrap"){var u=o("labelKey");if(u!=null&&o("labelWrapKey")===u)return o("labelWrapCachedText");for(var l="",v=n.split(`
`),f=t.pstyle("text-max-width").pfValue,h=t.pstyle("text-overflow-wrap").value,c=h==="anywhere",d=[],g=/[\s\u200b]+/,y=c?"":" ",p=0;p<v.length;p++){var m=v[p],b=this.calculateLabelDimensions(t,m),E=b.width;if(c){var M=m.split("").join(l);m=M}if(E>f){for(var A=m.split(g),w="",I=0;I<A.length;I++){var C=A[I],B=w.length===0?C:w+y+C,F=this.calculateLabelDimensions(t,B),R=F.width;R<=f?w+=C+y:(w&&d.push(w),w=C+y)}w.match(/^[\s\u200b]+$/)||d.push(w)}else d.push(m)}o("labelWrapCachedLines",d),n=o("labelWrapCachedText",d.join(`
`)),o("labelWrapKey",u)}else if(s==="ellipsis"){var X=t.pstyle("text-max-width").pfValue,G="",re="…",q=!1;if(this.calculateLabelDimensions(t,n).width<X)return n;for(var Z=0;Z<n.length;Z++){var ie=this.calculateLabelDimensions(t,G+n[Z]+re).width;if(ie>X)break;G+=n[Z],Z===n.length-1&&(q=!0)}return q||(G+=re),G}return n},vr.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,r=t.pstyle("text-halign").strValue;if(e==="auto")if(t.isNode())switch(r){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return e},vr.calculateLabelDimensions=function(t,e){var r=this,a=kr(e,t._private.labelDimsKey),n=r.labelDimCache||(r.labelDimCache=[]),i=n[a];if(i!=null)return i;var o=0,s=t.pstyle("font-style").strValue,u=t.pstyle("font-size").pfValue,l=t.pstyle("font-family").strValue,v=t.pstyle("font-weight").strValue,f=this.labelCalcCanvas,h=this.labelCalcCanvasContext;if(!f){f=this.labelCalcCanvas=document.createElement("canvas"),h=this.labelCalcCanvasContext=f.getContext("2d");var c=f.style;c.position="absolute",c.left="-9999px",c.top="-9999px",c.zIndex="-1",c.visibility="hidden",c.pointerEvents="none"}h.font="".concat(s," ").concat(v," ").concat(u,"px ").concat(l);for(var d=0,g=0,y=e.split(`
`),p=0;p<y.length;p++){var m=y[p],b=h.measureText(m),E=Math.ceil(b.width),M=u;d=Math.max(E,d),g+=M}return d+=o,g+=o,n[a]={width:d,height:g}},vr.calculateLabelAngle=function(t,e){var r=t._private,a=r.rscratch,n=t.isEdge(),i=e?e+"-":"",o=t.pstyle(i+"text-rotation"),s=o.strValue;return s==="none"?0:n&&s==="autorotate"?a.labelAutoAngle:s==="autorotate"?0:o.pfValue},vr.calculateLabelAngles=function(t){var e=this,r=t.isEdge(),a=t._private,n=a.rscratch;n.labelAngle=e.calculateLabelAngle(t),r&&(n.sourceLabelAngle=e.calculateLabelAngle(t,"source"),n.targetLabelAngle=e.calculateLabelAngle(t,"target"))};var ol={},sl=28,ll=!1;ol.getNodeShape=function(t){var e=this,r=t.pstyle("shape").value;if(r==="cutrectangle"&&(t.width()<sl||t.height()<sl))return ll||(vt("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),ll=!0),"rectangle";if(t.isParent())return r==="rectangle"||r==="roundrectangle"||r==="round-rectangle"||r==="cutrectangle"||r==="cut-rectangle"||r==="barrel"?r:"rectangle";if(r==="polygon"){var a=t.pstyle("shape-polygon-points").value;return e.nodeShapes.makePolygon(a).name}return r};var Xn={};Xn.registerCalculationListeners=function(){var t=this.cy,e=t.collection(),r=this,a=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(o),s)for(var u=0;u<o.length;u++){var l=o[u],v=l._private,f=v.rstyle;f.clean=!1,f.cleanConnected=!1}};r.binder(t).on("bounds.* dirty.*",function(o){var s=o.target;a(s)}).on("style.* background.*",function(o){var s=o.target;a(s,!1)});var n=function(o){if(o){var s=r.onUpdateEleCalcsFns;e.cleanStyle();for(var u=0;u<e.length;u++){var l=e[u],v=l._private.rstyle;l.isNode()&&!v.cleanConnected&&(a(l.connectedEdges()),v.cleanConnected=!0)}if(s)for(var f=0;f<s.length;f++){var h=s[f];h(o,e)}r.recalculateRenderedStyle(e),e=t.collection()}};r.flushRenderedStyleQueue=function(){n(!0)},r.beforeRender(n,r.beforeRenderPriorities.eleCalcs)},Xn.onUpdateEleCalcs=function(t){var e=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];e.push(t)},Xn.recalculateRenderedStyle=function(t,e){var r=function(E){return E._private.rstyle.cleanConnected},a=[],n=[];if(!this.destroyed){e===void 0&&(e=!0);for(var i=0;i<t.length;i++){var o=t[i],s=o._private,u=s.rstyle;o.isEdge()&&(!r(o.source())||!r(o.target()))&&(u.clean=!1),!(e&&u.clean||o.removed())&&o.pstyle("display").value!=="none"&&(s.group==="nodes"?n.push(o):a.push(o),u.clean=!0)}for(var l=0;l<n.length;l++){var v=n[l],f=v._private,h=f.rstyle,c=v.position();this.recalculateNodeLabelProjection(v),h.nodeX=c.x,h.nodeY=c.y,h.nodeW=v.pstyle("width").pfValue,h.nodeH=v.pstyle("height").pfValue}this.recalculateEdgeProjections(a);for(var d=0;d<a.length;d++){var g=a[d],y=g._private,p=y.rstyle,m=y.rscratch;p.srcX=m.arrowStartX,p.srcY=m.arrowStartY,p.tgtX=m.arrowEndX,p.tgtY=m.arrowEndY,p.midX=m.midX,p.midY=m.midY,p.labelAngle=m.labelAngle,p.sourceLabelAngle=m.sourceLabelAngle,p.targetLabelAngle=m.targetLabelAngle}}};var Wn={};Wn.updateCachedGrabbedEles=function(){var t=this.cachedZSortedEles;if(t){t.drag=[],t.nondrag=[];for(var e=[],r=0;r<t.length;r++){var a=t[r],n=a._private.rscratch;a.grabbed()&&!a.isParent()?e.push(a):n.inDragLayer?t.drag.push(a):t.nondrag.push(a)}for(var r=0;r<e.length;r++){var a=e[r];t.drag.push(a)}}},Wn.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null},Wn.getCachedZSortedEles=function(t){if(t||!this.cachedZSortedEles){var e=this.cy.mutableElements().toArray();e.sort(Ms),e.interactive=e.filter(function(r){return r.interactive()}),this.cachedZSortedEles=e,this.updateCachedGrabbedEles()}else e=this.cachedZSortedEles;return e};var ul={};[Vr,Hn,Vt,Qa,Fi,vr,ol,Xn,Wn].forEach(function(t){Ue(ul,t)});var vl={};vl.getCachedImage=function(t,e,r){var a=this,n=a.imageCache=a.imageCache||{},i=n[t];if(i)return i.image.complete||i.image.addEventListener("load",r),i.image;i=n[t]=n[t]||{};var o=i.image=new Image;o.addEventListener("load",r),o.addEventListener("error",function(){o.error=!0});var s="data:",u=t.substring(0,s.length).toLowerCase()===s;return u||(o.crossOrigin=e),o.src=t,o};var ya={};ya.registerBinding=function(t,e,r,a){var n=Array.prototype.slice.apply(arguments,[1]),i=this.binder(t);return i.on.apply(i,n)},ya.binder=function(t){var e=this,r=t===window||t===document||t===document.body||$e(t);if(e.supportsPassiveEvents==null){var a=!1;try{var n=Object.defineProperty({},"passive",{get:function(){return a=!0,!0}});window.addEventListener("test",null,n)}catch{}e.supportsPassiveEvents=a}var i=function(s,u,l){var v=Array.prototype.slice.call(arguments);return r&&e.supportsPassiveEvents&&(v[2]={capture:l??!1,passive:!1,once:!1}),e.bindings.push({target:t,args:v}),(t.addEventListener||t.on).apply(t,v),this};return{on:i,addEventListener:i,addListener:i,bind:i}},ya.nodeIsDraggable=function(t){return t&&t.isNode()&&!t.locked()&&t.grabbable()},ya.nodeIsGrabbable=function(t){return this.nodeIsDraggable(t)&&t.interactive()},ya.load=function(){var t=this,e=function(N){return N.selected()},r=function(N,ue,De,me){N==null&&(N=t.cy);for(var be=0;be<ue.length;be++){var Ke=ue[be];N.emit({originalEvent:De,type:Ke,position:me})}},a=function(N){return N.shiftKey||N.metaKey||N.ctrlKey},n=function(N,ue){var De=!0;if(t.cy.hasCompoundNodes()&&N&&N.pannable())for(var me=0;ue&&me<ue.length;me++){var N=ue[me];if(N.isNode()&&N.isParent()&&!N.pannable()){De=!1;break}}else De=!0;return De},i=function(N){N[0]._private.grabbed=!0},o=function(N){N[0]._private.grabbed=!1},s=function(N){N[0]._private.rscratch.inDragLayer=!0},u=function(N){N[0]._private.rscratch.inDragLayer=!1},l=function(N){N[0]._private.rscratch.isGrabTarget=!0},v=function(N){N[0]._private.rscratch.isGrabTarget=!1},f=function(N,ue){var De=ue.addToList,me=De.has(N);!me&&N.grabbable()&&!N.locked()&&(De.merge(N),i(N))},h=function(N,ue){if(N.cy().hasCompoundNodes()&&!(ue.inDragLayer==null&&ue.addToList==null)){var De=N.descendants();ue.inDragLayer&&(De.forEach(s),De.connectedEdges().forEach(s)),ue.addToList&&f(De,ue)}},c=function(N,ue){ue=ue||{};var De=N.cy().hasCompoundNodes();ue.inDragLayer&&(N.forEach(s),N.neighborhood().stdFilter(function(me){return!De||me.isEdge()}).forEach(s)),ue.addToList&&N.forEach(function(me){f(me,ue)}),h(N,ue),y(N,{inDragLayer:ue.inDragLayer}),t.updateCachedGrabbedEles()},d=c,g=function(N){N&&(t.getCachedZSortedEles().forEach(function(ue){o(ue),u(ue),v(ue)}),t.updateCachedGrabbedEles())},y=function(N,ue){if(!(ue.inDragLayer==null&&ue.addToList==null)&&N.cy().hasCompoundNodes()){var De=N.ancestors().orphans();if(!De.same(N)){var me=De.descendants().spawnSelf().merge(De).unmerge(N).unmerge(N.descendants()),be=me.connectedEdges();ue.inDragLayer&&(be.forEach(s),me.forEach(s)),ue.addToList&&me.forEach(function(Ke){f(Ke,ue)})}}},p=function(){document.activeElement!=null&&document.activeElement.blur!=null&&document.activeElement.blur()},m=typeof MutationObserver<"u",b=typeof ResizeObserver<"u";m?(t.removeObserver=new MutationObserver(function(Se){for(var N=0;N<Se.length;N++){var ue=Se[N],De=ue.removedNodes;if(De)for(var me=0;me<De.length;me++){var be=De[me];if(be===t.container){t.destroy();break}}}}),t.container.parentNode&&t.removeObserver.observe(t.container.parentNode,{childList:!0})):t.registerBinding(t.container,"DOMNodeRemoved",function(Se){t.destroy()});var E=un(function(){t.cy.resize()},100);m&&(t.styleObserver=new MutationObserver(E),t.styleObserver.observe(t.container,{attributes:!0})),t.registerBinding(window,"resize",E),b&&(t.resizeObserver=new ResizeObserver(E),t.resizeObserver.observe(t.container));var M=function(N,ue){for(;N!=null;)ue(N),N=N.parentNode},A=function(){t.invalidateContainerClientCoordsCache()};M(t.container,function(Se){t.registerBinding(Se,"transitionend",A),t.registerBinding(Se,"animationend",A),t.registerBinding(Se,"scroll",A)}),t.registerBinding(t.container,"contextmenu",function(Se){Se.preventDefault()});var w=function(){return t.selection[4]!==0},I=function(N){for(var ue=t.findContainerClientCoords(),De=ue[0],me=ue[1],be=ue[2],Ke=ue[3],Le=N.touches?N.touches:[N],Ge=!1,at=0;at<Le.length;at++){var dt=Le[at];if(De<=dt.clientX&&dt.clientX<=De+be&&me<=dt.clientY&&dt.clientY<=me+Ke){Ge=!0;break}}if(!Ge)return!1;for(var Qe=t.container,lt=N.target,Ze=lt.parentNode,Je=!1;Ze;){if(Ze===Qe){Je=!0;break}Ze=Ze.parentNode}return!!Je};t.registerBinding(t.container,"mousedown",function(N){if(I(N)){N.preventDefault(),p(),t.hoverData.capture=!0,t.hoverData.which=N.which;var ue=t.cy,De=[N.clientX,N.clientY],me=t.projectIntoViewport(De[0],De[1]),be=t.selection,Ke=t.findNearestElements(me[0],me[1],!0,!1),Le=Ke[0],Ge=t.dragData.possibleDragElements;t.hoverData.mdownPos=me,t.hoverData.mdownGPos=De;var at=function(){t.hoverData.tapholdCancelled=!1,clearTimeout(t.hoverData.tapholdTimeout),t.hoverData.tapholdTimeout=setTimeout(function(){if(!t.hoverData.tapholdCancelled){var Ct=t.hoverData.down;Ct?Ct.emit({originalEvent:N,type:"taphold",position:{x:me[0],y:me[1]}}):ue.emit({originalEvent:N,type:"taphold",position:{x:me[0],y:me[1]}})}},t.tapholdDuration)};if(N.which==3){t.hoverData.cxtStarted=!0;var dt={originalEvent:N,type:"cxttapstart",position:{x:me[0],y:me[1]}};Le?(Le.activate(),Le.emit(dt),t.hoverData.down=Le):ue.emit(dt),t.hoverData.downTime=new Date().getTime(),t.hoverData.cxtDragged=!1}else if(N.which==1){Le&&Le.activate();{if(Le!=null&&t.nodeIsGrabbable(Le)){var Qe=function(Ct){return{originalEvent:N,type:Ct,position:{x:me[0],y:me[1]}}},lt=function(Ct){Ct.emit(Qe("grab"))};if(l(Le),!Le.selected())Ge=t.dragData.possibleDragElements=ue.collection(),d(Le,{addToList:Ge}),Le.emit(Qe("grabon")).emit(Qe("grab"));else{Ge=t.dragData.possibleDragElements=ue.collection();var Ze=ue.$(function(Je){return Je.isNode()&&Je.selected()&&t.nodeIsGrabbable(Je)});c(Ze,{addToList:Ge}),Le.emit(Qe("grabon")),Ze.forEach(lt)}t.redrawHint("eles",!0),t.redrawHint("drag",!0)}t.hoverData.down=Le,t.hoverData.downs=Ke,t.hoverData.downTime=new Date().getTime()}r(Le,["mousedown","tapstart","vmousedown"],N,{x:me[0],y:me[1]}),Le==null?(be[4]=1,t.data.bgActivePosistion={x:me[0],y:me[1]},t.redrawHint("select",!0),t.redraw()):Le.pannable()&&(be[4]=1),at()}be[0]=be[2]=me[0],be[1]=be[3]=me[1]}},!1),t.registerBinding(window,"mousemove",function(N){var ue=t.hoverData.capture;if(!(!ue&&!I(N))){var De=!1,me=t.cy,be=me.zoom(),Ke=[N.clientX,N.clientY],Le=t.projectIntoViewport(Ke[0],Ke[1]),Ge=t.hoverData.mdownPos,at=t.hoverData.mdownGPos,dt=t.selection,Qe=null;!t.hoverData.draggingEles&&!t.hoverData.dragging&&!t.hoverData.selecting&&(Qe=t.findNearestElement(Le[0],Le[1],!0,!1));var lt=t.hoverData.last,Ze=t.hoverData.down,Je=[Le[0]-dt[2],Le[1]-dt[3]],Ct=t.dragData.possibleDragElements,It;if(at){var ar=Ke[0]-at[0],nr=ar*ar,Rt=Ke[1]-at[1],Qt=Rt*Rt,_t=nr+Qt;t.hoverData.isOverThresholdDrag=It=_t>=t.desktopTapThreshold2}var br=a(N);It&&(t.hoverData.tapholdCancelled=!0);var Ir=function(){var hr=t.hoverData.dragDelta=t.hoverData.dragDelta||[];hr.length===0?(hr.push(Je[0]),hr.push(Je[1])):(hr[0]+=Je[0],hr[1]+=Je[1])};De=!0,r(Qe,["mousemove","vmousemove","tapdrag"],N,{x:Le[0],y:Le[1]});var xa=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||me.emit({originalEvent:N,type:"boxstart",position:{x:Le[0],y:Le[1]}}),dt[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(t.hoverData.which===3){if(It){var Hr={originalEvent:N,type:"cxtdrag",position:{x:Le[0],y:Le[1]}};Ze?Ze.emit(Hr):me.emit(Hr),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||Qe!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:N,type:"cxtdragout",position:{x:Le[0],y:Le[1]}}),t.hoverData.cxtOver=Qe,Qe&&Qe.emit({originalEvent:N,type:"cxtdragover",position:{x:Le[0],y:Le[1]}}))}}else if(t.hoverData.dragging){if(De=!0,me.panningEnabled()&&me.userPanningEnabled()){var Ta;if(t.hoverData.justStartedPan){var Qn=t.hoverData.mdownPos;Ta={x:(Le[0]-Qn[0])*be,y:(Le[1]-Qn[1])*be},t.hoverData.justStartedPan=!1}else Ta={x:Je[0]*be,y:Je[1]*be};me.panBy(Ta),me.emit("dragpan"),t.hoverData.dragged=!0}Le=t.projectIntoViewport(N.clientX,N.clientY)}else if(dt[4]==1&&(Ze==null||Ze.pannable())){if(It){if(!t.hoverData.dragging&&me.boxSelectionEnabled()&&(br||!me.panningEnabled()||!me.userPanningEnabled()))xa();else if(!t.hoverData.selecting&&me.panningEnabled()&&me.userPanningEnabled()){var Xr=n(Ze,t.hoverData.downs);Xr&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,dt[4]=0,t.data.bgActivePosistion=jr(Ge),t.redrawHint("select",!0),t.redraw())}Ze&&Ze.pannable()&&Ze.active()&&Ze.unactivate()}}else{if(Ze&&Ze.pannable()&&Ze.active()&&Ze.unactivate(),(!Ze||!Ze.grabbed())&&Qe!=lt&&(lt&&r(lt,["mouseout","tapdragout"],N,{x:Le[0],y:Le[1]}),Qe&&r(Qe,["mouseover","tapdragover"],N,{x:Le[0],y:Le[1]}),t.hoverData.last=Qe),Ze)if(It){if(me.boxSelectionEnabled()&&br)Ze&&Ze.grabbed()&&(g(Ct),Ze.emit("freeon"),Ct.emit("free"),t.dragData.didDrag&&(Ze.emit("dragfreeon"),Ct.emit("dragfree"))),xa();else if(Ze&&Ze.grabbed()&&t.nodeIsDraggable(Ze)){var Ht=!t.dragData.didDrag;Ht&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||c(Ct,{inDragLayer:!0});var zt={x:0,y:0};if(k(Je[0])&&k(Je[1])&&(zt.x+=Je[0],zt.y+=Je[1],Ht)){var Xt=t.hoverData.dragDelta;Xt&&k(Xt[0])&&k(Xt[1])&&(zt.x+=Xt[0],zt.y+=Xt[1])}t.hoverData.draggingEles=!0,Ct.silentShift(zt).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else Ir();De=!0}if(dt[2]=Le[0],dt[3]=Le[1],De)return N.stopPropagation&&N.stopPropagation(),N.preventDefault&&N.preventDefault(),!1}},!1);var C,B,F;t.registerBinding(window,"mouseup",function(N){var ue=t.hoverData.capture;if(ue){t.hoverData.capture=!1;var De=t.cy,me=t.projectIntoViewport(N.clientX,N.clientY),be=t.selection,Ke=t.findNearestElement(me[0],me[1],!0,!1),Le=t.dragData.possibleDragElements,Ge=t.hoverData.down,at=a(N);if(t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,Ge&&Ge.unactivate(),t.hoverData.which===3){var dt={originalEvent:N,type:"cxttapend",position:{x:me[0],y:me[1]}};if(Ge?Ge.emit(dt):De.emit(dt),!t.hoverData.cxtDragged){var Qe={originalEvent:N,type:"cxttap",position:{x:me[0],y:me[1]}};Ge?Ge.emit(Qe):De.emit(Qe)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(t.hoverData.which===1){if(r(Ke,["mouseup","tapend","vmouseup"],N,{x:me[0],y:me[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(r(Ge,["click","tap","vclick"],N,{x:me[0],y:me[1]}),B=!1,N.timeStamp-F<=De.multiClickDebounceTime()?(C&&clearTimeout(C),B=!0,F=null,r(Ge,["dblclick","dbltap","vdblclick"],N,{x:me[0],y:me[1]})):(C=setTimeout(function(){B||r(Ge,["oneclick","onetap","voneclick"],N,{x:me[0],y:me[1]})},De.multiClickDebounceTime()),F=N.timeStamp)),Ge==null&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!a(N)&&(De.$(e).unselect(["tapunselect"]),Le.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=Le=De.collection()),Ke==Ge&&!t.dragData.didDrag&&!t.hoverData.selecting&&Ke!=null&&Ke._private.selectable&&(t.hoverData.dragging||(De.selectionType()==="additive"||at?Ke.selected()?Ke.unselect(["tapunselect"]):Ke.select(["tapselect"]):at||(De.$(e).unmerge(Ke).unselect(["tapunselect"]),Ke.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var lt=De.collection(t.getAllInBox(be[0],be[1],be[2],be[3]));t.redrawHint("select",!0),lt.length>0&&t.redrawHint("eles",!0),De.emit({type:"boxend",originalEvent:N,position:{x:me[0],y:me[1]}});var Ze=function(It){return It.selectable()&&!It.selected()};De.selectionType()==="additive"||at||De.$(e).unmerge(lt).unselect(),lt.emit("box").stdFilter(Ze).select().emit("boxselect"),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!be[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var Je=Ge&&Ge.grabbed();g(Le),Je&&(Ge.emit("freeon"),Le.emit("free"),t.dragData.didDrag&&(Ge.emit("dragfreeon"),Le.emit("dragfree")))}}be[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null}},!1);var R=function(N){if(!t.scrollingPage){var ue=t.cy,De=ue.zoom(),me=ue.pan(),be=t.projectIntoViewport(N.clientX,N.clientY),Ke=[be[0]*De+me.x,be[1]*De+me.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||w()){N.preventDefault();return}if(ue.panningEnabled()&&ue.userPanningEnabled()&&ue.zoomingEnabled()&&ue.userZoomingEnabled()){N.preventDefault(),t.data.wheelZooming=!0,clearTimeout(t.data.wheelTimeout),t.data.wheelTimeout=setTimeout(function(){t.data.wheelZooming=!1,t.redrawHint("eles",!0),t.redraw()},150);var Le;N.deltaY!=null?Le=N.deltaY/-250:N.wheelDeltaY!=null?Le=N.wheelDeltaY/1e3:Le=N.wheelDelta/1e3,Le=Le*t.wheelSensitivity;var Ge=N.deltaMode===1;Ge&&(Le*=33);var at=ue.zoom()*Math.pow(10,Le);N.type==="gesturechange"&&(at=t.gestureStartZoom*N.scale),ue.zoom({level:at,renderedPosition:{x:Ke[0],y:Ke[1]}}),ue.emit(N.type==="gesturechange"?"pinchzoom":"scrollzoom")}}};t.registerBinding(t.container,"wheel",R,!0),t.registerBinding(window,"scroll",function(N){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},!0),t.registerBinding(t.container,"gesturestart",function(N){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||N.preventDefault()},!0),t.registerBinding(t.container,"gesturechange",function(Se){t.hasTouchStarted||R(Se)},!0),t.registerBinding(t.container,"mouseout",function(N){var ue=t.projectIntoViewport(N.clientX,N.clientY);t.cy.emit({originalEvent:N,type:"mouseout",position:{x:ue[0],y:ue[1]}})},!1),t.registerBinding(t.container,"mouseover",function(N){var ue=t.projectIntoViewport(N.clientX,N.clientY);t.cy.emit({originalEvent:N,type:"mouseover",position:{x:ue[0],y:ue[1]}})},!1);var X,G,re,q,Z,ie,se,de,oe,ce,we,Te,Ee,ye=function(N,ue,De,me){return Math.sqrt((De-N)*(De-N)+(me-ue)*(me-ue))},ae=function(N,ue,De,me){return(De-N)*(De-N)+(me-ue)*(me-ue)},xe;t.registerBinding(t.container,"touchstart",xe=function(N){if(t.hasTouchStarted=!0,!!I(N)){p(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var ue=t.cy,De=t.touchData.now,me=t.touchData.earlier;if(N.touches[0]){var be=t.projectIntoViewport(N.touches[0].clientX,N.touches[0].clientY);De[0]=be[0],De[1]=be[1]}if(N.touches[1]){var be=t.projectIntoViewport(N.touches[1].clientX,N.touches[1].clientY);De[2]=be[0],De[3]=be[1]}if(N.touches[2]){var be=t.projectIntoViewport(N.touches[2].clientX,N.touches[2].clientY);De[4]=be[0],De[5]=be[1]}if(N.touches[1]){t.touchData.singleTouchMoved=!0,g(t.dragData.touchDragEles);var Ke=t.findContainerClientCoords();oe=Ke[0],ce=Ke[1],we=Ke[2],Te=Ke[3],X=N.touches[0].clientX-oe,G=N.touches[0].clientY-ce,re=N.touches[1].clientX-oe,q=N.touches[1].clientY-ce,Ee=0<=X&&X<=we&&0<=re&&re<=we&&0<=G&&G<=Te&&0<=q&&q<=Te;var Le=ue.pan(),Ge=ue.zoom();Z=ye(X,G,re,q),ie=ae(X,G,re,q),se=[(X+re)/2,(G+q)/2],de=[(se[0]-Le.x)/Ge,(se[1]-Le.y)/Ge];var at=200,dt=at*at;if(ie<dt&&!N.touches[2]){var Qe=t.findNearestElement(De[0],De[1],!0,!0),lt=t.findNearestElement(De[2],De[3],!0,!0);Qe&&Qe.isNode()?(Qe.activate().emit({originalEvent:N,type:"cxttapstart",position:{x:De[0],y:De[1]}}),t.touchData.start=Qe):lt&<.isNode()?(lt.activate().emit({originalEvent:N,type:"cxttapstart",position:{x:De[0],y:De[1]}}),t.touchData.start=lt):ue.emit({originalEvent:N,type:"cxttapstart",position:{x:De[0],y:De[1]}}),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!0,t.touchData.cxtDragged=!1,t.data.bgActivePosistion=void 0,t.redraw();return}}if(N.touches[2])ue.boxSelectionEnabled()&&N.preventDefault();else if(!N.touches[1]){if(N.touches[0]){var Ze=t.findNearestElements(De[0],De[1],!0,!0),Je=Ze[0];if(Je!=null&&(Je.activate(),t.touchData.start=Je,t.touchData.starts=Ze,t.nodeIsGrabbable(Je))){var Ct=t.dragData.touchDragEles=ue.collection(),It=null;t.redrawHint("eles",!0),t.redrawHint("drag",!0),Je.selected()?(It=ue.$(function(_t){return _t.selected()&&t.nodeIsGrabbable(_t)}),c(It,{addToList:Ct})):d(Je,{addToList:Ct}),l(Je);var ar=function(br){return{originalEvent:N,type:br,position:{x:De[0],y:De[1]}}};Je.emit(ar("grabon")),It?It.forEach(function(_t){_t.emit(ar("grab"))}):Je.emit(ar("grab"))}r(Je,["touchstart","tapstart","vmousedown"],N,{x:De[0],y:De[1]}),Je==null&&(t.data.bgActivePosistion={x:be[0],y:be[1]},t.redrawHint("select",!0),t.redraw()),t.touchData.singleTouchMoved=!1,t.touchData.singleTouchStartTime=+new Date,clearTimeout(t.touchData.tapholdTimeout),t.touchData.tapholdTimeout=setTimeout(function(){t.touchData.singleTouchMoved===!1&&!t.pinching&&!t.touchData.selecting&&r(t.touchData.start,["taphold"],N,{x:De[0],y:De[1]})},t.tapholdDuration)}}if(N.touches.length>=1){for(var nr=t.touchData.startPosition=[],Rt=0;Rt<De.length;Rt++)nr[Rt]=me[Rt]=De[Rt];var Qt=N.touches[0];t.touchData.startGPosition=[Qt.clientX,Qt.clientY]}}},!1);var Ce;t.registerBinding(window,"touchmove",Ce=function(N){var ue=t.touchData.capture;if(!(!ue&&!I(N))){var De=t.selection,me=t.cy,be=t.touchData.now,Ke=t.touchData.earlier,Le=me.zoom();if(N.touches[0]){var Ge=t.projectIntoViewport(N.touches[0].clientX,N.touches[0].clientY);be[0]=Ge[0],be[1]=Ge[1]}if(N.touches[1]){var Ge=t.projectIntoViewport(N.touches[1].clientX,N.touches[1].clientY);be[2]=Ge[0],be[3]=Ge[1]}if(N.touches[2]){var Ge=t.projectIntoViewport(N.touches[2].clientX,N.touches[2].clientY);be[4]=Ge[0],be[5]=Ge[1]}var at=t.touchData.startGPosition,dt;if(ue&&N.touches[0]&&at){for(var Qe=[],lt=0;lt<be.length;lt++)Qe[lt]=be[lt]-Ke[lt];var Ze=N.touches[0].clientX-at[0],Je=Ze*Ze,Ct=N.touches[0].clientY-at[1],It=Ct*Ct,ar=Je+It;dt=ar>=t.touchTapThreshold2}if(ue&&t.touchData.cxt){N.preventDefault();var nr=N.touches[0].clientX-oe,Rt=N.touches[0].clientY-ce,Qt=N.touches[1].clientX-oe,_t=N.touches[1].clientY-ce,br=ae(nr,Rt,Qt,_t),Ir=br/ie,xa=150,Hr=xa*xa,Ta=1.5,Qn=Ta*Ta;if(Ir>=Qn||br>=Hr){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Xr={originalEvent:N,type:"cxttapend",position:{x:be[0],y:be[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(Xr),t.touchData.start=null):me.emit(Xr)}}if(ue&&t.touchData.cxt){var Xr={originalEvent:N,type:"cxtdrag",position:{x:be[0],y:be[1]}};t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(Xr):me.emit(Xr),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var Ht=t.findNearestElement(be[0],be[1],!0,!0);(!t.touchData.cxtOver||Ht!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:N,type:"cxtdragout",position:{x:be[0],y:be[1]}}),t.touchData.cxtOver=Ht,Ht&&Ht.emit({originalEvent:N,type:"cxtdragover",position:{x:be[0],y:be[1]}}))}else if(ue&&N.touches[2]&&me.boxSelectionEnabled())N.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||me.emit({originalEvent:N,type:"boxstart",position:{x:be[0],y:be[1]}}),t.touchData.selecting=!0,t.touchData.didSelect=!0,De[4]=1,!De||De.length===0||De[0]===void 0?(De[0]=(be[0]+be[2]+be[4])/3,De[1]=(be[1]+be[3]+be[5])/3,De[2]=(be[0]+be[2]+be[4])/3+1,De[3]=(be[1]+be[3]+be[5])/3+1):(De[2]=(be[0]+be[2]+be[4])/3,De[3]=(be[1]+be[3]+be[5])/3),t.redrawHint("select",!0),t.redraw();else if(ue&&N.touches[1]&&!t.touchData.didSelect&&me.zoomingEnabled()&&me.panningEnabled()&&me.userZoomingEnabled()&&me.userPanningEnabled()){N.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var zt=t.dragData.touchDragEles;if(zt){t.redrawHint("drag",!0);for(var Xt=0;Xt<zt.length;Xt++){var Jn=zt[Xt]._private;Jn.grabbed=!1,Jn.rscratch.inDragLayer=!1}}var hr=t.touchData.start,nr=N.touches[0].clientX-oe,Rt=N.touches[0].clientY-ce,Qt=N.touches[1].clientX-oe,_t=N.touches[1].clientY-ce,Pl=ye(nr,Rt,Qt,_t),up=Pl/Z;if(Ee){var vp=nr-X,fp=Rt-G,hp=Qt-re,cp=_t-q,dp=(vp+hp)/2,gp=(fp+cp)/2,rn=me.zoom(),Hi=rn*up,jn=me.pan(),Bl=de[0]*rn+jn.x,Fl=de[1]*rn+jn.y,pp={x:-Hi/rn*(Bl-jn.x-dp)+Bl,y:-Hi/rn*(Fl-jn.y-gp)+Fl};if(hr&&hr.active()){var zt=t.dragData.touchDragEles;g(zt),t.redrawHint("drag",!0),t.redrawHint("eles",!0),hr.unactivate().emit("freeon"),zt.emit("free"),t.dragData.didDrag&&(hr.emit("dragfreeon"),zt.emit("dragfree"))}me.viewport({zoom:Hi,pan:pp,cancelOnFailedZoom:!0}),me.emit("pinchzoom"),Z=Pl,X=nr,G=Rt,re=Qt,q=_t,t.pinching=!0}if(N.touches[0]){var Ge=t.projectIntoViewport(N.touches[0].clientX,N.touches[0].clientY);be[0]=Ge[0],be[1]=Ge[1]}if(N.touches[1]){var Ge=t.projectIntoViewport(N.touches[1].clientX,N.touches[1].clientY);be[2]=Ge[0],be[3]=Ge[1]}if(N.touches[2]){var Ge=t.projectIntoViewport(N.touches[2].clientX,N.touches[2].clientY);be[4]=Ge[0],be[5]=Ge[1]}}else if(N.touches[0]&&!t.touchData.didSelect){var ir=t.touchData.start,Xi=t.touchData.last,Ht;if(!t.hoverData.draggingEles&&!t.swipePanning&&(Ht=t.findNearestElement(be[0],be[1],!0,!0)),ue&&ir!=null&&N.preventDefault(),ue&&ir!=null&&t.nodeIsDraggable(ir))if(dt){var zt=t.dragData.touchDragEles,Gl=!t.dragData.didDrag;Gl&&c(zt,{inDragLayer:!0}),t.dragData.didDrag=!0;var an={x:0,y:0};if(k(Qe[0])&&k(Qe[1])&&(an.x+=Qe[0],an.y+=Qe[1],Gl)){t.redrawHint("eles",!0);var or=t.touchData.dragDelta;or&&k(or[0])&&k(or[1])&&(an.x+=or[0],an.y+=or[1])}t.hoverData.draggingEles=!0,zt.silentShift(an).emit("position drag"),t.redrawHint("drag",!0),t.touchData.startPosition[0]==Ke[0]&&t.touchData.startPosition[1]==Ke[1]&&t.redrawHint("eles",!0),t.redraw()}else{var or=t.touchData.dragDelta=t.touchData.dragDelta||[];or.length===0?(or.push(Qe[0]),or.push(Qe[1])):(or[0]+=Qe[0],or[1]+=Qe[1])}if(r(ir||Ht,["touchmove","tapdrag","vmousemove"],N,{x:be[0],y:be[1]}),(!ir||!ir.grabbed())&&Ht!=Xi&&(Xi&&Xi.emit({originalEvent:N,type:"tapdragout",position:{x:be[0],y:be[1]}}),Ht&&Ht.emit({originalEvent:N,type:"tapdragover",position:{x:be[0],y:be[1]}})),t.touchData.last=Ht,ue)for(var Xt=0;Xt<be.length;Xt++)be[Xt]&&t.touchData.startPosition[Xt]&&dt&&(t.touchData.singleTouchMoved=!0);if(ue&&(ir==null||ir.pannable())&&me.panningEnabled()&&me.userPanningEnabled()){var yp=n(ir,t.touchData.starts);yp&&(N.preventDefault(),t.data.bgActivePosistion||(t.data.bgActivePosistion=jr(t.touchData.startPosition)),t.swipePanning?(me.panBy({x:Qe[0]*Le,y:Qe[1]*Le}),me.emit("dragpan")):dt&&(t.swipePanning=!0,me.panBy({x:Ze*Le,y:Ct*Le}),me.emit("dragpan"),ir&&(ir.unactivate(),t.redrawHint("select",!0),t.touchData.start=null)));var Ge=t.projectIntoViewport(N.touches[0].clientX,N.touches[0].clientY);be[0]=Ge[0],be[1]=Ge[1]}}for(var lt=0;lt<be.length;lt++)Ke[lt]=be[lt];ue&&N.touches.length>0&&!t.hoverData.draggingEles&&!t.swipePanning&&t.data.bgActivePosistion!=null&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1);var Oe;t.registerBinding(window,"touchcancel",Oe=function(N){var ue=t.touchData.start;t.touchData.capture=!1,ue&&ue.unactivate()});var Ie,He,We,Re;if(t.registerBinding(window,"touchend",Ie=function(N){var ue=t.touchData.start,De=t.touchData.capture;if(De)N.touches.length===0&&(t.touchData.capture=!1),N.preventDefault();else return;var me=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var be=t.cy,Ke=be.zoom(),Le=t.touchData.now,Ge=t.touchData.earlier;if(N.touches[0]){var at=t.projectIntoViewport(N.touches[0].clientX,N.touches[0].clientY);Le[0]=at[0],Le[1]=at[1]}if(N.touches[1]){var at=t.projectIntoViewport(N.touches[1].clientX,N.touches[1].clientY);Le[2]=at[0],Le[3]=at[1]}if(N.touches[2]){var at=t.projectIntoViewport(N.touches[2].clientX,N.touches[2].clientY);Le[4]=at[0],Le[5]=at[1]}ue&&ue.unactivate();var dt;if(t.touchData.cxt){if(dt={originalEvent:N,type:"cxttapend",position:{x:Le[0],y:Le[1]}},ue?ue.emit(dt):be.emit(dt),!t.touchData.cxtDragged){var Qe={originalEvent:N,type:"cxttap",position:{x:Le[0],y:Le[1]}};ue?ue.emit(Qe):be.emit(Qe)}t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,t.redraw();return}if(!N.touches[2]&&be.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var lt=be.collection(t.getAllInBox(me[0],me[1],me[2],me[3]));me[0]=void 0,me[1]=void 0,me[2]=void 0,me[3]=void 0,me[4]=0,t.redrawHint("select",!0),be.emit({type:"boxend",originalEvent:N,position:{x:Le[0],y:Le[1]}});var Ze=function(Hr){return Hr.selectable()&&!Hr.selected()};lt.emit("box").stdFilter(Ze).select().emit("boxselect"),lt.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(ue!=null&&ue.unactivate(),N.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!N.touches[1]){if(!N.touches[0]){if(!N.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Je=t.dragData.touchDragEles;if(ue!=null){var Ct=ue._private.grabbed;g(Je),t.redrawHint("drag",!0),t.redrawHint("eles",!0),Ct&&(ue.emit("freeon"),Je.emit("free"),t.dragData.didDrag&&(ue.emit("dragfreeon"),Je.emit("dragfree"))),r(ue,["touchend","tapend","vmouseup","tapdragout"],N,{x:Le[0],y:Le[1]}),ue.unactivate(),t.touchData.start=null}else{var It=t.findNearestElement(Le[0],Le[1],!0,!0);r(It,["touchend","tapend","vmouseup","tapdragout"],N,{x:Le[0],y:Le[1]})}var ar=t.touchData.startPosition[0]-Le[0],nr=ar*ar,Rt=t.touchData.startPosition[1]-Le[1],Qt=Rt*Rt,_t=nr+Qt,br=_t*Ke*Ke;t.touchData.singleTouchMoved||(ue||be.$(":selected").unselect(["tapunselect"]),r(ue,["tap","vclick"],N,{x:Le[0],y:Le[1]}),He=!1,N.timeStamp-Re<=be.multiClickDebounceTime()?(We&&clearTimeout(We),He=!0,Re=null,r(ue,["dbltap","vdblclick"],N,{x:Le[0],y:Le[1]})):(We=setTimeout(function(){He||r(ue,["onetap","voneclick"],N,{x:Le[0],y:Le[1]})},be.multiClickDebounceTime()),Re=N.timeStamp)),ue!=null&&!t.dragData.didDrag&&ue._private.selectable&&br<t.touchTapThreshold2&&!t.pinching&&(be.selectionType()==="single"?(be.$(e).unmerge(ue).unselect(["tapunselect"]),ue.select(["tapselect"])):ue.selected()?ue.unselect(["tapunselect"]):ue.select(["tapselect"]),t.redrawHint("eles",!0)),t.touchData.singleTouchMoved=!0}}}for(var Ir=0;Ir<Le.length;Ir++)Ge[Ir]=Le[Ir];t.dragData.didDrag=!1,N.touches.length===0&&(t.touchData.dragDelta=[],t.touchData.startPosition=null,t.touchData.startGPosition=null,t.touchData.didSelect=!1),N.touches.length<2&&(N.touches.length===1&&(t.touchData.startGPosition=[N.touches[0].clientX,N.touches[0].clientY]),t.pinching=!1,t.redrawHint("eles",!0),t.redraw())},!1),typeof TouchEvent>"u"){var Me=[],Ve=function(N){return{clientX:N.clientX,clientY:N.clientY,force:1,identifier:N.pointerId,pageX:N.pageX,pageY:N.pageY,radiusX:N.width/2,radiusY:N.height/2,screenX:N.screenX,screenY:N.screenY,target:N.target}},Fe=function(N){return{event:N,touch:Ve(N)}},ke=function(N){Me.push(Fe(N))},ze=function(N){for(var ue=0;ue<Me.length;ue++){var De=Me[ue];if(De.event.pointerId===N.pointerId){Me.splice(ue,1);return}}},et=function(N){var ue=Me.filter(function(De){return De.event.pointerId===N.pointerId})[0];ue.event=N,ue.touch=Ve(N)},qe=function(N){N.touches=Me.map(function(ue){return ue.touch})},Ye=function(N){return N.pointerType==="mouse"||N.pointerType===4};t.registerBinding(t.container,"pointerdown",function(Se){Ye(Se)||(Se.preventDefault(),ke(Se),qe(Se),xe(Se))}),t.registerBinding(t.container,"pointerup",function(Se){Ye(Se)||(ze(Se),qe(Se),Ie(Se))}),t.registerBinding(t.container,"pointercancel",function(Se){Ye(Se)||(ze(Se),qe(Se),Oe(Se))}),t.registerBinding(t.container,"pointermove",function(Se){Ye(Se)||(Se.preventDefault(),et(Se),qe(Se),Ce(Se))})}};var yr={};yr.generatePolygon=function(t,e){return this.nodeShapes[t]={renderer:this,name:t,points:e,draw:function(a,n,i,o,s){this.renderer.nodeShapeImpl("polygon",a,n,i,o,s,this.points)},intersectLine:function(a,n,i,o,s,u,l){return Ba(s,u,this.points,a,n,i/2,o/2,l)},checkPoint:function(a,n,i,o,s,u,l){return gr(a,n,this.points,u,l,o,s,[0,-1],i)}}},yr.generateEllipse=function(){return this.nodeShapes.ellipse={renderer:this,name:"ellipse",draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,o,s){return Pv(i,o,e,r,a/2+s,n/2+s)},checkPoint:function(e,r,a,n,i,o,s){return Fr(e,r,n,i,o,s,a)}}},yr.generateRoundPolygon=function(t,e){for(var r=new Array(e.length*2),a=0;a<e.length/2;a++){var n=a*2,i=void 0;a<e.length/2-1?i=(a+1)*2:i=0,r[a*4]=e[n],r[a*4+1]=e[n+1];var o=e[i]-e[n],s=e[i+1]-e[n+1],u=Math.sqrt(o*o+s*s);r[a*4+2]=o/u,r[a*4+3]=s/u}return this.nodeShapes[t]={renderer:this,name:t,points:r,draw:function(v,f,h,c,d){this.renderer.nodeShapeImpl("round-polygon",v,f,h,c,d,this.points)},intersectLine:function(v,f,h,c,d,g,y){return Bv(d,g,this.points,v,f,h,c)},checkPoint:function(v,f,h,c,d,g,y){return kv(v,f,this.points,g,y,c,d)}}},yr.generateRoundRectangle=function(){return this.nodeShapes["round-rectangle"]=this.nodeShapes.roundrectangle={renderer:this,name:"round-rectangle",points:$t(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,o,s){return xo(i,o,e,r,a,n,s)},checkPoint:function(e,r,a,n,i,o,s){var u=Fa(n,i),l=u*2;return!!(gr(e,r,this.points,o,s,n,i-l,[0,-1],a)||gr(e,r,this.points,o,s,n-l,i,[0,-1],a)||Fr(e,r,l,l,o-n/2+u,s-i/2+u,a)||Fr(e,r,l,l,o+n/2-u,s-i/2+u,a)||Fr(e,r,l,l,o+n/2-u,s+i/2-u,a)||Fr(e,r,l,l,o-n/2+u,s+i/2-u,a))}}},yr.generateCutRectangle=function(){return this.nodeShapes["cut-rectangle"]=this.nodeShapes.cutrectangle={renderer:this,name:"cut-rectangle",cornerLength:So(),points:$t(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},generateCutTrianglePts:function(e,r,a,n){var i=this.cornerLength,o=r/2,s=e/2,u=a-s,l=a+s,v=n-o,f=n+o;return{topLeft:[u,v+i,u+i,v,u+i,v+i],topRight:[l-i,v,l,v+i,l-i,v+i],bottomRight:[l,f-i,l-i,f,l-i,f-i],bottomLeft:[u+i,f,u,f-i,u+i,f-i]}},intersectLine:function(e,r,a,n,i,o,s){var u=this.generateCutTrianglePts(a+2*s,n+2*s,e,r),l=[].concat.apply([],[u.topLeft.splice(0,4),u.topRight.splice(0,4),u.bottomRight.splice(0,4),u.bottomLeft.splice(0,4)]);return Ba(i,o,l,e,r)},checkPoint:function(e,r,a,n,i,o,s){if(gr(e,r,this.points,o,s,n,i-2*this.cornerLength,[0,-1],a)||gr(e,r,this.points,o,s,n-2*this.cornerLength,i,[0,-1],a))return!0;var u=this.generateCutTrianglePts(n,i,o,s);return Yt(e,r,u.topLeft)||Yt(e,r,u.topRight)||Yt(e,r,u.bottomRight)||Yt(e,r,u.bottomLeft)}}},yr.generateBarrel=function(){return this.nodeShapes.barrel={renderer:this,name:"barrel",points:$t(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,o,s){var u=.15,l=.5,v=.85,f=this.generateBarrelBezierPts(a+2*s,n+2*s,e,r),h=function(g){var y=ea({x:g[0],y:g[1]},{x:g[2],y:g[3]},{x:g[4],y:g[5]},u),p=ea({x:g[0],y:g[1]},{x:g[2],y:g[3]},{x:g[4],y:g[5]},l),m=ea({x:g[0],y:g[1]},{x:g[2],y:g[3]},{x:g[4],y:g[5]},v);return[g[0],g[1],y.x,y.y,p.x,p.y,m.x,m.y,g[4],g[5]]},c=[].concat(h(f.topLeft),h(f.topRight),h(f.bottomRight),h(f.bottomLeft));return Ba(i,o,c,e,r)},generateBarrelBezierPts:function(e,r,a,n){var i=r/2,o=e/2,s=a-o,u=a+o,l=n-i,v=n+i,f=ci(e,r),h=f.heightOffset,c=f.widthOffset,d=f.ctrlPtOffsetPct*e,g={topLeft:[s,l+h,s+d,l,s+c,l],topRight:[u-c,l,u-d,l,u,l+h],bottomRight:[u,v-h,u-d,v,u-c,v],bottomLeft:[s+c,v,s+d,v,s,v-h]};return g.topLeft.isTop=!0,g.topRight.isTop=!0,g.bottomLeft.isBottom=!0,g.bottomRight.isBottom=!0,g},checkPoint:function(e,r,a,n,i,o,s){var u=ci(n,i),l=u.heightOffset,v=u.widthOffset;if(gr(e,r,this.points,o,s,n,i-2*l,[0,-1],a)||gr(e,r,this.points,o,s,n-2*v,i,[0,-1],a))return!0;for(var f=this.generateBarrelBezierPts(n,i,o,s),h=function(w,I,C){var B=C[4],F=C[2],R=C[0],X=C[5],G=C[1],re=Math.min(B,R),q=Math.max(B,R),Z=Math.min(X,G),ie=Math.max(X,G);if(re<=w&&w<=q&&Z<=I&&I<=ie){var se=Fv(B,F,R),de=Nv(se[0],se[1],se[2],w),oe=de.filter(function(ce){return 0<=ce&&ce<=1});if(oe.length>0)return oe[0]}return null},c=Object.keys(f),d=0;d<c.length;d++){var g=c[d],y=f[g],p=h(e,r,y);if(p!=null){var m=y[5],b=y[3],E=y[1],M=St(m,b,E,p);if(y.isTop&&M<=r||y.isBottom&&r<=M)return!0}}return!1}}},yr.generateBottomRoundrectangle=function(){return this.nodeShapes["bottom-round-rectangle"]=this.nodeShapes.bottomroundrectangle={renderer:this,name:"bottom-round-rectangle",points:$t(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,o,s){var u=e-(a/2+s),l=r-(n/2+s),v=l,f=e+(a/2+s),h=Tr(i,o,e,r,u,l,f,v,!1);return h.length>0?h:xo(i,o,e,r,a,n,s)},checkPoint:function(e,r,a,n,i,o,s){var u=Fa(n,i),l=2*u;if(gr(e,r,this.points,o,s,n,i-l,[0,-1],a)||gr(e,r,this.points,o,s,n-l,i,[0,-1],a))return!0;var v=n/2+2*a,f=i/2+2*a,h=[o-v,s-f,o-v,s,o+v,s,o+v,s-f];return!!(Yt(e,r,h)||Fr(e,r,l,l,o+n/2-u,s+i/2-u,a)||Fr(e,r,l,l,o-n/2+u,s+i/2-u,a))}}},yr.registerNodeShapes=function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",$t(3,0)),this.generateRoundPolygon("round-triangle",$t(3,0)),this.generatePolygon("rectangle",$t(4,0)),t.square=t.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r),this.generateRoundPolygon("round-diamond",r)}this.generatePolygon("pentagon",$t(5,0)),this.generateRoundPolygon("round-pentagon",$t(5,0)),this.generatePolygon("hexagon",$t(6,0)),this.generateRoundPolygon("round-hexagon",$t(6,0)),this.generatePolygon("heptagon",$t(7,0)),this.generateRoundPolygon("round-heptagon",$t(7,0)),this.generatePolygon("octagon",$t(8,0)),this.generateRoundPolygon("round-octagon",$t(8,0));var a=new Array(20);{var n=fi(5,0),i=fi(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s<i.length/2;s++)i[s*2]*=o,i[s*2+1]*=o;for(var s=0;s<20/4;s++)a[s*4]=n[s*2],a[s*4+1]=n[s*2+1],a[s*4+2]=i[s*2],a[s*4+3]=i[s*2+1]}a=Do(a),this.generatePolygon("star",a),this.generatePolygon("vee",[-1,-1,0,-.333,1,-1,0,1]),this.generatePolygon("rhomboid",[-1,-1,.333,-1,1,1,-.333,1]),this.nodeShapes.concavehexagon=this.generatePolygon("concave-hexagon",[-1,-.95,-.75,0,-1,.95,1,.95,.75,0,1,-.95]);{var u=[-1,-1,.25,-1,1,0,.25,1,-1,1];this.generatePolygon("tag",u),this.generateRoundPolygon("round-tag",u)}t.makePolygon=function(l){var v=l.join("$"),f="polygon-"+v,h;return(h=this[f])?h:e.generatePolygon(f,l)}};var Ja={};Ja.timeToRender=function(){return this.redrawTotalTime/this.redrawCount},Ja.redraw=function(t){t=t||po();var e=this;e.averageRedrawTime===void 0&&(e.averageRedrawTime=0),e.lastRedrawTime===void 0&&(e.lastRedrawTime=0),e.lastDrawTime===void 0&&(e.lastDrawTime=0),e.requestedFrame=!0,e.renderOptions=t},Ja.beforeRender=function(t,e){if(!this.destroyed){e==null&&xt("Priority is not optional for beforeRender");var r=this.beforeRenderCallbacks;r.push({fn:t,priority:e}),r.sort(function(a,n){return n.priority-a.priority})}};var fl=function(e,r,a){for(var n=e.beforeRenderCallbacks,i=0;i<n.length;i++)n[i].fn(r,a)};Ja.startRenderLoop=function(){var t=this,e=t.cy;if(!t.renderLoopStarted){t.renderLoopStarted=!0;var r=function a(n){if(!t.destroyed){if(!e.batching())if(t.requestedFrame&&!t.skipFrame){fl(t,!0,n);var i=dr();t.render(t.renderOptions);var o=t.lastDrawTime=dr();t.averageRedrawTime===void 0&&(t.averageRedrawTime=o-i),t.redrawCount===void 0&&(t.redrawCount=0),t.redrawCount++,t.redrawTotalTime===void 0&&(t.redrawTotalTime=0);var s=o-i;t.redrawTotalTime+=s,t.lastRedrawTime=s,t.averageRedrawTime=t.averageRedrawTime/2+s/2,t.requestedFrame=!1}else fl(t,!1,n);t.skipFrame=!1,vn(a)}};vn(r)}};var gg=function(e){this.init(e)},hl=gg,ma=hl.prototype;ma.clientFunctions=["redrawHint","render","renderTo","matchCanvasSize","nodeShapeImpl","arrowShapeImpl"],ma.init=function(t){var e=this;e.options=t,e.cy=t.cy;var r=e.container=t.cy.container();if(D){var a=D.document,n=a.head,i="__________cytoscape_stylesheet",o="__________cytoscape_container",s=a.getElementById(i)!=null;if(r.className.indexOf(o)<0&&(r.className=(r.className||"")+" "+o),!s){var u=a.createElement("style");u.id=i,u.innerHTML="."+o+" { position: relative; }",n.insertBefore(u,n.children[0])}var l=D.getComputedStyle(r),v=l.getPropertyValue("position");v==="static"&&vt("A Cytoscape container has style position:static and so can not use UI extensions properly")}e.selection=[void 0,void 0,void 0,void 0,0],e.bezierProjPcts=[.05,.225,.4,.5,.6,.775,.95],e.hoverData={down:null,last:null,downTime:null,triggerMode:null,dragging:!1,initialPan:[null,null],capture:!1},e.dragData={possibleDragElements:[]},e.touchData={start:null,capture:!1,startPosition:[null,null,null,null,null,null],singleTouchStartTime:null,singleTouchMoved:!0,now:[null,null,null,null,null,null],earlier:[null,null,null,null,null,null]},e.redraws=0,e.showFps=t.showFps,e.debug=t.debug,e.hideEdgesOnViewport=t.hideEdgesOnViewport,e.textureOnViewport=t.textureOnViewport,e.wheelSensitivity=t.wheelSensitivity,e.motionBlurEnabled=t.motionBlur,e.forcedPixelRatio=k(t.pixelRatio)?t.pixelRatio:null,e.motionBlur=t.motionBlur,e.motionBlurOpacity=t.motionBlurOpacity,e.motionBlurTransparency=1-e.motionBlurOpacity,e.motionBlurPxRatio=1,e.mbPxRBlurry=1,e.minMbLowQualFrames=4,e.fullQualityMb=!1,e.clearedForMotionBlur=[],e.desktopTapThreshold=t.desktopTapThreshold,e.desktopTapThreshold2=t.desktopTapThreshold*t.desktopTapThreshold,e.touchTapThreshold=t.touchTapThreshold,e.touchTapThreshold2=t.touchTapThreshold*t.touchTapThreshold,e.tapholdDuration=500,e.bindings=[],e.beforeRenderCallbacks=[],e.beforeRenderPriorities={animations:400,eleCalcs:300,eleTxrDeq:200,lyrTxrDeq:150,lyrTxrSkip:100},e.registerNodeShapes(),e.registerArrowShapes(),e.registerCalculationListeners()},ma.notify=function(t,e){var r=this,a=r.cy;if(!this.destroyed){if(t==="init"){r.load();return}if(t==="destroy"){r.destroy();return}(t==="add"||t==="remove"||t==="move"&&a.hasCompoundNodes()||t==="load"||t==="zorder"||t==="mount")&&r.invalidateCachedZSortedEles(),t==="viewport"&&r.redrawHint("select",!0),(t==="load"||t==="resize"||t==="mount")&&(r.invalidateContainerClientCoordsCache(),r.matchCanvasSize(r.container)),r.redrawHint("eles",!0),r.redrawHint("drag",!0),this.startRenderLoop(),this.redraw()}},ma.destroy=function(){var t=this;t.destroyed=!0,t.cy.stopAnimationLoop();for(var e=0;e<t.bindings.length;e++){var r=t.bindings[e],a=r,n=a.target;(n.off||n.removeEventListener).apply(n,a.args)}if(t.bindings=[],t.beforeRenderCallbacks=[],t.onUpdateEleCalcsFns=[],t.removeObserver&&t.removeObserver.disconnect(),t.styleObserver&&t.styleObserver.disconnect(),t.resizeObserver&&t.resizeObserver.disconnect(),t.labelCalcDiv)try{document.body.removeChild(t.labelCalcDiv)}catch{}},ma.isHeadless=function(){return!1},[Bi,ul,vl,ya,yr,Ja].forEach(function(t){Ue(ma,t)});var Gi=1e3/60,cl={setupDequeueing:function(e){return function(){var a=this,n=this.renderer;if(!a.dequeueingSetup){a.dequeueingSetup=!0;var i=un(function(){n.redrawHint("eles",!0),n.redrawHint("drag",!0),n.redraw()},e.deqRedrawThreshold),o=function(l,v){var f=dr(),h=n.averageRedrawTime,c=n.lastRedrawTime,d=[],g=n.cy.extent(),y=n.getPixelRatio();for(l||n.flushRenderedStyleQueue();;){var p=dr(),m=p-f,b=p-v;if(c<Gi){var E=Gi-(l?h:0);if(b>=e.deqFastCost*E)break}else if(l){if(m>=e.deqCost*c||m>=e.deqAvgCost*h)break}else if(b>=e.deqNoDrawCost*Gi)break;var M=e.deq(a,y,g);if(M.length>0)for(var A=0;A<M.length;A++)d.push(M[A]);else break}d.length>0&&(e.onDeqd(a,d),!l&&e.shouldRedraw(a,d,y,g)&&i())},s=e.priority||ni;n.beforeRender(o,s(a))}}}},pg=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hn;he(this,t),this.idsByKey=new lr,this.keyForId=new lr,this.cachesByLvl=new lr,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=r}return O(t,[{key:"getIdsFor",value:function(r){r==null&&xt("Can not get id list for null key");var a=this.idsByKey,n=this.idsByKey.get(r);return n||(n=new Jr,a.set(r,n)),n}},{key:"addIdForKey",value:function(r,a){r!=null&&this.getIdsFor(r).add(a)}},{key:"deleteIdForKey",value:function(r,a){r!=null&&this.getIdsFor(r).delete(a)}},{key:"getNumberOfIdsForKey",value:function(r){return r==null?0:this.getIdsFor(r).size}},{key:"updateKeyMappingFor",value:function(r){var a=r.id(),n=this.keyForId.get(a),i=this.getKey(r);this.deleteIdForKey(n,a),this.addIdForKey(i,a),this.keyForId.set(a,i)}},{key:"deleteKeyMappingFor",value:function(r){var a=r.id(),n=this.keyForId.get(a);this.deleteIdForKey(n,a),this.keyForId.delete(a)}},{key:"keyHasChangedFor",value:function(r){var a=r.id(),n=this.keyForId.get(a),i=this.getKey(r);return n!==i}},{key:"isInvalid",value:function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)}},{key:"getCachesAt",value:function(r){var a=this.cachesByLvl,n=this.lvls,i=a.get(r);return i||(i=new lr,a.set(r,i),n.push(r)),i}},{key:"getCache",value:function(r,a){return this.getCachesAt(a).get(r)}},{key:"get",value:function(r,a){var n=this.getKey(r),i=this.getCache(n,a);return i!=null&&this.updateKeyMappingFor(r),i}},{key:"getForCachedKey",value:function(r,a){var n=this.keyForId.get(r.id()),i=this.getCache(n,a);return i}},{key:"hasCache",value:function(r,a){return this.getCachesAt(a).has(r)}},{key:"has",value:function(r,a){var n=this.getKey(r);return this.hasCache(n,a)}},{key:"setCache",value:function(r,a,n){n.key=r,this.getCachesAt(a).set(r,n)}},{key:"set",value:function(r,a,n){var i=this.getKey(r);this.setCache(i,a,n),this.updateKeyMappingFor(r)}},{key:"deleteCache",value:function(r,a){this.getCachesAt(a).delete(r)}},{key:"delete",value:function(r,a){var n=this.getKey(r);this.deleteCache(n,a)}},{key:"invalidateKey",value:function(r){var a=this;this.lvls.forEach(function(n){return a.deleteCache(r,n)})}},{key:"invalidate",value:function(r){var a=r.id(),n=this.keyForId.get(a);this.deleteKeyMappingFor(r);var i=this.doesEleInvalidateKey(r);return i&&this.invalidateKey(n),i||this.getNumberOfIdsForKey(n)===0}}]),t}(),dl=25,qn=50,Kn=-4,zi=3,yg=7.99,mg=8,bg=1024,Eg=1024,wg=1024,xg=.2,Tg=.8,Cg=10,Dg=.15,Sg=.1,Lg=.9,Ag=.9,Og=100,Ng=1,ba={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},Mg=Lt({getKey:null,doesEleInvalidateKey:hn,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:fo,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),ja=function(e,r){var a=this;a.renderer=e,a.onDequeues=[];var n=Mg(r);Ue(a,n),a.lookup=new pg(n.getKey,n.doesEleInvalidateKey),a.setupDequeueing()},Dt=ja.prototype;Dt.reasons=ba,Dt.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]},Dt.getRetiredTextureQueue=function(t){var e=this,r=e.eleImgCaches.retired=e.eleImgCaches.retired||{},a=r[t]=r[t]||[];return a},Dt.getElementQueue=function(){var t=this,e=t.eleCacheQueue=t.eleCacheQueue||new Ra(function(r,a){return a.reqs-r.reqs});return e},Dt.getElementKeyToQueue=function(){var t=this,e=t.eleKeyToCacheQueue=t.eleKeyToCacheQueue||{};return e},Dt.getElement=function(t,e,r,a,n){var i=this,o=this.renderer,s=o.cy.zoom(),u=this.lookup;if(!e||e.w===0||e.h===0||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed()||!i.allowEdgeTxrCaching&&t.isEdge()||!i.allowParentTxrCaching&&t.isParent())return null;if(a==null&&(a=Math.ceil(si(s*r))),a<Kn)a=Kn;else if(s>=yg||a>zi)return null;var l=Math.pow(2,a),v=e.h*l,f=e.w*l,h=o.eleTextBiggerThanMin(t,l);if(!this.isVisible(t,h))return null;var c=u.get(t,a);if(c&&c.invalidated&&(c.invalidated=!1,c.texture.invalidatedWidth-=c.width),c)return c;var d;if(v<=dl?d=dl:v<=qn?d=qn:d=Math.ceil(v/qn)*qn,v>wg||f>Eg)return null;var g=i.getTextureQueue(d),y=g[g.length-2],p=function(){return i.recycleTexture(d,f)||i.addTexture(d,f)};y||(y=g[g.length-1]),y||(y=p()),y.width-y.usedWidth<f&&(y=p());for(var m=function(q){return q&&q.scaledLabelShown===h},b=n&&n===ba.dequeue,E=n&&n===ba.highQuality,M=n&&n===ba.downscale,A,w=a+1;w<=zi;w++){var I=u.get(t,w);if(I){A=I;break}}var C=A&&A.level===a+1?A:null,B=function(){y.context.drawImage(C.texture.canvas,C.x,0,C.width,C.height,y.usedWidth,0,f,v)};if(y.context.setTransform(1,0,0,1,0,0),y.context.clearRect(y.usedWidth,0,f,d),m(C))B();else if(m(A))if(E){for(var F=A.level;F>a;F--)C=i.getElement(t,e,r,F,ba.downscale);B()}else return i.queueElement(t,A.level-1),A;else{var R;if(!b&&!E&&!M)for(var X=a-1;X>=Kn;X--){var G=u.get(t,X);if(G){R=G;break}}if(m(R))return i.queueElement(t,a),R;y.context.translate(y.usedWidth,0),y.context.scale(l,l),this.drawElement(y.context,t,e,h,!1),y.context.scale(1/l,1/l),y.context.translate(-y.usedWidth,0)}return c={x:y.usedWidth,texture:y,level:a,scale:l,width:f,height:v,scaledLabelShown:h},y.usedWidth+=Math.ceil(f+mg),y.eleCaches.push(c),u.set(t,a,c),i.checkTextureFullness(y),c},Dt.invalidateElements=function(t){for(var e=0;e<t.length;e++)this.invalidateElement(t[e])},Dt.invalidateElement=function(t){var e=this,r=e.lookup,a=[],n=r.isInvalid(t);if(n){for(var i=Kn;i<=zi;i++){var o=r.getForCachedKey(t,i);o&&a.push(o)}var s=r.invalidate(t);if(s)for(var u=0;u<a.length;u++){var l=a[u],v=l.texture;v.invalidatedWidth+=l.width,l.invalidated=!0,e.checkTextureUtility(v)}e.removeFromQueue(t)}},Dt.checkTextureUtility=function(t){t.invalidatedWidth>=xg*t.width&&this.retireTexture(t)},Dt.checkTextureFullness=function(t){var e=this,r=e.getTextureQueue(t.height);t.usedWidth/t.width>Tg&&t.fullnessChecks>=Cg?wr(r,t):t.fullnessChecks++},Dt.retireTexture=function(t){var e=this,r=t.height,a=e.getTextureQueue(r),n=this.lookup;wr(a,t),t.retired=!0;for(var i=t.eleCaches,o=0;o<i.length;o++){var s=i[o];n.deleteCache(s.key,s.level)}ii(i);var u=e.getRetiredTextureQueue(r);u.push(t)},Dt.addTexture=function(t,e){var r=this,a=r.getTextureQueue(t),n={};return a.push(n),n.eleCaches=[],n.height=t,n.width=Math.max(bg,e),n.usedWidth=0,n.invalidatedWidth=0,n.fullnessChecks=0,n.canvas=r.renderer.makeOffscreenCanvas(n.width,n.height),n.context=n.canvas.getContext("2d"),n},Dt.recycleTexture=function(t,e){for(var r=this,a=r.getTextureQueue(t),n=r.getRetiredTextureQueue(t),i=0;i<n.length;i++){var o=n[i];if(o.width>=e)return o.retired=!1,o.usedWidth=0,o.invalidatedWidth=0,o.fullnessChecks=0,ii(o.eleCaches),o.context.setTransform(1,0,0,1,0,0),o.context.clearRect(0,0,o.width,o.height),wr(n,o),a.push(o),o}},Dt.queueElement=function(t,e){var r=this,a=r.getElementQueue(),n=r.getElementKeyToQueue(),i=this.getKey(t),o=n[i];if(o)o.level=Math.max(o.level,e),o.eles.merge(t),o.reqs++,a.updateItem(o);else{var s={eles:t.spawn().merge(t),level:e,reqs:1,key:i};a.push(s),n[i]=s}},Dt.dequeue=function(t){for(var e=this,r=e.getElementQueue(),a=e.getElementKeyToQueue(),n=[],i=e.lookup,o=0;o<Ng&&r.size()>0;o++){var s=r.pop(),u=s.key,l=s.eles[0],v=i.hasCache(l,s.level);if(a[u]=null,v)continue;n.push(s);var f=e.getBoundingBox(l);e.getElement(l,f,t,s.level,ba.dequeue)}return n},Dt.removeFromQueue=function(t){var e=this,r=e.getElementQueue(),a=e.getElementKeyToQueue(),n=this.getKey(t),i=a[n];i!=null&&(i.eles.length===1?(i.reqs=ai,r.updateItem(i),r.pop(),a[n]=null):i.eles.unmerge(t))},Dt.onDequeue=function(t){this.onDequeues.push(t)},Dt.offDequeue=function(t){wr(this.onDequeues,t)},Dt.setupDequeueing=cl.setupDequeueing({deqRedrawThreshold:Og,deqCost:Dg,deqAvgCost:Sg,deqNoDrawCost:Lg,deqFastCost:Ag,deq:function(e,r,a){return e.dequeue(r,a)},onDeqd:function(e,r){for(var a=0;a<e.onDequeues.length;a++){var n=e.onDequeues[a];n(r)}},shouldRedraw:function(e,r,a,n){for(var i=0;i<r.length;i++)for(var o=r[i].eles,s=0;s<o.length;s++){var u=o[s].boundingBox();if(ui(u,n))return!0}return!1},priority:function(e){return e.renderer.beforeRenderPriorities.eleTxrDeq}});var Ig=1,en=-4,Zn=2,Rg=3.99,kg=50,Pg=50,Bg=.15,Fg=.1,Gg=.9,zg=.9,$g=1,gl=250,Vg=4e3*4e3,_g=!0,pl=function(e){var r=this,a=r.renderer=e,n=a.cy;r.layersByLevel={},r.firstGet=!0,r.lastInvalidationTime=dr()-2*gl,r.skipping=!1,r.eleTxrDeqs=n.collection(),r.scheduleElementRefinement=un(function(){r.refineElementTextures(r.eleTxrDeqs),r.eleTxrDeqs.unmerge(r.eleTxrDeqs)},Pg),a.beforeRender(function(o,s){s-r.lastInvalidationTime<=gl?r.skipping=!0:r.skipping=!1},a.beforeRenderPriorities.lyrTxrSkip);var i=function(s,u){return u.reqs-s.reqs};r.layersQueue=new Ra(i),r.setupDequeueing()},Mt=pl.prototype,yl=0,Ug=Math.pow(2,53)-1;Mt.makeLayer=function(t,e){var r=Math.pow(2,e),a=Math.ceil(t.w*r),n=Math.ceil(t.h*r),i=this.renderer.makeOffscreenCanvas(a,n),o={id:yl=++yl%Ug,bb:t,level:e,width:a,height:n,canvas:i,context:i.getContext("2d"),eles:[],elesQueue:[],reqs:0},s=o.context,u=-o.bb.x1,l=-o.bb.y1;return s.scale(r,r),s.translate(u,l),o},Mt.getLayers=function(t,e,r){var a=this,n=a.renderer,i=n.cy,o=i.zoom(),s=a.firstGet;if(a.firstGet=!1,r==null){if(r=Math.ceil(si(o*e)),r<en)r=en;else if(o>=Rg||r>Zn)return null}a.validateLayersElesOrdering(r,t);var u=a.layersByLevel,l=Math.pow(2,r),v=u[r]=u[r]||[],f,h=a.levelIsComplete(r,t),c,d=function(){var B=function(re){if(a.validateLayersElesOrdering(re,t),a.levelIsComplete(re,t))return c=u[re],!0},F=function(re){if(!c)for(var q=r+re;en<=q&&q<=Zn&&!B(q);q+=re);};F(1),F(-1);for(var R=v.length-1;R>=0;R--){var X=v[R];X.invalid&&wr(v,X)}};if(!h)d();else return v;var g=function(){if(!f){f=Ut();for(var B=0;B<t.length;B++)Dv(f,t[B].boundingBox())}return f},y=function(B){B=B||{};var F=B.after;g();var R=f.w*l*(f.h*l);if(R>Vg)return null;var X=a.makeLayer(f,r);if(F!=null){var G=v.indexOf(F)+1;v.splice(G,0,X)}else(B.insert===void 0||B.insert)&&v.unshift(X);return X};if(a.skipping&&!s)return null;for(var p=null,m=t.length/Ig,b=!s,E=0;E<t.length;E++){var M=t[E],A=M._private.rscratch,w=A.imgLayerCaches=A.imgLayerCaches||{},I=w[r];if(I){p=I;continue}if((!p||p.eles.length>=m||!wo(p.bb,M.boundingBox()))&&(p=y({insert:!0,after:p}),!p))return null;c||b?a.queueLayer(p,M):a.drawEleInLayer(p,M,r,e),p.eles.push(M),w[r]=p}return c||(b?null:v)},Mt.getEleLevelForLayerLevel=function(t,e){return t},Mt.drawEleInLayer=function(t,e,r,a){var n=this,i=this.renderer,o=t.context,s=e.boundingBox();s.w===0||s.h===0||!e.visible()||(r=n.getEleLevelForLayerLevel(r,a),i.setImgSmoothing(o,!1),i.drawCachedElement(o,e,null,null,r,_g),i.setImgSmoothing(o,!0))},Mt.levelIsComplete=function(t,e){var r=this,a=r.layersByLevel[t];if(!a||a.length===0)return!1;for(var n=0,i=0;i<a.length;i++){var o=a[i];if(o.reqs>0||o.invalid)return!1;n+=o.eles.length}return n===e.length},Mt.validateLayersElesOrdering=function(t,e){var r=this.layersByLevel[t];if(r)for(var a=0;a<r.length;a++){for(var n=r[a],i=-1,o=0;o<e.length;o++)if(n.eles[0]===e[o]){i=o;break}if(i<0){this.invalidateLayer(n);continue}for(var s=i,o=0;o<n.eles.length;o++)if(n.eles[o]!==e[s+o]){this.invalidateLayer(n);break}}},Mt.updateElementsInLayers=function(t,e){for(var r=this,a=Ae(t[0]),n=0;n<t.length;n++)for(var i=a?null:t[n],o=a?t[n]:t[n].ele,s=o._private.rscratch,u=s.imgLayerCaches=s.imgLayerCaches||{},l=en;l<=Zn;l++){var v=u[l];v&&(i&&r.getEleLevelForLayerLevel(v.level)!==i.level||e(v,o,i))}},Mt.haveLayers=function(){for(var t=this,e=!1,r=en;r<=Zn;r++){var a=t.layersByLevel[r];if(a&&a.length>0){e=!0;break}}return e},Mt.invalidateElements=function(t){var e=this;t.length!==0&&(e.lastInvalidationTime=dr(),!(t.length===0||!e.haveLayers())&&e.updateElementsInLayers(t,function(a,n,i){e.invalidateLayer(a)}))},Mt.invalidateLayer=function(t){if(this.lastInvalidationTime=dr(),!t.invalid){var e=t.level,r=t.eles,a=this.layersByLevel[e];wr(a,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var n=0;n<r.length;n++){var i=r[n]._private.rscratch.imgLayerCaches;i&&(i[e]=null)}}},Mt.refineElementTextures=function(t){var e=this;e.updateElementsInLayers(t,function(a,n,i){var o=a.replacement;if(o||(o=a.replacement=e.makeLayer(a.bb,a.level),o.replaces=a,o.eles=a.eles),!o.reqs)for(var s=0;s<o.eles.length;s++)e.queueLayer(o,o.eles[s])})},Mt.enqueueElementRefinement=function(t){this.eleTxrDeqs.merge(t),this.scheduleElementRefinement()},Mt.queueLayer=function(t,e){var r=this,a=r.layersQueue,n=t.elesQueue,i=n.hasId=n.hasId||{};if(!t.replacement){if(e){if(i[e.id()])return;n.push(e),i[e.id()]=!0}t.reqs?(t.reqs++,a.updateItem(t)):(t.reqs=1,a.push(t))}},Mt.dequeue=function(t){for(var e=this,r=e.layersQueue,a=[],n=0;n<$g&&r.size()!==0;){var i=r.peek();if(i.replacement){r.pop();continue}if(i.replaces&&i!==i.replaces.replacement){r.pop();continue}if(i.invalid){r.pop();continue}var o=i.elesQueue.shift();o&&(e.drawEleInLayer(i,o,i.level,t),n++),a.length===0&&a.push(!0),i.elesQueue.length===0&&(r.pop(),i.reqs=0,i.replaces&&e.applyLayerReplacement(i),e.requestRedraw())}return a},Mt.applyLayerReplacement=function(t){var e=this,r=e.layersByLevel[t.level],a=t.replaces,n=r.indexOf(a);if(!(n<0||a.invalid)){r[n]=t;for(var i=0;i<t.eles.length;i++){var o=t.eles[i]._private,s=o.imgLayerCaches=o.imgLayerCaches||{};s&&(s[t.level]=t)}e.requestRedraw()}},Mt.requestRedraw=un(function(){var t=this.renderer;t.redrawHint("eles",!0),t.redrawHint("drag",!0),t.redraw()},100),Mt.setupDequeueing=cl.setupDequeueing({deqRedrawThreshold:kg,deqCost:Bg,deqAvgCost:Fg,deqNoDrawCost:Gg,deqFastCost:zg,deq:function(e,r){return e.dequeue(r)},onDeqd:ni,shouldRedraw:fo,priority:function(e){return e.renderer.beforeRenderPriorities.lyrTxrDeq}});var ml={},bl;function Yg(t,e){for(var r=0;r<e.length;r++){var a=e[r];t.lineTo(a.x,a.y)}}function Hg(t,e,r){for(var a,n=0;n<e.length;n++){var i=e[n];n===0&&(a=i),t.lineTo(i.x,i.y)}t.quadraticCurveTo(r.x,r.y,a.x,a.y)}function El(t,e,r){t.beginPath&&t.beginPath();for(var a=e,n=0;n<a.length;n++){var i=a[n];t.lineTo(i.x,i.y)}var o=r,s=r[0];t.moveTo(s.x,s.y);for(var n=1;n<o.length;n++){var i=o[n];t.lineTo(i.x,i.y)}t.closePath&&t.closePath()}function Xg(t,e,r,a,n){t.beginPath&&t.beginPath(),t.arc(r,a,n,0,Math.PI*2,!1);var i=e,o=i[0];t.moveTo(o.x,o.y);for(var s=0;s<i.length;s++){var u=i[s];t.lineTo(u.x,u.y)}t.closePath&&t.closePath()}function Wg(t,e,r,a){t.arc(e,r,a,0,Math.PI*2,!1)}ml.arrowShapeImpl=function(t){return(bl||(bl={polygon:Yg,"triangle-backcurve":Hg,"triangle-tee":El,"circle-triangle":Xg,"triangle-cross":El,circle:Wg}))[t]};var fr={};fr.drawElement=function(t,e,r,a,n,i){var o=this;e.isNode()?o.drawNode(t,e,r,a,n,i):o.drawEdge(t,e,r,a,n,i)},fr.drawElementOverlay=function(t,e){var r=this;e.isNode()?r.drawNodeOverlay(t,e):r.drawEdgeOverlay(t,e)},fr.drawElementUnderlay=function(t,e){var r=this;e.isNode()?r.drawNodeUnderlay(t,e):r.drawEdgeUnderlay(t,e)},fr.drawCachedElementPortion=function(t,e,r,a,n,i,o,s){var u=this,l=r.getBoundingBox(e);if(!(l.w===0||l.h===0)){var v=r.getElement(e,l,a,n,i);if(v!=null){var f=s(u,e);if(f===0)return;var h=o(u,e),c=l.x1,d=l.y1,g=l.w,y=l.h,p,m,b,E,M;if(h!==0){var A=r.getRotationPoint(e);b=A.x,E=A.y,t.translate(b,E),t.rotate(h),M=u.getImgSmoothing(t),M||u.setImgSmoothing(t,!0);var w=r.getRotationOffset(e);p=w.x,m=w.y}else p=c,m=d;var I;f!==1&&(I=t.globalAlpha,t.globalAlpha=I*f),t.drawImage(v.texture.canvas,v.x,0,v.width,v.height,p,m,g,y),f!==1&&(t.globalAlpha=I),h!==0&&(t.rotate(-h),t.translate(-b,-E),M||u.setImgSmoothing(t,!1))}else r.drawElement(t,e)}};var qg=function(){return 0},Kg=function(e,r){return e.getTextAngle(r,null)},Zg=function(e,r){return e.getTextAngle(r,"source")},Qg=function(e,r){return e.getTextAngle(r,"target")},Jg=function(e,r){return r.effectiveOpacity()},$i=function(e,r){return r.pstyle("text-opacity").pfValue*r.effectiveOpacity()};fr.drawCachedElement=function(t,e,r,a,n,i){var o=this,s=o.data,u=s.eleTxrCache,l=s.lblTxrCache,v=s.slbTxrCache,f=s.tlbTxrCache,h=e.boundingBox(),c=i===!0?u.reasons.highQuality:null;if(!(h.w===0||h.h===0||!e.visible())&&(!a||ui(h,a))){var d=e.isEdge(),g=e.element()._private.rscratch.badLine;o.drawElementUnderlay(t,e),o.drawCachedElementPortion(t,e,u,r,n,c,qg,Jg),(!d||!g)&&o.drawCachedElementPortion(t,e,l,r,n,c,Kg,$i),d&&!g&&(o.drawCachedElementPortion(t,e,v,r,n,c,Zg,$i),o.drawCachedElementPortion(t,e,f,r,n,c,Qg,$i)),o.drawElementOverlay(t,e)}},fr.drawElements=function(t,e){for(var r=this,a=0;a<e.length;a++){var n=e[a];r.drawElement(t,n)}},fr.drawCachedElements=function(t,e,r,a){for(var n=this,i=0;i<e.length;i++){var o=e[i];n.drawCachedElement(t,o,r,a)}},fr.drawCachedNodes=function(t,e,r,a){for(var n=this,i=0;i<e.length;i++){var o=e[i];o.isNode()&&n.drawCachedElement(t,o,r,a)}},fr.drawLayeredElements=function(t,e,r,a){var n=this,i=n.data.lyrTxrCache.getLayers(e,r);if(i)for(var o=0;o<i.length;o++){var s=i[o],u=s.bb;u.w===0||u.h===0||t.drawImage(s.canvas,u.x1,u.y1,u.w,u.h)}else n.drawCachedElements(t,e,r,a)};var mr={};mr.drawEdge=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s=e._private.rscratch;if(!(i&&!e.visible())&&!(s.badLine||s.allpts==null||isNaN(s.allpts[0]))){var u;r&&(u=r,t.translate(-u.x1,-u.y1));var l=i?e.pstyle("opacity").value:1,v=i?e.pstyle("line-opacity").value:1,f=e.pstyle("curve-style").value,h=e.pstyle("line-style").value,c=e.pstyle("width").pfValue,d=e.pstyle("line-cap").value,g=l*v,y=l*v,p=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g;f==="straight-triangle"?(o.eleStrokeStyle(t,e,R),o.drawEdgeTrianglePath(e,t,s.allpts)):(t.lineWidth=c,t.lineCap=d,o.eleStrokeStyle(t,e,R),o.drawEdgePath(e,t,s.allpts,h),t.lineCap="butt")},m=function(){n&&o.drawEdgeOverlay(t,e)},b=function(){n&&o.drawEdgeUnderlay(t,e)},E=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y;o.drawArrowheads(t,e,R)},M=function(){o.drawElementText(t,e,null,a)};t.lineJoin="round";var A=e.pstyle("ghost").value==="yes";if(A){var w=e.pstyle("ghost-offset-x").pfValue,I=e.pstyle("ghost-offset-y").pfValue,C=e.pstyle("ghost-opacity").value,B=g*C;t.translate(w,I),p(B),E(B),t.translate(-w,-I)}b(),p(),E(),m(),M(),r&&t.translate(u.x1,u.y1)}};var wl=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,a){if(a.visible()){var n=a.pstyle("".concat(e,"-opacity")).value;if(n!==0){var i=this,o=i.usePaths(),s=a._private.rscratch,u=a.pstyle("".concat(e,"-padding")).pfValue,l=2*u,v=a.pstyle("".concat(e,"-color")).value;r.lineWidth=l,s.edgeType==="self"&&!o?r.lineCap="butt":r.lineCap="round",i.colorStrokeStyle(r,v[0],v[1],v[2],n),i.drawEdgePath(a,r,s.allpts,"solid")}}}};mr.drawEdgeOverlay=wl("overlay"),mr.drawEdgeUnderlay=wl("underlay"),mr.drawEdgePath=function(t,e,r,a){var n=t._private.rscratch,i=e,o,s=!1,u=this.usePaths(),l=t.pstyle("line-dash-pattern").pfValue,v=t.pstyle("line-dash-offset").pfValue;if(u){var f=r.join("$"),h=n.pathCacheKey&&n.pathCacheKey===f;h?(o=e=n.pathCache,s=!0):(o=e=new Path2D,n.pathCacheKey=f,n.pathCache=o)}if(i.setLineDash)switch(a){case"dotted":i.setLineDash([1,1]);break;case"dashed":i.setLineDash(l),i.lineDashOffset=v;break;case"solid":i.setLineDash([]);break}if(!s&&!n.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(r[0],r[1]),n.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var c=2;c+3<r.length;c+=4)e.quadraticCurveTo(r[c],r[c+1],r[c+2],r[c+3]);break;case"straight":case"segments":case"haystack":for(var d=2;d+1<r.length;d+=2)e.lineTo(r[d],r[d+1]);break}e=i,u?e.stroke(o):e.stroke(),e.setLineDash&&e.setLineDash([])},mr.drawEdgeTrianglePath=function(t,e,r){e.fillStyle=e.strokeStyle;for(var a=t.pstyle("width").pfValue,n=0;n+1<r.length;n+=2){var i=[r[n+2]-r[n],r[n+3]-r[n+1]],o=Math.sqrt(i[0]*i[0]+i[1]*i[1]),s=[i[1]/o,-i[0]/o],u=[s[0]*a/2,s[1]*a/2];e.beginPath(),e.moveTo(r[n]-u[0],r[n+1]-u[1]),e.lineTo(r[n]+u[0],r[n+1]+u[1]),e.lineTo(r[n+2],r[n+3]),e.closePath(),e.fill()}},mr.drawArrowheads=function(t,e,r){var a=e._private.rscratch,n=a.edgeType==="haystack";n||this.drawArrowhead(t,e,"source",a.arrowStartX,a.arrowStartY,a.srcArrowAngle,r),this.drawArrowhead(t,e,"mid-target",a.midX,a.midY,a.midtgtArrowAngle,r),this.drawArrowhead(t,e,"mid-source",a.midX,a.midY,a.midsrcArrowAngle,r),n||this.drawArrowhead(t,e,"target",a.arrowEndX,a.arrowEndY,a.tgtArrowAngle,r)},mr.drawArrowhead=function(t,e,r,a,n,i,o){if(!(isNaN(a)||a==null||isNaN(n)||n==null||isNaN(i)||i==null)){var s=this,u=e.pstyle(r+"-arrow-shape").value;if(u!=="none"){var l=e.pstyle(r+"-arrow-fill").value==="hollow"?"both":"filled",v=e.pstyle(r+"-arrow-fill").value,f=e.pstyle("width").pfValue,h=e.pstyle("opacity").value;o===void 0&&(o=h);var c=t.globalCompositeOperation;(o!==1||v==="hollow")&&(t.globalCompositeOperation="destination-out",s.colorFillStyle(t,255,255,255,1),s.colorStrokeStyle(t,255,255,255,1),s.drawArrowShape(e,t,l,f,u,a,n,i),t.globalCompositeOperation=c);var d=e.pstyle(r+"-arrow-color").value;s.colorFillStyle(t,d[0],d[1],d[2],o),s.colorStrokeStyle(t,d[0],d[1],d[2],o),s.drawArrowShape(e,t,v,f,u,a,n,i)}}},mr.drawArrowShape=function(t,e,r,a,n,i,o,s){var u=this,l=this.usePaths()&&n!=="triangle-cross",v=!1,f,h=e,c={x:i,y:o},d=t.pstyle("arrow-scale").value,g=this.getArrowWidth(a,d),y=u.arrowShapes[n];if(l){var p=u.arrowPathCache=u.arrowPathCache||[],m=kr(n),b=p[m];b!=null?(f=e=b,v=!0):(f=e=new Path2D,p[m]=f)}v||(e.beginPath&&e.beginPath(),l?y.draw(e,1,0,{x:0,y:0},1):y.draw(e,g,s,c,a),e.closePath&&e.closePath()),e=h,l&&(e.translate(i,o),e.rotate(s),e.scale(g,g)),(r==="filled"||r==="both")&&(l?e.fill(f):e.fill()),(r==="hollow"||r==="both")&&(e.lineWidth=(y.matchEdgeWidth?a:1)/(l?g:1),e.lineJoin="miter",l?e.stroke(f):e.stroke()),l&&(e.scale(1/g,1/g),e.rotate(-s),e.translate(-i,-o))};var Vi={};Vi.safeDrawImage=function(t,e,r,a,n,i,o,s,u,l){if(!(n<=0||i<=0||u<=0||l<=0))try{t.drawImage(e,r,a,n,i,o,s,u,l)}catch(v){vt(v)}},Vi.drawInscribedImage=function(t,e,r,a,n){var i=this,o=r.position(),s=o.x,u=o.y,l=r.cy().style(),v=l.getIndexedStyle.bind(l),f=v(r,"background-fit","value",a),h=v(r,"background-repeat","value",a),c=r.width(),d=r.height(),g=r.padding()*2,y=c+(v(r,"background-width-relative-to","value",a)==="inner"?0:g),p=d+(v(r,"background-height-relative-to","value",a)==="inner"?0:g),m=r._private.rscratch,b=v(r,"background-clip","value",a),E=b==="node",M=v(r,"background-image-opacity","value",a)*n,A=v(r,"background-image-smoothing","value",a),w=e.width||e.cachedW,I=e.height||e.cachedH;(w==null||I==null)&&(document.body.appendChild(e),w=e.cachedW=e.width||e.offsetWidth,I=e.cachedH=e.height||e.offsetHeight,document.body.removeChild(e));var C=w,B=I;if(v(r,"background-width","value",a)!=="auto"&&(v(r,"background-width","units",a)==="%"?C=v(r,"background-width","pfValue",a)*y:C=v(r,"background-width","pfValue",a)),v(r,"background-height","value",a)!=="auto"&&(v(r,"background-height","units",a)==="%"?B=v(r,"background-height","pfValue",a)*p:B=v(r,"background-height","pfValue",a)),!(C===0||B===0)){if(f==="contain"){var F=Math.min(y/C,p/B);C*=F,B*=F}else if(f==="cover"){var F=Math.max(y/C,p/B);C*=F,B*=F}var R=s-y/2,X=v(r,"background-position-x","units",a),G=v(r,"background-position-x","pfValue",a);X==="%"?R+=(y-C)*G:R+=G;var re=v(r,"background-offset-x","units",a),q=v(r,"background-offset-x","pfValue",a);re==="%"?R+=(y-C)*q:R+=q;var Z=u-p/2,ie=v(r,"background-position-y","units",a),se=v(r,"background-position-y","pfValue",a);ie==="%"?Z+=(p-B)*se:Z+=se;var de=v(r,"background-offset-y","units",a),oe=v(r,"background-offset-y","pfValue",a);de==="%"?Z+=(p-B)*oe:Z+=oe,m.pathCache&&(R-=s,Z-=u,s=0,u=0);var ce=t.globalAlpha;t.globalAlpha=M;var we=i.getImgSmoothing(t),Te=!1;if(A==="no"&&we?(i.setImgSmoothing(t,!1),Te=!0):A==="yes"&&!we&&(i.setImgSmoothing(t,!0),Te=!0),h==="no-repeat")E&&(t.save(),m.pathCache?t.clip(m.pathCache):(i.nodeShapes[i.getNodeShape(r)].draw(t,s,u,y,p),t.clip())),i.safeDrawImage(t,e,0,0,w,I,R,Z,C,B),E&&t.restore();else{var Ee=t.createPattern(e,h);t.fillStyle=Ee,i.nodeShapes[i.getNodeShape(r)].draw(t,s,u,y,p),t.translate(R,Z),t.fill(),t.translate(-R,-Z)}t.globalAlpha=ce,Te&&i.setImgSmoothing(t,we)}};var _r={};_r.eleTextBiggerThanMin=function(t,e){if(!e){var r=t.cy().zoom(),a=this.getPixelRatio(),n=Math.ceil(si(r*a));e=Math.pow(2,n)}var i=t.pstyle("font-size").pfValue*e,o=t.pstyle("min-zoomed-font-size").pfValue;return!(i<o)},_r.drawElementText=function(t,e,r,a,n){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this;if(a==null){if(i&&!o.eleTextBiggerThanMin(e))return}else if(a===!1)return;if(e.isNode()){var s=e.pstyle("label");if(!s||!s.value)return;var u=o.getLabelJustification(e);t.textAlign=u,t.textBaseline="bottom"}else{var l=e.element()._private.rscratch.badLine,v=e.pstyle("label"),f=e.pstyle("source-label"),h=e.pstyle("target-label");if(l||(!v||!v.value)&&(!f||!f.value)&&(!h||!h.value))return;t.textAlign="center",t.textBaseline="bottom"}var c=!r,d;r&&(d=r,t.translate(-d.x1,-d.y1)),n==null?(o.drawText(t,e,null,c,i),e.isEdge()&&(o.drawText(t,e,"source",c,i),o.drawText(t,e,"target",c,i))):o.drawText(t,e,n,c,i),r&&t.translate(d.x1,d.y1)},_r.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var r=0;r<this.fontCaches.length;r++)if(e=this.fontCaches[r],e.context===t)return e;return e={context:t},this.fontCaches.push(e),e},_r.setupTextStyle=function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=e.pstyle("font-style").strValue,n=e.pstyle("font-size").pfValue+"px",i=e.pstyle("font-family").strValue,o=e.pstyle("font-weight").strValue,s=r?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,u=e.pstyle("text-outline-opacity").value*s,l=e.pstyle("color").value,v=e.pstyle("text-outline-color").value;t.font=a+" "+o+" "+n+" "+i,t.lineJoin="round",this.colorFillStyle(t,l[0],l[1],l[2],s),this.colorStrokeStyle(t,v[0],v[1],v[2],u)};function jg(t,e,r,a,n){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5;t.beginPath(),t.moveTo(e+i,r),t.lineTo(e+a-i,r),t.quadraticCurveTo(e+a,r,e+a,r+i),t.lineTo(e+a,r+n-i),t.quadraticCurveTo(e+a,r+n,e+a-i,r+n),t.lineTo(e+i,r+n),t.quadraticCurveTo(e,r+n,e,r+n-i),t.lineTo(e,r+i),t.quadraticCurveTo(e,r,e+i,r),t.closePath(),t.fill()}_r.getTextAngle=function(t,e){var r,a=t._private,n=a.rscratch,i=e?e+"-":"",o=t.pstyle(i+"text-rotation"),s=er(n,"labelAngle",e);return o.strValue==="autorotate"?r=t.isEdge()?s:0:o.strValue==="none"?r=0:r=o.pfValue,r},_r.drawText=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=e._private,o=i.rscratch,s=n?e.effectiveOpacity():1;if(!(n&&(s===0||e.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var u=er(o,"labelX",r),l=er(o,"labelY",r),v,f,h=this.getLabelText(e,r);if(h!=null&&h!==""&&!isNaN(u)&&!isNaN(l)){this.setupTextStyle(t,e,n);var c=r?r+"-":"",d=er(o,"labelWidth",r),g=er(o,"labelHeight",r),y=e.pstyle(c+"text-margin-x").pfValue,p=e.pstyle(c+"text-margin-y").pfValue,m=e.isEdge(),b=e.pstyle("text-halign").value,E=e.pstyle("text-valign").value;m&&(b="center",E="center"),u+=y,l+=p;var M;switch(a?M=this.getTextAngle(e,r):M=0,M!==0&&(v=u,f=l,t.translate(v,f),t.rotate(M),u=0,l=0),E){case"top":break;case"center":l+=g/2;break;case"bottom":l+=g;break}var A=e.pstyle("text-background-opacity").value,w=e.pstyle("text-border-opacity").value,I=e.pstyle("text-border-width").pfValue,C=e.pstyle("text-background-padding").pfValue;if(A>0||I>0&&w>0){var B=u-C;switch(b){case"left":B-=d;break;case"center":B-=d/2;break}var F=l-g-C,R=d+2*C,X=g+2*C;if(A>0){var G=t.fillStyle,re=e.pstyle("text-background-color").value;t.fillStyle="rgba("+re[0]+","+re[1]+","+re[2]+","+A*s+")";var q=e.pstyle("text-background-shape").strValue;q.indexOf("round")===0?jg(t,B,F,R,X,2):t.fillRect(B,F,R,X),t.fillStyle=G}if(I>0&&w>0){var Z=t.strokeStyle,ie=t.lineWidth,se=e.pstyle("text-border-color").value,de=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+se[0]+","+se[1]+","+se[2]+","+w*s+")",t.lineWidth=I,t.setLineDash)switch(de){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=I/4,t.setLineDash([]);break;case"solid":t.setLineDash([]);break}if(t.strokeRect(B,F,R,X),de==="double"){var oe=I/2;t.strokeRect(B+oe,F+oe,R-oe*2,X-oe*2)}t.setLineDash&&t.setLineDash([]),t.lineWidth=ie,t.strokeStyle=Z}}var ce=2*e.pstyle("text-outline-width").pfValue;if(ce>0&&(t.lineWidth=ce),e.pstyle("text-wrap").value==="wrap"){var we=er(o,"labelWrapCachedLines",r),Te=er(o,"labelLineHeight",r),Ee=d/2,ye=this.getLabelJustification(e);switch(ye==="auto"||(b==="left"?ye==="left"?u+=-d:ye==="center"&&(u+=-Ee):b==="center"?ye==="left"?u+=-Ee:ye==="right"&&(u+=Ee):b==="right"&&(ye==="center"?u+=Ee:ye==="right"&&(u+=d))),E){case"top":l-=(we.length-1)*Te;break;case"center":case"bottom":l-=(we.length-1)*Te;break}for(var ae=0;ae<we.length;ae++)ce>0&&t.strokeText(we[ae],u,l),t.fillText(we[ae],u,l),l+=Te}else ce>0&&t.strokeText(h,u,l),t.fillText(h,u,l);M!==0&&(t.rotate(-M),t.translate(-v,-f))}}};var Ea={};Ea.drawNode=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s,u,l=e._private,v=l.rscratch,f=e.position();if(!(!k(f.x)||!k(f.y))&&!(i&&!e.visible())){var h=i?e.effectiveOpacity():1,c=o.usePaths(),d,g=!1,y=e.padding();s=e.width()+2*y,u=e.height()+2*y;var p;r&&(p=r,t.translate(-p.x1,-p.y1));for(var m=e.pstyle("background-image"),b=m.value,E=new Array(b.length),M=new Array(b.length),A=0,w=0;w<b.length;w++){var I=b[w],C=E[w]=I!=null&&I!=="none";if(C){var B=e.cy().style().getIndexedStyle(e,"background-image-crossorigin","value",w);A++,M[w]=o.getCachedImage(I,B,function(){l.backgroundTimestamp=Date.now(),e.emitAndNotify("background")})}}var F=e.pstyle("background-blacken").value,R=e.pstyle("border-width").pfValue,X=e.pstyle("background-opacity").value*h,G=e.pstyle("border-color").value,re=e.pstyle("border-style").value,q=e.pstyle("border-opacity").value*h;t.lineJoin="miter";var Z=function(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X;o.eleFillStyle(t,e,ke)},ie=function(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q;o.colorStrokeStyle(t,G[0],G[1],G[2],ke)},se=e.pstyle("shape").strValue,de=e.pstyle("shape-polygon-points").pfValue;if(c){t.translate(f.x,f.y);var oe=o.nodePathCache=o.nodePathCache||[],ce=uo(se==="polygon"?se+","+de.join(","):se,""+u,""+s),we=oe[ce];we!=null?(d=we,g=!0,v.pathCache=d):(d=new Path2D,oe[ce]=v.pathCache=d)}var Te=function(){if(!g){var ke=f;c&&(ke={x:0,y:0}),o.nodeShapes[o.getNodeShape(e)].draw(d||t,ke.x,ke.y,s,u)}c?t.fill(d):t.fill()},Ee=function(){for(var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h,ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,et=l.backgrounding,qe=0,Ye=0;Ye<M.length;Ye++){var Se=e.cy().style().getIndexedStyle(e,"background-image-containment","value",Ye);if(ze&&Se==="over"||!ze&&Se==="inside"){qe++;continue}E[Ye]&&M[Ye].complete&&!M[Ye].error&&(qe++,o.drawInscribedImage(t,M[Ye],e,Ye,ke))}l.backgrounding=qe!==A,et!==l.backgrounding&&e.updateStyle(!1)},ye=function(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h;o.hasPie(e)&&(o.drawPie(t,e,ze),ke&&(c||o.nodeShapes[o.getNodeShape(e)].draw(t,f.x,f.y,s,u)))},ae=function(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h,ze=(F>0?F:-F)*ke,et=F>0?0:255;F!==0&&(o.colorFillStyle(t,et,et,et,ze),c?t.fill(d):t.fill())},xe=function(){if(R>0){if(t.lineWidth=R,t.lineCap="butt",t.setLineDash)switch(re){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}if(c?t.stroke(d):t.stroke(),re==="double"){t.lineWidth=R/3;var ke=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",c?t.stroke(d):t.stroke(),t.globalCompositeOperation=ke}t.setLineDash&&t.setLineDash([])}},Ce=function(){n&&o.drawNodeOverlay(t,e,f,s,u)},Oe=function(){n&&o.drawNodeUnderlay(t,e,f,s,u)},Ie=function(){o.drawElementText(t,e,null,a)},He=e.pstyle("ghost").value==="yes";if(He){var We=e.pstyle("ghost-offset-x").pfValue,Re=e.pstyle("ghost-offset-y").pfValue,Me=e.pstyle("ghost-opacity").value,Ve=Me*h;t.translate(We,Re),Z(Me*X),Te(),Ee(Ve,!0),ie(Me*q),xe(),ye(F!==0||R!==0),Ee(Ve,!1),ae(Ve),t.translate(-We,-Re)}c&&t.translate(-f.x,-f.y),Oe(),c&&t.translate(f.x,f.y),Z(),Te(),Ee(h,!0),ie(),xe(),ye(F!==0||R!==0),Ee(h,!1),ae(),c&&t.translate(-f.x,-f.y),Ie(),Ce(),r&&t.translate(p.x1,p.y1)}};var xl=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,a,n,i,o){var s=this;if(a.visible()){var u=a.pstyle("".concat(e,"-padding")).pfValue,l=a.pstyle("".concat(e,"-opacity")).value,v=a.pstyle("".concat(e,"-color")).value,f=a.pstyle("".concat(e,"-shape")).value;if(l>0){if(n=n||a.position(),i==null||o==null){var h=a.padding();i=a.width()+2*h,o=a.height()+2*h}s.colorFillStyle(r,v[0],v[1],v[2],l),s.nodeShapes[f].draw(r,n.x,n.y,i+u*2,o+u*2),r.fill()}}}};Ea.drawNodeOverlay=xl("overlay"),Ea.drawNodeUnderlay=xl("underlay"),Ea.hasPie=function(t){return t=t[0],t._private.hasPie},Ea.drawPie=function(t,e,r,a){e=e[0],a=a||e.position();var n=e.cy().style(),i=e.pstyle("pie-size"),o=a.x,s=a.y,u=e.width(),l=e.height(),v=Math.min(u,l)/2,f=0,h=this.usePaths();h&&(o=0,s=0),i.units==="%"?v=v*i.pfValue:i.pfValue!==void 0&&(v=i.pfValue/2);for(var c=1;c<=n.pieBackgroundN;c++){var d=e.pstyle("pie-"+c+"-background-size").value,g=e.pstyle("pie-"+c+"-background-color").value,y=e.pstyle("pie-"+c+"-background-opacity").value*r,p=d/100;p+f>1&&(p=1-f);var m=1.5*Math.PI+2*Math.PI*f,b=2*Math.PI*p,E=m+b;d===0||f>=1||f+p>1||(t.beginPath(),t.moveTo(o,s),t.arc(o,s,v,m,E),t.closePath(),this.colorFillStyle(t,g[0],g[1],g[2],y),t.fill(),f+=p)}};var qt={},ep=100;qt.getPixelRatio=function(){var t=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var e=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/e},qt.paintCache=function(t){for(var e=this.paintCaches=this.paintCaches||[],r=!0,a,n=0;n<e.length;n++)if(a=e[n],a.context===t){r=!1;break}return r&&(a={context:t},e.push(a)),a},qt.createGradientStyleFor=function(t,e,r,a,n){var i,o=this.usePaths(),s=r.pstyle(e+"-gradient-stop-colors").value,u=r.pstyle(e+"-gradient-stop-positions").pfValue;if(a==="radial-gradient")if(r.isEdge()){var l=r.sourceEndpoint(),v=r.targetEndpoint(),f=r.midpoint(),h=Pr(l,f),c=Pr(v,f);i=t.createRadialGradient(f.x,f.y,0,f.x,f.y,Math.max(h,c))}else{var d=o?{x:0,y:0}:r.position(),g=r.paddedWidth(),y=r.paddedHeight();i=t.createRadialGradient(d.x,d.y,0,d.x,d.y,Math.max(g,y))}else if(r.isEdge()){var p=r.sourceEndpoint(),m=r.targetEndpoint();i=t.createLinearGradient(p.x,p.y,m.x,m.y)}else{var b=o?{x:0,y:0}:r.position(),E=r.paddedWidth(),M=r.paddedHeight(),A=E/2,w=M/2,I=r.pstyle("background-gradient-direction").value;switch(I){case"to-bottom":i=t.createLinearGradient(b.x,b.y-w,b.x,b.y+w);break;case"to-top":i=t.createLinearGradient(b.x,b.y+w,b.x,b.y-w);break;case"to-left":i=t.createLinearGradient(b.x+A,b.y,b.x-A,b.y);break;case"to-right":i=t.createLinearGradient(b.x-A,b.y,b.x+A,b.y);break;case"to-bottom-right":case"to-right-bottom":i=t.createLinearGradient(b.x-A,b.y-w,b.x+A,b.y+w);break;case"to-top-right":case"to-right-top":i=t.createLinearGradient(b.x-A,b.y+w,b.x+A,b.y-w);break;case"to-bottom-left":case"to-left-bottom":i=t.createLinearGradient(b.x+A,b.y-w,b.x-A,b.y+w);break;case"to-top-left":case"to-left-top":i=t.createLinearGradient(b.x+A,b.y+w,b.x-A,b.y-w);break}}if(!i)return null;for(var C=u.length===s.length,B=s.length,F=0;F<B;F++)i.addColorStop(C?u[F]:F/(B-1),"rgba("+s[F][0]+","+s[F][1]+","+s[F][2]+","+n+")");return i},qt.gradientFillStyle=function(t,e,r,a){var n=this.createGradientStyleFor(t,"background",e,r,a);if(!n)return null;t.fillStyle=n},qt.colorFillStyle=function(t,e,r,a,n){t.fillStyle="rgba("+e+","+r+","+a+","+n+")"},qt.eleFillStyle=function(t,e,r){var a=e.pstyle("background-fill").value;if(a==="linear-gradient"||a==="radial-gradient")this.gradientFillStyle(t,e,a,r);else{var n=e.pstyle("background-color").value;this.colorFillStyle(t,n[0],n[1],n[2],r)}},qt.gradientStrokeStyle=function(t,e,r,a){var n=this.createGradientStyleFor(t,"line",e,r,a);if(!n)return null;t.strokeStyle=n},qt.colorStrokeStyle=function(t,e,r,a,n){t.strokeStyle="rgba("+e+","+r+","+a+","+n+")"},qt.eleStrokeStyle=function(t,e,r){var a=e.pstyle("line-fill").value;if(a==="linear-gradient"||a==="radial-gradient")this.gradientStrokeStyle(t,e,a,r);else{var n=e.pstyle("line-color").value;this.colorStrokeStyle(t,n[0],n[1],n[2],r)}},qt.matchCanvasSize=function(t){var e=this,r=e.data,a=e.findContainerClientCoords(),n=a[2],i=a[3],o=e.getPixelRatio(),s=e.motionBlurPxRatio;(t===e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE]||t===e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG])&&(o=s);var u=n*o,l=i*o,v;if(!(u===e.canvasWidth&&l===e.canvasHeight)){e.fontCaches=null;var f=r.canvasContainer;f.style.width=n+"px",f.style.height=i+"px";for(var h=0;h<e.CANVAS_LAYERS;h++)v=r.canvases[h],v.width=u,v.height=l,v.style.width=n+"px",v.style.height=i+"px";for(var h=0;h<e.BUFFER_COUNT;h++)v=r.bufferCanvases[h],v.width=u,v.height=l,v.style.width=n+"px",v.style.height=i+"px";e.textureMult=1,o<=1&&(v=r.bufferCanvases[e.TEXTURE_BUFFER],e.textureMult=2,v.width=u*e.textureMult,v.height=l*e.textureMult),e.canvasWidth=u,e.canvasHeight=l}},qt.renderTo=function(t,e,r,a){this.render({forcedContext:t,forcedZoom:e,forcedPan:r,drawAllLayers:!0,forcedPxRatio:a})},qt.render=function(t){t=t||po();var e=t.forcedContext,r=t.drawAllLayers,a=t.drawOnlyNodeLayer,n=t.forcedZoom,i=t.forcedPan,o=this,s=t.forcedPxRatio===void 0?this.getPixelRatio():t.forcedPxRatio,u=o.cy,l=o.data,v=l.canvasNeedsRedraw,f=o.textureOnViewport&&!e&&(o.pinching||o.hoverData.dragging||o.swipePanning||o.data.wheelZooming),h=t.motionBlur!==void 0?t.motionBlur:o.motionBlur,c=o.motionBlurPxRatio,d=u.hasCompoundNodes(),g=o.hoverData.draggingEles,y=!!(o.hoverData.selecting||o.touchData.selecting);h=h&&!e&&o.motionBlurEnabled&&!y;var p=h;e||(o.prevPxRatio!==s&&(o.invalidateContainerClientCoordsCache(),o.matchCanvasSize(o.container),o.redrawHint("eles",!0),o.redrawHint("drag",!0)),o.prevPxRatio=s),!e&&o.motionBlurTimeout&&clearTimeout(o.motionBlurTimeout),h&&(o.mbFrames==null&&(o.mbFrames=0),o.mbFrames++,o.mbFrames<3&&(p=!1),o.mbFrames>o.minMbLowQualFrames&&(o.motionBlurPxRatio=o.mbPxRBlurry)),o.clearingMotionBlur&&(o.motionBlurPxRatio=1),o.textureDrawLastFrame&&!f&&(v[o.NODE]=!0,v[o.SELECT_BOX]=!0);var m=u.style(),b=u.zoom(),E=n!==void 0?n:b,M=u.pan(),A={x:M.x,y:M.y},w={zoom:b,pan:{x:M.x,y:M.y}},I=o.prevViewport,C=I===void 0||w.zoom!==I.zoom||w.pan.x!==I.pan.x||w.pan.y!==I.pan.y;!C&&!(g&&!d)&&(o.motionBlurPxRatio=1),i&&(A=i),E*=s,A.x*=s,A.y*=s;var B=o.getCachedZSortedEles();function F(Re,Me,Ve,Fe,ke){var ze=Re.globalCompositeOperation;Re.globalCompositeOperation="destination-out",o.colorFillStyle(Re,255,255,255,o.motionBlurTransparency),Re.fillRect(Me,Ve,Fe,ke),Re.globalCompositeOperation=ze}function R(Re,Me){var Ve,Fe,ke,ze;!o.clearingMotionBlur&&(Re===l.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]||Re===l.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG])?(Ve={x:M.x*c,y:M.y*c},Fe=b*c,ke=o.canvasWidth*c,ze=o.canvasHeight*c):(Ve=A,Fe=E,ke=o.canvasWidth,ze=o.canvasHeight),Re.setTransform(1,0,0,1,0,0),Me==="motionBlur"?F(Re,0,0,ke,ze):!e&&(Me===void 0||Me)&&Re.clearRect(0,0,ke,ze),r||(Re.translate(Ve.x,Ve.y),Re.scale(Fe,Fe)),i&&Re.translate(i.x,i.y),n&&Re.scale(n,n)}if(f||(o.textureDrawLastFrame=!1),f){if(o.textureDrawLastFrame=!0,!o.textureCache){o.textureCache={},o.textureCache.bb=u.mutableElements().boundingBox(),o.textureCache.texture=o.data.bufferCanvases[o.TEXTURE_BUFFER];var X=o.data.bufferContexts[o.TEXTURE_BUFFER];X.setTransform(1,0,0,1,0,0),X.clearRect(0,0,o.canvasWidth*o.textureMult,o.canvasHeight*o.textureMult),o.render({forcedContext:X,drawOnlyNodeLayer:!0,forcedPxRatio:s*o.textureMult});var w=o.textureCache.viewport={zoom:u.zoom(),pan:u.pan(),width:o.canvasWidth,height:o.canvasHeight};w.mpan={x:(0-w.pan.x)/w.zoom,y:(0-w.pan.y)/w.zoom}}v[o.DRAG]=!1,v[o.NODE]=!1;var G=l.contexts[o.NODE],re=o.textureCache.texture,w=o.textureCache.viewport;G.setTransform(1,0,0,1,0,0),h?F(G,0,0,w.width,w.height):G.clearRect(0,0,w.width,w.height);var q=m.core("outside-texture-bg-color").value,Z=m.core("outside-texture-bg-opacity").value;o.colorFillStyle(G,q[0],q[1],q[2],Z),G.fillRect(0,0,w.width,w.height);var b=u.zoom();R(G,!1),G.clearRect(w.mpan.x,w.mpan.y,w.width/w.zoom/s,w.height/w.zoom/s),G.drawImage(re,w.mpan.x,w.mpan.y,w.width/w.zoom/s,w.height/w.zoom/s)}else o.textureOnViewport&&!e&&(o.textureCache=null);var ie=u.extent(),se=o.pinching||o.hoverData.dragging||o.swipePanning||o.data.wheelZooming||o.hoverData.draggingEles||o.cy.animated(),de=o.hideEdgesOnViewport&&se,oe=[];if(oe[o.NODE]=!v[o.NODE]&&h&&!o.clearedForMotionBlur[o.NODE]||o.clearingMotionBlur,oe[o.NODE]&&(o.clearedForMotionBlur[o.NODE]=!0),oe[o.DRAG]=!v[o.DRAG]&&h&&!o.clearedForMotionBlur[o.DRAG]||o.clearingMotionBlur,oe[o.DRAG]&&(o.clearedForMotionBlur[o.DRAG]=!0),v[o.NODE]||r||a||oe[o.NODE]){var ce=h&&!oe[o.NODE]&&c!==1,G=e||(ce?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]:l.contexts[o.NODE]),we=h&&!ce?"motionBlur":void 0;R(G,we),de?o.drawCachedNodes(G,B.nondrag,s,ie):o.drawLayeredElements(G,B.nondrag,s,ie),o.debug&&o.drawDebugPoints(G,B.nondrag),!r&&!h&&(v[o.NODE]=!1)}if(!a&&(v[o.DRAG]||r||oe[o.DRAG])){var ce=h&&!oe[o.DRAG]&&c!==1,G=e||(ce?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]:l.contexts[o.DRAG]);R(G,h&&!ce?"motionBlur":void 0),de?o.drawCachedNodes(G,B.drag,s,ie):o.drawCachedElements(G,B.drag,s,ie),o.debug&&o.drawDebugPoints(G,B.drag),!r&&!h&&(v[o.DRAG]=!1)}if(o.showFps||!a&&v[o.SELECT_BOX]&&!r){var G=e||l.contexts[o.SELECT_BOX];if(R(G),o.selection[4]==1&&(o.hoverData.selecting||o.touchData.selecting)){var b=o.cy.zoom(),Te=m.core("selection-box-border-width").value/b;G.lineWidth=Te,G.fillStyle="rgba("+m.core("selection-box-color").value[0]+","+m.core("selection-box-color").value[1]+","+m.core("selection-box-color").value[2]+","+m.core("selection-box-opacity").value+")",G.fillRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]),Te>0&&(G.strokeStyle="rgba("+m.core("selection-box-border-color").value[0]+","+m.core("selection-box-border-color").value[1]+","+m.core("selection-box-border-color").value[2]+","+m.core("selection-box-opacity").value+")",G.strokeRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]))}if(l.bgActivePosistion&&!o.hoverData.selecting){var b=o.cy.zoom(),Ee=l.bgActivePosistion;G.fillStyle="rgba("+m.core("active-bg-color").value[0]+","+m.core("active-bg-color").value[1]+","+m.core("active-bg-color").value[2]+","+m.core("active-bg-opacity").value+")",G.beginPath(),G.arc(Ee.x,Ee.y,m.core("active-bg-size").pfValue/b,0,2*Math.PI),G.fill()}var ye=o.lastRedrawTime;if(o.showFps&&ye){ye=Math.round(ye);var ae=Math.round(1e3/ye);G.setTransform(1,0,0,1,0,0),G.fillStyle="rgba(255, 0, 0, 0.75)",G.strokeStyle="rgba(255, 0, 0, 0.75)",G.lineWidth=1,G.fillText("1 frame = "+ye+" ms = "+ae+" fps",0,20);var xe=60;G.strokeRect(0,30,250,20),G.fillRect(0,30,250*Math.min(ae/xe,1),20)}r||(v[o.SELECT_BOX]=!1)}if(h&&c!==1){var Ce=l.contexts[o.NODE],Oe=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_NODE],Ie=l.contexts[o.DRAG],He=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_DRAG],We=function(Me,Ve,Fe){Me.setTransform(1,0,0,1,0,0),Fe||!p?Me.clearRect(0,0,o.canvasWidth,o.canvasHeight):F(Me,0,0,o.canvasWidth,o.canvasHeight);var ke=c;Me.drawImage(Ve,0,0,o.canvasWidth*ke,o.canvasHeight*ke,0,0,o.canvasWidth,o.canvasHeight)};(v[o.NODE]||oe[o.NODE])&&(We(Ce,Oe,oe[o.NODE]),v[o.NODE]=!1),(v[o.DRAG]||oe[o.DRAG])&&(We(Ie,He,oe[o.DRAG]),v[o.DRAG]=!1)}o.prevViewport=w,o.clearingMotionBlur&&(o.clearingMotionBlur=!1,o.motionBlurCleared=!0,o.motionBlur=!0),h&&(o.motionBlurTimeout=setTimeout(function(){o.motionBlurTimeout=null,o.clearedForMotionBlur[o.NODE]=!1,o.clearedForMotionBlur[o.DRAG]=!1,o.motionBlur=!1,o.clearingMotionBlur=!f,o.mbFrames=0,v[o.NODE]=!0,v[o.DRAG]=!0,o.redraw()},ep)),e||u.emit("render")};var Mr={};Mr.drawPolygonPath=function(t,e,r,a,n,i){var o=a/2,s=n/2;t.beginPath&&t.beginPath(),t.moveTo(e+o*i[0],r+s*i[1]);for(var u=1;u<i.length/2;u++)t.lineTo(e+o*i[u*2],r+s*i[u*2+1]);t.closePath()},Mr.drawRoundPolygonPath=function(t,e,r,a,n,i){var o=a/2,s=n/2,u=hi(a,n);t.beginPath&&t.beginPath();for(var l=0;l<i.length/4;l++){var v=void 0,f=void 0;l===0?v=i.length-2:v=l*4-2,f=l*4+2;var h=e+o*i[l*4],c=r+s*i[l*4+1],d=-i[v]*i[f]-i[v+1]*i[f+1],g=u/Math.tan(Math.acos(d)/2),y=h-g*i[v],p=c-g*i[v+1],m=h+g*i[f],b=c+g*i[f+1];l===0?t.moveTo(y,p):t.lineTo(y,p),t.arcTo(h,c,m,b,u)}t.closePath()},Mr.drawRoundRectanglePath=function(t,e,r,a,n){var i=a/2,o=n/2,s=Fa(a,n);t.beginPath&&t.beginPath(),t.moveTo(e,r-o),t.arcTo(e+i,r-o,e+i,r,s),t.arcTo(e+i,r+o,e,r+o,s),t.arcTo(e-i,r+o,e-i,r,s),t.arcTo(e-i,r-o,e,r-o,s),t.lineTo(e,r-o),t.closePath()},Mr.drawBottomRoundRectanglePath=function(t,e,r,a,n){var i=a/2,o=n/2,s=Fa(a,n);t.beginPath&&t.beginPath(),t.moveTo(e,r-o),t.lineTo(e+i,r-o),t.lineTo(e+i,r),t.arcTo(e+i,r+o,e,r+o,s),t.arcTo(e-i,r+o,e-i,r,s),t.lineTo(e-i,r-o),t.lineTo(e,r-o),t.closePath()},Mr.drawCutRectanglePath=function(t,e,r,a,n){var i=a/2,o=n/2,s=So();t.beginPath&&t.beginPath(),t.moveTo(e-i+s,r-o),t.lineTo(e+i-s,r-o),t.lineTo(e+i,r-o+s),t.lineTo(e+i,r+o-s),t.lineTo(e+i-s,r+o),t.lineTo(e-i+s,r+o),t.lineTo(e-i,r+o-s),t.lineTo(e-i,r-o+s),t.closePath()},Mr.drawBarrelPath=function(t,e,r,a,n){var i=a/2,o=n/2,s=e-i,u=e+i,l=r-o,v=r+o,f=ci(a,n),h=f.widthOffset,c=f.heightOffset,d=f.ctrlPtOffsetPct*h;t.beginPath&&t.beginPath(),t.moveTo(s,l+c),t.lineTo(s,v-c),t.quadraticCurveTo(s+d,v,s+h,v),t.lineTo(u-h,v),t.quadraticCurveTo(u-d,v,u,v-c),t.lineTo(u,l+c),t.quadraticCurveTo(u-d,l,u-h,l),t.lineTo(s+h,l),t.quadraticCurveTo(s+d,l,s,l+c),t.closePath()};for(var Tl=Math.sin(0),Cl=Math.cos(0),_i={},Ui={},Dl=Math.PI/40,wa=0*Math.PI;wa<2*Math.PI;wa+=Dl)_i[wa]=Math.sin(wa),Ui[wa]=Math.cos(wa);Mr.drawEllipsePath=function(t,e,r,a,n){if(t.beginPath&&t.beginPath(),t.ellipse)t.ellipse(e,r,a/2,n/2,0,0,2*Math.PI);else for(var i,o,s=a/2,u=n/2,l=0*Math.PI;l<2*Math.PI;l+=Dl)i=e-s*_i[l]*Tl+s*Ui[l]*Cl,o=r+u*Ui[l]*Tl+u*_i[l]*Cl,l===0?t.moveTo(i,o):t.lineTo(i,o);t.closePath()};var tn={};tn.createBuffer=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,[r,r.getContext("2d")]},tn.bufferCanvasImage=function(t){var e=this.cy,r=e.mutableElements(),a=r.boundingBox(),n=this.findContainerClientCoords(),i=t.full?Math.ceil(a.w):n[2],o=t.full?Math.ceil(a.h):n[3],s=k(t.maxWidth)||k(t.maxHeight),u=this.getPixelRatio(),l=1;if(t.scale!==void 0)i*=t.scale,o*=t.scale,l=t.scale;else if(s){var v=1/0,f=1/0;k(t.maxWidth)&&(v=l*t.maxWidth/i),k(t.maxHeight)&&(f=l*t.maxHeight/o),l=Math.min(v,f),i*=l,o*=l}s||(i*=u,o*=u,l*=u);var h=document.createElement("canvas");h.width=i,h.height=o,h.style.width=i+"px",h.style.height=o+"px";var c=h.getContext("2d");if(i>0&&o>0){c.clearRect(0,0,i,o),c.globalCompositeOperation="source-over";var d=this.getCachedZSortedEles();if(t.full)c.translate(-a.x1*l,-a.y1*l),c.scale(l,l),this.drawElements(c,d),c.scale(1/l,1/l),c.translate(a.x1*l,a.y1*l);else{var g=e.pan(),y={x:g.x*l,y:g.y*l};l*=e.zoom(),c.translate(y.x,y.y),c.scale(l,l),this.drawElements(c,d),c.scale(1/l,1/l),c.translate(-y.x,-y.y)}t.bg&&(c.globalCompositeOperation="destination-over",c.fillStyle=t.bg,c.rect(0,0,i,o),c.fill())}return h};function tp(t,e){for(var r=atob(t),a=new ArrayBuffer(r.length),n=new Uint8Array(a),i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return new Blob([a],{type:e})}function Sl(t){var e=t.indexOf(",");return t.substr(e+1)}function Ll(t,e,r){var a=function(){return e.toDataURL(r,t.quality)};switch(t.output){case"blob-promise":return new ia(function(n,i){try{e.toBlob(function(o){o!=null?n(o):i(new Error("`canvas.toBlob()` sent a null value in its callback"))},r,t.quality)}catch(o){i(o)}});case"blob":return tp(Sl(a()),r);case"base64":return Sl(a());case"base64uri":default:return a()}}tn.png=function(t){return Ll(t,this.bufferCanvasImage(t),"image/png")},tn.jpg=function(t){return Ll(t,this.bufferCanvasImage(t),"image/jpeg")};var Al={};Al.nodeShapeImpl=function(t,e,r,a,n,i,o){switch(t){case"ellipse":return this.drawEllipsePath(e,r,a,n,i);case"polygon":return this.drawPolygonPath(e,r,a,n,i,o);case"round-polygon":return this.drawRoundPolygonPath(e,r,a,n,i,o);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(e,r,a,n,i);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(e,r,a,n,i);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(e,r,a,n,i);case"barrel":return this.drawBarrelPath(e,r,a,n,i)}};var rp=Ol,st=Ol.prototype;st.CANVAS_LAYERS=3,st.SELECT_BOX=0,st.DRAG=1,st.NODE=2,st.BUFFER_COUNT=3,st.TEXTURE_BUFFER=0,st.MOTIONBLUR_BUFFER_NODE=1,st.MOTIONBLUR_BUFFER_DRAG=2;function Ol(t){var e=this;e.data={canvases:new Array(st.CANVAS_LAYERS),contexts:new Array(st.CANVAS_LAYERS),canvasNeedsRedraw:new Array(st.CANVAS_LAYERS),bufferCanvases:new Array(st.BUFFER_COUNT),bufferContexts:new Array(st.CANVAS_LAYERS)};var r="-webkit-tap-highlight-color",a="rgba(0,0,0,0)";e.data.canvasContainer=document.createElement("div");var n=e.data.canvasContainer.style;e.data.canvasContainer.style[r]=a,n.position="relative",n.zIndex="0",n.overflow="hidden";var i=t.cy.container();i.appendChild(e.data.canvasContainer),i.style[r]=a;var o={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};ut()&&(o["-ms-touch-action"]="none",o["touch-action"]="none");for(var s=0;s<st.CANVAS_LAYERS;s++){var u=e.data.canvases[s]=document.createElement("canvas");e.data.contexts[s]=u.getContext("2d"),Object.keys(o).forEach(function(ye){u.style[ye]=o[ye]}),u.style.position="absolute",u.setAttribute("data-id","layer"+s),u.style.zIndex=String(st.CANVAS_LAYERS-s),e.data.canvasContainer.appendChild(u),e.data.canvasNeedsRedraw[s]=!1}e.data.topCanvas=e.data.canvases[0],e.data.canvases[st.NODE].setAttribute("data-id","layer"+st.NODE+"-node"),e.data.canvases[st.SELECT_BOX].setAttribute("data-id","layer"+st.SELECT_BOX+"-selectbox"),e.data.canvases[st.DRAG].setAttribute("data-id","layer"+st.DRAG+"-drag");for(var s=0;s<st.BUFFER_COUNT;s++)e.data.bufferCanvases[s]=document.createElement("canvas"),e.data.bufferContexts[s]=e.data.bufferCanvases[s].getContext("2d"),e.data.bufferCanvases[s].style.position="absolute",e.data.bufferCanvases[s].setAttribute("data-id","buffer"+s),e.data.bufferCanvases[s].style.zIndex=String(-s-1),e.data.bufferCanvases[s].style.visibility="hidden";e.pathsEnabled=!0;var l=Ut(),v=function(ae){return{x:(ae.x1+ae.x2)/2,y:(ae.y1+ae.y2)/2}},f=function(ae){return{x:-ae.w/2,y:-ae.h/2}},h=function(ae){var xe=ae[0]._private,Ce=xe.oldBackgroundTimestamp===xe.backgroundTimestamp;return!Ce},c=function(ae){return ae[0]._private.nodeKey},d=function(ae){return ae[0]._private.labelStyleKey},g=function(ae){return ae[0]._private.sourceLabelStyleKey},y=function(ae){return ae[0]._private.targetLabelStyleKey},p=function(ae,xe,Ce,Oe,Ie){return e.drawElement(ae,xe,Ce,!1,!1,Ie)},m=function(ae,xe,Ce,Oe,Ie){return e.drawElementText(ae,xe,Ce,Oe,"main",Ie)},b=function(ae,xe,Ce,Oe,Ie){return e.drawElementText(ae,xe,Ce,Oe,"source",Ie)},E=function(ae,xe,Ce,Oe,Ie){return e.drawElementText(ae,xe,Ce,Oe,"target",Ie)},M=function(ae){return ae.boundingBox(),ae[0]._private.bodyBounds},A=function(ae){return ae.boundingBox(),ae[0]._private.labelBounds.main||l},w=function(ae){return ae.boundingBox(),ae[0]._private.labelBounds.source||l},I=function(ae){return ae.boundingBox(),ae[0]._private.labelBounds.target||l},C=function(ae,xe){return xe},B=function(ae){return v(M(ae))},F=function(ae,xe,Ce){var Oe=ae?ae+"-":"";return{x:xe.x+Ce.pstyle(Oe+"text-margin-x").pfValue,y:xe.y+Ce.pstyle(Oe+"text-margin-y").pfValue}},R=function(ae,xe,Ce){var Oe=ae[0]._private.rscratch;return{x:Oe[xe],y:Oe[Ce]}},X=function(ae){return F("",R(ae,"labelX","labelY"),ae)},G=function(ae){return F("source",R(ae,"sourceLabelX","sourceLabelY"),ae)},re=function(ae){return F("target",R(ae,"targetLabelX","targetLabelY"),ae)},q=function(ae){return f(M(ae))},Z=function(ae){return f(w(ae))},ie=function(ae){return f(I(ae))},se=function(ae){var xe=A(ae),Ce=f(A(ae));if(ae.isNode()){switch(ae.pstyle("text-halign").value){case"left":Ce.x=-xe.w;break;case"right":Ce.x=0;break}switch(ae.pstyle("text-valign").value){case"top":Ce.y=-xe.h;break;case"bottom":Ce.y=0;break}}return Ce},de=e.data.eleTxrCache=new ja(e,{getKey:c,doesEleInvalidateKey:h,drawElement:p,getBoundingBox:M,getRotationPoint:B,getRotationOffset:q,allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),oe=e.data.lblTxrCache=new ja(e,{getKey:d,drawElement:m,getBoundingBox:A,getRotationPoint:X,getRotationOffset:se,isVisible:C}),ce=e.data.slbTxrCache=new ja(e,{getKey:g,drawElement:b,getBoundingBox:w,getRotationPoint:G,getRotationOffset:Z,isVisible:C}),we=e.data.tlbTxrCache=new ja(e,{getKey:y,drawElement:E,getBoundingBox:I,getRotationPoint:re,getRotationOffset:ie,isVisible:C}),Te=e.data.lyrTxrCache=new pl(e);e.onUpdateEleCalcs(function(ae,xe){de.invalidateElements(xe),oe.invalidateElements(xe),ce.invalidateElements(xe),we.invalidateElements(xe),Te.invalidateElements(xe);for(var Ce=0;Ce<xe.length;Ce++){var Oe=xe[Ce]._private;Oe.oldBackgroundTimestamp=Oe.backgroundTimestamp}});var Ee=function(ae){for(var xe=0;xe<ae.length;xe++)Te.enqueueElementRefinement(ae[xe].ele)};de.onDequeue(Ee),oe.onDequeue(Ee),ce.onDequeue(Ee),we.onDequeue(Ee)}st.redrawHint=function(t,e){var r=this;switch(t){case"eles":r.data.canvasNeedsRedraw[st.NODE]=e;break;case"drag":r.data.canvasNeedsRedraw[st.DRAG]=e;break;case"select":r.data.canvasNeedsRedraw[st.SELECT_BOX]=e;break}};var ap=typeof Path2D<"u";st.path2dEnabled=function(t){if(t===void 0)return this.pathsEnabled;this.pathsEnabled=!!t},st.usePaths=function(){return ap&&this.pathsEnabled},st.setImgSmoothing=function(t,e){t.imageSmoothingEnabled!=null?t.imageSmoothingEnabled=e:(t.webkitImageSmoothingEnabled=e,t.mozImageSmoothingEnabled=e,t.msImageSmoothingEnabled=e)},st.getImgSmoothing=function(t){return t.imageSmoothingEnabled!=null?t.imageSmoothingEnabled:t.webkitImageSmoothingEnabled||t.mozImageSmoothingEnabled||t.msImageSmoothingEnabled},st.makeOffscreenCanvas=function(t,e){var r;return(typeof OffscreenCanvas>"u"?"undefined":ee(OffscreenCanvas))!=="undefined"?r=new OffscreenCanvas(t,e):(r=document.createElement("canvas"),r.width=t,r.height=e),r},[ml,fr,mr,Vi,_r,Ea,qt,Mr,tn,Al].forEach(function(t){Ue(st,t)});var np=[{name:"null",impl:el},{name:"base",impl:hl},{name:"canvas",impl:rp}],ip=[{type:"layout",extensions:hg},{type:"renderer",extensions:np}],Nl={},Ml={};function Il(t,e,r){var a=r,n=function(I){vt("Can not register `"+e+"` for `"+t+"` since `"+I+"` already exists in the prototype and can not be overridden")};if(t==="core"){if(Za.prototype[e])return n(e);Za.prototype[e]=r}else if(t==="collection"){if(Ot.prototype[e])return n(e);Ot.prototype[e]=r}else if(t==="layout"){for(var i=function(I){this.options=I,r.call(this,I),L(this._private)||(this._private={}),this._private.cy=I.cy,this._private.listeners=[],this.createEmitter()},o=i.prototype=Object.create(r.prototype),s=[],u=0;u<s.length;u++){var l=s[u];o[l]=o[l]||function(){return this}}o.start&&!o.run?o.run=function(){return this.start(),this}:!o.start&&o.run&&(o.start=function(){return this.run(),this});var v=r.prototype.stop;o.stop=function(){var w=this.options;if(w&&w.animate){var I=this.animations;if(I)for(var C=0;C<I.length;C++)I[C].stop()}return v?v.call(this):this.emit("layoutstop"),this},o.destroy||(o.destroy=function(){return this}),o.cy=function(){return this._private.cy};var f=function(I){return I._private.cy},h={addEventFields:function(I,C){C.layout=I,C.cy=f(I),C.target=I},bubble:function(){return!0},parent:function(I){return f(I)}};Ue(o,{createEmitter:function(){return this._private.emitter=new Nn(h,this),this},emitter:function(){return this._private.emitter},on:function(I,C){return this.emitter().on(I,C),this},one:function(I,C){return this.emitter().one(I,C),this},once:function(I,C){return this.emitter().one(I,C),this},removeListener:function(I,C){return this.emitter().removeListener(I,C),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},emit:function(I,C){return this.emitter().emit(I,C),this}}),ft.eventAliasesOn(o),a=i}else if(t==="renderer"&&e!=="null"&&e!=="base"){var c=Rl("renderer","base"),d=c.prototype,g=r,y=r.prototype,p=function(){c.apply(this,arguments),g.apply(this,arguments)},m=p.prototype;for(var b in d){var E=d[b],M=y[b]!=null;if(M)return n(b);m[b]=E}for(var A in y)m[A]=y[A];d.clientFunctions.forEach(function(w){m[w]=m[w]||function(){xt("Renderer does not implement `renderer."+w+"()` on its prototype")}}),a=p}else if(t==="__proto__"||t==="constructor"||t==="prototype")return xt(t+" is an illegal type to be registered, possibly lead to prototype pollutions");return ji({map:Nl,keys:[t,e],value:a})}function Rl(t,e){return eo({map:Nl,keys:[t,e]})}function op(t,e,r,a,n){return ji({map:Ml,keys:[t,e,r,a],value:n})}function sp(t,e,r,a){return eo({map:Ml,keys:[t,e,r,a]})}var Yi=function(){if(arguments.length===2)return Rl.apply(null,arguments);if(arguments.length===3)return Il.apply(null,arguments);if(arguments.length===4)return sp.apply(null,arguments);if(arguments.length===5)return op.apply(null,arguments);xt("Invalid extension access syntax")};Za.prototype.extension=Yi,ip.forEach(function(t){t.extensions.forEach(function(e){Il(t.type,e.name,e.impl)})});var kl=function t(){if(!(this instanceof t))return new t;this.length=0},Ur=kl.prototype;Ur.instanceString=function(){return"stylesheet"},Ur.selector=function(t){var e=this.length++;return this[e]={selector:t,properties:[]},this},Ur.css=function(t,e){var r=this.length-1;if(j(t))this[r].properties.push({name:t,value:e});else if(L(t))for(var a=t,n=Object.keys(a),i=0;i<n.length;i++){var o=n[i],s=a[o];if(s!=null){var u=Ft.properties[o]||Ft.properties[pt(o)];if(u!=null){var l=u.name,v=s;this[r].properties.push({name:l,value:v})}}}return this},Ur.style=Ur.css,Ur.generateStyle=function(t){var e=new Ft(t);return this.appendToStyle(e)},Ur.appendToStyle=function(t){for(var e=0;e<this.length;e++){var r=this[e],a=r.selector,n=r.properties;t.selector(a);for(var i=0;i<n.length;i++){var o=n[i];t.css(o.name,o.value)}}return t};var lp="3.23.0",Yr=function(e){if(e===void 0&&(e={}),L(e))return new Za(e);if(j(e))return Yi.apply(Yi,arguments)};return Yr.use=function(t){var e=Array.prototype.slice.call(arguments,1);return e.unshift(Yr),t.apply(null,e),this},Yr.warnings=function(t){return co(t)},Yr.version=lp,Yr.stylesheet=Yr.Stylesheet=kl,Yr})})(Wl);var Xp=Wl.exports;const ql=Vl(Xp);var Kl={exports:{}},Wi={exports:{}},qi={exports:{}},zl;function Wp(){return zl||(zl=1,function(pe,ve){(function(he,H){pe.exports=H()})(Ca,function(){return function(ee){var he={};function H(O){if(he[O])return he[O].exports;var T=he[O]={i:O,l:!1,exports:{}};return ee[O].call(T.exports,T,T.exports,H),T.l=!0,T.exports}return H.m=ee,H.c=he,H.i=function(O){return O},H.d=function(O,T,x){H.o(O,T)||Object.defineProperty(O,T,{configurable:!1,enumerable:!0,get:x})},H.n=function(O){var T=O&&O.__esModule?function(){return O.default}:function(){return O};return H.d(T,"a",T),T},H.o=function(O,T){return Object.prototype.hasOwnProperty.call(O,T)},H.p="",H(H.s=26)}([function(ee,he,H){function O(){}O.QUALITY=1,O.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,O.DEFAULT_INCREMENTAL=!1,O.DEFAULT_ANIMATION_ON_LAYOUT=!0,O.DEFAULT_ANIMATION_DURING_LAYOUT=!1,O.DEFAULT_ANIMATION_PERIOD=50,O.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,O.DEFAULT_GRAPH_MARGIN=15,O.NODE_DIMENSIONS_INCLUDE_LABELS=!1,O.SIMPLE_NODE_SIZE=40,O.SIMPLE_NODE_HALF_SIZE=O.SIMPLE_NODE_SIZE/2,O.EMPTY_COMPOUND_NODE_SIZE=40,O.MIN_EDGE_LENGTH=1,O.WORLD_BOUNDARY=1e6,O.INITIAL_WORLD_BOUNDARY=O.WORLD_BOUNDARY/1e3,O.WORLD_CENTER_X=1200,O.WORLD_CENTER_Y=900,ee.exports=O},function(ee,he,H){var O=H(2),T=H(8),x=H(9);function S(U,P,K){O.call(this,K),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=K,this.bendpoints=[],this.source=U,this.target=P}S.prototype=Object.create(O.prototype);for(var z in O)S[z]=O[z];S.prototype.getSource=function(){return this.source},S.prototype.getTarget=function(){return this.target},S.prototype.isInterGraph=function(){return this.isInterGraph},S.prototype.getLength=function(){return this.length},S.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},S.prototype.getBendpoints=function(){return this.bendpoints},S.prototype.getLca=function(){return this.lca},S.prototype.getSourceInLca=function(){return this.sourceInLca},S.prototype.getTargetInLca=function(){return this.targetInLca},S.prototype.getOtherEnd=function(U){if(this.source===U)return this.target;if(this.target===U)return this.source;throw"Node is not incident with this edge"},S.prototype.getOtherEndInGraph=function(U,P){for(var K=this.getOtherEnd(U),D=P.getGraphManager().getRoot();;){if(K.getOwner()==P)return K;if(K.getOwner()==D)break;K=K.getOwner().getParent()}return null},S.prototype.updateLength=function(){var U=new Array(4);this.isOverlapingSourceAndTarget=T.getIntersection(this.target.getRect(),this.source.getRect(),U),this.isOverlapingSourceAndTarget||(this.lengthX=U[0]-U[2],this.lengthY=U[1]-U[3],Math.abs(this.lengthX)<1&&(this.lengthX=x.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=x.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},S.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=x.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=x.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},ee.exports=S},function(ee,he,H){function O(T){this.vGraphObject=T}ee.exports=O},function(ee,he,H){var O=H(2),T=H(10),x=H(13),S=H(0),z=H(16),U=H(4);function P(D,V,_,Q){_==null&&Q==null&&(Q=V),O.call(this,Q),D.graphManager!=null&&(D=D.graphManager),this.estimatedSize=T.MIN_VALUE,this.inclusionTreeDepth=T.MAX_VALUE,this.vGraphObject=Q,this.edges=[],this.graphManager=D,_!=null&&V!=null?this.rect=new x(V.x,V.y,_.width,_.height):this.rect=new x}P.prototype=Object.create(O.prototype);for(var K in O)P[K]=O[K];P.prototype.getEdges=function(){return this.edges},P.prototype.getChild=function(){return this.child},P.prototype.getOwner=function(){return this.owner},P.prototype.getWidth=function(){return this.rect.width},P.prototype.setWidth=function(D){this.rect.width=D},P.prototype.getHeight=function(){return this.rect.height},P.prototype.setHeight=function(D){this.rect.height=D},P.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},P.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},P.prototype.getCenter=function(){return new U(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},P.prototype.getLocation=function(){return new U(this.rect.x,this.rect.y)},P.prototype.getRect=function(){return this.rect},P.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},P.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},P.prototype.setRect=function(D,V){this.rect.x=D.x,this.rect.y=D.y,this.rect.width=V.width,this.rect.height=V.height},P.prototype.setCenter=function(D,V){this.rect.x=D-this.rect.width/2,this.rect.y=V-this.rect.height/2},P.prototype.setLocation=function(D,V){this.rect.x=D,this.rect.y=V},P.prototype.moveBy=function(D,V){this.rect.x+=D,this.rect.y+=V},P.prototype.getEdgeListToNode=function(D){var V=[],_=this;return _.edges.forEach(function(Q){if(Q.target==D){if(Q.source!=_)throw"Incorrect edge source!";V.push(Q)}}),V},P.prototype.getEdgesBetween=function(D){var V=[],_=this;return _.edges.forEach(function(Q){if(!(Q.source==_||Q.target==_))throw"Incorrect edge source and/or target";(Q.target==D||Q.source==D)&&V.push(Q)}),V},P.prototype.getNeighborsList=function(){var D=new Set,V=this;return V.edges.forEach(function(_){if(_.source==V)D.add(_.target);else{if(_.target!=V)throw"Incorrect incidency!";D.add(_.source)}}),D},P.prototype.withChildren=function(){var D=new Set,V,_;if(D.add(this),this.child!=null)for(var Q=this.child.getNodes(),ne=0;ne<Q.length;ne++)V=Q[ne],_=V.withChildren(),_.forEach(function(le){D.add(le)});return D},P.prototype.getNoOfChildren=function(){var D=0,V;if(this.child==null)D=1;else for(var _=this.child.getNodes(),Q=0;Q<_.length;Q++)V=_[Q],D+=V.getNoOfChildren();return D==0&&(D=1),D},P.prototype.getEstimatedSize=function(){if(this.estimatedSize==T.MIN_VALUE)throw"assert failed";return this.estimatedSize},P.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},P.prototype.scatter=function(){var D,V,_=-S.INITIAL_WORLD_BOUNDARY,Q=S.INITIAL_WORLD_BOUNDARY;D=S.WORLD_CENTER_X+z.nextDouble()*(Q-_)+_;var ne=-S.INITIAL_WORLD_BOUNDARY,le=S.INITIAL_WORLD_BOUNDARY;V=S.WORLD_CENTER_Y+z.nextDouble()*(le-ne)+ne,this.rect.x=D,this.rect.y=V},P.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var D=this.getChild();if(D.updateBounds(!0),this.rect.x=D.getLeft(),this.rect.y=D.getTop(),this.setWidth(D.getRight()-D.getLeft()),this.setHeight(D.getBottom()-D.getTop()),S.NODE_DIMENSIONS_INCLUDE_LABELS){var V=D.getRight()-D.getLeft(),_=D.getBottom()-D.getTop();this.labelWidth>V&&(this.rect.x-=(this.labelWidth-V)/2,this.setWidth(this.labelWidth)),this.labelHeight>_&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-_)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-_),this.setHeight(this.labelHeight))}}},P.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==T.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},P.prototype.transform=function(D){var V=this.rect.x;V>S.WORLD_BOUNDARY?V=S.WORLD_BOUNDARY:V<-S.WORLD_BOUNDARY&&(V=-S.WORLD_BOUNDARY);var _=this.rect.y;_>S.WORLD_BOUNDARY?_=S.WORLD_BOUNDARY:_<-S.WORLD_BOUNDARY&&(_=-S.WORLD_BOUNDARY);var Q=new U(V,_),ne=D.inverseTransformPoint(Q);this.setLocation(ne.x,ne.y)},P.prototype.getLeft=function(){return this.rect.x},P.prototype.getRight=function(){return this.rect.x+this.rect.width},P.prototype.getTop=function(){return this.rect.y},P.prototype.getBottom=function(){return this.rect.y+this.rect.height},P.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},ee.exports=P},function(ee,he,H){function O(T,x){T==null&&x==null?(this.x=0,this.y=0):(this.x=T,this.y=x)}O.prototype.getX=function(){return this.x},O.prototype.getY=function(){return this.y},O.prototype.setX=function(T){this.x=T},O.prototype.setY=function(T){this.y=T},O.prototype.getDifference=function(T){return new DimensionD(this.x-T.x,this.y-T.y)},O.prototype.getCopy=function(){return new O(this.x,this.y)},O.prototype.translate=function(T){return this.x+=T.width,this.y+=T.height,this},ee.exports=O},function(ee,he,H){var O=H(2),T=H(10),x=H(0),S=H(6),z=H(3),U=H(1),P=H(13),K=H(12),D=H(11);function V(Q,ne,le){O.call(this,le),this.estimatedSize=T.MIN_VALUE,this.margin=x.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=Q,ne!=null&&ne instanceof S?this.graphManager=ne:ne!=null&&ne instanceof Layout&&(this.graphManager=ne.graphManager)}V.prototype=Object.create(O.prototype);for(var _ in O)V[_]=O[_];V.prototype.getNodes=function(){return this.nodes},V.prototype.getEdges=function(){return this.edges},V.prototype.getGraphManager=function(){return this.graphManager},V.prototype.getParent=function(){return this.parent},V.prototype.getLeft=function(){return this.left},V.prototype.getRight=function(){return this.right},V.prototype.getTop=function(){return this.top},V.prototype.getBottom=function(){return this.bottom},V.prototype.isConnected=function(){return this.isConnected},V.prototype.add=function(Q,ne,le){if(ne==null&&le==null){var J=Q;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(J)>-1)throw"Node already in graph!";return J.owner=this,this.getNodes().push(J),J}else{var j=Q;if(!(this.getNodes().indexOf(ne)>-1&&this.getNodes().indexOf(le)>-1))throw"Source or target not in graph!";if(!(ne.owner==le.owner&&ne.owner==this))throw"Both owners must be this graph!";return ne.owner!=le.owner?null:(j.source=ne,j.target=le,j.isInterGraph=!1,this.getEdges().push(j),ne.edges.push(j),le!=ne&&le.edges.push(j),j)}},V.prototype.remove=function(Q){var ne=Q;if(Q instanceof z){if(ne==null)throw"Node is null!";if(!(ne.owner!=null&&ne.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var le=ne.edges.slice(),J,j=le.length,Y=0;Y<j;Y++)J=le[Y],J.isInterGraph?this.graphManager.remove(J):J.source.owner.remove(J);var te=this.nodes.indexOf(ne);if(te==-1)throw"Node not in owner node list!";this.nodes.splice(te,1)}else if(Q instanceof U){var J=Q;if(J==null)throw"Edge is null!";if(!(J.source!=null&&J.target!=null))throw"Source and/or target is null!";if(!(J.source.owner!=null&&J.target.owner!=null&&J.source.owner==this&&J.target.owner==this))throw"Source and/or target owner is invalid!";var L=J.source.edges.indexOf(J),$=J.target.edges.indexOf(J);if(!(L>-1&&$>-1))throw"Source and/or target doesn't know this edge!";J.source.edges.splice(L,1),J.target!=J.source&&J.target.edges.splice($,1);var te=J.source.owner.getEdges().indexOf(J);if(te==-1)throw"Not in owner's edge list!";J.source.owner.getEdges().splice(te,1)}},V.prototype.updateLeftTop=function(){for(var Q=T.MAX_VALUE,ne=T.MAX_VALUE,le,J,j,Y=this.getNodes(),te=Y.length,L=0;L<te;L++){var $=Y[L];le=$.getTop(),J=$.getLeft(),Q>le&&(Q=le),ne>J&&(ne=J)}return Q==T.MAX_VALUE?null:(Y[0].getParent().paddingLeft!=null?j=Y[0].getParent().paddingLeft:j=this.margin,this.left=ne-j,this.top=Q-j,new K(this.left,this.top))},V.prototype.updateBounds=function(Q){for(var ne=T.MAX_VALUE,le=-T.MAX_VALUE,J=T.MAX_VALUE,j=-T.MAX_VALUE,Y,te,L,$,k,W=this.nodes,fe=W.length,ge=0;ge<fe;ge++){var Ae=W[ge];Q&&Ae.child!=null&&Ae.updateBounds(),Y=Ae.getLeft(),te=Ae.getRight(),L=Ae.getTop(),$=Ae.getBottom(),ne>Y&&(ne=Y),le<te&&(le=te),J>L&&(J=L),j<$&&(j=$)}var Ne=new P(ne,J,le-ne,j-J);ne==T.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),W[0].getParent().paddingLeft!=null?k=W[0].getParent().paddingLeft:k=this.margin,this.left=Ne.x-k,this.right=Ne.x+Ne.width+k,this.top=Ne.y-k,this.bottom=Ne.y+Ne.height+k},V.calculateBounds=function(Q){for(var ne=T.MAX_VALUE,le=-T.MAX_VALUE,J=T.MAX_VALUE,j=-T.MAX_VALUE,Y,te,L,$,k=Q.length,W=0;W<k;W++){var fe=Q[W];Y=fe.getLeft(),te=fe.getRight(),L=fe.getTop(),$=fe.getBottom(),ne>Y&&(ne=Y),le<te&&(le=te),J>L&&(J=L),j<$&&(j=$)}var ge=new P(ne,J,le-ne,j-J);return ge},V.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},V.prototype.getEstimatedSize=function(){if(this.estimatedSize==T.MIN_VALUE)throw"assert failed";return this.estimatedSize},V.prototype.calcEstimatedSize=function(){for(var Q=0,ne=this.nodes,le=ne.length,J=0;J<le;J++){var j=ne[J];Q+=j.calcEstimatedSize()}return Q==0?this.estimatedSize=x.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=Q/Math.sqrt(this.nodes.length),this.estimatedSize},V.prototype.updateConnected=function(){var Q=this;if(this.nodes.length==0){this.isConnected=!0;return}var ne=new D,le=new Set,J=this.nodes[0],j,Y,te=J.withChildren();for(te.forEach(function(ge){ne.push(ge),le.add(ge)});ne.length!==0;){J=ne.shift(),j=J.getEdges();for(var L=j.length,$=0;$<L;$++){var k=j[$];if(Y=k.getOtherEndInGraph(J,this),Y!=null&&!le.has(Y)){var W=Y.withChildren();W.forEach(function(ge){ne.push(ge),le.add(ge)})}}}if(this.isConnected=!1,le.size>=this.nodes.length){var fe=0;le.forEach(function(ge){ge.owner==Q&&fe++}),fe==this.nodes.length&&(this.isConnected=!0)}},ee.exports=V},function(ee,he,H){var O,T=H(1);function x(S){O=H(5),this.layout=S,this.graphs=[],this.edges=[]}x.prototype.addRoot=function(){var S=this.layout.newGraph(),z=this.layout.newNode(null),U=this.add(S,z);return this.setRootGraph(U),this.rootGraph},x.prototype.add=function(S,z,U,P,K){if(U==null&&P==null&&K==null){if(S==null)throw"Graph is null!";if(z==null)throw"Parent node is null!";if(this.graphs.indexOf(S)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(S),S.parent!=null)throw"Already has a parent!";if(z.child!=null)throw"Already has a child!";return S.parent=z,z.child=S,S}else{K=U,P=z,U=S;var D=P.getOwner(),V=K.getOwner();if(!(D!=null&&D.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(V!=null&&V.getGraphManager()==this))throw"Target not in this graph mgr!";if(D==V)return U.isInterGraph=!1,D.add(U,P,K);if(U.isInterGraph=!0,U.source=P,U.target=K,this.edges.indexOf(U)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(U),!(U.source!=null&&U.target!=null))throw"Edge source and/or target is null!";if(!(U.source.edges.indexOf(U)==-1&&U.target.edges.indexOf(U)==-1))throw"Edge already in source and/or target incidency list!";return U.source.edges.push(U),U.target.edges.push(U),U}},x.prototype.remove=function(S){if(S instanceof O){var z=S;if(z.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(z==this.rootGraph||z.parent!=null&&z.parent.graphManager==this))throw"Invalid parent node!";var U=[];U=U.concat(z.getEdges());for(var P,K=U.length,D=0;D<K;D++)P=U[D],z.remove(P);var V=[];V=V.concat(z.getNodes());var _;K=V.length;for(var D=0;D<K;D++)_=V[D],z.remove(_);z==this.rootGraph&&this.setRootGraph(null);var Q=this.graphs.indexOf(z);this.graphs.splice(Q,1),z.parent=null}else if(S instanceof T){if(P=S,P==null)throw"Edge is null!";if(!P.isInterGraph)throw"Not an inter-graph edge!";if(!(P.source!=null&&P.target!=null))throw"Source and/or target is null!";if(!(P.source.edges.indexOf(P)!=-1&&P.target.edges.indexOf(P)!=-1))throw"Source and/or target doesn't know this edge!";var Q=P.source.edges.indexOf(P);if(P.source.edges.splice(Q,1),Q=P.target.edges.indexOf(P),P.target.edges.splice(Q,1),!(P.source.owner!=null&&P.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(P.source.owner.getGraphManager().edges.indexOf(P)==-1)throw"Not in owner graph manager's edge list!";var Q=P.source.owner.getGraphManager().edges.indexOf(P);P.source.owner.getGraphManager().edges.splice(Q,1)}},x.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},x.prototype.getGraphs=function(){return this.graphs},x.prototype.getAllNodes=function(){if(this.allNodes==null){for(var S=[],z=this.getGraphs(),U=z.length,P=0;P<U;P++)S=S.concat(z[P].getNodes());this.allNodes=S}return this.allNodes},x.prototype.resetAllNodes=function(){this.allNodes=null},x.prototype.resetAllEdges=function(){this.allEdges=null},x.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},x.prototype.getAllEdges=function(){if(this.allEdges==null){var S=[],z=this.getGraphs();z.length;for(var U=0;U<z.length;U++)S=S.concat(z[U].getEdges());S=S.concat(this.edges),this.allEdges=S}return this.allEdges},x.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},x.prototype.setAllNodesToApplyGravitation=function(S){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=S},x.prototype.getRoot=function(){return this.rootGraph},x.prototype.setRootGraph=function(S){if(S.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=S,S.parent==null&&(S.parent=this.layout.newNode("Root node"))},x.prototype.getLayout=function(){return this.layout},x.prototype.isOneAncestorOfOther=function(S,z){if(!(S!=null&&z!=null))throw"assert failed";if(S==z)return!0;var U=S.getOwner(),P;do{if(P=U.getParent(),P==null)break;if(P==z)return!0;if(U=P.getOwner(),U==null)break}while(!0);U=z.getOwner();do{if(P=U.getParent(),P==null)break;if(P==S)return!0;if(U=P.getOwner(),U==null)break}while(!0);return!1},x.prototype.calcLowestCommonAncestors=function(){for(var S,z,U,P,K,D=this.getAllEdges(),V=D.length,_=0;_<V;_++){if(S=D[_],z=S.source,U=S.target,S.lca=null,S.sourceInLca=z,S.targetInLca=U,z==U){S.lca=z.getOwner();continue}for(P=z.getOwner();S.lca==null;){for(S.targetInLca=U,K=U.getOwner();S.lca==null;){if(K==P){S.lca=K;break}if(K==this.rootGraph)break;if(S.lca!=null)throw"assert failed";S.targetInLca=K.getParent(),K=S.targetInLca.getOwner()}if(P==this.rootGraph)break;S.lca==null&&(S.sourceInLca=P.getParent(),P=S.sourceInLca.getOwner())}if(S.lca==null)throw"assert failed"}},x.prototype.calcLowestCommonAncestor=function(S,z){if(S==z)return S.getOwner();var U=S.getOwner();do{if(U==null)break;var P=z.getOwner();do{if(P==null)break;if(P==U)return P;P=P.getParent().getOwner()}while(!0);U=U.getParent().getOwner()}while(!0);return U},x.prototype.calcInclusionTreeDepths=function(S,z){S==null&&z==null&&(S=this.rootGraph,z=1);for(var U,P=S.getNodes(),K=P.length,D=0;D<K;D++)U=P[D],U.inclusionTreeDepth=z,U.child!=null&&this.calcInclusionTreeDepths(U.child,z+1)},x.prototype.includesInvalidEdge=function(){for(var S,z=this.edges.length,U=0;U<z;U++)if(S=this.edges[U],this.isOneAncestorOfOther(S.source,S.target))return!0;return!1},ee.exports=x},function(ee,he,H){var O=H(0);function T(){}for(var x in O)T[x]=O[x];T.MAX_ITERATIONS=2500,T.DEFAULT_EDGE_LENGTH=50,T.DEFAULT_SPRING_STRENGTH=.45,T.DEFAULT_REPULSION_STRENGTH=4500,T.DEFAULT_GRAVITY_STRENGTH=.4,T.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,T.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,T.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,T.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,T.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,T.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,T.COOLING_ADAPTATION_FACTOR=.33,T.ADAPTATION_LOWER_NODE_LIMIT=1e3,T.ADAPTATION_UPPER_NODE_LIMIT=5e3,T.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,T.MAX_NODE_DISPLACEMENT=T.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,T.MIN_REPULSION_DIST=T.DEFAULT_EDGE_LENGTH/10,T.CONVERGENCE_CHECK_PERIOD=100,T.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,T.MIN_EDGE_LENGTH=1,T.GRID_CALCULATION_CHECK_PERIOD=10,ee.exports=T},function(ee,he,H){var O=H(12);function T(){}T.calcSeparationAmount=function(x,S,z,U){if(!x.intersects(S))throw"assert failed";var P=new Array(2);this.decideDirectionsForOverlappingNodes(x,S,P),z[0]=Math.min(x.getRight(),S.getRight())-Math.max(x.x,S.x),z[1]=Math.min(x.getBottom(),S.getBottom())-Math.max(x.y,S.y),x.getX()<=S.getX()&&x.getRight()>=S.getRight()?z[0]+=Math.min(S.getX()-x.getX(),x.getRight()-S.getRight()):S.getX()<=x.getX()&&S.getRight()>=x.getRight()&&(z[0]+=Math.min(x.getX()-S.getX(),S.getRight()-x.getRight())),x.getY()<=S.getY()&&x.getBottom()>=S.getBottom()?z[1]+=Math.min(S.getY()-x.getY(),x.getBottom()-S.getBottom()):S.getY()<=x.getY()&&S.getBottom()>=x.getBottom()&&(z[1]+=Math.min(x.getY()-S.getY(),S.getBottom()-x.getBottom()));var K=Math.abs((S.getCenterY()-x.getCenterY())/(S.getCenterX()-x.getCenterX()));S.getCenterY()===x.getCenterY()&&S.getCenterX()===x.getCenterX()&&(K=1);var D=K*z[0],V=z[1]/K;z[0]<V?V=z[0]:D=z[1],z[0]=-1*P[0]*(V/2+U),z[1]=-1*P[1]*(D/2+U)},T.decideDirectionsForOverlappingNodes=function(x,S,z){x.getCenterX()<S.getCenterX()?z[0]=-1:z[0]=1,x.getCenterY()<S.getCenterY()?z[1]=-1:z[1]=1},T.getIntersection2=function(x,S,z){var U=x.getCenterX(),P=x.getCenterY(),K=S.getCenterX(),D=S.getCenterY();if(x.intersects(S))return z[0]=U,z[1]=P,z[2]=K,z[3]=D,!0;var V=x.getX(),_=x.getY(),Q=x.getRight(),ne=x.getX(),le=x.getBottom(),J=x.getRight(),j=x.getWidthHalf(),Y=x.getHeightHalf(),te=S.getX(),L=S.getY(),$=S.getRight(),k=S.getX(),W=S.getBottom(),fe=S.getRight(),ge=S.getWidthHalf(),Ae=S.getHeightHalf(),Ne=!1,_e=!1;if(U===K){if(P>D)return z[0]=U,z[1]=_,z[2]=K,z[3]=W,!1;if(P<D)return z[0]=U,z[1]=le,z[2]=K,z[3]=L,!1}else if(P===D){if(U>K)return z[0]=V,z[1]=P,z[2]=$,z[3]=D,!1;if(U<K)return z[0]=Q,z[1]=P,z[2]=te,z[3]=D,!1}else{var tt=x.height/x.width,ht=S.height/S.width,Pe=(D-P)/(K-U),$e=void 0,Xe=void 0,rt=void 0,ut=void 0,nt=void 0,je=void 0;if(-tt===Pe?U>K?(z[0]=ne,z[1]=le,Ne=!0):(z[0]=Q,z[1]=_,Ne=!0):tt===Pe&&(U>K?(z[0]=V,z[1]=_,Ne=!0):(z[0]=J,z[1]=le,Ne=!0)),-ht===Pe?K>U?(z[2]=k,z[3]=W,_e=!0):(z[2]=$,z[3]=L,_e=!0):ht===Pe&&(K>U?(z[2]=te,z[3]=L,_e=!0):(z[2]=fe,z[3]=W,_e=!0)),Ne&&_e)return!1;if(U>K?P>D?($e=this.getCardinalDirection(tt,Pe,4),Xe=this.getCardinalDirection(ht,Pe,2)):($e=this.getCardinalDirection(-tt,Pe,3),Xe=this.getCardinalDirection(-ht,Pe,1)):P>D?($e=this.getCardinalDirection(-tt,Pe,1),Xe=this.getCardinalDirection(-ht,Pe,3)):($e=this.getCardinalDirection(tt,Pe,2),Xe=this.getCardinalDirection(ht,Pe,4)),!Ne)switch($e){case 1:ut=_,rt=U+-Y/Pe,z[0]=rt,z[1]=ut;break;case 2:rt=J,ut=P+j*Pe,z[0]=rt,z[1]=ut;break;case 3:ut=le,rt=U+Y/Pe,z[0]=rt,z[1]=ut;break;case 4:rt=ne,ut=P+-j*Pe,z[0]=rt,z[1]=ut;break}if(!_e)switch(Xe){case 1:je=L,nt=K+-Ae/Pe,z[2]=nt,z[3]=je;break;case 2:nt=fe,je=D+ge*Pe,z[2]=nt,z[3]=je;break;case 3:je=W,nt=K+Ae/Pe,z[2]=nt,z[3]=je;break;case 4:nt=k,je=D+-ge*Pe,z[2]=nt,z[3]=je;break}}return!1},T.getCardinalDirection=function(x,S,z){return x>S?z:1+z%4},T.getIntersection=function(x,S,z,U){if(U==null)return this.getIntersection2(x,S,z);var P=x.x,K=x.y,D=S.x,V=S.y,_=z.x,Q=z.y,ne=U.x,le=U.y,J=void 0,j=void 0,Y=void 0,te=void 0,L=void 0,$=void 0,k=void 0,W=void 0,fe=void 0;return Y=V-K,L=P-D,k=D*K-P*V,te=le-Q,$=_-ne,W=ne*Q-_*le,fe=Y*$-te*L,fe===0?null:(J=(L*W-$*k)/fe,j=(te*k-Y*W)/fe,new O(J,j))},T.angleOfVector=function(x,S,z,U){var P=void 0;return x!==z?(P=Math.atan((U-S)/(z-x)),z<x?P+=Math.PI:U<S&&(P+=this.TWO_PI)):U<S?P=this.ONE_AND_HALF_PI:P=this.HALF_PI,P},T.doIntersect=function(x,S,z,U){var P=x.x,K=x.y,D=S.x,V=S.y,_=z.x,Q=z.y,ne=U.x,le=U.y,J=(D-P)*(le-Q)-(ne-_)*(V-K);if(J===0)return!1;var j=((le-Q)*(ne-P)+(_-ne)*(le-K))/J,Y=((K-V)*(ne-P)+(D-P)*(le-K))/J;return 0<j&&j<1&&0<Y&&Y<1},T.HALF_PI=.5*Math.PI,T.ONE_AND_HALF_PI=1.5*Math.PI,T.TWO_PI=2*Math.PI,T.THREE_PI=3*Math.PI,ee.exports=T},function(ee,he,H){function O(){}O.sign=function(T){return T>0?1:T<0?-1:0},O.floor=function(T){return T<0?Math.ceil(T):Math.floor(T)},O.ceil=function(T){return T<0?Math.floor(T):Math.ceil(T)},ee.exports=O},function(ee,he,H){function O(){}O.MAX_VALUE=2147483647,O.MIN_VALUE=-2147483648,ee.exports=O},function(ee,he,H){var O=function(){function P(K,D){for(var V=0;V<D.length;V++){var _=D[V];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(K,_.key,_)}}return function(K,D,V){return D&&P(K.prototype,D),V&&P(K,V),K}}();function T(P,K){if(!(P instanceof K))throw new TypeError("Cannot call a class as a function")}var x=function(K){return{value:K,next:null,prev:null}},S=function(K,D,V,_){return K!==null?K.next=D:_.head=D,V!==null?V.prev=D:_.tail=D,D.prev=K,D.next=V,_.length++,D},z=function(K,D){var V=K.prev,_=K.next;return V!==null?V.next=_:D.head=_,_!==null?_.prev=V:D.tail=V,K.prev=K.next=null,D.length--,K},U=function(){function P(K){var D=this;T(this,P),this.length=0,this.head=null,this.tail=null,K!=null&&K.forEach(function(V){return D.push(V)})}return O(P,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(D,V){return S(V.prev,x(D),V,this)}},{key:"insertAfter",value:function(D,V){return S(V,x(D),V.next,this)}},{key:"insertNodeBefore",value:function(D,V){return S(V.prev,D,V,this)}},{key:"insertNodeAfter",value:function(D,V){return S(V,D,V.next,this)}},{key:"push",value:function(D){return S(this.tail,x(D),null,this)}},{key:"unshift",value:function(D){return S(null,x(D),this.head,this)}},{key:"remove",value:function(D){return z(D,this)}},{key:"pop",value:function(){return z(this.tail,this).value}},{key:"popNode",value:function(){return z(this.tail,this)}},{key:"shift",value:function(){return z(this.head,this).value}},{key:"shiftNode",value:function(){return z(this.head,this)}},{key:"get_object_at",value:function(D){if(D<=this.length()){for(var V=1,_=this.head;V<D;)_=_.next,V++;return _.value}}},{key:"set_object_at",value:function(D,V){if(D<=this.length()){for(var _=1,Q=this.head;_<D;)Q=Q.next,_++;Q.value=V}}}]),P}();ee.exports=U},function(ee,he,H){function O(T,x,S){this.x=null,this.y=null,T==null&&x==null&&S==null?(this.x=0,this.y=0):typeof T=="number"&&typeof x=="number"&&S==null?(this.x=T,this.y=x):T.constructor.name=="Point"&&x==null&&S==null&&(S=T,this.x=S.x,this.y=S.y)}O.prototype.getX=function(){return this.x},O.prototype.getY=function(){return this.y},O.prototype.getLocation=function(){return new O(this.x,this.y)},O.prototype.setLocation=function(T,x,S){T.constructor.name=="Point"&&x==null&&S==null?(S=T,this.setLocation(S.x,S.y)):typeof T=="number"&&typeof x=="number"&&S==null&&(parseInt(T)==T&&parseInt(x)==x?this.move(T,x):(this.x=Math.floor(T+.5),this.y=Math.floor(x+.5)))},O.prototype.move=function(T,x){this.x=T,this.y=x},O.prototype.translate=function(T,x){this.x+=T,this.y+=x},O.prototype.equals=function(T){if(T.constructor.name=="Point"){var x=T;return this.x==x.x&&this.y==x.y}return this==T},O.prototype.toString=function(){return new O().constructor.name+"[x="+this.x+",y="+this.y+"]"},ee.exports=O},function(ee,he,H){function O(T,x,S,z){this.x=0,this.y=0,this.width=0,this.height=0,T!=null&&x!=null&&S!=null&&z!=null&&(this.x=T,this.y=x,this.width=S,this.height=z)}O.prototype.getX=function(){return this.x},O.prototype.setX=function(T){this.x=T},O.prototype.getY=function(){return this.y},O.prototype.setY=function(T){this.y=T},O.prototype.getWidth=function(){return this.width},O.prototype.setWidth=function(T){this.width=T},O.prototype.getHeight=function(){return this.height},O.prototype.setHeight=function(T){this.height=T},O.prototype.getRight=function(){return this.x+this.width},O.prototype.getBottom=function(){return this.y+this.height},O.prototype.intersects=function(T){return!(this.getRight()<T.x||this.getBottom()<T.y||T.getRight()<this.x||T.getBottom()<this.y)},O.prototype.getCenterX=function(){return this.x+this.width/2},O.prototype.getMinX=function(){return this.getX()},O.prototype.getMaxX=function(){return this.getX()+this.width},O.prototype.getCenterY=function(){return this.y+this.height/2},O.prototype.getMinY=function(){return this.getY()},O.prototype.getMaxY=function(){return this.getY()+this.height},O.prototype.getWidthHalf=function(){return this.width/2},O.prototype.getHeightHalf=function(){return this.height/2},ee.exports=O},function(ee,he,H){var O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x};function T(){}T.lastID=0,T.createID=function(x){return T.isPrimitive(x)?x:(x.uniqueID!=null||(x.uniqueID=T.getString(),T.lastID++),x.uniqueID)},T.getString=function(x){return x==null&&(x=T.lastID),"Object#"+x},T.isPrimitive=function(x){var S=typeof x>"u"?"undefined":O(x);return x==null||S!="object"&&S!="function"},ee.exports=T},function(ee,he,H){function O(_){if(Array.isArray(_)){for(var Q=0,ne=Array(_.length);Q<_.length;Q++)ne[Q]=_[Q];return ne}else return Array.from(_)}var T=H(0),x=H(6),S=H(3),z=H(1),U=H(5),P=H(4),K=H(17),D=H(27);function V(_){D.call(this),this.layoutQuality=T.QUALITY,this.createBendsAsNeeded=T.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=T.DEFAULT_INCREMENTAL,this.animationOnLayout=T.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=T.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=T.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=T.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new x(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,_!=null&&(this.isRemoteUse=_)}V.RANDOM_SEED=1,V.prototype=Object.create(D.prototype),V.prototype.getGraphManager=function(){return this.graphManager},V.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},V.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},V.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},V.prototype.newGraphManager=function(){var _=new x(this);return this.graphManager=_,_},V.prototype.newGraph=function(_){return new U(null,this.graphManager,_)},V.prototype.newNode=function(_){return new S(this.graphManager,_)},V.prototype.newEdge=function(_){return new z(null,null,_)},V.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},V.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var _;return this.checkLayoutSuccess()?_=!1:_=this.layout(),T.ANIMATE==="during"?!1:(_&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,_)},V.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},V.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var _=this.graphManager.getAllEdges(),Q=0;Q<_.length;Q++)_[Q];for(var ne=this.graphManager.getRoot().getNodes(),Q=0;Q<ne.length;Q++)ne[Q];this.update(this.graphManager.getRoot())}},V.prototype.update=function(_){if(_==null)this.update2();else if(_ instanceof S){var Q=_;if(Q.getChild()!=null)for(var ne=Q.getChild().getNodes(),le=0;le<ne.length;le++)update(ne[le]);if(Q.vGraphObject!=null){var J=Q.vGraphObject;J.update(Q)}}else if(_ instanceof z){var j=_;if(j.vGraphObject!=null){var Y=j.vGraphObject;Y.update(j)}}else if(_ instanceof U){var te=_;if(te.vGraphObject!=null){var L=te.vGraphObject;L.update(te)}}},V.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=T.QUALITY,this.animationDuringLayout=T.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=T.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=T.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=T.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=T.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=T.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},V.prototype.transform=function(_){if(_==null)this.transform(new P(0,0));else{var Q=new K,ne=this.graphManager.getRoot().updateLeftTop();if(ne!=null){Q.setWorldOrgX(_.x),Q.setWorldOrgY(_.y),Q.setDeviceOrgX(ne.x),Q.setDeviceOrgY(ne.y);for(var le=this.getAllNodes(),J,j=0;j<le.length;j++)J=le[j],J.transform(Q)}}},V.prototype.positionNodesRandomly=function(_){if(_==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var Q,ne,le=_.getNodes(),J=0;J<le.length;J++)Q=le[J],ne=Q.getChild(),ne==null||ne.getNodes().length==0?Q.scatter():(this.positionNodesRandomly(ne),Q.updateBounds())},V.prototype.getFlatForest=function(){for(var _=[],Q=!0,ne=this.graphManager.getRoot().getNodes(),le=!0,J=0;J<ne.length;J++)ne[J].getChild()!=null&&(le=!1);if(!le)return _;var j=new Set,Y=[],te=new Map,L=[];for(L=L.concat(ne);L.length>0&&Q;){for(Y.push(L[0]);Y.length>0&&Q;){var $=Y[0];Y.splice(0,1),j.add($);for(var k=$.getEdges(),J=0;J<k.length;J++){var W=k[J].getOtherEnd($);if(te.get($)!=W)if(!j.has(W))Y.push(W),te.set(W,$);else{Q=!1;break}}}if(!Q)_=[];else{var fe=[].concat(O(j));_.push(fe);for(var J=0;J<fe.length;J++){var ge=fe[J],Ae=L.indexOf(ge);Ae>-1&&L.splice(Ae,1)}j=new Set,te=new Map}}return _},V.prototype.createDummyNodesForBendpoints=function(_){for(var Q=[],ne=_.source,le=this.graphManager.calcLowestCommonAncestor(_.source,_.target),J=0;J<_.bendpoints.length;J++){var j=this.newNode(null);j.setRect(new Point(0,0),new Dimension(1,1)),le.add(j);var Y=this.newEdge(null);this.graphManager.add(Y,ne,j),Q.add(j),ne=j}var Y=this.newEdge(null);return this.graphManager.add(Y,ne,_.target),this.edgeToDummyNodes.set(_,Q),_.isInterGraph()?this.graphManager.remove(_):le.remove(_),Q},V.prototype.createBendpointsFromDummyNodes=function(){var _=[];_=_.concat(this.graphManager.getAllEdges()),_=[].concat(O(this.edgeToDummyNodes.keys())).concat(_);for(var Q=0;Q<_.length;Q++){var ne=_[Q];if(ne.bendpoints.length>0){for(var le=this.edgeToDummyNodes.get(ne),J=0;J<le.length;J++){var j=le[J],Y=new P(j.getCenterX(),j.getCenterY()),te=ne.bendpoints.get(J);te.x=Y.x,te.y=Y.y,j.getOwner().remove(j)}this.graphManager.add(ne,ne.source,ne.target)}}},V.transform=function(_,Q,ne,le){if(ne!=null&&le!=null){var J=Q;if(_<=50){var j=Q/ne;J-=(Q-j)/50*(50-_)}else{var Y=Q*le;J+=(Y-Q)/50*(_-50)}return J}else{var te,L;return _<=50?(te=9*Q/500,L=Q/10):(te=9*Q/50,L=-8*Q),te*_+L}},V.findCenterOfTree=function(_){var Q=[];Q=Q.concat(_);var ne=[],le=new Map,J=!1,j=null;(Q.length==1||Q.length==2)&&(J=!0,j=Q[0]);for(var Y=0;Y<Q.length;Y++){var te=Q[Y],L=te.getNeighborsList().size;le.set(te,te.getNeighborsList().size),L==1&&ne.push(te)}var $=[];for($=$.concat(ne);!J;){var k=[];k=k.concat($),$=[];for(var Y=0;Y<Q.length;Y++){var te=Q[Y],W=Q.indexOf(te);W>=0&&Q.splice(W,1);var fe=te.getNeighborsList();fe.forEach(function(Ne){if(ne.indexOf(Ne)<0){var _e=le.get(Ne),tt=_e-1;tt==1&&$.push(Ne),le.set(Ne,tt)}})}ne=ne.concat($),(Q.length==1||Q.length==2)&&(J=!0,j=Q[0])}return j},V.prototype.setGraphManager=function(_){this.graphManager=_},ee.exports=V},function(ee,he,H){function O(){}O.seed=1,O.x=0,O.nextDouble=function(){return O.x=Math.sin(O.seed++)*1e4,O.x-Math.floor(O.x)},ee.exports=O},function(ee,he,H){var O=H(4);function T(x,S){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}T.prototype.getWorldOrgX=function(){return this.lworldOrgX},T.prototype.setWorldOrgX=function(x){this.lworldOrgX=x},T.prototype.getWorldOrgY=function(){return this.lworldOrgY},T.prototype.setWorldOrgY=function(x){this.lworldOrgY=x},T.prototype.getWorldExtX=function(){return this.lworldExtX},T.prototype.setWorldExtX=function(x){this.lworldExtX=x},T.prototype.getWorldExtY=function(){return this.lworldExtY},T.prototype.setWorldExtY=function(x){this.lworldExtY=x},T.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},T.prototype.setDeviceOrgX=function(x){this.ldeviceOrgX=x},T.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},T.prototype.setDeviceOrgY=function(x){this.ldeviceOrgY=x},T.prototype.getDeviceExtX=function(){return this.ldeviceExtX},T.prototype.setDeviceExtX=function(x){this.ldeviceExtX=x},T.prototype.getDeviceExtY=function(){return this.ldeviceExtY},T.prototype.setDeviceExtY=function(x){this.ldeviceExtY=x},T.prototype.transformX=function(x){var S=0,z=this.lworldExtX;return z!=0&&(S=this.ldeviceOrgX+(x-this.lworldOrgX)*this.ldeviceExtX/z),S},T.prototype.transformY=function(x){var S=0,z=this.lworldExtY;return z!=0&&(S=this.ldeviceOrgY+(x-this.lworldOrgY)*this.ldeviceExtY/z),S},T.prototype.inverseTransformX=function(x){var S=0,z=this.ldeviceExtX;return z!=0&&(S=this.lworldOrgX+(x-this.ldeviceOrgX)*this.lworldExtX/z),S},T.prototype.inverseTransformY=function(x){var S=0,z=this.ldeviceExtY;return z!=0&&(S=this.lworldOrgY+(x-this.ldeviceOrgY)*this.lworldExtY/z),S},T.prototype.inverseTransformPoint=function(x){var S=new O(this.inverseTransformX(x.x),this.inverseTransformY(x.y));return S},ee.exports=T},function(ee,he,H){function O(D){if(Array.isArray(D)){for(var V=0,_=Array(D.length);V<D.length;V++)_[V]=D[V];return _}else return Array.from(D)}var T=H(15),x=H(7),S=H(0),z=H(8),U=H(9);function P(){T.call(this),this.useSmartIdealEdgeLengthCalculation=x.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=x.DEFAULT_EDGE_LENGTH,this.springConstant=x.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=x.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=x.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=x.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=x.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=x.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*x.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=x.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=x.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=x.MAX_ITERATIONS}P.prototype=Object.create(T.prototype);for(var K in T)P[K]=T[K];P.prototype.initParameters=function(){T.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=x.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},P.prototype.calcIdealEdgeLengths=function(){for(var D,V,_,Q,ne,le,J=this.getGraphManager().getAllEdges(),j=0;j<J.length;j++)D=J[j],D.idealLength=this.idealEdgeLength,D.isInterGraph&&(_=D.getSource(),Q=D.getTarget(),ne=D.getSourceInLca().getEstimatedSize(),le=D.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(D.idealLength+=ne+le-2*S.SIMPLE_NODE_SIZE),V=D.getLca().getInclusionTreeDepth(),D.idealLength+=x.DEFAULT_EDGE_LENGTH*x.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(_.getInclusionTreeDepth()+Q.getInclusionTreeDepth()-2*V))},P.prototype.initSpringEmbedder=function(){var D=this.getAllNodes().length;this.incremental?(D>x.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*x.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(D-x.ADAPTATION_LOWER_NODE_LIMIT)/(x.ADAPTATION_UPPER_NODE_LIMIT-x.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-x.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=x.MAX_NODE_DISPLACEMENT_INCREMENTAL):(D>x.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(x.COOLING_ADAPTATION_FACTOR,1-(D-x.ADAPTATION_LOWER_NODE_LIMIT)/(x.ADAPTATION_UPPER_NODE_LIMIT-x.ADAPTATION_LOWER_NODE_LIMIT)*(1-x.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=x.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},P.prototype.calcSpringForces=function(){for(var D=this.getAllEdges(),V,_=0;_<D.length;_++)V=D[_],this.calcSpringForce(V,V.idealLength)},P.prototype.calcRepulsionForces=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_,Q,ne,le,J=this.getAllNodes(),j;if(this.useFRGridVariant)for(this.totalIterations%x.GRID_CALCULATION_CHECK_PERIOD==1&&D&&this.updateGrid(),j=new Set,_=0;_<J.length;_++)ne=J[_],this.calculateRepulsionForceOfANode(ne,j,D,V),j.add(ne);else for(_=0;_<J.length;_++)for(ne=J[_],Q=_+1;Q<J.length;Q++)le=J[Q],ne.getOwner()==le.getOwner()&&this.calcRepulsionForce(ne,le)},P.prototype.calcGravitationalForces=function(){for(var D,V=this.getAllNodesToApplyGravitation(),_=0;_<V.length;_++)D=V[_],this.calcGravitationalForce(D)},P.prototype.moveNodes=function(){for(var D=this.getAllNodes(),V,_=0;_<D.length;_++)V=D[_],V.move()},P.prototype.calcSpringForce=function(D,V){var _=D.getSource(),Q=D.getTarget(),ne,le,J,j;if(this.uniformLeafNodeSizes&&_.getChild()==null&&Q.getChild()==null)D.updateLengthSimple();else if(D.updateLength(),D.isOverlapingSourceAndTarget)return;ne=D.getLength(),ne!=0&&(le=this.springConstant*(ne-V),J=le*(D.lengthX/ne),j=le*(D.lengthY/ne),_.springForceX+=J,_.springForceY+=j,Q.springForceX-=J,Q.springForceY-=j)},P.prototype.calcRepulsionForce=function(D,V){var _=D.getRect(),Q=V.getRect(),ne=new Array(2),le=new Array(4),J,j,Y,te,L,$,k;if(_.intersects(Q)){z.calcSeparationAmount(_,Q,ne,x.DEFAULT_EDGE_LENGTH/2),$=2*ne[0],k=2*ne[1];var W=D.noOfChildren*V.noOfChildren/(D.noOfChildren+V.noOfChildren);D.repulsionForceX-=W*$,D.repulsionForceY-=W*k,V.repulsionForceX+=W*$,V.repulsionForceY+=W*k}else this.uniformLeafNodeSizes&&D.getChild()==null&&V.getChild()==null?(J=Q.getCenterX()-_.getCenterX(),j=Q.getCenterY()-_.getCenterY()):(z.getIntersection(_,Q,le),J=le[2]-le[0],j=le[3]-le[1]),Math.abs(J)<x.MIN_REPULSION_DIST&&(J=U.sign(J)*x.MIN_REPULSION_DIST),Math.abs(j)<x.MIN_REPULSION_DIST&&(j=U.sign(j)*x.MIN_REPULSION_DIST),Y=J*J+j*j,te=Math.sqrt(Y),L=this.repulsionConstant*D.noOfChildren*V.noOfChildren/Y,$=L*J/te,k=L*j/te,D.repulsionForceX-=$,D.repulsionForceY-=k,V.repulsionForceX+=$,V.repulsionForceY+=k},P.prototype.calcGravitationalForce=function(D){var V,_,Q,ne,le,J,j,Y;V=D.getOwner(),_=(V.getRight()+V.getLeft())/2,Q=(V.getTop()+V.getBottom())/2,ne=D.getCenterX()-_,le=D.getCenterY()-Q,J=Math.abs(ne)+D.getWidth()/2,j=Math.abs(le)+D.getHeight()/2,D.getOwner()==this.graphManager.getRoot()?(Y=V.getEstimatedSize()*this.gravityRangeFactor,(J>Y||j>Y)&&(D.gravitationForceX=-this.gravityConstant*ne,D.gravitationForceY=-this.gravityConstant*le)):(Y=V.getEstimatedSize()*this.compoundGravityRangeFactor,(J>Y||j>Y)&&(D.gravitationForceX=-this.gravityConstant*ne*this.compoundGravityConstant,D.gravitationForceY=-this.gravityConstant*le*this.compoundGravityConstant))},P.prototype.isConverged=function(){var D,V=!1;return this.totalIterations>this.maxIterations/3&&(V=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),D=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,D||V},P.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},P.prototype.calcNoOfChildrenForAllNodes=function(){for(var D,V=this.graphManager.getAllNodes(),_=0;_<V.length;_++)D=V[_],D.noOfChildren=D.getNoOfChildren()},P.prototype.calcGrid=function(D){var V=0,_=0;V=parseInt(Math.ceil((D.getRight()-D.getLeft())/this.repulsionRange)),_=parseInt(Math.ceil((D.getBottom()-D.getTop())/this.repulsionRange));for(var Q=new Array(V),ne=0;ne<V;ne++)Q[ne]=new Array(_);for(var ne=0;ne<V;ne++)for(var le=0;le<_;le++)Q[ne][le]=new Array;return Q},P.prototype.addNodeToGrid=function(D,V,_){var Q=0,ne=0,le=0,J=0;Q=parseInt(Math.floor((D.getRect().x-V)/this.repulsionRange)),ne=parseInt(Math.floor((D.getRect().width+D.getRect().x-V)/this.repulsionRange)),le=parseInt(Math.floor((D.getRect().y-_)/this.repulsionRange)),J=parseInt(Math.floor((D.getRect().height+D.getRect().y-_)/this.repulsionRange));for(var j=Q;j<=ne;j++)for(var Y=le;Y<=J;Y++)this.grid[j][Y].push(D),D.setGridCoordinates(Q,ne,le,J)},P.prototype.updateGrid=function(){var D,V,_=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),D=0;D<_.length;D++)V=_[D],this.addNodeToGrid(V,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},P.prototype.calculateRepulsionForceOfANode=function(D,V,_,Q){if(this.totalIterations%x.GRID_CALCULATION_CHECK_PERIOD==1&&_||Q){var ne=new Set;D.surrounding=new Array;for(var le,J=this.grid,j=D.startX-1;j<D.finishX+2;j++)for(var Y=D.startY-1;Y<D.finishY+2;Y++)if(!(j<0||Y<0||j>=J.length||Y>=J[0].length)){for(var te=0;te<J[j][Y].length;te++)if(le=J[j][Y][te],!(D.getOwner()!=le.getOwner()||D==le)&&!V.has(le)&&!ne.has(le)){var L=Math.abs(D.getCenterX()-le.getCenterX())-(D.getWidth()/2+le.getWidth()/2),$=Math.abs(D.getCenterY()-le.getCenterY())-(D.getHeight()/2+le.getHeight()/2);L<=this.repulsionRange&&$<=this.repulsionRange&&ne.add(le)}}D.surrounding=[].concat(O(ne))}for(j=0;j<D.surrounding.length;j++)this.calcRepulsionForce(D,D.surrounding[j])},P.prototype.calcRepulsionRange=function(){return 0},ee.exports=P},function(ee,he,H){var O=H(1),T=H(7);function x(z,U,P){O.call(this,z,U,P),this.idealLength=T.DEFAULT_EDGE_LENGTH}x.prototype=Object.create(O.prototype);for(var S in O)x[S]=O[S];ee.exports=x},function(ee,he,H){var O=H(3);function T(S,z,U,P){O.call(this,S,z,U,P),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}T.prototype=Object.create(O.prototype);for(var x in O)T[x]=O[x];T.prototype.setGridCoordinates=function(S,z,U,P){this.startX=S,this.finishX=z,this.startY=U,this.finishY=P},ee.exports=T},function(ee,he,H){function O(T,x){this.width=0,this.height=0,T!==null&&x!==null&&(this.height=x,this.width=T)}O.prototype.getWidth=function(){return this.width},O.prototype.setWidth=function(T){this.width=T},O.prototype.getHeight=function(){return this.height},O.prototype.setHeight=function(T){this.height=T},ee.exports=O},function(ee,he,H){var O=H(14);function T(){this.map={},this.keys=[]}T.prototype.put=function(x,S){var z=O.createID(x);this.contains(z)||(this.map[z]=S,this.keys.push(x))},T.prototype.contains=function(x){return O.createID(x),this.map[x]!=null},T.prototype.get=function(x){var S=O.createID(x);return this.map[S]},T.prototype.keySet=function(){return this.keys},ee.exports=T},function(ee,he,H){var O=H(14);function T(){this.set={}}T.prototype.add=function(x){var S=O.createID(x);this.contains(S)||(this.set[S]=x)},T.prototype.remove=function(x){delete this.set[O.createID(x)]},T.prototype.clear=function(){this.set={}},T.prototype.contains=function(x){return this.set[O.createID(x)]==x},T.prototype.isEmpty=function(){return this.size()===0},T.prototype.size=function(){return Object.keys(this.set).length},T.prototype.addAllTo=function(x){for(var S=Object.keys(this.set),z=S.length,U=0;U<z;U++)x.push(this.set[S[U]])},T.prototype.size=function(){return Object.keys(this.set).length},T.prototype.addAll=function(x){for(var S=x.length,z=0;z<S;z++){var U=x[z];this.add(U)}},ee.exports=T},function(ee,he,H){var O=function(){function z(U,P){for(var K=0;K<P.length;K++){var D=P[K];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(U,D.key,D)}}return function(U,P,K){return P&&z(U.prototype,P),K&&z(U,K),U}}();function T(z,U){if(!(z instanceof U))throw new TypeError("Cannot call a class as a function")}var x=H(11),S=function(){function z(U,P){T(this,z),(P!==null||P!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var K=void 0;U instanceof x?K=U.size():K=U.length,this._quicksort(U,0,K-1)}return O(z,[{key:"_quicksort",value:function(P,K,D){if(K<D){var V=this._partition(P,K,D);this._quicksort(P,K,V),this._quicksort(P,V+1,D)}}},{key:"_partition",value:function(P,K,D){for(var V=this._get(P,K),_=K,Q=D;;){for(;this.compareFunction(V,this._get(P,Q));)Q--;for(;this.compareFunction(this._get(P,_),V);)_++;if(_<Q)this._swap(P,_,Q),_++,Q--;else return Q}}},{key:"_get",value:function(P,K){return P instanceof x?P.get_object_at(K):P[K]}},{key:"_set",value:function(P,K,D){P instanceof x?P.set_object_at(K,D):P[K]=D}},{key:"_swap",value:function(P,K,D){var V=this._get(P,K);this._set(P,K,this._get(P,D)),this._set(P,D,V)}},{key:"_defaultCompareFunction",value:function(P,K){return K>P}}]),z}();ee.exports=S},function(ee,he,H){var O=function(){function S(z,U){for(var P=0;P<U.length;P++){var K=U[P];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(z,K.key,K)}}return function(z,U,P){return U&&S(z.prototype,U),P&&S(z,P),z}}();function T(S,z){if(!(S instanceof z))throw new TypeError("Cannot call a class as a function")}var x=function(){function S(z,U){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,D=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;T(this,S),this.sequence1=z,this.sequence2=U,this.match_score=P,this.mismatch_penalty=K,this.gap_penalty=D,this.iMax=z.length+1,this.jMax=U.length+1,this.grid=new Array(this.iMax);for(var V=0;V<this.iMax;V++){this.grid[V]=new Array(this.jMax);for(var _=0;_<this.jMax;_++)this.grid[V][_]=0}this.tracebackGrid=new Array(this.iMax);for(var Q=0;Q<this.iMax;Q++){this.tracebackGrid[Q]=new Array(this.jMax);for(var ne=0;ne<this.jMax;ne++)this.tracebackGrid[Q][ne]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return O(S,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var U=1;U<this.jMax;U++)this.grid[0][U]=this.grid[0][U-1]+this.gap_penalty,this.tracebackGrid[0][U]=[!1,!1,!0];for(var P=1;P<this.iMax;P++)this.grid[P][0]=this.grid[P-1][0]+this.gap_penalty,this.tracebackGrid[P][0]=[!1,!0,!1];for(var K=1;K<this.iMax;K++)for(var D=1;D<this.jMax;D++){var V=void 0;this.sequence1[K-1]===this.sequence2[D-1]?V=this.grid[K-1][D-1]+this.match_score:V=this.grid[K-1][D-1]+this.mismatch_penalty;var _=this.grid[K-1][D]+this.gap_penalty,Q=this.grid[K][D-1]+this.gap_penalty,ne=[V,_,Q],le=this.arrayAllMaxIndexes(ne);this.grid[K][D]=ne[le[0]],this.tracebackGrid[K][D]=[le.includes(0),le.includes(1),le.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var U=[];for(U.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});U[0];){var P=U[0],K=this.tracebackGrid[P.pos[0]][P.pos[1]];K[0]&&U.push({pos:[P.pos[0]-1,P.pos[1]-1],seq1:this.sequence1[P.pos[0]-1]+P.seq1,seq2:this.sequence2[P.pos[1]-1]+P.seq2}),K[1]&&U.push({pos:[P.pos[0]-1,P.pos[1]],seq1:this.sequence1[P.pos[0]-1]+P.seq1,seq2:"-"+P.seq2}),K[2]&&U.push({pos:[P.pos[0],P.pos[1]-1],seq1:"-"+P.seq1,seq2:this.sequence2[P.pos[1]-1]+P.seq2}),P.pos[0]===0&&P.pos[1]===0&&this.alignments.push({sequence1:P.seq1,sequence2:P.seq2}),U.shift()}return this.alignments}},{key:"getAllIndexes",value:function(U,P){for(var K=[],D=-1;(D=U.indexOf(P,D+1))!==-1;)K.push(D);return K}},{key:"arrayAllMaxIndexes",value:function(U){return this.getAllIndexes(U,Math.max.apply(null,U))}}]),S}();ee.exports=x},function(ee,he,H){var O=function(){};O.FDLayout=H(18),O.FDLayoutConstants=H(7),O.FDLayoutEdge=H(19),O.FDLayoutNode=H(20),O.DimensionD=H(21),O.HashMap=H(22),O.HashSet=H(23),O.IGeometry=H(8),O.IMath=H(9),O.Integer=H(10),O.Point=H(12),O.PointD=H(4),O.RandomSeed=H(16),O.RectangleD=H(13),O.Transform=H(17),O.UniqueIDGeneretor=H(14),O.Quicksort=H(24),O.LinkedList=H(11),O.LGraphObject=H(2),O.LGraph=H(5),O.LEdge=H(1),O.LGraphManager=H(6),O.LNode=H(3),O.Layout=H(15),O.LayoutConstants=H(0),O.NeedlemanWunsch=H(25),ee.exports=O},function(ee,he,H){function O(){this.listeners=[]}var T=O.prototype;T.addListener=function(x,S){this.listeners.push({event:x,callback:S})},T.removeListener=function(x,S){for(var z=this.listeners.length;z>=0;z--){var U=this.listeners[z];U.event===x&&U.callback===S&&this.listeners.splice(z,1)}},T.emit=function(x,S){for(var z=0;z<this.listeners.length;z++){var U=this.listeners[z];x===U.event&&U.callback(S)}},ee.exports=O}])})}(qi)),qi.exports}var $l;function qp(){return $l||($l=1,function(pe,ve){(function(he,H){pe.exports=H(Wp())})(Ca,function(ee){return function(he){var H={};function O(T){if(H[T])return H[T].exports;var x=H[T]={i:T,l:!1,exports:{}};return he[T].call(x.exports,x,x.exports,O),x.l=!0,x.exports}return O.m=he,O.c=H,O.i=function(T){return T},O.d=function(T,x,S){O.o(T,x)||Object.defineProperty(T,x,{configurable:!1,enumerable:!0,get:S})},O.n=function(T){var x=T&&T.__esModule?function(){return T.default}:function(){return T};return O.d(x,"a",x),x},O.o=function(T,x){return Object.prototype.hasOwnProperty.call(T,x)},O.p="",O(O.s=7)}([function(he,H){he.exports=ee},function(he,H,O){var T=O(0).FDLayoutConstants;function x(){}for(var S in T)x[S]=T[S];x.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,x.DEFAULT_RADIAL_SEPARATION=T.DEFAULT_EDGE_LENGTH,x.DEFAULT_COMPONENT_SEPERATION=60,x.TILE=!0,x.TILING_PADDING_VERTICAL=10,x.TILING_PADDING_HORIZONTAL=10,x.TREE_REDUCTION_ON_INCREMENTAL=!1,he.exports=x},function(he,H,O){var T=O(0).FDLayoutEdge;function x(z,U,P){T.call(this,z,U,P)}x.prototype=Object.create(T.prototype);for(var S in T)x[S]=T[S];he.exports=x},function(he,H,O){var T=O(0).LGraph;function x(z,U,P){T.call(this,z,U,P)}x.prototype=Object.create(T.prototype);for(var S in T)x[S]=T[S];he.exports=x},function(he,H,O){var T=O(0).LGraphManager;function x(z){T.call(this,z)}x.prototype=Object.create(T.prototype);for(var S in T)x[S]=T[S];he.exports=x},function(he,H,O){var T=O(0).FDLayoutNode,x=O(0).IMath;function S(U,P,K,D){T.call(this,U,P,K,D)}S.prototype=Object.create(T.prototype);for(var z in T)S[z]=T[z];S.prototype.move=function(){var U=this.graphManager.getLayout();this.displacementX=U.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=U.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>U.coolingFactor*U.maxNodeDisplacement&&(this.displacementX=U.coolingFactor*U.maxNodeDisplacement*x.sign(this.displacementX)),Math.abs(this.displacementY)>U.coolingFactor*U.maxNodeDisplacement&&(this.displacementY=U.coolingFactor*U.maxNodeDisplacement*x.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),U.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},S.prototype.propogateDisplacementToChildren=function(U,P){for(var K=this.getChild().getNodes(),D,V=0;V<K.length;V++)D=K[V],D.getChild()==null?(D.moveBy(U,P),D.displacementX+=U,D.displacementY+=P):D.propogateDisplacementToChildren(U,P)},S.prototype.setPred1=function(U){this.pred1=U},S.prototype.getPred1=function(){return pred1},S.prototype.getPred2=function(){return pred2},S.prototype.setNext=function(U){this.next=U},S.prototype.getNext=function(){return next},S.prototype.setProcessed=function(U){this.processed=U},S.prototype.isProcessed=function(){return processed},he.exports=S},function(he,H,O){var T=O(0).FDLayout,x=O(4),S=O(3),z=O(5),U=O(2),P=O(1),K=O(0).FDLayoutConstants,D=O(0).LayoutConstants,V=O(0).Point,_=O(0).PointD,Q=O(0).Layout,ne=O(0).Integer,le=O(0).IGeometry,J=O(0).LGraph,j=O(0).Transform;function Y(){T.call(this),this.toBeTiled={}}Y.prototype=Object.create(T.prototype);for(var te in T)Y[te]=T[te];Y.prototype.newGraphManager=function(){var L=new x(this);return this.graphManager=L,L},Y.prototype.newGraph=function(L){return new S(null,this.graphManager,L)},Y.prototype.newNode=function(L){return new z(this.graphManager,L)},Y.prototype.newEdge=function(L){return new U(null,null,L)},Y.prototype.initParameters=function(){T.prototype.initParameters.call(this,arguments),this.isSubLayout||(P.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=P.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=P.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=K.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=K.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=K.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=K.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=K.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=K.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/K.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=K.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},Y.prototype.layout=function(){var L=D.DEFAULT_CREATE_BENDS_AS_NEEDED;return L&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},Y.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(P.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var $=new Set(this.getAllNodes()),k=this.nodesWithGravity.filter(function(ge){return $.has(ge)});this.graphManager.setAllNodesToApplyGravitation(k)}}else{var L=this.getFlatForest();if(L.length>0)this.positionNodesRadially(L);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var $=new Set(this.getAllNodes()),k=this.nodesWithGravity.filter(function(W){return $.has(W)});this.graphManager.setAllNodesToApplyGravitation(k),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},Y.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%K.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var L=new Set(this.getAllNodes()),$=this.nodesWithGravity.filter(function(fe){return L.has(fe)});this.graphManager.setAllNodesToApplyGravitation($),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=K.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=K.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var k=!this.isTreeGrowing&&!this.isGrowthFinished,W=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(k,W),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},Y.prototype.getPositionsData=function(){for(var L=this.graphManager.getAllNodes(),$={},k=0;k<L.length;k++){var W=L[k].rect,fe=L[k].id;$[fe]={id:fe,x:W.getCenterX(),y:W.getCenterY(),w:W.width,h:W.height}}return $},Y.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var L=!1;if(K.ANIMATE==="during")this.emit("layoutstarted");else{for(;!L;)L=this.tick();this.graphManager.updateBounds()}},Y.prototype.calculateNodesToApplyGravitationTo=function(){var L=[],$,k=this.graphManager.getGraphs(),W=k.length,fe;for(fe=0;fe<W;fe++)$=k[fe],$.updateConnected(),$.isConnected||(L=L.concat($.getNodes()));return L},Y.prototype.createBendpoints=function(){var L=[];L=L.concat(this.graphManager.getAllEdges());var $=new Set,k;for(k=0;k<L.length;k++){var W=L[k];if(!$.has(W)){var fe=W.getSource(),ge=W.getTarget();if(fe==ge)W.getBendpoints().push(new _),W.getBendpoints().push(new _),this.createDummyNodesForBendpoints(W),$.add(W);else{var Ae=[];if(Ae=Ae.concat(fe.getEdgeListToNode(ge)),Ae=Ae.concat(ge.getEdgeListToNode(fe)),!$.has(Ae[0])){if(Ae.length>1){var Ne;for(Ne=0;Ne<Ae.length;Ne++){var _e=Ae[Ne];_e.getBendpoints().push(new _),this.createDummyNodesForBendpoints(_e)}}Ae.forEach(function(tt){$.add(tt)})}}}if($.size==L.length)break}},Y.prototype.positionNodesRadially=function(L){for(var $=new V(0,0),k=Math.ceil(Math.sqrt(L.length)),W=0,fe=0,ge=0,Ae=new _(0,0),Ne=0;Ne<L.length;Ne++){Ne%k==0&&(ge=0,fe=W,Ne!=0&&(fe+=P.DEFAULT_COMPONENT_SEPERATION),W=0);var _e=L[Ne],tt=Q.findCenterOfTree(_e);$.x=ge,$.y=fe,Ae=Y.radialLayout(_e,tt,$),Ae.y>W&&(W=Math.floor(Ae.y)),ge=Math.floor(Ae.x+P.DEFAULT_COMPONENT_SEPERATION)}this.transform(new _(D.WORLD_CENTER_X-Ae.x/2,D.WORLD_CENTER_Y-Ae.y/2))},Y.radialLayout=function(L,$,k){var W=Math.max(this.maxDiagonalInTree(L),P.DEFAULT_RADIAL_SEPARATION);Y.branchRadialLayout($,null,0,359,0,W);var fe=J.calculateBounds(L),ge=new j;ge.setDeviceOrgX(fe.getMinX()),ge.setDeviceOrgY(fe.getMinY()),ge.setWorldOrgX(k.x),ge.setWorldOrgY(k.y);for(var Ae=0;Ae<L.length;Ae++){var Ne=L[Ae];Ne.transform(ge)}var _e=new _(fe.getMaxX(),fe.getMaxY());return ge.inverseTransformPoint(_e)},Y.branchRadialLayout=function(L,$,k,W,fe,ge){var Ae=(W-k+1)/2;Ae<0&&(Ae+=180);var Ne=(Ae+k)%360,_e=Ne*le.TWO_PI/360,tt=fe*Math.cos(_e),ht=fe*Math.sin(_e);L.setCenter(tt,ht);var Pe=[];Pe=Pe.concat(L.getEdges());var $e=Pe.length;$!=null&&$e--;for(var Xe=0,rt=Pe.length,ut,nt=L.getEdgesBetween($);nt.length>1;){var je=nt[0];nt.splice(0,1);var pt=Pe.indexOf(je);pt>=0&&Pe.splice(pt,1),rt--,$e--}$!=null?ut=(Pe.indexOf(nt[0])+1)%rt:ut=0;for(var Et=Math.abs(W-k)/$e,kt=ut;Xe!=$e;kt=++kt%rt){var ct=Pe[kt].getOtherEnd(L);if(ct!=$){var cr=(k+Xe*Et)%360,Wt=(cr+Et)%360;Y.branchRadialLayout(ct,L,cr,Wt,fe+ge,ge),Xe++}}},Y.maxDiagonalInTree=function(L){for(var $=ne.MIN_VALUE,k=0;k<L.length;k++){var W=L[k],fe=W.getDiagonal();fe>$&&($=fe)}return $},Y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},Y.prototype.groupZeroDegreeMembers=function(){var L=this,$={};this.memberGroups={},this.idToDummyNode={};for(var k=[],W=this.graphManager.getAllNodes(),fe=0;fe<W.length;fe++){var ge=W[fe],Ae=ge.getParent();this.getNodeDegreeWithChildren(ge)===0&&(Ae.id==null||!this.getToBeTiled(Ae))&&k.push(ge)}for(var fe=0;fe<k.length;fe++){var ge=k[fe],Ne=ge.getParent().id;typeof $[Ne]>"u"&&($[Ne]=[]),$[Ne]=$[Ne].concat(ge)}Object.keys($).forEach(function(_e){if($[_e].length>1){var tt="DummyCompound_"+_e;L.memberGroups[tt]=$[_e];var ht=$[_e][0].getParent(),Pe=new z(L.graphManager);Pe.id=tt,Pe.paddingLeft=ht.paddingLeft||0,Pe.paddingRight=ht.paddingRight||0,Pe.paddingBottom=ht.paddingBottom||0,Pe.paddingTop=ht.paddingTop||0,L.idToDummyNode[tt]=Pe;var $e=L.getGraphManager().add(L.newGraph(),Pe),Xe=ht.getChild();Xe.add(Pe);for(var rt=0;rt<$[_e].length;rt++){var ut=$[_e][rt];Xe.remove(ut),$e.add(ut)}}})},Y.prototype.clearCompounds=function(){var L={},$={};this.performDFSOnCompounds();for(var k=0;k<this.compoundOrder.length;k++)$[this.compoundOrder[k].id]=this.compoundOrder[k],L[this.compoundOrder[k].id]=[].concat(this.compoundOrder[k].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[k].getChild()),this.compoundOrder[k].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(L,$)},Y.prototype.clearZeroDegreeMembers=function(){var L=this,$=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(k){var W=L.idToDummyNode[k];$[k]=L.tileNodes(L.memberGroups[k],W.paddingLeft+W.paddingRight),W.rect.width=$[k].width,W.rect.height=$[k].height})},Y.prototype.repopulateCompounds=function(){for(var L=this.compoundOrder.length-1;L>=0;L--){var $=this.compoundOrder[L],k=$.id,W=$.paddingLeft,fe=$.paddingTop;this.adjustLocations(this.tiledMemberPack[k],$.rect.x,$.rect.y,W,fe)}},Y.prototype.repopulateZeroDegreeMembers=function(){var L=this,$=this.tiledZeroDegreePack;Object.keys($).forEach(function(k){var W=L.idToDummyNode[k],fe=W.paddingLeft,ge=W.paddingTop;L.adjustLocations($[k],W.rect.x,W.rect.y,fe,ge)})},Y.prototype.getToBeTiled=function(L){var $=L.id;if(this.toBeTiled[$]!=null)return this.toBeTiled[$];var k=L.getChild();if(k==null)return this.toBeTiled[$]=!1,!1;for(var W=k.getNodes(),fe=0;fe<W.length;fe++){var ge=W[fe];if(this.getNodeDegree(ge)>0)return this.toBeTiled[$]=!1,!1;if(ge.getChild()==null){this.toBeTiled[ge.id]=!1;continue}if(!this.getToBeTiled(ge))return this.toBeTiled[$]=!1,!1}return this.toBeTiled[$]=!0,!0},Y.prototype.getNodeDegree=function(L){L.id;for(var $=L.getEdges(),k=0,W=0;W<$.length;W++){var fe=$[W];fe.getSource().id!==fe.getTarget().id&&(k=k+1)}return k},Y.prototype.getNodeDegreeWithChildren=function(L){var $=this.getNodeDegree(L);if(L.getChild()==null)return $;for(var k=L.getChild().getNodes(),W=0;W<k.length;W++){var fe=k[W];$+=this.getNodeDegreeWithChildren(fe)}return $},Y.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},Y.prototype.fillCompexOrderByDFS=function(L){for(var $=0;$<L.length;$++){var k=L[$];k.getChild()!=null&&this.fillCompexOrderByDFS(k.getChild().getNodes()),this.getToBeTiled(k)&&this.compoundOrder.push(k)}},Y.prototype.adjustLocations=function(L,$,k,W,fe){$+=W,k+=fe;for(var ge=$,Ae=0;Ae<L.rows.length;Ae++){var Ne=L.rows[Ae];$=ge;for(var _e=0,tt=0;tt<Ne.length;tt++){var ht=Ne[tt];ht.rect.x=$,ht.rect.y=k,$+=ht.rect.width+L.horizontalPadding,ht.rect.height>_e&&(_e=ht.rect.height)}k+=_e+L.verticalPadding}},Y.prototype.tileCompoundMembers=function(L,$){var k=this;this.tiledMemberPack=[],Object.keys(L).forEach(function(W){var fe=$[W];k.tiledMemberPack[W]=k.tileNodes(L[W],fe.paddingLeft+fe.paddingRight),fe.rect.width=k.tiledMemberPack[W].width,fe.rect.height=k.tiledMemberPack[W].height})},Y.prototype.tileNodes=function(L,$){var k=P.TILING_PADDING_VERTICAL,W=P.TILING_PADDING_HORIZONTAL,fe={rows:[],rowWidth:[],rowHeight:[],width:0,height:$,verticalPadding:k,horizontalPadding:W};L.sort(function(Ne,_e){return Ne.rect.width*Ne.rect.height>_e.rect.width*_e.rect.height?-1:Ne.rect.width*Ne.rect.height<_e.rect.width*_e.rect.height?1:0});for(var ge=0;ge<L.length;ge++){var Ae=L[ge];fe.rows.length==0?this.insertNodeToRow(fe,Ae,0,$):this.canAddHorizontal(fe,Ae.rect.width,Ae.rect.height)?this.insertNodeToRow(fe,Ae,this.getShortestRowIndex(fe),$):this.insertNodeToRow(fe,Ae,fe.rows.length,$),this.shiftToLastRow(fe)}return fe},Y.prototype.insertNodeToRow=function(L,$,k,W){var fe=W;if(k==L.rows.length){var ge=[];L.rows.push(ge),L.rowWidth.push(fe),L.rowHeight.push(0)}var Ae=L.rowWidth[k]+$.rect.width;L.rows[k].length>0&&(Ae+=L.horizontalPadding),L.rowWidth[k]=Ae,L.width<Ae&&(L.width=Ae);var Ne=$.rect.height;k>0&&(Ne+=L.verticalPadding);var _e=0;Ne>L.rowHeight[k]&&(_e=L.rowHeight[k],L.rowHeight[k]=Ne,_e=L.rowHeight[k]-_e),L.height+=_e,L.rows[k].push($)},Y.prototype.getShortestRowIndex=function(L){for(var $=-1,k=Number.MAX_VALUE,W=0;W<L.rows.length;W++)L.rowWidth[W]<k&&($=W,k=L.rowWidth[W]);return $},Y.prototype.getLongestRowIndex=function(L){for(var $=-1,k=Number.MIN_VALUE,W=0;W<L.rows.length;W++)L.rowWidth[W]>k&&($=W,k=L.rowWidth[W]);return $},Y.prototype.canAddHorizontal=function(L,$,k){var W=this.getShortestRowIndex(L);if(W<0)return!0;var fe=L.rowWidth[W];if(fe+L.horizontalPadding+$<=L.width)return!0;var ge=0;L.rowHeight[W]<k&&W>0&&(ge=k+L.verticalPadding-L.rowHeight[W]);var Ae;L.width-fe>=$+L.horizontalPadding?Ae=(L.height+ge)/(fe+$+L.horizontalPadding):Ae=(L.height+ge)/L.width,ge=k+L.verticalPadding;var Ne;return L.width<$?Ne=(L.height+ge)/$:Ne=(L.height+ge)/L.width,Ne<1&&(Ne=1/Ne),Ae<1&&(Ae=1/Ae),Ae<Ne},Y.prototype.shiftToLastRow=function(L){var $=this.getLongestRowIndex(L),k=L.rowWidth.length-1,W=L.rows[$],fe=W[W.length-1],ge=fe.width+L.horizontalPadding;if(L.width-L.rowWidth[k]>ge&&$!=k){W.splice(-1,1),L.rows[k].push(fe),L.rowWidth[$]=L.rowWidth[$]-ge,L.rowWidth[k]=L.rowWidth[k]+ge,L.width=L.rowWidth[instance.getLongestRowIndex(L)];for(var Ae=Number.MIN_VALUE,Ne=0;Ne<W.length;Ne++)W[Ne].height>Ae&&(Ae=W[Ne].height);$>0&&(Ae+=L.verticalPadding);var _e=L.rowHeight[$]+L.rowHeight[k];L.rowHeight[$]=Ae,L.rowHeight[k]<fe.height+L.verticalPadding&&(L.rowHeight[k]=fe.height+L.verticalPadding);var tt=L.rowHeight[$]+L.rowHeight[k];L.height+=tt-_e,this.shiftToLastRow(L)}},Y.prototype.tilingPreLayout=function(){P.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},Y.prototype.tilingPostLayout=function(){P.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},Y.prototype.reduceTrees=function(){for(var L=[],$=!0,k;$;){var W=this.graphManager.getAllNodes(),fe=[];$=!1;for(var ge=0;ge<W.length;ge++)k=W[ge],k.getEdges().length==1&&!k.getEdges()[0].isInterGraph&&k.getChild()==null&&(fe.push([k,k.getEdges()[0],k.getOwner()]),$=!0);if($==!0){for(var Ae=[],Ne=0;Ne<fe.length;Ne++)fe[Ne][0].getEdges().length==1&&(Ae.push(fe[Ne]),fe[Ne][0].getOwner().remove(fe[Ne][0]));L.push(Ae),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=L},Y.prototype.growTree=function(L){for(var $=L.length,k=L[$-1],W,fe=0;fe<k.length;fe++)W=k[fe],this.findPlaceforPrunedNode(W),W[2].add(W[0]),W[2].add(W[1],W[1].source,W[1].target);L.splice(L.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},Y.prototype.findPlaceforPrunedNode=function(L){var $,k,W=L[0];W==L[1].source?k=L[1].target:k=L[1].source;var fe=k.startX,ge=k.finishX,Ae=k.startY,Ne=k.finishY,_e=0,tt=0,ht=0,Pe=0,$e=[_e,ht,tt,Pe];if(Ae>0)for(var Xe=fe;Xe<=ge;Xe++)$e[0]+=this.grid[Xe][Ae-1].length+this.grid[Xe][Ae].length-1;if(ge<this.grid.length-1)for(var Xe=Ae;Xe<=Ne;Xe++)$e[1]+=this.grid[ge+1][Xe].length+this.grid[ge][Xe].length-1;if(Ne<this.grid[0].length-1)for(var Xe=fe;Xe<=ge;Xe++)$e[2]+=this.grid[Xe][Ne+1].length+this.grid[Xe][Ne].length-1;if(fe>0)for(var Xe=Ae;Xe<=Ne;Xe++)$e[3]+=this.grid[fe-1][Xe].length+this.grid[fe][Xe].length-1;for(var rt=ne.MAX_VALUE,ut,nt,je=0;je<$e.length;je++)$e[je]<rt?(rt=$e[je],ut=1,nt=je):$e[je]==rt&&ut++;if(ut==3&&rt==0)$e[0]==0&&$e[1]==0&&$e[2]==0?$=1:$e[0]==0&&$e[1]==0&&$e[3]==0?$=0:$e[0]==0&&$e[2]==0&&$e[3]==0?$=3:$e[1]==0&&$e[2]==0&&$e[3]==0&&($=2);else if(ut==2&&rt==0){var pt=Math.floor(Math.random()*2);$e[0]==0&&$e[1]==0?pt==0?$=0:$=1:$e[0]==0&&$e[2]==0?pt==0?$=0:$=2:$e[0]==0&&$e[3]==0?pt==0?$=0:$=3:$e[1]==0&&$e[2]==0?pt==0?$=1:$=2:$e[1]==0&&$e[3]==0?pt==0?$=1:$=3:pt==0?$=2:$=3}else if(ut==4&&rt==0){var pt=Math.floor(Math.random()*4);$=pt}else $=nt;$==0?W.setCenter(k.getCenterX(),k.getCenterY()-k.getHeight()/2-K.DEFAULT_EDGE_LENGTH-W.getHeight()/2):$==1?W.setCenter(k.getCenterX()+k.getWidth()/2+K.DEFAULT_EDGE_LENGTH+W.getWidth()/2,k.getCenterY()):$==2?W.setCenter(k.getCenterX(),k.getCenterY()+k.getHeight()/2+K.DEFAULT_EDGE_LENGTH+W.getHeight()/2):W.setCenter(k.getCenterX()-k.getWidth()/2-K.DEFAULT_EDGE_LENGTH-W.getWidth()/2,k.getCenterY())},he.exports=Y},function(he,H,O){var T={};T.layoutBase=O(0),T.CoSEConstants=O(1),T.CoSEEdge=O(2),T.CoSEGraph=O(3),T.CoSEGraphManager=O(4),T.CoSELayout=O(6),T.CoSENode=O(5),he.exports=T}])})}(Wi)),Wi.exports}(function(pe,ve){(function(he,H){pe.exports=H(qp())})(Ca,function(ee){return function(he){var H={};function O(T){if(H[T])return H[T].exports;var x=H[T]={i:T,l:!1,exports:{}};return he[T].call(x.exports,x,x.exports,O),x.l=!0,x.exports}return O.m=he,O.c=H,O.i=function(T){return T},O.d=function(T,x,S){O.o(T,x)||Object.defineProperty(T,x,{configurable:!1,enumerable:!0,get:S})},O.n=function(T){var x=T&&T.__esModule?function(){return T.default}:function(){return T};return O.d(x,"a",x),x},O.o=function(T,x){return Object.prototype.hasOwnProperty.call(T,x)},O.p="",O(O.s=1)}([function(he,H){he.exports=ee},function(he,H,O){var T=O(0).layoutBase.LayoutConstants,x=O(0).layoutBase.FDLayoutConstants,S=O(0).CoSEConstants,z=O(0).CoSELayout,U=O(0).CoSENode,P=O(0).layoutBase.PointD,K=O(0).layoutBase.DimensionD,D={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function V(le,J){var j={};for(var Y in le)j[Y]=le[Y];for(var Y in J)j[Y]=J[Y];return j}function _(le){this.options=V(D,le),Q(this.options)}var Q=function(J){J.nodeRepulsion!=null&&(S.DEFAULT_REPULSION_STRENGTH=x.DEFAULT_REPULSION_STRENGTH=J.nodeRepulsion),J.idealEdgeLength!=null&&(S.DEFAULT_EDGE_LENGTH=x.DEFAULT_EDGE_LENGTH=J.idealEdgeLength),J.edgeElasticity!=null&&(S.DEFAULT_SPRING_STRENGTH=x.DEFAULT_SPRING_STRENGTH=J.edgeElasticity),J.nestingFactor!=null&&(S.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=x.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=J.nestingFactor),J.gravity!=null&&(S.DEFAULT_GRAVITY_STRENGTH=x.DEFAULT_GRAVITY_STRENGTH=J.gravity),J.numIter!=null&&(S.MAX_ITERATIONS=x.MAX_ITERATIONS=J.numIter),J.gravityRange!=null&&(S.DEFAULT_GRAVITY_RANGE_FACTOR=x.DEFAULT_GRAVITY_RANGE_FACTOR=J.gravityRange),J.gravityCompound!=null&&(S.DEFAULT_COMPOUND_GRAVITY_STRENGTH=x.DEFAULT_COMPOUND_GRAVITY_STRENGTH=J.gravityCompound),J.gravityRangeCompound!=null&&(S.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=x.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=J.gravityRangeCompound),J.initialEnergyOnIncremental!=null&&(S.DEFAULT_COOLING_FACTOR_INCREMENTAL=x.DEFAULT_COOLING_FACTOR_INCREMENTAL=J.initialEnergyOnIncremental),J.quality=="draft"?T.QUALITY=0:J.quality=="proof"?T.QUALITY=2:T.QUALITY=1,S.NODE_DIMENSIONS_INCLUDE_LABELS=x.NODE_DIMENSIONS_INCLUDE_LABELS=T.NODE_DIMENSIONS_INCLUDE_LABELS=J.nodeDimensionsIncludeLabels,S.DEFAULT_INCREMENTAL=x.DEFAULT_INCREMENTAL=T.DEFAULT_INCREMENTAL=!J.randomize,S.ANIMATE=x.ANIMATE=T.ANIMATE=J.animate,S.TILE=J.tile,S.TILING_PADDING_VERTICAL=typeof J.tilingPaddingVertical=="function"?J.tilingPaddingVertical.call():J.tilingPaddingVertical,S.TILING_PADDING_HORIZONTAL=typeof J.tilingPaddingHorizontal=="function"?J.tilingPaddingHorizontal.call():J.tilingPaddingHorizontal};_.prototype.run=function(){var le,J,j=this.options;this.idToLNode={};var Y=this.layout=new z,te=this;te.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var L=Y.newGraphManager();this.gm=L;var $=this.options.eles.nodes(),k=this.options.eles.edges();this.root=L.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes($),Y);for(var W=0;W<k.length;W++){var fe=k[W],ge=this.idToLNode[fe.data("source")],Ae=this.idToLNode[fe.data("target")];if(ge!==Ae&&ge.getEdgesBetween(Ae).length==0){var Ne=L.add(Y.newEdge(),ge,Ae);Ne.id=fe.id()}}var _e=function(Pe,$e){typeof Pe=="number"&&(Pe=$e);var Xe=Pe.data("id"),rt=te.idToLNode[Xe];return{x:rt.getRect().getCenterX(),y:rt.getRect().getCenterY()}},tt=function ht(){for(var Pe=function(){j.fit&&j.cy.fit(j.eles,j.padding),le||(le=!0,te.cy.one("layoutready",j.ready),te.cy.trigger({type:"layoutready",layout:te}))},$e=te.options.refresh,Xe,rt=0;rt<$e&&!Xe;rt++)Xe=te.stopped||te.layout.tick();if(Xe){Y.checkLayoutSuccess()&&!Y.isSubLayout&&Y.doPostLayout(),Y.tilingPostLayout&&Y.tilingPostLayout(),Y.isLayoutFinished=!0,te.options.eles.nodes().positions(_e),Pe(),te.cy.one("layoutstop",te.options.stop),te.cy.trigger({type:"layoutstop",layout:te}),J&&cancelAnimationFrame(J),le=!1;return}var ut=te.layout.getPositionsData();j.eles.nodes().positions(function(nt,je){if(typeof nt=="number"&&(nt=je),!nt.isParent()){for(var pt=nt.id(),Et=ut[pt],kt=nt;Et==null&&(Et=ut[kt.data("parent")]||ut["DummyCompound_"+kt.data("parent")],ut[pt]=Et,kt=kt.parent()[0],kt!=null););return Et!=null?{x:Et.x,y:Et.y}:{x:nt.position("x"),y:nt.position("y")}}}),Pe(),J=requestAnimationFrame(ht)};return Y.addListener("layoutstarted",function(){te.options.animate==="during"&&(J=requestAnimationFrame(tt))}),Y.runLayout(),this.options.animate!=="during"&&(te.options.eles.nodes().not(":parent").layoutPositions(te,te.options,_e),le=!1),this},_.prototype.getTopMostNodes=function(le){for(var J={},j=0;j<le.length;j++)J[le[j].id()]=!0;var Y=le.filter(function(te,L){typeof te=="number"&&(te=L);for(var $=te.parent()[0];$!=null;){if(J[$.id()])return!1;$=$.parent()[0]}return!0});return Y},_.prototype.processChildrenList=function(le,J,j){for(var Y=J.length,te=0;te<Y;te++){var L=J[te],$=L.children(),k,W=L.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(L.outerWidth()!=null&&L.outerHeight()!=null?k=le.add(new U(j.graphManager,new P(L.position("x")-W.w/2,L.position("y")-W.h/2),new K(parseFloat(W.w),parseFloat(W.h)))):k=le.add(new U(this.graphManager)),k.id=L.data("id"),k.paddingLeft=parseInt(L.css("padding")),k.paddingTop=parseInt(L.css("padding")),k.paddingRight=parseInt(L.css("padding")),k.paddingBottom=parseInt(L.css("padding")),this.options.nodeDimensionsIncludeLabels&&L.isParent()){var fe=L.boundingBox({includeLabels:!0,includeNodes:!1}).w,ge=L.boundingBox({includeLabels:!0,includeNodes:!1}).h,Ae=L.css("text-halign");k.labelWidth=fe,k.labelHeight=ge,k.labelPos=Ae}if(this.idToLNode[L.data("id")]=k,isNaN(k.rect.x)&&(k.rect.x=0),isNaN(k.rect.y)&&(k.rect.y=0),$!=null&&$.length>0){var Ne;Ne=j.getGraphManager().add(j.newGraph(),k),this.processChildrenList(Ne,$,j)}}},_.prototype.stop=function(){return this.stopped=!0,this};var ne=function(J){J("layout","cose-bilkent",_)};typeof cytoscape<"u"&&ne(cytoscape),he.exports=ne}])})})(Kl);var Kp=Kl.exports;const Zp=Vl(Kp);ql.use(Zp);function Zl(pe,ve,ee,he){Xl.drawNode(pe,ve,ee,he),ve.children&&ve.children.forEach((H,O)=>{Zl(pe,H,ee<0?O:ee,he)})}function Qp(pe,ve){ve.edges().map((ee,he)=>{const H=ee.data();if(ee[0]._private.bodyBounds){const O=ee[0]._private.rscratch;Wr.trace("Edge: ",he,H),pe.insert("path").attr("d",`M ${O.startX},${O.startY} L ${O.midX},${O.midY} L${O.endX},${O.endY} `).attr("class","edge section-edge-"+H.section+" edge-depth-"+H.depth)}})}function Ql(pe,ve,ee,he){ve.add({group:"nodes",data:{id:pe.id,labelText:pe.descr,height:pe.height,width:pe.width,level:he,nodeId:pe.id,padding:pe.padding,type:pe.type},position:{x:pe.x,y:pe.y}}),pe.children&&pe.children.forEach(H=>{Ql(H,ve,ee,he+1),ve.add({group:"edges",data:{id:`${pe.id}_${H.id}`,source:pe.id,target:H.id,depth:he,section:H.section}})})}function Jp(pe,ve){return new Promise(ee=>{const he=ei("body").append("div").attr("id","cy").attr("style","display:none"),H=ql({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});he.remove(),Ql(pe,H,ve,0),H.nodes().forEach(function(O){O.layoutDimensions=()=>{const T=O.data();return{w:T.width,h:T.height}}}),H.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),H.ready(O=>{Wr.info("Ready",O),ee(H)})})}function jp(pe){pe.nodes().map((ve,ee)=>{const he=ve.data();he.x=ve.position().x,he.y=ve.position().y,Xl.positionNode(he);const H=Qi(he.nodeId);Wr.info("Id:",ee,"Position: (",ve.position().x,", ",ve.position().y,")",he),H.attr("transform",`translate(${ve.position().x-he.width/2}, ${ve.position().y-he.height/2})`),H.attr("attr",`apa-${ee})`)})}const ey=async(pe,ve,ee,he)=>{const H=nn();H.htmlLabels=!1,Wr.debug(`Rendering mindmap diagram
`+pe,he.parser);const O=nn().securityLevel;let T;O==="sandbox"&&(T=ei("#i"+ve));const S=(O==="sandbox"?ei(T.nodes()[0].contentDocument.body):ei("body")).select("#"+ve);S.append("g");const z=he.db.getMindmap(),U=S.append("g");U.attr("class","mindmap-edges");const P=S.append("g");P.attr("class","mindmap-nodes"),Zl(P,z,-1,H);const K=await Jp(z,H);Qp(U,K),jp(K),bp(void 0,S,H.mindmap.padding,H.mindmap.useMaxWidth)},ty={draw:ey},ry=pe=>{let ve="";for(let ee=0;ee<pe.THEME_COLOR_LIMIT;ee++)pe["lineColor"+ee]=pe["lineColor"+ee]||pe["cScaleInv"+ee],Ep(pe["lineColor"+ee])?pe["lineColor"+ee]=wp(pe["lineColor"+ee],20):pe["lineColor"+ee]=xp(pe["lineColor"+ee],20);for(let ee=0;ee<pe.THEME_COLOR_LIMIT;ee++){const he=""+(17-3*ee);ve+=`
.section-${ee-1} rect, .section-${ee-1} path, .section-${ee-1} circle, .section-${ee-1} polygon, .section-${ee-1} path {
fill: ${pe["cScale"+ee]};
}
.section-${ee-1} text {
fill: ${pe["cScaleLabel"+ee]};
}
.node-icon-${ee-1} {
font-size: 40px;
color: ${pe["cScaleLabel"+ee]};
}
.section-edge-${ee-1}{
stroke: ${pe["cScale"+ee]};
}
.edge-depth-${ee-1}{
stroke-width: ${he};
}
.section-${ee-1} line {
stroke: ${pe["cScaleInv"+ee]} ;
stroke-width: 3;
}
.disabled, .disabled circle, .disabled text {
fill: lightgray;
}
.disabled text {
fill: #efefef;
}
`}return ve},ay=pe=>`
.edge {
stroke-width: 3;
}
${ry(pe)}
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
fill: ${pe.git0};
}
.section-root text {
fill: ${pe.gitBranchLabel0};
}
.icon-container {
height:100%;
display: flex;
justify-content: center;
align-items: center;
}
.edge {
fill: none;
}
.mindmap-node-label {
dy: 1em;
alignment-baseline: middle;
text-anchor: middle;
dominant-baseline: middle;
text-align: center;
}
`,ny=ay,sy={db:kp,renderer:ty,parser:Cp,styles:ny};export{sy as diagram};
import{bf as I,bg as un,bh as U,bi as Y,bj as fn}from"./index-Hfn5l4aw.js";import{i as cn}from"./init-cc95ec8e-Hi12RPRh.js";function F(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function _(n){let t,i,r;n.length!==2?(t=F,i=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,i=n,r=n);function e(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;i(u[h],c)<0?o=h+1:l=h}while(o<l)}return o}function f(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;i(u[h],c)<=0?o=h+1:l=h}while(o<l)}return o}function a(u,c,o=0,l=u.length){const h=e(u,c,o,l-1);return h>o&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:e,center:a,right:f}}function mn(){return 0}function sn(n){return n===null?NaN:+n}const ln=_(F),gn=ln.right;_(sn).center;const dn=gn,yn=Math.sqrt(50),Mn=Math.sqrt(10),pn=Math.sqrt(2);function R(n,t,i){const r=(t-n)/Math.max(0,i),e=Math.floor(Math.log10(r)),f=r/Math.pow(10,e),a=f>=yn?10:f>=Mn?5:f>=pn?2:1;let u,c,o;return e<0?(o=Math.pow(10,-e)/a,u=Math.round(n*o),c=Math.round(t*o),u/o<n&&++u,c/o>t&&--c,o=-o):(o=Math.pow(10,e)*a,u=Math.round(n/o),c=Math.round(t/o),u*o<n&&++u,c*o>t&&--c),c<u&&.5<=i&&i<2?R(n,t,i*2):[u,c,o]}function wn(n,t,i){if(t=+t,n=+n,i=+i,!(i>0))return[];if(n===t)return[n];const r=t<n,[e,f,a]=r?R(t,n,i):R(n,t,i);if(!(f>=e))return[];const u=f-e+1,c=new Array(u);if(r)if(a<0)for(let o=0;o<u;++o)c[o]=(f-o)/-a;else for(let o=0;o<u;++o)c[o]=(f-o)*a;else if(a<0)for(let o=0;o<u;++o)c[o]=(e+o)/-a;else for(let o=0;o<u;++o)c[o]=(e+o)*a;return c}function L(n,t,i){return t=+t,n=+n,i=+i,R(n,t,i)[2]}function vn(n,t,i){t=+t,n=+n,i=+i;const r=t<n,e=r?L(t,n,i):L(n,t,i);return(r?-1:1)*(e<0?1/-e:e)}function Nn(n,t){t||(t=[]);var i=n?Math.min(t.length,n.length):0,r=t.slice(),e;return function(f){for(e=0;e<i;++e)r[e]=n[e]*(1-f)+t[e]*f;return r}}function kn(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function xn(n,t){var i=t?t.length:0,r=n?Math.min(i,n.length):0,e=new Array(r),f=new Array(i),a;for(a=0;a<r;++a)e[a]=C(n[a],t[a]);for(;a<i;++a)f[a]=t[a];return function(u){for(a=0;a<r;++a)f[a]=e[a](u);return f}}function An(n,t){var i=new Date;return n=+n,t=+t,function(r){return i.setTime(n*(1-r)+t*r),i}}function bn(n,t){var i={},r={},e;(n===null||typeof n!="object")&&(n={}),(t===null||typeof t!="object")&&(t={});for(e in t)e in n?i[e]=C(n[e],t[e]):r[e]=t[e];return function(f){for(e in i)r[e]=i[e](f);return r}}function C(n,t){var i=typeof t,r;return t==null||i==="boolean"?un(t):(i==="number"?I:i==="string"?(r=U(t))?(t=r,Y):fn:t instanceof U?Y:t instanceof Date?An:kn(t)?Nn:Array.isArray(t)?xn:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?bn:I)(n,t)}function Sn(n,t){return n=+n,t=+t,function(i){return Math.round(n*(1-i)+t*i)}}function jn(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((i=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var i,r=n.slice(0,i);return[r.length>1?r[0]+r.slice(2):r,+n.slice(i+1)]}function A(n){return n=E(Math.abs(n)),n?n[1]:NaN}function Pn(n,t){return function(i,r){for(var e=i.length,f=[],a=0,u=n[0],c=0;e>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(i.substring(e-=u,e+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function zn(n){return function(t){return t.replace(/[0-9]/g,function(i){return n[+i]})}}var $n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=$n.exec(n)))throw new Error("invalid format: "+n);var t;return new B({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=B.prototype;function B(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}B.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Fn(n){n:for(var t=n.length,i=1,r=-1,e;i<t;++i)switch(n[i]){case".":r=e=i;break;case"0":r===0&&(r=i),e=i;break;default:if(!+n[i])break n;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(e+1):n}var nn;function Rn(n,t){var i=E(n,t);if(!i)return n+"";var r=i[0],e=i[1],f=e-(nn=Math.max(-8,Math.min(8,Math.floor(e/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function Z(n,t){var i=E(n,t);if(!i)return n+"";var r=i[0],e=i[1];return e<0?"0."+new Array(-e).join("0")+r:r.length>e+1?r.slice(0,e+1)+"."+r.slice(e+1):r+new Array(e-r.length+2).join("0")}const H={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:jn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Z(n*100,t),r:Z,s:Rn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function J(n){return n}var K=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function En(n){var t=n.grouping===void 0||n.thousands===void 0?J:Pn(K.call(n.grouping,Number),n.thousands+""),i=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",e=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?J:zn(K.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var s=h.fill,p=h.align,y=h.sign,b=h.symbol,N=h.zero,S=h.width,T=h.comma,w=h.precision,G=h.trim,g=h.type;g==="n"?(T=!0,g="g"):H[g]||(w===void 0&&(w=12),G=!0,g="g"),(N||s==="0"&&p==="=")&&(N=!0,s="0",p="=");var en=b==="$"?i:b==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",on=b==="$"?r:/[%p]/.test(g)?a:"",O=H[g],an=/[defgprs%]/.test(g);w=w===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var v=en,d=on,k,X,j;if(g==="c")d=O(m)+d,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),G&&(m=Fn(m)),P&&+m==0&&y!=="+"&&(P=!1),v=(P?y==="("?y:u:y==="-"||y==="("?"":y)+v,d=(g==="s"?Q[8+nn/3]:"")+d+(P&&y==="("?")":""),an){for(k=-1,X=m.length;++k<X;)if(j=m.charCodeAt(k),48>j||j>57){d=(j===46?e+m.slice(k+1):m.slice(k))+d,m=m.slice(0,k);break}}}T&&!N&&(m=t(m,1/0));var z=v.length+m.length+d.length,M=z<S?new Array(S-z+1).join(s):"";switch(T&&N&&(m=t(M+m,M.length?S-d.length:1/0),M=""),p){case"<":m=v+m+d+M;break;case"=":m=v+M+m+d;break;case"^":m=M.slice(0,z=M.length>>1)+v+m+d+M.slice(z);break;default:m=M+v+m+d;break}return f(m)}return V.toString=function(){return h+""},V}function l(h,s){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(A(s)/3)))*3,b=Math.pow(10,-y),N=Q[8+y/3];return function(S){return p(b*S)+N}}return{format:o,formatPrefix:l}}var $,tn,rn;Dn({thousands:",",grouping:[3],currency:["$",""]});function Dn(n){return $=En(n),tn=$.format,rn=$.formatPrefix,$}function Tn(n){return Math.max(0,-A(Math.abs(n)))}function In(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(A(t)/3)))*3-A(Math.abs(n)))}function Ln(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,A(t)-A(n))+1}function qn(n){return function(){return n}}function Cn(n){return+n}var W=[0,1];function x(n){return n}function q(n,t){return(t-=n=+n)?function(i){return(i-n)/t}:qn(isNaN(t)?NaN:.5)}function Bn(n,t){var i;return n>t&&(i=n,n=t,t=i),function(r){return Math.max(n,Math.min(t,r))}}function Gn(n,t,i){var r=n[0],e=n[1],f=t[0],a=t[1];return e<r?(r=q(e,r),f=i(a,f)):(r=q(r,e),f=i(f,a)),function(u){return f(r(u))}}function On(n,t,i){var r=Math.min(n.length,t.length)-1,e=new Array(r),f=new Array(r),a=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++a<r;)e[a]=q(n[a],n[a+1]),f[a]=i(t[a],t[a+1]);return function(u){var c=dn(n,u,1,r)-1;return f[c](e[c](u))}}function Vn(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Xn(){var n=W,t=W,i=C,r,e,f,a=x,u,c,o;function l(){var s=Math.min(n.length,t.length);return a!==x&&(a=Bn(n[0],n[s-1])),u=s>2?On:Gn,c=o=null,h}function h(s){return s==null||isNaN(s=+s)?f:(c||(c=u(n.map(r),t,i)))(r(a(s)))}return h.invert=function(s){return a(e((o||(o=u(t,n.map(r),I)))(s)))},h.domain=function(s){return arguments.length?(n=Array.from(s,Cn),l()):n.slice()},h.range=function(s){return arguments.length?(t=Array.from(s),l()):t.slice()},h.rangeRound=function(s){return t=Array.from(s),i=Sn,l()},h.clamp=function(s){return arguments.length?(a=s?!0:x,l()):a!==x},h.interpolate=function(s){return arguments.length?(i=s,l()):i},h.unknown=function(s){return arguments.length?(f=s,h):f},function(s,p){return r=s,e=p,l()}}function Un(){return Xn()(x,x)}function Yn(n,t,i,r){var e=vn(n,t,i),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=In(e,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=Ln(e,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Tn(e))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Zn(n){var t=n.domain;return n.ticks=function(i){var r=t();return wn(r[0],r[r.length-1],i??10)},n.tickFormat=function(i,r){var e=t();return Yn(e[0],e[e.length-1],i??10,r)},n.nice=function(i){i==null&&(i=10);var r=t(),e=0,f=r.length-1,a=r[e],u=r[f],c,o,l=10;for(u<a&&(o=a,a=u,u=o,o=e,e=f,f=o);l-- >0;){if(o=L(a,u,i),o===c)return r[e]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Hn(){var n=Un();return n.copy=function(){return Vn(n,Hn())},cn.apply(n,arguments),Zn(n)}export{Vn as a,_ as b,Un as c,Hn as l,vn as t};
import{a as h}from"./array-b7dcf730-Nw74a44z.js";import{w as v,c as o}from"./path-39bad7e2-aUcfwwLI.js";import{aH as d}from"./index-Hfn5l4aw.js";function w(t){return t[0]}function b(t){return t[1]}function L(t,u){var s=o(!0),f=null,l=d,r=null,m=v(e);t=typeof t=="function"?t:t===void 0?w:o(t),u=typeof u=="function"?u:u===void 0?b:o(u);function e(n){var i,g=(n=h(n)).length,a,c=!1,p;for(f==null&&(r=l(p=m())),i=0;i<=g;++i)!(i<g&&s(a=n[i],i,n))===c&&((c=!c)?r.lineStart():r.lineEnd()),c&&r.point(+t(a,i,n),+u(a,i,n));if(p)return r=null,p+""||null}return e.x=function(n){return arguments.length?(t=typeof n=="function"?n:o(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:o(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:o(!!n),e):s},e.curve=function(n){return arguments.length?(l=n,f!=null&&(r=l(f)),e):l},e.context=function(n){return arguments.length?(n==null?f=r=null:r=l(f=n),e):f},e}export{L as l};
import{bn as O,bo as an,bp as $n,bq as on,br as X,bs as Te,bt as bn,bu as B,aQ as Kn,bv as fn,bw as fr,bx as dr,by as cr,bz as hr,bA as lr,bB as V,bC as vr,bD as Ln,bE as gr,bF as pr,bG as Le,bH as x,bI as Ae,bJ as Cn,bK as Xn,bL as F,bM as br,bN as q,bO as An,bP as wr,bQ as mr,bR as U,bS as In,bT as Ne,bU as _r,bV as Er,bW as H,bX as yr,bY as dn,bZ as xr,b_ as Oe,b$ as Tr,c0 as Lr,c1 as Vn}from"./index-Hfn5l4aw.js";var Ar="[object Symbol]";function P(n){return typeof n=="symbol"||H(n)&&yr(n)==Ar}function R(n,e){for(var r=-1,t=n==null?0:n.length,i=Array(t);++r<t;)i[r]=e(n[r],r,n);return i}var Nr=1/0,Zn=O?O.prototype:void 0,Jn=Zn?Zn.toString:void 0;function $e(n){if(typeof n=="string")return n;if(x(n))return R(n,$e)+"";if(P(n))return Jn?Jn.call(n):"";var e=n+"";return e=="0"&&1/n==-Nr?"-0":e}var Or=/\s/;function $r(n){for(var e=n.length;e--&&Or.test(n.charAt(e)););return e}var Cr=/^\s+/;function Ir(n){return n&&n.slice(0,$r(n)+1).replace(Cr,"")}var Qn=NaN,Pr=/^[-+]0x[0-9a-f]+$/i,Sr=/^0b[01]+$/i,Mr=/^0o[0-7]+$/i,Rr=parseInt;function Fr(n){if(typeof n=="number")return n;if(P(n))return Qn;if(F(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=F(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Ir(n);var r=Sr.test(n);return r||Mr.test(n)?Rr(n.slice(2),r?2:8):Pr.test(n)?Qn:+n}var zn=1/0,Dr=17976931348623157e292;function rn(n){if(!n)return n===0?n:0;if(n=Fr(n),n===zn||n===-zn){var e=n<0?-1:1;return e*Dr}return n===n?n:0}function Gr(n){var e=rn(n),r=e%1;return e===e?r?e-r:e:0}function kr(){}function Ce(n,e){for(var r=-1,t=n==null?0:n.length;++r<t&&e(n[r],r,n)!==!1;);return n}function Ie(n,e,r,t){for(var i=n.length,a=r+(t?1:-1);t?a--:++a<i;)if(e(n[a],a,n))return a;return-1}function Br(n){return n!==n}function Yr(n,e,r){for(var t=r-1,i=n.length;++t<i;)if(n[t]===e)return t;return-1}function Ur(n,e,r){return e===e?Yr(n,e,r):Ie(n,Br,r)}function qr(n,e){var r=n==null?0:n.length;return!!r&&Ur(n,e,0)>-1}function T(n){return fn(n)?fr(n):dr(n)}var Hr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wr=/^\w*$/;function Pn(n,e){if(x(n))return!1;var r=typeof n;return r=="number"||r=="symbol"||r=="boolean"||n==null||P(n)?!0:Wr.test(n)||!Hr.test(n)||e!=null&&n in Object(e)}var jr=500;function Kr(n){var e=cr(n,function(t){return r.size===jr&&r.clear(),t}),r=e.cache;return e}var Xr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vr=/\\(\\)?/g,Zr=Kr(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(Xr,function(r,t,i,a){e.push(i?a.replace(Vr,"$1"):t||r)}),e});const Jr=Zr;function Pe(n){return n==null?"":$e(n)}function cn(n,e){return x(n)?n:Pn(n,e)?[n]:Jr(Pe(n))}var Qr=1/0;function Z(n){if(typeof n=="string"||P(n))return n;var e=n+"";return e=="0"&&1/n==-Qr?"-0":e}function hn(n,e){e=cn(e,n);for(var r=0,t=e.length;n!=null&&r<t;)n=n[Z(e[r++])];return r&&r==t?n:void 0}function zr(n,e,r){var t=n==null?void 0:hn(n,e);return t===void 0?r:t}function Sn(n,e){for(var r=-1,t=e.length,i=n.length;++r<t;)n[i+r]=e[r];return n}var ne=O?O.isConcatSpreadable:void 0;function nt(n){return x(n)||Ae(n)||!!(ne&&n&&n[ne])}function ln(n,e,r,t,i){var a=-1,o=n.length;for(r||(r=nt),i||(i=[]);++a<o;){var s=n[a];e>0&&r(s)?e>1?ln(s,e-1,r,t,i):Sn(i,s):t||(i[i.length]=s)}return i}function G(n){var e=n==null?0:n.length;return e?ln(n,1):[]}function et(n){return hr(lr(n,void 0,G),n+"")}function rt(n,e,r,t){var i=-1,a=n==null?0:n.length;for(t&&a&&(r=n[++i]);++i<a;)r=e(r,n[i],i,n);return r}function tt(n,e){return n&&dn(e,T(e),n)}function it(n,e){return n&&dn(e,X(e),n)}function Se(n,e){for(var r=-1,t=n==null?0:n.length,i=0,a=[];++r<t;){var o=n[r];e(o,r,n)&&(a[i++]=o)}return a}function Me(){return[]}var at=Object.prototype,ot=at.propertyIsEnumerable,ee=Object.getOwnPropertySymbols,st=ee?function(n){return n==null?[]:(n=Object(n),Se(ee(n),function(e){return ot.call(n,e)}))}:Me;const Mn=st;function ut(n,e){return dn(n,Mn(n),e)}var ft=Object.getOwnPropertySymbols,dt=ft?function(n){for(var e=[];n;)Sn(e,Mn(n)),n=Lr(n);return e}:Me;const Re=dt;function ct(n,e){return dn(n,Re(n),e)}function Fe(n,e,r){var t=e(n);return x(n)?t:Sn(t,r(n))}function Nn(n){return Fe(n,T,Mn)}function ht(n){return Fe(n,X,Re)}var lt=Object.prototype,vt=lt.hasOwnProperty;function gt(n){var e=n.length,r=new n.constructor(e);return e&&typeof n[0]=="string"&&vt.call(n,"index")&&(r.index=n.index,r.input=n.input),r}function pt(n,e){var r=e?Oe(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}var bt=/\w*$/;function wt(n){var e=new n.constructor(n.source,bt.exec(n));return e.lastIndex=n.lastIndex,e}var re=O?O.prototype:void 0,te=re?re.valueOf:void 0;function mt(n){return te?Object(te.call(n)):{}}var _t="[object Boolean]",Et="[object Date]",yt="[object Map]",xt="[object Number]",Tt="[object RegExp]",Lt="[object Set]",At="[object String]",Nt="[object Symbol]",Ot="[object ArrayBuffer]",$t="[object DataView]",Ct="[object Float32Array]",It="[object Float64Array]",Pt="[object Int8Array]",St="[object Int16Array]",Mt="[object Int32Array]",Rt="[object Uint8Array]",Ft="[object Uint8ClampedArray]",Dt="[object Uint16Array]",Gt="[object Uint32Array]";function kt(n,e,r){var t=n.constructor;switch(e){case Ot:return Oe(n);case _t:case Et:return new t(+n);case $t:return pt(n,r);case Ct:case It:case Pt:case St:case Mt:case Rt:case Ft:case Dt:case Gt:return xr(n,r);case yt:return new t;case xt:case At:return new t(n);case Tt:return wt(n);case Lt:return new t;case Nt:return mt(n)}}var Bt="[object Map]";function Yt(n){return H(n)&&q(n)==Bt}var ie=an&&an.isMap,Ut=ie?Cn(ie):Yt;const qt=Ut;var Ht="[object Set]";function Wt(n){return H(n)&&q(n)==Ht}var ae=an&&an.isSet,jt=ae?Cn(ae):Wt;const Kt=jt;var Xt=1,Vt=2,Zt=4,De="[object Arguments]",Jt="[object Array]",Qt="[object Boolean]",zt="[object Date]",ni="[object Error]",Ge="[object Function]",ei="[object GeneratorFunction]",ri="[object Map]",ti="[object Number]",ke="[object Object]",ii="[object RegExp]",ai="[object Set]",oi="[object String]",si="[object Symbol]",ui="[object WeakMap]",fi="[object ArrayBuffer]",di="[object DataView]",ci="[object Float32Array]",hi="[object Float64Array]",li="[object Int8Array]",vi="[object Int16Array]",gi="[object Int32Array]",pi="[object Uint8Array]",bi="[object Uint8ClampedArray]",wi="[object Uint16Array]",mi="[object Uint32Array]",w={};w[De]=w[Jt]=w[fi]=w[di]=w[Qt]=w[zt]=w[ci]=w[hi]=w[li]=w[vi]=w[gi]=w[ri]=w[ti]=w[ke]=w[ii]=w[ai]=w[oi]=w[si]=w[pi]=w[bi]=w[wi]=w[mi]=!0;w[ni]=w[Ge]=w[ui]=!1;function tn(n,e,r,t,i,a){var o,s=e&Xt,u=e&Vt,f=e&Zt;if(r&&(o=i?r(n,t,i,a):r(n)),o!==void 0)return o;if(!F(n))return n;var d=x(n);if(d){if(o=gt(n),!s)return br(n,o)}else{var h=q(n),l=h==Ge||h==ei;if(An(n))return wr(n,s);if(h==ke||h==De||l&&!i){if(o=u||l?{}:mr(n),!s)return u?ct(n,it(o,n)):ut(n,tt(o,n))}else{if(!w[h])return i?n:{};o=kt(n,h,s)}}a||(a=new U);var g=a.get(n);if(g)return g;a.set(n,o),Kt(n)?n.forEach(function(m){o.add(tn(m,e,r,m,n,a))}):qt(n)&&n.forEach(function(m,_){o.set(_,tn(m,e,r,_,n,a))});var v=f?u?ht:Nn:u?X:T,p=d?void 0:v(n);return Ce(p||n,function(m,_){p&&(_=m,m=n[_]),In(o,_,tn(m,e,r,_,n,a))}),o}var _i=1,Ei=4;function yi(n){return tn(n,_i|Ei)}var xi="__lodash_hash_undefined__";function Ti(n){return this.__data__.set(n,xi),this}function Li(n){return this.__data__.has(n)}function W(n){var e=-1,r=n==null?0:n.length;for(this.__data__=new gr;++e<r;)this.add(n[e])}W.prototype.add=W.prototype.push=Ti;W.prototype.has=Li;function Ai(n,e){for(var r=-1,t=n==null?0:n.length;++r<t;)if(e(n[r],r,n))return!0;return!1}function Be(n,e){return n.has(e)}var Ni=1,Oi=2;function Ye(n,e,r,t,i,a){var o=r&Ni,s=n.length,u=e.length;if(s!=u&&!(o&&u>s))return!1;var f=a.get(n),d=a.get(e);if(f&&d)return f==e&&d==n;var h=-1,l=!0,g=r&Oi?new W:void 0;for(a.set(n,e),a.set(e,n);++h<s;){var v=n[h],p=e[h];if(t)var m=o?t(p,v,h,e,n,a):t(v,p,h,n,e,a);if(m!==void 0){if(m)continue;l=!1;break}if(g){if(!Ai(e,function(_,C){if(!Be(g,C)&&(v===_||i(v,_,r,t,a)))return g.push(C)})){l=!1;break}}else if(!(v===p||i(v,p,r,t,a))){l=!1;break}}return a.delete(n),a.delete(e),l}function $i(n){var e=-1,r=Array(n.size);return n.forEach(function(t,i){r[++e]=[i,t]}),r}function Rn(n){var e=-1,r=Array(n.size);return n.forEach(function(t){r[++e]=t}),r}var Ci=1,Ii=2,Pi="[object Boolean]",Si="[object Date]",Mi="[object Error]",Ri="[object Map]",Fi="[object Number]",Di="[object RegExp]",Gi="[object Set]",ki="[object String]",Bi="[object Symbol]",Yi="[object ArrayBuffer]",Ui="[object DataView]",oe=O?O.prototype:void 0,wn=oe?oe.valueOf:void 0;function qi(n,e,r,t,i,a,o){switch(r){case Ui:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case Yi:return!(n.byteLength!=e.byteLength||!a(new Vn(n),new Vn(e)));case Pi:case Si:case Fi:return Te(+n,+e);case Mi:return n.name==e.name&&n.message==e.message;case Di:case ki:return n==e+"";case Ri:var s=$i;case Gi:var u=t&Ci;if(s||(s=Rn),n.size!=e.size&&!u)return!1;var f=o.get(n);if(f)return f==e;t|=Ii,o.set(n,e);var d=Ye(s(n),s(e),t,i,a,o);return o.delete(n),d;case Bi:if(wn)return wn.call(n)==wn.call(e)}return!1}var Hi=1,Wi=Object.prototype,ji=Wi.hasOwnProperty;function Ki(n,e,r,t,i,a){var o=r&Hi,s=Nn(n),u=s.length,f=Nn(e),d=f.length;if(u!=d&&!o)return!1;for(var h=u;h--;){var l=s[h];if(!(o?l in e:ji.call(e,l)))return!1}var g=a.get(n),v=a.get(e);if(g&&v)return g==e&&v==n;var p=!0;a.set(n,e),a.set(e,n);for(var m=o;++h<u;){l=s[h];var _=n[l],C=e[l];if(t)var jn=o?t(C,_,l,e,n,a):t(_,C,l,n,e,a);if(!(jn===void 0?_===C||i(_,C,r,t,a):jn)){p=!1;break}m||(m=l=="constructor")}if(p&&!m){var z=n.constructor,nn=e.constructor;z!=nn&&"constructor"in n&&"constructor"in e&&!(typeof z=="function"&&z instanceof z&&typeof nn=="function"&&nn instanceof nn)&&(p=!1)}return a.delete(n),a.delete(e),p}var Xi=1,se="[object Arguments]",ue="[object Array]",en="[object Object]",Vi=Object.prototype,fe=Vi.hasOwnProperty;function Zi(n,e,r,t,i,a){var o=x(n),s=x(e),u=o?ue:q(n),f=s?ue:q(e);u=u==se?en:u,f=f==se?en:f;var d=u==en,h=f==en,l=u==f;if(l&&An(n)){if(!An(e))return!1;o=!0,d=!1}if(l&&!d)return a||(a=new U),o||Tr(n)?Ye(n,e,r,t,i,a):qi(n,e,u,r,t,i,a);if(!(r&Xi)){var g=d&&fe.call(n,"__wrapped__"),v=h&&fe.call(e,"__wrapped__");if(g||v){var p=g?n.value():n,m=v?e.value():e;return a||(a=new U),i(p,m,r,t,a)}}return l?(a||(a=new U),Ki(n,e,r,t,i,a)):!1}function Fn(n,e,r,t,i){return n===e?!0:n==null||e==null||!H(n)&&!H(e)?n!==n&&e!==e:Zi(n,e,r,t,Fn,i)}var Ji=1,Qi=2;function zi(n,e,r,t){var i=r.length,a=i,o=!t;if(n==null)return!a;for(n=Object(n);i--;){var s=r[i];if(o&&s[2]?s[1]!==n[s[0]]:!(s[0]in n))return!1}for(;++i<a;){s=r[i];var u=s[0],f=n[u],d=s[1];if(o&&s[2]){if(f===void 0&&!(u in n))return!1}else{var h=new U;if(t)var l=t(f,d,u,n,e,h);if(!(l===void 0?Fn(d,f,Ji|Qi,t,h):l))return!1}}return!0}function Ue(n){return n===n&&!F(n)}function na(n){for(var e=T(n),r=e.length;r--;){var t=e[r],i=n[t];e[r]=[t,i,Ue(i)]}return e}function qe(n,e){return function(r){return r==null?!1:r[n]===e&&(e!==void 0||n in Object(r))}}function ea(n){var e=na(n);return e.length==1&&e[0][2]?qe(e[0][0],e[0][1]):function(r){return r===n||zi(r,n,e)}}function ra(n,e){return n!=null&&e in Object(n)}function He(n,e,r){e=cn(e,n);for(var t=-1,i=e.length,a=!1;++t<i;){var o=Z(e[t]);if(!(a=n!=null&&r(n,o)))break;n=n[o]}return a||++t!=i?a:(i=n==null?0:n.length,!!i&&pr(i)&&Le(o,i)&&(x(n)||Ae(n)))}function We(n,e){return n!=null&&He(n,e,ra)}var ta=1,ia=2;function aa(n,e){return Pn(n)&&Ue(e)?qe(Z(n),e):function(r){var t=zr(r,n);return t===void 0&&t===e?We(r,n):Fn(e,t,ta|ia)}}function oa(n){return function(e){return e==null?void 0:e[n]}}function sa(n){return function(e){return hn(e,n)}}function ua(n){return Pn(n)?oa(Z(n)):sa(n)}function $(n){return typeof n=="function"?n:n==null?V:typeof n=="object"?x(n)?aa(n[0],n[1]):ea(n):ua(n)}function Dn(n,e){return n&&Ne(n,e,T)}function fa(n,e){return function(r,t){if(r==null)return r;if(!fn(r))return n(r,t);for(var i=r.length,a=e?i:-1,o=Object(r);(e?a--:++a<i)&&t(o[a],a,o)!==!1;);return r}}var da=fa(Dn);const vn=da;var ca=function(){return _r.Date.now()};const de=ca;var je=Object.prototype,ha=je.hasOwnProperty,la=$n(function(n,e){n=Object(n);var r=-1,t=e.length,i=t>2?e[2]:void 0;for(i&&on(e[0],e[1],i)&&(t=1);++r<t;)for(var a=e[r],o=X(a),s=-1,u=o.length;++s<u;){var f=o[s],d=n[f];(d===void 0||Te(d,je[f])&&!ha.call(n,f))&&(n[f]=a[f])}return n});const va=la;function ga(n,e,r){for(var t=-1,i=n==null?0:n.length;++t<i;)if(r(e,n[t]))return!0;return!1}function sn(n){var e=n==null?0:n.length;return e?n[e-1]:void 0}function Gn(n){return typeof n=="function"?n:V}function c(n,e){var r=x(n)?Ce:vn;return r(n,Gn(e))}function pa(n,e){var r=[];return vn(n,function(t,i,a){e(t,i,a)&&r.push(t)}),r}function A(n,e){var r=x(n)?Se:pa;return r(n,$(e))}function ba(n){return function(e,r,t){var i=Object(e);if(!fn(e)){var a=$(r);e=T(e),r=function(s){return a(i[s],s,i)}}var o=n(e,r,t);return o>-1?i[a?e[o]:o]:void 0}}var wa=Math.max;function ma(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:Gr(r);return i<0&&(i=wa(t+i,0)),Ie(n,$(e),i)}var _a=ba(ma);const kn=_a;function Ke(n,e){var r=-1,t=fn(n)?Array(n.length):[];return vn(n,function(i,a,o){t[++r]=e(i,a,o)}),t}function E(n,e){var r=x(n)?R:Ke;return r(n,$(e))}function Ea(n,e){return n==null?n:Ne(n,Gn(e),X)}function ya(n,e){return n&&Dn(n,Gn(e))}function xa(n,e){return n>e}var Ta=Object.prototype,La=Ta.hasOwnProperty;function Aa(n,e){return n!=null&&La.call(n,e)}function b(n,e){return n!=null&&He(n,e,Aa)}function Na(n,e){return R(e,function(r){return n[r]})}function N(n){return n==null?[]:Na(n,T(n))}function y(n){return n===void 0}function Xe(n,e){return n<e}function gn(n,e){var r={};return e=$(e),Dn(n,function(t,i,a){Er(r,i,e(t,i,a))}),r}function Bn(n,e,r){for(var t=-1,i=n.length;++t<i;){var a=n[t],o=e(a);if(o!=null&&(s===void 0?o===o&&!P(o):r(o,s)))var s=o,u=a}return u}function S(n){return n&&n.length?Bn(n,V,xa):void 0}function j(n){return n&&n.length?Bn(n,V,Xe):void 0}function Yn(n,e){return n&&n.length?Bn(n,$(e),Xe):void 0}function Oa(n,e,r,t){if(!F(n))return n;e=cn(e,n);for(var i=-1,a=e.length,o=a-1,s=n;s!=null&&++i<a;){var u=Z(e[i]),f=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return n;if(i!=o){var d=s[u];f=t?t(d,u,s):void 0,f===void 0&&(f=F(d)?d:Le(e[i+1])?[]:{})}In(s,u,f),s=s[u]}return n}function $a(n,e,r){for(var t=-1,i=e.length,a={};++t<i;){var o=e[t],s=hn(n,o);r(s,o)&&Oa(a,cn(o,n),s)}return a}function Ca(n,e){var r=n.length;for(n.sort(e);r--;)n[r]=n[r].value;return n}function Ia(n,e){if(n!==e){var r=n!==void 0,t=n===null,i=n===n,a=P(n),o=e!==void 0,s=e===null,u=e===e,f=P(e);if(!s&&!f&&!a&&n>e||a&&o&&u&&!s&&!f||t&&o&&u||!r&&u||!i)return 1;if(!t&&!a&&!f&&n<e||f&&r&&i&&!t&&!a||s&&r&&i||!o&&i||!u)return-1}return 0}function Pa(n,e,r){for(var t=-1,i=n.criteria,a=e.criteria,o=i.length,s=r.length;++t<o;){var u=Ia(i[t],a[t]);if(u){if(t>=s)return u;var f=r[t];return u*(f=="desc"?-1:1)}}return n.index-e.index}function Sa(n,e,r){e.length?e=R(e,function(a){return x(a)?function(o){return hn(o,a.length===1?a[0]:a)}:a}):e=[V];var t=-1;e=R(e,Cn($));var i=Ke(n,function(a,o,s){var u=R(e,function(f){return f(a)});return{criteria:u,index:++t,value:a}});return Ca(i,function(a,o){return Pa(a,o,r)})}function Ma(n,e){return $a(n,e,function(r,t){return We(n,t)})}var Ra=et(function(n,e){return n==null?{}:Ma(n,e)});const un=Ra;var Fa=Math.ceil,Da=Math.max;function Ga(n,e,r,t){for(var i=-1,a=Da(Fa((e-n)/(r||1)),0),o=Array(a);a--;)o[t?a:++i]=n,n+=r;return o}function ka(n){return function(e,r,t){return t&&typeof t!="number"&&on(e,r,t)&&(r=t=void 0),e=rn(e),r===void 0?(r=e,e=0):r=rn(r),t=t===void 0?e<r?1:-1:rn(t),Ga(e,r,t,n)}}var Ba=ka();const D=Ba;function Ya(n,e,r,t,i){return i(n,function(a,o,s){r=t?(t=!1,a):e(r,a,o,s)}),r}function J(n,e,r){var t=x(n)?rt:Ya,i=arguments.length<3;return t(n,$(e),r,i,vn)}var Ua=$n(function(n,e){if(n==null)return[];var r=e.length;return r>1&&on(n,e[0],e[1])?e=[]:r>2&&on(e[0],e[1],e[2])&&(e=[e[0]]),Sa(n,ln(e,1),[])});const Q=Ua;var qa=1/0,Ha=bn&&1/Rn(new bn([,-0]))[1]==qa?function(n){return new bn(n)}:kr;const Wa=Ha;var ja=200;function Ka(n,e,r){var t=-1,i=qr,a=n.length,o=!0,s=[],u=s;if(r)o=!1,i=ga;else if(a>=ja){var f=e?null:Wa(n);if(f)return Rn(f);o=!1,i=Be,u=new W}else u=e?[]:s;n:for(;++t<a;){var d=n[t],h=e?e(d):d;if(d=r||d!==0?d:0,o&&h===h){for(var l=u.length;l--;)if(u[l]===h)continue n;e&&u.push(h),s.push(d)}else i(u,h,r)||(u!==s&&u.push(h),s.push(d))}return s}var Xa=$n(function(n){return Ka(ln(n,1,vr,!0))});const Va=Xa;var Za=0;function Un(n){var e=++Za;return Pe(n)+e}function Ja(n,e,r){for(var t=-1,i=n.length,a=e.length,o={};++t<i;){var s=t<a?e[t]:void 0;r(o,n[t],s)}return o}function Qa(n,e){return Ja(n||[],e||[],In)}var za="\0",I="\0",ce="";class L{constructor(e={}){this._isDirected=b(e,"directed")?e.directed:!0,this._isMultigraph=b(e,"multigraph")?e.multigraph:!1,this._isCompound=b(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=B(void 0),this._defaultEdgeLabelFn=B(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[I]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return Kn(e)||(e=B(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return T(this._nodes)}sources(){var e=this;return A(this.nodes(),function(r){return Xn(e._in[r])})}sinks(){var e=this;return A(this.nodes(),function(r){return Xn(e._out[r])})}setNodes(e,r){var t=arguments,i=this;return c(e,function(a){t.length>1?i.setNode(a,r):i.setNode(a)}),this}setNode(e,r){return b(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=I,this._children[e]={},this._children[I][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return b(this._nodes,e)}removeNode(e){var r=this;if(b(this._nodes,e)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],c(this.children(e),function(i){r.setParent(i)}),delete this._children[e]),c(T(this._in[e]),t),delete this._in[e],delete this._preds[e],c(T(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(y(r))r=I;else{r+="";for(var t=r;!y(t);t=this.parent(t))if(t===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==I)return r}}children(e){if(y(e)&&(e=I),this._isCompound){var r=this._children[e];if(r)return T(r)}else{if(e===I)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return T(r)}successors(e){var r=this._sucs[e];if(r)return T(r)}neighbors(e){var r=this.predecessors(e);if(r)return Va(r,this.successors(e))}isLeaf(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;c(this._nodes,function(o,s){e(s)&&r.setNode(s,o)}),c(this._edgeObjs,function(o){r.hasNode(o.v)&&r.hasNode(o.w)&&r.setEdge(o,t.edge(o))});var i={};function a(o){var s=t.parent(o);return s===void 0||r.hasNode(s)?(i[o]=s,s):s in i?i[s]:a(s)}return this._isCompound&&c(r.nodes(),function(o){r.setParent(o,a(o))}),r}setDefaultEdgeLabel(e){return Kn(e)||(e=B(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return N(this._edgeObjs)}setPath(e,r){var t=this,i=arguments;return J(e,function(a,o){return i.length>1?t.setEdge(a,o,r):t.setEdge(a,o),o}),this}setEdge(){var e,r,t,i,a=!1,o=arguments[0];typeof o=="object"&&o!==null&&"v"in o?(e=o.v,r=o.w,t=o.name,arguments.length===2&&(i=arguments[1],a=!0)):(e=o,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,r=""+r,y(t)||(t=""+t);var s=Y(this._isDirected,e,r,t);if(b(this._edgeLabels,s))return a&&(this._edgeLabels[s]=i),this;if(!y(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[s]=a?i:this._defaultEdgeLabelFn(e,r,t);var u=no(this._isDirected,e,r,t);return e=u.v,r=u.w,Object.freeze(u),this._edgeObjs[s]=u,he(this._preds[r],e),he(this._sucs[e],r),this._in[r][s]=u,this._out[e][s]=u,this._edgeCount++,this}edge(e,r,t){var i=arguments.length===1?mn(this._isDirected,arguments[0]):Y(this._isDirected,e,r,t);return this._edgeLabels[i]}hasEdge(e,r,t){var i=arguments.length===1?mn(this._isDirected,arguments[0]):Y(this._isDirected,e,r,t);return b(this._edgeLabels,i)}removeEdge(e,r,t){var i=arguments.length===1?mn(this._isDirected,arguments[0]):Y(this._isDirected,e,r,t),a=this._edgeObjs[i];return a&&(e=a.v,r=a.w,delete this._edgeLabels[i],delete this._edgeObjs[i],le(this._preds[r],e),le(this._sucs[e],r),delete this._in[r][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,r){var t=this._in[e];if(t){var i=N(t);return r?A(i,function(a){return a.v===r}):i}}outEdges(e,r){var t=this._out[e];if(t){var i=N(t);return r?A(i,function(a){return a.w===r}):i}}nodeEdges(e,r){var t=this.inEdges(e,r);if(t)return t.concat(this.outEdges(e,r))}}L.prototype._nodeCount=0;L.prototype._edgeCount=0;function he(n,e){n[e]?n[e]++:n[e]=1}function le(n,e){--n[e]||delete n[e]}function Y(n,e,r,t){var i=""+e,a=""+r;if(!n&&i>a){var o=i;i=a,a=o}return i+ce+a+ce+(y(t)?za:t)}function no(n,e,r,t){var i=""+e,a=""+r;if(!n&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return t&&(s.name=t),s}function mn(n,e){return Y(n,e.v,e.w,e.name)}class eo{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return ve(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&ve(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,t=r._prev;t!==r;)e.push(JSON.stringify(t,ro)),t=t._prev;return"["+e.join(", ")+"]"}}function ve(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function ro(n,e){if(n!=="_next"&&n!=="_prev")return e}var to=B(1);function io(n,e){if(n.nodeCount()<=1)return[];var r=oo(n,e||to),t=ao(r.graph,r.buckets,r.zeroIdx);return G(E(t,function(i){return n.outEdges(i.v,i.w)}))}function ao(n,e,r){for(var t=[],i=e[e.length-1],a=e[0],o;n.nodeCount();){for(;o=a.dequeue();)_n(n,e,r,o);for(;o=i.dequeue();)_n(n,e,r,o);if(n.nodeCount()){for(var s=e.length-2;s>0;--s)if(o=e[s].dequeue(),o){t=t.concat(_n(n,e,r,o,!0));break}}}return t}function _n(n,e,r,t,i){var a=i?[]:void 0;return c(n.inEdges(t.v),function(o){var s=n.edge(o),u=n.node(o.v);i&&a.push({v:o.v,w:o.w}),u.out-=s,On(e,r,u)}),c(n.outEdges(t.v),function(o){var s=n.edge(o),u=o.w,f=n.node(u);f.in-=s,On(e,r,f)}),n.removeNode(t.v),a}function oo(n,e){var r=new L,t=0,i=0;c(n.nodes(),function(s){r.setNode(s,{v:s,in:0,out:0})}),c(n.edges(),function(s){var u=r.edge(s.v,s.w)||0,f=e(s),d=u+f;r.setEdge(s.v,s.w,d),i=Math.max(i,r.node(s.v).out+=f),t=Math.max(t,r.node(s.w).in+=f)});var a=D(i+t+3).map(function(){return new eo}),o=t+1;return c(r.nodes(),function(s){On(a,o,r.node(s))}),{graph:r,buckets:a,zeroIdx:o}}function On(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function so(n){var e=n.graph().acyclicer==="greedy"?io(n,r(n)):uo(n);c(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,Un("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function uo(n){var e=[],r={},t={};function i(a){b(t,a)||(t[a]=!0,r[a]=!0,c(n.outEdges(a),function(o){b(r,o.w)?e.push(o):i(o.w)}),delete r[a])}return c(n.nodes(),i),e}function fo(n){c(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function k(n,e,r,t){var i;do i=Un(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function co(n){var e=new L().setGraph(n.graph());return c(n.nodes(),function(r){e.setNode(r,n.node(r))}),c(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function Ve(n){var e=new L({multigraph:n.isMultigraph()}).setGraph(n.graph());return c(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),c(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function ge(n,e){var r=n.x,t=n.y,i=e.x-r,a=e.y-t,o=n.width/2,s=n.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var u,f;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),u=s*i/a,f=s):(i<0&&(o=-o),u=o,f=o*a/i),{x:r+u,y:t+f}}function pn(n){var e=E(D(Ze(n)+1),function(){return[]});return c(n.nodes(),function(r){var t=n.node(r),i=t.rank;y(i)||(e[i][t.order]=r)}),e}function ho(n){var e=j(E(n.nodes(),function(r){return n.node(r).rank}));c(n.nodes(),function(r){var t=n.node(r);b(t,"rank")&&(t.rank-=e)})}function lo(n){var e=j(E(n.nodes(),function(a){return n.node(a).rank})),r=[];c(n.nodes(),function(a){var o=n.node(a).rank-e;r[o]||(r[o]=[]),r[o].push(a)});var t=0,i=n.graph().nodeRankFactor;c(r,function(a,o){y(a)&&o%i!==0?--t:t&&c(a,function(s){n.node(s).rank+=t})})}function pe(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),k(n,"border",i,e)}function Ze(n){return S(E(n.nodes(),function(e){var r=n.node(e).rank;if(!y(r))return r}))}function vo(n,e){var r={lhs:[],rhs:[]};return c(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function go(n,e){var r=de();try{return e()}finally{console.log(n+" time: "+(de()-r)+"ms")}}function po(n,e){return e()}function bo(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&c(t,e),b(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a<o;++a)be(n,"borderLeft","_bl",r,i,a),be(n,"borderRight","_br",r,i,a)}}c(n.children(),e)}function be(n,e,r,t,i,a){var o={width:0,height:0,rank:a,borderType:e},s=i[e][a-1],u=k(n,"border",o,r);i[e][a]=u,n.setParent(u,t),s&&n.setEdge(s,u,{weight:1})}function wo(n){var e=n.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&Je(n)}function mo(n){var e=n.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&_o(n),(e==="lr"||e==="rl")&&(Eo(n),Je(n))}function Je(n){c(n.nodes(),function(e){we(n.node(e))}),c(n.edges(),function(e){we(n.edge(e))})}function we(n){var e=n.width;n.width=n.height,n.height=e}function _o(n){c(n.nodes(),function(e){En(n.node(e))}),c(n.edges(),function(e){var r=n.edge(e);c(r.points,En),b(r,"y")&&En(r)})}function En(n){n.y=-n.y}function Eo(n){c(n.nodes(),function(e){yn(n.node(e))}),c(n.edges(),function(e){var r=n.edge(e);c(r.points,yn),b(r,"x")&&yn(r)})}function yn(n){var e=n.x;n.x=n.y,n.y=e}function yo(n){n.graph().dummyChains=[],c(n.edges(),function(e){xo(n,e)})}function xo(n,e){var r=e.v,t=n.node(r).rank,i=e.w,a=n.node(i).rank,o=e.name,s=n.edge(e),u=s.labelRank;if(a!==t+1){n.removeEdge(e);var f,d,h;for(h=0,++t;t<a;++h,++t)s.points=[],d={width:0,height:0,edgeLabel:s,edgeObj:e,rank:t},f=k(n,"edge",d,"_d"),t===u&&(d.width=s.width,d.height=s.height,d.dummy="edge-label",d.labelpos=s.labelpos),n.setEdge(r,f,{weight:s.weight},o),h===0&&n.graph().dummyChains.push(f),r=f;n.setEdge(r,i,{weight:s.weight},o)}}function To(n){c(n.graph().dummyChains,function(e){var r=n.node(e),t=r.edgeLabel,i;for(n.setEdge(r.edgeObj,t);r.dummy;)i=n.successors(e)[0],n.removeNode(e),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),e=i,r=n.node(e)})}function qn(n){var e={};function r(t){var i=n.node(t);if(b(e,t))return i.rank;e[t]=!0;var a=j(E(n.outEdges(t),function(o){return r(o.w)-n.edge(o).minlen}));return(a===Number.POSITIVE_INFINITY||a===void 0||a===null)&&(a=0),i.rank=a}c(n.sources(),r)}function K(n,e){return n.node(e.w).rank-n.node(e.v).rank-n.edge(e).minlen}function Qe(n){var e=new L({directed:!1}),r=n.nodes()[0],t=n.nodeCount();e.setNode(r,{});for(var i,a;Lo(e,n)<t;)i=Ao(e,n),a=e.hasNode(i.v)?K(n,i):-K(n,i),No(e,n,a);return e}function Lo(n,e){function r(t){c(e.nodeEdges(t),function(i){var a=i.v,o=t===a?i.w:a;!n.hasNode(o)&&!K(e,i)&&(n.setNode(o,{}),n.setEdge(t,o,{}),r(o))})}return c(n.nodes(),r),n.nodeCount()}function Ao(n,e){return Yn(e.edges(),function(r){if(n.hasNode(r.v)!==n.hasNode(r.w))return K(e,r)})}function No(n,e,r){c(n.nodes(),function(t){e.node(t).rank+=r})}function ze(n,e,r){x(e)||(e=[e]);var t=(n.isDirected()?n.successors:n.neighbors).bind(n),i=[],a={};return c(e,function(o){if(!n.hasNode(o))throw new Error("Graph does not have node: "+o);nr(n,o,r==="post",a,t,i)}),i}function nr(n,e,r,t,i,a){b(t,e)||(t[e]=!0,r||a.push(e),c(i(e),function(o){nr(n,o,r,t,i,a)}),r&&a.push(e))}function Oo(n,e){return ze(n,e,"post")}function $o(n,e){return ze(n,e,"pre")}M.initLowLimValues=Wn;M.initCutValues=Hn;M.calcCutValue=er;M.leaveEdge=tr;M.enterEdge=ir;M.exchangeEdges=ar;function M(n){n=co(n),qn(n);var e=Qe(n);Wn(e),Hn(e,n);for(var r,t;r=tr(e);)t=ir(e,n,r),ar(e,n,r,t)}function Hn(n,e){var r=Oo(n,n.nodes());r=r.slice(0,r.length-1),c(r,function(t){Co(n,e,t)})}function Co(n,e,r){var t=n.node(r),i=t.parent;n.edge(r,i).cutvalue=er(n,e,r)}function er(n,e,r){var t=n.node(r),i=t.parent,a=!0,o=e.edge(r,i),s=0;return o||(a=!1,o=e.edge(i,r)),s=o.weight,c(e.nodeEdges(r),function(u){var f=u.v===r,d=f?u.w:u.v;if(d!==i){var h=f===a,l=e.edge(u).weight;if(s+=h?l:-l,Po(n,r,d)){var g=n.edge(r,d).cutvalue;s+=h?-g:g}}}),s}function Wn(n,e){arguments.length<2&&(e=n.nodes()[0]),rr(n,{},1,e)}function rr(n,e,r,t,i){var a=r,o=n.node(t);return e[t]=!0,c(n.neighbors(t),function(s){b(e,s)||(r=rr(n,e,r,s,t))}),o.low=a,o.lim=r++,i?o.parent=i:delete o.parent,r}function tr(n){return kn(n.edges(),function(e){return n.edge(e).cutvalue<0})}function ir(n,e,r){var t=r.v,i=r.w;e.hasEdge(t,i)||(t=r.w,i=r.v);var a=n.node(t),o=n.node(i),s=a,u=!1;a.lim>o.lim&&(s=o,u=!0);var f=A(e.edges(),function(d){return u===me(n,n.node(d.v),s)&&u!==me(n,n.node(d.w),s)});return Yn(f,function(d){return K(e,d)})}function ar(n,e,r,t){var i=r.v,a=r.w;n.removeEdge(i,a),n.setEdge(t.v,t.w,{}),Wn(n),Hn(n,e),Io(n,e)}function Io(n,e){var r=kn(n.nodes(),function(i){return!e.node(i).parent}),t=$o(n,r);t=t.slice(1),c(t,function(i){var a=n.node(i).parent,o=e.edge(i,a),s=!1;o||(o=e.edge(a,i),s=!0),e.node(i).rank=e.node(a).rank+(s?o.minlen:-o.minlen)})}function Po(n,e,r){return n.hasEdge(e,r)}function me(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function So(n){switch(n.graph().ranker){case"network-simplex":_e(n);break;case"tight-tree":Ro(n);break;case"longest-path":Mo(n);break;default:_e(n)}}var Mo=qn;function Ro(n){qn(n),Qe(n)}function _e(n){M(n)}function Fo(n){var e=k(n,"root",{},"_root"),r=Do(n),t=S(N(r))-1,i=2*t+1;n.graph().nestingRoot=e,c(n.edges(),function(o){n.edge(o).minlen*=i});var a=Go(n)+1;c(n.children(),function(o){or(n,e,i,a,t,r,o)}),n.graph().nodeRankFactor=i}function or(n,e,r,t,i,a,o){var s=n.children(o);if(!s.length){o!==e&&n.setEdge(e,o,{weight:0,minlen:r});return}var u=pe(n,"_bt"),f=pe(n,"_bb"),d=n.node(o);n.setParent(u,o),d.borderTop=u,n.setParent(f,o),d.borderBottom=f,c(s,function(h){or(n,e,r,t,i,a,h);var l=n.node(h),g=l.borderTop?l.borderTop:h,v=l.borderBottom?l.borderBottom:h,p=l.borderTop?t:2*t,m=g!==v?1:i-a[o]+1;n.setEdge(u,g,{weight:p,minlen:m,nestingEdge:!0}),n.setEdge(v,f,{weight:p,minlen:m,nestingEdge:!0})}),n.parent(o)||n.setEdge(e,u,{weight:0,minlen:i+a[o]})}function Do(n){var e={};function r(t,i){var a=n.children(t);a&&a.length&&c(a,function(o){r(o,i+1)}),e[t]=i}return c(n.children(),function(t){r(t,1)}),e}function Go(n){return J(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function ko(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,c(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Bo(n,e,r){var t={},i;c(r,function(a){for(var o=n.parent(a),s,u;o;){if(s=n.parent(o),s?(u=t[s],t[s]=o):(u=i,i=o),u&&u!==o){e.setEdge(u,o);return}o=s}})}function Yo(n,e,r){var t=Uo(n),i=new L({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(a){return n.node(a)});return c(n.nodes(),function(a){var o=n.node(a),s=n.parent(a);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||t),c(n[r](a),function(u){var f=u.v===a?u.w:u.v,d=i.edge(f,a),h=y(d)?0:d.weight;i.setEdge(f,a,{weight:n.edge(u).weight+h})}),b(o,"minRank")&&i.setNode(a,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))}),i}function Uo(n){for(var e;n.hasNode(e=Un("_root")););return e}function qo(n,e){for(var r=0,t=1;t<e.length;++t)r+=Ho(n,e[t-1],e[t]);return r}function Ho(n,e,r){for(var t=Qa(r,E(r,function(f,d){return d})),i=G(E(e,function(f){return Q(E(n.outEdges(f),function(d){return{pos:t[d.w],weight:n.edge(d).weight}}),"pos")})),a=1;a<r.length;)a<<=1;var o=2*a-1;a-=1;var s=E(new Array(o),function(){return 0}),u=0;return c(i.forEach(function(f){var d=f.pos+a;s[d]+=f.weight;for(var h=0;d>0;)d%2&&(h+=s[d+1]),d=d-1>>1,s[d]+=f.weight;u+=f.weight*h})),u}function Wo(n){var e={},r=A(n.nodes(),function(s){return!n.children(s).length}),t=S(E(r,function(s){return n.node(s).rank})),i=E(D(t+1),function(){return[]});function a(s){if(!b(e,s)){e[s]=!0;var u=n.node(s);i[u.rank].push(s),c(n.successors(s),a)}}var o=Q(r,function(s){return n.node(s).rank});return c(o,a),i}function jo(n,e){return E(e,function(r){var t=n.inEdges(r);if(t.length){var i=J(t,function(a,o){var s=n.edge(o),u=n.node(o.v);return{sum:a.sum+s.weight*u.order,weight:a.weight+s.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Ko(n,e){var r={};c(n,function(i,a){var o=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:a};y(i.barycenter)||(o.barycenter=i.barycenter,o.weight=i.weight)}),c(e.edges(),function(i){var a=r[i.v],o=r[i.w];!y(a)&&!y(o)&&(o.indegree++,a.out.push(r[i.w]))});var t=A(r,function(i){return!i.indegree});return Xo(t)}function Xo(n){var e=[];function r(a){return function(o){o.merged||(y(o.barycenter)||y(a.barycenter)||o.barycenter>=a.barycenter)&&Vo(a,o)}}function t(a){return function(o){o.in.push(a),--o.indegree===0&&n.push(o)}}for(;n.length;){var i=n.pop();e.push(i),c(i.in.reverse(),r(i)),c(i.out,t(i))}return E(A(e,function(a){return!a.merged}),function(a){return un(a,["vs","i","barycenter","weight"])})}function Vo(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function Zo(n,e){var r=vo(n,function(d){return b(d,"barycenter")}),t=r.lhs,i=Q(r.rhs,function(d){return-d.i}),a=[],o=0,s=0,u=0;t.sort(Jo(!!e)),u=Ee(a,i,u),c(t,function(d){u+=d.vs.length,a.push(d.vs),o+=d.barycenter*d.weight,s+=d.weight,u=Ee(a,i,u)});var f={vs:G(a)};return s&&(f.barycenter=o/s,f.weight=s),f}function Ee(n,e,r){for(var t;e.length&&(t=sn(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function Jo(n){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:n?r.i-e.i:e.i-r.i}}function sr(n,e,r,t){var i=n.children(e),a=n.node(e),o=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,u={};o&&(i=A(i,function(v){return v!==o&&v!==s}));var f=jo(n,i);c(f,function(v){if(n.children(v.v).length){var p=sr(n,v.v,r,t);u[v.v]=p,b(p,"barycenter")&&zo(v,p)}});var d=Ko(f,r);Qo(d,u);var h=Zo(d,t);if(o&&(h.vs=G([o,h.vs,s]),n.predecessors(o).length)){var l=n.node(n.predecessors(o)[0]),g=n.node(n.predecessors(s)[0]);b(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+g.order)/(h.weight+2),h.weight+=2}return h}function Qo(n,e){c(n,function(r){r.vs=G(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function zo(n,e){y(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function ns(n){var e=Ze(n),r=ye(n,D(1,e+1),"inEdges"),t=ye(n,D(e-1,-1,-1),"outEdges"),i=Wo(n);xe(n,i);for(var a=Number.POSITIVE_INFINITY,o,s=0,u=0;u<4;++s,++u){es(s%2?r:t,s%4>=2),i=pn(n);var f=qo(n,i);f<a&&(u=0,o=yi(i),a=f)}xe(n,o)}function ye(n,e,r){return E(e,function(t){return Yo(n,t,r)})}function es(n,e){var r=new L;c(n,function(t){var i=t.graph().root,a=sr(t,i,r,e);c(a.vs,function(o,s){t.node(o).order=s}),Bo(t,r,a.vs)})}function xe(n,e){c(e,function(r){c(r,function(t,i){n.node(t).order=i})})}function rs(n){var e=is(n);c(n.graph().dummyChains,function(r){for(var t=n.node(r),i=t.edgeObj,a=ts(n,e,i.v,i.w),o=a.path,s=a.lca,u=0,f=o[u],d=!0;r!==i.w;){if(t=n.node(r),d){for(;(f=o[u])!==s&&n.node(f).maxRank<t.rank;)u++;f===s&&(d=!1)}if(!d){for(;u<o.length-1&&n.node(f=o[u+1]).minRank<=t.rank;)u++;f=o[u]}n.setParent(r,f),r=n.successors(r)[0]}})}function ts(n,e,r,t){var i=[],a=[],o=Math.min(e[r].low,e[t].low),s=Math.max(e[r].lim,e[t].lim),u,f;u=r;do u=n.parent(u),i.push(u);while(u&&(e[u].low>o||s>e[u].lim));for(f=u,u=t;(u=n.parent(u))!==f;)a.push(u);return{path:i.concat(a.reverse()),lca:f}}function is(n){var e={},r=0;function t(i){var a=r;c(n.children(i),t),e[i]={low:a,lim:r++}}return c(n.children(),t),e}function as(n,e){var r={};function t(i,a){var o=0,s=0,u=i.length,f=sn(a);return c(a,function(d,h){var l=ss(n,d),g=l?n.node(l).order:u;(l||d===f)&&(c(a.slice(s,h+1),function(v){c(n.predecessors(v),function(p){var m=n.node(p),_=m.order;(_<o||g<_)&&!(m.dummy&&n.node(v).dummy)&&ur(r,p,v)})}),s=h+1,o=g)}),a}return J(e,t),r}function os(n,e){var r={};function t(a,o,s,u,f){var d;c(D(o,s),function(h){d=a[h],n.node(d).dummy&&c(n.predecessors(d),function(l){var g=n.node(l);g.dummy&&(g.order<u||g.order>f)&&ur(r,l,d)})})}function i(a,o){var s=-1,u,f=0;return c(o,function(d,h){if(n.node(d).dummy==="border"){var l=n.predecessors(d);l.length&&(u=n.node(l[0]).order,t(o,f,h,s,u),f=h,s=u)}t(o,f,o.length,u,a.length)}),o}return J(e,i),r}function ss(n,e){if(n.node(e).dummy)return kn(n.predecessors(e),function(r){return n.node(r).dummy})}function ur(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function us(n,e,r){if(e>r){var t=e;e=r,r=t}return b(n[e],r)}function fs(n,e,r,t){var i={},a={},o={};return c(e,function(s){c(s,function(u,f){i[u]=u,a[u]=u,o[u]=f})}),c(e,function(s){var u=-1;c(s,function(f){var d=t(f);if(d.length){d=Q(d,function(p){return o[p]});for(var h=(d.length-1)/2,l=Math.floor(h),g=Math.ceil(h);l<=g;++l){var v=d[l];a[f]===f&&u<o[v]&&!us(r,f,v)&&(a[v]=f,a[f]=i[f]=i[v],u=o[v])}}})}),{root:i,align:a}}function ds(n,e,r,t,i){var a={},o=cs(n,e,r,i),s=i?"borderLeft":"borderRight";function u(h,l){for(var g=o.nodes(),v=g.pop(),p={};v;)p[v]?h(v):(p[v]=!0,g.push(v),g=g.concat(l(v))),v=g.pop()}function f(h){a[h]=o.inEdges(h).reduce(function(l,g){return Math.max(l,a[g.v]+o.edge(g))},0)}function d(h){var l=o.outEdges(h).reduce(function(v,p){return Math.min(v,a[p.w]-o.edge(p))},Number.POSITIVE_INFINITY),g=n.node(h);l!==Number.POSITIVE_INFINITY&&g.borderType!==s&&(a[h]=Math.max(a[h],l))}return u(f,o.predecessors.bind(o)),u(d,o.successors.bind(o)),c(t,function(h){a[h]=a[r[h]]}),a}function cs(n,e,r,t){var i=new L,a=n.graph(),o=ps(a.nodesep,a.edgesep,t);return c(e,function(s){var u;c(s,function(f){var d=r[f];if(i.setNode(d),u){var h=r[u],l=i.edge(h,d);i.setEdge(h,d,Math.max(o(n,f,u),l||0))}u=f})}),i}function hs(n,e){return Yn(N(e),function(r){var t=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Ea(r,function(a,o){var s=bs(n,o)/2;t=Math.max(a+s,t),i=Math.min(a-s,i)}),t-i})}function ls(n,e){var r=N(e),t=j(r),i=S(r);c(["u","d"],function(a){c(["l","r"],function(o){var s=a+o,u=n[s],f;if(u!==e){var d=N(u);f=o==="l"?t-j(d):i-S(d),f&&(n[s]=gn(u,function(h){return h+f}))}})})}function vs(n,e){return gn(n.ul,function(r,t){if(e)return n[e.toLowerCase()][t];var i=Q(E(n,t));return(i[1]+i[2])/2})}function gs(n){var e=pn(n),r=Ln(as(n,e),os(n,e)),t={},i;c(["u","d"],function(o){i=o==="u"?e:N(e).reverse(),c(["l","r"],function(s){s==="r"&&(i=E(i,function(h){return N(h).reverse()}));var u=(o==="u"?n.predecessors:n.successors).bind(n),f=fs(n,i,r,u),d=ds(n,i,f.root,f.align,s==="r");s==="r"&&(d=gn(d,function(h){return-h})),t[o+s]=d})});var a=hs(n,t);return ls(t,a),vs(t,n.graph().align)}function ps(n,e,r){return function(t,i,a){var o=t.node(i),s=t.node(a),u=0,f;if(u+=o.width/2,b(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":f=-o.width/2;break;case"r":f=o.width/2;break}if(f&&(u+=r?f:-f),f=0,u+=(o.dummy?e:n)/2,u+=(s.dummy?e:n)/2,u+=s.width/2,b(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":f=s.width/2;break;case"r":f=-s.width/2;break}return f&&(u+=r?f:-f),f=0,u}}function bs(n,e){return n.node(e).width}function ws(n){n=Ve(n),ms(n),ya(gs(n),function(e,r){n.node(r).x=e})}function ms(n){var e=pn(n),r=n.graph().ranksep,t=0;c(e,function(i){var a=S(E(i,function(o){return n.node(o).height}));c(i,function(o){n.node(o).y=t+a/2}),t+=a+r})}function Hs(n,e){var r=e&&e.debugTiming?go:po;r("layout",function(){var t=r(" buildLayoutGraph",function(){return Cs(n)});r(" runLayout",function(){_s(t,r)}),r(" updateInputGraph",function(){Es(n,t)})})}function _s(n,e){e(" makeSpaceForEdgeLabels",function(){Is(n)}),e(" removeSelfEdges",function(){Bs(n)}),e(" acyclic",function(){so(n)}),e(" nestingGraph.run",function(){Fo(n)}),e(" rank",function(){So(Ve(n))}),e(" injectEdgeLabelProxies",function(){Ps(n)}),e(" removeEmptyRanks",function(){lo(n)}),e(" nestingGraph.cleanup",function(){ko(n)}),e(" normalizeRanks",function(){ho(n)}),e(" assignRankMinMax",function(){Ss(n)}),e(" removeEdgeLabelProxies",function(){Ms(n)}),e(" normalize.run",function(){yo(n)}),e(" parentDummyChains",function(){rs(n)}),e(" addBorderSegments",function(){bo(n)}),e(" order",function(){ns(n)}),e(" insertSelfEdges",function(){Ys(n)}),e(" adjustCoordinateSystem",function(){wo(n)}),e(" position",function(){ws(n)}),e(" positionSelfEdges",function(){Us(n)}),e(" removeBorderNodes",function(){ks(n)}),e(" normalize.undo",function(){To(n)}),e(" fixupEdgeLabelCoords",function(){Ds(n)}),e(" undoCoordinateSystem",function(){mo(n)}),e(" translateGraph",function(){Rs(n)}),e(" assignNodeIntersects",function(){Fs(n)}),e(" reversePoints",function(){Gs(n)}),e(" acyclic.undo",function(){fo(n)})}function Es(n,e){c(n.nodes(),function(r){var t=n.node(r),i=e.node(r);t&&(t.x=i.x,t.y=i.y,e.children(r).length&&(t.width=i.width,t.height=i.height))}),c(n.edges(),function(r){var t=n.edge(r),i=e.edge(r);t.points=i.points,b(i,"x")&&(t.x=i.x,t.y=i.y)}),n.graph().width=e.graph().width,n.graph().height=e.graph().height}var ys=["nodesep","edgesep","ranksep","marginx","marginy"],xs={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Ts=["acyclicer","ranker","rankdir","align"],Ls=["width","height"],As={width:0,height:0},Ns=["minlen","weight","width","height","labeloffset"],Os={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},$s=["labelpos"];function Cs(n){var e=new L({multigraph:!0,compound:!0}),r=Tn(n.graph());return e.setGraph(Ln({},xs,xn(r,ys),un(r,Ts))),c(n.nodes(),function(t){var i=Tn(n.node(t));e.setNode(t,va(xn(i,Ls),As)),e.setParent(t,n.parent(t))}),c(n.edges(),function(t){var i=Tn(n.edge(t));e.setEdge(t,Ln({},Os,xn(i,Ns),un(i,$s)))}),e}function Is(n){var e=n.graph();e.ranksep/=2,c(n.edges(),function(r){var t=n.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Ps(n){c(n.edges(),function(e){var r=n.edge(e);if(r.width&&r.height){var t=n.node(e.v),i=n.node(e.w),a={rank:(i.rank-t.rank)/2+t.rank,e};k(n,"edge-proxy",a,"_ep")}})}function Ss(n){var e=0;c(n.nodes(),function(r){var t=n.node(r);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,e=S(e,t.maxRank))}),n.graph().maxRank=e}function Ms(n){c(n.nodes(),function(e){var r=n.node(e);r.dummy==="edge-proxy"&&(n.edge(r.e).labelRank=r.rank,n.removeNode(e))})}function Rs(n){var e=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,i=0,a=n.graph(),o=a.marginx||0,s=a.marginy||0;function u(f){var d=f.x,h=f.y,l=f.width,g=f.height;e=Math.min(e,d-l/2),r=Math.max(r,d+l/2),t=Math.min(t,h-g/2),i=Math.max(i,h+g/2)}c(n.nodes(),function(f){u(n.node(f))}),c(n.edges(),function(f){var d=n.edge(f);b(d,"x")&&u(d)}),e-=o,t-=s,c(n.nodes(),function(f){var d=n.node(f);d.x-=e,d.y-=t}),c(n.edges(),function(f){var d=n.edge(f);c(d.points,function(h){h.x-=e,h.y-=t}),b(d,"x")&&(d.x-=e),b(d,"y")&&(d.y-=t)}),a.width=r-e+o,a.height=i-t+s}function Fs(n){c(n.edges(),function(e){var r=n.edge(e),t=n.node(e.v),i=n.node(e.w),a,o;r.points?(a=r.points[0],o=r.points[r.points.length-1]):(r.points=[],a=i,o=t),r.points.unshift(ge(t,a)),r.points.push(ge(i,o))})}function Ds(n){c(n.edges(),function(e){var r=n.edge(e);if(b(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Gs(n){c(n.edges(),function(e){var r=n.edge(e);r.reversed&&r.points.reverse()})}function ks(n){c(n.nodes(),function(e){if(n.children(e).length){var r=n.node(e),t=n.node(r.borderTop),i=n.node(r.borderBottom),a=n.node(sn(r.borderLeft)),o=n.node(sn(r.borderRight));r.width=Math.abs(o.x-a.x),r.height=Math.abs(i.y-t.y),r.x=a.x+r.width/2,r.y=t.y+r.height/2}}),c(n.nodes(),function(e){n.node(e).dummy==="border"&&n.removeNode(e)})}function Bs(n){c(n.edges(),function(e){if(e.v===e.w){var r=n.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:n.edge(e)}),n.removeEdge(e)}})}function Ys(n){var e=pn(n);c(e,function(r){var t=0;c(r,function(i,a){var o=n.node(i);o.order=a+t,c(o.selfEdges,function(s){k(n,"selfedge",{width:s.label.width,height:s.label.height,rank:o.rank,order:a+ ++t,e:s.e,label:s.label},"_se")}),delete o.selfEdges})})}function Us(n){c(n.nodes(),function(e){var r=n.node(e);if(r.dummy==="selfedge"){var t=n.node(r.e.v),i=t.x+t.width/2,a=t.y,o=r.x-i,s=t.height/2;n.setEdge(r.e,r.label),n.removeNode(e),r.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],r.label.x=r.x,r.label.y=r.y}})}function xn(n,e){return gn(un(n,e),Number)}function Tn(n){var e={};return c(n,function(r,t){e[t.toLowerCase()]=r}),e}export{L as G,tn as b,va as d,c as f,b as h,y as i,Hs as l,E as m,un as p,D as r,Un as u};
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/**
* @vue/shared v3.4.15
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function ki(t,e){const n=new Set(t.split(","));return e?i=>n.has(i.toLowerCase()):i=>n.has(i)}const Jt=Object.freeze({}),vo=Object.freeze([]),Be=()=>{},P0=()=>!1,ia=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),xl=t=>t.startsWith("onUpdate:"),oe=Object.assign,Sf=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Hx=Object.prototype.hasOwnProperty,Nt=(t,e)=>Hx.call(t,e),gt=Array.isArray,Fr=t=>ra(t)==="[object Map]",R0=t=>ra(t)==="[object Set]",qx=t=>ra(t)==="[object RegExp]",wt=t=>typeof t=="function",te=t=>typeof t=="string",Ro=t=>typeof t=="symbol",Ut=t=>t!==null&&typeof t=="object",kf=t=>(Ut(t)||wt(t))&&wt(t.then)&&wt(t.catch),N0=Object.prototype.toString,ra=t=>N0.call(t),Af=t=>ra(t).slice(8,-1),D0=t=>ra(t)==="[object Object]",Ef=t=>te(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Za=ki(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zx=ki("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),gc=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Vx=/-(\w)/g,Qn=gc(t=>t.replace(Vx,(e,n)=>n?n.toUpperCase():"")),Wx=/\B([A-Z])/g,xi=gc(t=>t.replace(Wx,"-$1").toLowerCase()),Vr=gc(t=>t.charAt(0).toUpperCase()+t.slice(1)),xr=gc(t=>t?`on${Vr(t)}`:""),ir=(t,e)=>!Object.is(t,e),Tr=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},Cl=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Ux=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Yx=t=>{const e=te(t)?Number(t):NaN;return isNaN(e)?t:e};let gp;const $f=()=>gp||(gp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ae(t){if(gt(t)){const e={};for(let n=0;n<t.length;n++){const i=t[n],r=te(i)?Zx(i):Ae(i);if(r)for(const o in r)e[o]=r[o]}return e}else if(te(t)||Ut(t))return t}const Gx=/;(?![^(]*\))/g,Kx=/:([^]+)/,Xx=/\/\*[^]*?\*\//g;function Zx(t){const e={};return t.replace(Xx,"").split(Gx).forEach(n=>{if(n){const i=n.split(Kx);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function ee(t){let e="";if(te(t))e=t;else if(gt(t))for(let n=0;n<t.length;n++){const i=ee(t[n]);i&&(e+=i+" ")}else if(Ut(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function oa(t){if(!t)return null;let{class:e,style:n}=t;return e&&!te(e)&&(t.class=ee(e)),n&&(t.style=Ae(n)),t}const Jx="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Qx="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",tC="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",j0=ki(Jx),eC=ki(Qx),nC=ki(tC),iC="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",rC=ki(iC);function H0(t){return!!t||t===""}const yn=t=>te(t)?t:t==null?"":gt(t)||Ut(t)&&(t.toString===N0||!wt(t.toString))?JSON.stringify(t,q0,2):String(t),q0=(t,e)=>e&&e.__v_isRef?q0(t,e.value):Fr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[i,r],o)=>(n[au(i,o)+" =>"]=r,n),{})}:R0(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>au(n))}:Ro(e)?au(e):Ut(e)&&!gt(e)&&!D0(e)?String(e):e,au=(t,e="")=>{var n;return Ro(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
* @vue/reactivity v3.4.15
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function wl(t,...e){console.warn(`[Vue warn] ${t}`,...e)}let nn;class z0{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=nn,!e&&nn&&(this.index=(nn.scopes||(nn.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=nn;try{return nn=this,e()}finally{nn=n}}else wl("cannot run an inactive effect scope.")}on(){nn=this}off(){nn=this.parent}stop(e){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function oC(t){return new z0(t)}function sC(t,e=nn){e&&e.active&&e.effects.push(t)}function V0(){return nn}function aC(t){nn?nn.cleanups.push(t):wl("onScopeDispose() is called when there is no active effect scope to be associated with.")}let Br;class Lf{constructor(e,n,i,r){this.fn=e,this.trigger=n,this.scheduler=i,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,sC(this,r)}get dirty(){if(this._dirtyLevel===1){cr();for(let e=0;e<this._depsLength;e++){const n=this.deps[e];if(n.computed&&(lC(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),ur()}return this._dirtyLevel>=2}set dirty(e){this._dirtyLevel=e?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Gi,n=Br;try{return Gi=!0,Br=this,this._runnings++,yp(this),this.fn()}finally{_p(this),this._runnings--,Br=n,Gi=e}}stop(){var e;this.active&&(yp(this),_p(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function lC(t){return t.value}function yp(t){t._trackId++,t._depsLength=0}function _p(t){if(t.deps&&t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)W0(t.deps[e],t);t.deps.length=t._depsLength}}function W0(t,e){const n=t.get(e);n!==void 0&&e._trackId!==n&&(t.delete(e),t.size===0&&t.cleanup())}let Gi=!0,nh=0;const U0=[];function cr(){U0.push(Gi),Gi=!1}function ur(){const t=U0.pop();Gi=t===void 0?!0:t}function Of(){nh++}function Mf(){for(nh--;!nh&&ih.length;)ih.shift()()}function Y0(t,e,n){var i;if(e.get(t)!==t._trackId){e.set(t,t._trackId);const r=t.deps[t._depsLength];r!==e?(r&&W0(r,t),t.deps[t._depsLength++]=e):t._depsLength++,(i=t.onTrack)==null||i.call(t,oe({effect:t},n))}}const ih=[];function G0(t,e,n){var i;Of();for(const r of t.keys())if(r._dirtyLevel<e&&t.get(r)===r._trackId){const o=r._dirtyLevel;r._dirtyLevel=e,o===0&&(r._shouldSchedule=!0,(i=r.onTrigger)==null||i.call(r,oe({effect:r},n)),r.trigger())}K0(t),Mf()}function K0(t){for(const e of t.keys())e.scheduler&&e._shouldSchedule&&(!e._runnings||e.allowRecurse)&&t.get(e)===e._trackId&&(e._shouldSchedule=!1,ih.push(e.scheduler))}const X0=(t,e)=>{const n=new Map;return n.cleanup=t,n.computed=e,n},Tl=new WeakMap,Ir=Symbol("iterate"),rh=Symbol("Map key iterate");function Re(t,e,n){if(Gi&&Br){let i=Tl.get(t);i||Tl.set(t,i=new Map);let r=i.get(n);r||i.set(n,r=X0(()=>i.delete(n))),Y0(Br,r,{target:t,type:e,key:n})}}function Kn(t,e,n,i,r,o){const s=Tl.get(t);if(!s)return;let a=[];if(e==="clear")a=[...s.values()];else if(n==="length"&>(t)){const l=Number(i);s.forEach((c,u)=>{(u==="length"||!Ro(u)&&u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(s.get(n)),e){case"add":gt(t)?Ef(n)&&a.push(s.get("length")):(a.push(s.get(Ir)),Fr(t)&&a.push(s.get(rh)));break;case"delete":gt(t)||(a.push(s.get(Ir)),Fr(t)&&a.push(s.get(rh)));break;case"set":Fr(t)&&a.push(s.get(Ir));break}Of();for(const l of a)l&&G0(l,2,{target:t,type:e,key:n,newValue:i,oldValue:r,oldTarget:o});Mf()}function cC(t,e){var n;return(n=Tl.get(t))==null?void 0:n.get(e)}const uC=ki("__proto__,__v_isRef,__isVue"),Z0=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Ro)),vp=hC();function hC(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const i=At(this);for(let o=0,s=this.length;o<s;o++)Re(i,"get",o+"");const r=i[e](...n);return r===-1||r===!1?i[e](...n.map(At)):r}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){cr(),Of();const i=At(this)[e].apply(this,n);return Mf(),ur(),i}}),t}function fC(t){const e=At(this);return Re(e,"has",t),e.hasOwnProperty(t)}class J0{constructor(e=!1,n=!1){this._isReadonly=e,this._shallow=n}get(e,n,i){const r=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return i===(r?o?oy:ry:o?iy:ny).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;const s=gt(e);if(!r){if(s&&Nt(vp,n))return Reflect.get(vp,n,i);if(n==="hasOwnProperty")return fC}const a=Reflect.get(e,n,i);return(Ro(n)?Z0.has(n):uC(n))||(r||Re(e,"get",n),o)?a:Yt(a)?s&&Ef(n)?a:a.value:Ut(a)?r?Un(a):zt(a):a}}class Q0 extends J0{constructor(e=!1){super(!1,e)}set(e,n,i,r){let o=e[n];if(!this._shallow){const l=rr(o);if(!Sl(i)&&!rr(i)&&(o=At(o),i=At(i)),!gt(e)&&Yt(o)&&!Yt(i))return l?!1:(o.value=i,!0)}const s=gt(e)&&Ef(n)?Number(n)<e.length:Nt(e,n),a=Reflect.set(e,n,i,r);return e===At(r)&&(s?ir(i,o)&&Kn(e,"set",n,i,o):Kn(e,"add",n,i)),a}deleteProperty(e,n){const i=Nt(e,n),r=e[n],o=Reflect.deleteProperty(e,n);return o&&i&&Kn(e,"delete",n,void 0,r),o}has(e,n){const i=Reflect.has(e,n);return(!Ro(n)||!Z0.has(n))&&Re(e,"has",n),i}ownKeys(e){return Re(e,"iterate",gt(e)?"length":Ir),Reflect.ownKeys(e)}}class ty extends J0{constructor(e=!1){super(!0,e)}set(e,n){return wl(`Set operation on key "${String(n)}" failed: target is readonly.`,e),!0}deleteProperty(e,n){return wl(`Delete operation on key "${String(n)}" failed: target is readonly.`,e),!0}}const dC=new Q0,pC=new ty,mC=new Q0(!0),gC=new ty(!0),Ff=t=>t,yc=t=>Reflect.getPrototypeOf(t);function Ta(t,e,n=!1,i=!1){t=t.__v_raw;const r=At(t),o=At(e);n||(ir(e,o)&&Re(r,"get",e),Re(r,"get",o));const{has:s}=yc(r),a=i?Ff:n?Bf:Ls;if(s.call(r,e))return a(t.get(e));if(s.call(r,o))return a(t.get(o));t!==r&&t.get(e)}function Sa(t,e=!1){const n=this.__v_raw,i=At(n),r=At(t);return e||(ir(t,r)&&Re(i,"has",t),Re(i,"has",r)),t===r?n.has(t):n.has(t)||n.has(r)}function ka(t,e=!1){return t=t.__v_raw,!e&&Re(At(t),"iterate",Ir),Reflect.get(t,"size",t)}function bp(t){t=At(t);const e=At(this);return yc(e).has.call(e,t)||(e.add(t),Kn(e,"add",t,t)),this}function xp(t,e){e=At(e);const n=At(this),{has:i,get:r}=yc(n);let o=i.call(n,t);o?ey(n,i,t):(t=At(t),o=i.call(n,t));const s=r.call(n,t);return n.set(t,e),o?ir(e,s)&&Kn(n,"set",t,e,s):Kn(n,"add",t,e),this}function Cp(t){const e=At(this),{has:n,get:i}=yc(e);let r=n.call(e,t);r?ey(e,n,t):(t=At(t),r=n.call(e,t));const o=i?i.call(e,t):void 0,s=e.delete(t);return r&&Kn(e,"delete",t,void 0,o),s}function wp(){const t=At(this),e=t.size!==0,n=Fr(t)?new Map(t):new Set(t),i=t.clear();return e&&Kn(t,"clear",void 0,void 0,n),i}function Aa(t,e){return function(i,r){const o=this,s=o.__v_raw,a=At(s),l=e?Ff:t?Bf:Ls;return!t&&Re(a,"iterate",Ir),s.forEach((c,u)=>i.call(r,l(c),l(u),o))}}function Ea(t,e,n){return function(...i){const r=this.__v_raw,o=At(r),s=Fr(o),a=t==="entries"||t===Symbol.iterator&&s,l=t==="keys"&&s,c=r[t](...i),u=n?Ff:e?Bf:Ls;return!e&&Re(o,"iterate",l?rh:Ir),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:a?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function Mi(t){return function(...e){{const n=e[0]?`on key "${e[0]}" `:"";console.warn(`${Vr(t)} operation ${n}failed: target is readonly.`,At(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function yC(){const t={get(o){return Ta(this,o)},get size(){return ka(this)},has:Sa,add:bp,set:xp,delete:Cp,clear:wp,forEach:Aa(!1,!1)},e={get(o){return Ta(this,o,!1,!0)},get size(){return ka(this)},has:Sa,add:bp,set:xp,delete:Cp,clear:wp,forEach:Aa(!1,!0)},n={get(o){return Ta(this,o,!0)},get size(){return ka(this,!0)},has(o){return Sa.call(this,o,!0)},add:Mi("add"),set:Mi("set"),delete:Mi("delete"),clear:Mi("clear"),forEach:Aa(!0,!1)},i={get(o){return Ta(this,o,!0,!0)},get size(){return ka(this,!0)},has(o){return Sa.call(this,o,!0)},add:Mi("add"),set:Mi("set"),delete:Mi("delete"),clear:Mi("clear"),forEach:Aa(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=Ea(o,!1,!1),n[o]=Ea(o,!0,!1),e[o]=Ea(o,!1,!0),i[o]=Ea(o,!0,!0)}),[t,n,e,i]}const[_C,vC,bC,xC]=yC();function _c(t,e){const n=e?t?xC:bC:t?vC:_C;return(i,r,o)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?i:Reflect.get(Nt(n,r)&&r in i?n:i,r,o)}const CC={get:_c(!1,!1)},wC={get:_c(!1,!0)},TC={get:_c(!0,!1)},SC={get:_c(!0,!0)};function ey(t,e,n){const i=At(n);if(i!==n&&e.call(t,i)){const r=Af(t);console.warn(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const ny=new WeakMap,iy=new WeakMap,ry=new WeakMap,oy=new WeakMap;function kC(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function AC(t){return t.__v_skip||!Object.isExtensible(t)?0:kC(Af(t))}function zt(t){return rr(t)?t:vc(t,!1,dC,CC,ny)}function sy(t){return vc(t,!1,mC,wC,iy)}function Un(t){return vc(t,!0,pC,TC,ry)}function mo(t){return vc(t,!0,gC,SC,oy)}function vc(t,e,n,i,r){if(!Ut(t))return console.warn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=r.get(t);if(o)return o;const s=AC(t);if(s===0)return t;const a=new Proxy(t,s===2?i:n);return r.set(t,a),a}function Pr(t){return rr(t)?Pr(t.__v_raw):!!(t&&t.__v_isReactive)}function rr(t){return!!(t&&t.__v_isReadonly)}function Sl(t){return!!(t&&t.__v_isShallow)}function kl(t){return Pr(t)||rr(t)}function At(t){const e=t&&t.__v_raw;return e?At(e):t}function bc(t){return Cl(t,"__v_skip",!0),t}const Ls=t=>Ut(t)?zt(t):t,Bf=t=>Ut(t)?Un(t):t;class ay{constructor(e,n,i,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Lf(()=>e(this._value),()=>ms(this,1),()=>this.dep&&K0(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=i}get value(){const e=At(this);return(!e._cacheable||e.effect.dirty)&&ir(e._value,e._value=e.effect.run())&&ms(e,2),If(e),e.effect._dirtyLevel>=1&&ms(e,1),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function EC(t,e,n=!1){let i,r;const o=wt(t);o?(i=t,r=()=>{console.warn("Write operation failed: computed value is readonly")}):(i=t.get,r=t.set);const s=new ay(i,r,o||!r,n);return e&&!n&&(s.effect.onTrack=e.onTrack,s.effect.onTrigger=e.onTrigger),s}function If(t){Gi&&Br&&(t=At(t),Y0(Br,t.dep||(t.dep=X0(()=>t.dep=void 0,t instanceof ay?t:void 0)),{target:t,type:"get",key:"value"}))}function ms(t,e=2,n){t=At(t);const i=t.dep;i&&G0(i,e,{target:t,type:"set",key:"value",newValue:n})}function Yt(t){return!!(t&&t.__v_isRef===!0)}function tt(t){return ly(t,!1)}function ti(t){return ly(t,!0)}function ly(t,e){return Yt(t)?t:new $C(t,e)}class $C{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:At(e),this._value=n?e:Ls(e)}get value(){return If(this),this._value}set value(e){const n=this.__v_isShallow||Sl(e)||rr(e);e=n?e:At(e),ir(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:Ls(e),ms(this,2,e))}}function O(t){return Yt(t)?t.value:t}const LC={get:(t,e,n)=>O(Reflect.get(t,e,n)),set:(t,e,n,i)=>{const r=t[e];return Yt(r)&&!Yt(n)?(r.value=n,!0):Reflect.set(t,e,n,i)}};function cy(t){return Pr(t)?t:new Proxy(t,LC)}class OC{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:i}=e(()=>If(this),()=>ms(this));this._get=n,this._set=i}get value(){return this._get()}set value(e){this._set(e)}}function Pf(t){return new OC(t)}function MC(t){kl(t)||console.warn("toRefs() expects a reactive object but received a plain one.");const e=gt(t)?new Array(t.length):{};for(const n in t)e[n]=uy(t,n);return e}class FC{constructor(e,n,i){this._object=e,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return cC(At(this._object),this._key)}}class BC{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Ai(t,e,n){return Yt(t)?t:wt(t)?new BC(t):Ut(t)&&arguments.length>1?uy(t,e,n):tt(t)}function uy(t,e,n){const i=t[e];return Yt(i)?i:new FC(t,e,n)}/**
* @vue/runtime-core v3.4.15
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Rr=[];function Ja(t){Rr.push(t)}function Qa(){Rr.pop()}function G(t,...e){cr();const n=Rr.length?Rr[Rr.length-1].component:null,i=n&&n.appContext.config.warnHandler,r=IC();if(i)_i(i,n,11,[t+e.join(""),n&&n.proxy,r.map(({vnode:o})=>`at <${$c(n,o.type)}>`).join(`
`),r]);else{const o=[`[Vue warn]: ${t}`,...e];r.length&&o.push(`
`,...PC(r)),console.warn(...o)}ur()}function IC(){let t=Rr[Rr.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const i=t.component&&t.component.parent;t=i&&i.vnode}return e}function PC(t){const e=[];return t.forEach((n,i)=>{e.push(...i===0?[]:[`
`],...RC(n))}),e}function RC({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",i=t.component?t.component.parent==null:!1,r=` at <${$c(t.component,t.type,i)}`,o=">"+n;return t.props?[r,...NC(t.props),o]:[r+o]}function NC(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(i=>{e.push(...hy(i,t[i]))}),n.length>3&&e.push(" ..."),e}function hy(t,e,n){return te(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:Yt(e)?(e=hy(t,At(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):wt(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=At(e),n?e:[`${t}=`,e])}function DC(t,e){t!==void 0&&(typeof t!="number"?G(`${e} is not a valid number - got ${JSON.stringify(t)}.`):isNaN(t)&&G(`${e} is NaN - the duration expression might be incorrect.`))}const Rf={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function _i(t,e,n,i){let r;try{r=i?t(...i):t()}catch(o){sa(o,e,n)}return r}function _n(t,e,n,i){if(wt(t)){const o=_i(t,e,n,i);return o&&kf(o)&&o.catch(s=>{sa(s,e,n)}),o}const r=[];for(let o=0;o<t.length;o++)r.push(_n(t[o],e,n,i));return r}function sa(t,e,n,i=!0){const r=e?e.vnode:null;if(e){let o=e.parent;const s=e.proxy,a=Rf[n];for(;o;){const c=o.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](t,s,a)===!1)return}o=o.parent}const l=e.appContext.config.errorHandler;if(l){_i(l,null,10,[t,s,a]);return}}jC(t,n,r,i)}function jC(t,e,n,i=!0){{const r=Rf[e];if(n&&Ja(n),G(`Unhandled error${r?` during execution of ${r}`:""}`),n&&Qa(),i)throw t;console.error(t)}}let Os=!1,oh=!1;const Oe=[];let Vn=0;const bo=[];let mi=null,Ni=0;const fy=Promise.resolve();let Nf=null;const HC=100;function ke(t){const e=Nf||fy;return t?e.then(this?t.bind(this):t):e}function qC(t){let e=Vn+1,n=Oe.length;for(;e<n;){const i=e+n>>>1,r=Oe[i],o=Ms(r);o<t||o===t&&r.pre?e=i+1:n=i}return e}function xc(t){(!Oe.length||!Oe.includes(t,Os&&t.allowRecurse?Vn+1:Vn))&&(t.id==null?Oe.push(t):Oe.splice(qC(t.id),0,t),dy())}function dy(){!Os&&!oh&&(oh=!0,Nf=fy.then(gy))}function zC(t){const e=Oe.indexOf(t);e>Vn&&Oe.splice(e,1)}function py(t){gt(t)?bo.push(...t):(!mi||!mi.includes(t,t.allowRecurse?Ni+1:Ni))&&bo.push(t),dy()}function Tp(t,e,n=Os?Vn+1:0){for(e=e||new Map;n<Oe.length;n++){const i=Oe[n];if(i&&i.pre){if(t&&i.id!==t.uid||Df(e,i))continue;Oe.splice(n,1),n--,i()}}}function my(t){if(bo.length){const e=[...new Set(bo)].sort((n,i)=>Ms(n)-Ms(i));if(bo.length=0,mi){mi.push(...e);return}for(mi=e,t=t||new Map,Ni=0;Ni<mi.length;Ni++)Df(t,mi[Ni])||mi[Ni]();mi=null,Ni=0}}const Ms=t=>t.id==null?1/0:t.id,VC=(t,e)=>{const n=Ms(t)-Ms(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function gy(t){oh=!1,Os=!0,t=t||new Map,Oe.sort(VC);const e=n=>Df(t,n);try{for(Vn=0;Vn<Oe.length;Vn++){const n=Oe[Vn];if(n&&n.active!==!1){if(e(n))continue;_i(n,null,14)}}}finally{Vn=0,Oe.length=0,my(t),Os=!1,Nf=null,(Oe.length||bo.length)&&gy(t)}}function Df(t,e){if(!t.has(e))t.set(e,1);else{const n=t.get(e);if(n>HC){const i=e.ownerInstance,r=i&&Is(i.type);return sa(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else t.set(e,n+1)}}let Ki=!1;const fo=new Set;$f().__VUE_HMR_RUNTIME__={createRecord:lu(yy),rerender:lu(YC),reload:lu(GC)};const Wr=new Map;function WC(t){const e=t.type.__hmrId;let n=Wr.get(e);n||(yy(e,t.type),n=Wr.get(e)),n.instances.add(t)}function UC(t){Wr.get(t.type.__hmrId).instances.delete(t)}function yy(t,e){return Wr.has(t)?!1:(Wr.set(t,{initialDef:gs(e),instances:new Set}),!0)}function gs(t){return t_(t)?t.__vccOpts:t}function YC(t,e){const n=Wr.get(t);n&&(n.initialDef.render=e,[...n.instances].forEach(i=>{e&&(i.render=e,gs(i.type).render=e),i.renderCache=[],Ki=!0,i.effect.dirty=!0,i.update(),Ki=!1}))}function GC(t,e){const n=Wr.get(t);if(!n)return;e=gs(e),Sp(n.initialDef,e);const i=[...n.instances];for(const r of i){const o=gs(r.type);fo.has(o)||(o!==n.initialDef&&Sp(o,e),fo.add(o)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(fo.add(o),r.ceReload(e.styles),fo.delete(o)):r.parent?(r.parent.effect.dirty=!0,xc(r.parent.update)):r.appContext.reload?r.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}py(()=>{for(const r of i)fo.delete(gs(r.type))})}function Sp(t,e){oe(t,e);for(const n in t)n!=="__file"&&!(n in e)&&delete t[n]}function lu(t){return(e,n)=>{try{return t(e,n)}catch(i){console.error(i),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Wn,as=[],sh=!1;function aa(t,...e){Wn?Wn.emit(t,...e):sh||as.push({event:t,args:e})}function _y(t,e){var n,i;Wn=t,Wn?(Wn.enabled=!0,as.forEach(({event:r,args:o})=>Wn.emit(r,...o)),as=[]):typeof window<"u"&&window.HTMLElement&&!((i=(n=window.navigator)==null?void 0:n.userAgent)!=null&&i.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{_y(o,e)}),setTimeout(()=>{Wn||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,sh=!0,as=[])},3e3)):(sh=!0,as=[])}function KC(t,e){aa("app:init",t,e,{Fragment:It,Text:ua,Comment:Ce,Static:tl})}function XC(t){aa("app:unmount",t)}const ah=jf("component:added"),vy=jf("component:updated"),ZC=jf("component:removed"),JC=t=>{Wn&&typeof Wn.cleanupBuffer=="function"&&!Wn.cleanupBuffer(t)&&ZC(t)};function jf(t){return e=>{aa(t,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}const QC=by("perf:start"),tw=by("perf:end");function by(t){return(e,n,i)=>{aa(t,e.appContext.app,e.uid,e,n,i)}}function ew(t,e,n){aa("component:emit",t.appContext.app,t,e,n)}function nw(t,e,...n){if(t.isUnmounted)return;const i=t.vnode.props||Jt;{const{emitsOptions:u,propsOptions:[h]}=t;if(u)if(!(e in u))(!h||!(xr(e)in h))&&G(`Component emitted event "${e}" but it is neither declared in the emits option nor as an "${xr(e)}" prop.`);else{const f=u[e];wt(f)&&(f(...n)||G(`Invalid event arguments: event validation failed for event "${e}".`))}}let r=n;const o=e.startsWith("update:"),s=o&&e.slice(7);if(s&&s in i){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:h,trim:f}=i[u]||Jt;f&&(r=n.map(d=>te(d)?d.trim():d)),h&&(r=n.map(Ux))}ew(t,e,r);{const u=e.toLowerCase();u!==e&&i[xr(u)]&&G(`Event "${u}" is emitted in component ${$c(t,t.type)} but the handler is registered for "${e}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${xi(e)}" instead of "${e}".`)}let a,l=i[a=xr(e)]||i[a=xr(Qn(e))];!l&&o&&(l=i[a=xr(xi(e))]),l&&_n(l,t,6,r);const c=i[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,_n(c,t,6,r)}}function xy(t,e,n=!1){const i=e.emitsCache,r=i.get(t);if(r!==void 0)return r;const o=t.emits;let s={},a=!1;if(!wt(t)){const l=c=>{const u=xy(c,e,!0);u&&(a=!0,oe(s,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!o&&!a?(Ut(t)&&i.set(t,null),null):(gt(o)?o.forEach(l=>s[l]=null):oe(s,o),Ut(t)&&i.set(t,s),s)}function Cc(t,e){return!t||!ia(e)?!1:(e=e.slice(2).replace(/Once$/,""),Nt(t,e[0].toLowerCase()+e.slice(1))||Nt(t,xi(e))||Nt(t,e))}let fe=null,wc=null;function Al(t){const e=fe;return fe=t,wc=t&&t.type.__scopeId||null,e}function dW(t){wc=t}function pW(){wc=null}function _e(t,e=fe,n){if(!e||t._n)return t;const i=(...r)=>{i._d&&Hp(-1);const o=Al(e);let s;try{s=t(...r)}finally{Al(o),i._d&&Hp(1)}return vy(e),s};return i._n=!0,i._c=!0,i._d=!0,i}let lh=!1;function El(){lh=!0}function cu(t){const{type:e,vnode:n,proxy:i,withProxy:r,props:o,propsOptions:[s],slots:a,attrs:l,emit:c,render:u,renderCache:h,data:f,setupState:d,ctx:p,inheritAttrs:g}=t;let y,b;const v=Al(t);lh=!1;try{if(n.shapeFlag&4){const S=r||i,B=d.__isScriptSetup?new Proxy(S,{get(C,P,E){return G(`Property '${String(P)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(C,P,E)}}):S;y=Bn(u.call(B,S,h,o,d,f,p)),b=l}else{const S=e;l===o&&El(),y=Bn(S.length>1?S(o,{get attrs(){return El(),l},slots:a,emit:c}):S(o,null)),b=e.props?l:iw(l)}}catch(S){ys.length=0,sa(S,t,1),y=at(Ce)}let _=y,w;if(y.patchFlag>0&&y.patchFlag&2048&&([_,w]=Cy(y)),b&&g!==!1){const S=Object.keys(b),{shapeFlag:B}=_;if(S.length){if(B&7)s&&S.some(xl)&&(b=rw(b,s)),_=Nn(_,b);else if(!lh&&_.type!==Ce){const C=Object.keys(l),P=[],E=[];for(let F=0,ot=C.length;F<ot;F++){const V=C[F];ia(V)?xl(V)||P.push(V[2].toLowerCase()+V.slice(3)):E.push(V)}E.length&&G(`Extraneous non-props attributes (${E.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),P.length&&G(`Extraneous non-emits event listeners (${P.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&(kp(_)||G("Runtime directive used on component with non-element root node. The directives will not function as intended."),_=Nn(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(kp(_)||G("Component inside <Transition> renders non-element root node that cannot be animated."),_.transition=n.transition),w?w(_):y=_,Al(v),y}const Cy=t=>{const e=t.children,n=t.dynamicChildren,i=Hf(e,!1);if(i){if(i.patchFlag>0&&i.patchFlag&2048)return Cy(i)}else return[t,void 0];const r=e.indexOf(i),o=n?n.indexOf(i):-1,s=a=>{e[r]=a,n&&(o>-1?n[o]=a:a.patchFlag>0&&(t.dynamicChildren=[...n,a]))};return[Bn(i),s]};function Hf(t,e=!0){let n;for(let i=0;i<t.length;i++){const r=t[i];if(or(r)){if(r.type!==Ce||r.children==="v-if"){if(n)return;if(n=r,e&&n.patchFlag>0&&n.patchFlag&2048)return Hf(n.children)}}else return}return n}const iw=t=>{let e;for(const n in t)(n==="class"||n==="style"||ia(n))&&((e||(e={}))[n]=t[n]);return e},rw=(t,e)=>{const n={};for(const i in t)(!xl(i)||!(i.slice(9)in e))&&(n[i]=t[i]);return n},kp=t=>t.shapeFlag&7||t.type===Ce;function ow(t,e,n){const{props:i,children:r,component:o}=t,{props:s,children:a,patchFlag:l}=e,c=o.emitsOptions;if((r||a)&&Ki||e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?Ap(i,s,c):!!s;if(l&8){const u=e.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(s[f]!==i[f]&&!Cc(c,f))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:i===s?!1:i?s?Ap(i,s,c):!0:!!s;return!1}function Ap(t,e,n){const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!0;for(let r=0;r<i.length;r++){const o=i[r];if(e[o]!==t[o]&&!Cc(n,o))return!0}return!1}function sw({vnode:t,parent:e},n){for(;e;){const i=e.subTree;if(i.suspense&&i.suspense.activeBranch===t&&(i.el=t.el),i===t)(t=e.vnode).el=n,e=e.parent;else break}}const $l="components";function Ll(t,e){return Ty($l,t,!0,e)||t}const wy=Symbol.for("v-ndc");function aw(t){return te(t)?Ty($l,t,!1)||t:t||wy}function Ty(t,e,n=!0,i=!1){const r=fe||ye;if(r){const o=r.type;if(t===$l){const a=Is(o,!1);if(a&&(a===e||a===Qn(e)||a===Vr(Qn(e))))return o}const s=Ep(r[t]||o[t],e)||Ep(r.appContext[t],e);if(!s&&i)return o;if(n&&!s){const a=t===$l?`
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";G(`Failed to resolve ${t.slice(0,-1)}: ${e}${a}`)}return s}else G(`resolve${Vr(t.slice(0,-1))} can only be used in render() or setup().`)}function Ep(t,e){return t&&(t[e]||t[Qn(e)]||t[Vr(Qn(e))])}const Sy=t=>t.__isSuspense;function lw(t,e){e&&e.pendingBranch?gt(t)?e.effects.push(...t):e.effects.push(t):py(t)}const cw=Symbol.for("v-scx"),uw=()=>{{const t=kt(cw);return t||G("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),t}};function Xn(t,e){return qf(t,null,e)}const $a={};function $t(t,e,n){return wt(e)||G("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),qf(t,e,n)}function qf(t,e,{immediate:n,deep:i,flush:r,once:o,onTrack:s,onTrigger:a}=Jt){if(e&&o){const C=e;e=(...P)=>{C(...P),B()}}i!==void 0&&typeof i=="number"&&G('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),e||(n!==void 0&&G('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&G('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&G('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=C=>{G("Invalid watch source: ",C,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=ye,u=C=>i===!0?C:Er(C,i===!1?1:void 0);let h,f=!1,d=!1;if(Yt(t)?(h=()=>t.value,f=Sl(t)):Pr(t)?(h=()=>u(t),f=!0):gt(t)?(d=!0,f=t.some(C=>Pr(C)||Sl(C)),h=()=>t.map(C=>{if(Yt(C))return C.value;if(Pr(C))return u(C);if(wt(C))return _i(C,c,2);l(C)})):wt(t)?e?h=()=>_i(t,c,2):h=()=>(p&&p(),_n(t,c,3,[g])):(h=Be,l(t)),e&&i){const C=h;h=()=>Er(C())}let p,g=C=>{p=w.onStop=()=>{_i(C,c,4),p=w.onStop=void 0}},y;if(Ac)if(g=Be,e?n&&_n(e,c,3,[h(),d?[]:void 0,g]):h(),r==="sync"){const C=uw();y=C.__watcherHandles||(C.__watcherHandles=[])}else return Be;let b=d?new Array(t.length).fill($a):$a;const v=()=>{if(!(!w.active||!w.dirty))if(e){const C=w.run();(i||f||(d?C.some((P,E)=>ir(P,b[E])):ir(C,b)))&&(p&&p(),_n(e,c,3,[C,b===$a?void 0:d&&b[0]===$a?[]:b,g]),b=C)}else w.run()};v.allowRecurse=!!e;let _;r==="sync"?_=v:r==="post"?_=()=>Se(v,c&&c.suspense):(v.pre=!0,c&&(v.id=c.uid),_=()=>xc(v));const w=new Lf(h,Be,_),S=V0(),B=()=>{w.stop(),S&&Sf(S.effects,w)};return w.onTrack=s,w.onTrigger=a,e?n?v():b=w.run():r==="post"?Se(w.run.bind(w),c&&c.suspense):w.run(),y&&y.push(B),B}function hw(t,e,n){const i=this.proxy,r=te(t)?t.includes(".")?ky(i,t):()=>i[t]:t.bind(i,i);let o;wt(e)?o=e:(o=e.handler,n=e);const s=ha(this),a=qf(r,o.bind(i),n);return s(),a}function ky(t,e){const n=e.split(".");return()=>{let i=t;for(let r=0;r<n.length&&i;r++)i=i[n[r]];return i}}function Er(t,e,n=0,i){if(!Ut(t)||t.__v_skip)return t;if(e&&e>0){if(n>=e)return t;n++}if(i=i||new Set,i.has(t))return t;if(i.add(t),Yt(t))Er(t.value,e,n,i);else if(gt(t))for(let r=0;r<t.length;r++)Er(t[r],e,n,i);else if(R0(t)||Fr(t))t.forEach(r=>{Er(r,e,n,i)});else if(D0(t))for(const r in t)Er(t[r],e,n,i);return t}function Ay(t){zx(t)&&G("Do not use built-in directive ids as custom directive id: "+t)}function Ey(t,e){if(fe===null)return G("withDirectives can only be used inside render functions."),t;const n=Ec(fe)||fe.proxy,i=t.dirs||(t.dirs=[]);for(let r=0;r<e.length;r++){let[o,s,a,l=Jt]=e[r];o&&(wt(o)&&(o={mounted:o,updated:o}),o.deep&&Er(s),i.push({dir:o,instance:n,value:s,oldValue:void 0,arg:a,modifiers:l}))}return t}function gr(t,e,n,i){const r=t.dirs,o=e&&e.dirs;for(let s=0;s<r.length;s++){const a=r[s];o&&(a.oldValue=o[s].value);let l=a.dir[i];l&&(cr(),_n(l,n,8,[t.el,a,t,e]),ur())}}const Di=Symbol("_leaveCb"),La=Symbol("_enterCb");function $y(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Zr(()=>{t.isMounted=!0}),ca(()=>{t.isUnmounting=!0}),t}const hn=[Function,Array],Ly={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:hn,onEnter:hn,onAfterEnter:hn,onEnterCancelled:hn,onBeforeLeave:hn,onLeave:hn,onAfterLeave:hn,onLeaveCancelled:hn,onBeforeAppear:hn,onAppear:hn,onAfterAppear:hn,onAppearCancelled:hn},fw={name:"BaseTransition",props:Ly,setup(t,{slots:e}){const n=Tn(),i=$y();let r;return()=>{const o=e.default&&zf(e.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){let g=!1;for(const y of o)if(y.type!==Ce){if(g){G("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}s=y,g=!0}}const a=At(t),{mode:l}=a;if(l&&l!=="in-out"&&l!=="out-in"&&l!=="default"&&G(`invalid <transition> mode: ${l}`),i.isLeaving)return uu(s);const c=$p(s);if(!c)return uu(s);const u=Fs(c,a,i,n);ko(c,u);const h=n.subTree,f=h&&$p(h);let d=!1;const{getTransitionKey:p}=c.type;if(p){const g=p();r===void 0?r=g:g!==r&&(r=g,d=!0)}if(f&&f.type!==Ce&&(!Ui(c,f)||d)){const g=Fs(f,a,i,n);if(ko(f,g),l==="out-in")return i.isLeaving=!0,g.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},uu(s);l==="in-out"&&c.type!==Ce&&(g.delayLeave=(y,b,v)=>{const _=Oy(i,f);_[String(f.key)]=f,y[Di]=()=>{b(),y[Di]=void 0,delete u.delayedLeave},u.delayedLeave=v})}return s}}},dw=fw;function Oy(t,e){const{leavingVNodes:n}=t;let i=n.get(e.type);return i||(i=Object.create(null),n.set(e.type,i)),i}function Fs(t,e,n,i){const{appear:r,mode:o,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:h,onLeave:f,onAfterLeave:d,onLeaveCancelled:p,onBeforeAppear:g,onAppear:y,onAfterAppear:b,onAppearCancelled:v}=e,_=String(t.key),w=Oy(n,t),S=(P,E)=>{P&&_n(P,i,9,E)},B=(P,E)=>{const F=E[1];S(P,E),gt(P)?P.every(ot=>ot.length<=1)&&F():P.length<=1&&F()},C={mode:o,persisted:s,beforeEnter(P){let E=a;if(!n.isMounted)if(r)E=g||a;else return;P[Di]&&P[Di](!0);const F=w[_];F&&Ui(t,F)&&F.el[Di]&&F.el[Di](),S(E,[P])},enter(P){let E=l,F=c,ot=u;if(!n.isMounted)if(r)E=y||l,F=b||c,ot=v||u;else return;let V=!1;const W=P[La]=N=>{V||(V=!0,N?S(ot,[P]):S(F,[P]),C.delayedLeave&&C.delayedLeave(),P[La]=void 0)};E?B(E,[P,W]):W()},leave(P,E){const F=String(t.key);if(P[La]&&P[La](!0),n.isUnmounting)return E();S(h,[P]);let ot=!1;const V=P[Di]=W=>{ot||(ot=!0,E(),W?S(p,[P]):S(d,[P]),P[Di]=void 0,w[F]===t&&delete w[F])};w[F]=t,f?B(f,[P,V]):V()},clone(P){return Fs(P,e,n,i)}};return C}function uu(t){if(la(t))return t=Nn(t),t.children=null,t}function $p(t){return la(t)?t.component?t.component.subTree:t.children?t.children[0]:void 0:t}function ko(t,e){t.shapeFlag&6&&t.component?ko(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function zf(t,e=!1,n){let i=[],r=0;for(let o=0;o<t.length;o++){let s=t[o];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:o);s.type===It?(s.patchFlag&128&&r++,i=i.concat(zf(s.children,e,a))):(e||s.type!==Ce)&&i.push(a!=null?Nn(s,{key:a}):s)}if(r>1)for(let o=0;o<i.length;o++)i[o].patchFlag=-2;return i}/*! #__NO_SIDE_EFFECTS__ */function jt(t,e){return wt(t)?oe({name:t.name},e,{setup:t}):t}const xo=t=>!!t.type.__asyncLoader,la=t=>t.type.__isKeepAlive,pw={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=Tn(),i=n.ctx;if(!i.renderer)return()=>{const v=e.default&&e.default();return v&&v.length===1?v[0]:v};const r=new Map,o=new Set;let s=null;n.__v_cache=r;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:h}}}=i,f=h("div");i.activate=(v,_,w,S,B)=>{const C=v.component;c(v,_,w,0,a),l(C.vnode,v,_,w,C,a,S,v.slotScopeIds,B),Se(()=>{C.isDeactivated=!1,C.a&&Tr(C.a);const P=v.props&&v.props.onVnodeMounted;P&&dn(P,C.parent,v)},a),ah(C)},i.deactivate=v=>{const _=v.component;c(v,f,null,1,a),Se(()=>{_.da&&Tr(_.da);const w=v.props&&v.props.onVnodeUnmounted;w&&dn(w,_.parent,v),_.isDeactivated=!0},a),ah(_)};function d(v){hu(v),u(v,n,a,!0)}function p(v){r.forEach((_,w)=>{const S=Is(_.type);S&&(!v||!v(S))&&g(w)})}function g(v){const _=r.get(v);!s||!Ui(_,s)?d(_):s&&hu(s),r.delete(v),o.delete(v)}$t(()=>[t.include,t.exclude],([v,_])=>{v&&p(w=>ls(v,w)),_&&p(w=>!ls(_,w))},{flush:"post",deep:!0});let y=null;const b=()=>{y!=null&&r.set(y,fu(n.subTree))};return Zr(b),Sc(b),ca(()=>{r.forEach(v=>{const{subTree:_,suspense:w}=n,S=fu(_);if(v.type===S.type&&v.key===S.key){hu(S);const B=S.component.da;B&&Se(B,w);return}d(v)})}),()=>{if(y=null,!e.default)return null;const v=e.default(),_=v[0];if(v.length>1)return G("KeepAlive should contain exactly one component child."),s=null,v;if(!or(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return s=null,_;let w=fu(_);const S=w.type,B=Is(xo(w)?w.type.__asyncResolved||{}:S),{include:C,exclude:P,max:E}=t;if(C&&(!B||!ls(C,B))||P&&B&&ls(P,B))return s=w,_;const F=w.key==null?S:w.key,ot=r.get(F);return w.el&&(w=Nn(w),_.shapeFlag&128&&(_.ssContent=w)),y=F,ot?(w.el=ot.el,w.component=ot.component,w.transition&&ko(w,w.transition),w.shapeFlag|=512,o.delete(F),o.add(F)):(o.add(F),E&&o.size>parseInt(E,10)&&g(o.values().next().value)),w.shapeFlag|=256,s=w,Sy(_.type)?_:w}}},My=pw;function ls(t,e){return gt(t)?t.some(n=>ls(n,e)):te(t)?t.split(",").includes(e):qx(t)?t.test(e):!1}function Fy(t,e){Iy(t,"a",e)}function By(t,e){Iy(t,"da",e)}function Iy(t,e,n=ye){const i=t.__wdc||(t.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return t()});if(Tc(e,i,n),n){let r=n.parent;for(;r&&r.parent;)la(r.parent.vnode)&&mw(i,e,n,r),r=r.parent}}function mw(t,e,n,i){const r=Tc(e,t,i,!0);Vf(()=>{Sf(i[e],r)},n)}function hu(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function fu(t){return t.shapeFlag&128?t.ssContent:t}function Tc(t,e,n=ye,i=!1){if(n){const r=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...s)=>{if(n.isUnmounted)return;cr();const a=ha(n),l=_n(e,n,t,s);return a(),ur(),l});return i?r.unshift(o):r.push(o),o}else{const r=xr(Rf[t].replace(/ hook$/,""));G(`${r} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Ei=t=>(e,n=ye)=>(!Ac||t==="sp")&&Tc(t,(...i)=>e(...i),n),gw=Ei("bm"),Zr=Ei("m"),yw=Ei("bu"),Sc=Ei("u"),ca=Ei("bum"),Vf=Ei("um"),_w=Ei("sp"),vw=Ei("rtg"),bw=Ei("rtc");function xw(t,e=ye){Tc("ec",t,e)}function No(t,e,n,i){let r;const o=n&&n[i];if(gt(t)||te(t)){r=new Array(t.length);for(let s=0,a=t.length;s<a;s++)r[s]=e(t[s],s,void 0,o&&o[s])}else if(typeof t=="number"){Number.isInteger(t)||G(`The v-for range expect an integer value but got ${t}.`),r=new Array(t);for(let s=0;s<t;s++)r[s]=e(s+1,s,void 0,o&&o[s])}else if(Ut(t))if(t[Symbol.iterator])r=Array.from(t,(s,a)=>e(s,a,void 0,o&&o[a]));else{const s=Object.keys(t);r=new Array(s.length);for(let a=0,l=s.length;a<l;a++){const c=s[a];r[a]=e(t[c],c,a,o&&o[a])}}else r=[];return n&&(n[i]=r),r}function He(t,e,n={},i,r){if(fe.isCE||fe.parent&&xo(fe.parent)&&fe.parent.isCE)return e!=="default"&&(n.name=e),at("slot",n,i&&i());let o=t[e];o&&o.length>1&&(G("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),o=()=>[]),o&&o._c&&(o._d=!1),R();const s=o&&Py(o(n)),a=Vt(It,{key:n.key||s&&s.key||`_${e}`},s||(i?i():[]),s&&t._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function Py(t){return t.some(e=>or(e)?!(e.type===Ce||e.type===It&&!Py(e.children)):!0)?t:null}const ch=t=>t?Zy(t)?Ec(t)||t.proxy:ch(t.parent):null,Nr=oe(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>mo(t.props),$attrs:t=>mo(t.attrs),$slots:t=>mo(t.slots),$refs:t=>mo(t.refs),$parent:t=>ch(t.parent),$root:t=>ch(t.root),$emit:t=>t.emit,$options:t=>Uf(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,xc(t.update)}),$nextTick:t=>t.n||(t.n=ke.bind(t.proxy)),$watch:t=>hw.bind(t)}),Wf=t=>t==="_"||t==="$",du=(t,e)=>t!==Jt&&!t.__isScriptSetup&&Nt(t,e),Ry={get({_:t},e){const{ctx:n,setupState:i,data:r,props:o,accessCache:s,type:a,appContext:l}=t;if(e==="__isVue")return!0;let c;if(e[0]!=="$"){const d=s[e];if(d!==void 0)switch(d){case 1:return i[e];case 2:return r[e];case 4:return n[e];case 3:return o[e]}else{if(du(i,e))return s[e]=1,i[e];if(r!==Jt&&Nt(r,e))return s[e]=2,r[e];if((c=t.propsOptions[0])&&Nt(c,e))return s[e]=3,o[e];if(n!==Jt&&Nt(n,e))return s[e]=4,n[e];uh&&(s[e]=0)}}const u=Nr[e];let h,f;if(u)return e==="$attrs"?(Re(t,"get",e),El()):e==="$slots"&&Re(t,"get",e),u(t);if((h=a.__cssModules)&&(h=h[e]))return h;if(n!==Jt&&Nt(n,e))return s[e]=4,n[e];if(f=l.config.globalProperties,Nt(f,e))return f[e];fe&&(!te(e)||e.indexOf("__v")!==0)&&(r!==Jt&&Wf(e[0])&&Nt(r,e)?G(`Property ${JSON.stringify(e)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):t===fe&&G(`Property ${JSON.stringify(e)} was accessed during render but is not defined on instance.`))},set({_:t},e,n){const{data:i,setupState:r,ctx:o}=t;return du(r,e)?(r[e]=n,!0):r.__isScriptSetup&&Nt(r,e)?(G(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):i!==Jt&&Nt(i,e)?(i[e]=n,!0):Nt(t.props,e)?(G(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in t?(G(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):(e in t.appContext.config.globalProperties?Object.defineProperty(o,e,{enumerable:!0,configurable:!0,value:n}):o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:i,appContext:r,propsOptions:o}},s){let a;return!!n[s]||t!==Jt&&Nt(t,s)||du(e,s)||(a=o[0])&&Nt(a,s)||Nt(i,s)||Nt(Nr,s)||Nt(r.config.globalProperties,s)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Nt(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};Ry.ownKeys=t=>(G("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(t));function Cw(t){const e={};return Object.defineProperty(e,"_",{configurable:!0,enumerable:!1,get:()=>t}),Object.keys(Nr).forEach(n=>{Object.defineProperty(e,n,{configurable:!0,enumerable:!1,get:()=>Nr[n](t),set:Be})}),e}function ww(t){const{ctx:e,propsOptions:[n]}=t;n&&Object.keys(n).forEach(i=>{Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>t.props[i],set:Be})})}function Tw(t){const{ctx:e,setupState:n}=t;Object.keys(At(n)).forEach(i=>{if(!n.__isScriptSetup){if(Wf(i[0])){G(`setup() return property ${JSON.stringify(i)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>n[i],set:Be})}})}function Sw(){return kw().slots}function kw(){const t=Tn();return t||G("useContext() called without active instance."),t.setupContext||(t.setupContext=Qy(t))}function Lp(t){return gt(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function Aw(){const t=Object.create(null);return(e,n)=>{t[n]?G(`${e} property "${n}" is already defined in ${t[n]}.`):t[n]=e}}let uh=!0;function Ew(t){const e=Uf(t),n=t.proxy,i=t.ctx;uh=!1,e.beforeCreate&&Op(e.beforeCreate,t,"bc");const{data:r,computed:o,methods:s,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:d,updated:p,activated:g,deactivated:y,beforeDestroy:b,beforeUnmount:v,destroyed:_,unmounted:w,render:S,renderTracked:B,renderTriggered:C,errorCaptured:P,serverPrefetch:E,expose:F,inheritAttrs:ot,components:V,directives:W,filters:N}=e,j=Aw();{const[$]=t.propsOptions;if($)for(const z in $)j("Props",z)}if(c&&$w(c,i,j),s)for(const $ in s){const z=s[$];wt(z)?(Object.defineProperty(i,$,{value:z.bind(n),configurable:!0,enumerable:!0,writable:!0}),j("Methods",$)):G(`Method "${$}" has type "${typeof z}" in the component definition. Did you reference the function correctly?`)}if(r){wt(r)||G("The data option must be a function. Plain object usage is no longer supported.");const $=r.call(n,n);if(kf($)&&G("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Ut($))G("data() should return an object.");else{t.data=zt($);for(const z in $)j("Data",z),Wf(z[0])||Object.defineProperty(i,z,{configurable:!0,enumerable:!0,get:()=>$[z],set:Be})}}if(uh=!0,o)for(const $ in o){const z=o[$],D=wt(z)?z.bind(n,n):wt(z.get)?z.get.bind(n,n):Be;D===Be&&G(`Computed property "${$}" has no getter.`);const ut=!wt(z)&&wt(z.set)?z.set.bind(n):()=>{G(`Write operation failed: computed property "${$}" is readonly.`)},bt=A({get:D,set:ut});Object.defineProperty(i,$,{enumerable:!0,configurable:!0,get:()=>bt.value,set:Lt=>bt.value=Lt}),j("Computed",$)}if(a)for(const $ in a)Ny(a[$],i,n,$);if(l){const $=wt(l)?l.call(n):l;Reflect.ownKeys($).forEach(z=>{de(z,$[z])})}u&&Op(u,t,"c");function Y($,z){gt(z)?z.forEach(D=>$(D.bind(n))):z&&$(z.bind(n))}if(Y(gw,h),Y(Zr,f),Y(yw,d),Y(Sc,p),Y(Fy,g),Y(By,y),Y(xw,P),Y(bw,B),Y(vw,C),Y(ca,v),Y(Vf,w),Y(_w,E),gt(F))if(F.length){const $=t.exposed||(t.exposed={});F.forEach(z=>{Object.defineProperty($,z,{get:()=>n[z],set:D=>n[z]=D})})}else t.exposed||(t.exposed={});S&&t.render===Be&&(t.render=S),ot!=null&&(t.inheritAttrs=ot),V&&(t.components=V),W&&(t.directives=W)}function $w(t,e,n=Be){gt(t)&&(t=hh(t));for(const i in t){const r=t[i];let o;Ut(r)?"default"in r?o=kt(r.from||i,r.default,!0):o=kt(r.from||i):o=kt(r),Yt(o)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):e[i]=o,n("Inject",i)}}function Op(t,e,n){_n(gt(t)?t.map(i=>i.bind(e.proxy)):t.bind(e.proxy),e,n)}function Ny(t,e,n,i){const r=i.includes(".")?ky(n,i):()=>n[i];if(te(t)){const o=e[t];wt(o)?$t(r,o):G(`Invalid watch handler specified by key "${t}"`,o)}else if(wt(t))$t(r,t.bind(n));else if(Ut(t))if(gt(t))t.forEach(o=>Ny(o,e,n,i));else{const o=wt(t.handler)?t.handler.bind(n):e[t.handler];wt(o)?$t(r,o,t):G(`Invalid watch handler specified by key "${t.handler}"`,o)}else G(`Invalid watch option: "${i}"`,t)}function Uf(t){const e=t.type,{mixins:n,extends:i}=e,{mixins:r,optionsCache:o,config:{optionMergeStrategies:s}}=t.appContext,a=o.get(e);let l;return a?l=a:!r.length&&!n&&!i?l=e:(l={},r.length&&r.forEach(c=>Ol(l,c,s,!0)),Ol(l,e,s)),Ut(e)&&o.set(e,l),l}function Ol(t,e,n,i=!1){const{mixins:r,extends:o}=e;o&&Ol(t,o,n,!0),r&&r.forEach(s=>Ol(t,s,n,!0));for(const s in e)if(i&&s==="expose")G('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=Lw[s]||n&&n[s];t[s]=a?a(t[s],e[s]):e[s]}return t}const Lw={data:Mp,props:Fp,emits:Fp,methods:cs,computed:cs,beforeCreate:Ne,created:Ne,beforeMount:Ne,mounted:Ne,beforeUpdate:Ne,updated:Ne,beforeDestroy:Ne,beforeUnmount:Ne,destroyed:Ne,unmounted:Ne,activated:Ne,deactivated:Ne,errorCaptured:Ne,serverPrefetch:Ne,components:cs,directives:cs,watch:Mw,provide:Mp,inject:Ow};function Mp(t,e){return e?t?function(){return oe(wt(t)?t.call(this,this):t,wt(e)?e.call(this,this):e)}:e:t}function Ow(t,e){return cs(hh(t),hh(e))}function hh(t){if(gt(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Ne(t,e){return t?[...new Set([].concat(t,e))]:e}function cs(t,e){return t?oe(Object.create(null),t,e):e}function Fp(t,e){return t?gt(t)&>(e)?[...new Set([...t,...e])]:oe(Object.create(null),Lp(t),Lp(e??{})):e}function Mw(t,e){if(!t)return e;if(!e)return t;const n=oe(Object.create(null),t);for(const i in e)n[i]=Ne(t[i],e[i]);return n}function Dy(){return{app:null,config:{isNativeTag:P0,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Fw=0;function Bw(t,e){return function(i,r=null){wt(i)||(i=oe({},i)),r!=null&&!Ut(r)&&(G("root props passed to app.mount() must be an object."),r=null);const o=Dy(),s=new WeakSet;let a=!1;const l=o.app={_uid:Fw++,_component:i,_props:r,_container:null,_context:o,_instance:null,version:vh,get config(){return o.config},set config(c){G("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return s.has(c)?G("Plugin has already been applied to target app."):c&&wt(c.install)?(s.add(c),c.install(l,...u)):wt(c)?(s.add(c),c(l,...u)):G('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return o.mixins.includes(c)?G("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):o.mixins.push(c),l},component(c,u){return yh(c,o.config),u?(o.components[c]&&G(`Component "${c}" has already been registered in target app.`),o.components[c]=u,l):o.components[c]},directive(c,u){return Ay(c),u?(o.directives[c]&&G(`Directive "${c}" has already been registered in target app.`),o.directives[c]=u,l):o.directives[c]},mount(c,u,h){if(a)G("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{c.__vue_app__&&G("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const f=at(i,r);return f.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),o.reload=()=>{t(Nn(f),c,h)},u&&e?e(f,c):t(f,c,h),a=!0,l._container=c,c.__vue_app__=l,l._instance=f.component,KC(l,vh),Ec(f.component)||f.component.proxy}},unmount(){a?(t(null,l._container),l._instance=null,XC(l),delete l._container.__vue_app__):G("Cannot unmount an app that is not mounted.")},provide(c,u){return c in o.provides&&G(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),o.provides[c]=u,l},runWithContext(c){Ml=l;try{return c()}finally{Ml=null}}};return l}}let Ml=null;function de(t,e){if(!ye)G("provide() can only be used inside setup().");else{let n=ye.provides;const i=ye.parent&&ye.parent.provides;i===n&&(n=ye.provides=Object.create(i)),n[t]=e}}function kt(t,e,n=!1){const i=ye||fe;if(i||Ml){const r=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:Ml._context.provides;if(r&&t in r)return r[t];if(arguments.length>1)return n&&wt(e)?e.call(i&&i.proxy):e;G(`injection "${String(t)}" not found.`)}else G("inject() can only be used inside setup() or functional components.")}function Iw(t,e,n,i=!1){const r={},o={};Cl(o,kc,1),t.propsDefaults=Object.create(null),jy(t,e,r,o);for(const s in t.propsOptions[0])s in r||(r[s]=void 0);qy(e||{},r,t),n?t.props=i?r:sy(r):t.type.props?t.props=r:t.props=o,t.attrs=o}function Pw(t){for(;t;){if(t.type.__hmrId)return!0;t=t.parent}}function Rw(t,e,n,i){const{props:r,attrs:o,vnode:{patchFlag:s}}=t,a=At(r),[l]=t.propsOptions;let c=!1;if(!Pw(t)&&(i||s>0)&&!(s&16)){if(s&8){const u=t.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(Cc(t.emitsOptions,f))continue;const d=e[f];if(l)if(Nt(o,f))d!==o[f]&&(o[f]=d,c=!0);else{const p=Qn(f);r[p]=fh(l,a,p,d,t,!1)}else d!==o[f]&&(o[f]=d,c=!0)}}}else{jy(t,e,r,o)&&(c=!0);let u;for(const h in a)(!e||!Nt(e,h)&&((u=xi(h))===h||!Nt(e,u)))&&(l?n&&(n[h]!==void 0||n[u]!==void 0)&&(r[h]=fh(l,a,h,void 0,t,!0)):delete r[h]);if(o!==a)for(const h in o)(!e||!Nt(e,h))&&(delete o[h],c=!0)}c&&Kn(t,"set","$attrs"),qy(e||{},r,t)}function jy(t,e,n,i){const[r,o]=t.propsOptions;let s=!1,a;if(e)for(let l in e){if(Za(l))continue;const c=e[l];let u;r&&Nt(r,u=Qn(l))?!o||!o.includes(u)?n[u]=c:(a||(a={}))[u]=c:Cc(t.emitsOptions,l)||(!(l in i)||c!==i[l])&&(i[l]=c,s=!0)}if(o){const l=At(n),c=a||Jt;for(let u=0;u<o.length;u++){const h=o[u];n[h]=fh(r,l,h,c[h],t,!Nt(c,h))}}return s}function fh(t,e,n,i,r,o){const s=t[n];if(s!=null){const a=Nt(s,"default");if(a&&i===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&wt(l)){const{propsDefaults:c}=r;if(n in c)i=c[n];else{const u=ha(r);i=c[n]=l.call(null,e),u()}}else i=l}s[0]&&(o&&!a?i=!1:s[1]&&(i===""||i===xi(n))&&(i=!0))}return i}function Hy(t,e,n=!1){const i=e.propsCache,r=i.get(t);if(r)return r;const o=t.props,s={},a=[];let l=!1;if(!wt(t)){const u=h=>{l=!0;const[f,d]=Hy(h,e,!0);oe(s,f),d&&a.push(...d)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!o&&!l)return Ut(t)&&i.set(t,vo),vo;if(gt(o))for(let u=0;u<o.length;u++){te(o[u])||G("props must be strings when using array syntax.",o[u]);const h=Qn(o[u]);Bp(h)&&(s[h]=Jt)}else if(o){Ut(o)||G("invalid props options",o);for(const u in o){const h=Qn(u);if(Bp(h)){const f=o[u],d=s[h]=gt(f)||wt(f)?{type:f}:oe({},f);if(d){const p=Pp(Boolean,d.type),g=Pp(String,d.type);d[0]=p>-1,d[1]=g<0||p<g,(p>-1||Nt(d,"default"))&&a.push(h)}}}}const c=[s,a];return Ut(t)&&i.set(t,c),c}function Bp(t){return t[0]!=="$"?!0:(G(`Invalid prop name: "${t}" is a reserved property.`),!1)}function dh(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function Ip(t,e){return dh(t)===dh(e)}function Pp(t,e){return gt(e)?e.findIndex(n=>Ip(n,t)):wt(e)&&Ip(e,t)?0:-1}function qy(t,e,n){const i=At(e),r=n.propsOptions[0];for(const o in r){let s=r[o];s!=null&&Nw(o,i[o],s,mo(i),!Nt(t,o)&&!Nt(t,xi(o)))}}function Nw(t,e,n,i,r){const{type:o,required:s,validator:a,skipCheck:l}=n;if(s&&r){G('Missing required prop: "'+t+'"');return}if(!(e==null&&!s)){if(o!=null&&o!==!0&&!l){let c=!1;const u=gt(o)?o:[o],h=[];for(let f=0;f<u.length&&!c;f++){const{valid:d,expectedType:p}=jw(e,u[f]);h.push(p||""),c=d}if(!c){G(Hw(t,e,h));return}}a&&!a(e,i)&&G('Invalid prop: custom validator check failed for prop "'+t+'".')}}const Dw=ki("String,Number,Boolean,Function,Symbol,BigInt");function jw(t,e){let n;const i=dh(e);if(Dw(i)){const r=typeof t;n=r===i.toLowerCase(),!n&&r==="object"&&(n=t instanceof e)}else i==="Object"?n=Ut(t):i==="Array"?n=gt(t):i==="null"?n=t===null:n=t instanceof e;return{valid:n,expectedType:i}}function Hw(t,e,n){if(n.length===0)return`Prop type [] for prop "${t}" won't match anything. Did you mean to use type Array instead?`;let i=`Invalid prop: type check failed for prop "${t}". Expected ${n.map(Vr).join(" | ")}`;const r=n[0],o=Af(e),s=Rp(e,r),a=Rp(e,o);return n.length===1&&Np(r)&&!qw(r,o)&&(i+=` with value ${s}`),i+=`, got ${o} `,Np(o)&&(i+=`with value ${a}.`),i}function Rp(t,e){return e==="String"?`"${t}"`:e==="Number"?`${Number(t)}`:`${t}`}function Np(t){return["string","number","boolean"].some(n=>t.toLowerCase()===n)}function qw(...t){return t.some(e=>e.toLowerCase()==="boolean")}const zy=t=>t[0]==="_"||t==="$stable",Yf=t=>gt(t)?t.map(Bn):[Bn(t)],zw=(t,e,n)=>{if(e._n)return e;const i=_e((...r)=>(ye&&(!n||n.root===ye.root)&&G(`Slot "${t}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Yf(e(...r))),n);return i._c=!1,i},Vy=(t,e,n)=>{const i=t._ctx;for(const r in t){if(zy(r))continue;const o=t[r];if(wt(o))e[r]=zw(r,o,i);else if(o!=null){G(`Non-function value encountered for slot "${r}". Prefer function slots for better performance.`);const s=Yf(o);e[r]=()=>s}}},Wy=(t,e)=>{la(t.vnode)||G("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Yf(e);t.slots.default=()=>n},Vw=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=At(e),Cl(e,"_",n)):Vy(e,t.slots={})}else t.slots={},e&&Wy(t,e);Cl(t.slots,kc,1)},Ww=(t,e,n)=>{const{vnode:i,slots:r}=t;let o=!0,s=Jt;if(i.shapeFlag&32){const a=e._;a?Ki?(oe(r,e),Kn(t,"set","$slots")):n&&a===1?o=!1:(oe(r,e),!n&&a===1&&delete r._):(o=!e.$stable,Vy(e,r)),s=e}else e&&(Wy(t,e),s={default:1});if(o)for(const a in r)!zy(a)&&s[a]==null&&delete r[a]};function ph(t,e,n,i,r=!1){if(gt(t)){t.forEach((f,d)=>ph(f,e&&(gt(e)?e[d]:e),n,i,r));return}if(xo(i)&&!r)return;const o=i.shapeFlag&4?Ec(i.component)||i.component.proxy:i.el,s=r?null:o,{i:a,r:l}=t;if(!a){G("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=e&&e.r,u=a.refs===Jt?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(te(c)?(u[c]=null,Nt(h,c)&&(h[c]=null)):Yt(c)&&(c.value=null)),wt(l))_i(l,a,12,[s,u]);else{const f=te(l),d=Yt(l),p=t.f;if(f||d){const g=()=>{if(p){const y=f?Nt(h,l)?h[l]:u[l]:l.value;r?gt(y)&&Sf(y,o):gt(y)?y.includes(o)||y.push(o):f?(u[l]=[o],Nt(h,l)&&(h[l]=u[l])):(l.value=[o],t.k&&(u[t.k]=l.value))}else f?(u[l]=s,Nt(h,l)&&(h[l]=s)):d?(l.value=s,t.k&&(u[t.k]=s)):G("Invalid template ref type:",l,`(${typeof l})`)};r||p?g():(g.id=-1,Se(g,n))}else G("Invalid template ref type:",l,`(${typeof l})`)}}let Uo,Wi;function ui(t,e){t.appContext.config.performance&&Fl()&&Wi.mark(`vue-${e}-${t.uid}`),QC(t,e,Fl()?Wi.now():Date.now())}function hi(t,e){if(t.appContext.config.performance&&Fl()){const n=`vue-${e}-${t.uid}`,i=n+":end";Wi.mark(i),Wi.measure(`<${$c(t,t.type)}> ${e}`,n,i),Wi.clearMarks(n),Wi.clearMarks(i)}tw(t,e,Fl()?Wi.now():Date.now())}function Fl(){return Uo!==void 0||(typeof window<"u"&&window.performance?(Uo=!0,Wi=window.performance):Uo=!1),Uo}function Uw(){const t=[];if(t.length){const e=t.length>1;console.warn(`Feature flag${e?"s":""} ${t.join(", ")} ${e?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
For more details, see https://link.vuejs.org/feature-flags.`)}}const Se=lw;function Yw(t){return Gw(t)}function Gw(t,e){Uw();const n=$f();n.__VUE__=!0,_y(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:i,remove:r,patchProp:o,createElement:s,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:d=Be,insertStaticContent:p}=t,g=(m,x,M,I=null,H=null,Q=null,rt=void 0,U=null,Z=Ki?!1:!!x.dynamicChildren)=>{if(m===x)return;m&&!Ui(m,x)&&(I=et(m),_t(m,H,Q,!0),m=null),x.patchFlag===-2&&(Z=!1,x.dynamicChildren=null);const{type:q,ref:lt,shapeFlag:ft}=x;switch(q){case ua:y(m,x,M,I);break;case Ce:b(m,x,M,I);break;case tl:m==null?v(x,M,I,rt):_(m,x,M,rt);break;case It:W(m,x,M,I,H,Q,rt,U,Z);break;default:ft&1?B(m,x,M,I,H,Q,rt,U,Z):ft&6?N(m,x,M,I,H,Q,rt,U,Z):ft&64||ft&128?q.process(m,x,M,I,H,Q,rt,U,Z,yt):G("Invalid VNode type:",q,`(${typeof q})`)}lt!=null&&H&&ph(lt,m&&m.ref,Q,x||m,!x)},y=(m,x,M,I)=>{if(m==null)i(x.el=a(x.children),M,I);else{const H=x.el=m.el;x.children!==m.children&&c(H,x.children)}},b=(m,x,M,I)=>{m==null?i(x.el=l(x.children||""),M,I):x.el=m.el},v=(m,x,M,I)=>{[m.el,m.anchor]=p(m.children,x,M,I,m.el,m.anchor)},_=(m,x,M,I)=>{if(x.children!==m.children){const H=f(m.anchor);S(m),[x.el,x.anchor]=p(x.children,M,H,I)}else x.el=m.el,x.anchor=m.anchor},w=({el:m,anchor:x},M,I)=>{let H;for(;m&&m!==x;)H=f(m),i(m,M,I),m=H;i(x,M,I)},S=({el:m,anchor:x})=>{let M;for(;m&&m!==x;)M=f(m),r(m),m=M;r(x)},B=(m,x,M,I,H,Q,rt,U,Z)=>{x.type==="svg"?rt="svg":x.type==="math"&&(rt="mathml"),m==null?C(x,M,I,H,Q,rt,U,Z):F(m,x,H,Q,rt,U,Z)},C=(m,x,M,I,H,Q,rt,U)=>{let Z,q;const{props:lt,shapeFlag:ft,transition:ht,dirs:Ct}=m;if(Z=m.el=s(m.type,Q,lt&<.is,lt),ft&8?u(Z,m.children):ft&16&&E(m.children,Z,null,I,H,pu(m,Q),rt,U),Ct&&gr(m,null,I,"created"),P(Z,m,m.scopeId,rt,I),lt){for(const Ht in lt)Ht!=="value"&&!Za(Ht)&&o(Z,Ht,null,lt[Ht],Q,m.children,I,H,L);"value"in lt&&o(Z,"value",null,lt.value,Q),(q=lt.onVnodeBeforeMount)&&dn(q,I,m)}Object.defineProperty(Z,"__vnode",{value:m,enumerable:!1}),Object.defineProperty(Z,"__vueParentComponent",{value:I,enumerable:!1}),Ct&&gr(m,null,I,"beforeMount");const Bt=Kw(H,ht);Bt&&ht.beforeEnter(Z),i(Z,x,M),((q=lt&<.onVnodeMounted)||Bt||Ct)&&Se(()=>{q&&dn(q,I,m),Bt&&ht.enter(Z),Ct&&gr(m,null,I,"mounted")},H)},P=(m,x,M,I,H)=>{if(M&&d(m,M),I)for(let Q=0;Q<I.length;Q++)d(m,I[Q]);if(H){let Q=H.subTree;if(Q.patchFlag>0&&Q.patchFlag&2048&&(Q=Hf(Q.children)||Q),x===Q){const rt=H.vnode;P(m,rt,rt.scopeId,rt.slotScopeIds,H.parent)}}},E=(m,x,M,I,H,Q,rt,U,Z=0)=>{for(let q=Z;q<m.length;q++){const lt=m[q]=U?ji(m[q]):Bn(m[q]);g(null,lt,x,M,I,H,Q,rt,U)}},F=(m,x,M,I,H,Q,rt)=>{const U=x.el=m.el;let{patchFlag:Z,dynamicChildren:q,dirs:lt}=x;Z|=m.patchFlag&16;const ft=m.props||Jt,ht=x.props||Jt;let Ct;if(M&&yr(M,!1),(Ct=ht.onVnodeBeforeUpdate)&&dn(Ct,M,x,m),lt&&gr(x,m,M,"beforeUpdate"),M&&yr(M,!0),Ki&&(Z=0,rt=!1,q=null),q?(ot(m.dynamicChildren,q,U,M,I,pu(x,H),Q),Bl(m,x)):rt||D(m,x,U,null,M,I,pu(x,H),Q,!1),Z>0){if(Z&16)V(U,x,ft,ht,M,I,H);else if(Z&2&&ft.class!==ht.class&&o(U,"class",null,ht.class,H),Z&4&&o(U,"style",ft.style,ht.style,H),Z&8){const Bt=x.dynamicProps;for(let Ht=0;Ht<Bt.length;Ht++){const Kt=Bt[Ht],Xt=ft[Kt],ve=ht[Kt];(ve!==Xt||Kt==="value")&&o(U,Kt,Xt,ve,H,m.children,M,I,L)}}Z&1&&m.children!==x.children&&u(U,x.children)}else!rt&&q==null&&V(U,x,ft,ht,M,I,H);((Ct=ht.onVnodeUpdated)||lt)&&Se(()=>{Ct&&dn(Ct,M,x,m),lt&&gr(x,m,M,"updated")},I)},ot=(m,x,M,I,H,Q,rt)=>{for(let U=0;U<x.length;U++){const Z=m[U],q=x[U],lt=Z.el&&(Z.type===It||!Ui(Z,q)||Z.shapeFlag&70)?h(Z.el):M;g(Z,q,lt,null,I,H,Q,rt,!0)}},V=(m,x,M,I,H,Q,rt)=>{if(M!==I){if(M!==Jt)for(const U in M)!Za(U)&&!(U in I)&&o(m,U,M[U],null,rt,x.children,H,Q,L);for(const U in I){if(Za(U))continue;const Z=I[U],q=M[U];Z!==q&&U!=="value"&&o(m,U,q,Z,rt,x.children,H,Q,L)}"value"in I&&o(m,"value",M.value,I.value,rt)}},W=(m,x,M,I,H,Q,rt,U,Z)=>{const q=x.el=m?m.el:a(""),lt=x.anchor=m?m.anchor:a("");let{patchFlag:ft,dynamicChildren:ht,slotScopeIds:Ct}=x;(Ki||ft&2048)&&(ft=0,Z=!1,ht=null),Ct&&(U=U?U.concat(Ct):Ct),m==null?(i(q,M,I),i(lt,M,I),E(x.children||[],M,lt,H,Q,rt,U,Z)):ft>0&&ft&64&&ht&&m.dynamicChildren?(ot(m.dynamicChildren,ht,M,H,Q,rt,U),Bl(m,x)):D(m,x,M,lt,H,Q,rt,U,Z)},N=(m,x,M,I,H,Q,rt,U,Z)=>{x.slotScopeIds=U,m==null?x.shapeFlag&512?H.ctx.activate(x,M,I,rt,Z):j(x,M,I,H,Q,rt,Z):Y(m,x,Z)},j=(m,x,M,I,H,Q,rt)=>{const U=m.component=sT(m,I,H);if(U.type.__hmrId&&WC(U),Ja(m),ui(U,"mount"),la(m)&&(U.ctx.renderer=yt),ui(U,"init"),lT(U),hi(U,"init"),U.asyncDep){if(H&&H.registerDep(U,$),!m.el){const Z=U.subTree=at(Ce);b(null,Z,x,M)}}else $(U,m,x,M,H,Q,rt);Qa(),hi(U,"mount")},Y=(m,x,M)=>{const I=x.component=m.component;if(ow(m,x,M))if(I.asyncDep&&!I.asyncResolved){Ja(x),z(I,x,M),Qa();return}else I.next=x,zC(I.update),I.effect.dirty=!0,I.update();else x.el=m.el,I.vnode=x},$=(m,x,M,I,H,Q,rt)=>{const U=()=>{if(m.isMounted){let{next:lt,bu:ft,u:ht,parent:Ct,vnode:Bt}=m;{const Hn=Uy(m);if(Hn){lt&&(lt.el=Bt.el,z(m,lt,rt)),Hn.asyncDep.then(()=>{m.isUnmounted||U()});return}}let Ht=lt,Kt;Ja(lt||m.vnode),yr(m,!1),lt?(lt.el=Bt.el,z(m,lt,rt)):lt=Bt,ft&&Tr(ft),(Kt=lt.props&<.props.onVnodeBeforeUpdate)&&dn(Kt,Ct,lt,Bt),yr(m,!0),ui(m,"render");const Xt=cu(m);hi(m,"render");const ve=m.subTree;m.subTree=Xt,ui(m,"patch"),g(ve,Xt,h(ve.el),et(ve),m,H,Q),hi(m,"patch"),lt.el=Xt.el,Ht===null&&sw(m,Xt.el),ht&&Se(ht,H),(Kt=lt.props&<.props.onVnodeUpdated)&&Se(()=>dn(Kt,Ct,lt,Bt),H),vy(m),Qa()}else{let lt;const{el:ft,props:ht}=x,{bm:Ct,m:Bt,parent:Ht}=m,Kt=xo(x);if(yr(m,!1),Ct&&Tr(Ct),!Kt&&(lt=ht&&ht.onVnodeBeforeMount)&&dn(lt,Ht,x),yr(m,!0),ft&&Et){const Xt=()=>{ui(m,"render"),m.subTree=cu(m),hi(m,"render"),ui(m,"hydrate"),Et(ft,m.subTree,m,H,null),hi(m,"hydrate")};Kt?x.type.__asyncLoader().then(()=>!m.isUnmounted&&Xt()):Xt()}else{ui(m,"render");const Xt=m.subTree=cu(m);hi(m,"render"),ui(m,"patch"),g(null,Xt,M,I,m,H,Q),hi(m,"patch"),x.el=Xt.el}if(Bt&&Se(Bt,H),!Kt&&(lt=ht&&ht.onVnodeMounted)){const Xt=x;Se(()=>dn(lt,Ht,Xt),H)}(x.shapeFlag&256||Ht&&xo(Ht.vnode)&&Ht.vnode.shapeFlag&256)&&m.a&&Se(m.a,H),m.isMounted=!0,ah(m),x=M=I=null}},Z=m.effect=new Lf(U,Be,()=>xc(q),m.scope),q=m.update=()=>{Z.dirty&&Z.run()};q.id=m.uid,yr(m,!0),Z.onTrack=m.rtc?lt=>Tr(m.rtc,lt):void 0,Z.onTrigger=m.rtg?lt=>Tr(m.rtg,lt):void 0,q.ownerInstance=m,q()},z=(m,x,M)=>{x.component=m;const I=m.vnode.props;m.vnode=x,m.next=null,Rw(m,x.props,I,M),Ww(m,x.children,M),cr(),Tp(m),ur()},D=(m,x,M,I,H,Q,rt,U,Z=!1)=>{const q=m&&m.children,lt=m?m.shapeFlag:0,ft=x.children,{patchFlag:ht,shapeFlag:Ct}=x;if(ht>0){if(ht&128){bt(q,ft,M,I,H,Q,rt,U,Z);return}else if(ht&256){ut(q,ft,M,I,H,Q,rt,U,Z);return}}Ct&8?(lt&16&&L(q,H,Q),ft!==q&&u(M,ft)):lt&16?Ct&16?bt(q,ft,M,I,H,Q,rt,U,Z):L(q,H,Q,!0):(lt&8&&u(M,""),Ct&16&&E(ft,M,I,H,Q,rt,U,Z))},ut=(m,x,M,I,H,Q,rt,U,Z)=>{m=m||vo,x=x||vo;const q=m.length,lt=x.length,ft=Math.min(q,lt);let ht;for(ht=0;ht<ft;ht++){const Ct=x[ht]=Z?ji(x[ht]):Bn(x[ht]);g(m[ht],Ct,M,null,H,Q,rt,U,Z)}q>lt?L(m,H,Q,!0,!1,ft):E(x,M,I,H,Q,rt,U,Z,ft)},bt=(m,x,M,I,H,Q,rt,U,Z)=>{let q=0;const lt=x.length;let ft=m.length-1,ht=lt-1;for(;q<=ft&&q<=ht;){const Ct=m[q],Bt=x[q]=Z?ji(x[q]):Bn(x[q]);if(Ui(Ct,Bt))g(Ct,Bt,M,null,H,Q,rt,U,Z);else break;q++}for(;q<=ft&&q<=ht;){const Ct=m[ft],Bt=x[ht]=Z?ji(x[ht]):Bn(x[ht]);if(Ui(Ct,Bt))g(Ct,Bt,M,null,H,Q,rt,U,Z);else break;ft--,ht--}if(q>ft){if(q<=ht){const Ct=ht+1,Bt=Ct<lt?x[Ct].el:I;for(;q<=ht;)g(null,x[q]=Z?ji(x[q]):Bn(x[q]),M,Bt,H,Q,rt,U,Z),q++}}else if(q>ht)for(;q<=ft;)_t(m[q],H,Q,!0),q++;else{const Ct=q,Bt=q,Ht=new Map;for(q=Bt;q<=ht;q++){const Te=x[q]=Z?ji(x[q]):Bn(x[q]);Te.key!=null&&(Ht.has(Te.key)&&G("Duplicate keys found during update:",JSON.stringify(Te.key),"Make sure keys are unique."),Ht.set(Te.key,q))}let Kt,Xt=0;const ve=ht-Bt+1;let Hn=!1,ro=0;const pr=new Array(ve);for(q=0;q<ve;q++)pr[q]=0;for(q=Ct;q<=ft;q++){const Te=m[q];if(Xt>=ve){_t(Te,H,Q,!0);continue}let cn;if(Te.key!=null)cn=Ht.get(Te.key);else for(Kt=Bt;Kt<=ht;Kt++)if(pr[Kt-Bt]===0&&Ui(Te,x[Kt])){cn=Kt;break}cn===void 0?_t(Te,H,Q,!0):(pr[cn-Bt]=q+1,cn>=ro?ro=cn:Hn=!0,g(Te,x[cn],M,null,H,Q,rt,U,Z),Xt++)}const qn=Hn?Xw(pr):vo;for(Kt=qn.length-1,q=ve-1;q>=0;q--){const Te=Bt+q,cn=x[Te],he=Te+1<lt?x[Te+1].el:I;pr[q]===0?g(null,cn,M,he,H,Q,rt,U,Z):Hn&&(Kt<0||q!==qn[Kt]?Lt(cn,M,he,2):Kt--)}}},Lt=(m,x,M,I,H=null)=>{const{el:Q,type:rt,transition:U,children:Z,shapeFlag:q}=m;if(q&6){Lt(m.component.subTree,x,M,I);return}if(q&128){m.suspense.move(x,M,I);return}if(q&64){rt.move(m,x,M,yt);return}if(rt===It){i(Q,x,M);for(let ft=0;ft<Z.length;ft++)Lt(Z[ft],x,M,I);i(m.anchor,x,M);return}if(rt===tl){w(m,x,M);return}if(I!==2&&q&1&&U)if(I===0)U.beforeEnter(Q),i(Q,x,M),Se(()=>U.enter(Q),H);else{const{leave:ft,delayLeave:ht,afterLeave:Ct}=U,Bt=()=>i(Q,x,M),Ht=()=>{ft(Q,()=>{Bt(),Ct&&Ct()})};ht?ht(Q,Bt,Ht):Ht()}else i(Q,x,M)},_t=(m,x,M,I=!1,H=!1)=>{const{type:Q,props:rt,ref:U,children:Z,dynamicChildren:q,shapeFlag:lt,patchFlag:ft,dirs:ht}=m;if(U!=null&&ph(U,null,M,m,!0),lt&256){x.ctx.deactivate(m);return}const Ct=lt&1&&ht,Bt=!xo(m);let Ht;if(Bt&&(Ht=rt&&rt.onVnodeBeforeUnmount)&&dn(Ht,x,m),lt&6)ue(m.component,M,I);else{if(lt&128){m.suspense.unmount(M,I);return}Ct&&gr(m,null,x,"beforeUnmount"),lt&64?m.type.remove(m,x,M,H,yt,I):q&&(Q!==It||ft>0&&ft&64)?L(q,x,M,!1,!0):(Q===It&&ft&384||!H&<&16)&&L(Z,x,M),I&&ne(m)}(Bt&&(Ht=rt&&rt.onVnodeUnmounted)||Ct)&&Se(()=>{Ht&&dn(Ht,x,m),Ct&&gr(m,null,x,"unmounted")},M)},ne=m=>{const{type:x,el:M,anchor:I,transition:H}=m;if(x===It){m.patchFlag>0&&m.patchFlag&2048&&H&&!H.persisted?m.children.forEach(rt=>{rt.type===Ce?r(rt.el):ne(rt)}):ce(M,I);return}if(x===tl){S(m);return}const Q=()=>{r(M),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(m.shapeFlag&1&&H&&!H.persisted){const{leave:rt,delayLeave:U}=H,Z=()=>rt(M,Q);U?U(m.el,Q,Z):Z()}else Q()},ce=(m,x)=>{let M;for(;m!==x;)M=f(m),r(m),m=M;r(x)},ue=(m,x,M)=>{m.type.__hmrId&&UC(m);const{bum:I,scope:H,update:Q,subTree:rt,um:U}=m;I&&Tr(I),H.stop(),Q&&(Q.active=!1,_t(rt,m,x,M)),U&&Se(U,x),Se(()=>{m.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&m.asyncDep&&!m.asyncResolved&&m.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve()),JC(m)},L=(m,x,M,I=!1,H=!1,Q=0)=>{for(let rt=Q;rt<m.length;rt++)_t(m[rt],x,M,I,H)},et=m=>m.shapeFlag&6?et(m.component.subTree):m.shapeFlag&128?m.suspense.next():f(m.anchor||m.el);let K=!1;const it=(m,x,M)=>{m==null?x._vnode&&_t(x._vnode,null,null,!0):g(x._vnode||null,m,x,null,null,null,M),K||(K=!0,Tp(),my(),K=!1),x._vnode=m},yt={p:g,um:_t,m:Lt,r:ne,mt:j,mc:E,pc:D,pbc:ot,n:et,o:t};let Rt,Et;return e&&([Rt,Et]=e(yt)),{render:it,hydrate:Rt,createApp:Bw(it,Rt)}}function pu({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function yr({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Kw(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Bl(t,e,n=!1){const i=t.children,r=e.children;if(gt(i)&>(r))for(let o=0;o<i.length;o++){const s=i[o];let a=r[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[o]=ji(r[o]),a.el=s.el),n||Bl(s,a)),a.type===ua&&(a.el=s.el),a.type===Ce&&!a.el&&(a.el=s.el)}}function Xw(t){const e=t.slice(),n=[0];let i,r,o,s,a;const l=t.length;for(i=0;i<l;i++){const c=t[i];if(c!==0){if(r=n[n.length-1],t[r]<c){e[i]=r,n.push(i);continue}for(o=0,s=n.length-1;o<s;)a=o+s>>1,t[n[a]]<c?o=a+1:s=a;c<t[n[o]]&&(o>0&&(e[i]=n[o-1]),n[o]=i)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=e[s];return n}function Uy(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Uy(e)}const Zw=t=>t.__isTeleport,Co=t=>t&&(t.disabled||t.disabled===""),Dp=t=>typeof SVGElement<"u"&&t instanceof SVGElement,jp=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,mh=(t,e)=>{const n=t&&t.to;if(te(n))if(e){const i=e(n);return i||G(`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),i}else return G("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return!n&&!Co(t)&&G(`Invalid Teleport target: ${n}`),n},Jw={name:"Teleport",__isTeleport:!0,process(t,e,n,i,r,o,s,a,l,c){const{mc:u,pc:h,pbc:f,o:{insert:d,querySelector:p,createText:g,createComment:y}}=c,b=Co(e.props);let{shapeFlag:v,children:_,dynamicChildren:w}=e;if(Ki&&(l=!1,w=null),t==null){const S=e.el=y("teleport start"),B=e.anchor=y("teleport end");d(S,n,i),d(B,n,i);const C=e.target=mh(e.props,p),P=e.targetAnchor=g("");C?(d(P,C),s==="svg"||Dp(C)?s="svg":(s==="mathml"||jp(C))&&(s="mathml")):b||G("Invalid Teleport target on mount:",C,`(${typeof C})`);const E=(F,ot)=>{v&16&&u(_,F,ot,r,o,s,a,l)};b?E(n,B):C&&E(C,P)}else{e.el=t.el;const S=e.anchor=t.anchor,B=e.target=t.target,C=e.targetAnchor=t.targetAnchor,P=Co(t.props),E=P?n:B,F=P?S:C;if(s==="svg"||Dp(B)?s="svg":(s==="mathml"||jp(B))&&(s="mathml"),w?(f(t.dynamicChildren,w,E,r,o,s,a),Bl(t,e,!0)):l||h(t,e,E,F,r,o,s,a,!1),b)P?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Oa(e,n,S,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const ot=e.target=mh(e.props,p);ot?Oa(e,ot,null,c,0):G("Invalid Teleport target on update:",B,`(${typeof B})`)}else P&&Oa(e,B,C,c,1)}Yy(e)},remove(t,e,n,i,{um:r,o:{remove:o}},s){const{shapeFlag:a,children:l,anchor:c,targetAnchor:u,target:h,props:f}=t;if(h&&o(u),s&&o(c),a&16){const d=s||!Co(f);for(let p=0;p<l.length;p++){const g=l[p];r(g,e,n,d,!!g.dynamicChildren)}}},move:Oa,hydrate:Qw};function Oa(t,e,n,{o:{insert:i},m:r},o=2){o===0&&i(t.targetAnchor,e,n);const{el:s,anchor:a,shapeFlag:l,children:c,props:u}=t,h=o===2;if(h&&i(s,e,n),(!h||Co(u))&&l&16)for(let f=0;f<c.length;f++)r(c[f],e,n,2);h&&i(a,e,n)}function Qw(t,e,n,i,r,o,{o:{nextSibling:s,parentNode:a,querySelector:l}},c){const u=e.target=mh(e.props,l);if(u){const h=u._lpa||u.firstChild;if(e.shapeFlag&16)if(Co(e.props))e.anchor=c(s(t),e,a(t),n,i,r,o),e.targetAnchor=h;else{e.anchor=s(t);let f=h;for(;f;)if(f=s(f),f&&f.nodeType===8&&f.data==="teleport anchor"){e.targetAnchor=f,u._lpa=e.targetAnchor&&s(e.targetAnchor);break}c(h,e,u,n,i,r,o)}Yy(e)}return e.anchor&&s(e.anchor)}const tT=Jw;function Yy(t){const e=t.ctx;if(e&&e.ut){let n=t.children[0].el;for(;n&&n!==t.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",e.uid),n=n.nextSibling;e.ut()}}const It=Symbol.for("v-fgt"),ua=Symbol.for("v-txt"),Ce=Symbol.for("v-cmt"),tl=Symbol.for("v-stc"),ys=[];let Pn=null;function R(t=!1){ys.push(Pn=t?null:[])}function eT(){ys.pop(),Pn=ys[ys.length-1]||null}let Bs=1;function Hp(t){Bs+=t}function Gy(t){return t.dynamicChildren=Bs>0?Pn||vo:null,eT(),Bs>0&&Pn&&Pn.push(t),t}function nt(t,e,n,i,r,o){return Gy(X(t,e,n,i,r,o,!0))}function Vt(t,e,n,i,r){return Gy(at(t,e,n,i,r,!0))}function or(t){return t?t.__v_isVNode===!0:!1}function Ui(t,e){return e.shapeFlag&6&&fo.has(e.type)?(t.shapeFlag&=-257,e.shapeFlag&=-513,!1):t.type===e.type&&t.key===e.key}const nT=(...t)=>iT(...t),kc="__vInternal",Ky=({key:t})=>t??null,el=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?te(t)||Yt(t)||wt(t)?{i:fe,r:t,k:e,f:!!n}:t:null);function X(t,e=null,n=null,i=0,r=null,o=t===It?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Ky(e),ref:e&&el(e),scopeId:wc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:fe};return a?(Gf(l,n),o&128&&t.normalize(l)):n&&(l.shapeFlag|=te(n)?8:16),l.key!==l.key&&G("VNode created with invalid key (NaN). VNode type:",l.type),Bs>0&&!s&&Pn&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Pn.push(l),l}const at=nT;function iT(t,e=null,n=null,i=0,r=null,o=!1){if((!t||t===wy)&&(t||G(`Invalid vnode type when creating vnode: ${t}.`),t=Ce),or(t)){const a=Nn(t,e,!0);return n&&Gf(a,n),Bs>0&&!o&&Pn&&(a.shapeFlag&6?Pn[Pn.indexOf(t)]=a:Pn.push(a)),a.patchFlag|=-2,a}if(t_(t)&&(t=t.__vccOpts),e){e=Do(e);let{class:a,style:l}=e;a&&!te(a)&&(e.class=ee(a)),Ut(l)&&(kl(l)&&!gt(l)&&(l=oe({},l)),e.style=Ae(l))}const s=te(t)?1:Sy(t)?128:Zw(t)?64:Ut(t)?4:wt(t)?2:0;return s&4&&kl(t)&&(t=At(t),G("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
Component that was made reactive: `,t)),X(t,e,n,i,r,s,o,!0)}function Do(t){return t?kl(t)||kc in t?oe({},t):t:null}function Nn(t,e,n=!1){const{props:i,ref:r,patchFlag:o,children:s}=t,a=e?Ur(i||{},e):i;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&Ky(a),ref:e&&e.ref?n&&r?gt(r)?r.concat(el(e)):[r,el(e)]:el(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o===-1&>(s)?s.map(Xy):s,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==It?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Nn(t.ssContent),ssFallback:t.ssFallback&&Nn(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Xy(t){const e=Nn(t);return gt(t.children)&&(e.children=t.children.map(Xy)),e}function Ci(t=" ",e=0){return at(ua,null,t,e)}function Mt(t="",e=!1){return e?(R(),Vt(Ce,null,t)):at(Ce,null,t)}function Bn(t){return t==null||typeof t=="boolean"?at(Ce):gt(t)?at(It,null,t.slice()):typeof t=="object"?ji(t):at(ua,null,String(t))}function ji(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Nn(t)}function Gf(t,e){let n=0;const{shapeFlag:i}=t;if(e==null)e=null;else if(gt(e))n=16;else if(typeof e=="object")if(i&65){const r=e.default;r&&(r._c&&(r._d=!1),Gf(t,r()),r._c&&(r._d=!0));return}else{n=32;const r=e._;!r&&!(kc in e)?e._ctx=fe:r===3&&fe&&(fe.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else wt(e)?(e={default:e,_ctx:fe},n=32):(e=String(e),i&64?(n=16,e=[Ci(e)]):n=8);t.children=e,t.shapeFlag|=n}function Ur(...t){const e={};for(let n=0;n<t.length;n++){const i=t[n];for(const r in i)if(r==="class")e.class!==i.class&&(e.class=ee([e.class,i.class]));else if(r==="style")e.style=Ae([e.style,i.style]);else if(ia(r)){const o=e[r],s=i[r];s&&o!==s&&!(gt(o)&&o.includes(s))&&(e[r]=o?[].concat(o,s):s)}else r!==""&&(e[r]=i[r])}return e}function dn(t,e,n,i=null){_n(t,e,7,[n,i])}const rT=Dy();let oT=0;function sT(t,e,n){const i=t.type,r=(e?e.appContext:t.appContext)||rT,o={uid:oT++,vnode:t,type:i,parent:e,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new z0(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Hy(i,r),emitsOptions:xy(i,r),emit:null,emitted:null,propsDefaults:Jt,inheritAttrs:i.inheritAttrs,ctx:Jt,data:Jt,props:Jt,attrs:Jt,slots:Jt,refs:Jt,setupState:Jt,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx=Cw(o),o.root=e?e.root:o,o.emit=nw.bind(null,o),t.ce&&t.ce(o),o}let ye=null;const Tn=()=>ye||fe;let Il,gh;{const t=$f(),e=(n,i)=>{let r;return(r=t[n])||(r=t[n]=[]),r.push(i),o=>{r.length>1?r.forEach(s=>s(o)):r[0](o)}};Il=e("__VUE_INSTANCE_SETTERS__",n=>ye=n),gh=e("__VUE_SSR_SETTERS__",n=>Ac=n)}const ha=t=>{const e=ye;return Il(t),t.scope.on(),()=>{t.scope.off(),Il(e)}},qp=()=>{ye&&ye.scope.off(),Il(null)},aT=ki("slot,component");function yh(t,e){const n=e.isNativeTag||P0;(aT(t)||n(t))&&G("Do not use built-in or reserved HTML elements as component id: "+t)}function Zy(t){return t.vnode.shapeFlag&4}let Ac=!1;function lT(t,e=!1){e&&gh(e);const{props:n,children:i}=t.vnode,r=Zy(t);Iw(t,n,r,e),Vw(t,i);const o=r?cT(t,e):void 0;return e&&gh(!1),o}function cT(t,e){var n;const i=t.type;{if(i.name&&yh(i.name,t.appContext.config),i.components){const o=Object.keys(i.components);for(let s=0;s<o.length;s++)yh(o[s],t.appContext.config)}if(i.directives){const o=Object.keys(i.directives);for(let s=0;s<o.length;s++)Ay(o[s])}i.compilerOptions&&uT()&&G('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}t.accessCache=Object.create(null),t.proxy=bc(new Proxy(t.ctx,Ry)),ww(t);const{setup:r}=i;if(r){const o=t.setupContext=r.length>1?Qy(t):null,s=ha(t);cr();const a=_i(r,t,0,[mo(t.props),o]);if(ur(),s(),kf(a)){if(a.then(qp,qp),e)return a.then(l=>{zp(t,l,e)}).catch(l=>{sa(l,t,0)});if(t.asyncDep=a,!t.suspense){const l=(n=i.name)!=null?n:"Anonymous";G(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else zp(t,a,e)}else Jy(t,e)}function zp(t,e,n){wt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ut(e)?(or(e)&&G("setup() should not return VNodes directly - return a render function instead."),t.devtoolsRawSetupState=e,t.setupState=cy(e),Tw(t)):e!==void 0&&G(`setup() should return an object. Received: ${e===null?"null":typeof e}`),Jy(t,n)}let _h;const uT=()=>!_h;function Jy(t,e,n){const i=t.type;if(!t.render){if(!e&&_h&&!i.render){const r=i.template||Uf(t).template;if(r){ui(t,"compile");const{isCustomElement:o,compilerOptions:s}=t.appContext.config,{delimiters:a,compilerOptions:l}=i,c=oe(oe({isCustomElement:o,delimiters:a},s),l);i.render=_h(r,c),hi(t,"compile")}}t.render=i.render||Be}{const r=ha(t);cr();try{Ew(t)}finally{ur(),r()}}!i.render&&t.render===Be&&!e&&(i.template?G('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):G("Component is missing template or render function."))}function hT(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return El(),Re(t,"get","$attrs"),e[n]},set(){return G("setupContext.attrs is readonly."),!1},deleteProperty(){return G("setupContext.attrs is readonly."),!1}}))}function fT(t){return t.slotsProxy||(t.slotsProxy=new Proxy(t.slots,{get(e,n){return Re(t,"get","$slots"),e[n]}}))}function Qy(t){return Object.freeze({get attrs(){return hT(t)},get slots(){return fT(t)},get emit(){return(n,...i)=>t.emit(n,...i)},expose:n=>{if(t.exposed&&G("expose() should be called only once per setup()."),n!=null){let i=typeof n;i==="object"&&(gt(n)?i="array":Yt(n)&&(i="ref")),i!=="object"&&G(`expose() should be passed a plain object, received ${i}.`)}t.exposed=n||{}}})}function Ec(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(cy(bc(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Nr)return Nr[n](t)},has(e,n){return n in e||n in Nr}}))}const dT=/(?:^|[-_])(\w)/g,pT=t=>t.replace(dT,e=>e.toUpperCase()).replace(/[-_]/g,"");function Is(t,e=!0){return wt(t)?t.displayName||t.name:t.name||e&&t.__name}function $c(t,e,n=!1){let i=Is(e);if(!i&&e.__file){const r=e.__file.match(/([^/\\]+)\.\w+$/);r&&(i=r[1])}if(!i&&t&&t.parent){const r=o=>{for(const s in o)if(o[s]===e)return s};i=r(t.components||t.parent.type.components)||r(t.appContext.components)}return i?pT(i):n?"App":"Anonymous"}function t_(t){return wt(t)&&"__vccOpts"in t}const A=(t,e)=>EC(t,e,Ac);function Ze(t,e,n){const i=arguments.length;return i===2?Ut(e)&&!gt(e)?or(e)?at(t,null,[e]):at(t,e):at(t,null,e):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&or(n)&&(n=[n]),at(t,e,n))}function mu(t){return!!(t&&t.__v_isShallow)}function mT(){if(typeof window>"u")return;const t={style:"color:#3ba776"},e={style:"color:#1677ff"},n={style:"color:#f5222d"},i={style:"color:#eb2f96"},r={header(h){return Ut(h)?h.__isVue?["div",t,"VueInstance"]:Yt(h)?["div",{},["span",t,u(h)],"<",a(h.value),">"]:Pr(h)?["div",{},["span",t,mu(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${rr(h)?" (readonly)":""}`]:rr(h)?["div",{},["span",t,mu(h)?"ShallowReadonly":"Readonly"],"<",a(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...o(h.$)]}};function o(h){const f=[];h.type.props&&h.props&&f.push(s("props",At(h.props))),h.setupState!==Jt&&f.push(s("setup",h.setupState)),h.data!==Jt&&f.push(s("data",At(h.data)));const d=l(h,"computed");d&&f.push(s("computed",d));const p=l(h,"inject");return p&&f.push(s("injected",p)),f.push(["div",{},["span",{style:i.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),f}function s(h,f){return f=oe({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(d=>["div",{},["span",i,d+": "],a(f[d],!1)])]]:["span",{}]}function a(h,f=!0){return typeof h=="number"?["span",e,h]:typeof h=="string"?["span",n,JSON.stringify(h)]:typeof h=="boolean"?["span",i,h]:Ut(h)?["object",{object:f?At(h):h}]:["span",n,String(h)]}function l(h,f){const d=h.type;if(wt(d))return;const p={};for(const g in h.ctx)c(d,g,f)&&(p[g]=h.ctx[g]);return p}function c(h,f,d){const p=h[d];if(gt(p)&&p.includes(f)||Ut(p)&&f in p||h.extends&&c(h.extends,f,d)||h.mixins&&h.mixins.some(g=>c(g,f,d)))return!0}function u(h){return mu(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}const vh="3.4.15",Xi=G;/**
* @vue/runtime-dom v3.4.15
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const gT="http://www.w3.org/2000/svg",yT="http://www.w3.org/1998/Math/MathML",Hi=typeof document<"u"?document:null,Vp=Hi&&Hi.createElement("template"),_T={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,i)=>{const r=e==="svg"?Hi.createElementNS(gT,t):e==="mathml"?Hi.createElementNS(yT,t):Hi.createElement(t,n?{is:n}:void 0);return t==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:t=>Hi.createTextNode(t),createComment:t=>Hi.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Hi.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,i,r,o){const s=n?n.previousSibling:e.lastChild;if(r&&(r===o||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Vp.innerHTML=i==="svg"?`<svg>${t}</svg>`:i==="mathml"?`<math>${t}</math>`:t;const a=Vp.content;if(i==="svg"||i==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Fi="transition",Yo="animation",Ao=Symbol("_vtc"),Kf=(t,{slots:e})=>Ze(dw,n_(t),e);Kf.displayName="Transition";const e_={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},vT=Kf.props=oe({},Ly,e_),_r=(t,e=[])=>{gt(t)?t.forEach(n=>n(...e)):t&&t(...e)},Wp=t=>t?gt(t)?t.some(e=>e.length>1):t.length>1:!1;function n_(t){const e={};for(const V in t)V in e_||(e[V]=t[V]);if(t.css===!1)return e;const{name:n="v",type:i,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=s,appearToClass:u=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=t,p=bT(r),g=p&&p[0],y=p&&p[1],{onBeforeEnter:b,onEnter:v,onEnterCancelled:_,onLeave:w,onLeaveCancelled:S,onBeforeAppear:B=b,onAppear:C=v,onAppearCancelled:P=_}=e,E=(V,W,N)=>{Pi(V,W?u:a),Pi(V,W?c:s),N&&N()},F=(V,W)=>{V._isLeaving=!1,Pi(V,h),Pi(V,d),Pi(V,f),W&&W()},ot=V=>(W,N)=>{const j=V?C:v,Y=()=>E(W,V,N);_r(j,[W,Y]),Up(()=>{Pi(W,V?l:o),fi(W,V?u:a),Wp(j)||Yp(W,i,g,Y)})};return oe(e,{onBeforeEnter(V){_r(b,[V]),fi(V,o),fi(V,s)},onBeforeAppear(V){_r(B,[V]),fi(V,l),fi(V,c)},onEnter:ot(!1),onAppear:ot(!0),onLeave(V,W){V._isLeaving=!0;const N=()=>F(V,W);fi(V,h),r_(),fi(V,f),Up(()=>{V._isLeaving&&(Pi(V,h),fi(V,d),Wp(w)||Yp(V,i,y,N))}),_r(w,[V,N])},onEnterCancelled(V){E(V,!1),_r(_,[V])},onAppearCancelled(V){E(V,!0),_r(P,[V])},onLeaveCancelled(V){F(V),_r(S,[V])}})}function bT(t){if(t==null)return null;if(Ut(t))return[gu(t.enter),gu(t.leave)];{const e=gu(t);return[e,e]}}function gu(t){const e=Yx(t);return DC(e,"<transition> explicit duration"),e}function fi(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[Ao]||(t[Ao]=new Set)).add(e)}function Pi(t,e){e.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const n=t[Ao];n&&(n.delete(e),n.size||(t[Ao]=void 0))}function Up(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let xT=0;function Yp(t,e,n,i){const r=t._endId=++xT,o=()=>{r===t._endId&&i()};if(n)return setTimeout(o,n);const{type:s,timeout:a,propCount:l}=i_(t,e);if(!s)return i();const c=s+"end";let u=0;const h=()=>{t.removeEventListener(c,f),o()},f=d=>{d.target===t&&++u>=l&&h()};setTimeout(()=>{u<l&&h()},a+1),t.addEventListener(c,f)}function i_(t,e){const n=window.getComputedStyle(t),i=p=>(n[p]||"").split(", "),r=i(`${Fi}Delay`),o=i(`${Fi}Duration`),s=Gp(r,o),a=i(`${Yo}Delay`),l=i(`${Yo}Duration`),c=Gp(a,l);let u=null,h=0,f=0;e===Fi?s>0&&(u=Fi,h=s,f=o.length):e===Yo?c>0&&(u=Yo,h=c,f=l.length):(h=Math.max(s,c),u=h>0?s>c?Fi:Yo:null,f=u?u===Fi?o.length:l.length:0);const d=u===Fi&&/\b(transform|all)(,|$)/.test(i(`${Fi}Property`).toString());return{type:u,timeout:h,propCount:f,hasTransform:d}}function Gp(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,i)=>Kp(n)+Kp(t[i])))}function Kp(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function r_(){return document.body.offsetHeight}function CT(t,e,n){const i=t[Ao];i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Xf=Symbol("_vod"),Zf={beforeMount(t,{value:e},{transition:n}){t[Xf]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Go(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:i}){!e!=!n&&(i?e?(i.beforeEnter(t),Go(t,!0),i.enter(t)):i.leave(t,()=>{Go(t,!1)}):Go(t,e))},beforeUnmount(t,{value:e}){Go(t,e)}};Zf.name="show";function Go(t,e){t.style.display=e?t[Xf]:"none"}const wT=Symbol("CSS_VAR_TEXT");function TT(t,e,n){const i=t.style,r=i.display,o=te(n);if(n&&!o){if(e&&!te(e))for(const s in e)n[s]==null&&bh(i,s,"");for(const s in n)bh(i,s,n[s])}else if(o){if(e!==n){const s=i[wT];s&&(n+=";"+s),i.cssText=n}}else e&&t.removeAttribute("style");Xf in t&&(i.display=r)}const ST=/[^\\];\s*$/,Xp=/\s*!important$/;function bh(t,e,n){if(gt(n))n.forEach(i=>bh(t,e,i));else if(n==null&&(n=""),ST.test(n)&&Xi(`Unexpected semicolon at the end of '${e}' style value: '${n}'`),e.startsWith("--"))t.setProperty(e,n);else{const i=kT(t,e);Xp.test(n)?t.setProperty(xi(i),n.replace(Xp,""),"important"):t[i]=n}}const Zp=["Webkit","Moz","ms"],yu={};function kT(t,e){const n=yu[e];if(n)return n;let i=Qn(e);if(i!=="filter"&&i in t)return yu[e]=i;i=Vr(i);for(let r=0;r<Zp.length;r++){const o=Zp[r]+i;if(o in t)return yu[e]=o}return e}const Jp="http://www.w3.org/1999/xlink";function AT(t,e,n,i,r){if(i&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(Jp,e.slice(6,e.length)):t.setAttributeNS(Jp,e,n);else{const o=rC(e);n==null||o&&!H0(n)?t.removeAttribute(e):t.setAttribute(e,o?"":n)}}function ET(t,e,n,i,r,o,s){if(e==="innerHTML"||e==="textContent"){i&&s(i,r,o),t[e]=n??"";return}const a=t.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){t._value=n;const c=a==="OPTION"?t.getAttribute("value"):t.value,u=n??"";c!==u&&(t.value=u),n==null&&t.removeAttribute(e);return}let l=!1;if(n===""||n==null){const c=typeof t[e];c==="boolean"?n=H0(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{t[e]=n}catch(c){l||Xi(`Failed setting prop "${e}" on <${a.toLowerCase()}>: value ${n} is invalid.`,c)}l&&t.removeAttribute(e)}function $T(t,e,n,i){t.addEventListener(e,n,i)}function LT(t,e,n,i){t.removeEventListener(e,n,i)}const Qp=Symbol("_vei");function OT(t,e,n,i,r=null){const o=t[Qp]||(t[Qp]={}),s=o[e];if(i&&s)s.value=i;else{const[a,l]=MT(e);if(i){const c=o[e]=IT(i,r);$T(t,a,c,l)}else s&&(LT(t,a,s,l),o[e]=void 0)}}const tm=/(?:Once|Passive|Capture)$/;function MT(t){let e;if(tm.test(t)){e={};let i;for(;i=t.match(tm);)t=t.slice(0,t.length-i[0].length),e[i[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):xi(t.slice(2)),e]}let _u=0;const FT=Promise.resolve(),BT=()=>_u||(FT.then(()=>_u=0),_u=Date.now());function IT(t,e){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;_n(PT(i,n.value),e,5,[i])};return n.value=t,n.attached=BT(),n}function PT(t,e){if(gt(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(i=>r=>!r._stopped&&i&&i(r))}else return e}const em=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,RT=(t,e,n,i,r,o,s,a,l)=>{const c=r==="svg";e==="class"?CT(t,i,c):e==="style"?TT(t,n,i):ia(e)?xl(e)||OT(t,e,n,i,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):NT(t,e,i,c))?ET(t,e,i,o,s,a,l):(e==="true-value"?t._trueValue=i:e==="false-value"&&(t._falseValue=i),AT(t,e,i,c))};function NT(t,e,n,i){if(i)return!!(e==="innerHTML"||e==="textContent"||e in t&&em(e)&&wt(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const r=t.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return em(e)&&te(n)?!1:e in t}const o_=new WeakMap,s_=new WeakMap,Pl=Symbol("_moveCb"),nm=Symbol("_enterCb"),a_={name:"TransitionGroup",props:oe({},vT,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Tn(),i=$y();let r,o;return Sc(()=>{if(!r.length)return;const s=t.moveClass||`${t.name||"v"}-move`;if(!VT(r[0].el,n.vnode.el,s))return;r.forEach(HT),r.forEach(qT);const a=r.filter(zT);r_(),a.forEach(l=>{const c=l.el,u=c.style;fi(c,s),u.transform=u.webkitTransform=u.transitionDuration="";const h=c[Pl]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",h),c[Pl]=null,Pi(c,s))};c.addEventListener("transitionend",h)})}),()=>{const s=At(t),a=n_(s);let l=s.tag||It;r=o,o=e.default?zf(e.default()):[];for(let c=0;c<o.length;c++){const u=o[c];u.key!=null?ko(u,Fs(u,a,i,n)):Xi("<TransitionGroup> children must be keyed.")}if(r)for(let c=0;c<r.length;c++){const u=r[c];ko(u,Fs(u,a,i,n)),o_.set(u,u.el.getBoundingClientRect())}return at(l,null,o)}}},DT=t=>delete t.mode;a_.props;const jT=a_;function HT(t){const e=t.el;e[Pl]&&e[Pl](),e[nm]&&e[nm]()}function qT(t){s_.set(t,t.el.getBoundingClientRect())}function zT(t){const e=o_.get(t),n=s_.get(t),i=e.left-n.left,r=e.top-n.top;if(i||r){const o=t.el.style;return o.transform=o.webkitTransform=`translate(${i}px,${r}px)`,o.transitionDuration="0s",t}}function VT(t,e,n){const i=t.cloneNode(),r=t[Ao];r&&r.forEach(a=>{a.split(/\s+/).forEach(l=>l&&i.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&i.classList.add(a)),i.style.display="none";const o=e.nodeType===1?e:e.parentNode;o.appendChild(i);const{hasTransform:s}=i_(i);return o.removeChild(i),s}const WT=["ctrl","shift","alt","meta"],UT={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>WT.some(n=>t[`${n}Key`]&&!e.includes(n))},YT=(t,e)=>{const n=t._withMods||(t._withMods={}),i=e.join(".");return n[i]||(n[i]=(r,...o)=>{for(let s=0;s<e.length;s++){const a=UT[e[s]];if(a&&a(r,e))return}return t(r,...o)})},GT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ma=(t,e)=>{const n=t._withKeys||(t._withKeys={}),i=e.join(".");return n[i]||(n[i]=r=>{if(!("key"in r))return;const o=xi(r.key);if(e.some(s=>s===o||GT[s]===o))return t(r)})},KT=oe({patchProp:RT},_T);let im;function XT(){return im||(im=Yw(KT))}const ZT=(...t)=>{const e=XT().createApp(...t);QT(e),tS(e);const{mount:n}=e;return e.mount=i=>{const r=eS(i);if(!r)return;const o=e._component;!wt(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,JT(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},e};function JT(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function QT(t){Object.defineProperty(t.config,"isNativeTag",{value:e=>j0(e)||eC(e)||nC(e),writable:!1})}function tS(t){{const e=t.config.isCustomElement;Object.defineProperty(t.config,"isCustomElement",{get(){return e},set(){Xi("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=t.config.compilerOptions,i='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(t.config,"compilerOptions",{get(){return Xi(i),n},set(){Xi(i)}})}}function eS(t){if(te(t)){const e=document.querySelector(t);return e||Xi(`Failed to mount app: mount target selector "${t}" returned null.`),e}return window.ShadowRoot&&t instanceof window.ShadowRoot&&t.mode==="closed"&&Xi('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),t}/**
* vue v3.4.15
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function nS(){mT()}nS();function xh(t,e={},n){for(const i in t){const r=t[i],o=n?`${n}:${i}`:i;typeof r=="object"&&r!==null?xh(r,e,o):typeof r=="function"&&(e[o]=r)}return e}const iS={run:t=>t()},rS=()=>iS,l_=typeof console.createTask<"u"?console.createTask:rS;function oS(t,e){const n=e.shift(),i=l_(n);return t.reduce((r,o)=>r.then(()=>i.run(()=>o(...e))),Promise.resolve())}function sS(t,e){const n=e.shift(),i=l_(n);return Promise.all(t.map(r=>i.run(()=>r(...e))))}function vu(t,e){for(const n of[...t])n(e)}class aS{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,n,i={}){if(!e||typeof n!="function")return()=>{};const r=e;let o;for(;this._deprecatedHooks[e];)o=this._deprecatedHooks[e],e=o.to;if(o&&!i.allowDeprecated){let s=o.message;s||(s=`${r} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(n),()=>{n&&(this.removeHook(e,n),n=void 0)}}hookOnce(e,n){let i,r=(...o)=>(typeof i=="function"&&i(),i=void 0,r=void 0,n(...o));return i=this.hook(e,r),i}removeHook(e,n){if(this._hooks[e]){const i=this._hooks[e].indexOf(n);i!==-1&&this._hooks[e].splice(i,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,n){this._deprecatedHooks[e]=typeof n=="string"?{to:n}:n;const i=this._hooks[e]||[];delete this._hooks[e];for(const r of i)this.hook(e,r)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const n in e)this.deprecateHook(n,e[n])}addHooks(e){const n=xh(e),i=Object.keys(n).map(r=>this.hook(r,n[r]));return()=>{for(const r of i.splice(0,i.length))r()}}removeHooks(e){const n=xh(e);for(const i in n)this.removeHook(i,n[i])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...n){return n.unshift(e),this.callHookWith(oS,e,...n)}callHookParallel(e,...n){return n.unshift(e),this.callHookWith(sS,e,...n)}callHookWith(e,n,...i){const r=this._before||this._after?{name:n,args:i,context:{}}:void 0;this._before&&vu(this._before,r);const o=e(n in this._hooks?[...this._hooks[n]]:[],i);return o instanceof Promise?o.finally(()=>{this._after&&r&&vu(this._after,r)}):(this._after&&r&&vu(this._after,r),o)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const n=this._before.indexOf(e);n!==-1&&this._before.splice(n,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const n=this._after.indexOf(e);n!==-1&&this._after.splice(n,1)}}}}function lS(){return new aS}function cS(t){return Array.isArray(t)?t:[t]}const uS=["title","titleTemplate","script","style","noscript"],nl=["base","meta","link","style","script","noscript"],hS=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],fS=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],c_=["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"],dS=typeof window<"u";function Jf(t){let e=9;for(let n=0;n<t.length;)e=Math.imul(e^t.charCodeAt(n++),9**9);return((e^e>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function rm(t){return t._h||Jf(t._d?t._d:`${t.tag}:${t.textContent||t.innerHTML||""}:${Object.entries(t.props).map(([e,n])=>`${e}:${String(n)}`).join(",")}`)}function u_(t,e){const{props:n,tag:i}=t;if(fS.includes(i))return i;if(i==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const r=["id"];i==="meta"&&r.push("name","property","http-equiv");for(const o of r)if(typeof n[o]<"u"){const s=String(n[o]);return e&&!e(s)?!1:`${i}:${o}:${s}`}return!1}function om(t,e){return t==null?e||null:typeof t=="function"?t(e):t}async function pS(t,e,n){const i={tag:t,props:await h_(typeof e=="object"&&typeof e!="function"&&!(e instanceof Promise)?{...e}:{[["script","noscript","style"].includes(t)?"innerHTML":"textContent"]:e},["templateParams","titleTemplate"].includes(t))};return c_.forEach(r=>{const o=typeof i.props[r]<"u"?i.props[r]:n[r];typeof o<"u"&&((!["innerHTML","textContent","children"].includes(r)||uS.includes(i.tag))&&(i[r==="children"?"innerHTML":r]=o),delete i.props[r])}),i.props.body&&(i.tagPosition="bodyClose",delete i.props.body),i.tag==="script"&&typeof i.innerHTML=="object"&&(i.innerHTML=JSON.stringify(i.innerHTML),i.props.type=i.props.type||"application/json"),Array.isArray(i.props.content)?i.props.content.map(r=>({...i,props:{...i.props,content:r}})):i}function mS(t){return typeof t=="object"&&!Array.isArray(t)&&(t=Object.keys(t).filter(e=>t[e])),(Array.isArray(t)?t.join(" "):t).split(" ").filter(e=>e.trim()).filter(Boolean).join(" ")}async function h_(t,e){for(const n of Object.keys(t)){if(n==="class"){t[n]=mS(t[n]);continue}if(t[n]instanceof Promise&&(t[n]=await t[n]),!e&&!c_.includes(n)){const i=String(t[n]),r=n.startsWith("data-");i==="true"||i===""?t[n]=r?"true":!0:t[n]||(r&&i==="false"?t[n]="false":delete t[n])}}return t}const gS=10;async function yS(t){const e=[];return Object.entries(t.resolvedInput).filter(([n,i])=>typeof i<"u"&&hS.includes(n)).forEach(([n,i])=>{const r=cS(i);e.push(...r.map(o=>pS(n,o,t)).flat())}),(await Promise.all(e)).flat().filter(Boolean).map((n,i)=>(n._e=t._i,t.mode&&(n._m=t.mode),n._p=(t._i<<gS)+i,n))}const sm={base:-10,title:10},am={critical:-80,high:-10,low:20};function Rl(t){let e=100;const n=t.tagPriority;return typeof n=="number"?n:(t.tag==="meta"?(t.props["http-equiv"]==="content-security-policy"&&(e=-30),t.props.charset&&(e=-20),t.props.name==="viewport"&&(e=-15)):t.tag==="link"&&t.props.rel==="preconnect"?e=20:t.tag in sm&&(e=sm[t.tag]),typeof n=="string"&&n in am?e+am[n]:e)}const _S=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],f_=["onload","onerror","onabort","onprogress","onloadstart"],Bi="%separator";function il(t,e,n){if(typeof t!="string"||!t.includes("%"))return t;function i(s){let a;return["s","pageTitle"].includes(s)?a=e.pageTitle:s.includes(".")?a=s.split(".").reduce((l,c)=>l&&l[c]||void 0,e):a=e[s],typeof a<"u"?(a||"").replace(/"/g,'\\"'):!1}let r=t;try{r=decodeURI(t)}catch{}return(r.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(s=>{const a=i(s.slice(1));typeof a=="string"&&(t=t.replace(new RegExp(`\\${s}(\\W|$)`,"g"),(l,c)=>`${a}${c}`).trim())}),t.includes(Bi)&&(t.endsWith(Bi)&&(t=t.slice(0,-Bi.length).trim()),t.startsWith(Bi)&&(t=t.slice(Bi.length).trim()),t=t.replace(new RegExp(`\\${Bi}\\s*\\${Bi}`,"g"),Bi),t=il(t,{separator:n},n)),t}async function vS(t){const e={tag:t.tagName.toLowerCase(),props:await h_(t.getAttributeNames().reduce((n,i)=>({...n,[i]:t.getAttribute(i)}),{})),innerHTML:t.innerHTML};return e._d=u_(e),e}async function bS(t,e={}){var u;const n=e.document||t.resolvedOptions.document;if(!n)return;const i={shouldRender:t.dirty,tags:[]};if(await t.hooks.callHook("dom:beforeRender",i),!i.shouldRender)return;const r=(await t.resolveTags()).map(h=>({tag:h,id:nl.includes(h.tag)?rm(h):h.tag,shouldRender:!0}));let o=t._dom;if(!o){o={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const h of["body","head"]){const f=(u=n==null?void 0:n[h])==null?void 0:u.children;for(const d of[...f].filter(p=>nl.includes(p.tagName.toLowerCase())))o.elMap[d.getAttribute("data-hid")||rm(await vS(d))]=d}}o.pendingSideEffects={...o.sideEffects||{}},o.sideEffects={};function s(h,f,d){const p=`${h}:${f}`;o.sideEffects[p]=d,delete o.pendingSideEffects[p]}function a({id:h,$el:f,tag:d}){const p=d.tag.endsWith("Attrs");o.elMap[h]=f,p||(["textContent","innerHTML"].forEach(g=>{d[g]&&d[g]!==f[g]&&(f[g]=d[g])}),s(h,"el",()=>{o.elMap[h].remove(),delete o.elMap[h]})),Object.entries(d.props).forEach(([g,y])=>{const b=`attr:${g}`;if(g==="class")for(const v of(y||"").split(" ").filter(Boolean))p&&s(h,`${b}:${v}`,()=>f.classList.remove(v)),!f.classList.contains(v)&&f.classList.add(v);else f.getAttribute(g)!==y&&f.setAttribute(g,y===!0?"":String(y)),p&&s(h,b,()=>f.removeAttribute(g))})}const l=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const h of r){const{tag:f,shouldRender:d,id:p}=h;if(d){if(f.tag==="title"){n.title=f.textContent;continue}h.$el=h.$el||o.elMap[p],h.$el?a(h):nl.includes(f.tag)&&l.push(h)}}for(const h of l){const f=h.tag.tagPosition||"head";h.$el=n.createElement(h.tag.tag),a(h),c[f]=c[f]||n.createDocumentFragment(),c[f].appendChild(h.$el)}for(const h of r)await t.hooks.callHook("dom:renderTag",h,n,s);c.head&&n.head.appendChild(c.head),c.bodyOpen&&n.body.insertBefore(c.bodyOpen,n.body.firstChild),c.bodyClose&&n.body.appendChild(c.bodyClose),Object.values(o.pendingSideEffects).forEach(h=>h()),t._dom=o,t.dirty=!1,await t.hooks.callHook("dom:rendered",{renders:r})}async function xS(t,e={}){const n=e.delayFn||(i=>setTimeout(i,10));return t._domUpdatePromise=t._domUpdatePromise||new Promise(i=>n(async()=>{await bS(t,e),delete t._domUpdatePromise,i()}))}function CS(t){return e=>{var i,r;const n=((r=(i=e.resolvedOptions.document)==null?void 0:i.head.querySelector('script[id="unhead:payload"]'))==null?void 0:r.innerHTML)||!1;return n&&e.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(o){xS(o,t)}}}}}const wS=["templateParams","htmlAttrs","bodyAttrs"],TS={hooks:{"tag:normalise":function({tag:t}){["hid","vmid","key"].forEach(i=>{t.props[i]&&(t.key=t.props[i],delete t.props[i])});const n=u_(t)||(t.key?`${t.tag}:${t.key}`:!1);n&&(t._d=n)},"tags:resolve":function(t){const e={};t.tags.forEach(i=>{const r=(i.key?`${i.tag}:${i.key}`:i._d)||i._p,o=e[r];if(o){let a=i==null?void 0:i.tagDuplicateStrategy;if(!a&&wS.includes(i.tag)&&(a="merge"),a==="merge"){const l=o.props;["class","style"].forEach(c=>{l[c]&&(i.props[c]?(c==="style"&&!l[c].endsWith(";")&&(l[c]+=";"),i.props[c]=`${l[c]} ${i.props[c]}`):i.props[c]=l[c])}),e[r].props={...l,...i.props};return}else if(i._e===o._e){o._duped=o._duped||[],i._d=`${o._d}:${o._duped.length+1}`,o._duped.push(i);return}else if(Rl(i)>Rl(o))return}const s=Object.keys(i.props).length+(i.innerHTML?1:0)+(i.textContent?1:0);if(nl.includes(i.tag)&&s===0){delete e[r];return}e[r]=i});const n=[];Object.values(e).forEach(i=>{const r=i._duped;delete i._duped,n.push(i),r&&n.push(...r)}),t.tags=n,t.tags=t.tags.filter(i=>!(i.tag==="meta"&&(i.props.name||i.props.property)&&!i.props.content))}}},SS={mode:"server",hooks:{"tags:resolve":function(t){const e={};t.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{e[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(e).length&&t.tags.push({tag:"script",innerHTML:JSON.stringify(e),props:{id:"unhead:payload",type:"application/json"}})}}},kS=["script","link","bodyAttrs"];function AS(t){const e={},n={};return Object.entries(t.props).forEach(([i,r])=>{i.startsWith("on")&&typeof r=="function"?(f_.includes(i)&&(e[i]=`this.dataset.${i} = true`),n[i]=r):e[i]=r}),{props:e,eventHandlers:n}}const ES=t=>({hooks:{"tags:resolve":function(e){for(const n of e.tags)if(kS.includes(n.tag)){const{props:i,eventHandlers:r}=AS(n);n.props=i,Object.keys(r).length&&((n.props.src||n.props.href)&&(n.key=n.key||Jf(n.props.src||n.props.href)),n._eventHandlers=r)}},"dom:renderTag":function(e,n,i){if(!e.tag._eventHandlers)return;const r=e.tag.tag==="bodyAttrs"?n.defaultView:e.$el;Object.entries(e.tag._eventHandlers).forEach(([o,s])=>{const a=`${e.tag._d||e.tag._p}:${o}`,l=o.slice(2).toLowerCase(),c=`data-h-${l}`;if(i(e.id,a,()=>{}),e.$el.hasAttribute(c))return;e.$el.setAttribute(c,"");let u;const h=f=>{s(f),u==null||u.disconnect()};o in e.$el.dataset?h(new Event(o.replace("on",""))):f_.includes(o)&&typeof MutationObserver<"u"?(u=new MutationObserver(f=>{f.some(p=>p.attributeName===`data-${o}`)&&(h(new Event(o.replace("on",""))),u==null||u.disconnect())}),u.observe(e.$el,{attributes:!0})):r.addEventListener(l,h),i(e.id,a,()=>{u==null||u.disconnect(),r.removeEventListener(l,h),e.$el.removeAttribute(c)})})}}}),$S=["link","style","script","noscript"],LS={hooks:{"tag:normalise":({tag:t})=>{t.key&&$S.includes(t.tag)&&(t.props["data-hid"]=t._h=Jf(t.key))}}},OS={hooks:{"tags:resolve":t=>{const e=n=>{var i;return(i=t.tags.find(r=>r._d===n))==null?void 0:i._p};for(const{prefix:n,offset:i}of _S)for(const r of t.tags.filter(o=>typeof o.tagPriority=="string"&&o.tagPriority.startsWith(n))){const o=e(r.tagPriority.replace(n,""));typeof o<"u"&&(r._p=o+i)}t.tags.sort((n,i)=>n._p-i._p).sort((n,i)=>Rl(n)-Rl(i))}}},MS={meta:"content",link:"href",htmlAttrs:"lang"},FS=t=>({hooks:{"tags:resolve":e=>{var a;const{tags:n}=e,i=(a=n.find(l=>l.tag==="title"))==null?void 0:a.textContent,r=n.findIndex(l=>l.tag==="templateParams"),o=r!==-1?n[r].props:{},s=o.separator||"|";delete o.separator,o.pageTitle=il(o.pageTitle||i||"",o,s);for(const l of n.filter(c=>c.processTemplateParams!==!1)){const c=MS[l.tag];c&&typeof l.props[c]=="string"?l.props[c]=il(l.props[c],o,s):(l.processTemplateParams===!0||["titleTemplate","title"].includes(l.tag))&&["innerHTML","textContent"].forEach(u=>{typeof l[u]=="string"&&(l[u]=il(l[u],o,s))})}t._templateParams=o,t._separator=s,e.tags=n.filter(l=>l.tag!=="templateParams")}}}),BS={hooks:{"tags:resolve":t=>{const{tags:e}=t;let n=e.findIndex(r=>r.tag==="titleTemplate");const i=e.findIndex(r=>r.tag==="title");if(i!==-1&&n!==-1){const r=om(e[n].textContent,e[i].textContent);r!==null?e[i].textContent=r||e[i].textContent:delete e[i]}else if(n!==-1){const r=om(e[n].textContent);r!==null&&(e[n].textContent=r,e[n].tag="title",n=-1)}n!==-1&&delete e[n],t.tags=e.filter(Boolean)}}},IS={hooks:{"tags:afterResolve":function(t){for(const e of t.tags)typeof e.innerHTML=="string"&&(e.innerHTML&&["application/ld+json","application/json"].includes(e.props.type)?e.innerHTML=e.innerHTML.replace(/</g,"\\u003C"):e.innerHTML=e.innerHTML.replace(new RegExp(`</${e.tag}`,"g"),`<\\/${e.tag}`))}}};let d_;function PS(t={}){const e=RS(t);return e.use(CS()),d_=e}function lm(t,e){return!t||t==="server"&&e||t==="client"&&!e}function RS(t={}){const e=lS();e.addHooks(t.hooks||{}),t.document=t.document||(dS?document:void 0);const n=!t.document,i=()=>{a.dirty=!0,e.callHook("entries:updated",a)};let r=0,o=[];const s=[],a={plugins:s,dirty:!1,resolvedOptions:t,hooks:e,headEntries(){return o},use(l){const c=typeof l=="function"?l(a):l;(!c.key||!s.some(u=>u.key===c.key))&&(s.push(c),lm(c.mode,n)&&e.addHooks(c.hooks||{}))},push(l,c){c==null||delete c.head;const u={_i:r++,input:l,...c};return lm(u.mode,n)&&(o.push(u),i()),{dispose(){o=o.filter(h=>h._i!==u._i),e.callHook("entries:updated",a),i()},patch(h){o=o.map(f=>(f._i===u._i&&(f.input=u.input=h),f)),i()}}},async resolveTags(){const l={tags:[],entries:[...o]};await e.callHook("entries:resolve",l);for(const c of l.entries){const u=c.resolvedInput||c.input;if(c.resolvedInput=await(c.transform?c.transform(u):u),c.resolvedInput)for(const h of await yS(c)){const f={tag:h,entry:c,resolvedOptions:a.resolvedOptions};await e.callHook("tag:normalise",f),l.tags.push(f.tag)}}return await e.callHook("tags:beforeResolve",l),await e.callHook("tags:resolve",l),await e.callHook("tags:afterResolve",l),l.tags},ssr:n};return[TS,SS,ES,LS,OS,FS,BS,IS,...(t==null?void 0:t.plugins)||[]].forEach(l=>a.use(l)),a.hooks.callHook("init",a),a}function NS(){return d_}const DS=vh.startsWith("3");function jS(t){return typeof t=="function"?t():O(t)}function Nl(t,e=""){if(t instanceof Promise)return t;const n=jS(t);return!t||!n?n:Array.isArray(n)?n.map(i=>Nl(i,e)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,r])=>i==="titleTemplate"||i.startsWith("on")?[i,O(r)]:[i,Nl(r,i)])):n}const HS={hooks:{"entries:resolve":function(t){for(const e of t.entries)e.resolvedInput=Nl(e.input)}}},p_="usehead";function qS(t){return{install(n){DS&&(n.config.globalProperties.$unhead=t,n.config.globalProperties.$head=t,n.provide(p_,t))}}.install}function zS(t={}){t.domDelayFn=t.domDelayFn||(n=>ke(()=>setTimeout(()=>n(),0)));const e=PS(t);return e.use(HS),e.install=qS(e),e}const cm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},um="__unhead_injection_handler__";function VS(){if(um in cm)return cm[um]();const t=kt(p_);return t||console.warn("Unhead is missing Vue context, falling back to shared context. This may have unexpected results."),t||NS()}function WS(t,e={}){const n=e.head||VS();if(n)return n.ssr?n.push(t,e):US(n,t,e)}function US(t,e,n={}){const i=tt(!1),r=tt({});Xn(()=>{r.value=i.value?{}:Nl(e)});const o=t.push(r.value,n);return $t(r,a=>{o.patch(a)}),Tn()&&(ca(()=>{o.dispose()}),By(()=>{i.value=!0}),Fy(()=>{i.value=!1})),o}let YS=t=>crypto.getRandomValues(new Uint8Array(t)),GS=(t,e,n)=>{let i=(2<<Math.log(t.length-1)/Math.LN2)-1,r=-~(1.6*i*e/t.length);return(o=e)=>{let s="";for(;;){let a=n(r),l=r;for(;l--;)if(s+=t[a[l]&i]||"",s.length===o)return s}}},KS=(t,e=21)=>GS(t,e,YS),XS=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,n)=>(n&=63,n<36?e+=n.toString(36):n<62?e+=(n-26).toString(36).toUpperCase():n>62?e+="-":e+="_",e),"");function hm(t,e){if(!t)return!1;const n=t.indexOf(e);return n>=0?(t.splice(n,1),!0):!1}function ZS(t){return t!=null}function JS(t,e){return Object.fromEntries(Object.entries(t).map(([n,i])=>e(n,i)).filter(ZS))}function fm(t){return Object.keys(t).forEach(e=>t[e]===void 0?delete t[e]:{}),t}const us={theme:"default",title:"Nix for genetics",titleTemplate:"%s - Slidev",addons:[],remoteAssets:!1,monaco:"dev",download:!1,export:{},info:!1,highlighter:"prism",lineNumbers:!1,colorSchema:"auto",routerMode:"history",aspectRatio:1.7777777777777777,canvasWidth:980,exportFilename:"",selectable:!1,themeConfig:{},fonts:{sans:['"Avenir Next"','"Nunito Sans"',"ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:['"Fira Code"',"ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"],webfonts:["Avenir Next","Nunito Sans","Fira Code"],provider:"google",local:["Avenir Next"],italic:!1,weights:["200","400","600"]},favicon:"https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png",drawings:{enabled:!0,persist:!1,presenterOnly:!1,syncAll:!0},plantUmlServer:"https://www.plantuml.com/plantuml",codeCopy:!0,record:"dev",css:"unocss",presenter:!0,htmlAttrs:{},editor:!0},Wt=us,Zi=Wt.aspectRatio??16/9,Ji=Wt.canvasWidth??980,Qf=Math.ceil(Ji/Zi),td=A(()=>JS(Wt.themeConfig||{},(t,e)=>[`--slidev-theme-${t}`,e]));function m_(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(2,10)}function Sn(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!1})}const Jr=zt({page:0,clicks:0});let QS=[],tk=[];Sn(Jr,"$syncUp",!0);Sn(Jr,"$syncDown",!0);Sn(Jr,"$paused",!1);Sn(Jr,"$onSet",t=>QS.push(t));Sn(Jr,"$onPatch",t=>tk.push(t));m_();Sn(Jr,"$patch",async()=>!1);function g_(t,e,n=!1){const i=[];let r=!1,o=!1,s,a;const l=zt(e);function c(d){i.push(d)}function u(d,p){l[d]!==p&&(clearTimeout(s),r=!0,l[d]=p,s=setTimeout(()=>r=!1,0))}function h(d){r||(clearTimeout(a),o=!0,Object.entries(d).forEach(([p,g])=>{l[p]=g}),a=setTimeout(()=>o=!1,0))}function f(d){let p;n?n&&window.addEventListener("storage",y=>{y&&y.key===d&&y.newValue&&h(JSON.parse(y.newValue))}):(p=new BroadcastChannel(d),p.addEventListener("message",y=>h(y.data)));function g(){!n&&p&&!o?p.postMessage(At(l)):n&&!o&&window.localStorage.setItem(d,JSON.stringify(l)),r||i.forEach(y=>y(l))}if($t(l,g,{deep:!0,flush:"sync"}),n){const y=window.localStorage.getItem(d);y&&h(JSON.parse(y))}}return{init:f,onPatch:c,patch:u,state:l}}const{init:ek,onPatch:nk,patch:Ko,state:bu}=g_(Jr,{page:1,clicks:0,viewerPage:1,viewerClicks:0}),Qr=zt({});let ik=[],rk=[];Sn(Qr,"$syncUp",!0);Sn(Qr,"$syncDown",!0);Sn(Qr,"$paused",!1);Sn(Qr,"$onSet",t=>ik.push(t));Sn(Qr,"$onPatch",t=>rk.push(t));m_();Sn(Qr,"$patch",async()=>!1);const{init:ok,onPatch:sk,patch:y_,state:Dl}=g_(Qr,{},!1),ak="modulepreload",lk=function(t){return"/slides/fosdem2024/"+t},dm={},Qt=function(e,n,i){let r=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link");r=Promise.all(n.map(s=>{if(s=lk(s),s in dm)return;dm[s]=!0;const a=s.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!i)for(let h=o.length-1;h>=0;h--){const f=o[h];if(f.href===s&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":ak,a||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),a)return new Promise((h,f)=>{u.addEventListener("load",h),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})}))}return r.then(()=>e()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})};function ck(t,e){let n,i,r;const o=tt(!0),s=()=>{o.value=!0,r()};$t(t,s,{flush:"sync"});const a=typeof e=="function"?e:e.get,l=typeof e=="function"?void 0:e.set,c=Pf((u,h)=>(i=u,r=h,{get(){return o.value&&(n=a(),o.value=!1),i(),n},set(f){l==null||l(f)}}));return Object.isExtensible(c)&&(c.trigger=s),c}function wi(t){return V0()?(aC(t),!0):!1}function re(t){return typeof t=="function"?t():O(t)}function uk(t){if(!Yt(t))return zt(t);const e=new Proxy({},{get(n,i,r){return O(Reflect.get(t.value,i,r))},set(n,i,r){return Yt(t.value[i])&&!Yt(r)?t.value[i].value=r:t.value[i]=r,!0},deleteProperty(n,i){return Reflect.deleteProperty(t.value,i)},has(n,i){return Reflect.has(t.value,i)},ownKeys(){return Object.keys(t.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return zt(e)}const vn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const hk=t=>typeof t<"u",fk=t=>t!=null,dk=Object.prototype.toString,Ps=t=>dk.call(t)==="[object Object]",Ch=()=>+Date.now(),vi=()=>{},pk=mk();function mk(){var t,e;return vn&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function gk(t,e){function n(...i){return new Promise((r,o)=>{Promise.resolve(t(()=>e.apply(this,i),{fn:e,thisArg:this,args:i})).then(r).catch(o)})}return n}const __=t=>t();function yk(t=__){const e=tt(!0);function n(){e.value=!1}function i(){e.value=!0}const r=(...o)=>{e.value&&t(...o)};return{isActive:Un(e),pause:n,resume:i,eventFilter:r}}function _k(t,e){var n;if(typeof t=="number")return t+e;const i=((n=t.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:n[0])||"",r=t.slice(i.length),o=Number.parseFloat(i)+e;return Number.isNaN(o)?t:o+r}function v_(t){return t||Tn()}function vk(...t){if(t.length!==1)return Ai(...t);const e=t[0];return typeof e=="function"?Un(Pf(()=>({get:e,set:vi}))):tt(e)}function bk(t,e,n={}){const{eventFilter:i=__,...r}=n;return $t(t,gk(i,e),r)}function xk(t,e,n={}){const{eventFilter:i,...r}=n,{eventFilter:o,pause:s,resume:a,isActive:l}=yk(i);return{stop:bk(t,e,{...r,eventFilter:o}),pause:s,resume:a,isActive:l}}function Ck(t,e={}){if(!Yt(t))return MC(t);const n=Array.isArray(t.value)?Array.from({length:t.value.length}):{};for(const i in t.value)n[i]=Pf(()=>({get(){return t.value[i]},set(r){var o;if((o=re(e.replaceRef))!=null?o:!0)if(Array.isArray(t.value)){const a=[...t.value];a[i]=r,t.value=a}else{const a={...t.value,[i]:r};Object.setPrototypeOf(a,Object.getPrototypeOf(t.value)),t.value=a}else t.value[i]=r}}));return n}function fa(t,e=!0,n){v_()?Zr(t,n):e?t():ke(t)}function wk(t,e){v_(e)&&Vf(t,e)}function Tk(t,e=1e3,n={}){const{immediate:i=!0,immediateCallback:r=!1}=n;let o=null;const s=tt(!1);function a(){o&&(clearInterval(o),o=null)}function l(){s.value=!1,a()}function c(){const u=re(e);u<=0||(s.value=!0,r&&t(),a(),o=setInterval(t,u))}if(i&&vn&&c(),Yt(e)||typeof e=="function"){const u=$t(e,()=>{s.value&&vn&&c()});wi(u)}return wi(l),{isActive:s,pause:l,resume:c}}function b_(t=!1,e={}){const{truthyValue:n=!0,falsyValue:i=!1}=e,r=Yt(t),o=tt(t);function s(a){if(arguments.length)return o.value=a,o.value;{const l=re(n);return o.value=o.value===l?re(i):l,o.value}}return r?s:[o,s]}function xe(t){var e;const n=re(t);return(e=n==null?void 0:n.$el)!=null?e:n}const we=vn?window:void 0,x_=vn?window.document:void 0;function Pt(...t){let e,n,i,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,i,r]=t,e=we):[e,n,i,r]=t,!e)return vi;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const o=[],s=()=>{o.forEach(u=>u()),o.length=0},a=(u,h,f,d)=>(u.addEventListener(h,f,d),()=>u.removeEventListener(h,f,d)),l=$t(()=>[xe(e),re(r)],([u,h])=>{if(s(),!u)return;const f=Ps(h)?{...h}:h;o.push(...n.flatMap(d=>i.map(p=>a(u,d,p,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return wi(c),c}let pm=!1;function Sk(t,e,n={}){const{window:i=we,ignore:r=[],capture:o=!0,detectIframe:s=!1}=n;if(!i)return vi;pk&&!pm&&(pm=!0,Array.from(i.document.body.children).forEach(f=>f.addEventListener("click",vi)),i.document.documentElement.addEventListener("click",vi));let a=!0;const l=f=>r.some(d=>{if(typeof d=="string")return Array.from(i.document.querySelectorAll(d)).some(p=>p===f.target||f.composedPath().includes(p));{const p=xe(d);return p&&(f.target===p||f.composedPath().includes(p))}}),u=[Pt(i,"click",f=>{const d=xe(t);if(!(!d||d===f.target||f.composedPath().includes(d))){if(f.detail===0&&(a=!l(f)),!a){a=!0;return}e(f)}},{passive:!0,capture:o}),Pt(i,"pointerdown",f=>{const d=xe(t);a=!l(f)&&!!(d&&!f.composedPath().includes(d))},{passive:!0}),s&&Pt(i,"blur",f=>{setTimeout(()=>{var d;const p=xe(t);((d=i.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(p!=null&&p.contains(i.document.activeElement))&&e(f)},0)})].filter(Boolean);return()=>u.forEach(f=>f())}function kk(t){return typeof t=="function"?t:typeof t=="string"?e=>e.key===t:Array.isArray(t)?e=>t.includes(e.key):()=>!0}function Ak(...t){let e,n,i={};t.length===3?(e=t[0],n=t[1],i=t[2]):t.length===2?typeof t[1]=="object"?(e=!0,n=t[0],i=t[1]):(e=t[0],n=t[1]):(e=!0,n=t[0]);const{target:r=we,eventName:o="keydown",passive:s=!1,dedupe:a=!1}=i,l=kk(e);return Pt(r,o,u=>{u.repeat&&re(a)||l(u)&&n(u)},s)}function Ek(t={}){var e;const{window:n=we,deep:i=!0}=t,r=(e=t.document)!=null?e:n==null?void 0:n.document,o=()=>{var a;let l=r==null?void 0:r.activeElement;if(i)for(;l!=null&&l.shadowRoot;)l=(a=l==null?void 0:l.shadowRoot)==null?void 0:a.activeElement;return l},s=ck(()=>null,()=>o());return n&&(Pt(n,"blur",a=>{a.relatedTarget===null&&s.trigger()},!0),Pt(n,"focus",s.trigger,!0)),s}function $k(){const t=tt(!1);return Tn()&&Zr(()=>{t.value=!0}),t}function Lc(t){const e=$k();return A(()=>(e.value,!!t()))}function C_(t,e={}){const{immediate:n=!0,fpsLimit:i=void 0,window:r=we}=e,o=tt(!1),s=i?1e3/i:null;let a=0,l=null;function c(f){if(!o.value||!r)return;const d=f-(a||f);if(s&&d<s){l=r.requestAnimationFrame(c);return}t({delta:d,timestamp:f}),a=f,l=r.requestAnimationFrame(c)}function u(){!o.value&&r&&(o.value=!0,l=r.requestAnimationFrame(c))}function h(){o.value=!1,l!=null&&r&&(r.cancelAnimationFrame(l),l=null)}return n&&u(),wi(h),{isActive:Un(o),pause:h,resume:u}}function Sr(t,e={}){const{window:n=we}=e,i=Lc(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const o=tt(!1),s=c=>{o.value=c.matches},a=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",s):r.removeListener(s))},l=Xn(()=>{i.value&&(a(),r=n.matchMedia(re(t)),"addEventListener"in r?r.addEventListener("change",s):r.addListener(s),o.value=r.matches)});return wi(()=>{l(),a(),r=void 0}),o}const Lk={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function Ok(t,e={}){function n(a,l){let c=re(t[a]);return l!=null&&(c=_k(c,l)),typeof c=="number"&&(c=`${c}px`),c}const{window:i=we}=e;function r(a){return i?i.matchMedia(a).matches:!1}const o=a=>Sr(()=>`(min-width: ${n(a)})`,e),s=Object.keys(t).reduce((a,l)=>(Object.defineProperty(a,l,{get:()=>o(l),enumerable:!0,configurable:!0}),a),{});return Object.assign(s,{greater(a){return Sr(()=>`(min-width: ${n(a,.1)})`,e)},greaterOrEqual:o,smaller(a){return Sr(()=>`(max-width: ${n(a,-.1)})`,e)},smallerOrEqual(a){return Sr(()=>`(max-width: ${n(a)})`,e)},between(a,l){return Sr(()=>`(min-width: ${n(a)}) and (max-width: ${n(l,-.1)})`,e)},isGreater(a){return r(`(min-width: ${n(a,.1)})`)},isGreaterOrEqual(a){return r(`(min-width: ${n(a)})`)},isSmaller(a){return r(`(max-width: ${n(a,-.1)})`)},isSmallerOrEqual(a){return r(`(max-width: ${n(a)})`)},isInBetween(a,l){return r(`(min-width: ${n(a)}) and (max-width: ${n(l,-.1)})`)},current(){const a=Object.keys(t).map(l=>[l,o(l)]);return A(()=>a.filter(([,l])=>l.value).map(([l])=>l))}})}function Mk(t){return JSON.parse(JSON.stringify(t))}const Fa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ba="__vueuse_ssr_handlers__",Fk=Bk();function Bk(){return Ba in Fa||(Fa[Ba]=Fa[Ba]||{}),Fa[Ba]}function Ik(t,e){return Fk[t]||e}function Pk(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const Rk={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},mm="vueuse-storage";function Nk(t,e,n,i={}){var r;const{flush:o="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:h=we,eventFilter:f,onError:d=E=>{console.error(E)},initOnMounted:p}=i,g=(u?ti:tt)(typeof e=="function"?e():e);if(!n)try{n=Ik("getDefaultStorage",()=>{var E;return(E=we)==null?void 0:E.localStorage})()}catch(E){d(E)}if(!n)return g;const y=re(e),b=Pk(y),v=(r=i.serializer)!=null?r:Rk[b],{pause:_,resume:w}=xk(g,()=>S(g.value),{flush:o,deep:s,eventFilter:f});return h&&a&&fa(()=>{Pt(h,"storage",P),Pt(h,mm,C),p&&P()}),p||P(),g;function S(E){try{if(E==null)n.removeItem(t);else{const F=v.write(E),ot=n.getItem(t);ot!==F&&(n.setItem(t,F),h&&h.dispatchEvent(new CustomEvent(mm,{detail:{key:t,oldValue:ot,newValue:F,storageArea:n}})))}}catch(F){d(F)}}function B(E){const F=E?E.newValue:n.getItem(t);if(F==null)return l&&y!=null&&n.setItem(t,v.write(y)),y;if(!E&&c){const ot=v.read(F);return typeof c=="function"?c(ot,y):b==="object"&&!Array.isArray(ot)?{...y,...ot}:ot}else return typeof F!="string"?F:v.read(F)}function C(E){P(E.detail)}function P(E){if(!(E&&E.storageArea!==n)){if(E&&E.key==null){g.value=y;return}if(!(E&&E.key!==t)){_();try{(E==null?void 0:E.newValue)!==v.write(g.value)&&(g.value=B(E))}catch(F){d(F)}finally{E?ke(w):w()}}}}}function Dk(t){return Sr("(prefers-color-scheme: dark)",t)}function mW(t,e={}){var n,i;const{pointerTypes:r,preventDefault:o,stopPropagation:s,exact:a,onMove:l,onEnd:c,onStart:u,initialValue:h,axis:f="both",draggingElement:d=we,containerElement:p,handle:g=t}=e,y=tt((n=re(h))!=null?n:{x:0,y:0}),b=tt(),v=C=>r?r.includes(C.pointerType):!0,_=C=>{re(o)&&C.preventDefault(),re(s)&&C.stopPropagation()},w=C=>{var P;if(!v(C)||re(a)&&C.target!==re(t))return;const E=re(p),F=(P=E==null?void 0:E.getBoundingClientRect)==null?void 0:P.call(E),ot=re(t).getBoundingClientRect(),V={x:C.clientX-(E?ot.left-F.left+E.scrollLeft:ot.left),y:C.clientY-(E?ot.top-F.top+E.scrollTop:ot.top)};(u==null?void 0:u(V,C))!==!1&&(b.value=V,_(C))},S=C=>{var P;if(!v(C)||!b.value)return;const E=re(p),F=(P=E==null?void 0:E.getBoundingClientRect)==null?void 0:P.call(E),ot=re(t).getBoundingClientRect();let{x:V,y:W}=y.value;(f==="x"||f==="both")&&(V=C.clientX-b.value.x,E&&(V=Math.min(Math.max(0,V),F.width+E.scrollLeft-ot.width))),(f==="y"||f==="both")&&(W=C.clientY-b.value.y,E&&(W=Math.min(Math.max(0,W),F.height+E.scrollTop-ot.height))),y.value={x:V,y:W},l==null||l(y.value,C),_(C)},B=C=>{v(C)&&b.value&&(b.value=void 0,c==null||c(y.value,C),_(C))};if(vn){const C={capture:(i=e.capture)!=null?i:!0};Pt(g,"pointerdown",w,C),Pt(d,"pointermove",S,C),Pt(d,"pointerup",B,C)}return{...Ck(y),position:y,isDragging:A(()=>!!b.value),style:A(()=>`left:${y.value.x}px;top:${y.value.y}px;`)}}function jk(t,e,n={}){const{window:i=we,...r}=n;let o;const s=Lc(()=>i&&"ResizeObserver"in i),a=()=>{o&&(o.disconnect(),o=void 0)},l=A(()=>Array.isArray(t)?t.map(h=>xe(h)):[xe(t)]),c=$t(l,h=>{if(a(),s.value&&i){o=new ResizeObserver(e);for(const f of h)f&&o.observe(f,r)}},{immediate:!0,flush:"post",deep:!0}),u=()=>{a(),c()};return wi(u),{isSupported:s,stop:u}}function Hk(t,e={width:0,height:0},n={}){const{window:i=we,box:r="content-box"}=n,o=A(()=>{var h,f;return(f=(h=xe(t))==null?void 0:h.namespaceURI)==null?void 0:f.includes("svg")}),s=tt(e.width),a=tt(e.height),{stop:l}=jk(t,([h])=>{const f=r==="border-box"?h.borderBoxSize:r==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(i&&o.value){const d=xe(t);if(d){const p=i.getComputedStyle(d);s.value=Number.parseFloat(p.width),a.value=Number.parseFloat(p.height)}}else if(f){const d=Array.isArray(f)?f:[f];s.value=d.reduce((p,{inlineSize:g})=>p+g,0),a.value=d.reduce((p,{blockSize:g})=>p+g,0)}else s.value=h.contentRect.width,a.value=h.contentRect.height},n);fa(()=>{const h=xe(t);h&&(s.value="offsetWidth"in h?h.offsetWidth:e.width,a.value="offsetHeight"in h?h.offsetHeight:e.height)});const c=$t(()=>xe(t),h=>{s.value=h?e.width:0,a.value=h?e.height:0});function u(){l(),c()}return{width:s,height:a,stop:u}}function qk(t,e,n={}){const{root:i,rootMargin:r="0px",threshold:o=.1,window:s=we,immediate:a=!0}=n,l=Lc(()=>s&&"IntersectionObserver"in s),c=A(()=>{const p=re(t);return(Array.isArray(p)?p:[p]).map(xe).filter(fk)});let u=vi;const h=tt(a),f=l.value?$t(()=>[c.value,xe(i),h.value],([p,g])=>{if(u(),!h.value||!p.length)return;const y=new IntersectionObserver(e,{root:xe(g),rootMargin:r,threshold:o});p.forEach(b=>b&&y.observe(b)),u=()=>{y.disconnect(),u=vi}},{immediate:a,flush:"post"}):vi,d=()=>{u(),f(),h.value=!1};return wi(d),{isSupported:l,isActive:h,pause(){u(),h.value=!1},resume(){h.value=!0},stop:d}}const gm=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function zk(t,e={}){const{document:n=x_,autoExit:i=!1}=e,r=A(()=>{var b;return(b=xe(t))!=null?b:n==null?void 0:n.querySelector("html")}),o=tt(!1),s=A(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(b=>n&&b in n||r.value&&b in r.value)),a=A(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(b=>n&&b in n||r.value&&b in r.value)),l=A(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(b=>n&&b in n||r.value&&b in r.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(b=>n&&b in n),u=Lc(()=>r.value&&n&&s.value!==void 0&&a.value!==void 0&&l.value!==void 0),h=()=>c?(n==null?void 0:n[c])===r.value:!1,f=()=>{if(l.value){if(n&&n[l.value]!=null)return n[l.value];{const b=r.value;if((b==null?void 0:b[l.value])!=null)return!!b[l.value]}}return!1};async function d(){if(!(!u.value||!o.value)){if(a.value)if((n==null?void 0:n[a.value])!=null)await n[a.value]();else{const b=r.value;(b==null?void 0:b[a.value])!=null&&await b[a.value]()}o.value=!1}}async function p(){if(!u.value||o.value)return;f()&&await d();const b=r.value;s.value&&(b==null?void 0:b[s.value])!=null&&(await b[s.value](),o.value=!0)}async function g(){await(o.value?d():p())}const y=()=>{const b=f();(!b||b&&h())&&(o.value=b)};return Pt(n,gm,y,!1),Pt(()=>xe(r),gm,y,!1),i&&wi(d),{isSupported:u,isFullscreen:o,enter:p,exit:d,toggle:g}}function ln(t,e,n={}){const{window:i=we}=n;return Nk(t,e,i==null?void 0:i.localStorage,n)}const Vk={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function Wk(t={}){const{reactive:e=!1,target:n=we,aliasMap:i=Vk,passive:r=!0,onEventFired:o=vi}=t,s=zt(new Set),a={toJSON(){return{}},current:s},l=e?zt(a):a,c=new Set,u=new Set;function h(g,y){g in l&&(e?l[g]=y:l[g].value=y)}function f(){s.clear();for(const g of u)h(g,!1)}function d(g,y){var b,v;const _=(b=g.key)==null?void 0:b.toLowerCase(),S=[(v=g.code)==null?void 0:v.toLowerCase(),_].filter(Boolean);_&&(y?s.add(_):s.delete(_));for(const B of S)u.add(B),h(B,y);_==="meta"&&!y?(c.forEach(B=>{s.delete(B),h(B,!1)}),c.clear()):typeof g.getModifierState=="function"&&g.getModifierState("Meta")&&y&&[...s,...S].forEach(B=>c.add(B))}Pt(n,"keydown",g=>(d(g,!0),o(g)),{passive:r}),Pt(n,"keyup",g=>(d(g,!1),o(g)),{passive:r}),Pt("blur",f,{passive:!0}),Pt("focus",f,{passive:!0});const p=new Proxy(l,{get(g,y,b){if(typeof y!="string")return Reflect.get(g,y,b);if(y=y.toLowerCase(),y in i&&(y=i[y]),!(y in l))if(/[+_-]/.test(y)){const _=y.split(/[+_-]/g).map(w=>w.trim());l[y]=A(()=>_.every(w=>re(p[w])))}else l[y]=tt(!1);const v=Reflect.get(g,y,b);return e?re(v):v}});return p}const Uk={page:t=>[t.pageX,t.pageY],client:t=>[t.clientX,t.clientY],screen:t=>[t.screenX,t.screenY],movement:t=>t instanceof Touch?null:[t.movementX,t.movementY]};function gW(t={}){const{type:e="page",touch:n=!0,resetOnTouchEnds:i=!1,initialValue:r={x:0,y:0},window:o=we,target:s=o,scroll:a=!0,eventFilter:l}=t;let c=null;const u=tt(r.x),h=tt(r.y),f=tt(null),d=typeof e=="function"?e:Uk[e],p=S=>{const B=d(S);c=S,B&&([u.value,h.value]=B,f.value="mouse")},g=S=>{if(S.touches.length>0){const B=d(S.touches[0]);B&&([u.value,h.value]=B,f.value="touch")}},y=()=>{if(!c||!o)return;const S=d(c);c instanceof MouseEvent&&S&&(u.value=S[0]+o.scrollX,h.value=S[1]+o.scrollY)},b=()=>{u.value=r.x,h.value=r.y},v=l?S=>l(()=>p(S),{}):S=>p(S),_=l?S=>l(()=>g(S),{}):S=>g(S),w=l?()=>l(()=>y(),{}):()=>y();if(s){const S={passive:!0};Pt(s,["mousemove","dragover"],v,S),n&&e!=="movement"&&(Pt(s,["touchstart","touchmove"],_,S),i&&Pt(s,"touchend",b,S)),a&&e==="page"&&Pt(o,"scroll",w,{passive:!0})}return{x:u,y:h,sourceType:f}}function Yk(t,e={}){const n=vk(t),{threshold:i=50,onSwipe:r,onSwipeEnd:o,onSwipeStart:s,disableTextSelect:a=!1}=e,l=zt({x:0,y:0}),c=(C,P)=>{l.x=C,l.y=P},u=zt({x:0,y:0}),h=(C,P)=>{u.x=C,u.y=P},f=A(()=>l.x-u.x),d=A(()=>l.y-u.y),{max:p,abs:g}=Math,y=A(()=>p(g(f.value),g(d.value))>=i),b=tt(!1),v=tt(!1),_=A(()=>y.value?g(f.value)>g(d.value)?f.value>0?"left":"right":d.value>0?"up":"down":"none"),w=C=>{var P,E,F;const ot=C.buttons===0,V=C.buttons===1;return(F=(E=(P=e.pointerTypes)==null?void 0:P.includes(C.pointerType))!=null?E:ot||V)!=null?F:!0},S=[Pt(t,"pointerdown",C=>{if(!w(C))return;v.value=!0;const P=C.target;P==null||P.setPointerCapture(C.pointerId);const{clientX:E,clientY:F}=C;c(E,F),h(E,F),s==null||s(C)}),Pt(t,"pointermove",C=>{if(!w(C)||!v.value)return;const{clientX:P,clientY:E}=C;h(P,E),!b.value&&y.value&&(b.value=!0),b.value&&(r==null||r(C))}),Pt(t,"pointerup",C=>{w(C)&&(b.value&&(o==null||o(C,_.value)),v.value=!1,b.value=!1)})];fa(()=>{var C,P,E,F,ot,V,W,N;(P=(C=n.value)==null?void 0:C.style)==null||P.setProperty("touch-action","none"),a&&((F=(E=n.value)==null?void 0:E.style)==null||F.setProperty("-webkit-user-select","none"),(V=(ot=n.value)==null?void 0:ot.style)==null||V.setProperty("-ms-user-select","none"),(N=(W=n.value)==null?void 0:W.style)==null||N.setProperty("user-select","none"))});const B=()=>S.forEach(C=>C());return{isSwiping:Un(b),direction:Un(_),posStart:Un(l),posEnd:Un(u),distanceX:f,distanceY:d,stop:B}}let Gk=0;function yW(t,e={}){const n=tt(!1),{document:i=x_,immediate:r=!0,manual:o=!1,id:s=`vueuse_styletag_${++Gk}`}=e,a=tt(t);let l=()=>{};const c=()=>{if(!i)return;const h=i.getElementById(s)||i.createElement("style");h.isConnected||(h.id=s,e.media&&(h.media=e.media),i.head.appendChild(h)),!n.value&&(l=$t(a,f=>{h.textContent=f},{immediate:!0}),n.value=!0)},u=()=>{!i||!n.value||(l(),i.head.removeChild(i.getElementById(s)),n.value=!1)};return r&&!o&&fa(c),o||wi(u),{id:s,css:a,unload:u,load:c,isLoaded:Un(n)}}function _W(t={}){const{controls:e=!1,offset:n=0,immediate:i=!0,interval:r="requestAnimationFrame",callback:o}=t,s=tt(Ch()+n),a=()=>s.value=Ch()+n,l=o?()=>{a(),o(s.value)}:a,c=r==="requestAnimationFrame"?C_(l,{immediate:i}):Tk(l,r,{immediate:i});return e?{timestamp:s,...c}:s}function Yn(t,e,n,i={}){var r,o,s;const{clone:a=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:h,shouldEmit:f}=i,d=Tn(),p=n||(d==null?void 0:d.emit)||((r=d==null?void 0:d.$emit)==null?void 0:r.bind(d))||((s=(o=d==null?void 0:d.proxy)==null?void 0:o.$emit)==null?void 0:s.bind(d==null?void 0:d.proxy));let g=c;e||(e="modelValue"),g=g||`update:${e.toString()}`;const y=_=>a?typeof a=="function"?a(_):Mk(_):_,b=()=>hk(t[e])?y(t[e]):h,v=_=>{f?f(_)&&p(g,_):p(g,_)};if(l){const _=b(),w=tt(_);let S=!1;return $t(()=>t[e],B=>{S||(S=!0,w.value=y(B),ke(()=>S=!1))}),$t(w,B=>{!S&&(B!==t[e]||u)&&v(B)},{deep:u}),w}else return A({get(){return b()},set(_){v(_)}})}function vW(t={}){const{window:e=we}=t;if(!e)return tt(!1);const n=tt(e.document.hasFocus());return Pt(e,"blur",()=>{n.value=!1}),Pt(e,"focus",()=>{n.value=!0}),n}function Kk(t={}){const{window:e=we,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:r=!0,includeScrollbar:o=!0}=t,s=tt(n),a=tt(i),l=()=>{e&&(o?(s.value=e.innerWidth,a.value=e.innerHeight):(s.value=e.document.documentElement.clientWidth,a.value=e.document.documentElement.clientHeight))};if(l(),fa(l),Pt("resize",l,{passive:!0}),r){const c=Sr("(orientation: portrait)");$t(c,()=>l())}return{width:s,height:a}}function Xk(){return w_().__VUE_DEVTOOLS_GLOBAL_HOOK__}function w_(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Zk=typeof Proxy=="function",Jk="devtools-plugin:setup",Qk="plugin:settings:set";let so,wh;function tA(){var t;return so!==void 0||(typeof window<"u"&&window.performance?(so=!0,wh=window.performance):typeof global<"u"&&(!((t=global.perf_hooks)===null||t===void 0)&&t.performance)?(so=!0,wh=global.perf_hooks.performance):so=!1),so}function eA(){return tA()?wh.now():Date.now()}class nA{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const i={};if(e.settings)for(const s in e.settings){const a=e.settings[s];i[s]=a.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},i);try{const s=localStorage.getItem(r),a=JSON.parse(s);Object.assign(o,a)}catch{}this.fallbacks={getSettings(){return o},setSettings(s){try{localStorage.setItem(r,JSON.stringify(s))}catch{}o=s},now(){return eA()}},n&&n.on(Qk,(s,a)=>{s===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(s,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(s,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:a,args:l,resolve:c})})})}async setRealTarget(e){this.target=e;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function iA(t,e){const n=t,i=w_(),r=Xk(),o=Zk&&n.enableEarlyProxy;if(r&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))r.emit(Jk,t,e);else{const s=o?new nA(n,r):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:s}),s&&e(s.proxiedTarget)}}/*!
* vue-router v4.2.5
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/const gi=typeof window<"u";function rA(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Gt=Object.assign;function xu(t,e){const n={};for(const i in e){const r=e[i];n[i]=sn(r)?r.map(t):t(r)}return n}const _s=()=>{},sn=Array.isArray;function qt(t){const e=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+t].concat(e))}const oA=/\/$/,sA=t=>t.replace(oA,"");function Cu(t,e,n="/"){let i,r={},o="",s="";const a=e.indexOf("#");let l=e.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(i=e.slice(0,l),o=e.slice(l+1,a>-1?a:e.length),r=t(o)),a>-1&&(i=i||e.slice(0,a),s=e.slice(a,e.length)),i=cA(i??e,n),{fullPath:i+(o&&"?")+o+s,path:i,query:r,hash:s}}function aA(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function ym(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function _m(t,e,n){const i=e.matched.length-1,r=n.matched.length-1;return i>-1&&i===r&&sr(e.matched[i],n.matched[r])&&T_(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function sr(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function T_(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!lA(t[n],e[n]))return!1;return!0}function lA(t,e){return sn(t)?vm(t,e):sn(e)?vm(e,t):t===e}function vm(t,e){return sn(e)?t.length===e.length&&t.every((n,i)=>n===e[i]):t.length===1&&t[0]===e}function cA(t,e){if(t.startsWith("/"))return t;if(!e.startsWith("/"))return qt(`Cannot resolve a relative location without an absolute path. Trying to resolve "${t}" from "${e}". It should look like "/${e}".`),t;if(!t)return e;const n=e.split("/"),i=t.split("/"),r=i[i.length-1];(r===".."||r===".")&&i.push("");let o=n.length-1,s,a;for(s=0;s<i.length;s++)if(a=i[s],a!==".")if(a==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+i.slice(s-(s===i.length?1:0)).join("/")}var Rs;(function(t){t.pop="pop",t.push="push"})(Rs||(Rs={}));var vs;(function(t){t.back="back",t.forward="forward",t.unknown=""})(vs||(vs={}));function uA(t){if(!t)if(gi){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),sA(t)}const hA=/^[^#]+#/;function fA(t,e){return t.replace(hA,"#")+e}function dA(t,e){const n=document.documentElement.getBoundingClientRect(),i=t.getBoundingClientRect();return{behavior:e.behavior,left:i.left-n.left-(e.left||0),top:i.top-n.top-(e.top||0)}}const Oc=()=>({left:window.pageXOffset,top:window.pageYOffset});function pA(t){let e;if("el"in t){const n=t.el,i=typeof n=="string"&&n.startsWith("#");if(typeof t.el=="string"&&(!i||!document.getElementById(t.el.slice(1))))try{const o=document.querySelector(t.el);if(i&&o){qt(`The selector "${t.el}" should be passed as "el: document.querySelector('${t.el}')" because it starts with "#".`);return}}catch{qt(`The selector "${t.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const r=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r){qt(`Couldn't find element using selector "${t.el}" returned by scrollBehavior.`);return}e=dA(r,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function bm(t,e){return(history.state?history.state.position-e:-1)+t}const Th=new Map;function mA(t,e){Th.set(t,e)}function gA(t){const e=Th.get(t);return Th.delete(t),e}let yA=()=>location.protocol+"//"+location.host;function S_(t,e){const{pathname:n,search:i,hash:r}=e,o=t.indexOf("#");if(o>-1){let a=r.includes(t.slice(o))?t.slice(o).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),ym(l,"")}return ym(n,t)+i+r}function _A(t,e,n,i){let r=[],o=[],s=null;const a=({state:f})=>{const d=S_(t,location),p=n.value,g=e.value;let y=0;if(f){if(n.value=d,e.value=f,s&&s===p){s=null;return}y=g?f.position-g.position:0}else i(d);r.forEach(b=>{b(n.value,p,{delta:y,type:Rs.pop,direction:y?y>0?vs.forward:vs.back:vs.unknown})})};function l(){s=n.value}function c(f){r.push(f);const d=()=>{const p=r.indexOf(f);p>-1&&r.splice(p,1)};return o.push(d),d}function u(){const{history:f}=window;f.state&&f.replaceState(Gt({},f.state,{scroll:Oc()}),"")}function h(){for(const f of o)f();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:h}}function xm(t,e,n,i=!1,r=!1){return{back:t,current:e,forward:n,replaced:i,position:window.history.length,scroll:r?Oc():null}}function vA(t){const{history:e,location:n}=window,i={value:S_(t,n)},r={value:e.state};r.value||o(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const h=t.indexOf("#"),f=h>-1?(n.host&&document.querySelector("base")?t:t.slice(h))+l:yA()+t+l;try{e[u?"replaceState":"pushState"](c,"",f),r.value=c}catch(d){qt("Error with push/replace State",d),n[u?"replace":"assign"](f)}}function s(l,c){const u=Gt({},e.state,xm(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});o(l,u,!0),i.value=l}function a(l,c){const u=Gt({},r.value,e.state,{forward:l,scroll:Oc()});e.state||qt(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
history.replaceState(history.state, '', url)
You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),o(u.current,u,!0);const h=Gt({},xm(i.value,l,null),{position:u.position+1},c);o(l,h,!1),i.value=l}return{location:i,state:r,push:a,replace:s}}function bA(t){t=uA(t);const e=vA(t),n=_A(t,e.state,e.location,e.replace);function i(o,s=!0){s||n.pauseListeners(),history.go(o)}const r=Gt({location:"",base:t,go:i,createHref:fA.bind(null,t)},e,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>e.state.value}),r}function xA(t){return typeof t=="string"||t&&typeof t=="object"}function k_(t){return typeof t=="string"||typeof t=="symbol"}const Ii={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},A_=Symbol("navigation failure");var Cm;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Cm||(Cm={}));const CA={1({location:t,currentLocation:e}){return`No match for
${JSON.stringify(t)}${e?`
while being at
`+JSON.stringify(e):""}`},2({from:t,to:e}){return`Redirected from "${t.fullPath}" to "${TA(e)}" via a navigation guard.`},4({from:t,to:e}){return`Navigation aborted from "${t.fullPath}" to "${e.fullPath}" via a navigation guard.`},8({from:t,to:e}){return`Navigation cancelled from "${t.fullPath}" to "${e.fullPath}" with a new navigation.`},16({from:t,to:e}){return`Avoided redundant navigation to current location: "${t.fullPath}".`}};function Eo(t,e){return Gt(new Error(CA[t](e)),{type:t,[A_]:!0},e)}function si(t,e){return t instanceof Error&&A_ in t&&(e==null||!!(t.type&e))}const wA=["params","query","hash"];function TA(t){if(typeof t=="string")return t;if("path"in t)return t.path;const e={};for(const n of wA)n in t&&(e[n]=t[n]);return JSON.stringify(e,null,2)}const wm="[^/]+?",SA={sensitive:!1,strict:!1,start:!0,end:!0},kA=/[.+*?^${}()[\]/\\]/g;function AA(t,e){const n=Gt({},SA,e),i=[];let r=n.start?"^":"";const o=[];for(const c of t){const u=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let h=0;h<c.length;h++){const f=c[h];let d=40+(n.sensitive?.25:0);if(f.type===0)h||(r+="/"),r+=f.value.replace(kA,"\\$&"),d+=40;else if(f.type===1){const{value:p,repeatable:g,optional:y,regexp:b}=f;o.push({name:p,repeatable:g,optional:y});const v=b||wm;if(v!==wm){d+=10;try{new RegExp(`(${v})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${p}" (${v}): `+w.message)}}let _=g?`((?:${v})(?:/(?:${v}))*)`:`(${v})`;h||(_=y&&c.length<2?`(?:/${_})`:"/"+_),y&&(_+="?"),r+=_,d+=20,y&&(d+=-8),g&&(d+=-20),v===".*"&&(d+=-50)}u.push(d)}i.push(u)}if(n.strict&&n.end){const c=i.length-1;i[c][i[c].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const s=new RegExp(r,n.sensitive?"":"i");function a(c){const u=c.match(s),h={};if(!u)return null;for(let f=1;f<u.length;f++){const d=u[f]||"",p=o[f-1];h[p.name]=d&&p.repeatable?d.split("/"):d}return h}function l(c){let u="",h=!1;for(const f of t){(!h||!u.endsWith("/"))&&(u+="/"),h=!1;for(const d of f)if(d.type===0)u+=d.value;else if(d.type===1){const{value:p,repeatable:g,optional:y}=d,b=p in c?c[p]:"";if(sn(b)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const v=sn(b)?b.join("/"):b;if(!v)if(y)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):h=!0);else throw new Error(`Missing required param "${p}"`);u+=v}}return u||"/"}return{re:s,score:i,keys:o,parse:a,stringify:l}}function EA(t,e){let n=0;for(;n<t.length&&n<e.length;){const i=e[n]-t[n];if(i)return i;n++}return t.length<e.length?t.length===1&&t[0]===80?-1:1:t.length>e.length?e.length===1&&e[0]===80?1:-1:0}function $A(t,e){let n=0;const i=t.score,r=e.score;for(;n<i.length&&n<r.length;){const o=EA(i[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-i.length)===1){if(Tm(i))return 1;if(Tm(r))return-1}return r.length-i.length}function Tm(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const LA={type:0,value:""},OA=/[a-zA-Z0-9_]/;function MA(t){if(!t)return[[]];if(t==="/")return[[LA]];if(!t.startsWith("/"))throw new Error(`Route paths should start with a "/": "${t}" should be "/${t}".`);function e(d){throw new Error(`ERR (${n})/"${c}": ${d}`)}let n=0,i=n;const r=[];let o;function s(){o&&r.push(o),o=[]}let a=0,l,c="",u="";function h(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a<t.length;){if(l=t[a++],l==="\\"&&n!==2){i=n,n=4;continue}switch(n){case 0:l==="/"?(c&&h(),s()):l===":"?(h(),n=1):f();break;case 4:f(),n=i;break;case 1:l==="("?n=2:OA.test(l)?f():(h(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=3:u+=l;break;case 3:h(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${c}"`),h(),s(),r}function FA(t,e,n){const i=AA(MA(t.path),n);{const o=new Set;for(const s of i.keys)o.has(s.name)&&qt(`Found duplicated params with name "${s.name}" for path "${t.path}". Only the last one will be available on "$route.params".`),o.add(s.name)}const r=Gt(i,{record:t,parent:e,children:[],alias:[]});return e&&!r.record.aliasOf==!e.record.aliasOf&&e.children.push(r),r}function BA(t,e){const n=[],i=new Map;e=Am({strict:!1,end:!0,sensitive:!1},e);function r(u){return i.get(u)}function o(u,h,f){const d=!f,p=IA(u);DA(p,h),p.aliasOf=f&&f.record;const g=Am(e,u),y=[p];if("alias"in u){const _=typeof u.alias=="string"?[u.alias]:u.alias;for(const w of _)y.push(Gt({},p,{components:f?f.record.components:p.components,path:w,aliasOf:f?f.record:p}))}let b,v;for(const _ of y){const{path:w}=_;if(h&&w[0]!=="/"){const S=h.record.path,B=S[S.length-1]==="/"?"":"/";_.path=h.record.path+(w&&B+w)}if(_.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(b=FA(_,h,g),h&&w[0]==="/"&&jA(b,h),f?(f.alias.push(b),NA(f,b)):(v=v||b,v!==b&&v.alias.push(b),d&&u.name&&!km(b)&&s(u.name)),p.children){const S=p.children;for(let B=0;B<S.length;B++)o(S[B],b,f&&f.children[B])}f=f||b,(b.record.components&&Object.keys(b.record.components).length||b.record.name||b.record.redirect)&&l(b)}return v?()=>{s(v)}:_s}function s(u){if(k_(u)){const h=i.get(u);h&&(i.delete(u),n.splice(n.indexOf(h),1),h.children.forEach(s),h.alias.forEach(s))}else{const h=n.indexOf(u);h>-1&&(n.splice(h,1),u.record.name&&i.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function a(){return n}function l(u){let h=0;for(;h<n.length&&$A(u,n[h])>=0&&(u.record.path!==n[h].record.path||!E_(u,n[h]));)h++;n.splice(h,0,u),u.record.name&&!km(u)&&i.set(u.record.name,u)}function c(u,h){let f,d={},p,g;if("name"in u&&u.name){if(f=i.get(u.name),!f)throw Eo(1,{location:u});{const v=Object.keys(u.params||{}).filter(_=>!f.keys.find(w=>w.name===_));v.length&&qt(`Discarded invalid param(s) "${v.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}g=f.record.name,d=Gt(Sm(h.params,f.keys.filter(v=>!v.optional).map(v=>v.name)),u.params&&Sm(u.params,f.keys.map(v=>v.name))),p=f.stringify(d)}else if("path"in u)p=u.path,p.startsWith("/")||qt(`The Matcher cannot resolve relative paths but received "${p}". Unless you directly called \`matcher.resolve("${p}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),f=n.find(v=>v.re.test(p)),f&&(d=f.parse(p),g=f.record.name);else{if(f=h.name?i.get(h.name):n.find(v=>v.re.test(h.path)),!f)throw Eo(1,{location:u,currentLocation:h});g=f.record.name,d=Gt({},h.params,u.params),p=f.stringify(d)}const y=[];let b=f;for(;b;)y.unshift(b.record),b=b.parent;return{name:g,path:p,params:d,matched:y,meta:RA(y)}}return t.forEach(u=>o(u)),{addRoute:o,resolve:c,removeRoute:s,getRoutes:a,getRecordMatcher:r}}function Sm(t,e){const n={};for(const i of e)i in t&&(n[i]=t[i]);return n}function IA(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:PA(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function PA(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const i in t.components)e[i]=typeof n=="object"?n[i]:n;return e}function km(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function RA(t){return t.reduce((e,n)=>Gt(e,n.meta),{})}function Am(t,e){const n={};for(const i in t)n[i]=i in e?e[i]:t[i];return n}function Sh(t,e){return t.name===e.name&&t.optional===e.optional&&t.repeatable===e.repeatable}function NA(t,e){for(const n of t.keys)if(!n.optional&&!e.keys.find(Sh.bind(null,n)))return qt(`Alias "${e.record.path}" and the original record: "${t.record.path}" must have the exact same param named "${n.name}"`);for(const n of e.keys)if(!n.optional&&!t.keys.find(Sh.bind(null,n)))return qt(`Alias "${e.record.path}" and the original record: "${t.record.path}" must have the exact same param named "${n.name}"`)}function DA(t,e){e&&e.record.name&&!t.name&&!t.path&&qt(`The route named "${String(e.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function jA(t,e){for(const n of e.keys)if(!t.keys.find(Sh.bind(null,n)))return qt(`Absolute path "${t.record.path}" must have the exact same param named "${n.name}" as its parent "${e.record.path}".`)}function E_(t,e){return e.children.some(n=>n===t||E_(t,n))}const $_=/#/g,HA=/&/g,qA=/\//g,zA=/=/g,VA=/\?/g,L_=/\+/g,WA=/%5B/g,UA=/%5D/g,O_=/%5E/g,YA=/%60/g,M_=/%7B/g,GA=/%7C/g,F_=/%7D/g,KA=/%20/g;function ed(t){return encodeURI(""+t).replace(GA,"|").replace(WA,"[").replace(UA,"]")}function XA(t){return ed(t).replace(M_,"{").replace(F_,"}").replace(O_,"^")}function kh(t){return ed(t).replace(L_,"%2B").replace(KA,"+").replace($_,"%23").replace(HA,"%26").replace(YA,"`").replace(M_,"{").replace(F_,"}").replace(O_,"^")}function ZA(t){return kh(t).replace(zA,"%3D")}function JA(t){return ed(t).replace($_,"%23").replace(VA,"%3F")}function QA(t){return t==null?"":JA(t).replace(qA,"%2F")}function Ns(t){try{return decodeURIComponent(""+t)}catch{qt(`Error decoding "${t}". Using original value`)}return""+t}function tE(t){const e={};if(t===""||t==="?")return e;const i=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;r<i.length;++r){const o=i[r].replace(L_," "),s=o.indexOf("="),a=Ns(s<0?o:o.slice(0,s)),l=s<0?null:Ns(o.slice(s+1));if(a in e){let c=e[a];sn(c)||(c=e[a]=[c]),c.push(l)}else e[a]=l}return e}function Em(t){let e="";for(let n in t){const i=t[n];if(n=ZA(n),i==null){i!==void 0&&(e+=(e.length?"&":"")+n);continue}(sn(i)?i.map(o=>o&&kh(o)):[i&&kh(i)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+n,o!=null&&(e+="="+o))})}return e}function eE(t){const e={};for(const n in t){const i=t[n];i!==void 0&&(e[n]=sn(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return e}const nE=Symbol("router view location matched"),$m=Symbol("router view depth"),Mc=Symbol("router"),B_=Symbol("route location"),Ah=Symbol("router view location");function Xo(){let t=[];function e(i){return t.push(i),()=>{const r=t.indexOf(i);r>-1&&t.splice(r,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function qi(t,e,n,i,r){const o=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise((s,a)=>{const l=h=>{h===!1?a(Eo(4,{from:n,to:e})):h instanceof Error?a(h):xA(h)?a(Eo(2,{from:e,to:h})):(o&&i.enterCallbacks[r]===o&&typeof h=="function"&&o.push(h),s())},c=t.call(i&&i.instances[r],e,n,iE(l,e,n));let u=Promise.resolve(c);if(t.length<3&&(u=u.then(l)),t.length>2){const h=`The "next" callback was never called inside of ${t.name?'"'+t.name+'"':""}:
${t.toString()}
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof c=="object"&&"then"in c)u=u.then(f=>l._called?f:(qt(h),Promise.reject(new Error("Invalid navigation guard"))));else if(c!==void 0&&!l._called){qt(h),a(new Error("Invalid navigation guard"));return}}u.catch(h=>a(h))})}function iE(t,e,n){let i=0;return function(){i++===1&&qt(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${e.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),t._called=!0,i===1&&t.apply(null,arguments)}}function wu(t,e,n,i){const r=[];for(const o of t){!o.components&&!o.children.length&&qt(`Record with path "${o.path}" is either missing a "component(s)" or "children" property.`);for(const s in o.components){let a=o.components[s];{if(!a||typeof a!="object"&&typeof a!="function")throw qt(`Component "${s}" in record with path "${o.path}" is not a valid component. Received "${String(a)}".`),new Error("Invalid route component");if("then"in a){qt(`Component "${s}" in record with path "${o.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const l=a;a=()=>l}else a.__asyncLoader&&!a.__warnedDefineAsync&&(a.__warnedDefineAsync=!0,qt(`Component "${s}" in record with path "${o.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(e!=="beforeRouteEnter"&&!o.instances[s]))if(rE(a)){const c=(a.__vccOpts||a)[e];c&&r.push(qi(c,n,i,o,s))}else{let l=a();"catch"in l||(qt(`Component "${s}" in record with path "${o.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),l=Promise.resolve(l)),r.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${o.path}"`));const u=rA(c)?c.default:c;o.components[s]=u;const f=(u.__vccOpts||u)[e];return f&&qi(f,n,i,o,s)()}))}}}return r}function rE(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function Lm(t){const e=kt(Mc),n=kt(B_),i=A(()=>e.resolve(O(t.to))),r=A(()=>{const{matched:l}=i.value,{length:c}=l,u=l[c-1],h=n.matched;if(!u||!h.length)return-1;const f=h.findIndex(sr.bind(null,u));if(f>-1)return f;const d=Om(l[c-2]);return c>1&&Om(u)===d&&h[h.length-1].path!==d?h.findIndex(sr.bind(null,l[c-2])):f}),o=A(()=>r.value>-1&&lE(n.params,i.value.params)),s=A(()=>r.value>-1&&r.value===n.matched.length-1&&T_(n.params,i.value.params));function a(l={}){return aE(l)?e[O(t.replace)?"replace":"push"](O(t.to)).catch(_s):Promise.resolve()}if(gi){const l=Tn();if(l){const c={route:i.value,isActive:o.value,isExactActive:s.value};l.__vrl_devtools=l.__vrl_devtools||[],l.__vrl_devtools.push(c),Xn(()=>{c.route=i.value,c.isActive=o.value,c.isExactActive=s.value},{flush:"post"})}}return{route:i,href:A(()=>i.value.href),isActive:o,isExactActive:s,navigate:a}}const oE=jt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Lm,setup(t,{slots:e}){const n=zt(Lm(t)),{options:i}=kt(Mc),r=A(()=>({[Mm(t.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Mm(t.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=e.default&&e.default(n);return t.custom?o:Ze("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),sE=oE;function aE(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function lE(t,e){for(const n in e){const i=e[n],r=t[n];if(typeof i=="string"){if(i!==r)return!1}else if(!sn(r)||r.length!==i.length||i.some((o,s)=>o!==r[s]))return!1}return!0}function Om(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Mm=(t,e,n)=>t??e??n,cE=jt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){hE();const i=kt(Ah),r=A(()=>t.route||i.value),o=kt($m,0),s=A(()=>{let c=O(o);const{matched:u}=r.value;let h;for(;(h=u[c])&&!h.components;)c++;return c}),a=A(()=>r.value.matched[s.value]);de($m,A(()=>s.value+1)),de(nE,a),de(Ah,r);const l=tt();return $t(()=>[l.value,a.value,t.name],([c,u,h],[f,d,p])=>{u&&(u.instances[h]=c,d&&d!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),c&&u&&(!d||!sr(u,d)||!f)&&(u.enterCallbacks[h]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=r.value,u=t.name,h=a.value,f=h&&h.components[u];if(!f)return Fm(n.default,{Component:f,route:c});const d=h.props[u],p=d?d===!0?c.params:typeof d=="function"?d(c):d:null,y=Ze(f,Gt({},p,e,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(h.instances[u]=null)},ref:l}));if(gi&&y.ref){const b={depth:s.value,name:h.name,path:h.path,meta:h.meta};(sn(y.ref)?y.ref.map(_=>_.i):[y.ref.i]).forEach(_=>{_.__vrv_devtools=b})}return Fm(n.default,{Component:y,route:c})||y}}});function Fm(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const uE=cE;function hE(){const t=Tn(),e=t.parent&&t.parent.type.name,n=t.parent&&t.parent.subTree&&t.parent.subTree.type;if(e&&(e==="KeepAlive"||e.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const i=e==="KeepAlive"?"keep-alive":"transition";qt(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
Use slot props instead:
<router-view v-slot="{ Component }">
<${i}>
<component :is="Component" />
</${i}>
</router-view>`)}}function Zo(t,e){const n=Gt({},t,{matched:t.matched.map(i=>bE(i,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:t.fullPath,tooltip:e,value:n}}}function Ia(t){return{_custom:{display:t}}}let fE=0;function dE(t,e,n){if(e.__hasDevtools)return;e.__hasDevtools=!0;const i=fE++;iA({id:"org.vuejs.router"+(i?"."+i:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:t},r=>{typeof r.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),r.on.inspectComponent((u,h)=>{u.instanceData&&u.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Zo(e.currentRoute.value,"Current Route")})}),r.on.visitComponentTree(({treeNode:u,componentInstance:h})=>{if(h.__vrv_devtools){const f=h.__vrv_devtools;u.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:I_})}sn(h.__vrl_devtools)&&(h.__devtoolsApi=r,h.__vrl_devtools.forEach(f=>{let d=N_,p="";f.isExactActive?(d=R_,p="This is exactly active"):f.isActive&&(d=P_,p="This link is active"),u.tags.push({label:f.route.path,textColor:0,tooltip:p,backgroundColor:d})}))}),$t(e.currentRoute,()=>{l(),r.notifyComponentUpdate(),r.sendInspectorTree(a),r.sendInspectorState(a)});const o="router:navigations:"+i;r.addTimelineLayer({id:o,label:`Router${i?" "+i:""} Navigations`,color:4237508}),e.onError((u,h)=>{r.addTimelineEvent({layerId:o,event:{title:"Error during Navigation",subtitle:h.fullPath,logType:"error",time:r.now(),data:{error:u},groupId:h.meta.__navigationId}})});let s=0;e.beforeEach((u,h)=>{const f={guard:Ia("beforeEach"),from:Zo(h,"Current Location during this navigation"),to:Zo(u,"Target location")};Object.defineProperty(u.meta,"__navigationId",{value:s++}),r.addTimelineEvent({layerId:o,event:{time:r.now(),title:"Start of navigation",subtitle:u.fullPath,data:f,groupId:u.meta.__navigationId}})}),e.afterEach((u,h,f)=>{const d={guard:Ia("afterEach")};f?(d.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},d.status=Ia("❌")):d.status=Ia("✅"),d.from=Zo(h,"Current Location during this navigation"),d.to=Zo(u,"Target location"),r.addTimelineEvent({layerId:o,event:{title:"End of navigation",subtitle:u.fullPath,time:r.now(),data:d,logType:f?"warning":"default",groupId:u.meta.__navigationId}})});const a="router-inspector:"+i;r.addInspector({id:a,label:"Routes"+(i?" "+i:""),icon:"book",treeFilterPlaceholder:"Search routes"});function l(){if(!c)return;const u=c;let h=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);h.forEach(H_),u.filter&&(h=h.filter(f=>Eh(f,u.filter.toLowerCase()))),h.forEach(f=>j_(f,e.currentRoute.value)),u.rootNodes=h.map(D_)}let c;r.on.getInspectorTree(u=>{c=u,u.app===t&&u.inspectorId===a&&l()}),r.on.getInspectorState(u=>{if(u.app===t&&u.inspectorId===a){const f=n.getRoutes().find(d=>d.record.__vd_id===u.nodeId);f&&(u.state={options:mE(f)})}}),r.sendInspectorTree(a),r.sendInspectorState(a)})}function pE(t){return t.optional?t.repeatable?"*":"?":t.repeatable?"+":""}function mE(t){const{record:e}=t,n=[{editable:!1,key:"path",value:e.path}];return e.name!=null&&n.push({editable:!1,key:"name",value:e.name}),n.push({editable:!1,key:"regexp",value:t.re}),t.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:t.keys.map(i=>`${i.name}${pE(i)}`).join(" "),tooltip:"Param keys",value:t.keys}}}),e.redirect!=null&&n.push({editable:!1,key:"redirect",value:e.redirect}),t.alias.length&&n.push({editable:!1,key:"aliases",value:t.alias.map(i=>i.record.path)}),Object.keys(t.record.meta).length&&n.push({editable:!1,key:"meta",value:t.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:t.score.map(i=>i.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:t.score}}}),n}const I_=15485081,P_=2450411,R_=8702998,gE=2282478,N_=16486972,yE=6710886;function D_(t){const e=[],{record:n}=t;n.name!=null&&e.push({label:String(n.name),textColor:0,backgroundColor:gE}),n.aliasOf&&e.push({label:"alias",textColor:0,backgroundColor:N_}),t.__vd_match&&e.push({label:"matches",textColor:0,backgroundColor:I_}),t.__vd_exactActive&&e.push({label:"exact",textColor:0,backgroundColor:R_}),t.__vd_active&&e.push({label:"active",textColor:0,backgroundColor:P_}),n.redirect&&e.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:yE});let i=n.__vd_id;return i==null&&(i=String(_E++),n.__vd_id=i),{id:i,label:n.path,tags:e,children:t.children.map(D_)}}let _E=0;const vE=/^\/(.*)\/([a-z]*)$/;function j_(t,e){const n=e.matched.length&&sr(e.matched[e.matched.length-1],t.record);t.__vd_exactActive=t.__vd_active=n,n||(t.__vd_active=e.matched.some(i=>sr(i,t.record))),t.children.forEach(i=>j_(i,e))}function H_(t){t.__vd_match=!1,t.children.forEach(H_)}function Eh(t,e){const n=String(t.re).match(vE);if(t.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(e))return t.children.forEach(s=>Eh(s,e)),t.record.path!=="/"||e==="/"?(t.__vd_match=t.re.test(e),!0):!1;const r=t.record.path.toLowerCase(),o=Ns(r);return!e.startsWith("/")&&(o.includes(e)||r.includes(e))||o.startsWith(e)||r.startsWith(e)||t.record.name&&String(t.record.name).includes(e)?!0:t.children.some(s=>Eh(s,e))}function bE(t,e){const n={};for(const i in t)e.includes(i)||(n[i]=t[i]);return n}function xE(t){const e=BA(t.routes,t),n=t.parseQuery||tE,i=t.stringifyQuery||Em,r=t.history;if(!r)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const o=Xo(),s=Xo(),a=Xo(),l=ti(Ii);let c=Ii;gi&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=xu.bind(null,L=>""+L),h=xu.bind(null,QA),f=xu.bind(null,Ns);function d(L,et){let K,it;return k_(L)?(K=e.getRecordMatcher(L),it=et):it=L,e.addRoute(it,K)}function p(L){const et=e.getRecordMatcher(L);et?e.removeRoute(et):qt(`Cannot remove non-existent route "${String(L)}"`)}function g(){return e.getRoutes().map(L=>L.record)}function y(L){return!!e.getRecordMatcher(L)}function b(L,et){if(et=Gt({},et||l.value),typeof L=="string"){const m=Cu(n,L,et.path),x=e.resolve({path:m.path},et),M=r.createHref(m.fullPath);return M.startsWith("//")?qt(`Location "${L}" resolved to "${M}". A resolved location cannot start with multiple slashes.`):x.matched.length||qt(`No match found for location with path "${L}"`),Gt(m,x,{params:f(x.params),hash:Ns(m.hash),redirectedFrom:void 0,href:M})}let K;if("path"in L)"params"in L&&!("name"in L)&&Object.keys(L.params).length&&qt(`Path "${L.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),K=Gt({},L,{path:Cu(n,L.path,et.path).path});else{const m=Gt({},L.params);for(const x in m)m[x]==null&&delete m[x];K=Gt({},L,{params:h(m)}),et.params=h(et.params)}const it=e.resolve(K,et),yt=L.hash||"";yt&&!yt.startsWith("#")&&qt(`A \`hash\` should always start with the character "#". Replace "${yt}" with "#${yt}".`),it.params=u(f(it.params));const Rt=aA(i,Gt({},L,{hash:XA(yt),path:it.path})),Et=r.createHref(Rt);return Et.startsWith("//")?qt(`Location "${L}" resolved to "${Et}". A resolved location cannot start with multiple slashes.`):it.matched.length||qt(`No match found for location with path "${"path"in L?L.path:L}"`),Gt({fullPath:Rt,hash:yt,query:i===Em?eE(L.query):L.query||{}},it,{redirectedFrom:void 0,href:Et})}function v(L){return typeof L=="string"?Cu(n,L,l.value.path):Gt({},L)}function _(L,et){if(c!==L)return Eo(8,{from:et,to:L})}function w(L){return C(L)}function S(L){return w(Gt(v(L),{replace:!0}))}function B(L){const et=L.matched[L.matched.length-1];if(et&&et.redirect){const{redirect:K}=et;let it=typeof K=="function"?K(L):K;if(typeof it=="string"&&(it=it.includes("?")||it.includes("#")?it=v(it):{path:it},it.params={}),!("path"in it)&&!("name"in it))throw qt(`Invalid redirect found:
${JSON.stringify(it,null,2)}
when navigating to "${L.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return Gt({query:L.query,hash:L.hash,params:"path"in it?{}:L.params},it)}}function C(L,et){const K=c=b(L),it=l.value,yt=L.state,Rt=L.force,Et=L.replace===!0,m=B(K);if(m)return C(Gt(v(m),{state:typeof m=="object"?Gt({},yt,m.state):yt,force:Rt,replace:Et}),et||K);const x=K;x.redirectedFrom=et;let M;return!Rt&&_m(i,it,K)&&(M=Eo(16,{to:x,from:it}),bt(it,it,!0,!1)),(M?Promise.resolve(M):F(x,it)).catch(I=>si(I)?si(I,2)?I:ut(I):z(I,x,it)).then(I=>{if(I){if(si(I,2))return _m(i,b(I.to),x)&&et&&(et._count=et._count?et._count+1:1)>30?(qt(`Detected a possibly infinite redirection in a navigation guard when going from "${it.fullPath}" to "${x.fullPath}". Aborting to avoid a Stack Overflow.
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):C(Gt({replace:Et},v(I.to),{state:typeof I.to=="object"?Gt({},yt,I.to.state):yt,force:Rt}),et||x)}else I=V(x,it,!0,Et,yt);return ot(x,it,I),I})}function P(L,et){const K=_(L,et);return K?Promise.reject(K):Promise.resolve()}function E(L){const et=ne.values().next().value;return et&&typeof et.runWithContext=="function"?et.runWithContext(L):L()}function F(L,et){let K;const[it,yt,Rt]=CE(L,et);K=wu(it.reverse(),"beforeRouteLeave",L,et);for(const m of it)m.leaveGuards.forEach(x=>{K.push(qi(x,L,et))});const Et=P.bind(null,L,et);return K.push(Et),ue(K).then(()=>{K=[];for(const m of o.list())K.push(qi(m,L,et));return K.push(Et),ue(K)}).then(()=>{K=wu(yt,"beforeRouteUpdate",L,et);for(const m of yt)m.updateGuards.forEach(x=>{K.push(qi(x,L,et))});return K.push(Et),ue(K)}).then(()=>{K=[];for(const m of Rt)if(m.beforeEnter)if(sn(m.beforeEnter))for(const x of m.beforeEnter)K.push(qi(x,L,et));else K.push(qi(m.beforeEnter,L,et));return K.push(Et),ue(K)}).then(()=>(L.matched.forEach(m=>m.enterCallbacks={}),K=wu(Rt,"beforeRouteEnter",L,et),K.push(Et),ue(K))).then(()=>{K=[];for(const m of s.list())K.push(qi(m,L,et));return K.push(Et),ue(K)}).catch(m=>si(m,8)?m:Promise.reject(m))}function ot(L,et,K){a.list().forEach(it=>E(()=>it(L,et,K)))}function V(L,et,K,it,yt){const Rt=_(L,et);if(Rt)return Rt;const Et=et===Ii,m=gi?history.state:{};K&&(it||Et?r.replace(L.fullPath,Gt({scroll:Et&&m&&m.scroll},yt)):r.push(L.fullPath,yt)),l.value=L,bt(L,et,K,Et),ut()}let W;function N(){W||(W=r.listen((L,et,K)=>{if(!ce.listening)return;const it=b(L),yt=B(it);if(yt){C(Gt(yt,{replace:!0}),it).catch(_s);return}c=it;const Rt=l.value;gi&&mA(bm(Rt.fullPath,K.delta),Oc()),F(it,Rt).catch(Et=>si(Et,12)?Et:si(Et,2)?(C(Et.to,it).then(m=>{si(m,20)&&!K.delta&&K.type===Rs.pop&&r.go(-1,!1)}).catch(_s),Promise.reject()):(K.delta&&r.go(-K.delta,!1),z(Et,it,Rt))).then(Et=>{Et=Et||V(it,Rt,!1),Et&&(K.delta&&!si(Et,8)?r.go(-K.delta,!1):K.type===Rs.pop&&si(Et,20)&&r.go(-1,!1)),ot(it,Rt,Et)}).catch(_s)}))}let j=Xo(),Y=Xo(),$;function z(L,et,K){ut(L);const it=Y.list();return it.length?it.forEach(yt=>yt(L,et,K)):(qt("uncaught error during route navigation:"),console.error(L)),Promise.reject(L)}function D(){return $&&l.value!==Ii?Promise.resolve():new Promise((L,et)=>{j.add([L,et])})}function ut(L){return $||($=!L,N(),j.list().forEach(([et,K])=>L?K(L):et()),j.reset()),L}function bt(L,et,K,it){const{scrollBehavior:yt}=t;if(!gi||!yt)return Promise.resolve();const Rt=!K&&gA(bm(L.fullPath,0))||(it||!K)&&history.state&&history.state.scroll||null;return ke().then(()=>yt(L,et,Rt)).then(Et=>Et&&pA(Et)).catch(Et=>z(Et,L,et))}const Lt=L=>r.go(L);let _t;const ne=new Set,ce={currentRoute:l,listening:!0,addRoute:d,removeRoute:p,hasRoute:y,getRoutes:g,resolve:b,options:t,push:w,replace:S,go:Lt,back:()=>Lt(-1),forward:()=>Lt(1),beforeEach:o.add,beforeResolve:s.add,afterEach:a.add,onError:Y.add,isReady:D,install(L){const et=this;L.component("RouterLink",sE),L.component("RouterView",uE),L.config.globalProperties.$router=et,Object.defineProperty(L.config.globalProperties,"$route",{enumerable:!0,get:()=>O(l)}),gi&&!_t&&l.value===Ii&&(_t=!0,w(r.location).catch(yt=>{qt("Unexpected error when starting the router:",yt)}));const K={};for(const yt in Ii)Object.defineProperty(K,yt,{get:()=>l.value[yt],enumerable:!0});L.provide(Mc,et),L.provide(B_,sy(K)),L.provide(Ah,l);const it=L.unmount;ne.add(L),L.unmount=function(){ne.delete(L),ne.size<1&&(c=Ii,W&&W(),W=null,l.value=Ii,_t=!1,$=!1),it()},gi&&dE(L,et,e)}};function ue(L){return L.reduce((et,K)=>et.then(()=>E(K)),Promise.resolve())}return ce}function CE(t,e){const n=[],i=[],r=[],o=Math.max(e.matched.length,t.matched.length);for(let s=0;s<o;s++){const a=e.matched[s];a&&(t.matched.find(c=>sr(c,a))?i.push(a):n.push(a));const l=t.matched[s];l&&(e.matched.find(c=>sr(c,l))||r.push(l))}return[n,i,r]}function wE(){return kt(Mc)}const Tu=tt(!1),bs=tt(!1),go=tt(!1),TE=tt(!0),$h=Ok({xs:460,...Lk}),Dr=Kk(),q_=Wk(),SE=A(()=>Dr.height.value-Dr.width.value/Zi>180),z_=zk(vn?document.body:null),Qi=Ek(),kE=A(()=>{var t,e;return["INPUT","TEXTAREA"].includes(((t=Qi.value)==null?void 0:t.tagName)||"")||((e=Qi.value)==null?void 0:e.classList.contains("CodeMirror-code"))}),AE=A(()=>{var t;return["BUTTON","A"].includes(((t=Qi.value)==null?void 0:t.tagName)||"")});ln("slidev-camera","default");ln("slidev-mic","default");const rl=ln("slidev-scale",0),$e=ln("slidev-show-overview",!1),Su=ln("slidev-presenter-cursor",!0),Bm=ln("slidev-show-editor",!1);ln("slidev-editor-width",vn?window.innerWidth*.4:100);const jl=ln("slidev-presenter-font-size",1),hs=ln("slidev-presenter-layout",1);function Im(){hs.value=hs.value+1,hs.value>2&&(hs.value=1)}function bW(){jl.value=Math.min(2,jl.value+.1)}function xW(){jl.value=Math.max(.5,jl.value-.1)}const V_=b_($e);var EE=Object.defineProperty,Pm=Object.getOwnPropertySymbols,$E=Object.prototype.hasOwnProperty,LE=Object.prototype.propertyIsEnumerable,Rm=(t,e,n)=>e in t?EE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Lh=(t,e)=>{for(var n in e||(e={}))$E.call(e,n)&&Rm(t,n,e[n]);if(Pm)for(var n of Pm(e))LE.call(e,n)&&Rm(t,n,e[n]);return t},OE=()=>({emit(t,...e){let n=this.events[t]||[];for(let i=0,r=n.length;i<r;i++)n[i](...e)},events:{},on(t,e){var n;return(n=this.events[t])!=null&&n.push(e)||(this.events[t]=[e]),()=>{var i;this.events[t]=(i=this.events[t])==null?void 0:i.filter(r=>e!==r)}}});function Nm(t,e,n,i=r=>r){return t*i(.5-e*(.5-n))}function ME(t){return[-t[0],-t[1]]}function En(t,e){return[t[0]+e[0],t[1]+e[1]]}function pn(t,e){return[t[0]-e[0],t[1]-e[1]]}function An(t,e){return[t[0]*e,t[1]*e]}function FE(t,e){return[t[0]/e,t[1]/e]}function Jo(t){return[t[1],-t[0]]}function Dm(t,e){return t[0]*e[0]+t[1]*e[1]}function BE(t,e){return t[0]===e[0]&&t[1]===e[1]}function IE(t){return Math.hypot(t[0],t[1])}function PE(t){return t[0]*t[0]+t[1]*t[1]}function jm(t,e){return PE(pn(t,e))}function W_(t){return FE(t,IE(t))}function RE(t,e){return Math.hypot(t[1]-e[1],t[0]-e[0])}function Qo(t,e,n){let i=Math.sin(n),r=Math.cos(n),o=t[0]-e[0],s=t[1]-e[1],a=o*r-s*i,l=o*i+s*r;return[a+e[0],l+e[1]]}function Oh(t,e,n){return En(t,An(pn(e,t),n))}function Hm(t,e,n){return En(t,An(e,n))}var{min:ao,PI:NE}=Math,qm=.275,ts=NE+1e-4;function DE(t,e={}){let{size:n=16,smoothing:i=.5,thinning:r=.5,simulatePressure:o=!0,easing:s=$=>$,start:a={},end:l={},last:c=!1}=e,{cap:u=!0,easing:h=$=>$*(2-$)}=a,{cap:f=!0,easing:d=$=>--$*$*$+1}=l;if(t.length===0||n<=0)return[];let p=t[t.length-1].runningLength,g=a.taper===!1?0:a.taper===!0?Math.max(n,p):a.taper,y=l.taper===!1?0:l.taper===!0?Math.max(n,p):l.taper,b=Math.pow(n*i,2),v=[],_=[],w=t.slice(0,10).reduce(($,z)=>{let D=z.pressure;if(o){let ut=ao(1,z.distance/n),bt=ao(1,1-ut);D=ao(1,$+(bt-$)*(ut*qm))}return($+D)/2},t[0].pressure),S=Nm(n,r,t[t.length-1].pressure,s),B,C=t[0].vector,P=t[0].point,E=P,F=P,ot=E,V=!1;for(let $=0;$<t.length;$++){let{pressure:z}=t[$],{point:D,vector:ut,distance:bt,runningLength:Lt}=t[$];if($<t.length-1&&p-Lt<3)continue;if(r){if(o){let it=ao(1,bt/n),yt=ao(1,1-it);z=ao(1,w+(yt-w)*(it*qm))}S=Nm(n,r,z,s)}else S=n/2;B===void 0&&(B=S);let _t=Lt<g?h(Lt/g):1,ne=p-Lt<y?d((p-Lt)/y):1;S=Math.max(.01,S*Math.min(_t,ne));let ce=($<t.length-1?t[$+1]:t[$]).vector,ue=$<t.length-1?Dm(ut,ce):1,L=Dm(ut,C)<0&&!V,et=ue!==null&&ue<0;if(L||et){let it=An(Jo(C),S);for(let yt=1/13,Rt=0;Rt<=1;Rt+=yt)F=Qo(pn(D,it),D,ts*Rt),v.push(F),ot=Qo(En(D,it),D,ts*-Rt),_.push(ot);P=F,E=ot,et&&(V=!0);continue}if(V=!1,$===t.length-1){let it=An(Jo(ut),S);v.push(pn(D,it)),_.push(En(D,it));continue}let K=An(Jo(Oh(ce,ut,ue)),S);F=pn(D,K),($<=1||jm(P,F)>b)&&(v.push(F),P=F),ot=En(D,K),($<=1||jm(E,ot)>b)&&(_.push(ot),E=ot),w=z,C=ut}let W=t[0].point.slice(0,2),N=t.length>1?t[t.length-1].point.slice(0,2):En(t[0].point,[1,1]),j=[],Y=[];if(t.length===1){if(!(g||y)||c){let $=Hm(W,W_(Jo(pn(W,N))),-(B||S)),z=[];for(let D=1/13,ut=D;ut<=1;ut+=D)z.push(Qo($,W,ts*2*ut));return z}}else{if(!(g||y&&t.length===1))if(u)for(let z=1/13,D=z;D<=1;D+=z){let ut=Qo(_[0],W,ts*D);j.push(ut)}else{let z=pn(v[0],_[0]),D=An(z,.5),ut=An(z,.51);j.push(pn(W,D),pn(W,ut),En(W,ut),En(W,D))}let $=Jo(ME(t[t.length-1].vector));if(y||g&&t.length===1)Y.push(N);else if(f){let z=Hm(N,$,S);for(let D=1/29,ut=D;ut<1;ut+=D)Y.push(Qo(z,N,ts*3*ut))}else Y.push(En(N,An($,S)),En(N,An($,S*.99)),pn(N,An($,S*.99)),pn(N,An($,S)))}return v.concat(Y,_.reverse(),j)}function jE(t,e={}){var n;let{streamline:i=.5,size:r=16,last:o=!1}=e;if(t.length===0)return[];let s=.15+(1-i)*.85,a=Array.isArray(t[0])?t:t.map(({x:d,y:p,pressure:g=.5})=>[d,p,g]);if(a.length===2){let d=a[1];a=a.slice(0,-1);for(let p=1;p<5;p++)a.push(Oh(a[0],d,p/4))}a.length===1&&(a=[...a,[...En(a[0],[1,1]),...a[0].slice(2)]]);let l=[{point:[a[0][0],a[0][1]],pressure:a[0][2]>=0?a[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],c=!1,u=0,h=l[0],f=a.length-1;for(let d=1;d<a.length;d++){let p=o&&d===f?a[d].slice(0,2):Oh(h.point,a[d],s);if(BE(h.point,p))continue;let g=RE(p,h.point);if(u+=g,d<f&&!c){if(u<r)continue;c=!0}h={point:p,pressure:a[d][2]>=0?a[d][2]:.5,vector:W_(pn(h.point,p)),distance:g,runningLength:u},l.push(h)}return l[0].vector=((n=l[1])==null?void 0:n.vector)||[0,0],l}function HE(t,e={}){return DE(jE(t,e),e)}function Hl(t,e){return t-e}function qE(t){return t<0?-1:1}function ql(t){return[Math.abs(t),qE(t)]}function U_(){const t=()=>((1+Math.random())*65536|0).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}var zE=2,di=zE,jo=class{constructor(t){this.drauu=t,this.event=void 0,this.point=void 0,this.start=void 0,this.el=null}onSelected(t){}onUnselected(){}onStart(t){}onMove(t){return!1}onEnd(t){}get brush(){return this.drauu.brush}get shiftPressed(){return this.drauu.shiftPressed}get altPressed(){return this.drauu.altPressed}get svgElement(){return this.drauu.el}getMousePosition(t){var e,n;const i=this.drauu.el,r=(e=this.drauu.options.coordinateScale)!=null?e:1;if(this.drauu.options.coordinateTransform===!1){const o=this.drauu.el.getBoundingClientRect();return{x:(t.pageX-o.left)*r,y:(t.pageY-o.top)*r,pressure:t.pressure}}else{const o=this.drauu.svgPoint;o.x=t.clientX,o.y=t.clientY;const s=o.matrixTransform((n=i.getScreenCTM())==null?void 0:n.inverse());return{x:s.x*r,y:s.y*r,pressure:t.pressure}}}createElement(t,e){var n;const i=document.createElementNS("http://www.w3.org/2000/svg",t),r=e?Lh(Lh({},this.brush),e):this.brush;return i.setAttribute("fill",(n=r.fill)!=null?n:"transparent"),i.setAttribute("stroke",r.color),i.setAttribute("stroke-width",r.size.toString()),i.setAttribute("stroke-linecap","round"),r.dasharray&&i.setAttribute("stroke-dasharray",r.dasharray),i}attr(t,e){this.el.setAttribute(t,typeof e=="string"?e:e.toFixed(di))}_setEvent(t){this.event=t,this.point=this.getMousePosition(t)}_eventDown(t){return this._setEvent(t),this.start=this.point,this.onStart(this.point)}_eventMove(t){return this._setEvent(t),this.onMove(this.point)}_eventUp(t){return this._setEvent(t),this.onEnd(this.point)}},VE=class Y_ extends jo{constructor(){super(...arguments),this.points=[]}onStart(e){return this.el=document.createElementNS("http://www.w3.org/2000/svg","path"),this.points=[e],this.attr("fill",this.brush.color),this.attr("d",this.getSvgData(this.points)),this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&this.points.push(e),this.attr("d",this.getSvgData(this.points)),!0}onEnd(){const e=this.el;return this.el=null,!!e}getSvgData(e){return Y_.getSvgData(e,this.brush)}static getSvgData(e,n){const i=HE(e,Lh({size:n.size,thinning:.9,simulatePressure:!1,start:{taper:5},end:{taper:5}},n.stylusOptions));if(!i.length)return"";const r=i.reduce((o,[s,a],l,c)=>{const[u,h]=c[(l+1)%c.length];return o.push(s,a,(s+u)/2,(a+h)/2),o},["M",...i[0],"Q"]);return r.push("Z"),r.map(o=>typeof o=="number"?o.toFixed(2):o).join(" ")}},WE=class extends jo{onStart(t){return this.el=this.createElement("ellipse"),this.attr("cx",t.x),this.attr("cy",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,n]=ql(t.x-this.start.x),[i,r]=ql(t.y-this.start.y);if(this.shiftPressed){const o=Math.min(e,i);e=o,i=o}if(this.altPressed)this.attr("cx",this.start.x),this.attr("cy",this.start.y),this.attr("rx",e),this.attr("ry",i);else{const[o,s]=[this.start.x,this.start.x+e*n].sort(Hl),[a,l]=[this.start.y,this.start.y+i*r].sort(Hl);this.attr("cx",(o+s)/2),this.attr("cy",(a+l)/2),this.attr("rx",(s-o)/2),this.attr("ry",(l-a)/2)}return!0}onEnd(){const t=this.el;return this.el=null,!(!t||!t.getTotalLength())}};function G_(t,e){const n=document.createElementNS("http://www.w3.org/2000/svg","defs"),i=document.createElementNS("http://www.w3.org/2000/svg","marker"),r=document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("fill",e),i.setAttribute("id",t),i.setAttribute("viewBox","0 -5 10 10"),i.setAttribute("refX","5"),i.setAttribute("refY","0"),i.setAttribute("markerWidth","4"),i.setAttribute("markerHeight","4"),i.setAttribute("orient","auto"),r.setAttribute("d","M0,-5L10,0L0,5"),i.appendChild(r),n.appendChild(i),n}var UE=class extends jo{onStart(t){if(this.el=this.createElement("line",{fill:"transparent"}),this.attr("x1",t.x),this.attr("y1",t.y),this.attr("x2",t.x),this.attr("y2",t.y),this.brush.arrowEnd){const e=U_(),n=document.createElementNS("http://www.w3.org/2000/svg","g");return n.append(G_(e,this.brush.color)),n.append(this.el),this.attr("marker-end",`url(#${e})`),n}return this.el}onMove(t){if(!this.el)return!1;let{x:e,y:n}=t;if(this.shiftPressed){const i=t.x-this.start.x,r=t.y-this.start.y;if(r!==0){let o=i/r;o=Math.round(o),Math.abs(o)<=1?(e=this.start.x+r*o,n=this.start.y+r):(e=this.start.x+i,n=this.start.y)}}return this.altPressed?(this.attr("x1",this.start.x*2-e),this.attr("y1",this.start.y*2-n),this.attr("x2",e),this.attr("y2",n)):(this.attr("x1",this.start.x),this.attr("y1",this.start.y),this.attr("x2",e),this.attr("y2",n)),!0}onEnd(){const t=this.el;return this.el=null,!(!t||t.getTotalLength()<5)}},YE=class extends jo{onStart(t){return this.el=this.createElement("rect"),this.brush.cornerRadius&&(this.attr("rx",this.brush.cornerRadius),this.attr("ry",this.brush.cornerRadius)),this.attr("x",t.x),this.attr("y",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,n]=ql(t.x-this.start.x),[i,r]=ql(t.y-this.start.y);if(this.shiftPressed){const o=Math.min(e,i);e=o,i=o}if(this.altPressed)this.attr("x",this.start.x-e),this.attr("y",this.start.y-i),this.attr("width",e*2),this.attr("height",i*2);else{const[o,s]=[this.start.x,this.start.x+e*n].sort(Hl),[a,l]=[this.start.y,this.start.y+i*r].sort(Hl);this.attr("x",o),this.attr("y",a),this.attr("width",s-o),this.attr("height",l-a)}return!0}onEnd(){const t=this.el;return this.el=null,!(!t||!t.getTotalLength())}};function GE(t,e){const n=t.x-e.x,i=t.y-e.y;return n*n+i*i}function KE(t,e,n){let i=e.x,r=e.y,o=n.x-i,s=n.y-r;if(o!==0||s!==0){const a=((t.x-i)*o+(t.y-r)*s)/(o*o+s*s);a>1?(i=n.x,r=n.y):a>0&&(i+=o*a,r+=s*a)}return o=t.x-i,s=t.y-r,o*o+s*s}function XE(t,e){let n=t[0];const i=[n];let r;for(let o=1,s=t.length;o<s;o++)r=t[o],GE(r,n)>e&&(i.push(r),n=r);return n!==r&&r&&i.push(r),i}function Mh(t,e,n,i,r){let o=i,s=0;for(let a=e+1;a<n;a++){const l=KE(t[a],t[e],t[n]);l>o&&(s=a,o=l)}o>i&&(s-e>1&&Mh(t,e,s,i,r),r.push(t[s]),n-s>1&&Mh(t,s,n,i,r))}function ZE(t,e){const n=t.length-1,i=[t[0]];return Mh(t,0,n,e,i),i.push(t[n]),i}function zm(t,e,n=!1){if(t.length<=2)return t;const i=e!==void 0?e*e:1;return t=n?t:XE(t,i),t=ZE(t,i),t}var JE=class Cr extends jo{constructor(){super(...arguments),this.points=[],this.count=0}onStart(e){if(this.el=this.createElement("path",{fill:"transparent"}),this.points=[e],this.brush.arrowEnd){this.arrowId=U_();const n=G_(this.arrowId,this.brush.color);this.el.appendChild(n)}return this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&(this.points.push(e),this.count+=1),this.count>5&&(this.points=zm(this.points,1,!0),this.count=0),this.attr("d",Cr.toSvgData(this.points)),!0}onEnd(){const e=this.el;return this.el=null,!(!e||(e.setAttribute("d",Cr.toSvgData(zm(this.points,1,!0))),!e.getTotalLength()))}static line(e,n){const i=n.x-e.x,r=n.y-e.y;return{length:Math.sqrt(i**2+r**2),angle:Math.atan2(r,i)}}static controlPoint(e,n,i,r){const o=n||e,s=i||e,a=.2,l=Cr.line(o,s),c=l.angle+(r?Math.PI:0),u=l.length*a,h=e.x+Math.cos(c)*u,f=e.y+Math.sin(c)*u;return{x:h,y:f}}static bezierCommand(e,n,i){const r=Cr.controlPoint(i[n-1],i[n-2],e),o=Cr.controlPoint(e,i[n-1],i[n+1],!0);return`C ${r.x.toFixed(di)},${r.y.toFixed(di)} ${o.x.toFixed(di)},${o.y.toFixed(di)} ${e.x.toFixed(di)},${e.y.toFixed(di)}`}static toSvgData(e){return e.reduce((n,i,r,o)=>r===0?`M ${i.x.toFixed(di)},${i.y.toFixed(di)}`:`${n} ${Cr.bezierCommand(i,r,o)}`,"")}},QE=class extends jo{constructor(){super(...arguments),this.pathSubFactor=20,this.pathFragments=[]}onSelected(t){const e=(n,i)=>{if(n&&n.length)for(let r=0;r<n.length;r++){const o=n[r];if(o.getTotalLength){const s=o.getTotalLength();for(let a=0;a<this.pathSubFactor;a++){const l=o.getPointAtLength(s*a/this.pathSubFactor),c=o.getPointAtLength(s*(a+1)/this.pathSubFactor);this.pathFragments.push({x1:l.x,x2:c.x,y1:l.y,y2:c.y,segment:a,element:i||o})}}else o.children&&e(o.children,o)}};t&&e(t.children)}onUnselected(){this.pathFragments=[]}onStart(t){this.svgPointPrevious=this.svgElement.createSVGPoint(),this.svgPointPrevious.x=t.x,this.svgPointPrevious.y=t.y}onMove(t){this.svgPointCurrent=this.svgElement.createSVGPoint(),this.svgPointCurrent.x=t.x,this.svgPointCurrent.y=t.y;const e=this.checkAndEraseElement();return this.svgPointPrevious=this.svgPointCurrent,e}onEnd(){return this.svgPointPrevious=void 0,this.svgPointCurrent=void 0,!0}checkAndEraseElement(){const t=[];if(this.pathFragments.length)for(let e=0;e<this.pathFragments.length;e++){const n=this.pathFragments[e],i={x1:this.svgPointPrevious.x,x2:this.svgPointCurrent.x,y1:this.svgPointPrevious.y,y2:this.svgPointCurrent.y};this.lineLineIntersect(n,i)&&(n.element.remove(),t.push(e))}return t.length&&(this.pathFragments=this.pathFragments.filter((e,n)=>!t.includes(n))),t.length>0}lineLineIntersect(t,e){const n=t.x1,i=t.x2,r=e.x1,o=e.x2,s=t.y1,a=t.y2,l=e.y1,c=e.y2,u=(n-i)*(l-c)-(s-a)*(r-o),h=(n*a-s*i)*(r-o)-(n-i)*(r*c-l*o),f=(n*a-s*i)*(l-c)-(s-a)*(r*c-l*o),d=(p,g,y)=>p>=g&&p<=y?!0:p>=y&&p<=g;if(u===0)return!1;{const p={x:h/u,y:f/u};return d(p.x,n,i)&&d(p.y,s,a)&&d(p.x,r,o)&&d(p.y,l,c)}}};function t$(t){return{draw:new JE(t),stylus:new VE(t),line:new UE(t),rectangle:new YE(t),ellipse:new WE(t),eraseLine:new QE(t)}}var e$=class{constructor(t={}){this.options=t,this.el=null,this.svgPoint=null,this.eventEl=null,this.shiftPressed=!1,this.altPressed=!1,this.drawing=!1,this._emitter=OE(),this._originalPointerId=null,this._models=t$(this),this._undoStack=[],this._disposables=[],this.options.brush||(this.options.brush={color:"black",size:3,mode:"stylus"}),t.el&&this.mount(t.el,t.eventTarget)}get model(){return this._models[this.mode]}get mounted(){return!!this.el}get mode(){return this.options.brush.mode||"stylus"}set mode(t){this._models[this.mode].onUnselected(),this.options.brush.mode=t,this.model.onSelected(this.el)}get brush(){return this.options.brush}set brush(t){this.options.brush=t}resolveSelector(t){return typeof t=="string"?document.querySelector(t):t||null}mount(t,e){if(this.el)throw new Error("[drauu] already mounted, unmount previous target first");if(this.el=this.resolveSelector(t),!this.el)throw new Error("[drauu] target element not found");if(this.el.tagName.toLocaleLowerCase()!=="svg")throw new Error("[drauu] can only mount to a SVG element");if(!this.el.createSVGPoint)throw new Error("[drauu] SVG element must be create by document.createElementNS('http://www.w3.org/2000/svg', 'svg')");this.svgPoint=this.el.createSVGPoint();const n=this.resolveSelector(e)||this.el,i=this.eventStart.bind(this),r=this.eventMove.bind(this),o=this.eventEnd.bind(this),s=this.eventKeyboard.bind(this);n.addEventListener("pointerdown",i,{passive:!1}),window.addEventListener("pointermove",r,{passive:!1}),window.addEventListener("pointerup",o,{passive:!1}),window.addEventListener("pointercancel",o,{passive:!1}),window.addEventListener("keydown",s,!1),window.addEventListener("keyup",s,!1),this._disposables.push(()=>{n.removeEventListener("pointerdown",i),window.removeEventListener("pointermove",r),window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),window.removeEventListener("keydown",s,!1),window.removeEventListener("keyup",s,!1)}),this._emitter.emit("mounted")}unmount(){this._disposables.forEach(t=>t()),this._disposables.length=0,this.el=null,this._emitter.emit("unmounted")}on(t,e){return this._emitter.on(t,e)}undo(){const t=this.el;return t.lastElementChild?(this._undoStack.push(t.lastElementChild.cloneNode(!0)),t.lastElementChild.remove(),this._emitter.emit("changed"),!0):!1}redo(){return this._undoStack.length?(this.el.appendChild(this._undoStack.pop()),this._emitter.emit("changed"),!0):!1}canRedo(){return!!this._undoStack.length}canUndo(){var t;return!!((t=this.el)!=null&&t.lastElementChild)}eventMove(t){!this.acceptsInput(t)||!this.drawing||this.model._eventMove(t)&&(t.stopPropagation(),t.preventDefault(),this._emitter.emit("changed"))}eventStart(t){this.acceptsInput(t)&&(t.stopPropagation(),t.preventDefault(),this._currentNode&&this.cancel(),this.drawing=!0,this._originalPointerId=t.pointerId,this._emitter.emit("start"),this._currentNode=this.model._eventDown(t),this._currentNode&&this.mode!=="eraseLine"&&this.el.appendChild(this._currentNode),this._emitter.emit("changed"))}eventEnd(t){if(!this.acceptsInput(t)||!this.drawing)return;const e=this.model._eventUp(t);e?(e instanceof Element&&e!==this._currentNode&&(this._currentNode=e),this.commit()):this.cancel(),this.drawing=!1,this._emitter.emit("end"),this._emitter.emit("changed"),this._originalPointerId=null}acceptsInput(t){return(!this.options.acceptsInputTypes||this.options.acceptsInputTypes.includes(t.pointerType))&&!(this._originalPointerId&&this._originalPointerId!==t.pointerId)}eventKeyboard(t){this.shiftPressed===t.shiftKey&&this.altPressed===t.altKey||(this.shiftPressed=t.shiftKey,this.altPressed=t.altKey,this.model.point&&this.model.onMove(this.model.point)&&this._emitter.emit("changed"))}commit(){this._undoStack.length=0;const t=this._currentNode;this._currentNode=void 0,this._emitter.emit("committed",t)}clear(){this._undoStack.length=0,this.cancel(),this.el.innerHTML="",this._emitter.emit("changed")}cancel(){this._currentNode&&(this.el.removeChild(this._currentNode),this._currentNode=void 0,this._emitter.emit("canceled"))}dump(){return this.el.innerHTML}load(t){this.clear(),this.el.innerHTML=t}};function n$(t){return new e$(t)}const Fh=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93","#ffffff","#000000"],gn=ln("slidev-drawing-enabled",!1),CW=ln("slidev-drawing-pinned",!1),i$=tt(!1),r$=tt(!1),o$=tt(!1),Ds=tt(!1),$r=uk(ln("slidev-drawing-brush",{color:Fh[0],size:4,mode:"stylus"})),Vm=tt("stylus"),K_=A(()=>Wt.drawings.syncAll||De.value);let js=!1;const es=A({get(){return Vm.value},set(t){Vm.value=t,t==="arrow"?($r.mode="line",$r.arrowEnd=!0):($r.mode=t,$r.arrowEnd=!1)}}),s$=zt({brush:$r,acceptsInputTypes:A(()=>gn.value&&(!Wt.drawings.presenterOnly||De.value)?void 0:["pen"]),coordinateTransform:!1}),Ve=bc(n$(s$));function a$(){Ve.clear(),K_.value&&y_(le.value,"")}function nd(){var t;r$.value=Ve.canRedo(),i$.value=Ve.canUndo(),o$.value=!!((t=Ve.el)!=null&&t.children.length)}function l$(t){js=!0;const e=Dl[t||le.value];e!=null?Ve.load(e):Ve.clear(),nd(),js=!1}Ve.on("changed",()=>{if(nd(),!js){const t=Ve.dump(),e=le.value;(Dl[e]||"")!==t&&K_.value&&y_(e,Ve.dump())}});sk(t=>{js=!0,t[le.value]!=null&&Ve.load(t[le.value]||""),js=!1,nd()});ke(()=>{$t(le,()=>{Ve.mounted&&l$()},{immediate:!0})});Ve.on("start",()=>Ds.value=!0);Ve.on("end",()=>Ds.value=!1);window.addEventListener("keydown",t=>{if(!gn.value)return;const e=!t.ctrlKey&&!t.altKey&&!t.shiftKey&&!t.metaKey;let n=!0;t.code==="KeyZ"&&(t.ctrlKey||t.metaKey)?t.shiftKey?Ve.redo():Ve.undo():t.code==="Escape"?gn.value=!1:t.code==="KeyL"&&e?es.value="line":t.code==="KeyA"&&e?es.value="arrow":t.code==="KeyS"&&e?es.value="stylus":t.code==="KeyR"&&e?es.value="rectangle":t.code==="KeyE"&&e?es.value="ellipse":t.code==="KeyC"&&e?a$():t.code.startsWith("Digit")&&e&&+t.code[5]<=Fh.length?$r.color=Fh[+t.code[5]-1]:n=!1,n&&(t.preventDefault(),t.stopPropagation())},!1);function ge(...t){return A(()=>t.every(e=>re(e)))}function en(t){return A(()=>!re(t))}function c$(...t){return A(()=>t.some(e=>re(e)))}const Wm=Dk(),ku=ln("slidev-color-schema","auto"),Bh=A(()=>Wt.colorSchema!=="auto"),Fc=A({get(){return Bh.value?Wt.colorSchema==="dark":ku.value==="auto"?Wm.value:ku.value==="dark"},set(t){Bh.value||(ku.value=t===Wm.value?"auto":t?"dark":"light")}}),X_=b_(Fc);vn&&$t(Fc,t=>{const e=document.querySelector("html");e.classList.toggle("dark",t),e.classList.toggle("light",!t)},{immediate:!0});const ol=tt(1),sl=A(()=>se.length),Me=tt(0),id=tt(0);function u$(){Me.value>ol.value&&(Me.value-=1)}function h$(){Me.value<sl.value&&(Me.value+=1)}function f$(){if(Me.value>ol.value){let t=Me.value-id.value;t<ol.value&&(t=ol.value),Me.value=t}}function d$(){if(Me.value<sl.value){let t=Me.value+id.value;t>sl.value&&(t=sl.value),Me.value=t}}function p$(){const{escape:t,space:e,shift:n,left:i,right:r,up:o,down:s,enter:a,d:l,g:c,o:u,"`":h}=q_;let f=[{name:"next_space",key:ge(e,en(n)),fn:er,autoRepeat:!0},{name:"prev_space",key:ge(e,n),fn:nr,autoRepeat:!0},{name:"next_right",key:ge(r,en(n),en($e)),fn:er,autoRepeat:!0},{name:"prev_left",key:ge(i,en(n),en($e)),fn:nr,autoRepeat:!0},{name:"next_page_key",key:"pageDown",fn:er,autoRepeat:!0},{name:"prev_page_key",key:"pageUp",fn:nr,autoRepeat:!0},{name:"next_down",key:ge(s,en($e)),fn:Js,autoRepeat:!0},{name:"prev_up",key:ge(o,en($e)),fn:()=>Qs(!1),autoRepeat:!0},{name:"next_shift",key:ge(r,n),fn:Js,autoRepeat:!0},{name:"prev_shift",key:ge(i,n),fn:()=>Qs(!1),autoRepeat:!0},{name:"toggle_dark",key:ge(l,en(gn)),fn:X_},{name:"toggle_overview",key:ge(c$(u,h),en(gn)),fn:V_},{name:"hide_overview",key:ge(t,en(gn)),fn:()=>$e.value=!1},{name:"goto",key:ge(c,en(gn)),fn:()=>go.value=!go.value},{name:"next_overview",key:ge(r,$e),fn:h$},{name:"prev_overview",key:ge(i,$e),fn:u$},{name:"up_overview",key:ge(o,$e),fn:f$},{name:"down_overview",key:ge(s,$e),fn:d$},{name:"goto_from_overview",key:ge(a,$e),fn:()=>{Xr(Me.value),$e.value=!1}}];const d=new Set(f.map(g=>g.name));if(f.filter(g=>g.name&&d.has(g.name)).length===0){const g=["========== WARNING ==========","defineShortcutsSetup did not return any of the base shortcuts.","See https://sli.dev/custom/config-shortcuts.html for migration.",'If it is intentional, return at least one shortcut with one of the base names (e.g. name:"goto").'].join(`
`);alert(g),console.warn(g)}return f}const Z_=ge(en(kE),en(AE),TE);function m$(t,e,n=!1){typeof t=="string"&&(t=q_[t]);const i=ge(t,Z_);let r=0,o;const s=()=>{if(clearTimeout(o),!i.value){r=0;return}n&&(o=setTimeout(s,Math.max(1e3-r*250,150)),r++),e()};return $t(i,s,{flush:"sync"})}function g$(t,e){return Ak(t,n=>{Z_.value&&(n.repeat||e())})}function y$(){const t=p$();new Map(t.map(n=>[n.key,n])).forEach(n=>{n.fn&&m$(n.key,n.fn,n.autoRepeat)}),g$("f",()=>z_.toggle())}const _$={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},v$=X("path",{fill:"currentColor",d:"M17.414 16L24 9.414L22.586 8L16 14.586L9.414 8L8 9.414L14.586 16L8 22.586L9.414 24L16 17.414L22.586 24L24 22.586z"},null,-1),b$=[v$];function x$(t,e){return R(),nt("svg",_$,[...b$])}const C$={name:"carbon-close",render:x$};function rd(t,e=""){var r,o;const n=["slidev-page",e],i=(o=(r=t==null?void 0:t.meta)==null?void 0:r.slide)==null?void 0:o.no;return i!=null&&n.push(`slidev-page-${i}`),n.filter(Boolean).join(" ")}const bn=Symbol("v-click-clicks"),po=Symbol("v-click-clicks-elements"),al=Symbol("v-click-clicks-disabled"),Ih=Symbol("v-click-clicks-order-map"),$i=Symbol("slidev-page"),J_=Symbol("slidev-slide-scale"),Li=Symbol("slidev-slidev-context"),w$=Symbol("slidev-route"),hr=Symbol("slidev-render-context"),T$=Symbol("slidev-active"),to=Symbol("slidev-fontmatter"),lo="slidev-vclick-target",Au="slidev-vclick-hidden",S$="slidev-vclick-fade",Eu="slidev-vclick-hidden-explicitly",ns="slidev-vclick-current",Pa="slidev-vclick-prior",k$=["localhost","127.0.0.1"],A$=jt({__name:"SlideContainer",props:{width:{type:Number},meta:{default:()=>({})},scale:{type:[Number,String]}},setup(t){const e=t,n=tt(),i=Hk(n),r=A(()=>e.width?e.width:i.width.value),o=A(()=>e.width?e.width/Zi:i.height.value);e.width&&Xn(()=>{n.value&&(n.value.style.width=`${r.value}px`,n.value.style.height=`${o.value}px`)});const s=A(()=>r.value/o.value),a=A(()=>e.scale&&!Po.value?e.scale:s.value<Zi?r.value/Ji:o.value*Zi/Ji),l=A(()=>({height:`${Qf}px`,width:`${Ji}px`,transform:`translate(-50%, -50%) scale(${a.value})`})),c=A(()=>({"select-none":!Wt.selectable}));return de(J_,a),(u,h)=>(R(),nt("div",{id:"slide-container",ref_key:"root",ref:n,class:ee(c.value)},[X("div",{id:"slide-content",style:Ae(l.value)},[He(u.$slots,"default")],4),He(u.$slots,"controls")],2))}}),Dt=(t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n},Q_=Dt(A$,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/SlideContainer.vue"]]),od=jt({name:"SlideWrapper",props:{clicks:{type:[Number,String],default:0},clicksElements:{type:Array,default:()=>[]},clicksOrderMap:{type:Map,default:()=>new Map},clicksDisabled:{type:Boolean,default:!1},renderContext:{type:String,default:"main"},active:{type:Boolean,default:!1},is:{type:Object,default:void 0},route:{type:Object,default:void 0}},setup(t,{emit:e}){var a;const n=Yn(t,"clicks",e),i=Yn(t,"clicksElements",e),r=Yn(t,"clicksDisabled",e),o=Yn(t,"clicksOrderMap",e);i.value.length=0;const s=A({get(){return r.value?9999999:+n.value},set(l){n.value=l}});de(w$,t.route),de($i,tt(+((a=t.route)==null?void 0:a.path))),de(hr,tt(t.renderContext)),de(T$,Ai(t,"active")),de(bn,s),de(al,r),de(po,i),de(Ih,o)},render(){var t,e;return this.$props.is?Ze(this.$props.is):(e=(t=this.$slots)==null?void 0:t.default)==null?void 0:e.call(t)}}),E$=["innerHTML"],$$=jt({__name:"DrawingPreview",props:{page:{type:Number,required:!0}},setup(t){return(e,n)=>O(Dl)[e.page]?(R(),nt("svg",{key:0,class:"w-full h-full absolute top-0 pointer-events-none",innerHTML:O(Dl)[e.page]},null,8,E$)):Mt("v-if",!0)}}),tv=Dt($$,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/DrawingPreview.vue"]]),L$=Object.freeze(Object.defineProperty({__proto__:null,default:tv},Symbol.toStringTag,{value:"Module"})),O$={class:"sr-only"},M$=jt({__name:"HiddenText",props:{text:{type:String,required:!0}},setup(t){return(e,n)=>(R(),nt("span",O$,yn(e.text),1))}}),Ue=Dt(M$,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/HiddenText.vue"]]),F$=["onClick"],B$={class:"text-green font-bold"},I$={class:"opacity-50"},P$={key:1,class:"opacity-50"},$u=4*16*2,Um=2*16,R$=jt({__name:"SlidesOverview",props:{modelValue:{type:Boolean,required:!0}},emits:[],setup(t,{emit:e}){const r=Yn(t,"modelValue",e);function o(){r.value=!1}function s(d){Xr(d),o()}function a(d){return d===Me.value}const l=$h.smaller("xs"),c=$h.smaller("sm"),u=A(()=>l.value?Dr.width.value-$u:c.value?(Dr.width.value-$u-Um)/2:300),h=A(()=>Math.floor((Dr.width.value-$u)/(u.value+Um))),f=tt("");return Pt("keypress",d=>{if(!$e.value){f.value="";return}if(d.key==="Enter"){d.preventDefault(),f.value?(s(+f.value),f.value=""):s(Me.value);return}const p=Number.parseInt(d.key.replace(/[^0-9]/g,""));if(Number.isNaN(p)){f.value="";return}if(!f.value&&p===0)return;if(f.value+=String(p),+f.value>=se.length){f.value="";return}const g=se.findIndex(y=>y.path===f.value);g!==-1&&(Me.value=g+1),+f.value*10>se.length&&(s(+f.value),f.value="")}),Xn(()=>{Me.value=le.value,id.value=h.value}),(d,p)=>{const g=C$;return R(),nt(It,null,[at(Kf,{"enter-active-class":"duration-150 ease-out","enter-from-class":"opacity-0 scale-102 !backdrop-blur-0px","leave-active-class":"duration-200 ease-in","leave-to-class":"opacity-0 scale-102 !backdrop-blur-0px",persisted:""},{default:_e(()=>[Ey(X("div",{class:"bg-main !bg-opacity-75 p-16 overflow-y-auto backdrop-blur-5px fixed left-0 right-0 top-0 h-[calc(var(--vh,1vh)*100)]",onClick:p[0]||(p[0]=y=>o())},[X("div",{class:"grid gap-y-4 gap-x-8 w-full",style:Ae(`grid-template-columns: repeat(auto-fit,minmax(${u.value}px,1fr))`)},[(R(!0),nt(It,null,No(O(se),(y,b)=>(R(),nt("div",{key:y.path,class:"relative"},[X("div",{class:ee(["inline-block border rounded border-opacity-50 overflow-hidden bg-main hover:border-$slidev-theme-primary transition",a(b+1)||O(Me)===b+1?"border-$slidev-theme-primary":"border-gray-400"]),style:Ae(O(td)),onClick:v=>s(+y.path)},[(R(),Vt(Q_,{key:y.path,width:u.value,"clicks-disabled":!0,class:"pointer-events-none"},{default:_e(()=>[y!=null&&y.component?(R(),Vt(O(od),{key:0,is:y.component,"clicks-disabled":!0,class:ee(O(rd)(y)),route:y,"render-context":"overview"},null,8,["is","class","route"])):Mt("v-if",!0),at(tv,{page:+y.path},null,8,["page"])]),_:2},1032,["width"]))],14,F$),X("div",{class:"absolute top-0",style:Ae(`left: ${u.value+5}px`)},[f.value&&String(b+1).startsWith(f.value)?(R(),nt(It,{key:0},[X("span",B$,yn(f.value),1),X("span",I$,yn(String(b+1).slice(f.value.length)),1)],64)):(R(),nt("span",P$,yn(b+1),1))],4)]))),128))],4)],512),[[Zf,O(r)]])]),_:1}),O(r)?(R(),nt("button",{key:0,class:"fixed text-2xl top-4 right-4 slidev-icon-btn text-gray-400",onClick:o},[at(Ue,{text:"Close"}),at(g)])):Mt("v-if",!0)],64)}}}),N$=Dt(R$,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/SlidesOverview.vue"]]),D$="/slides/fosdem2024/assets/logo-WJB0mvzm.png",j$={key:0,class:"fixed top-0 bottom-0 left-0 right-0 grid z-20"},H$=jt({__name:"Modal",props:{modelValue:{default:!1},class:{default:""}},emits:["modelValue"],setup(t,{emit:e}){const n=t,r=Yn(n,"modelValue",e);function o(){r.value=!1}return(s,a)=>(R(),Vt(My,null,[O(r)?(R(),nt("div",j$,[X("div",{bg:"black opacity-80",class:"absolute top-0 bottom-0 left-0 right-0 -z-1",onClick:a[0]||(a[0]=l=>o())}),X("div",{class:ee(["m-auto rounded-md bg-main shadow",n.class]),"dark:border":"~ main"},[He(s.$slots,"default")],2)])):Mt("v-if",!0)],1024))}}),q$=Dt(H$,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/Modal.vue"]]),z$={class:"slidev-info-dialog slidev-layout flex flex-col gap-4 text-base"},V$=["innerHTML"],W$=X("a",{href:"https://github.com/slidevjs/slidev",target:"_blank",class:"!opacity-100 !border-none !text-current"},[X("div",{class:"flex gap-1 children:my-auto"},[X("div",{class:"opacity-50 text-sm mr-2"},"Powered by"),X("img",{class:"w-5 h-5",src:D$,alt:"Slidev logo"}),X("div",{style:{color:"#2082A6"}},[X("b",null,"Sli"),Ci("dev ")])])],-1),U$=jt({__name:"InfoDialog",props:{modelValue:{default:!1}},emits:["modelValue"],setup(t,{emit:e}){const r=Yn(t,"modelValue",e),o=A(()=>typeof Wt.info=="string");return(s,a)=>(R(),Vt(q$,{modelValue:O(r),"onUpdate:modelValue":a[0]||(a[0]=l=>Yt(r)?r.value=l:null),class:"px-6 py-4"},{default:_e(()=>[X("div",z$,[o.value?(R(),nt("div",{key:0,class:"mb-4",innerHTML:O(Wt).info},null,8,V$)):Mt("v-if",!0),W$])]),_:1},8,["modelValue"]))}}),Y$=Dt(U$,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/InfoDialog.vue"]]);function Ti(t){return Array.isArray?Array.isArray(t):iv(t)==="[object Array]"}const G$=1/0;function K$(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-G$?"-0":e}function X$(t){return t==null?"":K$(t)}function Gn(t){return typeof t=="string"}function ev(t){return typeof t=="number"}function Z$(t){return t===!0||t===!1||J$(t)&&iv(t)=="[object Boolean]"}function nv(t){return typeof t=="object"}function J$(t){return nv(t)&&t!==null}function rn(t){return t!=null}function Lu(t){return!t.trim().length}function iv(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Q$="Incorrect 'index' type",tL=t=>`Invalid value for key ${t}`,eL=t=>`Pattern length exceeds max of ${t}.`,nL=t=>`Missing ${t} property in key`,iL=t=>`Property 'weight' in key '${t}' must be a positive integer`,Ym=Object.prototype.hasOwnProperty;class rL{constructor(e){this._keys=[],this._keyMap={};let n=0;e.forEach(i=>{let r=rv(i);this._keys.push(r),this._keyMap[r.id]=r,n+=r.weight}),this._keys.forEach(i=>{i.weight/=n})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function rv(t){let e=null,n=null,i=null,r=1,o=null;if(Gn(t)||Ti(t))i=t,e=Gm(t),n=Ph(t);else{if(!Ym.call(t,"name"))throw new Error(nL("name"));const s=t.name;if(i=s,Ym.call(t,"weight")&&(r=t.weight,r<=0))throw new Error(iL(s));e=Gm(s),n=Ph(s),o=t.getFn}return{path:e,id:n,weight:r,src:i,getFn:o}}function Gm(t){return Ti(t)?t:t.split(".")}function Ph(t){return Ti(t)?t.join("."):t}function oL(t,e){let n=[],i=!1;const r=(o,s,a)=>{if(rn(o))if(!s[a])n.push(o);else{let l=s[a];const c=o[l];if(!rn(c))return;if(a===s.length-1&&(Gn(c)||ev(c)||Z$(c)))n.push(X$(c));else if(Ti(c)){i=!0;for(let u=0,h=c.length;u<h;u+=1)r(c[u],s,a+1)}else s.length&&r(c,s,a+1)}};return r(t,Gn(e)?e.split("."):e,0),i?n:n[0]}const sL={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},aL={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},lL={location:0,threshold:.6,distance:100},cL={useExtendedSearch:!1,getFn:oL,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var St={...aL,...sL,...lL,...cL};const uL=/[^ ]+/g;function hL(t=1,e=3){const n=new Map,i=Math.pow(10,e);return{get(r){const o=r.match(uL).length;if(n.has(o))return n.get(o);const s=1/Math.pow(o,.5*t),a=parseFloat(Math.round(s*i)/i);return n.set(o,a),a},clear(){n.clear()}}}class sd{constructor({getFn:e=St.getFn,fieldNormWeight:n=St.fieldNormWeight}={}){this.norm=hL(n,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((n,i)=>{this._keysMap[n.id]=i})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Gn(this.docs[0])?this.docs.forEach((e,n)=>{this._addString(e,n)}):this.docs.forEach((e,n)=>{this._addObject(e,n)}),this.norm.clear())}add(e){const n=this.size();Gn(e)?this._addString(e,n):this._addObject(e,n)}removeAt(e){this.records.splice(e,1);for(let n=e,i=this.size();n<i;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(e,n){return e[this._keysMap[n]]}size(){return this.records.length}_addString(e,n){if(!rn(e)||Lu(e))return;let i={v:e,i:n,n:this.norm.get(e)};this.records.push(i)}_addObject(e,n){let i={i:n,$:{}};this.keys.forEach((r,o)=>{let s=r.getFn?r.getFn(e):this.getFn(e,r.path);if(rn(s)){if(Ti(s)){let a=[];const l=[{nestedArrIndex:-1,value:s}];for(;l.length;){const{nestedArrIndex:c,value:u}=l.pop();if(rn(u))if(Gn(u)&&!Lu(u)){let h={v:u,i:c,n:this.norm.get(u)};a.push(h)}else Ti(u)&&u.forEach((h,f)=>{l.push({nestedArrIndex:f,value:h})})}i.$[o]=a}else if(Gn(s)&&!Lu(s)){let a={v:s,n:this.norm.get(s)};i.$[o]=a}}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function ov(t,e,{getFn:n=St.getFn,fieldNormWeight:i=St.fieldNormWeight}={}){const r=new sd({getFn:n,fieldNormWeight:i});return r.setKeys(t.map(rv)),r.setSources(e),r.create(),r}function fL(t,{getFn:e=St.getFn,fieldNormWeight:n=St.fieldNormWeight}={}){const{keys:i,records:r}=t,o=new sd({getFn:e,fieldNormWeight:n});return o.setKeys(i),o.setIndexRecords(r),o}function Ra(t,{errors:e=0,currentLocation:n=0,expectedLocation:i=0,distance:r=St.distance,ignoreLocation:o=St.ignoreLocation}={}){const s=e/t.length;if(o)return s;const a=Math.abs(i-n);return r?s+a/r:a?1:s}function dL(t=[],e=St.minMatchCharLength){let n=[],i=-1,r=-1,o=0;for(let s=t.length;o<s;o+=1){let a=t[o];a&&i===-1?i=o:!a&&i!==-1&&(r=o-1,r-i+1>=e&&n.push([i,r]),i=-1)}return t[o-1]&&o-i>=e&&n.push([i,o-1]),n}const kr=32;function pL(t,e,n,{location:i=St.location,distance:r=St.distance,threshold:o=St.threshold,findAllMatches:s=St.findAllMatches,minMatchCharLength:a=St.minMatchCharLength,includeMatches:l=St.includeMatches,ignoreLocation:c=St.ignoreLocation}={}){if(e.length>kr)throw new Error(eL(kr));const u=e.length,h=t.length,f=Math.max(0,Math.min(i,h));let d=o,p=f;const g=a>1||l,y=g?Array(h):[];let b;for(;(b=t.indexOf(e,p))>-1;){let C=Ra(e,{currentLocation:b,expectedLocation:f,distance:r,ignoreLocation:c});if(d=Math.min(C,d),p=b+u,g){let P=0;for(;P<u;)y[b+P]=1,P+=1}}p=-1;let v=[],_=1,w=u+h;const S=1<<u-1;for(let C=0;C<u;C+=1){let P=0,E=w;for(;P<E;)Ra(e,{errors:C,currentLocation:f+E,expectedLocation:f,distance:r,ignoreLocation:c})<=d?P=E:w=E,E=Math.floor((w-P)/2+P);w=E;let F=Math.max(1,f-E+1),ot=s?h:Math.min(f+E,h)+u,V=Array(ot+2);V[ot+1]=(1<<C)-1;for(let N=ot;N>=F;N-=1){let j=N-1,Y=n[t.charAt(j)];if(g&&(y[j]=+!!Y),V[N]=(V[N+1]<<1|1)&Y,C&&(V[N]|=(v[N+1]|v[N])<<1|1|v[N+1]),V[N]&S&&(_=Ra(e,{errors:C,currentLocation:j,expectedLocation:f,distance:r,ignoreLocation:c}),_<=d)){if(d=_,p=j,p<=f)break;F=Math.max(1,2*f-p)}}if(Ra(e,{errors:C+1,currentLocation:f,expectedLocation:f,distance:r,ignoreLocation:c})>d)break;v=V}const B={isMatch:p>=0,score:Math.max(.001,_)};if(g){const C=dL(y,a);C.length?l&&(B.indices=C):B.isMatch=!1}return B}function mL(t){let e={};for(let n=0,i=t.length;n<i;n+=1){const r=t.charAt(n);e[r]=(e[r]||0)|1<<i-n-1}return e}class sv{constructor(e,{location:n=St.location,threshold:i=St.threshold,distance:r=St.distance,includeMatches:o=St.includeMatches,findAllMatches:s=St.findAllMatches,minMatchCharLength:a=St.minMatchCharLength,isCaseSensitive:l=St.isCaseSensitive,ignoreLocation:c=St.ignoreLocation}={}){if(this.options={location:n,threshold:i,distance:r,includeMatches:o,findAllMatches:s,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c},this.pattern=l?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const u=(f,d)=>{this.chunks.push({pattern:f,alphabet:mL(f),startIndex:d})},h=this.pattern.length;if(h>kr){let f=0;const d=h%kr,p=h-d;for(;f<p;)u(this.pattern.substr(f,kr),f),f+=kr;if(d){const g=h-kr;u(this.pattern.substr(g),g)}}else u(this.pattern,0)}searchIn(e){const{isCaseSensitive:n,includeMatches:i}=this.options;if(n||(e=e.toLowerCase()),this.pattern===e){let p={isMatch:!0,score:0};return i&&(p.indices=[[0,e.length-1]]),p}const{location:r,distance:o,threshold:s,findAllMatches:a,minMatchCharLength:l,ignoreLocation:c}=this.options;let u=[],h=0,f=!1;this.chunks.forEach(({pattern:p,alphabet:g,startIndex:y})=>{const{isMatch:b,score:v,indices:_}=pL(e,p,g,{location:r+y,distance:o,threshold:s,findAllMatches:a,minMatchCharLength:l,includeMatches:i,ignoreLocation:c});b&&(f=!0),h+=v,b&&_&&(u=[...u,..._])});let d={isMatch:f,score:f?h/this.chunks.length:1};return f&&i&&(d.indices=u),d}}class fr{constructor(e){this.pattern=e}static isMultiMatch(e){return Km(e,this.multiRegex)}static isSingleMatch(e){return Km(e,this.singleRegex)}search(){}}function Km(t,e){const n=t.match(e);return n?n[1]:null}class gL extends fr{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const n=e===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class yL extends fr{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const i=e.indexOf(this.pattern)===-1;return{isMatch:i,score:i?0:1,indices:[0,e.length-1]}}}class _L extends fr{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const n=e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class vL extends fr{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const n=!e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class bL extends fr{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const n=e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class xL extends fr{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const n=!e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class av extends fr{constructor(e,{location:n=St.location,threshold:i=St.threshold,distance:r=St.distance,includeMatches:o=St.includeMatches,findAllMatches:s=St.findAllMatches,minMatchCharLength:a=St.minMatchCharLength,isCaseSensitive:l=St.isCaseSensitive,ignoreLocation:c=St.ignoreLocation}={}){super(e),this._bitapSearch=new sv(e,{location:n,threshold:i,distance:r,includeMatches:o,findAllMatches:s,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class lv extends fr{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let n=0,i;const r=[],o=this.pattern.length;for(;(i=e.indexOf(this.pattern,n))>-1;)n=i+o,r.push([i,n-1]);const s=!!r.length;return{isMatch:s,score:s?0:1,indices:r}}}const Rh=[gL,lv,_L,vL,xL,bL,yL,av],Xm=Rh.length,CL=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,wL="|";function TL(t,e={}){return t.split(wL).map(n=>{let i=n.trim().split(CL).filter(o=>o&&!!o.trim()),r=[];for(let o=0,s=i.length;o<s;o+=1){const a=i[o];let l=!1,c=-1;for(;!l&&++c<Xm;){const u=Rh[c];let h=u.isMultiMatch(a);h&&(r.push(new u(h,e)),l=!0)}if(!l)for(c=-1;++c<Xm;){const u=Rh[c];let h=u.isSingleMatch(a);if(h){r.push(new u(h,e));break}}}return r})}const SL=new Set([av.type,lv.type]);class kL{constructor(e,{isCaseSensitive:n=St.isCaseSensitive,includeMatches:i=St.includeMatches,minMatchCharLength:r=St.minMatchCharLength,ignoreLocation:o=St.ignoreLocation,findAllMatches:s=St.findAllMatches,location:a=St.location,threshold:l=St.threshold,distance:c=St.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:i,minMatchCharLength:r,findAllMatches:s,ignoreLocation:o,location:a,threshold:l,distance:c},this.pattern=n?e:e.toLowerCase(),this.query=TL(this.pattern,this.options)}static condition(e,n){return n.useExtendedSearch}searchIn(e){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:i,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let o=0,s=[],a=0;for(let l=0,c=n.length;l<c;l+=1){const u=n[l];s.length=0,o=0;for(let h=0,f=u.length;h<f;h+=1){const d=u[h],{isMatch:p,indices:g,score:y}=d.search(e);if(p){if(o+=1,a+=y,i){const b=d.constructor.type;SL.has(b)?s=[...s,...g]:s.push(g)}}else{a=0,o=0,s.length=0;break}}if(o){let h={isMatch:!0,score:a/o};return i&&(h.indices=s),h}}return{isMatch:!1,score:1}}}const Nh=[];function AL(...t){Nh.push(...t)}function Dh(t,e){for(let n=0,i=Nh.length;n<i;n+=1){let r=Nh[n];if(r.condition(t,e))return new r(t,e)}return new sv(t,e)}const zl={AND:"$and",OR:"$or"},jh={PATH:"$path",PATTERN:"$val"},Hh=t=>!!(t[zl.AND]||t[zl.OR]),EL=t=>!!t[jh.PATH],$L=t=>!Ti(t)&&nv(t)&&!Hh(t),Zm=t=>({[zl.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function cv(t,e,{auto:n=!0}={}){const i=r=>{let o=Object.keys(r);const s=EL(r);if(!s&&o.length>1&&!Hh(r))return i(Zm(r));if($L(r)){const l=s?r[jh.PATH]:o[0],c=s?r[jh.PATTERN]:r[l];if(!Gn(c))throw new Error(tL(l));const u={keyId:Ph(l),pattern:c};return n&&(u.searcher=Dh(c,e)),u}let a={children:[],operator:o[0]};return o.forEach(l=>{const c=r[l];Ti(c)&&c.forEach(u=>{a.children.push(i(u))})}),a};return Hh(t)||(t=Zm(t)),i(t)}function LL(t,{ignoreFieldNorm:e=St.ignoreFieldNorm}){t.forEach(n=>{let i=1;n.matches.forEach(({key:r,norm:o,score:s})=>{const a=r?r.weight:null;i*=Math.pow(s===0&&a?Number.EPSILON:s,(a||1)*(e?1:o))}),n.score=i})}function OL(t,e){const n=t.matches;e.matches=[],rn(n)&&n.forEach(i=>{if(!rn(i.indices)||!i.indices.length)return;const{indices:r,value:o}=i;let s={indices:r,value:o};i.key&&(s.key=i.key.src),i.idx>-1&&(s.refIndex=i.idx),e.matches.push(s)})}function ML(t,e){e.score=t.score}function FL(t,e,{includeMatches:n=St.includeMatches,includeScore:i=St.includeScore}={}){const r=[];return n&&r.push(OL),i&&r.push(ML),t.map(o=>{const{idx:s}=o,a={item:e[s],refIndex:s};return r.length&&r.forEach(l=>{l(o,a)}),a})}class Ho{constructor(e,n={},i){this.options={...St,...n},this.options.useExtendedSearch,this._keyStore=new rL(this.options.keys),this.setCollection(e,i)}setCollection(e,n){if(this._docs=e,n&&!(n instanceof sd))throw new Error(Q$);this._myIndex=n||ov(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){rn(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const n=[];for(let i=0,r=this._docs.length;i<r;i+=1){const o=this._docs[i];e(o,i)&&(this.removeAt(i),i-=1,r-=1,n.push(o))}return n}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:n=-1}={}){const{includeMatches:i,includeScore:r,shouldSort:o,sortFn:s,ignoreFieldNorm:a}=this.options;let l=Gn(e)?Gn(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return LL(l,{ignoreFieldNorm:a}),o&&l.sort(s),ev(n)&&n>-1&&(l=l.slice(0,n)),FL(l,this._docs,{includeMatches:i,includeScore:r})}_searchStringList(e){const n=Dh(e,this.options),{records:i}=this._myIndex,r=[];return i.forEach(({v:o,i:s,n:a})=>{if(!rn(o))return;const{isMatch:l,score:c,indices:u}=n.searchIn(o);l&&r.push({item:o,idx:s,matches:[{score:c,value:o,norm:a,indices:u}]})}),r}_searchLogical(e){const n=cv(e,this.options),i=(a,l,c)=>{if(!a.children){const{keyId:h,searcher:f}=a,d=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(l,h),searcher:f});return d&&d.length?[{idx:c,item:l,matches:d}]:[]}const u=[];for(let h=0,f=a.children.length;h<f;h+=1){const d=a.children[h],p=i(d,l,c);if(p.length)u.push(...p);else if(a.operator===zl.AND)return[]}return u},r=this._myIndex.records,o={},s=[];return r.forEach(({$:a,i:l})=>{if(rn(a)){let c=i(n,a,l);c.length&&(o[l]||(o[l]={idx:l,item:a,matches:[]},s.push(o[l])),c.forEach(({matches:u})=>{o[l].matches.push(...u)}))}}),s}_searchObjectList(e){const n=Dh(e,this.options),{keys:i,records:r}=this._myIndex,o=[];return r.forEach(({$:s,i:a})=>{if(!rn(s))return;let l=[];i.forEach((c,u)=>{l.push(...this._findMatches({key:c,value:s[u],searcher:n}))}),l.length&&o.push({idx:a,item:s,matches:l})}),o}_findMatches({key:e,value:n,searcher:i}){if(!rn(n))return[];let r=[];if(Ti(n))n.forEach(({v:o,i:s,n:a})=>{if(!rn(o))return;const{isMatch:l,score:c,indices:u}=i.searchIn(o);l&&r.push({score:c,key:e,value:o,idx:s,norm:a,indices:u})});else{const{v:o,n:s}=n,{isMatch:a,score:l,indices:c}=i.searchIn(o);a&&r.push({score:l,key:e,value:o,norm:s,indices:c})}return r}}Ho.version="7.0.0";Ho.createIndex=ov;Ho.parseIndex=fL;Ho.config=St;Ho.parseQuery=cv;AL(kL);const BL={key:0},IL={key:1},PL={key:2},RL={key:3},NL={key:4},DL=jt({__name:"titles",props:{no:{type:[Number,String],required:!0}},setup(t){return(e,n)=>(R(),nt("div",null,[+e.no==1?(R(),nt("p",BL,"Nix for genetics")):+e.no==2?(R(),nt("p",IL,"Next-generation sequencing")):+e.no==3?(R(),nt("p",PL,"Bioinformatics pipeline")):+e.no==4?(R(),nt("p",RL,"Nix : excellent community")):+e.no==5?(R(),nt("p",NL,"Thank you !")):Mt("v-if",!0)]))}}),jL=Dt(DL,[["__file","/@slidev/titles.md"]]),HL={class:"bg-main transform",shadow:"~",p:"x-4 y-2",border:"~ transparent rounded dark:main"},qL=["value","disabled"],zL=["border","onClick"],VL={"w-4":"","text-right":"",op50:"","text-sm":""},WL=jt({__name:"Goto",setup(t){const e=tt(),n=tt(),i=tt(),r=tt(),o=tt(""),s=tt(0);function a(_){return _!=null}const l=A(()=>new Ho(se.map(_=>{var w;return(w=_.meta)==null?void 0:w.slide}).filter(a),{keys:["no","title"],threshold:.3,shouldSort:!0,minMatchCharLength:1})),c=A(()=>o.value.startsWith("/")?o.value.substring(1):o.value),u=A(()=>l.value.search(c.value).map(_=>_.item)),h=A(()=>!!u.value.length);function f(){if(h.value){const _=u.value.at(s.value||0);_&&Xr(_.no)}d()}function d(){o.value="",go.value=!1}function p(_){_.preventDefault(),s.value++,s.value>=u.value.length&&(s.value=0),y()}function g(_){_.preventDefault(),s.value--,s.value<=-2&&(s.value=u.value.length-1),y()}function y(){var w;const _=(w=r.value)==null?void 0:w[s.value];_&&i.value&&(_.offsetTop+_.offsetHeight>i.value.offsetHeight+i.value.scrollTop?i.value.scrollTo({behavior:"smooth",top:_.offsetTop+_.offsetHeight-i.value.offsetHeight+1}):_.offsetTop<i.value.scrollTop&&i.value.scrollTo({behavior:"smooth",top:_.offsetTop}))}function b(_){s.value=0,o.value=_.target.value}function v(_){Xr(_),d()}return $t(go,async _=>{var w;_?(o.value="",s.value=0,setTimeout(()=>{var S;return(S=n.value)==null?void 0:S.focus()},0)):(w=n.value)==null||w.blur()}),$t(Qi,()=>{var _;(_=e.value)!=null&&_.contains(Qi.value)||d()}),(_,w)=>(R(),nt("div",{id:"slidev-goto-dialog",ref_key:"container",ref:e,class:ee(["fixed right-5 transition-all",O(go)?"top-5":"-top-20"]),"w-90":"","max-w-90":"","min-w-90":""},[X("div",HL,[X("input",{id:"slidev-goto-input",ref_key:"input",ref:n,value:o.value,type:"text",disabled:!O(go),class:ee(["outline-none bg-transparent",{"text-red-400":!h.value&&o.value}]),placeholder:"Goto...",onKeydown:[Ma(f,["enter"]),Ma(d,["escape"]),Ma(p,["down"]),Ma(g,["up"])],onInput:b},null,42,qL)]),u.value.length>0?(R(),nt("ul",{key:0,ref_key:"list",ref:i,class:"autocomplete-list",shadow:"~",border:"~ transparent rounded dark:main"},[(R(!0),nt(It,null,No(u.value,(S,B)=>(R(),nt("li",{ref_for:!0,ref_key:"items",ref:r,key:S.id,role:"button",tabindex:"0",p:"x-4 y-2","cursor-pointer":"",hover:"op100",flex:"~ gap-2","w-90":"","items-center":"",border:B===0?"":"t main",class:ee(s.value===B?"bg-active op100":"op80"),onClick:YT(C=>v(S.no),["stop","prevent"])},[X("div",VL,yn(S.no),1),at(O(jL),{no:S.no},null,8,["no"])],10,zL))),128))],512)):Mt("v-if",!0)],2))}}),UL=Dt(WL,[["__scopeId","data-v-f5ee02a7"],["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/Goto.vue"]]),YL=jt({__name:"Controls",setup(t){const e=ti(),n=ti();return(i,r)=>(R(),nt(It,null,[at(N$,{modelValue:O($e),"onUpdate:modelValue":r[0]||(r[0]=o=>Yt($e)?$e.value=o:null)},null,8,["modelValue"]),at(UL),e.value?(R(),Vt(O(e),{key:0})):Mt("v-if",!0),n.value?(R(),Vt(O(n),{key:1,modelValue:O(Tu),"onUpdate:modelValue":r[1]||(r[1]=o=>Yt(Tu)?Tu.value=o:null)},null,8,["modelValue"])):Mt("v-if",!0),O(Wt).info?(R(),Vt(Y$,{key:2,modelValue:O(bs),"onUpdate:modelValue":r[2]||(r[2]=o=>Yt(bs)?bs.value=o:null)},null,8,["modelValue"])):Mt("v-if",!0)],64))}}),GL=Dt(YL,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/Controls.vue"]]),KL={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},XL=X("path",{fill:"currentColor",d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3s3 1.3 3 3s-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3s-3-1.3-3-3s1.3-3 3-3"},null,-1),ZL=[XL];function JL(t,e){return R(),nt("svg",KL,[...ZL])}const QL={name:"carbon-settings-adjust",render:JL},t2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},e2=X("path",{fill:"currentColor",d:"M17 22v-8h-4v2h2v6h-3v2h8v-2zM16 8a1.5 1.5 0 1 0 1.5 1.5A1.5 1.5 0 0 0 16 8"},null,-1),n2=X("path",{fill:"currentColor",d:"M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14m0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4"},null,-1),i2=[e2,n2];function r2(t,e){return R(),nt("svg",t2,[...i2])}const o2={name:"carbon-information",render:r2},s2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},a2=X("path",{fill:"currentColor",d:"M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4zm0-10l-1.41-1.41L17 20.17V2h-2v18.17l-7.59-7.58L6 14l10 10z"},null,-1),l2=[a2];function c2(t,e){return R(),nt("svg",s2,[...l2])}const u2={name:"carbon-download",render:c2},h2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},f2=X("path",{fill:"currentColor",d:"M26 6v4H6V6zm0-2H6a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M10 16v10H6V16zm0-2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2m16 2v10H16V16zm0-2H16a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2"},null,-1),d2=[f2];function p2(t,e){return R(),nt("svg",h2,[...d2])}const m2={name:"carbon-template",render:p2},g2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},y2=X("path",{fill:"currentColor",d:"M29.415 19L27.7 17.285A2.97 2.97 0 0 0 28 16a3 3 0 1 0-3 3a2.97 2.97 0 0 0 1.286-.3L28 20.414V28h-6v-3a7.008 7.008 0 0 0-7-7H9a7.008 7.008 0 0 0-7 7v5h28v-9.586A1.988 1.988 0 0 0 29.415 19M4 25a5.006 5.006 0 0 1 5-5h6a5.006 5.006 0 0 1 5 5v3H4Z"},null,-1),_2=X("path",{fill:"currentColor",d:"M12 4a5 5 0 1 1-5 5a5 5 0 0 1 5-5m0-2a7 7 0 1 0 7 7a7 7 0 0 0-7-7"},null,-1),v2=[y2,_2];function b2(t,e){return R(),nt("svg",g2,[...v2])}const x2={name:"carbon-user-speaker",render:b2},C2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},w2=X("path",{fill:"currentColor",d:"M15 10h2v8h-2zm5 4h2v4h-2zm-10-2h2v6h-2z"},null,-1),T2=X("path",{fill:"currentColor",d:"M25 4h-8V2h-2v2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8v6h-4v2h10v-2h-4v-6h8a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 16H7V6h18Z"},null,-1),S2=[w2,T2];function k2(t,e){return R(),nt("svg",C2,[...S2])}const A2={name:"carbon-presentation-file",render:k2},E2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},$2=X("path",{fill:"currentColor",d:"M27.307 6.107L30 3.414L28.586 2l-2.693 2.693L24.8 3.6a1.933 1.933 0 0 0-2.8 0l-18 18V28h6.4l18-18a1.933 1.933 0 0 0 0-2.8ZM9.6 26H6v-3.6L23.4 5L27 8.6ZM9 11.586L16.586 4L18 5.414L10.414 13z"},null,-1),L2=[$2];function O2(t,e){return R(),nt("svg",E2,[...L2])}const M2={name:"carbon-pen",render:O2},F2={class:"slidev-icon",viewBox:"0 0 256 256",width:"1.2em",height:"1.2em"},B2=X("g",{fill:"currentColor"},[X("path",{d:"M213.66 201L201 213.66a8 8 0 0 1-11.31 0L140 164a8 8 0 0 0-13 2.46l-19.46 44.77a8 8 0 0 1-14.85-.71L40.41 50.44a8 8 0 0 1 10-10l160.1 52.24a8 8 0 0 1 .71 14.85L166.45 127a8 8 0 0 0-2.45 13l49.67 49.67a8 8 0 0 1-.01 11.33",opacity:".2"}),X("path",{d:"m169.64 134.33l44.77-19.46a16 16 0 0 0-1.41-29.8L52.92 32.8A16 16 0 0 0 32.8 52.92L85.07 213a15.83 15.83 0 0 0 14.41 11h.78a15.83 15.83 0 0 0 14.61-9.59l19.46-44.77L184 219.31a16 16 0 0 0 22.63 0l12.68-12.68a16 16 0 0 0 0-22.63Zm-69.48 73.76l.06-.05Zm95.15-.09l-49.67-49.67a16 16 0 0 0-26 4.94l-19.42 44.65L48 48l159.87 52.21l-44.64 19.41a16 16 0 0 0-4.94 26L208 195.31Z"})],-1),I2=[B2];function P2(t,e){return R(),nt("svg",F2,[...I2])}const R2={name:"ph-cursor-duotone",render:P2},N2={class:"slidev-icon",viewBox:"0 0 256 256",width:"1.2em",height:"1.2em"},D2=X("path",{fill:"currentColor",d:"M219.31 192a16 16 0 0 1 0 22.63l-4.68 4.68a16 16 0 0 1-22.63 0l-55.25-55.24l-21.88 50.34a15.84 15.84 0 0 1-14.61 9.59h-.78a15.82 15.82 0 0 1-14.41-11L32.8 52.92A15.95 15.95 0 0 1 52.92 32.8L213 85.07a16 16 0 0 1 1.41 29.8l-50.34 21.88Z"},null,-1),j2=[D2];function H2(t,e){return R(),nt("svg",N2,[...j2])}const uv={name:"ph-cursor-fill",render:H2},q2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},z2=X("path",{fill:"currentColor",d:"M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6M5.394 6.813L6.81 5.399l3.505 3.506L8.9 10.319zM2 15.005h5v2H2zm3.394 10.193L8.9 21.692l1.414 1.414l-3.505 3.506zM15 25.005h2v5h-2zm6.687-1.9l1.414-1.414l3.506 3.506l-1.414 1.414zm3.313-8.1h5v2h-5zm-3.313-6.101l3.506-3.506l1.414 1.414l-3.506 3.506zM15 2.005h2v5h-2z"},null,-1),V2=[z2];function W2(t,e){return R(),nt("svg",q2,[...V2])}const U2={name:"carbon-sun",render:W2},Y2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},G2=X("path",{fill:"currentColor",d:"M13.503 5.414a15.076 15.076 0 0 0 11.593 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3"},null,-1),K2=[G2];function X2(t,e){return R(),nt("svg",Y2,[...K2])}const Z2={name:"carbon-moon",render:X2},J2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Q2=X("path",{fill:"currentColor",d:"M8 4v4H4V4Zm2-2H2v8h8Zm8 2v4h-4V4Zm2-2h-8v8h8Zm8 2v4h-4V4Zm2-2h-8v8h8ZM8 14v4H4v-4Zm2-2H2v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8ZM8 24v4H4v-4Zm2-2H2v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Z"},null,-1),tO=[Q2];function eO(t,e){return R(),nt("svg",J2,[...tO])}const nO={name:"carbon-apps",render:eO},iO={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},rO=X("path",{fill:"currentColor",d:"m18 6l-1.43 1.393L24.15 15H4v2h20.15l-7.58 7.573L18 26l10-10z"},null,-1),oO=[rO];function sO(t,e){return R(),nt("svg",iO,[...oO])}const aO={name:"carbon-arrow-right",render:sO},lO={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},cO=X("path",{fill:"currentColor",d:"m14 26l1.41-1.41L7.83 17H28v-2H7.83l7.58-7.59L14 6L4 16z"},null,-1),uO=[cO];function hO(t,e){return R(),nt("svg",lO,[...uO])}const fO={name:"carbon-arrow-left",render:hO},dO={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},pO=X("path",{fill:"currentColor",d:"M20 2v2h6.586L18 12.582L19.414 14L28 5.414V12h2V2zm-6 17.416L12.592 18L4 26.586V20H2v10h10v-2H5.414z"},null,-1),mO=[pO];function gO(t,e){return R(),nt("svg",dO,[...mO])}const yO={name:"carbon-maximize",render:gO},_O={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},vO=X("path",{fill:"currentColor",d:"M4 18v2h6.586L2 28.582L3.414 30L12 21.414V28h2V18zM30 3.416L28.592 2L20 10.586V4h-2v10h10v-2h-6.586z"},null,-1),bO=[vO];function xO(t,e){return R(),nt("svg",_O,[...bO])}const CO={name:"carbon-minimize",render:xO},wO={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},TO=X("path",{fill:"currentColor",d:"m13 24l-9-9l1.414-1.414L13 21.171L26.586 7.586L28 9z"},null,-1),SO=[TO];function kO(t,e){return R(),nt("svg",wO,[...SO])}const AO={name:"carbon-checkmark",render:kO},EO={class:"select-list"},$O={class:"title"},LO={class:"items"},OO=["onClick"],MO=jt({__name:"SelectList",props:{modelValue:{type:[Object,String,Number]},title:{type:String},items:{type:Array}},setup(t,{emit:e}){const r=Yn(t,"modelValue",e,{passive:!0});return(o,s)=>{const a=AO;return R(),nt("div",EO,[X("div",$O,yn(t.title),1),X("div",LO,[(R(!0),nt(It,null,No(t.items,l=>(R(),nt("div",{key:l.value,class:ee(["item",{active:O(r)===l.value}]),onClick:()=>{var c;r.value=l.value,(c=l.onClick)==null||c.call(l)}},[at(a,{class:ee(["text-green-500",{"opacity-0":O(r)!==l.value}])},null,8,["class"]),Ci(" "+yn(l.display||l.value),1)],10,OO))),128))])])}}}),FO=Dt(MO,[["__scopeId","data-v-3f89fa11"],["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/SelectList.vue"]]),BO={class:"text-sm"},IO=jt({__name:"Settings",setup(t){const e=[{display:"Fit",value:0},{display:"1:1",value:1}];return(n,i)=>(R(),nt("div",BO,[at(FO,{modelValue:O(rl),"onUpdate:modelValue":i[0]||(i[0]=r=>Yt(rl)?rl.value=r:null),title:"Scale",items:e},null,8,["modelValue"])]))}}),PO=Dt(IO,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/Settings.vue"]]),RO={key:0,class:"rounded-md bg-main shadow absolute bottom-10 left-0 z-20","dark:border":"~ main"},NO=jt({__name:"MenuButton",props:{modelValue:{default:!1},disabled:{default:!1}},setup(t,{emit:e}){const r=Yn(t,"modelValue",e,{passive:!0}),o=tt();return Sk(o,()=>{r.value=!1}),(s,a)=>(R(),nt("div",{ref_key:"el",ref:o,class:"flex relative"},[X("button",{class:ee({disabled:t.disabled}),onClick:a[0]||(a[0]=l=>r.value=!O(r))},[He(s.$slots,"button",{class:ee({disabled:t.disabled})})],2),(R(),Vt(My,null,[O(r)?(R(),nt("div",RO,[He(s.$slots,"menu")])):Mt("v-if",!0)],1024))],512))}}),DO=Dt(NO,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/MenuButton.vue"]]),jO={},HO={class:"w-1px opacity-10 bg-current m-1 lg:m-2"};function qO(t,e){return R(),nt("div",HO)}const Na=Dt(jO,[["render",qO],["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/VerticalDivider.vue"]]),zO={render(){return[]}},VO={class:"slidev-icon-btn"},WO={class:"h-40px flex",p:"l-1 t-0.5 r-2",text:"sm leading-2"},UO={class:"my-auto"},YO={class:"opacity-50"},GO=jt({__name:"NavControls",props:{persist:{default:!1}},setup(t){const e=t,n=$h.smaller("md"),{isFullscreen:i,toggle:r}=z_,o=A(()=>df.value?`?password=${df.value}`:""),s=A(()=>`/presenter/${le.value}${o.value}`),a=A(()=>`/${le.value}${o.value}`),l=tt();function c(){l.value&&Qi.value&&l.value.contains(Qi.value)&&Qi.value.blur()}const u=A(()=>e.persist?"text-$slidev-controls-foreground bg-transparent":"rounded-md bg-main shadow dark:border dark:border-gray-400 dark:border-opacity-10"),h=ti(),f=ti();return Qt(()=>import("./DrawingControls-BpEX6Ul-.js"),__vite__mapDeps([])).then(d=>f.value=d.default),(d,p)=>{const g=CO,y=yO,b=fO,v=aO,_=nO,w=Z2,S=U2,B=uv,C=R2,P=M2,E=A2,F=Ll("RouterLink"),ot=x2,V=m2,W=u2,N=o2,j=QL;return R(),nt("nav",{ref_key:"root",ref:l,class:"flex flex-col"},[X("div",{class:ee(["flex flex-wrap-reverse text-xl gap-0.5 p-1 lg:gap-1 lg:p-2",u.value]),onMouseleave:c},[O(pi)?Mt("v-if",!0):(R(),nt("button",{key:0,class:"slidev-icon-btn",onClick:p[0]||(p[0]=(...Y)=>O(r)&&O(r)(...Y))},[O(i)?(R(),nt(It,{key:0},[at(Ue,{text:"Close fullscreen"}),at(g)],64)):(R(),nt(It,{key:1},[at(Ue,{text:"Enter fullscreen"}),at(y)],64))])),X("button",{class:ee(["slidev-icon-btn",{disabled:!O(sq)}]),onClick:p[1]||(p[1]=(...Y)=>O(nr)&&O(nr)(...Y))},[at(Ue,{text:"Go to previous slide"}),at(b)],2),X("button",{class:ee(["slidev-icon-btn",{disabled:!O(oq)}]),title:"Next",onClick:p[2]||(p[2]=(...Y)=>O(er)&&O(er)(...Y))},[at(Ue,{text:"Go to next slide"}),at(v)],2),O(pi)?Mt("v-if",!0):(R(),nt("button",{key:1,class:"slidev-icon-btn",title:"Slides overview",onClick:p[3]||(p[3]=Y=>O(V_)())},[at(Ue,{text:"Show slide overview"}),at(_)])),O(Bh)?Mt("v-if",!0):(R(),nt("button",{key:2,class:"slidev-icon-btn",title:"Toggle dark mode",onClick:p[4]||(p[4]=Y=>O(X_)())},[O(Fc)?(R(),nt(It,{key:0},[at(Ue,{text:"Switch to light theme"}),at(w)],64)):(R(),nt(It,{key:1},[at(Ue,{text:"Switch to dark mode theme"}),at(S)],64))])),at(Na),O(pi)?Mt("v-if",!0):(R(),nt(It,{key:3},[!O(De)&&!O(n)&&h.value?(R(),nt(It,{key:0},[at(O(h)),at(Na)],64)):Mt("v-if",!0),O(De)?(R(),nt("button",{key:1,class:"slidev-icon-btn",title:"Show presenter cursor",onClick:p[5]||(p[5]=Y=>Su.value=!O(Su))},[O(Su)?(R(),nt(It,{key:0},[at(Ue,{text:"Hide presenter cursor"}),at(B)],64)):(R(),nt(It,{key:1},[at(Ue,{text:"Show presenter cursor"}),at(C)],64))])):Mt("v-if",!0)],64)),(!O(Wt).drawings.presenterOnly||O(De))&&!O(pi)?(R(),nt(It,{key:4},[X("button",{class:"slidev-icon-btn relative",title:"Drawing",onClick:p[6]||(p[6]=Y=>gn.value=!O(gn))},[O(gn)?(R(),Vt(Ue,{key:0,text:O(gn)?"Hide drawing toolbar":"Show drawing toolbar"},null,8,["text"])):Mt("v-if",!0),at(P),O(gn)?(R(),nt("div",{key:1,class:"absolute left-1 right-1 bottom-0 h-0.7 rounded-full",style:Ae({background:O($r).color})},null,4)):Mt("v-if",!0)]),at(Na)],64)):Mt("v-if",!0),O(pi)?Mt("v-if",!0):(R(),nt(It,{key:5},[O(De)?(R(),Vt(F,{key:0,to:a.value,class:"slidev-icon-btn",title:"Play Mode"},{default:_e(()=>[at(E)]),_:1},8,["to"])):Mt("v-if",!0),O(tq)?(R(),Vt(F,{key:1,to:s.value,class:"slidev-icon-btn",title:"Presenter Mode"},{default:_e(()=>[at(ot)]),_:1},8,["to"])):Mt("v-if",!0),Mt("v-if",!0),O(De)?(R(),nt("button",{key:3,class:"slidev-icon-btn",title:"Toggle Presenter Layout",onClick:p[8]||(p[8]=(...Y)=>O(Im)&&O(Im)(...Y))},[at(V),Ci(" "+yn(O(hs)),1)])):Mt("v-if",!0)],64)),(R(),nt(It,{key:6},[O(Wt).download?(R(),nt("button",{key:0,class:"slidev-icon-btn",onClick:p[9]||(p[9]=(...Y)=>O(pf)&&O(pf)(...Y))},[at(Ue,{text:"Download as PDF"}),at(W)])):Mt("v-if",!0)],64)),!O(De)&&O(Wt).info&&!O(pi)?(R(),nt("button",{key:7,class:"slidev-icon-btn",onClick:p[10]||(p[10]=Y=>bs.value=!O(bs))},[at(Ue,{text:"Show info"}),at(N)])):Mt("v-if",!0),!O(De)&&!O(pi)?(R(),Vt(DO,{key:8},{button:_e(()=>[X("button",VO,[at(Ue,{text:"Adjust settings"}),at(j)])]),menu:_e(()=>[at(PO)]),_:1})):Mt("v-if",!0),O(pi)?Mt("v-if",!0):(R(),Vt(Na,{key:9})),X("div",WO,[X("div",UO,[Ci(yn(O(le))+" ",1),X("span",YO,"/ "+yn(O(eq)),1)])]),at(O(zO))],34)],512)}}}),KO=Dt(GO,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/NavControls.vue"]]);function XO(){const t=wE(),e=tt(!1);let n,i;const r=typeof document<"u"&&"startViewTransition"in document;return t.beforeResolve((o,s)=>{var d,p;const a=(d=s.meta.slide)==null?void 0:d.no,l=(p=o.meta.slide)==null?void 0:p.no;if(!(a!==void 0&&l!==void 0&&(s.meta.transition==="view-transition"&&a<l||o.meta.transition==="view-transition"&&l<a))){e.value=!1;return}if(!r){e.value=!1,console.warn("View transition is not supported in your browser, fallback to normal transition.");return}e.value=!0;const c=new Promise((g,y)=>{n=g,i=y});let u;const h=new Promise(g=>u=g);return document.startViewTransition(()=>(u(),c)).finished.then(()=>{i=void 0,n=void 0}),h}),r&&t.afterEach(()=>{n==null||n(),i==null||i()}),e}const Vl=tt(!1),hv={render(){return[]}},fv={render(){return[]}},ZO={key:0,class:"absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl"},JO=jt({__name:"PresenterMouse",setup(t){return(e,n)=>{const i=uv;return O(bu).cursor?(R(),nt("div",ZO,[at(i,{class:"absolute",style:Ae({left:`${O(bu).cursor.x}%`,top:`${O(bu).cursor.y}%`})},null,8,["style"])])):Mt("v-if",!0)}}}),QO=Dt(JO,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/PresenterMouse.vue"]]),tM=jt({__name:"SlidesShow",props:{renderContext:{type:String,required:!0}},setup(t){$t(Le,()=>{var s,a;(s=Le.value)!=null&&s.meta&&Le.value.meta.preload!==!1&&(Le.value.meta.__preloaded=!0),(a=Yu.value)!=null&&a.meta&&Yu.value.meta.preload!==!1&&(Yu.value.meta.__preloaded=!0)},{immediate:!0});const e=XO();let n=[];ze.beforeEach(()=>{var s;n=[(s=Le.value)==null?void 0:s.path,on.value]});const i=ti();Qt(()=>import("./DrawingLayer-8dAmyACc.js"),__vite__mapDeps([])).then(s=>i.value=s.default);const r=A(()=>se.filter(s=>{var a;return((a=s.meta)==null?void 0:a.__preloaded)||s===Le.value}));function o(){Vl.value=!0}return(s,a)=>(R(),nt(It,null,[Mt(" Global Bottom "),at(O(fv)),Mt(" Slides "),(R(),Vt(aw(O(e)?"div":jT),Ur(O(Vl)?{}:O(cq),{id:"slideshow",tag:"div",onAfterLeave:o}),{default:_e(()=>[(R(!0),nt(It,null,No(r.value,l=>{var c;return Ey((R(),Vt(O(od),{key:l.path,is:l==null?void 0:l.component,clicks:l===O(Le)?O(on):l.path===O(n)[0]?O(n)[1]:0,"clicks-elements":((c=l.meta)==null?void 0:c.__clicksElements)||[],"clicks-disabled":!1,class:ee(O(rd)(l)),route:l,"render-context":s.renderContext},null,8,["is","clicks","clicks-elements","class","route","render-context"])),[[Zf,l===O(Le)]])}),128))]),_:1},16)),Mt(" Global Top "),at(O(hv)),i.value?(R(),Vt(O(i),{key:0})):Mt("v-if",!0),O(De)?Mt("v-if",!0):(R(),Vt(QO,{key:1}))],64))}}),eM=Dt(tM,[["__scopeId","data-v-afb4231e"],["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/SlidesShow.vue"]]),nM=jt({__name:"PrintStyle",setup(t){function e(n,{slots:i}){if(i.default)return Ze("style",i.default())}return(n,i)=>(R(),Vt(e,null,{default:_e(()=>[Ci(" @page { size: "+yn(O(Ji))+"px "+yn(O(Qf))+"px; margin: 0px; } ",1)]),_:1}))}}),dv=Dt(nM,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/PrintStyle.vue"]]),iM=jt({__name:"Play",setup(t){y$();const e=tt();function n(o){var s;Bm.value||((s=o.target)==null?void 0:s.id)==="slide-container"&&(o.screenX/window.innerWidth>.6?er():nr())}uq(e);const i=A(()=>SE.value||Bm.value);ti();const r=ti();return Qt(()=>import("./DrawingControls-BpEX6Ul-.js"),__vite__mapDeps([])).then(o=>r.value=o.default),(o,s)=>(R(),nt(It,null,[O(Po)?(R(),Vt(dv,{key:0})):Mt("v-if",!0),X("div",{id:"page-root",ref_key:"root",ref:e,class:"grid grid-cols-[1fr_max-content]",style:Ae(O(td))},[at(Q_,{class:"w-full h-full",style:Ae({background:"var(--slidev-slide-container-background, black)"}),width:O(Po)?O(Dr).width.value:void 0,scale:O(rl),onPointerdown:n},{default:_e(()=>[at(eM,{"render-context":"slide"})]),controls:_e(()=>[X("div",{class:ee(["absolute bottom-0 left-0 transition duration-300 opacity-0 hover:opacity-100",[i.value?"opacity-100 right-0":"opacity-0 p-2",O(Ds)?"pointer-events-none":""]])},[at(KO,{class:"m-auto",persist:i.value},null,8,["persist"])],2),!O(Wt).drawings.presenterOnly&&!O(pi)&&r.value?(R(),Vt(O(r),{key:0,class:"ml-0"})):Mt("v-if",!0)]),_:1},8,["style","width","scale"]),Mt("v-if",!0)],4),at(GL)],64))}}),rM=Dt(iM,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/Play.vue"]]);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function pv(t){return typeof t>"u"||t===null}function oM(t){return typeof t=="object"&&t!==null}function sM(t){return Array.isArray(t)?t:pv(t)?[]:[t]}function aM(t,e){var n,i,r,o;if(e)for(o=Object.keys(e),n=0,i=o.length;n<i;n+=1)r=o[n],t[r]=e[r];return t}function lM(t,e){var n="",i;for(i=0;i<e;i+=1)n+=t;return n}function cM(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var uM=pv,hM=oM,fM=sM,dM=lM,pM=cM,mM=aM,ad={isNothing:uM,isObject:hM,toArray:fM,repeat:dM,isNegativeZero:pM,extend:mM};function mv(t,e){var n="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+=`
`+t.mark.snippet),i+" "+n):i}function Hs(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=mv(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Hs.prototype=Object.create(Error.prototype);Hs.prototype.constructor=Hs;Hs.prototype.toString=function(e){return this.name+": "+mv(this,e)};var Ar=Hs,gM=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],yM=["scalar","sequence","mapping"];function _M(t){var e={};return t!==null&&Object.keys(t).forEach(function(n){t[n].forEach(function(i){e[String(i)]=n})}),e}function vM(t,e){if(e=e||{},Object.keys(e).forEach(function(n){if(gM.indexOf(n)===-1)throw new Ar('Unknown option "'+n+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(n){return n},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=_M(e.styleAliases||null),yM.indexOf(this.kind)===-1)throw new Ar('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Ie=vM;function Jm(t,e){var n=[];return t[e].forEach(function(i){var r=n.length;n.forEach(function(o,s){o.tag===i.tag&&o.kind===i.kind&&o.multi===i.multi&&(r=s)}),n[r]=i}),n}function bM(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,n;function i(r){r.multi?(t.multi[r.kind].push(r),t.multi.fallback.push(r)):t[r.kind][r.tag]=t.fallback[r.tag]=r}for(e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(i);return t}function qh(t){return this.extend(t)}qh.prototype.extend=function(e){var n=[],i=[];if(e instanceof Ie)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(n=n.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new Ar("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof Ie))throw new Ar("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Ar("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Ar("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(o){if(!(o instanceof Ie))throw new Ar("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(qh.prototype);return r.implicit=(this.implicit||[]).concat(n),r.explicit=(this.explicit||[]).concat(i),r.compiledImplicit=Jm(r,"implicit"),r.compiledExplicit=Jm(r,"explicit"),r.compiledTypeMap=bM(r.compiledImplicit,r.compiledExplicit),r};var xM=qh,CM=new Ie("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),wM=new Ie("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),TM=new Ie("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),SM=new xM({explicit:[CM,wM,TM]});function kM(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function AM(){return null}function EM(t){return t===null}var $M=new Ie("tag:yaml.org,2002:null",{kind:"scalar",resolve:kM,construct:AM,predicate:EM,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function LM(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function OM(t){return t==="true"||t==="True"||t==="TRUE"}function MM(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var FM=new Ie("tag:yaml.org,2002:bool",{kind:"scalar",resolve:LM,construct:OM,predicate:MM,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function BM(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function IM(t){return 48<=t&&t<=55}function PM(t){return 48<=t&&t<=57}function RM(t){if(t===null)return!1;var e=t.length,n=0,i=!1,r;if(!e)return!1;if(r=t[n],(r==="-"||r==="+")&&(r=t[++n]),r==="0"){if(n+1===e)return!0;if(r=t[++n],r==="b"){for(n++;n<e;n++)if(r=t[n],r!=="_"){if(r!=="0"&&r!=="1")return!1;i=!0}return i&&r!=="_"}if(r==="x"){for(n++;n<e;n++)if(r=t[n],r!=="_"){if(!BM(t.charCodeAt(n)))return!1;i=!0}return i&&r!=="_"}if(r==="o"){for(n++;n<e;n++)if(r=t[n],r!=="_"){if(!IM(t.charCodeAt(n)))return!1;i=!0}return i&&r!=="_"}}if(r==="_")return!1;for(;n<e;n++)if(r=t[n],r!=="_"){if(!PM(t.charCodeAt(n)))return!1;i=!0}return!(!i||r==="_")}function NM(t){var e=t,n=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(n=-1),e=e.slice(1),i=e[0]),e==="0")return 0;if(i==="0"){if(e[1]==="b")return n*parseInt(e.slice(2),2);if(e[1]==="x")return n*parseInt(e.slice(2),16);if(e[1]==="o")return n*parseInt(e.slice(2),8)}return n*parseInt(e,10)}function DM(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!ad.isNegativeZero(t)}var jM=new Ie("tag:yaml.org,2002:int",{kind:"scalar",resolve:RM,construct:NM,predicate:DM,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),HM=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function qM(t){return!(t===null||!HM.test(t)||t[t.length-1]==="_")}function zM(t){var e,n;return e=t.replace(/_/g,"").toLowerCase(),n=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:n*parseFloat(e,10)}var VM=/^[-+]?[0-9]+e/;function WM(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ad.isNegativeZero(t))return"-0.0";return n=t.toString(10),VM.test(n)?n.replace("e",".e"):n}function UM(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ad.isNegativeZero(t))}var YM=new Ie("tag:yaml.org,2002:float",{kind:"scalar",resolve:qM,construct:zM,predicate:UM,represent:WM,defaultStyle:"lowercase"}),GM=SM.extend({implicit:[$M,FM,jM,YM]}),KM=GM,gv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),yv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function XM(t){return t===null?!1:gv.exec(t)!==null||yv.exec(t)!==null}function ZM(t){var e,n,i,r,o,s,a,l=0,c=null,u,h,f;if(e=gv.exec(t),e===null&&(e=yv.exec(t)),e===null)throw new Error("Date resolve error");if(n=+e[1],i=+e[2]-1,r=+e[3],!e[4])return new Date(Date.UTC(n,i,r));if(o=+e[4],s=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],h=+(e[11]||0),c=(u*60+h)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(n,i,r,o,s,a,l)),c&&f.setTime(f.getTime()-c),f}function JM(t){return t.toISOString()}var QM=new Ie("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:XM,construct:ZM,instanceOf:Date,represent:JM});function tF(t){return t==="<<"||t===null}var eF=new Ie("tag:yaml.org,2002:merge",{kind:"scalar",resolve:tF}),ld=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function nF(t){if(t===null)return!1;var e,n,i=0,r=t.length,o=ld;for(n=0;n<r;n++)if(e=o.indexOf(t.charAt(n)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function iF(t){var e,n,i=t.replace(/[\r\n=]/g,""),r=i.length,o=ld,s=0,a=[];for(e=0;e<r;e++)e%4===0&&e&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(i.charAt(e));return n=r%4*6,n===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):n===18?(a.push(s>>10&255),a.push(s>>2&255)):n===12&&a.push(s>>4&255),new Uint8Array(a)}function rF(t){var e="",n=0,i,r,o=t.length,s=ld;for(i=0;i<o;i++)i%3===0&&i&&(e+=s[n>>18&63],e+=s[n>>12&63],e+=s[n>>6&63],e+=s[n&63]),n=(n<<8)+t[i];return r=o%3,r===0?(e+=s[n>>18&63],e+=s[n>>12&63],e+=s[n>>6&63],e+=s[n&63]):r===2?(e+=s[n>>10&63],e+=s[n>>4&63],e+=s[n<<2&63],e+=s[64]):r===1&&(e+=s[n>>2&63],e+=s[n<<4&63],e+=s[64],e+=s[64]),e}function oF(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var sF=new Ie("tag:yaml.org,2002:binary",{kind:"scalar",resolve:nF,construct:iF,predicate:oF,represent:rF}),aF=Object.prototype.hasOwnProperty,lF=Object.prototype.toString;function cF(t){if(t===null)return!0;var e=[],n,i,r,o,s,a=t;for(n=0,i=a.length;n<i;n+=1){if(r=a[n],s=!1,lF.call(r)!=="[object Object]")return!1;for(o in r)if(aF.call(r,o))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(o)===-1)e.push(o);else return!1}return!0}function uF(t){return t!==null?t:[]}var hF=new Ie("tag:yaml.org,2002:omap",{kind:"sequence",resolve:cF,construct:uF}),fF=Object.prototype.toString;function dF(t){if(t===null)return!0;var e,n,i,r,o,s=t;for(o=new Array(s.length),e=0,n=s.length;e<n;e+=1){if(i=s[e],fF.call(i)!=="[object Object]"||(r=Object.keys(i),r.length!==1))return!1;o[e]=[r[0],i[r[0]]]}return!0}function pF(t){if(t===null)return[];var e,n,i,r,o,s=t;for(o=new Array(s.length),e=0,n=s.length;e<n;e+=1)i=s[e],r=Object.keys(i),o[e]=[r[0],i[r[0]]];return o}var mF=new Ie("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:dF,construct:pF}),gF=Object.prototype.hasOwnProperty;function yF(t){if(t===null)return!0;var e,n=t;for(e in n)if(gF.call(n,e)&&n[e]!==null)return!1;return!0}function _F(t){return t!==null?t:{}}var vF=new Ie("tag:yaml.org,2002:set",{kind:"mapping",resolve:yF,construct:_F});KM.extend({implicit:[QM,eF],explicit:[sF,hF,mF,vF]});function Qm(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?" ":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}var bF=new Array(256),xF=new Array(256);for(var co=0;co<256;co++)bF[co]=Qm(co)?1:0,xF[co]=Qm(co);function CF(t){return Array.from(new Set(t))}function tg(...t){let e,n,i;t.length===1?(e=0,i=1,[n]=t):[e,n,i=1]=t;const r=[];let o=e;for(;o<n;)r.push(o),o+=i||1;return r}function wF(t,e){if(!e||e==="all"||e==="*")return tg(1,t+1);const n=[];for(const i of e.split(/[,;]/g))if(!i.includes("-"))n.push(+i);else{const[r,o]=i.split("-",2);n.push(...tg(+r,o?+o+1:t+1))}return CF(n).filter(i=>i<=t).sort((i,r)=>i-r)}function _v(t){const e=A(()=>t.value.path),n=A(()=>se.length),i=A(()=>Number.parseInt(e.value.split(/\//g).slice(-1)[0])||1),r=A(()=>Qc(i.value)),o=A(()=>se.find(f=>f.path===`${i.value}`)),s=A(()=>{var f,d,p;return(p=(d=(f=o.value)==null?void 0:f.meta)==null?void 0:d.slide)==null?void 0:p.id}),a=A(()=>{var f,d;return((d=(f=o.value)==null?void 0:f.meta)==null?void 0:d.layout)||(i.value===1?"cover":"default")}),l=A(()=>se.find(f=>f.path===`${Math.min(se.length,i.value+1)}`)),c=A(()=>se.filter(f=>{var d,p;return(p=(d=f.meta)==null?void 0:d.slide)==null?void 0:p.title}).reduce((f,d)=>(Wd(f,d),f),[])),u=A(()=>Ud(c.value,o.value)),h=A(()=>Yd(u.value));return{rawRoutes:se,route:t,path:e,total:n,currentPage:i,currentPath:r,currentRoute:o,currentSlideId:s,currentLayout:a,nextRoute:l,rawTree:c,treeWithActiveStatuses:u,tree:h,go:Xr,downloadPDF:pf,next:er,nextSlide:Js,openInEditor:hq,prev:nr,prevSlide:Qs}}function vv(t,e,n){const i=tt(0);ke(()=>{ze.afterEach(async()=>{await ke(),i.value+=1})});const r=A(()=>{var l,c;return i.value,((c=(l=e.value)==null?void 0:l.meta)==null?void 0:c.__clicksElements)||[]}),o=A(()=>{var l,c;return+(((c=(l=e.value)==null?void 0:l.meta)==null?void 0:c.clicks)??r.value.length)}),s=A(()=>n.value<se.length-1||t.value<o.value),a=A(()=>n.value>1||t.value>0);return{clicks:t,clicksElements:r,clicksTotal:o,hasNext:s,hasPrev:a}}const TF=["id"],SF=jt({__name:"PrintSlideClick",props:{clicks:{type:Number,required:!0},clicksElements:{type:Array,required:!1},nav:{type:Object,required:!0},route:{type:Object,required:!0}},emits:["update:clicksElements"],setup(t,{emit:e}){const n=t,r=Yn(n,"clicksElements",e),o=A(()=>({height:`${Qf}px`,width:`${Ji}px`})),s=ti();Qt(()=>Promise.resolve().then(()=>L$),void 0).then(u=>s.value=u.default);const a=A(()=>n.clicks),l=vv(a,n.nav.currentRoute,n.nav.currentPage),c=A(()=>`${n.route.path.toString().padStart(3,"0")}-${(a.value+1).toString().padStart(2,"0")}`);return de(Li,zt({nav:{...n.nav,...l},configs:Wt,themeConfigs:A(()=>Wt.themeConfig)})),(u,h)=>{var f;return R(),nt("div",{id:c.value,class:"print-slide-container",style:Ae(o.value)},[at(O(fv)),at(O(od),{is:(f=u.route)==null?void 0:f.component,"clicks-elements":O(r),"onUpdate:clicksElements":h[0]||(h[0]=d=>Yt(r)?r.value=d:null),clicks:O(zr)?void 0:a.value,"clicks-disabled":O(zr),class:ee(O(rd)(u.route)),route:u.route},null,8,["is","clicks-elements","clicks","clicks-disabled","class","route"]),s.value?(R(),Vt(O(s),{key:0,page:+u.route.path},null,8,["page"])):Mt("v-if",!0),at(O(hv))],12,TF)}}}),eg=Dt(SF,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/PrintSlideClick.vue"]]),kF=jt({__name:"PrintSlide",props:{route:{type:Object,required:!0}},setup(t){var s;const e=t,n=tt(((s=e.route.meta)==null?void 0:s.__clicksElements)||[]),i=A(()=>{var a;return((a=e.route.meta)==null?void 0:a.clicks)??n.value.length}),r=A(()=>e.route),o=_v(r);return(a,l)=>(R(),nt(It,null,[at(eg,{"clicks-elements":n.value,"onUpdate:clicksElements":l[0]||(l[0]=c=>n.value=c),clicks:0,nav:O(o),route:r.value},null,8,["clicks-elements","nav","route"]),O(zr)?Mt("v-if",!0):(R(!0),nt(It,{key:0},No(i.value,c=>(R(),Vt(eg,{key:c,clicks:c,nav:O(o),route:r.value},null,8,["clicks","nav","route"]))),128))],64))}}),AF=Dt(kF,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/PrintSlide.vue"]]),EF={id:"print-content"},$F=jt({__name:"PrintContainer",props:{width:{type:Number,required:!0}},setup(t){const e=t,n=A(()=>e.width),i=A(()=>e.width/Zi),r=A(()=>n.value/i.value),o=A(()=>r.value<Zi?n.value/Ji:i.value*Zi/Ji);let s=se;wn.value.query.range&&(s=wF(s.length,wn.value.query.range).map(c=>s[c-1]));const a=A(()=>({"select-none":!Wt.selectable}));return de(J_,o),(l,c)=>(R(),nt("div",{id:"print-container",class:ee(a.value)},[X("div",EF,[(R(!0),nt(It,null,No(O(s),u=>(R(),Vt(AF,{key:u.path,route:u},null,8,["route"]))),128))]),He(l.$slots,"controls")],2))}}),LF=Dt($F,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/PrintContainer.vue"]]),OF=jt({__name:"Print",setup(t){return Xn(()=>{Po?document.body.parentNode.classList.add("print"):document.body.parentNode.classList.remove("print")}),(e,n)=>(R(),nt(It,null,[O(Po)?(R(),Vt(dv,{key:0})):Mt("v-if",!0),X("div",{id:"page-root",class:"grid grid-cols-[1fr_max-content]",style:Ae(O(td))},[at(LF,{class:"w-full h-full",style:Ae({background:"var(--slidev-slide-container-background, black)"}),width:O(Dr).width.value},null,8,["style","width"])],4)],64))}}),MF=Dt(OF,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/Print.vue"]]);function ng(t){return t.startsWith("/")?"/slides/fosdem2024"+t.slice(1):t}function FF(t,e=!1){const n=t&&["#","rgb","hsl"].some(r=>t.indexOf(r)===0),i={background:n?t:void 0,color:t&&!n?"white":void 0,backgroundImage:n?void 0:t?e?`linear-gradient(#0005, #0008), url(${ng(t)})`:`url("${ng(t)}")`:void 0,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"cover"};return i.background||delete i.background,i}const BF={class:"my-auto w-full"},IF=jt({__name:"cover",props:{background:{default:""}},setup(t){const e=kt(Li);Ai(e,"nav"),kt(bn),kt($i),kt(hr),kt(to);const n=t,i=A(()=>FF(n.background,!0));return(r,o)=>(R(),nt("div",{class:"slidev-layout cover",style:Ae(i.value)},[X("div",BF,[He(r.$slots,"default")])],4))}}),PF=Dt(IF,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/theme-default/layouts/cover.vue"]]),$n=zt({theme:"default",title:"Nix for genetics"}),RF=zt({layout:A(()=>$n.layout),transition:A(()=>$n.transition),class:A(()=>$n.class),clicks:A(()=>$n.clicks),name:A(()=>$n.name),preload:A(()=>$n.preload),slide:{raw:"",title:"Nix for genetics",content:"",frontmatterStyle:"frontmatter",note:"",index:0,start:0,end:23,noteHTML:`<p>We are dealing with real world patients =</p>
<ul>
<li>accurate results : no mistake is allowed (diagnosis can be life changing)</li>
<li>reproducible : we need to have the trust of other doctors</li>
<li>fast : increasing demand !</li>
</ul>
<p>Rare diseases</p>
<ul>
<li>... are rare : how to diagnosis things you don't see often ?</li>
<li>mix of state-of-the art technology, computer science and human expertise</li>
</ul>
`,frontmatter:$n,filepath:"/home/alex/notes/slides/fosdem2024/slides.md",id:0,no:1},__clicksElements:[],__preloaded:!1}),NF=X("h1",null,"Nix for genetics",-1),DF=X("h2",null,"Powering a bioinformatics pipeline",-1),jF=X("p",null,"Alexis Praga (M. D, Ph.D in Computer Science)",-1),HF=X("p",null,"Besançon Hospital (France)",-1),qF={__name:"1",setup(t){const e=kt(Li);Ai(e,"nav"),kt(bn);const n=kt($i);kt(hr);const i=$n;return de(to,$n),(()=>{var o,s;const r=e.nav.rawRoutes.find(a=>a.path===String(n.value));(s=(o=r==null?void 0:r.meta)==null?void 0:o.slide)!=null&&s.frontmatter&&(Object.keys(r.meta.slide.frontmatter).forEach(a=>{a in i||delete r.meta.slide.frontmatter[a]}),Object.assign(r.meta.slide.frontmatter,$n))})(),(r,o)=>(R(),Vt(PF,oa(Do(O($n))),{default:_e(()=>[NF,DF,jF,HF]),_:1},16))}},zF=Dt(qF,[["__file","/@slidev/slides/1.md"]]),VF="/slides/fosdem2024/assets/ngs-SgbDLhxf.svg",WF={},UF={class:"slidev-layout center h-full grid place-content-center"},YF={class:"my-auto"};function GF(t,e){return R(),nt("div",UF,[X("div",YF,[He(t.$slots,"default")])])}const KF=Dt(WF,[["render",GF],["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/layouts/center.vue"]]),Ln=zt({transition:"fade-out",layout:"center"}),XF=zt({layout:A(()=>Ln.layout),transition:A(()=>Ln.transition),class:A(()=>Ln.class),clicks:A(()=>Ln.clicks),name:A(()=>Ln.name),preload:A(()=>Ln.preload),slide:{raw:"",title:"Next-generation sequencing",level:1,content:"",frontmatterStyle:"frontmatter",note:"",index:1,start:23,end:48,noteHTML:`<ul>
<li>How does that work in practice ?</li>
<li>We start from a blood sample. DNA is then extracted and "sequenced" (getting the DNA code)</li>
<li>Raw data cannot be used on its own so it needs to be processed and filtered.</li>
<li>The final output is a dataframe (i.e CSV) than a human can examine and try to find the diagnosis.</li>
<li>We still a human (no AI)</li>
<li>And bioinformatics is super important : if we filter too much, we miss the diagnosis. Not enough and the human won't be able to read the data.</li>
</ul>
`,frontmatter:Ln,filepath:"/home/alex/notes/slides/fosdem2024/slides.md",id:1,no:2},__clicksElements:[],__preloaded:!1}),ZF=X("h1",null,"Next-generation sequencing",-1),JF=X("br",null,null,-1),QF=X("p",null,[X("img",{src:VF,alt:""})],-1),t5=X("br",null,null,-1),e5=X("br",null,null,-1),n5={__name:"2",setup(t){const e=kt(Li);Ai(e,"nav"),kt(bn);const n=kt($i);kt(hr);const i=Ln;return de(to,Ln),(()=>{var o,s;const r=e.nav.rawRoutes.find(a=>a.path===String(n.value));(s=(o=r==null?void 0:r.meta)==null?void 0:o.slide)!=null&&s.frontmatter&&(Object.keys(r.meta.slide.frontmatter).forEach(a=>{a in i||delete r.meta.slide.frontmatter[a]}),Object.assign(r.meta.slide.frontmatter,Ln))})(),(r,o)=>(R(),Vt(KF,oa(Do(O(Ln))),{default:_e(()=>[ZF,JF,QF,t5,e5,Ci(" Bioinformatics: 1 million -> 1 000 candidates ")]),_:1},16))}},i5=Dt(n5,[["__file","/@slidev/slides/2.md"]]);function r5(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=Array.from(typeof t=="string"?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var r=i.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(u){var h,f;return(f=(h=u.match(/[\t ]/g))===null||h===void 0?void 0:h.length)!==null&&f!==void 0?f:0})):a},[]);if(r.length){var o=new RegExp(`
[ ]{`+Math.min.apply(Math,r)+"}","g");i=i.map(function(a){return a.replace(o,`
`)})}i[0]=i[0].replace(/^\r?\n/,"");var s=i[0];return e.forEach(function(a,l){var c=s.match(/(?:^|\n)( *)$/),u=c?c[1]:"",h=a;typeof a=="string"&&a.includes(`
`)&&(h=String(a).split(`
`).map(function(f,d){return d===0?f:""+u+f}).join(`
`)),s+=h+i[l+1]}),s}var o5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function s5(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var bv={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(o5,function(){var n=1e3,i=6e4,r=36e5,o="millisecond",s="second",a="minute",l="hour",c="day",u="week",h="month",f="quarter",d="year",p="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var N=["th","st","nd","rd"],j=W%100;return"["+W+(N[(j-20)%10]||N[j]||N[0])+"]"}},_=function(W,N,j){var Y=String(W);return!Y||Y.length>=N?W:""+Array(N+1-Y.length).join(j)+W},w={s:_,z:function(W){var N=-W.utcOffset(),j=Math.abs(N),Y=Math.floor(j/60),$=j%60;return(N<=0?"+":"-")+_(Y,2,"0")+":"+_($,2,"0")},m:function W(N,j){if(N.date()<j.date())return-W(j,N);var Y=12*(j.year()-N.year())+(j.month()-N.month()),$=N.clone().add(Y,h),z=j-$<0,D=N.clone().add(Y+(z?-1:1),h);return+(-(Y+(j-$)/(z?$-D:D-$))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:h,y:d,w:u,d:c,D:p,h:l,m:a,s,ms:o,Q:f}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},S="en",B={};B[S]=v;var C=function(W){return W instanceof ot},P=function W(N,j,Y){var $;if(!N)return S;if(typeof N=="string"){var z=N.toLowerCase();B[z]&&($=z),j&&(B[z]=j,$=z);var D=N.split("-");if(!$&&D.length>1)return W(D[0])}else{var ut=N.name;B[ut]=N,$=ut}return!Y&&$&&(S=$),$||!Y&&S},E=function(W,N){if(C(W))return W.clone();var j=typeof N=="object"?N:{};return j.date=W,j.args=arguments,new ot(j)},F=w;F.l=P,F.i=C,F.w=function(W,N){return E(W,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var ot=function(){function W(j){this.$L=P(j.locale,null,!0),this.parse(j)}var N=W.prototype;return N.parse=function(j){this.$d=function(Y){var $=Y.date,z=Y.utc;if($===null)return new Date(NaN);if(F.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var D=$.match(y);if(D){var ut=D[2]-1||0,bt=(D[7]||"0").substring(0,3);return z?new Date(Date.UTC(D[1],ut,D[3]||1,D[4]||0,D[5]||0,D[6]||0,bt)):new Date(D[1],ut,D[3]||1,D[4]||0,D[5]||0,D[6]||0,bt)}}return new Date($)}(j),this.$x=j.x||{},this.init()},N.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},N.$utils=function(){return F},N.isValid=function(){return this.$d.toString()!==g},N.isSame=function(j,Y){var $=E(j);return this.startOf(Y)<=$&&$<=this.endOf(Y)},N.isAfter=function(j,Y){return E(j)<this.startOf(Y)},N.isBefore=function(j,Y){return this.endOf(Y)<E(j)},N.$g=function(j,Y,$){return F.u(j)?this[Y]:this.set($,j)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(j,Y){var $=this,z=!!F.u(Y)||Y,D=F.p(j),ut=function(et,K){var it=F.w($.$u?Date.UTC($.$y,K,et):new Date($.$y,K,et),$);return z?it:it.endOf(c)},bt=function(et,K){return F.w($.toDate()[et].apply($.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(K)),$)},Lt=this.$W,_t=this.$M,ne=this.$D,ce="set"+(this.$u?"UTC":"");switch(D){case d:return z?ut(1,0):ut(31,11);case h:return z?ut(1,_t):ut(0,_t+1);case u:var ue=this.$locale().weekStart||0,L=(Lt<ue?Lt+7:Lt)-ue;return ut(z?ne-L:ne+(6-L),_t);case c:case p:return bt(ce+"Hours",0);case l:return bt(ce+"Minutes",1);case a:return bt(ce+"Seconds",2);case s:return bt(ce+"Milliseconds",3);default:return this.clone()}},N.endOf=function(j){return this.startOf(j,!1)},N.$set=function(j,Y){var $,z=F.p(j),D="set"+(this.$u?"UTC":""),ut=($={},$[c]=D+"Date",$[p]=D+"Date",$[h]=D+"Month",$[d]=D+"FullYear",$[l]=D+"Hours",$[a]=D+"Minutes",$[s]=D+"Seconds",$[o]=D+"Milliseconds",$)[z],bt=z===c?this.$D+(Y-this.$W):Y;if(z===h||z===d){var Lt=this.clone().set(p,1);Lt.$d[ut](bt),Lt.init(),this.$d=Lt.set(p,Math.min(this.$D,Lt.daysInMonth())).$d}else ut&&this.$d[ut](bt);return this.init(),this},N.set=function(j,Y){return this.clone().$set(j,Y)},N.get=function(j){return this[F.p(j)]()},N.add=function(j,Y){var $,z=this;j=Number(j);var D=F.p(Y),ut=function(_t){var ne=E(z);return F.w(ne.date(ne.date()+Math.round(_t*j)),z)};if(D===h)return this.set(h,this.$M+j);if(D===d)return this.set(d,this.$y+j);if(D===c)return ut(1);if(D===u)return ut(7);var bt=($={},$[a]=i,$[l]=r,$[s]=n,$)[D]||1,Lt=this.$d.getTime()+j*bt;return F.w(Lt,this)},N.subtract=function(j,Y){return this.add(-1*j,Y)},N.format=function(j){var Y=this,$=this.$locale();if(!this.isValid())return $.invalidDate||g;var z=j||"YYYY-MM-DDTHH:mm:ssZ",D=F.z(this),ut=this.$H,bt=this.$m,Lt=this.$M,_t=$.weekdays,ne=$.months,ce=function(K,it,yt,Rt){return K&&(K[it]||K(Y,z))||yt[it].slice(0,Rt)},ue=function(K){return F.s(ut%12||12,K,"0")},L=$.meridiem||function(K,it,yt){var Rt=K<12?"AM":"PM";return yt?Rt.toLowerCase():Rt},et={YY:String(this.$y).slice(-2),YYYY:this.$y,M:Lt+1,MM:F.s(Lt+1,2,"0"),MMM:ce($.monthsShort,Lt,ne,3),MMMM:ce(ne,Lt),D:this.$D,DD:F.s(this.$D,2,"0"),d:String(this.$W),dd:ce($.weekdaysMin,this.$W,_t,2),ddd:ce($.weekdaysShort,this.$W,_t,3),dddd:_t[this.$W],H:String(ut),HH:F.s(ut,2,"0"),h:ue(1),hh:ue(2),a:L(ut,bt,!0),A:L(ut,bt,!1),m:String(bt),mm:F.s(bt,2,"0"),s:String(this.$s),ss:F.s(this.$s,2,"0"),SSS:F.s(this.$ms,3,"0"),Z:D};return z.replace(b,function(K,it){return it||et[K]||D.replace(":","")})},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(j,Y,$){var z,D=F.p(Y),ut=E(j),bt=(ut.utcOffset()-this.utcOffset())*i,Lt=this-ut,_t=F.m(this,ut);return _t=(z={},z[d]=_t/12,z[h]=_t,z[f]=_t/3,z[u]=(Lt-bt)/6048e5,z[c]=(Lt-bt)/864e5,z[l]=Lt/r,z[a]=Lt/i,z[s]=Lt/n,z)[D]||Lt,$?_t:F.a(_t)},N.daysInMonth=function(){return this.endOf(h).$D},N.$locale=function(){return B[this.$L]},N.locale=function(j,Y){if(!j)return this.$L;var $=this.clone(),z=P(j,Y,!0);return z&&($.$L=z),$},N.clone=function(){return F.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},W}(),V=ot.prototype;return E.prototype=V,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",c],["$M",h],["$y",d],["$D",p]].forEach(function(W){V[W[1]]=function(N){return this.$g(N,W[0],W[1])}}),E.extend=function(W,N){return W.$i||(W(N,ot,E),W.$i=!0),E},E.locale=P,E.isDayjs=C,E.unix=function(W){return E(1e3*W)},E.en=B[S],E.Ls=B,E.p={},E})})(bv);var a5=bv.exports;const l5=s5(a5),ai={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},vt={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},cd=function(t="fatal"){let e=ai.fatal;typeof t=="string"?(t=t.toLowerCase(),t in ai&&(e=ai[t])):typeof t=="number"&&(e=t),vt.trace=()=>{},vt.debug=()=>{},vt.info=()=>{},vt.warn=()=>{},vt.error=()=>{},vt.fatal=()=>{},e<=ai.fatal&&(vt.fatal=console.error?console.error.bind(console,fn("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",fn("FATAL"))),e<=ai.error&&(vt.error=console.error?console.error.bind(console,fn("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",fn("ERROR"))),e<=ai.warn&&(vt.warn=console.warn?console.warn.bind(console,fn("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",fn("WARN"))),e<=ai.info&&(vt.info=console.info?console.info.bind(console,fn("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",fn("INFO"))),e<=ai.debug&&(vt.debug=console.debug?console.debug.bind(console,fn("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",fn("DEBUG"))),e<=ai.trace&&(vt.trace=console.debug?console.debug.bind(console,fn("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",fn("TRACE")))},fn=t=>`%c${l5().format("ss.SSS")} : ${t} : `;var ud={};Object.defineProperty(ud,"__esModule",{value:!0});var xv=ud.sanitizeUrl=void 0,c5=/^([^\w]*)(javascript|data|vbscript)/im,u5=/&#(\w+)(^\w|;)?/g,h5=/&(newline|tab);/gi,f5=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,d5=/^.+(:|:)/gim,p5=[".","/"];function m5(t){return p5.indexOf(t[0])>-1}function g5(t){return t.replace(u5,function(e,n){return String.fromCharCode(n)})}function y5(t){var e=g5(t||"").replace(h5,"").replace(f5,"").trim();if(!e)return"about:blank";if(m5(e))return e;var n=e.match(d5);if(!n)return e;var i=n[0];return c5.test(i)?"about:blank":e}xv=ud.sanitizeUrl=y5;var _5={value:()=>{}};function Cv(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new ll(n)}function ll(t){this._=t}function v5(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",r=n.indexOf(".");if(r>=0&&(i=n.slice(r+1),n=n.slice(0,r)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}ll.prototype=Cv.prototype={constructor:ll,on:function(t,e){var n=this._,i=v5(t+"",n),r,o=-1,s=i.length;if(arguments.length<2){for(;++o<s;)if((r=(t=i[o]).type)&&(r=b5(n[r],t.name)))return r;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(r=(t=i[o]).type)n[r]=ig(n[r],t.name,e);else if(e==null)for(r in n)n[r]=ig(n[r],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new ll(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var n=new Array(r),i=0,r,o;i<r;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],i=0,r=o.length;i<r;++i)o[i].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,o=i.length;r<o;++r)i[r].value.apply(e,n)}};function b5(t,e){for(var n=0,i=t.length,r;n<i;++n)if((r=t[n]).name===e)return r.value}function ig(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=_5,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}var zh="http://www.w3.org/1999/xhtml";const rg={svg:"http://www.w3.org/2000/svg",xhtml:zh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Bc(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),rg.hasOwnProperty(e)?{space:rg[e],local:t}:t}function x5(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===zh&&e.documentElement.namespaceURI===zh?e.createElement(t):e.createElementNS(n,t)}}function C5(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function wv(t){var e=Bc(t);return(e.local?C5:x5)(e)}function w5(){}function hd(t){return t==null?w5:function(){return this.querySelector(t)}}function T5(t){typeof t!="function"&&(t=hd(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o=e[r],s=o.length,a=i[r]=new Array(s),l,c,u=0;u<s;++u)(l=o[u])&&(c=t.call(l,l.__data__,u,o))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new an(i,this._parents)}function S5(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function k5(){return[]}function Tv(t){return t==null?k5:function(){return this.querySelectorAll(t)}}function A5(t){return function(){return S5(t.apply(this,arguments))}}function E5(t){typeof t=="function"?t=A5(t):t=Tv(t);for(var e=this._groups,n=e.length,i=[],r=[],o=0;o<n;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(i.push(t.call(l,l.__data__,c,s)),r.push(l));return new an(i,r)}function Sv(t){return function(){return this.matches(t)}}function kv(t){return function(e){return e.matches(t)}}var $5=Array.prototype.find;function L5(t){return function(){return $5.call(this.children,t)}}function O5(){return this.firstElementChild}function M5(t){return this.select(t==null?O5:L5(typeof t=="function"?t:kv(t)))}var F5=Array.prototype.filter;function B5(){return Array.from(this.children)}function I5(t){return function(){return F5.call(this.children,t)}}function P5(t){return this.selectAll(t==null?B5:I5(typeof t=="function"?t:kv(t)))}function R5(t){typeof t!="function"&&(t=Sv(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o=e[r],s=o.length,a=i[r]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new an(i,this._parents)}function Av(t){return new Array(t.length)}function N5(){return new an(this._enter||this._groups.map(Av),this._parents)}function Wl(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Wl.prototype={constructor:Wl,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function D5(t){return function(){return t}}function j5(t,e,n,i,r,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],i[s]=a):n[s]=new Wl(t,o[s]);for(;s<l;++s)(a=e[s])&&(r[s]=a)}function H5(t,e,n,i,r,o,s){var a,l,c=new Map,u=e.length,h=o.length,f=new Array(u),d;for(a=0;a<u;++a)(l=e[a])&&(f[a]=d=s.call(l,l.__data__,a,e)+"",c.has(d)?r[a]=l:c.set(d,l));for(a=0;a<h;++a)d=s.call(t,o[a],a,o)+"",(l=c.get(d))?(i[a]=l,l.__data__=o[a],c.delete(d)):n[a]=new Wl(t,o[a]);for(a=0;a<u;++a)(l=e[a])&&c.get(f[a])===l&&(r[a]=l)}function q5(t){return t.__data__}function z5(t,e){if(!arguments.length)return Array.from(this,q5);var n=e?H5:j5,i=this._parents,r=this._groups;typeof t!="function"&&(t=D5(t));for(var o=r.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var u=i[c],h=r[c],f=h.length,d=V5(t.call(u,u&&u.__data__,c,i)),p=d.length,g=a[c]=new Array(p),y=s[c]=new Array(p),b=l[c]=new Array(f);n(u,h,g,y,b,d,e);for(var v=0,_=0,w,S;v<p;++v)if(w=g[v]){for(v>=_&&(_=v+1);!(S=y[_])&&++_<p;);w._next=S||null}}return s=new an(s,i),s._enter=a,s._exit=l,s}function V5(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function W5(){return new an(this._exit||this._groups.map(Av),this._parents)}function U5(t,e,n){var i=this.enter(),r=this,o=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(r=e(r),r&&(r=r.selection())),n==null?o.remove():n(o),i&&r?i.merge(r).order():r}function Y5(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,o=i.length,s=Math.min(r,o),a=new Array(r),l=0;l<s;++l)for(var c=n[l],u=i[l],h=c.length,f=a[l]=new Array(h),d,p=0;p<h;++p)(d=c[p]||u[p])&&(f[p]=d);for(;l<r;++l)a[l]=n[l];return new an(a,this._parents)}function G5(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],r=i.length-1,o=i[r],s;--r>=0;)(s=i[r])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function K5(t){t||(t=X5);function e(h,f){return h&&f?t(h.__data__,f.__data__):!h-!f}for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var s=n[o],a=s.length,l=r[o]=new Array(a),c,u=0;u<a;++u)(c=s[u])&&(l[u]=c);l.sort(e)}return new an(r,this._parents).order()}function X5(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Z5(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function J5(){return Array.from(this)}function Q5(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length;r<o;++r){var s=i[r];if(s)return s}return null}function t3(){let t=0;for(const e of this)++t;return t}function e3(){return!this.node()}function n3(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r=e[n],o=0,s=r.length,a;o<s;++o)(a=r[o])&&t.call(a,a.__data__,o,r);return this}function i3(t){return function(){this.removeAttribute(t)}}function r3(t){return function(){this.removeAttributeNS(t.space,t.local)}}function o3(t,e){return function(){this.setAttribute(t,e)}}function s3(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function a3(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function l3(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function c3(t,e){var n=Bc(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?r3:i3:typeof e=="function"?n.local?l3:a3:n.local?s3:o3)(n,e))}function Ev(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function u3(t){return function(){this.style.removeProperty(t)}}function h3(t,e,n){return function(){this.style.setProperty(t,e,n)}}function f3(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function d3(t,e,n){return arguments.length>1?this.each((e==null?u3:typeof e=="function"?f3:h3)(t,e,n??"")):$o(this.node(),t)}function $o(t,e){return t.style.getPropertyValue(e)||Ev(t).getComputedStyle(t,null).getPropertyValue(e)}function p3(t){return function(){delete this[t]}}function m3(t,e){return function(){this[t]=e}}function g3(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function y3(t,e){return arguments.length>1?this.each((e==null?p3:typeof e=="function"?g3:m3)(t,e)):this.node()[t]}function $v(t){return t.trim().split(/^|\s+/)}function fd(t){return t.classList||new Lv(t)}function Lv(t){this._node=t,this._names=$v(t.getAttribute("class")||"")}Lv.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Ov(t,e){for(var n=fd(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function Mv(t,e){for(var n=fd(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function _3(t){return function(){Ov(this,t)}}function v3(t){return function(){Mv(this,t)}}function b3(t,e){return function(){(e.apply(this,arguments)?Ov:Mv)(this,t)}}function x3(t,e){var n=$v(t+"");if(arguments.length<2){for(var i=fd(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each((typeof e=="function"?b3:e?_3:v3)(n,e))}function C3(){this.textContent=""}function w3(t){return function(){this.textContent=t}}function T3(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function S3(t){return arguments.length?this.each(t==null?C3:(typeof t=="function"?T3:w3)(t)):this.node().textContent}function k3(){this.innerHTML=""}function A3(t){return function(){this.innerHTML=t}}function E3(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function $3(t){return arguments.length?this.each(t==null?k3:(typeof t=="function"?E3:A3)(t)):this.node().innerHTML}function L3(){this.nextSibling&&this.parentNode.appendChild(this)}function O3(){return this.each(L3)}function M3(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function F3(){return this.each(M3)}function B3(t){var e=typeof t=="function"?t:wv(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function I3(){return null}function P3(t,e){var n=typeof t=="function"?t:wv(t),i=e==null?I3:typeof e=="function"?e:hd(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function R3(){var t=this.parentNode;t&&t.removeChild(this)}function N3(){return this.each(R3)}function D3(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function j3(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function H3(t){return this.select(t?j3:D3)}function q3(t){return arguments.length?this.property("__data__",t):this.node().__data__}function z3(t){return function(e){t.call(this,e,this.__data__)}}function V3(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function W3(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,r=e.length,o;n<r;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++i]=o;++i?e.length=i:delete this.__on}}}function U3(t,e,n){return function(){var i=this.__on,r,o=z3(e);if(i){for(var s=0,a=i.length;s<a;++s)if((r=i[s]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=e;return}}this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function Y3(t,e,n){var i=V3(t+""),r,o=i.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(r=0,u=a[l];r<o;++r)if((s=i[r]).type===u.type&&s.name===u.name)return u.value}return}for(a=e?U3:W3,r=0;r<o;++r)this.each(a(i[r],e,n));return this}function Fv(t,e,n){var i=Ev(t),r=i.CustomEvent;typeof r=="function"?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function G3(t,e){return function(){return Fv(this,t,e)}}function K3(t,e){return function(){return Fv(this,t,e.apply(this,arguments))}}function X3(t,e){return this.each((typeof e=="function"?K3:G3)(t,e))}function*Z3(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length,s;r<o;++r)(s=i[r])&&(yield s)}var Bv=[null];function an(t,e){this._groups=t,this._parents=e}function da(){return new an([[document.documentElement]],Bv)}function J3(){return this}an.prototype=da.prototype={constructor:an,select:T5,selectAll:E5,selectChild:M5,selectChildren:P5,filter:R5,data:z5,enter:N5,exit:W5,join:U5,merge:Y5,selection:J3,order:G5,sort:K5,call:Z5,nodes:J5,node:Q5,size:t3,empty:e3,each:n3,attr:c3,style:d3,property:y3,classed:x3,text:S3,html:$3,raise:O3,lower:F3,append:B3,insert:P3,remove:N3,clone:H3,datum:q3,on:Y3,dispatch:X3,[Symbol.iterator]:Z3};function mn(t){return typeof t=="string"?new an([[document.querySelector(t)]],[document.documentElement]):new an([[t]],Bv)}function dd(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Iv(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function pa(){}var qs=.7,Ul=1/qs,wo="\\s*([+-]?\\d+)\\s*",zs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Q3=/^#([0-9a-f]{3,8})$/,tB=new RegExp(`^rgb\\(${wo},${wo},${wo}\\)$`),eB=new RegExp(`^rgb\\(${Zn},${Zn},${Zn}\\)$`),nB=new RegExp(`^rgba\\(${wo},${wo},${wo},${zs}\\)$`),iB=new RegExp(`^rgba\\(${Zn},${Zn},${Zn},${zs}\\)$`),rB=new RegExp(`^hsl\\(${zs},${Zn},${Zn}\\)$`),oB=new RegExp(`^hsla\\(${zs},${Zn},${Zn},${zs}\\)$`),og={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};dd(pa,Vs,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:sg,formatHex:sg,formatHex8:sB,formatHsl:aB,formatRgb:ag,toString:ag});function sg(){return this.rgb().formatHex()}function sB(){return this.rgb().formatHex8()}function aB(){return Pv(this).formatHsl()}function ag(){return this.rgb().formatRgb()}function Vs(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Q3.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?lg(e):n===3?new Ke(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Da(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Da(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=tB.exec(t))?new Ke(e[1],e[2],e[3],1):(e=eB.exec(t))?new Ke(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=nB.exec(t))?Da(e[1],e[2],e[3],e[4]):(e=iB.exec(t))?Da(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=rB.exec(t))?hg(e[1],e[2]/100,e[3]/100,1):(e=oB.exec(t))?hg(e[1],e[2]/100,e[3]/100,e[4]):og.hasOwnProperty(t)?lg(og[t]):t==="transparent"?new Ke(NaN,NaN,NaN,0):null}function lg(t){return new Ke(t>>16&255,t>>8&255,t&255,1)}function Da(t,e,n,i){return i<=0&&(t=e=n=NaN),new Ke(t,e,n,i)}function lB(t){return t instanceof pa||(t=Vs(t)),t?(t=t.rgb(),new Ke(t.r,t.g,t.b,t.opacity)):new Ke}function Vh(t,e,n,i){return arguments.length===1?lB(t):new Ke(t,e,n,i??1)}function Ke(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}dd(Ke,Vh,Iv(pa,{brighter(t){return t=t==null?Ul:Math.pow(Ul,t),new Ke(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?qs:Math.pow(qs,t),new Ke(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ke(jr(this.r),jr(this.g),jr(this.b),Yl(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:cg,formatHex:cg,formatHex8:cB,formatRgb:ug,toString:ug}));function cg(){return`#${Lr(this.r)}${Lr(this.g)}${Lr(this.b)}`}function cB(){return`#${Lr(this.r)}${Lr(this.g)}${Lr(this.b)}${Lr((isNaN(this.opacity)?1:this.opacity)*255)}`}function ug(){const t=Yl(this.opacity);return`${t===1?"rgb(":"rgba("}${jr(this.r)}, ${jr(this.g)}, ${jr(this.b)}${t===1?")":`, ${t})`}`}function Yl(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function jr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Lr(t){return t=jr(t),(t<16?"0":"")+t.toString(16)}function hg(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new In(t,e,n,i)}function Pv(t){if(t instanceof In)return new In(t.h,t.s,t.l,t.opacity);if(t instanceof pa||(t=Vs(t)),!t)return new In;if(t instanceof In)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),s=NaN,a=o-r,l=(o+r)/2;return a?(e===o?s=(n-i)/a+(n<i)*6:n===o?s=(i-e)/a+2:s=(e-n)/a+4,a/=l<.5?o+r:2-o-r,s*=60):a=l>0&&l<1?0:s,new In(s,a,l,t.opacity)}function uB(t,e,n,i){return arguments.length===1?Pv(t):new In(t,e,n,i??1)}function In(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}dd(In,uB,Iv(pa,{brighter(t){return t=t==null?Ul:Math.pow(Ul,t),new In(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?qs:Math.pow(qs,t),new In(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Ke(Ou(t>=240?t-240:t+120,r,i),Ou(t,r,i),Ou(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new In(fg(this.h),ja(this.s),ja(this.l),Yl(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 t=Yl(this.opacity);return`${t===1?"hsl(":"hsla("}${fg(this.h)}, ${ja(this.s)*100}%, ${ja(this.l)*100}%${t===1?")":`, ${t})`}`}}));function fg(t){return t=(t||0)%360,t<0?t+360:t}function ja(t){return Math.max(0,Math.min(1,t||0))}function Ou(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const pd=t=>()=>t;function Rv(t,e){return function(n){return t+n*e}}function hB(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function wW(t,e){var n=e-t;return n?Rv(t,n>180||n<-180?n-360*Math.round(n/360):n):pd(isNaN(t)?e:t)}function fB(t){return(t=+t)==1?Nv:function(e,n){return n-e?hB(e,n,t):pd(isNaN(e)?n:e)}}function Nv(t,e){var n=e-t;return n?Rv(t,n):pd(isNaN(t)?e:t)}const dg=function t(e){var n=fB(e);function i(r,o){var s=n((r=Vh(r)).r,(o=Vh(o)).r),a=n(r.g,o.g),l=n(r.b,o.b),c=Nv(r.opacity,o.opacity);return function(u){return r.r=s(u),r.g=a(u),r.b=l(u),r.opacity=c(u),r+""}}return i.gamma=t,i}(1);function zi(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var Wh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mu=new RegExp(Wh.source,"g");function dB(t){return function(){return t}}function pB(t){return function(e){return t(e)+""}}function mB(t,e){var n=Wh.lastIndex=Mu.lastIndex=0,i,r,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(i=Wh.exec(t))&&(r=Mu.exec(e));)(o=r.index)>n&&(o=e.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:zi(i,r)})),n=Mu.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?pB(l[0].x):dB(e):(e=l.length,function(c){for(var u=0,h;u<e;++u)a[(h=l[u]).i]=h.x(c);return a.join("")})}var pg=180/Math.PI,Uh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Dv(t,e,n,i,r,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*pg,skewX:Math.atan(l)*pg,scaleX:s,scaleY:a}}var Ha;function gB(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Uh:Dv(e.a,e.b,e.c,e.d,e.e,e.f)}function yB(t){return t==null||(Ha||(Ha=document.createElementNS("http://www.w3.org/2000/svg","g")),Ha.setAttribute("transform",t),!(t=Ha.transform.baseVal.consolidate()))?Uh:(t=t.matrix,Dv(t.a,t.b,t.c,t.d,t.e,t.f))}function jv(t,e,n,i){function r(c){return c.length?c.pop()+" ":""}function o(c,u,h,f,d,p){if(c!==h||u!==f){var g=d.push("translate(",null,e,null,n);p.push({i:g-4,x:zi(c,h)},{i:g-2,x:zi(u,f)})}else(h||f)&&d.push("translate("+h+e+f+n)}function s(c,u,h,f){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),f.push({i:h.push(r(h)+"rotate(",null,i)-2,x:zi(c,u)})):u&&h.push(r(h)+"rotate("+u+i)}function a(c,u,h,f){c!==u?f.push({i:h.push(r(h)+"skewX(",null,i)-2,x:zi(c,u)}):u&&h.push(r(h)+"skewX("+u+i)}function l(c,u,h,f,d,p){if(c!==h||u!==f){var g=d.push(r(d)+"scale(",null,",",null,")");p.push({i:g-4,x:zi(c,h)},{i:g-2,x:zi(u,f)})}else(h!==1||f!==1)&&d.push(r(d)+"scale("+h+","+f+")")}return function(c,u){var h=[],f=[];return c=t(c),u=t(u),o(c.translateX,c.translateY,u.translateX,u.translateY,h,f),s(c.rotate,u.rotate,h,f),a(c.skewX,u.skewX,h,f),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,h,f),c=u=null,function(d){for(var p=-1,g=f.length,y;++p<g;)h[(y=f[p]).i]=y.x(d);return h.join("")}}}var _B=jv(gB,"px, ","px)","deg)"),vB=jv(yB,", ",")",")"),Lo=0,fs=0,is=0,Hv=1e3,Gl,ds,Kl=0,Yr=0,Ic=0,Ws=typeof performance=="object"&&performance.now?performance:Date,qv=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function md(){return Yr||(qv(bB),Yr=Ws.now()+Ic)}function bB(){Yr=0}function Xl(){this._call=this._time=this._next=null}Xl.prototype=zv.prototype={constructor:Xl,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?md():+n)+(e==null?0:+e),!this._next&&ds!==this&&(ds?ds._next=this:Gl=this,ds=this),this._call=t,this._time=n,Yh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Yh())}};function zv(t,e,n){var i=new Xl;return i.restart(t,e,n),i}function xB(){md(),++Lo;for(var t=Gl,e;t;)(e=Yr-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Lo}function mg(){Yr=(Kl=Ws.now())+Ic,Lo=fs=0;try{xB()}finally{Lo=0,wB(),Yr=0}}function CB(){var t=Ws.now(),e=t-Kl;e>Hv&&(Ic-=e,Kl=t)}function wB(){for(var t,e=Gl,n,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Gl=n);ds=t,Yh(i)}function Yh(t){if(!Lo){fs&&(fs=clearTimeout(fs));var e=t-Yr;e>24?(t<1/0&&(fs=setTimeout(mg,t-Ws.now()-Ic)),is&&(is=clearInterval(is))):(is||(Kl=Ws.now(),is=setInterval(CB,Hv)),Lo=1,qv(mg))}}function gg(t,e,n){var i=new Xl;return e=e==null?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,n),i}var TB=Cv("start","end","cancel","interrupt"),SB=[],Vv=0,yg=1,Gh=2,cl=3,_g=4,Kh=5,ul=6;function Pc(t,e,n,i,r,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;kB(t,n,{name:e,index:i,group:r,on:TB,tween:SB,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Vv})}function gd(t,e){var n=jn(t,e);if(n.state>Vv)throw new Error("too late; already scheduled");return n}function ii(t,e){var n=jn(t,e);if(n.state>cl)throw new Error("too late; already running");return n}function jn(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function kB(t,e,n){var i=t.__transition,r;i[e]=n,n.timer=zv(o,0,n.time);function o(c){n.state=yg,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var u,h,f,d;if(n.state!==yg)return l();for(u in i)if(d=i[u],d.name===n.name){if(d.state===cl)return gg(s);d.state===_g?(d.state=ul,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[u]):+u<e&&(d.state=ul,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[u])}if(gg(function(){n.state===cl&&(n.state=_g,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=Gh,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Gh){for(n.state=cl,r=new Array(f=n.tween.length),u=0,h=-1;u<f;++u)(d=n.tween[u].value.call(t,t.__data__,n.index,n.group))&&(r[++h]=d);r.length=h+1}}function a(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=Kh,1),h=-1,f=r.length;++h<f;)r[h].call(t,u);n.state===Kh&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=ul,n.timer.stop(),delete i[e];for(var c in i)return;delete t.__transition}}function AB(t,e){var n=t.__transition,i,r,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((i=n[s]).name!==e){o=!1;continue}r=i.state>Gh&&i.state<Kh,i.state=ul,i.timer.stop(),i.on.call(r?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[s]}o&&delete t.__transition}}function EB(t){return this.each(function(){AB(this,t)})}function $B(t,e){var n,i;return function(){var r=ii(this,t),o=r.tween;if(o!==n){i=n=o;for(var s=0,a=i.length;s<a;++s)if(i[s].name===e){i=i.slice(),i.splice(s,1);break}}r.tween=i}}function LB(t,e,n){var i,r;if(typeof n!="function")throw new Error;return function(){var o=ii(this,t),s=o.tween;if(s!==i){r=(i=s).slice();for(var a={name:e,value:n},l=0,c=r.length;l<c;++l)if(r[l].name===e){r[l]=a;break}l===c&&r.push(a)}o.tween=r}}function OB(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=jn(this.node(),n).tween,r=0,o=i.length,s;r<o;++r)if((s=i[r]).name===t)return s.value;return null}return this.each((e==null?$B:LB)(n,t,e))}function yd(t,e,n){var i=t._id;return t.each(function(){var r=ii(this,i);(r.value||(r.value={}))[e]=n.apply(this,arguments)}),function(r){return jn(r,i).value[e]}}function Wv(t,e){var n;return(typeof e=="number"?zi:e instanceof Vs?dg:(n=Vs(e))?(e=n,dg):mB)(t,e)}function MB(t){return function(){this.removeAttribute(t)}}function FB(t){return function(){this.removeAttributeNS(t.space,t.local)}}function BB(t,e,n){var i,r=n+"",o;return function(){var s=this.getAttribute(t);return s===r?null:s===i?o:o=e(i=s,n)}}function IB(t,e,n){var i,r=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===r?null:s===i?o:o=e(i=s,n)}}function PB(t,e,n){var i,r,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a)))}}function RB(t,e,n){var i,r,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a)))}}function NB(t,e){var n=Bc(t),i=n==="transform"?vB:Wv;return this.attrTween(t,typeof e=="function"?(n.local?RB:PB)(n,i,yd(this,"attr."+t,e)):e==null?(n.local?FB:MB)(n):(n.local?IB:BB)(n,i,e))}function DB(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function jB(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function HB(t,e){var n,i;function r(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&jB(t,o)),n}return r._value=e,r}function qB(t,e){var n,i;function r(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&DB(t,o)),n}return r._value=e,r}function zB(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var i=Bc(t);return this.tween(n,(i.local?HB:qB)(i,e))}function VB(t,e){return function(){gd(this,t).delay=+e.apply(this,arguments)}}function WB(t,e){return e=+e,function(){gd(this,t).delay=e}}function UB(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?VB:WB)(e,t)):jn(this.node(),e).delay}function YB(t,e){return function(){ii(this,t).duration=+e.apply(this,arguments)}}function GB(t,e){return e=+e,function(){ii(this,t).duration=e}}function KB(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?YB:GB)(e,t)):jn(this.node(),e).duration}function XB(t,e){if(typeof e!="function")throw new Error;return function(){ii(this,t).ease=e}}function ZB(t){var e=this._id;return arguments.length?this.each(XB(e,t)):jn(this.node(),e).ease}function JB(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;ii(this,t).ease=n}}function QB(t){if(typeof t!="function")throw new Error;return this.each(JB(this._id,t))}function tI(t){typeof t!="function"&&(t=Sv(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o=e[r],s=o.length,a=i[r]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new Si(i,this._parents,this._name,this._id)}function eI(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,o=Math.min(i,r),s=new Array(i),a=0;a<o;++a)for(var l=e[a],c=n[a],u=l.length,h=s[a]=new Array(u),f,d=0;d<u;++d)(f=l[d]||c[d])&&(h[d]=f);for(;a<i;++a)s[a]=e[a];return new Si(s,this._parents,this._name,this._id)}function nI(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function iI(t,e,n){var i,r,o=nI(e)?gd:ii;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(e,n),s.on=r}}function rI(t,e){var n=this._id;return arguments.length<2?jn(this.node(),n).on.on(t):this.each(iI(n,t,e))}function oI(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function sI(){return this.on("end.remove",oI(this._id))}function aI(t){var e=this._name,n=this._id;typeof t!="function"&&(t=hd(t));for(var i=this._groups,r=i.length,o=new Array(r),s=0;s<r;++s)for(var a=i[s],l=a.length,c=o[s]=new Array(l),u,h,f=0;f<l;++f)(u=a[f])&&(h=t.call(u,u.__data__,f,a))&&("__data__"in u&&(h.__data__=u.__data__),c[f]=h,Pc(c[f],e,n,f,c,jn(u,n)));return new Si(o,this._parents,e,n)}function lI(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Tv(t));for(var i=this._groups,r=i.length,o=[],s=[],a=0;a<r;++a)for(var l=i[a],c=l.length,u,h=0;h<c;++h)if(u=l[h]){for(var f=t.call(u,u.__data__,h,l),d,p=jn(u,n),g=0,y=f.length;g<y;++g)(d=f[g])&&Pc(d,e,n,g,f,p);o.push(f),s.push(u)}return new Si(o,s,e,n)}var cI=da.prototype.constructor;function uI(){return new cI(this._groups,this._parents)}function hI(t,e){var n,i,r;return function(){var o=$o(this,t),s=(this.style.removeProperty(t),$o(this,t));return o===s?null:o===n&&s===i?r:r=e(n=o,i=s)}}function Uv(t){return function(){this.style.removeProperty(t)}}function fI(t,e,n){var i,r=n+"",o;return function(){var s=$o(this,t);return s===r?null:s===i?o:o=e(i=s,n)}}function dI(t,e,n){var i,r,o;return function(){var s=$o(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),$o(this,t))),s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a))}}function pI(t,e){var n,i,r,o="style."+e,s="end."+o,a;return function(){var l=ii(this,t),c=l.on,u=l.value[o]==null?a||(a=Uv(e)):void 0;(c!==n||r!==u)&&(i=(n=c).copy()).on(s,r=u),l.on=i}}function mI(t,e,n){var i=(t+="")=="transform"?_B:Wv;return e==null?this.styleTween(t,hI(t,i)).on("end.style."+t,Uv(t)):typeof e=="function"?this.styleTween(t,dI(t,i,yd(this,"style."+t,e))).each(pI(this._id,t)):this.styleTween(t,fI(t,i,e),n).on("end.style."+t,null)}function gI(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function yI(t,e,n){var i,r;function o(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&gI(t,s,n)),i}return o._value=e,o}function _I(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,yI(t,e,n??""))}function vI(t){return function(){this.textContent=t}}function bI(t){return function(){var e=t(this);this.textContent=e??""}}function xI(t){return this.tween("text",typeof t=="function"?bI(yd(this,"text",t)):vI(t==null?"":t+""))}function CI(t){return function(e){this.textContent=t.call(this,e)}}function wI(t){var e,n;function i(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&CI(r)),e}return i._value=t,i}function TI(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,wI(t))}function SI(){for(var t=this._name,e=this._id,n=Yv(),i=this._groups,r=i.length,o=0;o<r;++o)for(var s=i[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var u=jn(l,e);Pc(l,t,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Si(i,this._parents,t,n)}function kI(){var t,e,n=this,i=n._id,r=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--r===0&&o()}};n.each(function(){var c=ii(this,i),u=c.on;u!==t&&(e=(t=u).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),r===0&&o()})}var AI=0;function Si(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function Yv(){return++AI}var li=da.prototype;Si.prototype={constructor:Si,select:aI,selectAll:lI,selectChild:li.selectChild,selectChildren:li.selectChildren,filter:tI,merge:eI,selection:uI,transition:SI,call:li.call,nodes:li.nodes,node:li.node,size:li.size,empty:li.empty,each:li.each,on:rI,attr:NB,attrTween:zB,style:mI,styleTween:_I,text:xI,textTween:TI,remove:sI,tween:OB,delay:UB,duration:KB,ease:ZB,easeVarying:QB,end:kI,[Symbol.iterator]:li[Symbol.iterator]};function EI(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var $I={time:null,delay:0,duration:250,ease:EI};function LI(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function OI(t){var e,n;t instanceof Si?(e=t._id,t=t._name):(e=Yv(),(n=$I).time=md(),t=t==null?null:t+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var s=i[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&Pc(l,t,e,c,s,n||LI(l,e));return new Si(i,this._parents,t,e)}da.prototype.interrupt=EB;da.prototype.transition=OI;const TW=Math.abs,SW=Math.atan2,kW=Math.cos,AW=Math.max,EW=Math.min,$W=Math.sin,LW=Math.sqrt,vg=1e-12,_d=Math.PI,bg=_d/2,OW=2*_d;function MW(t){return t>1?0:t<-1?_d:Math.acos(t)}function FW(t){return t>=1?bg:t<=-1?-bg:Math.asin(t)}function Gv(t){this._context=t}Gv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function MI(t){return new Gv(t)}class Kv{constructor(e,n){this._context=e,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,n){switch(e=+e,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}}function FI(t){return new Kv(t,!0)}function BI(t){return new Kv(t,!1)}function ar(){}function Zl(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Rc(t){this._context=t}Rc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Zl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Zl(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function II(t){return new Rc(t)}function Xv(t){this._context=t}Xv.prototype={areaStart:ar,areaEnd:ar,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Zl(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function PI(t){return new Xv(t)}function Zv(t){this._context=t}Zv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:Zl(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function RI(t){return new Zv(t)}function Jv(t,e){this._basis=new Rc(t),this._beta=e}Jv.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i=t[0],r=e[0],o=t[n]-i,s=e[n]-r,a=-1,l;++a<=n;)l=a/n,this._basis.point(this._beta*t[a]+(1-this._beta)*(i+l*o),this._beta*e[a]+(1-this._beta)*(r+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const NI=function t(e){function n(i){return e===1?new Rc(i):new Jv(i,e)}return n.beta=function(i){return t(+i)},n}(.85);function Jl(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function vd(t,e){this._context=t,this._k=(1-e)/6}vd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Jl(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Jl(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const DI=function t(e){function n(i){return new vd(i,e)}return n.tension=function(i){return t(+i)},n}(0);function bd(t,e){this._context=t,this._k=(1-e)/6}bd.prototype={areaStart:ar,areaEnd:ar,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Jl(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const jI=function t(e){function n(i){return new bd(i,e)}return n.tension=function(i){return t(+i)},n}(0);function xd(t,e){this._context=t,this._k=(1-e)/6}xd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Jl(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const HI=function t(e){function n(i){return new xd(i,e)}return n.tension=function(i){return t(+i)},n}(0);function Cd(t,e,n){var i=t._x1,r=t._y1,o=t._x2,s=t._y2;if(t._l01_a>vg){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,r=(r*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>vg){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/u,s=(s*c+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(i,r,o,s,t._x2,t._y2)}function Qv(t,e){this._context=t,this._alpha=e}Qv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Cd(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const qI=function t(e){function n(i){return e?new Qv(i,e):new vd(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function t1(t,e){this._context=t,this._alpha=e}t1.prototype={areaStart:ar,areaEnd:ar,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Cd(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const zI=function t(e){function n(i){return e?new t1(i,e):new bd(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function e1(t,e){this._context=t,this._alpha=e}e1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Cd(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const VI=function t(e){function n(i){return e?new e1(i,e):new xd(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function n1(t){this._context=t}n1.prototype={areaStart:ar,areaEnd:ar,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function WI(t){return new n1(t)}function xg(t){return t<0?-1:1}function Cg(t,e,n){var i=t._x1-t._x0,r=e-t._x1,o=(t._y1-t._y0)/(i||r<0&&-0),s=(n-t._y1)/(r||i<0&&-0),a=(o*r+s*i)/(i+r);return(xg(o)+xg(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function wg(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Fu(t,e,n){var i=t._x0,r=t._y0,o=t._x1,s=t._y1,a=(o-i)/3;t._context.bezierCurveTo(i+a,r+a*e,o-a,s-a*n,o,s)}function Ql(t){this._context=t}Ql.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Fu(this,this._t0,wg(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Fu(this,wg(this,n=Cg(this,t,e)),n);break;default:Fu(this,this._t0,n=Cg(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function i1(t){this._context=new r1(t)}(i1.prototype=Object.create(Ql.prototype)).point=function(t,e){Ql.prototype.point.call(this,e,t)};function r1(t){this._context=t}r1.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,o){this._context.bezierCurveTo(e,t,i,n,o,r)}};function UI(t){return new Ql(t)}function YI(t){return new i1(t)}function o1(t){this._context=t}o1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var i=Tg(t),r=Tg(e),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(i[0][o],r[0][o],i[1][o],r[1][o],t[s],e[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function Tg(t){var e,n=t.length-1,i,r=new Array(n),o=new Array(n),s=new Array(n);for(r[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<n-1;++e)r[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(r[n-1]=2,o[n-1]=7,s[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)i=r[e]/o[e-1],o[e]-=i,s[e]-=i*s[e-1];for(r[n-1]=s[n-1]/o[n-1],e=n-2;e>=0;--e)r[e]=(s[e]-r[e+1])/o[e];for(o[n-1]=(t[n]+r[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-r[e+1];return[r,o]}function GI(t){return new o1(t)}function Nc(t,e){this._context=t,this._t=e}Nc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function KI(t){return new Nc(t,.5)}function XI(t){return new Nc(t,0)}function ZI(t){return new Nc(t,1)}function ps(t,e,n){this.k=t,this.x=e,this.y=n}ps.prototype={constructor:ps,scale:function(t){return t===1?this:new ps(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new ps(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};ps.prototype;/*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */const{entries:s1,setPrototypeOf:Sg,isFrozen:JI,getPrototypeOf:QI,getOwnPropertyDescriptor:t4}=Object;let{freeze:We,seal:Dn,create:e4}=Object,{apply:Xh,construct:Zh}=typeof Reflect<"u"&&Reflect;Xh||(Xh=function(e,n,i){return e.apply(n,i)});We||(We=function(e){return e});Dn||(Dn=function(e){return e});Zh||(Zh=function(e,n){return new e(...n)});const n4=xn(Array.prototype.forEach),kg=xn(Array.prototype.pop),rs=xn(Array.prototype.push),hl=xn(String.prototype.toLowerCase),Bu=xn(String.prototype.toString),i4=xn(String.prototype.match),kn=xn(String.prototype.replace),r4=xn(String.prototype.indexOf),o4=xn(String.prototype.trim),Qe=xn(RegExp.prototype.test),os=s4(TypeError);function xn(t){return function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return Xh(t,e,i)}}function s4(t){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return Zh(t,n)}}function Ft(t,e,n){var i;n=(i=n)!==null&&i!==void 0?i:hl,Sg&&Sg(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const s=n(o);s!==o&&(JI(e)||(e[r]=s),o=s)}t[o]=!0}return t}function uo(t){const e=e4(null);for(const[n,i]of s1(t))e[n]=i;return e}function qa(t,e){for(;t!==null;){const i=t4(t,e);if(i){if(i.get)return xn(i.get);if(typeof i.value=="function")return xn(i.value)}t=QI(t)}function n(i){return console.warn("fallback value for",i),null}return n}const Ag=We(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Iu=We(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Pu=We(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),a4=We(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ru=We(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),l4=We(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Eg=We(["#text"]),$g=We(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Nu=We(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Lg=We(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),za=We(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),c4=Dn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),u4=Dn(/<%[\w\W]*|[\w\W]*%>/gm),h4=Dn(/\${[\w\W]*}/gm),f4=Dn(/^data-[\-\w.\u00B7-\uFFFF]/),d4=Dn(/^aria-[\-\w]+$/),a1=Dn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),p4=Dn(/^(?:\w+script|data):/i),m4=Dn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),l1=Dn(/^html$/i);var Og=Object.freeze({__proto__:null,MUSTACHE_EXPR:c4,ERB_EXPR:u4,TMPLIT_EXPR:h4,DATA_ATTR:f4,ARIA_ATTR:d4,IS_ALLOWED_URI:a1,IS_SCRIPT_OR_DATA:p4,ATTR_WHITESPACE:m4,DOCTYPE_NAME:l1});const g4=()=>typeof window>"u"?null:window,y4=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(i=n.getAttribute(r));const o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function c1(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g4();const e=dt=>c1(dt);if(e.version="3.0.5",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;const n=t.document,i=n.currentScript;let{document:r}=t;const{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:d}=t,p=l.prototype,g=qa(p,"cloneNode"),y=qa(p,"nextSibling"),b=qa(p,"childNodes"),v=qa(p,"parentNode");if(typeof s=="function"){const dt=r.createElement("template");dt.content&&dt.content.ownerDocument&&(r=dt.content.ownerDocument)}let _,w="";const{implementation:S,createNodeIterator:B,createDocumentFragment:C,getElementsByTagName:P}=r,{importNode:E}=n;let F={};e.isSupported=typeof s1=="function"&&typeof v=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ot,ERB_EXPR:V,TMPLIT_EXPR:W,DATA_ATTR:N,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:$}=Og;let{IS_ALLOWED_URI:z}=Og,D=null;const ut=Ft({},[...Ag,...Iu,...Pu,...Ru,...Eg]);let bt=null;const Lt=Ft({},[...$g,...Nu,...Lg,...za]);let _t=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ne=null,ce=null,ue=!0,L=!0,et=!1,K=!0,it=!1,yt=!1,Rt=!1,Et=!1,m=!1,x=!1,M=!1,I=!0,H=!1;const Q="user-content-";let rt=!0,U=!1,Z={},q=null;const lt=Ft({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ft=null;const ht=Ft({},["audio","video","img","source","image","track"]);let Ct=null;const Bt=Ft({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ht="http://www.w3.org/1998/Math/MathML",Kt="http://www.w3.org/2000/svg",Xt="http://www.w3.org/1999/xhtml";let ve=Xt,Hn=!1,ro=null;const pr=Ft({},[Ht,Kt,Xt],Bu);let qn;const Te=["application/xhtml+xml","text/html"],cn="text/html";let he,oo=null;const Px=r.createElement("form"),sp=function(T){return T instanceof RegExp||T instanceof Function},iu=function(T){if(!(oo&&oo===T)){if((!T||typeof T!="object")&&(T={}),T=uo(T),qn=Te.indexOf(T.PARSER_MEDIA_TYPE)===-1?qn=cn:qn=T.PARSER_MEDIA_TYPE,he=qn==="application/xhtml+xml"?Bu:hl,D="ALLOWED_TAGS"in T?Ft({},T.ALLOWED_TAGS,he):ut,bt="ALLOWED_ATTR"in T?Ft({},T.ALLOWED_ATTR,he):Lt,ro="ALLOWED_NAMESPACES"in T?Ft({},T.ALLOWED_NAMESPACES,Bu):pr,Ct="ADD_URI_SAFE_ATTR"in T?Ft(uo(Bt),T.ADD_URI_SAFE_ATTR,he):Bt,ft="ADD_DATA_URI_TAGS"in T?Ft(uo(ht),T.ADD_DATA_URI_TAGS,he):ht,q="FORBID_CONTENTS"in T?Ft({},T.FORBID_CONTENTS,he):lt,ne="FORBID_TAGS"in T?Ft({},T.FORBID_TAGS,he):{},ce="FORBID_ATTR"in T?Ft({},T.FORBID_ATTR,he):{},Z="USE_PROFILES"in T?T.USE_PROFILES:!1,ue=T.ALLOW_ARIA_ATTR!==!1,L=T.ALLOW_DATA_ATTR!==!1,et=T.ALLOW_UNKNOWN_PROTOCOLS||!1,K=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,it=T.SAFE_FOR_TEMPLATES||!1,yt=T.WHOLE_DOCUMENT||!1,m=T.RETURN_DOM||!1,x=T.RETURN_DOM_FRAGMENT||!1,M=T.RETURN_TRUSTED_TYPE||!1,Et=T.FORCE_BODY||!1,I=T.SANITIZE_DOM!==!1,H=T.SANITIZE_NAMED_PROPS||!1,rt=T.KEEP_CONTENT!==!1,U=T.IN_PLACE||!1,z=T.ALLOWED_URI_REGEXP||a1,ve=T.NAMESPACE||Xt,_t=T.CUSTOM_ELEMENT_HANDLING||{},T.CUSTOM_ELEMENT_HANDLING&&sp(T.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_t.tagNameCheck=T.CUSTOM_ELEMENT_HANDLING.tagNameCheck),T.CUSTOM_ELEMENT_HANDLING&&sp(T.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_t.attributeNameCheck=T.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),T.CUSTOM_ELEMENT_HANDLING&&typeof T.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_t.allowCustomizedBuiltInElements=T.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),it&&(L=!1),x&&(m=!0),Z&&(D=Ft({},[...Eg]),bt=[],Z.html===!0&&(Ft(D,Ag),Ft(bt,$g)),Z.svg===!0&&(Ft(D,Iu),Ft(bt,Nu),Ft(bt,za)),Z.svgFilters===!0&&(Ft(D,Pu),Ft(bt,Nu),Ft(bt,za)),Z.mathMl===!0&&(Ft(D,Ru),Ft(bt,Lg),Ft(bt,za))),T.ADD_TAGS&&(D===ut&&(D=uo(D)),Ft(D,T.ADD_TAGS,he)),T.ADD_ATTR&&(bt===Lt&&(bt=uo(bt)),Ft(bt,T.ADD_ATTR,he)),T.ADD_URI_SAFE_ATTR&&Ft(Ct,T.ADD_URI_SAFE_ATTR,he),T.FORBID_CONTENTS&&(q===lt&&(q=uo(q)),Ft(q,T.FORBID_CONTENTS,he)),rt&&(D["#text"]=!0),yt&&Ft(D,["html","head","body"]),D.table&&(Ft(D,["tbody"]),delete ne.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw os('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw os('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=T.TRUSTED_TYPES_POLICY,w=_.createHTML("")}else _===void 0&&(_=y4(d,i)),_!==null&&typeof w=="string"&&(w=_.createHTML(""));We&&We(T),oo=T}},ap=Ft({},["mi","mo","mn","ms","mtext"]),lp=Ft({},["foreignobject","desc","title","annotation-xml"]),Rx=Ft({},["title","style","font","a","script"]),Ca=Ft({},Iu);Ft(Ca,Pu),Ft(Ca,a4);const ru=Ft({},Ru);Ft(ru,l4);const Nx=function(T){let J=v(T);(!J||!J.tagName)&&(J={namespaceURI:ve,tagName:"template"});const ct=hl(T.tagName),Zt=hl(J.tagName);return ro[T.namespaceURI]?T.namespaceURI===Kt?J.namespaceURI===Xt?ct==="svg":J.namespaceURI===Ht?ct==="svg"&&(Zt==="annotation-xml"||ap[Zt]):!!Ca[ct]:T.namespaceURI===Ht?J.namespaceURI===Xt?ct==="math":J.namespaceURI===Kt?ct==="math"&&lp[Zt]:!!ru[ct]:T.namespaceURI===Xt?J.namespaceURI===Kt&&!lp[Zt]||J.namespaceURI===Ht&&!ap[Zt]?!1:!ru[ct]&&(Rx[ct]||!Ca[ct]):!!(qn==="application/xhtml+xml"&&ro[T.namespaceURI]):!1},mr=function(T){rs(e.removed,{element:T});try{T.parentNode.removeChild(T)}catch{T.remove()}},ou=function(T,J){try{rs(e.removed,{attribute:J.getAttributeNode(T),from:J})}catch{rs(e.removed,{attribute:null,from:J})}if(J.removeAttribute(T),T==="is"&&!bt[T])if(m||x)try{mr(J)}catch{}else try{J.setAttribute(T,"")}catch{}},cp=function(T){let J,ct;if(Et)T="<remove></remove>"+T;else{const un=i4(T,/^[\r\n\t ]+/);ct=un&&un[0]}qn==="application/xhtml+xml"&&ve===Xt&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const Zt=_?_.createHTML(T):T;if(ve===Xt)try{J=new f().parseFromString(Zt,qn)}catch{}if(!J||!J.documentElement){J=S.createDocument(ve,"template",null);try{J.documentElement.innerHTML=Hn?w:Zt}catch{}}const be=J.body||J.documentElement;return T&&ct&&be.insertBefore(r.createTextNode(ct),be.childNodes[0]||null),ve===Xt?P.call(J,yt?"html":"body")[0]:yt?J.documentElement:be},up=function(T){return B.call(T.ownerDocument||T,T,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Dx=function(T){return T instanceof h&&(typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||!(T.attributes instanceof u)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function")},wa=function(T){return typeof a=="object"?T instanceof a:T&&typeof T=="object"&&typeof T.nodeType=="number"&&typeof T.nodeName=="string"},oi=function(T,J,ct){F[T]&&n4(F[T],Zt=>{Zt.call(e,J,ct,oo)})},hp=function(T){let J;if(oi("beforeSanitizeElements",T,null),Dx(T))return mr(T),!0;const ct=he(T.nodeName);if(oi("uponSanitizeElement",T,{tagName:ct,allowedTags:D}),T.hasChildNodes()&&!wa(T.firstElementChild)&&(!wa(T.content)||!wa(T.content.firstElementChild))&&Qe(/<[/\w]/g,T.innerHTML)&&Qe(/<[/\w]/g,T.textContent))return mr(T),!0;if(!D[ct]||ne[ct]){if(!ne[ct]&&dp(ct)&&(_t.tagNameCheck instanceof RegExp&&Qe(_t.tagNameCheck,ct)||_t.tagNameCheck instanceof Function&&_t.tagNameCheck(ct)))return!1;if(rt&&!q[ct]){const Zt=v(T)||T.parentNode,be=b(T)||T.childNodes;if(be&&Zt){const un=be.length;for(let ae=un-1;ae>=0;--ae)Zt.insertBefore(g(be[ae],!0),y(T))}}return mr(T),!0}return T instanceof l&&!Nx(T)||(ct==="noscript"||ct==="noembed"||ct==="noframes")&&Qe(/<\/no(script|embed|frames)/i,T.innerHTML)?(mr(T),!0):(it&&T.nodeType===3&&(J=T.textContent,J=kn(J,ot," "),J=kn(J,V," "),J=kn(J,W," "),T.textContent!==J&&(rs(e.removed,{element:T.cloneNode()}),T.textContent=J)),oi("afterSanitizeElements",T,null),!1)},fp=function(T,J,ct){if(I&&(J==="id"||J==="name")&&(ct in r||ct in Px))return!1;if(!(L&&!ce[J]&&Qe(N,J))){if(!(ue&&Qe(j,J))){if(!bt[J]||ce[J]){if(!(dp(T)&&(_t.tagNameCheck instanceof RegExp&&Qe(_t.tagNameCheck,T)||_t.tagNameCheck instanceof Function&&_t.tagNameCheck(T))&&(_t.attributeNameCheck instanceof RegExp&&Qe(_t.attributeNameCheck,J)||_t.attributeNameCheck instanceof Function&&_t.attributeNameCheck(J))||J==="is"&&_t.allowCustomizedBuiltInElements&&(_t.tagNameCheck instanceof RegExp&&Qe(_t.tagNameCheck,ct)||_t.tagNameCheck instanceof Function&&_t.tagNameCheck(ct))))return!1}else if(!Ct[J]){if(!Qe(z,kn(ct,$,""))){if(!((J==="src"||J==="xlink:href"||J==="href")&&T!=="script"&&r4(ct,"data:")===0&&ft[T])){if(!(et&&!Qe(Y,kn(ct,$,"")))){if(ct)return!1}}}}}}return!0},dp=function(T){return T.indexOf("-")>0},pp=function(T){let J,ct,Zt,be;oi("beforeSanitizeAttributes",T,null);const{attributes:un}=T;if(!un)return;const ae={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:bt};for(be=un.length;be--;){J=un[be];const{name:zn,namespaceURI:su}=J;if(ct=zn==="value"?J.value:o4(J.value),Zt=he(zn),ae.attrName=Zt,ae.attrValue=ct,ae.keepAttr=!0,ae.forceKeepAttr=void 0,oi("uponSanitizeAttribute",T,ae),ct=ae.attrValue,ae.forceKeepAttr||(ou(zn,T),!ae.keepAttr))continue;if(!K&&Qe(/\/>/i,ct)){ou(zn,T);continue}it&&(ct=kn(ct,ot," "),ct=kn(ct,V," "),ct=kn(ct,W," "));const mp=he(T.nodeName);if(fp(mp,Zt,ct)){if(H&&(Zt==="id"||Zt==="name")&&(ou(zn,T),ct=Q+ct),_&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!su)switch(d.getAttributeType(mp,Zt)){case"TrustedHTML":{ct=_.createHTML(ct);break}case"TrustedScriptURL":{ct=_.createScriptURL(ct);break}}try{su?T.setAttributeNS(su,zn,ct):T.setAttribute(zn,ct),kg(e.removed)}catch{}}}oi("afterSanitizeAttributes",T,null)},jx=function dt(T){let J;const ct=up(T);for(oi("beforeSanitizeShadowDOM",T,null);J=ct.nextNode();)oi("uponSanitizeShadowNode",J,null),!hp(J)&&(J.content instanceof o&&dt(J.content),pp(J));oi("afterSanitizeShadowDOM",T,null)};return e.sanitize=function(dt){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J,ct,Zt,be;if(Hn=!dt,Hn&&(dt="<!-->"),typeof dt!="string"&&!wa(dt))if(typeof dt.toString=="function"){if(dt=dt.toString(),typeof dt!="string")throw os("dirty is not a string, aborting")}else throw os("toString is not a function");if(!e.isSupported)return dt;if(Rt||iu(T),e.removed=[],typeof dt=="string"&&(U=!1),U){if(dt.nodeName){const zn=he(dt.nodeName);if(!D[zn]||ne[zn])throw os("root node is forbidden and cannot be sanitized in-place")}}else if(dt instanceof a)J=cp("<!---->"),ct=J.ownerDocument.importNode(dt,!0),ct.nodeType===1&&ct.nodeName==="BODY"||ct.nodeName==="HTML"?J=ct:J.appendChild(ct);else{if(!m&&!it&&!yt&&dt.indexOf("<")===-1)return _&&M?_.createHTML(dt):dt;if(J=cp(dt),!J)return m?null:M?w:""}J&&Et&&mr(J.firstChild);const un=up(U?dt:J);for(;Zt=un.nextNode();)hp(Zt)||(Zt.content instanceof o&&jx(Zt.content),pp(Zt));if(U)return dt;if(m){if(x)for(be=C.call(J.ownerDocument);J.firstChild;)be.appendChild(J.firstChild);else be=J;return(bt.shadowroot||bt.shadowrootmode)&&(be=E.call(n,be,!0)),be}let ae=yt?J.outerHTML:J.innerHTML;return yt&&D["!doctype"]&&J.ownerDocument&&J.ownerDocument.doctype&&J.ownerDocument.doctype.name&&Qe(l1,J.ownerDocument.doctype.name)&&(ae="<!DOCTYPE "+J.ownerDocument.doctype.name+`>
`+ae),it&&(ae=kn(ae,ot," "),ae=kn(ae,V," "),ae=kn(ae,W," ")),_&&M?_.createHTML(ae):ae},e.setConfig=function(dt){iu(dt),Rt=!0},e.clearConfig=function(){oo=null,Rt=!1},e.isValidAttribute=function(dt,T,J){oo||iu({});const ct=he(dt),Zt=he(T);return fp(ct,Zt,J)},e.addHook=function(dt,T){typeof T=="function"&&(F[dt]=F[dt]||[],rs(F[dt],T))},e.removeHook=function(dt){if(F[dt])return kg(F[dt])},e.removeHooks=function(dt){F[dt]&&(F[dt]=[])},e.removeAllHooks=function(){F={}},e}var To=c1();const Dc=/<br\s*\/?>/gi,_4=t=>t?h1(t).replace(/\\n/g,"#br#").split("#br#"):[""],u1=t=>{const e="data-temp-href-target";To.addHook("beforeSanitizeAttributes",i=>{i.tagName==="A"&&i.hasAttribute("target")&&i.setAttribute(e,i.getAttribute("target")||"")});const n=To.sanitize(t);return To.addHook("afterSanitizeAttributes",i=>{i.tagName==="A"&&i.hasAttribute(e)&&(i.setAttribute("target",i.getAttribute(e)||""),i.removeAttribute(e),i.getAttribute("target")==="_blank"&&i.setAttribute("rel","noopener"))}),n},Mg=(t,e)=>{var n;if(((n=e.flowchart)==null?void 0:n.htmlLabels)!==!1){const i=e.securityLevel;i==="antiscript"||i==="strict"?t=u1(t):i!=="loose"&&(t=h1(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=C4(t))}return t},Us=(t,e)=>t&&(e.dompurifyConfig?t=To.sanitize(Mg(t,e),e.dompurifyConfig).toString():t=To.sanitize(Mg(t,e),{FORBID_TAGS:["style"]}).toString(),t),v4=(t,e)=>typeof t=="string"?Us(t,e):t.flat().map(n=>Us(n,e)),b4=t=>Dc.test(t),x4=t=>t.split(Dc),C4=t=>t.replace(/#br#/g,"<br/>"),h1=t=>t.replace(Dc,"#br#"),w4=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},f1=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),T4=function(...t){const e=t.filter(n=>!isNaN(n));return Math.max(...e)},S4=function(...t){const e=t.filter(n=>!isNaN(n));return Math.min(...e)},BW=function(t){const e=t.split(/(,)/),n=[];for(let i=0;i<e.length;i++){let r=e[i];if(r===","&&i>0&&i+1<e.length){const o=e[i-1],s=e[i+1];k4(o,s)&&(r=o+","+s,i++,n.pop())}n.push(A4(r))}return n.join("")},Jh=(t,e)=>Math.max(0,t.split(e).length-1),k4=(t,e)=>{const n=Jh(t,"~"),i=Jh(e,"~");return n===1&&i===1},A4=t=>{const e=Jh(t,"~");let n=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),n=!0);const i=[...t];let r=i.indexOf("~"),o=i.lastIndexOf("~");for(;r!==-1&&o!==-1&&r!==o;)i[r]="<",i[o]=">",r=i.indexOf("~"),o=i.lastIndexOf("~");return n&&i.unshift("~"),i.join("")},wd={getRows:_4,sanitizeText:Us,sanitizeTextOrArray:v4,hasBreaks:b4,splitBreaks:x4,lineBreakRegex:Dc,removeScript:u1,getUrl:w4,evaluate:f1,getMax:T4,getMin:S4},fl={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t),hsl2rgb:({h:t,s:e,l:n},i)=>{if(!e)return n*2.55;t/=360,e/=100,n/=100;const r=n<.5?n*(1+e):n+e-n*e,o=2*n-r;switch(i){case"r":return fl.hue2rgb(o,r,t+1/3)*255;case"g":return fl.hue2rgb(o,r,t)*255;case"b":return fl.hue2rgb(o,r,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:n},i)=>{t/=255,e/=255,n/=255;const r=Math.max(t,e,n),o=Math.min(t,e,n),s=(r+o)/2;if(i==="l")return s*100;if(r===o)return 0;const a=r-o,l=s>.5?a/(2-r-o):a/(r+o);if(i==="s")return l*100;switch(r){case t:return((e-n)/a+(e<n?6:0))*60;case e:return((n-t)/a+2)*60;case n:return((t-e)/a+4)*60;default:return-1}}},E4=fl,$4={clamp:(t,e,n)=>e>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},L4=$4,O4={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},M4=O4,F4={channel:E4,lang:L4,unit:M4},Tt=F4,Ri={};for(let t=0;t<=255;t++)Ri[t]=Tt.unit.dec2hex(t);const Ee={ALL:0,RGB:1,HSL:2};class B4{constructor(){this.type=Ee.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=Ee.ALL}is(e){return this.type===e}}const I4=B4;class P4{constructor(e,n){this.color=n,this.changed=!1,this.data=e,this.type=new I4}set(e,n){return this.color=n,this.changed=!1,this.data=e,this.type.type=Ee.ALL,this}_ensureHSL(){const e=this.data,{h:n,s:i,l:r}=e;n===void 0&&(e.h=Tt.channel.rgb2hsl(e,"h")),i===void 0&&(e.s=Tt.channel.rgb2hsl(e,"s")),r===void 0&&(e.l=Tt.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:n,g:i,b:r}=e;n===void 0&&(e.r=Tt.channel.hsl2rgb(e,"r")),i===void 0&&(e.g=Tt.channel.hsl2rgb(e,"g")),r===void 0&&(e.b=Tt.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,n=e.r;return!this.type.is(Ee.HSL)&&n!==void 0?n:(this._ensureHSL(),Tt.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,n=e.g;return!this.type.is(Ee.HSL)&&n!==void 0?n:(this._ensureHSL(),Tt.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,n=e.b;return!this.type.is(Ee.HSL)&&n!==void 0?n:(this._ensureHSL(),Tt.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,n=e.h;return!this.type.is(Ee.RGB)&&n!==void 0?n:(this._ensureRGB(),Tt.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,n=e.s;return!this.type.is(Ee.RGB)&&n!==void 0?n:(this._ensureRGB(),Tt.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,n=e.l;return!this.type.is(Ee.RGB)&&n!==void 0?n:(this._ensureRGB(),Tt.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(Ee.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Ee.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Ee.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Ee.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Ee.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Ee.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const R4=P4,N4=new R4({r:0,g:0,b:0,a:0},"transparent"),jc=N4,d1={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(d1.re);if(!e)return;const n=e[1],i=parseInt(n,16),r=n.length,o=r%4===0,s=r>4,a=s?1:17,l=s?8:4,c=o?0:-1,u=s?255:15;return jc.set({r:(i>>l*(c+3)&u)*a,g:(i>>l*(c+2)&u)*a,b:(i>>l*(c+1)&u)*a,a:o?(i&u)*a/255:1},t)},stringify:t=>{const{r:e,g:n,b:i,a:r}=t;return r<1?`#${Ri[Math.round(e)]}${Ri[Math.round(n)]}${Ri[Math.round(i)]}${Ri[Math.round(r*255)]}`:`#${Ri[Math.round(e)]}${Ri[Math.round(n)]}${Ri[Math.round(i)]}`}},xs=d1,dl={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(dl.hueRe);if(e){const[,n,i]=e;switch(i){case"grad":return Tt.channel.clamp.h(parseFloat(n)*.9);case"rad":return Tt.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return Tt.channel.clamp.h(parseFloat(n)*360)}}return Tt.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const n=t.match(dl.re);if(!n)return;const[,i,r,o,s,a]=n;return jc.set({h:dl._hue2deg(i),s:Tt.channel.clamp.s(parseFloat(r)),l:Tt.channel.clamp.l(parseFloat(o)),a:s?Tt.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:n,l:i,a:r}=t;return r<1?`hsla(${Tt.lang.round(e)}, ${Tt.lang.round(n)}%, ${Tt.lang.round(i)}%, ${r})`:`hsl(${Tt.lang.round(e)}, ${Tt.lang.round(n)}%, ${Tt.lang.round(i)}%)`}},Va=dl,pl={colors:{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",cyanaqua:"#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",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",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",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",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",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=pl.colors[t];if(e)return xs.parse(e)},stringify:t=>{const e=xs.stringify(t);for(const n in pl.colors)if(pl.colors[n]===e)return n}},Fg=pl,p1={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const n=t.match(p1.re);if(!n)return;const[,i,r,o,s,a,l,c,u]=n;return jc.set({r:Tt.channel.clamp.r(r?parseFloat(i)*2.55:parseFloat(i)),g:Tt.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:Tt.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:c?Tt.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:n,b:i,a:r}=t;return r<1?`rgba(${Tt.lang.round(e)}, ${Tt.lang.round(n)}, ${Tt.lang.round(i)}, ${Tt.lang.round(r)})`:`rgb(${Tt.lang.round(e)}, ${Tt.lang.round(n)}, ${Tt.lang.round(i)})`}},Wa=p1,D4={format:{keyword:Fg,hex:xs,rgb:Wa,rgba:Wa,hsl:Va,hsla:Va},parse:t=>{if(typeof t!="string")return t;const e=xs.parse(t)||Wa.parse(t)||Va.parse(t)||Fg.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(Ee.HSL)||t.data.r===void 0?Va.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Wa.stringify(t):xs.stringify(t)},ei=D4,j4=(t,e)=>{const n=ei.parse(t);for(const i in e)n[i]=Tt.channel.clamp[i](e[i]);return ei.stringify(n)},m1=j4,H4=(t,e,n=0,i=1)=>{if(typeof t!="number")return m1(t,{a:e});const r=jc.set({r:Tt.channel.clamp.r(t),g:Tt.channel.clamp.g(e),b:Tt.channel.clamp.b(n),a:Tt.channel.clamp.a(i)});return ei.stringify(r)},Cs=H4,q4=t=>{const{r:e,g:n,b:i}=ei.parse(t),r=.2126*Tt.channel.toLinear(e)+.7152*Tt.channel.toLinear(n)+.0722*Tt.channel.toLinear(i);return Tt.lang.round(r)},z4=q4,V4=t=>z4(t)>=.5,W4=V4,U4=t=>!W4(t),ma=U4,Y4=(t,e,n)=>{const i=ei.parse(t),r=i[e],o=Tt.channel.clamp[e](r+n);return r!==o&&(i[e]=o),ei.stringify(i)},g1=Y4,G4=(t,e)=>g1(t,"l",e),pt=G4,K4=(t,e)=>g1(t,"l",-e),xt=K4,X4=(t,e)=>{const n=ei.parse(t),i={};for(const r in e)e[r]&&(i[r]=n[r]+e[r]);return m1(t,i)},k=X4,Z4=(t,e,n=50)=>{const{r:i,g:r,b:o,a:s}=ei.parse(t),{r:a,g:l,b:c,a:u}=ei.parse(e),h=n/100,f=h*2-1,d=s-u,g=((f*d===-1?f:(f+d)/(1+f*d))+1)/2,y=1-g,b=i*g+a*y,v=r*g+l*y,_=o*g+c*y,w=s*h+u*(1-h);return Cs(b,v,_,w)},J4=Z4,Q4=(t,e=100)=>{const n=ei.parse(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,J4(n,t,e)},st=Q4,qe=(t,e)=>e?k(t,{s:-40,l:10}):k(t,{s:-40,l:-10}),Hc="#ffffff",qc="#f2f2f2";let tP=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,n,i,r,o,s,a,l,c,u,h;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||k(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||k(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||qe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||qe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||qe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||qe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||st(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||st(this.tertiaryColor),this.lineColor=this.lineColor||st(this.background),this.arrowheadColor=this.arrowheadColor||st(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?xt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||xt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||st(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||pt(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||k(this.primaryColor,{h:30}),this.cScale4=this.cScale4||k(this.primaryColor,{h:60}),this.cScale5=this.cScale5||k(this.primaryColor,{h:90}),this.cScale6=this.cScale6||k(this.primaryColor,{h:120}),this.cScale7=this.cScale7||k(this.primaryColor,{h:150}),this.cScale8=this.cScale8||k(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||k(this.primaryColor,{h:270}),this.cScale10=this.cScale10||k(this.primaryColor,{h:300}),this.cScale11=this.cScale11||k(this.primaryColor,{h:330}),this.darkMode)for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=xt(this["cScale"+d],75);else for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=xt(this["cScale"+d],25);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||st(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||pt(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||xt(this["cScale"+d],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=this["cScaleLabel"+d]||this.scaleLabelColor;const f=this.darkMode?-4:-1;for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||k(this.mainBkg,{h:180,s:-15,l:f*(5+d*3)}),this["surfacePeer"+d]=this["surfacePeer"+d]||k(this.mainBkg,{h:180,s:-15,l:f*(8+d*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||k(this.primaryColor,{h:64}),this.fillType3=this.fillType3||k(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||k(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||k(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||k(this.primaryColor,{h:128}),this.fillType7=this.fillType7||k(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||k(this.primaryColor,{l:-10}),this.pie5=this.pie5||k(this.secondaryColor,{l:-10}),this.pie6=this.pie6||k(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||k(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||k(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||k(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||k(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||k(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||k(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||k(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||k(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||k(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||k(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||k(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||k(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ma(this.quadrant1Fill)?pt(this.quadrant1Fill):xt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((r=this.xyChart)==null?void 0:r.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?xt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||k(this.primaryColor,{h:-30}),this.git4=this.git4||k(this.primaryColor,{h:-60}),this.git5=this.git5||k(this.primaryColor,{h:-90}),this.git6=this.git6||k(this.primaryColor,{h:60}),this.git7=this.git7||k(this.primaryColor,{h:120}),this.darkMode?(this.git0=pt(this.git0,25),this.git1=pt(this.git1,25),this.git2=pt(this.git2,25),this.git3=pt(this.git3,25),this.git4=pt(this.git4,25),this.git5=pt(this.git5,25),this.git6=pt(this.git6,25),this.git7=pt(this.git7,25)):(this.git0=xt(this.git0,25),this.git1=xt(this.git1,25),this.git2=xt(this.git2,25),this.git3=xt(this.git3,25),this.git4=xt(this.git4,25),this.git5=xt(this.git5,25),this.git6=xt(this.git6,25),this.git7=xt(this.git7,25)),this.gitInv0=this.gitInv0||st(this.git0),this.gitInv1=this.gitInv1||st(this.git1),this.gitInv2=this.gitInv2||st(this.git2),this.gitInv3=this.gitInv3||st(this.git3),this.gitInv4=this.gitInv4||st(this.git4),this.gitInv5=this.gitInv5||st(this.git5),this.gitInv6=this.gitInv6||st(this.git6),this.gitInv7=this.gitInv7||st(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Hc,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||qc}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(i=>{this[i]=e[i]}),this.updateColors(),n.forEach(i=>{this[i]=e[i]})}};const eP=t=>{const e=new tP;return e.calculate(t),e};let nP=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=pt(this.primaryColor,16),this.tertiaryColor=k(this.primaryColor,{h:-160}),this.primaryBorderColor=st(this.background),this.secondaryBorderColor=qe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=qe(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.lineColor=st(this.background),this.textColor=st(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=pt(st("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Cs(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=xt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=xt(this.sectionBkgColor,10),this.taskBorderColor=Cs(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Cs(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,n,i,r,o,s,a,l,c,u,h;this.secondBkg=pt(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=pt(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=pt(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=k(this.primaryColor,{h:64}),this.fillType3=k(this.secondaryColor,{h:64}),this.fillType4=k(this.primaryColor,{h:-64}),this.fillType5=k(this.secondaryColor,{h:-64}),this.fillType6=k(this.primaryColor,{h:128}),this.fillType7=k(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||k(this.primaryColor,{h:30}),this.cScale4=this.cScale4||k(this.primaryColor,{h:60}),this.cScale5=this.cScale5||k(this.primaryColor,{h:90}),this.cScale6=this.cScale6||k(this.primaryColor,{h:120}),this.cScale7=this.cScale7||k(this.primaryColor,{h:150}),this.cScale8=this.cScale8||k(this.primaryColor,{h:210}),this.cScale9=this.cScale9||k(this.primaryColor,{h:270}),this.cScale10=this.cScale10||k(this.primaryColor,{h:300}),this.cScale11=this.cScale11||k(this.primaryColor,{h:330});for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||st(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScalePeer"+f]=this["cScalePeer"+f]||pt(this["cScale"+f],10);for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||k(this.mainBkg,{h:30,s:-30,l:-(-10+f*4)}),this["surfacePeer"+f]=this["surfacePeer"+f]||k(this.mainBkg,{h:30,s:-30,l:-(-7+f*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["pie"+f]=this["cScale"+f];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||k(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||k(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||k(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||k(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||k(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||k(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ma(this.quadrant1Fill)?pt(this.quadrant1Fill):xt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((r=this.xyChart)==null?void 0:r.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?xt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=pt(this.secondaryColor,20),this.git1=pt(this.pie2||this.secondaryColor,20),this.git2=pt(this.pie3||this.tertiaryColor,20),this.git3=pt(this.pie4||k(this.primaryColor,{h:-30}),20),this.git4=pt(this.pie5||k(this.primaryColor,{h:-60}),20),this.git5=pt(this.pie6||k(this.primaryColor,{h:-90}),10),this.git6=pt(this.pie7||k(this.primaryColor,{h:60}),10),this.git7=pt(this.pie8||k(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||st(this.git0),this.gitInv1=this.gitInv1||st(this.git1),this.gitInv2=this.gitInv2||st(this.git2),this.gitInv3=this.gitInv3||st(this.git3),this.gitInv4=this.gitInv4||st(this.git4),this.gitInv5=this.gitInv5||st(this.git5),this.gitInv6=this.gitInv6||st(this.git6),this.gitInv7=this.gitInv7||st(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||st(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||st(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||pt(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||pt(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(i=>{this[i]=e[i]}),this.updateColors(),n.forEach(i=>{this[i]=e[i]})}};const iP=t=>{const e=new nP;return e.calculate(t),e};let rP=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=k(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=k(this.primaryColor,{h:-160}),this.primaryBorderColor=qe(this.primaryColor,this.darkMode),this.secondaryBorderColor=qe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=qe(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.lineColor=st(this.background),this.textColor=st(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Cs(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,n,i,r,o,s,a,l,c,u,h;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||k(this.primaryColor,{h:30}),this.cScale4=this.cScale4||k(this.primaryColor,{h:60}),this.cScale5=this.cScale5||k(this.primaryColor,{h:90}),this.cScale6=this.cScale6||k(this.primaryColor,{h:120}),this.cScale7=this.cScale7||k(this.primaryColor,{h:150}),this.cScale8=this.cScale8||k(this.primaryColor,{h:210}),this.cScale9=this.cScale9||k(this.primaryColor,{h:270}),this.cScale10=this.cScale10||k(this.primaryColor,{h:300}),this.cScale11=this.cScale11||k(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||xt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||xt(this.tertiaryColor,40);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=xt(this["cScale"+f],10),this["cScalePeer"+f]=this["cScalePeer"+f]||xt(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||k(this["cScale"+f],{h:180});for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||k(this.mainBkg,{h:30,l:-(5+f*5)}),this["surfacePeer"+f]=this["surfacePeer"+f]||k(this.mainBkg,{h:30,l:-(7+f*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||st(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||st(this.labelTextColor);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=pt(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=k(this.primaryColor,{h:64}),this.fillType3=k(this.secondaryColor,{h:64}),this.fillType4=k(this.primaryColor,{h:-64}),this.fillType5=k(this.secondaryColor,{h:-64}),this.fillType6=k(this.primaryColor,{h:128}),this.fillType7=k(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||k(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||k(this.primaryColor,{l:-10}),this.pie5=this.pie5||k(this.secondaryColor,{l:-30}),this.pie6=this.pie6||k(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||k(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||k(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||k(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||k(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||k(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||k(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||k(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||k(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||k(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||k(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||k(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||k(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ma(this.quadrant1Fill)?pt(this.quadrant1Fill):xt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((r=this.xyChart)==null?void 0:r.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||k(this.primaryColor,{h:-30}),this.git4=this.git4||k(this.primaryColor,{h:-60}),this.git5=this.git5||k(this.primaryColor,{h:-90}),this.git6=this.git6||k(this.primaryColor,{h:60}),this.git7=this.git7||k(this.primaryColor,{h:120}),this.darkMode?(this.git0=pt(this.git0,25),this.git1=pt(this.git1,25),this.git2=pt(this.git2,25),this.git3=pt(this.git3,25),this.git4=pt(this.git4,25),this.git5=pt(this.git5,25),this.git6=pt(this.git6,25),this.git7=pt(this.git7,25)):(this.git0=xt(this.git0,25),this.git1=xt(this.git1,25),this.git2=xt(this.git2,25),this.git3=xt(this.git3,25),this.git4=xt(this.git4,25),this.git5=xt(this.git5,25),this.git6=xt(this.git6,25),this.git7=xt(this.git7,25)),this.gitInv0=this.gitInv0||xt(st(this.git0),25),this.gitInv1=this.gitInv1||st(this.git1),this.gitInv2=this.gitInv2||st(this.git2),this.gitInv3=this.gitInv3||st(this.git3),this.gitInv4=this.gitInv4||st(this.git4),this.gitInv5=this.gitInv5||st(this.git5),this.gitInv6=this.gitInv6||st(this.git6),this.gitInv7=this.gitInv7||st(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||st(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||st(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Hc,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||qc}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(i=>{this[i]=e[i]}),this.updateColors(),n.forEach(i=>{this[i]=e[i]})}};const oP=t=>{const e=new rP;return e.calculate(t),e};let sP=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=pt("#cde498",10),this.primaryBorderColor=qe(this.primaryColor,this.darkMode),this.secondaryBorderColor=qe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=qe(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.primaryColor),this.lineColor=st(this.background),this.textColor=st(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,n,i,r,o,s,a,l,c,u,h;this.actorBorder=xt(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||k(this.primaryColor,{h:30}),this.cScale4=this.cScale4||k(this.primaryColor,{h:60}),this.cScale5=this.cScale5||k(this.primaryColor,{h:90}),this.cScale6=this.cScale6||k(this.primaryColor,{h:120}),this.cScale7=this.cScale7||k(this.primaryColor,{h:150}),this.cScale8=this.cScale8||k(this.primaryColor,{h:210}),this.cScale9=this.cScale9||k(this.primaryColor,{h:270}),this.cScale10=this.cScale10||k(this.primaryColor,{h:300}),this.cScale11=this.cScale11||k(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||xt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||xt(this.tertiaryColor,40);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=xt(this["cScale"+f],10),this["cScalePeer"+f]=this["cScalePeer"+f]||xt(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||k(this["cScale"+f],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||k(this.mainBkg,{h:30,s:-30,l:-(5+f*5)}),this["surfacePeer"+f]=this["surfacePeer"+f]||k(this.mainBkg,{h:30,s:-30,l:-(8+f*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=k(this.primaryColor,{h:64}),this.fillType3=k(this.secondaryColor,{h:64}),this.fillType4=k(this.primaryColor,{h:-64}),this.fillType5=k(this.secondaryColor,{h:-64}),this.fillType6=k(this.primaryColor,{h:128}),this.fillType7=k(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||k(this.primaryColor,{l:-30}),this.pie5=this.pie5||k(this.secondaryColor,{l:-30}),this.pie6=this.pie6||k(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||k(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||k(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||k(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||k(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||k(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||k(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||k(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||k(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||k(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||k(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||k(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||k(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ma(this.quadrant1Fill)?pt(this.quadrant1Fill):xt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((r=this.xyChart)==null?void 0:r.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||k(this.primaryColor,{h:-30}),this.git4=this.git4||k(this.primaryColor,{h:-60}),this.git5=this.git5||k(this.primaryColor,{h:-90}),this.git6=this.git6||k(this.primaryColor,{h:60}),this.git7=this.git7||k(this.primaryColor,{h:120}),this.darkMode?(this.git0=pt(this.git0,25),this.git1=pt(this.git1,25),this.git2=pt(this.git2,25),this.git3=pt(this.git3,25),this.git4=pt(this.git4,25),this.git5=pt(this.git5,25),this.git6=pt(this.git6,25),this.git7=pt(this.git7,25)):(this.git0=xt(this.git0,25),this.git1=xt(this.git1,25),this.git2=xt(this.git2,25),this.git3=xt(this.git3,25),this.git4=xt(this.git4,25),this.git5=xt(this.git5,25),this.git6=xt(this.git6,25),this.git7=xt(this.git7,25)),this.gitInv0=this.gitInv0||st(this.git0),this.gitInv1=this.gitInv1||st(this.git1),this.gitInv2=this.gitInv2||st(this.git2),this.gitInv3=this.gitInv3||st(this.git3),this.gitInv4=this.gitInv4||st(this.git4),this.gitInv5=this.gitInv5||st(this.git5),this.gitInv6=this.gitInv6||st(this.git6),this.gitInv7=this.gitInv7||st(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||st(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||st(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Hc,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||qc}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(i=>{this[i]=e[i]}),this.updateColors(),n.forEach(i=>{this[i]=e[i]})}};const aP=t=>{const e=new sP;return e.calculate(t),e};class lP{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=pt(this.contrast,55),this.background="#ffffff",this.tertiaryColor=k(this.primaryColor,{h:-160}),this.primaryBorderColor=qe(this.primaryColor,this.darkMode),this.secondaryBorderColor=qe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=qe(this.tertiaryColor,this.darkMode),this.primaryTextColor=st(this.primaryColor),this.secondaryTextColor=st(this.secondaryColor),this.tertiaryTextColor=st(this.tertiaryColor),this.lineColor=st(this.background),this.textColor=st(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,n,i,r,o,s,a,l,c,u,h;this.secondBkg=pt(this.contrast,55),this.border2=this.contrast,this.actorBorder=pt(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||st(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||pt(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||xt(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||k(this.mainBkg,{l:-(5+f*5)}),this["surfacePeer"+f]=this["surfacePeer"+f]||k(this.mainBkg,{l:-(8+f*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=pt(this.contrast,30),this.sectionBkgColor2=pt(this.contrast,30),this.taskBorderColor=xt(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=pt(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=xt(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=k(this.primaryColor,{h:64}),this.fillType3=k(this.secondaryColor,{h:64}),this.fillType4=k(this.primaryColor,{h:-64}),this.fillType5=k(this.secondaryColor,{h:-64}),this.fillType6=k(this.primaryColor,{h:128}),this.fillType7=k(this.secondaryColor,{h:128});for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["pie"+f]=this["cScale"+f];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||k(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||k(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||k(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||k(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||k(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||k(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ma(this.quadrant1Fill)?pt(this.quadrant1Fill):xt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((r=this.xyChart)==null?void 0:r.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=xt(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||k(this.primaryColor,{h:-30}),this.git4=this.pie5||k(this.primaryColor,{h:-60}),this.git5=this.pie6||k(this.primaryColor,{h:-90}),this.git6=this.pie7||k(this.primaryColor,{h:60}),this.git7=this.pie8||k(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||st(this.git0),this.gitInv1=this.gitInv1||st(this.git1),this.gitInv2=this.gitInv2||st(this.git2),this.gitInv3=this.gitInv3||st(this.git3),this.gitInv4=this.gitInv4||st(this.git4),this.gitInv5=this.gitInv5||st(this.git5),this.gitInv6=this.gitInv6||st(this.git6),this.gitInv7=this.gitInv7||st(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Hc,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||qc}calculate(e){if(typeof e!="object"){this.updateColors();return}const n=Object.keys(e);n.forEach(i=>{this[i]=e[i]}),this.updateColors(),n.forEach(i=>{this[i]=e[i]})}}const cP=t=>{const e=new lP;return e.calculate(t),e},bi={base:{getThemeVariables:eP},dark:{getThemeVariables:iP},default:{getThemeVariables:oP},forest:{getThemeVariables:aP},neutral:{getThemeVariables:cP}},ci={flowchart:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],deterministicIds:!1,fontSize:16},y1={...ci,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:bi.default.getThemeVariables(),sequence:{...ci.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...ci.gantt,tickInterval:void 0,useWidth:void 0},c4:{...ci.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...ci.pie,useWidth:984},xyChart:{...ci.xyChart,useWidth:void 0},requirement:{...ci.requirement,useWidth:void 0},gitGraph:{...ci.gitGraph,useMaxWidth:!1},sankey:{...ci.sankey,useMaxWidth:!1}},_1=(t,e="")=>Object.keys(t).reduce((n,i)=>Array.isArray(t[i])?n:typeof t[i]=="object"&&t[i]!==null?[...n,e+i,..._1(t[i],"")]:[...n,e+i],[]),uP=new Set(_1(y1,"")),hP=y1,tc=t=>{if(vt.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>tc(e));return}for(const e of Object.keys(t)){if(vt.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!uP.has(e)||t[e]==null){vt.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){vt.debug("sanitizing object",e),tc(t[e]);continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const i of n)e.includes(i)&&(vt.debug("sanitizing css option",e),t[e]=fP(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const n=t.themeVariables[e];n!=null&&n.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}vt.debug("After sanitization",t)}},fP=t=>{let e=0,n=0;for(const i of t){if(e<n)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?e++:i==="}"&&n++}return e!==n?"{ /* ERROR: Unbalanced CSS */ }":t},v1=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,ws=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,dP=/\s*%%.*\n/gm;class b1 extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const Oo={},zc=function(t,e){t=t.replace(v1,"").replace(ws,"").replace(dP,`
`);for(const[n,{detector:i}]of Object.entries(Oo))if(i(t,e))return n;throw new b1(`No diagram type detected matching given configuration for text: ${t}`)},x1=(...t)=>{for(const{id:e,detector:n,loader:i}of t)C1(e,n,i)},C1=(t,e,n)=>{Oo[t]?vt.error(`Detector with key ${t} already exists`):Oo[t]={detector:e,loader:n},vt.debug(`Detector with key ${t} added${n?" with loader":""}`)},pP=t=>Oo[t].loader,Qh=(t,e,{depth:n=2,clobber:i=!1}={})=>{const r={depth:n,clobber:i};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>Qh(t,o,r)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||n<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=Qh(t[o],e[o],{depth:n-1,clobber:i})):(i||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},Fe=Qh;var mP=typeof global=="object"&&global&&global.Object===Object&&global;const w1=mP;var gP=typeof self=="object"&&self&&self.Object===Object&&self,yP=w1||gP||Function("return this")();const ri=yP;var _P=ri.Symbol;const ec=_P;var T1=Object.prototype,vP=T1.hasOwnProperty,bP=T1.toString,ss=ec?ec.toStringTag:void 0;function xP(t){var e=vP.call(t,ss),n=t[ss];try{t[ss]=void 0;var i=!0}catch{}var r=bP.call(t);return i&&(e?t[ss]=n:delete t[ss]),r}var CP=Object.prototype,wP=CP.toString;function TP(t){return wP.call(t)}var SP="[object Null]",kP="[object Undefined]",Bg=ec?ec.toStringTag:void 0;function qo(t){return t==null?t===void 0?kP:SP:Bg&&Bg in Object(t)?xP(t):TP(t)}function eo(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var AP="[object AsyncFunction]",EP="[object Function]",$P="[object GeneratorFunction]",LP="[object Proxy]";function Td(t){if(!eo(t))return!1;var e=qo(t);return e==EP||e==$P||e==AP||e==LP}var OP=ri["__core-js_shared__"];const Du=OP;var Ig=function(){var t=/[^.]+$/.exec(Du&&Du.keys&&Du.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function MP(t){return!!Ig&&Ig in t}var FP=Function.prototype,BP=FP.toString;function no(t){if(t!=null){try{return BP.call(t)}catch{}try{return t+""}catch{}}return""}var IP=/[\\^$.*+?()[\]{}|]/g,PP=/^\[object .+?Constructor\]$/,RP=Function.prototype,NP=Object.prototype,DP=RP.toString,jP=NP.hasOwnProperty,HP=RegExp("^"+DP.call(jP).replace(IP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qP(t){if(!eo(t)||MP(t))return!1;var e=Td(t)?HP:PP;return e.test(no(t))}function zP(t,e){return t==null?void 0:t[e]}function io(t,e){var n=zP(t,e);return qP(n)?n:void 0}var VP=io(Object,"create");const Ys=VP;function WP(){this.__data__=Ys?Ys(null):{},this.size=0}function UP(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var YP="__lodash_hash_undefined__",GP=Object.prototype,KP=GP.hasOwnProperty;function XP(t){var e=this.__data__;if(Ys){var n=e[t];return n===YP?void 0:n}return KP.call(e,t)?e[t]:void 0}var ZP=Object.prototype,JP=ZP.hasOwnProperty;function QP(t){var e=this.__data__;return Ys?e[t]!==void 0:JP.call(e,t)}var t6="__lodash_hash_undefined__";function e6(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ys&&e===void 0?t6:e,this}function Gr(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Gr.prototype.clear=WP;Gr.prototype.delete=UP;Gr.prototype.get=XP;Gr.prototype.has=QP;Gr.prototype.set=e6;function n6(){this.__data__=[],this.size=0}function Vc(t,e){return t===e||t!==t&&e!==e}function Wc(t,e){for(var n=t.length;n--;)if(Vc(t[n][0],e))return n;return-1}var i6=Array.prototype,r6=i6.splice;function o6(t){var e=this.__data__,n=Wc(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():r6.call(e,n,1),--this.size,!0}function s6(t){var e=this.__data__,n=Wc(e,t);return n<0?void 0:e[n][1]}function a6(t){return Wc(this.__data__,t)>-1}function l6(t,e){var n=this.__data__,i=Wc(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}function Oi(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Oi.prototype.clear=n6;Oi.prototype.delete=o6;Oi.prototype.get=s6;Oi.prototype.has=a6;Oi.prototype.set=l6;var c6=io(ri,"Map");const Gs=c6;function u6(){this.size=0,this.__data__={hash:new Gr,map:new(Gs||Oi),string:new Gr}}function h6(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Uc(t,e){var n=t.__data__;return h6(e)?n[typeof e=="string"?"string":"hash"]:n.map}function f6(t){var e=Uc(this,t).delete(t);return this.size-=e?1:0,e}function d6(t){return Uc(this,t).get(t)}function p6(t){return Uc(this,t).has(t)}function m6(t,e){var n=Uc(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}function dr(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}dr.prototype.clear=u6;dr.prototype.delete=f6;dr.prototype.get=d6;dr.prototype.has=p6;dr.prototype.set=m6;var g6="Expected a function";function ga(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(g6);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(ga.Cache||dr),n}ga.Cache=dr;function y6(){this.__data__=new Oi,this.size=0}function _6(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function v6(t){return this.__data__.get(t)}function b6(t){return this.__data__.has(t)}var x6=200;function C6(t,e){var n=this.__data__;if(n instanceof Oi){var i=n.__data__;if(!Gs||i.length<x6-1)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new dr(i)}return n.set(t,e),this.size=n.size,this}function zo(t){var e=this.__data__=new Oi(t);this.size=e.size}zo.prototype.clear=y6;zo.prototype.delete=_6;zo.prototype.get=v6;zo.prototype.has=b6;zo.prototype.set=C6;var w6=function(){try{var t=io(Object,"defineProperty");return t({},"",{}),t}catch{}}();const nc=w6;function Sd(t,e,n){e=="__proto__"&&nc?nc(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function tf(t,e,n){(n!==void 0&&!Vc(t[e],n)||n===void 0&&!(e in t))&&Sd(t,e,n)}function T6(t){return function(e,n,i){for(var r=-1,o=Object(e),s=i(e),a=s.length;a--;){var l=s[t?a:++r];if(n(o[l],l,o)===!1)break}return e}}var S6=T6();const k6=S6;var S1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pg=S1&&typeof module=="object"&&module&&!module.nodeType&&module,A6=Pg&&Pg.exports===S1,Rg=A6?ri.Buffer:void 0,Ng=Rg?Rg.allocUnsafe:void 0;function E6(t,e){if(e)return t.slice();var n=t.length,i=Ng?Ng(n):new t.constructor(n);return t.copy(i),i}var $6=ri.Uint8Array;const Dg=$6;function L6(t){var e=new t.constructor(t.byteLength);return new Dg(e).set(new Dg(t)),e}function O6(t,e){var n=e?L6(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function M6(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}var jg=Object.create,F6=function(){function t(){}return function(e){if(!eo(e))return{};if(jg)return jg(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const B6=F6;function k1(t,e){return function(n){return t(e(n))}}var I6=k1(Object.getPrototypeOf,Object);const A1=I6;var P6=Object.prototype;function Yc(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||P6;return t===n}function R6(t){return typeof t.constructor=="function"&&!Yc(t)?B6(A1(t)):{}}function ya(t){return t!=null&&typeof t=="object"}var N6="[object Arguments]";function Hg(t){return ya(t)&&qo(t)==N6}var E1=Object.prototype,D6=E1.hasOwnProperty,j6=E1.propertyIsEnumerable,H6=Hg(function(){return arguments}())?Hg:function(t){return ya(t)&&D6.call(t,"callee")&&!j6.call(t,"callee")};const ic=H6;var q6=Array.isArray;const rc=q6;var z6=9007199254740991;function $1(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=z6}function Gc(t){return t!=null&&$1(t.length)&&!Td(t)}function V6(t){return ya(t)&&Gc(t)}function W6(){return!1}var L1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qg=L1&&typeof module=="object"&&module&&!module.nodeType&&module,U6=qg&&qg.exports===L1,zg=U6?ri.Buffer:void 0,Y6=zg?zg.isBuffer:void 0,G6=Y6||W6;const kd=G6;var K6="[object Object]",X6=Function.prototype,Z6=Object.prototype,O1=X6.toString,J6=Z6.hasOwnProperty,Q6=O1.call(Object);function tR(t){if(!ya(t)||qo(t)!=K6)return!1;var e=A1(t);if(e===null)return!0;var n=J6.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&O1.call(n)==Q6}var eR="[object Arguments]",nR="[object Array]",iR="[object Boolean]",rR="[object Date]",oR="[object Error]",sR="[object Function]",aR="[object Map]",lR="[object Number]",cR="[object Object]",uR="[object RegExp]",hR="[object Set]",fR="[object String]",dR="[object WeakMap]",pR="[object ArrayBuffer]",mR="[object DataView]",gR="[object Float32Array]",yR="[object Float64Array]",_R="[object Int8Array]",vR="[object Int16Array]",bR="[object Int32Array]",xR="[object Uint8Array]",CR="[object Uint8ClampedArray]",wR="[object Uint16Array]",TR="[object Uint32Array]",ie={};ie[gR]=ie[yR]=ie[_R]=ie[vR]=ie[bR]=ie[xR]=ie[CR]=ie[wR]=ie[TR]=!0;ie[eR]=ie[nR]=ie[pR]=ie[iR]=ie[mR]=ie[rR]=ie[oR]=ie[sR]=ie[aR]=ie[lR]=ie[cR]=ie[uR]=ie[hR]=ie[fR]=ie[dR]=!1;function SR(t){return ya(t)&&$1(t.length)&&!!ie[qo(t)]}function kR(t){return function(e){return t(e)}}var M1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ts=M1&&typeof module=="object"&&module&&!module.nodeType&&module,AR=Ts&&Ts.exports===M1,ju=AR&&w1.process,ER=function(){try{var t=Ts&&Ts.require&&Ts.require("util").types;return t||ju&&ju.binding&&ju.binding("util")}catch{}}();const Vg=ER;var Wg=Vg&&Vg.isTypedArray,$R=Wg?kR(Wg):SR;const Ad=$R;function ef(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var LR=Object.prototype,OR=LR.hasOwnProperty;function MR(t,e,n){var i=t[e];(!(OR.call(t,e)&&Vc(i,n))||n===void 0&&!(e in t))&&Sd(t,e,n)}function FR(t,e,n,i){var r=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=i?i(n[a],t[a],a,n,t):void 0;l===void 0&&(l=t[a]),r?Sd(n,a,l):MR(n,a,l)}return n}function BR(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}var IR=9007199254740991,PR=/^(?:0|[1-9]\d*)$/;function F1(t,e){var n=typeof t;return e=e??IR,!!e&&(n=="number"||n!="symbol"&&PR.test(t))&&t>-1&&t%1==0&&t<e}var RR=Object.prototype,NR=RR.hasOwnProperty;function DR(t,e){var n=rc(t),i=!n&&ic(t),r=!n&&!i&&kd(t),o=!n&&!i&&!r&&Ad(t),s=n||i||r||o,a=s?BR(t.length,String):[],l=a.length;for(var c in t)(e||NR.call(t,c))&&!(s&&(c=="length"||r&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||F1(c,l)))&&a.push(c);return a}function jR(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var HR=Object.prototype,qR=HR.hasOwnProperty;function zR(t){if(!eo(t))return jR(t);var e=Yc(t),n=[];for(var i in t)i=="constructor"&&(e||!qR.call(t,i))||n.push(i);return n}function B1(t){return Gc(t)?DR(t,!0):zR(t)}function VR(t){return FR(t,B1(t))}function WR(t,e,n,i,r,o,s){var a=ef(t,n),l=ef(e,n),c=s.get(l);if(c){tf(t,n,c);return}var u=o?o(a,l,n+"",t,e,s):void 0,h=u===void 0;if(h){var f=rc(l),d=!f&&kd(l),p=!f&&!d&&Ad(l);u=l,f||d||p?rc(a)?u=a:V6(a)?u=M6(a):d?(h=!1,u=E6(l,!0)):p?(h=!1,u=O6(l,!0)):u=[]:tR(l)||ic(l)?(u=a,ic(a)?u=VR(a):(!eo(a)||Td(a))&&(u=R6(l))):h=!1}h&&(s.set(l,u),r(u,l,i,o,s),s.delete(l)),tf(t,n,u)}function I1(t,e,n,i,r){t!==e&&k6(e,function(o,s){if(r||(r=new zo),eo(o))WR(t,e,s,n,I1,i,r);else{var a=i?i(ef(t,s),o,s+"",t,e,r):void 0;a===void 0&&(a=o),tf(t,s,a)}},B1)}function P1(t){return t}function UR(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Ug=Math.max;function YR(t,e,n){return e=Ug(e===void 0?t.length-1:e,0),function(){for(var i=arguments,r=-1,o=Ug(i.length-e,0),s=Array(o);++r<o;)s[r]=i[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=i[r];return a[e]=n(s),UR(t,this,a)}}function GR(t){return function(){return t}}var KR=nc?function(t,e){return nc(t,"toString",{configurable:!0,enumerable:!1,value:GR(e),writable:!0})}:P1;const XR=KR;var ZR=800,JR=16,QR=Date.now;function tN(t){var e=0,n=0;return function(){var i=QR(),r=JR-(i-n);if(n=i,r>0){if(++e>=ZR)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var eN=tN(XR);const nN=eN;function iN(t,e){return nN(YR(t,e,P1),t+"")}function rN(t,e,n){if(!eo(n))return!1;var i=typeof e;return(i=="number"?Gc(n)&&F1(e,n.length):i=="string"&&e in n)?Vc(n[e],t):!1}function oN(t){return iN(function(e,n){var i=-1,r=n.length,o=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(r--,o):void 0,s&&rN(n[0],n[1],s)&&(o=r<3?void 0:o,r=1),e=Object(e);++i<r;){var a=n[i];a&&t(e,a,i,o)}return e})}var sN=oN(function(t,e,n){I1(t,e,n)});const aN=sN,lN="",cN={curveBasis:II,curveBasisClosed:PI,curveBasisOpen:RI,curveBumpX:FI,curveBumpY:BI,curveBundle:NI,curveCardinalClosed:jI,curveCardinalOpen:HI,curveCardinal:DI,curveCatmullRomClosed:zI,curveCatmullRomOpen:VI,curveCatmullRom:qI,curveLinear:MI,curveLinearClosed:WI,curveMonotoneX:UI,curveMonotoneY:YI,curveNatural:GI,curveStep:KI,curveStepAfter:ZI,curveStepBefore:XI},uN=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,hN=function(t,e){const n=R1(t,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(n)){const s=n.map(a=>a.args);tc(s),i=Fe(i,[...s])}else i=n.args;if(!i)return;let r=zc(t,e);const o="config";return i[o]!==void 0&&(r==="flowchart-v2"&&(r="flowchart"),i[r]=i[o],delete i[o]),i},R1=function(t,e=null){try{const n=new RegExp(`[%]{2}(?![{]${uN.source})(?=[}][%]{2}).*
`,"ig");t=t.trim().replace(n,"").replace(/'/gm,'"'),vt.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let i;const r=[];for(;(i=ws.exec(t))!==null;)if(i.index===ws.lastIndex&&ws.lastIndex++,i&&!e||e&&i[1]&&i[1].match(e)||e&&i[2]&&i[2].match(e)){const o=i[1]?i[1]:i[2],s=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;r.push({type:o,args:s})}return r.length===0?{type:t,args:null}:r.length===1?r[0]:r}catch(n){return vt.error(`ERROR: ${n.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},fN=function(t){return t.replace(ws,"")},dN=function(t,e){for(const[n,i]of e.entries())if(i.match(t))return n;return-1};function pN(t,e){if(!t)return e;const n=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return cN[n]??e}function mN(t,e){const n=t.trim();if(n)return e.securityLevel!=="loose"?xv(n):n}const gN=(t,...e)=>{const n=t.split("."),i=n.length-1,r=n[i];let o=window;for(let s=0;s<i;s++)if(o=o[n[s]],!o){vt.error(`Function name: ${t} not found in window`);return}o[r](...e)};function N1(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function yN(t){let e,n=0;t.forEach(r=>{n+=N1(r,e),e=r});const i=n/2;return Ed(t,i)}function _N(t){return t.length===1?t[0]:yN(t)}const Yg=(t,e=2)=>{const n=Math.pow(10,e);return Math.round(t*n)/n},Ed=(t,e)=>{let n,i=e;for(const r of t){if(n){const o=N1(r,n);if(o<i)i-=o;else{const s=i/o;if(s<=0)return n;if(s>=1)return{x:r.x,y:r.y};if(s>0&&s<1)return{x:Yg((1-s)*n.x+s*r.x,5),y:Yg((1-s)*n.y+s*r.y,5)}}}n=r}throw new Error("Could not find a suitable point for the given distance")},vN=(t,e,n)=>{vt.info(`our points ${JSON.stringify(e)}`),e[0]!==n&&(e=e.reverse());const r=Ed(e,25),o=t?10:5,s=Math.atan2(e[0].y-r.y,e[0].x-r.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+r.x)/2,a.y=-Math.cos(s)*o+(e[0].y+r.y)/2,a};function bN(t,e,n){const i=structuredClone(n);vt.info("our points",i),e!=="start_left"&&e!=="start_right"&&i.reverse();const r=25+t,o=Ed(i,r),s=10+t*.5,a=Math.atan2(i[0].y-o.y,i[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(i[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(i[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(i[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(i[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(i[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(i[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(i[0].x+o.x)/2,l.y=-Math.cos(a)*s+(i[0].y+o.y)/2),l}function xN(t){let e="",n="";for(const i of t)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?n=n+i+";":e=e+i+";");return{style:e,labelStyle:n}}let Gg=0;const CN=()=>(Gg++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Gg);function wN(t){let e="";const n="0123456789abcdef",i=n.length;for(let r=0;r<t;r++)e+=n.charAt(Math.floor(Math.random()*i));return e}const TN=t=>wN(t.length),SN=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},kN=function(t,e){const n=e.text.replace(wd.lineBreakRegex," "),[,i]=Ld(e.fontSize),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.style("text-anchor",e.anchor),r.style("font-family",e.fontFamily),r.style("font-size",i),r.style("font-weight",e.fontWeight),r.attr("fill",e.fill),e.class!==void 0&&r.attr("class",e.class);const o=r.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(n),r},AN=ga((t,e,n)=>{if(!t||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),wd.lineBreakRegex.test(t)))return t;const i=t.split(" "),r=[];let o="";return i.forEach((s,a)=>{const l=oc(`${s} `,n),c=oc(o,n);if(l>e){const{hyphenatedStrings:f,remainingWord:d}=EN(s,e,"-",n);r.push(o,...f),o=d}else c+l>=e?(r.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===i.length&&r.push(o)}),r.filter(s=>s!=="").join(n.joinWith)},(t,e,n)=>`${t}${e}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),EN=ga((t,e,n="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const r=[...t],o=[];let s="";return r.forEach((a,l)=>{const c=`${s}${a}`;if(oc(c,i)>=e){const h=l+1,f=r.length===h,d=`${c}${n}`;o.push(f?c:d),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,n="-",i)=>`${t}${e}${n}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function $N(t,e){return $d(t,e).height}function oc(t,e){return $d(t,e).width}const $d=ga((t,e)=>{const{fontSize:n=12,fontFamily:i="Arial",fontWeight:r=400}=e;if(!t)return{width:0,height:0};const[,o]=Ld(n),s=["sans-serif",i],a=t.split(wd.lineBreakRegex),l=[],c=mn("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const f of s){let d=0;const p={width:0,height:0,lineHeight:0};for(const g of a){const y=SN();y.text=g||lN;const b=kN(u,y).style("font-size",o).style("font-weight",r).style("font-family",f),v=(b._groups||b)[0][0].getBBox();if(v.width===0&&v.height===0)throw new Error("svg element not in render tree");p.width=Math.round(Math.max(p.width,v.width)),d=Math.round(v.height),p.height+=d,p.lineHeight=Math.round(Math.max(p.lineHeight,d))}l.push(p)}u.remove();const h=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[h]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class LN{constructor(e=!1,n){this.count=0,this.count=n?n.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let Ua;const ON=function(t){return Ua=Ua||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Ua.innerHTML=t,unescape(Ua.textContent)};function D1(t){return"str"in t}const MN=(t,e,n,i)=>{var r;if(!i)return;const o=(r=t.node())==null?void 0:r.getBBox();o&&t.append("text").text(i).attr("x",o.x+o.width/2).attr("y",-n).attr("class",e)},Ld=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function j1(t,e){return aN({},t,e)}const Ss={assignWithDepth:Fe,wrapLabel:AN,calculateTextHeight:$N,calculateTextWidth:oc,calculateTextDimensions:$d,cleanAndMerge:j1,detectInit:hN,detectDirective:R1,isSubstringInArray:dN,interpolateToCurve:pN,calcLabelPosition:_N,calcCardinalityPosition:vN,calcTerminalLabelPosition:bN,formatUrl:mN,getStylesFromArray:xN,generateId:CN,random:TN,runFunc:gN,entityDecode:ON,insertTitle:MN,parseFontSize:Ld,InitIDGenerator:LN},FN=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),e=e.replace(/#\w+;/g,function(n){const i=n.substring(1,n.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),e},BN=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")};var H1="comm",q1="rule",z1="decl",IN="@import",PN="@keyframes",RN=Math.abs,Od=String.fromCharCode;function V1(t){return t.trim()}function nf(t,e,n){return t.replace(e,n)}function NN(t,e){return t.indexOf(e)}function Ks(t,e){return t.charCodeAt(e)|0}function Xs(t,e,n){return t.slice(e,n)}function Vi(t){return t.length}function W1(t){return t.length}function Ya(t,e){return e.push(t),t}var Kc=1,Mo=1,U1=0,Cn=0,pe=0,Vo="";function Md(t,e,n,i,r,o,s){return{value:t,root:e,parent:n,type:i,props:r,children:o,line:Kc,column:Mo,length:s,return:""}}function DN(){return pe}function jN(){return pe=Cn>0?Ks(Vo,--Cn):0,Mo--,pe===10&&(Mo=1,Kc--),pe}function Rn(){return pe=Cn<U1?Ks(Vo,Cn++):0,Mo++,pe===10&&(Mo=1,Kc++),pe}function Hr(){return Ks(Vo,Cn)}function ml(){return Cn}function Xc(t,e){return Xs(Vo,t,e)}function rf(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function HN(t){return Kc=Mo=1,U1=Vi(Vo=t),Cn=0,[]}function qN(t){return Vo="",t}function Hu(t){return V1(Xc(Cn-1,of(t===91?t+2:t===40?t+1:t)))}function zN(t){for(;(pe=Hr())&&pe<33;)Rn();return rf(t)>2||rf(pe)>3?"":" "}function VN(t,e){for(;--e&&Rn()&&!(pe<48||pe>102||pe>57&&pe<65||pe>70&&pe<97););return Xc(t,ml()+(e<6&&Hr()==32&&Rn()==32))}function of(t){for(;Rn();)switch(pe){case t:return Cn;case 34:case 39:t!==34&&t!==39&&of(pe);break;case 40:t===41&&of(t);break;case 92:Rn();break}return Cn}function WN(t,e){for(;Rn()&&t+pe!==57;)if(t+pe===84&&Hr()===47)break;return"/*"+Xc(e,Cn-1)+"*"+Od(t===47?t:Rn())}function UN(t){for(;!rf(Hr());)Rn();return Xc(t,Cn)}function YN(t){return qN(gl("",null,null,null,[""],t=HN(t),0,[0],t))}function gl(t,e,n,i,r,o,s,a,l){for(var c=0,u=0,h=s,f=0,d=0,p=0,g=1,y=1,b=1,v=0,_="",w=r,S=o,B=i,C=_;y;)switch(p=v,v=Rn()){case 40:if(p!=108&&Ks(C,h-1)==58){NN(C+=nf(Hu(v),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:C+=Hu(v);break;case 9:case 10:case 13:case 32:C+=zN(p);break;case 92:C+=VN(ml()-1,7);continue;case 47:switch(Hr()){case 42:case 47:Ya(GN(WN(Rn(),ml()),e,n),l);break;default:C+="/"}break;case 123*g:a[c++]=Vi(C)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+u:d>0&&Vi(C)-h&&Ya(d>32?Xg(C+";",i,n,h-1):Xg(nf(C," ","")+";",i,n,h-2),l);break;case 59:C+=";";default:if(Ya(B=Kg(C,e,n,c,u,r,a,_,w=[],S=[],h),o),v===123)if(u===0)gl(C,e,B,B,w,o,h,a,S);else switch(f===99&&Ks(C,3)===110?100:f){case 100:case 109:case 115:gl(t,B,B,i&&Ya(Kg(t,B,B,0,0,r,a,_,r,w=[],h),S),r,S,h,a,i?w:S);break;default:gl(C,B,B,B,[""],S,0,a,S)}}c=u=d=0,g=b=1,_=C="",h=s;break;case 58:h=1+Vi(C),d=p;default:if(g<1){if(v==123)--g;else if(v==125&&g++==0&&jN()==125)continue}switch(C+=Od(v),v*g){case 38:b=u>0?1:(C+="\f",-1);break;case 44:a[c++]=(Vi(C)-1)*b,b=1;break;case 64:Hr()===45&&(C+=Hu(Rn())),f=Hr(),u=h=Vi(_=C+=UN(ml())),v++;break;case 45:p===45&&Vi(C)==2&&(g=0)}}return o}function Kg(t,e,n,i,r,o,s,a,l,c,u){for(var h=r-1,f=r===0?o:[""],d=W1(f),p=0,g=0,y=0;p<i;++p)for(var b=0,v=Xs(t,h+1,h=RN(g=s[p])),_=t;b<d;++b)(_=V1(g>0?f[b]+" "+v:nf(v,/&\f/g,f[b])))&&(l[y++]=_);return Md(t,e,n,r===0?q1:a,l,c,u)}function GN(t,e,n){return Md(t,e,n,H1,Od(DN()),Xs(t,2,-2),0)}function Xg(t,e,n,i){return Md(t,e,n,z1,Xs(t,0,i),Xs(t,i+1,-1),i)}function sf(t,e){for(var n="",i=W1(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function KN(t,e,n,i){switch(t.type){case IN:case z1:return t.return=t.return||t.value;case H1:return"";case PN:return t.return=t.value+"{"+sf(t.children,i)+"}";case q1:t.value=t.props.join(",")}return Vi(n=sf(t.children,i))?t.return=t.value+"{"+n+"}":""}const Zg="10.7.0",Fo=Object.freeze(hP);let Ge=Fe({},Fo),Y1,Bo=[],ks=Fe({},Fo);const Zc=(t,e)=>{let n=Fe({},t),i={};for(const r of e)X1(r),i=Fe(i,r);if(n=Fe(n,i),i.theme&&i.theme in bi){const r=Fe({},Y1),o=Fe(r.themeVariables||{},i.themeVariables);n.theme&&n.theme in bi&&(n.themeVariables=bi[n.theme].getThemeVariables(o))}return ks=n,Z1(ks),ks},XN=t=>(Ge=Fe({},Fo),Ge=Fe(Ge,t),t.theme&&bi[t.theme]&&(Ge.themeVariables=bi[t.theme].getThemeVariables(t.themeVariables)),Zc(Ge,Bo),Ge),ZN=t=>{Y1=Fe({},t)},JN=t=>(Ge=Fe(Ge,t),Zc(Ge,Bo),Ge),G1=()=>Fe({},Ge),K1=t=>(Z1(t),Fe(ks,t),ni()),ni=()=>Fe({},ks),X1=t=>{t&&(["secure",...Ge.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(vt.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&X1(t[e])}))},QN=t=>{tc(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),Bo.push(t),Zc(Ge,Bo)},sc=(t=Ge)=>{Bo=[],Zc(t,Bo)},tD={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Jg={},eD=t=>{Jg[t]||(vt.warn(tD[t]),Jg[t]=!0)},Z1=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&eD("LAZY_LOAD_DEPRECATED")},J1="c4",nD=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),iD=async()=>{const{diagram:t}=await Qt(()=>import("./c4Diagram-c82ee324-0kgbDzSX.js"),__vite__mapDeps([0,1]));return{id:J1,diagram:t}},rD={id:J1,detector:nD,loader:iD},oD=rD,Q1="flowchart",sD=(t,e)=>{var n,i;return((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},aD=async()=>{const{diagram:t}=await Qt(()=>import("./flowDiagram-962873e1-nda6-cW-.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11]));return{id:Q1,diagram:t}},lD={id:Q1,detector:sD,loader:aD},cD=lD,tb="flowchart-v2",uD=(t,e)=>{var n,i,r;return((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-d3"||((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},hD=async()=>{const{diagram:t}=await Qt(()=>import("./flowDiagram-v2-10567f5e-VU4AD-_e.js"),__vite__mapDeps([12,3,5,4,6,7,8,9,10,11]));return{id:tb,diagram:t}},fD={id:tb,detector:uD,loader:hD},dD=fD,eb="er",pD=t=>/^\s*erDiagram/.test(t),mD=async()=>{const{diagram:t}=await Qt(()=>import("./erDiagram-a72da23d-vgjFpPuP.js"),__vite__mapDeps([13,4,9,10,11]));return{id:eb,diagram:t}},gD={id:eb,detector:pD,loader:mD},yD=gD,nb="gitGraph",_D=t=>/^\s*gitGraph/.test(t),vD=async()=>{const{diagram:t}=await Qt(()=>import("./gitGraphDiagram-f715787e-0Bqa11gT.js"),__vite__mapDeps([]));return{id:nb,diagram:t}},bD={id:nb,detector:_D,loader:vD},xD=bD,ib="gantt",CD=t=>/^\s*gantt/.test(t),wD=async()=>{const{diagram:t}=await Qt(()=>import("./ganttDiagram-18b41033-KFKp07jc.js"),__vite__mapDeps([14,15,16]));return{id:ib,diagram:t}},TD={id:ib,detector:CD,loader:wD},SD=TD,rb="info",kD=t=>/^\s*info/.test(t),AD=async()=>{const{diagram:t}=await Qt(()=>import("./infoDiagram-111ef34f-cct2Q13Y.js"),__vite__mapDeps([]));return{id:rb,diagram:t}},ED={id:rb,detector:kD,loader:AD},ob="pie",$D=t=>/^\s*pie/.test(t),LD=async()=>{const{diagram:t}=await Qt(()=>import("./pieDiagram-0a51d72a-VPTxVOZB.js"),__vite__mapDeps([17,18,11,19,16,10]));return{id:ob,diagram:t}},OD={id:ob,detector:$D,loader:LD},sb="quadrantChart",MD=t=>/^\s*quadrantChart/.test(t),FD=async()=>{const{diagram:t}=await Qt(()=>import("./quadrantDiagram-31813e83-T7dXnRZu.js"),__vite__mapDeps([20,15,16]));return{id:sb,diagram:t}},BD={id:sb,detector:MD,loader:FD},ID=BD,ab="xychart",PD=t=>/^\s*xychart-beta/.test(t),RD=async()=>{const{diagram:t}=await Qt(()=>import("./xychartDiagram-ca967019-Jb-DkKGk.js"),__vite__mapDeps([21,8,16,19,15,9,10,11]));return{id:ab,diagram:t}},ND={id:ab,detector:PD,loader:RD},DD=ND,lb="requirement",jD=t=>/^\s*requirement(Diagram)?/.test(t),HD=async()=>{const{diagram:t}=await Qt(()=>import("./requirementDiagram-6d08cb88-VD3gHRhe.js"),__vite__mapDeps([22,4,9,10,11]));return{id:lb,diagram:t}},qD={id:lb,detector:jD,loader:HD},zD=qD,cb="sequence",VD=t=>/^\s*sequenceDiagram/.test(t),WD=async()=>{const{diagram:t}=await Qt(()=>import("./sequenceDiagram-62b9e65a-dBrfESyV.js"),__vite__mapDeps([23,1]));return{id:cb,diagram:t}},UD={id:cb,detector:VD,loader:WD},YD=UD,ub="class",GD=(t,e)=>{var n;return((n=e==null?void 0:e.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},KD=async()=>{const{diagram:t}=await Qt(()=>import("./classDiagram-5d49202d-d9I8momV.js"),__vite__mapDeps([24,25,4,9,10,11]));return{id:ub,diagram:t}},XD={id:ub,detector:GD,loader:KD},ZD=XD,hb="classDiagram",JD=(t,e)=>{var n;return/^\s*classDiagram/.test(t)&&((n=e==null?void 0:e.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},QD=async()=>{const{diagram:t}=await Qt(()=>import("./classDiagram-v2-5328fc73-o_oS6EAJ.js"),__vite__mapDeps([26,25,4,6,7,8,9,10,11]));return{id:hb,diagram:t}},t8={id:hb,detector:JD,loader:QD},e8=t8,fb="state",n8=(t,e)=>{var n;return((n=e==null?void 0:e.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},i8=async()=>{const{diagram:t}=await Qt(()=>import("./stateDiagram-03b49db1-LV6DDYic.js"),__vite__mapDeps([27,28,4,9,10,11]));return{id:fb,diagram:t}},r8={id:fb,detector:n8,loader:i8},o8=r8,db="stateDiagram",s8=(t,e)=>{var n;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((n=e==null?void 0:e.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper")},a8=async()=>{const{diagram:t}=await Qt(()=>import("./stateDiagram-v2-a86a5ce4-iQ_8fA-L.js"),__vite__mapDeps([29,28,4,6,7,8,9,10,11]));return{id:db,diagram:t}},l8={id:db,detector:s8,loader:a8},c8=l8,pb="journey",u8=t=>/^\s*journey/.test(t),h8=async()=>{const{diagram:t}=await Qt(()=>import("./journeyDiagram-30ac10e6-7a2SGMP3.js"),__vite__mapDeps([30,1,18,11]));return{id:pb,diagram:t}},f8={id:pb,detector:u8,loader:h8},d8=f8,p8=function(t,e){for(let n of e)t.attr(n[0],n[1])},m8=function(t,e,n){let i=new Map;return n?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i},mb=function(t,e,n,i){const r=m8(e,n,i);p8(t,r)},g8=function(t,e,n,i){const r=e.node().getBBox(),o=r.width,s=r.height;vt.info(`SVG bounds: ${o}x${s}`,r);let a=0,l=0;vt.info(`Graph bounds: ${a}x${l}`,t),a=o+n*2,l=s+n*2,vt.info(`Calculated bounds: ${a}x${l}`),mb(e,l,a,i);const c=`${r.x-n} ${r.y-n} ${r.width+2*n} ${r.height+2*n}`;e.attr("viewBox",c)},yl={},y8=(t,e,n)=>{let i="";return t in yl&&yl[t]?i=yl[t](n):vt.warn(`No theme found for ${t}`),` & {
font-family: ${n.fontFamily};
font-size: ${n.fontSize};
fill: ${n.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${n.errorBkgColor};
}
& .error-text {
fill: ${n.errorTextColor};
stroke: ${n.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: 2px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${n.lineColor};
stroke: ${n.lineColor};
}
& .marker.cross {
stroke: ${n.lineColor};
}
& svg {
font-family: ${n.fontFamily};
font-size: ${n.fontSize};
}
${i}
${e}
`},_8=(t,e)=>{e!==void 0&&(yl[t]=e)},v8=y8;let Fd="",Bd="",Id="";const Pd=t=>Us(t,ni()),b8=()=>{Fd="",Id="",Bd=""},x8=t=>{Fd=Pd(t).replace(/^\s+/g,"")},C8=()=>Fd,w8=t=>{Id=Pd(t).replace(/\n\s+/g,`
`)},T8=()=>Id,S8=t=>{Bd=Pd(t)},k8=()=>Bd,A8=Object.freeze(Object.defineProperty({__proto__:null,clear:b8,getAccDescription:T8,getAccTitle:C8,getDiagramTitle:k8,setAccDescription:w8,setAccTitle:x8,setDiagramTitle:S8},Symbol.toStringTag,{value:"Module"})),E8=vt,$8=cd,Rd=ni,DW=K1,jW=Fo,L8=t=>Us(t,Rd()),O8=g8,M8=()=>A8,ac={},lc=(t,e,n)=>{var i;if(ac[t])throw new Error(`Diagram ${t} already registered.`);ac[t]=e,n&&C1(t,n),_8(t,e.styles),(i=e.injectUtils)==null||i.call(e,E8,$8,Rd,L8,O8,M8(),()=>{})},Nd=t=>{if(t in ac)return ac[t];throw new F8(t)};class F8 extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const B8=t=>{var e;const{securityLevel:n}=Rd();let i=mn("body");if(n==="sandbox"){const s=((e=mn(`#i${t}`).node())==null?void 0:e.contentDocument)??document;i=mn(s.body)}return i.select(`#${t}`)},I8=(t,e,n)=>{vt.debug(`renering svg for syntax error
`);const i=B8(e);i.attr("viewBox","0 0 2412 512"),mb(i,100,512,!0);const r=i.append("g");r.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),r.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),r.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),r.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),r.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),r.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),r.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),r.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},gb={draw:I8},P8=gb,R8={db:{},renderer:gb,parser:{parser:{yy:{}},parse:()=>{}}},N8=R8,yb="flowchart-elk",D8=(t,e)=>{var n;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="elk")},j8=async()=>{const{diagram:t}=await Qt(()=>import("./flowchart-elk-definition-b97a4072-mWsI5guh.js"),__vite__mapDeps([31,3,7,8,9,10,11]));return{id:yb,diagram:t}},H8={id:yb,detector:D8,loader:j8},q8=H8,_b="timeline",z8=t=>/^\s*timeline/.test(t),V8=async()=>{const{diagram:t}=await Qt(()=>import("./timeline-definition-54d0bf3a-PHsL3qfr.js"),__vite__mapDeps([32,18,11]));return{id:_b,diagram:t}},W8={id:_b,detector:z8,loader:V8},U8=W8,vb="mindmap",Y8=t=>/^\s*mindmap/.test(t),G8=async()=>{const{diagram:t}=await Qt(()=>import("./mindmap-definition-83493066-ARqmEEQ9.js"),__vite__mapDeps([33,8]));return{id:vb,diagram:t}},K8={id:vb,detector:Y8,loader:G8},X8=K8,bb="sankey",Z8=t=>/^\s*sankey-beta/.test(t),J8=async()=>{const{diagram:t}=await Qt(()=>import("./sankeyDiagram-ff1543cb--HN3sqYB.js"),__vite__mapDeps([34,19,16]));return{id:bb,diagram:t}},Q8={id:bb,detector:Z8,loader:J8},t9=Q8;let Qg=!1;const Dd=()=>{Qg||(Qg=!0,lc("error",N8,t=>t.toLowerCase().trim()==="error"),lc("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),x1(oD,e8,ZD,yD,SD,ED,OD,zD,YD,q8,dD,cD,X8,U8,xD,c8,o8,d8,ID,t9,DD))};class xb{constructor(e,n={}){this.text=e,this.metadata=n,this.type="graph",this.text=FN(e),this.text+=`
`;const i=ni();try{this.type=zc(e,i)}catch(o){this.type="error",this.detectError=o}const r=Nd(this.type);vt.debug("Type "+this.type),this.db=r.db,this.renderer=r.renderer,this.parser=r.parser,this.parser.parser.yy=this.db,this.init=r.init,this.parse()}parse(){var e,n,i,r,o;if(this.detectError)throw this.detectError;(n=(e=this.db).clear)==null||n.call(e);const s=ni();(i=this.init)==null||i.call(this,s),this.metadata.title&&((o=(r=this.db).setDiagramTitle)==null||o.call(r,this.metadata.title)),this.parser.parse(this.text)}async render(e,n){await this.renderer.draw(this.text,e,n,this)}getParser(){return this.parser}getType(){return this.type}}const e9=async(t,e={})=>{const n=zc(t,ni());try{Nd(n)}catch{const r=pP(n);if(!r)throw new b1(`Diagram ${n} not found.`);const{id:o,diagram:s}=await r();lc(o,s)}return new xb(t,e)};let af=[];const HW=t=>{af.push(t)},n9=()=>{af.forEach(t=>{t()}),af=[]};var i9=k1(Object.keys,Object);const r9=i9;var o9=Object.prototype,s9=o9.hasOwnProperty;function a9(t){if(!Yc(t))return r9(t);var e=[];for(var n in Object(t))s9.call(t,n)&&n!="constructor"&&e.push(n);return e}var l9=io(ri,"DataView");const lf=l9;var c9=io(ri,"Promise");const cf=c9;var u9=io(ri,"Set");const uf=u9;var h9=io(ri,"WeakMap");const hf=h9;var t0="[object Map]",f9="[object Object]",e0="[object Promise]",n0="[object Set]",i0="[object WeakMap]",r0="[object DataView]",d9=no(lf),p9=no(Gs),m9=no(cf),g9=no(uf),y9=no(hf),wr=qo;(lf&&wr(new lf(new ArrayBuffer(1)))!=r0||Gs&&wr(new Gs)!=t0||cf&&wr(cf.resolve())!=e0||uf&&wr(new uf)!=n0||hf&&wr(new hf)!=i0)&&(wr=function(t){var e=qo(t),n=e==f9?t.constructor:void 0,i=n?no(n):"";if(i)switch(i){case d9:return r0;case p9:return t0;case m9:return e0;case g9:return n0;case y9:return i0}return e});const _9=wr;var v9="[object Map]",b9="[object Set]",x9=Object.prototype,C9=x9.hasOwnProperty;function qu(t){if(t==null)return!0;if(Gc(t)&&(rc(t)||typeof t=="string"||typeof t.splice=="function"||kd(t)||Ad(t)||ic(t)))return!t.length;var e=_9(t);if(e==v9||e==b9)return!t.size;if(Yc(t))return!a9(t).length;for(var n in t)if(C9.call(t,n))return!1;return!0}const w9="graphics-document document";function T9(t,e){t.attr("role",w9),e!==""&&t.attr("aria-roledescription",e)}function S9(t,e,n,i){if(t.insert!==void 0){if(n){const r=`chart-desc-${i}`;t.attr("aria-describedby",r),t.insert("desc",":first-child").attr("id",r).text(n)}if(e){const r=`chart-title-${i}`;t.attr("aria-labelledby",r),t.insert("title",":first-child").attr("id",r).text(e)}}}const k9=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Cb(t){return typeof t>"u"||t===null}function A9(t){return typeof t=="object"&&t!==null}function E9(t){return Array.isArray(t)?t:Cb(t)?[]:[t]}function $9(t,e){var n,i,r,o;if(e)for(o=Object.keys(e),n=0,i=o.length;n<i;n+=1)r=o[n],t[r]=e[r];return t}function L9(t,e){var n="",i;for(i=0;i<e;i+=1)n+=t;return n}function O9(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var M9=Cb,F9=A9,B9=E9,I9=L9,P9=O9,R9=$9,je={isNothing:M9,isObject:F9,toArray:B9,repeat:I9,isNegativeZero:P9,extend:R9};function wb(t,e){var n="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+=`
`+t.mark.snippet),i+" "+n):i}function Zs(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=wb(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Zs.prototype=Object.create(Error.prototype);Zs.prototype.constructor=Zs;Zs.prototype.toString=function(e){return this.name+": "+wb(this,e)};var yi=Zs;function zu(t,e,n,i,r){var o="",s="",a=Math.floor(r/2)-1;return i-e>a&&(o=" ... ",e=i-a+o.length),n-i>a&&(s=" ...",n=i+a-s.length),{str:o+t.slice(e,n).replace(/\t/g,"→")+s,pos:i-e+o.length}}function Vu(t,e){return je.repeat(" ",e-t.length)+t}function N9(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var n=/\r?\n|\r|\0/g,i=[0],r=[],o,s=-1;o=n.exec(t.buffer);)r.push(o.index),i.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,r.length).toString().length,h=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=zu(t.buffer,i[s-l],r[s-l],t.position-(i[s]-i[s-l]),h),a=je.repeat(" ",e.indent)+Vu((t.line-l+1).toString(),u)+" | "+c.str+`
`+a;for(c=zu(t.buffer,i[s],r[s],t.position,h),a+=je.repeat(" ",e.indent)+Vu((t.line+1).toString(),u)+" | "+c.str+`
`,a+=je.repeat("-",e.indent+u+3+c.pos)+`^
`,l=1;l<=e.linesAfter&&!(s+l>=r.length);l++)c=zu(t.buffer,i[s+l],r[s+l],t.position-(i[s]-i[s+l]),h),a+=je.repeat(" ",e.indent)+Vu((t.line+l+1).toString(),u)+" | "+c.str+`
`;return a.replace(/\n$/,"")}var D9=N9,j9=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],H9=["scalar","sequence","mapping"];function q9(t){var e={};return t!==null&&Object.keys(t).forEach(function(n){t[n].forEach(function(i){e[String(i)]=n})}),e}function z9(t,e){if(e=e||{},Object.keys(e).forEach(function(n){if(j9.indexOf(n)===-1)throw new yi('Unknown option "'+n+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(n){return n},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=q9(e.styleAliases||null),H9.indexOf(this.kind)===-1)throw new yi('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Pe=z9;function o0(t,e){var n=[];return t[e].forEach(function(i){var r=n.length;n.forEach(function(o,s){o.tag===i.tag&&o.kind===i.kind&&o.multi===i.multi&&(r=s)}),n[r]=i}),n}function V9(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,n;function i(r){r.multi?(t.multi[r.kind].push(r),t.multi.fallback.push(r)):t[r.kind][r.tag]=t.fallback[r.tag]=r}for(e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(i);return t}function ff(t){return this.extend(t)}ff.prototype.extend=function(e){var n=[],i=[];if(e instanceof Pe)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(n=n.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new yi("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof Pe))throw new yi("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new yi("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new yi("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(o){if(!(o instanceof Pe))throw new yi("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(ff.prototype);return r.implicit=(this.implicit||[]).concat(n),r.explicit=(this.explicit||[]).concat(i),r.compiledImplicit=o0(r,"implicit"),r.compiledExplicit=o0(r,"explicit"),r.compiledTypeMap=V9(r.compiledImplicit,r.compiledExplicit),r};var W9=ff,U9=new Pe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Y9=new Pe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),G9=new Pe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),K9=new W9({explicit:[U9,Y9,G9]});function X9(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Z9(){return null}function J9(t){return t===null}var Q9=new Pe("tag:yaml.org,2002:null",{kind:"scalar",resolve:X9,construct:Z9,predicate:J9,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function tj(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function ej(t){return t==="true"||t==="True"||t==="TRUE"}function nj(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var ij=new Pe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:tj,construct:ej,predicate:nj,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function rj(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function oj(t){return 48<=t&&t<=55}function sj(t){return 48<=t&&t<=57}function aj(t){if(t===null)return!1;var e=t.length,n=0,i=!1,r;if(!e)return!1;if(r=t[n],(r==="-"||r==="+")&&(r=t[++n]),r==="0"){if(n+1===e)return!0;if(r=t[++n],r==="b"){for(n++;n<e;n++)if(r=t[n],r!=="_"){if(r!=="0"&&r!=="1")return!1;i=!0}return i&&r!=="_"}if(r==="x"){for(n++;n<e;n++)if(r=t[n],r!=="_"){if(!rj(t.charCodeAt(n)))return!1;i=!0}return i&&r!=="_"}if(r==="o"){for(n++;n<e;n++)if(r=t[n],r!=="_"){if(!oj(t.charCodeAt(n)))return!1;i=!0}return i&&r!=="_"}}if(r==="_")return!1;for(;n<e;n++)if(r=t[n],r!=="_"){if(!sj(t.charCodeAt(n)))return!1;i=!0}return!(!i||r==="_")}function lj(t){var e=t,n=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(n=-1),e=e.slice(1),i=e[0]),e==="0")return 0;if(i==="0"){if(e[1]==="b")return n*parseInt(e.slice(2),2);if(e[1]==="x")return n*parseInt(e.slice(2),16);if(e[1]==="o")return n*parseInt(e.slice(2),8)}return n*parseInt(e,10)}function cj(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!je.isNegativeZero(t)}var uj=new Pe("tag:yaml.org,2002:int",{kind:"scalar",resolve:aj,construct:lj,predicate:cj,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),hj=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function fj(t){return!(t===null||!hj.test(t)||t[t.length-1]==="_")}function dj(t){var e,n;return e=t.replace(/_/g,"").toLowerCase(),n=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:n*parseFloat(e,10)}var pj=/^[-+]?[0-9]+e/;function mj(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(je.isNegativeZero(t))return"-0.0";return n=t.toString(10),pj.test(n)?n.replace("e",".e"):n}function gj(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||je.isNegativeZero(t))}var yj=new Pe("tag:yaml.org,2002:float",{kind:"scalar",resolve:fj,construct:dj,predicate:gj,represent:mj,defaultStyle:"lowercase"}),Tb=K9.extend({implicit:[Q9,ij,uj,yj]}),_j=Tb,Sb=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),kb=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function vj(t){return t===null?!1:Sb.exec(t)!==null||kb.exec(t)!==null}function bj(t){var e,n,i,r,o,s,a,l=0,c=null,u,h,f;if(e=Sb.exec(t),e===null&&(e=kb.exec(t)),e===null)throw new Error("Date resolve error");if(n=+e[1],i=+e[2]-1,r=+e[3],!e[4])return new Date(Date.UTC(n,i,r));if(o=+e[4],s=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],h=+(e[11]||0),c=(u*60+h)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(n,i,r,o,s,a,l)),c&&f.setTime(f.getTime()-c),f}function xj(t){return t.toISOString()}var Cj=new Pe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:vj,construct:bj,instanceOf:Date,represent:xj});function wj(t){return t==="<<"||t===null}var Tj=new Pe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:wj}),jd=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function Sj(t){if(t===null)return!1;var e,n,i=0,r=t.length,o=jd;for(n=0;n<r;n++)if(e=o.indexOf(t.charAt(n)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function kj(t){var e,n,i=t.replace(/[\r\n=]/g,""),r=i.length,o=jd,s=0,a=[];for(e=0;e<r;e++)e%4===0&&e&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(i.charAt(e));return n=r%4*6,n===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):n===18?(a.push(s>>10&255),a.push(s>>2&255)):n===12&&a.push(s>>4&255),new Uint8Array(a)}function Aj(t){var e="",n=0,i,r,o=t.length,s=jd;for(i=0;i<o;i++)i%3===0&&i&&(e+=s[n>>18&63],e+=s[n>>12&63],e+=s[n>>6&63],e+=s[n&63]),n=(n<<8)+t[i];return r=o%3,r===0?(e+=s[n>>18&63],e+=s[n>>12&63],e+=s[n>>6&63],e+=s[n&63]):r===2?(e+=s[n>>10&63],e+=s[n>>4&63],e+=s[n<<2&63],e+=s[64]):r===1&&(e+=s[n>>2&63],e+=s[n<<4&63],e+=s[64],e+=s[64]),e}function Ej(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var $j=new Pe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Sj,construct:kj,predicate:Ej,represent:Aj}),Lj=Object.prototype.hasOwnProperty,Oj=Object.prototype.toString;function Mj(t){if(t===null)return!0;var e=[],n,i,r,o,s,a=t;for(n=0,i=a.length;n<i;n+=1){if(r=a[n],s=!1,Oj.call(r)!=="[object Object]")return!1;for(o in r)if(Lj.call(r,o))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(o)===-1)e.push(o);else return!1}return!0}function Fj(t){return t!==null?t:[]}var Bj=new Pe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Mj,construct:Fj}),Ij=Object.prototype.toString;function Pj(t){if(t===null)return!0;var e,n,i,r,o,s=t;for(o=new Array(s.length),e=0,n=s.length;e<n;e+=1){if(i=s[e],Ij.call(i)!=="[object Object]"||(r=Object.keys(i),r.length!==1))return!1;o[e]=[r[0],i[r[0]]]}return!0}function Rj(t){if(t===null)return[];var e,n,i,r,o,s=t;for(o=new Array(s.length),e=0,n=s.length;e<n;e+=1)i=s[e],r=Object.keys(i),o[e]=[r[0],i[r[0]]];return o}var Nj=new Pe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Pj,construct:Rj}),Dj=Object.prototype.hasOwnProperty;function jj(t){if(t===null)return!0;var e,n=t;for(e in n)if(Dj.call(n,e)&&n[e]!==null)return!1;return!0}function Hj(t){return t!==null?t:{}}var qj=new Pe("tag:yaml.org,2002:set",{kind:"mapping",resolve:jj,construct:Hj}),zj=_j.extend({implicit:[Cj,Tj],explicit:[$j,Bj,Nj,qj]}),lr=Object.prototype.hasOwnProperty,cc=1,Ab=2,Eb=3,uc=4,Wu=1,Vj=2,s0=3,Wj=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Uj=/[\x85\u2028\u2029]/,Yj=/[,\[\]\{\}]/,$b=/^(?:!|!!|![a-z\-]+!)$/i,Lb=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function a0(t){return Object.prototype.toString.call(t)}function Jn(t){return t===10||t===13}function qr(t){return t===9||t===32}function Xe(t){return t===9||t===32||t===10||t===13}function yo(t){return t===44||t===91||t===93||t===123||t===125}function Gj(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Kj(t){return t===120?2:t===117?4:t===85?8:0}function Xj(t){return 48<=t&&t<=57?t-48:-1}function l0(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?" ":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function Zj(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Ob=new Array(256),Mb=new Array(256);for(var ho=0;ho<256;ho++)Ob[ho]=l0(ho)?1:0,Mb[ho]=l0(ho);function Jj(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||zj,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Fb(t,e){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=D9(n),new yi(e,n)}function mt(t,e){throw Fb(t,e)}function hc(t,e){t.onWarning&&t.onWarning.call(null,Fb(t,e))}var c0={YAML:function(e,n,i){var r,o,s;e.version!==null&&mt(e,"duplication of %YAML directive"),i.length!==1&&mt(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),r===null&&mt(e,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),s=parseInt(r[2],10),o!==1&&mt(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&hc(e,"unsupported YAML version of the document")},TAG:function(e,n,i){var r,o;i.length!==2&&mt(e,"TAG directive accepts exactly two arguments"),r=i[0],o=i[1],$b.test(r)||mt(e,"ill-formed tag handle (first argument) of the TAG directive"),lr.call(e.tagMap,r)&&mt(e,'there is a previously declared suffix for "'+r+'" tag handle'),Lb.test(o)||mt(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{mt(e,"tag prefix is malformed: "+o)}e.tagMap[r]=o}};function tr(t,e,n,i){var r,o,s,a;if(e<n){if(a=t.input.slice(e,n),i)for(r=0,o=a.length;r<o;r+=1)s=a.charCodeAt(r),s===9||32<=s&&s<=1114111||mt(t,"expected valid JSON character");else Wj.test(a)&&mt(t,"the stream contains non-printable characters");t.result+=a}}function u0(t,e,n,i){var r,o,s,a;for(je.isObject(n)||mt(t,"cannot merge mappings; the provided source object is unacceptable"),r=Object.keys(n),s=0,a=r.length;s<a;s+=1)o=r[s],lr.call(e,o)||(e[o]=n[o],i[o]=!0)}function _o(t,e,n,i,r,o,s,a,l){var c,u;if(Array.isArray(r))for(r=Array.prototype.slice.call(r),c=0,u=r.length;c<u;c+=1)Array.isArray(r[c])&&mt(t,"nested arrays are not supported inside keys"),typeof r=="object"&&a0(r[c])==="[object Object]"&&(r[c]="[object Object]");if(typeof r=="object"&&a0(r)==="[object Object]"&&(r="[object Object]"),r=String(r),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)u0(t,e,o[c],n);else u0(t,e,o,n);else!t.json&&!lr.call(n,r)&&lr.call(e,r)&&(t.line=s||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,mt(t,"duplicated mapping key")),r==="__proto__"?Object.defineProperty(e,r,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[r]=o,delete n[r];return e}function Hd(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):mt(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function me(t,e,n){for(var i=0,r=t.input.charCodeAt(t.position);r!==0;){for(;qr(r);)r===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),r=t.input.charCodeAt(++t.position);if(e&&r===35)do r=t.input.charCodeAt(++t.position);while(r!==10&&r!==13&&r!==0);if(Jn(r))for(Hd(t),r=t.input.charCodeAt(t.position),i++,t.lineIndent=0;r===32;)t.lineIndent++,r=t.input.charCodeAt(++t.position);else break}return n!==-1&&i!==0&&t.lineIndent<n&&hc(t,"deficient indentation"),i}function Jc(t){var e=t.position,n;return n=t.input.charCodeAt(e),!!((n===45||n===46)&&n===t.input.charCodeAt(e+1)&&n===t.input.charCodeAt(e+2)&&(e+=3,n=t.input.charCodeAt(e),n===0||Xe(n)))}function qd(t,e){e===1?t.result+=" ":e>1&&(t.result+=je.repeat(`
`,e-1))}function Qj(t,e,n){var i,r,o,s,a,l,c,u,h=t.kind,f=t.result,d;if(d=t.input.charCodeAt(t.position),Xe(d)||yo(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(r=t.input.charCodeAt(t.position+1),Xe(r)||n&&yo(r)))return!1;for(t.kind="scalar",t.result="",o=s=t.position,a=!1;d!==0;){if(d===58){if(r=t.input.charCodeAt(t.position+1),Xe(r)||n&&yo(r))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),Xe(i))break}else{if(t.position===t.lineStart&&Jc(t)||n&&yo(d))break;if(Jn(d))if(l=t.line,c=t.lineStart,u=t.lineIndent,me(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(tr(t,o,s,!1),qd(t,t.line-l),o=s=t.position,a=!1),qr(d)||(s=t.position+1),d=t.input.charCodeAt(++t.position)}return tr(t,o,s,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function t7(t,e){var n,i,r;if(n=t.input.charCodeAt(t.position),n!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(n=t.input.charCodeAt(t.position))!==0;)if(n===39)if(tr(t,i,t.position,!0),n=t.input.charCodeAt(++t.position),n===39)i=t.position,t.position++,r=t.position;else return!0;else Jn(n)?(tr(t,i,r,!0),qd(t,me(t,!1,e)),i=r=t.position):t.position===t.lineStart&&Jc(t)?mt(t,"unexpected end of the document within a single quoted scalar"):(t.position++,r=t.position);mt(t,"unexpected end of the stream within a single quoted scalar")}function e7(t,e){var n,i,r,o,s,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return tr(t,n,t.position,!0),t.position++,!0;if(a===92){if(tr(t,n,t.position,!0),a=t.input.charCodeAt(++t.position),Jn(a))me(t,!1,e);else if(a<256&&Ob[a])t.result+=Mb[a],t.position++;else if((s=Kj(a))>0){for(r=s,o=0;r>0;r--)a=t.input.charCodeAt(++t.position),(s=Gj(a))>=0?o=(o<<4)+s:mt(t,"expected hexadecimal character");t.result+=Zj(o),t.position++}else mt(t,"unknown escape sequence");n=i=t.position}else Jn(a)?(tr(t,n,i,!0),qd(t,me(t,!1,e)),n=i=t.position):t.position===t.lineStart&&Jc(t)?mt(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}mt(t,"unexpected end of the stream within a double quoted scalar")}function n7(t,e){var n=!0,i,r,o,s=t.tag,a,l=t.anchor,c,u,h,f,d,p=Object.create(null),g,y,b,v;if(v=t.input.charCodeAt(t.position),v===91)u=93,d=!1,a=[];else if(v===123)u=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),v=t.input.charCodeAt(++t.position);v!==0;){if(me(t,!0,e),v=t.input.charCodeAt(t.position),v===u)return t.position++,t.tag=s,t.anchor=l,t.kind=d?"mapping":"sequence",t.result=a,!0;n?v===44&&mt(t,"expected the node content, but found ','"):mt(t,"missed comma between flow collection entries"),y=g=b=null,h=f=!1,v===63&&(c=t.input.charCodeAt(t.position+1),Xe(c)&&(h=f=!0,t.position++,me(t,!0,e))),i=t.line,r=t.lineStart,o=t.position,Io(t,e,cc,!1,!0),y=t.tag,g=t.result,me(t,!0,e),v=t.input.charCodeAt(t.position),(f||t.line===i)&&v===58&&(h=!0,v=t.input.charCodeAt(++t.position),me(t,!0,e),Io(t,e,cc,!1,!0),b=t.result),d?_o(t,a,p,y,g,b,i,r,o):h?a.push(_o(t,null,p,y,g,b,i,r,o)):a.push(g),me(t,!0,e),v=t.input.charCodeAt(t.position),v===44?(n=!0,v=t.input.charCodeAt(++t.position)):n=!1}mt(t,"unexpected end of the stream within a flow collection")}function i7(t,e){var n,i,r=Wu,o=!1,s=!1,a=e,l=0,c=!1,u,h;if(h=t.input.charCodeAt(t.position),h===124)i=!1;else if(h===62)i=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)Wu===r?r=h===43?s0:Vj:mt(t,"repeat of a chomping mode identifier");else if((u=Xj(h))>=0)u===0?mt(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?mt(t,"repeat of an indentation width identifier"):(a=e+u-1,s=!0);else break;if(qr(h)){do h=t.input.charCodeAt(++t.position);while(qr(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!Jn(h)&&h!==0)}for(;h!==0;){for(Hd(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!s||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>a&&(a=t.lineIndent),Jn(h)){l++;continue}if(t.lineIndent<a){r===s0?t.result+=je.repeat(`
`,o?1+l:l):r===Wu&&o&&(t.result+=`
`);break}for(i?qr(h)?(c=!0,t.result+=je.repeat(`
`,o?1+l:l)):c?(c=!1,t.result+=je.repeat(`
`,l+1)):l===0?o&&(t.result+=" "):t.result+=je.repeat(`
`,l):t.result+=je.repeat(`
`,o?1+l:l),o=!0,s=!0,l=0,n=t.position;!Jn(h)&&h!==0;)h=t.input.charCodeAt(++t.position);tr(t,n,t.position,!1)}return!0}function h0(t,e){var n,i=t.tag,r=t.anchor,o=[],s,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,mt(t,"tab characters must not be used in indentation")),!(l!==45||(s=t.input.charCodeAt(t.position+1),!Xe(s))));){if(a=!0,t.position++,me(t,!0,-1)&&t.lineIndent<=e){o.push(null),l=t.input.charCodeAt(t.position);continue}if(n=t.line,Io(t,e,Eb,!1,!0),o.push(t.result),me(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>e)&&l!==0)mt(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=r,t.kind="sequence",t.result=o,!0):!1}function r7(t,e,n){var i,r,o,s,a,l,c=t.tag,u=t.anchor,h={},f=Object.create(null),d=null,p=null,g=null,y=!1,b=!1,v;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),v=t.input.charCodeAt(t.position);v!==0;){if(!y&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,mt(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),o=t.line,(v===63||v===58)&&Xe(i))v===63?(y&&(_o(t,h,f,d,p,null,s,a,l),d=p=g=null),b=!0,y=!0,r=!0):y?(y=!1,r=!0):mt(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,v=i;else{if(s=t.line,a=t.lineStart,l=t.position,!Io(t,n,Ab,!1,!0))break;if(t.line===o){for(v=t.input.charCodeAt(t.position);qr(v);)v=t.input.charCodeAt(++t.position);if(v===58)v=t.input.charCodeAt(++t.position),Xe(v)||mt(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(_o(t,h,f,d,p,null,s,a,l),d=p=g=null),b=!0,y=!1,r=!1,d=t.tag,p=t.result;else if(b)mt(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(b)mt(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===o||t.lineIndent>e)&&(y&&(s=t.line,a=t.lineStart,l=t.position),Io(t,e,uc,!0,r)&&(y?p=t.result:g=t.result),y||(_o(t,h,f,d,p,g,s,a,l),d=p=g=null),me(t,!0,-1),v=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&v!==0)mt(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&_o(t,h,f,d,p,null,s,a,l),b&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=h),b}function o7(t){var e,n=!1,i=!1,r,o,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&mt(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(n=!0,s=t.input.charCodeAt(++t.position)):s===33?(i=!0,r="!!",s=t.input.charCodeAt(++t.position)):r="!",e=t.position,n){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(o=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):mt(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Xe(s);)s===33&&(i?mt(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),$b.test(r)||mt(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);o=t.input.slice(e,t.position),Yj.test(o)&&mt(t,"tag suffix cannot contain flow indicator characters")}o&&!Lb.test(o)&&mt(t,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{mt(t,"tag name is malformed: "+o)}return n?t.tag=o:lr.call(t.tagMap,r)?t.tag=t.tagMap[r]+o:r==="!"?t.tag="!"+o:r==="!!"?t.tag="tag:yaml.org,2002:"+o:mt(t,'undeclared tag handle "'+r+'"'),!0}function s7(t){var e,n;if(n=t.input.charCodeAt(t.position),n!==38)return!1;for(t.anchor!==null&&mt(t,"duplication of an anchor property"),n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!Xe(n)&&!yo(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&mt(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function a7(t){var e,n,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Xe(i)&&!yo(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&mt(t,"name of an alias node must contain at least one character"),n=t.input.slice(e,t.position),lr.call(t.anchorMap,n)||mt(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],me(t,!0,-1),!0}function Io(t,e,n,i,r){var o,s,a,l=1,c=!1,u=!1,h,f,d,p,g,y;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=s=a=uc===n||Eb===n,i&&me(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;o7(t)||s7(t);)me(t,!0,-1)?(c=!0,a=o,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||r),(l===1||uc===n)&&(cc===n||Ab===n?g=e:g=e+1,y=t.position-t.lineStart,l===1?a&&(h0(t,y)||r7(t,y,g))||n7(t,g)?u=!0:(s&&i7(t,g)||t7(t,g)||e7(t,g)?u=!0:a7(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&mt(t,"alias node should not have any properties")):Qj(t,g,cc===n)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&h0(t,y))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&mt(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h<f;h+=1)if(p=t.implicitTypes[h],p.resolve(t.result)){t.result=p.construct(t.result),t.tag=p.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(lr.call(t.typeMap[t.kind||"fallback"],t.tag))p=t.typeMap[t.kind||"fallback"][t.tag];else for(p=null,d=t.typeMap.multi[t.kind||"fallback"],h=0,f=d.length;h<f;h+=1)if(t.tag.slice(0,d[h].tag.length)===d[h].tag){p=d[h];break}p||mt(t,"unknown tag !<"+t.tag+">"),t.result!==null&&p.kind!==t.kind&&mt(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+p.kind+'", not "'+t.kind+'"'),p.resolve(t.result,t.tag)?(t.result=p.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):mt(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function l7(t){var e=t.position,n,i,r,o=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(me(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(o=!0,s=t.input.charCodeAt(++t.position),n=t.position;s!==0&&!Xe(s);)s=t.input.charCodeAt(++t.position);for(i=t.input.slice(n,t.position),r=[],i.length<1&&mt(t,"directive name must not be less than one character in length");s!==0;){for(;qr(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!Jn(s));break}if(Jn(s))break;for(n=t.position;s!==0&&!Xe(s);)s=t.input.charCodeAt(++t.position);r.push(t.input.slice(n,t.position))}s!==0&&Hd(t),lr.call(c0,i)?c0[i](t,i,r):hc(t,'unknown document directive "'+i+'"')}if(me(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,me(t,!0,-1)):o&&mt(t,"directives end mark is expected"),Io(t,t.lineIndent-1,uc,!1,!0),me(t,!0,-1),t.checkLineBreaks&&Uj.test(t.input.slice(e,t.position))&&hc(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Jc(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,me(t,!0,-1));return}if(t.position<t.length-1)mt(t,"end of the stream or a document separator is expected");else return}function Bb(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var n=new Jj(t,e),i=t.indexOf("\0");for(i!==-1&&(n.position=i,mt(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)l7(n);return n.documents}function c7(t,e,n){e!==null&&typeof e=="object"&&typeof n>"u"&&(n=e,e=null);var i=Bb(t,n);if(typeof e!="function")return i;for(var r=0,o=i.length;r<o;r+=1)e(i[r])}function u7(t,e){var n=Bb(t,e);if(n.length!==0){if(n.length===1)return n[0];throw new yi("expected a single document in the stream, but found more")}}var h7=c7,f7=u7,d7={loadAll:h7,load:f7},p7=Tb,m7=d7.load;function g7(t){const e=t.match(v1);if(!e)return{text:t,metadata:{}};let n=m7(e[1],{schema:p7})??{};n=typeof n=="object"&&!Array.isArray(n)?n:{};const i={};return n.displayMode&&(i.displayMode=n.displayMode.toString()),n.title&&(i.title=n.title.toString()),n.config&&(i.config=n.config),{text:t.slice(e[0].length),metadata:i}}const y7=t=>t.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(e,n,i)=>"<"+n+i.replace(/="([^"]*)"/g,"='$1'")+">"),_7=t=>{const{text:e,metadata:n}=g7(t),{displayMode:i,title:r,config:o={}}=n;return i&&(o.gantt||(o.gantt={}),o.gantt.displayMode=i),{title:r,config:o,text:e}},v7=t=>{const e=Ss.detectInit(t)??{},n=Ss.detectDirective(t,"wrap");return Array.isArray(n)?e.wrap=n.some(({type:i})=>{}):(n==null?void 0:n.type)==="wrap"&&(e.wrap=!0),{text:fN(t),directive:e}};function Ib(t){const e=y7(t),n=_7(e),i=v7(n.text),r=j1(n.config,i.directive);return t=k9(i.text),{code:t,title:n.title,config:r}}const b7=5e4,x7="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",C7="sandbox",w7="loose",T7="http://www.w3.org/2000/svg",S7="http://www.w3.org/1999/xlink",k7="http://www.w3.org/1999/xhtml",A7="100%",E7="100%",$7="border:0;margin:0;",L7="margin:0",O7="allow-top-navigation-by-user-activation allow-popups",M7='The "iframe" tag is not supported by your browser.',F7=["foreignobject"],B7=["dominant-baseline"];function Pb(t){const e=Ib(t);return sc(),QN(e.config??{}),e}async function I7(t,e){Dd(),t=Pb(t).code;try{await zd(t)}catch(n){if(e!=null&&e.suppressErrors)return!1;throw n}return!0}const f0=(t,e,n=[])=>`
.${t} ${e} { ${n.join(" !important; ")} !important; }`,P7=(t,e={})=>{var n;let i="";if(t.themeCSS!==void 0&&(i+=`
${t.themeCSS}`),t.fontFamily!==void 0&&(i+=`
:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(i+=`
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!qu(e)){const a=t.htmlLabels||((n=t.flowchart)==null?void 0:n.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const c=e[l];qu(c.styles)||a.forEach(u=>{i+=f0(c.id,u,c.styles)}),qu(c.textStyles)||(i+=f0(c.id,"tspan",c.textStyles))}}return i},R7=(t,e,n,i)=>{const r=P7(t,n),o=v8(e,r,t.themeVariables);return sf(YN(`${i}{${o}}`),KN)},N7=(t="",e,n)=>{let i=t;return!n&&!e&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=BN(i),i=i.replace(/<br>/g,"<br/>"),i},D7=(t="",e)=>{var n,i;const r=(i=(n=e==null?void 0:e.viewBox)==null?void 0:n.baseVal)!=null&&i.height?e.viewBox.baseVal.height+"px":E7,o=btoa('<body style="'+L7+'">'+t+"</body>");return`<iframe style="width:${A7};height:${r};${$7}" src="data:text/html;base64,${o}" sandbox="${O7}">
${M7}
</iframe>`},d0=(t,e,n,i,r)=>{const o=t.append("div");o.attr("id",n),i&&o.attr("style",i);const s=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns",T7);return r&&s.attr("xmlns:xlink",r),s.append("g"),t};function p0(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const j7=(t,e,n,i)=>{var r,o,s;(r=t.getElementById(e))==null||r.remove(),(o=t.getElementById(n))==null||o.remove(),(s=t.getElementById(i))==null||s.remove()},H7=async function(t,e,n){var i,r,o,s,a,l;Dd();const c=Pb(e);e=c.code;const u=ni();vt.debug(u),e.length>((u==null?void 0:u.maxTextSize)??b7)&&(e=x7);const h="#"+t,f="i"+t,d="#"+f,p="d"+t,g="#"+p;let y=mn("body");const b=u.securityLevel===C7,v=u.securityLevel===w7,_=u.fontFamily;if(n!==void 0){if(n&&(n.innerHTML=""),b){const D=p0(mn(n),f);y=mn(D.nodes()[0].contentDocument.body),y.node().style.margin=0}else y=mn(n);d0(y,t,p,`font-family: ${_}`,S7)}else{if(j7(document,t,p,f),b){const D=p0(mn("body"),f);y=mn(D.nodes()[0].contentDocument.body),y.node().style.margin=0}else y=mn("body");d0(y,t,p)}let w,S;try{w=await zd(e,{title:c.title})}catch(D){w=new xb("error"),S=D}const B=y.select(g).node(),C=w.type,P=B.firstChild,E=P.firstChild,F=(r=(i=w.renderer).getClasses)==null?void 0:r.call(i,e,w),ot=R7(u,C,F,h),V=document.createElement("style");V.innerHTML=ot,P.insertBefore(V,E);try{await w.renderer.draw(e,t,Zg,w)}catch(D){throw P8.draw(e,t,Zg),D}const W=y.select(`${g} svg`),N=(s=(o=w.db).getAccTitle)==null?void 0:s.call(o),j=(l=(a=w.db).getAccDescription)==null?void 0:l.call(a);z7(C,W,N,j),y.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",k7);let Y=y.select(g).node().innerHTML;if(vt.debug("config.arrowMarkerAbsolute",u.arrowMarkerAbsolute),Y=N7(Y,b,f1(u.arrowMarkerAbsolute)),b){const D=y.select(g+" svg").node();Y=D7(Y,D)}else v||(Y=To.sanitize(Y,{ADD_TAGS:F7,ADD_ATTR:B7}));if(n9(),S)throw S;const z=mn(b?d:g).node();return z&&"remove"in z&&z.remove(),{svg:Y,bindFunctions:w.db.bindFunctions}};function q7(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),ZN(t),t!=null&&t.theme&&t.theme in bi?t.themeVariables=bi[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=bi.default.getThemeVariables(t.themeVariables));const n=typeof t=="object"?XN(t):G1();cd(n.logLevel),Dd()}const zd=(t,e={})=>{const{code:n}=Ib(t);return e9(n,e)};function z7(t,e,n,i){T9(e,t),S9(e,n,i,e.attr("id"))}const Kr=Object.freeze({render:H7,parse:I7,getDiagramFromText:zd,initialize:q7,getConfig:ni,setConfig:K1,getSiteConfig:G1,updateSiteConfig:JN,reset:()=>{sc()},globalReset:()=>{sc(Fo)},defaultConfig:Fo});cd(ni().logLevel);sc(ni());const V7=async()=>{vt.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Oo).map(async([n,{detector:i,loader:r}])=>{if(r)try{Nd(n)}catch{try{const{diagram:s,id:a}=await r();lc(a,s,i)}catch(s){throw vt.error(`Failed to load external diagram with key ${n}. Removing from detectors.`),delete Oo[n],s}}}))).filter(n=>n.status==="rejected");if(e.length>0){vt.error(`Failed to load ${e.length} external diagrams`);for(const n of e)vt.error(n);throw new Error(`Failed to load ${e.length} external diagrams`)}},W7=(t,e,n)=>{vt.warn(t),D1(t)?(n&&n(t.str,t.hash),e.push({...t,message:t.str,error:t})):(n&&n(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},Rb=async function(t={querySelector:".mermaid"}){try{await U7(t)}catch(e){if(D1(e)&&vt.error(e.str),Je.parseError&&Je.parseError(e),!t.suppressErrors)throw vt.error("Use the suppressErrors option to suppress these errors"),e}},U7=async function({postRenderCallback:t,querySelector:e,nodes:n}={querySelector:".mermaid"}){const i=Kr.getConfig();vt.debug(`${t?"":"No "}Callback function found`);let r;if(n)r=n;else if(e)r=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");vt.debug(`Found ${r.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(vt.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),Kr.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const o=new Ss.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let s;const a=[];for(const l of Array.from(r)){vt.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${o.next()}`;s=l.innerHTML,s=r5(Ss.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const u=Ss.detectInit(s);u&&vt.debug("Detected early reinit: ",u);try{const{svg:h,bindFunctions:f}=await Hb(c,s,l);l.innerHTML=h,t&&await t(c),f&&f(l)}catch(h){W7(h,a,Je.parseError)}}if(a.length>0)throw a[0]},Nb=function(t){Kr.initialize(t)},Y7=async function(t,e,n){vt.warn("mermaid.init is deprecated. Please use run instead."),t&&Nb(t);const i={postRenderCallback:n,querySelector:".mermaid"};typeof e=="string"?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await Rb(i)},G7=async(t,{lazyLoad:e=!0}={})=>{x1(...t),e===!1&&await V7()},Db=function(){if(Je.startOnLoad){const{startOnLoad:t}=Kr.getConfig();t&&Je.run().catch(e=>vt.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*!
* Wait for document loaded before starting the execution
*/window.addEventListener("load",Db,!1)}const K7=function(t){Je.parseError=t},fc=[];let Uu=!1;const jb=async()=>{if(!Uu){for(Uu=!0;fc.length>0;){const t=fc.shift();if(t)try{await t()}catch(e){vt.error("Error executing queue",e)}}Uu=!1}},X7=async(t,e)=>new Promise((n,i)=>{const r=()=>new Promise((o,s)=>{Kr.parse(t,e).then(a=>{o(a),n(a)},a=>{var l;vt.error("Error parsing",a),(l=Je.parseError)==null||l.call(Je,a),s(a),i(a)})});fc.push(r),jb().catch(i)}),Hb=(t,e,n)=>new Promise((i,r)=>{const o=()=>new Promise((s,a)=>{Kr.render(t,e,n).then(l=>{s(l),i(l)},l=>{var c;vt.error("Error parsing",l),(c=Je.parseError)==null||c.call(Je,l),a(l),r(l)})});fc.push(o),jb().catch(r)}),Je={startOnLoad:!0,mermaidAPI:Kr,parse:X7,render:Hb,init:Y7,run:Rb,registerExternalDiagrams:G7,initialize:Nb,parseError:void 0,contentLoaded:Db,setParseErrorHandler:K7,detectType:zc},Z7=typeof atob=="function",Vd=typeof Buffer=="function",m0=typeof TextDecoder=="function"?new TextDecoder:void 0;typeof TextEncoder=="function"&&new TextEncoder;const J7="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Q7=Array.prototype.slice.call(J7),Ga=(t=>{let e={};return t.forEach((n,i)=>e[n]=i),e})(Q7),tH=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Or=String.fromCharCode.bind(String),g0=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),qb=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),eH=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,nH=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),n=e-65536;return Or((n>>>10)+55296)+Or((n&1023)+56320);case 3:return Or((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return Or((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},iH=t=>t.replace(eH,nH),rH=t=>{if(t=t.replace(/\s+/g,""),!tH.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,n="",i,r;for(let o=0;o<t.length;)e=Ga[t.charAt(o++)]<<18|Ga[t.charAt(o++)]<<12|(i=Ga[t.charAt(o++)])<<6|(r=Ga[t.charAt(o++)]),n+=i===64?Or(e>>16&255):r===64?Or(e>>16&255,e>>8&255):Or(e>>16&255,e>>8&255,e&255);return n},zb=Z7?t=>atob(qb(t)):Vd?t=>Buffer.from(t,"base64").toString("binary"):rH,oH=Vd?t=>g0(Buffer.from(t,"base64")):t=>g0(zb(t).split("").map(e=>e.charCodeAt(0))),sH=Vd?t=>Buffer.from(t,"base64").toString("utf8"):m0?t=>m0.decode(oH(t)):t=>iH(zb(t)),aH=t=>qb(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),lH=t=>sH(aH(t));const cH=()=>({theme:"default"});Je.startOnLoad=!1;Je.initialize({startOnLoad:!1});const uH=KS("abcedfghicklmn",10),y0=new Map;async function hH(t,e){const n=t+JSON.stringify(e),i=y0.get(n);if(i)return i;Je.initialize({startOnLoad:!1,...fm(cH()||{}),...fm(e)});const r=lH(t),o=uH(),{svg:s}=await Je.render(o,r);return y0.set(n,s),s}const fH=jt({__name:"ShadowRoot",props:{innerHtml:{type:String,required:!0}},emits:["shadow"],setup(t,{emit:e}){const n=t,i=e,r=tt(),o=A(()=>r.value?r.value.shadowRoot||r.value.attachShadow({mode:"open"}):null);return Xn(()=>{o.value&&n.innerHtml&&(i("shadow",o.value),o.value.innerHTML=n.innerHtml)}),(s,a)=>(R(),nt("div",{ref_key:"el",ref:r},null,512))}}),dH=Dt(fH,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/ShadowRoot.vue"]]),pH=jt({__name:"Mermaid",props:{code:{type:String,required:!0},scale:{type:Number,required:!1},theme:{type:String,required:!1}},setup(t){const e=t,n=Tn(),i=tt(),r=tt("");Xn(async s=>{let a=!1;s(()=>{a=!0});const l=await hH(e.code||"",{theme:e.theme||(Fc.value?"dark":void 0),...n.attrs});a||(r.value=l)});const o=tt();return $t(r,()=>{o.value=void 0}),Xn(()=>{var a,l,c;const s=(l=(a=i.value)==null?void 0:a.children)==null?void 0:l[0];if(s&&s.hasAttribute("viewBox")&&o.value==null){const u=Number.parseFloat(((c=s.getAttribute("viewBox"))==null?void 0:c.split(" ")[3])||"");o.value=Number.isNaN(u)?void 0:u}},{flush:"post"}),Xn(()=>{var a,l;const s=(l=(a=i.value)==null?void 0:a.children)==null?void 0:l[0];s!=null&&e.scale!=null&&o.value!=null&&(s.setAttribute("height",`${o.value*e.scale}`),s.removeAttribute("width"),s.removeAttribute("style"))},{flush:"post"}),(s,a)=>(R(),Vt(dH,{class:"mermaid","inner-html":r.value,onShadow:a[0]||(a[0]=l=>i.value=l)},null,8,["inner-html"]))}}),Vb=Dt(pH,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/builtin/Mermaid.vue"]]),mH={class:"col-header"},gH=jt({__name:"two-cols-header",props:{class:{type:String},layoutClass:{type:String}},setup(t){const e=t;return(n,i)=>(R(),nt("div",{class:ee(["slidev-layout two-cols-header w-full h-full",t.layoutClass])},[X("div",mH,[He(n.$slots,"default",{},void 0,!0)]),X("div",{class:ee(["col-left",e.class])},[He(n.$slots,"left",{},void 0,!0)],2),X("div",{class:ee(["col-right",e.class])},[He(n.$slots,"right",{},void 0,!0)],2),X("div",{class:ee(["col-bottom",e.class])},[He(n.$slots,"bottom",{},void 0,!0)],2)],2))}}),yH=Dt(gH,[["__scopeId","data-v-1401df1d"],["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/layouts/two-cols-header.vue"]]),On=zt({layout:"two-cols-header"}),_H=zt({layout:A(()=>On.layout),transition:A(()=>On.transition),class:A(()=>On.class),clicks:A(()=>On.clicks),name:A(()=>On.name),preload:A(()=>On.preload),slide:{raw:"",title:"Bioinformatics pipeline",level:1,content:"",frontmatterStyle:"frontmatter",note:"",index:2,start:48,end:84,noteHTML:`<p>Quite simple : a set of command-line utilites that process (compressed) text data</p>
<p>External databases are basically text file .</p>
<p>How does nix fit into this ?</p>
<ul>
<li>hard-coded software version and dependencies -> that's an obligation for the laboratory. A small update means to run all checks... and there are expensive</li>
<li>database could be managed ... but there are stored in a different folder. In theory it could be done (has been added a few month agay)</li>
<li>manage execution ?</li>
</ul>
`,frontmatter:On,filepath:"/home/alex/notes/slides/fosdem2024/slides.md",id:2,no:3},__clicksElements:[],__preloaded:!1}),vH=X("h1",null,"Bioinformatics pipeline",-1),bH=X("h1",null,"Nix ?",-1),xH=X("ul",null,[X("li",null,"Reproducible dependencies : ok ! (it’s the law)"),X("li",null,"High Performance Computing : ok !"),X("li",null,"Manage workflow ?"),X("li",null,"Manage databases ?")],-1),CH={__name:"3",setup(t){const e=kt(Li);Ai(e,"nav"),kt(bn);const n=kt($i);kt(hr);const i=On;return de(to,On),(()=>{var o,s;const r=e.nav.rawRoutes.find(a=>a.path===String(n.value));(s=(o=r==null?void 0:r.meta)==null?void 0:o.slide)!=null&&s.frontmatter&&(Object.keys(r.meta.slide.frontmatter).forEach(a=>{a in i||delete r.meta.slide.frontmatter[a]}),Object.assign(r.meta.slide.frontmatter,On))})(),(r,o)=>{const s=Vb;return R(),Vt(yH,oa(Do(O(On))),{right:_e(a=>[bH,xH]),default:_e(()=>[vH,at(s,Ur({code:"Z3JhcGggTFIKYWxpZ24gLS0-IGNhbGxbY2FsbCB2YXJpYW50XSAtLT4gYW5ub3RhdGUgLS0-IGZpbHRlcgpkYjEoW0RhdGFiYXNlIDEsMi4uLl0pIC0tPiBhbm5vdGF0ZQpkYjIoW0RhdGFiYXNlIDUsNi4uLl0pIC0tPiBmaWx0ZXI"},{theme:"neutral",scale:.8}),null,16)]),_:1},16)}}},wH=Dt(CH,[["__file","/@slidev/slides/3.md"]]),TH={},SH={class:"slidev-layout default"};function kH(t,e){return R(),nt("div",SH,[He(t.$slots,"default")])}const AH=Dt(TH,[["render",kH],["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/layouts/default.vue"]]),Mn=zt({}),EH=zt({layout:A(()=>Mn.layout),transition:A(()=>Mn.transition),class:A(()=>Mn.class),clicks:A(()=>Mn.clicks),name:A(()=>Mn.name),preload:A(()=>Mn.preload),slide:{raw:"",title:"Nix : excellent community",level:1,content:"",note:"",index:3,start:85,end:121,noteHTML:`<ul>
<li>Very welcoming (Element, github)</li>
<li>Several packages contributed upstream (some waiting)</li>
<li>Not easy as in my spare time + 5k in github</li>
</ul>
`,frontmatter:Mn,filepath:"/home/alex/notes/slides/fosdem2024/slides.md",id:3,no:4},__clicksElements:[],__preloaded:!1}),$H=X("h1",null,"Nix : excellent community",-1),LH={__name:"4",setup(t){const e=kt(Li);Ai(e,"nav"),kt(bn);const n=kt($i);kt(hr);const i=Mn;return de(to,Mn),(()=>{var o,s;const r=e.nav.rawRoutes.find(a=>a.path===String(n.value));(s=(o=r==null?void 0:r.meta)==null?void 0:o.slide)!=null&&s.frontmatter&&(Object.keys(r.meta.slide.frontmatter).forEach(a=>{a in i||delete r.meta.slide.frontmatter[a]}),Object.assign(r.meta.slide.frontmatter,Mn))})(),(r,o)=>{const s=Vb;return R(),Vt(AH,oa(Do(O(Mn))),{default:_e(()=>[$H,at(s,Ur({code:"Z2FudHQKICAgIGRhdGVGb3JtYXQgIFlZWVktTU0tREQKICAgIGV4Y2x1ZGVzICAgIHdlZWtlbmRzCiAgICAlJSAoYGV4Y2x1ZGVzYCBhY2NlcHRzIHNwZWNpZmljIGRhdGVzIGluIFlZWVktTU0tREQgZm9ybWF0LCBkYXlzIG9mIHRoZSB3ZWVrICgic3VuZGF5Iikgb3IgIndlZWtlbmRzIiwgYnV0IG5vdCB0aGUgd29yZCAid2Vla2RheXMiLikKCiAgICBzZWN0aW9uIE5ldyBQYWNrYWdlcwogICAgaGFwLXB5IDphY3RpdmUgLDIwMjQtMDEtMjUsIDIwMjQtMDItMDEKICAgIHZlcCA6YWN0aXZlICwyMDI0LTAxLTIzLCAyMDI0LTAyLTAxCiAgICBNdWx0aXFjICA6YWN0aXZlICwyMDIzLTA4LTE1LCAyMDI0LTAyLTAxCiAgICBzcGlwIDphY3RpdmUgLDIwMjMtMDgtMDYsIDIwMjQtMDItMDEKICAgIHJ0Zy10b29scyA6YWN0aXZlICwyMDIzLTA1LTA2LCAyMDI0LTAyLTAxCiAgICBiaW9leHRhbGlnbiA6ZG9uZSAsMjAyMi0wOC0xMywyMDIyLTEwLTIxCiAgICBiaW8tYmlnZmlsZSA6ZG9uZSAsMjAyMi0wOC0xMywyMDIzLTExLTMwCiAgICBCaW9EQkhUUyAgOmRvbmUgLDIwMjItMDgtMTMsMjAyMy0wNC0yNgogICAgYmlvcGVybCA6ZG9uZSAsMjAyMi0wOC0wOCwyMDIyLTA4LTEwCgogICAgc2VjdGlvbiBVcGRhdGUKICAgIEtlbnQgOmRvbmUgLDIwMjMtMDMtMjcsMjAyMy0wNS0wNwogICAgbmV4dGZsb3cgOmRvbmUgLDIwMjMtMDQtMDEsMjAyMy0wNi0xNQogICAgZ2F0ayAgOmRvbmUgLDIwMjItMDgtMDksMjAyMi0wOS0xMAogICAgZ2F0ayA6ZG9uZSAsMjAyMi0wOS0xNiwyMDIyLTEwLTEwCiAgICBHYXRrLTQuMi42LjEgOmRvbmUgLDIwMjItMDktMTUsMjAyMi0wOS0xNg"},{theme:"neutral"}),null,16)]),_:1},16)}}},OH=Dt(LH,[["__file","/@slidev/slides/4.md"]]),MH=jt({__name:"Transform",props:{scale:{type:[Number,String],required:!1},origin:{type:String,required:!1}},setup(t){const e=t,n=A(()=>{const i=[];return e.scale!=null&&i.push(`scale(${e.scale||1})`),{transform:i.join(" "),"transform-origin":e.origin||"top left"}});return(i,r)=>(R(),nt("div",{style:Ae(n.value)},[He(i.$slots,"default")],4))}}),FH=Dt(MH,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/builtin/Transform.vue"]]),BH={class:"slidev-layout quote"},IH={class:"my-auto"},PH={__name:"quote",setup(t){const e=kt(Li);return Ai(e,"nav"),kt(bn),kt($i),kt(hr),kt(to),(n,i)=>(R(),nt("div",BH,[X("div",IH,[He(n.$slots,"default")])]))}},RH=Dt(PH,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/theme-default/layouts/quote.vue"]]),Fn=zt({layout:"quote",class:"text-center"}),NH=zt({layout:A(()=>Fn.layout),transition:A(()=>Fn.transition),class:A(()=>Fn.class),clicks:A(()=>Fn.clicks),name:A(()=>Fn.name),preload:A(()=>Fn.preload),slide:{raw:"",title:"Thank you !",level:1,content:"",frontmatterStyle:"frontmatter",note:"",index:4,start:121,end:146,noteHTML:"",frontmatter:Fn,filepath:"/home/alex/notes/slides/fosdem2024/slides.md",id:4,no:5},__clicksElements:[],__preloaded:!1}),DH=X("h1",null,"Thank you !",-1),jH=X("p",null,"And to:",-1),HH=X("p",null,"Besançon Hospital",-1),qH=X("p",null,"Mésocentre de calcul de Franche-Comté",-1),zH=X("br",null,null,-1),VH=X("br",null,null,-1),WH=X("br",null,null,-1),UH=X("br",null,null,-1),YH={__name:"5",setup(t){const e=kt(Li);Ai(e,"nav"),kt(bn);const n=kt($i);kt(hr);const i=Fn;return de(to,Fn),(()=>{var o,s;const r=e.nav.rawRoutes.find(a=>a.path===String(n.value));(s=(o=r==null?void 0:r.meta)==null?void 0:o.slide)!=null&&s.frontmatter&&(Object.keys(r.meta.slide.frontmatter).forEach(a=>{a in i||delete r.meta.slide.frontmatter[a]}),Object.assign(r.meta.slide.frontmatter,Fn))})(),(r,o)=>{const s=FH;return R(),Vt(RH,oa(Do(O(Fn))),{default:_e(()=>[DH,jH,HH,qH,zH,VH,Ci(" Contact: alexis.praga (at) proton.me "),WH,UH,at(s,{scale:.5},{default:_e(()=>[Ci(" Images courtesy of Flaticon ")]),_:1})]),_:1},16)}}},GH=Dt(YH,[["__file","/@slidev/slides/5.md"]]),KH=[{path:"1",name:"page-1",component:zF,meta:RF},{path:"2",name:"page-2",component:i5,meta:XF},{path:"3",name:"page-3",component:wH,meta:_H},{path:"4",name:"page-4",component:OH,meta:EH},{path:"5",name:"page-5",component:GH,meta:NH}],XH=[],se=KH,_l=[{name:"play",path:"/",component:rM,children:[...se,...XH]},{name:"print",path:"/print",component:MF},{path:"",redirect:{path:"/1"}},{path:"/:pathMatch(.*)",redirect:{path:"/1"}}];{let t=function(e){if(!us.remote||us.remote===e.query.password)return!0;if(us.remote&&e.query.password===void 0){const n=prompt("Enter password");if(us.remote===n)return!0}return e.params.no?{path:`/${e.params.no}`}:{path:""}};_l.push({path:"/presenter/print",component:()=>Qt(()=>import("./PresenterPrint-9at8jjKc.js"),__vite__mapDeps([35,36]))}),_l.push({name:"presenter",path:"/presenter/:no",component:()=>Qt(()=>import("./Presenter-l9qHHLVL.js"),__vite__mapDeps([37,36,38,39])),beforeEnter:t}),_l.push({path:"/presenter",redirect:{path:"/presenter/1"}})}const ze=xE({history:bA("/slides/fosdem2024"),routes:_l});function ZH(t,e,{mode:n="replace"}={}){return A({get(){const i=ze.currentRoute.value.query[t];return i==null?e??null:Array.isArray(i)?i.filter(Boolean):i},set(i){ke(()=>{ze[O(n)]({query:{...ze.currentRoute.value.query,[t]:i}})})}})}const Wb=tt(0);ke(()=>{ze.afterEach(async()=>{await ke(),Wb.value+=1})});const Ub=tt(0),wn=A(()=>ze.currentRoute.value),Po=A(()=>wn.value.query.print!==void 0),JH=A(()=>wn.value.query.print==="clicks"),pi=A(()=>wn.value.query.embedded!==void 0),De=A(()=>wn.value.path.startsWith("/presenter")),QH=A(()=>wn.value.path.startsWith("/notes")),zr=A(()=>Po.value&&!JH.value),df=A(()=>wn.value.query.password),tq=A(()=>!De.value&&(!Wt.remote||df.value===Wt.remote)),_0=ZH("clicks","0"),eq=A(()=>se.length),nq=A(()=>wn.value.path),le=A(()=>Number.parseInt(nq.value.split(/\//g).slice(-1)[0])||1);A(()=>Qc(le.value));const Le=A(()=>se.find(t=>t.path===`${le.value}`));A(()=>{var t,e,n;return(n=(e=(t=Le.value)==null?void 0:t.meta)==null?void 0:e.slide)==null?void 0:n.id});A(()=>{var t,e;return((e=(t=Le.value)==null?void 0:t.meta)==null?void 0:e.layout)||(le.value===1?"cover":"default")});const Yu=A(()=>se.find(t=>t.path===`${Math.min(se.length,le.value+1)}`)),iq=A(()=>se.find(t=>t.path===`${Math.max(1,le.value-1)}`)),rq=A(()=>{var t,e;return Wb.value,((e=(t=Le.value)==null?void 0:t.meta)==null?void 0:e.__clicksElements)||[]}),on=A({get(){if(zr.value)return 99999;let t=+(_0.value||0);return Number.isNaN(t)&&(t=0),t},set(t){_0.value=t.toString()}}),dc=A(()=>{var t,e;return+(((e=(t=Le.value)==null?void 0:t.meta)==null?void 0:e.clicks)??rq.value.length)}),oq=A(()=>le.value<se.length||on.value<dc.value),sq=A(()=>le.value>1||on.value>0),aq=A(()=>se.filter(t=>{var e,n;return(n=(e=t.meta)==null?void 0:e.slide)==null?void 0:n.title}).reduce((t,e)=>(Wd(t,e),t),[])),lq=A(()=>Ud(aq.value,Le.value));A(()=>Yd(lq.value));const cq=A(()=>pq(Ub.value,Le.value,iq.value));$t(Le,(t,e)=>{Ub.value=Number(t==null?void 0:t.path)-Number(e==null?void 0:e.path)});function er(){dc.value<=on.value?Js():on.value+=1}async function nr(){on.value<=0?await Qs():on.value-=1}function Qc(t){return De.value?`/presenter/${t}`:`/${t}`}function Js(){const t=Math.min(se.length,le.value+1);return Xr(t)}async function Qs(t=!0){const e=Math.max(1,le.value-1);await Xr(e),t&&dc.value&&ze.replace({query:{...wn.value.query,clicks:dc.value}})}function Xr(t,e){return Vl.value=!1,ze.push({path:Qc(t),query:{...wn.value.query,clicks:e}})}function uq(t){const e=tt(0),{direction:n,distanceX:i,distanceY:r}=Yk(t,{onSwipeStart(o){o.pointerType==="touch"&&(Ds.value||(e.value=Ch()))},onSwipeEnd(o){if(o.pointerType!=="touch"||!e.value||Ds.value)return;const s=Math.abs(i.value),a=Math.abs(r.value);s/window.innerWidth>.3||s>75?n.value==="left"?er():nr():(a/window.innerHeight>.4||a>200)&&(n.value==="down"?Qs():Js())}})}async function pf(){const{saveAs:t}=await Qt(()=>import("./FileSaver.min-LVY1lggI.js").then(e=>e.F),__vite__mapDeps([]));t(typeof Wt.download=="string"?Wt.download:Wt.exportFilename?`${Wt.exportFilename}.pdf`:"/slides/fosdem2024slidev-exported.pdf",`${Wt.title}.pdf`)}async function hq(t){var e,n;if(t==null){const i=(n=(e=Le.value)==null?void 0:e.meta)==null?void 0:n.slide;if(!(i!=null&&i.filepath))return!1;t=`${i.filepath}:${i.start}`}return await fetch(`/__open-in-editor?file=${encodeURIComponent(t)}`),!0}function Wd(t,e,n=1){var r,o,s,a,l,c,u;const i=(o=(r=e.meta)==null?void 0:r.slide)==null?void 0:o.level;i&&i>n&&t.length>0?Wd(t[t.length-1].children,e,n+1):t.push({children:[],level:n,path:e.path,hideInToc:!!((l=(a=(s=e.meta)==null?void 0:s.slide)==null?void 0:a.frontmatter)!=null&&l.hideInToc),title:(u=(c=e.meta)==null?void 0:c.slide)==null?void 0:u.title})}function Ud(t,e,n=!1,i){return t.map(r=>{const o={...r,active:r.path===(e==null?void 0:e.path),hasActiveParent:n};return o.children.length>0&&(o.children=Ud(o.children,e,o.active||o.hasActiveParent,o)),i&&(o.active||o.activeParent)&&(i.activeParent=!0),o})}function Yd(t,e=1){return t.filter(n=>!n.hideInToc).map(n=>({...n,children:Yd(n.children,e+1)}))}const fq={"slide-left":"slide-left | slide-right","slide-right":"slide-right | slide-left","slide-up":"slide-up | slide-down","slide-down":"slide-down | slide-up"};function dq(t,e=!1){if(!t||(typeof t=="string"&&(t={name:t}),!t.name))return;let n=t.name.includes("|")?t.name:fq[t.name]||t.name;if(n.includes("|")){const[i,r]=n.split("|").map(o=>o.trim());n=e?r:i}if(n)return{...t,name:n}}function pq(t,e,n){var r,o;let i=t>0?(r=n==null?void 0:n.meta)==null?void 0:r.transition:(o=e==null?void 0:e.meta)==null?void 0:o.transition;return i||(i=Wt.transition),dq(i,t<0)}function mq(){const t=Wt.titleTemplate.replace("%s",Wt.title||"Slidev");WS({title:t,htmlAttrs:Wt.htmlAttrs}),ek(`${t} - shared`),ok(`${t} - drawings`);const e=`${location.origin}_${XS()}`;function n(){QH.value||!De.value&&!k$.includes(location.host.split(":")[0])||(De.value?(Ko("page",+le.value),Ko("clicks",on.value)):(Ko("viewerPage",+le.value),Ko("viewerClicks",on.value)),Ko("lastUpdate",{id:e,type:De.value?"presenter":"viewer",time:new Date().getTime()}))}ze.afterEach(n),$t(on,n),nk(i=>{var o;ze.currentRoute.value.path.match(/^\/(\d+|presenter)\/?/)&&((o=i.lastUpdate)==null?void 0:o.type)==="presenter"&&(+i.page!=+le.value||+on.value!=+i.clicks)&&(Vl.value=!1,ze.replace({path:Qc(i.page),query:{...ze.currentRoute.value.query,clicks:i.clicks||0}}))})}const gq=jt({__name:"App",setup(t){return mq(),(e,n)=>{const i=Ll("RouterView"),r=Ll("StarportCarrier");return R(),nt(It,null,[at(i),at(r)],64)}}}),yq=Dt(gq,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/App.vue"]]);function Gu(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function mf(t,e,n=".",i){if(!Gu(e))return mf(t,{},n,i);const r=Object.assign({},e);for(const o in t){if(o==="__proto__"||o==="constructor")continue;const s=t[o];s!=null&&(i&&i(r,o,s,n)||(Array.isArray(s)&&Array.isArray(r[o])?r[o]=[...s,...r[o]]:Gu(s)&&Gu(r[o])?r[o]=mf(s,r[o],(n?`${n}.`:"")+o.toString(),i):r[o]=s))}return r}function _q(t){return(...e)=>e.reduce((n,i)=>mf(n,i,"",t),{})}const vq=_q(),Yb=1/60*1e3,bq=typeof performance<"u"?()=>performance.now():()=>Date.now(),Gb=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(bq()),Yb);function xq(t){let e=[],n=[],i=0,r=!1,o=!1;const s=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{const h=u&&r,f=h?e:n;return c&&s.add(l),f.indexOf(l)===-1&&(f.push(l),h&&r&&(i=e.length)),l},cancel:l=>{const c=n.indexOf(l);c!==-1&&n.splice(c,1),s.delete(l)},process:l=>{if(r){o=!0;return}if(r=!0,[e,n]=[n,e],n.length=0,i=e.length,i)for(let c=0;c<i;c++){const u=e[c];u(l),s.has(u)&&(a.schedule(u),t())}r=!1,o&&(o=!1,a.process(l))}};return a}const Cq=40;let gf=!0,ta=!1,yf=!1;const So={delta:0,timestamp:0},_a=["read","update","preRender","render","postRender"],tu=_a.reduce((t,e)=>(t[e]=xq(()=>ta=!0),t),{}),_f=_a.reduce((t,e)=>{const n=tu[e];return t[e]=(i,r=!1,o=!1)=>(ta||Sq(),n.schedule(i,r,o)),t},{}),wq=_a.reduce((t,e)=>(t[e]=tu[e].cancel,t),{});_a.reduce((t,e)=>(t[e]=()=>tu[e].process(So),t),{});const Tq=t=>tu[t].process(So),Kb=t=>{ta=!1,So.delta=gf?Yb:Math.max(Math.min(t-So.timestamp,Cq),1),So.timestamp=t,yf=!0,_a.forEach(Tq),yf=!1,ta&&(gf=!1,Gb(Kb))},Sq=()=>{ta=!0,gf=!0,yf||Gb(Kb)},Xb=()=>So;function Zb(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n}var Gd=function(){},ea=function(){};Gd=function(t,e){!t&&typeof console<"u"&&console.warn(e)},ea=function(t,e){if(!t)throw new Error(e)};const vf=(t,e,n)=>Math.min(Math.max(n,t),e),Ku=.001,kq=.01,v0=10,Aq=.05,Eq=1;function $q({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let r,o;Gd(t<=v0*1e3,"Spring duration must be 10 seconds or less");let s=1-e;s=vf(Aq,Eq,s),t=vf(kq,v0,t/1e3),s<1?(r=c=>{const u=c*s,h=u*t,f=u-n,d=bf(c,s),p=Math.exp(-h);return Ku-f/d*p},o=c=>{const h=c*s*t,f=h*n+n,d=Math.pow(s,2)*Math.pow(c,2)*t,p=Math.exp(-h),g=bf(Math.pow(c,2),s);return(-r(c)+Ku>0?-1:1)*((f-d)*p)/g}):(r=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-Ku+u*h},o=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=Oq(r,o,a);if(t=t*1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*i;return{stiffness:c,damping:s*2*Math.sqrt(i*c),duration:t}}}const Lq=12;function Oq(t,e,n){let i=n;for(let r=1;r<Lq;r++)i=i-t(i)/e(i);return i}function bf(t,e){return t*Math.sqrt(1-e*e)}const Mq=["duration","bounce"],Fq=["stiffness","damping","mass"];function b0(t,e){return e.some(n=>t[n]!==void 0)}function Bq(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!b0(t,Fq)&&b0(t,Mq)){const n=$q(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}function Kd(t){var{from:e=0,to:n=1,restSpeed:i=2,restDelta:r}=t,o=Zb(t,["from","to","restSpeed","restDelta"]);const s={done:!1,value:e};let{stiffness:a,damping:l,mass:c,velocity:u,duration:h,isResolvedFromDuration:f}=Bq(o),d=x0,p=x0;function g(){const y=u?-(u/1e3):0,b=n-e,v=l/(2*Math.sqrt(a*c)),_=Math.sqrt(a/c)/1e3;if(r===void 0&&(r=Math.min(Math.abs(n-e)/100,.4)),v<1){const w=bf(_,v);d=S=>{const B=Math.exp(-v*_*S);return n-B*((y+v*_*b)/w*Math.sin(w*S)+b*Math.cos(w*S))},p=S=>{const B=Math.exp(-v*_*S);return v*_*B*(Math.sin(w*S)*(y+v*_*b)/w+b*Math.cos(w*S))-B*(Math.cos(w*S)*(y+v*_*b)-w*b*Math.sin(w*S))}}else if(v===1)d=w=>n-Math.exp(-_*w)*(b+(y+_*b)*w);else{const w=_*Math.sqrt(v*v-1);d=S=>{const B=Math.exp(-v*_*S),C=Math.min(w*S,300);return n-B*((y+v*_*b)*Math.sinh(C)+w*b*Math.cosh(C))/w}}}return g(),{next:y=>{const b=d(y);if(f)s.done=y>=h;else{const v=p(y)*1e3,_=Math.abs(v)<=i,w=Math.abs(n-b)<=r;s.done=_&&w}return s.value=s.done?n:b,s},flipTarget:()=>{u=-u,[e,n]=[n,e],g()}}}Kd.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";const x0=t=>0,Jb=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Xd=(t,e,n)=>-n*t+n*e+t,Qb=(t,e)=>n=>Math.max(Math.min(n,e),t),As=t=>t%1?Number(t.toFixed(5)):t,na=/(-)?([\d]*\.?[\d])+/g,xf=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Iq=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function va(t){return typeof t=="string"}const ba={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Es=Object.assign(Object.assign({},ba),{transform:Qb(0,1)}),Ka=Object.assign(Object.assign({},ba),{default:1}),Zd=t=>({test:e=>va(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),vr=Zd("deg"),$s=Zd("%"),Ot=Zd("px"),C0=Object.assign(Object.assign({},$s),{parse:t=>$s.parse(t)/100,transform:t=>$s.transform(t*100)}),Jd=(t,e)=>n=>!!(va(n)&&Iq.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),tx=(t,e,n)=>i=>{if(!va(i))return i;const[r,o,s,a]=i.match(na);return{[t]:parseFloat(r),[e]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Mr={test:Jd("hsl","hue"),parse:tx("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+$s.transform(As(e))+", "+$s.transform(As(n))+", "+As(Es.transform(i))+")"},Pq=Qb(0,255),Xu=Object.assign(Object.assign({},ba),{transform:t=>Math.round(Pq(t))}),Yi={test:Jd("rgb","red"),parse:tx("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Xu.transform(t)+", "+Xu.transform(e)+", "+Xu.transform(n)+", "+As(Es.transform(i))+")"};function Rq(t){let e="",n="",i="",r="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),i=t.substr(5,2),r=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),i=t.substr(3,1),r=t.substr(4,1),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const Cf={test:Jd("#"),parse:Rq,transform:Yi.transform},Ye={test:t=>Yi.test(t)||Cf.test(t)||Mr.test(t),parse:t=>Yi.test(t)?Yi.parse(t):Mr.test(t)?Mr.parse(t):Cf.parse(t),transform:t=>va(t)?t:t.hasOwnProperty("red")?Yi.transform(t):Mr.transform(t)},ex="${c}",nx="${n}";function Nq(t){var e,n,i,r;return isNaN(t)&&va(t)&&((n=(e=t.match(na))===null||e===void 0?void 0:e.length)!==null&&n!==void 0?n:0)+((r=(i=t.match(xf))===null||i===void 0?void 0:i.length)!==null&&r!==void 0?r:0)>0}function ix(t){typeof t=="number"&&(t=`${t}`);const e=[];let n=0;const i=t.match(xf);i&&(n=i.length,t=t.replace(xf,ex),e.push(...i.map(Ye.parse)));const r=t.match(na);return r&&(t=t.replace(na,nx),e.push(...r.map(ba.parse))),{values:e,numColors:n,tokenised:t}}function rx(t){return ix(t).values}function ox(t){const{values:e,numColors:n,tokenised:i}=ix(t),r=e.length;return o=>{let s=i;for(let a=0;a<r;a++)s=s.replace(a<n?ex:nx,a<n?Ye.transform(o[a]):As(o[a]));return s}}const Dq=t=>typeof t=="number"?0:t;function jq(t){const e=rx(t);return ox(t)(e.map(Dq))}const xa={test:Nq,parse:rx,createTransformer:ox,getAnimatableNone:jq},Hq=new Set(["brightness","contrast","saturate","opacity"]);function qq(t){let[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(na)||[];if(!i)return t;const r=n.replace(i,"");let o=Hq.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+r+")"}const zq=/([a-z-]*)\(.*?\)/g,wf=Object.assign(Object.assign({},xa),{getAnimatableNone:t=>{const e=t.match(zq);return e?e.map(qq).join(" "):t}});function Zu(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function w0({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let r=0,o=0,s=0;if(!e)r=o=s=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=Zu(l,a,t+1/3),o=Zu(l,a,t),s=Zu(l,a,t-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:i}}const Vq=(t,e,n)=>{const i=t*t,r=e*e;return Math.sqrt(Math.max(0,n*(r-i)+i))},Wq=[Cf,Yi,Mr],T0=t=>Wq.find(e=>e.test(t)),S0=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,sx=(t,e)=>{let n=T0(t),i=T0(e);ea(!!n,S0(t)),ea(!!i,S0(e));let r=n.parse(t),o=i.parse(e);n===Mr&&(r=w0(r),n=Yi),i===Mr&&(o=w0(o),i=Yi);const s=Object.assign({},r);return a=>{for(const l in s)l!=="alpha"&&(s[l]=Vq(r[l],o[l],a));return s.alpha=Xd(r.alpha,o.alpha,a),n.transform(s)}},Uq=t=>typeof t=="number",Yq=(t,e)=>n=>e(t(n)),ax=(...t)=>t.reduce(Yq);function lx(t,e){return Uq(t)?n=>Xd(t,e,n):Ye.test(t)?sx(t,e):ux(t,e)}const cx=(t,e)=>{const n=[...t],i=n.length,r=t.map((o,s)=>lx(o,e[s]));return o=>{for(let s=0;s<i;s++)n[s]=r[s](o);return n}},Gq=(t,e)=>{const n=Object.assign(Object.assign({},t),e),i={};for(const r in n)t[r]!==void 0&&e[r]!==void 0&&(i[r]=lx(t[r],e[r]));return r=>{for(const o in i)n[o]=i[o](r);return n}};function k0(t){const e=xa.parse(t),n=e.length;let i=0,r=0,o=0;for(let s=0;s<n;s++)i||typeof e[s]=="number"?i++:e[s].hue!==void 0?o++:r++;return{parsed:e,numNumbers:i,numRGB:r,numHSL:o}}const ux=(t,e)=>{const n=xa.createTransformer(e),i=k0(t),r=k0(e);return i.numHSL===r.numHSL&&i.numRGB===r.numRGB&&i.numNumbers>=r.numNumbers?ax(cx(i.parsed,r.parsed),n):(Gd(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),s=>`${s>0?e:t}`)},Kq=(t,e)=>n=>Xd(t,e,n);function Xq(t){if(typeof t=="number")return Kq;if(typeof t=="string")return Ye.test(t)?sx:ux;if(Array.isArray(t))return cx;if(typeof t=="object")return Gq}function Zq(t,e,n){const i=[],r=n||Xq(t[0]),o=t.length-1;for(let s=0;s<o;s++){let a=r(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]:e;a=ax(l,a)}i.push(a)}return i}function Jq([t,e],[n]){return i=>n(Jb(t,e,i))}function Qq(t,e){const n=t.length,i=n-1;return r=>{let o=0,s=!1;if(r<=t[0]?s=!0:r>=t[i]&&(o=i-1,s=!0),!s){let l=1;for(;l<n&&!(t[l]>r||l===i);l++);o=l-1}const a=Jb(t[o],t[o+1],r);return e[o](a)}}function hx(t,e,{clamp:n=!0,ease:i,mixer:r}={}){const o=t.length;ea(o===e.length,"Both input and output ranges must be the same length"),ea(!i||!Array.isArray(i)||i.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[o-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const s=Zq(e,i,r),a=o===2?Jq(t,s):Qq(t,s);return n?l=>a(vf(t[0],t[o-1],l)):a}const eu=t=>e=>1-t(1-e),Qd=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tz=t=>e=>Math.pow(e,t),fx=t=>e=>e*e*((t+1)*e-t),ez=t=>{const e=fx(t);return n=>(n*=2)<1?.5*e(n):.5*(2-Math.pow(2,-10*(n-1)))},dx=1.525,nz=4/11,iz=8/11,rz=9/10,px=t=>t,tp=tz(2),oz=eu(tp),mx=Qd(tp),gx=t=>1-Math.sin(Math.acos(t)),yx=eu(gx),sz=Qd(yx),ep=fx(dx),az=eu(ep),lz=Qd(ep),cz=ez(dx),uz=4356/361,hz=35442/1805,fz=16061/1805,pc=t=>{if(t===1||t===0)return t;const e=t*t;return t<nz?7.5625*e:t<iz?9.075*e-9.9*t+3.4:t<rz?uz*e-hz*t+fz:10.8*t*t-20.52*t+10.72},dz=eu(pc),pz=t=>t<.5?.5*(1-pc(1-t*2)):.5*pc(t*2-1)+.5;function mz(t,e){return t.map(()=>e||mx).splice(0,t.length-1)}function gz(t){const e=t.length;return t.map((n,i)=>i!==0?i/(e-1):0)}function yz(t,e){return t.map(n=>n*e)}function vl({from:t=0,to:e=1,ease:n,offset:i,duration:r=300}){const o={done:!1,value:t},s=Array.isArray(e)?e:[t,e],a=yz(i&&i.length===s.length?i:gz(s),r);function l(){return hx(a,s,{ease:Array.isArray(n)?n:mz(s,n)})}let c=l();return{next:u=>(o.value=c(u),o.done=u>=r,o),flipTarget:()=>{s.reverse(),c=l()}}}function _z({velocity:t=0,from:e=0,power:n=.8,timeConstant:i=350,restDelta:r=.5,modifyTarget:o}){const s={done:!1,value:e};let a=n*t;const l=e+a,c=o===void 0?l:o(l);return c!==l&&(a=c-e),{next:u=>{const h=-a*Math.exp(-u/i);return s.done=!(h>r||h<-r),s.value=s.done?c:c+h,s},flipTarget:()=>{}}}const A0={keyframes:vl,spring:Kd,decay:_z};function vz(t){if(Array.isArray(t.to))return vl;if(A0[t.type])return A0[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?vl:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?Kd:vl}function _x(t,e,n=0){return t-e-n}function bz(t,e,n=0,i=!0){return i?_x(e+-t,e,n):e-(t-e)+n}function xz(t,e,n,i){return i?t>=e+n:t<=-n}const Cz=t=>{const e=({delta:n})=>t(n);return{start:()=>_f.update(e,!0),stop:()=>wq.update(e)}};function vx(t){var e,n,{from:i,autoplay:r=!0,driver:o=Cz,elapsed:s=0,repeat:a=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:h,onComplete:f,onRepeat:d,onUpdate:p}=t,g=Zb(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,b,v=0,_=g.duration,w,S=!1,B=!0,C;const P=vz(g);!((n=(e=P).needsInterpolation)===null||n===void 0)&&n.call(e,i,y)&&(C=hx([0,100],[i,y],{clamp:!1}),i=0,y=100);const E=P(Object.assign(Object.assign({},g),{from:i,to:y}));function F(){v++,l==="reverse"?(B=v%2===0,s=bz(s,_,c,B)):(s=_x(s,_,c),l==="mirror"&&E.flipTarget()),S=!1,d&&d()}function ot(){b.stop(),f&&f()}function V(N){if(B||(N=-N),s+=N,!S){const j=E.next(Math.max(0,s));w=j.value,C&&(w=C(w)),S=B?j.done:s<=0}p==null||p(w),S&&(v===0&&(_??(_=s)),v<a?xz(s,_,c,B)&&F():ot())}function W(){u==null||u(),b=o(V),b.start()}return r&&W(),{stop:()=>{h==null||h(),b.stop()}}}function bx(t,e){return e?t*(1e3/e):0}function wz({from:t=0,velocity:e=0,min:n,max:i,power:r=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:h,onComplete:f,onStop:d}){let p;function g(_){return n!==void 0&&_<n||i!==void 0&&_>i}function y(_){return n===void 0?i:i===void 0||Math.abs(n-_)<Math.abs(i-_)?n:i}function b(_){p==null||p.stop(),p=vx(Object.assign(Object.assign({},_),{driver:u,onUpdate:w=>{var S;h==null||h(w),(S=_.onUpdate)===null||S===void 0||S.call(_,w)},onComplete:f,onStop:d}))}function v(_){b(Object.assign({type:"spring",stiffness:s,damping:a,restDelta:l},_))}if(g(t))v({from:t,velocity:e,to:y(t)});else{let _=r*e+t;typeof c<"u"&&(_=c(_));const w=y(_),S=w===n?-1:1;let B,C;const P=E=>{B=C,C=E,e=bx(E-B,Xb().delta),(S===1&&E>w||S===-1&&E<w)&&v({from:E,to:w,velocity:e})};b({type:"decay",from:t,velocity:e,timeConstant:o,power:r,restDelta:l,modifyTarget:c,onUpdate:g(_)?P:void 0})}return{stop:()=>p==null?void 0:p.stop()}}const xx=(t,e)=>1-3*e+3*t,Cx=(t,e)=>3*e-6*t,wx=t=>3*t,mc=(t,e,n)=>((xx(e,n)*t+Cx(e,n))*t+wx(e))*t,Tx=(t,e,n)=>3*xx(e,n)*t*t+2*Cx(e,n)*t+wx(e),Tz=1e-7,Sz=10;function kz(t,e,n,i,r){let o,s,a=0;do s=e+(n-e)/2,o=mc(s,i,r)-t,o>0?n=s:e=s;while(Math.abs(o)>Tz&&++a<Sz);return s}const Az=8,Ez=.001;function $z(t,e,n,i){for(let r=0;r<Az;++r){const o=Tx(e,n,i);if(o===0)return e;const s=mc(e,n,i)-t;e-=s/o}return e}const bl=11,Xa=1/(bl-1);function Lz(t,e,n,i){if(t===e&&n===i)return px;const r=new Float32Array(bl);for(let s=0;s<bl;++s)r[s]=mc(s*Xa,t,n);function o(s){let a=0,l=1;const c=bl-1;for(;l!==c&&r[l]<=s;++l)a+=Xa;--l;const u=(s-r[l])/(r[l+1]-r[l]),h=a+u*Xa,f=Tx(h,t,n);return f>=Ez?$z(s,h,t,n):f===0?h:kz(s,a,a+Xa,t,n)}return s=>s===0||s===1?s:mc(o(s),e,i)}const Ju={};class Oz{constructor(){this.subscriptions=new Set}add(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}notify(e,n,i){if(this.subscriptions.size)for(const r of this.subscriptions)r(e,n,i)}clear(){this.subscriptions.clear()}}function E0(t){return!isNaN(parseFloat(t))}class Mz{constructor(e){this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Oz,this.canTrackVelocity=!1,this.updateAndNotify=n=>{this.prev=this.current,this.current=n;const{delta:i,timestamp:r}=Xb();this.lastUpdated!==r&&(this.timeDelta=i,this.lastUpdated=r),_f.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>_f.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{this.canTrackVelocity||(this.canTrackVelocity=E0(this.current)),n!==this.lastUpdated&&(this.prev=this.current)},this.prev=this.current=e,this.canTrackVelocity=E0(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}set(e){this.updateAndNotify(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?bx(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{const{stop:i}=e(n);this.stopAnimation=i}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function Fz(t){return new Mz(t)}const{isArray:Bz}=Array;function Iz(){const t=tt({}),e=i=>{const r=o=>{t.value[o]&&(t.value[o].stop(),t.value[o].destroy(),delete t.value[o])};i?Bz(i)?i.forEach(r):r(i):Object.keys(t.value).forEach(r)},n=(i,r,o)=>{if(t.value[i])return t.value[i];const s=Fz(r);return s.onChange(a=>o[i]=a),t.value[i]=s,s};return wk(e),{motionValues:t,get:n,stop:e}}function Pz(t){return Array.isArray(t)}function br(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function Qu(t){return{type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function Rz(t){return{type:"spring",stiffness:550,damping:t===0?100:30,restDelta:.01,restSpeed:10}}function th(){return{type:"keyframes",ease:"linear",duration:300}}function Nz(t){return{type:"keyframes",duration:800,values:t}}const $0={default:Rz,x:br,y:br,z:br,rotate:br,rotateX:br,rotateY:br,rotateZ:br,scaleX:Qu,scaleY:Qu,scale:Qu,backgroundColor:th,color:th,opacity:th};function Sx(t,e){let n;return Pz(e)?n=Nz:n=$0[t]||$0.default,{to:e,...n(e)}}const L0={...ba,transform:Math.round},kx={color:Ye,backgroundColor:Ye,outlineColor:Ye,fill:Ye,stroke:Ye,borderColor:Ye,borderTopColor:Ye,borderRightColor:Ye,borderBottomColor:Ye,borderLeftColor:Ye,borderWidth:Ot,borderTopWidth:Ot,borderRightWidth:Ot,borderBottomWidth:Ot,borderLeftWidth:Ot,borderRadius:Ot,radius:Ot,borderTopLeftRadius:Ot,borderTopRightRadius:Ot,borderBottomRightRadius:Ot,borderBottomLeftRadius:Ot,width:Ot,maxWidth:Ot,height:Ot,maxHeight:Ot,size:Ot,top:Ot,right:Ot,bottom:Ot,left:Ot,padding:Ot,paddingTop:Ot,paddingRight:Ot,paddingBottom:Ot,paddingLeft:Ot,margin:Ot,marginTop:Ot,marginRight:Ot,marginBottom:Ot,marginLeft:Ot,rotate:vr,rotateX:vr,rotateY:vr,rotateZ:vr,scale:Ka,scaleX:Ka,scaleY:Ka,scaleZ:Ka,skew:vr,skewX:vr,skewY:vr,distance:Ot,translateX:Ot,translateY:Ot,translateZ:Ot,x:Ot,y:Ot,z:Ot,perspective:Ot,transformPerspective:Ot,opacity:Es,originX:C0,originY:C0,originZ:Ot,zIndex:L0,filter:wf,WebkitFilter:wf,fillOpacity:Es,strokeOpacity:Es,numOctaves:L0},np=t=>kx[t];function Ax(t,e){return e&&typeof t=="number"&&e.transform?e.transform(t):t}function Dz(t,e){let n=np(t);return n!==wf&&(n=xa),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const jz={linear:px,easeIn:tp,easeInOut:mx,easeOut:oz,circIn:gx,circInOut:sz,circOut:yx,backIn:ep,backInOut:lz,backOut:az,anticipate:cz,bounceIn:dz,bounceInOut:pz,bounceOut:pc};function O0(t){if(Array.isArray(t)){const[e,n,i,r]=t;return Lz(e,n,i,r)}else if(typeof t=="string")return jz[t];return t}function Hz(t){return Array.isArray(t)&&typeof t[0]!="number"}function M0(t,e){return t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&xa.test(e)&&!e.startsWith("url("))}function qz(t){return Array.isArray(t.to)&&t.to[0]===null&&(t.to=[...t.to],t.to[0]=t.from),t}function zz({ease:t,times:e,delay:n,...i}){const r={...i};return e&&(r.offset=e),t&&(r.ease=Hz(t)?t.map(O0):O0(t)),n&&(r.elapsed=-n),r}function Vz(t,e,n){return Array.isArray(e.to)&&(t.duration||(t.duration=800)),qz(e),Wz(t)||(t={...t,...Sx(n,e.to)}),{...e,...zz(t)}}function Wz({delay:t,repeat:e,repeatType:n,repeatDelay:i,from:r,...o}){return!!Object.keys(o).length}function Uz(t,e){return t[e]||t.default||t}function Yz(t,e,n,i,r){const o=Uz(i,t);let s=o.from===null||o.from===void 0?e.get():o.from;const a=M0(t,n);s==="none"&&a&&typeof n=="string"&&(s=Dz(t,n));const l=M0(t,s);function c(h){const f={from:s,to:n,velocity:i.velocity?i.velocity:e.getVelocity(),onUpdate:d=>e.set(d)};return o.type==="inertia"||o.type==="decay"?wz({...f,...o}):vx({...Vz(o,f,t),onUpdate:d=>{f.onUpdate(d),o.onUpdate&&o.onUpdate(d)},onComplete:()=>{i.onComplete&&i.onComplete(),r&&r(),h&&h()}})}function u(h){return e.set(n),i.onComplete&&i.onComplete(),r&&r(),h&&h(),{stop:()=>{}}}return!l||!a||o.type===!1?u:c}function Gz(){const{motionValues:t,stop:e,get:n}=Iz();return{motionValues:t,stop:e,push:(r,o,s,a={},l)=>{const c=s[r],u=n(r,c,s);if(a&&a.immediate){u.set(o);return}const h=Yz(r,u,o,a,l);u.start(h)}}}function Kz(t,e={},{motionValues:n,push:i,stop:r}=Gz()){const o=O(e),s=tt(!1);$t(n,h=>{s.value=Object.values(h).filter(f=>f.isAnimating()).length>0},{immediate:!0,deep:!0});const a=h=>{if(!o||!o[h])throw new Error(`The variant ${h} does not exist.`);return o[h]},l=h=>(typeof h=="string"&&(h=a(h)),Promise.all(Object.entries(h).map(([f,d])=>{if(f!=="transition")return new Promise(p=>i(f,d,t,h.transition||Sx(f,h[f]),p))}).filter(Boolean)));return{isAnimating:s,apply:l,set:h=>{const f=Ps(h)?h:a(h);Object.entries(f).forEach(([d,p])=>{d!=="transition"&&i(d,p,t,{immediate:!0})})},leave:async h=>{let f;if(o&&(o.leave&&(f=o.leave),!o.leave&&o.initial&&(f=o.initial)),!f){h();return}await l(f),h()},stop:r}}const ip=typeof window<"u",Xz=()=>ip&&window.onpointerdown===null,Zz=()=>ip&&window.ontouchstart===null,Jz=()=>ip&&window.onmousedown===null;function Qz({target:t,state:e,variants:n,apply:i}){const r=O(n),o=tt(!1),s=tt(!1),a=tt(!1),l=A(()=>{let u=[];return r&&(r.hovered&&(u=[...u,...Object.keys(r.hovered)]),r.tapped&&(u=[...u,...Object.keys(r.tapped)]),r.focused&&(u=[...u,...Object.keys(r.focused)])),u}),c=A(()=>{const u={};Object.assign(u,e.value),o.value&&r.hovered&&Object.assign(u,r.hovered),s.value&&r.tapped&&Object.assign(u,r.tapped),a.value&&r.focused&&Object.assign(u,r.focused);for(const h in u)l.value.includes(h)||delete u[h];return u});r.hovered&&(Pt(t,"mouseenter",()=>o.value=!0),Pt(t,"mouseleave",()=>{o.value=!1,s.value=!1}),Pt(t,"mouseout",()=>{o.value=!1,s.value=!1})),r.tapped&&(Jz()&&(Pt(t,"mousedown",()=>s.value=!0),Pt(t,"mouseup",()=>s.value=!1)),Xz()&&(Pt(t,"pointerdown",()=>s.value=!0),Pt(t,"pointerup",()=>s.value=!1)),Zz()&&(Pt(t,"touchstart",()=>s.value=!0),Pt(t,"touchend",()=>s.value=!1))),r.focused&&(Pt(t,"focus",()=>a.value=!0),Pt(t,"blur",()=>a.value=!1)),$t(c,i)}function tV({set:t,target:e,variants:n,variant:i}){const r=O(n);$t(()=>e,()=>{r&&(r.initial&&t("initial"),r.enter&&(i.value="enter"))},{immediate:!0,flush:"pre"})}function eV({state:t,apply:e}){$t(t,n=>{n&&e(n)},{immediate:!0})}function nV({target:t,variants:e,variant:n}){const i=O(e);i&&(i.visible||i.visibleOnce)&&qk(t,([{isIntersecting:r}])=>{i.visible?r?n.value="visible":n.value="initial":i.visibleOnce&&(r&&n.value!=="visibleOnce"?n.value="visibleOnce":n.value||(n.value="initial"))})}function iV(t,e={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){e.lifeCycleHooks&&tV(t),e.syncVariants&&eV(t),e.visibilityHooks&&nV(t),e.eventListeners&&Qz(t)}function Ex(t={}){const e=zt({...t}),n=tt({});return $t(e,()=>{const i={};for(const[r,o]of Object.entries(e)){const s=np(r),a=Ax(o,s);i[r]=a}n.value=i},{immediate:!0,deep:!0}),{state:e,style:n}}function rp(t,e){$t(()=>xe(t),n=>{n&&e(n)},{immediate:!0})}const rV={x:"translateX",y:"translateY",z:"translateZ"};function $x(t={},e=!0){const n=zt({...t}),i=tt("");return $t(n,r=>{let o="",s=!1;if(e&&(r.x||r.y||r.z)){const a=[r.x||0,r.y||0,r.z||0].map(Ot.transform).join(",");o+=`translate3d(${a}) `,s=!0}for(const[a,l]of Object.entries(r)){if(e&&(a==="x"||a==="y"||a==="z"))continue;const c=np(a),u=Ax(l,c);o+=`${rV[a]||a}(${u}) `}e&&!s&&(o+="translateZ(0px) "),i.value=o.trim()},{immediate:!0,deep:!0}),{state:n,transform:i}}const oV=["","X","Y","Z"],sV=["perspective","translate","scale","rotate","skew"],Lx=["transformPerspective","x","y","z"];sV.forEach(t=>{oV.forEach(e=>{const n=t+e;Lx.push(n)})});const aV=new Set(Lx);function op(t){return aV.has(t)}const lV=new Set(["originX","originY","originZ"]);function Ox(t){return lV.has(t)}function cV(t){const e={},n={};return Object.entries(t).forEach(([i,r])=>{op(i)||Ox(i)?e[i]=r:n[i]=r}),{transform:e,style:n}}function Mx(t){const{transform:e,style:n}=cV(t),{transform:i}=$x(e),{style:r}=Ex(n);return i.value&&(r.value.transform=i.value),r.value}function uV(t,e){let n,i;const{state:r,style:o}=Ex();return rp(t,s=>{i=s;for(const a of Object.keys(kx))s.style[a]===null||s.style[a]===""||op(a)||Ox(a)||(r[a]=s.style[a]);n&&Object.entries(n).forEach(([a,l])=>s.style[a]=l),e&&e(r)}),$t(o,s=>{if(!i){n=s;return}for(const a in s)i.style[a]=s[a]},{immediate:!0}),{style:r}}function hV(t){const e=t.trim().split(/\) |\)/);if(e.length===1)return{};const n=i=>i.endsWith("px")||i.endsWith("deg")?parseFloat(i):isNaN(Number(i))?Number(i):i;return e.reduce((i,r)=>{if(!r)return i;const[o,s]=r.split("("),l=s.split(",").map(u=>n(u.endsWith(")")?u.replace(")",""):u.trim())),c=l.length===1?l[0]:l;return{...i,[o]:c}},{})}function fV(t,e){Object.entries(hV(e)).forEach(([n,i])=>{const r=["x","y","z"];if(n==="translate3d"){if(i===0){r.forEach(o=>t[o]=0);return}i.forEach((o,s)=>t[r[s]]=o);return}if(i=parseFloat(i),n==="translateX"){t.x=i;return}if(n==="translateY"){t.y=i;return}if(n==="translateZ"){t.z=i;return}t[n]=i})}function dV(t,e){let n,i;const{state:r,transform:o}=$x();return rp(t,s=>{i=s,s.style.transform&&fV(r,s.style.transform),n&&(s.style.transform=n),e&&e(r)}),$t(o,s=>{if(!i){n=s;return}i.style.transform=s},{immediate:!0}),{transform:r}}function pV(t,e){const n=zt({}),i=s=>Object.entries(s).forEach(([a,l])=>n[a]=l),{style:r}=uV(t,i),{transform:o}=dV(t,i);return $t(n,s=>{Object.entries(s).forEach(([a,l])=>{const c=op(a)?o:r;c[a]&&c[a]===l||(c[a]=l)})},{immediate:!0,deep:!0}),rp(t,()=>e&&i(e)),{motionProperties:n,style:r,transform:o}}function mV(t={}){const e=O(t),n=tt();return{state:A(()=>{if(n.value)return e[n.value]}),variant:n}}function Fx(t,e={},n){const{motionProperties:i}=pV(t),{variant:r,state:o}=mV(e),s=Kz(i,e),a={target:t,variant:r,variants:e,state:o,motionProperties:i,...s};return iV(a,n),a}const gV=["initial","enter","leave","visible","visible-once","hovered","tapped","focused","delay"];function yV(t,e){const n=t.props?t.props:t.data&&t.data.attrs?t.data.attrs:{};n&&(n.variants&&Ps(n.variants)&&(e.value={...e.value,...n.variants}),gV.forEach(i=>{if(i==="delay"){if(n&&n[i]&&typeof n[i]=="number"){const r=n[i];e&&e.value&&(e.value.enter&&(e.value.enter.transition||(e.value.enter.transition={}),e.value.enter.transition={delay:r,...e.value.enter.transition}),e.value.visible&&(e.value.visible.transition||(e.value.visible.transition={}),e.value.visible.transition={delay:r,...e.value.visible.transition}),e.value.visibleOnce&&(e.value.visibleOnce.transition||(e.value.visibleOnce.transition={}),e.value.visibleOnce.transition={delay:r,...e.value.visibleOnce.transition}))}return}i==="visible-once"&&(i="visibleOnce"),n&&n[i]&&Ps(n[i])&&(e.value[i]=n[i])}))}function eh(t){return{created:(n,i,r)=>{const o=i.value&&typeof i.value=="string"?i.value:r.key;o&&Ju[o]&&Ju[o].stop();const s=tt(t||{});typeof i.value=="object"&&(s.value=i.value),yV(r,s);const a=Fx(n,s);n.motionInstance=a,o&&(Ju[o]=a)},getSSRProps(n,i){let{initial:r}=n.value||i&&(i==null?void 0:i.props)||{};r=O(r);const o=vq((t==null?void 0:t.initial)||{},r||{});return!o||Object.keys(o).length===0?void 0:{style:Mx(o)}}}}const _V={initial:{opacity:0},enter:{opacity:1}},vV={initial:{opacity:0},visible:{opacity:1}},bV={initial:{opacity:0},visibleOnce:{opacity:1}},xV={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},CV={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},wV={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},TV={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},SV={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},kV={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},AV={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},EV={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},$V={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},LV={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},OV={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},MV={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},FV={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},BV={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},IV={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},PV={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},RV={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},NV={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},DV={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},jV={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},HV={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},qV={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},zV={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},VV={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},WV={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},UV={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},YV={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},Tf={__proto__:null,fade:_V,fadeVisible:vV,fadeVisibleOnce:bV,pop:xV,popVisible:CV,popVisibleOnce:wV,rollBottom:FV,rollLeft:TV,rollRight:AV,rollTop:LV,rollVisibleBottom:BV,rollVisibleLeft:SV,rollVisibleOnceBottom:IV,rollVisibleOnceLeft:kV,rollVisibleOnceRight:$V,rollVisibleOnceTop:MV,rollVisibleRight:EV,rollVisibleTop:OV,slideBottom:WV,slideLeft:PV,slideRight:DV,slideTop:qV,slideVisibleBottom:UV,slideVisibleLeft:RV,slideVisibleOnceBottom:YV,slideVisibleOnceLeft:NV,slideVisibleOnceRight:HV,slideVisibleOnceTop:VV,slideVisibleRight:jV,slideVisibleTop:zV},GV=jt({props:{is:{type:[String,Object],required:!1},preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1}},setup(t){const e=Sw(),n=zt({});if(!t.is&&!e.default)return()=>Ze("div",{});const i=A(()=>{let a;return t.preset&&(a=Tf[t.preset]),a}),r=A(()=>({initial:t.initial,enter:t.enter,leave:t.leave,visible:t.visible,visibleOnce:t.visibleOnce,hovered:t.hovered,tapped:t.tapped,focused:t.focused})),o=A(()=>{const a={...r.value,...i.value||{},...t.variants||{}};return t.delay&&(a.enter.transition={...a.enter.transition},a.enter.transition.delay=parseInt(t.delay)),a}),s=A(()=>{if(!t.is)return;let a=t.is;return typeof s.value=="string"&&!j0(a)&&(a=Ll(a)),a});{const a=l=>{var c;(c=l.variants)!=null&&c.initial&&l.set("initial"),setTimeout(()=>{var u,h,f;(u=l.variants)!=null&&u.enter&&l.apply("enter"),(h=l.variants)!=null&&h.visible&&l.apply("visible"),(f=l.variants)!=null&&f.visibleOnce&&l.apply("visibleOnce")},10)};Sc(()=>Object.entries(n).forEach(([l,c])=>a(c)))}return{slots:e,component:s,motionConfig:o,instances:n}},render({slots:t,motionConfig:e,instances:n,component:i}){var a;const r=Mx(e.initial||{}),o=(l,c)=>(l.props||(l.props={}),l.props.style=r,l.props.onVnodeMounted=({el:u})=>{const h=Fx(u,e);n[c]=h},l);if(i){const l=Ze(i,void 0,t);return o(l,0),l}return(((a=t.default)==null?void 0:a.call(t))||[]).map((l,c)=>o(l,c))}});function KV(t){const e="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",n="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",i=new RegExp(e.split("").join("|"),"g");return t.toString().replace(/[A-Z]/g,r=>`-${r}`).toLowerCase().replace(/\s+/g,"-").replace(i,r=>n.charAt(e.indexOf(r))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const XV={install(t,e){if(t.directive("motion",eh()),t.component("Motion",GV),!e||e&&!e.excludePresets)for(const n in Tf){const i=Tf[n];t.directive(`motion-${KV(n)}`,eh(i))}if(e&&e.directives)for(const n in e.directives){const i=e.directives[n];i.initial,t.directive(`motion-${n}`,eh(i))}}},nu="vue-starport-injection",Bx="vue-starport-options",ZV={duration:800,easing:"cubic-bezier(0.45, 0, 0.55, 1)",keepAlive:!1},Ix={port:{type:String,required:!0},duration:{type:Number,required:!1},easing:{type:String,required:!1},keepAlive:{type:Boolean,required:!1,default:void 0},mountedProps:{type:Object,required:!1},initialProps:{type:Object,required:!1}},JV=jt({name:"StarportProxy",props:{props:{type:Object,default:()=>({})},component:{type:Object,required:!0},...Ix},setup(t,e){const n=kt(nu),i=A(()=>n.getInstance(t.port,t.component)),r=tt(),o=i.value.generateId(),s=tt(!1);return i.value.isVisible||(i.value.land(),s.value=!0),Zr(async()=>{if(i.value.el){console.error(`[Vue Starport] Multiple proxies of "${i.value.componentName}" with port "${t.port}" detected. The later one will be ignored.`);return}if(i.value.el=r.value,await ke(),s.value=!0,i.value.rect.update(),i.value.rect.width===0||i.value.rect.height===0){const a=i.value.rect.width===0?"width":"height";console.warn(`[Vue Starport] The proxy of component "${i.value.componentName}" (port "${t.port}") has no ${a} on initial render, have you set the size for it?`),console.warn("element:",i.value.el),console.warn("rect:",i.value.rect)}}),ca(async()=>{i.value.rect.update(),i.value.liftOff(),i.value.el=void 0,s.value=!1,!i.value.options.keepAlive&&(await ke(),await ke(),!i.value.el&&n.dispose(i.value.port))}),$t(()=>t,async()=>{i.value.props&&await ke();const{props:a,...l}=t;i.value.props=a||{},i.value.setLocalOptions(l)},{deep:!0,immediate:!0}),()=>{const{initialProps:a,mountedProps:l,...c}=t,u=Ur(c,(s.value?l:a)||{});return Ze("div",Ur(u,{id:o,ref:r,"data-starport-proxy":i.value.componentId,"data-starport-landed":i.value.isLanded?"true":void 0,"data-starport-floating":i.value.isLanded?void 0:"true"}),e.slots.default?Ze(e.slots.default):void 0)}}}),QV=jt({name:"Starport",inheritAttrs:!0,props:Ix,setup(t,e){const n=tt(!1);return Zr(()=>{if(n.value=!0,!kt(nu))throw new Error("[Vue Starport] Failed to find the carrier, all Starport components must be wrapped in a <StarportCarrier> component.")}),()=>{var s,a;const i=(a=(s=e.slots).default)==null?void 0:a.call(s);if(!i)throw new Error("[Vue Starport] Slot is required to use <Starport>");if(i.length!==1)throw new Error(`[Vue Starport] <Starport> requires exactly one slot, but got ${i.length}`);const r=i[0];let o=r.type;return(!Ps(o)||or(o))&&(o={render(){return i}}),Ze(JV,{...t,key:t.port,component:bc(o),props:r.props})}}});function tW(t){const e=zt({height:0,width:0,left:0,top:0,update:i,listen:o,pause:s,marginTop:"0px",marginLeft:"0px",margin:"0px",padding:"0px"}),n=vn?document.documentElement||document.body:void 0;function i(){if(!vn)return;const a=xe(t);if(!a)return;const{height:l,width:c,left:u,top:h}=a.getBoundingClientRect(),f=window.getComputedStyle(a),d=f.marginTop,p=f.marginLeft,g=f.margin,y=f.padding;Object.assign(e,{height:l,width:c,left:u,top:n.scrollTop+h,marginTop:d,marginLeft:p,margin:g,padding:y})}const r=C_(i,{immediate:!1});function o(){vn&&(i(),r.resume())}function s(){r.pause()}return e}let eW=(t,e=21)=>(n=e)=>{let i="",r=n;for(;r--;)i+=t[Math.random()*t.length|0];return i};const F0=eW("abcdefghijklmnopqrstuvwxyz",5);function B0(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().replace(/[^\w\d_-]/g,"")}function nW(t){var e;return t.name||((e=t.__file)==null?void 0:e.split(/[\/\\.]/).slice(-2)[0])||""}function iW(t,e,n={}){const i=nW(e),r=B0(i)||F0(),o=tt(),s=tt(null),a=tt(!1),l=tt(!1),c=oC(!0),u=tt({}),h=A(()=>({...ZV,...n,...u.value})),f=tt(0);let d;c.run(()=>{d=tW(o),$t(o,async b=>{b&&(l.value=!0),await ke(),o.value||(l.value=!1)})});const p=B0(t);function g(){return`starport-${r}-${p}-${F0()}`}const y=g();return zt({el:o,id:y,port:t,props:s,rect:d,scope:c,isLanded:a,isVisible:l,options:h,liftOffTime:f,component:e,componentName:i,componentId:r,generateId:g,setLocalOptions(b={}){u.value=JSON.parse(JSON.stringify(b))},elRef(){return o},liftOff(){a.value&&(a.value=!1,f.value=Date.now(),d.listen())},land(){a.value||(a.value=!0,d.pause())}})}function rW(t){const e=zt(new Map);function n(r,o){let s=e.get(r);return s||(s=iW(r,o,t),e.set(r,s)),s.component=o,s}function i(r){var o;(o=e.get(r))==null||o.scope.stop(),e.delete(r)}return{portMap:e,dispose:i,getInstance:n}}const oW=jt({name:"StarportCraft",props:{port:{type:String,required:!0},component:{type:Object,required:!0}},setup(t){const e=kt(nu);if(!e)throw new Error("[Vue Starport] Failed to find the carrier, all Starport components must be wrapped in a <StarportCarrier> component.");const n=A(()=>e.getInstance(t.port,t.component)),i=A(()=>{var s;return((s=n.value.el)==null?void 0:s.id)||n.value.id}),r=A(()=>{const s=Date.now()-n.value.liftOffTime,a=Math.max(0,n.value.options.duration-s),l=n.value.rect,c={position:"absolute",left:0,top:0,width:`${l.width}px`,height:`${l.height}px`,margin:l.margin,padding:l.padding,transform:`translate3d(calc(${l.left}px - ${l.marginLeft}),calc(${l.top}px - ${l.marginTop}),0px)`};return!n.value.isVisible||!n.value.el?{...c,zIndex:-1,display:"none"}:(n.value.isLanded?c.display="none":Object.assign(c,{transitionProperty:"all",transitionDuration:`${a}ms`,transitionTimingFunction:n.value.options.easing}),c)}),o={onTransitionend(s){n.value.isLanded||console.warn(`[Vue Starport] Transition duration of component "${n.value.componentName}" is too short (${s.elapsedTime}s) that may cause animation glitches. Try to increase the duration of that component, or decrease the duration the Starport (current: ${n.value.options.duration/1e3}s).`)}};return()=>{const s=!!(n.value.isLanded&&n.value.el);return Ze("div",{style:r.value,"data-starport-craft":n.value.componentId,"data-starport-landed":n.value.isLanded?"true":void 0,"data-starport-floating":n.value.isLanded?void 0:"true",onTransitionend:n.value.land},Ze(tT,{to:s?`#${i.value}`:"body",disabled:!s},Ze(n.value.component,Ur(o,n.value.props))))}}}),sW=jt({name:"StarportCarrier",setup(t,{slots:e}){const n=rW(kt(Bx,{}));return Tn().appContext.app.provide(nu,n),()=>{var r;return[(r=e.default)==null?void 0:r.call(e),Array.from(n.portMap.entries()).map(([o,{component:s}])=>Ze(oW,{key:o,port:o,component:s}))]}}});function aW(t={}){return{install(e){e.provide(Bx,t),e.component("Starport",QV),e.component("StarportCarrier",sW)}}}function lW(t){function e(){document.documentElement.style.setProperty("--vh",`${window.innerHeight*.01}px`)}e(),window.addEventListener("resize",e),t.app.use(XV),t.app.use(aW({keepAlive:!0}))}function tn(t,e,n){var i;return((i=t.instance)==null?void 0:i.$).provides[e]??n}function cW(){return{install(t){t.directive("click",{name:"v-click",mounted(e,n){var u,h,f,d;if(zr.value||(u=tn(n,al))!=null&&u.value||n.value===!1||n.value==="false")return;const i=tn(n,po),r=tn(n,bn),o=tn(n,Ih),s=n.modifiers.hide!==!1&&n.modifiers.hide!=null,l=n.modifiers.fade!==!1&&n.modifiers.fade!=null?S$:Au;i&&!((h=i==null?void 0:i.value)!=null&&h.includes(e))&&i.value.push(e);const c=((f=i==null?void 0:i.value)==null?void 0:f.length)||0;if(I0(n,c),!(o!=null&&o.value.has(n.value)))o==null||o.value.set(n.value,[e]);else if(!((d=o==null?void 0:o.value.get(n.value))!=null&&d.includes(e))){const p=(o==null?void 0:o.value.get(n.value))||[];o==null||o.value.set(n.value,[e].concat(p))}e==null||e.classList.toggle(lo,!0),r&&$t(r,()=>{const p=(r==null?void 0:r.value)??0,g=n.value!=null?Array.isArray(n.value)?p>=n.value[0]&&p<n.value[1]:p>=n.value:p>c;e.classList.contains(Eu)||e.classList.toggle(l,!g),s!==!1&&s!==void 0&&e.classList.toggle(l,g),e.classList.toggle(ns,!1);const y=o==null?void 0:o.value.get(p);y==null||y.forEach((b,v)=>{b.classList.toggle(Pa,!1),v===y.length-1?b.classList.toggle(ns,!0):b.classList.toggle(Pa,!0)}),e.classList.contains(ns)||e.classList.toggle(Pa,g)},{immediate:!0})},unmounted(e,n){e==null||e.classList.toggle(lo,!1);const i=tn(n,po);i!=null&&i.value&&hm(i.value,e)}}),t.directive("after",{name:"v-after",mounted(e,n){var a,l;if(zr.value||(a=tn(n,al))!=null&&a.value||n.value===!1||n.value==="false")return;const i=tn(n,po),r=tn(n,bn),o=tn(n,Ih),s=(i==null?void 0:i.value.length)||0;I0(n,s),o!=null&&o.value.has(n.value)?(l=o==null?void 0:o.value.get(n.value))==null||l.push(e):o==null||o.value.set(n.value,[e]),e==null||e.classList.toggle(lo,!0),r&&$t(r,()=>{const c=r.value??0,u=n.value!=null?Array.isArray(n.value)?c>=n.value[0]&&c<n.value[1]:c>=n.value:c>=s;e.classList.contains(Eu)||e.classList.toggle(Au,!u),e.classList.toggle(ns,!1),e.classList.contains(ns)||e.classList.toggle(Pa,u)},{immediate:!0})},unmounted(e){e==null||e.classList.toggle(lo,!0)}}),t.directive("click-hide",{name:"v-click-hide",mounted(e,n){var s,a,l;if(zr.value||(s=tn(n,al))!=null&&s.value)return;const i=tn(n,po),r=tn(n,bn),o=((a=i==null?void 0:i.value)==null?void 0:a.length)||0;i&&!((l=i==null?void 0:i.value)!=null&&l.includes(e))&&i.value.push(e),e==null||e.classList.toggle(lo,!0),r&&$t(r,()=>{const c=(r==null?void 0:r.value)??0,u=n.value!=null?c>=n.value:c>o;e.classList.toggle(Au,u),e.classList.toggle(Eu,u)},{immediate:!0})},unmounted(e,n){e==null||e.classList.toggle(lo,!1);const i=tn(n,po);i!=null&&i.value&&hm(i.value,e)}})}}}function I0(t,e){(t.value==null||t.value===!0||t.value==="true")&&(t.value=e),typeof t.value=="string"&&(t.value.startsWith("+")||t.value.startsWith("-"))&&(t.value=e+Number(t.value))}function uW(t,e){const n=_v(t),i=vv(e,n.currentRoute,n.currentPage);return{nav:{...n,...i},configs:Wt,themeConfigs:A(()=>Wt.themeConfig)}}function hW(){return{install(t){const e=zt(uW(wn,on));t.provide(Li,e),t.provide($i,A(()=>e.nav.currentPage)),t.provide(bn,A(()=>e.nav.clicks))}}}const Wo=ZT(yq);Wo.use(ze);Wo.use(zS());Wo.use(cW());Wo.use(hW());lW({app:Wo,router:ze});Wo.mount("#app");export{dW as $,dc as A,oq as B,Yu as C,ti as D,Zr as E,It as F,zt as G,gW as H,vW as I,$t as J,bu as K,Ds as L,Su as M,hs as N,_e as O,jl as P,bW as Q,xW as R,Q_ as S,le as T,$e as U,Yt as V,N$ as W,eM as X,rd as Y,od as Z,Dt as _,WS as a,Iv as a$,pW as a0,Ue as a1,KO as a2,UL as a3,ln as a4,mW as a5,He as a6,gn as a7,CW as a8,es as a9,AN as aA,wd as aB,$N as aC,xv as aD,xN as aE,f1 as aF,pN as aG,MI as aH,g8 as aI,DW as aJ,Ss as aK,an as aL,Bv as aM,S5 as aN,Cs as aO,tR as aP,Td as aQ,Tt as aR,ei as aS,S8 as aT,k8 as aU,b8 as aV,II as aW,BW as aX,O8 as aY,TN as aZ,dd as a_,$r as aa,Fh as ab,i$ as ac,r$ as ad,o$ as ae,a$ as af,Ey as ag,Zf as ah,Ve as ai,Na as aj,M2 as ak,kt as al,J_ as am,l$ as an,ca as ao,x8 as ap,C8 as aq,T8 as ar,w8 as as,Rd as at,Us as au,Fe as av,oc as aw,mn as ax,vt as ay,mb as az,A as b,Ad as b$,Ke as b0,pa as b1,o5 as b2,l5 as b3,s5 as b4,lB as b5,Nv as b6,wW as b7,B8 as b8,hP as b9,YR as bA,P1 as bB,V6 as bC,aN as bD,dr as bE,$1 as bF,F1 as bG,rc as bH,ic as bI,kR as bJ,qu as bK,eo as bL,M6 as bM,_9 as bN,kd as bO,E6 as bP,R6 as bQ,zo as bR,MR as bS,k6 as bT,ri as bU,Sd as bV,ya as bW,qo as bX,FR as bY,O6 as bZ,L6 as b_,j1 as ba,Ld as bb,OW as bc,oP as bd,ni as be,zi as bf,pd as bg,Vs as bh,dg as bi,mB as bj,HW as bk,lN as bl,CN as bm,ec as bn,Vg as bo,iN as bp,rN as bq,B1 as br,Vc as bs,uf as bt,GR as bu,Gc as bv,DR as bw,a9 as bx,ga as by,nN as bz,Wt as c,A1 as c0,Dg as c1,Dc as c2,jW as c3,BN as c4,A8 as c5,ma as c6,pt as c7,xt as c8,_d as c9,kW as ca,$W as cb,bg as cc,vg as cd,LW as ce,EW as cf,TW as cg,SW as ch,FW as ci,MW as cj,AW as ck,r5 as cl,jt as d,nt as e,X as f,O as g,No as h,td as i,eq as j,Ci as k,at as l,Mt as m,Ae as n,R as o,tt as p,_W as q,se as r,Le as s,yn as t,yW as u,Vt as v,ee as w,y$ as x,uq as y,on as z};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["assets/c4Diagram-c82ee324-0kgbDzSX.js","assets/svgDrawCommon-1b9ff2ad-B4iIY08o.js","assets/flowDiagram-962873e1-nda6-cW-.js","assets/flowDb-a32fc02b-mKtk886G.js","assets/layout-94e1e85f-BAM45a7u.js","assets/styles-a35956af-xNc0fAXX.js","assets/index-20c9cf41-l8R8WdfM.js","assets/edges-9f0d1f4d-OJsHViVb.js","assets/createText-77e212b0-L6d34XR_.js","assets/line-b015ae81-MIcjsH1n.js","assets/array-b7dcf730-Nw74a44z.js","assets/path-39bad7e2-aUcfwwLI.js","assets/flowDiagram-v2-10567f5e-VU4AD-_e.js","assets/erDiagram-a72da23d-vgjFpPuP.js","assets/ganttDiagram-18b41033-KFKp07jc.js","assets/linear-ad2a9be7-2u7jZYmT.js","assets/init-cc95ec8e-Hi12RPRh.js","assets/pieDiagram-0a51d72a-VPTxVOZB.js","assets/arc-01f1c7b4-EdqqRiec.js","assets/ordinal-475e0c0c-Beet9Qdq.js","assets/quadrantDiagram-31813e83-T7dXnRZu.js","assets/xychartDiagram-ca967019-Jb-DkKGk.js","assets/requirementDiagram-6d08cb88-VD3gHRhe.js","assets/sequenceDiagram-62b9e65a-dBrfESyV.js","assets/classDiagram-5d49202d-d9I8momV.js","assets/styles-9e4c6998-0KggYSQd.js","assets/classDiagram-v2-5328fc73-o_oS6EAJ.js","assets/stateDiagram-03b49db1-LV6DDYic.js","assets/styles-275f40ca-02prN6vb.js","assets/stateDiagram-v2-a86a5ce4-iQ_8fA-L.js","assets/journeyDiagram-30ac10e6-7a2SGMP3.js","assets/flowchart-elk-definition-b97a4072-mWsI5guh.js","assets/timeline-definition-54d0bf3a-PHsL3qfr.js","assets/mindmap-definition-83493066-ARqmEEQ9.js","assets/sankeyDiagram-ff1543cb--HN3sqYB.js","assets/PresenterPrint-9at8jjKc.js","assets/NoteDisplay-yuZim5X5.js","assets/Presenter-l9qHHLVL.js","assets/DrawingControls-BpEX6Ul-.js","assets/Presenter-Khn14gwB.css"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
#slide-container{position:relative;break-after:page;overflow:hidden}#slide-content{position:relative;position:absolute;left:50%;top:50%;overflow:hidden;--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(24 24 24 / var(--un-text-opacity))}.dark #slide-content{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(221 221 221 / var(--un-text-opacity))}.slidev-info-dialog{max-width:37.5rem;padding:1rem!important}.autocomplete-list[data-v-f5ee02a7]{margin-top:.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));overflow:auto;--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(24 24 24 / var(--un-text-opacity));max-height:calc(100vh - 100px)}.dark .autocomplete-list[data-v-f5ee02a7]{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(221 221 221 / var(--un-text-opacity))}.autocomplete[data-v-f5ee02a7]{cursor:pointer}.select-list[data-v-3f89fa11]{padding-top:.5rem;padding-bottom:.5rem}.item[data-v-3f89fa11]{display:flex;cursor:default;white-space:nowrap;border-radius:.25rem;padding:.25rem 1rem}.item svg[data-v-3f89fa11]{margin-top:auto;margin-bottom:auto;margin-right:.25rem;margin-left:-.5rem}.item[data-v-3f89fa11]:hover{--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity));--un-bg-opacity:.1}.title[data-v-3f89fa11]{padding:.25rem 1.75rem;font-size:.75rem;line-height:1rem;letter-spacing:.1em;text-transform:uppercase;opacity:.5}#slideshow[data-v-afb4231e]{height:100%}#slideshow>div[data-v-afb4231e]{position:absolute;height:100%;width:100%}#print-content{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(24 24 24 / var(--un-text-opacity))}.dark #print-content{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(221 221 221 / var(--un-text-opacity))}.print-slide-container{position:relative;break-after:page;overflow:hidden}html.print,html.print body,html.print #app{height:auto;overflow:auto}html.print #page-root{height:auto;overflow:hidden}html.print *{-webkit-print-color-adjust:exact}html.print{width:100%;height:100%;overflow:visible}html.print body{margin:0 auto;border:0;padding:0;float:none;overflow:visible}.slidev-layout.end[data-v-e532b98d]{display:grid;height:100%;-webkit-user-select:none;user-select:none;place-content:center;--un-bg-opacity:1;background-color:rgb(0 0 0 / var(--un-bg-opacity));text-align:center;font-size:1.25rem;line-height:1.75rem;--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity));--un-text-opacity:.85;letter-spacing:.1em}.two-cols-header[data-v-1401df1d]{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}.col-header[data-v-1401df1d]{grid-area:1 / 1 / 2 / 3}.col-left[data-v-1401df1d]{grid-area:2 / 1 / 3 / 2}.col-right[data-v-1401df1d]{grid-area:2 / 2 / 3 / 3}.col-bottom[data-v-1401df1d]{align-self:end;grid-area:3 / 1 / 3 / 3}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.prose :where(h1,h2,h3,h4,h5,h6):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-headings);font-weight:600;line-height:1.25}.prose :where(a):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-links);text-decoration:underline;font-weight:500}.prose :where(a code):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-links)}.prose :where(p,ul,ol,pre):not(:where(.not-prose,.not-prose *)){margin:1em 0;line-height:1.75}.prose :where(blockquote):not(:where(.not-prose,.not-prose *)){margin:1em 0;padding-left:1em;font-style:italic;border-left:.25em solid var(--un-prose-borders)}.prose :where(h1):not(:where(.not-prose,.not-prose *)){margin:1rem 0;font-size:2.25em}.prose :where(h2):not(:where(.not-prose,.not-prose *)){margin:1.75em 0 .5em;font-size:1.75em}.prose :where(h3):not(:where(.not-prose,.not-prose *)){margin:1.5em 0 .5em;font-size:1.375em}.prose :where(h4):not(:where(.not-prose,.not-prose *)){margin:1em 0;font-size:1.125em}.prose :where(img,video):not(:where(.not-prose,.not-prose *)){max-width:100%}.prose :where(figure,picture):not(:where(.not-prose,.not-prose *)){margin:1em 0}.prose :where(figcaption):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-captions);font-size:.875em}.prose :where(code):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-code);font-size:.875em;font-weight:600;font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.prose :where(:not(pre)>code):not(:where(.not-prose,.not-prose *)):before,.prose :where(:not(pre)>code):not(:where(.not-prose,.not-prose *)):after{content:"`"}.prose :where(pre):not(:where(.not-prose,.not-prose *)){padding:1.25rem 1.5rem;overflow-x:auto;border-radius:.375rem}.prose :where(pre,code):not(:where(.not-prose,.not-prose *)){white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;hyphens:none;background:transparent}.prose :where(pre code):not(:where(.not-prose,.not-prose *)){font-weight:inherit}.prose :where(ol,ul):not(:where(.not-prose,.not-prose *)){padding-left:1.25em}.prose :where(ol):not(:where(.not-prose,.not-prose *)){list-style-type:decimal}.prose :where(ol[type=A]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where(.not-prose,.not-prose *)){list-style-type:decimal}.prose :where(ul):not(:where(.not-prose,.not-prose *)){list-style-type:disc}.prose :where(ol>li):not(:where(.not-prose,.not-prose *))::marker,.prose :where(ul>li):not(:where(.not-prose,.not-prose *))::marker,.prose :where(summary):not(:where(.not-prose,.not-prose *))::marker{color:var(--un-prose-lists)}.prose :where(hr):not(:where(.not-prose,.not-prose *)){margin:2em 0;border:1px solid var(--un-prose-hr)}.prose :where(table):not(:where(.not-prose,.not-prose *)){display:block;margin:1em 0;border-collapse:collapse;overflow-x:auto}.prose :where(tr):not(:where(.not-prose,.not-prose *)):nth-child(2n){background:var(--un-prose-bg-soft)}.prose :where(td,th):not(:where(.not-prose,.not-prose *)){border:1px solid var(--un-prose-borders);padding:.625em 1em}.prose :where(abbr):not(:where(.not-prose,.not-prose *)){cursor:help}.prose :where(kbd):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-code);border:1px solid;padding:.25rem .5rem;font-size:.875em;border-radius:.25rem}.prose :where(details):not(:where(.not-prose,.not-prose *)){margin:1em 0;padding:1.25rem 1.5rem;background:var(--un-prose-bg-soft)}.prose :where(summary):not(:where(.not-prose,.not-prose *)){cursor:pointer;font-weight:600}.prose{color:var(--un-prose-body);max-width:65ch}.container{width:100%}.border-main,.dark [border~="dark:main"],.dark [dark\:border~=main],[border~=main]{border-color:#9ca3af33}.bg-active{background-color:#9ca3af1a}.bg-main{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(24 24 24 / var(--un-text-opacity))}.dark .bg-main{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(221 221 221 / var(--un-text-opacity))}@media print{.print-container{width:100%}}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 640px){@media print{.print-container{max-width:640px}}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 768px){@media print{.print-container{max-width:768px}}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1024px){@media print{.print-container{max-width:1024px}}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1280px){@media print{.print-container{max-width:1280px}}}@media (min-width: 1536px){.container{max-width:1536px}}@media (min-width: 1536px){@media print{.print-container{max-width:1536px}}}:root{--slidev-code-background: rgba(125,125,125,.03);--slidev-code-font-family: "Fira Code",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--slidev-code-padding: 8px;--slidev-code-font-size: 12px;--slidev-code-line-height: 18px;--slidev-code-radius: 4px;--slidev-code-margin: 4px 0;--slidev-transition-duration: .5s;--slidev-slide-container-background: black;--slidev-controls-foreground: white}html,body,#app,#page-root{padding:0;margin:0;width:100%;height:100vh;height:calc(var(--vh, 1vh) * 100);overflow:hidden;font-family:Avenir Next,Nunito Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}html{background:transparent}.slidev-icon-btn{display:inline-block;cursor:pointer;-webkit-user-select:none;user-select:none;outline:2px solid transparent!important;outline-offset:2px!important;border-radius:.25rem;padding:.25rem;vertical-align:middle;opacity:.75;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.15s;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width: 768px){.slidev-icon-btn{padding:.5rem}}.slidev-icon-btn:hover{--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity));--un-bg-opacity:.1;opacity:1}.slidev-icon-btn.shallow{opacity:.3}.slidev-icon-btn.active{opacity:1}.slidev-icon-btn.disabled{pointer-events:none;opacity:.25}.slidev-vclick-target{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.1s}.slidev-vclick-hidden{pointer-events:none!important;opacity:0!important}.slidev-vclick-fade{opacity:.5}.slidev-icon{display:inline-block;vertical-align:sub;line-height:1em}.slidev-page{position:absolute;position:relative;top:0;left:0;right:0;width:100%}html.dark:root{color-scheme:dark}html.dark .shiki-light{display:none}html:not(.dark) .shiki-dark{display:none}.shiki-container{position:relative;display:flex;flex-direction:column}.shiki-container>.shiki{height:100%}html.dark .shikiji{color:var(--shiki-dark, inherit);background:var(--shiki-dark-bg, inherit);--twoslash-popup-bg: var(--shiki-dark-bg, inherit)}html.dark .shikiji span{color:var(--shiki-dark)}html:not(.dark) .shikiji{color:var(--shiki-light, inherit);background:var(--shiki-light-bg, inherit);--twoslash-popup-bg: var(--shiki-light-bg, inherit)}html:not(.dark) .shikiji span{color:var(--shiki-light)}.shikiji.twoslash{overflow:inherit}.twoslash-meta-line.twoslash-popover-line{margin-top:-10px}.slidev-code-wrapper{margin:var(--slidev-code-margin)!important;scroll-padding:var(--slidev-code-padding)}.slidev-code-wrapper:-webkit-scrollbar{width:0px}.slidev-code{font-family:var(--slidev-code-font-family)!important;padding:var(--slidev-code-padding)!important;font-size:var(--slidev-code-font-size)!important;line-height:var(--slidev-code-line-height)!important;border-radius:var(--slidev-code-radius)!important;overflow:auto}.slidev-code .line.dishonored{opacity:.3;pointer-events:none}.slidev-code-line-numbers .slidev-code code{counter-reset:step;counter-increment:step calc(var(--start, 1) - 1)}.slidev-code-line-numbers .slidev-code code .line:before{content:counter(step);counter-increment:step;margin-right:1.5rem;display:inline-block;width:1rem;text-align:right;--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.dark .slidev-code-line-numbers .slidev-code code .line:before{--un-text-opacity:1;color:rgb(75 85 99 / var(--un-text-opacity))}.katex,.katex :after,.katex :before{border-color:currentColor}.CodeMirror pre.CodeMirror-placeholder{opacity:.4}.slidev-katex-wrapper .mord.dishonored{opacity:.3}.slide-left-enter-active,.slide-left-leave-active,.slide-right-enter-active,.slide-right-leave-active,.slide-up-enter-active,.slide-up-leave-active,.slide-down-enter-active,.slide-down-leave-active{transition:all var(--slidev-transition-duration) ease}.slide-left-enter-from,.slide-right-leave-to{transform:translate(100%)}.slide-left-leave-to,.slide-right-enter-from{transform:translate(-100%)}.slide-up-enter-from,.slide-down-leave-to{transform:translateY(100%)}.slide-up-leave-to,.slide-down-enter-from{transform:translateY(-100%)}.fade-enter-active,.fade-leave-active{transition:opacity var(--slidev-transition-duration) ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-out-leave-active{transition:opacity calc(var(--slidev-transition-duration) * .6) ease-out}.fade-out-enter-active{transition:opacity calc(var(--slidev-transition-duration) * .8) ease-in;transition-delay:calc(var(--slidev-transition-duration) * .6)}.fade-out-enter-from,.fade-out-leave-to{opacity:0}.slidev-layout{height:100%;padding:2.5rem 3.5rem;font-size:1.1rem}.slidev-layout pre,.slidev-layout code{-webkit-user-select:text;user-select:text}.slidev-layout code{font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.slidev-layout h1{margin-bottom:1rem;font-size:2.25rem;line-height:2.5rem}.slidev-layout h6{padding-top:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase}.slidev-layout p{margin-top:1rem;margin-bottom:1rem;line-height:1.5rem}.slidev-layout ul{list-style:square}.slidev-layout ol{list-style:decimal}.slidev-layout li{line-height:1.8em}.slidev-layout blockquote{border-left-width:1px;border-color:var(--slidev-theme-primary);border-radius:.25rem;background-color:var(--prism-background);padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem;color:var(--prism-foreground)}.slidev-layout blockquote>*{margin-top:0;margin-bottom:0}.slidev-layout table{width:100%}.slidev-layout tr{border-bottom-width:1px;--un-border-opacity:1;border-color:rgb(156 163 175 / var(--un-border-opacity));--un-border-opacity:.2}.slidev-layout th{text-align:left;font-weight:400}.slidev-layout a{border-bottom-width:1px;border-color:currentColor;border-style:dashed}.slidev-layout a:hover{border-style:solid;color:var(--slidev-theme-primary)}.slidev-layout td,.slidev-layout th{padding:.75rem .5rem}.slidev-layout b,.slidev-layout strong{font-weight:600}.slidev-layout kbd{border-width:1px;border-bottom-width:2px;--un-border-opacity:1;border-color:rgb(156 163 175 / var(--un-border-opacity));--un-border-opacity:.2;border-radius:.25rem;--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity));--un-bg-opacity:.05;padding:.125rem .25rem;font-size:.75rem;line-height:1rem;font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.slidev-layout h1,[dir=ltr] h1,.slidev-layout [dir=ltr] h1,.slidev-layout h6,[dir=ltr] h6,.slidev-layout [dir=ltr] h6{margin-left:-.05em;margin-right:0}.slidev-layout li,[dir=ltr] li,.slidev-layout [dir=ltr] li{margin-left:1.1em;margin-right:0;padding-left:.2em;padding-right:0}[dir=rtl] h1,.slidev-layout [dir=rtl] h1,[dir=rtl] h6,.slidev-layout [dir=rtl] h6{margin-right:-.05em;margin-left:0}[dir=rtl] li,.slidev-layout [dir=rtl] li{margin-right:1.1em;margin-left:0;padding-right:.2em;padding-left:0}.slidev-layout h1+p{margin-top:-.5rem;margin-bottom:1rem;opacity:.5}.slidev-layout p+h2,.slidev-layout ul+h2,.slidev-layout table+h2{margin-top:2.5rem}.slidev-layout h1{margin-bottom:1rem;margin-left:-.05em;font-size:2.25rem;line-height:2.5rem}.slidev-layout h2{font-size:1.875rem;line-height:2.25rem}.slidev-layout h3{font-size:1.5rem;line-height:2rem}.slidev-layout h4{font-size:1.25rem;line-height:1.75rem}.slidev-layout h5{font-size:1rem;line-height:1.5rem}.slidev-layout h6{margin-left:-.05em;padding-top:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase}.slidev-layout h6:not(.opacity-100){opacity:.4}.slidev-layout.cover,.slidev-layout.intro{display:grid;height:100%}.slidev-layout.cover h1,.slidev-layout.intro h1{font-size:3.75rem;line-height:1;line-height:5rem}.slidev-layout.fact{display:grid;height:100%;text-align:center}.slidev-layout.fact h1{font-size:6rem;line-height:1;font-weight:700}.slidev-layout.fact h1+p{font-size:1.5rem;line-height:2rem;font-weight:700}.slidev-layout.statement{display:grid;height:100%;text-align:center}.slidev-layout.statement h1{font-size:3.75rem;line-height:1;font-weight:700}.slidev-layout.quote{display:grid;height:100%}.slidev-layout.quote h1+p{margin-top:.5rem}.slidev-layout.section h1{font-size:3.75rem;line-height:1;font-weight:500;line-height:5rem}:root{--prism-scheme: light;--prism-foreground: #6e6e6e;--prism-background: #f4f4f4;--prism-comment: #a8a8a8;--prism-string: #555555;--prism-literal: #333333;--prism-keyword: #000000;--prism-function: #4f4f4f;--prism-deleted: #333333;--prism-class: #333333;--prism-builtin: #757575;--prism-property: #333333;--prism-namespace: #4f4f4f;--prism-punctuation: #ababab;--prism-decorator: var(--prism-class);--prism-operator: var(--prism-punctuation);--prism-number: var(--prism-literal);--prism-boolean: var(--prism-literal);--prism-variable: var(--prism-literal);--prism-constant: var(--prism-literal);--prism-symbol: var(--prism-literal);--prism-interpolation: var(--prism-literal);--prism-selector: var(--prism-keyword);--prism-keyword-control: var(--prism-keyword);--prism-regex: var(--prism-string);--prism-json-property: var(--prism-property);--prism-inline-background: var(--prism-background);--prism-comment-style: italic;--prism-url-decoration: underline;--prism-line-number: #a5a5a5;--prism-line-number-gutter: #333333;--prism-line-highlight-background: #eeeeee;--prism-selection-background: #dddddd;--prism-marker-color: var(--prism-foreground);--prism-marker-opacity: .4;--prism-marker-font-size: .8em;--prism-font-size: 1em;--prism-line-height: 1.5em;--prism-font-family: monospace;--prism-inline-font-size: var(--prism-font-size);--prism-block-font-size: var(--prism-font-size);--prism-tab-size: 2;--prism-block-padding-x: 1em;--prism-block-padding-y: 1em;--prism-block-margin-x: 0;--prism-block-margin-y: .5em;--prism-block-radius: .3em;--prism-inline-padding-x: .3em;--prism-inline-padding-y: .1em;--prism-inline-radius: .3em}div[class*=language-],pre[class*=language-],code[class*=language-]{font-size:var(--prism-font-size);font-family:var(--prism-font-family);direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:var(--prism-line-height);-moz-tab-size:var(--prism-tab-size);-o-tab-size:var(--prism-tab-size);tab-size:var(--prism-tab-size);-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none;color:var(--prism-foreground)!important}div[class*=language-],pre[class*=language-]{font-size:var(--prism-block-font-size);padding:var(--prism-block-padding-y) var(--prism-block-padding-x);margin:var(--prism-block-margin-y) var(--prism-block-margin-x);border-radius:var(--prism-block-radius);overflow:auto;background:var(--prism-background)}:not(pre)>code[class*=language-]{font-size:var(--prism-inline-font-size);padding:var(--prism-inline-padding-y) var(--prism-inline-padding-x);border-radius:var(--prism-inline-radius);background:var(--prism-inline-background)}pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection{background:var(--prism-selection-background)}pre[class*=language-]::selection,pre[class*=language-] ::selection,code[class*=language-]::selection,code[class*=language-] ::selection{background:var(--prism-selection-background)}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:var(--prism-comment);font-style:var(--prism-comment-style)}.token.namespace{color:var(--prism-namespace)}.token.interpolation{color:var(--prism-interpolation)}.token.string{color:var(--prism-string)}.token.punctuation{color:var(--prism-punctuation)}.token.operator{color:var(--prism-operator)}.token.keyword.module,.token.keyword.control-flow{color:var(--prism-keyword-control)}.token.url,.token.symbol,.token.inserted{color:var(--prism-symbol)}.token.constant{color:var(--prism-constant)}.token.string.url{text-decoration:var(--prism-url-decoration)}.token.boolean,.language-json .token.boolean{color:var(--prism-boolean)}.token.number,.language-json .token.number{color:var(--prism-number)}.token.variable{color:var(--prism-variable)}.token.keyword{color:var(--prism-keyword)}.token.atrule,.token.attr-value,.token.selector{color:var(--prism-selector)}.token.function{color:var(--prism-function)}.token.deleted{color:var(--prism-deleted)}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.class-name{color:var(--prism-class)}.token.tag,.token.builtin{color:var(--prism-builtin)}.token.attr-name,.token.property,.token.entity{color:var(--prism-property)}.language-json .token.property{color:var(--prism-json-property)}.token.regex{color:var(--prism-regex)}.token.decorator,.token.annotation{color:var(--prism-decorator)}.line-numbers .line-numbers-rows{border-right-color:var(--prism-line-number)}.line-numbers-rows>span:before{color:var(--prism-line-number-gutter)}.line-highlight{background:var(--prism-line-highlight-background)}:root{--cm-scheme: light;--cm-foreground: #6e6e6e;--cm-background: #f4f4f4;--cm-comment: #a8a8a8;--cm-string: #555555;--cm-literal: #333333;--cm-keyword: #000000;--cm-function: #4f4f4f;--cm-deleted: #333333;--cm-class: #333333;--cm-builtin: #757575;--cm-property: #333333;--cm-namespace: #4f4f4f;--cm-punctuation: #ababab;--cm-decorator: var(--cm-class);--cm-operator: var(--cm-punctuation);--cm-number: var(--cm-literal);--cm-boolean: var(--cm-literal);--cm-variable: var(--cm-literal);--cm-constant: var(--cm-literal);--cm-symbol: var(--cm-literal);--cm-interpolation: var(--cm-literal);--cm-selector: var(--cm-keyword);--cm-keyword-control: var(--cm-keyword);--cm-regex: var(--cm-string);--cm-json-property: var(--cm-property);--cm-inline-background: var(--cm-background);--cm-comment-style: italic;--cm-url-decoration: underline;--cm-line-number: #a5a5a5;--cm-line-number-gutter: #333333;--cm-line-highlight-background: #eeeeee;--cm-selection-background: #aaaaaa;--cm-marker-color: var(--cm-foreground);--cm-marker-opacity: .4;--cm-marker-font-size: .8em;--cm-font-size: 1em;--cm-line-height: 1.5em;--cm-font-family: monospace;--cm-inline-font-size: var(--cm-font-size);--cm-block-font-size: var(--cm-font-size);--cm-tab-size: 2;--cm-block-padding-x: 1em;--cm-block-padding-y: 1em;--cm-block-margin-x: 0;--cm-block-margin-y: .5em;--cm-block-radius: .3em;--cm-inline-padding-x: .3em;--cm-inline-padding-y: .1em;--cm-inline-radius: .3em}.cm-s-vars.CodeMirror{background-color:var(--cm-background);color:var(--cm-foreground)}.cm-s-vars .CodeMirror-gutters{background:var(--cm-line-number-gutter);color:var(--cm-line-number);border:none}.cm-s-vars .CodeMirror-guttermarker,.cm-s-vars .CodeMirror-guttermarker-subtle,.cm-s-vars .CodeMirror-linenumber{color:var(--cm-line-number)}.cm-s-vars div.CodeMirror-selected,.cm-s-vars.CodeMirror-focused div.CodeMirror-selected{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line::selection,.cm-s-vars .CodeMirror-line>span::selection,.cm-s-vars .CodeMirror-line>span>span::selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line::-moz-selection,.cm-s-vars .CodeMirror-line>span::-moz-selection,.cm-s-vars .CodeMirror-line>span>span::-moz-selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-activeline-background{background:var(--cm-line-highlight-background)}.cm-s-vars .cm-keyword{color:var(--cm-keyword)}.cm-s-vars .cm-variable,.cm-s-vars .cm-variable-2,.cm-s-vars .cm-variable-3,.cm-s-vars .cm-type{color:var(--cm-variable)}.cm-s-vars .cm-builtin{color:var(--cm-builtin)}.cm-s-vars .cm-atom{color:var(--cm-literal)}.cm-s-vars .cm-number{color:var(--cm-number)}.cm-s-vars .cm-def{color:var(--cm-decorator)}.cm-s-vars .cm-string,.cm-s-vars .cm-string-2{color:var(--cm-string)}.cm-s-vars .cm-comment{color:var(--cm-comment)}.cm-s-vars .cm-tag{color:var(--cm-builtin)}.cm-s-vars .cm-meta{color:var(--cm-namespace)}.cm-s-vars .cm-attribute,.cm-s-vars .cm-property{color:var(--cm-property)}.cm-s-vars .cm-qualifier{color:var(--cm-keyword)}.cm-s-vars .cm-error{color:var(--prism-deleted)}.cm-s-vars .cm-operator,.cm-s-vars .cm-bracket{color:var(--cm-punctuation)}.cm-s-vars .CodeMirror-matchingbracket{text-decoration:underline}.cm-s-vars .CodeMirror-cursor{border-left:1px solid currentColor}:root{--cm-scheme: var(--prism-scheme);--cm-foreground: var(--prism-foreground);--cm-background: var(--prism-background);--cm-comment: var(--prism-comment);--cm-string: var(--prism-string);--cm-literal: var(--prism-literal);--cm-keyword: var(--prism-keyword);--cm-function: var(--prism-function);--cm-deleted: var(--prism-deleted);--cm-class: var(--prism-class);--cm-builtin: var(--prism-builtin);--cm-property: var(--prism-property);--cm-namespace: var(--prism-namespace);--cm-punctuation: var(--prism-punctuation);--cm-decorator: var(--prism-decorator);--cm-operator: var(--prism-operator);--cm-number: var(--prism-number);--cm-boolean: var(--prism-boolean);--cm-variable: var(--prism-variable);--cm-constant: var(--prism-constant);--cm-symbol: var(--prism-symbol);--cm-interpolation: var(--prism-interpolation);--cm-selector: var(--prism-selector);--cm-keyword-control: var(--prism-keyword-control);--cm-regex: var(--prism-regex);--cm-json-property: var(--prism-json-property);--cm-inline-background: var(--prism-inline-background);--cm-comment-style: var(--prism-comment-style);--cm-url-decoration: var(--prism-url-decoration);--cm-line-number: var(--prism-line-number);--cm-line-number-gutter: var(--prism-line-number-gutter);--cm-line-highlight-background: var(--prism-line-highlight-background);--cm-selection-background: var(--prism-selection-background);--cm-marker-color: var(--prism-marker-color);--cm-marker-opacity: var(--prism-marker-opacity);--cm-marker-font-size: var(--prism-marker-font-size);--cm-font-size: var(--prism-font-size);--cm-line-height: var(--prism-line-height);--cm-font-family: var(--prism-font-family);--cm-inline-font-size: var(--prism-inline-font-size);--cm-block-font-size: var(--prism-block-font-size);--cm-tab-size: var(--prism-tab-size);--cm-block-padding-x: var(--prism-block-padding-x);--cm-block-padding-y: var(--prism-block-padding-y);--cm-block-margin-x: var(--prism-block-margin-x);--cm-block-margin-y: var(--prism-block-margin-y);--cm-block-radius: var(--prism-block-radius);--cm-inline-padding-x: var(--prism-inline-padding-x);--cm-inline-padding-y: var(--prism-inline-padding-y);--cm-inline-radius: var(--prism-inline-radius)}:root{--prism-font-family: var(--slidev-code-font-family);--slidev-code-background: var(--prism-background)}html:not(.dark){--prism-foreground: #393a34;--prism-background: #f8f8f8;--prism-comment: #a0ada0;--prism-string: #b56959;--prism-literal: #2f8a89;--prism-number: #296aa3;--prism-keyword: #1c6b48;--prism-function: #6c7834;--prism-boolean: #1c6b48;--prism-constant: #a65e2b;--prism-deleted: #a14f55;--prism-class: #2993a3;--prism-builtin: #ab5959;--prism-property: #b58451;--prism-namespace: #b05a78;--prism-punctuation: #8e8f8b;--prism-decorator: #bd8f8f;--prism-regex: #ab5e3f;--prism-json-property: #698c96}html.dark{--prism-foreground: #d4cfbf;--prism-background: #1b1b1b;--prism-comment: #758575;--prism-string: #d48372;--prism-literal: #429988;--prism-keyword: #4d9375;--prism-boolean: #1c6b48;--prism-number: #6394bf;--prism-variable: #c2b36e;--prism-function: #a1b567;--prism-deleted: #a14f55;--prism-class: #54b1bf;--prism-builtin: #e0a569;--prism-property: #dd8e6e;--prism-namespace: #db889a;--prism-punctuation: #858585;--prism-decorator: #bd8f8f;--prism-regex: #ab5e3f;--prism-json-property: #6b8b9e;--prism-line-number: #888888;--prism-line-number-gutter: #eeeeee;--prism-line-highlight-background: #444444;--prism-selection-background: #444444}:not(pre)>code{font-size:.9em;background:var(--prism-background);border-radius:.25rem;padding-top:.125rem;padding-bottom:.125rem;font-weight:300}:not(pre)>code:before,:not(pre)>code:after{content:"`";opacity:.5}:not(pre)>code:before{margin-right:-.08em}.shiki-light{background:#f8f8f8!important}.shiki-dark{background:#1b1b1b!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.bottom-0{bottom:0}.bottom-10{bottom:2.5rem}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-4{right:1rem}.right-5{right:1.25rem}.top-0{top:0}.top-1\/2{top:50%}.-top-20{top:-5rem}.top-4{top:1rem}.top-5{top:1.25rem}.-z-1{z-index:-1}.z-20{z-index:20}.grid,[grid=""]{display:grid}.grid-cols-\[1fr_max-content\]{grid-template-columns:1fr max-content}.grid-rows-\[1fr_min-content\]{grid-template-rows:1fr min-content}.m-1{margin:.25rem}.m-4{margin:1rem}.m-auto{margin:auto}.my{margin-top:1rem;margin-bottom:1rem}.my--4{margin-top:-1rem;margin-bottom:-1rem}.children\:my-auto>*,.my-auto{margin-top:auto;margin-bottom:auto}.mb-10{margin-bottom:2.5rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-0{margin-left:0}.-ml-2{margin-left:-.5rem}.ml-2{margin-left:.5rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.-mt-0\.5{margin-top:-.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.block{display:block}.inline-block{display:inline-block}.hidden{display:none}.h-\[calc\(var\(--vh\,1vh\)\*100\)\]{height:calc(var(--vh,1vh) * 100)}.h-0\.7{height:.175rem}.h-10{height:2.5rem}.h-22px{height:22px}.h-2px{height:2px}.h-40px{height:40px}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-full{height:100%}.h1{height:.25rem}.h2{height:.5rem}.max-w-150{max-width:37.5rem}.max-w-90,[max-w-90=""]{max-width:22.5rem}.max-w-full{max-width:100%}.min-w-90,[min-w-90=""]{min-width:22.5rem}.w-1px{width:1px}.w-22px{width:22px}.w-4,[w-4=""]{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-90,[w-90=""]{width:22.5rem}.w-full{width:100%}.flex,[flex~="~"]{display:flex}.flex-auto{flex:1 1 auto}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.-rotate-45{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:-45deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}[scale~="0.5"]{--un-scale-x:.005;--un-scale-y:.005;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-102{--un-scale-x:1.02;--un-scale-y:1.02;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-85{--un-scale-x:.85;--un-scale-y:.85;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-default{cursor:default}.cursor-pointer,[cursor-pointer=""]{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;user-select:none}.resize{resize:both}.resize-none{resize:none}.break-inside-avoid-page{break-inside:avoid-page}.break-after-page{break-after:page}.place-content-center{place-content:center}.items-center,[items-center=""]{align-items:center}.gap-2,[flex~=gap-2]{gap:.5rem}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-4{gap:1rem}.gap-x-8{column-gap:2rem}.gap-y-4{row-gap:1rem}.of-auto,.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.b,.border,.dark .dark\:border,.dark [dark\:border~="~"],.dark [dark~=border],[border~="~"]{border-width:1px}[border~="0"]{border-width:0px}.border-2{border-width:2px}.border-t,[border~=t]{border-top-width:1px}.border-\$slidev-theme-primary{border-color:var(--slidev-theme-primary)}.border-gray-400,.dark .dark\:border-gray-400,.dark [dark~=border-gray-400]{--un-border-opacity:1;border-color:rgb(156 163 175 / var(--un-border-opacity))}.border-gray-400\/50{border-color:#9ca3af80}.border-green{--un-border-opacity:1;border-color:rgb(74 222 128 / var(--un-border-opacity))}.border-transparent,[border~=transparent]{border-color:transparent}.hover\:border-\$slidev-theme-primary:hover{border-color:var(--slidev-theme-primary)}.border-opacity-10,.dark .dark\:border-opacity-10,.dark [dark~=border-opacity-10]{--un-border-opacity:.1}.border-opacity-50{--un-border-opacity:.5}.rounded,[border~=rounded]{border-radius:.25rem}.rounded-1\/2{border-radius:50%}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.\!border-none{border-style:none!important}.bg-black,[bg~=black]{--un-bg-opacity:1;background-color:rgb(0 0 0 / var(--un-bg-opacity))}.bg-current{background-color:currentColor}.bg-gray-400{--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity))}.bg-transparent{background-color:transparent}.hover\:bg-gray-400:hover{--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity))}.bg-opacity-15{--un-bg-opacity:.15}.bg-opacity-50{--un-bg-opacity:.5}.\!bg-opacity-75{--un-bg-opacity:.75 !important}[bg~=opacity-80]{--un-bg-opacity:.8}.hover\:bg-opacity-10:hover{--un-bg-opacity:.1}.p-1{padding:.25rem}.p-16{padding:4rem}.p-2{padding:.5rem}.\!p-4{padding:1rem!important}.px,.px-4,[p~=x-4]{padding-left:1rem;padding-right:1rem}.py-2,[p~=y-2]{padding-top:.5rem;padding-bottom:.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-4{padding-top:1rem;padding-bottom:1rem}[p~=l-1]{padding-left:.25rem}[p~=r-2]{padding-right:.5rem}[p~="t-0.5"]{padding-top:.125rem}.pl-2{padding-left:.5rem}.pr-6{padding-right:1.5rem}.pie,[pie=""]{padding-inline-end:1rem}.text-center{text-align:center}.text-right,[text-right=""]{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm,[text-sm=""],[text~=sm]{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.text-\$slidev-controls-foreground{color:var(--slidev-controls-foreground)}.\!text-current{color:currentColor!important}[text~=dark]{--un-text-opacity:1;color:rgb(34 34 34 / var(--un-text-opacity))}.text-gray-400{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.text-green{--un-text-opacity:1;color:rgb(74 222 128 / var(--un-text-opacity))}.text-green-500{--un-text-opacity:1;color:rgb(34 197 94 / var(--un-text-opacity))}[text~=light]{--un-text-opacity:1;color:rgb(246 246 246 / var(--un-text-opacity))}.text-red-400{--un-text-opacity:1;color:rgb(248 113 113 / var(--un-text-opacity))}.text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.text-opacity-85{--un-text-opacity:.85}.font-bold{font-weight:700}.leading-2{line-height:.5rem}.tracking-widest{letter-spacing:.1em}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.op100,.opacity-100{opacity:1}.op50,.opacity-50,[op50=""]{opacity:.5}.op80,.opacity-80{opacity:.8}.\!opacity-0{opacity:0!important}.opacity-0{opacity:0}.opacity-10{opacity:.1}.\!opacity-100{opacity:1!important}.opacity-40{opacity:.4}.opacity-75{opacity:.75}[hover~=op100]:hover,.hover\:opacity-100:hover{opacity:1}.hover\:opacity-90:hover{opacity:.9}.shadow,[shadow~="~"]{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}[shadow~="$event"]{--un-shadow:var(--event);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.\!backdrop-blur-0px{--un-backdrop-blur:blur(0px) !important;-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)!important;backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)!important}.backdrop-blur-5px{--un-backdrop-blur:blur(5px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@media (max-width: 767.9px){.\<md\:hidden{display:none}}@media (min-width: 1024px){.lg\:m-2{margin:.5rem}.lg\:h-14{height:3.5rem}.lg\:gap-1{gap:.25rem}.lg\:p-2{padding:.5rem}.lg\:p-4{padding:1rem}.lg\:py-2{padding-top:.5rem;padding-bottom:.5rem}}
import{i as m,m as O,G,l as j,b as A}from"./layout-94e1e85f-BAM45a7u.js";import{i as M,u as _,s as H,a as V,b as U,p as D,c as W,d as Y,e as q,f as z,g as L,h as C}from"./edges-9f0d1f4d-OJsHViVb.js";import{ay as i,aF as N,at as S,ax as T}from"./index-Hfn5l4aw.js";import{a as K}from"./createText-77e212b0-L6d34XR_.js";var Q=4;function Z(e){return A(e,Q)}function x(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:I(e),edges:tt(e)};return m(e.graph())||(t.value=Z(e.graph())),t}function I(e){return O(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),s={v:t};return m(n)||(s.value=n),m(r)||(s.parent=r),s})}function tt(e){return O(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return m(t.name)||(r.name=t.name),m(n)||(r.value=n),r})}let f={},g={},J={};const et=()=>{g={},J={},f={}},X=(e,t)=>(i.trace("In isDecendant",t," ",e," = ",g[t].includes(e)),!!g[t].includes(e)),nt=(e,t)=>(i.info("Decendants of ",t," is ",g[t]),i.info("Edge is ",e),e.v===t||e.w===t?!1:g[t]?g[t].includes(e.v)||X(e.v,t)||X(e.w,t)||g[t].includes(e.w):(i.debug("Tilt, ",t,",not in decendants"),!1)),R=(e,t,n,r)=>{i.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const s=t.children(e)||[];e!==r&&s.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(c=>{if(t.children(c).length>0)R(c,t,n,r);else{const d=t.node(c);i.info("cp ",c," to ",r," with parent ",e),n.setNode(c,d),r!==t.parent(c)&&(i.warn("Setting parent",c,t.parent(c)),n.setParent(c,t.parent(c))),e!==r&&c!==e?(i.debug("Setting parent",c,e),n.setParent(c,e)):(i.info("In copy ",e,"root",r,"data",t.node(e),r),i.debug("Not Setting parent for node=",c,"cluster!==rootId",e!==r,"node!==clusterId",c!==e));const l=t.edges(c);i.debug("Copying Edges",l),l.forEach(u=>{i.info("Edge",u);const h=t.edge(u.v,u.w,u.name);i.info("Edge data",h,r);try{nt(u,r)?(i.info("Copying as ",u.v,u.w,h,u.name),n.setEdge(u.v,u.w,h,u.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",u.v,"-->",u.w," rootId: ",r," clusterId:",e)}catch(w){i.error(w)}})}i.debug("Removing node",c),t.removeNode(c)})},P=(e,t)=>{const n=t.children(e);let r=[...n];for(const s of n)J[s]=e,r=[...r,...P(s,t)];return r},b=(e,t)=>{i.trace("Searching",e);const n=t.children(e);if(i.trace("Searching children of id ",e,n),n.length<1)return i.trace("This is a valid node",e),e;for(const r of n){const s=b(r,t);if(s)return i.trace("Found replacement for",e," => ",s),s}},E=e=>!f[e]||!f[e].externalConnections?e:f[e]?f[e].id:e,it=(e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",b(n,e)),g[n]=P(n,e),f[n]={id:b(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),s=e.edges();r.length>0?(i.debug("Cluster identified",n,g),s.forEach(c=>{if(c.v!==n&&c.w!==n){const d=X(c.v,n),l=X(c.w,n);d^l&&(i.warn("Edge: ",c," leaves cluster ",n),i.warn("Decendants of XXX ",n,": ",g[n]),f[n].externalConnections=!0)}})):i.debug("Not a cluster ",n,g)}),e.edges().forEach(function(n){const r=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,c=n.w;if(i.warn("Fix XXX",f,"ids:",n.v,n.w,"Translating: ",f[n.v]," --- ",f[n.w]),f[n.v]&&f[n.w]&&f[n.v]===f[n.w]){i.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),i.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=E(n.v),c=E(n.w),e.removeEdge(n.v,n.w,n.name);const d=n.w+"---"+n.v;e.setNode(d,{domId:d,id:d,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const l=structuredClone(r),u=structuredClone(r);l.label="",l.arrowTypeEnd="none",u.label="",l.fromCluster=n.v,u.toCluster=n.v,e.setEdge(s,d,l,n.name+"-cyclic-special"),e.setEdge(d,c,u,n.name+"-cyclic-special")}else(f[n.v]||f[n.w])&&(i.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=E(n.v),c=E(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v&&(r.fromCluster=n.v),c!==n.w&&(r.toCluster=n.w),i.warn("Fix Replacing with XXX",s,c,n.name),e.setEdge(s,c,r,n.name))}),i.warn("Adjusted Graph",x(e)),p(e,0),i.trace(f)},p=(e,t)=>{if(i.warn("extractor - ",t,x(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),r=!1;for(const s of n){const c=e.children(s);r=r||c.length>0}if(!r){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(const s of n)if(i.debug("Extracting node",s,f,f[s]&&!f[s].externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!f[s])i.debug("Not a cluster",s,t);else if(!f[s].externalConnections&&e.children(s)&&e.children(s).length>0){i.warn("Cluster without external connections, without a parent and with children",s,t);let d=e.graph().rankdir==="TB"?"LR":"TB";f[s]&&f[s].clusterData&&f[s].clusterData.dir&&(d=f[s].clusterData.dir,i.warn("Fixing dir",f[s].clusterData.dir,d));const l=new G({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",x(e)),R(s,e,l,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:f[s].clusterData,labelText:f[s].labelText,graph:l}),i.warn("New graph after copy node: (",s,")",x(l)),i.debug("Old graph after copy",x(e))}else i.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!f[s].externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),i.debug(f);n=e.nodes(),i.warn("New list of nodes",n);for(const s of n){const c=e.node(s);i.warn(" Now next level",s,c),c.clusterNode&&p(c.graph,t+1)}},F=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const s=e.children(r),c=F(e,s);n=[...n,...c]}),n},st=e=>F(e,e.children()),rt=(e,t)=>{i.info("Creating subgraph rect for ",t.id,t);const n=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),r=n.insert("rect",":first-child"),s=N(S().flowchart.htmlLabels),c=n.insert("g").attr("class","cluster-label"),d=t.labelType==="markdown"?K(c,t.labelText,{style:t.labelStyle,useHtmlLabels:s}):c.node().appendChild(L(t.labelText,t.labelStyle,void 0,!0));let l=d.getBBox();if(N(S().flowchart.htmlLabels)){const a=d.children[0],o=T(d);l=a.getBoundingClientRect(),o.attr("width",l.width),o.attr("height",l.height)}const u=0*t.padding,h=u/2,w=t.width<=l.width+u?l.width+u:t.width;t.width<=l.width+u?t.diff=(l.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,i.trace("Data ",t,JSON.stringify(t)),r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-w/2).attr("y",t.y-t.height/2-h).attr("width",w).attr("height",t.height+u),s?c.attr("transform","translate("+(t.x-l.width/2)+", "+(t.y-t.height/2)+")"):c.attr("transform","translate("+t.x+", "+(t.y-t.height/2)+")");const v=r.node().getBBox();return t.width=v.width,t.height=v.height,t.intersect=function(a){return C(t,a)},n},at=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,c=s/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-c).attr("y",t.y-t.height/2-c).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(l){return C(t,l)},n},ct=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=n.insert("g").attr("class","cluster-label"),c=n.append("rect"),d=s.node().appendChild(L(t.labelText,t.labelStyle,void 0,!0));let l=d.getBBox();if(N(S().flowchart.htmlLabels)){const a=d.children[0],o=T(d);l=a.getBoundingClientRect(),o.attr("width",l.width),o.attr("height",l.height)}l=d.getBBox();const u=0*t.padding,h=u/2,w=t.width<=l.width+t.padding?l.width+t.padding:t.width;t.width<=l.width+t.padding?t.diff=(l.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,r.attr("class","outer").attr("x",t.x-w/2-h).attr("y",t.y-t.height/2-h).attr("width",w+u).attr("height",t.height+u),c.attr("class","inner").attr("x",t.x-w/2-h).attr("y",t.y-t.height/2-h+l.height-1).attr("width",w+u).attr("height",t.height+u-l.height-3),s.attr("transform","translate("+(t.x-l.width/2)+", "+(t.y-t.height/2-t.padding/3+(N(S().flowchart.htmlLabels)?5:3))+")");const v=r.node().getBBox();return t.height=v.height,t.intersect=function(a){return C(t,a)},n},ot=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,c=s/2;r.attr("class","divider").attr("x",t.x-t.width/2-c).attr("y",t.y-t.height/2).attr("width",t.width+s).attr("height",t.height+s);const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.diff=-t.padding/2,t.intersect=function(l){return C(t,l)},n},lt={rect:rt,roundedWithTitle:ct,noteGroup:at,divider:ot};let k={};const ft=(e,t)=>{i.trace("Inserting cluster");const n=t.shape||"rect";k[t.id]=lt[n](e,t)},dt=()=>{k={}},$=async(e,t,n,r,s)=>{i.info("Graph in recursive render: XXX",x(t),s);const c=t.graph().rankdir;i.trace("Dir in recursive render - dir:",c);const d=e.insert("g").attr("class","root");t.nodes()?i.info("Recursive render XXX",t.nodes()):i.info("No nodes found for",t),t.edges().length>0&&i.trace("Recursive edges",t.edge(t.edges()[0]));const l=d.insert("g").attr("class","clusters"),u=d.insert("g").attr("class","edgePaths"),h=d.insert("g").attr("class","edgeLabels"),w=d.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(a){const o=t.node(a);if(s!==void 0){const y=JSON.parse(JSON.stringify(s.clusterData));i.info("Setting data for cluster XXX (",a,") ",y,s),t.setNode(s.id,y),t.parent(a)||(i.trace("Setting parent",a,s.id),t.setParent(a,s.id,y))}if(i.info("(Insert) Node XXX"+a+": "+JSON.stringify(t.node(a))),o&&o.clusterNode){i.info("Cluster identified",a,o.width,t.node(a));const y=await $(w,o.graph,n,r,t.node(a)),B=y.elem;_(o,B),o.diff=y.diff||0,i.info("Node bounds (abc123)",a,o,o.width,o.x,o.y),H(B,o),i.warn("Recursive render complete ",B,o)}else t.children(a).length>0?(i.info("Cluster - the non recursive path XXX",a,o.id,o,t),i.info(b(o.id,t)),f[o.id]={id:b(o.id,t),node:o}):(i.info("Node - the non recursive path",a,o.id,o),await V(w,t.node(a),c))})),t.edges().forEach(function(a){const o=t.edge(a.v,a.w,a.name);i.info("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(a)),i.info("Edge "+a.v+" -> "+a.w+": ",a," ",JSON.stringify(t.edge(a))),i.info("Fix",f,"ids:",a.v,a.w,"Translateing: ",f[a.v],f[a.w]),U(h,o)}),t.edges().forEach(function(a){i.info("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(a))}),i.info("#############################################"),i.info("### Layout ###"),i.info("#############################################"),i.info(t),j(t),i.info("Graph after layout:",x(t));let v=0;return st(t).forEach(function(a){const o=t.node(a);i.info("Position "+a+": "+JSON.stringify(t.node(a))),i.info("Position "+a+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?D(o):t.children(a).length>0?(ft(l,o),f[o.id].node=o):D(o)}),t.edges().forEach(function(a){const o=t.edge(a);i.info("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(o),o);const y=W(u,a,o,f,n,t,r);Y(o,y)}),t.nodes().forEach(function(a){const o=t.node(a);i.info(a,o.type,o.diff),o.type==="group"&&(v=o.diff)}),{elem:d,diff:v}},xt=async(e,t,n,r,s)=>{M(e,n,r,s),q(),z(),dt(),et(),i.warn("Graph at first:",JSON.stringify(x(t))),it(t),i.warn("Graph after:",JSON.stringify(x(t))),await $(e,t,r,s)};export{xt as r};
import{at as v,ap as vt,aq as Ct,ar as Ot,as as At,aT as It,aU as Pt,ay as S,aB as D,aV as St,ax as Gt,aK as Nt,aY as Ht,aZ as Bt}from"./index-Hfn5l4aw.js";var mt=function(){var r=function(Y,u,g,x){for(g=g||{},x=Y.length;x--;g[Y[x]]=u);return g},n=[1,3],o=[1,6],m=[1,4],a=[1,5],c=[2,5],l=[1,12],h=[5,7,13,19,21,23,24,26,28,31,37,40,47],y=[7,13,19,21,23,24,26,28,31,37,40],k=[7,12,13,19,21,23,24,26,28,31,37,40],i=[7,13,47],b=[1,42],f=[1,41],_=[7,13,29,32,35,38,47],p=[1,55],d=[1,56],E=[1,57],H=[7,13,32,35,42,47],T={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(u,g,x,s,w,t,Q){var e=t.length-1;switch(w){case 2:return t[e];case 3:return t[e-1];case 4:return s.setDirection(t[e-3]),t[e-1];case 6:s.setOptions(t[e-1]),this.$=t[e];break;case 7:t[e-1]+=t[e],this.$=t[e-1];break;case 9:this.$=[];break;case 10:t[e-1].push(t[e]),this.$=t[e-1];break;case 11:this.$=t[e-1];break;case 16:this.$=t[e].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=t[e].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(t[e].substr(8)),this.$=t[e].substr(8);break;case 21:s.checkout(t[e]);break;case 22:s.branch(t[e]);break;case 23:s.branch(t[e-2],t[e]);break;case 24:s.cherryPick(t[e],"",void 0);break;case 25:s.cherryPick(t[e-2],"",void 0,t[e]);break;case 26:s.cherryPick(t[e-2],"",t[e]);break;case 27:s.cherryPick(t[e-4],"",t[e],t[e-2]);break;case 28:s.cherryPick(t[e-4],"",t[e-2],t[e]);break;case 29:s.cherryPick(t[e],"",t[e-2]);break;case 30:s.cherryPick(t[e],"","");break;case 31:s.cherryPick(t[e-2],"","");break;case 32:s.cherryPick(t[e-4],"","",t[e-2]);break;case 33:s.cherryPick(t[e-4],"","",t[e]);break;case 34:s.cherryPick(t[e-2],"",t[e-4],t[e]);break;case 35:s.cherryPick(t[e-2],"","",t[e]);break;case 36:s.merge(t[e],"","","");break;case 37:s.merge(t[e-2],t[e],"","");break;case 38:s.merge(t[e-2],"",t[e],"");break;case 39:s.merge(t[e-2],"","",t[e]);break;case 40:s.merge(t[e-4],t[e],"",t[e-2]);break;case 41:s.merge(t[e-4],"",t[e],t[e-2]);break;case 42:s.merge(t[e-4],"",t[e-2],t[e]);break;case 43:s.merge(t[e-4],t[e-2],t[e],"");break;case 44:s.merge(t[e-4],t[e-2],"",t[e]);break;case 45:s.merge(t[e-4],t[e],t[e-2],"");break;case 46:s.merge(t[e-6],t[e-4],t[e-2],t[e]);break;case 47:s.merge(t[e-6],t[e],t[e-4],t[e-2]);break;case 48:s.merge(t[e-6],t[e-4],t[e],t[e-2]);break;case 49:s.merge(t[e-6],t[e-2],t[e-4],t[e]);break;case 50:s.merge(t[e-6],t[e],t[e-2],t[e-4]);break;case 51:s.merge(t[e-6],t[e-2],t[e],t[e-4]);break;case 52:s.commit(t[e]);break;case 53:s.commit("","",s.commitType.NORMAL,t[e]);break;case 54:s.commit("","",t[e],"");break;case 55:s.commit("","",t[e],t[e-2]);break;case 56:s.commit("","",t[e-2],t[e]);break;case 57:s.commit("",t[e],s.commitType.NORMAL,"");break;case 58:s.commit("",t[e-2],s.commitType.NORMAL,t[e]);break;case 59:s.commit("",t[e],s.commitType.NORMAL,t[e-2]);break;case 60:s.commit("",t[e-2],t[e],"");break;case 61:s.commit("",t[e],t[e-2],"");break;case 62:s.commit("",t[e-4],t[e-2],t[e]);break;case 63:s.commit("",t[e-4],t[e],t[e-2]);break;case 64:s.commit("",t[e-2],t[e-4],t[e]);break;case 65:s.commit("",t[e],t[e-4],t[e-2]);break;case 66:s.commit("",t[e],t[e-2],t[e-4]);break;case 67:s.commit("",t[e-2],t[e],t[e-4]);break;case 68:s.commit(t[e],"",s.commitType.NORMAL,"");break;case 69:s.commit(t[e],"",s.commitType.NORMAL,t[e-2]);break;case 70:s.commit(t[e-2],"",s.commitType.NORMAL,t[e]);break;case 71:s.commit(t[e-2],"",t[e],"");break;case 72:s.commit(t[e],"",t[e-2],"");break;case 73:s.commit(t[e],t[e-2],s.commitType.NORMAL,"");break;case 74:s.commit(t[e-2],t[e],s.commitType.NORMAL,"");break;case 75:s.commit(t[e-4],"",t[e-2],t[e]);break;case 76:s.commit(t[e-4],"",t[e],t[e-2]);break;case 77:s.commit(t[e-2],"",t[e-4],t[e]);break;case 78:s.commit(t[e],"",t[e-4],t[e-2]);break;case 79:s.commit(t[e],"",t[e-2],t[e-4]);break;case 80:s.commit(t[e-2],"",t[e],t[e-4]);break;case 81:s.commit(t[e-4],t[e],t[e-2],"");break;case 82:s.commit(t[e-4],t[e-2],t[e],"");break;case 83:s.commit(t[e-2],t[e],t[e-4],"");break;case 84:s.commit(t[e],t[e-2],t[e-4],"");break;case 85:s.commit(t[e],t[e-4],t[e-2],"");break;case 86:s.commit(t[e-2],t[e-4],t[e],"");break;case 87:s.commit(t[e-4],t[e],s.commitType.NORMAL,t[e-2]);break;case 88:s.commit(t[e-4],t[e-2],s.commitType.NORMAL,t[e]);break;case 89:s.commit(t[e-2],t[e],s.commitType.NORMAL,t[e-4]);break;case 90:s.commit(t[e],t[e-2],s.commitType.NORMAL,t[e-4]);break;case 91:s.commit(t[e],t[e-4],s.commitType.NORMAL,t[e-2]);break;case 92:s.commit(t[e-2],t[e-4],s.commitType.NORMAL,t[e]);break;case 93:s.commit(t[e-6],t[e-4],t[e-2],t[e]);break;case 94:s.commit(t[e-6],t[e-4],t[e],t[e-2]);break;case 95:s.commit(t[e-6],t[e-2],t[e-4],t[e]);break;case 96:s.commit(t[e-6],t[e],t[e-4],t[e-2]);break;case 97:s.commit(t[e-6],t[e-2],t[e],t[e-4]);break;case 98:s.commit(t[e-6],t[e],t[e-2],t[e-4]);break;case 99:s.commit(t[e-4],t[e-6],t[e-2],t[e]);break;case 100:s.commit(t[e-4],t[e-6],t[e],t[e-2]);break;case 101:s.commit(t[e-2],t[e-6],t[e-4],t[e]);break;case 102:s.commit(t[e],t[e-6],t[e-4],t[e-2]);break;case 103:s.commit(t[e-2],t[e-6],t[e],t[e-4]);break;case 104:s.commit(t[e],t[e-6],t[e-2],t[e-4]);break;case 105:s.commit(t[e],t[e-4],t[e-2],t[e-6]);break;case 106:s.commit(t[e-2],t[e-4],t[e],t[e-6]);break;case 107:s.commit(t[e],t[e-2],t[e-4],t[e-6]);break;case 108:s.commit(t[e-2],t[e],t[e-4],t[e-6]);break;case 109:s.commit(t[e-4],t[e-2],t[e],t[e-6]);break;case 110:s.commit(t[e-4],t[e],t[e-2],t[e-6]);break;case 111:s.commit(t[e-2],t[e-4],t[e-6],t[e]);break;case 112:s.commit(t[e],t[e-4],t[e-6],t[e-2]);break;case 113:s.commit(t[e-2],t[e],t[e-6],t[e-4]);break;case 114:s.commit(t[e],t[e-2],t[e-6],t[e-4]);break;case 115:s.commit(t[e-4],t[e-2],t[e-6],t[e]);break;case 116:s.commit(t[e-4],t[e],t[e-6],t[e-2]);break;case 117:this.$="";break;case 118:this.$=t[e];break;case 119:this.$=s.commitType.NORMAL;break;case 120:this.$=s.commitType.REVERSE;break;case 121:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:o,13:m,47:a},{1:[3]},{3:7,4:2,5:n,7:o,13:m,47:a},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:l},r(h,[2,124]),r(h,[2,125]),r(h,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:l},{8:[1,15]},r(y,[2,9],{11:16,12:[1,17]}),r(k,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:l},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(k,[2,7]),{1:[2,3]},{7:[1,36]},r(y,[2,10]),{4:37,7:o,13:m,47:a},r(y,[2,12]),r(i,[2,13]),r(i,[2,14]),r(i,[2,15]),{20:[1,38]},{22:[1,39]},r(i,[2,18]),r(i,[2,19]),r(i,[2,20]),{27:40,33:b,46:f},r(i,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:b,46:f},{32:[1,50],35:[1,51]},{27:52,33:b,46:f},{1:[2,4]},r(y,[2,11]),r(i,[2,16]),r(i,[2,17]),r(i,[2,21]),r(_,[2,122]),r(_,[2,123]),r(i,[2,52]),{33:[1,53]},{39:54,43:p,44:d,45:E},{33:[1,58]},{33:[1,59]},r(i,[2,118]),r(i,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(i,[2,22],{29:[1,66]}),r(i,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(i,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(H,[2,119]),r(H,[2,120]),r(H,[2,121]),r(i,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(i,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:p,44:d,45:E},{33:[1,81]},r(i,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:p,44:d,45:E},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:p,44:d,45:E},{33:[1,95]},{33:[1,96]},{39:97,43:p,44:d,45:E},{33:[1,98]},r(i,[2,37],{35:[1,100],38:[1,99]}),r(i,[2,38],{32:[1,102],35:[1,101]}),r(i,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(i,[2,23]),r(i,[2,55],{32:[1,110],42:[1,111]}),r(i,[2,59],{38:[1,112],42:[1,113]}),r(i,[2,69],{32:[1,115],38:[1,114]}),r(i,[2,56],{32:[1,116],42:[1,117]}),r(i,[2,61],{35:[1,118],42:[1,119]}),r(i,[2,72],{32:[1,121],35:[1,120]}),r(i,[2,58],{38:[1,122],42:[1,123]}),r(i,[2,60],{35:[1,124],42:[1,125]}),r(i,[2,73],{35:[1,127],38:[1,126]}),r(i,[2,70],{32:[1,129],38:[1,128]}),r(i,[2,71],{32:[1,131],35:[1,130]}),r(i,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:p,44:d,45:E},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:p,44:d,45:E},r(i,[2,25],{35:[1,140]}),r(i,[2,26],{34:[1,141]}),r(i,[2,31],{34:[1,142]}),r(i,[2,29],{34:[1,143]}),r(i,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:p,44:d,45:E},{33:[1,148]},{39:149,43:p,44:d,45:E},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:p,44:d,45:E},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:p,44:d,45:E},{33:[1,162]},{39:163,43:p,44:d,45:E},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:p,44:d,45:E},{33:[1,168]},r(i,[2,43],{35:[1,169]}),r(i,[2,44],{38:[1,170]}),r(i,[2,42],{32:[1,171]}),r(i,[2,45],{35:[1,172]}),r(i,[2,40],{38:[1,173]}),r(i,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(i,[2,66],{42:[1,181]}),r(i,[2,79],{32:[1,182]}),r(i,[2,67],{42:[1,183]}),r(i,[2,90],{38:[1,184]}),r(i,[2,80],{32:[1,185]}),r(i,[2,89],{38:[1,186]}),r(i,[2,65],{42:[1,187]}),r(i,[2,78],{32:[1,188]}),r(i,[2,64],{42:[1,189]}),r(i,[2,84],{35:[1,190]}),r(i,[2,77],{32:[1,191]}),r(i,[2,83],{35:[1,192]}),r(i,[2,63],{42:[1,193]}),r(i,[2,91],{38:[1,194]}),r(i,[2,62],{42:[1,195]}),r(i,[2,85],{35:[1,196]}),r(i,[2,86],{35:[1,197]}),r(i,[2,92],{38:[1,198]}),r(i,[2,76],{32:[1,199]}),r(i,[2,87],{38:[1,200]}),r(i,[2,75],{32:[1,201]}),r(i,[2,81],{35:[1,202]}),r(i,[2,82],{35:[1,203]}),r(i,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:p,44:d,45:E},{33:[1,207]},{33:[1,208]},{39:209,43:p,44:d,45:E},{33:[1,210]},r(i,[2,27]),r(i,[2,32]),r(i,[2,28]),r(i,[2,33]),r(i,[2,34]),r(i,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:p,44:d,45:E},{33:[1,215]},{39:216,43:p,44:d,45:E},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:p,44:d,45:E},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:p,44:d,45:E},{33:[1,229]},{39:230,43:p,44:d,45:E},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:p,44:d,45:E},r(i,[2,46]),r(i,[2,48]),r(i,[2,47]),r(i,[2,49]),r(i,[2,51]),r(i,[2,50]),r(i,[2,107]),r(i,[2,108]),r(i,[2,105]),r(i,[2,106]),r(i,[2,110]),r(i,[2,109]),r(i,[2,114]),r(i,[2,113]),r(i,[2,112]),r(i,[2,111]),r(i,[2,116]),r(i,[2,115]),r(i,[2,104]),r(i,[2,103]),r(i,[2,102]),r(i,[2,101]),r(i,[2,99]),r(i,[2,100]),r(i,[2,98]),r(i,[2,97]),r(i,[2,96]),r(i,[2,95]),r(i,[2,93]),r(i,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(u,g){if(g.recoverable)this.trace(u);else{var x=new Error(u);throw x.hash=g,x}},parse:function(u){var g=this,x=[0],s=[],w=[null],t=[],Q=this.table,e="",rt=0,ft=0,wt=2,pt=1,Rt=t.slice.call(arguments,1),C=Object.create(this.lexer),j={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(j.yy[ct]=this.yy[ct]);C.setInput(u,j.yy),j.yy.lexer=C,j.yy.parser=this,typeof C.yylloc>"u"&&(C.yylloc={});var ot=C.yylloc;t.push(ot);var Lt=C.options&&C.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var q;return q=s.pop()||C.lex()||pt,typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=g.symbols_[q]||q),q}for(var P,F,V,lt,W={},it,z,bt,st;;){if(F=x[x.length-1],this.defaultActions[F]?V=this.defaultActions[F]:((P===null||typeof P>"u")&&(P=Mt()),V=Q[F]&&Q[F][P]),typeof V>"u"||!V.length||!V[0]){var ht="";st=[];for(it in Q[F])this.terminals_[it]&&it>wt&&st.push("'"+this.terminals_[it]+"'");C.showPosition?ht="Parse error on line "+(rt+1)+`:
`+C.showPosition()+`
Expecting `+st.join(", ")+", got '"+(this.terminals_[P]||P)+"'":ht="Parse error on line "+(rt+1)+": Unexpected "+(P==pt?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(ht,{text:C.match,token:this.terminals_[P]||P,line:C.yylineno,loc:ot,expected:st})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+P);switch(V[0]){case 1:x.push(P),w.push(C.yytext),t.push(C.yylloc),x.push(V[1]),P=null,ft=C.yyleng,e=C.yytext,rt=C.yylineno,ot=C.yylloc;break;case 2:if(z=this.productions_[V[1]][1],W.$=w[w.length-z],W._$={first_line:t[t.length-(z||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(z||1)].first_column,last_column:t[t.length-1].last_column},Lt&&(W._$.range=[t[t.length-(z||1)].range[0],t[t.length-1].range[1]]),lt=this.performAction.apply(W,[e,ft,rt,j.yy,V[1],w,t].concat(Rt)),typeof lt<"u")return lt;z&&(x=x.slice(0,-1*z*2),w=w.slice(0,-1*z),t=t.slice(0,-1*z)),x.push(this.productions_[V[1]][0]),w.push(W.$),t.push(W._$),bt=Q[x[x.length-2]][x[x.length-1]],x.push(bt);break;case 3:return!0}}return!0}},B=function(){var Y={EOF:1,parseError:function(g,x){if(this.yy.parser)this.yy.parser.parseError(g,x);else throw new Error(g)},setInput:function(u,g){return this.yy=g||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var g=u.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var g=u.length,x=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var w=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===s.length?this.yylloc.first_column:0)+s[s.length-x.length].length-x[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),g=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
`+g+"^"},test_match:function(u,g){var x,s,w;if(this.options.backtrack_lexer&&(w={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(w.yylloc.range=this.yylloc.range.slice(0))),s=u[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(u[0].length),this.matched+=u[0],x=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),x)return x;if(this._backtrack){for(var t in w)this[t]=w[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,g,x,s;this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),t=0;t<w.length;t++)if(x=this._input.match(this.rules[w[t]]),x&&(!g||x[0].length>g[0].length)){if(g=x,s=t,this.options.backtrack_lexer){if(u=this.test_match(x,w[t]),u!==!1)return u;if(this._backtrack){g=!1;continue}else return!1}else if(!this.options.flex)break}return g?(u=this.test_match(g,w[s]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var g=this.next();return g||this.lex()},begin:function(g){this.conditionStack.push(g)},popState:function(){var g=this.conditionStack.length-1;return g>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},pushState:function(g){this.begin(g)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(g,x,s,w){switch(s){case 0:return this.begin("acc_title"),19;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),21;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 13;case 8:break;case 9:break;case 10:return 5;case 11:return 40;case 12:return 32;case 13:return 38;case 14:return 42;case 15:return 43;case 16:return 44;case 17:return 45;case 18:return 35;case 19:return 28;case 20:return 29;case 21:return 37;case 22:return 31;case 23:return 34;case 24:return 26;case 25:return 9;case 26:return 9;case 27:return 8;case 28:return"CARET";case 29:this.begin("options");break;case 30:this.popState();break;case 31:return 12;case 32:return 36;case 33:this.begin("string");break;case 34:this.popState();break;case 35:return 33;case 36:return 30;case 37:return 46;case 38:return 7}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:parent:)/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},options:{rules:[30,31],inclusive:!1},string:{rules:[34,35],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,36,37,38,39],inclusive:!0}}};return Y}();T.lexer=B;function G(){this.yy={}}return G.prototype=T,T.Parser=G,new G}();mt.parser=mt;const Vt=mt;let at=v().gitGraph.mainBranchName,Dt=v().gitGraph.mainBranchOrder,M={},I=null,$={};$[at]={name:at,order:Dt};let L={};L[at]=I;let O=at,kt="LR",U=0;function ut(){return Bt({length:7})}function zt(r,n){const o=Object.create(null);return r.reduce((m,a)=>{const c=n(a);return o[c]||(o[c]=!0,m.push(a)),m},[])}const qt=function(r){kt=r};let xt={};const Yt=function(r){S.debug("options str",r),r=r&&r.trim(),r=r||"{}";try{xt=JSON.parse(r)}catch(n){S.error("error while parsing gitGraph options",n.message)}},jt=function(){return xt},Ft=function(r,n,o,m){S.debug("Entering commit:",r,n,o,m),n=D.sanitizeText(n,v()),r=D.sanitizeText(r,v()),m=D.sanitizeText(m,v());const a={id:n||U+"-"+ut(),message:r,seq:U++,type:o||J.NORMAL,tag:m||"",parents:I==null?[]:[I.id],branch:O};I=a,M[a.id]=a,L[O]=a.id,S.debug("in pushCommit "+a.id)},Kt=function(r,n){if(r=D.sanitizeText(r,v()),L[r]===void 0)L[r]=I!=null?I.id:null,$[r]={name:r,order:n?parseInt(n,10):null},yt(r),S.debug("in createBranch");else{let o=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+r+'")');throw o.hash={text:"branch "+r,token:"branch "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+r+'"']},o}},Ut=function(r,n,o,m){r=D.sanitizeText(r,v()),n=D.sanitizeText(n,v());const a=M[L[O]],c=M[L[r]];if(O===r){let h=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw h.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},h}else if(a===void 0||!a){let h=new Error('Incorrect usage of "merge". Current branch ('+O+")has no commits");throw h.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},h}else if(L[r]===void 0){let h=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw h.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+r]},h}else if(c===void 0||!c){let h=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw h.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},h}else if(a===c){let h=new Error('Incorrect usage of "merge". Both branches have same head');throw h.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},h}else if(n&&M[n]!==void 0){let h=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom Id");throw h.hash={text:"merge "+r+n+o+m,token:"merge "+r+n+o+m,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+r+" "+n+"_UNIQUE "+o+" "+m]},h}const l={id:n||U+"-"+ut(),message:"merged branch "+r+" into "+O,seq:U++,parents:[I==null?null:I.id,L[r]],branch:O,type:J.MERGE,customType:o,customId:!!n,tag:m||""};I=l,M[l.id]=l,L[O]=l.id,S.debug(L),S.debug("in mergeBranch")},Wt=function(r,n,o,m){if(S.debug("Entering cherryPick:",r,n,o),r=D.sanitizeText(r,v()),n=D.sanitizeText(n,v()),o=D.sanitizeText(o,v()),m=D.sanitizeText(m,v()),!r||M[r]===void 0){let l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},l}let a=M[r],c=a.branch;if(m&&!(Array.isArray(a.parents)&&a.parents.includes(m)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");if(a.type===J.MERGE&&!m)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||M[n]===void 0){if(c===O){let y=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw y.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},y}const l=M[L[O]];if(l===void 0||!l){let y=new Error('Incorrect usage of "cherry-pick". Current branch ('+O+")has no commits");throw y.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},y}const h={id:U+"-"+ut(),message:"cherry-picked "+a+" into "+O,seq:U++,parents:[I==null?null:I.id,a.id],branch:O,type:J.CHERRY_PICK,tag:o??`cherry-pick:${a.id}${a.type===J.MERGE?`|parent:${m}`:""}`};I=h,M[h.id]=h,L[O]=h.id,S.debug(L),S.debug("in cherryPick")}},yt=function(r){if(r=D.sanitizeText(r,v()),L[r]===void 0){let n=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+r+'")');throw n.hash={text:"checkout "+r,token:"checkout "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+r+'"']},n}else{O=r;const n=L[O];I=M[n]}};function gt(r,n,o){const m=r.indexOf(n);m===-1?r.push(o):r.splice(m,1,o)}function _t(r){const n=r.reduce((a,c)=>a.seq>c.seq?a:c,r[0]);let o="";r.forEach(function(a){a===n?o+=" *":o+=" |"});const m=[o,n.id,n.seq];for(let a in L)L[a]===n.id&&m.push(a);if(S.debug(m.join(" ")),n.parents&&n.parents.length==2){const a=M[n.parents[0]];gt(r,n,a),r.push(M[n.parents[1]])}else{if(n.parents.length==0)return;{const a=M[n.parents];gt(r,n,a)}}r=zt(r,a=>a.id),_t(r)}const Jt=function(){S.debug(M);const r=Et()[0];_t([r])},Qt=function(){M={},I=null;let r=v().gitGraph.mainBranchName,n=v().gitGraph.mainBranchOrder;L={},L[r]=null,$={},$[r]={name:r,order:n},O=r,U=0,St()},Xt=function(){return Object.values($).map((n,o)=>n.order!==null?n:{...n,order:parseFloat(`0.${o}`,10)}).sort((n,o)=>n.order-o.order).map(({name:n})=>({name:n}))},Zt=function(){return L},$t=function(){return M},Et=function(){const r=Object.keys(M).map(function(n){return M[n]});return r.forEach(function(n){S.debug(n.id)}),r.sort((n,o)=>n.seq-o.seq),r},te=function(){return O},ee=function(){return kt},re=function(){return I},J={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ie={getConfig:()=>v().gitGraph,setDirection:qt,setOptions:Yt,getOptions:jt,commit:Ft,branch:Kt,merge:Ut,cherryPick:Wt,checkout:yt,prettyPrint:Jt,clear:Qt,getBranchesAsObjArray:Xt,getBranches:Zt,getCommits:$t,getCommitsArray:Et,getCurrentBranch:te,getDirection:ee,getHead:re,setAccTitle:vt,getAccTitle:Ct,getAccDescription:Ot,setAccDescription:At,setDiagramTitle:It,getDiagramTitle:Pt,commitType:J};let X={};const N={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},K=8;let R={},tt={},nt=[],et=0,A="LR";const se=()=>{R={},tt={},X={},et=0,nt=[],A="LR"},Tt=r=>{const n=document.createElementNS("http://www.w3.org/2000/svg","text");let o=[];typeof r=="string"?o=r.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(r)?o=r:o=[];for(const m of o){const a=document.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),a.setAttribute("dy","1em"),a.setAttribute("x","0"),a.setAttribute("class","row"),a.textContent=m.trim(),n.appendChild(a)}return n},dt=(r,n,o)=>{const m=v().gitGraph,a=r.append("g").attr("class","commit-bullets"),c=r.append("g").attr("class","commit-labels");let l=0;A==="TB"&&(l=30),Object.keys(n).sort((k,i)=>n[k].seq-n[i].seq).forEach(k=>{const i=n[k],b=A==="TB"?l+10:R[i.branch].pos,f=A==="TB"?R[i.branch].pos:l+10;if(o){let _,p=i.customType!==void 0&&i.customType!==""?i.customType:i.type;switch(p){case N.NORMAL:_="commit-normal";break;case N.REVERSE:_="commit-reverse";break;case N.HIGHLIGHT:_="commit-highlight";break;case N.MERGE:_="commit-merge";break;case N.CHERRY_PICK:_="commit-cherry-pick";break;default:_="commit-normal"}if(p===N.HIGHLIGHT){const d=a.append("rect");d.attr("x",f-10),d.attr("y",b-10),d.attr("height",20),d.attr("width",20),d.attr("class",`commit ${i.id} commit-highlight${R[i.branch].index%K} ${_}-outer`),a.append("rect").attr("x",f-6).attr("y",b-6).attr("height",12).attr("width",12).attr("class",`commit ${i.id} commit${R[i.branch].index%K} ${_}-inner`)}else if(p===N.CHERRY_PICK)a.append("circle").attr("cx",f).attr("cy",b).attr("r",10).attr("class",`commit ${i.id} ${_}`),a.append("circle").attr("cx",f-3).attr("cy",b+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${i.id} ${_}`),a.append("circle").attr("cx",f+3).attr("cy",b+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${i.id} ${_}`),a.append("line").attr("x1",f+3).attr("y1",b+1).attr("x2",f).attr("y2",b-5).attr("stroke","#fff").attr("class",`commit ${i.id} ${_}`),a.append("line").attr("x1",f-3).attr("y1",b+1).attr("x2",f).attr("y2",b-5).attr("stroke","#fff").attr("class",`commit ${i.id} ${_}`);else{const d=a.append("circle");if(d.attr("cx",f),d.attr("cy",b),d.attr("r",i.type===N.MERGE?9:10),d.attr("class",`commit ${i.id} commit${R[i.branch].index%K}`),p===N.MERGE){const E=a.append("circle");E.attr("cx",f),E.attr("cy",b),E.attr("r",6),E.attr("class",`commit ${_} ${i.id} commit${R[i.branch].index%K}`)}p===N.REVERSE&&a.append("path").attr("d",`M ${f-5},${b-5}L${f+5},${b+5}M${f-5},${b+5}L${f+5},${b-5}`).attr("class",`commit ${_} ${i.id} commit${R[i.branch].index%K}`)}}if(A==="TB"?tt[i.id]={x:f,y:l+10}:tt[i.id]={x:l+10,y:b},o){if(i.type!==N.CHERRY_PICK&&(i.customId&&i.type===N.MERGE||i.type!==N.MERGE)&&m.showCommitLabel){const d=c.append("g"),E=d.insert("rect").attr("class","commit-label-bkg"),H=d.append("text").attr("x",l).attr("y",b+25).attr("class","commit-label").text(i.id);let T=H.node().getBBox();if(E.attr("x",l+10-T.width/2-2).attr("y",b+13.5).attr("width",T.width+2*2).attr("height",T.height+2*2),A==="TB"&&(E.attr("x",f-(T.width+4*4+5)).attr("y",b-12),H.attr("x",f-(T.width+4*4)).attr("y",b+T.height-12)),A!=="TB"&&H.attr("x",l+10-T.width/2),m.rotateCommitLabel)if(A==="TB")H.attr("transform","rotate(-45, "+f+", "+b+")"),E.attr("transform","rotate(-45, "+f+", "+b+")");else{let B=-7.5-(T.width+10)/25*9.5,G=10+T.width/25*8.5;d.attr("transform","translate("+B+", "+G+") rotate(-45, "+l+", "+b+")")}}if(i.tag){const d=c.insert("polygon"),E=c.append("circle"),H=c.append("text").attr("y",b-16).attr("class","tag-label").text(i.tag);let T=H.node().getBBox();H.attr("x",l+10-T.width/2);const B=T.height/2,G=b-19.2;d.attr("class","tag-label-bkg").attr("points",`
${l-T.width/2-4/2},${G+2}
${l-T.width/2-4/2},${G-2}
${l+10-T.width/2-4},${G-B-2}
${l+10+T.width/2+4},${G-B-2}
${l+10+T.width/2+4},${G+B+2}
${l+10-T.width/2-4},${G+B+2}`),E.attr("cx",l-T.width/2+4/2).attr("cy",G).attr("r",1.5).attr("class","tag-hole"),A==="TB"&&(d.attr("class","tag-label-bkg").attr("points",`
${f},${l+2}
${f},${l-2}
${f+10},${l-B-2}
${f+10+T.width+4},${l-B-2}
${f+10+T.width+4},${l+B+2}
${f+10},${l+B+2}`).attr("transform","translate(12,12) rotate(45, "+f+","+l+")"),E.attr("cx",f+4/2).attr("cy",l).attr("transform","translate(12,12) rotate(45, "+f+","+l+")"),H.attr("x",f+5).attr("y",l+3).attr("transform","translate(14,14) rotate(45, "+f+","+l+")"))}}l+=50,l>et&&(et=l)})},ae=(r,n,o,m,a)=>{const l=(A==="TB"?o.x<m.x:o.y<m.y)?n.branch:r.branch,h=k=>k.branch===l,y=k=>k.seq>r.seq&&k.seq<n.seq;return Object.values(a).some(k=>y(k)&&h(k))},Z=(r,n,o=0)=>{const m=r+Math.abs(r-n)/2;if(o>5)return m;if(nt.every(l=>Math.abs(l-m)>=10))return nt.push(m),m;const c=Math.abs(r-n);return Z(r,n-c/5,o+1)},ne=(r,n,o,m)=>{const a=tt[n.id],c=tt[o.id],l=ae(n,o,a,c,m);let h="",y="",k=0,i=0,b=R[o.branch].index,f;if(l){h="A 10 10, 0, 0, 0,",y="A 10 10, 0, 0, 1,",k=10,i=10;const _=a.y<c.y?Z(a.y,c.y):Z(c.y,a.y),p=a.x<c.x?Z(a.x,c.x):Z(c.x,a.x);A==="TB"?a.x<c.x?(b=R[o.branch].index,f=`M ${a.x} ${a.y} L ${p-k} ${a.y} ${y} ${p} ${a.y+i} L ${p} ${c.y-k} ${h} ${p+i} ${c.y} L ${c.x} ${c.y}`):(b=R[n.branch].index,f=`M ${a.x} ${a.y} L ${p+k} ${a.y} ${h} ${p} ${a.y+i} L ${p} ${c.y-k} ${y} ${p-i} ${c.y} L ${c.x} ${c.y}`):a.y<c.y?(b=R[o.branch].index,f=`M ${a.x} ${a.y} L ${a.x} ${_-k} ${h} ${a.x+i} ${_} L ${c.x-k} ${_} ${y} ${c.x} ${_+i} L ${c.x} ${c.y}`):(b=R[n.branch].index,f=`M ${a.x} ${a.y} L ${a.x} ${_+k} ${y} ${a.x+i} ${_} L ${c.x-k} ${_} ${h} ${c.x} ${_-i} L ${c.x} ${c.y}`)}else A==="TB"?(a.x<c.x&&(h="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",k=20,i=20,b=R[o.branch].index,f=`M ${a.x} ${a.y} L ${c.x-k} ${a.y} ${y} ${c.x} ${a.y+i} L ${c.x} ${c.y}`),a.x>c.x&&(h="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",k=20,i=20,b=R[n.branch].index,f=`M ${a.x} ${a.y} L ${a.x} ${c.y-k} ${y} ${a.x-i} ${c.y} L ${c.x} ${c.y}`),a.x===c.x&&(b=R[n.branch].index,f=`M ${a.x} ${a.y} L ${a.x+k} ${a.y} ${h} ${a.x+i} ${c.y+k} L ${c.x} ${c.y}`)):(a.y<c.y&&(h="A 20 20, 0, 0, 0,",k=20,i=20,b=R[o.branch].index,f=`M ${a.x} ${a.y} L ${a.x} ${c.y-k} ${h} ${a.x+i} ${c.y} L ${c.x} ${c.y}`),a.y>c.y&&(h="A 20 20, 0, 0, 0,",k=20,i=20,b=R[n.branch].index,f=`M ${a.x} ${a.y} L ${c.x-k} ${a.y} ${h} ${c.x} ${a.y-i} L ${c.x} ${c.y}`),a.y===c.y&&(b=R[n.branch].index,f=`M ${a.x} ${a.y} L ${a.x} ${c.y-k} ${h} ${a.x+i} ${c.y} L ${c.x} ${c.y}`));r.append("path").attr("d",f).attr("class","arrow arrow"+b%K)},ce=(r,n)=>{const o=r.append("g").attr("class","commit-arrows");Object.keys(n).forEach(m=>{const a=n[m];a.parents&&a.parents.length>0&&a.parents.forEach(c=>{ne(o,n[c],a,n)})})},oe=(r,n)=>{const o=v().gitGraph,m=r.append("g");n.forEach((a,c)=>{const l=c%K,h=R[a.name].pos,y=m.append("line");y.attr("x1",0),y.attr("y1",h),y.attr("x2",et),y.attr("y2",h),y.attr("class","branch branch"+l),A==="TB"&&(y.attr("y1",30),y.attr("x1",h),y.attr("y2",et),y.attr("x2",h)),nt.push(h);let k=a.name;const i=Tt(k),b=m.insert("rect"),_=m.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+l);_.node().appendChild(i);let p=i.getBBox();b.attr("class","branchLabelBkg label"+l).attr("rx",4).attr("ry",4).attr("x",-p.width-4-(o.rotateCommitLabel===!0?30:0)).attr("y",-p.height/2+8).attr("width",p.width+18).attr("height",p.height+4),_.attr("transform","translate("+(-p.width-14-(o.rotateCommitLabel===!0?30:0))+", "+(h-p.height/2-1)+")"),A==="TB"&&(b.attr("x",h-p.width/2-10).attr("y",0),_.attr("transform","translate("+(h-p.width/2-5)+", 0)")),A!=="TB"&&b.attr("transform","translate(-19, "+(h-p.height/2)+")")})},le=function(r,n,o,m){se();const a=v(),c=a.gitGraph;S.debug("in gitgraph renderer",r+`
`,"id:",n,o),X=m.db.getCommits();const l=m.db.getBranchesAsObjArray();A=m.db.getDirection();const h=Gt(`[id="${n}"]`);let y=0;l.forEach((k,i)=>{const b=Tt(k.name),f=h.append("g"),_=f.insert("g").attr("class","branchLabel"),p=_.insert("g").attr("class","label branch-label");p.node().appendChild(b);let d=b.getBBox();R[k.name]={pos:y,index:i},y+=50+(c.rotateCommitLabel?40:0)+(A==="TB"?d.width/2:0),p.remove(),_.remove(),f.remove()}),dt(h,X,!1),c.showBranches&&oe(h,l),ce(h,X),dt(h,X,!0),Nt.insertTitle(h,"gitTitleText",c.titleTopMargin,m.db.getDiagramTitle()),Ht(void 0,h,c.diagramPadding,c.useMaxWidth??a.useMaxWidth)},he={draw:le},me=r=>`
.commit-id,
.commit-msg,
.branch-label {
fill: lightgrey;
color: lightgrey;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
${[0,1,2,3,4,5,6,7].map(n=>`
.branch-label${n} { fill: ${r["gitBranchLabel"+n]}; }
.commit${n} { stroke: ${r["git"+n]}; fill: ${r["git"+n]}; }
.commit-highlight${n} { stroke: ${r["gitInv"+n]}; fill: ${r["gitInv"+n]}; }
.label${n} { fill: ${r["git"+n]}; }
.arrow${n} { stroke: ${r["git"+n]}; }
`).join(`
`)}
.branch {
stroke-width: 1;
stroke: ${r.lineColor};
stroke-dasharray: 2;
}
.commit-label { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelColor};}
.commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelBackground}; opacity: 0.5; }
.tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};}
.tag-label-bkg { fill: ${r.tagLabelBackground}; stroke: ${r.tagLabelBorder}; }
.tag-hole { fill: ${r.textColor}; }
.commit-merge {
stroke: ${r.primaryColor};
fill: ${r.primaryColor};
}
.commit-reverse {
stroke: ${r.primaryColor};
fill: ${r.primaryColor};
stroke-width: 3;
}
.commit-highlight-outer {
}
.commit-highlight-inner {
stroke: ${r.primaryColor};
fill: ${r.primaryColor};
}
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
.gitTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${r.textColor};
}
`,ue=me,pe={parser:Vt,db:ie,renderer:he,styles:ue};export{pe as diagram};
import{a_ as Be,a$ as Ze,b0 as qe,b1 as Xe,b2 as ye,b3 as nt,b4 as ke,at as xt,ap as Dn,aq as Mn,aT as _n,aU as Sn,as as Un,ar as Yn,b5 as Fn,aV as Ln,aD as En,ay as Xt,ax as Pt,az as An,aB as In,aK as Wn,b6 as Kt,b7 as On}from"./index-Hfn5l4aw.js";import{l as Hn,c as Nn,a as Vn,b as zn,t as Ue}from"./linear-ad2a9be7-2u7jZYmT.js";import{i as Pn}from"./init-cc95ec8e-Hi12RPRh.js";function Rn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Zn(t){return t}var Bt=1,te=2,ue=3,Rt=4,Ye=1e-6;function qn(t){return"translate("+t+",0)"}function Xn(t){return"translate(0,"+t+")"}function Gn(t){return e=>+t(e)}function jn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Qn(){return!this.__axis}function Ge(t,e){var n=[],r=null,i=null,s=6,a=6,y=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,k=t===Bt||t===Rt?-1:1,C=t===Rt||t===te?"x":"y",F=t===Bt||t===ue?qn:Xn;function w(x){var X=r??(e.ticks?e.ticks.apply(e,n):e.domain()),g=i??(e.tickFormat?e.tickFormat.apply(e,n):Zn),L=Math.max(s,0)+y,O=e.range(),W=+O[0]+S,B=+O[O.length-1]+S,Z=(e.bandwidth?jn:Gn)(e.copy(),S),Q=x.selection?x.selection():x,v=Q.selectAll(".domain").data([null]),A=Q.selectAll(".tick").data(X,e).order(),T=A.exit(),Y=A.enter().append("g").attr("class","tick"),D=A.select("line"),b=A.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(Y),D=D.merge(Y.append("line").attr("stroke","currentColor").attr(C+"2",k*s)),b=b.merge(Y.append("text").attr("fill","currentColor").attr(C,k*L).attr("dy",t===Bt?"0em":t===ue?"0.71em":"0.32em")),x!==Q&&(v=v.transition(x),A=A.transition(x),D=D.transition(x),b=b.transition(x),T=T.transition(x).attr("opacity",Ye).attr("transform",function(o){return isFinite(o=Z(o))?F(o+S):this.getAttribute("transform")}),Y.attr("opacity",Ye).attr("transform",function(o){var d=this.parentNode.__axis;return F((d&&isFinite(d=d(o))?d:Z(o))+S)})),T.remove(),v.attr("d",t===Rt||t===te?a?"M"+k*a+","+W+"H"+S+"V"+B+"H"+k*a:"M"+S+","+W+"V"+B:a?"M"+W+","+k*a+"V"+S+"H"+B+"V"+k*a:"M"+W+","+S+"H"+B),A.attr("opacity",1).attr("transform",function(o){return F(Z(o)+S)}),D.attr(C+"2",k*s),b.attr(C,k*L).text(g),Q.filter(Qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===Rt?"end":"middle"),Q.each(function(){this.__axis=Z})}return w.scale=function(x){return arguments.length?(e=x,w):e},w.ticks=function(){return n=Array.from(arguments),w},w.tickArguments=function(x){return arguments.length?(n=x==null?[]:Array.from(x),w):n.slice()},w.tickValues=function(x){return arguments.length?(r=x==null?null:Array.from(x),w):r&&r.slice()},w.tickFormat=function(x){return arguments.length?(i=x,w):i},w.tickSize=function(x){return arguments.length?(s=a=+x,w):s},w.tickSizeInner=function(x){return arguments.length?(s=+x,w):s},w.tickSizeOuter=function(x){return arguments.length?(a=+x,w):a},w.tickPadding=function(x){return arguments.length?(y=+x,w):y},w.offset=function(x){return arguments.length?(S=+x,w):S},w}function Jn(t){return Ge(Bt,t)}function $n(t){return Ge(ue,t)}const Kn=Math.PI/180,tr=180/Math.PI,Gt=18,je=.96422,Qe=1,Je=.82521,$e=4/29,wt=6/29,Ke=3*wt*wt,er=wt*wt*wt;function tn(t){if(t instanceof ot)return new ot(t.l,t.a,t.b,t.opacity);if(t instanceof ut)return en(t);t instanceof qe||(t=Fn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/Qe),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/je),a=ee((.0139322*e+.0971045*n+.7141733*r)/Je)),new ot(116*i-16,500*(s-i),200*(i-a),t.opacity)}function nr(t,e,n,r){return arguments.length===1?tn(t):new ot(t,e,n,r??1)}function ot(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Be(ot,nr,Ze(Xe,{brighter(t){return new ot(this.l+Gt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ot(this.l-Gt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=je*ne(e),t=Qe*ne(t),n=Je*ne(n),new qe(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>er?Math.pow(t,1/3):t/Ke+$e}function ne(t){return t>wt?t*t*t:Ke*(t-$e)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function rr(t){if(t instanceof ut)return new ut(t.h,t.c,t.l,t.opacity);if(t instanceof ot||(t=tn(t)),t.a===0&&t.b===0)return new ut(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*tr;return new ut(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function fe(t,e,n,r){return arguments.length===1?rr(t):new ut(t,e,n,r??1)}function ut(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function en(t){if(isNaN(t.h))return new ot(t.l,0,0,t.opacity);var e=t.h*Kn;return new ot(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Be(ut,fe,Ze(Xe,{brighter(t){return new ut(this.h,this.c,this.l+Gt*(t??1),this.opacity)},darker(t){return new ut(this.h,this.c,this.l-Gt*(t??1),this.opacity)},rgb(){return en(this).rgb()}}));function ir(t){return function(e,n){var r=t((e=fe(e)).h,(n=fe(n)).h),i=Kt(e.c,n.c),s=Kt(e.l,n.l),a=Kt(e.opacity,n.opacity);return function(y){return e.h=r(y),e.c=i(y),e.l=s(y),e.opacity=a(y),e+""}}}const sr=ir(On);function ar(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],s=t[r],a;return s<i&&(a=n,n=r,r=a,a=i,i=s,s=a),t[n]=e.floor(i),t[r]=e.ceil(s),t}const se=new Date,ae=new Date;function K(t,e,n,r){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),y=i.ceil(s);return s-a<y-s?a:y},i.offset=(s,a)=>(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,y)=>{const S=[];if(s=i.ceil(s),y=y==null?1:Math.floor(y),!(s<a)||!(y>0))return S;let k;do S.push(k=new Date(+s)),e(s,y),t(s);while(k<s&&s<a);return S},i.filter=s=>K(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,y)=>{if(a>=a)if(y<0)for(;++y<=0;)for(;e(a,-1),!s(a););else for(;--y>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Dt=K(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Dt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?K(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Dt);Dt.range;const ft=1e3,rt=ft*60,ht=rt*60,dt=ht*24,pe=dt*7,Fe=dt*30,oe=dt*365,gt=K(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getUTCSeconds());gt.range;const Et=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ft)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());Et.range;const or=K(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());or.range;const At=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ft-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getHours());At.range;const cr=K(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getUTCHours());cr.range;const yt=K(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/dt,t=>t.getDate()-1);yt.range;const Te=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>t.getUTCDate()-1);Te.range;const lr=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>Math.floor(t/dt));lr.range;function Tt(t){return K(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/pe)}const Ot=Tt(0),It=Tt(1),nn=Tt(2),rn=Tt(3),kt=Tt(4),sn=Tt(5),an=Tt(6);Ot.range;It.range;nn.range;rn.range;kt.range;sn.range;an.range;function vt(t){return K(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/pe)}const on=vt(0),jt=vt(1),ur=vt(2),fr=vt(3),Mt=vt(4),hr=vt(5),dr=vt(6);on.range;jt.range;ur.range;fr.range;Mt.range;hr.range;dr.range;const Wt=K(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Wt.range;const mr=K(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());mr.range;const mt=K(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());mt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:K(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});mt.range;const pt=K(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:K(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function gr(t,e,n,r,i,s){const a=[[gt,1,ft],[gt,5,5*ft],[gt,15,15*ft],[gt,30,30*ft],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,ht],[i,3,3*ht],[i,6,6*ht],[i,12,12*ht],[r,1,dt],[r,2,2*dt],[n,1,pe],[e,1,Fe],[e,3,3*Fe],[t,1,oe]];function y(k,C,F){const w=C<k;w&&([k,C]=[C,k]);const x=F&&typeof F.range=="function"?F:S(k,C,F),X=x?x.range(k,+C+1):[];return w?X.reverse():X}function S(k,C,F){const w=Math.abs(C-k)/F,x=zn(([,,L])=>L).right(a,w);if(x===a.length)return t.every(Ue(k/oe,C/oe,F));if(x===0)return Dt.every(Math.max(Ue(k,C,F),1));const[X,g]=a[w/a[x-1][2]<a[x][2]/w?x-1:x];return X.every(g)}return[y,S]}const[yr,kr]=gr(mt,Wt,Ot,yt,At,Et);function ce(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function le(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Yt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function pr(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,a=t.shortDays,y=t.months,S=t.shortMonths,k=Ft(i),C=Lt(i),F=Ft(s),w=Lt(s),x=Ft(a),X=Lt(a),g=Ft(y),L=Lt(y),O=Ft(S),W=Lt(S),B={a:c,A:q,b:f,B:h,c:null,d:Oe,e:Oe,f:zr,g:Jr,G:Kr,H:Hr,I:Nr,j:Vr,L:cn,m:Pr,M:Rr,p:U,q:G,Q:Ve,s:ze,S:Br,u:Zr,U:qr,V:Xr,w:Gr,W:jr,x:null,X:null,y:Qr,Y:$r,Z:ti,"%":Ne},Z={a:H,A:V,b:I,B:z,c:null,d:He,e:He,f:ii,g:mi,G:yi,H:ei,I:ni,j:ri,L:un,m:si,M:ai,p:st,q:it,Q:Ve,s:ze,S:oi,u:ci,U:li,V:ui,w:fi,W:hi,x:null,X:null,y:di,Y:gi,Z:ki,"%":Ne},Q={a:D,A:b,b:o,B:d,c:m,d:Ie,e:Ie,f:Ar,g:Ae,G:Ee,H:We,I:We,j:Yr,L:Er,m:Ur,M:Fr,p:Y,q:Sr,Q:Wr,s:Or,S:Lr,u:wr,U:Cr,V:Dr,w:xr,W:Mr,x:u,X:_,y:Ae,Y:Ee,Z:_r,"%":Ir};B.x=v(n,B),B.X=v(r,B),B.c=v(e,B),Z.x=v(n,Z),Z.X=v(r,Z),Z.c=v(e,Z);function v(p,E){return function(M){var l=[],R=-1,N=0,j=p.length,J,et,Ut;for(M instanceof Date||(M=new Date(+M));++R<j;)p.charCodeAt(R)===37&&(l.push(p.slice(N,R)),(et=Le[J=p.charAt(++R)])!=null?J=p.charAt(++R):et=J==="e"?" ":"0",(Ut=E[J])&&(J=Ut(M,et)),l.push(J),N=R+1);return l.push(p.slice(N,R)),l.join("")}}function A(p,E){return function(M){var l=Yt(1900,void 0,1),R=T(l,p,M+="",0),N,j;if(R!=M.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if(E&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(N=le(Yt(l.y,0,1)),j=N.getUTCDay(),N=j>4||j===0?jt.ceil(N):jt(N),N=Te.offset(N,(l.V-1)*7),l.y=N.getUTCFullYear(),l.m=N.getUTCMonth(),l.d=N.getUTCDate()+(l.w+6)%7):(N=ce(Yt(l.y,0,1)),j=N.getDay(),N=j>4||j===0?It.ceil(N):It(N),N=yt.offset(N,(l.V-1)*7),l.y=N.getFullYear(),l.m=N.getMonth(),l.d=N.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),j="Z"in l?le(Yt(l.y,0,1)).getUTCDay():ce(Yt(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(j+5)%7:l.w+l.U*7-(j+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function T(p,E,M,l){for(var R=0,N=E.length,j=M.length,J,et;R<N;){if(l>=j)return-1;if(J=E.charCodeAt(R++),J===37){if(J=E.charAt(R++),et=Q[J in Le?E.charAt(R++):J],!et||(l=et(p,M,l))<0)return-1}else if(J!=M.charCodeAt(l++))return-1}return l}function Y(p,E,M){var l=k.exec(E.slice(M));return l?(p.p=C.get(l[0].toLowerCase()),M+l[0].length):-1}function D(p,E,M){var l=x.exec(E.slice(M));return l?(p.w=X.get(l[0].toLowerCase()),M+l[0].length):-1}function b(p,E,M){var l=F.exec(E.slice(M));return l?(p.w=w.get(l[0].toLowerCase()),M+l[0].length):-1}function o(p,E,M){var l=O.exec(E.slice(M));return l?(p.m=W.get(l[0].toLowerCase()),M+l[0].length):-1}function d(p,E,M){var l=g.exec(E.slice(M));return l?(p.m=L.get(l[0].toLowerCase()),M+l[0].length):-1}function m(p,E,M){return T(p,e,E,M)}function u(p,E,M){return T(p,n,E,M)}function _(p,E,M){return T(p,r,E,M)}function c(p){return a[p.getDay()]}function q(p){return s[p.getDay()]}function f(p){return S[p.getMonth()]}function h(p){return y[p.getMonth()]}function U(p){return i[+(p.getHours()>=12)]}function G(p){return 1+~~(p.getMonth()/3)}function H(p){return a[p.getUTCDay()]}function V(p){return s[p.getUTCDay()]}function I(p){return S[p.getUTCMonth()]}function z(p){return y[p.getUTCMonth()]}function st(p){return i[+(p.getUTCHours()>=12)]}function it(p){return 1+~~(p.getUTCMonth()/3)}return{format:function(p){var E=v(p+="",B);return E.toString=function(){return p},E},parse:function(p){var E=A(p+="",!1);return E.toString=function(){return p},E},utcFormat:function(p){var E=v(p+="",Z);return E.toString=function(){return p},E},utcParse:function(p){var E=A(p+="",!0);return E.toString=function(){return p},E}}}var Le={"-":"",_:" ",0:"0"},tt=/^\s*\d+/,Tr=/^%/,vr=/[\\^$*+?|[\]().{}]/g;function P(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function br(t){return t.replace(vr,"\\$&")}function Ft(t){return new RegExp("^(?:"+t.map(br).join("|")+")","i")}function Lt(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function xr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Dr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Mr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=tt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ae(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _r(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Sr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Ur(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ie(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function We(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=tt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ir(t,e,n){var r=Tr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Wr(t,e,n){var r=tt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=tt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Oe(t,e){return P(t.getDate(),e,2)}function Hr(t,e){return P(t.getHours(),e,2)}function Nr(t,e){return P(t.getHours()%12||12,e,2)}function Vr(t,e){return P(1+yt.count(mt(t),t),e,3)}function cn(t,e){return P(t.getMilliseconds(),e,3)}function zr(t,e){return cn(t,e)+"000"}function Pr(t,e){return P(t.getMonth()+1,e,2)}function Rr(t,e){return P(t.getMinutes(),e,2)}function Br(t,e){return P(t.getSeconds(),e,2)}function Zr(t){var e=t.getDay();return e===0?7:e}function qr(t,e){return P(Ot.count(mt(t)-1,t),e,2)}function ln(t){var e=t.getDay();return e>=4||e===0?kt(t):kt.ceil(t)}function Xr(t,e){return t=ln(t),P(kt.count(mt(t),t)+(mt(t).getDay()===4),e,2)}function Gr(t){return t.getDay()}function jr(t,e){return P(It.count(mt(t)-1,t),e,2)}function Qr(t,e){return P(t.getFullYear()%100,e,2)}function Jr(t,e){return t=ln(t),P(t.getFullYear()%100,e,2)}function $r(t,e){return P(t.getFullYear()%1e4,e,4)}function Kr(t,e){var n=t.getDay();return t=n>=4||n===0?kt(t):kt.ceil(t),P(t.getFullYear()%1e4,e,4)}function ti(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+P(e/60|0,"0",2)+P(e%60,"0",2)}function He(t,e){return P(t.getUTCDate(),e,2)}function ei(t,e){return P(t.getUTCHours(),e,2)}function ni(t,e){return P(t.getUTCHours()%12||12,e,2)}function ri(t,e){return P(1+Te.count(pt(t),t),e,3)}function un(t,e){return P(t.getUTCMilliseconds(),e,3)}function ii(t,e){return un(t,e)+"000"}function si(t,e){return P(t.getUTCMonth()+1,e,2)}function ai(t,e){return P(t.getUTCMinutes(),e,2)}function oi(t,e){return P(t.getUTCSeconds(),e,2)}function ci(t){var e=t.getUTCDay();return e===0?7:e}function li(t,e){return P(on.count(pt(t)-1,t),e,2)}function fn(t){var e=t.getUTCDay();return e>=4||e===0?Mt(t):Mt.ceil(t)}function ui(t,e){return t=fn(t),P(Mt.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function fi(t){return t.getUTCDay()}function hi(t,e){return P(jt.count(pt(t)-1,t),e,2)}function di(t,e){return P(t.getUTCFullYear()%100,e,2)}function mi(t,e){return t=fn(t),P(t.getUTCFullYear()%100,e,2)}function gi(t,e){return P(t.getUTCFullYear()%1e4,e,4)}function yi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Mt(t):Mt.ceil(t),P(t.getUTCFullYear()%1e4,e,4)}function ki(){return"+0000"}function Ne(){return"%"}function Ve(t){return+t}function ze(t){return Math.floor(+t/1e3)}var bt,Qt;pi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function pi(t){return bt=pr(t),Qt=bt.format,bt.parse,bt.utcFormat,bt.utcParse,bt}function Ti(t){return new Date(t)}function vi(t){return t instanceof Date?+t:+new Date(+t)}function hn(t,e,n,r,i,s,a,y,S,k){var C=Nn(),F=C.invert,w=C.domain,x=k(".%L"),X=k(":%S"),g=k("%I:%M"),L=k("%I %p"),O=k("%a %d"),W=k("%b %d"),B=k("%B"),Z=k("%Y");function Q(v){return(S(v)<v?x:y(v)<v?X:a(v)<v?g:s(v)<v?L:r(v)<v?i(v)<v?O:W:n(v)<v?B:Z)(v)}return C.invert=function(v){return new Date(F(v))},C.domain=function(v){return arguments.length?w(Array.from(v,vi)):w().map(Ti)},C.ticks=function(v){var A=w();return t(A[0],A[A.length-1],v??10)},C.tickFormat=function(v,A){return A==null?Q:k(A)},C.nice=function(v){var A=w();return(!v||typeof v.range!="function")&&(v=e(A[0],A[A.length-1],v??10)),v?w(ar(A,v)):C},C.copy=function(){return Vn(C,hn(t,e,n,r,i,s,a,y,S,k))},C}function bi(){return Pn.apply(hn(yr,kr,mt,Wt,Ot,yt,At,Et,gt,Qt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var he=function(){var t=function(b,o,d,m){for(d=d||{},m=b.length;m--;d[b[m]]=o);return d},e=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],n=[1,25],r=[1,26],i=[1,27],s=[1,28],a=[1,29],y=[1,30],S=[1,31],k=[1,9],C=[1,10],F=[1,11],w=[1,12],x=[1,13],X=[1,14],g=[1,15],L=[1,16],O=[1,18],W=[1,19],B=[1,20],Z=[1,21],Q=[1,22],v=[1,24],A=[1,32],T={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(o,d,m,u,_,c,q){var f=c.length-1;switch(_){case 1:return c[f-1];case 2:this.$=[];break;case 3:c[f-1].push(c[f]),this.$=c[f-1];break;case 4:case 5:this.$=c[f];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setDateFormat(c[f].substr(11)),this.$=c[f].substr(11);break;case 16:u.enableInclusiveEndDates(),this.$=c[f].substr(18);break;case 17:u.TopAxis(),this.$=c[f].substr(8);break;case 18:u.setAxisFormat(c[f].substr(11)),this.$=c[f].substr(11);break;case 19:u.setTickInterval(c[f].substr(13)),this.$=c[f].substr(13);break;case 20:u.setExcludes(c[f].substr(9)),this.$=c[f].substr(9);break;case 21:u.setIncludes(c[f].substr(9)),this.$=c[f].substr(9);break;case 22:u.setTodayMarker(c[f].substr(12)),this.$=c[f].substr(12);break;case 24:u.setDiagramTitle(c[f].substr(6)),this.$=c[f].substr(6);break;case 25:this.$=c[f].trim(),u.setAccTitle(this.$);break;case 26:case 27:this.$=c[f].trim(),u.setAccDescription(this.$);break;case 28:u.addSection(c[f].substr(8)),this.$=c[f].substr(8);break;case 30:u.addTask(c[f-1],c[f]),this.$="task";break;case 31:this.$=c[f-1],u.setClickEvent(c[f-1],c[f],null);break;case 32:this.$=c[f-2],u.setClickEvent(c[f-2],c[f-1],c[f]);break;case 33:this.$=c[f-2],u.setClickEvent(c[f-2],c[f-1],null),u.setLink(c[f-2],c[f]);break;case 34:this.$=c[f-3],u.setClickEvent(c[f-3],c[f-2],c[f-1]),u.setLink(c[f-3],c[f]);break;case 35:this.$=c[f-2],u.setClickEvent(c[f-2],c[f],null),u.setLink(c[f-2],c[f-1]);break;case 36:this.$=c[f-3],u.setClickEvent(c[f-3],c[f-1],c[f]),u.setLink(c[f-3],c[f-2]);break;case 37:this.$=c[f-1],u.setLink(c[f-1],c[f]);break;case 38:case 44:this.$=c[f-1]+" "+c[f];break;case 39:case 40:case 42:this.$=c[f-2]+" "+c[f-1]+" "+c[f];break;case 41:case 43:this.$=c[f-3]+" "+c[f-2]+" "+c[f-1]+" "+c[f];break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:y,18:S,19:k,20:C,21:F,22:w,23:x,24:X,25:g,26:L,27:O,28:W,30:B,32:Z,33:Q,34:23,35:v,37:A},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:n,13:r,14:i,15:s,16:a,17:y,18:S,19:k,20:C,21:F,22:w,23:x,24:X,25:g,26:L,27:O,28:W,30:B,32:Z,33:Q,34:23,35:v,37:A},t(e,[2,5]),t(e,[2,6]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),{29:[1,34]},{31:[1,35]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),{36:[1,36]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),{38:[1,37],40:[1,38]},t(e,[2,4]),t(e,[2,25]),t(e,[2,26]),t(e,[2,30]),t(e,[2,31],{39:[1,39],40:[1,40]}),t(e,[2,37],{38:[1,41]}),t(e,[2,32],{40:[1,42]}),t(e,[2,33]),t(e,[2,35],{39:[1,43]}),t(e,[2,34]),t(e,[2,36])],defaultActions:{},parseError:function(o,d){if(d.recoverable)this.trace(o);else{var m=new Error(o);throw m.hash=d,m}},parse:function(o){var d=this,m=[0],u=[],_=[null],c=[],q=this.table,f="",h=0,U=0,G=2,H=1,V=c.slice.call(arguments,1),I=Object.create(this.lexer),z={yy:{}};for(var st in this.yy)Object.prototype.hasOwnProperty.call(this.yy,st)&&(z.yy[st]=this.yy[st]);I.setInput(o,z.yy),z.yy.lexer=I,z.yy.parser=this,typeof I.yylloc>"u"&&(I.yylloc={});var it=I.yylloc;c.push(it);var p=I.options&&I.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function E(){var ct;return ct=u.pop()||I.lex()||H,typeof ct!="number"&&(ct instanceof Array&&(u=ct,ct=u.pop()),ct=d.symbols_[ct]||ct),ct}for(var M,l,R,N,j={},J,et,Ut,zt;;){if(l=m[m.length-1],this.defaultActions[l]?R=this.defaultActions[l]:((M===null||typeof M>"u")&&(M=E()),R=q[l]&&q[l][M]),typeof R>"u"||!R.length||!R[0]){var $t="";zt=[];for(J in q[l])this.terminals_[J]&&J>G&&zt.push("'"+this.terminals_[J]+"'");I.showPosition?$t="Parse error on line "+(h+1)+`:
`+I.showPosition()+`
Expecting `+zt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":$t="Parse error on line "+(h+1)+": Unexpected "+(M==H?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError($t,{text:I.match,token:this.terminals_[M]||M,line:I.yylineno,loc:it,expected:zt})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+l+", token: "+M);switch(R[0]){case 1:m.push(M),_.push(I.yytext),c.push(I.yylloc),m.push(R[1]),M=null,U=I.yyleng,f=I.yytext,h=I.yylineno,it=I.yylloc;break;case 2:if(et=this.productions_[R[1]][1],j.$=_[_.length-et],j._$={first_line:c[c.length-(et||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(et||1)].first_column,last_column:c[c.length-1].last_column},p&&(j._$.range=[c[c.length-(et||1)].range[0],c[c.length-1].range[1]]),N=this.performAction.apply(j,[f,U,h,z.yy,R[1],_,c].concat(V)),typeof N<"u")return N;et&&(m=m.slice(0,-1*et*2),_=_.slice(0,-1*et),c=c.slice(0,-1*et)),m.push(this.productions_[R[1]][0]),_.push(j.$),c.push(j._$),Ut=q[m[m.length-2]][m[m.length-1]],m.push(Ut);break;case 3:return!0}}return!0}},Y=function(){var b={EOF:1,parseError:function(d,m){if(this.yy.parser)this.yy.parser.parseError(d,m);else throw new Error(d)},setInput:function(o,d){return this.yy=d||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var d=o.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var d=o.length,m=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),d=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
`+d+"^"},test_match:function(o,d){var m,u,_;if(this.options.backtrack_lexer&&(_={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_.yylloc.range=this.yylloc.range.slice(0))),u=o[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],m=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var c in _)this[c]=_[c];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,d,m,u;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),c=0;c<_.length;c++)if(m=this._input.match(this.rules[_[c]]),m&&(!d||m[0].length>d[0].length)){if(d=m,u=c,this.options.backtrack_lexer){if(o=this.test_match(m,_[c]),o!==!1)return o;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(o=this.test_match(d,_[u]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var d=this.next();return d||this.lex()},begin:function(d){this.conditionStack.push(d)},popState:function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},pushState:function(d){this.begin(d)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(d,m,u,_){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:break;case 15:this.begin("href");break;case 16:this.popState();break;case 17:return 40;case 18:this.begin("callbackname");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callbackargs");break;case 21:return 38;case 22:this.popState();break;case 23:return 39;case 24:this.begin("click");break;case 25:this.popState();break;case 26:return 37;case 27:return 4;case 28:return 19;case 29:return 20;case 30:return 21;case 31:return 22;case 32:return 23;case 33:return 25;case 34:return 24;case 35:return 26;case 36:return 12;case 37:return 13;case 38:return 14;case 39:return 15;case 40:return 16;case 41:return 17;case 42:return 18;case 43:return"date";case 44:return 27;case 45:return"accDescription";case 46:return 33;case 47:return 35;case 48:return 36;case 49:return":";case 50:return 6;case 51:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[22,23],inclusive:!1},callbackname:{rules:[19,20,21],inclusive:!1},href:{rules:[16,17],inclusive:!1},click:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,18,24,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}};return b}();T.lexer=Y;function D(){this.yy={}}return D.prototype=T,T.Parser=D,new D}();he.parser=he;const xi=he;var dn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ye,function(){var n="day";return function(r,i,s){var a=function(k){return k.add(4-k.isoWeekday(),n)},y=i.prototype;y.isoWeekYear=function(){return a(this).year()},y.isoWeek=function(k){if(!this.$utils().u(k))return this.add(7*(k-this.isoWeek()),n);var C,F,w,x,X=a(this),g=(C=this.isoWeekYear(),F=this.$u,w=(F?s.utc:s)().year(C).startOf("year"),x=4-w.isoWeekday(),w.isoWeekday()>4&&(x+=7),w.add(x,n));return X.diff(g,"week")+1},y.isoWeekday=function(k){return this.$utils().u(k)?this.day()||7:this.day(this.day()%7?k:k-7)};var S=y.startOf;y.startOf=function(k,C){var F=this.$utils(),w=!!F.u(C)||C;return F.p(k)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(k,C)}}})})(dn);var wi=dn.exports;const Ci=ke(wi);var mn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ye,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,y={},S=function(g){return(g=+g)+(g>68?1900:2e3)},k=function(g){return function(L){this[g]=+L}},C=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(L){if(!L||L==="Z")return 0;var O=L.match(/([+-]|\d\d)/g),W=60*O[1]+(+O[2]||0);return W===0?0:O[0]==="+"?-W:W}(g)}],F=function(g){var L=y[g];return L&&(L.indexOf?L:L.s.concat(L.f))},w=function(g,L){var O,W=y.meridiem;if(W){for(var B=1;B<=24;B+=1)if(g.indexOf(W(B,0,L))>-1){O=B>12;break}}else O=g===(L?"pm":"PM");return O},x={A:[a,function(g){this.afternoon=w(g,!1)}],a:[a,function(g){this.afternoon=w(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[i,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[s,k("seconds")],ss:[s,k("seconds")],m:[s,k("minutes")],mm:[s,k("minutes")],H:[s,k("hours")],h:[s,k("hours")],HH:[s,k("hours")],hh:[s,k("hours")],D:[s,k("day")],DD:[i,k("day")],Do:[a,function(g){var L=y.ordinal,O=g.match(/\d+/);if(this.day=O[0],L)for(var W=1;W<=31;W+=1)L(W).replace(/\[|\]/g,"")===g&&(this.day=W)}],M:[s,k("month")],MM:[i,k("month")],MMM:[a,function(g){var L=F("months"),O=(F("monthsShort")||L.map(function(W){return W.slice(0,3)})).indexOf(g)+1;if(O<1)throw new Error;this.month=O%12||O}],MMMM:[a,function(g){var L=F("months").indexOf(g)+1;if(L<1)throw new Error;this.month=L%12||L}],Y:[/[+-]?\d+/,k("year")],YY:[i,function(g){this.year=S(g)}],YYYY:[/\d{4}/,k("year")],Z:C,ZZ:C};function X(g){var L,O;L=g,O=y&&y.formats;for(var W=(g=L.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Y,D,b){var o=b&&b.toUpperCase();return D||O[b]||n[b]||O[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(d,m,u){return m||u.slice(1)})})).match(r),B=W.length,Z=0;Z<B;Z+=1){var Q=W[Z],v=x[Q],A=v&&v[0],T=v&&v[1];W[Z]=T?{regex:A,parser:T}:Q.replace(/^\[|\]$/g,"")}return function(Y){for(var D={},b=0,o=0;b<B;b+=1){var d=W[b];if(typeof d=="string")o+=d.length;else{var m=d.regex,u=d.parser,_=Y.slice(o),c=m.exec(_)[0];u.call(D,c),Y=Y.replace(c,"")}}return function(q){var f=q.afternoon;if(f!==void 0){var h=q.hours;f?h<12&&(q.hours+=12):h===12&&(q.hours=0),delete q.afternoon}}(D),D}}return function(g,L,O){O.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(S=g.parseTwoDigitYear);var W=L.prototype,B=W.parse;W.parse=function(Z){var Q=Z.date,v=Z.utc,A=Z.args;this.$u=v;var T=A[1];if(typeof T=="string"){var Y=A[2]===!0,D=A[3]===!0,b=Y||D,o=A[2];D&&(o=A[2]),y=this.$locale(),!Y&&o&&(y=O.Ls[o]),this.$d=function(_,c,q){try{if(["x","X"].indexOf(c)>-1)return new Date((c==="X"?1e3:1)*_);var f=X(c)(_),h=f.year,U=f.month,G=f.day,H=f.hours,V=f.minutes,I=f.seconds,z=f.milliseconds,st=f.zone,it=new Date,p=G||(h||U?1:it.getDate()),E=h||it.getFullYear(),M=0;h&&!U||(M=U>0?U-1:it.getMonth());var l=H||0,R=V||0,N=I||0,j=z||0;return st?new Date(Date.UTC(E,M,p,l,R,N,j+60*st.offset*1e3)):q?new Date(Date.UTC(E,M,p,l,R,N,j)):new Date(E,M,p,l,R,N,j)}catch{return new Date("")}}(Q,T,v),this.init(),o&&o!==!0&&(this.$L=this.locale(o).$L),b&&Q!=this.format(T)&&(this.$d=new Date("")),y={}}else if(T instanceof Array)for(var d=T.length,m=1;m<=d;m+=1){A[1]=T[m-1];var u=O.apply(this,A);if(u.isValid()){this.$d=u.$d,this.$L=u.$L,this.init();break}m===d&&(this.$d=new Date(""))}else B.call(this,Z)}}})})(mn);var Di=mn.exports;const Mi=ke(Di);var gn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ye,function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(a){var y=this,S=this.$locale();if(!this.isValid())return s.bind(this)(a);var k=this.$utils(),C=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(F){switch(F){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return S.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return S.ordinal(y.week(),"W");case"w":case"ww":return k.s(y.week(),F==="w"?1:2,"0");case"W":case"WW":return k.s(y.isoWeek(),F==="W"?1:2,"0");case"k":case"kk":return k.s(String(y.$H===0?24:y.$H),F==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return F}});return s.bind(this)(C)}}})})(gn);var _i=gn.exports;const Si=ke(_i);nt.extend(Ci);nt.extend(Mi);nt.extend(Si);let at="",ve="",be,xe="",Ht=[],Nt=[],we={},Ce=[],Jt=[],_t="",De="";const yn=["active","done","crit","milestone"];let Me=[],Vt=!1,_e=!1,Se="sunday",de=0;const Ui=function(){Ce=[],Jt=[],_t="",Me=[],Zt=0,ge=void 0,qt=void 0,$=[],at="",ve="",De="",be=void 0,xe="",Ht=[],Nt=[],Vt=!1,_e=!1,de=0,we={},Ln(),Se="sunday"},Yi=function(t){ve=t},Fi=function(){return ve},Li=function(t){be=t},Ei=function(){return be},Ai=function(t){xe=t},Ii=function(){return xe},Wi=function(t){at=t},Oi=function(){Vt=!0},Hi=function(){return Vt},Ni=function(){_e=!0},Vi=function(){return _e},zi=function(t){De=t},Pi=function(){return De},Ri=function(){return at},Bi=function(t){Ht=t.toLowerCase().split(/[\s,]+/)},Zi=function(){return Ht},qi=function(t){Nt=t.toLowerCase().split(/[\s,]+/)},Xi=function(){return Nt},Gi=function(){return we},ji=function(t){_t=t,Ce.push(t)},Qi=function(){return Ce},Ji=function(){let t=Pe();const e=10;let n=0;for(;!t&&n<e;)t=Pe(),n++;return Jt=$,Jt},kn=function(t,e,n,r){return r.includes(t.format(e.trim()))?!1:t.isoWeekday()>=6&&n.includes("weekends")||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(t.format(e.trim()))},$i=function(t){Se=t},Ki=function(){return Se},pn=function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i;t.startTime instanceof Date?i=nt(t.startTime):i=nt(t.startTime,e,!0),i=i.add(1,"d");let s;t.endTime instanceof Date?s=nt(t.endTime):s=nt(t.endTime,e,!0);const[a,y]=ts(i,s,e,n,r);t.endTime=a.toDate(),t.renderEndTime=y},ts=function(t,e,n,r,i){let s=!1,a=null;for(;t<=e;)s||(a=e.toDate()),s=kn(t,n,r,i),s&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,a]},me=function(t,e,n){n=n.trim();const i=/^after\s+([\d\w- ]+)/.exec(n.trim());if(i!==null){let a=null;if(i[1].split(" ").forEach(function(y){let S=St(y);S!==void 0&&(a?S.endTime>a.endTime&&(a=S):a=S)}),a)return a.endTime;{const y=new Date;return y.setHours(0,0,0,0),y}}let s=nt(n,e.trim(),!0);if(s.isValid())return s.toDate();{Xt.debug("Invalid date:"+n),Xt.debug("With date format:"+e.trim());const a=new Date(n);if(a===void 0||isNaN(a.getTime())||a.getFullYear()<-1e4||a.getFullYear()>1e4)throw new Error("Invalid date:"+n);return a}},Tn=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},vn=function(t,e,n,r=!1){n=n.trim();let i=nt(n,e.trim(),!0);if(i.isValid())return r&&(i=i.add(1,"d")),i.toDate();let s=nt(t);const[a,y]=Tn(n);if(!Number.isNaN(a)){const S=s.add(a,y);S.isValid()&&(s=S)}return s.toDate()};let Zt=0;const Ct=function(t){return t===void 0?(Zt=Zt+1,"task"+Zt):t},es=function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};Cn(r,i,yn);for(let a=0;a<r.length;a++)r[a]=r[a].trim();let s="";switch(r.length){case 1:i.id=Ct(),i.startTime=t.endTime,s=r[0];break;case 2:i.id=Ct(),i.startTime=me(void 0,at,r[0]),s=r[1];break;case 3:i.id=Ct(r[0]),i.startTime=me(void 0,at,r[1]),s=r[2];break}return s&&(i.endTime=vn(i.startTime,at,s,Vt),i.manualEndTime=nt(s,"YYYY-MM-DD",!0).isValid(),pn(i,at,Nt,Ht)),i},ns=function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};Cn(r,i,yn);for(let s=0;s<r.length;s++)r[s]=r[s].trim();switch(r.length){case 1:i.id=Ct(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=Ct(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Ct(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]};break}return i};let ge,qt,$=[];const bn={},rs=function(t,e){const n={section:_t,type:_t,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=ns(qt,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=qt,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=de,de++;const i=$.push(n);qt=n.id,bn[n.id]=i-1},St=function(t){const e=bn[t];return $[e]},is=function(t,e){const n={section:_t,type:_t,description:t,task:t,classes:[]},r=es(ge,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,ge=n,Jt.push(n)},Pe=function(){const t=function(n){const r=$[n];let i="";switch($[n].raw.startTime.type){case"prevTaskEnd":{const s=St(r.prevTaskId);r.startTime=s.endTime;break}case"getStartDate":i=me(void 0,at,$[n].raw.startTime.startData),i&&($[n].startTime=i);break}return $[n].startTime&&($[n].endTime=vn($[n].startTime,at,$[n].raw.endTime.data,Vt),$[n].endTime&&($[n].processed=!0,$[n].manualEndTime=nt($[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),pn($[n],at,Nt,Ht))),$[n].processed};let e=!0;for(const[n,r]of $.entries())t(n),e=e&&r.processed;return e},ss=function(t,e){let n=e;xt().securityLevel!=="loose"&&(n=En(e)),t.split(",").forEach(function(r){St(r)!==void 0&&(wn(r,()=>{window.open(n,"_self")}),we[r]=n)}),xn(t,"clickable")},xn=function(t,e){t.split(",").forEach(function(n){let r=St(n);r!==void 0&&r.classes.push(e)})},as=function(t,e,n){if(xt().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<r.length;s++){let a=r[s].trim();a.charAt(0)==='"'&&a.charAt(a.length-1)==='"'&&(a=a.substr(1,a.length-2)),r[s]=a}}r.length===0&&r.push(t),St(t)!==void 0&&wn(t,()=>{Wn.runFunc(e,...r)})},wn=function(t,e){Me.push(function(){const n=document.querySelector(`[id="${t}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const n=document.querySelector(`[id="${t}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},os=function(t,e,n){t.split(",").forEach(function(r){as(r,e,n)}),xn(t,"clickable")},cs=function(t){Me.forEach(function(e){e(t)})},ls={getConfig:()=>xt().gantt,clear:Ui,setDateFormat:Wi,getDateFormat:Ri,enableInclusiveEndDates:Oi,endDatesAreInclusive:Hi,enableTopAxis:Ni,topAxisEnabled:Vi,setAxisFormat:Yi,getAxisFormat:Fi,setTickInterval:Li,getTickInterval:Ei,setTodayMarker:Ai,getTodayMarker:Ii,setAccTitle:Dn,getAccTitle:Mn,setDiagramTitle:_n,getDiagramTitle:Sn,setDisplayMode:zi,getDisplayMode:Pi,setAccDescription:Un,getAccDescription:Yn,addSection:ji,getSections:Qi,getTasks:Ji,addTask:rs,findTaskById:St,addTaskOrg:is,setIncludes:Bi,getIncludes:Zi,setExcludes:qi,getExcludes:Xi,setClickEvent:os,setLink:ss,getLinks:Gi,bindFunctions:cs,parseDuration:Tn,isInvalidDate:kn,setWeekday:$i,getWeekday:Ki};function Cn(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(i){const s="^\\s*"+i+"\\s*$",a=new RegExp(s);t[0].match(a)&&(e[i]=!0,t.shift(1),r=!0)})}const us=function(){Xt.debug("Something is calling, setConf, remove the call")},Re={monday:It,tuesday:nn,wednesday:rn,thursday:kt,friday:sn,saturday:an,sunday:Ot},fs=(t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((s,a)=>s.startTime-a.startTime||s.order-a.order),i=0;for(const s of r)for(let a=0;a<n.length;a++)if(s.startTime>=n[a]){n[a]=s.endTime,s.order=a+e,a>i&&(i=a);break}return i};let lt;const hs=function(t,e,n,r){const i=xt().gantt,s=xt().securityLevel;let a;s==="sandbox"&&(a=Pt("#i"+e));const y=s==="sandbox"?Pt(a.nodes()[0].contentDocument.body):Pt("body"),S=s==="sandbox"?a.nodes()[0].contentDocument:document,k=S.getElementById(e);lt=k.parentElement.offsetWidth,lt===void 0&&(lt=1200),i.useWidth!==void 0&&(lt=i.useWidth);const C=r.db.getTasks();let F=[];for(const T of C)F.push(T.type);F=A(F);const w={};let x=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const T={};for(const D of C)T[D.section]===void 0?T[D.section]=[D]:T[D.section].push(D);let Y=0;for(const D of Object.keys(T)){const b=fs(T[D],Y)+1;Y+=b,x+=b*(i.barHeight+i.barGap),w[D]=b}}else{x+=C.length*(i.barHeight+i.barGap);for(const T of F)w[T]=C.filter(Y=>Y.type===T).length}k.setAttribute("viewBox","0 0 "+lt+" "+x);const X=y.select(`[id="${e}"]`),g=bi().domain([Bn(C,function(T){return T.startTime}),Rn(C,function(T){return T.endTime})]).rangeRound([0,lt-i.leftPadding-i.rightPadding]);function L(T,Y){const D=T.startTime,b=Y.startTime;let o=0;return D>b?o=1:D<b&&(o=-1),o}C.sort(L),O(C,lt,x),An(X,x,lt,i.useMaxWidth),X.append("text").text(r.db.getDiagramTitle()).attr("x",lt/2).attr("y",i.titleTopMargin).attr("class","titleText");function O(T,Y,D){const b=i.barHeight,o=b+i.barGap,d=i.topPadding,m=i.leftPadding,u=Hn().domain([0,F.length]).range(["#00B9FA","#F95002"]).interpolate(sr);B(o,d,m,Y,D,T,r.db.getExcludes(),r.db.getIncludes()),Z(m,d,Y,D),W(T,o,d,m,b,u,Y),Q(o,d),v(m,d,Y,D)}function W(T,Y,D,b,o,d,m){const _=[...new Set(T.map(h=>h.order))].map(h=>T.find(U=>U.order===h));X.append("g").selectAll("rect").data(_).enter().append("rect").attr("x",0).attr("y",function(h,U){return U=h.order,U*Y+D-2}).attr("width",function(){return m-i.rightPadding/2}).attr("height",Y).attr("class",function(h){for(const[U,G]of F.entries())if(h.type===G)return"section section"+U%i.numberSectionStyles;return"section section0"});const c=X.append("g").selectAll("rect").data(T).enter(),q=r.db.getLinks();if(c.append("rect").attr("id",function(h){return h.id}).attr("rx",3).attr("ry",3).attr("x",function(h){return h.milestone?g(h.startTime)+b+.5*(g(h.endTime)-g(h.startTime))-.5*o:g(h.startTime)+b}).attr("y",function(h,U){return U=h.order,U*Y+D}).attr("width",function(h){return h.milestone?o:g(h.renderEndTime||h.endTime)-g(h.startTime)}).attr("height",o).attr("transform-origin",function(h,U){return U=h.order,(g(h.startTime)+b+.5*(g(h.endTime)-g(h.startTime))).toString()+"px "+(U*Y+D+.5*o).toString()+"px"}).attr("class",function(h){const U="task";let G="";h.classes.length>0&&(G=h.classes.join(" "));let H=0;for(const[I,z]of F.entries())h.type===z&&(H=I%i.numberSectionStyles);let V="";return h.active?h.crit?V+=" activeCrit":V=" active":h.done?h.crit?V=" doneCrit":V=" done":h.crit&&(V+=" crit"),V.length===0&&(V=" task"),h.milestone&&(V=" milestone "+V),V+=H,V+=" "+G,U+V}),c.append("text").attr("id",function(h){return h.id+"-text"}).text(function(h){return h.task}).attr("font-size",i.fontSize).attr("x",function(h){let U=g(h.startTime),G=g(h.renderEndTime||h.endTime);h.milestone&&(U+=.5*(g(h.endTime)-g(h.startTime))-.5*o),h.milestone&&(G=U+o);const H=this.getBBox().width;return H>G-U?G+H+1.5*i.leftPadding>m?U+b-5:G+b+5:(G-U)/2+U+b}).attr("y",function(h,U){return U=h.order,U*Y+i.barHeight/2+(i.fontSize/2-2)+D}).attr("text-height",o).attr("class",function(h){const U=g(h.startTime);let G=g(h.endTime);h.milestone&&(G=U+o);const H=this.getBBox().width;let V="";h.classes.length>0&&(V=h.classes.join(" "));let I=0;for(const[st,it]of F.entries())h.type===it&&(I=st%i.numberSectionStyles);let z="";return h.active&&(h.crit?z="activeCritText"+I:z="activeText"+I),h.done?h.crit?z=z+" doneCritText"+I:z=z+" doneText"+I:h.crit&&(z=z+" critText"+I),h.milestone&&(z+=" milestoneText"),H>G-U?G+H+1.5*i.leftPadding>m?V+" taskTextOutsideLeft taskTextOutside"+I+" "+z:V+" taskTextOutsideRight taskTextOutside"+I+" "+z+" width-"+H:V+" taskText taskText"+I+" "+z+" width-"+H}),xt().securityLevel==="sandbox"){let h;h=Pt("#i"+e);const U=h.nodes()[0].contentDocument;c.filter(function(G){return q[G.id]!==void 0}).each(function(G){var H=U.querySelector("#"+G.id),V=U.querySelector("#"+G.id+"-text");const I=H.parentNode;var z=U.createElement("a");z.setAttribute("xlink:href",q[G.id]),z.setAttribute("target","_top"),I.appendChild(z),z.appendChild(H),z.appendChild(V)})}}function B(T,Y,D,b,o,d,m,u){if(m.length===0&&u.length===0)return;let _,c;for(const{startTime:H,endTime:V}of d)(_===void 0||H<_)&&(_=H),(c===void 0||V>c)&&(c=V);if(!_||!c)return;if(nt(c).diff(nt(_),"year")>5){Xt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const q=r.db.getDateFormat(),f=[];let h=null,U=nt(_);for(;U.valueOf()<=c;)r.db.isInvalidDate(U,q,m,u)?h?h.end=U:h={start:U,end:U}:h&&(f.push(h),h=null),U=U.add(1,"d");X.append("g").selectAll("rect").data(f).enter().append("rect").attr("id",function(H){return"exclude-"+H.start.format("YYYY-MM-DD")}).attr("x",function(H){return g(H.start)+D}).attr("y",i.gridLineStartPadding).attr("width",function(H){const V=H.end.add(1,"day");return g(V)-g(H.start)}).attr("height",o-Y-i.gridLineStartPadding).attr("transform-origin",function(H,V){return(g(H.start)+D+.5*(g(H.end)-g(H.start))).toString()+"px "+(V*T+.5*o).toString()+"px"}).attr("class","exclude-range")}function Z(T,Y,D,b){let o=$n(g).tickSize(-b+Y+i.gridLineStartPadding).tickFormat(Qt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));const m=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(m!==null){const u=m[1],_=m[2],c=r.db.getWeekday()||i.weekday;switch(_){case"millisecond":o.ticks(Dt.every(u));break;case"second":o.ticks(gt.every(u));break;case"minute":o.ticks(Et.every(u));break;case"hour":o.ticks(At.every(u));break;case"day":o.ticks(yt.every(u));break;case"week":o.ticks(Re[c].every(u));break;case"month":o.ticks(Wt.every(u));break}}if(X.append("g").attr("class","grid").attr("transform","translate("+T+", "+(b-50)+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let u=Jn(g).tickSize(-b+Y+i.gridLineStartPadding).tickFormat(Qt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(m!==null){const _=m[1],c=m[2],q=r.db.getWeekday()||i.weekday;switch(c){case"millisecond":u.ticks(Dt.every(_));break;case"second":u.ticks(gt.every(_));break;case"minute":u.ticks(Et.every(_));break;case"hour":u.ticks(At.every(_));break;case"day":u.ticks(yt.every(_));break;case"week":u.ticks(Re[q].every(_));break;case"month":u.ticks(Wt.every(_));break}}X.append("g").attr("class","grid").attr("transform","translate("+T+", "+Y+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function Q(T,Y){let D=0;const b=Object.keys(w).map(o=>[o,w[o]]);X.append("g").selectAll("text").data(b).enter().append(function(o){const d=o[0].split(In.lineBreakRegex),m=-(d.length-1)/2,u=S.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",m+"em");for(const[_,c]of d.entries()){const q=S.createElementNS("http://www.w3.org/2000/svg","tspan");q.setAttribute("alignment-baseline","central"),q.setAttribute("x","10"),_>0&&q.setAttribute("dy","1em"),q.textContent=c,u.appendChild(q)}return u}).attr("x",10).attr("y",function(o,d){if(d>0)for(let m=0;m<d;m++)return D+=b[d-1][1],o[1]*T/2+D*T+Y;else return o[1]*T/2+Y}).attr("font-size",i.sectionFontSize).attr("class",function(o){for(const[d,m]of F.entries())if(o[0]===m)return"sectionTitle sectionTitle"+d%i.numberSectionStyles;return"sectionTitle"})}function v(T,Y,D,b){const o=r.db.getTodayMarker();if(o==="off")return;const d=X.append("g").attr("class","today"),m=new Date,u=d.append("line");u.attr("x1",g(m)+T).attr("x2",g(m)+T).attr("y1",i.titleTopMargin).attr("y2",b-i.titleTopMargin).attr("class","today"),o!==""&&u.attr("style",o.replace(/,/g,";"))}function A(T){const Y={},D=[];for(let b=0,o=T.length;b<o;++b)Object.prototype.hasOwnProperty.call(Y,T[b])||(Y[T[b]]=!0,D.push(T[b]));return D}},ds={setConf:us,draw:hs},ms=t=>`
.mermaid-main-font {
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
.exclude-range {
fill: ${t.excludeBkgColor};
}
.section {
stroke: none;
opacity: 0.2;
}
.section0 {
fill: ${t.sectionBkgColor};
}
.section2 {
fill: ${t.sectionBkgColor2};
}
.section1,
.section3 {
fill: ${t.altSectionBkgColor};
opacity: 0.2;
}
.sectionTitle0 {
fill: ${t.titleColor};
}
.sectionTitle1 {
fill: ${t.titleColor};
}
.sectionTitle2 {
fill: ${t.titleColor};
}
.sectionTitle3 {
fill: ${t.titleColor};
}
.sectionTitle {
text-anchor: start;
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
/* Grid and axis */
.grid .tick {
stroke: ${t.gridColor};
opacity: 0.8;
shape-rendering: crispEdges;
}
.grid .tick text {
font-family: ${t.fontFamily};
fill: ${t.textColor};
}
.grid path {
stroke-width: 0;
}
/* Today line */
.today {
fill: none;
stroke: ${t.todayLineColor};
stroke-width: 2px;
}
/* Task styling */
/* Default task */
.task {
stroke-width: 2;
}
.taskText {
text-anchor: middle;
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
.taskTextOutsideRight {
fill: ${t.taskTextDarkColor};
text-anchor: start;
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
.taskTextOutsideLeft {
fill: ${t.taskTextDarkColor};
text-anchor: end;
}
/* Special case clickable */
.task.clickable {
cursor: pointer;
}
.taskText.clickable {
cursor: pointer;
fill: ${t.taskTextClickableColor} !important;
font-weight: bold;
}
.taskTextOutsideLeft.clickable {
cursor: pointer;
fill: ${t.taskTextClickableColor} !important;
font-weight: bold;
}
.taskTextOutsideRight.clickable {
cursor: pointer;
fill: ${t.taskTextClickableColor} !important;
font-weight: bold;
}
/* Specific task settings for the sections*/
.taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: ${t.taskTextColor};
}
.task0,
.task1,
.task2,
.task3 {
fill: ${t.taskBkgColor};
stroke: ${t.taskBorderColor};
}
.taskTextOutside0,
.taskTextOutside2
{
fill: ${t.taskTextOutsideColor};
}
.taskTextOutside1,
.taskTextOutside3 {
fill: ${t.taskTextOutsideColor};
}
/* Active task */
.active0,
.active1,
.active2,
.active3 {
fill: ${t.activeTaskBkgColor};
stroke: ${t.activeTaskBorderColor};
}
.activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: ${t.taskTextDarkColor} !important;
}
/* Completed task */
.done0,
.done1,
.done2,
.done3 {
stroke: ${t.doneTaskBorderColor};
fill: ${t.doneTaskBkgColor};
stroke-width: 2;
}
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: ${t.taskTextDarkColor} !important;
}
/* Tasks on the critical line */
.crit0,
.crit1,
.crit2,
.crit3 {
stroke: ${t.critBorderColor};
fill: ${t.critBkgColor};
stroke-width: 2;
}
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: ${t.critBorderColor};
fill: ${t.activeTaskBkgColor};
stroke-width: 2;
}
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: ${t.critBorderColor};
fill: ${t.doneTaskBkgColor};
stroke-width: 2;
cursor: pointer;
shape-rendering: crispEdges;
}
.milestone {
transform: rotate(45deg) scale(0.8,0.8);
}
.milestoneText {
font-style: italic;
}
.doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
fill: ${t.taskTextDarkColor} !important;
}
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: ${t.taskTextDarkColor} !important;
}
.titleText {
text-anchor: middle;
font-size: 18px;
fill: ${t.titleColor||t.textColor};
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
`,gs=ms,Ts={parser:xi,db:ls,renderer:ds,styles:gs};export{Ts as diagram};
import{d as xDe,p as RDe}from"./flowDb-a32fc02b-mKtk886G.js";import{b2 as Dse,b4 as KDe,ay as N1,ax as OA,be as DU,aI as BDe,aE as jbn,aG as ybn,aH as NU,aB as FDe}from"./index-Hfn5l4aw.js";import{i as _De,a as HDe,l as qDe,b as UDe,j as GDe,k as zDe}from"./edges-9f0d1f4d-OJsHViVb.js";import{l as XDe}from"./line-b015ae81-MIcjsH1n.js";import"./createText-77e212b0-L6d34XR_.js";import"./array-b7dcf730-Nw74a44z.js";import"./path-39bad7e2-aUcfwwLI.js";const VDe=(tt,Kt,Ht)=>{const{parentById:gt}=Ht,Pr=new Set;let Li=tt;for(;Li;){if(Pr.add(Li),Li===Kt)return Li;Li=gt[Li]}for(Li=Kt;Li;){if(Pr.has(Li))return Li;Li=gt[Li]}return"root"};function LU(tt){throw new Error('Could not dynamically require "'+tt+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Kse={exports:{}};(function(tt,Kt){(function(Ht){tt.exports=Ht()})(function(){return function(){function Ht(gt,Pr,Li){function y(qt,Jt){if(!Pr[qt]){if(!gt[qt]){var Xe=typeof LU=="function"&&LU;if(!Jt&&Xe)return Xe(qt,!0);if(Wt)return Wt(qt,!0);var Yi=new Error("Cannot find module '"+qt+"'");throw Yi.code="MODULE_NOT_FOUND",Yi}var Bi=Pr[qt]={exports:{}};gt[qt][0].call(Bi.exports,function(En){var hu=gt[qt][1][En];return y(hu||En)},Bi,Bi.exports,Ht,gt,Pr,Li)}return Pr[qt].exports}for(var Wt=typeof LU=="function"&&LU,Ku=0;Ku<Li.length;Ku++)y(Li[Ku]);return y}return Ht}()({1:[function(Ht,gt,Pr){Object.defineProperty(Pr,"__esModule",{value:!0});var Li=function(){function qt(Jt,Xe){for(var Yi=0;Yi<Xe.length;Yi++){var Bi=Xe[Yi];Bi.enumerable=Bi.enumerable||!1,Bi.configurable=!0,"value"in Bi&&(Bi.writable=!0),Object.defineProperty(Jt,Bi.key,Bi)}}return function(Jt,Xe,Yi){return Xe&&qt(Jt.prototype,Xe),Yi&&qt(Jt,Yi),Jt}}();function y(qt,Jt){if(!(qt instanceof Jt))throw new TypeError("Cannot call a class as a function")}var Wt=function(){function qt(){var Jt=this,Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Yi=Xe.defaultLayoutOptions,Bi=Yi===void 0?{}:Yi,En=Xe.algorithms,hu=En===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:En,Qc=Xe.workerFactory,Bu=Xe.workerUrl;if(y(this,qt),this.defaultLayoutOptions=Bi,this.initialized=!1,typeof Bu>"u"&&typeof Qc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Ir=Qc;typeof Bu<"u"&&typeof Qc>"u"&&(Ir=function($1){return new Worker($1)});var Tf=Ir(Bu);if(typeof Tf.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Ku(Tf),this.worker.postMessage({cmd:"register",algorithms:hu}).then(function(D1){return Jt.initialized=!0}).catch(console.err)}return Li(qt,[{key:"layout",value:function(Xe){var Yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bi=Yi.layoutOptions,En=Bi===void 0?this.defaultLayoutOptions:Bi,hu=Yi.logging,Qc=hu===void 0?!1:hu,Bu=Yi.measureExecutionTime,Ir=Bu===void 0?!1:Bu;return Xe?this.worker.postMessage({cmd:"layout",graph:Xe,layoutOptions:En,options:{logging:Qc,measureExecutionTime:Ir}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),qt}();Pr.default=Wt;var Ku=function(){function qt(Jt){var Xe=this;if(y(this,qt),Jt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=Jt,this.worker.onmessage=function(Yi){setTimeout(function(){Xe.receive(Xe,Yi)},0)}}return Li(qt,[{key:"postMessage",value:function(Xe){var Yi=this.id||0;this.id=Yi+1,Xe.id=Yi;var Bi=this;return new Promise(function(En,hu){Bi.resolvers[Yi]=function(Qc,Bu){Qc?(Bi.convertGwtStyleError(Qc),hu(Qc)):En(Bu)},Bi.worker.postMessage(Xe)})}},{key:"receive",value:function(Xe,Yi){var Bi=Yi.data,En=Xe.resolvers[Bi.id];En&&(delete Xe.resolvers[Bi.id],Bi.error?En(Bi.error):En(null,Bi.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Xe){if(Xe){var Yi=Xe.__java$exception;Yi&&(Yi.cause&&Yi.cause.backingJsObject&&(Xe.cause=Yi.cause.backingJsObject,this.convertGwtStyleError(Xe.cause)),delete Xe.__java$exception)}}}]),qt}()},{}],2:[function(Ht,gt,Pr){(function(Li){(function(){var y;typeof window<"u"?y=window:typeof Li<"u"?y=Li:typeof self<"u"&&(y=self);var Wt;function Ku(){}function qt(){}function Jt(){}function Xe(){}function Yi(){}function Bi(){}function En(){}function hu(){}function Qc(){}function Bu(){}function Ir(){}function Tf(){}function D1(){}function $1(){}function og(){}function X3(){}function x1(){}function ul(){}function Ebn(){}function Mbn(){}function Q2(){}function R(){}function Tbn(){}function pE(){}function Cbn(){}function Sbn(){}function Pbn(){}function Ibn(){}function Obn(){}function $U(){}function Abn(){}function Lbn(){}function Nbn(){}function AA(){}function Dbn(){}function $bn(){}function xbn(){}function LA(){}function Rbn(){}function Kbn(){}function xU(){}function Bbn(){}function Fbn(){}function yu(){}function ju(){}function Y2(){}function Z2(){}function _bn(){}function Hbn(){}function qbn(){}function Ubn(){}function RU(){}function Eu(){}function np(){}function ep(){}function Gbn(){}function zbn(){}function NA(){}function Xbn(){}function Vbn(){}function Wbn(){}function Jbn(){}function Qbn(){}function Ybn(){}function Zbn(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function uwn(){}function own(){}function swn(){}function fwn(){}function hwn(){}function lwn(){}function awn(){}function dwn(){}function bwn(){}function wwn(){}function gwn(){}function pwn(){}function mwn(){}function vwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Mwn(){}function Twn(){}function KU(){}function Cwn(){}function Swn(){}function Pwn(){}function Iwn(){}function DA(){}function $A(){}function mE(){}function Own(){}function Awn(){}function xA(){}function Lwn(){}function Nwn(){}function Dwn(){}function vE(){}function $wn(){}function xwn(){}function Rwn(){}function Kwn(){}function Bwn(){}function Fwn(){}function _wn(){}function Hwn(){}function qwn(){}function BU(){}function Uwn(){}function Gwn(){}function FU(){}function zwn(){}function Xwn(){}function Vwn(){}function Wwn(){}function Jwn(){}function Qwn(){}function Ywn(){}function Zwn(){}function n0n(){}function e0n(){}function t0n(){}function i0n(){}function r0n(){}function RA(){}function c0n(){}function u0n(){}function o0n(){}function s0n(){}function f0n(){}function h0n(){}function l0n(){}function a0n(){}function d0n(){}function _U(){}function HU(){}function b0n(){}function w0n(){}function g0n(){}function p0n(){}function m0n(){}function v0n(){}function k0n(){}function y0n(){}function j0n(){}function E0n(){}function M0n(){}function T0n(){}function C0n(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function A0n(){}function L0n(){}function N0n(){}function D0n(){}function $0n(){}function x0n(){}function R0n(){}function K0n(){}function B0n(){}function F0n(){}function _0n(){}function H0n(){}function q0n(){}function U0n(){}function G0n(){}function z0n(){}function X0n(){}function V0n(){}function W0n(){}function J0n(){}function Q0n(){}function Y0n(){}function Z0n(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function ogn(){}function sgn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function mgn(){}function vgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Mgn(){}function Tgn(){}function Cgn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Agn(){}function Lgn(){}function Ngn(){}function Dgn(){}function $gn(){}function xgn(){}function Rgn(){}function Kgn(){}function Bgn(){}function Fgn(){}function _gn(){}function Hgn(){}function qgn(){}function Ugn(){}function Ggn(){}function zgn(){}function Xgn(){}function Vgn(){}function Wgn(){}function Jgn(){}function Qgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function qU(){}function u2n(){}function o2n(){}function s2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function m2n(){}function v2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function M2n(){}function T2n(){}function C2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function A2n(){}function L2n(){}function N2n(){}function D2n(){}function $2n(){}function x2n(){}function R2n(){}function K2n(){}function B2n(){}function F2n(){}function _2n(){}function H2n(){}function q2n(){}function U2n(){}function G2n(){}function z2n(){}function X2n(){}function V2n(){}function W2n(){}function J2n(){}function Q2n(){}function Y2n(){}function Z2n(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function opn(){}function spn(){}function fpn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function mpn(){}function vpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Mpn(){}function UU(){}function Tpn(){}function Cpn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Apn(){}function Lpn(){}function Npn(){}function Dpn(){}function GU(){}function $pn(){}function xpn(){}function Rpn(){}function Kpn(){}function Bpn(){}function Fpn(){}function zU(){}function XU(){}function _pn(){}function VU(){}function WU(){}function Hpn(){}function qpn(){}function Upn(){}function Gpn(){}function zpn(){}function Xpn(){}function Vpn(){}function Wpn(){}function Jpn(){}function Qpn(){}function Ypn(){}function JU(){}function Zpn(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function o3n(){}function s3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function m3n(){}function v3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function M3n(){}function T3n(){}function C3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function A3n(){}function L3n(){}function N3n(){}function D3n(){}function $3n(){}function x3n(){}function R3n(){}function K3n(){}function B3n(){}function F3n(){}function _3n(){}function H3n(){}function q3n(){}function U3n(){}function G3n(){}function z3n(){}function X3n(){}function V3n(){}function W3n(){}function J3n(){}function Q3n(){}function Y3n(){}function Z3n(){}function nmn(){}function emn(){}function tmn(){}function imn(){}function rmn(){}function cmn(){}function umn(){}function omn(){}function smn(){}function fmn(){}function hmn(){}function lmn(){}function amn(){}function dmn(){}function bmn(){}function wmn(){}function gmn(){}function pmn(){}function mmn(){}function vmn(){}function kmn(){}function ymn(){}function jmn(){}function Emn(){}function Mmn(){}function Tmn(){}function Cmn(){}function Smn(){}function Pmn(){}function Imn(){}function Omn(){}function _se(){}function Amn(){}function Lmn(){}function Nmn(){}function Dmn(){}function $mn(){}function xmn(){}function Rmn(){}function Kmn(){}function Bmn(){}function Fmn(){}function _mn(){}function Hmn(){}function qmn(){}function Umn(){}function Gmn(){}function zmn(){}function Xmn(){}function Vmn(){}function Wmn(){}function Jmn(){}function Qmn(){}function Ymn(){}function Zmn(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function KA(){}function BA(){}function r4n(){}function FA(){}function c4n(){}function u4n(){}function o4n(){}function s4n(){}function f4n(){}function h4n(){}function l4n(){}function a4n(){}function d4n(){}function b4n(){}function QU(){}function w4n(){}function g4n(){}function p4n(){}function Hse(){}function m4n(){}function v4n(){}function k4n(){}function y4n(){}function j4n(){}function E4n(){}function M4n(){}function Fa(){}function T4n(){}function tp(){}function YU(){}function C4n(){}function S4n(){}function P4n(){}function I4n(){}function O4n(){}function A4n(){}function L4n(){}function N4n(){}function D4n(){}function $4n(){}function x4n(){}function R4n(){}function K4n(){}function B4n(){}function F4n(){}function _4n(){}function H4n(){}function q4n(){}function U4n(){}function hn(){}function G4n(){}function z4n(){}function X4n(){}function V4n(){}function W4n(){}function J4n(){}function Q4n(){}function Y4n(){}function Z4n(){}function nvn(){}function evn(){}function tvn(){}function ivn(){}function _A(){}function rvn(){}function cvn(){}function uvn(){}function kE(){}function ovn(){}function HA(){}function yE(){}function svn(){}function ZU(){}function fvn(){}function hvn(){}function lvn(){}function avn(){}function dvn(){}function bvn(){}function jE(){}function wvn(){}function gvn(){}function EE(){}function pvn(){}function ME(){}function mvn(){}function nG(){}function vvn(){}function qA(){}function eG(){}function kvn(){}function yvn(){}function jvn(){}function Evn(){}function qse(){}function Mvn(){}function Tvn(){}function Cvn(){}function Svn(){}function Pvn(){}function Ivn(){}function Ovn(){}function Avn(){}function Lvn(){}function Nvn(){}function V3(){}function UA(){}function Dvn(){}function $vn(){}function xvn(){}function Rvn(){}function Kvn(){}function Bvn(){}function Fvn(){}function _vn(){}function Hvn(){}function qvn(){}function Uvn(){}function Gvn(){}function zvn(){}function Xvn(){}function Vvn(){}function Wvn(){}function Jvn(){}function Qvn(){}function Yvn(){}function Zvn(){}function n6n(){}function e6n(){}function t6n(){}function i6n(){}function r6n(){}function c6n(){}function u6n(){}function o6n(){}function s6n(){}function f6n(){}function h6n(){}function l6n(){}function a6n(){}function d6n(){}function b6n(){}function w6n(){}function g6n(){}function p6n(){}function m6n(){}function v6n(){}function k6n(){}function y6n(){}function j6n(){}function E6n(){}function M6n(){}function T6n(){}function C6n(){}function S6n(){}function P6n(){}function I6n(){}function O6n(){}function A6n(){}function L6n(){}function N6n(){}function D6n(){}function $6n(){}function x6n(){}function R6n(){}function K6n(){}function B6n(){}function F6n(){}function _6n(){}function H6n(){}function q6n(){}function U6n(){}function G6n(){}function z6n(){}function X6n(){}function V6n(){}function W6n(){}function J6n(){}function Q6n(){}function Y6n(){}function Z6n(){}function n5n(){}function e5n(){}function t5n(){}function i5n(){}function r5n(){}function c5n(){}function u5n(){}function o5n(){}function s5n(){}function f5n(){}function h5n(){}function l5n(){}function a5n(){}function d5n(){}function b5n(){}function w5n(){}function g5n(){}function p5n(){}function m5n(){}function v5n(){}function k5n(){}function y5n(){}function j5n(){}function E5n(){}function M5n(){}function T5n(){}function C5n(){}function tG(){}function S5n(){}function P5n(){}function GA(){Qv()}function I5n(){r7()}function O5n(){aS()}function A5n(){Q$()}function L5n(){j5()}function N5n(){hnn()}function D5n(){Us()}function $5n(){kZ()}function x5n(){qk()}function R5n(){c7()}function K5n(){N7()}function B5n(){lMn()}function F5n(){Hp()}function _5n(){BNn()}function H5n(){vQ()}function q5n(){SAn()}function U5n(){kQ()}function G5n(){gDn()}function z5n(){CAn()}function X5n(){r4()}function V5n(){Z$n()}function W5n(){Y$n()}function J5n(){jLn()}function Q5n(){nxn()}function Y5n(){oa()}function Z5n(){YE()}function n8n(){stn()}function e8n(){cn()}function t8n(){exn()}function i8n(){Pxn()}function r8n(){PAn()}function c8n(){ZBn()}function u8n(){IAn()}function o8n(){bUn()}function s8n(){Fnn()}function f8n(){kl()}function h8n(){bKn()}function l8n(){lc()}function a8n(){KAn()}function d8n(){_p()}function b8n(){jen()}function w8n(){sa()}function g8n(){Een()}function p8n(){Bf()}function m8n(){Vk()}function v8n(){ER()}function k8n(){Lx()}function uf(){bPn()}function y8n(){YT()}function j8n(){mS()}function iG(){He()}function E8n(){DC()}function M8n(){JY()}function rG(){L$()}function cG(){FS()}function T8n(){Den()}function uG(n){Jn(n)}function C8n(n){this.a=n}function TE(n){this.a=n}function S8n(n){this.a=n}function P8n(n){this.a=n}function I8n(n){this.a=n}function O8n(n){this.a=n}function A8n(n){this.a=n}function L8n(n){this.a=n}function oG(n){this.a=n}function sG(n){this.a=n}function N8n(n){this.a=n}function D8n(n){this.a=n}function zA(n){this.a=n}function $8n(n){this.a=n}function x8n(n){this.a=n}function XA(n){this.a=n}function VA(n){this.a=n}function R8n(n){this.a=n}function WA(n){this.a=n}function K8n(n){this.a=n}function B8n(n){this.a=n}function F8n(n){this.a=n}function fG(n){this.b=n}function _8n(n){this.c=n}function H8n(n){this.a=n}function q8n(n){this.a=n}function U8n(n){this.a=n}function G8n(n){this.a=n}function z8n(n){this.a=n}function X8n(n){this.a=n}function V8n(n){this.a=n}function W8n(n){this.a=n}function J8n(n){this.a=n}function Q8n(n){this.a=n}function Y8n(n){this.a=n}function Z8n(n){this.a=n}function n9n(n){this.a=n}function hG(n){this.a=n}function lG(n){this.a=n}function CE(n){this.a=n}function q9(n){this.a=n}function _a(){this.a=[]}function e9n(n,e){n.a=e}function Use(n,e){n.a=e}function Gse(n,e){n.b=e}function zse(n,e){n.b=e}function Xse(n,e){n.b=e}function aG(n,e){n.j=e}function Vse(n,e){n.g=e}function Wse(n,e){n.i=e}function Jse(n,e){n.c=e}function Qse(n,e){n.c=e}function Yse(n,e){n.d=e}function Zse(n,e){n.d=e}function Ha(n,e){n.k=e}function nfe(n,e){n.c=e}function dG(n,e){n.c=e}function bG(n,e){n.a=e}function efe(n,e){n.a=e}function tfe(n,e){n.f=e}function ife(n,e){n.a=e}function rfe(n,e){n.b=e}function JA(n,e){n.d=e}function SE(n,e){n.i=e}function wG(n,e){n.o=e}function cfe(n,e){n.r=e}function ufe(n,e){n.a=e}function ofe(n,e){n.b=e}function t9n(n,e){n.e=e}function sfe(n,e){n.f=e}function gG(n,e){n.g=e}function ffe(n,e){n.e=e}function hfe(n,e){n.f=e}function lfe(n,e){n.f=e}function QA(n,e){n.a=e}function YA(n,e){n.b=e}function afe(n,e){n.n=e}function dfe(n,e){n.a=e}function bfe(n,e){n.c=e}function wfe(n,e){n.c=e}function gfe(n,e){n.c=e}function pfe(n,e){n.a=e}function mfe(n,e){n.a=e}function vfe(n,e){n.d=e}function kfe(n,e){n.d=e}function yfe(n,e){n.e=e}function jfe(n,e){n.e=e}function Efe(n,e){n.g=e}function Mfe(n,e){n.f=e}function Tfe(n,e){n.j=e}function Cfe(n,e){n.a=e}function Sfe(n,e){n.a=e}function Pfe(n,e){n.b=e}function i9n(n){n.b=n.a}function r9n(n){n.c=n.d.d}function pG(n){this.a=n}function mG(n){this.a=n}function vG(n){this.a=n}function qa(n){this.a=n}function Ua(n){this.a=n}function U9(n){this.a=n}function c9n(n){this.a=n}function kG(n){this.a=n}function G9(n){this.a=n}function PE(n){this.a=n}function ol(n){this.a=n}function Cw(n){this.a=n}function u9n(n){this.a=n}function o9n(n){this.a=n}function ZA(n){this.b=n}function W3(n){this.b=n}function J3(n){this.b=n}function nL(n){this.a=n}function s9n(n){this.a=n}function eL(n){this.c=n}function M(n){this.c=n}function f9n(n){this.c=n}function Gv(n){this.d=n}function yG(n){this.a=n}function Ce(n){this.a=n}function h9n(n){this.a=n}function jG(n){this.a=n}function EG(n){this.a=n}function MG(n){this.a=n}function TG(n){this.a=n}function CG(n){this.a=n}function SG(n){this.a=n}function Q3(n){this.a=n}function l9n(n){this.a=n}function a9n(n){this.a=n}function Y3(n){this.a=n}function d9n(n){this.a=n}function b9n(n){this.a=n}function w9n(n){this.a=n}function g9n(n){this.a=n}function p9n(n){this.a=n}function m9n(n){this.a=n}function v9n(n){this.a=n}function k9n(n){this.a=n}function y9n(n){this.a=n}function j9n(n){this.a=n}function E9n(n){this.a=n}function M9n(n){this.a=n}function T9n(n){this.a=n}function C9n(n){this.a=n}function S9n(n){this.a=n}function z9(n){this.a=n}function P9n(n){this.a=n}function I9n(n){this.a=n}function O9n(n){this.a=n}function A9n(n){this.a=n}function IE(n){this.a=n}function L9n(n){this.a=n}function N9n(n){this.a=n}function Z3(n){this.a=n}function PG(n){this.a=n}function D9n(n){this.a=n}function $9n(n){this.a=n}function x9n(n){this.a=n}function R9n(n){this.a=n}function K9n(n){this.a=n}function B9n(n){this.a=n}function IG(n){this.a=n}function OG(n){this.a=n}function AG(n){this.a=n}function zv(n){this.a=n}function OE(n){this.e=n}function nm(n){this.a=n}function F9n(n){this.a=n}function ip(n){this.a=n}function LG(n){this.a=n}function _9n(n){this.a=n}function H9n(n){this.a=n}function q9n(n){this.a=n}function U9n(n){this.a=n}function G9n(n){this.a=n}function z9n(n){this.a=n}function X9n(n){this.a=n}function V9n(n){this.a=n}function W9n(n){this.a=n}function J9n(n){this.a=n}function Q9n(n){this.a=n}function NG(n){this.a=n}function Y9n(n){this.a=n}function Z9n(n){this.a=n}function n7n(n){this.a=n}function e7n(n){this.a=n}function t7n(n){this.a=n}function i7n(n){this.a=n}function r7n(n){this.a=n}function c7n(n){this.a=n}function u7n(n){this.a=n}function o7n(n){this.a=n}function s7n(n){this.a=n}function f7n(n){this.a=n}function h7n(n){this.a=n}function l7n(n){this.a=n}function a7n(n){this.a=n}function d7n(n){this.a=n}function b7n(n){this.a=n}function w7n(n){this.a=n}function g7n(n){this.a=n}function p7n(n){this.a=n}function m7n(n){this.a=n}function v7n(n){this.a=n}function k7n(n){this.a=n}function y7n(n){this.a=n}function j7n(n){this.a=n}function E7n(n){this.a=n}function M7n(n){this.a=n}function T7n(n){this.a=n}function C7n(n){this.a=n}function S7n(n){this.a=n}function P7n(n){this.a=n}function I7n(n){this.a=n}function O7n(n){this.a=n}function A7n(n){this.a=n}function L7n(n){this.a=n}function N7n(n){this.a=n}function D7n(n){this.a=n}function $7n(n){this.a=n}function x7n(n){this.c=n}function R7n(n){this.b=n}function K7n(n){this.a=n}function B7n(n){this.a=n}function F7n(n){this.a=n}function _7n(n){this.a=n}function H7n(n){this.a=n}function q7n(n){this.a=n}function U7n(n){this.a=n}function G7n(n){this.a=n}function z7n(n){this.a=n}function X7n(n){this.a=n}function V7n(n){this.a=n}function W7n(n){this.a=n}function J7n(n){this.a=n}function Q7n(n){this.a=n}function Y7n(n){this.a=n}function Z7n(n){this.a=n}function nkn(n){this.a=n}function ekn(n){this.a=n}function tkn(n){this.a=n}function ikn(n){this.a=n}function rkn(n){this.a=n}function ckn(n){this.a=n}function ukn(n){this.a=n}function okn(n){this.a=n}function skn(n){this.a=n}function fkn(n){this.a=n}function hkn(n){this.a=n}function sl(n){this.a=n}function sg(n){this.a=n}function lkn(n){this.a=n}function akn(n){this.a=n}function dkn(n){this.a=n}function bkn(n){this.a=n}function wkn(n){this.a=n}function gkn(n){this.a=n}function pkn(n){this.a=n}function mkn(n){this.a=n}function vkn(n){this.a=n}function kkn(n){this.a=n}function ykn(n){this.a=n}function jkn(n){this.a=n}function Ekn(n){this.a=n}function Mkn(n){this.a=n}function Tkn(n){this.a=n}function Ckn(n){this.a=n}function Skn(n){this.a=n}function Pkn(n){this.a=n}function Ikn(n){this.a=n}function Okn(n){this.a=n}function Akn(n){this.a=n}function Lkn(n){this.a=n}function Nkn(n){this.a=n}function Dkn(n){this.a=n}function $kn(n){this.a=n}function xkn(n){this.a=n}function AE(n){this.a=n}function Rkn(n){this.f=n}function Kkn(n){this.a=n}function Bkn(n){this.a=n}function Fkn(n){this.a=n}function _kn(n){this.a=n}function Hkn(n){this.a=n}function qkn(n){this.a=n}function Ukn(n){this.a=n}function Gkn(n){this.a=n}function zkn(n){this.a=n}function Xkn(n){this.a=n}function Vkn(n){this.a=n}function Wkn(n){this.a=n}function Jkn(n){this.a=n}function Qkn(n){this.a=n}function Ykn(n){this.a=n}function Zkn(n){this.a=n}function nyn(n){this.a=n}function eyn(n){this.a=n}function tyn(n){this.a=n}function iyn(n){this.a=n}function ryn(n){this.a=n}function cyn(n){this.a=n}function uyn(n){this.a=n}function oyn(n){this.a=n}function syn(n){this.a=n}function fyn(n){this.a=n}function hyn(n){this.a=n}function lyn(n){this.a=n}function tL(n){this.a=n}function DG(n){this.a=n}function lt(n){this.b=n}function ayn(n){this.a=n}function dyn(n){this.a=n}function byn(n){this.a=n}function wyn(n){this.a=n}function gyn(n){this.a=n}function pyn(n){this.a=n}function myn(n){this.a=n}function vyn(n){this.b=n}function kyn(n){this.a=n}function X9(n){this.a=n}function yyn(n){this.a=n}function jyn(n){this.a=n}function $G(n){this.c=n}function LE(n){this.e=n}function NE(n){this.a=n}function DE(n){this.a=n}function iL(n){this.a=n}function Eyn(n){this.d=n}function Myn(n){this.a=n}function xG(n){this.a=n}function RG(n){this.a=n}function Wd(n){this.e=n}function Ife(){this.a=0}function de(){Hu(this)}function Z(){pN(this)}function rL(){oOn(this)}function Tyn(){}function Jd(){this.c=Udn}function Cyn(n,e){n.b+=e}function Ofe(n,e){e.Wb(n)}function Afe(n){return n.a}function Lfe(n){return n.a}function Nfe(n){return n.a}function Dfe(n){return n.a}function $fe(n){return n.a}function T(n){return n.e}function xfe(){return null}function Rfe(){return null}function Kfe(){jz(),pNe()}function Bfe(n){n.b.Of(n.e)}function Syn(n){n.b=new ML}function Xv(n,e){n.b=e-n.b}function Vv(n,e){n.a=e-n.a}function Bn(n,e){n.push(e)}function Pyn(n,e){n.sort(e)}function Iyn(n,e){e.jd(n.a)}function Ffe(n,e){gi(e,n)}function _fe(n,e,t){n.Yd(t,e)}function V9(n,e){n.e=e,e.b=n}function KG(n){oh(),this.a=n}function Oyn(n){oh(),this.a=n}function Ayn(n){oh(),this.a=n}function cL(n){gb(),this.a=n}function Lyn(n){Om(),XF.le(n)}function BG(){BG=R,new de}function Ga(){QCn.call(this)}function FG(){QCn.call(this)}function _G(){Ga.call(this)}function uL(){Ga.call(this)}function Nyn(){Ga.call(this)}function W9(){Ga.call(this)}function Mu(){Ga.call(this)}function rp(){Ga.call(this)}function Ie(){Ga.call(this)}function Ko(){Ga.call(this)}function Dyn(){Ga.call(this)}function nc(){Ga.call(this)}function $yn(){Ga.call(this)}function xyn(){this.a=this}function $E(){this.Bb|=256}function Ryn(){this.b=new UTn}function Sw(n,e){n.length=e}function xE(n,e){nn(n.a,e)}function Hfe(n,e){ann(n.c,e)}function qfe(n,e){fi(n.b,e)}function Ufe(n,e){uS(n.a,e)}function Gfe(n,e){cx(n.a,e)}function em(n,e){rt(n.e,e)}function cp(n){jS(n.c,n.b)}function zfe(n,e){n.kc().Nb(e)}function HG(n){this.a=K5e(n)}function ni(){this.a=new de}function Kyn(){this.a=new de}function qG(){this.a=new iMn}function RE(){this.a=new Z}function oL(){this.a=new Z}function UG(){this.a=new Z}function hs(){this.a=new rwn}function za(){this.a=new NNn}function GG(){this.a=new BU}function zG(){this.a=new TAn}function XG(){this.a=new RSn}function Byn(){this.a=new Z}function Fyn(){this.a=new Z}function _yn(){this.a=new Z}function VG(){this.a=new Z}function Hyn(){this.d=new Z}function qyn(){this.a=new GAn}function Uyn(){this.a=new ni}function Gyn(){this.a=new de}function zyn(){this.b=new de}function Xyn(){this.b=new Z}function WG(){this.e=new Z}function Vyn(){this.a=new Y5n}function Wyn(){this.d=new Z}function Jyn(){JOn.call(this)}function Qyn(){JOn.call(this)}function Yyn(){Z.call(this)}function JG(){_G.call(this)}function QG(){RE.call(this)}function Zyn(){HM.call(this)}function njn(){VG.call(this)}function Wv(){Tyn.call(this)}function sL(){Wv.call(this)}function up(){Tyn.call(this)}function YG(){up.call(this)}function ejn(){tz.call(this)}function tjn(){tz.call(this)}function ijn(){tz.call(this)}function rjn(){iz.call(this)}function Jv(){ovn.call(this)}function ZG(){ovn.call(this)}function Tu(){Mt.call(this)}function cjn(){kjn.call(this)}function ujn(){kjn.call(this)}function ojn(){de.call(this)}function sjn(){de.call(this)}function fjn(){de.call(this)}function fL(){rxn.call(this)}function hjn(){ni.call(this)}function ljn(){$E.call(this)}function hL(){xX.call(this)}function nz(){de.call(this)}function lL(){xX.call(this)}function aL(){de.call(this)}function ajn(){de.call(this)}function ez(){ME.call(this)}function djn(){ez.call(this)}function bjn(){ME.call(this)}function wjn(){tG.call(this)}function tz(){this.a=new ni}function gjn(){this.a=new de}function pjn(){this.a=new Z}function iz(){this.a=new de}function op(){this.a=new Mt}function mjn(){this.j=new Z}function vjn(){this.a=new pEn}function kjn(){this.a=new pvn}function rz(){this.a=new Ymn}function Qv(){Qv=R,FF=new qt}function dL(){dL=R,_F=new jjn}function bL(){bL=R,HF=new yjn}function yjn(){XA.call(this,"")}function jjn(){XA.call(this,"")}function Ejn(n){S$n.call(this,n)}function Mjn(n){S$n.call(this,n)}function cz(n){oG.call(this,n)}function uz(n){zEn.call(this,n)}function Xfe(n){zEn.call(this,n)}function Vfe(n){uz.call(this,n)}function Wfe(n){uz.call(this,n)}function Jfe(n){uz.call(this,n)}function Tjn(n){zD.call(this,n)}function Cjn(n){zD.call(this,n)}function Sjn(n){cPn.call(this,n)}function Pjn(n){Iz.call(this,n)}function Yv(n){VE.call(this,n)}function oz(n){VE.call(this,n)}function Ijn(n){VE.call(this,n)}function sz(n){mje.call(this,n)}function fz(n){sz.call(this,n)}function ec(n){CIn.call(this,n)}function Ojn(n){ec.call(this,n)}function sp(){q9.call(this,{})}function Ajn(){Ajn=R,dQn=new Mbn}function KE(){KE=R,GF=new SCn}function Ljn(){Ljn=R,run=new Ku}function hz(){hz=R,uun=new $1}function BE(){BE=R,M8=new x1}function wL(n){dm(),this.a=n}function gL(n){RQ(),this.a=n}function Pw(n){nD(),this.f=n}function pL(n){nD(),this.f=n}function Njn(n){dPn(),this.a=n}function Djn(n){n.b=null,n.c=0}function Qfe(n,e){n.e=e,bqn(n,e)}function Yfe(n,e){n.a=e,cEe(n)}function mL(n,e,t){n.a[e.g]=t}function Zfe(n,e,t){kke(t,n,e)}function nhe(n,e){Wae(e.i,n.n)}function $jn(n,e){v6e(n).Cd(e)}function ehe(n,e){n.a.ec().Mc(e)}function xjn(n,e){return n.g-e.g}function the(n,e){return n*n/e}function on(n){return Jn(n),n}function $(n){return Jn(n),n}function J9(n){return Jn(n),n}function ihe(n){return new CE(n)}function rhe(n){return new qw(n)}function lz(n){return Jn(n),n}function che(n){return Jn(n),n}function FE(n){ec.call(this,n)}function Or(n){ec.call(this,n)}function Rjn(n){ec.call(this,n)}function vL(n){CIn.call(this,n)}function tm(n){ec.call(this,n)}function Gn(n){ec.call(this,n)}function Ar(n){ec.call(this,n)}function Kjn(n){ec.call(this,n)}function fp(n){ec.call(this,n)}function Fl(n){ec.call(this,n)}function _l(n){ec.call(this,n)}function hp(n){ec.call(this,n)}function eh(n){ec.call(this,n)}function kL(n){ec.call(this,n)}function Ne(n){ec.call(this,n)}function Fu(n){Jn(n),this.a=n}function az(n){return ld(n),n}function Zv(n){MW(n,n.length)}function n6(n){return n.b==n.c}function Iw(n){return!!n&&n.b}function uhe(n){return!!n&&n.k}function ohe(n){return!!n&&n.j}function she(n,e,t){n.c.Ef(e,t)}function Bjn(n,e){n.be(e),e.ae(n)}function lp(n){oh(),this.a=Pe(n)}function yL(){this.a=Ae(Pe(ur))}function Fjn(){throw T(new Ie)}function fhe(){throw T(new Ie)}function dz(){throw T(new Ie)}function _jn(){throw T(new Ie)}function hhe(){throw T(new Ie)}function lhe(){throw T(new Ie)}function _E(){_E=R,Om()}function Hl(){U9.call(this,"")}function e6(){U9.call(this,"")}function R1(){U9.call(this,"")}function fg(){U9.call(this,"")}function bz(n){Or.call(this,n)}function wz(n){Or.call(this,n)}function th(n){Gn.call(this,n)}function im(n){J3.call(this,n)}function Hjn(n){im.call(this,n)}function jL(n){RM.call(this,n)}function EL(n){VX.call(this,n,0)}function ML(){uJ.call(this,12,3)}function C(n,e){return vAn(n,e)}function HE(n,e){return o$(n,e)}function ahe(n,e){return n.a-e.a}function dhe(n,e){return n.a-e.a}function bhe(n,e){return n.a-e.a}function whe(n,e){return e in n.a}function qjn(n){return n.a?n.b:0}function ghe(n){return n.a?n.b:0}function phe(n,e,t){e.Cd(n.a[t])}function mhe(n,e,t){e.Pe(n.a[t])}function vhe(n,e){n.b=new rr(e)}function khe(n,e){return n.b=e,n}function Ujn(n,e){return n.c=e,n}function Gjn(n,e){return n.f=e,n}function yhe(n,e){return n.g=e,n}function gz(n,e){return n.a=e,n}function pz(n,e){return n.f=e,n}function jhe(n,e){return n.k=e,n}function mz(n,e){return n.a=e,n}function Ehe(n,e){return n.e=e,n}function vz(n,e){return n.e=e,n}function Mhe(n,e){return n.f=e,n}function The(n,e){n.b=!0,n.d=e}function Che(n,e){return n.b-e.b}function She(n,e){return n.g-e.g}function Phe(n,e){return n?0:e-1}function zjn(n,e){return n?0:e-1}function Ihe(n,e){return n?e-1:0}function Ohe(n,e){return n.s-e.s}function Ahe(n,e){return e.rg(n)}function Qd(n,e){return n.b=e,n}function qE(n,e){return n.a=e,n}function Yd(n,e){return n.c=e,n}function Zd(n,e){return n.d=e,n}function nb(n,e){return n.e=e,n}function kz(n,e){return n.f=e,n}function t6(n,e){return n.a=e,n}function rm(n,e){return n.b=e,n}function cm(n,e){return n.c=e,n}function an(n,e){return n.c=e,n}function Pn(n,e){return n.b=e,n}function dn(n,e){return n.d=e,n}function bn(n,e){return n.e=e,n}function Lhe(n,e){return n.f=e,n}function wn(n,e){return n.g=e,n}function gn(n,e){return n.a=e,n}function pn(n,e){return n.i=e,n}function mn(n,e){return n.j=e,n}function Nhe(n,e){oa(),ic(e,n)}function Dhe(n,e,t){Jwe(n.a,e,t)}function UE(n){$N.call(this,n)}function Xjn(n){Z5e.call(this,n)}function Vjn(n){SOn.call(this,n)}function yz(n){SOn.call(this,n)}function K1(n){Cb.call(this,n)}function Wjn(n){MD.call(this,n)}function Jjn(n){MD.call(this,n)}function Qjn(){OX.call(this,"")}function Ni(){this.a=0,this.b=0}function Yjn(){this.b=0,this.a=0}function Zjn(n,e){n.b=0,Zw(n,e)}function nEn(n,e){return n.k=e,n}function $he(n,e){return n.j=e,n}function xhe(n,e){n.c=e,n.b=!0}function eEn(){eEn=R,CQn=Xke()}function B1(){B1=R,voe=rke()}function tEn(){tEn=R,Ci=gye()}function jz(){jz=R,Na=Gm()}function um(){um=R,qdn=cke()}function iEn(){iEn=R,ise=uke()}function Ez(){Ez=R,yc=tEe()}function of(n){return n.e&&n.e()}function rEn(n){return n.l|n.m<<22}function cEn(n,e){return n.c._b(e)}function uEn(n,e){return iKn(n.b,e)}function TL(n){return n?n.d:null}function Rhe(n){return n?n.g:null}function Khe(n){return n?n.i:null}function Xa(n){return ll(n),n.o}function hg(n,e){return n.a+=e,n}function CL(n,e){return n.a+=e,n}function ql(n,e){return n.a+=e,n}function eb(n,e){return n.a+=e,n}function Mz(n,e){for(;n.Bd(e););}function GE(n){this.a=new ap(n)}function oEn(){throw T(new Ie)}function sEn(){throw T(new Ie)}function fEn(){throw T(new Ie)}function hEn(){throw T(new Ie)}function lEn(){throw T(new Ie)}function aEn(){throw T(new Ie)}function Ul(n){this.a=new iD(n)}function dEn(){this.a=new $5(Rln)}function bEn(){this.b=new $5(tln)}function wEn(){this.a=new $5(o1n)}function gEn(){this.b=new $5($q)}function pEn(){this.b=new $5($q)}function zE(n){this.a=0,this.b=n}function Tz(n){zGn(),ONe(this,n)}function om(n){return V1(n),n.a}function Q9(n){return n.b!=n.d.c}function Cz(n,e){return n.d[e.p]}function mEn(n,e){return XCe(n,e)}function Sz(n,e,t){n.splice(e,t)}function lg(n,e){for(;n.Re(e););}function vEn(n){n.c?Lqn(n):Nqn(n)}function kEn(){throw T(new Ie)}function yEn(){throw T(new Ie)}function jEn(){throw T(new Ie)}function EEn(){throw T(new Ie)}function MEn(){throw T(new Ie)}function TEn(){throw T(new Ie)}function CEn(){throw T(new Ie)}function SEn(){throw T(new Ie)}function PEn(){throw T(new Ie)}function IEn(){throw T(new Ie)}function Bhe(){throw T(new nc)}function Fhe(){throw T(new nc)}function Y9(n){this.a=new OEn(n)}function OEn(n){U4e(this,n,jje())}function Z9(n){return!n||uOn(n)}function n7(n){return nh[n]!=-1}function _he(){cI!=0&&(cI=0),uI=-1}function AEn(){BF==null&&(BF=[])}function e7(n,e){Tg.call(this,n,e)}function sm(n,e){e7.call(this,n,e)}function LEn(n,e){this.a=n,this.b=e}function NEn(n,e){this.a=n,this.b=e}function DEn(n,e){this.a=n,this.b=e}function $En(n,e){this.a=n,this.b=e}function xEn(n,e){this.a=n,this.b=e}function REn(n,e){this.a=n,this.b=e}function KEn(n,e){this.a=n,this.b=e}function fm(n,e){this.e=n,this.d=e}function Pz(n,e){this.b=n,this.c=e}function BEn(n,e){this.b=n,this.a=e}function FEn(n,e){this.b=n,this.a=e}function _En(n,e){this.b=n,this.a=e}function HEn(n,e){this.b=n,this.a=e}function qEn(n,e){this.a=n,this.b=e}function SL(n,e){this.a=n,this.b=e}function UEn(n,e){this.a=n,this.f=e}function tb(n,e){this.g=n,this.i=e}function je(n,e){this.f=n,this.g=e}function GEn(n,e){this.b=n,this.c=e}function zEn(n){KX(n.dc()),this.c=n}function Hhe(n,e){this.a=n,this.b=e}function XEn(n,e){this.a=n,this.b=e}function VEn(n){this.a=u(Pe(n),15)}function Iz(n){this.a=u(Pe(n),15)}function WEn(n){this.a=u(Pe(n),85)}function XE(n){this.b=u(Pe(n),85)}function VE(n){this.b=u(Pe(n),51)}function WE(){this.q=new y.Date}function PL(n,e){this.a=n,this.b=e}function JEn(n,e){return Zc(n.b,e)}function t7(n,e){return n.b.Hc(e)}function QEn(n,e){return n.b.Ic(e)}function YEn(n,e){return n.b.Qc(e)}function ZEn(n,e){return n.b.Hc(e)}function nMn(n,e){return n.c.uc(e)}function eMn(n,e){return ct(n.c,e)}function sf(n,e){return n.a._b(e)}function tMn(n,e){return n>e&&e<X5}function i6(n){return n.f.c+n.i.c}function qhe(n){return GIn(),n?aQn:lQn}function ap(n){bRn.call(this,n,0)}function iMn(){iD.call(this,null)}function dp(n){this.c=n,t$n(this)}function Mt(){yCn(this),vo(this)}function fl(){fl=R,pQn=new Tbn}function hm(){hm=R,sv=new Sbn}function Ow(){Ow=R,ZF=new HTn}function JE(){JE=R,PQn=new qTn}function lm(){lm=R,Nun=new Kbn}function Oz(){i$.call(this,null)}function Va(){Va=R,v3=new Xbn}function Ut(n,e){V1(n),n.a.Nb(e)}function Uhe(n,e){return n.a.Xc(e)}function Ghe(n,e){return n.a.Yc(e)}function IL(n,e){return n.a.$c(e)}function OL(n,e){return n.a._c(e)}function zhe(n,e){return n.Gc(e),n}function Xhe(n,e){return Ki(n,e),n}function Vhe(n,e){aR(H(n.a),e)}function Whe(n,e){aR(H(n.a),e)}function rMn(n,e){return n.Gc(e),n}function Jhe(n,e){return n.a.f=e,n}function cMn(n,e){return n.a.d=e,n}function uMn(n,e){return n.a.g=e,n}function oMn(n,e){return n.a.j=e,n}function As(n,e){return n.a.a=e,n}function Ls(n,e){return n.a.d=e,n}function Ns(n,e){return n.a.e=e,n}function Ds(n,e){return n.a.g=e,n}function i7(n,e){return n.a.f=e,n}function Qhe(n){return n.b=!1,n}function sMn(){sMn=R,KQn=new Ybn}function QE(){QE=R,d_=new dSn}function Az(){Az=R,jZn=new Gwn}function fMn(){fMn=R,EZn=new Ywn}function Lz(){Lz=R,MZn=new bIn}function Nz(){Nz=R,Ion=new t0n}function hMn(){hMn=R,NZn=new a0n}function r6(){r6=R,$Zn=new d0n}function r7(){r7=R,BZn=new F0n}function c7(){c7=R,KZn=new Ni}function lMn(){lMn=R,qZn=new Mgn}function c6(){c6=R,QZn=new cpn}function YE(){YE=R,w2=new Ipn}function ZE(){ZE=R,Jte=new Y4n}function nM(){nM=R,xq=new dMn}function eM(){eM=R,Rq=new aSn}function u6(){u6=R,_j=new dOn}function aMn(){Q$n(),this.c=new ML}function dMn(){je.call(this,VXn,0)}function Yhe(n,e,t){Lr(n.d,e.f,t)}function Zhe(n,e,t,i){I9e(n,i,e,t)}function nle(n,e,t,i){nCe(i,n,e,t)}function ele(n,e,t,i){OLe(i,n,e,t)}function o6(n,e){s1(n.c.c,e.b,e)}function ib(n,e){s1(n.c.b,e.c,e)}function tle(n){return n.e.b+n.f.b}function ile(n){return n.e.a+n.f.a}function rle(n){return n.b?n.b:n.a}function cle(n){return(n.c+n.a)/2}function bMn(n,e){return B7e(n.a,e)}function s6(n,e){return n.a=e.g,n}function Dz(){Dz=R,Hdn=new ajn}function wMn(){wMn=R,Boe=new fjn}function Aw(){Aw=R,poe=new Z4n}function gMn(){gMn=R,Toe=new hvn}function pMn(){pMn=R,Koe=new sjn}function F1(){F1=R,Is=new nz}function tM(){tM=R,yA=new de}function f6(){f6=R,EU=new TCn}function Gl(){Gl=R,aE=new CCn}function AL(){AL=R,Zoe=new T6n}function dr(){dr=R,ese=new C6n}function _1(){_1=R,Ra=new P5n}function $z(){$z=R,Zdn=new Z}function iM(n){return u(n,44).ld()}function LL(n){return n.b<n.d.gc()}function ule(n,e){return e.split(n)}function NL(n,e){return Ec(n,e)>0}function DL(n,e){return Ec(n,e)<0}function mMn(n,e){return JN(n.a,e)}function ole(n,e){kAn.call(this,n,e)}function xz(n){wD(),cPn.call(this,n)}function Rz(n,e){dIn(n,n.length,e)}function u7(n,e){_In(n,n.length,e)}function h6(n,e){return n.a.get(e)}function vMn(n,e){return Zc(n.e,e)}function Kz(n){return Jn(n),!1}function Bz(n){this.a=u(Pe(n),229)}function rM(n){On.call(this,n,21)}function cM(n,e){je.call(this,n,e)}function $L(n,e){je.call(this,n,e)}function kMn(n,e){this.b=n,this.a=e}function uM(n,e){this.d=n,this.e=e}function yMn(n,e){this.a=n,this.b=e}function jMn(n,e){this.a=n,this.b=e}function EMn(n,e){this.a=n,this.b=e}function MMn(n,e){this.a=n,this.b=e}function bp(n,e){this.a=n,this.b=e}function TMn(n,e){this.b=n,this.a=e}function Fz(n,e){this.b=n,this.a=e}function _z(n,e){je.call(this,n,e)}function Hz(n,e){je.call(this,n,e)}function ag(n,e){je.call(this,n,e)}function xL(n,e){je.call(this,n,e)}function RL(n,e){je.call(this,n,e)}function KL(n,e){je.call(this,n,e)}function oM(n,e){je.call(this,n,e)}function qz(n,e){this.b=n,this.a=e}function sM(n,e){je.call(this,n,e)}function Uz(n,e){this.b=n,this.a=e}function fM(n,e){je.call(this,n,e)}function CMn(n,e){this.b=n,this.a=e}function Gz(n,e){je.call(this,n,e)}function BL(n,e){je.call(this,n,e)}function o7(n,e){je.call(this,n,e)}function l6(n,e,t){n.splice(e,0,t)}function sle(n,e,t){n.Mb(t)&&e.Cd(t)}function fle(n,e,t){e.Pe(n.a.Ye(t))}function hle(n,e,t){e.Dd(n.a.Ze(t))}function lle(n,e,t){e.Cd(n.a.Kb(t))}function ale(n,e){return Su(n.c,e)}function dle(n,e){return Su(n.e,e)}function hM(n,e){je.call(this,n,e)}function lM(n,e){je.call(this,n,e)}function a6(n,e){je.call(this,n,e)}function zz(n,e){je.call(this,n,e)}function ei(n,e){je.call(this,n,e)}function aM(n,e){je.call(this,n,e)}function SMn(n,e){this.a=n,this.b=e}function PMn(n,e){this.a=n,this.b=e}function IMn(n,e){this.a=n,this.b=e}function OMn(n,e){this.a=n,this.b=e}function AMn(n,e){this.a=n,this.b=e}function LMn(n,e){this.a=n,this.b=e}function NMn(n,e){this.b=n,this.a=e}function DMn(n,e){this.b=n,this.a=e}function Xz(n,e){this.b=n,this.a=e}function am(n,e){this.c=n,this.d=e}function $Mn(n,e){this.e=n,this.d=e}function xMn(n,e){this.a=n,this.b=e}function RMn(n,e){this.a=n,this.b=e}function KMn(n,e){this.a=n,this.b=e}function BMn(n,e){this.b=n,this.a=e}function FMn(n,e){this.b=e,this.c=n}function dM(n,e){je.call(this,n,e)}function s7(n,e){je.call(this,n,e)}function FL(n,e){je.call(this,n,e)}function Vz(n,e){je.call(this,n,e)}function d6(n,e){je.call(this,n,e)}function _L(n,e){je.call(this,n,e)}function HL(n,e){je.call(this,n,e)}function f7(n,e){je.call(this,n,e)}function Wz(n,e){je.call(this,n,e)}function qL(n,e){je.call(this,n,e)}function b6(n,e){je.call(this,n,e)}function Jz(n,e){je.call(this,n,e)}function w6(n,e){je.call(this,n,e)}function g6(n,e){je.call(this,n,e)}function Lw(n,e){je.call(this,n,e)}function UL(n,e){je.call(this,n,e)}function GL(n,e){je.call(this,n,e)}function Qz(n,e){je.call(this,n,e)}function h7(n,e){je.call(this,n,e)}function dg(n,e){je.call(this,n,e)}function zL(n,e){je.call(this,n,e)}function bM(n,e){je.call(this,n,e)}function l7(n,e){je.call(this,n,e)}function Nw(n,e){je.call(this,n,e)}function wM(n,e){je.call(this,n,e)}function Yz(n,e){je.call(this,n,e)}function XL(n,e){je.call(this,n,e)}function VL(n,e){je.call(this,n,e)}function WL(n,e){je.call(this,n,e)}function JL(n,e){je.call(this,n,e)}function QL(n,e){je.call(this,n,e)}function YL(n,e){je.call(this,n,e)}function ZL(n,e){je.call(this,n,e)}function _Mn(n,e){this.b=n,this.a=e}function Zz(n,e){je.call(this,n,e)}function HMn(n,e){this.a=n,this.b=e}function qMn(n,e){this.a=n,this.b=e}function UMn(n,e){this.a=n,this.b=e}function nX(n,e){je.call(this,n,e)}function eX(n,e){je.call(this,n,e)}function GMn(n,e){this.a=n,this.b=e}function ble(n,e){return vm(),e!=n}function a7(n){return oe(n.a),n.b}function nN(n){return yMe(n,n.c),n}function zMn(){return eEn(),new CQn}function XMn(){XM(),this.a=new mV}function VMn(){AS(),this.a=new ni}function WMn(){DD(),this.b=new ni}function JMn(n,e){this.b=n,this.d=e}function QMn(n,e){this.a=n,this.b=e}function YMn(n,e){this.a=n,this.b=e}function ZMn(n,e){this.a=n,this.b=e}function nTn(n,e){this.b=n,this.a=e}function tX(n,e){je.call(this,n,e)}function iX(n,e){je.call(this,n,e)}function gM(n,e){je.call(this,n,e)}function rb(n,e){je.call(this,n,e)}function eN(n,e){je.call(this,n,e)}function pM(n,e){je.call(this,n,e)}function rX(n,e){je.call(this,n,e)}function cX(n,e){je.call(this,n,e)}function d7(n,e){je.call(this,n,e)}function uX(n,e){je.call(this,n,e)}function tN(n,e){je.call(this,n,e)}function mM(n,e){je.call(this,n,e)}function iN(n,e){je.call(this,n,e)}function rN(n,e){je.call(this,n,e)}function cN(n,e){je.call(this,n,e)}function uN(n,e){je.call(this,n,e)}function oX(n,e){je.call(this,n,e)}function oN(n,e){je.call(this,n,e)}function sX(n,e){je.call(this,n,e)}function b7(n,e){je.call(this,n,e)}function sN(n,e){je.call(this,n,e)}function fX(n,e){je.call(this,n,e)}function w7(n,e){je.call(this,n,e)}function hX(n,e){je.call(this,n,e)}function eTn(n,e){this.b=n,this.a=e}function tTn(n,e){this.b=n,this.a=e}function iTn(n,e){this.b=n,this.a=e}function rTn(n,e){this.b=n,this.a=e}function lX(n,e){this.a=n,this.b=e}function cTn(n,e){this.a=n,this.b=e}function uTn(n,e){this.a=n,this.b=e}function V(n,e){this.a=n,this.b=e}function p6(n,e){je.call(this,n,e)}function g7(n,e){je.call(this,n,e)}function wp(n,e){je.call(this,n,e)}function m6(n,e){je.call(this,n,e)}function p7(n,e){je.call(this,n,e)}function fN(n,e){je.call(this,n,e)}function vM(n,e){je.call(this,n,e)}function v6(n,e){je.call(this,n,e)}function hN(n,e){je.call(this,n,e)}function kM(n,e){je.call(this,n,e)}function bg(n,e){je.call(this,n,e)}function m7(n,e){je.call(this,n,e)}function k6(n,e){je.call(this,n,e)}function y6(n,e){je.call(this,n,e)}function v7(n,e){je.call(this,n,e)}function yM(n,e){je.call(this,n,e)}function wg(n,e){je.call(this,n,e)}function lN(n,e){je.call(this,n,e)}function oTn(n,e){je.call(this,n,e)}function jM(n,e){je.call(this,n,e)}function sTn(n,e){this.a=n,this.b=e}function fTn(n,e){this.a=n,this.b=e}function hTn(n,e){this.a=n,this.b=e}function lTn(n,e){this.a=n,this.b=e}function aTn(n,e){this.a=n,this.b=e}function dTn(n,e){this.a=n,this.b=e}function bi(n,e){this.a=n,this.b=e}function bTn(n,e){this.a=n,this.b=e}function wTn(n,e){this.a=n,this.b=e}function gTn(n,e){this.a=n,this.b=e}function pTn(n,e){this.a=n,this.b=e}function mTn(n,e){this.a=n,this.b=e}function vTn(n,e){this.a=n,this.b=e}function kTn(n,e){this.b=n,this.a=e}function yTn(n,e){this.b=n,this.a=e}function jTn(n,e){this.b=n,this.a=e}function ETn(n,e){this.b=n,this.a=e}function MTn(n,e){this.a=n,this.b=e}function TTn(n,e){this.a=n,this.b=e}function EM(n,e){je.call(this,n,e)}function CTn(n,e){this.a=n,this.b=e}function STn(n,e){this.a=n,this.b=e}function gp(n,e){je.call(this,n,e)}function PTn(n,e){this.f=n,this.c=e}function aX(n,e){return Su(n.g,e)}function wle(n,e){return Su(e.b,n)}function ITn(n,e){return wx(n.a,e)}function gle(n,e){return-n.b.af(e)}function ple(n,e){n&&Ve(fE,n,e)}function dX(n,e){n.i=null,kC(n,e)}function mle(n,e,t){kFn(e,oR(n,t))}function vle(n,e,t){kFn(e,oR(n,t))}function kle(n,e){VTe(n.a,u(e,58))}function OTn(n,e){Ume(n.a,u(e,12))}function MM(n,e){this.a=n,this.b=e}function ATn(n,e){this.a=n,this.b=e}function LTn(n,e){this.a=n,this.b=e}function NTn(n,e){this.a=n,this.b=e}function DTn(n,e){this.a=n,this.b=e}function $Tn(n,e){this.d=n,this.b=e}function xTn(n,e){this.e=n,this.a=e}function k7(n,e){this.b=n,this.c=e}function bX(n,e){this.i=n,this.g=e}function wX(n,e){this.d=n,this.e=e}function yle(n,e){c4e(new ne(n),e)}function TM(n){return xk(n.c,n.b)}function Fr(n){return n?n.md():null}function x(n){return n??null}function Si(n){return typeof n===nK}function Dw(n){return typeof n===i3}function $w(n){return typeof n===htn}function cb(n,e){return Ec(n,e)==0}function CM(n,e){return Ec(n,e)>=0}function j6(n,e){return Ec(n,e)!=0}function SM(n,e){return jve(n.Kc(),e)}function H1(n,e){return n.Rd().Xb(e)}function RTn(n){return eo(n),n.d.gc()}function PM(n){return D6(n==null),n}function E6(n,e){return n.a+=""+e,n}function Er(n,e){return n.a+=""+e,n}function M6(n,e){return n.a+=""+e,n}function Lc(n,e){return n.a+=""+e,n}function Be(n,e){return n.a+=""+e,n}function gX(n,e){return n.a+=""+e,n}function jle(n){return""+(Jn(n),n)}function KTn(n){Hu(this),u5(this,n)}function BTn(){cJ(),lW.call(this)}function FTn(n,e){gW.call(this,n,e)}function _Tn(n,e){gW.call(this,n,e)}function IM(n,e){gW.call(this,n,e)}function ir(n,e){xt(n,e,n.c.b,n.c)}function gg(n,e){xt(n,e,n.a,n.a.a)}function pX(n){return Nn(n,0),null}function HTn(){this.b=0,this.a=!1}function qTn(){this.b=0,this.a=!1}function UTn(){this.b=new ap(Qw(12))}function GTn(){GTn=R,kYn=Me(jx())}function zTn(){zTn=R,HZn=Me(iqn())}function XTn(){XTn=R,lre=Me($xn())}function mX(){mX=R,BG(),oun=new de}function ff(n){return n.a=0,n.b=0,n}function VTn(n,e){return n.a=e.g+1,n}function aN(n,e){Fw.call(this,n,e)}function Tn(n,e){Lt.call(this,n,e)}function pg(n,e){bX.call(this,n,e)}function WTn(n,e){M7.call(this,n,e)}function dN(n,e){Qm.call(this,n,e)}function Ge(n,e){tM(),Ve(yA,n,e)}function JTn(n,e){n.q.setTime(id(e))}function Ele(n){y.clearTimeout(n)}function Mle(n){return Pe(n),new T6(n)}function QTn(n,e){return x(n)===x(e)}function YTn(n,e){return n.a.a.a.cc(e)}function bN(n,e){return qo(n.a,0,e)}function vX(n){return S0e(u(n,74))}function pp(n){return wi((Jn(n),n))}function Tle(n){return wi((Jn(n),n))}function ZTn(n){return Yc(n.l,n.m,n.h)}function kX(n,e){return jc(n.a,e.a)}function Cle(n,e){return BIn(n.a,e.a)}function Sle(n,e){return bt(n.a,e.a)}function ih(n,e){return n.indexOf(e)}function Ple(n,e){return n.j[e.p]==2}function ub(n,e){return n==e?0:n?1:-1}function OM(n){return n<10?"0"+n:""+n}function Vr(n){return typeof n===htn}function Ile(n){return n==tw||n==O0}function Ole(n){return n==tw||n==I0}function nCn(n,e){return jc(n.g,e.g)}function yX(n){return qr(n.b.b,n,0)}function eCn(){iT.call(this,0,0,0,0)}function rh(){jG.call(this,new Ql)}function jX(n,e){xm(n,0,n.length,e)}function Ale(n,e){return nn(n.a,e),e}function Lle(n,e){return Rs(),e.a+=n}function Nle(n,e){return Rs(),e.a+=n}function Dle(n,e){return Rs(),e.c+=n}function $le(n,e){return nn(n.c,e),n}function EX(n,e){return To(n.a,e),n}function tCn(n){this.a=zMn(),this.b=n}function iCn(n){this.a=zMn(),this.b=n}function rr(n){this.a=n.a,this.b=n.b}function T6(n){this.a=n,GA.call(this)}function rCn(n){this.a=n,GA.call(this)}function mp(){Ho.call(this,0,0,0,0)}function AM(n){return To(new ii,n)}function cCn(n){return yT(u(n,123))}function fo(n){return n.vh()&&n.wh()}function mg(n){return n!=Qf&&n!=Oa}function hl(n){return n==Kr||n==Xr}function vg(n){return n==us||n==Wf}function uCn(n){return n==I2||n==P2}function xle(n,e){return jc(n.g,e.g)}function oCn(n,e){return new Qm(e,n)}function Rle(n,e){return new Qm(e,n)}function MX(n){return rwe(n.b.Kc(),n.a)}function wN(n,e){c4(n,e),Um(n,n.D)}function gN(n,e,t){aC(n,e),lC(n,t)}function kg(n,e,t){Pb(n,e),Sb(n,t)}function Bo(n,e,t){eu(n,e),tu(n,t)}function y7(n,e,t){Fm(n,e),Hm(n,t)}function j7(n,e,t){_m(n,e),qm(n,t)}function sCn(n,e,t){uV.call(this,n,e,t)}function TX(n){PTn.call(this,n,!0)}function fCn(){cM.call(this,"Tail",3)}function hCn(){cM.call(this,"Head",1)}function q1(n){dh(),mve.call(this,n)}function ob(n){iT.call(this,n,n,n,n)}function pN(n){n.c=F(ki,Rn,1,0,5,1)}function CX(n){return n.b&&xR(n),n.a}function SX(n){return n.b&&xR(n),n.c}function Kle(n,e){Uf||(n.b=e)}function Ble(n,e){return n[n.length]=e}function Fle(n,e){return n[n.length]=e}function _le(n,e){return Yw(e,Pf(n))}function Hle(n,e){return Yw(e,Pf(n))}function qle(n,e){return pC(dD(n.d),e)}function Ule(n,e){return pC(dD(n.g),e)}function Gle(n,e){return pC(dD(n.j),e)}function Di(n,e){Lt.call(this,n.b,e)}function zle(n,e){ve(Pc(n.a),AAn(e))}function Xle(n,e){ve(no(n.a),LAn(e))}function Vle(n,e,t){Bo(t,t.i+n,t.j+e)}function lCn(n,e,t){$t(n.c[e.g],e.g,t)}function Wle(n,e,t){u(n.c,71).Gi(e,t)}function mN(n,e,t){return $t(n,e,t),t}function aCn(n){nu(n.Sf(),new A9n(n))}function yg(n){return n!=null?mt(n):0}function Jle(n){return n==null?0:mt(n)}function C6(n){nt(),Wd.call(this,n)}function dCn(n){this.a=n,_V.call(this,n)}function Cf(){Cf=R,y.Math.log(2)}function Fo(){Fo=R,rl=(gMn(),Toe)}function bCn(){bCn=R,QH=new v5(hU)}function Oe(){Oe=R,new wCn,new Z}function wCn(){new de,new de,new de}function Qle(){throw T(new Fl(QJn))}function Yle(){throw T(new Fl(QJn))}function Zle(){throw T(new Fl(YJn))}function n1e(){throw T(new Fl(YJn))}function vN(n){this.a=n,XE.call(this,n)}function kN(n){this.a=n,XE.call(this,n)}function gCn(n,e){gb(),this.a=n,this.b=e}function e1e(n,e){Pe(e),Sg(n).Jc(new Bu)}function Yt(n,e){QN(n.c,n.c.length,e)}function tc(n){return n.a<n.c.c.length}function PX(n){return n.a<n.c.a.length}function pCn(n,e){return n.a?n.b:e.We()}function jc(n,e){return n<e?-1:n>e?1:0}function IX(n,e){return Ec(n,e)>0?n:e}function Yc(n,e,t){return{l:n,m:e,h:t}}function t1e(n,e){n.a!=null&&OTn(e,n.a)}function i1e(n){Zi(n,null),Oi(n,null)}function r1e(n,e,t){return Ve(n.g,t,e)}function jg(n,e,t){return YY(e,t,n.c)}function c1e(n,e,t){return Ve(n.k,t,e)}function u1e(n,e,t){return GAe(n,e,t),t}function o1e(n,e){return ko(),e.n.b+=n}function mCn(n){YW.call(this),this.b=n}function OX(n){pV.call(this),this.a=n}function vCn(){cM.call(this,"Range",2)}function LM(n){this.b=n,this.a=new Z}function kCn(n){this.b=new Dwn,this.a=n}function yCn(n){n.a=new AA,n.c=new AA}function jCn(n){n.a=new de,n.d=new de}function ECn(n){$D(n,null),xD(n,null)}function MCn(n,e){return XAe(n.a,e,null)}function s1e(n,e){return Ve(n.a,e.a,e)}function Fi(n){return new V(n.a,n.b)}function AX(n){return new V(n.c,n.d)}function f1e(n){return new V(n.c,n.d)}function S6(n,e){return cAe(n.c,n.b,e)}function L(n,e){return n!=null&&Cx(n,e)}function yN(n,e){return Yve(n.Kc(),e)!=-1}function NM(n){return n.Ob()?n.Pb():null}function h1e(n){this.b=(Ln(),new eL(n))}function LX(n){this.a=n,de.call(this)}function TCn(){M7.call(this,null,null)}function CCn(){FM.call(this,null,null)}function SCn(){je.call(this,"INSTANCE",0)}function PCn(){AZ(),this.a=new $5(Pon)}function ICn(n){return ws(n,0,n.length)}function l1e(n,e){return new XCn(n.Kc(),e)}function NX(n,e){return n.a.Bc(e)!=null}function OCn(n,e){me(n),n.Gc(u(e,15))}function a1e(n,e,t){n.c.bd(e,u(t,136))}function d1e(n,e,t){n.c.Ui(e,u(t,136))}function ACn(n,e){n.c&&(nW(e),iAn(e))}function b1e(n,e){n.q.setHours(e),F5(n,e)}function w1e(n,e){hb(e,n.a.a.a,n.a.a.b)}function g1e(n,e,t,i){$t(n.a[e.g],t.g,i)}function jN(n,e,t){return n.a[e.g][t.g]}function p1e(n,e){return n.e[e.c.p][e.p]}function m1e(n,e){return n.c[e.c.p][e.p]}function Sf(n,e){return n.a[e.c.p][e.p]}function v1e(n,e){return n.j[e.p]=OTe(e)}function EN(n,e){return n.a.Bc(e)!=null}function k1e(n,e){return $(B(e.a))<=n}function y1e(n,e){return $(B(e.a))>=n}function j1e(n,e){return RJ(n.f,e.Pg())}function vp(n,e){return n.a*e.a+n.b*e.b}function E1e(n,e){return n.a<PV(e)?-1:1}function M1e(n,e){return RJ(n.b,e.Pg())}function T1e(n,e,t){return t?e!=0:e!=n-1}function LCn(n,e,t){n.a=e^1502,n.b=t^NK}function C1e(n,e,t){return n.a=e,n.b=t,n}function ch(n,e){return n.a*=e,n.b*=e,n}function nn(n,e){return Bn(n.c,e),!0}function P6(n,e,t){return $t(n.g,e,t),t}function ti(n,e,t){R7.call(this,n,e,t)}function DM(n,e,t){ti.call(this,n,e,t)}function DX(n,e,t){JM.call(this,n,e,t)}function NCn(n,e,t){JM.call(this,n,e,t)}function DCn(n,e,t){DX.call(this,n,e,t)}function Cu(n,e,t){ti.call(this,n,e,t)}function $Cn(n,e,t){DM.call(this,n,e,t)}function $X(n,e,t){R7.call(this,n,e,t)}function Eg(n,e,t){R7.call(this,n,e,t)}function xCn(n,e,t){$X.call(this,n,e,t)}function $M(n){n.j=F(kun,J,319,0,0,1)}function Mg(){this.a=F(ki,Rn,1,8,5,1)}function xX(){this.Bb|=256,this.Bb|=512}function ne(n){this.i=n,this.f=this.i.j}function U1(n){this.c=n,this.a=this.c.a}function Tg(n,e){this.a=n,XE.call(this,e)}function RX(n,e){return H5e(n,new R1,e).a}function KX(n){if(!n)throw T(new W9)}function BX(n){if(!n)throw T(new Mu)}function FX(){FX=R,FX(),IQn=new xbn}function RCn(){RCn=R,AL(),nse=new T8n}function dm(){dm=R,Oun=new wL(null)}function S1e(n){G7(n,TWn),SS(n,GLe(n))}function KCn(n){n.a=u(Un(n.b.a,4),129)}function BCn(n){n.a=u(Un(n.b.a,4),129)}function FCn(n){n.b.Qb(),--n.d.f.d,sT(n.d)}function _X(n){this.a=n,_8n.call(this,n.d)}function _Cn(n,e){this.a=n,EL.call(this,e)}function HCn(n,e){this.a=n,EL.call(this,e)}function qCn(n,e){this.a=n,EL.call(this,e)}function HX(n,e){this.a=e,EL.call(this,n)}function UCn(n,e){this.a=e,zD.call(this,n)}function GCn(n,e){this.a=n,zD.call(this,e)}function zCn(n,e){this.a=e,VE.call(this,n)}function XCn(n,e){this.a=e,VE.call(this,n)}function ce(n,e){return Pe(e),new zCn(n,e)}function VCn(n,e){return new v_n(n.a,n.b,e)}function qX(n,e,t){return n.indexOf(e,t)}function xM(n,e){return n.lastIndexOf(e)}function I6(n){return n==null?gu:Jr(n)}function P1e(n){return n==null?null:n.name}function I1e(n){return n.l+n.m*o3+n.h*vd}function O1e(n){return Q9(n.a)?NAn(n):null}function ls(n){U9.call(this,(Jn(n),n))}function mo(n){U9.call(this,(Jn(n),n))}function WCn(n){XA.call(this,u(Pe(n),34))}function JCn(n){XA.call(this,u(Pe(n),34))}function MN(n){jG.call(this,new zJ(n))}function RM(n){J3.call(this,n),this.a=n}function UX(n){W3.call(this,n),this.a=n}function GX(n){im.call(this,n),this.a=n}function QCn(){$M(this),MT(this),this.je()}function YCn(n){this.a=n,ZA.call(this,n)}function ho(n){return oe(n.a!=null),n.a}function ZCn(n,e){return nn(e.a,n.a),n.a}function nSn(n,e){return nn(e.b,n.a),n.a}function sb(n,e){return nn(e.a,n.a),n.a}function E7(n,e,t){return N$(n,e,e,t),n}function KM(n,e){return++n.b,nn(n.a,e)}function zX(n,e){return++n.b,du(n.a,e)}function A1e(n,e){return bt(n.c.d,e.c.d)}function L1e(n,e){return bt(n.c.c,e.c.c)}function N1e(n,e){return bt(n.n.a,e.n.a)}function lu(n,e){return u(ot(n.b,e),15)}function D1e(n,e){return n.n.b=(Jn(e),e)}function $1e(n,e){return n.n.b=(Jn(e),e)}function Su(n,e){return!!e&&n.b[e.g]==e}function O6(n){return tc(n.a)||tc(n.b)}function fb(n){return n.$H||(n.$H=++bDe)}function x1e(n){return n.a!=null?n.a:null}function R1e(n,e){return bt(n.e.b,e.e.b)}function K1e(n,e){return bt(n.e.a,e.e.a)}function B1e(n,e,t){return xLn(n,e,t,n.b)}function XX(n,e,t){return xLn(n,e,t,n.c)}function F1e(n){return Rs(),!!n&&!n.dc()}function eSn(){c6(),this.b=new b7n(this)}function BM(){BM=R,bI=new Lt(gXn,0)}function _n(){_n=R,pa=!1,uv=!0}function zl(n){var e;e=n.a,n.a=n.b,n.b=e}function M7(n,e){f6(),this.a=n,this.b=e}function FM(n,e){Gl(),this.b=n,this.c=e}function TN(n,e){nD(),this.f=e,this.d=n}function VX(n,e){xJ(e,n),this.d=n,this.c=e}function WX(n,e){cZ.call(this,n,e,null)}function tSn(n,e,t,i){pW.call(this,n,e,t,i)}function kp(n){this.d=n,ne.call(this,n)}function yp(n){this.c=n,ne.call(this,n)}function T7(n){this.c=n,kp.call(this,n)}function _1e(n){return new Xw(3,n)}function Lh(n){return Mo(n,m0),new Gc(n)}function iSn(n){return Om(),parseInt(n)||-1}function H1e(n){return KE(),Ee((hAn(),oQn),n)}function bm(n,e,t){return qX(n,wu(e),t)}function CN(n,e){return new tPn(n,n.gc(),e)}function q1e(n,e){return eD(n.c).Md().Xb(e)}function wm(n,e,t){var i;i=n.fd(e),i.Rb(t)}function JX(n,e,t){u(hk(n,e),21).Fc(t)}function U1e(n,e,t){cx(n.a,t),uS(n.a,e)}function C7(n){L(n,158)&&u(n,158).pi()}function rSn(n){HV.call(this,n,null,null)}function SN(n){Ow(),this.b=n,this.a=!0}function cSn(n){JE(),this.b=n,this.a=!0}function gm(n){return oe(n.b!=0),n.a.a.c}function $s(n){return oe(n.b!=0),n.c.b.c}function G1e(n,e){return N$(n,e,e+1,""),n}function kt(n,e){return!!n.q&&Zc(n.q,e)}function uSn(n){return n.b=u(zW(n.a),44)}function z1e(n){return n.f!=null?n.f:""+n.g}function PN(n){return n.f!=null?n.f:""+n.g}function X1e(n,e){return n>0?e/(n*n):e*100}function V1e(n,e){return n>0?e*e/n:e*e*100}function xw(n,e){return u(Df(n.a,e),34)}function W1e(n,e){return oa(),In(n,e.e,e)}function J1e(n,e,t){return ZE(),t.Mg(n,e)}function Q1e(n){return kl(),n.e.a+n.f.a/2}function Y1e(n,e,t){return kl(),t.e.a-n*e}function Z1e(n){return kl(),n.e.b+n.f.b/2}function nae(n,e,t){return kl(),t.e.b-n*e}function oSn(n){n.d=new rSn(n),n.e=new de}function sSn(){this.a=new jb,this.b=new jb}function fSn(n){this.c=n,this.a=1,this.b=1}function hSn(n){YR(),Syn(this),this.Ff(n)}function eae(n,e,t){YT(),n.pf(e)&&t.Cd(n)}function tae(n,e,t){return nn(e,yKn(n,t))}function hb(n,e,t){return n.a+=e,n.b+=t,n}function iae(n,e,t){return n.a*=e,n.b*=t,n}function QX(n,e){return n.a=e.a,n.b=e.b,n}function _M(n){return n.a=-n.a,n.b=-n.b,n}function A6(n,e,t){return n.a-=e,n.b-=t,n}function lSn(n){Mt.call(this),t5(this,n)}function aSn(){je.call(this,"GROW_TREE",0)}function dSn(){je.call(this,"POLYOMINO",0)}function lo(n,e,t){Ou.call(this,n,e,t,2)}function rae(n,e,t){p5(Pc(n.a),e,AAn(t))}function bSn(n,e){f6(),M7.call(this,n,e)}function YX(n,e){Gl(),FM.call(this,n,e)}function wSn(n,e){Gl(),YX.call(this,n,e)}function gSn(n,e){Gl(),FM.call(this,n,e)}function cae(n,e){return n.c.Fc(u(e,136))}function uae(n,e,t){p5(no(n.a),e,LAn(t))}function pSn(n){this.c=n,eu(n,0),tu(n,0)}function IN(n,e){Fo(),uT.call(this,n,e)}function mSn(n,e){Fo(),IN.call(this,n,e)}function ZX(n,e){Fo(),IN.call(this,n,e)}function nV(n,e){Fo(),uT.call(this,n,e)}function vSn(n,e){Fo(),ZX.call(this,n,e)}function kSn(n,e){Fo(),nV.call(this,n,e)}function ySn(n,e){Fo(),uT.call(this,n,e)}function oae(n,e,t){return e.zl(n.e,n.c,t)}function sae(n,e,t){return e.Al(n.e,n.c,t)}function eV(n,e,t){return qS(fk(n,e),t)}function ON(n,e){return ta(n.e,u(e,54))}function fae(n){return n==null?null:DLe(n)}function hae(n){return n==null?null:Sje(n)}function lae(n){return n==null?null:Jr(n)}function aae(n){return n==null?null:Jr(n)}function un(n){return D6(n==null||Dw(n)),n}function B(n){return D6(n==null||$w(n)),n}function Ae(n){return D6(n==null||Si(n)),n}function ll(n){n.o==null&&cTe(n)}function tV(n){if(!n)throw T(new W9)}function dae(n){if(!n)throw T(new uL)}function oe(n){if(!n)throw T(new nc)}function Rw(n){if(!n)throw T(new Mu)}function jSn(n){if(!n)throw T(new Ko)}function pm(){pm=R,lE=new cjn,new ujn}function Cg(){Cg=R,L2=new lt("root")}function iV(){rxn.call(this),this.Bb|=hr}function bae(n,e){this.d=n,r9n(this),this.b=e}function rV(n,e){i$.call(this,n),this.a=e}function cV(n,e){i$.call(this,n),this.a=e}function uV(n,e,t){VT.call(this,n,e,t,null)}function ESn(n,e,t){VT.call(this,n,e,t,null)}function S7(n,e){this.c=n,fm.call(this,n,e)}function L6(n,e){this.a=n,S7.call(this,n,e)}function oV(n){this.q=new y.Date(id(n))}function MSn(n){return n>8?0:n+1}function TSn(n,e){Uf||nn(n.a,e)}function wae(n,e){return c7(),Jm(e.d.i,n)}function gae(n,e){return Hp(),new tUn(e,n)}function pae(n,e,t){return n.Ne(e,t)<=0?t:e}function mae(n,e,t){return n.Ne(e,t)<=0?e:t}function vae(n,e){return u(Df(n.b,e),143)}function kae(n,e){return u(Df(n.c,e),233)}function AN(n){return u(sn(n.a,n.b),293)}function CSn(n){return new V(n.c,n.d+n.a)}function SSn(n){return Jn(n),n?1231:1237}function PSn(n){return ko(),uCn(u(n,203))}function Kw(){Kw=R,ton=yn((go(),Gd))}function yae(n,e){e.a?TMe(n,e):EN(n.a,e.b)}function P7(n,e,t){++n.j,n.tj(),t$(n,e,t)}function ISn(n,e,t){++n.j,n.qj(e,n.Zi(e,t))}function OSn(n,e,t){var i;i=n.fd(e),i.Rb(t)}function sV(n,e,t){return t=Po(n,e,6,t),t}function fV(n,e,t){return t=Po(n,e,3,t),t}function hV(n,e,t){return t=Po(n,e,9,t),t}function uh(n,e){return G7(e,Ntn),n.f=e,n}function lV(n,e){return(e&et)%n.d.length}function ASn(n,e,t){return qen(n.c,n.b,e,t)}function LSn(n,e){this.c=n,Cb.call(this,e)}function NSn(n,e){this.a=n,vyn.call(this,e)}function I7(n,e){this.a=n,vyn.call(this,e)}function Lt(n,e){lt.call(this,n),this.a=e}function aV(n,e){$G.call(this,n),this.a=e}function LN(n,e){$G.call(this,n),this.a=e}function jae(n){zY.call(this,0,0),this.f=n}function DSn(n,e,t){return n.a+=ws(e,0,t),n}function O7(n){return!n.a&&(n.a=new Ebn),n.a}function dV(n,e){var t;return t=n.e,n.e=e,t}function bV(n,e){var t;return t=e,!!n.Fe(t)}function Eae(n,e){return _n(),n==e?0:n?1:-1}function Bw(n,e){n.a.bd(n.b,e),++n.b,n.c=-1}function A7(n){n.b?A7(n.b):n.f.c.zc(n.e,n.d)}function $Sn(n){Hu(n.e),n.d.b=n.d,n.d.a=n.d}function Mae(n,e,t){Va(),e9n(n,e.Ve(n.a,t))}function wV(n,e,t){return Ip(n,u(e,22),t)}function xs(n,e){return HE(new Array(e),n)}function Tae(n){return Se(G1(n,32))^Se(n)}function NN(n){return String.fromCharCode(n)}function Cae(n){return n==null?null:n.message}function Sae(n,e,t){return n.apply(e,t)}function Pae(n,e){var t;t=n[LK],t.call(n,e)}function Iae(n,e){var t;t=n[LK],t.call(n,e)}function Oae(n,e){return c7(),!Jm(e.d.i,n)}function gV(n,e,t,i){iT.call(this,n,e,t,i)}function xSn(){HM.call(this),this.a=new Ni}function pV(){this.n=new Ni,this.o=new Ni}function RSn(){this.b=new Ni,this.c=new Z}function KSn(){this.a=new Z,this.b=new Z}function BSn(){this.a=new BU,this.b=new Ryn}function mV(){this.b=new Ql,this.a=new Ql}function FSn(){this.b=new ni,this.a=new ni}function _Sn(){this.b=new de,this.a=new de}function HSn(){this.b=new bEn,this.a=new _3n}function qSn(){this.a=new Z5n,this.b=new Lpn}function USn(){this.a=new Z,this.d=new Z}function HM(){this.n=new up,this.i=new mp}function GSn(n){this.a=(Mo(n,m0),new Gc(n))}function zSn(n){this.a=(Mo(n,m0),new Gc(n))}function Aae(n){return n<100?null:new K1(n)}function Lae(n,e){return n.n.a=(Jn(e),e+10)}function Nae(n,e){return n.n.a=(Jn(e),e+10)}function Dae(n,e){return e==n||v4(CS(e),n)}function XSn(n,e){return Ve(n.a,e,"")==null}function $ae(n,e){var t;return t=e.qi(n.a),t}function it(n,e){return n.a+=e.a,n.b+=e.b,n}function mi(n,e){return n.a-=e.a,n.b-=e.b,n}function xae(n){return Sw(n.j.c,0),n.a=-1,n}function vV(n,e,t){return t=Po(n,e,11,t),t}function Rae(n,e,t){t!=null&&mC(e,Rx(n,t))}function Kae(n,e,t){t!=null&&vC(e,Rx(n,t))}function jp(n,e,t,i){q.call(this,n,e,t,i)}function kV(n,e,t,i){q.call(this,n,e,t,i)}function VSn(n,e,t,i){kV.call(this,n,e,t,i)}function WSn(n,e,t,i){dT.call(this,n,e,t,i)}function DN(n,e,t,i){dT.call(this,n,e,t,i)}function yV(n,e,t,i){dT.call(this,n,e,t,i)}function JSn(n,e,t,i){DN.call(this,n,e,t,i)}function jV(n,e,t,i){DN.call(this,n,e,t,i)}function Dn(n,e,t,i){yV.call(this,n,e,t,i)}function QSn(n,e,t,i){jV.call(this,n,e,t,i)}function YSn(n,e,t,i){kW.call(this,n,e,t,i)}function Fw(n,e){Or.call(this,w8+n+Cd+e)}function EV(n,e){return n.jk().wi().ri(n,e)}function MV(n,e){return n.jk().wi().ti(n,e)}function ZSn(n,e){return Jn(n),x(n)===x(e)}function Sn(n,e){return Jn(n),x(n)===x(e)}function Bae(n,e){return n.b.Bd(new jMn(n,e))}function Fae(n,e){return n.b.Bd(new EMn(n,e))}function nPn(n,e){return n.b.Bd(new MMn(n,e))}function _ae(n,e){return n.e=u(n.d.Kb(e),159)}function TV(n,e,t){return n.lastIndexOf(e,t)}function Hae(n,e,t){return bt(n[e.a],n[t.a])}function qae(n,e){return U(e,(cn(),Ej),n)}function Uae(n,e){return jc(e.a.d.p,n.a.d.p)}function Gae(n,e){return jc(n.a.d.p,e.a.d.p)}function zae(n,e){return bt(n.c-n.s,e.c-e.s)}function Xae(n,e){return bt(n.b.e.a,e.b.e.a)}function Vae(n,e){return bt(n.c.e.a,e.c.e.a)}function ePn(n){return n.c?qr(n.c.a,n,0):-1}function Ep(n){return n==Ud||n==tl||n==qc}function CV(n,e){this.c=n,oD.call(this,n,e)}function tPn(n,e,t){this.a=n,VX.call(this,e,t)}function iPn(n){this.c=n,IM.call(this,jy,0)}function rPn(n,e,t){this.c=e,this.b=t,this.a=n}function L7(n){vm(),this.d=n,this.a=new Mg}function cPn(n){oh(),this.a=(Ln(),new im(n))}function Wae(n,e){hl(n.f)?QMe(n,e):Pye(n,e)}function uPn(n,e){swe.call(this,n,n.length,e)}function Jae(n,e){Uf||e&&(n.d=e)}function oPn(n,e){return L(e,15)&&xqn(n.c,e)}function Qae(n,e,t){return u(n.c,71).Wk(e,t)}function qM(n,e,t){return u(n.c,71).Xk(e,t)}function Yae(n,e,t){return oae(n,u(e,343),t)}function SV(n,e,t){return sae(n,u(e,343),t)}function Zae(n,e,t){return PFn(n,u(e,343),t)}function sPn(n,e,t){return _ye(n,u(e,343),t)}function N6(n,e){return e==null?null:t0(n.b,e)}function PV(n){return $w(n)?(Jn(n),n):n.ue()}function UM(n){return!isNaN(n)&&!isFinite(n)}function $N(n){yCn(this),vo(this),Ki(this,n)}function _u(n){pN(this),UV(this.c,0,n.Pc())}function _o(n,e,t){this.a=n,this.b=e,this.c=t}function fPn(n,e,t){this.a=n,this.b=e,this.c=t}function hPn(n,e,t){this.d=n,this.b=t,this.a=e}function lPn(n){this.a=n,fl(),vc(Date.now())}function aPn(n){bo(n.a),qJ(n.c,n.b),n.b=null}function xN(){xN=R,Iun=new Dbn,SQn=new $bn}function dPn(){dPn=R,Ooe=F(ki,Rn,1,0,5,1)}function bPn(){bPn=R,Voe=F(ki,Rn,1,0,5,1)}function IV(){IV=R,Woe=F(ki,Rn,1,0,5,1)}function oh(){oh=R,new KG((Ln(),Ln(),sr))}function nde(n){return Rm(),Ee((kDn(),OQn),n)}function ede(n){return Gu(),Ee((hDn(),xQn),n)}function tde(n){return YC(),Ee((WLn(),HQn),n)}function ide(n){return cC(),Ee((JLn(),qQn),n)}function rde(n){return DS(),Ee((Wxn(),UQn),n)}function cde(n){return wf(),Ee((sDn(),XQn),n)}function ude(n){return Uu(),Ee((oDn(),WQn),n)}function ode(n){return bu(),Ee((fDn(),QQn),n)}function sde(n){return VS(),Ee((GTn(),kYn),n)}function fde(n){return Lb(),Ee((jDn(),jYn),n)}function hde(n){return Vp(),Ee((MDn(),MYn),n)}function lde(n){return M5(),Ee((EDn(),SYn),n)}function ade(n){return QE(),Ee((yLn(),PYn),n)}function dde(n){return uC(),Ee((QLn(),GYn),n)}function bde(n){return n5(),Ee((lDn(),pZn),n)}function wde(n){return Vi(),Ee((c$n(),yZn),n)}function gde(n){return Zm(),Ee((CDn(),CZn),n)}function pde(n){return dd(),Ee((TDn(),LZn),n)}function OV(n,e){if(!n)throw T(new Gn(e))}function mm(n){if(!n)throw T(new Ar(ltn))}function RN(n,e){if(n!=e)throw T(new Ko)}function wPn(n,e,t){this.a=n,this.b=e,this.c=t}function AV(n,e,t){this.a=n,this.b=e,this.c=t}function gPn(n,e,t){this.a=n,this.b=e,this.c=t}function GM(n,e,t){this.b=n,this.a=e,this.c=t}function LV(n,e,t){this.b=n,this.c=e,this.a=t}function NV(n,e,t){this.a=n,this.b=e,this.c=t}function zM(n,e,t){this.e=e,this.b=n,this.d=t}function pPn(n,e,t){this.b=n,this.a=e,this.c=t}function mde(n,e,t){return Va(),n.a.Yd(e,t),e}function KN(n){var e;return e=new cwn,e.e=n,e}function DV(n){var e;return e=new Hyn,e.b=n,e}function N7(){N7=R,MI=new ogn,TI=new sgn}function XM(){XM=R,XZn=new $gn,zZn=new xgn}function Rs(){Rs=R,YZn=new U2n,ZZn=new G2n}function vde(n){return Ob(),Ee((qNn(),fne),n)}function kde(n){return tr(),Ee((zTn(),HZn),n)}function yde(n){return AC(),Ee((PDn(),GZn),n)}function jde(n){return xf(),Ee((SDn(),tne),n)}function Ede(n){return o0(),Ee((u$n(),rne),n)}function Mde(n){return LS(),Ee((Dxn(),hne),n)}function Tde(n){return Yp(),Ee((A$n(),lne),n)}function Cde(n){return QT(),Ee((eNn(),ane),n)}function Sde(n){return i5(),Ee((FNn(),dne),n)}function Pde(n){return bC(),Ee((_Nn(),bne),n)}function Ide(n){return o1(),Ee((o$n(),wne),n)}function Ode(n){return bk(),Ee((nNn(),gne),n)}function Ade(n){return y4(),Ee((D$n(),jne),n)}function Lde(n){return pr(),Ee((lRn(),Ene),n)}function Nde(n){return Ym(),Ee((GNn(),Mne),n)}function Dde(n){return vl(),Ee((UNn(),Cne),n)}function $de(n){return FT(),Ee((oNn(),Sne),n)}function xde(n){return Xk(),Ee((N$n(),yne),n)}function Rde(n){return hd(),Ee((HNn(),mne),n)}function Kde(n){return vS(),Ee((L$n(),vne),n)}function Bde(n){return ok(),Ee((ZLn(),kne),n)}function Fde(n){return Yo(),Ee((f$n(),Pne),n)}function _de(n){return a1(),Ee((zxn(),Yte),n)}function Hde(n){return d5(),Ee((zNn(),Zte),n)}function qde(n){return c0(),Ee((IDn(),nie),n)}function Ude(n){return E5(),Ee((s$n(),eie),n)}function Gde(n){return ps(),Ee((aRn(),tie),n)}function zde(n){return lh(),Ee((ODn(),iie),n)}function Xde(n){return ak(),Ee((tNn(),rie),n)}function Vde(n){return gr(),Ee((WNn(),uie),n)}function Wde(n){return PC(),Ee((XNn(),oie),n)}function Jde(n){return h5(),Ee((VNn(),sie),n)}function Qde(n){return u4(),Ee((QNn(),fie),n)}function Yde(n){return dC(),Ee((JNn(),hie),n)}function Zde(n){return LC(),Ee((YNn(),lie),n)}function nbe(n){return Ib(),Ee((uDn(),Sie),n)}function ebe(n){return Q6(),Ee((iNn(),Lie),n)}function tbe(n){return fh(),Ee((rNn(),Bie),n)}function ibe(n){return If(),Ee((cNn(),_ie),n)}function rbe(n){return af(),Ee((uNn(),tre),n)}function cbe(n){return Eb(),Ee((sNn(),fre),n)}function ube(n){return Qp(),Ee((RDn(),hre),n)}function obe(n){return K5(),Ee((XTn(),lre),n)}function sbe(n){return l5(),Ee((ZNn(),are),n)}function fbe(n){return a5(),Ee((xDn(),$re),n)}function hbe(n){return RT(),Ee((hNn(),xre),n)}function lbe(n){return yC(),Ee((lNn(),_re),n)}function abe(n){return wS(),Ee((h$n(),qre),n)}function dbe(n){return Pk(),Ee((nDn(),Gre),n)}function bbe(n){return ZT(),Ee((fNn(),Ure),n)}function wbe(n){return sS(),Ee(($Dn(),lce),n)}function gbe(n){return SC(),Ee((eDn(),ace),n)}function pbe(n){return XC(),Ee((tDn(),dce),n)}function mbe(n){return rS(),Ee((iDn(),wce),n)}function vbe(n){return _C(),Ee((rDn(),mce),n)}function kbe(n){return GT(),Ee((aNn(),Bce),n)}function ybe(n){return Xm(),Ee((YLn(),_Zn),n)}function jbe(n){return Vn(),Ee(($$n(),xZn),n)}function Ebe(n){return nC(),Ee((cDn(),Fce),n)}function Mbe(n){return D$(),Ee((dNn(),_ce),n)}function Tbe(n){return D5(),Ee((l$n(),qce),n)}function Cbe(n){return nM(),Ee((ILn(),Gce),n)}function Sbe(n){return Dk(),Ee((dDn(),Uce),n)}function Pbe(n){return eM(),Ee((OLn(),Xce),n)}function Ibe(n){return tk(),Ee((bNn(),Vce),n)}function Obe(n){return Wk(),Ee((a$n(),Wce),n)}function Abe(n){return u6(),Ee((ALn(),lue),n)}function Lbe(n){return Mk(),Ee((wNn(),aue),n)}function Nbe(n){return pf(),Ee((b$n(),mue),n)}function Dbe(n){return l1(),Ee((Lxn(),kue),n)}function $be(n){return Bh(),Ee((x$n(),yue),n)}function xbe(n){return wd(),Ee((R$n(),Sue),n)}function Rbe(n){return ci(),Ee((d$n(),zue),n)}function Kbe(n){return $f(),Ee((bDn(),Xue),n)}function Bbe(n){return El(),Ee((KDn(),Vue),n)}function Fbe(n){return pS(),Ee((K$n(),Wue),n)}function _be(n){return jl(),Ee((aDn(),Que),n)}function Hbe(n){return Co(),Ee((BDn(),Zue),n)}function qbe(n){return l0(),Ee((Vxn(),noe),n)}function Ube(n){return Kg(),Ee((w$n(),eoe),n)}function Gbe(n){return Ai(),Ee((B$n(),toe),n)}function zbe(n){return zu(),Ee((F$n(),ioe),n)}function Xbe(n){return en(),Ee((g$n(),roe),n)}function Vbe(n){return go(),Ee((FDn(),foe),n)}function Wbe(n){return io(),Ee((Xxn(),hoe),n)}function Jbe(n){return Gp(),Ee((wDn(),loe),n)}function Qbe(n,e){return Jn(n),n+(Jn(e),e)}function Ybe(n){return BN(),Ee((gNn(),aoe),n)}function Zbe(n){return qC(),Ee((_Dn(),doe),n)}function nwe(n){return NC(),Ee((HDn(),goe),n)}function vm(){vm=R,nln=(en(),Wn),OO=Zn}function BN(){BN=R,mdn=new XPn,vdn=new LIn}function ewe(n){return!n.e&&(n.e=new Z),n.e}function FN(n,e){this.c=n,this.a=e,this.b=e-n}function mPn(n,e,t){this.a=n,this.b=e,this.c=t}function _N(n,e,t){this.a=n,this.b=e,this.c=t}function $V(n,e,t){this.a=n,this.b=e,this.c=t}function xV(n,e,t){this.a=n,this.b=e,this.c=t}function vPn(n,e,t){this.a=n,this.b=e,this.c=t}function kPn(n,e,t){this.a=n,this.b=e,this.c=t}function Xl(n,e,t){this.e=n,this.a=e,this.c=t}function yPn(n,e,t){Fo(),nJ.call(this,n,e,t)}function HN(n,e,t){Fo(),RW.call(this,n,e,t)}function RV(n,e,t){Fo(),RW.call(this,n,e,t)}function KV(n,e,t){Fo(),RW.call(this,n,e,t)}function jPn(n,e,t){Fo(),HN.call(this,n,e,t)}function BV(n,e,t){Fo(),HN.call(this,n,e,t)}function EPn(n,e,t){Fo(),BV.call(this,n,e,t)}function MPn(n,e,t){Fo(),RV.call(this,n,e,t)}function TPn(n,e,t){Fo(),KV.call(this,n,e,t)}function qN(n){iT.call(this,n.d,n.c,n.a,n.b)}function FV(n){iT.call(this,n.d,n.c,n.a,n.b)}function _V(n){this.d=n,r9n(this),this.b=n0e(n.d)}function twe(n){return E4(),Ee((Nxn(),Ioe),n)}function D7(n,e){return Pe(n),Pe(e),new NEn(n,e)}function Mp(n,e){return Pe(n),Pe(e),new KPn(n,e)}function iwe(n,e){return Pe(n),Pe(e),new BPn(n,e)}function rwe(n,e){return Pe(n),Pe(e),new HEn(n,e)}function UN(n){return oe(n.b!=0),Xo(n,n.a.a)}function cwe(n){return oe(n.b!=0),Xo(n,n.c.b)}function uwe(n){return!n.c&&(n.c=new V3),n.c}function km(n){var e;return e=new Z,b$(e,n),e}function owe(n){var e;return e=new ni,b$(e,n),e}function CPn(n){var e;return e=new qG,S$(e,n),e}function $7(n){var e;return e=new Mt,S$(e,n),e}function u(n,e){return D6(n==null||Cx(n,e)),n}function swe(n,e,t){TIn.call(this,e,t),this.a=n}function SPn(n,e){this.c=n,this.b=e,this.a=!1}function PPn(){this.a=";,;",this.b="",this.c=""}function IPn(n,e,t){this.b=n,FTn.call(this,e,t)}function HV(n,e,t){this.c=n,uM.call(this,e,t)}function qV(n,e,t){am.call(this,n,e),this.b=t}function UV(n,e,t){$nn(t,0,n,e,t.length,!1)}function Nh(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function GV(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function fwe(n,e){e&&(n.b=e,n.a=(V1(e),e.a))}function x7(n,e){if(!n)throw T(new Gn(e))}function Tp(n,e){if(!n)throw T(new Ar(e))}function zV(n,e){if(!n)throw T(new Rjn(e))}function hwe(n,e){return YE(),jc(n.d.p,e.d.p)}function lwe(n,e){return kl(),bt(n.e.b,e.e.b)}function awe(n,e){return kl(),bt(n.e.a,e.e.a)}function dwe(n,e){return jc(UPn(n.d),UPn(e.d))}function VM(n,e){return e&&mT(n,e.d)?e:null}function bwe(n,e){return e==(en(),Wn)?n.c:n.d}function XV(n){return Z1(d0e(Vr(n)?ds(n):n))}function wwe(n){return new V(n.c+n.b,n.d+n.a)}function OPn(n){return n!=null&&!lx(n,A9,L9)}function gwe(n,e){return(sKn(n)<<4|sKn(e))&ui}function APn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function VV(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function WV(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function pwe(n,e){var t;return t=n.c,SQ(n,e),t}function JV(n,e){return e<0?n.g=-1:n.g=e,n}function WM(n,e){return T4e(n),n.a*=e,n.b*=e,n}function LPn(n,e,t){C$n.call(this,e,t),this.d=n}function R7(n,e,t){wX.call(this,n,e),this.c=t}function JM(n,e,t){wX.call(this,n,e),this.c=t}function QV(n){IV(),ME.call(this),this.ci(n)}function NPn(){Dm(),K0e.call(this,(F1(),Is))}function DPn(n){return nt(),new Dh(0,n)}function $Pn(){$Pn=R,TU=(Ln(),new nL(OF))}function QM(){QM=R,new sZ((bL(),HF),(dL(),_F))}function xPn(){xPn=R,wun=F(Gi,J,17,256,0,1)}function RPn(){this.b=$(B(rn((Us(),k_))))}function GN(n){this.b=n,this.a=Ja(this.b.a).Od()}function KPn(n,e){this.b=n,this.a=e,GA.call(this)}function BPn(n,e){this.a=n,this.b=e,GA.call(this)}function FPn(n,e,t){this.a=n,pg.call(this,e,t)}function _Pn(n,e,t){this.a=n,pg.call(this,e,t)}function ym(n,e,t){var i;i=new qw(t),bf(n,e,i)}function YV(n,e,t){var i;return i=n[e],n[e]=t,i}function YM(n){var e;return e=n.slice(),o$(e,n)}function ZM(n){var e;return e=n.n,n.a.b+e.d+e.a}function HPn(n){var e;return e=n.n,n.e.b+e.d+e.a}function ZV(n){var e;return e=n.n,n.e.a+e.b+e.c}function nW(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function Re(n,e){return xt(n,e,n.c.b,n.c),!0}function mwe(n){return n.a?n.a:vD(n)}function vwe(n){return Np(),Fh(n)==St(ca(n))}function kwe(n){return Np(),ca(n)==St(Fh(n))}function lb(n,e){return P5(n,new am(e.a,e.b))}function ywe(n,e){return kT(),Dx(n,e),new hOn(n,e)}function jwe(n,e){return n.c<e.c?-1:n.c==e.c?0:1}function qPn(n){return n.b.c.length-n.e.c.length}function UPn(n){return n.e.c.length-n.g.c.length}function zN(n){return n.e.c.length+n.g.c.length}function K7(n){return n==0||isNaN(n)?n:n<0?-1:1}function Ewe(n){return!fr(n)&&n.c.i.c==n.d.i.c}function Mwe(n){return ko(),(en(),su).Hc(n.j)}function Twe(n,e,t){return kl(),t.e.a+t.f.a+n*e}function Cwe(n,e,t){return kl(),t.e.b+t.f.b+n*e}function Swe(n,e,t){return Ve(n.b,u(t.b,18),e)}function Pwe(n,e,t){return Ve(n.b,u(t.b,18),e)}function Iwe(n,e,t){wLe(n.a,n.b,n.c,u(e,166),t)}function eW(n,e,t,i){eZ.call(this,n,e,t,i,0,0)}function GPn(n){IV(),QV.call(this,n),this.a=-1}function zPn(n,e){TIn.call(this,e,1040),this.a=n}function XPn(){oTn.call(this,"COUNT_CHILDREN",0)}function nT(n,e){k7.call(this,n,e),this.a=this}function Dt(n,e){var t;return t=bD(n,e),t.i=2,t}function eT(n,e){var t;return++n.j,t=n.Cj(e),t}function Fe(n,e,t){return n.a=-1,JX(n,e.g,t),n}function Owe(n,e){return nn(n,new V(e.a,e.b))}function VPn(n){return _p(),F(DO,AP,39,n,0,1)}function WPn(n){return n.e.Rd().gc()*n.c.Rd().gc()}function XN(n,e,t){return new rPn(F0e(n)._e(),t,e)}function Awe(n,e){PQ(n,e==null?null:(Jn(e),e))}function Lwe(n,e){CQ(n,e==null?null:(Jn(e),e))}function Nwe(n,e){CQ(n,e==null?null:(Jn(e),e))}function D6(n){if(!n)throw T(new tm(null))}function tW(n){if(n.c.e!=n.a)throw T(new Ko)}function iW(n){if(n.e.c!=n.b)throw T(new Ko)}function tT(n){for(Pe(n);n.Ob();)n.Pb(),n.Qb()}function VN(n){gb(),this.a=(Ln(),new nL(Pe(n)))}function rW(n){this.c=n,this.b=this.c.d.vc().Kc()}function Dwe(n){n.a.ld(),u(n.a.md(),16).gc(),dz()}function JPn(n,e){return n.a+=ws(e,0,e.length),n}function sn(n,e){return Nn(e,n.c.length),n.c[e]}function QPn(n,e){return Nn(e,n.a.length),n.a[e]}function $we(n,e){return Jn(e),pk(e,(Jn(n),n))}function xwe(n,e){return Jn(n),pk(n,(Jn(e),e))}function Wa(n,e,t,i,r,c){return yFn(n,e,t,i,r,0,c)}function Rwe(n,e){return $t(e,0,cW(e[0],Tl(1)))}function Kwe(n,e){return Tl(nr(Tl(n.a).a,e.a))}function cW(n,e){return Kwe(u(n,168),u(e,168))}function YPn(){YPn=R,gun=F(nw,J,168,256,0,1)}function ZPn(){ZPn=R,vun=F(ew,J,191,256,0,1)}function nIn(){nIn=R,aun=F(p3,J,222,256,0,1)}function eIn(){eIn=R,bun=F(T8,J,180,128,0,1)}function uW(){Nh(this,!1,!1,!1,!1)}function oW(n){jG.call(this,new Ql),Ki(this,n)}function $6(n){this.a=new ap(n.gc()),Ki(this,n)}function tIn(n){this.c=n,this.a=new dp(this.c.a)}function iIn(n){this.a=n,this.c=new de,o6e(this)}function rIn(){this.d=new V(0,0),this.e=new ni}function Cn(n,e){Va(),i$.call(this,n),this.a=e}function iT(n,e,t,i){GV(this,n,e,t,i)}function Bwe(n,e,t){return jc(e.d[n.g],t.d[n.g])}function Fwe(n,e,t){return jc(n.d[e.p],n.d[t.p])}function _we(n,e,t){return jc(n.d[e.p],n.d[t.p])}function Hwe(n,e,t){return jc(n.d[e.p],n.d[t.p])}function qwe(n,e,t){return jc(n.d[e.p],n.d[t.p])}function rT(n,e,t){return y.Math.min(t/n,1/e)}function cIn(n,e){return n?0:y.Math.max(0,e-1)}function WN(n,e){return n==null?e==null:Sn(n,e)}function Uwe(n,e){return n==null?e==null:JC(n,e)}function uIn(n){return n.q?n.q:(Ln(),Ln(),Wh)}function oIn(n){return n.c-u(sn(n.a,n.b),293).b}function ao(n){return n.c?n.c.f:n.e.b}function Pu(n){return n.c?n.c.g:n.e.a}function Gwe(n,e){return n.a==null&&qqn(n),n.a[e]}function sIn(n){var e;return e=EFn(n),e?sIn(e):n}function cT(n,e){return nt(),new CW(n,e)}function Dh(n,e){nt(),Wd.call(this,n),this.a=e}function uT(n,e){Fo(),LE.call(this,e),this.a=n}function x6(n,e,t){this.a=n,ti.call(this,e,t,2)}function fIn(n){this.b=new Mt,this.a=n,this.c=-1}function hIn(n){VX.call(this,0,0),this.a=n,this.b=0}function oT(n){Cb.call(this,n.gc()),Bt(this,n)}function sT(n){n.b?sT(n.b):n.d.dc()&&n.f.c.Bc(n.e)}function sW(n){return Array.isArray(n)&&n.Tm===Q2}function JN(n,e){return L(e,22)&&Su(n,u(e,22))}function lIn(n,e){return L(e,22)&&k4e(n,u(e,22))}function wr(n,e){return RRn(n,e,J3e(n,n.b.Ce(e)))}function zwe(n,e){return n.a.get(e)!==void 0}function fW(n){return to(n,26)*V5+to(n,27)*W5}function aIn(n,e){return B4e(new qbn,new d9n(n),e)}function QN(n,e,t){$Rn(0,e,n.length),xm(n,0,e,t)}function ab(n,e,t){zw(e,n.c.length),l6(n.c,e,t)}function fT(n,e,t){var i;n&&(i=n.i,i.c=e,i.b=t)}function hT(n,e,t){var i;n&&(i=n.i,i.d=e,i.a=t)}function dIn(n,e,t){var i;for(i=0;i<e;++i)n[i]=t}function Xwe(n,e){var t;for(t=0;t<e;++t)n[t]=-1}function yt(n,e){var t;return t=yn(n),ZQ(t,e),t}function Vwe(n,e){return!n&&(n=[]),n[n.length]=e,n}function YN(n,e){it(n.c,e),n.b.c+=e.a,n.b.d+=e.b}function Wwe(n,e){YN(n,mi(new V(e.a,e.b),n.c))}function ZN(n,e){this.b=new Mt,this.a=n,this.c=e}function bIn(){this.b=new e0n,this.c=new VOn(this)}function hW(){this.d=new twn,this.e=new XOn(this)}function lW(){cJ(),this.f=new Mt,this.e=new Mt}function wIn(){ko(),this.k=new de,this.d=new ni}function nD(){nD=R,moe=new Di((He(),oo),0)}function gIn(){gIn=R,cQn=new hIn(F(ki,Rn,1,0,5,1))}function Jwe(n,e,t){return fi(n,new bp(e.a,t.a))}function Qwe(n,e,t){return-jc(n.f[e.p],n.f[t.p])}function Ywe(n,e,t){LHn(t,n,1),nn(e,new AMn(t,n))}function Zwe(n,e,t){S5(t,n,1),nn(e,new DMn(t,n))}function pIn(n,e,t){this.a=n,DM.call(this,e,t,22)}function mIn(n,e,t){this.a=n,DM.call(this,e,t,14)}function vIn(n,e,t,i){Fo(),iLn.call(this,n,e,t,i)}function kIn(n,e,t,i){Fo(),iLn.call(this,n,e,t,i)}function Iu(n,e,t){return n.a=-1,JX(n,e.g+1,t),n}function aW(n,e,t){return t=Po(n,u(e,54),7,t),t}function dW(n,e,t){return t=Po(n,u(e,54),3,t),t}function Se(n){return Vr(n)?n|0:rEn(n)}function yIn(n){return nt(),new OD(10,n,0)}function jIn(n){var e;return e=n.f,e||(n.f=n.Dc())}function Cp(n){var e;return e=n.i,e||(n.i=n.bc())}function lT(n){if(n.e.j!=n.d)throw T(new Ko)}function Ja(n){return n.c?n.c:n.c=n.Sd()}function eD(n){return n.d?n.d:n.d=n.Td()}function R6(n,e){return q8e(fk(n,e))?e.zi():null}function n0e(n){return L(n,15)?u(n,15).ed():n.Kc()}function bW(n){return n.Qc(F(ki,Rn,1,n.gc(),5,1))}function EIn(n){return n!=null&&uD(n)&&n.Tm!==Q2}function wW(n){return!Array.isArray(n)&&n.Tm===Q2}function MIn(n,e){return Pe(e),n.a.Jd(e)&&!n.b.Jd(e)}function e0e(n,e){return Yc(n.l&e.l,n.m&e.m,n.h&e.h)}function t0e(n,e){return Yc(n.l|e.l,n.m|e.m,n.h|e.h)}function i0e(n,e){return Yc(n.l^e.l,n.m^e.m,n.h^e.h)}function Ks(n,e){return Z1(e_n(Vr(n)?ds(n):n,e))}function db(n,e){return Z1(Unn(Vr(n)?ds(n):n,e))}function G1(n,e){return Z1(Kje(Vr(n)?ds(n):n,e))}function r0e(n,e){return Eae((Jn(n),n),(Jn(e),e))}function tD(n,e){return bt((Jn(n),n),(Jn(e),e))}function aT(n){this.b=new Gc(11),this.a=(kb(),n)}function ie(n){this.a=(gIn(),cQn),this.d=u(Pe(n),51)}function TIn(n,e){this.c=0,this.d=n,this.b=e|64|wh}function gW(n,e){this.e=n,this.d=e&64?e|wh:e}function iD(n){this.b=null,this.a=(kb(),n||Sun)}function CIn(n){$M(this),this.g=n,MT(this),this.je()}function Qa(n){_1(),this.a=0,this.b=n-1,this.c=1}function pW(n,e,t,i){this.a=n,VT.call(this,n,e,t,i)}function c0e(n,e,t){n.a.Mb(t)&&(n.b=!0,e.Cd(t))}function mW(n){n.d||(n.d=n.b.Kc(),n.c=n.b.gc())}function jm(n,e){if(n<0||n>=e)throw T(new JG)}function _w(n,e){return Lk(n,(Jn(e),new l9n(e)))}function Sp(n,e){return Lk(n,(Jn(e),new a9n(e)))}function SIn(n,e,t){return VNe(n,u(e,12),u(t,12))}function PIn(n){return Au(),u(n,12).g.c.length!=0}function IIn(n){return Au(),u(n,12).e.c.length!=0}function u0e(n,e){return Hp(),bt(e.a.o.a,n.a.o.a)}function o0e(n,e){e.Bb&kc&&!n.a.o&&(n.a.o=e)}function s0e(n,e){e.Ug("General 'Rotator",1),jLe(n)}function f0e(n,e,t){e.qf(t,$(B(ee(n.b,t)))*n.a)}function OIn(n,e,t){return Vg(),Vm(n,e)&&Vm(n,t)}function K6(n){return zu(),!n.Hc(Rl)&&!n.Hc(Aa)}function h0e(n){return n.e?_J(n.e):null}function B6(n){return Vr(n)?""+n:$qn(n)}function vW(n){var e;for(e=n;e.f;)e=e.f;return e}function l0e(n,e,t){return $t(e,0,cW(e[0],t[0])),e}function Vl(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function q(n,e,t,i){ti.call(this,n,e,t),this.b=i}function Mi(n,e,t,i,r){c$.call(this,n,e,t,i,r,-1)}function F6(n,e,t,i,r){rk.call(this,n,e,t,i,r,-1)}function dT(n,e,t,i){R7.call(this,n,e,t),this.b=i}function AIn(n){PTn.call(this,n,!1),this.a=!1}function LIn(){oTn.call(this,"LOOKAHEAD_LAYOUT",1)}function NIn(n){this.b=n,kp.call(this,n),KCn(this)}function DIn(n){this.b=n,T7.call(this,n),BCn(this)}function Hw(n,e,t){this.a=n,jp.call(this,e,t,5,6)}function kW(n,e,t,i){this.b=n,ti.call(this,e,t,i)}function $In(n,e){this.b=n,_8n.call(this,n.b),this.a=e}function xIn(n){this.a=vBn(n.a),this.b=new _u(n.b)}function yW(n,e){gb(),Hhe.call(this,n,RC(new Fu(e)))}function bT(n,e){return nt(),new xW(n,e,0)}function rD(n,e){return nt(),new xW(6,n,e)}function _i(n,e){for(Jn(e);n.Ob();)e.Cd(n.Pb())}function Zc(n,e){return Si(e)?SD(n,e):!!wr(n.f,e)}function cD(n,e){return e.Vh()?ta(n.b,u(e,54)):e}function a0e(n,e){return Sn(n.substr(0,e.length),e)}function $h(n){return new ie(new HX(n.a.length,n.a))}function wT(n){return new V(n.c+n.b/2,n.d+n.a/2)}function d0e(n){return Yc(~n.l&ro,~n.m&ro,~n.h&Ol)}function uD(n){return typeof n===my||typeof n===eK}function Hu(n){n.f=new tCn(n),n.i=new iCn(n),++n.g}function RIn(n){if(!n)throw T(new nc);return n.d}function Pp(n){var e;return e=f5(n),oe(e!=null),e}function b0e(n){var e;return e=O5e(n),oe(e!=null),e}function Em(n,e){var t;return t=n.a.gc(),xJ(e,t),t-e}function fi(n,e){var t;return t=n.a.zc(e,n),t==null}function B7(n,e){return n.a.zc(e,(_n(),pa))==null}function jW(n){return new Cn(null,v0e(n,n.length))}function EW(n,e,t){return cGn(n,u(e,42),u(t,176))}function Ip(n,e,t){return _s(n.a,e),YV(n.b,e.g,t)}function w0e(n,e,t){jm(t,n.a.c.length),Go(n.a,t,e)}function K(n,e,t,i){$Rn(e,t,n.length),g0e(n,e,t,i)}function g0e(n,e,t,i){var r;for(r=e;r<t;++r)n[r]=i}function MW(n,e){var t;for(t=0;t<e;++t)n[t]=!1}function Ya(n,e,t){dh(),this.e=n,this.d=e,this.a=t}function TW(n,e,t){this.c=n,this.a=e,Ln(),this.b=t}function oD(n,e){this.d=n,ne.call(this,n),this.e=e}function hf(n,e,t){return $6e(n,e.g,t),_s(n.c,e),n}function p0e(n){return Yg(n,(ci(),Kr)),n.d=!0,n}function sD(n){return!n.j&&Tfe(n,yPe(n.g,n.b)),n.j}function KIn(n){n.a=null,n.e=null,Hu(n.b),n.d=0,++n.c}function _6(n){Rw(n.b!=-1),Yl(n.c,n.a=n.b),n.b=-1}function CW(n,e){Wd.call(this,1),this.a=n,this.b=e}function m0e(n,e){return n>0?y.Math.log(n/e):-100}function BIn(n,e){return Ec(n,e)<0?-1:Ec(n,e)>0?1:0}function F7(n,e){OCn(n,L(e,160)?e:u(e,2036).Rl())}function SW(n,e){if(n==null)throw T(new fp(e))}function v0e(n,e){return y4e(e,n.length),new zPn(n,e)}function PW(n,e){return e?Ki(n,e):!1}function k0e(){return KE(),S(C(uQn,1),G,549,0,[GF])}function H6(n){return n.e==0?n:new Ya(-n.e,n.d,n.a)}function y0e(n,e){return bt(n.c.c+n.c.b,e.c.c+e.c.b)}function _7(n,e){xt(n.d,e,n.b.b,n.b),++n.a,n.c=null}function FIn(n,e){return n.c?FIn(n.c,e):nn(n.b,e),n}function j0e(n,e,t){var i;return i=Jw(n,e),qD(n,e,t),i}function _In(n,e,t){var i;for(i=0;i<e;++i)$t(n,i,t)}function HIn(n,e,t,i,r){for(;e<t;)i[r++]=Xi(n,e++)}function Mm(n,e,t,i,r){Qx(n,u(ot(e.k,t),15),t,i,r)}function bb(n,e){Ut(_r(n.Oc(),new hpn),new E7n(e))}function E0e(n,e){return bt(n.e.a+n.f.a,e.e.a+e.f.a)}function M0e(n,e){return bt(n.e.b+n.f.b,e.e.b+e.f.b)}function fD(n){return y.Math.abs(n.d.e-n.e.e)-n.a}function T0e(n){return n==Pt?Zy:n==li?"-INF":""+n}function C0e(n){return n==Pt?Zy:n==li?"-INF":""+n}function S0e(n){return Np(),St(Fh(n))==St(ca(n))}function P0e(n,e,t){return u(n.c.hd(e,u(t,136)),44)}function I0e(n,e){Op(n,new qw(e.f!=null?e.f:""+e.g))}function O0e(n,e){Op(n,new qw(e.f!=null?e.f:""+e.g))}function Bt(n,e){return n.Si()&&(e=wAn(n,e)),n.Fi(e)}function hD(n,e){return e=n.Yk(null,e),RFn(n,null,e)}function A0e(n,e){++n.j,Jx(n,n.i,e),nMe(n,u(e,343))}function IW(n){n?QZ(n,(fl(),pQn)):$ge((fl(),n))}function wb(n){this.d=(Jn(n),n),this.a=0,this.c=jy}function lD(n,e){this.d=j5e(n),this.c=e,this.a=.5*e}function qIn(n){YW.call(this),this.a=n,nn(n.a,this)}function UIn(){Ql.call(this),this.a=!0,this.b=!0}function GIn(){GIn=R,lQn=new lG(!1),aQn=new lG(!0)}function q6(n){var e;return e=n.g,e||(n.g=new oG(n))}function gT(n){var e;return e=n.k,e||(n.k=new sG(n))}function OW(n){var e;return e=n.k,e||(n.k=new sG(n))}function L0e(n){var e;return e=n.i,e||(n.i=new $8n(n))}function zIn(n){var e;return e=n.f,e||(n.f=new _X(n))}function aD(n){var e;return e=n.j,e||(n.j=new V8n(n))}function dD(n){var e;return e=n.d,e||(n.d=new VA(n))}function XIn(n,e,t){return nt(),new HAn(n,e,t)}function VIn(n,e){return Y7(e,n.c.b.c.gc()),new LEn(n,e)}function AW(n,e){var t;return t=n.a.gc(),Y7(e,t),t-1-e}function w(n,e,t){var i;return i=bD(n,e),U$n(t,i),i}function bD(n,e){var t;return t=new JQ,t.j=n,t.d=e,t}function Pe(n){if(n==null)throw T(new rp);return n}function qw(n){if(n==null)throw T(new rp);this.a=n}function WIn(n){BG(),this.b=new Z,this.a=n,MAe(this,n)}function LW(n){this.b=n,this.a=u(as(this.b.a.e),227)}function gb(){gb=R,oh(),qF=new ID((Ln(),Ln(),sr))}function wD(){wD=R,oh(),iun=new xz((Ln(),Ln(),hI))}function z1(){z1=R,Hn=ZEe(),An(),tg&&nke()}function pT(n){n.s=NaN,n.c=NaN,kHn(n,n.e),kHn(n,n.j)}function se(n){return(n.i==null&&bh(n),n.i).length}function JIn(n,e){return u(Ja(n.a).Md().Xb(e),44).ld()}function ee(n,e){return Si(e)?Dc(n,e):Fr(wr(n.f,e))}function N0e(n,e){return Np(),n==Fh(e)?ca(e):Fh(e)}function D0e(n,e,t,i){return t==0||(t-i)/t<n.e||e>=n.g}function $t(n,e,t){return dae(t==null||sIe(n,t)),n[e]=t}function NW(n,e){return zn(e,n.length+1),n.substr(e)}function gD(n,e){for(Jn(e);n.c<n.d;)n.Se(e,n.c++)}function DW(n){this.d=n,this.c=n.a.d.a,this.b=n.a.e.g}function QIn(n){this.c=n,this.a=new Mt,this.b=new Mt}function Nc(n){this.c=new Ni,this.a=new Z,this.b=n}function YIn(n){this.b=new Z,this.a=new Z,this.c=n}function $0e(n,e,t){u(e.b,68),nu(e.a,new $V(n,t,e))}function x0e(n,e){return Hp(),u(Mr(n,e.d),15).Fc(e)}function Op(n,e){var t;t=n.a.length,Jw(n,t),qD(n,t,e)}function ZIn(n,e){var t;t=console[n],t.call(console,e)}function nOn(n,e){var t;++n.j,t=n.Ej(),n.rj(n.Zi(t,e))}function pD(n,e,t){var i;return i=C$(n,e,t),men(n,i)}function pb(n){return!n.d&&(n.d=new ti(jr,n,1)),n.d}function R0e(n){return!n.a&&(n.a=new ti(La,n,4)),n.a}function Tm(n,e){return n.a+=String.fromCharCode(e),n}function X1(n,e){return n.a+=String.fromCharCode(e),n}function $W(n,e,t){this.a=n,$G.call(this,e),this.b=t}function eOn(n,e,t){this.a=n,pJ.call(this,8,e,null,t)}function xW(n,e,t){Wd.call(this,n),this.a=e,this.b=t}function RW(n,e,t){LE.call(this,e),this.a=n,this.b=t}function tOn(n){this.c=n,this.b=this.c.a,this.a=this.c.e}function K0e(n){this.a=(Jn(Ke),Ke),this.b=n,new nz}function iOn(n){UW(n.a),n.b=F(ki,Rn,1,n.b.length,5,1)}function bo(n){Rw(n.c!=-1),n.d.gd(n.c),n.b=n.c,n.c=-1}function U6(n){return y.Math.sqrt(n.a*n.a+n.b*n.b)}function mT(n,e){return qx(n.c,n.f,e,n.b,n.a,n.e,n.d)}function mb(n,e){return jm(e,n.a.c.length),sn(n.a,e)}function sh(n,e){return x(n)===x(e)||n!=null&&ct(n,e)}function rOn(n){return L(n,102)&&(u(n,19).Bb&kc)!=0}function cOn(n){return as(n),L(n,483)?u(n,483):Jr(n)}function uOn(n){return n?n.dc():!n.Kc().Ob()}function B0e(n){return rg?SD(rg,n):!1}function F0e(n){return 0>=n?new Oz:G4e(n-1)}function Hi(n){return!n.a&&n.c?n.c.b:n.a}function KW(n){return L(n,616)?n:new uAn(n)}function V1(n){n.c?V1(n.c):(ia(n),n.d=!0)}function G6(n){n.c?n.c.$e():(n.d=!0,fCe(n))}function oOn(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function sOn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function _0e(n,e){var t;t=n.Ih(e),t>=0?n.ki(t):Cnn(n,e)}function fOn(n,e){n.c<0||n.b.b<n.c?ir(n.b,e):n.a.tf(e)}function H0e(n,e){ve((!n.a&&(n.a=new I7(n,n)),n.a),e)}function q0e(n,e){YN(u(e.b,68),n),nu(e.a,new PG(n))}function U0e(n,e){return jc(e.j.c.length,n.j.c.length)}function G0e(n,e,t){return qp(),t.Lg(n,u(e.ld(),149))}function as(n){if(n==null)throw T(new rp);return n}function Jn(n){if(n==null)throw T(new rp);return n}function z0e(n){if(n.p!=4)throw T(new Mu);return n.e}function X0e(n){if(n.p!=3)throw T(new Mu);return n.e}function V0e(n){if(n.p!=3)throw T(new Mu);return n.j}function W0e(n){if(n.p!=4)throw T(new Mu);return n.j}function J0e(n){if(n.p!=6)throw T(new Mu);return n.f}function Q0e(n){if(n.p!=6)throw T(new Mu);return n.k}function BW(n){return!n.b&&(n.b=new NE(new aL)),n.b}function vb(n){return n.c==-2&&gfe(n,Uye(n.g,n.b)),n.c}function Cm(n,e){var t;return t=bD("",n),t.n=e,t.i=1,t}function vT(n,e,t,i){tb.call(this,n,t),this.a=e,this.f=i}function FW(n,e,t,i){tb.call(this,n,e),this.d=t,this.a=i}function hOn(n,e){h1e.call(this,z4e(Pe(n),Pe(e))),this.a=e}function ii(){mjn.call(this),Sw(this.j.c,0),this.a=-1}function lOn(){rnn.call(this,ks,(um(),qdn)),vOe(this)}function aOn(){rnn.call(this,Pd,(iEn(),ise)),hAe(this)}function dOn(){je.call(this,"DELAUNAY_TRIANGULATION",0)}function Y0e(n){return String.fromCharCode.apply(null,n)}function Ve(n,e,t){return Si(e)?Lr(n,e,t):Vc(n.f,e,t)}function _W(n){return Ln(),n?n.Oe():(kb(),kb(),Pun)}function Z0e(n){return Mo(n,cK),oC(nr(nr(5,n),n/10|0))}function bOn(n,e){return QM(),new sZ(new JCn(n),new WCn(e))}function kT(){kT=R,rQn=new fz(S(C(Id,1),WS,44,0,[]))}function wOn(n){return!n.d&&(n.d=new J3(n.c.Cc())),n.d}function Sm(n){return!n.a&&(n.a=new Hjn(n.c.vc())),n.a}function gOn(n){return!n.b&&(n.b=new im(n.c.ec())),n.b}function xh(n,e){for(;e-- >0;)n=n<<1|(n<0?1:0);return n}function pOn(n,e){var t;return t=new Nc(n),Bn(e.c,t),t}function mOn(n,e){n.u.Hc((zu(),Rl))&&zEe(n,e),hme(n,e)}function mc(n,e){return x(n)===x(e)||n!=null&&ct(n,e)}function Mr(n,e){return JN(n.a,e)?n.b[u(e,22).g]:null}function nge(){return QE(),S(C(con,1),G,488,0,[d_])}function ege(){return nM(),S(C(D1n,1),G,489,0,[xq])}function tge(){return eM(),S(C(zce,1),G,558,0,[Rq])}function ige(){return u6(),S(C(ean,1),G,539,0,[_j])}function yT(n){return!n.n&&(n.n=new q(Sr,n,1,7)),n.n}function mD(n){return!n.c&&(n.c=new q(Qu,n,9,9)),n.c}function HW(n){return!n.c&&(n.c=new Dn(he,n,5,8)),n.c}function rge(n){return!n.b&&(n.b=new Dn(he,n,4,7)),n.b}function H7(n){return n.j.c.length=0,UW(n.c),xae(n.a),n}function Pm(n){return n.e==iv&&jfe(n,Y8e(n.g,n.b)),n.e}function q7(n){return n.f==iv&&Mfe(n,q7e(n.g,n.b)),n.f}function We(n,e,t,i){return _xn(n,e,t,!1),KC(n,i),n}function vOn(n,e){this.b=n,oD.call(this,n,e),KCn(this)}function kOn(n,e){this.b=n,CV.call(this,n,e),BCn(this)}function z6(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function qW(n,e){this.b=n,this.c=e,this.a=new dp(this.b)}function Xi(n,e){return zn(e,n.length),n.charCodeAt(e)}function cge(n,e){OY(n,$(yl(e,"x")),$(yl(e,"y")))}function uge(n,e){OY(n,$(yl(e,"x")),$(yl(e,"y")))}function ut(n,e){return ia(n),new Cn(n,new nQ(e,n.a))}function _r(n,e){return ia(n),new Cn(n,new BJ(e,n.a))}function Uw(n,e){return ia(n),new rV(n,new INn(e,n.a))}function jT(n,e){return ia(n),new cV(n,new ONn(e,n.a))}function oge(n,e){return new UOn(u(Pe(n),50),u(Pe(e),50))}function sge(n,e){return bt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function yOn(n,e,t){t.a?tu(n,e.b-n.f/2):eu(n,e.a-n.g/2)}function fge(n,e){return bt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function hge(n,e){return Nz(),bt((Jn(n),n),(Jn(e),e))}function lge(n){return n!=null&&t7(jA,n.toLowerCase())}function UW(n){var e;for(e=n.Kc();e.Ob();)e.Pb(),e.Qb()}function Sg(n){var e;return e=n.b,!e&&(n.b=e=new N8n(n)),e}function vD(n){var e;return e=W4e(n),e||null}function jOn(n,e){var t,i;return t=n/e,i=wi(t),t>i&&++i,i}function age(n,e,t){var i;i=u(n.d.Kb(t),159),i&&i.Nb(e)}function dge(n,e,t){wOe(n.a,t),zve(t),xMe(n.b,t),xOe(e,t)}function ET(n,e,t,i){this.a=n,this.c=e,this.b=t,this.d=i}function GW(n,e,t,i){this.c=n,this.b=e,this.a=t,this.d=i}function EOn(n,e,t,i){this.c=n,this.b=e,this.d=t,this.a=i}function Ho(n,e,t,i){this.c=n,this.d=e,this.b=t,this.a=i}function MOn(n,e,t,i){this.a=n,this.d=e,this.c=t,this.b=i}function kD(n,e,t,i){this.a=n,this.e=e,this.d=t,this.c=i}function TOn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function yD(n,e,t){this.a=ptn,this.d=n,this.b=e,this.c=t}function Ap(n,e,t,i){je.call(this,n,e),this.a=t,this.b=i}function COn(n,e){this.d=(Jn(n),n),this.a=16449,this.c=e}function SOn(n){this.a=new Z,this.e=F(ye,J,53,n,0,2)}function bge(n){n.Ug("No crossing minimization",1),n.Vg()}function POn(){ec.call(this,"There is no more element.")}function IOn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function OOn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function Za(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function AOn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function LOn(n,e,t,i){Fo(),ANn.call(this,e,t,i),this.a=n}function NOn(n,e,t,i){Fo(),ANn.call(this,e,t,i),this.a=n}function jD(n,e,t){var i,r;return i=itn(n),r=e.ti(t,i),r}function al(n){var e,t;return t=(e=new Jd,e),Bm(t,n),t}function ED(n){var e,t;return t=(e=new Jd,e),onn(t,n),t}function wge(n,e){var t;return t=ee(n.f,e),FQ(e,t),null}function DOn(n){return!n.b&&(n.b=new q(Vt,n,12,3)),n.b}function $On(n){return D6(n==null||uD(n)&&n.Tm!==Q2),n}function MT(n){return n.n&&(n.e!==Rzn&&n.je(),n.j=null),n}function Im(n){if(eo(n.d),n.d.d!=n.c)throw T(new Ko)}function zW(n){return oe(n.b<n.d.gc()),n.d.Xb(n.c=n.b++)}function vo(n){n.a.a=n.c,n.c.b=n.a,n.a.b=n.c.a=null,n.b=0}function MD(n){this.f=n,this.c=this.f.e,n.f>0&&dFn(this)}function xOn(n,e){this.a=n,bae.call(this,n,u(n.d,15).fd(e))}function gge(n,e){return bt(Pu(n)*ao(n),Pu(e)*ao(e))}function pge(n,e){return bt(Pu(n)*ao(n),Pu(e)*ao(e))}function mge(n){return Bb(n)&&on(un(z(n,(cn(),Dd))))}function vge(n,e){return In(n,u(v(e,(cn(),Ev)),17),e)}function kge(n,e){return u(v(n,(W(),C3)),15).Fc(e),e}function XW(n,e){return n.b=e.b,n.c=e.c,n.d=e.d,n.a=e.a,n}function ROn(n,e,t,i){this.b=n,this.c=i,IM.call(this,e,t)}function yge(n,e,t){n.i=0,n.e=0,e!=t&&kRn(n,e,t)}function jge(n,e,t){n.i=0,n.e=0,e!=t&&yRn(n,e,t)}function Ege(n,e,t){return c6(),J5e(u(ee(n.e,e),529),t)}function Lp(n){var e;return e=n.f,e||(n.f=new fm(n,n.c))}function KOn(n,e){return Rg(n.j,e.s,e.c)+Rg(e.e,n.s,n.c)}function BOn(n,e){n.e&&!n.e.a&&(Cyn(n.e,e),BOn(n.e,e))}function FOn(n,e){n.d&&!n.d.a&&(Cyn(n.d,e),FOn(n.d,e))}function Mge(n,e){return-bt(Pu(n)*ao(n),Pu(e)*ao(e))}function Tge(n){return u(n.ld(),149).Pg()+":"+Jr(n.md())}function _On(){tR(this,new cG),this.wb=(z1(),Hn),um()}function HOn(n){this.b=new Z,hi(this.b,this.b),this.a=n}function VW(n,e){new Mt,this.a=new Tu,this.b=n,this.c=e}function kb(){kb=R,Sun=new $U,YF=new $U,Pun=new Abn}function Ln(){Ln=R,sr=new Cbn,Wh=new Pbn,hI=new Ibn}function WW(){WW=R,BQn=new Zbn,_Qn=new hW,FQn=new nwn}function Np(){Np=R,mI=new Z,p_=new de,g_=new Z}function TT(n,e){if(n==null)throw T(new fp(e));return n}function CT(n){return!n.a&&(n.a=new q(Ye,n,10,11)),n.a}function ft(n){return!n.q&&(n.q=new q(Ps,n,11,10)),n.q}function H(n){return!n.s&&(n.s=new q(ku,n,21,17)),n.s}function Cge(n){return Pe(n),IBn(new ie(ce(n.a.Kc(),new En)))}function Sge(n,e){return wo(n),wo(e),xjn(u(n,22),u(e,22))}function nd(n,e,t){var i,r;i=PV(t),r=new CE(i),bf(n,e,r)}function TD(n,e,t,i,r,c){rk.call(this,n,e,t,i,r,c?-2:-1)}function qOn(n,e,t,i){wX.call(this,e,t),this.b=n,this.a=i}function UOn(n,e){Vfe.call(this,new iD(n)),this.a=n,this.b=e}function JW(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function Pge(n){Rs();var e;e=u(n.g,10),e.n.a=n.d.c+e.d.b}function Om(){Om=R;var n,e;e=!$8e(),n=new X3,XF=e?new og:n}function CD(n){return Ln(),L(n,59)?new jL(n):new RM(n)}function ST(n){return L(n,16)?new $6(u(n,16)):owe(n.Kc())}function Ige(n){return new _Cn(n,n.e.Rd().gc()*n.c.Rd().gc())}function Oge(n){return new HCn(n,n.e.Rd().gc()*n.c.Rd().gc())}function QW(n){return n&&n.hashCode?n.hashCode():fb(n)}function SD(n,e){return e==null?!!wr(n.f,null):zwe(n.i,e)}function Age(n,e){var t;return t=NX(n.a,e),t&&(e.d=null),t}function GOn(n,e,t){return n.f?n.f.ef(e,t):!1}function U7(n,e,t,i){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i)}function PD(n,e,t,i){$t(n.c[e.g],e.g,t),$t(n.b[e.g],e.g,i)}function Lge(n,e,t){return $(B(t.a))<=n&&$(B(t.b))>=e}function zOn(n,e){this.g=n,this.d=S(C(Qh,1),b1,10,0,[e])}function XOn(n){this.c=n,this.b=new Ul(u(Pe(new ewn),50))}function VOn(n){this.c=n,this.b=new Ul(u(Pe(new n0n),50))}function WOn(n){this.b=n,this.a=new Ul(u(Pe(new Nwn),50))}function JOn(){this.b=new ni,this.d=new Mt,this.e=new QG}function YW(){this.c=new Ni,this.d=new Ni,this.e=new Ni}function yb(){this.a=new Tu,this.b=(Mo(3,m0),new Gc(3))}function Wl(n,e){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e}function PT(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function QOn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function YOn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function W1(n,e,t,i,r,c,s){return new GD(n.e,e,t,i,r,c,s)}function Nge(n,e,t){return t>=0&&Sn(n.substr(t,e.length),e)}function ZOn(n,e){return L(e,149)&&Sn(n.b,u(e,149).Pg())}function Dge(n,e){return n.a?e.Gh().Kc():u(e.Gh(),71).Ii()}function nAn(n,e){var t;return t=n.b.Qc(e),VLn(t,n.b.gc()),t}function G7(n,e){if(n==null)throw T(new fp(e));return n}function Hr(n){return n.u||(Zu(n),n.u=new NSn(n,n)),n.u}function ID(n){this.a=(Ln(),L(n,59)?new jL(n):new RM(n))}function au(n){var e;return e=u(Un(n,16),29),e||n.ii()}function IT(n,e){var t;return t=Xa(n.Rm),e==null?t:t+": "+e}function qo(n,e,t){return Ri(e,t,n.length),n.substr(e,t-e)}function eAn(n,e){HM.call(this),fQ(this),this.a=n,this.c=e}function $ge(n){n&&IT(n,n.ie())}function xge(n){_E(),y.setTimeout(function(){throw n},0)}function Rge(){return YC(),S(C(xun,1),G,436,0,[u_,$un])}function Kge(){return cC(),S(C(Kun,1),G,435,0,[Run,o_])}function Bge(){return uC(),S(C(aon,1),G,432,0,[m_,vI])}function Fge(){return Xm(),S(C(FZn,1),G,517,0,[aj,L_])}function _ge(){return ok(),S(C(xsn,1),G,487,0,[$sn,QI])}function Hge(){return bk(),S(C(Nsn,1),G,428,0,[WI,Lsn])}function qge(){return QT(),S(C(Tsn,1),G,431,0,[Msn,X_])}function Uge(){return ak(),S(C(_hn,1),G,430,0,[qH,UH])}function Gge(){return Q6(),S(C(Aie,1),G,531,0,[Z8,Y8])}function zge(){return fh(),S(C(Kie,1),G,523,0,[gw,y1])}function Xge(){return If(),S(C(Fie,1),G,522,0,[Bd,Xf])}function Vge(){return af(),S(C(ere,1),G,528,0,[z0,Ma])}function Wge(){return FT(),S(C(Wsn,1),G,429,0,[sH,Vsn])}function Jge(){return GT(),S(C(S1n,1),G,490,0,[Nq,C1n])}function Qge(){return D$(),S(C(N1n,1),G,491,0,[A1n,L1n])}function Yge(){return RT(),S(C(xln,1),G,433,0,[aq,$ln])}function Zge(){return ZT(),S(C(Bln,1),G,434,0,[Kln,mq])}function n2e(){return Eb(),S(C(sre,1),G,464,0,[Ta,O2])}function e2e(){return yC(),S(C(Rln,1),G,500,0,[BO,N2])}function t2e(){return tk(),S(C($1n,1),G,438,0,[Kq,JO])}function i2e(){return Mk(),S(C(ian,1),G,437,0,[YO,tan])}function r2e(){return BN(),S(C(dA,1),G,347,0,[mdn,vdn])}function OT(n,e,t,i){return t>=0?n.Uh(e,t,i):n.Ch(null,t,i)}function z7(n){return n.b.b==0?n.a.sf():UN(n.b)}function c2e(n){if(n.p!=5)throw T(new Mu);return Se(n.f)}function u2e(n){if(n.p!=5)throw T(new Mu);return Se(n.k)}function ZW(n){return x(n.a)===x((L$(),jU))&&rAe(n),n.a}function o2e(n,e){n.b=e,n.c>0&&n.b>0&&(n.g=rT(n.c,n.b,n.a))}function s2e(n,e){n.c=e,n.c>0&&n.b>0&&(n.g=rT(n.c,n.b,n.a))}function tAn(n,e){ufe(this,new V(n.a,n.b)),ofe(this,$7(e))}function jb(){Wfe.call(this,new ap(Qw(12))),KX(!0),this.a=2}function OD(n,e,t){nt(),Wd.call(this,n),this.b=e,this.a=t}function nJ(n,e,t){Fo(),LE.call(this,e),this.a=n,this.b=t}function iAn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function f2e(n){return n.b==0?null:(oe(n.b!=0),Xo(n,n.a.a))}function Dc(n,e){return e==null?Fr(wr(n.f,null)):h6(n.i,e)}function rAn(n,e,t,i,r){return new rR(n,(Rm(),t_),e,t,i,r)}function AT(n,e){return GLn(e),N4e(n,F(ye,_e,28,e,15,1),e)}function LT(n,e){return TT(n,"set1"),TT(e,"set2"),new XEn(n,e)}function h2e(n,e){var t=cun[n.charCodeAt(0)];return t??n}function cAn(n,e){var t,i;return t=e,i=new LA,NGn(n,t,i),i.d}function AD(n,e,t,i){var r;r=new xSn,e.a[t.g]=r,Ip(n.b,i,r)}function l2e(n,e){var t;return t=O4e(n.f,e),it(_M(t),n.f.d)}function NT(n){var e;_4e(n.a),aCn(n.a),e=new IE(n.a),FY(e)}function a2e(n,e){_qn(n,!0),nu(n.e.Rf(),new LV(n,!0,e))}function d2e(n,e){return Np(),n==St(Fh(e))||n==St(ca(e))}function b2e(n,e){return kl(),u(v(e,(lc(),Ph)),17).a==n}function wi(n){return Math.max(Math.min(n,et),-2147483648)|0}function uAn(n){this.a=u(Pe(n),277),this.b=(Ln(),new GX(n))}function oAn(n,e,t){this.i=new Z,this.b=n,this.g=e,this.a=t}function eJ(n,e,t){this.a=new Z,this.e=n,this.f=e,this.c=t}function DT(n,e,t){this.c=new Z,this.e=n,this.f=e,this.b=t}function sAn(n){HM.call(this),fQ(this),this.a=n,this.c=!0}function w2e(n){function e(){}return e.prototype=n||{},new e}function g2e(n){if(n.Ae())return null;var e=n.n;return rI[e]}function X7(n){return n.Db>>16!=3?null:u(n.Cb,27)}function Pf(n){return n.Db>>16!=9?null:u(n.Cb,27)}function fAn(n){return n.Db>>16!=6?null:u(n.Cb,74)}function Eb(){Eb=R,Ta=new iX(s3,0),O2=new iX(f3,1)}function fh(){fh=R,gw=new nX(f3,0),y1=new nX(s3,1)}function If(){If=R,Bd=new eX(_K,0),Xf=new eX("UP",1)}function hAn(){hAn=R,oQn=Me((KE(),S(C(uQn,1),G,549,0,[GF])))}function lAn(n){var e;return e=new GE(Qw(n.length)),ZQ(e,n),e}function aAn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function p2e(n,e){return Yxn(n,e)?(V$n(n),!0):!1}function dl(n,e){if(e==null)throw T(new rp);return R8e(n,e)}function V7(n,e){var t;t=n.q.getHours(),n.q.setDate(e),F5(n,t)}function tJ(n,e,t){var i;i=n.Ih(e),i>=0?n.bi(i,t):Znn(n,e,t)}function dAn(n,e){var t;return t=n.Ih(e),t>=0?n.Wh(t):hR(n,e)}function bAn(n,e){var t;for(Pe(e),t=n.a;t;t=t.c)e.Yd(t.g,t.i)}function LD(n,e,t){var i;i=mRn(n,e,t),n.b=new EC(i.c.length)}function Pg(n,e,t){$T(),n&&Ve(vU,n,e),n&&Ve(fE,n,t)}function m2e(n,e){return XM(),_n(),u(e.a,17).a<n}function v2e(n,e){return XM(),_n(),u(e.b,17).a<n}function ND(n,e){return y.Math.abs(n)<y.Math.abs(e)?n:e}function k2e(n){return!n.a&&(n.a=new q(Ye,n,10,11)),n.a.i>0}function iJ(n){var e;return e=n.d,e=n.bj(n.f),ve(n,e),e.Ob()}function wAn(n,e){var t;return t=new oW(e),FFn(t,n),new _u(t)}function y2e(n){if(n.p!=0)throw T(new Mu);return j6(n.f,0)}function j2e(n){if(n.p!=0)throw T(new Mu);return j6(n.k,0)}function gAn(n){return n.Db>>16!=7?null:u(n.Cb,241)}function Am(n){return n.Db>>16!=6?null:u(n.Cb,241)}function pAn(n){return n.Db>>16!=7?null:u(n.Cb,167)}function St(n){return n.Db>>16!=11?null:u(n.Cb,27)}function Gw(n){return n.Db>>16!=17?null:u(n.Cb,29)}function mAn(n){return n.Db>>16!=3?null:u(n.Cb,155)}function rJ(n){var e;return ia(n),e=new ni,ut(n,new M9n(e))}function vAn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function E2e(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),F5(n,t)}function kAn(n,e){$M(this),this.f=e,this.g=n,MT(this),this.je()}function yAn(n,e){this.a=n,this.c=Fi(this.a),this.b=new PT(e)}function jAn(n,e,t){this.a=e,this.c=n,this.b=(Pe(t),new _u(t))}function EAn(n,e,t){this.a=e,this.c=n,this.b=(Pe(t),new _u(t))}function MAn(n){this.a=n,this.b=F(Pie,J,2043,n.e.length,0,2)}function TAn(){this.a=new rh,this.e=new ni,this.g=0,this.i=0}function $T(){$T=R,vU=new de,fE=new de,ple(TQn,new bvn)}function CAn(){CAn=R,aie=Iu(new ii,(Vi(),zr),(tr(),dj))}function cJ(){cJ=R,die=Iu(new ii,(Vi(),zr),(tr(),dj))}function SAn(){SAn=R,wie=Iu(new ii,(Vi(),zr),(tr(),dj))}function PAn(){PAn=R,Nie=Fe(new ii,(Vi(),zr),(tr(),A8))}function ko(){ko=R,xie=Fe(new ii,(Vi(),zr),(tr(),A8))}function IAn(){IAn=R,Rie=Fe(new ii,(Vi(),zr),(tr(),A8))}function DD(){DD=R,Hie=Fe(new ii,(Vi(),zr),(tr(),A8))}function X6(n,e,t,i,r,c){return new ml(n.e,e,n.Lj(),t,i,r,c)}function Lr(n,e,t){return e==null?Vc(n.f,null,t):Nb(n.i,e,t)}function Zi(n,e){n.c&&du(n.c.g,n),n.c=e,n.c&&nn(n.c.g,n)}function $i(n,e){n.c&&du(n.c.a,n),n.c=e,n.c&&nn(n.c.a,n)}function ic(n,e){n.i&&du(n.i.j,n),n.i=e,n.i&&nn(n.i.j,n)}function Oi(n,e){n.d&&du(n.d.e,n),n.d=e,n.d&&nn(n.d.e,n)}function $D(n,e){n.a&&du(n.a.k,n),n.a=e,n.a&&nn(n.a.k,n)}function xD(n,e){n.b&&du(n.b.f,n),n.b=e,n.b&&nn(n.b.f,n)}function OAn(n,e){$0e(n,n.b,n.c),u(n.b.b,68),e&&u(e.b,68).b}function M2e(n,e){return bt(u(n.c,65).c.e.b,u(e.c,65).c.e.b)}function T2e(n,e){return bt(u(n.c,65).c.e.a,u(e.c,65).c.e.a)}function C2e(n){return Y$(),_n(),u(n.a,86).d.e!=0}function xT(n,e){L(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,e)}function RD(n,e){L(n.Cb,90)&&h0(Zu(u(n.Cb,90)),4),zc(n,e)}function S2e(n,e){AY(n,e),L(n.Cb,90)&&h0(Zu(u(n.Cb,90)),2)}function P2e(n,e){var t,i;t=e.c,i=t!=null,i&&Op(n,new qw(e.c))}function AAn(n){var e,t;return t=(um(),e=new Jd,e),Bm(t,n),t}function LAn(n){var e,t;return t=(um(),e=new Jd,e),Bm(t,n),t}function NAn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function I2e(n,e,t){return nn(n.a,(kT(),Dx(e,t),new tb(e,t))),n}function $c(n,e){return dr(),a$(e)?new nT(e,n):new k7(e,n)}function W7(n){return dh(),Ec(n,0)>=0?ra(n):H6(ra(n1(n)))}function O2e(n){var e;return e=u(YM(n.b),9),new _o(n.a,e,n.c)}function DAn(n,e){var t;return t=u(t0(Lp(n.a),e),16),t?t.gc():0}function $An(n,e,t){var i;uKn(e,t,n.c.length),i=t-e,Sz(n.c,e,i)}function Jl(n,e,t){uKn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function Dp(n){this.c=new Mt,this.b=n.b,this.d=n.c,this.a=n.a}function KD(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function ed(n,e,t,i){this.c=n,this.d=i,$D(this,e),xD(this,t)}function uJ(n,e){Xfe.call(this,new ap(Qw(n))),Mo(e,Azn),this.a=e}function xAn(n,e,t){return new rR(n,(Rm(),e_),null,!1,e,t)}function RAn(n,e,t){return new rR(n,(Rm(),i_),e,t,null,!1)}function A2e(){return Gu(),S(C(xr,1),G,108,0,[Dun,Yr,S0])}function L2e(){return bu(),S(C(JQn,1),G,471,0,[kf,va,Xs])}function N2e(){return Uu(),S(C(VQn,1),G,470,0,[Th,ma,zs])}function D2e(){return wf(),S(C(P0,1),G,237,0,[bc,Wc,wc])}function $2e(){return n5(),S(C(Son,1),G,391,0,[j_,y_,E_])}function x2e(){return Ob(),S(C(K_,1),G,372,0,[rw,ka,iw])}function R2e(){return i5(),S(C(Ssn,1),G,322,0,[N8,gj,Csn])}function K2e(){return bC(),S(C(Isn,1),G,351,0,[Psn,VI,V_])}function B2e(){return hd(),S(C(pne,1),G,459,0,[Q_,pv,m2])}function F2e(){return Ym(),S(C(oH,1),G,298,0,[cH,uH,pj])}function _2e(){return vl(),S(C(Tne,1),G,311,0,[mj,k2,E3])}function H2e(){return d5(),S(C(Ahn,1),G,390,0,[xH,Ohn,TO])}function q2e(){return gr(),S(C(cie,1),G,462,0,[W8,Vu,Jc])}function U2e(){return PC(),S(C(Uhn,1),G,387,0,[Hhn,GH,qhn])}function G2e(){return h5(),S(C(Ghn,1),G,349,0,[XH,zH,Ij])}function z2e(){return u4(),S(C(Xhn,1),G,350,0,[VH,zhn,J8])}function X2e(){return dC(),S(C(Jhn,1),G,352,0,[Whn,WH,Vhn])}function V2e(){return LC(),S(C(Qhn,1),G,388,0,[JH,Ov,G0])}function W2e(){return Ib(),S(C(Cie,1),G,463,0,[Oj,Q8,IO])}function Of(n){return cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a]))}function J2e(){return l5(),S(C(bln,1),G,392,0,[dln,ZH,Lj])}function KAn(){KAn=R,Rre=Iu(new ii,(Qp(),e9),(K5(),rln))}function RT(){RT=R,aq=new rX("DFS",0),$ln=new rX("BFS",1)}function BAn(n,e,t){var i;i=new j3n,i.b=e,i.a=t,++e.b,nn(n.d,i)}function Q2e(n,e,t){var i;i=new rr(t.d),it(i,n),OY(e,i.a,i.b)}function Y2e(n,e){LCn(n,Se(vi(db(e,24),YS)),Se(vi(e,YS)))}function zw(n,e){if(n<0||n>e)throw T(new Or(Ctn+n+Stn+e))}function Nn(n,e){if(n<0||n>=e)throw T(new Or(Ctn+n+Stn+e))}function zn(n,e){if(n<0||n>=e)throw T(new bz(Ctn+n+Stn+e))}function On(n,e){this.b=(Jn(n),n),this.a=e&v0?e:e|64|wh}function oJ(n){var e;return ia(n),e=(kb(),kb(),YF),fC(n,e)}function Z2e(n,e,t){var i;return i=q5(n,e,!1),i.b<=e&&i.a<=t}function npe(){return nC(),S(C(O1n,1),G,439,0,[Dq,I1n,P1n])}function epe(){return _C(),S(C(h1n,1),G,394,0,[f1n,Oq,s1n])}function tpe(){return XC(),S(C(o1n,1),G,445,0,[Rj,qO,Mq])}function ipe(){return rS(),S(C(bce,1),G,455,0,[Tq,Sq,Cq])}function rpe(){return Pk(),S(C(Hln,1),G,393,0,[FO,Fln,_ln])}function cpe(){return SC(),S(C(u1n,1),G,299,0,[Eq,c1n,r1n])}function upe(){return $f(),S(C(Yan,1),G,278,0,[xv,J0,Rv])}function ope(){return Gp(),S(C(pdn,1),G,280,0,[gdn,Y0,aA])}function spe(){return jl(),S(C(hdn,1),G,346,0,[uA,T1,j9])}function fpe(){return Dk(),S(C($q,1),G,444,0,[XO,VO,WO])}function Mb(n){return Pe(n),L(n,16)?new _u(u(n,16)):km(n.Kc())}function sJ(n,e){return n&&n.equals?n.equals(e):x(n)===x(e)}function vi(n,e){return Z1(e0e(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function lf(n,e){return Z1(t0e(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function BD(n,e){return Z1(i0e(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hpe(n,e){var t;return t=(Jn(n),n).g,tV(!!t),Jn(e),t(e)}function FAn(n,e){var t,i;return i=Em(n,e),t=n.a.fd(i),new GEn(n,t)}function lpe(n){return n.Db>>16!=6?null:u(dR(n),241)}function ape(n){if(n.p!=2)throw T(new Mu);return Se(n.f)&ui}function dpe(n){if(n.p!=2)throw T(new Mu);return Se(n.k)&ui}function E(n){return oe(n.a<n.c.c.length),n.b=n.a++,n.c.c[n.b]}function bpe(n,e){n.b=n.b|e.b,n.c=n.c|e.c,n.d=n.d|e.d,n.a=n.a|e.a}function wpe(n,e){var t;t=$(B(n.a.of((He(),iA)))),tzn(n,e,t)}function _An(n,e){Ya.call(this,1,2,S(C(ye,1),_e,28,15,[n,e]))}function HAn(n,e,t){Wd.call(this,25),this.b=n,this.a=e,this.c=t}function yo(n){nt(),Wd.call(this,n),this.c=!1,this.a=!1}function gpe(n){return n.a==(Dm(),CA)&&mfe(n,OSe(n.g,n.b)),n.a}function $p(n){return n.d==(Dm(),CA)&&kfe(n,IIe(n.g,n.b)),n.d}function ppe(n,e){return e5(),n.c==e.c?bt(e.d,n.d):bt(e.c,n.c)}function mpe(n,e){return e5(),n.c==e.c?bt(e.d,n.d):bt(n.c,e.c)}function vpe(n,e){return e5(),n.c==e.c?bt(n.d,e.d):bt(n.c,e.c)}function kpe(n,e){return e5(),n.c==e.c?bt(n.d,e.d):bt(e.c,n.c)}function fJ(n,e){return lIn(n.a,e)?YV(n.b,u(e,22).g,null):null}function ype(n){return nr(Ks(vc(to(n,32)),32),vc(to(n,32)))}function hJ(n){return n.b==null||n.b.length==0?"n_"+n.a:"n_"+n.b}function td(n){return n.c==null||n.c.length==0?"n_"+n.g:"n_"+n.c}function qAn(n,e){var t;for(t=n+"";t.length<e;)t="0"+t;return t}function jpe(n,e){var t;t=u(ee(n.g,e),60),nu(e.d,new RMn(n,t))}function Epe(n,e){var t,i;return t=zBn(n),i=zBn(e),t<i?-1:t>i?1:0}function UAn(n,e){var t,i;return t=s$(e),i=t,u(ee(n.c,i),17).a}function FD(n,e,t){var i;i=n.d[e.p],n.d[e.p]=n.d[t.p],n.d[t.p]=i}function Mpe(n,e,t){var i;n.n&&e&&t&&(i=new cvn,nn(n.e,i))}function _D(n,e){if(fi(n.a,e),e.d)throw T(new ec(nXn));e.d=n}function lJ(n,e){this.a=new Z,this.d=new Z,this.f=n,this.c=e}function GAn(){this.c=new PCn,this.a=new DNn,this.b=new zyn,hMn()}function zAn(){qp(),this.b=new de,this.a=new de,this.c=new Z}function XAn(n,e,t){this.d=n,this.j=e,this.e=t,this.o=-1,this.p=3}function VAn(n,e,t){this.d=n,this.k=e,this.f=t,this.o=-1,this.p=5}function WAn(n,e,t,i,r,c){lQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function JAn(n,e,t,i,r,c){aQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function QAn(n,e,t,i,r,c){IJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function YAn(n,e,t,i,r,c){wQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function ZAn(n,e,t,i,r,c){OJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function nLn(n,e,t,i,r,c){dQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function eLn(n,e,t,i,r,c){bQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function tLn(n,e,t,i,r,c){AJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function iLn(n,e,t,i){LE.call(this,t),this.b=n,this.c=e,this.d=i}function rLn(n,e){this.f=n,this.a=(Dm(),TA),this.c=TA,this.b=e}function cLn(n,e){this.g=n,this.d=(Dm(),CA),this.a=CA,this.b=e}function aJ(n,e){!n.c&&(n.c=new Ft(n,0)),HS(n.c,(at(),D9),e)}function Tpe(n,e){return oTe(n,e,L(e,102)&&(u(e,19).Bb&hr)!=0)}function Cpe(n,e){return BIn(vc(n.q.getTime()),vc(e.q.getTime()))}function uLn(n){return XN(n.e.Rd().gc()*n.c.Rd().gc(),16,new O8n(n))}function Spe(n){return!!n.u&&Pc(n.u.a).i!=0&&!(n.n&&Ox(n.n))}function Ppe(n){return!!n.a&&no(n.a.a).i!=0&&!(n.b&&Ax(n.b))}function dJ(n,e){return e==0?!!n.o&&n.o.f!=0:Mx(n,e)}function Ipe(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Hc(t)}function oLn(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Mc(t)}function sLn(n,e){var t;return t=1-e,n.a[t]=jC(n.a[t],t),jC(n,e)}function fLn(n,e){var t,i;return i=vi(n,mr),t=Ks(e,32),lf(t,i)}function hLn(n,e,t){var i;i=(Pe(n),new _u(n)),A7e(new jAn(i,e,t))}function J7(n,e,t){var i;i=(Pe(n),new _u(n)),L7e(new EAn(i,e,t))}function fc(n,e,t,i,r,c){return _xn(n,e,t,c),jY(n,i),EY(n,r),n}function lLn(n,e,t,i){return n.a+=""+qo(e==null?gu:Jr(e),t,i),n}function xi(n,e){this.a=n,Gv.call(this,n),zw(e,n.gc()),this.b=e}function aLn(n){this.a=F(ki,Rn,1,WQ(y.Math.max(8,n))<<1,5,1)}function Q7(n){return u(Rf(n,F(Qh,b1,10,n.c.length,0,1)),199)}function hh(n){return u(Rf(n,F(O_,rB,18,n.c.length,0,1)),482)}function dLn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function V6(n){for(;n.d>0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function bLn(n){return oe(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function Ope(n,e,t){n.a=e,n.c=t,n.b.a.$b(),vo(n.d),Sw(n.e.a.c,0)}function wLn(n,e){var t;n.e=new rz,t=a0(e),Yt(t,n.c),Oqn(n,t,0)}function ri(n,e,t,i){var r;r=new YU,r.a=e,r.b=t,r.c=i,Re(n.a,r)}function Q(n,e,t,i){var r;r=new YU,r.a=e,r.b=t,r.c=i,Re(n.b,r)}function gLn(n,e,t){if(n<0||e<n||e>t)throw T(new Or(qje(n,e,t)))}function Y7(n,e){if(n<0||n>=e)throw T(new Or(kEe(n,e)));return n}function Ape(n){if(!("stack"in n))try{throw n}catch{}return n}function Ig(n){return c6(),L(n.g,10)?u(n.g,10):null}function Lpe(n){return Sg(n).dc()?!1:(e1e(n,new Ir),!0)}function id(n){var e;return Vr(n)?(e=n,e==-0?0:e):Xme(n)}function pLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function mLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function vLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function bJ(n){var e;return V1(n),e=new Lbn,lg(n.a,new y9n(e)),e}function wJ(){var n,e,t;return e=(t=(n=new Jd,n),t),nn(Zdn,e),e}function KT(n){var e;return V1(n),e=new Nbn,lg(n.a,new j9n(e)),e}function Npe(n,e){return n.a<=n.b?(e.Dd(n.a++),!0):!1}function kLn(n){I$.call(this,n,(Rm(),n_),null,!1,null,!1)}function yLn(){yLn=R,PYn=Me((QE(),S(C(con,1),G,488,0,[d_])))}function jLn(){jLn=R,Zhn=bOn(Y(1),Y(4)),Yhn=bOn(Y(1),Y(2))}function Dpe(n,e){return new _N(e,A6(Fi(e.e),n,n),(_n(),!0))}function BT(n){return new Gc((Mo(n,cK),oC(nr(nr(5,n),n/10|0))))}function $pe(n){return XN(n.e.Rd().gc()*n.c.Rd().gc(),273,new I8n(n))}function ELn(n){return u(Rf(n,F(RZn,LXn,12,n.c.length,0,1)),2042)}function xpe(n){return ko(),!fr(n)&&!(!fr(n)&&n.c.i.c==n.d.i.c)}function Rpe(n,e){return _p(),u(v(e,(lc(),A2)),17).a>=n.gc()}function W6(n,e){vNe(e,n),VV(n.d),VV(u(v(n,(cn(),mO)),214))}function HD(n,e){kNe(e,n),WV(n.d),WV(u(v(n,(cn(),mO)),214))}function Kpe(n,e,t){n.d&&du(n.d.e,n),n.d=e,n.d&&ab(n.d.e,t,n)}function Bpe(n,e,t){return t.f.c.length>0?EW(n.a,e,t):EW(n.b,e,t)}function Fpe(n,e,t){var i;i=i9e();try{return Sae(n,e,t)}finally{L3e(i)}}function Tb(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.pe()),i}function J6(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.se()),i}function Lm(n,e){var t,i;return t=Jw(n,e),i=null,t&&(i=t.se()),i}function bl(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=bnn(t)),i}function _pe(n,e,t){var i;return i=b4(t),RS(n.g,i,e),RS(n.i,e,t),e}function gJ(n,e,t){this.d=new D7n(this),this.e=n,this.i=e,this.f=t}function MLn(n,e,t,i){this.e=null,this.c=n,this.d=e,this.a=t,this.b=i}function TLn(n,e,t,i){jCn(this),this.c=n,this.e=e,this.f=t,this.b=i}function pJ(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function CLn(n,e,t,i){return L(t,59)?new tSn(n,e,t,i):new pW(n,e,t,i)}function Nm(n){return L(n,16)?u(n,16).dc():!n.Kc().Ob()}function SLn(n){if(n.e.g!=n.b)throw T(new Ko);return!!n.c&&n.d>0}function be(n){return oe(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function mJ(n,e){Jn(e),$t(n.a,n.c,e),n.c=n.c+1&n.a.length-1,WBn(n)}function J1(n,e){Jn(e),n.b=n.b-1&n.a.length-1,$t(n.a,n.b,e),WBn(n)}function PLn(n){var e;e=n.Gh(),this.a=L(e,71)?u(e,71).Ii():e.Kc()}function Hpe(n){return new On(S4e(u(n.a.md(),16).gc(),n.a.ld()),16)}function ILn(){ILn=R,Gce=Me((nM(),S(C(D1n,1),G,489,0,[xq])))}function OLn(){OLn=R,Xce=Me((eM(),S(C(zce,1),G,558,0,[Rq])))}function ALn(){ALn=R,lue=Me((u6(),S(C(ean,1),G,539,0,[_j])))}function qpe(){return dd(),S(C(Aon,1),G,389,0,[A0,Oon,P_,I_])}function Upe(){return Rm(),S(C(lI,1),G,303,0,[n_,e_,t_,i_])}function Gpe(){return Vp(),S(C(EYn,1),G,332,0,[cj,rj,uj,oj])}function zpe(){return M5(),S(C(CYn,1),G,406,0,[sj,wI,gI,fj])}function Xpe(){return Lb(),S(C(yYn,1),G,417,0,[ij,tj,l_,a_])}function Vpe(){return Zm(),S(C(TZn,1),G,416,0,[tw,O0,I0,d2])}function Wpe(){return xf(),S(C(ene,1),G,421,0,[j3,hv,lv,R_])}function Jpe(){return AC(),S(C(UZn,1),G,371,0,[x_,HI,qI,bj])}function Qpe(){return c0(),S(C(KH,1),G,203,0,[CO,RH,I2,P2])}function Ype(){return lh(),S(C(Fhn,1),G,284,0,[k1,Bhn,_H,HH])}function Zpe(n){var e;return n.j==(en(),ae)&&(e=mHn(n),Su(e,Zn))}function n3e(n,e){var t;t=e.a,Zi(t,e.c.d),Oi(t,e.d.d),n0(t.a,n.n)}function vJ(n,e){var t;return t=u(Df(n.b,e),67),!t&&(t=new Mt),t}function xp(n){return c6(),L(n.g,154)?u(n.g,154):null}function e3e(n){n.a=null,n.e=null,Sw(n.b.c,0),Sw(n.f.c,0),n.c=null}function FT(){FT=R,sH=new Qz(H4,0),Vsn=new Qz("TOP_LEFT",1)}function Q6(){Q6=R,Z8=new Zz("UPPER",0),Y8=new Zz("LOWER",1)}function t3e(n,e){return vp(new V(e.e.a+e.f.a/2,e.e.b+e.f.b/2),n)}function LLn(n,e){return u(ho(_w(u(ot(n.k,e),15).Oc(),w2)),113)}function NLn(n,e){return u(ho(Sp(u(ot(n.k,e),15).Oc(),w2)),113)}function i3e(){return Qp(),S(C(tln,1),G,405,0,[NO,n9,e9,t9])}function r3e(){return a5(),S(C(Dln,1),G,353,0,[lq,KO,hq,fq])}function c3e(){return sS(),S(C(i1n,1),G,354,0,[jq,e1n,t1n,n1n])}function u3e(){return go(),S(C(S9,1),G,386,0,[iE,Gd,tE,Q0])}function o3e(){return Co(),S(C(Yue,1),G,290,0,[Zj,nl,Pa,Yj])}function s3e(){return El(),S(C(hU,1),G,223,0,[fU,Qj,Kv,x3])}function f3e(){return qC(),S(C(Edn,1),G,320,0,[dU,kdn,jdn,ydn])}function h3e(){return NC(),S(C(woe,1),G,415,0,[bU,Tdn,Mdn,Cdn])}function l3e(n){return $T(),Zc(vU,n)?u(ee(vU,n),341).Qg():null}function Uo(n,e,t){return e<0?hR(n,t):u(t,69).wk().Bk(n,n.hi(),e)}function a3e(n,e,t){var i;return i=b4(t),RS(n.j,i,e),Ve(n.k,e,t),e}function d3e(n,e,t){var i;return i=b4(t),RS(n.d,i,e),Ve(n.e,e,t),e}function DLn(n){var e,t;return e=(B1(),t=new HA,t),n&&SS(e,n),e}function kJ(n){var e;return e=n.aj(n.i),n.i>0&&Oc(n.g,0,e,0,n.i),e}function $Ln(n,e){var t;for(t=n.j.c.length;t<e;t++)nn(n.j,n.Ng())}function xLn(n,e,t,i){var r;return r=i[e.g][t.g],$(B(v(n.a,r)))}function RLn(n,e){tM();var t;return t=u(ee(yA,n),57),!t||t.fk(e)}function b3e(n){if(n.p!=1)throw T(new Mu);return Se(n.f)<<24>>24}function w3e(n){if(n.p!=1)throw T(new Mu);return Se(n.k)<<24>>24}function g3e(n){if(n.p!=7)throw T(new Mu);return Se(n.k)<<16>>16}function p3e(n){if(n.p!=7)throw T(new Mu);return Se(n.f)<<16>>16}function Og(n,e){return e.e==0||n.e==0?C8:(C4(),vR(n,e))}function KLn(n,e){return x(e)===x(n)?"(this Map)":e==null?gu:Jr(e)}function m3e(n,e,t){return tD(B(Fr(wr(n.f,e))),B(Fr(wr(n.f,t))))}function v3e(n,e,t){var i;i=u(ee(n.g,t),60),nn(n.a.c,new bi(e,i))}function BLn(n,e,t){n.i=0,n.e=0,e!=t&&(yRn(n,e,t),kRn(n,e,t))}function k3e(n,e,t,i,r){var c;c=yTe(r,t,i),nn(e,dEe(r,c)),rje(n,r,e)}function yJ(n,e,t,i,r){this.i=n,this.a=e,this.e=t,this.j=i,this.f=r}function FLn(n,e){YW.call(this),this.a=n,this.b=e,nn(this.a.b,this)}function _Ln(n){this.b=new de,this.c=new de,this.d=new de,this.a=n}function HLn(n,e){var t;return t=new fg,n.Gd(t),t.a+="..",e.Hd(t),t.a}function qLn(n,e){var t;for(t=e;t;)hb(n,t.i,t.j),t=St(t);return n}function ULn(n,e,t){var i;return i=b4(t),Ve(n.b,i,e),Ve(n.c,e,t),e}function wl(n){var e;for(e=0;n.Ob();)n.Pb(),e=nr(e,1);return oC(e)}function Rh(n,e){dr();var t;return t=u(n,69).vk(),kje(t,e),t.xl(e)}function y3e(n,e,t){if(t){var i=t.oe();n.a[e]=i(t)}else delete n.a[e]}function jJ(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+la),F5(n,t)}function j3e(n,e){return u(e==null?Fr(wr(n.f,null)):h6(n.i,e),288)}function EJ(n,e){return n==(Vn(),Xt)&&e==Xt?4:n==Xt||e==Xt?8:32}function _T(n,e,t){return BS(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function E3e(n,e,t){return O4(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function M3e(n,e,t){return bTe(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function MJ(n){n.b!=n.c&&(n.a=F(ki,Rn,1,8,5,1),n.b=0,n.c=0)}function Y6(n){return oe(n.a<n.c.a.length),n.b=n.a,t$n(n),n.c.b[n.b]}function Pc(n){return n.n||(Zu(n),n.n=new pIn(n,jr,n),Hr(n)),n.n}function GLn(n){if(n<0)throw T(new Kjn("Negative array size: "+n))}function qD(n,e,t){if(t){var i=t.oe();t=i(t)}else t=void 0;n.a[e]=t}function zLn(n,e){r4();var t;return t=n.j.g-e.j.g,t!=0?t:0}function T3e(n,e){return fl(),ve(H(n.a),e)}function C3e(n,e){return fl(),ve(H(n.a),e)}function gl(n,e){dh(),Ya.call(this,n,1,S(C(ye,1),_e,28,15,[e]))}function Xw(n,e){nt(),Wd.call(this,n),this.a=e,this.c=-1,this.b=-1}function Vw(n,e,t,i){XAn.call(this,1,t,i),this.c=n,this.b=e}function UD(n,e,t,i){VAn.call(this,1,t,i),this.c=n,this.b=e}function GD(n,e,t,i,r,c,s){k$.call(this,e,i,r,c,s),this.c=n,this.a=t}function rd(n,e,t){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e,this.d=t}function zD(n){this.e=n,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function TJ(n){this.d=n,this.b=this.d.a.entries(),this.a=this.b.next()}function XLn(n){this.c=n,this.a=u(gs(n),156),this.b=this.a.jk().wi()}function Ql(){de.call(this),oSn(this),this.d.b=this.d,this.d.a=this.d}function xt(n,e,t,i){var r;r=new AA,r.c=e,r.b=t,r.a=i,i.b=t.a=r,++n.b}function S3e(n,e){var t;return t=e!=null?Dc(n,e):Fr(wr(n.f,e)),PM(t)}function P3e(n,e){var t;return t=e!=null?Dc(n,e):Fr(wr(n.f,e)),PM(t)}function Wr(n,e){var t;return e.b.Kb(UDn(n,e.c.Xe(),(t=new C9n(e),t)))}function I3e(n,e){var t;return GLn(e),t=n.slice(0,e),t.length=e,o$(t,n)}function VLn(n,e){var t;for(t=0;t<e;++t)$t(n,t,new yG(u(n[t],44)))}function O3e(n,e){var t;for(t=n.d-1;t>=0&&n.a[t]===e[t];t--);return t<0}function HT(n){var e;return n?new oW(n):(e=new rh,S$(e,n),e)}function A3e(n,e){var t,i;i=!1;do t=hRn(n,e),i=i|t;while(t);return i}function L3e(n){n&&r4e((hz(),uun)),--cI,n&&uI!=-1&&(Ele(uI),uI=-1)}function qT(n){YZ(),LCn(this,Se(vi(db(n,24),YS)),Se(vi(n,YS)))}function WLn(){WLn=R,HQn=Me((YC(),S(C(xun,1),G,436,0,[u_,$un])))}function JLn(){JLn=R,qQn=Me((cC(),S(C(Kun,1),G,435,0,[Run,o_])))}function QLn(){QLn=R,GYn=Me((uC(),S(C(aon,1),G,432,0,[m_,vI])))}function YLn(){YLn=R,_Zn=Me((Xm(),S(C(FZn,1),G,517,0,[aj,L_])))}function ZLn(){ZLn=R,kne=Me((ok(),S(C(xsn,1),G,487,0,[$sn,QI])))}function nNn(){nNn=R,gne=Me((bk(),S(C(Nsn,1),G,428,0,[WI,Lsn])))}function eNn(){eNn=R,ane=Me((QT(),S(C(Tsn,1),G,431,0,[Msn,X_])))}function tNn(){tNn=R,rie=Me((ak(),S(C(_hn,1),G,430,0,[qH,UH])))}function iNn(){iNn=R,Lie=Me((Q6(),S(C(Aie,1),G,531,0,[Z8,Y8])))}function rNn(){rNn=R,Bie=Me((fh(),S(C(Kie,1),G,523,0,[gw,y1])))}function cNn(){cNn=R,_ie=Me((If(),S(C(Fie,1),G,522,0,[Bd,Xf])))}function uNn(){uNn=R,tre=Me((af(),S(C(ere,1),G,528,0,[z0,Ma])))}function oNn(){oNn=R,Sne=Me((FT(),S(C(Wsn,1),G,429,0,[sH,Vsn])))}function sNn(){sNn=R,fre=Me((Eb(),S(C(sre,1),G,464,0,[Ta,O2])))}function fNn(){fNn=R,Ure=Me((ZT(),S(C(Bln,1),G,434,0,[Kln,mq])))}function hNn(){hNn=R,xre=Me((RT(),S(C(xln,1),G,433,0,[aq,$ln])))}function lNn(){lNn=R,_re=Me((yC(),S(C(Rln,1),G,500,0,[BO,N2])))}function aNn(){aNn=R,Bce=Me((GT(),S(C(S1n,1),G,490,0,[Nq,C1n])))}function dNn(){dNn=R,_ce=Me((D$(),S(C(N1n,1),G,491,0,[A1n,L1n])))}function bNn(){bNn=R,Vce=Me((tk(),S(C($1n,1),G,438,0,[Kq,JO])))}function wNn(){wNn=R,aue=Me((Mk(),S(C(ian,1),G,437,0,[YO,tan])))}function gNn(){gNn=R,aoe=Me((BN(),S(C(dA,1),G,347,0,[mdn,vdn])))}function N3e(){return ci(),S(C(k9,1),G,88,0,[Jf,Xr,Kr,Wf,us])}function D3e(){return en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])}function $3e(n,e,t){return u(e==null?Vc(n.f,null,t):Nb(n.i,e,t),288)}function x3e(n){return(n.k==(Vn(),Xt)||n.k==Zt)&&kt(n,(W(),R8))}function XD(n){return n.c&&n.d?hJ(n.c)+"->"+hJ(n.d):"e_"+fb(n)}function qi(n,e){var t,i;for(Jn(e),i=n.Kc();i.Ob();)t=i.Pb(),e.Cd(t)}function R3e(n,e){var t;t=new sp,nd(t,"x",e.a),nd(t,"y",e.b),Op(n,t)}function K3e(n,e){var t;t=new sp,nd(t,"x",e.a),nd(t,"y",e.b),Op(n,t)}function pNn(n,e){var t;for(t=e;t;)hb(n,-t.i,-t.j),t=St(t);return n}function CJ(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function Go(n,e,t){var i;return i=(Nn(e,n.c.length),n.c[e]),n.c[e]=t,i}function SJ(n,e,t){n.a.c.length=0,fAe(n,e,t),n.a.c.length==0||RPe(n,e)}function Z7(n){n.i=0,u7(n.b,null),u7(n.c,null),n.a=null,n.e=null,++n.g}function UT(){UT=R,Uf=!0,LQn=!1,NQn=!1,$Qn=!1,DQn=!1}function VD(n){UT(),!Uf&&(this.c=n,this.e=!0,this.a=new Z)}function mNn(n,e){this.c=0,this.b=e,_Tn.call(this,n,17493),this.a=this.c}function vNn(n){jzn(),Syn(this),this.a=new Mt,uY(this,n),Re(this.a,n)}function kNn(){pN(this),this.b=new V(Pt,Pt),this.a=new V(li,li)}function GT(){GT=R,Nq=new oX(tin,0),C1n=new oX("TARGET_WIDTH",1)}function Ag(n,e){return(ia(n),om(new Cn(n,new nQ(e,n.a)))).Bd(v3)}function B3e(){return Vi(),S(C(Pon,1),G,367,0,[Vs,Jh,Ac,Fc,zr])}function F3e(){return o0(),S(C(ine,1),G,375,0,[wj,zI,XI,GI,UI])}function _3e(){return o1(),S(C(Asn,1),G,348,0,[W_,Osn,J_,gv,wv])}function H3e(){return E5(),S(C(Nhn,1),G,323,0,[Lhn,BH,FH,X8,V8])}function q3e(){return Yo(),S(C(sfn,1),G,171,0,[jj,B8,ja,F8,x0])}function U3e(){return wS(),S(C(Hre,1),G,368,0,[gq,dq,pq,bq,wq])}function G3e(){return D5(),S(C(Hce,1),G,373,0,[D2,A3,a9,l9,Fj])}function z3e(){return Wk(),S(C(B1n,1),G,324,0,[x1n,Bq,K1n,Fq,R1n])}function X3e(){return pf(),S(C(Zh,1),G,170,0,[xn,pi,Ih,Fd,E1])}function V3e(){return Kg(),S(C(M9,1),G,256,0,[Ia,nE,ldn,E9,adn])}function W3e(n){return _E(),function(){return Fpe(n,this,arguments)}}function fr(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function PJ(n,e){return L(e,143)?Sn(n.c,u(e,143).c):!1}function Zu(n){return n.t||(n.t=new pyn(n),p5(new Njn(n),0,n.t)),n.t}function yNn(n){this.b=n,ne.call(this,n),this.a=u(Un(this.b.a,4),129)}function jNn(n){this.b=n,yp.call(this,n),this.a=u(Un(this.b.a,4),129)}function Bs(n,e,t,i,r){LNn.call(this,e,i,r),this.c=n,this.b=t}function IJ(n,e,t,i,r){XAn.call(this,e,i,r),this.c=n,this.a=t}function OJ(n,e,t,i,r){VAn.call(this,e,i,r),this.c=n,this.a=t}function AJ(n,e,t,i,r){LNn.call(this,e,i,r),this.c=n,this.a=t}function WD(n,e){var t;return t=u(Df(n.d,e),23),t||u(Df(n.e,e),23)}function ENn(n,e){var t,i;return t=e.ld(),i=n.Fe(t),!!i&&mc(i.e,e.md())}function MNn(n,e){var t;return t=e.ld(),new tb(t,n.e.pc(t,u(e.md(),16)))}function J3e(n,e){var t;return t=n.a.get(e),t??F(ki,Rn,1,0,5,1)}function TNn(n){var e;return e=n.length,Sn(Yn.substr(Yn.length-e,e),n)}function fe(n){if(pe(n))return n.c=n.a,n.a.Pb();throw T(new nc)}function LJ(n,e){return e==0||n.e==0?n:e>0?wqn(n,e):KKn(n,-e)}function Rp(n,e){return e==0||n.e==0?n:e>0?KKn(n,e):wqn(n,-e)}function NJ(n){ole.call(this,n==null?gu:Jr(n),L(n,82)?u(n,82):null)}function CNn(n){var e;return n.c||(e=n.r,L(e,90)&&(n.c=u(e,29))),n.c}function JD(n){var e;return e=new yb,Ur(e,n),U(e,(cn(),Rr),null),e}function SNn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Vn(),Zt)&&t.k==Zt}function QD(n){var e,t,i;return e=n&ro,t=n>>22&ro,i=n<0?Ol:0,Yc(e,t,i)}function Q3e(n){var e,t,i,r;for(t=n,i=0,r=t.length;i<r;++i)e=t[i],G6(e)}function Y3e(n,e){var t,i;t=u(o5e(n.c,e),16),t&&(i=t.gc(),t.$b(),n.d-=i)}function YD(n,e,t){var i;return i=n.Ih(e),i>=0?n.Lh(i,t,!0):Fb(n,e,t)}function Z3e(n,e,t){return bt(vp(g4(n),Fi(e.b)),vp(g4(n),Fi(t.b)))}function nme(n,e,t){return bt(vp(g4(n),Fi(e.e)),vp(g4(n),Fi(t.e)))}function eme(n,e){return y.Math.min(Q1(e.a,n.d.d.c),Q1(e.b,n.d.d.c))}function nk(n,e){n._i(n.i+1),P6(n,n.i,n.Zi(n.i,e)),n.Mi(n.i++,e),n.Ni()}function Z6(n){var e,t;++n.j,e=n.g,t=n.i,n.g=null,n.i=0,n.Oi(t,e),n.Ni()}function PNn(n,e,t){var i;i=new LX(n.a),u5(i,n.a.a),Vc(i.f,e,t),n.a.a=i}function DJ(n,e,t,i){var r;for(r=0;r<dI;r++)fT(n.a[r][e.g],t,i[e.g])}function $J(n,e,t,i){var r;for(r=0;r<f_;r++)hT(n.a[e.g][r],t,i[e.g])}function ot(n,e){var t;return t=u(n.c.xc(e),16),!t&&(t=n.ic(e)),n.pc(e,t)}function tme(n){var e;return e=(Pe(n),n?new _u(n):km(n.Kc())),Qk(e),RC(e)}function Af(n){var e,t;return Pe(n),e=Z0e(n.length),t=new Gc(e),ZQ(t,n),t}function ZD(n,e,t,i){var r;return r=F(ye,_e,28,e,15,1),Eye(r,n,e,t,i),r}function xJ(n,e){if(n<0||n>e)throw T(new Or(jnn(n,e,"index")));return n}function Yl(n,e){var t;return t=(Nn(e,n.c.length),n.c[e]),Sz(n.c,e,1),t}function RJ(n,e){var t,i;return t=(Jn(n),n),i=(Jn(e),e),t==i?0:t<i?-1:1}function KJ(n){var e;return e=n.e+n.f,isNaN(e)&&UM(n.d)?n.d:e}function ime(n){return n.e=3,n.d=n.Yb(),n.e!=2?(n.e=0,!0):!1}function pl(n,e){return n.a?Be(n.a,n.b):n.a=new mo(n.d),M6(n.a,e),n}function Kp(n,e){return Si(e)?e==null?Bnn(n.f,null):Uxn(n.i,e):Bnn(n.f,e)}function INn(n,e){FTn.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function ONn(n,e){_Tn.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function BJ(n,e){IM.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function ANn(n,e,t){LE.call(this,t),this.b=n,this.c=e,this.d=(gx(),MU)}function LNn(n,e,t){this.d=n,this.k=e?1:0,this.f=t?1:0,this.o=-1,this.p=0}function Lf(n){this.c=n,this.a=new M(this.c.a),this.b=new M(this.c.b)}function zT(){this.e=new Z,this.c=new Z,this.d=new Z,this.b=new Z}function NNn(){this.g=new UG,this.b=new UG,this.a=new Z,this.k=new Z}function DNn(){this.a=new VG,this.b=new njn,this.d=new r0n,this.e=new h0n}function $Nn(n,e,t){this.a=n,this.c=e,this.d=t,nn(e.e,this),nn(t.b,this)}function FJ(n,e,t){var i,r;for(i=0,r=0;r<e.length;r++)i+=n.tg(e[r],i,t)}function rme(n,e){var t;return t=EAe(n,e),n.b=new EC(t.c.length),HOe(n,t)}function cme(n,e){var t;t=n.q.getHours()+(e/60|0),n.q.setMinutes(e),F5(n,t)}function n$(n){var e;return e=n.b,e.b==0?null:u(Zo(e,0),65).b}function _J(n){if(n.a){if(n.e)return _J(n.e)}else return n;return null}function ume(n,e){return n.p<e.p?1:n.p>e.p?-1:0}function xNn(n){var e;return n.a||(e=n.r,L(e,156)&&(n.a=u(e,156))),n.a}function ome(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].gd(t),136),i.md()}function sme(n){var e,t;return e=n.ld(),t=u(n.md(),16),D7(t.Nc(),new L8n(e))}function RNn(n,e){return Zc(n.a,e)?(Kp(n.a,e),!0):!1}function Bp(n,e,t){return Y7(e,n.e.Rd().gc()),Y7(t,n.c.Rd().gc()),n.a[e][t]}function XT(n,e,t){this.a=n,this.b=e,this.c=t,nn(n.t,this),nn(e.i,this)}function VT(n,e,t,i){this.f=n,this.e=e,this.d=t,this.b=i,this.c=i?i.d:null}function ek(){this.b=new Mt,this.a=new Mt,this.b=new Mt,this.a=new Mt}function Dm(){Dm=R;var n,e;TA=(um(),e=new $E,e),CA=(n=new fL,n)}function fme(n){var e;return ia(n),e=new IPn(n,n.a.e,n.a.d|4),new rV(n,e)}function KNn(n){var e;for(V1(n),e=0;n.a.Bd(new Vbn);)e=nr(e,1);return e}function WT(n,e){return Jn(e),n.c<n.d?(n.Se(e,n.c++),!0):!1}function Gc(n){pN(this),x7(n>=0,"Initial capacity must not be negative")}function JT(){JT=R,d9=new lt("org.eclipse.elk.labels.labelManager")}function BNn(){BNn=R,vsn=new Lt("separateLayerConnections",(AC(),x_))}function af(){af=R,z0=new tX("REGULAR",0),Ma=new tX("CRITICAL",1)}function tk(){tk=R,Kq=new fX("FIXED",0),JO=new fX("CENTER_NODE",1)}function QT(){QT=R,Msn=new Vz("QUADRATIC",0),X_=new Vz("SCANLINE",1)}function FNn(){FNn=R,dne=Me((i5(),S(C(Ssn,1),G,322,0,[N8,gj,Csn])))}function _Nn(){_Nn=R,bne=Me((bC(),S(C(Isn,1),G,351,0,[Psn,VI,V_])))}function HNn(){HNn=R,mne=Me((hd(),S(C(pne,1),G,459,0,[Q_,pv,m2])))}function qNn(){qNn=R,fne=Me((Ob(),S(C(K_,1),G,372,0,[rw,ka,iw])))}function UNn(){UNn=R,Cne=Me((vl(),S(C(Tne,1),G,311,0,[mj,k2,E3])))}function GNn(){GNn=R,Mne=Me((Ym(),S(C(oH,1),G,298,0,[cH,uH,pj])))}function zNn(){zNn=R,Zte=Me((d5(),S(C(Ahn,1),G,390,0,[xH,Ohn,TO])))}function XNn(){XNn=R,oie=Me((PC(),S(C(Uhn,1),G,387,0,[Hhn,GH,qhn])))}function VNn(){VNn=R,sie=Me((h5(),S(C(Ghn,1),G,349,0,[XH,zH,Ij])))}function WNn(){WNn=R,uie=Me((gr(),S(C(cie,1),G,462,0,[W8,Vu,Jc])))}function JNn(){JNn=R,hie=Me((dC(),S(C(Jhn,1),G,352,0,[Whn,WH,Vhn])))}function QNn(){QNn=R,fie=Me((u4(),S(C(Xhn,1),G,350,0,[VH,zhn,J8])))}function YNn(){YNn=R,lie=Me((LC(),S(C(Qhn,1),G,388,0,[JH,Ov,G0])))}function ZNn(){ZNn=R,are=Me((l5(),S(C(bln,1),G,392,0,[dln,ZH,Lj])))}function nDn(){nDn=R,Gre=Me((Pk(),S(C(Hln,1),G,393,0,[FO,Fln,_ln])))}function eDn(){eDn=R,ace=Me((SC(),S(C(u1n,1),G,299,0,[Eq,c1n,r1n])))}function tDn(){tDn=R,dce=Me((XC(),S(C(o1n,1),G,445,0,[Rj,qO,Mq])))}function iDn(){iDn=R,wce=Me((rS(),S(C(bce,1),G,455,0,[Tq,Sq,Cq])))}function rDn(){rDn=R,mce=Me((_C(),S(C(h1n,1),G,394,0,[f1n,Oq,s1n])))}function cDn(){cDn=R,Fce=Me((nC(),S(C(O1n,1),G,439,0,[Dq,I1n,P1n])))}function uDn(){uDn=R,Sie=Me((Ib(),S(C(Cie,1),G,463,0,[Oj,Q8,IO])))}function oDn(){oDn=R,WQn=Me((Uu(),S(C(VQn,1),G,470,0,[Th,ma,zs])))}function sDn(){sDn=R,XQn=Me((wf(),S(C(P0,1),G,237,0,[bc,Wc,wc])))}function fDn(){fDn=R,QQn=Me((bu(),S(C(JQn,1),G,471,0,[kf,va,Xs])))}function hDn(){hDn=R,xQn=Me((Gu(),S(C(xr,1),G,108,0,[Dun,Yr,S0])))}function lDn(){lDn=R,pZn=Me((n5(),S(C(Son,1),G,391,0,[j_,y_,E_])))}function aDn(){aDn=R,Que=Me((jl(),S(C(hdn,1),G,346,0,[uA,T1,j9])))}function dDn(){dDn=R,Uce=Me((Dk(),S(C($q,1),G,444,0,[XO,VO,WO])))}function bDn(){bDn=R,Xue=Me(($f(),S(C(Yan,1),G,278,0,[xv,J0,Rv])))}function wDn(){wDn=R,loe=Me((Gp(),S(C(pdn,1),G,280,0,[gdn,Y0,aA])))}function Nf(n,e){return!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),wx(n.o,e)}function hme(n,e){var t;n.C&&(t=u(Mr(n.b,e),127).n,t.d=n.C.d,t.a=n.C.a)}function HJ(n){var e,t,i,r;r=n.d,e=n.a,t=n.b,i=n.c,n.d=t,n.a=i,n.b=r,n.c=e}function lme(n){return!n.g&&(n.g=new EE),!n.g.b&&(n.g.b=new dyn(n)),n.g.b}function ik(n){return!n.g&&(n.g=new EE),!n.g.c&&(n.g.c=new gyn(n)),n.g.c}function ame(n){return!n.g&&(n.g=new EE),!n.g.d&&(n.g.d=new byn(n)),n.g.d}function dme(n){return!n.g&&(n.g=new EE),!n.g.a&&(n.g.a=new wyn(n)),n.g.a}function bme(n,e,t,i){return t&&(i=t.Rh(e,At(t.Dh(),n.c.uk()),null,i)),i}function wme(n,e,t,i){return t&&(i=t.Th(e,At(t.Dh(),n.c.uk()),null,i)),i}function e$(n,e,t,i){var r;return r=F(ye,_e,28,e+1,15,1),vIe(r,n,e,t,i),r}function F(n,e,t,i,r,c){var s;return s=FBn(r,i),r!=10&&S(C(n,c),e,t,r,s),s}function gme(n,e,t){var i,r;for(r=new Qm(e,n),i=0;i<t;++i)iS(r);return r}function t$(n,e,t){var i,r;if(t!=null)for(i=0;i<e;++i)r=t[i],n.Qi(i,r)}function qJ(n,e){var t;return t=new LA,t.c=!0,t.d=e.md(),NGn(n,e.ld(),t)}function pme(n,e){var t;t=n.q.getHours()+(e/3600|0),n.q.setSeconds(e),F5(n,t)}function UJ(n,e){var t,i;return t=e,i=CD(km(new f$(n,t))),tT(new f$(n,t)),i}function mme(n,e){e.Ug("Label management",1),PM(v(n,(JT(),d9))),e.Vg()}function vme(n,e,t,i){NUn(n,e,t,O4(n,e,i,L(e,102)&&(u(e,19).Bb&hr)!=0))}function GJ(n,e,t){u(n.b,68),u(n.b,68),u(n.b,68),nu(n.a,new wPn(t,e,n))}function Ri(n,e,t){if(n<0||e>t||e<n)throw T(new bz(ZS+n+Ttn+e+jtn+t))}function i$(n){n?(this.c=n,this.b=null):(this.c=null,this.b=new Z)}function r$(n,e){uM.call(this,n,e),this.a=F(lDe,WS,447,2,0,1),this.b=!0}function zJ(n){bRn.call(this,n,0),oSn(this),this.d.b=this.d,this.d.a=this.d}function XJ(n){this.e=n,this.b=this.e.a.entries(),this.a=F(ki,Rn,1,0,5,1)}function gDn(){gDn=R,bie=Iu(Fe(new ii,(Vi(),Vs),(tr(),N_)),zr,dj)}function kme(){return vS(),S(C(Dsn,1),G,283,0,[Z_,Y_,eH,nH,tH,JI])}function yme(){return Xk(),S(C(_sn,1),G,281,0,[YI,Ksn,Fsn,Rsn,Bsn,iH])}function jme(){return y4(),S(C(Xsn,1),G,282,0,[D8,qsn,zsn,Gsn,Usn,Hsn])}function Eme(){return Yp(),S(C(bv,1),G,232,0,[dv,L8,av,D0,p2,g2])}function Mme(){return Vn(),S(C(A_,1),G,273,0,[Xt,Ti,Zt,_c,Sc,Gf])}function Tme(){return zu(),S(C(oA,1),G,279,0,[Aa,Rl,eE,C9,T9,R3])}function Cme(){return Ai(),S(C(ddn,1),G,101,0,[Oa,Qf,Bv,Ud,tl,qc])}function Sme(){return pS(),S(C(rdn,1),G,321,0,[lU,edn,idn,Zan,tdn,ndn])}function Pme(){return Bh(),S(C(san,1),G,255,0,[zq,Hj,qj,eA,ZO,nA])}function Ime(){return wd(),S(C(Jq,1),G,297,0,[Wq,p9,g9,Vq,b9,w9])}function VJ(n){var e;return!n.a&&n.b!=-1&&(e=n.c.Dh(),n.a=$n(e,n.b)),n.a}function ve(n,e){return n.Si()&&n.Hc(e)?!1:(n.Hi(e),!0)}function df(n,e){return G7(e,"Horizontal alignment cannot be null"),n.b=e,n}function pDn(n,e,t){nt();var i;return i=fa(n,e),t&&i&&B0e(n)&&(i=null),i}function WJ(n,e,t){var i;i=n.b[t.c.p][t.p],i.b+=e.b,i.c+=e.c,i.a+=e.a,++i.a}function JJ(n,e,t){var i;n.d[e.g]=t,i=n.g.c,i[e.g]=y.Math.max(i[e.g],t+1)}function Q1(n,e){var t,i;return t=n.a-e.a,i=n.b-e.b,y.Math.sqrt(t*t+i*i)}function QJ(n,e){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),36),sUn(n,t,0,0)}function Zl(n,e,t){var i,r;for(r=n.Kc();r.Ob();)i=u(r.Pb(),36),S4(i,e,t)}function Ome(n){var e,t;for(t=ge(n.a,0);t.b!=t.d.c;)e=u(be(t),65),Inn(e)}function mDn(n,e){return vMn(n.e,e)||s1(n.e,e,new sBn(e)),u(Df(n.e,e),113)}function qu(n,e,t,i){return Jn(n),Jn(e),Jn(t),Jn(i),new TW(n,e,new Rbn)}function Ou(n,e,t,i){this.ak(),this.a=e,this.b=n,this.c=new kW(this,e,t,i)}function c$(n,e,t,i,r,c){pJ.call(this,e,i,r,c),this.c=n,this.b=t}function rk(n,e,t,i,r,c){pJ.call(this,e,i,r,c),this.c=n,this.a=t}function ck(n,e){var t,i,r;return r=n.r,i=n.d,t=q5(n,e,!0),t.b!=r||t.a!=i}function uk(n,e,t){var i,r;return r=(i=M4(n.b,e),i),r?qS(fk(n,r),t):null}function Ame(n,e,t){var i,r,c;i=dl(n,t),r=null,i&&(r=bnn(i)),c=r,cBn(e,t,c)}function Lme(n,e,t){var i,r,c;i=dl(n,t),r=null,i&&(r=bnn(i)),c=r,cBn(e,t,c)}function $m(n,e){var t;return t=n.Ih(e),t>=0?n.Lh(t,!0,!0):Fb(n,e,!0)}function Nme(n,e,t){var i;return i=mRn(n,e,t),n.b=new EC(i.c.length),hen(n,i)}function Dme(n){if(n.b<=0)throw T(new nc);return--n.b,n.a-=n.c.c,Y(n.a)}function $me(n){var e;if(!n.a)throw T(new POn);return e=n.a,n.a=St(n.a),e}function xme(n){for(;!n.a;)if(!nPn(n.c,new E9n(n)))return!1;return!0}function Fp(n){var e;return Pe(n),L(n,204)?(e=u(n,204),e):new F8n(n)}function Rme(n){YT(),u(n.of((He(),W0)),181).Fc((zu(),eE)),n.qf(uU,null)}function YT(){YT=R,wue=new j4n,pue=new E4n,gue=T6e((He(),uU),wue,Sa,pue)}function ZT(){ZT=R,Kln=new uX("LEAF_NUMBER",0),mq=new uX("NODE_SIZE",1)}function u$(n){n.a=F(ye,_e,28,n.b+1,15,1),n.c=F(ye,_e,28,n.b,15,1),n.d=0}function Kme(n,e){n.a.Ne(e.d,n.b)>0&&(nn(n.c,new qV(e.c,e.d,n.d)),n.b=e.d)}function YJ(n,e){if(n.g==null||e>=n.i)throw T(new aN(e,n.i));return n.g[e]}function vDn(n,e,t){if(i4(n,t),t!=null&&!n.fk(t))throw T(new uL);return t}function o$(n,e){return dk(e)!=10&&S(wo(e),e.Sm,e.__elementTypeId$,dk(e),n),n}function xm(n,e,t,i){var r;i=(kb(),i||Sun),r=n.slice(e,t),Enn(r,n,e,t,-e,i)}function zo(n,e,t,i,r){return e<0?Fb(n,t,i):u(t,69).wk().yk(n,n.hi(),e,i,r)}function Bme(n,e){return bt($(B(v(n,(W(),ow)))),$(B(v(e,ow))))}function kDn(){kDn=R,OQn=Me((Rm(),S(C(lI,1),G,303,0,[n_,e_,t_,i_])))}function Rm(){Rm=R,n_=new cM("All",0),e_=new hCn,t_=new vCn,i_=new fCn}function Uu(){Uu=R,Th=new RL(s3,0),ma=new RL(H4,1),zs=new RL(f3,2)}function yDn(){yDn=R,FS(),obn=Pt,mse=li,sbn=new G9(Pt),vse=new G9(li)}function jDn(){jDn=R,jYn=Me((Lb(),S(C(yYn,1),G,417,0,[ij,tj,l_,a_])))}function EDn(){EDn=R,SYn=Me((M5(),S(C(CYn,1),G,406,0,[sj,wI,gI,fj])))}function MDn(){MDn=R,MYn=Me((Vp(),S(C(EYn,1),G,332,0,[cj,rj,uj,oj])))}function TDn(){TDn=R,LZn=Me((dd(),S(C(Aon,1),G,389,0,[A0,Oon,P_,I_])))}function CDn(){CDn=R,CZn=Me((Zm(),S(C(TZn,1),G,416,0,[tw,O0,I0,d2])))}function SDn(){SDn=R,tne=Me((xf(),S(C(ene,1),G,421,0,[j3,hv,lv,R_])))}function PDn(){PDn=R,GZn=Me((AC(),S(C(UZn,1),G,371,0,[x_,HI,qI,bj])))}function IDn(){IDn=R,nie=Me((c0(),S(C(KH,1),G,203,0,[CO,RH,I2,P2])))}function ODn(){ODn=R,iie=Me((lh(),S(C(Fhn,1),G,284,0,[k1,Bhn,_H,HH])))}function ok(){ok=R,$sn=new Jz(kh,0),QI=new Jz("IMPROVE_STRAIGHTNESS",1)}function ADn(n,e){var t,i;return i=e/n.c.Rd().gc()|0,t=e%n.c.Rd().gc(),Bp(n,i,t)}function LDn(n){var e;if(n.nl())for(e=n.i-1;e>=0;--e)N(n,e);return kJ(n)}function ZJ(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function NDn(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[1];)t=e;return t}function Fme(n){return L(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function _me(n){return L(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function DDn(n,e){if(e.a)throw T(new ec(nXn));fi(n.a,e),e.a=n,!n.j&&(n.j=e)}function nQ(n,e){IM.call(this,e.zd(),e.yd()&-16449),Jn(n),this.a=n,this.c=e}function Hme(n,e){return new _N(e,hb(Fi(e.e),e.f.a+n,e.f.b+n),(_n(),!1))}function qme(n,e){return vm(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function Ume(n,e){return vm(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function $Dn(){$Dn=R,lce=Me((sS(),S(C(i1n,1),G,354,0,[jq,e1n,t1n,n1n])))}function xDn(){xDn=R,$re=Me((a5(),S(C(Dln,1),G,353,0,[lq,KO,hq,fq])))}function RDn(){RDn=R,hre=Me((Qp(),S(C(tln,1),G,405,0,[NO,n9,e9,t9])))}function KDn(){KDn=R,Vue=Me((El(),S(C(hU,1),G,223,0,[fU,Qj,Kv,x3])))}function BDn(){BDn=R,Zue=Me((Co(),S(C(Yue,1),G,290,0,[Zj,nl,Pa,Yj])))}function FDn(){FDn=R,foe=Me((go(),S(C(S9,1),G,386,0,[iE,Gd,tE,Q0])))}function _Dn(){_Dn=R,doe=Me((qC(),S(C(Edn,1),G,320,0,[dU,kdn,jdn,ydn])))}function HDn(){HDn=R,goe=Me((NC(),S(C(woe,1),G,415,0,[bU,Tdn,Mdn,Cdn])))}function nC(){nC=R,Dq=new oN(mVn,0),I1n=new oN(yrn,1),P1n=new oN(kh,2)}function Ww(n,e,t,i,r){return Jn(n),Jn(e),Jn(t),Jn(i),Jn(r),new TW(n,e,i)}function qDn(n,e){var t;return t=u(Kp(n.e,e),400),t?(nW(t),t.e):null}function du(n,e){var t;return t=qr(n,e,0),t==-1?!1:(Yl(n,t),!0)}function UDn(n,e,t){var i;return V1(n),i=new NA,i.a=e,n.a.Nb(new TMn(i,t)),i.a}function Gme(n){var e;return V1(n),e=F(Ii,Cr,28,0,15,1),lg(n.a,new k9n(e)),e}function eQ(n){var e;if(!E$(n))throw T(new nc);return n.e=1,e=n.d,n.d=null,e}function n1(n){var e;return Vr(n)&&(e=0-n,!isNaN(e))?e:Z1(e4(n))}function qr(n,e,t){for(;t<n.c.length;++t)if(mc(e,n.c[t]))return t;return-1}function s$(n){var e,t;return t=u(sn(n.j,0),12),e=u(v(t,(W(),st)),12),e}function f$(n,e){var t;this.f=n,this.b=e,t=u(ee(n.b,e),260),this.c=t?t.b:null}function GDn(){Rs(),this.b=new de,this.f=new de,this.g=new de,this.e=new de}function eC(n){$M(this),this.g=n?IT(n,n.ie()):null,this.f=n,MT(this),this.je()}function h$(n){var e;e=n.jj(),e!=null&&n.d!=-1&&u(e,94).xh(n),n.i&&n.i.oj()}function sk(n){var e;for(e=n.p+1;e<n.c.a.c.length;++e)--u(sn(n.c.a,e),10).p}function zDn(n){Rw(!!n.c),RN(n.f.g,n.d),n.c.Qb(),n.c=null,n.b=qQ(n),n.d=n.f.g}function no(n){return n.b||(n.b=new mIn(n,jr,n),!n.a&&(n.a=new I7(n,n))),n.b}function fk(n,e){var t,i;return t=u(e,690),i=t.xi(),!i&&t.Ai(i=new xTn(n,e)),i}function Nr(n,e){var t,i;return t=u(e,692),i=t.$k(),!i&&t.cl(i=new cLn(n,e)),i}function tQ(n,e){c6();var t,i;return t=xp(n),i=xp(e),!!t&&!!i&&!gBn(t.k,i.k)}function tC(n,e){return mc(e,sn(n.f,0))||mc(e,sn(n.f,1))||mc(e,sn(n.f,2))}function hk(n,e){if(e<0)throw T(new Or(LVn+e));return $Ln(n,e+1),sn(n.j,e)}function XDn(n,e,t,i){if(!n)throw T(new Gn(R5(e,S(C(ki,1),Rn,1,5,[t,i]))))}function ml(n,e,t,i,r,c,s){k$.call(this,e,i,r,c,s),this.c=n,this.b=t}function Kh(n,e,t){var i,r;for(i=10,r=0;r<t-1;r++)e<i&&(n.a+="0"),i*=10;n.a+=e}function iC(n){var e,t;return t=n.length,e=F(fs,gh,28,t,15,1),HIn(n,0,t,e,0),e}function lk(n){nIn();var e,t;return e=n+128,t=aun[e],!t&&(t=aun[e]=new c9n(n)),t}function VDn(n){return RN(n.d.a.e.g,n.b),oe(n.c!=n.d.a.d),n.a=n.c,n.c=n.c.a,n.a}function zme(n){switch(n.g){case 0:return et;case 1:return-1;default:return 0}}function Xme(n){return OZ(n,(Km(),hun))<0?-I1e(e4(n)):n.l+n.m*o3+n.h*vd}function WDn(n){(this.q?this.q:(Ln(),Ln(),Wh)).Ac(n.q?n.q:(Ln(),Ln(),Wh))}function Vme(n,e){Ep(u(u(n.f,27).of((He(),m9)),101))&&e8e(mD(u(n.f,27)),e)}function l$(n,e){var t;return t=At(n.d,e),t>=0?tS(n,t,!0,!0):Fb(n,e,!0)}function iQ(n){var e;return e=cd(Un(n,32)),e==null&&(iu(n),e=cd(Un(n,32))),e}function rQ(n){var e;return n.Oh()||(e=se(n.Dh())-n.ji(),n.$h().Mk(e)),n.zh()}function JDn(n,e){ion=new vE,TYn=e,P8=n,u(P8.b,68),GJ(P8,ion,null),aGn(P8)}function n5(){n5=R,j_=new BL("XY",0),y_=new BL("X",1),E_=new BL("Y",2)}function bu(){bu=R,kf=new KL("TOP",0),va=new KL(H4,1),Xs=new KL(Dtn,2)}function vl(){vl=R,mj=new GL(kh,0),k2=new GL("TOP",1),E3=new GL(Dtn,2)}function ak(){ak=R,qH=new Yz("INPUT_ORDER",0),UH=new Yz("PORT_DEGREE",1)}function Km(){Km=R,sun=Yc(ro,ro,524287),bQn=Yc(0,0,Ty),fun=QD(1),QD(2),hun=QD(0)}function a$(n){var e;return n.d!=n.r&&(e=gs(n),n.e=!!e&&e.lk()==bJn,n.d=e),n.e}function d$(n,e,t){var i;return i=n.g[e],P6(n,e,n.Zi(e,t)),n.Ri(e,t,i),n.Ni(),i}function rC(n,e){var t;return t=n.dd(e),t>=0?(n.gd(t),!0):!1}function b$(n,e){var t;for(Pe(n),Pe(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function Df(n,e){var t;return t=u(ee(n.e,e),400),t?(ACn(n,t),t.e):null}function QDn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function Jw(n,e){var t=n.a[e],i=(F$(),VF)[typeof t];return i?i(t):dY(typeof t)}function rc(n,e){var t,i;return ia(n),i=new BJ(e,n.a),t=new iPn(i),new Cn(n,t)}function w$(n){var e;return e=n.b.c.length==0?null:sn(n.b,0),e!=null&&T$(n,0),e}function Wme(n,e){var t,i,r;r=e.c.i,t=u(ee(n.f,r),60),i=t.d.c-t.e.c,xQ(e.a,i,0)}function cQ(n,e){var t;for(++n.d,++n.c[e],t=e+1;t<n.a.length;)++n.a[t],t+=t&-t}function YDn(n,e,t,i){nt(),Wd.call(this,26),this.c=n,this.a=e,this.d=t,this.b=i}function ZDn(n,e){for(;e[0]<n.length&&ih(` \r
`,wu(Xi(n,e[0])))>=0;)++e[0]}function Jme(n,e){eu(n,e==null||UM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Qme(n,e){tu(n,e==null||UM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Yme(n,e){Pb(n,e==null||UM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Zme(n,e){Sb(n,e==null||UM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function n4e(n,e,t){return vp(new V(t.e.a+t.f.a/2,t.e.b+t.f.b/2),n)==(Jn(e),e)}function e4e(n,e){return L(e,102)&&u(e,19).Bb&hr?new dN(e,n):new Qm(e,n)}function t4e(n,e){return L(e,102)&&u(e,19).Bb&hr?new dN(e,n):new Qm(e,n)}function dk(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function n$n(n,e){return e==(xN(),xN(),SQn)?n.toLocaleLowerCase():n.toLowerCase()}function e$n(n){if(!n.e)throw T(new nc);return n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function uQ(n){if(!n.c)throw T(new nc);return n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function t$n(n){var e;for(++n.a,e=n.c.a.length;n.a<e;++n.a)if(n.c.b[n.a])return}function i4e(n){var e,t;if(n.a){t=null;do e=n.a,n.a=null,t=a_n(e,t);while(n.a);n.a=t}}function r4e(n){var e,t;if(n.b){t=null;do e=n.b,n.b=null,t=a_n(e,t);while(n.b);n.b=t}}function c4e(n,e){var t;for(t=0;n.e!=n.i.gc();)Iwe(e,ue(n),Y(t)),t!=et&&++t}function u4e(n,e){var t;return t=Db(n.e.c,e.e.c),t==0?bt(n.e.d,e.e.d):t}function o4e(n,e){var t,i;for(i=e.c,t=i+1;t<=e.f;t++)n.a[t]>n.a[i]&&(i=t);return i}function i$n(n){var e;return e=u(v(n,(W(),cw)),313),e?e.a==n:!1}function r$n(n){var e;return e=u(v(n,(W(),cw)),313),e?e.i==n:!1}function c$n(){c$n=R,yZn=Me((Vi(),S(C(Pon,1),G,367,0,[Vs,Jh,Ac,Fc,zr])))}function u$n(){u$n=R,rne=Me((o0(),S(C(ine,1),G,375,0,[wj,zI,XI,GI,UI])))}function o$n(){o$n=R,wne=Me((o1(),S(C(Asn,1),G,348,0,[W_,Osn,J_,gv,wv])))}function s$n(){s$n=R,eie=Me((E5(),S(C(Nhn,1),G,323,0,[Lhn,BH,FH,X8,V8])))}function f$n(){f$n=R,Pne=Me((Yo(),S(C(sfn,1),G,171,0,[jj,B8,ja,F8,x0])))}function h$n(){h$n=R,qre=Me((wS(),S(C(Hre,1),G,368,0,[gq,dq,pq,bq,wq])))}function l$n(){l$n=R,qce=Me((D5(),S(C(Hce,1),G,373,0,[D2,A3,a9,l9,Fj])))}function a$n(){a$n=R,Wce=Me((Wk(),S(C(B1n,1),G,324,0,[x1n,Bq,K1n,Fq,R1n])))}function d$n(){d$n=R,zue=Me((ci(),S(C(k9,1),G,88,0,[Jf,Xr,Kr,Wf,us])))}function b$n(){b$n=R,mue=Me((pf(),S(C(Zh,1),G,170,0,[xn,pi,Ih,Fd,E1])))}function w$n(){w$n=R,eoe=Me((Kg(),S(C(M9,1),G,256,0,[Ia,nE,ldn,E9,adn])))}function g$n(){g$n=R,roe=Me((en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])))}function cC(){cC=R,Run=new Hz("BY_SIZE",0),o_=new Hz("BY_SIZE_AND_SHAPE",1)}function uC(){uC=R,m_=new Gz("EADES",0),vI=new Gz("FRUCHTERMAN_REINGOLD",1)}function bk(){bk=R,WI=new Wz("READING_DIRECTION",0),Lsn=new Wz("ROTATION",1)}function e5(){e5=R,IZn=new i0n,OZn=new u0n,SZn=new o0n,PZn=new c0n,AZn=new s0n}function p$n(n){this.b=new Z,this.a=new Z,this.c=new Z,this.d=new Z,this.e=n}function m$n(n){this.g=n,this.f=new Z,this.a=y.Math.min(this.g.c.c,this.g.d.c)}function v$n(n,e,t){HM.call(this),fQ(this),this.a=n,this.c=t,this.b=e.d,this.f=e.e}function s4e(n,e,t){var i,r;for(r=new M(t);r.a<r.c.c.length;)i=E(r),XZ(n,e,i)}function bf(n,e,t){var i;if(e==null)throw T(new rp);return i=dl(n,e),y3e(n,e,t),i}function g$(n,e){var t;return t=u(ee(n.a,e),137),t||(t=new xA,Ve(n.a,e,t)),t}function $n(n,e){var t;return t=(n.i==null&&bh(n),n.i),e>=0&&e<t.length?t[e]:null}function f4e(n,e){var t;return t=e>0?e-1:e,nEn($he(q$n(JV(new op,t),n.n),n.j),n.k)}function Dr(n){var e,t;t=(e=new hL,e),ve((!n.q&&(n.q=new q(Ps,n,11,10)),n.q),t)}function oQ(n){return(n.i&2?"interface ":n.i&1?"":"class ")+(ll(n),n.o)}function oC(n){return Ec(n,et)>0?et:Ec(n,Wi)<0?Wi:Se(n)}function Qw(n){return n<3?(Mo(n,$zn),n+1):n<X5?wi(n/.75+1):et}function k$n(n,e){return Jn(e),mW(n),n.d.Ob()?(e.Cd(n.d.Pb()),!0):!1}function h4e(n,e){var t,i;return t=u(t0(n.d,e),16),t?(i=e,n.e.pc(i,t)):null}function l4e(n,e,t,i){var r;n.j=-1,xnn(n,wnn(n,e,t),(dr(),r=u(e,69).vk(),r.xl(i)))}function a4e(n,e){return _p(),-jc(u(v(n,(lc(),A2)),17).a,u(v(e,A2),17).a)}function y$n(n,e){return!!c5(n,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))))}function d4e(){return E4(),S(C(kA,1),G,245,0,[mU,mA,vA,pA,pU,gA,wA,gU])}function b4e(){return l1(),S(C(vue,1),G,285,0,[can,yi,Zr,$2,Qi,It,L3,Vf])}function w4e(){return LS(),S(C(Esn,1),G,276,0,[F_,q_,B_,z_,H_,__,G_,U_])}function g4e(n){var e;return e=$(B(v(n,(cn(),m1)))),e<0&&(e=0,U(n,m1,e)),e}function sC(n,e){var t,i;for(i=n.Kc();i.Ob();)t=u(i.Pb(),72),U(t,(W(),S3),e)}function p4e(n,e,t){var i;i=y.Math.max(0,n.b/2-.5),S5(t,i,1),nn(e,new PMn(t,i))}function m4e(n,e,t){var i;return i=n.a.e[u(e.a,10).p]-n.a.e[u(t.a,10).p],wi(K7(i))}function fC(n,e){var t;return ia(n),t=new ROn(n,n.a.zd(),n.a.yd()|4,e),new Cn(n,t)}function p$(n){var e;Rw(!!n.c),e=n.c.a,Xo(n.d,n.c),n.b==n.c?n.b=e:--n.a,n.c=null}function j$n(n){return n.a>=-.01&&n.a<=_f&&(n.a=0),n.b>=-.01&&n.b<=_f&&(n.b=0),n}function Lg(n){Vg();var e,t;for(t=Mrn,e=0;e<n.length;e++)n[e]>t&&(t=n[e]);return t}function E$n(n,e){var t;if(t=uy(n.Dh(),e),!t)throw T(new Gn(wa+e+sF));return t}function Yw(n,e){var t;for(t=n;St(t);)if(t=St(t),t==e)return!0;return!1}function v4e(n,e){var t,i,r;for(i=e.a.ld(),t=u(e.a.md(),16).gc(),r=0;r<t;r++)n.Cd(i)}function nu(n,e){var t,i,r,c;for(Jn(e),i=n.c,r=0,c=i.length;r<c;++r)t=i[r],e.Cd(t)}function M$n(n,e,t,i,r,c){var s;s=JD(i),Zi(s,r),Oi(s,c),In(n.a,i,new GM(s,e,t.f))}function T$n(n,e){ht(n,(_h(),Iq),e.f),ht(n,pce,e.e),ht(n,Pq,e.d),ht(n,gce,e.c)}function C$n(n,e){this.a=new de,this.e=new de,this.b=(d5(),TO),this.c=n,this.b=e}function S$n(n){this.d=n,this.c=n.c.vc().Kc(),this.b=null,this.a=null,this.e=(KE(),GF)}function Xo(n,e){var t;return t=e.c,e.a.b=e.b,e.b.a=e.a,e.a=e.b=null,e.c=null,--n.b,t}function k4e(n,e){return e&&n.b[e.g]==e?($t(n.b,e.g,null),--n.c,!0):!1}function y4e(n,e){if(0>n||n>e)throw T(new wz("fromIndex: 0, toIndex: "+n+jtn+e))}function Cb(n){if(n<0)throw T(new Gn("Illegal Capacity: "+n));this.g=this.aj(n)}function sQ(n,e){return Cf(),Fs(ha),y.Math.abs(n-e)<=ha||n==e||isNaN(n)&&isNaN(e)}function m$(n,e){var t,i,r,c;for(i=n.d,r=0,c=i.length;r<c;++r)t=i[r],Sf(n.g,t).a=e}function j4e(n,e,t){var i,r,c;for(r=e[t],i=0;i<r.length;i++)c=r[i],n.e[c.c.p][c.p]=i}function E4e(n){var e;for(e=0;e<n.c.length;e++)(Nn(e,n.c.length),u(n.c[e],12)).p=e}function M4e(n){var e,t;for(e=n.a.d.j,t=n.c.d.j;e!=t;)_s(n.b,e),e=BC(e);_s(n.b,e)}function T4e(n){var e;return e=y.Math.sqrt(n.a*n.a+n.b*n.b),e>0&&(n.a/=e,n.b/=e),n}function jo(n){var e;return n.w?n.w:(e=lpe(n),e&&!e.Vh()&&(n.w=e),e)}function Bm(n,e){var t,i;i=n.a,t=w5e(n,e,null),i!=e&&!n.e&&(t=N4(n,e,t)),t&&t.oj()}function P$n(n,e,t){var i,r;i=e;do r=$(n.p[i.p])+t,n.p[i.p]=r,i=n.a[i.p];while(i!=e)}function I$n(n,e,t){var i=function(){return n.apply(i,arguments)};return e.apply(i,t),i}function C4e(n){var e;return n==null?null:(e=u(n,195),Kye(e,e.length))}function N(n,e){if(n.g==null||e>=n.i)throw T(new aN(e,n.i));return n.Wi(e,n.g[e])}function S4e(n,e){Ln();var t,i;for(i=new Z,t=0;t<n;++t)Bn(i.c,e);return new jL(i)}function O$n(n){return ia(n),Tp(!0,"n may not be negative"),new Cn(n,new cxn(n.a))}function fQ(n){n.b=(Uu(),ma),n.f=(bu(),va),n.d=(Mo(2,m0),new Gc(2)),n.e=new Ni}function hC(n){this.b=(Pe(n),new _u(n)),this.a=new Z,this.d=new Z,this.e=new Ni}function wf(){wf=R,bc=new xL("BEGIN",0),Wc=new xL(H4,1),wc=new xL("END",2)}function $f(){$f=R,xv=new fN(H4,0),J0=new fN("HEAD",1),Rv=new fN("TAIL",2)}function _p(){_p=R,Kre=ah(ah(ah(s6(new ii,(Qp(),n9)),(K5(),YH)),uln),hln)}function kl(){kl=R,Fre=ah(ah(ah(s6(new ii,(Qp(),t9)),(K5(),sln)),iln),oln)}function A$n(){A$n=R,lne=Me((Yp(),S(C(bv,1),G,232,0,[dv,L8,av,D0,p2,g2])))}function L$n(){L$n=R,vne=Me((vS(),S(C(Dsn,1),G,283,0,[Z_,Y_,eH,nH,tH,JI])))}function N$n(){N$n=R,yne=Me((Xk(),S(C(_sn,1),G,281,0,[YI,Ksn,Fsn,Rsn,Bsn,iH])))}function D$n(){D$n=R,jne=Me((y4(),S(C(Xsn,1),G,282,0,[D8,qsn,zsn,Gsn,Usn,Hsn])))}function $$n(){$$n=R,xZn=Me((Vn(),S(C(A_,1),G,273,0,[Xt,Ti,Zt,_c,Sc,Gf])))}function x$n(){x$n=R,yue=Me((Bh(),S(C(san,1),G,255,0,[zq,Hj,qj,eA,ZO,nA])))}function R$n(){R$n=R,Sue=Me((wd(),S(C(Jq,1),G,297,0,[Wq,p9,g9,Vq,b9,w9])))}function K$n(){K$n=R,Wue=Me((pS(),S(C(rdn,1),G,321,0,[lU,edn,idn,Zan,tdn,ndn])))}function B$n(){B$n=R,toe=Me((Ai(),S(C(ddn,1),G,101,0,[Oa,Qf,Bv,Ud,tl,qc])))}function F$n(){F$n=R,ioe=Me((zu(),S(C(oA,1),G,279,0,[Aa,Rl,eE,C9,T9,R3])))}function _$n(){_$n=R,dI=(wf(),S(C(P0,1),G,237,0,[bc,Wc,wc])).length,f_=dI}function P4e(){return l0(),S(C(yr,1),G,95,0,[Qs,xl,Ys,nf,el,Ts,No,Zs,Ms])}function I4e(n,e){return oa(),jc(n.b.c.length-n.e.c.length,e.b.c.length-e.e.c.length)}function Ng(n,e){return Khe(r5(n,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))))}function hQ(n,e){return Cf(),Fs(ha),y.Math.abs(n-e)<=ha||n==e||isNaN(n)&&isNaN(e)}function lC(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&rt(n,new Vw(n,1,t,n.b))}function Fm(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&rt(n,new Vw(n,3,t,n.b))}function Sb(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&rt(n,new Vw(n,3,t,n.f))}function Pb(n,e){var t;t=n.g,n.g=e,n.Db&4&&!(n.Db&1)&&rt(n,new Vw(n,4,t,n.g))}function eu(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&rt(n,new Vw(n,5,t,n.i))}function tu(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&rt(n,new Vw(n,6,t,n.j))}function _m(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&rt(n,new Vw(n,1,t,n.j))}function Hm(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&rt(n,new Vw(n,4,t,n.c))}function qm(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&rt(n,new Vw(n,2,t,n.k))}function aC(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&rt(n,new Vw(n,0,t,n.a))}function e1(n,e){var t;t=n.s,n.s=e,n.Db&4&&!(n.Db&1)&&rt(n,new UD(n,4,t,n.s))}function Zw(n,e){var t;t=n.t,n.t=e,n.Db&4&&!(n.Db&1)&&rt(n,new UD(n,5,t,n.t))}function v$(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&rt(n,new UD(n,2,t,n.d))}function Um(n,e){var t;t=n.F,n.F=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,5,t,e))}function wk(n,e){var t;return t=u(ee((tM(),yA),n),57),t?t.gk(e):F(ki,Rn,1,e,5,1)}function O4e(n,e){var t;return t=mi(Fi(u(ee(n.g,e),8)),AX(u(ee(n.f,e),469).b)),t}function A4e(n,e){var t,i,r;return t=(i=(B1(),r=new ZU,r),e&&ren(i,e),i),MQ(t,n),t}function yl(n,e){var t,i;return t=e in n.a,t&&(i=dl(n,e).re(),i)?i.a:null}function H$n(n,e,t){if(i4(n,t),!n.kl()&&t!=null&&!n.fk(t))throw T(new uL);return t}function q$n(n,e){return n.n=e,n.n?(n.f=new Z,n.e=new Z):(n.f=null,n.e=null),n}function U$n(n,e){if(n){e.n=n;var t=g2e(e);if(!t){rI[n]=[e];return}t.Rm=e}}function cd(n){var e;return D6(n==null||Array.isArray(n)&&(e=dk(n),!(e>=14&&e<=16))),n}function Ee(n,e){var t;return Jn(e),t=n[":"+e],x7(!!t,"Enum constant undefined: "+e),t}function we(n,e,t,i,r,c){var s;return s=bD(n,e),U$n(t,s),s.i=r?8:0,s.f=i,s.e=r,s.g=c,s}function lQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=n,this.a=t}function aQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=n,this.a=t}function dQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=n,this.a=t}function bQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=n,this.a=t}function wQ(n,e,t,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=n,this.a=t}function G$n(n,e){var t,i,r,c;for(i=e,r=0,c=i.length;r<c;++r)t=i[r],DDn(n.a,t);return n}function Eo(n){var e,t,i,r;for(t=n,i=0,r=t.length;i<r;++i)e=t[i],Pe(e);return new rCn(n)}function gQ(n){var e;return e=mi(Fi(n.d.d),n.c.d),m4(e,n.c.e.a,n.c.e.b),it(e,n.c.d)}function pQ(n){var e;return e=mi(Fi(n.c.d),n.d.d),m4(e,n.d.e.a,n.d.e.b),it(e,n.d.d)}function L4e(n){var e=/function(?:\s+([\w$]+))?\s*\(/,t=e.exec(n);return t&&t[1]||uK}function N4e(n,e,t){var i,r;return r=n.length,i=y.Math.min(t,r),$nn(n,0,e,0,i,!0),e}function z$n(n,e,t){var i,r;for(r=e.Kc();r.Ob();)i=u(r.Pb(),74),fi(n,u(t.Kb(i),27))}function D4e(n,e){Ep(u(v(u(n.e,10),(cn(),_t)),101))&&(Ln(),Yt(u(n.e,10).j,e))}function $4e(){return DS(),S(C(non,1),G,257,0,[Zun,Wun,Jun,Vun,s_,Yun,Qun,Xun,zun])}function x4e(){return a1(),S(C(Ihn,1),G,265,0,[$H,Chn,Shn,DH,Thn,Phn,MO,Pv,Iv])}function Ib(){Ib=R,Oj=new ZL("BARYCENTER",0),Q8=new ZL(qXn,1),IO=new ZL(UXn,2)}function dC(){dC=R,Whn=new QL("NO",0),WH=new QL(tin,1),Vhn=new QL("LOOK_BACK",2)}function bC(){bC=R,Psn=new HL("ARD",0),VI=new HL("MSD",1),V_=new HL("MANUAL",2)}function gr(){gr=R,W8=new XL(Y5,0),Vu=new XL("INPUT",1),Jc=new XL("OUTPUT",2)}function Gm(){return Uq||(Uq=new Jqn,Dg(Uq,S(C(a2,1),Rn,134,0,[new iG]))),Uq}function Fs(n){if(!(n>=0))throw T(new Gn("tolerance ("+n+") must be >= 0"));return n}function X$n(n,e){var t;return L(e,44)?n.c.Mc(e):(t=wx(n,e),VC(n,e),t)}function Tr(n,e,t){return ad(n,e),zc(n,t),e1(n,0),Zw(n,1),u1(n,!0),c1(n,!0),n}function gk(n,e){var t;if(t=n.gc(),e<0||e>t)throw T(new Fw(e,t));return new CV(n,e)}function wC(n,e){n.b=y.Math.max(n.b,e.d),n.e+=e.r+(n.a.c.length==0?0:n.c),nn(n.a,e)}function V$n(n){Rw(n.c>=0),_8e(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function gC(n){var e,t;for(t=n.c.Cc().Kc();t.Ob();)e=u(t.Pb(),16),e.$b();n.c.$b(),n.d=0}function R4e(n){var e,t,i,r;for(t=n.a,i=0,r=t.length;i<r;++i)e=t[i],_In(e,e.length,null)}function t5(n,e){var t,i,r,c;for(i=e,r=0,c=i.length;r<c;++r)t=i[r],xt(n,t,n.c.b,n.c)}function W$n(n,e){var t,i;for(t=0,i=n.gc();t<i;++t)if(mc(e,n.Xb(t)))return t;return-1}function mQ(n){var e,t;if(n==0)return 32;for(t=0,e=1;!(e&n);e<<=1)++t;return t}function Mo(n,e){if(n<0)throw T(new Gn(e+" cannot be negative but was: "+n));return n}function K4e(n,e){typeof window===my&&typeof window.$gwt===my&&(window.$gwt[n]=e)}function pC(n,e){return Rhe(c5(n.a,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))))}function B4e(n,e,t){return Ww(n,new p9n(e),new Gbn,new m9n(t),S(C(xr,1),G,108,0,[]))}function F4e(){return io(),S(C(wdn,1),G,264,0,[Fv,cE,sA,P9,fA,lA,hA,aU,rE])}function J$n(){J$n=R,wQn=S(C(ye,1),_e,28,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function i5(){i5=R,N8=new _L("LAYER_SWEEP",0),gj=new _L(sB,1),Csn=new _L(kh,2)}function vQ(){vQ=R,gie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,N0),Ac,L0)}function Q$n(){Q$n=R,pie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,N0),Ac,L0)}function kQ(){kQ=R,mie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,N0),Ac,L0)}function Y$n(){Y$n=R,vie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,N0),Ac,L0)}function Z$n(){Z$n=R,kie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,N0),Ac,L0)}function nxn(){nxn=R,yie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,N0),Ac,L0)}function exn(){exn=R,Mie=Iu(Fe(Fe(new ii,(Vi(),Ac),(tr(),DI)),Fc,II),zr,NI)}function _4e(n){var e,t;for(t=new M(GBn(n));t.a<t.c.c.length;)e=u(E(t),695),e._f()}function H4e(){AEn();for(var n=BF,e=0;e<arguments.length;e++)n.push(arguments[e])}function txn(n){Az(),this.g=new de,this.f=new de,this.b=new de,this.c=new jb,this.i=n}function yQ(){this.f=new Ni,this.d=new YG,this.c=new Ni,this.a=new Z,this.b=new Z}function ixn(n,e,t,i){this.ak(),this.a=e,this.b=n,this.c=null,this.c=new YSn(this,e,t,i)}function k$(n,e,t,i,r){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1,r||(this.o=-2-i-1)}function rxn(){xX.call(this),this.n=-1,this.g=null,this.i=null,this.j=null,this.Bb|=Gs}function cxn(n){IM.call(this,n.Ad(64)?IX(0,bs(n.zd(),1)):jy,n.yd()),this.b=1,this.a=n}function q4e(n,e){return _p(),u(v(e,(lc(),A2)),17).a<n.gc()&&u(v(e,A2),17).a>=0}function jQ(n,e){n.r>0&&n.c<n.r&&(n.c+=e,n.i&&n.i.d>0&&n.g!=0&&jQ(n.i,e/n.r*n.i.d))}function EQ(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,1,t,n.c))}function y$(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,4,t,n.c))}function zm(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,2,t,n.k))}function j$(n,e){var t;t=n.D,n.D=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,2,t,n.D))}function mC(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,8,t,n.f))}function vC(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,7,t,n.i))}function MQ(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,8,t,n.a))}function TQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,0,t,n.b))}function CQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,0,t,n.b))}function SQ(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,1,t,n.c))}function PQ(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,1,t,n.d))}function U4e(n,e,t){var i;n.b=e,n.a=t,i=(n.a&512)==512?new wjn:new tG,n.c=rSe(i,n.b,n.a)}function uxn(n,e){return Pl(n.e,e)?(dr(),a$(e)?new nT(e,n):new k7(e,n)):new DTn(e,n)}function G4e(n){var e,t;return 0>n?new Oz:(e=n+1,t=new mNn(e,n),new cV(null,t))}function z4e(n,e){Ln();var t;return t=new ap(1),Si(n)?Lr(t,n,e):Vc(t.f,n,e),new eL(t)}function X4e(n,e){var t,i;return t=n.c,i=e.e[n.p],i>0?u(sn(t.a,i-1),10):null}function V4e(n,e){var t,i;return t=n.o+n.p,i=e.o+e.p,t<i?-1:t==i?0:1}function W4e(n){var e;return e=v(n,(W(),st)),L(e,167)?MKn(u(e,167)):null}function oxn(n){var e;return n=y.Math.max(n,2),e=WQ(n),n>e?(e<<=1,e>0?e:X5):e}function E$(n){switch(BX(n.e!=3),n.e){case 2:return!1;case 0:return!0}return ime(n)}function sxn(n,e){var t;return L(e,8)?(t=u(e,8),n.a==t.a&&n.b==t.b):!1}function J4e(n,e){var t;t=new vE,u(e.b,68),u(e.b,68),u(e.b,68),nu(e.a,new xV(n,t,e))}function fxn(n,e){var t,i;for(i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),Gk(n,t.ld(),t.md())}function IQ(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,11,t,n.d))}function kC(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,13,t,n.j))}function OQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,21,t,n.b))}function Q4e(n,e){(UT(),Uf?null:e.c).length==0&&TSn(e,new xU),Lr(n.a,Uf?null:e.c,e)}function Y4e(n,e){e.Ug("Hierarchical port constraint processing",1),g9e(n),xNe(n),e.Vg()}function Ob(){Ob=R,rw=new FL("START",0),ka=new FL("MIDDLE",1),iw=new FL("END",2)}function yC(){yC=R,BO=new cX("P1_NODE_PLACEMENT",0),N2=new cX("P2_EDGE_ROUTING",1)}function Y1(){Y1=R,y3=new lt(Xtn),jI=new lt(TXn),O8=new lt(CXn),hj=new lt(SXn)}function Ab(n){var e;return RN(n.f.g,n.d),oe(n.b),n.c=n.a,e=u(n.a.Pb(),44),n.b=qQ(n),e}function AQ(n){var e;return n.b==null?(Gl(),Gl(),aE):(e=n.ul()?n.tl():n.sl(),e)}function hxn(n,e){var t;return t=e==null?-1:qr(n.b,e,0),t<0?!1:(T$(n,t),!0)}function _s(n,e){var t;return Jn(e),t=e.g,n.b[t]?!1:($t(n.b,t,e),++n.c,!0)}function jC(n,e){var t,i;return t=1-e,i=n.a[t],n.a[t]=i.a[e],i.a[e]=n,n.b=!0,i.b=!1,i}function Z4e(n,e){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),272),n.b=!0,fi(n.e,t),t.b=n}function nve(n,e){var t,i;return t=u(v(n,(cn(),H0)),8),i=u(v(e,H0),8),bt(t.b,i.b)}function M$(n,e,t){var i,r,c;return c=e>>5,r=e&31,i=vi(G1(n.n[t][c],Se(Ks(r,1))),3),i}function lxn(n,e,t){var i,r,c;for(c=n.a.length-1,r=n.b,i=0;i<t;r=r+1&c,++i)$t(e,i,n.a[r])}function T$(n,e){var t;t=Yl(n.b,n.b.c.length-1),e<n.b.c.length&&(Go(n.b,e,t),$_n(n,e))}function axn(n,e){var t;return t=u(ee(n.c,e),466),t||(t=new Wyn,t.c=e,Ve(n.c,t.c,t)),t}function eve(n,e){var t,i;i=new Z,t=e;do Bn(i.c,t),t=u(ee(n.k,t),18);while(t);return i}function C$(n,e,t){var i;return i=new Z,oen(n,e,i,t,!0,!0),n.b=new EC(i.c.length),i}function ud(n,e){var t,i;for(t=n.Pc(),xm(t,0,t.length,e),i=0;i<t.length;i++)n.hd(i,t[i])}function LQ(n){var e,t;for(t=new ne(n);t.e!=t.i.gc();)e=u(ue(t),27),eu(e,0),tu(e,0)}function dxn(n){this.e=n,this.d=new GE(Qw(Cp(this.e).gc())),this.c=this.e.a,this.b=this.e.c}function EC(n){this.b=n,this.a=F(ye,_e,28,n+1,15,1),this.c=F(ye,_e,28,n,15,1),this.d=0}function bxn(n,e,t){C$n.call(this,e,t),this.d=F(Qh,b1,10,n.a.c.length,0,1),Rf(n.a,this.d)}function wxn(n,e,t){gJ.call(this,n,e,t),this.a=new de,this.b=new de,this.d=new H7n(this)}function gxn(n){hW.call(this),this.b=$(B(v(n,(cn(),Ws)))),this.a=u(v(n,$l),223)}function S$(n,e){var t;return L(e,16)?(t=u(e,16),n.Gc(t)):b$(n,u(Pe(e),20).Kc())}function tve(n,e){Ut(ut(new Cn(null,new On(new qa(n.b),1)),new sTn(n,e)),new hTn(n,e))}function ive(n,e){e.Ug(HXn,1),Ut(rc(new Cn(null,new On(n.b,16)),new C0n),new S0n),e.Vg()}function mt(n){return Si(n)?t1(n):$w(n)?pp(n):Dw(n)?SSn(n):wW(n)?n.Hb():sW(n)?fb(n):QW(n)}function pxn(n){var e,t;for(t=n.c.a.ec().Kc();t.Ob();)e=u(t.Pb(),219),efe(e,new xIn(e.f))}function NQ(n){var e,t;for(t=n.c.a.ec().Kc();t.Ob();)e=u(t.Pb(),219),tfe(e,new JFn(e.e))}function zc(n,e){var t;t=n.zb,n.zb=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,1,t,n.zb))}function MC(n,e){var t;t=n.xb,n.xb=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,3,t,n.xb))}function TC(n,e){var t;t=n.yb,n.yb=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,2,t,n.yb))}function Rt(n,e){var t,i;t=(i=new fL,i),t.n=e,ve((!n.s&&(n.s=new q(ku,n,21,17)),n.s),t)}function jt(n,e){var t,i;i=(t=new iV,t),i.n=e,ve((!n.s&&(n.s=new q(ku,n,21,17)),n.s),i)}function Ki(n,e){var t,i,r;for(Jn(e),t=!1,r=e.Kc();r.Ob();)i=r.Pb(),t=t|n.Fc(i);return t}function mxn(n){var e,t,i;for(e=0,i=n.Kc();i.Ob();)t=i.Pb(),e+=t!=null?mt(t):0,e=~~e;return e}function P$(n,e){var t=n.a,i=0;for(var r in t)t.hasOwnProperty(r)&&(e[i++]=r);return e}function vxn(n){var e;return n==0?"UTC":(n<0?(n=-n,e="UTC+"):e="UTC-",e+QDn(n))}function DQ(n){return n.a<54?n.f<0?-1:n.f>0?1:0:(!n.c&&(n.c=W7(vc(n.f))),n.c).e}function kxn(n,e){e?n.B==null&&(n.B=n.D,n.D=null):n.B!=null&&(n.D=n.B,n.B=null)}function rve(n,e){return Zm(),n==tw&&e==O0||n==O0&&e==tw||n==d2&&e==I0||n==I0&&e==d2}function cve(n,e){return Zm(),n==tw&&e==I0||n==tw&&e==d2||n==O0&&e==d2||n==O0&&e==I0}function yxn(n,e){return Cf(),Fs(_f),y.Math.abs(0-e)<=_f||e==0||isNaN(0)&&isNaN(e)?0:n/e}function jxn(n,e){return $(B(ho(Lk(_r(new Cn(null,new On(n.c.b,16)),new I7n(n)),e))))}function $Q(n,e){return $(B(ho(Lk(_r(new Cn(null,new On(n.c.b,16)),new P7n(n)),e))))}function uve(){return pr(),S(C(rH,1),G,259,0,[ZI,cs,$8,nO,kv,v2,x8,mv,vv,eO])}function ove(){return ps(),S(C(Khn,1),G,243,0,[SO,Sj,Pj,$hn,xhn,Dhn,Rhn,PO,ww,U0])}function sve(n,e){var t;e.Ug("General Compactor",1),t=d8e(u(z(n,(sa(),kq)),393)),t.Cg(n)}function fve(n,e){var t,i;return t=u(z(n,(sa(),_O)),17),i=u(z(e,_O),17),jc(t.a,i.a)}function xQ(n,e,t){var i,r;for(r=ge(n,0);r.b!=r.d.c;)i=u(be(r),8),i.a+=e,i.b+=t;return n}function r5(n,e,t){var i;for(i=n.b[t&n.f];i;i=i.b)if(t==i.a&&sh(e,i.g))return i;return null}function c5(n,e,t){var i;for(i=n.c[t&n.f];i;i=i.d)if(t==i.f&&sh(e,i.i))return i;return null}function hve(n,e,t){var i,r,c;for(i=0,r=0;r<t;r++)c=e[r],n[r]=c<<1|i,i=c>>>31;i!=0&&(n[t]=i)}function I$(n,e,t,i,r,c){var s;this.c=n,s=new Z,wZ(n,s,e,n.b,t,i,r,c),this.a=new xi(s,0)}function Exn(){this.c=new zE(0),this.b=new zE(Ern),this.d=new zE(lVn),this.a=new zE(QK)}function Vo(n,e,t,i,r,c,s){je.call(this,n,e),this.d=t,this.e=i,this.c=r,this.b=c,this.a=Af(s)}function Gt(n,e,t,i,r,c,s,f,h,l,a,d,g){return I_n(n,e,t,i,r,c,s,f,h,l,a,d,g),sx(n,!1),n}function lve(n){return n.b.c.i.k==(Vn(),Zt)?u(v(n.b.c.i,(W(),st)),12):n.b.c}function Mxn(n){return n.b.d.i.k==(Vn(),Zt)?u(v(n.b.d.i,(W(),st)),12):n.b.d}function ave(n){var e;return e=KT(n),cb(e.a,0)?(JE(),JE(),PQn):(JE(),new cSn(e.b))}function O$(n){var e;return e=bJ(n),cb(e.a,0)?(Ow(),Ow(),ZF):(Ow(),new SN(e.b))}function A$(n){var e;return e=bJ(n),cb(e.a,0)?(Ow(),Ow(),ZF):(Ow(),new SN(e.c))}function Txn(n){switch(n.g){case 2:return en(),Wn;case 4:return en(),Zn;default:return n}}function Cxn(n){switch(n.g){case 1:return en(),ae;case 3:return en(),Xn;default:return n}}function Sxn(n){switch(n.g){case 0:return new f4n;case 1:return new h4n;default:return null}}function Hp(){Hp=R,$_=new Lt("edgelabelcenterednessanalysis.includelabel",(_n(),pa))}function RQ(){RQ=R,Tie=ah(VTn(Fe(Fe(new ii,(Vi(),Ac),(tr(),DI)),Fc,II),zr),NI)}function Pxn(){Pxn=R,Iie=ah(VTn(Fe(Fe(new ii,(Vi(),Ac),(tr(),DI)),Fc,II),zr),NI)}function L$(){L$=R,N9=new hjn,jU=S(C(ku,1),f2,179,0,[]),Joe=S(C(Ps,1),Hcn,62,0,[])}function Xm(){Xm=R,aj=new zz("TO_INTERNAL_LTR",0),L_=new zz("TO_INPUT_DIRECTION",1)}function Au(){Au=R,Ron=new b0n,$on=new w0n,xon=new g0n,Don=new p0n,Kon=new m0n,Bon=new v0n}function dve(n,e){e.Ug(HXn,1),FY(Qhe(new IE((r6(),new kD(n,!1,!1,new _U))))),e.Vg()}function bve(n,e,t){t.Ug("DFS Treeifying phase",1),A8e(n,e),ICe(n,e),n.a=null,n.b=null,t.Vg()}function pk(n,e){return _n(),Si(n)?RJ(n,Ae(e)):$w(n)?tD(n,B(e)):Dw(n)?r0e(n,un(e)):n.Fd(e)}function u5(n,e){var t,i;for(Jn(e),i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),n.zc(t.ld(),t.md())}function wve(n,e,t){var i;for(i=t.Kc();i.Ob();)if(!_T(n,e,i.Pb()))return!1;return!0}function gve(n,e,t,i,r){var c;return t&&(c=At(e.Dh(),n.c),r=t.Rh(e,-1-(c==-1?i:c),null,r)),r}function pve(n,e,t,i,r){var c;return t&&(c=At(e.Dh(),n.c),r=t.Th(e,-1-(c==-1?i:c),null,r)),r}function Ixn(n){var e;if(n.b==-2){if(n.e==0)e=-1;else for(e=0;n.a[e]==0;e++);n.b=e}return n.b}function mve(n){if(Jn(n),n.length==0)throw T(new th("Zero length BigInteger"));MPe(this,n)}function KQ(n){this.i=n.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),n.Qc(this.g))}function Oxn(n,e,t){this.g=n,this.d=e,this.e=t,this.a=new Z,OEe(this),Ln(),Yt(this.a,null)}function BQ(n,e){e.q=n,n.d=y.Math.max(n.d,e.r),n.b+=e.d+(n.a.c.length==0?0:n.c),nn(n.a,e)}function Vm(n,e){var t,i,r,c;return r=n.c,t=n.c+n.b,c=n.d,i=n.d+n.a,e.a>r&&e.a<t&&e.b>c&&e.b<i}function n0(n,e){var t,i;for(i=ge(n,0);i.b!=i.d.c;)t=u(be(i),8),t.a+=e.a,t.b+=e.b;return n}function vve(n){var e,t,i;for(i=0,t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),30),e.p=i,++i}function kve(n){var e,t,i;return n.j==(en(),Xn)&&(e=mHn(n),t=Su(e,Zn),i=Su(e,Wn),i||i&&t)}function yve(n,e){var t;return t=nnn(n),Onn(new V(t.c,t.d),new V(t.b,t.a),n.Mf(),e,n.ag())}function FQ(n,e){var t;t=u(e,190),nd(t,"x",n.i),nd(t,"y",n.j),nd(t,dF,n.g),nd(t,aF,n.f)}function CC(n,e){var t;L(e,85)?(u(n.c,79).Gk(),t=u(e,85),fxn(n,t)):u(n.c,79).Wb(e)}function o5(n,e){var t,i;for(Jn(e),i=n.vc().Kc();i.Ob();)t=u(i.Pb(),44),e.Yd(t.ld(),t.md())}function jve(n,e){var t;for(Pe(e);n.Ob();)if(t=n.Pb(),!HQ(u(t,10)))return!1;return!0}function Eve(){var n;return r_||(r_=new Kyn,n=new VD(""),Kle(n,(lm(),Nun)),Q4e(r_,n)),r_}function Axn(n,e){return Ww(new b9n(n),new w9n(e),new g9n(e),new Ubn,S(C(xr,1),G,108,0,[]))}function SC(){SC=R,Eq=new iN(kh,0),c1n=new iN("POLAR_COORDINATE",1),r1n=new iN("ID",2)}function PC(){PC=R,Hhn=new VL("EQUALLY",0),GH=new VL(eP,1),qhn=new VL("NORTH_SOUTH",2)}function Wm(){Wm=R,I8=new Lt("debugSVG",(_n(),!1)),ron=new Lt("overlapsExisted",!0)}function Lxn(){Lxn=R,kue=Me((l1(),S(C(vue,1),G,285,0,[can,yi,Zr,$2,Qi,It,L3,Vf])))}function Nxn(){Nxn=R,Ioe=Me((E4(),S(C(kA,1),G,245,0,[mU,mA,vA,pA,pU,gA,wA,gU])))}function Dxn(){Dxn=R,hne=Me((LS(),S(C(Esn,1),G,276,0,[F_,q_,B_,z_,H_,__,G_,U_])))}function $xn(){return K5(),S(C(CDe,1),G,262,0,[YH,uln,hln,lln,fln,cln,aln,iln,sln,oln,rln])}function od(n,e,t){var i,r;return r=u(N6(n.d,e),17),i=u(N6(n.b,t),17),!r||!i?null:Bp(n,r.a,i.a)}function xxn(n,e){var t;return t=CR(Gm(),n),t?(ht(e,(He(),q2),t),!0):!1}function Rxn(n){return Kw(),n.A.Hc((go(),Q0))&&!n.B.Hc((io(),cE))?NKn(n):null}function Kxn(){this.a=u(rn((Us(),kI)),17).a,this.c=$(B(rn(yI))),this.b=$(B(rn(v_)))}function sd(n){this.f=n,this.e=new TJ(this.f.i),this.a=this.e,this.b=qQ(this),this.d=this.f.g}function Ft(n,e){JM.call(this,Qoe,n,e),this.b=this,this.a=ru(n.Dh(),$n(this.e.Dh(),this.c))}function Mve(n,e){var t,i;for(i=new M(e.b);i.a<i.c.c.length;)t=u(E(i),30),n.a[t.p]=ije(t)}function To(n,e){var t;for(t=0;t<e.j.c.length;t++)u(hk(n,t),21).Gc(u(hk(e,t),16));return n}function N$(n,e,t,i){var r;r=n.a.length,t>r?t=r:zn(e,t+1),n.a=qo(n.a,0,e)+(""+i)+NW(n.a,t)}function Bxn(n,e){n.a=nr(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d=nr(n.d,e)}function Tve(n,e){return e<n.b.gc()?u(n.b.Xb(e),10):e==n.b.gc()?n.a:u(sn(n.e,e-n.b.gc()-1),10)}function Cve(n,e,t){return bt(vp(g4(n),new V(e.e.a,e.e.b)),vp(g4(n),new V(t.e.a,t.e.b)))}function Sve(n,e,t){return n==(Ib(),IO)?new Vpn:to(e,1)!=0?new yz(t.length):new Vjn(t.length)}function rt(n,e){var t,i,r;if(t=n.th(),t!=null&&n.wh())for(i=0,r=t.length;i<r;++i)t[i].dj(e)}function Pve(n,e){var t,i,r;for(t=n.c.Xe(),r=e.Kc();r.Ob();)i=r.Pb(),n.a.Yd(t,i);return n.b.Kb(t)}function Jm(n,e){var t,i;for(t=n,i=Hi(t).e;i;){if(t=i,t==e)return!0;i=Hi(t).e}return!1}function Z1(n){var e;return e=n.h,e==0?n.l+n.m*o3:e==Ol?n.l+n.m*o3-vd:n}function Ive(n,e,t){var i,r;return i=n.a.f[e.p],r=n.a.f[t.p],i<r?-1:i==r?0:1}function Ove(n,e){var t,i;for(i=new M(e);i.a<i.c.c.length;)t=u(E(i),72),nn(n.d,t),Yye(n,t)}function Ave(n,e){var t;e.Ug("Edge and layer constraint edge reversal",1),t=FSe(n),pLe(t),e.Vg()}function Lve(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)t=u(ue(i),27),Bo(t,t.i+e.b,t.j+e.d)}function Fxn(n){var e;n.d==null?(++n.e,n.f=0,YRn(null)):(++n.e,e=n.d,n.d=null,n.f=0,YRn(e))}function Nve(n){var e;if(n.a==n.b.a)throw T(new nc);return e=n.a,n.c=e,n.a=u(as(n.a.e),227),e}function Un(n,e){var t;return n.Db&e?(t=Bx(n,e),t==-1?n.Eb:cd(n.Eb)[t]):null}function hc(n,e){var t,i;return t=(i=new rG,i),t.G=e,!n.rb&&(n.rb=new Hw(n,Mf,n)),ve(n.rb,t),t}function Je(n,e){var t,i;return t=(i=new $E,i),t.G=e,!n.rb&&(n.rb=new Hw(n,Mf,n)),ve(n.rb,t),t}function _xn(n,e,t,i){L(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,t),e&&JEe(n,e),i&&n.gl(!0)}function Hxn(n,e){n.c&&(cUn(n,e,!0),Ut(new Cn(null,new On(e,16)),new $7n(n))),cUn(n,e,!1)}function Dve(n){bCn();var e;return mMn(QH,n)||(e=new M3n,e.a=n,wV(QH,n,e)),u(Mr(QH,n),645)}function IC(n){var e;if(n.g>1||n.Ob())return++n.a,n.g=0,e=n.i,n.Ob(),e;throw T(new nc)}function qxn(n){switch(n.a.g){case 1:return new VMn;case 3:return new VBn;default:return new o8n}}function _Q(n,e){switch(e){case 1:return!!n.n&&n.n.i!=0;case 2:return n.k!=null}return dJ(n,e)}function vc(n){return Cy<n&&n<vd?n<0?y.Math.ceil(n):y.Math.floor(n):Z1(sCe(n))}function mk(n){var e;return n<128?(eIn(),e=bun[n],!e&&(e=bun[n]=new kG(n)),e):new kG(n)}function $ve(n,e){var t;try{e.de()}catch(i){if(i=Ot(i),L(i,82))t=i,Bn(n.c,t);else throw T(i)}}function ds(n){var e,t,i,r;return r=n,i=0,r<0&&(r+=vd,i=Ol),t=wi(r/o3),e=wi(r-t*o3),Yc(e,t,i)}function vk(n){var e,t,i;for(i=0,t=new dp(n.a);t.a<t.c.a.length;)e=Y6(t),n.b.Hc(e)&&++i;return i}function xve(n){var e,t,i;for(e=1,i=n.Kc();i.Ob();)t=i.Pb(),e=31*e+(t==null?0:mt(t)),e=~~e;return e}function Ur(n,e){var t;return e&&(t=e.nf(),t.dc()||(n.q?u5(n.q,t):n.q=new KTn(t))),n}function Uxn(n,e){var t;return t=n.a.get(e),t===void 0?++n.d:(Iae(n.a,e),--n.c,++n.b.g),t}function Rve(n,e){var t,i,r;return t=e.p-n.p,t==0?(i=n.f.a*n.f.b,r=e.f.a*e.f.b,bt(i,r)):t}function Kve(n,e){var t,i;return t=n.j,i=e.j,t!=i?t.g-i.g:n.p==e.p?0:t==(en(),Xn)?n.p-e.p:e.p-n.p}function s5(n,e,t,i,r){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i),$t(n.b[e.g],t.g,r),$t(n.b[t.g],e.g,r)}function fd(n,e,t){this.b=(Jn(n),n),this.d=(Jn(e),e),this.e=(Jn(t),t),this.c=this.d+(""+this.e)}function Qm(n,e){this.b=n,this.e=e,this.d=e.j,this.f=(dr(),u(n,69).xk()),this.k=ru(e.e.Dh(),n)}function kk(n){this.n=new Z,this.e=new Mt,this.j=new Mt,this.k=new Z,this.f=new Z,this.p=n}function Gxn(n){n.r=new ni,n.w=new ni,n.t=new Z,n.i=new Z,n.d=new ni,n.a=new mp,n.c=new de}function Lb(){Lb=R,ij=new oM("UP",0),tj=new oM(_K,1),l_=new oM(s3,2),a_=new oM(f3,3)}function Ym(){Ym=R,cH=new UL("ONE_SIDED",0),uH=new UL("TWO_SIDED",1),pj=new UL("OFF",2)}function D$(){D$=R,A1n=new sX("EQUAL_BETWEEN_STRUCTURES",0),L1n=new sX("TO_ASPECT_RATIO",1)}function zxn(){zxn=R,Yte=Me((a1(),S(C(Ihn,1),G,265,0,[$H,Chn,Shn,DH,Thn,Phn,MO,Pv,Iv])))}function Xxn(){Xxn=R,hoe=Me((io(),S(C(wdn,1),G,264,0,[Fv,cE,sA,P9,fA,lA,hA,aU,rE])))}function Vxn(){Vxn=R,noe=Me((l0(),S(C(yr,1),G,95,0,[Qs,xl,Ys,nf,el,Ts,No,Zs,Ms])))}function Wxn(){Wxn=R,UQn=Me((DS(),S(C(non,1),G,257,0,[Zun,Wun,Jun,Vun,s_,Yun,Qun,Xun,zun])))}function HQ(n){var e;return e=u(v(n,(W(),gc)),64),n.k==(Vn(),Zt)&&(e==(en(),Wn)||e==Zn)}function Bve(n,e,t){var i,r;r=u(v(n,(cn(),Rr)),75),r&&(i=new Tu,J$(i,0,r),n0(i,t),Ki(e,i))}function OC(n,e,t){var i,r,c,s;s=Hi(n),i=s.d,r=s.c,c=n.n,e&&(c.a=c.a-i.b-r.a),t&&(c.b=c.b-i.d-r.b)}function Fve(n,e){var t,i;return t=n.f.c.length,i=e.f.c.length,t<i?-1:t==i?0:1}function _ve(n){return n.b.c.length!=0&&u(sn(n.b,0),72).a?u(sn(n.b,0),72).a:vD(n)}function Hve(n){var e;if(n){if(e=n,e.dc())throw T(new nc);return e.Xb(e.gc()-1)}return NAn(n.Kc())}function Jxn(n){var e;return Ec(n,0)<0&&(n=XV(n)),e=Se(G1(n,32)),64-(e!=0?ty(e):ty(Se(n))+32)}function qve(){return UT(),Uf?new VD(null):wHn(Eve(),"com.google.common.base.Strings")}function $$(n,e,t,i){return t==1?(!n.n&&(n.n=new q(Sr,n,1,7)),cr(n.n,e,i)):snn(n,e,t,i)}function yk(n,e){var t,i;return i=(t=new UA,t),zc(i,e),ve((!n.A&&(n.A=new Cu(fu,n,7)),n.A),i),i}function Uve(n,e,t){var i,r,c,s;return c=null,s=e,r=Tb(s,gF),i=new bTn(n,t),c=(yke(i.a,i.b,r),r),c}function x$(n){var e;return(!n.a||!(n.Bb&1)&&n.a.Vh())&&(e=gs(n),L(e,156)&&(n.a=u(e,156))),n.a}function jk(n,e){var t,i;for(Jn(e),i=e.Kc();i.Ob();)if(t=i.Pb(),!n.Hc(t))return!1;return!0}function Gve(n,e){var t,i,r;return t=n.l+e.l,i=n.m+e.m+(t>>22),r=n.h+e.h+(i>>22),Yc(t&ro,i&ro,r&Ol)}function Qxn(n,e){var t,i,r;return t=n.l-e.l,i=n.m-e.m+(t>>22),r=n.h-e.h+(i>>22),Yc(t&ro,i&ro,r&Ol)}function zve(n){var e,t;for(BLe(n),t=new M(n.d);t.a<t.c.c.length;)e=u(E(t),105),e.i&&Dje(e)}function Ot(n){var e;return L(n,82)?n:(e=n&&n.__java$exception,e||(e=new URn(n),Lyn(e)),e)}function Ek(n){if(L(n,193))return u(n,123);if(n)return null;throw T(new fp(MWn))}function qQ(n){return n.a.Ob()?!0:n.a!=n.e?!1:(n.a=new XJ(n.f.f),n.a.Ob())}function Yxn(n,e){if(e==null)return!1;for(;n.a!=n.b;)if(ct(e,xC(n)))return!0;return!1}function Zxn(n,e){return!n||!e||n==e?!1:BKn(n.d.c,e.d.c+e.d.b)&&BKn(e.d.c,n.d.c+n.d.b)}function hi(n,e){var t,i;return t=e.Pc(),i=t.length,i==0?!1:(UV(n.c,n.c.length,t),!0)}function Xve(n,e,t){var i,r;for(r=e.vc().Kc();r.Ob();)i=u(r.Pb(),44),n.yc(i.ld(),i.md(),t);return n}function R$(n){var e,t,i;for(e=new Mt,i=ge(n.d,0);i.b!=i.d.c;)t=u(be(i),65),Re(e,t.c);return e}function nRn(n,e){var t,i;for(i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),72),U(t,(W(),S3),e)}function Vve(n,e,t){var i,r;for(r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),27),Bo(i,i.i+e,i.j+t)}function eRn(n,e){if(!n)throw T(new Gn(R5("value already present: %s",S(C(ki,1),Rn,1,5,[e]))))}function Wve(n,e,t,i,r){return Vg(),y.Math.min(OGn(n,e,t,i,r),OGn(t,i,n,e,_M(new V(r.a,r.b))))}function Jve(n,e,t,i){u(t.b,68),u(t.b,68),u(i.b,68),u(i.b,68),u(i.b,68),nu(i.a,new $V(n,e,i))}function Qve(n,e){n.d==(ci(),Kr)||n.d==us?u(e.a,60).c.Fc(u(e.b,60)):u(e.b,60).c.Fc(u(e.a,60))}function tRn(n,e){var t;return t=Lh(e.a.gc()),Ut(fC(new Cn(null,new On(e,1)),n.i),new uTn(n,t)),t}function iRn(n){var e,t;return t=(e=new UA,e),zc(t,"T"),ve((!n.d&&(n.d=new Cu(fu,n,11)),n.d),t),t}function UQ(n){var e,t,i,r;for(e=1,t=0,r=n.gc();t<r;++t)i=n.Vi(t),e=31*e+(i==null?0:mt(i));return e}function rRn(n,e,t,i){var r;return Y7(e,n.e.Rd().gc()),Y7(t,n.c.Rd().gc()),r=n.a[e][t],$t(n.a[e],t,i),r}function S(n,e,t,i,r){return r.Rm=n,r.Sm=e,r.Tm=Q2,r.__elementTypeId$=t,r.__elementTypeCategory$=i,r}function AC(){AC=R,x_=new aM(kh,0),HI=new aM(GXn,1),qI=new aM(zXn,2),bj=new aM("BOTH",3)}function xf(){xf=R,j3=new dM(H4,0),hv=new dM(s3,1),lv=new dM(f3,2),R_=new dM("TOP",3)}function Zm(){Zm=R,tw=new hM("Q1",0),O0=new hM("Q4",1),I0=new hM("Q2",2),d2=new hM("Q3",3)}function LC(){LC=R,JH=new YL("OFF",0),Ov=new YL("SINGLE_EDGE",1),G0=new YL("MULTI_EDGE",2)}function Mk(){Mk=R,YO=new hX("MINIMUM_SPANNING_TREE",0),tan=new hX("MAXIMUM_SPANNING_TREE",1)}function qp(){qp=R,bue=new p4n,due=new g4n}function GQ(n){var e,t;return t=(B1(),e=new yE,e),n&&ve((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),t),t}function K$(n){var e,t,i,r;for(r=new Z,i=n.Kc();i.Ob();)t=u(i.Pb(),27),e=a0(t),hi(r,e);return r}function Yve(n,e){var t,i;for(TT(e,"predicate"),i=0;n.Ob();i++)if(t=n.Pb(),e.Lb(t))return i;return-1}function Up(n,e){var t,i;if(i=0,n<64&&n<=e)for(e=e<64?e:63,t=n;t<=e;t++)i=lf(i,Ks(1,t));return i}function Zve(n,e){var t,i;return t=n.c,i=e.e[n.p],i<t.a.c.length-1?u(sn(t.a,i+1),10):null}function zQ(n){Ln();var e,t,i;for(i=0,t=n.Kc();t.Ob();)e=t.Pb(),i=i+(e!=null?mt(e):0),i=i|0;return i}function n6e(n){var e,t,i;return e=u(n.e&&n.e(),9),i=(t=e.slice(),u(o$(t,e),9)),new _o(e,i,e.length)}function cRn(n,e,t){var i;Hu(n.a),nu(t.i,new Pkn(n)),i=new LM(u(ee(n.a,e.b),68)),WKn(n,i,e),t.f=i}function e6e(n){var e;Hb(n,!0),e=d1,kt(n,(cn(),Tv))&&(e+=u(v(n,Tv),17).a),U(n,Tv,Y(e))}function t6e(n){var e;return e=new ul,e.a=n,e.b=a6e(n),e.c=F(fn,J,2,2,6,1),e.c[0]=vxn(n),e.c[1]=vxn(n),e}function uRn(n){var e,t,i;return t=n.n,i=n.o,e=n.d,new Ho(t.a-e.b,t.b-e.d,i.a+(e.b+e.c),i.b+(e.d+e.a))}function i6e(n,e){return!n||!e||n==e?!1:Db(n.b.c,e.b.c+e.b.b)<0&&Db(e.b.c,n.b.c+n.b.b)<0}function oRn(n){switch(n.g){case 1:return Pa;case 2:return nl;case 3:return Yj;default:return Zj}}function r6e(n){switch(u(v(n,(cn(),ou)),171).g){case 2:case 4:return!0;default:return!1}}function Tk(n,e,t){switch(t.g){case 2:n.b=e;break;case 1:n.c=e;break;case 4:n.d=e;break;case 3:n.a=e}}function XQ(n,e){switch(e){case 0:!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),n.o.c.$b();return}cR(n,e)}function c6e(n,e){var t,i;return t=u(u(ee(n.g,e.a),42).a,68),i=u(u(ee(n.g,e.b),42).a,68),xUn(t,i)}function VQ(n,e,t){var i;if(i=n.gc(),e>i)throw T(new Fw(e,i));return n.Si()&&(t=wAn(n,t)),n.Ei(e,t)}function n4(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)Fg(n,c,s)||xS(n,c,s,!0,!1)}function u6e(n){Vg();var e,t,i;for(t=F(Ei,J,8,2,0,1),i=0,e=0;e<2;e++)i+=.5,t[e]=Z9e(i,n);return t}function e4(n){var e,t,i;return e=~n.l+1&ro,t=~n.m+(e==0?1:0)&ro,i=~n.h+(e==0&&t==0?1:0)&Ol,Yc(e,t,i)}function WQ(n){var e;if(n<0)return Wi;if(n==0)return 0;for(e=X5;!(e&n);e>>=1);return e}function B$(n,e,t){return n>=128?!1:n<64?j6(vi(Ks(1,n),t),0):j6(vi(Ks(1,n-64),e),0)}function Ck(n,e,t){return t==null?(!n.q&&(n.q=new de),Kp(n.q,e)):(!n.q&&(n.q=new de),Ve(n.q,e,t)),n}function U(n,e,t){return t==null?(!n.q&&(n.q=new de),Kp(n.q,e)):(!n.q&&(n.q=new de),Ve(n.q,e,t)),n}function sRn(n){var e,t;return t=new zT,Ur(t,n),U(t,(Y1(),y3),n),e=new de,$Ie(n,t,e),fLe(n,t,e),t}function fRn(n){var e,t;return e=n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f,t=n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d,e||t}function hRn(n,e){var t,i,r,c;for(t=!1,i=n.a[e].length,c=0;c<i-1;c++)r=c+1,t=t|N8e(n,e,c,r);return t}function o6e(n){var e,t,i,r;for(t=n.a,i=0,r=t.length;i<r;++i)e=t[i],pRn(n,e,(en(),ae)),pRn(n,e,Xn)}function lRn(){lRn=R,Ene=Me((pr(),S(C(rH,1),G,259,0,[ZI,cs,$8,nO,kv,v2,x8,mv,vv,eO])))}function aRn(){aRn=R,tie=Me((ps(),S(C(Khn,1),G,243,0,[SO,Sj,Pj,$hn,xhn,Dhn,Rhn,PO,ww,U0])))}function hd(){hd=R,Q_=new qL(kh,0),pv=new qL("INCOMING_ONLY",1),m2=new qL("OUTGOING_ONLY",2)}function F$(){F$=R,VF={boolean:qhe,number:ihe,string:rhe,object:L_n,function:L_n,undefined:Rfe}}function JQ(){this.o=null,this.k=null,this.j=null,this.d=null,this.b=null,this.n=null,this.a=null}function QQ(n,e){this.c=n,this.d=e,this.b=this.d/this.c.c.Rd().gc()|0,this.a=this.d%this.c.c.Rd().gc()}function dRn(n,e){this.b=n,pg.call(this,(u(N(H((z1(),Hn).o),10),19),e.i),e.g),this.a=(L$(),jU)}function YQ(n,e,t){this.q=new y.Date,this.q.setFullYear(n+la,e,t),this.q.setHours(0,0,0,0),F5(this,0)}function bRn(n,e){x7(n>=0,"Negative initial capacity"),x7(e>=0,"Non-positive load factor"),Hu(this)}function s6e(n,e,t,i,r){var c,s;if(s=n.length,c=t.length,e<0||i<0||r<0||e+r>s||i+r>c)throw T(new _G)}function ZQ(n,e){Ln();var t,i,r,c,s;for(s=!1,i=e,r=0,c=i.length;r<c;++r)t=i[r],s=s|n.Fc(t);return s}function wRn(n,e,t){var i,r;return i=new r$(e,t),r=new LA,n.b=yqn(n,n.b,i,r),r.b||++n.c,n.b.b=!1,r.d}function f5(n){var e;return e=n.a[n.b],e==null?null:($t(n.a,n.b,null),n.b=n.b+1&n.a.length-1,e)}function gRn(n){var e,t;return t=ty(n.h),t==32?(e=ty(n.m),e==32?ty(n.l)+32:e+20-10):t-12}function nY(n){var e;return(!n.c||!(n.Bb&1)&&n.c.Db&64)&&(e=gs(n),L(e,90)&&(n.c=u(e,29))),n.c}function na(n){var e,t;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),60),e.d.c=-e.d.c-e.d.b;ien(n)}function ea(n){var e,t;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),e.g.c=-e.g.c-e.g.b;IS(n)}function pRn(n,e,t){var i,r,c,s;for(s=b5(e,t),c=0,r=s.Kc();r.Ob();)i=u(r.Pb(),12),Ve(n.c,i,Y(c++))}function mRn(n,e,t){var i;return i=new Z,oen(n,e,i,(en(),Zn),!0,!1),oen(n,t,i,Wn,!1,!1),i}function cc(n){var e,t,i,r,c;for(e=new Ni,i=n,r=0,c=i.length;r<c;++r)t=i[r],e.a+=t.a,e.b+=t.b;return e}function _$(n,e,t){var i,r,c,s;return c=null,s=e,r=Tb(s,"labels"),i=new MTn(n,t),c=(GMe(i.a,i.b,r),r),c}function f6e(n,e,t,i){var r;return r=Vnn(n,e,t,i),!r&&(r=p5e(n,t,i),r&&!Qg(n,e,r))?null:r}function h6e(n,e,t,i){var r;return r=Wnn(n,e,t,i),!r&&(r=rx(n,t,i),r&&!Qg(n,e,r))?null:r}function l6e(n,e,t){if(Pe(e),t.Ob())for(gX(e,cOn(t.Pb()));t.Ob();)gX(e,n.a),gX(e,cOn(t.Pb()));return e}function vRn(n,e){var t;for(t=0;t<n.a.a.length;t++)if(!u(QPn(n.a,t),178).Lb(e))return!1;return!0}function a6e(n){var e;return n==0?"Etc/GMT":(n<0?(n=-n,e="Etc/GMT-"):e="Etc/GMT+",e+QDn(n))}function eY(n){var e;return n.b<=0?!1:(e=ih("MLydhHmsSDkK",wu(Xi(n.c,0))),e>1||e>=0&&n.b<3)}function H$(n){var e,t,i;e=~n.l+1&ro,t=~n.m+(e==0?1:0)&ro,i=~n.h+(e==0&&t==0?1:0)&Ol,n.l=e,n.m=t,n.h=i}function tY(n){Ln();var e,t,i;for(i=1,t=n.Kc();t.Ob();)e=t.Pb(),i=31*i+(e!=null?mt(e):0),i=i|0;return i}function d6e(n,e,t,i,r){var c;return c=Unn(n,e),t&&H$(c),r&&(n=u7e(n,e),i?ga=e4(n):ga=Yc(n.l,n.m,n.h)),c}function kRn(n,e,t){n.g=uR(n,e,(en(),Zn),n.b),n.d=uR(n,t,Zn,n.b),!(n.g.c==0||n.d.c==0)&&QFn(n)}function yRn(n,e,t){n.g=uR(n,e,(en(),Wn),n.j),n.d=uR(n,t,Wn,n.j),!(n.g.c==0||n.d.c==0)&&QFn(n)}function iY(n,e){switch(e){case 7:return!!n.e&&n.e.i!=0;case 8:return!!n.d&&n.d.i!=0}return _Y(n,e)}function b6e(n,e){switch(e.g){case 0:L(n.b,641)||(n.b=new Kxn);break;case 1:L(n.b,642)||(n.b=new RPn)}}function jRn(n){switch(n.g){case 0:return new w4n;default:throw T(new Gn(xP+(n.f!=null?n.f:""+n.g)))}}function ERn(n){switch(n.g){case 0:return new b4n;default:throw T(new Gn(xP+(n.f!=null?n.f:""+n.g)))}}function w6e(n,e,t){return!om(ut(new Cn(null,new On(n.c,16)),new Y3(new fTn(e,t)))).Bd((Va(),v3))}function MRn(n,e){return vp(g4(u(v(e,(lc(),pw)),88)),new V(n.c.e.a-n.b.e.a,n.c.e.b-n.b.e.b))<=0}function g6e(n,e){for(;n.g==null&&!n.c?iJ(n):n.g==null||n.i!=0&&u(n.g[n.i-1],51).Ob();)kle(e,MS(n))}function ld(n){var e,t;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),e.f.$b();Yfe(n.b,n),uqn(n)}function Sk(n){var e,t,i;for(e=new Tu,i=ge(n,0);i.b!=i.d.c;)t=u(be(i),8),wm(e,0,new rr(t));return e}function t4(n){var e;return V1(n),e=new NA,n.a.Bd(e)?(dm(),new wL(Jn(e.a))):(dm(),dm(),Oun)}function rY(n,e,t){switch(e){case 0:!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),CC(n.o,t);return}sR(n,e,t)}function q$(n,e,t){this.g=n,this.e=new Ni,this.f=new Ni,this.d=new Mt,this.b=new Mt,this.a=e,this.c=t}function U$(n,e,t,i){this.b=new Z,this.n=new Z,this.i=i,this.j=t,this.s=n,this.t=e,this.r=0,this.d=0}function i4(n,e){if(!n.Li()&&e==null)throw T(new Gn("The 'no null' constraint is violated"));return e}function t1(n){var e,t;for(e=0,t=0;t<n.length;t++)e=(e<<5)-e+(zn(t,n.length),n.charCodeAt(t))|0;return e}function TRn(n,e){var t,i,r;for(r=n.b;r;){if(t=n.a.Ne(e,r.d),t==0)return r;i=t<0?0:1,r=r.a[i]}return null}function p6e(n,e,t){var i,r;i=(_n(),!!vX(t)),r=u(e.xc(i),15),r||(r=new Z,e.zc(i,r)),r.Fc(t)}function m6e(n,e){var t,i;return t=u(z(n,(Bf(),Kj)),17).a,i=u(z(e,Kj),17).a,t==i||t<i?-1:t>i?1:0}function v6e(n){return nn(n.c,(qp(),bue)),sQ(n.a,$(B(rn((bx(),EO)))))?new evn:new Dkn(n)}function k6e(n){for(;!n.d||!n.d.Ob();)if(n.b&&!n6(n.b))n.d=u(Pp(n.b),51);else return null;return n.d}function cY(n){switch(n.g){case 1:return lVn;default:case 2:return 0;case 3:return QK;case 4:return Ern}}function y6e(){nt();var n;return PU||(n=_1e(fa("M",!0)),n=cT(fa("M",!1),n),PU=n,PU)}function NC(){NC=R,bU=new EM("ELK",0),Tdn=new EM("JSON",1),Mdn=new EM("DOT",2),Cdn=new EM("SVG",3)}function h5(){h5=R,XH=new WL("STACKED",0),zH=new WL("REVERSE_STACKED",1),Ij=new WL("SEQUENCED",2)}function l5(){l5=R,dln=new eN(kh,0),ZH=new eN("MIDDLE_TO_MIDDLE",1),Lj=new eN("AVOID_OVERLAP",2)}function r4(){r4=R,ysn=new Qgn,jsn=new Ygn,JZn=new Wgn,WZn=new Zgn,VZn=new Jgn,ksn=(Jn(VZn),new Obn)}function DC(){DC=R,fdn=new ob(15),Jue=new Di((He(),M1),fdn),y9=N3,cdn=Iue,udn=Hd,sdn=_2,odn=V0}function Dg(n,e){var t,i,r,c,s;for(i=e,r=0,c=i.length;r<c;++r)t=i[r],s=new QIn(n),t.hf(s),VIe(s);Hu(n.f)}function G$(n,e){var t;return e===n?!0:L(e,229)?(t=u(e,229),ct(n.Zb(),t.Zb())):!1}function uY(n,e){return tqn(n,e)?(In(n.b,u(v(e,(W(),Dl)),21),e),Re(n.a,e),!0):!1}function j6e(n){var e,t;e=u(v(n,(W(),Xu)),10),e&&(t=e.c,du(t.a,e),t.a.c.length==0&&du(Hi(e).b,t))}function E6e(n,e){return kt(n,(W(),dt))&&kt(e,dt)?u(v(e,dt),17).a-u(v(n,dt),17).a:0}function M6e(n,e){return kt(n,(W(),dt))&&kt(e,dt)?u(v(n,dt),17).a-u(v(e,dt),17).a:0}function CRn(n){return Uf?F(AQn,Jzn,581,0,0,1):u(Rf(n.a,F(AQn,Jzn,581,n.a.c.length,0,1)),856)}function T6e(n,e,t,i){return kT(),new fz(S(C(Id,1),WS,44,0,[(Dx(n,e),new tb(n,e)),(Dx(t,i),new tb(t,i))]))}function $g(n,e,t){var i,r;return r=(i=new hL,i),Tr(r,e,t),ve((!n.q&&(n.q=new q(Ps,n,11,10)),n.q),r),r}function z$(n){var e,t,i,r;for(r=ule(Coe,n),t=r.length,i=F(fn,J,2,t,6,1),e=0;e<t;++e)i[e]=r[e];return i}function oY(n,e){var t;e*2+1>=n.b.c.length||(oY(n,2*e+1),t=2*e+2,t<n.b.c.length&&oY(n,t),$_n(n,e))}function C6e(n,e){var t,i;for(i=ge(n,0);i.b!=i.d.c;)t=u(be(i),219),t.e.length>0&&(e.Cd(t),t.i&&E5e(t))}function sY(n,e,t){var i;for(i=t-1;i>=0&&n[i]===e[i];i--);return i<0?0:DL(vi(n[i],mr),vi(e[i],mr))?-1:1}function SRn(n,e,t){var i,r;this.g=n,this.c=e,this.a=this,this.d=this,r=oxn(t),i=F(sQn,Ey,227,r,0,1),this.b=i}function X$(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)if(Fg(n,c,s))return!0;return!1}function S6e(n,e){var t,i;for(i=n.Zb().Cc().Kc();i.Ob();)if(t=u(i.Pb(),16),t.Hc(e))return!0;return!1}function PRn(n,e,t){var i,r,c,s;for(Jn(t),s=!1,c=n.fd(e),r=t.Kc();r.Ob();)i=r.Pb(),c.Rb(i),s=!0;return s}function V$(n,e){var t,i;return i=u(Un(n.a,4),129),t=F(kU,TF,424,e,0,1),i!=null&&Oc(i,0,t,0,i.length),t}function IRn(n,e){var t;return t=new jR((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,e),n.e!=null||(t.c=n),t}function P6e(n,e){var t;return n===e?!0:L(e,85)?(t=u(e,85),lnn(Ja(n),t.vc())):!1}function ORn(n,e,t){var i,r;for(r=t.Kc();r.Ob();)if(i=u(r.Pb(),44),n.Be(e,i.md()))return!0;return!1}function ARn(n,e,t){return n.d[e.p][t.p]||(A9e(n,e,t),n.d[e.p][t.p]=!0,n.d[t.p][e.p]=!0),n.a[e.p][t.p]}function I6e(n,e){var t;return!n||n==e||!kt(e,(W(),uw))?!1:(t=u(v(e,(W(),uw)),10),t!=n)}function W$(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.$l()}}function LRn(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n._l()}}function NRn(n){kAn.call(this,"The given string does not match the expected format for individual spacings.",n)}function O6e(n,e){var t;e.Ug("Min Size Preprocessing",1),t=knn(n),ht(n,(_h(),s9),t.a),ht(n,UO,t.b),e.Vg()}function A6e(n){var e,t,i;for(e=0,i=F(Ei,J,8,n.b,0,1),t=ge(n,0);t.b!=t.d.c;)i[e++]=u(be(t),8);return i}function J$(n,e,t){var i,r,c;for(i=new Mt,c=ge(t,0);c.b!=c.d.c;)r=u(be(c),8),Re(i,new rr(r));PRn(n,e,i)}function L6e(n,e){var t;return t=nr(n,e),DL(BD(n,e),0)|CM(BD(n,t),0)?t:nr(jy,BD(G1(t,63),1))}function N6e(n,e){var t,i;return t=u(n.d.Bc(e),16),t?(i=n.e.hc(),i.Gc(t),n.e.d-=t.gc(),t.$b(),i):null}function DRn(n){var e;if(e=n.a.c.length,e>0)return jm(e-1,n.a.c.length),Yl(n.a,e-1);throw T(new Dyn)}function $Rn(n,e,t){if(n>e)throw T(new Gn(ZS+n+Qzn+e));if(n<0||e>t)throw T(new wz(ZS+n+Ttn+e+jtn+t))}function c4(n,e){n.D==null&&n.B!=null&&(n.D=n.B,n.B=null),j$(n,e==null?null:(Jn(e),e)),n.C&&n.hl(null)}function D6e(n,e){var t;t=rn((bx(),EO))!=null&&e.Sg()!=null?$(B(e.Sg()))/$(B(rn(EO))):1,Ve(n.b,e,t)}function fY(n,e){var t,i;if(i=n.c[e],i!=0)for(n.c[e]=0,n.d-=i,t=e+1;t<n.a.length;)n.a[t]-=i,t+=t&-t}function e0(n){var e;++n.j,n.i==0?n.g=null:n.i<n.g.length&&(e=n.g,n.g=n.aj(n.i),Oc(e,0,n.g,0,n.i))}function $6e(n,e,t){if(e<0)throw T(new Or(LVn+e));e<n.j.c.length?Go(n.j,e,t):($Ln(n,e),nn(n.j,t))}function xRn(n){if(!n.a||!(n.a.i&8))throw T(new Ar("Enumeration class expected for layout option "+n.f))}function hY(n){var e;return e=(!n.a&&(n.a=new q(Kl,n,9,5)),n.a),e.i!=0?rle(u(N(e,0),694)):null}function x6e(n){var e;for(Pe(n),OV(!0,"numberToAdvance must be nonnegative"),e=0;e<0&&pe(n);e++)fe(n);return e}function Q$(){Q$=R,oon=(QE(),d_),uon=new Tn(Ktn,oon),IYn=new lt(Btn),OYn=new lt(Ftn),AYn=new lt(_tn)}function a5(){a5=R,lq=new pM(Ztn,0),KO=new pM(bVn,1),hq=new pM("FAN",2),fq=new pM("CONSTRAINT",3)}function Pk(){Pk=R,FO=new tN(kh,0),Fln=new tN("RADIAL_COMPACTION",1),_ln=new tN("WEDGE_COMPACTION",2)}function u4(){u4=R,VH=new JL("CONSERVATIVE",0),zhn=new JL("CONSERVATIVE_SOFT",1),J8=new JL("SLOPPY",2)}function Gu(){Gu=R,Dun=new $L("CONCURRENT",0),Yr=new $L("IDENTITY_FINISH",1),S0=new $L("UNORDERED",2)}function Y$(){Y$=R,T_=lAn(S(C(k9,1),G,88,0,[(ci(),Kr),Xr])),C_=lAn(S(C(k9,1),G,88,0,[us,Wf]))}function wo(n){return Si(n)?fn:$w(n)?si:Dw(n)?zt:wW(n)||sW(n)?n.Rm:n.Rm||Array.isArray(n)&&C(fQn,1)||fQn}function R6e(n){return n?n.i&1?n==so?zt:n==ye?Gi:n==cg?ov:n==Ii?si:n==Ka?nw:n==V2?ew:n==Ru?p3:T8:n:null}function xg(n){return(n.c!=n.b.b||n.i!=n.g.b)&&(Sw(n.a.c,0),hi(n.a,n.b),hi(n.a,n.g),n.c=n.b.b,n.i=n.g.b),n.a}function K6e(n,e){var t,i;for(t=n.a.length-1;e!=n.b;)i=e-1&t,$t(n.a,e,n.a[i]),e=i;$t(n.a,n.b,null),n.b=n.b+1&t}function B6e(n,e){var t,i;for(t=n.a.length-1,n.c=n.c-1&t;e!=n.c;)i=e+1&t,$t(n.a,e,n.a[i]),e=i;$t(n.a,n.c,null)}function lY(n,e,t){var i,r;return zw(e,n.c.length),i=t.Pc(),r=i.length,r==0?!1:(UV(n.c,e,i),!0)}function RRn(n,e,t){var i,r,c,s;for(r=t,c=0,s=r.length;c<s;++c)if(i=r[c],n.b.Be(e,i.ld()))return i;return null}function Ik(n){var e,t,i,r,c;for(c=1,t=n,i=0,r=t.length;i<r;++i)e=t[i],c=31*c+(e!=null?mt(e):0),c=c|0;return c}function Me(n){var e,t,i,r,c;for(e={},i=n,r=0,c=i.length;r<c;++r)t=i[r],e[":"+(t.f!=null?t.f:""+t.g)]=t;return e}function F6e(n){var e,t;if(n==null)return null;for(e=0,t=n.length;e<t;e++)if(!OPn(n[e]))return n[e];return null}function Z$(n,e){return!n||e&&!n.j||L(n,127)&&u(n,127).a.b==0?0:n.jf()}function $C(n,e){return!n||e&&!n.k||L(n,127)&&u(n,127).a.a==0?0:n.kf()}function KRn(n,e){return kt(n,(W(),dt))&&kt(e,dt)?jc(u(v(n,dt),17).a,u(v(e,dt),17).a):0}function BRn(n){var e,t,i;for(i=0,t=new ie(ce(n.a.Kc(),new En));pe(t);)e=u(fe(t),18),e.c.i==e.d.i||++i;return i}function FRn(n,e){var t,i,r;for(r=e-n.f,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),315),$Kn(t,t.e,t.f+r);n.f=e}function ad(n,e){var t,i,r;i=n.Yk(e,null),r=null,e&&(r=(um(),t=new Jd,t),Bm(r,n.r)),i=Kf(n,r,i),i&&i.oj()}function _Rn(n,e){var t,i,r;t=n,r=0;do{if(t==e)return r;if(i=t.e,!i)throw T(new W9);t=Hi(i),++r}while(!0)}function _6e(n){var e,t,i,r;for(i=n.b.a,t=i.a.ec().Kc();t.Ob();)e=u(t.Pb(),567),r=new zHn(e,n.e,n.f),nn(n.g,r)}function H6e(n){var e;return e=new m$n(n),J7(n.a,AZn,new Fu(S(C(lj,1),Rn,382,0,[e]))),e.d&&nn(e.f,e.d),e.f}function HRn(n,e){var t;for(t=0;t<e.length;t++)if(n==(zn(t,e.length),e.charCodeAt(t)))return!0;return!1}function q6e(n,e){return e<n.length&&(zn(e,n.length),n.charCodeAt(e)!=63)&&(zn(e,n.length),n.charCodeAt(e)!=35)}function qRn(n,e,t,i){jCn(this),this.c=F(Qh,b1,10,n.a.c.length,0,1),this.e=e,Rf(n.a,this.c),this.f=t,this.b=i}function URn(n){Ljn(),$M(this),MT(this),this.e=n,bqn(this,n),this.g=n==null?gu:Jr(n),this.a="",this.b=n,this.a=""}function aY(){this.a=new l4n,this.f=new ykn(this),this.b=new jkn(this),this.i=new Ekn(this),this.e=new Mkn(this)}function GRn(){Jfe.call(this,new zJ(Qw(16))),Mo(2,Azn),this.b=2,this.a=new FW(null,null,0,null),V9(this.a,this.a)}function dY(n){throw F$(),T(new Ojn("Unexpected typeof result '"+n+"'; please report this bug to the GWT team"))}function nx(n,e,t){return y.Math.abs(e-n)<IP||y.Math.abs(t-n)<IP?!0:e-n>IP?n-t>IP:t-n>IP}function zRn(n,e){var t;for(t=0;t<e.length;t++)if(n==(zn(t,e.length),e.charCodeAt(t)))return!0;return!1}function U6e(n){var e,t;if(n==null)return!1;for(e=0,t=n.length;e<t;e++)if(!OPn(n[e]))return!1;return!0}function bY(n,e){var t,i,r;return i=!1,t=e.q.d,e.d<n.b&&(r=ten(e.q,n.b),e.q.d>r&&(jFn(e.q,r),i=t!=e.q.d)),i}function XRn(n,e){var t,i,r,c,s,f,h,l;return h=e.i,l=e.j,i=n.f,r=i.i,c=i.j,s=h-r,f=l-c,t=y.Math.sqrt(s*s+f*f),t}function wY(n,e){var t,i;return i=WC(n),i||(t=(UR(),$Hn(e)),i=new Eyn(t),ve(i.El(),n)),i}function Ok(n,e){var t,i;return t=u(n.c.Bc(e),16),t?(i=n.hc(),i.Gc(t),n.d-=t.gc(),t.$b(),n.mc(i)):n.jc()}function G6e(n,e){var t,i;for(i=to(n.d,1)!=0,t=!0;t;)t=!1,t=e.c.mg(e.e,i),t=t|oy(n,e,i,!1),i=!i;NQ(n)}function VRn(n,e,t,i){var r,c;n.a=e,c=i?0:1,n.f=(r=new o_n(n.c,n.a,t,c),new Fqn(t,n.a,r,n.e,n.b,n.c==(Ib(),Q8)))}function xC(n){var e;return oe(n.a!=n.b),e=n.d.a[n.a],jSn(n.b==n.d.c&&e!=null),n.c=n.a,n.a=n.a+1&n.d.a.length-1,e}function WRn(n){var e;if(n.c!=0)return n.c;for(e=0;e<n.a.length;e++)n.c=n.c*33+(n.a[e]&-1);return n.c=n.c*n.e,n.c}function z6e(n){var e;if(!(n.c.c<0?n.a>=n.c.b:n.a<=n.c.b))throw T(new nc);return e=n.a,n.a+=n.c.c,++n.b,Y(e)}function ex(n){var e;return e=new OX(n.a),Ur(e,n),U(e,(W(),st),n),e.o.a=n.g,e.o.b=n.f,e.n.a=n.i,e.n.b=n.j,e}function tx(n){return(en(),mu).Hc(n.j)?$(B(v(n,(W(),yv)))):cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a])).b}function X6e(n){var e;return e=AM(Mie),u(v(n,(W(),Hc)),21).Hc((pr(),kv))&&Fe(e,(Vi(),Ac),(tr(),RI)),e}function V6e(n){var e,t,i,r;for(r=new ni,i=new M(n);i.a<i.c.c.length;)t=u(E(i),27),e=wSe(t),Ki(r,e);return r}function W6e(n){var e,t;for(t=new M(n.r);t.a<t.c.c.length;)if(e=u(E(t),10),n.n[e.p]<=0)return e;return null}function J6e(n,e,t){var i,r;for(r=e.a.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),60),GOn(n,i,t))return!0;return!1}function Q6e(n,e,t,i){var r,c;for(c=n.Kc();c.Ob();)r=u(c.Pb(),72),r.n.a=e.a+(i.a-r.o.a)/2,r.n.b=e.b,e.b+=r.o.b+t}function Y6e(n,e,t){var i;i=new sHn(n,e),In(n.r,e.ag(),i),t&&!K6(n.u)&&(i.c=new sAn(n.d),nu(e.Rf(),new L9n(i)))}function Ec(n,e){var t;return Vr(n)&&Vr(e)&&(t=n-e,!isNaN(t))?t:OZ(Vr(n)?ds(n):n,Vr(e)?ds(e):e)}function gY(n,e){var t,i,r;for(r=1,t=n,i=e>=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function Z6e(n,e){var t,i,r;for(r=1,t=n,i=e>=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function ta(n,e){var t,i,r,c;return c=(r=n?WC(n):null,A_n((i=e,r&&r.Gl(),i))),c==e&&(t=WC(n),t&&t.Gl()),c}function JRn(n,e,t){var i,r;return r=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,0,r,e),t?t.nj(i):t=i),t}function QRn(n,e,t){var i,r;return r=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,3,r,e),t?t.nj(i):t=i),t}function pY(n,e,t){var i,r;return r=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,1,r,e),t?t.nj(i):t=i),t}function YRn(n){var e,t;if(n!=null)for(t=0;t<n.length;++t)e=n[t],e&&(u(e.g,379),e.i)}function n5e(n,e,t,i,r,c,s,f){var h;for(h=t;c<s;)h>=i||e<t&&f.Ne(n[e],n[h])<=0?$t(r,c++,n[e++]):$t(r,c++,n[h++])}function e5e(n,e,t,i,r){e==0||i==0||(e==1?r[i]=fZ(r,t,i,n[0]):i==1?r[e]=fZ(r,n,e,t[0]):EMe(n,t,r,e,i))}function t5e(n,e,t){var i,r,c,s;for(i=t/n.gc(),r=0,s=n.Kc();s.Ob();)c=u(s.Pb(),186),FRn(c,c.f+i*r),gke(c,e,i),++r}function i5e(n){var e,t,i;for(i=0,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),172),i=y.Math.max(i,e.g);return i}function r5e(n){var e,t,i;for(i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),219),e=t.c.kg()?t.f:t.a,e&&OOe(e,t.j)}function d5(){d5=R,xH=new zL("DUMMY_NODE_OVER",0),Ohn=new zL("DUMMY_NODE_UNDER",1),TO=new zL("EQUAL",2)}function Gp(){Gp=R,gdn=new lN("PARALLEL_NODE",0),Y0=new lN("HIERARCHICAL_NODE",1),aA=new lN("ROOT_NODE",2)}function jl(){jl=R,uA=new hN("INHERIT",0),T1=new hN("INCLUDE_CHILDREN",1),j9=new hN("SEPARATE_CHILDREN",2)}function mY(n,e){switch(e){case 1:!n.n&&(n.n=new q(Sr,n,1,7)),me(n.n);return;case 2:zm(n,null);return}XQ(n,e)}function ZRn(n){switch(n.g){case 0:return new u4n;case 1:return new s4n;case 2:return new o4n;default:return null}}function i1(n){switch(oh(),n.c){case 0:return wD(),iun;case 1:return new lp(K_n(new dp(n)));default:return new Sjn(n)}}function nKn(n){switch(oh(),n.gc()){case 0:return wD(),iun;case 1:return new lp(n.Kc().Pb());default:return new xz(n)}}function RC(n){var e;switch(n.gc()){case 0:return qF;case 1:return new VN(Pe(n.Xb(0)));default:return e=n,new ID(e)}}function Y(n){var e,t;return n>-129&&n<128?(xPn(),e=n+128,t=wun[e],!t&&(t=wun[e]=new pG(n)),t):new pG(n)}function o4(n){var e,t;return n>-129&&n<128?(ZPn(),e=n+128,t=vun[e],!t&&(t=vun[e]=new vG(n)),t):new vG(n)}function eKn(n,e){var t;n.a.c.length>0&&(t=u(sn(n.a,n.a.c.length-1),579),uY(t,e))||nn(n.a,new vNn(e))}function c5e(n){Rs();var e,t;e=n.d.c-n.e.c,t=u(n.g,154),nu(t.b,new g7n(e)),nu(t.c,new p7n(e)),qi(t.i,new m7n(e))}function tKn(n){var e;return e=new R1,e.a+="VerticalSegment ",Lc(e,n.e),e.a+=" ",Be(e,RX(new yL,new M(n.k))),e.a}function ix(n,e){var t,i,r;for(t=0,r=uc(n,e).Kc();r.Ob();)i=u(r.Pb(),12),t+=v(i,(W(),Xu))!=null?1:0;return t}function Rg(n,e,t){var i,r,c;for(i=0,c=ge(n,0);c.b!=c.d.c&&(r=$(B(be(c))),!(r>t));)r>=e&&++i;return i}function iKn(n,e){Pe(n);try{return n._b(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return!1;throw T(t)}}function vY(n,e){Pe(n);try{return n.Hc(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return!1;throw T(t)}}function u5e(n,e){Pe(n);try{return n.Mc(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return!1;throw T(t)}}function t0(n,e){Pe(n);try{return n.xc(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return null;throw T(t)}}function o5e(n,e){Pe(n);try{return n.Bc(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return null;throw T(t)}}function b5(n,e){switch(e.g){case 2:case 1:return uc(n,e);case 3:case 4:return Qo(uc(n,e))}return Ln(),Ln(),sr}function w5(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (name: ",Er(e,n.zb),e.a+=")",e.a)}function s5e(n){var e;return e=u(Df(n.c.c,""),233),e||(e=new Dp(cm(rm(new tp,""),"Other")),s1(n.c.c,"",e)),e}function kY(n,e,t){var i,r;return r=n.sb,n.sb=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,4,r,e),t?t.nj(i):t=i),t}function yY(n,e,t){var i,r;return r=n.r,n.r=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,8,r,n.r),t?t.nj(i):t=i),t}function f5e(n,e,t){var i,r;return i=new ml(n.e,4,13,(r=e.c,r||(An(),Zf)),null,f1(n,e),!1),t?t.nj(i):t=i,t}function h5e(n,e,t){var i,r;return i=new ml(n.e,3,13,null,(r=e.c,r||(An(),Zf)),f1(n,e),!1),t?t.nj(i):t=i,t}function r1(n,e){var t,i;return t=u(e,691),i=t.el(),!i&&t.fl(i=L(e,90)?new $Tn(n,u(e,29)):new rLn(n,u(e,156))),i}function Ak(n,e,t){var i;n._i(n.i+1),i=n.Zi(e,t),e!=n.i&&Oc(n.g,e,n.g,e+1,n.i-e),$t(n.g,e,i),++n.i,n.Mi(e,t),n.Ni()}function l5e(n,e){var t;return e.a&&(t=e.a.a.length,n.a?Be(n.a,n.b):n.a=new mo(n.d),lLn(n.a,e.a,e.d.length,t)),n}function a5e(n,e){var t;n.c=e,n.a=p8e(e),n.a<54&&(n.f=(t=e.d>1?fLn(e.a[0],e.a[1]):fLn(e.a[0],0),id(e.e>0?t:n1(t))))}function Lk(n,e){var t;return t=new NA,n.a.Bd(t)?(dm(),new wL(Jn(UDn(n,t.a,e)))):(V1(n),dm(),dm(),Oun)}function rKn(n,e){var t;n.c.length!=0&&(t=u(Rf(n,F(Qh,b1,10,n.c.length,0,1)),199),jX(t,new ign),Y_n(t,e))}function cKn(n,e){var t;n.c.length!=0&&(t=u(Rf(n,F(Qh,b1,10,n.c.length,0,1)),199),jX(t,new rgn),Y_n(t,e))}function ct(n,e){return Si(n)?Sn(n,e):$w(n)?ZSn(n,e):Dw(n)?(Jn(n),x(n)===x(e)):wW(n)?n.Fb(e):sW(n)?QTn(n,e):sJ(n,e)}function Wo(n,e,t){if(e<0)Cnn(n,t);else{if(!t.rk())throw T(new Gn(wa+t.xe()+a8));u(t,69).wk().Ek(n,n.hi(),e)}}function uKn(n,e,t){if(n<0||e>t)throw T(new Or(ZS+n+Ttn+e+", size: "+t));if(n>e)throw T(new Gn(ZS+n+Qzn+e))}function oKn(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (source: ",Er(e,n.d),e.a+=")",e.a)}function sKn(n){return n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function d5e(n){VS();var e,t,i,r;for(t=jx(),i=0,r=t.length;i<r;++i)if(e=t[i],qr(e.a,n,0)!=-1)return e;return h_}function b5e(n,e){var t,i,r,c;if(e.ej(n.a),c=u(Un(n.a,8),2035),c!=null)for(t=c,i=0,r=t.length;i<r;++i)null.Um()}function c1(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&rt(n,new Bs(n,1,2,t,e))}function jY(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&rt(n,new Bs(n,1,8,t,e))}function KC(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&rt(n,new Bs(n,1,8,t,e))}function u1(n,e){var t;t=(n.Bb&512)!=0,e?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&rt(n,new Bs(n,1,3,t,e))}function EY(n,e){var t;t=(n.Bb&512)!=0,e?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&rt(n,new Bs(n,1,9,t,e))}function w5e(n,e,t){var i,r;return r=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,5,r,n.a),t?UZ(t,i):t=i),t}function g5(n,e){var t;return n.b==-1&&n.a&&(t=n.a.pk(),n.b=t?n.c.Hh(n.a.Lj(),t):At(n.c.Dh(),n.a)),n.c.yh(n.b,e)}function fKn(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)if(t=u(ue(i),29),x(e)===x(t))return!0;return!1}function MY(n){var e,t;return e=n.k,e==(Vn(),Zt)?(t=u(v(n,(W(),gc)),64),t==(en(),Xn)||t==ae):!1}function hKn(n){var e;return e=bJ(n),cb(e.a,0)?(Ow(),Ow(),ZF):(Ow(),new SN(NL(e.a,0)?KJ(e)/id(e.a):0))}function Nk(n,e){this.e=e,this.a=Jxn(n),this.a<54?this.f=id(n):this.c=(dh(),Ec(n,0)>=0?ra(n):H6(ra(n1(n))))}function lKn(n,e,t,i,r,c){this.e=new Z,this.f=(gr(),W8),nn(this.e,n),this.d=e,this.a=t,this.b=i,this.f=r,this.c=c}function g5e(n,e,t){n.n=Wa(Ka,[J,PK],[376,28],14,[t,wi(y.Math.ceil(e/32))],2),n.o=e,n.p=t,n.j=e-1>>1,n.k=t-1>>1}function aKn(n){return n-=n>>1&1431655765,n=(n>>2&858993459)+(n&858993459),n=(n>>4)+n&252645135,n+=n>>8,n+=n>>16,n&63}function dKn(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)if(t=u(ue(i),142),x(e)===x(t))return!0;return!1}function p5e(n,e,t){var i,r,c;return c=(r=M4(n.b,e),r),c&&(i=u(qS(fk(n,c),""),29),i)?Vnn(n,i,e,t):null}function rx(n,e,t){var i,r,c;return c=(r=M4(n.b,e),r),c&&(i=u(qS(fk(n,c),""),29),i)?Wnn(n,i,e,t):null}function m5e(n,e){var t;if(t=Ng(n.i,e),t==null)throw T(new eh("Node did not exist in input."));return FQ(e,t),null}function v5e(n,e){var t;if(t=uy(n,e),L(t,331))return u(t,35);throw T(new Gn(wa+e+"' is not a valid attribute"))}function p5(n,e,t){var i;if(i=n.gc(),e>i)throw T(new Fw(e,i));if(n.Si()&&n.Hc(t))throw T(new Gn(Xy));n.Gi(e,t)}function k5e(n,e){e.Ug("Sort end labels",1),Ut(ut(rc(new Cn(null,new On(n.b,16)),new _0n),new H0n),new q0n),e.Vg()}function ci(){ci=R,Jf=new p7(Y5,0),Xr=new p7(f3,1),Kr=new p7(s3,2),Wf=new p7(_K,3),us=new p7("UP",4)}function Dk(){Dk=R,XO=new sN("P1_STRUCTURE",0),VO=new sN("P2_PROCESSING_ORDER",1),WO=new sN("P3_EXECUTION",2)}function bKn(){bKn=R,Bre=ah(ah(s6(ah(ah(s6(Fe(new ii,(Qp(),n9),(K5(),YH)),e9),fln),lln),t9),cln),aln)}function y5e(n){switch(u(v(n,(W(),Ad)),311).g){case 1:U(n,Ad,(vl(),E3));break;case 2:U(n,Ad,(vl(),k2))}}function j5e(n){switch(n){case 0:return new ijn;case 1:return new ejn;case 2:return new tjn;default:throw T(new W9)}}function wKn(n){switch(n.g){case 2:return Xr;case 1:return Kr;case 4:return Wf;case 3:return us;default:return Jf}}function TY(n,e){switch(n.b.g){case 0:case 1:return e;case 2:case 3:return new Ho(e.d,0,e.a,e.b);default:return null}}function CY(n){switch(n.g){case 1:return Wn;case 2:return Xn;case 3:return Zn;case 4:return ae;default:return sc}}function $k(n){switch(n.g){case 1:return ae;case 2:return Wn;case 3:return Xn;case 4:return Zn;default:return sc}}function BC(n){switch(n.g){case 1:return Zn;case 2:return ae;case 3:return Wn;case 4:return Xn;default:return sc}}function SY(n,e,t,i){switch(e){case 1:return!n.n&&(n.n=new q(Sr,n,1,7)),n.n;case 2:return n.k}return vZ(n,e,t,i)}function m5(n,e,t){var i,r;return n.Pj()?(r=n.Qj(),i=lR(n,e,t),n.Jj(n.Ij(7,Y(t),i,e,r)),i):lR(n,e,t)}function cx(n,e){var t,i,r;n.d==null?(++n.e,--n.f):(r=e.ld(),t=e.Bi(),i=(t&et)%n.d.length,ome(n,i,BHn(n,i,t,r)))}function s4(n,e){var t;t=(n.Bb&Gs)!=0,e?n.Bb|=Gs:n.Bb&=-1025,n.Db&4&&!(n.Db&1)&&rt(n,new Bs(n,1,10,t,e))}function f4(n,e){var t;t=(n.Bb&v0)!=0,e?n.Bb|=v0:n.Bb&=-4097,n.Db&4&&!(n.Db&1)&&rt(n,new Bs(n,1,12,t,e))}function h4(n,e){var t;t=(n.Bb&$u)!=0,e?n.Bb|=$u:n.Bb&=-8193,n.Db&4&&!(n.Db&1)&&rt(n,new Bs(n,1,15,t,e))}function l4(n,e){var t;t=(n.Bb&C0)!=0,e?n.Bb|=C0:n.Bb&=-2049,n.Db&4&&!(n.Db&1)&&rt(n,new Bs(n,1,11,t,e))}function E5e(n){var e;n.g&&(e=n.c.kg()?n.f:n.a,sen(e.a,n.o,!0),sen(e.a,n.o,!1),U(n.o,(cn(),_t),(Ai(),Ud)))}function M5e(n){var e;if(!n.a)throw T(new Ar("Cannot offset an unassigned cut."));e=n.c-n.b,n.b+=e,FOn(n,e),BOn(n,e)}function T5e(n,e){var t;if(t=ee(n.k,e),t==null)throw T(new eh("Port did not exist in input."));return FQ(e,t),null}function C5e(n){var e,t;for(t=xHn(jo(n)).Kc();t.Ob();)if(e=Ae(t.Pb()),B5(n,e))return S3e((pMn(),Koe),e);return null}function gKn(n){var e,t;for(t=n.p.a.ec().Kc();t.Ob();)if(e=u(t.Pb(),218),e.f&&n.b[e.c]<-1e-10)return e;return null}function S5e(n){var e,t;for(t=X1(new R1,91),e=!0;n.Ob();)e||(t.a+=ur),e=!1,Lc(t,n.Pb());return(t.a+="]",t).a}function P5e(n){var e,t,i;for(e=new Z,i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),602),hi(e,u(t.Cf(),16));return e}function ux(n,e){var t,i;for(i=new M(e);i.a<i.c.c.length;)t=u(E(i),42),du(n.b.b,t.b),Age(u(t.a,194),u(t.b,86))}function I5e(n,e){var t;return t=bt(n.b.c,e.b.c),t!=0||(t=bt(n.a.a,e.a.a),t!=0)?t:bt(n.a.b,e.a.b)}function bt(n,e){return n<e?-1:n>e?1:n==e?n==0?bt(1/n,1/e):0:isNaN(n)?isNaN(e)?0:1:-1}function O5e(n){var e;return e=n.a[n.c-1&n.a.length-1],e==null?null:(n.c=n.c-1&n.a.length-1,$t(n.a,n.c,null),e)}function A5e(n){var e,t,i;for(i=0,t=n.length,e=0;e<t;e++)n[e]==32||n[e]==13||n[e]==10||n[e]==9||(n[i++]=n[e]);return i}function L5e(n,e){var t,i,r,c,s;for(s=ru(n.e.Dh(),e),c=0,t=u(n.g,124),r=0;r<n.i;++r)i=t[r],s.am(i.Lk())&&++c;return c}function N5e(n,e,t){var i,r;for(r=L(e,102)&&u(e,19).Bb&hr?new dN(e,n):new Qm(e,n),i=0;i<t;++i)iS(r);return r}function pKn(n,e,t){var i,r;if(n.c)inn(n.c,e,t);else for(r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),163),pKn(i,e,t)}function D5e(n,e,t){var i,r;return i=u(e.of(n.a),34),r=u(t.of(n.a),34),i!=null&&r!=null?pk(i,r):i!=null?-1:r!=null?1:0}function PY(n,e){var t,i,r;for(Jn(e),t=!1,i=new M(n);i.a<i.c.c.length;)r=E(i),e.Hc(r)&&(_6(i),t=!0);return t}function yn(n){var e,t,i,r;return t=(e=u(of((i=n.Rm,r=i.f,r==ke?i:r)),9),new _o(e,u(xs(e,e.length),9),0)),_s(t,n),t}function FC(n){var e,t;return t=u(v(n,(cn(),Lo)),88),t==(ci(),Jf)?(e=$(B(v(n,oO))),e>=1?Xr:Wf):t}function $5e(n){switch(u(v(n,(cn(),$l)),223).g){case 1:return new Ppn;case 3:return new Npn;default:return new Spn}}function ia(n){if(n.c)ia(n.c);else if(n.d)throw T(new Ar("Stream already terminated, can't be modified or used"))}function Nb(n,e,t){var i;return i=n.a.get(e),n.a.set(e,t===void 0?null:t),i===void 0?(++n.c,++n.b.g):++n.d,i}function x5e(n,e,t){var i,r;for(r=n.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),10),jk(t,u(sn(e,i.p),16)))return i;return null}function IY(n,e,t){var i;return i=0,e&&(vg(n.a)?i+=e.f.a/2:i+=e.f.b/2),t&&(vg(n.a)?i+=t.f.a/2:i+=t.f.b/2),i}function R5e(n,e,t){var i;i=t,!i&&(i=JV(new op,0)),i.Ug(IXn,2),yBn(n.b,e,i.eh(1)),YOe(n,e,i.eh(1)),eNe(e,i.eh(1)),i.Vg()}function OY(n,e,t){var i,r;return i=(B1(),r=new kE,r),aC(i,e),lC(i,t),n&&ve((!n.a&&(n.a=new ti(xo,n,5)),n.a),i),i}function ox(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (identifier: ",Er(e,n.k),e.a+=")",e.a)}function sx(n,e){var t;t=(n.Bb&kc)!=0,e?n.Bb|=kc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&rt(n,new Bs(n,1,18,t,e))}function AY(n,e){var t;t=(n.Bb&kc)!=0,e?n.Bb|=kc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&rt(n,new Bs(n,1,18,t,e))}function a4(n,e){var t;t=(n.Bb&wh)!=0,e?n.Bb|=wh:n.Bb&=-16385,n.Db&4&&!(n.Db&1)&&rt(n,new Bs(n,1,16,t,e))}function LY(n,e){var t;t=(n.Bb&hr)!=0,e?n.Bb|=hr:n.Bb&=-65537,n.Db&4&&!(n.Db&1)&&rt(n,new Bs(n,1,20,t,e))}function NY(n){var e;return e=F(fs,gh,28,2,15,1),n-=hr,e[0]=(n>>10)+Sy&ui,e[1]=(n&1023)+56320&ui,ws(e,0,e.length)}function K5e(n){var e;return e=s0(n),e>34028234663852886e22?Pt:e<-34028234663852886e22?li:e}function nr(n,e){var t;return Vr(n)&&Vr(e)&&(t=n+e,Cy<t&&t<vd)?t:Z1(Gve(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function er(n,e){var t;return Vr(n)&&Vr(e)&&(t=n*e,Cy<t&&t<vd)?t:Z1(FOe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function bs(n,e){var t;return Vr(n)&&Vr(e)&&(t=n-e,Cy<t&&t<vd)?t:Z1(Qxn(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function uc(n,e){var t;return n.i||Tnn(n),t=u(Mr(n.g,e),42),t?new Jl(n.j,u(t.a,17).a,u(t.b,17).a):(Ln(),Ln(),sr)}function B5e(n){return Y$(),_n(),!!(kKn(u(n.a,86).j,u(n.b,88))||u(n.a,86).d.e!=0&&kKn(u(n.a,86).j,u(n.b,88)))}function F5e(n,e){return Sn(e.b&&e.c?td(e.b)+"->"+td(e.c):"e_"+mt(e),n.b&&n.c?td(n.b)+"->"+td(n.c):"e_"+mt(n))}function _5e(n,e){return Sn(e.b&&e.c?td(e.b)+"->"+td(e.c):"e_"+mt(e),n.b&&n.c?td(n.b)+"->"+td(n.c):"e_"+mt(n))}function Db(n,e){return Cf(),Fs(ha),y.Math.abs(n-e)<=ha||n==e||isNaN(n)&&isNaN(e)?0:n<e?-1:n>e?1:ub(isNaN(n),isNaN(e))}function El(){El=R,fU=new vM(Y5,0),Qj=new vM("POLYLINE",1),Kv=new vM("ORTHOGONAL",2),x3=new vM("SPLINES",3)}function _C(){_C=R,f1n=new uN("ASPECT_RATIO_DRIVEN",0),Oq=new uN("MAX_SCALE_DRIVEN",1),s1n=new uN("AREA_DRIVEN",2)}function H5e(n,e,t){var i;try{l6e(n,e,t)}catch(r){throw r=Ot(r),L(r,606)?(i=r,T(new NJ(i))):T(r)}return e}function q5e(n){var e,t,i;for(t=0,i=n.length;t<i;t++)if(n[t]==null)throw T(new fp("at index "+t));return e=n,new Fu(e)}function Ml(n){var e,t,i;for(e=new Z,i=new M(n.j);i.a<i.c.c.length;)t=u(E(i),12),nn(e,t.b);return Pe(e),new T6(e)}function ji(n){var e,t,i;for(e=new Z,i=new M(n.j);i.a<i.c.c.length;)t=u(E(i),12),nn(e,t.e);return Pe(e),new T6(e)}function Qt(n){var e,t,i;for(e=new Z,i=new M(n.j);i.a<i.c.c.length;)t=u(E(i),12),nn(e,t.g);return Pe(e),new T6(e)}function U5e(n,e){var t,i,r;for(r=new de,i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),Ve(r,t.ld(),Pve(n,u(t.md(),15)));return r}function G5e(n){var e,t;for(t=DMe(jo(Gw(n))).Kc();t.Ob();)if(e=Ae(t.Pb()),B5(n,e))return P3e((wMn(),Boe),e);return null}function fx(n,e){var t,i,r;for(r=0,i=u(e.Kb(n),20).Kc();i.Ob();)t=u(i.Pb(),18),on(un(v(t,(W(),zf))))||++r;return r}function mKn(n){var e,t,i,r;for(e=new zSn(n.Rd().gc()),r=0,i=Fp(n.Rd().Kc());i.Ob();)t=i.Pb(),I2e(e,t,Y(r++));return Pje(e.a)}function hx(n,e,t,i){var r,c;return Jn(i),Jn(t),r=n.xc(e),c=r==null?t:rMn(u(r,15),u(t,16)),c==null?n.Bc(e):n.zc(e,c),c}function z5e(n,e,t,i){var r,c,s;for(r=e+1;r<t;++r)for(c=r;c>e&&i.Ne(n[c-1],n[c])>0;--c)s=n[c],$t(n,c,n[c-1]),$t(n,c-1,s)}function vn(n,e){var t,i,r,c,s;if(t=e.f,s1(n.c.d,t,e),e.g!=null)for(r=e.g,c=0,s=r.length;c<s;++c)i=r[c],s1(n.c.e,i,e)}function vKn(n,e){var t,i;for(t=ge(n,0);t.b!=t.d.c;){if(i=J9(B(be(t))),i==e)return;if(i>e){bLn(t);break}}_7(t,e)}function X5e(n,e){var t,i,r;i=Ig(e),r=$(B(r0(i,(cn(),Ws)))),t=y.Math.max(0,r/2-.5),S5(e,t,1),nn(n,new NMn(e,t))}function V5e(n,e,t){var i;t.Ug("Straight Line Edge Routing",1),t.dh(e,Nrn),i=u(z(e,(Cg(),L2)),27),iGn(n,i),t.dh(e,LP)}function DY(n,e){n.n.c.length==0&&nn(n.n,new DT(n.s,n.t,n.i)),nn(n.b,e),bZ(u(sn(n.n,n.n.c.length-1),209),e),BUn(n,e)}function v5(n){var e;this.a=(e=u(n.e&&n.e(),9),new _o(e,u(xs(e,e.length),9),0)),this.b=F(ki,Rn,1,this.a.a.length,5,1)}function Jr(n){var e;return Array.isArray(n)&&n.Tm===Q2?Xa(wo(n))+"@"+(e=mt(n)>>>0,e.toString(16)):n.toString()}function W5e(n,e){return n.h==Ty&&n.m==0&&n.l==0?(e&&(ga=Yc(0,0,0)),ZTn((Km(),fun))):(e&&(ga=Yc(n.l,n.m,n.h)),Yc(0,0,0))}function J5e(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function kKn(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function $Y(n,e,t,i){switch(e){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return SY(n,e,t,i)}function HC(n,e){if(e==n.d)return n.e;if(e==n.e)return n.d;throw T(new Gn("Node "+e+" not part of edge "+n))}function Q5e(n,e){var t;if(t=uy(n.Dh(),e),L(t,102))return u(t,19);throw T(new Gn(wa+e+"' is not a valid reference"))}function Jo(n,e,t,i){if(e<0)Znn(n,t,i);else{if(!t.rk())throw T(new Gn(wa+t.xe()+a8));u(t,69).wk().Ck(n,n.hi(),e,i)}}function eo(n){var e;if(n.b){if(eo(n.b),n.b.d!=n.c)throw T(new Ko)}else n.d.dc()&&(e=u(n.f.c.xc(n.e),16),e&&(n.d=e))}function Y5e(n){Kw();var e,t,i,r;for(e=n.o.b,i=u(u(ot(n.r,(en(),ae)),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r=t.e,r.b+=e}function Z5e(n){var e,t,i;for(this.a=new rh,i=new M(n);i.a<i.c.c.length;)t=u(E(i),16),e=new rIn,Z4e(e,t),fi(this.a,e)}function n8e(n,e){var t,i,r;for(i=ePe(n,e),r=i[i.length-1]/2,t=0;t<i.length;t++)if(i[t]>=r)return e.c+t;return e.c+e.b.gc()}function e8e(n,e){pm();var t,i,r,c;for(i=LDn(n),r=e,xm(i,0,i.length,r),t=0;t<i.length;t++)c=H7e(n,i[t],t),t!=c&&m5(n,t,c)}function lx(n,e,t){var i,r;for(i=0,r=n.length;i<r;i++)if(B$((zn(i,n.length),n.charCodeAt(i)),e,t))return!0;return!1}function t8e(n,e){var t,i;for(i=n.e.a.ec().Kc();i.Ob();)if(t=u(i.Pb(),272),fje(e,t.d)||mEe(e,t.d))return!0;return!1}function xY(n,e,t,i,r){var c,s,f;for(s=r;e.b!=e.c;)c=u(Pp(e),10),f=u(uc(c,i).Xb(0),12),n.d[f.p]=s++,Bn(t.c,f);return s}function RY(n,e){var t,i,r,c,s,f;for(i=0,t=0,c=e,s=0,f=c.length;s<f;++s)r=c[s],r>0&&(i+=r,++t);return t>1&&(i+=n.d*(t-1)),i}function i8e(n){var e,t,i,r,c;return c=ZZ(n),t=Z9(n.c),i=!t,i&&(r=new _a,bf(c,"knownLayouters",r),e=new hyn(r),qi(n.c,e)),c}function KY(n){var e,t,i;for(i=new Hl,i.a+="[",e=0,t=n.gc();e<t;)Er(i,I6(n.Vi(e))),++e<t&&(i.a+=ur);return i.a+="]",i.a}function r8e(n){return n.e==null?n:(!n.c&&(n.c=new jR((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,null)),n.c)}function c8e(n){return n.k!=(Vn(),Xt)?!1:Ag(new Cn(null,new wb(new ie(ce(Qt(n).a.Kc(),new En)))),new ppn)}function Qo(n){var e,t;return L(n,306)?(t=tme(u(n,306)),e=t,e):L(n,441)?u(n,441).a:L(n,59)?new Pjn(n):new Iz(n)}function u8e(n){var e;return n==null?!0:(e=n.length,e>0&&(zn(e-1,n.length),n.charCodeAt(e-1)==58)&&!lx(n,A9,L9))}function BY(n,e){var t;return x(n)===x(e)?!0:L(e,92)?(t=u(e,92),n.e==t.e&&n.d==t.d&&O3e(n,t.a)):!1}function zp(n){switch(en(),n.g){case 4:return Xn;case 1:return Zn;case 3:return ae;case 2:return Wn;default:return sc}}function o8e(n){var e,t;if(n.b)return n.b;for(t=Uf?null:n.d;t;){if(e=Uf?null:t.b,e)return e;t=Uf?null:t.d}return lm(),Nun}function FY(n){var e,t,i;for(i=$(B(n.a.of((He(),iA)))),t=new M(n.a.Sf());t.a<t.c.c.length;)e=u(E(t),695),tzn(n,e,i)}function s8e(n){var e,t,i,r;for(e=(n.j==null&&(n.j=(Om(),r=XF.me(n),Cke(r))),n.j),t=0,i=e.length;t<i;++t);}function ax(n,e){var t,i;for(i=new M(e);i.a<i.c.c.length;)t=u(E(i),42),nn(n.b.b,u(t.b,86)),_D(u(t.a,194),u(t.b,86))}function f8e(n,e,t){var i,r;for(r=n.a.b,i=r.c.length;i<t;i++)ab(r,0,new Nc(n.a));$i(e,u(sn(r,r.c.length-t),30)),n.b[e.p]=t}function h8e(n,e,t,i,r){ko(),qs(Ns(Ls(As(Ds(new hs,0),r.d.e-n),e),r.d)),qs(Ns(Ls(As(Ds(new hs,0),t-r.a.e),r.a),i))}function yKn(n,e){var t;return n.d?Zc(n.b,e)?u(ee(n.b,e),47):(t=e.dg(),Ve(n.b,e,t),t):e.dg()}function l8e(n){var e=n.e;function t(i){return!i||i.length==0?"":" "+i.join(`
`)}return e&&(e.stack||t(n[oK]))}function _Y(n,e){switch(e){case 3:return n.f!=0;case 4:return n.g!=0;case 5:return n.i!=0;case 6:return n.j!=0}return _Q(n,e)}function jKn(n){switch(n.g){case 0:return new Vmn;case 1:return new Qmn;default:throw T(new Gn(cB+(n.f!=null?n.f:""+n.g)))}}function a8e(n){switch(n.g){case 0:return new Wmn;case 1:return new Jmn;default:throw T(new Gn(GB+(n.f!=null?n.f:""+n.g)))}}function d8e(n){switch(n.g){case 1:return new _mn;case 2:return new sSn;default:throw T(new Gn(GB+(n.f!=null?n.f:""+n.g)))}}function EKn(n){switch(n.g){case 0:return new iz;case 1:return new rjn;default:throw T(new Gn(xP+(n.f!=null?n.f:""+n.g)))}}function dx(){YZ();var n,e,t;t=hDe+++Date.now(),n=wi(y.Math.floor(t*Iy))&YS,e=wi(t-n*ytn),this.a=n^1502,this.b=e^NK}function Yo(){Yo=R,jj=new h7(kh,0),B8=new h7("FIRST",1),ja=new h7(GXn,2),F8=new h7("LAST",3),x0=new h7(zXn,4)}function qC(){qC=R,dU=new jM(yrn,0),kdn=new jM("GROUP_DEC",1),jdn=new jM("GROUP_MIXED",2),ydn=new jM("GROUP_INC",3)}function b8e(n,e){var t,i,r,c;e&&(r=yl(e,"x"),t=new eyn(n),_m(t.a,(Jn(r),r)),c=yl(e,"y"),i=new iyn(n),qm(i.a,(Jn(c),c)))}function w8e(n,e){var t,i,r,c;e&&(r=yl(e,"x"),t=new cyn(n),Fm(t.a,(Jn(r),r)),c=yl(e,"y"),i=new uyn(n),Hm(i.a,(Jn(c),c)))}function g8e(n,e){var t,i,r,c;for(r=new Gc(e.gc()),i=e.Kc();i.Ob();)t=i.Pb(),c=OR(n,u(t,58)),c&&Bn(r.c,c);return r}function i0(n,e,t){var i,r;for(r=n.Kc();r.Ob();)if(i=r.Pb(),x(e)===x(i)||e!=null&&ct(e,i))return t&&r.Qb(),!0;return!1}function MKn(n){var e,t,i;return t=n.jh(),t?(e=n.Eh(),L(e,167)&&(i=MKn(u(e,167)),i!=null)?i+"."+t:t):null}function p8e(n){var e,t,i;return n.e==0?0:(e=n.d<<5,t=n.a[n.d-1],n.e<0&&(i=Ixn(n),i==n.d-1&&(--t,t=t|0)),e-=ty(t),e)}function m8e(n){var e,t,i;return n<fI.length?fI[n]:(t=n>>5,e=n&31,i=F(ye,_e,28,t+1,15,1),i[t]=1<<e,new Ya(1,t+1,i))}function TKn(n,e){var t,i;if(e){for(t=0;t<n.i;++t)if(i=u(n.g[t],378),i.mj(e))return!1;return ve(n,e)}else return!1}function HY(n,e,t){var i,r;if(++n.j,t.dc())return!1;for(r=t.Kc();r.Ob();)i=r.Pb(),n.qj(e,n.Zi(e,i)),++e;return!0}function v8e(n,e,t,i){var r,c;if(c=t-e,c<3)for(;c<3;)n*=10,++c;else{for(r=1;c>3;)r*=10,--c;n=(n+(r>>1))/r|0}return i.i=n,!0}function At(n,e){var t,i,r;if(t=(n.i==null&&bh(n),n.i),i=e.Lj(),i!=-1){for(r=t.length;i<r;++i)if(t[i]==e)return i}return-1}function k8e(n){var e,t,i,r,c;for(t=u(n.g,689),i=n.i-1;i>=0;--i)for(e=t[i],r=0;r<i;++r)if(c=t[r],LUn(n,e,c)){Jp(n,i);break}}function qY(n){var e,t,i,r;for(e=new _a,r=new W3(n.b.Kc());r.b.Ob();)i=u(r.b.Pb(),701),t=xje(i),j0e(e,e.a.length,t);return e.a}function UY(n){var e;return!n.c&&(n.c=new gwn),Yt(n.d,new mwn),vSe(n),e=hSe(n),Ut(new Cn(null,new On(n.d,16)),new N9n(n)),e}function y8e(n,e){e.Ug("End label post-processing",1),Ut(ut(rc(new Cn(null,new On(n.b,16)),new N0n),new D0n),new $0n),e.Vg()}function GY(n){bx(),this.c=Af(S(C(IDe,1),Rn,845,0,[Jte])),this.b=new de,this.a=n,Ve(this.b,EO,1),nu(Qte,new Nkn(this))}function CKn(n,e,t){_$n(),Zyn.call(this),this.a=Wa(zQn,[J,Ltn],[603,217],0,[dI,f_],2),this.c=new mp,this.g=n,this.f=e,this.d=t}function zY(n,e){this.n=Wa(Ka,[J,PK],[376,28],14,[e,wi(y.Math.ceil(n/32))],2),this.o=n,this.p=e,this.j=n-1>>1,this.k=e-1>>1}function j8e(n){YT(),u(n.of((He(),Sa)),181).Hc((io(),hA))&&(u(n.of(W0),181).Fc((zu(),R3)),u(n.of(Sa),181).Mc(hA))}function SKn(n){var e,t;e=n.d==(Yp(),av),t=qZ(n),e&&!t||!e&&t?U(n.a,(cn(),Ch),(Bh(),qj)):U(n.a,(cn(),Ch),(Bh(),Hj))}function bx(){bx=R,ZE(),EO=(cn(),bw),Qte=Af(S(C(Gq,1),krn,149,0,[Tj,Ws,C2,dw,q0,IH,Cv,Sv,OH,G8,T2,Kd,S2]))}function E8e(n,e){var t;return t=u(Wr(n,qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),t.Qc(VPn(t.gc()))}function PKn(n,e){var t,i;if(i=new Q3(n.a.ad(e,!0)),i.a.gc()<=1)throw T(new rp);return t=i.a.ec().Kc(),t.Pb(),u(t.Pb(),39)}function M8e(n,e,t){var i,r;return i=$(n.p[e.i.p])+$(n.d[e.i.p])+e.n.b+e.a.b,r=$(n.p[t.i.p])+$(n.d[t.i.p])+t.n.b+t.a.b,r-i}function XY(n,e){var t;return n.i>0&&(e.length<n.i&&(t=wk(wo(e).c,n.i),e=t),Oc(n.g,0,e,0,n.i)),e.length>n.i&&$t(e,n.i,null),e}function UC(n){var e;return n.Db&64?w5(n):(e=new ls(w5(n)),e.a+=" (instanceClassName: ",Er(e,n.D),e.a+=")",e.a)}function GC(n){var e,t,i,r;for(r=0,t=0,i=n.length;t<i;t++)e=(zn(t,n.length),n.charCodeAt(t)),e<64&&(r=lf(r,Ks(1,e)));return r}function T8e(n,e,t){var i,r;for(i=vi(t,mr),r=0;Ec(i,0)!=0&&r<e;r++)i=nr(i,vi(n[r],mr)),n[r]=Se(i),i=db(i,32);return Se(i)}function xk(n,e){var t,i,r,c;for(c=ru(n.e.Dh(),e),t=u(n.g,124),r=0;r<n.i;++r)if(i=t[r],c.am(i.Lk()))return!1;return!0}function wx(n,e){var t,i,r;return n.f>0?(n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=BHn(n,r,i,e),t!=-1):!1}function IKn(n,e){var t,i;n.a=nr(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d+=e,t=e-n.f,i=n.e+t,n.f=i-n.e-t,n.e=i}function VY(n,e){switch(e){case 3:Sb(n,0);return;case 4:Pb(n,0);return;case 5:eu(n,0);return;case 6:tu(n,0);return}mY(n,e)}function $b(n,e){switch(e.g){case 1:return Mp(n.j,(Au(),$on));case 2:return Mp(n.j,(Au(),Ron));default:return Ln(),Ln(),sr}}function WY(n){gb();var e;switch(e=n.Pc(),e.length){case 0:return qF;case 1:return new VN(Pe(e[0]));default:return new ID(q5e(e))}}function OKn(n,e){n.Xj();try{n.d.bd(n.e++,e),n.f=n.d.j,n.g=-1}catch(t){throw t=Ot(t),L(t,77)?T(new Ko):T(t)}}function gx(){gx=R,MU=new Tvn,Gdn=new Cvn,zdn=new Svn,Xdn=new Pvn,Vdn=new Ivn,Wdn=new Ovn,Jdn=new Avn,Qdn=new Lvn,Ydn=new Nvn}function zC(n,e){mX();var t,i;return t=O7((BE(),BE(),M8)),i=null,e==t&&(i=u(Dc(oun,n),624)),i||(i=new WIn(n),e==t&&Lr(oun,n,i)),i}function AKn(n){c0();var e;return(n.q?n.q:(Ln(),Ln(),Wh))._b((cn(),lw))?e=u(v(n,lw),203):e=u(v(Hi(n),U8),203),e}function r0(n,e){var t,i;return i=null,kt(n,(cn(),yO))&&(t=u(v(n,yO),96),t.pf(e)&&(i=t.of(e))),i==null&&(i=v(Hi(n),e)),i}function LKn(n,e){var t,i,r;return L(e,44)?(t=u(e,44),i=t.ld(),r=t0(n.Rc(),i),sh(r,t.md())&&(r!=null||n.Rc()._b(i))):!1}function gf(n,e){var t,i,r;return n.f>0&&(n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=Nnn(n,r,i,e),t)?t.md():null}function Xc(n,e,t){var i,r,c;return n.Pj()?(i=n.i,c=n.Qj(),Ak(n,i,e),r=n.Ij(3,null,e,i,c),t?t.nj(r):t=r):Ak(n,n.i,e),t}function C8e(n,e,t){var i,r;return i=new ml(n.e,4,10,(r=e.c,L(r,90)?u(r,29):(An(),Os)),null,f1(n,e),!1),t?t.nj(i):t=i,t}function S8e(n,e,t){var i,r;return i=new ml(n.e,3,10,null,(r=e.c,L(r,90)?u(r,29):(An(),Os)),f1(n,e),!1),t?t.nj(i):t=i,t}function NKn(n){Kw();var e;return e=new rr(u(n.e.of((He(),_2)),8)),n.B.Hc((io(),Fv))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function ra(n){dh();var e,t;return t=Se(n),e=Se(G1(n,32)),e!=0?new _An(t,e):t>10||t<0?new gl(1,t):kQn[t]}function Rk(n,e){var t;return Vr(n)&&Vr(e)&&(t=n%e,Cy<t&&t<vd)?t:Z1((Xen(Vr(n)?ds(n):n,Vr(e)?ds(e):e,!0),ga))}function k5(n,e){var t;bLe(e),t=u(v(n,(cn(),bO)),283),t&&U(n,bO,O7e(t)),zl(n.c),zl(n.f),HJ(n.d),HJ(u(v(n,mO),214))}function P8e(n){var e,t,i,r;for(i=uEe(n),Yt(i,BZn),r=n.d,r.c.length=0,t=new M(i);t.a<t.c.c.length;)e=u(E(t),465),hi(r,e.b)}function px(n){var e;n.c!=0&&(e=u(sn(n.a,n.b),293),e.b==1?(++n.b,n.b<n.a.c.length&&i9n(u(sn(n.a,n.b),293))):--e.b,--n.c)}function I8e(n){var e;e=n.a;do e=u(fe(new ie(ce(Qt(e).a.Kc(),new En))),18).d.i,e.k==(Vn(),Ti)&&nn(n.e,e);while(e.k==(Vn(),Ti))}function DKn(n){this.e=F(ye,_e,28,n.length,15,1),this.c=F(so,Xh,28,n.length,16,1),this.b=F(so,Xh,28,n.length,16,1),this.f=0}function O8e(n){var e,t;for(n.j=F(Ii,Cr,28,n.p.c.length,15,1),t=new M(n.p);t.a<t.c.c.length;)e=u(E(t),10),n.j[e.p]=e.o.b/n.i}function A8e(n,e){var t,i,r,c;for(c=e.b.b,n.a=new Mt,n.b=F(ye,_e,28,c,15,1),t=0,r=ge(e.b,0);r.b!=r.d.c;)i=u(be(r),39),i.g=t++}function $Kn(n,e,t){var i,r,c,s;for(c=e-n.e,s=t-n.f,r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),172),_k(i,i.s+c,i.t+s);n.e=e,n.f=t}function Kk(n,e){var t,i;for(i=e.length,t=0;t<i;t+=2)xc(n,(zn(t,e.length),e.charCodeAt(t)),(zn(t+1,e.length),e.charCodeAt(t+1)))}function L8e(n,e){e.Ug("Min Size Postprocessing",1),ht(n,(_h(),X0),y.Math.max($(B(z(n,X0))),$(B(z(n,s9))))),e.Vg()}function JY(){JY=R,bdn=new ob(15),uoe=new Di((He(),M1),bdn),soe=new Di(qd,15),ooe=new Di(oU,Y(0)),coe=new Di(x2,U4)}function go(){go=R,iE=new yM("PORTS",0),Gd=new yM("PORT_LABELS",1),tE=new yM("NODE_LABELS",2),Q0=new yM("MINIMUM_SIZE",3)}function XC(){XC=R,Rj=new rN("P1_WIDTH_APPROXIMATION",0),qO=new rN("P2_PACKING",1),Mq=new rN("P3_WHITESPACE_ELIMINATION",2)}function xKn(n){if(n.b==null){for(;n.a.Ob();)if(n.b=n.a.Pb(),!u(n.b,54).Jh())return!0;return n.b=null,!1}else return!0}function d4(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.Ne(e,c.d),t&&i==0)return c;i>=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function Bk(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.Ne(e,c.d),t&&i==0)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function N8e(n,e,t,i){var r,c,s;return r=!1,xAe(n.f,t,i)&&(e9e(n.f,n.a[e][t],n.a[e][i]),c=n.a[e],s=c[i],c[i]=c[t],c[t]=s,r=!0),r}function RKn(n,e,t){var i,r,c,s;for(r=u(ee(n.b,t),183),i=0,s=new M(e.j);s.a<s.c.c.length;)c=u(E(s),113),r[c.d.p]&&++i;return i}function QY(n,e,t){var i,r;i=u(Dc(qv,e),122),r=u(Dc(K9,e),122),t?(Lr(qv,n,i),Lr(K9,n,r)):(Lr(K9,n,i),Lr(qv,n,r))}function KKn(n,e){var t,i,r,c;return t=e>>5,e&=31,r=n.d+t+(e==0?0:1),i=F(ye,_e,28,r,15,1),Aye(i,n.a,t,e),c=new Ya(n.e,r,i),V6(c),c}function D8e(n,e){var t,i,r;for(i=new ie(ce(Qt(n).a.Kc(),new En));pe(i);)if(t=u(fe(i),18),r=t.d.i,r.c==e)return!1;return!0}function YY(n,e,t){var i,r,c,s,f;return s=n.k,f=e.k,i=t[s.g][f.g],r=B(r0(n,i)),c=B(r0(e,i)),y.Math.max((Jn(r),r),(Jn(c),c))}function $8e(){return Error.stackTraceLimit>0?(y.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function x8e(n,e){return Cf(),Cf(),Fs(ha),(y.Math.abs(n-e)<=ha||n==e||isNaN(n)&&isNaN(e)?0:n<e?-1:n>e?1:ub(isNaN(n),isNaN(e)))>0}function ZY(n,e){return Cf(),Cf(),Fs(ha),(y.Math.abs(n-e)<=ha||n==e||isNaN(n)&&isNaN(e)?0:n<e?-1:n>e?1:ub(isNaN(n),isNaN(e)))<0}function BKn(n,e){return Cf(),Cf(),Fs(ha),(y.Math.abs(n-e)<=ha||n==e||isNaN(n)&&isNaN(e)?0:n<e?-1:n>e?1:ub(isNaN(n),isNaN(e)))<=0}function mx(n,e){for(var t=0;!e[t]||e[t]=="";)t++;for(var i=e[t++];t<e.length;t++)!e[t]||e[t]==""||(i+=n+e[t]);return i}function FKn(n){var e,t;return e=u(Un(n.a,4),129),e!=null?(t=F(kU,TF,424,e.length,0,1),Oc(e,0,t,0,e.length),t):Ooe}function _Kn(n){var e,t,i,r,c;if(n==null)return null;for(c=new Z,t=z$(n),i=0,r=t.length;i<r;++i)e=t[i],nn(c,Rc(e,!0));return c}function HKn(n){var e,t,i,r,c;if(n==null)return null;for(c=new Z,t=z$(n),i=0,r=t.length;i<r;++i)e=t[i],nn(c,Rc(e,!0));return c}function qKn(n){var e,t,i,r,c;if(n==null)return null;for(c=new Z,t=z$(n),i=0,r=t.length;i<r;++i)e=t[i],nn(c,Rc(e,!0));return c}function UKn(n,e){var t,i,r;if(n.c)Sb(n.c,e);else for(t=e-ao(n),r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),163),UKn(i,ao(i)+t)}function GKn(n,e){var t,i,r;if(n.c)Pb(n.c,e);else for(t=e-Pu(n),r=new M(n.d);r.a<r.c.c.length;)i=u(E(r),163),GKn(i,Pu(i)+t)}function ws(n,e,t){var i,r,c,s;for(c=e+t,Ri(e,c,n.length),s="",r=e;r<c;)i=y.Math.min(r+1e4,c),s+=Y0e(n.slice(r,i)),r=i;return s}function nZ(n){switch(n.g){case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:return!0;default:return!1}}function o1(){o1=R,W_=new f7(tin,0),Osn=new f7(VXn,1),J_=new f7(sB,2),gv=new f7(Ztn,3),wv=new f7("GREEDY_MODEL_ORDER",4)}function lh(){lh=R,k1=new wM(kh,0),Bhn=new wM("NODES_AND_EDGES",1),_H=new wM("PREFER_EDGES",2),HH=new wM("PREFER_NODES",3)}function eZ(n,e,t,i,r,c){this.a=n,this.c=e,this.b=t,this.f=i,this.d=r,this.e=c,this.c>0&&this.b>0&&(this.g=rT(this.c,this.b,this.a))}function R8e(n,e){var t=n.a,i;e=String(e),t.hasOwnProperty(e)&&(i=t[e]);var r=(F$(),VF)[typeof i],c=r?r(i):dY(typeof i);return c}function b4(n){var e,t,i;if(i=null,e=Eh in n.a,t=!e,t)throw T(new eh("Every element must have an id."));return i=Zp(dl(n,Eh)),i}function xb(n){var e,t;for(t=l_n(n),e=null;n.c==2;)Ze(n),e||(e=(nt(),nt(),new C6(2)),pd(e,t),t=e),t.Jm(l_n(n));return t}function VC(n,e){var t,i,r;return n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=Nnn(n,r,i,e),t?(X$n(n,t),t.md()):null}function zKn(n,e){return n.e>e.e?1:n.e<e.e?-1:n.d>e.d?n.e:n.d<e.d?-e.e:n.e*sY(n.a,e.a,n.d)}function XKn(n){return n>=48&&n<48+y.Math.min(10,10)?n-48:n>=97&&n<97?n-97+10:n>=65&&n<65?n-65+10:-1}function K8e(n,e){if(e.c==n)return e.d;if(e.d==n)return e.c;throw T(new Gn("Input edge is not connected to the input port."))}function B8e(n){if(JC(Z4,n))return _n(),uv;if(JC(cF,n))return _n(),pa;throw T(new Gn("Expecting true or false"))}function tZ(n){switch(typeof n){case nK:return t1(n);case htn:return pp(n);case i3:return SSn(n);default:return n==null?0:fb(n)}}function ah(n,e){if(n.a<0)throw T(new Ar("Did not call before(...) or after(...) before calling add(...)."));return JX(n,n.a,e),n}function iZ(n){return $T(),L(n,162)?u(ee(fE,TQn),294).Rg(n):Zc(fE,wo(n))?u(ee(fE,wo(n)),294).Rg(n):null}function iu(n){var e,t;return n.Db&32||(t=(e=u(Un(n,16),29),se(e||n.ii())-se(n.ii())),t!=0&&Xp(n,32,F(ki,Rn,1,t,5,1))),n}function Xp(n,e,t){var i;n.Db&e?t==null?jMe(n,e):(i=Bx(n,e),i==-1?n.Eb=t:$t(cd(n.Eb),i,t)):t!=null&&GCe(n,e,t)}function F8e(n,e,t,i){var r,c;e.c.length!=0&&(r=$Te(t,i),c=xEe(e),Ut(fC(new Cn(null,new On(c,1)),new L3n),new MOn(n,t,r,i)))}function _8e(n,e){var t,i,r,c;return i=n.a.length-1,t=e-n.b&i,c=n.c-e&i,r=n.c-n.b&i,jSn(t<r),t>=c?(B6e(n,e),-1):(K6e(n,e),1)}function WC(n){var e,t,i;if(i=n.Jh(),!i)for(e=0,t=n.Ph();t;t=t.Ph()){if(++e>IK)return t.Qh();if(i=t.Jh(),i||t==n)break}return i}function VKn(n,e){var t;return x(e)===x(n)?!0:!L(e,21)||(t=u(e,21),t.gc()!=n.gc())?!1:n.Ic(t)}function H8e(n,e){return n.e<e.e?-1:n.e>e.e?1:n.f<e.f?-1:n.f>e.f?1:mt(n)-mt(e)}function JC(n,e){return Jn(n),e==null?!1:Sn(n,e)?!0:n.length==e.length&&Sn(n.toLowerCase(),e.toLowerCase())}function Tl(n){var e,t;return Ec(n,-129)>0&&Ec(n,128)<0?(YPn(),e=Se(n)+128,t=gun[e],!t&&(t=gun[e]=new mG(n)),t):new mG(n)}function dd(){dd=R,A0=new lM(kh,0),Oon=new lM("INSIDE_PORT_SIDE_GROUPS",1),P_=new lM("GROUP_MODEL_ORDER",2),I_=new lM(Ztn,3)}function q8e(n){var e;return n.b||xhe(n,(e=$ae(n.e,n.a),!e||!Sn(cF,gf((!e.b&&(e.b=new lo((An(),ar),pc,e)),e.b),"qualified")))),n.c}function U8e(n,e){var t,i;for(t=(zn(e,n.length),n.charCodeAt(e)),i=e+1;i<n.length&&(zn(i,n.length),n.charCodeAt(i)==t);)++i;return i-e}function G8e(n,e){(!e&&console.groupCollapsed!=null?console.groupCollapsed:console.group??console.log).call(console,n)}function z8e(n,e,t,i){i==n,u(t.b,68),u(t.b,68),u(i.b,68),u(i.b,68).c.b,GJ(i,e,n)}function X8e(n){var e,t;for(e=new M(n.g);e.a<e.c.c.length;)u(E(e),568);t=new hqn(n.g,$(n.a),n.c),yLe(t),n.g=t.b,n.d=t.a}function WKn(n,e,t){var i,r,c;for(c=new M(t.a);c.a<c.c.c.length;)r=u(E(c),225),i=new LM(u(ee(n.a,r.b),68)),nn(e.a,i),WKn(n,i,r)}function V8e(n,e,t){var i,r,c;return i=u(N(no(n.a),e),89),c=(r=i.c,r||(An(),Zf)),(c.Vh()?ta(n.b,u(c,54)):c)==t?KS(i):Bm(i,t),c}function rZ(n,e,t){e.b=y.Math.max(e.b,-t.a),e.c=y.Math.max(e.c,t.a-n.a),e.d=y.Math.max(e.d,-t.b),e.a=y.Math.max(e.a,t.b-n.b)}function cZ(n,e,t){this.c=n,this.f=new Z,this.e=new Ni,this.j=new uW,this.n=new uW,this.b=e,this.g=new Ho(e.c,e.d,e.b,e.a),this.a=t}function vx(n){var e,t,i,r;for(this.a=new rh,this.d=new ni,this.e=0,t=n,i=0,r=t.length;i<r;++i)e=t[i],!this.f&&(this.f=e),_D(this,e)}function JKn(n){dh(),n.length==0?(this.e=0,this.d=1,this.a=S(C(ye,1),_e,28,15,[0])):(this.e=1,this.d=n.length,this.a=n,V6(this))}function y5(n,e,t){Zyn.call(this),this.a=F(zQn,Ltn,217,(wf(),S(C(P0,1),G,237,0,[bc,Wc,wc])).length,0,1),this.b=n,this.d=e,this.c=t}function W8e(n){var e,t,i,r,c,s;for(s=u(v(n,(W(),st)),12),U(s,yv,n.i.n.b),e=hh(n.e),i=e,r=0,c=i.length;r<c;++r)t=i[r],Oi(t,s)}function J8e(n){var e,t,i,r,c,s;for(t=u(v(n,(W(),st)),12),U(t,yv,n.i.n.b),e=hh(n.g),r=e,c=0,s=r.length;c<s;++c)i=r[c],Zi(i,t)}function Q8e(n,e){DD();var t,i;for(i=new ie(ce(Ml(n).a.Kc(),new En));pe(i);)if(t=u(fe(i),18),t.d.i==e||t.c.i==e)return t;return null}function QKn(n,e){var t,i;return t=e.qi(n.a),t&&(i=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),Qe)),i!=null)?i:e.xe()}function Y8e(n,e){var t,i;return t=e.qi(n.a),t&&(i=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),Qe)),i!=null)?i:e.xe()}function Z8e(n,e){var t,i;return t=jc(n.a.c.p,e.a.c.p),t!=0?t:(i=jc(n.a.d.i.p,e.a.d.i.p),i!=0?i:jc(e.a.d.p,n.a.d.p))}function n9e(n,e){var t,i,r,c;for(i=0,r=e.gc();i<r;++i)t=e.Tl(i),L(t,102)&&u(t,19).Bb&kc&&(c=e.Ul(i),c!=null&&OR(n,u(c,58)))}function YKn(n,e){var t,i,r;if(nn(mI,n),e.Fc(n),t=u(ee(p_,n),21),t)for(r=t.Kc();r.Ob();)i=u(r.Pb(),27),qr(mI,i,0)!=-1||YKn(i,e)}function e9e(n,e,t){var i,r;eR(n.e,e,t,(en(),Wn)),eR(n.i,e,t,Zn),n.a&&(r=u(v(e,(W(),st)),12),i=u(v(t,st),12),FD(n.g,r,i))}function ZKn(n,e,t){var i,r,c;i=e.c.p,c=e.p,n.b[i][c]=new zOn(n,e),t&&(n.a[i][c]=new x7n(e),r=u(v(e,(W(),uw)),10),r&&In(n.d,r,e))}function t9e(n,e,t){var i,r,c,s;return c=e.j,s=t.j,c!=s?c.g-s.g:(i=n.f[e.p],r=n.f[t.p],i==0&&r==0?0:i==0?-1:r==0?1:bt(i,r))}function i9e(){var n;return cI!=0&&(n=Date.now(),n-hQn>2e3&&(hQn=n,uI=y.setTimeout(_he,10))),cI++==0?(i4e((hz(),uun)),!0):!1}function r9e(n,e,t){var i;(LQn?(o8e(n),!0):NQn||$Qn?(lm(),!0):DQn&&(lm(),!1))&&(i=new lPn(e),i.b=t,aje(n,i))}function kx(n,e){var t;t=!n.A.Hc((go(),Gd))||n.q==(Ai(),qc),n.u.Hc((zu(),Rl))?t?XLe(n,e):UGn(n,e):n.u.Hc(Aa)&&(t?dLe(n,e):czn(n,e))}function nBn(n){var e;x(z(n,(He(),B2)))===x((jl(),uA))&&(St(n)?(e=u(z(St(n),B2),346),ht(n,B2,e)):ht(n,B2,j9))}function c9e(n){var e,t;return kt(n.d.i,(cn(),Ev))?(e=u(v(n.c.i,Ev),17),t=u(v(n.d.i,Ev),17),jc(e.a,t.a)>0):!1}function eBn(n,e,t){return new Ho(y.Math.min(n.a,e.a)-t/2,y.Math.min(n.b,e.b)-t/2,y.Math.abs(n.a-e.a)+t,y.Math.abs(n.b-e.b)+t)}function tBn(n){var e;this.d=new Z,this.j=new Ni,this.g=new Ni,e=n.g.b,this.f=u(v(Hi(e),(cn(),Lo)),88),this.e=$(B(nS(e,q0)))}function iBn(n){this.d=new Z,this.e=new Ql,this.c=F(ye,_e,28,(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,15,1),this.b=n}function uZ(n,e,t){var i;switch(i=t[n.g][e],n.g){case 1:case 3:return new V(0,i);case 2:case 4:return new V(i,0);default:return null}}function rBn(n,e,t){var i,r;r=u(z7(e.f),205);try{r.rf(n,t),fOn(e.f,r)}catch(c){throw c=Ot(c),L(c,103)?(i=c,T(i)):T(c)}}function cBn(n,e,t){var i,r,c,s,f,h;return i=null,f=Jen(Gm(),e),c=null,f&&(r=null,h=Ven(f,t),s=null,h!=null&&(s=n.qf(f,h)),r=s,c=r),i=c,i}function yx(n,e,t,i){var r;if(r=n.length,e>=r)return r;for(e=e>0?e:0;e<r&&!B$((zn(e,n.length),n.charCodeAt(e)),t,i);e++);return e}function Rf(n,e){var t,i;for(i=n.c.length,e.length<i&&(e=HE(new Array(i),e)),t=0;t<i;++t)$t(e,t,n.c[t]);return e.length>i&&$t(e,i,null),e}function uBn(n,e){var t,i;for(i=n.a.length,e.length<i&&(e=HE(new Array(i),e)),t=0;t<i;++t)$t(e,t,n.a[t]);return e.length>i&&$t(e,i,null),e}function w4(n,e){var t,i;if(++n.j,e!=null&&(t=(i=n.a.Cb,L(i,99)?u(i,99).th():null),hMe(e,t))){Xp(n.a,4,t);return}Xp(n.a,4,u(e,129))}function u9e(n){var e;if(n==null)return null;if(e=lTe(Rc(n,!0)),e==null)throw T(new kL("Invalid hexBinary value: '"+n+"'"));return e}function QC(n,e,t){var i;e.a.length>0&&(nn(n.b,new SPn(e.a,t)),i=e.a.length,0<i?e.a=qo(e.a,0,0):0>i&&(e.a+=ICn(F(fs,gh,28,-i,15,1))))}function oBn(n,e,t){var i,r,c;if(!t[e.d])for(t[e.d]=!0,r=new M(xg(e));r.a<r.c.c.length;)i=u(E(r),218),c=HC(i,e),oBn(n,c,t)}function s1(n,e,t){var i,r,c;return r=u(ee(n.e,e),400),r?(c=dV(r,t),ACn(n,r),c):(i=new HV(n,e,t),Ve(n.e,e,i),iAn(i),null)}function o9e(n,e,t,i){var r,c,s;return r=new ml(n.e,1,13,(s=e.c,s||(An(),Zf)),(c=t.c,c||(An(),Zf)),f1(n,e),!1),i?i.nj(r):i=r,i}function jx(){return VS(),S(C(vYn,1),G,164,0,[pYn,gYn,mYn,sYn,oYn,fYn,aYn,lYn,hYn,wYn,bYn,dYn,cYn,rYn,uYn,tYn,eYn,iYn,ZQn,YQn,nYn,h_])}function g4(n){switch(n.g){case 4:return new V(0,-1);case 1:return new V(1,0);case 2:return new V(-1,0);default:return new V(0,1)}}function Ex(n){switch(n.g){case 1:return ci(),us;case 4:return ci(),Kr;case 2:return ci(),Xr;case 3:return ci(),Wf}return ci(),Jf}function s9e(n){var e;switch(e=n.hj(null),e){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}function pf(){pf=R,xn=new g7("PARENTS",0),pi=new g7("NODES",1),Ih=new g7("EDGES",2),Fd=new g7("PORTS",3),E1=new g7("LABELS",4)}function f9e(n,e,t){var i;switch(i=t.q.getFullYear()-la+la,i<0&&(i=-i),e){case 1:n.a+=i;break;case 2:Kh(n,i%100,2);break;default:Kh(n,i,e)}}function ge(n,e){var t,i;if(zw(e,n.b),e>=n.b>>1)for(i=n.c,t=n.b;t>e;--t)i=i.b;else for(i=n.a.a,t=0;t<e;++t)i=i.a;return new hPn(n,e,i)}function YC(){YC=R,u_=new _z("NUM_OF_EXTERNAL_SIDES_THAN_NUM_OF_EXTENSIONS_LAST",0),$un=new _z("CORNER_CASES_THAN_SINGLE_SIDE_LAST",1)}function sBn(n){this.b=new Z,this.e=new Z,this.d=n,this.a=!om(ut(new Cn(null,new wb(new Lf(n.b))),new Y3(new mpn))).Bd((Va(),v3))}function fBn(n,e){var t,i,r,c;for(t=0,r=new M(e.a);r.a<r.c.c.length;)i=u(E(r),10),c=i.o.a+i.d.c+i.d.b+n.j,t=y.Math.max(t,c);return t}function hBn(n,e){var t,i,r;r=e.d.i,i=r.k,!(i==(Vn(),Xt)||i==Gf)&&(t=new ie(ce(Qt(r).a.Kc(),new En)),pe(t)&&Ve(n.k,e,u(fe(t),18)))}function h9e(n,e){return kl(),bt((n.a.b==0?new V(n.c.e.a,n.c.e.b):u(gm(n.a),8)).b,(e.a.b==0?new V(e.c.e.a,e.c.e.b):u(gm(e.a),8)).b)}function l9e(n,e){return kl(),bt((n.a.b==0?new V(n.c.e.a,n.c.e.b):u(gm(n.a),8)).a,(e.a.b==0?new V(e.c.e.a,e.c.e.b):u(gm(e.a),8)).a)}function a9e(n,e){return kl(),bt((n.a.b==0?new V(n.b.e.a,n.b.e.b):u($s(n.a),8)).a,(e.a.b==0?new V(e.b.e.a,e.b.e.b):u($s(e.a),8)).a)}function d9e(n,e){return kl(),bt((n.a.b==0?new V(n.b.e.a,n.b.e.b):u($s(n.a),8)).b,(e.a.b==0?new V(e.b.e.a,e.b.e.b):u($s(e.a),8)).b)}function Kg(){Kg=R,Ia=new m7("DISTRIBUTED",0),nE=new m7("JUSTIFIED",1),ldn=new m7("BEGIN",2),E9=new m7(H4,3),adn=new m7("END",4)}function Mx(n,e){var t,i,r;return i=$n(n.Dh(),e),t=e-n.ji(),t<0?(r=n.Ih(i),r>=0?n.Wh(r):hR(n,i)):t<0?hR(n,i):u(i,69).wk().Bk(n,n.hi(),t)}function lBn(n){var e,t,i;for(i=(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),n.o),t=i.c.Kc();t.e!=t.i.gc();)e=u(t.Yj(),44),e.md();return ik(i)}function rn(n){var e;if(L(n.a,4)){if(e=iZ(n.a),e==null)throw T(new Ar(DVn+n.b+"'. "+NVn+(ll(hE),hE.k)+lcn));return e}else return n.a}function b9e(n,e){var t,i;if(n.j.length!=e.j.length)return!1;for(t=0,i=n.j.length;t<i;t++)if(!Sn(n.j[t],e.j[t]))return!1;return!0}function ue(n){var e;try{return e=n.i.Xb(n.e),n.Xj(),n.g=n.e++,e}catch(t){throw t=Ot(t),L(t,77)?(n.Xj(),T(new nc)):T(t)}}function Tx(n){var e;try{return e=n.c.Vi(n.e),n.Xj(),n.g=n.e++,e}catch(t){throw t=Ot(t),L(t,77)?(n.Xj(),T(new nc)):T(t)}}function ZC(n){var e,t,i,r;for(r=0,t=0,i=n.length;t<i;t++)e=(zn(t,n.length),n.charCodeAt(t)),e>=64&&e<128&&(r=lf(r,Ks(1,e-64)));return r}function nS(n,e){var t,i;return i=null,kt(n,(He(),D3))&&(t=u(v(n,D3),96),t.pf(e)&&(i=t.of(e))),i==null&&Hi(n)&&(i=v(Hi(n),e)),i}function w9e(n,e){var t;return t=u(v(n,(cn(),Rr)),75),yN(e,NZn)?t?vo(t):(t=new Tu,U(n,Rr,t)):t&&U(n,Rr,null),t}function j5(){j5=R,hon=(He(),Han),w_=jan,LYn=x2,fon=M1,xYn=(aS(),Hun),$Yn=Fun,RYn=Uun,DYn=Bun,NYn=(Q$(),uon),b_=IYn,son=OYn,pI=AYn}function eS(n){switch(Nz(),this.c=new Z,this.d=n,n.g){case 0:case 2:this.a=_W(Ion),this.b=Pt;break;case 3:case 1:this.a=Ion,this.b=li}}function g9e(n){var e;Ep(u(v(n,(cn(),_t)),101))&&(e=n.b,nHn((Nn(0,e.c.length),u(e.c[0],30))),nHn(u(sn(e,e.c.length-1),30)))}function p9e(n,e){e.Ug("Self-Loop post-processing",1),Ut(ut(ut(rc(new Cn(null,new On(n.b,16)),new o2n),new s2n),new f2n),new h2n),e.Vg()}function aBn(n,e,t){var i,r;if(n.c)eu(n.c,n.c.i+e),tu(n.c,n.c.j+t);else for(r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),163),aBn(i,e,t)}function m9e(n){var e;if(n==null)return null;if(e=iNe(Rc(n,!0)),e==null)throw T(new kL("Invalid base64Binary value: '"+n+"'"));return e}function Zo(n,e){var t;t=n.fd(e);try{return t.Pb()}catch(i){throw i=Ot(i),L(i,112)?T(new Or("Can't get element "+e)):T(i)}}function dBn(n,e){var t,i,r;for(t=n.o,r=u(u(ot(n.r,e),21),87).Kc();r.Ob();)i=u(r.Pb(),117),i.e.a=y7e(i,t.a),i.e.b=t.b*$(B(i.b.of(bI)))}function v9e(n,e){var t,i,r;for(r=new Gc(e.gc()),i=e.Kc();i.Ob();)t=u(i.Pb(),292),t.c==t.f?j4(n,t,t.c):Hje(n,t)||Bn(r.c,t);return r}function bBn(n){var e;return e=new R1,e.a+="n",n.k!=(Vn(),Xt)&&Be(Be((e.a+="(",e),PN(n.k).toLowerCase()),")"),Be((e.a+="_",e),Hk(n)),e.a}function k9e(n,e){var t,i,r,c;return r=n.k,t=$(B(v(n,(W(),ow)))),c=e.k,i=$(B(v(e,ow))),c!=(Vn(),Zt)?-1:r!=Zt?1:t==i?0:t<i?-1:1}function y9e(n,e){var t,i;return t=u(u(ee(n.g,e.a),42).a,68),i=u(u(ee(n.g,e.b),42).a,68),Q1(e.a,e.b)-Q1(e.a,AX(t.b))-Q1(e.b,AX(i.b))}function wBn(n,e){var t;switch(t=u(Mr(n.b,e),127).n,e.g){case 1:n.t>=0&&(t.d=n.t);break;case 3:n.t>=0&&(t.a=n.t)}n.C&&(t.b=n.C.b,t.c=n.C.c)}function E5(){E5=R,Lhn=new l7(yrn,0),BH=new l7(sB,1),FH=new l7("LINEAR_SEGMENTS",2),X8=new l7("BRANDES_KOEPF",3),V8=new l7(sVn,4)}function M5(){M5=R,sj=new fM(eP,0),wI=new fM(HK,1),gI=new fM(qK,2),fj=new fM(UK,3),sj.a=!1,wI.a=!0,gI.a=!1,fj.a=!0}function Vp(){Vp=R,cj=new sM(eP,0),rj=new sM(HK,1),uj=new sM(qK,2),oj=new sM(UK,3),cj.a=!1,rj.a=!0,uj.a=!1,oj.a=!0}function Wp(n,e,t,i){var r;return t>=0?n.Sh(e,t,i):(n.Ph()&&(i=(r=n.Fh(),r>=0?n.Ah(i):n.Ph().Th(n,-1-r,null,i))),n.Ch(e,t,i))}function oZ(n,e){switch(e){case 7:!n.e&&(n.e=new Dn(Vt,n,7,4)),me(n.e);return;case 8:!n.d&&(n.d=new Dn(Vt,n,8,5)),me(n.d);return}VY(n,e)}function ht(n,e,t){return t==null?(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),VC(n.o,e)):(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),Gk(n.o,e,t)),n}function gBn(n,e){Ln();var t,i,r,c;for(t=n,c=e,L(n,21)&&!L(e,21)&&(t=e,c=n),r=t.Kc();r.Ob();)if(i=r.Pb(),c.Hc(i))return!1;return!0}function j9e(n,e,t,i){if(e.a<i.a)return!0;if(e.a==i.a){if(e.b<i.b)return!0;if(e.b==i.b&&n.b>t.b)return!0}return!1}function Cx(n,e){return Si(n)?!!iQn[e]:n.Sm?!!n.Sm[e]:$w(n)?!!tQn[e]:Dw(n)?!!eQn[e]:!1}function E9e(n){var e;e=n.a;do e=u(fe(new ie(ce(ji(e).a.Kc(),new En))),18).c.i,e.k==(Vn(),Ti)&&n.b.Fc(e);while(e.k==(Vn(),Ti));n.b=Qo(n.b)}function pBn(n,e){var t,i,r;for(r=n,i=new ie(ce(ji(e).a.Kc(),new En));pe(i);)t=u(fe(i),18),t.c.i.c&&(r=y.Math.max(r,t.c.i.c.p));return r}function M9e(n,e){var t,i,r;for(r=0,i=u(u(ot(n.r,e),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r+=t.d.d+t.b.Mf().b+t.d.a,i.Ob()&&(r+=n.w);return r}function T9e(n,e){var t,i,r;for(r=0,i=u(u(ot(n.r,e),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r+=t.d.b+t.b.Mf().a+t.d.c,i.Ob()&&(r+=n.w);return r}function mBn(n){var e,t,i,r;if(i=0,r=a0(n),r.c.length==0)return 1;for(t=new M(r);t.a<t.c.c.length;)e=u(E(t),27),i+=mBn(e);return i}function C9e(n){var e,t,i;for(i=n.c.a,n.p=(Pe(i),new _u(i)),t=new M(i);t.a<t.c.c.length;)e=u(E(t),10),e.p=fEe(e).a;Ln(),Yt(n.p,new Xpn)}function S9e(n,e,t){var i,r,c,s;return i=n.dd(e),i!=-1&&(n.Pj()?(c=n.Qj(),s=eT(n,i),r=n.Ij(4,s,null,i,c),t?t.nj(r):t=r):eT(n,i)),t}function cr(n,e,t){var i,r,c,s;return i=n.dd(e),i!=-1&&(n.Pj()?(c=n.Qj(),s=Jp(n,i),r=n.Ij(4,s,null,i,c),t?t.nj(r):t=r):Jp(n,i)),t}function P9e(n,e,t,i){var r,c,s;t.Xh(e)&&(dr(),a$(e)?(r=u(t.Mh(e),160),n9e(n,r)):(c=(s=e,s?u(i,54).gi(s):null),c&&Ofe(t.Mh(e),c)))}function tS(n,e,t,i){var r,c,s;return c=$n(n.Dh(),e),r=e-n.ji(),r<0?(s=n.Ih(c),s>=0?n.Lh(s,t,!0):Fb(n,c,t)):u(c,69).wk().yk(n,n.hi(),r,t,i)}function I9e(n,e,t,i){var r,c;c=e.pf((He(),F2))?u(e.of(F2),21):n.j,r=d5e(c),r!=(VS(),h_)&&(t&&!nZ(r)||ann(aTe(n,r,i),e))}function O9e(n){switch(n.g){case 1:return Lb(),ij;case 3:return Lb(),tj;case 2:return Lb(),a_;case 4:return Lb(),l_;default:return null}}function A9e(n,e,t){if(n.e)switch(n.b){case 1:yge(n.c,e,t);break;case 0:jge(n.c,e,t)}else BLn(n.c,e,t);n.a[e.p][t.p]=n.c.i,n.a[t.p][e.p]=n.c.e}function vBn(n){var e,t;if(n==null)return null;for(t=F(Qh,J,199,n.length,0,2),e=0;e<t.length;e++)t[e]=u(I3e(n[e],n[e].length),199);return t}function iS(n){var e;if(W$(n))return lT(n),n.ul()&&(e=A5(n.e,n.b,n.c,n.a,n.j),n.j=e),n.g=n.a,++n.a,++n.c,n.i=0,n.j;throw T(new nc)}function L9e(n,e){var t,i,r,c;return c=n.o,t=n.p,c<t?c*=c:t*=t,i=c+t,c=e.o,t=e.p,c<t?c*=c:t*=t,r=c+t,i<r?-1:i==r?0:1}function f1(n,e){var t,i,r;if(r=nFn(n,e),r>=0)return r;if(n.ol()){for(i=0;i<n.i;++i)if(t=n.pl(u(n.g[i],58)),x(t)===x(e))return i}return-1}function Bg(n,e,t){var i,r;if(r=n.gc(),e>=r)throw T(new Fw(e,r));if(n.Si()&&(i=n.dd(t),i>=0&&i!=e))throw T(new Gn(Xy));return n.Xi(e,t)}function sZ(n,e){if(this.a=u(Pe(n),253),this.b=u(Pe(e),253),n.Ed(e)>0||n==(dL(),_F)||e==(bL(),HF))throw T(new Gn("Invalid range: "+HLn(n,e)))}function kBn(n){var e,t;for(this.b=new Z,this.c=n,this.a=!1,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),10),this.a=this.a|e.k==(Vn(),Xt)}function N9e(n,e){var t,i,r;for(t=sb(new za,n),r=new M(e);r.a<r.c.c.length;)i=u(E(r),125),qs(Ns(Ls(Ds(As(new hs,0),0),t),i));return t}function yBn(n,e,t){t.Ug("Compound graph preprocessor",1),n.a=new jb,FGn(n,e,null),SOe(n,e),QTe(n),U(e,(W(),Zsn),n.a),n.a=null,Hu(n.b),t.Vg()}function jBn(n,e,t){var i,r,c;for(r=new ie(ce((e?ji(n):Qt(n)).a.Kc(),new En));pe(r);)i=u(fe(r),18),c=e?i.c.i:i.d.i,c.k==(Vn(),Sc)&&$i(c,t)}function D9e(n,e){var t,i,r;for(e.Ug("Untreeify",1),t=u(v(n,(pt(),vln)),15),r=t.Kc();r.Ob();)i=u(r.Pb(),65),Re(i.b.d,i),Re(i.c.b,i);e.Vg()}function $9e(n){var e,t,i;for(i=u(ot(n.a,(o0(),zI)),15).Kc();i.Ob();)t=u(i.Pb(),105),e=yZ(t),Mm(n,t,e[0],(Ob(),iw),0),Mm(n,t,e[1],rw,1)}function x9e(n){var e,t,i;for(i=u(ot(n.a,(o0(),XI)),15).Kc();i.Ob();)t=u(i.Pb(),105),e=yZ(t),Mm(n,t,e[0],(Ob(),iw),0),Mm(n,t,e[1],rw,1)}function c0(){c0=R,CO=new bM(kh,0),RH=new bM("PORT_POSITION",1),I2=new bM("NODE_SIZE_WHERE_SPACE_PERMITS",2),P2=new bM("NODE_SIZE",3)}function rS(){rS=R,Tq=new cN("INTERACTIVE_NODE_REORDERER",0),Sq=new cN("MIN_SIZE_PRE_PROCESSOR",1),Cq=new cN("MIN_SIZE_POST_PROCESSOR",2)}function Bh(){Bh=R,zq=new p6("AUTOMATIC",0),Hj=new p6(s3,1),qj=new p6(f3,2),eA=new p6("TOP",3),ZO=new p6(Dtn,4),nA=new p6(H4,5)}function fZ(n,e,t,i){C4();var r,c;for(r=0,c=0;c<t;c++)r=nr(er(vi(e[c],mr),vi(i,mr)),vi(Se(r),mr)),n[c]=Se(r),r=G1(r,32);return Se(r)}function hZ(n,e,t){var i,r;for(r=0,i=0;i<f_;i++)r=y.Math.max(r,Z$(n.a[e.g][i],t));return e==(wf(),Wc)&&n.b&&(r=y.Math.max(r,n.b.b)),r}function cS(n,e){var t,i;if(tV(e>0),(e&-e)==e)return wi(e*to(n,31)*4656612873077393e-25);do t=to(n,31),i=t%e;while(t-i+(e-1)<0);return wi(i)}function R9e(n,e,t){switch(t.g){case 1:n.a=e.a/2,n.b=0;break;case 2:n.a=e.a,n.b=e.b/2;break;case 3:n.a=e.a/2,n.b=e.b;break;case 4:n.a=0,n.b=e.b/2}}function Fk(n,e,t,i){var r,c;for(r=e;r<n.c.length;r++)if(c=(Nn(r,n.c.length),u(n.c[r],12)),t.Mb(c))Bn(i.c,c);else return r;return n.c.length}function Sx(n){switch(n.g){case 0:return null;case 1:return new Exn;case 2:return new rz;default:throw T(new Gn(GB+(n.f!=null?n.f:""+n.g)))}}function _k(n,e,t){var i,r;for(Vve(n,e-n.s,t-n.t),r=new M(n.n);r.a<r.c.c.length;)i=u(E(r),209),ffe(i,i.e+e-n.s),hfe(i,i.f+t-n.t);n.s=e,n.t=t}function K9e(n){var e,t,i,r,c;for(t=0,r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),125),i.d=t++;return e=Xye(n),c=null,e.c.length>1&&(c=N9e(n,e)),c}function EBn(n){var e;return e=$(B(z(n,(He(),Jj))))*y.Math.sqrt((!n.a&&(n.a=new q(Ye,n,10,11)),n.a).i),new V(e,e/$(B(z(n,rA))))}function Px(n){var e;return n.f&&n.f.Vh()&&(e=u(n.f,54),n.f=u(ta(n,e),84),n.f!=e&&n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,9,8,e,n.f))),n.f}function Ix(n){var e;return n.i&&n.i.Vh()&&(e=u(n.i,54),n.i=u(ta(n,e),84),n.i!=e&&n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,9,7,e,n.i))),n.i}function br(n){var e;return n.b&&n.b.Db&64&&(e=n.b,n.b=u(ta(n,e),19),n.b!=e&&n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,9,21,e,n.b))),n.b}function uS(n,e){var t,i,r;n.d==null?(++n.e,++n.f):(i=e.Bi(),uCe(n,n.f+1),r=(i&et)%n.d.length,t=n.d[r],!t&&(t=n.d[r]=n.dk()),t.Fc(e),++n.f)}function lZ(n,e,t){var i;return e.tk()?!1:e.Ik()!=-2?(i=e.ik(),i==null?t==null:ct(i,t)):e.qk()==n.e.Dh()&&t==null}function oS(){var n;Mo(16,$zn),n=oxn(16),this.b=F(UF,Ey,302,n,0,1),this.c=F(UF,Ey,302,n,0,1),this.a=null,this.e=null,this.i=0,this.f=n-1,this.g=0}function Cl(n){pV.call(this),this.k=(Vn(),Xt),this.j=(Mo(6,m0),new Gc(6)),this.b=(Mo(2,m0),new Gc(2)),this.d=new sL,this.f=new YG,this.a=n}function B9e(n){var e,t;n.c.length<=1||(e=Pqn(n,(en(),ae)),b_n(n,u(e.a,17).a,u(e.b,17).a),t=Pqn(n,Wn),b_n(n,u(t.a,17).a,u(t.b,17).a))}function F9e(n,e,t){var i,r;for(r=n.a.b,i=r.c.length;i<t;i++)ab(r,r.c.length,new Nc(n.a));$i(e,(Nn(t-1,r.c.length),u(r.c[t-1],30))),n.b[e.p]=t}function MBn(n,e){var t,i,r;for(n.b[e.g]=1,i=ge(e.d,0);i.b!=i.d.c;)t=u(be(i),65),r=t.c,n.b[r.g]==1?Re(n.a,t):n.b[r.g]==2?n.b[r.g]=1:MBn(n,r)}function TBn(n,e,t,i){var r,c,s;for(r=u(ot(i?n.a:n.b,e),21),s=r.Kc();s.Ob();)if(c=u(s.Pb(),27),NS(n,t,c))return!0;return!1}function Ox(n){var e,t;for(t=new ne(n);t.e!=t.i.gc();)if(e=u(ue(t),89),e.e||(!e.d&&(e.d=new ti(jr,e,1)),e.d).i!=0)return!0;return!1}function Ax(n){var e,t;for(t=new ne(n);t.e!=t.i.gc();)if(e=u(ue(t),89),e.e||(!e.d&&(e.d=new ti(jr,e,1)),e.d).i!=0)return!0;return!1}function _9e(n){var e,t,i;for(e=0,i=new M(n.c.a);i.a<i.c.c.length;)t=u(E(i),10),e+=wl(new ie(ce(Qt(t).a.Kc(),new En)));return e/n.c.a.c.length}function Lx(){Lx=R,nan=(ER(),J1n),Z1n=new ob(8),new Di((He(),M1),Z1n),new Di(qd,8),hue=V1n,Q1n=tue,Y1n=iue,fue=new Di(Gj,(_n(),!1))}function H9e(n,e,t){var i;t.Ug("Shrinking tree compaction",1),on(un(v(e,(Wm(),I8))))?(J4e(n,e.f),JDn(e.f,(i=e.c,i))):JDn(e.f,e.c),t.Vg()}function aZ(n,e,t,i){switch(e){case 7:return!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e;case 8:return!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d}return $Y(n,e,t,i)}function Nx(n){var e;return n.a&&n.a.Vh()&&(e=u(n.a,54),n.a=u(ta(n,e),142),n.a!=e&&n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,9,5,e,n.a))),n.a}function bd(n){return n<48||n>102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function Dx(n,e){if(n==null)throw T(new fp("null key in entry: null="+e));if(e==null)throw T(new fp("null value in entry: "+n+"=null"))}function q9e(n,e){for(var t,i;n.Ob();)if(!e.Ob()||(t=n.Pb(),i=e.Pb(),!(x(t)===x(i)||t!=null&&ct(t,i))))return!1;return!e.Ob()}function CBn(n,e){var t;return t=S(C(Ii,1),Cr,28,15,[Z$(n.a[0],e),Z$(n.a[1],e),Z$(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function SBn(n,e){var t;return t=S(C(Ii,1),Cr,28,15,[$C(n.a[0],e),$C(n.a[1],e),$C(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function dZ(n,e,t){Ep(u(v(e,(cn(),_t)),101))||(SJ(n,e,h1(e,t)),SJ(n,e,h1(e,(en(),ae))),SJ(n,e,h1(e,Xn)),Ln(),Yt(e.j,new N7n(n)))}function PBn(n){var e,t;for(n.c||sAe(n),t=new Tu,e=new M(n.a),E(e);e.a<e.c.c.length;)Re(t,u(E(e),418).a);return oe(t.b!=0),Xo(t,t.c.b),t}function U9e(n,e,t){var i,r,c,s,f;for(f=n.r+e,n.r+=e,n.d+=t,i=t/n.n.c.length,r=0,s=new M(n.n);s.a<s.c.c.length;)c=u(E(s),209),iTe(c,f,i,r),++r}function G9e(n){var e,t,i;for(n.b.a.$b(),n.a=F(aI,Rn,60,n.c.c.a.b.c.length,0,1),e=0,i=new M(n.c.c.a.b);i.a<i.c.c.length;)t=u(E(i),60),t.f=e++}function z9e(n){var e,t,i;for(n.b.a.$b(),n.a=F(M_,Rn,86,n.c.a.a.b.c.length,0,1),e=0,i=new M(n.c.a.a.b);i.a<i.c.c.length;)t=u(E(i),86),t.i=e++}function IBn(n){var e;if(e=x6e(n),!pe(n))throw T(new Or("position (0) must be less than the number of elements that remained ("+e+")"));return fe(n)}function X9e(n,e){var t;return n.a||(t=F(Ii,Cr,28,0,15,1),lg(n.b.a,new v9n(t)),Pyn(t,I$n(pE.prototype.Me,pE,[])),n.a=new uPn(t,n.d)),WT(n.a,e)}function OBn(n,e,t){var i;try{return Fg(n,e+n.j,t+n.k)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function V9e(n,e,t){var i;try{return NBn(n,e+n.j,t+n.k)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function W9e(n,e,t){var i;try{return DBn(n,e+n.j,t+n.k)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function ABn(n){switch(n.g){case 1:return en(),Wn;case 4:return en(),Xn;case 3:return en(),Zn;case 2:return en(),ae;default:return en(),sc}}function J9e(n,e,t){e.k==(Vn(),Xt)&&t.k==Ti&&(n.d=ix(e,(en(),ae)),n.b=ix(e,Xn)),t.k==Xt&&e.k==Ti&&(n.d=ix(t,(en(),Xn)),n.b=ix(t,ae))}function $x(n,e){var t,i,r;for(r=uc(n,e),i=r.Kc();i.Ob();)if(t=u(i.Pb(),12),v(t,(W(),Xu))!=null||O6(new Lf(t.b)))return!0;return!1}function Q9e(n,e,t){t.Ug("Linear segments node placement",1),n.b=u(v(e,(W(),E2)),312),RNe(n,e),dOe(n,e),AOe(n,e),bNe(n),n.a=null,n.b=null,t.Vg()}function bZ(n,e){return eu(e,n.e+n.d+(n.c.c.length==0?0:n.b)),tu(e,n.f),n.a=y.Math.max(n.a,e.f),n.d+=e.g+(n.c.c.length==0?0:n.b),nn(n.c,e),!0}function Y9e(n,e,t){var i,r,c,s;for(s=0,i=t/n.a.c.length,c=new M(n.a);c.a<c.c.c.length;)r=u(E(c),172),_k(r,r.s,r.t+s*i),U9e(r,n.d-r.r+e,i),++s}function Z9e(n,e){var t,i,r,c,s,f;for(r=e.length-1,s=0,f=0,i=0;i<=r;i++)c=e[i],t=pje(r,i)*gY(1-n,r-i)*gY(n,i),s+=c.a*t,f+=c.b*t;return new V(s,f)}function LBn(n,e){var t,i,r,c,s;for(t=e.gc(),n._i(n.i+t),c=e.Kc(),s=n.i,n.i+=t,i=s;i<n.i;++i)r=c.Pb(),P6(n,i,n.Zi(i,r)),n.Mi(i,r),n.Ni();return t!=0}function n7e(n,e,t){var i,r,c;return n.Pj()?(i=n.Ej(),c=n.Qj(),++n.j,n.qj(i,n.Zi(i,e)),r=n.Ij(3,null,e,i,c),t?t.nj(r):t=r):ISn(n,n.Ej(),e),t}function e7e(n,e,t){var i,r,c;return i=u(N(Pc(n.a),e),89),c=(r=i.c,L(r,90)?u(r,29):(An(),Os)),(c.Db&64?ta(n.b,c):c)==t?KS(i):Bm(i,t),c}function t7e(n){var e;return n==null?null:new q1((e=Rc(n,!0),e.length>0&&(zn(0,e.length),e.charCodeAt(0)==43)?(zn(1,e.length+1),e.substr(1)):e))}function i7e(n){var e;return n==null?null:new q1((e=Rc(n,!0),e.length>0&&(zn(0,e.length),e.charCodeAt(0)==43)?(zn(1,e.length+1),e.substr(1)):e))}function wZ(n,e,t,i,r,c,s,f){var h,l;i&&(h=i.a[0],h&&wZ(n,e,t,h,r,c,s,f),qx(n,t,i.d,r,c,s,f)&&e.Fc(i),l=i.a[1],l&&wZ(n,e,t,l,r,c,s,f))}function Fg(n,e,t){try{return cb(M$(n,e,t),1)}catch(i){throw i=Ot(i),L(i,333)?T(new Or(GK+n.o+"*"+n.p+zK+e+ur+t+XK)):T(i)}}function NBn(n,e,t){try{return cb(M$(n,e,t),0)}catch(i){throw i=Ot(i),L(i,333)?T(new Or(GK+n.o+"*"+n.p+zK+e+ur+t+XK)):T(i)}}function DBn(n,e,t){try{return cb(M$(n,e,t),2)}catch(i){throw i=Ot(i),L(i,333)?T(new Or(GK+n.o+"*"+n.p+zK+e+ur+t+XK)):T(i)}}function $Bn(n,e){if(n.g==-1)throw T(new Mu);n.Xj();try{n.d.hd(n.g,e),n.f=n.d.j}catch(t){throw t=Ot(t),L(t,77)?T(new Ko):T(t)}}function r7e(n){var e,t,i,r,c;for(i=new M(n.b);i.a<i.c.c.length;)for(t=u(E(i),30),e=0,c=new M(t.a);c.a<c.c.c.length;)r=u(E(c),10),r.p=e++}function T5(n,e){var t,i,r,c;for(c=n.gc(),e.length<c&&(e=HE(new Array(c),e)),r=e,i=n.Kc(),t=0;t<c;++t)$t(r,t,i.Pb());return e.length>c&&$t(e,c,null),e}function c7e(n,e){var t,i;if(i=n.gc(),e==null){for(t=0;t<i;t++)if(n.Xb(t)==null)return t}else for(t=0;t<i;t++)if(ct(e,n.Xb(t)))return t;return-1}function xx(n,e){var t,i,r;return t=e.ld(),r=e.md(),i=n.xc(t),!(!(x(r)===x(i)||r!=null&&ct(r,i))||i==null&&!n._b(t))}function u7e(n,e){var t,i,r;return e<=22?(t=n.l&(1<<e)-1,i=r=0):e<=44?(t=n.l,i=n.m&(1<<e-22)-1,r=0):(t=n.l,i=n.m,r=n.h&(1<<e-44)-1),Yc(t,i,r)}function o7e(n,e){switch(e.g){case 1:return n.f.n.d+n.t;case 3:return n.f.n.a+n.t;case 2:return n.f.n.c+n.s;case 4:return n.f.n.b+n.s;default:return 0}}function s7e(n,e){var t,i;switch(i=e.c,t=e.a,n.b.g){case 0:t.d=n.e-i.a-i.d;break;case 1:t.d+=n.e;break;case 2:t.c=n.e-i.a-i.d;break;case 3:t.c=n.e+i.d}}function gZ(n,e,t,i){var r,c;this.a=e,this.c=i,r=n.a,zse(this,new V(-r.c,-r.d)),it(this.b,t),c=i/2,e.a?A6(this.b,0,c):A6(this.b,c,0),nn(n.c,this)}function xBn(n,e,t,i){var r;this.c=n,this.d=e,r=new Mt,xt(r,t,r.c.b,r.c),this.a=r,this.b=u(v(i,(lc(),pw)),88),this.e=$(B(v(i,Aln))),Ezn(this)}function sS(){sS=R,jq=new mM(kh,0),e1n=new mM(WXn,1),t1n=new mM("EDGE_LENGTH_BY_POSITION",2),n1n=new mM("CROSSING_MINIMIZATION_BY_POSITION",3)}function Rx(n,e){var t,i;if(t=u(Ng(n.g,e),27),t)return t;if(i=u(Ng(n.j,e),123),i)return i;throw T(new eh("Referenced shape does not exist: "+e))}function pZ(n,e){var t,i;if(L(e,253)){i=u(e,253);try{return t=n.Ed(i),t==0}catch(r){if(r=Ot(r),L(r,212))return!1;throw T(r)}}return!1}function f7e(n,e){if(n.c==e)return n.d;if(n.d==e)return n.c;throw T(new Gn("Node 'one' must be either source or target of edge 'edge'."))}function h7e(n,e){if(n.c.i==e)return n.d.i;if(n.d.i==e)return n.c.i;throw T(new Gn("Node "+e+" is neither source nor target of edge "+n))}function l7e(n,e,t){t.Ug("Self-Loop ordering",1),Ut(_r(ut(ut(rc(new Cn(null,new On(e.b,16)),new t2n),new i2n),new r2n),new c2n),new c7n(n)),t.Vg()}function a7e(n,e){var t;switch(e.g){case 2:case 4:t=n.a,n.c.d.n.b<t.d.n.b&&(t=n.c),Vl(n,e,(xf(),R_),t);break;case 1:case 3:Vl(n,e,(xf(),j3),null)}}function Kx(n,e,t,i,r,c){var s,f,h,l,a;for(s=ake(e,t,c),f=t==(en(),Xn)||t==Wn?-1:1,l=n[t.g],a=0;a<l.length;a++)h=l[a],h>0&&(h+=r),l[a]=s,s+=f*(h+i)}function RBn(n){var e,t,i;for(i=n.f,n.n=F(Ii,Cr,28,i,15,1),n.d=F(Ii,Cr,28,i,15,1),e=0;e<i;e++)t=u(sn(n.c.b,e),30),n.n[e]=fBn(n,t),n.d[e]=eqn(n,t)}function Bx(n,e){var t,i,r;for(r=0,i=2;i<e;i<<=1)n.Db&i&&++r;if(r==0){for(t=e<<=1;t<=128;t<<=1)if(n.Db&t)return 0;return-1}else return r}function KBn(n,e){var t,i,r,c,s;for(s=ru(n.e.Dh(),e),c=null,t=u(n.g,124),r=0;r<n.i;++r)i=t[r],s.am(i.Lk())&&(!c&&(c=new jE),ve(c,i));c&&uzn(n,c)}function BBn(n){var e,t,i;if(!n)return null;if(n.dc())return"";for(i=new Hl,t=n.Kc();t.Ob();)e=t.Pb(),Er(i,Ae(e)),i.a+=" ";return bN(i,i.a.length-1)}function FBn(n,e){var t=new Array(e),i;switch(n){case 14:case 15:i=0;break;case 16:i=!1;break;default:return t}for(var r=0;r<e;++r)t[r]=i;return t}function Rb(n){var e,t,i;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),60),e.c.$b();hl(n.d)?i=n.a.c:i=n.a.d,nu(i,new O9n(n)),n.c.df(n),vqn(n)}function _Bn(n){var e,t,i,r;for(t=new M(n.e.c);t.a<t.c.c.length;){for(e=u(E(t),289),r=new M(e.b);r.a<r.c.c.length;)i=u(E(r),453),_en(i);W_n(e)}}function fS(n){var e,t,i,r,c;for(i=0,c=0,r=0,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),172),c=y.Math.max(c,e.r),i+=e.d+(r>0?n.c:0),++r;n.b=i,n.d=c}function HBn(n,e){var t;return t=S(C(Ii,1),Cr,28,15,[hZ(n,(wf(),bc),e),hZ(n,Wc,e),hZ(n,wc,e)]),n.f&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function d7e(n,e,t){var i;try{xS(n,e+n.j,t+n.k,!1,!0)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function b7e(n,e,t){var i;try{xS(n,e+n.j,t+n.k,!0,!1)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function qBn(n){var e;kt(n,(cn(),hw))&&(e=u(v(n,hw),21),e.Hc((l0(),Qs))?(e.Mc(Qs),e.Fc(Ys)):e.Hc(Ys)&&(e.Mc(Ys),e.Fc(Qs)))}function UBn(n){var e;kt(n,(cn(),hw))&&(e=u(v(n,hw),21),e.Hc((l0(),nf))?(e.Mc(nf),e.Fc(Ts)):e.Hc(Ts)&&(e.Mc(Ts),e.Fc(nf)))}function Fx(n,e,t,i){var r,c,s,f;return n.a==null&&gje(n,e),s=e.b.j.c.length,c=t.d.p,f=i.d.p,r=f-1,r<0&&(r=s-1),c<=r?n.a[r]-n.a[c]:n.a[s-1]-n.a[c]+n.a[r]}function w7e(n){var e,t;if(!n.b)for(n.b=BT(u(n.f,27).kh().i),t=new ne(u(n.f,27).kh());t.e!=t.i.gc();)e=u(ue(t),135),nn(n.b,new pL(e));return n.b}function g7e(n){var e,t;if(!n.e)for(n.e=BT(mD(u(n.f,27)).i),t=new ne(mD(u(n.f,27)));t.e!=t.i.gc();)e=u(ue(t),123),nn(n.e,new Rkn(e));return n.e}function GBn(n){var e,t;if(!n.a)for(n.a=BT(CT(u(n.f,27)).i),t=new ne(CT(u(n.f,27)));t.e!=t.i.gc();)e=u(ue(t),27),nn(n.a,new TN(n,e));return n.a}function Kb(n){var e;if(!n.C&&(n.D!=null||n.B!=null))if(e=iLe(n),e)n.hl(e);else try{n.hl(null)}catch(t){if(t=Ot(t),!L(t,63))throw T(t)}return n.C}function p7e(n){switch(n.q.g){case 5:wFn(n,(en(),Xn)),wFn(n,ae);break;case 4:mGn(n,(en(),Xn)),mGn(n,ae);break;default:k_n(n,(en(),Xn)),k_n(n,ae)}}function m7e(n){switch(n.q.g){case 5:gFn(n,(en(),Zn)),gFn(n,Wn);break;case 4:vGn(n,(en(),Zn)),vGn(n,Wn);break;default:y_n(n,(en(),Zn)),y_n(n,Wn)}}function _g(n,e){var t,i,r;for(r=new Ni,i=n.Kc();i.Ob();)t=u(i.Pb(),36),S4(t,r.a,0),r.a+=t.f.a+e,r.b=y.Math.max(r.b,t.f.b);return r.b>0&&(r.b+=e),r}function hS(n,e){var t,i,r;for(r=new Ni,i=n.Kc();i.Ob();)t=u(i.Pb(),36),S4(t,0,r.b),r.b+=t.f.b+e,r.a=y.Math.max(r.a,t.f.a);return r.a>0&&(r.a+=e),r}function zBn(n){var e,t,i;for(i=et,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),10),kt(e,(W(),dt))&&(i=y.Math.min(i,u(v(e,dt),17).a));return i}function XBn(n,e){var t,i;if(e.length==0)return 0;for(t=pD(n.a,e[0],(en(),Wn)),t+=pD(n.a,e[e.length-1],Zn),i=0;i<e.length;i++)t+=eje(n,i,e);return t}function VBn(){x5(),this.c=new Z,this.i=new Z,this.e=new rh,this.f=new rh,this.g=new rh,this.j=new Z,this.a=new Z,this.b=new de,this.k=new de}function _x(n,e){var t,i;return n.Db>>16==6?n.Cb.Th(n,5,Ef,e):(i=br(u($n((t=u(Un(n,16),29),t||n.ii()),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function v7e(n){Om();var e=n.e;if(e&&e.stack){var t=e.stack,i=e+`
`;return t.substring(0,i.length)==i&&(t=t.substring(i.length)),t.split(`
`)}return[]}function k7e(n){var e;return e=(J$n(),wQn),e[n>>>28]|e[n>>24&15]<<4|e[n>>20&15]<<8|e[n>>16&15]<<12|e[n>>12&15]<<16|e[n>>8&15]<<20|e[n>>4&15]<<24|e[n&15]<<28}function WBn(n){var e,t,i;n.b==n.c&&(i=n.a.length,t=WQ(y.Math.max(8,i))<<1,n.b!=0?(e=xs(n.a,t),lxn(n,e,i),n.a=e,n.b=0):Sw(n.a,t),n.c=i)}function y7e(n,e){var t;return t=n.b,t.pf((He(),oo))?t.ag()==(en(),Wn)?-t.Mf().a-$(B(t.of(oo))):e+$(B(t.of(oo))):t.ag()==(en(),Wn)?-t.Mf().a:e}function Hk(n){var e;return n.b.c.length!=0&&u(sn(n.b,0),72).a?u(sn(n.b,0),72).a:(e=vD(n),e??""+(n.c?qr(n.c.a,n,0):-1))}function lS(n){var e;return n.f.c.length!=0&&u(sn(n.f,0),72).a?u(sn(n.f,0),72).a:(e=vD(n),e??""+(n.i?qr(n.i.j,n,0):-1))}function j7e(n,e){var t,i;if(e<0||e>=n.gc())return null;for(t=e;t<n.gc();++t)if(i=u(n.Xb(t),131),t==n.gc()-1||!i.o)return new bi(Y(t),i);return null}function E7e(n,e,t){var i,r,c,s,f;for(c=n.c,f=t?e:n,i=t?n:e,r=f.p+1;r<i.p;++r)if(s=u(sn(c.a,r),10),!(s.k==(Vn(),Gf)||Q7e(s)))return!1;return!0}function mZ(n){var e,t,i,r,c;for(c=0,r=li,i=0,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),172),c+=e.r+(i>0?n.c:0),r=y.Math.max(r,e.d),++i;n.e=c,n.b=r}function M7e(n){var e,t;if(!n.b)for(n.b=BT(u(n.f,123).kh().i),t=new ne(u(n.f,123).kh());t.e!=t.i.gc();)e=u(ue(t),135),nn(n.b,new pL(e));return n.b}function T7e(n,e){var t,i,r;if(e.dc())return pm(),pm(),lE;for(t=new LSn(n,e.gc()),r=new ne(n);r.e!=r.i.gc();)i=ue(r),e.Hc(i)&&ve(t,i);return t}function vZ(n,e,t,i){return e==0?i?(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),n.o):(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),ik(n.o)):tS(n,e,t,i)}function Hx(n){var e,t;if(n.rb)for(e=0,t=n.rb.i;e<t;++e)C7(N(n.rb,e));if(n.vb)for(e=0,t=n.vb.i;e<t;++e)C7(N(n.vb,e));R6((Lu(),zi),n),n.Bb|=1}function Et(n,e,t,i,r,c,s,f,h,l,a,d,g,p){return I_n(n,e,i,null,r,c,s,f,h,l,g,!0,p),AY(n,a),L(n.Cb,90)&&h0(Zu(u(n.Cb,90)),2),t&&OQ(n,t),LY(n,d),n}function C7e(n){var e,t;if(n==null)return null;t=0;try{t=So(n,Wi,et)&ui}catch(i){if(i=Ot(i),L(i,130))e=iC(n),t=e[0];else throw T(i)}return mk(t)}function S7e(n){var e,t;if(n==null)return null;t=0;try{t=So(n,Wi,et)&ui}catch(i){if(i=Ot(i),L(i,130))e=iC(n),t=e[0];else throw T(i)}return mk(t)}function P7e(n,e){var t,i,r;return r=n.h-e.h,r<0||(t=n.l-e.l,i=n.m-e.m+(t>>22),r+=i>>22,r<0)?!1:(n.l=t&ro,n.m=i&ro,n.h=r&Ol,!0)}function qx(n,e,t,i,r,c,s){var f,h;return!(e.Te()&&(h=n.a.Ne(t,i),h<0||!r&&h==0)||e.Ue()&&(f=n.a.Ne(t,c),f>0||!s&&f==0))}function I7e(n,e){r4();var t;if(t=n.j.g-e.j.g,t!=0)return 0;switch(n.j.g){case 2:return fx(e,jsn)-fx(n,jsn);case 4:return fx(n,ysn)-fx(e,ysn)}return 0}function O7e(n){switch(n.g){case 0:return Y_;case 1:return Z_;case 2:return nH;case 3:return eH;case 4:return JI;case 5:return tH;default:return null}}function $r(n,e,t){var i,r;return i=(r=new lL,ad(r,e),zc(r,t),ve((!n.c&&(n.c=new q(vw,n,12,10)),n.c),r),r),e1(i,0),Zw(i,1),u1(i,!0),c1(i,!0),i}function Jp(n,e){var t,i;if(e>=n.i)throw T(new aN(e,n.i));return++n.j,t=n.g[e],i=n.i-e-1,i>0&&Oc(n.g,e+1,n.g,e,i),$t(n.g,--n.i,null),n.Qi(e,t),n.Ni(),t}function JBn(n,e){var t,i;return n.Db>>16==17?n.Cb.Th(n,21,Ss,e):(i=br(u($n((t=u(Un(n,16),29),t||n.ii()),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function A7e(n){var e,t,i,r;for(Ln(),Yt(n.c,n.a),r=new M(n.c);r.a<r.c.c.length;)for(i=E(r),t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),693),e.bf(i)}function L7e(n){var e,t,i,r;for(Ln(),Yt(n.c,n.a),r=new M(n.c);r.a<r.c.c.length;)for(i=E(r),t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),382),e.bf(i)}function N7e(n){var e,t,i,r,c;for(r=et,c=null,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),218),t.d.j^t.e.j&&(e=t.e.e-t.d.e-t.a,e<r&&(r=e,c=t));return c}function kZ(){kZ=R,hZn=new Tn(Vtn,(_n(),!1)),oZn=new Tn(Wtn,100),kon=(n5(),j_),sZn=new Tn(Jtn,kon),fZn=new Tn(Qtn,vh),lZn=new Tn(Ytn,Y(et))}function QBn(n,e,t){var i,r,c,s,f,h,l,a;for(l=0,r=n.a[e],c=0,s=r.length;c<s;++c)for(i=r[c],a=b5(i,t),h=a.Kc();h.Ob();)f=u(h.Pb(),12),Ve(n.f,f,Y(l++))}function D7e(n,e,t){var i,r,c,s;if(t)for(r=t.a.length,i=new Qa(r),s=(i.b-i.a)*i.c<0?(_1(),Ra):new U1(i);s.Ob();)c=u(s.Pb(),17),In(n,e,Zp(Jw(t,c.a)))}function $7e(n,e,t){var i,r,c,s;if(t)for(r=t.a.length,i=new Qa(r),s=(i.b-i.a)*i.c<0?(_1(),Ra):new U1(i);s.Ob();)c=u(s.Pb(),17),In(n,e,Zp(Jw(t,c.a)))}function yZ(n){oa();var e;return e=u(T5(Cp(n.k),F(lr,Tc,64,2,0,1)),126),xm(e,0,e.length,null),e[0]==(en(),Xn)&&e[1]==Wn&&($t(e,0,Wn),$t(e,1,Xn)),e}function YBn(n,e,t){var i,r,c;return r=ECe(n,e,t),c=hen(n,r),u$(n.b),FD(n,e,t),Ln(),Yt(r,new q7n(n)),i=hen(n,r),u$(n.b),FD(n,t,e),new bi(Y(c),Y(i))}function ZBn(){ZBn=R,Die=Fe(new ii,(Vi(),zr),(tr(),A8)),AO=new Lt("linearSegments.inputPrio",Y(0)),LO=new Lt("linearSegments.outputPrio",Y(0))}function Qp(){Qp=R,NO=new gM("P1_TREEIFICATION",0),n9=new gM("P2_NODE_ORDERING",1),e9=new gM("P3_NODE_PLACEMENT",2),t9=new gM("P4_EDGE_ROUTING",3)}function x7e(n){var e,t,i,r;for(t=0,e=0,r=new ne(n);r.e!=r.i.gc();)i=u(ue(r),27),t=y.Math.max(i.g+i.i,t),e=y.Math.max(i.f+i.j,e);return new V(t,e)}function R7e(n,e){var t,i,r,c;for(c=0,i=new M(n);i.a<i.c.c.length;)t=u(E(i),27),c+=y.Math.pow(t.g*t.f-e,2);return r=y.Math.sqrt(c/(n.c.length-1)),r}function Co(){Co=R,Zj=new kM("UNKNOWN",0),nl=new kM("ABOVE",1),Pa=new kM("BELOW",2),Yj=new kM("INLINE",3),new Lt("org.eclipse.elk.labelSide",Zj)}function nFn(n,e){var t;if(n.Yi()&&e!=null){for(t=0;t<n.i;++t)if(ct(e,n.g[t]))return t}else for(t=0;t<n.i;++t)if(x(n.g[t])===x(e))return t;return-1}function K7e(n,e,t){var i,r;return e.c==(gr(),Jc)&&t.c==Vu?-1:e.c==Vu&&t.c==Jc?1:(i=_Rn(e.a,n.a),r=_Rn(t.a,n.a),e.c==Jc?r-i:i-r)}function u0(n,e,t){if(t&&(e<0||e>t.a.c.length))throw T(new Gn("index must be >= 0 and <= layer node count"));n.c&&du(n.c.a,n),n.c=t,t&&ab(t.a,e,n)}function eFn(n,e){var t,i,r;for(i=new ie(ce(Ml(n).a.Kc(),new En));pe(i);)return t=u(fe(i),18),r=u(e.Kb(t),10),new TE(Pe(r.n.b+r.o.b/2));return Qv(),Qv(),FF}function tFn(n,e){this.c=new de,this.a=n,this.b=e,this.d=u(v(n,(W(),E2)),312),x(v(n,(cn(),uhn)))===x((ok(),QI))?this.e=new Qyn:this.e=new Jyn}function C5(n,e){var t,i;return i=null,n.pf((He(),D3))&&(t=u(n.of(D3),96),t.pf(e)&&(i=t.of(e))),i==null&&n.Tf()&&(i=n.Tf().of(e)),i==null&&(i=rn(e)),i}function Ux(n,e){var t,i;t=n.fd(e);try{return i=t.Pb(),t.Qb(),i}catch(r){throw r=Ot(r),L(r,112)?T(new Or("Can't remove element "+e)):T(r)}}function B7e(n,e){var t,i,r;if(i=new WE,r=new YQ(i.q.getFullYear()-la,i.q.getMonth(),i.q.getDate()),t=JIe(n,e,r),t==0||t<e.length)throw T(new Gn(e));return r}function jZ(n,e){var t,i,r;for(Jn(e),tV(e!=n),r=n.b.c.length,i=e.Kc();i.Ob();)t=i.Pb(),nn(n.b,Jn(t));return r!=n.b.c.length?(oY(n,0),!0):!1}function qk(){qk=R,Mon=(He(),Xj),new Di(Qq,(_n(),!0)),dZn=Hd,bZn=_2,wZn=Sa,aZn=F2,Con=Vj,gZn=W0,Eon=(kZ(),hZn),yon=sZn,jon=fZn,Ton=lZn,EI=oZn}function F7e(n,e){if(e==n.c)return n.d;if(e==n.d)return n.c;throw T(new Gn("'port' must be either the source port or target port of the edge."))}function _7e(n,e,t){var i,r;switch(r=n.o,i=n.d,e.g){case 1:return-i.d-t;case 3:return r.b+i.a+t;case 2:return r.a+i.c+t;case 4:return-i.b-t;default:return 0}}function EZ(n,e,t,i){var r,c,s,f;for($i(e,u(i.Xb(0),30)),f=i.kd(1,i.gc()),c=u(t.Kb(e),20).Kc();c.Ob();)r=u(c.Pb(),18),s=r.c.i==e?r.d.i:r.c.i,EZ(n,s,t,f)}function iFn(n){var e;return e=new de,kt(n,(W(),wH))?u(v(n,wH),85):(Ut(ut(new Cn(null,new On(n.j,16)),new S2n),new h7n(e)),U(n,wH,e),e)}function rFn(n,e){var t,i,r,c,s;for(i=0,r=0,t=0,s=new M(n);s.a<s.c.c.length;)c=u(E(s),186),i=y.Math.max(i,c.e),r+=c.b+(t>0?e:0),++t;return new V(i,r)}function MZ(n,e){var t,i;return n.Db>>16==6?n.Cb.Th(n,6,Vt,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),bA)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function TZ(n,e){var t,i;return n.Db>>16==7?n.Cb.Th(n,1,uE,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),Pdn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function CZ(n,e){var t,i;return n.Db>>16==9?n.Cb.Th(n,9,Ye,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),Odn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function cFn(n,e){var t,i;return n.Db>>16==5?n.Cb.Th(n,9,EA,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),P1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function uFn(n,e){var t,i;return n.Db>>16==7?n.Cb.Th(n,6,Ef,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),O1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function SZ(n,e){var t,i;return n.Db>>16==3?n.Cb.Th(n,0,sE,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),S1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function oFn(){this.a=new avn,this.g=new oS,this.j=new oS,this.b=new de,this.d=new oS,this.i=new oS,this.k=new de,this.c=new de,this.e=new de,this.f=new de}function H7e(n,e,t){var i,r,c;for(t<0&&(t=0),c=n.i,r=t;r<c;r++)if(i=N(n,r),e==null){if(i==null)return r}else if(x(e)===x(i)||ct(e,i))return r;return-1}function q7e(n,e){var t,i;return t=e.qi(n.a),t?(i=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),nI)),Sn(Qy,i)?R6(n,jo(e.qk())):i):null}function p4(n,e){var t,i;if(e){if(e==n)return!0;for(t=0,i=u(e,54).Ph();i&&i!=e;i=i.Ph()){if(++t>IK)return p4(n,i);if(i==n)return!0}}return!1}function U7e(n){switch(BM(),n.q.g){case 5:U_n(n,(en(),Xn)),U_n(n,ae);break;case 4:GHn(n,(en(),Xn)),GHn(n,ae);break;default:VGn(n,(en(),Xn)),VGn(n,ae)}}function G7e(n){switch(BM(),n.q.g){case 5:fHn(n,(en(),Zn)),fHn(n,Wn);break;case 4:dBn(n,(en(),Zn)),dBn(n,Wn);break;default:WGn(n,(en(),Zn)),WGn(n,Wn)}}function z7e(n){var e,t;e=u(v(n,(Us(),nZn)),17),e?(t=e.a,t==0?U(n,(Y1(),jI),new dx):U(n,(Y1(),jI),new qT(t))):U(n,(Y1(),jI),new qT(1))}function X7e(n,e){var t;switch(t=n.i,e.g){case 1:return-(n.n.b+n.o.b);case 2:return n.n.a-t.o.a;case 3:return n.n.b-t.o.b;case 4:return-(n.n.a+n.o.a)}return 0}function V7e(n,e){switch(n.g){case 0:return e==(Yo(),ja)?HI:qI;case 1:return e==(Yo(),ja)?HI:bj;case 2:return e==(Yo(),ja)?bj:qI;default:return bj}}function Uk(n,e){var t,i,r;for(du(n.a,e),n.e-=e.r+(n.a.c.length==0?0:n.c),r=Drn,i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),172),r=y.Math.max(r,t.d);n.b=r}function PZ(n,e){var t,i;return n.Db>>16==3?n.Cb.Th(n,12,Ye,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),Sdn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function IZ(n,e){var t,i;return n.Db>>16==11?n.Cb.Th(n,10,Ye,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),Idn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function sFn(n,e){var t,i;return n.Db>>16==10?n.Cb.Th(n,11,Ss,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),I1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function fFn(n,e){var t,i;return n.Db>>16==10?n.Cb.Th(n,12,Ps,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),ig)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function gs(n){var e;return!(n.Bb&1)&&n.r&&n.r.Vh()&&(e=u(n.r,54),n.r=u(ta(n,e),142),n.r!=e&&n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,9,8,e,n.r))),n.r}function Gx(n,e,t){var i;return i=S(C(Ii,1),Cr,28,15,[enn(n,(wf(),bc),e,t),enn(n,Wc,e,t),enn(n,wc,e,t)]),n.f&&(i[0]=y.Math.max(i[0],i[2]),i[2]=i[0]),i}function W7e(n,e){var t,i,r;if(r=v9e(n,e),r.c.length!=0)for(Yt(r,new Pgn),t=r.c.length,i=0;i<t;i++)j4(n,(Nn(i,r.c.length),u(r.c[i],292)),mSe(n,r,i))}function J7e(n){var e,t,i,r;for(r=u(ot(n.a,(o0(),UI)),15).Kc();r.Ob();)for(i=u(r.Pb(),105),t=Cp(i.k).Kc();t.Ob();)e=u(t.Pb(),64),Mm(n,i,e,(Ob(),ka),1)}function Q7e(n){var e,t;if(n.k==(Vn(),Ti)){for(t=new ie(ce(Ml(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),!fr(e)&&n.c==xZ(e,n).c)return!0}return!1}function Y7e(n){var e,t;if(n.k==(Vn(),Ti)){for(t=new ie(ce(Ml(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),!fr(e)&&e.c.i.c==e.d.i.c)return!0}return!1}function Z7e(n,e){var t,i,r,c,s;if(e)for(r=e.a.length,t=new Qa(r),s=(t.b-t.a)*t.c<0?(_1(),Ra):new U1(t);s.Ob();)c=u(s.Pb(),17),i=Lm(e,c.a),i&&KHn(n,i)}function nke(){$z();var n,e;for(_Ne((z1(),Hn)),ANe(Hn),Hx(Hn),Udn=(An(),Zf),e=new M(Zdn);e.a<e.c.c.length;)n=u(E(e),248),N4(n,Zf,null);return!0}function OZ(n,e){var t,i,r,c,s,f,h,l;return h=n.h>>19,l=e.h>>19,h!=l?l-h:(r=n.h,f=e.h,r!=f?r-f:(i=n.m,s=e.m,i!=s?i-s:(t=n.l,c=e.l,t-c)))}function aS(){aS=R,Gun=(DS(),s_),Uun=new Tn(Ptn,Gun),qun=(cC(),o_),Hun=new Tn(Itn,qun),_un=(YC(),u_),Fun=new Tn(Otn,_un),Bun=new Tn(Atn,(_n(),!0))}function S5(n,e,t){var i,r;i=e*t,L(n.g,154)?(r=xp(n),r.f.d?r.f.a||(n.d.a+=i+_f):(n.d.d-=i+_f,n.d.a+=i+_f)):L(n.g,10)&&(n.d.d-=i,n.d.a+=2*i)}function hFn(n,e,t){var i,r,c,s,f;for(r=n[t.g],f=new M(e.d);f.a<f.c.c.length;)s=u(E(f),105),c=s.i,c&&c.i==t&&(i=s.d[t.g],r[i]=y.Math.max(r[i],c.j.b))}function eke(n,e){var t,i,r,c,s;for(i=0,r=0,t=0,s=new M(e.d);s.a<s.c.c.length;)c=u(E(s),315),fS(c),i=y.Math.max(i,c.b),r+=c.d+(t>0?n.b:0),++t;e.b=i,e.e=r}function lFn(n){var e,t,i;if(i=n.b,tMn(n.i,i.length)){for(t=i.length*2,n.b=F(UF,Ey,302,t,0,1),n.c=F(UF,Ey,302,t,0,1),n.f=t-1,n.i=0,e=n.a;e;e=e.c)Zk(n,e,e);++n.g}}function tke(n,e,t,i){var r,c,s,f;for(r=0;r<e.o;r++)for(c=r-e.j+t,s=0;s<e.p;s++)f=s-e.k+i,Fg(e,r,s)?W9e(n,c,f)||d7e(n,c,f):DBn(e,r,s)&&(OBn(n,c,f)||b7e(n,c,f))}function P5(n,e){return n.b.a=y.Math.min(n.b.a,e.c),n.b.b=y.Math.min(n.b.b,e.d),n.a.a=y.Math.max(n.a.a,e.c),n.a.b=y.Math.max(n.a.b,e.d),Bn(n.c,e),!0}function ike(n,e,t){var i;i=e.c.i,i.k==(Vn(),Ti)?(U(n,(W(),yf),u(v(i,yf),12)),U(n,Es,u(v(i,Es),12))):(U(n,(W(),yf),e.c),U(n,Es,t.d))}function m4(n,e,t){Vg();var i,r,c,s,f,h;return s=e/2,c=t/2,i=y.Math.abs(n.a),r=y.Math.abs(n.b),f=1,h=1,i>s&&(f=s/i),r>c&&(h=c/r),ch(n,y.Math.min(f,h)),n}function rke(){FS();var n,e;try{if(e=u(FZ((F1(),Is),ev),2113),e)return e}catch(t){if(t=Ot(t),L(t,103))n=t,IW((Oe(),n));else throw T(t)}return new svn}function cke(){FS();var n,e;try{if(e=u(FZ((F1(),Is),ks),2040),e)return e}catch(t){if(t=Ot(t),L(t,103))n=t,IW((Oe(),n));else throw T(t)}return new Dvn}function uke(){yDn();var n,e;try{if(e=u(FZ((F1(),Is),Pd),2122),e)return e}catch(t){if(t=Ot(t),L(t,103))n=t,IW((Oe(),n));else throw T(t)}return new S6n}function oke(n,e,t){var i,r;return r=n.e,n.e=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,4,r,e),t?t.nj(i):t=i),r!=e&&(e?t=N4(n,TS(n,e),t):t=N4(n,n.a,t)),t}function aFn(){WE.call(this),this.e=-1,this.a=!1,this.p=Wi,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Wi}function ske(n,e){var t,i,r;if(i=n.b.d.d,n.a||(i+=n.b.d.a),r=e.b.d.d,e.a||(r+=e.b.d.a),t=bt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function fke(n,e){var t,i,r;if(i=n.b.b.d,n.a||(i+=n.b.b.a),r=e.b.b.d,e.a||(r+=e.b.b.a),t=bt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function hke(n,e){var t,i,r;if(i=n.b.g.d,n.a||(i+=n.b.g.a),r=e.b.g.d,e.a||(r+=e.b.g.a),t=bt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function AZ(){AZ=R,mZn=Iu(Fe(Fe(Fe(new ii,(Vi(),Fc),(tr(),osn)),Fc,ssn),zr,fsn),zr,Jon),kZn=Fe(Fe(new ii,Fc,qon),Fc,Qon),vZn=Iu(new ii,zr,Zon)}function lke(n){var e,t,i,r,c;for(e=u(v(n,(W(),R8)),85),c=n.n,i=e.Cc().Kc();i.Ob();)t=u(i.Pb(),314),r=t.i,r.c+=c.a,r.d+=c.b,t.c?Lqn(t):Nqn(t);U(n,R8,null)}function ake(n,e,t){var i,r;switch(r=n.b,i=r.d,e.g){case 1:return-i.d-t;case 2:return r.o.a+i.c+t;case 3:return r.o.b+i.a+t;case 4:return-i.b-t;default:return-1}}function dke(n,e,t){var i,r;for(t.Ug("Interactive node placement",1),n.a=u(v(e,(W(),E2)),312),r=new M(e.b);r.a<r.c.c.length;)i=u(E(r),30),cSe(n,i);t.Vg()}function bke(n){var e,t,i,r,c;if(i=0,r=i2,n.b)for(e=0;e<360;e++)t=e*.017453292519943295,Sen(n,n.d,0,0,Md,t),c=n.b.Dg(n.d),c<r&&(i=t,r=c);Sen(n,n.d,0,0,Md,i)}function wke(n,e){var t,i,r,c;for(c=new de,e.e=null,e.f=null,i=new M(e.i);i.a<i.c.c.length;)t=u(E(i),68),r=u(ee(n.g,t.a),42),t.a=wT(t.b),Ve(c,t.a,r);n.g=c}function gke(n,e,t){var i,r,c,s,f,h;for(r=e-n.e,c=r/n.d.c.length,s=0,h=new M(n.d);h.a<h.c.c.length;)f=u(E(h),315),i=n.b-f.b+t,$Kn(f,f.e+s*c,f.f),Y9e(f,c,i),++s}function dFn(n){var e;if(n.f._j(),n.b!=-1){if(++n.b,e=n.f.d[n.a],n.b<e.i)return;++n.a}for(;n.a<n.f.d.length;++n.a)if(e=n.f.d[n.a],e&&e.i!=0){n.b=0;return}n.b=-1}function pke(n,e){var t,i,r;for(r=e.c.length,t=vEe(n,r==0?"":(Nn(0,e.c.length),Ae(e.c[0]))),i=1;i<r&&t;++i)t=u(t,54).Zh((Nn(i,e.c.length),Ae(e.c[i])));return t}function bFn(n,e){var t,i;for(i=new M(e);i.a<i.c.c.length;)t=u(E(i),10),n.c[t.c.p][t.p].a=fW(n.i),n.c[t.c.p][t.p].d=$(n.c[t.c.p][t.p].a),n.c[t.c.p][t.p].b=1}function mke(n,e){var t,i,r,c;for(c=0,i=new M(n);i.a<i.c.c.length;)t=u(E(i),163),c+=y.Math.pow(Pu(t)*ao(t)-e,2);return r=y.Math.sqrt(c/(n.c.length-1)),r}function wFn(n,e){var t,i,r,c;for(c=0,r=u(u(ot(n.r,e),21),87).Kc();r.Ob();)i=u(r.Pb(),117),c=y.Math.max(c,i.e.a+i.b.Mf().a);t=u(Mr(n.b,e),127),t.n.b=0,t.a.a=c}function gFn(n,e){var t,i,r,c;for(t=0,c=u(u(ot(n.r,e),21),87).Kc();c.Ob();)r=u(c.Pb(),117),t=y.Math.max(t,r.e.b+r.b.Mf().b);i=u(Mr(n.b,e),127),i.n.d=0,i.a.b=t}function pFn(n,e,t,i){var r,c,s;return c=nPe(n,e,t,i),s=men(n,c),eR(n,e,t,i),u$(n.b),Ln(),Yt(c,new U7n(n)),r=men(n,c),eR(n,t,e,i),u$(n.b),new bi(Y(s),Y(r))}function vke(n,e){var t;e.Ug("Delaunay triangulation",1),t=new Z,nu(n.i,new Ckn(t)),on(un(v(n,(Wm(),I8)))),n.e?Ki(n.e,azn(t)):n.e=azn(t),e.Vg()}function kke(n,e,t){var i,r;for(j7(n,n.j+e,n.k+t),r=new ne((!n.a&&(n.a=new ti(xo,n,5)),n.a));r.e!=r.i.gc();)i=u(ue(r),377),gN(i,i.a+e,i.b+t);y7(n,n.b+e,n.c+t)}function LZ(n,e,t,i){switch(t){case 7:return!n.e&&(n.e=new Dn(Vt,n,7,4)),Xc(n.e,e,i);case 8:return!n.d&&(n.d=new Dn(Vt,n,8,5)),Xc(n.d,e,i)}return Yx(n,e,t,i)}function NZ(n,e,t,i){switch(t){case 7:return!n.e&&(n.e=new Dn(Vt,n,7,4)),cr(n.e,e,i);case 8:return!n.d&&(n.d=new Dn(Vt,n,8,5)),cr(n.d,e,i)}return $$(n,e,t,i)}function yke(n,e,t){var i,r,c,s,f;if(t)for(c=t.a.length,i=new Qa(c),f=(i.b-i.a)*i.c<0?(_1(),Ra):new U1(i);f.Ob();)s=u(f.Pb(),17),r=Lm(t,s.a),r&&q_n(n,r,e)}function Gk(n,e,t){var i,r,c,s,f;return n._j(),c=e==null?0:mt(e),n.f>0&&(s=(c&et)%n.d.length,r=Nnn(n,s,c,e),r)?(f=r.nd(t),f):(i=n.ck(c,e,t),n.c.Fc(i),null)}function DZ(n,e){var t,i,r,c;switch(r1(n,e).Kl()){case 3:case 2:{for(t=Jg(e),r=0,c=t.i;r<c;++r)if(i=u(N(t,r),35),vb(Nr(n,i))==5)return i;break}}return null}function jke(n){var e,t,i,r,c;if(tMn(n.f,n.b.length))for(i=F(sQn,Ey,227,n.b.length*2,0,1),n.b=i,r=i.length-1,t=n.a;t!=n;t=t._d())c=u(t,227),e=c.d&r,c.a=i[e],i[e]=c}function Eke(n){var e,t;return t=u(v(n,(W(),Hc)),21),e=AM(Jie),t.Hc((pr(),v2))&&To(e,Zie),t.Hc(x8)&&To(e,nre),t.Hc(mv)&&To(e,Qie),t.Hc(vv)&&To(e,Yie),e}function $Z(n){if(n<0)throw T(new Gn("The input must be positive"));return n<uan.length?id(uan[n]):y.Math.sqrt(Md*n)*(Z6e(n,n)/gY(2.718281828459045,n))}function v4(n,e){var t;if(n.Yi()&&e!=null){for(t=0;t<n.i;++t)if(ct(e,n.g[t]))return!0}else for(t=0;t<n.i;++t)if(x(n.g[t])===x(e))return!0;return!1}function Mke(n,e){if(e==null){for(;n.a.Ob();)if(u(n.a.Pb(),44).md()==null)return!0}else for(;n.a.Ob();)if(ct(e,u(n.a.Pb(),44).md()))return!0;return!1}function Tke(n,e){var t,i,r;return e===n?!0:L(e,678)?(r=u(e,2046),VKn((i=n.g,i||(n.g=new zA(n))),(t=r.g,t||(r.g=new zA(r))))):!1}function Cke(n){var e,t,i,r;for(e="gA",t="vz",r=y.Math.min(n.length,5),i=r-1;i>=0;i--)if(Sn(n[i].d,e)||Sn(n[i].d,t)){n.length>=i+1&&n.splice(0,i+1);break}return n}function zk(n,e){var t;return Vr(n)&&Vr(e)&&(t=n/e,Cy<t&&t<vd)?t<0?y.Math.ceil(t):y.Math.floor(t):Z1(Xen(Vr(n)?ds(n):n,Vr(e)?ds(e):e,!1))}function xZ(n,e){if(e==n.c.i)return n.d.i;if(e==n.d.i)return n.c.i;throw T(new Gn("'node' must either be the source node or target node of the edge."))}function Ske(n){var e,t,i,r;if(r=u(v(n,(W(),Ysn)),36),r){for(i=new Ni,e=Hi(n.c.i);e!=r;)t=e.e,e=Hi(t),hb(it(it(i,t.n),e.c),e.d.b,e.d.d);return i}return KZn}function Pke(n){var e;e=u(v(n,(W(),sw)),337),Ut(rc(new Cn(null,new On(e.d,16)),new l2n),new r7n(n)),Ut(ut(new Cn(null,new On(e.d,16)),new a2n),new u7n(n))}function zx(n,e){var t,i,r,c;for(r=e?Qt(n):ji(n),i=new ie(ce(r.a.Kc(),new En));pe(i);)if(t=u(fe(i),18),c=xZ(t,n),c.k==(Vn(),Ti)&&c.c!=n.c)return c;return null}function Ike(n){var e,t,i;for(t=new M(n.p);t.a<t.c.c.length;)e=u(E(t),10),e.k==(Vn(),Xt)&&(i=e.o.b,n.i=y.Math.min(n.i,i),n.g=y.Math.max(n.g,i))}function mFn(n,e,t){var i,r,c;for(c=new M(e);c.a<c.c.c.length;)i=u(E(c),10),n.c[i.c.p][i.p].e=!1;for(r=new M(e);r.a<r.c.c.length;)i=u(E(r),10),Zen(n,i,t)}function Xx(n,e,t){var i,r;i=Rg(e.j,t.s,t.c)+Rg(t.e,e.s,e.c),r=Rg(t.j,e.s,e.c)+Rg(e.e,t.s,t.c),i==r?i>0&&(n.b+=2,n.a+=i):(n.b+=1,n.a+=y.Math.min(i,r))}function vFn(n){var e;e=u(v(u(Zo(n.b,0),39),(lc(),Pln)),107),U(n,(pt(),Av),new V(0,0)),lUn(new ek,n,e.b+e.c-$(B(v(n,iq))),e.d+e.a-$(B(v(n,rq))))}function kFn(n,e){var t,i;if(i=!1,Si(e)&&(i=!0,Op(n,new qw(Ae(e)))),i||L(e,242)&&(i=!0,Op(n,(t=PV(u(e,242)),new CE(t)))),!i)throw T(new vL(Ocn))}function Oke(n,e,t,i){var r,c,s;return r=new ml(n.e,1,10,(s=e.c,L(s,90)?u(s,29):(An(),Os)),(c=t.c,L(c,90)?u(c,29):(An(),Os)),f1(n,e),!1),i?i.nj(r):i=r,i}function RZ(n){var e,t;switch(u(v(Hi(n),(cn(),Zfn)),429).g){case 0:return e=n.n,t=n.o,new V(e.a+t.a/2,e.b+t.b/2);case 1:return new rr(n.n);default:return null}}function Xk(){Xk=R,YI=new w6(kh,0),Ksn=new w6("LEFTUP",1),Fsn=new w6("RIGHTUP",2),Rsn=new w6("LEFTDOWN",3),Bsn=new w6("RIGHTDOWN",4),iH=new w6("BALANCED",5)}function Ake(n,e,t){var i,r,c;if(i=bt(n.a[e.p],n.a[t.p]),i==0){if(r=u(v(e,(W(),C3)),15),c=u(v(t,C3),15),r.Hc(t))return-1;if(c.Hc(e))return 1}return i}function Lke(n){switch(n.g){case 1:return new qmn;case 2:return new Umn;case 3:return new Hmn;case 0:return null;default:throw T(new Gn(GB+(n.f!=null?n.f:""+n.g)))}}function KZ(n,e,t){switch(e){case 1:!n.n&&(n.n=new q(Sr,n,1,7)),me(n.n),!n.n&&(n.n=new q(Sr,n,1,7)),Bt(n.n,u(t,16));return;case 2:zm(n,Ae(t));return}rY(n,e,t)}function BZ(n,e,t){switch(e){case 3:Sb(n,$(B(t)));return;case 4:Pb(n,$(B(t)));return;case 5:eu(n,$(B(t)));return;case 6:tu(n,$(B(t)));return}KZ(n,e,t)}function dS(n,e,t){var i,r,c;c=(i=new lL,i),r=Kf(c,e,null),r&&r.oj(),zc(c,t),ve((!n.c&&(n.c=new q(vw,n,12,10)),n.c),c),e1(c,0),Zw(c,1),u1(c,!0),c1(c,!0)}function FZ(n,e){var t,i,r;return t=h6(n.i,e),L(t,241)?(r=u(t,241),r.zi()==null,r.wi()):L(t,507)?(i=u(t,2037),r=i.b,r):null}function Nke(n,e,t,i){var r,c;return Pe(e),Pe(t),c=u(N6(n.d,e),17),XDn(!!c,"Row %s not in %s",e,n.e),r=u(N6(n.b,t),17),XDn(!!r,"Column %s not in %s",t,n.c),rRn(n,c.a,r.a,i)}function yFn(n,e,t,i,r,c,s){var f,h,l,a,d;if(a=r[c],l=c==s-1,f=l?i:0,d=FBn(f,a),i!=10&&S(C(n,s-c),e[c],t[c],f,d),!l)for(++c,h=0;h<a;++h)d[h]=yFn(n,e,t,i,r,c,s);return d}function I5(n){if(n.g==-1)throw T(new Mu);n.Xj();try{n.i.gd(n.g),n.f=n.i.j,n.g<n.e&&--n.e,n.g=-1}catch(e){throw e=Ot(e),L(e,77)?T(new Ko):T(e)}}function Dke(n){var e,t,i,r;for(r=-1,i=0,t=new M(n);t.a<t.c.c.length;){if(e=u(E(t),249),e.c==(gr(),Vu)){r=i==0?0:i-1;break}else i==n.c.length-1&&(r=i);i+=1}return r}function $ke(n){var e,t,i,r;for(r=0,e=0,i=new M(n.c);i.a<i.c.c.length;)t=u(E(i),27),eu(t,n.e+r),tu(t,n.f),r+=t.g+n.b,e=y.Math.max(e,t.f+n.b);n.d=r-n.b,n.a=e-n.b}function Hg(n){var e,t,i;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),60),i=e.d.c,e.d.c=e.d.d,e.d.d=i,i=e.d.b,e.d.b=e.d.a,e.d.a=i,i=e.b.a,e.b.a=e.b.b,e.b.b=i;ien(n)}function qg(n){var e,t,i;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),i=e.g.c,e.g.c=e.g.d,e.g.d=i,i=e.g.b,e.g.b=e.g.a,e.g.a=i,i=e.e.a,e.e.a=e.e.b,e.e.b=i;IS(n)}function xke(n){var e,t,i,r,c;for(c=Cp(n.k),t=(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])),i=0,r=t.length;i<r;++i)if(e=t[i],e!=sc&&!c.Hc(e))return e;return null}function Vx(n,e){var t,i;return i=u(x1e(t4(ut(new Cn(null,new On(e.j,16)),new Dpn))),12),i&&(t=u(sn(i.e,0),18),t)?u(v(t,(W(),dt)),17).a:zme(n.b)}function Rke(n,e){var t,i,r,c;for(c=new M(e.a);c.a<c.c.c.length;)for(r=u(E(c),10),Zv(n.d),i=new ie(ce(Qt(r).a.Kc(),new En));pe(i);)t=u(fe(i),18),vHn(n,r,t.d.i)}function Kke(n,e){var t,i;for(du(n.b,e),i=new M(n.n);i.a<i.c.c.length;)if(t=u(E(i),209),qr(t.c,e,0)!=-1){du(t.c,e),$ke(t),t.c.c.length==0&&du(n.n,t);break}ZUn(n)}function jFn(n,e){var t,i,r,c,s;for(s=n.f,r=0,c=0,i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),172),_k(t,n.e,s),ck(t,e),c=y.Math.max(c,t.r),s+=t.d+n.c,r=s;n.d=c,n.b=r}function EFn(n){var e,t;return t=ry(n),Nm(t)?null:(e=(Pe(t),u(IBn(new ie(ce(t.a.Kc(),new En))),74)),Gr(u(N((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84)))}function bS(n){var e;return n.o||(e=n.uk(),e?n.o=new $W(n,n,null):n.al()?n.o=new aV(n,null):vb(Nr((Lu(),zi),n))==1?n.o=new XLn(n):n.o=new LN(n,null)),n.o}function Bke(n,e,t,i){var r,c,s,f,h;t.Xh(e)&&(r=(s=e,s?u(i,54).gi(s):null),r&&(h=t.Mh(e),f=e.t,f>1||f==-1?(c=u(h,15),r.Wb(g8e(n,c))):r.Wb(OR(n,u(h,58)))))}function Fke(n,e,t,i){AEn();var r=BF;function c(){for(var s=0;s<r.length;s++)r[s]()}if(n)try{Ose(c)()}catch(s){n(e,s)}else Ose(c)()}function _ke(n,e){var t,i,r,c;for(r=(c=new qa(n.b).a.vc().Kc(),new PE(c));r.a.Ob();)if(i=(t=u(r.a.Pb(),44),u(t.ld(),34)),kX(e,u(i,17))<0)return!1;return!0}function Hke(n,e){var t,i,r,c;for(r=(c=new qa(n.b).a.vc().Kc(),new PE(c));r.a.Ob();)if(i=(t=u(r.a.Pb(),44),u(t.ld(),34)),kX(e,u(i,17))>0)return!1;return!0}function qke(n){var e,t,i,r,c;for(i=new sd(new Ua(n.b).a);i.b;)t=Ab(i),e=u(t.ld(),10),c=u(u(t.md(),42).a,10),r=u(u(t.md(),42).b,8),it(ff(e.n),it(Fi(c.n),r))}function Uke(n){switch(u(v(n.b,(cn(),zfn)),387).g){case 1:Ut(_r(rc(new Cn(null,new On(n.d,16)),new kpn),new ypn),new jpn);break;case 2:BSe(n);break;case 0:pEe(n)}}function Gke(n,e,t){var i,r,c;for(i=t,!i&&(i=new op),i.Ug("Layout",n.a.c.length),c=new M(n.a);c.a<c.c.c.length;){if(r=u(E(c),47),i.$g())return;r.Kf(e,i.eh(1))}i.Vg()}function wd(){wd=R,Wq=new m6("V_TOP",0),p9=new m6("V_CENTER",1),g9=new m6("V_BOTTOM",2),Vq=new m6("H_LEFT",3),b9=new m6("H_CENTER",4),w9=new m6("H_RIGHT",5)}function _Z(n){var e;return n.Db&64?UC(n):(e=new ls(UC(n)),e.a+=" (abstract: ",ql(e,(n.Bb&256)!=0),e.a+=", interface: ",ql(e,(n.Bb&512)!=0),e.a+=")",e.a)}function zke(n){var e;n.c==null&&(e=x(n.b)===x(run)?null:n.b,n.d=e==null?gu:EIn(e)?P1e($On(e)):Si(e)?wtn:Xa(wo(e)),n.a=n.a+": "+(EIn(e)?Cae($On(e)):e+""),n.c="("+n.d+") "+n.a)}function Xke(){function n(){try{return new Map().entries().next().done}catch{return!1}}return typeof Map===eK&&Map.prototype.entries&&n()?Map:NLe()}function Vke(n,e){var t,i,r,c;for(c=new xi(n.e,0),t=0;c.b<c.d.gc();){if(i=$((oe(c.b<c.d.gc()),B(c.d.Xb(c.c=c.b++)))),r=i-e,r>_B)return t;r>-1e-6&&++t}return t}function HZ(n,e){var t;e!=n.b?(t=null,n.b&&(t=OT(n.b,n,-4,t)),e&&(t=Wp(e,n,-4,t)),t=QRn(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,3,e,e))}function MFn(n,e){var t;e!=n.f?(t=null,n.f&&(t=OT(n.f,n,-1,t)),e&&(t=Wp(e,n,-1,t)),t=JRn(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,0,e,e))}function Wke(n,e,t,i){var r,c,s,f;return fo(n.e)&&(r=e.Lk(),f=e.md(),c=t.md(),s=W1(n,1,r,f,c,r.Jk()?O4(n,r,c,L(r,102)&&(u(r,19).Bb&hr)!=0):-1,!0),i?i.nj(s):i=s),i}function TFn(n){var e,t,i;if(n==null)return null;if(t=u(n,15),t.dc())return"";for(i=new Hl,e=t.Kc();e.Ob();)Er(i,(at(),Ae(e.Pb()))),i.a+=" ";return bN(i,i.a.length-1)}function CFn(n){var e,t,i;if(n==null)return null;if(t=u(n,15),t.dc())return"";for(i=new Hl,e=t.Kc();e.Ob();)Er(i,(at(),Ae(e.Pb()))),i.a+=" ";return bN(i,i.a.length-1)}function Jke(n,e,t){var i,r;return i=n.c[e.c.p][e.p],r=n.c[t.c.p][t.p],i.a!=null&&r.a!=null?tD(i.a,r.a):i.a!=null?-1:r.a!=null?1:0}function Qke(n,e,t){return t.Ug("Tree layout",1),H7(n.b),hf(n.b,(Qp(),NO),NO),hf(n.b,n9,n9),hf(n.b,e9,e9),hf(n.b,t9,t9),n.a=wy(n.b,e),Gke(n,e,t.eh(1)),t.Vg(),e}function Yke(n,e){var t,i,r,c,s,f;if(e)for(c=e.a.length,t=new Qa(c),f=(t.b-t.a)*t.c<0?(_1(),Ra):new U1(t);f.Ob();)s=u(f.Pb(),17),r=Lm(e,s.a),i=new Xkn(n),uge(i.a,r)}function Zke(n,e){var t,i,r,c,s,f;if(e)for(c=e.a.length,t=new Qa(c),f=(t.b-t.a)*t.c<0?(_1(),Ra):new U1(t);f.Ob();)s=u(f.Pb(),17),r=Lm(e,s.a),i=new Kkn(n),cge(i.a,r)}function nye(n){var e;if(n!=null&&n.length>0&&Xi(n,n.length-1)==33)try{return e=$Hn(qo(n,0,n.length-1)),e.e==null}catch(t){if(t=Ot(t),!L(t,33))throw T(t)}return!1}function eye(n,e,t){var i,r,c;switch(i=Hi(e),r=FC(i),c=new Ic,ic(c,e),t.g){case 1:gi(c,$k(zp(r)));break;case 2:gi(c,zp(r))}return U(c,(cn(),F0),B(v(n,F0))),c}function qZ(n){var e,t;return e=u(fe(new ie(ce(ji(n.a).a.Kc(),new En))),18),t=u(fe(new ie(ce(Qt(n.a).a.Kc(),new En))),18),on(un(v(e,(W(),zf))))||on(un(v(t,zf)))}function o0(){o0=R,wj=new s7("ONE_SIDE",0),zI=new s7("TWO_SIDES_CORNER",1),XI=new s7("TWO_SIDES_OPPOSING",2),GI=new s7("THREE_SIDES",3),UI=new s7("FOUR_SIDES",4)}function SFn(n,e){var t,i,r,c;for(c=new Z,r=0,i=e.Kc();i.Ob();){for(t=Y(u(i.Pb(),17).a+r);t.a<n.f&&!Gwe(n,t.a);)t=Y(t.a+1),++r;if(t.a>=n.f)break;Bn(c.c,t)}return c}function tye(n,e){var t,i,r,c,s;for(c=new M(e.a);c.a<c.c.c.length;)for(r=u(E(c),10),i=new ie(ce(ji(r).a.Kc(),new En));pe(i);)t=u(fe(i),18),s=t.c.i.p,n.n[s]=n.n[s]-1}function iye(n){var e,t;for(t=new M(n.e.b);t.a<t.c.c.length;)e=u(E(t),30),YAe(n,e);Ut(ut(rc(rc(new Cn(null,new On(n.e.b,16)),new h3n),new g3n),new p3n),new rkn(n))}function UZ(n,e){return e?n.mj(e)?!1:n.i?n.i.nj(e):L(e,152)?(n.i=u(e,152),!0):(n.i=new wvn,n.i.nj(e)):!1}function PFn(n,e,t){var i,r,c;return i=e.Lk(),c=e.md(),r=i.Jk()?W1(n,3,i,null,c,O4(n,i,c,L(i,102)&&(u(i,19).Bb&hr)!=0),!0):W1(n,1,i,i.ik(),c,-1,!0),t?t.nj(r):t=r,t}function rye(n){if(n=Rc(n,!0),Sn(Z4,n)||Sn("1",n))return _n(),uv;if(Sn(cF,n)||Sn("0",n))return _n(),pa;throw T(new kL("Invalid boolean value: '"+n+"'"))}function GZ(n,e,t){var i,r,c;for(r=n.vc().Kc();r.Ob();)if(i=u(r.Pb(),44),c=i.ld(),x(e)===x(c)||e!=null&&ct(e,c))return t&&(i=new uM(i.ld(),i.md()),r.Qb()),i;return null}function cye(n){Kw();var e,t,i;n.B.Hc((io(),sA))&&(i=n.f.i,e=new PT(n.a.c),t=new up,t.b=e.c-i.c,t.d=e.d-i.d,t.c=i.c+i.b-(e.c+e.b),t.a=i.d+i.a-(e.d+e.a),n.e.$f(t))}function IFn(n,e,t,i){var r,c,s;for(s=y.Math.min(t,_Un(u(n.b,68),e,t,i)),c=new M(n.a);c.a<c.c.c.length;)r=u(E(c),225),r!=e&&(s=y.Math.min(s,IFn(r,e,s,i)));return s}function zZ(n){var e,t,i,r;for(r=F(Qh,J,199,n.b.c.length,0,2),i=new xi(n.b,0);i.b<i.d.gc();)e=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),30)),t=i.b-1,r[t]=Q7(e.a);return r}function XZ(n,e,t){var i,r,c;i=u(Df(n.a,t),34),i!=null&&(c=u(Df(n.b,i),67),i0(c,t,!0)),r=u(Df(n.b,e),67),r||(r=new Mt,s1(n.b,e,r)),xt(r,t,r.c.b,r.c),s1(n.a,t,e)}function Wx(n,e,t,i,r){var c,s,f,h;for(s=Ehe(mz(DV(O9e(t)),i),_7e(n,t,r)),h=h1(n,t).Kc();h.Ob();)f=u(h.Pb(),12),e[f.p]&&(c=e[f.p].i,nn(s.d,new ZN(c,TY(s,c))));UY(s)}function VZ(n,e){this.f=new de,this.b=new de,this.j=new de,this.a=n,this.c=e,this.c>0&&QBn(this,this.c-1,(en(),Zn)),this.c<this.a.length-1&&QBn(this,this.c+1,(en(),Wn))}function uye(n,e){var t,i,r,c,s;for(c=new M(e.d);c.a<c.c.c.length;)for(r=u(E(c),105),s=u(ee(n.c,r),118).o,i=new dp(r.b);i.a<i.c.a.length;)t=u(Y6(i),64),JJ(r,t,s)}function WZ(n){n.length>0&&n[0].length>0&&(this.c=on(un(v(Hi(n[0][0]),(W(),efn))))),this.a=F(jie,J,2117,n.length,0,2),this.b=F(Eie,J,2118,n.length,0,2),this.d=new GRn}function oye(n){return n.c.length==0?!1:(Nn(0,n.c.length),u(n.c[0],18)).c.i.k==(Vn(),Ti)?!0:Ag(_r(new Cn(null,new On(n,16)),new e3n),new t3n)}function OFn(n,e){var t,i,r,c,s,f,h;for(f=a0(e),c=e.f,h=e.g,s=y.Math.sqrt(c*c+h*h),r=0,i=new M(f);i.a<i.c.c.length;)t=u(E(i),27),r+=OFn(n,t);return y.Math.max(r,s)}function Ai(){Ai=R,Oa=new k6(Y5,0),Qf=new k6("FREE",1),Bv=new k6("FIXED_SIDE",2),Ud=new k6("FIXED_ORDER",3),tl=new k6("FIXED_RATIO",4),qc=new k6("FIXED_POS",5)}function sye(n,e){var t,i,r;if(t=e.qi(n.a),t){for(r=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),ys)),i=1;i<(Lu(),ibn).length;++i)if(Sn(ibn[i],r))return i}return 0}function fye(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],pl(c,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function hye(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],pl(c,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function AFn(n){var e,t,i;for(i=new fd(ur,"{","}"),t=n.vc().Kc();t.Ob();)e=u(t.Pb(),44),pl(i,KLn(n,e.ld())+"="+KLn(n,e.md()));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function lye(n){for(var e,t,i,r;!n6(n.o);)t=u(Pp(n.o),42),i=u(t.a,125),e=u(t.b,218),r=HC(e,i),e.e==i?(KM(r.g,e),i.e=r.e+e.a):(KM(r.b,e),i.e=r.e-e.a),nn(n.e.a,i)}function JZ(n,e){var t,i,r;for(t=null,r=u(e.Kb(n),20).Kc();r.Ob();)if(i=u(r.Pb(),18),!t)t=i.c.i==n?i.d.i:i.c.i;else if((i.c.i==n?i.d.i:i.c.i)!=t)return!1;return!0}function LFn(n,e){var t,i,r,c,s;for(t=JHn(n,!1,e),r=new M(t);r.a<r.c.c.length;)i=u(E(r),132),i.d==0?($D(i,null),xD(i,null)):(c=i.a,s=i.b,$D(i,s),xD(i,c))}function aye(n){var e,t;return e=new ii,To(e,ire),t=u(v(n,(W(),Hc)),21),t.Hc((pr(),x8))&&To(e,ore),t.Hc(mv)&&To(e,rre),t.Hc(v2)&&To(e,ure),t.Hc(vv)&&To(e,cre),e}function QZ(n,e,t){var i,r,c,s,f;for(s8e(n),r=(n.k==null&&(n.k=F(zF,J,82,0,0,1)),n.k),c=0,s=r.length;c<s;++c)i=r[c],QZ(i);f=n.f,f&&QZ(f)}function dye(n){var e,t,i,r;for(nAe(n),t=new ie(ce(Ml(n).a.Kc(),new En));pe(t);)e=u(fe(t),18),i=e.c.i==n,r=i?e.d:e.c,i?Oi(e,null):Zi(e,null),U(e,(W(),cfn),r),SMe(n,r.i)}function bye(n,e,t,i){var r,c;switch(c=e.i,r=t[c.g][n.d[c.g]],c.g){case 1:r-=i+e.j.b,e.g.b=r;break;case 3:r+=i,e.g.b=r;break;case 4:r-=i+e.j.a,e.g.a=r;break;case 2:r+=i,e.g.a=r}}function wye(n){var e,t,i;for(t=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));t.e!=t.i.gc();)if(e=u(ue(t),27),i=ry(e),!pe(new ie(ce(i.a.Kc(),new En))))return e;return null}function wS(){wS=R,gq=new d7("OVERLAP_REMOVAL",0),dq=new d7(mVn,1),pq=new d7("ROTATION",2),bq=new d7("GRAPH_SIZE_CALCULATION",3),wq=new d7("OUTGOING_EDGE_ANGLES",4)}function gye(){var n;return Soe?u(M4((F1(),Is),ev),2115):(n=u(L(Dc((F1(),Is),ev),569)?Dc(Is,ev):new jHn,569),Soe=!0,KAe(n),eDe(n),Hx(n),Lr(Is,ev,n),n)}function Jx(n,e,t){var i,r;if(n.j==0)return t;if(r=u(H$n(n,e,t),76),i=t.Lk(),!i.rk()||!n.a.am(i))throw T(new ec("Invalid entry feature '"+i.qk().zb+"."+i.xe()+"'"));return r}function pye(n,e){var t,i,r,c,s,f,h,l;for(f=n.a,h=0,l=f.length;h<l;++h)for(s=f[h],i=s,r=0,c=i.length;r<c;++r)if(t=i[r],x(e)===x(t)||e!=null&&ct(e,t))return!0;return!1}function mye(n){var e,t,i;return Ec(n,0)>=0?(t=zk(n,QS),i=Rk(n,QS)):(e=G1(n,1),t=zk(e,5e8),i=Rk(e,5e8),i=nr(Ks(i,1),vi(n,1))),lf(Ks(i,32),vi(t,mr))}function NFn(n,e,t){var i,r;switch(i=(oe(e.b!=0),u(Xo(e,e.a.a),8)),t.g){case 0:i.b=0;break;case 2:i.b=n.f;break;case 3:i.a=0;break;default:i.a=n.g}return r=ge(e,0),_7(r,i),e}function DFn(n,e,t,i){var r,c,s,f,h;switch(h=n.b,c=e.d,s=c.j,f=uZ(s,h.d[s.g],t),r=it(Fi(c.n),c.a),c.j.g){case 1:case 3:f.a+=r.a;break;case 2:case 4:f.b+=r.b}xt(i,f,i.c.b,i.c)}function vye(n,e,t){var i,r,c,s;for(s=qr(n.e,e,0),c=new WG,c.b=t,i=new xi(n.e,s);i.b<i.d.gc();)r=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),10)),r.p=t,nn(c.e,r),bo(i);return c}function kye(n,e,t,i){var r,c,s,f,h;for(r=null,c=0,f=new M(e);f.a<f.c.c.length;)s=u(E(f),27),h=s.i+s.g,n<s.j+s.f+i&&(r?t.i-h<t.i-c&&(r=s):r=s,c=r.i+r.g);return r?c+i:0}function yye(n,e,t,i){var r,c,s,f,h;for(c=null,r=0,f=new M(e);f.a<f.c.c.length;)s=u(E(f),27),h=s.j+s.f,n<s.i+s.g+i&&(c?t.j-h<t.j-r&&(c=s):c=s,r=c.j+c.f);return c?r+i:0}function jye(n){var e,t,i;for(e=!1,i=n.b.c.length,t=0;t<i;t++)eY(u(sn(n.b,t),443))?!e&&t+1<i&&eY(u(sn(n.b,t+1),443))&&(e=!0,u(sn(n.b,t),443).a=!0):e=!1}function Eye(n,e,t,i,r){var c,s;for(c=0,s=0;s<r;s++)c=nr(c,bs(vi(e[s],mr),vi(i[s],mr))),n[s]=Se(c),c=db(c,32);for(;s<t;s++)c=nr(c,vi(e[s],mr)),n[s]=Se(c),c=db(c,32)}function Mye(n,e){C4();var t,i;for(i=(dh(),sI),t=n;e>1;e>>=1)e&1&&(i=Og(i,t)),t.d==1?t=Og(t,t):t=new JKn(pUn(t.a,t.d,F(ye,_e,28,t.d<<1,15,1)));return i=Og(i,t),i}function YZ(){YZ=R;var n,e,t,i;for(Aun=F(Ii,Cr,28,25,15,1),Lun=F(Ii,Cr,28,33,15,1),i=152587890625e-16,e=32;e>=0;e--)Lun[e]=i,i*=.5;for(t=1,n=24;n>=0;n--)Aun[n]=t,t*=.5}function Tye(n){var e,t;if(on(un(z(n,(cn(),B0))))){for(t=new ie(ce(Sl(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),74),Bb(e)&&on(un(z(e,Dd))))return!0}return!1}function $Fn(n,e){var t,i,r;fi(n.f,e)&&(e.b=n,i=e.c,qr(n.j,i,0)!=-1||nn(n.j,i),r=e.d,qr(n.j,r,0)!=-1||nn(n.j,r),t=e.a.b,t.c.length!=0&&(!n.i&&(n.i=new tBn(n)),Ove(n.i,t)))}function Cye(n){var e,t,i,r,c;return t=n.c.d,i=t.j,r=n.d.d,c=r.j,i==c?t.p<r.p?0:1:BC(i)==c?0:CY(i)==c?1:(e=n.b,Su(e.b,BC(i))?0:1)}function gd(n){var e;this.d=new de,this.c=n.c,this.e=n.d,this.b=n.b,this.f=new fIn(n.e),this.a=n.a,n.f?this.g=n.f:this.g=(e=u(of(kA),9),new _o(e,u(xs(e,e.length),9),0))}function gS(n,e){var t,i,r,c,s,f;r=n,s=J6(r,"layoutOptions"),!s&&(s=J6(r,wWn)),s&&(f=s,i=null,f&&(i=(c=P$(f,F(fn,J,2,0,6,1)),new PL(f,c))),i&&(t=new jTn(f,e),qi(i,t)))}function Gr(n){if(L(n,207))return u(n,27);if(L(n,193))return Pf(u(n,123));throw T(n?new Fl("Only support nodes and ports."):new fp(MWn))}function Sye(n,e,t,i){return(e>=0&&Sn(n.substr(e,3),"GMT")||e>=0&&Sn(n.substr(e,3),"UTC"))&&(t[0]=e+3),Oen(n,t,i)}function Pye(n,e){var t,i,r,c,s;for(c=n.g.a,s=n.g.b,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),72),r=t.n,r.a=c,n.i==(en(),Xn)?r.b=s+n.j.b-t.o.b:r.b=s,it(r,e),c+=t.o.a+n.e}function xFn(n,e,t){if(n.b)throw T(new Ar("The task is already done."));return n.p!=null?!1:(n.p=e,n.r=t,n.k&&(n.o=(fl(),er(vc(Date.now()),d1))),!0)}function ZZ(n){var e,t,i,r,c,s,f;return f=new sp,t=n.Pg(),r=t!=null,r&&ym(f,Eh,n.Pg()),i=n.xe(),c=i!=null,c&&ym(f,Qe,n.xe()),e=n.Og(),s=e!=null,s&&ym(f,"description",n.Og()),f}function RFn(n,e,t){var i,r,c;return c=n.q,n.q=e,n.Db&4&&!(n.Db&1)&&(r=new Mi(n,1,9,c,e),t?t.nj(r):t=r),e?(i=e.c,i!=n.r&&(t=n.Yk(i,t))):n.r&&(t=n.Yk(null,t)),t}function Iye(n,e,t){var i,r,c,s,f;for(t=(f=e,Wp(f,n.e,-1-n.c,t)),s=BW(n.a),c=(i=new sd(new Ua(s.a).a),new DE(i));c.a.b;)r=u(Ab(c.a).ld(),89),t=N4(r,TS(r,n.a),t);return t}function Oye(n,e,t){var i,r,c,s,f;for(t=(f=e,OT(f,n.e,-1-n.c,t)),s=BW(n.a),c=(i=new sd(new Ua(s.a).a),new DE(i));c.a.b;)r=u(Ab(c.a).ld(),89),t=N4(r,TS(r,n.a),t);return t}function Aye(n,e,t,i){var r,c,s;if(i==0)Oc(e,0,n,t,n.length-t);else for(s=32-i,n[n.length-1]=0,c=n.length-1;c>t;c--)n[c]|=e[c-t-1]>>>s,n[c-1]=e[c-t-1]<<i;for(r=0;r<t;r++)n[r]=0}function Lye(n){var e,t,i,r,c;for(e=0,t=0,c=n.Kc();c.Ob();)i=u(c.Pb(),117),e=y.Math.max(e,i.d.b),t=y.Math.max(t,i.d.c);for(r=n.Kc();r.Ob();)i=u(r.Pb(),117),i.d.b=e,i.d.c=t}function Nye(n){var e,t,i,r,c;for(t=0,e=0,c=n.Kc();c.Ob();)i=u(c.Pb(),117),t=y.Math.max(t,i.d.d),e=y.Math.max(e,i.d.a);for(r=n.Kc();r.Ob();)i=u(r.Pb(),117),i.d.d=t,i.d.a=e}function Qx(n,e,t,i,r){var c,s;c=u(Wr(ut(e.Oc(),new apn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),Qk(c),s=u(od(n.b,t,i),15),r==0?s.cd(0,c):s.Gc(c)}function Dye(n,e,t){t.Ug("Grow Tree",1),n.b=e.f,on(un(v(e,(Wm(),I8))))?(n.c=new vE,OAn(n,null)):n.c=new vE,n.a=!1,cqn(n,e.f),U(e,ron,(_n(),!!n.a)),t.Vg()}function nnn(n){var e,t,i,r;for(e=null,r=new M(n.Rf());r.a<r.c.c.length;)i=u(E(r),187),t=new Ho(i.Lf().a,i.Lf().b,i.Mf().a,i.Mf().b),e?O5(e,t):e=t;return!e&&(e=new mp),e}function Yx(n,e,t,i){var r,c;return t==1?(!n.n&&(n.n=new q(Sr,n,1,7)),Xc(n.n,e,i)):(c=u($n((r=u(Un(n,16),29),r||n.ii()),t),69),c.wk().zk(n,iu(n),t-se(n.ii()),e,i))}function Zx(n,e,t){var i,r,c,s,f;for(i=t.gc(),n._i(n.i+i),f=n.i-e,f>0&&Oc(n.g,e,n.g,e+i,f),s=t.Kc(),n.i+=i,r=0;r<i;++r)c=s.Pb(),P6(n,e,n.Zi(e,c)),n.Mi(e,c),n.Ni(),++e;return i!=0}function Kf(n,e,t){var i;return e!=n.q?(n.q&&(t=OT(n.q,n,-10,t)),e&&(t=Wp(e,n,-10,t)),t=RFn(n,e,t)):n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,9,e,e),t?t.nj(i):t=i),t}function nR(n,e,t,i){return OV((t&wh)==0,"flatMap does not support SUBSIZED characteristic"),OV((t&4)==0,"flatMap does not support SORTED characteristic"),Pe(n),Pe(e),new MLn(n,e,t,i)}function $ye(n,e){SW(e,"Cannot suppress a null exception."),x7(e!=n,"Exception can not suppress itself."),!n.i&&(n.k==null?n.k=S(C(zF,1),J,82,0,[e]):n.k[n.k.length]=e)}function xye(n,e){var t;if(t=nCn(n.b.ag(),e.b.ag()),t!=0)return t;switch(n.b.ag().g){case 1:case 2:return jc(n.b.Nf(),e.b.Nf());case 3:case 4:return jc(e.b.Nf(),n.b.Nf())}return 0}function Rye(n){var e,t,i;for(i=n.e.c.length,n.a=Wa(ye,[J,_e],[53,28],15,[i,i],2),t=new M(n.c);t.a<t.c.c.length;)e=u(E(t),289),n.a[e.c.a][e.d.a]+=u(v(e,(Us(),k3)),17).a}function Kye(n,e){var t,i,r,c,s;if(n==null)return null;for(s=F(fs,gh,28,2*e,15,1),i=0,r=0;i<e;++i)t=n[i]>>4&15,c=n[i]&15,s[r++]=Adn[t],s[r++]=Adn[c];return ws(s,0,s.length)}function wu(n){var e,t;return n>=hr?(e=Sy+(n-hr>>10&1023)&ui,t=56320+(n-hr&1023)&ui,String.fromCharCode(e)+(""+String.fromCharCode(t))):String.fromCharCode(n&ui)}function Bye(n,e){Kw();var t,i,r,c;return r=u(u(ot(n.r,e),21),87),r.gc()>=2?(i=u(r.Kc().Pb(),117),t=n.u.Hc((zu(),C9)),c=n.u.Hc(R3),!i.a&&!t&&(r.gc()==2||c)):!1}function KFn(n,e,t,i,r){var c,s,f;for(c=Mqn(n,e,t,i,r),f=!1;!c;)ES(n,r,!0),f=!0,c=Mqn(n,e,t,i,r);f&&ES(n,r,!1),s=K$(r),s.c.length!=0&&(n.d&&n.d.Gg(s),KFn(n,r,t,i,s))}function pS(){pS=R,lU=new v6(kh,0),edn=new v6("DIRECTED",1),idn=new v6("UNDIRECTED",2),Zan=new v6("ASSOCIATION",3),tdn=new v6("GENERALIZATION",4),ndn=new v6("DEPENDENCY",5)}function Fye(n,e){var t;if(!Pf(n))throw T(new Ar(eWn));switch(t=Pf(n),e.g){case 1:return-(n.j+n.f);case 2:return n.i-t.g;case 3:return n.j-t.f;case 4:return-(n.i+n.g)}return 0}function _ye(n,e,t){var i,r,c;return i=e.Lk(),c=e.md(),r=i.Jk()?W1(n,4,i,c,null,O4(n,i,c,L(i,102)&&(u(i,19).Bb&hr)!=0),!0):W1(n,i.tk()?2:1,i,c,i.ik(),-1,!0),t?t.nj(r):t=r,t}function k4(n,e){var t,i;for(Jn(e),i=n.b.c.length,nn(n.b,e);i>0;){if(t=i,i=(i-1)/2|0,n.a.Ne(sn(n.b,i),e)<=0)return Go(n.b,t,e),!0;Go(n.b,t,sn(n.b,i))}return Go(n.b,i,e),!0}function enn(n,e,t,i){var r,c;if(r=0,t)r=$C(n.a[t.g][e.g],i);else for(c=0;c<dI;c++)r=y.Math.max(r,$C(n.a[c][e.g],i));return e==(wf(),Wc)&&n.b&&(r=y.Math.max(r,n.b.a)),r}function Hye(n,e){var t,i,r,c,s,f;return r=n.i,c=e.i,!r||!c||r.i!=c.i||r.i==(en(),Zn)||r.i==(en(),Wn)?!1:(s=r.g.a,t=s+r.j.a,f=c.g.a,i=f+c.j.a,s<=i&&t>=f)}function BFn(n){switch(n.g){case 0:return new r4n;case 1:return new c4n;default:throw T(new Gn("No implementation is available for the width approximator "+(n.f!=null?n.f:""+n.g)))}}function tnn(n,e,t,i){var r;if(r=!1,Si(i)&&(r=!0,ym(e,t,Ae(i))),r||Dw(i)&&(r=!0,tnn(n,e,t,i)),r||L(i,242)&&(r=!0,nd(e,t,u(i,242))),!r)throw T(new vL(Ocn))}function qye(n,e){var t,i,r;if(t=e.qi(n.a),t&&(r=gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),vs),r!=null)){for(i=1;i<(Lu(),ebn).length;++i)if(Sn(ebn[i],r))return i}return 0}function Uye(n,e){var t,i,r;if(t=e.qi(n.a),t&&(r=gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),vs),r!=null)){for(i=1;i<(Lu(),tbn).length;++i)if(Sn(tbn[i],r))return i}return 0}function FFn(n,e){var t,i,r,c;if(Jn(e),c=n.a.gc(),c<e.gc())for(t=n.a.ec().Kc();t.Ob();)i=t.Pb(),e.Hc(i)&&t.Qb();else for(r=e.Kc();r.Ob();)i=r.Pb(),n.a.Bc(i)!=null;return c!=n.a.gc()}function _Fn(n){var e,t;switch(t=Fi(cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a]))),e=n.i.d,n.j.g){case 1:t.b-=e.d;break;case 2:t.a+=e.c;break;case 3:t.b+=e.a;break;case 4:t.a-=e.b}return t}function Gye(n){var e;for(e=(Hp(),u(fe(new ie(ce(ji(n).a.Kc(),new En))),18).c.i);e.k==(Vn(),Ti);)U(e,(W(),yj),(_n(),!0)),e=u(fe(new ie(ce(ji(e).a.Kc(),new En))),18).c.i}function eR(n,e,t,i){var r,c,s,f;for(f=b5(e,i),s=f.Kc();s.Ob();)r=u(s.Pb(),12),n.d[r.p]=n.d[r.p]+n.c[t.p];for(f=b5(t,i),c=f.Kc();c.Ob();)r=u(c.Pb(),12),n.d[r.p]=n.d[r.p]-n.c[e.p]}function inn(n,e,t){var i,r;for(r=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));r.e!=r.i.gc();)i=u(ue(r),27),Bo(i,i.i+e,i.j+t);qi((!n.b&&(n.b=new q(Vt,n,12,3)),n.b),new lTn(e,t))}function zye(n,e,t,i){var r,c;for(c=e,r=c.d==null||n.a.Ne(t.d,c.d)>0?1:0;c.a[r]!=t;)c=c.a[r],r=n.a.Ne(t.d,c.d)>0?1:0;c.a[r]=i,i.b=t.b,i.a[0]=t.a[0],i.a[1]=t.a[1],t.a[0]=null,t.a[1]=null}function Xye(n){var e,t,i,r;for(e=new Z,t=F(so,Xh,28,n.a.c.length,16,1),MW(t,t.length),r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),125),t[i.d]||(Bn(e.c,i),oBn(n,i,t));return e}function HFn(n,e){var t,i,r,c,s;for(r=e==1?C_:T_,i=r.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),88),s=u(ot(n.f.c,t),21).Kc();s.Ob();)c=u(s.Pb(),42),du(n.b.b,c.b),du(n.b.a,u(c.b,86).d)}function Vye(n,e){var t;e.Ug("Hierarchical port position processing",1),t=n.b,t.c.length>0&&dUn((Nn(0,t.c.length),u(t.c[0],30)),n),t.c.length>1&&dUn(u(sn(t,t.c.length-1),30),n),e.Vg()}function Wye(n){zu();var e,t;return e=yt(Rl,S(C(oA,1),G,279,0,[Aa])),!(vk(LT(e,n))>1||(t=yt(C9,S(C(oA,1),G,279,0,[T9,R3])),vk(LT(t,n))>1))}function rnn(n,e){var t;t=Dc((F1(),Is),n),L(t,507)?Lr(Is,n,new LTn(this,e)):Lr(Is,n,this),tR(this,e),e==(um(),qdn)?(this.wb=u(this,2038),u(e,2040)):this.wb=(z1(),Hn)}function Jye(n){var e,t,i;if(n==null)return null;for(e=null,t=0;t<O9.length;++t)try{return bMn(O9[t],n)}catch(r){if(r=Ot(r),L(r,33))i=r,e=i;else throw T(r)}throw T(new eC(e))}function qFn(){qFn=R,EQn=S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),MQn=S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])}function UFn(n){var e,t,i;e=Sn(typeof e,xK)?null:new Wbn,e&&(lm(),t=(i=900,i>=d1?"error":i>=900?"warn":i>=800?"info":"log"),ZIn(t,n.a),n.b&&cen(e,t,n.b,"Exception: ",!0))}function v(n,e){var t,i;return i=(!n.q&&(n.q=new de),ee(n.q,e)),i??(t=e.Sg(),L(t,4)&&(t==null?(!n.q&&(n.q=new de),Kp(n.q,e)):(!n.q&&(n.q=new de),Ve(n.q,e,t))),t)}function Vi(){Vi=R,Vs=new o7("P1_CYCLE_BREAKING",0),Jh=new o7("P2_LAYERING",1),Ac=new o7("P3_NODE_ORDERING",2),Fc=new o7("P4_NODE_PLACEMENT",3),zr=new o7("P5_EDGE_ROUTING",4)}function Qye(n,e){e5();var t;if(n.c==e.c){if(n.b==e.b||rve(n.b,e.b)){if(t=Ile(n.b)?1:-1,n.a&&!e.a)return t;if(!n.a&&e.a)return-t}return jc(n.b.g,e.b.g)}else return bt(n.c,e.c)}function GFn(n,e){var t,i,r;if(unn(n,e))return!0;for(i=new M(e);i.a<i.c.c.length;)if(t=u(E(i),27),r=EFn(t),NS(n,t,r)||XRn(n,t)-n.g<=n.a)return!0;return!1}function Vk(){Vk=R,QO=(ER(),J1n),qq=sue,Hq=oue,q1n=rue,_q=uue,H1n=new ob(8),Qce=new Di((He(),M1),H1n),Yce=new Di(qd,8),Zce=V1n,F1n=nue,_1n=eue,Jce=new Di(Gj,(_n(),!1))}function mS(){mS=R,dan=new ob(15),Tue=new Di((He(),M1),dan),Cue=new Di(qd,15),ban=new Di(Wj,Y(0)),han=Lue,Eue=Hd,Mue=Sa,fan=new Di(x2,$Vn),lan=Xj,aan=_2,Xq=Oue,jue=Uj}function Fh(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i!=1)throw T(new Gn(mF));return Gr(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84))}function zFn(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i!=1)throw T(new Gn(mF));return Ek(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84))}function XFn(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i!=1)throw T(new Gn(mF));return Ek(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))}function ca(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i!=1)throw T(new Gn(mF));return Gr(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))}function cnn(n,e,t){var i,r,c;if(++n.j,r=n.Ej(),e>=r||e<0)throw T(new Or(vF+e+Cd+r));if(t>=r||t<0)throw T(new Or(kF+t+Cd+r));return e!=t?i=(c=n.Cj(t),n.qj(e,c),c):i=n.xj(t),i}function VFn(n){var e,t,i;if(i=n,n)for(e=0,t=n.Eh();t;t=t.Eh()){if(++e>IK)return VFn(t);if(i=t,t==n)throw T(new Ar("There is a cycle in the containment hierarchy of "+n))}return i}function ua(n){var e,t,i;for(i=new fd(ur,"[","]"),t=n.Kc();t.Ob();)e=t.Pb(),pl(i,x(e)===x(n)?"(this Collection)":e==null?gu:Jr(e));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function unn(n,e){var t,i;if(i=!1,e.gc()<2)return!1;for(t=0;t<e.gc();t++)t<e.gc()-1?i=i|NS(n,u(e.Xb(t),27),u(e.Xb(t+1),27)):i=i|NS(n,u(e.Xb(t),27),u(e.Xb(0),27));return i}function WFn(n,e){var t;e!=n.a?(t=null,n.a&&(t=u(n.a,54).Th(n,4,Ef,t)),e&&(t=u(e,54).Rh(n,4,Ef,t)),t=pY(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,1,e,e))}function onn(n,e){var t;e!=n.e?(n.e&&RNn(BW(n.e),n),e&&(!e.b&&(e.b=new NE(new aL)),XSn(e.b,n)),t=oke(n,e,null),t&&t.oj()):n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,4,e,e))}function Yye(n,e){var t;t=e.o,hl(n.f)?(n.j.a=y.Math.max(n.j.a,t.a),n.j.b+=t.b,n.d.c.length>1&&(n.j.b+=n.e)):(n.j.a+=t.a,n.j.b=y.Math.max(n.j.b,t.b),n.d.c.length>1&&(n.j.a+=n.e))}function oa(){oa=R,une=S(C(lr,1),Tc,64,0,[(en(),Xn),Zn,ae]),cne=S(C(lr,1),Tc,64,0,[Zn,ae,Wn]),one=S(C(lr,1),Tc,64,0,[ae,Wn,Xn]),sne=S(C(lr,1),Tc,64,0,[Wn,Xn,Zn])}function Zye(n,e,t,i){var r,c,s,f,h,l,a;if(s=n.c.d,f=n.d.d,s.j!=f.j)for(a=n.b,r=s.j,h=null;r!=f.j;)h=e==0?BC(r):CY(r),c=uZ(r,a.d[r.g],t),l=uZ(h,a.d[h.g],t),Re(i,it(c,l)),r=h}function nje(n,e,t,i){var r,c,s,f,h;return s=YBn(n.a,e,t),f=u(s.a,17).a,c=u(s.b,17).a,i&&(h=u(v(e,(W(),Xu)),10),r=u(v(t,Xu),10),h&&r&&(BLn(n.b,h,r),f+=n.b.i,c+=n.b.e)),f>c}function JFn(n){var e,t,i,r,c,s,f,h,l;for(this.a=vBn(n),this.b=new Z,t=n,i=0,r=t.length;i<r;++i)for(e=t[i],c=new Z,nn(this.b,c),f=e,h=0,l=f.length;h<l;++h)s=f[h],nn(c,new _u(s.j))}function eje(n,e,t){var i,r,c;return c=0,i=t[e],e<t.length-1&&(r=t[e+1],n.b[e]?(c=YNe(n.d,i,r),c+=pD(n.a,i,(en(),Zn)),c+=pD(n.a,r,Wn)):c=Nme(n.a,i,r)),n.c[e]&&(c+=rme(n.a,i)),c}function tje(n,e,t,i,r){var c,s,f,h;for(h=null,f=new M(i);f.a<f.c.c.length;)if(s=u(E(f),452),s!=t&&qr(s.e,r,0)!=-1){h=s;break}c=JD(r),Zi(c,t.b),Oi(c,h.b),In(n.a,r,new GM(c,e,t.f))}function ije(n){var e,t,i,r;if(vg(u(v(n.b,(cn(),Lo)),88)))return 0;for(e=0,i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),10),t.k==(Vn(),Xt)&&(r=t.o.a,e=y.Math.max(e,r));return e}function QFn(n){for(;n.g.c!=0&&n.d.c!=0;)AN(n.g).c>AN(n.d).c?(n.i+=n.g.c,px(n.d)):AN(n.d).c>AN(n.g).c?(n.e+=n.d.c,px(n.g)):(n.i+=oIn(n.g),n.e+=oIn(n.d),px(n.g),px(n.d))}function rje(n,e,t){var i,r,c,s;for(c=e.q,s=e.r,new ed((af(),Ma),e,c,1),new ed(Ma,c,s,1),r=new M(t);r.a<r.c.c.length;)i=u(E(r),118),i!=c&&i!=e&&i!=s&&(Uen(n.a,i,e),Uen(n.a,i,s))}function YFn(n,e,t,i){n.a.d=y.Math.min(e,t),n.a.a=y.Math.max(e,i)-n.a.d,e<t?(n.b=.5*(e+t),n.g=HB*n.b+.9*e,n.f=HB*n.b+.9*t):(n.b=.5*(e+i),n.g=HB*n.b+.9*i,n.f=HB*n.b+.9*e)}function cje(n){var e,t,i,r;if(n.b!=0){for(e=new Mt,r=ge(n,0);r.b!=r.d.c;)i=u(be(r),39),Ki(e,R$(i)),t=i.e,t.a=u(v(i,(pt(),Dj)),17).a,t.b=u(v(i,$j),17).a;return e}return new Mt}function uje(n){switch(u(v(n,(cn(),ou)),171).g){case 1:U(n,ou,(Yo(),F8));break;case 2:U(n,ou,(Yo(),x0));break;case 3:U(n,ou,(Yo(),B8));break;case 4:U(n,ou,(Yo(),ja))}}function oje(n,e,t){var i;t.Ug("Self-Loop routing",1),i=$5e(e),PM(v(e,(JT(),d9))),Ut(_r(ut(ut(rc(new Cn(null,new On(e.b,16)),new p2n),new m2n),new v2n),new k2n),new SMn(n,i)),t.Vg()}function y4(){y4=R,D8=new g6(kh,0),qsn=new g6(s3,1),zsn=new g6(f3,2),Gsn=new g6("LEFT_RIGHT_CONSTRAINT_LOCKING",3),Usn=new g6("LEFT_RIGHT_CONNECTION_LOCKING",4),Hsn=new g6(WXn,5)}function ZFn(n,e,t){var i,r,c,s,f,h,l;f=t.a/2,c=t.b/2,i=y.Math.abs(e.a-n.a),r=y.Math.abs(e.b-n.b),h=1,l=1,i>f&&(h=f/i),r>c&&(l=c/r),s=y.Math.min(h,l),n.a+=s*(e.a-n.a),n.b+=s*(e.b-n.b)}function sje(n,e,t,i,r){var c,s;for(s=!1,c=u(sn(t.b,0),27);RIe(n,e,c,i,r)&&(s=!0,Kke(t,c),t.b.c.length!=0);)c=u(sn(t.b,0),27);return t.b.c.length==0&&Uk(t.j,t),s&&fS(e.q),s}function fje(n,e){Vg();var t,i,r,c;if(e.b<2)return!1;for(c=ge(e,0),t=u(be(c),8),i=t;c.b!=c.d.c;){if(r=u(be(c),8),mR(n,i,r))return!0;i=r}return!!mR(n,i,t)}function snn(n,e,t,i){var r,c;return t==0?(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),qM(n.o,e,i)):(c=u($n((r=u(Un(n,16),29),r||n.ii()),t),69),c.wk().Ak(n,iu(n),t-se(n.ii()),e,i))}function tR(n,e){var t;e!=n.sb?(t=null,n.sb&&(t=u(n.sb,54).Th(n,1,I9,t)),e&&(t=u(e,54).Rh(n,1,I9,t)),t=kY(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,4,e,e))}function hje(n,e){var t,i,r,c;if(e)r=yl(e,"x"),t=new Ukn(n),Fm(t.a,(Jn(r),r)),c=yl(e,"y"),i=new Gkn(n),Hm(i.a,(Jn(c),c));else throw T(new eh("All edge sections need an end point."))}function lje(n,e){var t,i,r,c;if(e)r=yl(e,"x"),t=new _kn(n),_m(t.a,(Jn(r),r)),c=yl(e,"y"),i=new Hkn(n),qm(i.a,(Jn(c),c));else throw T(new eh("All edge sections need a start point."))}function aje(n,e){var t,i,r,c,s,f,h;for(i=CRn(n),c=0,f=i.length;c<f;++c)UFn(e);for(h=!Uf&&n.e?Uf?null:n.d:null;h;){for(t=CRn(h),r=0,s=t.length;r<s;++r)UFn(e);h=!Uf&&h.e?Uf?null:h.d:null}}function n_n(n,e){var t,i;i=u(v(e,(cn(),_t)),101),U(e,(W(),ufn),i),t=e.e,t&&(Ut(new Cn(null,new On(t.a,16)),new IG(n)),Ut(rc(new Cn(null,new On(t.b,16)),new FU),new OG(n)))}function Vn(){Vn=R,Xt=new a6("NORMAL",0),Ti=new a6("LONG_EDGE",1),Zt=new a6("EXTERNAL_PORT",2),_c=new a6("NORTH_SOUTH_PORT",3),Sc=new a6("LABEL",4),Gf=new a6("BREAKING_POINT",5)}function dje(n){var e,t,i,r;if(e=!1,kt(n,(W(),R8)))for(t=u(v(n,R8),85),r=new M(n.j);r.a<r.c.c.length;)i=u(E(r),12),jTe(i)&&(e||($Ee(Hi(n)),e=!0),P8e(u(t.xc(i),314)))}function bje(n){var e,t,i,r,c,s,f,h,l;return l=ZZ(n),t=n.e,c=t!=null,c&&ym(l,FP,n.e),f=n.k,s=!!f,s&&ym(l,"type",PN(n.k)),i=Z9(n.j),r=!i,r&&(h=new _a,bf(l,pF,h),e=new lyn(h),qi(n.j,e)),l}function wje(n){var e,t,i,r;for(r=X1((Mo(n.gc(),"size"),new fg),123),i=!0,t=Ja(n).Kc();t.Ob();)e=u(t.Pb(),44),i||(r.a+=ur),i=!1,Lc(X1(Lc(r,e.ld()),61),e.md());return(r.a+="}",r).a}function e_n(n,e){var t,i,r;return e&=63,e<22?(t=n.l<<e,i=n.m<<e|n.l>>22-e,r=n.h<<e|n.m>>22-e):e<44?(t=0,i=n.l<<e-22,r=n.m<<e-22|n.l>>44-e):(t=0,i=0,r=n.l<<e-44),Yc(t&ro,i&ro,r&Ol)}function s0(n){if(lun==null&&(lun=new RegExp("^\\s*[+-]?(NaN|Infinity|((\\d+\\.?\\d*)|(\\.\\d+))([eE][+-]?\\d+)?[dDfF]?)\\s*$")),!lun.test(n))throw T(new th(zb+n+'"'));return parseFloat(n)}function t_n(n,e){var t,i,r,c,s;for(r=e==1?C_:T_,i=r.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),88),s=u(ot(n.f.c,t),21).Kc();s.Ob();)c=u(s.Pb(),42),nn(n.b.b,u(c.b,86)),nn(n.b.a,u(c.b,86).d)}function gje(n,e){var t,i,r,c;for(c=e.b.j,n.a=F(ye,_e,28,c.c.length,15,1),r=0,i=0;i<c.c.length;i++)t=(Nn(i,c.c.length),u(c.c[i],12)),t.e.c.length==0&&t.g.c.length==0?r+=1:r+=3,n.a[i]=r}function vS(){vS=R,Z_=new b6("ALWAYS_UP",0),Y_=new b6("ALWAYS_DOWN",1),eH=new b6("DIRECTION_UP",2),nH=new b6("DIRECTION_DOWN",3),tH=new b6("SMART_UP",4),JI=new b6("SMART_DOWN",5)}function pje(n,e){if(n<0||e<0)throw T(new Gn("k and n must be positive"));if(e>n)throw T(new Gn("k must be smaller than n"));return e==0||e==n?1:n==0?0:$Z(n)/($Z(e)*$Z(n-e))}function fnn(n,e){var t,i,r,c;for(t=new TX(n);t.g==null&&!t.c?iJ(t):t.g==null||t.i!=0&&u(t.g[t.i-1],51).Ob();)if(c=u(MS(t),58),L(c,167))for(i=u(c,167),r=0;r<e.length;r++)e[r].Kg(i)}function iR(n){var e;return n.Db&64?ox(n):(e=new ls(ox(n)),e.a+=" (height: ",hg(e,n.f),e.a+=", width: ",hg(e,n.g),e.a+=", x: ",hg(e,n.i),e.a+=", y: ",hg(e,n.j),e.a+=")",e.a)}function mje(n){var e,t,i,r,c,s,f;for(e=new Ql,i=n,r=0,c=i.length;r<c;++r)if(t=i[r],s=Pe(t.ld()),f=s1(e,s,Pe(t.md())),f!=null)throw T(new Gn("duplicate key: "+s));this.b=(Ln(),new eL(e))}function vje(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],pl(c,String.fromCharCode(e));return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function hnn(){hnn=R,lon=(uC(),vI),BYn=new Tn(cP,lon),Y(1),KYn=new Tn(Gtn,Y(300)),Y(0),HYn=new Tn(ztn,Y(0)),qYn=new Tn(ZK,vh),FYn=new Tn(nB,5),UYn=vI,_Yn=m_}function kje(n,e){var t;if(e!=null&&!n.c.Hk().fk(e))throw t=L(e,58)?u(e,58).Dh().zb:Xa(wo(e)),T(new tm(wa+n.c.xe()+"'s type '"+n.c.Hk().xe()+"' does not permit a value of type '"+t+"'"))}function yje(n,e,t){var i,r;for(r=new xi(n.b,0);r.b<r.d.gc();)i=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),72)),x(v(i,(W(),rfn)))===x(e)&&(gnn(i.n,Hi(n.c.i),t),bo(r),nn(e.b,i))}function i_n(n){var e,t;return t=y.Math.sqrt((n.k==null&&(n.k=$Q(n,new _pn)),$(n.k)/(n.b*(n.g==null&&(n.g=jxn(n,new XU)),$(n.g))))),e=Se(vc(y.Math.round(t))),e=y.Math.min(e,n.f),e}function jje(){var n,e,t;for(e=0,n=0;n<1;n++){if(t=Knn((zn(n,1),"X".charCodeAt(n))),t==0)throw T(new Ne((zn(n,2),"Unknown Option: "+"X".substr(n))));e|=t}return e}function Ic(){Au(),pV.call(this),this.j=(en(),sc),this.a=new Ni,new sL,this.f=(Mo(2,m0),new Gc(2)),this.e=(Mo(4,m0),new Gc(4)),this.g=(Mo(4,m0),new Gc(4)),this.b=new IMn(this.e,this.g)}function Eje(n,e){var t,i;return!(on(un(v(e,(W(),zf))))||(i=e.c.i,n==(Yo(),B8)&&i.k==(Vn(),Sc))||(t=u(v(i,(cn(),ou)),171),t==ja))}function Mje(n,e){var t,i;return!(on(un(v(e,(W(),zf))))||(i=e.d.i,n==(Yo(),F8)&&i.k==(Vn(),Sc))||(t=u(v(i,(cn(),ou)),171),t==x0))}function Tje(n,e){var t,i,r,c,s,f,h;for(s=n.d,h=n.o,f=new Ho(-s.b,-s.d,s.b+h.a+s.c,s.d+h.b+s.a),i=e,r=0,c=i.length;r<c;++r)t=i[r],t&&O5(f,t.i);s.b=-f.c,s.d=-f.d,s.c=f.b-s.b-h.a,s.a=f.a-s.d-h.b}function Cje(n,e){if(e.a)switch(u(v(e.b,(W(),ufn)),101).g){case 0:case 1:Uke(e);case 2:Ut(new Cn(null,new On(e.d,16)),new qU),PMe(n.a,e)}else Ut(new Cn(null,new On(e.d,16)),new qU)}function Wk(){Wk=R,x1n=new w7("CENTER_DISTANCE",0),Bq=new w7("CIRCLE_UNDERLAP",1),K1n=new w7("RECTANGLE_UNDERLAP",2),Fq=new w7("INVERTED_OVERLAP",3),R1n=new w7("MINIMUM_ROOT_DISTANCE",4)}function Sje(n){aen();var e,t,i,r,c;if(n==null)return null;for(i=n.length,r=i*2,e=F(fs,gh,28,r,15,1),t=0;t<i;t++)c=n[t],c<0&&(c+=256),e[t*2]=PA[c>>4],e[t*2+1]=PA[c&15];return ws(e,0,e.length)}function Pje(n){kT();var e,t,i;switch(i=n.c.length,i){case 0:return rQn;case 1:return e=u(K_n(new M(n)),44),ywe(e.ld(),e.md());default:return t=u(Rf(n,F(Id,WS,44,n.c.length,0,1)),173),new sz(t)}}function Ije(n){var e,t,i,r,c,s;for(e=new Mg,t=new Mg,J1(e,n),J1(t,n);t.b!=t.c;)for(r=u(Pp(t),36),s=new M(r.a);s.a<s.c.c.length;)c=u(E(s),10),c.e&&(i=c.e,J1(e,i),J1(t,i));return e}function h1(n,e){switch(e.g){case 1:return Mp(n.j,(Au(),xon));case 2:return Mp(n.j,(Au(),Don));case 3:return Mp(n.j,(Au(),Kon));case 4:return Mp(n.j,(Au(),Bon));default:return Ln(),Ln(),sr}}function Oje(n,e){var t,i,r;t=bwe(e,n.e),i=u(ee(n.g.f,t),17).a,r=n.a.c.length-1,n.a.c.length!=0&&u(sn(n.a,r),293).c==i?(++u(sn(n.a,r),293).a,++u(sn(n.a,r),293).b):nn(n.a,new fSn(i))}function Aje(n,e,t){var i,r;return i=XSe(n,e,t),i!=0?i:kt(e,(W(),dt))&&kt(t,dt)?(r=jc(u(v(e,dt),17).a,u(v(t,dt),17).a),r<0?fy(n,e,t):r>0&&fy(n,t,e),r):pMe(n,e,t)}function sa(){sa=R,fce=(He(),N3),hce=qd,cce=Hd,uce=_2,oce=Sa,rce=F2,Vln=Vj,sce=W0,vq=(jen(),Xre),kq=Vre,Jln=Yre,yq=ece,Qln=Zre,Yln=nce,Wln=Wre,_O=Jre,HO=Qre,xj=tce,Zln=ice,Xln=zre}function r_n(n,e){var t,i,r,c,s;if(n.e<=e||Z2e(n,n.g,e))return n.g;for(c=n.r,i=n.g,s=n.r,r=(c-i)/2+i;i+1<c;)t=q5(n,r,!1),t.b<=r&&t.a<=e?(s=r,c=r):i=r,r=(c-i)/2+i;return s}function Lje(n,e,t){var i;i=Cqn(n,e,!0),xFn(t,"Recursive Graph Layout",i),fnn(e,S(C(ran,1),Rn,536,0,[new y8n])),Nf(e,(He(),q2))||fnn(e,S(C(ran,1),Rn,536,0,[new T4n])),ftn(n,e,null,t),c_n(t)}function c_n(n){var e;if(n.p==null)throw T(new Ar("The task has not begun yet."));n.b||(n.k&&(e=(fl(),er(vc(Date.now()),d1)),n.q=id(bs(e,n.o))*1e-9),n.c<n.r&&jQ(n,n.r-n.c),n.b=!0)}function Jk(n){var e,t,i;for(i=new Tu,Re(i,new V(n.j,n.k)),t=new ne((!n.a&&(n.a=new ti(xo,n,5)),n.a));t.e!=t.i.gc();)e=u(ue(t),377),Re(i,new V(e.a,e.b));return Re(i,new V(n.b,n.c)),i}function Nje(n,e,t,i,r){var c,s,f,h,l,a;if(r)for(h=r.a.length,c=new Qa(h),a=(c.b-c.a)*c.c<0?(_1(),Ra):new U1(c);a.Ob();)l=u(a.Pb(),17),f=Lm(r,l.a),s=new OOn(n,e,t,i),eIe(s.a,s.b,s.c,s.d,f)}function lnn(n,e){var t;if(x(n)===x(e))return!0;if(L(e,21)){t=u(e,21);try{return n.gc()==t.gc()&&n.Ic(t)}catch(i){if(i=Ot(i),L(i,169)||L(i,212))return!1;throw T(i)}}return!1}function rR(n,e,t,i,r,c){switch(this.c=n,e.g){case 2:if(n.a.Ne(r,t)<0)throw T(new Gn(Etn+r+Wzn+t));break;case 1:n.a.Ne(r,r);break;case 3:n.a.Ne(t,t)}this.f=e,this.b=t,this.a=i,this.e=r,this.d=c}function ann(n,e){var t;nn(n.d,e),t=e.Mf(),n.c?(n.e.a=y.Math.max(n.e.a,t.a),n.e.b+=t.b,n.d.c.length>1&&(n.e.b+=n.a)):(n.e.a+=t.a,n.e.b=y.Math.max(n.e.b,t.b),n.d.c.length>1&&(n.e.a+=n.a))}function Dje(n){var e,t,i,r;switch(r=n.i,e=r.b,i=r.j,t=r.g,r.a.g){case 0:t.a=(n.g.b.o.a-i.a)/2;break;case 1:t.a=e.d.n.a+e.d.a.a;break;case 2:t.a=e.d.n.a+e.d.a.a-i.a;break;case 3:t.b=e.d.n.b+e.d.a.b}}function $je(n,e,t){var i,r,c;for(r=new ie(ce(Ml(t).a.Kc(),new En));pe(r);)i=u(fe(r),18),!fr(i)&&!(!fr(i)&&i.c.i.c==i.d.i.c)&&(c=WHn(n,i,t,new Yyn),c.c.length>1&&Bn(e.c,c))}function u_n(n,e,t,i,r){if(i<e||r<t)throw T(new Gn("The highx must be bigger then lowx and the highy must be bigger then lowy"));return n.a<e?n.a=e:n.a>i&&(n.a=i),n.b<t?n.b=t:n.b>r&&(n.b=r),n}function xje(n){if(L(n,143))return dCe(u(n,143));if(L(n,233))return i8e(u(n,233));if(L(n,23))return bje(u(n,23));throw T(new Gn(Acn+ua(new Fu(S(C(ki,1),Rn,1,5,[n])))))}function Rje(n,e,t,i,r){var c,s,f;for(c=!0,s=0;s<i;s++)c=c&t[s]==0;if(r==0)Oc(t,i,n,0,e),s=e;else{for(f=32-r,c=c&t[s]<<f==0,s=0;s<e-1;s++)n[s]=t[s+i]>>>r|t[s+i+1]<<f;n[s]=t[s+i]>>>r,++s}return c}function dnn(n,e,t,i){var r,c,s;if(e.k==(Vn(),Ti)){for(c=new ie(ce(ji(e).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),s=r.c.i.k,s==Ti&&n.c.a[r.c.i.c.p]==i&&n.c.a[e.c.p]==t)return!0}return!1}function Kje(n,e){var t,i,r,c;return e&=63,t=n.h&Ol,e<22?(c=t>>>e,r=n.m>>e|t<<22-e,i=n.l>>e|n.m<<22-e):e<44?(c=0,r=t>>>e-22,i=n.m>>e-22|n.h<<44-e):(c=0,r=0,i=t>>>e-44),Yc(i&ro,r&ro,c&Ol)}function o_n(n,e,t,i){var r;this.b=i,this.e=n==(Ib(),Q8),r=e[t],this.d=Wa(so,[J,Xh],[183,28],16,[r.length,r.length],2),this.a=Wa(ye,[J,_e],[53,28],15,[r.length,r.length],2),this.c=new VZ(e,t)}function Bje(n){var e,t,i;for(n.k=new uJ((en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,n.j.c.length),i=new M(n.j);i.a<i.c.c.length;)t=u(E(i),113),e=t.d.j,In(n.k,e,t);n.e=ZTe(Cp(n.k))}function s_n(n,e){var t,i,r;fi(n.d,e),t=new F3n,Ve(n.c,e,t),t.f=tx(e.c),t.a=tx(e.d),t.d=(x5(),r=e.c.i.k,r==(Vn(),Xt)||r==Gf),t.e=(i=e.d.i.k,i==Xt||i==Gf),t.b=e.c.j==(en(),Wn),t.c=e.d.j==Zn}function Fje(n){var e,t,i,r,c;for(c=et,r=et,i=new M(xg(n));i.a<i.c.c.length;)t=u(E(i),218),e=t.e.e-t.d.e,t.e==n&&e<r?r=e:e<c&&(c=e);return r==et&&(r=-1),c==et&&(c=-1),new bi(Y(r),Y(c))}function _je(n,e){var t,i,r;return r=i2,i=(M5(),sj),r=y.Math.abs(n.b),t=y.Math.abs(e.f-n.b),t<r&&(r=t,i=gI),t=y.Math.abs(n.a),t<r&&(r=t,i=fj),t=y.Math.abs(e.g-n.a),t<r&&(r=t,i=wI),i}function Hje(n,e){var t,i,r,c;for(t=e.a.o.a,c=new Jl(Hi(e.a).b,e.c,e.f+1),r=new Gv(c);r.b<r.d.gc();)if(i=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),30)),i.c.a>=t)return j4(n,e,i.p),!0;return!1}function Ug(n,e,t,i){var r,c,s,f,h,l;for(s=t.length,c=0,r=-1,l=n$n((zn(e,n.length+1),n.substr(e)),(xN(),Iun)),f=0;f<s;++f)h=t[f].length,h>c&&a0e(l,n$n(t[f],Iun))&&(r=f,c=h);return r>=0&&(i[0]=e+c),r}function f_n(n){var e;return n.Db&64?iR(n):(e=new mo(kcn),!n.a||Be(Be((e.a+=' "',e),n.a),'"'),Be(eb(Be(eb(Be(eb(Be(eb((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function h_n(n,e,t){var i,r,c,s,f;for(f=ru(n.e.Dh(),e),r=u(n.g,124),i=0,s=0;s<n.i;++s)if(c=r[s],f.am(c.Lk())){if(i==t)return d0(n,s),dr(),u(e,69).xk()?c:c.md();++i}throw T(new Or(w8+t+Cd+i))}function l_n(n){var e,t,i;if(e=n.c,e==2||e==7||e==1)return nt(),nt(),B9;for(i=ctn(n),t=null;(e=n.c)!=2&&e!=7&&e!=1;)t||(t=(nt(),nt(),new C6(1)),pd(t,i),i=t),pd(t,ctn(n));return i}function qje(n,e,t){return n<0||n>t?jnn(n,t,"start index"):e<0||e>t?jnn(e,t,"end index"):R5("end index (%s) must not be less than start index (%s)",S(C(ki,1),Rn,1,5,[Y(e),Y(n)]))}function a_n(n,e){var t,i,r,c;for(i=0,r=n.length;i<r;i++){c=n[i];try{c[1]?c[0].Um()&&(e=Vwe(e,c)):c[0].Um()}catch(s){if(s=Ot(s),L(s,82))t=s,_E(),xge(L(t,485)?u(t,485).ke():t);else throw T(s)}}return e}function j4(n,e,t){var i,r,c;for(t!=e.c+e.b.gc()&&fOe(e.a,Tve(e,t-e.c)),c=e.a.c.p,n.a[c]=y.Math.max(n.a[c],e.a.o.a),r=u(v(e.a,(W(),K8)),15).Kc();r.Ob();)i=u(r.Pb(),72),U(i,$_,(_n(),!0))}function Uje(n,e){var t,i,r;r=yCe(e),U(e,(W(),aH),r),r&&(i=et,wr(n.f,r)&&(i=u(Fr(wr(n.f,r)),17).a),t=u(sn(e.g,0),18),on(un(v(t,zf)))||Ve(n,r,Y(y.Math.min(u(v(t,dt),17).a,i))))}function d_n(n,e,t){var i,r,c,s,f;for(e.p=-1,f=$b(e,(gr(),Jc)).Kc();f.Ob();)for(s=u(f.Pb(),12),r=new M(s.g);r.a<r.c.c.length;)i=u(E(r),18),c=i.d.i,e!=c&&(c.p<0?t.Fc(i):c.p>0&&d_n(n,c,t));e.p=0}function ln(n){var e;this.c=new Mt,this.f=n.e,this.e=n.d,this.i=n.g,this.d=n.c,this.b=n.b,this.k=n.j,this.a=n.a,n.i?this.j=n.i:this.j=(e=u(of(Zh),9),new _o(e,u(xs(e,e.length),9),0)),this.g=n.f}function Gje(n){var e,t,i,r;for(e=X1(Be(new mo("Predicates."),"and"),40),t=!0,r=new Gv(n);r.b<r.d.gc();)i=(oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++)),t||(e.a+=","),e.a+=""+i,t=!1;return(e.a+=")",e).a}function b_n(n,e,t){var i,r,c;if(!(t<=e+2))for(r=(t-e)/2|0,i=0;i<r;++i)c=(Nn(e+i,n.c.length),u(n.c[e+i],12)),Go(n,e+i,(Nn(t-i-1,n.c.length),u(n.c[t-i-1],12))),Nn(t-i-1,n.c.length),n.c[t-i-1]=c}function zje(n,e,t){var i,r,c,s,f,h,l,a;c=n.d.p,f=c.e,h=c.r,n.g=new L7(h),s=n.d.o.c.p,i=s>0?f[s-1]:F(Qh,b1,10,0,0,1),r=f[s],l=s<f.length-1?f[s+1]:F(Qh,b1,10,0,0,1),a=e==t-1,a?LD(n.g,r,l):LD(n.g,i,r)}function w_n(n){var e;this.j=new Z,this.f=new ni,this.b=(e=u(of(lr),9),new _o(e,u(xs(e,e.length),9),0)),this.d=F(ye,_e,28,(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,15,1),this.g=n}function g_n(n,e){var t,i,r;if(e.c.length!=0){for(t=GFn(n,e),r=!1;!t;)ES(n,e,!0),r=!0,t=GFn(n,e);r&&ES(n,e,!1),i=K$(e),n.b&&n.b.Gg(i),n.a=XRn(n,(Nn(0,e.c.length),u(e.c[0],27))),g_n(n,i)}}function cR(n,e){var t,i,r;if(i=$n(n.Dh(),e),t=e-n.ji(),t<0)if(i)if(i.rk())r=n.Ih(i),r>=0?n.ki(r):Cnn(n,i);else throw T(new Gn(wa+i.xe()+a8));else throw T(new Gn(aWn+e+dWn));else Wo(n,t,i)}function bnn(n){var e,t;if(t=null,e=!1,L(n,211)&&(e=!0,t=u(n,211).a),e||L(n,263)&&(e=!0,t=""+u(n,263).a),e||L(n,492)&&(e=!0,t=""+u(n,492).a),!e)throw T(new vL(Ocn));return t}function wnn(n,e,t){var i,r,c,s,f,h;for(h=ru(n.e.Dh(),e),i=0,f=n.i,r=u(n.g,124),s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk())){if(t==i)return s;++i,f=s+1}if(t==i)return f;throw T(new Or(w8+t+Cd+i))}function Xje(n,e){var t,i,r,c;if(n.f.c.length==0)return null;for(c=new mp,i=new M(n.f);i.a<i.c.c.length;)t=u(E(i),72),r=t.o,c.b=y.Math.max(c.b,r.a),c.a+=r.b;return c.a+=(n.f.c.length-1)*e,c}function Vje(n){var e,t,i,r;for(t=new Mt,Ki(t,n.o),i=new QG;t.b!=0;)e=u(t.b==0?null:(oe(t.b!=0),Xo(t,t.a.a)),515),r=ezn(n,e,!0),r&&nn(i.a,e);for(;i.a.c.length!=0;)e=u(DRn(i),515),ezn(n,e,!1)}function l1(){l1=R,can=new wp(Y5,0),yi=new wp("BOOLEAN",1),Zr=new wp("INT",2),$2=new wp("STRING",3),Qi=new wp("DOUBLE",4),It=new wp("ENUM",5),L3=new wp("ENUMSET",6),Vf=new wp("OBJECT",7)}function O5(n,e){var t,i,r,c,s;i=y.Math.min(n.c,e.c),c=y.Math.min(n.d,e.d),r=y.Math.max(n.c+n.b,e.c+e.b),s=y.Math.max(n.d+n.a,e.d+e.a),r<i&&(t=i,i=r,r=t),s<c&&(t=c,c=s,s=t),APn(n,i,c,r-i,s-c)}function p_n(n,e){var t,i;if(n.f){for(;e.Ob();)if(t=u(e.Pb(),76),i=t.Lk(),L(i,102)&&u(i,19).Bb&kc&&(!n.e||i.pk()!=_v||i.Lj()!=0)&&t.md()!=null)return e.Ub(),!0;return!1}else return e.Ob()}function m_n(n,e){var t,i;if(n.f){for(;e.Sb();)if(t=u(e.Ub(),76),i=t.Lk(),L(i,102)&&u(i,19).Bb&kc&&(!n.e||i.pk()!=_v||i.Lj()!=0)&&t.md()!=null)return e.Pb(),!0;return!1}else return e.Sb()}function Lu(){Lu=R,tbn=S(C(fn,1),J,2,6,[Gcn,Jy,YP,IJn,ZP,PF,FP]),ebn=S(C(fn,1),J,2,6,[Gcn,"empty",Jy,Wy,"elementOnly"]),ibn=S(C(fn,1),J,2,6,[Gcn,"preserve","replace",vf]),zi=new NPn}function gnn(n,e,t){var i,r,c;if(e!=t){i=e;do it(n,i.c),r=i.e,r&&(c=i.d,hb(n,c.b,c.d),it(n,r.n),i=Hi(r));while(r);i=t;do mi(n,i.c),r=i.e,r&&(c=i.d,A6(n,c.b,c.d),mi(n,r.n),i=Hi(r));while(r)}}function uR(n,e,t,i){var r,c,s,f,h;if(i.f.c+i.i.c==0)for(s=n.a[n.c],f=0,h=s.length;f<h;++f)c=s[f],Ve(i,c,new Oxn(n,c,t));return r=u(Fr(wr(i.f,e)),677),r.b=0,r.c=r.f,r.c==0||i9n(u(sn(r.a,r.b),293)),r}function Yp(){Yp=R,dv=new d6("MEDIAN_LAYER",0),L8=new d6("TAIL_LAYER",1),av=new d6("HEAD_LAYER",2),D0=new d6("SPACE_EFFICIENT_LAYER",3),p2=new d6("WIDEST_LAYER",4),g2=new d6("CENTER_LAYER",5)}function pnn(n){var e,t,i,r;for(n.e=0,r=ge(n.f,0);r.b!=r.d.c;)i=u(be(r),10),i.p>=n.d.b.c.length&&(e=new Nc(n.d),e.p=i.p-1,nn(n.d.b,e),t=new Nc(n.d),t.p=i.p,nn(n.d.b,t)),$i(i,u(sn(n.d.b,i.p),30))}function mnn(n,e,t){var i,r,c;if(!n.b[e.g]){for(n.b[e.g]=!0,i=t,!i&&(i=new ek),Re(i.b,e),c=n.a[e.g].Kc();c.Ob();)r=u(c.Pb(),65),r.b!=e&&mnn(n,r.b,i),r.c!=e&&mnn(n,r.c,i),Re(i.a,r);return i}return null}function Wje(n){switch(n.g){case 0:case 1:case 2:return en(),Xn;case 3:case 4:case 5:return en(),ae;case 6:case 7:case 8:return en(),Wn;case 9:case 10:case 11:return en(),Zn;default:return en(),sc}}function Jje(n,e){var t;return n.c.length==0?!1:(t=AKn((Nn(0,n.c.length),u(n.c[0],18)).c.i),ko(),t==(c0(),I2)||t==P2?!0:Ag(_r(new Cn(null,new On(n,16)),new i3n),new Q7n(e)))}function oR(n,e){if(L(e,207))return Ule(n,u(e,27));if(L(e,193))return Gle(n,u(e,123));if(L(e,451))return qle(n,u(e,166));throw T(new Gn(Acn+ua(new Fu(S(C(ki,1),Rn,1,5,[e])))))}function v_n(n,e,t){var i,r;if(this.f=n,i=u(ee(n.b,e),260),r=i?i.a:0,xJ(t,r),t>=(r/2|0))for(this.e=i?i.c:null,this.d=r;t++<r;)e$n(this);else for(this.c=i?i.b:null;t-- >0;)uQ(this);this.b=e,this.a=null}function Qje(n,e){var t,i;e.a?ACe(n,e):(t=u(OL(n.b,e.b),60),t&&t==n.a[e.b.f]&&t.a&&t.a!=e.b.a&&t.c.Fc(e.b),i=u(IL(n.b,e.b),60),i&&n.a[i.f]==e.b&&i.a&&i.a!=e.b.a&&e.b.c.Fc(i),EN(n.b,e.b))}function k_n(n,e){var t,i;if(t=u(Mr(n.b,e),127),u(u(ot(n.r,e),21),87).dc()){t.n.b=0,t.n.c=0;return}t.n.b=n.C.b,t.n.c=n.C.c,n.A.Hc((go(),Gd))&&Xqn(n,e),i=T9e(n,e),kR(n,e)==(Kg(),Ia)&&(i+=2*n.w),t.a.a=i}function y_n(n,e){var t,i;if(t=u(Mr(n.b,e),127),u(u(ot(n.r,e),21),87).dc()){t.n.d=0,t.n.a=0;return}t.n.d=n.C.d,t.n.a=n.C.a,n.A.Hc((go(),Gd))&&Vqn(n,e),i=M9e(n,e),kR(n,e)==(Kg(),Ia)&&(i+=2*n.w),t.a.b=i}function Yje(n,e){var t,i,r,c;for(c=new Z,i=new M(e);i.a<i.c.c.length;)t=u(E(i),68),nn(c,new Uz(t,!0)),nn(c,new Uz(t,!1));r=new WOn(n),r.a.a.$b(),hLn(c,n.b,new Fu(S(C(RQn,1),Rn,693,0,[r])))}function j_n(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;return h=n.a,p=n.b,l=e.a,m=e.b,a=t.a,k=t.b,d=i.a,j=i.b,c=h*m-p*l,s=a*j-k*d,r=(h-l)*(k-j)-(p-m)*(a-d),f=(c*(a-d)-s*(h-l))/r,g=(c*(k-j)-s*(p-m))/r,new V(f,g)}function Zje(n,e){var t,i,r;e.Ug("End label pre-processing",1),t=$(B(v(n,(cn(),C2)))),i=$(B(v(n,q0))),r=vg(u(v(n,Lo),88)),Ut(rc(new Cn(null,new On(n.b,16)),new R0n),new gPn(t,i,r)),e.Vg()}function vnn(n,e){var t,i,r;if(!n.d[e.p]){for(n.d[e.p]=!0,n.a[e.p]=!0,i=new ie(ce(Qt(e).a.Kc(),new En));pe(i);)t=u(fe(i),18),!fr(t)&&(r=t.d.i,n.a[r.p]?nn(n.b,t):vnn(n,r));n.a[e.p]=!1}}function E_n(n,e,t){var i;switch(i=0,u(v(e,(cn(),ou)),171).g){case 2:i=2*-t+n.a,++n.a;break;case 1:i=-t;break;case 3:i=t;break;case 4:i=2*t+n.b,++n.b}return kt(e,(W(),dt))&&(i+=u(v(e,dt),17).a),i}function M_n(n,e,t){var i,r,c;for(t.zc(e,n),nn(n.n,e),c=n.p.zg(e),e.j==n.p.Ag()?vKn(n.e,c):vKn(n.j,c),pT(n),r=$h(Eo(S(C(Ao,1),Rn,20,0,[new nm(e),new ip(e)])));pe(r);)i=u(fe(r),12),t._b(i)||M_n(n,i,t)}function nEe(n,e,t){var i,r,c;for(t.Ug("Processor set neighbors",1),n.a=e.b.b==0?1:e.b.b,r=null,i=ge(e.b,0);!r&&i.b!=i.d.c;)c=u(be(i),39),on(un(v(c,(pt(),Ca))))&&(r=c);r&&Iqn(n,new sl(r),t),t.Vg()}function knn(n){var e,t,i;return t=u(z(n,(He(),Hd)),21),t.Hc((go(),Q0))?(i=u(z(n,Sa),21),e=new rr(u(z(n,_2),8)),i.Hc((io(),Fv))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e):new Ni}function ynn(n){var e,t,i;if(!n.b){for(i=new jvn,t=new yp(H5(n));t.e!=t.i.gc();)e=u(Tx(t),19),e.Bb&kc&&ve(i,e);e0(i),n.b=new pg((u(N(H((z1(),Hn).o),8),19),i.i),i.g),Zu(n).b&=-9}return n.b}function f0(n){var e,t,i;for(t=n.length,i=0;i<t&&(zn(i,n.length),n.charCodeAt(i)<=32);)++i;for(e=t;e>i&&(zn(e-1,n.length),n.charCodeAt(e-1)<=32);)--e;return i>0||e<t?(Ri(i,e,n.length),n.substr(i,e-i)):n}function eEe(n,e){var t,i,r,c,s,f,h,l;h=u(T5(Cp(e.k),F(lr,Tc,64,2,0,1)),126),l=e.g,t=NLn(e,h[0]),r=LLn(e,h[1]),i=Fx(n,l,t,r),c=NLn(e,h[1]),f=LLn(e,h[0]),s=Fx(n,l,c,f),i<=s?(e.a=t,e.c=r):(e.a=c,e.c=f)}function Qk(n){var e;Ln();var t,i,r,c,s,f;if(L(n,59))for(c=0,r=n.gc()-1;c<r;++c,--r)e=n.Xb(c),n.hd(c,n.Xb(r)),n.hd(r,e);else for(t=n.ed(),s=n.fd(n.gc());t.Tb()<s.Vb();)i=t.Pb(),f=s.Ub(),t.Wb(f),s.Wb(i)}function kS(n,e){var t,i,r,c,s,f;for(f=0,c=new Mg,J1(c,e);c.b!=c.c;)for(s=u(Pp(c),219),f+=XBn(s.d,s.e),r=new M(s.b);r.a<r.c.c.length;)i=u(E(r),36),t=u(sn(n.b,i.p),219),t.s||(f+=kS(n,t));return f}function T_n(n,e,t,i,r){var c,s,f,h,l;if(e)for(f=e.Kc();f.Ob();)for(s=u(f.Pb(),10),l=gen(s,(gr(),Jc),t).Kc();l.Ob();)h=u(l.Pb(),12),c=u(Fr(wr(r.f,h)),118),c||(c=new kk(n.d),Bn(i.c,c),M_n(c,h,r))}function C_n(n,e,t){var i,r;Gxn(this),e==(Eb(),Ta)?fi(this.r,n.c):fi(this.w,n.c),t==Ta?fi(this.r,n.d):fi(this.w,n.d),s_n(this,n),i=tx(n.c),r=tx(n.d),YFn(this,i,r,r),this.o=(x5(),y.Math.abs(i-r)<.2)}function S_n(n,e,t){var i,r,c,s,f,h;if(f=u(Un(n.a,8),2035),f!=null)for(r=f,c=0,s=r.length;c<s;++c)null.Um();i=t,n.a.Db&1||(h=new eOn(n,t,e),i.dj(h)),L(i,686)?u(i,686).fj(n.a):i.cj()==n.a&&i.ej(null)}function tEe(){var n;return kse?u(M4((F1(),Is),Pd),2044):(LLe(),n=u(L(Dc((F1(),Is),Pd),594)?Dc(Is,Pd):new aOn,594),kse=!0,mNe(n),ZNe(n),Ve((Dz(),Hdn),n,new P6n),Hx(n),Lr(Is,Pd,n),n)}function iEe(n,e,t,i){var r;return r=Ug(n,t,S(C(fn,1),J,2,6,[vK,kK,yK,jK,EK,MK,TK]),e),r<0&&(r=Ug(n,t,S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),e)),r<0?!1:(i.d=r,!0)}function rEe(n,e,t,i){var r;return r=Ug(n,t,S(C(fn,1),J,2,6,[vK,kK,yK,jK,EK,MK,TK]),e),r<0&&(r=Ug(n,t,S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),e)),r<0?!1:(i.d=r,!0)}function Vc(n,e,t){var i,r,c,s;if(s=n.b.Ce(e),r=(i=n.a.get(s),i??F(ki,Rn,1,0,5,1)),r.length==0)n.a.set(s,r);else if(c=RRn(n,e,r),c)return c.nd(t);return $t(r,r.length,new uM(e,t)),++n.c,++n.b.g,null}function cEe(n){var e,t,i;for(pTe(n),i=new Z,t=new M(n.a.a.b);t.a<t.c.c.length;)e=u(E(t),86),nn(i,new Xz(e,!0)),nn(i,new Xz(e,!1));z9e(n.c),J7(i,n.b,new Fu(S(C(lj,1),Rn,382,0,[n.c]))),OMe(n)}function Yk(n,e){var t,i,r;for(r=new Z,i=new M(n.c.a.b);i.a<i.c.c.length;)t=u(E(i),60),e.Lb(t)&&(nn(r,new Fz(t,!0)),nn(r,new Fz(t,!1)));G9e(n.e),hLn(r,n.d,new Fu(S(C(RQn,1),Rn,693,0,[n.e])))}function uEe(n){var e,t,i,r;for(t=new de,r=new M(n.d);r.a<r.c.c.length;)i=u(E(r),187),e=u(i.of((W(),T3)),18),wr(t.f,e)||Ve(t,e,new HOn(e)),nn(u(Fr(wr(t.f,e)),465).b,i);return new _u(new ol(t))}function oEe(n,e){var t,i,r,c,s;for(i=new aLn(n.j.c.length),t=null,c=new M(n.j);c.a<c.c.c.length;)r=u(E(c),12),r.j!=t&&(i.b==i.c||qHn(i,t,e),MJ(i),t=r.j),s=THn(r),s&&mJ(i,s);i.b==i.c||qHn(i,t,e)}function sEe(n,e){var t,i,r;for(i=new xi(n.b,0);i.b<i.d.gc();)t=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),72)),r=u(v(t,(cn(),Sh)),278),r==($f(),J0)&&(bo(i),nn(e.b,t),kt(t,(W(),T3))||U(t,T3,n))}function fEe(n){var e,t,i,r,c;for(e=wl(new ie(ce(Qt(n).a.Kc(),new En))),r=new ie(ce(ji(n).a.Kc(),new En));pe(r);)i=u(fe(r),18),t=i.c.i,c=wl(new ie(ce(Qt(t).a.Kc(),new En))),e=y.Math.max(e,c);return Y(e)}function P_n(n,e,t){var i,r,c;i=u(z(n,(He(),Uj)),21),r=0,c=0,e.a>t.a&&(i.Hc((wd(),b9))?r=(e.a-t.a)/2:i.Hc(w9)&&(r=e.a-t.a)),e.b>t.b&&(i.Hc((wd(),p9))?c=(e.b-t.b)/2:i.Hc(g9)&&(c=e.b-t.b)),inn(n,r,c)}function I_n(n,e,t,i,r,c,s,f,h,l,a,d,g){L(n.Cb,90)&&h0(Zu(u(n.Cb,90)),4),zc(n,t),n.f=s,f4(n,f),l4(n,h),s4(n,l),h4(n,a),u1(n,d),a4(n,g),c1(n,!0),e1(n,r),n.Zk(c),ad(n,e),i!=null&&(n.i=null,kC(n,i))}function jnn(n,e,t){if(n<0)return R5(Czn,S(C(ki,1),Rn,1,5,[t,Y(n)]));if(e<0)throw T(new Gn(Szn+e));return R5("%s (%s) must not be greater than size (%s)",S(C(ki,1),Rn,1,5,[t,Y(n),Y(e)]))}function Enn(n,e,t,i,r,c){var s,f,h,l;if(s=i-t,s<7){z5e(e,t,i,c);return}if(h=t+r,f=i+r,l=h+(f-h>>1),Enn(e,n,h,l,-r,c),Enn(e,n,l,f,-r,c),c.Ne(n[l-1],n[l])<=0){for(;t<i;)$t(e,t++,n[h++]);return}n5e(n,h,l,f,e,t,i,c)}function hEe(n,e){var t,i,r,c,s,f,h;for(h=e.d,r=e.b.j,f=new M(h);f.a<f.c.c.length;)for(s=u(E(f),105),c=F(so,Xh,28,r.c.length,16,1),Ve(n.b,s,c),t=s.a.d.p-1,i=s.c.d.p;t!=i;)t=(t+1)%r.c.length,c[t]=!0}function lEe(n,e){if(vQ(),kt(n,(W(),dt))&&kt(e,dt))return jc(u(v(n,dt),17).a,u(v(e,dt),17).a);throw T(new hp("The BF model order layer assigner requires all real nodes to have a model order."))}function aEe(n,e){if(kQ(),kt(n,(W(),dt))&&kt(e,dt))return jc(u(v(n,dt),17).a,u(v(e,dt),17).a);throw T(new hp("The DF model order layer assigner requires all real nodes to have a model order."))}function dEe(n,e){for(n.r=new kk(n.p),cfe(n.r,n),Ki(n.r.j,n.j),vo(n.j),Re(n.j,e),Re(n.r.e,e),pT(n),pT(n.r);n.f.c.length!=0;)ECn(u(sn(n.f,0),132));for(;n.k.c.length!=0;)ECn(u(sn(n.k,0),132));return n.r}function sR(n,e,t){var i,r,c;if(r=$n(n.Dh(),e),i=e-n.ji(),i<0)if(r)if(r.rk())c=n.Ih(r),c>=0?n.bi(c,t):Znn(n,r,t);else throw T(new Gn(wa+r.xe()+a8));else throw T(new Gn(aWn+e+dWn));else Jo(n,i,r,t)}function O_n(n){var e,t;if(n.f){for(;n.n>0;){if(e=u(n.k.Xb(n.n-1),76),t=e.Lk(),L(t,102)&&u(t,19).Bb&kc&&(!n.e||t.pk()!=_v||t.Lj()!=0)&&e.md()!=null)return!0;--n.n}return!1}else return n.n>0}function A_n(n){var e,t,i,r;if(t=u(n,54)._h(),t)try{if(i=null,e=M4((F1(),Is),gUn(r8e(t))),e&&(r=e.ai(),r&&(i=r.Fl(che(t.e)))),i&&i!=n)return A_n(i)}catch(c){if(c=Ot(c),!L(c,63))throw T(c)}return n}function bEe(n,e,t){var i,r,c;t.Ug("Remove overlaps",1),t.dh(e,Nrn),i=u(z(e,(Cg(),L2)),27),n.f=i,n.a=Sx(u(z(e,(sa(),xj)),299)),r=B(z(e,(He(),qd))),gG(n,(Jn(r),r)),c=a0(i),KGn(n,e,c,t),t.dh(e,LP)}function wEe(n){var e,t,i;if(on(un(z(n,(He(),zj))))){for(i=new Z,t=new ie(ce(Sl(n).a.Kc(),new En));pe(t);)e=u(fe(t),74),Bb(e)&&on(un(z(e,Zq)))&&Bn(i.c,e);return i}else return Ln(),Ln(),sr}function L_n(n){if(!n)return Ajn(),dQn;var e=n.valueOf?n.valueOf():n;if(e!==n){var t=VF[typeof e];return t?t(e):dY(typeof e)}else return n instanceof Array||n instanceof y.Array?new hG(n):new q9(n)}function N_n(n,e,t){var i,r,c;switch(c=n.o,i=u(Mr(n.p,t),252),r=i.i,r.b=ey(i),r.a=ny(i),r.b=y.Math.max(r.b,c.a),r.b>c.a&&!e&&(r.b=c.a),r.c=-(r.b-c.a)/2,t.g){case 1:r.d=-r.a;break;case 3:r.d=c.b}NR(i),DR(i)}function D_n(n,e,t){var i,r,c;switch(c=n.o,i=u(Mr(n.p,t),252),r=i.i,r.b=ey(i),r.a=ny(i),r.a=y.Math.max(r.a,c.b),r.a>c.b&&!e&&(r.a=c.b),r.d=-(r.a-c.b)/2,t.g){case 4:r.c=-r.b;break;case 2:r.c=c.a}NR(i),DR(i)}function gEe(n,e){var t,i,r,c,s;if(!e.dc()){if(r=u(e.Xb(0),131),e.gc()==1){lqn(n,r,r,1,0,e);return}for(t=1;t<e.gc();)(r.j||!r.o)&&(c=j7e(e,t),c&&(i=u(c.a,17).a,s=u(c.b,131),lqn(n,r,s,t,i,e),t=i+1,r=s))}}function pEe(n){var e,t,i,r,c,s;for(s=new _u(n.d),Yt(s,new vpn),e=(LS(),S(C(Esn,1),G,276,0,[F_,q_,B_,z_,H_,__,G_,U_])),t=0,c=new M(s);c.a<c.c.c.length;)r=u(E(c),105),i=e[t%e.length],gMe(r,i),++t}function mEe(n,e){Vg();var t,i,r,c;if(e.b<2)return!1;for(c=ge(e,0),t=u(be(c),8),i=t;c.b!=c.d.c;){if(r=u(be(c),8),!(Vm(n,i)&&Vm(n,r)))return!1;i=r}return!!(Vm(n,i)&&Vm(n,t))}function Mnn(n,e){var t,i,r,c,s,f,h,l,a,d;return a=null,d=n,s=yl(d,"x"),t=new Wkn(e),Jme(t.a,s),f=yl(d,"y"),i=new Jkn(e),Qme(i.a,f),h=yl(d,dF),r=new Qkn(e),Yme(r.a,h),l=yl(d,aF),c=new Ykn(e),a=(Zme(c.a,l),l),a}function h0(n,e){Uqn(n,e),n.b&1&&(n.a.a=null),n.b&2&&(n.a.f=null),n.b&4&&(n.a.g=null,n.a.i=null),n.b&16&&(n.a.d=null,n.a.e=null),n.b&8&&(n.a.b=null),n.b&32&&(n.a.j=null,n.a.c=null)}function vEe(n,e){var t,i,r;if(r=0,e.length>0)try{r=So(e,Wi,et)}catch(c){throw c=Ot(c),L(c,130)?(i=c,T(new eC(i))):T(c)}return t=(!n.a&&(n.a=new iL(n)),n.a),r<t.i&&r>=0?u(N(t,r),58):null}function kEe(n,e){if(n<0)return R5(Czn,S(C(ki,1),Rn,1,5,["index",Y(n)]));if(e<0)throw T(new Gn(Szn+e));return R5("%s (%s) must be less than size (%s)",S(C(ki,1),Rn,1,5,["index",Y(n),Y(e)]))}function yEe(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),M6(c.a,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function jEe(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),M6(c.a,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function EEe(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),M6(c.a,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function MEe(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),M6(c.a,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function $_n(n,e){var t,i,r,c,s,f;for(t=n.b.c.length,r=sn(n.b,e);e*2+1<t&&(i=(c=2*e+1,s=c+1,f=c,s<t&&n.a.Ne(sn(n.b,s),sn(n.b,c))<0&&(f=s),f),!(n.a.Ne(r,sn(n.b,i))<0));)Go(n.b,e,sn(n.b,i)),e=i;Go(n.b,e,r)}function fR(n,e,t){var i,r;return i=t.d,r=t.e,n.g[i.d]<=n.i[e.d]&&n.i[e.d]<=n.i[i.d]&&n.g[r.d]<=n.i[e.d]&&n.i[e.d]<=n.i[r.d]?!(n.i[i.d]<n.i[r.d]):n.i[i.d]<n.i[r.d]}function TEe(n,e){var t;if(t=u(v(e,(cn(),H8)),322),t!=n)throw T(new hp("The hierarchy aware processor "+t+" in child node "+e+" is only allowed if the root node specifies the same hierarchical processor."))}function CEe(n,e){var t,i,r,c,s;for(i=(!e.s&&(e.s=new q(ku,e,21,17)),e.s),c=null,r=0,s=i.i;r<s;++r)switch(t=u(N(i,r),179),vb(Nr(n,t))){case 2:case 3:!c&&(c=new Z),Bn(c.c,t)}return c||(Ln(),Ln(),sr)}function x_n(n,e,t){var i,r,c,s,f,h;for(h=Pt,c=new M(nqn(n.b));c.a<c.c.c.length;)for(r=u(E(c),177),f=new M(nqn(e.b));f.a<f.c.c.length;)s=u(E(f),177),i=Wve(r.a,r.b,s.a,s.b,t),h=y.Math.min(h,i);return h}function gi(n,e){if(!e)throw T(new rp);if(n.j=e,!n.d)switch(n.j.g){case 1:n.a.a=n.o.a/2,n.a.b=0;break;case 2:n.a.a=n.o.a,n.a.b=n.o.b/2;break;case 3:n.a.a=n.o.a/2,n.a.b=n.o.b;break;case 4:n.a.a=0,n.a.b=n.o.b/2}}function SEe(n,e){var t,i,r;return L(e.g,10)&&u(e.g,10).k==(Vn(),Zt)?Pt:(r=xp(e),r?y.Math.max(0,n.b/2-.5):(t=Ig(e),t?(i=$(B(r0(t,(cn(),bw)))),y.Math.max(0,i/2-.5)):Pt))}function PEe(n,e){var t,i,r;return L(e.g,10)&&u(e.g,10).k==(Vn(),Zt)?Pt:(r=xp(e),r?y.Math.max(0,n.b/2-.5):(t=Ig(e),t?(i=$(B(r0(t,(cn(),bw)))),y.Math.max(0,i/2-.5)):Pt))}function IEe(n,e){Rs();var t,i,r,c,s,f;for(t=null,s=e.Kc();s.Ob();)c=u(s.Pb(),131),!c.o&&(i=f1e(c.a),r=wwe(c.a),f=new _5(i,r,null,u(c.d.a.ec().Kc().Pb(),18)),nn(f.c,c.a),Bn(n.c,f),t&&nn(t.d,f),t=f)}function OEe(n){var e,t,i,r,c,s;for(s=b5(n.d,n.e),c=s.Kc();c.Ob();)for(r=u(c.Pb(),12),i=n.e==(en(),Wn)?r.e:r.g,t=new M(i);t.a<t.c.c.length;)e=u(E(t),18),!fr(e)&&e.c.i.c!=e.d.i.c&&(Oje(n,e),++n.f,++n.c)}function R_n(n,e){var t,i;if(e.dc())return Ln(),Ln(),sr;for(i=new Z,nn(i,Y(Wi)),t=1;t<n.f;++t)n.a==null&&qqn(n),n.a[t]&&nn(i,Y(t));return i.c.length==1?(Ln(),Ln(),sr):(nn(i,Y(et)),FIe(e,i))}function AEe(n,e){var t,i,r,c,s,f,h;s=e.c.i.k!=(Vn(),Xt),h=s?e.d:e.c,t=F7e(e,h).i,r=u(ee(n.k,h),125),i=n.i[t.p].a,ePn(h.i)<(t.c?qr(t.c.a,t,0):-1)?(c=r,f=i):(c=i,f=r),qs(Ns(Ls(Ds(As(new hs,0),4),c),f))}function LEe(n,e,t){var i,r,c,s,f,h;if(t)for(r=t.a.length,i=new Qa(r),f=(i.b-i.a)*i.c<0?(_1(),Ra):new U1(i);f.Ob();)s=u(f.Pb(),17),h=Rx(n,Zp(Jw(t,s.a))),h&&(c=(!e.b&&(e.b=new Dn(he,e,4,7)),e.b),ve(c,h))}function NEe(n,e,t){var i,r,c,s,f,h;if(t)for(r=t.a.length,i=new Qa(r),f=(i.b-i.a)*i.c<0?(_1(),Ra):new U1(i);f.Ob();)s=u(f.Pb(),17),h=Rx(n,Zp(Jw(t,s.a))),h&&(c=(!e.c&&(e.c=new Dn(he,e,5,8)),e.c),ve(c,h))}function Zk(n,e,t){var i,r;i=e.a&n.f,e.b=n.b[i],n.b[i]=e,r=e.f&n.f,e.d=n.c[r],n.c[r]=e,t?(e.e=t.e,e.e?e.e.c=e:n.a=e,e.c=t.c,e.c?e.c.e=e:n.e=e):(e.e=n.e,e.c=null,n.e?n.e.c=e:n.a=e,n.e=e),++n.i,++n.g}function K_n(n){var e,t,i;if(e=n.Pb(),!n.Ob())return e;for(i=Lc(Be(new R1,"expected one element but was: <"),e),t=0;t<4&&n.Ob();t++)Lc((i.a+=ur,i),n.Pb());throw n.Ob()&&(i.a+=", ..."),i.a+=">",T(new Gn(i.a))}function DEe(n){var e,t;return t=-n.a,e=S(C(fs,1),gh,28,15,[43,48,48,48,48]),t<0&&(e[0]=45,t=-t),e[1]=e[1]+((t/60|0)/10|0)&ui,e[2]=e[2]+(t/60|0)%10&ui,e[3]=e[3]+(t%60/10|0)&ui,e[4]=e[4]+t%10&ui,ws(e,0,e.length)}function Tnn(n){var e,t,i,r;for(n.g=new v5(u(Pe(lr),296)),i=0,t=(en(),Xn),e=0;e<n.j.c.length;e++)r=u(sn(n.j,e),12),r.j!=t&&(i!=e&&Ip(n.g,t,new bi(Y(i),Y(e))),t=r.j,i=e);Ip(n.g,t,new bi(Y(i),Y(e)))}function $Ee(n){var e,t,i,r,c,s,f;for(i=0,t=new M(n.b);t.a<t.c.c.length;)for(e=u(E(t),30),c=new M(e.a);c.a<c.c.c.length;)for(r=u(E(c),10),r.p=i++,f=new M(r.j);f.a<f.c.c.length;)s=u(E(f),12),s.p=i++}function Cnn(n,e){var t,i,r;if(r=Qg((Lu(),zi),n.Dh(),e),r)dr(),u(r,69).xk()||(r=$p(Nr(zi,r))),i=(t=n.Ih(r),u(t>=0?n.Lh(t,!0,!0):Fb(n,r,!0),160)),u(i,220).Zl(e);else throw T(new Gn(wa+e.xe()+a8))}function Snn(n){var e,t;return n>-0x800000000000&&n<0x800000000000?n==0?0:(e=n<0,e&&(n=-n),t=wi(y.Math.floor(y.Math.log(n)/.6931471805599453)),(!e||n!=y.Math.pow(2,t))&&++t,t):Jxn(vc(n))}function xEe(n){var e,t,i,r,c,s,f;for(c=new rh,t=new M(n);t.a<t.c.c.length;)e=u(E(t),132),s=e.a,f=e.b,!(c.a._b(s)||c.a._b(f))&&(r=s,i=f,s.e.b+s.j.b>2&&f.e.b+f.j.b<=2&&(r=f,i=s),c.a.zc(r,c),r.q=i);return c}function REe(n,e,t){t.Ug("Eades radial",1),t.dh(e,LP),n.d=u(z(e,(Cg(),L2)),27),n.c=$(B(z(e,(sa(),HO)))),n.e=Sx(u(z(e,xj),299)),n.a=a8e(u(z(e,Zln),434)),n.b=Lke(u(z(e,Wln),354)),bke(n),t.dh(e,LP)}function KEe(n,e){if(e.Ug("Target Width Setter",1),Nf(n,(Bf(),Lq)))ht(n,(_h(),X0),B(z(n,Lq)));else throw T(new _l("A target width has to be set if the TargetWidthWidthApproximator should be used."));e.Vg()}function B_n(n,e){var t,i,r;return i=new Cl(n),Ur(i,e),U(i,(W(),cO),e),U(i,(cn(),_t),(Ai(),qc)),U(i,Ch,(Bh(),nA)),Ha(i,(Vn(),Zt)),t=new Ic,ic(t,i),gi(t,(en(),Wn)),r=new Ic,ic(r,i),gi(r,Zn),i}function F_n(n){switch(n.g){case 0:return new gL((Ib(),Oj));case 1:return new t8n;case 2:return new i8n;default:throw T(new Gn("No implementation is available for the crossing minimizer "+(n.f!=null?n.f:""+n.g)))}}function __n(n,e){var t,i,r,c,s;for(n.c[e.p]=!0,nn(n.a,e),s=new M(e.j);s.a<s.c.c.length;)for(c=u(E(s),12),i=new Lf(c.b);tc(i.a)||tc(i.b);)t=u(tc(i.a)?E(i.a):E(i.b),18),r=K8e(c,t).i,n.c[r.p]||__n(n,r)}function H_n(n){var e,t,i,r,c,s,f;for(s=0,t=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));t.e!=t.i.gc();)e=u(ue(t),27),f=e.g,r=e.f,i=y.Math.sqrt(f*f+r*r),s=y.Math.max(i,s),c=H_n(e),s=y.Math.max(c,s);return s}function zu(){zu=R,Aa=new y6("OUTSIDE",0),Rl=new y6("INSIDE",1),eE=new y6("NEXT_TO_PORT_IF_POSSIBLE",2),C9=new y6("ALWAYS_SAME_SIDE",3),T9=new y6("ALWAYS_OTHER_SAME_SIDE",4),R3=new y6("SPACE_EFFICIENT",5)}function q_n(n,e,t){var i,r,c,s,f,h;return i=_pe(n,(r=(B1(),c=new Jv,c),t&&PS(r,t),r),e),zm(i,bl(e,Eh)),gS(e,i),YMe(e,i),Mnn(e,i),s=e,f=Tb(s,"ports"),h=new TTn(n,i),xTe(h.a,h.b,f),_$(n,e,i),Uve(n,e,i),i}function BEe(n){var e,t;return t=-n.a,e=S(C(fs,1),gh,28,15,[43,48,48,58,48,48]),t<0&&(e[0]=45,t=-t),e[1]=e[1]+((t/60|0)/10|0)&ui,e[2]=e[2]+(t/60|0)%10&ui,e[4]=e[4]+(t%60/10|0)&ui,e[5]=e[5]+t%10&ui,ws(e,0,e.length)}function FEe(n){var e;return e=S(C(fs,1),gh,28,15,[71,77,84,45,48,48,58,48,48]),n<=0&&(e[3]=43,n=-n),e[4]=e[4]+((n/60|0)/10|0)&ui,e[5]=e[5]+(n/60|0)%10&ui,e[7]=e[7]+(n%60/10|0)&ui,e[8]=e[8]+n%10&ui,ws(e,0,e.length)}function _Ee(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),M6(c.a,""+B6(e));return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function Pnn(n,e){var t,i,r;for(r=et,i=new M(xg(e));i.a<i.c.c.length;)t=u(E(i),218),t.f&&!n.c[t.c]&&(n.c[t.c]=!0,r=y.Math.min(r,Pnn(n,HC(t,e))));return n.i[e.d]=n.j,n.g[e.d]=y.Math.min(r,n.j++),n.g[e.d]}function U_n(n,e){var t,i,r;for(r=u(u(ot(n.r,e),21),87).Kc();r.Ob();)i=u(r.Pb(),117),i.e.b=(t=i.b,t.pf((He(),oo))?t.ag()==(en(),Xn)?-t.Mf().b-$(B(t.of(oo))):$(B(t.of(oo))):t.ag()==(en(),Xn)?-t.Mf().b:0)}function HEe(n){var e,t,i,r,c,s,f;for(t=SX(n.e),c=ch(A6(Fi(CX(n.e)),n.d*n.a,n.c*n.b),-.5),e=t.a-c.a,r=t.b-c.b,f=0;f<n.c;f++){for(i=e,s=0;s<n.d;s++)t8e(n.e,new Ho(i,r,n.a,n.b))&&xS(n,s,f,!1,!0),i+=n.a;r+=n.b}}function Inn(n){var e,t,i,r,c;e=n.a,t=n.b,r=n.c,i=new V(t.e.a+t.f.a/2,t.e.b+t.f.b/2),c=new V(r.e.a+r.f.a/2,r.e.b+r.f.b/2),xt(e,i,e.a,e.a.a),xt(e,c,e.c.b,e.c),ZFn(i,u(Zo(e,1),8),n.b.f),ZFn(c,u(Zo(e,e.b-2),8),n.c.f)}function Zp(n){var e,t;if(t=!1,L(n,211))return t=!0,u(n,211).a;if(!t&&L(n,263)&&(e=u(n,263).a%1==0,e))return t=!0,Y(Tle(u(n,263).a));throw T(new eh("Id must be a string or an integer: '"+n+"'."))}function qEe(n,e){var t,i,r,c,s,f;for(c=null,r=new AIn((!n.a&&(n.a=new iL(n)),n.a));Dnn(r);)if(t=u(MS(r),58),i=(s=t.Dh(),f=(Jg(s),s.o),!f||!t.Xh(f)?null:EV(x$(f),t.Mh(f))),i!=null&&Sn(i,e)){c=t;break}return c}function G_n(n,e,t){var i,r,c,s,f;if(Mo(t,"occurrences"),t==0)return f=u(t0(Lp(n.a),e),16),f?f.gc():0;if(s=u(t0(Lp(n.a),e),16),!s)return 0;if(c=s.gc(),t>=c)s.$b();else for(r=s.Kc(),i=0;i<t;i++)r.Pb(),r.Qb();return c}function UEe(n,e,t){var i,r,c,s;return Mo(t,"oldCount"),Mo(0,"newCount"),i=u(t0(Lp(n.a),e),16),(i?i.gc():0)==t?(Mo(0,"count"),r=(c=u(t0(Lp(n.a),e),16),c?c.gc():0),s=-r,s>0?dz():s<0&&G_n(n,e,-s),!0):!1}function ny(n){var e,t,i,r,c,s,f;if(f=0,n.b==0){for(s=CBn(n,!0),e=0,i=s,r=0,c=i.length;r<c;++r)t=i[r],t>0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}else f=qjn(O$(Uw(ut(jW(n.a),new swn),new fwn)));return f>0?f+n.n.d+n.n.a:0}function ey(n){var e,t,i,r,c,s,f;if(f=0,n.b==0)f=qjn(O$(Uw(ut(jW(n.a),new uwn),new own)));else{for(s=SBn(n,!0),e=0,i=s,r=0,c=i.length;r<c;++r)t=i[r],t>0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}return f>0?f+n.n.b+n.n.c:0}function GEe(n){var e,t;if(n.c.length!=2)throw T(new Ar("Order only allowed for two paths."));e=(Nn(0,n.c.length),u(n.c[0],18)),t=(Nn(1,n.c.length),u(n.c[1],18)),e.d.i!=t.c.i&&(n.c.length=0,Bn(n.c,t),Bn(n.c,e))}function z_n(n,e,t){var i;for(kg(t,e.g,e.f),Bo(t,e.i,e.j),i=0;i<(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i;i++)z_n(n,u(N((!e.a&&(e.a=new q(Ye,e,10,11)),e.a),i),27),u(N((!t.a&&(t.a=new q(Ye,t,10,11)),t.a),i),27))}function zEe(n,e){var t,i,r,c;for(c=u(Mr(n.b,e),127),t=c.a,r=u(u(ot(n.r,e),21),87).Kc();r.Ob();)i=u(r.Pb(),117),i.c&&(t.a=y.Math.max(t.a,ZV(i.c)));if(t.a>0)switch(e.g){case 2:c.n.c=n.s;break;case 4:c.n.b=n.s}}function XEe(n,e){var t,i,r;return t=u(v(e,(Us(),k3)),17).a-u(v(n,k3),17).a,t==0?(i=mi(Fi(u(v(n,(Y1(),hj)),8)),u(v(n,O8),8)),r=mi(Fi(u(v(e,hj),8)),u(v(e,O8),8)),bt(i.a*i.b,r.a*r.b)):t}function VEe(n,e){var t,i,r;return t=u(v(e,(lc(),RO)),17).a-u(v(n,RO),17).a,t==0?(i=mi(Fi(u(v(n,(pt(),Nj)),8)),u(v(n,Av),8)),r=mi(Fi(u(v(e,Nj),8)),u(v(e,Av),8)),bt(i.a*i.b,r.a*r.b)):t}function X_n(n){var e,t;return t=new R1,t.a+="e_",e=_ve(n),e!=null&&(t.a+=""+e),n.c&&n.d&&(Be((t.a+=" ",t),lS(n.c)),Be(Lc((t.a+="[",t),n.c.i),"]"),Be((t.a+=iB,t),lS(n.d)),Be(Lc((t.a+="[",t),n.d.i),"]")),t.a}function V_n(n){switch(n.g){case 0:return new a8n;case 1:return new d8n;case 2:return new h8n;case 3:return new f8n;default:throw T(new Gn("No implementation is available for the layout phase "+(n.f!=null?n.f:""+n.g)))}}function Onn(n,e,t,i,r){var c;switch(c=0,r.g){case 1:c=y.Math.max(0,e.b+n.b-(t.b+i));break;case 3:c=y.Math.max(0,-n.b-i);break;case 2:c=y.Math.max(0,-n.a-i);break;case 4:c=y.Math.max(0,e.a+n.a-(t.a+i))}return c}function WEe(n,e,t){var i,r,c,s,f;if(t)for(r=t.a.length,i=new Qa(r),f=(i.b-i.a)*i.c<0?(_1(),Ra):new U1(i);f.Ob();)s=u(f.Pb(),17),c=Lm(t,s.a),Mcn in c.a||pF in c.a?fPe(n,c,e):PNe(n,c,e),S1e(u(ee(n.b,b4(c)),74))}function Ann(n){var e,t;switch(n.b){case-1:return!0;case 0:return t=n.t,t>1||t==-1?(n.b=-1,!0):(e=gs(n),e&&(dr(),e.lk()==bJn)?(n.b=-1,!0):(n.b=1,!1));default:case 1:return!1}}function Lnn(n,e){var t,i,r,c;if(Ze(n),n.c!=0||n.a!=123)throw T(new Ne($e((Oe(),xWn))));if(c=e==112,i=n.d,t=bm(n.i,125,i),t<0)throw T(new Ne($e((Oe(),RWn))));return r=qo(n.i,i,t),n.d=t+1,pDn(r,c,(n.e&512)==512)}function W_n(n){var e,t,i,r,c,s,f;if(i=n.a.c.length,i>0)for(s=n.c.d,f=n.d.d,r=ch(mi(new V(f.a,f.b),s),1/(i+1)),c=new V(s.a,s.b),t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),250),e.d.a=c.a+r.a,e.d.b=c.b+r.b,it(c,r)}function JEe(n,e){var t,i,r;if(!e)j$(n,null),Um(n,null);else if(e.i&4)for(i="[]",t=e.c;;t=t.c){if(!(t.i&4)){r=lz((ll(t),t.o+i)),j$(n,r),Um(n,r);break}i+="[]"}else r=lz((ll(e),e.o)),j$(n,r),Um(n,r);n.hl(e)}function A5(n,e,t,i,r){var c,s,f,h;return h=ON(n,u(r,58)),x(h)!==x(r)?(f=u(n.g[t],76),c=Rh(e,h),P6(n,t,Jx(n,t,c)),fo(n.e)&&(s=W1(n,9,c.Lk(),r,h,i,!1),UZ(s,new ml(n.e,9,n.c,f,c,i,!1)),h$(s)),h):r}function QEe(n,e,t){var i,r,c,s,f,h;for(i=u(ot(n.c,e),15),r=u(ot(n.c,t),15),c=i.fd(i.gc()),s=r.fd(r.gc());c.Sb()&&s.Sb();)if(f=u(c.Ub(),17),h=u(s.Ub(),17),f!=h)return jc(f.a,h.a);return!c.Ob()&&!s.Ob()?0:c.Ob()?1:-1}function YEe(n){var e,t,i,r,c,s,f;for(f=Lh(n.c.length),r=new M(n);r.a<r.c.c.length;){for(i=u(E(r),10),s=new ni,c=Qt(i),t=new ie(ce(c.a.Kc(),new En));pe(t);)e=u(fe(t),18),e.c.i==e.d.i||fi(s,e.d.i);Bn(f.c,s)}return f}function J_n(n,e){var t,i,r;try{return r=hpe(n.a,e),r}catch(c){if(c=Ot(c),L(c,33)){try{if(i=So(e,Wi,et),t=of(n.a),i>=0&&i<t.length)return t[i]}catch(s){if(s=Ot(s),!L(s,130))throw T(s)}return null}else throw T(c)}}function hR(n,e){var t,i,r;if(r=Qg((Lu(),zi),n.Dh(),e),r)return dr(),u(r,69).xk()||(r=$p(Nr(zi,r))),i=(t=n.Ih(r),u(t>=0?n.Lh(t,!0,!0):Fb(n,r,!0),160)),u(i,220).Wl(e);throw T(new Gn(wa+e.xe()+sF))}function ZEe(){$z();var n;return Yoe?u(M4((F1(),Is),ks),2038):(Ge(Id,new v6n),VAe(),n=u(L(Dc((F1(),Is),ks),560)?Dc(Is,ks):new lOn,560),Yoe=!0,WNe(n),tDe(n),Ve((Dz(),Hdn),n,new $vn),Lr(Is,ks,n),n)}function nMe(n,e){var t,i,r,c;n.j=-1,fo(n.e)?(t=n.i,c=n.i!=0,nk(n,e),i=new ml(n.e,3,n.c,null,e,t,c),r=e.zl(n.e,n.c,null),r=PFn(n,e,r),r?(r.nj(i),r.oj()):rt(n.e,i)):(nk(n,e),r=e.zl(n.e,n.c,null),r&&r.oj())}function yS(n,e){var t,i,r;if(r=0,i=e[0],i>=n.length)return-1;for(t=(zn(i,n.length),n.charCodeAt(i));t>=48&&t<=57&&(r=r*10+(t-48),++i,!(i>=n.length));)t=(zn(i,n.length),n.charCodeAt(i));return i>e[0]?e[0]=i:r=-1,r}function eMe(n){var e,t,i,r,c;return r=u(n.a,17).a,c=u(n.b,17).a,t=r,i=c,e=y.Math.max(y.Math.abs(r),y.Math.abs(c)),r<=0&&r==c?(t=0,i=c-1):r==-e&&c!=e?(t=c,i=r,c>=0&&++t):(t=-c,i=r),new bi(Y(t),Y(i))}function tMe(n,e,t,i){var r,c,s,f,h,l;for(r=0;r<e.o;r++)for(c=r-e.j+t,s=0;s<e.p;s++)if(f=s-e.k+i,h=c,l=f,h+=n.j,l+=n.k,h>=0&&l>=0&&h<n.o&&l<n.p&&(!NBn(e,r,s)&&OBn(n,c,f)||Fg(e,r,s)&&!V9e(n,c,f)))return!0;return!1}function iMe(n,e,t){var i,r,c,s,f;s=n.c,f=n.d,c=cc(S(C(Ei,1),J,8,0,[s.i.n,s.n,s.a])).b,r=(c+cc(S(C(Ei,1),J,8,0,[f.i.n,f.n,f.a])).b)/2,i=null,s.j==(en(),Zn)?i=new V(e+s.i.c.c.a+t,r):i=new V(e-t,r),wm(n.a,0,i)}function Bb(n){var e,t,i,r;for(e=null,i=$h(Eo(S(C(Ao,1),Rn,20,0,[(!n.b&&(n.b=new Dn(he,n,4,7)),n.b),(!n.c&&(n.c=new Dn(he,n,5,8)),n.c)])));pe(i);)if(t=u(fe(i),84),r=Gr(t),!e)e=r;else if(e!=r)return!1;return!0}function lR(n,e,t){var i;if(++n.j,e>=n.i)throw T(new Or(vF+e+Cd+n.i));if(t>=n.i)throw T(new Or(kF+t+Cd+n.i));return i=n.g[t],e!=t&&(e<t?Oc(n.g,e,n.g,e+1,t-e):Oc(n.g,t+1,n.g,t,e-t),$t(n.g,e,i),n.Pi(e,i,t),n.Ni()),i}function In(n,e,t){var i;if(i=u(n.c.xc(e),16),i)return i.Fc(t)?(++n.d,!0):!1;if(i=n.ic(e),i.Fc(t))return++n.d,n.c.zc(e,i),!0;throw T(new NJ("New Collection violated the Collection spec"))}function ty(n){var e,t,i;return n<0?0:n==0?32:(i=-(n>>16),e=i>>16&16,t=16-e,n=n>>e,i=n-256,e=i>>16&8,t+=e,n<<=e,i=n-v0,e=i>>16&4,t+=e,n<<=e,i=n-wh,e=i>>16&2,t+=e,n<<=e,i=n>>14,e=i&~(i>>1),t+2-e)}function rMe(n){Np();var e,t,i,r;for(mI=new Z,p_=new de,g_=new Z,e=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),VLe(e),r=new ne(e);r.e!=r.i.gc();)i=u(ue(r),27),qr(mI,i,0)==-1&&(t=new Z,nn(g_,t),YKn(i,t));return g_}function cMe(n,e,t){var i,r,c,s;n.a=t.b.d,L(e,326)?(r=Xg(u(e,74),!1,!1),c=Jk(r),i=new x9n(n),qi(c,i),ay(c,r),e.of((He(),mw))!=null&&qi(u(e.of(mw),75),i)):(s=u(e,422),s.rh(s.nh()+n.a.a),s.sh(s.oh()+n.a.b))}function uMe(n,e){var t,i,r;for(r=new Z,i=ge(e.a,0);i.b!=i.d.c;)t=u(be(i),65),t.c.g==n.g&&x(v(t.b,(lc(),Ph)))!==x(v(t.c,Ph))&&!Ag(new Cn(null,new On(r,16)),new fkn(t))&&Bn(r.c,t);return Yt(r,new q3n),r}function Q_n(n,e,t){var i,r,c,s;return L(e,153)&&L(t,153)?(c=u(e,153),s=u(t,153),n.a[c.a][s.a]+n.a[s.a][c.a]):L(e,250)&&L(t,250)&&(i=u(e,250),r=u(t,250),i.a==r.a)?u(v(r.a,(Us(),k3)),17).a:0}function Y_n(n,e){var t,i,r,c,s,f,h,l;for(l=$(B(v(e,(cn(),G8)))),h=n[0].n.a+n[0].o.a+n[0].d.c+l,f=1;f<n.length;f++)i=n[f].n,r=n[f].o,t=n[f].d,c=i.a-t.b-h,c<0&&(i.a-=c),s=e.f,s.a=y.Math.max(s.a,i.a+r.a),h=i.a+r.a+t.c+l}function oMe(n,e){var t,i,r,c,s,f;return i=u(u(ee(n.g,e.a),42).a,68),r=u(u(ee(n.g,e.b),42).a,68),c=i.b,s=r.b,t=NOe(c,s),t>=0?t:(f=U6(mi(new V(s.c+s.b/2,s.d+s.a/2),new V(c.c+c.b/2,c.d+c.a/2))),-(MUn(c,s)-1)*f)}function sMe(n,e,t){var i;Ut(new Cn(null,(!t.a&&(t.a=new q(Tt,t,6,6)),new On(t.a,16))),new aTn(n,e)),Ut(new Cn(null,(!t.n&&(t.n=new q(Sr,t,1,7)),new On(t.n,16))),new dTn(n,e)),i=u(z(t,(He(),mw)),75),i&&xQ(i,n,e)}function Fb(n,e,t){var i,r,c;if(c=Qg((Lu(),zi),n.Dh(),e),c)return dr(),u(c,69).xk()||(c=$p(Nr(zi,c))),r=(i=n.Ih(c),u(i>=0?n.Lh(i,!0,!0):Fb(n,c,!0),160)),u(r,220).Sl(e,t);throw T(new Gn(wa+e.xe()+sF))}function Nnn(n,e,t,i){var r,c,s,f,h;if(r=n.d[e],r){if(c=r.g,h=r.i,i!=null){for(f=0;f<h;++f)if(s=u(c[f],136),s.Bi()==t&&ct(i,s.ld()))return s}else for(f=0;f<h;++f)if(s=u(c[f],136),x(s.ld())===x(i))return s}return null}function fMe(n,e){var t,i,r,c,s;for(i=(!e.s&&(e.s=new q(ku,e,21,17)),e.s),c=null,r=0,s=i.i;r<s;++r)switch(t=u(N(i,r),179),vb(Nr(n,t))){case 4:case 5:case 6:{!c&&(c=new Z),Bn(c.c,t);break}}return c||(Ln(),Ln(),sr)}function iy(n,e){var t;if(e<0)throw T(new FE("Negative exponent"));if(e==0)return sI;if(e==1||BY(n,sI)||BY(n,C8))return n;if(!MHn(n,0)){for(t=1;!MHn(n,t);)++t;return Og(m8e(t*e),iy(LJ(n,t),e))}return Mye(n,e)}function hMe(n,e){var t,i,r;if(x(n)===x(e))return!0;if(n==null||e==null||n.length!=e.length)return!1;for(t=0;t<n.length;++t)if(i=n[t],r=e[t],!(x(i)===x(r)||i!=null&&ct(i,r)))return!1;return!0}function Z_n(n){Lz();var e,t,i;for(this.b=MZn,this.c=(ci(),Jf),this.f=(fMn(),EZn),this.a=n,vz(this,new Zwn),IS(this),i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),86),t.d||(e=new vx(S(C(M_,1),Rn,86,0,[t])),nn(n.a,e))}function lMe(n,e,t){var i,r,c,s,f,h;if(!n||n.c.length==0)return null;for(c=new eAn(e,!t),r=new M(n);r.a<r.c.c.length;)i=u(E(r),72),ann(c,(r6(),new OE(i)));return s=c.i,s.a=(h=c.n,c.e.b+h.d+h.a),s.b=(f=c.n,c.e.a+f.b+f.c),c}function nHn(n){var e,t,i,r,c,s,f;for(f=Q7(n.a),jX(f,new ngn),t=null,r=f,c=0,s=r.length;c<s&&(i=r[c],i.k==(Vn(),Zt));++c)e=u(v(i,(W(),gc)),64),!(e!=(en(),Wn)&&e!=Zn)&&(t&&u(v(t,C3),15).Fc(i),t=i)}function aMe(n,e,t){var i,r,c,s,f,h,l;h=(Nn(e,n.c.length),u(n.c[e],339)),Yl(n,e),h.b/2>=t&&(i=e,l=(h.c+h.a)/2,s=l-t,h.c<=l-t&&(r=new FN(h.c,s),ab(n,i++,r)),f=l+t,f<=h.a&&(c=new FN(f,h.a),zw(i,n.c.length),l6(n.c,i,c)))}function eHn(n,e,t){var i,r,c,s,f,h;if(!e.dc()){for(r=new Mt,h=e.Kc();h.Ob();)for(f=u(h.Pb(),39),Ve(n.a,Y(f.g),Y(t)),s=(i=ge(new sl(f).a.d,0),new sg(i));Q9(s.a);)c=u(be(s.a),65).c,xt(r,c,r.c.b,r.c);eHn(n,r,t+1)}}function Dnn(n){var e;if(!n.c&&n.g==null)n.d=n.bj(n.f),ve(n,n.d),e=n.d;else{if(n.g==null)return!0;if(n.i==0)return!1;e=u(n.g[n.i-1],51)}return e==n.b&&null.Vm>=null.Um()?(MS(n),Dnn(n)):e.Ob()}function tHn(n){if(this.a=n,n.c.i.k==(Vn(),Zt))this.c=n.c,this.d=u(v(n.c.i,(W(),gc)),64);else if(n.d.i.k==Zt)this.c=n.d,this.d=u(v(n.d.i,(W(),gc)),64);else throw T(new Gn("Edge "+n+" is not an external edge."))}function iHn(n,e){var t,i,r;r=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,3,r,n.b)),e?e!=n&&(zc(n,e.zb),v$(n,e.d),t=(i=e.c,i??e.zb),y$(n,t==null||Sn(t,e.zb)?null:t)):(zc(n,null),v$(n,0),y$(n,null))}function rHn(n,e){var t;this.e=(gb(),Pe(n),gb(),WY(n)),this.c=(Pe(e),WY(e)),KX(this.e.Rd().dc()==this.c.Rd().dc()),this.d=mKn(this.e),this.b=mKn(this.c),t=Wa(ki,[J,Rn],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=t,R4e(this)}function cHn(n){!cun&&(cun=uNe());var e=n.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(t){return h2e(t)});return'"'+e+'"'}function $nn(n,e,t,i,r,c){var s,f,h,l,a;if(r!=0)for(x(n)===x(t)&&(n=n.slice(e,e+r),e=0),h=t,f=e,l=e+r;f<l;)s=y.Math.min(f+1e4,l),r=s-f,a=n.slice(f,s),a.splice(0,0,i,c?r:0),Array.prototype.splice.apply(h,a),f=s,i+=r}function uHn(n){WW();var e,t;for(this.b=BQn,this.c=_Qn,this.g=(sMn(),KQn),this.d=(ci(),Jf),this.a=n,ien(this),t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),60),!e.a&&ZCn(G$n(new zG,S(C(aI,1),Rn,60,0,[e])),n),e.e=new PT(e.d)}function dMe(n){var e,t,i,r,c,s;for(r=n.e.c.length,i=F(rs,k0,15,r,0,1),s=new M(n.e);s.a<s.c.c.length;)c=u(E(s),153),i[c.a]=new Mt;for(t=new M(n.c);t.a<t.c.c.length;)e=u(E(t),289),i[e.c.a].Fc(e),i[e.d.a].Fc(e);return i}function bMe(n,e){var t,i,r,c,s;if(t=u(Un(n.a,4),129),s=t==null?0:t.length,e>=s)throw T(new Fw(e,s));return r=t[e],s==1?i=null:(i=F(kU,TF,424,s-1,0,1),Oc(t,0,i,0,e),c=s-e-1,c>0&&Oc(t,e+1,i,e,c)),w4(n,i),S_n(n,e,r),r}function oHn(n){var e,t;if(n.f){for(;n.n<n.o;){if(e=u(n.j?n.j.$i(n.n):n.k.Xb(n.n),76),t=e.Lk(),L(t,102)&&u(t,19).Bb&kc&&(!n.e||t.pk()!=_v||t.Lj()!=0)&&e.md()!=null)return!0;++n.n}return!1}else return n.n<n.o}function n3(){n3=R,F3=u(N(H((Ez(),yc).qb),6),35),B3=u(N(H(yc.qb),3),35),CU=u(N(H(yc.qb),4),35),SU=u(N(H(yc.qb),5),19),bS(F3),bS(B3),bS(CU),bS(SU),tse=new Fu(S(C(ku,1),f2,179,0,[F3,B3]))}function sHn(n,e){var t;this.d=new Wv,this.b=e,this.e=new rr(e.Lf()),t=n.u.Hc((zu(),eE)),n.u.Hc(Rl)?n.D?this.a=t&&!e.bg():this.a=!0:n.u.Hc(Aa)?t?this.a=!(e.Uf().Kc().Ob()||e.Wf().Kc().Ob()):this.a=!1:this.a=!1}function fHn(n,e){var t,i,r,c;for(t=n.o.a,c=u(u(ot(n.r,e),21),87).Kc();c.Ob();)r=u(c.Pb(),117),r.e.a=(i=r.b,i.pf((He(),oo))?i.ag()==(en(),Wn)?-i.Mf().a-$(B(i.of(oo))):t+$(B(i.of(oo))):i.ag()==(en(),Wn)?-i.Mf().a:t)}function hHn(n,e){var t,i,r,c;t=u(v(n,(cn(),Lo)),88),c=u(z(e,Mv),64),r=u(v(n,_t),101),r!=(Ai(),Qf)&&r!=Oa?c==(en(),sc)&&(c=xen(e,t),c==sc&&(c=zp(t))):(i=hGn(e),i>0?c=zp(t):c=$k(zp(t))),ht(e,Mv,c)}function wMe(n,e){var t;e.Ug("Partition preprocessing",1),t=u(Wr(ut(rc(ut(new Cn(null,new On(n.a,16)),new Ggn),new zgn),new Xgn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),Ut(t.Oc(),new Vgn),e.Vg()}function gMe(n,e){var t,i,r,c,s;for(s=n.j,e.a!=e.b&&Yt(s,new Mpn),r=s.c.length/2|0,i=0;i<r;i++)c=(Nn(i,s.c.length),u(s.c[i],113)),c.c&&gi(c.d,e.a);for(t=r;t<s.c.length;t++)c=(Nn(t,s.c.length),u(s.c[t],113)),c.c&&gi(c.d,e.b)}function pMe(n,e,t){var i,r,c;return i=n.c[e.c.p][e.p],r=n.c[t.c.p][t.p],i.a!=null&&r.a!=null?(c=tD(i.a,r.a),c<0?fy(n,e,t):c>0&&fy(n,t,e),c):i.a!=null?(fy(n,e,t),-1):r.a!=null?(fy(n,t,e),1):0}function mMe(n,e){var t,i,r,c,s;for(r=e.b.b,n.a=F(rs,k0,15,r,0,1),n.b=F(so,Xh,28,r,16,1),s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),39),n.a[c.g]=new Mt;for(i=ge(e.a,0);i.b!=i.d.c;)t=u(be(i),65),n.a[t.b.g].Fc(t),n.a[t.c.g].Fc(t)}function lHn(n,e){var t,i,r,c;n.Pj()?(t=n.Ej(),c=n.Qj(),++n.j,n.qj(t,n.Zi(t,e)),i=n.Ij(3,null,e,t,c),n.Mj()?(r=n.Nj(e,null),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(nOn(n,e),n.Mj()&&(r=n.Nj(e,null),r&&r.oj()))}function xnn(n,e,t){var i,r,c;n.Pj()?(c=n.Qj(),Ak(n,e,t),i=n.Ij(3,null,t,e,c),n.Mj()?(r=n.Nj(t,null),n.Tj()&&(r=n.Uj(t,r)),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(Ak(n,e,t),n.Mj()&&(r=n.Nj(t,null),r&&r.oj()))}function jS(n,e){var t,i,r,c,s;for(s=ru(n.e.Dh(),e),r=new jE,t=u(n.g,124),c=n.i;--c>=0;)i=t[c],s.am(i.Lk())&&ve(r,i);!uzn(n,r)&&fo(n.e)&&em(n,e.Jk()?W1(n,6,e,(Ln(),sr),null,-1,!1):W1(n,e.tk()?2:1,e,null,null,-1,!1))}function vMe(n,e){var t,i,r,c,s;return n.a==(y4(),D8)?!0:(c=e.a.c,t=e.a.c+e.a.b,!(e.j&&(i=e.A,s=i.c.c.a-i.o.a/2,r=c-(i.n.a+i.o.a),r>s)||e.q&&(i=e.C,s=i.c.c.a-i.o.a/2,r=i.n.a-t,r>s)))}function aHn(n){DD();var e,t,i,r,c,s,f;for(t=new Ql,r=new M(n.e.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=new M(i.a);s.a<s.c.c.length;)c=u(E(s),10),f=n.g[c.p],e=u(Df(t,f),15),e||(e=new Z,s1(t,f,e)),e.Fc(c);return t}function dHn(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (startX: ",hg(e,n.j),e.a+=", startY: ",hg(e,n.k),e.a+=", endX: ",hg(e,n.b),e.a+=", endY: ",hg(e,n.c),e.a+=", identifier: ",Er(e,n.d),e.a+=")",e.a)}function Rnn(n){var e;return n.Db&64?w5(n):(e=new ls(w5(n)),e.a+=" (ordered: ",ql(e,(n.Bb&256)!=0),e.a+=", unique: ",ql(e,(n.Bb&512)!=0),e.a+=", lowerBound: ",CL(e,n.s),e.a+=", upperBound: ",CL(e,n.t),e.a+=")",e.a)}function bHn(n,e,t,i,r,c,s,f){var h;return L(n.Cb,90)&&h0(Zu(u(n.Cb,90)),4),zc(n,t),n.f=i,f4(n,r),l4(n,c),s4(n,s),h4(n,!1),u1(n,!0),a4(n,f),c1(n,!0),e1(n,0),n.b=0,Zw(n,1),h=Kf(n,e,null),h&&h.oj(),sx(n,!1),n}function wHn(n,e){var t,i,r,c;return t=u(Dc(n.a,e),525),t||(i=new VD(e),r=(UT(),Uf?null:i.c),c=qo(r,0,y.Math.max(0,xM(r,wu(46)))),Jae(i,wHn(n,c)),(Uf?null:i.c).length==0&&TSn(i,new xU),Lr(n.a,Uf?null:i.c,i),i)}function kMe(n,e){var t;n.b=e,n.g=new Z,t=MMe(n.b),n.e=t,n.f=t,n.c=on(un(v(n.b,(aS(),Bun)))),n.a=B(v(n.b,(He(),x2))),n.a==null&&(n.a=1),$(n.a)>1?n.e*=$(n.a):n.f/=$(n.a),_6e(n),X8e(n),USe(n),U(n.b,(j5(),pI),n.g)}function gHn(n,e,t){var i,r,c,s,f,h;for(i=0,h=t,e||(i=t*(n.c.length-1),h*=-1),c=new M(n);c.a<c.c.c.length;){for(r=u(E(c),10),U(r,(cn(),Ch),(Bh(),nA)),r.o.a=i,f=h1(r,(en(),Zn)).Kc();f.Ob();)s=u(f.Pb(),12),s.n.a=i;i+=h}}function e3(n,e,t){var i,r,c,s,f,h;return f=n.pl(t),f!=t?(s=n.g[e],h=f,P6(n,e,n.Zi(e,h)),c=s,n.Ri(e,h,c),n.al()&&(i=t,r=n.Oj(i,null),!u(f,54).Ph()&&(r=n.Nj(h,r)),r&&r.oj()),fo(n.e)&&em(n,n.Ij(9,t,f,e,!1)),f):t}function yMe(n,e){var t,i,r,c;for(i=new M(n.a.a);i.a<i.c.c.length;)t=u(E(i),194),t.g=!0;for(c=new M(n.a.b);c.a<c.c.c.length;)r=u(E(c),86),r.k=on(un(n.e.Kb(new bi(r,e)))),r.d.g=r.d.g&on(un(n.e.Kb(new bi(r,e))));return n}function pHn(n,e){var t,i;if(n.c.length!=0){if(n.c.length==2)t3((Nn(0,n.c.length),u(n.c[0],10)),(Co(),nl)),t3((Nn(1,n.c.length),u(n.c[1],10)),Pa);else for(i=new M(n);i.a<i.c.c.length;)t=u(E(i),10),t3(t,e);n.c.length=0}}function mHn(n){var e,t,i,r,c;if(t=(e=u(of(lr),9),new _o(e,u(xs(e,e.length),9),0)),c=u(v(n,(W(),Xu)),10),c)for(r=new M(c.j);r.a<r.c.c.length;)i=u(E(r),12),x(v(i,st))===x(n)&&O6(new Lf(i.b))&&_s(t,i.j);return t}function vHn(n,e,t){var i,r,c,s,f;if(!n.d[t.p]){for(r=new ie(ce(Qt(t).a.Kc(),new En));pe(r);){for(i=u(fe(r),18),f=i.d.i,s=new ie(ce(ji(f).a.Kc(),new En));pe(s);)c=u(fe(s),18),c.c.i==e&&(n.a[c.p]=!0);vHn(n,e,f)}n.d[t.p]=!0}}function jMe(n,e){var t,i,r,c,s,f,h;if(i=aKn(n.Db&254),i==1)n.Eb=null;else if(c=cd(n.Eb),i==2)r=Bx(n,e),n.Eb=c[r==0?1:0];else{for(s=F(ki,Rn,1,i-1,5,1),t=2,f=0,h=0;t<=128;t<<=1)t==e?++f:n.Db&t&&(s[h++]=c[f++]);n.Eb=s}n.Db&=~e}function Knn(n){var e;switch(e=0,n){case 105:e=2;break;case 109:e=8;break;case 115:e=4;break;case 120:e=16;break;case 117:e=32;break;case 119:e=64;break;case 70:e=256;break;case 72:e=128;break;case 88:e=512;break;case 44:e=Gs}return e}function EMe(n,e,t,i,r){var c,s,f,h;if(x(n)===x(e)&&i==r){pUn(n,i,t);return}for(f=0;f<i;f++){for(s=0,c=n[f],h=0;h<r;h++)s=nr(nr(er(vi(c,mr),vi(e[h],mr)),vi(t[f+h],mr)),vi(Se(s),mr)),t[f+h]=Se(s),s=G1(s,32);t[f+r]=Se(s)}}function MMe(n){var e,t,i,r,c,s,f,h,l,a,d;for(a=0,l=0,r=n.a,f=r.a.gc(),i=r.a.ec().Kc();i.Ob();)t=u(i.Pb(),567),e=(t.b&&xR(t),t.a),d=e.a,s=e.b,a+=d+s,l+=d*s;return h=y.Math.sqrt(400*f*l-4*l+a*a)+a,c=2*(100*f-1),c==0?h:h/c}function kHn(n,e){e.b!=0&&(isNaN(n.s)?n.s=$((oe(e.b!=0),B(e.a.a.c))):n.s=y.Math.min(n.s,$((oe(e.b!=0),B(e.a.a.c)))),isNaN(n.c)?n.c=$((oe(e.b!=0),B(e.c.b.c))):n.c=y.Math.max(n.c,$((oe(e.b!=0),B(e.c.b.c)))))}function L5(n){var e,t,i,r;for(e=null,i=$h(Eo(S(C(Ao,1),Rn,20,0,[(!n.b&&(n.b=new Dn(he,n,4,7)),n.b),(!n.c&&(n.c=new Dn(he,n,5,8)),n.c)])));pe(i);)if(t=u(fe(i),84),r=Gr(t),!e)e=St(r);else if(e!=St(r))return!0;return!1}function aR(n,e){var t,i,r,c;n.Pj()?(t=n.i,c=n.Qj(),nk(n,e),i=n.Ij(3,null,e,t,c),n.Mj()?(r=n.Nj(e,null),n.Tj()&&(r=n.Uj(e,r)),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(nk(n,e),n.Mj()&&(r=n.Nj(e,null),r&&r.oj()))}function TMe(n,e){var t,i,r,c;if(c=B7(n.a,e.b),!c)throw T(new Ar("Invalid hitboxes for scanline overlap calculation."));for(r=!1,i=n.a.a.ec().Kc();i.Ob();)if(t=u(i.Pb(),68),i6e(e.b,t))Dhe(n.b.a,e.b,t),r=!0;else if(r)break}function CMe(n){var e;if(!n.a)throw T(new Ar("IDataType class expected for layout option "+n.f));if(e=l3e(n.a),e==null)throw T(new Ar("Couldn't create new instance of property '"+n.f+"'. "+NVn+(ll(hE),hE.k)+lcn));return u(e,423)}function dR(n){var e,t,i,r,c;return c=n.Ph(),c&&c.Vh()&&(r=ta(n,c),r!=c)?(t=n.Fh(),i=(e=n.Fh(),e>=0?n.Ah(null):n.Ph().Th(n,-1-e,null,null)),n.Bh(u(r,54),t),i&&i.oj(),n.vh()&&n.wh()&&t>-1&&rt(n,new Mi(n,9,t,c,r)),r):c}function Bnn(n,e){var t,i,r,c,s;for(c=n.b.Ce(e),i=(t=n.a.get(c),t??F(ki,Rn,1,0,5,1)),s=0;s<i.length;s++)if(r=i[s],n.b.Be(e,r.ld()))return i.length==1?(i.length=0,Pae(n.a,c)):i.splice(s,1),--n.c,++n.b.g,r.md();return null}function yHn(n){var e,t,i,r,c,s,f,h;for(s=0,c=n.f.e,i=0;i<c.c.length;++i)for(f=(Nn(i,c.c.length),u(c.c[i],153)),r=i+1;r<c.c.length;++r)h=(Nn(r,c.c.length),u(c.c[r],153)),t=Q1(f.d,h.d),e=t-n.a[f.a][h.a],s+=n.i[f.a][h.a]*e*e;return s}function SMe(n,e){var t;if(!kt(e,(cn(),ou))&&(t=V7e(u(v(e,vsn),371),u(v(n,ou),171)),U(e,vsn,t),!pe(new ie(ce(Ml(e).a.Kc(),new En)))))switch(t.g){case 1:U(e,ou,(Yo(),B8));break;case 2:U(e,ou,(Yo(),F8))}}function PMe(n,e){var t;_Se(n),n.a=(t=new ML,Ut(new Cn(null,new On(e.d,16)),new M7n(t)),t),iPe(n,u(v(e.b,(cn(),EH)),349)),$9e(n),$Me(n),J7e(n),x9e(n),WOe(n,e),Ut(rc(new Cn(null,uLn(L0e(n.b).a)),new opn),new spn),e.a=!1,n.a=null}function Fnn(){Fnn=R,bre=new Tn(Trn,(_n(),!1)),wre=new Tn(Crn,7),Y(0),vre=new Tn(Srn,Y(0)),pre=new Tn(Prn,Y(-1)),jln=(a5(),lq),kre=new Tn(Irn,jln),kln=(l5(),Lj),gre=new Tn(Orn,kln),yln=(RT(),aq),mre=new Tn(Arn,yln)}function jHn(){rnn.call(this,ev,(B1(),voe)),this.p=null,this.a=null,this.f=null,this.n=null,this.g=null,this.c=null,this.i=null,this.j=null,this.d=null,this.b=null,this.e=null,this.k=null,this.o=null,this.s=null,this.q=!1,this.r=!1}function E4(){E4=R,mU=new gp(JXn,0),mA=new gp("INSIDE_SELF_LOOPS",1),vA=new gp("MULTI_EDGES",2),pA=new gp("EDGE_LABELS",3),pU=new gp("PORTS",4),gA=new gp("COMPOUND",5),wA=new gp("CLUSTERS",6),gU=new gp("DISCONNECTED",7)}function EHn(n,e,t){var i,r,c;n.Pj()?(c=n.Qj(),++n.j,n.qj(e,n.Zi(e,t)),i=n.Ij(3,null,t,e,c),n.Mj()?(r=n.Nj(t,null),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(++n.j,n.qj(e,n.Zi(e,t)),n.Mj()&&(r=n.Nj(t,null),r&&r.oj()))}function MHn(n,e){var t,i,r;if(e==0)return(n.a[0]&1)!=0;if(e<0)throw T(new FE("Negative bit address"));if(r=e>>5,r>=n.d)return n.e<0;if(t=n.a[r],e=1<<(e&31),n.e<0){if(i=Ixn(n),r<i)return!1;i==r?t=-t:t=~t}return(t&e)!=0}function IMe(n,e,t,i){var r;u(t.b,68),u(t.b,68),u(i.b,68),u(i.b,68),r=mi(Fi(u(t.b,68).c),u(i.b,68).c),WM(r,x_n(u(t.b,68),u(i.b,68),r)),u(i.b,68),u(i.b,68),u(i.b,68).c.a+r.a,u(i.b,68).c.b+r.b,u(i.b,68),nu(i.a,new xV(n,e,i))}function _nn(n,e){var t,i,r,c,s,f,h;if(c=e.e,c){for(t=dR(c),i=u(n.g,689),s=0;s<n.i;++s)if(h=i[s],Nx(h)==t&&(r=(!h.d&&(h.d=new ti(jr,h,1)),h.d),f=u(t.Mh(SR(c,c.Cb,c.Db>>16)),15).dd(c),f<r.i))return _nn(n,u(N(r,f),89))}return e}function b(n,e,t){var i=rI,r,c=i[n],s=c instanceof Array?c[0]:null;c&&!s?o=c:(o=(r=e&&e.prototype,!r&&(r=rI[e]),w2e(r)),o.Sm=t,!e&&(o.Tm=Q2),i[n]=o);for(var f=3;f<arguments.length;++f)arguments[f].prototype=o;s&&(o.Rm=s)}function pe(n){for(var e;!u(Pe(n.a),51).Ob();){if(n.d=k6e(n),!n.d)return!1;if(n.a=u(n.d.Pb(),51),L(n.a,37)){if(e=u(n.a,37),n.a=e.a,!n.b&&(n.b=new Mg),J1(n.b,n.d),e.b)for(;!n6(e.b);)J1(n.b,u(b0e(e.b),51));n.d=e.d}}return!0}function Hnn(n,e){var t,i,r,c;for(r=1,e.j=!0,c=null,i=new M(xg(e));i.a<i.c.c.length;)t=u(E(i),218),n.c[t.c]||(n.c[t.c]=!0,c=HC(t,e),t.f?r+=Hnn(n,c):!c.j&&t.a==t.e.e-t.d.e&&(t.f=!0,fi(n.p,t),r+=Hnn(n,c)));return r}function OMe(n){var e,t,i;for(t=new M(n.a.a.b);t.a<t.c.c.length;)e=u(E(t),86),i=(Jn(0),0),i>0&&(!(hl(n.a.c)&&e.n.d)&&!(vg(n.a.c)&&e.n.b)&&(e.g.d+=y.Math.max(0,i/2-.5)),!(hl(n.a.c)&&e.n.a)&&!(vg(n.a.c)&&e.n.c)&&(e.g.a-=i-1))}function THn(n){var e,t,i,r,c;if(r=new Z,c=kUn(n,r),e=u(v(n,(W(),Xu)),10),e)for(i=new M(e.j);i.a<i.c.c.length;)t=u(E(i),12),x(v(t,st))===x(n)&&(c=y.Math.max(c,kUn(t,r)));return r.c.length==0||U(n,y2,c),c!=-1?r:null}function CHn(n,e,t){var i,r,c,s,f,h;c=u(sn(e.e,0),18).c,i=c.i,r=i.k,h=u(sn(t.g,0),18).d,s=h.i,f=s.k,r==(Vn(),Ti)?U(n,(W(),yf),u(v(i,yf),12)):U(n,(W(),yf),c),f==Ti?U(n,(W(),Es),u(v(s,Es),12)):U(n,(W(),Es),h)}function qnn(n){var e,t,i;this.c=n,i=u(v(n,(cn(),Lo)),88),e=$(B(v(n,oO))),t=$(B(v(n,mhn))),i==(ci(),Kr)||i==Xr||i==Jf?this.b=e*t:this.b=1/(e*t),this.j=$(B(v(n,S2))),this.e=$(B(v(n,bw))),this.f=n.b.c.length}function Unn(n,e){var t,i,r,c,s;return e&=63,t=n.h,i=(t&Ty)!=0,i&&(t|=-1048576),e<22?(s=t>>e,c=n.m>>e|t<<22-e,r=n.l>>e|n.m<<22-e):e<44?(s=i?Ol:0,c=t>>e-22,r=n.m>>e-22|t<<44-e):(s=i?Ol:0,c=i?ro:0,r=t>>e-44),Yc(r&ro,c&ro,s&Ol)}function bR(n){var e,t,i,r,c,s;for(this.c=new Z,this.d=n,i=Pt,r=Pt,e=li,t=li,s=ge(n,0);s.b!=s.d.c;)c=u(be(s),8),i=y.Math.min(i,c.a),r=y.Math.min(r,c.b),e=y.Math.max(e,c.a),t=y.Math.max(t,c.b);this.a=new Ho(i,r,e-i,t-r)}function SHn(n,e){var t,i,r,c,s,f;for(c=new M(n.b);c.a<c.c.c.length;)for(r=u(E(c),30),f=new M(r.a);f.a<f.c.c.length;)for(s=u(E(f),10),s.k==(Vn(),Sc)&&t3(s,e),i=new ie(ce(Qt(s).a.Kc(),new En));pe(i);)t=u(fe(i),18),nRn(t,e)}function AMe(n,e){var t,i,r;for(e.Ug("Layer constraint preprocessing",1),t=new Z,r=new xi(n.a,0);r.b<r.d.gc();)i=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),10)),r6e(i)&&(dye(i),Bn(t.c,i),bo(r));t.c.length==0||U(n,(W(),hH),t),e.Vg()}function LMe(n){var e,t;for(n.e=F(ye,_e,28,n.p.c.length,15,1),n.k=F(ye,_e,28,n.p.c.length,15,1),t=new M(n.p);t.a<t.c.c.length;)e=u(E(t),10),n.e[e.p]=wl(new ie(ce(ji(e).a.Kc(),new En))),n.k[e.p]=wl(new ie(ce(Qt(e).a.Kc(),new En)))}function NMe(n){var e,t,i,r,c,s;for(r=0,n.q=new Z,e=new ni,s=new M(n.p);s.a<s.c.c.length;){for(c=u(E(s),10),c.p=r,i=new ie(ce(Qt(c).a.Kc(),new En));pe(i);)t=u(fe(i),18),fi(e,t.d.i);e.a.Bc(c)!=null,nn(n.q,new $6(e)),e.a.$b(),++r}}function PHn(n,e){var t,i,r,c,s,f,h,l,a;if(n.a.f>0&&L(e,44)&&(n.a._j(),l=u(e,44),h=l.ld(),c=h==null?0:mt(h),s=lV(n.a,c),t=n.a.d[s],t)){for(i=u(t.g,379),a=t.i,f=0;f<a;++f)if(r=i[f],r.Bi()==c&&r.Fb(l))return PHn(n,l),!0}return!1}function DMe(n){var e,t,i,r,c,s,f;if(e=n.qi(ks),e&&(f=Ae(gf((!e.b&&(e.b=new lo((An(),ar),pc,e)),e.b),"settingDelegates")),f!=null)){for(t=new Z,r=w0(f,"\\w+"),c=0,s=r.length;c<s;++c)i=r[c],Bn(t.c,i);return t}return Ln(),Ln(),sr}function $Me(n){var e,t,i,r;for(r=u(ot(n.a,(o0(),GI)),15).Kc();r.Ob();)i=u(r.Pb(),105),t=(e=Cp(i.k),e.Hc((en(),Xn))?e.Hc(Zn)?e.Hc(ae)?e.Hc(Wn)?null:une:sne:one:cne),Mm(n,i,t[0],(Ob(),iw),0),Mm(n,i,t[1],ka,1),Mm(n,i,t[2],rw,1)}function xMe(n,e){var t,i;t=gPe(e),iSe(n,e,t),LFn(n.a,u(v(Hi(e.b),(W(),P3)),234)),KPe(n),uye(n,e),i=F(ye,_e,28,e.b.j.c.length,15,1),VR(n,e,(en(),Xn),i,t),VR(n,e,Zn,i,t),VR(n,e,ae,i,t),VR(n,e,Wn,i,t),n.a=null,n.c=null,n.b=null}function Gnn(n,e,t){switch(e){case 7:!n.e&&(n.e=new Dn(Vt,n,7,4)),me(n.e),!n.e&&(n.e=new Dn(Vt,n,7,4)),Bt(n.e,u(t,16));return;case 8:!n.d&&(n.d=new Dn(Vt,n,8,5)),me(n.d),!n.d&&(n.d=new Dn(Vt,n,8,5)),Bt(n.d,u(t,16));return}BZ(n,e,t)}function znn(n,e){var t,i,r,c,s;if(x(e)===x(n))return!0;if(!L(e,15)||(s=u(e,15),n.gc()!=s.gc()))return!1;for(c=s.Kc(),i=n.Kc();i.Ob();)if(t=i.Pb(),r=c.Pb(),!(x(t)===x(r)||t!=null&&ct(t,r)))return!1;return!0}function RMe(n,e){var t,i,r,c;for(c=u(Wr(rc(rc(new Cn(null,new On(e.b,16)),new hgn),new lgn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),c.Jc(new agn),t=0,r=c.Kc();r.Ob();)i=u(r.Pb(),12),i.p==-1&&Xnn(n,i,t++)}function IHn(n){switch(n.g){case 0:return new u8n;case 1:return new r8n;case 2:return new c8n;case 3:return new WMn;case 4:return new wIn;default:throw T(new Gn("No implementation is available for the node placer "+(n.f!=null?n.f:""+n.g)))}}function OHn(n){switch(n.g){case 0:return new lW;case 1:return new z5n;case 2:return new G5n;case 3:return new q5n;case 4:return new BTn;default:throw T(new Gn("No implementation is available for the cycle breaker "+(n.f!=null?n.f:""+n.g)))}}function KMe(n,e){var t,i,r,c,s;i=new Mt,xt(i,e,i.c.b,i.c);do for(t=(oe(i.b!=0),u(Xo(i,i.a.a),39)),n.b[t.g]=1,c=ge(t.d,0);c.b!=c.d.c;)r=u(be(c),65),s=r.c,n.b[s.g]==1?Re(n.a,r):n.b[s.g]==2?n.b[s.g]=1:xt(i,s,i.c.b,i.c);while(i.b!=0)}function BMe(n,e,t){var i;i=null,e&&(i=e.d),P5(n,new am(e.n.a-i.b+t.a,e.n.b-i.d+t.b)),P5(n,new am(e.n.a-i.b+t.a,e.n.b+e.o.b+i.a+t.b)),P5(n,new am(e.n.a+e.o.a+i.c+t.a,e.n.b-i.d+t.b)),P5(n,new am(e.n.a+e.o.a+i.c+t.a,e.n.b+e.o.b+i.a+t.b))}function Xnn(n,e,t){var i,r,c;for(e.p=t,c=$h(Eo(S(C(Ao,1),Rn,20,0,[new nm(e),new ip(e)])));pe(c);)i=u(fe(c),12),i.p==-1&&Xnn(n,i,t);if(e.i.k==(Vn(),Ti))for(r=new M(e.i.j);r.a<r.c.c.length;)i=u(E(r),12),i!=e&&i.p==-1&&Xnn(n,i,t)}function FMe(n,e){var t,i,r,c,s,f;for(i=new Ql,s=HT(new Fu(n.g)),c=s.a.ec().Kc();c.Ob();){if(r=u(c.Pb(),10),!r){e.bh("There are no classes in a balanced layout.");break}f=n.j[r.p],t=u(Df(i,f),15),t||(t=new Z,s1(i,f,t)),t.Fc(r)}return i}function AHn(n){var e,t,i,r,c;if(r=u(Wr(rJ(oJ(n)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),i=i2,r.gc()>=2)for(t=r.Kc(),e=B(t.Pb());t.Ob();)c=e,e=B(t.Pb()),i=y.Math.min(i,(Jn(e),e-(Jn(c),c)));return i}function _Me(n,e){var t,i,r;for(r=new Z,i=ge(e.a,0);i.b!=i.d.c;)t=u(be(i),65),t.b.g==n.g&&!Sn(t.b.c,OP)&&x(v(t.b,(lc(),Ph)))!==x(v(t.c,Ph))&&!Ag(new Cn(null,new On(r,16)),new hkn(t))&&Bn(r.c,t);return Yt(r,new X3n),r}function HMe(n,e){var t,i,r;if(x(e)===x(Pe(n)))return!0;if(!L(e,15)||(i=u(e,15),r=n.gc(),r!=i.gc()))return!1;if(L(i,59)){for(t=0;t<r;t++)if(!sh(n.Xb(t),i.Xb(t)))return!1;return!0}else return q9e(n.Kc(),i.Kc())}function qMe(n,e,t,i,r,c){var s,f,h,l;for(f=!om(ut(n.Oc(),new Y3(new Tgn))).Bd((Va(),v3)),s=n,c==(ci(),us)&&(s=Qo(s)),l=s.Kc();l.Ob();)h=u(l.Pb(),72),h.n.a=e.a,f?h.n.b=e.b+(i.b-h.o.b)/2:r?h.n.b=e.b:h.n.b=e.b+i.b-h.o.b,e.a+=h.o.a+t}function UMe(n,e){var t,i,r,c,s;for(e.Ug("Port side processing",1),s=new M(n.a);s.a<s.c.c.length;)r=u(E(s),10),GUn(r);for(i=new M(n.b);i.a<i.c.c.length;)for(t=u(E(i),30),c=new M(t.a);c.a<c.c.c.length;)r=u(E(c),10),GUn(r);e.Vg()}function GMe(n,e,t){var i,r,c,s,f,h,l;if(t)for(c=t.a.length,i=new Qa(c),f=(i.b-i.a)*i.c<0?(_1(),Ra):new U1(i);f.Ob();)s=u(f.Pb(),17),h=Lm(t,s.a),h&&(l=A4e(bl(h,wF),e),Ve(n.f,l,h),r=Eh in h.a,r&&zm(l,bl(h,Eh)),gS(h,l),Mnn(h,l))}function zMe(n,e,t){var i,r,c,s,f;if(f=t,!f&&(f=JV(new op,0)),f.Ug(IXn,1),SGn(n.c,e),s=JAe(n.a,e),s.gc()==1)sGn(u(s.Xb(0),36),f);else for(c=1/s.gc(),r=s.Kc();r.Ob();){if(i=u(r.Pb(),36),t.$g())return;sGn(i,f.eh(c))}she(n.a,s,e),MSe(e),f.Vg()}function LHn(n,e,t){var i,r,c,s,f;if(r=n.f,!r&&(r=u(n.a.a.ec().Kc().Pb(),60)),S5(r,e,t),n.a.a.gc()!=1)for(i=e*t,s=n.a.a.ec().Kc();s.Ob();)c=u(s.Pb(),60),c!=r&&(f=xp(c),f.f.d?(c.d.d+=i+_f,c.d.a-=i+_f):f.f.a&&(c.d.a-=i+_f))}function wR(n,e,t,i,r){var c,s,f,h,l,a,d,g,p;return s=t-n,f=i-e,c=y.Math.atan2(s,f),h=c+QK,l=c-QK,a=r*y.Math.sin(h)+n,g=r*y.Math.cos(h)+e,d=r*y.Math.sin(l)+n,p=r*y.Math.cos(l)+e,Af(S(C(Ei,1),J,8,0,[new V(a,g),new V(d,p)]))}function XMe(n,e,t,i){var r,c,s,f,h,l,a,d;r=t,a=e,c=a;do c=n.a[c.p],f=(d=n.g[c.p],$(n.p[d.p])+$(n.d[c.p])-c.d.d),h=X4e(c,i),h&&(s=(l=n.g[h.p],$(n.p[l.p])+$(n.d[h.p])+h.o.b+h.d.a),r=y.Math.min(r,f-(s+jg(n.k,c,h))));while(a!=c);return r}function VMe(n,e,t,i){var r,c,s,f,h,l,a,d;r=t,a=e,c=a;do c=n.a[c.p],s=(d=n.g[c.p],$(n.p[d.p])+$(n.d[c.p])+c.o.b+c.d.a),h=Zve(c,i),h&&(f=(l=n.g[h.p],$(n.p[l.p])+$(n.d[h.p])-h.d.d),r=y.Math.min(r,f-(s+jg(n.k,c,h))));while(a!=c);return r}function NHn(n,e){var t;if(e.Ug("Equal Whitespace Eliminator",1),Nf(n,(_h(),GO)))t5e(u(z(n,GO),15),$(B(z(n,Nv))),(t=$(B(z(n,u9))),$(B(z(n,(Bf(),h9)))),t));else throw T(new _l("The graph does not contain rows."));e.Vg()}function z(n,e){var t,i;return i=(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),gf(n.o,e)),i??(t=e.Sg(),L(t,4)&&(t==null?(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),VC(n.o,e)):(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),Gk(n.o,e,t))),t)}function l0(){l0=R,Qs=new bg("H_LEFT",0),xl=new bg("H_CENTER",1),Ys=new bg("H_RIGHT",2),nf=new bg("V_TOP",3),el=new bg("V_CENTER",4),Ts=new bg("V_BOTTOM",5),No=new bg("INSIDE",6),Zs=new bg("OUTSIDE",7),Ms=new bg("H_PRIORITY",8)}function WMe(n,e){var t,i,r,c,s,f,h;if(!e.f)throw T(new Gn("The input edge is not a tree edge."));for(c=null,r=et,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),218),f=t.d,h=t.e,fR(n,f,e)&&!fR(n,h,e)&&(s=h.e-f.e-t.a,s<r&&(r=s,c=t));return c}function JMe(n){var e,t,i,r,c,s;if(!(n.f.e.c.length<=1)){e=0,r=yHn(n),t=Pt;do{for(e>0&&(r=t),s=new M(n.f.e);s.a<s.c.c.length;)c=u(E(s),153),!on(un(v(c,(qk(),Eon))))&&(i=fIe(n,c),it(ff(c.d),i));t=yHn(n)}while(!D0e(n,e++,r,t))}}function QMe(n,e){var t,i,r,c,s;for(c=n.g.a,s=n.g.b,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),72),r=t.n,n.a==(xf(),hv)||n.i==(en(),Zn)?r.a=c:n.a==lv||n.i==(en(),Wn)?r.a=c+n.j.a-t.o.a:r.a=c+(n.j.a-t.o.a)/2,r.b=s,it(r,e),s+=t.o.b+n.e}function YMe(n,e){var t,i,r,c,s,f,h,l,a,d;l=n,h=J6(l,"individualSpacings"),h&&(i=Nf(e,(He(),D3)),s=!i,s&&(r=new _A,ht(e,D3,r)),f=u(z(e,D3),385),d=h,c=null,d&&(c=(a=P$(d,F(fn,J,2,0,6,1)),new PL(d,a))),c&&(t=new ETn(d,f),qi(c,t)))}function ZMe(n,e){var t,i,r,c,s,f,h,l,a,d,g;return h=null,d=n,a=null,(jWn in d.a||EWn in d.a||BP in d.a)&&(l=null,g=GQ(e),s=J6(d,jWn),t=new Vkn(g),b8e(t.a,s),f=J6(d,EWn),i=new ryn(g),w8e(i.a,f),c=Tb(d,BP),r=new oyn(g),l=(Zke(r.a,c),c),a=l),h=a,h}function nTe(n,e){var t,i,r;if(e===n)return!0;if(L(e,552)){if(r=u(e,849),n.a.d!=r.a.d||Sg(n).gc()!=Sg(r).gc())return!1;for(i=Sg(r).Kc();i.Ob();)if(t=u(i.Pb(),425),DAn(n,t.a.ld())!=u(t.a.md(),16).gc())return!1;return!0}return!1}function eTe(n){var e,t,i,r;return i=u(n.a,17).a,r=u(n.b,17).a,e=i,t=r,i==0&&r==0?t-=1:i==-1&&r<=0?(e=0,t-=2):i<=0&&r>0?(e-=1,t-=1):i>=0&&r<0?(e+=1,t+=1):i>0&&r>=0?(e-=1,t+=1):(e+=1,t-=1),new bi(Y(e),Y(t))}function tTe(n,e){return n.c<e.c?-1:n.c>e.c?1:n.b<e.b?-1:n.b>e.b?1:n.a!=e.a?mt(n.a)-mt(e.a):n.d==(Q6(),Z8)&&e.d==Y8?-1:n.d==Y8&&e.d==Z8?1:0}function DHn(n,e){var t,i,r,c,s;return c=e.a,c.c.i==e.b?s=c.d:s=c.c,c.c.i==e.b?i=c.c:i=c.d,r=M8e(n.a,s,i),r>0&&r<i2?(t=XMe(n.a,i.i,r,n.c),P$n(n.a,i.i,-t),t>0):r<0&&-r<i2?(t=VMe(n.a,i.i,-r,n.c),P$n(n.a,i.i,t),t>0):!1}function iTe(n,e,t,i){var r,c,s,f,h,l,a,d;for(r=(e-n.d)/n.c.c.length,c=0,n.a+=t,n.d=e,d=new M(n.c);d.a<d.c.c.length;)a=u(E(d),27),l=a.g,h=a.f,eu(a,a.i+c*r),tu(a,a.j+i*t),Pb(a,a.g+r),Sb(a,n.a),++c,f=a.g,s=a.f,P_n(a,new V(f,s),new V(l,h))}function rTe(n){var e,t,i,r,c,s,f;if(n==null)return null;for(f=n.length,r=(f+1)/2|0,s=F(Ru,s2,28,r,15,1),f%2!=0&&(s[--r]=wen((zn(f-1,n.length),n.charCodeAt(f-1)))),t=0,i=0;t<r;++t)e=wen(Xi(n,i++)),c=wen(Xi(n,i++)),s[t]=(e<<4|c)<<24>>24;return s}function cTe(n){if(n.ze()){var e=n.c;e.Ae()?n.o="["+e.n:e.ze()?n.o="["+e.xe():n.o="[L"+e.xe()+";",n.b=e.we()+"[]",n.k=e.ye()+"[]";return}var t=n.j,i=n.d;i=i.split("/"),n.o=mx(".",[t,mx("$",i)]),n.b=mx(".",[t,mx(".",i)]),n.k=i[i.length-1]}function uTe(n,e){var t,i,r,c,s;for(s=null,c=new M(n.e.a);c.a<c.c.c.length;)if(r=u(E(c),125),r.b.a.c.length==r.g.a.c.length){for(i=r.e,s=Fje(r),t=r.e-u(s.a,17).a+1;t<r.e+u(s.b,17).a;t++)e[t]<e[i]&&(i=t);e[i]<e[r.e]&&(--e[r.e],++e[i],r.e=i)}}function gR(n){var e,t,i,r,c,s,f,h;for(r=Pt,i=li,t=new M(n.e.b);t.a<t.c.c.length;)for(e=u(E(t),30),s=new M(e.a);s.a<s.c.c.length;)c=u(E(s),10),h=$(n.p[c.p]),f=h+$(n.b[n.g[c.p].p]),r=y.Math.min(r,h),i=y.Math.max(i,f);return i-r}function $Hn(n){UR();var e,t,i,r;return i=ih(n,wu(35)),e=i==-1?n:(Ri(0,i,n.length),n.substr(0,i)),t=i==-1?null:(zn(i+1,n.length+1),n.substr(i+1)),r=j3e(_dn,e),r?t!=null&&(r=IRn(r,(Jn(t),t))):(r=qNe(e),$3e(_dn,e,r),t!=null&&(r=IRn(r,t))),r}function Vnn(n,e,t,i){var r,c,s,f,h;for(r=Men(n,e),f=0,h=r.gc();f<h;++f)if(c=u(r.Xb(f),179),Sn(i,Pm(Nr(n,c)))){if(s=q7(Nr(n,c)),t==null){if(s==null)return c}else if(Sn(t,s))return c}return null}function Wnn(n,e,t,i){var r,c,s,f,h;for(r=PR(n,e),f=0,h=r.gc();f<h;++f)if(c=u(r.Xb(f),179),Sn(i,Pm(Nr(n,c)))){if(s=q7(Nr(n,c)),t==null){if(s==null)return c}else if(Sn(t,s))return c}return null}function oTe(n,e,t){var i,r,c,s,f,h;if(s=new jE,f=ru(n.e.Dh(),e),i=u(n.g,124),dr(),u(e,69).xk())for(c=0;c<n.i;++c)r=i[c],f.am(r.Lk())&&ve(s,r);else for(c=0;c<n.i;++c)r=i[c],f.am(r.Lk())&&(h=r.md(),ve(s,t?A5(n,e,c,s.i,h):h));return kJ(s)}function xHn(n){var e,t,i,r,c,s,f;if(n&&(e=n.qi(ks),e&&(s=Ae(gf((!e.b&&(e.b=new lo((An(),ar),pc,e)),e.b),"conversionDelegates")),s!=null))){for(f=new Z,i=w0(s,"\\w+"),r=0,c=i.length;r<c;++r)t=i[r],Bn(f.c,t);return f}return Ln(),Ln(),sr}function RHn(n,e){var t,i,r,c,s,f,h,l;for(s=e==1?C_:T_,c=s.a.ec().Kc();c.Ob();)for(r=u(c.Pb(),88),h=u(ot(n.f.c,r),21).Kc();h.Ob();)switch(f=u(h.Pb(),42),i=u(f.b,86),l=u(f.a,194),t=l.c,r.g){case 2:case 1:i.g.d+=t;break;case 4:case 3:i.g.c+=t}}function sTe(n,e){var t,i,r,c,s;for(t=new v5(bv),r=(Yp(),S(C(bv,1),G,232,0,[dv,L8,av,D0,p2,g2])),c=0,s=r.length;c<s;++c)i=r[c],wV(t,i,new Z);return Ut(_r(ut(rc(new Cn(null,new On(n.b,16)),new Cgn),new Sgn),new t7n(e)),new i7n(t)),t}function ES(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=e.Kc();c.Ob();)r=u(c.Pb(),27),a=r.i+r.g/2,g=r.j+r.f/2,h=n.f,s=h.i+h.g/2,f=h.j+h.f/2,l=a-s,d=g-f,i=y.Math.sqrt(l*l+d*d),l*=n.e/i,d*=n.e/i,t?(a-=l,g-=d):(a+=l,g+=d),eu(r,a-r.g/2),tu(r,g-r.f/2)}function Gg(n){var e,t,i;if(!n.c&&n.b!=null){for(e=n.b.length-4;e>=0;e-=2)for(t=0;t<=e;t+=2)(n.b[t]>n.b[t+2]||n.b[t]===n.b[t+2]&&n.b[t+1]>n.b[t+3])&&(i=n.b[t+2],n.b[t+2]=n.b[t],n.b[t]=i,i=n.b[t+3],n.b[t+3]=n.b[t+1],n.b[t+1]=i);n.c=!0}}function fTe(n,e){var t,i,r,c,s,f,h,l,a;for(l=-1,a=0,s=n,f=0,h=s.length;f<h;++f){for(c=s[f],t=new LPn(l==-1?n[0]:n[l],e,(d5(),TO)),i=0;i<c.length;i++)for(r=i+1;r<c.length;r++)kt(c[i],(W(),dt))&&kt(c[r],dt)&&dzn(t,c[i],c[r])>0&&++a;++l}return a}function Hs(n){var e,t;return t=new mo(Xa(n.Rm)),t.a+="@",Be(t,(e=mt(n)>>>0,e.toString(16))),n.Vh()?(t.a+=" (eProxyURI: ",Lc(t,n._h()),n.Kh()&&(t.a+=" eClass: ",Lc(t,n.Kh())),t.a+=")"):n.Kh()&&(t.a+=" (eClass: ",Lc(t,n.Kh()),t.a+=")"),t.a}function N5(n){var e,t,i,r;if(n.e)throw T(new Ar((ll(c_),RK+c_.k+KK)));for(n.d==(ci(),Jf)&&US(n,Kr),t=new M(n.a.a);t.a<t.c.c.length;)e=u(E(t),316),e.g=e.i;for(r=new M(n.a.b);r.a<r.c.c.length;)i=u(E(r),60),i.i=li;return n.b.cf(n),n}function hTe(n,e){var t,i,r,c,s;if(e<2*n.b)throw T(new Gn("The knot vector must have at least two time the dimension elements."));for(n.f=1,r=0;r<n.b;r++)nn(n.e,0);for(s=e+1-2*n.b,t=s,c=1;c<s;c++)nn(n.e,c/t);if(n.d)for(i=0;i<n.b;i++)nn(n.e,1)}function KHn(n,e){var t,i,r,c,s,f,h,l,a;if(l=e,a=u(pC(dD(n.i),l),27),!a)throw r=bl(l,Eh),f="Unable to find elk node for json object '"+r,h=f+"' Panic!",T(new eh(h));c=Tb(l,"edges"),t=new wTn(n,a),WEe(t.a,t.b,c),s=Tb(l,gF),i=new Fkn(n),Z7e(i.a,s)}function BHn(n,e,t,i){var r,c,s,f,h;if(i!=null){if(r=n.d[e],r){for(c=r.g,h=r.i,f=0;f<h;++f)if(s=u(c[f],136),s.Bi()==t&&ct(i,s.ld()))return f}}else if(r=n.d[e],r){for(c=r.g,h=r.i,f=0;f<h;++f)if(s=u(c[f],136),x(s.ld())===x(i))return f}return-1}function M4(n,e){var t,i,r;return t=e==null?Fr(wr(n.f,null)):h6(n.i,e),L(t,241)?(r=u(t,241),r.zi()==null,r):L(t,507)?(i=u(t,2037),r=i.a,r&&(r.yb==null||(e==null?Vc(n.f,null,r):Nb(n.i,e,r))),r):null}function lTe(n){aen();var e,t,i,r,c,s,f;if(n==null||(r=n.length,r%2!=0))return null;for(e=iC(n),c=r/2|0,t=F(Ru,s2,28,c,15,1),i=0;i<c;i++){if(s=R9[e[i*2]],s==-1||(f=R9[e[i*2+1]],f==-1))return null;t[i]=(s<<4|f)<<24>>24}return t}function aTe(n,e,t){var i,r,c;if(r=u(Mr(n.i,e),314),!r)if(r=new v$n(n.d,e,t),Ip(n.i,e,r),nZ(e))g1e(n.a,e.c,e.b,r);else switch(c=Wje(e),i=u(Mr(n.p,c),252),c.g){case 1:case 3:r.j=!0,mL(i,e.b,r);break;case 4:case 2:r.k=!0,mL(i,e.c,r)}return r}function dTe(n,e){var t,i,r,c,s,f,h,l,a;for(h=Lh(n.c-n.b&n.a.length-1),l=null,a=null,c=new z6(n);c.a!=c.b;)r=u(xC(c),10),t=(f=u(v(r,(W(),yf)),12),f?f.i:null),i=(s=u(v(r,Es),12),s?s.i:null),(l!=t||a!=i)&&(pHn(h,e),l=t,a=i),Bn(h.c,r);pHn(h,e)}function bTe(n,e,t,i){var r,c,s,f,h,l;if(f=new jE,h=ru(n.e.Dh(),e),r=u(n.g,124),dr(),u(e,69).xk())for(s=0;s<n.i;++s)c=r[s],h.am(c.Lk())&&ve(f,c);else for(s=0;s<n.i;++s)c=r[s],h.am(c.Lk())&&(l=c.md(),ve(f,i?A5(n,e,s,f.i,l):l));return XY(f,t)}function FHn(n,e){var t,i,r,c,s,f,h,l;if(r=n.b[e.p],r>=0)return r;for(c=1,f=new M(e.j);f.a<f.c.c.length;)for(s=u(E(f),12),i=new M(s.g);i.a<i.c.c.length;)t=u(E(i),18),l=t.d.i,e!=l&&(h=FHn(n,l),c=y.Math.max(c,h+1));return f8e(n,e,c),c}function _Hn(n,e){var t,i,r,c,s,f,h,l;if(r=n.b[e.p],r>=0)return r;for(c=1,f=new M(e.j);f.a<f.c.c.length;)for(s=u(E(f),12),i=new M(s.e);i.a<i.c.c.length;)t=u(E(i),18),l=t.c.i,e!=l&&(h=_Hn(n,l),c=y.Math.max(c,h+1));return F9e(n,e,c),c}function HHn(n,e,t){var i,r,c;for(i=1;i<n.c.length;i++){for(c=(Nn(i,n.c.length),u(n.c[i],10)),r=i;r>0&&e.Ne((Nn(r-1,n.c.length),u(n.c[r-1],10)),c)>0;)Go(n,r,(Nn(r-1,n.c.length),u(n.c[r-1],10))),--r;Nn(r,n.c.length),n.c[r]=c}t.a=new de,t.b=new de}function wTe(n,e,t){var i,r,c,s,f,h,l,a;for(a=(i=u(e.e&&e.e(),9),new _o(i,u(xs(i,i.length),9),0)),h=w0(t,"[\\[\\]\\s,]+"),c=h,s=0,f=c.length;s<f;++s)if(r=c[s],f0(r).length!=0){if(l=J_n(n,r),l==null)return null;_s(a,u(l,22))}return a}function gTe(n){var e,t,i,r;for(r=n.length,e=null,i=0;i<r;i++)t=(zn(i,n.length),n.charCodeAt(i)),ih(".*+?{[()|\\^$",wu(t))>=0?(e||(e=new e6,i>0&&Er(e,(Ri(0,i,n.length),n.substr(0,i)))),e.a+="\\",Tm(e,t&ui)):e&&Tm(e,t&ui);return e?e.a:n}function pTe(n){var e,t,i;for(t=new M(n.a.a.b);t.a<t.c.c.length;)e=u(E(t),86),i=(Jn(0),0),i>0&&(!(hl(n.a.c)&&e.n.d)&&!(vg(n.a.c)&&e.n.b)&&(e.g.d-=y.Math.max(0,i/2-.5)),!(hl(n.a.c)&&e.n.a)&&!(vg(n.a.c)&&e.n.c)&&(e.g.a+=y.Math.max(0,i-1)))}function qHn(n,e,t){var i,r;if((n.c-n.b&n.a.length-1)==2)e==(en(),Xn)||e==Zn?(sC(u(f5(n),15),(Co(),nl)),sC(u(f5(n),15),Pa)):(sC(u(f5(n),15),(Co(),Pa)),sC(u(f5(n),15),nl));else for(r=new z6(n);r.a!=r.b;)i=u(xC(r),15),sC(i,t)}function mTe(n,e){var t,i,r,c,s,f,h;for(r=km(new DG(n)),f=new xi(r,r.c.length),c=km(new DG(e)),h=new xi(c,c.c.length),s=null;f.b>0&&h.b>0&&(t=(oe(f.b>0),u(f.a.Xb(f.c=--f.b),27)),i=(oe(h.b>0),u(h.a.Xb(h.c=--h.b),27)),t==i);)s=t;return s}function UHn(n,e,t){var i,r,c,s;UAn(n,e)>UAn(n,t)?(i=uc(t,(en(),Zn)),n.d=i.dc()?0:zN(u(i.Xb(0),12)),s=uc(e,Wn),n.b=s.dc()?0:zN(u(s.Xb(0),12))):(r=uc(t,(en(),Wn)),n.d=r.dc()?0:zN(u(r.Xb(0),12)),c=uc(e,Zn),n.b=c.dc()?0:zN(u(c.Xb(0),12)))}function GHn(n,e){var t,i,r,c;for(t=n.o.a,c=u(u(ot(n.r,e),21),87).Kc();c.Ob();)r=u(c.Pb(),117),r.e.a=t*$(B(r.b.of(bI))),r.e.b=(i=r.b,i.pf((He(),oo))?i.ag()==(en(),Xn)?-i.Mf().b-$(B(i.of(oo))):$(B(i.of(oo))):i.ag()==(en(),Xn)?-i.Mf().b:0)}function vTe(n,e){var t,i,r,c;for(e.Ug("Self-Loop pre-processing",1),i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),10),c8e(t)&&(r=(c=new iBn(t),U(t,(W(),sw),c),qPe(c),c),Ut(_r(rc(new Cn(null,new On(r.d,16)),new b2n),new w2n),new g2n),xCe(r));e.Vg()}function kTe(n){var e,t,i,r,c,s,f,h;e=!0,r=null,c=null;n:for(h=new M(n.a);h.a<h.c.c.length;)for(f=u(E(h),10),i=new ie(ce(ji(f).a.Kc(),new En));pe(i);){if(t=u(fe(i),18),r&&r!=f){e=!1;break n}if(r=f,s=t.c.i,c&&c!=s){e=!1;break n}c=s}return e}function yTe(n,e,t){var i,r,c,s,f,h;for(c=-1,f=-1,s=0;s<e.c.length&&(r=(Nn(s,e.c.length),u(e.c[s],339)),!(r.c>n.c));s++)r.a>=n.s&&(c<0&&(c=s),f=s);return h=(n.s+n.c)/2,c>=0&&(i=oPe(n,e,c,f),h=cle((Nn(i,e.c.length),u(e.c[i],339))),aMe(e,i,t)),h}function Te(n,e,t){var i,r,c,s,f,h,l;for(s=(c=new nG,c),PQ(s,(Jn(e),e)),l=(!s.b&&(s.b=new lo((An(),ar),pc,s)),s.b),h=1;h<t.length;h+=2)Gk(l,t[h-1],t[h]);for(i=(!n.Ab&&(n.Ab=new q(Ue,n,0,3)),n.Ab),f=0;f<0;++f)r=R0e(u(N(i,i.i-1),598)),i=r;ve(i,s)}function zHn(n,e,t){var i,r,c;for(jae.call(this,new Z),this.a=e,this.b=t,this.e=n,i=(n.b&&xR(n),n.a),this.d=jOn(i.a,this.a),this.c=jOn(i.b,this.b),g5e(this,this.d,this.c),HEe(this),c=this.e.e.a.ec().Kc();c.Ob();)r=u(c.Pb(),272),r.c.c.length>0&&iAe(this,r)}function Jnn(n,e,t,i,r,c){var s,f,h;if(!r[e.a]){for(r[e.a]=!0,s=i,!s&&(s=new zT),nn(s.e,e),h=c[e.a].Kc();h.Ob();)f=u(h.Pb(),289),!(f.d==t||f.c==t)&&(f.c!=e&&Jnn(n,f.c,e,s,r,c),f.d!=e&&Jnn(n,f.d,e,s,r,c),nn(s.c,f),hi(s.d,f.b));return s}return null}function jTe(n){var e,t,i,r,c,s,f;for(e=0,r=new M(n.e);r.a<r.c.c.length;)i=u(E(r),18),t=Ag(new Cn(null,new On(i.b,16)),new U0n),t&&++e;for(s=new M(n.g);s.a<s.c.c.length;)c=u(E(s),18),f=Ag(new Cn(null,new On(c.b,16)),new G0n),f&&++e;return e>=2}function ETe(n,e,t,i,r){var c,s,f,h,l,a;for(c=n.c.d.j,s=u(Zo(t,0),8),a=1;a<t.b;a++)l=u(Zo(t,a),8),xt(i,s,i.c.b,i.c),f=ch(it(new rr(s),l),.5),h=ch(new KD(cY(c)),r),it(f,h),xt(i,f,i.c.b,i.c),s=l,c=e==0?BC(c):CY(c);Re(i,(oe(t.b!=0),u(t.c.b.c,8)))}function MTe(n){l0();var e,t,i;return t=yt(No,S(C(yr,1),G,95,0,[Zs])),!(vk(LT(t,n))>1||(e=yt(Qs,S(C(yr,1),G,95,0,[xl,Ys])),vk(LT(e,n))>1)||(i=yt(nf,S(C(yr,1),G,95,0,[el,Ts])),vk(LT(i,n))>1))}function Qnn(n,e,t){var i,r,c;for(c=new M(n.t);c.a<c.c.c.length;)i=u(E(c),274),i.b.s<0&&i.c>0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&Re(e,i.b));for(r=new M(n.i);r.a<r.c.c.length;)i=u(E(r),274),i.a.s<0&&i.c>0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&Re(t,i.a))}function MS(n){var e,t,i,r,c;if(n.g==null&&(n.d=n.bj(n.f),ve(n,n.d),n.c))return c=n.f,c;if(e=u(n.g[n.i-1],51),r=e.Pb(),n.e=e,t=n.bj(r),t.Ob())n.d=t,ve(n,t);else for(n.d=null;!e.Ob()&&($t(n.g,--n.i,null),n.i!=0);)i=u(n.g[n.i-1],51),e=i;return r}function TTe(n,e){var t,i,r,c,s,f;if(i=e,r=i.Lk(),Pl(n.e,r)){if(r.Si()&&_T(n,r,i.md()))return!1}else for(f=ru(n.e.Dh(),r),t=u(n.g,124),c=0;c<n.i;++c)if(s=t[c],f.am(s.Lk()))return ct(s,i)?!1:(u(Bg(n,c,e),76),!0);return ve(n,e)}function CTe(n,e,t,i){var r,c,s,f;for(r=new Cl(n),Ha(r,(Vn(),Sc)),U(r,(W(),st),e),U(r,K8,i),U(r,(cn(),_t),(Ai(),qc)),U(r,yf,e.c),U(r,Es,e.d),kqn(e,r),f=y.Math.floor(t/2),s=new M(r.j);s.a<s.c.c.length;)c=u(E(s),12),c.n.b=f;return r}function XHn(n){var e,t,i,r,c,s,f;for(e=0,i=new M(n.a);i.a<i.c.c.length;)for(t=u(E(i),10),c=new ie(ce(Qt(t).a.Kc(),new En));pe(c);)r=u(fe(c),18),n==r.d.i.c&&r.c.j==(en(),Wn)&&(s=Of(r.c).b,f=Of(r.d).b,e=y.Math.max(e,y.Math.abs(f-s)));return e}function VHn(n,e,t){var i,r,c,s,f;for(t.Ug("ELK Force",1),on(un(z(e,(Us(),won))))||NT((i=new z9((Aw(),new Pw(e))),i)),f=sRn(e),z7e(f),b6e(n,u(v(f,bon),432)),s=FUn(n.a,f),c=s.Kc();c.Ob();)r=u(c.Pb(),235),pIe(n.b,r,t.eh(1/s.gc()));f=nzn(s),hzn(f),t.Vg()}function Ynn(n,e,t){switch(t.g){case 1:return new V(e.a,y.Math.min(n.d.b,e.b));case 2:return new V(y.Math.max(n.c.a,e.a),e.b);case 3:return new V(e.a,y.Math.max(n.c.b,e.b));case 4:return new V(y.Math.min(e.a,n.d.a),e.b)}return new V(e.a,e.b)}function ry(n){var e,t,i;for(e=Lh(1+(!n.c&&(n.c=new q(Qu,n,9,9)),n.c).i),nn(e,(!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d)),i=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));i.e!=i.i.gc();)t=u(ue(i),123),nn(e,(!t.d&&(t.d=new Dn(Vt,t,8,5)),t.d));return Pe(e),new T6(e)}function Sl(n){var e,t,i;for(e=Lh(1+(!n.c&&(n.c=new q(Qu,n,9,9)),n.c).i),nn(e,(!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e)),i=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));i.e!=i.i.gc();)t=u(ue(i),123),nn(e,(!t.e&&(t.e=new Dn(Vt,t,7,4)),t.e));return Pe(e),new T6(e)}function STe(n){var e,t,i,r;if(n==null)return null;if(i=Rc(n,!0),r=Zy.length,Sn(i.substr(i.length-r,r),Zy)){if(t=i.length,t==4){if(e=(zn(0,i.length),i.charCodeAt(0)),e==43)return obn;if(e==45)return mse}else if(t==3)return obn}return s0(i)}function PTe(n,e){var t,i,r,c,s;if(e.Ug("Breaking Point Processor",1),lLe(n),on(un(v(n,(cn(),Ehn))))){for(r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),t=0,s=new M(i.a);s.a<s.c.c.length;)c=u(E(s),10),c.p=t++;uOe(n),aqn(n,!0),aqn(n,!1)}e.Vg()}function ITe(n,e,t,i){var r,c,s,f,h,l,a,d,g;for(d=i?(en(),Wn):(en(),Zn),r=!1,h=e[t],l=0,a=h.length;l<a;++l)f=h[l],!Ep(u(v(f,(cn(),_t)),101))&&(s=f.e,g=!uc(f,d).dc()&&!!s,g&&(c=zZ(s),n.b=new VZ(c,i?0:c.length-1)),r=r|gSe(n,f,d,g));return r}function WHn(n,e,t,i){var r,c,s;if(s=xZ(e,t),Bn(i.c,e),n.j[s.p]==-1||n.j[s.p]==2||n.a[e.p])return i;for(n.j[s.p]=-1,c=new ie(ce(Ml(s).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),!(!(!fr(r)&&!(!fr(r)&&r.c.i.c==r.d.i.c))||r==e))return WHn(n,r,s,i);return i}function OTe(n){var e,t,i,r;for(e=0,t=0,r=new M(n.j);r.a<r.c.c.length;)if(i=u(E(r),12),e=Se(nr(e,KNn(ut(new Cn(null,new On(i.e,16)),new b3n)))),t=Se(nr(t,KNn(ut(new Cn(null,new On(i.g,16)),new w3n)))),e>1||t>1)return 2;return e+t==1?2:0}function to(n,e){var t,i,r,c,s,f;return c=n.a*NK+n.b*1502,f=n.b*NK+11,t=y.Math.floor(f*Iy),c+=t,f-=t*ytn,c%=ytn,n.a=c,n.b=f,e<=24?y.Math.floor(n.a*Aun[e]):(r=n.a*(1<<e-24),s=y.Math.floor(n.b*Lun[e]),i=r+s,i>=2147483648&&(i-=4294967296),i)}function JHn(n,e,t){var i,r,c,s,f,h,l;for(c=new Z,l=new Mt,s=new Mt,XIe(n,l,s,e),TAe(n,l,s,e,t),h=new M(n);h.a<h.c.c.length;)for(f=u(E(h),118),r=new M(f.k);r.a<r.c.c.length;)i=u(E(r),132),(!e||i.c==(af(),Ma))&&f.g>i.b.g&&Bn(c.c,i);return c}function ATe(n,e,t){var i,r,c,s,f,h;for(f=n.c,s=(t.q?t.q:(Ln(),Ln(),Wh)).vc().Kc();s.Ob();)c=u(s.Pb(),44),i=!om(ut(new Cn(null,new On(f,16)),new Y3(new cTn(e,c)))).Bd((Va(),v3)),i&&(h=c.md(),L(h,4)&&(r=iZ(h),r!=null&&(h=r)),e.qf(u(c.ld(),149),h))}function LTe(n,e,t){var i,r;if(H7(n.b),hf(n.b,(Dk(),XO),(u6(),_j)),hf(n.b,VO,e.g),hf(n.b,WO,e.a),n.a=wy(n.b,e),t.Ug("Compaction by shrinking a tree",n.a.c.length),e.i.c.length>1)for(r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),47),i.Kf(e,t.eh(1));t.Vg()}function Znn(n,e,t){var i,r,c;if(c=Qg((Lu(),zi),n.Dh(),e),c){if(dr(),!u(c,69).xk()&&(c=$p(Nr(zi,c)),!c))throw T(new Gn(wa+e.xe()+a8));r=(i=n.Ih(c),u(i>=0?n.Lh(i,!0,!0):Fb(n,c,!0),160)),u(r,220).Xl(e,t)}else throw T(new Gn(wa+e.xe()+a8))}function TS(n,e){var t,i,r,c,s;if(e){for(c=L(n.Cb,90)||L(n.Cb,102),s=!c&&L(n.Cb,331),i=new ne((!e.a&&(e.a=new x6(e,jr,e)),e.a));i.e!=i.i.gc();)if(t=u(ue(i),89),r=KS(t),c?L(r,90):s?L(r,156):r)return r;return c?(An(),Os):(An(),Zf)}else return null}function NTe(n,e){var t,i,r,c;for(e.Ug("Resize child graph to fit parent.",1),i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),30),hi(n.a,t.a),t.a.c.length=0;for(c=new M(n.a);c.a<c.c.c.length;)r=u(E(c),10),$i(r,null);n.b.c.length=0,ZCe(n),n.e&&JPe(n.e,n),e.Vg()}function DTe(n,e){var t,i,r,c,s;for(e.Ug("Edge joining",1),t=on(un(v(n,(cn(),AH)))),r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=new xi(i.a,0);s.b<s.d.gc();)c=(oe(s.b<s.d.gc()),u(s.d.Xb(s.c=s.b++),10)),c.k==(Vn(),Ti)&&(XR(c,t),bo(s));e.Vg()}function $Te(n,e){var t,i,r,c,s;for(t=new Z,r=rc(new Cn(null,new On(n,16)),new N3n),c=rc(new Cn(null,new On(n,16)),new D3n),s=Gme(fme(Uw(bCe(S(C(dDe,1),Rn,848,0,[r,c])),new $3n))),i=1;i<s.length;i++)s[i]-s[i-1]>=2*e&&nn(t,new FN(s[i-1]+e,s[i]-e));return t}function xTe(n,e,t){var i,r,c,s,f,h,l,a;if(t)for(c=t.a.length,i=new Qa(c),f=(i.b-i.a)*i.c<0?(_1(),Ra):new U1(i);f.Ob();)s=u(f.Pb(),17),r=Lm(t,s.a),r&&(h=a3e(n,(l=(B1(),a=new ZG,a),e&&nen(l,e),l),r),zm(h,bl(r,Eh)),gS(r,h),Mnn(r,h),_$(n,r,h))}function CS(n){var e,t,i,r,c,s;if(!n.j){if(s=new Evn,e=N9,c=e.a.zc(n,e),c==null){for(i=new ne(Hr(n));i.e!=i.i.gc();)t=u(ue(i),29),r=CS(t),Bt(s,r),ve(s,t);e.a.Bc(n)!=null}e0(s),n.j=new pg((u(N(H((z1(),Hn).o),11),19),s.i),s.g),Zu(n).b&=-33}return n.j}function RTe(n){var e,t,i,r;if(n==null)return null;if(i=Rc(n,!0),r=Zy.length,Sn(i.substr(i.length-r,r),Zy)){if(t=i.length,t==4){if(e=(zn(0,i.length),i.charCodeAt(0)),e==43)return sbn;if(e==45)return vse}else if(t==3)return sbn}return new HG(i)}function KTe(n){var e,t,i;return t=n.l,t&t-1||(i=n.m,i&i-1)||(e=n.h,e&e-1)||e==0&&i==0&&t==0?-1:e==0&&i==0&&t!=0?mQ(t):e==0&&i!=0&&t==0?mQ(i)+22:e!=0&&i==0&&t==0?mQ(e)+44:-1}function zg(n,e){var t,i,r,c,s;for(r=e.a&n.f,c=null,i=n.b[r];;i=i.b){if(i==e){c?c.b=e.b:n.b[r]=e.b;break}c=i}for(s=e.f&n.f,c=null,t=n.c[s];;t=t.d){if(t==e){c?c.d=e.d:n.c[s]=e.d;break}c=t}e.e?e.e.c=e.c:n.a=e.c,e.c?e.c.e=e.e:n.e=e.e,--n.i,++n.g}function BTe(n,e){var t;e.d?e.d.b=e.b:n.a=e.b,e.b?e.b.d=e.d:n.e=e.d,!e.e&&!e.c?(t=u(as(u(Kp(n.b,e.a),260)),260),t.a=0,++n.c):(t=u(as(u(ee(n.b,e.a),260)),260),--t.a,e.e?e.e.c=e.c:t.b=u(as(e.c),511),e.c?e.c.e=e.e:t.c=u(as(e.e),511)),--n.d}function FTe(n){var e,t,i,r,c,s,f,h,l,a;for(t=n.o,e=n.p,s=et,r=Wi,f=et,c=Wi,l=0;l<t;++l)for(a=0;a<e;++a)Fg(n,l,a)&&(s=y.Math.min(s,l),r=y.Math.max(r,l),f=y.Math.min(f,a),c=y.Math.max(c,a));return h=r-s+1,i=c-f+1,new TOn(Y(s),Y(f),Y(h),Y(i))}function pR(n,e){var t,i,r,c;for(c=new xi(n,0),t=(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),148));c.b<c.d.gc();)i=(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),148)),r=new qV(i.c,t.d,e),oe(c.b>0),c.a.Xb(c.c=--c.b),Bw(c,r),oe(c.b<c.d.gc()),c.d.Xb(c.c=c.b++),r.a=!1,t=i}function QHn(n){var e,t,i,r,c,s;for(r=u(v(n,(W(),tO)),12),s=new M(n.j);s.a<s.c.c.length;){for(c=u(E(s),12),i=new M(c.g);i.a<i.c.c.length;)return e=u(E(i),18),Oi(e,r),c;for(t=new M(c.e);t.a<t.c.c.length;)return e=u(E(t),18),Zi(e,r),c}return null}function YHn(n,e,t){var i,r,c,s,f,h;for(h=u(xw(n.a,e),17).a,t?XZ(n.a,Y(h+1),e):XZ(n.a,Y(h-1),e),s=new rh,r=new ie(ce((t?Qt(e):ji(e)).a.Kc(),new En));pe(r);)i=u(fe(r),18),t?c=i.d.i:c=i.c.i,x(xw(n.a,c))===x(xw(n.a,e))&&(f=s.a.zc(c,s),f==null);return s}function _Te(n,e,t){var i,r;i=vc(t.q.getTime()),Ec(i,0)<0?(r=d1-Se(Rk(n1(i),d1)),r==d1&&(r=0)):r=Se(Rk(i,d1)),e==1?(r=y.Math.min((r+50)/100|0,9),X1(n,48+r&ui)):e==2?(r=y.Math.min((r+5)/10|0,99),Kh(n,r,2)):(Kh(n,r,3),e>3&&Kh(n,0,e-3))}function HTe(n){var e,t,i,r;return x(v(n,(cn(),K0)))===x((jl(),T1))?!n.e&&x(v(n,Ej))!==x((Ym(),pj)):(i=u(v(n,kH),298),r=on(un(v(n,yH)))||x(v(n,H8))===x((i5(),gj)),e=u(v(n,Ffn),17).a,t=n.a.c.length,!r&&i!=(Ym(),pj)&&(e==0||e>t))}function qTe(n){var e,t;for(t=0;t<n.c.length&&!(qPn((Nn(t,n.c.length),u(n.c[t],113)))>0);t++);if(t>0&&t<n.c.length-1)return t;for(e=0;e<n.c.length&&!(qPn((Nn(e,n.c.length),u(n.c[e],113)))>0);e++);return e>0&&t<n.c.length-1?e:n.c.length/2|0}function ZHn(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=6&&e){if(p4(n,e))throw T(new Gn(d8+dHn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?MZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,6,i)),i=sV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,6,e,e))}function SS(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(p4(n,e))throw T(new Gn(d8+nGn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?PZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,12,i)),i=fV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,3,e,e))}function nen(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=9&&e){if(p4(n,e))throw T(new Gn(d8+Yqn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?CZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,9,i)),i=hV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,9,e,e))}function T4(n){var e,t,i,r,c;if(i=gs(n),c=n.j,c==null&&i)return n.Jk()?null:i.ik();if(L(i,156)){if(t=i.jk(),t&&(r=t.wi(),r!=n.i)){if(e=u(i,156),e.nk())try{n.g=r.ti(e,c)}catch(s){if(s=Ot(s),L(s,82))n.g=null;else throw T(s)}n.i=r}return n.g}return null}function nqn(n){var e;return e=new Z,nn(e,new bp(new V(n.c,n.d),new V(n.c+n.b,n.d))),nn(e,new bp(new V(n.c,n.d),new V(n.c,n.d+n.a))),nn(e,new bp(new V(n.c+n.b,n.d+n.a),new V(n.c+n.b,n.d))),nn(e,new bp(new V(n.c+n.b,n.d+n.a),new V(n.c,n.d+n.a))),e}function UTe(n){var e,t,i;if(n==null)return gu;try{return Jr(n)}catch(r){if(r=Ot(r),L(r,103))return e=r,i=Xa(wo(n))+"@"+(t=(fl(),tZ(n)>>>0),t.toString(16)),r9e(qve(),(lm(),"Exception during lenientFormat for "+i),e),"<"+i+" threw "+Xa(e.Rm)+">";throw T(r)}}function GTe(n,e,t){var i,r,c;for(c=e.a.ec().Kc();c.Ob();)r=u(c.Pb(),74),i=u(ee(n.b,r),272),!i&&(St(Fh(r))==St(ca(r))?LCe(n,r,t):Fh(r)==St(ca(r))?ee(n.c,r)==null&&ee(n.b,ca(r))!=null&&LGn(n,r,t,!1):ee(n.d,r)==null&&ee(n.b,Fh(r))!=null&&LGn(n,r,t,!0))}function zTe(n,e){var t,i,r,c,s,f,h;for(r=n.Kc();r.Ob();)for(i=u(r.Pb(),10),f=new Ic,ic(f,i),gi(f,(en(),Zn)),U(f,(W(),uO),(_n(),!0)),s=e.Kc();s.Ob();)c=u(s.Pb(),10),h=new Ic,ic(h,c),gi(h,Wn),U(h,uO,!0),t=new yb,U(t,uO,!0),Zi(t,f),Oi(t,h)}function XTe(n,e,t,i){var r,c,s,f;r=RKn(n,e,t),c=RKn(n,t,e),s=u(ee(n.c,e),118),f=u(ee(n.c,t),118),r<c?new ed((af(),z0),s,f,c-r):c<r?new ed((af(),z0),f,s,r-c):(r!=0||!(!e.i||!t.i)&&i[e.i.c][t.i.c])&&(new ed((af(),z0),s,f,0),new ed(z0,f,s,0))}function eqn(n,e){var t,i,r,c,s,f,h;for(r=0,s=new M(e.a);s.a<s.c.c.length;)for(c=u(E(s),10),r+=c.o.b+c.d.a+c.d.d+n.e,i=new ie(ce(ji(c).a.Kc(),new En));pe(i);)t=u(fe(i),18),t.c.i.k==(Vn(),_c)&&(h=t.c.i,f=u(v(h,(W(),st)),10),r+=f.o.b+f.d.a+f.d.d);return r}function D5(){D5=R,D2=new b7("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),A3=new b7("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),a9=new b7("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),l9=new b7("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),Fj=new b7("WHOLE_DRAWING",4)}function VTe(n,e){if(L(e,207))return m5e(n,u(e,27));if(L(e,193))return T5e(n,u(e,123));if(L(e,366))return wge(n,u(e,135));if(L(e,326))return LIe(n,u(e,74));if(e)return null;throw T(new Gn(Acn+ua(new Fu(S(C(ki,1),Rn,1,5,[e])))))}function WTe(n){var e,t,i,r,c,s,f;for(c=new Mt,r=new M(n.d.a);r.a<r.c.c.length;)i=u(E(r),125),i.b.a.c.length==0&&xt(c,i,c.c.b,c.c);if(c.b>1)for(e=sb((t=new za,++n.b,t),n.d),f=ge(c,0);f.b!=f.d.c;)s=u(be(f),125),qs(Ns(Ls(Ds(As(new hs,1),0),e),s))}function JTe(n,e,t){var i,r,c,s,f;for(t.Ug("Breaking Point Removing",1),n.a=u(v(e,(cn(),$l)),223),c=new M(e.b);c.a<c.c.c.length;)for(r=u(E(c),30),f=new M(Mb(r.a));f.a<f.c.c.length;)s=u(E(f),10),i$n(s)&&(i=u(v(s,(W(),cw)),313),!i.d&&GGn(n,i));t.Vg()}function PS(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=11&&e){if(p4(n,e))throw T(new Gn(d8+ken(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?IZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,10,i)),i=vV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,11,e,e))}function QTe(n){var e,t,i,r;for(i=new sd(new Ua(n.b).a);i.b;)t=Ab(i),r=u(t.ld(),12),e=u(t.md(),10),U(e,(W(),st),r),U(r,Xu,e),U(r,kj,(_n(),!0)),gi(r,u(v(e,gc),64)),v(e,gc),U(r.i,(cn(),_t),(Ai(),Bv)),u(v(Hi(r.i),Hc),21).Fc((pr(),kv))}function YTe(n,e,t){var i,r,c,s,f,h;if(c=0,s=0,n.c)for(h=new M(n.d.i.j);h.a<h.c.c.length;)f=u(E(h),12),c+=f.e.c.length;else c=1;if(n.d)for(h=new M(n.c.i.j);h.a<h.c.c.length;)f=u(E(h),12),s+=f.g.c.length;else s=1;return r=wi(K7(s-c)),i=(t+e)/2+(t-e)*(.4*r),i}function ZTe(n){o0();var e,t;if(n.Hc((en(),sc)))throw T(new Gn("Port sides must not contain UNDEFINED"));switch(n.gc()){case 1:return wj;case 2:return e=n.Hc(Zn)&&n.Hc(Wn),t=n.Hc(Xn)&&n.Hc(ae),e||t?XI:zI;case 3:return GI;case 4:return UI;default:return null}}function mR(n,e,t){return Vg(),Vm(n,e)&&Vm(n,t)?!1:WR(new V(n.c,n.d),new V(n.c+n.b,n.d),e,t)||WR(new V(n.c+n.b,n.d),new V(n.c+n.b,n.d+n.a),e,t)||WR(new V(n.c+n.b,n.d+n.a),new V(n.c,n.d+n.a),e,t)||WR(new V(n.c,n.d+n.a),new V(n.c,n.d),e,t)}function een(n,e){var t,i,r,c;if(!n.dc()){for(t=0,i=n.gc();t<i;++t)if(c=Ae(n.Xb(t)),c==null?e==null:Sn(c.substr(0,3),"!##")?e!=null&&(r=e.length,!Sn(c.substr(c.length-r,r),e)||c.length!=e.length+3)&&!Sn(Pd,e):Sn(c,OF)&&!Sn(Pd,e)||Sn(c,e))return!0}return!1}function nCe(n,e,t,i){var r,c,s,f,h,l;for(s=n.j.c.length,h=F(gDe,Ltn,314,s,0,1),f=0;f<s;f++)c=u(sn(n.j,f),12),c.p=f,h[f]=lMe(THn(c),t,i);for(TCe(n,h,t,e,i),l=new de,r=0;r<h.length;r++)h[r]&&Ve(l,u(sn(n.j,r),12),h[r]);l.f.c+l.i.c!=0&&(U(n,(W(),R8),l),Tje(n,h))}function eCe(n,e){var t,i,r,c,s,f;for(e.Ug("Partition postprocessing",1),i=new M(n.b);i.a<i.c.c.length;)for(t=u(E(i),30),c=new M(t.a);c.a<c.c.c.length;)for(r=u(E(c),10),f=new M(r.j);f.a<f.c.c.length;)s=u(E(f),12),on(un(v(s,(W(),uO))))&&_6(f);e.Vg()}function tCe(n,e,t){var i,r,c;for(r=new M(n.a.b);r.a<r.c.c.length;)if(i=u(E(r),60),c=Ig(i),c&&c.k==(Vn(),Zt))switch(u(v(c,(W(),gc)),64).g){case 4:c.n.a=e.a;break;case 2:c.n.a=t.a-(c.o.a+c.d.c);break;case 1:c.n.b=e.b;break;case 3:c.n.b=t.b-(c.o.b+c.d.a)}}function iCe(n,e,t){var i,r,c;for(t.Ug("Processor determine the height for each level",1),n.a=e.b.b==0?1:e.b.b,r=null,i=ge(e.b,0);!r&&i.b!=i.d.c;)c=u(be(i),39),on(un(v(c,(pt(),Ca))))&&(r=c);r&&UUn(n,Af(S(C(DO,1),AP,39,0,[r])),t,u(v(e,(lc(),pw)),88)),t.Vg()}function rCe(n){var e,t,i,r,c,s;for(i=(B1(),c=new Jv,c),cy(i,n),t=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));t.e!=t.i.gc();)e=u(ue(t),27),s=(r=new Jv,r),PS(s,i),kg(s,e.g,e.f),zm(s,e.k),Bo(s,e.i,e.j),ve((!i.a&&(i.a=new q(Ye,i,10,11)),i.a),s),cy(s,e);return i}function cCe(n,e,t){var i,r,c,s,f;return r=u(z(e,(mS(),ban)),17),!r&&(r=Y(0)),c=u(z(t,ban),17),!c&&(c=Y(0)),r.a>c.a?-1:r.a<c.a?1:n.a&&(i=bt(e.j,t.j),i!=0||(i=bt(e.i,t.i),i!=0))?i:(s=e.g*e.f,f=t.g*t.f,bt(s,f))}function uCe(n,e){var t,i,r,c,s,f,h,l,a,d;if(++n.e,h=n.d==null?0:n.d.length,e>h){for(a=n.d,n.d=F(Ndn,Fcn,66,2*h+4,0,1),c=0;c<h;++c)if(l=a[c],l)for(i=l.g,d=l.i,f=0;f<d;++f)r=u(i[f],136),s=lV(n,r.Bi()),t=n.d[s],!t&&(t=n.d[s]=n.dk()),t.Fc(r);return!0}else return!1}function oCe(n,e,t){var i,r,c,s,f,h;if(r=t,c=r.Lk(),Pl(n.e,c)){if(c.Si()){for(i=u(n.g,124),s=0;s<n.i;++s)if(f=i[s],ct(f,r)&&s!=e)throw T(new Gn(Xy))}}else for(h=ru(n.e.Dh(),c),i=u(n.g,124),s=0;s<n.i;++s)if(f=i[s],h.am(f.Lk()))throw T(new Gn(Yy));p5(n,e,t)}function tqn(n,e){var t,i,r,c,s,f;for(t=u(v(e,(W(),Dl)),21),s=u(ot((YR(),wt),t),21),f=u(ot(qe,t),21),c=s.Kc();c.Ob();)if(i=u(c.Pb(),21),!u(ot(n.b,i),15).dc())return!1;for(r=f.Kc();r.Ob();)if(i=u(r.Pb(),21),!u(ot(n.b,i),15).dc())return!1;return!0}function ten(n,e){var t,i,r,c,s,f,h,l,a;if(n.a.c.length==1)return r_n(u(sn(n.a,0),172),e);for(s=i5e(n),h=0,l=n.d,c=s,a=n.d,f=(l-c)/2+c;c+1<l;){for(h=0,i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),172),h+=(r=q5(t,f,!1),r.a);h<e?(a=f,l=f):c=f,f=(l-c)/2+c}return a}function cy(n,e){var t,i,r,c,s;if(!e)return n;if(L(e,342))for(r=u(e,342),c=(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),n.o),i=r.gh().c.Kc();i.e!=i.i.gc();)t=u(i.Yj(),44),s=t.md(),Gk(c,u(t.ld(),149),s);else!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),fxn(n.o,e.nf());return n}function sCe(n){var e,t,i,r,c;return isNaN(n)?(Km(),hun):n<-9223372036854776e3?(Km(),bQn):n>=9223372036854776e3?(Km(),sun):(r=!1,n<0&&(r=!0,n=-n),i=0,n>=vd&&(i=wi(n/vd),n-=i*vd),t=0,n>=o3&&(t=wi(n/o3),n-=t*o3),e=wi(n),c=Yc(e,t,i),r&&H$(c),c)}function fCe(n){var e,t,i,r,c;if(c=new Z,nu(n.b,new S9n(c)),n.b.c.length=0,c.c.length!=0){for(e=(Nn(0,c.c.length),u(c.c[0],82)),t=1,i=c.c.length;t<i;++t)r=(Nn(t,c.c.length),u(c.c[t],82)),r!=e&&$ye(e,r);if(L(e,63))throw T(u(e,63));if(L(e,295))throw T(u(e,295))}}function hCe(n,e){var t,i,r,c;for(t=!e||!n.u.Hc((zu(),Rl)),c=0,r=new M(n.e.Xf());r.a<r.c.c.length;){if(i=u(E(r),852),i.ag()==(en(),sc))throw T(new Gn("Label and node size calculator can only be used with ports that have port sides assigned."));i.Qf(c++),Y6e(n,i,t)}}function ien(n){var e,t,i,r,c;for(t=new M(n.a.a);t.a<t.c.c.length;){for(e=u(E(t),316),e.j=null,c=e.a.a.ec().Kc();c.Ob();)i=u(c.Pb(),60),ff(i.b),(!e.j||i.d.c<e.j.d.c)&&(e.j=i);for(r=e.a.a.ec().Kc();r.Ob();)i=u(r.Pb(),60),i.b.a=i.d.c-e.j.d.c,i.b.b=i.d.d-e.j.d.d}return n}function IS(n){var e,t,i,r,c;for(t=new M(n.a.a);t.a<t.c.c.length;){for(e=u(E(t),194),e.f=null,c=e.a.a.ec().Kc();c.Ob();)i=u(c.Pb(),86),ff(i.e),(!e.f||i.g.c<e.f.g.c)&&(e.f=i);for(r=e.a.a.ec().Kc();r.Ob();)i=u(r.Pb(),86),i.e.a=i.g.c-e.f.g.c,i.e.b=i.g.d-e.f.g.d}return n}function lCe(n){var e,t,i;return t=u(n.a,17).a,i=u(n.b,17).a,e=y.Math.max(y.Math.abs(t),y.Math.abs(i)),t<e&&i==-e?new bi(Y(t+1),Y(i)):t==e&&i<e?new bi(Y(t),Y(i+1)):t>=-e&&i==e?new bi(Y(t-1),Y(i)):new bi(Y(t),Y(i-1))}function iqn(){return tr(),S(C(yDe,1),G,81,0,[Won,zon,b2,N_,bsn,OI,FI,N0,asn,isn,hsn,L0,dsn,nsn,wsn,Fon,DI,D_,PI,RI,psn,xI,_on,lsn,msn,KI,gsn,II,Qon,ssn,osn,_I,Uon,SI,LI,qon,fv,csn,esn,fsn,A8,Xon,Gon,usn,tsn,NI,BI,Hon,$I,rsn,AI,Yon,Jon,dj,CI,Zon,Von])}function aCe(n,e,t){n.d=0,n.b=0,e.k==(Vn(),_c)&&t.k==_c&&u(v(e,(W(),st)),10)==u(v(t,st),10)&&(s$(e).j==(en(),Xn)?UHn(n,e,t):UHn(n,t,e)),e.k==_c&&t.k==Ti?s$(e).j==(en(),Xn)?n.d=1:n.b=1:t.k==_c&&e.k==Ti&&(s$(t).j==(en(),Xn)?n.b=1:n.d=1),J9e(n,e,t)}function dCe(n){var e,t,i,r,c,s,f,h,l,a,d;return d=ZZ(n),e=n.a,h=e!=null,h&&ym(d,"category",n.a),r=Z9(new qa(n.d)),s=!r,s&&(l=new _a,bf(d,"knownOptions",l),t=new syn(l),qi(new qa(n.d),t)),c=Z9(n.g),f=!c,f&&(a=new _a,bf(d,"supportedFeatures",a),i=new fyn(a),qi(n.g,i)),d}function bCe(n){var e,t,i,r,c,s,f,h,l;for(i=!1,e=336,t=0,c=new GSn(n.length),f=n,h=0,l=f.length;h<l;++h)s=f[h],i=i|(ia(s),!1),r=(V1(s),s.a),nn(c.a,Pe(r)),e&=r.yd(),t=L6e(t,r.zd());return u(u(FIn(new Cn(null,nR(new On((gb(),WY(c.a)),16),new D1,e,t)),new n9n(n)),687),848)}function wCe(n,e){var t;n.d&&(e.c!=n.e.c||cve(n.e.b,e.b))&&(nn(n.f,n.d),n.a=n.d.c+n.d.b,n.d=null,n.e=null),Ole(e.b)?n.c=e:n.b=e,(e.b==(Zm(),tw)&&!e.a||e.b==I0&&e.a||e.b==d2&&e.a||e.b==O0&&!e.a)&&n.c&&n.b&&(t=new Ho(n.a,n.c.d,e.c-n.a,n.b.d-n.c.d),n.d=t,n.e=e)}function $5(n){var e;if(mjn.call(this),this.i=new y4n,this.g=n,this.f=u(n.e&&n.e(),9).length,this.f==0)throw T(new Gn("There must be at least one phase in the phase enumeration."));this.c=(e=u(of(this.g),9),new _o(e,u(xs(e,e.length),9),0)),this.a=new ii,this.b=new de}function ren(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=7&&e){if(p4(n,e))throw T(new Gn(d8+f_n(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?TZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=u(e,54).Rh(n,1,uE,i)),i=aW(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,7,e,e))}function rqn(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(p4(n,e))throw T(new Gn(d8+oKn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?SZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=u(e,54).Rh(n,0,sE,i)),i=dW(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,3,e,e))}function vR(n,e){C4();var t,i,r,c,s,f,h,l,a;return e.d>n.d&&(f=n,n=e,e=f),e.d<63?tSe(n,e):(s=(n.d&-2)<<4,l=LJ(n,s),a=LJ(e,s),i=BR(n,Rp(l,s)),r=BR(e,Rp(a,s)),h=vR(l,a),t=vR(i,r),c=vR(BR(l,i),BR(r,a)),c=zR(zR(c,h),t),c=Rp(c,s),h=Rp(h,s<<1),zR(zR(h,c),t))}function a1(){a1=R,$H=new dg(sVn,0),Chn=new dg("LONGEST_PATH",1),Shn=new dg("LONGEST_PATH_SOURCE",2),DH=new dg("COFFMAN_GRAHAM",3),Thn=new dg(sB,4),Phn=new dg("STRETCH_WIDTH",5),MO=new dg("MIN_WIDTH",6),Pv=new dg("BF_MODEL_ORDER",7),Iv=new dg("DF_MODEL_ORDER",8)}function gCe(n,e,t){var i,r,c,s,f;for(s=b5(n,t),f=F(Qh,b1,10,e.length,0,1),i=0,c=s.Kc();c.Ob();)r=u(c.Pb(),12),on(un(v(r,(W(),kj))))&&(f[i++]=u(v(r,Xu),10));if(i<e.length)throw T(new Ar("Expected "+e.length+" hierarchical ports, but found only "+i+"."));return f}function pCe(n,e){var t,i,r,c,s,f;if(!n.tb){for(c=(!n.rb&&(n.rb=new Hw(n,Mf,n)),n.rb),f=new ap(c.i),r=new ne(c);r.e!=r.i.gc();)i=u(ue(r),142),s=i.xe(),t=u(s==null?Vc(f.f,null,i):Nb(f.i,s,i),142),t&&(s==null?Vc(f.f,null,t):Nb(f.i,s,t));n.tb=f}return u(Dc(n.tb,e),142)}function uy(n,e){var t,i,r,c,s;if((n.i==null&&bh(n),n.i).length,!n.p){for(s=new ap((3*n.g.i/2|0)+1),r=new yp(n.g);r.e!=r.i.gc();)i=u(Tx(r),179),c=i.xe(),t=u(c==null?Vc(s.f,null,i):Nb(s.i,c,i),179),t&&(c==null?Vc(s.f,null,t):Nb(s.i,c,t));n.p=s}return u(Dc(n.p,e),179)}function cen(n,e,t,i,r){var c,s,f,h,l;for(G8e(i+IT(t,t.ie()),r),ZIn(e,l8e(t)),c=t.f,c&&cen(n,e,c,"Caused by: ",!1),f=(t.k==null&&(t.k=F(zF,J,82,0,0,1)),t.k),h=0,l=f.length;h<l;++h)s=f[h],cen(n,e,s,"Suppressed: ",!1);console.groupEnd!=null&&console.groupEnd.call(console)}function oy(n,e,t,i){var r,c,s,f,h;for(h=e.e,f=h.length,s=e.q.ug(h,t?0:f-1,t),r=h[t?0:f-1],s=s|Gqn(n,r,t,i),c=t?1:f-2;t?c<f:c>=0;c+=t?1:-1)s=s|e.c.lg(h,c,t,i&&!on(un(v(e.j,(W(),ya))))&&!on(un(v(e.j,(W(),j2))))),s=s|e.q.ug(h,c,t),s=s|Gqn(n,h[c],t,i);return fi(n.c,e),s}function OS(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(a=ELn(n.j),d=0,g=a.length;d<g;++d){if(l=a[d],t==(gr(),Vu)||t==W8)for(h=hh(l.g),r=h,c=0,s=r.length;c<s;++c)i=r[c],Mje(e,i)&&Hb(i,!0);if(t==Jc||t==W8)for(f=hh(l.e),r=f,c=0,s=r.length;c<s;++c)i=r[c],Eje(e,i)&&Hb(i,!0)}}function mCe(n){var e,t;switch(e=null,t=null,xke(n).g){case 1:e=(en(),Zn),t=Wn;break;case 2:e=(en(),ae),t=Xn;break;case 3:e=(en(),Wn),t=Zn;break;case 4:e=(en(),Xn),t=ae}bG(n,u(ho(Sp(u(ot(n.k,e),15).Oc(),w2)),113)),dG(n,u(ho(_w(u(ot(n.k,t),15).Oc(),w2)),113))}function vCe(n){var e,t,i,r,c,s;if(r=u(sn(n.j,0),12),r.e.c.length+r.g.c.length==0)n.n.a=0;else{for(s=0,i=$h(Eo(S(C(Ao,1),Rn,20,0,[new nm(r),new ip(r)])));pe(i);)t=u(fe(i),12),s+=t.i.n.a+t.n.a+t.a.a;e=u(v(n,(cn(),aw)),8),c=e?e.a:0,n.n.a=s/(r.e.c.length+r.g.c.length)-c}}function cqn(n,e){var t,i,r;for(i=new M(e.a);i.a<i.c.c.length;)t=u(E(i),225),YN(u(t.b,68),mi(Fi(u(e.b,68).c),u(e.b,68).a)),r=MUn(u(e.b,68).b,u(t.b,68).b),r>1&&(n.a=!0),Wwe(u(t.b,68),it(Fi(u(e.b,68).c),ch(mi(Fi(u(t.b,68).a),u(e.b,68).a),r))),OAn(n,e),cqn(n,t)}function uqn(n){var e,t,i,r,c,s,f;for(c=new M(n.a.a);c.a<c.c.c.length;)i=u(E(c),194),i.e=0,i.d.a.$b();for(r=new M(n.a.a);r.a<r.c.c.length;)for(i=u(E(r),194),t=i.a.a.ec().Kc();t.Ob();)for(e=u(t.Pb(),86),f=e.f.Kc();f.Ob();)s=u(f.Pb(),86),s.d!=i&&(fi(i.d,s),++s.d.e)}function kCe(n){var e,t,i,r,c,s,f,h;for(h=n.j.c.length,t=0,e=h,r=2*h,f=new M(n.j);f.a<f.c.c.length;)switch(s=u(E(f),12),s.j.g){case 2:case 4:s.p=-1;break;case 1:case 3:i=s.e.c.length,c=s.g.c.length,i>0&&c>0?s.p=e++:i>0?s.p=t++:c>0?s.p=r++:s.p=t++}Ln(),Yt(n.j,new Fgn)}function yCe(n){var e,t;t=null,e=u(sn(n.g,0),18);do{if(t=e.d.i,kt(t,(W(),Es)))return u(v(t,Es),12).i;if(t.k!=(Vn(),Xt)&&pe(new ie(ce(Qt(t).a.Kc(),new En))))e=u(fe(new ie(ce(Qt(t).a.Kc(),new En))),18);else if(t.k!=Xt)return null}while(t&&t.k!=(Vn(),Xt));return t}function jCe(n,e){var t,i,r,c,s,f,h,l,a;for(f=e.j,s=e.g,h=u(sn(f,f.c.length-1),113),a=(Nn(0,f.c.length),u(f.c[0],113)),l=Fx(n,s,h,a),c=1;c<f.c.length;c++)t=(Nn(c-1,f.c.length),u(f.c[c-1],113)),r=(Nn(c,f.c.length),u(f.c[c],113)),i=Fx(n,s,t,r),i>l&&(h=t,a=r,l=i);e.a=a,e.c=h}function ECe(n,e,t){var i,r,c,s,f,h,l;for(l=new Ul(new z7n(n)),s=S(C(RZn,1),LXn,12,0,[e,t]),f=0,h=s.length;f<h;++f)for(c=s[f],l.a.zc(c,(_n(),pa))==null,r=new Lf(c.b);tc(r.a)||tc(r.b);)i=u(tc(r.a)?E(r.a):E(r.b),18),i.c==i.d||B7(l,c==i.c?i.d:i.c);return Pe(l),new _u(l)}function qs(n){if(!n.a.d||!n.a.e)throw T(new Ar((ll(GQn),GQn.k+" must have a source and target "+(ll(eon),eon.k)+" specified.")));if(n.a.d==n.a.e)throw T(new Ar("Network simplex does not support self-loops: "+n.a+" "+n.a.d+" "+n.a.e));return KM(n.a.d.g,n.a),KM(n.a.e.b,n.a),n.a}function MCe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Constraints Postprocessor",1),s=0,c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),h=0,f=!1,i=new M(r.a);i.a<i.c.c.length;)t=u(E(i),10),t.k==(Vn(),Xt)&&(f=!0,U(t,(cn(),gO),Y(s)),U(t,aO,Y(h)),++h);f&&++s}e.Vg()}function oqn(n,e,t){var i,r,c,s,f,h;if(i=0,e.b!=0&&t.b!=0){c=ge(e,0),s=ge(t,0),f=$(B(be(c))),h=$(B(be(s))),r=!0;do{if(f>h-n.b&&f<h+n.b)return-1;f>h-n.a&&f<h+n.a&&++i,f<=h&&c.b!=c.d.c?f=$(B(be(c))):h<=f&&s.b!=s.d.c?h=$(B(be(s))):r=!1}while(r)}return i}function sqn(n,e){var t,i;return H7(n.a),hf(n.a,(yC(),BO),BO),hf(n.a,N2,N2),i=new ii,Fe(i,N2,(wS(),gq)),x(z(e,(sa(),kq)))!==x((Pk(),FO))&&Fe(i,N2,dq),on(un(z(e,Jln)))&&Fe(i,N2,pq),Fe(i,N2,bq),on(un(z(e,Yln)))&&Iu(i,N2,wq),EX(n.a,i),t=wy(n.a,e),t}function TCe(n,e,t,i,r){var c,s,f,h;for(h=(c=u(of(lr),9),new _o(c,u(xs(c,c.length),9),0)),f=new M(n.j);f.a<f.c.c.length;)s=u(E(f),12),e[s.p]&&(QLe(s,e[s.p],i),_s(h,s.j));r?(Wx(n,e,(en(),Zn),2*t,i),Wx(n,e,Wn,2*t,i)):(Wx(n,e,(en(),Xn),2*t,i),Wx(n,e,ae,2*t,i))}function CCe(n){var e,t;for(t=new ie(ce(Qt(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),e.d.i.k!=(Vn(),Sc))throw T(new _l(oB+Hk(n)+"' has its layer constraint set to LAST, but has at least one outgoing edge that does not go to a LAST_SEPARATE node. That must not happen."))}function SCe(n,e,t){var i,r,c,s,f;for(t.Ug("Longest path layering",1),n.a=e,f=n.a.a,n.b=F(ye,_e,28,f.c.length,15,1),i=0,s=new M(f);s.a<s.c.c.length;)r=u(E(s),10),r.p=i,n.b[i]=-1,++i;for(c=new M(f);c.a<c.c.c.length;)r=u(E(c),10),FHn(n,r);f.c.length=0,n.a=null,n.b=null,t.Vg()}function PCe(n,e,t,i){var r,c,s,f,h,l,a,d,g;for(h=0,a=new M(n.a);a.a<a.c.c.length;){for(l=u(E(a),10),f=0,c=new ie(ce(ji(l).a.Kc(),new En));pe(c);)r=u(fe(c),18),d=Of(r.c).b,g=Of(r.d).b,f=y.Math.max(f,y.Math.abs(g-d));h=y.Math.max(h,f)}return s=i*y.Math.min(1,e/t)*h,s}function ICe(n,e){var t,i,r,c,s;for(s=u(v(e,(lc(),Oln)),433),c=ge(e.b,0);c.b!=c.d.c;)if(r=u(be(c),39),n.b[r.g]==0){switch(s.g){case 0:MBn(n,r);break;case 1:KMe(n,r)}n.b[r.g]=2}for(i=ge(n.a,0);i.b!=i.d.c;)t=u(be(i),65),i0(t.b.d,t,!0),i0(t.c.b,t,!0);U(e,(pt(),vln),n.a)}function uen(n){var e;return e=new e6,n&256&&(e.a+="F"),n&128&&(e.a+="H"),n&512&&(e.a+="X"),n&2&&(e.a+="i"),n&8&&(e.a+="m"),n&4&&(e.a+="s"),n&32&&(e.a+="u"),n&64&&(e.a+="w"),n&16&&(e.a+="x"),n&Gs&&(e.a+=","),lz(e.a)}function OCe(n,e){var t,i,r,c,s,f;e.Ug(PVn,1),r=u(z(n,(Bf(),f9)),107),c=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),s=x7e(c),f=y.Math.max(s.a,$(B(z(n,(_h(),s9))))-(r.b+r.c)),i=y.Math.max(s.b,$(B(z(n,UO)))-(r.d+r.a)),t=i-s.b,ht(n,u9,t),ht(n,Nv,f),ht(n,o9,i+t),e.Vg()}function ru(n,e){dr();var t,i,r,c;return e?e==(at(),pse)||(e==cse||e==zd||e==rse)&&n!=ubn?new etn(n,e):(i=u(e,692),t=i.$k(),t||(Pm(Nr((Lu(),zi),e)),t=i.$k()),c=(!t.i&&(t.i=new de),t.i),r=u(Fr(wr(c.f,n)),2041),!r&&Ve(c,n,r=new etn(n,e)),r):ese}function ACe(n,e){var t,i;if(i=B7(n.b,e.b),!i)throw T(new Ar("Invalid hitboxes for scanline constraint calculation."));(Zxn(e.b,u(Ghe(n.b,e.b),60))||Zxn(e.b,u(Uhe(n.b,e.b),60)))&&fl(),n.a[e.b.f]=u(OL(n.b,e.b),60),t=u(IL(n.b,e.b),60),t&&(n.a[t.f]=e.b)}function LCe(n,e,t){var i,r,c,s,f,h,l,a,d;for(c=Xg(e,!1,!1),l=Jk(c),d=$(B(z(e,(j5(),w_)))),r=mzn(l,d+n.a),a=new bR(r),Ur(a,e),Ve(n.b,e,a),Bn(t.c,a),h=(!e.n&&(e.n=new q(Sr,e,1,7)),e.n),f=new ne(h);f.e!=f.i.gc();)s=u(ue(f),135),i=sy(n,s,!0,0,0),Bn(t.c,i);return a}function NCe(n,e){var t,i,r,c,s,f,h;for(r=new Z,t=0;t<=n.j;t++)i=new Nc(e),i.p=n.j-t,Bn(r.c,i);for(f=new M(n.p);f.a<f.c.c.length;)s=u(E(f),10),$i(s,u(sn(r,n.j-n.g[s.p]),30));for(c=new M(r);c.a<c.c.c.length;)h=u(E(c),30),h.a.c.length==0&&_6(c);e.b.c.length=0,hi(e.b,r)}function DCe(n,e){var t,i,r,c,s,f,h,l,a;for(h=u(v(n,(W(),st)),12),l=cc(S(C(Ei,1),J,8,0,[h.i.n,h.n,h.a])).a,a=n.i.n.b,t=hh(n.e),r=t,c=0,s=r.length;c<s;++c)i=r[c],Oi(i,h),ir(i.a,new V(l,a)),e&&(f=u(v(i,(cn(),Rr)),75),f||(f=new Tu,U(i,Rr,f)),Re(f,new V(l,a)))}function $Ce(n,e){var t,i,r,c,s,f,h,l,a;for(r=u(v(n,(W(),st)),12),l=cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).a,a=n.i.n.b,t=hh(n.g),s=t,f=0,h=s.length;f<h;++f)c=s[f],Zi(c,r),gg(c.a,new V(l,a)),e&&(i=u(v(c,(cn(),Rr)),75),i||(i=new Tu,U(c,Rr,i)),Re(i,new V(l,a)))}function xCe(n){var e,t,i,r,c,s,f,h,l;if(i=n.b,c=i.e,s=Ep(u(v(i,(cn(),_t)),101)),t=!!c&&u(v(c,(W(),Hc)),21).Hc((pr(),cs)),!(s||t))for(l=(f=new ol(n.e).a.vc().Kc(),new Cw(f));l.a.Ob();)h=(e=u(l.a.Pb(),44),u(e.md(),113)),h.a&&(r=h.d,ic(r,null),h.c=!0,n.a=!0)}function RCe(n,e){var t,i,r,c;for(e.Ug("Semi-Interactive Crossing Minimization Processor",1),t=!1,r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),30),c=Lk(fC(ut(ut(new Cn(null,new On(i.a,16)),new j2n),new E2n),new M2n),new T2n),t=t|c.a!=null;t&&U(n,(W(),efn),(_n(),!0)),e.Vg()}function KCe(n,e){var t,i,r,c,s,f;for(n.b=new Z,n.d=u(v(e,(W(),P3)),234),n.e=ype(n.d),c=new Mt,r=Af(S(C(DZn,1),OXn,36,0,[e])),s=0;s<r.c.length;)i=(Nn(s,r.c.length),u(r.c[s],36)),i.p=s++,t=new EGn(i,n.a,n.b),hi(r,t.b),nn(n.b,t),t.s&&(f=ge(c,0),_7(f,t));return n.c=new ni,c}function BCe(n,e){var t,i,r,c,s,f;for(s=u(u(ot(n.r,e),21),87).Kc();s.Ob();)c=u(s.Pb(),117),t=c.c?ZV(c.c):0,t>0?c.a?(f=c.b.Mf().a,t>f&&(r=(t-f)/2,c.d.b=r,c.d.c=r)):c.d.c=n.s+t:K6(n.u)&&(i=nnn(c.b),i.c<0&&(c.d.b=-i.c),i.c+i.b>c.b.Mf().a&&(c.d.c=i.c+i.b-c.b.Mf().a))}function FCe(n,e){var t,i,r,c,s;s=new Z,t=e;do c=u(ee(n.b,t),131),c.B=t.c,c.D=t.d,Bn(s.c,c),t=u(ee(n.k,t),18);while(t);return i=(Nn(0,s.c.length),u(s.c[0],131)),i.j=!0,i.A=u(i.d.a.ec().Kc().Pb(),18).c.i,r=u(sn(s,s.c.length-1),131),r.q=!0,r.C=u(r.d.a.ec().Kc().Pb(),18).d.i,s}function _Ce(n){var e,t;if(e=u(n.a,17).a,t=u(n.b,17).a,e>=0){if(e==t)return new bi(Y(-e-1),Y(-e-1));if(e==-t)return new bi(Y(-e),Y(t+1))}return y.Math.abs(e)>y.Math.abs(t)?e<0?new bi(Y(-e),Y(t)):new bi(Y(-e),Y(t+1)):new bi(Y(e+1),Y(t))}function HCe(n){var e,t;t=u(v(n,(cn(),ou)),171),e=u(v(n,(W(),Ad)),311),t==(Yo(),ja)?(U(n,ou,jj),U(n,Ad,(vl(),k2))):t==x0?(U(n,ou,jj),U(n,Ad,(vl(),E3))):e==(vl(),k2)?(U(n,ou,ja),U(n,Ad,mj)):e==E3&&(U(n,ou,x0),U(n,Ad,mj))}function AS(){AS=R,Aj=new C3n,Jie=Fe(new ii,(Vi(),Ac),(tr(),PI)),Zie=Iu(Fe(new ii,Ac,xI),zr,$I),nre=ah(ah(s6(Iu(Fe(new ii,Vs,FI),zr,BI),Fc),KI),_I),Qie=Iu(Fe(Fe(Fe(new ii,Jh,OI),Fc,LI),Fc,fv),zr,AI),Yie=Iu(Fe(Fe(new ii,Fc,fv),Fc,SI),zr,CI)}function x5(){x5=R,ire=Fe(Iu(new ii,(Vi(),zr),(tr(),Yon)),Ac,PI),ore=ah(ah(s6(Iu(Fe(new ii,Vs,FI),zr,BI),Fc),KI),_I),rre=Iu(Fe(Fe(Fe(new ii,Jh,OI),Fc,LI),Fc,fv),zr,AI),ure=Fe(Fe(new ii,Ac,xI),zr,$I),cre=Iu(Fe(Fe(new ii,Fc,fv),Fc,SI),zr,CI)}function qCe(n,e,t,i,r){var c,s;(!fr(e)&&e.c.i.c==e.d.i.c||!sxn(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])),t))&&!fr(e)&&(e.c==r?wm(e.a,0,new rr(t)):Re(e.a,new rr(t)),i&&!sf(n.a,t)&&(s=u(v(e,(cn(),Rr)),75),s||(s=new Tu,U(e,Rr,s)),c=new rr(t),xt(s,c,s.c.b,s.c),fi(n.a,c)))}function fqn(n,e){var t,i,r,c;for(c=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),t=c&n.b.length-1,r=null,i=n.b[t];i;r=i,i=i.a)if(i.d==c&&sh(i.i,e))return r?r.a=i.a:n.b[t]=i.a,Bjn(u(as(i.c),604),u(as(i.f),604)),V9(u(as(i.b),227),u(as(i.e),227)),--n.f,++n.e,!0;return!1}function UCe(n){var e,t;for(t=new ie(ce(ji(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),e.c.i.k!=(Vn(),Sc))throw T(new _l(oB+Hk(n)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function GCe(n,e,t){var i,r,c,s,f,h,l;if(r=aKn(n.Db&254),r==0)n.Eb=t;else{if(r==1)f=F(ki,Rn,1,2,5,1),c=Bx(n,e),c==0?(f[0]=t,f[1]=n.Eb):(f[0]=n.Eb,f[1]=t);else for(f=F(ki,Rn,1,r+1,5,1),s=cd(n.Eb),i=2,h=0,l=0;i<=128;i<<=1)i==e?f[l++]=t:n.Db&i&&(f[l++]=s[h++]);n.Eb=f}n.Db|=e}function hqn(n,e,t){var i,r,c,s;for(this.b=new Z,r=0,i=0,s=new M(n);s.a<s.c.c.length;)c=u(E(s),176),t&&YIe(c),nn(this.b,c),r+=c.o,i+=c.p;this.b.c.length>0&&(c=u(sn(this.b,0),176),r+=c.o,i+=c.p),r*=2,i*=2,e>1?r=wi(y.Math.ceil(r*e)):i=wi(y.Math.ceil(i/e)),this.a=new zY(r,i)}function lqn(n,e,t,i,r,c){var s,f,h,l,a,d,g,p,m,k,j,P;for(a=i,e.j&&e.o?(p=u(ee(n.f,e.A),60),k=p.d.c+p.d.b,--a):k=e.a.c+e.a.b,d=r,t.q&&t.o?(p=u(ee(n.f,t.C),60),l=p.d.c,++d):l=t.a.c,j=l-k,h=y.Math.max(2,d-a),f=j/h,m=k+f,g=a;g<d;++g)s=u(c.Xb(g),131),P=s.a.b,s.a.c=m-P/2,m+=f}function aqn(n,e){var t,i,r,c,s,f,h,l,a,d,g;r=e?new Rpn:new Kpn,c=!1;do for(c=!1,l=e?Qo(n.b):n.b,h=l.Kc();h.Ob();)for(f=u(h.Pb(),30),g=Mb(f.a),e||Qo(g),d=new M(g);d.a<d.c.c.length;)a=u(E(d),10),r.Mb(a)&&(i=a,t=u(v(a,(W(),cw)),313),s=e?t.b:t.k,c=Kqn(i,s,e,!1));while(c)}function oen(n,e,t,i,r,c){var s,f,h,l,a,d;for(l=t.c.length,c&&(n.c=F(ye,_e,28,e.length,15,1)),s=r?0:e.length-1;r?s<e.length:s>=0;s+=r?1:-1){for(f=e[s],h=i==(en(),Zn)?r?uc(f,i):Qo(uc(f,i)):r?Qo(uc(f,i)):uc(f,i),c&&(n.c[f.p]=h.gc()),d=h.Kc();d.Ob();)a=u(d.Pb(),12),n.d[a.p]=l++;hi(t,h)}}function dqn(n,e,t){var i,r,c,s,f,h,l,a;for(c=$(B(n.b.Kc().Pb())),l=$(B(Hve(e.b))),i=ch(Fi(n.a),l-t),r=ch(Fi(e.a),t-c),a=it(i,r),ch(a,1/(l-c)),this.a=a,this.b=new Z,f=!0,s=n.b.Kc(),s.Pb();s.Ob();)h=$(B(s.Pb())),f&&h-t>_B&&(this.b.Fc(t),f=!1),this.b.Fc(h);f&&this.b.Fc(t)}function zCe(n){var e,t,i,r;if(hPe(n,n.n),n.d.c.length>0){for(Zv(n.c);Hnn(n,u(E(new M(n.e.a)),125))<n.e.a.c.length;){for(e=N7e(n),r=e.e.e-e.d.e-e.a,e.e.j&&(r=-r),i=new M(n.e.a);i.a<i.c.c.length;)t=u(E(i),125),t.j&&(t.e+=r);Zv(n.c)}Zv(n.c),Pnn(n,u(E(new M(n.e.a)),125)),pGn(n)}}function XCe(n,e){qp();var t,i;if(t=WD(Gm(),e.Pg()),t){if(i=t.j,L(n,207))return k2e(u(n,27))?Su(i,(pf(),pi))||Su(i,xn):Su(i,(pf(),pi));if(L(n,326))return Su(i,(pf(),Ih));if(L(n,193))return Su(i,(pf(),Fd));if(L(n,366))return Su(i,(pf(),E1))}return!0}function VCe(n,e,t){var i,r,c,s,f,h;if(r=t,c=r.Lk(),Pl(n.e,c)){if(c.Si()){for(i=u(n.g,124),s=0;s<n.i;++s)if(f=i[s],ct(f,r)&&s!=e)throw T(new Gn(Xy))}}else for(h=ru(n.e.Dh(),c),i=u(n.g,124),s=0;s<n.i;++s)if(f=i[s],h.am(f.Lk())&&s!=e)throw T(new Gn(Yy));return u(Bg(n,e,t),76)}function bqn(n,e){if(e instanceof Object)try{if(e.__java$exception=n,navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&$doc.documentMode<9)return;var t=n;Object.defineProperties(e,{cause:{get:function(){var i=t.he();return i&&i.fe()}},suppressed:{get:function(){return t.ge()}}})}catch{}}function wqn(n,e){var t,i,r,c,s;if(i=e>>5,e&=31,i>=n.d)return n.e<0?(dh(),vQn):(dh(),C8);if(c=n.d-i,r=F(ye,_e,28,c+1,15,1),Rje(r,c,n.a,i,e),n.e<0){for(t=0;t<i&&n.a[t]==0;t++);if(t<i||e>0&&n.a[t]<<32-e){for(t=0;t<c&&r[t]==-1;t++)r[t]=0;t==c&&++c,++r[t]}}return s=new Ya(n.e,c,r),V6(s),s}function gqn(n){var e,t,i,r;return r=Pf(n),t=new D9n(r),i=new $9n(r),e=new Z,hi(e,(!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d)),hi(e,(!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e)),u(Wr(_r(ut(new Cn(null,new On(e,16)),t),i),Ww(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),S0),Yr]))),21)}function WCe(n,e){var t;switch(t=u(v(n,(cn(),bO)),283),e.Ug("Label side selection ("+t+")",1),t.g){case 0:SHn(n,(Co(),nl));break;case 1:SHn(n,(Co(),Pa));break;case 2:zUn(n,(Co(),nl));break;case 3:zUn(n,(Co(),Pa));break;case 4:Tqn(n,(Co(),nl));break;case 5:Tqn(n,(Co(),Pa))}e.Vg()}function Pl(n,e){dr();var t,i,r;return e.Jk()?!0:e.Ik()==-2?e==(n3(),F3)||e==B3||e==CU||e==SU?!0:(r=n.Dh(),At(r,e)>=0?!1:(t=Qg((Lu(),zi),r,e),t?(i=t.Ik(),(i>1||i==-1)&&vb(Nr(zi,t))!=3):!0)):!1}function JCe(n,e,t,i){var r,c,s,f,h;return f=Gr(u(N((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84)),h=Gr(u(N((!e.c&&(e.c=new Dn(he,e,5,8)),e.c),0),84)),St(f)==St(h)||Yw(h,f)?null:(s=X7(e),s==t?i:(c=u(ee(n.a,s),10),c&&(r=c.e,r)?r:null))}function QCe(n,e,t){var i,r,c,s,f;for(t.Ug("Longest path to source layering",1),n.a=e,f=n.a.a,n.b=F(ye,_e,28,f.c.length,15,1),i=0,s=new M(f);s.a<s.c.c.length;)r=u(E(s),10),r.p=i,n.b[i]=-1,++i;for(c=new M(f);c.a<c.c.c.length;)r=u(E(c),10),_Hn(n,r);f.c.length=0,n.a=null,n.b=null,t.Vg()}function sen(n,e,t){var i,r,c,s,f,h;if(i=Ihe(t,n.length),s=n[i],c=zjn(t,s.length),s[c].k==(Vn(),Zt))for(h=e.j,r=0;r<h.c.length;r++)f=(Nn(r,h.c.length),u(h.c[r],12)),(t?f.j==(en(),Zn):f.j==(en(),Wn))&&on(un(v(f,(W(),kj))))&&(Go(h,r,u(v(s[c],(W(),st)),12)),c+=t?1:-1)}function YCe(n,e){var t,i,r,c,s,f,h,l;e.Ug("Greedy Width Approximator",1),t=$(B(z(n,(Bf(),zO)))),h=u(z(n,f9),107),c=u(z(n,E1n),394),s=on(un(z(n,j1n))),f=$(B(z(n,h9))),l=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),LQ(l),r=new mPn(t,c,s),i=sPe(r,l,f,h),ht(n,(_h(),X0),i.c),e.Vg()}function pqn(n){if(n.g==null)switch(n.p){case 0:n.g=y2e(n)?(_n(),uv):(_n(),pa);break;case 1:n.g=lk(b3e(n));break;case 2:n.g=mk(ape(n));break;case 3:n.g=X0e(n);break;case 4:n.g=new G9(z0e(n));break;case 6:n.g=Tl(J0e(n));break;case 5:n.g=Y(c2e(n));break;case 7:n.g=o4(p3e(n))}return n.g}function fen(n){if(n.n==null)switch(n.p){case 0:n.n=j2e(n)?(_n(),uv):(_n(),pa);break;case 1:n.n=lk(w3e(n));break;case 2:n.n=mk(dpe(n));break;case 3:n.n=V0e(n);break;case 4:n.n=new G9(W0e(n));break;case 6:n.n=Tl(Q0e(n));break;case 5:n.n=Y(u2e(n));break;case 7:n.n=o4(g3e(n))}return n.n}function mqn(n,e,t,i){var r,c,s,f,h;if(f=(dr(),u(e,69).xk()),Pl(n.e,e)){if(e.Si()&&BS(n,e,i,L(e,102)&&(u(e,19).Bb&hr)!=0))throw T(new Gn(Xy))}else for(h=ru(n.e.Dh(),e),r=u(n.g,124),s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk()))throw T(new Gn(Yy));p5(n,wnn(n,e,t),f?u(i,76):Rh(e,i))}function vqn(n){var e,t,i,r,c,s,f;for(c=new M(n.a.a);c.a<c.c.c.length;)i=u(E(c),316),i.g=0,i.i=0,i.e.a.$b();for(r=new M(n.a.a);r.a<r.c.c.length;)for(i=u(E(r),316),t=i.a.a.ec().Kc();t.Ob();)for(e=u(t.Pb(),60),f=e.c.Kc();f.Ob();)s=u(f.Pb(),60),s.a!=i&&(fi(i.e,s),++s.a.g,++s.a.i)}function ZCe(n){var e,t,i,r,c;r=u(v(n,(cn(),xd)),21),c=u(v(n,kO),21),t=new V(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),e=new rr(t),r.Hc((go(),Q0))&&(i=u(v(n,jv),8),c.Hc((io(),Fv))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),e.a=y.Math.max(t.a,i.a),e.b=y.Math.max(t.b,i.b)),eOe(n,t,e)}function nSe(n,e){var t,i,r;e.a?(B7(n.b,e.b),n.a[e.b.i]=u(OL(n.b,e.b),86),t=u(IL(n.b,e.b),86),t&&(n.a[t.i]=e.b)):(i=u(OL(n.b,e.b),86),i&&i==n.a[e.b.i]&&i.d&&i.d!=e.b.d&&i.f.Fc(e.b),r=u(IL(n.b,e.b),86),r&&n.a[r.i]==e.b&&r.d&&r.d!=e.b.d&&e.b.f.Fc(r),EN(n.b,e.b))}function kqn(n,e){var t,i,r,c,s,f;return c=n.d,f=$(B(v(n,(cn(),m1)))),f<0&&(f=0,U(n,m1,f)),e.o.b=f,s=y.Math.floor(f/2),i=new Ic,gi(i,(en(),Wn)),ic(i,e),i.n.b=s,r=new Ic,gi(r,Zn),ic(r,e),r.n.b=s,Oi(n,i),t=new yb,Ur(t,n),U(t,Rr,null),Zi(t,r),Oi(t,c),bIe(e,n,t),sEe(n,t),t}function eSe(n){var e,t;return t=u(v(n,(W(),Hc)),21),e=new ii,t.Hc((pr(),$8))&&(To(e,zie),To(e,eln)),(t.Hc(kv)||on(un(v(n,(cn(),TH)))))&&(To(e,eln),t.Hc(v2)&&To(e,Vie)),t.Hc(cs)&&To(e,Gie),t.Hc(x8)&&To(e,Wie),t.Hc(nO)&&To(e,Xie),t.Hc(mv)&&To(e,qie),t.Hc(vv)&&To(e,Uie),e}function tSe(n,e){var t,i,r,c,s,f,h,l,a,d,g;return i=n.d,c=e.d,f=i+c,h=n.e!=e.e?-1:1,f==2?(a=er(vi(n.a[0],mr),vi(e.a[0],mr)),g=Se(a),d=Se(G1(a,32)),d==0?new gl(h,g):new Ya(h,2,S(C(ye,1),_e,28,15,[g,d]))):(t=n.a,r=e.a,s=F(ye,_e,28,f,15,1),e5e(t,i,r,c,s),l=new Ya(h,f,s),V6(l),l)}function yqn(n,e,t,i){var r,c;if(e){if(r=n.a.Ne(t.d,e.d),r==0)return i.d=dV(e,t.e),i.b=!0,e;c=r<0?0:1,e.a[c]=yqn(n,e.a[c],t,i),Iw(e.a[c])&&(Iw(e.a[1-c])?(e.b=!0,e.a[0].b=!1,e.a[1].b=!1):Iw(e.a[c].a[c])?e=jC(e,1-c):Iw(e.a[c].a[1-c])&&(e=sLn(e,1-c)))}else return t;return e}function jqn(n,e,t){var i,r,c,s;r=n.i,i=n.n,DJ(n,(wf(),bc),r.c+i.b,t),DJ(n,wc,r.c+r.b-i.c-t[2],t),s=r.b-i.b-i.c,t[0]>0&&(t[0]+=n.d,s-=t[0]),t[2]>0&&(t[2]+=n.d,s-=t[2]),c=y.Math.max(0,s),t[1]=y.Math.max(t[1],s),DJ(n,Wc,r.c+i.b+t[0]-(t[1]-s)/2,t),e==Wc&&(n.c.b=c,n.c.c=r.c+i.b+(c-s)/2)}function Eqn(){this.c=F(Ii,Cr,28,(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,15,1),this.b=F(Ii,Cr,28,S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]).length,15,1),this.a=F(Ii,Cr,28,S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]).length,15,1),Rz(this.c,Pt),Rz(this.b,li),Rz(this.a,li)}function xc(n,e,t){var i,r,c,s;if(e<=t?(r=e,c=t):(r=t,c=e),i=0,n.b==null)n.b=F(ye,_e,28,2,15,1),n.b[0]=r,n.b[1]=c,n.c=!0;else{if(i=n.b.length,n.b[i-1]+1==r){n.b[i-1]=c;return}s=F(ye,_e,28,i+2,15,1),Oc(n.b,0,s,0,i),n.b=s,n.b[i-1]>=r&&(n.c=!1,n.a=!1),n.b[i++]=r,n.b[i]=c,n.c||Gg(n)}}function iSe(n,e,t){var i,r,c,s,f,h,l;for(l=e.d,n.a=new Gc(l.c.length),n.c=new de,f=new M(l);f.a<f.c.c.length;)s=u(E(f),105),c=new kk(null),nn(n.a,c),Ve(n.c,s,c);for(n.b=new de,hEe(n,e),i=0;i<l.c.length-1;i++)for(h=u(sn(e.d,i),105),r=i+1;r<l.c.length;r++)XTe(n,h,u(sn(e.d,r),105),t)}function a0(n){var e,t,i,r,c;for(r=new Z,e=new $6((!n.a&&(n.a=new q(Ye,n,10,11)),n.a)),i=new ie(ce(Sl(n).a.Kc(),new En));pe(i);)t=u(fe(i),74),L(N((!t.b&&(t.b=new Dn(he,t,4,7)),t.b),0),193)||(c=Gr(u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),e.a._b(c)||Bn(r.c,c));return r}function rSe(n,e,t){var i,r,c;if(n.e=t,n.d=0,n.b=0,n.f=1,n.i=e,(n.e&16)==16&&(n.i=bPe(n.i)),n.j=n.i.length,Ze(n),c=xb(n),n.d!=n.j)throw T(new Ne($e((Oe(),SWn))));if(n.g){for(i=0;i<n.g.a.c.length;i++)if(r=u(mb(n.g,i),592),n.f<=r.a)throw T(new Ne($e((Oe(),PWn))));n.g.a.c.length=0}return c}function cSe(n,e){var t,i,r,c,s,f,h;for(t=li,f=(Vn(),Xt),r=new M(e.a);r.a<r.c.c.length;)i=u(E(r),10),c=i.k,c!=Xt&&(s=B(v(i,(W(),ifn))),s==null?(t=y.Math.max(t,0),i.n.b=t+XX(n.a,c,f)):i.n.b=(Jn(s),s)),h=XX(n.a,c,f),i.n.b<t+h+i.d.d&&(i.n.b=t+h+i.d.d),t=i.n.b+i.o.b+i.d.a,f=c}function Mqn(n,e,t,i,r){var c,s,f,h,l,a;if(n.d&&n.d.Gg(r),c=u(r.Xb(0),27),TBn(n,t,c,!1)||(s=u(r.Xb(r.gc()-1),27),TBn(n,i,s,!0))||unn(n,r))return!0;for(a=r.Kc();a.Ob();)for(l=u(a.Pb(),27),h=e.Kc();h.Ob();)if(f=u(h.Pb(),27),NS(n,l,f))return!0;return!1}function uSe(n,e,t){var i,r,c,s,f,h,l,a,d,g;g=e.c.length,d=(l=n.Ih(t),u(l>=0?n.Lh(l,!1,!0):Fb(n,t,!1),61));n:for(c=d.Kc();c.Ob();){for(r=u(c.Pb(),58),a=0;a<g;++a)if(s=(Nn(a,e.c.length),u(e.c[a],76)),h=s.md(),f=s.Lk(),i=r.Nh(f,!1),h==null?i!=null:!ct(h,i))continue n;return r}return null}function oSe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Comment post-processing",1),c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),i=new Z,f=new M(r.a);f.a<f.c.c.length;)s=u(E(f),10),h=u(v(s,(W(),I3)),15),t=u(v(s,M3),15),(h||t)&&(MLe(s,h,t),h&&hi(i,h),t&&hi(i,t));hi(r.a,i)}e.Vg()}function sSe(n,e,t,i){var r,c,s,f;for(r=u(h1(e,(en(),Wn)).Kc().Pb(),12),c=u(h1(e,Zn).Kc().Pb(),12),f=new M(n.j);f.a<f.c.c.length;){for(s=u(E(f),12);s.e.c.length!=0;)Oi(u(sn(s.e,0),18),r);for(;s.g.c.length!=0;)Zi(u(sn(s.g,0),18),c)}t||U(e,(W(),yf),null),i||U(e,(W(),Es),null)}function Xg(n,e,t){var i,r;if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i==0)return GQ(n);if(i=u(N((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),0),166),e&&(me((!i.a&&(i.a=new ti(xo,i,5)),i.a)),_m(i,0),qm(i,0),Fm(i,0),Hm(i,0)),t)for(r=(!n.a&&(n.a=new q(Tt,n,6,6)),n.a);r.i>1;)d0(r,r.i-1);return i}function Tqn(n,e){var t,i,r,c,s,f,h;for(t=new Mg,c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),h=!0,i=0,f=new M(r.a);f.a<f.c.c.length;)switch(s=u(E(f),10),s.k.g){case 4:++i;case 1:mJ(t,s);break;case 0:oEe(s,e);default:t.b==t.c||wUn(t,i,h,!1,e),h=!1,i=0}t.b==t.c||wUn(t,i,h,!0,e)}}function hen(n,e){var t,i,r,c,s,f;for(t=0,f=new M(e);f.a<f.c.c.length;){for(s=u(E(f),12),fY(n.b,n.d[s.p]),r=new Lf(s.b);tc(r.a)||tc(r.b);)i=u(tc(r.a)?E(r.a):E(r.b),18),c=Cz(n,s==i.c?i.d:i.c),c>n.d[s.p]&&(t+=CJ(n.b,c),J1(n.a,Y(c)));for(;!n6(n.a);)cQ(n.b,u(Pp(n.a),17).a)}return t}function fSe(n){var e,t,i,r,c,s,f,h,l;for(n.a=new mV,l=0,r=0,i=new M(n.i.b);i.a<i.c.c.length;){for(e=u(E(i),30),e.p=r,h=new M(e.a);h.a<h.c.c.length;)f=u(E(h),10),f.p=l,++l;++r}for(c=n.r==(ps(),ww),s=c?XZn:zZn,t=new M(n.i.b);t.a<t.c.c.length;)e=u(E(t),30),Yt(e.a,s),s4e(n.a,Y(e.p),e.a)}function Cqn(n,e,t){var i,r,c,s;for(c=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i,r=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));r.e!=r.i.gc();)i=u(ue(r),27),(!i.a&&(i.a=new q(Ye,i,10,11)),i.a).i==0||(c+=Cqn(n,i,!1));if(t)for(s=St(e);s;)c+=(!s.a&&(s.a=new q(Ye,s,10,11)),s.a).i,s=St(s);return c}function d0(n,e){var t,i,r,c;return n.Pj()?(i=null,r=n.Qj(),n.Tj()&&(i=n.Vj(n.$i(e),null)),t=n.Ij(4,c=Jp(n,e),null,e,r),n.Mj()&&c!=null&&(i=n.Oj(c,i)),i?(i.nj(t),i.oj()):n.Jj(t),c):(c=Jp(n,e),n.Mj()&&c!=null&&(i=n.Oj(c,null),i&&i.oj()),c)}function hSe(n){var e,t,i,r,c,s,f,h,l,a;for(l=n.a,e=new ni,h=0,i=new M(n.d);i.a<i.c.c.length;){for(t=u(E(i),226),a=0,ud(t.b,new pwn),s=ge(t.b,0);s.b!=s.d.c;)c=u(be(s),226),e.a._b(c)&&(r=t.c,f=c.c,a<f.d+f.a+l&&a+r.a+l>f.d&&(a=f.d+f.a+l));t.c.d=a,e.a.zc(t,e),h=y.Math.max(h,t.c.d+t.c.a)}return h}function pr(){pr=R,ZI=new Lw("COMMENTS",0),cs=new Lw("EXTERNAL_PORTS",1),$8=new Lw("HYPEREDGES",2),nO=new Lw("HYPERNODES",3),kv=new Lw("NON_FREE_PORTS",4),v2=new Lw("NORTH_SOUTH_PORTS",5),x8=new Lw(JXn,6),mv=new Lw("CENTER_LABELS",7),vv=new Lw("END_LABELS",8),eO=new Lw("PARTITIONS",9)}function lSe(n,e,t,i,r){return i<0?(i=Ug(n,r,S(C(fn,1),J,2,6,[sK,fK,hK,lK,c3,aK,dK,bK,wK,gK,pK,mK]),e),i<0&&(i=Ug(n,r,S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function aSe(n,e,t,i,r){return i<0?(i=Ug(n,r,S(C(fn,1),J,2,6,[sK,fK,hK,lK,c3,aK,dK,bK,wK,gK,pK,mK]),e),i<0&&(i=Ug(n,r,S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function dSe(n,e,t,i,r,c){var s,f,h,l;if(f=32,i<0){if(e[0]>=n.length||(f=Xi(n,e[0]),f!=43&&f!=45)||(++e[0],i=yS(n,e),i<0))return!1;f==45&&(i=-i)}return f==32&&e[0]-t==2&&r.b==2&&(h=new WE,l=h.q.getFullYear()-la+la-80,s=l%100,c.a=i==s,i+=(l/100|0)*100+(i<s?100:0)),c.p=i,!0}function Sqn(n,e){var t,i,r,c,s;St(n)&&(s=u(v(e,(cn(),xd)),181),x(z(n,_t))===x((Ai(),Oa))&&ht(n,_t,Qf),i=(Aw(),new Pw(St(n))),c=new TN(St(n)?new Pw(St(n)):null,n),r=HGn(i,c,!1,!0),_s(s,(go(),Q0)),t=u(v(e,jv),8),t.a=y.Math.max(r.a,t.a),t.b=y.Math.max(r.b,t.b))}function bSe(n,e,t){var i,r,c,s,f,h;for(s=u(v(n,(W(),hH)),15).Kc();s.Ob();){switch(c=u(s.Pb(),10),u(v(c,(cn(),ou)),171).g){case 2:$i(c,e);break;case 4:$i(c,t)}for(r=new ie(ce(Ml(c).a.Kc(),new En));pe(r);)i=u(fe(r),18),!(i.c&&i.d)&&(f=!i.d,h=u(v(i,cfn),12),f?Oi(i,h):Zi(i,h))}}function LS(){LS=R,F_=new Ap(eP,0,(en(),Xn),Xn),q_=new Ap(qK,1,ae,ae),B_=new Ap(HK,2,Zn,Zn),z_=new Ap(UK,3,Wn,Wn),H_=new Ap("NORTH_WEST_CORNER",4,Wn,Xn),__=new Ap("NORTH_EAST_CORNER",5,Xn,Zn),G_=new Ap("SOUTH_WEST_CORNER",6,ae,Wn),U_=new Ap("SOUTH_EAST_CORNER",7,Zn,ae)}function wSe(n){var e,t,i,r,c,s;for(c=new ni,e=new $6((!n.a&&(n.a=new q(Ye,n,10,11)),n.a)),r=new ie(ce(Sl(n).a.Kc(),new En));pe(r);)i=u(fe(r),74),L(N((!i.b&&(i.b=new Dn(he,i,4,7)),i.b),0),193)||(s=Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84)),e.a._b(s)||(t=c.a.zc(s,c),t==null));return c}function Vg(){Vg=R,uan=S(C(Ka,1),PK,28,14,[1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368e3,{l:3506176,m:794077,h:1},{l:884736,m:916411,h:20},{l:3342336,m:3912489,h:363},{l:589824,m:3034138,h:6914},{l:3407872,m:1962506,h:138294}]),y.Math.pow(2,-65)}function C4(){C4=R;var n,e;for(m3=F(l2,J,92,32,0,1),S8=F(l2,J,92,32,0,1),n=1,e=0;e<=18;e++)m3[e]=(dh(),Ec(n,0)>=0?ra(n):H6(ra(n1(n)))),S8[e]=CM(Ks(n,e),0)?ra(Ks(n,e)):H6(ra(n1(Ks(n,e)))),n=er(n,5);for(;e<S8.length;e++)m3[e]=Og(m3[e-1],m3[1]),S8[e]=Og(S8[e-1],(dh(),QF))}function Pqn(n,e){var t,i,r,c,s;if(n.c.length==0)return new bi(Y(0),Y(0));for(t=(Nn(0,n.c.length),u(n.c[0],12)).j,s=0,c=e.g,i=e.g+1;s<n.c.length-1&&t.g<c;)++s,t=(Nn(s,n.c.length),u(n.c[s],12)).j;for(r=s;r<n.c.length-1&&t.g<i;)++r,t=(Nn(s,n.c.length),u(n.c[s],12)).j;return new bi(Y(s),Y(r))}function gSe(n,e,t,i){var r,c,s,f,h,l,a;h=uc(e,t),(t==(en(),ae)||t==Wn)&&(h=Qo(h)),s=!1;do for(r=!1,c=0;c<h.gc()-1;c++)l=u(h.Xb(c),12),f=u(h.Xb(c+1),12),nje(n,l,f,i)&&(s=!0,FD(n.a,u(h.Xb(c),12),u(h.Xb(c+1),12)),a=u(h.Xb(c+1),12),h.hd(c+1,u(h.Xb(c),12)),h.hd(c,a),r=!0);while(r);return s}function pSe(n,e,t){var i,r,c,s;for(t.Ug(aVn,1),r=u(Wr(ut(new Cn(null,new On(e.b,16)),new hmn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),eHn(n,r,0),s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),39),i=ee(n.a,Y(c.g))!=null?u(ee(n.a,Y(c.g)),17).a:0,U(c,(lc(),Ph),Y(i));t.Vg()}function NS(n,e,t){var i,r,c,s,f,h,l,a;return f=e.i-n.g/2,h=t.i-n.g/2,l=e.j-n.g/2,a=t.j-n.g/2,c=e.g+n.g,s=t.g+n.g,i=e.f+n.g,r=t.f+n.g,f<h+s&&h<f&&l<a+r&&a<l||h<f+c&&f<h&&a<l+i&&l<a||f<h+s&&h<f&&l<a&&a<l+i?!0:h<f+c&&f<h&&l<a+r&&a<l}function mSe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=e.c.length,s=(Nn(t,e.c.length),u(e.c[t],292)),f=s.a.o.a,d=s.c,g=0,l=s.c;l<=s.f;l++){if(f<=n.a[l])return l;for(a=n.a[l],h=null,r=t+1;r<c;r++)i=(Nn(r,e.c.length),u(e.c[r],292)),i.c<=l&&i.f>=l&&(h=i);h&&(a=y.Math.max(a,h.a.o.a)),a>g&&(d=l,g=a)}return d}function vSe(n){var e,t,i,r,c,s,f;for(c=new Ul(u(Pe(new vwn),50)),f=li,t=new M(n.d);t.a<t.c.c.length;){for(e=u(E(t),226),f=e.c.c;c.a.gc()!=0&&(s=u(c.a.Tc(),226),s.c.c+s.c.b<f);)c.a.Bc(s)!=null;for(r=c.a.ec().Kc();r.Ob();)i=u(r.Pb(),226),Re(i.b,e),Re(e.b,i);c.a.zc(e,(_n(),pa))==null}}function Iqn(n,e,t){var i,r,c,s,f;if(!Nm(e)){for(f=t.eh((L(e,16)?u(e,16).gc():wl(e.Kc()))/n.a|0),f.Ug(dVn,1),s=new amn,c=null,r=e.Kc();r.Ob();)i=u(r.Pb(),39),s=Eo(S(C(Ao,1),Rn,20,0,[s,new sl(i)])),c&&(U(c,(pt(),dre),i),U(i,cq,c),n$(i)==n$(c)&&(U(c,uq,i),U(i,$O,c))),c=i;f.Vg(),Iqn(n,s,t)}}function kSe(n,e){var t,i,r;if(e==null){for(i=(!n.a&&(n.a=new q(Kl,n,9,5)),new ne(n.a));i.e!=i.i.gc();)if(t=u(ue(i),694),r=t.c,(r??t.zb)==null)return t}else for(i=(!n.a&&(n.a=new q(Kl,n,9,5)),new ne(n.a));i.e!=i.i.gc();)if(t=u(ue(i),694),Sn(e,(r=t.c,r??t.zb)))return t;return null}function kR(n,e){var t;switch(t=null,e.g){case 1:n.e.pf((He(),tU))&&(t=u(n.e.of(tU),256));break;case 3:n.e.pf((He(),iU))&&(t=u(n.e.of(iU),256));break;case 2:n.e.pf((He(),eU))&&(t=u(n.e.of(eU),256));break;case 4:n.e.pf((He(),rU))&&(t=u(n.e.of(rU),256))}return!t&&(t=u(n.e.of((He(),$an)),256)),t}function Oqn(n,e,t){var i,r,c,s,f,h;for(r=t,c=0,f=new M(e);f.a<f.c.c.length;)s=u(E(f),27),ht(s,(sa(),_O),Y(r++)),h=a0(s),i=y.Math.atan2(s.j+s.f/2,s.i+s.g/2),i+=i<0?Md:0,i<.7853981633974483||i>jVn?Yt(h,n.b):i<=jVn&&i>EVn?Yt(h,n.d):i<=EVn&&i>MVn?Yt(h,n.c):i<=MVn&&Yt(h,n.a),c=Oqn(n,h,c);return r}function Aqn(n,e,t,i){var r,c,s,f,h,l;for(r=(i.c+i.a)/2,vo(e.j),Re(e.j,r),vo(t.e),Re(t.e,r),l=new Yjn,f=new M(n.f);f.a<f.c.c.length;)c=u(E(f),132),h=c.a,Xx(l,e,h),Xx(l,t,h);for(s=new M(n.k);s.a<s.c.c.length;)c=u(E(s),132),h=c.b,Xx(l,e,h),Xx(l,t,h);return l.b+=2,l.a+=KOn(e,n.q),l.a+=KOn(n.q,t),l}function ySe(n,e,t){var i;t.Ug("Processor arrange node",1),on(un(v(e,(lc(),Mln)))),i=u(ho(t4(ut(new Cn(null,new On(e.b,16)),new Amn))),39),n.a=u(v(e,Nln),353),n.a==(a5(),hq)||n.a==KO?qGn(n,new Fu(S(C(DO,1),AP,39,0,[i])),t.eh(1)):n.a==fq&&pzn(n,new Fu(S(C(DO,1),AP,39,0,[i])),t.eh(1)),t.Vg()}function Bf(){Bf=R,zO=new Di((He(),x2),1.3),$ce=new Di(V0,(_n(),!1)),v1n=new ob(15),f9=new Di(M1,v1n),h9=new Di(qd,15),Ace=Uj,Dce=Hd,xce=_2,Rce=Sa,Nce=F2,g1n=Vj,Kce=W0,E1n=(Een(),Pce),j1n=Sce,Lq=Oce,M1n=Ice,m1n=Mce,Aq=Ece,p1n=jce,y1n=Cce,w1n=Xj,Lce=nU,Kj=kce,b1n=vce,Bj=yce,k1n=Tce}function Lqn(n){var e,t,i,r,c,s,f;for(t=n.i,e=n.n,f=t.d,n.f==(bu(),va)?f+=(t.a-n.e.b)/2:n.f==Xs&&(f+=t.a-n.e.b),r=new M(n.d);r.a<r.c.c.length;){switch(i=u(E(r),187),s=i.Mf(),c=new Ni,c.b=f,f+=s.b+n.a,n.b.g){case 0:c.a=t.c+e.b;break;case 1:c.a=t.c+e.b+(t.b-s.a)/2;break;case 2:c.a=t.c+t.b-e.c-s.a}i.Of(c)}}function Nqn(n){var e,t,i,r,c,s,f;for(t=n.i,e=n.n,f=t.c,n.b==(Uu(),ma)?f+=(t.b-n.e.a)/2:n.b==zs&&(f+=t.b-n.e.a),r=new M(n.d);r.a<r.c.c.length;){switch(i=u(E(r),187),s=i.Mf(),c=new Ni,c.a=f,f+=s.a+n.a,n.f.g){case 0:c.b=t.d+e.d;break;case 1:c.b=t.d+e.d+(t.a-s.b)/2;break;case 2:c.b=t.d+t.a-e.a-s.b}i.Of(c)}}function jSe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;a=t.a.c,s=t.a.c+t.a.b,c=u(ee(t.c,e),467),p=c.f,m=c.a,h=new V(a,p),d=new V(s,m),r=a,t.p||(r+=n.c),r+=t.F+t.v*n.b,l=new V(r,p),g=new V(r,m),t5(e.a,S(C(Ei,1),J,8,0,[h,l])),f=t.d.a.gc()>1,f&&(i=new V(r,t.b),Re(e.a,i)),t5(e.a,S(C(Ei,1),J,8,0,[g,d]))}function len(n,e,t){var i,r;for(e<n.d.b.c.length?(n.b=u(sn(n.d.b,e),30),n.a=u(sn(n.d.b,e-1),30),n.c=e):(n.a=new Nc(n.d),n.a.p=e-1,nn(n.d.b,n.a),n.b=new Nc(n.d),n.b.p=e,nn(n.d.b,n.b),n.c=e),$i(t,n.b),r=new ie(ce(ji(t).a.Kc(),new En));pe(r);)i=u(fe(r),18),!i.c.i.c&&i.c.i.k==(Vn(),Sc)&&$i(i.c.i,n.a)}function Dqn(n){ib(n,new gd(nb(Qd(Zd(Yd(new Fa,KP),"ELK Randomizer"),'Distributes the nodes randomly on the plane, leading to very obfuscating layouts. Can be useful to demonstrate the power of "real" layout algorithms.'),new X4n))),Q(n,KP,Xb,bdn),Q(n,KP,y0,15),Q(n,KP,uP,Y(0)),Q(n,KP,l3,U4)}function aen(){aen=R;var n,e,t,i,r,c;for(R9=F(Ru,s2,28,255,15,1),PA=F(fs,gh,28,16,15,1),e=0;e<255;e++)R9[e]=-1;for(t=57;t>=48;t--)R9[t]=t-48<<24>>24;for(i=70;i>=65;i--)R9[i]=i-65+10<<24>>24;for(r=102;r>=97;r--)R9[r]=r-97+10<<24>>24;for(c=0;c<10;c++)PA[c]=48+c&ui;for(n=10;n<=15;n++)PA[n]=65+n-10&ui}function ESe(n,e){e.Ug("Process graph bounds",1),U(n,(pt(),iq),a7(A$(Uw(new Cn(null,new On(n.b,16)),new imn)))),U(n,rq,a7(A$(Uw(new Cn(null,new On(n.b,16)),new rmn)))),U(n,pln,a7(O$(Uw(new Cn(null,new On(n.b,16)),new cmn)))),U(n,mln,a7(O$(Uw(new Cn(null,new On(n.b,16)),new umn)))),e.Vg()}function MSe(n){var e,t,i,r,c;r=u(v(n,(cn(),xd)),21),c=u(v(n,kO),21),t=new V(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),e=new rr(t),r.Hc((go(),Q0))&&(i=u(v(n,jv),8),c.Hc((io(),Fv))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),e.a=y.Math.max(t.a,i.a),e.b=y.Math.max(t.b,i.b)),on(un(v(n,SH)))||nOe(n,t,e)}function TSe(n,e){var t,i,r,c;for(c=uc(e,(en(),ae)).Kc();c.Ob();)i=u(c.Pb(),12),t=u(v(i,(W(),Xu)),10),t&&qs(Ns(Ls(Ds(As(new hs,0),.1),n.i[e.p].d),n.i[t.p].a));for(r=uc(e,Xn).Kc();r.Ob();)i=u(r.Pb(),12),t=u(v(i,(W(),Xu)),10),t&&qs(Ns(Ls(Ds(As(new hs,0),.1),n.i[t.p].d),n.i[e.p].a))}function yR(n){var e,t,i,r,c,s;if(!n.c){if(s=new vvn,e=N9,c=e.a.zc(n,e),c==null){for(i=new ne(Pc(n));i.e!=i.i.gc();)t=u(ue(i),89),r=KS(t),L(r,90)&&Bt(s,yR(u(r,29))),ve(s,t);e.a.Bc(n)!=null,e.a.gc()==0}k8e(s),e0(s),n.c=new pg((u(N(H((z1(),Hn).o),15),19),s.i),s.g),Zu(n).b&=-33}return n.c}function den(n){var e;if(n.c!=10)throw T(new Ne($e((Oe(),qP))));switch(e=n.a,e){case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw T(new Ne($e((Oe(),is))))}return e}function $qn(n){var e,t,i,r,c;if(n.l==0&&n.m==0&&n.h==0)return"0";if(n.h==Ty&&n.m==0&&n.l==0)return"-9223372036854775808";if(n.h>>19)return"-"+$qn(e4(n));for(t=n,i="";!(t.l==0&&t.m==0&&t.h==0);){if(r=QD(QS),t=Xen(t,r,!0),e=""+rEn(ga),!(t.l==0&&t.m==0&&t.h==0))for(c=9-e.length;c>0;c--)e="0"+e;i=e+i}return i}function CSe(n){var e,t,i,r,c,s,f;for(e=!1,t=0,r=new M(n.d.b);r.a<r.c.c.length;)for(i=u(E(r),30),i.p=t++,s=new M(i.a);s.a<s.c.c.length;)c=u(E(s),10),!e&&!Nm(Ml(c))&&(e=!0);f=yt((ci(),Jf),S(C(k9,1),G,88,0,[Kr,Xr])),e||(_s(f,us),_s(f,Wf)),n.a=new p$n(f),Hu(n.f),Hu(n.b),Hu(n.e),Hu(n.g)}function SSe(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var n="__proto__",e=Object.create(null);if(e[n]!==void 0)return!1;var t=Object.getOwnPropertyNames(e);return!(t.length!=0||(e[n]=42,e[n]!==42)||Object.getOwnPropertyNames(e).length==0)}function PSe(n,e,t){var i,r,c,s,f,h,l,a,d;for(i=t.c,r=t.d,f=Of(e.c),h=Of(e.d),i==e.c?(f=Ynn(n,f,r),h=_Fn(e.d)):(f=_Fn(e.c),h=Ynn(n,h,r)),l=new UE(e.a),xt(l,f,l.a,l.a.a),xt(l,h,l.c.b,l.c),s=e.c==i,d=new Fyn,c=0;c<l.b-1;++c)a=new bi(u(Zo(l,c),8),u(Zo(l,c+1),8)),s&&c==0||!s&&c==l.b-2?d.b=a:nn(d.a,a);return d}function ISe(n,e){var t,i,r,c;if(c=n.j.g-e.j.g,c!=0)return c;if(t=u(v(n,(cn(),v1)),17),i=u(v(e,v1),17),t&&i&&(r=t.a-i.a,r!=0))return r;switch(n.j.g){case 1:return bt(n.n.a,e.n.a);case 2:return bt(n.n.b,e.n.b);case 3:return bt(e.n.a,n.n.a);case 4:return bt(e.n.b,n.n.b);default:throw T(new Ar(nin))}}function ben(n,e,t,i){var r,c,s,f,h;if(wl((N7(),new ie(ce(Ml(e).a.Kc(),new En))))>=n.a||!JZ(e,t))return-1;if(Nm(u(i.Kb(e),20)))return 1;for(r=0,s=u(i.Kb(e),20).Kc();s.Ob();)if(c=u(s.Pb(),18),h=c.c.i==e?c.d.i:c.c.i,f=ben(n,h,t,i),f==-1||(r=y.Math.max(r,f),r>n.c-1))return-1;return r+1}function xqn(n,e){var t,i,r,c,s,f;if(x(e)===x(n))return!0;if(!L(e,15)||(i=u(e,15),f=n.gc(),i.gc()!=f))return!1;if(s=i.Kc(),n.Yi()){for(t=0;t<f;++t)if(r=n.Vi(t),c=s.Pb(),r==null?c!=null:!ct(r,c))return!1}else for(t=0;t<f;++t)if(r=n.Vi(t),c=s.Pb(),x(r)!==x(c))return!1;return!0}function Rqn(n,e){var t,i,r,c,s,f;if(n.f>0){if(n._j(),e!=null){for(c=0;c<n.d.length;++c)if(t=n.d[c],t){for(i=u(t.g,379),f=t.i,s=0;s<f;++s)if(r=i[s],ct(e,r.md()))return!0}}else for(c=0;c<n.d.length;++c)if(t=n.d[c],t){for(i=u(t.g,379),f=t.i,s=0;s<f;++s)if(r=i[s],x(e)===x(r.md()))return!0}}return!1}function OSe(n,e){var t,i,r;return t=e.qi(n.a),t&&(r=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),"affiliation")),r!=null)?(i=xM(r,wu(35)),i==-1?rx(n,R6(n,jo(e.qk())),r):i==0?rx(n,null,(zn(1,r.length+1),r.substr(1))):rx(n,(Ri(0,i,r.length),r.substr(0,i)),(zn(i+1,r.length+1),r.substr(i+1)))):null}function ASe(n,e,t){var i,r,c,s;t.Ug("Orthogonally routing hierarchical port edges",1),n.a=0,i=COe(e),AAe(e,i),wAe(n,e,i),ALe(e),r=u(v(e,(cn(),_t)),101),c=e.b,BGn((Nn(0,c.c.length),u(c.c[0],30)),r,e),BGn(u(sn(c,c.c.length-1),30),r,e),s=e.b,WUn((Nn(0,s.c.length),u(s.c[0],30))),WUn(u(sn(s,s.c.length-1),30)),t.Vg()}function wen(n){switch(n){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n-48<<24>>24;case 97:case 98:case 99:case 100:case 101:case 102:return n-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return n-65+10<<24>>24;default:throw T(new th("Invalid hexadecimal"))}}function DS(){DS=R,Zun=new ag("SPIRAL",0),Wun=new ag("LINE_BY_LINE",1),Jun=new ag("MANHATTAN",2),Vun=new ag("JITTER",3),s_=new ag("QUADRANTS_LINE_BY_LINE",4),Yun=new ag("QUADRANTS_MANHATTAN",5),Qun=new ag("QUADRANTS_JITTER",6),Xun=new ag("COMBINE_LINE_BY_LINE_MANHATTAN",7),zun=new ag("COMBINE_JITTER_MANHATTAN",8)}function Kqn(n,e,t,i){var r,c,s,f,h,l;for(h=zx(n,t),l=zx(e,t),r=!1;h&&l&&(i||E7e(h,l,t));)s=zx(h,t),f=zx(l,t),sk(e),sk(n),c=h.c,XR(h,!1),XR(l,!1),t?(u0(e,l.p,c),e.p=l.p,u0(n,h.p+1,c),n.p=h.p):(u0(n,h.p,c),n.p=h.p,u0(e,l.p+1,c),e.p=l.p),$i(h,null),$i(l,null),h=s,l=f,r=!0;return r}function Bqn(n){switch(n.g){case 0:return new Q5n;case 1:return new W5n;case 3:return new aMn;case 4:return new zpn;case 5:return new FSn;case 6:return new J5n;case 2:return new V5n;case 7:return new H5n;case 8:return new U5n;default:throw T(new Gn("No implementation is available for the layerer "+(n.f!=null?n.f:""+n.g)))}}function LSe(n,e,t,i){var r,c,s,f,h;for(r=!1,c=!1,f=new M(i.j);f.a<f.c.c.length;)s=u(E(f),12),x(v(s,(W(),st)))===x(t)&&(s.g.c.length==0?s.e.c.length==0||(r=!0):c=!0);return h=0,r&&r^c?h=t.j==(en(),Xn)?-n.e[i.c.p][i.p]:e-n.e[i.c.p][i.p]:c&&r^c?h=n.e[i.c.p][i.p]+1:r&&c&&(h=t.j==(en(),Xn)?0:e/2),h}function jR(n,e,t,i,r,c,s,f){var h,l,a;for(h=0,e!=null&&(h^=t1(e.toLowerCase())),t!=null&&(h^=t1(t)),i!=null&&(h^=t1(i)),s!=null&&(h^=t1(s)),f!=null&&(h^=t1(f)),l=0,a=c.length;l<a;l++)h^=t1(c[l]);n?h|=256:h&=-257,r?h|=16:h&=-17,this.f=h,this.i=e==null?null:(Jn(e),e),this.a=t,this.d=i,this.j=c,this.g=s,this.e=f}function gen(n,e,t){var i,r;switch(r=null,e.g){case 1:r=(Au(),$on);break;case 2:r=(Au(),Ron)}switch(i=null,t.g){case 1:i=(Au(),xon);break;case 2:i=(Au(),Don);break;case 3:i=(Au(),Kon);break;case 4:i=(Au(),Bon)}return r&&i?Mp(n.j,new C8n(new Fu(S(C(cDe,1),Rn,178,0,[u(Pe(r),178),u(Pe(i),178)])))):(Ln(),Ln(),sr)}function NSe(n){var e,t,i;switch(e=u(v(n,(cn(),jv)),8),U(n,jv,new V(e.b,e.a)),u(v(n,Ch),255).g){case 1:U(n,Ch,(Bh(),eA));break;case 2:U(n,Ch,(Bh(),ZO));break;case 3:U(n,Ch,(Bh(),Hj));break;case 4:U(n,Ch,(Bh(),qj))}(n.q?n.q:(Ln(),Ln(),Wh))._b(H0)&&(t=u(v(n,H0),8),i=t.a,t.a=t.b,t.b=i)}function Fqn(n,e,t,i,r,c){if(this.b=t,this.d=r,n>=e.length)throw T(new Or("Greedy SwitchDecider: Free layer not in graph."));this.c=e[n],this.e=new L7(i),C$(this.e,this.c,(en(),Wn)),this.i=new L7(i),C$(this.i,this.c,Zn),this.f=new iIn(this.c),this.a=!c&&r.i&&!r.s&&this.c[0].k==(Vn(),Zt),this.a&&zje(this,n,e.length)}function _qn(n,e){var t,i,r,c,s,f;c=!n.B.Hc((io(),rE)),s=n.B.Hc(aU),n.a=new CKn(s,c,n.c),n.n&&XW(n.a.n,n.n),mL(n.g,(wf(),Wc),n.a),e||(i=new y5(1,c,n.c),i.n.a=n.k,Ip(n.p,(en(),Xn),i),r=new y5(1,c,n.c),r.n.d=n.k,Ip(n.p,ae,r),f=new y5(0,c,n.c),f.n.c=n.k,Ip(n.p,Wn,f),t=new y5(0,c,n.c),t.n.b=n.k,Ip(n.p,Zn,t))}function DSe(n){var e,t,i;switch(e=u(v(n.d,(cn(),$l)),223),e.g){case 2:t=jNe(n);break;case 3:t=(i=new Z,Ut(ut(_r(rc(rc(new Cn(null,new On(n.d.b,16)),new tpn),new ipn),new rpn),new q2n),new j7n(i)),i);break;default:throw T(new Ar("Compaction not supported for "+e+" edges."))}UOe(n,t),qi(new qa(n.g),new k7n(n))}function $Se(n,e){var t,i,r,c,s,f,h;if(e.Ug("Process directions",1),t=u(v(n,(lc(),pw)),88),t!=(ci(),Wf))for(r=ge(n.b,0);r.b!=r.d.c;){switch(i=u(be(r),39),f=u(v(i,(pt(),Dj)),17).a,h=u(v(i,$j),17).a,t.g){case 4:h*=-1;break;case 1:c=f,f=h,h=c;break;case 2:s=f,f=-h,h=s}U(i,Dj,Y(f)),U(i,$j,Y(h))}e.Vg()}function xSe(n,e){var t;return t=new xA,e&&Ur(t,u(ee(n.a,uE),96)),L(e,422)&&Ur(t,u(ee(n.a,oE),96)),L(e,366)?(Ur(t,u(ee(n.a,Sr),96)),t):(L(e,84)&&Ur(t,u(ee(n.a,he),96)),L(e,207)?(Ur(t,u(ee(n.a,Ye),96)),t):L(e,193)?(Ur(t,u(ee(n.a,Qu),96)),t):(L(e,326)&&Ur(t,u(ee(n.a,Vt),96)),t))}function RSe(n){var e,t,i,r,c,s,f,h;for(h=new kNn,f=new M(n.a);f.a<f.c.c.length;)if(s=u(E(f),10),s.k!=(Vn(),Zt)){for(BMe(h,s,new Ni),c=new ie(ce(Qt(s).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),!(r.c.i.k==Zt||r.d.i.k==Zt))for(i=ge(r.a,0);i.b!=i.d.c;)t=u(be(i),8),e=t,P5(h,new am(e.a,e.b))}return h}function ER(){ER=R,J1n=new lt(YB),W1n=(u6(),_j),V1n=new Tn(eF,W1n),X1n=(Mk(),YO),sue=new Tn(ccn,X1n),z1n=(Wk(),Bq),oue=new Tn(ucn,z1n),rue=new Tn(ZB,null),G1n=(tk(),JO),uue=new Tn(nF,G1n),U1n=(nM(),xq),nue=new Tn(ocn,U1n),eue=new Tn(scn,(_n(),!1)),tue=new Tn(fcn,Y(64)),iue=new Tn(hcn,!0),cue=Kq}function Hqn(n,e){var t,i,r,c,s,f,h,l,a,d;for(n.p=1,r=n.c,d=new rh,a=$b(n,(gr(),Jc)).Kc();a.Ob();)for(l=u(a.Pb(),12),i=new M(l.g);i.a<i.c.c.length;)t=u(E(i),18),h=t.d.i,n!=h&&(c=h.c,c.p<=r.p&&(s=r.p+1,s==e.b.c.length?(f=new Nc(e),f.p=s,nn(e.b,f),$i(h,f)):(f=u(sn(e.b,s),30),$i(h,f)),d.a.zc(h,d)));return d}function KSe(n,e){var t,i;if(t=u(v(n,(pt(),nq)),15),!t||t.gc()<1)return null;if(t.gc()==1)return u(t.Xb(0),39);switch(i=null,e.g){case 2:i=u(ho(Sp(t.Oc(),new nmn)),39);break;case 1:i=u(ho(_w(t.Oc(),new J3n)),39);break;case 4:i=u(ho(Sp(t.Oc(),new Q3n)),39);break;case 3:i=u(ho(_w(t.Oc(),new Y3n)),39)}return i}function qqn(n){var e,t,i,r,c,s;if(n.a==null)if(n.a=F(so,Xh,28,n.c.b.c.length,16,1),n.a[0]=!1,kt(n.c,(cn(),NH)))for(i=u(v(n.c,NH),15),t=i.Kc();t.Ob();)e=u(t.Pb(),17).a,e>0&&e<n.a.length&&(n.a[e]=!1);else for(s=new M(n.c.b),s.a<s.c.c.length&&E(s),r=1;s.a<s.c.c.length;)c=u(E(s),30),n.a[r++]=kTe(c)}function _h(){_h=R,u9=new lt("additionalHeight"),o9=new lt("drawingHeight"),Nv=new lt("drawingWidth"),UO=new lt("minHeight"),s9=new lt("minWidth"),GO=new lt("rows"),X0=new lt("targetWidth"),Iq=new Lt("minRowIncrease",0),pce=new Lt("maxRowIncrease",0),Pq=new Lt("minRowDecrease",0),gce=new Lt("maxRowDecrease",0)}function Uqn(n,e){var t,i,r,c;switch(r=n.b,e){case 1:{n.b|=1,n.b|=4,n.b|=8;break}case 2:{n.b|=2,n.b|=4,n.b|=8;break}case 4:{n.b|=1,n.b|=2,n.b|=4,n.b|=8;break}case 3:{n.b|=16,n.b|=8;break}case 0:{n.b|=32,n.b|=16,n.b|=8,n.b|=1,n.b|=2,n.b|=4;break}}if(n.b!=r&&n.c)for(i=new ne(n.c);i.e!=i.i.gc();)c=u(ue(i),481),t=Zu(c),h0(t,e)}function Gqn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;for(r=!1,s=e,f=0,h=s.length;f<h;++f)c=s[f],on((_n(),!!c.e))&&!u(sn(n.b,c.e.p),219).s&&(r=r|(l=c.e,a=u(sn(n.b,l.p),219),d=a.e,g=zjn(t,d.length),p=d[g][0],p.k==(Vn(),Zt)?d[g]=gCe(c,d[g],t?(en(),Wn):(en(),Zn)):a.c.mg(d,t),m=oy(n,a,t,i),sen(a.e,a.o,t),m));return r}function zqn(n,e){var t,i,r,c,s;for(c=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i,r=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));r.e!=r.i.gc();)i=u(ue(r),27),x(z(i,(He(),B2)))!==x((jl(),j9))&&(s=u(z(e,q2),143),t=u(z(i,q2),143),(s==t||s&&PJ(s,t))&&(!i.a&&(i.a=new q(Ye,i,10,11)),i.a).i!=0&&(c+=zqn(n,i)));return c}function BSe(n){var e,t,i,r,c,s,f;for(i=0,f=0,s=new M(n.d);s.a<s.c.c.length;)c=u(E(s),105),r=u(Wr(ut(new Cn(null,new On(c.j,16)),new UU),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),t=null,i<=f?(t=(en(),Xn),i+=r.gc()):f<i&&(t=(en(),ae),f+=r.gc()),e=t,Ut(_r(r.Oc(),new Epn),new T7n(e))}function FSe(n){var e,t,i,r,c;for(c=new Gc(n.a.c.length),r=new M(n.a);r.a<r.c.c.length;){switch(i=u(E(r),10),t=u(v(i,(cn(),ou)),171),e=null,t.g){case 1:case 2:e=(hd(),m2);break;case 3:case 4:e=(hd(),pv)}e?(U(i,(W(),rO),(hd(),m2)),e==pv?OS(i,t,(gr(),Vu)):e==m2&&OS(i,t,(gr(),Jc))):Bn(c.c,i)}return c}function _Se(n){var e,t,i,r,c,s,f,h;for(n.b=new rHn(new Fu((en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]))),new Fu((Ob(),S(C(K_,1),G,372,0,[rw,ka,iw])))),s=S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]),f=0,h=s.length;f<h;++f)for(c=s[f],t=S(C(K_,1),G,372,0,[rw,ka,iw]),i=0,r=t.length;i<r;++i)e=t[i],Nke(n.b,c,e,new Z)}function Xqn(n,e){var t,i,r,c,s,f,h,l,a,d;if(s=u(u(ot(n.r,e),21),87),f=n.u.Hc((zu(),Aa)),t=n.u.Hc(C9),i=n.u.Hc(T9),l=n.u.Hc(R3),d=n.B.Hc((io(),lA)),a=!t&&!i&&(l||s.gc()==2),BCe(n,e),r=null,h=null,f){for(c=s.Kc(),r=u(c.Pb(),117),h=r;c.Ob();)h=u(c.Pb(),117);r.d.b=0,h.d.c=0,a&&!r.a&&(r.d.c=0)}d&&(Lye(s),f&&(r.d.b=0,h.d.c=0))}function Vqn(n,e){var t,i,r,c,s,f,h,l,a,d;if(s=u(u(ot(n.r,e),21),87),f=n.u.Hc((zu(),Aa)),t=n.u.Hc(C9),i=n.u.Hc(T9),h=n.u.Hc(R3),d=n.B.Hc((io(),lA)),l=!t&&!i&&(h||s.gc()==2),oIe(n,e),a=null,r=null,f){for(c=s.Kc(),a=u(c.Pb(),117),r=a;c.Ob();)r=u(c.Pb(),117);a.d.d=0,r.d.a=0,l&&!a.a&&(a.d.a=0)}d&&(Nye(s),f&&(a.d.d=0,r.d.a=0))}function Wqn(n,e,t){var i,r,c,s,f,h,l,a;if(r=e.k,e.p>=0)return!1;if(e.p=t.b,nn(t.e,e),r==(Vn(),Ti)||r==_c){for(s=new M(e.j);s.a<s.c.c.length;)for(c=u(E(s),12),a=(i=new M(new ip(c).a.g),new LG(i));tc(a.a);)if(l=u(E(a.a),18).d,f=l.i,h=f.k,e.c!=f.c&&(h==Ti||h==_c)&&Wqn(n,f,t))return!0}return!0}function $S(n){var e;return n.Db&64?Rnn(n):(e=new ls(Rnn(n)),e.a+=" (changeable: ",ql(e,(n.Bb&Gs)!=0),e.a+=", volatile: ",ql(e,(n.Bb&C0)!=0),e.a+=", transient: ",ql(e,(n.Bb&v0)!=0),e.a+=", defaultValueLiteral: ",Er(e,n.j),e.a+=", unsettable: ",ql(e,(n.Bb&$u)!=0),e.a+=", derived: ",ql(e,(n.Bb&wh)!=0),e.a+=")",e.a)}function HSe(n,e){var t,i,r,c,s;return r=e.qi(n.a),r&&(i=(!r.b&&(r.b=new lo((An(),ar),pc,r)),r.b),t=Ae(gf(i,Ji)),t!=null&&(c=t.lastIndexOf("#"),s=c==-1?eV(n,e.jk(),t):c==0?uk(n,null,(zn(1,t.length+1),t.substr(1))):uk(n,(Ri(0,c,t.length),t.substr(0,c)),(zn(c+1,t.length+1),t.substr(c+1))),L(s,156)))?u(s,156):null}function qSe(n,e){var t,i,r,c,s;return i=e.qi(n.a),i&&(t=(!i.b&&(i.b=new lo((An(),ar),pc,i)),i.b),c=Ae(gf(t,IF)),c!=null&&(r=c.lastIndexOf("#"),s=r==-1?eV(n,e.jk(),c):r==0?uk(n,null,(zn(1,c.length+1),c.substr(1))):uk(n,(Ri(0,r,c.length),c.substr(0,r)),(zn(r+1,c.length+1),c.substr(r+1))),L(s,156)))?u(s,156):null}function USe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(r=FTe(n.d),s=u(v(n.b,(j5(),fon)),107),f=s.b+s.c,h=s.d+s.a,a=r.d.a*n.e+f,l=r.b.a*n.f+h,Xse(n.b,new V(a,l)),g=new M(n.g);g.a<g.c.c.length;)d=u(E(g),568),e=d.g-r.a.a,t=d.i-r.c.a,i=it(iae(new V(e,t),d.a,d.b),ch(A6(Fi(CX(d.e)),d.d*d.a,d.c*d.b),-.5)),c=SX(d.e),The(d.e,mi(i,c))}function GSe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(e.Ug("Restoring reversed edges",1),h=new M(n.b);h.a<h.c.c.length;)for(f=u(E(h),30),a=new M(f.a);a.a<a.c.c.length;)for(l=u(E(a),10),g=new M(l.j);g.a<g.c.c.length;)for(d=u(E(g),12),s=hh(d.g),i=s,r=0,c=i.length;r<c;++r)t=i[r],on(un(v(t,(W(),zf))))&&Hb(t,!1);e.Vg()}function zSe(n,e,t,i){var r,c,s,f,h;for(h=F(Ii,J,109,(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,0,2),c=S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]),s=0,f=c.length;s<f;++s)r=c[s],h[r.g]=F(Ii,Cr,28,n.c[r.g],15,1);return hFn(h,n,Xn),hFn(h,n,ae),Kx(h,n,Xn,e,t,i),Kx(h,n,Zn,e,t,i),Kx(h,n,ae,e,t,i),Kx(h,n,Wn,e,t,i),h}function XSe(n,e,t){if(Zc(n.a,e)){if(sf(u(ee(n.a,e),49),t))return 1}else Ve(n.a,e,new ni);if(Zc(n.a,t)){if(sf(u(ee(n.a,t),49),e))return-1}else Ve(n.a,t,new ni);if(Zc(n.b,e)){if(sf(u(ee(n.b,e),49),t))return-1}else Ve(n.b,e,new ni);if(Zc(n.b,t)){if(sf(u(ee(n.b,t),49),e))return 1}else Ve(n.b,t,new ni);return 0}function VSe(n){var e,t,i,r,c,s;n.q==(Ai(),tl)||n.q==qc||(r=n.f.n.d+ZM(u(Mr(n.b,(en(),Xn)),127))+n.c,e=n.f.n.a+ZM(u(Mr(n.b,ae),127))+n.c,i=u(Mr(n.b,Zn),127),s=u(Mr(n.b,Wn),127),c=y.Math.max(0,i.n.d-r),c=y.Math.max(c,s.n.d-r),t=y.Math.max(0,i.n.a-e),t=y.Math.max(t,s.n.a-e),i.n.d=c,s.n.d=c,i.n.a=t,s.n.a=t)}function pen(n,e,t,i){var r,c,s,f,h,l;if(t==null){for(r=u(n.g,124),f=0;f<n.i;++f)if(s=r[f],s.Lk()==e)return cr(n,s,i)}return c=(dr(),u(e,69).xk()?u(t,76):Rh(e,t)),fo(n.e)?(l=!xk(n,e),i=Xc(n,c,i),h=e.Jk()?W1(n,3,e,null,t,O4(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0),l):W1(n,1,e,e.ik(),t,-1,l),i?i.nj(h):i=h):i=Xc(n,c,i),i}function Jqn(){this.b=new Ql,this.d=new Ql,this.e=new Ql,this.c=new Ql,this.a=new de,this.f=new de,Pg(Ei,new M4n,new C4n),Pg(oan,new R4n,new K4n),Pg(Lon,new B4n,new F4n),Pg(Non,new _4n,new H4n),Pg(boe,new q4n,new U4n),Pg(uDe,new S4n,new P4n),Pg(fDe,new I4n,new O4n),Pg(oDe,new A4n,new L4n),Pg(sDe,new N4n,new D4n),Pg(aDe,new $4n,new x4n)}function R5(n,e){var t,i,r,c,s;for(n=n==null?gu:(Jn(n),n),r=0;r<e.length;r++)e[r]=UTe(e[r]);for(t=new fg,s=0,i=0;i<e.length&&(c=n.indexOf("%s",s),c!=-1);)t.a+=""+qo(n==null?gu:(Jn(n),n),s,c),Lc(t,e[i++]),s=c+2;if(lLn(t,n,s,n.length),i<e.length){for(t.a+=" [",Lc(t,e[i++]);i<e.length;)t.a+=ur,Lc(t,e[i++]);t.a+="]"}return t.a}function men(n,e){var t,i,r,c,s,f,h;for(t=0,h=new M(e);h.a<h.c.c.length;){for(f=u(E(h),12),fY(n.b,n.d[f.p]),s=0,r=new Lf(f.b);tc(r.a)||tc(r.b);)i=u(tc(r.a)?E(r.a):E(r.b),18),sOn(i)?(c=Cz(n,f==i.c?i.d:i.c),c>n.d[f.p]&&(t+=CJ(n.b,c),J1(n.a,Y(c)))):++s;for(t+=n.b.d*s;!n6(n.a);)cQ(n.b,u(Pp(n.a),17).a)}return t}function Qqn(n){var e,t,i,r,c,s;return c=0,e=gs(n),e.kk()&&(c|=4),n.Bb&$u&&(c|=2),L(n,102)?(t=u(n,19),r=br(t),t.Bb&kc&&(c|=32),r&&(se(Gw(r)),c|=8,s=r.t,(s>1||s==-1)&&(c|=16),r.Bb&kc&&(c|=64)),t.Bb&hr&&(c|=C0),c|=Gs):L(e,468)?c|=512:(i=e.kk(),i&&i.i&1&&(c|=256)),n.Bb&512&&(c|=128),c}function WSe(n,e){var t;return n.f==TU?(t=vb(Nr((Lu(),zi),e)),n.e?t==4&&e!=(n3(),F3)&&e!=(n3(),B3)&&e!=(n3(),CU)&&e!=(n3(),SU):t==2):n.d&&(n.d.Hc(e)||n.d.Hc($p(Nr((Lu(),zi),e)))||n.d.Hc(Qg((Lu(),zi),n.b,e)))?!0:n.f&&een((Lu(),n.f),q7(Nr(zi,e)))?(t=vb(Nr(zi,e)),n.e?t==4:t==2):!1}function JSe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(g=-1,p=0,l=n,a=0,d=l.length;a<d;++a){for(h=l[a],c=h,s=0,f=c.length;s<f;++s)for(r=c[s],e=new TLn(g==-1?n[0]:n[g],u(v(Hi(r),(cn(),Yh)),284),iFn(r),on(un(v(Hi(r),mH)))),t=0;t<r.j.c.length;t++)for(i=t+1;i<r.j.c.length;i++)SIn(e,u(sn(r.j,t),12),u(sn(r.j,i),12))>0&&++p;++g}return p}function QSe(n,e,t,i){var r,c,s,f,h,l,a,d;return s=u(z(t,(He(),N3)),8),h=s.a,a=s.b+n,r=y.Math.atan2(a,h),r<0&&(r+=Md),r+=e,r>Md&&(r-=Md),f=u(z(i,N3),8),l=f.a,d=f.b+n,c=y.Math.atan2(d,l),c<0&&(c+=Md),c+=e,c>Md&&(c-=Md),Cf(),Fs(1e-10),y.Math.abs(r-c)<=1e-10||r==c||isNaN(r)&&isNaN(c)?0:r<c?-1:r>c?1:ub(isNaN(r),isNaN(c))}function MR(n){var e,t,i,r,c,s,f;for(f=new de,i=new M(n.a.b);i.a<i.c.c.length;)e=u(E(i),60),Ve(f,e,new Z);for(r=new M(n.a.b);r.a<r.c.c.length;)for(e=u(E(r),60),e.i=li,s=e.c.Kc();s.Ob();)c=u(s.Pb(),60),u(Fr(wr(f.f,c)),15).Fc(e);for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),60),e.c.$b(),e.c=u(Fr(wr(f.f,e)),15);vqn(n)}function TR(n){var e,t,i,r,c,s,f;for(f=new de,i=new M(n.a.b);i.a<i.c.c.length;)e=u(E(i),86),Ve(f,e,new Z);for(r=new M(n.a.b);r.a<r.c.c.length;)for(e=u(E(r),86),e.o=li,s=e.f.Kc();s.Ob();)c=u(s.Pb(),86),u(Fr(wr(f.f,c)),15).Fc(e);for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),e.f.$b(),e.f=u(Fr(wr(f.f,e)),15);uqn(n)}function YSe(n,e,t,i){var r,c;for(tke(n,e,t,i),Vse(e,n.j-e.j+t),Wse(e,n.k-e.k+i),c=new M(e.f);c.a<c.c.c.length;)switch(r=u(E(c),334),r.a.g){case 0:n4(n,e.g+r.b.a,0,e.g+r.c.a,e.i-1);break;case 1:n4(n,e.g+e.o,e.i+r.b.a,n.o-1,e.i+r.c.a);break;case 2:n4(n,e.g+r.b.a,e.i+e.p,e.g+r.c.a,n.p-1);break;default:n4(n,0,e.i+r.b.a,e.g-1,e.i+r.c.a)}}function ZSe(n,e){var t,i,r,c,s,f,h,l;for(c=new Z,e.b.c.length=0,t=u(Wr(oJ(new Cn(null,new On(new qa(n.a.b),1))),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),r=t.Kc();r.Ob();)if(i=u(r.Pb(),17),s=vJ(n.a,i),s.b!=0)for(f=new Nc(e),Bn(c.c,f),f.p=i.a,l=ge(s,0);l.b!=l.d.c;)h=u(be(l),10),$i(h,f);hi(e.b,c)}function xS(n,e,t,i,r){var c,s,f;try{if(e>=n.o)throw T(new JG);f=e>>5,s=e&31,c=Ks(1,Se(Ks(s,1))),r?n.n[t][f]=lf(n.n[t][f],c):n.n[t][f]=vi(n.n[t][f],XV(c)),c=Ks(c,1),i?n.n[t][f]=lf(n.n[t][f],c):n.n[t][f]=vi(n.n[t][f],XV(c))}catch(h){throw h=Ot(h),L(h,333)?T(new Or(GK+n.o+"*"+n.p+zK+e+ur+t+XK)):T(h)}}function nPe(n,e,t,i){var r,c,s,f,h,l,a,d,g;for(g=new Ul(new G7n(n)),f=S(C(Qh,1),b1,10,0,[e,t]),h=0,l=f.length;h<l;++h)for(s=f[h],d=b5(s,i).Kc();d.Ob();)for(a=u(d.Pb(),12),c=new Lf(a.b);tc(c.a)||tc(c.b);)r=u(tc(c.a)?E(c.a):E(c.b),18),fr(r)||(g.a.zc(a,(_n(),pa))==null,sOn(r)&&B7(g,a==r.c?r.d:r.c));return Pe(g),new _u(g)}function ven(n,e,t,i){var r,c,s;e&&(c=$(B(v(e,(pt(),j1))))+i,s=t+$(B(v(e,xO)))/2,U(e,Dj,Y(Se(vc(y.Math.round(c))))),U(e,$j,Y(Se(vc(y.Math.round(s))))),e.d.b==0||ven(n,u(NM((r=ge(new sl(e).a.d,0),new sg(r))),39),t+$(B(v(e,xO)))+n.b,i+$(B(v(e,Lv)))),v(e,uq)!=null&&ven(n,u(v(e,uq),39),t,i))}function ePe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(h=Hi(e.a),r=$(B(v(h,(cn(),Kd))))*2,a=$(B(v(h,S2))),l=y.Math.max(r,a),c=F(Ii,Cr,28,e.f-e.c+1,15,1),i=-l,t=0,f=e.b.Kc();f.Ob();)s=u(f.Pb(),10),i+=n.a[s.c.p]+l,c[t++]=i;for(i+=n.a[e.a.c.p]+l,c[t++]=i,g=new M(e.e);g.a<g.c.c.length;)d=u(E(g),10),i+=n.a[d.c.p]+l,c[t++]=i;return c}function tPe(n,e){var t,i,r,c;if(c=u(z(n,(He(),H2)),64).g-u(z(e,H2),64).g,c!=0)return c;if(t=u(z(n,cU),17),i=u(z(e,cU),17),t&&i&&(r=t.a-i.a,r!=0))return r;switch(u(z(n,H2),64).g){case 1:return bt(n.i,e.i);case 2:return bt(n.j,e.j);case 3:return bt(e.i,n.i);case 4:return bt(e.j,n.j);default:throw T(new Ar(nin))}}function ken(n){var e,t,i;return n.Db&64?iR(n):(e=new mo(ycn),t=n.k,t?Be(Be((e.a+=' "',e),t),'"'):(!n.n&&(n.n=new q(Sr,n,1,7)),n.n.i>0&&(i=(!n.n&&(n.n=new q(Sr,n,1,7)),u(N(n.n,0),135)).a,!i||Be(Be((e.a+=' "',e),i),'"'))),Be(eb(Be(eb(Be(eb(Be(eb((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function Yqn(n){var e,t,i;return n.Db&64?iR(n):(e=new mo(jcn),t=n.k,t?Be(Be((e.a+=' "',e),t),'"'):(!n.n&&(n.n=new q(Sr,n,1,7)),n.n.i>0&&(i=(!n.n&&(n.n=new q(Sr,n,1,7)),u(N(n.n,0),135)).a,!i||Be(Be((e.a+=' "',e),i),'"'))),Be(eb(Be(eb(Be(eb(Be(eb((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function iPe(n,e){var t,i,r,c,s;for(e==(h5(),zH)&&Qk(u(ot(n.a,(o0(),wj)),15)),r=u(ot(n.a,(o0(),wj)),15).Kc();r.Ob();)switch(i=u(r.Pb(),105),t=u(sn(i.j,0),113).d.j,c=new _u(i.j),Yt(c,new lpn),e.g){case 2:Qx(n,c,t,(Ob(),ka),1);break;case 1:case 0:s=qTe(c),Qx(n,new Jl(c,0,s),t,(Ob(),ka),0),Qx(n,new Jl(c,s,c.c.length),t,ka,1)}}function CR(n,e){var t,i,r,c,s,f,h;if(e==null||e.length==0)return null;if(r=u(Dc(n.a,e),143),!r){for(i=(f=new ol(n.b).a.vc().Kc(),new Cw(f));i.a.Ob();)if(t=(c=u(i.a.Pb(),44),u(c.md(),143)),s=t.c,h=e.length,Sn(s.substr(s.length-h,h),e)&&(e.length==s.length||Xi(s,s.length-e.length-1)==46)){if(r)return null;r=t}r&&Lr(n.a,e,r)}return r}function rPe(n,e){var t,i,r,c;return t=new Twn,i=u(Wr(_r(new Cn(null,new On(n.f,16)),t),Ww(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),S0),Yr]))),21),r=i.gc(),i=u(Wr(_r(new Cn(null,new On(e.f,16)),t),Ww(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[S0,Yr]))),21),c=i.gc(),r<c?-1:r==c?0:1}function Zqn(n){var e,t,i;kt(n,(cn(),hw))&&(i=u(v(n,hw),21),!i.dc()&&(t=(e=u(of(yr),9),new _o(e,u(xs(e,e.length),9),0)),i.Hc((l0(),No))?_s(t,No):_s(t,Zs),i.Hc(Ms)||_s(t,Ms),i.Hc(Qs)?_s(t,nf):i.Hc(xl)?_s(t,el):i.Hc(Ys)&&_s(t,Ts),i.Hc(nf)?_s(t,Qs):i.Hc(el)?_s(t,xl):i.Hc(Ts)&&_s(t,Ys),U(n,hw,t)))}function cPe(n){var e,t,i,r,c,s,f;for(r=u(v(n,(W(),uw)),10),i=n.j,t=(Nn(0,i.c.length),u(i.c[0],12)),s=new M(r.j);s.a<s.c.c.length;)if(c=u(E(s),12),x(c)===x(v(t,st))){c.j==(en(),Xn)&&n.p>r.p?(gi(c,ae),c.d&&(f=c.o.b,e=c.a.b,c.a.b=f-e)):c.j==ae&&r.p>n.p&&(gi(c,Xn),c.d&&(f=c.o.b,e=c.a.b,c.a.b=-(f-e)));break}return r}function sy(n,e,t,i,r){var c,s,f,h,l,a,d;if(!(L(e,207)||L(e,366)||L(e,193)))throw T(new Gn("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return s=n.a/2,h=e.i+i-s,a=e.j+r-s,l=h+e.g+n.a,d=a+e.f+n.a,c=new Tu,Re(c,new V(h,a)),Re(c,new V(h,d)),Re(c,new V(l,d)),Re(c,new V(l,a)),f=new bR(c),Ur(f,e),t&&Ve(n.b,e,f),f}function S4(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=new V(e,t),a=new M(n.a);a.a<a.c.c.length;)for(l=u(E(a),10),it(l.n,c),g=new M(l.j);g.a<g.c.c.length;)for(d=u(E(g),12),r=new M(d.g);r.a<r.c.c.length;)for(i=u(E(r),18),n0(i.a,c),s=u(v(i,(cn(),Rr)),75),s&&n0(s,c),h=new M(i.b);h.a<h.c.c.length;)f=u(E(h),72),it(f.n,c)}function uPe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=new V(e,t),a=new M(n.a);a.a<a.c.c.length;)for(l=u(E(a),10),it(l.n,c),g=new M(l.j);g.a<g.c.c.length;)for(d=u(E(g),12),r=new M(d.g);r.a<r.c.c.length;)for(i=u(E(r),18),n0(i.a,c),s=u(v(i,(cn(),Rr)),75),s&&n0(s,c),h=new M(i.b);h.a<h.c.c.length;)f=u(E(h),72),it(f.n,c)}function nUn(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i==0)throw T(new hp("Edges must have a source."));if((!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i==0)throw T(new hp("Edges must have a target."));if(!n.b&&(n.b=new Dn(he,n,4,7)),!(n.b.i<=1&&(!n.c&&(n.c=new Dn(he,n,5,8)),n.c.i<=1)))throw T(new hp("Hyperedges are not supported."))}function yen(n,e){var t,i,r,c,s,f,h,l,a,d;for(d=0,c=new Mg,J1(c,e);c.b!=c.c;)for(h=u(Pp(c),219),l=0,a=u(v(e.j,(cn(),Yh)),284),s=$(B(v(e.j,hO))),f=$(B(v(e.j,Kfn))),a!=(lh(),k1)&&(l+=s*fTe(h.e,a),l+=f*JSe(h.e)),d+=XBn(h.d,h.e)+l,r=new M(h.b);r.a<r.c.c.length;)i=u(E(r),36),t=u(sn(n.b,i.p),219),t.s||(d+=kS(n,t));return d}function dh(){dh=R;var n;for(sI=new gl(1,1),QF=new gl(1,10),C8=new gl(0,0),vQn=new gl(-1,1),kQn=S(C(l2,1),J,92,0,[C8,sI,new gl(1,2),new gl(1,3),new gl(1,4),new gl(1,5),new gl(1,6),new gl(1,7),new gl(1,8),new gl(1,9),QF]),fI=F(l2,J,92,32,0,1),n=0;n<fI.length;n++)fI[n]=CM(Ks(1,n),0)?ra(Ks(1,n)):H6(ra(n1(Ks(1,n))))}function eUn(n,e,t,i,r,c,s){if(n.c=i.Lf().a,n.d=i.Lf().b,r&&(n.c+=r.Lf().a,n.d+=r.Lf().b),n.b=e.Mf().a,n.a=e.Mf().b,!r)t?n.c-=s+e.Mf().a:n.c+=i.Mf().a+s;else switch(r.ag().g){case 0:case 2:n.c+=r.Mf().a+s+c.a+s;break;case 4:n.c-=s+c.a+s+e.Mf().a;break;case 1:n.c+=r.Mf().a+s,n.d-=s+c.b+s+e.Mf().b;break;case 3:n.c+=r.Mf().a+s,n.d+=r.Mf().b+s+c.b+s}}function tUn(n,e){var t,i;for(this.b=new Z,this.e=new Z,this.a=n,this.d=e,E9e(this),I8e(this),this.b.dc()?this.c=n.c.p:this.c=u(this.b.Xb(0),10).c.p,this.e.c.length==0?this.f=n.c.p:this.f=u(sn(this.e,this.e.c.length-1),10).c.p,i=u(v(n,(W(),K8)),15).Kc();i.Ob();)if(t=u(i.Pb(),72),kt(t,(cn(),dO))){this.d=u(v(t,dO),232);break}}function P4(n,e,t){var i,r,c,s,f,h,l,a;for(i=u(ee(n.a,e),49),c=u(ee(n.a,t),49),r=u(ee(n.e,e),49),s=u(ee(n.e,t),49),i.a.zc(t,i),s.a.zc(e,s),a=c.a.ec().Kc();a.Ob();)l=u(a.Pb(),10),i.a.zc(l,i),fi(u(ee(n.e,l),49),e),Ki(u(ee(n.e,l),49),r);for(h=r.a.ec().Kc();h.Ob();)f=u(h.Pb(),10),s.a.zc(f,s),fi(u(ee(n.a,f),49),t),Ki(u(ee(n.a,f),49),c)}function fy(n,e,t){var i,r,c,s,f,h,l,a;for(i=u(ee(n.a,e),49),c=u(ee(n.a,t),49),r=u(ee(n.b,e),49),s=u(ee(n.b,t),49),i.a.zc(t,i),s.a.zc(e,s),a=c.a.ec().Kc();a.Ob();)l=u(a.Pb(),10),i.a.zc(l,i),fi(u(ee(n.b,l),49),e),Ki(u(ee(n.b,l),49),r);for(h=r.a.ec().Kc();h.Ob();)f=u(h.Pb(),10),s.a.zc(f,s),fi(u(ee(n.a,f),49),t),Ki(u(ee(n.a,f),49),c)}function ns(n,e,t){var i,r,c,s,f,h,l,a;for(i=u(ee(n.a,e),49),c=u(ee(n.a,t),49),r=u(ee(n.d,e),49),s=u(ee(n.d,t),49),i.a.zc(t,i),s.a.zc(e,s),a=c.a.ec().Kc();a.Ob();)l=u(a.Pb(),12),i.a.zc(l,i),fi(u(ee(n.d,l),49),e),Ki(u(ee(n.d,l),49),r);for(h=r.a.ec().Kc();h.Ob();)f=u(h.Pb(),12),s.a.zc(f,s),fi(u(ee(n.a,f),49),t),Ki(u(ee(n.a,f),49),c)}function oPe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;if(c=t,t<i)for(g=(p=new kk(n.p),m=new kk(n.p),Ki(p.e,n.e),p.q=n.q,p.r=m,pT(p),Ki(m.j,n.j),m.r=p,pT(m),new bi(p,m)),d=u(g.a,118),a=u(g.b,118),r=(Nn(c,e.c.length),u(e.c[c],339)),s=Aqn(n,d,a,r),l=t+1;l<=i;l++)f=(Nn(l,e.c.length),u(e.c[l],339)),h=Aqn(n,d,a,f),j9e(f,h,r,s)&&(r=f,s=h,c=l);return c}function sPe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;for(s=u(N(e,0),27),eu(s,0),tu(s,0),g=new Z,Bn(g.c,s),f=s,c=new eW(n.a,s.g,s.f,(D5(),Fj)),p=1;p<e.i;p++)m=u(N(e,p),27),h=RR(n,D2,m,f,c,g,t),l=RR(n,A3,m,f,c,g,t),a=RR(n,a9,m,f,c,g,t),d=RR(n,l9,m,f,c,g,t),r=ROe(n,h,l,a,d,m,f,i),eu(m,r.d),tu(m,r.e),lfe(r,Fj),c=r,f=m,Bn(g.c,m);return c}function fPe(n,e,t){var i,r,c,s,f,h,l,a,d,g;if(a=null,g=e,d=ULn(n,DLn(t),g),zm(d,bl(g,Eh)),s=Tb(g,Mcn),i=new gTn(n,d),LEe(i.a,i.b,s),f=Tb(g,pF),r=new pTn(n,d),NEe(r.a,r.b,f),(!d.b&&(d.b=new Dn(he,d,4,7)),d.b).i==0||(!d.c&&(d.c=new Dn(he,d,5,8)),d.c).i==0)throw c=bl(g,Eh),h=vWn+c,l=h+tv,T(new eh(l));return gS(g,d),dNe(n,g,d),a=_$(n,g,d),a}function hPe(n,e){var t,i,r,c,s,f,h;for(r=F(ye,_e,28,n.e.a.c.length,15,1),s=new M(n.e.a);s.a<s.c.c.length;)c=u(E(s),125),r[c.d]+=c.b.a.c.length;for(f=$7(e);f.b!=0;)for(c=u(f.b==0?null:(oe(f.b!=0),Xo(f,f.a.a)),125),i=Fp(new M(c.g.a));i.Ob();)t=u(i.Pb(),218),h=t.e,h.e=y.Math.max(h.e,c.e+t.a),--r[h.d],r[h.d]==0&&xt(f,h,f.c.b,f.c)}function iUn(n){var e,t,i,r,c,s,f,h,l,a,d;for(t=Wi,r=et,f=new M(n.e.a);f.a<f.c.c.length;)c=u(E(f),125),r=y.Math.min(r,c.e),t=y.Math.max(t,c.e);for(e=F(ye,_e,28,t-r+1,15,1),s=new M(n.e.a);s.a<s.c.c.length;)c=u(E(s),125),c.e-=r,++e[c.e];if(i=0,n.k!=null)for(l=n.k,a=0,d=l.length;a<d&&(h=l[a],e[i++]+=h,e.length!=i);++a);return e}function lPe(n,e){var t,i,r,c,s,f;if(e.Ug("Edge routing",1),r=u(v(n,(lc(),oq)),392),r==(l5(),ZH))Ome(n);else if(r==Lj)for(u(ho(t4(ut(new Cn(null,new On(n.b,16)),new z3n))),39),c=$(B(v(n,Aln))),s=$(B(v(n,Cln))),f=u(v(n,pw),88),gNe(n,f,c),XNe(n,f,c,s),QNe(n,f,c,s),i=ge(n.a,0);i.b!=i.d.c;)t=u(be(i),65),t.a.b<2&&Inn(t);e.Vg()}function rUn(n){switch(n.d){case 9:case 8:return!0;case 3:case 5:case 4:case 6:return!1;case 7:return u(fen(n),17).a==n.o;case 1:case 2:{if(n.o==-2)return!1;switch(n.p){case 0:case 1:case 2:case 6:case 5:case 7:return cb(n.k,n.f);case 3:case 4:return n.j==n.e;default:return n.n==null?n.g==null:ct(n.n,n.g)}}default:return!1}}function aPe(n,e){var t,i,r;switch(e.Ug("Breaking Point Insertion",1),i=new qnn(n),u(v(n,(cn(),LH)),351).g){case 2:r=new VU;break;case 0:r=new GU;break;default:r=new WU}if(t=r.og(n,i),on(un(v(n,jhn)))&&(t=eAe(n,t)),!r.pg()&&kt(n,jO))switch(u(v(n,jO),352).g){case 2:t=R_n(i,t);break;case 1:t=SFn(i,t)}if(t.dc()){e.Vg();return}yNe(n,t),e.Vg()}function cUn(n,e,t){var i,r,c,s,f,h,l,a,d;for(c=new Gc(e.c.length),l=new M(e);l.a<l.c.c.length;)s=u(E(l),10),nn(c,n.b[s.c.p][s.p]);for(JOe(n,c,t),d=null;d=_Ae(c);)OIe(n,u(d.a,239),u(d.b,239),c);for(e.c.length=0,r=new M(c);r.a<r.c.c.length;)for(i=u(E(r),239),f=i.d,h=0,a=f.length;h<a;++h)s=f[h],Bn(e.c,s),n.a[s.c.p][s.p].a=Sf(i.g,i.d[0]).a}function uUn(n){ib(n,new gd(nb(Qd(Zd(Yd(new Fa,h8),"ELK Fixed"),"Keeps the current layout as it is, without any automatic modification. Optional coordinates can be given for nodes and edge bend points."),new z4n))),Q(n,h8,Xb,fdn),Q(n,h8,CP,rn(y9)),Q(n,h8,bcn,rn(cdn)),Q(n,h8,r2,rn(udn)),Q(n,h8,d3,rn(sdn)),Q(n,h8,G4,rn(odn))}function RS(n,e,t){var i,r,c,s,f;if(i=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),f=Se(er(Uh,xh(Se(er(t==null?0:mt(t),Gh)),15))),c=r5(n,e,i),c&&f==c.f&&sh(t,c.i))return t;if(s=c5(n,t,f),s)throw T(new Gn("value already present: "+t));return r=new vT(e,i,t,f),c?(zg(n,c),Zk(n,r,c),c.e=null,c.c=null,c.i):(Zk(n,r,null),lFn(n),null)}function dPe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;a=t.a.c,s=t.a.c+t.a.b,c=u(ee(t.c,e),467),p=c.f,m=c.a,c.b?h=new V(s,p):h=new V(a,p),c.c?d=new V(a,m):d=new V(s,m),r=a,t.p||(r+=n.c),r+=t.F+t.v*n.b,l=new V(r,p),g=new V(r,m),t5(e.a,S(C(Ei,1),J,8,0,[h,l])),f=t.d.a.gc()>1,f&&(i=new V(r,t.b),Re(e.a,i)),t5(e.a,S(C(Ei,1),J,8,0,[g,d]))}function ps(){ps=R,SO=new Nw(kh,0),Sj=new Nw("NIKOLOV",1),Pj=new Nw("NIKOLOV_PIXEL",2),$hn=new Nw("NIKOLOV_IMPROVED",3),xhn=new Nw("NIKOLOV_IMPROVED_PIXEL",4),Dhn=new Nw("DUMMYNODE_PERCENTAGE",5),Rhn=new Nw("NODECOUNT_PERCENTAGE",6),PO=new Nw("NO_BOUNDARY",7),ww=new Nw("MODEL_ORDER_LEFT_TO_RIGHT",8),U0=new Nw("MODEL_ORDER_RIGHT_TO_LEFT",9)}function bPe(n){var e,t,i,r,c;for(i=n.length,e=new e6,c=0;c<i;)if(t=Xi(n,c++),!(t==9||t==10||t==12||t==13||t==32)){if(t==35){for(;c<i&&(t=Xi(n,c++),!(t==13||t==10)););continue}t==92&&c<i?(r=(zn(c,n.length),n.charCodeAt(c)))==35||r==9||r==10||r==12||r==13||r==32?(Tm(e,r&ui),++c):(e.a+="\\",Tm(e,r&ui),++c):Tm(e,t&ui)}return e.a}function jen(){jen=R,zre=new Tn(Rrn,(_n(),!1)),Jre=new Tn(Krn,Y(0)),Qre=new Tn(Brn,0),Yre=new Tn(NP,!1),qln=(Pk(),FO),Vre=new Tn(zB,qln),Y(0),Xre=new Tn(XB,Y(1)),Gln=(SC(),Eq),tce=new Tn(Frn,Gln),zln=(ZT(),mq),ice=new Tn(_rn,zln),Uln=(sS(),jq),Wre=new Tn(Hrn,Uln),ece=new Tn(VB,0),Zre=new Tn(WB,!1),nce=new Tn(qrn,!1)}function wPe(n,e){var t,i,r;for(i=new M(e);i.a<i.c.c.length;)if(t=u(E(i),27),In(n.a,t,t),In(n.b,t,t),r=a0(t),r.c.length!=0)for(n.d&&n.d.Gg(r),In(n.a,t,(Nn(0,r.c.length),u(r.c[0],27))),In(n.b,t,u(sn(r,r.c.length-1),27));K$(r).c.length!=0;)r=K$(r),n.d&&n.d.Gg(r),In(n.a,t,(Nn(0,r.c.length),u(r.c[0],27))),In(n.b,t,u(sn(r,r.c.length-1),27))}function SR(n,e,t){var i,r,c,s,f,h;if(e)if(t<=-1){if(i=$n(e.Dh(),-1-t),L(i,102))return u(i,19);for(s=u(e.Mh(i),160),f=0,h=s.gc();f<h;++f)if(x(s.Ul(f))===x(n)&&(r=s.Tl(f),L(r,102)&&(c=u(r,19),c.Bb&kc)))return c;throw T(new Ar("The containment feature could not be located"))}else return br(u($n(n.Dh(),t),19));else return null}function gPe(n){var e,t,i,r,c,s,f,h,l,a;for(t=0,f=new M(n.d);f.a<f.c.c.length;)s=u(E(f),105),s.i&&(s.i.c=t++);for(e=Wa(so,[J,Xh],[183,28],16,[t,t],2),a=n.d,r=0;r<a.c.length;r++)if(h=(Nn(r,a.c.length),u(a.c[r],105)),h.i)for(c=r+1;c<a.c.length;c++)l=(Nn(c,a.c.length),u(a.c[c],105)),l.i&&(i=Hye(h,l),e[h.i.c][l.i.c]=i,e[l.i.c][h.i.c]=i);return e}function Een(){Een=R,Tce=new Tn(zrn,(_n(),!1)),Y(-1),vce=new Tn(Xrn,Y(-1)),Y(-1),kce=new Tn(Vrn,Y(-1)),yce=new Tn(Wrn,!1),d1n=(GT(),Nq),Ice=new Tn(Jrn,d1n),Oce=new Tn(Qrn,-1),a1n=(_C(),Oq),Pce=new Tn(Yrn,a1n),Sce=new Tn(Zrn,!0),l1n=(nC(),Dq),Mce=new Tn(ncn,l1n),Ece=new Tn(ecn,!1),Y(1),jce=new Tn(tcn,Y(1)),Cce=new lt(icn)}function K5(){K5=R,YH=new rb("ROOT_PROC",0),uln=new rb("FAN_PROC",1),hln=new rb("LEVEL_PROC",2),lln=new rb("NEIGHBORS_PROC",3),fln=new rb("LEVEL_HEIGHT",4),cln=new rb("DIRECTION_PROC",5),aln=new rb("NODE_POSITION_PROC",6),iln=new rb("COMPACTION_PROC",7),sln=new rb("LEVEL_COORDS",8),oln=new rb("GRAPH_BOUNDS_PROC",9),rln=new rb("DETREEIFYING_PROC",10)}function Men(n,e){var t,i,r,c,s,f,h,l,a,d;for(d=Hr(e),l=null,r=!1,f=0,a=Pc(d.a).i;f<a;++f)s=u(gy(d,f,(c=u(N(Pc(d.a),f),89),h=c.c,L(h,90)?u(h,29):(An(),Os))),29),t=Men(n,s),t.dc()||(l?(r||(r=!0,l=new oT(l)),l.Gc(t)):l=t);return i=CEe(n,e),i.dc()?l||(Ln(),Ln(),sr):l?(r||(l=new oT(l)),l.Gc(i),l):i}function PR(n,e){var t,i,r,c,s,f,h,l,a,d;for(d=Hr(e),l=null,i=!1,f=0,a=Pc(d.a).i;f<a;++f)c=u(gy(d,f,(r=u(N(Pc(d.a),f),89),h=r.c,L(h,90)?u(h,29):(An(),Os))),29),t=PR(n,c),t.dc()||(l?(i||(i=!0,l=new oT(l)),l.Gc(t)):l=t);return s=fMe(n,e),s.dc()?l||(Ln(),Ln(),sr):l?(i||(l=new oT(l)),l.Gc(s),l):s}function pPe(n){var e,t,i,r;i=n.o,Kw(),n.A.dc()||ct(n.A,ton)?r=i.a:(r=ey(n.f),n.A.Hc((go(),tE))&&!n.B.Hc((io(),P9))&&(r=y.Math.max(r,ey(u(Mr(n.p,(en(),Xn)),252))),r=y.Math.max(r,ey(u(Mr(n.p,ae),252)))),e=Rxn(n),e&&(r=y.Math.max(r,e.a))),on(un(n.e.Tf().of((He(),V0))))?i.a=y.Math.max(i.a,r):i.a=r,t=n.f.i,t.c=0,t.b=r,NR(n.f)}function hy(n,e,t){var i,r,c,s,f,h;if(L(e,76))return cr(n,e,t);for(f=null,c=null,i=u(n.g,124),s=0;s<n.i;++s)if(r=i[s],ct(e,r.md())&&(c=r.Lk(),L(c,102)&&u(c,19).Bb&kc)){f=r;break}return f&&(fo(n.e)&&(h=c.Jk()?W1(n,4,c,e,null,O4(n,c,e,L(c,102)&&(u(c,19).Bb&hr)!=0),!0):W1(n,c.tk()?2:1,c,e,c.ik(),-1,!0),t?t.nj(h):t=h),t=hy(n,f,t)),t}function mPe(n,e,t){var i,r,c,s;if(s=ru(n.e.Dh(),e),i=u(n.g,124),dr(),u(e,69).xk()){for(c=0;c<n.i;++c)if(r=i[c],s.am(r.Lk())&&ct(r,t))return d0(n,c),!0}else if(t!=null){for(c=0;c<n.i;++c)if(r=i[c],s.am(r.Lk())&&ct(t,r.md()))return d0(n,c),!0}else for(c=0;c<n.i;++c)if(r=i[c],s.am(r.Lk())&&r.md()==null)return d0(n,c),!0;return!1}function vPe(n,e){var t,i,r,c,s;if(e.Ug("Node and Port Label Placement and Node Sizing",1),aCn((r6(),new kD(n,!0,!0,new jgn))),u(v(n,(W(),Hc)),21).Hc((pr(),cs)))for(c=u(v(n,(cn(),_0)),21),r=c.Hc((zu(),eE)),s=on(un(v(n,ahn))),i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),30),Ut(ut(new Cn(null,new On(t.a,16)),new Egn),new pPn(c,r,s));e.Vg()}function kPe(n,e){var t,i,r,c,s;for(n.c==null||n.c.length<e.c.length?n.c=F(so,Xh,28,e.c.length,16,1):Zv(n.c),n.a=new Z,i=0,s=new M(e);s.a<s.c.c.length;)r=u(E(s),10),r.p=i++;for(t=new Mt,c=new M(e);c.a<c.c.c.length;)r=u(E(c),10),n.c[r.p]||(__n(n,r),t.b==0||(oe(t.b!=0),u(t.a.a.c,15)).gc()<n.a.c.length?gg(t,n.a):ir(t,n.a),n.a=new Z);return t}function oUn(n){ib(n,new gd(nb(Qd(Zd(Yd(new Fa,Q4),"ELK SPOrE Overlap Removal"),'A node overlap removal algorithm proposed by Nachmanson et al. in "Node overlap removal by growing a tree".'),new d4n))),Q(n,Q4,YB,rn(nan)),Q(n,Q4,Xb,Z1n),Q(n,Q4,y0,8),Q(n,Q4,eF,rn(hue)),Q(n,Q4,fcn,rn(Q1n)),Q(n,Q4,hcn,rn(Y1n)),Q(n,Q4,qy,(_n(),!1))}function yPe(n,e){var t,i,r,c,s,f,h;if(t=e.qi(n.a),t&&(h=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),zcn)),h!=null)){for(i=new Z,c=w0(h,"\\w"),s=0,f=c.length;s<f;++s)r=c[s],Sn(r,"##other")?nn(i,"!##"+R6(n,jo(e.qk()))):Sn(r,"##local")?i.c.push(null):Sn(r,Qy)?nn(i,R6(n,jo(e.qk()))):Bn(i.c,r);return i}return Ln(),Ln(),sr}function sUn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p;for(s=hb(e.c,t,i),d=new M(e.a);d.a<d.c.c.length;){for(a=u(E(d),10),it(a.n,s),p=new M(a.j);p.a<p.c.c.length;)for(g=u(E(p),12),c=new M(g.g);c.a<c.c.c.length;)for(r=u(E(c),18),n0(r.a,s),f=u(v(r,(cn(),Rr)),75),f&&n0(f,s),l=new M(r.b);l.a<l.c.c.length;)h=u(E(l),72),it(h.n,s);nn(n.a,a),a.a=n}}function ly(n){var e,t,i,r,c,s,f,h;if(n.d)throw T(new Ar((ll(S_),RK+S_.k+KK)));for(n.c==(ci(),Jf)&&Yg(n,Kr),t=new M(n.a.a);t.a<t.c.c.length;)e=u(E(t),194),e.e=0;for(s=new M(n.a.b);s.a<s.c.c.length;)for(c=u(E(s),86),c.o=li,r=c.f.Kc();r.Ob();)i=u(r.Pb(),86),++i.d.e;for(kLe(n),h=new M(n.a.b);h.a<h.c.c.length;)f=u(E(h),86),f.k=!0;return n}function jPe(n,e){var t,i,r,c,s,f,h,l;for(f=new w_n(n),t=new Mt,xt(t,e,t.c.b,t.c);t.b!=0;){for(i=u(t.b==0?null:(oe(t.b!=0),Xo(t,t.a.a)),113),i.d.p=1,s=new M(i.e);s.a<s.c.c.length;)r=u(E(s),340),$Fn(f,r),l=r.d,l.d.p==0&&xt(t,l,t.c.b,t.c);for(c=new M(i.b);c.a<c.c.c.length;)r=u(E(c),340),$Fn(f,r),h=r.c,h.d.p==0&&xt(t,h,t.c.b,t.c)}return f}function fUn(n){var e,t,i,r,c;if(i=$(B(z(n,(He(),Rue)))),i!=1)for(kg(n,i*n.g,i*n.f),t=Mle(iwe((!n.c&&(n.c=new q(Qu,n,9,9)),n.c),new tvn)),c=$h(Eo(S(C(Ao,1),Rn,20,0,[(!n.n&&(n.n=new q(Sr,n,1,7)),n.n),(!n.c&&(n.c=new q(Qu,n,9,9)),n.c),t])));pe(c);)r=u(fe(c),422),r.qh(i*r.nh(),i*r.oh()),r.ph(i*r.mh(),i*r.lh()),e=u(r.of(Ran),8),e&&(e.a*=i,e.b*=i)}function Ten(n,e,t){var i,r,c,s,f;if(s=(dr(),u(e,69).xk()),Pl(n.e,e)){if(e.Si()&&BS(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0))return!1}else for(f=ru(n.e.Dh(),e),i=u(n.g,124),c=0;c<n.i;++c)if(r=i[c],f.am(r.Lk()))return(s?ct(r,t):t==null?r.md()==null:ct(t,r.md()))?!1:(u(Bg(n,c,s?u(t,76):Rh(e,t)),76),!0);return ve(n,s?u(t,76):Rh(e,t))}function EPe(n,e,t,i,r){var c,s,f,h,l,a,d,g;for(s=new M(n.b);s.a<s.c.c.length;)for(c=u(E(s),30),g=Q7(c.a),l=g,a=0,d=l.length;a<d;++a)switch(h=l[a],u(v(h,(cn(),ou)),171).g){case 1:UCe(h),$i(h,e),jBn(h,!0,i);break;case 3:CCe(h),$i(h,t),jBn(h,!1,r)}for(f=new xi(n.b,0);f.b<f.d.gc();)(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),30)).a.c.length==0&&bo(f)}function MPe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(p=e.length,h=p,zn(0,e.length),e.charCodeAt(0)==45?(d=-1,g=1,--p):(d=1,g=0),c=(KR(),jQn)[10],r=p/c|0,j=p%c,j!=0&&++r,f=F(ye,_e,28,r,15,1),t=yQn[8],s=0,m=g+(j==0?c:j),k=g;k<h;k=m,m=k+c)i=So((Ri(k,m,e.length),e.substr(k,m-k)),Wi,et),l=(C4(),fZ(f,f,s,t)),l+=T8e(f,s,i),f[s++]=l;a=s,n.e=d,n.d=a,n.a=f,V6(n)}function TPe(n,e){var t,i,r,c;return t=new Iwn,i=u(Wr(_r(new Cn(null,new On(n.f,16)),t),Ww(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),S0),Yr]))),21),r=i.gc(),i=u(Wr(_r(new Cn(null,new On(e.f,16)),t),Ww(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[S0,Yr]))),21),c=i.gc(),r=r==1?1:0,c=c==1?1:0,r<c?-1:r==c?0:1}function CPe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(f=n.i,r=on(un(v(f,(cn(),B0)))),a=0,i=0,l=new M(n.g);l.a<l.c.c.length;)h=u(E(l),18),s=fr(h),c=s&&r&&on(un(v(h,Dd))),g=h.d.i,s&&c?++i:s&&!c?++a:Hi(g).e==f?++i:++a;for(t=new M(n.e);t.a<t.c.c.length;)e=u(E(t),18),s=fr(e),c=s&&r&&on(un(v(e,Dd))),d=e.c.i,s&&c?++a:s&&!c?++i:Hi(d).e==f?++a:++i;return a-i}function Wg(n,e,t,i){this.e=n,this.k=u(v(n,(W(),E2)),312),this.g=F(Qh,b1,10,e,0,1),this.b=F(si,J,345,e,7,1),this.a=F(Qh,b1,10,e,0,1),this.d=F(si,J,345,e,7,1),this.j=F(Qh,b1,10,e,0,1),this.i=F(si,J,345,e,7,1),this.p=F(si,J,345,e,7,1),this.n=F(zt,J,484,e,8,1),u7(this.n,(_n(),!1)),this.f=F(zt,J,484,e,8,1),u7(this.f,!0),this.o=t,this.c=i}function hUn(n,e){var t,i,r,c,s,f;if(!e.dc())if(u(e.Xb(0),292).d==(Yp(),D0))W7e(n,e);else for(i=e.Kc();i.Ob();){switch(t=u(i.Pb(),292),t.d.g){case 5:j4(n,t,n8e(n,t));break;case 0:j4(n,t,(s=t.f-t.c+1,f=(s-1)/2|0,t.c+f));break;case 4:j4(n,t,o4e(n,t));break;case 2:SKn(t),j4(n,t,(c=qZ(t),c?t.c:t.f));break;case 1:SKn(t),j4(n,t,(r=qZ(t),r?t.f:t.c))}Gye(t.a)}}function Cen(n,e,t,i){var r,c,s;return s=new UEn(e,t),n.a?i?(r=u(as(u(ee(n.b,e),260)),260),++r.a,s.d=i.d,s.e=i.e,s.b=i,s.c=i,i.e?i.e.c=s:r.b=s,i.d?i.d.b=s:n.a=s,i.d=s,i.e=s):(u(as(n.e),511).b=s,s.d=n.e,n.e=s,r=u(ee(n.b,e),260),r?(++r.a,c=r.c,c.c=s,s.e=c,r.c=s):(Ve(n.b,e,r=new JW(s)),++n.c)):(n.a=n.e=s,Ve(n.b,e,new JW(s)),++n.c),++n.d,s}function IR(n,e){var t,i,r,c,s;if(e.Ug("Network simplex",1),n.e.a.c.length<1){e.Vg();return}for(c=new M(n.e.a);c.a<c.c.c.length;)r=u(E(c),125),r.e=0;for(s=n.e.a.c.length>=40,s&&wIe(n),MOe(n),zCe(n),t=gKn(n),i=0;t&&i<n.f;)APe(n,t,WMe(n,t)),t=gKn(n),++i;s&&lye(n),n.a?uTe(n,iUn(n)):iUn(n),n.b=null,n.d=null,n.p=null,n.c=null,n.g=null,n.i=null,n.n=null,n.o=null,e.Vg()}function SPe(n,e){var t,i,r,c,s,f,h;if(!e.e){for(e.e=!0,i=e.d.a.ec().Kc();i.Ob();){if(t=u(i.Pb(),18),e.o&&e.d.a.gc()<=1){s=e.a.c,f=e.a.c+e.a.b,h=new V(s+(f-s)/2,e.b),Re(u(e.d.a.ec().Kc().Pb(),18).a,h);continue}if(r=u(ee(e.c,t),467),r.b||r.c){dPe(n,t,e);continue}c=n.d==(u4(),J8)&&(r.d||r.e)&&vMe(n,e)&&e.d.a.gc()<=1,c?nLe(t,e):jSe(n,t,e)}e.k&&qi(e.d,new Q0n)}}function Sen(n,e,t,i,r,c){var s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(g=c,f=(i+r)/2+g,j=t*y.Math.cos(f),P=t*y.Math.sin(f),O=j-e.g/2,A=P-e.f/2,eu(e,O),tu(e,A),d=n.a.Eg(e),k=2*y.Math.acos(t/t+n.c),k<r-i?(p=k/d,s=(i+r-k)/2):(p=(r-i)/d,s=i),m=a0(e),n.e&&(n.e.Fg(n.d),n.e.Gg(m)),l=new M(m);l.a<l.c.c.length;)h=u(E(l),27),a=n.a.Eg(h),Sen(n,h,t+n.c,s,s+p*a,c),s+=p*a}function PPe(n,e,t){var i;switch(i=t.q.getMonth(),e){case 5:Be(n,S(C(fn,1),J,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[i]);break;case 4:Be(n,S(C(fn,1),J,2,6,[sK,fK,hK,lK,c3,aK,dK,bK,wK,gK,pK,mK])[i]);break;case 3:Be(n,S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[i]);break;default:Kh(n,i+1,e)}}function IPe(n,e,t,i){var r,c,s,f,h,l,a,d,g;for(h=new V(t,i),mi(h,u(v(e,(Y1(),O8)),8)),g=new M(e.e);g.a<g.c.c.length;)d=u(E(g),153),it(d.d,h),nn(n.e,d);for(f=new M(e.c);f.a<f.c.c.length;){for(s=u(E(f),289),c=new M(s.a);c.a<c.c.c.length;)r=u(E(c),250),it(r.d,h);nn(n.c,s)}for(a=new M(e.d);a.a<a.c.c.length;)l=u(E(a),453),it(l.d,h),nn(n.d,l)}function Pen(n,e){var t,i,r,c,s,f,h,l;for(h=new M(e.j);h.a<h.c.c.length;)for(f=u(E(h),12),r=new Lf(f.b);tc(r.a)||tc(r.b);)i=u(tc(r.a)?E(r.a):E(r.b),18),t=i.c==f?i.d:i.c,c=t.i,e!=c&&(l=u(v(i,(cn(),Tv)),17).a,l<0&&(l=0),s=c.p,n.b[s]==0&&(i.d==t?(n.a[s]-=l+1,n.a[s]<=0&&n.c[s]>0&&Re(n.f,c)):(n.c[s]-=l+1,n.c[s]<=0&&n.a[s]>0&&Re(n.e,c))))}function lUn(n,e,t,i){var r,c,s,f,h,l,a;for(h=new V(t,i),mi(h,u(v(e,(pt(),Av)),8)),a=ge(e.b,0);a.b!=a.d.c;)l=u(be(a),39),it(l.e,h),Re(n.b,l);for(f=u(Wr(rJ(new Cn(null,new On(e.a,16))),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15).Kc();f.Ob();){for(s=u(f.Pb(),65),c=ge(s.a,0);c.b!=c.d.c;)r=u(be(c),8),r.a+=h.a,r.b+=h.b;Re(n.a,s)}}function Ien(n,e){var t,i,r,c;if(0<(L(n,16)?u(n,16).gc():wl(n.Kc()))){if(r=e,1<r){for(--r,c=new U3n,i=n.Kc();i.Ob();)t=u(i.Pb(),39),c=Eo(S(C(Ao,1),Rn,20,0,[c,new sl(t)]));return Ien(c,r)}if(r<0){for(c=new G3n,i=n.Kc();i.Ob();)t=u(i.Pb(),39),c=Eo(S(C(Ao,1),Rn,20,0,[c,new sl(t)]));if(0<(L(c,16)?u(c,16).gc():wl(c.Kc())))return Ien(c,r)}}return u(NM(n.Kc()),39)}function OPe(n,e,t){var i,r,c,s;for(t.Ug("Processor order nodes",2),n.b=$(B(v(e,(lc(),sq)))),n.a=u(v(e,pw),88),n.a==(ci(),Jf)&&(n.a=Wf,U(e,pw,n.a)),r=new Mt,s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),39),on(un(v(c,(pt(),Ca))))&&xt(r,c,r.c.b,r.c);i=(oe(r.b!=0),u(r.a.a.c,39)),oGn(n,i),t.fh(1),ven(n,i,0-$(B(v(i,(pt(),xO))))/2,0),t.fh(1),t.Vg()}function io(){io=R,Fv=new wg("DEFAULT_MINIMUM_SIZE",0),cE=new wg("MINIMUM_SIZE_ACCOUNTS_FOR_PADDING",1),sA=new wg("COMPUTE_PADDING",2),P9=new wg("OUTSIDE_NODE_LABELS_OVERHANG",3),fA=new wg("PORTS_OVERHANG",4),lA=new wg("UNIFORM_PORT_SPACING",5),hA=new wg("SPACE_EFFICIENT_PORT_LABELS",6),aU=new wg("FORCE_TABULAR_NODE_LABELS",7),rE=new wg("ASYMMETRICAL",8)}function OR(n,e){var t,i,r,c,s,f,h,l;if(e){if(t=(c=e.Dh(),c?jo(c).wi().si(c):null),t){for(s1(n,e,t),r=e.Dh(),h=0,l=(r.i==null&&bh(r),r.i).length;h<l;++h)f=(i=(r.i==null&&bh(r),r.i),h>=0&&h<i.length?i[h]:null),f.rk()&&!f.sk()&&(L(f,331)?P9e(n,u(f,35),e,t):(s=u(f,19),s.Bb&kc&&Bke(n,s,e,t)));e.Vh()&&u(t,54).ei(u(e,54)._h())}return t}else return null}function APe(n,e,t){var i,r,c;if(!e.f)throw T(new Gn("Given leave edge is no tree edge."));if(t.f)throw T(new Gn("Given enter edge is a tree edge already."));for(e.f=!1,NX(n.p,e),t.f=!0,fi(n.p,t),i=t.e.e-t.d.e-t.a,fR(n,t.e,e)||(i=-i),c=new M(n.e.a);c.a<c.c.c.length;)r=u(E(c),125),fR(n,r,e)||(r.e+=i);n.j=1,Zv(n.c),Pnn(n,u(E(new M(n.e.a)),125)),pGn(n)}function aUn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p;if(j4e(n,e,t),c=e[t],p=i?(en(),Wn):(en(),Zn),T1e(e.length,t,i)){for(r=e[i?t-1:t+1],FJ(n,r,i?(gr(),Jc):(gr(),Vu)),h=c,a=0,g=h.length;a<g;++a)s=h[a],dZ(n,s,p);for(FJ(n,c,i?(gr(),Vu):(gr(),Jc)),f=r,l=0,d=f.length;l<d;++l)s=f[l],s.e||dZ(n,s,$k(p))}else for(f=c,l=0,d=f.length;l<d;++l)s=f[l],dZ(n,s,p);return!1}function LPe(n,e,t,i,r){var c,s,f,h,l,a,d;for(Ln(),Yt(n,new Q4n),f=new xi(n,0),d=new Z,c=0;f.b<f.d.gc();)s=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),163)),d.c.length!=0&&Pu(s)*ao(s)>c*2?(a=new hC(d),l=Pu(s)/ao(s),h=QR(a,e,new up,t,i,r,l),it(ff(a.e),h),d.c.length=0,c=0,Bn(d.c,a),Bn(d.c,s),c=Pu(a)*ao(a)+Pu(s)*ao(s)):(Bn(d.c,s),c+=Pu(s)*ao(s));return d}function dUn(n,e){var t,i,r,c,s,f;if(f=u(v(e,(cn(),_t)),101),f==(Ai(),tl)||f==qc)for(r=new V(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a).b,s=new M(n.a);s.a<s.c.c.length;)c=u(E(s),10),c.k==(Vn(),Zt)&&(t=u(v(c,(W(),gc)),64),!(t!=(en(),Zn)&&t!=Wn)&&(i=$(B(v(c,ow))),f==tl&&(i*=r),c.n.b=i-u(v(c,aw),8).b,OC(c,!1,!0)))}function NPe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;if(fo(n.e)){if(e!=t&&(r=u(n.g,124),p=r[t],s=p.Lk(),Pl(n.e,s))){for(m=ru(n.e.Dh(),s),h=-1,f=-1,i=0,l=0,d=e>t?e:t;l<=d;++l)l==t?f=i++:(c=r[l],a=m.am(c.Lk()),l==e&&(h=l==d&&!a?i-1:i),a&&++i);return g=u(m5(n,e,t),76),f!=h&&em(n,new rk(n.e,7,s,Y(f),p.md(),h)),g}}else return u(lR(n,e,t),76);return u(m5(n,e,t),76)}function DPe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Port order processing",1),h=u(v(n,(cn(),dhn)),430),i=new M(n.b);i.a<i.c.c.length;)for(t=u(E(i),30),c=new M(t.a);c.a<c.c.c.length;)r=u(E(c),10),s=u(v(r,_t),101),f=r.j,s==(Ai(),Ud)||s==tl||s==qc?(Ln(),Yt(f,ksn)):s!=Qf&&s!=Oa&&(Ln(),Yt(f,JZn),B9e(f),h==(ak(),UH)&&Yt(f,WZn)),r.i=!0,Tnn(r);e.Vg()}function $Pe(n){var e,t,i,r,c,s,f,h;for(h=new de,e=new oL,s=n.Kc();s.Ob();)r=u(s.Pb(),10),f=sb(i7(new za,r),e),Vc(h.f,r,f);for(c=n.Kc();c.Ob();)for(r=u(c.Pb(),10),i=new ie(ce(Qt(r).a.Kc(),new En));pe(i);)t=u(fe(i),18),!fr(t)&&qs(Ns(Ls(As(Ds(new hs,y.Math.max(1,u(v(t,(cn(),bhn)),17).a)),1),u(ee(h,t.c.i),125)),u(ee(h,t.d.i),125)));return e}function bUn(){bUn=R,zie=Fe(new ii,(Vi(),Fc),(tr(),csn)),eln=Fe(new ii,Ac,PI),Vie=Iu(Fe(new ii,Ac,xI),zr,$I),Gie=Iu(Fe(Fe(new ii,Ac,nsn),Fc,esn),zr,tsn),Wie=ah(ah(s6(Iu(Fe(new ii,Vs,FI),zr,BI),Fc),KI),_I),Xie=Iu(new ii,zr,usn),qie=Iu(Fe(Fe(Fe(new ii,Jh,OI),Fc,LI),Fc,fv),zr,AI),Uie=Iu(Fe(Fe(new ii,Fc,fv),Fc,SI),zr,CI)}function xPe(n,e,t,i,r,c){var s,f,h,l,a,d,g;for(l=gRn(e)-gRn(n),s=e_n(e,l),h=Yc(0,0,0);l>=0&&(f=P7e(n,s),!(f&&(l<22?h.l|=1<<l:l<44?h.m|=1<<l-22:h.h|=1<<l-44,n.l==0&&n.m==0&&n.h==0)));)a=s.m,d=s.h,g=s.l,s.h=d>>>1,s.m=a>>>1|(d&1)<<21,s.l=g>>>1|(a&1)<<21,--l;return t&&H$(h),c&&(i?(ga=e4(n),r&&(ga=Qxn(ga,(Km(),fun)))):ga=Yc(n.l,n.m,n.h)),h}function RPe(n,e){var t,i,r,c,s,f,h,l,a,d;for(l=n.e[e.c.p][e.p]+1,h=e.c.a.c.length+1,f=new M(n.a);f.a<f.c.c.length;){for(s=u(E(f),12),d=0,c=0,r=$h(Eo(S(C(Ao,1),Rn,20,0,[new nm(s),new ip(s)])));pe(r);)i=u(fe(r),12),i.i.c==e.c&&(d+=p1e(n,i.i)+1,++c);t=d/c,a=s.j,a==(en(),Zn)?t<l?n.f[s.p]=n.c-t:n.f[s.p]=n.b+(h-t):a==Wn&&(t<l?n.f[s.p]=n.b+t:n.f[s.p]=n.c-(h-t))}}function So(n,e,t){var i,r,c,s,f;if(n==null)throw T(new th(gu));for(c=n.length,s=c>0&&(zn(0,n.length),n.charCodeAt(0)==45||(zn(0,n.length),n.charCodeAt(0)==43))?1:0,i=s;i<c;i++)if(XKn((zn(i,n.length),n.charCodeAt(i)))==-1)throw T(new th(zb+n+'"'));if(f=parseInt(n,10),r=f<e,isNaN(f))throw T(new th(zb+n+'"'));if(r||f>t)throw T(new th(zb+n+'"'));return f}function KPe(n){var e,t,i,r,c,s,f;for(s=new Mt,c=new M(n.a);c.a<c.c.c.length;)r=u(E(c),118),JA(r,r.f.c.length),SE(r,r.k.c.length),r.i==0&&(r.o=0,xt(s,r,s.c.b,s.c));for(;s.b!=0;)for(r=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),118),i=r.o+1,t=new M(r.f);t.a<t.c.c.length;)e=u(E(t),132),f=e.a,wG(f,y.Math.max(f.o,i)),SE(f,f.i-1),f.i==0&&xt(s,f,s.c.b,s.c)}function BPe(n){var e,t,i,r,c,s,f,h;for(s=new M(n);s.a<s.c.c.length;){for(c=u(E(s),74),i=Gr(u(N((!c.b&&(c.b=new Dn(he,c,4,7)),c.b),0),84)),f=i.i,h=i.j,r=u(N((!c.a&&(c.a=new q(Tt,c,6,6)),c.a),0),166),j7(r,r.j+f,r.k+h),y7(r,r.b+f,r.c+h),t=new ne((!r.a&&(r.a=new ti(xo,r,5)),r.a));t.e!=t.i.gc();)e=u(ue(t),377),gN(e,e.a+f,e.b+h);xQ(u(z(c,(He(),mw)),75),f,h)}}function I4(n){var e;switch(n){case 100:return Zg(E8,!0);case 68:return Zg(E8,!1);case 119:return Zg(NF,!0);case 87:return Zg(NF,!1);case 115:return Zg(DF,!0);case 83:return Zg(DF,!1);case 99:return Zg($F,!0);case 67:return Zg($F,!1);case 105:return Zg(xF,!0);case 73:return Zg(xF,!1);default:throw T(new ec((e=n,zJn+e.toString(16))))}}function FPe(n){var e,t,i,r,c;switch(r=u(sn(n.a,0),10),e=new Cl(n),nn(n.a,e),e.o.a=y.Math.max(1,r.o.a),e.o.b=y.Math.max(1,r.o.b),e.n.a=r.n.a,e.n.b=r.n.b,u(v(r,(W(),gc)),64).g){case 4:e.n.a+=2;break;case 1:e.n.b+=2;break;case 2:e.n.a-=2;break;case 3:e.n.b-=2}return i=new Ic,ic(i,e),t=new yb,c=u(sn(r.j,0),12),Zi(t,c),Oi(t,i),it(ff(i.n),c.n),it(ff(i.a),c.a),e}function wUn(n,e,t,i,r){t&&(!i||(n.c-n.b&n.a.length-1)>1)&&e==1&&u(n.a[n.b],10).k==(Vn(),Sc)?t3(u(n.a[n.b],10),(Co(),nl)):i&&(!t||(n.c-n.b&n.a.length-1)>1)&&e==1&&u(n.a[n.c-1&n.a.length-1],10).k==(Vn(),Sc)?t3(u(n.a[n.c-1&n.a.length-1],10),(Co(),Pa)):(n.c-n.b&n.a.length-1)==2?(t3(u(f5(n),10),(Co(),nl)),t3(u(f5(n),10),Pa)):dTe(n,r),MJ(n)}function _Pe(n,e,t){var i,r,c,s,f;for(c=0,r=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));r.e!=r.i.gc();)i=u(ue(r),27),s="",(!i.n&&(i.n=new q(Sr,i,1,7)),i.n).i==0||(s=u(N((!i.n&&(i.n=new q(Sr,i,1,7)),i.n),0),135).a),f=new q$(c++,e,s),Ur(f,i),U(f,(pt(),r9),i),f.e.b=i.j+i.f/2,f.f.a=y.Math.max(i.g,1),f.e.a=i.i+i.g/2,f.f.b=y.Math.max(i.f,1),Re(e.b,f),Vc(t.f,i,f)}function HPe(n){var e,t,i,r,c;i=u(v(n,(W(),st)),27),c=u(z(i,(cn(),xd)),181).Hc((go(),Gd)),n.e||(r=u(v(n,Hc),21),e=new V(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),r.Hc((pr(),cs))?(ht(i,_t,(Ai(),qc)),qb(i,e.a,e.b,!1,!0)):on(un(z(i,SH)))||qb(i,e.a,e.b,!0,!0)),c?ht(i,xd,yn(Gd)):ht(i,xd,(t=u(of(S9),9),new _o(t,u(xs(t,t.length),9),0)))}function Oen(n,e,t){var i,r,c,s;if(e[0]>=n.length)return t.o=0,!0;switch(Xi(n,e[0])){case 43:r=1;break;case 45:r=-1;break;default:return t.o=0,!0}if(++e[0],c=e[0],s=yS(n,e),s==0&&e[0]==c)return!1;if(e[0]<n.length&&Xi(n,e[0])==58){if(i=s*60,++e[0],c=e[0],s=yS(n,e),s==0&&e[0]==c)return!1;i+=s}else i=s,i<24&&e[0]-c<=2?i*=60:i=i%100+(i/100|0)*60;return i*=r,t.o=-i,!0}function qPe(n){var e,t,i,r,c,s,f,h,l;for(s=new Z,i=new ie(ce(Qt(n.b).a.Kc(),new En));pe(i);)t=u(fe(i),18),fr(t)&&nn(s,new $Nn(t,mDn(n,t.c),mDn(n,t.d)));for(l=(c=new ol(n.e).a.vc().Kc(),new Cw(c));l.a.Ob();)f=(e=u(l.a.Pb(),44),u(e.md(),113)),f.d.p=0;for(h=(r=new ol(n.e).a.vc().Kc(),new Cw(r));h.a.Ob();)f=(e=u(h.a.Pb(),44),u(e.md(),113)),f.d.p==0&&nn(n.d,jPe(n,f))}function UPe(n){var e,t,i,r,c,s,f;for(c=Pf(n),r=new ne((!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e));r.e!=r.i.gc();)if(i=u(ue(r),74),f=Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84)),!Yw(f,c))return!0;for(t=new ne((!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d));t.e!=t.i.gc();)if(e=u(ue(t),74),s=Gr(u(N((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84)),!Yw(s,c))return!0;return!1}function GPe(n,e){var t,i,r,c,s,f,h,l,a;for(s=new M(e.b);s.a<s.c.c.length;)for(c=u(E(s),30),l=new M(c.a);l.a<l.c.c.length;){for(h=u(E(l),10),a=new Z,f=0,i=new ie(ce(ji(h).a.Kc(),new En));pe(i);)t=u(fe(i),18),!(fr(t)||!fr(t)&&t.c.i.c==t.d.i.c)&&(r=u(v(t,(cn(),O3)),17).a,r>f&&(f=r,a.c.length=0),r==f&&nn(a,new bi(t.c.i,t)));Ln(),Yt(a,n.c),ab(n.b,h.p,a)}}function zPe(n,e){var t,i,r,c,s,f,h,l,a;for(s=new M(e.b);s.a<s.c.c.length;)for(c=u(E(s),30),l=new M(c.a);l.a<l.c.c.length;){for(h=u(E(l),10),a=new Z,f=0,i=new ie(ce(Qt(h).a.Kc(),new En));pe(i);)t=u(fe(i),18),!(fr(t)||!fr(t)&&t.c.i.c==t.d.i.c)&&(r=u(v(t,(cn(),O3)),17).a,r>f&&(f=r,a.c.length=0),r==f&&nn(a,new bi(t.d.i,t)));Ln(),Yt(a,n.c),ab(n.f,h.p,a)}}function XPe(n,e){var t,i,r,c,s,f,h,l;if(l=un(v(e,(lc(),Ore))),l==null||(Jn(l),l)){for(mMe(n,e),r=new Z,h=ge(e.b,0);h.b!=h.d.c;)s=u(be(h),39),t=mnn(n,s,null),t&&(Ur(t,e),Bn(r.c,t));if(n.a=null,n.b=null,r.c.length>1)for(i=new M(r);i.a<i.c.c.length;)for(t=u(E(i),121),c=0,f=ge(t.b,0);f.b!=f.d.c;)s=u(be(f),39),s.g=c++;return r}return Af(S(C(TDe,1),jXn,121,0,[e]))}function VPe(n){var e,t,i,r,c,s,f,h;for(h=new Tu,e=ge(n,0),f=null,t=u(be(e),8),r=u(be(e),8);e.b!=e.d.c;)f=t,t=r,r=u(be(e),8),c=j$n(mi(new V(f.a,f.b),t)),s=j$n(mi(new V(r.a,r.b),t)),i=10,i=y.Math.min(i,y.Math.abs(c.a+c.b)/2),i=y.Math.min(i,y.Math.abs(s.a+s.b)/2),c.a=K7(c.a)*i,c.b=K7(c.b)*i,s.a=K7(s.a)*i,s.b=K7(s.b)*i,Re(h,it(c,t)),Re(h,it(s,t));return h}function WPe(n,e,t){var i,r,c,s,f,h;if(t.Ug("Minimize Crossings "+n.a,1),i=e.b.c.length==0||!om(ut(new Cn(null,new On(e.b,16)),new Y3(new Wpn))).Bd((Va(),v3)),h=e.b.c.length==1&&u(sn(e.b,0),30).a.c.length==1,c=x(v(e,(cn(),K0)))===x((jl(),T1)),i||h&&!c){t.Vg();return}r=KCe(n,e),s=(f=u(Zo(r,0),219),f.c.kg()?f.c.eg()?new F7n(n):new _7n(n):new B7n(n)),C6e(r,s),r5e(n),t.Vg()}function Po(n,e,t,i){var r,c,s,f,h;return s=n.Ph(),h=n.Jh(),r=null,h?e&&!(SR(n,e,t).Bb&hr)?(i=cr(h.El(),n,i),n.di(null),r=e.Qh()):h=null:(s&&(h=s.Qh()),e&&(r=e.Qh())),h!=r&&h&&h.Il(n),f=n.Fh(),n.Bh(e,t),h!=r&&r&&r.Hl(n),n.vh()&&n.wh()&&(s&&f>=0&&f!=t&&(c=new Mi(n,1,f,s,null),i?i.nj(c):i=c),t>=0&&(c=new Mi(n,1,t,f==t?s:null,e),i?i.nj(c):i=c)),i}function gUn(n){var e,t,i;if(n.b==null){if(i=new Hl,n.i!=null&&(Er(i,n.i),i.a+=":"),n.f&256){for(n.f&256&&n.a!=null&&(lge(n.i)||(i.a+="//"),Er(i,n.a)),n.d!=null&&(i.a+="/",Er(i,n.d)),n.f&16&&(i.a+="/"),e=0,t=n.j.length;e<t;e++)e!=0&&(i.a+="/"),Er(i,n.j[e]);n.g!=null&&(i.a+="?",Er(i,n.g))}else Er(i,n.a);n.e!=null&&(i.a+="#",Er(i,n.e)),n.b=i.a}return n.b}function JPe(n,e){var t,i,r,c,s,f;for(r=new M(e.a);r.a<r.c.c.length;)i=u(E(r),10),c=v(i,(W(),st)),L(c,12)&&(s=u(c,12),f=DUn(e,i,s.o.a,s.o.b),s.n.a=f.a,s.n.b=f.b,gi(s,u(v(i,gc),64)));t=new V(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),u(v(e,(W(),Hc)),21).Hc((pr(),cs))?(U(n,(cn(),_t),(Ai(),qc)),u(v(Hi(n),Hc),21).Fc(kv),jGn(n,t,!1)):jGn(n,t,!0)}function QPe(n,e,t,i,r){var c,s,f,h;c=new Cl(n),Ha(c,(Vn(),_c)),U(c,(cn(),_t),(Ai(),qc)),U(c,(W(),st),e.c.i),s=new Ic,U(s,st,e.c),gi(s,r),ic(s,c),U(e.c,Xu,c),f=new Cl(n),Ha(f,_c),U(f,_t,qc),U(f,st,e.d.i),h=new Ic,U(h,st,e.d),gi(h,r),ic(h,f),U(e.d,Xu,f),Zi(e,s),Oi(e,h),zw(0,t.c.length),l6(t.c,0,c),Bn(i.c,f),U(c,iO,Y(1)),U(f,iO,Y(1))}function YPe(n,e,t,i){var r,c,s,f,h;if(h=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),r=Se(er(Uh,xh(Se(er(t==null?0:mt(t),Gh)),15))),f=c5(n,e,h),s=r5(n,t,r),f&&r==f.a&&sh(t,f.g))return t;if(s&&!i)throw T(new Gn("key already present: "+t));return f&&zg(n,f),s&&zg(n,s),c=new vT(t,r,e,h),Zk(n,c,s),s&&(s.e=null,s.c=null),f&&(f.e=null,f.c=null),lFn(n),f?f.g:null}function pUn(n,e,t){var i,r,c,s,f;for(c=0;c<e;c++){for(i=0,f=c+1;f<e;f++)i=nr(nr(er(vi(n[c],mr),vi(n[f],mr)),vi(t[c+f],mr)),vi(Se(i),mr)),t[c+f]=Se(i),i=G1(i,32);t[c+e]=Se(i)}for(hve(t,t,e<<1),i=0,r=0,s=0;r<e;++r,s++)i=nr(nr(er(vi(n[r],mr),vi(n[r],mr)),vi(t[s],mr)),vi(Se(i),mr)),t[s]=Se(i),i=G1(i,32),++s,i=nr(i,vi(t[s],mr)),t[s]=Se(i),i=G1(i,32);return t}function mUn(n,e,t){var i,r,c,s,f,h,l,a;if(!Nm(e)){for(h=$(B(r0(t.c,(cn(),G8)))),l=u(r0(t.c,Cj),140),!l&&(l=new Wv),i=t.a,r=null,f=e.Kc();f.Ob();)s=u(f.Pb(),12),a=0,r?(a=h,a+=r.o.b):a=l.d,c=sb(i7(new za,s),n.f),Ve(n.k,s,c),qs(Ns(Ls(As(Ds(new hs,0),wi(y.Math.ceil(a))),i),c)),r=s,i=c;qs(Ns(Ls(As(Ds(new hs,0),wi(y.Math.ceil(l.a+r.o.b))),i),t.d))}}function ZPe(n,e,t,i,r,c,s,f){var h,l,a,d,g,p;return p=!1,g=c-t.s,a=t.t-e.f+(l=q5(t,g,!1),l.a),i.g+f>g?!1:(d=(h=q5(i,g,!1),h.a),a+f+d<=e.b&&(ck(t,c-t.s),t.c=!0,ck(i,c-t.s),_k(i,t.s,t.t+t.d+f),i.k=!0,BQ(t.q,i),p=!0,r&&(wC(e,i),i.j=e,n.c.length>s&&(Uk((Nn(s,n.c.length),u(n.c[s],186)),i),(Nn(s,n.c.length),u(n.c[s],186)).a.c.length==0&&Yl(n,s)))),p)}function nIe(n,e){var t,i,r,c,s,f;if(e.Ug("Partition midprocessing",1),r=new jb,Ut(ut(new Cn(null,new On(n.a,16)),new Hgn),new f7n(r)),r.d!=0){for(f=u(Wr(oJ((c=r.i,new Cn(null,(c||(r.i=new Tg(r,r.c))).Nc()))),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),i=f.Kc(),t=u(i.Pb(),17);i.Ob();)s=u(i.Pb(),17),zTe(u(ot(r,t),21),u(ot(r,s),21)),t=s;e.Vg()}}function vUn(n,e,t){var i,r,c,s,f,h,l,a;if(e.p==0){for(e.p=1,s=t,s||(r=new Z,c=(i=u(of(lr),9),new _o(i,u(xs(i,i.length),9),0)),s=new bi(r,c)),u(s.a,15).Fc(e),e.k==(Vn(),Zt)&&u(s.b,21).Fc(u(v(e,(W(),gc)),64)),h=new M(e.j);h.a<h.c.c.length;)for(f=u(E(h),12),a=$h(Eo(S(C(Ao,1),Rn,20,0,[new nm(f),new ip(f)])));pe(a);)l=u(fe(a),12),vUn(n,l.i,s);return s}return null}function B5(n,e){var t,i,r,c,s;if(n.Ab){if(n.Ab){if(s=n.Ab.i,s>0){if(r=u(n.Ab.g,2033),e==null){for(c=0;c<s;++c)if(t=r[c],t.d==null)return t}else for(c=0;c<s;++c)if(t=r[c],Sn(e,t.d))return t}}else if(e==null){for(i=new ne(n.Ab);i.e!=i.i.gc();)if(t=u(ue(i),598),t.d==null)return t}else for(i=new ne(n.Ab);i.e!=i.i.gc();)if(t=u(ue(i),598),Sn(e,t.d))return t}return null}function eIe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;p=d3e(n,GQ(e),r),IQ(p,bl(r,Eh)),Wt=null,m=r,k=J6(m,mWn),j=new Bkn(p),lje(j.a,k),P=J6(m,"endPoint"),O=new qkn(p),hje(O.a,P),A=Tb(m,BP),D=new zkn(p),Yke(D.a,A),d=bl(r,Scn),c=new mTn(n,p),Rae(c.a,c.b,d),g=bl(r,Ccn),s=new vTn(n,p),Kae(s.a,s.b,g),l=Tb(r,Icn),f=new kTn(t,p),D7e(f.b,f.a,l),a=Tb(r,Pcn),h=new yTn(i,p),$7e(h.b,h.a,a)}function Aen(n,e,t){var i,r,c,s,f;switch(f=null,e.g){case 1:for(r=new M(n.j);r.a<r.c.c.length;)if(i=u(E(r),12),on(un(v(i,(W(),lH)))))return i;f=new Ic,U(f,(W(),lH),(_n(),!0));break;case 2:for(s=new M(n.j);s.a<s.c.c.length;)if(c=u(E(s),12),on(un(v(c,(W(),dH)))))return c;f=new Ic,U(f,(W(),dH),(_n(),!0))}return f&&(ic(f,n),gi(f,t),R9e(f.n,n.o,t)),f}function kUn(n,e){var t,i,r,c,s,f;for(f=-1,s=new Mt,i=new Lf(n.b);tc(i.a)||tc(i.b);){for(t=u(tc(i.a)?E(i.a):E(i.b),18),f=y.Math.max(f,$(B(v(t,(cn(),m1))))),t.c==n?Ut(ut(new Cn(null,new On(t.b,16)),new K0n),new W9n(s)):Ut(ut(new Cn(null,new On(t.b,16)),new B0n),new J9n(s)),c=ge(s,0);c.b!=c.d.c;)r=u(be(c),72),kt(r,(W(),T3))||U(r,T3,t);hi(e,s),vo(s)}return f}function _b(n,e,t,i,r){var c,s,f,h,l;f=r?i.b:i.a,!sf(n.a,i)&&(l=f>t.s&&f<t.c,h=!1,t.e.b!=0&&t.j.b!=0&&(h=h|(y.Math.abs(f-$(B(gm(t.e))))<vh&&y.Math.abs(f-$(B(gm(t.j))))<vh),h=h|(y.Math.abs(f-$(B($s(t.e))))<vh&&y.Math.abs(f-$(B($s(t.j))))<vh)),(l||h)&&(s=u(v(e,(cn(),Rr)),75),s||(s=new Tu,U(e,Rr,s)),c=new rr(i),xt(s,c,s.c.b,s.c),fi(n.a,c)))}function tIe(n,e,t,i){var r,c,s,f,h,l,a;if(tMe(n,e,t,i))return!0;for(s=new M(e.f);s.a<s.c.c.length;){switch(c=u(E(s),334),f=!1,h=n.j-e.j+t,l=h+e.o,a=n.k-e.k+i,r=a+e.p,c.a.g){case 0:f=X$(n,h+c.b.a,0,h+c.c.a,a-1);break;case 1:f=X$(n,l,a+c.b.a,n.o-1,a+c.c.a);break;case 2:f=X$(n,h+c.b.a,r,h+c.c.a,n.p-1);break;default:f=X$(n,0,a+c.b.a,h-1,a+c.c.a)}if(f)return!0}return!1}function iIe(n,e,t){var i,r,c,s,f,h,l,a,d;for(t.Ug("Processor set coordinates",1),n.a=e.b.b==0?1:e.b.b,l=null,i=ge(e.b,0);!l&&i.b!=i.d.c;)d=u(be(i),39),on(un(v(d,(pt(),Ca))))&&(l=d,h=d.e,h.a=u(v(d,Dj),17).a,h.b=u(v(d,$j),17).a);f=R$(l),a=1;do f=cje((r=f,t.eh(a),r)),a=f.b/n.a|0;while(f.b!=0);for(s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),39),mi(c.e,new V(c.f.a/2,c.f.b/2));t.Vg()}function rIe(n,e,t){var i,r,c,s,f,h,l,a;for(t.Ug(aVn,1),Hu(n.b),Hu(n.a),f=null,c=ge(e.b,0);!f&&c.b!=c.d.c;)l=u(be(c),39),on(un(v(l,(pt(),Ca))))&&(f=l);for(h=new Mt,xt(h,f,h.c.b,h.c),JGn(n,h),a=ge(e.b,0);a.b!=a.d.c;)l=u(be(a),39),s=Ae(v(l,(pt(),i9))),r=Dc(n.b,s)!=null?u(Dc(n.b,s),17).a:0,U(l,tq,Y(r)),i=1+(Dc(n.a,s)!=null?u(Dc(n.a,s),17).a:0),U(l,gln,Y(i));t.Vg()}function yUn(n){ib(n,new gd(nb(Qd(Zd(Yd(new Fa,Qb),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new G4n))),Q(n,Qb,Xb,dan),Q(n,Qb,y0,15),Q(n,Qb,Ny,Y(0)),Q(n,Qb,acn,rn(han)),Q(n,Qb,r2,rn(Eue)),Q(n,Qb,a3,rn(Mue)),Q(n,Qb,l3,$Vn),Q(n,Qb,e8,rn(lan)),Q(n,Qb,d3,rn(aan)),Q(n,Qb,dcn,rn(Xq)),Q(n,Qb,TP,rn(jue))}function jUn(n,e){var t,i,r,c,s,f,h,l,a;if(r=n.i,s=r.o.a,c=r.o.b,s<=0&&c<=0)return en(),sc;switch(l=n.n.a,a=n.n.b,f=n.o.a,t=n.o.b,e.g){case 2:case 1:if(l<0)return en(),Wn;if(l+f>s)return en(),Zn;break;case 4:case 3:if(a<0)return en(),Xn;if(a+t>c)return en(),ae}return h=(l+f/2)/s,i=(a+t/2)/c,h+i<=1&&h-i<=0?(en(),Wn):h+i>=1&&h-i>=0?(en(),Zn):i<.5?(en(),Xn):(en(),ae)}function cIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(t=!1,a=$(B(v(e,(cn(),bw)))),m=ha*a,r=new M(e.b);r.a<r.c.c.length;)for(i=u(E(r),30),l=new M(i.a),c=u(E(l),10),d=vW(n.a[c.p]);l.a<l.c.c.length;)f=u(E(l),10),g=vW(n.a[f.p]),d!=g&&(p=jg(n.b,c,f),s=c.n.b+c.o.b+c.d.a+d.a+p,h=f.n.b-f.d.d+g.a,s>h+m&&(k=d.g+g.g,g.a=(g.g*g.a+d.g*d.a)/k,g.g=k,d.f=g,t=!0)),c=f,d=g;return t}function EUn(n,e,t,i,r,c,s){var f,h,l,a,d,g;for(g=new mp,l=e.Kc();l.Ob();)for(f=u(l.Pb(),853),d=new M(f.Rf());d.a<d.c.c.length;)a=u(E(d),187),x(a.of((He(),Yq)))===x(($f(),Rv))&&(eUn(g,a,!1,i,r,c,s),O5(n,g));for(h=t.Kc();h.Ob();)for(f=u(h.Pb(),853),d=new M(f.Rf());d.a<d.c.c.length;)a=u(E(d),187),x(a.of((He(),Yq)))===x(($f(),J0))&&(eUn(g,a,!0,i,r,c,s),O5(n,g))}function uIe(n,e,t){var i,r,c,s,f,h,l;for(s=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));s.e!=s.i.gc();)for(c=u(ue(s),27),r=new ie(ce(Sl(c).a.Kc(),new En));pe(r);)i=u(fe(r),74),!L5(i)&&!L5(i)&&!Bb(i)&&(h=u(Fr(wr(t.f,c)),39),l=u(ee(t,Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84))),39),h&&l&&(f=new VW(h,l),U(f,(pt(),r9),i),Ur(f,i),Re(h.d,f),Re(l.b,f),Re(e.a,f)))}function oIe(n,e){var t,i,r,c,s,f,h,l;for(h=u(u(ot(n.r,e),21),87).Kc();h.Ob();)f=u(h.Pb(),117),r=f.c?HPn(f.c):0,r>0?f.a?(l=f.b.Mf().b,r>l&&(n.v||f.c.d.c.length==1?(s=(r-l)/2,f.d.d=s,f.d.a=s):(t=u(sn(f.c.d,0),187).Mf().b,i=(t-l)/2,f.d.d=y.Math.max(0,i),f.d.a=r-i-l))):f.d.a=n.t+r:K6(n.u)&&(c=nnn(f.b),c.d<0&&(f.d.d=-c.d),c.d+c.a>f.b.Mf().b&&(f.d.a=c.d+c.a-f.b.Mf().b))}function Us(){Us=R,k3=new Di((He(),Wj),Y(1)),yI=new Di(qd,80),tZn=new Di(qan,5),zYn=new Di(x2,U4),nZn=new Di(oU,Y(1)),eZn=new Di(sU,(_n(),!0)),gon=new ob(50),YYn=new Di(M1,gon),don=Xj,pon=m9,XYn=new Di(Qq,!1),won=Vj,JYn=V0,QYn=Sa,WYn=Hd,VYn=F2,ZYn=W0,bon=(hnn(),BYn),k_=qYn,kI=KYn,v_=FYn,mon=HYn,cZn=v9,uZn=cA,rZn=Jj,iZn=rA,von=(Gp(),Y0),new Di($3,von)}function sIe(n,e){var t;switch(dk(n)){case 6:return Si(e);case 7:return $w(e);case 8:return Dw(e);case 3:return Array.isArray(e)&&(t=dk(e),!(t>=14&&t<=16));case 11:return e!=null&&typeof e===eK;case 12:return e!=null&&(typeof e===my||typeof e==eK);case 0:return Cx(e,n.__elementTypeId$);case 2:return uD(e)&&e.Tm!==Q2;case 1:return uD(e)&&e.Tm!==Q2||Cx(e,n.__elementTypeId$);default:return!0}}function MUn(n,e){var t,i,r,c;return i=y.Math.min(y.Math.abs(n.c-(e.c+e.b)),y.Math.abs(n.c+n.b-e.c)),c=y.Math.min(y.Math.abs(n.d-(e.d+e.a)),y.Math.abs(n.d+n.a-e.d)),t=y.Math.abs(n.c+n.b/2-(e.c+e.b/2)),t>n.b/2+e.b/2||(r=y.Math.abs(n.d+n.a/2-(e.d+e.a/2)),r>n.a/2+e.a/2)?1:t==0&&r==0?0:t==0?c/r+1:r==0?i/t+1:y.Math.min(i/t,c/r)+1}function fIe(n,e){var t,i,r,c,s,f,h;for(c=0,f=0,h=0,r=new M(n.f.e);r.a<r.c.c.length;)i=u(E(r),153),e!=i&&(s=n.i[e.a][i.a],c+=s,t=Q1(e.d,i.d),t>0&&n.d!=(n5(),E_)&&(f+=s*(i.d.a+n.a[e.a][i.a]*(e.d.a-i.d.a)/t)),t>0&&n.d!=(n5(),y_)&&(h+=s*(i.d.b+n.a[e.a][i.a]*(e.d.b-i.d.b)/t)));switch(n.d.g){case 1:return new V(f/c,e.d.b);case 2:return new V(e.d.a,h/c);default:return new V(f/c,h/c)}}function TUn(n){var e,t,i,r,c,s;for(t=(!n.a&&(n.a=new ti(xo,n,5)),n.a).i+2,s=new Gc(t),nn(s,new V(n.j,n.k)),Ut(new Cn(null,(!n.a&&(n.a=new ti(xo,n,5)),new On(n.a,16))),new $kn(s)),nn(s,new V(n.b,n.c)),e=1;e<s.c.length-1;)i=(Nn(e-1,s.c.length),u(s.c[e-1],8)),r=(Nn(e,s.c.length),u(s.c[e],8)),c=(Nn(e+1,s.c.length),u(s.c[e+1],8)),i.a==r.a&&r.a==c.a||i.b==r.b&&r.b==c.b?Yl(s,e):++e;return s}function CUn(n,e){r4();var t,i,r,c,s;if(s=u(v(n.i,(cn(),_t)),101),c=n.j.g-e.j.g,c!=0||!(s==(Ai(),Ud)||s==tl||s==qc))return 0;if(s==(Ai(),Ud)&&(t=u(v(n,v1),17),i=u(v(e,v1),17),t&&i&&(r=t.a-i.a,r!=0)))return r;switch(n.j.g){case 1:return bt(n.n.a,e.n.a);case 2:return bt(n.n.b,e.n.b);case 3:return bt(e.n.a,n.n.a);case 4:return bt(e.n.b,n.n.b);default:throw T(new Ar(nin))}}function SUn(n,e){var t,i,r,c,s,f,h;for(t=nSn(oMn(cMn(uMn(new XG,e),new PT(e.e)),ZZn),n.a),e.j.c.length==0||DDn(u(sn(e.j,0),60).a,t),h=new rL,Ve(n.e,t,h),s=new ni,f=new ni,c=new M(e.k);c.a<c.c.c.length;)r=u(E(c),18),fi(s,r.c),fi(f,r.d);i=s.a.gc()-f.a.gc(),i<0?(Tk(h,!0,(ci(),Kr)),Tk(h,!1,Xr)):i>0&&(Tk(h,!1,(ci(),Kr)),Tk(h,!0,Xr)),nu(e.g,new KMn(n,t)),Ve(n.g,e,t)}function PUn(){PUn=R;var n;for(pun=S(C(ye,1),_e,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),WF=F(ye,_e,28,37,15,1),gQn=S(C(ye,1),_e,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),mun=F(Ka,PK,28,37,14,1),n=2;n<=36;n++)WF[n]=wi(y.Math.pow(n,pun[n])),mun[n]=zk(jy,WF[n])}function hIe(n){var e;if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i!=1)throw T(new Gn(tWn+(!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i));return e=new Tu,Ek(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84))&&Ki(e,gzn(n,Ek(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84)),!1)),Ek(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))&&Ki(e,gzn(n,Ek(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84)),!0)),e}function IUn(n,e){var t,i,r,c,s;for(e.d?r=n.a.c==(fh(),gw)?ji(e.b):Qt(e.b):r=n.a.c==(fh(),y1)?ji(e.b):Qt(e.b),c=!1,i=new ie(ce(r.a.Kc(),new En));pe(i);)if(t=u(fe(i),18),s=on(n.a.f[n.a.g[e.b.p].p]),!(!s&&!fr(t)&&t.c.i.c==t.d.i.c)&&!(on(n.a.n[n.a.g[e.b.p].p])||on(n.a.n[n.a.g[e.b.p].p]))&&(c=!0,sf(n.b,n.a.g[h7e(t,e.b).p])))return e.c=!0,e.a=t,e;return e.c=c,e.a=null,e}function Len(n,e,t){var i,r,c,s,f,h,l;if(i=t.gc(),i==0)return!1;if(n.Pj())if(h=n.Qj(),HY(n,e,t),s=i==1?n.Ij(3,null,t.Kc().Pb(),e,h):n.Ij(5,null,t,e,h),n.Mj()){for(f=i<100?null:new K1(i),c=e+i,r=e;r<c;++r)l=n.xj(r),f=n.Nj(l,f),f=f;f?(f.nj(s),f.oj()):n.Jj(s)}else n.Jj(s);else if(HY(n,e,t),n.Mj()){for(f=i<100?null:new K1(i),c=e+i,r=e;r<c;++r)f=n.Nj(n.xj(r),f);f&&f.oj()}return!0}function OUn(n,e,t){var i,r,c,s,f;return n.Pj()?(r=null,c=n.Qj(),i=n.Ij(1,f=(s=n.Dj(e,n.Zi(e,t)),s),t,e,c),n.Mj()&&!(n.Yi()&&f?ct(f,t):x(f)===x(t))&&(f&&(r=n.Oj(f,r)),r=n.Nj(t,r)),r?(r.nj(i),r.oj()):n.Jj(i),f):(f=(s=n.Dj(e,n.Zi(e,t)),s),n.Mj()&&!(n.Yi()&&f?ct(f,t):x(f)===x(t))&&(r=null,f&&(r=n.Oj(f,null)),r=n.Nj(t,r),r&&r.oj()),f)}function Nen(n,e){var t,i,r,c,s,f,h,l,a;if(n.e=e,n.f=u(v(e,(Y1(),jI)),234),Rye(e),n.d=y.Math.max(e.e.c.length*16+e.c.c.length,256),!on(un(v(e,(Us(),don)))))for(a=n.e.e.c.length,h=new M(e.e);h.a<h.c.c.length;)f=u(E(h),153),l=f.d,l.a=fW(n.f)*a,l.b=fW(n.f)*a;for(t=e.b,c=new M(e.c);c.a<c.c.c.length;)if(r=u(E(c),289),i=u(v(r,mon),17).a,i>0){for(s=0;s<i;s++)nn(t,new qIn(r));W_n(r)}}function AUn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;if(g=new qw(n.Zg()),bf(e,Qe,g),t&&!n.Xg().a.dc())for(a=new _a,bf(e,"logs",a),f=0,m=new W3(n.Xg().b.Kc());m.b.Ob();)p=Ae(m.b.Pb()),d=new qw(p),Jw(a,f),qD(a,f,d),++f;if(i&&(l=new CE(n.Wg()),bf(e,"executionTime",l)),!n.Yg().a.dc())for(s=new _a,bf(e,gF,s),f=0,c=new W3(n.Yg().b.Kc());c.b.Ob();)r=u(c.b.Pb(),871),h=new sp,Jw(s,f),qD(s,f,h),AUn(r,h,t,i),++f}function Den(){Den=R,AL(),Ise=new S5n,S(C(K3,2),J,381,0,[S(C(K3,1),iI,600,0,[new Y9(xJn)])]),S(C(K3,2),J,381,0,[S(C(K3,1),iI,600,0,[new Y9(Jcn)])]),S(C(K3,2),J,381,0,[S(C(K3,1),iI,600,0,[new Y9(RJn)]),S(C(K3,1),iI,600,0,[new Y9(Jcn)])]),new q1("-1"),S(C(K3,2),J,381,0,[S(C(K3,1),iI,600,0,[new Y9("\\c+")])]),new q1("0"),new q1("0"),new q1("1"),new q1("0"),new q1(qJn)}function lIe(n,e){var t,i,r,c,s,f,h,l,a,d;for(e.Ug("Hypernodes processing",1),r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),f=new M(i.a);f.a<f.c.c.length;)if(s=u(E(f),10),on(un(v(s,(cn(),wO))))&&s.j.c.length<=2){for(d=0,a=0,t=0,c=0,l=new M(s.j);l.a<l.c.c.length;)switch(h=u(E(l),12),h.j.g){case 1:++d;break;case 2:++a;break;case 3:++t;break;case 4:++c}d==0&&t==0&&wNe(n,s,c<=a)}e.Vg()}function aIe(n,e,t,i,r){var c,s,f,h,l,a,d;for(s=new M(e);s.a<s.c.c.length;){if(c=u(E(s),18),h=c.c,t.a._b(h))l=(Eb(),Ta);else if(i.a._b(h))l=(Eb(),O2);else throw T(new Gn("Source port must be in one of the port sets."));if(a=c.d,t.a._b(a))d=(Eb(),Ta);else if(i.a._b(a))d=(Eb(),O2);else throw T(new Gn("Target port must be in one of the port sets."));f=new C_n(c,l,d),Ve(n.b,c,f),Bn(r.c,f)}}function KS(n){var e,t;return n.c&&n.c.Vh()&&(t=u(n.c,54),n.c=u(ta(n,t),142),n.c!=t&&(n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,9,2,t,n.c)),L(n.Cb,411)?n.Db>>16==-15&&n.Cb.Yh()&&h$(new c$(n.Cb,9,13,t,n.c,f1(no(u(n.Cb,62)),n))):L(n.Cb,90)&&n.Db>>16==-23&&n.Cb.Yh()&&(e=n.c,L(e,90)||(e=(An(),Os)),L(t,90)||(t=(An(),Os)),h$(new c$(n.Cb,9,10,t,e,f1(Pc(u(n.Cb,29)),n)))))),n.c}function dIe(n,e,t){var i,r,c,s,f,h,l,a,d;for(t.Ug("Hyperedge merging",1),RMe(n,e),h=new xi(e.b,0);h.b<h.d.gc();)if(f=(oe(h.b<h.d.gc()),u(h.d.Xb(h.c=h.b++),30)),a=f.a,a.c.length!=0)for(i=null,r=null,c=null,s=null,l=0;l<a.c.length;l++)i=(Nn(l,a.c.length),u(a.c[l],10)),r=i.k,r==(Vn(),Ti)&&s==Ti&&(d=sOe(i,c),d.a&&(sSe(i,c,d.b,d.c),Nn(l,a.c.length),Sz(a.c,l,1),--l,i=c,r=s)),c=i,s=r;t.Vg()}function LUn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;if(e==t)return!0;if(e=_nn(n,e),t=_nn(n,t),i=Nx(e),i){if(a=Nx(t),a!=i)return a?(h=i.mk(),m=a.mk(),h==m&&h!=null):!1;if(s=(!e.d&&(e.d=new ti(jr,e,1)),e.d),c=s.i,g=(!t.d&&(t.d=new ti(jr,t,1)),t.d),c==g.i){for(l=0;l<c;++l)if(r=u(N(s,l),89),d=u(N(g,l),89),!LUn(n,r,d))return!1}return!0}else return f=e.e,p=t.e,f==p}function NUn(n,e,t,i){var r,c,s,f,h,l,a,d;if(Pl(n.e,e)){for(d=ru(n.e.Dh(),e),c=u(n.g,124),a=null,h=-1,f=-1,r=0,l=0;l<n.i;++l)s=c[l],d.am(s.Lk())&&(r==t&&(h=l),r==i&&(f=l,a=s.md()),++r);if(h==-1)throw T(new Or(vF+t+Cd+r));if(f==-1)throw T(new Or(kF+i+Cd+r));return m5(n,h,f),fo(n.e)&&em(n,W1(n,7,e,Y(i),a,t,!0)),a}else throw T(new Gn("The feature must be many-valued to support move"))}function DUn(n,e,t,i){var r,c,s,f,h;switch(h=new rr(e.n),h.a+=e.o.a/2,h.b+=e.o.b/2,f=$(B(v(e,(cn(),F0)))),c=n.f,s=n.d,r=n.c,u(v(e,(W(),gc)),64).g){case 1:h.a+=s.b+r.a-t/2,h.b=-i-f,e.n.b=-(s.d+f+r.b);break;case 2:h.a=c.a+s.b+s.c+f,h.b+=s.d+r.b-i/2,e.n.a=c.a+s.c+f-r.a;break;case 3:h.a+=s.b+r.a-t/2,h.b=c.b+s.d+s.a+f,e.n.b=c.b+s.a+f-r.b;break;case 4:h.a=-t-f,h.b+=s.d+r.b-i/2,e.n.a=-(s.b+f+r.a)}return h}function $Un(n){var e,t,i,r,c,s;return i=new yQ,Ur(i,n),x(v(i,(cn(),Lo)))===x((ci(),Jf))&&U(i,Lo,FC(i)),v(i,(JT(),d9))==null&&(s=u(VFn(n),167),U(i,d9,PM(s.of(d9)))),U(i,(W(),st),n),U(i,Hc,(e=u(of(rH),9),new _o(e,u(xs(e,e.length),9),0))),r=aLe((St(n)&&(Aw(),new Pw(St(n))),Aw(),new TN(St(n)?new Pw(St(n)):null,n)),Xr),c=u(v(i,shn),107),t=i.d,aAn(t,c),aAn(t,r),i}function bIe(n,e,t){var i,r;i=e.c.i,r=t.d.i,i.k==(Vn(),Ti)?(U(n,(W(),yf),u(v(i,yf),12)),U(n,Es,u(v(i,Es),12)),U(n,$0,un(v(i,$0)))):i.k==Sc?(U(n,(W(),yf),u(v(i,yf),12)),U(n,Es,u(v(i,Es),12)),U(n,$0,(_n(),!0))):r.k==Sc?(U(n,(W(),yf),u(v(r,yf),12)),U(n,Es,u(v(r,Es),12)),U(n,$0,(_n(),!0))):(U(n,(W(),yf),e.c),U(n,Es,t.d))}function wIe(n){var e,t,i,r,c,s,f;for(n.o=new Mg,i=new Mt,s=new M(n.e.a);s.a<s.c.c.length;)c=u(E(s),125),xg(c).c.length==1&&xt(i,c,i.c.b,i.c);for(;i.b!=0;)c=u(i.b==0?null:(oe(i.b!=0),Xo(i,i.a.a)),125),xg(c).c.length!=0&&(e=u(sn(xg(c),0),218),t=c.g.a.c.length>0,f=HC(e,c),zX(t?f.b:f.g,e),xg(f).c.length==1&&xt(i,f,i.c.b,i.c),r=new bi(c,e),J1(n.o,r),du(n.e.a,c))}function xUn(n,e){var t,i,r,c,s,f,h;return i=y.Math.abs(wT(n.b).a-wT(e.b).a),f=y.Math.abs(wT(n.b).b-wT(e.b).b),r=0,h=0,t=1,s=1,i>n.b.b/2+e.b.b/2&&(r=y.Math.min(y.Math.abs(n.b.c-(e.b.c+e.b.b)),y.Math.abs(n.b.c+n.b.b-e.b.c)),t=1-r/i),f>n.b.a/2+e.b.a/2&&(h=y.Math.min(y.Math.abs(n.b.d-(e.b.d+e.b.a)),y.Math.abs(n.b.d+n.b.a-e.b.d)),s=1-h/f),c=y.Math.min(t,s),(1-c)*y.Math.sqrt(i*i+f*f)}function gIe(n){var e,t,i,r;for(JR(n,n.e,n.f,(Eb(),Ta),!0,n.c,n.i),JR(n,n.e,n.f,Ta,!1,n.c,n.i),JR(n,n.e,n.f,O2,!0,n.c,n.i),JR(n,n.e,n.f,O2,!1,n.c,n.i),aIe(n,n.c,n.e,n.f,n.i),i=new xi(n.i,0);i.b<i.d.gc();)for(e=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),131)),r=new xi(n.i,i.b);r.b<r.d.gc();)t=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),131)),tAe(e,t);TNe(n.i,u(v(n.d,(W(),P3)),234)),BAe(n.i)}function AR(n,e){var t,i;if(e!=null){if(i=Kb(n),i)if(i.i&1){if(i==so)return Dw(e);if(i==ye)return L(e,17);if(i==cg)return L(e,161);if(i==Ru)return L(e,222);if(i==fs)return L(e,180);if(i==Ii)return $w(e);if(i==V2)return L(e,191);if(i==Ka)return L(e,168)}else return tM(),t=u(ee(yA,i),57),!t||t.fk(e);else if(L(e,58))return n.dl(u(e,58))}return!1}function $en(){$en=R;var n,e,t,i,r,c,s,f,h;for(nh=F(Ru,s2,28,255,15,1),A1=F(fs,gh,28,64,15,1),e=0;e<255;e++)nh[e]=-1;for(t=90;t>=65;t--)nh[t]=t-65<<24>>24;for(i=122;i>=97;i--)nh[i]=i-97+26<<24>>24;for(r=57;r>=48;r--)nh[r]=r-48+52<<24>>24;for(nh[43]=62,nh[47]=63,c=0;c<=25;c++)A1[c]=65+c&ui;for(s=26,h=0;s<=51;++s,h++)A1[s]=97+h&ui;for(n=52,f=0;n<=61;++n,f++)A1[n]=48+f&ui;A1[62]=43,A1[63]=47}function RUn(n,e){var t,i,r,c,s,f;return r=DQ(n),f=DQ(e),r==f?n.e==e.e&&n.a<54&&e.a<54?n.f<e.f?-1:n.f>e.f?1:0:(i=n.e-e.e,t=(n.d>0?n.d:y.Math.floor((n.a-1)*Uzn)+1)-(e.d>0?e.d:y.Math.floor((e.a-1)*Uzn)+1),t>i+1?r:t<i-1?-r:(c=(!n.c&&(n.c=W7(vc(n.f))),n.c),s=(!e.c&&(e.c=W7(vc(e.f))),e.c),i<0?c=Og(c,VUn(-i)):i>0&&(s=Og(s,VUn(i))),zKn(c,s))):r<f?-1:1}function pIe(n,e,t){var i,r,c,s,f,h,l,a;for(t.Ug(MXn,1),n.vf(e),c=0;n.xf(c)&&!t.$g();){for(n.wf(),a=$h(Eo(S(C(Ao,1),Rn,20,0,[e.e,e.d,e.b])));pe(a);)for(h=u(fe(a),309),f=$h(Eo(S(C(Ao,1),Rn,20,0,[e.e,e.d,e.b])));pe(f);)s=u(fe(f),309),s!=h&&(r=n.uf(s,h),r&&it(h.c,r));for(l=$h(Eo(S(C(Ao,1),Rn,20,0,[e.e,e.d,e.b])));pe(l);)h=u(fe(l),309),i=h.c,u_n(i,-n.d,-n.d,n.d,n.d),it(h.d,i),i.a=0,i.b=0;++c}t.Vg()}function mIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(n.dc())return new Ni;for(l=0,d=0,r=n.Kc();r.Ob();)i=u(r.Pb(),36),c=i.f,l=y.Math.max(l,c.a),d+=c.a*c.b;for(l=y.Math.max(l,y.Math.sqrt(d)*$(B(v(u(n.Kc().Pb(),36),(cn(),oO))))),g=0,p=0,h=0,t=e,f=n.Kc();f.Ob();)s=u(f.Pb(),36),a=s.f,g+a.a>l&&(g=0,p+=h+e,h=0),S4(s,g,p),t=y.Math.max(t,g+a.a),h=y.Math.max(h,a.b),g+=a.a+e;return new V(t+e,p+h+e)}function xen(n,e){var t,i,r,c,s,f,h;if(!Pf(n))throw T(new Ar(eWn));if(i=Pf(n),c=i.g,r=i.f,c<=0&&r<=0)return en(),sc;switch(f=n.i,h=n.j,e.g){case 2:case 1:if(f<0)return en(),Wn;if(f+n.g>c)return en(),Zn;break;case 4:case 3:if(h<0)return en(),Xn;if(h+n.f>r)return en(),ae}return s=(f+n.g/2)/c,t=(h+n.f/2)/r,s+t<=1&&s-t<=0?(en(),Wn):s+t>=1&&s-t>=0?(en(),Zn):t<.5?(en(),Xn):(en(),ae)}function vIe(n,e,t,i,r){var c,s;if(c=nr(vi(e[0],mr),vi(i[0],mr)),n[0]=Se(c),c=db(c,32),t>=r){for(s=1;s<r;s++)c=nr(c,nr(vi(e[s],mr),vi(i[s],mr))),n[s]=Se(c),c=db(c,32);for(;s<t;s++)c=nr(c,vi(e[s],mr)),n[s]=Se(c),c=db(c,32)}else{for(s=1;s<t;s++)c=nr(c,nr(vi(e[s],mr),vi(i[s],mr))),n[s]=Se(c),c=db(c,32);for(;s<r;s++)c=nr(c,vi(i[s],mr)),n[s]=Se(c),c=db(c,32)}Ec(c,0)!=0&&(n[s]=Se(c))}function b0(n){nt();var e,t,i,r,c,s;if(n.e!=4&&n.e!=5)throw T(new Gn("Token#complementRanges(): must be RANGE: "+n.e));for(c=n,Gg(c),U5(c),i=c.b.length+2,c.b[0]==0&&(i-=2),t=c.b[c.b.length-1],t==rv&&(i-=2),r=new yo(4),r.b=F(ye,_e,28,i,15,1),s=0,c.b[0]>0&&(r.b[s++]=0,r.b[s++]=c.b[0]-1),e=1;e<c.b.length-2;e+=2)r.b[s++]=c.b[e]+1,r.b[s++]=c.b[e+1]-1;return t!=rv&&(r.b[s++]=t+1,r.b[s]=rv),r.a=!0,r}function kIe(n,e){var t,i,r,c,s,f,h,l,a;for(e.Ug("Layer constraint edge reversal",1),s=new M(n.b);s.a<s.c.c.length;){for(c=u(E(s),30),a=-1,t=new Z,l=Q7(c.a),r=0;r<l.length;r++)i=u(v(l[r],(W(),Ad)),311),a==-1?i!=(vl(),k2)&&(a=r):i==(vl(),k2)&&($i(l[r],null),u0(l[r],a++,c)),i==(vl(),E3)&&Bn(t.c,l[r]);for(h=new M(t);h.a<h.c.c.length;)f=u(E(h),10),$i(f,null),$i(f,c)}e.Vg()}function LR(n,e,t){var i,r,c,s,f,h,l,a;if(i=t.gc(),i==0)return!1;if(n.Pj())if(l=n.Qj(),Zx(n,e,t),s=i==1?n.Ij(3,null,t.Kc().Pb(),e,l):n.Ij(5,null,t,e,l),n.Mj()){for(f=i<100?null:new K1(i),c=e+i,r=e;r<c;++r)a=n.g[r],f=n.Nj(a,f),f=n.Uj(a,f);f?(f.nj(s),f.oj()):n.Jj(s)}else n.Jj(s);else if(Zx(n,e,t),n.Mj()){for(f=i<100?null:new K1(i),c=e+i,r=e;r<c;++r)h=n.g[r],f=n.Nj(h,f);f&&f.oj()}return!0}function yIe(n,e){var t,i,r,c,s,f,h,l,a;for(e.Ug("Hierarchical port dummy size processing",1),h=new Z,a=new Z,i=$(B(v(n,(cn(),T2)))),t=i*2,c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),h.c.length=0,a.c.length=0,f=new M(r.a);f.a<f.c.c.length;)s=u(E(f),10),s.k==(Vn(),Zt)&&(l=u(v(s,(W(),gc)),64),l==(en(),Xn)?Bn(h.c,s):l==ae&&Bn(a.c,s));gHn(h,!0,t),gHn(a,!1,t)}e.Vg()}function Ren(n,e,t,i){var r,c,s,f,h;for(s=new M(n.k);s.a<s.c.c.length;)r=u(E(s),132),(!i||r.c==(af(),Ma))&&(h=r.b,h.g<0&&r.d>0&&(JA(h,h.d-r.d),r.c==(af(),Ma)&&ife(h,h.a-r.d),h.d<=0&&h.i>0&&xt(e,h,e.c.b,e.c)));for(c=new M(n.f);c.a<c.c.c.length;)r=u(E(c),132),(!i||r.c==(af(),Ma))&&(f=r.a,f.g<0&&r.d>0&&(SE(f,f.i-r.d),r.c==(af(),Ma)&&rfe(f,f.b-r.d),f.i<=0&&f.d>0&&xt(t,f,t.c.b,t.c)))}function jIe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p;for(Ln(),Yt(n,new W4n),s=$7(n),p=new Z,g=new Z,f=null,h=0;s.b!=0;)c=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),163),!f||Pu(f)*ao(f)/2<Pu(c)*ao(c)?(f=c,Bn(p.c,c)):(h+=Pu(c)*ao(c),Bn(g.c,c),g.c.length>1&&(h>Pu(f)*ao(f)/2||s.b==0)&&(d=new hC(g),a=Pu(f)/ao(f),l=QR(d,e,new up,t,i,r,a),it(ff(d.e),l),f=d,Bn(p.c,d),h=0,g.c.length=0));return hi(p,g),p}function Oc(n,e,t,i,r){fl();var c,s,f,h,l,a,d;if(SW(n,"src"),SW(t,"dest"),d=wo(n),h=wo(t),zV((d.i&4)!=0,"srcType is not an array"),zV((h.i&4)!=0,"destType is not an array"),a=d.c,s=h.c,zV(a.i&1?a==s:(s.i&1)==0,"Array types don't match"),s6e(n,e,t,i,r),!(a.i&1)&&d!=h)if(l=cd(n),c=cd(t),x(n)===x(t)&&e<i)for(e+=r,f=i+r;f-- >i;)$t(c,f,l[--e]);else for(f=i+r;i<f;)$t(c,i++,l[e++]);else $nn(n,e,t,i,r,!0)}function KUn(n,e){var t,i,r,c,s,f,h,l,a;switch(e.Ug("Box layout",2),r=J9(B(z(n,(mS(),Cue)))),c=u(z(n,Tue),107),t=on(un(z(n,han))),i=on(un(z(n,lan))),u(z(n,Xq),320).g){case 0:s=(a=new _u((!n.a&&(n.a=new q(Ye,n,10,11)),n.a)),Ln(),Yt(a,new Lkn(i)),a),f=knn(n),h=B(z(n,fan)),(h==null||(Jn(h),h<=0))&&(h=1.3),l=nNe(s,r,c,f.a,f.b,t,(Jn(h),h)),qb(n,l.a,l.b,!1,!0);break;default:zOe(n,r,c,t)}e.Vg()}function EIe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m;for(g=Vke(n,t),h=0;h<e;h++){for(Bw(r,t),p=new Z,m=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),418)),a=g+h;a<n.b;a++)f=m,m=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),418)),nn(p,new dqn(f,m,t));for(d=g+h;d<n.b;d++)oe(i.b>0),i.a.Xb(i.c=--i.b),d>g+h&&bo(i);for(s=new M(p);s.a<s.c.c.length;)c=u(E(s),418),Bw(i,c);if(h<e-1)for(l=g+h;l<n.b;l++)oe(i.b>0),i.a.Xb(i.c=--i.b)}}function MIe(){nt();var n,e,t,i,r,c;if(IU)return IU;for(n=new yo(4),g0(n,fa(RF,!0)),z5(n,fa("M",!0)),z5(n,fa("C",!0)),c=new yo(4),i=0;i<11;i++)xc(c,i,i);return e=new yo(4),g0(e,fa("M",!0)),xc(e,4448,4607),xc(e,65438,65439),r=new C6(2),pd(r,n),pd(r,B9),t=new C6(2),t.Jm(cT(c,fa("L",!0))),t.Jm(e),t=new Xw(3,t),t=new CW(r,t),IU=t,IU}function w0(n,e){var t,i,r,c,s,f,h,l;for(t=new RegExp(e,"g"),h=F(fn,J,2,0,6,1),i=0,l=n,c=null;;)if(f=t.exec(l),f==null||l==""){h[i]=l;break}else s=f.index,h[i]=(Ri(0,s,l.length),l.substr(0,s)),l=qo(l,s+f[0].length,l.length),t.lastIndex=0,c==l&&(h[i]=(Ri(0,1,l.length),l.substr(0,1)),l=(zn(1,l.length+1),l.substr(1))),c=l,++i;if(n.length>0){for(r=h.length;r>0&&h[r-1]=="";)--r;r<h.length&&(h.length=r)}return h}function lc(){lc=R,Iln=new ob(20),Pln=new Di((He(),M1),Iln),sq=new Di(qd,20),Aln=new Di(Uan,3),yre=new Di(x2,U4),RO=new Di(Wj,Y(1)),Ore=new Di(sU,(_n(),!0)),Mln=Gj,Tln=(ci(),Jf),pw=new Di(_d,Tln),jre=Xj,Ere=nU,Tre=Hd,Cre=V0,Sre=_2,Pre=Sa,Mre=F2,Sln=Vj,Ire=W0,Nln=(Fnn(),kre),Oln=mre,Nre=v9,Dre=cA,Lre=Jj,Are=rA,Lln=(Gp(),Y0),new Di($3,Lln),A2=pre,oq=gre,Ph=vre,Eln=bre,Cln=wre}function TIe(n){var e,t;if(e=Ae(z(n,(He(),Dv))),!xxn(e,n)&&!Nf(n,q2)&&((!n.a&&(n.a=new q(Ye,n,10,11)),n.a).i!=0||on(un(z(n,zj)))))if(e==null||f0(e).length==0){if(!xxn(Yn,n))throw t=Be(Be(new mo("Unable to load default layout algorithm "),Yn)," for unconfigured node "),GS(n,t),T(new _l(t.a))}else throw t=Be(Be(new mo("Layout algorithm '"),e),"' not found for "),GS(n,t),T(new _l(t.a))}function NR(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;if(t=n.i,e=n.n,n.b==0)for(p=t.c+e.b,g=t.b-e.b-e.c,s=n.a,h=0,a=s.length;h<a;++h)r=s[h],fT(r,p,g);else i=SBn(n,!1),fT(n.a[0],t.c+e.b,i[0]),fT(n.a[2],t.c+t.b-e.c-i[2],i[2]),d=t.b-e.b-e.c,i[0]>0&&(d-=i[0]+n.c,i[0]+=n.c),i[2]>0&&(d-=i[2]+n.c),i[1]=y.Math.max(i[1],d),fT(n.a[1],t.c+e.b+i[0]-(i[1]-d)/2,i[1]);for(c=n.a,f=0,l=c.length;f<l;++f)r=c[f],L(r,336)&&u(r,336).lf()}function CIe(n){var e,t,i,r,c,s,f,h,l,a,d;for(d=new E3n,d.d=0,s=new M(n.b);s.a<s.c.c.length;)c=u(E(s),30),d.d+=c.a.c.length;for(i=0,r=0,d.a=F(ye,_e,28,n.b.c.length,15,1),l=0,a=0,d.e=F(ye,_e,28,d.d,15,1),t=new M(n.b);t.a<t.c.c.length;)for(e=u(E(t),30),e.p=i++,d.a[e.p]=r++,a=0,h=new M(e.a);h.a<h.c.c.length;)f=u(E(h),10),f.p=l++,d.e[f.p]=a++;return d.c=new ckn(d),d.b=Lh(d.d),GPe(d,n),d.f=Lh(d.d),zPe(d,n),d}function BUn(n,e){var t,i,r,c;for(c=u(sn(n.n,n.n.c.length-1),209).d,n.p=y.Math.min(n.p,e.g),n.r=y.Math.max(n.r,c),n.g=y.Math.max(n.g,e.g+(n.b.c.length==1?0:n.i)),n.o=y.Math.min(n.o,e.f),n.e+=e.f+(n.b.c.length==1?0:n.i),n.f=y.Math.max(n.f,e.f),r=n.n.c.length>0?(n.n.c.length-1)*n.i:0,i=new M(n.n);i.a<i.c.c.length;)t=u(E(i),209),r+=t.a;n.d=r,n.a=n.e/n.b.c.length-n.i*((n.b.c.length-1)/n.b.c.length),mZ(n.j)}function FUn(n,e){var t,i,r,c,s,f,h,l,a,d;if(a=un(v(e,(Us(),eZn))),a==null||(Jn(a),a)){for(d=F(so,Xh,28,e.e.c.length,16,1),s=dMe(e),r=new Mt,l=new M(e.e);l.a<l.c.c.length;)f=u(E(l),153),t=Jnn(n,f,null,null,d,s),t&&(Ur(t,e),xt(r,t,r.c.b,r.c));if(r.b>1)for(i=ge(r,0);i.b!=i.d.c;)for(t=u(be(i),235),c=0,h=new M(t.e);h.a<h.c.c.length;)f=u(E(h),153),f.a=c++;return r}return Af(S(C(mDe,1),jXn,235,0,[e]))}function bh(n){var e,t,i,r,c,s,f;if(!n.g){if(f=new qA,e=N9,s=e.a.zc(n,e),s==null){for(i=new ne(Hr(n));i.e!=i.i.gc();)t=u(ue(i),29),Bt(f,bh(t));e.a.Bc(n)!=null,e.a.gc()==0}for(r=f.i,c=(!n.s&&(n.s=new q(ku,n,21,17)),new ne(n.s));c.e!=c.i.gc();++r)afe(u(ue(c),461),r);Bt(f,(!n.s&&(n.s=new q(ku,n,21,17)),n.s)),e0(f),n.g=new dRn(n,f),n.i=u(f.g,254),n.i==null&&(n.i=jU),n.p=null,Zu(n).b&=-5}return n.g}function SIe(n,e){var t,i,r,c,s,f,h,l,a;if(t=e.qi(n.a),t&&(h=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),"memberTypes")),h!=null)){for(l=new Z,c=w0(h,"\\w"),s=0,f=c.length;s<f;++s)r=c[s],i=r.lastIndexOf("#"),a=i==-1?eV(n,e.jk(),r):i==0?uk(n,null,(zn(1,r.length+1),r.substr(1))):uk(n,(Ri(0,i,r.length),r.substr(0,i)),(zn(i+1,r.length+1),r.substr(i+1))),L(a,156)&&nn(l,u(a,156));return l}return Ln(),Ln(),sr}function DR(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m;if(i=n.i,t=n.n,n.b==0)e=CBn(n,!1),hT(n.a[0],i.d+t.d,e[0]),hT(n.a[2],i.d+i.a-t.a-e[2],e[2]),g=i.a-t.d-t.a,d=g,e[0]>0&&(e[0]+=n.c,d-=e[0]),e[2]>0&&(d-=e[2]+n.c),e[1]=y.Math.max(e[1],d),hT(n.a[1],i.d+t.d+e[0]-(e[1]-d)/2,e[1]);else for(m=i.d+t.d,p=i.a-t.d-t.a,s=n.a,h=0,a=s.length;h<a;++h)r=s[h],hT(r,m,p);for(c=n.a,f=0,l=c.length;f<l;++f)r=c[f],L(r,336)&&u(r,336).mf()}function PIe(n){var e,t,i,r,c,s,f,h,l,a;for(a=F(ye,_e,28,n.b.c.length+1,15,1),l=new ni,i=0,c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),a[i++]=l.a.gc(),h=new M(r.a);h.a<h.c.c.length;)for(s=u(E(h),10),t=new ie(ce(Qt(s).a.Kc(),new En));pe(t);)e=u(fe(t),18),l.a.zc(e,l);for(f=new M(r.a);f.a<f.c.c.length;)for(s=u(E(f),10),t=new ie(ce(ji(s).a.Kc(),new En));pe(t);)e=u(fe(t),18),l.a.Bc(e)!=null}return a}function BS(n,e,t,i){var r,c,s,f,h;if(h=ru(n.e.Dh(),e),r=u(n.g,124),dr(),u(e,69).xk()){for(s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk())&&ct(c,t))return!0}else if(t!=null){for(f=0;f<n.i;++f)if(c=r[f],h.am(c.Lk())&&ct(t,c.md()))return!0;if(i){for(s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk())&&x(t)===x(ON(n,u(c.md(),58))))return!0}}else for(s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk())&&c.md()==null)return!1;return!1}function IIe(n,e){var t,i,r,c,s,f;if(t=e.qi(n.a),t&&(f=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),FP)),f!=null))switch(r=xM(f,wu(35)),i=e.qk(),r==-1?(s=R6(n,jo(i)),c=f):r==0?(s=null,c=(zn(1,f.length+1),f.substr(1))):(s=(Ri(0,r,f.length),f.substr(0,r)),c=(zn(r+1,f.length+1),f.substr(r+1))),vb(Nr(n,e))){case 2:case 3:return f6e(n,i,s,c);case 0:case 4:case 5:case 6:return h6e(n,i,s,c)}return null}function _Un(n,e,t,i){var r,c,s,f;for(f=t,s=new M(e.a);s.a<s.c.c.length;){if(c=u(E(s),225),r=u(c.b,68),Db(n.b.c,r.b.c+r.b.b)<=0&&Db(r.b.c,n.b.c+n.b.b)<=0&&Db(n.b.d,r.b.d+r.b.a)<=0&&Db(r.b.d,n.b.d+n.b.a)<=0){if(Db(r.b.c,n.b.c+n.b.b)==0&&i.a<0||Db(r.b.c+r.b.b,n.b.c)==0&&i.a>0||Db(r.b.d,n.b.d+n.b.a)==0&&i.b<0||Db(r.b.d+r.b.a,n.b.d)==0&&i.b>0){f=0;break}}else f=y.Math.min(f,x_n(n,r,i));f=y.Math.min(f,_Un(n,c,f,i))}return f}function ay(n,e){var t,i,r,c,s,f,h;if(n.b<2)throw T(new Gn("The vector chain must contain at least a source and a target point."));for(r=(oe(n.b!=0),u(n.a.a.c,8)),j7(e,r.a,r.b),h=new kp((!e.a&&(e.a=new ti(xo,e,5)),e.a)),s=ge(n,1);s.a<n.b-1;)f=u(be(s),8),h.e!=h.i.gc()?t=u(ue(h),377):(t=(B1(),i=new kE,i),OKn(h,t)),gN(t,f.a,f.b);for(;h.e!=h.i.gc();)ue(h),I5(h);c=(oe(n.b!=0),u(n.c.b.c,8)),y7(e,c.a,c.b)}function HUn(n,e,t,i){var r,c,s,f,h,l;if(l=ru(n.e.Dh(),e),s=u(n.g,124),Pl(n.e,e)){if(e.Si()&&(c=O4(n,e,i,L(e,102)&&(u(e,19).Bb&hr)!=0),c>=0&&c!=t))throw T(new Gn(Xy));for(r=0,h=0;h<n.i;++h)if(f=s[h],l.am(f.Lk())){if(r==t)return u(Bg(n,h,(dr(),u(e,69).xk()?u(i,76):Rh(e,i))),76);++r}throw T(new Or(w8+t+Cd+r))}else{for(h=0;h<n.i;++h)if(f=s[h],l.am(f.Lk()))return dr(),u(e,69).xk()?f:f.md();return null}}function qUn(n,e){var t,i,r,c,s,f,h,l,a;for(t=0,r=new M((Nn(0,n.c.length),u(n.c[0],105)).g.b.j);r.a<r.c.c.length;)i=u(E(r),12),i.p=t++;for(e==(en(),Xn)?Yt(n,new Tpn):Yt(n,new Cpn),f=0,a=n.c.length-1;f<a;)s=(Nn(f,n.c.length),u(n.c[f],105)),l=(Nn(a,n.c.length),u(n.c[a],105)),c=e==Xn?s.c:s.a,h=e==Xn?l.a:l.c,Vl(s,e,(xf(),lv),c),Vl(l,e,hv,h),++f,--a;f==a&&Vl((Nn(f,n.c.length),u(n.c[f],105)),e,(xf(),j3),null)}function OIe(n,e,t,i){var r,c,s,f,h,l;for(s=new kGn(n,e,t),h=new xi(i,0),r=!1;h.b<h.d.gc();)f=(oe(h.b<h.d.gc()),u(h.d.Xb(h.c=h.b++),239)),f==e||f==t?bo(h):!r&&$(Sf(f.g,f.d[0]).a)>$(Sf(s.g,s.d[0]).a)?(oe(h.b>0),h.a.Xb(h.c=--h.b),Bw(h,s),r=!0):f.e&&f.e.gc()>0&&(c=(!f.e&&(f.e=new Z),f.e).Mc(e),l=(!f.e&&(f.e=new Z),f.e).Mc(t),(c||l)&&((!f.e&&(f.e=new Z),f.e).Fc(s),++s.c));r||Bn(i.c,s)}function AIe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;return d=n.a.i+n.a.g/2,g=n.a.i+n.a.g/2,m=e.i+e.g/2,j=e.j+e.f/2,f=new V(m,j),l=u(z(e,(He(),N3)),8),l.a=l.a+d,l.b=l.b+g,c=(f.b-l.b)/(f.a-l.a),i=f.b-c*f.a,k=t.i+t.g/2,P=t.j+t.f/2,h=new V(k,P),a=u(z(t,N3),8),a.a=a.a+d,a.b=a.b+g,s=(h.b-a.b)/(h.a-a.a),r=h.b-s*h.a,p=(i-r)/(s-c),l.a<p&&f.a<p||p<l.a&&p<f.a?!1:!(a.a<p&&h.a<p||p<a.a&&p<h.a)}function LIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(g=u(ee(n.c,e),190),!g)throw T(new eh("Edge did not exist in input."));return l=b4(g),c=Z9((!e.a&&(e.a=new q(Tt,e,6,6)),e.a)),f=!c,f&&(p=new _a,t=new vPn(n,l,p),yle((!e.a&&(e.a=new q(Tt,e,6,6)),e.a),t),bf(g,Tcn,p)),r=Nf(e,(He(),mw)),r&&(a=u(z(e,mw),75),s=!a||uOn(a),h=!s,h&&(d=new _a,i=new tyn(d),qi(a,i),bf(g,"junctionPoints",d))),ym(g,"container",X7(e).k),null}function UUn(n,e,t,i){var r,c,s,f,h,l;if(!Nm(e)){if(l=t.eh((L(e,16)?u(e,16).gc():wl(e.Kc()))/n.a|0),l.Ug(dVn,1),h=new fmn,f=0,i==(ci(),Kr)||i==Xr)for(s=e.Kc();s.Ob();)r=u(s.Pb(),39),h=Eo(S(C(Ao,1),Rn,20,0,[h,new sl(r)])),f<r.f.a&&(f=r.f.a);else for(s=e.Kc();s.Ob();)r=u(s.Pb(),39),h=Eo(S(C(Ao,1),Rn,20,0,[h,new sl(r)])),f<r.f.b&&(f=r.f.b);for(c=e.Kc();c.Ob();)r=u(c.Pb(),39),U(r,(pt(),xO),f);l.Vg(),UUn(n,h,t,i)}}function Ken(n,e,t){var i,r,c,s,f,h,l,a;this.a=n,this.b=e,this.c=t,this.e=Af(S(C(wDe,1),Rn,177,0,[new bp(n,e),new bp(e,t),new bp(t,n)])),this.f=Af(S(C(Ei,1),J,8,0,[n,e,t])),this.d=(i=mi(Fi(this.b),this.a),r=mi(Fi(this.c),this.a),c=mi(Fi(this.c),this.b),s=i.a*(this.a.a+this.b.a)+i.b*(this.a.b+this.b.b),f=r.a*(this.a.a+this.c.a)+r.b*(this.a.b+this.c.b),h=2*(i.a*c.b-i.b*c.a),l=(r.b*s-i.b*f)/h,a=(i.a*f-r.a*s)/h,new V(l,a))}function Hb(n,e){var t,i,r,c,s,f;for(c=n.c,s=n.d,Zi(n,null),Oi(n,null),e&&on(un(v(s,(W(),lH))))?Zi(n,Aen(s.i,(gr(),Jc),(en(),Zn))):Zi(n,s),e&&on(un(v(c,(W(),dH))))?Oi(n,Aen(c.i,(gr(),Vu),(en(),Wn))):Oi(n,c),i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),72),r=u(v(t,(cn(),Sh)),278),r==($f(),Rv)?U(t,Sh,J0):r==J0&&U(t,Sh,Rv);f=on(un(v(n,(W(),zf)))),U(n,zf,(_n(),!f)),n.a=Sk(n.a)}function NIe(n,e){var t,i,r,c,s;return t=g4(u(v(e,(lc(),pw)),88)),n.b.b==0?null:(s=u(Wr(_r(new Cn(null,new On(n.b,16)),new V3n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),c=u(Wr(ut(new Cn(null,new On(e.b,16)),new okn(s)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),r=B(ho(_w(_r(c.Oc(),new skn(t)),(kb(),kb(),YF)))),i=u(ho(t4(ut(c.Oc(),new ZMn(t,r)))),39),i)}function DIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;t=sb(new za,n.f),l=n.i[e.c.i.p],p=n.i[e.d.i.p],h=e.c,g=e.d,f=h.a.b,d=g.a.b,l.b||(f+=h.n.b),p.b||(d+=g.n.b),a=wi(y.Math.max(0,f-d)),s=wi(y.Math.max(0,d-f)),m=(k=y.Math.max(1,u(v(e,(cn(),O3)),17).a),j=EJ(e.c.i.k,e.d.i.k),k*j),r=qs(Ns(Ls(As(Ds(new hs,m),s),t),u(ee(n.k,e.c),125))),c=qs(Ns(Ls(As(Ds(new hs,m),a),t),u(ee(n.k,e.d),125))),i=new HMn(r,c),n.c[e.p]=i}function $Ie(n,e,t){var i,r,c,s,f,h;for(i=0,c=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));c.e!=c.i.gc();)r=u(ue(c),27),s="",(!r.n&&(r.n=new q(Sr,r,1,7)),r.n).i==0||(s=u(N((!r.n&&(r.n=new q(Sr,r,1,7)),r.n),0),135).a),f=new mCn(s),Ur(f,r),U(f,(Y1(),y3),r),f.a=i++,f.d.a=r.i+r.g/2,f.d.b=r.j+r.f/2,f.e.a=y.Math.max(r.g,1),f.e.b=y.Math.max(r.f,1),nn(e.e,f),Vc(t.f,r,f),h=u(z(r,(Us(),pon)),101),h==(Ai(),Oa)&&(h=Qf)}function xIe(n,e){var t,i,r,c,s,f,h;e.Ug("Layer constraint postprocessing",1),h=n.b,h.c.length!=0&&(i=(Nn(0,h.c.length),u(h.c[0],30)),s=u(sn(h,h.c.length-1),30),t=new Nc(n),c=new Nc(n),EPe(n,i,s,t,c),t.a.c.length==0||(zw(0,h.c.length),l6(h.c,0,t)),c.a.c.length==0||Bn(h.c,c)),kt(n,(W(),hH))&&(r=new Nc(n),f=new Nc(n),bSe(n,r,f),r.a.c.length==0||(zw(0,h.c.length),l6(h.c,0,r)),f.a.c.length==0||Bn(h.c,f)),e.Vg()}function dy(n){var e,t,i;switch(n){case 91:case 93:case 45:case 94:case 44:case 92:i="\\"+String.fromCharCode(n&ui);break;case 12:i="\\f";break;case 10:i="\\n";break;case 13:i="\\r";break;case 9:i="\\t";break;case 27:i="\\e";break;default:n<32?(t=(e=n>>>0,"0"+e.toString(16)),i="\\x"+qo(t,t.length-2,t.length)):n>=hr?(t=(e=n>>>0,"0"+e.toString(16)),i="\\v"+qo(t,t.length-6,t.length)):i=""+String.fromCharCode(n&ui)}return i}function GUn(n){var e,t,i;if(mg(u(v(n,(cn(),_t)),101)))for(t=new M(n.j);t.a<t.c.c.length;)e=u(E(t),12),e.j==(en(),sc)&&(i=u(v(e,(W(),Xu)),10),i?gi(e,u(v(i,gc),64)):e.e.c.length-e.g.c.length<0?gi(e,Zn):gi(e,Wn));else{for(t=new M(n.j);t.a<t.c.c.length;)e=u(E(t),12),i=u(v(e,(W(),Xu)),10),i?gi(e,u(v(i,gc),64)):e.e.c.length-e.g.c.length<0?gi(e,(en(),Zn)):gi(e,(en(),Wn));U(n,_t,(Ai(),Bv))}}function Ben(n){var e,t,i,r,c,s;for(this.e=new Z,this.a=new Z,t=n.b-1;t<3;t++)wm(n,0,u(Zo(n,0),8));if(n.b<4)throw T(new Gn("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,hTe(this,n.b+this.b-1),s=new Z,c=new M(this.e),e=0;e<this.b-1;e++)nn(s,B(E(c)));for(r=ge(n,0);r.b!=r.d.c;)i=u(be(r),8),nn(s,B(E(c))),nn(this.a,new tAn(i,s)),Nn(0,s.c.length),s.c.splice(0,1)}function zUn(n,e){var t,i,r,c,s,f,h,l,a;for(c=new M(n.b);c.a<c.c.c.length;)for(r=u(E(c),30),f=new M(r.a);f.a<f.c.c.length;)for(s=u(E(f),10),s.k==(Vn(),Sc)&&(h=(l=u(fe(new ie(ce(ji(s).a.Kc(),new En))),18),a=u(fe(new ie(ce(Qt(s).a.Kc(),new En))),18),!on(un(v(l,(W(),zf))))||!on(un(v(a,zf)))?e:oRn(e)),t3(s,h)),i=new ie(ce(Qt(s).a.Kc(),new En));pe(i);)t=u(fe(i),18),h=on(un(v(t,(W(),zf))))?oRn(e):e,nRn(t,h)}function RIe(n,e,t,i,r){var c,s,f;if(t.f>=e.o&&t.f<=e.f||e.a*.5<=t.f&&e.a*1.5>=t.f){if(s=u(sn(e.n,e.n.c.length-1),209),s.e+s.d+t.g+r<=i&&(c=u(sn(e.n,e.n.c.length-1),209),c.f-n.f+t.f<=n.b||n.a.c.length==1))return DY(e,t),!0;if(e.s+t.g<=i&&(e.t+e.d+t.f+r<=n.b||n.a.c.length==1))return nn(e.b,t),f=u(sn(e.n,e.n.c.length-1),209),nn(e.n,new DT(e.s,f.f+f.a+e.i,e.i)),bZ(u(sn(e.n,e.n.c.length-1),209),t),BUn(e,t),!0}return!1}function XUn(n,e,t){var i,r,c,s;return n.Pj()?(r=null,c=n.Qj(),i=n.Ij(1,s=d$(n,e,t),t,e,c),n.Mj()&&!(n.Yi()&&s!=null?ct(s,t):x(s)===x(t))?(s!=null&&(r=n.Oj(s,r)),r=n.Nj(t,r),n.Tj()&&(r=n.Wj(s,t,r)),r?(r.nj(i),r.oj()):n.Jj(i)):(n.Tj()&&(r=n.Wj(s,t,r)),r?(r.nj(i),r.oj()):n.Jj(i)),s):(s=d$(n,e,t),n.Mj()&&!(n.Yi()&&s!=null?ct(s,t):x(s)===x(t))&&(r=null,s!=null&&(r=n.Oj(s,null)),r=n.Nj(t,r),r&&r.oj()),s)}function KIe(n,e){var t,i,r,c,s;if(e.Ug("Path-Like Graph Wrapping",1),n.b.c.length==0){e.Vg();return}if(r=new qnn(n),s=(r.i==null&&(r.i=$Q(r,new zU)),$(r.i)*r.f),t=s/(r.i==null&&(r.i=$Q(r,new zU)),$(r.i)),r.b>t){e.Vg();return}switch(u(v(n,(cn(),LH)),351).g){case 2:c=new VU;break;case 0:c=new GU;break;default:c=new WU}if(i=c.og(n,r),!c.pg())switch(u(v(n,jO),352).g){case 2:i=R_n(r,i);break;case 1:i=SFn(r,i)}DOe(n,r,i),e.Vg()}function F5(n,e){var t,i,r,c,s,f,h,l;e%=24,n.q.getHours()!=e&&(i=new y.Date(n.q.getTime()),i.setDate(i.getDate()+1),f=n.q.getTimezoneOffset()-i.getTimezoneOffset(),f>0&&(h=f/60|0,l=f%60,r=n.q.getDate(),t=n.q.getHours(),t+h>=24&&++r,c=new y.Date(n.q.getFullYear(),n.q.getMonth(),r,e+h,n.q.getMinutes()+l,n.q.getSeconds(),n.q.getMilliseconds()),n.q.setTime(c.getTime()))),s=n.q.getTime(),n.q.setTime(s+36e5),n.q.getHours()!=e&&n.q.setTime(s)}function BIe(n,e){var t,i,r,c;if(Y2e(n.d,n.e),n.c.a.$b(),$(B(v(e.j,(cn(),hO))))!=0||$(B(v(e.j,hO)))!=0)for(t=i2,x(v(e.j,Yh))!==x((lh(),k1))&&U(e.j,(W(),ya),(_n(),!0)),c=u(v(e.j,z8),17).a,r=0;r<c&&(i=ZIe(n,e),!(i<t&&(t=i,pxn(n),t==0)));r++);else for(t=et,x(v(e.j,Yh))!==x((lh(),k1))&&U(e.j,(W(),ya),(_n(),!0)),c=u(v(e.j,z8),17).a,r=0;r<c&&(i=YUn(n,e),!(i<t&&(t=i,pxn(n),t==0)));r++);}function FIe(n,e){var t,i,r,c,s,f,h,l;for(s=new Z,f=0,t=0,h=0;f<e.c.length-1&&t<n.gc();){for(i=u(n.Xb(t),17).a+h;(Nn(f+1,e.c.length),u(e.c[f+1],17)).a<i;)++f;for(l=0,c=i-(Nn(f,e.c.length),u(e.c[f],17)).a,r=(Nn(f+1,e.c.length),u(e.c[f+1],17)).a-i,c>r&&++l,nn(s,(Nn(f+l,e.c.length),u(e.c[f+l],17))),h+=(Nn(f+l,e.c.length),u(e.c[f+l],17)).a-i,++t;t<n.gc()&&u(n.Xb(t),17).a+h<=(Nn(f+l,e.c.length),u(e.c[f+l],17)).a;)++t;f+=1+l}return s}function _Ie(n,e){var t,i,r,c,s;for(s=new ie(ce(ji(e).a.Kc(),new En));pe(s);)if(c=u(fe(s),18),n.f.b==0?(r=c.c.i.k==(Vn(),Xt)&&!!c.c.i.c&&c.c.i.c.p==n.c,pe(new ie(ce(ji(c.c.i).a.Kc(),new En)))?(t=u(fe(new ie(ce(ji(c.c.i).a.Kc(),new En))),18).c.i.c,i=c.c.i.k==Sc&&!!t&&t.p==n.c):i=!1):(r=c.c.i.k==(Vn(),Xt)&&c.c.i.p==n.c,i=c.c.i.k==Sc&&u(fe(new ie(ce(ji(c.c.i).a.Kc(),new En))),18).c.i.p==n.c),r||i)return!0;return!1}function HIe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(g=new Z,P=HT(i),j=e*n.a,d=0,m=0,c=new ni,s=new ni,f=new Z,O=0,A=0,p=0,k=0,l=0,a=0;P.a.gc()!=0;)h=x5e(P,r,s),h&&(P.a.Bc(h)!=null,Bn(f.c,h),c.a.zc(h,c),m=n.f[h.p],O+=n.e[h.p]-m*n.b,d=n.c[h.p],A+=d*n.b,a+=m*n.b,k+=n.e[h.p]),(!h||P.a.gc()==0||O>=j&&n.e[h.p]>m*n.b||A>=t*j)&&(Bn(g.c,f),f=new Z,Ki(s,c),c.a.$b(),l-=a,p=y.Math.max(p,l*n.b+k),l+=A,O=A,A=0,a=0,k=0);return new bi(p,g)}function $R(n){var e,t,i,r,c,s,f;if(!n.d){if(f=new yvn,e=N9,c=e.a.zc(n,e),c==null){for(i=new ne(Hr(n));i.e!=i.i.gc();)t=u(ue(i),29),Bt(f,$R(t));e.a.Bc(n)!=null,e.a.gc()==0}for(s=f.i,r=(!n.q&&(n.q=new q(Ps,n,11,10)),new ne(n.q));r.e!=r.i.gc();++s)u(ue(r),411);Bt(f,(!n.q&&(n.q=new q(Ps,n,11,10)),n.q)),e0(f),n.d=new pg((u(N(H((z1(),Hn).o),9),19),f.i),f.g),n.e=u(f.g,688),n.e==null&&(n.e=Joe),Zu(n).b&=-17}return n.d}function O4(n,e,t,i){var r,c,s,f,h,l;if(l=ru(n.e.Dh(),e),h=0,r=u(n.g,124),dr(),u(e,69).xk()){for(s=0;s<n.i;++s)if(c=r[s],l.am(c.Lk())){if(ct(c,t))return h;++h}}else if(t!=null){for(f=0;f<n.i;++f)if(c=r[f],l.am(c.Lk())){if(ct(t,c.md()))return h;++h}if(i){for(h=0,s=0;s<n.i;++s)if(c=r[s],l.am(c.Lk())){if(x(t)===x(ON(n,u(c.md(),58))))return h;++h}}}else for(s=0;s<n.i;++s)if(c=r[s],l.am(c.Lk())){if(c.md()==null)return h;++h}return-1}function qIe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k;if(t.Xh(e)&&(a=(p=e,p?u(i,54).gi(p):null),a))if(k=t.Nh(e,n.a),m=e.t,m>1||m==-1)if(d=u(k,71),g=u(a,71),d.dc())g.$b();else for(s=!!br(e),c=0,f=n.a?d.Kc():d.Ii();f.Ob();)l=u(f.Pb(),58),r=u(Df(n,l),58),r?(s?(h=g.dd(r),h==-1?g.Gi(c,r):c!=h&&g.Ui(c,r)):g.Gi(c,r),++c):n.b&&!s&&(g.Gi(c,l),++c);else k==null?a.Wb(null):(r=Df(n,k),r==null?n.b&&!br(e)&&a.Wb(k):a.Wb(r))}function UIe(n,e){var t,i,r,c,s,f,h,l;for(t=new ugn,r=new ie(ce(ji(e).a.Kc(),new En));pe(r);)if(i=u(fe(r),18),!fr(i)&&(f=i.c.i,JZ(f,TI))){if(l=ben(n,f,TI,MI),l==-1)continue;t.b=y.Math.max(t.b,l),!t.a&&(t.a=new Z),nn(t.a,f)}for(s=new ie(ce(Qt(e).a.Kc(),new En));pe(s);)if(c=u(fe(s),18),!fr(c)&&(h=c.d.i,JZ(h,MI))){if(l=ben(n,h,MI,TI),l==-1)continue;t.d=y.Math.max(t.d,l),!t.c&&(t.c=new Z),nn(t.c,h)}return t}function GIe(n,e,t,i){var r,c,s,f,h,l,a;if(t.d.i!=e.i){for(r=new Cl(n),Ha(r,(Vn(),Ti)),U(r,(W(),st),t),U(r,(cn(),_t),(Ai(),qc)),Bn(i.c,r),s=new Ic,ic(s,r),gi(s,(en(),Wn)),f=new Ic,ic(f,r),gi(f,Zn),a=t.d,Oi(t,s),c=new yb,Ur(c,t),U(c,Rr,null),Zi(c,f),Oi(c,a),l=new xi(t.b,0);l.b<l.d.gc();)h=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),72)),x(v(h,Sh))===x(($f(),J0))&&(U(h,T3,t),bo(l),nn(c.b,h));CHn(r,s,f)}}function zIe(n,e,t,i){var r,c,s,f,h,l,a;if(t.c.i!=e.i)for(r=new Cl(n),Ha(r,(Vn(),Ti)),U(r,(W(),st),t),U(r,(cn(),_t),(Ai(),qc)),Bn(i.c,r),s=new Ic,ic(s,r),gi(s,(en(),Wn)),f=new Ic,ic(f,r),gi(f,Zn),Oi(t,s),c=new yb,Ur(c,t),U(c,Rr,null),Zi(c,f),Oi(c,e),CHn(r,s,f),l=new xi(t.b,0);l.b<l.d.gc();)h=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),72)),a=u(v(h,Sh),278),a==($f(),J0)&&(kt(h,T3)||U(h,T3,t),bo(l),nn(c.b,h))}function VUn(n){C4();var e,t,i,r;if(e=wi(n),n<S8.length)return S8[e];if(n<=50)return iy((dh(),QF),e);if(n<=d1)return Rp(iy(m3[1],e),e);if(n>1e6)throw T(new FE("power of ten too big"));if(n<=et)return Rp(iy(m3[1],e),e);for(i=iy(m3[1],et),r=i,t=vc(n-et),e=wi(n%et);Ec(t,et)>0;)r=Og(r,i),t=bs(t,et);for(r=Og(r,iy(m3[1],e)),r=Rp(r,et),t=vc(n-et);Ec(t,et)>0;)r=Rp(r,et),t=bs(t,et);return r=Rp(r,e),r}function WUn(n){var e,t,i,r,c,s,f,h,l,a;for(h=new M(n.a);h.a<h.c.c.length;)if(f=u(E(h),10),f.k==(Vn(),Zt)&&(r=u(v(f,(W(),gc)),64),r==(en(),Zn)||r==Wn))for(i=new ie(ce(Ml(f).a.Kc(),new En));pe(i);)t=u(fe(i),18),e=t.a,e.b!=0&&(l=t.c,l.i==f&&(c=(oe(e.b!=0),u(e.a.a.c,8)),c.b=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])).b),a=t.d,a.i==f&&(s=(oe(e.b!=0),u(e.c.b.c,8)),s.b=cc(S(C(Ei,1),J,8,0,[a.i.n,a.n,a.a])).b))}function _5(n,e,t,i){var r,c,s;if(this.j=new Z,this.k=new Z,this.b=new Z,this.c=new Z,this.e=new mp,this.i=new Tu,this.f=new rL,this.d=new Z,this.g=new Z,nn(this.b,n),nn(this.b,e),this.e.c=y.Math.min(n.a,e.a),this.e.d=y.Math.min(n.b,e.b),this.e.b=y.Math.abs(n.a-e.a),this.e.a=y.Math.abs(n.b-e.b),r=u(v(i,(cn(),Rr)),75),r)for(s=ge(r,0);s.b!=s.d.c;)c=u(be(s),8),hQ(c.a,n.a)&&Re(this.i,c);t&&nn(this.j,t),nn(this.k,i)}function XIe(n,e,t,i){var r,c,s,f,h,l,a;for(f=-1,a=new M(n);a.a<a.c.c.length;)l=u(E(a),118),l.g=f--,r=Se(KT(jT(ut(new Cn(null,new On(l.f,16)),new S3n),new P3n)).d),c=Se(KT(jT(ut(new Cn(null,new On(l.k,16)),new I3n),new O3n)).d),s=r,h=c,i||(s=Se(KT(jT(new Cn(null,new On(l.f,16)),new A3n)).d),h=Se(KT(jT(new Cn(null,new On(l.k,16)),new T3n)).d)),l.d=s,l.a=r,l.i=h,l.b=c,h==0?xt(t,l,t.c.b,t.c):s==0&&xt(e,l,e.c.b,e.c)}function t3(n,e){var t,i,r,c,s,f;if(n.k==(Vn(),Sc)&&(t=n.k==Sc&&!om(ut(u(v(n,(W(),K8)),15).Oc(),new Y3(new HU))).Bd((Va(),v3))?(Co(),Yj):e,U(n,(W(),S3),t),t!=(Co(),Pa)))for(i=u(v(n,st),18),f=$(B(v(i,(cn(),m1)))),s=0,t==nl?s=n.o.b-y.Math.ceil(f/2):t==Yj&&(s=y.Math.ceil(n.o.b-$(B(v(Hi(n),C2)))-f)/2,n.o.b-=$(B(v(Hi(n),C2))),n.o.b-=f),c=new M(n.j);c.a<c.c.c.length;)r=u(E(c),12),r.n.b=s}function JUn(n,e,t){var i,r,c,s,f,h,l,a,d;for(r=!0,s=new M(n.b);s.a<s.c.c.length;){for(c=u(E(s),30),l=li,a=null,h=new M(c.a);h.a<h.c.c.length;)if(f=u(E(h),10),d=$(e.p[f.p])+$(e.d[f.p])-f.d.d,i=$(e.p[f.p])+$(e.d[f.p])+f.o.b+f.d.a,d>l&&i>l)a=f,l=$(e.p[f.p])+$(e.d[f.p])+f.o.b+f.d.a;else{r=!1,t._g()&&t.bh("bk node placement breaks on "+f+" which should have been after "+a);break}if(!r)break}return t._g()&&t.bh(e+" is feasible: "+r),r}function Fen(n,e,t,i){var r,c,s,f,h,l,a,d,g;if(c=new Cl(n),Ha(c,(Vn(),_c)),U(c,(cn(),_t),(Ai(),qc)),r=0,e){for(s=new Ic,U(s,(W(),st),e),U(c,st,e.i),gi(s,(en(),Wn)),ic(s,c),g=hh(e.e),l=g,a=0,d=l.length;a<d;++a)h=l[a],Oi(h,s);U(e,Xu,c),++r}if(t){for(f=new Ic,U(c,(W(),st),t.i),U(f,st,t),gi(f,(en(),Zn)),ic(f,c),g=hh(t.g),l=g,a=0,d=l.length;a<d;++a)h=l[a],Zi(h,f);U(t,Xu,c),++r}return U(c,(W(),iO),Y(r)),Bn(i.c,c),c}function VIe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(t=(l=new ol(n.c.b).a.vc().Kc(),new Cw(l));t.a.Ob();)e=(f=u(t.a.Pb(),44),u(f.md(),143)),r=e.a,r==null&&(r=""),i=kae(n.c,r),!i&&r.length==0&&(i=s5e(n)),i&&!i0(i.c,e,!1)&&Re(i.c,e);for(s=ge(n.a,0);s.b!=s.d.c;)c=u(be(s),486),a=WD(n.c,c.a),p=WD(n.c,c.b),a&&p&&Re(a.c,new bi(p,c.c));for(vo(n.a),g=ge(n.b,0);g.b!=g.d.c;)d=u(be(g),486),e=vae(n.c,d.a),h=WD(n.c,d.b),e&&h&&Yhe(e,h,d.c);vo(n.b)}function WIe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;c=new q9(n),s=new oFn,r=(Z7(s.g),Z7(s.j),Hu(s.b),Z7(s.d),Z7(s.i),Hu(s.k),Hu(s.c),Hu(s.e),p=q_n(s,c,null),KHn(s,c),p),e&&(l=new q9(e),f=rOe(l),fnn(r,S(C(ran,1),Rn,536,0,[f]))),g=!1,d=!1,t&&(l=new q9(t),HP in l.a&&(g=dl(l,HP).qe().a),CWn in l.a&&(d=dl(l,CWn).qe().a)),a=nEn(q$n(new op,g),d),Lje(new m4n,r,a),HP in c.a&&bf(c,HP,null),(g||d)&&(h=new sp,AUn(a,h,g,d),bf(c,HP,h)),i=new Zkn(s),g6e(new TX(r),i)}function JIe(n,e,t){var i,r,c,s,f,h,l,a,d;for(s=new aFn,l=S(C(ye,1),_e,28,15,[0]),r=-1,c=0,i=0,h=0;h<n.b.c.length;++h)if(a=u(sn(n.b,h),443),a.b>0){if(r<0&&a.a&&(r=h,c=l[0],i=0),r>=0){if(f=a.b,h==r&&(f-=i++,f==0))return 0;if(!ZGn(e,l,a,f,s)){h=r-1,l[0]=c;continue}}else if(r=-1,!ZGn(e,l,a,0,s))return 0}else{if(r=-1,Xi(a.c,0)==32){if(d=l[0],ZDn(e,l),l[0]>d)continue}else if(Nge(e,a.c,l[0])){l[0]+=a.c.length;continue}return 0}return $Le(s,t)?l[0]:0}function QIe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(a=new aT(new R9n(t)),f=F(so,Xh,28,n.f.e.c.length,16,1),MW(f,f.length),t[e.a]=0,l=new M(n.f.e);l.a<l.c.c.length;)h=u(E(l),153),h.a!=e.a&&(t[h.a]=et),Tp(k4(a,h),F4);for(;a.b.c.length!=0;)for(d=u(w$(a),153),f[d.a]=!0,c=VCn(new SL(n.b,d),0);c.c;)r=u(uQ(c),289),g=f7e(r,d),!f[g.a]&&(kt(r,(qk(),EI))?s=$(B(v(r,EI))):s=n.c,i=t[d.a]+s,i<t[g.a]&&(t[g.a]=i,hxn(a,g),Tp(k4(a,g),F4)))}function YIe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m;for(s=n.o,i=F(ye,_e,28,s,15,1),r=F(ye,_e,28,s,15,1),t=n.p,e=F(ye,_e,28,t,15,1),c=F(ye,_e,28,t,15,1),l=0;l<s;l++){for(d=0;d<t&&!Fg(n,l,d);)++d;i[l]=d}for(a=0;a<s;a++){for(d=t-1;d>=0&&!Fg(n,a,d);)--d;r[a]=d}for(p=0;p<t;p++){for(f=0;f<s&&!Fg(n,f,p);)++f;e[p]=f}for(m=0;m<t;m++){for(f=s-1;f>=0&&!Fg(n,f,m);)--f;c[m]=f}for(h=0;h<s;h++)for(g=0;g<t;g++)h<c[g]&&h>e[g]&&g<r[h]&&g>i[h]&&xS(n,h,g,!1,!0)}function _en(n){var e,t,i,r,c,s,f,h;t=on(un(v(n,(Us(),XYn)))),c=n.a.c.d,f=n.a.d.d,t?(s=ch(mi(new V(f.a,f.b),c),.5),h=ch(Fi(n.e),.5),e=mi(it(new V(c.a,c.b),s),h),QX(n.d,e)):(r=$(B(v(n.a,tZn))),i=n.d,c.a>=f.a?c.b>=f.b?(i.a=f.a+(c.a-f.a)/2+r,i.b=f.b+(c.b-f.b)/2-r-n.e.b):(i.a=f.a+(c.a-f.a)/2+r,i.b=c.b+(f.b-c.b)/2+r):c.b>=f.b?(i.a=c.a+(f.a-c.a)/2+r,i.b=f.b+(c.b-f.b)/2+r):(i.a=c.a+(f.a-c.a)/2+r,i.b=c.b+(f.b-c.b)/2-r-n.e.b))}function H5(n){var e,t,i,r,c,s,f,h;if(!n.f){if(h=new eG,f=new eG,e=N9,s=e.a.zc(n,e),s==null){for(c=new ne(Hr(n));c.e!=c.i.gc();)r=u(ue(c),29),Bt(h,H5(r));e.a.Bc(n)!=null,e.a.gc()==0}for(i=(!n.s&&(n.s=new q(ku,n,21,17)),new ne(n.s));i.e!=i.i.gc();)t=u(ue(i),179),L(t,102)&&ve(f,u(t,19));e0(f),n.r=new FPn(n,(u(N(H((z1(),Hn).o),6),19),f.i),f.g),Bt(h,n.r),e0(h),n.f=new pg((u(N(H(Hn.o),5),19),h.i),h.g),Zu(n).b&=-3}return n.f}function QUn(n){ib(n,new gd(nb(Qd(Zd(Yd(new Fa,jd),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new Rwn))),Q(n,jd,WK,rn(hon)),Q(n,jd,JK,rn(w_)),Q(n,jd,l3,rn(LYn)),Q(n,jd,Xb,rn(fon)),Q(n,jd,Itn,rn(xYn)),Q(n,jd,Otn,rn($Yn)),Q(n,jd,Ptn,rn(RYn)),Q(n,jd,Atn,rn(DYn)),Q(n,jd,Ktn,rn(NYn)),Q(n,jd,Btn,rn(b_)),Q(n,jd,Ftn,rn(son)),Q(n,jd,_tn,rn(pI))}function FS(){FS=R,Adn=S(C(fs,1),gh,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),Coe=new RegExp(`[
\r\f]+`);try{O9=S(C(NDe,1),Rn,2114,0,[new X9((mX(),zC("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",O7((BE(),BE(),M8))))),new X9(zC("yyyy-MM-dd'T'HH:mm:ss'.'SSS",O7(M8))),new X9(zC("yyyy-MM-dd'T'HH:mm:ss",O7(M8))),new X9(zC("yyyy-MM-dd'T'HH:mm",O7(M8))),new X9(zC("yyyy-MM-dd",O7(M8)))])}catch(n){if(n=Ot(n),!L(n,82))throw T(n)}}function ZIe(n,e){var t,i,r,c;if(r=to(n.d,1)!=0,i=yen(n,e),i==0&&on(un(v(e.j,(W(),ya)))))return 0;!on(un(v(e.j,(W(),ya))))&&!on(un(v(e.j,j2)))||x(v(e.j,(cn(),Yh)))===x((lh(),k1))?e.c.mg(e.e,r):r=on(un(v(e.j,ya))),oy(n,e,r,!0),on(un(v(e.j,j2)))&&U(e.j,j2,(_n(),!1)),on(un(v(e.j,ya)))&&(U(e.j,ya,(_n(),!1)),U(e.j,j2,!0)),t=yen(n,e);do{if(NQ(n),t==0)return 0;r=!r,c=t,oy(n,e,r,!1),t=yen(n,e)}while(c>t);return c}function YUn(n,e){var t,i,r,c;if(r=to(n.d,1)!=0,i=kS(n,e),i==0&&on(un(v(e.j,(W(),ya)))))return 0;!on(un(v(e.j,(W(),ya))))&&!on(un(v(e.j,j2)))||x(v(e.j,(cn(),Yh)))===x((lh(),k1))?e.c.mg(e.e,r):r=on(un(v(e.j,ya))),oy(n,e,r,!0),on(un(v(e.j,j2)))&&U(e.j,j2,(_n(),!1)),on(un(v(e.j,ya)))&&(U(e.j,ya,(_n(),!1)),U(e.j,j2,!0)),t=kS(n,e);do{if(NQ(n),t==0)return 0;r=!r,c=t,oy(n,e,r,!1),t=kS(n,e)}while(c>t);return c}function Hen(n,e,t,i){var r,c,s,f,h,l,a,d,g;return h=mi(new V(t.a,t.b),n),l=h.a*e.b-h.b*e.a,a=e.a*i.b-e.b*i.a,d=(h.a*i.b-h.b*i.a)/a,g=l/a,a==0?l==0?(r=it(new V(t.a,t.b),ch(new V(i.a,i.b),.5)),c=Q1(n,r),s=Q1(it(new V(n.a,n.b),e),r),f=y.Math.sqrt(i.a*i.a+i.b*i.b)*.5,c<s&&c<=f?new V(n.a,n.b):s<=f?it(new V(n.a,n.b),e):null):null:d>=0&&d<=1&&g>=0&&g<=1?it(new V(n.a,n.b),ch(new V(e.a,e.b),d)):null}function nOe(n,e,t){var i,r,c,s,f;if(i=u(v(n,(cn(),vH)),21),t.a>e.a&&(i.Hc((wd(),b9))?n.c.a+=(t.a-e.a)/2:i.Hc(w9)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((wd(),p9))?n.c.b+=(t.b-e.b)/2:i.Hc(g9)&&(n.c.b+=t.b-e.b)),u(v(n,(W(),Hc)),21).Hc((pr(),cs))&&(t.a>e.a||t.b>e.b))for(f=new M(n.a);f.a<f.c.c.length;)s=u(E(f),10),s.k==(Vn(),Zt)&&(r=u(v(s,gc),64),r==(en(),Zn)?s.n.a+=t.a-e.a:r==ae&&(s.n.b+=t.b-e.b));c=n.d,n.f.a=t.a-c.b-c.c,n.f.b=t.b-c.d-c.a}function eOe(n,e,t){var i,r,c,s,f;if(i=u(v(n,(cn(),vH)),21),t.a>e.a&&(i.Hc((wd(),b9))?n.c.a+=(t.a-e.a)/2:i.Hc(w9)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((wd(),p9))?n.c.b+=(t.b-e.b)/2:i.Hc(g9)&&(n.c.b+=t.b-e.b)),u(v(n,(W(),Hc)),21).Hc((pr(),cs))&&(t.a>e.a||t.b>e.b))for(s=new M(n.a);s.a<s.c.c.length;)c=u(E(s),10),c.k==(Vn(),Zt)&&(r=u(v(c,gc),64),r==(en(),Zn)?c.n.a+=t.a-e.a:r==ae&&(c.n.b+=t.b-e.b));f=n.d,n.f.a=t.a-f.b-f.c,n.f.b=t.b-f.d-f.a}function tOe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(e=aHn(n),a=(f=new qa(e).a.vc().Kc(),new PE(f));a.a.Ob();){for(l=(r=u(a.a.Pb(),44),u(r.ld(),10)),d=0,g=0,d=l.d.d,g=l.o.b+l.d.a,n.d[l.p]=0,t=l;(c=n.a[t.p])!=l;)i=Q8e(t,c),h=0,n.c==(fh(),y1)?h=i.d.n.b+i.d.a.b-i.c.n.b-i.c.a.b:h=i.c.n.b+i.c.a.b-i.d.n.b-i.d.a.b,s=$(n.d[t.p])+h,n.d[c.p]=s,d=y.Math.max(d,c.d.d-s),g=y.Math.max(g,s+c.o.b+c.d.a),t=c;t=l;do n.d[t.p]=$(n.d[t.p])+d,t=n.a[t.p];while(t!=l);n.b[l.p]=d+g}}function q5(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=0,s=n.t,r=0,i=0,h=0,g=0,d=0,t&&(n.n.c.length=0,nn(n.n,new DT(n.s,n.t,n.i))),f=0,a=new M(n.b);a.a<a.c.c.length;)l=u(E(a),27),c+l.g+(f>0?n.i:0)>e&&h>0&&(c=0,s+=h+n.i,r=y.Math.max(r,g),i+=h+n.i,h=0,g=0,t&&(++d,nn(n.n,new DT(n.s,s,n.i))),f=0),g+=l.g+(f>0?n.i:0),h=y.Math.max(h,l.f),t&&bZ(u(sn(n.n,d),209),l),c+=l.g+(f>0?n.i:0),++f;return r=y.Math.max(r,g),i+=h,t&&(n.r=r,n.d=i,mZ(n.j)),new Ho(n.s,n.t,r,i)}function xR(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(n.b=!1,d=Pt,h=li,g=Pt,l=li,i=n.e.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),272),r=t.a,d=y.Math.min(d,r.c),h=y.Math.max(h,r.c+r.b),g=y.Math.min(g,r.d),l=y.Math.max(l,r.d+r.a),s=new M(t.c);s.a<s.c.c.length;)c=u(E(s),407),e=c.a,e.a?(a=r.d+c.b.b,f=a+c.c,g=y.Math.min(g,a),l=y.Math.max(l,f)):(a=r.c+c.b.a,f=a+c.c,d=y.Math.min(d,a),h=y.Math.max(h,f));n.a=new V(h-d,l-g),n.c=new V(d+n.d.a,g+n.d.b)}function Jg(n){var e,t,i,r,c,s,f,h;if(!n.a){if(n.o=null,h=new myn(n),e=new kvn,t=N9,f=t.a.zc(n,t),f==null){for(s=new ne(Hr(n));s.e!=s.i.gc();)c=u(ue(s),29),Bt(h,Jg(c));t.a.Bc(n)!=null,t.a.gc()==0}for(r=(!n.s&&(n.s=new q(ku,n,21,17)),new ne(n.s));r.e!=r.i.gc();)i=u(ue(r),179),L(i,331)&&ve(e,u(i,35));e0(e),n.k=new _Pn(n,(u(N(H((z1(),Hn).o),7),19),e.i),e.g),Bt(h,n.k),e0(h),n.a=new pg((u(N(H(Hn.o),4),19),h.i),h.g),Zu(n).b&=-2}return n.a}function qen(n,e,t,i){var r,c,s,f,h,l,a;if(a=ru(n.e.Dh(),e),r=0,c=u(n.g,124),h=null,dr(),u(e,69).xk()){for(f=0;f<n.i;++f)if(s=c[f],a.am(s.Lk())){if(ct(s,t)){h=s;break}++r}}else if(t!=null){for(f=0;f<n.i;++f)if(s=c[f],a.am(s.Lk())){if(ct(t,s.md())){h=s;break}++r}}else for(f=0;f<n.i;++f)if(s=c[f],a.am(s.Lk())){if(s.md()==null){h=s;break}++r}return h&&(fo(n.e)&&(l=e.Jk()?new GD(n.e,4,e,t,null,r,!0):W1(n,e.tk()?2:1,e,t,e.ik(),-1,!0),i?i.nj(l):i=l),i=hy(n,h,i)),i}function RR(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m,k;switch(m=0,k=0,h=r.c,f=r.b,a=t.f,p=t.g,e.g){case 0:m=i.i+i.g+s,n.c?k=yye(m,c,i,s):k=i.j,g=y.Math.max(h,m+p),l=y.Math.max(f,k+a);break;case 1:k=i.j+i.f+s,n.c?m=kye(k,c,i,s):m=i.i,g=y.Math.max(h,m+p),l=y.Math.max(f,k+a);break;case 2:m=h+s,k=0,g=h+s+p,l=y.Math.max(f,a);break;case 3:m=0,k=f+s,g=y.Math.max(h,p),l=f+s+a;break;default:throw T(new Gn("IllegalPlacementOption."))}return d=new eZ(n.a,g,l,e,m,k),d}function iOe(n){var e,t,i,r,c,s,f,h,l,a,d,g;if(f=n.d,d=u(v(n,(W(),I3)),15),e=u(v(n,M3),15),!(!d&&!e)){if(c=$(B(r0(n,(cn(),PH)))),s=$(B(r0(n,whn))),g=0,d){for(l=0,r=d.Kc();r.Ob();)i=u(r.Pb(),10),l=y.Math.max(l,i.o.b),g+=i.o.a;g+=c*(d.gc()-1),f.d+=l+s}if(t=0,e){for(l=0,r=e.Kc();r.Ob();)i=u(r.Pb(),10),l=y.Math.max(l,i.o.b),t+=i.o.a;t+=c*(e.gc()-1),f.a+=l+s}h=y.Math.max(g,t),h>n.o.a&&(a=(h-n.o.a)/2,f.b=y.Math.max(f.b,a),f.c=y.Math.max(f.c,a))}}function rOe(n){var e,t,i,r,c,s,f,h;for(c=new zAn,$le(c,(qp(),due)),i=(r=P$(n,F(fn,J,2,0,6,1)),new Gv(new Fu(new PL(n,r).b)));i.b<i.d.gc();)t=(oe(i.b<i.d.gc()),Ae(i.d.Xb(i.c=i.b++))),s=Jen(Na,t),s&&(e=dl(n,t),e.te()?f=e.te().a:e.qe()?f=""+e.qe().a:e.re()?f=""+e.re().a:f=e.Ib(),h=Ven(s,f),h!=null&&((Su(s.j,(pf(),pi))||Su(s.j,xn))&&Ck(g$(c,Ye),s,h),Su(s.j,Ih)&&Ck(g$(c,Vt),s,h),Su(s.j,Fd)&&Ck(g$(c,Qu),s,h),Su(s.j,E1)&&Ck(g$(c,Sr),s,h)));return c}function by(n,e,t){var i,r,c,s,f,h,l,a;if(r=u(n.g,124),Pl(n.e,e))return dr(),u(e,69).xk()?new nT(e,n):new k7(e,n);for(l=ru(n.e.Dh(),e),i=0,f=0;f<n.i;++f){if(c=r[f],s=c.Lk(),l.am(s)){if(dr(),u(e,69).xk())return c;if(s==(n3(),F3)||s==B3){for(h=new mo(Jr(c.md()));++f<n.i;)c=r[f],s=c.Lk(),(s==F3||s==B3)&&Be(h,Jr(c.md()));return MV(u(e.Hk(),156),h.a)}else return a=c.md(),a!=null&&t&&L(e,102)&&u(e,19).Bb&hr&&(a=A5(n,e,f,i,a)),a}++i}return e.ik()}function _S(n,e,t,i){var r,c,s,f,h,l;if(h=ru(n.e.Dh(),e),c=u(n.g,124),Pl(n.e,e)){for(r=0,f=0;f<n.i;++f)if(s=c[f],h.am(s.Lk())){if(r==t)return dr(),u(e,69).xk()?s:(l=s.md(),l!=null&&i&&L(e,102)&&u(e,19).Bb&hr&&(l=A5(n,e,f,r,l)),l);++r}throw T(new Or(w8+t+Cd+r))}else{for(r=0,f=0;f<n.i;++f){if(s=c[f],h.am(s.Lk()))return dr(),u(e,69).xk()?s:(l=s.md(),l!=null&&i&&L(e,102)&&u(e,19).Bb&hr&&(l=A5(n,e,f,r,l)),l);++r}return e.ik()}}function KR(){KR=R,yQn=S(C(ye,1),_e,28,15,[Wi,1162261467,X5,1220703125,362797056,1977326743,X5,387420489,QS,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,X5,1291467969,1544804416,1838265625,60466176]),jQn=S(C(ye,1),_e,28,15,[-1,-1,31,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5])}function BR(n,e){var t,i,r,c,s,f,h,l,a,d;if(s=n.e,h=e.e,h==0)return n;if(s==0)return e.e==0?e:new Ya(-e.e,e.d,e.a);if(c=n.d,f=e.d,c+f==2)return t=vi(n.a[0],mr),i=vi(e.a[0],mr),s<0&&(t=n1(t)),h<0&&(i=n1(i)),dh(),CM(bs(t,i),0)?ra(bs(t,i)):H6(ra(n1(bs(t,i))));if(r=c!=f?c>f?1:-1:sY(n.a,e.a,c),r==-1)d=-h,a=s==h?ZD(e.a,f,n.a,c):e$(e.a,f,n.a,c);else if(d=s,s==h){if(r==0)return dh(),C8;a=ZD(n.a,c,e.a,f)}else a=e$(n.a,c,e.a,f);return l=new Ya(d,a.length,a),V6(l),l}function cOe(n,e){var t,i,r,c;if(c=$Un(e),!e.c&&(e.c=new q(Qu,e,9,9)),Ut(new Cn(null,(!e.c&&(e.c=new q(Qu,e,9,9)),new On(e.c,16))),new _9n(c)),r=u(v(c,(W(),Hc)),21),QAe(e,r),r.Hc((pr(),cs)))for(i=new ne((!e.c&&(e.c=new q(Qu,e,9,9)),e.c));i.e!=i.i.gc();)t=u(ue(i),123),CLe(n,e,c,t);return u(z(e,(cn(),xd)),181).gc()!=0&&Sqn(e,c),on(un(v(c,hhn)))&&r.Fc(eO),kt(c,Mj)&&$jn(new GY($(B(v(c,Mj)))),c),x(z(e,K0))===x((jl(),T1))?JNe(n,e,c):DNe(n,e,c),c}function uOe(n){var e,t,i,r,c,s,f,h;for(r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=new M(Mb(i.a));s.a<s.c.c.length;)if(c=u(E(s),10),r$n(c)&&(t=u(v(c,(W(),cw)),313),!t.g&&t.d))for(e=t,h=t.d;h;)Kqn(h.i,h.k,!1,!0),sk(e.a),sk(h.i),sk(h.k),sk(h.b),Oi(h.c,e.c.d),Oi(e.c,null),$i(e.a,null),$i(h.i,null),$i(h.k,null),$i(h.b,null),f=new yJ(e.i,h.a,e.e,h.j,h.f),f.k=e.k,f.n=e.n,f.b=e.b,f.c=h.c,f.g=e.g,f.d=h.d,U(e.i,cw,f),U(h.a,cw,f),h=h.d,e=f}function Rc(n,e){var t,i,r,c,s,f,h;if(n==null)return null;if(c=n.length,c==0)return"";for(h=F(fs,gh,28,c,15,1),Ri(0,c,n.length),Ri(0,c,h.length),HIn(n,0,c,h,0),t=null,f=e,r=0,s=0;r<c;r++)i=h[r],Tzn(),i<=32&&I[i]&2?f?(!t&&(t=new ls(n)),G1e(t,r-s++)):(f=e,i!=32&&(!t&&(t=new ls(n)),N$(t,r-s,r-s+1," "))):f=!1;return f?t?(c=t.a.length,c>0?qo(t.a,0,c-1):""):(Ri(0,c-1,n.length),n.substr(0,c-1)):t?t.a:n}function oOe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Sort By Input Model "+v(n,(cn(),Yh)),1),r=0,i=new M(n.b);i.a<i.c.c.length;){for(t=u(E(i),30),h=r==0?0:r-1,f=u(sn(n.b,h),30),s=new M(t.a);s.a<s.c.c.length;)c=u(E(s),10),x(v(c,_t))!==x((Ai(),Ud))&&x(v(c,_t))!==x(qc)&&(Ln(),Yt(c.j,new qRn(f,u(v(n,Yh),284),iFn(c),on(un(v(n,mH))))),e.bh("Node "+c+" ports: "+c.j));Ln(),Yt(t.a,new bxn(f,u(v(n,Yh),284),u(v(n,Bfn),390))),e.bh("Layer "+r+": "+t),++r}e.Vg()}function g0(n,e){var t,i,r,c,s;if(s=u(e,138),Gg(n),Gg(s),s.b!=null){if(n.c=!0,n.b==null){n.b=F(ye,_e,28,s.b.length,15,1),Oc(s.b,0,n.b,0,s.b.length);return}for(c=F(ye,_e,28,n.b.length+s.b.length,15,1),t=0,i=0,r=0;t<n.b.length||i<s.b.length;)t>=n.b.length?(c[r++]=s.b[i++],c[r++]=s.b[i++]):i>=s.b.length?(c[r++]=n.b[t++],c[r++]=n.b[t++]):s.b[i]<n.b[t]||s.b[i]===n.b[t]&&s.b[i+1]<n.b[t+1]?(c[r++]=s.b[i++],c[r++]=s.b[i++]):(c[r++]=n.b[t++],c[r++]=n.b[t++]);n.b=c}}function sOe(n,e){var t,i,r,c,s,f,h,l,a,d;return t=on(un(v(n,(W(),$0)))),f=on(un(v(e,$0))),i=u(v(n,yf),12),h=u(v(e,yf),12),r=u(v(n,Es),12),l=u(v(e,Es),12),a=!!i&&i==h,d=!!r&&r==l,!t&&!f?new NV(u(E(new M(n.j)),12).p==u(E(new M(e.j)),12).p,a,d):(c=(!on(un(v(n,$0)))||on(un(v(n,yj))))&&(!on(un(v(e,$0)))||on(un(v(e,yj)))),s=(!on(un(v(n,$0)))||!on(un(v(n,yj))))&&(!on(un(v(e,$0)))||!on(un(v(e,yj)))),new NV(a&&c||d&&s,a,d))}function ZUn(n){var e,t,i,r,c,s,f,h;for(i=0,t=0,h=new Mt,e=0,f=new M(n.n);f.a<f.c.c.length;)s=u(E(f),209),s.c.c.length==0?xt(h,s,h.c.b,h.c):(i=y.Math.max(i,s.d),t+=s.a+(e>0?n.i:0)),++e;for(PY(n.n,h),n.d=t,n.r=i,n.g=0,n.f=0,n.e=0,n.o=Pt,n.p=Pt,c=new M(n.b);c.a<c.c.c.length;)r=u(E(c),27),n.p=y.Math.min(n.p,r.g),n.g=y.Math.max(n.g,r.g),n.f=y.Math.max(n.f,r.f),n.o=y.Math.min(n.o,r.f),n.e+=r.f+n.i;n.a=n.e/n.b.c.length-n.i*((n.b.c.length-1)/n.b.c.length),mZ(n.j)}function nGn(n){var e,t,i,r;return n.Db&64?ox(n):(e=new mo(vcn),i=n.k,i?Be(Be((e.a+=' "',e),i),'"'):(!n.n&&(n.n=new q(Sr,n,1,7)),n.n.i>0&&(r=(!n.n&&(n.n=new q(Sr,n,1,7)),u(N(n.n,0),135)).a,!r||Be(Be((e.a+=' "',e),r),'"'))),t=(!n.b&&(n.b=new Dn(he,n,4,7)),!(n.b.i<=1&&(!n.c&&(n.c=new Dn(he,n,5,8)),n.c.i<=1))),t?e.a+=" [":e.a+=" ",Be(e,RX(new yL,new ne(n.b))),t&&(e.a+="]"),e.a+=iB,t&&(e.a+="["),Be(e,RX(new yL,new ne(n.c))),t&&(e.a+="]"),e.a)}function fOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn;for(_=n.c,X=e.c,t=qr(_.a,n,0),i=qr(X.a,e,0),A=u($b(n,(gr(),Vu)).Kc().Pb(),12),kn=u($b(n,Jc).Kc().Pb(),12),D=u($b(e,Vu).Kc().Pb(),12),Fn=u($b(e,Jc).Kc().Pb(),12),P=hh(A.e),tn=hh(kn.g),O=hh(D.e),jn=hh(Fn.g),u0(n,i,X),s=O,a=0,m=s.length;a<m;++a)r=s[a],Oi(r,A);for(f=jn,d=0,k=f.length;d<k;++d)r=f[d],Zi(r,kn);for(u0(e,t,_),h=P,g=0,j=h.length;g<j;++g)r=h[g],Oi(r,D);for(c=tn,l=0,p=c.length;l<p;++l)r=c[l],Zi(r,Fn)}function hOe(n){var e,t,i,r,c,s,f;for(s=u(z(n,(Cg(),L2)),27),i=new ne((!s.e&&(s.e=new Dn(Vt,s,7,4)),s.e));i.e!=i.i.gc();)t=u(ue(i),74),f=new V(u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166).j,u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166).k),c=new V(u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166).b,u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166).c),r=new V(c.a-f.a,c.b-f.b),e=y.Math.atan2(r.b,r.a),u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84).qf((sa(),yq),e)}function lOe(n,e){var t,i,r,c,s,f,h,l,a;for(e.Ug("Interactive Node Reorderer",1),a=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),f=new Z,r=new ne(a);r.e!=r.i.gc();)t=u(ue(r),27),Nf(t,(Bf(),Kj))&&Bn(f.c,t);for(c=new M(f);c.a<c.c.c.length;)t=u(E(c),27),rC(a,t);for(Ln(),Yt(f,new n4n),s=new M(f);s.a<s.c.c.length;)t=u(E(s),27),l=u(z(t,(Bf(),Kj)),17).a,l=y.Math.min(l,a.i),p5(a,l,t);for(h=0,i=new ne(a);i.e!=i.i.gc();)t=u(ue(i),27),ht(t,(Bf(),b1n),Y(h)),++h;e.Vg()}function Uen(n,e,t){var i,r,c,s,f,h,l,a;return y.Math.abs(e.s-e.c)<vh||y.Math.abs(t.s-t.c)<vh?0:(i=oqn(n,e.j,t.e),r=oqn(n,t.j,e.e),c=i==-1||r==-1,s=0,c?(i==-1&&(new ed((af(),Ma),t,e,1),++s),r==-1&&(new ed((af(),Ma),e,t,1),++s)):(f=Rg(e.j,t.s,t.c),f+=Rg(t.e,e.s,e.c),h=Rg(t.j,e.s,e.c),h+=Rg(e.e,t.s,t.c),l=i+16*f,a=r+16*h,l<a?new ed((af(),z0),e,t,a-l):l>a?new ed((af(),z0),t,e,l-a):l>0&&a>0&&(new ed((af(),z0),e,t,0),new ed(z0,t,e,0))),s)}function aOe(n,e,t){var i,r,c;for(n.a=new Z,c=ge(e.b,0);c.b!=c.d.c;){for(r=u(be(c),39);u(v(r,(lc(),Ph)),17).a>n.a.c.length-1;)nn(n.a,new bi(i2,Mrn));i=u(v(r,Ph),17).a,t==(ci(),Kr)||t==Xr?(r.e.a<$(B(u(sn(n.a,i),42).a))&&QA(u(sn(n.a,i),42),r.e.a),r.e.a+r.f.a>$(B(u(sn(n.a,i),42).b))&&YA(u(sn(n.a,i),42),r.e.a+r.f.a)):(r.e.b<$(B(u(sn(n.a,i),42).a))&&QA(u(sn(n.a,i),42),r.e.b),r.e.b+r.f.b>$(B(u(sn(n.a,i),42).b))&&YA(u(sn(n.a,i),42),r.e.b+r.f.b))}}function eGn(n,e,t,i){var r,c,s,f,h,l,a;if(c=FC(i),f=on(un(v(i,(cn(),rhn)))),(f||on(un(v(n,wO))))&&!mg(u(v(n,_t),101)))r=zp(c),h=Aen(n,t,t==(gr(),Jc)?r:$k(r));else switch(h=new Ic,ic(h,n),e?(a=h.n,a.a=e.a-n.n.a,a.b=e.b-n.n.b,u_n(a,0,0,n.o.a,n.o.b),gi(h,jUn(h,c))):(r=zp(c),gi(h,t==(gr(),Jc)?r:$k(r))),s=u(v(i,(W(),Hc)),21),l=h.j,c.g){case 2:case 1:(l==(en(),Xn)||l==ae)&&s.Fc((pr(),v2));break;case 4:case 3:(l==(en(),Zn)||l==Wn)&&s.Fc((pr(),v2))}return h}function tGn(n,e){var t,i,r,c,s,f;for(s=new sd(new Ua(n.f.b).a);s.b;){if(c=Ab(s),r=u(c.ld(),602),e==1){if(r.Af()!=(ci(),us)&&r.Af()!=Wf)continue}else if(r.Af()!=(ci(),Kr)&&r.Af()!=Xr)continue;switch(i=u(u(c.md(),42).b,86),f=u(u(c.md(),42).a,194),t=f.c,r.Af().g){case 2:i.g.c=n.e.a,i.g.b=y.Math.max(1,i.g.b+t);break;case 1:i.g.c=i.g.c+t,i.g.b=y.Math.max(1,i.g.b-t);break;case 4:i.g.d=n.e.b,i.g.a=y.Math.max(1,i.g.a+t);break;case 3:i.g.d=i.g.d+t,i.g.a=y.Math.max(1,i.g.a-t)}}}function dOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(f=F(ye,_e,28,e.b.c.length,15,1),l=F(A_,G,273,e.b.c.length,0,1),h=F(Qh,b1,10,e.b.c.length,0,1),d=n.a,g=0,p=d.length;g<p;++g){for(a=d[g],k=0,s=new M(a.e);s.a<s.c.c.length;)r=u(E(s),10),i=yX(r.c),++f[i],m=$(B(v(e,(cn(),Ws)))),f[i]>0&&h[i]&&(m=jg(n.b,h[i],r)),k=y.Math.max(k,r.c.c.b+m);for(c=new M(a.e);c.a<c.c.c.length;)r=u(E(c),10),r.n.b=k+r.d.d,t=r.c,t.c.b=k+r.d.d+r.o.b+r.d.a,l[qr(t.b.b,t,0)]=r.k,h[qr(t.b.b,t,0)]=r}}function iGn(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(i=new ie(ce(Sl(e).a.Kc(),new En));pe(i);)t=u(fe(i),74),L(N((!t.b&&(t.b=new Dn(he,t,4,7)),t.b),0),193)||(h=Gr(u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),L5(t)||(s=e.i+e.g/2,f=e.j+e.f/2,a=h.i+h.g/2,d=h.j+h.f/2,g=new Ni,g.a=a-s,g.b=d-f,c=new V(g.a,g.b),m4(c,e.g,e.f),g.a-=c.a,g.b-=c.b,s=a-g.a,f=d-g.b,l=new V(g.a,g.b),m4(l,h.g,h.f),g.a-=l.a,g.b-=l.b,a=s+g.a,d=f+g.b,r=Xg(t,!0,!0),_m(r,s),qm(r,f),Fm(r,a),Hm(r,d),iGn(n,h)))}function rGn(n){ib(n,new gd(nb(Qd(Zd(Yd(new Fa,Wb),"ELK SPOrE Compaction"),"ShrinkTree is a compaction algorithm that maintains the topology of a layout. The relocation of diagram elements is based on contracting a spanning tree."),new a4n))),Q(n,Wb,YB,rn(QO)),Q(n,Wb,ccn,rn(qq)),Q(n,Wb,ucn,rn(Hq)),Q(n,Wb,ZB,rn(q1n)),Q(n,Wb,nF,rn(_q)),Q(n,Wb,Xb,H1n),Q(n,Wb,y0,8),Q(n,Wb,eF,rn(Zce)),Q(n,Wb,ocn,rn(F1n)),Q(n,Wb,scn,rn(_1n)),Q(n,Wb,qy,(_n(),!1))}function bOe(n,e){var t,i,r,c,s,f,h,l,a,d;for(e.Ug("Simple node placement",1),d=u(v(n,(W(),E2)),312),f=0,c=new M(n.b);c.a<c.c.c.length;){for(i=u(E(c),30),s=i.c,s.b=0,t=null,l=new M(i.a);l.a<l.c.c.length;)h=u(E(l),10),t&&(s.b+=YY(h,t,d.c)),s.b+=h.d.d+h.o.b+h.d.a,t=h;f=y.Math.max(f,s.b)}for(r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=i.c,a=(f-s.b)/2,t=null,l=new M(i.a);l.a<l.c.c.length;)h=u(E(l),10),t&&(a+=YY(h,t,d.c)),a+=h.d.d,h.n.b=a,a+=h.o.b+h.d.a,t=h;e.Vg()}function wOe(n,e){var t,i,r,c;for(E4e(e.b.j),Ut(_r(new Cn(null,new On(e.d,16)),new Opn),new Apn),c=new M(e.d);c.a<c.c.c.length;){switch(r=u(E(c),105),r.e.g){case 0:t=u(sn(r.j,0),113).d.j,bG(r,u(ho(Sp(u(ot(r.k,t),15).Oc(),w2)),113)),dG(r,u(ho(_w(u(ot(r.k,t),15).Oc(),w2)),113));break;case 1:i=yZ(r),bG(r,u(ho(Sp(u(ot(r.k,i[0]),15).Oc(),w2)),113)),dG(r,u(ho(_w(u(ot(r.k,i[1]),15).Oc(),w2)),113));break;case 2:eEe(n,r);break;case 3:mCe(r);break;case 4:jCe(n,r)}M4e(r)}n.a=null}function FR(n,e,t){var i,r,c,s,f,h,l,a;return i=n.a.o==(If(),Xf)?Pt:li,f=IUn(n,new JMn(e,t)),!f.a&&f.c?(Re(n.d,f),i):f.a?(r=f.a.c,h=f.a.d,t?(l=n.a.c==(fh(),gw)?h:r,c=n.a.c==gw?r:h,s=n.a.g[c.i.p],a=$(n.a.p[s.p])+$(n.a.d[c.i.p])+c.n.b+c.a.b-$(n.a.d[l.i.p])-l.n.b-l.a.b):(l=n.a.c==(fh(),y1)?h:r,c=n.a.c==y1?r:h,a=$(n.a.p[n.a.g[c.i.p].p])+$(n.a.d[c.i.p])+c.n.b+c.a.b-$(n.a.d[l.i.p])-l.n.b-l.a.b),n.a.n[n.a.g[r.i.p].p]=(_n(),!0),n.a.n[n.a.g[h.i.p].p]=!0,a):i}function gOe(n,e,t,i){var r,c,s,f,h,l,a,d;if(i.gc()==0)return!1;if(h=(dr(),u(e,69).xk()),s=h?i:new Cb(i.gc()),Pl(n.e,e)){if(e.Si())for(a=i.Kc();a.Ob();)l=a.Pb(),BS(n,e,l,L(e,102)&&(u(e,19).Bb&hr)!=0)||(c=Rh(e,l),s.Fc(c));else if(!h)for(a=i.Kc();a.Ob();)l=a.Pb(),c=Rh(e,l),s.Fc(c)}else{for(d=ru(n.e.Dh(),e),r=u(n.g,124),f=0;f<n.i;++f)if(c=r[f],d.am(c.Lk()))throw T(new Gn(Yy));if(i.gc()>1)throw T(new Gn(Yy));h||(c=Rh(e,i.Kc().Pb()),s.Fc(c))}return VQ(n,wnn(n,e,t),s)}function HS(n,e,t){var i,r,c,s,f,h,l,a;if(Pl(n.e,e))h=(dr(),u(e,69).xk()?new nT(e,n):new k7(e,n)),jS(h.c,h.b),S6(h,u(t,16));else{for(a=ru(n.e.Dh(),e),i=u(n.g,124),s=0;s<n.i;++s)if(r=i[s],c=r.Lk(),a.am(c)){if(c==(n3(),F3)||c==B3){for(l=lZ(n,e,t),f=s,l?d0(n,s):++s;s<n.i;)r=i[s],c=r.Lk(),c==F3||c==B3?d0(n,s):++s;l||u(Bg(n,f,Rh(e,t)),76)}else lZ(n,e,t)?d0(n,s):u(Bg(n,s,(dr(),u(e,69).xk()?u(t,76):Rh(e,t))),76);return}lZ(n,e,t)||ve(n,(dr(),u(e,69).xk()?u(t,76):Rh(e,t)))}}function cGn(n,e,t){var i,r,c,s,f,h,l,a;return ct(t,n.b)||(n.b=t,c=new Awn,s=u(Wr(_r(new Cn(null,new On(t.f,16)),c),Ww(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),S0),Yr]))),21),n.e=!0,n.f=!0,n.c=!0,n.d=!0,r=s.Hc((Vp(),cj)),i=s.Hc(uj),r&&!i&&(n.f=!1),!r&&i&&(n.d=!1),r=s.Hc(rj),i=s.Hc(oj),r&&!i&&(n.c=!1),!r&&i&&(n.e=!1)),a=u(n.a.Ve(e,t),42),h=u(a.a,17).a,l=u(a.b,17).a,f=!1,h<0?n.c||(f=!0):n.e||(f=!0),l<0?n.d||(f=!0):n.f||(f=!0),f?cGn(n,a,t):a}function pOe(n){var e,t,i,r;r=n.o,Kw(),n.A.dc()||ct(n.A,ton)?e=r.b:(e=ny(n.f),n.A.Hc((go(),tE))&&!n.B.Hc((io(),P9))&&(e=y.Math.max(e,ny(u(Mr(n.p,(en(),Zn)),252))),e=y.Math.max(e,ny(u(Mr(n.p,Wn),252)))),t=Rxn(n),t&&(e=y.Math.max(e,t.b)),n.A.Hc(iE)&&(n.q==(Ai(),tl)||n.q==qc)&&(e=y.Math.max(e,ZM(u(Mr(n.b,(en(),Zn)),127))),e=y.Math.max(e,ZM(u(Mr(n.b,Wn),127))))),on(un(n.e.Tf().of((He(),V0))))?r.b=y.Math.max(r.b,e):r.b=e,i=n.f.i,i.d=0,i.a=e,DR(n.f)}function uGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(d=0;d<e.length;d++){for(f=n.Kc();f.Ob();)c=u(f.Pb(),230),c.hg(d,e);for(g=0;g<e[d].length;g++){for(h=n.Kc();h.Ob();)c=u(h.Pb(),230),c.ig(d,g,e);for(k=e[d][g].j,p=0;p<k.c.length;p++){for(l=n.Kc();l.Ob();)c=u(l.Pb(),230),c.jg(d,g,p,e);for(m=(Nn(p,k.c.length),u(k.c[p],12)),t=0,r=new Lf(m.b);tc(r.a)||tc(r.b);)for(i=u(tc(r.a)?E(r.a):E(r.b),18),a=n.Kc();a.Ob();)c=u(a.Pb(),230),c.gg(d,g,p,t++,i,e)}}}for(s=n.Kc();s.Ob();)c=u(s.Pb(),230),c.fg()}function mOe(n,e){var t,i,r,c,s,f,h;for(n.b=$(B(v(e,(cn(),T2)))),n.c=$(B(v(e,Kd))),n.d=u(v(e,MH),350),n.a=u(v(e,fO),282),r7e(e),f=u(Wr(ut(ut(rc(rc(new Cn(null,new On(e.b,16)),new X0n),new V0n),new W0n),new J0n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),r=f.Kc();r.Ob();)t=u(r.Pb(),18),s=u(v(t,(W(),Ld)),15),s.Jc(new Q9n(n)),U(t,Ld,null);for(i=f.Kc();i.Ob();)t=u(i.Pb(),18),h=u(v(t,(W(),ofn)),18),c=u(v(t,M2),15),LNe(n,c,h),U(t,M2,null)}function _R(n,e){var t,i,r,c,s,f,h;if(n.a){if(f=n.a.xe(),h=null,f!=null?e.a+=""+f:(s=n.a.mk(),s!=null&&(c=ih(s,wu(91)),c!=-1?(h=(zn(c,s.length+1),s.substr(c)),e.a+=""+qo(s==null?gu:(Jn(s),s),0,c)):e.a+=""+s)),n.d&&n.d.i!=0){for(r=!0,e.a+="<",i=new ne(n.d);i.e!=i.i.gc();)t=u(ue(i),89),r?r=!1:e.a+=ur,_R(t,e);e.a+=">"}h!=null&&(e.a+=""+h)}else n.e?(f=n.e.zb,f!=null&&(e.a+=""+f)):(e.a+="?",n.b?(e.a+=" super ",_R(n.b,e)):n.f&&(e.a+=" extends ",_R(n.f,e)))}function vOe(n){n.b=null,n.a=null,n.o=null,n.q=null,n.v=null,n.w=null,n.B=null,n.p=null,n.Q=null,n.R=null,n.S=null,n.T=null,n.U=null,n.V=null,n.W=null,n.bb=null,n.eb=null,n.ab=null,n.H=null,n.db=null,n.c=null,n.d=null,n.f=null,n.n=null,n.r=null,n.s=null,n.u=null,n.G=null,n.J=null,n.e=null,n.j=null,n.i=null,n.g=null,n.k=null,n.t=null,n.F=null,n.I=null,n.L=null,n.M=null,n.O=null,n.P=null,n.$=null,n.N=null,n.Z=null,n.cb=null,n.K=null,n.D=null,n.A=null,n.C=null,n._=null,n.fb=null,n.X=null,n.Y=null,n.gb=!1,n.hb=!1}function kOe(n){var e,t,i,r;if(i=ZR((!n.c&&(n.c=W7(vc(n.f))),n.c),0),n.e==0||n.a==0&&n.f!=-1&&n.e<0)return i;if(e=DQ(n)<0?1:0,t=n.e,r=(i.length+1+y.Math.abs(wi(n.e)),new fg),e==1&&(r.a+="-"),n.e>0)if(t-=i.length-e,t>=0){for(r.a+="0.";t>Od.length;t-=Od.length)JPn(r,Od);DSn(r,Od,wi(t)),Be(r,(zn(e,i.length+1),i.substr(e)))}else t=e-t,Be(r,qo(i,e,wi(t))),r.a+=".",Be(r,NW(i,wi(t)));else{for(Be(r,(zn(e,i.length+1),i.substr(e)));t<-Od.length;t+=Od.length)JPn(r,Od);DSn(r,Od,wi(-t))}return r.a}function HR(n){var e,t,i,r,c,s,f,h,l;return!(n.k!=(Vn(),Xt)||n.j.c.length<=1||(c=u(v(n,(cn(),_t)),101),c==(Ai(),qc))||(r=(c0(),(n.q?n.q:(Ln(),Ln(),Wh))._b(lw)?i=u(v(n,lw),203):i=u(v(Hi(n),U8),203),i),r==CO)||!(r==I2||r==P2)&&(s=$(B(r0(n,G8))),e=u(v(n,Cj),140),!e&&(e=new gV(s,s,s,s)),l=uc(n,(en(),Wn)),h=e.d+e.a+(l.gc()-1)*s,h>n.o.b||(t=uc(n,Zn),f=e.d+e.a+(t.gc()-1)*s,f>n.o.b)))}function yOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;e.Ug("Orthogonal edge routing",1),l=$(B(v(n,(cn(),S2)))),t=$(B(v(n,T2))),i=$(B(v(n,Kd))),g=new lD(0,t),j=0,s=new xi(n.b,0),f=null,a=null,h=null,d=null;do a=s.b<s.d.gc()?(oe(s.b<s.d.gc()),u(s.d.Xb(s.c=s.b++),30)):null,d=a?a.a:null,f&&(zen(f,j),j+=f.c.a),k=f?j+i:j,m=Qen(g,n,h,d,k),r=!f||SM(h,(AS(),Aj)),c=!a||SM(d,(AS(),Aj)),m>0?(p=(m-1)*t,f&&(p+=i),a&&(p+=i),p<l&&!r&&!c&&(p=l),j+=p):!r&&!c&&(j+=l),f=a,h=d;while(a);n.f.a=j,e.Vg()}function qS(n,e){var t,i,r,c,s,f,h,l,a,d;if(a=null,n.d&&(a=u(Dc(n.d,e),142)),!a){if(c=n.a.vi(),d=c.i,!n.d||i6(n.d)!=d){for(h=new de,n.d&&u5(h,n.d),l=h.f.c+h.i.c,f=l;f<d;++f)i=u(N(c,f),142),r=r1(n.e,i).xe(),t=u(r==null?Vc(h.f,null,i):Nb(h.i,r,i),142),t&&t!=i&&(r==null?Vc(h.f,null,t):Nb(h.i,r,t));if(h.f.c+h.i.c!=d)for(s=0;s<l;++s)i=u(N(c,s),142),r=r1(n.e,i).xe(),t=u(r==null?Vc(h.f,null,i):Nb(h.i,r,i),142),t&&t!=i&&(r==null?Vc(h.f,null,t):Nb(h.i,r,t));n.d=h}a=u(Dc(n.d,e),142)}return a}function qR(n,e,t,i,r,c,s){var f,h,l,a,d,g,p;return d=on(un(v(e,(cn(),chn)))),g=null,c==(gr(),Vu)&&i.c.i==t?g=i.c:c==Jc&&i.d.i==t&&(g=i.d),l=s,!l||!d||g?(a=(en(),sc),g?a=g.j:mg(u(v(t,_t),101))&&(a=c==Vu?Wn:Zn),h=jOe(n,e,t,c,a,i),f=JD((Hi(t),i)),c==Vu?(Zi(f,u(sn(h.j,0),12)),Oi(f,r)):(Zi(f,r),Oi(f,u(sn(h.j,0),12))),l=new lKn(i,f,h,u(v(h,(W(),st)),12),c,!g)):(nn(l.e,i),p=y.Math.max($(B(v(l.d,m1))),$(B(v(i,m1)))),U(l.d,m1,p)),In(n.a,i,new GM(l.d,e,c)),l}function UR(){UR=R;var n;_dn=new ojn,$oe=F(fn,J,2,0,6,1),Noe=lf(Up(33,58),Up(1,26)),Doe=lf(Up(97,122),Up(65,90)),xdn=Up(48,57),Aoe=lf(Noe,0),Loe=lf(Doe,xdn),Rdn=lf(lf(0,Up(1,6)),Up(33,38)),Kdn=lf(lf(xdn,Up(65,70)),Up(97,102)),xoe=lf(Aoe,ZC("-_.!~*'()")),Roe=lf(Loe,GC("-_.!~*'()")),ZC(eJn),GC(eJn),lf(xoe,ZC(";:@&=+$,")),lf(Roe,GC(";:@&=+$,")),Bdn=ZC(":/?#"),Fdn=GC(":/?#"),A9=ZC("/?#"),L9=GC("/?#"),n=new ni,n.a.zc("jar",n),n.a.zc("zip",n),n.a.zc("archive",n),jA=(Ln(),new im(n))}function jOe(n,e,t,i,r,c){var s,f,h,l,a,d;return s=null,l=i==(gr(),Vu)?c.c:c.d,h=FC(e),l.i==t?(s=u(ee(n.b,l),10),s||(s=py(l,u(v(t,(cn(),_t)),101),r,CPe(l),null,l.n,l.o,h,e),U(s,(W(),st),l),Ve(n.b,l,s))):(s=py((a=new xA,d=$(B(v(e,(cn(),Ws))))/2,Ck(a,F0,d),a),u(v(t,_t),101),r,i==Vu?-1:1,null,new Ni,new V(0,0),h,e),f=eye(s,t,i),U(s,(W(),st),f),Ve(n.b,f,s)),u(v(e,(W(),Hc)),21).Fc((pr(),cs)),mg(u(v(e,(cn(),_t)),101))?U(e,_t,(Ai(),Bv)):U(e,_t,(Ai(),Qf)),s}function A4(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;f=0,m=0,h=AT(n.g,n.g.length),c=n.e,s=n.j,i=n.b,r=n.c;do{for(p=0,a=new M(n.q);a.a<a.c.c.length;)l=u(E(a),10),g=CGn(n,l),t=!0,(n.r==(ps(),Sj)||n.r==Pj)&&(t=on(un(g.b))),u(g.a,17).a<0&&t?(++p,h=AT(n.g,n.g.length),n.e=n.e+u(g.a,17).a,m+=c-n.e,c=n.e+u(g.a,17).a,s=n.j,i=Mb(n.b),r=Mb(n.c)):(n.g=AT(h,h.length),n.e=c,n.b=(Pe(i),i?new _u(i):km(new M(i))),n.c=(Pe(r),r?new _u(r):km(new M(r))),n.j=s);++f,d=p!=0&&on(un(e.Kb(new bi(Y(m),Y(f)))))}while(d)}function EOe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn;return s=n.f,g=e.f,f=s==(D5(),A3)||s==l9,p=g==A3||g==l9,h=s==D2||s==a9,m=g==D2||g==a9,l=s==D2||s==A3,k=g==D2||g==A3,f&&p?n.f==l9?n:e:h&&m?n.f==a9?n:e:l&&k?(s==D2?(d=n,a=e):(d=e,a=n),c=(j=t.j+t.f,P=d.e+i.f,O=y.Math.max(j,P),A=O-y.Math.min(t.j,d.e),D=d.d+i.g-t.i,D*A),r=(_=t.i+t.g,X=a.d+i.g,tn=y.Math.max(_,X),jn=tn-y.Math.min(t.i,a.d),kn=a.e+i.f-t.j,jn*kn),c<=r?n.f==D2?n:e:n.f==A3?n:e):n}function oGn(n,e){var t,i,r,c,s,f,h,l,a,d;if(U(e,(pt(),Lv),0),h=u(v(e,$O),39),e.d.b==0)h?(a=$(B(v(h,j1)))+n.b+IY(n,h,e),U(e,j1,a)):U(e,j1,0);else{for(i=(c=ge(new sl(e).a.d,0),new sg(c));Q9(i.a);)t=u(be(i.a),65).c,oGn(n,t);f=u(NM((s=ge(new sl(e).a.d,0),new sg(s))),39),d=u(O1e((r=ge(new sl(e).a.d,0),new sg(r))),39),l=($(B(v(d,j1)))+$(B(v(f,j1))))/2,h?(a=$(B(v(h,j1)))+n.b+IY(n,h,e),U(e,j1,a),U(e,Lv,$(B(v(e,j1)))-l),$Ae(n,e)):U(e,j1,l)}}function MOe(n){var e,t,i,r,c,s,f,h,l,a,d;for(a=n.e.a.c.length,s=new M(n.e.a);s.a<s.c.c.length;)c=u(E(s),125),c.j=!1;for(n.i=F(ye,_e,28,a,15,1),n.g=F(ye,_e,28,a,15,1),n.n=new Z,r=0,d=new Z,h=new M(n.e.a);h.a<h.c.c.length;)f=u(E(h),125),f.d=r++,f.b.a.c.length==0&&nn(n.n,f),hi(d,f.g);for(e=0,i=new M(d);i.a<i.c.c.length;)t=u(E(i),218),t.c=e++,t.f=!1;l=d.c.length,n.b==null||n.b.length<l?(n.b=F(Ii,Cr,28,l,15,1),n.c=F(so,Xh,28,l,16,1)):Zv(n.c),n.d=d,n.p=new MN(Qw(n.d.c.length)),n.j=1}function TOe(n,e){var t,i,r,c,s,f,h,l,a;if(!(e.e.c.length<=1)){for(n.f=e,n.d=u(v(n.f,(qk(),yon)),391),n.g=u(v(n.f,Ton),17).a,n.e=$(B(v(n.f,jon))),n.c=$(B(v(n.f,EI))),KIn(n.b),r=new M(n.f.c);r.a<r.c.c.length;)i=u(E(r),289),Cen(n.b,i.c,i,null),Cen(n.b,i.d,i,null);for(f=n.f.e.c.length,n.a=Wa(Ii,[J,Cr],[109,28],15,[f,f],2),l=new M(n.f.e);l.a<l.c.c.length;)h=u(E(l),153),QIe(n,h,n.a[h.a]);for(n.i=Wa(Ii,[J,Cr],[109,28],15,[f,f],2),c=0;c<f;++c)for(s=0;s<f;++s)t=n.a[c][s],a=1/(t*t),n.i[c][s]=a}}function sGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(f=e.ah(),f||e.Ug(MXn,1),t=u(v(n,(W(),bH)),15),s=1/t.gc(),e._g())for(e.bh("ELK Layered uses the following "+t.gc()+" modules:"),p=0,g=t.Kc();g.Ob();)a=u(g.Pb(),47),i=(p<10?"0":"")+p++,e.bh(" Slot "+i+": "+Xa(wo(a)));for(d=t.Kc();d.Ob();){if(a=u(d.Pb(),47),e.$g())return;a.Kf(n,e.eh(s))}for(c=new M(n.b);c.a<c.c.c.length;)r=u(E(c),30),hi(n.a,r.a),r.a.c.length=0;for(l=new M(n.a);l.a<l.c.c.length;)h=u(E(l),10),$i(h,null);n.b.c.length=0,f||e.Vg()}function COe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;if(l=new Z,!kt(n,(W(),fH)))return l;for(i=u(v(n,fH),15).Kc();i.Ob();)e=u(i.Pb(),10),qOe(e,n),Bn(l.c,e);for(c=new M(n.b);c.a<c.c.c.length;)for(r=u(E(c),30),f=new M(r.a);f.a<f.c.c.length;)s=u(E(f),10),s.k==(Vn(),Zt)&&(h=u(v(s,cO),10),h&&(a=new Ic,ic(a,s),d=u(v(s,gc),64),gi(a,d),g=u(sn(h.j,0),12),p=new yb,Zi(p,a),Oi(p,g)));for(t=new M(l);t.a<t.c.c.length;)e=u(E(t),10),$i(e,u(sn(n.b,n.b.c.length-1),30));return l}function fGn(n,e,t){var i,r,c,s,f,h,l,a,d;for(d=new Z,a=new lJ(0,t),c=0,wC(a,new U$(0,0,a,t)),r=0,l=new ne(n);l.e!=l.i.gc();)h=u(ue(l),27),i=u(sn(a.a,a.a.c.length-1),172),f=r+h.g+(u(sn(a.a,0),172).b.c.length==0?0:t),(f>e||on(un(z(h,(Bf(),Bj)))))&&(r=0,c+=a.b+t,Bn(d.c,a),a=new lJ(c,t),i=new U$(0,a.f,a,t),wC(a,i),r=0),i.b.c.length==0||!on(un(z(St(h),(Bf(),Aq))))&&(h.f>=i.o&&h.f<=i.f||i.a*.5<=h.f&&i.a*1.5>=h.f)?DY(i,h):(s=new U$(i.s+i.r+t,a.f,a,t),wC(a,s),DY(s,h)),r=h.i+h.g;return Bn(d.c,a),d}function U5(n){var e,t,i,r;if(!(n.b==null||n.b.length<=2)&&!n.a){for(e=0,r=0;r<n.b.length;){for(e!=r?(n.b[e]=n.b[r++],n.b[e+1]=n.b[r++]):r+=2,t=n.b[e+1];r<n.b.length&&!(t+1<n.b[r]);)if(t+1==n.b[r])n.b[e+1]=n.b[r+1],t=n.b[e+1],r+=2;else if(t>=n.b[r+1])r+=2;else if(t<n.b[r+1])n.b[e+1]=n.b[r+1],t=n.b[e+1],r+=2;else throw T(new ec("Token#compactRanges(): Internel Error: ["+n.b[e]+","+n.b[e+1]+"] ["+n.b[r]+","+n.b[r+1]+"]"));e+=2}e!=n.b.length&&(i=F(ye,_e,28,e,15,1),Oc(n.b,0,i,0,e),n.b=i),n.a=!0}}function SOe(n,e){var t,i,r,c,s,f,h;for(s=Cp(n.a).Kc();s.Ob();){if(c=u(s.Pb(),18),c.b.c.length>0)for(i=new _u(u(ot(n.a,c),21)),Ln(),Yt(i,new AG(e)),r=new xi(c.b,0);r.b<r.d.gc();){switch(t=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),72)),f=-1,u(v(t,(cn(),Sh)),278).g){case 1:f=i.c.length-1;break;case 0:f=Dke(i);break;case 2:f=0}f!=-1&&(h=(Nn(f,i.c.length),u(i.c[f],249)),nn(h.b.b,t),u(v(Hi(h.b.c.i),(W(),Hc)),21).Fc((pr(),vv)),u(v(Hi(h.b.c.i),Hc),21).Fc(mv),bo(r),U(t,rfn,c))}Zi(c,null),Oi(c,null)}}function POe(n,e){var t,i,r,c;return t=new ywn,i=u(Wr(_r(new Cn(null,new On(n.f,16)),t),Ww(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),S0),Yr]))),21),r=i.gc(),r=r==2?1:0,r==1&&cb(Rk(u(Wr(ut(i.Lc(),new jwn),Axn(Tl(0),new RU)),168).a,2),0)&&(r=0),i=u(Wr(_r(new Cn(null,new On(e.f,16)),t),Ww(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[S0,Yr]))),21),c=i.gc(),c=c==2?1:0,c==1&&cb(Rk(u(Wr(ut(i.Lc(),new Ewn),Axn(Tl(0),new RU)),168).a,2),0)&&(c=0),r<c?-1:r==c?0:1}function hGn(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(e=Pf(n),c=on(un(z(e,(cn(),B0)))),a=0,r=0,l=new ne((!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e));l.e!=l.i.gc();)h=u(ue(l),74),f=Bb(h),s=f&&c&&on(un(z(h,Dd))),g=Gr(u(N((!h.c&&(h.c=new Dn(he,h,5,8)),h.c),0),84)),f&&s?++r:f&&!s?++a:St(g)==e||g==e?++r:++a;for(i=new ne((!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d));i.e!=i.i.gc();)t=u(ue(i),74),f=Bb(t),s=f&&c&&on(un(z(t,Dd))),d=Gr(u(N((!t.b&&(t.b=new Dn(he,t,4,7)),t.b),0),84)),f&&s?++a:f&&!s?++r:St(d)==e||d==e?++a:++r;return a-r}function IOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(e.Ug("Edge splitting",1),n.b.c.length<=2){e.Vg();return}for(c=new xi(n.b,0),s=(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),30));c.b<c.d.gc();)for(r=s,s=(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),30)),h=new M(r.a);h.a<h.c.c.length;)for(f=u(E(h),10),a=new M(f.j);a.a<a.c.c.length;)for(l=u(E(a),12),i=new M(l.g);i.a<i.c.c.length;)t=u(E(i),18),g=t.d,d=g.i.c,d!=r&&d!=s&&kqn(t,(p=new Cl(n),Ha(p,(Vn(),Ti)),U(p,(W(),st),t),U(p,(cn(),_t),(Ai(),qc)),$i(p,s),p));e.Vg()}function OOe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(a=new Z,g=new ni,s=e.b,r=0;r<s.c.length;r++){for(l=(Nn(r,s.c.length),u(s.c[r],30)).a,a.c.length=0,c=0;c<l.c.length;c++)f=n.a[r][c],f.p=c,f.k==(Vn(),_c)&&Bn(a.c,f),Go(u(sn(e.b,r),30).a,c,f),f.j.c.length=0,hi(f.j,u(u(sn(n.b,r),15).Xb(c),16)),Ep(u(v(f,(cn(),_t)),101))||U(f,_t,(Ai(),Ud));for(i=new M(a);i.a<i.c.c.length;)t=u(E(i),10),d=cPe(t),g.a.zc(d,g),g.a.zc(t,g)}for(h=g.a.ec().Kc();h.Ob();)f=u(h.Pb(),10),Ln(),Yt(f.j,(r4(),ksn)),f.i=!0,Tnn(f)}function lGn(n){var e,t,i,r,c;return n.g!=null?n.g:n.a<32?(n.g=WLe(vc(n.f),wi(n.e)),n.g):(r=ZR((!n.c&&(n.c=W7(vc(n.f))),n.c),0),n.e==0?r:(e=(!n.c&&(n.c=W7(vc(n.f))),n.c).e<0?2:1,t=r.length,i=-n.e+t-e,c=new R1,c.a+=""+r,n.e>0&&i>=-6?i>=0?E7(c,t-wi(n.e),"."):(N$(c,e-1,e-1,"0."),E7(c,e+1,ws(Od,0,-wi(i)-1))):(t-e>=1&&(E7(c,e,"."),++t),E7(c,t,"E"),i>0&&E7(c,++t,"+"),E7(c,++t,""+B6(vc(i)))),n.g=c.a,n.g))}function AOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn;i=$(B(v(e,(cn(),ohn)))),_=u(v(e,z8),17).a,g=4,r=3,X=20/_,p=!1,h=0,s=et;do{for(c=h!=1,d=h!=0,tn=0,j=n.a,O=0,D=j.length;O<D;++O)m=j[O],m.f=null,mLe(n,m,c,d,i),tn+=y.Math.abs(m.a);do f=cIe(n,e);while(f);for(k=n.a,P=0,A=k.length;P<A;++P)if(m=k[P],t=vW(m).a,t!=0)for(a=new M(m.e);a.a<a.c.c.length;)l=u(E(a),10),l.n.b+=t;h==0||h==1?(--g,g<=0&&(tn<s||-g>_)?(h=2,s=et):h==0?(h=1,s=tn):(h=0,s=tn)):(p=tn>=s||s-tn<X,s=tn,p&&--r)}while(!(p&&r<=0))}function GR(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;for(m=new de,c=n.a.ec().Kc();c.Ob();)i=u(c.Pb(),177),Ve(m,i,t.af(i));for(s=(Pe(n),n?new _u(n):km(n.a.ec().Kc())),Yt(s,new I9n(m)),f=HT(s),h=new LM(e),p=new de,Vc(p.f,e,h);f.a.gc()!=0;){for(l=null,a=null,d=null,r=f.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),177),$(B(Fr(wr(m.f,i))))<=Pt){if(Zc(p,i.a)&&!Zc(p,i.b)){a=i.b,d=i.a,l=i;break}if(Zc(p,i.b)&&!Zc(p,i.a)){a=i.a,d=i.b,l=i;break}}if(!l)break;g=new LM(a),nn(u(Fr(wr(p.f,d)),225).a,g),Vc(p.f,a,g),f.a.Bc(l)!=null}return h}function LOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;for(t.Ug("Depth-first cycle removal",1),d=e.a,a=d.c.length,n.c=new Z,n.d=F(so,Xh,28,a,16,1),n.a=F(so,Xh,28,a,16,1),n.b=new Z,s=0,l=new M(d);l.a<l.c.c.length;)h=u(E(l),10),h.p=s,Nm(ji(h))&&nn(n.c,h),++s;for(p=new M(n.c);p.a<p.c.c.length;)g=u(E(p),10),vnn(n,g);for(c=0;c<a;c++)n.d[c]||(f=(Nn(c,d.c.length),u(d.c[c],10)),vnn(n,f));for(r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),18),Hb(i,!0),U(e,(W(),vj),(_n(),!0));n.c=null,n.d=null,n.a=null,n.b=null,t.Vg()}function NOe(n,e){Vg();var t,i,r,c,s,f;return c=e.c-(n.c+n.b),r=n.c-(e.c+e.b),s=n.d-(e.d+e.a),t=e.d-(n.d+n.a),i=y.Math.max(r,c),f=y.Math.max(s,t),Cf(),Fs(jh),(y.Math.abs(i)<=jh||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:ub(isNaN(i),isNaN(0)))>=0^(Fs(jh),(y.Math.abs(f)<=jh||f==0||isNaN(f)&&isNaN(0)?0:f<0?-1:f>0?1:ub(isNaN(f),isNaN(0)))>=0)?y.Math.max(f,i):(Fs(jh),(y.Math.abs(i)<=jh||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:ub(isNaN(i),isNaN(0)))>0?y.Math.sqrt(f*f+i*i):-y.Math.sqrt(f*f+i*i))}function pd(n,e){var t,i,r,c,s,f;if(e){if(!n.a&&(n.a=new RE),n.e==2){xE(n.a,e);return}if(e.e==1){for(r=0;r<e.Pm();r++)pd(n,e.Lm(r));return}if(f=n.a.a.c.length,f==0){xE(n.a,e);return}if(s=u(mb(n.a,f-1),122),!((s.e==0||s.e==10)&&(e.e==0||e.e==10))){xE(n.a,e);return}c=e.e==0?2:e.Mm().length,s.e==0?(t=new e6,i=s.Km(),i>=hr?Er(t,NY(i)):Tm(t,i&ui),s=new OD(10,null,0),w0e(n.a,s,f-1)):(t=(s.Mm().length+c,new e6),Er(t,s.Mm())),e.e==0?(i=e.Km(),i>=hr?Er(t,NY(i)):Tm(t,i&ui)):Er(t,e.Mm()),u(s,530).b=t.a}}function DOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(!t.dc()){for(f=0,g=0,i=t.Kc(),m=u(i.Pb(),17).a;f<e.f;){if(f==m&&(g=0,i.Ob()?m=u(i.Pb(),17).a:m=e.f+1),f!=g){for(j=u(sn(n.b,f),30),p=u(sn(n.b,g),30),k=Mb(j.a),d=new M(k);d.a<d.c.c.length;)if(a=u(E(d),10),u0(a,p.a.c.length,p),g==0)for(s=Mb(ji(a)),c=new M(s);c.a<c.c.c.length;)r=u(E(c),18),Hb(r,!0),U(n,(W(),vj),(_n(),!0)),gGn(n,r,1)}++g,++f}for(h=new xi(n.b,0);h.b<h.d.gc();)l=(oe(h.b<h.d.gc()),u(h.d.Xb(h.c=h.b++),30)),l.a.c.length==0&&bo(h)}}function $Oe(n,e,t){var i,r,c;if(r=u(v(e,(cn(),fO)),282),r!=(y4(),D8)){switch(t.Ug("Horizontal Compaction",1),n.a=e,c=new GDn,i=new uHn((c.d=e,c.c=u(v(c.d,$l),223),CSe(c),NAe(c),DSe(c),c.a)),yhe(i,n.b),u(v(e,Rfn),431).g){case 1:Ujn(i,new gxn(n.a));break;default:Ujn(i,(WW(),FQn))}switch(r.g){case 1:N5(i);break;case 2:N5(US(i,(ci(),Xr)));break;case 3:N5(Gjn(US(N5(i),(ci(),Xr)),new H2n));break;case 4:N5(Gjn(US(N5(i),(ci(),Xr)),new w7n(c)));break;case 5:N5(khe(i,QZn))}US(i,(ci(),Kr)),i.e=!0,sLe(c),t.Vg()}}function xOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(s=e.b,a=s.o,h=s.d,i=$(B(nS(s,(cn(),Ws)))),r=$(B(nS(s,C2))),l=$(B(nS(s,OH))),f=new sL,GV(f,h.d,h.c,h.a,h.b),g=zSe(e,i,r,l),P=new M(e.d);P.a<P.c.c.length;){for(j=u(E(P),105),m=j.f.a.ec().Kc();m.Ob();)p=u(m.Pb(),340),c=p.a,d=Cye(p),t=(O=new Tu,DFn(p,p.c,g,O),Zye(p,d,g,O),DFn(p,p.d,g,O),O),t=n.ng(p,d,t),vo(c.a),Ki(c.a,t),Ut(new Cn(null,new On(t,16)),new BMn(a,f));k=j.i,k&&(bye(j,k,g,r),A=new rr(k.g),rZ(a,f,A),it(A,k.j),rZ(a,f,A))}GV(h,f.d,f.c,f.a,f.b)}function ROe(n,e,t,i,r,c,s,f){var h,l,a,d;switch(h=Af(S(C(PDe,1),Rn,238,0,[e,t,i,r])),d=null,n.b.g){case 1:d=Af(S(C(T1n,1),Rn,535,0,[new FA,new KA,new BA]));break;case 0:d=Af(S(C(T1n,1),Rn,535,0,[new BA,new KA,new FA]));break;case 2:d=Af(S(C(T1n,1),Rn,535,0,[new KA,new FA,new BA]))}for(a=new M(d);a.a<a.c.c.length;)l=u(E(a),535),h.c.length>1&&(h=l.Hg(h,n.a,f));return h.c.length==1?u(sn(h,h.c.length-1),238):h.c.length==2?EOe((Nn(0,h.c.length),u(h.c[0],238)),(Nn(1,h.c.length),u(h.c[1],238)),s,c):null}function KOe(n,e,t){var i,r,c,s,f,h,l;for(t.Ug("Find roots",1),n.a.c.length=0,r=ge(e.b,0);r.b!=r.d.c;)i=u(be(r),39),i.b.b==0&&(U(i,(pt(),Ca),(_n(),!0)),nn(n.a,i));switch(n.a.c.length){case 0:c=new q$(0,e,"DUMMY_ROOT"),U(c,(pt(),Ca),(_n(),!0)),U(c,eq,!0),Re(e.b,c);break;case 1:break;default:for(s=new q$(0,e,OP),h=new M(n.a);h.a<h.c.c.length;)f=u(E(h),39),l=new VW(s,f),U(l,(pt(),eq),(_n(),!0)),Re(s.a.a,l),Re(s.d,l),Re(f.b,l),U(f,Ca,!1);U(s,(pt(),Ca),(_n(),!0)),U(s,eq,!0),Re(e.b,s)}t.Vg()}function aGn(n){var e,t,i,r,c,s;for(nu(n.a,new Lwn),t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),225),i=mi(Fi(u(n.b,68).c),u(e.b,68).c),TYn?(s=u(n.b,68).b,c=u(e.b,68).b,y.Math.abs(i.a)>=y.Math.abs(i.b)?(i.b=0,c.d+c.a>s.d&&c.d<s.d+s.a&&WM(i,y.Math.max(s.c-(c.c+c.b),c.c-(s.c+s.b)))):(i.a=0,c.c+c.b>s.c&&c.c<s.c+s.b&&WM(i,y.Math.max(s.d-(c.d+c.a),c.d-(s.d+s.a))))):WM(i,xUn(u(n.b,68),u(e.b,68))),r=y.Math.sqrt(i.a*i.a+i.b*i.b),r=IFn(P8,e,r,i),WM(i,r),YN(u(e.b,68),i),nu(e.a,new PG(i)),u(P8.b,68),GJ(P8,ion,e)}function BOe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m;for(n.f=new oL,l=0,r=0,s=new M(n.e.b);s.a<s.c.c.length;)for(c=u(E(s),30),h=new M(c.a);h.a<h.c.c.length;){for(f=u(E(h),10),f.p=l++,i=new ie(ce(Qt(f).a.Kc(),new En));pe(i);)t=u(fe(i),18),t.p=r++;for(e=HR(f),g=new M(f.j);g.a<g.c.c.length;)d=u(E(g),12),e&&(m=d.a.b,m!=y.Math.floor(m)&&(a=m-id(vc(y.Math.round(m))),d.a.b-=a)),p=d.n.b+d.a.b,p!=y.Math.floor(p)&&(a=p-id(vc(y.Math.round(p))),d.n.b-=a)}n.g=l,n.b=r,n.i=F(MDe,Rn,412,l,0,1),n.c=F(EDe,Rn,655,r,0,1),n.d.a.$b()}function me(n){var e,t,i,r,c,s,f,h,l;if(n.Pj())if(h=n.Qj(),n.i>0){if(e=new bX(n.i,n.g),t=n.i,c=t<100?null:new K1(t),n.Tj())for(i=0;i<n.i;++i)s=n.g[i],c=n.Vj(s,c);if(Z6(n),r=t==1?n.Ij(4,N(e,0),null,0,h):n.Ij(6,e,null,-1,h),n.Mj()){for(i=new yp(e);i.e!=i.i.gc();)c=n.Oj(Tx(i),c);c?(c.nj(r),c.oj()):n.Jj(r)}else c?(c.nj(r),c.oj()):n.Jj(r)}else Z6(n),n.Jj(n.Ij(6,(Ln(),sr),null,-1,h));else if(n.Mj())if(n.i>0){for(f=n.g,l=n.i,Z6(n),c=l<100?null:new K1(l),i=0;i<l;++i)s=f[i],c=n.Oj(s,c);c&&c.oj()}else Z6(n);else Z6(n)}function Gen(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(Gxn(this),t==(Eb(),Ta)?fi(this.r,n):fi(this.w,n),a=Pt,l=li,s=e.a.ec().Kc();s.Ob();)r=u(s.Pb(),42),f=u(r.a,464),i=u(r.b,18),h=i.c,h==n&&(h=i.d),f==Ta?fi(this.r,h):fi(this.w,h),g=(en(),mu).Hc(h.j)?$(B(v(h,(W(),yv)))):cc(S(C(Ei,1),J,8,0,[h.i.n,h.n,h.a])).b,a=y.Math.min(a,g),l=y.Math.max(l,g);for(d=(en(),mu).Hc(n.j)?$(B(v(n,(W(),yv)))):cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a])).b,YFn(this,d,a,l),c=e.a.ec().Kc();c.Ob();)r=u(c.Pb(),42),s_n(this,u(r.b,18));this.o=!1}function FOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te;return t=n.l&8191,i=n.l>>13|(n.m&15)<<9,r=n.m>>4&8191,c=n.m>>17|(n.h&255)<<5,s=(n.h&1048320)>>8,f=e.l&8191,h=e.l>>13|(e.m&15)<<9,l=e.m>>4&8191,a=e.m>>17|(e.h&255)<<5,d=(e.h&1048320)>>8,jn=t*f,kn=i*f,Fn=r*f,Kn=c*f,te=s*f,h!=0&&(kn+=t*h,Fn+=i*h,Kn+=r*h,te+=c*h),l!=0&&(Fn+=t*l,Kn+=i*l,te+=r*l),a!=0&&(Kn+=t*a,te+=i*a),d!=0&&(te+=t*d),p=jn&ro,m=(kn&511)<<13,g=p+m,j=jn>>22,P=kn>>9,O=(Fn&262143)<<4,A=(Kn&31)<<17,k=j+P+O+A,_=Fn>>18,X=Kn>>5,tn=(te&4095)<<8,D=_+X+tn,k+=g>>22,g&=ro,D+=k>>22,k&=ro,D&=Ol,Yc(g,k,D)}function dGn(n){var e,t,i,r,c,s,f;if(f=u(sn(n.j,0),12),f.g.c.length!=0&&f.e.c.length!=0)throw T(new Ar("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(f.g.c.length!=0){for(c=Pt,t=new M(f.g);t.a<t.c.c.length;)e=u(E(t),18),s=e.d.i,i=u(v(s,(cn(),pO)),140),c=y.Math.min(c,s.n.a-i.b);return new TE(Pe(c))}if(f.e.c.length!=0){for(r=li,t=new M(f.e);t.a<t.c.c.length;)e=u(E(t),18),s=e.c.i,i=u(v(s,(cn(),pO)),140),r=y.Math.max(r,s.n.a+s.o.a+i.c);return new TE(Pe(r))}return Qv(),Qv(),FF}function bGn(n,e){var t,i,r,c,s,f,h;if(n.ol()){if(n.i>4)if(n.fk(e)){if(n.al()){if(r=u(e,54),i=r.Eh(),h=i==n.e&&(n.ml()?r.yh(r.Fh(),n.il())==n.jl():-1-r.Fh()==n.Lj()),n.nl()&&!h&&!i&&r.Jh()){for(c=0;c<n.i;++c)if(t=n.pl(u(n.g[c],58)),x(t)===x(e))return!0}return h}else if(n.ml()&&!n.ll()){if(s=u(e,58).Mh(br(u(n.Lk(),19))),x(s)===x(n.e))return!0;if(s==null||!u(s,58).Vh())return!1}}else return!1;if(f=v4(n,e),n.nl()&&!f){for(c=0;c<n.i;++c)if(r=n.pl(u(n.g[c],58)),x(r)===x(e))return!0}return f}else return v4(n,e)}function _Oe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(t.Ug("Interactive cycle breaking",1),d=new Z,p=new M(e.a);p.a<p.c.c.length;)for(g=u(E(p),10),g.p=1,m=RZ(g).a,a=$b(g,(gr(),Jc)).Kc();a.Ob();)for(l=u(a.Pb(),12),c=new M(l.g);c.a<c.c.c.length;)i=u(E(c),18),k=i.d.i,k!=g&&(j=RZ(k).a,j<m&&Bn(d.c,i));for(s=new M(d);s.a<s.c.c.length;)i=u(E(s),18),Hb(i,!0);for(d.c.length=0,h=new M(e.a);h.a<h.c.c.length;)f=u(E(h),10),f.p>0&&d_n(n,f,d);for(r=new M(d);r.a<r.c.c.length;)i=u(E(r),18),Hb(i,!0);d.c.length=0,t.Vg()}function HOe(n,e){var t,i,r,c,s,f,h,l,a;for(t=0,a=new Z,f=new M(e);f.a<f.c.c.length;){switch(s=u(E(f),12),fY(n.b,n.d[s.p]),a.c.length=0,s.i.k.g){case 0:i=u(v(s,(W(),Xu)),10),nu(i.j,new X7n(a));break;case 1:t1e(t4(ut(new Cn(null,new On(s.i.j,16)),new V7n(s))),new W7n(a));break;case 3:r=u(v(s,(W(),st)),12),nn(a,new bi(r,Y(s.e.c.length+s.g.c.length)))}for(l=new M(a);l.a<l.c.c.length;)h=u(E(l),42),c=Cz(n,u(h.a,12)),c>n.d[s.p]&&(t+=CJ(n.b,c)*u(h.b,17).a,J1(n.a,Y(c)));for(;!n6(n.a);)cQ(n.b,u(Pp(n.a),17).a)}return t}function qOe(n,e){var t,i,r,c,s,f,h,l,a,d;if(a=u(v(n,(W(),gc)),64),i=u(sn(n.j,0),12),a==(en(),Xn)?gi(i,ae):a==ae&&gi(i,Xn),u(v(e,(cn(),xd)),181).Hc((go(),Gd))){if(h=$(B(v(n,Cv))),l=$(B(v(n,Sv))),s=$(B(v(n,q0))),f=u(v(e,_0),21),f.Hc((zu(),Rl)))for(t=l,d=n.o.a/2-i.n.a,c=new M(i.f);c.a<c.c.c.length;)r=u(E(c),72),r.n.b=t,r.n.a=d-r.o.a/2,t+=r.o.b+s;else if(f.Hc(Aa))for(c=new M(i.f);c.a<c.c.c.length;)r=u(E(c),72),r.n.a=h+n.o.a-i.n.a;wpe(new IE((r6(),new kD(e,!1,!1,new _U))),new zM(null,n,!1))}}function UOe(n,e){var t,i,r,c,s,f,h,l,a;if(e.c.length!=0){for(Ln(),QN(e.c,e.c.length,null),r=new M(e),i=u(E(r),154);r.a<r.c.c.length;)t=u(E(r),154),hQ(i.e.c,t.e.c)&&!(ZY(CSn(i.e).b,t.e.d)||ZY(CSn(t.e).b,i.e.d))?i=(hi(i.k,t.k),hi(i.b,t.b),hi(i.c,t.c),Ki(i.i,t.i),hi(i.d,t.d),hi(i.j,t.j),c=y.Math.min(i.e.c,t.e.c),s=y.Math.min(i.e.d,t.e.d),f=y.Math.max(i.e.c+i.e.b,t.e.c+t.e.b),h=f-c,l=y.Math.max(i.e.d+i.e.a,t.e.d+t.e.a),a=l-s,APn(i.e,c,s,h,a),bpe(i.f,t.f),!i.a&&(i.a=t.a),hi(i.g,t.g),nn(i.g,t),i):(SUn(n,i),i=t);SUn(n,i)}}function GOe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;for(h=new Z,c=new M(e.a);c.a<c.c.c.length;)for(r=u(E(c),10),f=new M(r.j);f.a<f.c.c.length;){for(s=u(E(f),12),a=null,A=hh(s.g),D=0,_=A.length;D<_;++D)O=A[D],Jm(O.d.i,t)||(P=qR(n,e,t,O,O.c,(gr(),Jc),a),P!=a&&Bn(h.c,P),P.c&&(a=P));for(l=null,m=hh(s.e),k=0,j=m.length;k<j;++k)p=m[k],Jm(p.c.i,t)||(P=qR(n,e,t,p,p.d,(gr(),Vu),l),P!=l&&Bn(h.c,P),P.c&&(l=P))}for(g=new M(h);g.a<g.c.c.length;)d=u(E(g),452),qr(e.a,d.a,0)!=-1||nn(e.a,d.a),d.c&&Bn(i.c,d)}function zOe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;for(d=new rr(u(z(n,(mS(),aan)),8)),d.a=y.Math.max(d.a-t.b-t.c,0),d.b=y.Math.max(d.b-t.d-t.a,0),r=B(z(n,fan)),(r==null||(Jn(r),r<=0))&&(r=1.3),f=new Z,m=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));m.e!=m.i.gc();)p=u(ue(m),27),s=new pSn(p),Bn(f.c,s);switch(g=u(z(n,Xq),320),g.g){case 3:j=LPe(f,e,d.a,d.b,(l=i,Jn(r),l));break;case 1:j=jIe(f,e,d.a,d.b,(a=i,Jn(r),a));break;default:j=VOe(f,e,d.a,d.b,(h=i,Jn(r),h))}c=new hC(j),k=QR(c,e,t,d.a,d.b,i,(Jn(r),r)),qb(n,k.a,k.b,!1,!0)}function XOe(n,e,t,i){var r,c,s,f,h,l;if(f=n.j,f==(en(),sc)&&e!=(Ai(),Qf)&&e!=(Ai(),Oa)&&(f=jUn(n,t),gi(n,f),!(n.q?n.q:(Ln(),Ln(),Wh))._b((cn(),F0))&&f!=sc&&(n.n.a!=0||n.n.b!=0)&&U(n,F0,X7e(n,f))),e==(Ai(),tl)){switch(l=0,f.g){case 1:case 3:c=n.i.o.a,c>0&&(l=n.n.a/c);break;case 2:case 4:r=n.i.o.b,r>0&&(l=n.n.b/r)}U(n,(W(),ow),l)}if(h=n.o,s=n.a,i)s.a=i.a,s.b=i.b,n.d=!0;else if(e!=Qf&&e!=Oa&&f!=sc)switch(f.g){case 1:s.a=h.a/2;break;case 2:s.a=h.a,s.b=h.b/2;break;case 3:s.a=h.a/2,s.b=h.b;break;case 4:s.b=h.b/2}else s.a=h.a/2,s.b=h.b/2}function G5(n){var e,t,i,r,c,s,f,h,l,a;if(n.Pj())if(a=n.Ej(),h=n.Qj(),a>0)if(e=new KQ(n.pj()),t=a,c=t<100?null:new K1(t),P7(n,t,e.g),r=t==1?n.Ij(4,N(e,0),null,0,h):n.Ij(6,e,null,-1,h),n.Mj()){for(i=new ne(e);i.e!=i.i.gc();)c=n.Oj(ue(i),c);c?(c.nj(r),c.oj()):n.Jj(r)}else c?(c.nj(r),c.oj()):n.Jj(r);else P7(n,n.Ej(),n.Fj()),n.Jj(n.Ij(6,(Ln(),sr),null,-1,h));else if(n.Mj())if(a=n.Ej(),a>0){for(f=n.Fj(),l=a,P7(n,a,f),c=l<100?null:new K1(l),i=0;i<l;++i)s=f[i],c=n.Oj(s,c);c&&c.oj()}else P7(n,n.Ej(),n.Fj());else P7(n,n.Ej(),n.Fj())}function VOe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j;for(f=F(Ii,Cr,28,n.c.length,15,1),g=new aT(new J4n),jZ(g,n),l=0,k=new Z;g.b.c.length!=0;)if(s=u(g.b.c.length==0?null:sn(g.b,0),163),l>1&&Pu(s)*ao(s)/2>f[0]){for(c=0;c<k.c.length-1&&Pu(s)*ao(s)/2>f[c];)++c;m=new Jl(k,0,c+1),d=new hC(m),a=Pu(s)/ao(s),h=QR(d,e,new up,t,i,r,a),it(ff(d.e),h),Tp(k4(g,d),F4),p=new Jl(k,c+1,k.c.length),jZ(g,p),k.c.length=0,l=0,dIn(f,f.length,0)}else j=g.b.c.length==0?null:sn(g.b,0),j!=null&&T$(g,0),l>0&&(f[l]=f[l-1]),f[l]+=Pu(s)*ao(s),++l,Bn(k.c,s);return k}function WOe(n,e){var t,i,r,c;t=e.b,c=new _u(t.j),r=0,i=t.j,i.c.length=0,bb(u(od(n.b,(en(),Xn),(Ob(),rw)),15),t),r=Fk(c,r,new dpn,i),bb(u(od(n.b,Xn,ka),15),t),r=Fk(c,r,new upn,i),bb(u(od(n.b,Xn,iw),15),t),bb(u(od(n.b,Zn,rw),15),t),bb(u(od(n.b,Zn,ka),15),t),r=Fk(c,r,new bpn,i),bb(u(od(n.b,Zn,iw),15),t),bb(u(od(n.b,ae,rw),15),t),r=Fk(c,r,new wpn,i),bb(u(od(n.b,ae,ka),15),t),r=Fk(c,r,new gpn,i),bb(u(od(n.b,ae,iw),15),t),bb(u(od(n.b,Wn,rw),15),t),r=Fk(c,r,new fpn,i),bb(u(od(n.b,Wn,ka),15),t),bb(u(od(n.b,Wn,iw),15),t)}function JOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;for(f=new M(e);f.a<f.c.c.length;)c=u(E(f),239),c.e=null,c.c=0;for(h=null,s=new M(e);s.a<s.c.c.length;)if(c=u(E(s),239),d=c.d[0],!(t&&d.k!=(Vn(),Xt))){for(p=u(v(d,(W(),C3)),15).Kc();p.Ob();)g=u(p.Pb(),10),(!t||g.k==(Vn(),Xt))&&((!c.e&&(c.e=new Z),c.e).Fc(n.b[g.c.p][g.p]),++n.b[g.c.p][g.p].c);if(!t&&d.k==(Vn(),Xt)){if(h)for(a=u(ot(n.d,h),21).Kc();a.Ob();)for(l=u(a.Pb(),10),r=u(ot(n.d,d),21).Kc();r.Ob();)i=u(r.Pb(),10),ewe(n.b[l.c.p][l.p]).Fc(n.b[i.c.p][i.p]),++n.b[i.c.p][i.p].c;h=d}}}function QOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(t.Ug("Model order cycle breaking",1),n.a=0,n.b=0,p=new Z,a=e.a.c.length,l=new M(e.a);l.a<l.c.c.length;)h=u(E(l),10),kt(h,(W(),dt))&&(a=y.Math.max(a,u(v(h,dt),17).a+1));for(k=new M(e.a);k.a<k.c.c.length;)for(m=u(E(k),10),s=E_n(n,m,a),g=$b(m,(gr(),Jc)).Kc();g.Ob();)for(d=u(g.Pb(),12),c=new M(d.g);c.a<c.c.c.length;)i=u(E(c),18),j=i.d.i,f=E_n(n,j,a),f<s&&Bn(p.c,i);for(r=new M(p);r.a<r.c.c.length;)i=u(E(r),18),Hb(i,!0),U(e,(W(),vj),(_n(),!0));p.c.length=0,t.Vg()}function wGn(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(s=e.d,f=t.d;s.a-f.a==0&&s.b-f.b==0;)h=!1,L(e,250)&&L(t,250)&&!h?(l=u(e,250).a,a=mi(new rr(pQ(l)),gQ(l)),i=2,r=new V(a.a/y.Math.sqrt(a.a*a.a+a.b*a.b)*i,-a.b/y.Math.sqrt(a.a*a.a+a.b*a.b)*i),it(s,r),d=u(t,250).a,g=mi(new rr(pQ(d)),gQ(d)),i=a==g?-2:2,c=new V(g.a/y.Math.sqrt(g.a*g.a+g.b*g.b)*i,-(g.b/y.Math.sqrt(g.a*g.a+g.b*g.b))*i),it(s,c),h=!0):(s.a+=to(n,26)*V5+to(n,27)*W5-.5,s.b+=to(n,26)*V5+to(n,27)*W5-.5,f.a+=to(n,26)*V5+to(n,27)*W5-.5,f.b+=to(n,26)*V5+to(n,27)*W5-.5)}function YOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(l=Ije(e),k=u(v(e,(cn(),H8)),322),qi(l,new K9n(k)),j=u(v(e,Ej),298),qi(l,new B9n(j)),m=0,a=new Z,c=new z6(l);c.a!=c.b;)r=u(xC(c),36),SGn(n.c,r),g=u(v(r,(W(),bH)),15),m+=g.gc(),i=g.Kc(),nn(a,new bi(r,i));for(t.Ug("Recursive hierarchical layout",m),p=u(u(sn(a,a.c.length-1),42).b,51);p.Ob();)for(h=new M(a);h.a<h.c.c.length;)for(f=u(E(h),42),g=u(f.b,51),s=u(f.a,36);g.Ob();)if(d=u(g.Pb(),47),L(d,514)){if(s.e)break;d.Kf(s,t.eh(1));break}else d.Kf(s,t.eh(1));t.Vg()}function ZOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(e.Ug("Layer size calculation",1),a=Pt,l=li,r=!1,f=new M(n.b);f.a<f.c.c.length;)if(s=u(E(f),30),h=s.c,h.a=0,h.b=0,s.a.c.length!=0){for(r=!0,g=new M(s.a);g.a<g.c.c.length;)d=u(E(g),10),m=d.o,p=d.d,h.a=y.Math.max(h.a,m.a+p.b+p.c);i=u(sn(s.a,0),10),k=i.n.b-i.d.d,i.k==(Vn(),Zt)&&(k-=u(v(n,(cn(),Cj)),140).d),c=u(sn(s.a,s.a.c.length-1),10),t=c.n.b+c.o.b+c.d.a,c.k==Zt&&(t+=u(v(n,(cn(),Cj)),140).a),h.b=t-k,a=y.Math.min(a,k),l=y.Math.max(l,t)}r||(a=0,l=0),n.f.b=l-a,n.c.b-=a,e.Vg()}function zen(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(c=0,s=0,l=new M(n.a);l.a<l.c.c.length;)f=u(E(l),10),c=y.Math.max(c,f.d.b),s=y.Math.max(s,f.d.c);for(h=new M(n.a);h.a<h.c.c.length;){switch(f=u(E(h),10),t=u(v(f,(cn(),Ch)),255),t.g){case 1:m=0;break;case 2:m=1;break;case 5:m=.5;break;default:for(i=0,d=0,p=new M(f.j);p.a<p.c.c.length;)g=u(E(p),12),g.e.c.length==0||++i,g.g.c.length==0||++d;i+d==0?m=.5:m=d/(i+d)}j=n.c,a=f.o.a,P=(j.a-a)*m,m>.5?P-=s*2*(m-.5):m<.5&&(P+=c*2*(.5-m)),r=f.d.b,P<r&&(P=r),k=f.d.c,P>j.a-k-a&&(P=j.a-k-a),f.n.a=e+P}}function nAe(n){var e,t,i,r,c;if(i=u(v(n,(cn(),ou)),171),i==(Yo(),ja)){for(t=new ie(ce(ji(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),!SNn(e))throw T(new _l(oB+Hk(n)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(i==x0){for(c=new ie(ce(Qt(n).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),!SNn(r))throw T(new _l(oB+Hk(n)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function wy(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(n.e&&n.c.c<n.f)throw T(new Ar("Expected "+n.f+" phases to be configured; only found "+n.c.c));for(a=u(of(n.g),9),p=Lh(n.f),c=a,f=0,l=c.length;f<l;++f)i=c[f],d=u(hk(n,i.g),188),d?nn(p,u(yKn(n,d),106)):p.c.push(null);for(m=new ii,Ut(ut(_r(ut(new Cn(null,new On(p,16)),new v4n),new Ikn(e)),new k4n),new Okn(m)),To(m,n.a),t=new Z,r=a,s=0,h=r.length;s<h;++s)i=r[s],hi(t,tRn(n,ST(u(hk(m,i.g),20)))),g=u(sn(p,i.g),106),g&&Bn(t.c,g);return hi(t,tRn(n,ST(u(hk(m,a[a.length-1].g+1),20)))),t}function eAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(g=new Z,r=new Z,k=null,f=e.Kc();f.Ob();)s=u(f.Pb(),17),c=new R7n(s.a),Bn(r.c,c),k&&(c.d=k,k.e=c),k=c;for(A=PIe(n),a=0;a<r.c.length;++a){for(p=null,j=_J((Nn(0,r.c.length),u(r.c[0],661))),t=null,i=Pt,d=1;d<n.b.c.length;++d)P=j?y.Math.abs(j.b-d):y.Math.abs(d-p.b)+1,m=p?y.Math.abs(d-p.b):P+1,m<P?(l=p,h=m):(l=j,h=P),O=(D=$(B(v(n,(cn(),yhn)))),A[d]+y.Math.pow(h,D)),O<i&&(i=O,t=l,t.c=d),j&&d==j.b&&(p=j,j=h0e(j));t&&(nn(g,Y(t.c)),t.a=!0,M5e(t))}return Ln(),QN(g.c,g.c.length,null),g}function Xen(n,e,t){var i,r,c,s,f,h;if(e.l==0&&e.m==0&&e.h==0)throw T(new FE("divide by zero"));if(n.l==0&&n.m==0&&n.h==0)return t&&(ga=Yc(0,0,0)),Yc(0,0,0);if(e.h==Ty&&e.m==0&&e.l==0)return W5e(n,t);if(h=!1,e.h>>19&&(e=e4(e),h=!h),s=KTe(e),c=!1,r=!1,i=!1,n.h==Ty&&n.m==0&&n.l==0)if(r=!0,c=!0,s==-1)n=ZTn((Km(),sun)),i=!0,h=!h;else return f=Unn(n,s),h&&H$(f),t&&(ga=Yc(0,0,0)),f;else n.h>>19&&(c=!0,n=e4(n),i=!0,h=!h);return s!=-1?d6e(n,s,h,c,t):OZ(n,e)<0?(t&&(c?ga=e4(n):ga=Yc(n.l,n.m,n.h)),Yc(0,0,0)):xPe(i?n:Yc(n.l,n.m,n.h),e,h,c,r,t)}function zR(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(s=n.e,h=e.e,s==0)return e;if(h==0)return n;if(c=n.d,f=e.d,c+f==2)return t=vi(n.a[0],mr),i=vi(e.a[0],mr),s==h?(a=nr(t,i),m=Se(a),p=Se(G1(a,32)),p==0?new gl(s,m):new Ya(s,2,S(C(ye,1),_e,28,15,[m,p]))):(dh(),CM(s<0?bs(i,t):bs(t,i),0)?ra(s<0?bs(i,t):bs(t,i)):H6(ra(n1(s<0?bs(i,t):bs(t,i)))));if(s==h)g=s,d=c>=f?e$(n.a,c,e.a,f):e$(e.a,f,n.a,c);else{if(r=c!=f?c>f?1:-1:sY(n.a,e.a,c),r==0)return dh(),C8;r==1?(g=s,d=ZD(n.a,c,e.a,f)):(g=h,d=ZD(e.a,f,n.a,c))}return l=new Ya(g,d.length,d),V6(l),l}function tAe(n,e){var t,i,r,c,s,f,h;if(!(n.g>e.f||e.g>n.f)){for(t=0,i=0,s=n.w.a.ec().Kc();s.Ob();)r=u(s.Pb(),12),nx(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&++t;for(f=n.r.a.ec().Kc();f.Ob();)r=u(f.Pb(),12),nx(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&--t;for(h=e.w.a.ec().Kc();h.Ob();)r=u(h.Pb(),12),nx(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&++i;for(c=e.r.a.ec().Kc();c.Ob();)r=u(c.Pb(),12),nx(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&--i;t<i?new XT(n,e,i-t):i<t?new XT(e,n,t-i):(new XT(e,n,0),new XT(n,e,0))}}function iAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(l=e.c,r=SX(n.e),d=ch(A6(Fi(CX(n.e)),n.d*n.a,n.c*n.b),-.5),t=r.a-d.a,i=r.b-d.b,s=e.a,t=s.c-t,i=s.d-i,h=new M(l);h.a<h.c.c.length;){switch(f=u(E(h),407),g=f.b,p=t+g.a,j=i+g.b,m=wi(p/n.a),P=wi(j/n.b),c=f.a,c.g){case 0:a=(Vp(),cj);break;case 1:a=(Vp(),rj);break;case 2:a=(Vp(),uj);break;default:a=(Vp(),oj)}c.a?(O=wi((j+f.c)/n.b),nn(n.f,new AV(a,Y(P),Y(O))),c==(M5(),fj)?n4(n,0,P,m,O):n4(n,m,P,n.d-1,O)):(k=wi((p+f.c)/n.a),nn(n.f,new AV(a,Y(m),Y(k))),c==(M5(),sj)?n4(n,m,0,k,P):n4(n,m,P,k,n.c-1))}}function rAe(n){var e,t,i,r,c,s,f,h,l,a;for(e=new qA,t=new qA,l=Sn(Wy,(r=B5(n.b,Ke),r?Ae(gf((!r.b&&(r.b=new lo((An(),ar),pc,r)),r.b),vs)):null)),h=0;h<n.i;++h)f=u(n.g[h],179),L(f,102)?(s=u(f,19),s.Bb&kc?(!(s.Bb&wh)||!l&&(c=B5(s,Ke),(c?Ae(gf((!c.b&&(c.b=new lo((An(),ar),pc,c)),c.b),FP)):null)==null))&&ve(e,s):(a=br(s),a&&a.Bb&kc||(!(s.Bb&wh)||!l&&(i=B5(s,Ke),(i?Ae(gf((!i.b&&(i.b=new lo((An(),ar),pc,i)),i.b),FP)):null)==null))&&ve(t,s))):(dr(),u(f,69).xk()&&(f.sk()||(ve(e,f),ve(t,f))));e0(e),e0(t),n.a=u(e.g,254),u(t.g,254)}function Qg(n,e,t){var i,r,c,s,f,h,l,a,d;if(At(e,t)>=0)return t;switch(vb(Nr(n,t))){case 2:{if(Sn("",r1(n,t.qk()).xe())){if(h=q7(Nr(n,t)),f=Pm(Nr(n,t)),a=Vnn(n,e,h,f),a)return a;for(r=Men(n,e),s=0,d=r.gc();s<d;++s)if(a=u(r.Xb(s),179),een(sD(Nr(n,a)),h))return a}return null}case 4:{if(Sn("",r1(n,t.qk()).xe())){for(i=t;i;i=gpe(Nr(n,i)))if(l=q7(Nr(n,i)),f=Pm(Nr(n,i)),a=Wnn(n,e,l,f),a)return a;if(h=q7(Nr(n,t)),Sn(Pd,h))return DZ(n,e);for(c=PR(n,e),s=0,d=c.gc();s<d;++s)if(a=u(c.Xb(s),179),een(sD(Nr(n,a)),h))return a}return null}default:return null}}function cAe(n,e,t){var i,r,c,s,f,h,l,a;if(t.gc()==0)return!1;if(f=(dr(),u(e,69).xk()),c=f?t:new Cb(t.gc()),Pl(n.e,e)){if(e.Si())for(l=t.Kc();l.Ob();)h=l.Pb(),BS(n,e,h,L(e,102)&&(u(e,19).Bb&hr)!=0)||(r=Rh(e,h),c.Hc(r)||c.Fc(r));else if(!f)for(l=t.Kc();l.Ob();)h=l.Pb(),r=Rh(e,h),c.Fc(r)}else{if(t.gc()>1)throw T(new Gn(Yy));for(a=ru(n.e.Dh(),e),i=u(n.g,124),s=0;s<n.i;++s)if(r=i[s],a.am(r.Lk())){if(t.Hc(f?r:r.md()))return!1;for(l=t.Kc();l.Ob();)h=l.Pb(),u(Bg(n,s,f?u(h,76):Rh(e,h)),76);return!0}f||(r=Rh(e,t.Kc().Pb()),c.Fc(r))}return Bt(n,c)}function uAe(n,e){var t,i,r,c,s,f,h,l,a;for(a=new Mt,f=(l=new ol(n.c).a.vc().Kc(),new Cw(l));f.a.Ob();)c=(r=u(f.a.Pb(),44),u(r.md(),466)),c.b==0&&xt(a,c,a.c.b,a.c);for(;a.b!=0;)for(c=u(a.b==0?null:(oe(a.b!=0),Xo(a,a.a.a)),466),c.a==null&&(c.a=0),i=new M(c.d);i.a<i.c.c.length;)t=u(E(i),663),t.b.a==null?t.b.a=$(c.a)+t.a:e.o==(If(),Bd)?t.b.a=y.Math.min($(t.b.a),$(c.a)+t.a):t.b.a=y.Math.max($(t.b.a),$(c.a)+t.a),--t.b.b,t.b.b==0&&Re(a,t.b);for(s=(h=new ol(n.c).a.vc().Kc(),new Cw(h));s.a.Ob();)c=(r=u(s.a.Pb(),44),u(r.md(),466)),e.i[c.c.p]=c.a}function oAe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;for(a=t+e.c.c.a,p=new M(e.j);p.a<p.c.c.length;){if(g=u(E(p),12),r=cc(S(C(Ei,1),J,8,0,[g.i.n,g.n,g.a])),e.k==(Vn(),_c)&&(f=u(v(g,(W(),st)),12),r.a=cc(S(C(Ei,1),J,8,0,[f.i.n,f.n,f.a])).a,e.n.a=r.a),s=new V(0,r.b),g.j==(en(),Zn))s.a=a;else if(g.j==Wn)s.a=t;else continue;if(m=y.Math.abs(r.a-s.a),!(m<=i&&!Y7e(e)))for(c=g.g.c.length+g.e.c.length>1,l=new Lf(g.b);tc(l.a)||tc(l.b);)h=u(tc(l.a)?E(l.a):E(l.b),18),d=h.c==g?h.d:h.c,y.Math.abs(cc(S(C(Ei,1),J,8,0,[d.i.n,d.n,d.a])).b-s.b)>1&&qCe(n,h,s,c,g)}}function sAe(n){var e,t,i,r,c,s;if(r=new xi(n.e,0),i=new xi(n.a,0),n.d)for(t=0;t<n.b;t++)oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++);else for(t=0;t<n.b-1;t++)oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++),bo(r);for(e=$((oe(r.b<r.d.gc()),B(r.d.Xb(r.c=r.b++))));n.f-e>_B;){for(c=e,s=0;y.Math.abs(e-c)<_B;)++s,e=$((oe(r.b<r.d.gc()),B(r.d.Xb(r.c=r.b++)))),oe(i.b<i.d.gc()),i.d.Xb(i.c=i.b++);s<n.b&&(oe(r.b>0),r.a.Xb(r.c=--r.b),EIe(n,n.b-s,c,i,r),oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++)),oe(i.b>0),i.a.Xb(i.c=--i.b)}if(!n.d)for(t=0;t<n.b-1;t++)oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++),bo(r);n.d=!0,n.c=!0}function at(){at=R,ubn=(Ez(),yc).b,cse=u(N(H(yc.b),0),35),zd=u(N(H(yc.b),1),35),rse=u(N(H(yc.b),2),35),G2=yc.bb,u(N(H(yc.bb),0),35),u(N(H(yc.bb),1),35),z2=yc.fb,D9=u(N(H(yc.fb),0),35),u(N(H(yc.fb),1),35),u(N(H(yc.fb),2),19),jw=yc.qb,pse=u(N(H(yc.qb),0),35),u(N(H(yc.qb),1),19),u(N(H(yc.qb),2),19),wE=u(N(H(yc.qb),3),35),gE=u(N(H(yc.qb),4),35),x9=u(N(H(yc.qb),6),35),$9=u(N(H(yc.qb),5),19),use=yc.j,ose=yc.k,sse=yc.q,fse=yc.w,hse=yc.B,lse=yc.A,ase=yc.C,dse=yc.D,bse=yc._,wse=yc.cb,gse=yc.hb}function fAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;n.c=0,n.b=0,i=2*e.c.a.c.length+1;n:for(d=t.Kc();d.Ob();){if(a=u(d.Pb(),12),f=a.j==(en(),Xn)||a.j==ae,p=0,f){if(g=u(v(a,(W(),Xu)),10),!g)continue;p+=LSe(n,i,a,g)}else{for(l=new M(a.g);l.a<l.c.c.length;)if(h=u(E(l),18),r=h.d,r.i.c==e.c){nn(n.a,a);continue n}else p+=n.g[r.p];for(s=new M(a.e);s.a<s.c.c.length;)if(c=u(E(s),18),r=c.c,r.i.c==e.c){nn(n.a,a);continue n}else p-=n.g[r.p]}a.e.c.length+a.g.c.length>0?(n.f[a.p]=p/(a.e.c.length+a.g.c.length),n.c=y.Math.min(n.c,n.f[a.p]),n.b=y.Math.max(n.b,n.f[a.p])):f&&(n.f[a.p]=p)}}function hAe(n){n.b=null,n.bb=null,n.fb=null,n.qb=null,n.a=null,n.c=null,n.d=null,n.e=null,n.f=null,n.n=null,n.M=null,n.L=null,n.Q=null,n.R=null,n.K=null,n.db=null,n.eb=null,n.g=null,n.i=null,n.j=null,n.k=null,n.gb=null,n.o=null,n.p=null,n.q=null,n.r=null,n.$=null,n.ib=null,n.S=null,n.T=null,n.t=null,n.s=null,n.u=null,n.v=null,n.w=null,n.B=null,n.A=null,n.C=null,n.D=null,n.F=null,n.G=null,n.H=null,n.I=null,n.J=null,n.P=null,n.Z=null,n.U=null,n.V=null,n.W=null,n.X=null,n.Y=null,n._=null,n.ab=null,n.cb=null,n.hb=null,n.nb=null,n.lb=null,n.mb=null,n.ob=null,n.pb=null,n.jb=null,n.kb=null,n.N=!1,n.O=!1}function lAe(n,e,t){var i,r,c,s;for(t.Ug("Graph transformation ("+n.a+")",1),s=Mb(e.a),c=new M(e.b);c.a<c.c.c.length;)r=u(E(c),30),hi(s,r.a);if(i=u(v(e,(cn(),Hfn)),428),i==(bk(),WI))switch(u(v(e,Lo),88).g){case 2:W6(e,s);break;case 3:k5(e,s);break;case 4:n.a==(Xm(),aj)?(k5(e,s),HD(e,s)):(HD(e,s),k5(e,s))}else if(n.a==(Xm(),aj))switch(u(v(e,Lo),88).g){case 2:W6(e,s),HD(e,s);break;case 3:k5(e,s),W6(e,s);break;case 4:W6(e,s),k5(e,s)}else switch(u(v(e,Lo),88).g){case 2:W6(e,s),HD(e,s);break;case 3:W6(e,s),k5(e,s);break;case 4:k5(e,s),W6(e,s)}t.Vg()}function aAe(n){var e,t,i,r,c,s,f,h;for(c=new M(n.a.b);c.a<c.c.c.length;)r=u(E(c),86),r.b.c=r.g.c,r.b.d=r.g.d;for(h=new V(Pt,Pt),e=new V(li,li),i=new M(n.a.b);i.a<i.c.c.length;)t=u(E(i),86),h.a=y.Math.min(h.a,t.g.c),h.b=y.Math.min(h.b,t.g.d),e.a=y.Math.max(e.a,t.g.c+t.g.b),e.b=y.Math.max(e.b,t.g.d+t.g.a);for(f=gT(n.c).a.nc();f.Ob();)s=u(f.Pb(),42),t=u(s.b,86),h.a=y.Math.min(h.a,t.g.c),h.b=y.Math.min(h.b,t.g.d),e.a=y.Math.max(e.a,t.g.c+t.g.b),e.b=y.Math.max(e.b,t.g.d+t.g.a);n.d=_M(new V(h.a,h.b)),n.e=mi(new V(e.a,e.b),h),n.a.a.c.length=0,n.a.b.c.length=0}function dAe(n){e5();var e,t,i,r,c,s,f;for(f=new _yn,t=new M(n);t.a<t.c.c.length;)e=u(E(t),148),(!f.b||e.c>=f.b.c)&&(f.b=e),(!f.c||e.c<=f.c.c)&&(f.d=f.c,f.c=e),(!f.e||e.d>=f.e.d)&&(f.e=e),(!f.f||e.d<=f.f.d)&&(f.f=e);return i=new eS((Zm(),tw)),J7(n,OZn,new Fu(S(C(lj,1),Rn,382,0,[i]))),s=new eS(O0),J7(n,IZn,new Fu(S(C(lj,1),Rn,382,0,[s]))),r=new eS(I0),J7(n,PZn,new Fu(S(C(lj,1),Rn,382,0,[r]))),c=new eS(d2),J7(n,SZn,new Fu(S(C(lj,1),Rn,382,0,[c]))),pR(i.c,tw),pR(r.c,I0),pR(c.c,d2),pR(s.c,O0),f.a.c.length=0,hi(f.a,i.c),hi(f.a,Qo(r.c)),hi(f.a,c.c),hi(f.a,Qo(s.c)),f}function bAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;for(e.Ug(PVn,1),p=$(B(z(n,(_h(),X0)))),s=$(B(z(n,(Bf(),h9)))),f=u(z(n,f9),107),LQ((!n.a&&(n.a=new q(Ye,n,10,11)),n.a)),a=fGn((!n.a&&(n.a=new q(Ye,n,10,11)),n.a),p,s),!n.a&&(n.a=new q(Ye,n,10,11)),l=new M(a);l.a<l.c.c.length;)for(h=u(E(l),186),r=new M(h.a);r.a<r.c.c.length;)i=u(E(r),172),g=new eJ(i.s,i.t,$(B(z(n,h9)))),BQ(g,i),nn(h.d,g);d=rFn(a,s),m=y.Math.max(d.a,$(B(z(n,s9)))-(f.b+f.c)),c=y.Math.max(d.b,$(B(z(n,UO)))-(f.d+f.a)),t=c-d.b,ht(n,u9,t),ht(n,Nv,m),ht(n,o9,c+t),ht(n,GO,a),e.Vg()}function wAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k;for(l=new rh,a=new rh,m=new rh,k=new rh,h=$(B(v(e,(cn(),bw)))),c=$(B(v(e,Ws))),f=new M(t);f.a<f.c.c.length;)if(s=u(E(f),10),d=u(v(s,(W(),gc)),64),d==(en(),Xn))for(a.a.zc(s,a),r=new ie(ce(ji(s).a.Kc(),new En));pe(r);)i=u(fe(r),18),fi(l,i.c.i);else if(d==ae)for(k.a.zc(s,k),r=new ie(ce(ji(s).a.Kc(),new En));pe(r);)i=u(fe(r),18),fi(m,i.c.i);l.a.gc()!=0&&(g=new lD(2,c),p=Qen(g,e,l,a,-h-e.c.b),p>0&&(n.a=h+(p-1)*c,e.c.b+=n.a,e.f.b+=n.a)),m.a.gc()!=0&&(g=new lD(1,c),p=Qen(g,e,m,k,e.f.b+h-e.c.b),p>0&&(e.f.b+=h+(p-1)*c))}function gGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(a=$(B(v(n,(cn(),dw)))),i=$(B(v(n,phn))),g=new _A,U(g,dw,a+i),l=e,P=l.d,k=l.c.i,O=l.d.i,j=yX(k.c),A=yX(O.c),r=new Z,d=j;d<=A;d++)f=new Cl(n),Ha(f,(Vn(),Ti)),U(f,(W(),st),l),U(f,_t,(Ai(),qc)),U(f,yO,g),p=u(sn(n.b,d),30),d==j?u0(f,p.a.c.length-t,p):$i(f,p),D=$(B(v(l,m1))),D<0&&(D=0,U(l,m1,D)),f.o.b=D,m=y.Math.floor(D/2),s=new Ic,gi(s,(en(),Wn)),ic(s,f),s.n.b=m,h=new Ic,gi(h,Zn),ic(h,f),h.n.b=m,Oi(l,s),c=new yb,Ur(c,l),U(c,Rr,null),Zi(c,h),Oi(c,P),ike(f,l,c),Bn(r.c,c),l=c;return r}function XR(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(h=u(h1(n,(en(),Wn)).Kc().Pb(),12).e,p=u(h1(n,Zn).Kc().Pb(),12).g,f=h.c.length,A=Of(u(sn(n.j,0),12));f-- >0;){for(k=(Nn(0,h.c.length),u(h.c[0],18)),r=(Nn(0,p.c.length),u(p.c[0],18)),O=r.d.e,c=qr(O,r,0),Kpe(k,r.d,c),Zi(r,null),Oi(r,null),m=k.a,e&&Re(m,new rr(A)),i=ge(r.a,0);i.b!=i.d.c;)t=u(be(i),8),Re(m,new rr(t));for(P=k.b,g=new M(r.b);g.a<g.c.c.length;)d=u(E(g),72),Bn(P.c,d);if(j=u(v(k,(cn(),Rr)),75),s=u(v(r,Rr),75),s)for(j||(j=new Tu,U(k,Rr,j)),a=ge(s,0);a.b!=a.d.c;)l=u(be(a),8),Re(j,new rr(l))}}function gAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;if(k=e.b.c.length,!(k<3)){for(p=F(ye,_e,28,k,15,1),d=0,a=new M(e.b);a.a<a.c.c.length;)l=u(E(a),30),p[d++]=l.a.c.length;for(g=new xi(e.b,2),i=1;i<k-1;i++)for(t=(oe(g.b<g.d.gc()),u(g.d.Xb(g.c=g.b++),30)),m=new M(t.a),c=0,f=0,h=0;h<p[i+1];h++)if(A=u(E(m),10),h==p[i+1]-1||dnn(n,A,i+1,i)){for(s=p[i]-1,dnn(n,A,i+1,i)&&(s=n.c.e[u(u(u(sn(n.c.b,A.p),15).Xb(0),42).a,10).p]);f<=h;){if(O=u(sn(t.a,f),10),!dnn(n,O,i+1,i))for(P=u(sn(n.c.b,O.p),15).Kc();P.Ob();)j=u(P.Pb(),42),r=n.c.e[u(j.a,10).p],(r<c||r>s)&&fi(n.b,u(j.b,18));++f}c=s}}}function Ven(n,e){var t;if(e==null||Sn(e,gu)||e.length==0&&n.k!=(l1(),L3))return null;switch(n.k.g){case 1:return JC(e,Z4)?(_n(),uv):JC(e,cF)?(_n(),pa):null;case 2:try{return Y(So(e,Wi,et))}catch(i){if(i=Ot(i),L(i,130))return null;throw T(i)}case 4:try{return s0(e)}catch(i){if(i=Ot(i),L(i,130))return null;throw T(i)}case 3:return e;case 5:return xRn(n),J_n(n,e);case 6:return xRn(n),wTe(n,n.a,e);case 7:try{return t=CMe(n),t.cg(e),t}catch(i){if(i=Ot(i),L(i,33))return null;throw T(i)}default:throw T(new Ar("Invalid type set for this layout option."))}}function Wen(n){var e;switch(n.d){case 1:{if(n.Sj())return n.o!=-2;break}case 2:{if(n.Sj())return n.o==-2;break}case 3:case 5:case 4:case 6:case 7:return n.o>-2;default:return!1}switch(e=n.Rj(),n.p){case 0:return e!=null&&on(un(e))!=j6(n.k,0);case 1:return e!=null&&u(e,222).a!=Se(n.k)<<24>>24;case 2:return e!=null&&u(e,180).a!=(Se(n.k)&ui);case 6:return e!=null&&j6(u(e,168).a,n.k);case 5:return e!=null&&u(e,17).a!=Se(n.k);case 7:return e!=null&&u(e,191).a!=Se(n.k)<<16>>16;case 3:return e!=null&&$(B(e))!=n.j;case 4:return e!=null&&u(e,161).a!=n.j;default:return e==null?n.n!=null:!ct(e,n.n)}}function gy(n,e,t){var i,r,c,s;return n.ol()&&n.nl()&&(s=cD(n,u(t,58)),x(s)!==x(t))?(n.xj(e),n.Dj(e,vDn(n,e,s)),n.al()&&(c=(r=u(t,54),n.ml()?n.kl()?r.Th(n.b,br(u($n(au(n.b),n.Lj()),19)).n,u($n(au(n.b),n.Lj()).Hk(),29).kk(),null):r.Th(n.b,At(r.Dh(),br(u($n(au(n.b),n.Lj()),19))),null,null):r.Th(n.b,-1-n.Lj(),null,null)),!u(s,54).Ph()&&(c=(i=u(s,54),n.ml()?n.kl()?i.Rh(n.b,br(u($n(au(n.b),n.Lj()),19)).n,u($n(au(n.b),n.Lj()).Hk(),29).kk(),c):i.Rh(n.b,At(i.Dh(),br(u($n(au(n.b),n.Lj()),19))),null,c):i.Rh(n.b,-1-n.Lj(),null,c))),c&&c.oj()),fo(n.b)&&n.Jj(n.Ij(9,t,s,e,!1)),s):t}function pGn(n){var e,t,i,r,c,s,f,h,l,a;for(i=new Z,s=new M(n.e.a);s.a<s.c.c.length;){for(r=u(E(s),125),a=0,r.k.c.length=0,t=new M(xg(r));t.a<t.c.c.length;)e=u(E(t),218),e.f&&(nn(r.k,e),++a);a==1&&Bn(i.c,r)}for(c=new M(i);c.a<c.c.c.length;)for(r=u(E(c),125);r.k.c.length==1;){for(l=u(E(new M(r.k)),218),n.b[l.c]=l.g,f=l.d,h=l.e,t=new M(xg(r));t.a<t.c.c.length;)e=u(E(t),218),ct(e,l)||(e.f?f==e.d||h==e.e?n.b[l.c]-=n.b[e.c]-e.g:n.b[l.c]+=n.b[e.c]-e.g:r==f?e.d==r?n.b[l.c]+=e.g:n.b[l.c]-=e.g:e.d==r?n.b[l.c]-=e.g:n.b[l.c]+=e.g);du(f.k,l),du(h.k,l),f==r?r=l.e:r=l.d}}function mGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(t=u(Mr(n.b,e),127),h=u(u(ot(n.r,e),21),87),h.dc()){t.n.b=0,t.n.c=0;return}for(l=n.u.Hc((zu(),Rl)),s=0,f=h.Kc(),a=null,d=0,g=0;f.Ob();)i=u(f.Pb(),117),r=$(B(i.b.of((BM(),bI)))),c=i.b.Mf().a,n.A.Hc((go(),Gd))&&Xqn(n,e),a?(p=g+a.d.c+n.w+i.d.b,s=y.Math.max(s,(Cf(),Fs(_f),y.Math.abs(d-r)<=_f||d==r||isNaN(d)&&isNaN(r)?0:p/(r-d)))):n.C&&n.C.b>0&&(s=y.Math.max(s,yxn(n.C.b+i.d.b,r))),a=i,d=r,g=c;n.C&&n.C.c>0&&(p=g+n.C.c,l&&(p+=a.d.c),s=y.Math.max(s,(Cf(),Fs(_f),y.Math.abs(d-1)<=_f||d==1||isNaN(d)&&isNaN(1)?0:p/(1-d)))),t.n.b=0,t.a.a=s}function vGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(t=u(Mr(n.b,e),127),h=u(u(ot(n.r,e),21),87),h.dc()){t.n.d=0,t.n.a=0;return}for(l=n.u.Hc((zu(),Rl)),s=0,n.A.Hc((go(),Gd))&&Vqn(n,e),f=h.Kc(),a=null,g=0,d=0;f.Ob();)i=u(f.Pb(),117),c=$(B(i.b.of((BM(),bI)))),r=i.b.Mf().b,a?(p=d+a.d.a+n.w+i.d.d,s=y.Math.max(s,(Cf(),Fs(_f),y.Math.abs(g-c)<=_f||g==c||isNaN(g)&&isNaN(c)?0:p/(c-g)))):n.C&&n.C.d>0&&(s=y.Math.max(s,yxn(n.C.d+i.d.d,c))),a=i,g=c,d=r;n.C&&n.C.a>0&&(p=d+n.C.a,l&&(p+=a.d.a),s=y.Math.max(s,(Cf(),Fs(_f),y.Math.abs(g-1)<=_f||g==1||isNaN(g)&&isNaN(1)?0:p/(1-g)))),t.n.d=0,t.a.b=s}function pAe(n,e,t,i,r,c,s,f){var h,l,a,d,g,p,m,k,j,P;if(m=!1,l=ten(t.q,e.f+e.b-t.q.f),p=i.f>e.b&&f,P=r-(t.q.e+l-s),d=(h=q5(i,P,!1),h.a),p&&d>i.f)return!1;if(p){for(g=0,j=new M(e.d);j.a<j.c.c.length;)k=u(E(j),315),g+=ten(k,i.f)+s;P=r-g}return P<i.g||(a=c==n.c.length-1&&P>=(Nn(c,n.c.length),u(n.c[c],186)).e,!p&&d>e.b&&!a)?!1:((a||p||d<=e.b)&&(a&&d>e.b?(t.d=d,ck(t,r_n(t,d))):(jFn(t.q,l),t.c=!0),ck(i,r-(t.s+t.r)),_k(i,t.q.e+t.q.d,e.f),wC(e,i),n.c.length>c&&(Uk((Nn(c,n.c.length),u(n.c[c],186)),i),(Nn(c,n.c.length),u(n.c[c],186)).a.c.length==0&&Yl(n,c)),m=!0),m)}function kGn(n,e,t){var i,r,c,s,f,h;for(this.g=n,f=e.d.length,h=t.d.length,this.d=F(Qh,b1,10,f+h,0,1),s=0;s<f;s++)this.d[s]=e.d[s];for(c=0;c<h;c++)this.d[f+c]=t.d[c];if(e.e){if(this.e=$7(e.e),this.e.Mc(t),t.e)for(r=t.e.Kc();r.Ob();)i=u(r.Pb(),239),i!=e&&(this.e.Hc(i)?--i.c:this.e.Fc(i))}else t.e&&(this.e=$7(t.e),this.e.Mc(e));this.f=e.f+t.f,this.a=e.a+t.a,this.a>0?m$(this,this.f/this.a):Sf(e.g,e.d[0]).a!=null&&Sf(t.g,t.d[0]).a!=null?m$(this,($(Sf(e.g,e.d[0]).a)+$(Sf(t.g,t.d[0]).a))/2):Sf(e.g,e.d[0]).a!=null?m$(this,Sf(e.g,e.d[0]).a):Sf(t.g,t.d[0]).a!=null&&m$(this,Sf(t.g,t.d[0]).a)}function mAe(n,e){var t,i,r,c,s,f,h,l,a,d;for(n.a=new YIn(n6e(k9)),i=new M(e.a);i.a<i.c.c.length;){for(t=u(E(i),855),f=new vx(S(C(M_,1),Rn,86,0,[])),nn(n.a.a,f),l=new M(t.d);l.a<l.c.c.length;)h=u(E(l),116),a=new WX(n,h),Yen(a,u(v(t.c,(W(),Dl)),21)),Zc(n.g,t)||(Ve(n.g,t,new V(h.c,h.d)),Ve(n.f,t,a)),nn(n.a.b,a),_D(f,a);for(s=new M(t.b);s.a<s.c.c.length;)c=u(E(s),602),a=new WX(n,c.Df()),Ve(n.b,c,new bi(f,a)),Yen(a,u(v(t.c,(W(),Dl)),21)),c.Bf()&&(d=new cZ(n,c.Bf(),1),Yen(d,u(v(t.c,Dl),21)),r=new vx(S(C(M_,1),Rn,86,0,[])),_D(r,d),In(n.c,c.Af(),new bi(f,d)))}return n.a}function yGn(n){var e;this.a=n,e=(Vn(),S(C(A_,1),G,273,0,[Xt,Ti,Zt,_c,Sc,Gf])).length,this.b=Wa(Gq,[J,krn],[601,149],0,[e,e],2),this.c=Wa(Gq,[J,krn],[601,149],0,[e,e],2),PD(this,Xt,(cn(),bw),S2),s5(this,Xt,Ti,dw,Kd),U7(this,Xt,_c,dw),U7(this,Xt,Zt,dw),s5(this,Xt,Sc,bw,S2),PD(this,Ti,Ws,T2),U7(this,Ti,_c,Ws),U7(this,Ti,Zt,Ws),s5(this,Ti,Sc,dw,Kd),lCn(this,_c,Ws),U7(this,_c,Zt,Ws),U7(this,_c,Sc,IH),lCn(this,Zt,G8),s5(this,Zt,Sc,Sv,Cv),PD(this,Sc,Ws,Ws),PD(this,Gf,Ws,T2),s5(this,Gf,Xt,dw,Kd),s5(this,Gf,Sc,dw,Kd),s5(this,Gf,Ti,dw,Kd)}function vAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(s=t.Lk(),L(s,102)&&u(s,19).Bb&hr&&(g=u(t.md(),54),k=ta(n.e,g),k!=g)){if(a=Rh(s,k),P6(n,e,Jx(n,e,a)),d=null,fo(n.e)&&(i=Qg((Lu(),zi),n.e.Dh(),s),i!=$n(n.e.Dh(),n.c))){for(j=ru(n.e.Dh(),s),f=0,c=u(n.g,124),h=0;h<e;++h)r=c[h],j.am(r.Lk())&&++f;d=new GD(n.e,9,i,g,k,f,!1),d.nj(new ml(n.e,9,n.c,t,a,e,!1))}return m=u(s,19),p=br(m),p?(d=g.Th(n.e,At(g.Dh(),p),null,d),d=u(k,54).Rh(n.e,At(k.Dh(),p),null,d)):m.Bb&kc&&(l=-1-At(n.e.Dh(),m),d=g.Th(n.e,l,null,null),!u(k,54).Ph()&&(d=u(k,54).Rh(n.e,l,null,d))),d&&d.oj(),a}return t}function kAe(n){var e,t,i;for(Dg(Na,S(C(a2,1),Rn,134,0,[new iG])),t=new hG(n),i=0;i<t.a.length;++i)e=Jw(t,i).te().a,Sn(e,"layered")?Dg(Na,S(C(a2,1),Rn,134,0,[new n8n])):Sn(e,"force")?Dg(Na,S(C(a2,1),Rn,134,0,[new N5n])):Sn(e,"stress")?Dg(Na,S(C(a2,1),Rn,134,0,[new $5n])):Sn(e,"mrtree")?Dg(Na,S(C(a2,1),Rn,134,0,[new s8n])):Sn(e,"radial")?Dg(Na,S(C(a2,1),Rn,134,0,[new b8n])):Sn(e,"disco")?Dg(Na,S(C(a2,1),Rn,134,0,[new O5n,new A5n])):Sn(e,"sporeOverlap")||Sn(e,"sporeCompaction")?Dg(Na,S(C(a2,1),Rn,134,0,[new v8n])):Sn(e,"rectpacking")&&Dg(Na,S(C(a2,1),Rn,134,0,[new g8n]))}function jGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(g=new rr(n.o),P=e.a/g.a,f=e.b/g.b,k=e.a-g.a,c=e.b-g.b,t)for(r=x(v(n,(cn(),_t)))===x((Ai(),qc)),m=new M(n.j);m.a<m.c.c.length;)switch(p=u(E(m),12),p.j.g){case 1:r||(p.n.a*=P);break;case 2:p.n.a+=k,r||(p.n.b*=f);break;case 3:r||(p.n.a*=P),p.n.b+=c;break;case 4:r||(p.n.b*=f)}for(l=new M(n.b);l.a<l.c.c.length;)h=u(E(l),72),a=h.n.a+h.o.a/2,d=h.n.b+h.o.b/2,j=a/g.a,s=d/g.b,j+s>=1&&(j-s>0&&d>=0?(h.n.a+=k,h.n.b+=c*s):j-s<0&&a>=0&&(h.n.a+=k*j,h.n.b+=c));n.o.a=e.a,n.o.b=e.b,U(n,(cn(),xd),(go(),i=u(of(S9),9),new _o(i,u(xs(i,i.length),9),0)))}function yAe(n,e,t,i,r,c){var s;if(!(e==null||!lx(e,Bdn,Fdn)))throw T(new Gn("invalid scheme: "+e));if(!n&&!(t!=null&&ih(t,wu(35))==-1&&t.length>0&&(zn(0,t.length),t.charCodeAt(0)!=47)))throw T(new Gn("invalid opaquePart: "+t));if(n&&!(e!=null&&t7(jA,e.toLowerCase()))&&!(t==null||!lx(t,A9,L9)))throw T(new Gn(tJn+t));if(n&&e!=null&&t7(jA,e.toLowerCase())&&!nye(t))throw T(new Gn(tJn+t));if(!u8e(i))throw T(new Gn("invalid device: "+i));if(!U6e(r))throw s=r==null?"invalid segments: null":"invalid segment: "+F6e(r),T(new Gn(s));if(!(c==null||ih(c,wu(35))==-1))throw T(new Gn("invalid query: "+c))}function jAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(t.Ug("Network simplex layering",1),n.b=e,P=u(v(e,(cn(),z8)),17).a*4,j=n.b.a,j.c.length<1){t.Vg();return}for(c=kPe(n,j),k=null,r=ge(c,0);r.b!=r.d.c;){for(i=u(be(r),15),f=P*wi(y.Math.sqrt(i.gc())),s=$Pe(i),IR(gz(jhe(pz(KN(s),f),k),!0),t.eh(1)),g=n.b.b,m=new M(s.a);m.a<m.c.c.length;){for(p=u(E(m),125);g.c.length<=p.e;)ab(g,g.c.length,new Nc(n.b));a=u(p.f,10),$i(a,u(sn(g,p.e),30))}if(c.b>1)for(k=F(ye,_e,28,n.b.b.c.length,15,1),d=0,l=new M(n.b.b);l.a<l.c.c.length;)h=u(E(l),30),k[d++]=h.a.c.length}j.c.length=0,n.a=null,n.b=null,n.c=null,t.Vg()}function EAe(n,e){var t,i,r,c,s,f,h,l,a,d;for(a=new Z,d=new Mg,c=null,r=0,i=0;i<e.length;++i)switch(t=e[i],I6e(c,t)&&(r=xY(n,d,a,OO,r)),kt(t,(W(),uw))&&(c=u(v(t,uw),10)),t.k.g){case 0:for(h=MX(Mp(uc(t,(en(),Xn)),new JU));E$(h);)s=u(eQ(h),12),n.d[s.p]=r++,Bn(a.c,s);for(r=xY(n,d,a,OO,r),l=MX(Mp(uc(t,ae),new JU));E$(l);)s=u(eQ(l),12),n.d[s.p]=r++,Bn(a.c,s);break;case 3:uc(t,nln).dc()||(s=u(uc(t,nln).Xb(0),12),n.d[s.p]=r++,Bn(a.c,s)),uc(t,OO).dc()||J1(d,t);break;case 1:for(f=uc(t,(en(),Wn)).Kc();f.Ob();)s=u(f.Pb(),12),n.d[s.p]=r++,Bn(a.c,s);uc(t,Zn).Jc(new _Mn(d,t))}return xY(n,d,a,OO,r),a}function Jen(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(e==null||e.length==0)return null;if(c=u(Dc(n.f,e),23),!c){for(r=(p=new ol(n.d).a.vc().Kc(),new Cw(p));r.a.Ob();)if(t=(s=u(r.a.Pb(),44),u(s.md(),23)),f=t.f,m=e.length,Sn(f.substr(f.length-m,m),e)&&(e.length==f.length||Xi(f,f.length-e.length-1)==46)){if(c)return null;c=t}if(!c){for(i=(g=new ol(n.d).a.vc().Kc(),new Cw(g));i.a.Ob();)if(t=(s=u(i.a.Pb(),44),u(s.md(),23)),d=t.g,d!=null){for(h=d,l=0,a=h.length;l<a;++l)if(f=h[l],m=e.length,Sn(f.substr(f.length-m,m),e)&&(e.length==f.length||Xi(f,f.length-e.length-1)==46)){if(c)return null;c=t}}}c&&Lr(n.f,e,c)}return c}function MAe(n,e){var t,i,r,c,s;for(t=new fg,s=!1,c=0;c<e.length;c++){if(i=(zn(c,e.length),e.charCodeAt(c)),i==32){for(QC(n,t,0),t.a+=" ",QC(n,t,0);c+1<e.length&&(zn(c+1,e.length),e.charCodeAt(c+1)==32);)++c;continue}if(s){i==39?c+1<e.length&&(zn(c+1,e.length),e.charCodeAt(c+1)==39)?(t.a+=String.fromCharCode(i),++c):s=!1:t.a+=String.fromCharCode(i);continue}if(ih("GyMLdkHmsSEcDahKzZv",wu(i))>0){QC(n,t,0),t.a+=String.fromCharCode(i),r=U8e(e,c),QC(n,t,r),c+=r-1;continue}i==39?c+1<e.length&&(zn(c+1,e.length),e.charCodeAt(c+1)==39)?(t.a+="'",++c):s=!0:t.a+=String.fromCharCode(i)}QC(n,t,0),jye(n)}function TAe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(A=CPn(n),h=new Z,c=n.c.length,l=c-1,a=c+1;A.a.gc()!=0;){for(;t.b!=0;)P=(oe(t.b!=0),u(Xo(t,t.a.a),118)),A.a.Bc(P)!=null,P.g=l--,Ren(P,e,t,i);for(;e.b!=0;)O=(oe(e.b!=0),u(Xo(e,e.a.a),118)),A.a.Bc(O)!=null,O.g=a++,Ren(O,e,t,i);for(f=Wi,k=A.a.ec().Kc();k.Ob();){if(m=u(k.Pb(),118),!i&&m.b>0&&m.a<=0){h.c.length=0,Bn(h.c,m);break}p=m.i-m.d,p>=f&&(p>f&&(h.c.length=0,f=p),Bn(h.c,m))}h.c.length!=0&&(s=u(sn(h,cS(r,h.c.length)),118),A.a.Bc(s)!=null,s.g=a++,Ren(s,e,t,i),h.c.length=0)}for(j=n.c.length+1,g=new M(n);g.a<g.c.c.length;)d=u(E(g),118),d.g<c&&(d.g=d.g+j)}function EGn(n,e,t){var i,r,c,s;this.j=n,this.e=zZ(n),this.o=this.j.e,this.i=!!this.o,this.p=this.i?u(sn(t,Hi(this.o).p),219):null,r=u(v(n,(W(),Hc)),21),this.g=r.Hc((pr(),cs)),this.b=new Z,this.d=new DKn(this.e),s=u(v(this.j,P3),234),this.q=Sve(e,s,this.e),this.k=new MAn(this),c=Af(S(C(nne,1),Rn,230,0,[this,this.d,this.k,this.q])),e==(Ib(),Oj)&&!on(un(v(n,(cn(),fw))))?(i=new WZ(this.e),Bn(c.c,i),this.c=new gJ(i,s,u(this.q,413))):e==Oj&&on(un(v(n,(cn(),fw))))?(i=new WZ(this.e),Bn(c.c,i),this.c=new wxn(i,s,u(this.q,413))):this.c=new FMn(e,this),nn(c,this.c),uGn(c,this.e),this.s=aNe(this.k)}function CAe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j;for(c=new Z,l=new M(i);l.a<l.c.c.length;)if(f=u(E(l),452),s=null,f.f==(gr(),Jc))for(m=new M(f.e);m.a<m.c.c.length;)p=u(E(m),18),j=p.d.i,Hi(j)==e?M$n(n,e,f,p,f.b,p.d):!t||Jm(j,t)?tje(n,e,f,i,p):(g=qR(n,e,t,p,f.b,Jc,s),g!=s&&Bn(c.c,g),g.c&&(s=g));else for(d=new M(f.e);d.a<d.c.c.length;)if(a=u(E(d),18),k=a.c.i,Hi(k)==e)M$n(n,e,f,a,a.c,f.b);else{if(!t||Jm(k,t))continue;g=qR(n,e,t,a,f.b,Vu,s),g!=s&&Bn(c.c,g),g.c&&(s=g)}for(h=new M(c);h.a<h.c.c.length;)f=u(E(h),452),qr(e.a,f.a,0)!=-1||nn(e.a,f.a),f.c&&Bn(r.c,f)}function MGn(n){var e,t,i,r,c,s,f;for(e=0,c=new M(n.b.a);c.a<c.c.c.length;)i=u(E(c),194),i.b=0,i.c=0;for(t_n(n,0),ax(n,n.g),IS(n.c),az(n.c),t=(ci(),Kr),ly(nN(Yg(ly(nN(Yg(ly(Yg(n.c,t)),wKn(t)))),t))),Yg(n.c,Kr),ux(n,n.g),HFn(n,0),tGn(n,0),RHn(n,1),t_n(n,1),ax(n,n.d),IS(n.c),s=new M(n.b.a);s.a<s.c.c.length;)i=u(E(s),194),e+=y.Math.abs(i.c);for(f=new M(n.b.a);f.a<f.c.c.length;)i=u(E(f),194),i.b=0,i.c=0;for(t=us,ly(nN(Yg(ly(nN(Yg(ly(az(Yg(n.c,t))),wKn(t)))),t))),Yg(n.c,Kr),ux(n,n.d),HFn(n,1),tGn(n,1),RHn(n,0),az(n.c),r=new M(n.b.a);r.a<r.c.c.length;)i=u(E(r),194),e+=y.Math.abs(i.c);return e}function SAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(on(un(v(t,(cn(),B0)))))for(f=new M(t.j);f.a<f.c.c.length;)for(s=u(E(f),12),g=hh(s.g),l=g,a=0,d=l.length;a<d;++a)h=l[a],c=h.d.i==t,r=c&&on(un(v(h,Dd))),r&&(m=h.c,p=u(ee(n.b,m),10),p||(p=py(m,(Ai(),Qf),m.j,-1,null,null,m.o,u(v(e,Lo),88),e),U(p,(W(),st),m),Ve(n.b,m,p),nn(e.a,p)),j=h.d,k=u(ee(n.b,j),10),k||(k=py(j,(Ai(),Qf),j.j,1,null,null,j.o,u(v(e,Lo),88),e),U(k,(W(),st),j),Ve(n.b,j,k),nn(e.a,k)),i=JD(h),Zi(i,u(sn(p.j,0),12)),Oi(i,u(sn(k.j,0),12)),In(n.a,h,new GM(i,e,(gr(),Jc))),u(v(e,(W(),Hc)),21).Fc((pr(),cs)))}function PAe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(r=new M(n.a.b);r.a<r.c.c.length;)for(t=u(E(r),30),h=new M(t.a);h.a<h.c.c.length;)f=u(E(h),10),e.j[f.p]=f,e.i[f.p]=e.o==(If(),Xf)?li:Pt;for(Hu(n.c),s=n.a.b,e.c==(fh(),y1)&&(s=Qo(s)),Ope(n.e,e,n.b),u7(e.p,null),c=s.Kc();c.Ob();)for(t=u(c.Pb(),30),l=t.a,e.o==(If(),Xf)&&(l=Qo(l)),g=l.Kc();g.Ob();)d=u(g.Pb(),10),e.g[d.p]==d&&ozn(n,d,e);for(uAe(n,e),i=s.Kc();i.Ob();)for(t=u(i.Pb(),30),g=new M(t.a);g.a<g.c.c.length;)d=u(E(g),10),e.p[d.p]=e.p[e.g[d.p].p],d==e.g[d.p]&&(a=$(e.i[e.j[d.p].p]),(e.o==(If(),Xf)&&a>li||e.o==Bd&&a<Pt)&&(e.p[d.p]=$(e.p[d.p])+a));n.e.xg()}function IAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;for(t.Ug("Label dummy switching",1),i=u(v(e,(cn(),dO)),232),vve(e),r=sTe(e,i),n.a=F(Ii,Cr,28,e.b.c.length,15,1),f=(Yp(),S(C(bv,1),G,232,0,[dv,L8,av,D0,p2,g2])),a=0,p=f.length;a<p;++a)if(c=f[a],(c==p2||c==g2||c==D0)&&!u(Su(r.a,c)?r.b[c.g]:null,15).dc()){Mve(n,e);break}for(h=S(C(bv,1),G,232,0,[dv,L8,av,D0,p2,g2]),d=0,m=h.length;d<m;++d)c=h[d],c==p2||c==g2||c==D0||hUn(n,u(Su(r.a,c)?r.b[c.g]:null,15));for(s=S(C(bv,1),G,232,0,[dv,L8,av,D0,p2,g2]),l=0,g=s.length;l<g;++l)c=s[l],(c==p2||c==g2||c==D0)&&hUn(n,u(Su(r.a,c)?r.b[c.g]:null,15));n.a=null,t.Vg()}function TGn(n,e){var t,i,r,c,s,f,h,l,a;if(l=e,!(l.b==null||n.b==null)){for(Gg(n),U5(n),Gg(l),U5(l),t=F(ye,_e,28,n.b.length+l.b.length,15,1),a=0,i=0,s=0;i<n.b.length&&s<l.b.length;)if(r=n.b[i],c=n.b[i+1],f=l.b[s],h=l.b[s+1],c<f)i+=2;else if(c>=f&&r<=h)f<=r&&c<=h?(t[a++]=r,t[a++]=c,i+=2):f<=r?(t[a++]=r,t[a++]=h,n.b[i]=h+1,s+=2):c<=h?(t[a++]=f,t[a++]=c,i+=2):(t[a++]=f,t[a++]=h,n.b[i]=h+1);else if(h<r)s+=2;else throw T(new ec("Token#intersectRanges(): Internal Error: ["+n.b[i]+","+n.b[i+1]+"] & ["+l.b[s]+","+l.b[s+1]+"]"));for(;i<n.b.length;)t[a++]=n.b[i++],t[a++]=n.b[i++];n.b=F(ye,_e,28,a,15,1),Oc(t,0,n.b,0,a)}}function OAe(n){var e,t,i,r,c,s,f;for(e=new Z,n.g=new Z,n.d=new Z,s=new sd(new Ua(n.f.b).a);s.b;)c=Ab(s),nn(e,u(u(c.md(),42).b,86)),hl(u(c.ld(),602).Af())?nn(n.d,u(c.md(),42)):nn(n.g,u(c.md(),42));for(ax(n,n.d),ax(n,n.g),n.c=new Z_n(n.b),Mhe(n.c,(Az(),jZn)),ux(n,n.d),ux(n,n.g),hi(e,n.c.a.b),n.e=new V(Pt,Pt),n.a=new V(li,li),i=new M(e);i.a<i.c.c.length;)t=u(E(i),86),n.e.a=y.Math.min(n.e.a,t.g.c),n.e.b=y.Math.min(n.e.b,t.g.d),n.a.a=y.Math.max(n.a.a,t.g.c+t.g.b),n.a.b=y.Math.max(n.a.b,t.g.d+t.g.a);vz(n.c,new Jwn),f=0;do r=MGn(n),++f;while((f<2||r>ha)&&f<10);vz(n.c,new Qwn),MGn(n),p0e(n.c),aAe(n.f)}function AAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(t=u(v(n,(cn(),_t)),101),s=n.f,c=n.d,f=s.a+c.b+c.c,h=0-c.d-n.c.b,a=s.b+c.d+c.a-n.c.b,l=new Z,d=new Z,r=new M(e);r.a<r.c.c.length;){switch(i=u(E(r),10),t.g){case 1:case 2:case 3:vCe(i);break;case 4:g=u(v(i,aw),8),p=g?g.a:0,i.n.a=f*$(B(v(i,(W(),ow))))-p,OC(i,!0,!1);break;case 5:m=u(v(i,aw),8),k=m?m.a:0,i.n.a=$(B(v(i,(W(),ow))))-k,OC(i,!0,!1),s.a=y.Math.max(s.a,i.n.a+i.o.a/2)}switch(u(v(i,(W(),gc)),64).g){case 1:i.n.b=h,Bn(l.c,i);break;case 3:i.n.b=a,Bn(d.c,i)}}switch(t.g){case 1:case 2:rKn(l,n),rKn(d,n);break;case 3:cKn(l,n),cKn(d,n)}}function LAe(n,e){var t,i,r,c,s,f,h,l,a,d,g;switch(n.k.g){case 1:if(i=u(v(n,(W(),st)),18),t=u(v(i,tfn),75),t?on(un(v(i,zf)))&&(t=Sk(t)):t=new Tu,l=u(v(n,yf),12),l){if(a=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])),e<=a.a)return a.b;xt(t,a,t.a,t.a.a)}if(d=u(v(n,Es),12),d){if(g=cc(S(C(Ei,1),J,8,0,[d.i.n,d.n,d.a])),g.a<=e)return g.b;xt(t,g,t.c.b,t.c)}if(t.b>=2){for(h=ge(t,0),s=u(be(h),8),f=u(be(h),8);f.a<e&&h.b!=h.d.c;)s=f,f=u(be(h),8);return s.b+(e-s.a)/(f.a-s.a)*(f.b-s.b)}break;case 3:switch(c=u(v(u(sn(n.j,0),12),(W(),st)),12),r=c.i,c.j.g){case 1:return r.n.b;case 3:return r.n.b+r.o.b}}return RZ(n).b}function NAe(n){var e,t,i,r,c,s,f,h,l,a,d;for(s=new M(n.d.b);s.a<s.c.c.length;)for(c=u(E(s),30),h=new M(c.a);h.a<h.c.c.length;){if(f=u(E(h),10),on(un(v(f,(cn(),_8))))&&!Nm(Ml(f))){i=u(Cge(Ml(f)),18),a=i.c.i,a==f&&(a=i.d.i),d=new bi(a,mi(Fi(f.n),a.n)),Ve(n.b,f,d);continue}r=new Ho(f.n.a-f.d.b,f.n.b-f.d.d,f.o.a+f.d.b+f.d.c,f.o.b+f.d.d+f.d.a),e=nSn(oMn(cMn(uMn(new XG,f),r),YZn),n.a),ZCn(Jhe(G$n(new zG,S(C(aI,1),Rn,60,0,[e])),e),n.a),l=new rL,Ve(n.e,e,l),t=wl(new ie(ce(ji(f).a.Kc(),new En)))-wl(new ie(ce(Qt(f).a.Kc(),new En))),t<0?Tk(l,!0,(ci(),Kr)):t>0&&Tk(l,!0,(ci(),Xr)),f.k==(Vn(),Zt)&&oOn(l),Ve(n.f,f,e)}}function DAe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(r=u(v(n,(pt(),r9)),27),l=et,a=et,f=Wi,h=Wi,A=ge(n.b,0);A.b!=A.d.c;)P=u(be(A),39),p=P.e,m=P.f,l=y.Math.min(l,p.a-m.a/2),a=y.Math.min(a,p.b-m.b/2),f=y.Math.max(f,p.a+m.a/2),h=y.Math.max(h,p.b+m.b/2);for(g=u(z(r,(lc(),Pln)),107),O=ge(n.b,0);O.b!=O.d.c;)P=u(be(O),39),d=v(P,r9),L(d,207)&&(c=u(d,27),Bo(c,P.e.a,P.e.b),cy(c,P));for(j=ge(n.a,0);j.b!=j.d.c;)k=u(be(j),65),i=u(v(k,r9),74),i&&(e=k.a,t=Xg(i,!0,!0),ay(e,t));D=f-l+(g.b+g.c),s=h-a+(g.d+g.a),on(un(z(r,(He(),V0))))||qb(r,D,s,!1,!1),ht(r,K2,D-(g.b+g.c)),ht(r,R2,s-(g.d+g.a))}function CGn(n,e){var t,i,r,c,s,f,h,l,a,d;for(h=!0,r=0,l=n.g[e.p],a=e.o.b+n.o,t=n.d[e.p][2],Go(n.b,l,Y(u(sn(n.b,l),17).a-1+t)),Go(n.c,l,$(B(sn(n.c,l)))-a+t*n.f),++l,l>=n.j?(++n.j,nn(n.b,Y(1)),nn(n.c,a)):(i=n.d[e.p][1],Go(n.b,l,Y(u(sn(n.b,l),17).a+1-i)),Go(n.c,l,$(B(sn(n.c,l)))+a-i*n.f)),(n.r==(ps(),Sj)&&(u(sn(n.b,l),17).a>n.k||u(sn(n.b,l-1),17).a>n.k)||n.r==Pj&&($(B(sn(n.c,l)))>n.n||$(B(sn(n.c,l-1)))>n.n))&&(h=!1),s=new ie(ce(ji(e).a.Kc(),new En));pe(s);)c=u(fe(s),18),f=c.c.i,n.g[f.p]==l&&(d=CGn(n,f),r=r+u(d.a,17).a,h=h&&on(un(d.b)));return n.g[e.p]=l,r=r+n.d[e.p][0],new bi(Y(r),(_n(),!!h))}function SGn(n,e){var t,i,r,c,s;t=$(B(v(e,(cn(),Ws)))),t<2&&U(e,Ws,2),i=u(v(e,Lo),88),i==(ci(),Jf)&&U(e,Lo,FC(e)),r=u(v(e,Ute),17),r.a==0?U(e,(W(),P3),new dx):U(e,(W(),P3),new qT(r.a)),c=un(v(e,q8)),c==null&&U(e,q8,(_n(),x(v(e,$l))===x((El(),Kv)))),Ut(new Cn(null,new On(e.a,16)),new IG(n)),Ut(rc(new Cn(null,new On(e.b,16)),new FU),new OG(n)),s=new yGn(e),U(e,(W(),E2),s),H7(n.a),hf(n.a,(Vi(),Vs),u(v(e,Nd),188)),hf(n.a,Jh,u(v(e,$d),188)),hf(n.a,Ac,u(v(e,H8),188)),hf(n.a,Fc,u(v(e,vO),188)),hf(n.a,zr,Dve(u(v(e,$l),223))),EX(n.a,INe(e)),U(e,bH,wy(n.a,e))}function Qen(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P;for(d=new de,s=new Z,T_n(n,t,n.d.Ag(),s,d),T_n(n,i,n.d.Bg(),s,d),n.b=.2*(k=AHn(rc(new Cn(null,new On(s,16)),new x3n)),j=AHn(rc(new Cn(null,new On(s,16)),new R3n)),y.Math.min(k,j)),c=0,f=0;f<s.c.length-1;f++)for(h=(Nn(f,s.c.length),u(s.c[f],118)),m=f+1;m<s.c.length;m++)c+=Uen(n,h,(Nn(m,s.c.length),u(s.c[m],118)));for(g=u(v(e,(W(),P3)),234),c>=2&&(P=JHn(s,!0,g),!n.e&&(n.e=new ukn(n)),F8e(n.e,P,s,n.b)),LFn(s,g),FAe(s),p=-1,a=new M(s);a.a<a.c.c.length;)l=u(E(a),118),!(y.Math.abs(l.s-l.c)<vh)&&(p=y.Math.max(p,l.o),n.d.yg(l,r,n.c));return n.d.a.a.$b(),p+1}function $Ae(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(d=u(NM((s=ge(new sl(e).a.d,0),new sg(s))),39),m=d?u(v(d,(pt(),cq)),39):null,r=1;d&&m;){for(h=0,D=0,t=d,i=m,f=0;f<r;f++)t=n$(t),i=n$(i),D+=$(B(v(t,(pt(),Lv)))),h+=$(B(v(i,Lv)));if(A=$(B(v(m,(pt(),j1)))),O=$(B(v(d,j1))),g=IY(n,d,m),p=A+h+n.b+g-O-D,0<p){for(l=e,a=0;l&&l!=i;)++a,l=u(v(l,$O),39);if(l)for(P=p/a,l=e;l!=i;)j=$(B(v(l,j1)))+p,U(l,j1,j),k=$(B(v(l,Lv)))+p,U(l,Lv,k),p-=P,l=u(v(l,$O),39);else return}++r,d.d.b==0?d=Ien(new sl(e),r):d=u(NM((c=ge(new sl(d).a.d,0),new sg(c))),39),m=d?u(v(d,cq),39):null}}function xAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;return g=n.c[e],p=n.c[t],m=u(v(g,(W(),C3)),15),!!m&&m.gc()!=0&&m.Hc(p)||(k=g.k!=(Vn(),Ti)&&p.k!=Ti,j=u(v(g,uw),10),P=u(v(p,uw),10),O=j!=P,A=!!j&&j!=g||!!P&&P!=p,D=$x(g,(en(),Xn)),_=$x(p,ae),A=A|($x(g,ae)||$x(p,Xn)),X=A&&O||D||_,k&&X)||g.k==(Vn(),_c)&&p.k==Xt||p.k==(Vn(),_c)&&g.k==Xt?!1:(a=n.c[e],c=n.c[t],r=pFn(n.e,a,c,(en(),Wn)),h=pFn(n.i,a,c,Zn),aCe(n.f,a,c),l=ARn(n.b,a,c)+u(r.a,17).a+u(h.a,17).a+n.f.d,f=ARn(n.b,c,a)+u(r.b,17).a+u(h.b,17).a+n.f.b,n.a&&(d=u(v(a,st),12),s=u(v(c,st),12),i=YBn(n.g,d,s),l+=u(i.a,17).a,f+=u(i.b,17).a),l>f)}function PGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(l=Pt,a=Pt,f=li,h=li,g=new M(e.i);g.a<g.c.c.length;)d=u(E(g),68),r=u(u(ee(n.g,d.a),42).b,27),Bo(r,d.b.c,d.b.d),l=y.Math.min(l,r.i),a=y.Math.min(a,r.j),f=y.Math.max(f,r.i+r.g),h=y.Math.max(h,r.j+r.f);for(p=u(z(n.c,(Vk(),Qce)),107),qb(n.c,f-l+(p.b+p.c),h-a+(p.d+p.a),!0,!0),inn(n.c,-l+p.b,-a+p.d),i=new ne(DOn(n.c));i.e!=i.i.gc();)t=u(ue(i),74),s=Xg(t,!0,!0),m=Fh(t),j=ca(t),k=new V(m.i+m.g/2,m.j+m.f/2),c=new V(j.i+j.g/2,j.j+j.f/2),P=mi(new V(c.a,c.b),k),m4(P,m.g,m.f),it(k,P),O=mi(new V(k.a,k.b),c),m4(O,j.g,j.f),it(c,O),j7(s,k.a,k.b),y7(s,c.a,c.b)}function RAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;for(e.Ug("Label dummy removal",1),i=$(B(v(n,(cn(),C2)))),r=$(B(v(n,q0))),l=u(v(n,Lo),88),h=new M(n.b);h.a<h.c.c.length;)for(f=u(E(h),30),d=new xi(f.a,0);d.b<d.d.gc();)a=(oe(d.b<d.d.gc()),u(d.d.Xb(d.c=d.b++),10)),a.k==(Vn(),Sc)&&(g=u(v(a,(W(),st)),18),m=$(B(v(g,m1))),s=x(v(a,S3))===x((Co(),Pa)),t=new rr(a.n),s&&(t.b+=m+i),c=new V(a.o.a,a.o.b+(a.k==Sc&&!om(ut(u(v(a,K8),15).Oc(),new Y3(new HU))).Bd((Va(),v3))?0:-m-i)),p=u(v(a,K8),15),l==(ci(),us)||l==Wf?qMe(p,t,r,c,s,l):Q6e(p,t,r,c),hi(g.b,p),XR(a,x(v(n,$l))===x((El(),Qj))),bo(d));e.Vg()}function KAe(n){n.q||(n.q=!0,n.p=hc(n,0),n.a=hc(n,1),jt(n.a,0),n.f=hc(n,2),jt(n.f,1),Rt(n.f,2),n.n=hc(n,3),Rt(n.n,3),Rt(n.n,4),Rt(n.n,5),Rt(n.n,6),n.g=hc(n,4),jt(n.g,7),Rt(n.g,8),n.c=hc(n,5),jt(n.c,7),jt(n.c,8),n.i=hc(n,6),jt(n.i,9),jt(n.i,10),jt(n.i,11),jt(n.i,12),Rt(n.i,13),n.j=hc(n,7),jt(n.j,9),n.d=hc(n,8),jt(n.d,3),jt(n.d,4),jt(n.d,5),jt(n.d,6),Rt(n.d,7),Rt(n.d,8),Rt(n.d,9),Rt(n.d,10),n.b=hc(n,9),Rt(n.b,0),Rt(n.b,1),n.e=hc(n,10),Rt(n.e,1),Rt(n.e,2),Rt(n.e,3),Rt(n.e,4),jt(n.e,5),jt(n.e,6),jt(n.e,7),jt(n.e,8),jt(n.e,9),jt(n.e,10),Rt(n.e,11),n.k=hc(n,11),Rt(n.k,0),Rt(n.k,1),n.o=Je(n,12),n.s=Je(n,13))}function Yen(n,e){e.dc()&&Nh(n.j,!0,!0,!0,!0),ct(e,(en(),ef))&&Nh(n.j,!0,!0,!0,!1),ct(e,os)&&Nh(n.j,!1,!0,!0,!0),ct(e,Do)&&Nh(n.j,!0,!0,!1,!0),ct(e,Cs)&&Nh(n.j,!0,!1,!0,!0),ct(e,Wu)&&Nh(n.j,!1,!0,!0,!1),ct(e,ss)&&Nh(n.j,!1,!0,!1,!0),ct(e,$o)&&Nh(n.j,!0,!1,!1,!0),ct(e,tf)&&Nh(n.j,!0,!1,!0,!1),ct(e,mu)&&Nh(n.j,!0,!0,!0,!0),ct(e,su)&&Nh(n.j,!0,!0,!0,!0),ct(e,mu)&&Nh(n.j,!0,!0,!0,!0),ct(e,pu)&&Nh(n.j,!0,!0,!0,!0),ct(e,vu)&&Nh(n.j,!0,!0,!0,!0),ct(e,Ju)&&Nh(n.j,!0,!0,!0,!0),ct(e,Uc)&&Nh(n.j,!0,!0,!0,!0)}function IGn(n,e,t){var i,r,c,s,f,h,l,a,d;if(n.a!=e.jk())throw T(new Gn(nv+e.xe()+Yb));if(i=r1((Lu(),zi),e).Jl(),i)return i.jk().wi().ri(i,t);if(s=r1(zi,e).Ll(),s){if(t==null)return null;if(f=u(t,15),f.dc())return"";for(d=new Hl,c=f.Kc();c.Ob();)r=c.Pb(),Er(d,s.jk().wi().ri(s,r)),d.a+=" ";return bN(d,d.a.length-1)}if(a=r1(zi,e).Ml(),!a.dc()){for(l=a.Kc();l.Ob();)if(h=u(l.Pb(),156),h.fk(t))try{if(d=h.jk().wi().ri(h,t),d!=null)return d}catch(g){if(g=Ot(g),!L(g,103))throw T(g)}throw T(new Gn("Invalid value: '"+t+"' for datatype :"+e.xe()))}return u(e,847).ok(),t==null?null:L(t,180)?""+u(t,180).a:wo(t)==oI?MCn(O9[0],u(t,206)):Jr(t)}function BAe(n){var e,t,i,r,c,s,f,h,l,a;for(l=new Mt,f=new Mt,c=new M(n);c.a<c.c.c.length;)i=u(E(c),131),i.v=0,i.n=i.i.c.length,i.u=i.t.c.length,i.n==0&&xt(l,i,l.c.b,l.c),i.u==0&&i.r.a.gc()==0&&xt(f,i,f.c.b,f.c);for(s=-1;l.b!=0;)for(i=u(Ux(l,0),131),t=new M(i.t);t.a<t.c.c.length;)e=u(E(t),274),a=e.b,a.v=y.Math.max(a.v,i.v+1),s=y.Math.max(s,a.v),--a.n,a.n==0&&xt(l,a,l.c.b,l.c);if(s>-1){for(r=ge(f,0);r.b!=r.d.c;)i=u(be(r),131),i.v=s;for(;f.b!=0;)for(i=u(Ux(f,0),131),t=new M(i.i);t.a<t.c.c.length;)e=u(E(t),274),h=e.a,h.r.a.gc()==0&&(h.v=y.Math.min(h.v,i.v-1),--h.u,h.u==0&&xt(f,h,f.c.b,f.c))}}function FAe(n){var e,t,i,r,c,s,f,h,l,a;for(l=new Z,f=new Z,s=new M(n);s.a<s.c.c.length;)r=u(E(s),118),JA(r,r.f.c.length),SE(r,r.k.c.length),r.d==0&&Bn(l.c,r),r.i==0&&r.e.b==0&&Bn(f.c,r);for(i=-1;l.c.length!=0;)for(r=u(Yl(l,0),118),t=new M(r.k);t.a<t.c.c.length;)e=u(E(t),132),a=e.b,wG(a,y.Math.max(a.o,r.o+1)),i=y.Math.max(i,a.o),JA(a,a.d-1),a.d==0&&Bn(l.c,a);if(i>-1){for(c=new M(f);c.a<c.c.c.length;)r=u(E(c),118),r.o=i;for(;f.c.length!=0;)for(r=u(Yl(f,0),118),t=new M(r.f);t.a<t.c.c.length;)e=u(E(t),132),h=e.a,!(h.e.b>0)&&(wG(h,y.Math.min(h.o,r.o-1)),SE(h,h.i-1),h.i==0&&Bn(f.c,h))}}function OGn(n,e,t,i,r){var c,s,f,h;return h=Pt,s=!1,f=Hen(n,mi(new V(e.a,e.b),n),it(new V(t.a,t.b),r),mi(new V(i.a,i.b),t)),c=!!f&&!(y.Math.abs(f.a-n.a)<=Jb&&y.Math.abs(f.b-n.b)<=Jb||y.Math.abs(f.a-e.a)<=Jb&&y.Math.abs(f.b-e.b)<=Jb),f=Hen(n,mi(new V(e.a,e.b),n),t,r),f&&((y.Math.abs(f.a-n.a)<=Jb&&y.Math.abs(f.b-n.b)<=Jb)==(y.Math.abs(f.a-e.a)<=Jb&&y.Math.abs(f.b-e.b)<=Jb)||c?h=y.Math.min(h,U6(mi(f,t))):s=!0),f=Hen(n,mi(new V(e.a,e.b),n),i,r),f&&(s||(y.Math.abs(f.a-n.a)<=Jb&&y.Math.abs(f.b-n.b)<=Jb)==(y.Math.abs(f.a-e.a)<=Jb&&y.Math.abs(f.b-e.b)<=Jb)||c)&&(h=y.Math.min(h,U6(mi(f,i)))),h}function AGn(n){ib(n,new gd(qE(nb(Qd(Zd(Yd(new Fa,aa),PXn),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new zwn),cu))),Q(n,aa,e8,rn(Mon)),Q(n,aa,oP,(_n(),!0)),Q(n,aa,r2,rn(dZn)),Q(n,aa,d3,rn(bZn)),Q(n,aa,a3,rn(wZn)),Q(n,aa,z4,rn(aZn)),Q(n,aa,t8,rn(Con)),Q(n,aa,X4,rn(gZn)),Q(n,aa,Vtn,rn(Eon)),Q(n,aa,Jtn,rn(yon)),Q(n,aa,Qtn,rn(jon)),Q(n,aa,Ytn,rn(Ton)),Q(n,aa,Wtn,rn(EI))}function _Ae(n){var e,t,i,r,c,s,f,h;for(e=null,i=new M(n);i.a<i.c.c.length;)t=u(E(i),239),$(Sf(t.g,t.d[0]).a),t.b=null,t.e&&t.e.gc()>0&&t.c==0&&(!e&&(e=new Z),Bn(e.c,t));if(e)for(;e.c.length!=0;){if(t=u(Yl(e,0),239),t.b&&t.b.c.length>0){for(c=(!t.b&&(t.b=new Z),new M(t.b));c.a<c.c.c.length;)if(r=u(E(c),239),J9(Sf(r.g,r.d[0]).a)==J9(Sf(t.g,t.d[0]).a)){if(qr(n,r,0)>qr(n,t,0))return new bi(r,t)}else if($(Sf(r.g,r.d[0]).a)>$(Sf(t.g,t.d[0]).a))return new bi(r,t)}for(f=(!t.e&&(t.e=new Z),t.e).Kc();f.Ob();)s=u(f.Pb(),239),h=(!s.b&&(s.b=new Z),s.b),zw(0,h.c.length),l6(h.c,0,t),s.c==h.c.length&&Bn(e.c,s)}return null}function HAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(e.Ug("Interactive crossing minimization",1),s=0,c=new M(n.b);c.a<c.c.c.length;)i=u(E(c),30),i.p=s++;for(g=zZ(n),j=new yz(g.length),uGn(new Fu(S(C(nne,1),Rn,230,0,[j])),g),k=0,s=0,r=new M(n.b);r.a<r.c.c.length;){for(i=u(E(r),30),t=0,d=0,a=new M(i.a);a.a<a.c.c.length;)for(h=u(E(a),10),h.n.a>0&&(t+=h.n.a+h.o.a/2,++d),m=new M(h.j);m.a<m.c.c.length;)p=u(E(m),12),p.p=k++;for(d>0&&(t/=d),P=F(Ii,Cr,28,i.a.c.length,15,1),f=0,l=new M(i.a);l.a<l.c.c.length;)h=u(E(l),10),h.p=f++,P[h.p]=LAe(h,t),h.k==(Vn(),Ti)&&U(h,(W(),ifn),P[h.p]);Ln(),Yt(i.a,new K7n(P)),aUn(j,g,s,!0),++s}e.Vg()}function z5(n,e){var t,i,r,c,s,f,h,l,a;if(e.e==5){TGn(n,e);return}if(l=e,!(l.b==null||n.b==null)){for(Gg(n),U5(n),Gg(l),U5(l),t=F(ye,_e,28,n.b.length+l.b.length,15,1),a=0,i=0,s=0;i<n.b.length&&s<l.b.length;)if(r=n.b[i],c=n.b[i+1],f=l.b[s],h=l.b[s+1],c<f)t[a++]=n.b[i++],t[a++]=n.b[i++];else if(c>=f&&r<=h)f<=r&&c<=h?i+=2:f<=r?(n.b[i]=h+1,s+=2):c<=h?(t[a++]=r,t[a++]=f-1,i+=2):(t[a++]=r,t[a++]=f-1,n.b[i]=h+1,s+=2);else if(h<r)s+=2;else throw T(new ec("Token#subtractRanges(): Internal Error: ["+n.b[i]+","+n.b[i+1]+"] - ["+l.b[s]+","+l.b[s+1]+"]"));for(;i<n.b.length;)t[a++]=n.b[i++],t[a++]=n.b[i++];n.b=F(ye,_e,28,a,15,1),Oc(t,0,n.b,0,a)}}function LGn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(f=Xg(e,!1,!1),P=Jk(f),i&&(P=Sk(P)),A=$(B(z(e,(j5(),w_)))),j=(oe(P.b!=0),u(P.a.a.c,8)),d=u(Zo(P,1),8),P.b>2?(a=new Z,hi(a,new Jl(P,1,P.b)),c=mzn(a,A+n.a),O=new bR(c),Ur(O,e),Bn(t.c,O)):i?O=u(ee(n.b,Fh(e)),272):O=u(ee(n.b,ca(e)),272),h=Fh(e),i&&(h=ca(e)),s=_je(j,h),l=A+n.a,s.a?(l+=y.Math.abs(j.b-d.b),k=new V(d.a,(d.b+j.b)/2)):(l+=y.Math.abs(j.a-d.a),k=new V((d.a+j.a)/2,d.b)),i?Ve(n.d,e,new gZ(O,s,k,l)):Ve(n.c,e,new gZ(O,s,k,l)),Ve(n.b,e,O),m=(!e.n&&(e.n=new q(Sr,e,1,7)),e.n),p=new ne(m);p.e!=p.i.gc();)g=u(ue(p),135),r=sy(n,g,!0,0,0),Bn(t.c,r)}function qAe(n){var e,t,i,r,c,s,f;if(!n.A.dc()){if(n.A.Hc((go(),iE))&&(u(Mr(n.b,(en(),Xn)),127).k=!0,u(Mr(n.b,ae),127).k=!0,e=n.q!=(Ai(),tl)&&n.q!=qc,aG(u(Mr(n.b,Zn),127),e),aG(u(Mr(n.b,Wn),127),e),aG(n.g,e),n.A.Hc(Gd)&&(u(Mr(n.b,Xn),127).j=!0,u(Mr(n.b,ae),127).j=!0,u(Mr(n.b,Zn),127).k=!0,u(Mr(n.b,Wn),127).k=!0,n.g.k=!0)),n.A.Hc(tE))for(n.a.j=!0,n.a.k=!0,n.g.j=!0,n.g.k=!0,f=n.B.Hc((io(),P9)),r=jx(),c=0,s=r.length;c<s;++c)i=r[c],t=u(Mr(n.i,i),314),t&&(nZ(i)?(t.j=!0,t.k=!0):(t.j=!f,t.k=!f));n.A.Hc(Q0)&&n.B.Hc((io(),cE))&&(n.g.j=!0,n.g.j=!0,n.a.j||(n.a.j=!0,n.a.k=!0,n.a.e=!0))}}function UAe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(i=new M(n.e.b);i.a<i.c.c.length;)for(t=u(E(i),30),c=new M(t.a);c.a<c.c.c.length;)if(r=u(E(c),10),p=n.i[r.p],l=p.a.e,h=p.d.e,r.n.b=l,P=h-l-r.o.b,e=HR(r),g=(c0(),(r.q?r.q:(Ln(),Ln(),Wh))._b((cn(),lw))?d=u(v(r,lw),203):d=u(v(Hi(r),U8),203),d),e&&(g==I2||g==P2)&&(r.o.b+=P),e&&(g==RH||g==I2||g==P2)){for(k=new M(r.j);k.a<k.c.c.length;)m=u(E(k),12),(en(),su).Hc(m.j)&&(a=u(ee(n.k,m),125),m.n.b=a.e-l);for(f=new M(r.b);f.a<f.c.c.length;)s=u(E(f),72),j=u(v(r,hw),21),j.Hc((l0(),Ts))?s.n.b+=P:j.Hc(el)&&(s.n.b+=P/2);(g==I2||g==P2)&&uc(r,(en(),ae)).Jc(new nkn(P))}}function GAe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(l=new Z,h=new M(e.a);h.a<h.c.c.length;)for(s=u(E(h),10),g=uc(s,(en(),Zn)).Kc();g.Ob();)for(d=u(g.Pb(),12),r=new M(d.g);r.a<r.c.c.length;)i=u(E(r),18),!(!fr(i)&&i.c.i.c==i.d.i.c||fr(i)||i.d.i.c!=t)&&Bn(l.c,i);for(f=Qo(t.a).Kc();f.Ob();)for(s=u(f.Pb(),10),g=uc(s,(en(),Wn)).Kc();g.Ob();)for(d=u(g.Pb(),12),r=new M(d.e);r.a<r.c.c.length;)if(i=u(E(r),18),!(!fr(i)&&i.c.i.c==i.d.i.c||fr(i)||i.c.i.c!=e)&&l.c.length!=0){for(a=new xi(l,l.c.length),c=(oe(a.b>0),u(a.a.Xb(a.c=--a.b),18));c!=i&&a.b>0;)n.a[c.p]=!0,n.a[i.p]=!0,c=(oe(a.b>0),u(a.a.Xb(a.c=--a.b),18));a.b>0&&bo(a)}}function NGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;if(!n.b)return!1;for(s=null,g=null,h=new r$(null,null),r=1,h.a[1]=n.b,d=h;d.a[r];)l=r,f=g,g=d,d=d.a[r],i=n.a.Ne(e,d.d),r=i<0?0:1,i==0&&(!t.c||mc(d.e,t.d))&&(s=d),!(d&&d.b)&&!Iw(d.a[r])&&(Iw(d.a[1-r])?g=g.a[l]=jC(d,r):Iw(d.a[1-r])||(p=g.a[1-l],p&&(!Iw(p.a[1-l])&&!Iw(p.a[l])?(g.b=!1,p.b=!0,d.b=!0):(c=f.a[1]==g?1:0,Iw(p.a[l])?f.a[c]=sLn(g,l):Iw(p.a[1-l])&&(f.a[c]=jC(g,l)),d.b=f.a[c].b=!0,f.a[c].a[0].b=!1,f.a[c].a[1].b=!1))));return s&&(t.b=!0,t.d=s.e,d!=s&&(a=new r$(d.d,d.e),zye(n,h,s,a),g==s&&(g=a)),g.a[g.a[1]==d?1:0]=d.a[d.a[0]?0:1],--n.c),n.b=h.a[1],n.b&&(n.b.b=!1),t.b}function zAe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(r=new M(n.a.a.b);r.a<r.c.c.length;)for(i=u(E(r),60),h=i.c.Kc();h.Ob();)f=u(h.Pb(),60),i.a!=f.a&&(hl(n.a.d)?d=n.a.g.ff(i,f):d=n.a.g.gf(i,f),c=i.b.a+i.d.b+d-f.b.a,c=y.Math.ceil(c),c=y.Math.max(0,c),tQ(i,f)?(s=sb(new za,n.d),l=wi(y.Math.ceil(f.b.a-i.b.a)),e=l-(f.b.a-i.b.a),a=xp(i).a,t=i,a||(a=xp(f).a,e=-e,t=f),a&&(t.b.a-=e,a.n.a-=e),qs(Ns(Ls(Ds(As(new hs,y.Math.max(0,l)),1),s),n.c[i.a.d])),qs(Ns(Ls(Ds(As(new hs,y.Math.max(0,-l)),1),s),n.c[f.a.d]))):(g=1,(L(i.g,154)&&L(f.g,10)||L(f.g,154)&&L(i.g,10))&&(g=2),qs(Ns(Ls(Ds(As(new hs,wi(c)),g),n.c[i.a.d]),n.c[f.a.d]))))}function DGn(n,e,t){var i,r,c,s,f,h,l,a,d,g;if(t)for(i=-1,a=new xi(e,0);a.b<a.d.gc();){if(f=(oe(a.b<a.d.gc()),u(a.d.Xb(a.c=a.b++),10)),d=n.c[f.c.p][f.p].a,d==null){for(s=i+1,c=new xi(e,a.b);c.b<c.d.gc();)if(g=m1e(n,(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),10))).a,g!=null){s=(Jn(g),g);break}d=(i+s)/2,n.c[f.c.p][f.p].a=d,n.c[f.c.p][f.p].d=(Jn(d),d),n.c[f.c.p][f.p].b=1}i=(Jn(d),d)}else{for(r=0,l=new M(e);l.a<l.c.c.length;)f=u(E(l),10),n.c[f.c.p][f.p].a!=null&&(r=y.Math.max(r,$(n.c[f.c.p][f.p].a)));for(r+=2,h=new M(e);h.a<h.c.c.length;)f=u(E(h),10),n.c[f.c.p][f.p].a==null&&(d=to(n.i,24)*Iy*r-1,n.c[f.c.p][f.p].a=d,n.c[f.c.p][f.p].d=d,n.c[f.c.p][f.p].b=1)}}function XAe(n,e,t){var i,r,c,s,f,h,l,a,d;for(!t&&(t=t6e(e.q.getTimezoneOffset())),r=(e.q.getTimezoneOffset()-t.a)*6e4,f=new oV(nr(vc(e.q.getTime()),r)),h=f,f.q.getTimezoneOffset()!=e.q.getTimezoneOffset()&&(r>0?r-=864e5:r+=864e5,h=new oV(nr(vc(e.q.getTime()),r))),a=new fg,l=n.a.length,c=0;c<l;)if(i=Xi(n.a,c),i>=97&&i<=122||i>=65&&i<=90){for(s=c+1;s<l&&Xi(n.a,s)==i;++s);zNe(a,i,s-c,f,h,t),c=s}else if(i==39){if(++c,c<l&&Xi(n.a,c)==39){a.a+="'",++c;continue}for(d=!1;!d;){for(s=c;s<l&&Xi(n.a,s)!=39;)++s;if(s>=l)throw T(new Gn("Missing trailing '"));s+1<l&&Xi(n.a,s+1)==39?++s:d=!0,Be(a,qo(n.a,c,s)),c=s+1}}else a.a+=String.fromCharCode(i),++c;return a.a}function VAe(){Ge(ng,new zvn),Ge(Ue,new i6n),Ge(Ss,new b6n),Ge(Mf,new k6n),Ge(yU,new y6n),Ge(EA,new j6n),Ge(Kl,new E6n),Ge(I9,new M6n),Ge(sE,new xvn),Ge(wU,new Rvn),Ge(La,new Kvn),Ge(Ps,new Bvn),Ge(Ef,new Fvn),Ge(vw,new _vn),Ge(eg,new Hvn),Ge(ku,new qvn),Ge(Z0,new Uvn),Ge(pc,new Gvn),Ge(jr,new Xvn),Ge(fu,new Vvn),Ge(zt,new Wvn),Ge(C(Ru,1),new Jvn),Ge(p3,new Qvn),Ge(T8,new Yvn),Ge(oI,new Zvn),Ge(pbn,new n6n),Ge(si,new e6n),Ge(Ldn,new t6n),Ge($dn,new r6n),Ge(rbn,new c6n),Ge(MA,new u6n),Ge(ov,new o6n),Ge(Gi,new s6n),Ge(eun,new f6n),Ge(nw,new h6n),Ge(tun,new l6n),Ge(nbn,new a6n),Ge(mbn,new d6n),Ge(ew,new w6n),Ge(fn,new g6n),Ge(Ddn,new p6n),Ge(vbn,new m6n)}function $Gn(n,e){var t,i,r,c,s,f,h,l,a;if(n==null)return gu;if(h=e.a.zc(n,e),h!=null)return"[...]";for(t=new fd(ur,"[","]"),r=n,c=0,s=r.length;c<s;++c)i=r[c],i!=null&&wo(i).i&4?Array.isArray(i)&&(a=dk(i),!(a>=14&&a<=16))?e.a._b(i)?(t.a?Be(t.a,t.b):t.a=new mo(t.d),M6(t.a,"[...]")):(f=cd(i),l=new $6(e),pl(t,$Gn(f,l))):L(i,183)?pl(t,MEe(u(i,183))):L(i,195)?pl(t,fye(u(i,195))):L(i,201)?pl(t,vje(u(i,201))):L(i,2111)?pl(t,hye(u(i,2111))):L(i,53)?pl(t,EEe(u(i,53))):L(i,376)?pl(t,_Ee(u(i,376))):L(i,846)?pl(t,jEe(u(i,846))):L(i,109)&&pl(t,yEe(u(i,109))):pl(t,i==null?gu:Jr(i));return t.a?t.e.length==0?t.a.a:t.a.a+(""+t.e):t.c}function L4(n,e){var t,i,r,c;c=n.F,e==null?(n.F=null,c4(n,null)):(n.F=(Jn(e),e),i=ih(e,wu(60)),i!=-1?(r=(Ri(0,i,e.length),e.substr(0,i)),ih(e,wu(46))==-1&&!Sn(r,i3)&&!Sn(r,g8)&&!Sn(r,GP)&&!Sn(r,p8)&&!Sn(r,m8)&&!Sn(r,v8)&&!Sn(r,k8)&&!Sn(r,y8)&&(r=wJn),t=xM(e,wu(62)),t!=-1&&(r+=""+(zn(t+1,e.length+1),e.substr(t+1))),c4(n,r)):(r=e,ih(e,wu(46))==-1&&(i=ih(e,wu(91)),i!=-1&&(r=(Ri(0,i,e.length),e.substr(0,i))),!Sn(r,i3)&&!Sn(r,g8)&&!Sn(r,GP)&&!Sn(r,p8)&&!Sn(r,m8)&&!Sn(r,v8)&&!Sn(r,k8)&&!Sn(r,y8)?(r=wJn,i!=-1&&(r+=""+(zn(i,e.length+1),e.substr(i)))):r=e),c4(n,r),r==e&&(n.F=n.D))),n.Db&4&&!(n.Db&1)&&rt(n,new Mi(n,1,5,c,e))}function xGn(n,e){var t,i,r,c,s,f,h,l,a,d;if(h=e.length-1,f=(zn(h,e.length),e.charCodeAt(h)),f==93){if(s=ih(e,wu(91)),s>=0)return r=Q5e(n,(Ri(1,s,e.length),e.substr(1,s-1))),a=(Ri(s+1,h,e.length),e.substr(s+1,h-(s+1))),ENe(n,a,r)}else{if(t=-1,dun==null&&(dun=new RegExp("\\d")),dun.test(String.fromCharCode(f))&&(t=TV(e,wu(46),h-1),t>=0)){i=u(YD(n,E$n(n,(Ri(1,t,e.length),e.substr(1,t-1))),!1),61),l=0;try{l=So((zn(t+1,e.length+1),e.substr(t+1)),Wi,et)}catch(g){throw g=Ot(g),L(g,130)?(c=g,T(new eC(c))):T(g)}if(l<i.gc())return d=i.Xb(l),L(d,76)&&(d=u(d,76).md()),u(d,58)}if(t<0)return u(YD(n,E$n(n,(zn(1,e.length+1),e.substr(1))),!1),58)}return null}function WAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(e.Ug("Label dummy insertions",1),d=new Z,s=$(B(v(n,(cn(),C2)))),l=$(B(v(n,q0))),a=u(v(n,Lo),88),p=new M(n.a);p.a<p.c.c.length;)for(g=u(E(p),10),c=new ie(ce(Qt(g).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),r.c.i!=r.d.i&&yN(r.b,qZn)){for(k=g4e(r),m=Lh(r.b.c.length),t=CTe(n,r,k,m),Bn(d.c,t),i=t.o,f=new xi(r.b,0);f.b<f.d.gc();)h=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),72)),x(v(h,Sh))===x(($f(),xv))&&(a==(ci(),us)||a==Wf?(i.a+=h.o.a+l,i.b=y.Math.max(i.b,h.o.b)):(i.a=y.Math.max(i.a,h.o.a),i.b+=h.o.b+l),Bn(m.c,h),bo(f));a==(ci(),us)||a==Wf?(i.a-=l,i.b+=s+k):i.b+=s-l+k}hi(n.a,d),e.Vg()}function JAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(n.c=n.e,m=un(v(e,(cn(),Gte))),p=m==null||(Jn(m),m),c=u(v(e,(W(),Hc)),21).Hc((pr(),cs)),r=u(v(e,_t),101),t=!(r==(Ai(),Ud)||r==tl||r==qc),p&&(t||!c)){for(d=new M(e.a);d.a<d.c.c.length;)l=u(E(d),10),l.p=0;for(g=new Z,a=new M(e.a);a.a<a.c.c.length;)if(l=u(E(a),10),i=vUn(n,l,null),i){for(h=new yQ,Ur(h,e),U(h,Dl,u(i.b,21)),XW(h.d,e.d),U(h,jv,null),f=u(i.a,15).Kc();f.Ob();)s=u(f.Pb(),10),nn(h.a,s),s.a=h;g.Fc(h)}c&&(x(v(e,R0))===x((dd(),P_))?n.c=n.b:x(v(e,R0))===x(I_)?n.c=n.d:n.c=n.a)}else g=new Fu(S(C(DZn,1),OXn,36,0,[e]));return x(v(e,R0))!==x((dd(),A0))&&(Ln(),g.jd(new f0n)),g}function N4(n,e,t){var i,r,c,s,f,h,l;if(l=n.c,!e&&(e=Udn),n.c=e,n.Db&4&&!(n.Db&1)&&(h=new Mi(n,1,2,l,n.c),t?t.nj(h):t=h),l!=e){if(L(n.Cb,291))n.Db>>16==-10?t=u(n.Cb,291).Yk(e,t):n.Db>>16==-15&&(!e&&(e=(An(),Zf)),!l&&(l=(An(),Zf)),n.Cb.Yh()&&(h=new ml(n.Cb,1,13,l,e,f1(no(u(n.Cb,62)),n),!1),t?t.nj(h):t=h));else if(L(n.Cb,90))n.Db>>16==-23&&(L(e,90)||(e=(An(),Os)),L(l,90)||(l=(An(),Os)),n.Cb.Yh()&&(h=new ml(n.Cb,1,10,l,e,f1(Pc(u(n.Cb,29)),n),!1),t?t.nj(h):t=h));else if(L(n.Cb,456))for(f=u(n.Cb,850),s=(!f.b&&(f.b=new NE(new aL)),f.b),c=(i=new sd(new Ua(s.a).a),new DE(i));c.a.b;)r=u(Ab(c.a).ld(),89),t=N4(r,TS(r,f),t)}return t}function QAe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(s=on(un(z(n,(cn(),B0)))),g=u(z(n,_0),21),h=!1,l=!1,d=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));d.e!=d.i.gc()&&(!h||!l);){for(c=u(ue(d),123),f=0,r=$h(Eo(S(C(Ao,1),Rn,20,0,[(!c.d&&(c.d=new Dn(Vt,c,8,5)),c.d),(!c.e&&(c.e=new Dn(Vt,c,7,4)),c.e)])));pe(r)&&(i=u(fe(r),74),a=s&&Bb(i)&&on(un(z(i,Dd))),t=bGn((!i.b&&(i.b=new Dn(he,i,4,7)),i.b),c)?n==St(Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84))):n==St(Gr(u(N((!i.b&&(i.b=new Dn(he,i,4,7)),i.b),0),84))),!((a||t)&&(++f,f>1))););(f>0||g.Hc((zu(),Rl))&&(!c.n&&(c.n=new q(Sr,c,1,7)),c.n).i>0)&&(h=!0),f>1&&(l=!0)}h&&e.Fc((pr(),cs)),l&&e.Fc((pr(),$8))}function RGn(n){var e,t,i,r,c,s,f,h,l,a,d,g;if(g=u(z(n,(He(),Hd)),21),g.dc())return null;if(f=0,s=0,g.Hc((go(),iE))){for(a=u(z(n,m9),101),i=2,t=2,r=2,c=2,e=St(n)?u(z(St(n),_d),88):u(z(n,_d),88),l=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));l.e!=l.i.gc();)if(h=u(ue(l),123),d=u(z(h,H2),64),d==(en(),sc)&&(d=xen(h,e),ht(h,H2,d)),a==(Ai(),qc))switch(d.g){case 1:i=y.Math.max(i,h.i+h.g);break;case 2:t=y.Math.max(t,h.j+h.f);break;case 3:r=y.Math.max(r,h.i+h.g);break;case 4:c=y.Math.max(c,h.j+h.f)}else switch(d.g){case 1:i+=h.g+2;break;case 2:t+=h.f+2;break;case 3:r+=h.g+2;break;case 4:c+=h.f+2}f=y.Math.max(i,r),s=y.Math.max(t,c)}return qb(n,f,s,!0,!0)}function VR(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(O=u(Wr(fC(ut(new Cn(null,new On(e.d,16)),new C7n(t)),new S7n(t)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),d=et,a=Wi,h=new M(e.b.j);h.a<h.c.c.length;)f=u(E(h),12),f.j==t&&(d=y.Math.min(d,f.p),a=y.Math.max(a,f.p));if(d==et)for(s=0;s<O.gc();s++)JJ(u(O.Xb(s),105),t,s);else for(A=F(ye,_e,28,r.length,15,1),Xwe(A,A.length),P=O.Kc();P.Ob();){for(j=u(P.Pb(),105),c=u(ee(n.b,j),183),l=0,k=d;k<=a;k++)c[k]&&(l=y.Math.max(l,i[k]));if(j.i){for(p=j.i.c,D=new ni,g=0;g<r.length;g++)r[p][g]&&fi(D,Y(A[g]));for(;sf(D,Y(l));)++l}for(JJ(j,t,l),m=d;m<=a;m++)c[m]&&(i[m]=l+1);j.i&&(A[j.i.c]=l)}}function YAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(r=null,i=new M(e.a);i.a<i.c.c.length;)t=u(E(i),10),HR(t)?c=(f=sb(i7(new za,t),n.f),h=sb(i7(new za,t),n.f),l=new GW(t,!0,f,h),a=t.o.b,d=(c0(),(t.q?t.q:(Ln(),Ln(),Wh))._b((cn(),lw))?g=u(v(t,lw),203):g=u(v(Hi(t),U8),203),g),p=1e4,d==P2&&(p=1),m=qs(Ns(Ls(As(Ds(new hs,p),wi(y.Math.ceil(a))),f),h)),d==I2&&fi(n.d,m),mUn(n,Qo(uc(t,(en(),Wn))),l),mUn(n,uc(t,Zn),l),l):c=(k=sb(i7(new za,t),n.f),Ut(ut(new Cn(null,new On(t.j,16)),new r3n),new qMn(n,k)),new GW(t,!1,k,k)),n.i[t.p]=c,r&&(s=r.c.d.a+jg(n.n,r.c,t)+t.d.d,r.b||(s+=r.c.o.b),qs(Ns(Ls(Ds(As(new hs,wi(y.Math.ceil(s))),0),r.d),c.a))),r=c}function ZAe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p;for(c=new tHn(e),d=PSe(n,e,c),p=y.Math.max($(B(v(e,(cn(),m1)))),1),a=new M(d.a);a.a<a.c.c.length;)l=u(E(a),42),h=eBn(u(l.a,8),u(l.b,8),p),Wt=!0,Wt=Wt&lb(t,new V(h.c,h.d)),Wt=Wt&lb(t,hb(new V(h.c,h.d),h.b,0)),Wt=Wt&lb(t,hb(new V(h.c,h.d),0,h.a)),Wt&lb(t,hb(new V(h.c,h.d),h.b,h.a));switch(g=c.d,f=eBn(u(d.b.a,8),u(d.b.b,8),p),g==(en(),Wn)||g==Zn?(i.c[g.g]=y.Math.min(i.c[g.g],f.d),i.b[g.g]=y.Math.max(i.b[g.g],f.d+f.a)):(i.c[g.g]=y.Math.min(i.c[g.g],f.c),i.b[g.g]=y.Math.max(i.b[g.g],f.c+f.b)),r=li,s=c.c.i.d,g.g){case 4:r=s.c;break;case 2:r=s.b;break;case 1:r=s.a;break;case 3:r=s.d}return i.a[g.g]=y.Math.max(i.a[g.g],r),c}function nLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn;f=u(ee(e.c,n),467),O=e.a.c,h=e.a.c+e.a.b,kn=f.f,Fn=f.a,s=kn<Fn,k=new V(O,kn),A=new V(h,Fn),r=(O+h)/2,j=new V(r,kn),D=new V(r,Fn),c=YTe(n,kn,Fn),X=Of(e.B),tn=new V(r,c),jn=Of(e.D),t=u6e(S(C(Ei,1),J,8,0,[X,tn,jn])),p=!1,P=e.B.i,P&&P.c&&f.d&&(l=s&&P.p<P.c.a.c.length-1||!s&&P.p>0,l?l&&(g=P.p,s?++g:--g,d=u(sn(P.c.a,g),10),i=uRn(d),p=!(mR(i,X,t[0])||OIn(i,X,t[0]))):p=!0),m=!1,_=e.D.i,_&&_.c&&f.e&&(a=s&&_.p>0||!s&&_.p<_.c.a.c.length-1,a?(g=_.p,s?--g:++g,d=u(sn(_.c.a,g),10),i=uRn(d),m=!(mR(i,t[0],jn)||OIn(i,t[0],jn))):m=!0),p&&m&&Re(n.a,tn),p||t5(n.a,S(C(Ei,1),J,8,0,[k,j])),m||t5(n.a,S(C(Ei,1),J,8,0,[D,A]))}function eLe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(p=e.c.length,g=0,d=new M(n.b);d.a<d.c.c.length;)if(a=u(E(d),30),P=a.a,P.c.length!=0){for(j=new M(P),l=0,O=null,r=u(E(j),10),c=null;r;){if(c=u(sn(e,r.p),261),c.c>=0){for(h=null,f=new xi(a.a,l+1);f.b<f.d.gc()&&(s=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),10)),h=u(sn(e,s.p),261),!(h.d==c.d&&h.c<c.c));)h=null;h&&(O&&(Go(i,r.p,Y(u(sn(i,r.p),17).a-1)),u(sn(t,O.p),15).Mc(c)),c=vye(c,r,p++),Bn(e.c,c),nn(t,new Z),O?(u(sn(t,O.p),15).Fc(c),nn(i,Y(1))):nn(i,Y(0)))}m=null,j.a<j.c.c.length&&(m=u(E(j),10),k=u(sn(e,m.p),261),u(sn(t,r.p),15).Fc(k),Go(i,m.p,Y(u(sn(i,m.p),17).a+1))),c.d=g,c.c=l++,O=r,r=m}++g}}function tLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;if(c=u(v(n,(W(),st)),74),!!c){for(i=n.a,r=new rr(t),it(r,Ske(n)),Jm(n.d.i,n.c.i)?(g=n.c,d=cc(S(C(Ei,1),J,8,0,[g.n,g.a])),mi(d,t)):d=Of(n.c),xt(i,d,i.a,i.a.a),p=Of(n.d),v(n,gH)!=null&&it(p,u(v(n,gH),8)),xt(i,p,i.c.b,i.c),n0(i,r),s=Xg(c,!0,!0),mC(s,u(N((!c.b&&(c.b=new Dn(he,c,4,7)),c.b),0),84)),vC(s,u(N((!c.c&&(c.c=new Dn(he,c,5,8)),c.c),0),84)),ay(i,s),a=new M(n.b);a.a<a.c.c.length;)l=u(E(a),72),f=u(v(l,st),135),Pb(f,l.o.a),Sb(f,l.o.b),Bo(f,l.n.a+r.a,l.n.b+r.b),ht(f,(Hp(),$_),un(v(l,$_)));h=u(v(n,(cn(),Rr)),75),h?(n0(h,r),ht(c,Rr,h)):ht(c,Rr,null),e==(El(),x3)?ht(c,$l,x3):ht(c,$l,null)}}function KGn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn;if(t.c.length!=0){for(m=new Z,p=new M(t);p.a<p.c.c.length;)g=u(E(p),27),nn(m,new V(g.i,g.j));for(i.dh(e,"Before removing overlaps");unn(n,t);)ES(n,t,!1);if(i.dh(e,"After removing overlaps"),f=0,h=0,r=null,t.c.length!=0&&(r=(Nn(0,t.c.length),u(t.c[0],27)),f=r.i-(Nn(0,m.c.length),u(m.c[0],8)).a,h=r.j-(Nn(0,m.c.length),u(m.c[0],8)).b),s=y.Math.sqrt(f*f+h*h),d=V6e(t),c=1,d.a.gc()!=0){for(a=d.a.ec().Kc();a.Ob();)l=u(a.Pb(),27),k=n.f,j=k.i+k.g/2,P=k.j+k.f/2,O=l.i+l.g/2,A=l.j+l.f/2,D=O-j,_=A-P,X=y.Math.sqrt(D*D+_*_),tn=D/X,jn=_/X,eu(l,l.i+tn*s),tu(l,l.j+jn*s);i.dh(e,"Child movement "+c),++c}n.a&&n.a.Gg(new _u(d)),KGn(n,e,new _u(d),i)}}function WR(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;return h=n,a=mi(new V(e.a,e.b),n),l=t,d=mi(new V(i.a,i.b),t),g=h.a,j=h.b,m=l.a,O=l.b,p=a.a,P=a.b,k=d.a,A=d.b,r=k*P-p*A,Cf(),Fs(jh),y.Math.abs(0-r)<=jh||r==0||isNaN(0)&&isNaN(r)?!1:(s=1/r*((g-m)*P-(j-O)*p),f=1/r*-(-(g-m)*A+(j-O)*k),c=(Fs(jh),(y.Math.abs(0-s)<=jh||s==0||isNaN(0)&&isNaN(s)?0:0<s?-1:0>s?1:ub(isNaN(0),isNaN(s)))<0&&(Fs(jh),(y.Math.abs(s-1)<=jh||s==1||isNaN(s)&&isNaN(1)?0:s<1?-1:s>1?1:ub(isNaN(s),isNaN(1)))<0)&&(Fs(jh),(y.Math.abs(0-f)<=jh||f==0||isNaN(0)&&isNaN(f)?0:0<f?-1:0>f?1:ub(isNaN(0),isNaN(f)))<0)&&(Fs(jh),(y.Math.abs(f-1)<=jh||f==1||isNaN(f)&&isNaN(1)?0:f<1?-1:f>1?1:ub(isNaN(f),isNaN(1)))<0)),c)}function iLe(n){var e,t,i,r;if(t=n.D!=null?n.D:n.B,e=ih(t,wu(91)),e!=-1){i=(Ri(0,e,t.length),t.substr(0,e)),r=new Hl;do r.a+="[";while((e=bm(t,91,++e))!=-1);Sn(i,i3)?r.a+="Z":Sn(i,g8)?r.a+="B":Sn(i,GP)?r.a+="C":Sn(i,p8)?r.a+="D":Sn(i,m8)?r.a+="F":Sn(i,v8)?r.a+="I":Sn(i,k8)?r.a+="J":Sn(i,y8)?r.a+="S":(r.a+="L",r.a+=""+i,r.a+=";");try{return null}catch(c){if(c=Ot(c),!L(c,63))throw T(c)}}else if(ih(t,wu(46))==-1){if(Sn(t,i3))return so;if(Sn(t,g8))return Ru;if(Sn(t,GP))return fs;if(Sn(t,p8))return Ii;if(Sn(t,m8))return cg;if(Sn(t,v8))return ye;if(Sn(t,k8))return Ka;if(Sn(t,y8))return V2}return null}function rLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn;for(n.e=e,f=rMe(e),X=new Z,i=new M(f);i.a<i.c.c.length;){for(t=u(E(i),15),tn=new Z,Bn(X.c,tn),h=new ni,m=t.Kc();m.Ob();){for(p=u(m.Pb(),27),c=sy(n,p,!0,0,0),Bn(tn.c,c),k=p.i,j=p.j,g=(!p.n&&(p.n=new q(Sr,p,1,7)),p.n),d=new ne(g);d.e!=d.i.gc();)l=u(ue(d),135),r=sy(n,l,!1,k,j),Bn(tn.c,r);for(_=(!p.c&&(p.c=new q(Qu,p,9,9)),p.c),O=new ne(_);O.e!=O.i.gc();)for(P=u(ue(O),123),s=sy(n,P,!1,k,j),Bn(tn.c,s),A=P.i+k,D=P.j+j,g=(!P.n&&(P.n=new q(Sr,P,1,7)),P.n),a=new ne(g);a.e!=a.i.gc();)l=u(ue(a),135),r=sy(n,l,!1,A,D),Bn(tn.c,r);Ki(h,ST(Eo(S(C(Ao,1),Rn,20,0,[Sl(p),ry(p)]))))}GTe(n,h,tn)}return n.f=new Xjn(X),Ur(n.f,e),n.f}function cLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;for(d=new DW(new SG(n));d.c!=d.d.a.d;)for(a=VDn(d),f=u(a.d,58),e=u(a.e,58),s=f.Dh(),k=0,D=(s.i==null&&bh(s),s.i).length;k<D;++k)if(l=(c=(s.i==null&&bh(s),s.i),k>=0&&k<c.length?c[k]:null),l.rk()&&!l.sk()){if(L(l,102))h=u(l,19),!(h.Bb&kc)&&(X=br(h),!(X&&X.Bb&kc))&&qIe(n,h,f,e);else if(dr(),u(l,69).xk()&&(t=(_=l,u(_?u(e,54).gi(_):null,160)),t))for(p=u(f.Mh(l),160),i=t.gc(),j=0,m=p.gc();j<m;++j)if(g=p.Tl(j),L(g,102)){if(A=p.Ul(j),r=Df(n,A),r==null&&A!=null){if(O=u(g,19),!n.b||O.Bb&kc||br(O))continue;r=A}if(!t.Ol(g,r)){for(P=0;P<i;++P)if(t.Tl(P)==g&&x(t.Ul(P))===x(r)){t.Ti(t.gc()-1,P),--i;break}}}else t.Ol(p.Tl(j),p.Ul(j))}}function uLe(n,e,t){var i;if(t.Ug("StretchWidth layering",1),e.a.c.length==0){t.Vg();return}for(n.c=e,n.t=0,n.u=0,n.i=Pt,n.g=li,n.d=$(B(v(e,(cn(),Ws)))),C9e(n),NMe(n),LMe(n),Ike(n),O8e(n),n.i=y.Math.max(1,n.i),n.g=y.Math.max(1,n.g),n.d=n.d/n.i,n.f=n.g/n.i,n.s=_9e(n),i=new Nc(n.c),nn(n.c.b,i),n.r=Mb(n.p),n.n=AT(n.k,n.k.length);n.r.c.length!=0;)n.o=W6e(n),!n.o||fRn(n)&&n.b.a.gc()!=0?(tye(n,i),i=new Nc(n.c),nn(n.c.b,i),Ki(n.a,n.b),n.b.a.$b(),n.t=n.u,n.u=0):fRn(n)?(n.c.b.c.length=0,i=new Nc(n.c),nn(n.c.b,i),n.t=0,n.u=0,n.b.a.$b(),n.a.a.$b(),++n.f,n.r=Mb(n.p),n.n=AT(n.k,n.k.length)):($i(n.o,i),du(n.r,n.o),fi(n.b,n.o),n.t=n.t-n.k[n.o.p]*n.d+n.j[n.o.p],n.u+=n.e[n.o.p]*n.d);e.a.c.length=0,Qk(e.b),t.Vg()}function oLe(n){var e,t,i,r,c,s,f,h,l,a,d;for(n.j=F(ye,_e,28,n.g,15,1),n.o=new Z,Ut(rc(new Cn(null,new On(n.e.b,16)),new l3n),new ekn(n)),n.a=F(so,Xh,28,n.b,16,1),Lk(new Cn(null,new On(n.e.b,16)),new ikn(n)),i=(d=new Z,Ut(ut(rc(new Cn(null,new On(n.e.b,16)),new d3n),new tkn(n)),new UMn(n,d)),d),h=new M(i);h.a<h.c.c.length;)if(f=u(E(h),515),!(f.c.length<=1)){if(f.c.length==2){GEe(f),HR((Nn(0,f.c.length),u(f.c[0],18)).d.i)||nn(n.o,f);continue}if(!(oye(f)||Jje(f,new a3n)))for(l=new M(f),r=null;l.a<l.c.c.length;)e=u(E(l),18),t=n.c[e.p],!r||l.a>=l.c.c.length?a=EJ((Vn(),Xt),Ti):a=EJ((Vn(),Ti),Ti),a*=2,c=t.a.g,t.a.g=y.Math.max(c,c+(a-c)),s=t.b.g,t.b.g=y.Math.max(s,s+(a-s)),r=e}}function sLe(n){var e,t,i,r;for(Ut(ut(new Cn(null,new On(n.a.b,16)),new z2n),new X2n),qke(n),Ut(ut(new Cn(null,new On(n.a.b,16)),new V2n),new W2n),n.c==(El(),x3)&&(Ut(ut(rc(new Cn(null,new On(new qa(n.f),1)),new J2n),new Q2n),new v7n(n)),Ut(ut(_r(rc(rc(new Cn(null,new On(n.d.b,16)),new Y2n),new Z2n),new npn),new epn),new y7n(n))),r=new V(Pt,Pt),e=new V(li,li),i=new M(n.a.b);i.a<i.c.c.length;)t=u(E(i),60),r.a=y.Math.min(r.a,t.d.c),r.b=y.Math.min(r.b,t.d.d),e.a=y.Math.max(e.a,t.d.c+t.d.b),e.b=y.Math.max(e.b,t.d.d+t.d.a);it(ff(n.d.c),_M(new V(r.a,r.b))),it(ff(n.d.f),mi(new V(e.a,e.b),r)),tCe(n,r,e),Hu(n.f),Hu(n.b),Hu(n.g),Hu(n.e),n.a.a.c.length=0,n.a.b.c.length=0,n.a=null,n.d=null}function US(n,e){var t;if(n.e)throw T(new Ar((ll(c_),RK+c_.k+KK)));if(!dle(n.a,e))throw T(new ec(tXn+e+iXn));if(e==n.d)return n;switch(t=n.d,n.d=e,t.g){case 0:switch(e.g){case 2:Rb(n);break;case 1:na(n),Rb(n);break;case 4:Hg(n),Rb(n);break;case 3:Hg(n),na(n),Rb(n)}break;case 2:switch(e.g){case 1:na(n),MR(n);break;case 4:Hg(n),Rb(n);break;case 3:Hg(n),na(n),Rb(n)}break;case 1:switch(e.g){case 2:na(n),MR(n);break;case 4:na(n),Hg(n),Rb(n);break;case 3:na(n),Hg(n),na(n),Rb(n)}break;case 4:switch(e.g){case 2:Hg(n),Rb(n);break;case 1:Hg(n),na(n),Rb(n);break;case 3:na(n),MR(n)}break;case 3:switch(e.g){case 2:na(n),Hg(n),Rb(n);break;case 1:na(n),Hg(n),na(n),Rb(n);break;case 4:na(n),MR(n)}}return n}function Yg(n,e){var t;if(n.d)throw T(new Ar((ll(S_),RK+S_.k+KK)));if(!ale(n.a,e))throw T(new ec(tXn+e+iXn));if(e==n.c)return n;switch(t=n.c,n.c=e,t.g){case 0:switch(e.g){case 2:ld(n);break;case 1:ea(n),ld(n);break;case 4:qg(n),ld(n);break;case 3:qg(n),ea(n),ld(n)}break;case 2:switch(e.g){case 1:ea(n),TR(n);break;case 4:qg(n),ld(n);break;case 3:qg(n),ea(n),ld(n)}break;case 1:switch(e.g){case 2:ea(n),TR(n);break;case 4:ea(n),qg(n),ld(n);break;case 3:ea(n),qg(n),ea(n),ld(n)}break;case 4:switch(e.g){case 2:qg(n),ld(n);break;case 1:qg(n),ea(n),ld(n);break;case 3:ea(n),TR(n)}break;case 3:switch(e.g){case 2:ea(n),qg(n),ld(n);break;case 1:ea(n),qg(n),ea(n),ld(n);break;case 4:ea(n),TR(n)}}return n}function GS(n,e){var t,i,r,c,s,f,h,l;if(L(n.Eh(),167)?(GS(u(n.Eh(),167),e),e.a+=" > "):e.a+="Root ",t=n.Dh().zb,Sn(t.substr(0,3),"Elk")?Be(e,(zn(3,t.length+1),t.substr(3))):e.a+=""+t,r=n.jh(),r){Be((e.a+=" ",e),r);return}if(L(n,366)&&(l=u(n,135).a,l)){Be((e.a+=" ",e),l);return}for(s=new ne(n.kh());s.e!=s.i.gc();)if(c=u(ue(s),135),l=c.a,l){Be((e.a+=" ",e),l);return}if(L(n,326)&&(i=u(n,74),!i.b&&(i.b=new Dn(he,i,4,7)),i.b.i!=0&&(!i.c&&(i.c=new Dn(he,i,5,8)),i.c.i!=0))){for(e.a+=" (",f=new kp((!i.b&&(i.b=new Dn(he,i,4,7)),i.b));f.e!=f.i.gc();)f.e>0&&(e.a+=ur),GS(u(ue(f),167),e);for(e.a+=iB,h=new kp((!i.c&&(i.c=new Dn(he,i,5,8)),i.c));h.e!=h.i.gc();)h.e>0&&(e.a+=ur),GS(u(ue(h),167),e);e.a+=")"}}function fLe(n,e,t){var i,r,c,s,f,h,l,a;for(h=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));h.e!=h.i.gc();)for(f=u(ue(h),27),r=new ie(ce(Sl(f).a.Kc(),new En));pe(r);){if(i=u(fe(r),74),!i.b&&(i.b=new Dn(he,i,4,7)),!(i.b.i<=1&&(!i.c&&(i.c=new Dn(he,i,5,8)),i.c.i<=1)))throw T(new hp("Graph must not contain hyperedges."));if(!L5(i)&&f!=Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84)))for(l=new KSn,Ur(l,i),U(l,(Y1(),y3),i),Jse(l,u(Fr(wr(t.f,f)),153)),Zse(l,u(ee(t,Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84))),153)),nn(e.c,l),s=new ne((!i.n&&(i.n=new q(Sr,i,1,7)),i.n));s.e!=s.i.gc();)c=u(ue(s),135),a=new FLn(l,c.a),Ur(a,c),U(a,y3,c),a.e.a=y.Math.max(c.g,1),a.e.b=y.Math.max(c.f,1),_en(a),nn(e.d,a)}}function hLe(n,e,t){var i,r,c,s,f,h,l,a,d,g;switch(t.Ug("Node promotion heuristic",1),n.i=e,n.r=u(v(e,(cn(),Ea)),243),n.r!=(ps(),ww)&&n.r!=U0?RLe(n):fSe(n),a=u(v(n.i,ihn),17).a,c=new Rgn,n.r.g){case 2:case 1:A4(n,c);break;case 3:for(n.r=PO,A4(n,c),h=0,f=new M(n.b);f.a<f.c.c.length;)s=u(E(f),17),h=y.Math.max(h,s.a);h>n.k&&(n.r=Sj,A4(n,c));break;case 4:for(n.r=PO,A4(n,c),l=0,r=new M(n.c);r.a<r.c.c.length;)i=B(E(r)),l=y.Math.max(l,(Jn(i),i));l>n.n&&(n.r=Pj,A4(n,c));break;case 6:g=wi(y.Math.ceil(n.g.length*a/100)),A4(n,new o7n(g));break;case 5:d=wi(y.Math.ceil(n.e*a/100)),A4(n,new s7n(d));break;case 8:yzn(n,!0);break;case 9:yzn(n,!1);break;default:A4(n,c)}n.r!=ww&&n.r!=U0?NCe(n,e):ZSe(n,e),t.Vg()}function lLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(d=n.b,a=new xi(d,0),Bw(a,new Nc(n)),O=!1,s=1;a.b<a.d.gc();){for(l=(oe(a.b<a.d.gc()),u(a.d.Xb(a.c=a.b++),30)),k=(Nn(s,d.c.length),u(d.c[s],30)),j=Mb(l.a),P=j.c.length,m=new M(j);m.a<m.c.c.length;)g=u(E(m),10),$i(g,k);if(O){for(p=Qo(j).Kc();p.Ob();)for(g=u(p.Pb(),10),c=new M(Mb(ji(g)));c.a<c.c.c.length;)r=u(E(c),18),Hb(r,!0),U(n,(W(),vj),(_n(),!0)),i=gGn(n,r,P),t=u(v(g,cw),313),A=u(sn(i,i.c.length-1),18),t.k=A.c.i,t.n=A,t.b=r.d.i,t.c=r;O=!1}else j.c.length!=0&&(e=(Nn(0,j.c.length),u(j.c[0],10)),e.k==(Vn(),Gf)&&(O=!0,s=-1));++s}for(f=new xi(n.b,0);f.b<f.d.gc();)h=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),30)),h.a.c.length==0&&bo(f)}function aLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(d=new ntn(n),a2e(d,!(e==(ci(),us)||e==Wf)),a=d.a,g=new up,r=(wf(),S(C(P0,1),G,237,0,[bc,Wc,wc])),s=0,h=r.length;s<h;++s)t=r[s],l=jN(a,bc,t),l&&(g.d=y.Math.max(g.d,l.jf()));for(i=S(C(P0,1),G,237,0,[bc,Wc,wc]),c=0,f=i.length;c<f;++c)t=i[c],l=jN(a,wc,t),l&&(g.a=y.Math.max(g.a,l.jf()));for(k=S(C(P0,1),G,237,0,[bc,Wc,wc]),P=0,A=k.length;P<A;++P)p=k[P],l=jN(a,p,bc),l&&(g.b=y.Math.max(g.b,l.kf()));for(m=S(C(P0,1),G,237,0,[bc,Wc,wc]),j=0,O=m.length;j<O;++j)p=m[j],l=jN(a,p,wc),l&&(g.c=y.Math.max(g.c,l.kf()));return g.d>0&&(g.d+=a.n.d,g.d+=a.d),g.a>0&&(g.a+=a.n.a,g.a+=a.d),g.b>0&&(g.b+=a.n.b,g.b+=a.d),g.c>0&&(g.c+=a.n.c,g.c+=a.d),g}function BGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;for(g=t.d,d=t.c,c=new V(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),s=c.b,l=new M(n.a);l.a<l.c.c.length;)if(f=u(E(l),10),f.k==(Vn(),Zt)){switch(i=u(v(f,(W(),gc)),64),r=u(v(f,nfn),8),a=f.n,i.g){case 2:a.a=t.f.a+g.c-d.a;break;case 4:a.a=-d.a-g.b}switch(m=0,i.g){case 2:case 4:e==(Ai(),tl)?(p=$(B(v(f,ow))),a.b=c.b*p-u(v(f,(cn(),aw)),8).b,m=a.b+r.b,OC(f,!1,!0)):e==qc&&(a.b=$(B(v(f,ow)))-u(v(f,(cn(),aw)),8).b,m=a.b+r.b,OC(f,!1,!0))}s=y.Math.max(s,m)}for(t.f.b+=s-c.b,h=new M(n.a);h.a<h.c.c.length;)if(f=u(E(h),10),f.k==(Vn(),Zt))switch(i=u(v(f,(W(),gc)),64),a=f.n,i.g){case 1:a.b=-d.b-g.d;break;case 3:a.b=t.f.b+g.a-d.b}}function dLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(a=u(u(ot(n.r,e),21),87),a.gc()<=2||e==(en(),Zn)||e==(en(),Wn)){czn(n,e);return}for(k=n.u.Hc((zu(),R3)),t=e==(en(),Xn)?(Lb(),ij):(Lb(),tj),P=e==Xn?(bu(),Xs):(bu(),kf),i=mz(DV(t),n.s),j=e==Xn?Pt:li,l=a.Kc();l.Ob();)f=u(l.Pb(),117),!(!f.c||f.c.d.c.length<=0)&&(m=f.b.Mf(),p=f.e,d=f.c,g=d.i,g.b=(c=d.n,d.e.a+c.b+c.c),g.a=(s=d.n,d.e.b+s.d+s.a),k?(g.c=p.a-(r=d.n,d.e.a+r.b+r.c)-n.s,k=!1):g.c=p.a+m.a+n.s,G7(P,Ntn),d.f=P,df(d,(Uu(),zs)),nn(i.d,new ZN(g,TY(i,g))),j=e==Xn?y.Math.min(j,p.b):y.Math.max(j,p.b+f.b.Mf().b));for(j+=e==Xn?-n.t:n.t,UY((i.e=j,i)),h=a.Kc();h.Ob();)f=u(h.Pb(),117),!(!f.c||f.c.d.c.length<=0)&&(g=f.c.i,g.c-=f.e.a,g.d-=f.e.b)}function FGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(r=new Z,k=new M(e.a);k.a<k.c.c.length;)if(m=u(E(k),10),p=m.e,p&&(i=FGn(n,p,m),hi(r,i),SAe(n,p,m),u(v(p,(W(),Hc)),21).Hc((pr(),cs))))for(O=u(v(m,(cn(),_t)),101),g=u(v(m,_0),181).Hc((zu(),Rl)),P=new M(m.j);P.a<P.c.c.length;)for(j=u(E(P),12),c=u(ee(n.b,j),10),c||(c=py(j,O,j.j,-(j.e.c.length-j.g.c.length),null,new Ni,j.o,u(v(p,Lo),88),p),U(c,st,j),Ve(n.b,j,c),nn(p.a,c)),s=u(sn(c.j,0),12),a=new M(j.f);a.a<a.c.c.length;)l=u(E(a),72),f=new Qjn,f.o.a=l.o.a,f.o.b=l.o.b,nn(s.f,f),g||(A=j.j,d=0,K6(u(v(m,_0),21))&&(d=Onn(l.n,l.o,j.o,0,A)),O==(Ai(),Qf)||(en(),su).Hc(A)?f.o.a=d:f.o.b=d);return h=new Z,CAe(n,e,t,r,h),t&&GOe(n,e,t,h),h}function Zen(n,e,t){var i,r,c,s,f,h,l,a,d;if(!n.c[e.c.p][e.p].e){for(n.c[e.c.p][e.p].e=!0,n.c[e.c.p][e.p].b=0,n.c[e.c.p][e.p].d=0,n.c[e.c.p][e.p].a=null,a=new M(e.j);a.a<a.c.c.length;)for(l=u(E(a),12),d=t?new nm(l):new ip(l),h=d.Kc();h.Ob();)f=u(h.Pb(),12),s=f.i,s.c==e.c?s!=e&&(Zen(n,s,t),n.c[e.c.p][e.p].b+=n.c[s.c.p][s.p].b,n.c[e.c.p][e.p].d+=n.c[s.c.p][s.p].d):(n.c[e.c.p][e.p].d+=n.g[f.p],++n.c[e.c.p][e.p].b);if(c=u(v(e,(W(),Jsn)),15),c)for(r=c.Kc();r.Ob();)i=u(r.Pb(),10),e.c==i.c&&(Zen(n,i,t),n.c[e.c.p][e.p].b+=n.c[i.c.p][i.p].b,n.c[e.c.p][e.p].d+=n.c[i.c.p][i.p].d);n.c[e.c.p][e.p].b>0&&(n.c[e.c.p][e.p].d+=to(n.i,24)*Iy*.07000000029802322-.03500000014901161,n.c[e.c.p][e.p].a=n.c[e.c.p][e.p].d/n.c[e.c.p][e.p].b)}}function bLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(m=new M(n);m.a<m.c.c.length;){for(p=u(E(m),10),zl(p.n),zl(p.o),HJ(p.f),Zqn(p),NSe(p),j=new M(p.j);j.a<j.c.c.length;){for(k=u(E(j),12),zl(k.n),zl(k.a),zl(k.o),gi(k,ABn(k.j)),c=u(v(k,(cn(),v1)),17),c&&U(k,v1,Y(-c.a)),r=new M(k.g);r.a<r.c.c.length;){for(i=u(E(r),18),t=ge(i.a,0);t.b!=t.d.c;)e=u(be(t),8),zl(e);if(h=u(v(i,Rr),75),h)for(f=ge(h,0);f.b!=f.d.c;)s=u(be(f),8),zl(s);for(d=new M(i.b);d.a<d.c.c.length;)l=u(E(d),72),zl(l.n),zl(l.o)}for(g=new M(k.f);g.a<g.c.c.length;)l=u(E(g),72),zl(l.n),zl(l.o)}for(p.k==(Vn(),Zt)&&(U(p,(W(),gc),ABn(u(v(p,gc),64))),HCe(p)),a=new M(p.b);a.a<a.c.c.length;)l=u(E(a),72),Zqn(l),zl(l.o),zl(l.n)}}function wLe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te;Fn=ee(n.e,i),Fn==null&&(Fn=new sp,p=u(Fn,190),O=e+"_s",A=O+r,g=new qw(A),bf(p,Eh,g)),kn=u(Fn,190),Op(t,kn),te=new sp,nd(te,"x",i.j),nd(te,"y",i.k),bf(kn,mWn,te),tn=new sp,nd(tn,"x",i.b),nd(tn,"y",i.c),bf(kn,"endPoint",tn),d=Z9((!i.a&&(i.a=new ti(xo,i,5)),i.a)),m=!d,m&&(X=new _a,c=new nyn(X),qi((!i.a&&(i.a=new ti(xo,i,5)),i.a),c),bf(kn,BP,X)),h=Px(i),D=!!h,D&&tnn(n.a,kn,Scn,oR(n,Px(i))),P=Ix(i),_=!!P,_&&tnn(n.a,kn,Ccn,oR(n,Ix(i))),l=(!i.e&&(i.e=new Dn(Tt,i,10,9)),i.e).i==0,k=!l,k&&(jn=new _a,s=new CTn(n,jn),qi((!i.e&&(i.e=new Dn(Tt,i,10,9)),i.e),s),bf(kn,Icn,jn)),a=(!i.g&&(i.g=new Dn(Tt,i,9,10)),i.g).i==0,j=!a,j&&(Kn=new _a,f=new STn(n,Kn),qi((!i.g&&(i.g=new Dn(Tt,i,9,10)),i.g),f),bf(kn,Pcn,Kn))}function gLe(n){Kw();var e,t,i,r,c,s,f;for(i=n.f.n,s=OW(n.r).a.nc();s.Ob();){if(c=u(s.Pb(),117),r=0,c.b.pf((He(),oo))&&(r=$(B(c.b.of(oo))),r<0))switch(c.b.ag().g){case 1:i.d=y.Math.max(i.d,-r);break;case 3:i.a=y.Math.max(i.a,-r);break;case 2:i.c=y.Math.max(i.c,-r);break;case 4:i.b=y.Math.max(i.b,-r)}if(K6(n.u))switch(e=yve(c.b,r),f=!u(n.e.of(Sa),181).Hc((io(),rE)),t=!1,c.b.ag().g){case 1:t=e>i.d,i.d=y.Math.max(i.d,e),f&&t&&(i.d=y.Math.max(i.d,i.a),i.a=i.d+r);break;case 3:t=e>i.a,i.a=y.Math.max(i.a,e),f&&t&&(i.a=y.Math.max(i.a,i.d),i.d=i.a+r);break;case 2:t=e>i.c,i.c=y.Math.max(i.c,e),f&&t&&(i.c=y.Math.max(i.b,i.c),i.b=i.c+r);break;case 4:t=e>i.b,i.b=y.Math.max(i.b,e),f&&t&&(i.b=y.Math.max(i.b,i.c),i.c=i.b+r)}}}function _Gn(n,e){var t,i,r,c,s,f,h,l,a;return l="",e.length==0?n.ne(ptn,uK,-1,-1):(a=f0(e),Sn(a.substr(0,3),"at ")&&(a=(zn(3,a.length+1),a.substr(3))),a=a.replace(/\[.*?\]/g,""),s=a.indexOf("("),s==-1?(s=a.indexOf("@"),s==-1?(l=a,a=""):(l=f0((zn(s+1,a.length+1),a.substr(s+1))),a=f0((Ri(0,s,a.length),a.substr(0,s))))):(t=a.indexOf(")",s),l=(Ri(s+1,t,a.length),a.substr(s+1,t-(s+1))),a=f0((Ri(0,s,a.length),a.substr(0,s)))),s=ih(a,wu(46)),s!=-1&&(a=(zn(s+1,a.length+1),a.substr(s+1))),(a.length==0||Sn(a,"Anonymous function"))&&(a=uK),f=xM(l,wu(58)),r=TV(l,wu(58),f-1),h=-1,i=-1,c=ptn,f!=-1&&r!=-1&&(c=(Ri(0,r,l.length),l.substr(0,r)),h=iSn((Ri(r+1,f,l.length),l.substr(r+1,f-(r+1)))),i=iSn((zn(f+1,l.length+1),l.substr(f+1)))),n.ne(c,a,h,i))}function pLe(n){var e,t,i,r,c,s,f,h,l,a,d;for(l=new M(n);l.a<l.c.c.length;){switch(h=u(E(l),10),s=u(v(h,(cn(),ou)),171),c=null,s.g){case 1:case 2:c=(hd(),m2);break;case 3:case 4:c=(hd(),pv)}if(c)U(h,(W(),rO),(hd(),m2)),c==pv?OS(h,s,(gr(),Vu)):c==m2&&OS(h,s,(gr(),Jc));else if(mg(u(v(h,_t),101))&&h.j.c.length!=0){for(e=!0,d=new M(h.j);d.a<d.c.c.length;){if(a=u(E(d),12),!(a.j==(en(),Zn)&&a.e.c.length-a.g.c.length>0||a.j==Wn&&a.e.c.length-a.g.c.length<0)){e=!1;break}for(r=new M(a.g);r.a<r.c.c.length;)if(t=u(E(r),18),f=u(v(t.d.i,ou),171),f==(Yo(),F8)||f==x0){e=!1;break}for(i=new M(a.e);i.a<i.c.c.length;)if(t=u(E(i),18),f=u(v(t.c.i,ou),171),f==(Yo(),B8)||f==ja){e=!1;break}}e&&OS(h,s,(gr(),W8))}}}function mLe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;for(X=0,p=0,d=new M(e.e);d.a<d.c.c.length;){for(a=u(E(d),10),g=0,f=0,h=t?u(v(a,AO),17).a:Wi,P=i?u(v(a,LO),17).a:Wi,l=y.Math.max(h,P),A=new M(a.j);A.a<A.c.c.length;){if(O=u(E(A),12),D=a.n.b+O.n.b+O.a.b,i)for(s=new M(O.g);s.a<s.c.c.length;)c=u(E(s),18),k=c.d,m=k.i,e!=n.a[m.p]&&(j=y.Math.max(u(v(m,AO),17).a,u(v(m,LO),17).a),_=u(v(c,(cn(),O3)),17).a,_>=l&&_>=j&&(g+=m.n.b+k.n.b+k.a.b-D,++f));if(t)for(s=new M(O.e);s.a<s.c.c.length;)c=u(E(s),18),k=c.c,m=k.i,e!=n.a[m.p]&&(j=y.Math.max(u(v(m,AO),17).a,u(v(m,LO),17).a),_=u(v(c,(cn(),O3)),17).a,_>=l&&_>=j&&(g+=m.n.b+k.n.b+k.a.b-D,++f))}f>0&&(X+=g/f,++p)}p>0?(e.a=r*X/p,e.g=p):(e.a=0,e.g=0)}function vLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn;for(c=n.f.b,g=c.a,a=c.b,m=n.e.g,p=n.e.f,kg(n.e,c.a,c.b),X=g/m,tn=a/p,l=new ne(yT(n.e));l.e!=l.i.gc();)h=u(ue(l),135),eu(h,h.i*X),tu(h,h.j*tn);for(O=new ne(mD(n.e));O.e!=O.i.gc();)P=u(ue(O),123),D=P.i,_=P.j,D>0&&eu(P,D*X),_>0&&tu(P,_*tn);for(o5(n.b,new qwn),e=new Z,f=new sd(new Ua(n.c).a);f.b;)s=Ab(f),i=u(s.ld(),74),t=u(s.md(),407).a,r=Xg(i,!1,!1),d=NFn(Fh(i),Jk(r),t),ay(d,r),A=zFn(i),A&&qr(e,A,0)==-1&&(Bn(e.c,A),yOn(A,(oe(d.b!=0),u(d.a.a.c,8)),t));for(j=new sd(new Ua(n.d).a);j.b;)k=Ab(j),i=u(k.ld(),74),t=u(k.md(),407).a,r=Xg(i,!1,!1),d=NFn(ca(i),Sk(Jk(r)),t),d=Sk(d),ay(d,r),A=XFn(i),A&&qr(e,A,0)==-1&&(Bn(e.c,A),yOn(A,(oe(d.b!=0),u(d.c.b.c,8)),t))}function HGn(n,e,t,i){var r,c,s,f,h;return f=new ntn(e),hCe(f,i),r=!0,n&&n.pf((He(),_d))&&(c=u(n.of((He(),_d)),88),r=c==(ci(),Jf)||c==Kr||c==Xr),_qn(f,!1),nu(f.e.Rf(),new LV(f,!1,r)),AD(f,f.f,(wf(),bc),(en(),Xn)),AD(f,f.f,wc,ae),AD(f,f.g,bc,Wn),AD(f,f.g,wc,Zn),wBn(f,Xn),wBn(f,ae),mOn(f,Zn),mOn(f,Wn),Kw(),s=f.A.Hc((go(),Q0))&&f.B.Hc((io(),cE))?NKn(f):null,s&&vhe(f.a,s),gLe(f),p7e(f),m7e(f),qAe(f),pPe(f),U7e(f),kx(f,Xn),kx(f,ae),VSe(f),pOe(f),t&&(Y5e(f),G7e(f),kx(f,Zn),kx(f,Wn),h=f.B.Hc((io(),P9)),N_n(f,h,Xn),N_n(f,h,ae),D_n(f,h,Zn),D_n(f,h,Wn),Ut(new Cn(null,new On(new ol(f.i),0)),new awn),Ut(ut(new Cn(null,OW(f.r).a.oc()),new dwn),new bwn),cye(f),f.e.Pf(f.o),Ut(new Cn(null,OW(f.r).a.oc()),new wwn)),f.o}function kLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(l=Pt,i=new M(n.a.b);i.a<i.c.c.length;)e=u(E(i),86),l=y.Math.min(l,e.d.f.g.c+e.e.a);for(p=new Mt,s=new M(n.a.a);s.a<s.c.c.length;)c=u(E(s),194),c.i=l,c.e==0&&xt(p,c,p.c.b,p.c);for(;p.b!=0;){for(c=u(p.b==0?null:(oe(p.b!=0),Xo(p,p.a.a)),194),r=c.f.g.c,g=c.a.a.ec().Kc();g.Ob();)a=u(g.Pb(),86),k=c.i+a.e.a,a.d.g||a.g.c<k?a.o=k:a.o=a.g.c;for(r-=c.f.o,c.b+=r,n.c==(ci(),Xr)||n.c==Wf?c.c+=r:c.c-=r,d=c.a.a.ec().Kc();d.Ob();)for(a=u(d.Pb(),86),h=a.f.Kc();h.Ob();)f=u(h.Pb(),86),hl(n.c)?m=n.f.yf(a,f):m=n.f.zf(a,f),f.d.i=y.Math.max(f.d.i,a.o+a.g.b+m-f.e.a),f.k||(f.d.i=y.Math.max(f.d.i,f.g.c-f.e.a)),--f.d.e,f.d.e==0&&Re(p,f.d)}for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),e.g.c=e.o}function yLe(n){var e,t,i,r,c,s,f,h;switch(f=n.b,e=n.a,u(v(n,(aS(),Hun)),435).g){case 0:Yt(f,new Ce(new Cwn));break;case 1:default:Yt(f,new Ce(new Swn))}switch(u(v(n,Fun),436).g){case 1:Yt(f,new KU),Yt(f,new Pwn),Yt(f,new kwn);break;case 0:default:Yt(f,new KU),Yt(f,new Mwn)}switch(u(v(n,Uun),257).g){case 0:h=new Own;break;case 1:h=new $A;break;case 2:h=new mE;break;case 3:h=new DA;break;case 5:h=new Z3(new mE);break;case 4:h=new Z3(new $A);break;case 7:h=new qz(new Z3(new $A),new Z3(new mE));break;case 8:h=new qz(new Z3(new DA),new Z3(new mE));break;case 6:default:h=new Z3(new DA)}for(s=new M(f);s.a<s.c.c.length;){for(c=u(E(s),176),i=0,r=0,t=new bi(Y(i),Y(r));tIe(e,c,i,r);)t=u(h.Ve(t,c),42),i=u(t.a,17).a,r=u(t.b,17).a;YSe(e,c,i,r)}}function qGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;for(t.Ug(pVn,1),g=(pt(),tq),n.a==(a5(),KO)&&(g=gln),a=0,Ln(),e.jd(new tL(g)),c=e.gc(),f=e.fd(e.gc()),l=!0;l&&f.Sb();)O=u(f.Ub(),39),u(v(O,g),17).a==0?--c:l=!1;if(X=e.kd(0,c),s=new $N(X),X=e.kd(c,e.gc()),h=new $N(X),s.b==0)for(k=ge(h,0);k.b!=k.d.c;)m=u(be(k),39),U(m,c9,Y(a++));else for(d=s.b,_=ge(s,0);_.b!=_.d.c;){for(D=u(be(_),39),U(D,c9,Y(a++)),i=R$(D),qGn(n,i,t.eh(1/d|0)),ud(i,_W(new tL(c9))),p=new Mt,A=ge(i,0);A.b!=A.d.c;)for(O=u(be(A),39),P=ge(D.d,0);P.b!=P.d.c;)j=u(be(P),65),j.c==O&&xt(p,j,p.c.b,p.c);for(vo(D.d),Ki(D.d,p),f=ge(h,h.b),r=D.d.b,l=!0;0<r&&l&&f.Sb();)O=u(f.Ub(),39),u(v(O,g),17).a==0?(U(O,c9,Y(a++)),--r,f.Qb()):l=!1}t.Vg()}function jLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(d=$(B(z(n,(sa(),yq)))),on(un(z(n,Qln)))&&(a=u(z(n,(Cg(),L2)),27),c=u(N(HW(u(N((!a.e&&(a.e=new Dn(Vt,a,7,4)),a.e),(!a.e&&(a.e=new Dn(Vt,a,7,4)),a.e).i-1),74)),0),27),i=u(N(HW(u(N((!a.e&&(a.e=new Dn(Vt,a,7,4)),a.e),0),74)),0),27),s=new V(c.i+c.g/2,c.j+c.f/2),r=new V(i.i+i.g/2,i.j+i.f/2),t=d,t<=0&&(t+=Md),g=y.Math.acos((s.a*r.a+s.b*r.b)/(y.Math.sqrt(s.a*s.a+s.b*s.b)*y.Math.sqrt(r.a*r.a+r.b*r.b))),g<=0&&(g+=Md),e=y.Math.atan2(s.b,s.a),e<=0&&(e+=Md),d=Ern-(e-t+g/2)),h=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));h.e!=h.i.gc();)f=u(ue(h),27),l=new V(f.i+f.g/2,f.j+f.f/2),p=l.a*y.Math.cos(d)-l.b*y.Math.sin(d),l.b=l.a*y.Math.sin(d)+l.b*y.Math.cos(d),l.a=p,Bo(f,l.a-f.g/2,l.b-f.f/2)}function ELe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(e.Ug("Inverted port preprocessing",1),a=n.b,l=new xi(a,0),t=null,A=new Z;l.b<l.d.gc();){for(O=t,t=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),30)),p=new M(A);p.a<p.c.c.length;)d=u(E(p),10),$i(d,O);for(A.c.length=0,m=new M(t.a);m.a<m.c.c.length;)if(d=u(E(m),10),d.k==(Vn(),Xt)&&mg(u(v(d,(cn(),_t)),101))){for(P=gen(d,(gr(),Vu),(en(),Zn)).Kc();P.Ob();)for(k=u(P.Pb(),12),h=k.e,f=u(Rf(h,F(O_,rB,18,h.c.length,0,1)),482),r=f,c=0,s=r.length;c<s;++c)i=r[c],zIe(n,k,i,A);for(j=gen(d,Jc,Wn).Kc();j.Ob();)for(k=u(j.Pb(),12),h=k.g,f=u(Rf(h,F(O_,rB,18,h.c.length,0,1)),482),r=f,c=0,s=r.length;c<s;++c)i=r[c],GIe(n,k,i,A)}}for(g=new M(A);g.a<g.c.c.length;)d=u(E(g),10),$i(d,t);e.Vg()}function JR(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m,k,j,P,O,A;for(g=null,i==(Eb(),Ta)?g=e:i==O2&&(g=t),k=g.a.ec().Kc();k.Ob();){for(m=u(k.Pb(),12),j=cc(S(C(Ei,1),J,8,0,[m.i.n,m.n,m.a])).b,A=new ni,f=new ni,l=new Lf(m.b);tc(l.a)||tc(l.b);)if(h=u(tc(l.a)?E(l.a):E(l.b),18),on(un(v(h,(W(),zf))))==r&&qr(c,h,0)!=-1){if(h.d==m?P=h.c:P=h.d,O=cc(S(C(Ei,1),J,8,0,[P.i.n,P.n,P.a])).b,y.Math.abs(O-j)<.2)continue;O<j?e.a._b(P)?fi(A,new bi(Ta,h)):fi(A,new bi(O2,h)):e.a._b(P)?fi(f,new bi(Ta,h)):fi(f,new bi(O2,h))}if(A.a.gc()>1)for(p=new Gen(m,A,i),qi(A,new QMn(n,p)),Bn(s.c,p),d=A.a.ec().Kc();d.Ob();)a=u(d.Pb(),42),du(c,a.b);if(f.a.gc()>1)for(p=new Gen(m,f,i),qi(f,new YMn(n,p)),Bn(s.c,p),d=f.a.ec().Kc();d.Ob();)a=u(d.Pb(),42),du(c,a.b)}}function MLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(k=n.n,j=n.o,g=n.d,d=$(B(r0(n,(cn(),PH)))),e){for(a=d*(e.gc()-1),p=0,h=e.Kc();h.Ob();)s=u(h.Pb(),10),a+=s.o.a,p=y.Math.max(p,s.o.b);for(P=k.a-(a-j.a)/2,c=k.b-g.d+p,i=j.a/(e.gc()+1),r=i,f=e.Kc();f.Ob();)s=u(f.Pb(),10),s.n.a=P,s.n.b=c-s.o.b,P+=s.o.a+d,l=QHn(s),l.n.a=s.o.a/2-l.a.a,l.n.b=s.o.b,m=u(v(s,(W(),tO)),12),m.e.c.length+m.g.c.length==1&&(m.n.a=r-m.a.a,m.n.b=0,ic(m,n)),r+=i}if(t){for(a=d*(t.gc()-1),p=0,h=t.Kc();h.Ob();)s=u(h.Pb(),10),a+=s.o.a,p=y.Math.max(p,s.o.b);for(P=k.a-(a-j.a)/2,c=k.b+j.b+g.a-p,i=j.a/(t.gc()+1),r=i,f=t.Kc();f.Ob();)s=u(f.Pb(),10),s.n.a=P,s.n.b=c,P+=s.o.a+d,l=QHn(s),l.n.a=s.o.a/2-l.a.a,l.n.b=0,m=u(v(s,(W(),tO)),12),m.e.c.length+m.g.c.length==1&&(m.n.a=r-m.a.a,m.n.b=j.b,ic(m,n)),r+=i}}function TLe(n,e){var t,i,r,c,s,f;if(u(v(e,(W(),Hc)),21).Hc((pr(),cs))){for(f=new M(e.a);f.a<f.c.c.length;)c=u(E(f),10),c.k==(Vn(),Xt)&&(r=u(v(c,(cn(),pO)),140),n.c=y.Math.min(n.c,c.n.a-r.b),n.a=y.Math.max(n.a,c.n.a+c.o.a+r.c),n.d=y.Math.min(n.d,c.n.b-r.d),n.b=y.Math.max(n.b,c.n.b+c.o.b+r.a));for(s=new M(e.a);s.a<s.c.c.length;)if(c=u(E(s),10),c.k!=(Vn(),Xt))switch(c.k.g){case 2:if(i=u(v(c,(cn(),ou)),171),i==(Yo(),ja)){c.n.a=n.c-10,eFn(c,new pgn).Jb(new Y9n(c));break}if(i==x0){c.n.a=n.a+10,eFn(c,new mgn).Jb(new Z9n(c));break}if(t=u(v(c,Ad),311),t==(vl(),k2)){dGn(c).Jb(new n7n(c)),c.n.b=n.d-10;break}if(t==E3){dGn(c).Jb(new e7n(c)),c.n.b=n.b+10;break}break;default:throw T(new Gn("The node type "+c.k+" is not supported by the "+kDe))}}}function CLe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;for(h=new V(i.i+i.g/2,i.j+i.f/2),p=hGn(i),m=u(z(e,(cn(),_t)),101),j=u(z(i,Mv),64),ITn(lBn(i),F0)||(i.i==0&&i.j==0?k=0:k=Fye(i,j),ht(i,F0,k)),l=new V(e.g,e.f),r=py(i,m,j,p,l,h,new V(i.g,i.f),u(v(t,Lo),88),t),U(r,(W(),st),i),c=u(sn(r.j,0),12),nfe(c,UPe(i)),U(r,_0,(zu(),yn(Aa))),d=u(z(e,_0),181).Hc(Rl),f=new ne((!i.n&&(i.n=new q(Sr,i,1,7)),i.n));f.e!=f.i.gc();)if(s=u(ue(f),135),!on(un(z(s,Rd)))&&s.a&&(g=ex(s),nn(c.f,g),!d))switch(a=0,K6(u(z(e,_0),21))&&(a=Onn(new V(s.i,s.j),new V(s.g,s.f),new V(i.g,i.f),0,j)),j.g){case 2:case 4:g.o.a=a;break;case 1:case 3:g.o.b=a}U(r,Cv,B(z(St(e),Cv))),U(r,Sv,B(z(St(e),Sv))),U(r,q0,B(z(St(e),q0))),nn(t.a,r),Ve(n.a,i,r)}function SLe(n,e,t,i,r,c){var s,f,h,l,a,d;for(l=new Ic,Ur(l,e),gi(l,u(z(e,(cn(),Mv)),64)),U(l,(W(),st),e),ic(l,t),d=l.o,d.a=e.g,d.b=e.f,a=l.n,a.a=e.i,a.b=e.j,Ve(n.a,e,l),s=Ag(_r(rc(new Cn(null,(!e.e&&(e.e=new Dn(Vt,e,7,4)),new On(e.e,16))),new j0n),new k0n),new q9n(e)),s||(s=Ag(_r(rc(new Cn(null,(!e.d&&(e.d=new Dn(Vt,e,8,5)),new On(e.d,16))),new E0n),new y0n),new U9n(e))),s||(s=Ag(new Cn(null,(!e.e&&(e.e=new Dn(Vt,e,7,4)),new On(e.e,16))),new M0n)),U(l,kj,(_n(),!!s)),XOe(l,c,r,u(z(e,aw),8)),h=new ne((!e.n&&(e.n=new q(Sr,e,1,7)),e.n));h.e!=h.i.gc();)f=u(ue(h),135),!on(un(z(f,Rd)))&&f.a&&nn(l.f,ex(f));switch(r.g){case 2:case 1:(l.j==(en(),Xn)||l.j==ae)&&i.Fc((pr(),v2));break;case 4:case 3:(l.j==(en(),Zn)||l.j==Wn)&&i.Fc((pr(),v2))}return l}function PLe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn;for(A=0,m=0,p=0,g=1,O=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));O.e!=O.i.gc();)j=u(ue(O),27),g+=wl(new ie(ce(Sl(j).a.Kc(),new En))),jn=j.g,m=y.Math.max(m,jn),d=j.f,p=y.Math.max(p,d),A+=jn*d;for(k=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a).i,s=A+2*i*i*g*k,c=y.Math.sqrt(s),h=y.Math.max(c*t,m),f=y.Math.max(c/t,p),P=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));P.e!=P.i.gc();)j=u(ue(P),27),kn=r.b+(to(e,26)*V5+to(e,27)*W5)*(h-j.g),Fn=r.b+(to(e,26)*V5+to(e,27)*W5)*(f-j.f),eu(j,kn),tu(j,Fn);for(tn=h+(r.b+r.c),X=f+(r.d+r.a),_=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));_.e!=_.i.gc();)for(D=u(ue(_),27),a=new ie(ce(Sl(D).a.Kc(),new En));pe(a);)l=u(fe(a),74),L5(l)||NNe(l,e,tn,X);tn+=r.b+r.c,X+=r.d+r.a,qb(n,tn,X,!1,!0)}function ntn(n){var e;if(this.r=oge(new hwn,new lwn),this.b=new v5(u(Pe(lr),296)),this.p=new v5(u(Pe(lr),296)),this.i=new v5(u(Pe(vYn),296)),this.e=n,this.o=new rr(n.Mf()),this.D=n.Yf()||on(un(n.of((He(),zj)))),this.A=u(n.of((He(),Hd)),21),this.B=u(n.of(Sa),21),this.q=u(n.of(m9),101),this.u=u(n.of(W0),21),!Wye(this.u))throw T(new _l("Invalid port label placement: "+this.u));if(this.v=on(un(n.of(Fan))),this.j=u(n.of(F2),21),!MTe(this.j))throw T(new _l("Invalid node label placement: "+this.j));this.n=u(C5(n,San),107),this.k=$(B(C5(n,iA))),this.d=$(B(C5(n,Gan))),this.w=$(B(C5(n,Jan))),this.s=$(B(C5(n,zan))),this.t=$(B(C5(n,Xan))),this.C=u(C5(n,Van),140),this.c=2*this.d,e=!this.B.Hc((io(),rE)),this.f=new y5(0,e,0),this.g=new y5(1,e,0),mL(this.f,(wf(),Wc),this.g)}function ILe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(e.Ug("Comment pre-processing",1),t=0,h=new M(n.a);h.a<h.c.c.length;)if(f=u(E(h),10),on(un(v(f,(cn(),_8))))){for(++t,r=0,i=null,l=null,m=new M(f.j);m.a<m.c.c.length;)g=u(E(m),12),r+=g.e.c.length+g.g.c.length,g.e.c.length==1&&(i=u(sn(g.e,0),18),l=i.c),g.g.c.length==1&&(i=u(sn(g.g,0),18),l=i.d);if(r==1&&l.e.c.length+l.g.c.length==1&&!on(un(v(l.i,_8))))oNe(f,i,l,l.i),_6(h);else{for(P=new Z,p=new M(f.j);p.a<p.c.c.length;){for(g=u(E(p),12),d=new M(g.g);d.a<d.c.c.length;)a=u(E(d),18),a.d.g.c.length==0||Bn(P.c,a);for(s=new M(g.e);s.a<s.c.c.length;)c=u(E(s),18),c.c.e.c.length==0||Bn(P.c,c)}for(j=new M(P);j.a<j.c.c.length;)k=u(E(j),18),Hb(k,!0)}}e._g()&&e.bh("Found "+t+" comment boxes"),e.Vg()}function etn(n,e){$Pn();var t,i,r,c,s,f,h;if(this.a=new LX(this),this.b=n,this.c=e,this.f=sD(Nr((Lu(),zi),e)),this.f.dc())if((f=DZ(zi,n))==e)for(this.e=!0,this.d=new Z,this.f=new lvn,this.f.Fc(Pd),u(qS(fk(zi,jo(n)),""),29)==n&&this.f.Fc(R6(zi,jo(n))),r=PR(zi,n).Kc();r.Ob();)switch(i=u(r.Pb(),179),vb(Nr(zi,i))){case 4:{this.d.Fc(i);break}case 5:{this.f.Gc(sD(Nr(zi,i)));break}}else if(dr(),u(e,69).xk())for(this.e=!0,this.f=null,this.d=new Z,s=0,h=(n.i==null&&bh(n),n.i).length;s<h;++s)for(i=(t=(n.i==null&&bh(n),n.i),s>=0&&s<t.length?t[s]:null),c=$p(Nr(zi,i));c;c=$p(Nr(zi,c)))c==e&&this.d.Fc(i);else vb(Nr(zi,e))==1&&f?(this.f=null,this.d=(n3(),tse)):(this.f=null,this.e=!0,this.d=(Ln(),new nL(e)));else this.e=vb(Nr(zi,e))==5,this.f.Fb(TU)&&(this.f=TU)}function UGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;for(t=0,i=o7e(n,e),g=n.s,p=n.t,l=u(u(ot(n.r,e),21),87).Kc();l.Ob();)if(h=u(l.Pb(),117),!(!h.c||h.c.d.c.length<=0)){switch(m=h.b.Mf(),f=h.b.pf((He(),oo))?$(B(h.b.of(oo))):0,a=h.c,d=a.i,d.b=(s=a.n,a.e.a+s.b+s.c),d.a=(c=a.n,a.e.b+c.d+c.a),e.g){case 1:d.c=h.a?(m.a-d.b)/2:m.a+g,d.d=m.b+f+i,df(a,(Uu(),ma)),uh(a,(bu(),kf));break;case 3:d.c=h.a?(m.a-d.b)/2:m.a+g,d.d=-f-i-d.a,df(a,(Uu(),ma)),uh(a,(bu(),Xs));break;case 2:d.c=-f-i-d.b,h.a?(r=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(m.b-r)/2):d.d=m.b+p,df(a,(Uu(),zs)),uh(a,(bu(),va));break;case 4:d.c=m.a+f+i,h.a?(r=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(m.b-r)/2):d.d=m.b+p,df(a,(Uu(),Th)),uh(a,(bu(),va))}(e==(en(),Xn)||e==ae)&&(t=y.Math.max(t,d.a))}t>0&&(u(Mr(n.b,e),127).a.b=t)}function OLe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k;if(g=$(B(v(n,(cn(),Cv)))),p=$(B(v(n,Sv))),d=$(B(v(n,q0))),f=n.o,c=u(sn(n.j,0),12),s=c.n,k=Xje(c,d),!!k){if(e.Hc((zu(),Rl)))switch(u(v(n,(W(),gc)),64).g){case 1:k.c=(f.a-k.b)/2-s.a,k.d=p;break;case 3:k.c=(f.a-k.b)/2-s.a,k.d=-p-k.a;break;case 2:t&&c.e.c.length==0&&c.g.c.length==0?(a=i?k.a:u(sn(c.f,0),72).o.b,k.d=(f.b-a)/2-s.b):k.d=f.b+p-s.b,k.c=-g-k.b;break;case 4:t&&c.e.c.length==0&&c.g.c.length==0?(a=i?k.a:u(sn(c.f,0),72).o.b,k.d=(f.b-a)/2-s.b):k.d=f.b+p-s.b,k.c=g}else if(e.Hc(Aa))switch(u(v(n,(W(),gc)),64).g){case 1:case 3:k.c=s.a+g;break;case 2:case 4:t&&!c.c?(a=i?k.a:u(sn(c.f,0),72).o.b,k.d=(f.b-a)/2-s.b):k.d=s.b+p}for(r=k.d,l=new M(c.f);l.a<l.c.c.length;)h=u(E(l),72),m=h.n,m.a=k.c,m.b=r,r+=h.o.b+d}}function ALe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn;for(X=new Z,m=new M(n.b);m.a<m.c.c.length;)for(p=u(E(m),30),P=new M(p.a);P.a<P.c.c.length;)if(k=u(E(P),10),k.k==(Vn(),Zt)&&kt(k,(W(),cO))){for(O=null,D=null,A=null,kn=new M(k.j);kn.a<kn.c.c.length;)switch(jn=u(E(kn),12),jn.j.g){case 4:O=jn;break;case 2:D=jn;break;default:A=jn}for(_=u(sn(A.g,0),18),a=new UE(_.a),l=new rr(A.n),it(l,k.n),d=ge(a,0),_7(d,l),tn=Sk(_.a),g=new rr(A.n),it(g,k.n),xt(tn,g,tn.c.b,tn.c),Fn=u(v(k,cO),10),Kn=u(sn(Fn.j,0),12),h=u(Rf(O.e,F(O_,rB,18,0,0,1)),482),i=h,c=0,f=i.length;c<f;++c)e=i[c],Oi(e,Kn),J$(e.a,e.a.b,a);for(h=hh(D.g),t=h,r=0,s=t.length;r<s;++r)e=t[r],Zi(e,Kn),J$(e.a,0,tn);Zi(_,null),Oi(_,null),Bn(X.c,k)}for(j=new M(X);j.a<j.c.c.length;)k=u(E(j),10),$i(k,null)}function LLe(){Ge(dE,new F6n),Ge(SA,new Q6n),Ge(bE,new s5n),Ge(cbn,new v5n),Ge(fn,new E5n),Ge(C(Ru,1),new M5n),Ge(zt,new T5n),Ge(p3,new C5n),Ge(fn,new I6n),Ge(fn,new O6n),Ge(fn,new A6n),Ge(si,new L6n),Ge(fn,new N6n),Ge(rs,new D6n),Ge(rs,new $6n),Ge(fn,new x6n),Ge(ov,new K6n),Ge(fn,new B6n),Ge(fn,new _6n),Ge(fn,new H6n),Ge(fn,new q6n),Ge(fn,new U6n),Ge(C(Ru,1),new G6n),Ge(fn,new z6n),Ge(fn,new X6n),Ge(rs,new V6n),Ge(rs,new W6n),Ge(fn,new J6n),Ge(Gi,new Y6n),Ge(fn,new Z6n),Ge(nw,new n5n),Ge(fn,new e5n),Ge(fn,new t5n),Ge(fn,new i5n),Ge(fn,new r5n),Ge(rs,new c5n),Ge(rs,new u5n),Ge(fn,new o5n),Ge(fn,new f5n),Ge(fn,new h5n),Ge(fn,new l5n),Ge(fn,new a5n),Ge(fn,new d5n),Ge(ew,new b5n),Ge(fn,new w5n),Ge(fn,new g5n),Ge(fn,new p5n),Ge(ew,new m5n),Ge(nw,new k5n),Ge(fn,new y5n),Ge(Gi,new j5n)}function GGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;switch(a=new Tu,n.a.g){case 3:g=u(v(e.e,(W(),Ld)),15),p=u(v(e.j,Ld),15),m=u(v(e.f,Ld),15),t=u(v(e.e,M2),15),i=u(v(e.j,M2),15),r=u(v(e.f,M2),15),s=new Z,hi(s,g),p.Jc(new Fpn),hi(s,Qo(p)),hi(s,m),c=new Z,hi(c,t),hi(c,Qo(i)),hi(c,r),U(e.f,Ld,s),U(e.f,M2,c),U(e.f,ofn,e.f),U(e.e,Ld,null),U(e.e,M2,null),U(e.j,Ld,null),U(e.j,M2,null);break;case 1:Ki(a,e.e.a),Re(a,e.i.n),Ki(a,Qo(e.j.a)),Re(a,e.a.n),Ki(a,e.f.a);break;default:Ki(a,e.e.a),Ki(a,Qo(e.j.a)),Ki(a,e.f.a)}vo(e.f.a),Ki(e.f.a,a),Zi(e.f,e.e.c),f=u(v(e.e,(cn(),Rr)),75),l=u(v(e.j,Rr),75),h=u(v(e.f,Rr),75),(f||l||h)&&(d=new Tu,PW(d,h),PW(d,l),PW(d,f),U(e.f,Rr,d)),Zi(e.j,null),Oi(e.j,null),Zi(e.e,null),Oi(e.e,null),$i(e.a,null),$i(e.i,null),e.g&&GGn(n,e.g)}function zGn(){zGn=R;var n,e,t;for(new Nk(1,0),new Nk(10,0),new Nk(0,0),mQn=F(JF,J,247,11,0,1),Od=F(fs,gh,28,100,15,1),yun=S(C(Ii,1),Cr,28,15,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,48828125,244140625,1220703125,6103515625,30517578125,152587890625,762939453125,3814697265625,19073486328125,95367431640625,476837158203125,0x878678326eac9]),jun=F(ye,_e,28,yun.length,15,1),Eun=S(C(Ii,1),Cr,28,15,[1,10,100,d1,1e4,IK,1e6,1e7,1e8,QS,1e10,1e11,1e12,1e13,1e14,1e15,1e16]),Mun=F(ye,_e,28,Eun.length,15,1),Tun=F(JF,J,247,11,0,1),n=0;n<Tun.length;n++)mQn[n]=new Nk(n,0),Tun[n]=new Nk(0,n),Od[n]=48;for(;n<Od.length;n++)Od[n]=48;for(t=0;t<jun.length;t++)jun[t]=Snn(yun[t]);for(e=0;e<Mun.length;e++)Mun[e]=Snn(Eun[e]);C4()}function NLe(){function n(){this.obj=this.createObject()}return n.prototype.createObject=function(e){return Object.create(null)},n.prototype.get=function(e){return this.obj[e]},n.prototype.set=function(e,t){this.obj[e]=t},n.prototype[LK]=function(e){delete this.obj[e]},n.prototype.keys=function(){return Object.getOwnPropertyNames(this.obj)},n.prototype.entries=function(){var e=this.keys(),t=this,i=0;return{next:function(){if(i>=e.length)return{done:!0};var r=e[i++];return{value:[r,t.get(r)],done:!1}}}},SSe()||(n.prototype.createObject=function(){return{}},n.prototype.get=function(e){return this.obj[":"+e]},n.prototype.set=function(e,t){this.obj[":"+e]=t},n.prototype[LK]=function(e){delete this.obj[":"+e]},n.prototype.keys=function(){var e=[];for(var t in this.obj)t.charCodeAt(0)==58&&e.push(t.substring(1));return e}),n}function pt(){pt=R,r9=new lt(Xtn),new Lt("DEPTH",Y(0)),tq=new Lt("FAN",Y(0)),gln=new Lt(bVn,Y(0)),Ca=new Lt("ROOT",(_n(),!1)),cq=new Lt("LEFTNEIGHBOR",null),dre=new Lt("RIGHTNEIGHBOR",null),$O=new Lt("LEFTSIBLING",null),uq=new Lt("RIGHTSIBLING",null),eq=new Lt("DUMMY",!1),new Lt("LEVEL",Y(0)),vln=new Lt("REMOVABLE_EDGES",new Mt),Dj=new Lt("XCOOR",Y(0)),$j=new Lt("YCOOR",Y(0)),xO=new Lt("LEVELHEIGHT",0),jf=new Lt("LEVELMIN",0),Js=new Lt("LEVELMAX",0),iq=new Lt("GRAPH_XMIN",0),rq=new Lt("GRAPH_YMIN",0),pln=new Lt("GRAPH_XMAX",0),mln=new Lt("GRAPH_YMAX",0),wln=new Lt("COMPACT_LEVEL_ASCENSION",!1),nq=new Lt("COMPACT_CONSTRAINTS",new Z),i9=new Lt("ID",""),c9=new Lt("POSITION",Y(0)),j1=new Lt("PRELIM",0),Lv=new Lt("MODIFIER",0),Av=new lt(CXn),Nj=new lt(SXn)}function DLe(n){$en();var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(n==null)return null;if(d=n.length*8,d==0)return"";for(f=d%24,p=d/24|0,g=f!=0?p+1:p,c=null,c=F(fs,gh,28,g*4,15,1),l=0,a=0,e=0,t=0,i=0,s=0,r=0,h=0;h<p;h++)e=n[r++],t=n[r++],i=n[r++],a=(t&15)<<24>>24,l=(e&3)<<24>>24,m=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,k=t&-128?(t>>4^240)<<24>>24:t>>4<<24>>24,j=i&-128?(i>>6^252)<<24>>24:i>>6<<24>>24,c[s++]=A1[m],c[s++]=A1[k|l<<4],c[s++]=A1[a<<2|j],c[s++]=A1[i&63];return f==8?(e=n[r],l=(e&3)<<24>>24,m=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,c[s++]=A1[m],c[s++]=A1[l<<4],c[s++]=61,c[s++]=61):f==16&&(e=n[r],t=n[r+1],a=(t&15)<<24>>24,l=(e&3)<<24>>24,m=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,k=t&-128?(t>>4^240)<<24>>24:t>>4<<24>>24,c[s++]=A1[m],c[s++]=A1[k|l<<4],c[s++]=A1[a<<2],c[s++]=61),ws(c,0,c.length)}function $Le(n,e){var t,i,r,c,s,f,h;if(n.e==0&&n.p>0&&(n.p=-(n.p-1)),n.p>Wi&&jJ(e,n.p-la),s=e.q.getDate(),V7(e,1),n.k>=0&&E2e(e,n.k),n.c>=0?V7(e,n.c):n.k>=0?(h=new YQ(e.q.getFullYear()-la,e.q.getMonth(),35),i=35-h.q.getDate(),V7(e,y.Math.min(i,s))):V7(e,s),n.f<0&&(n.f=e.q.getHours()),n.b>0&&n.f<12&&(n.f+=12),b1e(e,n.f==24&&n.g?0:n.f),n.j>=0&&cme(e,n.j),n.n>=0&&pme(e,n.n),n.i>=0&&JTn(e,nr(er(zk(vc(e.q.getTime()),d1),d1),n.i)),n.a&&(r=new WE,jJ(r,r.q.getFullYear()-la-80),DL(vc(e.q.getTime()),vc(r.q.getTime()))&&jJ(e,r.q.getFullYear()-la+100)),n.d>=0){if(n.c==-1)t=(7+n.d-e.q.getDay())%7,t>3&&(t-=7),f=e.q.getMonth(),V7(e,e.q.getDate()+t),e.q.getMonth()!=f&&V7(e,e.q.getDate()+(t>0?-7:7));else if(e.q.getDay()!=n.d)return!1}return n.o>Wi&&(c=e.q.getTimezoneOffset(),JTn(e,nr(vc(e.q.getTime()),(n.o-c)*60*d1))),!0}function XGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(r=v(e,(W(),st)),!!L(r,207)){for(m=u(r,27),k=e.e,g=new rr(e.c),c=e.d,g.a+=c.b,g.b+=c.d,D=u(z(m,(cn(),kO)),181),Su(D,(io(),sA))&&(p=u(z(m,shn),107),Use(p,c.a),Yse(p,c.d),Gse(p,c.b),Qse(p,c.c)),t=new Z,a=new M(e.a);a.a<a.c.c.length;)for(h=u(E(a),10),L(v(h,st),207)?_Le(h,g):L(v(h,st),193)&&!k&&(i=u(v(h,st),123),O=DUn(e,h,i.g,i.f),Bo(i,O.a,O.b)),P=new M(h.j);P.a<P.c.c.length;)j=u(E(P),12),Ut(ut(new Cn(null,new On(j.g,16)),new G9n(h)),new z9n(t));if(k)for(P=new M(k.j);P.a<P.c.c.length;)j=u(E(P),12),Ut(ut(new Cn(null,new On(j.g,16)),new X9n(k)),new V9n(t));for(A=u(z(m,$l),223),f=new M(t);f.a<f.c.c.length;)s=u(E(f),18),tLe(s,A,g);for(HPe(e),l=new M(e.a);l.a<l.c.c.length;)h=u(E(l),10),d=h.e,d&&XGn(n,d)}}function VGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(!u(u(ot(n.r,e),21),87).dc()){if(s=u(Mr(n.b,e),127),h=s.i,f=s.n,a=kR(n,e),i=h.b-f.b-f.c,r=s.a.a,c=h.c+f.b,p=n.w,(a==(Kg(),Ia)||a==nE)&&u(u(ot(n.r,e),21),87).gc()==1&&(r=a==Ia?r-2*n.w:r,a=E9),i<r&&!n.B.Hc((io(),fA)))a==Ia?(p+=(i-r)/(u(u(ot(n.r,e),21),87).gc()+1),c+=p):p+=(i-r)/(u(u(ot(n.r,e),21),87).gc()-1);else switch(i<r&&(r=a==Ia?r-2*n.w:r,a=E9),a.g){case 3:c+=(i-r)/2;break;case 4:c+=i-r;break;case 0:t=(i-r)/(u(u(ot(n.r,e),21),87).gc()+1),p+=y.Math.max(0,t),c+=p;break;case 1:t=(i-r)/(u(u(ot(n.r,e),21),87).gc()-1),p+=y.Math.max(0,t)}for(g=u(u(ot(n.r,e),21),87).Kc();g.Ob();)d=u(g.Pb(),117),d.e.a=c+d.d.b,d.e.b=(l=d.b,l.pf((He(),oo))?l.ag()==(en(),Xn)?-l.Mf().b-$(B(l.of(oo))):$(B(l.of(oo))):l.ag()==(en(),Xn)?-l.Mf().b:0),c+=d.d.b+d.b.Mf().a+d.d.c+p}}function WGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(!u(u(ot(n.r,e),21),87).dc()){if(s=u(Mr(n.b,e),127),h=s.i,f=s.n,d=kR(n,e),i=h.a-f.d-f.a,r=s.a.b,c=h.d+f.d,m=n.w,l=n.o.a,(d==(Kg(),Ia)||d==nE)&&u(u(ot(n.r,e),21),87).gc()==1&&(r=d==Ia?r-2*n.w:r,d=E9),i<r&&!n.B.Hc((io(),fA)))d==Ia?(m+=(i-r)/(u(u(ot(n.r,e),21),87).gc()+1),c+=m):m+=(i-r)/(u(u(ot(n.r,e),21),87).gc()-1);else switch(i<r&&(r=d==Ia?r-2*n.w:r,d=E9),d.g){case 3:c+=(i-r)/2;break;case 4:c+=i-r;break;case 0:t=(i-r)/(u(u(ot(n.r,e),21),87).gc()+1),m+=y.Math.max(0,t),c+=m;break;case 1:t=(i-r)/(u(u(ot(n.r,e),21),87).gc()-1),m+=y.Math.max(0,t)}for(p=u(u(ot(n.r,e),21),87).Kc();p.Ob();)g=u(p.Pb(),117),g.e.a=(a=g.b,a.pf((He(),oo))?a.ag()==(en(),Wn)?-a.Mf().a-$(B(a.of(oo))):l+$(B(a.of(oo))):a.ag()==(en(),Wn)?-a.Mf().a:l),g.e.b=c+g.d.d,c+=g.d.d+g.b.Mf().b+g.d.a+m}}function xLe(n,e){var t,i,r,c,s;for(e.Ug("Processor determine the coords for each level",1),i=new Z,s=ge(n.b,0);s.b!=s.d.c;){for(r=u(be(s),39);u(v(r,(lc(),Ph)),17).a>i.c.length-1;)nn(i,new bi(i2,Mrn));t=u(v(r,Ph),17).a,hl(u(v(n,pw),88))?(r.e.a<$(B((Nn(t,i.c.length),u(i.c[t],42)).a))&&QA((Nn(t,i.c.length),u(i.c[t],42)),r.e.a),r.e.a+r.f.a>$(B((Nn(t,i.c.length),u(i.c[t],42)).b))&&YA((Nn(t,i.c.length),u(i.c[t],42)),r.e.a+r.f.a)):(r.e.b<$(B((Nn(t,i.c.length),u(i.c[t],42)).a))&&QA((Nn(t,i.c.length),u(i.c[t],42)),r.e.b),r.e.b+r.f.b>$(B((Nn(t,i.c.length),u(i.c[t],42)).b))&&YA((Nn(t,i.c.length),u(i.c[t],42)),r.e.b+r.f.b))}for(c=ge(n.b,0);c.b!=c.d.c;)r=u(be(c),39),t=u(v(r,(lc(),Ph)),17).a,U(r,(pt(),jf),B((Nn(t,i.c.length),u(i.c[t],42)).a)),U(r,Js,B((Nn(t,i.c.length),u(i.c[t],42)).b));e.Vg()}function RLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(n.o=$(B(v(n.i,(cn(),bw)))),n.f=$(B(v(n.i,Kd))),n.j=n.i.b.c.length,f=n.j-1,g=0,n.k=0,n.n=0,n.b=Af(F(Gi,J,17,n.j,0,1)),n.c=Af(F(si,J,345,n.j,7,1)),s=new M(n.i.b);s.a<s.c.c.length;){for(r=u(E(s),30),r.p=f,d=new M(r.a);d.a<d.c.c.length;)a=u(E(d),10),a.p=g,++g;--f}for(n.g=F(ye,_e,28,g,15,1),n.d=Wa(ye,[J,_e],[53,28],15,[g,3],2),n.p=new Z,n.q=new Z,e=0,n.e=0,c=new M(n.i.b);c.a<c.c.c.length;){for(r=u(E(c),30),f=r.p,i=0,k=0,h=r.a.c.length,l=0,d=new M(r.a);d.a<d.c.c.length;)a=u(E(d),10),g=a.p,n.g[g]=a.c.p,l+=a.o.b+n.o,t=wl(new ie(ce(ji(a).a.Kc(),new En))),m=wl(new ie(ce(Qt(a).a.Kc(),new En))),n.d[g][0]=m-t,n.d[g][1]=t,n.d[g][2]=m,i+=t,k+=m,t>0&&nn(n.q,a),nn(n.p,a);e-=i,p=h+e,l+=e*n.f,Go(n.b,f,Y(p)),Go(n.c,f,l),n.k=y.Math.max(n.k,p),n.n=y.Math.max(n.n,l),n.e+=e,e+=k}}function en(){en=R;var n;sc=new v7(Y5,0),Xn=new v7(eP,1),Zn=new v7(HK,2),ae=new v7(qK,3),Wn=new v7(UK,4),Yf=(Ln(),new im((n=u(of(lr),9),new _o(n,u(xs(n,n.length),9),0)))),ef=i1(yt(Xn,S(C(lr,1),Tc,64,0,[]))),os=i1(yt(Zn,S(C(lr,1),Tc,64,0,[]))),Do=i1(yt(ae,S(C(lr,1),Tc,64,0,[]))),Cs=i1(yt(Wn,S(C(lr,1),Tc,64,0,[]))),mu=i1(yt(Xn,S(C(lr,1),Tc,64,0,[ae]))),su=i1(yt(Zn,S(C(lr,1),Tc,64,0,[Wn]))),tf=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Wn]))),Wu=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Zn]))),$o=i1(yt(ae,S(C(lr,1),Tc,64,0,[Wn]))),ss=i1(yt(Zn,S(C(lr,1),Tc,64,0,[ae]))),Ju=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Zn,Wn]))),pu=i1(yt(Zn,S(C(lr,1),Tc,64,0,[ae,Wn]))),vu=i1(yt(Xn,S(C(lr,1),Tc,64,0,[ae,Wn]))),xu=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Zn,ae]))),Uc=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Zn,ae,Wn])))}function KLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn;for(e.Ug(XXn,1),k=new Z,X=new Z,l=new M(n.b);l.a<l.c.c.length;)for(h=u(E(l),30),P=-1,m=Q7(h.a),d=m,g=0,p=d.length;g<p;++g)if(a=d[g],++P,!!(a.k==(Vn(),Xt)&&mg(u(v(a,(cn(),_t)),101)))){for(Ep(u(v(a,(cn(),_t)),101))||kCe(a),U(a,(W(),uw),a),k.c.length=0,X.c.length=0,t=new Z,D=new Mt,S$(D,h1(a,(en(),Xn))),fzn(n,D,k,X,t),f=P,tn=a,c=new M(k);c.a<c.c.c.length;)i=u(E(c),10),u0(i,f,h),++P,U(i,uw,a),s=u(sn(i.j,0),12),j=u(v(s,st),12),on(un(v(j,pH)))||u(v(i,C3),15).Fc(tn);for(vo(D),A=h1(a,ae).Kc();A.Ob();)O=u(A.Pb(),12),xt(D,O,D.a,D.a.a);for(fzn(n,D,X,null,t),_=a,r=new M(X);r.a<r.c.c.length;)i=u(E(r),10),u0(i,++P,h),U(i,uw,a),s=u(sn(i.j,0),12),j=u(v(s,st),12),on(un(v(j,pH)))||u(v(_,C3),15).Fc(i);t.c.length==0||U(a,Jsn,t)}e.Vg()}function JGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;if(e.b!=0){for(p=new Mt,f=null,m=null,i=wi(y.Math.floor(y.Math.log(e.b)*y.Math.LOG10E)+1),h=0,A=ge(e,0);A.b!=A.d.c;)for(P=u(be(A),39),x(m)!==x(v(P,(pt(),i9)))&&(m=Ae(v(P,i9)),h=0),m!=null?f=m+qAn(h++,i):f=qAn(h++,i),U(P,i9,f),j=(r=ge(new sl(P).a.d,0),new sg(r));Q9(j.a);)k=u(be(j.a),65).c,xt(p,k,p.c.b,p.c),U(k,i9,f);for(g=new de,s=0;s<f.length-i;s++)for(O=ge(e,0);O.b!=O.d.c;)P=u(be(O),39),l=qo(Ae(v(P,(pt(),i9))),0,s+1),t=(l==null?Fr(wr(g.f,null)):h6(g.i,l))!=null?u(l==null?Fr(wr(g.f,null)):h6(g.i,l),17).a+1:1,Lr(g,l,Y(t));for(d=new sd(new Ua(g).a);d.b;)a=Ab(d),c=Y(ee(n.a,a.ld())!=null?u(ee(n.a,a.ld()),17).a:0),Lr(n.a,Ae(a.ld()),Y(u(a.md(),17).a+c.a)),c=u(ee(n.b,a.ld()),17),(!c||c.a<u(a.md(),17).a)&&Lr(n.b,Ae(a.ld()),u(a.md(),17));JGn(n,p)}}function BLe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(t=null,h=null,r=u(v(n.b,(cn(),EH)),349),r==(h5(),Ij)&&(t=new Z,h=new Z),f=new M(n.d);f.a<f.c.c.length;)if(s=u(E(f),105),c=s.i,!!c)switch(s.e.g){case 0:e=u(Y6(new dp(s.b)),64),r==Ij&&e==(en(),Xn)?Bn(t.c,s):r==Ij&&e==(en(),ae)?Bn(h.c,s):a7e(s,e);break;case 1:l=s.a.d.j,a=s.c.d.j,l==(en(),Xn)?Vl(s,Xn,(xf(),hv),s.a):a==Xn?Vl(s,Xn,(xf(),lv),s.c):l==ae?Vl(s,ae,(xf(),lv),s.a):a==ae&&Vl(s,ae,(xf(),hv),s.c);break;case 2:case 3:i=s.b,Su(i,(en(),Xn))?Su(i,ae)?Su(i,Wn)?Su(i,Zn)||Vl(s,Xn,(xf(),lv),s.c):Vl(s,Xn,(xf(),hv),s.a):Vl(s,Xn,(xf(),j3),null):Vl(s,ae,(xf(),j3),null);break;case 4:d=s.a.d.j,g=s.a.d.j,d==(en(),Xn)||g==Xn?Vl(s,ae,(xf(),j3),null):Vl(s,Xn,(xf(),j3),null)}t&&(t.c.length==0||qUn(t,(en(),Xn)),h.c.length==0||qUn(h,(en(),ae)))}function FLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(t.Ug("Breadth first model order layering",1),n.a=e,j=new Z,k=new M(n.a.a);k.a<k.c.c.length;)p=u(E(k),10),p.k==(Vn(),Xt)&&Bn(j.c,p);for(Ln(),Yt(j,new Upn),h=!0,r=new Nc(n.a),i=null,nn(n.a.b,r),m=new M(j);m.a<m.c.c.length;)if(p=u(E(m),10),h)$i(p,r),h=!1;else{for(f=new ie(ce(ji(p).a.Kc(),new En));pe(f);)c=u(fe(f),18),(c.c.i.k==(Vn(),Xt)&&c.c.i.c==r||c.c.i.k==Sc&&u(fe(new ie(ce(ji(c.c.i).a.Kc(),new En))),18).c.i.c==r)&&(i=new Nc(n.a),nn(n.a.b,i),r=new Nc(n.a),nn(n.a.b,r));for(s=new ie(ce(ji(p).a.Kc(),new En));pe(s);)c=u(fe(s),18),c.c.i.k==(Vn(),Sc)&&!c.c.i.c&&$i(c.c.i,i);$i(p,r)}for(n.a.a.c.length=0,P=new Z,d=new M(n.a.b);d.a<d.c.c.length;)l=u(E(d),30),l.a.c.length==0&&Bn(P.c,l);for(PY(n.a.b,P),g=0,a=new M(n.a.b);a.a<a.c.c.length;)l=u(E(a),30),l.p=g,++g;t.Vg()}function _Le(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(i=u(v(n,(W(),st)),27),m=u(v(n,(cn(),aO)),17).a,c=u(v(n,gO),17).a,ht(i,aO,Y(m)),ht(i,gO,Y(c)),eu(i,n.n.a+e.a),tu(i,n.n.b+e.b),(u(z(i,xd),181).gc()!=0||n.e||x(v(Hi(n),vO))===x((E5(),V8))&&uCn((c0(),(n.q?n.q:(Ln(),Ln(),Wh))._b(lw)?g=u(v(n,lw),203):g=u(v(Hi(n),U8),203),g)))&&(Pb(i,n.o.a),Sb(i,n.o.b)),d=new M(n.j);d.a<d.c.c.length;)l=u(E(d),12),k=v(l,st),L(k,193)&&(r=u(k,123),Bo(r,l.n.a,l.n.b),ht(r,Mv,l.j));for(p=u(v(n,hw),181).gc()!=0,h=new M(n.b);h.a<h.c.c.length;)s=u(E(h),72),(p||u(v(s,hw),181).gc()!=0)&&(t=u(v(s,st),135),kg(t,s.o.a,s.o.b),Bo(t,s.n.a,s.n.b));if(!K6(u(v(n,_0),21)))for(a=new M(n.j);a.a<a.c.c.length;)for(l=u(E(a),12),f=new M(l.f);f.a<f.c.c.length;)s=u(E(f),72),t=u(v(s,st),135),Pb(t,s.o.a),Sb(t,s.o.b),Bo(t,s.n.a,s.n.b)}function HLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn;for(e.Ug("Calculate Graph Size",1),e.dh(n,Nrn),d=i2,g=i2,l=Drn,a=Drn,k=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));k.e!=k.i.gc();)p=u(ue(k),27),O=p.i,A=p.j,kn=p.g,f=p.f,h=u(z(p,(He(),$v)),140),d=y.Math.min(d,O-h.b),g=y.Math.min(g,A-h.d),l=y.Math.max(l,O+kn+h.c),a=y.Math.max(a,A+f+h.a);for(P=u(z(n,(He(),M1)),107),j=new V(d-P.b,g-P.d),jn=l-d+(P.b+P.c),s=a-g+(P.d+P.a),on(un(z(n,(sa(),Xln))))&&(D=u(z(n,(Cg(),L2)),27),_=u(z(D,$v),140),X=D.i+D.g/2+(_.b+_.c)/2-j.a,tn=D.j+D.f/2+(_.d+_.a)/2-j.b,r=jn-X,c=s-tn,r<jn/2?(t=r-X,jn+=t,j.a-=t):(t=X-r,jn+=t),c<s/2?(i=c-tn,s+=i,j.b-=i):(i=tn-c,s+=i)),m=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));m.e!=m.i.gc();)p=u(ue(m),27),eu(p,p.i-j.a),tu(p,p.j-j.b);on(un(z(n,V0)))||(Pb(n,jn),Sb(n,s)),ht(n,K2,jn-(P.b+P.c)),ht(n,R2,s-(P.d+P.a)),e.dh(n,LP)}function qLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;if(n.e.a.$b(),n.f.a.$b(),n.c.c.length=0,n.i.c.length=0,n.g.a.$b(),e)for(s=new M(e.a);s.a<s.c.c.length;)for(c=u(E(s),10),d=h1(c,(en(),Zn)).Kc();d.Ob();)for(a=u(d.Pb(),12),fi(n.e,a),r=new M(a.g);r.a<r.c.c.length;)i=u(E(r),18),!fr(i)&&(nn(n.c,i),hBn(n,i),f=i.c.i.k,(f==(Vn(),Xt)||f==_c||f==Zt||f==Gf)&&nn(n.j,i),p=i.d,g=p.i.c,g==t?fi(n.f,p):g==e?fi(n.e,p):du(n.c,i));if(t)for(s=new M(t.a);s.a<s.c.c.length;){for(c=u(E(s),10),l=new M(c.j);l.a<l.c.c.length;)for(h=u(E(l),12),r=new M(h.g);r.a<r.c.c.length;)i=u(E(r),18),fr(i)&&fi(n.g,i);for(d=h1(c,(en(),Wn)).Kc();d.Ob();)for(a=u(d.Pb(),12),fi(n.f,a),r=new M(a.g);r.a<r.c.c.length;)i=u(E(r),18),!fr(i)&&(nn(n.c,i),hBn(n,i),f=i.c.i.k,(f==(Vn(),Xt)||f==_c||f==Zt||f==Gf)&&nn(n.j,i),p=i.d,g=p.i.c,g==t?fi(n.f,p):g==e?fi(n.e,p):du(n.c,i))}}function ULe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(t.Ug("Polyline edge routing",1),j=$(B(v(e,(cn(),Gfn)))),p=$(B(v(e,S2))),r=$(B(v(e,T2))),i=y.Math.min(1,r/p),A=0,h=0,e.b.c.length!=0&&(D=XHn(u(sn(e.b,0),30)),A=.4*i*D),f=new xi(e.b,0);f.b<f.d.gc();){for(s=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),30)),c=SM(s,Aj),c&&A>0&&(A-=p),zen(s,A),a=0,g=new M(s.a);g.a<g.c.c.length;){for(d=u(E(g),10),l=0,k=new ie(ce(Qt(d).a.Kc(),new En));pe(k);)m=u(fe(k),18),P=Of(m.c).b,O=Of(m.d).b,s==m.d.i.c&&!fr(m)&&(iMe(m,A,.4*i*y.Math.abs(P-O)),m.c.j==(en(),Wn)&&(P=0,O=0)),l=y.Math.max(l,y.Math.abs(O-P));switch(d.k.g){case 0:case 4:case 1:case 3:case 5:oAe(n,d,A,j)}a=y.Math.max(a,l)}f.b<f.d.gc()&&(D=XHn((oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),30))),a=y.Math.max(a,D),oe(f.b>0),f.a.Xb(f.c=--f.b)),h=.4*i*a,!c&&f.b<f.d.gc()&&(h+=p),A+=s.c.a+h}n.a.a.$b(),e.f.a=A,t.Vg()}function GLe(n){var e,t,i,r,c;switch(G7(n,TWn),(!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i+(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i){case 0:throw T(new Gn("The edge must have at least one source or target."));case 1:return(!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i==0?St(Gr(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))):St(Gr(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84)))}if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i==1&&(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i==1){if(r=Gr(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84)),c=Gr(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84)),St(r)==St(c))return St(r);if(r==St(c))return r;if(c==St(r))return c}for(i=$h(Eo(S(C(Ao,1),Rn,20,0,[(!n.b&&(n.b=new Dn(he,n,4,7)),n.b),(!n.c&&(n.c=new Dn(he,n,5,8)),n.c)]))),e=Gr(u(fe(i),84));pe(i);)if(t=Gr(u(fe(i),84)),t!=e&&!Yw(t,e)){if(St(t)==St(e))e=St(t);else if(e=mTe(e,t),!e)return null}return e}function ttn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;if(g=e.length,g>0&&(h=(zn(0,e.length),e.charCodeAt(0)),h!=64)){if(h==37&&(d=e.lastIndexOf("%"),l=!1,d!=0&&(d==g-1||(l=(zn(d+1,e.length),e.charCodeAt(d+1)==46))))){if(s=(Ri(1,d,e.length),e.substr(1,d-1)),A=Sn("%",s)?null:itn(s),i=0,l)try{i=So((zn(d+2,e.length+1),e.substr(d+2)),Wi,et)}catch(D){throw D=Ot(D),L(D,130)?(f=D,T(new eC(f))):T(D)}for(j=AQ(n.Gh());j.Ob();)if(m=IC(j),L(m,519)&&(r=u(m,598),O=r.d,(A==null?O==null:Sn(A,O))&&i--==0))return r;return null}if(a=e.lastIndexOf("."),p=a==-1?e:(Ri(0,a,e.length),e.substr(0,a)),t=0,a!=-1)try{t=So((zn(a+1,e.length+1),e.substr(a+1)),Wi,et)}catch(D){if(D=Ot(D),L(D,130))p=e;else throw T(D)}for(p=Sn("%",p)?null:itn(p),k=AQ(n.Gh());k.Ob();)if(m=IC(k),L(m,197)&&(c=u(m,197),P=c.xe(),(p==null?P==null:Sn(p,P))&&t--==0))return c;return null}return xGn(n,e)}function zLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(a=new de,h=new jb,i=new M(n.a.a.b);i.a<i.c.c.length;)if(e=u(E(i),60),l=Ig(e),l)Vc(a.f,l,e);else if(O=xp(e),O)for(c=new M(O.k);c.a<c.c.c.length;)r=u(E(c),18),In(h,r,e);for(t=new M(n.a.a.b);t.a<t.c.c.length;)if(e=u(E(t),60),l=Ig(e),l){for(f=new ie(ce(Qt(l).a.Kc(),new En));pe(f);)if(s=u(fe(f),18),!fr(s)&&(m=s.c,P=s.d,!((en(),mu).Hc(s.c.j)&&mu.Hc(s.d.j)))){if(k=u(ee(a,s.d.i),60),qs(Ns(Ls(Ds(As(new hs,0),100),n.c[e.a.d]),n.c[k.a.d])),m.j==Wn&&PIn((Au(),m))){for(g=u(ot(h,s),21).Kc();g.Ob();)if(d=u(g.Pb(),60),d.d.c<e.d.c){if(p=n.c[d.a.d],j=n.c[e.a.d],p==j)continue;qs(Ns(Ls(Ds(As(new hs,1),100),p),j))}}if(P.j==Zn&&IIn((Au(),P))){for(g=u(ot(h,s),21).Kc();g.Ob();)if(d=u(g.Pb(),60),d.d.c>e.d.c){if(p=n.c[e.a.d],j=n.c[d.a.d],p==j)continue;qs(Ns(Ls(Ds(As(new hs,1),100),p),j))}}}}}function XLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;if(g=u(u(ot(n.r,e),21),87),e==(en(),Zn)||e==Wn){UGn(n,e);return}for(c=e==Xn?(Lb(),tj):(Lb(),ij),D=e==Xn?(bu(),kf):(bu(),Xs),t=u(Mr(n.b,e),127),i=t.i,r=i.c+Lg(S(C(Ii,1),Cr,28,15,[t.n.b,n.C.b,n.k])),P=i.c+i.b-Lg(S(C(Ii,1),Cr,28,15,[t.n.c,n.C.c,n.k])),s=mz(DV(c),n.t),O=e==Xn?li:Pt,d=g.Kc();d.Ob();)l=u(d.Pb(),117),!(!l.c||l.c.d.c.length<=0)&&(j=l.b.Mf(),k=l.e,p=l.c,m=p.i,m.b=(h=p.n,p.e.a+h.b+h.c),m.a=(f=p.n,p.e.b+f.d+f.a),G7(D,Ntn),p.f=D,df(p,(Uu(),zs)),m.c=k.a-(m.b-j.a)/2,_=y.Math.min(r,k.a),X=y.Math.max(P,k.a+j.a),m.c<_?m.c=_:m.c+m.b>X&&(m.c=X-m.b),nn(s.d,new ZN(m,TY(s,m))),O=e==Xn?y.Math.max(O,k.b+l.b.Mf().b):y.Math.min(O,k.b));for(O+=e==Xn?n.t:-n.t,A=UY((s.e=O,s)),A>0&&(u(Mr(n.b,e),127).a.b=A),a=g.Kc();a.Ob();)l=u(a.Pb(),117),!(!l.c||l.c.d.c.length<=0)&&(m=l.c.i,m.c-=l.e.a,m.d-=l.e.b)}function VLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(e=new de,h=new ne(n);h.e!=h.i.gc();){for(f=u(ue(h),27),t=new ni,Ve(p_,f,t),p=new Kwn,r=u(Wr(new Cn(null,new wb(new ie(ce(ry(f).a.Kc(),new En)))),aIn(p,qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)])))),85),z$n(t,u(r.xc((_n(),!0)),16),new Bwn),i=u(Wr(ut(u(r.xc(!1),15).Lc(),new Fwn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),s=i.Kc();s.Ob();)c=u(s.Pb(),74),g=zFn(c),g&&(l=u(Fr(wr(e.f,g)),21),l||(l=gqn(g),Vc(e.f,g,l)),Ki(t,l));for(r=u(Wr(new Cn(null,new wb(new ie(ce(Sl(f).a.Kc(),new En)))),aIn(p,qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr])))),85),z$n(t,u(r.xc(!0),16),new _wn),i=u(Wr(ut(u(r.xc(!1),15).Lc(),new Hwn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),d=i.Kc();d.Ob();)a=u(d.Pb(),74),g=XFn(a),g&&(l=u(Fr(wr(e.f,g)),21),l||(l=gqn(g),Vc(e.f,g,l)),Ki(t,l))}}function WLe(n,e){KR();var t,i,r,c,s,f,h,l,a,d,g,p,m,k;if(h=Ec(n,0)<0,h&&(n=n1(n)),Ec(n,0)==0)switch(e){case 0:return"0";case 1:return B4;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return p=new R1,e<0?p.a+="0E+":p.a+="0E",p.a+=e==Wi?"2147483648":""+-e,p.a}a=18,d=F(fs,gh,28,a+1,15,1),t=a,k=n;do l=k,k=zk(k,10),d[--t]=Se(nr(48,bs(l,er(k,10))))&ui;while(Ec(k,0)!=0);if(r=bs(bs(bs(a,t),e),1),e==0)return h&&(d[--t]=45),ws(d,t,a-t);if(e>0&&Ec(r,-6)>=0){if(Ec(r,0)>=0){for(c=t+Se(r),f=a-1;f>=c;f--)d[f+1]=d[f];return d[++c]=46,h&&(d[--t]=45),ws(d,t,a-t+1)}for(s=2;DL(s,nr(n1(r),1));s++)d[--t]=48;return d[--t]=46,d[--t]=48,h&&(d[--t]=45),ws(d,t,a-t)}return m=t+1,i=a,g=new fg,h&&(g.a+="-"),i-m>=1?(X1(g,d[t]),g.a+=".",g.a+=ws(d,t+1,a-t-1)):g.a+=ws(d,t,a-t),g.a+="E",Ec(r,0)>0&&(g.a+="+"),g.a+=""+B6(r),g.a}function qb(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;if(j=new V(n.g,n.f),k=knn(n),k.a=y.Math.max(k.a,e),k.b=y.Math.max(k.b,t),X=k.a/j.a,a=k.b/j.b,D=k.a-j.a,h=k.b-j.b,i)for(s=St(n)?u(z(St(n),(He(),_d)),88):u(z(n,(He(),_d)),88),f=x(z(n,(He(),m9)))===x((Ai(),qc)),O=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));O.e!=O.i.gc();)switch(P=u(ue(O),123),A=u(z(P,H2),64),A==(en(),sc)&&(A=xen(P,s),ht(P,H2,A)),A.g){case 1:f||eu(P,P.i*X);break;case 2:eu(P,P.i+D),f||tu(P,P.j*a);break;case 3:f||eu(P,P.i*X),tu(P,P.j+h);break;case 4:f||tu(P,P.j*a)}if(kg(n,k.a,k.b),r)for(g=new ne((!n.n&&(n.n=new q(Sr,n,1,7)),n.n));g.e!=g.i.gc();)d=u(ue(g),135),p=d.i+d.g/2,m=d.j+d.f/2,_=p/j.a,l=m/j.b,_+l>=1&&(_-l>0&&m>=0?(eu(d,d.i+D),tu(d,d.j+h*l)):_-l<0&&p>=0&&(eu(d,d.i+D*_),tu(d,d.j+h)));return ht(n,(He(),Hd),(go(),c=u(of(S9),9),new _o(c,u(xs(c,c.length),9),0))),new V(X,a)}function QGn(n){ib(n,new gd(qE(nb(Qd(Zd(Yd(new Fa,es),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new Xmn),es))),Q(n,es,CP,rn(fce)),Q(n,es,y0,rn(hce)),Q(n,es,r2,rn(cce)),Q(n,es,d3,rn(uce)),Q(n,es,a3,rn(oce)),Q(n,es,z4,rn(rce)),Q(n,es,t8,rn(Vln)),Q(n,es,X4,rn(sce)),Q(n,es,XB,rn(vq)),Q(n,es,zB,rn(kq)),Q(n,es,NP,rn(Jln)),Q(n,es,VB,rn(yq)),Q(n,es,WB,rn(Qln)),Q(n,es,qrn,rn(Yln)),Q(n,es,Hrn,rn(Wln)),Q(n,es,Krn,rn(_O)),Q(n,es,Brn,rn(HO)),Q(n,es,Frn,rn(xj)),Q(n,es,_rn,rn(Zln)),Q(n,es,Rrn,rn(Xln))}function zS(n){var e,t,i,r,c,s,f,h,l,a,d;if(n==null)throw T(new th(gu));if(l=n,c=n.length,h=!1,c>0&&(e=(zn(0,n.length),n.charCodeAt(0)),(e==45||e==43)&&(n=(zn(1,n.length+1),n.substr(1)),--c,h=e==45)),c==0)throw T(new th(zb+l+'"'));for(;n.length>0&&(zn(0,n.length),n.charCodeAt(0)==48);)n=(zn(1,n.length+1),n.substr(1)),--c;if(c>(PUn(),gQn)[10])throw T(new th(zb+l+'"'));for(r=0;r<c;r++)if(XKn((zn(r,n.length),n.charCodeAt(r)))==-1)throw T(new th(zb+l+'"'));for(d=0,s=pun[10],a=WF[10],f=n1(mun[10]),t=!0,i=c%s,i>0&&(d=-parseInt((Ri(0,i,n.length),n.substr(0,i)),10),n=(zn(i,n.length+1),n.substr(i)),c-=i,t=!1);c>=s;){if(i=parseInt((Ri(0,s,n.length),n.substr(0,s)),10),n=(zn(s,n.length+1),n.substr(s)),c-=s,t)t=!1;else{if(Ec(d,f)<0)throw T(new th(zb+l+'"'));d=er(d,a)}d=bs(d,i)}if(Ec(d,0)>0)throw T(new th(zb+l+'"'));if(!h&&(d=n1(d),Ec(d,0)<0))throw T(new th(zb+l+'"'));return d}function itn(n){UR();var e,t,i,r,c,s,f,h;if(n==null)return null;if(r=ih(n,wu(37)),r<0)return n;for(h=new mo((Ri(0,r,n.length),n.substr(0,r))),e=F(Ru,s2,28,4,15,1),f=0,i=0,s=n.length;r<s;r++)if(zn(r,n.length),n.charCodeAt(r)==37&&n.length>r+2&&B$((zn(r+1,n.length),n.charCodeAt(r+1)),Rdn,Kdn)&&B$((zn(r+2,n.length),n.charCodeAt(r+2)),Rdn,Kdn))if(t=gwe((zn(r+1,n.length),n.charCodeAt(r+1)),(zn(r+2,n.length),n.charCodeAt(r+2))),r+=2,i>0?(t&192)==128?e[f++]=t<<24>>24:i=0:t>=128&&((t&224)==192?(e[f++]=t<<24>>24,i=2):(t&240)==224?(e[f++]=t<<24>>24,i=3):(t&248)==240&&(e[f++]=t<<24>>24,i=4)),i>0){if(f==i){switch(f){case 2:{X1(h,((e[0]&31)<<6|e[1]&63)&ui);break}case 3:{X1(h,((e[0]&15)<<12|(e[1]&63)<<6|e[2]&63)&ui);break}}f=0,i=0}}else{for(c=0;c<f;++c)X1(h,e[c]&ui);f=0,h.a+=String.fromCharCode(t)}else{for(c=0;c<f;++c)X1(h,e[c]&ui);f=0,X1(h,(zn(r,n.length),n.charCodeAt(r)))}return h.a}function YGn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m;if(p=St(Gr(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84))),m=St(Gr(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))),d=p==m,f=new Ni,e=u(z(n,(DC(),cdn)),75),e&&e.b>=2){if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i==0)t=(B1(),r=new yE,r),ve((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),t);else if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i>1)for(g=new kp((!n.a&&(n.a=new q(Tt,n,6,6)),n.a));g.e!=g.i.gc();)I5(g);ay(e,u(N((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),0),166))}if(d)for(i=new ne((!n.a&&(n.a=new q(Tt,n,6,6)),n.a));i.e!=i.i.gc();)for(t=u(ue(i),166),l=new ne((!t.a&&(t.a=new ti(xo,t,5)),t.a));l.e!=l.i.gc();)h=u(ue(l),377),f.a=y.Math.max(f.a,h.a),f.b=y.Math.max(f.b,h.b);for(s=new ne((!n.n&&(n.n=new q(Sr,n,1,7)),n.n));s.e!=s.i.gc();)c=u(ue(s),135),a=u(z(c,y9),8),a&&Bo(c,a.a,a.b),d&&(f.a=y.Math.max(f.a,c.i+c.g),f.b=y.Math.max(f.b,c.j+c.f));return f}function ZGn(n,e,t,i,r){var c,s,f;if(ZDn(n,e),s=e[0],c=Xi(t.c,0),f=-1,eY(t))if(i>0){if(s+i>n.length)return!1;f=yS((Ri(0,s+i,n.length),n.substr(0,s+i)),e)}else f=yS(n,e);switch(c){case 71:return f=Ug(n,s,S(C(fn,1),J,2,6,[Kzn,Bzn]),e),r.e=f,!0;case 77:return lSe(n,e,r,f,s);case 76:return aSe(n,e,r,f,s);case 69:return iEe(n,e,s,r);case 99:return rEe(n,e,s,r);case 97:return f=Ug(n,s,S(C(fn,1),J,2,6,["AM","PM"]),e),r.b=f,!0;case 121:return dSe(n,e,s,f,t,r);case 100:return f<=0?!1:(r.c=f,!0);case 83:return f<0?!1:v8e(f,s,e[0],r);case 104:f==12&&(f=0);case 75:case 72:return f<0?!1:(r.f=f,r.g=!1,!0);case 107:return f<0?!1:(r.f=f,r.g=!0,!0);case 109:return f<0?!1:(r.j=f,!0);case 115:return f<0?!1:(r.n=f,!0);case 90:if(s<n.length&&(zn(s,n.length),n.charCodeAt(s)==90))return++e[0],r.o=0,!0;case 122:case 118:return Sye(n,s,e,r);default:return!1}}function JLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn;for(A=e.c.length,r=new Wg(n.a,t,null,null),jn=F(Ii,Cr,28,A,15,1),k=F(Ii,Cr,28,A,15,1),m=F(Ii,Cr,28,A,15,1),j=0,f=0;f<A;f++)k[f]=et,m[f]=Wi;for(h=0;h<A;h++)for(i=(Nn(h,e.c.length),u(e.c[h],185)),jn[h]=gR(i),jn[j]>jn[h]&&(j=h),d=new M(n.a.b);d.a<d.c.c.length;)for(a=u(E(d),30),O=new M(a.a);O.a<O.c.c.length;)P=u(E(O),10),X=$(i.p[P.p])+$(i.d[P.p]),k[h]=y.Math.min(k[h],X),m[h]=y.Math.max(m[h],X+P.o.b);for(tn=F(Ii,Cr,28,A,15,1),l=0;l<A;l++)(Nn(l,e.c.length),u(e.c[l],185)).o==(If(),Bd)?tn[l]=k[j]-k[l]:tn[l]=m[j]-m[l];for(c=F(Ii,Cr,28,A,15,1),p=new M(n.a.b);p.a<p.c.c.length;)for(g=u(E(p),30),_=new M(g.a);_.a<_.c.c.length;){for(D=u(E(_),10),s=0;s<A;s++)c[s]=$((Nn(s,e.c.length),u(e.c[s],185)).p[D.p])+$((Nn(s,e.c.length),u(e.c[s],185)).d[D.p])+tn[s];Pyn(c,I$n(pE.prototype.Me,pE,[])),r.p[D.p]=(c[1]+c[2])/2,r.d[D.p]=0}return r}function QLe(n,e,t){var i,r,c,s,f;switch(i=e.i,c=n.i.o,r=n.i.d,f=n.n,s=cc(S(C(Ei,1),J,8,0,[f,n.a])),n.j.g){case 1:uh(e,(bu(),Xs)),i.d=-r.d-t-i.a,u(u(sn(e.d,0),187).of((W(),S3)),290)==(Co(),nl)?(df(e,(Uu(),zs)),i.c=s.a-$(B(v(n,y2)))-t-i.b):(df(e,(Uu(),Th)),i.c=s.a+$(B(v(n,y2)))+t);break;case 2:df(e,(Uu(),Th)),i.c=c.a+r.c+t,u(u(sn(e.d,0),187).of((W(),S3)),290)==(Co(),nl)?(uh(e,(bu(),Xs)),i.d=s.b-$(B(v(n,y2)))-t-i.a):(uh(e,(bu(),kf)),i.d=s.b+$(B(v(n,y2)))+t);break;case 3:uh(e,(bu(),kf)),i.d=c.b+r.a+t,u(u(sn(e.d,0),187).of((W(),S3)),290)==(Co(),nl)?(df(e,(Uu(),zs)),i.c=s.a-$(B(v(n,y2)))-t-i.b):(df(e,(Uu(),Th)),i.c=s.a+$(B(v(n,y2)))+t);break;case 4:df(e,(Uu(),zs)),i.c=-r.b-t-i.b,u(u(sn(e.d,0),187).of((W(),S3)),290)==(Co(),nl)?(uh(e,(bu(),Xs)),i.d=s.b-$(B(v(n,y2)))-t-i.a):(uh(e,(bu(),kf)),i.d=s.b+$(B(v(n,y2)))+t)}}function YLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k;for(t.Ug(kVn,1),!e.a&&(e.a=new q(Ye,e,10,11)),i=$(B(z(e,(Bf(),zO)))),a=$(B(z(e,h9))),g=u(z(e,f9),107),p=new lX(i,a),c=vzn(p,e,g),T$n(e,p),f=u(z(e,p1n),17).a;f>1;){if(r=rCe(e),d=c.g,m=u(z(e,f9),107),k=$(B(z(e,zO))),(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i>1&&$(B(z(e,(_h(),Iq))))!=Pt&&(c.c+(m.b+m.c))/(c.b+(m.d+m.a))<k?ht(r,(_h(),X0),$(B(z(e,X0)))+$(B(z(e,Iq)))):(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i>1&&$(B(z(e,(_h(),Pq))))!=Pt&&(c.c+(m.b+m.c))/(c.b+(m.d+m.a))>k&&ht(r,(_h(),X0),y.Math.max($(B(z(e,s9))),$(B(z(r,X0)))-$(B(z(e,Pq))))),p=new lX(i,a),h=vzn(p,r,g),l=h.g,l>=d&&l==l){for(s=0;s<(!r.a&&(r.a=new q(Ye,r,10,11)),r.a).i;s++)z_n(n,u(N((!r.a&&(r.a=new q(Ye,r,10,11)),r.a),s),27),u(N((!e.a&&(e.a=new q(Ye,e,10,11)),e.a),s),27));T$n(e,p),s2e(c,h.c),o2e(c,h.b)}--f}ht(e,(_h(),o9),c.b),ht(e,Nv,c.c),t.Vg()}function ZLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(e.Ug("Interactive node layering",1),t=new Z,g=new M(n.a);g.a<g.c.c.length;){for(a=u(E(g),10),h=a.n.a,f=h+a.o.a,f=y.Math.max(h+1,f),O=new xi(t,0),i=null;O.b<O.d.gc();)if(j=(oe(O.b<O.d.gc()),u(O.d.Xb(O.c=O.b++),578)),j.c>=f){oe(O.b>0),O.a.Xb(O.c=--O.b);break}else j.a>h&&(i?(hi(i.b,j.b),i.a=y.Math.max(i.a,j.a),bo(O)):(nn(j.b,a),j.c=y.Math.min(j.c,h),j.a=y.Math.max(j.a,f),i=j));i||(i=new Xyn,i.c=h,i.a=f,Bw(O,i),nn(i.b,a))}for(s=n.b,l=0,P=new M(t);P.a<P.c.c.length;)for(j=u(E(P),578),r=new Nc(n),r.p=l++,Bn(s.c,r),p=new M(j.b);p.a<p.c.c.length;)a=u(E(p),10),$i(a,r),a.p=0;for(d=new M(n.a);d.a<d.c.c.length;)if(a=u(E(d),10),a.p==0)for(k=Hqn(a,n);k.a.gc()!=0;)m=u(k.a.ec().Kc().Pb(),10),k.a.Bc(m)!=null,Ki(k,Hqn(m,n));for(c=new xi(s,0);c.b<c.d.gc();)(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),30)).a.c.length==0&&bo(c);n.a.c.length=0,e.Vg()}function nNe(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te,xe,Nt;for(p=0,Fn=0,h=new M(n);h.a<h.c.c.length;)f=u(E(h),27),RGn(f),p=y.Math.max(p,f.g),Fn+=f.g*f.f;for(m=Fn/n.c.length,kn=R7e(n,m),Fn+=n.c.length*kn,p=y.Math.max(p,y.Math.sqrt(Fn*s))+t.b,xe=t.b,Nt=t.d,g=0,a=t.b+t.c,jn=new Mt,Re(jn,Y(0)),X=new Mt,l=new xi(n,0);l.b<l.d.gc();)f=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),27)),te=f.g,d=f.f,xe+te>p&&(c&&(ir(X,g),ir(jn,Y(l.b-1))),xe=t.b,Nt+=g+e,g=0,a=y.Math.max(a,t.b+t.c+te)),eu(f,xe),tu(f,Nt),a=y.Math.max(a,xe+te+t.c),g=y.Math.max(g,d),xe+=te+e;if(a=y.Math.max(a,i),Kn=Nt+g+t.a,Kn<r&&(g+=r-Kn,Kn=r),c)for(xe=t.b,l=new xi(n,0),ir(jn,Y(n.c.length)),tn=ge(jn,0),P=u(be(tn),17).a,ir(X,g),_=ge(X,0),D=0;l.b<l.d.gc();)l.b==P&&(xe=t.b,D=$(B(be(_))),P=u(be(tn),17).a),f=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),27)),O=f.f,Sb(f,D),k=D,l.b==P&&(j=a-xe-t.c,A=f.g,Pb(f,j),P_n(f,new V(j,k),new V(A,O))),xe+=f.g+e;return new V(a,Kn)}function eNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn;for(e.Ug("Compound graph postprocessor",1),t=on(un(v(n,(cn(),AH)))),f=u(v(n,(W(),Zsn)),229),a=new ni,P=f.ec().Kc();P.Ob();){for(j=u(P.Pb(),18),s=new _u(f.cc(j)),Ln(),Yt(s,new AG(n)),_=lve((Nn(0,s.c.length),u(s.c[0],249))),tn=Mxn(u(sn(s,s.c.length-1),249)),A=_.i,Jm(tn.i,A)?O=A.e:O=Hi(A),d=w9e(j,s),vo(j.a),g=null,c=new M(s);c.a<c.c.c.length;)r=u(E(c),249),k=new Ni,gnn(k,r.a,O),p=r.b,i=new Tu,J$(i,0,p.a),n0(i,k),D=new rr(Of(p.c)),X=new rr(Of(p.d)),it(D,k),it(X,k),g&&(i.b==0?m=X:m=(oe(i.b!=0),u(i.a.a.c,8)),jn=y.Math.abs(g.a-m.a)>vh,kn=y.Math.abs(g.b-m.b)>vh,(!t&&jn&&kn||t&&(jn||kn))&&Re(j.a,D)),Ki(j.a,i),i.b==0?g=D:g=(oe(i.b!=0),u(i.c.b.c,8)),Bve(p,d,k),Mxn(r)==tn&&(Hi(tn.i)!=r.a&&(k=new Ni,gnn(k,Hi(tn.i),O)),U(j,gH,k)),yje(p,j,O),a.a.zc(p,a);Zi(j,_),Oi(j,tn)}for(l=a.a.ec().Kc();l.Ob();)h=u(l.Pb(),18),Zi(h,null),Oi(h,null);e.Vg()}function tNe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(r=u(v(n,(lc(),pw)),88),a=r==(ci(),Kr)||r==Xr?Wf:Xr,t=u(Wr(ut(new Cn(null,new On(n.b,16)),new Z3n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),h=u(Wr(_r(t.Oc(),new bkn(e)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),h.Gc(u(Wr(_r(t.Oc(),new wkn(e)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),16)),h.jd(new gkn(a)),g=new Ul(new pkn(r)),i=new de,f=h.Kc();f.Ob();)s=u(f.Pb(),240),l=u(s.a,39),on(un(s.c))?(g.a.zc(l,(_n(),pa))==null,new Q3(g.a.Zc(l,!1)).a.gc()>0&&Ve(i,l,u(new Q3(g.a.Zc(l,!1)).a.Vc(),39)),new Q3(g.a.ad(l,!0)).a.gc()>1&&Ve(i,PKn(g,l),l)):(new Q3(g.a.Zc(l,!1)).a.gc()>0&&(c=u(new Q3(g.a.Zc(l,!1)).a.Vc(),39),x(c)===x(Fr(wr(i.f,l)))&&u(v(l,(pt(),nq)),15).Fc(c)),new Q3(g.a.ad(l,!0)).a.gc()>1&&(d=PKn(g,l),x(Fr(wr(i.f,d)))===x(l)&&u(v(d,(pt(),nq)),15).Fc(l)),g.a.Bc(l)!=null)}function nzn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(n.gc()==1)return u(n.Xb(0),235);if(n.gc()<=0)return new zT;for(r=n.Kc();r.Ob();){for(t=u(r.Pb(),235),m=0,a=et,d=et,h=Wi,l=Wi,p=new M(t.e);p.a<p.c.c.length;)g=u(E(p),153),m+=u(v(g,(Us(),k3)),17).a,a=y.Math.min(a,g.d.a-g.e.a/2),d=y.Math.min(d,g.d.b-g.e.b/2),h=y.Math.max(h,g.d.a+g.e.a/2),l=y.Math.max(l,g.d.b+g.e.b/2);U(t,(Us(),k3),Y(m)),U(t,(Y1(),O8),new V(a,d)),U(t,hj,new V(h,l))}for(Ln(),n.jd(new Uwn),k=new zT,Ur(k,u(n.Xb(0),96)),f=0,O=0,c=n.Kc();c.Ob();)t=u(c.Pb(),235),j=mi(Fi(u(v(t,(Y1(),hj)),8)),u(v(t,O8),8)),f=y.Math.max(f,j.a),O+=j.a*j.b;for(f=y.Math.max(f,y.Math.sqrt(O)*$(B(v(k,(Us(),zYn))))),P=$(B(v(k,yI))),A=0,D=0,s=0,e=P,i=n.Kc();i.Ob();)t=u(i.Pb(),235),j=mi(Fi(u(v(t,(Y1(),hj)),8)),u(v(t,O8),8)),A+j.a>f&&(A=0,D+=s+P,s=0),IPe(k,t,A,D),e=y.Math.max(e,A+j.a),s=y.Math.max(s,j.b),A+=j.a+P;return k}function iNe(n){$en();var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(n==null||(c=iC(n),m=A5e(c),m%4!=0))return null;if(k=m/4|0,k==0)return F(Ru,s2,28,0,15,1);for(d=null,e=0,t=0,i=0,r=0,s=0,f=0,h=0,l=0,p=0,g=0,a=0,d=F(Ru,s2,28,k*3,15,1);p<k-1;p++){if(!n7(s=c[a++])||!n7(f=c[a++])||!n7(h=c[a++])||!n7(l=c[a++]))return null;e=nh[s],t=nh[f],i=nh[h],r=nh[l],d[g++]=(e<<2|t>>4)<<24>>24,d[g++]=((t&15)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24}return!n7(s=c[a++])||!n7(f=c[a++])?null:(e=nh[s],t=nh[f],h=c[a++],l=c[a++],nh[h]==-1||nh[l]==-1?h==61&&l==61?t&15?null:(j=F(Ru,s2,28,p*3+1,15,1),Oc(d,0,j,0,p*3),j[g]=(e<<2|t>>4)<<24>>24,j):h!=61&&l==61?(i=nh[h],i&3?null:(j=F(Ru,s2,28,p*3+2,15,1),Oc(d,0,j,0,p*3),j[g++]=(e<<2|t>>4)<<24>>24,j[g]=((t&15)<<4|i>>2&15)<<24>>24,j)):null:(i=nh[h],r=nh[l],d[g++]=(e<<2|t>>4)<<24>>24,d[g++]=((t&15)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24,d))}function rNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;for(e.Ug(XXn,1),m=u(v(n,(cn(),$l)),223),r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),l=Q7(i.a),s=l,f=0,h=s.length;f<h;++f)if(c=s[f],c.k==(Vn(),_c)){if(m==(El(),x3))for(d=new M(c.j);d.a<d.c.c.length;)a=u(E(d),12),a.e.c.length==0||W8e(a),a.g.c.length==0||J8e(a);else if(L(v(c,(W(),st)),18))j=u(v(c,st),18),P=u(h1(c,(en(),Wn)).Kc().Pb(),12),O=u(h1(c,Zn).Kc().Pb(),12),A=u(v(P,st),12),D=u(v(O,st),12),Zi(j,D),Oi(j,A),_=new rr(O.i.n),_.a=cc(S(C(Ei,1),J,8,0,[D.i.n,D.n,D.a])).a,Re(j.a,_),_=new rr(P.i.n),_.a=cc(S(C(Ei,1),J,8,0,[A.i.n,A.n,A.a])).a,Re(j.a,_);else{if(c.j.c.length>=2){for(k=!0,g=new M(c.j),t=u(E(g),12),p=null;g.a<g.c.c.length;)if(p=t,t=u(E(g),12),!ct(v(p,st),v(t,st))){k=!1;break}}else k=!1;for(d=new M(c.j);d.a<d.c.c.length;)a=u(E(d),12),a.e.c.length==0||DCe(a,k),a.g.c.length==0||$Ce(a,k)}$i(c,null)}e.Vg()}function cNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;for(f=new M(n.a.b);f.a<f.c.c.length;)for(c=u(E(f),30),A=new M(c.a);A.a<A.c.c.length;)O=u(E(A),10),e.g[O.p]=O,e.a[O.p]=O,e.d[O.p]=0;for(h=n.a.b,e.c==(fh(),y1)&&(h=Qo(h)),s=h.Kc();s.Ob();)for(c=u(s.Pb(),30),p=-1,g=c.a,e.o==(If(),Xf)&&(p=et,g=Qo(g)),_=g.Kc();_.Ob();)if(D=u(_.Pb(),10),d=null,e.c==y1?d=u(sn(n.b.f,D.p),15):d=u(sn(n.b.b,D.p),15),d.gc()>0)if(i=d.gc(),l=wi(y.Math.floor((i+1)/2))-1,r=wi(y.Math.ceil((i+1)/2))-1,e.o==Xf)for(a=r;a>=l;a--)e.a[D.p]==D&&(k=u(d.Xb(a),42),m=u(k.a,10),!sf(t,k.b)&&p>n.b.e[m.p]&&(e.a[m.p]=D,e.g[D.p]=e.g[m.p],e.a[D.p]=e.g[D.p],e.f[e.g[D.p].p]=(_n(),!!(on(e.f[e.g[D.p].p])&D.k==(Vn(),Ti))),p=n.b.e[m.p]));else for(a=l;a<=r;a++)e.a[D.p]==D&&(P=u(d.Xb(a),42),j=u(P.a,10),!sf(t,P.b)&&p<n.b.e[j.p]&&(e.a[j.p]=D,e.g[D.p]=e.g[j.p],e.a[D.p]=e.g[D.p],e.f[e.g[D.p].p]=(_n(),!!(on(e.f[e.g[D.p].p])&D.k==(Vn(),Ti))),p=n.b.e[j.p]))}function ezn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn;return A=n.c[(Nn(0,e.c.length),u(e.c[0],18)).p],tn=n.c[(Nn(1,e.c.length),u(e.c[1],18)).p],A.a.e.e-A.a.a-(A.b.e.e-A.b.a)==0&&tn.a.e.e-tn.a.a-(tn.b.e.e-tn.b.a)==0||(P=A.b.e.f,!L(P,10))?!1:(j=u(P,10),_=n.i[j.p],X=j.c?qr(j.c.a,j,0):-1,c=Pt,X>0&&(r=u(sn(j.c.a,X-1),10),s=n.i[r.p],jn=y.Math.ceil(jg(n.n,r,j)),c=_.a.e-j.d.d-(s.a.e+r.o.b+r.d.a)-jn),l=Pt,X<j.c.a.c.length-1&&(h=u(sn(j.c.a,X+1),10),a=n.i[h.p],jn=y.Math.ceil(jg(n.n,h,j)),l=a.a.e-h.d.d-(_.a.e+j.o.b+j.d.a)-jn),t&&(Cf(),Fs(jh),y.Math.abs(c-l)<=jh||c==l||isNaN(c)&&isNaN(l))?!0:(i=fD(A.a),f=-fD(A.b),d=-fD(tn.a),O=fD(tn.b),k=A.a.e.e-A.a.a-(A.b.e.e-A.b.a)>0&&tn.a.e.e-tn.a.a-(tn.b.e.e-tn.b.a)<0,m=A.a.e.e-A.a.a-(A.b.e.e-A.b.a)<0&&tn.a.e.e-tn.a.a-(tn.b.e.e-tn.b.a)>0,p=A.a.e.e+A.b.a<tn.b.e.e+tn.a.a,g=A.a.e.e+A.b.a>tn.b.e.e+tn.a.a,D=0,!k&&!m&&(g?c+d>0?D=d:l-i>0&&(D=i):p&&(c+f>0?D=f:l-O>0&&(D=O))),_.a.e+=D,_.b&&(_.d.e+=D),!1))}function tzn(n,e,t){var i,r,c,s,f,h,l,a,d,g;if(i=new Ho(e.Lf().a,e.Lf().b,e.Mf().a,e.Mf().b),r=new mp,n.c)for(s=new M(e.Rf());s.a<s.c.c.length;)c=u(E(s),187),r.c=c.Lf().a+e.Lf().a,r.d=c.Lf().b+e.Lf().b,r.b=c.Mf().a,r.a=c.Mf().b,O5(i,r);for(l=new M(e.Xf());l.a<l.c.c.length;){if(h=u(E(l),852),a=h.Lf().a+e.Lf().a,d=h.Lf().b+e.Lf().b,n.e&&(r.c=a,r.d=d,r.b=h.Mf().a,r.a=h.Mf().b,O5(i,r)),n.d)for(s=new M(h.Rf());s.a<s.c.c.length;)c=u(E(s),187),r.c=c.Lf().a+a,r.d=c.Lf().b+d,r.b=c.Mf().a,r.a=c.Mf().b,O5(i,r);if(n.b){if(g=new V(-t,-t),u(e.of((He(),W0)),181).Hc((zu(),Aa)))for(s=new M(h.Rf());s.a<s.c.c.length;)c=u(E(s),187),g.a+=c.Mf().a+t,g.b+=c.Mf().b+t;g.a=y.Math.max(g.a,0),g.b=y.Math.max(g.b,0),EUn(i,h.Wf(),h.Uf(),e,h,g,t)}}n.b&&EUn(i,e.Wf(),e.Uf(),e,null,null,t),f=new qN(e.Vf()),f.d=y.Math.max(0,e.Lf().b-i.d),f.a=y.Math.max(0,i.d+i.a-(e.Lf().b+e.Mf().b)),f.b=y.Math.max(0,e.Lf().a-i.c),f.c=y.Math.max(0,i.c+i.b-(e.Lf().a+e.Mf().a)),e.Zf(f)}function uNe(){var n=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F"];return n[34]='\\"',n[92]="\\\\",n[173]="\\u00ad",n[1536]="\\u0600",n[1537]="\\u0601",n[1538]="\\u0602",n[1539]="\\u0603",n[1757]="\\u06dd",n[1807]="\\u070f",n[6068]="\\u17b4",n[6069]="\\u17b5",n[8203]="\\u200b",n[8204]="\\u200c",n[8205]="\\u200d",n[8206]="\\u200e",n[8207]="\\u200f",n[8232]="\\u2028",n[8233]="\\u2029",n[8234]="\\u202a",n[8235]="\\u202b",n[8236]="\\u202c",n[8237]="\\u202d",n[8238]="\\u202e",n[8288]="\\u2060",n[8289]="\\u2061",n[8290]="\\u2062",n[8291]="\\u2063",n[8292]="\\u2064",n[8298]="\\u206a",n[8299]="\\u206b",n[8300]="\\u206c",n[8301]="\\u206d",n[8302]="\\u206e",n[8303]="\\u206f",n[65279]="\\ufeff",n[65529]="\\ufff9",n[65530]="\\ufffa",n[65531]="\\ufffb",n}function izn(n){ib(n,new gd(kz(qE(nb(Qd(Zd(Yd(new Fa,cu),"ELK Force"),"Force-based algorithm provided by the Eclipse Layout Kernel. Implements methods that follow physical analogies by simulating forces that move the nodes into a balanced distribution. Currently the original Eades model and the Fruchterman - Reingold model are supported."),new Vwn),cu),yt((E4(),vA),S(C(kA,1),G,245,0,[pA]))))),Q(n,cu,Ny,Y(1)),Q(n,cu,y0,80),Q(n,cu,eB,5),Q(n,cu,l3,U4),Q(n,cu,uP,Y(1)),Q(n,cu,n8,(_n(),!0)),Q(n,cu,Xb,gon),Q(n,cu,e8,rn(don)),Q(n,cu,tB,rn(pon)),Q(n,cu,oP,!1),Q(n,cu,t8,rn(won)),Q(n,cu,G4,rn(JYn)),Q(n,cu,a3,rn(QYn)),Q(n,cu,r2,rn(WYn)),Q(n,cu,z4,rn(VYn)),Q(n,cu,X4,rn(ZYn)),Q(n,cu,cP,rn(bon)),Q(n,cu,ZK,rn(k_)),Q(n,cu,Gtn,rn(kI)),Q(n,cu,nB,rn(v_)),Q(n,cu,ztn,rn(mon)),Q(n,cu,Dy,rn(cZn)),Q(n,cu,$y,rn(uZn)),Q(n,cu,xy,rn(rZn)),Q(n,cu,Ry,rn(iZn)),Q(n,cu,Vb,von)}function fa(n,e){nt();var t,i,r,c,s,f,h,l,a,d,g,p,m;if(i6(qv)==0){for(d=F(DDe,J,122,yse.length,0,1),s=0;s<d.length;s++)d[s]=new yo(4);for(i=new e6,c=0;c<fbn.length;c++){if(a=new yo(4),c<84?(f=c*2,p=(zn(f,KF.length),KF.charCodeAt(f)),g=(zn(f+1,KF.length),KF.charCodeAt(f+1)),xc(a,p,g)):(f=(c-84)*2,xc(a,hbn[f],hbn[f+1])),h=fbn[c],Sn(h,"Specials")&&xc(a,65520,65533),Sn(h,WJn)&&(xc(a,983040,1048573),xc(a,1048576,1114109)),Lr(qv,h,a),Lr(K9,h,b0(a)),l=i.a.length,0<l?i.a=qo(i.a,0,0):0>l&&(i.a+=ICn(F(fs,gh,28,-l,15,1))),i.a+="Is",ih(h,wu(32))>=0)for(r=0;r<h.length;r++)zn(r,h.length),h.charCodeAt(r)!=32&&Tm(i,(zn(r,h.length),h.charCodeAt(r)));else i.a+=""+h;QY(i.a,h,!0)}QY(RF,"Cn",!1),QY(Zcn,"Cn",!0),t=new yo(4),xc(t,0,rv),Lr(qv,"ALL",t),Lr(K9,"ALL",b0(t)),!rg&&(rg=new de),Lr(rg,RF,RF),!rg&&(rg=new de),Lr(rg,Zcn,Zcn),!rg&&(rg=new de),Lr(rg,"ALL","ALL")}return m=u(Dc(e?qv:K9,n),138),m}function rzn(n){ib(n,new gd(kz(qE(nb(Qd(Zd(Yd(new Fa,uu),"ELK Mr. Tree"),"Tree-based algorithm provided by the Eclipse Layout Kernel. Computes a spanning tree of the input graph and arranges all nodes according to the resulting parent-children hierarchy. I pity the fool who doesn't use Mr. Tree Layout."),new wmn),gVn),yn((E4(),gU))))),Q(n,uu,Xb,Iln),Q(n,uu,y0,20),Q(n,uu,$B,3),Q(n,uu,l3,U4),Q(n,uu,Ny,Y(1)),Q(n,uu,n8,(_n(),!0)),Q(n,uu,qy,rn(Mln)),Q(n,uu,xB,Tln),Q(n,uu,e8,rn(jre)),Q(n,uu,SP,rn(Ere)),Q(n,uu,r2,rn(Tre)),Q(n,uu,G4,rn(Cre)),Q(n,uu,d3,rn(Sre)),Q(n,uu,a3,rn(Pre)),Q(n,uu,z4,rn(Mre)),Q(n,uu,t8,rn(Sln)),Q(n,uu,X4,rn(Ire)),Q(n,uu,Irn,rn(Nln)),Q(n,uu,Arn,rn(Oln)),Q(n,uu,Dy,rn(Nre)),Q(n,uu,$y,rn(Dre)),Q(n,uu,xy,rn(Lre)),Q(n,uu,Ry,rn(Are)),Q(n,uu,Vb,Lln),Q(n,uu,Prn,rn(A2)),Q(n,uu,Orn,rn(oq)),Q(n,uu,Srn,rn(Ph)),Q(n,uu,Trn,rn(Eln)),Q(n,uu,Crn,rn(Cln))}function czn(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(l=u(u(ot(n.r,e),21),87),s=Bye(n,e),t=n.u.Hc((zu(),T9)),h=l.Kc();h.Ob();)if(f=u(h.Pb(),117),!(!f.c||f.c.d.c.length<=0)){switch(g=f.b.Mf(),a=f.c,d=a.i,d.b=(c=a.n,a.e.a+c.b+c.c),d.a=(r=a.n,a.e.b+r.d+r.a),e.g){case 1:f.a?(d.c=(g.a-d.b)/2,df(a,(Uu(),ma))):s||t?(d.c=-d.b-n.s,df(a,(Uu(),zs))):(d.c=g.a+n.s,df(a,(Uu(),Th))),d.d=-d.a-n.t,uh(a,(bu(),Xs));break;case 3:f.a?(d.c=(g.a-d.b)/2,df(a,(Uu(),ma))):s||t?(d.c=-d.b-n.s,df(a,(Uu(),zs))):(d.c=g.a+n.s,df(a,(Uu(),Th))),d.d=g.b+n.t,uh(a,(bu(),kf));break;case 2:f.a?(i=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(g.b-i)/2,uh(a,(bu(),va))):s||t?(d.d=-d.a-n.t,uh(a,(bu(),Xs))):(d.d=g.b+n.t,uh(a,(bu(),kf))),d.c=g.a+n.s,df(a,(Uu(),Th));break;case 4:f.a?(i=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(g.b-i)/2,uh(a,(bu(),va))):s||t?(d.d=-d.a-n.t,uh(a,(bu(),Xs))):(d.d=g.b+n.t,uh(a,(bu(),kf))),d.c=-d.b-n.s,df(a,(Uu(),zs))}s=!1}}function oNe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;if(g=!1,d=!1,mg(u(v(i,(cn(),_t)),101))){s=!1,f=!1;n:for(m=new M(i.j);m.a<m.c.c.length;)for(p=u(E(m),12),j=$h(Eo(S(C(Ao,1),Rn,20,0,[new nm(p),new ip(p)])));pe(j);)if(k=u(fe(j),12),!on(un(v(k.i,_8)))){if(p.j==(en(),Xn)){s=!0;break n}if(p.j==ae){f=!0;break n}}g=f&&!s,d=s&&!f}if(!g&&!d&&i.b.c.length!=0){for(a=0,l=new M(i.b);l.a<l.c.c.length;)h=u(E(l),72),a+=h.n.b+h.o.b/2;a/=i.b.c.length,O=a>=i.o.b/2}else O=!d;O?(P=u(v(i,(W(),I3)),15),P?g?c=P:(r=u(v(i,M3),15),r?P.gc()<=r.gc()?c=P:c=r:(c=new Z,U(i,M3,c))):(c=new Z,U(i,I3,c))):(r=u(v(i,(W(),M3)),15),r?d?c=r:(P=u(v(i,I3),15),P?r.gc()<=P.gc()?c=r:c=P:(c=new Z,U(i,I3,c))):(c=new Z,U(i,M3,c))),c.Fc(n),U(n,(W(),tO),t),e.d==t?(Oi(e,null),t.e.c.length+t.g.c.length==0&&ic(t,null),j6e(t)):(Zi(e,null),t.e.c.length+t.g.c.length==0&&ic(t,null)),vo(e.a)}function sNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te,xe,Nt;for(t.Ug("MinWidth layering",1),p=e.b,tn=e.a,Nt=u(v(e,(cn(),ehn)),17).a,f=u(v(e,thn),17).a,n.b=$(B(v(e,Ws))),n.d=Pt,D=new M(tn);D.a<D.c.c.length;)O=u(E(D),10),O.k==(Vn(),Xt)&&(Fn=O.o.b,n.d=y.Math.min(n.d,Fn));for(n.d=y.Math.max(1,n.d),jn=tn.c.length,n.c=F(ye,_e,28,jn,15,1),n.f=F(ye,_e,28,jn,15,1),n.e=F(Ii,Cr,28,jn,15,1),l=0,n.a=0,_=new M(tn);_.a<_.c.c.length;)O=u(E(_),10),O.p=l++,n.c[O.p]=BRn(ji(O)),n.f[O.p]=BRn(Qt(O)),n.e[O.p]=O.o.b/n.d,n.a+=n.e[O.p];for(n.b/=n.d,n.a/=jn,X=YEe(tn),Yt(tn,_W(new L7n(n))),k=Pt,m=et,s=null,xe=Nt,te=Nt,c=f,r=f,Nt<0&&(xe=u(Zhn.a.Id(),17).a,te=u(Zhn.b.Id(),17).a),f<0&&(c=u(Yhn.a.Id(),17).a,r=u(Yhn.b.Id(),17).a),Kn=xe;Kn<=te;Kn++)for(i=c;i<=r;i++)kn=HIe(n,Kn,i,tn,X),P=$(B(kn.a)),g=u(kn.b,15),j=g.gc(),(P<k||P==k&&j<m)&&(k=P,m=j,s=g);for(d=s.Kc();d.Ob();){for(a=u(d.Pb(),15),h=new Nc(e),A=a.Kc();A.Ob();)O=u(A.Pb(),10),$i(O,h);Bn(p.c,h)}Qk(p),tn.c.length=0,t.Vg()}function fNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te;if(t.Ug("Spline edge routing",1),e.b.c.length==0){e.f.a=0,t.Vg();return}O=$(B(v(e,(cn(),S2)))),f=$(B(v(e,Kd))),s=$(B(v(e,T2))),P=u(v(e,MH),350),jn=P==(u4(),J8),tn=$(B(v(e,Xfn))),n.d=e,n.j.c.length=0,n.a.c.length=0,Hu(n.k),h=u(sn(e.b,0),30),a=SM(h.a,(AS(),Aj)),m=u(sn(e.b,e.b.c.length-1),30),d=SM(m.a,Aj),k=new M(e.b),j=null,te=0;do{for(A=k.a<k.c.c.length?u(E(k),30):null,qLe(n,j,A),gIe(n),kn=ghe(ave(jT(ut(new Cn(null,new On(n.i,16)),new K3n),new B3n))),Kn=0,D=te,g=!j||a&&j==h,p=!A||d&&A==m,kn>0?(l=0,j&&(l+=f),l+=(kn-1)*s,A&&(l+=f),jn&&A&&(l=y.Math.max(l,PCe(A,s,O,tn))),l<O&&!g&&!p&&(Kn=(O-l)/2,l=O),D+=l):!g&&!p&&(D+=O),A&&zen(A,D),X=new M(n.i);X.a<X.c.c.length;)_=u(E(X),131),_.a.c=te,_.a.b=D-te,_.F=Kn,_.p=!j;hi(n.a,n.i),te=D,A&&(te+=A.c.a),j=A,g=p}while(A);for(r=new M(n.j);r.a<r.c.c.length;)i=u(E(r),18),c=eve(n,i),U(i,(W(),M2),c),Fn=FCe(n,i),U(i,Ld,Fn);e.f.a=te,n.d=null,t.Vg()}function hNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn;for(n.b=e,n.a=u(v(e,(cn(),Wfn)),17).a,n.c=u(v(e,Qfn),17).a,n.c==0&&(n.c=et),j=new xi(e.b,0);j.b<j.d.gc();){for(k=(oe(j.b<j.d.gc()),u(j.d.Xb(j.c=j.b++),30)),f=new Z,a=-1,D=-1,A=new M(k.a);A.a<A.c.c.length;)O=u(E(A),10),wl((N7(),new ie(ce(Ml(O).a.Kc(),new En))))>=n.a&&(i=UIe(n,O),a=y.Math.max(a,i.b),D=y.Math.max(D,i.d),nn(f,new bi(O,i)));for(jn=new Z,l=0;l<a;++l)ab(jn,0,(oe(j.b>0),j.a.Xb(j.c=--j.b),kn=new Nc(n.b),Bw(j,kn),oe(j.b<j.d.gc()),j.d.Xb(j.c=j.b++),kn));for(s=new M(f);s.a<s.c.c.length;)if(r=u(E(s),42),p=u(r.b,580).a,!!p)for(g=new M(p);g.a<g.c.c.length;)d=u(E(g),10),EZ(n,d,MI,jn);for(t=new Z,h=0;h<D;++h)nn(t,(Fn=new Nc(n.b),Bw(j,Fn),Fn));for(c=new M(f);c.a<c.c.c.length;)if(r=u(E(c),42),tn=u(r.b,580).c,!!tn)for(X=new M(tn);X.a<X.c.c.length;)_=u(E(X),10),EZ(n,_,TI,t)}for(P=new xi(e.b,0);P.b<P.d.gc();)m=(oe(P.b<P.d.gc()),u(P.d.Xb(P.c=P.b++),30)),m.a.c.length==0&&bo(P)}function uzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(k=n.i!=0,A=!1,P=null,fo(n.e)){if(a=e.gc(),a>0){for(g=a<100?null:new K1(a),l=new KQ(e),m=l.g,P=F(ye,_e,28,a,15,1),i=0,D=new Cb(a),r=0;r<n.i;++r){f=n.g[r],p=f;n:for(O=0;O<2;++O){for(h=a;--h>=0;)if(p!=null?ct(p,m[h]):x(p)===x(m[h])){P.length<=i&&(j=P,P=F(ye,_e,28,2*P.length,15,1),Oc(j,0,P,0,i)),P[i++]=r,ve(D,m[h]);break n}if(p=p,x(p)===x(f))break}}if(l=D,m=D.g,a=i,i>P.length&&(j=P,P=F(ye,_e,28,i,15,1),Oc(j,0,P,0,i)),i>0){for(A=!0,c=0;c<i;++c)p=m[c],g=sPn(n,u(p,76),g);for(s=i;--s>=0;)Jp(n,P[s]);if(i!=a){for(r=a;--r>=i;)Jp(l,r);j=P,P=F(ye,_e,28,i,15,1),Oc(j,0,P,0,i)}e=l}}}else for(e=T7e(n,e),r=n.i;--r>=0;)e.Hc(n.g[r])&&(Jp(n,r),A=!0);if(A){if(P!=null){for(t=e.gc(),d=t==1?X6(n,4,e.Kc().Pb(),null,P[0],k):X6(n,6,e,P,P[0],k),g=t<100?null:new K1(t),r=e.Kc();r.Ob();)p=r.Pb(),g=SV(n,u(p,76),g);g?(g.nj(d),g.oj()):rt(n.e,d)}else{for(g=Aae(e.gc()),r=e.Kc();r.Ob();)p=r.Pb(),g=SV(n,u(p,76),g);g&&g.oj()}return!0}else return!1}function lNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(t=new kBn(e),t.a||FPe(e),l=RSe(e),h=new jb,j=new Eqn,k=new M(e.a);k.a<k.c.c.length;)for(m=u(E(k),10),r=new ie(ce(Qt(m).a.Kc(),new En));pe(r);)i=u(fe(r),18),(i.c.i.k==(Vn(),Zt)||i.d.i.k==Zt)&&(a=ZAe(n,i,l,j),In(h,Ex(a.d),a.a));for(s=new Z,A=u(v(t.c,(W(),Dl)),21).Kc();A.Ob();){switch(O=u(A.Pb(),64),p=j.c[O.g],g=j.b[O.g],f=j.a[O.g],c=null,P=null,O.g){case 4:c=new Ho(n.d.a,p,l.b.a-n.d.a,g-p),P=new Ho(n.d.a,p,f,g-p),lb(l,new V(c.c+c.b,c.d)),lb(l,new V(c.c+c.b,c.d+c.a));break;case 2:c=new Ho(l.a.a,p,n.c.a-l.a.a,g-p),P=new Ho(n.c.a-f,p,f,g-p),lb(l,new V(c.c,c.d)),lb(l,new V(c.c,c.d+c.a));break;case 1:c=new Ho(p,n.d.b,g-p,l.b.b-n.d.b),P=new Ho(p,n.d.b,g-p,f),lb(l,new V(c.c,c.d+c.a)),lb(l,new V(c.c+c.b,c.d+c.a));break;case 3:c=new Ho(p,l.a.b,g-p,n.c.b-l.a.b),P=new Ho(p,n.c.b-f,g-p,f),lb(l,new V(c.c,c.d)),lb(l,new V(c.c+c.b,c.d))}c&&(d=new Uyn,d.d=O,d.b=c,d.c=P,d.a=ST(u(ot(h,Ex(O)),21)),Bn(s.c,d))}return hi(t.b,s),t.d=H6e(dAe(l)),t}function ozn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k;if(t.p[e.p]==null){f=!0,t.p[e.p]=0,s=e,k=t.o==(If(),Bd)?li:Pt;do r=n.b.e[s.p],c=s.c.a.c.length,t.o==Bd&&r>0||t.o==Xf&&r<c-1?(h=null,l=null,t.o==Xf?h=u(sn(s.c.a,r+1),10):h=u(sn(s.c.a,r-1),10),l=t.g[h.p],ozn(n,l,t),k=n.e.wg(k,e,s),t.j[e.p]==e&&(t.j[e.p]=t.j[l.p]),t.j[e.p]==t.j[l.p]?(m=jg(n.d,s,h),t.o==Xf?(i=$(t.p[e.p]),d=$(t.p[l.p])+$(t.d[h.p])-h.d.d-m-s.d.a-s.o.b-$(t.d[s.p]),f?(f=!1,t.p[e.p]=y.Math.min(d,k)):t.p[e.p]=y.Math.min(i,y.Math.min(d,k))):(i=$(t.p[e.p]),d=$(t.p[l.p])+$(t.d[h.p])+h.o.b+h.d.a+m+s.d.d-$(t.d[s.p]),f?(f=!1,t.p[e.p]=y.Math.max(d,k)):t.p[e.p]=y.Math.max(i,y.Math.max(d,k)))):(m=$(B(v(n.a,(cn(),bw)))),p=axn(n,t.j[e.p]),a=axn(n,t.j[l.p]),t.o==Xf?(g=$(t.p[e.p])+$(t.d[s.p])+s.o.b+s.d.a+m-($(t.p[l.p])+$(t.d[h.p])-h.d.d),BAn(p,a,g)):(g=$(t.p[e.p])+$(t.d[s.p])-s.d.d-$(t.p[l.p])-$(t.d[h.p])-h.o.b-h.d.a-m,BAn(p,a,g)))):k=n.e.wg(k,e,s),s=t.a[s.p];while(s!=e);qfe(n.e,e)}}function aNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn;if(t=$(B(v(n.a.j,(cn(),_fn)))),t<-1||!n.a.i||Ep(u(v(n.a.o,_t),101))||uc(n.a.o,(en(),Zn)).gc()<2&&uc(n.a.o,Wn).gc()<2)return!0;if(n.a.c.kg())return!1;for(_=0,D=0,A=new Z,h=n.a.e,l=0,a=h.length;l<a;++l){for(f=h[l],g=f,p=0,k=g.length;p<k;++p){if(d=g[p],d.k==(Vn(),_c)){Bn(A.c,d);continue}for(i=n.b[d.c.p][d.p],d.k==Zt?(i.b=1,u(v(d,(W(),st)),12).j==(en(),Zn)&&(D+=i.a)):(kn=uc(d,(en(),Wn)),kn.dc()||!yN(kn,new Ypn)?i.c=1:(r=uc(d,Zn),(r.dc()||!yN(r,new Qpn))&&(_+=i.a))),s=new ie(ce(Qt(d).a.Kc(),new En));pe(s);)c=u(fe(s),18),_+=i.c,D+=i.b,jn=c.d.i,WJ(n,i,jn);for(P=Eo(S(C(Ao,1),Rn,20,0,[uc(d,(en(),Xn)),uc(d,ae)])),tn=new ie(new HX(P.a.length,P.a));pe(tn);)X=u(fe(tn),12),O=u(v(X,(W(),Xu)),10),O&&(_+=i.c,D+=i.b,WJ(n,i,O))}for(m=new M(A);m.a<m.c.c.length;)for(d=u(E(m),10),i=n.b[d.c.p][d.p],s=new ie(ce(Qt(d).a.Kc(),new En));pe(s);)c=u(fe(s),18),_+=i.c,D+=i.b,jn=c.d.i,WJ(n,i,jn);A.c.length=0}return e=_+D,j=e==0?Pt:(_-D)/e,j>=t}function dNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te;for(A=e,O=new jb,D=new jb,a=Tb(A,Tcn),i=new IOn(n,t,O,D),Nje(i.a,i.b,i.c,i.d,a),h=(tn=O.i,tn||(O.i=new Tg(O,O.c))),kn=h.Kc();kn.Ob();)for(jn=u(kn.Pb(),166),r=u(ot(O,jn),21),k=r.Kc();k.Ob();)if(m=k.Pb(),_=u(Ng(n.d,m),166),_)f=(!jn.e&&(jn.e=new Dn(Tt,jn,10,9)),jn.e),ve(f,_);else throw s=bl(A,Eh),g=kWn+m+yWn+s,p=g+tv,T(new eh(p));for(l=(X=D.i,X||(D.i=new Tg(D,D.c))),Kn=l.Kc();Kn.Ob();)for(Fn=u(Kn.Pb(),166),c=u(ot(D,Fn),21),P=c.Kc();P.Ob();)if(j=P.Pb(),_=u(Ng(n.d,j),166),_)d=(!Fn.g&&(Fn.g=new Dn(Tt,Fn,9,10)),Fn.g),ve(d,_);else throw s=bl(A,Eh),g=kWn+j+yWn+s,p=g+tv,T(new eh(p));!t.b&&(t.b=new Dn(he,t,4,7)),t.b.i!=0&&(!t.c&&(t.c=new Dn(he,t,5,8)),t.c.i!=0)&&(!t.b&&(t.b=new Dn(he,t,4,7)),t.b.i<=1&&(!t.c&&(t.c=new Dn(he,t,5,8)),t.c.i<=1))&&(!t.a&&(t.a=new q(Tt,t,6,6)),t.a).i==1&&(te=u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166),!Px(te)&&!Ix(te)&&(mC(te,u(N((!t.b&&(t.b=new Dn(he,t,4,7)),t.b),0),84)),vC(te,u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84))))}function bNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn;for(A=n.a,D=0,_=A.length;D<_;++D){for(O=A[D],l=et,a=et,m=new M(O.e);m.a<m.c.c.length;)g=u(E(m),10),s=g.c?qr(g.c.a,g,0):-1,s>0?(d=u(sn(g.c.a,s-1),10),jn=jg(n.b,g,d),j=g.n.b-g.d.d-(d.n.b+d.o.b+d.d.a+jn)):j=g.n.b-g.d.d,l=y.Math.min(j,l),s<g.c.a.c.length-1?(d=u(sn(g.c.a,s+1),10),jn=jg(n.b,g,d),P=d.n.b-d.d.d-(g.n.b+g.o.b+g.d.a+jn)):P=2*g.n.b,a=y.Math.min(P,a);for(h=et,c=!1,r=u(sn(O.e,0),10),Fn=new M(r.j);Fn.a<Fn.c.c.length;)for(kn=u(E(Fn),12),k=r.n.b+kn.n.b+kn.a.b,i=new M(kn.e);i.a<i.c.c.length;)t=u(E(i),18),X=t.c,e=X.i.n.b+X.n.b+X.a.b-k,y.Math.abs(e)<y.Math.abs(h)&&y.Math.abs(e)<(e<0?l:a)&&(h=e,c=!0);for(f=u(sn(O.e,O.e.c.length-1),10),tn=new M(f.j);tn.a<tn.c.c.length;)for(X=u(E(tn),12),k=f.n.b+X.n.b+X.a.b,i=new M(X.g);i.a<i.c.c.length;)t=u(E(i),18),kn=t.d,e=kn.i.n.b+kn.n.b+kn.a.b-k,y.Math.abs(e)<y.Math.abs(h)&&y.Math.abs(e)<(e<0?l:a)&&(h=e,c=!0);if(c&&h!=0)for(p=new M(O.e);p.a<p.c.c.length;)g=u(E(p),10),g.n.b+=h}}function wNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(i=new Z,r=et,c=et,s=et,t)for(r=n.f.a,k=new M(e.j);k.a<k.c.c.length;)for(m=u(E(k),12),h=new M(m.g);h.a<h.c.c.length;)f=u(E(h),18),f.a.b!=0&&(a=u(gm(f.a),8),a.a<r&&(c=r-a.a,s=et,i.c.length=0,r=a.a),a.a<=r&&(Bn(i.c,f),f.a.b>1&&(s=y.Math.min(s,y.Math.abs(u(Zo(f.a,1),8).b-a.b)))));else for(k=new M(e.j);k.a<k.c.c.length;)for(m=u(E(k),12),h=new M(m.e);h.a<h.c.c.length;)f=u(E(h),18),f.a.b!=0&&(g=u($s(f.a),8),g.a>r&&(c=g.a-r,s=et,i.c.length=0,r=g.a),g.a>=r&&(Bn(i.c,f),f.a.b>1&&(s=y.Math.min(s,y.Math.abs(u(Zo(f.a,f.a.b-2),8).b-g.b)))));if(i.c.length!=0&&c>e.o.a/2&&s>e.o.b/2){for(p=new Ic,ic(p,e),gi(p,(en(),Xn)),p.n.a=e.o.a/2,P=new Ic,ic(P,e),gi(P,ae),P.n.a=e.o.a/2,P.n.b=e.o.b,h=new M(i);h.a<h.c.c.length;)f=u(E(h),18),t?(l=u(UN(f.a),8),j=f.a.b==0?Of(f.d):u(gm(f.a),8),j.b>=l.b?Zi(f,P):Zi(f,p)):(l=u(cwe(f.a),8),j=f.a.b==0?Of(f.c):u($s(f.a),8),j.b>=l.b?Oi(f,P):Oi(f,p)),d=u(v(f,(cn(),Rr)),75),d&&i0(d,l,!0);e.n.a=r-e.o.a/2}}function gNe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(f=ge(n.b,0);f.b!=f.d.c;)if(s=u(be(f),39),!Sn(s.c,OP))for(l=_Me(s,n),e==(ci(),Kr)||e==Xr?Yt(l,new Mmn):Yt(l,new Tmn),h=l.c.length,i=0;i<h;i++)a=(Nn(i,l.c.length),u(l.c[i],65)).c,Sn(a.c,"n11"),!(on(un(v(s,(pt(),wln))))&&!MRn((Nn(i,l.c.length),u(l.c[i],65)),n))&&(r=h==1?.5:(i+1)/(h+1),e==Kr?(c=$(B(v(s,jf))),g=s.e.b+s.f.b*r,gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(y.Math.min(c,s.e.a-t),g)),gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(s.e.a,g))):e==Xr?(c=$(B(v(s,Js)))+t,g=s.e.b+s.f.b*r,gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(c,g)),gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(s.e.a+s.f.a,g))):e==us?(c=$(B(v(s,jf))),d=s.e.a+s.f.a*r,gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(d,y.Math.min(s.e.b-t,c))),gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(d,s.e.b))):(c=$(B(v(s,Js)))+t,d=s.e.a+s.f.a*r,gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(d,c)),gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(d,s.e.b+s.f.b))))}function py(n,e,t,i,r,c,s,f,h){var l,a,d,g,p,m,k;switch(p=t,a=new Cl(h),Ha(a,(Vn(),Zt)),U(a,(W(),nfn),s),U(a,(cn(),_t),(Ai(),qc)),k=$(B(n.of(F0))),U(a,F0,k),d=new Ic,ic(d,a),e!=Qf&&e!=Oa||(i>=0?p=zp(f):p=$k(zp(f)),n.qf(Mv,p)),l=new Ni,g=!1,n.pf(aw)?(QX(l,u(n.of(aw),8)),g=!0):C1e(l,s.a/2,s.b/2),p.g){case 4:U(a,ou,(Yo(),ja)),U(a,rO,(hd(),m2)),a.o.b=s.b,k<0&&(a.o.a=-k),gi(d,(en(),Zn)),g||(l.a=s.a),l.a-=s.a;break;case 2:U(a,ou,(Yo(),x0)),U(a,rO,(hd(),pv)),a.o.b=s.b,k<0&&(a.o.a=-k),gi(d,(en(),Wn)),g||(l.a=0);break;case 1:U(a,Ad,(vl(),k2)),a.o.a=s.a,k<0&&(a.o.b=-k),gi(d,(en(),ae)),g||(l.b=s.b),l.b-=s.b;break;case 3:U(a,Ad,(vl(),E3)),a.o.a=s.a,k<0&&(a.o.b=-k),gi(d,(en(),Xn)),g||(l.b=0)}if(QX(d.n,l),U(a,aw,l),e==Ud||e==tl||e==qc){if(m=0,e==Ud&&n.pf(v1))switch(p.g){case 1:case 2:m=u(n.of(v1),17).a;break;case 3:case 4:m=-u(n.of(v1),17).a}else switch(p.g){case 4:case 2:m=c.b,e==tl&&(m/=r.b);break;case 1:case 3:m=c.a,e==tl&&(m/=r.a)}U(a,ow,m)}return U(a,gc,p),a}function pNe(){jz();function n(i){var r=this;this.dispatch=function(c){var s=c.data;switch(s.cmd){case"algorithms":var f=qY((Ln(),new J3(new ol(Na.b))));i.postMessage({id:s.id,data:f});break;case"categories":var h=qY((Ln(),new J3(new ol(Na.c))));i.postMessage({id:s.id,data:h});break;case"options":var l=qY((Ln(),new J3(new ol(Na.d))));i.postMessage({id:s.id,data:l});break;case"register":kAe(s.algorithms),i.postMessage({id:s.id});break;case"layout":WIe(s.graph,s.layoutOptions||{},s.options||{}),i.postMessage({id:s.id,data:s.graph});break}},this.saveDispatch=function(c){try{r.dispatch(c)}catch(s){i.postMessage({id:c.data.id,error:s})}}}function e(i){var r=this;this.dispatcher=new n({postMessage:function(c){r.onmessage({data:c})}}),this.postMessage=function(c){setTimeout(function(){r.dispatcher.saveDispatch({data:c})},0)}}if(typeof document===xK&&typeof self!==xK){var t=new n(self);self.onmessage=t.saveDispatch}else typeof gt!==xK&>.exports&&(Object.defineProperty(Pr,"__esModule",{value:!0}),gt.exports={default:e,Worker:e})}function szn(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(a=new Cl(t),Ur(a,e),U(a,(W(),st),e),a.o.a=e.g,a.o.b=e.f,a.n.a=e.i,a.n.b=e.j,nn(t.a,a),Ve(n.a,e,a),((!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i!=0||on(un(z(e,(cn(),B0)))))&&U(a,Qsn,(_n(),!0)),l=u(v(t,Hc),21),d=u(v(a,(cn(),_t)),101),d==(Ai(),Oa)?U(a,_t,Qf):d!=Qf&&l.Fc((pr(),kv)),g=0,i=u(v(t,Lo),88),h=new ne((!e.c&&(e.c=new q(Qu,e,9,9)),e.c));h.e!=h.i.gc();)f=u(ue(h),123),r=St(e),(x(z(r,Yh))!==x((lh(),k1))||x(z(r,Nd))===x((o1(),gv))||x(z(r,Nd))===x((o1(),wv))||on(un(z(r,fw)))||x(z(r,R0))!==x((dd(),A0))||x(z(r,Ea))===x((ps(),ww))||x(z(r,Ea))===x((ps(),U0))||x(z(r,$d))===x((a1(),Pv))||x(z(r,$d))===x((a1(),Iv)))&&!on(un(z(e,lO)))&&ht(f,dt,Y(g++)),on(un(z(f,Rd)))||SLe(n,f,a,l,i,d);for(s=new ne((!e.n&&(e.n=new q(Sr,e,1,7)),e.n));s.e!=s.i.gc();)c=u(ue(s),135),!on(un(z(c,Rd)))&&c.a&&nn(a.b,ex(c));return on(un(v(a,_8)))&&l.Fc((pr(),ZI)),on(un(v(a,wO)))&&(l.Fc((pr(),nO)),l.Fc($8),U(a,_t,Qf)),a}function QR(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te,xe,Nt;for(k=0,Fn=0,l=new M(n.b);l.a<l.c.c.length;)h=u(E(l),163),h.c&&RGn(h.c),k=y.Math.max(k,Pu(h)),Fn+=Pu(h)*ao(h);for(j=Fn/n.b.c.length,kn=mke(n.b,j),Fn+=n.b.c.length*kn,k=y.Math.max(k,y.Math.sqrt(Fn*s))+t.b,xe=t.b,Nt=t.d,p=0,d=t.b+t.c,jn=new Mt,Re(jn,Y(0)),X=new Mt,a=new xi(n.b,0),m=null,f=new Z;a.b<a.d.gc();)h=(oe(a.b<a.d.gc()),u(a.d.Xb(a.c=a.b++),163)),te=Pu(h),g=ao(h),xe+te>k&&(c&&(ir(X,p),ir(jn,Y(a.b-1)),nn(n.d,m),f.c.length=0),xe=t.b,Nt+=p+e,p=0,d=y.Math.max(d,t.b+t.c+te)),Bn(f.c,h),aBn(h,xe,Nt),d=y.Math.max(d,xe+te+t.c),p=y.Math.max(p,g),xe+=te+e,m=h;if(hi(n.a,f),nn(n.d,u(sn(f,f.c.length-1),163)),d=y.Math.max(d,i),Kn=Nt+p+t.a,Kn<r&&(p+=r-Kn,Kn=r),c)for(xe=t.b,a=new xi(n.b,0),ir(jn,Y(n.b.c.length)),tn=ge(jn,0),O=u(be(tn),17).a,ir(X,p),_=ge(X,0),D=0;a.b<a.d.gc();)a.b==O&&(xe=t.b,D=$(B(be(_))),O=u(be(tn),17).a),h=(oe(a.b<a.d.gc()),u(a.d.Xb(a.c=a.b++),163)),UKn(h,D),a.b==O&&(P=d-xe-t.c,A=Pu(h),GKn(h,P),pKn(h,(P-A)/2,0)),xe+=Pu(h)+e;return new V(d,Kn)}function mNe(n){n.N||(n.N=!0,n.b=hc(n,0),Rt(n.b,0),Rt(n.b,1),Rt(n.b,2),n.bb=hc(n,1),Rt(n.bb,0),Rt(n.bb,1),n.fb=hc(n,2),Rt(n.fb,3),Rt(n.fb,4),jt(n.fb,5),n.qb=hc(n,3),Rt(n.qb,0),jt(n.qb,1),jt(n.qb,2),Rt(n.qb,3),Rt(n.qb,4),jt(n.qb,5),Rt(n.qb,6),n.a=Je(n,4),n.c=Je(n,5),n.d=Je(n,6),n.e=Je(n,7),n.f=Je(n,8),n.g=Je(n,9),n.i=Je(n,10),n.j=Je(n,11),n.k=Je(n,12),n.n=Je(n,13),n.o=Je(n,14),n.p=Je(n,15),n.q=Je(n,16),n.s=Je(n,17),n.r=Je(n,18),n.t=Je(n,19),n.u=Je(n,20),n.v=Je(n,21),n.w=Je(n,22),n.B=Je(n,23),n.A=Je(n,24),n.C=Je(n,25),n.D=Je(n,26),n.F=Je(n,27),n.G=Je(n,28),n.H=Je(n,29),n.J=Je(n,30),n.I=Je(n,31),n.K=Je(n,32),n.M=Je(n,33),n.L=Je(n,34),n.P=Je(n,35),n.Q=Je(n,36),n.R=Je(n,37),n.S=Je(n,38),n.T=Je(n,39),n.U=Je(n,40),n.V=Je(n,41),n.X=Je(n,42),n.W=Je(n,43),n.Y=Je(n,44),n.Z=Je(n,45),n.$=Je(n,46),n._=Je(n,47),n.ab=Je(n,48),n.cb=Je(n,49),n.db=Je(n,50),n.eb=Je(n,51),n.gb=Je(n,52),n.hb=Je(n,53),n.ib=Je(n,54),n.jb=Je(n,55),n.kb=Je(n,56),n.lb=Je(n,57),n.mb=Je(n,58),n.nb=Je(n,59),n.ob=Je(n,60),n.pb=Je(n,61))}function vNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(O=0,e.f.a==0)for(j=new M(n);j.a<j.c.c.length;)m=u(E(j),10),O=y.Math.max(O,m.n.a+m.o.a+m.d.c);else O=e.f.a-e.c.a;for(O-=e.c.a,k=new M(n);k.a<k.c.c.length;){switch(m=u(E(k),10),Vv(m.n,O-m.o.a),VV(m.f),qBn(m),(m.q?m.q:(Ln(),Ln(),Wh))._b((cn(),H0))&&Vv(u(v(m,H0),8),O-m.o.a),u(v(m,Ch),255).g){case 1:U(m,Ch,(Bh(),qj));break;case 2:U(m,Ch,(Bh(),Hj))}for(P=m.o,D=new M(m.j);D.a<D.c.c.length;){for(A=u(E(D),12),Vv(A.n,P.a-A.o.a),Vv(A.a,A.o.a),gi(A,Txn(A.j)),s=u(v(A,v1),17),s&&U(A,v1,Y(-s.a)),c=new M(A.g);c.a<c.c.c.length;){for(r=u(E(c),18),i=ge(r.a,0);i.b!=i.d.c;)t=u(be(i),8),t.a=O-t.a;if(l=u(v(r,Rr),75),l)for(h=ge(l,0);h.b!=h.d.c;)f=u(be(h),8),f.a=O-f.a;for(g=new M(r.b);g.a<g.c.c.length;)a=u(E(g),72),Vv(a.n,O-a.o.a)}for(p=new M(A.f);p.a<p.c.c.length;)a=u(E(p),72),Vv(a.n,A.o.a-a.o.a)}for(m.k==(Vn(),Zt)&&(U(m,(W(),gc),Txn(u(v(m,gc),64))),uje(m)),d=new M(m.b);d.a<d.c.c.length;)a=u(E(d),72),qBn(a),Vv(a.n,P.a-a.o.a)}}function kNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(O=0,e.f.b==0)for(j=new M(n);j.a<j.c.c.length;)m=u(E(j),10),O=y.Math.max(O,m.n.b+m.o.b+m.d.a);else O=e.f.b-e.c.b;for(O-=e.c.b,k=new M(n);k.a<k.c.c.length;){switch(m=u(E(k),10),Xv(m.n,O-m.o.b),WV(m.f),UBn(m),(m.q?m.q:(Ln(),Ln(),Wh))._b((cn(),H0))&&Xv(u(v(m,H0),8),O-m.o.b),u(v(m,Ch),255).g){case 3:U(m,Ch,(Bh(),ZO));break;case 4:U(m,Ch,(Bh(),eA))}for(P=m.o,D=new M(m.j);D.a<D.c.c.length;){for(A=u(E(D),12),Xv(A.n,P.b-A.o.b),Xv(A.a,A.o.b),gi(A,Cxn(A.j)),s=u(v(A,v1),17),s&&U(A,v1,Y(-s.a)),c=new M(A.g);c.a<c.c.c.length;){for(r=u(E(c),18),i=ge(r.a,0);i.b!=i.d.c;)t=u(be(i),8),t.b=O-t.b;if(l=u(v(r,Rr),75),l)for(h=ge(l,0);h.b!=h.d.c;)f=u(be(h),8),f.b=O-f.b;for(g=new M(r.b);g.a<g.c.c.length;)a=u(E(g),72),Xv(a.n,O-a.o.b)}for(p=new M(A.f);p.a<p.c.c.length;)a=u(E(p),72),Xv(a.n,A.o.b-a.o.b)}for(m.k==(Vn(),Zt)&&(U(m,(W(),gc),Cxn(u(v(m,gc),64))),y5e(m)),d=new M(m.b);d.a<d.c.c.length;)a=u(E(d),72),UBn(a),Xv(a.n,P.b-a.o.b)}}function yNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te,xe;for(O=new xi(n.b,0),a=e.Kc(),m=0,l=u(a.Pb(),17).a,_=0,t=new ni,tn=new rh;O.b<O.d.gc();){for(P=(oe(O.b<O.d.gc()),u(O.d.Xb(O.c=O.b++),30)),D=new M(P.a);D.a<D.c.c.length;){for(A=u(E(D),10),p=new ie(ce(Qt(A).a.Kc(),new En));pe(p);)d=u(fe(p),18),tn.a.zc(d,tn);for(g=new ie(ce(ji(A).a.Kc(),new En));pe(g);)d=u(fe(g),18),tn.a.Bc(d)!=null}if(m+1==l){for(r=new Nc(n),Bw(O,r),c=new Nc(n),Bw(O,c),kn=tn.a.ec().Kc();kn.Ob();)jn=u(kn.Pb(),18),t.a._b(jn)||(++_,t.a.zc(jn,t)),s=new Cl(n),U(s,(cn(),_t),(Ai(),Bv)),$i(s,r),Ha(s,(Vn(),Gf)),k=new Ic,ic(k,s),gi(k,(en(),Wn)),Fn=new Ic,ic(Fn,s),gi(Fn,Zn),i=new Cl(n),U(i,_t,Bv),$i(i,c),Ha(i,Gf),j=new Ic,ic(j,i),gi(j,Wn),Kn=new Ic,ic(Kn,i),gi(Kn,Zn),X=new yb,Zi(X,jn.c),Oi(X,k),U(X,(W(),dt),u(v(jn,dt),17)),xe=new yb,Zi(xe,Fn),Oi(xe,j),U(xe,dt,u(v(jn,dt),17)),Zi(jn,Kn),f=new yJ(s,i,X,xe,jn),U(s,cw,f),U(i,cw,f),te=X.c.i,te.k==Gf&&(h=u(v(te,cw),313),h.d=f,f.g=h);if(a.Ob())l=u(a.Pb(),17).a;else break}++m}return Y(_)}function jNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(k=new Z,g=new M(n.d.b);g.a<g.c.c.length;)for(d=u(E(g),30),m=new M(d.a);m.a<m.c.c.length;){for(p=u(E(m),10),r=u(ee(n.f,p),60),h=new ie(ce(Qt(p).a.Kc(),new En));pe(h);)if(s=u(fe(h),18),i=ge(s.a,0),l=!0,a=null,i.b!=i.d.c){for(e=u(be(i),8),t=null,s.c.j==(en(),Xn)&&(j=new _5(e,new V(e.a,r.d.d),r,s),j.f.a=!0,j.a=s.c,Bn(k.c,j)),s.c.j==ae&&(j=new _5(e,new V(e.a,r.d.d+r.d.a),r,s),j.f.d=!0,j.a=s.c,Bn(k.c,j));i.b!=i.d.c;)t=u(be(i),8),hQ(e.b,t.b)||(a=new _5(e,t,null,s),Bn(k.c,a),l&&(l=!1,t.b<r.d.d?a.f.a=!0:t.b>r.d.d+r.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))),i.b!=i.d.c&&(e=t);a&&(c=u(ee(n.f,s.d.i),60),e.b<c.d.d?a.f.a=!0:e.b>c.d.d+c.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))}for(f=new ie(ce(ji(p).a.Kc(),new En));pe(f);)s=u(fe(f),18),s.a.b!=0&&(e=u($s(s.a),8),s.d.j==(en(),Xn)&&(j=new _5(e,new V(e.a,r.d.d),r,s),j.f.a=!0,j.a=s.d,Bn(k.c,j)),s.d.j==ae&&(j=new _5(e,new V(e.a,r.d.d+r.d.a),r,s),j.f.d=!0,j.a=s.d,Bn(k.c,j)))}return k}function ENe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(h=new Z,d=e.length,s=nY(t),l=0;l<d;++l){switch(a=qX(e,wu(61),l),i=v5e(s,(Ri(l,a,e.length),e.substr(l,a-l))),r=x$(i),c=r.jk().wi(),Xi(e,++a)){case 39:{f=bm(e,39,++a),nn(h,new MM(i,jD((Ri(a,f,e.length),e.substr(a,f-a)),c,r))),l=f+1;break}case 34:{f=bm(e,34,++a),nn(h,new MM(i,jD((Ri(a,f,e.length),e.substr(a,f-a)),c,r))),l=f+1;break}case 91:{g=new Z,nn(h,new MM(i,g));n:for(;;){switch(Xi(e,++a)){case 39:{f=bm(e,39,++a),nn(g,jD((Ri(a,f,e.length),e.substr(a,f-a)),c,r)),a=f+1;break}case 34:{f=bm(e,34,++a),nn(g,jD((Ri(a,f,e.length),e.substr(a,f-a)),c,r)),a=f+1;break}case 110:{if(++a,e.indexOf("ull",a)==a)g.c.push(null);else throw T(new ec(lWn));a+=3;break}}if(a<d)switch(zn(a,e.length),e.charCodeAt(a)){case 44:break;case 93:break n;default:throw T(new ec("Expecting , or ]"))}else break}l=a+1;break}case 110:{if(++a,e.indexOf("ull",a)==a)nn(h,new MM(i,null));else throw T(new ec(lWn));l=a+3;break}}if(l<d){if(zn(l,e.length),e.charCodeAt(l)!=44)throw T(new ec("Expecting ,"))}else break}return uSe(n,h,t)}function MNe(n){var e,t,i,r,c;switch(e=n.c,c=null,e){case 6:return n.Em();case 13:return n.Fm();case 23:return n.wm();case 22:return n.Bm();case 18:return n.ym();case 8:Ze(n),c=(nt(),lbn);break;case 9:return n.em(!0);case 19:return n.fm();case 10:switch(n.a){case 100:case 68:case 119:case 87:case 115:case 83:return c=n.dm(n.a),Ze(n),c;case 101:case 102:case 110:case 114:case 116:case 117:case 118:case 120:t=n.cm(),t<hr?c=(nt(),nt(),new Dh(0,t)):c=yIn(NY(t));break;case 99:return n.om();case 67:return n.jm();case 105:return n.rm();case 73:return n.km();case 103:return n.pm();case 88:return n.lm();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n.gm();case 80:case 112:if(c=Lnn(n,n.a),!c)throw T(new Ne($e((Oe(),EF))));break;default:c=DPn(n.a)}Ze(n);break;case 0:if(n.a==93||n.a==123||n.a==125)throw T(new Ne($e((Oe(),Dcn))));c=DPn(n.a),i=n.a,Ze(n),(i&64512)==Sy&&n.c==0&&(n.a&64512)==56320&&(r=F(fs,gh,28,2,15,1),r[0]=i&ui,r[1]=n.a&ui,c=rD(yIn(ws(r,0,r.length)),0),Ze(n));break;default:throw T(new Ne($e((Oe(),Dcn))))}return c}function TNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn;for(kn=new Mt,X=new Mt,j=-1,h=new M(n);h.a<h.c.c.length;){for(s=u(E(h),131),s.s=j--,a=0,A=0,c=new M(s.t);c.a<c.c.c.length;)i=u(E(c),274),A+=i.c;for(r=new M(s.i);r.a<r.c.c.length;)i=u(E(r),274),a+=i.c;s.n=a,s.u=A,A==0?xt(X,s,X.c.b,X.c):a==0&&xt(kn,s,kn.c.b,kn.c)}for(Kn=HT(n),d=n.c.length,k=d+1,P=d-1,p=new Z;Kn.a.gc()!=0;){for(;X.b!=0;)_=(oe(X.b!=0),u(Xo(X,X.a.a),131)),Kn.a.Bc(_)!=null,_.s=P--,Qnn(_,kn,X);for(;kn.b!=0;)tn=(oe(kn.b!=0),u(Xo(kn,kn.a.a),131)),Kn.a.Bc(tn)!=null,tn.s=k++,Qnn(tn,kn,X);for(m=Wi,l=Kn.a.ec().Kc();l.Ob();)s=u(l.Pb(),131),O=s.u-s.n,O>=m&&(O>m&&(p.c.length=0,m=O),Bn(p.c,s));p.c.length!=0&&(g=u(sn(p,cS(e,p.c.length)),131),Kn.a.Bc(g)!=null,g.s=k++,Qnn(g,kn,X),p.c.length=0)}for(D=n.c.length+1,f=new M(n);f.a<f.c.c.length;)s=u(E(f),131),s.s<d&&(s.s+=D);for(jn=new M(n);jn.a<jn.c.c.length;)for(tn=u(E(jn),131),t=new xi(tn.t,0);t.b<t.d.gc();)i=(oe(t.b<t.d.gc()),u(t.d.Xb(t.c=t.b++),274)),Fn=i.b,tn.s>Fn.s&&(bo(t),du(Fn.i,i),i.c>0&&(i.a=Fn,nn(Fn.t,i),i.b=tn,nn(tn.i,i)))}function fzn(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn;for(k=new Gc(e.b),D=new Gc(e.b),g=new Gc(e.b),jn=new Gc(e.b),j=new Gc(e.b),tn=ge(e,0);tn.b!=tn.d.c;)for(_=u(be(tn),12),f=new M(_.g);f.a<f.c.c.length;)if(c=u(E(f),18),c.c.i==c.d.i){if(_.j==c.d.j){Bn(jn.c,c);continue}else if(_.j==(en(),Xn)&&c.d.j==ae){Bn(j.c,c);continue}}for(h=new M(j);h.a<h.c.c.length;)c=u(E(h),18),QPe(n,c,t,i,(en(),Zn));for(s=new M(jn);s.a<s.c.c.length;)c=u(E(s),18),kn=new Cl(n),Ha(kn,(Vn(),_c)),U(kn,(cn(),_t),(Ai(),qc)),U(kn,(W(),st),c),Fn=new Ic,U(Fn,st,c.d),gi(Fn,(en(),Wn)),ic(Fn,kn),Kn=new Ic,U(Kn,st,c.c),gi(Kn,Zn),ic(Kn,kn),U(c.c,Xu,kn),U(c.d,Xu,kn),Zi(c,null),Oi(c,null),Bn(t.c,kn),U(kn,iO,Y(2));for(X=ge(e,0);X.b!=X.d.c;)_=u(be(X),12),l=_.e.c.length>0,P=_.g.c.length>0,l&&P?Bn(g.c,_):l?Bn(k.c,_):P&&Bn(D.c,_);for(m=new M(k);m.a<m.c.c.length;)p=u(E(m),12),nn(r,Fen(n,p,null,t));for(A=new M(D);A.a<A.c.c.length;)O=u(E(A),12),nn(r,Fen(n,null,O,t));for(d=new M(g);d.a<d.c.c.length;)a=u(E(d),12),nn(r,Fen(n,a,a,t))}function rtn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(g=Pt,p=Pt,a=0,d=0,h=new Z,f=new ne((!n.b&&(n.b=new q(Vt,n,12,3)),n.b));f.e!=f.i.gc();)c=u(ue(f),74),h=Eo(S(C(Ao,1),Rn,20,0,[h,(!c.n&&(c.n=new q(Sr,c,1,7)),c.n)]));for(A=$h(Eo(S(C(Ao,1),Rn,20,0,[(!n.n&&(n.n=new q(Sr,n,1,7)),n.n),(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),h])));pe(A);)O=u(fe(A),422),l=u(O.of((He(),$v)),140),g>O.nh()-l.b&&(g=O.nh()-l.b),p>O.oh()-l.d&&(p=O.oh()-l.d),a<O.nh()+O.mh()+l.c&&(a=O.nh()+O.mh()+l.c),d<O.oh()+O.lh()+l.a&&(d=O.oh()+O.lh()+l.a);for(s=new ne((!n.b&&(n.b=new q(Vt,n,12,3)),n.b));s.e!=s.i.gc();)for(c=u(ue(s),74),P=new ne((!c.a&&(c.a=new q(Tt,c,6,6)),c.a));P.e!=P.i.gc();)for(j=u(ue(P),166),m=j.j,i=j.b,k=j.k,r=j.c,g=y.Math.min(g,m),g=y.Math.min(g,i),a=y.Math.max(a,m),a=y.Math.max(a,i),p=y.Math.min(p,k),p=y.Math.min(p,r),d=y.Math.max(d,k),d=y.Math.max(d,r),t=new ne((!j.a&&(j.a=new ti(xo,j,5)),j.a));t.e!=t.i.gc();)e=u(ue(t),377),g=y.Math.min(g,e.a),a=y.Math.max(a,e.a),p=y.Math.min(p,e.b),d=y.Math.max(d,e.b);ht(n,(He(),K2),a-g),ht(n,R2,d-p)}function CNe(n,e,t){var i,r,c,s,f,h,l,a,d;if(t.Ug("Network simplex node placement",1),n.e=e,n.n=u(v(e,(W(),E2)),312),BOe(n),iye(n),Ut(rc(new Cn(null,new On(n.e.b,16)),new c3n),new Z7n(n)),Ut(ut(rc(ut(rc(new Cn(null,new On(n.e.b,16)),new m3n),new v3n),new k3n),new y3n),new Y7n(n)),on(un(v(n.e,(cn(),q8))))&&(s=t.eh(1),s.Ug("Straight Edges Pre-Processing",1),oLe(n),s.Vg()),K9e(n.f),c=u(v(e,z8),17).a*n.f.a.c.length,IR(gz(pz(KN(n.f),c),!1),t.eh(1)),n.d.a.gc()!=0){for(s=t.eh(1),s.Ug("Flexible Where Space Processing",1),f=u(ho(Sp(_r(new Cn(null,new On(n.f.a,16)),new u3n),new Zpn)),17).a,h=u(ho(_w(_r(new Cn(null,new On(n.f.a,16)),new o3n),new n3n)),17).a,l=h-f,a=sb(new za,n.f),d=sb(new za,n.f),qs(Ns(Ls(As(Ds(new hs,2e4),l),a),d)),Ut(ut(ut(jW(n.i),new s3n),new f3n),new EOn(f,a,l,d)),r=n.d.a.ec().Kc();r.Ob();)i=u(r.Pb(),218),i.g=1;IR(gz(pz(KN(n.f),c),!1),s.eh(1)),s.Vg()}on(un(v(e,q8)))&&(s=t.eh(1),s.Ug("Straight Edges Post-Processing",1),Vje(n),s.Vg()),UAe(n),n.e=null,n.f=null,n.i=null,n.c=null,Hu(n.k),n.j=null,n.a=null,n.o=null,n.d.a.$b(),t.Vg()}function SNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(t.Ug("Depth first model order layering",1),n.d=e,j=new Z,k=new M(n.d.a);k.a<k.c.c.length;)p=u(E(k),10),p.k==(Vn(),Xt)&&Bn(j.c,p);for(Ln(),Yt(j,new Gpn),s=!0,n.b=new Nc(n.d),n.a=null,nn(n.d.b,n.b),n.b.p=0,n.c=0,n.f=new Mt,m=new M(j);m.a<m.c.c.length;)if(p=u(E(m),10),s)$i(p,n.b),s=!1;else if(_Ie(n,p))if(g=n.c,g=pBn(g,p),i=g+2,a=g-n.c,n.f.b==0)len(n,i,p);else if(a>0){for(A=ge(n.f,0);A.b!=A.d.c;)O=u(be(A),10),O.p+=g-n.e;pnn(n),vo(n.f),len(n,i,p)}else{for(Re(n.f,p),p.p=i,n.e=y.Math.max(n.e,i),c=new ie(ce(ji(p).a.Kc(),new En));pe(c);)r=u(fe(c),18),!r.c.i.c&&r.c.i.k==(Vn(),Sc)&&(Re(n.f,r.c.i),r.c.i.p=i-1);n.c=i}else pnn(n),vo(n.f),i=0,pe(new ie(ce(ji(p).a.Kc(),new En)))?(g=0,g=pBn(g,p),i=g+2,len(n,i,p)):(Re(n.f,p),p.p=0,n.e=y.Math.max(n.e,0),n.b=u(sn(n.d.b,0),30),n.c=0);for(n.f.b==0||pnn(n),n.d.a.c.length=0,P=new Z,l=new M(n.d.b);l.a<l.c.c.length;)f=u(E(l),30),f.a.c.length==0&&Bn(P.c,f);for(PY(n.d.b,P),d=0,h=new M(n.d.b);h.a<h.c.c.length;)f=u(E(h),30),f.p=d,++d;t.Vg()}function PNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te,xe,Nt,Yu,Br;if(Fn=null,te=e,Kn=ULn(n,DLn(t),te),zm(Kn,bl(te,Eh)),xe=u(Ng(n.g,Zp(dl(te,lF))),27),g=dl(te,"sourcePort"),i=null,g&&(i=Zp(g)),Nt=u(Ng(n.j,i),123),!xe)throw f=b4(te),m="An edge must have a source node (edge id: '"+f,k=m+tv,T(new eh(k));if(Nt&&!sh(Pf(Nt),xe))throw h=bl(te,Eh),j="The source port of an edge must be a port of the edge's source node (edge id: '"+h,P=j+tv,T(new eh(P));if(jn=(!Kn.b&&(Kn.b=new Dn(he,Kn,4,7)),Kn.b),c=null,Nt?c=Nt:c=xe,ve(jn,c),Yu=u(Ng(n.g,Zp(dl(te,Lcn))),27),p=dl(te,"targetPort"),r=null,p&&(r=Zp(p)),Br=u(Ng(n.j,r),123),!Yu)throw d=b4(te),O="An edge must have a target node (edge id: '"+d,A=O+tv,T(new eh(A));if(Br&&!sh(Pf(Br),Yu))throw l=bl(te,Eh),D="The target port of an edge must be a port of the edge's target node (edge id: '"+l,_=D+tv,T(new eh(_));if(kn=(!Kn.c&&(Kn.c=new Dn(he,Kn,5,8)),Kn.c),s=null,Br?s=Br:s=Yu,ve(kn,s),(!Kn.b&&(Kn.b=new Dn(he,Kn,4,7)),Kn.b).i==0||(!Kn.c&&(Kn.c=new Dn(he,Kn,5,8)),Kn.c).i==0)throw a=bl(te,Eh),X=vWn+a,tn=X+tv,T(new eh(tn));return gS(te,Kn),ZMe(te,Kn),Fn=_$(n,te,Kn),Fn}function hzn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te,xe,Nt;for(p=u(v(n,(Y1(),y3)),27),A=et,D=et,P=Wi,O=Wi,X=new M(n.e);X.a<X.c.c.length;)_=u(E(X),153),Kn=_.d,te=_.e,A=y.Math.min(A,Kn.a-te.a/2),D=y.Math.min(D,Kn.b-te.b/2),P=y.Math.max(P,Kn.a+te.a/2),O=y.Math.max(O,Kn.b+te.b/2);for(t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),250),Kn=e.d,te=e.e,A=y.Math.min(A,Kn.a-te.a/2),D=y.Math.min(D,Kn.b-te.b/2),P=y.Math.max(P,Kn.a+te.a/2),O=y.Math.max(O,Kn.b+te.b/2);for(Fn=u(z(p,(Us(),YYn)),107),kn=new V(Fn.b-A,Fn.d-D),l=new M(n.e);l.a<l.c.c.length;)h=u(E(l),153),jn=v(h,y3),L(jn,207)&&(k=u(jn,27),tn=it(new rr(h.d),kn),Bo(k,tn.a-k.g/2,tn.b-k.f/2));for(c=new M(n.c);c.a<c.c.c.length;)r=u(E(c),289),d=u(v(r,y3),74),g=Xg(d,!0,!0),xe=new rr(gQ(r)),it(xe,kn),j7(g,xe.a,xe.b),nu(r.a,new CMn(kn,g)),i=new rr(pQ(r)),it(i,kn),y7(g,i.a,i.b);for(f=new M(n.d);f.a<f.c.c.length;)s=u(E(f),453),m=u(v(s,y3),135),j=it(new rr(s.d),kn),Bo(m,j.a,j.b);Nt=P-A+(Fn.b+Fn.c),a=O-D+(Fn.d+Fn.a),on(un(z(p,(He(),V0))))||qb(p,Nt,a,!1,!0),ht(p,K2,Nt-(Fn.b+Fn.c)),ht(p,R2,a-(Fn.d+Fn.a))}function lzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn;return d=mIe(lu(n,(en(),Yf)),e),m=_g(lu(n,ef),e),D=_g(lu(n,Do),e),jn=hS(lu(n,Cs),e),g=hS(lu(n,os),e),O=_g(lu(n,tf),e),k=_g(lu(n,Wu),e),X=_g(lu(n,$o),e),_=_g(lu(n,ss),e),kn=hS(lu(n,su),e),P=_g(lu(n,mu),e),A=_g(lu(n,Ju),e),tn=_g(lu(n,pu),e),Fn=hS(lu(n,vu),e),p=hS(lu(n,xu),e),j=_g(lu(n,Uc),e),t=Lg(S(C(Ii,1),Cr,28,15,[O.a,jn.a,X.a,Fn.a])),i=Lg(S(C(Ii,1),Cr,28,15,[m.a,d.a,D.a,j.a])),r=P.a,c=Lg(S(C(Ii,1),Cr,28,15,[k.a,g.a,_.a,p.a])),l=Lg(S(C(Ii,1),Cr,28,15,[O.b,m.b,k.b,A.b])),h=Lg(S(C(Ii,1),Cr,28,15,[jn.b,d.b,g.b,j.b])),a=kn.b,f=Lg(S(C(Ii,1),Cr,28,15,[X.b,D.b,_.b,tn.b])),Zl(lu(n,Yf),t+r,l+a),Zl(lu(n,Uc),t+r,l+a),Zl(lu(n,ef),t+r,0),Zl(lu(n,Do),t+r,l+a+h),Zl(lu(n,Cs),0,l+a),Zl(lu(n,os),t+r+i,l+a),Zl(lu(n,Wu),t+r+i,0),Zl(lu(n,$o),0,l+a+h),Zl(lu(n,ss),t+r+i,l+a+h),Zl(lu(n,su),0,l),Zl(lu(n,mu),t,0),Zl(lu(n,pu),0,l+a+h),Zl(lu(n,xu),t+r+i,0),s=new Ni,s.a=Lg(S(C(Ii,1),Cr,28,15,[t+i+r+c,kn.a,A.a,tn.a])),s.b=Lg(S(C(Ii,1),Cr,28,15,[l+h+a+f,P.b,Fn.b,p.b])),s}function azn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn;for(O=new V(Pt,Pt),e=new V(li,li),jn=new M(n);jn.a<jn.c.c.length;)tn=u(E(jn),8),O.a=y.Math.min(O.a,tn.a),O.b=y.Math.min(O.b,tn.b),e.a=y.Math.max(e.a,tn.a),e.b=y.Math.max(e.b,tn.b);for(g=new V(e.a-O.a,e.b-O.b),l=new V(O.a-50,O.b-g.a-50),a=new V(O.a-50,e.b+g.a+50),d=new V(e.a+g.b/2+50,O.b+g.b/2),p=new Ken(l,a,d),X=new ni,c=new Z,t=new Z,X.a.zc(p,X),Fn=new M(n);Fn.a<Fn.c.c.length;){for(kn=u(E(Fn),8),c.c.length=0,_=X.a.ec().Kc();_.Ob();)A=u(_.Pb(),317),i=A.d,Q1(i,A.a),Db(Q1(A.d,kn),Q1(A.d,A.a))<0&&Bn(c.c,A);for(t.c.length=0,D=new M(c);D.a<D.c.c.length;)for(A=u(E(D),317),j=new M(A.e);j.a<j.c.c.length;){for(m=u(E(j),177),s=!0,h=new M(c);h.a<h.c.c.length;)f=u(E(h),317),f!=A&&(mc(m,sn(f.e,0))||mc(m,sn(f.e,1))||mc(m,sn(f.e,2)))&&(s=!1);s&&Bn(t.c,m)}for(FFn(X,c),qi(X,new Jbn),k=new M(t);k.a<k.c.c.length;)m=u(E(k),177),fi(X,new Ken(kn,m.a,m.b))}for(P=new ni,qi(X,new P9n(P)),r=P.a.ec().Kc();r.Ob();)m=u(r.Pb(),177),(tC(p,m.a)||tC(p,m.b))&&r.Qb();return qi(P,new Qbn),P}function Mc(){Mc=R,tEn(),Moe=Ci.a,u(N(H(Ci.a),0),19),joe=Ci.f,u(N(H(Ci.f),0),19),u(N(H(Ci.f),1),35),Eoe=Ci.n,u(N(H(Ci.n),0),35),u(N(H(Ci.n),1),35),u(N(H(Ci.n),2),35),u(N(H(Ci.n),3),35),Pdn=Ci.g,u(N(H(Ci.g),0),19),u(N(H(Ci.g),1),35),yoe=Ci.c,u(N(H(Ci.c),0),19),u(N(H(Ci.c),1),19),Idn=Ci.i,u(N(H(Ci.i),0),19),u(N(H(Ci.i),1),19),u(N(H(Ci.i),2),19),u(N(H(Ci.i),3),19),u(N(H(Ci.i),4),35),Odn=Ci.j,u(N(H(Ci.j),0),19),Sdn=Ci.d,u(N(H(Ci.d),0),19),u(N(H(Ci.d),1),19),u(N(H(Ci.d),2),19),u(N(H(Ci.d),3),19),u(N(H(Ci.d),4),35),u(N(H(Ci.d),5),35),u(N(H(Ci.d),6),35),u(N(H(Ci.d),7),35),koe=Ci.b,u(N(H(Ci.b),0),35),u(N(H(Ci.b),1),35),bA=Ci.e,u(N(H(Ci.e),0),35),u(N(H(Ci.e),1),35),u(N(H(Ci.e),2),35),u(N(H(Ci.e),3),35),u(N(H(Ci.e),4),19),u(N(H(Ci.e),5),19),u(N(H(Ci.e),6),19),u(N(H(Ci.e),7),19),u(N(H(Ci.e),8),19),u(N(H(Ci.e),9),19),u(N(H(Ci.e),10),35),il=Ci.k,u(N(H(Ci.k),0),35),u(N(H(Ci.k),1),35)}function ctn(n){var e,t,i,r,c;switch(e=n.c,e){case 11:return n.vm();case 12:return n.xm();case 14:return n.zm();case 15:return n.Cm();case 16:return n.Am();case 17:return n.Dm();case 21:return Ze(n),nt(),nt(),B9;case 10:switch(n.a){case 65:return n.hm();case 90:return n.mm();case 122:return n.tm();case 98:return n.nm();case 66:return n.im();case 60:return n.sm();case 62:return n.qm()}}switch(c=MNe(n),e=n.c,e){case 3:return n.Im(c);case 4:return n.Gm(c);case 5:return n.Hm(c);case 0:if(n.a==123&&n.d<n.j){if(r=n.d,i=0,t=-1,(e=Xi(n.i,r++))>=48&&e<=57){for(i=e-48;r<n.j&&(e=Xi(n.i,r++))>=48&&e<=57;)if(i=i*10+e-48,i<0)throw T(new Ne($e((Oe(),Kcn))))}else throw T(new Ne($e((Oe(),XWn))));if(t=i,e==44){if(r>=n.j)throw T(new Ne($e((Oe(),WWn))));if((e=Xi(n.i,r++))>=48&&e<=57){for(t=e-48;r<n.j&&(e=Xi(n.i,r++))>=48&&e<=57;)if(t=t*10+e-48,t<0)throw T(new Ne($e((Oe(),Kcn))));if(i>t)throw T(new Ne($e((Oe(),JWn))))}else t=-1}if(e!=125)throw T(new Ne($e((Oe(),VWn))));n.bm(r)?(c=(nt(),nt(),new Xw(9,c)),n.d=r+1):(c=(nt(),nt(),new Xw(3,c)),n.d=r),c.Om(i),c.Nm(t),Ze(n)}}return c}function INe(n){var e,t,i,r,c;switch(t=u(v(n,(W(),Hc)),21),e=AM(mZn),r=u(v(n,(cn(),K0)),346),r==(jl(),T1)&&To(e,vZn),on(un(v(n,TH)))?Fe(e,(Vi(),Vs),(tr(),D_)):Fe(e,(Vi(),Ac),(tr(),D_)),v(n,(JT(),d9))!=null&&To(e,kZn),(on(un(v(n,Yfn)))||on(un(v(n,Vfn))))&&Iu(e,(Vi(),zr),(tr(),Xon)),u(v(n,Lo),88).g){case 2:case 3:case 4:Iu(Fe(e,(Vi(),Vs),(tr(),Won)),zr,Von)}switch(t.Hc((pr(),ZI))&&Iu(Fe(Fe(e,(Vi(),Vs),(tr(),zon)),Fc,Uon),zr,Gon),x(v(n,Ea))!==x((ps(),SO))&&Fe(e,(Vi(),Ac),(tr(),hsn)),t.Hc(eO)&&(Fe(e,(Vi(),Vs),(tr(),bsn)),Fe(e,Jh,asn),Fe(e,Ac,dsn)),x(v(n,fO))!==x((y4(),D8))&&x(v(n,$l))!==x((El(),Qj))&&Iu(e,(Vi(),zr),(tr(),rsn)),on(un(v(n,Jfn)))&&Fe(e,(Vi(),Ac),(tr(),isn)),on(un(v(n,yH)))&&Fe(e,(Vi(),Ac),(tr(),wsn)),HTe(n)&&(x(v(n,K0))===x(T1)?i=u(v(n,Ej),298):i=u(v(n,kH),298),c=i==(Ym(),cH)?(tr(),lsn):(tr(),msn),Fe(e,(Vi(),Fc),c)),u(v(n,Mhn),388).g){case 1:Fe(e,(Vi(),Fc),(tr(),gsn));break;case 2:Iu(Fe(Fe(e,(Vi(),Ac),(tr(),Fon)),Fc,_on),zr,Hon)}return x(v(n,Yh))!==x((lh(),k1))&&Fe(e,(Vi(),Ac),(tr(),psn)),e}function dzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;if(Zc(n.a,e)){if(sf(u(ee(n.a,e),49),t))return 1}else Ve(n.a,e,new ni);if(Zc(n.a,t)){if(sf(u(ee(n.a,t),49),e))return-1}else Ve(n.a,t,new ni);if(Zc(n.e,e)){if(sf(u(ee(n.e,e),49),t))return-1}else Ve(n.e,e,new ni);if(Zc(n.e,t)){if(sf(u(ee(n.a,t),49),e))return 1}else Ve(n.e,t,new ni);if(n.c==(lh(),_H)||!kt(e,(W(),dt))||!kt(t,(W(),dt))){for(d=null,l=new M(e.j);l.a<l.c.c.length;)f=u(E(l),12),f.e.c.length==0||u(sn(f.e,0),18).c.i.c!=e.c&&(d=u(sn(f.e,0),18).c);for(p=null,h=new M(t.j);h.a<h.c.c.length;)f=u(E(h),12),f.e.c.length==0||u(sn(f.e,0),18).c.i.c!=t.c&&(p=u(sn(f.e,0),18).c);if(d&&p){if(a=d.i,g=p.i,a&&a==g){for(k=new M(a.j);k.a<k.c.c.length;){if(m=u(E(k),12),m==d)return P4(n,t,e),-1;if(m==p)return P4(n,e,t),1}return jc(Vx(n,e),Vx(n,t))}for(P=n.d,O=0,A=P.length;O<A;++O){if(j=P[O],j==a)return P4(n,t,e),-1;if(j==g)return P4(n,e,t),1}}if(!kt(e,(W(),dt))||!kt(t,dt))return r=Vx(n,e),s=Vx(n,t),r>s?P4(n,e,t):P4(n,t,e),r<s?-1:r>s?1:0}return i=u(v(e,(W(),dt)),17).a,c=u(v(t,dt),17).a,i>c?P4(n,e,t):P4(n,t,e),i<c?-1:i>c?1:0}function Ub(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(t==null)return null;if(n.a!=e.jk())throw T(new Gn(nv+e.xe()+Yb));if(L(e,468)){if(j=kSe(u(e,685),t),!j)throw T(new Gn(fF+t+"' is not a valid enumerator of '"+e.xe()+"'"));return j}switch(r1((Lu(),zi),e).Nl()){case 2:{t=Rc(t,!1);break}case 3:{t=Rc(t,!0);break}}if(i=r1(zi,e).Jl(),i)return i.jk().wi().ti(i,t);if(g=r1(zi,e).Ll(),g){for(j=new Z,l=z$(t),a=0,d=l.length;a<d;++a)h=l[a],nn(j,g.jk().wi().ti(g,h));return j}if(k=r1(zi,e).Ml(),!k.dc()){for(m=k.Kc();m.Ob();){p=u(m.Pb(),156);try{if(j=p.jk().wi().ti(p,t),j!=null)return j}catch(P){if(P=Ot(P),!L(P,63))throw T(P)}}throw T(new Gn(fF+t+"' does not match any member types of the union datatype '"+e.xe()+"'"))}if(u(e,847).ok(),r=R6e(e.kk()),!r)return null;if(r==T8){s=0;try{s=So(t,Wi,et)&ui}catch(P){if(P=Ot(P),L(P,130))c=iC(t),s=c[0];else throw T(P)}return mk(s)}if(r==oI){for(f=0;f<O9.length;++f)try{return bMn(O9[f],t)}catch(P){if(P=Ot(P),!L(P,33))throw T(P)}throw T(new Gn(fF+t+"' is not a date formatted string of the form yyyy-MM-dd'T'HH:mm:ss'.'SSSZ or a valid subset thereof"))}throw T(new Gn(fF+t+"' is invalid. "))}function YR(){YR=R,wt=new jb,In(wt,(en(),Yf),Uc),In(wt,Cs,Uc),In(wt,Cs,vu),In(wt,os,xu),In(wt,os,Uc),In(wt,ef,Uc),In(wt,ef,Ju),In(wt,Do,pu),In(wt,Do,Uc),In(wt,mu,su),In(wt,mu,Uc),In(wt,mu,Ju),In(wt,mu,pu),In(wt,su,mu),In(wt,su,vu),In(wt,su,xu),In(wt,su,Uc),In(wt,tf,tf),In(wt,tf,Ju),In(wt,tf,vu),In(wt,Wu,Wu),In(wt,Wu,Ju),In(wt,Wu,xu),In(wt,$o,$o),In(wt,$o,pu),In(wt,$o,vu),In(wt,ss,ss),In(wt,ss,pu),In(wt,ss,xu),In(wt,Ju,ef),In(wt,Ju,mu),In(wt,Ju,tf),In(wt,Ju,Wu),In(wt,Ju,Uc),In(wt,Ju,Ju),In(wt,Ju,vu),In(wt,Ju,xu),In(wt,pu,Do),In(wt,pu,mu),In(wt,pu,$o),In(wt,pu,ss),In(wt,pu,pu),In(wt,pu,vu),In(wt,pu,xu),In(wt,pu,Uc),In(wt,vu,Cs),In(wt,vu,su),In(wt,vu,tf),In(wt,vu,$o),In(wt,vu,Ju),In(wt,vu,pu),In(wt,vu,vu),In(wt,vu,Uc),In(wt,xu,os),In(wt,xu,su),In(wt,xu,Wu),In(wt,xu,ss),In(wt,xu,Ju),In(wt,xu,pu),In(wt,xu,xu),In(wt,xu,Uc),In(wt,Uc,Yf),In(wt,Uc,Cs),In(wt,Uc,os),In(wt,Uc,ef),In(wt,Uc,Do),In(wt,Uc,mu),In(wt,Uc,su),In(wt,Uc,Ju),In(wt,Uc,pu),In(wt,Uc,vu),In(wt,Uc,xu),In(wt,Uc,Uc)}function utn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn;for(n.d=new V(Pt,Pt),n.c=new V(li,li),g=e.Kc();g.Ob();)for(a=u(g.Pb(),36),A=new M(a.a);A.a<A.c.c.length;)O=u(E(A),10),n.d.a=y.Math.min(n.d.a,O.n.a-O.d.b),n.d.b=y.Math.min(n.d.b,O.n.b-O.d.d),n.c.a=y.Math.max(n.c.a,O.n.a+O.o.a+O.d.c),n.c.b=y.Math.max(n.c.b,O.n.b+O.o.b+O.d.a);for(f=new Byn,d=e.Kc();d.Ob();)a=u(d.Pb(),36),i=lNe(n,a),nn(f.a,i),i.a=i.a|!u(v(i.c,(W(),Dl)),21).dc();for(n.b=(Y$(),jn=new Wwn,jn.f=new txn(t),jn.b=mAe(jn.f,f),jn),OAe((m=n.b,new op,m)),n.e=new Ni,n.a=n.b.f.e,s=new M(f.a);s.a<s.c.c.length;)for(r=u(E(s),855),D=l2e(n.b,r),uPe(r.c,D.a,D.b),j=new M(r.c.a);j.a<j.c.c.length;)k=u(E(j),10),k.k==(Vn(),Zt)&&(P=Ynn(n,k.n,u(v(k,(W(),gc)),64)),it(ff(k.n),P));for(c=new M(f.a);c.a<c.c.c.length;)for(r=u(E(c),855),l=new M(P5e(r));l.a<l.c.c.length;)for(h=u(E(l),18),tn=new UE(h.a),wm(tn,0,Of(h.c)),Re(tn,Of(h.d)),p=null,X=ge(tn,0);X.b!=X.d.c;){if(_=u(be(X),8),!p){p=_;continue}sQ(p.a,_.a)?(n.e.a=y.Math.min(n.e.a,p.a),n.a.a=y.Math.max(n.a.a,p.a)):sQ(p.b,_.b)&&(n.e.b=y.Math.min(n.e.b,p.b),n.a.b=y.Math.max(n.a.b,p.b)),p=_}_M(n.e),it(n.a,n.e)}function ONe(n,e){var t,i,r,c,s,f,h,l;if(t=0,s=0,c=e.length,f=null,l=new fg,s<c&&(zn(s,e.length),e.charCodeAt(s)==43)&&(++s,++t,s<c&&(zn(s,e.length),e.charCodeAt(s)==43||(zn(s,e.length),e.charCodeAt(s)==45))))throw T(new th(zb+e+'"'));for(;s<c&&(zn(s,e.length),e.charCodeAt(s)!=46)&&(zn(s,e.length),e.charCodeAt(s)!=101)&&(zn(s,e.length),e.charCodeAt(s)!=69);)++s;if(l.a+=""+qo(e==null?gu:(Jn(e),e),t,s),s<c&&(zn(s,e.length),e.charCodeAt(s)==46)){for(++s,t=s;s<c&&(zn(s,e.length),e.charCodeAt(s)!=101)&&(zn(s,e.length),e.charCodeAt(s)!=69);)++s;n.e=s-t,l.a+=""+qo(e==null?gu:(Jn(e),e),t,s)}else n.e=0;if(s<c&&(zn(s,e.length),e.charCodeAt(s)==101||(zn(s,e.length),e.charCodeAt(s)==69))&&(++s,t=s,s<c&&(zn(s,e.length),e.charCodeAt(s)==43)&&(++s,s<c&&(zn(s,e.length),e.charCodeAt(s)!=45)&&++t),f=(Ri(t,c,e.length),e.substr(t,c-t)),n.e=n.e-So(f,Wi,et),n.e!=wi(n.e)))throw T(new th("Scale out of range."));if(h=l.a,h.length<16){if(n.f=(Cun==null&&(Cun=new RegExp("^[+-]?\\d*$","i")),Cun.test(h)?parseInt(h,10):NaN),isNaN(n.f))throw T(new th(zb+e+'"'));n.a=Snn(n.f)}else a5e(n,new q1(h));for(n.d=l.a.length,r=0;r<l.a.length&&(i=Xi(l.a,r),!(i!=45&&i!=48));++r)--n.d;n.d==0&&(n.d=1)}function ANe(n){Te(n.b,ks,S(C(fn,1),J,2,6,[Zb,"ConsistentTransient"])),Te(n.a,ks,S(C(fn,1),J,2,6,[Zb,"WellFormedSourceURI"])),Te(n.o,ks,S(C(fn,1),J,2,6,[Zb,"InterfaceIsAbstract AtMostOneID UniqueFeatureNames UniqueOperationSignatures NoCircularSuperTypes WellFormedMapEntryClass ConsistentSuperTypes DisjointFeatureAndOperationSignatures"])),Te(n.p,ks,S(C(fn,1),J,2,6,[Zb,"WellFormedInstanceTypeName UniqueTypeParameterNames"])),Te(n.v,ks,S(C(fn,1),J,2,6,[Zb,"UniqueEnumeratorNames UniqueEnumeratorLiterals"])),Te(n.R,ks,S(C(fn,1),J,2,6,[Zb,"WellFormedName"])),Te(n.T,ks,S(C(fn,1),J,2,6,[Zb,"UniqueParameterNames UniqueTypeParameterNames NoRepeatingVoid"])),Te(n.U,ks,S(C(fn,1),J,2,6,[Zb,"WellFormedNsURI WellFormedNsPrefix UniqueSubpackageNames UniqueClassifierNames UniqueNsURIs"])),Te(n.W,ks,S(C(fn,1),J,2,6,[Zb,"ConsistentOpposite SingleContainer ConsistentKeys ConsistentUnique ConsistentContainer"])),Te(n.bb,ks,S(C(fn,1),J,2,6,[Zb,"ValidDefaultValueLiteral"])),Te(n.eb,ks,S(C(fn,1),J,2,6,[Zb,"ValidLowerBound ValidUpperBound ConsistentBounds ValidType"])),Te(n.H,ks,S(C(fn,1),J,2,6,[Zb,"ConsistentType ConsistentBounds ConsistentArguments"]))}function LNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn;if(!e.dc()){if(r=new Tu,f=t||u(e.Xb(0),18),m=f.c,x5(),g=m.i.k,!(g==(Vn(),Xt)||g==_c||g==Zt||g==Gf))throw T(new Gn("The target node of the edge must be a normal node or a northSouthPort."));for(ir(r,cc(S(C(Ei,1),J,8,0,[m.i.n,m.n,m.a]))),(en(),mu).Hc(m.j)&&(j=$(B(v(m,(W(),yv)))),d=new V(cc(S(C(Ei,1),J,8,0,[m.i.n,m.n,m.a])).a,j),xt(r,d,r.c.b,r.c)),a=null,i=!1,h=e.Kc();h.Ob();)s=u(h.Pb(),18),c=s.a,c.b!=0&&(i?(l=ch(it(a,(oe(c.b!=0),u(c.a.a.c,8))),.5),xt(r,l,r.c.b,r.c),i=!1):i=!0,a=Fi((oe(c.b!=0),u(c.c.b.c,8))),Ki(r,c),vo(c));k=f.d,mu.Hc(k.j)&&(j=$(B(v(k,(W(),yv)))),d=new V(cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a])).a,j),xt(r,d,r.c.b,r.c)),ir(r,cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a]))),n.d==(u4(),VH)&&(P=(oe(r.b!=0),u(r.a.a.c,8)),O=u(Zo(r,1),8),A=new KD(cY(m.j)),A.a*=5,A.b*=5,D=mi(new V(O.a,O.b),P),_=new V(ND(A.a,D.a),ND(A.b,D.b)),it(_,P),X=ge(r,1),_7(X,_),tn=(oe(r.b!=0),u(r.c.b.c,8)),jn=u(Zo(r,r.b-2),8),A=new KD(cY(k.j)),A.a*=5,A.b*=5,D=mi(new V(jn.a,jn.b),tn),kn=new V(ND(A.a,D.a),ND(A.b,D.b)),it(kn,tn),wm(r,r.b-1,kn)),p=new Ben(r),Ki(f.a,PBn(p))}}function NNe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te,xe,Nt,Yu,Br,Ro,W2,L1,rf,cf;if(A=u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84),_=A.nh(),X=A.oh(),D=A.mh()/2,k=A.lh()/2,L(A,193)&&(O=u(A,123),_+=Pf(O).i,_+=Pf(O).i),_+=D,X+=k,Kn=u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84),xe=Kn.nh(),Nt=Kn.oh(),te=Kn.mh()/2,tn=Kn.lh()/2,L(Kn,193)&&(Fn=u(Kn,123),xe+=Pf(Fn).i,xe+=Pf(Fn).i),xe+=te,Nt+=tn,(!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i==0)f=(B1(),l=new yE,l),ve((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),f);else if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i>1)for(m=new kp((!n.a&&(n.a=new q(Tt,n,6,6)),n.a));m.e!=m.i.gc();)I5(m);for(s=u(N((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),0),166),j=xe,xe>_+D?j=_+D:xe<_-D&&(j=_-D),P=Nt,Nt>X+k?P=X+k:Nt<X-k&&(P=X-k),j>_-D&&j<_+D&&P>X-k&&P<X+k&&(j=_+D),_m(s,j),qm(s,P),jn=_,_>xe+te?jn=xe+te:_<xe-te&&(jn=xe-te),kn=X,X>Nt+tn?kn=Nt+tn:X<Nt-tn&&(kn=Nt-tn),jn>xe-te&&jn<xe+te&&kn>Nt-tn&&kn<Nt+tn&&(kn=Nt+tn),Fm(s,jn),Hm(s,kn),me((!s.a&&(s.a=new ti(xo,s,5)),s.a)),c=cS(e,5),A==Kn&&++c,Ro=jn-j,rf=kn-P,Yu=y.Math.sqrt(Ro*Ro+rf*rf),d=Yu*.20000000298023224,W2=Ro/(c+1),cf=rf/(c+1),Br=j,L1=P,a=0;a<c;a++)Br+=W2,L1+=cf,g=Br+to(e,24)*Iy*d-d/2,g<0?g=1:g>t&&(g=t-1),p=L1+to(e,24)*Iy*d-d/2,p<0?p=1:p>i&&(p=i-1),r=(B1(),h=new kE,h),aC(r,g),lC(r,p),ve((!s.a&&(s.a=new ti(xo,s,5)),s.a),r)}function bzn(n){ib(n,new gd(nb(Qd(Zd(Yd(new Fa,co),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new i4n))),Q(n,co,l3,1.3),Q(n,co,G4,(_n(),!1)),Q(n,co,Xb,v1n),Q(n,co,y0,15),Q(n,co,TP,rn(Ace)),Q(n,co,r2,rn(Dce)),Q(n,co,d3,rn(xce)),Q(n,co,a3,rn(Rce)),Q(n,co,z4,rn(Nce)),Q(n,co,t8,rn(g1n)),Q(n,co,X4,rn(Kce)),Q(n,co,Yrn,rn(E1n)),Q(n,co,Zrn,rn(j1n)),Q(n,co,Qrn,rn(Lq)),Q(n,co,Jrn,rn(M1n)),Q(n,co,ncn,rn(m1n)),Q(n,co,ecn,rn(Aq)),Q(n,co,tcn,rn(p1n)),Q(n,co,icn,rn(y1n)),Q(n,co,e8,rn(w1n)),Q(n,co,SP,rn(Lce)),Q(n,co,Vrn,rn(Kj)),Q(n,co,Xrn,rn(b1n)),Q(n,co,Wrn,rn(Bj)),Q(n,co,zrn,rn(k1n))}function ZR(n,e){KR();var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te,xe;if(jn=n.e,m=n.d,r=n.a,jn==0)switch(e){case 0:return"0";case 1:return B4;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return X=new R1,e<0?X.a+="0E+":X.a+="0E",X.a+=-e,X.a}if(A=m*10+1+7,D=F(fs,gh,28,A+1,15,1),t=A,m==1)if(f=r[0],f<0){xe=vi(f,mr);do k=xe,xe=zk(xe,10),D[--t]=48+Se(bs(k,er(xe,10)))&ui;while(Ec(xe,0)!=0)}else{xe=f;do k=xe,xe=xe/10|0,D[--t]=48+(k-xe*10)&ui;while(xe!=0)}else{Fn=F(ye,_e,28,m,15,1),te=m,Oc(r,0,Fn,0,te);n:for(;;){for(tn=0,l=te-1;l>=0;l--)Kn=nr(Ks(tn,32),vi(Fn[l],mr)),P=mye(Kn),Fn[l]=Se(P),tn=Se(db(P,32));O=Se(tn),j=t;do D[--t]=48+O%10&ui;while((O=O/10|0)!=0&&t!=0);for(i=9-j+t,h=0;h<i&&t>0;h++)D[--t]=48;for(d=te-1;Fn[d]==0;d--)if(d==0)break n;te=d+1}for(;D[t]==48;)++t}if(p=jn<0,s=A-t-e-1,e==0)return p&&(D[--t]=45),ws(D,t,A-t);if(e>0&&s>=-6){if(s>=0){for(a=t+s,g=A-1;g>=a;g--)D[g+1]=D[g];return D[++a]=46,p&&(D[--t]=45),ws(D,t,A-t+1)}for(d=2;d<-s+1;d++)D[--t]=48;return D[--t]=46,D[--t]=48,p&&(D[--t]=45),ws(D,t,A-t)}return kn=t+1,c=A,_=new fg,p&&(_.a+="-"),c-kn>=1?(X1(_,D[t]),_.a+=".",_.a+=ws(D,t+1,A-t-1)):_.a+=ws(D,t,A-t),_.a+="E",s>0&&(_.a+="+"),_.a+=""+s,_.a}function wzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;switch(n.c=e,n.g=new de,t=(Aw(),new Pw(n.c)),i=new IE(t),FY(i),A=Ae(z(n.c,(Vk(),q1n))),h=u(z(n.c,Hq),324),_=u(z(n.c,qq),437),s=u(z(n.c,F1n),489),D=u(z(n.c,_q),438),n.j=$(B(z(n.c,Yce))),f=n.a,h.g){case 0:f=n.a;break;case 1:f=n.b;break;case 2:f=n.i;break;case 3:f=n.e;break;case 4:f=n.f;break;default:throw T(new Gn(xP+(h.f!=null?h.f:""+h.g)))}if(n.d=new oAn(f,_,s),U(n.d,(Wm(),I8),un(z(n.c,Jce))),n.d.c=on(un(z(n.c,_1n))),CT(n.c).i==0)return n.d;for(d=new ne(CT(n.c));d.e!=d.i.gc();){for(a=u(ue(d),27),p=a.g/2,g=a.f/2,X=new V(a.i+p,a.j+g);Zc(n.g,X);)hb(X,(y.Math.random()-.5)*vh,(y.Math.random()-.5)*vh);k=u(z(a,(He(),$v)),140),j=new yAn(X,new Ho(X.a-p-n.j/2-k.b,X.b-g-n.j/2-k.d,a.g+n.j+(k.b+k.c),a.f+n.j+(k.d+k.a))),nn(n.d.i,j),Ve(n.g,X,new bi(j,a))}switch(D.g){case 0:if(A==null)n.d.d=u(sn(n.d.i,0),68);else for(O=new M(n.d.i);O.a<O.c.c.length;)j=u(E(O),68),m=u(u(ee(n.g,j.a),42).b,27).jh(),m!=null&&Sn(m,A)&&(n.d.d=j);break;case 1:for(r=new V(n.c.g,n.c.f),r.a*=.5,r.b*=.5,hb(r,n.c.i,n.c.j),c=Pt,P=new M(n.d.i);P.a<P.c.c.length;)j=u(E(P),68),l=Q1(j.a,r),l<c&&(c=l,n.d.d=j);break;default:throw T(new Gn(xP+(D.f!=null?D.f:""+D.g)))}return n.d}function DNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(g=0,r=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));r.e!=r.i.gc();)i=u(ue(r),27),on(un(z(i,(cn(),Rd))))||(a=St(i),(x(z(a,Yh))!==x((lh(),k1))||x(z(a,Nd))===x((o1(),gv))||x(z(a,Nd))===x((o1(),wv))||on(un(z(a,fw)))||x(z(a,R0))!==x((dd(),A0))||x(z(a,Ea))===x((ps(),ww))||x(z(a,Ea))===x((ps(),U0))||x(z(a,$d))===x((a1(),Pv))||x(z(a,$d))===x((a1(),Iv)))&&!on(un(z(i,lO)))&&(ht(i,(W(),dt),Y(g)),++g),szn(n,i,t));for(g=0,l=new ne((!e.b&&(e.b=new q(Vt,e,12,3)),e.b));l.e!=l.i.gc();)f=u(ue(l),74),(x(z(e,(cn(),Yh)))!==x((lh(),k1))||x(z(e,Nd))===x((o1(),gv))||x(z(e,Nd))===x((o1(),wv))||on(un(z(e,fw)))||x(z(e,R0))!==x((dd(),A0))||x(z(e,Ea))===x((ps(),ww))||x(z(e,Ea))===x((ps(),U0))||x(z(e,$d))===x((a1(),Pv))||x(z(e,$d))===x((a1(),Iv)))&&(ht(f,(W(),dt),Y(g)),++g),k=Fh(f),j=ca(f),d=on(un(z(k,B0))),m=!on(un(z(f,Rd))),p=d&&Bb(f)&&on(un(z(f,Dd))),c=St(k)==e&&St(k)==St(j),s=(St(k)==e&&j==e)^(St(j)==e&&k==e),m&&!p&&(s||c)&&otn(n,f,e,t);if(St(e))for(h=new ne(DOn(St(e)));h.e!=h.i.gc();)f=u(ue(h),74),k=Fh(f),k==e&&Bb(f)&&(p=on(un(z(k,(cn(),B0))))&&on(un(z(f,Dd))),p&&otn(n,f,e,t))}function $Ne(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te,xe,Nt,Yu,Br,Ro;for(t.Ug("Greedy cycle removal",1),A=e.a,Ro=A.c.length,n.a=F(ye,_e,28,Ro,15,1),n.c=F(ye,_e,28,Ro,15,1),n.b=F(ye,_e,28,Ro,15,1),l=0,P=new M(A);P.a<P.c.c.length;){for(k=u(E(P),10),k.p=l,kn=new M(k.j);kn.a<kn.c.c.length;){for(X=u(E(kn),12),f=new M(X.e);f.a<f.c.c.length;)i=u(E(f),18),i.c.i!=k&&(te=u(v(i,(cn(),Tv)),17).a,n.a[l]+=te>0?te+1:1);for(s=new M(X.g);s.a<s.c.c.length;)i=u(E(s),18),i.d.i!=k&&(te=u(v(i,(cn(),Tv)),17).a,n.c[l]+=te>0?te+1:1)}n.c[l]==0?Re(n.e,k):n.a[l]==0&&Re(n.f,k),++l}for(m=-1,p=1,d=new Z,n.d=u(v(e,(W(),P3)),234);Ro>0;){for(;n.e.b!=0;)Nt=u(UN(n.e),10),n.b[Nt.p]=m--,Pen(n,Nt),--Ro;for(;n.f.b!=0;)Yu=u(UN(n.f),10),n.b[Yu.p]=p++,Pen(n,Yu),--Ro;if(Ro>0){for(g=Wi,O=new M(A);O.a<O.c.c.length;)k=u(E(O),10),n.b[k.p]==0&&(D=n.c[k.p]-n.a[k.p],D>=g&&(D>g&&(d.c.length=0,g=D),Bn(d.c,k)));a=n.sg(d),n.b[a.p]=p++,Pen(n,a),--Ro}}for(xe=A.c.length+1,l=0;l<A.c.length;l++)n.b[l]<0&&(n.b[l]+=xe);for(j=new M(A);j.a<j.c.c.length;)for(k=u(E(j),10),Kn=ELn(k.j),tn=Kn,jn=0,Fn=tn.length;jn<Fn;++jn)for(X=tn[jn],_=hh(X.g),r=_,c=0,h=r.length;c<h;++c)i=r[c],Br=i.d.i.p,n.b[k.p]>n.b[Br]&&(Hb(i,!0),U(e,vj,(_n(),!0)));n.a=null,n.c=null,n.b=null,vo(n.f),vo(n.e),t.Vg()}function gzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;for(_=u(N((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),0),166),a=new Tu,D=new de,X=TUn(_),Vc(D.f,_,X),g=new de,i=new Mt,m=$h(Eo(S(C(Ao,1),Rn,20,0,[(!e.d&&(e.d=new Dn(Vt,e,8,5)),e.d),(!e.e&&(e.e=new Dn(Vt,e,7,4)),e.e)])));pe(m);){if(p=u(fe(m),74),(!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i!=1)throw T(new Gn(tWn+(!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i));p!=n&&(j=u(N((!p.a&&(p.a=new q(Tt,p,6,6)),p.a),0),166),xt(i,j,i.c.b,i.c),k=u(Fr(wr(D.f,j)),13),k||(k=TUn(j),Vc(D.f,j,k)),d=t?mi(new rr(u(sn(X,X.c.length-1),8)),u(sn(k,k.c.length-1),8)):mi(new rr((Nn(0,X.c.length),u(X.c[0],8))),(Nn(0,k.c.length),u(k.c[0],8))),Vc(g.f,j,d))}if(i.b!=0)for(P=u(sn(X,t?X.c.length-1:0),8),l=1;l<X.c.length;l++){for(O=u(sn(X,t?X.c.length-1-l:l),8),r=ge(i,0);r.b!=r.d.c;)j=u(be(r),166),k=u(Fr(wr(D.f,j)),13),k.c.length<=l?p$(r):(A=it(new rr(u(sn(k,t?k.c.length-1-l:l),8)),u(Fr(wr(g.f,j)),8)),(O.a!=A.a||O.b!=A.b)&&(c=O.a-P.a,f=O.b-P.b,s=A.a-P.a,h=A.b-P.b,s*f==h*c&&(c==0||isNaN(c)?c:c<0?-1:1)==(s==0||isNaN(s)?s:s<0?-1:1)&&(f==0||isNaN(f)?f:f<0?-1:1)==(h==0||isNaN(h)?h:h<0?-1:1)?(y.Math.abs(c)<y.Math.abs(s)||y.Math.abs(f)<y.Math.abs(h))&&xt(a,O,a.c.b,a.c):l>1&&xt(a,P,a.c.b,a.c),p$(r)));P=O}return a}function pzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn;for(t.Ug(pVn,1),Fn=u(Wr(ut(new Cn(null,new On(e,16)),new Lmn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),a=u(Wr(ut(new Cn(null,new On(e,16)),new vkn(e)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),m=u(Wr(ut(new Cn(null,new On(e,16)),new mkn(e)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),k=F(DO,AP,39,e.gc(),0,1),s=0;s<a.gc();s++)r=u(a.Xb(s),39),kn=u(v(r,(lc(),A2)),17).a,kn>=0&&kn<a.gc()&&!k[kn]&&(k[kn]=r,a.gd(s),--s);for(f=0;f<a.gc();f++)for(r=u(a.Xb(f),39),kn=u(v(r,(lc(),A2)),17).a,g=0;;g++){if(p=kn+g,p<k.length&&p>=0&&!k[p]){k[p]=r,a.gd(f),--f;break}if(p=kn-g,p<k.length&&p>=0&&!k[p]){k[p]=r,a.gd(f),--f;break}}for(m.jd(new Nmn),h=k.length-1;h>=0;h--)!k[h]&&!m.dc()&&(k[h]=u(m.Xb(0),39),m.gd(0));for(l=0;l<k.length;l++)!k[l]&&!Fn.dc()&&(k[l]=u(Fn.Xb(0),39),Fn.gd(0));for(c=0;c<k.length;c++)U(k[c],(pt(),c9),Y(c));for(d=u(E8e(ut(new Cn(null,new On(e,16)),new Dmn)),534),X=d,tn=0,jn=X.length;tn<jn;++tn){for(_=X[tn],i=R$(_),pzn(n,i,t.eh(1/d.length|0)),Ln(),ud(i,new tL((pt(),c9))),j=new Mt,D=ge(i,0);D.b!=D.d.c;)for(A=u(be(D),39),O=ge(_.d,0);O.b!=O.d.c;)P=u(be(O),65),P.c==A&&xt(j,P,j.c.b,j.c);vo(_.d),Ki(_.d,j)}t.Vg()}function mzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(i=new Z,f=new Z,j=e/2,p=n.gc(),r=u(n.Xb(0),8),P=u(n.Xb(1),8),m=wR(r.a,r.b,P.a,P.b,j),nn(i,(Nn(0,m.c.length),u(m.c[0],8))),nn(f,(Nn(1,m.c.length),u(m.c[1],8))),l=2;l<p;l++)k=r,r=P,P=u(n.Xb(l),8),m=wR(r.a,r.b,k.a,k.b,j),nn(i,(Nn(1,m.c.length),u(m.c[1],8))),nn(f,(Nn(0,m.c.length),u(m.c[0],8))),m=wR(r.a,r.b,P.a,P.b,j),nn(i,(Nn(0,m.c.length),u(m.c[0],8))),nn(f,(Nn(1,m.c.length),u(m.c[1],8)));for(m=wR(P.a,P.b,r.a,r.b,j),nn(i,(Nn(1,m.c.length),u(m.c[1],8))),nn(f,(Nn(0,m.c.length),u(m.c[0],8))),t=new Tu,s=new Z,Re(t,(Nn(0,i.c.length),u(i.c[0],8))),a=1;a<i.c.length-2;a+=2)c=(Nn(a,i.c.length),u(i.c[a],8)),g=j_n((Nn(a-1,i.c.length),u(i.c[a-1],8)),c,(Nn(a+1,i.c.length),u(i.c[a+1],8)),(Nn(a+2,i.c.length),u(i.c[a+2],8))),!isFinite(g.a)||!isFinite(g.b)?xt(t,c,t.c.b,t.c):xt(t,g,t.c.b,t.c);for(Re(t,u(sn(i,i.c.length-1),8)),nn(s,(Nn(0,f.c.length),u(f.c[0],8))),d=1;d<f.c.length-2;d+=2)c=(Nn(d,f.c.length),u(f.c[d],8)),g=j_n((Nn(d-1,f.c.length),u(f.c[d-1],8)),c,(Nn(d+1,f.c.length),u(f.c[d+1],8)),(Nn(d+2,f.c.length),u(f.c[d+2],8))),!isFinite(g.a)||!isFinite(g.b)?Bn(s.c,c):Bn(s.c,g);for(nn(s,u(sn(f,f.c.length-1),8)),h=s.c.length-1;h>=0;h--)Re(t,(Nn(h,s.c.length),u(s.c[h],8)));return t}function vzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(A=$(B(z(e,(_h(),X0)))),p=$(B(z(e,s9))),g=$(B(z(e,UO))),LQ((!e.a&&(e.a=new q(Ye,e,10,11)),e.a)),P=fGn((!e.a&&(e.a=new q(Ye,e,10,11)),e.a),A,n.b),j=0;j<P.c.length;j++)if(h=(Nn(j,P.c.length),u(P.c[j],186)),j!=0&&(m=(Nn(j-1,P.c.length),u(P.c[j-1],186)),FRn(h,m.f+m.b+n.b)),k=KNe(j,P,A,n.b,on(un(z(e,(Bf(),Aq))))),on(un(k.b))){for(c=new M(h.a);c.a<c.c.c.length;)r=u(E(c),172),r.c=!1,r.k=!1,ZUn(r);h.d=new Z,h.e=A,--j}else if(eke(n,h),j+1<P.c.length&&(n.e=y.Math.max(h.e+n.b+u(sn((Nn(j+1,P.c.length),u(P.c[j+1],186)).a,0),172).r-A,n.c),n.f=y.Math.min(h.e+n.b+u(sn((Nn(j+1,P.c.length),u(P.c[j+1],186)).a,0),172).r-A,n.d),h.d.c.length!=0&&(n.c=y.Math.max(n.c,u(sn(h.d,h.d.c.length-1),315).d+(h.d.c.length<=1?0:n.b)),n.d=y.Math.min(n.c,u(sn(h.d,h.d.c.length-1),315).d+(h.d.c.length<=1?0:n.b)))),P.c.length==1)for(d=u(sn(h.d,h.d.c.length-1),315),a=u(sn(d.a,d.a.c.length-1),172),f=new M(a.n);f.a<f.c.c.length;)s=u(E(f),209),n.c=y.Math.max(n.c,a.r-s.d),n.d=y.Math.min(n.d,a.r-s.d),n.e=y.Math.max(n.e,s.d+n.b),n.f=y.Math.min(n.f,s.d+n.b);return O=rFn(P,n.b),D=y.Math.max(O.a,p-(t.b+t.c)),l=y.Math.max(O.b,g-(t.d+t.a)),i=l-O.b,ht(e,u9,i),ht(e,GO,P),new eW(n.a,D,O.b+i,(D5(),Fj))}function xNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te;if(tn=u(v(n,(cn(),_t)),101),tn!=(Ai(),Qf)&&tn!=Oa){for(m=n.b,p=m.c.length,a=new Gc((Mo(p+2,cK),oC(nr(nr(5,p+2),(p+2)/10|0)))),k=new Gc((Mo(p+2,cK),oC(nr(nr(5,p+2),(p+2)/10|0)))),nn(a,new de),nn(a,new de),nn(k,new Z),nn(k,new Z),X=new Z,e=0;e<p;e++)for(t=(Nn(e,m.c.length),u(m.c[e],30)),jn=(Nn(e,a.c.length),u(a.c[e],85)),j=new de,Bn(a.c,j),Fn=(Nn(e,k.c.length),u(k.c[e],15)),O=new Z,Bn(k.c,O),r=new M(t.a);r.a<r.c.c.length;){if(i=u(E(r),10),MY(i)){Bn(X.c,i);continue}for(l=new ie(ce(ji(i).a.Kc(),new En));pe(l);)f=u(fe(l),18),Kn=f.c.i,MY(Kn)&&(kn=u(jn.xc(v(Kn,(W(),st))),10),kn||(kn=B_n(n,Kn),jn.zc(v(Kn,st),kn),Fn.Fc(kn)),Zi(f,u(sn(kn.j,1),12)));for(h=new ie(ce(Qt(i).a.Kc(),new En));pe(h);)f=u(fe(h),18),te=f.d.i,MY(te)&&(P=u(ee(j,v(te,(W(),st))),10),P||(P=B_n(n,te),Ve(j,v(te,st),P),Bn(O.c,P)),Oi(f,u(sn(P.j,0),12)))}for(d=0;d<k.c.length;d++)if(A=(Nn(d,k.c.length),u(k.c[d],15)),!A.dc())for(g=null,d==0?(g=new Nc(n),zw(0,m.c.length),l6(m.c,0,g)):d==a.c.length-1?(g=new Nc(n),Bn(m.c,g)):g=(Nn(d-1,m.c.length),u(m.c[d-1],30)),s=A.Kc();s.Ob();)c=u(s.Pb(),10),$i(c,g);for(_=new M(X);_.a<_.c.c.length;)D=u(E(_),10),$i(D,null);U(n,(W(),fH),X)}}function RNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te,xe,Nt,Yu,Br;for(Nt=new Z,m=new M(e.b);m.a<m.c.c.length;)for(g=u(E(m),30),_=new M(g.a);_.a<_.c.c.length;){for(D=u(E(_),10),D.p=-1,d=Wi,jn=Wi,Fn=new M(D.j);Fn.a<Fn.c.c.length;){for(kn=u(E(Fn),12),r=new M(kn.e);r.a<r.c.c.length;)t=u(E(r),18),Kn=u(v(t,(cn(),O3)),17).a,d=y.Math.max(d,Kn);for(i=new M(kn.g);i.a<i.c.c.length;)t=u(E(i),18),Kn=u(v(t,(cn(),O3)),17).a,jn=y.Math.max(jn,Kn)}U(D,AO,Y(d)),U(D,LO,Y(jn))}for(P=0,p=new M(e.b);p.a<p.c.c.length;)for(g=u(E(p),30),_=new M(g.a);_.a<_.c.c.length;)D=u(E(_),10),D.p<0&&(xe=new WG,xe.b=P++,Wqn(n,D,xe),Bn(Nt.c,xe));for(tn=Lh(Nt.c.length),a=Lh(Nt.c.length),s=0;s<Nt.c.length;s++)nn(tn,new Z),nn(a,Y(0));for(eLe(e,Nt,tn,a),Yu=u(Rf(Nt,F($ie,hVn,261,Nt.c.length,0,1)),854),X=u(Rf(tn,F(rs,k0,15,tn.c.length,0,1)),198),l=F(ye,_e,28,a.c.length,15,1),f=0;f<l.length;f++)l[f]=(Nn(f,a.c.length),u(a.c[f],17)).a;for(O=0,A=new Z,h=0;h<Yu.length;h++)l[h]==0&&Bn(A.c,Yu[h]);for(j=F(ye,_e,28,Yu.length,15,1);A.c.length!=0;)for(xe=u(Yl(A,0),261),j[xe.b]=O++;!X[xe.b].dc();)Br=u(X[xe.b].gd(0),261),--l[Br.b],l[Br.b]==0&&Bn(A.c,Br);for(n.a=F($ie,hVn,261,Yu.length,0,1),c=0;c<Yu.length;c++)for(k=Yu[c],te=j[c],n.a[te]=k,k.b=te,_=new M(k.e);_.a<_.c.c.length;)D=u(E(_),10),D.p=te;return n.a}function KNe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P;for(k=!1,h=!1,g=n+1,m=(Nn(n,e.c.length),u(e.c[n],186)),f=m.a,l=null,s=0;s<m.a.c.length;s++)if(c=(Nn(s,f.c.length),u(f.c[s],172)),!c.c){if(c.b.c.length==0){fl(),Uk(m,c),--s,k=!0;continue}if(c.k||(l&&fS(l),l=new eJ(l?l.e+l.d+i:0,m.f,i),_k(c,l.e+l.d,m.f),nn(m.d,l),BQ(l,c),c.k=!0),a=null,a=(P=null,s<m.a.c.length-1?P=u(sn(m.a,s+1),172):g<e.c.length&&(Nn(g,e.c.length),u(e.c[g],186)).a.c.length!=0&&(P=u(sn((Nn(g,e.c.length),u(e.c[g],186)).a,0),172)),P),j=!1,a&&(j=!ct(a.j,m)),a){if(a.b.c.length!=0&&!on(un(u(sn(a.b,0),27).of((Bf(),Bj)))))ck(c,t-c.s),fS(c.q),k=k|sje(m,c,a,t,i);else{Uk(m,a);break}if(a.b.c.length==0)for(e.c.length>g&&Uk((Nn(g,e.c.length),u(e.c[g],186)),a),a=null;e.c.length>g&&(Nn(g,e.c.length),u(e.c[g],186)).a.c.length==0;)du(e,(Nn(g,e.c.length),e.c[g]));if(!a){--s;continue}if(!on(un(u(sn(a.b,0),27).of((Bf(),Bj))))&&ZPe(e,m,c,a,j,t,g,i)){k=!0;continue}if(j){if(p=m.b,d=a.f,!on(un(u(sn(a.b,0),27).of(Bj)))&&pAe(e,m,c,a,t,g,i,r)){if(k=!0,p<d){h=!0,a.j=m;break}continue}else if(bY(m,c)){c.c=!0,k=!0;continue}}else if(bY(m,c)){c.c=!0,k=!0;continue}if(k)continue}if(bY(m,c)){c.c=!0,k=!0,a&&(a.k=!1);continue}else fS(c.q)}return new bi((_n(),!!k),!!h)}function cn(){cn=R,PH=(He(),Kue),whn=Bue,Tj=Han,Ws=Fue,C2=qan,dw=Uan,q0=Gan,Cv=zan,Sv=Xan,IH=iA,bw=qd,OH=_ue,G8=Jan,yO=D3,Mj=(stn(),ete),T2=tte,Kd=ite,S2=rte,qte=new Di(Wj,Y(0)),Tv=Yee,bhn=Zee,O3=nte,Mhn=Cte,phn=ote,mhn=hte,LH=pte,vhn=dte,khn=wte,jO=Ote,NH=Ste,jhn=jte,yhn=kte,Ehn=Mte,lw=zee,U8=Xee,MH=hee,Xfn=aee,Vte=v9,Wte=cA,Xte=Jj,zte=rA,ghn=(Gp(),Y0),new Di($3,ghn),fhn=new ob(12),shn=new Di(M1,fhn),Ufn=(El(),Kv),$l=new Di(kan,Ufn),F0=new Di(oo,0),Ute=new Di(oU,Y(1)),oO=new Di(x2,U4),Rd=tA,_t=m9,Mv=H2,xte=Gj,Ch=Pue,K0=B2,Gte=new Di(sU,(_n(),!0)),B0=zj,Dd=Zq,xd=Hd,kO=Sa,SH=V0,qfn=(ci(),Jf),Lo=new Di(_d,qfn),hw=F2,mO=San,_0=W0,Hte=uU,ahn=Fan,lhn=(Kg(),nE),new Di($an,lhn),Bte=tU,Fte=iU,_te=rU,Kte=eU,AH=ute,$d=Dee,Ea=Nee,z8=cte,ou=Cee,Nd=tee,H8=eee,fw=Fne,Ffn=_ne,kH=Gne,Ej=Hne,yH=Zne,rhn=$ee,chn=xee,Zfn=kee,vO=Jee,CH=Bee,TH=wee,ohn=Uee,zfn=see,EH=fee,vH=Uj,uhn=Ree,fO=Lne,Rfn=Ane,sO=One,Jfn=mee,Wfn=pee,Qfn=vee,jv=_2,Rr=mw,m1=jan,Sh=Yq,jH=Qq,_fn=Xne,v1=cU,_8=Aue,wO=Nue,aw=Ran,hhn=Due,Ev=$ue,ehn=Pee,thn=Oee,H0=N3,pH=Ine,ihn=Lee,bO=cee,dO=ree,pO=$v,nhn=Eee,q8=_ee,Cj=Van,Hfn=iee,dhn=Qee,Gfn=uee,Nte=Wne,Dte=Jne,Rte=Tee,$te=Qne,Yfn=nU,gO=See,aO=Yne,Yh=Bne,Bfn=xne,hO=Dne,Kfn=$ne,lO=Rne,R0=Nne,mH=Kne,Vfn=gee}function Ze(n){var e,t,i;if(n.d>=n.j){n.a=-1,n.c=1;return}if(e=Xi(n.i,n.d++),n.a=e,n.b==1){switch(e){case 92:if(i=10,n.d>=n.j)throw T(new Ne($e((Oe(),qP))));n.a=Xi(n.i,n.d++);break;case 45:(n.e&512)==512&&n.d<n.j&&Xi(n.i,n.d)==91?(++n.d,i=24):i=0;break;case 91:if((n.e&512)!=512&&n.d<n.j&&Xi(n.i,n.d)==58){++n.d,i=20;break}default:(e&64512)==Sy&&n.d<n.j&&(t=Xi(n.i,n.d),(t&64512)==56320&&(n.a=hr+(e-Sy<<10)+t-56320,++n.d)),i=0}n.c=i;return}switch(e){case 124:i=2;break;case 42:i=3;break;case 43:i=4;break;case 63:i=5;break;case 41:i=7;break;case 46:i=8;break;case 91:i=9;break;case 94:i=11;break;case 36:i=12;break;case 40:if(i=6,n.d>=n.j||Xi(n.i,n.d)!=63)break;if(++n.d>=n.j)throw T(new Ne($e((Oe(),jF))));switch(e=Xi(n.i,n.d++),e){case 58:i=13;break;case 61:i=14;break;case 33:i=15;break;case 91:i=19;break;case 62:i=18;break;case 60:if(n.d>=n.j)throw T(new Ne($e((Oe(),jF))));if(e=Xi(n.i,n.d++),e==61)i=16;else if(e==33)i=17;else throw T(new Ne($e((Oe(),IWn))));break;case 35:for(;n.d<n.j&&(e=Xi(n.i,n.d++),e!=41););if(e!=41)throw T(new Ne($e((Oe(),OWn))));i=21;break;default:if(e==45||97<=e&&e<=122||65<=e&&e<=90){--n.d,i=22;break}else if(e==40){i=23;break}throw T(new Ne($e((Oe(),jF))))}break;case 92:if(i=10,n.d>=n.j)throw T(new Ne($e((Oe(),qP))));n.a=Xi(n.i,n.d++);break;default:i=0}n.c=i}function BNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(t.Ug("Process compaction",1),!!on(un(v(e,(lc(),Eln))))){for(r=u(v(e,pw),88),p=$(B(v(e,sq))),aOe(n,e,r),tNe(e,p/2/2),m=e.b,ud(m,new lkn(r)),l=ge(m,0);l.b!=l.d.c;)if(h=u(be(l),39),!on(un(v(h,(pt(),Ca))))){if(i=KSe(h,r),k=NIe(h,e),d=0,g=0,i)switch(j=i.e,r.g){case 2:d=j.a-p-h.f.a,k.e.a-p-h.f.a<d&&(d=k.e.a-p-h.f.a),g=d+h.f.a;break;case 1:d=j.a+i.f.a+p,k.e.a+p>d&&(d=k.e.a+k.f.a+p),g=d+h.f.a;break;case 4:d=j.b-p-h.f.b,k.e.b-p-h.f.b<d&&(d=k.e.b-p-h.f.b),g=d+h.f.b;break;case 3:d=j.b+i.f.b+p,k.e.b+p>d&&(d=k.e.b+k.f.b+p),g=d+h.f.b}else if(k)switch(r.g){case 2:d=k.e.a-p-h.f.a,g=d+h.f.a;break;case 1:d=k.e.a+k.f.a+p,g=d+h.f.a;break;case 4:d=k.e.b-p-h.f.b,g=d+h.f.b;break;case 3:d=k.e.b+k.f.b+p,g=d+h.f.b}x(v(e,oq))===x((l5(),Lj))?(c=d,s=g,f=t4(ut(new Cn(null,new On(n.a,16)),new nTn(c,s))),f.a!=null?r==(ci(),Kr)||r==Xr?h.e.a=d:h.e.b=d:(r==(ci(),Kr)||r==us?f=t4(ut(O$n(new Cn(null,new On(n.a,16))),new akn(c))):f=t4(ut(O$n(new Cn(null,new On(n.a,16))),new dkn(c))),f.a!=null&&(r==Kr||r==Xr?h.e.a=$(B((oe(f.a!=null),u(f.a,42)).a)):h.e.b=$(B((oe(f.a!=null),u(f.a,42)).a)))),f.a!=null&&(a=qr(n.a,(oe(f.a!=null),f.a),0),a>0&&a!=u(v(h,Ph),17).a&&(U(h,wln,(_n(),!0)),U(h,Ph,Y(a))))):r==(ci(),Kr)||r==Xr?h.e.a=d:h.e.b=d}t.Vg()}}function kzn(n){var e,t,i,r,c,s,f,h,l;for(n.b=1,Ze(n),e=null,n.c==0&&n.a==94?(Ze(n),e=(nt(),nt(),new yo(4)),xc(e,0,rv),f=new yo(4)):f=(nt(),nt(),new yo(4)),r=!0;(l=n.c)!=1;){if(l==0&&n.a==93&&!r){e&&(z5(e,f),f=e);break}if(t=n.a,i=!1,l==10)switch(t){case 100:case 68:case 119:case 87:case 115:case 83:g0(f,I4(t)),i=!0;break;case 105:case 73:case 99:case 67:t=(g0(f,I4(t)),-1),t<0&&(i=!0);break;case 112:case 80:if(h=Lnn(n,t),!h)throw T(new Ne($e((Oe(),EF))));g0(f,h),i=!0;break;default:t=den(n)}else if(l==24&&!r){if(e&&(z5(e,f),f=e),c=kzn(n),z5(f,c),n.c!=0||n.a!=93)throw T(new Ne($e((Oe(),BWn))));break}if(Ze(n),!i){if(l==0){if(t==91)throw T(new Ne($e((Oe(),xcn))));if(t==93)throw T(new Ne($e((Oe(),Rcn))));if(t==45&&!r&&n.a!=93)throw T(new Ne($e((Oe(),MF))))}if(n.c!=0||n.a!=45||t==45&&r)xc(f,t,t);else{if(Ze(n),(l=n.c)==1)throw T(new Ne($e((Oe(),UP))));if(l==0&&n.a==93)xc(f,t,t),xc(f,45,45);else{if(l==0&&n.a==93||l==24)throw T(new Ne($e((Oe(),MF))));if(s=n.a,l==0){if(s==91)throw T(new Ne($e((Oe(),xcn))));if(s==93)throw T(new Ne($e((Oe(),Rcn))));if(s==45)throw T(new Ne($e((Oe(),MF))))}else l==10&&(s=den(n));if(Ze(n),t>s)throw T(new Ne($e((Oe(),HWn))));xc(f,t,s)}}}r=!1}if(n.c==1)throw T(new Ne($e((Oe(),UP))));return Gg(f),U5(f),n.b=0,Ze(n),f}function FNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;if(t.Ug("Coffman-Graham Layering",1),e.a.c.length==0){t.Vg();return}for(_=u(v(e,(cn(),nhn)),17).a,h=0,s=0,g=new M(e.a);g.a<g.c.c.length;)for(d=u(E(g),10),d.p=h++,c=new ie(ce(Qt(d).a.Kc(),new En));pe(c);)r=u(fe(c),18),r.p=s++;for(n.d=F(so,Xh,28,h,16,1),n.a=F(so,Xh,28,s,16,1),n.b=F(ye,_e,28,h,15,1),n.e=F(ye,_e,28,h,15,1),n.f=F(ye,_e,28,h,15,1),gC(n.c),Rke(n,e),m=new aT(new O7n(n)),D=new M(e.a);D.a<D.c.c.length;){for(O=u(E(D),10),c=new ie(ce(ji(O).a.Kc(),new En));pe(c);)r=u(fe(c),18),n.a[r.p]||++n.b[O.p];n.b[O.p]==0&&Tp(k4(m,O),F4)}for(f=0;m.b.c.length!=0;)for(O=u(w$(m),10),n.f[O.p]=f++,c=new ie(ce(Qt(O).a.Kc(),new En));pe(c);)r=u(fe(c),18),!n.a[r.p]&&(j=r.d.i,--n.b[j.p],In(n.c,j,Y(n.f[O.p])),n.b[j.p]==0&&Tp(k4(m,j),F4));for(p=new aT(new A7n(n)),A=new M(e.a);A.a<A.c.c.length;){for(O=u(E(A),10),c=new ie(ce(Qt(O).a.Kc(),new En));pe(c);)r=u(fe(c),18),n.a[r.p]||++n.e[O.p];n.e[O.p]==0&&Tp(k4(p,O),F4)}for(a=new Z,i=pOn(e,a);p.b.c.length!=0;)for(P=u(w$(p),10),(i.a.c.length>=_||!D8e(P,i))&&(i=pOn(e,a)),$i(P,i),c=new ie(ce(ji(P).a.Kc(),new En));pe(c);)r=u(fe(c),18),!n.a[r.p]&&(k=r.c.i,--n.e[k.p],n.e[k.p]==0&&Tp(k4(p,k),F4));for(l=a.c.length-1;l>=0;--l)nn(e.b,(Nn(l,a.c.length),u(a.c[l],30)));e.a.c.length=0,t.Vg()}function yzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;D=!1;do for(D=!1,c=e?new qa(n.a.b).a.gc()-2:1;e?c>=0:c<new qa(n.a.b).a.gc();c+=e?-1:1)for(r=vJ(n.a,Y(c)),p=0;p<r.b;p++)if(d=u(Zo(r,p),10),!!kt(d,(W(),dt))&&!(_ke(n.a,Y(c))&&n.r==(ps(),ww)||Hke(n.a,Y(c))&&n.r==(ps(),U0))){for(A=!0,P=0;P<r.b;P++)j=u(Zo(r,P),10),kt(j,dt)&&(e&&u(v(d,dt),17).a<u(v(j,dt),17).a||!e&&u(v(d,dt),17).a>u(v(j,dt),17).a)&&(A=!1);if(A){for(h=e?c+1:c-1,f=vJ(n.a,Y(h)),s=!1,O=!0,i=!1,a=ge(f,0);a.b!=a.d.c;)l=u(be(a),10),kt(l,dt)?l.p!=d.p&&(s=s|(e?u(v(l,dt),17).a<u(v(d,dt),17).a:u(v(l,dt),17).a>u(v(d,dt),17).a),O=!1):!s&&O&&l.k==(Vn(),Sc)&&(i=!0,e?g=u(fe(new ie(ce(ji(l).a.Kc(),new En))),18).c.i:g=u(fe(new ie(ce(Qt(l).a.Kc(),new En))),18).d.i,g==d&&(e?t=u(fe(new ie(ce(Qt(l).a.Kc(),new En))),18).d.i:t=u(fe(new ie(ce(ji(l).a.Kc(),new En))),18).c.i,(e?u(xw(n.a,t),17).a-u(xw(n.a,g),17).a:u(xw(n.a,g),17).a-u(xw(n.a,t),17).a)<=2&&(O=!1)));if(i&&O&&(e?t=u(fe(new ie(ce(Qt(d).a.Kc(),new En))),18).d.i:t=u(fe(new ie(ce(ji(d).a.Kc(),new En))),18).c.i,(e?u(xw(n.a,t),17).a-u(xw(n.a,d),17).a:u(xw(n.a,d),17).a-u(xw(n.a,t),17).a)<=2&&t.k==(Vn(),Xt)&&(O=!1)),s||O){for(k=YHn(n,d,e);k.a.gc()!=0;)m=u(k.a.ec().Kc().Pb(),10),k.a.Bc(m)!=null,Ki(k,YHn(n,m,e));--p,D=!0}}}while(D)}function _Ne(n){Te(n.c,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#decimal"])),Te(n.d,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#integer"])),Te(n.e,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#boolean"])),Te(n.f,Ke,S(C(fn,1),J,2,6,[Ji,"EBoolean",Qe,"EBoolean:Object"])),Te(n.i,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#byte"])),Te(n.g,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#hexBinary"])),Te(n.j,Ke,S(C(fn,1),J,2,6,[Ji,"EByte",Qe,"EByte:Object"])),Te(n.n,Ke,S(C(fn,1),J,2,6,[Ji,"EChar",Qe,"EChar:Object"])),Te(n.t,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#double"])),Te(n.u,Ke,S(C(fn,1),J,2,6,[Ji,"EDouble",Qe,"EDouble:Object"])),Te(n.F,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#float"])),Te(n.G,Ke,S(C(fn,1),J,2,6,[Ji,"EFloat",Qe,"EFloat:Object"])),Te(n.I,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#int"])),Te(n.J,Ke,S(C(fn,1),J,2,6,[Ji,"EInt",Qe,"EInt:Object"])),Te(n.N,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#long"])),Te(n.O,Ke,S(C(fn,1),J,2,6,[Ji,"ELong",Qe,"ELong:Object"])),Te(n.Z,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#short"])),Te(n.$,Ke,S(C(fn,1),J,2,6,[Ji,"EShort",Qe,"EShort:Object"])),Te(n._,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#string"]))}function HNe(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m;return g=u(i.a,17).a,p=u(i.b,17).a,d=n.b,m=n.c,f=0,a=0,e==(ci(),Kr)||e==Xr?(a=a7(hKn(Uw(_r(new Cn(null,new On(t.b,16)),new $mn),new pmn))),d.e.b+d.f.b/2>a?(l=++p,f=$(B(ho(_w(_r(new Cn(null,new On(t.b,16)),new iTn(r,l)),new mmn))))):(h=++g,f=$(B(ho(Sp(_r(new Cn(null,new On(t.b,16)),new rTn(r,h)),new vmn)))))):(a=a7(hKn(Uw(_r(new Cn(null,new On(t.b,16)),new Emn),new gmn))),d.e.a+d.f.a/2>a?(l=++p,f=$(B(ho(_w(_r(new Cn(null,new On(t.b,16)),new eTn(r,l)),new kmn))))):(h=++g,f=$(B(ho(Sp(_r(new Cn(null,new On(t.b,16)),new tTn(r,h)),new ymn)))))),e==Kr?(ir(n.a,new V($(B(v(d,(pt(),jf))))-r,f)),ir(n.a,new V(m.e.a+m.f.a+r+c,f)),ir(n.a,new V(m.e.a+m.f.a+r+c,m.e.b+m.f.b/2)),ir(n.a,new V(m.e.a+m.f.a,m.e.b+m.f.b/2))):e==Xr?(ir(n.a,new V($(B(v(d,(pt(),Js))))+r,d.e.b+d.f.b/2)),ir(n.a,new V(d.e.a+d.f.a+r,f)),ir(n.a,new V(m.e.a-r-c,f)),ir(n.a,new V(m.e.a-r-c,m.e.b+m.f.b/2)),ir(n.a,new V(m.e.a,m.e.b+m.f.b/2))):e==us?(ir(n.a,new V(f,$(B(v(d,(pt(),jf))))-r)),ir(n.a,new V(f,m.e.b+m.f.b+r+c)),ir(n.a,new V(m.e.a+m.f.a/2,m.e.b+m.f.b+r+c)),ir(n.a,new V(m.e.a+m.f.a/2,m.e.b+m.f.b+r))):(n.a.b==0||(u($s(n.a),8).b=$(B(v(d,(pt(),Js))))+r*u(s.b,17).a),ir(n.a,new V(f,$(B(v(d,(pt(),Js))))+r*u(s.b,17).a)),ir(n.a,new V(f,m.e.b-r*u(s.a,17).a-c))),new bi(Y(g),Y(p))}function qNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;if(s=!0,d=null,i=null,r=null,e=!1,p=$oe,l=null,c=null,f=0,h=yx(n,f,Bdn,Fdn),h<n.length&&(zn(h,n.length),n.charCodeAt(h)==58)&&(d=(Ri(f,h,n.length),n.substr(f,h-f)),f=h+1),t=d!=null&&t7(jA,d.toLowerCase()),t){if(h=n.lastIndexOf("!/"),h==-1)throw T(new Gn("no archive separator"));s=!0,i=qo(n,f,++h),f=h}else f>=0&&Sn(n.substr(f,2),"//")?(f+=2,h=yx(n,f,A9,L9),i=(Ri(f,h,n.length),n.substr(f,h-f)),f=h):d!=null&&(f==n.length||(zn(f,n.length),n.charCodeAt(f)!=47))&&(s=!1,h=qX(n,wu(35),f),h==-1&&(h=n.length),i=(Ri(f,h,n.length),n.substr(f,h-f)),f=h);if(!t&&f<n.length&&(zn(f,n.length),n.charCodeAt(f)==47)&&(h=yx(n,f+1,A9,L9),a=(Ri(f+1,h,n.length),n.substr(f+1,h-(f+1))),a.length>0&&Xi(a,a.length-1)==58&&(r=a,f=h)),f<n.length&&(zn(f,n.length),n.charCodeAt(f)==47)&&(++f,e=!0),f<n.length&&(zn(f,n.length),n.charCodeAt(f)!=63)&&(zn(f,n.length),n.charCodeAt(f)!=35)){for(g=new Z;f<n.length&&(zn(f,n.length),n.charCodeAt(f)!=63)&&(zn(f,n.length),n.charCodeAt(f)!=35);)h=yx(n,f,A9,L9),nn(g,(Ri(f,h,n.length),n.substr(f,h-f))),f=h,f<n.length&&(zn(f,n.length),n.charCodeAt(f)==47)&&(q6e(n,++f)||g.c.push(""));p=F(fn,J,2,g.c.length,6,1),Rf(g,p)}return f<n.length&&(zn(f,n.length),n.charCodeAt(f)==63)&&(h=bm(n,35,++f),h==-1&&(h=n.length),l=(Ri(f,h,n.length),n.substr(f,h-f)),f=h),f<n.length&&(c=NW(n,++f)),yAe(s,d,i,r,p,l),new jR(s,d,i,r,e,p,l,c)}function jzn(){jzn=R,YR(),qe=new jb,In(qe,(en(),ef),Yf),In(qe,Cs,Yf),In(qe,Wu,Yf),In(qe,tf,Yf),In(qe,vu,Yf),In(qe,Ju,Yf),In(qe,tf,ef),In(qe,Yf,os),In(qe,ef,os),In(qe,Cs,os),In(qe,Wu,os),In(qe,mu,os),In(qe,tf,os),In(qe,vu,os),In(qe,Ju,os),In(qe,su,os),In(qe,Yf,Do),In(qe,ef,Do),In(qe,os,Do),In(qe,Cs,Do),In(qe,Wu,Do),In(qe,mu,Do),In(qe,tf,Do),In(qe,su,Do),In(qe,$o,Do),In(qe,vu,Do),In(qe,xu,Do),In(qe,Ju,Do),In(qe,ef,Cs),In(qe,Wu,Cs),In(qe,tf,Cs),In(qe,Ju,Cs),In(qe,ef,Wu),In(qe,Cs,Wu),In(qe,tf,Wu),In(qe,Wu,Wu),In(qe,vu,Wu),In(qe,Yf,ss),In(qe,ef,ss),In(qe,os,ss),In(qe,Do,ss),In(qe,Cs,ss),In(qe,Wu,ss),In(qe,mu,ss),In(qe,tf,ss),In(qe,$o,ss),In(qe,su,ss),In(qe,Ju,ss),In(qe,vu,ss),In(qe,Uc,ss),In(qe,Yf,$o),In(qe,ef,$o),In(qe,os,$o),In(qe,Cs,$o),In(qe,Wu,$o),In(qe,mu,$o),In(qe,tf,$o),In(qe,su,$o),In(qe,Ju,$o),In(qe,xu,$o),In(qe,Uc,$o),In(qe,ef,su),In(qe,Cs,su),In(qe,Wu,su),In(qe,tf,su),In(qe,$o,su),In(qe,Ju,su),In(qe,vu,su),In(qe,Yf,pu),In(qe,ef,pu),In(qe,os,pu),In(qe,Cs,pu),In(qe,Wu,pu),In(qe,mu,pu),In(qe,tf,pu),In(qe,su,pu),In(qe,Ju,pu),In(qe,ef,vu),In(qe,os,vu),In(qe,Do,vu),In(qe,Wu,vu),In(qe,Yf,xu),In(qe,ef,xu),In(qe,Do,xu),In(qe,Cs,xu),In(qe,Wu,xu),In(qe,mu,xu),In(qe,tf,xu),In(qe,tf,Uc),In(qe,Wu,Uc),In(qe,su,Yf),In(qe,su,Cs),In(qe,su,os),In(qe,mu,Yf),In(qe,mu,ef),In(qe,mu,Do)}function UNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;switch(t.Ug("Brandes & Koepf node placement",1),n.a=e,n.c=CIe(e),i=u(v(e,(cn(),CH)),281),p=on(un(v(e,q8))),n.d=i==(Xk(),YI)&&!p||i==iH,gAe(n,e),_=null,X=null,P=null,O=null,j=(Mo(4,m0),new Gc(4)),u(v(e,CH),281).g){case 3:P=new Wg(e,n.c.d,(If(),Bd),(fh(),y1)),Bn(j.c,P);break;case 1:O=new Wg(e,n.c.d,(If(),Xf),(fh(),y1)),Bn(j.c,O);break;case 4:_=new Wg(e,n.c.d,(If(),Bd),(fh(),gw)),Bn(j.c,_);break;case 2:X=new Wg(e,n.c.d,(If(),Xf),(fh(),gw)),Bn(j.c,X);break;default:P=new Wg(e,n.c.d,(If(),Bd),(fh(),y1)),O=new Wg(e,n.c.d,Xf,y1),_=new Wg(e,n.c.d,Bd,gw),X=new Wg(e,n.c.d,Xf,gw),Bn(j.c,_),Bn(j.c,X),Bn(j.c,P),Bn(j.c,O)}for(r=new GMn(e,n.c),f=new M(j);f.a<f.c.c.length;)c=u(E(f),185),cNe(r,c,n.b),tOe(c);for(g=new tFn(e,n.c),h=new M(j);h.a<h.c.c.length;)c=u(E(h),185),PAe(g,c);if(t._g())for(l=new M(j);l.a<l.c.c.length;)c=u(E(l),185),t.bh(c+" size is "+gR(c));if(d=null,n.d&&(a=JLe(n,j,n.c.d),JUn(e,a,t)&&(d=a)),!d)for(l=new M(j);l.a<l.c.c.length;)c=u(E(l),185),JUn(e,c,t)&&(!d||gR(d)>gR(c))&&(d=c);for(!d&&(d=(Nn(0,j.c.length),u(j.c[0],185))),k=new M(e.b);k.a<k.c.c.length;)for(m=u(E(k),30),D=new M(m.a);D.a<D.c.c.length;)A=u(E(D),10),A.n.b=$(d.p[A.p])+$(d.d[A.p]);for(t._g()&&(t.bh("Chosen node placement: "+d),t.bh("Blocks: "+aHn(d)),t.bh("Classes: "+FMe(d,t)),t.bh("Marked edges: "+n.b)),s=new M(j);s.a<s.c.c.length;)c=u(E(s),185),c.g=null,c.b=null,c.a=null,c.d=null,c.j=null,c.i=null,c.p=null;e3e(n.c),n.b.a.$b(),t.Vg()}function GNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te;if(n.c.length==1)return vFn((Nn(0,n.c.length),u(n.c[0],121))),Nn(0,n.c.length),u(n.c[0],121);if(n.c.length<=0)return new ek;for(h=new M(n);h.a<h.c.c.length;){for(s=u(E(h),121),O=0,m=et,k=et,g=Wi,p=Wi,P=ge(s.b,0);P.b!=P.d.c;)j=u(be(P),39),O+=u(v(j,(lc(),RO)),17).a,m=y.Math.min(m,j.e.a),k=y.Math.min(k,j.e.b),g=y.Math.max(g,j.e.a+j.f.a),p=y.Math.max(p,j.e.b+j.f.b);U(s,(lc(),RO),Y(O)),U(s,(pt(),Av),new V(m,k)),U(s,Nj,new V(g,p))}for(Ln(),Yt(n,new H3n),_=new ek,Ur(_,(Nn(0,n.c.length),u(n.c[0],96))),d=0,Fn=0,l=new M(n);l.a<l.c.c.length;)s=u(E(l),121),X=mi(Fi(u(v(s,(pt(),Nj)),8)),u(v(s,Av),8)),d=y.Math.max(d,X.a),Fn+=X.a*X.b;for(d=y.Math.max(d,y.Math.sqrt(Fn)*$(B(v(_,(lc(),yre))))),tn=$(B(v(_,sq))),Kn=0,te=0,a=0,e=tn,f=new M(n);f.a<f.c.c.length;)s=u(E(f),121),X=mi(Fi(u(v(s,(pt(),Nj)),8)),u(v(s,Av),8)),Kn+X.a>d&&(Kn=0,te+=a+tn,a=0),lUn(_,s,Kn,te),e=y.Math.max(e,Kn+X.a),a=y.Math.max(a,X.b),Kn+=X.a+tn;for(D=new de,t=new de,kn=new M(n);kn.a<kn.c.c.length;)for(jn=u(E(kn),121),i=on(un(v(jn,(He(),Gj)))),A=jn.q?jn.q:Wh,c=A.vc().Kc();c.Ob();)r=u(c.Pb(),44),Zc(D,r.ld())?x(u(r.ld(),149).Sg())!==x(r.md())&&(i&&Zc(t,r.ld())?(fl(),""+u(r.ld(),149).Pg()):(Ve(D,u(r.ld(),149),r.md()),U(_,u(r.ld(),149),r.md()),i&&Ve(t,u(r.ld(),149),r.md()))):(Ve(D,u(r.ld(),149),r.md()),U(_,u(r.ld(),149),r.md()));return vFn(_),_}function XS(n,e){switch(n.e){case 0:case 2:case 4:case 6:case 42:case 44:case 46:case 48:case 8:case 10:case 12:case 14:case 16:case 18:case 20:case 22:case 24:case 26:case 28:case 30:case 32:case 34:case 36:case 38:return new qOn(n.b,n.a,e,n.c);case 1:return new DM(n.a,e,At(e.Dh(),n.c));case 43:return new $Cn(n.a,e,At(e.Dh(),n.c));case 3:return new ti(n.a,e,At(e.Dh(),n.c));case 45:return new Cu(n.a,e,At(e.Dh(),n.c));case 41:return new Ou(u(gs(n.c),29),n.a,e,At(e.Dh(),n.c));case 50:return new ixn(u(gs(n.c),29),n.a,e,At(e.Dh(),n.c));case 5:return new kV(n.a,e,At(e.Dh(),n.c),n.d.n);case 47:return new VSn(n.a,e,At(e.Dh(),n.c),n.d.n);case 7:return new q(n.a,e,At(e.Dh(),n.c),n.d.n);case 49:return new jp(n.a,e,At(e.Dh(),n.c),n.d.n);case 9:return new DCn(n.a,e,At(e.Dh(),n.c));case 11:return new NCn(n.a,e,At(e.Dh(),n.c));case 13:return new DX(n.a,e,At(e.Dh(),n.c));case 15:return new JM(n.a,e,At(e.Dh(),n.c));case 17:return new xCn(n.a,e,At(e.Dh(),n.c));case 19:return new Eg(n.a,e,At(e.Dh(),n.c));case 21:return new $X(n.a,e,At(e.Dh(),n.c));case 23:return new R7(n.a,e,At(e.Dh(),n.c));case 25:return new QSn(n.a,e,At(e.Dh(),n.c),n.d.n);case 27:return new Dn(n.a,e,At(e.Dh(),n.c),n.d.n);case 29:return new JSn(n.a,e,At(e.Dh(),n.c),n.d.n);case 31:return new WSn(n.a,e,At(e.Dh(),n.c),n.d.n);case 33:return new jV(n.a,e,At(e.Dh(),n.c),n.d.n);case 35:return new yV(n.a,e,At(e.Dh(),n.c),n.d.n);case 37:return new DN(n.a,e,At(e.Dh(),n.c),n.d.n);case 39:return new dT(n.a,e,At(e.Dh(),n.c),n.d.n);case 40:return new Ft(e,At(e.Dh(),n.c));default:throw T(new ec("Unknown feature style: "+n.e))}}function Ezn(n){var e,t,i,r,c,s,f,h;for(c=0,r=n.a.b,h=ge(n.a,0);h.b!=h.d.c;){if(f=u(be(h),240),s=(c+1)/(r+1),!n.c&&!n.d)return;n.c&&!n.d?(n.g=!0,n.b==(ci(),Kr)?(i=n.c.e.b+n.c.f.b+n.e*(c+1),e=new V($(B(v(n.c,(pt(),Js))))+n.e,i),t=new V($(B(v(n.c,jf)))-n.e,i)):n.b==Xr?(i=n.c.e.b+n.c.f.b+n.e*(c+1),e=new V($(B(v(n.c,(pt(),jf))))-n.e,i),t=new V($(B(v(n.c,Js)))+n.e,i)):n.b==us?(i=n.c.e.a+n.c.f.a+n.e*(c+1),e=new V(i,$(B(v(n.c,(pt(),Js))))+n.e),t=new V(i,$(B(v(n.c,jf)))-n.e)):(i=n.c.e.a+n.c.f.a+n.e*(c+1),e=new V(i,$(B(v(n.c,(pt(),jf))))-n.e),t=new V(i,$(B(v(n.c,Js)))+n.e))):n.c&&n.d?n.b==(ci(),Kr)?(i=n.d.e.b*s+(n.c.e.b+n.c.f.b)*(1-s),e=new V($(B(v(n.c,(pt(),Js))))+n.e,i),t=new V($(B(v(n.c,jf)))-n.e,i)):n.b==Xr?(i=n.d.e.b*s+(n.c.e.b+n.c.f.b)*(1-s),e=new V($(B(v(n.c,(pt(),jf))))-n.e,i),t=new V($(B(v(n.c,Js)))+n.e,i)):n.b==us?(i=n.d.e.a*s+(n.c.e.a+n.c.f.a)*(1-s),e=new V(i,$(B(v(n.c,(pt(),Js))))+n.e),t=new V(i,$(B(v(n.c,jf)))-n.e)):(i=n.d.e.a*s+(n.c.e.a+n.c.f.a)*(1-s),e=new V(i,$(B(v(n.c,(pt(),jf))))-n.e),t=new V(i,$(B(v(n.c,Js)))+n.e)):(n.f=!0,n.b==(ci(),Kr)?(i=n.d.e.b-n.e*(c+1),e=new V($(B(v(n.d,(pt(),Js))))+n.e,i),t=new V($(B(v(n.d,jf)))-n.e,i)):n.b==Xr?(i=n.d.e.b-n.e*(c+1),e=new V($(B(v(n.d,(pt(),jf))))-n.e,i),t=new V($(B(v(n.d,Js)))+n.e,i)):n.b==us?(i=n.d.e.a-n.e*(c+1),e=new V(i,$(B(v(n.d,(pt(),Js))))+n.e),t=new V(i,$(B(v(n.d,jf)))-n.e)):(i=n.d.e.a-n.e*(c+1),e=new V(i,$(B(v(n.d,(pt(),jf))))-n.e),t=new V(i,$(B(v(n.d,Js)))+n.e))),u(f.a,8).a=e.a,u(f.a,8).b=e.b,f.b.a=t.a,f.b.b=t.b,++c}}function zNe(n,e,t,i,r,c){var s,f,h,l,a,d,g,p,m,k,j,P;switch(e){case 71:f=i.q.getFullYear()-la>=-1900?1:0,t>=4?Be(n,S(C(fn,1),J,2,6,[Kzn,Bzn])[f]):Be(n,S(C(fn,1),J,2,6,["BC","AD"])[f]);break;case 121:f9e(n,t,i);break;case 77:PPe(n,t,i);break;case 107:h=r.q.getHours(),h==0?Kh(n,24,t):Kh(n,h,t);break;case 83:_Te(n,t,r);break;case 69:a=i.q.getDay(),t==5?Be(n,S(C(fn,1),J,2,6,["S","M","T","W","T","F","S"])[a]):t==4?Be(n,S(C(fn,1),J,2,6,[vK,kK,yK,jK,EK,MK,TK])[a]):Be(n,S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[a]);break;case 97:r.q.getHours()>=12&&r.q.getHours()<24?Be(n,S(C(fn,1),J,2,6,["AM","PM"])[1]):Be(n,S(C(fn,1),J,2,6,["AM","PM"])[0]);break;case 104:d=r.q.getHours()%12,d==0?Kh(n,12,t):Kh(n,d,t);break;case 75:g=r.q.getHours()%12,Kh(n,g,t);break;case 72:p=r.q.getHours(),Kh(n,p,t);break;case 99:m=i.q.getDay(),t==5?Be(n,S(C(fn,1),J,2,6,["S","M","T","W","T","F","S"])[m]):t==4?Be(n,S(C(fn,1),J,2,6,[vK,kK,yK,jK,EK,MK,TK])[m]):t==3?Be(n,S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[m]):Kh(n,m,1);break;case 76:k=i.q.getMonth(),t==5?Be(n,S(C(fn,1),J,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[k]):t==4?Be(n,S(C(fn,1),J,2,6,[sK,fK,hK,lK,c3,aK,dK,bK,wK,gK,pK,mK])[k]):t==3?Be(n,S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[k]):Kh(n,k+1,t);break;case 81:j=i.q.getMonth()/3|0,t<4?Be(n,S(C(fn,1),J,2,6,["Q1","Q2","Q3","Q4"])[j]):Be(n,S(C(fn,1),J,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[j]);break;case 100:P=i.q.getDate(),Kh(n,P,t);break;case 109:l=r.q.getMinutes(),Kh(n,l,t);break;case 115:s=r.q.getSeconds(),Kh(n,s,t);break;case 122:t<4?Be(n,c.c[0]):Be(n,c.c[1]);break;case 118:Be(n,c.b);break;case 90:t<3?Be(n,DEe(c)):t==3?Be(n,BEe(c)):Be(n,FEe(c.a));break;default:return!1}return!0}function otn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te,xe;if(nUn(e),h=u(N((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84),a=u(N((!e.c&&(e.c=new Dn(he,e,5,8)),e.c),0),84),f=Gr(h),l=Gr(a),s=(!e.a&&(e.a=new q(Tt,e,6,6)),e.a).i==0?null:u(N((!e.a&&(e.a=new q(Tt,e,6,6)),e.a),0),166),tn=u(ee(n.a,f),10),Kn=u(ee(n.a,l),10),jn=null,te=null,L(h,193)&&(X=u(ee(n.a,h),304),L(X,12)?jn=u(X,12):L(X,10)&&(tn=u(X,10),jn=u(sn(tn.j,0),12))),L(a,193)&&(Fn=u(ee(n.a,a),304),L(Fn,12)?te=u(Fn,12):L(Fn,10)&&(Kn=u(Fn,10),te=u(sn(Kn.j,0),12))),!tn||!Kn)throw T(new hp("The source or the target of edge "+e+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(k=new yb,Ur(k,e),U(k,(W(),st),e),U(k,(cn(),Rr),null),p=u(v(i,Hc),21),tn==Kn&&p.Fc((pr(),x8)),jn||(_=(gr(),Jc),kn=null,s&&mg(u(v(tn,_t),101))&&(kn=new V(s.j,s.k),qLn(kn,X7(e)),pNn(kn,t),Yw(l,f)&&(_=Vu,it(kn,tn.n))),jn=eGn(tn,kn,_,i)),te||(_=(gr(),Vu),xe=null,s&&mg(u(v(Kn,_t),101))&&(xe=new V(s.b,s.c),qLn(xe,X7(e)),pNn(xe,t)),te=eGn(Kn,xe,_,Hi(Kn))),Zi(k,jn),Oi(k,te),(jn.e.c.length>1||jn.g.c.length>1||te.e.c.length>1||te.g.c.length>1)&&p.Fc((pr(),$8)),g=new ne((!e.n&&(e.n=new q(Sr,e,1,7)),e.n));g.e!=g.i.gc();)if(d=u(ue(g),135),!on(un(z(d,Rd)))&&d.a)switch(j=ex(d),nn(k.b,j),u(v(j,Sh),278).g){case 1:case 2:p.Fc((pr(),vv));break;case 0:p.Fc((pr(),mv)),U(j,Sh,($f(),xv))}if(c=u(v(i,H8),322),P=u(v(i,vO),323),r=c==(i5(),gj)||P==(E5(),BH),s&&(!s.a&&(s.a=new ti(xo,s,5)),s.a).i!=0&&r){for(O=Jk(s),m=new Tu,D=ge(O,0);D.b!=D.d.c;)A=u(be(D),8),Re(m,new rr(A));U(k,tfn,m)}return k}function XNe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te,xe,Nt;for(kn=0,Fn=0,tn=new de,_=u(ho(_w(_r(new Cn(null,new On(n.b,16)),new jmn),new Omn)),17).a+1,jn=F(ye,_e,28,_,15,1),j=F(ye,_e,28,_,15,1),k=0;k<_;k++)jn[k]=0,j[k]=0;for(h=u(Wr(rJ(new Cn(null,new On(n.a,16))),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),a=h.Kc();a.Ob();)if(l=u(a.Pb(),65),te=u(v(l.b,(lc(),Ph)),17).a,Nt=u(v(l.c,Ph),17).a,D=Nt-te,D>1)for(f=te+1;f<Nt;f++){if(d=f,X=u(Wr(ut(new Cn(null,new On(n.b,16)),new kkn(d)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),m=0,e==(ci(),Kr)||e==Xr){for(X.jd(new Pmn),m=0;m<X.gc()&&(P=(f-te)/(Nt-te),!(u(X.Xb(m),39).e.b>l.b.e.b*(1-P)+l.c.e.b*P));m++);if(X.gc()>0&&(xe=l.a.b==0?Fi(l.b.e):u($s(l.a),8),A=it(Fi(u(X.Xb(X.gc()-1),39).e),u(X.Xb(X.gc()-1),39).f),g=it(Fi(u(X.Xb(0),39).e),u(X.Xb(0),39).f),m>=X.gc()-1&&xe.b>A.b&&l.c.e.b>A.b||m<=0&&xe.b<g.a&&l.c.e.b<g.b))continue}else{for(X.jd(new Imn),m=0;m<X.gc()&&(P=(f-te)/(Nt-te),!(u(X.Xb(m),39).e.a>l.b.e.a*(1-P)+l.c.e.a*P));m++);if(X.gc()>0&&(xe=l.a.b==0?Fi(l.b.e):u($s(l.a),8),A=it(Fi(u(X.Xb(X.gc()-1),39).e),u(X.Xb(X.gc()-1),39).f),g=it(Fi(u(X.Xb(0),39).e),u(X.Xb(0),39).f),m>=X.gc()-1&&xe.a>A.a&&l.c.e.a>A.a||m<=0&&xe.a<g.a&&l.c.e.a<g.a))continue}r=new Ni,c=new Ni,Re(l.a,r),Re(l.a,c),s=new _N(r,c,l),O=lf(Ks(f,32),vi(m,mr)),Zc(tn,Tl(O))?(p=u(ee(tn,Tl(O)),675),Re(p.a,s),hl(p.b)?ud(p.a,new xmn):ud(p.a,new Rmn),Ezn(p)):(p=new xBn(m==0?null:u(X.Xb(m-1),39),m==X.gc()?null:u(X.Xb(m),39),s,n),Ve(tn,Tl(O),p)),e==Kr||e==Xr?(p.f&&p.d.e.b<=$(B(v(n,(pt(),rq))))&&++kn,p.g&&p.c.e.b+p.c.f.b>=$(B(v(n,(pt(),mln))))&&++Fn):(p.f&&p.d.e.a<=$(B(v(n,(pt(),iq))))&&++kn,p.g&&p.c.e.a+p.c.f.a>=$(B(v(n,(pt(),pln))))&&++Fn)}else D==0?Inn(l):D<0&&(++jn[te],++j[Nt],Kn=HNe(l,e,n,new bi(Y(kn),Y(Fn)),t,i,new bi(Y(j[Nt]),Y(jn[te]))),kn=u(Kn.a,17).a,Fn=u(Kn.b,17).a)}function VNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;if(i=e,h=t,n.b&&i.j==(en(),Wn)&&h.j==(en(),Wn)&&(O=i,i=h,h=O),Zc(n.a,i)){if(sf(u(ee(n.a,i),49),h))return 1}else Ve(n.a,i,new ni);if(Zc(n.a,h)){if(sf(u(ee(n.a,h),49),i))return-1}else Ve(n.a,h,new ni);if(Zc(n.d,i)){if(sf(u(ee(n.d,i),49),h))return-1}else Ve(n.d,i,new ni);if(Zc(n.d,h)){if(sf(u(ee(n.a,h),49),i))return 1}else Ve(n.d,h,new ni);if(i.j!=h.j)return P=xle(i.j,h.j),P==-1?ns(n,h,i):ns(n,i,h),P;if(i.e.c.length!=0&&h.e.c.length!=0){if(n.b&&(P=KRn(i,h),P!=0))return P==-1?ns(n,h,i):P==1&&ns(n,i,h),P;if(c=u(sn(i.e,0),18).c.i,a=u(sn(h.e,0),18).c.i,c==a)return r=u(v(u(sn(i.e,0),18),(W(),dt)),17).a,l=u(v(u(sn(h.e,0),18),dt),17).a,r>l?ns(n,i,h):ns(n,h,i),r<l?-1:r>l?1:0;for(m=n.c,k=0,j=m.length;k<j;++k){if(p=m[k],p==c)return ns(n,i,h),1;if(p==a)return ns(n,h,i),-1}}return i.g.c.length!=0&&h.g.c.length!=0?(f=u(v(i,(W(),aH)),10),g=u(v(h,aH),10),n.e==(lh(),HH)&&f&&g&&kt(f,dt)&&kt(g,dt)?(r=u(v(f,dt),17).a,l=u(v(g,dt),17).a,r>l?ns(n,i,h):ns(n,h,i),r<l?-1:r>l?1:0):n.b&&(P=KRn(i,h),P!=0)?(P==-1?ns(n,h,i):P==1&&ns(n,i,h),P):(s=0,d=0,kt(u(sn(i.g,0),18),dt)&&(s=u(v(u(sn(i.g,0),18),dt),17).a),kt(u(sn(h.g,0),18),dt)&&(d=u(v(u(sn(i.g,0),18),dt),17).a),f&&f==g?on(un(v(u(sn(i.g,0),18),zf)))&&!on(un(v(u(sn(h.g,0),18),zf)))?(ns(n,i,h),1):!on(un(v(u(sn(i.g,0),18),zf)))&&on(un(v(u(sn(h.g,0),18),zf)))?(ns(n,h,i),-1):(s>d?ns(n,i,h):ns(n,h,i),s<d?-1:s>d?1:0):(n.f&&(n.f._b(f)&&(s=u(n.f.xc(f),17).a),n.f._b(g)&&(d=u(n.f.xc(g),17).a)),s>d?ns(n,i,h):ns(n,h,i),s<d?-1:s>d?1:0))):i.e.c.length!=0&&h.g.c.length!=0?(ns(n,i,h),1):i.g.c.length!=0&&h.e.c.length!=0?(ns(n,h,i),-1):kt(i,(W(),dt))&&kt(h,dt)?(r=u(v(i,dt),17).a,l=u(v(h,dt),17).a,r>l?ns(n,i,h):ns(n,h,i),r<l?-1:r>l?1:0):(ns(n,h,i),-1)}function WNe(n){n.gb||(n.gb=!0,n.b=hc(n,0),Rt(n.b,18),jt(n.b,19),n.a=hc(n,1),Rt(n.a,1),jt(n.a,2),jt(n.a,3),jt(n.a,4),jt(n.a,5),n.o=hc(n,2),Rt(n.o,8),Rt(n.o,9),jt(n.o,10),jt(n.o,11),jt(n.o,12),jt(n.o,13),jt(n.o,14),jt(n.o,15),jt(n.o,16),jt(n.o,17),jt(n.o,18),jt(n.o,19),jt(n.o,20),jt(n.o,21),jt(n.o,22),jt(n.o,23),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),n.p=hc(n,3),Rt(n.p,2),Rt(n.p,3),Rt(n.p,4),Rt(n.p,5),jt(n.p,6),jt(n.p,7),Dr(n.p),Dr(n.p),n.q=hc(n,4),Rt(n.q,8),n.v=hc(n,5),jt(n.v,9),Dr(n.v),Dr(n.v),Dr(n.v),n.w=hc(n,6),Rt(n.w,2),Rt(n.w,3),Rt(n.w,4),jt(n.w,5),n.B=hc(n,7),jt(n.B,1),Dr(n.B),Dr(n.B),Dr(n.B),n.Q=hc(n,8),jt(n.Q,0),Dr(n.Q),n.R=hc(n,9),Rt(n.R,1),n.S=hc(n,10),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),n.T=hc(n,11),jt(n.T,10),jt(n.T,11),jt(n.T,12),jt(n.T,13),jt(n.T,14),Dr(n.T),Dr(n.T),n.U=hc(n,12),Rt(n.U,2),Rt(n.U,3),jt(n.U,4),jt(n.U,5),jt(n.U,6),jt(n.U,7),Dr(n.U),n.V=hc(n,13),jt(n.V,10),n.W=hc(n,14),Rt(n.W,18),Rt(n.W,19),Rt(n.W,20),jt(n.W,21),jt(n.W,22),jt(n.W,23),n.bb=hc(n,15),Rt(n.bb,10),Rt(n.bb,11),Rt(n.bb,12),Rt(n.bb,13),Rt(n.bb,14),Rt(n.bb,15),Rt(n.bb,16),jt(n.bb,17),Dr(n.bb),Dr(n.bb),n.eb=hc(n,16),Rt(n.eb,2),Rt(n.eb,3),Rt(n.eb,4),Rt(n.eb,5),Rt(n.eb,6),Rt(n.eb,7),jt(n.eb,8),jt(n.eb,9),n.ab=hc(n,17),Rt(n.ab,0),Rt(n.ab,1),n.H=hc(n,18),jt(n.H,0),jt(n.H,1),jt(n.H,2),jt(n.H,3),jt(n.H,4),jt(n.H,5),Dr(n.H),n.db=hc(n,19),jt(n.db,2),n.c=Je(n,20),n.d=Je(n,21),n.e=Je(n,22),n.f=Je(n,23),n.i=Je(n,24),n.g=Je(n,25),n.j=Je(n,26),n.k=Je(n,27),n.n=Je(n,28),n.r=Je(n,29),n.s=Je(n,30),n.t=Je(n,31),n.u=Je(n,32),n.fb=Je(n,33),n.A=Je(n,34),n.C=Je(n,35),n.D=Je(n,36),n.F=Je(n,37),n.G=Je(n,38),n.I=Je(n,39),n.J=Je(n,40),n.L=Je(n,41),n.M=Je(n,42),n.N=Je(n,43),n.O=Je(n,44),n.P=Je(n,45),n.X=Je(n,46),n.Y=Je(n,47),n.Z=Je(n,48),n.$=Je(n,49),n._=Je(n,50),n.cb=Je(n,51),n.K=Je(n,52))}function JNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te;for(s=new Mt,X=u(v(t,(cn(),Lo)),88),k=0,Ki(s,(!e.a&&(e.a=new q(Ye,e,10,11)),e.a));s.b!=0;)a=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),27),l=St(a),(x(z(l,Yh))!==x((lh(),k1))||x(z(l,Nd))===x((o1(),gv))||x(z(l,Nd))===x((o1(),wv))||on(un(z(l,fw)))||x(z(l,R0))!==x((dd(),A0))||x(z(l,Ea))===x((ps(),ww))||x(z(l,Ea))===x((ps(),U0))||x(z(l,$d))===x((a1(),Pv))||x(z(l,$d))===x((a1(),Iv)))&&!on(un(z(a,lO)))&&ht(a,(W(),dt),Y(k++)),P=!on(un(z(a,Rd))),P&&(g=(!a.a&&(a.a=new q(Ye,a,10,11)),a.a).i!=0,m=Tye(a),p=x(z(a,K0))===x((jl(),T1)),te=!Nf(a,(He(),Dv))||TNn(Ae(z(a,Dv))),D=null,te&&p&&(g||m)&&(D=$Un(a),U(D,Lo,X),kt(D,Mj)&&$jn(new GY($(B(v(D,Mj)))),D),u(z(a,xd),181).gc()!=0&&(d=D,Ut(new Cn(null,(!a.c&&(a.c=new q(Qu,a,9,9)),new On(a.c,16))),new H9n(d)),Sqn(a,D))),tn=t,jn=u(ee(n.a,St(a)),10),jn&&(tn=jn.e),A=szn(n,a,tn),D&&(A.e=D,D.e=A,Ki(s,(!a.a&&(a.a=new q(Ye,a,10,11)),a.a))));for(k=0,xt(s,e,s.c.b,s.c);s.b!=0;){for(c=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),27),h=new ne((!c.b&&(c.b=new q(Vt,c,12,3)),c.b));h.e!=h.i.gc();)f=u(ue(h),74),nUn(f),(x(z(e,Yh))!==x((lh(),k1))||x(z(e,Nd))===x((o1(),gv))||x(z(e,Nd))===x((o1(),wv))||on(un(z(e,fw)))||x(z(e,R0))!==x((dd(),A0))||x(z(e,Ea))===x((ps(),ww))||x(z(e,Ea))===x((ps(),U0))||x(z(e,$d))===x((a1(),Pv))||x(z(e,$d))===x((a1(),Iv)))&&ht(f,(W(),dt),Y(k++)),Fn=Gr(u(N((!f.b&&(f.b=new Dn(he,f,4,7)),f.b),0),84)),Kn=Gr(u(N((!f.c&&(f.c=new Dn(he,f,5,8)),f.c),0),84)),!(on(un(z(f,Rd)))||on(un(z(Fn,Rd)))||on(un(z(Kn,Rd))))&&(j=Bb(f)&&on(un(z(Fn,B0)))&&on(un(z(f,Dd))),_=c,j||Yw(Kn,Fn)?_=Fn:Yw(Fn,Kn)&&(_=Kn),tn=t,jn=u(ee(n.a,_),10),jn&&(tn=jn.e),O=otn(n,f,_,tn),U(O,(W(),Ysn),JCe(n,f,e,t)));if(p=x(z(c,K0))===x((jl(),T1)),p)for(r=new ne((!c.a&&(c.a=new q(Ye,c,10,11)),c.a));r.e!=r.i.gc();)i=u(ue(r),27),te=!Nf(i,(He(),Dv))||TNn(Ae(z(i,Dv))),kn=x(z(i,K0))===x(T1),te&&kn&&xt(s,i,s.c.b,s.c)}}function W(){W=R;var n,e;st=new lt(Xtn),Ysn=new lt("coordinateOrigin"),bH=new lt("processors"),Qsn=new Lt("compoundNode",(_n(),!1)),kj=new Lt("insideConnections",!1),tfn=new lt("originalBendpoints"),ifn=new lt("originalDummyNodePosition"),rfn=new lt("originalLabelEdge"),K8=new lt("representedLabels"),R8=new lt("endLabels"),T3=new lt("endLabel.origin"),S3=new Lt("labelSide",(Co(),Zj)),y2=new Lt("maxEdgeThickness",0),zf=new Lt("reversed",!1),P3=new lt(TXn),yf=new Lt("longEdgeSource",null),Es=new Lt("longEdgeTarget",null),$0=new Lt("longEdgeHasLabelDummies",!1),yj=new Lt("longEdgeBeforeLabelDummy",!1),rO=new Lt("edgeConstraint",(hd(),Q_)),uw=new lt("inLayerLayoutUnit"),Ad=new Lt("inLayerConstraint",(vl(),mj)),C3=new Lt("inLayerSuccessorConstraint",new Z),efn=new Lt("inLayerSuccessorConstraintBetweenNonDummies",!1),Xu=new lt("portDummy"),iO=new Lt("crossingHint",Y(0)),Hc=new Lt("graphProperties",(e=u(of(rH),9),new _o(e,u(xs(e,e.length),9),0))),gc=new Lt("externalPortSide",(en(),sc)),nfn=new Lt("externalPortSize",new Ni),fH=new lt("externalPortReplacedDummies"),cO=new lt("externalPortReplacedDummy"),Dl=new Lt("externalPortConnections",(n=u(of(lr),9),new _o(n,u(xs(n,n.length),9),0))),ow=new Lt(gXn,0),Jsn=new lt("barycenterAssociates"),I3=new lt("TopSideComments"),M3=new lt("BottomSideComments"),tO=new lt("CommentConnectionPort"),lH=new Lt("inputCollect",!1),dH=new Lt("outputCollect",!1),vj=new Lt("cyclic",!1),Zsn=new lt("crossHierarchyMap"),gH=new lt("targetOffset"),new Lt("splineLabelSize",new Ni),E2=new lt("spacings"),uO=new Lt("partitionConstraint",!1),cw=new lt("breakingPoint.info"),ofn=new lt("splines.survivingEdge"),Ld=new lt("splines.route.start"),M2=new lt("splines.edgeChain"),ufn=new lt("originalPortConstraints"),sw=new lt("selfLoopHolder"),yv=new lt("splines.nsPortY"),dt=new lt("modelOrder"),aH=new lt("longEdgeTargetNode"),ya=new Lt(QXn,!1),j2=new Lt(QXn,!1),hH=new lt("layerConstraints.hiddenNodes"),cfn=new lt("layerConstraints.opposidePort"),wH=new lt("targetNode.modelOrder")}function QNe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;for(d=ge(n.b,0);d.b!=d.d.c;)if(a=u(be(d),39),!Sn(a.c,OP))for(c=u(Wr(new Cn(null,new On(uMe(a,n),16)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),e==(ci(),Kr)||e==Xr?c.jd(new Cmn):c.jd(new Smn),m=c.gc(),r=0;r<m;r++)s=m==1?.5:(1+r)/(m+1),e==Kr?(l=$(B(v(a,(pt(),Js)))),a.e.a+a.f.a+i<l?ir(u(c.Xb(r),65).a,new V(l+t,a.e.b+a.f.b*s)):u(c.Xb(r),65).a.b>0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(h-p)/(y.Math.abs(f-g)/40)>50&&(p>h?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a+i/5.3,a.e.b+a.f.b*s-i/2)):ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a+i/5.3,a.e.b+a.f.b*s+i/2)))),ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a,a.e.b+a.f.b*s))):e==Xr?(l=$(B(v(a,(pt(),jf)))),a.e.a-i>l?ir(u(c.Xb(r),65).a,new V(l-t,a.e.b+a.f.b*s)):u(c.Xb(r),65).a.b>0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(h-p)/(y.Math.abs(f-g)/40)>50&&(p>h?ir(u(c.Xb(r),65).a,new V(a.e.a-i/5.3,a.e.b+a.f.b*s-i/2)):ir(u(c.Xb(r),65).a,new V(a.e.a-i/5.3,a.e.b+a.f.b*s+i/2)))),ir(u(c.Xb(r),65).a,new V(a.e.a,a.e.b+a.f.b*s))):e==us?(l=$(B(v(a,(pt(),Js)))),a.e.b+a.f.b+i<l?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,l+t)):u(c.Xb(r),65).a.b>0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(f-g)/(y.Math.abs(h-p)/40)>50&&(g>f?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s-i/2,a.e.b+i/5.3+a.f.b)):ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s+i/2,a.e.b+i/5.3+a.f.b)))),ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,a.e.b+a.f.b))):(l=$(B(v(a,(pt(),jf)))),MRn(u(c.Xb(r),65),n)?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,u($s(u(c.Xb(r),65).a),8).b)):a.e.b-i>l?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,l-t)):u(c.Xb(r),65).a.b>0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(f-g)/(y.Math.abs(h-p)/40)>50&&(g>f?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s-i/2,a.e.b-i/5.3)):ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s+i/2,a.e.b-i/5.3)))),ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,a.e.b)))}function He(){He=R;var n,e;Dv=new lt(xVn),q2=new lt(RVn),wan=(Bh(),zq),Pue=new Tn(ern,wan),x2=new Tn(l3,null),Iue=new lt(bcn),pan=(wd(),yt(Wq,S(C(Jq,1),G,297,0,[Vq]))),Uj=new Tn(TP,pan),Gj=new Tn(qy,(_n(),!1)),man=(ci(),Jf),_d=new Tn(xB,man),yan=(El(),fU),kan=new Tn(Hy,yan),Lue=new Tn(acn,!1),Man=(jl(),uA),B2=new Tn(MP,Man),Nan=new ob(12),M1=new Tn(Xb,Nan),Xj=new Tn(e8,!1),nU=new Tn(SP,!1),Vj=new Tn(t8,!1),Kan=(Ai(),Oa),m9=new Tn(tB,Kan),N3=new lt(CP),Wj=new lt(Ny),oU=new lt(uP),sU=new lt(n8),Tan=new Tu,mw=new Tn(arn,Tan),Aue=new Tn(wrn,!1),Nue=new Tn(grn,!1),Can=new Wv,$v=new Tn(mrn,Can),tA=new Tn(Zin,!1),Rue=new Tn(KVn,1),K2=new lt(BVn),R2=new lt(FVn),v9=new Tn(Dy,!1),new Tn(_Vn,!0),Y(0),new Tn(HVn,Y(100)),new Tn(qVn,!1),Y(0),new Tn(UVn,Y(4e3)),Y(0),new Tn(GVn,Y(400)),new Tn(zVn,!1),new Tn(XVn,!1),new Tn(VVn,!0),new Tn(WVn,!1),gan=(qC(),dU),Oue=new Tn(dcn,gan),Kue=new Tn(Hin,10),Bue=new Tn(qin,10),Han=new Tn(WK,20),Fue=new Tn(Uin,10),qan=new Tn(eB,2),Uan=new Tn($B,10),Gan=new Tn(Gin,0),iA=new Tn(Vin,5),zan=new Tn(zin,1),Xan=new Tn(Xin,1),qd=new Tn(y0,20),_ue=new Tn(Win,10),Jan=new Tn(Jin,10),D3=new lt(Qin),Wan=new eCn,Van=new Tn(vrn,Wan),$ue=new lt(KB),Dan=!1,Due=new Tn(RB,Dan),Pan=new ob(5),San=new Tn(rrn,Pan),Ian=(l0(),e=u(of(yr),9),new _o(e,u(xs(e,e.length),9),0)),F2=new Tn(z4,Ian),xan=(Kg(),Ia),$an=new Tn(orn,xan),tU=new lt(srn),iU=new lt(frn),rU=new lt(hrn),eU=new lt(lrn),Oan=(n=u(of(S9),9),new _o(n,u(xs(n,n.length),9),0)),Hd=new Tn(r2,Oan),Lan=yn((io(),Fv)),Sa=new Tn(a3,Lan),Aan=new V(0,0),_2=new Tn(d3,Aan),V0=new Tn(G4,!1),van=($f(),xv),Yq=new Tn(drn,van),Qq=new Tn(oP,!1),Y(1),new Tn(JVn,null),Ran=new lt(prn),cU=new lt(brn),_an=(en(),sc),H2=new Tn(nrn,_an),oo=new lt(Yin),Ban=(zu(),yn(Aa)),W0=new Tn(X4,Ban),uU=new Tn(crn,!1),Fan=new Tn(urn,!0),cA=new Tn($y,1),Qan=new Tn(wcn,null),Jj=new Tn(xy,150),rA=new Tn(Ry,1.414),$3=new Tn(Vb,null),Hue=new Tn(gcn,1),zj=new Tn(trn,!1),Zq=new Tn(irn,!1),jan=new Tn(JK,1),Ean=(pS(),lU),new Tn(QVn,Ean),xue=!0,Uue=(Gp(),Y0),Gue=Y0,que=Y0}function tr(){tr=R,Won=new ei("DIRECTION_PREPROCESSOR",0),zon=new ei("COMMENT_PREPROCESSOR",1),b2=new ei("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),N_=new ei("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),bsn=new ei("PARTITION_PREPROCESSOR",4),OI=new ei("LABEL_DUMMY_INSERTER",5),FI=new ei("SELF_LOOP_PREPROCESSOR",6),N0=new ei("LAYER_CONSTRAINT_PREPROCESSOR",7),asn=new ei("PARTITION_MIDPROCESSOR",8),isn=new ei("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),hsn=new ei("NODE_PROMOTION",10),L0=new ei("LAYER_CONSTRAINT_POSTPROCESSOR",11),dsn=new ei("PARTITION_POSTPROCESSOR",12),nsn=new ei("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),wsn=new ei("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),Fon=new ei("BREAKING_POINT_INSERTER",15),DI=new ei("LONG_EDGE_SPLITTER",16),D_=new ei("PORT_SIDE_PROCESSOR",17),PI=new ei("INVERTED_PORT_PROCESSOR",18),RI=new ei("PORT_LIST_SORTER",19),psn=new ei("SORT_BY_INPUT_ORDER_OF_MODEL",20),xI=new ei("NORTH_SOUTH_PORT_PREPROCESSOR",21),_on=new ei("BREAKING_POINT_PROCESSOR",22),lsn=new ei(qXn,23),msn=new ei(UXn,24),KI=new ei("SELF_LOOP_PORT_RESTORER",25),gsn=new ei("SINGLE_EDGE_GRAPH_WRAPPER",26),II=new ei("IN_LAYER_CONSTRAINT_PROCESSOR",27),Qon=new ei("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),ssn=new ei("LABEL_AND_NODE_SIZE_PROCESSOR",29),osn=new ei("INNERMOST_NODE_MARGIN_CALCULATOR",30),_I=new ei("SELF_LOOP_ROUTER",31),Uon=new ei("COMMENT_NODE_MARGIN_CALCULATOR",32),SI=new ei("END_LABEL_PREPROCESSOR",33),LI=new ei("LABEL_DUMMY_SWITCHER",34),qon=new ei("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),fv=new ei("LABEL_SIDE_SELECTOR",36),csn=new ei("HYPEREDGE_DUMMY_MERGER",37),esn=new ei("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),fsn=new ei("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),A8=new ei("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),Xon=new ei("CONSTRAINTS_POSTPROCESSOR",41),Gon=new ei("COMMENT_POSTPROCESSOR",42),usn=new ei("HYPERNODE_PROCESSOR",43),tsn=new ei("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),NI=new ei("LONG_EDGE_JOINER",45),BI=new ei("SELF_LOOP_POSTPROCESSOR",46),Hon=new ei("BREAKING_POINT_REMOVER",47),$I=new ei("NORTH_SOUTH_PORT_POSTPROCESSOR",48),rsn=new ei("HORIZONTAL_COMPACTOR",49),AI=new ei("LABEL_DUMMY_REMOVER",50),Yon=new ei("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),Jon=new ei("END_LABEL_SORTER",52),dj=new ei("REVERSED_EDGE_RESTORER",53),CI=new ei("END_LABEL_POSTPROCESSOR",54),Zon=new ei("HIERARCHICAL_NODE_RESIZER",55),Von=new ei("DIRECTION_POSTPROCESSOR",56)}function stn(){stn=R,mfn=(bk(),WI),iee=new Tn(iin,mfn),wee=new Tn(rin,(_n(),!1)),Mfn=(FT(),sH),kee=new Tn(lP,Mfn),$ee=new Tn(cin,!1),xee=new Tn(uin,!0),Ine=new Tn(oin,!1),Lfn=(ak(),qH),Qee=new Tn(sin,Lfn),Y(1),cte=new Tn(fin,Y(7)),ute=new Tn(hin,!1),gee=new Tn(lin,!1),pfn=(o1(),W_),tee=new Tn(fB,pfn),Sfn=(a1(),$H),Dee=new Tn(_y,Sfn),Tfn=(Yo(),jj),Cee=new Tn(ain,Tfn),Y(-1),Tee=new Tn(din,null),Y(-1),See=new Tn(bin,Y(-1)),Y(-1),Pee=new Tn(hB,Y(4)),Y(-1),Oee=new Tn(lB,Y(2)),Cfn=(ps(),SO),Nee=new Tn(aB,Cfn),Y(0),Lee=new Tn(dB,Y(0)),Eee=new Tn(bB,Y(et)),gfn=(i5(),N8),eee=new Tn(c8,gfn),Fne=new Tn(win,!1),Xne=new Tn(wB,.1),Zne=new Tn(gB,!1),Wne=new Tn(gin,null),Jne=new Tn(pin,null),Y(-1),Qne=new Tn(min,null),Y(-1),Yne=new Tn(vin,Y(-1)),Y(0),_ne=new Tn(kin,Y(40)),wfn=(Ym(),uH),Gne=new Tn(pB,wfn),bfn=pj,Hne=new Tn(aP,bfn),Afn=(E5(),X8),Jee=new Tn(c2,Afn),_ee=new lt(dP),Pfn=(ok(),QI),Ree=new Tn(mB,Pfn),Ifn=(Xk(),YI),Bee=new Tn(vB,Ifn),Uee=new Tn(kB,.3),zee=new lt(yB),Ofn=(c0(),CO),Xee=new Tn(jB,Ofn),yfn=(PC(),GH),see=new Tn(yin,yfn),jfn=(h5(),XH),fee=new Tn(jin,jfn),Efn=(u4(),J8),hee=new Tn(bP,Efn),aee=new Tn(wP,.2),uee=new Tn(EB,2),ete=new Tn(Ein,null),ite=new Tn(Min,10),tte=new Tn(Tin,10),rte=new Tn(Cin,20),Y(0),Yee=new Tn(Sin,Y(0)),Y(0),Zee=new Tn(Pin,Y(0)),Y(0),nte=new Tn(Iin,Y(0)),One=new Tn(MB,!1),hfn=(y4(),D8),Lne=new Tn(Oin,hfn),ffn=(QT(),X_),Ane=new Tn(Ain,ffn),mee=new Tn(gP,!1),Y(0),pee=new Tn(TB,Y(16)),Y(0),vee=new Tn(CB,Y(5)),$fn=(LC(),JH),Cte=new Tn(Al,$fn),ote=new Tn(pP,10),hte=new Tn(mP,1),Dfn=(bC(),VI),pte=new Tn(u8,Dfn),dte=new lt(SB),Nfn=Y(1),Y(0),wte=new Tn(PB,Nfn),xfn=(dC(),WH),Ote=new Tn(vP,xfn),Ste=new lt(kP),jte=new Tn(yP,!0),kte=new Tn(jP,2),Mte=new Tn(IB,!0),kfn=(vS(),JI),cee=new Tn(Lin,kfn),vfn=(Yp(),dv),ree=new Tn(Nin,vfn),dfn=(lh(),k1),Bne=new Tn(EP,dfn),Kne=new Tn(Din,!1),Rne=new Tn($in,!1),lfn=(dd(),A0),Nne=new Tn(OB,lfn),afn=(d5(),xH),xne=new Tn(xin,afn),Dne=new Tn(AB,0),$ne=new Tn(LB,0),jee=J_,yee=gj,Iee=MO,Aee=MO,Mee=DH,Vne=(jl(),T1),nee=N8,zne=N8,qne=N8,Une=T1,Hee=V8,qee=X8,Kee=X8,Fee=X8,Gee=FH,Wee=V8,Vee=V8,lee=(El(),x3),dee=x3,bee=J8,oee=Qj,ste=Ov,fte=G0,lte=Ov,ate=G0,mte=Ov,vte=G0,bte=V_,gte=VI,Ate=Ov,Lte=G0,Pte=Ov,Ite=G0,Ete=G0,yte=G0,Tte=G0}function YNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te,xe,Nt,Yu,Br,Ro,W2,L1,rf,cf,Xd,H3,Ba,q3,Oh,cl,Ew,U3,J2,Ah,Vd,Bl,Lse,kbn,Mw,F9,OU,G3,_9,ug,H9,AU,Nse;for(kbn=0,xe=e,Br=0,L1=xe.length;Br<L1;++Br)for(Kn=xe[Br],cl=new M(Kn.j);cl.a<cl.c.c.length;){for(Oh=u(E(cl),12),U3=0,f=new M(Oh.g);f.a<f.c.c.length;)s=u(E(f),18),Kn.c!=s.d.i.c&&++U3;U3>0&&(n.a[Oh.p]=kbn++)}for(_9=0,Nt=t,Ro=0,rf=Nt.length;Ro<rf;++Ro){for(Kn=Nt[Ro],cf=0,cl=new M(Kn.j);cl.a<cl.c.c.length&&(Oh=u(E(cl),12),Oh.j==(en(),Xn));)for(f=new M(Oh.e);f.a<f.c.c.length;)if(s=u(E(f),18),Kn.c!=s.c.i.c){++cf;break}for(H3=0,J2=new xi(Kn.j,Kn.j.c.length);J2.b>0;){for(Oh=(oe(J2.b>0),u(J2.a.Xb(J2.c=--J2.b),12)),U3=0,f=new M(Oh.e);f.a<f.c.c.length;)s=u(E(f),18),Kn.c!=s.c.i.c&&++U3;U3>0&&(Oh.j==(en(),Xn)?(n.a[Oh.p]=_9,++_9):(n.a[Oh.p]=_9+cf+H3,++H3))}_9+=H3}for(Ew=new de,m=new rh,te=e,Yu=0,W2=te.length;Yu<W2;++Yu)for(Kn=te[Yu],OU=new M(Kn.j);OU.a<OU.c.c.length;)for(F9=u(E(OU),12),f=new M(F9.g);f.a<f.c.c.length;)if(s=u(E(f),18),H9=s.d,Kn.c!=H9.i.c)if(Mw=u(Fr(wr(Ew.f,F9)),477),ug=u(Fr(wr(Ew.f,H9)),477),!Mw&&!ug)p=new USn,m.a.zc(p,m),nn(p.a,s),nn(p.d,F9),Vc(Ew.f,F9,p),nn(p.d,H9),Vc(Ew.f,H9,p);else if(!Mw)nn(ug.a,s),nn(ug.d,F9),Vc(Ew.f,F9,ug);else if(!ug)nn(Mw.a,s),nn(Mw.d,H9),Vc(Ew.f,H9,Mw);else if(Mw==ug)nn(Mw.a,s);else{for(nn(Mw.a,s),q3=new M(ug.d);q3.a<q3.c.c.length;)Ba=u(E(q3),12),Vc(Ew.f,Ba,Mw);hi(Mw.a,ug.a),hi(Mw.d,ug.d),m.a.Bc(ug)!=null}for(k=u(T5(m,F(jDe,{3:1,4:1,5:1,2045:1},477,m.a.gc(),0,1)),2045),Fn=e[0].c,Lse=t[0].c,a=k,d=0,g=a.length;d<g;++d)for(l=a[d],l.e=kbn,l.f=_9,cl=new M(l.d);cl.a<cl.c.c.length;)Oh=u(E(cl),12),Ah=n.a[Oh.p],Oh.i.c==Fn?(Ah<l.e&&(l.e=Ah),Ah>l.b&&(l.b=Ah)):Oh.i.c==Lse&&(Ah<l.f&&(l.f=Ah),Ah>l.c&&(l.c=Ah));for(xm(k,0,k.length,null),G3=F(ye,_e,28,k.length,15,1),i=F(ye,_e,28,_9+1,15,1),P=0;P<k.length;P++)G3[P]=k[P].f,i[G3[P]]=1;for(c=0,O=0;O<i.length;O++)i[O]==1?i[O]=c:--c;for(Vd=0,A=0;A<G3.length;A++)G3[A]+=i[G3[A]],Vd=y.Math.max(Vd,G3[A]+1);for(h=1;h<Vd;)h*=2;for(Nse=2*h-1,h-=1,AU=F(ye,_e,28,Nse,15,1),r=0,jn=0;jn<G3.length;jn++)for(tn=G3[jn]+h,++AU[tn];tn>0;)tn%2>0&&(r+=AU[tn+1]),tn=(tn-1)/2|0,++AU[tn];for(kn=F(Oie,Rn,374,k.length*2,0,1),D=0;D<k.length;D++)kn[2*D]=new ET(k[D],k[D].e,k[D].b,(Q6(),Z8)),kn[2*D+1]=new ET(k[D],k[D].b,k[D].e,Y8);for(xm(kn,0,kn.length,null),Xd=0,_=0;_<kn.length;_++)switch(kn[_].d.g){case 0:++Xd;break;case 1:--Xd,r+=Xd}for(Bl=F(Oie,Rn,374,k.length*2,0,1),X=0;X<k.length;X++)Bl[2*X]=new ET(k[X],k[X].f,k[X].c,(Q6(),Z8)),Bl[2*X+1]=new ET(k[X],k[X].c,k[X].f,Y8);for(xm(Bl,0,Bl.length,null),Xd=0,j=0;j<Bl.length;j++)switch(Bl[j].d.g){case 0:++Xd;break;case 1:--Xd,r+=Xd}return r}function nt(){nt=R,B9=new Wd(7),abn=new Dh(8,94),new Dh(8,64),dbn=new Dh(8,36),Ese=new Dh(8,65),Mse=new Dh(8,122),Tse=new Dh(8,90),Sse=new Dh(8,98),jse=new Dh(8,66),Cse=new Dh(8,60),Pse=new Dh(8,62),lbn=new Wd(11),IA=new yo(4),xc(IA,48,57),Uv=new yo(4),xc(Uv,48,57),xc(Uv,65,90),xc(Uv,95,95),xc(Uv,97,122),_3=new yo(4),xc(_3,9,9),xc(_3,10,10),xc(_3,12,12),xc(_3,13,13),xc(_3,32,32),bbn=b0(IA),gbn=b0(Uv),wbn=b0(_3),qv=new de,K9=new de,yse=S(C(fn,1),J,2,6,["Cn","Lu","Ll","Lt","Lm","Lo","Mn","Me","Mc","Nd","Nl","No","Zs","Zl","Zp","Cc","Cf",null,"Co","Cs","Pd","Ps","Pe","Pc","Po","Sm","Sc","Sk","So","Pi","Pf","L","M","N","Z","C","P","S"]),fbn=S(C(fn,1),J,2,6,["Basic Latin","Latin-1 Supplement","Latin Extended-A","Latin Extended-B","IPA Extensions","Spacing Modifier Letters","Combining Diacritical Marks","Greek","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul Jamo","Ethiopic","Cherokee","Unified Canadian Aboriginal Syllabics","Ogham","Runic","Khmer","Mongolian","Latin Extended Additional","Greek Extended","General Punctuation","Superscripts and Subscripts","Currency Symbols","Combining Marks for Symbols","Letterlike Symbols","Number Forms","Arrows","Mathematical Operators","Miscellaneous Technical","Control Pictures","Optical Character Recognition","Enclosed Alphanumerics","Box Drawing","Block Elements","Geometric Shapes","Miscellaneous Symbols","Dingbats","Braille Patterns","CJK Radicals Supplement","Kangxi Radicals","Ideographic Description Characters","CJK Symbols and Punctuation","Hiragana","Katakana","Bopomofo","Hangul Compatibility Jamo","Kanbun","Bopomofo Extended","Enclosed CJK Letters and Months","CJK Compatibility","CJK Unified Ideographs Extension A","CJK Unified Ideographs","Yi Syllables","Yi Radicals","Hangul Syllables",WJn,"CJK Compatibility Ideographs","Alphabetic Presentation Forms","Arabic Presentation Forms-A","Combining Half Marks","CJK Compatibility Forms","Small Form Variants","Arabic Presentation Forms-B","Specials","Halfwidth and Fullwidth Forms","Old Italic","Gothic","Deseret","Byzantine Musical Symbols","Musical Symbols","Mathematical Alphanumeric Symbols","CJK Unified Ideographs Extension B","CJK Compatibility Ideographs Supplement","Tags"]),hbn=S(C(ye,1),_e,28,15,[66304,66351,66352,66383,66560,66639,118784,119039,119040,119295,119808,120831,131072,173782,194560,195103,917504,917631])}function VS(){VS=R,pYn=new Vo("OUT_T_L",0,(Uu(),Th),(bu(),Xs),(wf(),bc),bc,S(C(js,1),Rn,21,0,[yt((l0(),Zs),S(C(yr,1),G,95,0,[nf,Qs]))])),gYn=new Vo("OUT_T_C",1,ma,Xs,bc,Wc,S(C(js,1),Rn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[nf,xl])),yt(Zs,S(C(yr,1),G,95,0,[nf,xl,Ms]))])),mYn=new Vo("OUT_T_R",2,zs,Xs,bc,wc,S(C(js,1),Rn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[nf,Ys]))])),sYn=new Vo("OUT_B_L",3,Th,kf,wc,bc,S(C(js,1),Rn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ts,Qs]))])),oYn=new Vo("OUT_B_C",4,ma,kf,wc,Wc,S(C(js,1),Rn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ts,xl])),yt(Zs,S(C(yr,1),G,95,0,[Ts,xl,Ms]))])),fYn=new Vo("OUT_B_R",5,zs,kf,wc,wc,S(C(js,1),Rn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ts,Ys]))])),aYn=new Vo("OUT_L_T",6,zs,kf,bc,bc,S(C(js,1),Rn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Qs,nf,Ms]))])),lYn=new Vo("OUT_L_C",7,zs,va,Wc,bc,S(C(js,1),Rn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Qs,el])),yt(Zs,S(C(yr,1),G,95,0,[Qs,el,Ms]))])),hYn=new Vo("OUT_L_B",8,zs,Xs,wc,bc,S(C(js,1),Rn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Qs,Ts,Ms]))])),wYn=new Vo("OUT_R_T",9,Th,kf,bc,wc,S(C(js,1),Rn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ys,nf,Ms]))])),bYn=new Vo("OUT_R_C",10,Th,va,Wc,wc,S(C(js,1),Rn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ys,el])),yt(Zs,S(C(yr,1),G,95,0,[Ys,el,Ms]))])),dYn=new Vo("OUT_R_B",11,Th,Xs,wc,wc,S(C(js,1),Rn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ys,Ts,Ms]))])),cYn=new Vo("IN_T_L",12,Th,kf,bc,bc,S(C(js,1),Rn,21,0,[yt(No,S(C(yr,1),G,95,0,[nf,Qs])),yt(No,S(C(yr,1),G,95,0,[nf,Qs,Ms]))])),rYn=new Vo("IN_T_C",13,ma,kf,bc,Wc,S(C(js,1),Rn,21,0,[yt(No,S(C(yr,1),G,95,0,[nf,xl])),yt(No,S(C(yr,1),G,95,0,[nf,xl,Ms]))])),uYn=new Vo("IN_T_R",14,zs,kf,bc,wc,S(C(js,1),Rn,21,0,[yt(No,S(C(yr,1),G,95,0,[nf,Ys])),yt(No,S(C(yr,1),G,95,0,[nf,Ys,Ms]))])),tYn=new Vo("IN_C_L",15,Th,va,Wc,bc,S(C(js,1),Rn,21,0,[yt(No,S(C(yr,1),G,95,0,[el,Qs])),yt(No,S(C(yr,1),G,95,0,[el,Qs,Ms]))])),eYn=new Vo("IN_C_C",16,ma,va,Wc,Wc,S(C(js,1),Rn,21,0,[yt(No,S(C(yr,1),G,95,0,[el,xl])),yt(No,S(C(yr,1),G,95,0,[el,xl,Ms]))])),iYn=new Vo("IN_C_R",17,zs,va,Wc,wc,S(C(js,1),Rn,21,0,[yt(No,S(C(yr,1),G,95,0,[el,Ys])),yt(No,S(C(yr,1),G,95,0,[el,Ys,Ms]))])),ZQn=new Vo("IN_B_L",18,Th,Xs,wc,bc,S(C(js,1),Rn,21,0,[yt(No,S(C(yr,1),G,95,0,[Ts,Qs])),yt(No,S(C(yr,1),G,95,0,[Ts,Qs,Ms]))])),YQn=new Vo("IN_B_C",19,ma,Xs,wc,Wc,S(C(js,1),Rn,21,0,[yt(No,S(C(yr,1),G,95,0,[Ts,xl])),yt(No,S(C(yr,1),G,95,0,[Ts,xl,Ms]))])),nYn=new Vo("IN_B_R",20,zs,Xs,wc,wc,S(C(js,1),Rn,21,0,[yt(No,S(C(yr,1),G,95,0,[Ts,Ys])),yt(No,S(C(yr,1),G,95,0,[Ts,Ys,Ms]))])),h_=new Vo(Y5,21,null,null,null,null,S(C(js,1),Rn,21,0,[]))}function An(){An=R,tg=(z1(),Hn).b,u(N(H(Hn.b),0),35),u(N(H(Hn.b),1),19),S1=Hn.a,u(N(H(Hn.a),0),35),u(N(H(Hn.a),1),19),u(N(H(Hn.a),2),19),u(N(H(Hn.a),3),19),u(N(H(Hn.a),4),19),Da=Hn.o,u(N(H(Hn.o),0),35),u(N(H(Hn.o),1),35),_oe=u(N(H(Hn.o),2),19),u(N(H(Hn.o),3),19),u(N(H(Hn.o),4),19),u(N(H(Hn.o),5),19),u(N(H(Hn.o),6),19),u(N(H(Hn.o),7),19),u(N(H(Hn.o),8),19),u(N(H(Hn.o),9),19),u(N(H(Hn.o),10),19),u(N(H(Hn.o),11),19),u(N(H(Hn.o),12),19),u(N(H(Hn.o),13),19),u(N(H(Hn.o),14),19),u(N(H(Hn.o),15),19),u(N(ft(Hn.o),0),62),u(N(ft(Hn.o),1),62),u(N(ft(Hn.o),2),62),u(N(ft(Hn.o),3),62),u(N(ft(Hn.o),4),62),u(N(ft(Hn.o),5),62),u(N(ft(Hn.o),6),62),u(N(ft(Hn.o),7),62),u(N(ft(Hn.o),8),62),u(N(ft(Hn.o),9),62),Foe=Hn.p,u(N(H(Hn.p),0),35),u(N(H(Hn.p),1),35),u(N(H(Hn.p),2),35),u(N(H(Hn.p),3),35),u(N(H(Hn.p),4),19),u(N(H(Hn.p),5),19),u(N(ft(Hn.p),0),62),u(N(ft(Hn.p),1),62),Hoe=Hn.q,u(N(H(Hn.q),0),35),$a=Hn.v,u(N(H(Hn.v),0),19),u(N(ft(Hn.v),0),62),u(N(ft(Hn.v),1),62),u(N(ft(Hn.v),2),62),P1=Hn.w,u(N(H(Hn.w),0),35),u(N(H(Hn.w),1),35),u(N(H(Hn.w),2),35),u(N(H(Hn.w),3),19),xa=Hn.B,u(N(H(Hn.B),0),19),u(N(ft(Hn.B),0),62),u(N(ft(Hn.B),1),62),u(N(ft(Hn.B),2),62),qoe=Hn.Q,u(N(H(Hn.Q),0),19),u(N(ft(Hn.Q),0),62),Uoe=Hn.R,u(N(H(Hn.R),0),35),Os=Hn.S,u(N(ft(Hn.S),0),62),u(N(ft(Hn.S),1),62),u(N(ft(Hn.S),2),62),u(N(ft(Hn.S),3),62),u(N(ft(Hn.S),4),62),u(N(ft(Hn.S),5),62),u(N(ft(Hn.S),6),62),u(N(ft(Hn.S),7),62),u(N(ft(Hn.S),8),62),u(N(ft(Hn.S),9),62),u(N(ft(Hn.S),10),62),u(N(ft(Hn.S),11),62),u(N(ft(Hn.S),12),62),u(N(ft(Hn.S),13),62),u(N(ft(Hn.S),14),62),I1=Hn.T,u(N(H(Hn.T),0),19),u(N(H(Hn.T),2),19),Goe=u(N(H(Hn.T),3),19),u(N(H(Hn.T),4),19),u(N(ft(Hn.T),0),62),u(N(ft(Hn.T),1),62),u(N(H(Hn.T),1),19),O1=Hn.U,u(N(H(Hn.U),0),35),u(N(H(Hn.U),1),35),u(N(H(Hn.U),2),19),u(N(H(Hn.U),3),19),u(N(H(Hn.U),4),19),u(N(H(Hn.U),5),19),u(N(ft(Hn.U),0),62),ig=Hn.V,u(N(H(Hn.V),0),19),U2=Hn.W,u(N(H(Hn.W),0),35),u(N(H(Hn.W),1),35),u(N(H(Hn.W),2),35),u(N(H(Hn.W),3),19),u(N(H(Hn.W),4),19),u(N(H(Hn.W),5),19),zoe=Hn.bb,u(N(H(Hn.bb),0),35),u(N(H(Hn.bb),1),35),u(N(H(Hn.bb),2),35),u(N(H(Hn.bb),3),35),u(N(H(Hn.bb),4),35),u(N(H(Hn.bb),5),35),u(N(H(Hn.bb),6),35),u(N(H(Hn.bb),7),19),u(N(ft(Hn.bb),0),62),u(N(ft(Hn.bb),1),62),Xoe=Hn.eb,u(N(H(Hn.eb),0),35),u(N(H(Hn.eb),1),35),u(N(H(Hn.eb),2),35),u(N(H(Hn.eb),3),35),u(N(H(Hn.eb),4),35),u(N(H(Hn.eb),5),35),u(N(H(Hn.eb),6),19),u(N(H(Hn.eb),7),19),ar=Hn.ab,u(N(H(Hn.ab),0),35),u(N(H(Hn.ab),1),35),kw=Hn.H,u(N(H(Hn.H),0),19),u(N(H(Hn.H),1),19),u(N(H(Hn.H),2),19),u(N(H(Hn.H),3),19),u(N(H(Hn.H),4),19),u(N(H(Hn.H),5),19),u(N(ft(Hn.H),0),62),yw=Hn.db,u(N(H(Hn.db),0),19),Zf=Hn.M}function ZNe(n){var e;n.O||(n.O=!0,zc(n,"type"),MC(n,"ecore.xml.type"),TC(n,Pd),e=u(M4((F1(),Is),Pd),2044),ve(Hr(n.fb),n.b),fc(n.b,dE,"AnyType",!1,!1,!0),Gt(u(N(H(n.b),0),35),n.wb.D,Wy,null,0,-1,dE,!1,!1,!0,!1,!1,!1),Gt(u(N(H(n.b),1),35),n.wb.D,"any",null,0,-1,dE,!0,!0,!0,!1,!1,!0),Gt(u(N(H(n.b),2),35),n.wb.D,"anyAttribute",null,0,-1,dE,!1,!1,!0,!1,!1,!1),fc(n.bb,SA,OJn,!1,!1,!0),Gt(u(N(H(n.bb),0),35),n.gb,"data",null,0,1,SA,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.bb),1),35),n.gb,Lcn,null,1,1,SA,!1,!1,!0,!1,!0,!1),fc(n.fb,bE,AJn,!1,!1,!0),Gt(u(N(H(n.fb),0),35),e.gb,"rawValue",null,0,1,bE,!0,!0,!0,!1,!0,!0),Gt(u(N(H(n.fb),1),35),e.a,b8,null,0,1,bE,!0,!0,!0,!1,!0,!0),Et(u(N(H(n.fb),2),19),n.wb.q,null,"instanceType",1,1,bE,!1,!1,!0,!1,!1,!1,!1),fc(n.qb,cbn,LJn,!1,!1,!0),Gt(u(N(H(n.qb),0),35),n.wb.D,Wy,null,0,-1,null,!1,!1,!0,!1,!1,!1),Et(u(N(H(n.qb),1),19),n.wb.ab,null,"xMLNSPrefixMap",0,-1,null,!0,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.qb),2),19),n.wb.ab,null,"xSISchemaLocation",0,-1,null,!0,!1,!0,!0,!1,!1,!1),Gt(u(N(H(n.qb),3),35),n.gb,"cDATA",null,0,-2,null,!0,!0,!0,!1,!1,!0),Gt(u(N(H(n.qb),4),35),n.gb,"comment",null,0,-2,null,!0,!0,!0,!1,!1,!0),Et(u(N(H(n.qb),5),19),n.bb,null,GJn,0,-2,null,!0,!0,!0,!0,!1,!1,!0),Gt(u(N(H(n.qb),6),35),n.gb,wF,null,0,-2,null,!0,!0,!0,!1,!1,!0),We(n.a,ki,"AnySimpleType",!0),We(n.c,fn,"AnyURI",!0),We(n.d,C(Ru,1),"Base64Binary",!0),We(n.e,so,"Boolean",!0),We(n.f,zt,"BooleanObject",!0),We(n.g,Ru,"Byte",!0),We(n.i,p3,"ByteObject",!0),We(n.j,fn,"Date",!0),We(n.k,fn,"DateTime",!0),We(n.n,JF,"Decimal",!0),We(n.o,Ii,"Double",!0),We(n.p,si,"DoubleObject",!0),We(n.q,fn,"Duration",!0),We(n.s,rs,"ENTITIES",!0),We(n.r,rs,"ENTITIESBase",!0),We(n.t,fn,Vcn,!0),We(n.u,cg,"Float",!0),We(n.v,ov,"FloatObject",!0),We(n.w,fn,"GDay",!0),We(n.B,fn,"GMonth",!0),We(n.A,fn,"GMonthDay",!0),We(n.C,fn,"GYear",!0),We(n.D,fn,"GYearMonth",!0),We(n.F,C(Ru,1),"HexBinary",!0),We(n.G,fn,"ID",!0),We(n.H,fn,"IDREF",!0),We(n.J,rs,"IDREFS",!0),We(n.I,rs,"IDREFSBase",!0),We(n.K,ye,"Int",!0),We(n.M,l2,"Integer",!0),We(n.L,Gi,"IntObject",!0),We(n.P,fn,"Language",!0),We(n.Q,Ka,"Long",!0),We(n.R,nw,"LongObject",!0),We(n.S,fn,"Name",!0),We(n.T,fn,tI,!0),We(n.U,l2,"NegativeInteger",!0),We(n.V,fn,Qcn,!0),We(n.X,rs,"NMTOKENS",!0),We(n.W,rs,"NMTOKENSBase",!0),We(n.Y,l2,"NonNegativeInteger",!0),We(n.Z,l2,"NonPositiveInteger",!0),We(n.$,fn,"NormalizedString",!0),We(n._,fn,"NOTATION",!0),We(n.ab,fn,"PositiveInteger",!0),We(n.cb,fn,"QName",!0),We(n.db,V2,"Short",!0),We(n.eb,ew,"ShortObject",!0),We(n.gb,fn,wtn,!0),We(n.hb,fn,"Time",!0),We(n.ib,fn,"Token",!0),We(n.jb,V2,"UnsignedByte",!0),We(n.kb,ew,"UnsignedByteObject",!0),We(n.lb,Ka,"UnsignedInt",!0),We(n.mb,nw,"UnsignedIntObject",!0),We(n.nb,l2,"UnsignedLong",!0),We(n.ob,ye,"UnsignedShort",!0),We(n.pb,Gi,"UnsignedShortObject",!0),wY(n,Pd),nDe(n))}function ftn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn,Kn,te,xe,Nt,Yu,Br,Ro,W2,L1,rf,cf,Xd,H3,Ba,q3,Oh,cl,Ew,U3,J2,Ah,Vd,Bl;if(i.$g()||on(un(z(e,(He(),tA)))))return Ln(),Ln(),sr;if(tn=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i!=0,kn=wEe(e),jn=!kn.dc(),tn||jn){if(r=u(z(e,q2),143),!r)throw T(new _l("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(J2=aX(r,(E4(),mA)),nBn(e),!tn&&jn&&!J2)return Ln(),Ln(),sr;if(A=new Z,x(z(e,B2))===x((jl(),T1))&&(aX(r,gA)||aX(r,wA))){if(on(un(z(e,v9))))throw T(new _l("Topdown layout cannot be used together with hierarchy handling."));for(W2=zqn(n,e),L1=new Mt,Ki(L1,(!e.a&&(e.a=new q(Ye,e,10,11)),e.a));L1.b!=0;)Br=u(L1.b==0?null:(oe(L1.b!=0),Xo(L1,L1.a.a)),27),nBn(Br),U3=x(z(Br,B2))===x(j9),U3||Nf(Br,Dv)&&!PJ(r,z(Br,q2))?(j=ftn(n,Br,t,i),hi(A,j),ht(Br,B2,j9),fUn(Br)):Ki(L1,(!Br.a&&(Br.a=new q(Ye,Br,10,11)),Br.a))}else{if(W2=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i,on(un(z(e,v9)))){if(Ah=i.eh(1),Ah.Ug(AVn,1),z(e,$3)==null)throw T(new _l(e.k+" has not been assigned a top-down node type."));if(u(z(e,$3),280)==(Gp(),Y0)||u(z(e,$3),280)==aA)for(O=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));O.e!=O.i.gc();)P=u(ue(O),27),Yu=u(z(P,q2),143),(!P.a&&(P.a=new q(Ye,P,10,11)),P.a).i>0&&z7(Yu.f),z(P,Qan)!=null&&(f=u(z(P,Qan),347),Ew=f.Tg(P),kg(P,y.Math.max(P.g,Ew.a),y.Math.max(P.f,Ew.b)));if(rf=u(z(e,M1),107),p=e.g-(rf.b+rf.c),g=e.f-(rf.d+rf.a),Ah.bh("Available Child Area: ("+p+"|"+g+")"),ht(e,x2,p/g),rBn(e,r,i.eh(W2)),u(z(e,$3),280)==aA&&(rtn(e),kg(e,rf.b+$(B(z(e,K2)))+rf.c,rf.d+$(B(z(e,R2)))+rf.a)),Ah.bh("Executed layout algorithm: "+Ae(z(e,Dv))+" on node "+e.k),u(z(e,$3),280)==Y0){if(p<0||g<0)throw T(new _l("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+e.k));for(Nf(e,K2)||Nf(e,R2)||rtn(e),k=$(B(z(e,K2))),m=$(B(z(e,R2))),Ah.bh("Desired Child Area: ("+k+"|"+m+")"),Xd=p/k,H3=g/m,cf=y.Math.min(Xd,y.Math.min(H3,$(B(z(e,Hue))))),ht(e,cA,cf),Ah.bh(e.k+" -- Local Scale Factor (X|Y): ("+Xd+"|"+H3+")"),D=u(z(e,Uj),21),c=0,s=0,cf<Xd&&(D.Hc((wd(),b9))?c=(p/2-k*cf/2)/cf:D.Hc(w9)&&(c=(p-k*cf)/cf)),cf<H3&&(D.Hc((wd(),p9))?s=(g/2-m*cf/2)/cf:D.Hc(g9)&&(s=(g-m*cf)/cf)),Vd=c+(rf.b/cf-rf.b),Bl=s+(rf.d/cf-rf.d),Ah.bh("Shift: ("+Vd+"|"+Bl+")"),Ro=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));Ro.e!=Ro.i.gc();)Br=u(ue(Ro),27),eu(Br,Br.i+Vd),tu(Br,Br.j+Bl);for(X=new ne((!e.b&&(e.b=new q(Vt,e,12,3)),e.b));X.e!=X.i.gc();){for(_=u(ue(X),74),q3=new ne((!_.a&&(_.a=new q(Tt,_,6,6)),_.a));q3.e!=q3.i.gc();)for(Ba=u(ue(q3),166),j7(Ba,Ba.j+Vd,Ba.k+Bl),y7(Ba,Ba.b+Vd,Ba.c+Bl),l=new ne((!Ba.a&&(Ba.a=new ti(xo,Ba,5)),Ba.a));l.e!=l.i.gc();)h=u(ue(l),377),gN(h,h.a+Vd,h.b+Bl);for(Nt=new ne((!_.n&&(_.n=new q(Sr,_,1,7)),_.n));Nt.e!=Nt.i.gc();)xe=u(ue(Nt),135),Bo(xe,xe.i+Vd,xe.j+Bl);for(te=u(z(_,mw),75),Kn=ge(te,0);Kn.b!=Kn.d.c;)Fn=u(be(Kn),8),Fn.a+=Vd,Fn.b+=Bl;ht(_,mw,te)}}Ah.Vg()}for(d=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));d.e!=d.i.gc();)a=u(ue(d),27),j=ftn(n,a,t,i),hi(A,j),fUn(a)}if(i.$g())return Ln(),Ln(),sr;for(cl=new M(A);cl.a<cl.c.c.length;)Oh=u(E(cl),74),ht(Oh,tA,(_n(),!0));return on(un(z(e,v9)))||rBn(e,r,i.eh(W2)),BPe(A),jn&&J2?kn:(Ln(),Ln(),sr)}else return Ln(),Ln(),sr}function Zg(n,e){var t,i;return X2||(X2=new de,Hv=new de,i=(nt(),nt(),new yo(4)),Kk(i,`
\r\r `),Lr(X2,DF,i),Lr(Hv,DF,b0(i)),i=new yo(4),Kk(i,XJn),Lr(X2,E8,i),Lr(Hv,E8,b0(i)),i=new yo(4),Kk(i,XJn),Lr(X2,E8,i),Lr(Hv,E8,b0(i)),i=new yo(4),Kk(i,VJn),g0(i,u(Dc(X2,E8),122)),Lr(X2,NF,i),Lr(Hv,NF,b0(i)),i=new yo(4),Kk(i,"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),Lr(X2,$F,i),Lr(Hv,$F,b0(i)),i=new yo(4),Kk(i,VJn),xc(i,95,95),xc(i,58,58),Lr(X2,xF,i),Lr(Hv,xF,b0(i))),t=u(Dc(e?X2:Hv,n),138),t}function Mzn(n){ib(n,new gd(kz(qE(nb(Qd(Zd(Yd(new Fa,Yn),"ELK Layered"),"Layer-based algorithm provided by the Eclipse Layout Kernel. Arranges as many edges as possible into one direction by placing nodes into subsequent layers. This implementation supports different routing styles (straight, orthogonal, splines); if orthogonal routing is selected, arbitrary port constraints are respected, thus enabling the layout of block diagrams such as actor-oriented models or circuit schematics. Furthermore, full layout of compound graphs with cross-hierarchy edges is supported when the respective option is activated on the top level."),new qpn),Yn),yt((E4(),mU),S(C(kA,1),G,245,0,[mA,vA,pA,pU,gA,wA]))))),Q(n,Yn,Hin,rn(PH)),Q(n,Yn,qin,rn(whn)),Q(n,Yn,WK,rn(Tj)),Q(n,Yn,Uin,rn(Ws)),Q(n,Yn,eB,rn(C2)),Q(n,Yn,$B,rn(dw)),Q(n,Yn,Gin,rn(q0)),Q(n,Yn,zin,rn(Cv)),Q(n,Yn,Xin,rn(Sv)),Q(n,Yn,Vin,rn(IH)),Q(n,Yn,y0,rn(bw)),Q(n,Yn,Win,rn(OH)),Q(n,Yn,Jin,rn(G8)),Q(n,Yn,Qin,rn(yO)),Q(n,Yn,Ein,rn(Mj)),Q(n,Yn,Tin,rn(T2)),Q(n,Yn,Min,rn(Kd)),Q(n,Yn,Cin,rn(S2)),Q(n,Yn,Ny,Y(0)),Q(n,Yn,Sin,rn(Tv)),Q(n,Yn,Pin,rn(bhn)),Q(n,Yn,Iin,rn(O3)),Q(n,Yn,Al,rn(Mhn)),Q(n,Yn,pP,rn(phn)),Q(n,Yn,mP,rn(mhn)),Q(n,Yn,u8,rn(LH)),Q(n,Yn,SB,rn(vhn)),Q(n,Yn,PB,rn(khn)),Q(n,Yn,vP,rn(jO)),Q(n,Yn,kP,rn(NH)),Q(n,Yn,yP,rn(jhn)),Q(n,Yn,jP,rn(yhn)),Q(n,Yn,IB,rn(Ehn)),Q(n,Yn,yB,rn(lw)),Q(n,Yn,jB,rn(U8)),Q(n,Yn,bP,rn(MH)),Q(n,Yn,wP,rn(Xfn)),Q(n,Yn,Dy,rn(Vte)),Q(n,Yn,$y,rn(Wte)),Q(n,Yn,xy,rn(Xte)),Q(n,Yn,Ry,rn(zte)),Q(n,Yn,Vb,ghn),Q(n,Yn,Xb,fhn),Q(n,Yn,Hy,Ufn),Q(n,Yn,Yin,0),Q(n,Yn,uP,Y(1)),Q(n,Yn,l3,U4),Q(n,Yn,Zin,rn(Rd)),Q(n,Yn,tB,rn(_t)),Q(n,Yn,nrn,rn(Mv)),Q(n,Yn,qy,rn(xte)),Q(n,Yn,ern,rn(Ch)),Q(n,Yn,MP,rn(K0)),Q(n,Yn,n8,(_n(),!0)),Q(n,Yn,trn,rn(B0)),Q(n,Yn,irn,rn(Dd)),Q(n,Yn,r2,rn(xd)),Q(n,Yn,a3,rn(kO)),Q(n,Yn,G4,rn(SH)),Q(n,Yn,xB,qfn),Q(n,Yn,z4,rn(hw)),Q(n,Yn,rrn,rn(mO)),Q(n,Yn,X4,rn(_0)),Q(n,Yn,crn,rn(Hte)),Q(n,Yn,urn,rn(ahn)),Q(n,Yn,orn,lhn),Q(n,Yn,srn,rn(Bte)),Q(n,Yn,frn,rn(Fte)),Q(n,Yn,hrn,rn(_te)),Q(n,Yn,lrn,rn(Kte)),Q(n,Yn,hin,rn(AH)),Q(n,Yn,_y,rn($d)),Q(n,Yn,aB,rn(Ea)),Q(n,Yn,fin,rn(z8)),Q(n,Yn,ain,rn(ou)),Q(n,Yn,fB,rn(Nd)),Q(n,Yn,c8,rn(H8)),Q(n,Yn,win,rn(fw)),Q(n,Yn,kin,rn(Ffn)),Q(n,Yn,pB,rn(kH)),Q(n,Yn,aP,rn(Ej)),Q(n,Yn,gB,rn(yH)),Q(n,Yn,cin,rn(rhn)),Q(n,Yn,uin,rn(chn)),Q(n,Yn,lP,rn(Zfn)),Q(n,Yn,c2,rn(vO)),Q(n,Yn,vB,rn(CH)),Q(n,Yn,rin,rn(TH)),Q(n,Yn,kB,rn(ohn)),Q(n,Yn,yin,rn(zfn)),Q(n,Yn,jin,rn(EH)),Q(n,Yn,TP,rn(vH)),Q(n,Yn,mB,rn(uhn)),Q(n,Yn,Oin,rn(fO)),Q(n,Yn,Ain,rn(Rfn)),Q(n,Yn,MB,rn(sO)),Q(n,Yn,gP,rn(Jfn)),Q(n,Yn,TB,rn(Wfn)),Q(n,Yn,CB,rn(Qfn)),Q(n,Yn,d3,rn(jv)),Q(n,Yn,arn,rn(Rr)),Q(n,Yn,JK,rn(m1)),Q(n,Yn,drn,rn(Sh)),Q(n,Yn,oP,rn(jH)),Q(n,Yn,wB,rn(_fn)),Q(n,Yn,brn,rn(v1)),Q(n,Yn,wrn,rn(_8)),Q(n,Yn,grn,rn(wO)),Q(n,Yn,prn,rn(aw)),Q(n,Yn,RB,rn(hhn)),Q(n,Yn,KB,rn(Ev)),Q(n,Yn,hB,rn(ehn)),Q(n,Yn,lB,rn(thn)),Q(n,Yn,CP,rn(H0)),Q(n,Yn,oin,rn(pH)),Q(n,Yn,dB,rn(ihn)),Q(n,Yn,Lin,rn(bO)),Q(n,Yn,Nin,rn(dO)),Q(n,Yn,mrn,rn(pO)),Q(n,Yn,bB,rn(nhn)),Q(n,Yn,dP,rn(q8)),Q(n,Yn,vrn,rn(Cj)),Q(n,Yn,iin,rn(Hfn)),Q(n,Yn,sin,rn(dhn)),Q(n,Yn,EB,rn(Gfn)),Q(n,Yn,gin,rn(Nte)),Q(n,Yn,pin,rn(Dte)),Q(n,Yn,din,rn(Rte)),Q(n,Yn,min,rn($te)),Q(n,Yn,SP,rn(Yfn)),Q(n,Yn,bin,rn(gO)),Q(n,Yn,vin,rn(aO)),Q(n,Yn,EP,rn(Yh)),Q(n,Yn,xin,rn(Bfn)),Q(n,Yn,AB,rn(hO)),Q(n,Yn,LB,rn(Kfn)),Q(n,Yn,$in,rn(lO)),Q(n,Yn,OB,rn(R0)),Q(n,Yn,Din,rn(mH)),Q(n,Yn,lin,rn(Vfn))}function nDe(n){Te(n.a,Ke,S(C(fn,1),J,2,6,[Qe,"anySimpleType"])),Te(n.b,Ke,S(C(fn,1),J,2,6,[Qe,"anyType",vs,Wy])),Te(u(N(H(n.b),0),35),Ke,S(C(fn,1),J,2,6,[vs,PF,Qe,":mixed"])),Te(u(N(H(n.b),1),35),Ke,S(C(fn,1),J,2,6,[vs,PF,zcn,OF,Qe,":1",NJn,"lax"])),Te(u(N(H(n.b),2),35),Ke,S(C(fn,1),J,2,6,[vs,IJn,zcn,OF,Qe,":2",NJn,"lax"])),Te(n.c,Ke,S(C(fn,1),J,2,6,[Qe,"anyURI",ys,vf])),Te(n.d,Ke,S(C(fn,1),J,2,6,[Qe,"base64Binary",ys,vf])),Te(n.e,Ke,S(C(fn,1),J,2,6,[Qe,i3,ys,vf])),Te(n.f,Ke,S(C(fn,1),J,2,6,[Qe,"boolean:Object",Ji,i3])),Te(n.g,Ke,S(C(fn,1),J,2,6,[Qe,g8])),Te(n.i,Ke,S(C(fn,1),J,2,6,[Qe,"byte:Object",Ji,g8])),Te(n.j,Ke,S(C(fn,1),J,2,6,[Qe,"date",ys,vf])),Te(n.k,Ke,S(C(fn,1),J,2,6,[Qe,"dateTime",ys,vf])),Te(n.n,Ke,S(C(fn,1),J,2,6,[Qe,"decimal",ys,vf])),Te(n.o,Ke,S(C(fn,1),J,2,6,[Qe,p8,ys,vf])),Te(n.p,Ke,S(C(fn,1),J,2,6,[Qe,"double:Object",Ji,p8])),Te(n.q,Ke,S(C(fn,1),J,2,6,[Qe,"duration",ys,vf])),Te(n.s,Ke,S(C(fn,1),J,2,6,[Qe,"ENTITIES",Ji,DJn,Xcn,"1"])),Te(n.r,Ke,S(C(fn,1),J,2,6,[Qe,DJn,IF,Vcn])),Te(n.t,Ke,S(C(fn,1),J,2,6,[Qe,Vcn,Ji,tI])),Te(n.u,Ke,S(C(fn,1),J,2,6,[Qe,m8,ys,vf])),Te(n.v,Ke,S(C(fn,1),J,2,6,[Qe,"float:Object",Ji,m8])),Te(n.w,Ke,S(C(fn,1),J,2,6,[Qe,"gDay",ys,vf])),Te(n.B,Ke,S(C(fn,1),J,2,6,[Qe,"gMonth",ys,vf])),Te(n.A,Ke,S(C(fn,1),J,2,6,[Qe,"gMonthDay",ys,vf])),Te(n.C,Ke,S(C(fn,1),J,2,6,[Qe,"gYear",ys,vf])),Te(n.D,Ke,S(C(fn,1),J,2,6,[Qe,"gYearMonth",ys,vf])),Te(n.F,Ke,S(C(fn,1),J,2,6,[Qe,"hexBinary",ys,vf])),Te(n.G,Ke,S(C(fn,1),J,2,6,[Qe,"ID",Ji,tI])),Te(n.H,Ke,S(C(fn,1),J,2,6,[Qe,"IDREF",Ji,tI])),Te(n.J,Ke,S(C(fn,1),J,2,6,[Qe,"IDREFS",Ji,$Jn,Xcn,"1"])),Te(n.I,Ke,S(C(fn,1),J,2,6,[Qe,$Jn,IF,"IDREF"])),Te(n.K,Ke,S(C(fn,1),J,2,6,[Qe,v8])),Te(n.M,Ke,S(C(fn,1),J,2,6,[Qe,Wcn])),Te(n.L,Ke,S(C(fn,1),J,2,6,[Qe,"int:Object",Ji,v8])),Te(n.P,Ke,S(C(fn,1),J,2,6,[Qe,"language",Ji,AF,LF,xJn])),Te(n.Q,Ke,S(C(fn,1),J,2,6,[Qe,k8])),Te(n.R,Ke,S(C(fn,1),J,2,6,[Qe,"long:Object",Ji,k8])),Te(n.S,Ke,S(C(fn,1),J,2,6,[Qe,"Name",Ji,AF,LF,Jcn])),Te(n.T,Ke,S(C(fn,1),J,2,6,[Qe,tI,Ji,"Name",LF,RJn])),Te(n.U,Ke,S(C(fn,1),J,2,6,[Qe,"negativeInteger",Ji,KJn,nj,"-1"])),Te(n.V,Ke,S(C(fn,1),J,2,6,[Qe,Qcn,Ji,AF,LF,"\\c+"])),Te(n.X,Ke,S(C(fn,1),J,2,6,[Qe,"NMTOKENS",Ji,BJn,Xcn,"1"])),Te(n.W,Ke,S(C(fn,1),J,2,6,[Qe,BJn,IF,Qcn])),Te(n.Y,Ke,S(C(fn,1),J,2,6,[Qe,Ycn,Ji,Wcn,ej,"0"])),Te(n.Z,Ke,S(C(fn,1),J,2,6,[Qe,KJn,Ji,Wcn,nj,"0"])),Te(n.$,Ke,S(C(fn,1),J,2,6,[Qe,FJn,Ji,nK,ys,"replace"])),Te(n._,Ke,S(C(fn,1),J,2,6,[Qe,"NOTATION",ys,vf])),Te(n.ab,Ke,S(C(fn,1),J,2,6,[Qe,"positiveInteger",Ji,Ycn,ej,"1"])),Te(n.bb,Ke,S(C(fn,1),J,2,6,[Qe,"processingInstruction_._type",vs,"empty"])),Te(u(N(H(n.bb),0),35),Ke,S(C(fn,1),J,2,6,[vs,YP,Qe,"data"])),Te(u(N(H(n.bb),1),35),Ke,S(C(fn,1),J,2,6,[vs,YP,Qe,Lcn])),Te(n.cb,Ke,S(C(fn,1),J,2,6,[Qe,"QName",ys,vf])),Te(n.db,Ke,S(C(fn,1),J,2,6,[Qe,y8])),Te(n.eb,Ke,S(C(fn,1),J,2,6,[Qe,"short:Object",Ji,y8])),Te(n.fb,Ke,S(C(fn,1),J,2,6,[Qe,"simpleAnyType",vs,Jy])),Te(u(N(H(n.fb),0),35),Ke,S(C(fn,1),J,2,6,[Qe,":3",vs,Jy])),Te(u(N(H(n.fb),1),35),Ke,S(C(fn,1),J,2,6,[Qe,":4",vs,Jy])),Te(u(N(H(n.fb),2),19),Ke,S(C(fn,1),J,2,6,[Qe,":5",vs,Jy])),Te(n.gb,Ke,S(C(fn,1),J,2,6,[Qe,nK,ys,"preserve"])),Te(n.hb,Ke,S(C(fn,1),J,2,6,[Qe,"time",ys,vf])),Te(n.ib,Ke,S(C(fn,1),J,2,6,[Qe,AF,Ji,FJn,ys,vf])),Te(n.jb,Ke,S(C(fn,1),J,2,6,[Qe,_Jn,nj,"255",ej,"0"])),Te(n.kb,Ke,S(C(fn,1),J,2,6,[Qe,"unsignedByte:Object",Ji,_Jn])),Te(n.lb,Ke,S(C(fn,1),J,2,6,[Qe,HJn,nj,"4294967295",ej,"0"])),Te(n.mb,Ke,S(C(fn,1),J,2,6,[Qe,"unsignedInt:Object",Ji,HJn])),Te(n.nb,Ke,S(C(fn,1),J,2,6,[Qe,"unsignedLong",Ji,Ycn,nj,qJn,ej,"0"])),Te(n.ob,Ke,S(C(fn,1),J,2,6,[Qe,UJn,nj,"65535",ej,"0"])),Te(n.pb,Ke,S(C(fn,1),J,2,6,[Qe,"unsignedShort:Object",Ji,UJn])),Te(n.qb,Ke,S(C(fn,1),J,2,6,[Qe,"",vs,Wy])),Te(u(N(H(n.qb),0),35),Ke,S(C(fn,1),J,2,6,[vs,PF,Qe,":mixed"])),Te(u(N(H(n.qb),1),19),Ke,S(C(fn,1),J,2,6,[vs,YP,Qe,"xmlns:prefix"])),Te(u(N(H(n.qb),2),19),Ke,S(C(fn,1),J,2,6,[vs,YP,Qe,"xsi:schemaLocation"])),Te(u(N(H(n.qb),3),35),Ke,S(C(fn,1),J,2,6,[vs,ZP,Qe,"cDATA",nI,Qy])),Te(u(N(H(n.qb),4),35),Ke,S(C(fn,1),J,2,6,[vs,ZP,Qe,"comment",nI,Qy])),Te(u(N(H(n.qb),5),19),Ke,S(C(fn,1),J,2,6,[vs,ZP,Qe,GJn,nI,Qy])),Te(u(N(H(n.qb),6),35),Ke,S(C(fn,1),J,2,6,[vs,ZP,Qe,wF,nI,Qy]))}function $e(n){return Sn("_UI_EMFDiagnostic_marker",n)?"EMF Problem":Sn("_UI_CircularContainment_diagnostic",n)?"An object may not circularly contain itself":Sn(SWn,n)?"Wrong character.":Sn(PWn,n)?"Invalid reference number.":Sn(qP,n)?"A character is required after \\.":Sn(jF,n)?"'?' is not expected. '(?:' or '(?=' or '(?!' or '(?<' or '(?#' or '(?>'?":Sn(IWn,n)?"'(?<' or '(?<!' is expected.":Sn(OWn,n)?"A comment is not terminated.":Sn(Sd,n)?"')' is expected.":Sn(Ncn,n)?"Unexpected end of the pattern in a modifier group.":Sn(AWn,n)?"':' is expected.":Sn(LWn,n)?"Unexpected end of the pattern in a conditional group.":Sn(NWn,n)?"A back reference or an anchor or a lookahead or a look-behind is expected in a conditional pattern.":Sn(DWn,n)?"There are more than three choices in a conditional group.":Sn($Wn,n)?"A character in U+0040-U+005f must follow \\c.":Sn(xWn,n)?"A '{' is required before a character category.":Sn(RWn,n)?"A property name is not closed by '}'.":Sn(Dcn,n)?"Unexpected meta character.":Sn(EF,n)?"Unknown property.":Sn($cn,n)?"A POSIX character class must be closed by ':]'.":Sn(UP,n)?"Unexpected end of the pattern in a character class.":Sn(KWn,n)?"Unknown name for a POSIX character class.":Sn("parser.cc.4",n)?"'-' is invalid here.":Sn(BWn,n)?"']' is expected.":Sn(xcn,n)?"'[' is invalid in a character class. Write '\\['.":Sn(Rcn,n)?"']' is invalid in a character class. Write '\\]'.":Sn(MF,n)?"'-' is an invalid character range. Write '\\-'.":Sn(FWn,n)?"'[' is expected.":Sn(_Wn,n)?"')' or '-[' or '+[' or '&[' is expected.":Sn(HWn,n)?"The range end code point is less than the start code point.":Sn(g1,n)?"Invalid Unicode hex notation.":Sn(qWn,n)?"Overflow in a hex notation.":Sn(UWn,n)?"'\\x{' must be closed by '}'.":Sn(GWn,n)?"Invalid Unicode code point.":Sn(zWn,n)?"An anchor must not be here.":Sn(is,n)?"This expression is not supported in the current option setting.":Sn(XWn,n)?"Invalid quantifier. A digit is expected.":Sn(VWn,n)?"Invalid quantifier. Invalid quantity or a '}' is missing.":Sn(WWn,n)?"Invalid quantifier. A digit or '}' is expected.":Sn(JWn,n)?"Invalid quantifier. A min quantity must be <= a max quantity.":Sn(Kcn,n)?"Invalid quantifier. A quantity value overflow.":Sn("_UI_PackageRegistry_extensionpoint",n)?"Ecore Package Registry for Generated Packages":Sn("_UI_DynamicPackageRegistry_extensionpoint",n)?"Ecore Package Registry for Dynamic Packages":Sn("_UI_FactoryRegistry_extensionpoint",n)?"Ecore Factory Override Registry":Sn("_UI_URIExtensionParserRegistry_extensionpoint",n)?"URI Extension Parser Registry":Sn("_UI_URIProtocolParserRegistry_extensionpoint",n)?"URI Protocol Parser Registry":Sn("_UI_URIContentParserRegistry_extensionpoint",n)?"URI Content Parser Registry":Sn("_UI_ContentHandlerRegistry_extensionpoint",n)?"Content Handler Registry":Sn("_UI_URIMappingRegistry_extensionpoint",n)?"URI Converter Mapping Registry":Sn("_UI_PackageRegistryImplementation_extensionpoint",n)?"Ecore Package Registry Implementation":Sn("_UI_ValidationDelegateRegistry_extensionpoint",n)?"Validation Delegate Registry":Sn("_UI_SettingDelegateRegistry_extensionpoint",n)?"Feature Setting Delegate Factory Registry":Sn("_UI_InvocationDelegateRegistry_extensionpoint",n)?"Operation Invocation Delegate Factory Registry":Sn("_UI_EClassInterfaceNotAbstract_diagnostic",n)?"A class that is an interface must also be abstract":Sn("_UI_EClassNoCircularSuperTypes_diagnostic",n)?"A class may not be a super type of itself":Sn("_UI_EClassNotWellFormedMapEntryNoInstanceClassName_diagnostic",n)?"A class that inherits from a map entry class must have instance class name 'java.util.Map$Entry'":Sn("_UI_EReferenceOppositeOfOppositeInconsistent_diagnostic",n)?"The opposite of the opposite may not be a reference different from this one":Sn("_UI_EReferenceOppositeNotFeatureOfType_diagnostic",n)?"The opposite must be a feature of the reference's type":Sn("_UI_EReferenceTransientOppositeNotTransient_diagnostic",n)?"The opposite of a transient reference must be transient if it is proxy resolving":Sn("_UI_EReferenceOppositeBothContainment_diagnostic",n)?"The opposite of a containment reference must not be a containment reference":Sn("_UI_EReferenceConsistentUnique_diagnostic",n)?"A containment or bidirectional reference must be unique if its upper bound is different from 1":Sn("_UI_ETypedElementNoType_diagnostic",n)?"The typed element must have a type":Sn("_UI_EAttributeNoDataType_diagnostic",n)?"The generic attribute type must not refer to a class":Sn("_UI_EReferenceNoClass_diagnostic",n)?"The generic reference type must not refer to a data type":Sn("_UI_EGenericTypeNoTypeParameterAndClassifier_diagnostic",n)?"A generic type can't refer to both a type parameter and a classifier":Sn("_UI_EGenericTypeNoClass_diagnostic",n)?"A generic super type must refer to a class":Sn("_UI_EGenericTypeNoTypeParameterOrClassifier_diagnostic",n)?"A generic type in this context must refer to a classifier or a type parameter":Sn("_UI_EGenericTypeBoundsOnlyForTypeArgument_diagnostic",n)?"A generic type may have bounds only when used as a type argument":Sn("_UI_EGenericTypeNoUpperAndLowerBound_diagnostic",n)?"A generic type must not have both a lower and an upper bound":Sn("_UI_EGenericTypeNoTypeParameterOrClassifierAndBound_diagnostic",n)?"A generic type with bounds must not also refer to a type parameter or classifier":Sn("_UI_EGenericTypeNoArguments_diagnostic",n)?"A generic type may have arguments only if it refers to a classifier":Sn("_UI_EGenericTypeOutOfScopeTypeParameter_diagnostic",n)?"A generic type may only refer to a type parameter that is in scope":n}function eDe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k;n.r||(n.r=!0,zc(n,"graph"),MC(n,"graph"),TC(n,ev),yk(n.o,"T"),ve(Hr(n.a),n.p),ve(Hr(n.f),n.a),ve(Hr(n.n),n.f),ve(Hr(n.g),n.n),ve(Hr(n.c),n.n),ve(Hr(n.i),n.c),ve(Hr(n.j),n.c),ve(Hr(n.d),n.f),ve(Hr(n.e),n.a),fc(n.p,pDe,pXn,!0,!0,!1),m=$g(n.p,n.p,"setProperty"),k=iRn(m),l=al(n.o),a=(t=(i=new Jd,i),t),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),d=ED(k),HZ(a,d),dS(m,l,Ecn),l=ED(k),dS(m,l,b8),m=$g(n.p,null,"getProperty"),k=iRn(m),l=al(n.o),a=ED(k),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),dS(m,l,Ecn),l=ED(k),p=Kf(m,l,null),p&&p.oj(),m=$g(n.p,n.wb.e,"hasProperty"),l=al(n.o),a=(r=(c=new Jd,c),r),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),dS(m,l,Ecn),m=$g(n.p,n.p,"copyProperties"),$r(m,n.p,lF),m=$g(n.p,null,"getAllProperties"),l=al(n.wb.P),a=al(n.o),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),d=(s=(f=new Jd,f),s),ve((!a.d&&(a.d=new ti(jr,a,1)),a.d),d),a=al(n.wb.M),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),g=Kf(m,l,null),g&&g.oj(),fc(n.a,_v,iWn,!0,!1,!0),Et(u(N(H(n.a),0),19),n.k,null,wWn,0,-1,_v,!1,!1,!0,!0,!1,!1,!1),fc(n.f,uE,cWn,!0,!1,!0),Et(u(N(H(n.f),0),19),n.g,u(N(H(n.g),0),19),"labels",0,-1,uE,!1,!1,!0,!0,!1,!1,!1),Gt(u(N(H(n.f),1),35),n.wb._,gWn,null,0,1,uE,!1,!1,!0,!1,!0,!1),fc(n.n,oE,"ElkShape",!0,!1,!0),Gt(u(N(H(n.n),0),35),n.wb.t,aF,B4,1,1,oE,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.n),1),35),n.wb.t,dF,B4,1,1,oE,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.n),2),35),n.wb.t,"x",B4,1,1,oE,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.n),3),35),n.wb.t,"y",B4,1,1,oE,!1,!1,!0,!1,!0,!1),m=$g(n.n,null,"setDimensions"),$r(m,n.wb.t,dF),$r(m,n.wb.t,aF),m=$g(n.n,null,"setLocation"),$r(m,n.wb.t,"x"),$r(m,n.wb.t,"y"),fc(n.g,Sr,kcn,!1,!1,!0),Et(u(N(H(n.g),0),19),n.f,u(N(H(n.f),0),19),bF,0,1,Sr,!1,!1,!0,!1,!1,!1,!1),Gt(u(N(H(n.g),1),35),n.wb._,wF,"",0,1,Sr,!1,!1,!0,!1,!0,!1),fc(n.c,he,uWn,!0,!1,!0),Et(u(N(H(n.c),0),19),n.d,u(N(H(n.d),1),19),"outgoingEdges",0,-1,he,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.c),1),19),n.d,u(N(H(n.d),2),19),"incomingEdges",0,-1,he,!1,!1,!0,!1,!0,!1,!1),fc(n.i,Ye,ycn,!1,!1,!0),Et(u(N(H(n.i),0),19),n.j,u(N(H(n.j),0),19),"ports",0,-1,Ye,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.i),1),19),n.i,u(N(H(n.i),2),19),gF,0,-1,Ye,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.i),2),19),n.i,u(N(H(n.i),1),19),bF,0,1,Ye,!1,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.i),3),19),n.d,u(N(H(n.d),0),19),"containedEdges",0,-1,Ye,!1,!1,!0,!0,!1,!1,!1),Gt(u(N(H(n.i),4),35),n.wb.e,pWn,null,0,1,Ye,!0,!0,!1,!1,!0,!0),fc(n.j,Qu,jcn,!1,!1,!0),Et(u(N(H(n.j),0),19),n.i,u(N(H(n.i),0),19),bF,0,1,Qu,!1,!1,!0,!1,!1,!1,!1),fc(n.d,Vt,vcn,!1,!1,!0),Et(u(N(H(n.d),0),19),n.i,u(N(H(n.i),3),19),"containingNode",0,1,Vt,!1,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.d),1),19),n.c,u(N(H(n.c),0),19),Mcn,0,-1,Vt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.d),2),19),n.c,u(N(H(n.c),1),19),pF,0,-1,Vt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.d),3),19),n.e,u(N(H(n.e),5),19),Tcn,0,-1,Vt,!1,!1,!0,!0,!1,!1,!1),Gt(u(N(H(n.d),4),35),n.wb.e,"hyperedge",null,0,1,Vt,!0,!0,!1,!1,!0,!0),Gt(u(N(H(n.d),5),35),n.wb.e,pWn,null,0,1,Vt,!0,!0,!1,!1,!0,!0),Gt(u(N(H(n.d),6),35),n.wb.e,"selfloop",null,0,1,Vt,!0,!0,!1,!1,!0,!0),Gt(u(N(H(n.d),7),35),n.wb.e,"connected",null,0,1,Vt,!0,!0,!1,!1,!0,!0),fc(n.b,xo,rWn,!1,!1,!0),Gt(u(N(H(n.b),0),35),n.wb.t,"x",B4,1,1,xo,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.b),1),35),n.wb.t,"y",B4,1,1,xo,!1,!1,!0,!1,!0,!1),m=$g(n.b,null,"set"),$r(m,n.wb.t,"x"),$r(m,n.wb.t,"y"),fc(n.e,Tt,oWn,!1,!1,!0),Gt(u(N(H(n.e),0),35),n.wb.t,"startX",null,0,1,Tt,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.e),1),35),n.wb.t,"startY",null,0,1,Tt,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.e),2),35),n.wb.t,"endX",null,0,1,Tt,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.e),3),35),n.wb.t,"endY",null,0,1,Tt,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.e),4),19),n.b,null,BP,0,-1,Tt,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.e),5),19),n.d,u(N(H(n.d),3),19),bF,0,1,Tt,!1,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.e),6),19),n.c,null,Ccn,0,1,Tt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.e),7),19),n.c,null,Scn,0,1,Tt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.e),8),19),n.e,u(N(H(n.e),9),19),Pcn,0,-1,Tt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.e),9),19),n.e,u(N(H(n.e),8),19),Icn,0,-1,Tt,!1,!1,!0,!1,!0,!1,!1),Gt(u(N(H(n.e),10),35),n.wb._,gWn,null,0,1,Tt,!1,!1,!0,!1,!0,!1),m=$g(n.e,null,"setStartLocation"),$r(m,n.wb.t,"x"),$r(m,n.wb.t,"y"),m=$g(n.e,null,"setEndLocation"),$r(m,n.wb.t,"x"),$r(m,n.wb.t,"y"),fc(n.k,Id,"ElkPropertyToValueMapEntry",!1,!1,!1),l=al(n.o),a=(h=(e=new Jd,e),h),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),bHn(u(N(H(n.k),0),35),l,"key",Id,!1,!1,!0,!1),Gt(u(N(H(n.k),1),35),n.s,b8,null,0,1,Id,!1,!1,!0,!1,!0,!1),We(n.o,Gq,"IProperty",!0),We(n.s,ki,"PropertyValue",!0),wY(n,ev))}function Tzn(){Tzn=R,I=F(Ru,s2,28,hr,15,1),I[9]=35,I[10]=19,I[13]=19,I[32]=51,I[33]=49,I[34]=33,K(I,35,38,49),I[38]=1,K(I,39,45,49),K(I,45,47,-71),I[47]=49,K(I,48,58,-71),I[58]=61,I[59]=49,I[60]=1,I[61]=49,I[62]=33,K(I,63,65,49),K(I,65,91,-3),K(I,91,93,33),I[93]=1,I[94]=33,I[95]=-3,I[96]=33,K(I,97,123,-3),K(I,123,183,33),I[183]=-87,K(I,184,192,33),K(I,192,215,-19),I[215]=33,K(I,216,247,-19),I[247]=33,K(I,248,306,-19),K(I,306,308,33),K(I,308,319,-19),K(I,319,321,33),K(I,321,329,-19),I[329]=33,K(I,330,383,-19),I[383]=33,K(I,384,452,-19),K(I,452,461,33),K(I,461,497,-19),K(I,497,500,33),K(I,500,502,-19),K(I,502,506,33),K(I,506,536,-19),K(I,536,592,33),K(I,592,681,-19),K(I,681,699,33),K(I,699,706,-19),K(I,706,720,33),K(I,720,722,-87),K(I,722,768,33),K(I,768,838,-87),K(I,838,864,33),K(I,864,866,-87),K(I,866,902,33),I[902]=-19,I[903]=-87,K(I,904,907,-19),I[907]=33,I[908]=-19,I[909]=33,K(I,910,930,-19),I[930]=33,K(I,931,975,-19),I[975]=33,K(I,976,983,-19),K(I,983,986,33),I[986]=-19,I[987]=33,I[988]=-19,I[989]=33,I[990]=-19,I[991]=33,I[992]=-19,I[993]=33,K(I,994,1012,-19),K(I,1012,1025,33),K(I,1025,1037,-19),I[1037]=33,K(I,1038,1104,-19),I[1104]=33,K(I,1105,1117,-19),I[1117]=33,K(I,1118,1154,-19),I[1154]=33,K(I,1155,1159,-87),K(I,1159,1168,33),K(I,1168,1221,-19),K(I,1221,1223,33),K(I,1223,1225,-19),K(I,1225,1227,33),K(I,1227,1229,-19),K(I,1229,1232,33),K(I,1232,1260,-19),K(I,1260,1262,33),K(I,1262,1270,-19),K(I,1270,1272,33),K(I,1272,1274,-19),K(I,1274,1329,33),K(I,1329,1367,-19),K(I,1367,1369,33),I[1369]=-19,K(I,1370,1377,33),K(I,1377,1415,-19),K(I,1415,1425,33),K(I,1425,1442,-87),I[1442]=33,K(I,1443,1466,-87),I[1466]=33,K(I,1467,1470,-87),I[1470]=33,I[1471]=-87,I[1472]=33,K(I,1473,1475,-87),I[1475]=33,I[1476]=-87,K(I,1477,1488,33),K(I,1488,1515,-19),K(I,1515,1520,33),K(I,1520,1523,-19),K(I,1523,1569,33),K(I,1569,1595,-19),K(I,1595,1600,33),I[1600]=-87,K(I,1601,1611,-19),K(I,1611,1619,-87),K(I,1619,1632,33),K(I,1632,1642,-87),K(I,1642,1648,33),I[1648]=-87,K(I,1649,1720,-19),K(I,1720,1722,33),K(I,1722,1727,-19),I[1727]=33,K(I,1728,1743,-19),I[1743]=33,K(I,1744,1748,-19),I[1748]=33,I[1749]=-19,K(I,1750,1765,-87),K(I,1765,1767,-19),K(I,1767,1769,-87),I[1769]=33,K(I,1770,1774,-87),K(I,1774,1776,33),K(I,1776,1786,-87),K(I,1786,2305,33),K(I,2305,2308,-87),I[2308]=33,K(I,2309,2362,-19),K(I,2362,2364,33),I[2364]=-87,I[2365]=-19,K(I,2366,2382,-87),K(I,2382,2385,33),K(I,2385,2389,-87),K(I,2389,2392,33),K(I,2392,2402,-19),K(I,2402,2404,-87),K(I,2404,2406,33),K(I,2406,2416,-87),K(I,2416,2433,33),K(I,2433,2436,-87),I[2436]=33,K(I,2437,2445,-19),K(I,2445,2447,33),K(I,2447,2449,-19),K(I,2449,2451,33),K(I,2451,2473,-19),I[2473]=33,K(I,2474,2481,-19),I[2481]=33,I[2482]=-19,K(I,2483,2486,33),K(I,2486,2490,-19),K(I,2490,2492,33),I[2492]=-87,I[2493]=33,K(I,2494,2501,-87),K(I,2501,2503,33),K(I,2503,2505,-87),K(I,2505,2507,33),K(I,2507,2510,-87),K(I,2510,2519,33),I[2519]=-87,K(I,2520,2524,33),K(I,2524,2526,-19),I[2526]=33,K(I,2527,2530,-19),K(I,2530,2532,-87),K(I,2532,2534,33),K(I,2534,2544,-87),K(I,2544,2546,-19),K(I,2546,2562,33),I[2562]=-87,K(I,2563,2565,33),K(I,2565,2571,-19),K(I,2571,2575,33),K(I,2575,2577,-19),K(I,2577,2579,33),K(I,2579,2601,-19),I[2601]=33,K(I,2602,2609,-19),I[2609]=33,K(I,2610,2612,-19),I[2612]=33,K(I,2613,2615,-19),I[2615]=33,K(I,2616,2618,-19),K(I,2618,2620,33),I[2620]=-87,I[2621]=33,K(I,2622,2627,-87),K(I,2627,2631,33),K(I,2631,2633,-87),K(I,2633,2635,33),K(I,2635,2638,-87),K(I,2638,2649,33),K(I,2649,2653,-19),I[2653]=33,I[2654]=-19,K(I,2655,2662,33),K(I,2662,2674,-87),K(I,2674,2677,-19),K(I,2677,2689,33),K(I,2689,2692,-87),I[2692]=33,K(I,2693,2700,-19),I[2700]=33,I[2701]=-19,I[2702]=33,K(I,2703,2706,-19),I[2706]=33,K(I,2707,2729,-19),I[2729]=33,K(I,2730,2737,-19),I[2737]=33,K(I,2738,2740,-19),I[2740]=33,K(I,2741,2746,-19),K(I,2746,2748,33),I[2748]=-87,I[2749]=-19,K(I,2750,2758,-87),I[2758]=33,K(I,2759,2762,-87),I[2762]=33,K(I,2763,2766,-87),K(I,2766,2784,33),I[2784]=-19,K(I,2785,2790,33),K(I,2790,2800,-87),K(I,2800,2817,33),K(I,2817,2820,-87),I[2820]=33,K(I,2821,2829,-19),K(I,2829,2831,33),K(I,2831,2833,-19),K(I,2833,2835,33),K(I,2835,2857,-19),I[2857]=33,K(I,2858,2865,-19),I[2865]=33,K(I,2866,2868,-19),K(I,2868,2870,33),K(I,2870,2874,-19),K(I,2874,2876,33),I[2876]=-87,I[2877]=-19,K(I,2878,2884,-87),K(I,2884,2887,33),K(I,2887,2889,-87),K(I,2889,2891,33),K(I,2891,2894,-87),K(I,2894,2902,33),K(I,2902,2904,-87),K(I,2904,2908,33),K(I,2908,2910,-19),I[2910]=33,K(I,2911,2914,-19),K(I,2914,2918,33),K(I,2918,2928,-87),K(I,2928,2946,33),K(I,2946,2948,-87),I[2948]=33,K(I,2949,2955,-19),K(I,2955,2958,33),K(I,2958,2961,-19),I[2961]=33,K(I,2962,2966,-19),K(I,2966,2969,33),K(I,2969,2971,-19),I[2971]=33,I[2972]=-19,I[2973]=33,K(I,2974,2976,-19),K(I,2976,2979,33),K(I,2979,2981,-19),K(I,2981,2984,33),K(I,2984,2987,-19),K(I,2987,2990,33),K(I,2990,2998,-19),I[2998]=33,K(I,2999,3002,-19),K(I,3002,3006,33),K(I,3006,3011,-87),K(I,3011,3014,33),K(I,3014,3017,-87),I[3017]=33,K(I,3018,3022,-87),K(I,3022,3031,33),I[3031]=-87,K(I,3032,3047,33),K(I,3047,3056,-87),K(I,3056,3073,33),K(I,3073,3076,-87),I[3076]=33,K(I,3077,3085,-19),I[3085]=33,K(I,3086,3089,-19),I[3089]=33,K(I,3090,3113,-19),I[3113]=33,K(I,3114,3124,-19),I[3124]=33,K(I,3125,3130,-19),K(I,3130,3134,33),K(I,3134,3141,-87),I[3141]=33,K(I,3142,3145,-87),I[3145]=33,K(I,3146,3150,-87),K(I,3150,3157,33),K(I,3157,3159,-87),K(I,3159,3168,33),K(I,3168,3170,-19),K(I,3170,3174,33),K(I,3174,3184,-87),K(I,3184,3202,33),K(I,3202,3204,-87),I[3204]=33,K(I,3205,3213,-19),I[3213]=33,K(I,3214,3217,-19),I[3217]=33,K(I,3218,3241,-19),I[3241]=33,K(I,3242,3252,-19),I[3252]=33,K(I,3253,3258,-19),K(I,3258,3262,33),K(I,3262,3269,-87),I[3269]=33,K(I,3270,3273,-87),I[3273]=33,K(I,3274,3278,-87),K(I,3278,3285,33),K(I,3285,3287,-87),K(I,3287,3294,33),I[3294]=-19,I[3295]=33,K(I,3296,3298,-19),K(I,3298,3302,33),K(I,3302,3312,-87),K(I,3312,3330,33),K(I,3330,3332,-87),I[3332]=33,K(I,3333,3341,-19),I[3341]=33,K(I,3342,3345,-19),I[3345]=33,K(I,3346,3369,-19),I[3369]=33,K(I,3370,3386,-19),K(I,3386,3390,33),K(I,3390,3396,-87),K(I,3396,3398,33),K(I,3398,3401,-87),I[3401]=33,K(I,3402,3406,-87),K(I,3406,3415,33),I[3415]=-87,K(I,3416,3424,33),K(I,3424,3426,-19),K(I,3426,3430,33),K(I,3430,3440,-87),K(I,3440,3585,33),K(I,3585,3631,-19),I[3631]=33,I[3632]=-19,I[3633]=-87,K(I,3634,3636,-19),K(I,3636,3643,-87),K(I,3643,3648,33),K(I,3648,3654,-19),K(I,3654,3663,-87),I[3663]=33,K(I,3664,3674,-87),K(I,3674,3713,33),K(I,3713,3715,-19),I[3715]=33,I[3716]=-19,K(I,3717,3719,33),K(I,3719,3721,-19),I[3721]=33,I[3722]=-19,K(I,3723,3725,33),I[3725]=-19,K(I,3726,3732,33),K(I,3732,3736,-19),I[3736]=33,K(I,3737,3744,-19),I[3744]=33,K(I,3745,3748,-19),I[3748]=33,I[3749]=-19,I[3750]=33,I[3751]=-19,K(I,3752,3754,33),K(I,3754,3756,-19),I[3756]=33,K(I,3757,3759,-19),I[3759]=33,I[3760]=-19,I[3761]=-87,K(I,3762,3764,-19),K(I,3764,3770,-87),I[3770]=33,K(I,3771,3773,-87),I[3773]=-19,K(I,3774,3776,33),K(I,3776,3781,-19),I[3781]=33,I[3782]=-87,I[3783]=33,K(I,3784,3790,-87),K(I,3790,3792,33),K(I,3792,3802,-87),K(I,3802,3864,33),K(I,3864,3866,-87),K(I,3866,3872,33),K(I,3872,3882,-87),K(I,3882,3893,33),I[3893]=-87,I[3894]=33,I[3895]=-87,I[3896]=33,I[3897]=-87,K(I,3898,3902,33),K(I,3902,3904,-87),K(I,3904,3912,-19),I[3912]=33,K(I,3913,3946,-19),K(I,3946,3953,33),K(I,3953,3973,-87),I[3973]=33,K(I,3974,3980,-87),K(I,3980,3984,33),K(I,3984,3990,-87),I[3990]=33,I[3991]=-87,I[3992]=33,K(I,3993,4014,-87),K(I,4014,4017,33),K(I,4017,4024,-87),I[4024]=33,I[4025]=-87,K(I,4026,4256,33),K(I,4256,4294,-19),K(I,4294,4304,33),K(I,4304,4343,-19),K(I,4343,4352,33),I[4352]=-19,I[4353]=33,K(I,4354,4356,-19),I[4356]=33,K(I,4357,4360,-19),I[4360]=33,I[4361]=-19,I[4362]=33,K(I,4363,4365,-19),I[4365]=33,K(I,4366,4371,-19),K(I,4371,4412,33),I[4412]=-19,I[4413]=33,I[4414]=-19,I[4415]=33,I[4416]=-19,K(I,4417,4428,33),I[4428]=-19,I[4429]=33,I[4430]=-19,I[4431]=33,I[4432]=-19,K(I,4433,4436,33),K(I,4436,4438,-19),K(I,4438,4441,33),I[4441]=-19,K(I,4442,4447,33),K(I,4447,4450,-19),I[4450]=33,I[4451]=-19,I[4452]=33,I[4453]=-19,I[4454]=33,I[4455]=-19,I[4456]=33,I[4457]=-19,K(I,4458,4461,33),K(I,4461,4463,-19),K(I,4463,4466,33),K(I,4466,4468,-19),I[4468]=33,I[4469]=-19,K(I,4470,4510,33),I[4510]=-19,K(I,4511,4520,33),I[4520]=-19,K(I,4521,4523,33),I[4523]=-19,K(I,4524,4526,33),K(I,4526,4528,-19),K(I,4528,4535,33),K(I,4535,4537,-19),I[4537]=33,I[4538]=-19,I[4539]=33,K(I,4540,4547,-19),K(I,4547,4587,33),I[4587]=-19,K(I,4588,4592,33),I[4592]=-19,K(I,4593,4601,33),I[4601]=-19,K(I,4602,7680,33),K(I,7680,7836,-19),K(I,7836,7840,33),K(I,7840,7930,-19),K(I,7930,7936,33),K(I,7936,7958,-19),K(I,7958,7960,33),K(I,7960,7966,-19),K(I,7966,7968,33),K(I,7968,8006,-19),K(I,8006,8008,33),K(I,8008,8014,-19),K(I,8014,8016,33),K(I,8016,8024,-19),I[8024]=33,I[8025]=-19,I[8026]=33,I[8027]=-19,I[8028]=33,I[8029]=-19,I[8030]=33,K(I,8031,8062,-19),K(I,8062,8064,33),K(I,8064,8117,-19),I[8117]=33,K(I,8118,8125,-19),I[8125]=33,I[8126]=-19,K(I,8127,8130,33),K(I,8130,8133,-19),I[8133]=33,K(I,8134,8141,-19),K(I,8141,8144,33),K(I,8144,8148,-19),K(I,8148,8150,33),K(I,8150,8156,-19),K(I,8156,8160,33),K(I,8160,8173,-19),K(I,8173,8178,33),K(I,8178,8181,-19),I[8181]=33,K(I,8182,8189,-19),K(I,8189,8400,33),K(I,8400,8413,-87),K(I,8413,8417,33),I[8417]=-87,K(I,8418,8486,33),I[8486]=-19,K(I,8487,8490,33),K(I,8490,8492,-19),K(I,8492,8494,33),I[8494]=-19,K(I,8495,8576,33),K(I,8576,8579,-19),K(I,8579,12293,33),I[12293]=-87,I[12294]=33,I[12295]=-19,K(I,12296,12321,33),K(I,12321,12330,-19),K(I,12330,12336,-87),I[12336]=33,K(I,12337,12342,-87),K(I,12342,12353,33),K(I,12353,12437,-19),K(I,12437,12441,33),K(I,12441,12443,-87),K(I,12443,12445,33),K(I,12445,12447,-87),K(I,12447,12449,33),K(I,12449,12539,-19),I[12539]=33,K(I,12540,12543,-87),K(I,12543,12549,33),K(I,12549,12589,-19),K(I,12589,19968,33),K(I,19968,40870,-19),K(I,40870,44032,33),K(I,44032,55204,-19),K(I,55204,Sy,33),K(I,57344,65534,33)}function tDe(n){var e,t,i,r,c,s,f;n.hb||(n.hb=!0,zc(n,"ecore"),MC(n,"ecore"),TC(n,ks),yk(n.fb,"E"),yk(n.L,"T"),yk(n.P,"K"),yk(n.P,"V"),yk(n.cb,"E"),ve(Hr(n.b),n.bb),ve(Hr(n.a),n.Q),ve(Hr(n.o),n.p),ve(Hr(n.p),n.R),ve(Hr(n.q),n.p),ve(Hr(n.v),n.q),ve(Hr(n.w),n.R),ve(Hr(n.B),n.Q),ve(Hr(n.R),n.Q),ve(Hr(n.T),n.eb),ve(Hr(n.U),n.R),ve(Hr(n.V),n.eb),ve(Hr(n.W),n.bb),ve(Hr(n.bb),n.eb),ve(Hr(n.eb),n.R),ve(Hr(n.db),n.R),fc(n.b,ng,uJn,!1,!1,!0),Gt(u(N(H(n.b),0),35),n.e,"iD",null,0,1,ng,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.b),1),19),n.q,null,"eAttributeType",1,1,ng,!0,!0,!1,!1,!0,!1,!0),fc(n.a,Ue,iJn,!1,!1,!0),Gt(u(N(H(n.a),0),35),n._,lF,null,0,1,Ue,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.a),1),19),n.ab,null,"details",0,-1,Ue,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.a),2),19),n.Q,u(N(H(n.Q),0),19),"eModelElement",0,1,Ue,!0,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.a),3),19),n.S,null,"contents",0,-1,Ue,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.a),4),19),n.S,null,"references",0,-1,Ue,!1,!1,!0,!1,!0,!1,!1),fc(n.o,Ss,"EClass",!1,!1,!0),Gt(u(N(H(n.o),0),35),n.e,"abstract",null,0,1,Ss,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.o),1),35),n.e,"interface",null,0,1,Ss,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.o),2),19),n.o,null,"eSuperTypes",0,-1,Ss,!1,!1,!0,!1,!0,!0,!1),Et(u(N(H(n.o),3),19),n.T,u(N(H(n.T),0),19),"eOperations",0,-1,Ss,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.o),4),19),n.b,null,"eAllAttributes",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),5),19),n.W,null,"eAllReferences",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),6),19),n.W,null,"eReferences",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),7),19),n.b,null,"eAttributes",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),8),19),n.W,null,"eAllContainments",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),9),19),n.T,null,"eAllOperations",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),10),19),n.bb,null,"eAllStructuralFeatures",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),11),19),n.o,null,"eAllSuperTypes",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),12),19),n.b,null,"eIDAttribute",0,1,Ss,!0,!0,!1,!1,!1,!1,!0),Et(u(N(H(n.o),13),19),n.bb,u(N(H(n.bb),7),19),"eStructuralFeatures",0,-1,Ss,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.o),14),19),n.H,null,"eGenericSuperTypes",0,-1,Ss,!1,!1,!0,!0,!1,!0,!1),Et(u(N(H(n.o),15),19),n.H,null,"eAllGenericSuperTypes",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),f=Tr(u(N(ft(n.o),0),62),n.e,"isSuperTypeOf"),$r(f,n.o,"someClass"),Tr(u(N(ft(n.o),1),62),n.I,"getFeatureCount"),f=Tr(u(N(ft(n.o),2),62),n.bb,mJn),$r(f,n.I,"featureID"),f=Tr(u(N(ft(n.o),3),62),n.I,vJn),$r(f,n.bb,j8),f=Tr(u(N(ft(n.o),4),62),n.bb,mJn),$r(f,n._,"featureName"),Tr(u(N(ft(n.o),5),62),n.I,"getOperationCount"),f=Tr(u(N(ft(n.o),6),62),n.T,"getEOperation"),$r(f,n.I,"operationID"),f=Tr(u(N(ft(n.o),7),62),n.I,kJn),$r(f,n.T,Ucn),f=Tr(u(N(ft(n.o),8),62),n.T,"getOverride"),$r(f,n.T,Ucn),f=Tr(u(N(ft(n.o),9),62),n.H,"getFeatureType"),$r(f,n.bb,j8),fc(n.p,Mf,oJn,!0,!1,!0),Gt(u(N(H(n.p),0),35),n._,"instanceClassName",null,0,1,Mf,!1,!0,!0,!0,!0,!1),e=al(n.L),t=wJ(),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),bHn(u(N(H(n.p),1),35),e,"instanceClass",Mf,!0,!0,!1,!0),Gt(u(N(H(n.p),2),35),n.M,yJn,null,0,1,Mf,!0,!0,!1,!1,!0,!0),Gt(u(N(H(n.p),3),35),n._,"instanceTypeName",null,0,1,Mf,!1,!0,!0,!0,!0,!1),Et(u(N(H(n.p),4),19),n.U,u(N(H(n.U),3),19),"ePackage",0,1,Mf,!0,!1,!1,!1,!0,!1,!1),Et(u(N(H(n.p),5),19),n.db,null,jJn,0,-1,Mf,!1,!1,!0,!0,!0,!1,!1),f=Tr(u(N(ft(n.p),0),62),n.e,EJn),$r(f,n.M,my),Tr(u(N(ft(n.p),1),62),n.I,"getClassifierID"),fc(n.q,yU,"EDataType",!1,!1,!0),Gt(u(N(H(n.q),0),35),n.e,"serializable",Z4,0,1,yU,!1,!1,!0,!1,!0,!1),fc(n.v,EA,"EEnum",!1,!1,!0),Et(u(N(H(n.v),0),19),n.w,u(N(H(n.w),3),19),"eLiterals",0,-1,EA,!1,!1,!0,!0,!1,!1,!1),f=Tr(u(N(ft(n.v),0),62),n.w,MJn),$r(f,n._,Qe),f=Tr(u(N(ft(n.v),1),62),n.w,MJn),$r(f,n.I,b8),f=Tr(u(N(ft(n.v),2),62),n.w,"getEEnumLiteralByLiteral"),$r(f,n._,"literal"),fc(n.w,Kl,sJn,!1,!1,!0),Gt(u(N(H(n.w),0),35),n.I,b8,null,0,1,Kl,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.w),1),35),n.A,"instance",null,0,1,Kl,!0,!1,!0,!1,!0,!1),Gt(u(N(H(n.w),2),35),n._,"literal",null,0,1,Kl,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.w),3),19),n.v,u(N(H(n.v),0),19),"eEnum",0,1,Kl,!0,!1,!1,!1,!1,!1,!1),fc(n.B,I9,"EFactory",!1,!1,!0),Et(u(N(H(n.B),0),19),n.U,u(N(H(n.U),2),19),"ePackage",1,1,I9,!0,!1,!0,!1,!1,!1,!1),f=Tr(u(N(ft(n.B),0),62),n.S,"create"),$r(f,n.o,"eClass"),f=Tr(u(N(ft(n.B),1),62),n.M,"createFromString"),$r(f,n.q,"eDataType"),$r(f,n._,"literalValue"),f=Tr(u(N(ft(n.B),2),62),n._,"convertToString"),$r(f,n.q,"eDataType"),$r(f,n.M,"instanceValue"),fc(n.Q,sE,sWn,!0,!1,!0),Et(u(N(H(n.Q),0),19),n.a,u(N(H(n.a),2),19),"eAnnotations",0,-1,sE,!1,!1,!0,!0,!1,!1,!1),f=Tr(u(N(ft(n.Q),0),62),n.a,"getEAnnotation"),$r(f,n._,lF),fc(n.R,wU,fWn,!0,!1,!0),Gt(u(N(H(n.R),0),35),n._,Qe,null,0,1,wU,!1,!1,!0,!1,!0,!1),fc(n.S,La,"EObject",!1,!1,!0),Tr(u(N(ft(n.S),0),62),n.o,"eClass"),Tr(u(N(ft(n.S),1),62),n.e,"eIsProxy"),Tr(u(N(ft(n.S),2),62),n.X,"eResource"),Tr(u(N(ft(n.S),3),62),n.S,"eContainer"),Tr(u(N(ft(n.S),4),62),n.bb,"eContainingFeature"),Tr(u(N(ft(n.S),5),62),n.W,"eContainmentFeature"),f=Tr(u(N(ft(n.S),6),62),null,"eContents"),e=al(n.fb),t=al(n.S),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),r=Kf(f,e,null),r&&r.oj(),f=Tr(u(N(ft(n.S),7),62),null,"eAllContents"),e=al(n.cb),t=al(n.S),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),c=Kf(f,e,null),c&&c.oj(),f=Tr(u(N(ft(n.S),8),62),null,"eCrossReferences"),e=al(n.fb),t=al(n.S),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),s=Kf(f,e,null),s&&s.oj(),f=Tr(u(N(ft(n.S),9),62),n.M,"eGet"),$r(f,n.bb,j8),f=Tr(u(N(ft(n.S),10),62),n.M,"eGet"),$r(f,n.bb,j8),$r(f,n.e,"resolve"),f=Tr(u(N(ft(n.S),11),62),null,"eSet"),$r(f,n.bb,j8),$r(f,n.M,"newValue"),f=Tr(u(N(ft(n.S),12),62),n.e,"eIsSet"),$r(f,n.bb,j8),f=Tr(u(N(ft(n.S),13),62),null,"eUnset"),$r(f,n.bb,j8),f=Tr(u(N(ft(n.S),14),62),n.M,"eInvoke"),$r(f,n.T,Ucn),e=al(n.fb),t=wJ(),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),dS(f,e,"arguments"),H0e(f,n.K),fc(n.T,Ps,hJn,!1,!1,!0),Et(u(N(H(n.T),0),19),n.o,u(N(H(n.o),3),19),TJn,0,1,Ps,!0,!1,!1,!1,!1,!1,!1),Et(u(N(H(n.T),1),19),n.db,null,jJn,0,-1,Ps,!1,!1,!0,!0,!0,!1,!1),Et(u(N(H(n.T),2),19),n.V,u(N(H(n.V),0),19),"eParameters",0,-1,Ps,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.T),3),19),n.p,null,"eExceptions",0,-1,Ps,!1,!1,!0,!1,!0,!0,!1),Et(u(N(H(n.T),4),19),n.H,null,"eGenericExceptions",0,-1,Ps,!1,!1,!0,!0,!1,!0,!1),Tr(u(N(ft(n.T),0),62),n.I,kJn),f=Tr(u(N(ft(n.T),1),62),n.e,"isOverrideOf"),$r(f,n.T,"someOperation"),fc(n.U,Ef,"EPackage",!1,!1,!0),Gt(u(N(H(n.U),0),35),n._,"nsURI",null,0,1,Ef,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.U),1),35),n._,"nsPrefix",null,0,1,Ef,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.U),2),19),n.B,u(N(H(n.B),0),19),"eFactoryInstance",1,1,Ef,!0,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.U),3),19),n.p,u(N(H(n.p),4),19),"eClassifiers",0,-1,Ef,!1,!1,!0,!0,!0,!1,!1),Et(u(N(H(n.U),4),19),n.U,u(N(H(n.U),5),19),"eSubpackages",0,-1,Ef,!1,!1,!0,!0,!0,!1,!1),Et(u(N(H(n.U),5),19),n.U,u(N(H(n.U),4),19),"eSuperPackage",0,1,Ef,!0,!1,!1,!1,!0,!1,!1),f=Tr(u(N(ft(n.U),0),62),n.p,"getEClassifier"),$r(f,n._,Qe),fc(n.V,vw,lJn,!1,!1,!0),Et(u(N(H(n.V),0),19),n.T,u(N(H(n.T),2),19),"eOperation",0,1,vw,!0,!1,!1,!1,!1,!1,!1),fc(n.W,eg,aJn,!1,!1,!0),Gt(u(N(H(n.W),0),35),n.e,"containment",null,0,1,eg,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.W),1),35),n.e,"container",null,0,1,eg,!0,!0,!1,!1,!0,!0),Gt(u(N(H(n.W),2),35),n.e,"resolveProxies",Z4,0,1,eg,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.W),3),19),n.W,null,"eOpposite",0,1,eg,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.W),4),19),n.o,null,"eReferenceType",1,1,eg,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.W),5),19),n.b,null,"eKeys",0,-1,eg,!1,!1,!0,!1,!0,!1,!1),fc(n.bb,ku,cJn,!0,!1,!0),Gt(u(N(H(n.bb),0),35),n.e,"changeable",Z4,0,1,ku,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.bb),1),35),n.e,"volatile",null,0,1,ku,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.bb),2),35),n.e,"transient",null,0,1,ku,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.bb),3),35),n._,"defaultValueLiteral",null,0,1,ku,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.bb),4),35),n.M,yJn,null,0,1,ku,!0,!0,!1,!1,!0,!0),Gt(u(N(H(n.bb),5),35),n.e,"unsettable",null,0,1,ku,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.bb),6),35),n.e,"derived",null,0,1,ku,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.bb),7),19),n.o,u(N(H(n.o),13),19),TJn,0,1,ku,!0,!1,!1,!1,!1,!1,!1),Tr(u(N(ft(n.bb),0),62),n.I,vJn),f=Tr(u(N(ft(n.bb),1),62),null,"getContainerClass"),e=al(n.L),t=wJ(),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),i=Kf(f,e,null),i&&i.oj(),fc(n.eb,Z0,rJn,!0,!1,!0),Gt(u(N(H(n.eb),0),35),n.e,"ordered",Z4,0,1,Z0,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.eb),1),35),n.e,"unique",Z4,0,1,Z0,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.eb),2),35),n.I,"lowerBound",null,0,1,Z0,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.eb),3),35),n.I,"upperBound","1",0,1,Z0,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.eb),4),35),n.e,"many",null,0,1,Z0,!0,!0,!1,!1,!0,!0),Gt(u(N(H(n.eb),5),35),n.e,"required",null,0,1,Z0,!0,!0,!1,!1,!0,!0),Et(u(N(H(n.eb),6),19),n.p,null,"eType",0,1,Z0,!1,!0,!0,!1,!0,!0,!1),Et(u(N(H(n.eb),7),19),n.H,null,"eGenericType",0,1,Z0,!1,!0,!0,!0,!1,!0,!1),fc(n.ab,Id,"EStringToStringMapEntry",!1,!1,!1),Gt(u(N(H(n.ab),0),35),n._,"key",null,0,1,Id,!1,!1,!0,!1,!0,!1),Gt(u(N(H(n.ab),1),35),n._,b8,null,0,1,Id,!1,!1,!0,!1,!0,!1),fc(n.H,jr,fJn,!1,!1,!0),Et(u(N(H(n.H),0),19),n.H,null,"eUpperBound",0,1,jr,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.H),1),19),n.H,null,"eTypeArguments",0,-1,jr,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.H),2),19),n.p,null,"eRawType",1,1,jr,!0,!1,!1,!1,!0,!1,!0),Et(u(N(H(n.H),3),19),n.H,null,"eLowerBound",0,1,jr,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.H),4),19),n.db,null,"eTypeParameter",0,1,jr,!1,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.H),5),19),n.p,null,"eClassifier",0,1,jr,!1,!1,!0,!1,!0,!1,!1),f=Tr(u(N(ft(n.H),0),62),n.e,EJn),$r(f,n.M,my),fc(n.db,fu,dJn,!1,!1,!0),Et(u(N(H(n.db),0),19),n.H,null,"eBounds",0,-1,fu,!1,!1,!0,!0,!1,!1,!1),We(n.c,JF,"EBigDecimal",!0),We(n.d,l2,"EBigInteger",!0),We(n.e,so,"EBoolean",!0),We(n.f,zt,"EBooleanObject",!0),We(n.i,Ru,"EByte",!0),We(n.g,C(Ru,1),"EByteArray",!0),We(n.j,p3,"EByteObject",!0),We(n.k,fs,"EChar",!0),We(n.n,T8,"ECharacterObject",!0),We(n.r,oI,"EDate",!0),We(n.s,pbn,"EDiagnosticChain",!1),We(n.t,Ii,"EDouble",!0),We(n.u,si,"EDoubleObject",!0),We(n.fb,Ldn,"EEList",!1),We(n.A,$dn,"EEnumerator",!1),We(n.C,rbn,"EFeatureMap",!1),We(n.D,MA,"EFeatureMapEntry",!1),We(n.F,cg,"EFloat",!0),We(n.G,ov,"EFloatObject",!0),We(n.I,ye,"EInt",!0),We(n.J,Gi,"EIntegerObject",!0),We(n.L,eun,"EJavaClass",!0),We(n.M,ki,"EJavaObject",!0),We(n.N,Ka,"ELong",!0),We(n.O,nw,"ELongObject",!0),We(n.P,tun,"EMap",!1),We(n.X,nbn,"EResource",!1),We(n.Y,mbn,"EResourceSet",!1),We(n.Z,V2,"EShort",!0),We(n.$,ew,"EShortObject",!0),We(n._,fn,"EString",!0),We(n.cb,Ddn,"ETreeIterator",!1),We(n.K,vbn,"EInvocationTargetException",!1),wY(n,ks))}var my="object",i3="boolean",htn="number",nK="string",eK="function",et=2147483647,ac="java.lang",vy={3:1},ky="com.google.common.base",ur=", ",Czn="%s (%s) must not be negative",Rn={3:1,4:1,5:1},Szn="negative size: ",ltn="no calls to next() since the last call to remove()",Pzn="Optional.of(",gu="null",D4={204:1,51:1},Mn="com.google.common.collect",$4={204:1,51:1,128:1},md={229:1,3:1},Pi={51:1},le="java.util",Gb={85:1},p0={20:1,31:1,16:1},Ff=2063,Nu={20:1,31:1,16:1,21:1},atn={85:1,139:1,133:1},Izn={20:1,31:1,16:1,21:1,87:1},dtn={20:1,31:1,16:1,277:1,21:1,87:1},Hh={51:1,128:1},tK={358:1,44:1},Ozn="AbstractMapEntry",Azn="expectedValuesPerKey",J={3:1,6:1,4:1,5:1},wh=16384,Io={159:1},re={41:1},yy={202:1},jy={l:4194303,m:4194303,h:524287},iK={253:1,3:1,34:1},Lzn="range unbounded on this side",qh={20:1},Nzn={20:1,16:1},btn={3:1,20:1,31:1,16:1},x4={306:1,3:1,20:1,31:1,16:1,15:1,59:1},WS={3:1,4:1,5:1,173:1},R4={3:1,85:1},rK={20:1,16:1,21:1},r3={3:1,20:1,31:1,16:1,21:1},Dzn={20:1,16:1,21:1,87:1},Uh=461845907,Gh=-862048943,Ey={3:1,6:1,4:1,5:1,173:1},$zn="expectedSize",Gs=1024,X5=1073741824,m0="initialArraySize",G={3:1,6:1,4:1,9:1,5:1},K4={20:1,31:1,56:1,16:1,15:1},cK="arraySize",xzn={20:1,31:1,56:1,16:1,15:1,59:1},Le={46:1},JS={380:1},ha=1e-4,Wi=-2147483648,Rzn="__noinit__",Il={3:1,103:1,63:1,82:1},My="com.google.gwt.core.client.impl",wtn="String",gtn="com.google.gwt.core.client",uK="anonymous",oK="fnStack",ptn="Unknown",gh={201:1,3:1,4:1},d1=1e3,ui=65535,sK="January",fK="February",hK="March",lK="April",c3="May",aK="June",dK="July",bK="August",wK="September",gK="October",pK="November",mK="December",la=1900,_e={53:1,3:1,4:1},Kzn="Before Christ",Bzn="Anno Domini",vK="Sunday",kK="Monday",yK="Tuesday",jK="Wednesday",EK="Thursday",MK="Friday",TK="Saturday",mtn="com.google.gwt.i18n.shared",Fzn="DateTimeFormat",CK="com.google.gwt.i18n.client",_zn="DefaultDateTimeFormatInfo",Hzn={3:1,4:1,34:1,206:1},u3="com.google.gwt.json.client",ro=4194303,Ol=1048575,Ty=524288,o3=4194304,vd=17592186044416,QS=1e9,Cy=-17592186044416,vtn="java.io",SK={3:1,103:1,77:1,63:1,82:1},qzn={3:1,295:1,82:1},zb='For input string: "',Pt=1/0,li=-1/0,v0=4096,PK={3:1,4:1,376:1},Yn="org.eclipse.elk.layered",hr=65536,Sy=55296,Cr={109:1,3:1,4:1},IK=1e5,Uzn=.3010299956639812,mr=4294967295,B4="0.0",OK={44:1},F4="Unable to add element to queue",Gzn={3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1},zzn={3:1,20:1,31:1,56:1,16:1,15:1,59:1},Xzn={20:1,16:1,15:1},AK={3:1,50:1},Py={189:1},n2={3:1,4:1,85:1},ktn={3:1,4:1,20:1,31:1,16:1,49:1,21:1},LK="delete",V5=14901161193847656e-24,W5=11102230246251565e-32,NK=15525485,Iy=5960464477539063e-23,ytn=16777216,YS=16777215,jtn=", length: ",Vzn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1},Etn="subMap: ",Wzn=" less than ",DK={3:1,34:1,22:1,303:1},$K="java.util.function",J5="java.util.logging",Jzn={3:1,4:1,5:1,856:1},xK="undefined",ai="java.util.stream",Mtn={533:1,687:1},ZS="fromIndex: ",Qzn=" > toIndex: ",Ttn=", toIndex: ",Ctn="Index: ",Stn=", Size: ",_4="org.eclipse.elk.alg.common",De={50:1},Yzn="org.eclipse.elk.alg.common.compaction",Zzn="Scanline/EventHandler",zh="org.eclipse.elk.alg.common.compaction.oned",nXn="CNode belongs to another CGroup.",eXn="ISpacingsHandler/1",RK="The ",KK=" instance has been finished already.",tXn="The direction ",iXn=" is not supported by the CGraph instance.",rXn="OneDimensionalCompactor",cXn="OneDimensionalCompactor/lambda$0$Type",uXn="Quadruplet",oXn="ScanlineConstraintCalculator",sXn="ScanlineConstraintCalculator/ConstraintsScanlineHandler",fXn="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",hXn="ScanlineConstraintCalculator/Timestamp",lXn="ScanlineConstraintCalculator/lambda$0$Type",ph={178:1,46:1},BK="org.eclipse.elk.alg.common.compaction.options",oc="org.eclipse.elk.core.data",Ptn="org.eclipse.elk.polyomino.traversalStrategy",Itn="org.eclipse.elk.polyomino.lowLevelSort",Otn="org.eclipse.elk.polyomino.highLevelSort",Atn="org.eclipse.elk.polyomino.fill",ms={134:1},FK="polyomino",Q5="org.eclipse.elk.alg.common.networksimplex",Xh={183:1,3:1,4:1},aXn="org.eclipse.elk.alg.common.nodespacing",kd="org.eclipse.elk.alg.common.nodespacing.cellsystem",H4="CENTER",dXn={217:1,336:1},Ltn={3:1,4:1,5:1,603:1},s3="LEFT",f3="RIGHT",Ntn="Vertical alignment cannot be null",Dtn="BOTTOM",nP="org.eclipse.elk.alg.common.nodespacing.internal",Y5="UNDEFINED",_f=.01,Oy="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",bXn="LabelPlacer/lambda$0$Type",wXn="LabelPlacer/lambda$1$Type",gXn="portRatioOrPosition",q4="org.eclipse.elk.alg.common.overlaps",_K="DOWN",mh="org.eclipse.elk.alg.common.polyomino",eP="NORTH",HK="EAST",qK="SOUTH",UK="WEST",tP="org.eclipse.elk.alg.common.polyomino.structures",$tn="Direction",GK="Grid is only of size ",zK=". Requested point (",XK=") is out of bounds.",iP=" Given center based coordinates were (",Ay="org.eclipse.elk.graph.properties",pXn="IPropertyHolder",xtn={3:1,96:1,137:1},h3="org.eclipse.elk.alg.common.spore",mXn="org.eclipse.elk.alg.common.utils",yd={205:1},e2="org.eclipse.elk.core",vXn="Connected Components Compaction",kXn="org.eclipse.elk.alg.disco",rP="org.eclipse.elk.alg.disco.graph",VK="org.eclipse.elk.alg.disco.options",Rtn="CompactionStrategy",Ktn="org.eclipse.elk.disco.componentCompaction.strategy",Btn="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",Ftn="org.eclipse.elk.disco.debug.discoGraph",_tn="org.eclipse.elk.disco.debug.discoPolys",yXn="componentCompaction",jd="org.eclipse.elk.disco",WK="org.eclipse.elk.spacing.componentComponent",JK="org.eclipse.elk.edge.thickness",l3="org.eclipse.elk.aspectRatio",Xb="org.eclipse.elk.padding",t2="org.eclipse.elk.alg.disco.transform",QK=1.5707963267948966,i2=17976931348623157e292,k0={3:1,4:1,5:1,198:1},jXn={3:1,6:1,4:1,5:1,100:1,115:1},YK="org.eclipse.elk.alg.force",Htn="ComponentsProcessor",EXn="ComponentsProcessor/1",qtn="ElkGraphImporter/lambda$0$Type",Ly="org.eclipse.elk.alg.force.graph",MXn="Component Layout",Utn="org.eclipse.elk.alg.force.model",cP="org.eclipse.elk.force.model",Gtn="org.eclipse.elk.force.iterations",ztn="org.eclipse.elk.force.repulsivePower",ZK="org.eclipse.elk.force.temperature",vh=.001,nB="org.eclipse.elk.force.repulsion",Z5="org.eclipse.elk.alg.force.options",U4=1.600000023841858,cu="org.eclipse.elk.force",Ny="org.eclipse.elk.priority",y0="org.eclipse.elk.spacing.nodeNode",eB="org.eclipse.elk.spacing.edgeLabel",uP="org.eclipse.elk.randomSeed",n8="org.eclipse.elk.separateConnectedComponents",e8="org.eclipse.elk.interactive",tB="org.eclipse.elk.portConstraints",oP="org.eclipse.elk.edgeLabels.inline",t8="org.eclipse.elk.omitNodeMicroLayout",G4="org.eclipse.elk.nodeSize.fixedGraphSize",a3="org.eclipse.elk.nodeSize.options",r2="org.eclipse.elk.nodeSize.constraints",z4="org.eclipse.elk.nodeLabels.placement",X4="org.eclipse.elk.portLabels.placement",Dy="org.eclipse.elk.topdownLayout",$y="org.eclipse.elk.topdown.scaleFactor",xy="org.eclipse.elk.topdown.hierarchicalNodeWidth",Ry="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",Vb="org.eclipse.elk.topdown.nodeType",Xtn="origin",TXn="random",CXn="boundingBox.upLeft",SXn="boundingBox.lowRight",Vtn="org.eclipse.elk.stress.fixed",Wtn="org.eclipse.elk.stress.desiredEdgeLength",Jtn="org.eclipse.elk.stress.dimension",Qtn="org.eclipse.elk.stress.epsilon",Ytn="org.eclipse.elk.stress.iterationLimit",aa="org.eclipse.elk.stress",PXn="ELK Stress",d3="org.eclipse.elk.nodeSize.minimum",sP="org.eclipse.elk.alg.force.stress",IXn="Layered layout",b3="org.eclipse.elk.alg.layered",Ky="org.eclipse.elk.alg.layered.compaction.components",i8="org.eclipse.elk.alg.layered.compaction.oned",fP="org.eclipse.elk.alg.layered.compaction.oned.algs",Ed="org.eclipse.elk.alg.layered.compaction.recthull",Hf="org.eclipse.elk.alg.layered.components",kh="NONE",Ztn="MODEL_ORDER",Tc={3:1,6:1,4:1,9:1,5:1,126:1},OXn={3:1,6:1,4:1,5:1,150:1,100:1,115:1},hP="org.eclipse.elk.alg.layered.compound",vt={47:1},Kc="org.eclipse.elk.alg.layered.graph",iB=" -> ",AXn="Not supported by LGraph",nin="Port side is undefined",rB={3:1,6:1,4:1,5:1,482:1,150:1,100:1,115:1},b1={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},LXn={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},NXn=`([{"' \r
`,DXn=`)]}"' \r
`,$Xn="The given string contains parts that cannot be parsed as numbers.",By="org.eclipse.elk.core.math",xXn={3:1,4:1,140:1,214:1,423:1},RXn={3:1,4:1,107:1,214:1,423:1},w1="org.eclipse.elk.alg.layered.graph.transform",KXn="ElkGraphImporter",BXn="ElkGraphImporter/lambda$1$Type",FXn="ElkGraphImporter/lambda$2$Type",_Xn="ElkGraphImporter/lambda$4$Type",Qn="org.eclipse.elk.alg.layered.intermediate",HXn="Node margin calculation",qXn="ONE_SIDED_GREEDY_SWITCH",UXn="TWO_SIDED_GREEDY_SWITCH",cB="No implementation is available for the layout processor ",uB="IntermediateProcessorStrategy",oB="Node '",GXn="FIRST_SEPARATE",zXn="LAST_SEPARATE",XXn="Odd port side processing",di="org.eclipse.elk.alg.layered.intermediate.compaction",r8="org.eclipse.elk.alg.layered.intermediate.greedyswitch",Vh="org.eclipse.elk.alg.layered.p3order.counting",Fy={230:1},w3="org.eclipse.elk.alg.layered.intermediate.loops",Oo="org.eclipse.elk.alg.layered.intermediate.loops.ordering",da="org.eclipse.elk.alg.layered.intermediate.loops.routing",ein="org.eclipse.elk.alg.layered.intermediate.preserveorder",yh="org.eclipse.elk.alg.layered.intermediate.wrapping",Cc="org.eclipse.elk.alg.layered.options",sB="INTERACTIVE",tin="GREEDY",VXn="DEPTH_FIRST",WXn="EDGE_LENGTH",JXn="SELF_LOOPS",QXn="firstTryWithInitialOrder",iin="org.eclipse.elk.layered.directionCongruency",rin="org.eclipse.elk.layered.feedbackEdges",lP="org.eclipse.elk.layered.interactiveReferencePoint",cin="org.eclipse.elk.layered.mergeEdges",uin="org.eclipse.elk.layered.mergeHierarchyEdges",oin="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",sin="org.eclipse.elk.layered.portSortingStrategy",fin="org.eclipse.elk.layered.thoroughness",hin="org.eclipse.elk.layered.unnecessaryBendpoints",lin="org.eclipse.elk.layered.generatePositionAndLayerIds",fB="org.eclipse.elk.layered.cycleBreaking.strategy",_y="org.eclipse.elk.layered.layering.strategy",ain="org.eclipse.elk.layered.layering.layerConstraint",din="org.eclipse.elk.layered.layering.layerChoiceConstraint",bin="org.eclipse.elk.layered.layering.layerId",hB="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",lB="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",aB="org.eclipse.elk.layered.layering.nodePromotion.strategy",dB="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",bB="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",c8="org.eclipse.elk.layered.crossingMinimization.strategy",win="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",wB="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",gB="org.eclipse.elk.layered.crossingMinimization.semiInteractive",gin="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",pin="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",min="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",vin="org.eclipse.elk.layered.crossingMinimization.positionId",kin="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",pB="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",aP="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",c2="org.eclipse.elk.layered.nodePlacement.strategy",dP="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",mB="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",vB="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",kB="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",yB="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",jB="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",yin="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",jin="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",bP="org.eclipse.elk.layered.edgeRouting.splines.mode",wP="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",EB="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",Ein="org.eclipse.elk.layered.spacing.baseValue",Min="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",Tin="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",Cin="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",Sin="org.eclipse.elk.layered.priority.direction",Pin="org.eclipse.elk.layered.priority.shortness",Iin="org.eclipse.elk.layered.priority.straightness",MB="org.eclipse.elk.layered.compaction.connectedComponents",Oin="org.eclipse.elk.layered.compaction.postCompaction.strategy",Ain="org.eclipse.elk.layered.compaction.postCompaction.constraints",gP="org.eclipse.elk.layered.highDegreeNodes.treatment",TB="org.eclipse.elk.layered.highDegreeNodes.threshold",CB="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Al="org.eclipse.elk.layered.wrapping.strategy",pP="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",mP="org.eclipse.elk.layered.wrapping.correctionFactor",u8="org.eclipse.elk.layered.wrapping.cutting.strategy",SB="org.eclipse.elk.layered.wrapping.cutting.cuts",PB="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",vP="org.eclipse.elk.layered.wrapping.validify.strategy",kP="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",yP="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",jP="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",IB="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",Lin="org.eclipse.elk.layered.edgeLabels.sideSelection",Nin="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",EP="org.eclipse.elk.layered.considerModelOrder.strategy",Din="org.eclipse.elk.layered.considerModelOrder.portModelOrder",$in="org.eclipse.elk.layered.considerModelOrder.noModelOrder",OB="org.eclipse.elk.layered.considerModelOrder.components",xin="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",AB="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",LB="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",NB="layering",YXn="layering.minWidth",ZXn="layering.nodePromotion",V4="crossingMinimization",MP="org.eclipse.elk.hierarchyHandling",nVn="crossingMinimization.greedySwitch",eVn="nodePlacement",tVn="nodePlacement.bk",iVn="edgeRouting",Hy="org.eclipse.elk.edgeRouting",qf="spacing",Rin="priority",Kin="compaction",rVn="compaction.postCompaction",cVn="Specifies whether and how post-process compaction is applied.",Bin="highDegreeNodes",Fin="wrapping",uVn="wrapping.cutting",oVn="wrapping.validify",_in="wrapping.multiEdge",DB="edgeLabels",o8="considerModelOrder",Hin="org.eclipse.elk.spacing.commentComment",qin="org.eclipse.elk.spacing.commentNode",Uin="org.eclipse.elk.spacing.edgeEdge",$B="org.eclipse.elk.spacing.edgeNode",Gin="org.eclipse.elk.spacing.labelLabel",zin="org.eclipse.elk.spacing.labelPortHorizontal",Xin="org.eclipse.elk.spacing.labelPortVertical",Vin="org.eclipse.elk.spacing.labelNode",Win="org.eclipse.elk.spacing.nodeSelfLoop",Jin="org.eclipse.elk.spacing.portPort",Qin="org.eclipse.elk.spacing.individual",Yin="org.eclipse.elk.port.borderOffset",Zin="org.eclipse.elk.noLayout",nrn="org.eclipse.elk.port.side",qy="org.eclipse.elk.debugMode",ern="org.eclipse.elk.alignment",trn="org.eclipse.elk.insideSelfLoops.activate",irn="org.eclipse.elk.insideSelfLoops.yo",xB="org.eclipse.elk.direction",rrn="org.eclipse.elk.nodeLabels.padding",crn="org.eclipse.elk.portLabels.nextToPortIfPossible",urn="org.eclipse.elk.portLabels.treatAsGroup",orn="org.eclipse.elk.portAlignment.default",srn="org.eclipse.elk.portAlignment.north",frn="org.eclipse.elk.portAlignment.south",hrn="org.eclipse.elk.portAlignment.west",lrn="org.eclipse.elk.portAlignment.east",TP="org.eclipse.elk.contentAlignment",arn="org.eclipse.elk.junctionPoints",drn="org.eclipse.elk.edgeLabels.placement",brn="org.eclipse.elk.port.index",wrn="org.eclipse.elk.commentBox",grn="org.eclipse.elk.hypernode",prn="org.eclipse.elk.port.anchor",RB="org.eclipse.elk.partitioning.activate",KB="org.eclipse.elk.partitioning.partition",CP="org.eclipse.elk.position",mrn="org.eclipse.elk.margins",vrn="org.eclipse.elk.spacing.portsSurrounding",SP="org.eclipse.elk.interactiveLayout",dc="org.eclipse.elk.core.util",krn={3:1,4:1,5:1,601:1},sVn="NETWORK_SIMPLEX",yrn="SIMPLE",vr={106:1,47:1},PP="org.eclipse.elk.alg.layered.p1cycles",Ll="org.eclipse.elk.alg.layered.p2layers",jrn={413:1,230:1},fVn={846:1,3:1,4:1},Du="org.eclipse.elk.alg.layered.p3order",kr="org.eclipse.elk.alg.layered.p4nodes",hVn={3:1,4:1,5:1,854:1},jh=1e-5,ba="org.eclipse.elk.alg.layered.p4nodes.bk",BB="org.eclipse.elk.alg.layered.p5edges",mf="org.eclipse.elk.alg.layered.p5edges.orthogonal",FB="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",_B=1e-6,j0="org.eclipse.elk.alg.layered.p5edges.splines",HB=.09999999999999998,IP=1e-8,lVn=4.71238898038469,Ern=3.141592653589793,Nl="org.eclipse.elk.alg.mrtree",qB=.10000000149011612,OP="SUPER_ROOT",s8="org.eclipse.elk.alg.mrtree.graph",Mrn=-17976931348623157e292,Bc="org.eclipse.elk.alg.mrtree.intermediate",aVn="Processor compute fanout",AP={3:1,6:1,4:1,5:1,534:1,100:1,115:1},dVn="Set neighbors in level",Uy="org.eclipse.elk.alg.mrtree.options",bVn="DESCENDANTS",Trn="org.eclipse.elk.mrtree.compaction",Crn="org.eclipse.elk.mrtree.edgeEndTextureLength",Srn="org.eclipse.elk.mrtree.treeLevel",Prn="org.eclipse.elk.mrtree.positionConstraint",Irn="org.eclipse.elk.mrtree.weighting",Orn="org.eclipse.elk.mrtree.edgeRoutingMode",Arn="org.eclipse.elk.mrtree.searchOrder",wVn="Position Constraint",uu="org.eclipse.elk.mrtree",gVn="org.eclipse.elk.tree",pVn="Processor arrange level",W4="org.eclipse.elk.alg.mrtree.p2order",po="org.eclipse.elk.alg.mrtree.p4route",Lrn="org.eclipse.elk.alg.radial",Md=6.283185307179586,Nrn="Before",Drn=5e-324,LP="After",$rn="org.eclipse.elk.alg.radial.intermediate",mVn="COMPACTION",UB="org.eclipse.elk.alg.radial.intermediate.compaction",vVn={3:1,4:1,5:1,100:1},xrn="org.eclipse.elk.alg.radial.intermediate.optimization",GB="No implementation is available for the layout option ",f8="org.eclipse.elk.alg.radial.options",Rrn="org.eclipse.elk.radial.centerOnRoot",Krn="org.eclipse.elk.radial.orderId",Brn="org.eclipse.elk.radial.radius",NP="org.eclipse.elk.radial.rotate",zB="org.eclipse.elk.radial.compactor",XB="org.eclipse.elk.radial.compactionStepSize",Frn="org.eclipse.elk.radial.sorter",_rn="org.eclipse.elk.radial.wedgeCriteria",Hrn="org.eclipse.elk.radial.optimizationCriteria",VB="org.eclipse.elk.radial.rotation.targetAngle",WB="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",qrn="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",kVn="Compaction",Urn="rotation",es="org.eclipse.elk.radial",yVn="org.eclipse.elk.alg.radial.p1position.wedge",Grn="org.eclipse.elk.alg.radial.sorting",jVn=5.497787143782138,EVn=3.9269908169872414,MVn=2.356194490192345,TVn="org.eclipse.elk.alg.rectpacking",DP="org.eclipse.elk.alg.rectpacking.intermediate",JB="org.eclipse.elk.alg.rectpacking.options",zrn="org.eclipse.elk.rectpacking.trybox",Xrn="org.eclipse.elk.rectpacking.currentPosition",Vrn="org.eclipse.elk.rectpacking.desiredPosition",Wrn="org.eclipse.elk.rectpacking.inNewRow",Jrn="org.eclipse.elk.rectpacking.widthApproximation.strategy",Qrn="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",Yrn="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",Zrn="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",ncn="org.eclipse.elk.rectpacking.packing.strategy",ecn="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",tcn="org.eclipse.elk.rectpacking.packing.compaction.iterations",icn="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",QB="widthApproximation",CVn="Compaction Strategy",SVn="packing.compaction",co="org.eclipse.elk.rectpacking",J4="org.eclipse.elk.alg.rectpacking.p1widthapproximation",$P="org.eclipse.elk.alg.rectpacking.p2packing",PVn="No Compaction",rcn="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",Gy="org.eclipse.elk.alg.rectpacking.util",xP="No implementation available for ",E0="org.eclipse.elk.alg.spore",M0="org.eclipse.elk.alg.spore.options",Wb="org.eclipse.elk.sporeCompaction",YB="org.eclipse.elk.underlyingLayoutAlgorithm",ccn="org.eclipse.elk.processingOrder.treeConstruction",ucn="org.eclipse.elk.processingOrder.spanningTreeCostFunction",ZB="org.eclipse.elk.processingOrder.preferredRoot",nF="org.eclipse.elk.processingOrder.rootSelection",eF="org.eclipse.elk.structure.structureExtractionStrategy",ocn="org.eclipse.elk.compaction.compactionStrategy",scn="org.eclipse.elk.compaction.orthogonal",fcn="org.eclipse.elk.overlapRemoval.maxIterations",hcn="org.eclipse.elk.overlapRemoval.runScanline",tF="processingOrder",IVn="overlapRemoval",Q4="org.eclipse.elk.sporeOverlap",OVn="org.eclipse.elk.alg.spore.p1structure",iF="org.eclipse.elk.alg.spore.p2processingorder",rF="org.eclipse.elk.alg.spore.p3execution",AVn="Topdown Layout",LVn="Invalid index: ",Y4="org.eclipse.elk.core.alg",u2={341:1},T0={294:1},NVn="Make sure its type is registered with the ",lcn=" utility class.",Z4="true",cF="false",DVn="Couldn't clone property '",Jb=.05,uo="org.eclipse.elk.core.options",$Vn=1.2999999523162842,Qb="org.eclipse.elk.box",acn="org.eclipse.elk.expandNodes",dcn="org.eclipse.elk.box.packingMode",xVn="org.eclipse.elk.algorithm",RVn="org.eclipse.elk.resolvedAlgorithm",bcn="org.eclipse.elk.bendPoints",iDe="org.eclipse.elk.labelManager",KVn="org.eclipse.elk.scaleFactor",BVn="org.eclipse.elk.childAreaWidth",FVn="org.eclipse.elk.childAreaHeight",_Vn="org.eclipse.elk.animate",HVn="org.eclipse.elk.animTimeFactor",qVn="org.eclipse.elk.layoutAncestors",UVn="org.eclipse.elk.maxAnimTime",GVn="org.eclipse.elk.minAnimTime",zVn="org.eclipse.elk.progressBar",XVn="org.eclipse.elk.validateGraph",VVn="org.eclipse.elk.validateOptions",WVn="org.eclipse.elk.zoomToFit",rDe="org.eclipse.elk.font.name",JVn="org.eclipse.elk.font.size",wcn="org.eclipse.elk.topdown.sizeApproximator",gcn="org.eclipse.elk.topdown.scaleCap",QVn="org.eclipse.elk.edge.type",YVn="partitioning",ZVn="nodeLabels",RP="portAlignment",uF="nodeSize",oF="port",pcn="portLabels",zy="topdown",nWn="insideSelfLoops",h8="org.eclipse.elk.fixed",KP="org.eclipse.elk.random",mcn={3:1,34:1,22:1,347:1},eWn="port must have a parent node to calculate the port side",tWn="The edge needs to have exactly one edge section. Found: ",l8="org.eclipse.elk.core.util.adapters",ts="org.eclipse.emf.ecore",o2="org.eclipse.elk.graph",iWn="EMapPropertyHolder",rWn="ElkBendPoint",cWn="ElkGraphElement",uWn="ElkConnectableShape",vcn="ElkEdge",oWn="ElkEdgeSection",sWn="EModelElement",fWn="ENamedElement",kcn="ElkLabel",ycn="ElkNode",jcn="ElkPort",hWn={94:1,93:1},g3="org.eclipse.emf.common.notify.impl",wa="The feature '",a8="' is not a valid changeable feature",lWn="Expecting null",sF="' is not a valid feature",aWn="The feature ID",dWn=" is not a valid feature ID",kc=32768,bWn={110:1,94:1,93:1,58:1,54:1,99:1},qn="org.eclipse.emf.ecore.impl",Td="org.eclipse.elk.graph.impl",d8="Recursive containment not allowed for ",nv="The datatype '",Yb="' is not a valid classifier",fF="The value '",s2={195:1,3:1,4:1},hF="The class '",ev="http://www.eclipse.org/elk/ElkGraph",Ecn="property",b8="value",lF="source",wWn="properties",gWn="identifier",aF="height",dF="width",bF="parent",wF="text",gF="children",pWn="hierarchical",Mcn="sources",pF="targets",Tcn="sections",BP="bendPoints",Ccn="outgoingShape",Scn="incomingShape",Pcn="outgoingSections",Icn="incomingSections",or="org.eclipse.emf.common.util",Ocn="Severe implementation error in the Json to ElkGraph importer.",Eh="id",Ui="org.eclipse.elk.graph.json",Acn="Unhandled parameter types: ",mWn="startPoint",vWn="An edge must have at least one source and one target (edge id: '",tv="').",kWn="Referenced edge section does not exist: ",yWn=" (edge id: '",Lcn="target",jWn="sourcePoint",EWn="targetPoint",FP="group",Qe="name",MWn="connectableShape cannot be null",TWn="edge cannot be null",mF="Passed edge is not 'simple'.",_P="org.eclipse.elk.graph.util",Xy="The 'no duplicates' constraint is violated",vF="targetIndex=",Cd=", size=",kF="sourceIndex=",Mh={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},yF={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},HP="logging",CWn="measureExecutionTime",SWn="parser.parse.1",PWn="parser.parse.2",qP="parser.next.1",jF="parser.next.2",IWn="parser.next.3",OWn="parser.next.4",Sd="parser.factor.1",Ncn="parser.factor.2",AWn="parser.factor.3",LWn="parser.factor.4",NWn="parser.factor.5",DWn="parser.factor.6",$Wn="parser.atom.1",xWn="parser.atom.2",RWn="parser.atom.3",Dcn="parser.atom.4",EF="parser.atom.5",$cn="parser.cc.1",UP="parser.cc.2",KWn="parser.cc.3",BWn="parser.cc.5",xcn="parser.cc.6",Rcn="parser.cc.7",MF="parser.cc.8",FWn="parser.ope.1",_Wn="parser.ope.2",HWn="parser.ope.3",g1="parser.descape.1",qWn="parser.descape.2",UWn="parser.descape.3",GWn="parser.descape.4",zWn="parser.descape.5",is="parser.process.1",XWn="parser.quantifier.1",VWn="parser.quantifier.2",WWn="parser.quantifier.3",JWn="parser.quantifier.4",Kcn="parser.quantifier.5",QWn="org.eclipse.emf.common.notify",Bcn={424:1,686:1},YWn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},Vy={378:1,152:1},w8="index=",TF={3:1,4:1,5:1,129:1},ZWn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},Fcn={3:1,6:1,4:1,5:1,198:1},nJn={3:1,4:1,5:1,173:1,379:1},eJn=";/?:@&=+$,",tJn="invalid authority: ",iJn="EAnnotation",rJn="ETypedElement",cJn="EStructuralFeature",uJn="EAttribute",oJn="EClassifier",sJn="EEnumLiteral",fJn="EGenericType",hJn="EOperation",lJn="EParameter",aJn="EReference",dJn="ETypeParameter",Ct="org.eclipse.emf.ecore.util",CF={79:1},_cn={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},bJn="org.eclipse.emf.ecore.util.FeatureMap$Entry",$u=8192,C0=2048,g8="byte",GP="char",p8="double",m8="float",v8="int",k8="long",y8="short",wJn="java.lang.Object",f2={3:1,4:1,5:1,254:1},Hcn={3:1,4:1,5:1,688:1},gJn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},Qr={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},Wy="mixed",Ke="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",vs="kind",pJn={3:1,4:1,5:1,689:1},qcn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},zP={20:1,31:1,56:1,16:1,15:1,61:1,71:1},XP={51:1,128:1,287:1},VP={76:1,343:1},WP="The value of type '",JP="' must be of type '",h2=1352,ks="http://www.eclipse.org/emf/2002/Ecore",QP=-32768,Zb="constraints",Ji="baseType",mJn="getEStructuralFeature",vJn="getFeatureID",j8="feature",kJn="getOperationID",Ucn="operation",yJn="defaultValue",jJn="eTypeParameters",EJn="isInstance",MJn="getEEnumLiteral",TJn="eContainingClass",ze={57:1},CJn={3:1,4:1,5:1,124:1},SJn="org.eclipse.emf.ecore.resource",PJn={94:1,93:1,599:1,2034:1},SF="org.eclipse.emf.ecore.resource.impl",Gcn="unspecified",Jy="simple",YP="attribute",IJn="attributeWildcard",ZP="element",PF="elementWildcard",vf="collapse",IF="itemType",nI="namespace",Qy="##targetNamespace",ys="whiteSpace",zcn="wildcards",Pd="http://www.eclipse.org/emf/2003/XMLType",OF="##any",iv="uninitialized",Yy="The multiplicity constraint is violated",eI="org.eclipse.emf.ecore.xml.type",OJn="ProcessingInstruction",AJn="SimpleAnyType",LJn="XMLTypeDocumentRoot",oi="org.eclipse.emf.ecore.xml.type.impl",Zy="INF",NJn="processing",DJn="ENTITIES_._base",Xcn="minLength",Vcn="ENTITY",tI="NCName",$Jn="IDREFS_._base",Wcn="integer",AF="token",LF="pattern",xJn="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",Jcn="\\i\\c*",RJn="[\\i-[:]][\\c-[:]]*",KJn="nonPositiveInteger",nj="maxInclusive",Qcn="NMTOKEN",BJn="NMTOKENS_._base",Ycn="nonNegativeInteger",ej="minInclusive",FJn="normalizedString",_Jn="unsignedByte",HJn="unsignedInt",qJn="18446744073709551615",UJn="unsignedShort",GJn="processingInstruction",p1="org.eclipse.emf.ecore.xml.type.internal",rv=1114111,zJn="Internal Error: shorthands: \\u",E8="xml:isDigit",NF="xml:isWord",DF="xml:isSpace",$F="xml:isNameChar",xF="xml:isInitialNameChar",XJn="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",VJn="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",WJn="Private Use",RF="ASSIGNED",KF="\0ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ֏ۿ܀ݏހऀॿঀ૿ఀ౿ಀഀൿༀက႟ႠჿᄀᇿሀᎠ᐀ᙿ ᚠក᠀Ḁỿἀ ⁰₠⃐℀⅏⅐←⇿∀⋿⌀⏿␀⑀①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⼀⿰ 〿ゟ゠ヿㄯ㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒐가힣豈ffﭏﭐ﷿︠︯︰﹏﹐ﹰ\uFEFF\uFEFF",Zcn="UNASSIGNED",cv={3:1,122:1},JJn="org.eclipse.emf.ecore.xml.type.util",iI={3:1,4:1,5:1,381:1},nun="org.eclipse.xtext.xbase.lib",QJn="Cannot add elements to a Range",YJn="Cannot set elements in a Range",ZJn="Cannot remove elements from a Range",nQn="user.agent",o,rI,BF;y.goog=y.goog||{},y.goog.global=y.goog.global||y,rI={},b(1,null,{},Ku),o.Fb=function(e){return QTn(this,e)},o.Gb=function(){return this.Rm},o.Hb=function(){return fb(this)},o.Ib=function(){var e;return Xa(wo(this))+"@"+(e=mt(this)>>>0,e.toString(16))},o.equals=function(n){return this.Fb(n)},o.hashCode=function(){return this.Hb()},o.toString=function(){return this.Ib()};var eQn,tQn,iQn;b(296,1,{296:1,2124:1},JQ),o.ve=function(e){var t;return t=new JQ,t.i=4,e>1?t.c=vAn(this,e-1):t.c=this,t},o.we=function(){return ll(this),this.b},o.xe=function(){return Xa(this)},o.ye=function(){return ll(this),this.k},o.ze=function(){return(this.i&4)!=0},o.Ae=function(){return(this.i&1)!=0},o.Ib=function(){return oQ(this)},o.i=0;var ki=w(ac,"Object",1),eun=w(ac,"Class",296);b(2096,1,vy),w(ky,"Optional",2096),b(1191,2096,vy,qt),o.Fb=function(e){return e===this},o.Hb=function(){return 2040732332},o.Ib=function(){return"Optional.absent()"},o.Jb=function(e){return Pe(e),Qv(),FF};var FF;w(ky,"Absent",1191),b(636,1,{},yL),w(ky,"Joiner",636);var cDe=Dt(ky,"Predicate");b(589,1,{178:1,589:1,3:1,46:1},C8n),o.Mb=function(e){return vRn(this,e)},o.Lb=function(e){return vRn(this,e)},o.Fb=function(e){var t;return L(e,589)?(t=u(e,589),znn(this.a,t.a)):!1},o.Hb=function(){return tY(this.a)+306654252},o.Ib=function(){return Gje(this.a)},w(ky,"Predicates/AndPredicate",589),b(419,2096,{419:1,3:1},TE),o.Fb=function(e){var t;return L(e,419)?(t=u(e,419),ct(this.a,t.a)):!1},o.Hb=function(){return 1502476572+mt(this.a)},o.Ib=function(){return Pzn+this.a+")"},o.Jb=function(e){return new TE(TT(e.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},w(ky,"Present",419),b(204,1,D4),o.Nb=function(e){_i(this,e)},o.Qb=function(){Fjn()},w(Mn,"UnmodifiableIterator",204),b(2076,204,$4),o.Qb=function(){Fjn()},o.Rb=function(e){throw T(new Ie)},o.Wb=function(e){throw T(new Ie)},w(Mn,"UnmodifiableListIterator",2076),b(399,2076,$4),o.Ob=function(){return this.c<this.d},o.Sb=function(){return this.c>0},o.Pb=function(){if(this.c>=this.d)throw T(new nc);return this.Xb(this.c++)},o.Tb=function(){return this.c},o.Ub=function(){if(this.c<=0)throw T(new nc);return this.Xb(--this.c)},o.Vb=function(){return this.c-1},o.c=0,o.d=0,w(Mn,"AbstractIndexedListIterator",399),b(713,204,D4),o.Ob=function(){return E$(this)},o.Pb=function(){return eQ(this)},o.e=1,w(Mn,"AbstractIterator",713),b(2084,1,{229:1}),o.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},o.Fb=function(e){return G$(this,e)},o.Hb=function(){return mt(this.Zb())},o.dc=function(){return this.gc()==0},o.ec=function(){return Cp(this)},o.Ib=function(){return Jr(this.Zb())},w(Mn,"AbstractMultimap",2084),b(742,2084,md),o.$b=function(){gC(this)},o._b=function(e){return cEn(this,e)},o.ac=function(){return new fm(this,this.c)},o.ic=function(e){return this.hc()},o.bc=function(){return new Tg(this,this.c)},o.jc=function(){return this.mc(this.hc())},o.kc=function(){return new Mjn(this)},o.lc=function(){return nR(this.c.vc().Nc(),new Xe,64,this.d)},o.cc=function(e){return ot(this,e)},o.fc=function(e){return Ok(this,e)},o.gc=function(){return this.d},o.mc=function(e){return Ln(),new J3(e)},o.nc=function(){return new Ejn(this)},o.oc=function(){return nR(this.c.Cc().Nc(),new Jt,64,this.d)},o.pc=function(e,t){return new VT(this,e,t,null)},o.d=0,w(Mn,"AbstractMapBasedMultimap",742),b(1696,742,md),o.hc=function(){return new Gc(this.a)},o.jc=function(){return Ln(),Ln(),sr},o.cc=function(e){return u(ot(this,e),15)},o.fc=function(e){return u(Ok(this,e),15)},o.Zb=function(){return Lp(this)},o.Fb=function(e){return G$(this,e)},o.qc=function(e){return u(ot(this,e),15)},o.rc=function(e){return u(Ok(this,e),15)},o.mc=function(e){return CD(u(e,15))},o.pc=function(e,t){return CLn(this,e,u(t,15),null)},w(Mn,"AbstractListMultimap",1696),b(748,1,Pi),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.c.Ob()||this.e.Ob()},o.Pb=function(){var e;return this.e.Ob()||(e=u(this.c.Pb(),44),this.b=e.ld(),this.a=u(e.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},o.Qb=function(){this.e.Qb(),u(as(this.a),16).dc()&&this.c.Qb(),--this.d.d},w(Mn,"AbstractMapBasedMultimap/Itr",748),b(1129,748,Pi,Ejn),o.sc=function(e,t){return t},w(Mn,"AbstractMapBasedMultimap/1",1129),b(1130,1,{},Jt),o.Kb=function(e){return u(e,16).Nc()},w(Mn,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130),b(1131,748,Pi,Mjn),o.sc=function(e,t){return new tb(e,t)},w(Mn,"AbstractMapBasedMultimap/2",1131);var tun=Dt(le,"Map");b(2065,1,Gb),o.wc=function(e){o5(this,e)},o.yc=function(e,t,i){return hx(this,e,t,i)},o.$b=function(){this.vc().$b()},o.tc=function(e){return xx(this,e)},o._b=function(e){return!!GZ(this,e,!1)},o.uc=function(e){var t,i,r;for(i=this.vc().Kc();i.Ob();)if(t=u(i.Pb(),44),r=t.md(),x(e)===x(r)||e!=null&&ct(e,r))return!0;return!1},o.Fb=function(e){var t,i,r;if(e===this)return!0;if(!L(e,85)||(r=u(e,85),this.gc()!=r.gc()))return!1;for(i=r.vc().Kc();i.Ob();)if(t=u(i.Pb(),44),!this.tc(t))return!1;return!0},o.xc=function(e){return Fr(GZ(this,e,!1))},o.Hb=function(){return zQ(this.vc())},o.dc=function(){return this.gc()==0},o.ec=function(){return new qa(this)},o.zc=function(e,t){throw T(new Fl("Put not supported on this map"))},o.Ac=function(e){u5(this,e)},o.Bc=function(e){return Fr(GZ(this,e,!0))},o.gc=function(){return this.vc().gc()},o.Ib=function(){return AFn(this)},o.Cc=function(){return new ol(this)},w(le,"AbstractMap",2065),b(2085,2065,Gb),o.bc=function(){return new XE(this)},o.vc=function(){return jIn(this)},o.ec=function(){var e;return e=this.g,e||(this.g=this.bc())},o.Cc=function(){var e;return e=this.i,e||(this.i=new WEn(this))},w(Mn,"Maps/ViewCachingAbstractMap",2085),b(402,2085,Gb,fm),o.xc=function(e){return h4e(this,e)},o.Bc=function(e){return N6e(this,e)},o.$b=function(){this.d==this.e.c?this.e.$b():tT(new rW(this))},o._b=function(e){return iKn(this.d,e)},o.Ec=function(){return new S8n(this)},o.Dc=function(){return this.Ec()},o.Fb=function(e){return this===e||ct(this.d,e)},o.Hb=function(){return mt(this.d)},o.ec=function(){return this.e.ec()},o.gc=function(){return this.d.gc()},o.Ib=function(){return Jr(this.d)},w(Mn,"AbstractMapBasedMultimap/AsMap",402);var Ao=Dt(ac,"Iterable");b(31,1,p0),o.Jc=function(e){qi(this,e)},o.Lc=function(){return this.Oc()},o.Nc=function(){return new On(this,0)},o.Oc=function(){return new Cn(null,this.Nc())},o.Fc=function(e){throw T(new Fl("Add not supported on this collection"))},o.Gc=function(e){return Ki(this,e)},o.$b=function(){UW(this)},o.Hc=function(e){return i0(this,e,!1)},o.Ic=function(e){return jk(this,e)},o.dc=function(){return this.gc()==0},o.Mc=function(e){return i0(this,e,!0)},o.Pc=function(){return bW(this)},o.Qc=function(e){return T5(this,e)},o.Ib=function(){return ua(this)},w(le,"AbstractCollection",31);var js=Dt(le,"Set");b(Ff,31,Nu),o.Nc=function(){return new On(this,1)},o.Fb=function(e){return VKn(this,e)},o.Hb=function(){return zQ(this)},w(le,"AbstractSet",Ff),b(2068,Ff,Nu),w(Mn,"Sets/ImprovedAbstractSet",2068),b(2069,2068,Nu),o.$b=function(){this.Rc().$b()},o.Hc=function(e){return LKn(this,e)},o.dc=function(){return this.Rc().dc()},o.Mc=function(e){var t;return this.Hc(e)&&L(e,44)?(t=u(e,44),this.Rc().ec().Mc(t.ld())):!1},o.gc=function(){return this.Rc().gc()},w(Mn,"Maps/EntrySet",2069),b(1127,2069,Nu,S8n),o.Hc=function(e){return vY(this.a.d.vc(),e)},o.Kc=function(){return new rW(this.a)},o.Rc=function(){return this.a},o.Mc=function(e){var t;return vY(this.a.d.vc(),e)?(t=u(as(u(e,44)),44),Y3e(this.a.e,t.ld()),!0):!1},o.Nc=function(){return D7(this.a.d.vc().Nc(),new P8n(this.a))},w(Mn,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127),b(1128,1,{},P8n),o.Kb=function(e){return MNn(this.a,u(e,44))},w(Mn,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128),b(746,1,Pi,rW),o.Nb=function(e){_i(this,e)},o.Pb=function(){var e;return e=u(this.b.Pb(),44),this.a=u(e.md(),16),MNn(this.c,e)},o.Ob=function(){return this.b.Ob()},o.Qb=function(){mm(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},w(Mn,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746),b(542,2068,Nu,XE),o.$b=function(){this.b.$b()},o.Hc=function(e){return this.b._b(e)},o.Jc=function(e){Pe(e),this.b.wc(new G8n(e))},o.dc=function(){return this.b.dc()},o.Kc=function(){return new Yv(this.b.vc().Kc())},o.Mc=function(e){return this.b._b(e)?(this.b.Bc(e),!0):!1},o.gc=function(){return this.b.gc()},w(Mn,"Maps/KeySet",542),b(327,542,Nu,Tg),o.$b=function(){var e;tT((e=this.b.vc().Kc(),new Pz(this,e)))},o.Ic=function(e){return this.b.ec().Ic(e)},o.Fb=function(e){return this===e||ct(this.b.ec(),e)},o.Hb=function(){return mt(this.b.ec())},o.Kc=function(){var e;return e=this.b.vc().Kc(),new Pz(this,e)},o.Mc=function(e){var t,i;return i=0,t=u(this.b.Bc(e),16),t&&(i=t.gc(),t.$b(),this.a.d-=i),i>0},o.Nc=function(){return this.b.ec().Nc()},w(Mn,"AbstractMapBasedMultimap/KeySet",327),b(747,1,Pi,Pz),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.c.Ob()},o.Pb=function(){return this.a=u(this.c.Pb(),44),this.a.ld()},o.Qb=function(){var e;mm(!!this.a),e=u(this.a.md(),16),this.c.Qb(),this.b.a.d-=e.gc(),e.$b(),this.a=null},w(Mn,"AbstractMapBasedMultimap/KeySet/1",747),b(502,402,{85:1,133:1},S7),o.bc=function(){return this.Sc()},o.ec=function(){return this.Uc()},o.Sc=function(){return new e7(this.c,this.Wc())},o.Tc=function(){return this.Wc().Tc()},o.Uc=function(){var e;return e=this.b,e||(this.b=this.Sc())},o.Vc=function(){return this.Wc().Vc()},o.Wc=function(){return u(this.d,133)},w(Mn,"AbstractMapBasedMultimap/SortedAsMap",502),b(446,502,atn,L6),o.bc=function(){return new sm(this.a,u(u(this.d,133),139))},o.Sc=function(){return new sm(this.a,u(u(this.d,133),139))},o.ec=function(){var e;return e=this.b,u(e||(this.b=new sm(this.a,u(u(this.d,133),139))),277)},o.Uc=function(){var e;return e=this.b,u(e||(this.b=new sm(this.a,u(u(this.d,133),139))),277)},o.Wc=function(){return u(u(this.d,133),139)},o.Xc=function(e){return u(u(this.d,133),139).Xc(e)},o.Yc=function(e){return u(u(this.d,133),139).Yc(e)},o.Zc=function(e,t){return new L6(this.a,u(u(this.d,133),139).Zc(e,t))},o.$c=function(e){return u(u(this.d,133),139).$c(e)},o._c=function(e){return u(u(this.d,133),139)._c(e)},o.ad=function(e,t){return new L6(this.a,u(u(this.d,133),139).ad(e,t))},w(Mn,"AbstractMapBasedMultimap/NavigableAsMap",446),b(501,327,Izn,e7),o.Nc=function(){return this.b.ec().Nc()},w(Mn,"AbstractMapBasedMultimap/SortedKeySet",501),b(401,501,dtn,sm),w(Mn,"AbstractMapBasedMultimap/NavigableKeySet",401),b(551,31,p0,VT),o.Fc=function(e){var t,i;return eo(this),i=this.d.dc(),t=this.d.Fc(e),t&&(++this.f.d,i&&A7(this)),t},o.Gc=function(e){var t,i,r;return e.dc()?!1:(r=(eo(this),this.d.gc()),t=this.d.Gc(e),t&&(i=this.d.gc(),this.f.d+=i-r,r==0&&A7(this)),t)},o.$b=function(){var e;e=(eo(this),this.d.gc()),e!=0&&(this.d.$b(),this.f.d-=e,sT(this))},o.Hc=function(e){return eo(this),this.d.Hc(e)},o.Ic=function(e){return eo(this),this.d.Ic(e)},o.Fb=function(e){return e===this?!0:(eo(this),ct(this.d,e))},o.Hb=function(){return eo(this),mt(this.d)},o.Kc=function(){return eo(this),new _V(this)},o.Mc=function(e){var t;return eo(this),t=this.d.Mc(e),t&&(--this.f.d,sT(this)),t},o.gc=function(){return RTn(this)},o.Nc=function(){return eo(this),this.d.Nc()},o.Ib=function(){return eo(this),Jr(this.d)},w(Mn,"AbstractMapBasedMultimap/WrappedCollection",551);var rs=Dt(le,"List");b(744,551,{20:1,31:1,16:1,15:1},pW),o.jd=function(e){ud(this,e)},o.Nc=function(){return eo(this),this.d.Nc()},o.bd=function(e,t){var i;eo(this),i=this.d.dc(),u(this.d,15).bd(e,t),++this.a.d,i&&A7(this)},o.cd=function(e,t){var i,r,c;return t.dc()?!1:(c=(eo(this),this.d.gc()),i=u(this.d,15).cd(e,t),i&&(r=this.d.gc(),this.a.d+=r-c,c==0&&A7(this)),i)},o.Xb=function(e){return eo(this),u(this.d,15).Xb(e)},o.dd=function(e){return eo(this),u(this.d,15).dd(e)},o.ed=function(){return eo(this),new dCn(this)},o.fd=function(e){return eo(this),new xOn(this,e)},o.gd=function(e){var t;return eo(this),t=u(this.d,15).gd(e),--this.a.d,sT(this),t},o.hd=function(e,t){return eo(this),u(this.d,15).hd(e,t)},o.kd=function(e,t){return eo(this),CLn(this.a,this.e,u(this.d,15).kd(e,t),this.b?this.b:this)},w(Mn,"AbstractMapBasedMultimap/WrappedList",744),b(1126,744,{20:1,31:1,16:1,15:1,59:1},tSn),w(Mn,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126),b(628,1,Pi,_V),o.Nb=function(e){_i(this,e)},o.Ob=function(){return Im(this),this.b.Ob()},o.Pb=function(){return Im(this),this.b.Pb()},o.Qb=function(){FCn(this)},w(Mn,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628),b(745,628,Hh,dCn,xOn),o.Qb=function(){FCn(this)},o.Rb=function(e){var t;t=RTn(this.a)==0,(Im(this),u(this.b,128)).Rb(e),++this.a.a.d,t&&A7(this.a)},o.Sb=function(){return(Im(this),u(this.b,128)).Sb()},o.Tb=function(){return(Im(this),u(this.b,128)).Tb()},o.Ub=function(){return(Im(this),u(this.b,128)).Ub()},o.Vb=function(){return(Im(this),u(this.b,128)).Vb()},o.Wb=function(e){(Im(this),u(this.b,128)).Wb(e)},w(Mn,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745),b(743,551,Izn,uV),o.Nc=function(){return eo(this),this.d.Nc()},w(Mn,"AbstractMapBasedMultimap/WrappedSortedSet",743),b(1125,743,dtn,sCn),w(Mn,"AbstractMapBasedMultimap/WrappedNavigableSet",1125),b(1124,551,Nu,ESn),o.Nc=function(){return eo(this),this.d.Nc()},w(Mn,"AbstractMapBasedMultimap/WrappedSet",1124),b(1133,1,{},Xe),o.Kb=function(e){return sme(u(e,44))},w(Mn,"AbstractMapBasedMultimap/lambda$1$Type",1133),b(1132,1,{},L8n),o.Kb=function(e){return new tb(this.a,e)},w(Mn,"AbstractMapBasedMultimap/lambda$2$Type",1132);var Id=Dt(le,"Map/Entry");b(358,1,tK),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),sh(this.ld(),t.ld())&&sh(this.md(),t.md())):!1},o.Hb=function(){var e,t;return e=this.ld(),t=this.md(),(e==null?0:mt(e))^(t==null?0:mt(t))},o.nd=function(e){throw T(new Ie)},o.Ib=function(){return this.ld()+"="+this.md()},w(Mn,Ozn,358),b(2086,31,p0),o.$b=function(){this.od().$b()},o.Hc=function(e){var t;return L(e,44)?(t=u(e,44),Ipe(this.od(),t.ld(),t.md())):!1},o.Mc=function(e){var t;return L(e,44)?(t=u(e,44),oLn(this.od(),t.ld(),t.md())):!1},o.gc=function(){return this.od().d},w(Mn,"Multimaps/Entries",2086),b(749,2086,p0,oG),o.Kc=function(){return this.a.kc()},o.od=function(){return this.a},o.Nc=function(){return this.a.lc()},w(Mn,"AbstractMultimap/Entries",749),b(750,749,Nu,cz),o.Nc=function(){return this.a.lc()},o.Fb=function(e){return lnn(this,e)},o.Hb=function(){return mxn(this)},w(Mn,"AbstractMultimap/EntrySet",750),b(751,31,p0,sG),o.$b=function(){this.a.$b()},o.Hc=function(e){return S6e(this.a,e)},o.Kc=function(){return this.a.nc()},o.gc=function(){return this.a.d},o.Nc=function(){return this.a.oc()},w(Mn,"AbstractMultimap/Values",751),b(2087,31,{849:1,20:1,31:1,16:1}),o.Jc=function(e){Pe(e),Sg(this).Jc(new Q8n(e))},o.Nc=function(){var e;return e=Sg(this).Nc(),nR(e,new Tf,64|e.yd()&1296,this.a.d)},o.Fc=function(e){return dz(),!0},o.Gc=function(e){return Pe(this),Pe(e),L(e,552)?Lpe(u(e,849)):!e.dc()&&b$(this,e.Kc())},o.Hc=function(e){var t;return t=u(t0(Lp(this.a),e),16),(t?t.gc():0)>0},o.Fb=function(e){return nTe(this,e)},o.Hb=function(){return mt(Sg(this))},o.dc=function(){return Sg(this).dc()},o.Mc=function(e){return G_n(this,e,1)>0},o.Ib=function(){return Jr(Sg(this))},w(Mn,"AbstractMultiset",2087),b(2089,2068,Nu),o.$b=function(){gC(this.a.a)},o.Hc=function(e){var t,i;return L(e,503)?(i=u(e,425),u(i.a.md(),16).gc()<=0?!1:(t=DAn(this.a,i.a.ld()),t==u(i.a.md(),16).gc())):!1},o.Mc=function(e){var t,i,r,c;return L(e,503)&&(i=u(e,425),t=i.a.ld(),r=u(i.a.md(),16).gc(),r!=0)?(c=this.a,UEe(c,t,r)):!1},w(Mn,"Multisets/EntrySet",2089),b(1139,2089,Nu,N8n),o.Kc=function(){return new Ijn(jIn(Lp(this.a.a)).Kc())},o.gc=function(){return Lp(this.a.a).gc()},w(Mn,"AbstractMultiset/EntrySet",1139),b(627,742,md),o.hc=function(){return this.pd()},o.jc=function(){return this.qd()},o.cc=function(e){return this.rd(e)},o.fc=function(e){return this.sd(e)},o.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},o.qd=function(){return Ln(),Ln(),hI},o.Fb=function(e){return G$(this,e)},o.rd=function(e){return u(ot(this,e),21)},o.sd=function(e){return u(Ok(this,e),21)},o.mc=function(e){return Ln(),new im(u(e,21))},o.pc=function(e,t){return new ESn(this,e,u(t,21))},w(Mn,"AbstractSetMultimap",627),b(1723,627,md),o.hc=function(){return new Ul(this.b)},o.pd=function(){return new Ul(this.b)},o.jc=function(){return KW(new Ul(this.b))},o.qd=function(){return KW(new Ul(this.b))},o.cc=function(e){return u(u(ot(this,e),21),87)},o.rd=function(e){return u(u(ot(this,e),21),87)},o.fc=function(e){return u(u(Ok(this,e),21),87)},o.sd=function(e){return u(u(Ok(this,e),21),87)},o.mc=function(e){return L(e,277)?KW(u(e,277)):(Ln(),new GX(u(e,87)))},o.Zb=function(){var e;return e=this.f,e||(this.f=L(this.c,139)?new L6(this,u(this.c,139)):L(this.c,133)?new S7(this,u(this.c,133)):new fm(this,this.c))},o.pc=function(e,t){return L(t,277)?new sCn(this,e,u(t,277)):new uV(this,e,u(t,87))},w(Mn,"AbstractSortedSetMultimap",1723),b(1724,1723,md),o.Zb=function(){var e;return e=this.f,u(u(e||(this.f=L(this.c,139)?new L6(this,u(this.c,139)):L(this.c,133)?new S7(this,u(this.c,133)):new fm(this,this.c)),133),139)},o.ec=function(){var e;return e=this.i,u(u(e||(this.i=L(this.c,139)?new sm(this,u(this.c,139)):L(this.c,133)?new e7(this,u(this.c,133)):new Tg(this,this.c)),87),277)},o.bc=function(){return L(this.c,139)?new sm(this,u(this.c,139)):L(this.c,133)?new e7(this,u(this.c,133)):new Tg(this,this.c)},w(Mn,"AbstractSortedKeySortedSetMultimap",1724),b(2109,1,{2046:1}),o.Fb=function(e){return Tke(this,e)},o.Hb=function(){var e;return zQ((e=this.g,e||(this.g=new zA(this))))},o.Ib=function(){var e;return AFn((e=this.f,e||(this.f=new _X(this))))},w(Mn,"AbstractTable",2109),b(679,Ff,Nu,zA),o.$b=function(){_jn()},o.Hc=function(e){var t,i;return L(e,478)?(t=u(e,697),i=u(t0(zIn(this.a),H1(t.c.e,t.b)),85),!!i&&vY(i.vc(),new tb(H1(t.c.c,t.a),Bp(t.c,t.b,t.a)))):!1},o.Kc=function(){return Ige(this.a)},o.Mc=function(e){var t,i;return L(e,478)?(t=u(e,697),i=u(t0(zIn(this.a),H1(t.c.e,t.b)),85),!!i&&u5e(i.vc(),new tb(H1(t.c.c,t.a),Bp(t.c,t.b,t.a)))):!1},o.gc=function(){return WPn(this.a)},o.Nc=function(){return $pe(this.a)},w(Mn,"AbstractTable/CellSet",679),b(2025,31,p0,$8n),o.$b=function(){_jn()},o.Hc=function(e){return pye(this.a,e)},o.Kc=function(){return Oge(this.a)},o.gc=function(){return WPn(this.a)},o.Nc=function(){return uLn(this.a)},w(Mn,"AbstractTable/Values",2025),b(1697,1696,md),w(Mn,"ArrayListMultimapGwtSerializationDependencies",1697),b(520,1697,md,ML,uJ),o.hc=function(){return new Gc(this.a)},o.a=0,w(Mn,"ArrayListMultimap",520),b(678,2109,{678:1,2046:1,3:1},rHn),w(Mn,"ArrayTable",678),b(2021,399,$4,_Cn),o.Xb=function(e){return new QQ(this.a,e)},w(Mn,"ArrayTable/1",2021),b(2022,1,{},I8n),o.td=function(e){return new QQ(this.a,e)},w(Mn,"ArrayTable/1methodref$getCell$Type",2022),b(2110,1,{697:1}),o.Fb=function(e){var t;return e===this?!0:L(e,478)?(t=u(e,697),sh(H1(this.c.e,this.b),H1(t.c.e,t.b))&&sh(H1(this.c.c,this.a),H1(t.c.c,t.a))&&sh(Bp(this.c,this.b,this.a),Bp(t.c,t.b,t.a))):!1},o.Hb=function(){return Ik(S(C(ki,1),Rn,1,5,[H1(this.c.e,this.b),H1(this.c.c,this.a),Bp(this.c,this.b,this.a)]))},o.Ib=function(){return"("+H1(this.c.e,this.b)+","+H1(this.c.c,this.a)+")="+Bp(this.c,this.b,this.a)},w(Mn,"Tables/AbstractCell",2110),b(478,2110,{478:1,697:1},QQ),o.a=0,o.b=0,o.d=0,w(Mn,"ArrayTable/2",478),b(2024,1,{},O8n),o.td=function(e){return ADn(this.a,e)},w(Mn,"ArrayTable/2methodref$getValue$Type",2024),b(2023,399,$4,HCn),o.Xb=function(e){return ADn(this.a,e)},w(Mn,"ArrayTable/3",2023),b(2077,2065,Gb),o.$b=function(){tT(this.kc())},o.vc=function(){return new U8n(this)},o.lc=function(){return new COn(this.kc(),this.gc())},w(Mn,"Maps/IteratorBasedAbstractMap",2077),b(842,2077,Gb),o.$b=function(){throw T(new Ie)},o._b=function(e){return uEn(this.c,e)},o.kc=function(){return new qCn(this,this.c.b.c.gc())},o.lc=function(){return XN(this.c.b.c.gc(),16,new A8n(this))},o.xc=function(e){var t;return t=u(N6(this.c,e),17),t?this.vd(t.a):null},o.dc=function(){return this.c.b.c.dc()},o.ec=function(){return eD(this.c)},o.zc=function(e,t){var i;if(i=u(N6(this.c,e),17),!i)throw T(new Gn(this.ud()+" "+e+" not in "+eD(this.c)));return this.wd(i.a,t)},o.Bc=function(e){throw T(new Ie)},o.gc=function(){return this.c.b.c.gc()},w(Mn,"ArrayTable/ArrayMap",842),b(2020,1,{},A8n),o.td=function(e){return VIn(this.a,e)},w(Mn,"ArrayTable/ArrayMap/0methodref$getEntry$Type",2020),b(2018,358,tK,LEn),o.ld=function(){return q1e(this.a,this.b)},o.md=function(){return this.a.vd(this.b)},o.nd=function(e){return this.a.wd(this.b,e)},o.b=0,w(Mn,"ArrayTable/ArrayMap/1",2018),b(2019,399,$4,qCn),o.Xb=function(e){return VIn(this.a,e)},w(Mn,"ArrayTable/ArrayMap/2",2019),b(2017,842,Gb,$In),o.ud=function(){return"Column"},o.vd=function(e){return Bp(this.b,this.a,e)},o.wd=function(e,t){return rRn(this.b,this.a,e,t)},o.a=0,w(Mn,"ArrayTable/Row",2017),b(843,842,Gb,_X),o.vd=function(e){return new $In(this.a,e)},o.zc=function(e,t){return u(t,85),hhe()},o.wd=function(e,t){return u(t,85),lhe()},o.ud=function(){return"Row"},w(Mn,"ArrayTable/RowMap",843),b(1157,1,Io,NEn),o.Ad=function(e){return(this.a.yd()&-262&e)!=0},o.yd=function(){return this.a.yd()&-262},o.zd=function(){return this.a.zd()},o.Nb=function(e){this.a.Nb(new $En(e,this.b))},o.Bd=function(e){return this.a.Bd(new DEn(e,this.b))},w(Mn,"CollectSpliterators/1",1157),b(1158,1,re,DEn),o.Cd=function(e){this.a.Cd(this.b.Kb(e))},w(Mn,"CollectSpliterators/1/lambda$0$Type",1158),b(1159,1,re,$En),o.Cd=function(e){this.a.Cd(this.b.Kb(e))},w(Mn,"CollectSpliterators/1/lambda$1$Type",1159),b(1154,1,Io,rPn),o.Ad=function(e){return((16464|this.b)&e)!=0},o.yd=function(){return 16464|this.b},o.zd=function(){return this.a.zd()},o.Nb=function(e){this.a.Qe(new REn(e,this.c))},o.Bd=function(e){return this.a.Re(new xEn(e,this.c))},o.b=0,w(Mn,"CollectSpliterators/1WithCharacteristics",1154),b(1155,1,yy,xEn),o.Dd=function(e){this.a.Cd(this.b.td(e))},w(Mn,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1155),b(1156,1,yy,REn),o.Dd=function(e){this.a.Cd(this.b.td(e))},w(Mn,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1156),b(1150,1,Io),o.Ad=function(e){return(this.a&e)!=0},o.yd=function(){return this.a},o.zd=function(){return this.e&&(this.b=IX(this.b,this.e.zd())),IX(this.b,0)},o.Nb=function(e){this.e&&(this.e.Nb(e),this.e=null),this.c.Nb(new KEn(this,e)),this.b=0},o.Bd=function(e){for(;;){if(this.e&&this.e.Bd(e))return j6(this.b,jy)&&(this.b=bs(this.b,1)),!0;if(this.e=null,!this.c.Bd(new x8n(this)))return!1}},o.a=0,o.b=0,w(Mn,"CollectSpliterators/FlatMapSpliterator",1150),b(1152,1,re,x8n),o.Cd=function(e){_ae(this.a,e)},w(Mn,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1152),b(1153,1,re,KEn),o.Cd=function(e){age(this.a,this.b,e)},w(Mn,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1153),b(1151,1150,Io,MLn),w(Mn,"CollectSpliterators/FlatMapSpliteratorOfObject",1151),b(253,1,iK),o.Fd=function(e){return this.Ed(u(e,253))},o.Ed=function(e){var t;return e==(bL(),HF)?1:e==(dL(),_F)?-1:(t=(QM(),pk(this.a,e.a)),t!=0?t:L(this,526)==L(e,526)?0:L(this,526)?1:-1)},o.Id=function(){return this.a},o.Fb=function(e){return pZ(this,e)},w(Mn,"Cut",253),b(1823,253,iK,jjn),o.Ed=function(e){return e==this?0:1},o.Gd=function(e){throw T(new FG)},o.Hd=function(e){e.a+="+∞)"},o.Id=function(){throw T(new Ar(Lzn))},o.Hb=function(){return fl(),tZ(this)},o.Jd=function(e){return!1},o.Ib=function(){return"+∞"};var _F;w(Mn,"Cut/AboveAll",1823),b(526,253,{253:1,526:1,3:1,34:1},WCn),o.Gd=function(e){Lc((e.a+="(",e),this.a)},o.Hd=function(e){X1(Lc(e,this.a),93)},o.Hb=function(){return~mt(this.a)},o.Jd=function(e){return QM(),pk(this.a,e)<0},o.Ib=function(){return"/"+this.a+"\\"},w(Mn,"Cut/AboveValue",526),b(1822,253,iK,yjn),o.Ed=function(e){return e==this?0:-1},o.Gd=function(e){e.a+="(-∞"},o.Hd=function(e){throw T(new FG)},o.Id=function(){throw T(new Ar(Lzn))},o.Hb=function(){return fl(),tZ(this)},o.Jd=function(e){return!0},o.Ib=function(){return"-∞"};var HF;w(Mn,"Cut/BelowAll",1822),b(1824,253,iK,JCn),o.Gd=function(e){Lc((e.a+="[",e),this.a)},o.Hd=function(e){X1(Lc(e,this.a),41)},o.Hb=function(){return mt(this.a)},o.Jd=function(e){return QM(),pk(this.a,e)<=0},o.Ib=function(){return"\\"+this.a+"/"},w(Mn,"Cut/BelowValue",1824),b(547,1,qh),o.Jc=function(e){qi(this,e)},o.Ib=function(){return S5e(u(TT(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},w(Mn,"FluentIterable",547),b(442,547,qh,T6),o.Kc=function(){return new ie(ce(this.a.Kc(),new En))},w(Mn,"FluentIterable/2",442),b(1059,547,qh,rCn),o.Kc=function(){return $h(this)},w(Mn,"FluentIterable/3",1059),b(724,399,$4,HX),o.Xb=function(e){return this.a[e].Kc()},w(Mn,"FluentIterable/3/1",724),b(2070,1,{}),o.Ib=function(){return Jr(this.Kd().b)},w(Mn,"ForwardingObject",2070),b(2071,2070,Nzn),o.Kd=function(){return this.Ld()},o.Jc=function(e){qi(this,e)},o.Lc=function(){return this.Oc()},o.Nc=function(){return new On(this,0)},o.Oc=function(){return new Cn(null,this.Nc())},o.Fc=function(e){return this.Ld(),sEn()},o.Gc=function(e){return this.Ld(),fEn()},o.$b=function(){this.Ld(),hEn()},o.Hc=function(e){return this.Ld().Hc(e)},o.Ic=function(e){return this.Ld().Ic(e)},o.dc=function(){return this.Ld().b.dc()},o.Kc=function(){return this.Ld().Kc()},o.Mc=function(e){return this.Ld(),lEn()},o.gc=function(){return this.Ld().b.gc()},o.Pc=function(){return this.Ld().Pc()},o.Qc=function(e){return this.Ld().Qc(e)},w(Mn,"ForwardingCollection",2071),b(2078,31,btn),o.Kc=function(){return this.Od()},o.Fc=function(e){throw T(new Ie)},o.Gc=function(e){throw T(new Ie)},o.Md=function(){var e;return e=this.c,e||(this.c=this.Nd())},o.$b=function(){throw T(new Ie)},o.Hc=function(e){return e!=null&&i0(this,e,!1)},o.Nd=function(){switch(this.gc()){case 0:return gb(),gb(),qF;case 1:return gb(),new VN(Pe(this.Od().Pb()));default:return new yW(this,this.Pc())}},o.Mc=function(e){throw T(new Ie)},w(Mn,"ImmutableCollection",2078),b(727,2078,btn,KG),o.Kc=function(){return Fp(this.a.Kc())},o.Hc=function(e){return e!=null&&this.a.Hc(e)},o.Ic=function(e){return this.a.Ic(e)},o.dc=function(){return this.a.dc()},o.Od=function(){return Fp(this.a.Kc())},o.gc=function(){return this.a.gc()},o.Pc=function(){return this.a.Pc()},o.Qc=function(e){return this.a.Qc(e)},o.Ib=function(){return Jr(this.a)},w(Mn,"ForwardingImmutableCollection",727),b(306,2078,x4),o.Kc=function(){return this.Od()},o.ed=function(){return this.Pd(0)},o.fd=function(e){return this.Pd(e)},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.kd=function(e,t){return this.Qd(e,t)},o.bd=function(e,t){throw T(new Ie)},o.cd=function(e,t){throw T(new Ie)},o.Md=function(){return this},o.Fb=function(e){return HMe(this,e)},o.Hb=function(){return xve(this)},o.dd=function(e){return e==null?-1:c7e(this,e)},o.Od=function(){return this.Pd(0)},o.Pd=function(e){return CN(this,e)},o.gd=function(e){throw T(new Ie)},o.hd=function(e,t){throw T(new Ie)},o.Qd=function(e,t){var i;return RC((i=new VEn(this),new Jl(i,e,t)))};var qF;w(Mn,"ImmutableList",306),b(2105,306,x4),o.Kc=function(){return Fp(this.Rd().Kc())},o.kd=function(e,t){return RC(this.Rd().kd(e,t))},o.Hc=function(e){return e!=null&&this.Rd().Hc(e)},o.Ic=function(e){return this.Rd().Ic(e)},o.Fb=function(e){return ct(this.Rd(),e)},o.Xb=function(e){return H1(this,e)},o.Hb=function(){return mt(this.Rd())},o.dd=function(e){return this.Rd().dd(e)},o.dc=function(){return this.Rd().dc()},o.Od=function(){return Fp(this.Rd().Kc())},o.gc=function(){return this.Rd().gc()},o.Qd=function(e,t){return RC(this.Rd().kd(e,t))},o.Pc=function(){return this.Rd().Qc(F(ki,Rn,1,this.Rd().gc(),5,1))},o.Qc=function(e){return this.Rd().Qc(e)},o.Ib=function(){return Jr(this.Rd())},w(Mn,"ForwardingImmutableList",2105),b(729,1,R4),o.vc=function(){return Ja(this)},o.wc=function(e){o5(this,e)},o.ec=function(){return eD(this)},o.yc=function(e,t,i){return hx(this,e,t,i)},o.Cc=function(){return this.Vd()},o.$b=function(){throw T(new Ie)},o._b=function(e){return this.xc(e)!=null},o.uc=function(e){return this.Vd().Hc(e)},o.Td=function(){return new Oyn(this)},o.Ud=function(){return new Ayn(this)},o.Fb=function(e){return P6e(this,e)},o.Hb=function(){return Ja(this).Hb()},o.dc=function(){return this.gc()==0},o.zc=function(e,t){return fhe()},o.Bc=function(e){throw T(new Ie)},o.Ib=function(){return wje(this)},o.Vd=function(){return this.e?this.e:this.e=this.Ud()},o.c=null,o.d=null,o.e=null;var rQn;w(Mn,"ImmutableMap",729),b(730,729,R4),o._b=function(e){return uEn(this,e)},o.uc=function(e){return nMn(this.b,e)},o.Sd=function(){return nKn(new D8n(this))},o.Td=function(){return nKn(gOn(this.b))},o.Ud=function(){return oh(),new KG(wOn(this.b))},o.Fb=function(e){return eMn(this.b,e)},o.xc=function(e){return N6(this,e)},o.Hb=function(){return mt(this.b.c)},o.dc=function(){return this.b.c.dc()},o.gc=function(){return this.b.c.gc()},o.Ib=function(){return Jr(this.b.c)},w(Mn,"ForwardingImmutableMap",730),b(2072,2071,rK),o.Kd=function(){return this.Wd()},o.Ld=function(){return this.Wd()},o.Nc=function(){return new On(this,1)},o.Fb=function(e){return e===this||this.Wd().Fb(e)},o.Hb=function(){return this.Wd().Hb()},w(Mn,"ForwardingSet",2072),b(1085,2072,rK,D8n),o.Kd=function(){return Sm(this.a.b)},o.Ld=function(){return Sm(this.a.b)},o.Hc=function(e){if(L(e,44)&&u(e,44).ld()==null)return!1;try{return ZEn(Sm(this.a.b),e)}catch(t){if(t=Ot(t),L(t,212))return!1;throw T(t)}},o.Wd=function(){return Sm(this.a.b)},o.Qc=function(e){var t;return t=nAn(Sm(this.a.b),e),Sm(this.a.b).b.gc()<t.length&&$t(t,Sm(this.a.b).b.gc(),null),t},w(Mn,"ForwardingImmutableMap/1",1085),b(2079,2078,r3),o.Kc=function(){return this.Od()},o.Nc=function(){return new On(this,1)},o.Fb=function(e){return lnn(this,e)},o.Hb=function(){return mxn(this)},w(Mn,"ImmutableSet",2079),b(719,2079,r3),o.Kc=function(){return Fp(new W3(this.a.b.Kc()))},o.Hc=function(e){return e!=null&&t7(this.a,e)},o.Ic=function(e){return QEn(this.a,e)},o.Hb=function(){return mt(this.a.b)},o.dc=function(){return this.a.b.dc()},o.Od=function(){return Fp(new W3(this.a.b.Kc()))},o.gc=function(){return this.a.b.gc()},o.Pc=function(){return this.a.b.Pc()},o.Qc=function(e){return YEn(this.a,e)},o.Ib=function(){return Jr(this.a.b)},w(Mn,"ForwardingImmutableSet",719),b(2073,2072,Dzn),o.Kd=function(){return this.b},o.Ld=function(){return this.b},o.Wd=function(){return this.b},o.Nc=function(){return new rM(this)},w(Mn,"ForwardingSortedSet",2073),b(543,2077,R4,oS),o.Ac=function(e){u5(this,e)},o.Cc=function(){var e;return e=this.d,new vN(e||(this.d=new VA(this)))},o.$b=function(){Z7(this)},o._b=function(e){return!!r5(this,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))))},o.uc=function(e){return y$n(this,e)},o.kc=function(){return new UCn(this,this)},o.wc=function(e){bAn(this,e)},o.xc=function(e){return Ng(this,e)},o.ec=function(){return new kN(this)},o.zc=function(e,t){return RS(this,e,t)},o.Bc=function(e){var t;return t=r5(this,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))),t?(zg(this,t),t.e=null,t.c=null,t.i):null},o.gc=function(){return this.i},o.xd=function(){var e;return e=this.d,new vN(e||(this.d=new VA(this)))},o.f=0,o.g=0,o.i=0,w(Mn,"HashBiMap",543),b(544,1,Pi),o.Nb=function(e){_i(this,e)},o.Ob=function(){return SLn(this)},o.Pb=function(){var e;if(!SLn(this))throw T(new nc);return e=u(as(this.c),302),this.c=e.c,this.f=e,--this.d,this.Xd(e)},o.Qb=function(){if(this.e.g!=this.b)throw T(new Ko);if(!this.f)throw T(new Ar(ltn));zg(this.e,this.f),this.b=this.e.g,this.f=null},o.b=0,o.d=0,o.f=null,w(Mn,"HashBiMap/Itr",544),b(1023,544,Pi,UCn),o.Xd=function(e){return new BEn(this,e)},w(Mn,"HashBiMap/1",1023),b(Gs,358,tK,BEn),o.ld=function(){return this.a.g},o.md=function(){return this.a.i},o.nd=function(e){var t,i,r;return i=this.a.i,r=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),r==this.a.f&&(x(e)===x(i)||e!=null&&ct(e,i))?e:(eRn(!c5(this.b.a,e,r),e),zg(this.b.a,this.a),t=new vT(this.a.g,this.a.a,e,r),Zk(this.b.a,t,this.a),this.a.e=null,this.a.c=null,this.b.b=this.b.a.g,this.b.f==this.a&&(this.b.f=t),this.a=t,i)},w(Mn,"HashBiMap/1/MapEntry",Gs),b(246,358,{358:1,246:1,3:1,44:1},tb),o.ld=function(){return this.g},o.md=function(){return this.i},o.nd=function(e){throw T(new Ie)},w(Mn,"ImmutableEntry",246),b(302,246,{358:1,302:1,246:1,3:1,44:1},vT),o.a=0,o.f=0;var UF=w(Mn,"HashBiMap/BiEntry",302);b(619,2077,R4,VA),o.Ac=function(e){u5(this,e)},o.Cc=function(){return new kN(this.a)},o.$b=function(){Z7(this.a)},o._b=function(e){return y$n(this.a,e)},o.kc=function(){return new GCn(this,this.a)},o.wc=function(e){Pe(e),bAn(this.a,new R8n(e))},o.xc=function(e){return pC(this,e)},o.ec=function(){return new vN(this)},o.zc=function(e,t){return YPe(this.a,e,t,!1)},o.Bc=function(e){var t;return t=c5(this.a,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))),t?(zg(this.a,t),t.e=null,t.c=null,t.g):null},o.gc=function(){return this.a.i},o.xd=function(){return new kN(this.a)},w(Mn,"HashBiMap/Inverse",619),b(1020,544,Pi,GCn),o.Xd=function(e){return new FEn(this,e)},w(Mn,"HashBiMap/Inverse/1",1020),b(1021,358,tK,FEn),o.ld=function(){return this.a.i},o.md=function(){return this.a.g},o.nd=function(e){var t,i,r;return r=this.a.g,t=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),t==this.a.a&&(x(e)===x(r)||e!=null&&ct(e,r))?e:(eRn(!r5(this.b.a.a,e,t),e),zg(this.b.a.a,this.a),i=new vT(e,t,this.a.i,this.a.f),this.a=i,Zk(this.b.a.a,i,null),this.b.b=this.b.a.a.g,r)},w(Mn,"HashBiMap/Inverse/1/InverseEntry",1021),b(620,542,Nu,vN),o.Kc=function(){return new Tjn(this.a.a)},o.Mc=function(e){var t;return t=c5(this.a.a,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))),t?(zg(this.a.a,t),!0):!1},w(Mn,"HashBiMap/Inverse/InverseKeySet",620),b(1019,544,Pi,Tjn),o.Xd=function(e){return e.i},w(Mn,"HashBiMap/Inverse/InverseKeySet/1",1019),b(1022,1,{},R8n),o.Yd=function(e,t){_fe(this.a,e,t)},w(Mn,"HashBiMap/Inverse/lambda$0$Type",1022),b(618,542,Nu,kN),o.Kc=function(){return new Cjn(this.a)},o.Mc=function(e){var t;return t=r5(this.a,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))),t?(zg(this.a,t),t.e=null,t.c=null,!0):!1},w(Mn,"HashBiMap/KeySet",618),b(1018,544,Pi,Cjn),o.Xd=function(e){return e.g},w(Mn,"HashBiMap/KeySet/1",1018),b(1123,627,md),w(Mn,"HashMultimapGwtSerializationDependencies",1123),b(271,1123,md,jb),o.hc=function(){return new GE(Qw(this.a))},o.pd=function(){return new GE(Qw(this.a))},o.a=2,w(Mn,"HashMultimap",271),b(2097,306,x4),o.Hc=function(e){return this.Zd().Hc(e)},o.dc=function(){return this.Zd().dc()},o.gc=function(){return this.Zd().gc()},w(Mn,"ImmutableAsList",2097),b(2030,730,R4),o.Vd=function(){return oh(),new lp(this.a)},o.Cc=function(){return oh(),new lp(this.a)},o.xd=function(){return oh(),new lp(this.a)},w(Mn,"ImmutableBiMap",2030),b(2075,1,{}),w(Mn,"ImmutableCollection/Builder",2075),b(1035,719,r3,Sjn),w(Mn,"ImmutableEnumSet",1035),b(980,399,$4,tPn),o.Xb=function(e){return this.a.Xb(e)},w(Mn,"ImmutableList/1",980),b(979,2075,{},GSn),w(Mn,"ImmutableList/Builder",979),b(623,204,D4,WA),o.Ob=function(){return this.a.Ob()},o.Pb=function(){return u(this.a.Pb(),44).ld()},w(Mn,"ImmutableMap/1",623),b(1054,1,{},Yi),o.Kb=function(e){return u(e,44).ld()},w(Mn,"ImmutableMap/2methodref$getKey$Type",1054),b(1053,1,{},zSn),w(Mn,"ImmutableMap/Builder",1053),b(2098,2079,r3),o.Md=function(){var e;return e=this.b,e||(this.b=new cL(this))},o.Nd=function(){return new yW(this,T5(this,F(ki,Rn,1,this.gc(),5,1)))},w(Mn,"ImmutableSet/CachingAsList",2098),b(2099,2098,r3),o.Kc=function(){var e;return e=Ja(this.a).Od(),new WA(e)},o.Nd=function(){return new cL(this)},o.Jc=function(e){var t,i;for(Pe(e),i=this.gc(),t=0;t<i;t++)e.Cd(u(Ja(this.a).Md().Xb(t),44).ld())},o.Od=function(){var e;return e=this.b,CN(e||(this.b=new cL(this)),0)},o.Nc=function(){return XN(this.gc(),1296,new B8n(this))},w(Mn,"IndexedImmutableSet",2099),b(1230,2099,r3,Oyn),o.Kc=function(){var e;return e=Ja(this.a).Od(),new WA(e)},o.Hc=function(e){return this.a._b(e)},o.Jc=function(e){Pe(e),o5(this.a,new K8n(e))},o.Od=function(){var e;return e=Ja(this.a).Od(),new WA(e)},o.gc=function(){return this.a.gc()},o.Nc=function(){return D7(Ja(this.a).Nc(),new Yi)},w(Mn,"ImmutableMapKeySet",1230),b(1231,1,{},K8n),o.Yd=function(e,t){oh(),this.a.Cd(e)},w(Mn,"ImmutableMapKeySet/lambda$0$Type",1231),b(1227,2078,btn,Ayn),o.Kc=function(){return new GN(this)},o.Md=function(){var e;return e=Ja(this.a).Md(),new gCn(this,e)},o.Hc=function(e){return e!=null&&Mke(new GN(this),e)},o.Od=function(){return new GN(this)},o.gc=function(){return this.a.gc()},o.Nc=function(){return D7(Ja(this.a).Nc(),new Bi)},w(Mn,"ImmutableMapValues",1227),b(1228,1,{},Bi),o.Kb=function(e){return u(e,44).md()},w(Mn,"ImmutableMapValues/0methodref$getValue$Type",1228),b(637,204,D4,GN),o.Ob=function(){return this.a.Ob()},o.Pb=function(){return u(this.a.Pb(),44).md()},w(Mn,"ImmutableMapValues/1",637),b(1229,2097,x4,gCn),o.Zd=function(){return this.a},o.Xb=function(e){return u(this.b.Xb(e),44).md()},w(Mn,"ImmutableMapValues/2",1229),b(1232,1,{},B8n),o.td=function(e){return JIn(this.a,e)},w(Mn,"IndexedImmutableSet/0methodref$get$Type",1232),b(638,2097,x4,cL),o.Zd=function(){return this.a},o.Xb=function(e){return JIn(this.a,e)},o.gc=function(){return this.a.a.gc()},w(Mn,"IndexedImmutableSet/1",638),b(43,1,{},En),o.Kb=function(e){return u(e,20).Kc()},o.Fb=function(e){return this===e},w(Mn,"Iterables/10",43),b(1055,547,qh,KPn),o.Jc=function(e){Pe(e),this.b.Jc(new _En(this.a,e))},o.Kc=function(){return MX(this)},w(Mn,"Iterables/4",1055),b(1056,1,re,_En),o.Cd=function(e){sle(this.b,this.a,e)},w(Mn,"Iterables/4/lambda$0$Type",1056),b(1057,547,qh,BPn),o.Jc=function(e){Pe(e),qi(this.a,new qEn(e,this.b))},o.Kc=function(){return ce(new ne(this.a),this.b)},w(Mn,"Iterables/5",1057),b(1058,1,re,qEn),o.Cd=function(e){this.a.Cd(cCn(e))},w(Mn,"Iterables/5/lambda$0$Type",1058),b(1087,204,D4,F8n),o.Ob=function(){return this.a.Ob()},o.Pb=function(){return this.a.Pb()},w(Mn,"Iterators/1",1087),b(1088,713,D4,HEn),o.Yb=function(){for(var e;this.b.Ob();)if(e=this.b.Pb(),this.a.Lb(e))return e;return this.e=2,null},w(Mn,"Iterators/5",1088),b(496,1,Pi),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.b.Ob()},o.Pb=function(){return this.$d(this.b.Pb())},o.Qb=function(){this.b.Qb()},w(Mn,"TransformedIterator",496),b(1089,496,Pi,zCn),o.$d=function(e){return this.a.Kb(e)},w(Mn,"Iterators/6",1089),b(732,204,D4,fG),o.Ob=function(){return!this.a},o.Pb=function(){if(this.a)throw T(new nc);return this.a=!0,this.b},o.a=!1,w(Mn,"Iterators/9",732),b(1086,399,$4,hIn),o.Xb=function(e){return this.a[this.b+e]},o.b=0;var cQn;w(Mn,"Iterators/ArrayItr",1086),b(37,1,{37:1,51:1},ie),o.Nb=function(e){_i(this,e)},o.Ob=function(){return pe(this)},o.Pb=function(){return fe(this)},o.Qb=function(){if(!this.c)throw T(new Ar(ltn));this.c.Qb(),this.c=null},w(Mn,"Iterators/ConcatenatedIterator",37),b(22,1,{3:1,34:1,22:1}),o.Fd=function(e){return xjn(this,u(e,22))},o.Fb=function(e){return this===e},o.Hb=function(){return fb(this)},o.Ib=function(){return PN(this)},o.g=0;var ke=w(ac,"Enum",22);b(549,22,{549:1,3:1,34:1,22:1,51:1},SCn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return!1},o.Pb=function(){throw T(new nc)},o.Qb=function(){mm(!1)};var GF,uQn=we(Mn,"Iterators/EmptyModifiableIterator",549,ke,k0e,H1e),oQn;b(1907,627,md),w(Mn,"LinkedHashMultimapGwtSerializationDependencies",1907),b(1908,1907,md,GRn),o.hc=function(){return new MN(Qw(this.b))},o.$b=function(){gC(this),V9(this.a,this.a)},o.pd=function(){return new MN(Qw(this.b))},o.ic=function(e){return new SRn(this,e,this.b)},o.kc=function(){return new LW(this)},o.lc=function(){var e;return new On((e=this.g,u(e||(this.g=new cz(this)),21)),17)},o.ec=function(){var e;return e=this.i,e||(this.i=new Tg(this,this.c))},o.nc=function(){return new oz(new LW(this))},o.oc=function(){var e;return D7(new On((e=this.g,u(e||(this.g=new cz(this)),21)),17),new hu)},o.b=2,w(Mn,"LinkedHashMultimap",1908),b(1911,1,{},hu),o.Kb=function(e){return u(e,44).md()},w(Mn,"LinkedHashMultimap/0methodref$getValue$Type",1911),b(834,1,Pi,LW),o.Nb=function(e){_i(this,e)},o.Pb=function(){return Nve(this)},o.Ob=function(){return this.a!=this.b.a},o.Qb=function(){mm(!!this.c),oLn(this.b,this.c.g,this.c.i),this.c=null},w(Mn,"LinkedHashMultimap/1",834),b(227,246,{358:1,246:1,227:1,604:1,3:1,44:1},FW),o._d=function(){return u(as(this.f),604)},o.ae=function(e){this.c=e},o.be=function(e){this.f=e},o.d=0;var sQn=w(Mn,"LinkedHashMultimap/ValueEntry",227);b(1909,2068,{604:1,20:1,31:1,16:1,21:1},SRn),o.Fc=function(e){var t,i,r,c,s;for(s=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),t=s&this.b.length-1,c=this.b[t],i=c;i;i=i.a)if(i.d==s&&sh(i.i,e))return!1;return r=new FW(this.c,e,s,c),Bjn(this.d,r),r.f=this,this.d=r,V9(u(as(this.g.a.b),227),r),V9(r,this.g.a),this.b[t]=r,++this.f,++this.e,jke(this),!0},o.$b=function(){var e,t;for(u7(this.b,null),this.f=0,e=this.a;e!=this;e=e._d())t=u(e,227),V9(u(as(t.b),227),u(as(t.e),227));this.a=this,this.d=this,++this.e},o.Hc=function(e){var t,i;for(i=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),t=this.b[i&this.b.length-1];t;t=t.a)if(t.d==i&&sh(t.i,e))return!0;return!1},o.Jc=function(e){var t;for(Pe(e),t=this.a;t!=this;t=t._d())e.Cd(u(t,227).i)},o._d=function(){return this.a},o.Kc=function(){return new tOn(this)},o.Mc=function(e){return fqn(this,e)},o.ae=function(e){this.d=e},o.be=function(e){this.a=e},o.gc=function(){return this.f},o.e=0,o.f=0,w(Mn,"LinkedHashMultimap/ValueSet",1909),b(1910,1,Pi,tOn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return tW(this),this.b!=this.c},o.Pb=function(){var e,t;if(tW(this),this.b==this.c)throw T(new nc);return e=u(this.b,227),t=e.i,this.d=e,this.b=u(as(e.f),604),t},o.Qb=function(){tW(this),mm(!!this.d),fqn(this.c,this.d.i),this.a=this.c.e,this.d=null},o.a=0,w(Mn,"LinkedHashMultimap/ValueSet/1",1910),b(780,2084,md,UTn),o.Zb=function(){var e;return e=this.f,e||(this.f=new Bz(this))},o.Fb=function(e){return G$(this,e)},o.cc=function(e){return new SL(this,e)},o.fc=function(e){return UJ(this,e)},o.$b=function(){KIn(this)},o._b=function(e){return JEn(this,e)},o.ac=function(){return new Bz(this)},o.bc=function(){return new H8n(this)},o.qc=function(e){return new SL(this,e)},o.dc=function(){return!this.a},o.rc=function(e){return UJ(this,e)},o.gc=function(){return this.d},o.c=0,o.d=0,w(Mn,"LinkedListMultimap",780),b(56,31,K4),o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.bd=function(e,t){throw T(new Fl("Add not supported on this list"))},o.Fc=function(e){return this.bd(this.gc(),e),!0},o.cd=function(e,t){var i,r,c;for(Jn(t),i=!1,c=t.Kc();c.Ob();)r=c.Pb(),this.bd(e++,r),i=!0;return i},o.$b=function(){this.ce(0,this.gc())},o.Fb=function(e){return znn(this,e)},o.Hb=function(){return tY(this)},o.dd=function(e){return W$n(this,e)},o.Kc=function(){return new Gv(this)},o.ed=function(){return this.fd(0)},o.fd=function(e){return new xi(this,e)},o.gd=function(e){throw T(new Fl("Remove not supported on this list"))},o.ce=function(e,t){var i,r;for(r=this.fd(e),i=e;i<t;++i)r.Pb(),r.Qb()},o.hd=function(e,t){throw T(new Fl("Set not supported on this list"))},o.kd=function(e,t){return new Jl(this,e,t)},o.j=0,w(le,"AbstractList",56),b(2062,56,K4),o.bd=function(e,t){wm(this,e,t)},o.cd=function(e,t){return PRn(this,e,t)},o.Xb=function(e){return Zo(this,e)},o.Kc=function(){return this.fd(0)},o.gd=function(e){return Ux(this,e)},o.hd=function(e,t){var i,r;i=this.fd(e);try{return r=i.Pb(),i.Wb(t),r}catch(c){throw c=Ot(c),L(c,112)?T(new Or("Can't set element "+e)):T(c)}},w(le,"AbstractSequentialList",2062),b(646,2062,K4,SL),o.fd=function(e){return VCn(this,e)},o.gc=function(){var e;return e=u(ee(this.a.b,this.b),260),e?e.a:0},w(Mn,"LinkedListMultimap/1",646),b(1316,2068,Nu,H8n),o.Hc=function(e){return JEn(this.a,e)},o.Kc=function(){return new dxn(this.a)},o.Mc=function(e){return!UJ(this.a,e).a.dc()},o.gc=function(){return i6(this.a.b)},w(Mn,"LinkedListMultimap/1KeySetImpl",1316),b(1315,1,Pi,dxn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return iW(this),!!this.c},o.Pb=function(){if(iW(this),!this.c)throw T(new nc);this.a=this.c,fi(this.d,this.a.a);do this.c=this.c.b;while(this.c&&!fi(this.d,this.c.a));return this.a.a},o.Qb=function(){iW(this),mm(!!this.a),tT(new f$(this.e,this.a.a)),this.a=null,this.b=this.e.c},o.b=0,w(Mn,"LinkedListMultimap/DistinctKeyIterator",1315),b(260,1,{260:1},JW),o.a=0,w(Mn,"LinkedListMultimap/KeyList",260),b(511,358,{358:1,511:1,44:1},UEn),o.ld=function(){return this.a},o.md=function(){return this.f},o.nd=function(e){var t;return t=this.f,this.f=e,t},w(Mn,"LinkedListMultimap/Node",511),b(566,1,Hh,f$,v_n),o.Nb=function(e){_i(this,e)},o.Rb=function(e){this.e=Cen(this.f,this.b,e,this.c),++this.d,this.a=null},o.Ob=function(){return!!this.c},o.Sb=function(){return!!this.e},o.Pb=function(){return uQ(this)},o.Tb=function(){return this.d},o.Ub=function(){return e$n(this)},o.Vb=function(){return this.d-1},o.Qb=function(){mm(!!this.a),this.a!=this.c?(this.e=this.a.e,--this.d):this.c=this.a.c,BTe(this.f,this.a),this.a=null},o.Wb=function(e){BX(!!this.a),this.a.f=e},o.d=0,w(Mn,"LinkedListMultimap/ValueForKeyIterator",566),b(1031,56,K4),o.bd=function(e,t){this.a.bd(e,t)},o.cd=function(e,t){return this.a.cd(e,t)},o.Hc=function(e){return this.a.Hc(e)},o.Xb=function(e){return this.a.Xb(e)},o.gd=function(e){return this.a.gd(e)},o.hd=function(e,t){return this.a.hd(e,t)},o.gc=function(){return this.a.gc()},w(Mn,"Lists/AbstractListWrapper",1031),b(1032,1031,xzn),w(Mn,"Lists/RandomAccessListWrapper",1032),b(1034,1032,xzn,VEn),o.fd=function(e){return this.a.fd(e)},w(Mn,"Lists/1",1034),b(441,56,{441:1,20:1,31:1,56:1,16:1,15:1},Iz),o.bd=function(e,t){this.a.bd(Em(this,e),t)},o.$b=function(){this.a.$b()},o.Xb=function(e){return this.a.Xb(AW(this,e))},o.Kc=function(){return FAn(this,0)},o.fd=function(e){return FAn(this,e)},o.gd=function(e){return this.a.gd(AW(this,e))},o.ce=function(e,t){(gLn(e,t,this.a.gc()),Qo(this.a.kd(Em(this,t),Em(this,e)))).$b()},o.hd=function(e,t){return this.a.hd(AW(this,e),t)},o.gc=function(){return this.a.gc()},o.kd=function(e,t){return gLn(e,t,this.a.gc()),Qo(this.a.kd(Em(this,t),Em(this,e)))},w(Mn,"Lists/ReverseList",441),b(1030,441,{441:1,20:1,31:1,56:1,16:1,15:1,59:1},Pjn),w(Mn,"Lists/RandomAccessReverseList",1030),b(1033,1,Hh,GEn),o.Nb=function(e){_i(this,e)},o.Rb=function(e){this.c.Rb(e),this.c.Ub(),this.a=!1},o.Ob=function(){return this.c.Sb()},o.Sb=function(){return this.c.Ob()},o.Pb=function(){if(!this.c.Sb())throw T(new nc);return this.a=!0,this.c.Ub()},o.Tb=function(){return Em(this.b,this.c.Tb())},o.Ub=function(){if(!this.c.Ob())throw T(new nc);return this.a=!0,this.c.Pb()},o.Vb=function(){return Em(this.b,this.c.Tb())-1},o.Qb=function(){mm(this.a),this.c.Qb(),this.a=!1},o.Wb=function(e){BX(this.a),this.c.Wb(e)},o.a=!1,w(Mn,"Lists/ReverseList/1",1033),b(440,496,Pi,Yv),o.$d=function(e){return iM(e)},w(Mn,"Maps/1",440),b(712,496,Pi,oz),o.$d=function(e){return u(e,44).md()},w(Mn,"Maps/2",712),b(975,496,Pi,XCn),o.$d=function(e){return new tb(e,YTn(this.a,e))},w(Mn,"Maps/3",975),b(972,2069,Nu,U8n),o.Jc=function(e){zfe(this.a,e)},o.Kc=function(){return this.a.kc()},o.Rc=function(){return this.a},o.Nc=function(){return this.a.lc()},w(Mn,"Maps/IteratorBasedAbstractMap/1",972),b(973,1,{},G8n),o.Yd=function(e,t){this.a.Cd(e)},w(Mn,"Maps/KeySet/lambda$0$Type",973),b(971,31,p0,WEn),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a.uc(e)},o.Jc=function(e){Pe(e),this.a.wc(new q8n(e))},o.dc=function(){return this.a.dc()},o.Kc=function(){return new oz(this.a.vc().Kc())},o.Mc=function(e){var t,i;try{return i0(this,e,!0)}catch(r){if(r=Ot(r),L(r,48)){for(i=this.a.vc().Kc();i.Ob();)if(t=u(i.Pb(),44),sh(e,t.md()))return this.a.Bc(t.ld()),!0;return!1}else throw T(r)}},o.gc=function(){return this.a.gc()},w(Mn,"Maps/Values",971),b(974,1,{},q8n),o.Yd=function(e,t){this.a.Cd(t)},w(Mn,"Maps/Values/lambda$0$Type",974),b(752,2085,Gb,Bz),o.xc=function(e){return this.a._b(e)?this.a.cc(e):null},o.Bc=function(e){return this.a._b(e)?this.a.fc(e):null},o.$b=function(){this.a.$b()},o._b=function(e){return this.a._b(e)},o.Ec=function(){return new z8n(this)},o.Dc=function(){return this.Ec()},o.dc=function(){return this.a.dc()},o.ec=function(){return this.a.ec()},o.gc=function(){return this.a.ec().gc()},w(Mn,"Multimaps/AsMap",752),b(1134,2069,Nu,z8n),o.Kc=function(){return l1e(this.a.a.ec(),new X8n(this))},o.Rc=function(){return this.a},o.Mc=function(e){var t;return LKn(this,e)?(t=u(as(u(e,44)),44),ehe(this.a,t.ld()),!0):!1},w(Mn,"Multimaps/AsMap/EntrySet",1134),b(1138,1,{},X8n),o.Kb=function(e){return YTn(this,e)},o.Fb=function(e){return this===e},w(Mn,"Multimaps/AsMap/EntrySet/1",1138),b(552,2087,{552:1,849:1,20:1,31:1,16:1},V8n),o.$b=function(){gC(this.a)},o.Hc=function(e){return cEn(this.a,e)},o.Jc=function(e){Pe(e),qi(q6(this.a),new J8n(e))},o.Kc=function(){return new Yv(q6(this.a).a.kc())},o.gc=function(){return this.a.d},o.Nc=function(){return D7(q6(this.a).Nc(),new Qc)},w(Mn,"Multimaps/Keys",552),b(1136,1,{},Qc),o.Kb=function(e){return u(e,44).ld()},w(Mn,"Multimaps/Keys/0methodref$getKey$Type",1136),b(1135,496,Pi,Ijn),o.$d=function(e){return new W8n(u(e,44))},w(Mn,"Multimaps/Keys/1",1135),b(2088,1,{425:1}),o.Fb=function(e){var t;return L(e,503)?(t=u(e,425),u(this.a.md(),16).gc()==u(t.a.md(),16).gc()&&sh(this.a.ld(),t.a.ld())):!1},o.Hb=function(){var e;return e=this.a.ld(),(e==null?0:mt(e))^u(this.a.md(),16).gc()},o.Ib=function(){var e,t;return t=I6(this.a.ld()),e=u(this.a.md(),16).gc(),e==1?t:t+" x "+e},w(Mn,"Multisets/AbstractEntry",2088),b(503,2088,{503:1,425:1},W8n),w(Mn,"Multimaps/Keys/1/1",503),b(1137,1,re,J8n),o.Cd=function(e){this.a.Cd(u(e,44).ld())},w(Mn,"Multimaps/Keys/lambda$1$Type",1137),b(1140,1,re,Bu),o.Cd=function(e){Dwe(u(e,425))},w(Mn,"Multiset/lambda$0$Type",1140),b(753,1,re,Q8n),o.Cd=function(e){v4e(this.a,u(e,425))},w(Mn,"Multiset/lambda$1$Type",753),b(1141,1,{},Ir),w(Mn,"Multisets/0methodref$add$Type",1141),b(754,1,{},Tf),o.Kb=function(e){return Hpe(u(e,425))},w(Mn,"Multisets/lambda$1$Type",754),b(2106,1,vy),w(Mn,"RangeGwtSerializationDependencies",2106),b(521,2106,{178:1,521:1,3:1,46:1},sZ),o.Lb=function(e){return MIn(this,u(e,34))},o.Mb=function(e){return MIn(this,u(e,34))},o.Fb=function(e){var t;return L(e,521)?(t=u(e,521),pZ(this.a,t.a)&&pZ(this.b,t.b)):!1},o.Hb=function(){return this.a.Hb()*31+this.b.Hb()},o.Ib=function(){return HLn(this.a,this.b)},w(Mn,"Range",521),b(654,2097,x4,yW),o.fd=function(e){return CN(this.b,e)},o.Zd=function(){return this.a},o.Xb=function(e){return H1(this.b,e)},o.Pd=function(e){return CN(this.b,e)},w(Mn,"RegularImmutableAsList",654),b(656,2105,x4,ID),o.Rd=function(){return this.a},w(Mn,"RegularImmutableList",656),b(548,730,R4,sz,fz),w(Mn,"RegularImmutableMap",548),b(731,719,r3,xz);var iun;w(Mn,"RegularImmutableSet",731),b(2074,Ff,Nu),o.Kc=function(){return new qW(this.a,this.b)},o.Fc=function(e){throw T(new Ie)},o.Gc=function(e){throw T(new Ie)},o.$b=function(){throw T(new Ie)},o.Mc=function(e){throw T(new Ie)},w(Mn,"Sets/SetView",2074),b(976,2074,Nu,XEn),o.Kc=function(){return new qW(this.a,this.b)},o.Hc=function(e){return JN(this.a,e)&&this.b.Hc(e)},o.Ic=function(e){return jk(this.a,e)&&this.b.Ic(e)},o.dc=function(){return gBn(this.b,this.a)},o.Lc=function(){return ut(new Cn(null,new On(this.a,1)),new Z8n(this.b))},o.gc=function(){return vk(this)},o.Oc=function(){return ut(new Cn(null,new On(this.a,1)),new Y8n(this.b))},w(Mn,"Sets/2",976),b(977,1,Le,Y8n),o.Mb=function(e){return this.a.Hc(e)},w(Mn,"Sets/2/0methodref$contains$Type",977),b(714,713,D4,qW),o.Yb=function(){for(var e;PX(this.a);)if(e=Y6(this.a),this.c.Hc(e))return e;return this.e=2,null},w(Mn,"Sets/2/1",714),b(978,1,Le,Z8n),o.Mb=function(e){return this.a.Hc(e)},w(Mn,"Sets/2/1methodref$contains$Type",978),b(616,2073,{616:1,3:1,20:1,16:1,277:1,21:1,87:1},uAn),o.Kd=function(){return this.b},o.Ld=function(){return this.b},o.Wd=function(){return this.b},o.Jc=function(e){this.a.Jc(e)},o.Lc=function(){return this.a.Lc()},o.Oc=function(){return this.a.Oc()},w(Mn,"Sets/UnmodifiableNavigableSet",616),b(2031,2030,R4,hOn),o.Vd=function(){return oh(),new lp(this.a)},o.Cc=function(){return oh(),new lp(this.a)},o.xd=function(){return oh(),new lp(this.a)},w(Mn,"SingletonImmutableBiMap",2031),b(657,2105,x4,VN),o.Rd=function(){return this.a},w(Mn,"SingletonImmutableList",657),b(363,2079,r3,lp),o.Kc=function(){return new fG(this.a)},o.Hc=function(e){return ct(this.a,e)},o.Od=function(){return new fG(this.a)},o.gc=function(){return 1},w(Mn,"SingletonImmutableSet",363),b(1148,1,{},D1),o.Kb=function(e){return u(e,159)},w(Mn,"Streams/lambda$0$Type",1148),b(1149,1,JS,n9n),o.de=function(){Q3e(this.a)},w(Mn,"Streams/lambda$1$Type",1149),b(1725,1724,md,UOn),o.Zb=function(){var e;return e=this.f,u(u(e||(this.f=L(this.c,139)?new L6(this,u(this.c,139)):L(this.c,133)?new S7(this,u(this.c,133)):new fm(this,this.c)),133),139)},o.hc=function(){return new Ul(this.b)},o.pd=function(){return new Ul(this.b)},o.ec=function(){var e;return e=this.i,u(u(e||(this.i=L(this.c,139)?new sm(this,u(this.c,139)):L(this.c,133)?new e7(this,u(this.c,133)):new Tg(this,this.c)),87),277)},o.ac=function(){return L(this.c,139)?new L6(this,u(this.c,139)):L(this.c,133)?new S7(this,u(this.c,133)):new fm(this,this.c)},o.ic=function(e){return e==null&&this.a.Ne(e,e),new Ul(this.b)},w(Mn,"TreeMultimap",1725),b(82,1,{3:1,82:1}),o.ee=function(e){return new Error(e)},o.fe=function(){return this.e},o.ge=function(){var e,t,i;for(i=(this.k==null&&(this.k=F(zF,J,82,0,0,1)),this.k),t=F(ki,Rn,1,i.length,5,1),e=0;e<i.length;e++)t[e]=i[e].e;return t},o.he=function(){return this.f},o.ie=function(){return this.g},o.je=function(){Qfe(this,Ape(this.ee(IT(this,this.g)))),Lyn(this)},o.Ib=function(){return IT(this,this.ie())},o.e=Rzn,o.i=!1,o.n=!0;var zF=w(ac,"Throwable",82);b(103,82,{3:1,103:1,82:1}),w(ac,"Exception",103),b(63,103,Il,Ga,ec),w(ac,"RuntimeException",63),b(607,63,Il),w(ac,"JsException",607),b(875,607,Il),w(My,"JavaScriptExceptionBase",875),b(485,875,{485:1,3:1,103:1,63:1,82:1},URn),o.ie=function(){return zke(this),this.c},o.ke=function(){return x(this.b)===x(run)?null:this.b};var run;w(gtn,"JavaScriptException",485);var fQn=w(gtn,"JavaScriptObject$",0),cun;b(2047,1,{}),w(gtn,"Scheduler",2047);var cI=0,hQn=0,uI=-1;b(902,2047,{},$1);var uun;w(My,"SchedulerImpl",902);var XF;b(2058,1,{}),w(My,"StackTraceCreator/Collector",2058),b(876,2058,{},og),o.le=function(e){var t={},i=[];e[oK]=i;for(var r=arguments.callee.caller;r;){var c=(Om(),r.name||(r.name=L4e(r.toString())));i.push(c);var s=":"+c,f=t[s];if(f){var h,l;for(h=0,l=f.length;h<l;h++)if(f[h]===r)return}(f||(t[s]=[])).push(r),r=r.caller}},o.me=function(e){var t,i,r,c;for(r=(Om(),e&&e[oK]?e[oK]:[]),i=r.length,c=F(kun,J,319,i,0,1),t=0;t<i;t++)c[t]=new yD(r[t],null,-1);return c},w(My,"StackTraceCreator/CollectorLegacy",876),b(2059,2058,{}),o.le=function(e){},o.ne=function(e,t,i,r){return new yD(t,e+"@"+r,i<0?-1:i)},o.me=function(e){var t,i,r,c,s,f;if(c=v7e(e),s=F(kun,J,319,0,0,1),t=0,r=c.length,r==0)return s;for(f=_Gn(this,c[0]),Sn(f.d,uK)||(s[t++]=f),i=1;i<r;i++)s[t++]=_Gn(this,c[i]);return s},w(My,"StackTraceCreator/CollectorModern",2059),b(877,2059,{},X3),o.ne=function(e,t,i,r){return new yD(t,e,-1)},w(My,"StackTraceCreator/CollectorModernNoSourceMap",877),b(1064,1,{}),w(mtn,Fzn,1064),b(624,1064,{624:1},WIn);var oun;w(CK,Fzn,624),b(2101,1,{}),w(mtn,_zn,2101),b(2102,2101,{}),w(CK,_zn,2102),b(1120,1,{},x1);var M8;w(CK,"LocaleInfo",1120),b(2027,1,{},ul),o.a=0,w(CK,"TimeZone",2027),b(1293,2102,{},Ebn),w("com.google.gwt.i18n.client.impl.cldr","DateTimeFormatInfoImpl",1293),b(443,1,{443:1},SPn),o.a=!1,o.b=0,w(mtn,"DateTimeFormat/PatternPart",443),b(206,1,Hzn,WE,YQ,oV),o.Fd=function(e){return Cpe(this,u(e,206))},o.Fb=function(e){return L(e,206)&&cb(vc(this.q.getTime()),vc(u(e,206).q.getTime()))},o.Hb=function(){var e;return e=vc(this.q.getTime()),Se(BD(e,G1(e,32)))},o.Ib=function(){var e,t,i;return i=-this.q.getTimezoneOffset(),e=(i>=0?"+":"")+(i/60|0),t=OM(y.Math.abs(i)%60),(qFn(),EQn)[this.q.getDay()]+" "+MQn[this.q.getMonth()]+" "+OM(this.q.getDate())+" "+OM(this.q.getHours())+":"+OM(this.q.getMinutes())+":"+OM(this.q.getSeconds())+" GMT"+e+t+" "+this.q.getFullYear()};var oI=w(le,"Date",206);b(2015,206,Hzn,aFn),o.a=!1,o.b=0,o.c=0,o.d=0,o.e=0,o.f=0,o.g=!1,o.i=0,o.j=0,o.k=0,o.n=0,o.o=0,o.p=0,w("com.google.gwt.i18n.shared.impl","DateRecord",2015),b(2064,1,{}),o.pe=function(){return null},o.qe=function(){return null},o.re=function(){return null},o.se=function(){return null},o.te=function(){return null},w(u3,"JSONValue",2064),b(221,2064,{221:1},_a,hG),o.Fb=function(e){return L(e,221)?sJ(this.a,u(e,221).a):!1},o.oe=function(){return Dfe},o.Hb=function(){return QW(this.a)},o.pe=function(){return this},o.Ib=function(){var e,t,i;for(i=new mo("["),t=0,e=this.a.length;t<e;t++)t>0&&(i.a+=","),Lc(i,Jw(this,t));return i.a+="]",i.a},w(u3,"JSONArray",221),b(492,2064,{492:1},lG),o.oe=function(){return $fe},o.qe=function(){return this},o.Ib=function(){return _n(),""+this.a},o.a=!1;var lQn,aQn;w(u3,"JSONBoolean",492),b(997,63,Il,Ojn),w(u3,"JSONException",997),b(1036,2064,{},Mbn),o.oe=function(){return xfe},o.Ib=function(){return gu};var dQn;w(u3,"JSONNull",1036),b(263,2064,{263:1},CE),o.Fb=function(e){return L(e,263)?this.a==u(e,263).a:!1},o.oe=function(){return Lfe},o.Hb=function(){return pp(this.a)},o.re=function(){return this},o.Ib=function(){return this.a+""},o.a=0,w(u3,"JSONNumber",263),b(190,2064,{190:1},sp,q9),o.Fb=function(e){return L(e,190)?sJ(this.a,u(e,190).a):!1},o.oe=function(){return Nfe},o.Hb=function(){return QW(this.a)},o.se=function(){return this},o.Ib=function(){var e,t,i,r,c,s,f;for(f=new mo("{"),e=!0,s=P$(this,F(fn,J,2,0,6,1)),i=s,r=0,c=i.length;r<c;++r)t=i[r],e?e=!1:f.a+=ur,Be(f,cHn(t)),f.a+=":",Lc(f,dl(this,t));return f.a+="}",f.a},w(u3,"JSONObject",190),b(605,Ff,Nu,PL),o.Hc=function(e){return Si(e)&&whe(this.a,Ae(e))},o.Kc=function(){return new Gv(new Fu(this.b))},o.gc=function(){return this.b.length},w(u3,"JSONObject/1",605);var VF;b(211,2064,{211:1},qw),o.Fb=function(e){return L(e,211)?Sn(this.a,u(e,211).a):!1},o.oe=function(){return Afe},o.Hb=function(){return t1(this.a)},o.te=function(){return this},o.Ib=function(){return cHn(this.a)},w(u3,"JSONString",211);var ga,sun,bQn,fun,hun;b(2060,1,{533:1}),w(vtn,"OutputStream",2060),b(2061,2060,{533:1}),w(vtn,"FilterOutputStream",2061),b(878,2061,{533:1},Tbn),w(vtn,"PrintStream",878),b(427,1,{483:1}),o.Ib=function(){return this.a},w(ac,"AbstractStringBuilder",427),b(538,63,Il,FE),w(ac,"ArithmeticException",538),b(77,63,SK,_G,Or),w(ac,"IndexOutOfBoundsException",77),b(333,77,{3:1,333:1,103:1,77:1,63:1,82:1},JG,wz),w(ac,"ArrayIndexOutOfBoundsException",333),b(537,63,Il,uL,Rjn),w(ac,"ArrayStoreException",537),b(295,82,qzn,vL),w(ac,"Error",295),b(200,295,qzn,FG,NJ),w(ac,"AssertionError",200),eQn={3:1,484:1,34:1};var pa,uv,zt=w(ac,"Boolean",484);b(242,1,{3:1,242:1});var lun;w(ac,"Number",242),b(222,242,{3:1,222:1,34:1,242:1},c9n),o.Fd=function(e){return ahe(this,u(e,222))},o.ue=function(){return this.a},o.Fb=function(e){return L(e,222)&&u(e,222).a==this.a},o.Hb=function(){return this.a},o.Ib=function(){return""+this.a},o.a=0;var p3=w(ac,"Byte",222),aun;b(180,1,{3:1,180:1,34:1},kG),o.Fd=function(e){return dhe(this,u(e,180))},o.Fb=function(e){return L(e,180)&&u(e,180).a==this.a},o.Hb=function(){return this.a},o.Ib=function(){return String.fromCharCode(this.a)},o.a=0;var dun,T8=w(ac,"Character",180),bun;b(212,63,{3:1,212:1,103:1,63:1,82:1},Nyn,tm),w(ac,"ClassCastException",212),tQn={3:1,34:1,345:1,242:1};var si=w(ac,"Double",345);b(161,242,{3:1,34:1,161:1,242:1},G9,HG),o.Fd=function(e){return Sle(this,u(e,161))},o.ue=function(){return this.a},o.Fb=function(e){return L(e,161)&&ZSn(this.a,u(e,161).a)},o.Hb=function(){return wi(this.a)},o.Ib=function(){return""+this.a},o.a=0;var ov=w(ac,"Float",161);b(33,63,{3:1,103:1,33:1,63:1,82:1},W9,Gn,NRn),w(ac,"IllegalArgumentException",33),b(73,63,Il,Mu,Ar),w(ac,"IllegalStateException",73),b(17,242,{3:1,34:1,17:1,242:1},pG),o.Fd=function(e){return kX(this,u(e,17))},o.ue=function(){return this.a},o.Fb=function(e){return L(e,17)&&u(e,17).a==this.a},o.Hb=function(){return this.a},o.Ib=function(){return""+this.a},o.a=0;var Gi=w(ac,"Integer",17),wun,wQn;b(168,242,{3:1,34:1,168:1,242:1},mG),o.Fd=function(e){return Cle(this,u(e,168))},o.ue=function(){return id(this.a)},o.Fb=function(e){return L(e,168)&&cb(u(e,168).a,this.a)},o.Hb=function(){return Tae(this.a)},o.Ib=function(){return""+B6(this.a)},o.a=0;var nw=w(ac,"Long",168),gun;b(2140,1,{}),b(1904,63,Il,Kjn),w(ac,"NegativeArraySizeException",1904),b(169,607,{3:1,103:1,169:1,63:1,82:1},rp,fp),o.ee=function(e){return new TypeError(e)},w(ac,"NullPointerException",169);var pun,WF,gQn,mun;b(130,33,{3:1,103:1,33:1,130:1,63:1,82:1},th),w(ac,"NumberFormatException",130),b(191,242,{3:1,34:1,242:1,191:1},vG),o.Fd=function(e){return bhe(this,u(e,191))},o.ue=function(){return this.a},o.Fb=function(e){return L(e,191)&&u(e,191).a==this.a},o.Hb=function(){return this.a},o.Ib=function(){return""+this.a},o.a=0;var ew=w(ac,"Short",191),vun;b(319,1,{3:1,319:1},yD),o.Fb=function(e){var t;return L(e,319)?(t=u(e,319),this.c==t.c&&this.d==t.d&&this.a==t.a&&this.b==t.b):!1},o.Hb=function(){return Ik(S(C(ki,1),Rn,1,5,[Y(this.c),this.a,this.d,this.b]))},o.Ib=function(){return this.a+"."+this.d+"("+(this.b!=null?this.b:"Unknown Source")+(this.c>=0?":"+this.c:"")+")"},o.c=0;var kun=w(ac,"StackTraceElement",319);iQn={3:1,483:1,34:1,2:1};var fn=w(ac,wtn,2);b(111,427,{483:1},Hl,e6,ls),w(ac,"StringBuffer",111),b(104,427,{483:1},R1,fg,mo),w(ac,"StringBuilder",104),b(702,77,SK,bz),w(ac,"StringIndexOutOfBoundsException",702),b(2145,1,{});var pQn;b(48,63,{3:1,103:1,63:1,82:1,48:1},Ie,Fl),w(ac,"UnsupportedOperationException",48),b(247,242,{3:1,34:1,242:1,247:1},Nk,Tz),o.Fd=function(e){return RUn(this,u(e,247))},o.ue=function(){return s0(lGn(this))},o.Fb=function(e){var t;return this===e?!0:L(e,247)?(t=u(e,247),this.e==t.e&&RUn(this,t)==0):!1},o.Hb=function(){var e;return this.b!=0?this.b:this.a<54?(e=vc(this.f),this.b=Se(vi(e,-1)),this.b=33*this.b+Se(vi(db(e,32),-1)),this.b=17*this.b+wi(this.e),this.b):(this.b=17*WRn(this.c)+wi(this.e),this.b)},o.Ib=function(){return lGn(this)},o.a=0,o.b=0,o.d=0,o.e=0,o.f=0;var mQn,Od,yun,jun,Eun,Mun,Tun,Cun,JF=w("java.math","BigDecimal",247);b(92,242,{3:1,34:1,242:1,92:1},gl,_An,Ya,JKn,q1),o.Fd=function(e){return zKn(this,u(e,92))},o.ue=function(){return s0(ZR(this,0))},o.Fb=function(e){return BY(this,e)},o.Hb=function(){return WRn(this)},o.Ib=function(){return ZR(this,0)},o.b=-2,o.c=0,o.d=0,o.e=0;var vQn,sI,kQn,QF,fI,C8,l2=w("java.math","BigInteger",92),yQn,jQn,m3,S8;b(497,2065,Gb),o.$b=function(){Hu(this)},o._b=function(e){return Zc(this,e)},o.uc=function(e){return ORn(this,e,this.i)||ORn(this,e,this.f)},o.vc=function(){return new Ua(this)},o.xc=function(e){return ee(this,e)},o.zc=function(e,t){return Ve(this,e,t)},o.Bc=function(e){return Kp(this,e)},o.gc=function(){return i6(this)},o.g=0,w(le,"AbstractHashMap",497),b(267,Ff,Nu,Ua),o.$b=function(){this.a.$b()},o.Hc=function(e){return pLn(this,e)},o.Kc=function(){return new sd(this.a)},o.Mc=function(e){var t;return pLn(this,e)?(t=u(e,44).ld(),this.a.Bc(t),!0):!1},o.gc=function(){return this.a.gc()},w(le,"AbstractHashMap/EntrySet",267),b(268,1,Pi,sd),o.Nb=function(e){_i(this,e)},o.Pb=function(){return Ab(this)},o.Ob=function(){return this.b},o.Qb=function(){zDn(this)},o.b=!1,o.d=0,w(le,"AbstractHashMap/EntrySetIterator",268),b(426,1,Pi,Gv),o.Nb=function(e){_i(this,e)},o.Ob=function(){return LL(this)},o.Pb=function(){return zW(this)},o.Qb=function(){bo(this)},o.b=0,o.c=-1,w(le,"AbstractList/IteratorImpl",426),b(98,426,Hh,xi),o.Qb=function(){bo(this)},o.Rb=function(e){Bw(this,e)},o.Sb=function(){return this.b>0},o.Tb=function(){return this.b},o.Ub=function(){return oe(this.b>0),this.a.Xb(this.c=--this.b)},o.Vb=function(){return this.b-1},o.Wb=function(e){Rw(this.c!=-1),this.a.hd(this.c,e)},w(le,"AbstractList/ListIteratorImpl",98),b(244,56,K4,Jl),o.bd=function(e,t){zw(e,this.b),this.c.bd(this.a+e,t),++this.b},o.Xb=function(e){return Nn(e,this.b),this.c.Xb(this.a+e)},o.gd=function(e){var t;return Nn(e,this.b),t=this.c.gd(this.a+e),--this.b,t},o.hd=function(e,t){return Nn(e,this.b),this.c.hd(this.a+e,t)},o.gc=function(){return this.b},o.a=0,o.b=0,w(le,"AbstractList/SubList",244),b(266,Ff,Nu,qa),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a._b(e)},o.Kc=function(){var e;return e=this.a.vc().Kc(),new PE(e)},o.Mc=function(e){return this.a._b(e)?(this.a.Bc(e),!0):!1},o.gc=function(){return this.a.gc()},w(le,"AbstractMap/1",266),b(541,1,Pi,PE),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a.Ob()},o.Pb=function(){var e;return e=u(this.a.Pb(),44),e.ld()},o.Qb=function(){this.a.Qb()},w(le,"AbstractMap/1/1",541),b(231,31,p0,ol),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a.uc(e)},o.Kc=function(){var e;return e=this.a.vc().Kc(),new Cw(e)},o.gc=function(){return this.a.gc()},w(le,"AbstractMap/2",231),b(300,1,Pi,Cw),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a.Ob()},o.Pb=function(){var e;return e=u(this.a.Pb(),44),e.md()},o.Qb=function(){this.a.Qb()},w(le,"AbstractMap/2/1",300),b(493,1,{493:1,44:1}),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),mc(this.d,t.ld())&&mc(this.e,t.md())):!1},o.ld=function(){return this.d},o.md=function(){return this.e},o.Hb=function(){return yg(this.d)^yg(this.e)},o.nd=function(e){return dV(this,e)},o.Ib=function(){return this.d+"="+this.e},w(le,"AbstractMap/AbstractEntry",493),b(397,493,{493:1,397:1,44:1},uM),w(le,"AbstractMap/SimpleEntry",397),b(2082,1,OK),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),mc(this.ld(),t.ld())&&mc(this.md(),t.md())):!1},o.Hb=function(){return yg(this.ld())^yg(this.md())},o.Ib=function(){return this.ld()+"="+this.md()},w(le,Ozn,2082),b(2090,2065,atn),o.Xc=function(e){return TL(this.Ee(e))},o.tc=function(e){return ENn(this,e)},o._b=function(e){return bV(this,e)},o.vc=function(){return new ZA(this)},o.Tc=function(){return RIn(this.Ge())},o.Yc=function(e){return TL(this.He(e))},o.xc=function(e){var t;return t=e,Fr(this.Fe(t))},o.$c=function(e){return TL(this.Ie(e))},o.ec=function(){return new u9n(this)},o.Vc=function(){return RIn(this.Je())},o._c=function(e){return TL(this.Ke(e))},w(le,"AbstractNavigableMap",2090),b(629,Ff,Nu,ZA),o.Hc=function(e){return L(e,44)&&ENn(this.b,u(e,44))},o.Kc=function(){return this.b.De()},o.Mc=function(e){var t;return L(e,44)?(t=u(e,44),this.b.Le(t)):!1},o.gc=function(){return this.b.gc()},w(le,"AbstractNavigableMap/EntrySet",629),b(1146,Ff,dtn,u9n),o.Nc=function(){return new rM(this)},o.$b=function(){this.a.$b()},o.Hc=function(e){return bV(this.a,e)},o.Kc=function(){var e;return e=this.a.vc().b.De(),new o9n(e)},o.Mc=function(e){return bV(this.a,e)?(this.a.Bc(e),!0):!1},o.gc=function(){return this.a.gc()},w(le,"AbstractNavigableMap/NavigableKeySet",1146),b(1147,1,Pi,o9n),o.Nb=function(e){_i(this,e)},o.Ob=function(){return LL(this.a.a)},o.Pb=function(){var e;return e=uSn(this.a),e.ld()},o.Qb=function(){aPn(this.a)},w(le,"AbstractNavigableMap/NavigableKeySet/1",1147),b(2103,31,p0),o.Fc=function(e){return Tp(k4(this,e),F4),!0},o.Gc=function(e){return Jn(e),x7(e!=this,"Can't add a queue to itself"),Ki(this,e)},o.$b=function(){for(;w$(this)!=null;);},w(le,"AbstractQueue",2103),b(310,31,{4:1,20:1,31:1,16:1},Mg,aLn),o.Fc=function(e){return mJ(this,e),!0},o.$b=function(){MJ(this)},o.Hc=function(e){return Yxn(new z6(this),e)},o.dc=function(){return n6(this)},o.Kc=function(){return new z6(this)},o.Mc=function(e){return p2e(new z6(this),e)},o.gc=function(){return this.c-this.b&this.a.length-1},o.Nc=function(){return new On(this,272)},o.Qc=function(e){var t;return t=this.c-this.b&this.a.length-1,e.length<t&&(e=HE(new Array(t),e)),lxn(this,e,t),e.length>t&&$t(e,t,null),e},o.b=0,o.c=0,w(le,"ArrayDeque",310),b(458,1,Pi,z6),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a!=this.b},o.Pb=function(){return xC(this)},o.Qb=function(){V$n(this)},o.a=0,o.b=0,o.c=-1,w(le,"ArrayDeque/IteratorImpl",458),b(13,56,Gzn,Z,Gc,_u),o.bd=function(e,t){ab(this,e,t)},o.Fc=function(e){return nn(this,e)},o.cd=function(e,t){return lY(this,e,t)},o.Gc=function(e){return hi(this,e)},o.$b=function(){Sw(this.c,0)},o.Hc=function(e){return qr(this,e,0)!=-1},o.Jc=function(e){nu(this,e)},o.Xb=function(e){return sn(this,e)},o.dd=function(e){return qr(this,e,0)},o.dc=function(){return this.c.length==0},o.Kc=function(){return new M(this)},o.gd=function(e){return Yl(this,e)},o.Mc=function(e){return du(this,e)},o.ce=function(e,t){$An(this,e,t)},o.hd=function(e,t){return Go(this,e,t)},o.gc=function(){return this.c.length},o.jd=function(e){Yt(this,e)},o.Pc=function(){return YM(this.c)},o.Qc=function(e){return Rf(this,e)};var uDe=w(le,"ArrayList",13);b(7,1,Pi,M),o.Nb=function(e){_i(this,e)},o.Ob=function(){return tc(this)},o.Pb=function(){return E(this)},o.Qb=function(){_6(this)},o.a=0,o.b=-1,w(le,"ArrayList/1",7),b(2112,y.Function,{},pE),o.Me=function(e,t){return bt(e,t)},b(151,56,zzn,Fu),o.Hc=function(e){return W$n(this,e)!=-1},o.Jc=function(e){var t,i,r,c;for(Jn(e),i=this.a,r=0,c=i.length;r<c;++r)t=i[r],e.Cd(t)},o.Xb=function(e){return QPn(this,e)},o.hd=function(e,t){var i;return i=(Nn(e,this.a.length),this.a[e]),$t(this.a,e,t),i},o.gc=function(){return this.a.length},o.jd=function(e){QN(this.a,this.a.length,e)},o.Pc=function(){return uBn(this,F(ki,Rn,1,this.a.length,5,1))},o.Qc=function(e){return uBn(this,e)},w(le,"Arrays/ArrayList",151);var sr,Wh,hI;b(953,56,zzn,Cbn),o.Hc=function(e){return!1},o.Xb=function(e){return pX(e)},o.Kc=function(){return Ln(),hm(),sv},o.ed=function(){return Ln(),hm(),sv},o.gc=function(){return 0},w(le,"Collections/EmptyList",953),b(954,1,Hh,Sbn),o.Nb=function(e){_i(this,e)},o.Rb=function(e){throw T(new Ie)},o.Ob=function(){return!1},o.Sb=function(){return!1},o.Pb=function(){throw T(new nc)},o.Tb=function(){return 0},o.Ub=function(){throw T(new nc)},o.Vb=function(){return-1},o.Qb=function(){throw T(new Mu)},o.Wb=function(e){throw T(new Mu)};var sv;w(le,"Collections/EmptyListIterator",954),b(956,2065,R4,Pbn),o._b=function(e){return!1},o.uc=function(e){return!1},o.vc=function(){return Ln(),hI},o.xc=function(e){return null},o.ec=function(){return Ln(),hI},o.gc=function(){return 0},o.Cc=function(){return Ln(),sr},w(le,"Collections/EmptyMap",956),b(955,Ff,r3,Ibn),o.Hc=function(e){return!1},o.Kc=function(){return Ln(),hm(),sv},o.gc=function(){return 0},w(le,"Collections/EmptySet",955),b(608,56,{3:1,20:1,31:1,56:1,16:1,15:1},nL),o.Hc=function(e){return mc(this.a,e)},o.Xb=function(e){return Nn(e,1),this.a},o.gc=function(){return 1},w(le,"Collections/SingletonList",608),b(384,1,Nzn,J3),o.Jc=function(e){qi(this,e)},o.Lc=function(){return new Cn(null,this.Nc())},o.Nc=function(){return new On(this,0)},o.Oc=function(){return new Cn(null,this.Nc())},o.Fc=function(e){return sEn()},o.Gc=function(e){return fEn()},o.$b=function(){hEn()},o.Hc=function(e){return t7(this,e)},o.Ic=function(e){return QEn(this,e)},o.dc=function(){return this.b.dc()},o.Kc=function(){return new W3(this.b.Kc())},o.Mc=function(e){return lEn()},o.gc=function(){return this.b.gc()},o.Pc=function(){return this.b.Pc()},o.Qc=function(e){return YEn(this,e)},o.Ib=function(){return Jr(this.b)},w(le,"Collections/UnmodifiableCollection",384),b(383,1,Pi,W3),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.b.Ob()},o.Pb=function(){return this.b.Pb()},o.Qb=function(){aEn()},w(le,"Collections/UnmodifiableCollectionIterator",383),b(540,384,Xzn,RM),o.Nc=function(){return new On(this,16)},o.bd=function(e,t){throw T(new Ie)},o.cd=function(e,t){throw T(new Ie)},o.Fb=function(e){return ct(this.a,e)},o.Xb=function(e){return this.a.Xb(e)},o.Hb=function(){return mt(this.a)},o.dd=function(e){return this.a.dd(e)},o.dc=function(){return this.a.dc()},o.ed=function(){return new UX(this.a.fd(0))},o.fd=function(e){return new UX(this.a.fd(e))},o.gd=function(e){throw T(new Ie)},o.hd=function(e,t){throw T(new Ie)},o.jd=function(e){throw T(new Ie)},o.kd=function(e,t){return new RM(this.a.kd(e,t))},w(le,"Collections/UnmodifiableList",540),b(705,383,Hh,UX),o.Qb=function(){aEn()},o.Rb=function(e){throw T(new Ie)},o.Sb=function(){return this.a.Sb()},o.Tb=function(){return this.a.Tb()},o.Ub=function(){return this.a.Ub()},o.Vb=function(){return this.a.Vb()},o.Wb=function(e){throw T(new Ie)},w(le,"Collections/UnmodifiableListIterator",705),b(609,1,Gb,eL),o.wc=function(e){o5(this,e)},o.yc=function(e,t,i){return hx(this,e,t,i)},o.$b=function(){throw T(new Ie)},o._b=function(e){return this.c._b(e)},o.uc=function(e){return nMn(this,e)},o.vc=function(){return Sm(this)},o.Fb=function(e){return eMn(this,e)},o.xc=function(e){return this.c.xc(e)},o.Hb=function(){return mt(this.c)},o.dc=function(){return this.c.dc()},o.ec=function(){return gOn(this)},o.zc=function(e,t){throw T(new Ie)},o.Bc=function(e){throw T(new Ie)},o.gc=function(){return this.c.gc()},o.Ib=function(){return Jr(this.c)},o.Cc=function(){return wOn(this)},w(le,"Collections/UnmodifiableMap",609),b(396,384,rK,im),o.Nc=function(){return new On(this,1)},o.Fb=function(e){return ct(this.b,e)},o.Hb=function(){return mt(this.b)},w(le,"Collections/UnmodifiableSet",396),b(957,396,rK,Hjn),o.Hc=function(e){return ZEn(this,e)},o.Ic=function(e){return this.b.Ic(e)},o.Kc=function(){var e;return e=this.b.Kc(),new s9n(e)},o.Pc=function(){var e;return e=this.b.Pc(),VLn(e,e.length),e},o.Qc=function(e){return nAn(this,e)},w(le,"Collections/UnmodifiableMap/UnmodifiableEntrySet",957),b(958,1,Pi,s9n),o.Nb=function(e){_i(this,e)},o.Pb=function(){return new yG(u(this.a.Pb(),44))},o.Ob=function(){return this.a.Ob()},o.Qb=function(){throw T(new Ie)},w(le,"Collections/UnmodifiableMap/UnmodifiableEntrySet/1",958),b(703,1,OK,yG),o.Fb=function(e){return this.a.Fb(e)},o.ld=function(){return this.a.ld()},o.md=function(){return this.a.md()},o.Hb=function(){return this.a.Hb()},o.nd=function(e){throw T(new Ie)},o.Ib=function(){return Jr(this.a)},w(le,"Collections/UnmodifiableMap/UnmodifiableEntrySet/UnmodifiableEntry",703),b(610,540,{20:1,16:1,15:1,59:1},jL),w(le,"Collections/UnmodifiableRandomAccessList",610),b(704,396,Dzn,GX),o.Nc=function(){return new rM(this)},o.Fb=function(e){return ct(this.a,e)},o.Hb=function(){return mt(this.a)},w(le,"Collections/UnmodifiableSortedSet",704),b(858,1,AK,Obn),o.Ne=function(e,t){var i;return i=zLn(u(e,12),u(t,12)),i!=0?i:CUn(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(le,"Comparator/lambda$0$Type",858);var Sun,YF,Pun;b(769,1,AK,$U),o.Ne=function(e,t){return xwe(u(e,34),u(t,34))},o.Fb=function(e){return this===e},o.Oe=function(){return kb(),Pun},w(le,"Comparators/NaturalOrderComparator",769),b(1226,1,AK,Abn),o.Ne=function(e,t){return $we(u(e,34),u(t,34))},o.Fb=function(e){return this===e},o.Oe=function(){return kb(),YF},w(le,"Comparators/ReverseNaturalOrderComparator",1226),b(52,1,AK,Ce),o.Fb=function(e){return this===e},o.Ne=function(e,t){return this.a.Ne(t,e)},o.Oe=function(){return this.a},w(le,"Comparators/ReversedComparator",52),b(175,63,Il,Ko),w(le,"ConcurrentModificationException",175);var EQn,MQn;b(1948,1,Py,Lbn),o.Pe=function(e){IKn(this,e)},o.Ib=function(){return"DoubleSummaryStatistics[count = "+B6(this.a)+", avg = "+(NL(this.a,0)?KJ(this)/id(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+KJ(this)+"]"},o.a=0,o.b=li,o.c=Pt,o.d=0,o.e=0,o.f=0,w(le,"DoubleSummaryStatistics",1948),b(1868,63,Il,Dyn),w(le,"EmptyStackException",1868),b(460,2065,Gb,v5),o.zc=function(e,t){return wV(this,e,t)},o.$b=function(){iOn(this)},o._b=function(e){return mMn(this,e)},o.uc=function(e){var t,i;for(i=new dp(this.a);i.a<i.c.a.length;)if(t=Y6(i),mc(e,this.b[t.g]))return!0;return!1},o.vc=function(){return new h9n(this)},o.xc=function(e){return Mr(this,e)},o.Bc=function(e){return fJ(this,e)},o.gc=function(){return this.a.c},w(le,"EnumMap",460),b(1340,Ff,Nu,h9n),o.$b=function(){iOn(this.a)},o.Hc=function(e){return mLn(this,e)},o.Kc=function(){return new tIn(this.a)},o.Mc=function(e){var t;return mLn(this,e)?(t=u(e,44).ld(),fJ(this.a,t),!0):!1},o.gc=function(){return this.a.a.c},w(le,"EnumMap/EntrySet",1340),b(1341,1,Pi,tIn),o.Nb=function(e){_i(this,e)},o.Pb=function(){return this.b=Y6(this.a),new kMn(this.c,this.b)},o.Ob=function(){return PX(this.a)},o.Qb=function(){Rw(!!this.b),fJ(this.c,this.b),this.b=null},w(le,"EnumMap/EntrySetIterator",1341),b(1342,2082,OK,kMn),o.ld=function(){return this.a},o.md=function(){return this.b.b[this.a.g]},o.nd=function(e){return YV(this.b.b,this.a.g,e)},w(le,"EnumMap/MapEntry",1342),b(181,Ff,{20:1,31:1,16:1,181:1,21:1});var TQn=w(le,"EnumSet",181);b(162,181,{20:1,31:1,16:1,181:1,162:1,21:1},_o),o.Fc=function(e){return _s(this,u(e,22))},o.Hc=function(e){return JN(this,e)},o.Kc=function(){return new dp(this)},o.Mc=function(e){return lIn(this,e)},o.gc=function(){return this.c},o.c=0,w(le,"EnumSet/EnumSetImpl",162),b(356,1,Pi,dp),o.Nb=function(e){_i(this,e)},o.Pb=function(){return Y6(this)},o.Ob=function(){return PX(this)},o.Qb=function(){Rw(this.b!=-1),$t(this.c.b,this.b,null),--this.c.c,this.b=-1},o.a=-1,o.b=-1,w(le,"EnumSet/EnumSetImpl/IteratorImpl",356),b(45,497,n2,de,ap,KTn),o.Be=function(e,t){return x(e)===x(t)||e!=null&&ct(e,t)},o.Ce=function(e){var t;return e==null?0:(t=mt(e),t|0)},w(le,"HashMap",45),b(49,Ff,ktn,ni,GE,$6),o.Fc=function(e){return fi(this,e)},o.$b=function(){this.a.$b()},o.Hc=function(e){return sf(this,e)},o.dc=function(){return this.a.gc()==0},o.Kc=function(){return this.a.ec().Kc()},o.Mc=function(e){return NX(this,e)},o.gc=function(){return this.a.gc()};var oDe=w(le,"HashSet",49);b(1897,1,yy,Nbn),o.Dd=function(e){Bxn(this,e)},o.Ib=function(){return"IntSummaryStatistics[count = "+B6(this.a)+", avg = "+(NL(this.a,0)?id(this.d)/id(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+B6(this.d)+"]"},o.a=0,o.b=Wi,o.c=et,o.d=0,w(le,"IntSummaryStatistics",1897),b(1062,1,qh,tCn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new XJ(this)},o.c=0,w(le,"InternalHashCodeMap",1062),b(726,1,Pi,XJ),o.Nb=function(e){_i(this,e)},o.Pb=function(){return this.d=this.a[this.c++],this.d},o.Ob=function(){var e;return this.c<this.a.length?!0:(e=this.b.next(),e.done?!1:(this.a=e.value[1],this.c=0,!0))},o.Qb=function(){Bnn(this.e,this.d.ld()),this.c!=0&&--this.c},o.c=0,o.d=null,w(le,"InternalHashCodeMap/1",726);var CQn;b(1060,1,qh,iCn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new TJ(this)},o.c=0,o.d=0,w(le,"InternalStringMap",1060),b(725,1,Pi,TJ),o.Nb=function(e){_i(this,e)},o.Pb=function(){return this.c=this.a,this.a=this.b.next(),new fPn(this.d,this.c,this.d.d)},o.Ob=function(){return!this.a.done},o.Qb=function(){Uxn(this.d,this.c.value[0])},w(le,"InternalStringMap/1",725),b(1061,2082,OK,fPn),o.ld=function(){return this.b.value[0]},o.md=function(){return this.a.d!=this.c?h6(this.a,this.b.value[0]):this.b.value[1]},o.nd=function(e){return Nb(this.a,this.b.value[0],e)},o.c=0,w(le,"InternalStringMap/2",1061),b(215,45,n2,Ql,zJ),o.$b=function(){$Sn(this)},o._b=function(e){return vMn(this,e)},o.uc=function(e){var t;for(t=this.d.a;t!=this.d;){if(mc(t.e,e))return!0;t=t.a}return!1},o.vc=function(){return new SG(this)},o.xc=function(e){return Df(this,e)},o.zc=function(e,t){return s1(this,e,t)},o.Bc=function(e){return qDn(this,e)},o.gc=function(){return i6(this.e)},o.c=!1,w(le,"LinkedHashMap",215),b(400,397,{493:1,397:1,400:1,44:1},rSn,HV),w(le,"LinkedHashMap/ChainEntry",400),b(715,Ff,Nu,SG),o.$b=function(){$Sn(this.a)},o.Hc=function(e){return vLn(this,e)},o.Kc=function(){return new DW(this)},o.Mc=function(e){var t;return vLn(this,e)?(t=u(e,44).ld(),qDn(this.a,t),!0):!1},o.gc=function(){return i6(this.a.e)},w(le,"LinkedHashMap/EntrySet",715),b(716,1,Pi,DW),o.Nb=function(e){_i(this,e)},o.Pb=function(){return VDn(this)},o.Ob=function(){return this.c!=this.d.a.d},o.Qb=function(){Rw(!!this.a),RN(this.d.a.e.g,this.b),nW(this.a),Kp(this.d.a.e,this.a.d),this.b=this.d.a.e.g,this.a=null},o.b=0,w(le,"LinkedHashMap/EntrySet/EntryIterator",716),b(174,49,ktn,rh,MN,oW);var sDe=w(le,"LinkedHashSet",174);b(67,2062,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1},Mt,$N),o.Fc=function(e){return Re(this,e)},o.$b=function(){vo(this)},o.fd=function(e){return ge(this,e)},o.gc=function(){return this.b},o.b=0;var fDe=w(le,"LinkedList",67);b(981,1,Hh,hPn),o.Nb=function(e){_i(this,e)},o.Rb=function(e){_7(this,e)},o.Ob=function(){return Q9(this)},o.Sb=function(){return this.b.b!=this.d.a},o.Pb=function(){return be(this)},o.Tb=function(){return this.a},o.Ub=function(){return bLn(this)},o.Vb=function(){return this.a-1},o.Qb=function(){p$(this)},o.Wb=function(e){Rw(!!this.c),this.c.c=e},o.a=0,o.c=null,w(le,"LinkedList/ListIteratorImpl",981),b(617,1,{},AA),w(le,"LinkedList/Node",617),b(2057,1,{});var Iun,SQn;w(le,"Locale",2057),b(873,2057,{},Dbn),o.Ib=function(){return""},w(le,"Locale/1",873),b(874,2057,{},$bn),o.Ib=function(){return"unknown"},w(le,"Locale/4",874),b(112,63,{3:1,103:1,63:1,82:1,112:1},nc,POn),w(le,"NoSuchElementException",112),b(474,1,{474:1},wL),o.Fb=function(e){var t;return e===this?!0:L(e,474)?(t=u(e,474),mc(this.a,t.a)):!1},o.Hb=function(){return yg(this.a)},o.Ib=function(){return this.a!=null?Pzn+I6(this.a)+")":"Optional.empty()"};var Oun;w(le,"Optional",474),b(414,1,{414:1},HTn,SN),o.Fb=function(e){var t;return e===this?!0:L(e,414)?(t=u(e,414),this.a==t.a&&bt(this.b,t.b)==0):!1},o.Hb=function(){return this.a?wi(this.b):0},o.Ib=function(){return this.a?"OptionalDouble.of("+(""+this.b)+")":"OptionalDouble.empty()"},o.a=!1,o.b=0;var ZF;w(le,"OptionalDouble",414),b(524,1,{524:1},qTn,cSn),o.Fb=function(e){var t;return e===this?!0:L(e,524)?(t=u(e,524),this.a==t.a&&jc(this.b,t.b)==0):!1},o.Hb=function(){return this.a?this.b:0},o.Ib=function(){return this.a?"OptionalInt.of("+(""+this.b)+")":"OptionalInt.empty()"},o.a=!1,o.b=0;var PQn;w(le,"OptionalInt",524),b(510,2103,p0,aT),o.Gc=function(e){return jZ(this,e)},o.$b=function(){Sw(this.b.c,0)},o.Hc=function(e){return(e==null?-1:qr(this.b,e,0))!=-1},o.Kc=function(){return new f9n(this)},o.Mc=function(e){return hxn(this,e)},o.gc=function(){return this.b.c.length},o.Nc=function(){return new On(this,256)},o.Pc=function(){return YM(this.b.c)},o.Qc=function(e){return Rf(this.b,e)},w(le,"PriorityQueue",510),b(1296,1,Pi,f9n),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a<this.c.b.c.length},o.Pb=function(){return oe(this.a<this.c.b.c.length),this.b=this.a++,sn(this.c.b,this.b)},o.Qb=function(){Rw(this.b!=-1),T$(this.c,this.a=this.b),this.b=-1},o.a=0,o.b=-1,w(le,"PriorityQueue/1",1296),b(234,1,{234:1},dx,qT),o.a=0,o.b=0;var Aun,Lun,hDe=0;w(le,"Random",234),b(25,1,Io,On,wb,COn),o.Ad=function(e){return(this.a&e)!=0},o.yd=function(){return this.a},o.zd=function(){return mW(this),this.c},o.Nb=function(e){mW(this),this.d.Nb(e)},o.Bd=function(e){return k$n(this,e)},o.a=0,o.c=0,w(le,"Spliterators/IteratorSpliterator",25),b(494,25,Io,rM),w(le,"SortedSet/1",494),b(611,1,Py,MG),o.Pe=function(e){this.a.Cd(e)},w(le,"Spliterator/OfDouble/0methodref$accept$Type",611),b(612,1,Py,EG),o.Pe=function(e){this.a.Cd(e)},w(le,"Spliterator/OfDouble/1methodref$accept$Type",612),b(613,1,yy,TG),o.Dd=function(e){this.a.Cd(Y(e))},w(le,"Spliterator/OfInt/2methodref$accept$Type",613),b(614,1,yy,CG),o.Dd=function(e){this.a.Cd(Y(e))},w(le,"Spliterator/OfInt/3methodref$accept$Type",614),b(625,1,Io),o.Nb=function(e){Mz(this,e)},o.Ad=function(e){return(this.d&e)!=0},o.yd=function(){return this.d},o.zd=function(){return this.e},o.d=0,o.e=0,w(le,"Spliterators/BaseSpliterator",625),b(736,625,Io),o.Qe=function(e){lg(this,e)},o.Nb=function(e){L(e,189)?lg(this,u(e,189)):lg(this,new EG(e))},o.Bd=function(e){return L(e,189)?this.Re(u(e,189)):this.Re(new MG(e))},w(le,"Spliterators/AbstractDoubleSpliterator",736),b(735,625,Io),o.Qe=function(e){lg(this,e)},o.Nb=function(e){L(e,202)?lg(this,u(e,202)):lg(this,new CG(e))},o.Bd=function(e){return L(e,202)?this.Re(u(e,202)):this.Re(new TG(e))},w(le,"Spliterators/AbstractIntSpliterator",735),b(499,625,Io),w(le,"Spliterators/AbstractSpliterator",499),b(706,1,Io),o.Nb=function(e){Mz(this,e)},o.Ad=function(e){return(this.b&e)!=0},o.yd=function(){return this.b},o.zd=function(){return this.d-this.c},o.b=0,o.c=0,o.d=0,w(le,"Spliterators/BaseArraySpliterator",706),b(960,706,Io,zPn),o.Se=function(e,t){phe(this,u(e,41),t)},o.Nb=function(e){gD(this,e)},o.Bd=function(e){return WT(this,e)},w(le,"Spliterators/ArraySpliterator",960),b(707,706,Io,uPn),o.Se=function(e,t){mhe(this,u(e,189),t)},o.Qe=function(e){gD(this,e)},o.Nb=function(e){L(e,189)?gD(this,u(e,189)):gD(this,new EG(e))},o.Re=function(e){return WT(this,e)},o.Bd=function(e){return L(e,189)?WT(this,u(e,189)):WT(this,new MG(e))},w(le,"Spliterators/DoubleArraySpliterator",707),b(2066,1,Io),o.Nb=function(e){Mz(this,e)},o.Ad=function(e){return(16448&e)!=0},o.yd=function(){return 16448},o.zd=function(){return 0};var IQn;w(le,"Spliterators/EmptySpliterator",2066),b(959,2066,Io,xbn),o.Qe=function(e){uG(e)},o.Nb=function(e){L(e,202)?uG(u(e,202)):uG(new CG(e))},o.Re=function(e){return Kz(e)},o.Bd=function(e){return L(e,202)?Kz(u(e,202)):Kz(new TG(e))},w(le,"Spliterators/EmptySpliterator/OfInt",959),b(588,56,Vzn,RE),o.bd=function(e,t){jm(e,this.a.c.length+1),ab(this.a,e,t)},o.Fc=function(e){return nn(this.a,e)},o.cd=function(e,t){return jm(e,this.a.c.length+1),lY(this.a,e,t)},o.Gc=function(e){return hi(this.a,e)},o.$b=function(){Sw(this.a.c,0)},o.Hc=function(e){return qr(this.a,e,0)!=-1},o.Ic=function(e){return jk(this.a,e)},o.Jc=function(e){nu(this.a,e)},o.Xb=function(e){return jm(e,this.a.c.length),sn(this.a,e)},o.dd=function(e){return qr(this.a,e,0)},o.dc=function(){return this.a.c.length==0},o.Kc=function(){return new M(this.a)},o.gd=function(e){return jm(e,this.a.c.length),Yl(this.a,e)},o.ce=function(e,t){$An(this.a,e,t)},o.hd=function(e,t){return jm(e,this.a.c.length),Go(this.a,e,t)},o.gc=function(){return this.a.c.length},o.jd=function(e){Yt(this.a,e)},o.kd=function(e,t){return new Jl(this.a,e,t)},o.Pc=function(){return YM(this.a.c)},o.Qc=function(e){return Rf(this.a,e)},o.Ib=function(){return ua(this.a)},w(le,"Vector",588),b(824,588,Vzn,QG),w(le,"Stack",824),b(213,1,{213:1},fd),o.Ib=function(){return dLn(this)},w(le,"StringJoiner",213),b(553,2090,{3:1,85:1,139:1,133:1},iMn,iD),o.$b=function(){Djn(this)},o.De=function(){return new kLn(this)},o.vc=function(){return new YCn(this)},o.Ee=function(e){return d4(this,e,!0)},o.Fe=function(e){return TRn(this,e)},o.Ge=function(){return ZJ(this)},o.He=function(e){return Bk(this,e,!0)},o.Ie=function(e){return d4(this,e,!1)},o.Je=function(){return NDn(this)},o.Ke=function(e){return Bk(this,e,!1)},o.Zc=function(e,t){return xAn(this,e,t)},o.zc=function(e,t){return wRn(this,e,t)},o.Bc=function(e){return cAn(this,e)},o.Le=function(e){return qJ(this,e)},o.gc=function(){return this.c},o.ad=function(e,t){return RAn(this,e,t)},o.c=0,w(le,"TreeMap",553),b(554,1,Pi,kLn,I$),o.Nb=function(e){_i(this,e)},o.Pb=function(){return uSn(this)},o.Ob=function(){return LL(this.a)},o.Qb=function(){aPn(this)},w(le,"TreeMap/EntryIterator",554),b(1142,629,Nu,YCn),o.$b=function(){Djn(this.a)},w(le,"TreeMap/EntrySet",1142),b(447,397,{493:1,397:1,44:1,447:1},r$),o.b=!1;var lDe=w(le,"TreeMap/Node",447);b(630,1,{},LA),o.Ib=function(){return"State: mv="+this.c+" value="+this.d+" done="+this.a+" found="+this.b},o.a=!1,o.b=!1,o.c=!1,w(le,"TreeMap/State",630),b(631,2090,atn,rR),o.De=function(){return new I$(this.c,this.f,this.b,this.a,this.e,this.d)},o.vc=function(){return new ZA(this)},o.Ee=function(e){return VM(this,d4(this.c,e,!0))},o.Fe=function(e){return VM(this,TRn(this.c,e))},o.Ge=function(){var e;return this.f.Te()?this.a?e=d4(this.c,this.b,!0):e=d4(this.c,this.b,!1):e=ZJ(this.c),e&&mT(this,e.d)?e:null},o.He=function(e){return VM(this,Bk(this.c,e,!0))},o.Ie=function(e){return VM(this,d4(this.c,e,!1))},o.Je=function(){var e;return this.f.Ue()?this.d?e=Bk(this.c,this.e,!0):e=Bk(this.c,this.e,!1):e=NDn(this.c),e&&mT(this,e.d)?e:null},o.Ke=function(e){return VM(this,Bk(this.c,e,!1))},o.Zc=function(e,t){if(this.f.Ue()&&this.c.a.Ne(e,this.e)>0)throw T(new Gn(Etn+e+" greater than "+this.e));return this.f.Te()?rAn(this.c,this.b,this.a,e,t):xAn(this.c,e,t)},o.zc=function(e,t){if(!qx(this.c,this.f,e,this.b,this.a,this.e,this.d))throw T(new Gn(e+" outside the range "+this.b+" to "+this.e));return wRn(this.c,e,t)},o.Bc=function(e){var t;return t=e,qx(this.c,this.f,t,this.b,this.a,this.e,this.d)?cAn(this.c,t):null},o.Le=function(e){return mT(this,e.ld())&&qJ(this.c,e)},o.gc=function(){var e,t,i;if(this.f.Te()?this.a?t=d4(this.c,this.b,!0):t=d4(this.c,this.b,!1):t=ZJ(this.c),!(t&&mT(this,t.d)&&t))return 0;for(e=0,i=new I$(this.c,this.f,this.b,this.a,this.e,this.d);LL(i.a);i.b=u(zW(i.a),44))++e;return e},o.ad=function(e,t){if(this.f.Te()&&this.c.a.Ne(e,this.b)<0)throw T(new Gn(Etn+e+Wzn+this.b));return this.f.Ue()?rAn(this.c,e,t,this.e,this.d):RAn(this.c,e,t)},o.a=!1,o.d=!1,w(le,"TreeMap/SubMap",631),b(303,22,DK,cM),o.Te=function(){return!1},o.Ue=function(){return!1};var n_,e_,t_,i_,lI=we(le,"TreeMap/SubMapType",303,ke,Upe,nde);b(1143,303,DK,hCn),o.Ue=function(){return!0},we(le,"TreeMap/SubMapType/1",1143,lI,null,null),b(1144,303,DK,vCn),o.Te=function(){return!0},o.Ue=function(){return!0},we(le,"TreeMap/SubMapType/2",1144,lI,null,null),b(1145,303,DK,fCn),o.Te=function(){return!0},we(le,"TreeMap/SubMapType/3",1145,lI,null,null);var OQn;b(157,Ff,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},qG,Ul,Q3),o.Nc=function(){return new rM(this)},o.Fc=function(e){return B7(this,e)},o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a._b(e)},o.Kc=function(){return this.a.ec().Kc()},o.Mc=function(e){return EN(this,e)},o.gc=function(){return this.a.gc()};var aDe=w(le,"TreeSet",157);b(1082,1,{},l9n),o.Ve=function(e,t){return pae(this.a,e,t)},w($K,"BinaryOperator/lambda$0$Type",1082),b(1083,1,{},a9n),o.Ve=function(e,t){return mae(this.a,e,t)},w($K,"BinaryOperator/lambda$1$Type",1083),b(952,1,{},Rbn),o.Kb=function(e){return e},w($K,"Function/lambda$0$Type",952),b(395,1,Le,Y3),o.Mb=function(e){return!this.a.Mb(e)},w($K,"Predicate/lambda$2$Type",395),b(581,1,{581:1});var AQn=w(J5,"Handler",581);b(2107,1,vy),o.xe=function(){return"DUMMY"},o.Ib=function(){return this.xe()};var Nun;w(J5,"Level",2107),b(1706,2107,vy,Kbn),o.xe=function(){return"INFO"},w(J5,"Level/LevelInfo",1706),b(1843,1,{},Kyn);var r_;w(J5,"LogManager",1843),b(1896,1,vy,lPn),o.b=null,w(J5,"LogRecord",1896),b(525,1,{525:1},VD),o.e=!1;var LQn=!1,NQn=!1,Uf=!1,DQn=!1,$Qn=!1;w(J5,"Logger",525),b(835,581,{581:1},xU),w(J5,"SimpleConsoleLogHandler",835),b(108,22,{3:1,34:1,22:1,108:1},$L);var Dun,Yr,S0,xr=we(ai,"Collector/Characteristics",108,ke,A2e,ede),xQn;b(758,1,{},TW),w(ai,"CollectorImpl",758),b(1074,1,{},Bbn),o.Ve=function(e,t){return l5e(u(e,213),u(t,213))},w(ai,"Collectors/10methodref$merge$Type",1074),b(1075,1,{},Fbn),o.Kb=function(e){return dLn(u(e,213))},w(ai,"Collectors/11methodref$toString$Type",1075),b(1076,1,{},d9n),o.Kb=function(e){return _n(),!!vX(e)},w(ai,"Collectors/12methodref$test$Type",1076),b(144,1,{},yu),o.Yd=function(e,t){u(e,16).Fc(t)},w(ai,"Collectors/20methodref$add$Type",144),b(146,1,{},ju),o.Xe=function(){return new Z},w(ai,"Collectors/21methodref$ctor$Type",146),b(359,1,{},Y2),o.Xe=function(){return new ni},w(ai,"Collectors/23methodref$ctor$Type",359),b(360,1,{},Z2),o.Yd=function(e,t){fi(u(e,49),t)},w(ai,"Collectors/24methodref$add$Type",360),b(1069,1,{},_bn),o.Ve=function(e,t){return rMn(u(e,15),u(t,16))},w(ai,"Collectors/4methodref$addAll$Type",1069),b(1073,1,{},Hbn),o.Yd=function(e,t){pl(u(e,213),u(t,483))},w(ai,"Collectors/9methodref$add$Type",1073),b(1072,1,{},PPn),o.Xe=function(){return new fd(this.a,this.b,this.c)},w(ai,"Collectors/lambda$15$Type",1072),b(1077,1,{},qbn),o.Xe=function(){var e;return e=new Ql,s1(e,(_n(),!1),new Z),s1(e,!0,new Z),e},w(ai,"Collectors/lambda$22$Type",1077),b(1078,1,{},b9n),o.Xe=function(){return S(C(ki,1),Rn,1,5,[this.a])},w(ai,"Collectors/lambda$25$Type",1078),b(1079,1,{},w9n),o.Yd=function(e,t){Rwe(this.a,cd(e))},w(ai,"Collectors/lambda$26$Type",1079),b(1080,1,{},g9n),o.Ve=function(e,t){return l0e(this.a,cd(e),cd(t))},w(ai,"Collectors/lambda$27$Type",1080),b(1081,1,{},Ubn),o.Kb=function(e){return cd(e)[0]},w(ai,"Collectors/lambda$28$Type",1081),b(728,1,{},RU),o.Ve=function(e,t){return cW(e,t)},w(ai,"Collectors/lambda$4$Type",728),b(145,1,{},Eu),o.Ve=function(e,t){return zhe(u(e,16),u(t,16))},w(ai,"Collectors/lambda$42$Type",145),b(361,1,{},np),o.Ve=function(e,t){return Xhe(u(e,49),u(t,49))},w(ai,"Collectors/lambda$50$Type",361),b(362,1,{},ep),o.Kb=function(e){return u(e,49)},w(ai,"Collectors/lambda$51$Type",362),b(1068,1,{},p9n),o.Yd=function(e,t){p6e(this.a,u(e,85),t)},w(ai,"Collectors/lambda$7$Type",1068),b(1070,1,{},Gbn),o.Ve=function(e,t){return Xve(u(e,85),u(t,85),new _bn)},w(ai,"Collectors/lambda$8$Type",1070),b(1071,1,{},m9n),o.Kb=function(e){return U5e(this.a,u(e,85))},w(ai,"Collectors/lambda$9$Type",1071),b(550,1,{}),o.$e=function(){G6(this)},o.d=!1,w(ai,"TerminatableStream",550),b(827,550,Mtn,rV),o.$e=function(){G6(this)},w(ai,"DoubleStreamImpl",827),b(1847,736,Io,IPn),o.Re=function(e){return X9e(this,u(e,189))},o.a=null,w(ai,"DoubleStreamImpl/2",1847),b(1848,1,Py,v9n),o.Pe=function(e){Fle(this.a,e)},w(ai,"DoubleStreamImpl/2/lambda$0$Type",1848),b(1845,1,Py,k9n),o.Pe=function(e){Ble(this.a,e)},w(ai,"DoubleStreamImpl/lambda$0$Type",1845),b(1846,1,Py,y9n),o.Pe=function(e){IKn(this.a,e)},w(ai,"DoubleStreamImpl/lambda$2$Type",1846),b(1397,735,Io,mNn),o.Re=function(e){return Npe(this,u(e,202))},o.a=0,o.b=0,o.c=0,w(ai,"IntStream/5",1397),b(806,550,Mtn,cV),o.$e=function(){G6(this)},o._e=function(){return V1(this),this.a},w(ai,"IntStreamImpl",806),b(807,550,Mtn,Oz),o.$e=function(){G6(this)},o._e=function(){return V1(this),FX(),IQn},w(ai,"IntStreamImpl/Empty",807),b(1687,1,yy,j9n),o.Dd=function(e){Bxn(this.a,e)},w(ai,"IntStreamImpl/lambda$4$Type",1687);var dDe=Dt(ai,"Stream");b(26,550,{533:1,687:1,848:1},Cn),o.$e=function(){G6(this)};var v3;w(ai,"StreamImpl",26),b(1102,499,Io,iPn),o.Bd=function(e){for(;xme(this);){if(this.a.Bd(e))return!0;G6(this.b),this.b=null,this.a=null}return!1},w(ai,"StreamImpl/1",1102),b(1103,1,re,E9n),o.Cd=function(e){fwe(this.a,u(e,848))},w(ai,"StreamImpl/1/lambda$0$Type",1103),b(1104,1,Le,M9n),o.Mb=function(e){return fi(this.a,e)},w(ai,"StreamImpl/1methodref$add$Type",1104),b(1105,499,Io,ROn),o.Bd=function(e){var t;return this.a||(t=new Z,this.b.a.Nb(new T9n(t)),Ln(),Yt(t,this.c),this.a=new On(t,16)),k$n(this.a,e)},o.a=null,w(ai,"StreamImpl/5",1105),b(1106,1,re,T9n),o.Cd=function(e){nn(this.a,e)},w(ai,"StreamImpl/5/2methodref$add$Type",1106),b(737,499,Io,nQ),o.Bd=function(e){for(this.b=!1;!this.b&&this.c.Bd(new yMn(this,e)););return this.b},o.b=!1,w(ai,"StreamImpl/FilterSpliterator",737),b(1096,1,re,yMn),o.Cd=function(e){c0e(this.a,this.b,e)},w(ai,"StreamImpl/FilterSpliterator/lambda$0$Type",1096),b(1091,736,Io,INn),o.Re=function(e){return Bae(this,u(e,189))},w(ai,"StreamImpl/MapToDoubleSpliterator",1091),b(1095,1,re,jMn),o.Cd=function(e){fle(this.a,this.b,e)},w(ai,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095),b(1090,735,Io,ONn),o.Re=function(e){return Fae(this,u(e,202))},w(ai,"StreamImpl/MapToIntSpliterator",1090),b(1094,1,re,EMn),o.Cd=function(e){hle(this.a,this.b,e)},w(ai,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094),b(734,499,Io,BJ),o.Bd=function(e){return nPn(this,e)},w(ai,"StreamImpl/MapToObjSpliterator",734),b(1093,1,re,MMn),o.Cd=function(e){lle(this.a,this.b,e)},w(ai,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093),b(1092,499,Io,cxn),o.Bd=function(e){for(;NL(this.b,0);){if(!this.a.Bd(new zbn))return!1;this.b=bs(this.b,1)}return this.a.Bd(e)},o.b=0,w(ai,"StreamImpl/SkipSpliterator",1092),b(1097,1,re,zbn),o.Cd=function(e){},w(ai,"StreamImpl/SkipSpliterator/lambda$0$Type",1097),b(626,1,re,NA),o.Cd=function(e){e9n(this,e)},w(ai,"StreamImpl/ValueConsumer",626),b(1098,1,re,Xbn),o.Cd=function(e){Va()},w(ai,"StreamImpl/lambda$0$Type",1098),b(1099,1,re,Vbn),o.Cd=function(e){Va()},w(ai,"StreamImpl/lambda$1$Type",1099),b(1100,1,{},C9n),o.Ve=function(e,t){return mde(this.a,e,t)},w(ai,"StreamImpl/lambda$4$Type",1100),b(1101,1,re,TMn),o.Cd=function(e){Mae(this.b,this.a,e)},w(ai,"StreamImpl/lambda$5$Type",1101),b(1107,1,re,S9n),o.Cd=function(e){$ve(this.a,u(e,380))},w(ai,"TerminatableStream/lambda$0$Type",1107),b(2142,1,{}),b(2014,1,{},Wbn),w("javaemul.internal","ConsoleLogger",2014);var bDe=0;b(2134,1,{}),b(1830,1,re,Jbn),o.Cd=function(e){u(e,317)},w(_4,"BowyerWatsonTriangulation/lambda$0$Type",1830),b(1831,1,re,P9n),o.Cd=function(e){Ki(this.a,u(e,317).e)},w(_4,"BowyerWatsonTriangulation/lambda$1$Type",1831),b(1832,1,re,Qbn),o.Cd=function(e){u(e,177)},w(_4,"BowyerWatsonTriangulation/lambda$2$Type",1832),b(1827,1,De,I9n),o.Ne=function(e,t){return m3e(this.a,u(e,177),u(t,177))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(_4,"NaiveMinST/lambda$0$Type",1827),b(506,1,{},z9),w(_4,"NodeMicroLayout",506),b(177,1,{177:1},bp),o.Fb=function(e){var t;return L(e,177)?(t=u(e,177),mc(this.a,t.a)&&mc(this.b,t.b)||mc(this.a,t.b)&&mc(this.b,t.a)):!1},o.Hb=function(){return yg(this.a)+yg(this.b)};var wDe=w(_4,"TEdge",177);b(317,1,{317:1},Ken),o.Fb=function(e){var t;return L(e,317)?(t=u(e,317),tC(this,t.a)&&tC(this,t.b)&&tC(this,t.c)):!1},o.Hb=function(){return yg(this.a)+yg(this.b)+yg(this.c)},w(_4,"TTriangle",317),b(225,1,{225:1},LM),w(_4,"Tree",225),b(1218,1,{},jAn),w(Yzn,"Scanline",1218);var RQn=Dt(Yzn,Zzn);b(1758,1,{},p$n),w(zh,"CGraph",1758),b(316,1,{316:1},TAn),o.b=0,o.c=0,o.d=0,o.g=0,o.i=0,o.k=li,w(zh,"CGroup",316),b(830,1,{},zG),w(zh,"CGroup/CGroupBuilder",830),b(60,1,{60:1},RSn),o.Ib=function(){var e;return this.j?Ae(this.j.Kb(this)):(ll(aI),aI.o+"@"+(e=fb(this)>>>0,e.toString(16)))},o.f=0,o.i=li;var aI=w(zh,"CNode",60);b(829,1,{},XG),w(zh,"CNode/CNodeBuilder",829);var KQn;b(1590,1,{},Ybn),o.ff=function(e,t){return 0},o.gf=function(e,t){return 0},w(zh,eXn,1590),b(1853,1,{},Zbn),o.cf=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(a=Pt,r=new M(e.a.b);r.a<r.c.c.length;)t=u(E(r),60),a=y.Math.min(a,t.a.j.d.c+t.b.a);for(m=new Mt,f=new M(e.a.a);f.a<f.c.c.length;)s=u(E(f),316),s.k=a,s.g==0&&xt(m,s,m.c.b,m.c);for(;m.b!=0;){for(s=u(m.b==0?null:(oe(m.b!=0),Xo(m,m.a.a)),316),c=s.j.d.c,p=s.a.a.ec().Kc();p.Ob();)d=u(p.Pb(),60),j=s.k+d.b.a,!J6e(e,s,e.d)||d.d.c<j?d.i=j:d.i=d.d.c;for(c-=s.j.i,s.b+=c,e.d==(ci(),Xr)||e.d==Wf?s.c+=c:s.c-=c,g=s.a.a.ec().Kc();g.Ob();)for(d=u(g.Pb(),60),l=d.c.Kc();l.Ob();)h=u(l.Pb(),60),hl(e.d)?k=e.g.ff(d,h):k=e.g.gf(d,h),h.a.k=y.Math.max(h.a.k,d.i+d.d.b+k-h.b.a),GOn(e,h,e.d)&&(h.a.k=y.Math.max(h.a.k,h.d.c-h.b.a)),--h.a.g,h.a.g==0&&Re(m,h.a)}for(i=new M(e.a.b);i.a<i.c.c.length;)t=u(E(i),60),t.d.c=t.i},w(zh,"LongestPathCompaction",1853),b(1756,1,{},uHn),o.e=!1;var BQn,FQn,_Qn,c_=w(zh,rXn,1756);b(1757,1,re,O9n),o.Cd=function(e){Qve(this.a,u(e,42))},w(zh,cXn,1757),b(1854,1,{},nwn),o.df=function(e){var t,i,r,c,s,f,h;for(i=new M(e.a.b);i.a<i.c.c.length;)t=u(E(i),60),t.c.$b();for(c=new M(e.a.b);c.a<c.c.c.length;)for(r=u(E(c),60),f=new M(e.a.b);f.a<f.c.c.length;)s=u(E(f),60),r!=s&&(r.a&&r.a==s.a||(hl(e.d)?h=e.g.gf(r,s):h=e.g.ff(r,s),(s.d.c>r.d.c||r.d.c==s.d.c&&r.d.b<s.d.b)&&x8e(s.d.d+s.d.a+h,r.d.d)&&ZY(s.d.d,r.d.d+r.d.a+h)&&r.c.Fc(s)))},w(zh,"QuadraticConstraintCalculation",1854),b(529,1,{529:1},rL),o.a=!1,o.b=!1,o.c=!1,o.d=!1,w(zh,uXn,529),b(817,1,{},hW),o.df=function(e){this.c=e,Yk(this,new iwn)},w(zh,oXn,817),b(1784,1,{693:1},XOn),o.bf=function(e){Qje(this,u(e,472))},w(zh,sXn,1784),b(1785,1,De,ewn),o.Ne=function(e,t){return sge(u(e,60),u(t,60))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(zh,fXn,1785),b(472,1,{472:1},Fz),o.a=!1,w(zh,hXn,472),b(1786,1,De,twn),o.Ne=function(e,t){return ske(u(e,472),u(t,472))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(zh,lXn,1786),b(1787,1,ph,iwn),o.Lb=function(e){return u(e,60),!0},o.Fb=function(e){return this===e},o.Mb=function(e){return u(e,60),!0},w(zh,"ScanlineConstraintCalculator/lambda$1$Type",1787),b(436,22,{3:1,34:1,22:1,436:1},_z);var $un,u_,xun=we(BK,"HighLevelSortingCriterion",436,ke,Rge,tde),HQn;b(435,22,{3:1,34:1,22:1,435:1},Hz);var Run,o_,Kun=we(BK,"LowLevelSortingCriterion",435,ke,Kge,ide),qQn,a2=Dt(oc,"ILayoutMetaDataProvider");b(864,1,ms,O5n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ptn),FK),"Polyomino Traversal Strategy"),"Traversal strategy for trying different candidate positions for polyominoes."),Gun),(l1(),It)),non),yn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Itn),FK),"Polyomino Secondary Sorting Criterion"),"Possible secondary sorting criteria for the processing order of polyominoes. They are used when polyominoes are equal according to the primary sorting criterion HighLevelSortingCriterion."),qun),It),Kun),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Otn),FK),"Polyomino Primary Sorting Criterion"),"Possible primary sorting criteria for the processing order of polyominoes."),_un),It),xun),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Atn),FK),"Fill Polyominoes"),"Use the Profile Fill algorithm to fill polyominoes to prevent small polyominoes from being placed inside of big polyominoes with large holes. Might increase packing area."),(_n(),!0)),yi),zt),yn(xn))))};var Bun,Fun,_un,Hun,qun,Uun,Gun;w(BK,"PolyominoOptions",864),b(257,22,{3:1,34:1,22:1,257:1},ag);var zun,Xun,Vun,Wun,Jun,Qun,s_,Yun,Zun,non=we(BK,"TraversalStrategy",257,ke,$4e,rde),UQn;b(218,1,{218:1},rwn),o.Ib=function(){return"NEdge[id="+this.b+" w="+this.g+" d="+this.a+"]"},o.a=1,o.b=0,o.c=0,o.f=!1,o.g=0;var GQn=w(Q5,"NEdge",218);b(182,1,{},hs),w(Q5,"NEdge/NEdgeBuilder",182),b(662,1,{},oL),w(Q5,"NGraph",662),b(125,1,{125:1},NNn),o.c=-1,o.d=0,o.e=0,o.i=-1,o.j=!1;var eon=w(Q5,"NNode",125);b(808,1,Xzn,UG),o.Jc=function(e){qi(this,e)},o.Lc=function(){return new Cn(null,new On(this,16))},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.Oc=function(){return new Cn(null,new On(this,16))},o.bd=function(e,t){++this.b,ab(this.a,e,t)},o.Fc=function(e){return KM(this,e)},o.cd=function(e,t){return++this.b,lY(this.a,e,t)},o.Gc=function(e){return++this.b,hi(this.a,e)},o.$b=function(){++this.b,Sw(this.a.c,0)},o.Hc=function(e){return qr(this.a,e,0)!=-1},o.Ic=function(e){return jk(this.a,e)},o.Xb=function(e){return sn(this.a,e)},o.dd=function(e){return qr(this.a,e,0)},o.dc=function(){return this.a.c.length==0},o.Kc=function(){return Fp(new M(this.a))},o.ed=function(){throw T(new Ie)},o.fd=function(e){throw T(new Ie)},o.gd=function(e){return++this.b,Yl(this.a,e)},o.Mc=function(e){return zX(this,e)},o.hd=function(e,t){return++this.b,Go(this.a,e,t)},o.gc=function(){return this.a.c.length},o.kd=function(e,t){return new Jl(this.a,e,t)},o.Pc=function(){return YM(this.a.c)},o.Qc=function(e){return Rf(this.a,e)},o.b=0,w(Q5,"NNode/ChangeAwareArrayList",808),b(275,1,{},za),w(Q5,"NNode/NNodeBuilder",275),b(1695,1,{},cwn),o.a=!1,o.f=et,o.j=0,w(Q5,"NetworkSimplex",1695),b(1314,1,re,A9n),o.Cd=function(e){HGn(this.a,u(e,695),!0,!1)},w(aXn,"NodeLabelAndSizeCalculator/lambda$0$Type",1314),b(565,1,{},IE),o.b=!0,o.c=!0,o.d=!0,o.e=!0,w(aXn,"NodeMarginCalculator",565),b(217,1,{217:1}),o.j=!1,o.k=!1;var zQn=w(kd,"Cell",217);b(127,217,{127:1,217:1},xSn),o.jf=function(){return ZM(this)},o.kf=function(){var e;return e=this.n,this.a.a+e.b+e.c},w(kd,"AtomicCell",127),b(237,22,{3:1,34:1,22:1,237:1},xL);var bc,Wc,wc,P0=we(kd,"ContainerArea",237,ke,D2e,cde),XQn;b(336,217,dXn),w(kd,"ContainerCell",336),b(1538,336,dXn,CKn),o.jf=function(){var e;return e=0,this.e?this.b?e=this.b.b:this.a[1][1]&&(e=this.a[1][1].jf()):e=RY(this,HBn(this,!0)),e>0?e+this.n.d+this.n.a:0},o.kf=function(){var e,t,i,r,c;if(c=0,this.e)this.b?c=this.b.a:this.a[1][1]&&(c=this.a[1][1].kf());else if(this.g)c=RY(this,Gx(this,null,!0));else for(t=(wf(),S(C(P0,1),G,237,0,[bc,Wc,wc])),i=0,r=t.length;i<r;++i)e=t[i],c=y.Math.max(c,RY(this,Gx(this,e,!0)));return c>0?c+this.n.b+this.n.c:0},o.lf=function(){var e,t,i,r,c;if(this.g)for(e=Gx(this,null,!1),i=(wf(),S(C(P0,1),G,237,0,[bc,Wc,wc])),r=0,c=i.length;r<c;++r)t=i[r],jqn(this,t,e);else for(i=(wf(),S(C(P0,1),G,237,0,[bc,Wc,wc])),r=0,c=i.length;r<c;++r)t=i[r],e=Gx(this,t,!1),jqn(this,t,e)},o.mf=function(){var e,t,i,r;t=this.i,e=this.n,r=HBn(this,!1),$J(this,(wf(),bc),t.d+e.d,r),$J(this,wc,t.d+t.a-e.a-r[2],r),i=t.a-e.d-e.a,r[0]>0&&(r[0]+=this.d,i-=r[0]),r[2]>0&&(r[2]+=this.d,i-=r[2]),this.c.a=y.Math.max(0,i),this.c.d=t.d+e.d+(this.c.a-i)/2,r[1]=y.Math.max(r[1],i),$J(this,Wc,t.d+e.d+r[0]-(r[1]-i)/2,r)},o.b=null,o.d=0,o.e=!1,o.f=!1,o.g=!1;var f_=0,dI=0;w(kd,"GridContainerCell",1538),b(470,22,{3:1,34:1,22:1,470:1},RL);var ma,Th,zs,VQn=we(kd,"HorizontalLabelAlignment",470,ke,N2e,ude),WQn;b(314,217,{217:1,314:1},sAn,v$n,eAn),o.jf=function(){return HPn(this)},o.kf=function(){return ZV(this)},o.a=0,o.c=!1;var gDe=w(kd,"LabelCell",314);b(252,336,{217:1,336:1,252:1},y5),o.jf=function(){return ny(this)},o.kf=function(){return ey(this)},o.lf=function(){NR(this)},o.mf=function(){DR(this)},o.b=0,o.c=0,o.d=!1,w(kd,"StripContainerCell",252),b(1691,1,Le,uwn),o.Mb=function(e){return uhe(u(e,217))},w(kd,"StripContainerCell/lambda$0$Type",1691),b(1692,1,{},own),o.Ye=function(e){return u(e,217).kf()},w(kd,"StripContainerCell/lambda$1$Type",1692),b(1693,1,Le,swn),o.Mb=function(e){return ohe(u(e,217))},w(kd,"StripContainerCell/lambda$2$Type",1693),b(1694,1,{},fwn),o.Ye=function(e){return u(e,217).jf()},w(kd,"StripContainerCell/lambda$3$Type",1694),b(471,22,{3:1,34:1,22:1,471:1},KL);var Xs,va,kf,JQn=we(kd,"VerticalLabelAlignment",471,ke,L2e,ode),QQn;b(800,1,{},ntn),o.c=0,o.d=0,o.k=0,o.s=0,o.t=0,o.v=!1,o.w=0,o.D=!1,w(nP,"NodeContext",800),b(1536,1,De,hwn),o.Ne=function(e,t){return nCn(u(e,64),u(t,64))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(nP,"NodeContext/0methodref$comparePortSides$Type",1536),b(1537,1,De,lwn),o.Ne=function(e,t){return xye(u(e,117),u(t,117))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(nP,"NodeContext/1methodref$comparePortContexts$Type",1537),b(164,22,{3:1,34:1,22:1,164:1},Vo);var YQn,ZQn,nYn,eYn,tYn,iYn,rYn,cYn,uYn,oYn,sYn,fYn,hYn,lYn,aYn,dYn,bYn,wYn,gYn,pYn,mYn,h_,vYn=we(nP,"NodeLabelLocation",164,ke,jx,sde),kYn;b(117,1,{117:1},sHn),o.a=!1,w(nP,"PortContext",117),b(1541,1,re,awn),o.Cd=function(e){vEn(u(e,314))},w(Oy,bXn,1541),b(1542,1,Le,dwn),o.Mb=function(e){return!!u(e,117).c},w(Oy,wXn,1542),b(1543,1,re,bwn),o.Cd=function(e){vEn(u(e,117).c)},w(Oy,"LabelPlacer/lambda$2$Type",1543);var ton;b(1540,1,re,wwn),o.Cd=function(e){Kw(),Bfe(u(e,117))},w(Oy,"NodeLabelAndSizeUtilities/lambda$0$Type",1540),b(801,1,re,LV),o.Cd=function(e){Zhe(this.b,this.c,this.a,u(e,187))},o.a=!1,o.c=!1,w(Oy,"NodeLabelCellCreator/lambda$0$Type",801),b(1539,1,re,L9n),o.Cd=function(e){Hfe(this.a,u(e,187))},w(Oy,"PortContextCreator/lambda$0$Type",1539);var bI;b(1902,1,{},gwn),w(q4,"GreedyRectangleStripOverlapRemover",1902),b(1903,1,De,pwn),o.Ne=function(e,t){return A1e(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(q4,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903),b(1849,1,{},Hyn),o.a=5,o.e=0,w(q4,"RectangleStripOverlapRemover",1849),b(1850,1,De,mwn),o.Ne=function(e,t){return L1e(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(q4,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850),b(1852,1,De,vwn),o.Ne=function(e,t){return y0e(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(q4,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852),b(417,22,{3:1,34:1,22:1,417:1},oM);var tj,l_,a_,ij,yYn=we(q4,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,ke,Xpe,fde),jYn;b(226,1,{226:1},ZN),w(q4,"RectangleStripOverlapRemover/RectangleNode",226),b(1851,1,re,N9n),o.Cd=function(e){s7e(this.a,u(e,226))},w(q4,"RectangleStripOverlapRemover/lambda$1$Type",1851),b(1323,1,De,kwn),o.Ne=function(e,t){return POe(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1323),b(1326,1,{},ywn),o.Kb=function(e){return u(e,334).a},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1326),b(1327,1,Le,jwn),o.Mb=function(e){return u(e,332).a},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1327),b(1328,1,Le,Ewn),o.Mb=function(e){return u(e,332).a},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1328),b(1321,1,De,Mwn),o.Ne=function(e,t){return rPe(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1321),b(1324,1,{},Twn),o.Kb=function(e){return u(e,334).a},w(mh,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1324),b(781,1,De,KU),o.Ne=function(e,t){return Fve(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/MinNumOfExtensionsComparator",781),b(1319,1,De,Cwn),o.Ne=function(e,t){return V4e(u(e,330),u(t,330))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/MinPerimeterComparator",1319),b(1320,1,De,Swn),o.Ne=function(e,t){return L9e(u(e,330),u(t,330))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/MinPerimeterComparatorWithShape",1320),b(1322,1,De,Pwn),o.Ne=function(e,t){return TPe(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1322),b(1325,1,{},Iwn),o.Kb=function(e){return u(e,334).a},w(mh,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1325),b(782,1,{},qz),o.Ve=function(e,t){return Bpe(this,u(e,42),u(t,176))},w(mh,"SuccessorCombination",782),b(649,1,{},DA),o.Ve=function(e,t){var i;return eMe((i=u(e,42),u(t,176),i))},w(mh,"SuccessorJitter",649),b(648,1,{},$A),o.Ve=function(e,t){var i;return _Ce((i=u(e,42),u(t,176),i))},w(mh,"SuccessorLineByLine",648),b(573,1,{},mE),o.Ve=function(e,t){var i;return eTe((i=u(e,42),u(t,176),i))},w(mh,"SuccessorManhattan",573),b(1344,1,{},Own),o.Ve=function(e,t){var i;return lCe((i=u(e,42),u(t,176),i))},w(mh,"SuccessorMaxNormWindingInMathPosSense",1344),b(409,1,{},Z3),o.Ve=function(e,t){return EW(this,e,t)},o.c=!1,o.d=!1,o.e=!1,o.f=!1,w(mh,"SuccessorQuadrantsGeneric",409),b(1345,1,{},Awn),o.Kb=function(e){return u(e,334).a},w(mh,"SuccessorQuadrantsGeneric/lambda$0$Type",1345),b(332,22,{3:1,34:1,22:1,332:1},sM),o.a=!1;var rj,cj,uj,oj,EYn=we(tP,$tn,332,ke,Gpe,hde),MYn;b(1317,1,{}),o.Ib=function(){var e,t,i,r,c,s;for(i=" ",e=Y(0),c=0;c<this.o;c++)i+=""+e.a,e=Y(MSn(e.a));for(i+=`
`,e=Y(0),s=0;s<this.p;s++){for(i+=""+e.a,e=Y(MSn(e.a)),r=0;r<this.o;r++)t=M$(this,r,s),Ec(t,0)==0?i+="_":Ec(t,1)==0?i+="X":i+="0";i+=`
`}return qo(i,0,i.length-1)},o.o=0,o.p=0,w(tP,"TwoBitGrid",1317),b(330,1317,{330:1},zY),o.j=0,o.k=0,w(tP,"PlanarGrid",330),b(176,330,{330:1,176:1}),o.g=0,o.i=0,w(tP,"Polyomino",176);var pDe=Dt(Ay,pXn);b(137,1,xtn,xA),o.qf=function(e,t){return Ck(this,e,t)},o.nf=function(){return uIn(this)},o.of=function(e){return v(this,e)},o.pf=function(e){return kt(this,e)},w(Ay,"MapPropertyHolder",137),b(1318,137,xtn,hqn),w(tP,"Polyominoes",1318);var TYn=!1,P8,ion;b(1828,1,re,Lwn),o.Cd=function(e){aGn(u(e,225))},w(h3,"DepthFirstCompaction/0methodref$compactTree$Type",1828),b(825,1,re,PG),o.Cd=function(e){q0e(this.a,u(e,225))},w(h3,"DepthFirstCompaction/lambda$1$Type",825),b(1829,1,re,wPn),o.Cd=function(e){z8e(this.a,this.b,this.c,u(e,225))},w(h3,"DepthFirstCompaction/lambda$2$Type",1829);var I8,ron;b(68,1,{68:1},yAn),w(h3,"Node",68),b(1214,1,{},kCn),w(h3,"ScanlineOverlapCheck",1214),b(1215,1,{693:1},WOn),o.bf=function(e){yae(this,u(e,450))},w(h3,"ScanlineOverlapCheck/OverlapsScanlineHandler",1215),b(1216,1,De,Nwn),o.Ne=function(e,t){return I5e(u(e,68),u(t,68))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(h3,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1216),b(450,1,{450:1},Uz),o.a=!1,w(h3,"ScanlineOverlapCheck/Timestamp",450),b(1217,1,De,Dwn),o.Ne=function(e,t){return fke(u(e,450),u(t,450))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(h3,"ScanlineOverlapCheck/lambda$0$Type",1217),b(557,1,{},vE),w(mXn,"SVGImage",557),b(334,1,{334:1},AV),o.Ib=function(){return"("+this.a+ur+this.b+ur+this.c+")"},w(mXn,"UniqueTriple",334),b(205,1,yd),w(e2,"AbstractLayoutProvider",205),b(1114,205,yd,$wn),o.rf=function(e,t){var i,r,c,s;switch(t.Ug(vXn,1),this.a=$(B(z(e,(j5(),hon)))),Nf(e,b_)&&(c=Ae(z(e,b_)),i=CR(Gm(),c),i&&(r=u(z7(i.f),205),r.rf(e,t.eh(1)))),s=new _Ln(this.a),this.b=rLe(s,e),u(z(e,(Q$(),uon)),488).g){case 0:kMe(new xwn,this.b),ht(e,pI,v(this.b,pI));break;default:fl()}vLe(s),ht(e,son,this.b),t.Vg()},o.a=0,w(kXn,"DisCoLayoutProvider",1114),b(1208,1,{},xwn),o.c=!1,o.e=0,o.f=0,w(kXn,"DisCoPolyominoCompactor",1208),b(567,1,{567:1},rIn),o.b=!0,w(rP,"DCComponent",567),b(406,22,{3:1,34:1,22:1,406:1},fM),o.a=!1;var wI,sj,gI,fj,CYn=we(rP,"DCDirection",406,ke,zpe,lde),SYn;b(272,137,{3:1,272:1,96:1,137:1},bR),w(rP,"DCElement",272),b(407,1,{407:1},gZ),o.c=0,w(rP,"DCExtension",407),b(762,137,xtn,Xjn),w(rP,"DCGraph",762),b(488,22,{3:1,34:1,22:1,488:1},dSn);var d_,con=we(VK,Rtn,488,ke,nge,ade),PYn;b(865,1,ms,A5n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ktn),yXn),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),oon),(l1(),It)),con),yn((pf(),xn))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Btn),yXn),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),$2),fn),yn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Ftn),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),Vf),ki),yn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,_tn),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),Vf),ki),yn(xn)))),QUn((new L5n,e))};var IYn,uon,oon,OYn,AYn;w(VK,"DisCoMetaDataProvider",865),b(1010,1,ms,L5n),o.hf=function(e){QUn(e)};var LYn,b_,NYn,son,pI,w_,fon,DYn,$Yn,xYn,RYn,hon;w(VK,"DisCoOptions",1010),b(1011,1,{},Rwn),o.sf=function(){var e;return e=new $wn,e},o.tf=function(e){},w(VK,"DisCoOptions/DiscoFactory",1011),b(568,176,{330:1,176:1,568:1},zHn),o.a=0,o.b=0,o.c=0,o.d=0,w("org.eclipse.elk.alg.disco.structures","DCPolyomino",568);var g_,p_,mI;b(1286,1,Le,Kwn),o.Mb=function(e){return vX(e)},w(t2,"ElkGraphComponentsProcessor/lambda$0$Type",1286),b(1287,1,{},Bwn),o.Kb=function(e){return Np(),Fh(u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$1$Type",1287),b(1288,1,Le,Fwn),o.Mb=function(e){return vwe(u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$2$Type",1288),b(1289,1,{},_wn),o.Kb=function(e){return Np(),ca(u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$3$Type",1289),b(1290,1,Le,Hwn),o.Mb=function(e){return kwe(u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$4$Type",1290),b(1291,1,Le,D9n),o.Mb=function(e){return d2e(this.a,u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$5$Type",1291),b(1292,1,{},$9n),o.Kb=function(e){return N0e(this.a,u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$6$Type",1292),b(1205,1,{},_Ln),o.a=0,w(t2,"ElkGraphTransformer",1205),b(1206,1,{},qwn),o.Yd=function(e,t){cMe(this,u(e,167),u(t,272))},w(t2,"ElkGraphTransformer/OffsetApplier",1206),b(1207,1,re,x9n),o.Cd=function(e){w1e(this,u(e,8))},w(t2,"ElkGraphTransformer/OffsetApplier/OffSetToChainApplier",1207),b(760,1,{},BU),w(YK,Htn,760),b(1195,1,De,Uwn),o.Ne=function(e,t){return XEe(u(e,235),u(t,235))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(YK,EXn,1195),b(1196,1,re,CMn),o.Cd=function(e){Q2e(this.b,this.a,u(e,250))},w(YK,qtn,1196),b(738,205,yd,GG),o.rf=function(e,t){VHn(this,e,t)},w(YK,"ForceLayoutProvider",738),b(309,137,{3:1,309:1,96:1,137:1}),w(Ly,"FParticle",309),b(250,309,{3:1,250:1,309:1,96:1,137:1},qIn),o.Ib=function(){var e;return this.a?(e=qr(this.a.a,this,0),e>=0?"b"+e+"["+XD(this.a)+"]":"b["+XD(this.a)+"]"):"b_"+fb(this)},w(Ly,"FBendpoint",250),b(289,137,{3:1,289:1,96:1,137:1},KSn),o.Ib=function(){return XD(this)},w(Ly,"FEdge",289),b(235,137,{3:1,235:1,96:1,137:1},zT);var mDe=w(Ly,"FGraph",235);b(453,309,{3:1,453:1,309:1,96:1,137:1},FLn),o.Ib=function(){return this.b==null||this.b.length==0?"l["+XD(this.a)+"]":"l_"+this.b},w(Ly,"FLabel",453),b(153,309,{3:1,153:1,309:1,96:1,137:1},mCn),o.Ib=function(){return hJ(this)},o.a=0,w(Ly,"FNode",153),b(2100,1,{}),o.vf=function(e){Nen(this,e)},o.wf=function(){_Bn(this)},o.d=0,w(Utn,"AbstractForceModel",2100),b(641,2100,{641:1},Kxn),o.uf=function(e,t){var i,r,c,s,f;return wGn(this.f,e,t),c=mi(Fi(t.d),e.d),f=y.Math.sqrt(c.a*c.a+c.b*c.b),r=y.Math.max(0,f-U6(e.e)/2-U6(t.e)/2),i=Q_n(this.e,e,t),i>0?s=-m0e(r,this.c)*i:s=X1e(r,this.b)*u(v(e,(Us(),k3)),17).a,ch(c,s/f),c},o.vf=function(e){Nen(this,e),this.a=u(v(e,(Us(),kI)),17).a,this.c=$(B(v(e,yI))),this.b=$(B(v(e,v_)))},o.xf=function(e){return e<this.a},o.a=0,o.b=0,o.c=0,w(Utn,"EadesModel",641),b(642,2100,{642:1},RPn),o.uf=function(e,t){var i,r,c,s,f;return wGn(this.f,e,t),c=mi(Fi(t.d),e.d),f=y.Math.sqrt(c.a*c.a+c.b*c.b),r=y.Math.max(0,f-U6(e.e)/2-U6(t.e)/2),s=V1e(r,this.a)*u(v(e,(Us(),k3)),17).a,i=Q_n(this.e,e,t),i>0&&(s-=the(r,this.a)*i),ch(c,s*this.b/f),c},o.vf=function(e){var t,i,r,c,s,f,h;for(Nen(this,e),this.b=$(B(v(e,(Us(),k_)))),this.c=this.b/u(v(e,kI),17).a,r=e.e.c.length,s=0,c=0,h=new M(e.e);h.a<h.c.c.length;)f=u(E(h),153),s+=f.e.a,c+=f.e.b;t=s*c,i=$(B(v(e,yI)))*_f,this.a=y.Math.sqrt(t/(2*r))*i},o.wf=function(){_Bn(this),this.b-=this.c},o.xf=function(e){return this.b>0},o.a=0,o.b=0,o.c=0,w(Utn,"FruchtermanReingoldModel",642),b(860,1,ms,N5n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,cP),""),"Force Model"),"Determines the model for force calculation."),lon),(l1(),It)),aon),yn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Gtn),""),"Iterations"),"The number of iterations on the force model."),Y(300)),Zr),Gi),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ztn),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Y(0)),Zr),Gi),yn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ZK),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),vh),Qi),si),yn(xn)))),ri(e,ZK,cP,UYn),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,nB),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Qi),si),yn(xn)))),ri(e,nB,cP,_Yn),izn((new D5n,e))};var KYn,BYn,lon,FYn,_Yn,HYn,qYn,UYn;w(Z5,"ForceMetaDataProvider",860),b(432,22,{3:1,34:1,22:1,432:1},Gz);var m_,vI,aon=we(Z5,"ForceModelStrategy",432,ke,Bge,dde),GYn;b(d1,1,ms,D5n),o.hf=function(e){izn(e)};var zYn,XYn,don,kI,bon,VYn,WYn,JYn,QYn,won,YYn,gon,pon,ZYn,k3,nZn,v_,mon,eZn,tZn,yI,k_,iZn,rZn,cZn,von,uZn;w(Z5,"ForceOptions",d1),b(1001,1,{},Vwn),o.sf=function(){var e;return e=new GG,e},o.tf=function(e){},w(Z5,"ForceOptions/ForceFactory",1001);var hj,O8,y3,jI;b(861,1,ms,$5n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Vtn),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(_n(),!1)),(l1(),yi)),zt),yn((pf(),pi))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Wtn),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),Qi),si),yt(xn,S(C(Zh,1),G,170,0,[Ih]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Jtn),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),kon),It),Son),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Qtn),""),"Stress Epsilon"),"Termination criterion for the iterative process."),vh),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ytn),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Y(et)),Zr),Gi),yn(xn)))),AGn((new x5n,e))};var oZn,sZn,kon,fZn,hZn,lZn;w(Z5,"StressMetaDataProvider",861),b(1004,1,ms,x5n),o.hf=function(e){AGn(e)};var EI,yon,jon,Eon,Mon,Ton,aZn,dZn,bZn,wZn,Con,gZn;w(Z5,"StressOptions",1004),b(1005,1,{},zwn),o.sf=function(){var e;return e=new BSn,e},o.tf=function(e){},w(Z5,"StressOptions/StressFactory",1005),b(1110,205,yd,BSn),o.rf=function(e,t){var i,r,c,s,f;for(t.Ug(PXn,1),on(un(z(e,(qk(),Mon))))?on(un(z(e,Con)))||NT((i=new z9((Aw(),new Pw(e))),i)):VHn(new GG,e,t.eh(1)),c=sRn(e),r=FUn(this.a,c),f=r.Kc();f.Ob();)s=u(f.Pb(),235),!(s.e.c.length<=1)&&(TOe(this.b,s),JMe(this.b),nu(s.d,new Xwn));c=nzn(r),hzn(c),t.Vg()},w(sP,"StressLayoutProvider",1110),b(1111,1,re,Xwn),o.Cd=function(e){_en(u(e,453))},w(sP,"StressLayoutProvider/lambda$0$Type",1111),b(1002,1,{},Ryn),o.c=0,o.e=0,o.g=0,w(sP,"StressMajorization",1002),b(391,22,{3:1,34:1,22:1,391:1},BL);var y_,j_,E_,Son=we(sP,"StressMajorization/Dimension",391,ke,$2e,bde),pZn;b(1003,1,De,R9n),o.Ne=function(e,t){return Hae(this.a,u(e,153),u(t,153))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(sP,"StressMajorization/lambda$0$Type",1003),b(1192,1,{},GAn),w(b3,"ElkLayered",1192),b(1193,1,re,K9n),o.Cd=function(e){TEe(this.a,u(e,36))},w(b3,"ElkLayered/lambda$0$Type",1193),b(1194,1,re,B9n),o.Cd=function(e){qae(this.a,u(e,36))},w(b3,"ElkLayered/lambda$1$Type",1194),b(1281,1,{},PCn);var mZn,vZn,kZn;w(b3,"GraphConfigurator",1281),b(770,1,re,IG),o.Cd=function(e){n_n(this.a,u(e,10))},w(b3,"GraphConfigurator/lambda$0$Type",770),b(771,1,{},FU),o.Kb=function(e){return AZ(),new Cn(null,new On(u(e,30).a,16))},w(b3,"GraphConfigurator/lambda$1$Type",771),b(772,1,re,OG),o.Cd=function(e){n_n(this.a,u(e,10))},w(b3,"GraphConfigurator/lambda$2$Type",772),b(1109,205,yd,qyn),o.rf=function(e,t){var i;i=cOe(new Gyn,e),x(z(e,(cn(),K0)))===x((jl(),T1))?R5e(this.a,i,t):zMe(this.a,i,t),t.$g()||XGn(new R5n,i)},w(b3,"LayeredLayoutProvider",1109),b(367,22,{3:1,34:1,22:1,367:1},o7);var Vs,Jh,Ac,Fc,zr,Pon=we(b3,"LayeredPhases",367,ke,B3e,wde),yZn;b(1717,1,{},txn),o.i=0;var jZn;w(Ky,"ComponentsToCGraphTransformer",1717);var EZn;b(1718,1,{},Gwn),o.yf=function(e,t){return y.Math.min(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},o.zf=function(e,t){return y.Math.min(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},w(Ky,"ComponentsToCGraphTransformer/1",1718),b(86,1,{86:1}),o.i=0,o.k=!0,o.o=li;var M_=w(i8,"CNode",86);b(469,86,{469:1,86:1},WX,cZ),o.Ib=function(){return""},w(Ky,"ComponentsToCGraphTransformer/CRectNode",469),b(1688,1,{},Wwn);var T_,C_;w(Ky,"OneDimensionalComponentsCompaction",1688),b(1689,1,{},Jwn),o.Kb=function(e){return C2e(u(e,42))},o.Fb=function(e){return this===e},w(Ky,"OneDimensionalComponentsCompaction/lambda$0$Type",1689),b(1690,1,{},Qwn),o.Kb=function(e){return B5e(u(e,42))},o.Fb=function(e){return this===e},w(Ky,"OneDimensionalComponentsCompaction/lambda$1$Type",1690),b(1720,1,{},YIn),w(i8,"CGraph",1720),b(194,1,{194:1},vx),o.b=0,o.c=0,o.e=0,o.g=!0,o.i=li,w(i8,"CGroup",194),b(1719,1,{},Ywn),o.yf=function(e,t){return y.Math.max(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},o.zf=function(e,t){return y.Math.max(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},w(i8,eXn,1719),b(1721,1,{},Z_n),o.d=!1;var MZn,S_=w(i8,rXn,1721);b(1722,1,{},Zwn),o.Kb=function(e){return Lz(),_n(),u(u(e,42).a,86).d.e!=0},o.Fb=function(e){return this===e},w(i8,cXn,1722),b(833,1,{},uW),o.a=!1,o.b=!1,o.c=!1,o.d=!1,w(i8,uXn,833),b(1898,1,{},bIn),w(fP,oXn,1898);var lj=Dt(Ed,Zzn);b(1899,1,{382:1},VOn),o.bf=function(e){nSe(this,u(e,475))},w(fP,sXn,1899),b(la,1,De,n0n),o.Ne=function(e,t){return fge(u(e,86),u(t,86))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(fP,fXn,la),b(475,1,{475:1},Xz),o.a=!1,w(fP,hXn,475),b(1901,1,De,e0n),o.Ne=function(e,t){return hke(u(e,475),u(t,475))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(fP,lXn,1901),b(148,1,{148:1},am,qV),o.Fb=function(e){var t;return e==null||vDe!=wo(e)?!1:(t=u(e,148),mc(this.c,t.c)&&mc(this.d,t.d))},o.Hb=function(){return Ik(S(C(ki,1),Rn,1,5,[this.c,this.d]))},o.Ib=function(){return"("+this.c+ur+this.d+(this.a?"cx":"")+this.b+")"},o.a=!0,o.c=0,o.d=0;var vDe=w(Ed,"Point",148);b(416,22,{3:1,34:1,22:1,416:1},hM);var tw,I0,d2,O0,TZn=we(Ed,"Point/Quadrant",416,ke,Vpe,gde),CZn;b(1708,1,{},_yn),o.b=null,o.c=null,o.d=null,o.e=null,o.f=null;var SZn,PZn,IZn,OZn,AZn;w(Ed,"RectilinearConvexHull",1708),b(583,1,{382:1},eS),o.bf=function(e){Kme(this,u(e,148))},o.b=0;var Ion;w(Ed,"RectilinearConvexHull/MaximalElementsEventHandler",583),b(1710,1,De,t0n),o.Ne=function(e,t){return hge(B(e),B(t))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710),b(1709,1,{382:1},m$n),o.bf=function(e){wCe(this,u(e,148))},o.a=0,o.b=null,o.c=null,o.d=null,o.e=null,w(Ed,"RectilinearConvexHull/RectangleEventHandler",1709),b(1711,1,De,i0n),o.Ne=function(e,t){return mpe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$0$Type",1711),b(1712,1,De,u0n),o.Ne=function(e,t){return vpe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$1$Type",1712),b(1713,1,De,o0n),o.Ne=function(e,t){return ppe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$2$Type",1713),b(1714,1,De,c0n),o.Ne=function(e,t){return kpe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$3$Type",1714),b(1715,1,De,s0n),o.Ne=function(e,t){return Qye(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$4$Type",1715),b(1716,1,{},EAn),w(Ed,"Scanline",1716),b(2104,1,{}),w(Hf,"AbstractGraphPlacer",2104),b(335,1,{335:1},hSn),o.Ff=function(e){return this.Gf(e)?(In(this.b,u(v(e,(W(),Dl)),21),e),!0):!1},o.Gf=function(e){var t,i,r,c;for(t=u(v(e,(W(),Dl)),21),c=u(ot(wt,t),21),r=c.Kc();r.Ob();)if(i=u(r.Pb(),21),!u(ot(this.b,i),15).dc())return!1;return!0};var wt;w(Hf,"ComponentGroup",335),b(779,2104,{},VG),o.Hf=function(e){var t,i;for(i=new M(this.a);i.a<i.c.c.length;)if(t=u(E(i),335),t.Ff(e))return;nn(this.a,new hSn(e))},o.Ef=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k;if(this.a.c.length=0,t.a.c.length=0,e.dc()){t.f.a=0,t.f.b=0;return}for(f=u(e.Xb(0),36),Ur(t,f),c=e.Kc();c.Ob();)r=u(c.Pb(),36),this.Hf(r);for(k=new Ni,s=$(B(v(f,(cn(),Tj)))),a=new M(this.a);a.a<a.c.c.length;)h=u(E(a),335),d=lzn(h,s),Zl(gT(h.b),k.a,k.b),k.a+=d.a,k.b+=d.b;if(t.f.a=k.a-s,t.f.b=k.b-s,on(un(v(f,sO)))&&x(v(f,$l))===x((El(),Kv))){for(m=e.Kc();m.Ob();)g=u(m.Pb(),36),S4(g,g.c.a,g.c.b);for(i=new RA,utn(i,e,s),p=e.Kc();p.Ob();)g=u(p.Pb(),36),it(ff(g.c),i.e);it(ff(t.f),i.a)}for(l=new M(this.a);l.a<l.c.c.length;)h=u(E(l),335),QJ(t,gT(h.b))},w(Hf,"ComponentGroupGraphPlacer",779),b(1312,779,{},njn),o.Hf=function(e){eKn(this,e)},o.Ef=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(this.a.c.length=0,t.a.c.length=0,e.dc()){t.f.a=0,t.f.b=0;return}for(f=u(e.Xb(0),36),Ur(t,f),c=e.Kc();c.Ob();)r=u(c.Pb(),36),eKn(this,r);for(D=new Ni,A=new Ni,j=new Ni,k=new Ni,s=$(B(v(f,(cn(),Tj)))),a=new M(this.a);a.a<a.c.c.length;){if(h=u(E(a),335),hl(u(v(t,(He(),_d)),88))){for(j.a=D.a,O=new Yv(q6(aD(h.b).a).a.kc());O.b.Ob();)if(P=u(iM(O.b.Pb()),21),P.Hc((en(),Xn))){j.a=A.a;break}}else if(vg(u(v(t,_d),88))){for(j.b=D.b,O=new Yv(q6(aD(h.b).a).a.kc());O.b.Ob();)if(P=u(iM(O.b.Pb()),21),P.Hc((en(),Wn))){j.b=A.b;break}}if(d=lzn(u(h,579),s),Zl(gT(h.b),j.a,j.b),hl(u(v(t,_d),88))){for(A.a=j.a+d.a,k.a=y.Math.max(k.a,A.a),O=new Yv(q6(aD(h.b).a).a.kc());O.b.Ob();)if(P=u(iM(O.b.Pb()),21),P.Hc((en(),ae))){D.a=j.a+d.a;break}A.b=j.b+d.b,j.b=A.b,k.b=y.Math.max(k.b,j.b)}else if(vg(u(v(t,_d),88))){for(A.b=j.b+d.b,k.b=y.Math.max(k.b,A.b),O=new Yv(q6(aD(h.b).a).a.kc());O.b.Ob();)if(P=u(iM(O.b.Pb()),21),P.Hc((en(),Zn))){D.b=j.b+d.b;break}A.a=j.a+d.a,j.a=A.a,k.a=y.Math.max(k.a,j.a)}}if(t.f.a=k.a-s,t.f.b=k.b-s,on(un(v(f,sO)))&&x(v(f,$l))===x((El(),Kv))){for(m=e.Kc();m.Ob();)g=u(m.Pb(),36),S4(g,g.c.a,g.c.b);for(i=new RA,utn(i,e,s),p=e.Kc();p.Ob();)g=u(p.Pb(),36),it(ff(g.c),i.e);it(ff(t.f),i.a)}for(l=new M(this.a);l.a<l.c.c.length;)h=u(E(l),335),QJ(t,gT(h.b))},w(Hf,"ComponentGroupModelOrderGraphPlacer",1312),b(389,22,{3:1,34:1,22:1,389:1},lM);var P_,Oon,I_,A0,Aon=we(Hf,"ComponentOrderingStrategy",389,ke,qpe,pde),LZn;b(659,1,{},RA),w(Hf,"ComponentsCompactor",659),b(1533,13,Gzn,kNn),o.Fc=function(e){return P5(this,u(e,148))},w(Hf,"ComponentsCompactor/Hullpoints",1533),b(1530,1,{855:1},kBn),o.a=!1,w(Hf,"ComponentsCompactor/InternalComponent",1530),b(1529,1,qh,Byn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new M(this.a)},w(Hf,"ComponentsCompactor/InternalConnectedComponents",1529),b(1532,1,{602:1},tHn),o.Bf=function(){return null},o.Cf=function(){return this.a},o.Af=function(){return Ex(this.d)},o.Df=function(){return this.b},w(Hf,"ComponentsCompactor/InternalExternalExtension",1532),b(1531,1,{602:1},Uyn),o.Cf=function(){return this.a},o.Af=function(){return Ex(this.d)},o.Bf=function(){return this.c},o.Df=function(){return this.b},w(Hf,"ComponentsCompactor/InternalUnionExternalExtension",1531),b(1535,1,{},Eqn),w(Hf,"ComponentsCompactor/OuterSegments",1535),b(1534,1,{},Fyn),w(Hf,"ComponentsCompactor/Segments",1534),b(1282,1,{},DNn),w(Hf,Htn,1282),b(1283,1,De,f0n),o.Ne=function(e,t){return Epe(u(e,36),u(t,36))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Hf,"ComponentsProcessor/lambda$0$Type",1283),b(579,335,{335:1,579:1},vNn),o.Ff=function(e){return uY(this,e)},o.Gf=function(e){return tqn(this,e)};var qe;w(Hf,"ModelOrderComponentGroup",579),b(1310,2104,{},h0n),o.Ef=function(e,t){var i,r,c,s,f,h,l,a,d,g,p;if(e.gc()==1){g=u(e.Xb(0),36),g!=t&&(t.a.c.length=0,sUn(t,g,0,0),Ur(t,g),XW(t.d,g.d),t.f.a=g.f.a,t.f.b=g.f.b);return}else if(e.dc()){t.a.c.length=0,t.f.a=0,t.f.b=0;return}for(this.Jf(e,t),c=u(e.Xb(0),36),t.a.c.length=0,Ur(t,c),a=0,p=0,f=e.Kc();f.Ob();)s=u(f.Pb(),36),d=s.f,a=y.Math.max(a,d.a),p+=d.a*d.b;if(a=y.Math.max(a,y.Math.sqrt(p)*$(B(v(t,(cn(),oO))))),r=$(B(v(t,Tj))),this.If(e,t,a,r),on(un(v(c,sO)))){for(i=new RA,utn(i,e,r),l=e.Kc();l.Ob();)h=u(l.Pb(),36),it(ff(h.c),i.e);it(ff(t.f),i.a)}QJ(t,e)},o.If=function(e,t,i,r){var c,s,f,h,l,a,d,g;for(d=0,g=0,h=0,c=r,f=e.Kc();f.Ob();)s=u(f.Pb(),36),a=s.f,d+a.a>i&&(d=0,g+=h+r,h=0),l=s.c,S4(s,d+l.a,g+l.b),ff(l),c=y.Math.max(c,d+a.a),h=y.Math.max(h,a.b),d+=a.a+r;t.f.a=c,t.f.b=g+h},o.Jf=function(e,t){var i,r,c,s,f;if(x(v(t,(cn(),R0)))===x((dd(),A0))){for(r=e.Kc();r.Ob();){for(i=u(r.Pb(),36),f=0,s=new M(i.a);s.a<s.c.c.length;)c=u(E(s),10),f+=u(v(c,qte),17).a;i.p=f}Ln(),e.jd(new l0n)}},w(Hf,"SimpleRowGraphPlacer",1310),b(1313,1310,{},r0n),o.If=function(e,t,i,r){var c,s,f,h,l,a,d,g,p,m;for(p=0,m=0,h=0,c=r,l=null,g=0,f=e.Kc();f.Ob();)s=u(f.Pb(),36),d=s.f,(p+d.a>i&&!u(v(s,(W(),Dl)),21).Hc((en(),Xn))||l&&u(v(l,(W(),Dl)),21).Hc((en(),Zn))||u(v(s,(W(),Dl)),21).Hc((en(),Wn)))&&(p=g,m+=h+r,h=0),a=s.c,u(v(s,(W(),Dl)),21).Hc((en(),Xn))&&(p=c+r),S4(s,p+a.a,m+a.b),c=y.Math.max(c,p+d.a),u(v(s,Dl),21).Hc(ae)&&(g=y.Math.max(g,p+d.a+r)),ff(a),h=y.Math.max(h,d.b),p+=d.a+r,l=s;t.f.a=c,t.f.b=m+h},o.Jf=function(e,t){},w(Hf,"ModelOrderRowGraphPlacer",1313),b(1311,1,De,l0n),o.Ne=function(e,t){return Rve(u(e,36),u(t,36))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Hf,"SimpleRowGraphPlacer/1",1311);var NZn;b(1280,1,ph,a0n),o.Lb=function(e){var t;return t=u(v(u(e,249).b,(cn(),Rr)),75),!!t&&t.b!=0},o.Fb=function(e){return this===e},o.Mb=function(e){var t;return t=u(v(u(e,249).b,(cn(),Rr)),75),!!t&&t.b!=0},w(hP,"CompoundGraphPostprocessor/1",1280),b(1279,1,vt,zyn),o.Kf=function(e,t){yBn(this,u(e,36),t)},w(hP,"CompoundGraphPreprocessor",1279),b(452,1,{452:1},lKn),o.c=!1,w(hP,"CompoundGraphPreprocessor/ExternalPort",452),b(249,1,{249:1},GM),o.Ib=function(){return PN(this.c)+":"+X_n(this.b)},w(hP,"CrossHierarchyEdge",249),b(777,1,De,AG),o.Ne=function(e,t){return K7e(this,u(e,249),u(t,249))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(hP,"CrossHierarchyEdgeComparator",777),b(304,137,{3:1,304:1,96:1,137:1}),o.p=0,w(Kc,"LGraphElement",304),b(18,304,{3:1,18:1,304:1,96:1,137:1},yb),o.Ib=function(){return X_n(this)};var O_=w(Kc,"LEdge",18);b(36,304,{3:1,20:1,36:1,304:1,96:1,137:1},yQ),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new M(this.b)},o.Ib=function(){return this.b.c.length==0?"G-unlayered"+ua(this.a):this.a.c.length==0?"G-layered"+ua(this.b):"G[layerless"+ua(this.a)+", layers"+ua(this.b)+"]"};var DZn=w(Kc,"LGraph",36),$Zn;b(666,1,{}),o.Lf=function(){return this.e.n},o.of=function(e){return v(this.e,e)},o.Mf=function(){return this.e.o},o.Nf=function(){return this.e.p},o.pf=function(e){return kt(this.e,e)},o.Of=function(e){this.e.n.a=e.a,this.e.n.b=e.b},o.Pf=function(e){this.e.o.a=e.a,this.e.o.b=e.b},o.Qf=function(e){this.e.p=e},w(Kc,"LGraphAdapters/AbstractLShapeAdapter",666),b(473,1,{853:1},zv),o.Rf=function(){var e,t;if(!this.b)for(this.b=Lh(this.a.b.c.length),t=new M(this.a.b);t.a<t.c.c.length;)e=u(E(t),72),nn(this.b,new OE(e));return this.b},o.b=null,w(Kc,"LGraphAdapters/LEdgeAdapter",473),b(665,1,{},kD),o.Sf=function(){var e,t,i,r,c,s;if(!this.b){for(this.b=new Z,r=new M(this.a.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=new M(i.a);s.a<s.c.c.length;)if(c=u(E(s),10),this.c.Mb(c)&&(nn(this.b,new zM(this,c,this.e)),this.d)){if(kt(c,(W(),I3)))for(t=u(v(c,I3),15).Kc();t.Ob();)e=u(t.Pb(),10),nn(this.b,new zM(this,e,!1));if(kt(c,M3))for(t=u(v(c,M3),15).Kc();t.Ob();)e=u(t.Pb(),10),nn(this.b,new zM(this,e,!1))}}return this.b},o.Lf=function(){throw T(new Fl(AXn))},o.of=function(e){return v(this.a,e)},o.Mf=function(){return this.a.f},o.Nf=function(){return this.a.p},o.pf=function(e){return kt(this.a,e)},o.Of=function(e){throw T(new Fl(AXn))},o.Pf=function(e){this.a.f.a=e.a,this.a.f.b=e.b},o.Qf=function(e){this.a.p=e},o.b=null,o.d=!1,o.e=!1,w(Kc,"LGraphAdapters/LGraphAdapter",665),b(585,666,{187:1},OE),w(Kc,"LGraphAdapters/LLabelAdapter",585),b(584,666,{695:1},zM),o.Tf=function(){return this.b},o.Uf=function(){return Ln(),Ln(),sr},o.Rf=function(){var e,t;if(!this.a)for(this.a=Lh(u(this.e,10).b.c.length),t=new M(u(this.e,10).b);t.a<t.c.c.length;)e=u(E(t),72),nn(this.a,new OE(e));return this.a},o.Vf=function(){var e;return e=u(this.e,10).d,new gV(e.d,e.c,e.a,e.b)},o.Wf=function(){return Ln(),Ln(),sr},o.Xf=function(){var e,t;if(!this.c)for(this.c=Lh(u(this.e,10).j.c.length),t=new M(u(this.e,10).j);t.a<t.c.c.length;)e=u(E(t),12),nn(this.c,new $Mn(e,this.d));return this.c},o.Yf=function(){return on(un(v(u(this.e,10),(W(),Qsn))))},o.Zf=function(e){u(this.e,10).d.b=e.b,u(this.e,10).d.d=e.d,u(this.e,10).d.c=e.c,u(this.e,10).d.a=e.a},o.$f=function(e){u(this.e,10).f.b=e.b,u(this.e,10).f.d=e.d,u(this.e,10).f.c=e.c,u(this.e,10).f.a=e.a},o._f=function(){D4e(this,(r6(),$Zn))},o.a=null,o.b=null,o.c=null,o.d=!1,w(Kc,"LGraphAdapters/LNodeAdapter",584),b(1788,666,{852:1},$Mn),o.Uf=function(){var e,t,i,r,c,s,f,h;if(this.d&&u(this.e,12).i.k==(Vn(),_c))return Ln(),Ln(),sr;if(!this.a){for(this.a=new Z,i=new M(u(this.e,12).e);i.a<i.c.c.length;)e=u(E(i),18),nn(this.a,new zv(e));if(this.d&&(r=u(v(u(this.e,12),(W(),Xu)),10),r))for(t=new ie(ce(ji(r).a.Kc(),new En));pe(t);)e=u(fe(t),18),nn(this.a,new zv(e));if(kt(u(this.e,12).i,(W(),sw))&&(f=u(v(u(this.e,12).i,sw),337),h=u(Df(f.e,this.e),113),h))for(s=new M(h.b);s.a<s.c.c.length;)c=u(E(s),340),nn(this.a,new zv(c.a))}return this.a},o.Rf=function(){var e,t;if(!this.b)for(this.b=Lh(u(this.e,12).f.c.length),t=new M(u(this.e,12).f);t.a<t.c.c.length;)e=u(E(t),72),nn(this.b,new OE(e));return this.b},o.Wf=function(){var e,t,i,r,c,s,f,h;if(this.d&&u(this.e,12).i.k==(Vn(),_c))return Ln(),Ln(),sr;if(!this.c){for(this.c=new Z,i=new M(u(this.e,12).g);i.a<i.c.c.length;)e=u(E(i),18),nn(this.c,new zv(e));if(this.d&&(r=u(v(u(this.e,12),(W(),Xu)),10),r))for(t=new ie(ce(Qt(r).a.Kc(),new En));pe(t);)e=u(fe(t),18),nn(this.c,new zv(e));if(kt(u(this.e,12).i,(W(),sw))&&(f=u(v(u(this.e,12).i,sw),337),h=u(Df(f.e,this.e),113),h))for(s=new M(h.e);s.a<s.c.c.length;)c=u(E(s),340),nn(this.c,new zv(c.a))}return this.c},o.ag=function(){return u(this.e,12).j},o.bg=function(){return on(un(v(u(this.e,12),(W(),kj))))},o.a=null,o.b=null,o.c=null,o.d=!1,w(Kc,"LGraphAdapters/LPortAdapter",1788),b(1789,1,De,d0n),o.Ne=function(e,t){return ISe(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Kc,"LGraphAdapters/PortComparator",1789),b(818,1,Le,_U),o.Mb=function(e){return u(e,10),r6(),!0},w(Kc,"LGraphAdapters/lambda$0$Type",818),b(404,304,{3:1,304:1,404:1,96:1,137:1}),w(Kc,"LShape",404),b(72,404,{3:1,304:1,72:1,404:1,96:1,137:1},Qjn,OX),o.Ib=function(){var e;return e=mwe(this),e==null?"label":"l_"+e},w(Kc,"LLabel",72),b(214,1,{3:1,4:1,214:1,423:1}),o.Fb=function(e){var t;return L(e,214)?(t=u(e,214),this.d==t.d&&this.a==t.a&&this.b==t.b&&this.c==t.c):!1},o.Hb=function(){var e,t;return e=pp(this.b)<<16,e|=pp(this.a)&ui,t=pp(this.c)<<16,t|=pp(this.d)&ui,e^t},o.cg=function(e){var t,i,r,c,s,f,h,l,a,d,g;for(s=0;s<e.length&&HRn((zn(s,e.length),e.charCodeAt(s)),NXn);)++s;for(t=e.length;t>0&&HRn((zn(t-1,e.length),e.charCodeAt(t-1)),DXn);)--t;if(s<t){d=w0((Ri(s,t,e.length),e.substr(s,t-s)),",|;");try{for(h=d,l=0,a=h.length;l<a;++l){if(f=h[l],c=w0(f,"="),c.length!=2)throw T(new Gn("Expecting a list of key-value pairs."));r=f0(c[0]),g=s0(f0(c[1])),Sn(r,"top")?this.d=g:Sn(r,"left")?this.b=g:Sn(r,"bottom")?this.a=g:Sn(r,"right")&&(this.c=g)}}catch(p){throw p=Ot(p),L(p,130)?(i=p,T(new Gn($Xn+i))):T(p)}}},o.Ib=function(){return"[top="+this.d+",left="+this.b+",bottom="+this.a+",right="+this.c+"]"},o.a=0,o.b=0,o.c=0,o.d=0,w(By,"Spacing",214),b(140,214,xXn,Wv,eCn,gV,qN);var Lon=w(By,"ElkMargin",140);b(660,140,xXn,sL),w(Kc,"LMargin",660),b(10,404,{3:1,304:1,10:1,404:1,96:1,137:1},Cl),o.Ib=function(){return bBn(this)},o.i=!1;var Qh=w(Kc,"LNode",10);b(273,22,{3:1,34:1,22:1,273:1},a6);var Gf,Zt,Sc,Ti,Xt,_c,A_=we(Kc,"LNode/NodeType",273,ke,Mme,jbe),xZn;b(775,1,Le,HU),o.Mb=function(e){return on(un(v(u(e,72),(cn(),jH))))},w(Kc,"LNode/lambda$0$Type",775),b(107,214,RXn,up,ob,FV);var Non=w(By,"ElkPadding",107);b(778,107,RXn,YG),w(Kc,"LPadding",778),b(12,404,{3:1,304:1,12:1,404:1,96:1,137:1},Ic),o.Ib=function(){var e,t,i;return e=new R1,Be((e.a+="p_",e),lS(this)),this.i&&Be(Lc((e.a+="[",e),this.i),"]"),this.e.c.length==1&&this.g.c.length==0&&u(sn(this.e,0),18).c!=this&&(t=u(sn(this.e,0),18).c,Be((e.a+=" << ",e),lS(t)),Be(Lc((e.a+="[",e),t.i),"]")),this.e.c.length==0&&this.g.c.length==1&&u(sn(this.g,0),18).d!=this&&(i=u(sn(this.g,0),18).d,Be((e.a+=" >> ",e),lS(i)),Be(Lc((e.a+="[",e),i.i),"]")),e.a},o.c=!0,o.d=!1;var Don,$on,xon,Ron,Kon,Bon,RZn=w(Kc,"LPort",12);b(408,1,qh,nm),o.Jc=function(e){qi(this,e)},o.Kc=function(){var e;return e=new M(this.a.e),new F9n(e)},w(Kc,"LPort/1",408),b(1309,1,Pi,F9n),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(E(this.a),18).c},o.Ob=function(){return tc(this.a)},o.Qb=function(){_6(this.a)},w(Kc,"LPort/1/1",1309),b(369,1,qh,ip),o.Jc=function(e){qi(this,e)},o.Kc=function(){var e;return e=new M(this.a.g),new LG(e)},w(Kc,"LPort/2",369),b(776,1,Pi,LG),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(E(this.a),18).d},o.Ob=function(){return tc(this.a)},o.Qb=function(){_6(this.a)},w(Kc,"LPort/2/1",776),b(1302,1,qh,IMn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new Lf(this)},w(Kc,"LPort/CombineIter",1302),b(208,1,Pi,Lf),o.Nb=function(e){_i(this,e)},o.Qb=function(){oEn()},o.Ob=function(){return O6(this)},o.Pb=function(){return tc(this.a)?E(this.a):E(this.b)},w(Kc,"LPort/CombineIter/1",208),b(1303,1,ph,b0n),o.Lb=function(e){return PIn(e)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).g.c.length!=0},w(Kc,"LPort/lambda$0$Type",1303),b(1304,1,ph,w0n),o.Lb=function(e){return IIn(e)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).e.c.length!=0},w(Kc,"LPort/lambda$1$Type",1304),b(1305,1,ph,g0n),o.Lb=function(e){return Au(),u(e,12).j==(en(),Xn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).j==(en(),Xn)},w(Kc,"LPort/lambda$2$Type",1305),b(1306,1,ph,p0n),o.Lb=function(e){return Au(),u(e,12).j==(en(),Zn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).j==(en(),Zn)},w(Kc,"LPort/lambda$3$Type",1306),b(1307,1,ph,m0n),o.Lb=function(e){return Au(),u(e,12).j==(en(),ae)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).j==(en(),ae)},w(Kc,"LPort/lambda$4$Type",1307),b(1308,1,ph,v0n),o.Lb=function(e){return Au(),u(e,12).j==(en(),Wn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).j==(en(),Wn)},w(Kc,"LPort/lambda$5$Type",1308),b(30,304,{3:1,20:1,304:1,30:1,96:1,137:1},Nc),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new M(this.a)},o.Ib=function(){return"L_"+qr(this.b.b,this,0)+ua(this.a)},w(Kc,"Layer",30),b(1330,1,{},Gyn),w(w1,KXn,1330),b(1334,1,{},k0n),o.Kb=function(e){return Gr(u(e,84))},w(w1,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334),b(1337,1,{},y0n),o.Kb=function(e){return Gr(u(e,84))},w(w1,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337),b(1331,1,re,_9n),o.Cd=function(e){hHn(this.a,u(e,123))},w(w1,qtn,1331),b(1332,1,re,H9n),o.Cd=function(e){hHn(this.a,u(e,123))},w(w1,BXn,1332),b(1333,1,{},j0n),o.Kb=function(e){return new Cn(null,new On(HW(u(e,74)),16))},w(w1,FXn,1333),b(1335,1,Le,q9n),o.Mb=function(e){return _le(this.a,u(e,27))},w(w1,_Xn,1335),b(1336,1,{},E0n),o.Kb=function(e){return new Cn(null,new On(rge(u(e,74)),16))},w(w1,"ElkGraphImporter/lambda$5$Type",1336),b(1338,1,Le,U9n),o.Mb=function(e){return Hle(this.a,u(e,27))},w(w1,"ElkGraphImporter/lambda$7$Type",1338),b(1339,1,Le,M0n),o.Mb=function(e){return mge(u(e,74))},w(w1,"ElkGraphImporter/lambda$8$Type",1339),b(1297,1,{},R5n);var KZn;w(w1,"ElkGraphLayoutTransferrer",1297),b(1298,1,Le,G9n),o.Mb=function(e){return Oae(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$0$Type",1298),b(1299,1,re,z9n),o.Cd=function(e){c7(),nn(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$1$Type",1299),b(1300,1,Le,X9n),o.Mb=function(e){return wae(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$2$Type",1300),b(1301,1,re,V9n),o.Cd=function(e){c7(),nn(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$3$Type",1301),b(819,1,{},mV),w(Qn,"BiLinkedHashMultiMap",819),b(1550,1,vt,T0n),o.Kf=function(e,t){ive(u(e,36),t)},w(Qn,"CommentNodeMarginCalculator",1550),b(1551,1,{},C0n),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"CommentNodeMarginCalculator/lambda$0$Type",1551),b(1552,1,re,S0n),o.Cd=function(e){iOe(u(e,10))},w(Qn,"CommentNodeMarginCalculator/lambda$1$Type",1552),b(1553,1,vt,P0n),o.Kf=function(e,t){oSe(u(e,36),t)},w(Qn,"CommentPostprocessor",1553),b(1554,1,vt,I0n),o.Kf=function(e,t){ILe(u(e,36),t)},w(Qn,"CommentPreprocessor",1554),b(1555,1,vt,O0n),o.Kf=function(e,t){MCe(u(e,36),t)},w(Qn,"ConstraintsPostprocessor",1555),b(1556,1,vt,A0n),o.Kf=function(e,t){Ave(u(e,36),t)},w(Qn,"EdgeAndLayerConstraintEdgeReverser",1556),b(1557,1,vt,L0n),o.Kf=function(e,t){y8e(u(e,36),t)},w(Qn,"EndLabelPostprocessor",1557),b(1558,1,{},N0n),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"EndLabelPostprocessor/lambda$0$Type",1558),b(1559,1,Le,D0n),o.Mb=function(e){return x3e(u(e,10))},w(Qn,"EndLabelPostprocessor/lambda$1$Type",1559),b(1560,1,re,$0n),o.Cd=function(e){lke(u(e,10))},w(Qn,"EndLabelPostprocessor/lambda$2$Type",1560),b(1561,1,vt,x0n),o.Kf=function(e,t){Zje(u(e,36),t)},w(Qn,"EndLabelPreprocessor",1561),b(1562,1,{},R0n),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"EndLabelPreprocessor/lambda$0$Type",1562),b(1563,1,re,gPn),o.Cd=function(e){nle(this.a,this.b,this.c,u(e,10))},o.a=0,o.b=0,o.c=!1,w(Qn,"EndLabelPreprocessor/lambda$1$Type",1563),b(1564,1,Le,K0n),o.Mb=function(e){return x(v(u(e,72),(cn(),Sh)))===x(($f(),Rv))},w(Qn,"EndLabelPreprocessor/lambda$2$Type",1564),b(1565,1,re,W9n),o.Cd=function(e){Re(this.a,u(e,72))},w(Qn,"EndLabelPreprocessor/lambda$3$Type",1565),b(1566,1,Le,B0n),o.Mb=function(e){return x(v(u(e,72),(cn(),Sh)))===x(($f(),J0))},w(Qn,"EndLabelPreprocessor/lambda$4$Type",1566),b(1567,1,re,J9n),o.Cd=function(e){Re(this.a,u(e,72))},w(Qn,"EndLabelPreprocessor/lambda$5$Type",1567),b(1615,1,vt,I5n),o.Kf=function(e,t){k5e(u(e,36),t)};var BZn;w(Qn,"EndLabelSorter",1615),b(1616,1,De,F0n),o.Ne=function(e,t){return Z8e(u(e,465),u(t,465))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"EndLabelSorter/1",1616),b(465,1,{465:1},HOn),w(Qn,"EndLabelSorter/LabelGroup",465),b(1617,1,{},_0n),o.Kb=function(e){return r7(),new Cn(null,new On(u(e,30).a,16))},w(Qn,"EndLabelSorter/lambda$0$Type",1617),b(1618,1,Le,H0n),o.Mb=function(e){return r7(),u(e,10).k==(Vn(),Xt)},w(Qn,"EndLabelSorter/lambda$1$Type",1618),b(1619,1,re,q0n),o.Cd=function(e){dje(u(e,10))},w(Qn,"EndLabelSorter/lambda$2$Type",1619),b(1620,1,Le,U0n),o.Mb=function(e){return r7(),x(v(u(e,72),(cn(),Sh)))===x(($f(),J0))},w(Qn,"EndLabelSorter/lambda$3$Type",1620),b(1621,1,Le,G0n),o.Mb=function(e){return r7(),x(v(u(e,72),(cn(),Sh)))===x(($f(),Rv))},w(Qn,"EndLabelSorter/lambda$4$Type",1621),b(1568,1,vt,z0n),o.Kf=function(e,t){mOe(this,u(e,36))},o.b=0,o.c=0,w(Qn,"FinalSplineBendpointsCalculator",1568),b(1569,1,{},X0n),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"FinalSplineBendpointsCalculator/lambda$0$Type",1569),b(1570,1,{},V0n),o.Kb=function(e){return new Cn(null,new wb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(Qn,"FinalSplineBendpointsCalculator/lambda$1$Type",1570),b(1571,1,Le,W0n),o.Mb=function(e){return!fr(u(e,18))},w(Qn,"FinalSplineBendpointsCalculator/lambda$2$Type",1571),b(1572,1,Le,J0n),o.Mb=function(e){return kt(u(e,18),(W(),Ld))},w(Qn,"FinalSplineBendpointsCalculator/lambda$3$Type",1572),b(1573,1,re,Q9n),o.Cd=function(e){SPe(this.a,u(e,131))},w(Qn,"FinalSplineBendpointsCalculator/lambda$4$Type",1573),b(1574,1,re,Q0n),o.Cd=function(e){Qk(u(e,18).a)},w(Qn,"FinalSplineBendpointsCalculator/lambda$5$Type",1574),b(803,1,vt,NG),o.Kf=function(e,t){lAe(this,u(e,36),t)},w(Qn,"GraphTransformer",803),b(517,22,{3:1,34:1,22:1,517:1},zz);var L_,aj,FZn=we(Qn,"GraphTransformer/Mode",517,ke,Fge,ybe),_Zn;b(1575,1,vt,Y0n),o.Kf=function(e,t){NTe(u(e,36),t)},w(Qn,"HierarchicalNodeResizingProcessor",1575),b(1576,1,vt,Z0n),o.Kf=function(e,t){Y4e(u(e,36),t)},w(Qn,"HierarchicalPortConstraintProcessor",1576),b(1577,1,De,ngn),o.Ne=function(e,t){return k9e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"HierarchicalPortConstraintProcessor/NodeComparator",1577),b(1578,1,vt,egn),o.Kf=function(e,t){yIe(u(e,36),t)},w(Qn,"HierarchicalPortDummySizeProcessor",1578),b(1579,1,vt,tgn),o.Kf=function(e,t){ASe(this,u(e,36),t)},o.a=0,w(Qn,"HierarchicalPortOrthogonalEdgeRouter",1579),b(1580,1,De,ign),o.Ne=function(e,t){return N1e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"HierarchicalPortOrthogonalEdgeRouter/1",1580),b(1581,1,De,rgn),o.Ne=function(e,t){return Bme(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"HierarchicalPortOrthogonalEdgeRouter/2",1581),b(1582,1,vt,cgn),o.Kf=function(e,t){Vye(u(e,36),t)},w(Qn,"HierarchicalPortPositionProcessor",1582),b(1583,1,vt,K5n),o.Kf=function(e,t){hNe(this,u(e,36))},o.a=0,o.c=0;var MI,TI;w(Qn,"HighDegreeNodeLayeringProcessor",1583),b(580,1,{580:1},ugn),o.b=-1,o.d=-1,w(Qn,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",580),b(1584,1,{},ogn),o.Kb=function(e){return N7(),ji(u(e,10))},o.Fb=function(e){return this===e},w(Qn,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1584),b(1585,1,{},sgn),o.Kb=function(e){return N7(),Qt(u(e,10))},o.Fb=function(e){return this===e},w(Qn,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1585),b(1591,1,vt,fgn),o.Kf=function(e,t){dIe(this,u(e,36),t)},w(Qn,"HyperedgeDummyMerger",1591),b(804,1,{},NV),o.a=!1,o.b=!1,o.c=!1,w(Qn,"HyperedgeDummyMerger/MergeState",804),b(1592,1,{},hgn),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"HyperedgeDummyMerger/lambda$0$Type",1592),b(1593,1,{},lgn),o.Kb=function(e){return new Cn(null,new On(u(e,10).j,16))},w(Qn,"HyperedgeDummyMerger/lambda$1$Type",1593),b(1594,1,re,agn),o.Cd=function(e){u(e,12).p=-1},w(Qn,"HyperedgeDummyMerger/lambda$2$Type",1594),b(1595,1,vt,dgn),o.Kf=function(e,t){lIe(u(e,36),t)},w(Qn,"HypernodesProcessor",1595),b(1596,1,vt,bgn),o.Kf=function(e,t){kIe(u(e,36),t)},w(Qn,"InLayerConstraintProcessor",1596),b(1597,1,vt,wgn),o.Kf=function(e,t){dve(u(e,36),t)},w(Qn,"InnermostNodeMarginCalculator",1597),b(1598,1,vt,ggn),o.Kf=function(e,t){TLe(this,u(e,36))},o.a=li,o.b=li,o.c=Pt,o.d=Pt;var kDe=w(Qn,"InteractiveExternalPortPositioner",1598);b(1599,1,{},pgn),o.Kb=function(e){return u(e,18).d.i},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$0$Type",1599),b(1600,1,{},Y9n),o.Kb=function(e){return D1e(this.a,B(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$1$Type",1600),b(1601,1,{},mgn),o.Kb=function(e){return u(e,18).c.i},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$2$Type",1601),b(1602,1,{},Z9n),o.Kb=function(e){return $1e(this.a,B(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$3$Type",1602),b(1603,1,{},n7n),o.Kb=function(e){return Lae(this.a,B(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$4$Type",1603),b(1604,1,{},e7n),o.Kb=function(e){return Nae(this.a,B(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$5$Type",1604),b(81,22,{3:1,34:1,22:1,81:1,196:1},ei),o.dg=function(){switch(this.g){case 15:return new $pn;case 22:return new xpn;case 47:return new Bpn;case 28:case 35:return new Ign;case 32:return new T0n;case 42:return new P0n;case 1:return new I0n;case 41:return new O0n;case 56:return new NG((Xm(),aj));case 0:return new NG((Xm(),L_));case 2:return new A0n;case 54:return new L0n;case 33:return new x0n;case 51:return new z0n;case 55:return new Y0n;case 13:return new Z0n;case 38:return new egn;case 44:return new tgn;case 40:return new cgn;case 9:return new K5n;case 49:return new eSn;case 37:return new fgn;case 43:return new dgn;case 27:return new bgn;case 30:return new wgn;case 3:return new ggn;case 18:return new kgn;case 29:return new ygn;case 5:return new B5n;case 50:return new vgn;case 34:return new F5n;case 36:return new Ogn;case 52:return new I5n;case 11:return new Agn;case 7:return new _5n;case 39:return new Lgn;case 45:return new Ngn;case 16:return new Dgn;case 10:return new XMn;case 48:return new Kgn;case 21:return new Bgn;case 23:return new gL((Ib(),Q8));case 8:return new _gn;case 12:return new qgn;case 4:return new Ugn;case 19:return new X5n;case 17:return new n2n;case 53:return new e2n;case 6:return new d2n;case 25:return new Vyn;case 46:return new u2n;case 31:return new qSn;case 14:return new y2n;case 26:return new Hpn;case 20:return new C2n;case 24:return new gL((Ib(),IO));default:throw T(new Gn(cB+(this.f!=null?this.f:""+this.g)))}};var Fon,_on,Hon,qon,Uon,Gon,zon,Xon,Von,Won,b2,CI,SI,Jon,Qon,Yon,Zon,nsn,esn,tsn,A8,isn,rsn,csn,usn,osn,N_,PI,II,ssn,OI,AI,LI,fv,L0,N0,fsn,NI,DI,hsn,$I,xI,lsn,asn,dsn,bsn,RI,D_,dj,KI,BI,FI,_I,wsn,gsn,psn,msn,yDe=we(Qn,uB,81,ke,iqn,kde),HZn;b(1605,1,vt,kgn),o.Kf=function(e,t){ELe(u(e,36),t)},w(Qn,"InvertedPortProcessor",1605),b(1606,1,vt,ygn),o.Kf=function(e,t){vPe(u(e,36),t)},w(Qn,"LabelAndNodeSizeProcessor",1606),b(1607,1,Le,jgn),o.Mb=function(e){return u(e,10).k==(Vn(),Xt)},w(Qn,"LabelAndNodeSizeProcessor/lambda$0$Type",1607),b(1608,1,Le,Egn),o.Mb=function(e){return u(e,10).k==(Vn(),Zt)},w(Qn,"LabelAndNodeSizeProcessor/lambda$1$Type",1608),b(1609,1,re,pPn),o.Cd=function(e){ele(this.b,this.a,this.c,u(e,10))},o.a=!1,o.c=!1,w(Qn,"LabelAndNodeSizeProcessor/lambda$2$Type",1609),b(1610,1,vt,B5n),o.Kf=function(e,t){WAe(u(e,36),t)};var qZn;w(Qn,"LabelDummyInserter",1610),b(1611,1,ph,Mgn),o.Lb=function(e){return x(v(u(e,72),(cn(),Sh)))===x(($f(),xv))},o.Fb=function(e){return this===e},o.Mb=function(e){return x(v(u(e,72),(cn(),Sh)))===x(($f(),xv))},w(Qn,"LabelDummyInserter/1",1611),b(1612,1,vt,vgn),o.Kf=function(e,t){RAe(u(e,36),t)},w(Qn,"LabelDummyRemover",1612),b(1613,1,Le,Tgn),o.Mb=function(e){return on(un(v(u(e,72),(cn(),jH))))},w(Qn,"LabelDummyRemover/lambda$0$Type",1613),b(1378,1,vt,F5n),o.Kf=function(e,t){IAe(this,u(e,36),t)},o.a=null;var $_;w(Qn,"LabelDummySwitcher",1378),b(292,1,{292:1},tUn),o.c=0,o.d=null,o.f=0,w(Qn,"LabelDummySwitcher/LabelDummyInfo",292),b(1379,1,{},Cgn),o.Kb=function(e){return Hp(),new Cn(null,new On(u(e,30).a,16))},w(Qn,"LabelDummySwitcher/lambda$0$Type",1379),b(1380,1,Le,Sgn),o.Mb=function(e){return Hp(),u(e,10).k==(Vn(),Sc)},w(Qn,"LabelDummySwitcher/lambda$1$Type",1380),b(1381,1,{},t7n),o.Kb=function(e){return gae(this.a,u(e,10))},w(Qn,"LabelDummySwitcher/lambda$2$Type",1381),b(1382,1,re,i7n),o.Cd=function(e){x0e(this.a,u(e,292))},w(Qn,"LabelDummySwitcher/lambda$3$Type",1382),b(1383,1,De,Pgn),o.Ne=function(e,t){return u0e(u(e,292),u(t,292))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"LabelDummySwitcher/lambda$4$Type",1383),b(802,1,vt,Ign),o.Kf=function(e,t){mme(u(e,36),t)},w(Qn,"LabelManagementProcessor",802),b(1614,1,vt,Ogn),o.Kf=function(e,t){WCe(u(e,36),t)},w(Qn,"LabelSideSelector",1614),b(1622,1,vt,Agn),o.Kf=function(e,t){xIe(u(e,36),t)},w(Qn,"LayerConstraintPostprocessor",1622),b(1623,1,vt,_5n),o.Kf=function(e,t){AMe(u(e,36),t)};var vsn;w(Qn,"LayerConstraintPreprocessor",1623),b(371,22,{3:1,34:1,22:1,371:1},aM);var bj,HI,qI,x_,UZn=we(Qn,"LayerConstraintPreprocessor/HiddenNodeConnections",371,ke,Jpe,yde),GZn;b(1624,1,vt,Lgn),o.Kf=function(e,t){ZOe(u(e,36),t)},w(Qn,"LayerSizeAndGraphHeightCalculator",1624),b(1625,1,vt,Ngn),o.Kf=function(e,t){DTe(u(e,36),t)},w(Qn,"LongEdgeJoiner",1625),b(1626,1,vt,Dgn),o.Kf=function(e,t){IOe(u(e,36),t)},w(Qn,"LongEdgeSplitter",1626),b(1627,1,vt,XMn),o.Kf=function(e,t){hLe(this,u(e,36),t)},o.e=0,o.f=0,o.j=0,o.k=0,o.n=0,o.o=0;var zZn,XZn;w(Qn,"NodePromotion",1627),b(1628,1,De,$gn),o.Ne=function(e,t){return E6e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"NodePromotion/1",1628),b(1629,1,De,xgn),o.Ne=function(e,t){return M6e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"NodePromotion/2",1629),b(1630,1,{},Rgn),o.Kb=function(e){return u(e,42),XM(),_n(),!0},o.Fb=function(e){return this===e},w(Qn,"NodePromotion/lambda$0$Type",1630),b(1631,1,{},o7n),o.Kb=function(e){return v2e(this.a,u(e,42))},o.Fb=function(e){return this===e},o.a=0,w(Qn,"NodePromotion/lambda$1$Type",1631),b(1632,1,{},s7n),o.Kb=function(e){return m2e(this.a,u(e,42))},o.Fb=function(e){return this===e},o.a=0,w(Qn,"NodePromotion/lambda$2$Type",1632),b(1633,1,vt,Kgn),o.Kf=function(e,t){rNe(u(e,36),t)},w(Qn,"NorthSouthPortPostprocessor",1633),b(1634,1,vt,Bgn),o.Kf=function(e,t){KLe(u(e,36),t)},w(Qn,"NorthSouthPortPreprocessor",1634),b(1635,1,De,Fgn),o.Ne=function(e,t){return Kve(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"NorthSouthPortPreprocessor/lambda$0$Type",1635),b(1636,1,vt,_gn),o.Kf=function(e,t){nIe(u(e,36),t)},w(Qn,"PartitionMidprocessor",1636),b(1637,1,Le,Hgn),o.Mb=function(e){return kt(u(e,10),(cn(),Ev))},w(Qn,"PartitionMidprocessor/lambda$0$Type",1637),b(1638,1,re,f7n),o.Cd=function(e){vge(this.a,u(e,10))},w(Qn,"PartitionMidprocessor/lambda$1$Type",1638),b(1639,1,vt,qgn),o.Kf=function(e,t){eCe(u(e,36),t)},w(Qn,"PartitionPostprocessor",1639),b(1640,1,vt,Ugn),o.Kf=function(e,t){wMe(u(e,36),t)},w(Qn,"PartitionPreprocessor",1640),b(1641,1,Le,Ggn),o.Mb=function(e){return kt(u(e,10),(cn(),Ev))},w(Qn,"PartitionPreprocessor/lambda$0$Type",1641),b(1642,1,{},zgn),o.Kb=function(e){return new Cn(null,new wb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(Qn,"PartitionPreprocessor/lambda$1$Type",1642),b(1643,1,Le,Xgn),o.Mb=function(e){return c9e(u(e,18))},w(Qn,"PartitionPreprocessor/lambda$2$Type",1643),b(1644,1,re,Vgn),o.Cd=function(e){e6e(u(e,18))},w(Qn,"PartitionPreprocessor/lambda$3$Type",1644),b(1645,1,vt,X5n),o.Kf=function(e,t){DPe(u(e,36),t)};var ksn,VZn,WZn,JZn,ysn,jsn;w(Qn,"PortListSorter",1645),b(1648,1,De,Wgn),o.Ne=function(e,t){return zLn(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"PortListSorter/lambda$0$Type",1648),b(1650,1,De,Jgn),o.Ne=function(e,t){return CUn(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"PortListSorter/lambda$1$Type",1650),b(1646,1,{},Qgn),o.Kb=function(e){return r4(),u(e,12).e},w(Qn,"PortListSorter/lambda$2$Type",1646),b(1647,1,{},Ygn),o.Kb=function(e){return r4(),u(e,12).g},w(Qn,"PortListSorter/lambda$3$Type",1647),b(1649,1,De,Zgn),o.Ne=function(e,t){return I7e(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"PortListSorter/lambda$4$Type",1649),b(1651,1,vt,n2n),o.Kf=function(e,t){UMe(u(e,36),t)},w(Qn,"PortSideProcessor",1651),b(1652,1,vt,e2n),o.Kf=function(e,t){GSe(u(e,36),t)},w(Qn,"ReversedEdgeRestorer",1652),b(1657,1,vt,Vyn),o.Kf=function(e,t){l7e(this,u(e,36),t)},w(Qn,"SelfLoopPortRestorer",1657),b(1658,1,{},t2n),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"SelfLoopPortRestorer/lambda$0$Type",1658),b(1659,1,Le,i2n),o.Mb=function(e){return u(e,10).k==(Vn(),Xt)},w(Qn,"SelfLoopPortRestorer/lambda$1$Type",1659),b(1660,1,Le,r2n),o.Mb=function(e){return kt(u(e,10),(W(),sw))},w(Qn,"SelfLoopPortRestorer/lambda$2$Type",1660),b(1661,1,{},c2n),o.Kb=function(e){return u(v(u(e,10),(W(),sw)),337)},w(Qn,"SelfLoopPortRestorer/lambda$3$Type",1661),b(1662,1,re,c7n),o.Cd=function(e){Cje(this.a,u(e,337))},w(Qn,"SelfLoopPortRestorer/lambda$4$Type",1662),b(805,1,re,qU),o.Cd=function(e){Bje(u(e,105))},w(Qn,"SelfLoopPortRestorer/lambda$5$Type",805),b(1663,1,vt,u2n),o.Kf=function(e,t){p9e(u(e,36),t)},w(Qn,"SelfLoopPostProcessor",1663),b(1664,1,{},o2n),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"SelfLoopPostProcessor/lambda$0$Type",1664),b(1665,1,Le,s2n),o.Mb=function(e){return u(e,10).k==(Vn(),Xt)},w(Qn,"SelfLoopPostProcessor/lambda$1$Type",1665),b(1666,1,Le,f2n),o.Mb=function(e){return kt(u(e,10),(W(),sw))},w(Qn,"SelfLoopPostProcessor/lambda$2$Type",1666),b(1667,1,re,h2n),o.Cd=function(e){Pke(u(e,10))},w(Qn,"SelfLoopPostProcessor/lambda$3$Type",1667),b(1668,1,{},l2n),o.Kb=function(e){return new Cn(null,new On(u(e,105).f,1))},w(Qn,"SelfLoopPostProcessor/lambda$4$Type",1668),b(1669,1,re,r7n),o.Cd=function(e){n3e(this.a,u(e,340))},w(Qn,"SelfLoopPostProcessor/lambda$5$Type",1669),b(1670,1,Le,a2n),o.Mb=function(e){return!!u(e,105).i},w(Qn,"SelfLoopPostProcessor/lambda$6$Type",1670),b(1671,1,re,u7n),o.Cd=function(e){nhe(this.a,u(e,105))},w(Qn,"SelfLoopPostProcessor/lambda$7$Type",1671),b(1653,1,vt,d2n),o.Kf=function(e,t){vTe(u(e,36),t)},w(Qn,"SelfLoopPreProcessor",1653),b(1654,1,{},b2n),o.Kb=function(e){return new Cn(null,new On(u(e,105).f,1))},w(Qn,"SelfLoopPreProcessor/lambda$0$Type",1654),b(1655,1,{},w2n),o.Kb=function(e){return u(e,340).a},w(Qn,"SelfLoopPreProcessor/lambda$1$Type",1655),b(1656,1,re,g2n),o.Cd=function(e){i1e(u(e,18))},w(Qn,"SelfLoopPreProcessor/lambda$2$Type",1656),b(1672,1,vt,qSn),o.Kf=function(e,t){oje(this,u(e,36),t)},w(Qn,"SelfLoopRouter",1672),b(1673,1,{},p2n),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"SelfLoopRouter/lambda$0$Type",1673),b(1674,1,Le,m2n),o.Mb=function(e){return u(e,10).k==(Vn(),Xt)},w(Qn,"SelfLoopRouter/lambda$1$Type",1674),b(1675,1,Le,v2n),o.Mb=function(e){return kt(u(e,10),(W(),sw))},w(Qn,"SelfLoopRouter/lambda$2$Type",1675),b(1676,1,{},k2n),o.Kb=function(e){return u(v(u(e,10),(W(),sw)),337)},w(Qn,"SelfLoopRouter/lambda$3$Type",1676),b(1677,1,re,SMn),o.Cd=function(e){dge(this.a,this.b,u(e,337))},w(Qn,"SelfLoopRouter/lambda$4$Type",1677),b(1678,1,vt,y2n),o.Kf=function(e,t){RCe(u(e,36),t)},w(Qn,"SemiInteractiveCrossMinProcessor",1678),b(1679,1,Le,j2n),o.Mb=function(e){return u(e,10).k==(Vn(),Xt)},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1679),b(1680,1,Le,E2n),o.Mb=function(e){return uIn(u(e,10))._b((cn(),H0))},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1680),b(1681,1,De,M2n),o.Ne=function(e,t){return nve(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1681),b(1682,1,{},T2n),o.Ve=function(e,t){return kge(u(e,10),u(t,10))},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1682),b(1684,1,vt,C2n),o.Kf=function(e,t){oOe(u(e,36),t)},w(Qn,"SortByInputModelProcessor",1684),b(1685,1,Le,S2n),o.Mb=function(e){return u(e,12).g.c.length!=0},w(Qn,"SortByInputModelProcessor/lambda$0$Type",1685),b(1686,1,re,h7n),o.Cd=function(e){Uje(this.a,u(e,12))},w(Qn,"SortByInputModelProcessor/lambda$1$Type",1686),b(1759,817,{},gxn),o.df=function(e){var t,i,r,c;switch(this.c=e,this.a.g){case 2:t=new Z,Ut(ut(new Cn(null,new On(this.c.a.b,16)),new _2n),new xMn(this,t)),Yk(this,new I2n),nu(t,new O2n),t.c.length=0,Ut(ut(new Cn(null,new On(this.c.a.b,16)),new A2n),new a7n(t)),Yk(this,new L2n),nu(t,new N2n),t.c.length=0,i=pCn(A$(Uw(new Cn(null,new On(this.c.a.b,16)),new d7n(this))),new D2n),Ut(new Cn(null,new On(this.c.a.a,16)),new OMn(i,t)),Yk(this,new x2n),nu(t,new R2n),t.c.length=0;break;case 3:r=new Z,Yk(this,new P2n),c=pCn(A$(Uw(new Cn(null,new On(this.c.a.b,16)),new l7n(this))),new $2n),Ut(ut(new Cn(null,new On(this.c.a.b,16)),new K2n),new LMn(c,r)),Yk(this,new B2n),nu(r,new F2n),r.c.length=0;break;default:throw T(new $yn)}},o.b=0,w(di,"EdgeAwareScanlineConstraintCalculation",1759),b(1760,1,ph,P2n),o.Lb=function(e){return L(u(e,60).g,154)},o.Fb=function(e){return this===e},o.Mb=function(e){return L(u(e,60).g,154)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1760),b(1761,1,{},l7n),o.Ye=function(e){return SEe(this.a,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1761),b(1769,1,JS,PMn),o.de=function(){S5(this.a,this.b,-1)},o.b=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1769),b(1771,1,ph,I2n),o.Lb=function(e){return L(u(e,60).g,154)},o.Fb=function(e){return this===e},o.Mb=function(e){return L(u(e,60).g,154)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1771),b(1772,1,re,O2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1772),b(1773,1,Le,A2n),o.Mb=function(e){return L(u(e,60).g,10)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1773),b(1775,1,re,a7n),o.Cd=function(e){X5e(this.a,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1775),b(1774,1,JS,NMn),o.de=function(){S5(this.b,this.a,-1)},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1774),b(1776,1,ph,L2n),o.Lb=function(e){return L(u(e,60).g,10)},o.Fb=function(e){return this===e},o.Mb=function(e){return L(u(e,60).g,10)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1776),b(1777,1,re,N2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1777),b(1778,1,{},d7n),o.Ye=function(e){return PEe(this.a,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1778),b(1779,1,{},D2n),o.We=function(){return 0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1779),b(1762,1,{},$2n),o.We=function(){return 0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1762),b(1781,1,re,OMn),o.Cd=function(e){Ywe(this.a,this.b,u(e,316))},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1781),b(1780,1,JS,AMn),o.de=function(){LHn(this.a,this.b,-1)},o.b=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1780),b(1782,1,ph,x2n),o.Lb=function(e){return u(e,60),!0},o.Fb=function(e){return this===e},o.Mb=function(e){return u(e,60),!0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1782),b(1783,1,re,R2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1783),b(1763,1,Le,K2n),o.Mb=function(e){return L(u(e,60).g,10)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1763),b(1765,1,re,LMn),o.Cd=function(e){Zwe(this.a,this.b,u(e,60))},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1765),b(1764,1,JS,DMn),o.de=function(){S5(this.b,this.a,-1)},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1764),b(1766,1,ph,B2n),o.Lb=function(e){return u(e,60),!0},o.Fb=function(e){return this===e},o.Mb=function(e){return u(e,60),!0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1766),b(1767,1,re,F2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1767),b(1768,1,Le,_2n),o.Mb=function(e){return L(u(e,60).g,154)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1768),b(1770,1,re,xMn),o.Cd=function(e){p4e(this.a,this.b,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1770),b(1586,1,vt,eSn),o.Kf=function(e,t){$Oe(this,u(e,36),t)};var QZn;w(di,"HorizontalGraphCompactor",1586),b(1587,1,{},b7n),o.ff=function(e,t){var i,r,c;return tQ(e,t)||(i=Ig(e),r=Ig(t),i&&i.k==(Vn(),Zt)||r&&r.k==(Vn(),Zt))?0:(c=u(v(this.a.a,(W(),E2)),312),B1e(c,i?i.k:(Vn(),Ti),r?r.k:(Vn(),Ti)))},o.gf=function(e,t){var i,r,c;return tQ(e,t)?1:(i=Ig(e),r=Ig(t),c=u(v(this.a.a,(W(),E2)),312),XX(c,i?i.k:(Vn(),Ti),r?r.k:(Vn(),Ti)))},w(di,"HorizontalGraphCompactor/1",1587),b(1588,1,{},H2n),o.ef=function(e,t){return c6(),e.a.i==0},w(di,"HorizontalGraphCompactor/lambda$0$Type",1588),b(1589,1,{},w7n),o.ef=function(e,t){return Ege(this.a,e,t)},w(di,"HorizontalGraphCompactor/lambda$1$Type",1589),b(1730,1,{},GDn);var YZn,ZZn;w(di,"LGraphToCGraphTransformer",1730),b(1738,1,Le,q2n),o.Mb=function(e){return e!=null},w(di,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1738),b(1731,1,{},U2n),o.Kb=function(e){return Rs(),Jr(v(u(u(e,60).g,10),(W(),st)))},w(di,"LGraphToCGraphTransformer/lambda$0$Type",1731),b(1732,1,{},G2n),o.Kb=function(e){return Rs(),tKn(u(u(e,60).g,154))},w(di,"LGraphToCGraphTransformer/lambda$1$Type",1732),b(1741,1,Le,z2n),o.Mb=function(e){return Rs(),L(u(e,60).g,10)},w(di,"LGraphToCGraphTransformer/lambda$10$Type",1741),b(1742,1,re,X2n),o.Cd=function(e){Pge(u(e,60))},w(di,"LGraphToCGraphTransformer/lambda$11$Type",1742),b(1743,1,Le,V2n),o.Mb=function(e){return Rs(),L(u(e,60).g,154)},w(di,"LGraphToCGraphTransformer/lambda$12$Type",1743),b(1747,1,re,W2n),o.Cd=function(e){c5e(u(e,60))},w(di,"LGraphToCGraphTransformer/lambda$13$Type",1747),b(1744,1,re,g7n),o.Cd=function(e){Lle(this.a,u(e,8))},o.a=0,w(di,"LGraphToCGraphTransformer/lambda$14$Type",1744),b(1745,1,re,p7n),o.Cd=function(e){Dle(this.a,u(e,116))},o.a=0,w(di,"LGraphToCGraphTransformer/lambda$15$Type",1745),b(1746,1,re,m7n),o.Cd=function(e){Nle(this.a,u(e,8))},o.a=0,w(di,"LGraphToCGraphTransformer/lambda$16$Type",1746),b(1748,1,{},J2n),o.Kb=function(e){return Rs(),new Cn(null,new wb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(di,"LGraphToCGraphTransformer/lambda$17$Type",1748),b(1749,1,Le,Q2n),o.Mb=function(e){return Rs(),fr(u(e,18))},w(di,"LGraphToCGraphTransformer/lambda$18$Type",1749),b(1750,1,re,v7n),o.Cd=function(e){Wme(this.a,u(e,18))},w(di,"LGraphToCGraphTransformer/lambda$19$Type",1750),b(1734,1,re,k7n),o.Cd=function(e){jpe(this.a,u(e,154))},w(di,"LGraphToCGraphTransformer/lambda$2$Type",1734),b(1751,1,{},Y2n),o.Kb=function(e){return Rs(),new Cn(null,new On(u(e,30).a,16))},w(di,"LGraphToCGraphTransformer/lambda$20$Type",1751),b(1752,1,{},Z2n),o.Kb=function(e){return Rs(),new Cn(null,new wb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(di,"LGraphToCGraphTransformer/lambda$21$Type",1752),b(1753,1,{},npn),o.Kb=function(e){return Rs(),u(v(u(e,18),(W(),Ld)),15)},w(di,"LGraphToCGraphTransformer/lambda$22$Type",1753),b(1754,1,Le,epn),o.Mb=function(e){return F1e(u(e,15))},w(di,"LGraphToCGraphTransformer/lambda$23$Type",1754),b(1755,1,re,y7n),o.Cd=function(e){gEe(this.a,u(e,15))},w(di,"LGraphToCGraphTransformer/lambda$24$Type",1755),b(1733,1,re,RMn),o.Cd=function(e){v3e(this.a,this.b,u(e,154))},w(di,"LGraphToCGraphTransformer/lambda$3$Type",1733),b(1735,1,{},tpn),o.Kb=function(e){return Rs(),new Cn(null,new On(u(e,30).a,16))},w(di,"LGraphToCGraphTransformer/lambda$4$Type",1735),b(1736,1,{},ipn),o.Kb=function(e){return Rs(),new Cn(null,new wb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(di,"LGraphToCGraphTransformer/lambda$5$Type",1736),b(1737,1,{},rpn),o.Kb=function(e){return Rs(),u(v(u(e,18),(W(),Ld)),15)},w(di,"LGraphToCGraphTransformer/lambda$6$Type",1737),b(1739,1,re,j7n),o.Cd=function(e){IEe(this.a,u(e,15))},w(di,"LGraphToCGraphTransformer/lambda$8$Type",1739),b(1740,1,re,KMn),o.Cd=function(e){r1e(this.a,this.b,u(e,154))},w(di,"LGraphToCGraphTransformer/lambda$9$Type",1740),b(1729,1,{},cpn),o.cf=function(e){var t,i,r,c,s;for(this.a=e,this.d=new oL,this.c=F(eon,Rn,125,this.a.a.a.c.length,0,1),this.b=0,i=new M(this.a.a.a);i.a<i.c.c.length;)t=u(E(i),316),t.d=this.b,s=sb(i7(new za,t),this.d),this.c[this.b]=s,++this.b;for(zAe(this),zLe(this),WTe(this),IR(KN(this.d),new op),c=new M(this.a.a.b);c.a<c.c.c.length;)r=u(E(c),60),r.d.c=this.c[r.a.d].e+r.b.a},o.b=0,w(di,"NetworkSimplexCompaction",1729),b(154,1,{34:1,154:1},_5),o.Fd=function(e){return u4e(this,u(e,154))},o.Ib=function(){return tKn(this)},w(di,"VerticalSegment",154),b(841,1,{},VZ),o.c=0,o.e=0,o.i=0,w(r8,"BetweenLayerEdgeTwoNodeCrossingsCounter",841),b(677,1,{677:1},Oxn),o.Ib=function(){return"AdjacencyList [node="+this.d+", adjacencies= "+this.a+"]"},o.b=0,o.c=0,o.f=0,w(r8,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList",677),b(293,1,{34:1,293:1},fSn),o.Fd=function(e){return jwe(this,u(e,293))},o.Ib=function(){return"Adjacency [position="+this.c+", cardinality="+this.a+", currentCardinality="+this.b+"]"},o.a=0,o.b=0,o.c=0,w(r8,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList/Adjacency",293),b(2026,1,{},o_n),o.b=0,o.e=!1,w(r8,"CrossingMatrixFiller",2026);var nne=Dt(Vh,"IInitializable");b(1867,1,Fy,FMn),o.gg=function(e,t,i,r,c,s){},o.ig=function(e,t,i){},o.eg=function(){return this.c!=(Ib(),Q8)},o.fg=function(){this.e=F(ye,_e,28,this.d,15,1)},o.hg=function(e,t){t[e][0].c.p=e},o.jg=function(e,t,i,r){++this.d},o.kg=function(){return!0},o.lg=function(e,t,i,r){return VRn(this,e,t,i),A3e(this,t)},o.mg=function(e,t){var i;return i=Phe(t,e.length),VRn(this,e,i,t),hRn(this,i)},o.d=0,w(r8,"GreedySwitchHeuristic",1867),b(2029,1,{},iIn),o.b=0,o.d=0,w(r8,"NorthSouthEdgeNeighbouringNodeCrossingsCounter",2029),b(2016,1,{},Fqn),o.a=!1,w(r8,"SwitchDecider",2016),b(105,1,{105:1},w_n),o.a=null,o.c=null,o.i=null,w(w3,"SelfHyperLoop",105),b(2013,1,{},tBn),o.c=0,o.e=0,w(w3,"SelfHyperLoopLabels",2013),b(421,22,{3:1,34:1,22:1,421:1},dM);var j3,hv,lv,R_,ene=we(w3,"SelfHyperLoopLabels/Alignment",421,ke,Wpe,jde),tne;b(340,1,{340:1},$Nn),w(w3,"SelfLoopEdge",340),b(337,1,{337:1},iBn),o.a=!1,w(w3,"SelfLoopHolder",337),b(1790,1,Le,ppn),o.Mb=function(e){return fr(u(e,18))},w(w3,"SelfLoopHolder/lambda$0$Type",1790),b(113,1,{113:1},sBn),o.a=!1,o.c=!1,w(w3,"SelfLoopPort",113),b(1855,1,Le,mpn),o.Mb=function(e){return fr(u(e,18))},w(w3,"SelfLoopPort/lambda$0$Type",1855),b(375,22,{3:1,34:1,22:1,375:1},s7);var UI,wj,GI,zI,XI,ine=we(w3,"SelfLoopType",375,ke,F3e,Ede),rne;b(1798,1,{},Y5n);var cne,une,one,sne;w(Oo,"PortRestorer",1798),b(372,22,{3:1,34:1,22:1,372:1},FL);var iw,ka,rw,K_=we(Oo,"PortRestorer/PortSideArea",372,ke,x2e,vde),fne;b(1799,1,{},opn),o.Kb=function(e){return oa(),u(e,15).Oc()},w(Oo,"PortRestorer/lambda$0$Type",1799),b(1800,1,re,spn),o.Cd=function(e){oa(),u(e,113).c=!1},w(Oo,"PortRestorer/lambda$1$Type",1800),b(1809,1,Le,fpn),o.Mb=function(e){return oa(),u(e,12).j==(en(),Wn)},w(Oo,"PortRestorer/lambda$10$Type",1809),b(1810,1,{},hpn),o.Kb=function(e){return oa(),u(e,113).d},w(Oo,"PortRestorer/lambda$11$Type",1810),b(1811,1,re,E7n),o.Cd=function(e){Nhe(this.a,u(e,12))},w(Oo,"PortRestorer/lambda$12$Type",1811),b(1801,1,re,M7n),o.Cd=function(e){W1e(this.a,u(e,105))},w(Oo,"PortRestorer/lambda$2$Type",1801),b(1802,1,De,lpn),o.Ne=function(e,t){return I4e(u(e,113),u(t,113))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Oo,"PortRestorer/lambda$3$Type",1802),b(1803,1,Le,apn),o.Mb=function(e){return oa(),u(e,113).c},w(Oo,"PortRestorer/lambda$4$Type",1803),b(1804,1,Le,dpn),o.Mb=function(e){return kve(u(e,12))},w(Oo,"PortRestorer/lambda$5$Type",1804),b(1805,1,Le,upn),o.Mb=function(e){return oa(),u(e,12).j==(en(),Xn)},w(Oo,"PortRestorer/lambda$6$Type",1805),b(1806,1,Le,bpn),o.Mb=function(e){return oa(),u(e,12).j==(en(),Zn)},w(Oo,"PortRestorer/lambda$7$Type",1806),b(1807,1,Le,wpn),o.Mb=function(e){return Zpe(u(e,12))},w(Oo,"PortRestorer/lambda$8$Type",1807),b(1808,1,Le,gpn),o.Mb=function(e){return oa(),u(e,12).j==(en(),ae)},w(Oo,"PortRestorer/lambda$9$Type",1808),b(276,22,{3:1,34:1,22:1,276:1},Ap);var B_,F_,__,H_,q_,U_,G_,z_,Esn=we(Oo,"PortSideAssigner/Target",276,ke,w4e,Mde),hne;b(1791,1,{},kpn),o.Kb=function(e){return ut(new Cn(null,new On(u(e,105).j,16)),new UU)},w(Oo,"PortSideAssigner/lambda$1$Type",1791),b(1792,1,{},ypn),o.Kb=function(e){return u(e,113).d},w(Oo,"PortSideAssigner/lambda$2$Type",1792),b(1793,1,re,jpn),o.Cd=function(e){gi(u(e,12),(en(),Xn))},w(Oo,"PortSideAssigner/lambda$3$Type",1793),b(1794,1,{},Epn),o.Kb=function(e){return u(e,113).d},w(Oo,"PortSideAssigner/lambda$4$Type",1794),b(1795,1,re,T7n),o.Cd=function(e){Ffe(this.a,u(e,12))},w(Oo,"PortSideAssigner/lambda$5$Type",1795),b(1796,1,De,vpn),o.Ne=function(e,t){return U0e(u(e,105),u(t,105))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Oo,"PortSideAssigner/lambda$6$Type",1796),b(1797,1,De,Mpn),o.Ne=function(e,t){return dwe(u(e,113),u(t,113))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Oo,"PortSideAssigner/lambda$7$Type",1797),b(820,1,Le,UU),o.Mb=function(e){return u(e,113).c},w(Oo,"PortSideAssigner/lambda$8$Type",820),b(2108,1,{}),w(da,"AbstractSelfLoopRouter",2108),b(1816,1,De,Tpn),o.Ne=function(e,t){return Gae(u(e,105),u(t,105))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(da,bXn,1816),b(1817,1,De,Cpn),o.Ne=function(e,t){return Uae(u(e,105),u(t,105))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(da,wXn,1817),b(1856,2108,{},Spn),o.ng=function(e,t,i){return i},w(da,"OrthogonalSelfLoopRouter",1856),b(1858,1,re,BMn),o.Cd=function(e){rZ(this.b,this.a,u(e,8))},w(da,"OrthogonalSelfLoopRouter/lambda$0$Type",1858),b(1857,1856,{},Ppn),o.ng=function(e,t,i){var r,c;return r=e.c.d,wm(i,0,it(Fi(r.n),r.a)),c=e.d.d,Re(i,it(Fi(c.n),c.a)),VPe(i)},w(da,"PolylineSelfLoopRouter",1857),b(1812,1,{},Z5n),o.a=null;var w2;w(da,"RoutingDirector",1812),b(1813,1,De,Ipn),o.Ne=function(e,t){return hwe(u(e,113),u(t,113))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(da,"RoutingDirector/lambda$0$Type",1813),b(1814,1,{},Opn),o.Kb=function(e){return YE(),u(e,105).j},w(da,"RoutingDirector/lambda$1$Type",1814),b(1815,1,re,Apn),o.Cd=function(e){YE(),u(e,15).jd(w2)},w(da,"RoutingDirector/lambda$2$Type",1815),b(1818,1,{},Lpn),w(da,"RoutingSlotAssigner",1818),b(1819,1,Le,C7n),o.Mb=function(e){return wle(this.a,u(e,105))},w(da,"RoutingSlotAssigner/lambda$0$Type",1819),b(1820,1,De,S7n),o.Ne=function(e,t){return Bwe(this.a,u(e,105),u(t,105))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(da,"RoutingSlotAssigner/lambda$1$Type",1820),b(1859,1856,{},Npn),o.ng=function(e,t,i){var r,c,s,f;return r=$(B(nS(e.b.g.b,(cn(),C2)))),f=new lSn(S(C(Ei,1),J,8,0,[(s=e.c.d,it(new rr(s.n),s.a))])),ETe(e,t,i,f,r),Re(f,(c=e.d.d,it(new rr(c.n),c.a))),PBn(new Ben(f))},w(da,"SplineSelfLoopRouter",1859),b(586,1,De,bxn,LPn),o.Ne=function(e,t){return dzn(this,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(ein,"ModelOrderNodeComparator",586),b(1821,1,Le,Dpn),o.Mb=function(e){return u(e,12).e.c.length!=0},w(ein,"ModelOrderNodeComparator/lambda$0$Type",1821),b(821,1,De,qRn,TLn),o.Ne=function(e,t){return SIn(this,e,t)},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},o.b=!1,w(ein,"ModelOrderPortComparator",821),b(815,1,{},GU),o.og=function(e,t){var i,r,c,s;for(c=i_n(t),i=new Z,s=t.f/c,r=1;r<c;++r)nn(i,Y(Se(vc(y.Math.round(r*s)))));return i},o.pg=function(){return!1},w(yh,"ARDCutIndexHeuristic",815),b(1544,1,vt,$pn),o.Kf=function(e,t){aPe(u(e,36),t)},w(yh,"BreakingPointInserter",1544),b(313,1,{313:1},yJ),o.Ib=function(){var e;return e=new R1,e.a+="BPInfo[",e.a+=`
start=`,Lc(e,this.i),e.a+=`
end=`,Lc(e,this.a),e.a+=`
nodeStartEdge=`,Lc(e,this.e),e.a+=`
startEndEdge=`,Lc(e,this.j),e.a+=`
originalEdge=`,Lc(e,this.f),e.a+=`
startInLayerDummy=`,Lc(e,this.k),e.a+=`
startInLayerEdge=`,Lc(e,this.n),e.a+=`
endInLayerDummy=`,Lc(e,this.b),e.a+=`
endInLayerEdge=`,Lc(e,this.c),e.a},w(yh,"BreakingPointInserter/BPInfo",313),b(661,1,{661:1},R7n),o.a=!1,o.b=0,o.c=0,w(yh,"BreakingPointInserter/Cut",661),b(1545,1,vt,xpn),o.Kf=function(e,t){PTe(u(e,36),t)},w(yh,"BreakingPointProcessor",1545),b(1546,1,Le,Rpn),o.Mb=function(e){return i$n(u(e,10))},w(yh,"BreakingPointProcessor/0methodref$isEnd$Type",1546),b(1547,1,Le,Kpn),o.Mb=function(e){return r$n(u(e,10))},w(yh,"BreakingPointProcessor/1methodref$isStart$Type",1547),b(1548,1,vt,Bpn),o.Kf=function(e,t){JTe(this,u(e,36),t)},w(yh,"BreakingPointRemover",1548),b(1549,1,re,Fpn),o.Cd=function(e){u(e,131).k=!0},w(yh,"BreakingPointRemover/lambda$0$Type",1549),b(811,1,{},qnn),o.b=0,o.e=0,o.f=0,o.j=0,w(yh,"GraphStats",811),b(812,1,{},zU),o.Ve=function(e,t){return y.Math.max($(B(e)),$(B(t)))},w(yh,"GraphStats/0methodref$max$Type",812),b(813,1,{},XU),o.Ve=function(e,t){return y.Math.max($(B(e)),$(B(t)))},w(yh,"GraphStats/2methodref$max$Type",813),b(1726,1,{},_pn),o.Ve=function(e,t){return Qbe(B(e),B(t))},w(yh,"GraphStats/lambda$1$Type",1726),b(1727,1,{},P7n),o.Kb=function(e){return fBn(this.a,u(e,30))},w(yh,"GraphStats/lambda$2$Type",1727),b(1728,1,{},I7n),o.Kb=function(e){return eqn(this.a,u(e,30))},w(yh,"GraphStats/lambda$6$Type",1728),b(814,1,{},VU),o.og=function(e,t){var i;return i=u(v(e,(cn(),vhn)),15),i||(Ln(),Ln(),sr)},o.pg=function(){return!1},w(yh,"ICutIndexCalculator/ManualCutIndexCalculator",814),b(816,1,{},WU),o.og=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;for(_=(t.n==null&&RBn(t),t.n),l=(t.d==null&&RBn(t),t.d),D=F(Ii,Cr,28,_.length,15,1),D[0]=_[0],O=_[0],a=1;a<_.length;a++)D[a]=D[a-1]+_[a],O+=_[a];for(c=i_n(t)-1,f=u(v(e,(cn(),khn)),17).a,r=li,i=new Z,p=y.Math.max(0,c-f);p<=y.Math.min(t.f-1,c+f);p++){if(j=O/(p+1),P=0,d=1,s=new Z,A=li,g=0,h=0,k=l[0],p==0)A=O,h=(t.g==null&&(t.g=jxn(t,new XU)),$(t.g));else{for(;d<t.f;)D[d-1]-P>=j&&(nn(s,Y(d)),A=y.Math.max(A,D[d-1]-g),h+=k,P+=D[d-1]-P,g=D[d-1],k=l[d]),k=y.Math.max(k,l[d]),++d;h+=k}m=y.Math.min(1/A,1/t.b/h),m>r&&(r=m,i=s)}return i},o.pg=function(){return!1},w(yh,"MSDCutIndexHeuristic",816),b(1683,1,vt,Hpn),o.Kf=function(e,t){KIe(u(e,36),t)},w(yh,"SingleEdgeGraphWrapper",1683),b(232,22,{3:1,34:1,22:1,232:1},d6);var g2,av,dv,D0,L8,p2,bv=we(Cc,"CenterEdgeLabelPlacementStrategy",232,ke,Eme,Tde),lne;b(431,22,{3:1,34:1,22:1,431:1},Vz);var Msn,X_,Tsn=we(Cc,"ConstraintCalculationStrategy",431,ke,qge,Cde),ane;b(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},_L),o.dg=function(){return F_n(this)},o.qg=function(){return F_n(this)};var gj,N8,Csn,Ssn=we(Cc,"CrossingMinimizationStrategy",322,ke,R2e,Sde),dne;b(351,22,{3:1,34:1,22:1,351:1},HL);var Psn,V_,VI,Isn=we(Cc,"CuttingStrategy",351,ke,K2e,Pde),bne;b(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},f7),o.dg=function(){return OHn(this)},o.qg=function(){return OHn(this)};var Osn,W_,wv,J_,gv,Asn=we(Cc,"CycleBreakingStrategy",348,ke,_3e,Ide),wne;b(428,22,{3:1,34:1,22:1,428:1},Wz);var WI,Lsn,Nsn=we(Cc,"DirectionCongruency",428,ke,Hge,Ode),gne;b(459,22,{3:1,34:1,22:1,459:1},qL);var pv,Q_,m2,pne=we(Cc,"EdgeConstraint",459,ke,B2e,Rde),mne;b(283,22,{3:1,34:1,22:1,283:1},b6);var Y_,Z_,nH,eH,JI,tH,Dsn=we(Cc,"EdgeLabelSideSelection",283,ke,kme,Kde),vne;b(487,22,{3:1,34:1,22:1,487:1},Jz);var QI,$sn,xsn=we(Cc,"EdgeStraighteningStrategy",487,ke,_ge,Bde),kne;b(281,22,{3:1,34:1,22:1,281:1},w6);var iH,Rsn,Ksn,YI,Bsn,Fsn,_sn=we(Cc,"FixedAlignment",281,ke,yme,xde),yne;b(282,22,{3:1,34:1,22:1,282:1},g6);var Hsn,qsn,Usn,Gsn,D8,zsn,Xsn=we(Cc,"GraphCompactionStrategy",282,ke,jme,Ade),jne;b(259,22,{3:1,34:1,22:1,259:1},Lw);var mv,ZI,vv,cs,$8,nO,kv,v2,eO,x8,rH=we(Cc,"GraphProperties",259,ke,uve,Lde),Ene;b(298,22,{3:1,34:1,22:1,298:1},UL);var pj,cH,uH,oH=we(Cc,"GreedySwitchType",298,ke,F2e,Nde),Mne;b(311,22,{3:1,34:1,22:1,311:1},GL);var E3,mj,k2,Tne=we(Cc,"InLayerConstraint",311,ke,_2e,Dde),Cne;b(429,22,{3:1,34:1,22:1,429:1},Qz);var sH,Vsn,Wsn=we(Cc,"InteractiveReferencePoint",429,ke,Wge,$de),Sne,Jsn,M3,cw,tO,Qsn,Ysn,iO,Zsn,vj,rO,R8,T3,Dl,fH,cO,gc,nfn,ya,Hc,hH,lH,kj,Ad,uw,C3,efn,S3,yj,$0,yf,Es,aH,y2,dt,st,tfn,ifn,rfn,cfn,ufn,dH,uO,Xu,ow,bH,P3,K8,zf,j2,sw,E2,M2,yv,Ld,ofn,wH,gH,I3;b(171,22,{3:1,34:1,22:1,171:1},h7);var B8,ja,F8,x0,jj,sfn=we(Cc,"LayerConstraint",171,ke,q3e,Fde),Pne;b(859,1,ms,n8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,iin),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),mfn),(l1(),It)),Nsn),yn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,rin),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(_n(),!1)),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,lP),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),Mfn),It),Wsn),yn(xn)))),ri(e,lP,fB,jee),ri(e,lP,c8,yee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,cin),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,uin),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),yi),zt),yn(xn)))),vn(e,new ln(Lhe(pn(gn(mn(Pn(an(wn(dn(bn(new hn,oin),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),yi),zt),yn(Fd)),S(C(fn,1),J,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,sin),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),Lfn),It),_hn),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,fin),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Y(7)),Zr),Gi),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,hin),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,lin),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,fB),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),pfn),It),Asn),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,_y),NB),"Node Layering Strategy"),"Strategy for node layering."),Sfn),It),Ihn),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ain),NB),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),Tfn),It),sfn),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,din),NB),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),Zr),Gi),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,bin),NB),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Y(-1)),Zr),Gi),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,hB),YXn),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Y(4)),Zr),Gi),yn(xn)))),ri(e,hB,_y,Iee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,lB),YXn),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Y(2)),Zr),Gi),yn(xn)))),ri(e,lB,_y,Aee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,aB),ZXn),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),Cfn),It),Khn),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,dB),ZXn),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Y(0)),Zr),Gi),yn(xn)))),ri(e,dB,aB,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,bB),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Y(et)),Zr),Gi),yn(xn)))),ri(e,bB,_y,Mee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,c8),V4),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),gfn),It),Ssn),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,win),V4),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,wB),V4),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Qi),si),yn(xn)))),ri(e,wB,MP,Vne),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,gB),V4),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),yi),zt),yn(xn)))),ri(e,gB,c8,nee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,gin),V4),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),$2),fn),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,pin),V4),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),$2),fn),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,min),V4),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),Zr),Gi),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,vin),V4),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Y(-1)),Zr),Gi),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,kin),nVn),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Y(40)),Zr),Gi),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,pB),nVn),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),wfn),It),oH),yn(xn)))),ri(e,pB,c8,zne),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,aP),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),bfn),It),oH),yn(xn)))),ri(e,aP,c8,qne),ri(e,aP,MP,Une),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,c2),eVn),"Node Placement Strategy"),"Strategy for node placement."),Afn),It),Nhn),yn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,dP),eVn),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),yi),zt),yn(xn)))),ri(e,dP,c2,Hee),ri(e,dP,c2,qee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,mB),tVn),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),Pfn),It),xsn),yn(xn)))),ri(e,mB,c2,Kee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,vB),tVn),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),Ifn),It),_sn),yn(xn)))),ri(e,vB,c2,Fee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,kB),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Qi),si),yn(xn)))),ri(e,kB,c2,Gee),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,yB),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),It),KH),yn(pi)))),ri(e,yB,c2,Wee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,jB),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),Ofn),It),KH),yn(xn)))),ri(e,jB,c2,Vee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,yin),iVn),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),yfn),It),Uhn),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,jin),iVn),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),jfn),It),Ghn),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,bP),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),Efn),It),Xhn),yn(xn)))),ri(e,bP,Hy,lee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,wP),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Qi),si),yn(xn)))),ri(e,wP,Hy,dee),ri(e,wP,bP,bee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,EB),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),Qi),si),yn(xn)))),ri(e,EB,Hy,oee),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Ein),qf),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Min),qf),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Tin),qf),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Cin),qf),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Sin),Rin),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Y(0)),Zr),Gi),yn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Pin),Rin),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Y(0)),Zr),Gi),yn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Iin),Rin),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Y(0)),Zr),Gi),yn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,MB),Kin),vXn),"Tries to further compact components (disconnected sub-graphs)."),!1),yi),zt),yn(xn)))),ri(e,MB,n8,!0),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Oin),rVn),"Post Compaction Strategy"),cVn),hfn),It),Xsn),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ain),rVn),"Post Compaction Constraint Calculation"),cVn),ffn),It),Tsn),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,gP),Bin),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,TB),Bin),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Y(16)),Zr),Gi),yn(xn)))),ri(e,TB,gP,!0),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,CB),Bin),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Y(5)),Zr),Gi),yn(xn)))),ri(e,CB,gP,!0),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Al),Fin),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),$fn),It),Qhn),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,pP),Fin),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),Qi),si),yn(xn)))),ri(e,pP,Al,ste),ri(e,pP,Al,fte),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,mP),Fin),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),Qi),si),yn(xn)))),ri(e,mP,Al,lte),ri(e,mP,Al,ate),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,u8),uVn),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),Dfn),It),Isn),yn(xn)))),ri(e,u8,Al,mte),ri(e,u8,Al,vte),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,SB),uVn),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),Vf),rs),yn(xn)))),ri(e,SB,u8,bte),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,PB),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),Nfn),Zr),Gi),yn(xn)))),ri(e,PB,u8,gte),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,vP),oVn),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),xfn),It),Jhn),yn(xn)))),ri(e,vP,Al,Ate),ri(e,vP,Al,Lte),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,kP),oVn),"Valid Indices for Wrapping"),null),Vf),rs),yn(xn)))),ri(e,kP,Al,Pte),ri(e,kP,Al,Ite),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,yP),_in),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),yi),zt),yn(xn)))),ri(e,yP,Al,Ete),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,jP),_in),"Distance Penalty When Improving Cuts"),null),2),Qi),si),yn(xn)))),ri(e,jP,Al,yte),ri(e,jP,yP,!0),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,IB),_in),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),yi),zt),yn(xn)))),ri(e,IB,Al,Tte),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Lin),DB),"Edge Label Side Selection"),"Method to decide on edge label sides."),kfn),It),Dsn),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Nin),DB),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),vfn),It),bv),yt(xn,S(C(Zh,1),G,170,0,[E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,EP),o8),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),dfn),It),Fhn),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Din),o8),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,$in),o8),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),yi),zt),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,OB),o8),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),lfn),It),Aon),yn(xn)))),ri(e,OB,n8,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,xin),o8),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),afn),It),Ahn),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,AB),o8),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),Qi),si),yn(xn)))),ri(e,AB,EP,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,LB),o8),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),Qi),si),yn(xn)))),ri(e,LB,EP,null),Mzn((new e8n,e))};var Ine,One,Ane,ffn,Lne,hfn,Nne,lfn,Dne,$ne,xne,afn,Rne,Kne,Bne,dfn,Fne,_ne,Hne,bfn,qne,Une,Gne,wfn,zne,Xne,Vne,Wne,Jne,Qne,Yne,Zne,nee,eee,gfn,tee,pfn,iee,mfn,ree,vfn,cee,kfn,uee,oee,see,yfn,fee,jfn,hee,Efn,lee,aee,dee,bee,wee,gee,pee,mee,vee,kee,Mfn,yee,jee,Eee,Mee,Tee,Cee,Tfn,See,Pee,Iee,Oee,Aee,Lee,Nee,Cfn,Dee,Sfn,$ee,xee,Ree,Pfn,Kee,Bee,Ifn,Fee,_ee,Hee,qee,Uee,Gee,zee,Xee,Ofn,Vee,Wee,Jee,Afn,Qee,Lfn,Yee,Zee,nte,ete,tte,ite,rte,cte,ute,ote,ste,fte,hte,lte,ate,dte,bte,wte,Nfn,gte,pte,Dfn,mte,vte,kte,yte,jte,Ete,Mte,Tte,Cte,$fn,Ste,Pte,Ite,Ote,xfn,Ate,Lte;w(Cc,"LayeredMetaDataProvider",859),b(998,1,ms,e8n),o.hf=function(e){Mzn(e)};var Ch,pH,oO,_8,sO,Rfn,fO,R0,hO,Kfn,Bfn,lO,mH,Yh,vH,fw,Ffn,Ej,kH,_fn,Nte,Dte,$te,aO,yH,H8,Nd,xte,Lo,Hfn,qfn,dO,jH,Sh,bO,$l,Ufn,Gfn,zfn,EH,MH,Xfn,m1,TH,Vfn,K0,Wfn,Jfn,Qfn,wO,B0,Dd,Yfn,Zfn,Rr,nhn,Rte,ou,gO,ehn,thn,ihn,Ea,$d,pO,rhn,chn,mO,hw,uhn,CH,q8,ohn,lw,U8,vO,xd,SH,jv,kO,Rd,shn,fhn,hhn,Ev,lhn,Kte,Bte,Fte,_te,aw,F0,_t,v1,Hte,_0,ahn,Mv,dhn,H0,qte,Tv,bhn,O3,Ute,Gte,Mj,PH,whn,Tj,Ws,T2,C2,dw,Kd,yO,q0,IH,Cv,Sv,bw,S2,OH,Cj,G8,z8,zte,Xte,Vte,ghn,Wte,AH,phn,mhn,vhn,khn,LH,yhn,jhn,Ehn,Mhn,NH,jO;w(Cc,"LayeredOptions",998),b(999,1,{},qpn),o.sf=function(){var e;return e=new qyn,e},o.tf=function(e){},w(Cc,"LayeredOptions/LayeredFactory",999),b(1391,1,{}),o.a=0;var Jte;w(dc,"ElkSpacings/AbstractSpacingsBuilder",1391),b(792,1391,{},GY);var EO,Qte;w(Cc,"LayeredSpacings/LayeredSpacingsBuilder",792),b(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},dg),o.dg=function(){return Bqn(this)},o.qg=function(){return Bqn(this)};var Pv,DH,Iv,Thn,Chn,Shn,MO,$H,Phn,Ihn=we(Cc,"LayeringStrategy",265,ke,x4e,_de),Yte;b(390,22,{3:1,34:1,22:1,390:1},zL);var xH,Ohn,TO,Ahn=we(Cc,"LongEdgeOrderingStrategy",390,ke,H2e,Hde),Zte;b(203,22,{3:1,34:1,22:1,203:1},bM);var P2,I2,CO,RH,KH=we(Cc,"NodeFlexibility",203,ke,Qpe,qde),nie;b(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},l7),o.dg=function(){return IHn(this)},o.qg=function(){return IHn(this)};var X8,BH,FH,V8,Lhn,Nhn=we(Cc,"NodePlacementStrategy",323,ke,H3e,Ude),eie;b(243,22,{3:1,34:1,22:1,243:1},Nw);var Dhn,ww,U0,Sj,$hn,xhn,Pj,Rhn,SO,PO,Khn=we(Cc,"NodePromotionStrategy",243,ke,ove,Gde),tie;b(284,22,{3:1,34:1,22:1,284:1},wM);var Bhn,k1,_H,HH,Fhn=we(Cc,"OrderingStrategy",284,ke,Ype,zde),iie;b(430,22,{3:1,34:1,22:1,430:1},Yz);var qH,UH,_hn=we(Cc,"PortSortingStrategy",430,ke,Uge,Xde),rie;b(462,22,{3:1,34:1,22:1,462:1},XL);var Vu,Jc,W8,cie=we(Cc,"PortType",462,ke,q2e,Vde),uie;b(387,22,{3:1,34:1,22:1,387:1},VL);var Hhn,GH,qhn,Uhn=we(Cc,"SelfLoopDistributionStrategy",387,ke,U2e,Wde),oie;b(349,22,{3:1,34:1,22:1,349:1},WL);var zH,Ij,XH,Ghn=we(Cc,"SelfLoopOrderingStrategy",349,ke,G2e,Jde),sie;b(312,1,{312:1},yGn),w(Cc,"Spacings",312),b(350,22,{3:1,34:1,22:1,350:1},JL);var VH,zhn,J8,Xhn=we(Cc,"SplineRoutingMode",350,ke,z2e,Qde),fie;b(352,22,{3:1,34:1,22:1,352:1},QL);var WH,Vhn,Whn,Jhn=we(Cc,"ValidifyStrategy",352,ke,X2e,Yde),hie;b(388,22,{3:1,34:1,22:1,388:1},YL);var G0,JH,Ov,Qhn=we(Cc,"WrappingStrategy",388,ke,V2e,Zde),lie;b(1398,1,vr,z5n),o.rg=function(e){return u(e,36),aie},o.Kf=function(e,t){LOe(this,u(e,36),t)};var aie;w(PP,"DepthFirstCycleBreaker",1398),b(793,1,vr,lW),o.rg=function(e){return u(e,36),die},o.Kf=function(e,t){$Ne(this,u(e,36),t)},o.sg=function(e){return u(sn(e,cS(this.d,e.c.length)),10)};var die;w(PP,"GreedyCycleBreaker",793),b(1401,793,vr,BTn),o.sg=function(e){var t,i,r,c;for(c=null,t=et,r=new M(e);r.a<r.c.c.length;)i=u(E(r),10),kt(i,(W(),dt))&&u(v(i,dt),17).a<t&&(t=u(v(i,dt),17).a,c=i);return c||u(sn(e,cS(this.d,e.c.length)),10)},w(PP,"GreedyModelOrderCycleBreaker",1401),b(1399,1,vr,G5n),o.rg=function(e){return u(e,36),bie},o.Kf=function(e,t){_Oe(this,u(e,36),t)};var bie;w(PP,"InteractiveCycleBreaker",1399),b(1400,1,vr,q5n),o.rg=function(e){return u(e,36),wie},o.Kf=function(e,t){QOe(this,u(e,36),t)},o.a=0,o.b=0;var wie;w(PP,"ModelOrderCycleBreaker",1400),b(1413,1,vr,H5n),o.rg=function(e){return u(e,36),gie},o.Kf=function(e,t){FLe(this,u(e,36),t)};var gie;w(Ll,"BreadthFirstModelOrderLayerer",1413),b(1414,1,De,Upn),o.Ne=function(e,t){return lEe(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"BreadthFirstModelOrderLayerer/lambda$0$Type",1414),b(1404,1,vr,aMn),o.rg=function(e){return u(e,36),pie},o.Kf=function(e,t){FNe(this,u(e,36),t)};var pie;w(Ll,"CoffmanGrahamLayerer",1404),b(1405,1,De,O7n),o.Ne=function(e,t){return QEe(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type",1405),b(1406,1,De,A7n),o.Ne=function(e,t){return Qwe(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"CoffmanGrahamLayerer/lambda$1$Type",1406),b(1415,1,vr,U5n),o.rg=function(e){return u(e,36),mie},o.Kf=function(e,t){SNe(this,u(e,36),t)},o.c=0,o.e=0;var mie;w(Ll,"DepthFirstModelOrderLayerer",1415),b(1416,1,De,Gpn),o.Ne=function(e,t){return aEe(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"DepthFirstModelOrderLayerer/lambda$0$Type",1416),b(1407,1,vr,zpn),o.rg=function(e){return u(e,36),Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),N_)),Jh,N0),Ac,L0)},o.Kf=function(e,t){ZLe(u(e,36),t)},w(Ll,"InteractiveLayerer",1407),b(578,1,{578:1},Xyn),o.a=0,o.c=0,w(Ll,"InteractiveLayerer/LayerSpan",578),b(1403,1,vr,W5n),o.rg=function(e){return u(e,36),vie},o.Kf=function(e,t){SCe(this,u(e,36),t)};var vie;w(Ll,"LongestPathLayerer",1403),b(1412,1,vr,V5n),o.rg=function(e){return u(e,36),kie},o.Kf=function(e,t){QCe(this,u(e,36),t)};var kie;w(Ll,"LongestPathSourceLayerer",1412),b(1410,1,vr,J5n),o.rg=function(e){return u(e,36),Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,N0),Ac,L0)},o.Kf=function(e,t){sNe(this,u(e,36),t)},o.a=0,o.b=0,o.d=0;var Yhn,Zhn;w(Ll,"MinWidthLayerer",1410),b(1411,1,De,L7n),o.Ne=function(e,t){return Ive(this,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"MinWidthLayerer/MinOutgoingEdgesComparator",1411),b(1402,1,vr,Q5n),o.rg=function(e){return u(e,36),yie},o.Kf=function(e,t){jAe(this,u(e,36),t)};var yie;w(Ll,"NetworkSimplexLayerer",1402),b(1408,1,vr,FSn),o.rg=function(e){return u(e,36),Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,N0),Ac,L0)},o.Kf=function(e,t){uLe(this,u(e,36),t)},o.d=0,o.f=0,o.g=0,o.i=0,o.s=0,o.t=0,o.u=0,w(Ll,"StretchWidthLayerer",1408),b(1409,1,De,Xpn),o.Ne=function(e,t){return ume(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"StretchWidthLayerer/1",1409),b(413,1,jrn),o.gg=function(e,t,i,r,c,s){},o.ug=function(e,t,i){return aUn(this,e,t,i)},o.fg=function(){this.g=F(cg,fVn,28,this.d,15,1),this.f=F(cg,fVn,28,this.d,15,1)},o.hg=function(e,t){this.e[e]=F(ye,_e,28,t[e].length,15,1)},o.ig=function(e,t,i){var r;r=i[e][t],r.p=t,this.e[e][t]=t},o.jg=function(e,t,i,r){u(sn(r[e][t].j,i),12).p=this.d++},o.b=0,o.c=0,o.d=0,w(Du,"AbstractBarycenterPortDistributor",413),b(1698,1,De,N7n),o.Ne=function(e,t){return t9e(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Du,"AbstractBarycenterPortDistributor/lambda$0$Type",1698),b(832,1,Fy,gJ),o.gg=function(e,t,i,r,c,s){},o.ig=function(e,t,i){},o.jg=function(e,t,i,r){},o.eg=function(){return!1},o.fg=function(){this.c=this.e.a,this.g=this.f.g},o.hg=function(e,t){t[e][0].c.p=e},o.kg=function(){return!1},o.vg=function(e,t,i,r){i?bFn(this,e):(mFn(this,e,r),DGn(this,e,t)),e.c.length>1&&(on(un(v(Hi((Nn(0,e.c.length),u(e.c[0],10))),(cn(),fw))))?HHn(e,this.d,u(this,669)):(Ln(),Yt(e,this.d)),Hxn(this.e,e))},o.lg=function(e,t,i,r){var c,s,f,h,l,a,d;for(t!=cIn(i,e.length)&&(s=e[t-(i?1:-1)],FJ(this.f,s,i?(gr(),Jc):(gr(),Vu))),c=e[t][0],d=!r||c.k==(Vn(),Zt),a=Af(e[t]),this.vg(a,d,!1,i),f=0,l=new M(a);l.a<l.c.c.length;)h=u(E(l),10),e[t][f++]=h;return!1},o.mg=function(e,t){var i,r,c,s,f;for(f=cIn(t,e.length),s=Af(e[f]),this.vg(s,!1,!0,t),i=0,c=new M(s);c.a<c.c.c.length;)r=u(E(c),10),e[f][i++]=r;return!1},w(Du,"BarycenterHeuristic",832),b(667,1,{667:1},x7n),o.Ib=function(){return"BarycenterState [node="+this.c+", summedWeight="+this.d+", degree="+this.b+", barycenter="+this.a+", visited="+this.e+"]"},o.b=0,o.d=0,o.e=!1;var jie=w(Du,"BarycenterHeuristic/BarycenterState",667);b(1865,1,De,D7n),o.Ne=function(e,t){return Jke(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Du,"BarycenterHeuristic/lambda$0$Type",1865),b(831,1,Fy,WZ),o.fg=function(){},o.gg=function(e,t,i,r,c,s){},o.jg=function(e,t,i,r){},o.hg=function(e,t){this.a[e]=F(jie,{3:1,4:1,5:1,2117:1},667,t[e].length,0,1),this.b[e]=F(Eie,{3:1,4:1,5:1,2118:1},239,t[e].length,0,1)},o.ig=function(e,t,i){ZKn(this,i[e][t],!0)},o.c=!1,w(Du,"ForsterConstraintResolver",831),b(239,1,{239:1},zOn,kGn),o.Ib=function(){var e,t;for(t=new R1,t.a+="[",e=0;e<this.d.length;e++)Be(t,bBn(this.d[e])),Sf(this.g,this.d[0]).a!=null&&Be(Be((t.a+="<",t),jle(Sf(this.g,this.d[0]).a)),">"),e<this.d.length-1&&(t.a+=ur);return(t.a+="]",t).a},o.a=0,o.c=0,o.f=0;var Eie=w(Du,"ForsterConstraintResolver/ConstraintGroup",239);b(1860,1,re,$7n),o.Cd=function(e){ZKn(this.a,u(e,10),!1)},w(Du,"ForsterConstraintResolver/lambda$0$Type",1860),b(219,1,{219:1,230:1},EGn),o.gg=function(e,t,i,r,c,s){},o.hg=function(e,t){},o.fg=function(){this.r=F(ye,_e,28,this.n,15,1)},o.ig=function(e,t,i){var r,c;c=i[e][t],r=c.e,r&&nn(this.b,r)},o.jg=function(e,t,i,r){++this.n},o.Ib=function(){return $Gn(this.e,new ni)},o.g=!1,o.i=!1,o.n=0,o.s=!1,w(Du,"GraphInfoHolder",219),b(1905,1,Fy,Vpn),o.gg=function(e,t,i,r,c,s){},o.hg=function(e,t){},o.jg=function(e,t,i,r){},o.ug=function(e,t,i){return i&&t>0?LD(this.a,e[t-1],e[t]):!i&&t<e.length-1?LD(this.a,e[t],e[t+1]):C$(this.a,e[t],i?(en(),Wn):(en(),Zn)),ITe(this,e,t,i)},o.fg=function(){this.d=F(ye,_e,28,this.c,15,1),this.a=new L7(this.d)},o.ig=function(e,t,i){var r;r=i[e][t],this.c+=r.j.c.length},o.c=0,w(Du,"GreedyPortDistributor",1905),b(1421,1,vr,t8n),o.rg=function(e){return X6e(u(e,36))},o.Kf=function(e,t){HAe(u(e,36),t)};var Mie;w(Du,"InteractiveCrossingMinimizer",1421),b(1422,1,De,K7n),o.Ne=function(e,t){return Ake(this,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Du,"InteractiveCrossingMinimizer/1",1422),b(514,1,{514:1,106:1,47:1},gL),o.rg=function(e){var t;return u(e,36),t=AM(Tie),Fe(t,(Vi(),Ac),(tr(),RI)),t},o.Kf=function(e,t){WPe(this,u(e,36),t)},o.e=0;var Tie;w(Du,"LayerSweepCrossingMinimizer",514),b(1418,1,re,B7n),o.Cd=function(e){BIe(this.a,u(e,219))},w(Du,"LayerSweepCrossingMinimizer/0methodref$compareDifferentRandomizedLayouts$Type",1418),b(1419,1,re,F7n),o.Cd=function(e){G6e(this.a,u(e,219))},w(Du,"LayerSweepCrossingMinimizer/1methodref$minimizeCrossingsNoCounter$Type",1419),b(1420,1,re,_7n),o.Cd=function(e){YUn(this.a,u(e,219))},w(Du,"LayerSweepCrossingMinimizer/2methodref$minimizeCrossingsWithCounter$Type",1420),b(463,22,{3:1,34:1,22:1,463:1},ZL);var Oj,Q8,IO,Cie=we(Du,"LayerSweepCrossingMinimizer/CrossMinType",463,ke,W2e,nbe),Sie;b(1417,1,Le,Wpn),o.Mb=function(e){return RQ(),u(e,30).a.c.length==0},w(Du,"LayerSweepCrossingMinimizer/lambda$0$Type",1417),b(1862,1,Fy,MAn),o.fg=function(){},o.gg=function(e,t,i,r,c,s){},o.jg=function(e,t,i,r){},o.hg=function(e,t){t[e][0].c.p=e,this.b[e]=F(Pie,{3:1,4:1,5:1,2043:1},668,t[e].length,0,1)},o.ig=function(e,t,i){var r;r=i[e][t],r.p=t,$t(this.b[e],t,new Jpn)},w(Du,"LayerSweepTypeDecider",1862),b(668,1,{668:1},Jpn),o.Ib=function(){return"NodeInfo [connectedEdges="+this.a+", hierarchicalInfluence="+this.b+", randomInfluence="+this.c+"]"},o.a=0,o.b=0,o.c=0;var Pie=w(Du,"LayerSweepTypeDecider/NodeInfo",668);b(1863,1,ph,Qpn),o.Lb=function(e){return O6(new Lf(u(e,12).b))},o.Fb=function(e){return this===e},o.Mb=function(e){return O6(new Lf(u(e,12).b))},w(Du,"LayerSweepTypeDecider/lambda$0$Type",1863),b(1864,1,ph,Ypn),o.Lb=function(e){return O6(new Lf(u(e,12).b))},o.Fb=function(e){return this===e},o.Mb=function(e){return O6(new Lf(u(e,12).b))},w(Du,"LayerSweepTypeDecider/lambda$1$Type",1864),b(1906,413,jrn,Vjn),o.tg=function(e,t,i){var r,c,s,f,h,l,a,d,g;switch(a=this.g,i.g){case 1:{for(r=0,c=0,l=new M(e.j);l.a<l.c.c.length;)f=u(E(l),12),f.e.c.length!=0&&(++r,f.j==(en(),Xn)&&++c);for(s=t+c,g=t+r,h=$b(e,(gr(),Vu)).Kc();h.Ob();)f=u(h.Pb(),12),f.j==(en(),Xn)?(a[f.p]=s,--s):(a[f.p]=g,--g);return r}case 2:{for(d=0,h=$b(e,(gr(),Jc)).Kc();h.Ob();)f=u(h.Pb(),12),++d,a[f.p]=t+d;return d}default:throw T(new W9)}},w(Du,"LayerTotalPortDistributor",1906),b(669,832,{669:1,230:1},wxn),o.vg=function(e,t,i,r){i?bFn(this,e):(mFn(this,e,r),DGn(this,e,t)),e.c.length>1&&(on(un(v(Hi((Nn(0,e.c.length),u(e.c[0],10))),(cn(),fw))))?HHn(e,this.d,this):(Ln(),Yt(e,this.d)),on(un(v(Hi((Nn(0,e.c.length),u(e.c[0],10))),fw)))||Hxn(this.e,e))},w(Du,"ModelOrderBarycenterHeuristic",669),b(1866,1,De,H7n),o.Ne=function(e,t){return Aje(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Du,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866),b(1423,1,vr,i8n),o.rg=function(e){var t;return u(e,36),t=AM(Iie),Fe(t,(Vi(),Ac),(tr(),RI)),t},o.Kf=function(e,t){bge((u(e,36),t))};var Iie;w(Du,"NoCrossingMinimizer",1423),b(809,413,jrn,yz),o.tg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m;switch(g=this.g,i.g){case 1:{for(c=0,s=0,d=new M(e.j);d.a<d.c.c.length;)l=u(E(d),12),l.e.c.length!=0&&(++c,l.j==(en(),Xn)&&++s);for(r=1/(c+1),f=t+s*r,m=t+1-r,a=$b(e,(gr(),Vu)).Kc();a.Ob();)l=u(a.Pb(),12),l.j==(en(),Xn)?(g[l.p]=f,f-=r):(g[l.p]=m,m-=r);break}case 2:{for(h=0,d=new M(e.j);d.a<d.c.c.length;)l=u(E(d),12),l.g.c.length==0||++h;for(r=1/(h+1),p=t+r,a=$b(e,(gr(),Jc)).Kc();a.Ob();)l=u(a.Pb(),12),g[l.p]=p,p+=r;break}default:throw T(new Gn("Port type is undefined"))}return 1},w(Du,"NodeRelativePortDistributor",809),b(822,1,{},xIn,JFn),w(Du,"SweepCopy",822),b(1861,1,Fy,DKn),o.hg=function(e,t){},o.fg=function(){var e;e=F(ye,_e,28,this.f,15,1),this.d=new J7n(e),this.a=new L7(e)},o.gg=function(e,t,i,r,c,s){var f;f=u(sn(s[e][t].j,i),12),c.c==f&&c.c.i.c==c.d.i.c&&++this.e[e]},o.ig=function(e,t,i){var r;r=i[e][t],this.c[e]=this.c[e]|r.k==(Vn(),_c)},o.jg=function(e,t,i,r){var c;c=u(sn(r[e][t].j,i),12),c.p=this.f++,c.g.c.length+c.e.c.length>1&&(c.j==(en(),Zn)?this.b[e]=!0:c.j==Wn&&e>0&&(this.b[e-1]=!0))},o.f=0,w(Vh,"AllCrossingsCounter",1861),b(595,1,{},EC),o.b=0,o.d=0,w(Vh,"BinaryIndexedTree",595),b(532,1,{},L7);var nln,OO;w(Vh,"CrossingsCounter",532),b(1950,1,De,q7n),o.Ne=function(e,t){return Fwe(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Vh,"CrossingsCounter/lambda$0$Type",1950),b(1951,1,De,U7n),o.Ne=function(e,t){return _we(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Vh,"CrossingsCounter/lambda$1$Type",1951),b(1952,1,De,G7n),o.Ne=function(e,t){return Hwe(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Vh,"CrossingsCounter/lambda$2$Type",1952),b(1953,1,De,z7n),o.Ne=function(e,t){return qwe(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Vh,"CrossingsCounter/lambda$3$Type",1953),b(1954,1,re,X7n),o.Cd=function(e){qme(this.a,u(e,12))},w(Vh,"CrossingsCounter/lambda$4$Type",1954),b(1955,1,Le,V7n),o.Mb=function(e){return ble(this.a,u(e,12))},w(Vh,"CrossingsCounter/lambda$5$Type",1955),b(1956,1,re,W7n),o.Cd=function(e){OTn(this,e)},w(Vh,"CrossingsCounter/lambda$6$Type",1956),b(1957,1,re,_Mn),o.Cd=function(e){var t;vm(),J1(this.b,(t=this.a,u(e,12),t))},w(Vh,"CrossingsCounter/lambda$7$Type",1957),b(839,1,ph,JU),o.Lb=function(e){return vm(),kt(u(e,12),(W(),Xu))},o.Fb=function(e){return this===e},o.Mb=function(e){return vm(),kt(u(e,12),(W(),Xu))},w(Vh,"CrossingsCounter/lambda$8$Type",839),b(1949,1,{},J7n),w(Vh,"HyperedgeCrossingsCounter",1949),b(477,1,{34:1,477:1},USn),o.Fd=function(e){return H8e(this,u(e,477))},o.b=0,o.c=0,o.e=0,o.f=0;var jDe=w(Vh,"HyperedgeCrossingsCounter/Hyperedge",477);b(374,1,{34:1,374:1},ET),o.Fd=function(e){return tTe(this,u(e,374))},o.b=0,o.c=0;var Oie=w(Vh,"HyperedgeCrossingsCounter/HyperedgeCorner",374);b(531,22,{3:1,34:1,22:1,531:1},Zz);var Y8,Z8,Aie=we(Vh,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,ke,Gge,ebe),Lie;b(1425,1,vr,r8n),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Nie:null},o.Kf=function(e,t){dke(this,u(e,36),t)};var Nie;w(kr,"InteractiveNodePlacer",1425),b(1426,1,vr,c8n),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Die:null},o.Kf=function(e,t){Q9e(this,u(e,36),t)};var Die,AO,LO;w(kr,"LinearSegmentsNodePlacer",1426),b(261,1,{34:1,261:1},WG),o.Fd=function(e){return Che(this,u(e,261))},o.Fb=function(e){var t;return L(e,261)?(t=u(e,261),this.b==t.b):!1},o.Hb=function(){return this.b},o.Ib=function(){return"ls"+ua(this.e)},o.a=0,o.b=0,o.c=-1,o.d=-1,o.g=0;var $ie=w(kr,"LinearSegmentsNodePlacer/LinearSegment",261);b(1428,1,vr,wIn),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?xie:null},o.Kf=function(e,t){CNe(this,u(e,36),t)},o.b=0,o.g=0;var xie;w(kr,"NetworkSimplexPlacer",1428),b(1447,1,De,Zpn),o.Ne=function(e,t){return jc(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(kr,"NetworkSimplexPlacer/0methodref$compare$Type",1447),b(1449,1,De,n3n),o.Ne=function(e,t){return jc(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(kr,"NetworkSimplexPlacer/1methodref$compare$Type",1449),b(655,1,{655:1},HMn);var EDe=w(kr,"NetworkSimplexPlacer/EdgeRep",655);b(412,1,{412:1},GW),o.b=!1;var MDe=w(kr,"NetworkSimplexPlacer/NodeRep",412);b(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},Yyn),w(kr,"NetworkSimplexPlacer/Path",515),b(1429,1,{},e3n),o.Kb=function(e){return u(e,18).d.i.k},w(kr,"NetworkSimplexPlacer/Path/lambda$0$Type",1429),b(1430,1,Le,t3n),o.Mb=function(e){return u(e,273)==(Vn(),Ti)},w(kr,"NetworkSimplexPlacer/Path/lambda$1$Type",1430),b(1431,1,{},i3n),o.Kb=function(e){return u(e,18).d.i},w(kr,"NetworkSimplexPlacer/Path/lambda$2$Type",1431),b(1432,1,Le,Q7n),o.Mb=function(e){return PSn(AKn(u(e,10)))},w(kr,"NetworkSimplexPlacer/Path/lambda$3$Type",1432),b(1433,1,Le,r3n),o.Mb=function(e){return Mwe(u(e,12))},w(kr,"NetworkSimplexPlacer/lambda$0$Type",1433),b(1434,1,re,qMn),o.Cd=function(e){c1e(this.a,this.b,u(e,12))},w(kr,"NetworkSimplexPlacer/lambda$1$Type",1434),b(1443,1,re,Y7n),o.Cd=function(e){AEe(this.a,u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$10$Type",1443),b(1444,1,{},c3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$11$Type",1444),b(1445,1,re,Z7n),o.Cd=function(e){TSe(this.a,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$12$Type",1445),b(1446,1,{},u3n),o.Kb=function(e){return ko(),Y(u(e,125).e)},w(kr,"NetworkSimplexPlacer/lambda$13$Type",1446),b(1448,1,{},o3n),o.Kb=function(e){return ko(),Y(u(e,125).e)},w(kr,"NetworkSimplexPlacer/lambda$15$Type",1448),b(1450,1,Le,s3n),o.Mb=function(e){return ko(),u(e,412).c.k==(Vn(),Xt)},w(kr,"NetworkSimplexPlacer/lambda$17$Type",1450),b(1451,1,Le,f3n),o.Mb=function(e){return ko(),u(e,412).c.j.c.length>1},w(kr,"NetworkSimplexPlacer/lambda$18$Type",1451),b(1452,1,re,EOn),o.Cd=function(e){h8e(this.c,this.b,this.d,this.a,u(e,412))},o.c=0,o.d=0,w(kr,"NetworkSimplexPlacer/lambda$19$Type",1452),b(1435,1,{},h3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$2$Type",1435),b(1453,1,re,nkn),o.Cd=function(e){o1e(this.a,u(e,12))},o.a=0,w(kr,"NetworkSimplexPlacer/lambda$20$Type",1453),b(1454,1,{},l3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$21$Type",1454),b(1455,1,re,ekn),o.Cd=function(e){v1e(this.a,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$22$Type",1455),b(1456,1,Le,a3n),o.Mb=function(e){return PSn(e)},w(kr,"NetworkSimplexPlacer/lambda$23$Type",1456),b(1457,1,{},d3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$24$Type",1457),b(1458,1,Le,tkn),o.Mb=function(e){return Ple(this.a,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$25$Type",1458),b(1459,1,re,UMn),o.Cd=function(e){$je(this.a,this.b,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$26$Type",1459),b(1460,1,Le,b3n),o.Mb=function(e){return ko(),!fr(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$27$Type",1460),b(1461,1,Le,w3n),o.Mb=function(e){return ko(),!fr(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$28$Type",1461),b(1462,1,{},ikn),o.Ve=function(e,t){return u1e(this.a,u(e,30),u(t,30))},w(kr,"NetworkSimplexPlacer/lambda$29$Type",1462),b(1436,1,{},g3n),o.Kb=function(e){return ko(),new Cn(null,new wb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(kr,"NetworkSimplexPlacer/lambda$3$Type",1436),b(1437,1,Le,p3n),o.Mb=function(e){return ko(),xpe(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$4$Type",1437),b(1438,1,re,rkn),o.Cd=function(e){DIe(this.a,u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$5$Type",1438),b(1439,1,{},m3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$6$Type",1439),b(1440,1,Le,v3n),o.Mb=function(e){return ko(),u(e,10).k==(Vn(),Xt)},w(kr,"NetworkSimplexPlacer/lambda$7$Type",1440),b(1441,1,{},k3n),o.Kb=function(e){return ko(),new Cn(null,new wb(new ie(ce(Ml(u(e,10)).a.Kc(),new En))))},w(kr,"NetworkSimplexPlacer/lambda$8$Type",1441),b(1442,1,Le,y3n),o.Mb=function(e){return ko(),Ewe(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$9$Type",1442),b(1424,1,vr,u8n),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Rie:null},o.Kf=function(e,t){bOe(u(e,36),t)};var Rie;w(kr,"SimpleNodePlacer",1424),b(185,1,{185:1},Wg),o.Ib=function(){var e;return e="",this.c==(fh(),gw)?e+=f3:this.c==y1&&(e+=s3),this.o==(If(),Bd)?e+=_K:this.o==Xf?e+="UP":e+="BALANCED",e},w(ba,"BKAlignedLayout",185),b(523,22,{3:1,34:1,22:1,523:1},nX);var y1,gw,Kie=we(ba,"BKAlignedLayout/HDirection",523,ke,zge,tbe),Bie;b(522,22,{3:1,34:1,22:1,522:1},eX);var Bd,Xf,Fie=we(ba,"BKAlignedLayout/VDirection",522,ke,Xge,ibe),_ie;b(1699,1,{},GMn),w(ba,"BKAligner",1699),b(1702,1,{},tFn),w(ba,"BKCompactor",1702),b(663,1,{663:1},j3n),o.a=0,w(ba,"BKCompactor/ClassEdge",663),b(466,1,{466:1},Wyn),o.a=null,o.b=0,w(ba,"BKCompactor/ClassNode",466),b(1427,1,vr,WMn),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Hie:null},o.Kf=function(e,t){UNe(this,u(e,36),t)},o.d=!1;var Hie;w(ba,"BKNodePlacer",1427),b(1700,1,{},E3n),o.d=0,w(ba,"NeighborhoodInformation",1700),b(1701,1,De,ckn),o.Ne=function(e,t){return m4e(this,u(e,42),u(t,42))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(ba,"NeighborhoodInformation/NeighborComparator",1701),b(823,1,{}),w(ba,"ThresholdStrategy",823),b(1825,823,{},Jyn),o.wg=function(e,t,i){return this.a.o==(If(),Xf)?Pt:li},o.xg=function(){},w(ba,"ThresholdStrategy/NullThresholdStrategy",1825),b(587,1,{587:1},JMn),o.c=!1,o.d=!1,w(ba,"ThresholdStrategy/Postprocessable",587),b(1826,823,{},Qyn),o.wg=function(e,t,i){var r,c,s;return c=t==i,r=this.a.a[i.p]==t,c||r?(s=e,this.a.c==(fh(),gw)?(c&&(s=FR(this,t,!0)),!isNaN(s)&&!isFinite(s)&&r&&(s=FR(this,i,!1))):(c&&(s=FR(this,t,!0)),!isNaN(s)&&!isFinite(s)&&r&&(s=FR(this,i,!1))),s):e},o.xg=function(){for(var e,t,i,r,c;this.d.b!=0;)c=u(f2e(this.d),587),r=IUn(this,c),r.a&&(e=r.a,i=on(this.a.f[this.a.g[c.b.p].p]),!(!i&&!fr(e)&&e.c.i.c==e.d.i.c)&&(t=DHn(this,c),t||Ale(this.e,c)));for(;this.e.a.c.length!=0;)DHn(this,u(DRn(this.e),587))},w(ba,"ThresholdStrategy/SimpleThresholdStrategy",1826),b(645,1,{645:1,188:1,196:1},M3n),o.dg=function(){return qxn(this)},o.qg=function(){return qxn(this)};var QH;w(BB,"EdgeRouterFactory",645),b(1485,1,vr,o8n),o.rg=function(e){return eSe(u(e,36))},o.Kf=function(e,t){yOe(u(e,36),t)};var qie,Uie,Gie,zie,Xie,eln,Vie,Wie;w(BB,"OrthogonalEdgeRouter",1485),b(1478,1,vr,VMn),o.rg=function(e){return Eke(u(e,36))},o.Kf=function(e,t){ULe(this,u(e,36),t)};var Jie,Qie,Yie,Zie,Aj,nre;w(BB,"PolylineEdgeRouter",1478),b(1479,1,ph,C3n),o.Lb=function(e){return HQ(u(e,10))},o.Fb=function(e){return this===e},o.Mb=function(e){return HQ(u(e,10))},w(BB,"PolylineEdgeRouter/1",1479),b(1872,1,Le,S3n),o.Mb=function(e){return u(e,132).c==(af(),Ma)},w(mf,"HyperEdgeCycleDetector/lambda$0$Type",1872),b(1873,1,{},P3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$1$Type",1873),b(1874,1,Le,I3n),o.Mb=function(e){return u(e,132).c==(af(),Ma)},w(mf,"HyperEdgeCycleDetector/lambda$2$Type",1874),b(1875,1,{},O3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$3$Type",1875),b(1876,1,{},A3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$4$Type",1876),b(1877,1,{},T3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$5$Type",1877),b(118,1,{34:1,118:1},kk),o.Fd=function(e){return She(this,u(e,118))},o.Fb=function(e){var t;return L(e,118)?(t=u(e,118),this.g==t.g):!1},o.Hb=function(){return this.g},o.Ib=function(){var e,t,i,r;for(e=new mo("{"),r=new M(this.n);r.a<r.c.c.length;)i=u(E(r),12),t=Hk(i.i),t==null&&(t="n"+ePn(i.i)),e.a+=""+t,r.a<r.c.c.length&&(e.a+=",");return e.a+="}",e.a},o.a=0,o.b=0,o.c=NaN,o.d=0,o.g=0,o.i=0,o.o=0,o.s=NaN,w(mf,"HyperEdgeSegment",118),b(132,1,{132:1},ed),o.Ib=function(){return this.a+"->"+this.b+" ("+z1e(this.c)+")"},o.d=0,w(mf,"HyperEdgeSegmentDependency",132),b(528,22,{3:1,34:1,22:1,528:1},tX);var Ma,z0,ere=we(mf,"HyperEdgeSegmentDependency/DependencyType",528,ke,Vge,rbe),tre;b(1878,1,{},ukn),w(mf,"HyperEdgeSegmentSplitter",1878),b(1879,1,{},Yjn),o.a=0,o.b=0,w(mf,"HyperEdgeSegmentSplitter/AreaRating",1879),b(339,1,{339:1},FN),o.a=0,o.b=0,o.c=0,w(mf,"HyperEdgeSegmentSplitter/FreeArea",339),b(1880,1,De,L3n),o.Ne=function(e,t){return zae(u(e,118),u(t,118))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mf,"HyperEdgeSegmentSplitter/lambda$0$Type",1880),b(1881,1,re,MOn),o.Cd=function(e){k3e(this.a,this.d,this.c,this.b,u(e,118))},o.b=0,w(mf,"HyperEdgeSegmentSplitter/lambda$1$Type",1881),b(1882,1,{},N3n),o.Kb=function(e){return new Cn(null,new On(u(e,118).e,16))},w(mf,"HyperEdgeSegmentSplitter/lambda$2$Type",1882),b(1883,1,{},D3n),o.Kb=function(e){return new Cn(null,new On(u(e,118).j,16))},w(mf,"HyperEdgeSegmentSplitter/lambda$3$Type",1883),b(1884,1,{},$3n),o.Ye=function(e){return $(B(e))},w(mf,"HyperEdgeSegmentSplitter/lambda$4$Type",1884),b(664,1,{},lD),o.a=0,o.b=0,o.c=0,w(mf,"OrthogonalRoutingGenerator",664),b(1703,1,{},x3n),o.Kb=function(e){return new Cn(null,new On(u(e,118).e,16))},w(mf,"OrthogonalRoutingGenerator/lambda$0$Type",1703),b(1704,1,{},R3n),o.Kb=function(e){return new Cn(null,new On(u(e,118).j,16))},w(mf,"OrthogonalRoutingGenerator/lambda$1$Type",1704),b(670,1,{}),w(FB,"BaseRoutingDirectionStrategy",670),b(1870,670,{},ejn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;if(!(e.r&&!e.q))for(d=t+e.o*i,a=new M(e.n);a.a<a.c.c.length;)for(l=u(E(a),12),g=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])).a,h=new M(l.g);h.a<h.c.c.length;)f=u(E(h),18),fr(f)||(k=f.d,j=cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a])).a,y.Math.abs(g-j)>vh&&(s=d,c=e,r=new V(g,s),Re(f.a,r),_b(this,f,c,r,!1),p=e.r,p&&(m=$(B(Zo(p.e,0))),r=new V(m,s),Re(f.a,r),_b(this,f,c,r,!1),s=t+p.o*i,c=p,r=new V(m,s),Re(f.a,r),_b(this,f,c,r,!1)),r=new V(j,s),Re(f.a,r),_b(this,f,c,r,!1)))},o.zg=function(e){return e.i.n.a+e.n.a+e.a.a},o.Ag=function(){return en(),ae},o.Bg=function(){return en(),Xn},w(FB,"NorthToSouthRoutingStrategy",1870),b(1871,670,{},tjn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;if(!(e.r&&!e.q))for(d=t-e.o*i,a=new M(e.n);a.a<a.c.c.length;)for(l=u(E(a),12),g=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])).a,h=new M(l.g);h.a<h.c.c.length;)f=u(E(h),18),fr(f)||(k=f.d,j=cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a])).a,y.Math.abs(g-j)>vh&&(s=d,c=e,r=new V(g,s),Re(f.a,r),_b(this,f,c,r,!1),p=e.r,p&&(m=$(B(Zo(p.e,0))),r=new V(m,s),Re(f.a,r),_b(this,f,c,r,!1),s=t-p.o*i,c=p,r=new V(m,s),Re(f.a,r),_b(this,f,c,r,!1)),r=new V(j,s),Re(f.a,r),_b(this,f,c,r,!1)))},o.zg=function(e){return e.i.n.a+e.n.a+e.a.a},o.Ag=function(){return en(),Xn},o.Bg=function(){return en(),ae},w(FB,"SouthToNorthRoutingStrategy",1871),b(1869,670,{},ijn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;if(!(e.r&&!e.q))for(d=t+e.o*i,a=new M(e.n);a.a<a.c.c.length;)for(l=u(E(a),12),g=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])).b,h=new M(l.g);h.a<h.c.c.length;)f=u(E(h),18),fr(f)||(k=f.d,j=cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a])).b,y.Math.abs(g-j)>vh&&(s=d,c=e,r=new V(s,g),Re(f.a,r),_b(this,f,c,r,!0),p=e.r,p&&(m=$(B(Zo(p.e,0))),r=new V(s,m),Re(f.a,r),_b(this,f,c,r,!0),s=t+p.o*i,c=p,r=new V(s,m),Re(f.a,r),_b(this,f,c,r,!0)),r=new V(s,j),Re(f.a,r),_b(this,f,c,r,!0)))},o.zg=function(e){return e.i.n.b+e.n.b+e.a.b},o.Ag=function(){return en(),Zn},o.Bg=function(){return en(),Wn},w(FB,"WestToEastRoutingStrategy",1869),b(828,1,{},Ben),o.Ib=function(){return ua(this.a)},o.b=0,o.c=!1,o.d=!1,o.f=0,w(j0,"NubSpline",828),b(418,1,{418:1},dqn,tAn),w(j0,"NubSpline/PolarCP",418),b(1480,1,vr,VBn),o.rg=function(e){return aye(u(e,36))},o.Kf=function(e,t){fNe(this,u(e,36),t)};var ire,rre,cre,ure,ore;w(j0,"SplineEdgeRouter",1480),b(274,1,{274:1},XT),o.Ib=function(){return this.a+" ->("+this.c+") "+this.b},o.c=0,w(j0,"SplineEdgeRouter/Dependency",274),b(464,22,{3:1,34:1,22:1,464:1},iX);var Ta,O2,sre=we(j0,"SplineEdgeRouter/SideToProcess",464,ke,n2e,cbe),fre;b(1481,1,Le,K3n),o.Mb=function(e){return x5(),!u(e,131).o},w(j0,"SplineEdgeRouter/lambda$0$Type",1481),b(1482,1,{},B3n),o.Ze=function(e){return x5(),u(e,131).v+1},w(j0,"SplineEdgeRouter/lambda$1$Type",1482),b(1483,1,re,QMn),o.Cd=function(e){Swe(this.a,this.b,u(e,42))},w(j0,"SplineEdgeRouter/lambda$2$Type",1483),b(1484,1,re,YMn),o.Cd=function(e){Pwe(this.a,this.b,u(e,42))},w(j0,"SplineEdgeRouter/lambda$3$Type",1484),b(131,1,{34:1,131:1},C_n,Gen),o.Fd=function(e){return Ohe(this,u(e,131))},o.b=0,o.e=!1,o.f=0,o.g=0,o.j=!1,o.k=!1,o.n=0,o.o=!1,o.p=!1,o.q=!1,o.s=0,o.u=0,o.v=0,o.F=0,w(j0,"SplineSegment",131),b(467,1,{467:1},F3n),o.a=0,o.b=!1,o.c=!1,o.d=!1,o.e=!1,o.f=0,w(j0,"SplineSegment/EdgeInformation",467),b(1198,1,{},_3n),w(Nl,Htn,1198),b(1199,1,De,H3n),o.Ne=function(e,t){return VEe(u(e,121),u(t,121))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Nl,EXn,1199),b(1197,1,{},bEn),w(Nl,"MrTree",1197),b(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},gM),o.dg=function(){return V_n(this)},o.qg=function(){return V_n(this)};var NO,n9,e9,t9,tln=we(Nl,"TreeLayoutPhases",405,ke,i3e,ube),hre;b(1112,205,yd,HSn),o.rf=function(e,t){var i,r,c,s,f,h,l,a;for(on(un(z(e,(lc(),Sln))))||NT((i=new z9((Aw(),new Pw(e))),i)),f=t.eh(qB),f.Ug("build tGraph",1),h=(l=new ek,Ur(l,e),U(l,(pt(),r9),e),a=new de,_Pe(e,l,a),uIe(e,l,a),l),f.Vg(),f=t.eh(qB),f.Ug("Split graph",1),s=XPe(this.a,h),f.Vg(),c=new M(s);c.a<c.c.c.length;)r=u(E(c),121),Qke(this.b,r,t.eh(.5999999940395355/s.c.length));f=t.eh(qB),f.Ug("Pack components",1),h=GNe(s),f.Vg(),f=t.eh(qB),f.Ug("Apply layout results",1),DAe(h),f.Vg()},w(Nl,"TreeLayoutProvider",1112),b(1894,1,qh,U3n),o.Jc=function(e){qi(this,e)},o.Kc=function(){return Ln(),hm(),sv},w(Nl,"TreeUtil/1",1894),b(1895,1,qh,G3n),o.Jc=function(e){qi(this,e)},o.Kc=function(){return Ln(),hm(),sv},w(Nl,"TreeUtil/2",1895),b(1885,1,Le,z3n),o.Mb=function(e){return on(un(v(u(e,39),(pt(),Ca))))},w(Nl,"TreeUtil/lambda$0$Type",1885),b(1891,1,Le,okn),o.Mb=function(e){return this.a.Hc(u(e,39))},w(Nl,"TreeUtil/lambda$10$Type",1891),b(1892,1,{},skn),o.Kb=function(e){return t3e(this.a,u(e,39))},w(Nl,"TreeUtil/lambda$11$Type",1892),b(1893,1,Le,ZMn),o.Mb=function(e){return n4e(this.a,this.b,u(e,39))},w(Nl,"TreeUtil/lambda$12$Type",1893),b(1886,1,Le,fkn),o.Mb=function(e){return F5e(this.a,u(e,65))},w(Nl,"TreeUtil/lambda$3$Type",1886),b(1887,1,De,q3n),o.Ne=function(e,t){return Xae(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Nl,"TreeUtil/lambda$4$Type",1887),b(1888,1,Le,hkn),o.Mb=function(e){return _5e(this.a,u(e,65))},w(Nl,"TreeUtil/lambda$7$Type",1888),b(1889,1,De,X3n),o.Ne=function(e,t){return Vae(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Nl,"TreeUtil/lambda$8$Type",1889),b(1890,1,{},V3n),o.Kb=function(e){return u(e,65).b},w(Nl,"TreeUtil/lambda$9$Type",1890),b(508,137,{3:1,508:1,96:1,137:1}),o.g=0,w(s8,"TGraphElement",508),b(65,508,{3:1,65:1,508:1,96:1,137:1},VW),o.Ib=function(){return this.b&&this.c?td(this.b)+"->"+td(this.c):"e_"+mt(this)},w(s8,"TEdge",65),b(121,137,{3:1,121:1,96:1,137:1},ek),o.Ib=function(){var e,t,i,r,c;for(c=null,r=ge(this.b,0);r.b!=r.d.c;)i=u(be(r),39),c+=(i.c==null||i.c.length==0?"n_"+i.g:"n_"+i.c)+`
`;for(t=ge(this.a,0);t.b!=t.d.c;)e=u(be(t),65),c+=(e.b&&e.c?td(e.b)+"->"+td(e.c):"e_"+mt(e))+`
`;return c};var TDe=w(s8,"TGraph",121);b(643,508,{3:1,508:1,643:1,96:1,137:1}),w(s8,"TShape",643),b(39,643,{3:1,508:1,39:1,643:1,96:1,137:1},q$),o.Ib=function(){return td(this)};var DO=w(s8,"TNode",39);b(236,1,qh,sl),o.Jc=function(e){qi(this,e)},o.Kc=function(){var e;return e=ge(this.a.d,0),new sg(e)},w(s8,"TNode/2",236),b(329,1,Pi,sg),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(be(this.a),65).c},o.Ob=function(){return Q9(this.a)},o.Qb=function(){p$(this.a)},w(s8,"TNode/2/1",329),b(1923,1,vt,W3n),o.Kf=function(e,t){BNe(this,u(e,121),t)},w(Bc,"CompactionProcessor",1923),b(1924,1,De,lkn),o.Ne=function(e,t){return Cve(this.a,u(e,39),u(t,39))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$0$Type",1924),b(1925,1,Le,nTn),o.Mb=function(e){return Lge(this.b,this.a,u(e,42))},o.a=0,o.b=0,w(Bc,"CompactionProcessor/lambda$1$Type",1925),b(1934,1,De,J3n),o.Ne=function(e,t){return E0e(u(e,39),u(t,39))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$10$Type",1934),b(1935,1,De,Q3n),o.Ne=function(e,t){return R1e(u(e,39),u(t,39))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$11$Type",1935),b(1936,1,De,Y3n),o.Ne=function(e,t){return M0e(u(e,39),u(t,39))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$12$Type",1936),b(1926,1,Le,akn),o.Mb=function(e){return k1e(this.a,u(e,42))},o.a=0,w(Bc,"CompactionProcessor/lambda$2$Type",1926),b(1927,1,Le,dkn),o.Mb=function(e){return y1e(this.a,u(e,42))},o.a=0,w(Bc,"CompactionProcessor/lambda$3$Type",1927),b(1928,1,Le,Z3n),o.Mb=function(e){return u(e,39).c.indexOf(OP)==-1},w(Bc,"CompactionProcessor/lambda$4$Type",1928),b(1929,1,{},bkn),o.Kb=function(e){return Dpe(this.a,u(e,39))},o.a=0,w(Bc,"CompactionProcessor/lambda$5$Type",1929),b(1930,1,{},wkn),o.Kb=function(e){return Hme(this.a,u(e,39))},o.a=0,w(Bc,"CompactionProcessor/lambda$6$Type",1930),b(1931,1,De,gkn),o.Ne=function(e,t){return Z3e(this.a,u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$7$Type",1931),b(1932,1,De,pkn),o.Ne=function(e,t){return nme(this.a,u(e,39),u(t,39))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$8$Type",1932),b(1933,1,De,nmn),o.Ne=function(e,t){return K1e(u(e,39),u(t,39))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$9$Type",1933),b(1921,1,vt,emn),o.Kf=function(e,t){$Se(u(e,121),t)},w(Bc,"DirectionProcessor",1921),b(1913,1,vt,_Sn),o.Kf=function(e,t){rIe(this,u(e,121),t)},w(Bc,"FanProcessor",1913),b(1937,1,vt,tmn),o.Kf=function(e,t){ESe(u(e,121),t)},w(Bc,"GraphBoundsProcessor",1937),b(1938,1,{},imn),o.Ye=function(e){return u(e,39).e.a},w(Bc,"GraphBoundsProcessor/lambda$0$Type",1938),b(1939,1,{},rmn),o.Ye=function(e){return u(e,39).e.b},w(Bc,"GraphBoundsProcessor/lambda$1$Type",1939),b(1940,1,{},cmn),o.Ye=function(e){return ile(u(e,39))},w(Bc,"GraphBoundsProcessor/lambda$2$Type",1940),b(1941,1,{},umn),o.Ye=function(e){return tle(u(e,39))},w(Bc,"GraphBoundsProcessor/lambda$3$Type",1941),b(262,22,{3:1,34:1,22:1,262:1,196:1},rb),o.dg=function(){switch(this.g){case 0:return new pjn;case 1:return new _Sn;case 2:return new gjn;case 3:return new lmn;case 4:return new smn;case 8:return new omn;case 5:return new emn;case 6:return new dmn;case 7:return new W3n;case 9:return new tmn;case 10:return new bmn;default:throw T(new Gn(cB+(this.f!=null?this.f:""+this.g)))}};var iln,rln,cln,uln,oln,sln,fln,hln,lln,aln,YH,CDe=we(Bc,uB,262,ke,$xn,obe),lre;b(1920,1,vt,omn),o.Kf=function(e,t){xLe(u(e,121),t)},w(Bc,"LevelCoordinatesProcessor",1920),b(1918,1,vt,smn),o.Kf=function(e,t){iCe(this,u(e,121),t)},o.a=0,w(Bc,"LevelHeightProcessor",1918),b(1919,1,qh,fmn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return Ln(),hm(),sv},w(Bc,"LevelHeightProcessor/1",1919),b(1914,1,vt,gjn),o.Kf=function(e,t){pSe(this,u(e,121),t)},w(Bc,"LevelProcessor",1914),b(1915,1,Le,hmn),o.Mb=function(e){return on(un(v(u(e,39),(pt(),Ca))))},w(Bc,"LevelProcessor/lambda$0$Type",1915),b(1916,1,vt,lmn),o.Kf=function(e,t){nEe(this,u(e,121),t)},o.a=0,w(Bc,"NeighborsProcessor",1916),b(1917,1,qh,amn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return Ln(),hm(),sv},w(Bc,"NeighborsProcessor/1",1917),b(1922,1,vt,dmn),o.Kf=function(e,t){iIe(this,u(e,121),t)},o.a=0,w(Bc,"NodePositionProcessor",1922),b(1912,1,vt,pjn),o.Kf=function(e,t){KOe(this,u(e,121),t)},w(Bc,"RootProcessor",1912),b(1942,1,vt,bmn),o.Kf=function(e,t){D9e(u(e,121),t)},w(Bc,"Untreeifyer",1942),b(392,22,{3:1,34:1,22:1,392:1},eN);var Lj,ZH,dln,bln=we(Uy,"EdgeRoutingMode",392,ke,J2e,sbe),are,Nj,Av,nq,wln,gln,eq,tq,pln,iq,mln,rq,i9,cq,$O,xO,Js,jf,Lv,r9,c9,j1,vln,dre,uq,Ca,Dj,$j;b(862,1,ms,s8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Trn),""),wVn),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(_n(),!1)),(l1(),yi)),zt),yn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Crn),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Srn),""),"Tree Level"),"The index for the tree level the node is in"),Y(0)),Zr),Gi),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Prn),""),wVn),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),Y(-1)),Zr),Gi),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Irn),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),jln),It),Dln),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Orn),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),kln),It),bln),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Arn),""),"Search Order"),"Which search order to use when computing a spanning tree."),yln),It),xln),yn(xn)))),rzn((new l8n,e))};var bre,wre,gre,kln,pre,mre,yln,vre,kre,jln;w(Uy,"MrTreeMetaDataProvider",862),b(1006,1,ms,l8n),o.hf=function(e){rzn(e)};var yre,Eln,Mln,pw,Tln,Cln,oq,jre,Ere,Mre,Tre,Cre,Sre,Pre,Sln,Pln,Iln,Ire,A2,RO,Oln,Ore,Aln,sq,Are,Lre,Nre,Lln,Dre,Ph,Nln;w(Uy,"MrTreeOptions",1006),b(1007,1,{},wmn),o.sf=function(){var e;return e=new HSn,e},o.tf=function(e){},w(Uy,"MrTreeOptions/MrtreeFactory",1007),b(353,22,{3:1,34:1,22:1,353:1},pM);var fq,KO,hq,lq,Dln=we(Uy,"OrderWeighting",353,ke,r3e,fbe),$re;b(433,22,{3:1,34:1,22:1,433:1},rX);var $ln,aq,xln=we(Uy,"TreeifyingOrder",433,ke,Yge,hbe),xre;b(1486,1,vr,a8n),o.rg=function(e){return u(e,121),Rre},o.Kf=function(e,t){bve(this,u(e,121),t)};var Rre;w("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1486),b(1487,1,vr,d8n),o.rg=function(e){return u(e,121),Kre},o.Kf=function(e,t){ySe(this,u(e,121),t)};var Kre;w(W4,"NodeOrderer",1487),b(1494,1,{},_se),o.td=function(e){return VPn(e)},w(W4,"NodeOrderer/0methodref$lambda$6$Type",1494),b(1488,1,Le,Amn),o.Mb=function(e){return _p(),on(un(v(u(e,39),(pt(),Ca))))},w(W4,"NodeOrderer/lambda$0$Type",1488),b(1489,1,Le,Lmn),o.Mb=function(e){return _p(),u(v(u(e,39),(lc(),A2)),17).a<0},w(W4,"NodeOrderer/lambda$1$Type",1489),b(1490,1,Le,vkn),o.Mb=function(e){return q4e(this.a,u(e,39))},w(W4,"NodeOrderer/lambda$2$Type",1490),b(1491,1,Le,mkn),o.Mb=function(e){return Rpe(this.a,u(e,39))},w(W4,"NodeOrderer/lambda$3$Type",1491),b(1492,1,De,Nmn),o.Ne=function(e,t){return a4e(u(e,39),u(t,39))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(W4,"NodeOrderer/lambda$4$Type",1492),b(1493,1,Le,Dmn),o.Mb=function(e){return _p(),u(v(u(e,39),(pt(),tq)),17).a!=0},w(W4,"NodeOrderer/lambda$5$Type",1493),b(1495,1,vr,h8n),o.rg=function(e){return u(e,121),Bre},o.Kf=function(e,t){OPe(this,u(e,121),t)},o.b=0;var Bre;w("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495),b(1496,1,vr,f8n),o.rg=function(e){return u(e,121),Fre},o.Kf=function(e,t){lPe(u(e,121),t)};var Fre,SDe=w(po,"EdgeRouter",1496);b(1498,1,De,Omn),o.Ne=function(e,t){return jc(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/0methodref$compare$Type",1498),b(1503,1,{},pmn),o.Ye=function(e){return $(B(e))},w(po,"EdgeRouter/1methodref$doubleValue$Type",1503),b(1505,1,De,mmn),o.Ne=function(e,t){return bt($(B(e)),$(B(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/2methodref$compare$Type",1505),b(1507,1,De,vmn),o.Ne=function(e,t){return bt($(B(e)),$(B(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/3methodref$compare$Type",1507),b(1509,1,{},gmn),o.Ye=function(e){return $(B(e))},w(po,"EdgeRouter/4methodref$doubleValue$Type",1509),b(1511,1,De,kmn),o.Ne=function(e,t){return bt($(B(e)),$(B(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/5methodref$compare$Type",1511),b(1513,1,De,ymn),o.Ne=function(e,t){return bt($(B(e)),$(B(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/6methodref$compare$Type",1513),b(1497,1,{},jmn),o.Kb=function(e){return kl(),u(v(u(e,39),(lc(),Ph)),17)},w(po,"EdgeRouter/lambda$0$Type",1497),b(1508,1,{},Emn),o.Kb=function(e){return Q1e(u(e,39))},w(po,"EdgeRouter/lambda$11$Type",1508),b(1510,1,{},eTn),o.Kb=function(e){return Twe(this.b,this.a,u(e,39))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$13$Type",1510),b(1512,1,{},tTn),o.Kb=function(e){return Y1e(this.b,this.a,u(e,39))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$15$Type",1512),b(1514,1,De,Mmn),o.Ne=function(e,t){return h9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$17$Type",1514),b(1515,1,De,Tmn),o.Ne=function(e,t){return l9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$18$Type",1515),b(1516,1,De,Cmn),o.Ne=function(e,t){return d9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$19$Type",1516),b(1499,1,Le,kkn),o.Mb=function(e){return b2e(this.a,u(e,39))},o.a=0,w(po,"EdgeRouter/lambda$2$Type",1499),b(1517,1,De,Smn),o.Ne=function(e,t){return a9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$20$Type",1517),b(1500,1,De,Pmn),o.Ne=function(e,t){return lwe(u(e,39),u(t,39))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$3$Type",1500),b(1501,1,De,Imn),o.Ne=function(e,t){return awe(u(e,39),u(t,39))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$4$Type",1501),b(1502,1,{},$mn),o.Kb=function(e){return Z1e(u(e,39))},w(po,"EdgeRouter/lambda$5$Type",1502),b(1504,1,{},iTn),o.Kb=function(e){return Cwe(this.b,this.a,u(e,39))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$7$Type",1504),b(1506,1,{},rTn),o.Kb=function(e){return nae(this.b,this.a,u(e,39))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$9$Type",1506),b(675,1,{675:1},xBn),o.e=0,o.f=!1,o.g=!1,w(po,"MultiLevelEdgeNodeNodeGap",675),b(1943,1,De,xmn),o.Ne=function(e,t){return M2e(u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943),b(1944,1,De,Rmn),o.Ne=function(e,t){return T2e(u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944);var L2;b(500,22,{3:1,34:1,22:1,500:1,188:1,196:1},cX),o.dg=function(){return jKn(this)},o.qg=function(){return jKn(this)};var BO,N2,Rln=we(Lrn,"RadialLayoutPhases",500,ke,e2e,lbe),_re;b(1113,205,yd,dEn),o.rf=function(e,t){var i,r,c,s,f,h;if(i=sqn(this,e),t.Ug("Radial layout",i.c.length),on(un(z(e,(sa(),Vln))))||NT((r=new z9((Aw(),new Pw(e))),r)),h=wye(e),ht(e,(Cg(),L2),h),!h)throw T(new Gn("The given graph is not a tree!"));for(c=$(B(z(e,HO))),c==0&&(c=H_n(e)),ht(e,HO,c),f=new M(sqn(this,e));f.a<f.c.c.length;)s=u(E(f),47),s.Kf(e,t.eh(1));t.Vg()},w(Lrn,"RadialLayoutProvider",1113),b(556,1,De,zE),o.Ne=function(e,t){return QSe(this.a,this.b,u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},o.a=0,o.b=0,w(Lrn,"RadialUtil/lambda$0$Type",556),b(1395,1,vt,Kmn),o.Kf=function(e,t){HLe(u(e,27),t)},w($rn,"CalculateGraphSize",1395),b(1396,1,vt,Bmn),o.Kf=function(e,t){hOe(u(e,27))},w($rn,"EdgeAngleCalculator",1396),b(368,22,{3:1,34:1,22:1,368:1,196:1},d7),o.dg=function(){switch(this.g){case 0:return new Gmn;case 1:return new Fmn;case 2:return new zmn;case 3:return new Kmn;case 4:return new Bmn;default:throw T(new Gn(cB+(this.f!=null?this.f:""+this.g)))}};var dq,bq,wq,gq,pq,Hre=we($rn,uB,368,ke,U3e,abe),qre;b(653,1,{}),o.e=1,o.g=0,w(UB,"AbstractRadiusExtensionCompaction",653),b(1834,653,{},sSn),o.Cg=function(e){var t,i,r,c,s,f,h,l,a;for(this.c=u(z(e,(Cg(),L2)),27),sfe(this,this.c),this.d=Sx(u(z(e,(sa(),xj)),299)),l=u(z(e,vq),17),l&&t9n(this,l.a),h=B(z(e,(He(),qd))),gG(this,(Jn(h),h)),a=a0(this.c),this.d&&this.d.Gg(a),wPe(this,a),f=new Fu(S(C(Ye,1),vVn,27,0,[this.c])),i=0;i<2;i++)for(t=0;t<a.c.length;t++)c=new Fu(S(C(Ye,1),vVn,27,0,[(Nn(t,a.c.length),u(a.c[t],27))])),s=t<a.c.length-1?(Nn(t+1,a.c.length),u(a.c[t+1],27)):(Nn(0,a.c.length),u(a.c[0],27)),r=t==0?u(sn(a,a.c.length-1),27):(Nn(t-1,a.c.length),u(a.c[t-1],27)),KFn(this,(Nn(t,a.c.length),u(a.c[t],27),f),r,s,c)},w(UB,"AnnulusWedgeCompaction",1834),b(1393,1,vt,Fmn),o.Kf=function(e,t){sve(u(e,27),t)},w(UB,"GeneralCompactor",1393),b(1833,653,{},_mn),o.Cg=function(e){var t,i,r,c;i=u(z(e,(Cg(),L2)),27),this.f=i,this.b=Sx(u(z(e,(sa(),xj)),299)),c=u(z(e,vq),17),c&&t9n(this,c.a),r=B(z(e,(He(),qd))),gG(this,(Jn(r),r)),t=a0(i),this.b&&this.b.Gg(t),g_n(this,t)},o.a=0,w(UB,"RadialCompaction",1833),b(1842,1,{},Hmn),o.Dg=function(e){var t,i,r,c,s,f;for(this.a=e,t=0,f=a0(e),r=0,s=new M(f);s.a<s.c.c.length;)for(c=u(E(s),27),++r,i=r;i<f.c.length;i++)AIe(this,c,(Nn(i,f.c.length),u(f.c[i],27)))&&(t+=1);return t},w(xrn,"CrossingMinimizationPosition",1842),b(1840,1,{},qmn),o.Dg=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m;for(r=0,i=new ie(ce(Sl(e).a.Kc(),new En));pe(i);)t=u(fe(i),74),h=Gr(u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),a=h.i+h.g/2,d=h.j+h.f/2,c=e.i+e.g/2,s=e.j+e.f/2,g=new Ni,g.a=a-c,g.b=d-s,f=new V(g.a,g.b),m4(f,e.g,e.f),g.a-=f.a,g.b-=f.b,c=a-g.a,s=d-g.b,l=new V(g.a,g.b),m4(l,h.g,h.f),g.a-=l.a,g.b-=l.b,a=c+g.a,d=s+g.b,p=a-c,m=d-s,r+=y.Math.sqrt(p*p+m*m);return r},w(xrn,"EdgeLengthOptimization",1840),b(1841,1,{},Umn),o.Dg=function(e){var t,i,r,c,s,f,h,l,a,d,g;for(r=0,i=new ie(ce(Sl(e).a.Kc(),new En));pe(i);)t=u(fe(i),74),h=Gr(u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),l=h.i+h.g/2,a=h.j+h.f/2,c=u(z(h,(He(),N3)),8),s=e.i+c.a+e.g/2,f=e.j+c.b+e.f,d=l-s,g=a-f,r+=y.Math.sqrt(d*d+g*g);return r},w(xrn,"EdgeLengthPositionOptimization",1841),b(1392,653,vt,Gmn),o.Kf=function(e,t){bEe(this,u(e,27),t)},w("org.eclipse.elk.alg.radial.intermediate.overlaps","RadiusExtensionOverlapRemoval",1392),b(1394,1,vt,zmn),o.Kf=function(e,t){s0e(u(e,27),t)},w("org.eclipse.elk.alg.radial.intermediate.rotation","GeneralRotator",1394),b(434,22,{3:1,34:1,22:1,434:1},uX);var Kln,mq,Bln=we(f8,"AnnulusWedgeCriteria",434,ke,Zge,bbe),Ure;b(393,22,{3:1,34:1,22:1,393:1},tN);var FO,Fln,_ln,Hln=we(f8,Rtn,393,ke,rpe,dbe),Gre;b(863,1,ms,b8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Rrn),""),"Center On Root"),"Centers the layout on the root of the tree i.e. so that the central node is also the center node of the final layout. This introduces additional whitespace."),(_n(),!1)),(l1(),yi)),zt),yn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Krn),""),"Order ID"),"The id can be used to define an order for nodes of one radius. This can be used to sort them in the layer accordingly."),Y(0)),Zr),Gi),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Brn),""),"Radius"),"The radius option can be used to set the initial radius for the radial layouter."),0),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,NP),""),"Rotate"),"The rotate option determines whether a rotation of the layout should be performed."),!1),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,zB),""),kVn),"With the compacter option it can be determined how compaction on the graph is done. It can be chosen between none, the radial compaction or the compaction of wedges separately."),qln),It),Hln),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,XB),""),"Compaction Step Size"),"Determine the size of steps with which the compaction is done. Step size 1 correlates to a compaction of 1 pixel per Iteration."),Y(1)),Zr),Gi),yn(xn)))),ri(e,XB,zB,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Frn),""),"Sorter"),"Sort the nodes per radius according to the sorting algorithm. The strategies are none, by the given order id, or sorting them by polar coordinates."),Gln),It),u1n),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,_rn),""),"Annulus Wedge Criteria"),"Determine how the wedge for the node placement is calculated. It can be chosen between wedge determination by the number of leaves or by the maximum sum of diagonals."),zln),It),Bln),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Hrn),""),"Translation Optimization"),"Find the optimal translation of the nodes of the first radii according to this criteria. For example edge crossings can be minimized."),Uln),It),i1n),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,VB),Urn),"Target Angle"),"The angle in radians that the layout should be rotated to after layout."),0),Qi),si),yn(xn)))),ri(e,VB,NP,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,WB),Urn),"Additional Wedge Space"),"If set to true, modifies the target angle by rotating further such that space is left for an edge to pass in between the nodes. This option should only be used in conjunction with top-down layout."),!1),yi),zt),yn(xn)))),ri(e,WB,NP,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,qrn),Urn),"Outgoing Edge Angles"),"Calculate the required angle of connected nodes to leave space for an incoming edge. This option should only be used in conjunction with top-down layout."),!1),yi),zt),yn(xn)))),QGn((new w8n,e))};var zre,Xre,Vre,qln,Wre,Uln,Jre,Qre,Yre,Zre,nce,ece,tce,Gln,ice,zln;w(f8,"RadialMetaDataProvider",863),b(1008,1,ms,w8n),o.hf=function(e){QGn(e)};var Xln,vq,kq,rce,cce,uce,oce,Vln,Wln,_O,sce,fce,HO,Jln,Qln,Yln,yq,xj,hce,Zln;w(f8,"RadialOptions",1008),b(1009,1,{},Xmn),o.sf=function(){var e;return e=new dEn,e},o.tf=function(e){},w(f8,"RadialOptions/RadialFactory",1009),b(354,22,{3:1,34:1,22:1,354:1},mM);var n1n,e1n,t1n,jq,i1n=we(f8,"RadialTranslationStrategy",354,ke,c3e,wbe),lce;b(299,22,{3:1,34:1,22:1,299:1},iN);var r1n,Eq,c1n,u1n=we(f8,"SortingStrategy",299,ke,cpe,gbe),ace;b(1476,1,vr,Vmn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){REe(this,u(e,27),t)},o.c=0,w("org.eclipse.elk.alg.radial.p1position","EadesRadial",1476),b(1838,1,{},Wmn),o.Eg=function(e){return mBn(e)},w(yVn,"AnnulusWedgeByLeafs",1838),b(1839,1,{},Jmn),o.Eg=function(e){return OFn(this,e)},w(yVn,"AnnulusWedgeByNodeSpace",1839),b(1477,1,vr,Qmn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){V5e(this,u(e,27),t)},w("org.eclipse.elk.alg.radial.p2routing","StraightLineEdgeRouter",1477),b(826,1,{},rz),o.Fg=function(e){},o.Gg=function(e){Iyn(this,e)},w(Grn,"IDSorter",826),b(1837,1,De,Ymn),o.Ne=function(e,t){return fve(u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Grn,"IDSorter/lambda$0$Type",1837),b(1836,1,{},Exn),o.Fg=function(e){wLn(this,e)},o.Gg=function(e){var t;e.dc()||(this.e||(t=sIn(u(e.Xb(0),27)),wLn(this,t)),Iyn(this.e,e))},w(Grn,"PolarCoordinateSorter",1836),b(445,22,{3:1,34:1,22:1,445:1},rN);var Rj,qO,Mq,o1n=we(TVn,"RectPackingLayoutPhases",445,ke,tpe,pbe),dce;b(1118,205,yd,wEn),o.rf=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;if(t.Ug("Rectangle Packing",1),d=u(z(e,(Bf(),f9)),107),h=on(un(z(e,$ce))),a=$(B(z(e,h9))),D=on(un(z(e,k1n))),k=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a),A=!1,D&&k.i>=3)for(P=u(N(k,0),27),O=u(N(k,1),27),c=0;c+2<k.i;)if(j=P,P=O,O=u(N(k,c+2),27),j.f>=P.f+O.f+a||O.f>=j.f+P.f+a){A=!0;break}else++c;else A=!0;if(!A){for(g=k.i,f=new ne(k);f.e!=f.i.gc();)s=u(ue(f),27),ht(s,(He(),Wj),Y(g)),--g;KUn(e,new op),t.Vg();return}for(i=(H7(this.a),hf(this.a,(XC(),Rj),u(z(e,M1n),188)),hf(this.a,qO,u(z(e,m1n),188)),hf(this.a,Mq,u(z(e,y1n),188)),EX(this.a,(_=new ii,Fe(_,Rj,(rS(),Sq)),Fe(_,qO,Cq),on(un(z(e,w1n)))&&Fe(_,Rj,Tq),_)),wy(this.a,e)),l=1/i.c.length,m=new M(i);m.a<m.c.c.length;){if(p=u(E(m),47),t.$g())return;p.Kf(e,t.eh(l))}Lve(k,d),h||qb(e,$(B(z(e,(_h(),Nv))))+(d.b+d.c),$(B(z(e,o9)))+(d.d+d.a),!1,!0),on(un(z(e,g1n)))||NT((r=new z9((Aw(),new Pw(e))),r)),t.Vg()},w(TVn,"RectPackingLayoutProvider",1118),b(1518,1,vt,Zmn),o.Kf=function(e,t){lOe(u(e,27),t)},w(DP,"InteractiveNodeReorderer",1518),b(1519,1,De,n4n),o.Ne=function(e,t){return m6e(u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(DP,"InteractiveNodeReorderer/lambda$0$Type",1519),b(455,22,{3:1,34:1,22:1,455:1,196:1},cN),o.dg=function(){switch(this.g){case 0:return new Zmn;case 1:return new t4n;case 2:return new e4n}return null};var Tq,Cq,Sq,bce=we(DP,uB,455,ke,ipe,mbe),wce;b(1521,1,vt,e4n),o.Kf=function(e,t){L8e(u(e,27),t)},w(DP,"MinSizePostProcessor",1521),b(1520,1,vt,t4n),o.Kf=function(e,t){O6e(u(e,27),t)},w(DP,"MinSizePreProcessor",1520);var u9,o9,Nv,gce,pce,UO,Pq,Iq,s9,GO,X0;b(394,22,{3:1,34:1,22:1,394:1},uN);var s1n,f1n,Oq,h1n=we(JB,"OptimizationGoal",394,ke,epe,vbe),mce;b(867,1,ms,g8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,zrn),""),"Try box layout first"),"Whether one should check whether the regions are stackable to see whether box layout would do the job. For example, nodes with the same height are not stackable inside a row. Therefore, box layout will perform better and faster."),(_n(),!1)),(l1(),yi)),zt),yn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Xrn),""),"Current position of a node in the order of nodes"),"The rectangles are ordered. Normally according to their definition the the model. This option specifies the current position of a node."),Y(-1)),Zr),Gi),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Vrn),""),"Desired index of node"),"The rectangles are ordered. Normally according to their definition the the model. This option allows to specify a desired position that has preference over the original position."),Y(-1)),Zr),Gi),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Wrn),""),"In new Row"),"If set to true this node begins in a new row. Consequently this node cannot be moved in a previous layer during compaction. Width approximation does does not take this into account."),!1),yi),zt),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Jrn),QB),"Width Approximation Strategy"),"Strategy for finding an initial width of the drawing."),d1n),It),S1n),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Qrn),QB),"Target Width"),"Option to place the rectangles in the given target width instead of approximating the width using the desired aspect ratio. The padding is not included in this. Meaning a drawing will have width of targetwidth + horizontal padding."),-1),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Yrn),QB),"Optimization Goal"),"Optimization goal for approximation of the bounding box given by the first iteration. Determines whether layout is sorted by the maximum scaling, aspect ratio, or area. Depending on the strategy the aspect ratio might be nearly ignored."),a1n),It),h1n),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Zrn),QB),"Shift Last Placed."),"When placing a rectangle behind or below the last placed rectangle in the first iteration, it is sometimes possible to shift the rectangle further to the left or right, resulting in less whitespace. True (default) enables the shift and false disables it. Disabling the shift produces a greater approximated area by the first iteration and a layout, when using ONLY the first iteration (default not the case), where it is sometimes impossible to implement a size transformation of rectangles that will fill the bounding box and eliminate empty spaces."),!0),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ncn),"packing"),CVn),"Strategy for finding an initial placement on nodes."),l1n),It),O1n),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ecn),SVn),"Row Height Reevaluation"),"During the compaction step the height of a row is normally not changed. If this options is set, the blocks of other rows might be added if they exceed the row height. If this is the case the whole row has to be packed again to be optimal regarding the new row height. This option should, therefore, be used with care since it might be computation heavy."),!1),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,tcn),SVn),"Compaction iterations"),"Defines the number of compaction iterations. E.g. if set to 2 the width is initially approximated, then the drawing is compacted and based on the resulting drawing the target width is decreased or increased and a second compaction step is executed and the result compared to the first one. The best run is used based on the scale measure."),Y(1)),Zr),Gi),yn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,icn),"whiteSpaceElimination"),"White Space Approximation Strategy"),"Strategy for expanding nodes such that whitespace in the parent is eliminated."),It),N1n),yn(xn)))),bzn((new p8n,e))};var vce,kce,yce,jce,Ece,Mce,l1n,Tce,Cce,Sce,Pce,a1n,Ice,d1n,Oce;w(JB,"RectPackingMetaDataProvider",867),b(1016,1,ms,p8n),o.hf=function(e){bzn(e)};var zO,Ace,b1n,Kj,w1n,Lce,Bj,Nce,Dce,$ce,xce,Rce,g1n,p1n,Aq,m1n,f9,v1n,Kce,h9,k1n,y1n,j1n,E1n,M1n,Lq;w(JB,"RectPackingOptions",1016),b(1017,1,{},i4n),o.sf=function(){var e;return e=new wEn,e},o.tf=function(e){},w(JB,"RectPackingOptions/RectpackingFactory",1017),b(1705,1,{},mPn),o.a=0,o.c=!1,w(J4,"AreaApproximation",1705);var T1n=Dt(J4,"BestCandidateFilter");b(673,1,{535:1},KA),o.Hg=function(e,t,i){var r,c,s,f,h,l;for(l=new Z,s=Pt,h=new M(e);h.a<h.c.c.length;)f=u(E(h),238),s=y.Math.min(s,(f.c+(i.b+i.c))*(f.b+(i.d+i.a)));for(c=new M(e);c.a<c.c.c.length;)r=u(E(c),238),(r.c+(i.b+i.c))*(r.b+(i.d+i.a))==s&&Bn(l.c,r);return l},w(J4,"AreaFilter",673),b(674,1,{535:1},BA),o.Hg=function(e,t,i){var r,c,s,f,h,l;for(h=new Z,l=Pt,f=new M(e);f.a<f.c.c.length;)s=u(E(f),238),l=y.Math.min(l,y.Math.abs((s.c+(i.b+i.c))/(s.b+(i.d+i.a))-t));for(c=new M(e);c.a<c.c.c.length;)r=u(E(c),238),y.Math.abs((r.c+(i.b+i.c))/(r.b+(i.d+i.a))-t)==l&&Bn(h.c,r);return h},w(J4,"AspectRatioFilter",674),b(1469,1,vr,r4n),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){YCe(u(e,27),t)},w(J4,"GreedyWidthApproximator",1469),b(672,1,{535:1},FA),o.Hg=function(e,t,i){var r,c,s,f,h,l;for(l=new Z,s=li,h=new M(e);h.a<h.c.c.length;)f=u(E(h),238),s=y.Math.max(s,rT(f.c+(i.b+i.c),f.b+(i.d+i.a),f.a));for(c=new M(e);c.a<c.c.c.length;)r=u(E(c),238),rT(r.c+(i.b+i.c),r.b+(i.d+i.a),r.a)==s&&Bn(l.c,r);return l},w(J4,"ScaleMeasureFilter",672),b(1470,1,vr,c4n),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){KEe(u(e,27),t)},w(J4,"TargetWidthWidthApproximator",1470),b(490,22,{3:1,34:1,22:1,490:1,188:1,196:1},oX),o.dg=function(){return BFn(this)},o.qg=function(){return BFn(this)};var Nq,C1n,S1n=we(J4,"WidthApproximationStrategy",490,ke,Jge,kbe),Bce;b(1471,1,vr,u4n),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){YLe(this,u(e,27),t)},w($P,"Compactor",1471),b(1473,1,vr,o4n),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){OCe(u(e,27),t)},w($P,"NoPlacement",1473),b(439,22,{3:1,34:1,22:1,439:1,188:1,196:1},oN),o.dg=function(){return ZRn(this)},o.qg=function(){return ZRn(this)};var Dq,P1n,I1n,O1n=we($P,"PackingStrategy",439,ke,npe,Ebe),Fce;b(810,1,{},lX),o.a=0,o.b=0,o.c=0,o.d=Pt,o.e=0,o.f=Pt,w($P,"RowFillingAndCompaction",810),b(1472,1,vr,s4n),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){bAe(u(e,27),t)},w($P,"SimplePlacement",1472),b(1474,1,vr,f4n),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){this.Ig(u(e,27),t)},o.Ig=function(e,t){NHn(e,t)},w(rcn,"EqualWhitespaceEliminator",1474),b(1475,1474,vr,h4n),o.Ig=function(e,t){var i,r,c,s,f;t.Ug("To Aspect Ratio Whitesapce Eliminator",1),f=$(B(z(e,(_h(),Nv)))),s=$(B(z(e,o9))),c=$(B(z(e,(Bf(),zO)))),i=$(B(z(e,u9))),r=f/s,r<c?(f=s*c,ht(e,Nv,f)):(i+=f/c-s,ht(e,u9,i),ht(e,o9,s+i)),NHn(e,t),t.Vg()},w(rcn,"ToAspectratioNodeExpander",1475),b(491,22,{3:1,34:1,22:1,491:1,188:1,196:1},sX),o.dg=function(){return Sxn(this)},o.qg=function(){return Sxn(this)};var A1n,L1n,N1n=we(rcn,"WhiteSpaceEliminationStrategy",491,ke,Qge,Mbe),_ce;b(172,1,{172:1},U$),o.a=0,o.c=!1,o.d=0,o.e=0,o.f=0,o.g=0,o.i=0,o.k=!1,o.o=Pt,o.p=Pt,o.r=0,o.s=0,o.t=0,w(Gy,"Block",172),b(209,1,{209:1},DT),o.a=0,o.b=0,o.d=0,o.e=0,o.f=0,w(Gy,"BlockRow",209),b(315,1,{315:1},eJ),o.b=0,o.c=0,o.d=0,o.e=0,o.f=0,w(Gy,"BlockStack",315),b(238,1,{238:1},eW,eZ),o.a=0,o.b=0,o.c=0,o.d=0,o.e=0,o.g=0;var PDe=w(Gy,"DrawingData",238);b(373,22,{3:1,34:1,22:1,373:1},b7);var A3,D2,l9,a9,Fj,Hce=we(Gy,"DrawingDataDescriptor",373,ke,G3e,Tbe),qce;b(186,1,{186:1},lJ),o.b=0,o.c=0,o.e=0,o.f=0,w(Gy,"RectRow",186),b(763,1,{},aY),o.j=0,w(E0,KXn,763),b(1209,1,{},l4n),o.af=function(e){return Q1(e.a,e.b)},w(E0,qtn,1209),b(1210,1,{},ykn),o.af=function(e){return eme(this.a,e)},w(E0,BXn,1210),b(1211,1,{},jkn),o.af=function(e){return y9e(this.a,e)},w(E0,FXn,1211),b(1212,1,{},Ekn),o.af=function(e){return c6e(this.a,e)},w(E0,"ElkGraphImporter/lambda$3$Type",1212),b(1213,1,{},Mkn),o.af=function(e){return oMe(this.a,e)},w(E0,_Xn,1213),b(1115,205,yd,gEn),o.rf=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m;for(Nf(e,(Vk(),QO))&&(m=Ae(z(e,(Lx(),nan))),s=CR(Gm(),m),s&&(f=u(z7(s.f),205),f.rf(e,t.eh(1)))),ht(e,_q,(tk(),JO)),ht(e,Hq,(Wk(),Fq)),ht(e,qq,(Mk(),YO)),h=u(z(e,(Lx(),Q1n)),17).a,t.Ug("Overlap removal",1),on(un(z(e,fue))),l=new ni,a=new Tkn(l),r=new aY,i=wzn(r,e),d=!0,c=0;c<h&&d;){if(on(un(z(e,Y1n)))){if(l.a.$b(),Yje(new kCn(a),i.i),l.a.gc()==0)break;i.e=l}for(H7(this.b),hf(this.b,(Dk(),XO),(u6(),_j)),hf(this.b,VO,i.g),hf(this.b,WO,(eM(),Rq)),this.a=wy(this.b,i),p=new M(this.a);p.a<p.c.c.length;)g=u(E(p),47),g.Kf(i,t.eh(1));wke(r,i),d=on(un(v(i,(Wm(),ron)))),++c}PGn(r,i),t.Vg()},w(E0,"OverlapRemovalLayoutProvider",1115),b(1116,1,{},Tkn),w(E0,"OverlapRemovalLayoutProvider/lambda$0$Type",1116),b(444,22,{3:1,34:1,22:1,444:1},sN);var XO,VO,WO,$q=we(E0,"SPOrEPhases",444,ke,fpe,Sbe),Uce;b(1219,1,{},pEn),w(E0,"ShrinkTree",1219),b(1117,205,yd,vjn),o.rf=function(e,t){var i,r,c,s,f;Nf(e,(Vk(),QO))&&(f=Ae(z(e,QO)),c=CR(Gm(),f),c&&(s=u(z7(c.f),205),s.rf(e,t.eh(1)))),r=new aY,i=wzn(r,e),LTe(this.a,i,t.eh(1)),PGn(r,i)},w(E0,"ShrinkTreeLayoutProvider",1117),b(305,137,{3:1,305:1,96:1,137:1},oAn),o.c=!1,w("org.eclipse.elk.alg.spore.graph","Graph",305),b(489,22,{3:1,34:1,22:1,489:1,188:1,196:1},dMn),o.dg=function(){return jRn(this)},o.qg=function(){return jRn(this)};var xq,D1n=we(M0,Rtn,489,ke,ege,Cbe),Gce;b(558,22,{3:1,34:1,22:1,558:1,188:1,196:1},aSn),o.dg=function(){return new QU},o.qg=function(){return new QU};var Rq,zce=we(M0,"OverlapRemovalStrategy",558,ke,tge,Pbe),Xce;b(438,22,{3:1,34:1,22:1,438:1},fX);var JO,Kq,$1n=we(M0,"RootSelection",438,ke,t2e,Ibe),Vce;b(324,22,{3:1,34:1,22:1,324:1},w7);var x1n,Bq,Fq,R1n,K1n,B1n=we(M0,"SpanningTreeCostFunction",324,ke,z3e,Obe),Wce;b(1014,1,ms,m8n),o.hf=function(e){rGn(e)};var F1n,_1n,Jce,Qce,H1n,q1n,_q,Hq,qq,Yce,Zce,QO;w(M0,"SporeCompactionOptions",1014),b(1015,1,{},a4n),o.sf=function(){var e;return e=new vjn,e},o.tf=function(e){},w(M0,"SporeCompactionOptions/SporeCompactionFactory",1015),b(866,1,ms,v8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,YB),""),"Underlying Layout Algorithm"),"A layout algorithm that is applied to the graph before it is compacted. If this is null, nothing is applied before compaction."),(l1(),$2)),fn),yn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,eF),"structure"),"Structure Extraction Strategy"),"This option defines what kind of triangulation or other partitioning of the plane is applied to the vertices."),W1n),It),ean),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ccn),tF),"Tree Construction Strategy"),"Whether a minimum spanning tree or a maximum spanning tree should be constructed."),X1n),It),ian),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ucn),tF),"Cost Function for Spanning Tree"),"The cost function is used in the creation of the spanning tree."),z1n),It),B1n),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ZB),tF),"Root node for spanning tree construction"),"The identifier of the node that is preferred as the root of the spanning tree. If this is null, the first node is chosen."),null),$2),fn),yn(xn)))),ri(e,ZB,nF,cue),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,nF),tF),"Root selection for spanning tree"),"This sets the method used to select a root node for the construction of a spanning tree"),G1n),It),$1n),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ocn),Kin),CVn),"This option defines how the compaction is applied."),U1n),It),D1n),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,scn),Kin),"Orthogonal Compaction"),"Restricts the translation of nodes to orthogonal directions in the compaction phase."),(_n(),!1)),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,fcn),IVn),"Upper limit for iterations of overlap removal"),null),Y(64)),Zr),Gi),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,hcn),IVn),"Whether to run a supplementary scanline overlap check."),null),!0),yi),zt),yn(xn)))),oUn((new k8n,e)),rGn((new m8n,e))};var nue,U1n,eue,tue,iue,rue,cue,uue,G1n,oue,z1n,sue,X1n,V1n,W1n,J1n;w(M0,"SporeMetaDataProvider",866),b(1012,1,ms,k8n),o.hf=function(e){oUn(e)};var fue,Q1n,Y1n,Z1n,hue,nan;w(M0,"SporeOverlapRemovalOptions",1012),b(1013,1,{},d4n),o.sf=function(){var e;return e=new gEn,e},o.tf=function(e){},w(M0,"SporeOverlapRemovalOptions/SporeOverlapFactory",1013),b(539,22,{3:1,34:1,22:1,539:1,188:1,196:1},dOn),o.dg=function(){return ERn(this)},o.qg=function(){return ERn(this)};var _j,ean=we(M0,"StructureExtractionStrategy",539,ke,ige,Abe),lue;b(437,22,{3:1,34:1,22:1,437:1,188:1,196:1},hX),o.dg=function(){return EKn(this)},o.qg=function(){return EKn(this)};var tan,YO,ian=we(M0,"TreeConstructionStrategy",437,ke,i2e,Lbe),aue;b(1463,1,vr,b4n),o.rg=function(e){return u(e,305),new ii},o.Kf=function(e,t){vke(u(e,305),t)},w(OVn,"DelaunayTriangulationPhase",1463),b(1464,1,re,Ckn),o.Cd=function(e){nn(this.a,u(e,68).a)},w(OVn,"DelaunayTriangulationPhase/lambda$0$Type",1464),b(794,1,vr,iz),o.rg=function(e){return u(e,305),new ii},o.Kf=function(e,t){this.Jg(u(e,305),t)},o.Jg=function(e,t){var i,r,c;t.Ug("Minimum spanning tree construction",1),e.d?r=e.d.a:r=u(sn(e.i,0),68).a,on(un(v(e,(Wm(),I8))))?c=GR(e.e,r,(i=e.b,i)):c=GR(e.e,r,e.b),cRn(this,c,e),t.Vg()},w(iF,"MinSTPhase",794),b(1466,794,vr,rjn),o.Jg=function(e,t){var i,r,c,s;t.Ug("Maximum spanning tree construction",1),i=new Skn(e),e.d?c=e.d.c:c=u(sn(e.i,0),68).c,on(un(v(e,(Wm(),I8))))?s=GR(e.e,c,(r=i,r)):s=GR(e.e,c,i),cRn(this,s,e),t.Vg()},w(iF,"MaxSTPhase",1466),b(1467,1,{},Skn),o.af=function(e){return gle(this.a,e)},w(iF,"MaxSTPhase/lambda$0$Type",1467),b(1465,1,re,Pkn),o.Cd=function(e){s1e(this.a,u(e,68))},w(iF,"MinSTPhase/lambda$0$Type",1465),b(796,1,vr,QU),o.rg=function(e){return u(e,305),new ii},o.Kf=function(e,t){Dye(this,u(e,305),t)},o.a=!1,w(rF,"GrowTreePhase",796),b(797,1,re,$V),o.Cd=function(e){Jve(this.a,this.b,this.c,u(e,225))},w(rF,"GrowTreePhase/lambda$0$Type",797),b(1468,1,vr,w4n),o.rg=function(e){return u(e,305),new ii},o.Kf=function(e,t){H9e(this,u(e,305),t)},w(rF,"ShrinkTreeCompactionPhase",1468),b(795,1,re,xV),o.Cd=function(e){IMe(this.a,this.b,this.c,u(e,225))},w(rF,"ShrinkTreeCompactionPhase/lambda$0$Type",795);var ran=Dt(dc,"IGraphElementVisitor");b(872,1,{536:1},zAn),o.Kg=function(e){var t;t=xSe(this,e),Ur(t,u(ee(this.b,e),96)),ATe(this,e,t)};var due,bue;w(e2,"LayoutConfigurator",872);var IDe=Dt(e2,"LayoutConfigurator/IPropertyHolderOptionFilter");b(944,1,{2032:1},g4n),o.Lg=function(e,t){return qp(),!e.pf(t)},w(e2,"LayoutConfigurator/lambda$0$Type",944),b(943,1,{845:1},p4n),o.Mg=function(e,t){return qp(),!e.pf(t)},w(e2,"LayoutConfigurator/lambda$1$Type",943),b(945,1,{2032:1},Hse),o.Lg=function(e,t){return mEn(e,t)},w(e2,"LayoutConfigurator/lambda$2$Type",945),b(946,1,Le,cTn),o.Mb=function(e){return G0e(this.a,this.b,u(e,2032))},w(e2,"LayoutConfigurator/lambda$3$Type",946),b(869,1,{},m4n),w(e2,"RecursiveGraphLayoutEngine",869),b(224,63,Il,$yn,_l),w(e2,"UnsupportedConfigurationException",224),b(370,63,Il,hp),w(e2,"UnsupportedGraphException",370),b(761,1,{}),w(dc,"AbstractRandomListAccessor",761),b(449,761,{},$5),o.Ng=function(){return null},o.d=!0,o.e=!0,o.f=0,w(Y4,"AlgorithmAssembler",449),b(1200,1,Le,v4n),o.Mb=function(e){return!!u(e,106)},w(Y4,"AlgorithmAssembler/lambda$0$Type",1200),b(1201,1,{},Ikn),o.Kb=function(e){return Ahe(this.a,u(e,106))},w(Y4,"AlgorithmAssembler/lambda$1$Type",1201),b(1202,1,Le,k4n),o.Mb=function(e){return!!u(e,80)},w(Y4,"AlgorithmAssembler/lambda$2$Type",1202),b(1203,1,re,Okn),o.Cd=function(e){To(this.a,u(e,80))},w(Y4,"AlgorithmAssembler/lambda$3$Type",1203),b(1204,1,re,uTn),o.Cd=function(e){tae(this.a,this.b,u(e,196))},w(Y4,"AlgorithmAssembler/lambda$4$Type",1204),b(1343,1,De,y4n),o.Ne=function(e,t){return Sge(u(e,196),u(t,196))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Y4,"EnumBasedFactoryComparator",1343),b(80,761,{80:1},ii),o.Ng=function(){return new ni},o.a=0,w(Y4,"LayoutProcessorConfiguration",80),b(1025,1,{536:1},y8n),o.Kg=function(e){o5(gue,new Akn(e))};var wue,gue,pue;w(oc,"DeprecatedLayoutOptionReplacer",1025),b(1026,1,re,j4n),o.Cd=function(e){Rme(u(e,167))},w(oc,"DeprecatedLayoutOptionReplacer/lambda$0$Type",1026),b(1027,1,re,E4n),o.Cd=function(e){j8e(u(e,167))},w(oc,"DeprecatedLayoutOptionReplacer/lambda$1$Type",1027),b(1028,1,{},Akn),o.Yd=function(e,t){eae(this.a,u(e,149),u(t,41))},w(oc,"DeprecatedLayoutOptionReplacer/lambda$2$Type",1028),b(143,1,{701:1,143:1},gd),o.Fb=function(e){return PJ(this,e)},o.Og=function(){return this.b},o.Pg=function(){return this.c},o.xe=function(){return this.e},o.Hb=function(){return t1(this.c)},o.Ib=function(){return"Layout Algorithm: "+this.c};var ODe=w(oc,"LayoutAlgorithmData",143);b(269,1,{},Fa),w(oc,"LayoutAlgorithmData/Builder",269),b(1029,1,{536:1},T4n),o.Kg=function(e){L(e,207)&&!on(un(e.of((He(),tA))))&&TIe(u(e,27))},w(oc,"LayoutAlgorithmResolver",1029),b(233,1,{701:1,233:1},Dp),o.Fb=function(e){return L(e,233)?Sn(this.b,u(e,233).b):!1},o.Og=function(){return this.a},o.Pg=function(){return this.b},o.xe=function(){return this.d},o.Hb=function(){return t1(this.b)},o.Ib=function(){return"Layout Type: "+this.b},w(oc,"LayoutCategoryData",233),b(357,1,{},tp),w(oc,"LayoutCategoryData/Builder",357),b(879,1,{},Jqn);var Uq;w(oc,"LayoutMetaDataService",879),b(880,1,{},QIn),w(oc,"LayoutMetaDataService/Registry",880),b(486,1,{486:1},YU),w(oc,"LayoutMetaDataService/Registry/Triple",486),b(881,1,u2,M4n),o.Qg=function(){return new Ni},w(oc,"LayoutMetaDataService/lambda$0$Type",881),b(882,1,T0,C4n),o.Rg=function(e){return Fi(u(e,8))},w(oc,"LayoutMetaDataService/lambda$1$Type",882),b(891,1,u2,S4n),o.Qg=function(){return new Z},w(oc,"LayoutMetaDataService/lambda$10$Type",891),b(892,1,T0,P4n),o.Rg=function(e){return new _u(u(e,13))},w(oc,"LayoutMetaDataService/lambda$11$Type",892),b(893,1,u2,I4n),o.Qg=function(){return new Mt},w(oc,"LayoutMetaDataService/lambda$12$Type",893),b(894,1,T0,O4n),o.Rg=function(e){return $7(u(e,67))},w(oc,"LayoutMetaDataService/lambda$13$Type",894),b(895,1,u2,A4n),o.Qg=function(){return new ni},w(oc,"LayoutMetaDataService/lambda$14$Type",895),b(896,1,T0,L4n),o.Rg=function(e){return ST(u(e,49))},w(oc,"LayoutMetaDataService/lambda$15$Type",896),b(897,1,u2,N4n),o.Qg=function(){return new rh},w(oc,"LayoutMetaDataService/lambda$16$Type",897),b(898,1,T0,D4n),o.Rg=function(e){return HT(u(e,49))},w(oc,"LayoutMetaDataService/lambda$17$Type",898),b(899,1,u2,$4n),o.Qg=function(){return new qG},w(oc,"LayoutMetaDataService/lambda$18$Type",899),b(900,1,T0,x4n),o.Rg=function(e){return CPn(u(e,157))},w(oc,"LayoutMetaDataService/lambda$19$Type",900),b(883,1,u2,R4n),o.Qg=function(){return new Tu},w(oc,"LayoutMetaDataService/lambda$2$Type",883),b(884,1,T0,K4n),o.Rg=function(e){return new UE(u(e,75))},w(oc,"LayoutMetaDataService/lambda$3$Type",884),b(885,1,u2,B4n),o.Qg=function(){return new Wv},w(oc,"LayoutMetaDataService/lambda$4$Type",885),b(886,1,T0,F4n),o.Rg=function(e){return new qN(u(e,140))},w(oc,"LayoutMetaDataService/lambda$5$Type",886),b(887,1,u2,_4n),o.Qg=function(){return new up},w(oc,"LayoutMetaDataService/lambda$6$Type",887),b(888,1,T0,H4n),o.Rg=function(e){return new FV(u(e,107))},w(oc,"LayoutMetaDataService/lambda$7$Type",888),b(889,1,u2,q4n),o.Qg=function(){return new _A},w(oc,"LayoutMetaDataService/lambda$8$Type",889),b(890,1,T0,U4n),o.Rg=function(e){return new WDn(u(e,385))},w(oc,"LayoutMetaDataService/lambda$9$Type",890);var Gq=Dt(Ay,"IProperty");b(23,1,{34:1,701:1,23:1,149:1},ln),o.Fd=function(e){return j1e(this,u(e,149))},o.Fb=function(e){return L(e,23)?Sn(this.f,u(e,23).f):L(e,149)&&Sn(this.f,u(e,149).Pg())},o.Sg=function(){var e;if(L(this.b,4)){if(e=iZ(this.b),e==null)throw T(new Ar(DVn+this.f+"'. Make sure it's type is registered with the "+(ll(hE),hE.k)+lcn));return e}else return this.b},o.Og=function(){return this.d},o.Pg=function(){return this.f},o.xe=function(){return this.i},o.Hb=function(){return t1(this.f)},o.Ib=function(){return"Layout Option: "+this.f},w(oc,"LayoutOptionData",23),b(24,1,{},hn),w(oc,"LayoutOptionData/Builder",24),b(170,22,{3:1,34:1,22:1,170:1},g7);var Ih,E1,pi,xn,Fd,Zh=we(oc,"LayoutOptionData/Target",170,ke,X3e,Nbe),mue;b(285,22,{3:1,34:1,22:1,285:1},wp);var yi,Qi,It,L3,Zr,Vf,$2,can,vue=we(oc,"LayoutOptionData/Type",285,ke,b4e,Dbe),kue,d9,uan;b(116,1,{116:1},mp,Ho,PT),o.Fb=function(e){var t;return e==null||!L(e,116)?!1:(t=u(e,116),mc(this.c,t.c)&&mc(this.d,t.d)&&mc(this.b,t.b)&&mc(this.a,t.a))},o.Hb=function(){return Ik(S(C(ki,1),Rn,1,5,[this.c,this.d,this.b,this.a]))},o.Ib=function(){return"Rect[x="+this.c+",y="+this.d+",w="+this.b+",h="+this.a+"]"},o.a=0,o.b=0,o.c=0,o.d=0,w(By,"ElkRectangle",116),b(8,1,{3:1,4:1,8:1,423:1},Ni,KD,V,rr),o.Fb=function(e){return sxn(this,e)},o.Hb=function(){return pp(this.a)+k7e(pp(this.b))},o.cg=function(e){var t,i,r,c;for(r=0;r<e.length&&zRn((zn(r,e.length),e.charCodeAt(r)),NXn);)++r;for(t=e.length;t>0&&zRn((zn(t-1,e.length),e.charCodeAt(t-1)),DXn);)--t;if(r>=t)throw T(new Gn("The given string does not contain any numbers."));if(c=w0((Ri(r,t,e.length),e.substr(r,t-r)),`,|;|\r|
`),c.length!=2)throw T(new Gn("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=s0(f0(c[0])),this.b=s0(f0(c[1]))}catch(s){throw s=Ot(s),L(s,130)?(i=s,T(new Gn($Xn+i))):T(s)}},o.Ib=function(){return"("+this.a+","+this.b+")"},o.a=0,o.b=0;var Ei=w(By,"KVector",8);b(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},Tu,UE,lSn),o.Pc=function(){return A6e(this)},o.cg=function(e){var t,i,r,c,s,f;r=w0(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
`),vo(this);try{for(i=0,s=0,c=0,f=0;i<r.length;)r[i]!=null&&f0(r[i]).length>0&&(s%2==0?c=s0(r[i]):f=s0(r[i]),s>0&&s%2!=0&&Re(this,new V(c,f)),++s),++i}catch(h){throw h=Ot(h),L(h,130)?(t=h,T(new Gn("The given string does not match the expected format for vectors."+t))):T(h)}},o.Ib=function(){var e,t,i;for(e=new mo("("),t=ge(this,0);t.b!=t.d.c;)i=u(be(t),8),Be(e,i.a+","+i.b),t.b!=t.d.c&&(e.a+="; ");return(e.a+=")",e).a};var oan=w(By,"KVectorChain",75);b(255,22,{3:1,34:1,22:1,255:1},p6);var zq,ZO,nA,Hj,qj,eA,san=we(uo,"Alignment",255,ke,Pme,$be),yue;b(991,1,ms,j8n),o.hf=function(e){yUn(e)};var fan,Xq,jue,han,lan,Eue,aan,Mue,Tue,dan,ban,Cue;w(uo,"BoxLayouterOptions",991),b(992,1,{},G4n),o.sf=function(){var e;return e=new V4n,e},o.tf=function(e){},w(uo,"BoxLayouterOptions/BoxFactory",992),b(297,22,{3:1,34:1,22:1,297:1},m6);var b9,Vq,w9,g9,p9,Wq,Jq=we(uo,"ContentAlignment",297,ke,Ime,xbe),Sue;b(699,1,ms,iG),o.hf=function(e){vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,xVn),""),"Layout Algorithm"),"Select a specific layout algorithm."),(l1(),$2)),fn),yn((pf(),xn))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,RVn),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),Vf),ODe),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ern),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),wan),It),san),yn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,l3),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,bcn),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),Vf),oan),yn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,TP),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),pan),L3),Jq),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,qy),""),"Debug Mode"),"Whether additional debug information shall be generated."),(_n(),!1)),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,xB),""),$tn),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),man),It),k9),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Hy),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),yan),It),hU),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,acn),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,MP),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),Man),It),hdn),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Xb),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),Nan),Vf),Non),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,e8),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,SP),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,t8),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,tB),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),Kan),It),ddn),yn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,CP),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),Vf),Ei),yt(pi,S(C(Zh,1),G,170,0,[Fd,E1]))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Ny),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Zr),Gi),yt(pi,S(C(Zh,1),G,170,0,[Ih]))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,uP),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),Zr),Gi),yn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,n8),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,arn),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),Tan),Vf),oan),yn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,wrn),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),yi),zt),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,grn),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),yi),zt),yn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,iDe),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),Vf),$De),yt(xn,S(C(Zh,1),G,170,0,[E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,mrn),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),Can),Vf),Lon),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Zin),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),yi),zt),yt(pi,S(C(Zh,1),G,170,0,[Ih,Fd,E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,KVn),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),Qi),si),yn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,BVn),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,FVn),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Dy),""),AVn),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),yi),zt),yn(xn)))),ri(e,Dy,Vb,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,_Vn),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,HVn),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Y(100)),Zr),Gi),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,qVn),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,UVn),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Y(4e3)),Zr),Gi),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,GVn),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Y(400)),Zr),Gi),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,zVn),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,XVn),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,VVn),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,WVn),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,dcn),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),gan),It),Edn),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Hin),qf),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,qin),qf),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,WK),qf),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Uin),qf),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,eB),qf),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,$B),qf),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Gin),qf),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Vin),qf),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,zin),qf),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Xin),qf),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,y0),qf),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Win),qf),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Qi),si),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Jin),qf),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Qi),si),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Qin),qf),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),Vf),boe),yt(pi,S(C(Zh,1),G,170,0,[Ih,Fd,E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,vrn),qf),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),Wan),Vf),Lon),yn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,KB),YVn),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),Zr),Gi),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),ri(e,KB,RB,xue),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,RB),YVn),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),Dan),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,rrn),ZVn),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),Pan),Vf),Non),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,z4),ZVn),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),Ian),L3),yr),yt(pi,S(C(Zh,1),G,170,0,[E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,orn),RP),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),xan),It),M9),yn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,srn),RP),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),It),M9),yn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,frn),RP),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),It),M9),yn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,hrn),RP),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),It),M9),yn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,lrn),RP),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),It),M9),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,r2),uF),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),Oan),L3),S9),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,a3),uF),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),Lan),L3),wdn),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,d3),uF),"Node Size Minimum"),"The minimal size to which a node can be reduced."),Aan),Vf),Ei),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,G4),uF),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),yi),zt),yn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,drn),DB),"Edge Label Placement"),"Gives a hint on where to put edge labels."),van),It),Yan),yn(E1)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,oP),DB),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),yi),zt),yn(E1)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,rDe),"font"),"Font Name"),"Font name used for a label."),$2),fn),yn(E1)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,JVn),"font"),"Font Size"),"Font size used for a label."),Zr),Gi),yn(E1)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,prn),oF),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),Vf),Ei),yn(Fd)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,brn),oF),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),Zr),Gi),yn(Fd)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,nrn),oF),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),_an),It),lr),yn(Fd)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Yin),oF),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),Qi),si),yn(Fd)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,X4),pcn),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),Ban),L3),oA),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,crn),pcn),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),yi),zt),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,urn),pcn),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),yi),zt),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,$y),zy),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),Qi),si),yn(xn)))),ri(e,$y,Vb,Uue),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,wcn),zy),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),It),dA),yn(pi)))),ri(e,wcn,Vb,Gue),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,xy),zy),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),Qi),si),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),ri(e,xy,Vb,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ry),zy),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),Qi),si),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),ri(e,Ry,Vb,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Vb),zy),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),It),pdn),yn(pi)))),ri(e,Vb,G4,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,gcn),zy),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),Qi),si),yn(xn)))),ri(e,gcn,Vb,que),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,trn),nWn),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),yi),zt),yn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,irn),nWn),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),yi),zt),yn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,JK),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),Qi),si),yn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,QVn),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),Ean),It),rdn),yn(Ih)))),o6(e,new Dp(t6(cm(rm(new tp,Yn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),o6(e,new Dp(t6(cm(rm(new tp,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),o6(e,new Dp(t6(cm(rm(new tp,cu),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),o6(e,new Dp(t6(cm(rm(new tp,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),o6(e,new Dp(t6(cm(rm(new tp,gVn),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),o6(e,new Dp(t6(cm(rm(new tp,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),o6(e,new Dp(t6(cm(rm(new tp,es),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),uUn((new E8n,e)),yUn((new j8n,e)),Dqn((new M8n,e))};var Dv,Pue,wan,x2,Iue,Oue,gan,R2,K2,Aue,Uj,pan,Gj,_d,man,Qq,Yq,van,kan,yan,jan,Ean,Lue,B2,Man,Nue,zj,Zq,Xj,nU,mw,Tan,$v,Can,San,Pan,F2,Ian,Hd,Oan,V0,_2,Aan,Sa,Lan,tA,Vj,M1,Nan,Due,Dan,$ue,xue,$an,xan,eU,tU,iU,rU,Ran,oo,m9,Kan,cU,uU,W0,Ban,Fan,H2,_an,N3,Wj,oU,q2,Rue,sU,Kue,Bue,Han,Fue,qan,Uan,D3,Gan,iA,zan,Xan,qd,_ue,Van,Wan,Jan,rA,Jj,v9,$3,Hue,que,cA,Uue,Qan,Gue;w(uo,"CoreOptions",699),b(88,22,{3:1,34:1,22:1,88:1},p7);var Wf,Kr,Xr,Jf,us,k9=we(uo,$tn,88,ke,N3e,Rbe),zue;b(278,22,{3:1,34:1,22:1,278:1},fN);var xv,J0,Rv,Yan=we(uo,"EdgeLabelPlacement",278,ke,upe,Kbe),Xue;b(223,22,{3:1,34:1,22:1,223:1},vM);var Kv,Qj,x3,fU,hU=we(uo,"EdgeRouting",223,ke,s3e,Bbe),Vue;b(321,22,{3:1,34:1,22:1,321:1},v6);var Zan,ndn,edn,tdn,lU,idn,rdn=we(uo,"EdgeType",321,ke,Sme,Fbe),Wue;b(989,1,ms,E8n),o.hf=function(e){uUn(e)};var cdn,udn,odn,sdn,Jue,fdn,y9;w(uo,"FixedLayouterOptions",989),b(990,1,{},z4n),o.sf=function(){var e;return e=new ivn,e},o.tf=function(e){},w(uo,"FixedLayouterOptions/FixedFactory",990),b(346,22,{3:1,34:1,22:1,346:1},hN);var T1,uA,j9,hdn=we(uo,"HierarchyHandling",346,ke,spe,_be),Que;b(290,22,{3:1,34:1,22:1,290:1},kM);var nl,Pa,Yj,Zj,Yue=we(uo,"LabelSide",290,ke,o3e,Hbe),Zue;b(95,22,{3:1,34:1,22:1,95:1},bg);var xl,Qs,Ms,Ys,No,Zs,Ts,el,nf,yr=we(uo,"NodeLabelPlacement",95,ke,P4e,qbe),noe;b(256,22,{3:1,34:1,22:1,256:1},m7);var ldn,E9,Ia,adn,nE,M9=we(uo,"PortAlignment",256,ke,V3e,Ube),eoe;b(101,22,{3:1,34:1,22:1,101:1},k6);var Ud,qc,tl,Bv,Qf,Oa,ddn=we(uo,"PortConstraints",101,ke,Cme,Gbe),toe;b(279,22,{3:1,34:1,22:1,279:1},y6);var T9,C9,Rl,eE,Aa,R3,oA=we(uo,"PortLabelPlacement",279,ke,Tme,zbe),ioe;b(64,22,{3:1,34:1,22:1,64:1},v7);var Zn,Xn,os,ss,pu,su,Yf,ef,Wu,xu,Uc,Ju,mu,vu,tf,Do,$o,Cs,ae,sc,Wn,lr=we(uo,"PortSide",64,ke,D3e,Xbe),roe;b(993,1,ms,M8n),o.hf=function(e){Dqn(e)};var coe,uoe,bdn,ooe,soe;w(uo,"RandomLayouterOptions",993),b(994,1,{},X4n),o.sf=function(){var e;return e=new nvn,e},o.tf=function(e){},w(uo,"RandomLayouterOptions/RandomFactory",994),b(386,22,{3:1,34:1,22:1,386:1},yM);var Q0,tE,iE,Gd,S9=we(uo,"SizeConstraint",386,ke,u3e,Vbe),foe;b(264,22,{3:1,34:1,22:1,264:1},wg);var rE,sA,Fv,aU,cE,P9,fA,hA,lA,wdn=we(uo,"SizeOptions",264,ke,F4e,Wbe),hoe;b(280,22,{3:1,34:1,22:1,280:1},lN);var Y0,gdn,aA,pdn=we(uo,"TopdownNodeTypes",280,ke,ope,Jbe),loe;b(347,22,mcn);var mdn,vdn,dA=we(uo,"TopdownSizeApproximator",347,ke,r2e,Ybe);b(987,347,mcn,XPn),o.Tg=function(e){return EBn(e)},we(uo,"TopdownSizeApproximator/1",987,dA,null,null),b(988,347,mcn,LIn),o.Tg=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn,Fn;for(t=u(z(e,(He(),q2)),143),tn=(B1(),m=new Jv,m),cy(tn,e),jn=new de,s=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));s.e!=s.i.gc();)r=u(ue(s),27),A=(p=new Jv,p),PS(A,tn),cy(A,r),Fn=EBn(r),kg(A,y.Math.max(r.g,Fn.a),y.Math.max(r.f,Fn.b)),Vc(jn.f,r,A);for(c=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));c.e!=c.i.gc();)for(r=u(ue(c),27),d=new ne((!r.e&&(r.e=new Dn(Vt,r,7,4)),r.e));d.e!=d.i.gc();)a=u(ue(d),74),_=u(Fr(wr(jn.f,r)),27),X=u(ee(jn,N((!a.c&&(a.c=new Dn(he,a,5,8)),a.c),0)),27),D=(g=new HA,g),ve((!D.b&&(D.b=new Dn(he,D,4,7)),D.b),_),ve((!D.c&&(D.c=new Dn(he,D,5,8)),D.c),X),SS(D,St(_)),cy(D,a);j=u(z7(t.f),205);try{j.rf(tn,new uvn),fOn(t.f,j)}catch(Kn){throw Kn=Ot(Kn),L(Kn,103)?(k=Kn,T(k)):T(Kn)}return Nf(tn,K2)||Nf(tn,R2)||rtn(tn),l=$(B(z(tn,K2))),h=$(B(z(tn,R2))),f=l/h,i=$(B(z(tn,Jj)))*y.Math.sqrt((!tn.a&&(tn.a=new q(Ye,tn,10,11)),tn.a).i),kn=u(z(tn,M1),107),O=kn.b+kn.c+1,P=kn.d+kn.a+1,new V(y.Math.max(O,i),y.Math.max(P,i/f))},we(uo,"TopdownSizeApproximator/2",988,dA,null,null);var aoe;b(344,1,{871:1},op),o.Ug=function(e,t){return xFn(this,e,t)},o.Vg=function(){c_n(this)},o.Wg=function(){return this.q},o.Xg=function(){return this.f?CD(this.f):null},o.Yg=function(){return CD(this.a)},o.Zg=function(){return this.p},o.$g=function(){return!1},o._g=function(){return this.n},o.ah=function(){return this.p!=null&&!this.b},o.bh=function(e){var t;this.n&&(t=e,nn(this.f,t))},o.dh=function(e,t){var i,r;this.n&&e&&Mpe(this,(i=new UIn,r=OR(i,e),cLe(i),r),(NC(),bU))},o.eh=function(e){var t;return this.b?null:(t=f4e(this,this.g),Re(this.a,t),t.i=this,this.d=e,t)},o.fh=function(e){e>0&&!this.b&&jQ(this,e)},o.b=!1,o.c=0,o.d=-1,o.e=null,o.f=null,o.g=-1,o.j=!1,o.k=!1,o.n=!1,o.o=0,o.q=0,o.r=0,w(dc,"BasicProgressMonitor",344),b(717,205,yd,V4n),o.rf=function(e,t){KUn(e,t)},w(dc,"BoxLayoutProvider",717),b(983,1,De,Lkn),o.Ne=function(e,t){return cCe(this,u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},o.a=!1,w(dc,"BoxLayoutProvider/1",983),b(163,1,{163:1},hC,pSn),o.Ib=function(){return this.c?ken(this.c):ua(this.b)},w(dc,"BoxLayoutProvider/Group",163),b(320,22,{3:1,34:1,22:1,320:1},jM);var kdn,ydn,jdn,dU,Edn=we(dc,"BoxLayoutProvider/PackingMode",320,ke,f3e,Zbe),doe;b(984,1,De,W4n),o.Ne=function(e,t){return Mge(u(e,163),u(t,163))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(dc,"BoxLayoutProvider/lambda$0$Type",984),b(985,1,De,J4n),o.Ne=function(e,t){return gge(u(e,163),u(t,163))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(dc,"BoxLayoutProvider/lambda$1$Type",985),b(986,1,De,Q4n),o.Ne=function(e,t){return pge(u(e,163),u(t,163))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(dc,"BoxLayoutProvider/lambda$2$Type",986),b(1384,1,{845:1},Y4n),o.Mg=function(e,t){return ZE(),!L(t,167)||mEn((qp(),u(e,167)),t)},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384),b(1385,1,re,Nkn),o.Cd=function(e){D6e(this.a,u(e,149))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385),b(1386,1,re,evn),o.Cd=function(e){u(e,96),ZE()},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386),b(1390,1,re,Dkn),o.Cd=function(e){tve(this.a,u(e,96))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390),b(1388,1,Le,sTn),o.Mb=function(e){return w6e(this.a,this.b,u(e,149))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388),b(1387,1,Le,fTn),o.Mb=function(e){return J1e(this.a,this.b,u(e,845))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387),b(1389,1,re,hTn),o.Cd=function(e){f0e(this.a,this.b,u(e,149))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389),b(947,1,{},tvn),o.Kb=function(e){return cCn(e)},o.Fb=function(e){return this===e},w(dc,"ElkUtil/lambda$0$Type",947),b(948,1,re,lTn),o.Cd=function(e){sMe(this.a,this.b,u(e,74))},o.a=0,o.b=0,w(dc,"ElkUtil/lambda$1$Type",948),b(949,1,re,aTn),o.Cd=function(e){Zfe(this.a,this.b,u(e,166))},o.a=0,o.b=0,w(dc,"ElkUtil/lambda$2$Type",949),b(950,1,re,dTn),o.Cd=function(e){Vle(this.a,this.b,u(e,135))},o.a=0,o.b=0,w(dc,"ElkUtil/lambda$3$Type",950),b(951,1,re,$kn),o.Cd=function(e){Owe(this.a,u(e,377))},w(dc,"ElkUtil/lambda$4$Type",951),b(325,1,{34:1,325:1},Ife),o.Fd=function(e){return E1e(this,u(e,242))},o.Fb=function(e){var t;return L(e,325)?(t=u(e,325),this.a==t.a):!1},o.Hb=function(){return wi(this.a)},o.Ib=function(){return this.a+" (exclusive)"},o.a=0,w(dc,"ExclusiveBounds/ExclusiveLowerBound",325),b(1119,205,yd,ivn),o.rf=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,jn,kn;for(t.Ug("Fixed Layout",1),s=u(z(e,(He(),kan)),223),g=0,p=0,A=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));A.e!=A.i.gc();){for(P=u(ue(A),27),kn=u(z(P,(DC(),y9)),8),kn&&(Bo(P,kn.a,kn.b),u(z(P,udn),181).Hc((go(),Q0))&&(m=u(z(P,sdn),8),m.a>0&&m.b>0&&qb(P,m.a,m.b,!0,!0))),g=y.Math.max(g,P.i+P.g),p=y.Math.max(p,P.j+P.f),a=new ne((!P.n&&(P.n=new q(Sr,P,1,7)),P.n));a.e!=a.i.gc();)h=u(ue(a),135),kn=u(z(h,y9),8),kn&&Bo(h,kn.a,kn.b),g=y.Math.max(g,P.i+h.i+h.g),p=y.Math.max(p,P.j+h.j+h.f);for(X=new ne((!P.c&&(P.c=new q(Qu,P,9,9)),P.c));X.e!=X.i.gc();)for(_=u(ue(X),123),kn=u(z(_,y9),8),kn&&Bo(_,kn.a,kn.b),tn=P.i+_.i,jn=P.j+_.j,g=y.Math.max(g,tn+_.g),p=y.Math.max(p,jn+_.f),l=new ne((!_.n&&(_.n=new q(Sr,_,1,7)),_.n));l.e!=l.i.gc();)h=u(ue(l),135),kn=u(z(h,y9),8),kn&&Bo(h,kn.a,kn.b),g=y.Math.max(g,tn+h.i+h.g),p=y.Math.max(p,jn+h.j+h.f);for(c=new ie(ce(Sl(P).a.Kc(),new En));pe(c);)i=u(fe(c),74),d=YGn(i),g=y.Math.max(g,d.a),p=y.Math.max(p,d.b);for(r=new ie(ce(ry(P).a.Kc(),new En));pe(r);)i=u(fe(r),74),St(Fh(i))!=e&&(d=YGn(i),g=y.Math.max(g,d.a),p=y.Math.max(p,d.b))}if(s==(El(),Kv))for(O=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));O.e!=O.i.gc();)for(P=u(ue(O),27),r=new ie(ce(Sl(P).a.Kc(),new En));pe(r);)i=u(fe(r),74),f=hIe(i),f.b==0?ht(i,mw,null):ht(i,mw,f);on(un(z(e,(DC(),odn))))||(D=u(z(e,Jue),107),j=g+D.b+D.c,k=p+D.d+D.a,qb(e,j,k,!0,!0)),t.Vg()},w(dc,"FixedLayoutProvider",1119),b(385,137,{3:1,423:1,385:1,96:1,137:1},_A,WDn),o.cg=function(e){var t,i,r,c,s,f,h,l,a;if(e)try{for(l=w0(e,";,;"),s=l,f=0,h=s.length;f<h;++f){if(c=s[f],i=w0(c,"\\:"),r=Jen(Gm(),i[0]),!r)throw T(new Gn("Invalid option id: "+i[0]));if(a=Ven(r,i[1]),a==null)throw T(new Gn("Invalid option value: "+i[1]));a==null?(!this.q&&(this.q=new de),Kp(this.q,r)):(!this.q&&(this.q=new de),Ve(this.q,r,a))}}catch(d){throw d=Ot(d),L(d,103)?(t=d,T(new NRn(t))):T(d)}},o.Ib=function(){var e;return e=Ae(Wr(_r((this.q?this.q:(Ln(),Ln(),Wh)).vc().Oc(),new rvn),Ww(new PPn,new Hbn,new Bbn,new Fbn,S(C(xr,1),G,108,0,[])))),e};var boe=w(dc,"IndividualSpacings",385);b(982,1,{},rvn),o.Kb=function(e){return Tge(u(e,44))},w(dc,"IndividualSpacings/lambda$0$Type",982),b(718,1,{},fIn),o.c=0,w(dc,"InstancePool",718),b(1835,1,{},cvn),w(dc,"LoggedGraph",1835),b(415,22,{3:1,34:1,22:1,415:1},EM);var Mdn,bU,Tdn,Cdn,woe=we(dc,"LoggedGraph/Type",415,ke,h3e,nwe),goe;b(1063,1,{871:1},uvn),o.Ug=function(e,t){return!1},o.Vg=function(){},o.Wg=function(){return 0},o.Xg=function(){return null},o.Yg=function(){return null},o.Zg=function(){return null},o.$g=function(){return!1},o._g=function(){return!1},o.ah=function(){return!1},o.bh=function(e){},o.dh=function(e,t){},o.eh=function(e){return this},o.fh=function(e){},w(dc,"NullElkProgressMonitor",1063),b(42,1,{20:1,42:1},bi),o.Jc=function(e){qi(this,e)},o.Fb=function(e){var t,i,r;return L(e,42)?(i=u(e,42),t=this.a==null?i.a==null:ct(this.a,i.a),r=this.b==null?i.b==null:ct(this.b,i.b),t&&r):!1},o.Hb=function(){var e,t,i,r,c,s;return i=this.a==null?0:mt(this.a),e=i&ui,t=i&-65536,s=this.b==null?0:mt(this.b),r=s&ui,c=s&-65536,e^c>>16&ui|t^r<<16},o.Kc=function(){return new xkn(this)},o.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+Jr(this.b)+")":this.b==null?"pair("+Jr(this.a)+",null)":"pair("+Jr(this.a)+","+Jr(this.b)+")"},w(dc,"Pair",42),b(995,1,Pi,xkn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},o.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw T(new nc)},o.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),T(new Mu)},o.b=!1,o.c=!1,w(dc,"Pair/1",995),b(454,1,{454:1},TOn),o.Fb=function(e){return mc(this.a,u(e,454).a)&&mc(this.c,u(e,454).c)&&mc(this.d,u(e,454).d)&&mc(this.b,u(e,454).b)},o.Hb=function(){return Ik(S(C(ki,1),Rn,1,5,[this.a,this.c,this.d,this.b]))},o.Ib=function(){return"("+this.a+ur+this.c+ur+this.d+ur+this.b+")"},w(dc,"Quadruple",454),b(1108,205,yd,nvn),o.rf=function(e,t){var i,r,c,s,f;if(t.Ug("Random Layout",1),(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i==0){t.Vg();return}s=u(z(e,(JY(),ooe)),17),s&&s.a!=0?c=new qT(s.a):c=new dx,i=J9(B(z(e,coe))),f=J9(B(z(e,soe))),r=u(z(e,uoe),107),PLe(e,c,i,f,r),t.Vg()},w(dc,"RandomLayoutProvider",1108),b(240,1,{240:1},_N),o.Fb=function(e){return mc(this.a,u(e,240).a)&&mc(this.b,u(e,240).b)&&mc(this.c,u(e,240).c)},o.Hb=function(){return Ik(S(C(ki,1),Rn,1,5,[this.a,this.b,this.c]))},o.Ib=function(){return"("+this.a+ur+this.b+ur+this.c+")"},w(dc,"Triple",240);var poe;b(562,1,{}),o.Lf=function(){return new V(this.f.i,this.f.j)},o.of=function(e){return ZOn(e,(He(),oo))?z(this.f,moe):z(this.f,e)},o.Mf=function(){return new V(this.f.g,this.f.f)},o.Nf=function(){return this.g},o.pf=function(e){return Nf(this.f,e)},o.Of=function(e){eu(this.f,e.a),tu(this.f,e.b)},o.Pf=function(e){Pb(this.f,e.a),Sb(this.f,e.b)},o.Qf=function(e){this.g=e},o.g=0;var moe;w(l8,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562),b(563,1,{853:1},AE),o.Rf=function(){var e,t;if(!this.b)for(this.b=BT(yT(this.a).i),t=new ne(yT(this.a));t.e!=t.i.gc();)e=u(ue(t),135),nn(this.b,new pL(e));return this.b},o.b=null,w(l8,"ElkGraphAdapters/ElkEdgeAdapter",563),b(308,562,{},Pw),o.Sf=function(){return GBn(this)},o.a=null,w(l8,"ElkGraphAdapters/ElkGraphAdapter",308),b(640,562,{187:1},pL),w(l8,"ElkGraphAdapters/ElkLabelAdapter",640),b(639,562,{695:1},TN),o.Rf=function(){return w7e(this)},o.Vf=function(){var e;return e=u(z(this.f,(He(),$v)),140),!e&&(e=new Wv),e},o.Xf=function(){return g7e(this)},o.Zf=function(e){var t;t=new qN(e),ht(this.f,(He(),$v),t)},o.$f=function(e){ht(this.f,(He(),M1),new FV(e))},o.Tf=function(){return this.d},o.Uf=function(){var e,t;if(!this.a)for(this.a=new Z,t=new ie(ce(ry(u(this.f,27)).a.Kc(),new En));pe(t);)e=u(fe(t),74),nn(this.a,new AE(e));return this.a},o.Wf=function(){var e,t;if(!this.c)for(this.c=new Z,t=new ie(ce(Sl(u(this.f,27)).a.Kc(),new En));pe(t);)e=u(fe(t),74),nn(this.c,new AE(e));return this.c},o.Yf=function(){return CT(u(this.f,27)).i!=0||on(un(u(this.f,27).of((He(),zj))))},o._f=function(){Vme(this,(Aw(),poe))},o.a=null,o.b=null,o.c=null,o.d=null,o.e=null,w(l8,"ElkGraphAdapters/ElkNodeAdapter",639),b(1284,562,{852:1},Rkn),o.Rf=function(){return M7e(this)},o.Uf=function(){var e,t;if(!this.a)for(this.a=Lh(u(this.f,123).hh().i),t=new ne(u(this.f,123).hh());t.e!=t.i.gc();)e=u(ue(t),74),nn(this.a,new AE(e));return this.a},o.Wf=function(){var e,t;if(!this.c)for(this.c=Lh(u(this.f,123).ih().i),t=new ne(u(this.f,123).ih());t.e!=t.i.gc();)e=u(ue(t),74),nn(this.c,new AE(e));return this.c},o.ag=function(){return u(u(this.f,123).of((He(),H2)),64)},o.bg=function(){var e,t,i,r,c,s,f,h;for(r=Pf(u(this.f,123)),i=new ne(u(this.f,123).ih());i.e!=i.i.gc();)for(e=u(ue(i),74),h=new ne((!e.c&&(e.c=new Dn(he,e,5,8)),e.c));h.e!=h.i.gc();){if(f=u(ue(h),84),Yw(Gr(f),r))return!0;if(Gr(f)==r&&on(un(z(e,(He(),Zq)))))return!0}for(t=new ne(u(this.f,123).hh());t.e!=t.i.gc();)for(e=u(ue(t),74),s=new ne((!e.b&&(e.b=new Dn(he,e,4,7)),e.b));s.e!=s.i.gc();)if(c=u(ue(s),84),Yw(Gr(c),r))return!0;return!1},o.a=null,o.b=null,o.c=null,w(l8,"ElkGraphAdapters/ElkPortAdapter",1284),b(1285,1,De,Z4n),o.Ne=function(e,t){return tPe(u(e,123),u(t,123))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(l8,"ElkGraphAdapters/PortComparator",1285);var La=Dt(ts,"EObject"),_v=Dt(o2,iWn),xo=Dt(o2,rWn),uE=Dt(o2,cWn),oE=Dt(o2,"ElkShape"),he=Dt(o2,uWn),Vt=Dt(o2,vcn),Tt=Dt(o2,oWn),sE=Dt(ts,sWn),I9=Dt(ts,"EFactory"),voe,wU=Dt(ts,fWn),Ef=Dt(ts,"EPackage"),Ci,koe,yoe,Sdn,bA,joe,Pdn,Idn,Odn,il,Eoe,Moe,Sr=Dt(o2,kcn),Ye=Dt(o2,ycn),Qu=Dt(o2,jcn);b(93,1,hWn),o.th=function(){return this.uh(),null},o.uh=function(){return null},o.vh=function(){return this.uh(),!1},o.wh=function(){return!1},o.xh=function(e){rt(this,e)},w(g3,"BasicNotifierImpl",93),b(99,93,bWn),o.Yh=function(){return fo(this)},o.yh=function(e,t){return e},o.zh=function(){throw T(new Ie)},o.Ah=function(e){var t;return t=br(u($n(this.Dh(),this.Fh()),19)),this.Ph().Th(this,t.n,t.f,e)},o.Bh=function(e,t){throw T(new Ie)},o.Ch=function(e,t,i){return Po(this,e,t,i)},o.Dh=function(){var e;return this.zh()&&(e=this.zh().Nk(),e)?e:this.ii()},o.Eh=function(){return dR(this)},o.Fh=function(){throw T(new Ie)},o.Gh=function(){var e,t;return t=this.$h().Ok(),!t&&this.zh().Tk(t=(f6(),e=ZW(bh(this.Dh())),e==null?EU:new M7(this,e))),t},o.Hh=function(e,t){return e},o.Ih=function(e){var t;return t=e.pk(),t?e.Lj():At(this.Dh(),e)},o.Jh=function(){var e;return e=this.zh(),e?e.Qk():null},o.Kh=function(){return this.zh()?this.zh().Nk():null},o.Lh=function(e,t,i){return tS(this,e,t,i)},o.Mh=function(e){return $m(this,e)},o.Nh=function(e,t){return YD(this,e,t)},o.Oh=function(){var e;return e=this.zh(),!!e&&e.Rk()},o.Ph=function(){throw T(new Ie)},o.Qh=function(){return WC(this)},o.Rh=function(e,t,i,r){return Wp(this,e,t,r)},o.Sh=function(e,t,i){var r;return r=u($n(this.Dh(),t),69),r.wk().zk(this,this.hi(),t-this.ji(),e,i)},o.Th=function(e,t,i,r){return OT(this,e,t,r)},o.Uh=function(e,t,i){var r;return r=u($n(this.Dh(),t),69),r.wk().Ak(this,this.hi(),t-this.ji(),e,i)},o.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},o.Wh=function(e){return Mx(this,e)},o.Xh=function(e){return dAn(this,e)},o.Zh=function(e){return xGn(this,e)},o.$h=function(){throw T(new Ie)},o._h=function(){return this.zh()?this.zh().Pk():null},o.ai=function(){return WC(this)},o.bi=function(e,t){sR(this,e,t)},o.ci=function(e){this.$h().Sk(e)},o.di=function(e){this.$h().Vk(e)},o.ei=function(e){this.$h().Uk(e)},o.fi=function(e,t){var i,r,c,s;return s=this.Jh(),s&&e&&(t=cr(s.El(),this,t),s.Il(this)),r=this.Ph(),r&&(SR(this,this.Ph(),this.Fh()).Bb&hr?(c=r.Qh(),c&&(e?!s&&c.Il(this):c.Hl(this))):(t=(i=this.Fh(),i>=0?this.Ah(t):this.Ph().Th(this,-1-i,null,t)),t=this.Ch(null,-1,t))),this.di(e),t},o.gi=function(e){var t,i,r,c,s,f,h,l;if(i=this.Dh(),s=At(i,e),t=this.ji(),s>=t)return u(e,69).wk().Dk(this,this.hi(),s-t);if(s<=-1)if(f=Qg((Lu(),zi),i,e),f){if(dr(),u(f,69).xk()||(f=$p(Nr(zi,f))),c=(r=this.Ih(f),u(r>=0?this.Lh(r,!0,!0):Fb(this,f,!0),160)),l=f.Ik(),l>1||l==-1)return u(u(c,220).Sl(e,!1),79)}else throw T(new Gn(wa+e.xe()+sF));else if(e.Jk())return r=this.Ih(e),u(r>=0?this.Lh(r,!1,!0):Fb(this,e,!1),79);return h=new ATn(this,e),h},o.hi=function(){return rQ(this)},o.ii=function(){return(z1(),Hn).S},o.ji=function(){return se(this.ii())},o.ki=function(e){cR(this,e)},o.Ib=function(){return Hs(this)},w(qn,"BasicEObjectImpl",99);var Toe;b(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),o.li=function(e){var t;return t=iQ(this),t[e]},o.mi=function(e,t){var i;i=iQ(this),$t(i,e,t)},o.ni=function(e){var t;t=iQ(this),$t(t,e,null)},o.th=function(){return u(Un(this,4),129)},o.uh=function(){throw T(new Ie)},o.vh=function(){return(this.Db&4)!=0},o.zh=function(){throw T(new Ie)},o.oi=function(e){Xp(this,2,e)},o.Bh=function(e,t){this.Db=t<<16|this.Db&255,this.oi(e)},o.Dh=function(){return au(this)},o.Fh=function(){return this.Db>>16},o.Gh=function(){var e,t;return f6(),t=ZW(bh((e=u(Un(this,16),29),e||this.ii()))),t==null?EU:new M7(this,t)},o.wh=function(){return(this.Db&1)==0},o.Jh=function(){return u(Un(this,128),2034)},o.Kh=function(){return u(Un(this,16),29)},o.Oh=function(){return(this.Db&32)!=0},o.Ph=function(){return u(Un(this,2),54)},o.Vh=function(){return(this.Db&64)!=0},o.$h=function(){throw T(new Ie)},o._h=function(){return u(Un(this,64),288)},o.ci=function(e){Xp(this,16,e)},o.di=function(e){Xp(this,128,e)},o.ei=function(e){Xp(this,64,e)},o.hi=function(){return iu(this)},o.Db=0,w(qn,"MinimalEObjectImpl",119),b(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.oi=function(e){this.Cb=e},o.Ph=function(){return this.Cb},w(qn,"MinimalEObjectImpl/Container",120),b(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return vZ(this,e,t,i)},o.Uh=function(e,t,i){return snn(this,e,t,i)},o.Wh=function(e){return dJ(this,e)},o.bi=function(e,t){rY(this,e,t)},o.ii=function(){return Mc(),Moe},o.ki=function(e){XQ(this,e)},o.nf=function(){return lBn(this)},o.gh=function(){return!this.o&&(this.o=new Ou((Mc(),il),C1,this,0)),this.o},o.of=function(e){return z(this,e)},o.pf=function(e){return Nf(this,e)},o.qf=function(e,t){return ht(this,e,t)},w(Td,"EMapPropertyHolderImpl",2083),b(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},kE),o.Lh=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return tS(this,e,t,i)},o.Wh=function(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return Mx(this,e)},o.bi=function(e,t){switch(e){case 0:aC(this,$(B(t)));return;case 1:lC(this,$(B(t)));return}sR(this,e,t)},o.ii=function(){return Mc(),koe},o.ki=function(e){switch(e){case 0:aC(this,0);return;case 1:lC(this,0);return}cR(this,e)},o.Ib=function(){var e;return this.Db&64?Hs(this):(e=new ls(Hs(this)),e.a+=" (x: ",hg(e,this.a),e.a+=", y: ",hg(e,this.b),e.a+=")",e.a)},o.a=0,o.b=0,w(Td,"ElkBendPointImpl",572),b(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return SY(this,e,t,i)},o.Sh=function(e,t,i){return Yx(this,e,t,i)},o.Uh=function(e,t,i){return $$(this,e,t,i)},o.Wh=function(e){return _Q(this,e)},o.bi=function(e,t){KZ(this,e,t)},o.ii=function(){return Mc(),joe},o.ki=function(e){mY(this,e)},o.jh=function(){return this.k},o.kh=function(){return yT(this)},o.Ib=function(){return ox(this)},o.k=null,w(Td,"ElkGraphElementImpl",739),b(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return $Y(this,e,t,i)},o.Wh=function(e){return _Y(this,e)},o.bi=function(e,t){BZ(this,e,t)},o.ii=function(){return Mc(),Eoe},o.ki=function(e){VY(this,e)},o.lh=function(){return this.f},o.mh=function(){return this.g},o.nh=function(){return this.i},o.oh=function(){return this.j},o.ph=function(e,t){kg(this,e,t)},o.qh=function(e,t){Bo(this,e,t)},o.rh=function(e){eu(this,e)},o.sh=function(e){tu(this,e)},o.Ib=function(){return iR(this)},o.f=0,o.g=0,o.i=0,o.j=0,w(Td,"ElkShapeImpl",740),b(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return aZ(this,e,t,i)},o.Sh=function(e,t,i){return LZ(this,e,t,i)},o.Uh=function(e,t,i){return NZ(this,e,t,i)},o.Wh=function(e){return iY(this,e)},o.bi=function(e,t){Gnn(this,e,t)},o.ii=function(){return Mc(),yoe},o.ki=function(e){oZ(this,e)},o.hh=function(){return!this.d&&(this.d=new Dn(Vt,this,8,5)),this.d},o.ih=function(){return!this.e&&(this.e=new Dn(Vt,this,7,4)),this.e},w(Td,"ElkConnectableShapeImpl",741),b(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},HA),o.Ah=function(e){return PZ(this,e)},o.Lh=function(e,t,i){switch(e){case 3:return X7(this);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),this.c;case 6:return!this.a&&(this.a=new q(Tt,this,6,6)),this.a;case 7:return _n(),!this.b&&(this.b=new Dn(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i<=1));case 8:return _n(),!!L5(this);case 9:return _n(),!!Bb(this);case 10:return _n(),!this.b&&(this.b=new Dn(he,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i!=0)}return SY(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 3:return this.Cb&&(i=(r=this.Db>>16,r>=0?PZ(this,i):this.Cb.Th(this,-1-r,null,i))),fV(this,u(e,27),i);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),Xc(this.b,e,i);case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),Xc(this.c,e,i);case 6:return!this.a&&(this.a=new q(Tt,this,6,6)),Xc(this.a,e,i)}return Yx(this,e,t,i)},o.Uh=function(e,t,i){switch(t){case 3:return fV(this,null,i);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),cr(this.b,e,i);case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),cr(this.c,e,i);case 6:return!this.a&&(this.a=new q(Tt,this,6,6)),cr(this.a,e,i)}return $$(this,e,t,i)},o.Wh=function(e){switch(e){case 3:return!!X7(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Dn(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i<=1));case 8:return L5(this);case 9:return Bb(this);case 10:return!this.b&&(this.b=new Dn(he,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i!=0)}return _Q(this,e)},o.bi=function(e,t){switch(e){case 3:SS(this,u(t,27));return;case 4:!this.b&&(this.b=new Dn(he,this,4,7)),me(this.b),!this.b&&(this.b=new Dn(he,this,4,7)),Bt(this.b,u(t,16));return;case 5:!this.c&&(this.c=new Dn(he,this,5,8)),me(this.c),!this.c&&(this.c=new Dn(he,this,5,8)),Bt(this.c,u(t,16));return;case 6:!this.a&&(this.a=new q(Tt,this,6,6)),me(this.a),!this.a&&(this.a=new q(Tt,this,6,6)),Bt(this.a,u(t,16));return}KZ(this,e,t)},o.ii=function(){return Mc(),Sdn},o.ki=function(e){switch(e){case 3:SS(this,null);return;case 4:!this.b&&(this.b=new Dn(he,this,4,7)),me(this.b);return;case 5:!this.c&&(this.c=new Dn(he,this,5,8)),me(this.c);return;case 6:!this.a&&(this.a=new q(Tt,this,6,6)),me(this.a);return}mY(this,e)},o.Ib=function(){return nGn(this)},w(Td,"ElkEdgeImpl",326),b(451,2083,{110:1,342:1,166:1,451:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},yE),o.Ah=function(e){return MZ(this,e)},o.Lh=function(e,t,i){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new ti(xo,this,5)),this.a;case 6:return fAn(this);case 7:return t?Ix(this):this.i;case 8:return t?Px(this):this.f;case 9:return!this.g&&(this.g=new Dn(Tt,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Dn(Tt,this,10,9)),this.e;case 11:return this.d}return vZ(this,e,t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?MZ(this,i):this.Cb.Th(this,-1-c,null,i))),sV(this,u(e,74),i);case 9:return!this.g&&(this.g=new Dn(Tt,this,9,10)),Xc(this.g,e,i);case 10:return!this.e&&(this.e=new Dn(Tt,this,10,9)),Xc(this.e,e,i)}return s=u($n((r=u(Un(this,16),29),r||(Mc(),bA)),t),69),s.wk().zk(this,iu(this),t-se((Mc(),bA)),e,i)},o.Uh=function(e,t,i){switch(t){case 5:return!this.a&&(this.a=new ti(xo,this,5)),cr(this.a,e,i);case 6:return sV(this,null,i);case 9:return!this.g&&(this.g=new Dn(Tt,this,9,10)),cr(this.g,e,i);case 10:return!this.e&&(this.e=new Dn(Tt,this,10,9)),cr(this.e,e,i)}return snn(this,e,t,i)},o.Wh=function(e){switch(e){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!fAn(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return dJ(this,e)},o.bi=function(e,t){switch(e){case 1:_m(this,$(B(t)));return;case 2:qm(this,$(B(t)));return;case 3:Fm(this,$(B(t)));return;case 4:Hm(this,$(B(t)));return;case 5:!this.a&&(this.a=new ti(xo,this,5)),me(this.a),!this.a&&(this.a=new ti(xo,this,5)),Bt(this.a,u(t,16));return;case 6:ZHn(this,u(t,74));return;case 7:vC(this,u(t,84));return;case 8:mC(this,u(t,84));return;case 9:!this.g&&(this.g=new Dn(Tt,this,9,10)),me(this.g),!this.g&&(this.g=new Dn(Tt,this,9,10)),Bt(this.g,u(t,16));return;case 10:!this.e&&(this.e=new Dn(Tt,this,10,9)),me(this.e),!this.e&&(this.e=new Dn(Tt,this,10,9)),Bt(this.e,u(t,16));return;case 11:IQ(this,Ae(t));return}rY(this,e,t)},o.ii=function(){return Mc(),bA},o.ki=function(e){switch(e){case 1:_m(this,0);return;case 2:qm(this,0);return;case 3:Fm(this,0);return;case 4:Hm(this,0);return;case 5:!this.a&&(this.a=new ti(xo,this,5)),me(this.a);return;case 6:ZHn(this,null);return;case 7:vC(this,null);return;case 8:mC(this,null);return;case 9:!this.g&&(this.g=new Dn(Tt,this,9,10)),me(this.g);return;case 10:!this.e&&(this.e=new Dn(Tt,this,10,9)),me(this.e);return;case 11:IQ(this,null);return}XQ(this,e)},o.Ib=function(){return dHn(this)},o.b=0,o.c=0,o.d=null,o.j=0,o.k=0,w(Td,"ElkEdgeSectionImpl",451),b(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),o.Lh=function(e,t,i){var r;return e==0?(!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab):zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Sh=function(e,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i)):(c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().zk(this,iu(this),t-se(this.ii()),e,i))},o.Uh=function(e,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i)):(c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i))},o.Wh=function(e){var t;return e==0?!!this.Ab&&this.Ab.i!=0:Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.Zh=function(e){return ttn(this,e)},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.di=function(e){Xp(this,128,e)},o.ii=function(){return An(),qoe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){this.Bb|=1},o.qi=function(e){return B5(this,e)},o.Bb=0,w(qn,"EModelElementImpl",158),b(720,158,{110:1,94:1,93:1,479:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},cG),o.ri=function(e,t){return IGn(this,e,t)},o.si=function(e){var t,i,r,c,s;if(this.a!=jo(e)||e.Bb&256)throw T(new Gn(hF+e.zb+Yb));for(r=Hr(e);Pc(r.a).i!=0;){if(i=u(gy(r,0,(t=u(N(Pc(r.a),0),89),s=t.c,L(s,90)?u(s,29):(An(),Os))),29),Kb(i))return c=jo(i).wi().si(i),u(c,54).ci(e),c;r=Hr(i)}return(e.D!=null?e.D:e.B)=="java.util.Map$Entry"?new GPn(e):new QV(e)},o.ti=function(e,t){return Ub(this,e,t)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.a}return zo(this,e-se((An(),xa)),$n((r=u(Un(this,16),29),r||xa),e),t,i)},o.Sh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 1:return this.a&&(i=u(this.a,54).Th(this,4,Ef,i)),pY(this,u(e,241),i)}return c=u($n((r=u(Un(this,16),29),r||(An(),xa)),t),69),c.wk().zk(this,iu(this),t-se((An(),xa)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 1:return pY(this,null,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),xa)),t),69),c.wk().Ak(this,iu(this),t-se((An(),xa)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return Uo(this,e-se((An(),xa)),$n((t=u(Un(this,16),29),t||xa),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:WFn(this,u(t,241));return}Jo(this,e-se((An(),xa)),$n((i=u(Un(this,16),29),i||xa),e),t)},o.ii=function(){return An(),xa},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:WFn(this,null);return}Wo(this,e-se((An(),xa)),$n((t=u(Un(this,16),29),t||xa),e))};var O9,Adn,Coe;w(qn,"EFactoryImpl",720),b(1037,720,{110:1,2113:1,94:1,93:1,479:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},svn),o.ri=function(e,t){switch(e.hk()){case 12:return u(t,149).Pg();case 13:return Jr(t);default:throw T(new Gn(nv+e.xe()+Yb))}},o.si=function(e){var t,i,r,c,s,f,h,l;switch(e.G==-1&&(e.G=(t=jo(e),t?f1(t.vi(),e):-1)),e.G){case 4:return s=new ZU,s;case 6:return f=new Jv,f;case 7:return h=new ZG,h;case 8:return r=new HA,r;case 9:return i=new kE,i;case 10:return c=new yE,c;case 11:return l=new fvn,l;default:throw T(new Gn(hF+e.zb+Yb))}},o.ti=function(e,t){switch(e.hk()){case 13:case 12:return null;default:throw T(new Gn(nv+e.xe()+Yb))}},w(Td,"ElkGraphFactoryImpl",1037),b(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),o.Gh=function(){var e,t;return t=(e=u(Un(this,16),29),ZW(bh(e||this.ii()))),t==null?(f6(),f6(),EU):new bSn(this,t)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.xe()}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:this.ui(Ae(t));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),Uoe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:this.ui(null);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.xe=function(){return this.zb},o.ui=function(e){zc(this,e)},o.Ib=function(){return w5(this)},o.zb=null,w(qn,"ENamedElementImpl",448),b(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},_On),o.Ah=function(e){return uFn(this,e)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new Hw(this,Mf,this)),this.rb;case 6:return!this.vb&&(this.vb=new jp(Ef,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?u(this.Cb,241):null:gAn(this)}return zo(this,e-se((An(),O1)),$n((r=u(Un(this,16),29),r||O1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 4:return this.sb&&(i=u(this.sb,54).Th(this,1,I9,i)),kY(this,u(e,479),i);case 5:return!this.rb&&(this.rb=new Hw(this,Mf,this)),Xc(this.rb,e,i);case 6:return!this.vb&&(this.vb=new jp(Ef,this,6,7)),Xc(this.vb,e,i);case 7:return this.Cb&&(i=(c=this.Db>>16,c>=0?uFn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,7,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),O1)),t),69),s.wk().zk(this,iu(this),t-se((An(),O1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 4:return kY(this,null,i);case 5:return!this.rb&&(this.rb=new Hw(this,Mf,this)),cr(this.rb,e,i);case 6:return!this.vb&&(this.vb=new jp(Ef,this,6,7)),cr(this.vb,e,i);case 7:return Po(this,null,7,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),O1)),t),69),c.wk().Ak(this,iu(this),t-se((An(),O1)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!gAn(this)}return Uo(this,e-se((An(),O1)),$n((t=u(Un(this,16),29),t||O1),e))},o.Zh=function(e){var t;return t=pCe(this,e),t||ttn(this,e)},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:zc(this,Ae(t));return;case 2:TC(this,Ae(t));return;case 3:MC(this,Ae(t));return;case 4:tR(this,u(t,479));return;case 5:!this.rb&&(this.rb=new Hw(this,Mf,this)),me(this.rb),!this.rb&&(this.rb=new Hw(this,Mf,this)),Bt(this.rb,u(t,16));return;case 6:!this.vb&&(this.vb=new jp(Ef,this,6,7)),me(this.vb),!this.vb&&(this.vb=new jp(Ef,this,6,7)),Bt(this.vb,u(t,16));return}Jo(this,e-se((An(),O1)),$n((i=u(Un(this,16),29),i||O1),e),t)},o.ei=function(e){var t,i;if(e&&this.rb)for(i=new ne(this.rb);i.e!=i.i.gc();)t=ue(i),L(t,364)&&(u(t,364).w=null);Xp(this,64,e)},o.ii=function(){return An(),O1},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:TC(this,null);return;case 3:MC(this,null);return;case 4:tR(this,null);return;case 5:!this.rb&&(this.rb=new Hw(this,Mf,this)),me(this.rb);return;case 6:!this.vb&&(this.vb=new jp(Ef,this,6,7)),me(this.vb);return}Wo(this,e-se((An(),O1)),$n((t=u(Un(this,16),29),t||O1),e))},o.pi=function(){Hx(this)},o.vi=function(){return!this.rb&&(this.rb=new Hw(this,Mf,this)),this.rb},o.wi=function(){return this.sb},o.xi=function(){return this.ub},o.yi=function(){return this.xb},o.zi=function(){return this.yb},o.Ai=function(e){this.ub=e},o.Ib=function(){var e;return this.Db&64?w5(this):(e=new ls(w5(this)),e.a+=" (nsURI: ",Er(e,this.yb),e.a+=", nsPrefix: ",Er(e,this.xb),e.a+=")",e.a)},o.xb=null,o.yb=null,w(qn,"EPackageImpl",184),b(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},jHn),o.q=!1,o.r=!1;var Soe=!1;w(Td,"ElkGraphPackageImpl",569),b(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},ZU),o.Ah=function(e){return TZ(this,e)},o.Lh=function(e,t,i){switch(e){case 7:return pAn(this);case 8:return this.a}return $Y(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 7:return this.Cb&&(i=(r=this.Db>>16,r>=0?TZ(this,i):this.Cb.Th(this,-1-r,null,i))),aW(this,u(e,167),i)}return Yx(this,e,t,i)},o.Uh=function(e,t,i){return t==7?aW(this,null,i):$$(this,e,t,i)},o.Wh=function(e){switch(e){case 7:return!!pAn(this);case 8:return!Sn("",this.a)}return _Y(this,e)},o.bi=function(e,t){switch(e){case 7:ren(this,u(t,167));return;case 8:MQ(this,Ae(t));return}BZ(this,e,t)},o.ii=function(){return Mc(),Pdn},o.ki=function(e){switch(e){case 7:ren(this,null);return;case 8:MQ(this,"");return}VY(this,e)},o.Ib=function(){return f_n(this)},o.a="",w(Td,"ElkLabelImpl",366),b(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Jv),o.Ah=function(e){return IZ(this,e)},o.Lh=function(e,t,i){switch(e){case 9:return!this.c&&(this.c=new q(Qu,this,9,9)),this.c;case 10:return!this.a&&(this.a=new q(Ye,this,10,11)),this.a;case 11:return St(this);case 12:return!this.b&&(this.b=new q(Vt,this,12,3)),this.b;case 13:return _n(),!this.a&&(this.a=new q(Ye,this,10,11)),this.a.i>0}return aZ(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 9:return!this.c&&(this.c=new q(Qu,this,9,9)),Xc(this.c,e,i);case 10:return!this.a&&(this.a=new q(Ye,this,10,11)),Xc(this.a,e,i);case 11:return this.Cb&&(i=(r=this.Db>>16,r>=0?IZ(this,i):this.Cb.Th(this,-1-r,null,i))),vV(this,u(e,27),i);case 12:return!this.b&&(this.b=new q(Vt,this,12,3)),Xc(this.b,e,i)}return LZ(this,e,t,i)},o.Uh=function(e,t,i){switch(t){case 9:return!this.c&&(this.c=new q(Qu,this,9,9)),cr(this.c,e,i);case 10:return!this.a&&(this.a=new q(Ye,this,10,11)),cr(this.a,e,i);case 11:return vV(this,null,i);case 12:return!this.b&&(this.b=new q(Vt,this,12,3)),cr(this.b,e,i)}return NZ(this,e,t,i)},o.Wh=function(e){switch(e){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!St(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new q(Ye,this,10,11)),this.a.i>0}return iY(this,e)},o.bi=function(e,t){switch(e){case 9:!this.c&&(this.c=new q(Qu,this,9,9)),me(this.c),!this.c&&(this.c=new q(Qu,this,9,9)),Bt(this.c,u(t,16));return;case 10:!this.a&&(this.a=new q(Ye,this,10,11)),me(this.a),!this.a&&(this.a=new q(Ye,this,10,11)),Bt(this.a,u(t,16));return;case 11:PS(this,u(t,27));return;case 12:!this.b&&(this.b=new q(Vt,this,12,3)),me(this.b),!this.b&&(this.b=new q(Vt,this,12,3)),Bt(this.b,u(t,16));return}Gnn(this,e,t)},o.ii=function(){return Mc(),Idn},o.ki=function(e){switch(e){case 9:!this.c&&(this.c=new q(Qu,this,9,9)),me(this.c);return;case 10:!this.a&&(this.a=new q(Ye,this,10,11)),me(this.a);return;case 11:PS(this,null);return;case 12:!this.b&&(this.b=new q(Vt,this,12,3)),me(this.b);return}oZ(this,e)},o.Ib=function(){return ken(this)},w(Td,"ElkNodeImpl",207),b(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},ZG),o.Ah=function(e){return CZ(this,e)},o.Lh=function(e,t,i){return e==9?Pf(this):aZ(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 9:return this.Cb&&(i=(r=this.Db>>16,r>=0?CZ(this,i):this.Cb.Th(this,-1-r,null,i))),hV(this,u(e,27),i)}return LZ(this,e,t,i)},o.Uh=function(e,t,i){return t==9?hV(this,null,i):NZ(this,e,t,i)},o.Wh=function(e){return e==9?!!Pf(this):iY(this,e)},o.bi=function(e,t){switch(e){case 9:nen(this,u(t,27));return}Gnn(this,e,t)},o.ii=function(){return Mc(),Odn},o.ki=function(e){switch(e){case 9:nen(this,null);return}oZ(this,e)},o.Ib=function(){return Yqn(this)},w(Td,"ElkPortImpl",193);var Poe=Dt(or,"BasicEMap/Entry");b(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},fvn),o.Fb=function(e){return this===e},o.ld=function(){return this.b},o.Hb=function(){return fb(this)},o.Di=function(e){TQ(this,u(e,149))},o.Lh=function(e,t,i){switch(e){case 0:return this.b;case 1:return this.c}return tS(this,e,t,i)},o.Wh=function(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return Mx(this,e)},o.bi=function(e,t){switch(e){case 0:TQ(this,u(t,149));return;case 1:EQ(this,t);return}sR(this,e,t)},o.ii=function(){return Mc(),il},o.ki=function(e){switch(e){case 0:TQ(this,null);return;case 1:EQ(this,null);return}cR(this,e)},o.Bi=function(){var e;return this.a==-1&&(e=this.b,this.a=e?mt(e):0),this.a},o.md=function(){return this.c},o.Ci=function(e){this.a=e},o.nd=function(e){var t;return t=this.c,EQ(this,e),t},o.Ib=function(){var e;return this.Db&64?Hs(this):(e=new R1,Be(Be(Be(e,this.b?this.b.Pg():gu),iB),I6(this.c)),e.a)},o.a=-1,o.c=null;var C1=w(Td,"ElkPropertyToValueMapEntryImpl",1122);b(996,1,{},avn),w(Ui,"JsonAdapter",996),b(216,63,Il,eh),w(Ui,"JsonImportException",216),b(868,1,{},oFn),w(Ui,"JsonImporter",868),b(903,1,{},bTn),w(Ui,"JsonImporter/lambda$0$Type",903),b(904,1,{},wTn),w(Ui,"JsonImporter/lambda$1$Type",904),b(912,1,{},Kkn),w(Ui,"JsonImporter/lambda$10$Type",912),b(914,1,{},gTn),w(Ui,"JsonImporter/lambda$11$Type",914),b(915,1,{},pTn),w(Ui,"JsonImporter/lambda$12$Type",915),b(921,1,{},IOn),w(Ui,"JsonImporter/lambda$13$Type",921),b(920,1,{},OOn),w(Ui,"JsonImporter/lambda$14$Type",920),b(916,1,{},mTn),w(Ui,"JsonImporter/lambda$15$Type",916),b(917,1,{},vTn),w(Ui,"JsonImporter/lambda$16$Type",917),b(918,1,{},kTn),w(Ui,"JsonImporter/lambda$17$Type",918),b(919,1,{},yTn),w(Ui,"JsonImporter/lambda$18$Type",919),b(924,1,{},Bkn),w(Ui,"JsonImporter/lambda$19$Type",924),b(905,1,{},Fkn),w(Ui,"JsonImporter/lambda$2$Type",905),b(922,1,{},_kn),w(Ui,"JsonImporter/lambda$20$Type",922),b(923,1,{},Hkn),w(Ui,"JsonImporter/lambda$21$Type",923),b(927,1,{},qkn),w(Ui,"JsonImporter/lambda$22$Type",927),b(925,1,{},Ukn),w(Ui,"JsonImporter/lambda$23$Type",925),b(926,1,{},Gkn),w(Ui,"JsonImporter/lambda$24$Type",926),b(929,1,{},zkn),w(Ui,"JsonImporter/lambda$25$Type",929),b(928,1,{},Xkn),w(Ui,"JsonImporter/lambda$26$Type",928),b(930,1,re,jTn),o.Cd=function(e){Ame(this.b,this.a,Ae(e))},w(Ui,"JsonImporter/lambda$27$Type",930),b(931,1,re,ETn),o.Cd=function(e){Lme(this.b,this.a,Ae(e))},w(Ui,"JsonImporter/lambda$28$Type",931),b(932,1,{},MTn),w(Ui,"JsonImporter/lambda$29$Type",932),b(908,1,{},Vkn),w(Ui,"JsonImporter/lambda$3$Type",908),b(933,1,{},TTn),w(Ui,"JsonImporter/lambda$30$Type",933),b(934,1,{},Wkn),w(Ui,"JsonImporter/lambda$31$Type",934),b(935,1,{},Jkn),w(Ui,"JsonImporter/lambda$32$Type",935),b(936,1,{},Qkn),w(Ui,"JsonImporter/lambda$33$Type",936),b(937,1,{},Ykn),w(Ui,"JsonImporter/lambda$34$Type",937),b(870,1,{},Zkn),w(Ui,"JsonImporter/lambda$35$Type",870),b(941,1,{},vPn),w(Ui,"JsonImporter/lambda$36$Type",941),b(938,1,re,nyn),o.Cd=function(e){R3e(this.a,u(e,377))},w(Ui,"JsonImporter/lambda$37$Type",938),b(939,1,re,CTn),o.Cd=function(e){mle(this.a,this.b,u(e,166))},w(Ui,"JsonImporter/lambda$38$Type",939),b(940,1,re,STn),o.Cd=function(e){vle(this.a,this.b,u(e,166))},w(Ui,"JsonImporter/lambda$39$Type",940),b(906,1,{},eyn),w(Ui,"JsonImporter/lambda$4$Type",906),b(942,1,re,tyn),o.Cd=function(e){K3e(this.a,u(e,8))},w(Ui,"JsonImporter/lambda$40$Type",942),b(907,1,{},iyn),w(Ui,"JsonImporter/lambda$5$Type",907),b(911,1,{},ryn),w(Ui,"JsonImporter/lambda$6$Type",911),b(909,1,{},cyn),w(Ui,"JsonImporter/lambda$7$Type",909),b(910,1,{},uyn),w(Ui,"JsonImporter/lambda$8$Type",910),b(913,1,{},oyn),w(Ui,"JsonImporter/lambda$9$Type",913),b(961,1,re,syn),o.Cd=function(e){Op(this.a,new qw(Ae(e)))},w(Ui,"JsonMetaDataConverter/lambda$0$Type",961),b(962,1,re,fyn),o.Cd=function(e){I0e(this.a,u(e,245))},w(Ui,"JsonMetaDataConverter/lambda$1$Type",962),b(963,1,re,hyn),o.Cd=function(e){P2e(this.a,u(e,143))},w(Ui,"JsonMetaDataConverter/lambda$2$Type",963),b(964,1,re,lyn),o.Cd=function(e){O0e(this.a,u(e,170))},w(Ui,"JsonMetaDataConverter/lambda$3$Type",964),b(245,22,{3:1,34:1,22:1,245:1},gp);var wA,gA,gU,pA,mA,vA,pU,mU,kA=we(Ay,"GraphFeature",245,ke,d4e,twe),Ioe;b(11,1,{34:1,149:1},lt,Lt,Tn,Di),o.Fd=function(e){return M1e(this,u(e,149))},o.Fb=function(e){return ZOn(this,e)},o.Sg=function(){return rn(this)},o.Pg=function(){return this.b},o.Hb=function(){return t1(this.b)},o.Ib=function(){return this.b},w(Ay,"Property",11),b(671,1,De,tL),o.Ne=function(e,t){return D5e(this,u(e,96),u(t,96))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ay,"PropertyHolderComparator",671),b(709,1,Pi,DG),o.Nb=function(e){_i(this,e)},o.Pb=function(){return $me(this)},o.Qb=function(){oEn()},o.Ob=function(){return!!this.a},w(_P,"ElkGraphUtil/AncestorIterator",709);var Ldn=Dt(or,"EList");b(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),o.bd=function(e,t){p5(this,e,t)},o.Fc=function(e){return ve(this,e)},o.cd=function(e,t){return VQ(this,e,t)},o.Gc=function(e){return Bt(this,e)},o.Ii=function(){return new yp(this)},o.Ji=function(){return new T7(this)},o.Ki=function(e){return gk(this,e)},o.Li=function(){return!0},o.Mi=function(e,t){},o.Ni=function(){},o.Oi=function(e,t){t$(this,e,t)},o.Pi=function(e,t,i){},o.Qi=function(e,t){},o.Ri=function(e,t,i){},o.Fb=function(e){return xqn(this,e)},o.Hb=function(){return UQ(this)},o.Si=function(){return!1},o.Kc=function(){return new ne(this)},o.ed=function(){return new kp(this)},o.fd=function(e){var t;if(t=this.gc(),e<0||e>t)throw T(new Fw(e,t));return new oD(this,e)},o.Ui=function(e,t){this.Ti(e,this.dd(t))},o.Mc=function(e){return rC(this,e)},o.Wi=function(e,t){return t},o.hd=function(e,t){return Bg(this,e,t)},o.Ib=function(){return KY(this)},o.Yi=function(){return!0},o.Zi=function(e,t){return i4(this,t)},w(or,"AbstractEList",70),b(66,70,Mh,jE,Cb,KQ),o.Ei=function(e,t){return Zx(this,e,t)},o.Fi=function(e){return LBn(this,e)},o.Gi=function(e,t){Ak(this,e,t)},o.Hi=function(e){nk(this,e)},o.$i=function(e){return YJ(this,e)},o.$b=function(){Z6(this)},o.Hc=function(e){return v4(this,e)},o.Xb=function(e){return N(this,e)},o._i=function(e){var t,i,r;++this.j,i=this.g==null?0:this.g.length,e>i&&(r=this.g,t=i+(i/2|0)+4,t<e&&(t=e),this.g=this.aj(t),r!=null&&Oc(r,0,this.g,0,this.i))},o.dd=function(e){return nFn(this,e)},o.dc=function(){return this.i==0},o.Ti=function(e,t){return lR(this,e,t)},o.aj=function(e){return F(ki,Rn,1,e,5,1)},o.Vi=function(e){return this.g[e]},o.gd=function(e){return Jp(this,e)},o.Xi=function(e,t){return d$(this,e,t)},o.gc=function(){return this.i},o.Pc=function(){return kJ(this)},o.Qc=function(e){return XY(this,e)},o.i=0;var Ndn=w(or,"BasicEList",66),Ddn=Dt(or,"TreeIterator");b(708,66,yF),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.g==null&&!this.c?iJ(this):this.g==null||this.i!=0&&u(this.g[this.i-1],51).Ob()},o.Pb=function(){return MS(this)},o.Qb=function(){if(!this.e)throw T(new Ar("There is no valid object to remove."));this.e.Qb()},o.c=!1,w(or,"AbstractTreeIterator",708),b(700,708,yF,TX),o.bj=function(e){var t;return t=u(e,58).Gh().Kc(),L(t,287)&&u(t,287).wl(new dvn),t},w(_P,"ElkGraphUtil/PropertiesSkippingTreeIterator",700),b(965,1,{},dvn),w(_P,"ElkGraphUtil/PropertiesSkippingTreeIterator/1",965);var fE,vU,hE=w(_P,"ElkReflect",null);b(901,1,T0,bvn),o.Rg=function(e){return $T(),O2e(u(e,181))},w(_P,"ElkReflect/lambda$0$Type",901);var Na;Dt(or,"ResourceLocator"),b(1065,1,{}),w(or,"DelegatingResourceLocator",1065),b(1066,1065,{}),w("org.eclipse.emf.common","EMFPlugin",1066);var kU=Dt(QWn,"Adapter"),ADe=Dt(QWn,"Notification");b(1174,1,Bcn),o.cj=function(){return this.d},o.dj=function(e){},o.ej=function(e){this.d=e},o.fj=function(e){this.d==e&&(this.d=null)},o.d=null,w(g3,"AdapterImpl",1174),b(2093,70,YWn),o.Ei=function(e,t){return HY(this,e,t)},o.Fi=function(e){var t,i,r;if(++this.j,e.dc())return!1;for(t=this.Ej(),r=e.Kc();r.Ob();)i=r.Pb(),this.rj(this.Zi(t,i)),++t;return!0},o.Gi=function(e,t){ISn(this,e,t)},o.Hi=function(e){nOn(this,e)},o.pj=function(){return this.sj()},o.$b=function(){P7(this,this.Ej(),this.Fj())},o.Hc=function(e){return this.uj(e)},o.Ic=function(e){return this.vj(e)},o.qj=function(e,t){this.Bj().Um()},o.rj=function(e){this.Bj().Um()},o.sj=function(){return this.Bj()},o.tj=function(){this.Bj().Um()},o.uj=function(e){return this.Bj().Um()},o.vj=function(e){return this.Bj().Um()},o.wj=function(e){return this.Bj().Um()},o.xj=function(e){return this.Bj().Um()},o.yj=function(){return this.Bj().Um()},o.zj=function(e){return this.Bj().Um()},o.Aj=function(){return this.Bj().Um()},o.Cj=function(e){return this.Bj().Um()},o.Dj=function(e,t){return this.Bj().Um()},o.Ej=function(){return this.Bj().Um()},o.Fj=function(){return this.Bj().Um()},o.Gj=function(e){return this.Bj().Um()},o.Hj=function(){return this.Bj().Um()},o.Fb=function(e){return this.wj(e)},o.Xb=function(e){return this.Wi(e,this.xj(e))},o.Hb=function(){return this.yj()},o.dd=function(e){return this.zj(e)},o.dc=function(){return this.Aj()},o.Ti=function(e,t){return cnn(this,e,t)},o.Vi=function(e){return this.xj(e)},o.gd=function(e){return eT(this,e)},o.Mc=function(e){var t;return t=this.dd(e),t>=0?(this.gd(t),!0):!1},o.Xi=function(e,t){return this.Dj(e,this.Zi(e,t))},o.gc=function(){return this.Ej()},o.Pc=function(){return this.Fj()},o.Qc=function(e){return this.Gj(e)},o.Ib=function(){return this.Hj()},w(or,"DelegatingEList",2093),b(2094,2093,YWn),o.Ei=function(e,t){return Len(this,e,t)},o.Fi=function(e){return this.Ei(this.Ej(),e)},o.Gi=function(e,t){EHn(this,e,t)},o.Hi=function(e){lHn(this,e)},o.Li=function(){return!this.Mj()},o.$b=function(){G5(this)},o.Ij=function(e,t,i,r,c){return new YOn(this,e,t,i,r,c)},o.Jj=function(e){rt(this.jj(),e)},o.Kj=function(){return null},o.Lj=function(){return-1},o.jj=function(){return null},o.Mj=function(){return!1},o.Nj=function(e,t){return t},o.Oj=function(e,t){return t},o.Pj=function(){return!1},o.Qj=function(){return!this.Aj()},o.Ti=function(e,t){var i,r;return this.Pj()?(r=this.Qj(),i=cnn(this,e,t),this.Jj(this.Ij(7,Y(t),i,e,r)),i):cnn(this,e,t)},o.gd=function(e){var t,i,r,c;return this.Pj()?(i=null,r=this.Qj(),t=this.Ij(4,c=eT(this,e),null,e,r),this.Mj()&&c?(i=this.Oj(c,i),i?(i.nj(t),i.oj()):this.Jj(t)):i?(i.nj(t),i.oj()):this.Jj(t),c):(c=eT(this,e),this.Mj()&&c&&(i=this.Oj(c,null),i&&i.oj()),c)},o.Xi=function(e,t){return OUn(this,e,t)},w(g3,"DelegatingNotifyingListImpl",2094),b(152,1,Vy),o.nj=function(e){return UZ(this,e)},o.oj=function(){h$(this)},o.gj=function(){return this.d},o.Kj=function(){return null},o.Rj=function(){return null},o.hj=function(e){return-1},o.ij=function(){return pqn(this)},o.jj=function(){return null},o.kj=function(){return fen(this)},o.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},o.Sj=function(){return!1},o.mj=function(e){var t,i,r,c,s,f,h,l,a,d,g;switch(this.d){case 1:case 2:switch(c=e.gj(),c){case 1:case 2:if(s=e.jj(),x(s)===x(this.jj())&&this.hj(null)==e.hj(null))return this.g=e.ij(),e.gj()==1&&(this.d=1),!0}case 4:{switch(c=e.gj(),c){case 4:{if(s=e.jj(),x(s)===x(this.jj())&&this.hj(null)==e.hj(null))return a=Wen(this),l=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,f=e.lj(),this.d=6,g=new Cb(2),l<=f?(ve(g,this.n),ve(g,e.kj()),this.g=S(C(ye,1),_e,28,15,[this.o=l,f+1])):(ve(g,e.kj()),ve(g,this.n),this.g=S(C(ye,1),_e,28,15,[this.o=f,l])),this.n=g,a||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(c=e.gj(),c){case 4:{if(s=e.jj(),x(s)===x(this.jj())&&this.hj(null)==e.hj(null)){for(a=Wen(this),f=e.lj(),d=u(this.g,53),r=F(ye,_e,28,d.length+1,15,1),t=0;t<d.length&&(h=d[t],h<=f);)r[t++]=h,++f;for(i=u(this.n,15),i.bd(t,e.kj()),r[t]=f;++t<r.length;)r[t]=d[t-1];return this.g=r,a||(this.o=-2-r[0]),!0}break}}break}}return!1},o.Ib=function(){var e,t,i,r;switch(r=new ls(Xa(this.Rm)+"@"+(t=mt(this)>>>0,t.toString(16))),r.a+=" (eventType: ",this.d){case 1:{r.a+="SET";break}case 2:{r.a+="UNSET";break}case 3:{r.a+="ADD";break}case 5:{r.a+="ADD_MANY";break}case 4:{r.a+="REMOVE";break}case 6:{r.a+="REMOVE_MANY";break}case 7:{r.a+="MOVE";break}case 8:{r.a+="REMOVING_ADAPTER";break}case 9:{r.a+="RESOLVE";break}default:{CL(r,this.d);break}}if(rUn(this)&&(r.a+=", touch: true"),r.a+=", position: ",CL(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=", notifier: ",E6(r,this.jj()),r.a+=", feature: ",E6(r,this.Kj()),r.a+=", oldValue: ",E6(r,fen(this)),r.a+=", newValue: ",this.d==6&&L(this.g,53)){for(i=u(this.g,53),r.a+="[",e=0;e<i.length;)r.a+=i[e],++e<i.length&&(r.a+=ur);r.a+="]"}else E6(r,pqn(this));return r.a+=", isTouch: ",ql(r,rUn(this)),r.a+=", wasSet: ",ql(r,Wen(this)),r.a+=")",r.a},o.d=0,o.e=0,o.f=0,o.j=0,o.k=0,o.o=0,o.p=0,w(g3,"NotificationImpl",152),b(1188,152,Vy,YOn),o.Kj=function(){return this.a.Kj()},o.hj=function(e){return this.a.Lj()},o.jj=function(){return this.a.jj()},w(g3,"DelegatingNotifyingListImpl/1",1188),b(251,66,Mh,wvn,K1),o.Fc=function(e){return TKn(this,u(e,378))},o.nj=function(e){return TKn(this,e)},o.oj=function(){var e,t,i;for(e=0;e<this.i;++e)t=u(this.g[e],378),i=t.jj(),i!=null&&t.gj()!=-1&&u(i,94).xh(t)},o.aj=function(e){return F(ADe,Rn,378,e,0,1)},w(g3,"NotificationChainImpl",251),b(1524,93,hWn),o.uh=function(){return this.e},o.wh=function(){return(this.f&1)!=0},o.f=1,w(g3,"NotifierImpl",1524),b(2091,66,Mh),o.Ei=function(e,t){return LR(this,e,t)},o.Fi=function(e){return this.Ei(this.i,e)},o.Gi=function(e,t){xnn(this,e,t)},o.Hi=function(e){aR(this,e)},o.Li=function(){return!this.Mj()},o.$b=function(){me(this)},o.Ij=function(e,t,i,r,c){return new QOn(this,e,t,i,r,c)},o.Jj=function(e){rt(this.jj(),e)},o.Kj=function(){return null},o.Lj=function(){return-1},o.jj=function(){return null},o.Mj=function(){return!1},o.Tj=function(){return!1},o.Nj=function(e,t){return t},o.Oj=function(e,t){return t},o.Pj=function(){return!1},o.Qj=function(){return this.i!=0},o.Ti=function(e,t){return m5(this,e,t)},o.gd=function(e){return d0(this,e)},o.Xi=function(e,t){return XUn(this,e,t)},o.Uj=function(e,t){return t},o.Vj=function(e,t){return t},o.Wj=function(e,t,i){return i},w(g3,"NotifyingListImpl",2091),b(1187,152,Vy,QOn),o.Kj=function(){return this.a.Kj()},o.hj=function(e){return this.a.Lj()},o.jj=function(){return this.a.jj()},w(g3,"NotifyingListImpl/1",1187),b(966,66,Mh,LSn),o.Hc=function(e){return this.i>10?((!this.b||this.c.j!=this.a)&&(this.b=new $6(this),this.a=this.j),sf(this.b,e)):v4(this,e)},o.Yi=function(){return!0},o.a=0,w(or,"AbstractEList/1",966),b(301,77,SK,Fw),w(or,"AbstractEList/BasicIndexOutOfBoundsException",301),b(40,1,Pi,ne),o.Nb=function(e){_i(this,e)},o.Xj=function(){if(this.i.j!=this.f)throw T(new Ko)},o.Yj=function(){return ue(this)},o.Ob=function(){return this.e!=this.i.gc()},o.Pb=function(){return this.Yj()},o.Qb=function(){I5(this)},o.e=0,o.f=0,o.g=-1,w(or,"AbstractEList/EIterator",40),b(286,40,Hh,kp,oD),o.Qb=function(){I5(this)},o.Rb=function(e){OKn(this,e)},o.Zj=function(){var e;try{return e=this.d.Xb(--this.e),this.Xj(),this.g=this.e,e}catch(t){throw t=Ot(t),L(t,77)?(this.Xj(),T(new nc)):T(t)}},o.$j=function(e){$Bn(this,e)},o.Sb=function(){return this.e!=0},o.Tb=function(){return this.e},o.Ub=function(){return this.Zj()},o.Vb=function(){return this.e-1},o.Wb=function(e){this.$j(e)},w(or,"AbstractEList/EListIterator",286),b(355,40,Pi,yp),o.Yj=function(){return Tx(this)},o.Qb=function(){throw T(new Ie)},w(or,"AbstractEList/NonResolvingEIterator",355),b(398,286,Hh,T7,CV),o.Rb=function(e){throw T(new Ie)},o.Yj=function(){var e;try{return e=this.c.Vi(this.e),this.Xj(),this.g=this.e++,e}catch(t){throw t=Ot(t),L(t,77)?(this.Xj(),T(new nc)):T(t)}},o.Zj=function(){var e;try{return e=this.c.Vi(--this.e),this.Xj(),this.g=this.e,e}catch(t){throw t=Ot(t),L(t,77)?(this.Xj(),T(new nc)):T(t)}},o.Qb=function(){throw T(new Ie)},o.Wb=function(e){throw T(new Ie)},w(or,"AbstractEList/NonResolvingEListIterator",398),b(2080,70,ZWn),o.Ei=function(e,t){var i,r,c,s,f,h,l,a,d,g,p;if(c=t.gc(),c!=0){for(a=u(Un(this.a,4),129),d=a==null?0:a.length,p=d+c,r=V$(this,p),g=d-e,g>0&&Oc(a,e,r,e+c,g),l=t.Kc(),f=0;f<c;++f)h=l.Pb(),i=e+f,mN(r,i,i4(this,h));for(w4(this,r),s=0;s<c;++s)h=r[e],this.Mi(e,h),++e;return!0}else return++this.j,!1},o.Fi=function(e){var t,i,r,c,s,f,h,l,a;if(r=e.gc(),r!=0){for(l=(i=u(Un(this.a,4),129),i==null?0:i.length),a=l+r,t=V$(this,a),h=e.Kc(),s=l;s<a;++s)f=h.Pb(),mN(t,s,i4(this,f));for(w4(this,t),c=l;c<a;++c)f=t[c],this.Mi(c,f);return!0}else return++this.j,!1},o.Gi=function(e,t){var i,r,c,s;r=u(Un(this.a,4),129),c=r==null?0:r.length,i=V$(this,c+1),s=i4(this,t),e!=c&&Oc(r,e,i,e+1,c-e),$t(i,e,s),w4(this,i),this.Mi(e,t)},o.Hi=function(e){var t,i,r;r=(i=u(Un(this.a,4),129),i==null?0:i.length),t=V$(this,r+1),mN(t,r,i4(this,e)),w4(this,t),this.Mi(r,e)},o.Ii=function(){return new jNn(this)},o.Ji=function(){return new DIn(this)},o.Ki=function(e){var t,i;if(i=(t=u(Un(this.a,4),129),t==null?0:t.length),e<0||e>i)throw T(new Fw(e,i));return new kOn(this,e)},o.$b=function(){var e,t;++this.j,e=u(Un(this.a,4),129),t=e==null?0:e.length,w4(this,null),t$(this,t,e)},o.Hc=function(e){var t,i,r,c,s;if(t=u(Un(this.a,4),129),t!=null){if(e!=null){for(r=t,c=0,s=r.length;c<s;++c)if(i=r[c],ct(e,i))return!0}else for(r=t,c=0,s=r.length;c<s;++c)if(i=r[c],x(i)===x(e))return!0}return!1},o.Xb=function(e){var t,i;if(t=u(Un(this.a,4),129),i=t==null?0:t.length,e>=i)throw T(new Fw(e,i));return t[e]},o.dd=function(e){var t,i,r;if(t=u(Un(this.a,4),129),t!=null){if(e!=null){for(i=0,r=t.length;i<r;++i)if(ct(e,t[i]))return i}else for(i=0,r=t.length;i<r;++i)if(x(t[i])===x(e))return i}return-1},o.dc=function(){return u(Un(this.a,4),129)==null},o.Kc=function(){return new yNn(this)},o.ed=function(){return new NIn(this)},o.fd=function(e){var t,i;if(i=(t=u(Un(this.a,4),129),t==null?0:t.length),e<0||e>i)throw T(new Fw(e,i));return new vOn(this,e)},o.Ti=function(e,t){var i,r,c;if(i=FKn(this),c=i==null?0:i.length,e>=c)throw T(new Or(vF+e+Cd+c));if(t>=c)throw T(new Or(kF+t+Cd+c));return r=i[t],e!=t&&(e<t?Oc(i,e,i,e+1,t-e):Oc(i,t+1,i,t,e-t),$t(i,e,r),w4(this,i)),r},o.Vi=function(e){return u(Un(this.a,4),129)[e]},o.gd=function(e){return bMe(this,e)},o.Xi=function(e,t){var i,r;return i=FKn(this),r=i[e],mN(i,e,i4(this,t)),w4(this,i),r},o.gc=function(){var e;return e=u(Un(this.a,4),129),e==null?0:e.length},o.Pc=function(){var e,t,i;return e=u(Un(this.a,4),129),i=e==null?0:e.length,t=F(kU,TF,424,i,0,1),i>0&&Oc(e,0,t,0,i),t},o.Qc=function(e){var t,i,r;return t=u(Un(this.a,4),129),r=t==null?0:t.length,r>0&&(e.length<r&&(i=wk(wo(e).c,r),e=i),Oc(t,0,e,0,r)),e.length>r&&$t(e,r,null),e};var Ooe;w(or,"ArrayDelegatingEList",2080),b(1051,40,Pi,yNn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw T(new Ko)},o.Qb=function(){I5(this),this.a=u(Un(this.b.a,4),129)},w(or,"ArrayDelegatingEList/EIterator",1051),b(722,286,Hh,NIn,vOn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw T(new Ko)},o.$j=function(e){$Bn(this,e),this.a=u(Un(this.b.a,4),129)},o.Qb=function(){I5(this),this.a=u(Un(this.b.a,4),129)},w(or,"ArrayDelegatingEList/EListIterator",722),b(1052,355,Pi,jNn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw T(new Ko)},w(or,"ArrayDelegatingEList/NonResolvingEIterator",1052),b(723,398,Hh,DIn,kOn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw T(new Ko)},w(or,"ArrayDelegatingEList/NonResolvingEListIterator",723),b(615,301,SK,aN),w(or,"BasicEList/BasicIndexOutOfBoundsException",615),b(710,66,Mh,bX),o.bd=function(e,t){throw T(new Ie)},o.Fc=function(e){throw T(new Ie)},o.cd=function(e,t){throw T(new Ie)},o.Gc=function(e){throw T(new Ie)},o.$b=function(){throw T(new Ie)},o._i=function(e){throw T(new Ie)},o.Kc=function(){return this.Ii()},o.ed=function(){return this.Ji()},o.fd=function(e){return this.Ki(e)},o.Ti=function(e,t){throw T(new Ie)},o.Ui=function(e,t){throw T(new Ie)},o.gd=function(e){throw T(new Ie)},o.Mc=function(e){throw T(new Ie)},o.hd=function(e,t){throw T(new Ie)},w(or,"BasicEList/UnmodifiableEList",710),b(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),o.bd=function(e,t){a1e(this,e,u(t,44))},o.Fc=function(e){return cae(this,u(e,44))},o.Jc=function(e){qi(this,e)},o.Xb=function(e){return u(N(this.c,e),136)},o.Ti=function(e,t){return u(this.c.Ti(e,t),44)},o.Ui=function(e,t){d1e(this,e,u(t,44))},o.Lc=function(){return new Cn(null,new On(this,16))},o.gd=function(e){return u(this.c.gd(e),44)},o.hd=function(e,t){return P0e(this,e,u(t,44))},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.Oc=function(){return new Cn(null,new On(this,16))},o.cd=function(e,t){return this.c.cd(e,t)},o.Gc=function(e){return this.c.Gc(e)},o.$b=function(){this.c.$b()},o.Hc=function(e){return this.c.Hc(e)},o.Ic=function(e){return jk(this.c,e)},o._j=function(){var e,t,i;if(this.d==null){for(this.d=F(Ndn,Fcn,66,2*this.f+1,0,1),i=this.e,this.f=0,t=this.c.Kc();t.e!=t.i.gc();)e=u(t.Yj(),136),uS(this,e);this.e=i}},o.Fb=function(e){return oPn(this,e)},o.Hb=function(){return UQ(this.c)},o.dd=function(e){return this.c.dd(e)},o.ak=function(){this.c=new ayn(this)},o.dc=function(){return this.f==0},o.Kc=function(){return this.c.Kc()},o.ed=function(){return this.c.ed()},o.fd=function(e){return this.c.fd(e)},o.bk=function(){return ik(this)},o.ck=function(e,t,i){return new kPn(e,t,i)},o.dk=function(){return new gvn},o.Mc=function(e){return X$n(this,e)},o.gc=function(){return this.f},o.kd=function(e,t){return new Jl(this.c,e,t)},o.Pc=function(){return this.c.Pc()},o.Qc=function(e){return this.c.Qc(e)},o.Ib=function(){return KY(this.c)},o.e=0,o.f=0,w(or,"BasicEMap",721),b(1046,66,Mh,ayn),o.Mi=function(e,t){Ufe(this,u(t,136))},o.Pi=function(e,t,i){var r;++(r=this,u(t,136),r).a.e},o.Qi=function(e,t){Gfe(this,u(t,136))},o.Ri=function(e,t,i){U1e(this,u(t,136),u(i,136))},o.Oi=function(e,t){Fxn(this.a)},w(or,"BasicEMap/1",1046),b(1047,66,Mh,gvn),o.aj=function(e){return F(LDe,nJn,621,e,0,1)},w(or,"BasicEMap/2",1047),b(1048,Ff,Nu,dyn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){return wx(this.a,e)},o.Kc=function(){return this.a.f==0?(pm(),lE.a):new Wjn(this.a)},o.Mc=function(e){var t;return t=this.a.f,VC(this.a,e),this.a.f!=t},o.gc=function(){return this.a.f},w(or,"BasicEMap/3",1048),b(1049,31,p0,byn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){return Rqn(this.a,e)},o.Kc=function(){return this.a.f==0?(pm(),lE.a):new Jjn(this.a)},o.gc=function(){return this.a.f},w(or,"BasicEMap/4",1049),b(1050,Ff,Nu,wyn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){var t,i,r,c,s,f,h,l,a;if(this.a.f>0&&L(e,44)&&(this.a._j(),l=u(e,44),h=l.ld(),c=h==null?0:mt(h),s=lV(this.a,c),t=this.a.d[s],t)){for(i=u(t.g,379),a=t.i,f=0;f<a;++f)if(r=i[f],r.Bi()==c&&r.Fb(l))return!0}return!1},o.Kc=function(){return this.a.f==0?(pm(),lE.a):new MD(this.a)},o.Mc=function(e){return PHn(this,e)},o.gc=function(){return this.a.f},w(or,"BasicEMap/5",1050),b(622,1,Pi,MD),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.b!=-1},o.Pb=function(){var e;if(this.f.e!=this.c)throw T(new Ko);if(this.b==-1)throw T(new nc);return this.d=this.a,this.e=this.b,dFn(this),e=u(this.f.d[this.d].g[this.e],136),this.ek(e)},o.Qb=function(){if(this.f.e!=this.c)throw T(new Ko);if(this.e==-1)throw T(new Mu);this.f.c.Mc(N(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&this.b!=-1&&--this.b},o.ek=function(e){return e},o.a=0,o.b=-1,o.c=0,o.d=0,o.e=0,w(or,"BasicEMap/BasicEMapIterator",622),b(1044,622,Pi,Wjn),o.ek=function(e){return e.ld()},w(or,"BasicEMap/BasicEMapKeyIterator",1044),b(1045,622,Pi,Jjn),o.ek=function(e){return e.md()},w(or,"BasicEMap/BasicEMapValueIterator",1045),b(1043,1,Gb,gyn),o.wc=function(e){o5(this,e)},o.yc=function(e,t,i){return hx(this,e,t,i)},o.$b=function(){this.a.c.$b()},o._b=function(e){return ITn(this,e)},o.uc=function(e){return Rqn(this.a,e)},o.vc=function(){return dme(this.a)},o.Fb=function(e){return oPn(this.a,e)},o.xc=function(e){return gf(this.a,e)},o.Hb=function(){return UQ(this.a.c)},o.dc=function(){return this.a.f==0},o.ec=function(){return lme(this.a)},o.zc=function(e,t){return Gk(this.a,e,t)},o.Bc=function(e){return VC(this.a,e)},o.gc=function(){return this.a.f},o.Ib=function(){return KY(this.a.c)},o.Cc=function(){return ame(this.a)},w(or,"BasicEMap/DelegatingMap",1043),b(621,1,{44:1,136:1,621:1},kPn),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),(this.b!=null?ct(this.b,t.ld()):x(this.b)===x(t.ld()))&&(this.c!=null?ct(this.c,t.md()):x(this.c)===x(t.md()))):!1},o.Bi=function(){return this.a},o.ld=function(){return this.b},o.md=function(){return this.c},o.Hb=function(){return this.a^(this.c==null?0:mt(this.c))},o.Ci=function(e){this.a=e},o.Di=function(e){throw T(new Ga)},o.nd=function(e){var t;return t=this.c,this.c=e,t},o.Ib=function(){return this.b+"->"+this.c},o.a=0;var LDe=w(or,"BasicEMap/EntryImpl",621);b(546,1,{},EE),w(or,"BasicEMap/View",546);var lE;b(783,1,{}),o.Fb=function(e){return znn((Ln(),sr),e)},o.Hb=function(){return tY((Ln(),sr))},o.Ib=function(){return ua((Ln(),sr))},w(or,"ECollections/BasicEmptyUnmodifiableEList",783),b(1348,1,Hh,pvn),o.Nb=function(e){_i(this,e)},o.Rb=function(e){throw T(new Ie)},o.Ob=function(){return!1},o.Sb=function(){return!1},o.Pb=function(){throw T(new nc)},o.Tb=function(){return 0},o.Ub=function(){throw T(new nc)},o.Vb=function(){return-1},o.Qb=function(){throw T(new Ie)},o.Wb=function(e){throw T(new Ie)},w(or,"ECollections/BasicEmptyUnmodifiableEList/1",1348),b(1346,783,{20:1,16:1,15:1,61:1},cjn),o.bd=function(e,t){kEn()},o.Fc=function(e){return yEn()},o.cd=function(e,t){return jEn()},o.Gc=function(e){return EEn()},o.$b=function(){MEn()},o.Hc=function(e){return!1},o.Ic=function(e){return!1},o.Jc=function(e){qi(this,e)},o.Xb=function(e){return pX((Ln(),e)),null},o.dd=function(e){return-1},o.dc=function(){return!0},o.Kc=function(){return this.a},o.ed=function(){return this.a},o.fd=function(e){return this.a},o.Ti=function(e,t){return TEn()},o.Ui=function(e,t){CEn()},o.Lc=function(){return new Cn(null,new On(this,16))},o.gd=function(e){return SEn()},o.Mc=function(e){return PEn()},o.hd=function(e,t){return IEn()},o.gc=function(){return 0},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.Oc=function(){return new Cn(null,new On(this,16))},o.kd=function(e,t){return Ln(),new Jl(sr,e,t)},o.Pc=function(){return bW((Ln(),sr))},o.Qc=function(e){return Ln(),T5(sr,e)},w(or,"ECollections/EmptyUnmodifiableEList",1346),b(1347,783,{20:1,16:1,15:1,61:1,597:1},ujn),o.bd=function(e,t){kEn()},o.Fc=function(e){return yEn()},o.cd=function(e,t){return jEn()},o.Gc=function(e){return EEn()},o.$b=function(){MEn()},o.Hc=function(e){return!1},o.Ic=function(e){return!1},o.Jc=function(e){qi(this,e)},o.Xb=function(e){return pX((Ln(),e)),null},o.dd=function(e){return-1},o.dc=function(){return!0},o.Kc=function(){return this.a},o.ed=function(){return this.a},o.fd=function(e){return this.a},o.Ti=function(e,t){return TEn()},o.Ui=function(e,t){CEn()},o.Lc=function(){return new Cn(null,new On(this,16))},o.gd=function(e){return SEn()},o.Mc=function(e){return PEn()},o.hd=function(e,t){return IEn()},o.gc=function(){return 0},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.Oc=function(){return new Cn(null,new On(this,16))},o.kd=function(e,t){return Ln(),new Jl(sr,e,t)},o.Pc=function(){return bW((Ln(),sr))},o.Qc=function(e){return Ln(),T5(sr,e)},o.bk=function(){return Ln(),Ln(),Wh},w(or,"ECollections/EmptyUnmodifiableEMap",1347);var $dn=Dt(or,"Enumerator"),yA;b(288,1,{288:1},jR),o.Fb=function(e){var t;return this===e?!0:L(e,288)?(t=u(e,288),this.f==t.f&&Uwe(this.i,t.i)&&WN(this.a,this.f&256?t.f&256?t.a:null:t.f&256?null:t.a)&&WN(this.d,t.d)&&WN(this.g,t.g)&&WN(this.e,t.e)&&b9e(this,t)):!1},o.Hb=function(){return this.f},o.Ib=function(){return gUn(this)},o.f=0;var Aoe=0,Loe=0,Noe=0,Doe=0,xdn=0,Rdn=0,Kdn=0,Bdn=0,Fdn=0,$oe,A9=0,L9=0,xoe=0,Roe=0,jA,_dn;w(or,"URI",288),b(1121,45,n2,ojn),o.zc=function(e,t){return u(Lr(this,Ae(e),u(t,288)),288)},w(or,"URI/URICache",1121),b(505,66,Mh,lvn,oT),o.Si=function(){return!0},w(or,"UniqueEList",505),b(590,63,Il,eC),w(or,"WrappedException",590);var Ue=Dt(ts,iJn),Z0=Dt(ts,rJn),ku=Dt(ts,cJn),ng=Dt(ts,uJn),Mf=Dt(ts,oJn),Ss=Dt(ts,"EClass"),yU=Dt(ts,"EDataType"),Koe;b(1233,45,n2,sjn),o.xc=function(e){return Si(e)?Dc(this,e):Fr(wr(this.f,e))},w(ts,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233);var EA=Dt(ts,"EEnum"),Kl=Dt(ts,sJn),jr=Dt(ts,fJn),Ps=Dt(ts,hJn),Is,vw=Dt(ts,lJn),eg=Dt(ts,aJn);b(1042,1,{},hvn),o.Ib=function(){return"NIL"},w(ts,"EStructuralFeature/Internal/DynamicValueHolder/1",1042);var Boe;b(1041,45,n2,fjn),o.xc=function(e){return Si(e)?Dc(this,e):Fr(wr(this.f,e))},w(ts,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041);var fu=Dt(ts,dJn),K3=Dt(ts,"EValidator/PatternMatcher"),Hdn,qdn,Hn,S1,tg,Da,Foe,_oe,Hoe,$a,P1,xa,kw,Zf,qoe,Uoe,Os,I1,Goe,O1,ig,U2,ar,zoe,Xoe,yw,MA=Dt(Ct,"FeatureMap/Entry");b(545,1,{76:1},MM),o.Lk=function(){return this.a},o.md=function(){return this.b},w(qn,"BasicEObjectImpl/1",545),b(1040,1,CF,ATn),o.Fk=function(e){return YD(this.a,this.b,e)},o.Qj=function(){return dAn(this.a,this.b)},o.Wb=function(e){tJ(this.a,this.b,e)},o.Gk=function(){_0e(this.a,this.b)},w(qn,"BasicEObjectImpl/4",1040),b(2081,1,{114:1}),o.Mk=function(e){this.e=e==0?Voe:F(ki,Rn,1,e,5,1)},o.li=function(e){return this.e[e]},o.mi=function(e,t){this.e[e]=t},o.ni=function(e){this.e[e]=null},o.Nk=function(){return this.c},o.Ok=function(){throw T(new Ie)},o.Pk=function(){throw T(new Ie)},o.Qk=function(){return this.d},o.Rk=function(){return this.e!=null},o.Sk=function(e){this.c=e},o.Tk=function(e){throw T(new Ie)},o.Uk=function(e){throw T(new Ie)},o.Vk=function(e){this.d=e};var Voe;w(qn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081),b(192,2081,{114:1},uf),o.Ok=function(){return this.a},o.Pk=function(){return this.b},o.Tk=function(e){this.a=e},o.Uk=function(e){this.b=e},w(qn,"BasicEObjectImpl/EPropertiesHolderImpl",192),b(516,99,bWn,ME),o.uh=function(){return this.f},o.zh=function(){return this.k},o.Bh=function(e,t){this.g=e,this.i=t},o.Dh=function(){return this.j&2?this.$h().Nk():this.ii()},o.Fh=function(){return this.i},o.wh=function(){return(this.j&1)!=0},o.Ph=function(){return this.g},o.Vh=function(){return(this.j&4)!=0},o.$h=function(){return!this.k&&(this.k=new uf),this.k},o.ci=function(e){this.$h().Sk(e),e?this.j|=2:this.j&=-3},o.ei=function(e){this.$h().Uk(e),e?this.j|=4:this.j&=-5},o.ii=function(){return(z1(),Hn).S},o.i=0,o.j=1,w(qn,"EObjectImpl",516),b(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},QV),o.li=function(e){return this.e[e]},o.mi=function(e,t){this.e[e]=t},o.ni=function(e){this.e[e]=null},o.Dh=function(){return this.d},o.Ih=function(e){return At(this.d,e)},o.Kh=function(){return this.d},o.Oh=function(){return this.e!=null},o.$h=function(){return!this.k&&(this.k=new mvn),this.k},o.ci=function(e){this.d=e},o.hi=function(){var e;return this.e==null&&(e=se(this.d),this.e=e==0?Woe:F(ki,Rn,1,e,5,1)),this},o.ji=function(){return 0};var Woe;w(qn,"DynamicEObjectImpl",798),b(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},GPn),o.Fb=function(e){return this===e},o.Hb=function(){return fb(this)},o.ci=function(e){this.d=e,this.b=uy(e,"key"),this.c=uy(e,b8)},o.Bi=function(){var e;return this.a==-1&&(e=l$(this,this.b),this.a=e==null?0:mt(e)),this.a},o.ld=function(){return l$(this,this.b)},o.md=function(){return l$(this,this.c)},o.Ci=function(e){this.a=e},o.Di=function(e){tJ(this,this.b,e)},o.nd=function(e){var t;return t=l$(this,this.c),tJ(this,this.c,e),t},o.a=0,w(qn,"DynamicEObjectImpl/BasicEMapEntry",1522),b(1523,1,{114:1},mvn),o.Mk=function(e){throw T(new Ie)},o.li=function(e){throw T(new Ie)},o.mi=function(e,t){throw T(new Ie)},o.ni=function(e){throw T(new Ie)},o.Nk=function(){throw T(new Ie)},o.Ok=function(){return this.a},o.Pk=function(){return this.b},o.Qk=function(){return this.c},o.Rk=function(){throw T(new Ie)},o.Sk=function(e){throw T(new Ie)},o.Tk=function(e){this.a=e},o.Uk=function(e){this.b=e},o.Vk=function(e){this.c=e},w(qn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523),b(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},nG),o.Ah=function(e){return SZ(this,e)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.d;case 2:return i?(!this.b&&(this.b=new lo((An(),ar),pc,this)),this.b):(!this.b&&(this.b=new lo((An(),ar),pc,this)),ik(this.b));case 3:return mAn(this);case 4:return!this.a&&(this.a=new ti(La,this,4)),this.a;case 5:return!this.c&&(this.c=new Eg(La,this,5)),this.c}return zo(this,e-se((An(),S1)),$n((r=u(Un(this,16),29),r||S1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 3:return this.Cb&&(i=(c=this.Db>>16,c>=0?SZ(this,i):this.Cb.Th(this,-1-c,null,i))),dW(this,u(e,155),i)}return s=u($n((r=u(Un(this,16),29),r||(An(),S1)),t),69),s.wk().zk(this,iu(this),t-se((An(),S1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 2:return!this.b&&(this.b=new lo((An(),ar),pc,this)),qM(this.b,e,i);case 3:return dW(this,null,i);case 4:return!this.a&&(this.a=new ti(La,this,4)),cr(this.a,e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),S1)),t),69),c.wk().Ak(this,iu(this),t-se((An(),S1)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!mAn(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return Uo(this,e-se((An(),S1)),$n((t=u(Un(this,16),29),t||S1),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:Awe(this,Ae(t));return;case 2:!this.b&&(this.b=new lo((An(),ar),pc,this)),CC(this.b,t);return;case 3:rqn(this,u(t,155));return;case 4:!this.a&&(this.a=new ti(La,this,4)),me(this.a),!this.a&&(this.a=new ti(La,this,4)),Bt(this.a,u(t,16));return;case 5:!this.c&&(this.c=new Eg(La,this,5)),me(this.c),!this.c&&(this.c=new Eg(La,this,5)),Bt(this.c,u(t,16));return}Jo(this,e-se((An(),S1)),$n((i=u(Un(this,16),29),i||S1),e),t)},o.ii=function(){return An(),S1},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:PQ(this,null);return;case 2:!this.b&&(this.b=new lo((An(),ar),pc,this)),this.b.c.$b();return;case 3:rqn(this,null);return;case 4:!this.a&&(this.a=new ti(La,this,4)),me(this.a);return;case 5:!this.c&&(this.c=new Eg(La,this,5)),me(this.c);return}Wo(this,e-se((An(),S1)),$n((t=u(Un(this,16),29),t||S1),e))},o.Ib=function(){return oKn(this)},o.d=null,w(qn,"EAnnotationImpl",519),b(141,721,_cn,Ou),o.Gi=function(e,t){Wle(this,e,u(t,44))},o.Wk=function(e,t){return Qae(this,u(e,44),t)},o.$i=function(e){return u(u(this.c,71).$i(e),136)},o.Ii=function(){return u(this.c,71).Ii()},o.Ji=function(){return u(this.c,71).Ji()},o.Ki=function(e){return u(this.c,71).Ki(e)},o.Xk=function(e,t){return qM(this,e,t)},o.Fk=function(e){return u(this.c,79).Fk(e)},o.ak=function(){},o.Qj=function(){return u(this.c,79).Qj()},o.ck=function(e,t,i){var r;return r=u(jo(this.b).wi().si(this.b),136),r.Ci(e),r.Di(t),r.nd(i),r},o.dk=function(){return new xG(this)},o.Wb=function(e){CC(this,e)},o.Gk=function(){u(this.c,79).Gk()},w(Ct,"EcoreEMap",141),b(165,141,_cn,lo),o._j=function(){var e,t,i,r,c,s;if(this.d==null){for(s=F(Ndn,Fcn,66,2*this.f+1,0,1),i=this.c.Kc();i.e!=i.i.gc();)t=u(i.Yj(),136),r=t.Bi(),c=(r&et)%s.length,e=s[c],!e&&(e=s[c]=new xG(this)),e.Fc(t);this.d=s}},w(qn,"EAnnotationImpl/1",165),b(291,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,480:1,54:1,99:1,158:1,291:1,119:1,120:1}),o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),!!this.Jk();case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hD(this,i)}return c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i)},o.Wh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&pb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&pb(this.q).i==0)}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:this.ui(Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:this.Zk(u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),Xoe},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:this.ui(null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:this.Zk(1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){gs(this),this.Bb|=1},o.Hk=function(){return gs(this)},o.Ik=function(){return this.t},o.Jk=function(){var e;return e=this.t,e>1||e==-1},o.Si=function(){return(this.Bb&512)!=0},o.Yk=function(e,t){return yY(this,e,t)},o.Zk=function(e){Zw(this,e)},o.Ib=function(){return Rnn(this)},o.s=0,o.t=1,w(qn,"ETypedElementImpl",291),b(461,291,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,480:1,54:1,99:1,158:1,461:1,291:1,119:1,120:1,692:1}),o.Ah=function(e){return JBn(this,e)},o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),!!this.Jk();case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return _n(),!!(this.Bb&Gs);case 11:return _n(),!!(this.Bb&C0);case 12:return _n(),!!(this.Bb&v0);case 13:return this.j;case 14:return T4(this);case 15:return _n(),!!(this.Bb&$u);case 16:return _n(),!!(this.Bb&wh);case 17:return Gw(this)}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 17:return this.Cb&&(i=(c=this.Db>>16,c>=0?JBn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,17,i)}return s=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),s.wk().zk(this,iu(this),t-se(this.ii()),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hD(this,i);case 17:return Po(this,null,17,i)}return c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i)},o.Wh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&pb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&pb(this.q).i==0);case 10:return(this.Bb&Gs)==0;case 11:return(this.Bb&C0)!=0;case 12:return(this.Bb&v0)!=0;case 13:return this.j!=null;case 14:return T4(this)!=null;case 15:return(this.Bb&$u)!=0;case 16:return(this.Bb&wh)!=0;case 17:return!!Gw(this)}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:RD(this,Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:this.Zk(u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return;case 10:s4(this,on(un(t)));return;case 11:l4(this,on(un(t)));return;case 12:f4(this,on(un(t)));return;case 13:dX(this,Ae(t));return;case 15:h4(this,on(un(t)));return;case 16:a4(this,on(un(t)));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),zoe},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,90)&&h0(Zu(u(this.Cb,90)),4),zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:this.Zk(1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return;case 10:s4(this,!0);return;case 11:l4(this,!1);return;case 12:f4(this,!1);return;case 13:this.i=null,kC(this,null);return;case 15:h4(this,!1);return;case 16:a4(this,!1);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){Pm(Nr((Lu(),zi),this)),gs(this),this.Bb|=1},o.pk=function(){return this.f},o.ik=function(){return T4(this)},o.qk=function(){return Gw(this)},o.uk=function(){return null},o.$k=function(){return this.k},o.Lj=function(){return this.n},o.vk=function(){return bS(this)},o.wk=function(){var e,t,i,r,c,s,f,h,l;return this.p||(i=Gw(this),(i.i==null&&bh(i),i.i).length,r=this.uk(),r&&se(Gw(r)),c=gs(this),f=c.kk(),e=f?f.i&1?f==so?zt:f==ye?Gi:f==cg?ov:f==Ii?si:f==Ka?nw:f==V2?ew:f==Ru?p3:T8:f:null,t=T4(this),h=c.ik(),G5e(this),this.Bb&wh&&((s=DZ((Lu(),zi),i))&&s!=this||(s=$p(Nr(zi,this))))?this.p=new NTn(this,s):this.Jk()?this.al()?r?this.Bb&$u?e?this.bl()?this.p=new Za(47,e,this,r):this.p=new Za(5,e,this,r):this.bl()?this.p=new rd(46,this,r):this.p=new rd(4,this,r):e?this.bl()?this.p=new Za(49,e,this,r):this.p=new Za(7,e,this,r):this.bl()?this.p=new rd(48,this,r):this.p=new rd(6,this,r):this.Bb&$u?e?e==Id?this.p=new Xl(50,Poe,this):this.bl()?this.p=new Xl(43,e,this):this.p=new Xl(1,e,this):this.bl()?this.p=new Wl(42,this):this.p=new Wl(0,this):e?e==Id?this.p=new Xl(41,Poe,this):this.bl()?this.p=new Xl(45,e,this):this.p=new Xl(3,e,this):this.bl()?this.p=new Wl(44,this):this.p=new Wl(2,this):L(c,156)?e==MA?this.p=new Wl(40,this):this.Bb&512?this.Bb&$u?e?this.p=new Xl(9,e,this):this.p=new Wl(8,this):e?this.p=new Xl(11,e,this):this.p=new Wl(10,this):this.Bb&$u?e?this.p=new Xl(13,e,this):this.p=new Wl(12,this):e?this.p=new Xl(15,e,this):this.p=new Wl(14,this):r?(l=r.t,l>1||l==-1?this.bl()?this.Bb&$u?e?this.p=new Za(25,e,this,r):this.p=new rd(24,this,r):e?this.p=new Za(27,e,this,r):this.p=new rd(26,this,r):this.Bb&$u?e?this.p=new Za(29,e,this,r):this.p=new rd(28,this,r):e?this.p=new Za(31,e,this,r):this.p=new rd(30,this,r):this.bl()?this.Bb&$u?e?this.p=new Za(33,e,this,r):this.p=new rd(32,this,r):e?this.p=new Za(35,e,this,r):this.p=new rd(34,this,r):this.Bb&$u?e?this.p=new Za(37,e,this,r):this.p=new rd(36,this,r):e?this.p=new Za(39,e,this,r):this.p=new rd(38,this,r)):this.bl()?this.Bb&$u?e?this.p=new Xl(17,e,this):this.p=new Wl(16,this):e?this.p=new Xl(19,e,this):this.p=new Wl(18,this):this.Bb&$u?e?this.p=new Xl(21,e,this):this.p=new Wl(20,this):e?this.p=new Xl(23,e,this):this.p=new Wl(22,this):this._k()?this.bl()?this.p=new yPn(u(c,29),this,r):this.p=new nJ(u(c,29),this,r):L(c,156)?e==MA?this.p=new Wl(40,this):this.Bb&$u?e?this.p=new kIn(t,h,this,(gx(),f==ye?Jdn:f==so?Gdn:f==Ka?Qdn:f==cg?Wdn:f==Ii?Vdn:f==V2?Ydn:f==Ru?zdn:f==fs?Xdn:MU)):this.p=new NOn(u(c,156),t,h,this):e?this.p=new vIn(t,h,this,(gx(),f==ye?Jdn:f==so?Gdn:f==Ka?Qdn:f==cg?Wdn:f==Ii?Vdn:f==V2?Ydn:f==Ru?zdn:f==fs?Xdn:MU)):this.p=new LOn(u(c,156),t,h,this):this.al()?r?this.Bb&$u?this.bl()?this.p=new EPn(u(c,29),this,r):this.p=new BV(u(c,29),this,r):this.bl()?this.p=new jPn(u(c,29),this,r):this.p=new HN(u(c,29),this,r):this.Bb&$u?this.bl()?this.p=new vSn(u(c,29),this):this.p=new ZX(u(c,29),this):this.bl()?this.p=new mSn(u(c,29),this):this.p=new IN(u(c,29),this):this.bl()?r?this.Bb&$u?this.p=new MPn(u(c,29),this,r):this.p=new RV(u(c,29),this,r):this.Bb&$u?this.p=new kSn(u(c,29),this):this.p=new nV(u(c,29),this):r?this.Bb&$u?this.p=new TPn(u(c,29),this,r):this.p=new KV(u(c,29),this,r):this.Bb&$u?this.p=new ySn(u(c,29),this):this.p=new uT(u(c,29),this)),this.p},o.rk=function(){return(this.Bb&Gs)!=0},o._k=function(){return!1},o.al=function(){return!1},o.sk=function(){return(this.Bb&wh)!=0},o.xk=function(){return a$(this)},o.bl=function(){return!1},o.tk=function(){return(this.Bb&$u)!=0},o.cl=function(e){this.k=e},o.ui=function(e){RD(this,e)},o.Ib=function(){return $S(this)},o.e=!1,o.n=0,w(qn,"EStructuralFeatureImpl",461),b(331,461,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,480:1,54:1,99:1,331:1,158:1,461:1,291:1,119:1,120:1,692:1},fL),o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),!!Ann(this);case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return _n(),!!(this.Bb&Gs);case 11:return _n(),!!(this.Bb&C0);case 12:return _n(),!!(this.Bb&v0);case 13:return this.j;case 14:return T4(this);case 15:return _n(),!!(this.Bb&$u);case 16:return _n(),!!(this.Bb&wh);case 17:return Gw(this);case 18:return _n(),!!(this.Bb&kc);case 19:return t?x$(this):xNn(this)}return zo(this,e-se((An(),tg)),$n((r=u(Un(this,16),29),r||tg),e),t,i)},o.Wh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return Ann(this);case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&pb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&pb(this.q).i==0);case 10:return(this.Bb&Gs)==0;case 11:return(this.Bb&C0)!=0;case 12:return(this.Bb&v0)!=0;case 13:return this.j!=null;case 14:return T4(this)!=null;case 15:return(this.Bb&$u)!=0;case 16:return(this.Bb&wh)!=0;case 17:return!!Gw(this);case 18:return(this.Bb&kc)!=0;case 19:return!!xNn(this)}return Uo(this,e-se((An(),tg)),$n((t=u(Un(this,16),29),t||tg),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:RD(this,Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:Zjn(this,u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return;case 10:s4(this,on(un(t)));return;case 11:l4(this,on(un(t)));return;case 12:f4(this,on(un(t)));return;case 13:dX(this,Ae(t));return;case 15:h4(this,on(un(t)));return;case 16:a4(this,on(un(t)));return;case 18:sx(this,on(un(t)));return}Jo(this,e-se((An(),tg)),$n((i=u(Un(this,16),29),i||tg),e),t)},o.ii=function(){return An(),tg},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,90)&&h0(Zu(u(this.Cb,90)),4),zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:this.b=0,Zw(this,1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return;case 10:s4(this,!0);return;case 11:l4(this,!1);return;case 12:f4(this,!1);return;case 13:this.i=null,kC(this,null);return;case 15:h4(this,!1);return;case 16:a4(this,!1);return;case 18:sx(this,!1);return}Wo(this,e-se((An(),tg)),$n((t=u(Un(this,16),29),t||tg),e))},o.pi=function(){x$(this),Pm(Nr((Lu(),zi),this)),gs(this),this.Bb|=1},o.Jk=function(){return Ann(this)},o.Yk=function(e,t){return this.b=0,this.a=null,yY(this,e,t)},o.Zk=function(e){Zjn(this,e)},o.Ib=function(){var e;return this.Db&64?$S(this):(e=new ls($S(this)),e.a+=" (iD: ",ql(e,(this.Bb&kc)!=0),e.a+=")",e.a)},o.b=0,w(qn,"EAttributeImpl",331),b(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),o.dl=function(e){return e.Dh()==this},o.Ah=function(e){return _x(this,e)},o.Bh=function(e,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=e},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Kb(this);case 4:return this.ik();case 5:return this.F;case 6:return t?jo(this):Am(this);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),this.A}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?_x(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,6,i)}return s=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),s.wk().zk(this,iu(this),t-se(this.ii()),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 6:return Po(this,null,6,i);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),cr(this.A,e,i)}return c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Kb(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Am(this);case 7:return!!this.A&&this.A.i!=0}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:xT(this,Ae(t));return;case 2:wN(this,Ae(t));return;case 5:L4(this,Ae(t));return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A),!this.A&&(this.A=new Cu(fu,this,7)),Bt(this.A,u(t,16));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),Foe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:c4(this,null),Um(this,this.D);return;case 5:L4(this,null);return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.hk=function(){var e;return this.G==-1&&(this.G=(e=jo(this),e?f1(e.vi(),this):-1)),this.G},o.ik=function(){return null},o.jk=function(){return jo(this)},o.el=function(){return this.v},o.kk=function(){return Kb(this)},o.lk=function(){return this.D!=null?this.D:this.B},o.mk=function(){return this.F},o.fk=function(e){return AR(this,e)},o.fl=function(e){this.v=e},o.gl=function(e){kxn(this,e)},o.hl=function(e){this.C=e},o.ui=function(e){xT(this,e)},o.Ib=function(){return UC(this)},o.C=null,o.D=null,o.G=-1,w(qn,"EClassifierImpl",364),b(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,481:1,119:1,120:1,691:1},rG),o.dl=function(e){return Dae(this,e.Dh())},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Kb(this);case 4:return null;case 5:return this.F;case 6:return t?jo(this):Am(this);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),this.A;case 8:return _n(),!!(this.Bb&256);case 9:return _n(),!!(this.Bb&512);case 10:return Hr(this);case 11:return!this.q&&(this.q=new q(Ps,this,11,10)),this.q;case 12:return Jg(this);case 13:return H5(this);case 14:return H5(this),this.r;case 15:return Jg(this),this.k;case 16:return ynn(this);case 17:return $R(this);case 18:return bh(this);case 19:return CS(this);case 20:return Jg(this),this.o;case 21:return!this.s&&(this.s=new q(ku,this,21,17)),this.s;case 22:return Pc(this);case 23:return yR(this)}return zo(this,e-se((An(),Da)),$n((r=u(Un(this,16),29),r||Da),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?_x(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,6,i);case 11:return!this.q&&(this.q=new q(Ps,this,11,10)),Xc(this.q,e,i);case 21:return!this.s&&(this.s=new q(ku,this,21,17)),Xc(this.s,e,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),Da)),t),69),s.wk().zk(this,iu(this),t-se((An(),Da)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 6:return Po(this,null,6,i);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),cr(this.A,e,i);case 11:return!this.q&&(this.q=new q(Ps,this,11,10)),cr(this.q,e,i);case 21:return!this.s&&(this.s=new q(ku,this,21,17)),cr(this.s,e,i);case 22:return cr(Pc(this),e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),Da)),t),69),c.wk().Ak(this,iu(this),t-se((An(),Da)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Kb(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Am(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&Pc(this.u.a).i!=0&&!(this.n&&Ox(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return Jg(this).i!=0;case 13:return H5(this).i!=0;case 14:return H5(this),this.r.i!=0;case 15:return Jg(this),this.k.i!=0;case 16:return ynn(this).i!=0;case 17:return $R(this).i!=0;case 18:return bh(this).i!=0;case 19:return CS(this).i!=0;case 20:return Jg(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&Ox(this.n);case 23:return yR(this).i!=0}return Uo(this,e-se((An(),Da)),$n((t=u(Un(this,16),29),t||Da),e))},o.Zh=function(e){var t;return t=this.i==null||this.q&&this.q.i!=0?null:uy(this,e),t||ttn(this,e)},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:xT(this,Ae(t));return;case 2:wN(this,Ae(t));return;case 5:L4(this,Ae(t));return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A),!this.A&&(this.A=new Cu(fu,this,7)),Bt(this.A,u(t,16));return;case 8:jY(this,on(un(t)));return;case 9:EY(this,on(un(t)));return;case 10:G5(Hr(this)),Bt(Hr(this),u(t,16));return;case 11:!this.q&&(this.q=new q(Ps,this,11,10)),me(this.q),!this.q&&(this.q=new q(Ps,this,11,10)),Bt(this.q,u(t,16));return;case 21:!this.s&&(this.s=new q(ku,this,21,17)),me(this.s),!this.s&&(this.s=new q(ku,this,21,17)),Bt(this.s,u(t,16));return;case 22:me(Pc(this)),Bt(Pc(this),u(t,16));return}Jo(this,e-se((An(),Da)),$n((i=u(Un(this,16),29),i||Da),e),t)},o.ii=function(){return An(),Da},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:c4(this,null),Um(this,this.D);return;case 5:L4(this,null);return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A);return;case 8:jY(this,!1);return;case 9:EY(this,!1);return;case 10:this.u&&G5(this.u);return;case 11:!this.q&&(this.q=new q(Ps,this,11,10)),me(this.q);return;case 21:!this.s&&(this.s=new q(ku,this,21,17)),me(this.s);return;case 22:this.n&&me(this.n);return}Wo(this,e-se((An(),Da)),$n((t=u(Un(this,16),29),t||Da),e))},o.pi=function(){var e,t;if(Jg(this),H5(this),ynn(this),$R(this),bh(this),CS(this),yR(this),Z6(uwe(Zu(this))),this.s)for(e=0,t=this.s.i;e<t;++e)C7(N(this.s,e));if(this.q)for(e=0,t=this.q.i;e<t;++e)C7(N(this.q,e));r1((Lu(),zi),this).xe(),this.Bb|=1},o.Ib=function(){return _Z(this)},o.k=null,o.r=null;var N9,Joe,jU;w(qn,"EClassImpl",90),b(2092,2091,gJn),o.Ei=function(e,t){return LR(this,e,t)},o.Fi=function(e){return LR(this,this.i,e)},o.Gi=function(e,t){xnn(this,e,t)},o.Hi=function(e){aR(this,e)},o.Wk=function(e,t){return Xc(this,e,t)},o.$i=function(e){return YJ(this,e)},o.Xk=function(e,t){return cr(this,e,t)},o.Xi=function(e,t){return XUn(this,e,t)},o.Ii=function(){return new yp(this)},o.Ji=function(){return new T7(this)},o.Ki=function(e){return gk(this,e)},w(Ct,"NotifyingInternalEListImpl",2092),b(632,2092,Qr),o.Hc=function(e){return bGn(this,e)},o.Ij=function(e,t,i,r,c){return X6(this,e,t,i,r,c)},o.Jj=function(e){em(this,e)},o.Fk=function(e){return this},o.Lk=function(){return $n(this.e.Dh(),this.Lj())},o.Kj=function(){return this.Lk()},o.Lj=function(){return At(this.e.Dh(),this.Lk())},o.il=function(){return u(this.Lk().Hk(),29).kk()},o.jl=function(){return br(u(this.Lk(),19)).n},o.jj=function(){return this.e},o.kl=function(){return!0},o.ll=function(){return!1},o.ml=function(){return!1},o.nl=function(){return!1},o.dd=function(e){return f1(this,e)},o.Nj=function(e,t){var i;return i=u(e,54),this.ml()?this.kl()?i.Rh(this.e,this.jl(),this.il(),t):i.Rh(this.e,At(i.Dh(),br(u(this.Lk(),19))),null,t):i.Rh(this.e,-1-this.Lj(),null,t)},o.Oj=function(e,t){var i;return i=u(e,54),this.ml()?this.kl()?i.Th(this.e,this.jl(),this.il(),t):i.Th(this.e,At(i.Dh(),br(u(this.Lk(),19))),null,t):i.Th(this.e,-1-this.Lj(),null,t)},o.al=function(){return!1},o.ol=function(){return!0},o.fk=function(e){return RLn(this.d,e)},o.Pj=function(){return fo(this.e)},o.Qj=function(){return this.i!=0},o.aj=function(e){return wk(this.d,e)},o.Wi=function(e,t){return this.ol()&&this.nl()?e3(this,e,u(t,58)):t},o.pl=function(e){return e.Vh()?ta(this.e,u(e,54)):e},o.Wb=function(e){OCn(this,e)},o.Pc=function(){return LDn(this)},o.Qc=function(e){var t;if(this.nl())for(t=this.i-1;t>=0;--t)N(this,t);return XY(this,e)},o.Gk=function(){me(this)},o.Zi=function(e,t){return H$n(this,e,t)},w(Ct,"EcoreEList",632),b(504,632,Qr,R7),o.Li=function(){return!1},o.Lj=function(){return this.c},o.Mj=function(){return!1},o.ol=function(){return!0},o.Si=function(){return!0},o.Wi=function(e,t){return t},o.Yi=function(){return!1},o.c=0,w(Ct,"EObjectEList",504),b(83,504,Qr,ti),o.Mj=function(){return!0},o.ml=function(){return!1},o.al=function(){return!0},w(Ct,"EObjectContainmentEList",83),b(555,83,Qr,DM),o.Ni=function(){this.b=!0},o.Qj=function(){return this.b},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.b,this.b=!1,rt(this.e,new Bs(this.e,2,this.c,e,!1))):this.b=!1},o.b=!1,w(Ct,"EObjectContainmentEList/Unsettable",555),b(1161,555,Qr,pIn),o.Ti=function(e,t){var i,r;return i=u(m5(this,e,t),89),fo(this.e)&&em(this,new rk(this.a,7,(An(),_oe),Y(t),(r=i.c,L(r,90)?u(r,29):Os),e)),i},o.Uj=function(e,t){return S8e(this,u(e,89),t)},o.Vj=function(e,t){return C8e(this,u(e,89),t)},o.Wj=function(e,t,i){return Oke(this,u(e,89),u(t,89),i)},o.Ij=function(e,t,i,r,c){switch(e){case 3:return X6(this,e,t,i,r,this.i>1);case 5:return X6(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new ml(this.e,e,this.c,t,i,r,!0)}},o.Tj=function(){return!0},o.Qj=function(){return Ox(this)},o.Gk=function(){me(this)},w(qn,"EClassImpl/1",1161),b(1175,1174,Bcn),o.dj=function(e){var t,i,r,c,s,f,h;if(i=e.gj(),i!=8){if(r=s9e(e),r==0)switch(i){case 1:case 9:{h=e.kj(),h!=null&&(t=Zu(u(h,481)),!t.c&&(t.c=new V3),rC(t.c,e.jj())),f=e.ij(),f!=null&&(c=u(f,481),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new V3),ve(t.c,u(e.jj(),29))));break}case 3:{f=e.ij(),f!=null&&(c=u(f,481),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new V3),ve(t.c,u(e.jj(),29))));break}case 5:{if(f=e.ij(),f!=null)for(s=u(f,16).Kc();s.Ob();)c=u(s.Pb(),481),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new V3),ve(t.c,u(e.jj(),29)));break}case 4:{h=e.kj(),h!=null&&(c=u(h,481),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new V3),rC(t.c,e.jj())));break}case 6:{if(h=e.kj(),h!=null)for(s=u(h,16).Kc();s.Ob();)c=u(s.Pb(),481),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new V3),rC(t.c,e.jj()));break}}this.ql(r)}},o.ql=function(e){Uqn(this,e)},o.b=63,w(qn,"ESuperAdapter",1175),b(1176,1175,Bcn,pyn),o.ql=function(e){h0(this,e)},w(qn,"EClassImpl/10",1176),b(1165,710,Qr),o.Ei=function(e,t){return Zx(this,e,t)},o.Fi=function(e){return LBn(this,e)},o.Gi=function(e,t){Ak(this,e,t)},o.Hi=function(e){nk(this,e)},o.$i=function(e){return YJ(this,e)},o.Xi=function(e,t){return d$(this,e,t)},o.Wk=function(e,t){throw T(new Ie)},o.Ii=function(){return new yp(this)},o.Ji=function(){return new T7(this)},o.Ki=function(e){return gk(this,e)},o.Xk=function(e,t){throw T(new Ie)},o.Fk=function(e){return this},o.Qj=function(){return this.i!=0},o.Wb=function(e){throw T(new Ie)},o.Gk=function(){throw T(new Ie)},w(Ct,"EcoreEList/UnmodifiableEList",1165),b(328,1165,Qr,pg),o.Yi=function(){return!1},w(Ct,"EcoreEList/UnmodifiableEList/FastCompare",328),b(1168,328,Qr,dRn),o.dd=function(e){var t,i,r;if(L(e,179)&&(t=u(e,179),i=t.Lj(),i!=-1)){for(r=this.i;i<r;++i)if(x(this.g[i])===x(e))return i}return-1},w(qn,"EClassImpl/1EAllStructuralFeaturesList",1168),b(1162,505,Mh,vvn),o.aj=function(e){return F(jr,pJn,89,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/1EGenericSuperTypeEList",1162),b(633,505,Mh,qA),o.aj=function(e){return F(ku,f2,179,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/1EStructuralFeatureUniqueEList",633),b(755,505,Mh,eG),o.aj=function(e){return F(eg,f2,19,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/1ReferenceList",755),b(1163,505,Mh,myn),o.Mi=function(e,t){o0e(this,u(t,35))},o.aj=function(e){return F(ng,f2,35,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/2",1163),b(1164,505,Mh,kvn),o.aj=function(e){return F(ng,f2,35,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/3",1164),b(1166,328,Qr,_Pn),o.Fc=function(e){return T3e(this,u(e,35))},o.Hi=function(e){Vhe(this,u(e,35))},w(qn,"EClassImpl/4",1166),b(1167,328,Qr,FPn),o.Fc=function(e){return C3e(this,u(e,19))},o.Hi=function(e){Whe(this,u(e,19))},w(qn,"EClassImpl/5",1167),b(1169,505,Mh,yvn),o.aj=function(e){return F(Ps,Hcn,62,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/6",1169),b(1170,505,Mh,jvn),o.aj=function(e){return F(eg,f2,19,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/7",1170),b(2095,2094,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,71:1}),o.Ei=function(e,t){return Len(this,e,t)},o.Fi=function(e){return Len(this,this.Ej(),e)},o.Gi=function(e,t){EHn(this,e,t)},o.Hi=function(e){lHn(this,e)},o.Wk=function(e,t){return n7e(this,e,t)},o.Xk=function(e,t){return S9e(this,e,t)},o.Xi=function(e,t){return OUn(this,e,t)},o.$i=function(e){return this.xj(e)},o.Ii=function(){return new yp(this)},o.pj=function(){return this.sj()},o.Ji=function(){return new T7(this)},o.Ki=function(e){return gk(this,e)},w(Ct,"DelegatingNotifyingInternalEListImpl",2095),b(756,2095,qcn),o.Li=function(){var e;return e=$n(au(this.b),this.Lj()).Hk(),L(e,156)&&!L(e,468)&&(e.kk().i&1)==0},o.Hc=function(e){var t,i,r,c,s,f,h,l;if(this.ol()){if(l=this.Ej(),l>4)if(this.fk(e)){if(this.al()){if(r=u(e,54),i=r.Eh(),h=i==this.b&&(this.ml()?r.yh(r.Fh(),u($n(au(this.b),this.Lj()).Hk(),29).kk())==br(u($n(au(this.b),this.Lj()),19)).n:-1-r.Fh()==this.Lj()),this.nl()&&!h&&!i&&r.Jh()){for(c=0;c<l;++c)if(t=cD(this,this.xj(c)),x(t)===x(e))return!0}return h}else if(this.ml()&&!this.ll()){if(s=u(e,58).Mh(br(u($n(au(this.b),this.Lj()),19))),x(s)===x(this.b))return!0;if(s==null||!u(s,58).Vh())return!1}}else return!1;if(f=this.uj(e),this.nl()&&!f){for(c=0;c<l;++c)if(r=cD(this,this.xj(c)),x(r)===x(e))return!0}return f}else return this.uj(e)},o.Ij=function(e,t,i,r,c){return new ml(this.b,e,this.Lj(),t,i,r,c)},o.Jj=function(e){rt(this.b,e)},o.Fk=function(e){return this},o.Kj=function(){return $n(au(this.b),this.Lj())},o.Lj=function(){return At(au(this.b),$n(au(this.b),this.Lj()))},o.jj=function(){return this.b},o.kl=function(){return!!$n(au(this.b),this.Lj()).Hk().kk()},o.Mj=function(){var e,t;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),(e.Bb&kc)!=0||!!br(u(t,19))):!1},o.ll=function(){var e,t,i,r;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),i=br(e),!!i&&(r=i.t,r>1||r==-1)):!1},o.ml=function(){var e,t,i;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),i=br(e),!!i):!1},o.nl=function(){var e,t;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),(e.Bb&hr)!=0):!1},o.dd=function(e){var t,i,r,c;if(r=this.zj(e),r>=0)return r;if(this.ol()){for(i=0,c=this.Ej();i<c;++i)if(t=cD(this,this.xj(i)),x(t)===x(e))return i}return-1},o.Nj=function(e,t){var i;return i=u(e,54),this.ml()?this.kl()?i.Rh(this.b,br(u($n(au(this.b),this.Lj()),19)).n,u($n(au(this.b),this.Lj()).Hk(),29).kk(),t):i.Rh(this.b,At(i.Dh(),br(u($n(au(this.b),this.Lj()),19))),null,t):i.Rh(this.b,-1-this.Lj(),null,t)},o.Oj=function(e,t){var i;return i=u(e,54),this.ml()?this.kl()?i.Th(this.b,br(u($n(au(this.b),this.Lj()),19)).n,u($n(au(this.b),this.Lj()).Hk(),29).kk(),t):i.Th(this.b,At(i.Dh(),br(u($n(au(this.b),this.Lj()),19))),null,t):i.Th(this.b,-1-this.Lj(),null,t)},o.al=function(){var e,t;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),(e.Bb&kc)!=0):!1},o.ol=function(){return L($n(au(this.b),this.Lj()).Hk(),90)},o.fk=function(e){return $n(au(this.b),this.Lj()).Hk().fk(e)},o.Pj=function(){return fo(this.b)},o.Qj=function(){return!this.Aj()},o.Si=function(){return $n(au(this.b),this.Lj()).Si()},o.Wi=function(e,t){return gy(this,e,t)},o.Wb=function(e){G5(this),Bt(this,u(e,15))},o.Pc=function(){var e;if(this.nl())for(e=this.Ej()-1;e>=0;--e)gy(this,e,this.xj(e));return this.Fj()},o.Qc=function(e){var t;if(this.nl())for(t=this.Ej()-1;t>=0;--t)gy(this,t,this.xj(t));return this.Gj(e)},o.Gk=function(){G5(this)},o.Zi=function(e,t){return vDn(this,e,t)},w(Ct,"DelegatingEcoreEList",756),b(1171,756,qcn,NSn),o.qj=function(e,t){rae(this,e,u(t,29))},o.rj=function(e){zle(this,u(e,29))},o.xj=function(e){var t,i;return t=u(N(Pc(this.a),e),89),i=t.c,L(i,90)?u(i,29):(An(),Os)},o.Cj=function(e){var t,i;return t=u(d0(Pc(this.a),e),89),i=t.c,L(i,90)?u(i,29):(An(),Os)},o.Dj=function(e,t){return e7e(this,e,u(t,29))},o.Li=function(){return!1},o.Ij=function(e,t,i,r,c){return null},o.sj=function(){return new kyn(this)},o.tj=function(){me(Pc(this.a))},o.uj=function(e){return fKn(this,e)},o.vj=function(e){var t,i;for(i=e.Kc();i.Ob();)if(t=i.Pb(),!fKn(this,t))return!1;return!0},o.wj=function(e){var t,i,r;if(L(e,15)&&(r=u(e,15),r.gc()==Pc(this.a).i)){for(t=r.Kc(),i=new ne(this);t.Ob();)if(x(t.Pb())!==x(ue(i)))return!1;return!0}return!1},o.yj=function(){var e,t,i,r,c;for(i=1,t=new ne(Pc(this.a));t.e!=t.i.gc();)e=u(ue(t),89),r=(c=e.c,L(c,90)?u(c,29):(An(),Os)),i=31*i+(r?fb(r):0);return i},o.zj=function(e){var t,i,r,c;for(r=0,i=new ne(Pc(this.a));i.e!=i.i.gc();){if(t=u(ue(i),89),x(e)===x((c=t.c,L(c,90)?u(c,29):(An(),Os))))return r;++r}return-1},o.Aj=function(){return Pc(this.a).i==0},o.Bj=function(){return null},o.Ej=function(){return Pc(this.a).i},o.Fj=function(){var e,t,i,r,c,s;for(s=Pc(this.a).i,c=F(ki,Rn,1,s,5,1),i=0,t=new ne(Pc(this.a));t.e!=t.i.gc();)e=u(ue(t),89),c[i++]=(r=e.c,L(r,90)?u(r,29):(An(),Os));return c},o.Gj=function(e){var t,i,r,c,s,f,h;for(h=Pc(this.a).i,e.length<h&&(c=wk(wo(e).c,h),e=c),e.length>h&&$t(e,h,null),r=0,i=new ne(Pc(this.a));i.e!=i.i.gc();)t=u(ue(i),89),s=(f=t.c,L(f,90)?u(f,29):(An(),Os)),$t(e,r++,s);return e},o.Hj=function(){var e,t,i,r,c;for(c=new Hl,c.a+="[",e=Pc(this.a),t=0,r=Pc(this.a).i;t<r;)Er(c,I6((i=u(N(e,t),89).c,L(i,90)?u(i,29):(An(),Os)))),++t<r&&(c.a+=ur);return c.a+="]",c.a},o.Jj=function(e){},o.Lj=function(){return 10},o.kl=function(){return!0},o.Mj=function(){return!1},o.ll=function(){return!1},o.ml=function(){return!1},o.nl=function(){return!0},o.al=function(){return!1},o.ol=function(){return!0},o.fk=function(e){return L(e,90)},o.Qj=function(){return Spe(this.a)},o.Si=function(){return!0},o.Yi=function(){return!0},w(qn,"EClassImpl/8",1171),b(1172,2062,K4,kyn),o.fd=function(e){return gk(this.a,e)},o.gc=function(){return Pc(this.a.a).i},w(qn,"EClassImpl/8/1",1172),b(1173,505,Mh,Evn),o.aj=function(e){return F(Mf,Rn,142,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/9",1173),b(1160,49,ktn,hjn),w(qn,"EClassImpl/MyHashSet",1160),b(577,364,{110:1,94:1,93:1,142:1,156:1,847:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1},$E),o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Kb(this);case 4:return this.ik();case 5:return this.F;case 6:return t?jo(this):Am(this);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),this.A;case 8:return _n(),!!(this.Bb&256)}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Kb(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Am(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:xT(this,Ae(t));return;case 2:wN(this,Ae(t));return;case 5:L4(this,Ae(t));return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A),!this.A&&(this.A=new Cu(fu,this,7)),Bt(this.A,u(t,16));return;case 8:KC(this,on(un(t)));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),Hoe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:c4(this,null),Um(this,this.D);return;case 5:L4(this,null);return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A);return;case 8:KC(this,!0);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){r1((Lu(),zi),this).xe(),this.Bb|=1},o.ok=function(){var e,t,i;if(!this.c&&(e=xHn(jo(this)),!e.dc()))for(i=e.Kc();i.Ob();)t=Ae(i.Pb()),B5(this,t)&&C5e(this);return this.b},o.ik=function(){var e;if(!this.e){e=null;try{e=Kb(this)}catch(t){if(t=Ot(t),!L(t,103))throw T(t)}this.d=null,e&&e.i&1&&(e==so?this.d=(_n(),pa):e==ye?this.d=Y(0):e==cg?this.d=new G9(0):e==Ii?this.d=0:e==Ka?this.d=Tl(0):e==V2?this.d=o4(0):e==Ru?this.d=lk(0):this.d=mk(0)),this.e=!0}return this.d},o.nk=function(){return(this.Bb&256)!=0},o.rl=function(e){e&&(this.D="org.eclipse.emf.common.util.AbstractEnumerator")},o.gl=function(e){kxn(this,e),this.rl(e)},o.hl=function(e){this.C=e,this.e=!1},o.Ib=function(){var e;return this.Db&64?UC(this):(e=new ls(UC(this)),e.a+=" (serializable: ",ql(e,(this.Bb&256)!=0),e.a+=")",e.a)},o.c=!1,o.d=null,o.e=!1,w(qn,"EDataTypeImpl",577),b(468,577,{110:1,94:1,93:1,142:1,156:1,847:1,685:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,468:1,158:1,119:1,120:1,691:1},ljn),o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Kb(this);case 4:return hY(this);case 5:return this.F;case 6:return t?jo(this):Am(this);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),this.A;case 8:return _n(),!!(this.Bb&256);case 9:return!this.a&&(this.a=new q(Kl,this,9,5)),this.a}return zo(this,e-se((An(),$a)),$n((r=u(Un(this,16),29),r||$a),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?_x(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,6,i);case 9:return!this.a&&(this.a=new q(Kl,this,9,5)),Xc(this.a,e,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),$a)),t),69),s.wk().zk(this,iu(this),t-se((An(),$a)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 6:return Po(this,null,6,i);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),cr(this.A,e,i);case 9:return!this.a&&(this.a=new q(Kl,this,9,5)),cr(this.a,e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),$a)),t),69),c.wk().Ak(this,iu(this),t-se((An(),$a)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Kb(this);case 4:return!!hY(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Am(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return Uo(this,e-se((An(),$a)),$n((t=u(Un(this,16),29),t||$a),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:xT(this,Ae(t));return;case 2:wN(this,Ae(t));return;case 5:L4(this,Ae(t));return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A),!this.A&&(this.A=new Cu(fu,this,7)),Bt(this.A,u(t,16));return;case 8:KC(this,on(un(t)));return;case 9:!this.a&&(this.a=new q(Kl,this,9,5)),me(this.a),!this.a&&(this.a=new q(Kl,this,9,5)),Bt(this.a,u(t,16));return}Jo(this,e-se((An(),$a)),$n((i=u(Un(this,16),29),i||$a),e),t)},o.ii=function(){return An(),$a},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:c4(this,null),Um(this,this.D);return;case 5:L4(this,null);return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A);return;case 8:KC(this,!0);return;case 9:!this.a&&(this.a=new q(Kl,this,9,5)),me(this.a);return}Wo(this,e-se((An(),$a)),$n((t=u(Un(this,16),29),t||$a),e))},o.pi=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e<t;++e)C7(N(this.a,e));r1((Lu(),zi),this).xe(),this.Bb|=1},o.ik=function(){return hY(this)},o.fk=function(e){return e!=null},o.rl=function(e){},w(qn,"EEnumImpl",468),b(582,448,{110:1,94:1,93:1,2039:1,694:1,155:1,197:1,58:1,114:1,54:1,99:1,582:1,158:1,119:1,120:1},xyn),o.xe=function(){return this.zb},o.Ah=function(e){return cFn(this,e)},o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Y(this.d);case 3:return this.b?this.b:this.a;case 4:return c=this.c,c??this.zb;case 5:return this.Db>>16==5?u(this.Cb,685):null}return zo(this,e-se((An(),P1)),$n((r=u(Un(this,16),29),r||P1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 5:return this.Cb&&(i=(c=this.Db>>16,c>=0?cFn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,5,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),P1)),t),69),s.wk().zk(this,iu(this),t-se((An(),P1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 5:return Po(this,null,5,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),P1)),t),69),c.wk().Ak(this,iu(this),t-se((An(),P1)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&u(this.Cb,685))}return Uo(this,e-se((An(),P1)),$n((t=u(Un(this,16),29),t||P1),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:zc(this,Ae(t));return;case 2:v$(this,u(t,17).a);return;case 3:iHn(this,u(t,2039));return;case 4:y$(this,Ae(t));return}Jo(this,e-se((An(),P1)),$n((i=u(Un(this,16),29),i||P1),e),t)},o.ii=function(){return An(),P1},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:v$(this,0);return;case 3:iHn(this,null);return;case 4:y$(this,null);return}Wo(this,e-se((An(),P1)),$n((t=u(Un(this,16),29),t||P1),e))},o.Ib=function(){var e;return e=this.c,e??this.zb},o.b=null,o.c=null,o.d=0,w(qn,"EEnumLiteralImpl",582);var NDe=Dt(qn,"EFactoryImpl/InternalEDateTimeFormat");b(498,1,{2114:1},X9),w(qn,"EFactoryImpl/1ClientInternalEDateTimeFormat",498),b(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},Jd),o.Ch=function(e,t,i){var r;return i=Po(this,e,t,i),this.e&&L(e,179)&&(r=TS(this,this.e),r!=this.c&&(i=N4(this,r,i))),i},o.Lh=function(e,t,i){var r;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new ti(jr,this,1)),this.d;case 2:return t?KS(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?Nx(this):this.a}return zo(this,e-se((An(),kw)),$n((r=u(Un(this,16),29),r||kw),e),t,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return JRn(this,null,i);case 1:return!this.d&&(this.d=new ti(jr,this,1)),cr(this.d,e,i);case 3:return QRn(this,null,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),kw)),t),69),c.wk().Ak(this,iu(this),t-se((An(),kw)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return Uo(this,e-se((An(),kw)),$n((t=u(Un(this,16),29),t||kw),e))},o.bi=function(e,t){var i;switch(e){case 0:MFn(this,u(t,89));return;case 1:!this.d&&(this.d=new ti(jr,this,1)),me(this.d),!this.d&&(this.d=new ti(jr,this,1)),Bt(this.d,u(t,16));return;case 3:HZ(this,u(t,89));return;case 4:onn(this,u(t,850));return;case 5:Bm(this,u(t,142));return}Jo(this,e-se((An(),kw)),$n((i=u(Un(this,16),29),i||kw),e),t)},o.ii=function(){return An(),kw},o.ki=function(e){var t;switch(e){case 0:MFn(this,null);return;case 1:!this.d&&(this.d=new ti(jr,this,1)),me(this.d);return;case 3:HZ(this,null);return;case 4:onn(this,null);return;case 5:Bm(this,null);return}Wo(this,e-se((An(),kw)),$n((t=u(Un(this,16),29),t||kw),e))},o.Ib=function(){var e;return e=new mo(Hs(this)),e.a+=" (expression: ",_R(this,e),e.a+=")",e.a};var Udn;w(qn,"EGenericTypeImpl",248),b(2067,2062,zP),o.Gi=function(e,t){OSn(this,e,t)},o.Wk=function(e,t){return OSn(this,this.gc(),e),t},o.$i=function(e){return Zo(this.pj(),e)},o.Ii=function(){return this.Ji()},o.pj=function(){return new Myn(this)},o.Ji=function(){return this.Ki(0)},o.Ki=function(e){return this.pj().fd(e)},o.Xk=function(e,t){return i0(this,e,!0),t},o.Ti=function(e,t){var i,r;return r=Ux(this,t),i=this.fd(e),i.Rb(r),r},o.Ui=function(e,t){var i;i0(this,t,!0),i=this.fd(e),i.Rb(t)},w(Ct,"AbstractSequentialInternalEList",2067),b(495,2067,zP,M7),o.$i=function(e){return Zo(this.pj(),e)},o.Ii=function(){return this.b==null?(Gl(),Gl(),aE):this.sl()},o.pj=function(){return new WTn(this.a,this.b)},o.Ji=function(){return this.b==null?(Gl(),Gl(),aE):this.sl()},o.Ki=function(e){var t,i;if(this.b==null){if(e<0||e>1)throw T(new Or(w8+e+", size=0"));return Gl(),Gl(),aE}for(i=this.sl(),t=0;t<e;++t)IC(i);return i},o.dc=function(){var e,t,i,r,c,s;if(this.b!=null){for(i=0;i<this.b.length;++i)if(e=this.b[i],!this.vl()||this.a.Xh(e)){if(s=this.a.Nh(e,!1),dr(),u(e,69).xk()){for(t=u(s,160),r=0,c=t.gc();r<c;++r)if(rOn(t.Tl(r))&&t.Ul(r)!=null)return!1}else if(e.Jk()){if(!u(s,16).dc())return!1}else if(s!=null)return!1}}return!0},o.Kc=function(){return AQ(this)},o.fd=function(e){var t,i;if(this.b==null){if(e!=0)throw T(new Or(w8+e+", size=0"));return Gl(),Gl(),aE}for(i=this.ul()?this.tl():this.sl(),t=0;t<e;++t)IC(i);return i},o.Ti=function(e,t){throw T(new Ie)},o.Ui=function(e,t){throw T(new Ie)},o.sl=function(){return new FM(this.a,this.b)},o.tl=function(){return new YX(this.a,this.b)},o.ul=function(){return!0},o.gc=function(){var e,t,i,r,c,s,f;if(c=0,this.b!=null){for(i=0;i<this.b.length;++i)if(e=this.b[i],!this.vl()||this.a.Xh(e))if(f=this.a.Nh(e,!1),dr(),u(e,69).xk())for(t=u(f,160),r=0,s=t.gc();r<s;++r)rOn(t.Tl(r))&&t.Ul(r)!=null&&++c;else e.Jk()?c+=u(f,16).gc():f!=null&&++c}return c},o.vl=function(){return!0};var EU;w(Ct,"EContentsEList",495),b(1177,495,zP,bSn),o.sl=function(){return new gSn(this.a,this.b)},o.tl=function(){return new wSn(this.a,this.b)},o.vl=function(){return!1},w(qn,"ENamedElementImpl/1",1177),b(287,1,XP,FM),o.Nb=function(e){_i(this,e)},o.Rb=function(e){throw T(new Ie)},o.wl=function(e){if(this.g!=0||this.e)throw T(new Ar("Iterator already in use or already filtered"));this.e=e},o.Ob=function(){var e,t,i,r,c,s;switch(this.g){case 3:case 2:return!0;case 1:return!1;case-3:this.p?this.p.Pb():++this.n;default:if(!this.k||(this.p?!p_n(this,this.p):!oHn(this))){for(;this.d<this.c.length;)if(t=this.c[this.d++],(!this.e||t.pk()!=_v||t.Lj()!=0)&&(!this.vl()||this.b.Xh(t))){if(s=this.b.Nh(t,this.ul()),this.f=(dr(),u(t,69).xk()),this.f||t.Jk()){if(this.ul()?(r=u(s,15),this.k=r):(r=u(s,71),this.k=this.j=r),L(this.k,59)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.Ji():this.k.ed(),this.p?p_n(this,this.p):oHn(this))return c=this.p?this.p.Pb():this.j?this.j.$i(this.n++):this.k.Xb(this.n++),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=3,!0}else if(s!=null)return this.k=null,this.p=null,i=s,this.i=i,this.g=2,!0}return this.k=null,this.p=null,this.f=!1,this.g=1,!1}else return c=this.p?this.p.Pb():this.j?this.j.$i(this.n++):this.k.Xb(this.n++),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=3,!0}},o.Sb=function(){var e,t,i,r,c,s;switch(this.g){case-3:case-2:return!0;case-1:return!1;case 3:this.p?this.p.Ub():--this.n;default:if(!this.k||(this.p?!m_n(this,this.p):!O_n(this))){for(;this.d>0;)if(t=this.c[--this.d],(!this.e||t.pk()!=_v||t.Lj()!=0)&&(!this.vl()||this.b.Xh(t))){if(s=this.b.Nh(t,this.ul()),this.f=(dr(),u(t,69).xk()),this.f||t.Jk()){if(this.ul()?(r=u(s,15),this.k=r):(r=u(s,71),this.k=this.j=r),L(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?m_n(this,this.p):O_n(this))return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=-3,!0}else if(s!=null)return this.k=null,this.p=null,i=s,this.i=i,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=-3,!0}},o.Pb=function(){return IC(this)},o.Tb=function(){return this.a},o.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw T(new nc)},o.Vb=function(){return this.a-1},o.Qb=function(){throw T(new Ie)},o.ul=function(){return!1},o.Wb=function(e){throw T(new Ie)},o.vl=function(){return!0},o.a=0,o.d=0,o.f=!1,o.g=0,o.n=0,o.o=0;var aE;w(Ct,"EContentsEList/FeatureIteratorImpl",287),b(711,287,XP,YX),o.ul=function(){return!0},w(Ct,"EContentsEList/ResolvingFeatureIteratorImpl",711),b(1178,711,XP,wSn),o.vl=function(){return!1},w(qn,"ENamedElementImpl/1/1",1178),b(1179,287,XP,gSn),o.vl=function(){return!1},w(qn,"ENamedElementImpl/1/2",1179),b(38,152,Vy,Vw,UD,Mi,c$,ml,Bs,lQ,WAn,aQ,JAn,IJ,QAn,wQ,YAn,OJ,ZAn,dQ,nLn,F6,rk,TD,bQ,eLn,AJ,tLn),o.Kj=function(){return VJ(this)},o.Rj=function(){var e;return e=VJ(this),e?e.ik():null},o.hj=function(e){return this.b==-1&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,e)},o.jj=function(){return this.c},o.Sj=function(){var e;return e=VJ(this),e?e.tk():!1},o.b=-1,w(qn,"ENotificationImpl",38),b(411,291,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,480:1,54:1,99:1,158:1,411:1,291:1,119:1,120:1},hL),o.Ah=function(e){return sFn(this,e)},o.Lh=function(e,t,i){var r,c,s;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),s=this.t,s>1||s==-1;case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,29):null;case 11:return!this.d&&(this.d=new Cu(fu,this,11)),this.d;case 12:return!this.c&&(this.c=new q(vw,this,12,10)),this.c;case 13:return!this.a&&(this.a=new I7(this,this)),this.a;case 14:return no(this)}return zo(this,e-se((An(),I1)),$n((r=u(Un(this,16),29),r||I1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?sFn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,10,i);case 12:return!this.c&&(this.c=new q(vw,this,12,10)),Xc(this.c,e,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),I1)),t),69),s.wk().zk(this,iu(this),t-se((An(),I1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hD(this,i);case 10:return Po(this,null,10,i);case 11:return!this.d&&(this.d=new Cu(fu,this,11)),cr(this.d,e,i);case 12:return!this.c&&(this.c=new q(vw,this,12,10)),cr(this.c,e,i);case 14:return cr(no(this),e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),I1)),t),69),c.wk().Ak(this,iu(this),t-se((An(),I1)),e,i)},o.Wh=function(e){var t,i,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&pb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&pb(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&no(this.a.a).i!=0&&!(this.b&&Ax(this.b));case 14:return!!this.b&&Ax(this.b)}return Uo(this,e-se((An(),I1)),$n((t=u(Un(this,16),29),t||I1),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:zc(this,Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:Zw(this,u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return;case 11:!this.d&&(this.d=new Cu(fu,this,11)),me(this.d),!this.d&&(this.d=new Cu(fu,this,11)),Bt(this.d,u(t,16));return;case 12:!this.c&&(this.c=new q(vw,this,12,10)),me(this.c),!this.c&&(this.c=new q(vw,this,12,10)),Bt(this.c,u(t,16));return;case 13:!this.a&&(this.a=new I7(this,this)),G5(this.a),!this.a&&(this.a=new I7(this,this)),Bt(this.a,u(t,16));return;case 14:me(no(this)),Bt(no(this),u(t,16));return}Jo(this,e-se((An(),I1)),$n((i=u(Un(this,16),29),i||I1),e),t)},o.ii=function(){return An(),I1},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:Zw(this,1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return;case 11:!this.d&&(this.d=new Cu(fu,this,11)),me(this.d);return;case 12:!this.c&&(this.c=new q(vw,this,12,10)),me(this.c);return;case 13:this.a&&G5(this.a);return;case 14:this.b&&me(this.b);return}Wo(this,e-se((An(),I1)),$n((t=u(Un(this,16),29),t||I1),e))},o.pi=function(){var e,t;if(this.c)for(e=0,t=this.c.i;e<t;++e)C7(N(this.c,e));gs(this),this.Bb|=1},w(qn,"EOperationImpl",411),b(513,756,qcn,I7),o.qj=function(e,t){uae(this,e,u(t,142))},o.rj=function(e){Xle(this,u(e,142))},o.xj=function(e){var t,i;return t=u(N(no(this.a),e),89),i=t.c,i||(An(),Zf)},o.Cj=function(e){var t,i;return t=u(d0(no(this.a),e),89),i=t.c,i||(An(),Zf)},o.Dj=function(e,t){return V8e(this,e,u(t,142))},o.Li=function(){return!1},o.Ij=function(e,t,i,r,c){return null},o.sj=function(){return new yyn(this)},o.tj=function(){me(no(this.a))},o.uj=function(e){return dKn(this,e)},o.vj=function(e){var t,i;for(i=e.Kc();i.Ob();)if(t=i.Pb(),!dKn(this,t))return!1;return!0},o.wj=function(e){var t,i,r;if(L(e,15)&&(r=u(e,15),r.gc()==no(this.a).i)){for(t=r.Kc(),i=new ne(this);t.Ob();)if(x(t.Pb())!==x(ue(i)))return!1;return!0}return!1},o.yj=function(){var e,t,i,r,c;for(i=1,t=new ne(no(this.a));t.e!=t.i.gc();)e=u(ue(t),89),r=(c=e.c,c||(An(),Zf)),i=31*i+(r?mt(r):0);return i},o.zj=function(e){var t,i,r,c;for(r=0,i=new ne(no(this.a));i.e!=i.i.gc();){if(t=u(ue(i),89),x(e)===x((c=t.c,c||(An(),Zf))))return r;++r}return-1},o.Aj=function(){return no(this.a).i==0},o.Bj=function(){return null},o.Ej=function(){return no(this.a).i},o.Fj=function(){var e,t,i,r,c,s;for(s=no(this.a).i,c=F(ki,Rn,1,s,5,1),i=0,t=new ne(no(this.a));t.e!=t.i.gc();)e=u(ue(t),89),c[i++]=(r=e.c,r||(An(),Zf));return c},o.Gj=function(e){var t,i,r,c,s,f,h;for(h=no(this.a).i,e.length<h&&(c=wk(wo(e).c,h),e=c),e.length>h&&$t(e,h,null),r=0,i=new ne(no(this.a));i.e!=i.i.gc();)t=u(ue(i),89),s=(f=t.c,f||(An(),Zf)),$t(e,r++,s);return e},o.Hj=function(){var e,t,i,r,c;for(c=new Hl,c.a+="[",e=no(this.a),t=0,r=no(this.a).i;t<r;)Er(c,I6((i=u(N(e,t),89).c,i||(An(),Zf)))),++t<r&&(c.a+=ur);return c.a+="]",c.a},o.Jj=function(e){},o.Lj=function(){return 13},o.kl=function(){return!0},o.Mj=function(){return!1},o.ll=function(){return!1},o.ml=function(){return!1},o.nl=function(){return!0},o.al=function(){return!1},o.ol=function(){return!0},o.fk=function(e){return L(e,142)},o.Qj=function(){return Ppe(this.a)},o.Si=function(){return!0},o.Yi=function(){return!0},w(qn,"EOperationImpl/1",513),b(1376,2062,K4,yyn),o.fd=function(e){return gk(this.a,e)},o.gc=function(){return no(this.a.a).i},w(qn,"EOperationImpl/1/1",1376),b(1377,555,Qr,mIn),o.Ti=function(e,t){var i,r;return i=u(m5(this,e,t),89),fo(this.e)&&em(this,new rk(this.a,7,(An(),Goe),Y(t),(r=i.c,r||Zf),e)),i},o.Uj=function(e,t){return h5e(this,u(e,89),t)},o.Vj=function(e,t){return f5e(this,u(e,89),t)},o.Wj=function(e,t,i){return o9e(this,u(e,89),u(t,89),i)},o.Ij=function(e,t,i,r,c){switch(e){case 3:return X6(this,e,t,i,r,this.i>1);case 5:return X6(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new ml(this.e,e,this.c,t,i,r,!0)}},o.Tj=function(){return!0},o.Qj=function(){return Ax(this)},o.Gk=function(){me(this)},w(qn,"EOperationImpl/2",1377),b(507,1,{2037:1,507:1},LTn),w(qn,"EPackageImpl/1",507),b(14,83,Qr,q),o.il=function(){return this.d},o.jl=function(){return this.b},o.ml=function(){return!0},o.b=0,w(Ct,"EObjectContainmentWithInverseEList",14),b(365,14,Qr,jp),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectContainmentWithInverseEList/Resolving",365),b(307,365,Qr,Hw),o.Ni=function(){this.a.tb=null},w(qn,"EPackageImpl/2",307),b(1278,1,{},qse),w(qn,"EPackageImpl/3",1278),b(733,45,n2,nz),o._b=function(e){return Si(e)?SD(this,e):!!wr(this.f,e)},w(qn,"EPackageRegistryImpl",733),b(518,291,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,480:1,54:1,99:1,158:1,518:1,291:1,119:1,120:1},lL),o.Ah=function(e){return fFn(this,e)},o.Lh=function(e,t,i){var r,c,s;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),s=this.t,s>1||s==-1;case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,62):null}return zo(this,e-se((An(),ig)),$n((r=u(Un(this,16),29),r||ig),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?fFn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,10,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),ig)),t),69),s.wk().zk(this,iu(this),t-se((An(),ig)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hD(this,i);case 10:return Po(this,null,10,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),ig)),t),69),c.wk().Ak(this,iu(this),t-se((An(),ig)),e,i)},o.Wh=function(e){var t,i,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&pb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&pb(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,62))}return Uo(this,e-se((An(),ig)),$n((t=u(Un(this,16),29),t||ig),e))},o.ii=function(){return An(),ig},w(qn,"EParameterImpl",518),b(102,461,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,480:1,54:1,99:1,158:1,102:1,461:1,291:1,119:1,120:1,692:1},iV),o.Lh=function(e,t,i){var r,c,s,f;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),f=this.t,f>1||f==-1;case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return _n(),!!(this.Bb&Gs);case 11:return _n(),!!(this.Bb&C0);case 12:return _n(),!!(this.Bb&v0);case 13:return this.j;case 14:return T4(this);case 15:return _n(),!!(this.Bb&$u);case 16:return _n(),!!(this.Bb&wh);case 17:return Gw(this);case 18:return _n(),!!(this.Bb&kc);case 19:return _n(),s=br(this),!!(s&&s.Bb&kc);case 20:return _n(),!!(this.Bb&hr);case 21:return t?br(this):this.b;case 22:return t?nY(this):CNn(this);case 23:return!this.a&&(this.a=new Eg(ng,this,23)),this.a}return zo(this,e-se((An(),U2)),$n((r=u(Un(this,16),29),r||U2),e),t,i)},o.Wh=function(e){var t,i,r,c;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return c=this.t,c>1||c==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&pb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&pb(this.q).i==0);case 10:return(this.Bb&Gs)==0;case 11:return(this.Bb&C0)!=0;case 12:return(this.Bb&v0)!=0;case 13:return this.j!=null;case 14:return T4(this)!=null;case 15:return(this.Bb&$u)!=0;case 16:return(this.Bb&wh)!=0;case 17:return!!Gw(this);case 18:return(this.Bb&kc)!=0;case 19:return r=br(this),!!r&&(r.Bb&kc)!=0;case 20:return(this.Bb&hr)==0;case 21:return!!this.b;case 22:return!!CNn(this);case 23:return!!this.a&&this.a.i!=0}return Uo(this,e-se((An(),U2)),$n((t=u(Un(this,16),29),t||U2),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:RD(this,Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:Zw(this,u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return;case 10:s4(this,on(un(t)));return;case 11:l4(this,on(un(t)));return;case 12:f4(this,on(un(t)));return;case 13:dX(this,Ae(t));return;case 15:h4(this,on(un(t)));return;case 16:a4(this,on(un(t)));return;case 18:S2e(this,on(un(t)));return;case 20:LY(this,on(un(t)));return;case 21:OQ(this,u(t,19));return;case 23:!this.a&&(this.a=new Eg(ng,this,23)),me(this.a),!this.a&&(this.a=new Eg(ng,this,23)),Bt(this.a,u(t,16));return}Jo(this,e-se((An(),U2)),$n((i=u(Un(this,16),29),i||U2),e),t)},o.ii=function(){return An(),U2},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,90)&&h0(Zu(u(this.Cb,90)),4),zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:Zw(this,1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return;case 10:s4(this,!0);return;case 11:l4(this,!1);return;case 12:f4(this,!1);return;case 13:this.i=null,kC(this,null);return;case 15:h4(this,!1);return;case 16:a4(this,!1);return;case 18:AY(this,!1),L(this.Cb,90)&&h0(Zu(u(this.Cb,90)),2);return;case 20:LY(this,!0);return;case 21:OQ(this,null);return;case 23:!this.a&&(this.a=new Eg(ng,this,23)),me(this.a);return}Wo(this,e-se((An(),U2)),$n((t=u(Un(this,16),29),t||U2),e))},o.pi=function(){nY(this),Pm(Nr((Lu(),zi),this)),gs(this),this.Bb|=1},o.uk=function(){return br(this)},o._k=function(){var e;return e=br(this),!!e&&(e.Bb&kc)!=0},o.al=function(){return(this.Bb&kc)!=0},o.bl=function(){return(this.Bb&hr)!=0},o.Yk=function(e,t){return this.c=null,yY(this,e,t)},o.Ib=function(){var e;return this.Db&64?$S(this):(e=new ls($S(this)),e.a+=" (containment: ",ql(e,(this.Bb&kc)!=0),e.a+=", resolveProxies: ",ql(e,(this.Bb&hr)!=0),e.a+=")",e.a)},w(qn,"EReferenceImpl",102),b(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},Mvn),o.Fb=function(e){return this===e},o.ld=function(){return this.b},o.md=function(){return this.c},o.Hb=function(){return fb(this)},o.Di=function(e){Lwe(this,Ae(e))},o.nd=function(e){return pwe(this,Ae(e))},o.Lh=function(e,t,i){var r;switch(e){case 0:return this.b;case 1:return this.c}return zo(this,e-se((An(),ar)),$n((r=u(Un(this,16),29),r||ar),e),t,i)},o.Wh=function(e){var t;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return Uo(this,e-se((An(),ar)),$n((t=u(Un(this,16),29),t||ar),e))},o.bi=function(e,t){var i;switch(e){case 0:Nwe(this,Ae(t));return;case 1:SQ(this,Ae(t));return}Jo(this,e-se((An(),ar)),$n((i=u(Un(this,16),29),i||ar),e),t)},o.ii=function(){return An(),ar},o.ki=function(e){var t;switch(e){case 0:CQ(this,null);return;case 1:SQ(this,null);return}Wo(this,e-se((An(),ar)),$n((t=u(Un(this,16),29),t||ar),e))},o.Bi=function(){var e;return this.a==-1&&(e=this.b,this.a=e==null?0:t1(e)),this.a},o.Ci=function(e){this.a=e},o.Ib=function(){var e;return this.Db&64?Hs(this):(e=new ls(Hs(this)),e.a+=" (key: ",Er(e,this.b),e.a+=", value: ",Er(e,this.c),e.a+=")",e.a)},o.a=-1,o.b=null,o.c=null;var pc=w(qn,"EStringToStringMapEntryImpl",561),Qoe=Dt(Ct,"FeatureMap/Entry/Internal");b(576,1,VP),o.xl=function(e){return this.yl(u(e,54))},o.yl=function(e){return this.xl(e)},o.Fb=function(e){var t,i;return this===e?!0:L(e,76)?(t=u(e,76),t.Lk()==this.c?(i=this.md(),i==null?t.md()==null:ct(i,t.md())):!1):!1},o.Lk=function(){return this.c},o.Hb=function(){var e;return e=this.md(),mt(this.c)^(e==null?0:mt(e))},o.Ib=function(){var e,t;return e=this.c,t=jo(e.qk()).yi(),e.xe(),(t!=null&&t.length!=0?t+":"+e.xe():e.xe())+"="+this.md()},w(qn,"EStructuralFeatureImpl/BasicFeatureMapEntry",576),b(791,576,VP,aV),o.yl=function(e){return new aV(this.c,e)},o.md=function(){return this.a},o.zl=function(e,t,i){return gve(this,e,this.a,t,i)},o.Al=function(e,t,i){return pve(this,e,this.a,t,i)},w(qn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791),b(1350,1,{},NTn),o.yk=function(e,t,i,r,c){var s;return s=u($m(e,this.b),220),s.Yl(this.a).Fk(r)},o.zk=function(e,t,i,r,c){var s;return s=u($m(e,this.b),220),s.Pl(this.a,r,c)},o.Ak=function(e,t,i,r,c){var s;return s=u($m(e,this.b),220),s.Ql(this.a,r,c)},o.Bk=function(e,t,i){var r;return r=u($m(e,this.b),220),r.Yl(this.a).Qj()},o.Ck=function(e,t,i,r){var c;c=u($m(e,this.b),220),c.Yl(this.a).Wb(r)},o.Dk=function(e,t,i){return u($m(e,this.b),220).Yl(this.a)},o.Ek=function(e,t,i){var r;r=u($m(e,this.b),220),r.Yl(this.a).Gk()},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350),b(91,1,{},Xl,Za,Wl,rd),o.yk=function(e,t,i,r,c){var s;if(s=t.li(i),s==null&&t.mi(i,s=XS(this,e)),!c)switch(this.e){case 50:case 41:return u(s,597).bk();case 40:return u(s,220).Vl()}return s},o.zk=function(e,t,i,r,c){var s,f;return f=t.li(i),f==null&&t.mi(i,f=XS(this,e)),s=u(f,71).Wk(r,c),s},o.Ak=function(e,t,i,r,c){var s;return s=t.li(i),s!=null&&(c=u(s,71).Xk(r,c)),c},o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null&&u(r,79).Qj()},o.Ck=function(e,t,i,r){var c;c=u(t.li(i),79),!c&&t.mi(i,c=XS(this,e)),c.Wb(r)},o.Dk=function(e,t,i){var r,c;return c=t.li(i),c==null&&t.mi(i,c=XS(this,e)),L(c,79)?u(c,79):(r=u(t.li(i),15),new jyn(r))},o.Ek=function(e,t,i){var r;r=u(t.li(i),79),!r&&t.mi(i,r=XS(this,e)),r.Gk()},o.b=0,o.e=0,w(qn,"EStructuralFeatureImpl/InternalSettingDelegateMany",91),b(512,1,{}),o.zk=function(e,t,i,r,c){throw T(new Ie)},o.Ak=function(e,t,i,r,c){throw T(new Ie)},o.Dk=function(e,t,i){return new AOn(this,e,t,i)};var rl;w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512),b(1367,1,CF,AOn),o.Fk=function(e){return this.a.yk(this.c,this.d,this.b,e,!0)},o.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},o.Wb=function(e){this.a.Ck(this.c,this.d,this.b,e)},o.Gk=function(){this.a.Ek(this.c,this.d,this.b)},o.b=0,w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367),b(784,512,{},nJ),o.yk=function(e,t,i,r,c){return SR(e,e.Ph(),e.Fh())==this.b?this.bl()&&r?dR(e):e.Ph():null},o.zk=function(e,t,i,r,c){var s,f;return e.Ph()&&(c=(s=e.Fh(),s>=0?e.Ah(c):e.Ph().Th(e,-1-s,null,c))),f=At(e.Dh(),this.e),e.Ch(r,f,c)},o.Ak=function(e,t,i,r,c){var s;return s=At(e.Dh(),this.e),e.Ch(null,s,c)},o.Bk=function(e,t,i){var r;return r=At(e.Dh(),this.e),!!e.Ph()&&e.Fh()==r},o.Ck=function(e,t,i,r){var c,s,f,h,l;if(r!=null&&!AR(this.a,r))throw T(new tm(WP+(L(r,58)?_Z(u(r,58).Dh()):oQ(wo(r)))+JP+this.a+"'"));if(c=e.Ph(),f=At(e.Dh(),this.e),x(r)!==x(c)||e.Fh()!=f&&r!=null){if(p4(e,u(r,58)))throw T(new Gn(d8+e.Ib()));l=null,c&&(l=(s=e.Fh(),s>=0?e.Ah(l):e.Ph().Th(e,-1-s,null,l))),h=u(r,54),h&&(l=h.Rh(e,At(h.Dh(),this.b),null,l)),l=e.Ch(h,f,l),l&&l.oj()}else e.vh()&&e.wh()&&rt(e,new Mi(e,1,f,r,r))},o.Ek=function(e,t,i){var r,c,s,f;r=e.Ph(),r?(f=(c=e.Fh(),c>=0?e.Ah(null):e.Ph().Th(e,-1-c,null,null)),s=At(e.Dh(),this.e),f=e.Ch(null,s,f),f&&f.oj()):e.vh()&&e.wh()&&rt(e,new F6(e,1,this.e,null,null))},o.bl=function(){return!1},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784),b(1351,784,{},yPn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351),b(574,512,{}),o.yk=function(e,t,i,r,c){var s;return s=t.li(i),s==null?this.b:x(s)===x(rl)?null:s},o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null&&(x(r)===x(rl)||!ct(r,this.b))},o.Ck=function(e,t,i,r){var c,s;e.vh()&&e.wh()?(c=(s=t.li(i),s==null?this.b:x(s)===x(rl)?null:s),r==null?this.c!=null?(t.mi(i,null),r=this.b):this.b!=null?t.mi(i,rl):t.mi(i,null):(this.Bl(r),t.mi(i,r)),rt(e,this.d.Cl(e,1,this.e,c,r))):r==null?this.c!=null?t.mi(i,null):this.b!=null?t.mi(i,rl):t.mi(i,null):(this.Bl(r),t.mi(i,r))},o.Ek=function(e,t,i){var r,c;e.vh()&&e.wh()?(r=(c=t.li(i),c==null?this.b:x(c)===x(rl)?null:c),t.ni(i),rt(e,this.d.Cl(e,1,this.e,r,this.b))):t.ni(i)},o.Bl=function(e){throw T(new Nyn)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574),b(h2,1,{},Tvn),o.Cl=function(e,t,i,r,c){return new F6(e,t,i,r,c)},o.Dl=function(e,t,i,r,c,s){return new TD(e,t,i,r,c,s)};var Gdn,zdn,Xdn,Vdn,Wdn,Jdn,Qdn,MU,Ydn;w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",h2),b(1368,h2,{},Cvn),o.Cl=function(e,t,i,r,c){return new AJ(e,t,i,on(un(r)),on(un(c)))},o.Dl=function(e,t,i,r,c,s){return new tLn(e,t,i,on(un(r)),on(un(c)),s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368),b(1369,h2,{},Svn),o.Cl=function(e,t,i,r,c){return new lQ(e,t,i,u(r,222).a,u(c,222).a)},o.Dl=function(e,t,i,r,c,s){return new WAn(e,t,i,u(r,222).a,u(c,222).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369),b(1370,h2,{},Pvn),o.Cl=function(e,t,i,r,c){return new aQ(e,t,i,u(r,180).a,u(c,180).a)},o.Dl=function(e,t,i,r,c,s){return new JAn(e,t,i,u(r,180).a,u(c,180).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370),b(1371,h2,{},Ivn),o.Cl=function(e,t,i,r,c){return new IJ(e,t,i,$(B(r)),$(B(c)))},o.Dl=function(e,t,i,r,c,s){return new QAn(e,t,i,$(B(r)),$(B(c)),s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371),b(1372,h2,{},Ovn),o.Cl=function(e,t,i,r,c){return new wQ(e,t,i,u(r,161).a,u(c,161).a)},o.Dl=function(e,t,i,r,c,s){return new YAn(e,t,i,u(r,161).a,u(c,161).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372),b(1373,h2,{},Avn),o.Cl=function(e,t,i,r,c){return new OJ(e,t,i,u(r,17).a,u(c,17).a)},o.Dl=function(e,t,i,r,c,s){return new ZAn(e,t,i,u(r,17).a,u(c,17).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373),b(1374,h2,{},Lvn),o.Cl=function(e,t,i,r,c){return new dQ(e,t,i,u(r,168).a,u(c,168).a)},o.Dl=function(e,t,i,r,c,s){return new nLn(e,t,i,u(r,168).a,u(c,168).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374),b(1375,h2,{},Nvn),o.Cl=function(e,t,i,r,c){return new bQ(e,t,i,u(r,191).a,u(c,191).a)},o.Dl=function(e,t,i,r,c,s){return new eLn(e,t,i,u(r,191).a,u(c,191).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375),b(1353,574,{},LOn),o.Bl=function(e){if(!this.a.fk(e))throw T(new tm(WP+wo(e)+JP+this.a+"'"))},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353),b(1354,574,{},vIn),o.Bl=function(e){},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354),b(785,574,{}),o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null},o.Ck=function(e,t,i,r){var c,s;e.vh()&&e.wh()?(c=!0,s=t.li(i),s==null?(c=!1,s=this.b):x(s)===x(rl)&&(s=null),r==null?this.c!=null?(t.mi(i,null),r=this.b):t.mi(i,rl):(this.Bl(r),t.mi(i,r)),rt(e,this.d.Dl(e,1,this.e,s,r,!c))):r==null?this.c!=null?t.mi(i,null):t.mi(i,rl):(this.Bl(r),t.mi(i,r))},o.Ek=function(e,t,i){var r,c;e.vh()&&e.wh()?(r=!0,c=t.li(i),c==null?(r=!1,c=this.b):x(c)===x(rl)&&(c=null),t.ni(i),rt(e,this.d.Dl(e,2,this.e,c,this.b,r))):t.ni(i)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785),b(1355,785,{},NOn),o.Bl=function(e){if(!this.a.fk(e))throw T(new tm(WP+wo(e)+JP+this.a+"'"))},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355),b(1356,785,{},kIn),o.Bl=function(e){},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356),b(410,512,{},uT),o.yk=function(e,t,i,r,c){var s,f,h,l,a;if(a=t.li(i),this.tk()&&x(a)===x(rl))return null;if(this.bl()&&r&&a!=null){if(h=u(a,54),h.Vh()&&(l=ta(e,h),h!=l)){if(!AR(this.a,l))throw T(new tm(WP+wo(l)+JP+this.a+"'"));t.mi(i,a=l),this.al()&&(s=u(l,54),f=h.Th(e,this.b?At(h.Dh(),this.b):-1-At(e.Dh(),this.e),null,null),!s.Ph()&&(f=s.Rh(e,this.b?At(s.Dh(),this.b):-1-At(e.Dh(),this.e),null,f)),f&&f.oj()),e.vh()&&e.wh()&&rt(e,new F6(e,9,this.e,h,l))}return a}else return a},o.zk=function(e,t,i,r,c){var s,f;return f=t.li(i),x(f)===x(rl)&&(f=null),t.mi(i,r),this.Mj()?x(f)!==x(r)&&f!=null&&(s=u(f,54),c=s.Th(e,At(s.Dh(),this.b),null,c)):this.al()&&f!=null&&(c=u(f,54).Th(e,-1-At(e.Dh(),this.e),null,c)),e.vh()&&e.wh()&&(!c&&(c=new K1(4)),c.nj(new F6(e,1,this.e,f,r))),c},o.Ak=function(e,t,i,r,c){var s;return s=t.li(i),x(s)===x(rl)&&(s=null),t.ni(i),e.vh()&&e.wh()&&(!c&&(c=new K1(4)),this.tk()?c.nj(new F6(e,2,this.e,s,null)):c.nj(new F6(e,1,this.e,s,null))),c},o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null},o.Ck=function(e,t,i,r){var c,s,f,h,l;if(r!=null&&!AR(this.a,r))throw T(new tm(WP+(L(r,58)?_Z(u(r,58).Dh()):oQ(wo(r)))+JP+this.a+"'"));l=t.li(i),h=l!=null,this.tk()&&x(l)===x(rl)&&(l=null),f=null,this.Mj()?x(l)!==x(r)&&(l!=null&&(c=u(l,54),f=c.Th(e,At(c.Dh(),this.b),null,f)),r!=null&&(c=u(r,54),f=c.Rh(e,At(c.Dh(),this.b),null,f))):this.al()&&x(l)!==x(r)&&(l!=null&&(f=u(l,54).Th(e,-1-At(e.Dh(),this.e),null,f)),r!=null&&(f=u(r,54).Rh(e,-1-At(e.Dh(),this.e),null,f))),r==null&&this.tk()?t.mi(i,rl):t.mi(i,r),e.vh()&&e.wh()?(s=new TD(e,1,this.e,l,r,this.tk()&&!h),f?(f.nj(s),f.oj()):rt(e,s)):f&&f.oj()},o.Ek=function(e,t,i){var r,c,s,f,h;h=t.li(i),f=h!=null,this.tk()&&x(h)===x(rl)&&(h=null),s=null,h!=null&&(this.Mj()?(r=u(h,54),s=r.Th(e,At(r.Dh(),this.b),null,s)):this.al()&&(s=u(h,54).Th(e,-1-At(e.Dh(),this.e),null,s))),t.ni(i),e.vh()&&e.wh()?(c=new TD(e,this.tk()?2:1,this.e,h,null,f),s?(s.nj(c),s.oj()):rt(e,c)):s&&s.oj()},o.Mj=function(){return!1},o.al=function(){return!1},o.bl=function(){return!1},o.tk=function(){return!1},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410),b(575,410,{},IN),o.al=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575),b(1359,575,{},mSn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359),b(787,575,{},ZX),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787),b(1361,787,{},vSn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361),b(650,575,{},HN),o.Mj=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650),b(1360,650,{},jPn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360),b(788,650,{},BV),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788),b(1362,788,{},EPn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362),b(651,410,{},nV),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651),b(1363,651,{},kSn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363),b(789,651,{},RV),o.Mj=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789),b(1364,789,{},MPn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364),b(1357,410,{},ySn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357),b(786,410,{},KV),o.Mj=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786),b(1358,786,{},TPn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358),b(790,576,VP,$W),o.yl=function(e){return new $W(this.a,this.c,e)},o.md=function(){return this.b},o.zl=function(e,t,i){return bme(this,e,this.b,i)},o.Al=function(e,t,i){return wme(this,e,this.b,i)},w(qn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790),b(1365,1,CF,jyn),o.Fk=function(e){return this.a},o.Qj=function(){return L(this.a,97)?u(this.a,97).Qj():!this.a.dc()},o.Wb=function(e){this.a.$b(),this.a.Gc(u(e,15))},o.Gk=function(){L(this.a,97)?u(this.a,97).Gk():this.a.$b()},w(qn,"EStructuralFeatureImpl/SettingMany",1365),b(1366,576,VP,XLn),o.xl=function(e){return new LN((at(),x9),this.b.ri(this.a,e))},o.md=function(){return null},o.zl=function(e,t,i){return i},o.Al=function(e,t,i){return i},w(qn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366),b(652,576,VP,LN),o.xl=function(e){return new LN(this.c,e)},o.md=function(){return this.a},o.zl=function(e,t,i){return i},o.Al=function(e,t,i){return i},w(qn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652),b(403,505,Mh,V3),o.aj=function(e){return F(Ss,Rn,29,e,0,1)},o.Yi=function(){return!1},w(qn,"ESuperAdapter/1",403),b(456,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,456:1,119:1,120:1},UA),o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new x6(this,jr,this)),this.a}return zo(this,e-se((An(),yw)),$n((r=u(Un(this,16),29),r||yw),e),t,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 2:return!this.a&&(this.a=new x6(this,jr,this)),cr(this.a,e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),yw)),t),69),c.wk().Ak(this,iu(this),t-se((An(),yw)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return Uo(this,e-se((An(),yw)),$n((t=u(Un(this,16),29),t||yw),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Bt(this.Ab,u(t,16));return;case 1:zc(this,Ae(t));return;case 2:!this.a&&(this.a=new x6(this,jr,this)),me(this.a),!this.a&&(this.a=new x6(this,jr,this)),Bt(this.a,u(t,16));return}Jo(this,e-se((An(),yw)),$n((i=u(Un(this,16),29),i||yw),e),t)},o.ii=function(){return An(),yw},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:!this.a&&(this.a=new x6(this,jr,this)),me(this.a);return}Wo(this,e-se((An(),yw)),$n((t=u(Un(this,16),29),t||yw),e))},w(qn,"ETypeParameterImpl",456),b(457,83,Qr,x6),o.Nj=function(e,t){return Iye(this,u(e,89),t)},o.Oj=function(e,t){return Oye(this,u(e,89),t)},w(qn,"ETypeParameterImpl/1",457),b(647,45,n2,aL),o.ec=function(){return new NE(this)},w(qn,"ETypeParameterImpl/2",647),b(570,Ff,Nu,NE),o.Fc=function(e){return XSn(this,u(e,89))},o.Gc=function(e){var t,i,r;for(r=!1,i=e.Kc();i.Ob();)t=u(i.Pb(),89),Ve(this.a,t,"")==null&&(r=!0);return r},o.$b=function(){Hu(this.a)},o.Hc=function(e){return Zc(this.a,e)},o.Kc=function(){var e;return e=new sd(new Ua(this.a).a),new DE(e)},o.Mc=function(e){return RNn(this,e)},o.gc=function(){return i6(this.a)},w(qn,"ETypeParameterImpl/2/1",570),b(571,1,Pi,DE),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(Ab(this.a).ld(),89)},o.Ob=function(){return this.a.b},o.Qb=function(){zDn(this.a)},w(qn,"ETypeParameterImpl/2/1/1",571),b(1329,45,n2,ajn),o._b=function(e){return Si(e)?SD(this,e):!!wr(this.f,e)},o.xc=function(e){var t,i;return t=Si(e)?Dc(this,e):Fr(wr(this.f,e)),L(t,851)?(i=u(t,851),t=i.Kk(),Ve(this,u(e,241),t),t):t??(e==null?(AL(),Zoe):null)},w(qn,"EValidatorRegistryImpl",1329),b(1349,720,{110:1,94:1,93:1,479:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},Dvn),o.ri=function(e,t){switch(e.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:Jr(t);case 25:return C4e(t);case 27:return Fme(t);case 28:return _me(t);case 29:return t==null?null:MCn(O9[0],u(t,206));case 41:return t==null?"":Xa(u(t,296));case 42:return Jr(t);case 50:return Ae(t);default:throw T(new Gn(nv+e.xe()+Yb))}},o.si=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;switch(e.G==-1&&(e.G=(p=jo(e),p?f1(p.vi(),e):-1)),e.G){case 0:return i=new fL,i;case 1:return t=new nG,t;case 2:return r=new rG,r;case 4:return c=new $E,c;case 5:return s=new ljn,s;case 6:return f=new xyn,f;case 7:return h=new cG,h;case 10:return a=new ME,a;case 11:return d=new hL,d;case 12:return g=new _On,g;case 13:return m=new lL,m;case 14:return k=new iV,k;case 17:return j=new Mvn,j;case 18:return l=new Jd,l;case 19:return P=new UA,P;default:throw T(new Gn(hF+e.zb+Yb))}},o.ti=function(e,t){switch(e.hk()){case 20:return t==null?null:new Tz(t);case 21:return t==null?null:new q1(t);case 23:case 22:return t==null?null:B8e(t);case 26:case 24:return t==null?null:lk(So(t,-128,127)<<24>>24);case 25:return rTe(t);case 27:return C7e(t);case 28:return S7e(t);case 29:return Jye(t);case 32:case 31:return t==null?null:s0(t);case 38:case 37:return t==null?null:new HG(t);case 40:case 39:return t==null?null:Y(So(t,Wi,et));case 41:return null;case 42:return t==null,null;case 44:case 43:return t==null?null:Tl(zS(t));case 49:case 48:return t==null?null:o4(So(t,QP,32767)<<16>>16);case 50:return t;default:throw T(new Gn(nv+e.xe()+Yb))}},w(qn,"EcoreFactoryImpl",1349),b(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},lOn),o.gb=!1,o.hb=!1;var Zdn,Yoe=!1;w(qn,"EcorePackageImpl",560),b(1234,1,{851:1},$vn),o.Kk=function(){return RCn(),nse},w(qn,"EcorePackageImpl/1",1234),b(1243,1,ze,xvn),o.fk=function(e){return L(e,155)},o.gk=function(e){return F(sE,Rn,155,e,0,1)},w(qn,"EcorePackageImpl/10",1243),b(1244,1,ze,Rvn),o.fk=function(e){return L(e,197)},o.gk=function(e){return F(wU,Rn,197,e,0,1)},w(qn,"EcorePackageImpl/11",1244),b(1245,1,ze,Kvn),o.fk=function(e){return L(e,58)},o.gk=function(e){return F(La,Rn,58,e,0,1)},w(qn,"EcorePackageImpl/12",1245),b(1246,1,ze,Bvn),o.fk=function(e){return L(e,411)},o.gk=function(e){return F(Ps,Hcn,62,e,0,1)},w(qn,"EcorePackageImpl/13",1246),b(1247,1,ze,Fvn),o.fk=function(e){return L(e,241)},o.gk=function(e){return F(Ef,Rn,241,e,0,1)},w(qn,"EcorePackageImpl/14",1247),b(1248,1,ze,_vn),o.fk=function(e){return L(e,518)},o.gk=function(e){return F(vw,Rn,2116,e,0,1)},w(qn,"EcorePackageImpl/15",1248),b(1249,1,ze,Hvn),o.fk=function(e){return L(e,102)},o.gk=function(e){return F(eg,f2,19,e,0,1)},w(qn,"EcorePackageImpl/16",1249),b(1250,1,ze,qvn),o.fk=function(e){return L(e,179)},o.gk=function(e){return F(ku,f2,179,e,0,1)},w(qn,"EcorePackageImpl/17",1250),b(1251,1,ze,Uvn),o.fk=function(e){return L(e,480)},o.gk=function(e){return F(Z0,Rn,480,e,0,1)},w(qn,"EcorePackageImpl/18",1251),b(1252,1,ze,Gvn),o.fk=function(e){return L(e,561)},o.gk=function(e){return F(pc,nJn,561,e,0,1)},w(qn,"EcorePackageImpl/19",1252),b(1235,1,ze,zvn),o.fk=function(e){return L(e,331)},o.gk=function(e){return F(ng,f2,35,e,0,1)},w(qn,"EcorePackageImpl/2",1235),b(1253,1,ze,Xvn),o.fk=function(e){return L(e,248)},o.gk=function(e){return F(jr,pJn,89,e,0,1)},w(qn,"EcorePackageImpl/20",1253),b(1254,1,ze,Vvn),o.fk=function(e){return L(e,456)},o.gk=function(e){return F(fu,Rn,850,e,0,1)},w(qn,"EcorePackageImpl/21",1254),b(1255,1,ze,Wvn),o.fk=function(e){return Dw(e)},o.gk=function(e){return F(zt,J,484,e,8,1)},w(qn,"EcorePackageImpl/22",1255),b(1256,1,ze,Jvn),o.fk=function(e){return L(e,195)},o.gk=function(e){return F(Ru,J,195,e,0,2)},w(qn,"EcorePackageImpl/23",1256),b(1257,1,ze,Qvn),o.fk=function(e){return L(e,222)},o.gk=function(e){return F(p3,J,222,e,0,1)},w(qn,"EcorePackageImpl/24",1257),b(1258,1,ze,Yvn),o.fk=function(e){return L(e,180)},o.gk=function(e){return F(T8,J,180,e,0,1)},w(qn,"EcorePackageImpl/25",1258),b(1259,1,ze,Zvn),o.fk=function(e){return L(e,206)},o.gk=function(e){return F(oI,J,206,e,0,1)},w(qn,"EcorePackageImpl/26",1259),b(1260,1,ze,n6n),o.fk=function(e){return!1},o.gk=function(e){return F(pbn,Rn,2215,e,0,1)},w(qn,"EcorePackageImpl/27",1260),b(1261,1,ze,e6n),o.fk=function(e){return $w(e)},o.gk=function(e){return F(si,J,345,e,7,1)},w(qn,"EcorePackageImpl/28",1261),b(1262,1,ze,t6n),o.fk=function(e){return L(e,61)},o.gk=function(e){return F(Ldn,k0,61,e,0,1)},w(qn,"EcorePackageImpl/29",1262),b(1236,1,ze,i6n),o.fk=function(e){return L(e,519)},o.gk=function(e){return F(Ue,{3:1,4:1,5:1,2033:1},598,e,0,1)},w(qn,"EcorePackageImpl/3",1236),b(1263,1,ze,r6n),o.fk=function(e){return L(e,582)},o.gk=function(e){return F($dn,Rn,2039,e,0,1)},w(qn,"EcorePackageImpl/30",1263),b(1264,1,ze,c6n),o.fk=function(e){return L(e,160)},o.gk=function(e){return F(rbn,k0,160,e,0,1)},w(qn,"EcorePackageImpl/31",1264),b(1265,1,ze,u6n),o.fk=function(e){return L(e,76)},o.gk=function(e){return F(MA,CJn,76,e,0,1)},w(qn,"EcorePackageImpl/32",1265),b(1266,1,ze,o6n),o.fk=function(e){return L(e,161)},o.gk=function(e){return F(ov,J,161,e,0,1)},w(qn,"EcorePackageImpl/33",1266),b(1267,1,ze,s6n),o.fk=function(e){return L(e,17)},o.gk=function(e){return F(Gi,J,17,e,0,1)},w(qn,"EcorePackageImpl/34",1267),b(1268,1,ze,f6n),o.fk=function(e){return L(e,296)},o.gk=function(e){return F(eun,Rn,296,e,0,1)},w(qn,"EcorePackageImpl/35",1268),b(1269,1,ze,h6n),o.fk=function(e){return L(e,168)},o.gk=function(e){return F(nw,J,168,e,0,1)},w(qn,"EcorePackageImpl/36",1269),b(1270,1,ze,l6n),o.fk=function(e){return L(e,85)},o.gk=function(e){return F(tun,Rn,85,e,0,1)},w(qn,"EcorePackageImpl/37",1270),b(1271,1,ze,a6n),o.fk=function(e){return L(e,599)},o.gk=function(e){return F(nbn,Rn,599,e,0,1)},w(qn,"EcorePackageImpl/38",1271),b(1272,1,ze,d6n),o.fk=function(e){return!1},o.gk=function(e){return F(mbn,Rn,2216,e,0,1)},w(qn,"EcorePackageImpl/39",1272),b(1237,1,ze,b6n),o.fk=function(e){return L(e,90)},o.gk=function(e){return F(Ss,Rn,29,e,0,1)},w(qn,"EcorePackageImpl/4",1237),b(1273,1,ze,w6n),o.fk=function(e){return L(e,191)},o.gk=function(e){return F(ew,J,191,e,0,1)},w(qn,"EcorePackageImpl/40",1273),b(1274,1,ze,g6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(qn,"EcorePackageImpl/41",1274),b(1275,1,ze,p6n),o.fk=function(e){return L(e,596)},o.gk=function(e){return F(Ddn,Rn,596,e,0,1)},w(qn,"EcorePackageImpl/42",1275),b(1276,1,ze,m6n),o.fk=function(e){return!1},o.gk=function(e){return F(vbn,J,2217,e,0,1)},w(qn,"EcorePackageImpl/43",1276),b(1277,1,ze,v6n),o.fk=function(e){return L(e,44)},o.gk=function(e){return F(Id,WS,44,e,0,1)},w(qn,"EcorePackageImpl/44",1277),b(1238,1,ze,k6n),o.fk=function(e){return L(e,142)},o.gk=function(e){return F(Mf,Rn,142,e,0,1)},w(qn,"EcorePackageImpl/5",1238),b(1239,1,ze,y6n),o.fk=function(e){return L(e,156)},o.gk=function(e){return F(yU,Rn,156,e,0,1)},w(qn,"EcorePackageImpl/6",1239),b(1240,1,ze,j6n),o.fk=function(e){return L(e,468)},o.gk=function(e){return F(EA,Rn,685,e,0,1)},w(qn,"EcorePackageImpl/7",1240),b(1241,1,ze,E6n),o.fk=function(e){return L(e,582)},o.gk=function(e){return F(Kl,Rn,694,e,0,1)},w(qn,"EcorePackageImpl/8",1241),b(1242,1,ze,M6n),o.fk=function(e){return L(e,479)},o.gk=function(e){return F(I9,Rn,479,e,0,1)},w(qn,"EcorePackageImpl/9",1242),b(1038,2080,ZWn,Njn),o.Mi=function(e,t){b5e(this,u(t,424))},o.Qi=function(e,t){S_n(this,e,u(t,424))},w(qn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038),b(1039,152,Vy,eOn),o.jj=function(){return this.a.a},w(qn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039),b(1067,1066,{},wCn),w("org.eclipse.emf.ecore.plugin","EcorePlugin",1067);var nbn=Dt(SJn,"Resource");b(799,1524,PJn),o.Hl=function(e){},o.Il=function(e){},o.El=function(){return!this.a&&(this.a=new iL(this)),this.a},o.Fl=function(e){var t,i,r,c,s;if(r=e.length,r>0)if(zn(0,e.length),e.charCodeAt(0)==47){for(s=new Gc(4),c=1,t=1;t<r;++t)zn(t,e.length),e.charCodeAt(t)==47&&(nn(s,c==t?"":(Ri(c,t,e.length),e.substr(c,t-c))),c=t+1);return nn(s,(zn(c,e.length+1),e.substr(c))),pke(this,s)}else zn(r-1,e.length),e.charCodeAt(r-1)==63&&(i=TV(e,wu(63),r-2),i>0&&(e=(Ri(0,i,e.length),e.substr(0,i))));return qEe(this,e)},o.Gl=function(){return this.c},o.Ib=function(){var e;return Xa(this.Rm)+"@"+(e=mt(this)>>>0,e.toString(16))+" uri='"+this.d+"'"},o.b=!1,w(SF,"ResourceImpl",799),b(1525,799,PJn,Eyn),w(SF,"BinaryResourceImpl",1525),b(1190,708,yF),o.bj=function(e){return L(e,58)?Dge(this,u(e,58)):L(e,599)?new ne(u(e,599).El()):x(e)===x(this.f)?u(e,16).Kc():(pm(),lE.a)},o.Ob=function(){return Dnn(this)},o.a=!1,w(Ct,"EcoreUtil/ContentTreeIterator",1190),b(1526,1190,yF,AIn),o.bj=function(e){return x(e)===x(this.f)?u(e,15).Kc():new PLn(u(e,58))},w(SF,"ResourceImpl/5",1526),b(658,2092,gJn,iL),o.Hc=function(e){return this.i<=4?v4(this,e):L(e,54)&&u(e,54).Jh()==this.a},o.Mi=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},o.Oi=function(e,t){e==0?this.a.b||(this.a.b=!0):t$(this,e,t)},o.Qi=function(e,t){},o.Ri=function(e,t,i){},o.Lj=function(){return 2},o.jj=function(){return this.a},o.Mj=function(){return!0},o.Nj=function(e,t){var i;return i=u(e,54),t=i.fi(this.a,t),t},o.Oj=function(e,t){var i;return i=u(e,54),i.fi(null,t)},o.Pj=function(){return!1},o.Si=function(){return!0},o.aj=function(e){return F(La,Rn,58,e,0,1)},o.Yi=function(){return!1},w(SF,"ResourceImpl/ContentsEList",658),b(970,2062,K4,Myn),o.fd=function(e){return this.a.Ki(e)},o.gc=function(){return this.a.gc()},w(Ct,"AbstractSequentialInternalEList/1",970);var ebn,tbn,zi,ibn;b(634,1,{},NPn);var TA,CA;w(Ct,"BasicExtendedMetaData",634),b(1181,1,{},$Tn),o.Jl=function(){return null},o.Kl=function(){return this.a==-2&&dfe(this,qye(this.d,this.b)),this.a},o.Ll=function(){return null},o.Ml=function(){return Ln(),Ln(),sr},o.xe=function(){return this.c==iv&&bfe(this,QKn(this.d,this.b)),this.c},o.Nl=function(){return 0},o.a=-2,o.c=iv,w(Ct,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181),b(1182,1,{},rLn),o.Jl=function(){return this.a==(Dm(),TA)&&pfe(this,HSe(this.f,this.b)),this.a},o.Kl=function(){return 0},o.Ll=function(){return this.c==(Dm(),TA)&&wfe(this,qSe(this.f,this.b)),this.c},o.Ml=function(){return!this.d&&vfe(this,SIe(this.f,this.b)),this.d},o.xe=function(){return this.e==iv&&yfe(this,QKn(this.f,this.b)),this.e},o.Nl=function(){return this.g==-2&&Efe(this,sye(this.f,this.b)),this.g},o.e=iv,o.g=-2,w(Ct,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182),b(1180,1,{},xTn),o.b=!1,o.c=!1,w(Ct,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180),b(1183,1,{},cLn),o.c=-2,o.e=iv,o.f=iv,w(Ct,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183),b(593,632,Qr,JM),o.Lj=function(){return this.c},o.ol=function(){return!1},o.Wi=function(e,t){return t},o.c=0,w(Ct,"EDataTypeEList",593);var rbn=Dt(Ct,"FeatureMap");b(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},Ft),o.bd=function(e,t){oCe(this,e,u(t,76))},o.Fc=function(e){return TTe(this,u(e,76))},o.Hi=function(e){A0e(this,u(e,76))},o.Nj=function(e,t){return Yae(this,u(e,76),t)},o.Oj=function(e,t){return SV(this,u(e,76),t)},o.Ti=function(e,t){return NPe(this,e,t)},o.Wi=function(e,t){return vAe(this,e,u(t,76))},o.hd=function(e,t){return VCe(this,e,u(t,76))},o.Uj=function(e,t){return Zae(this,u(e,76),t)},o.Vj=function(e,t){return sPn(this,u(e,76),t)},o.Wj=function(e,t,i){return Wke(this,u(e,76),u(t,76),i)},o.Zi=function(e,t){return Jx(this,e,u(t,76))},o.Ol=function(e,t){return Ten(this,e,t)},o.cd=function(e,t){var i,r,c,s,f,h,l,a,d;for(a=new Cb(t.gc()),c=t.Kc();c.Ob();)if(r=u(c.Pb(),76),s=r.Lk(),Pl(this.e,s))(!s.Si()||!_T(this,s,r.md())&&!v4(a,r))&&ve(a,r);else{for(d=ru(this.e.Dh(),s),i=u(this.g,124),f=!0,h=0;h<this.i;++h)if(l=i[h],d.am(l.Lk())){u(Bg(this,h,r),76),f=!1;break}f&&ve(a,r)}return VQ(this,e,a)},o.Gc=function(e){var t,i,r,c,s,f,h,l,a;for(l=new Cb(e.gc()),r=e.Kc();r.Ob();)if(i=u(r.Pb(),76),c=i.Lk(),Pl(this.e,c))(!c.Si()||!_T(this,c,i.md())&&!v4(l,i))&&ve(l,i);else{for(a=ru(this.e.Dh(),c),t=u(this.g,124),s=!0,f=0;f<this.i;++f)if(h=t[f],a.am(h.Lk())){u(Bg(this,f,i),76),s=!1;break}s&&ve(l,i)}return Bt(this,l)},o.Fi=function(e){return this.j=-1,LR(this,this.i,e)},o.Pl=function(e,t,i){return pen(this,e,t,i)},o.Xk=function(e,t){return hy(this,e,t)},o.Ql=function(e,t,i){return qen(this,e,t,i)},o.Rl=function(){return this},o.Sl=function(e,t){return by(this,e,t)},o.Tl=function(e){return u(N(this,e),76).Lk()},o.Ul=function(e){return u(N(this,e),76).md()},o.Vl=function(){return this.b},o.Mj=function(){return!0},o.Tj=function(){return!0},o.Wl=function(e){return!xk(this,e)},o.aj=function(e){return F(Qoe,CJn,343,e,0,1)},o.pl=function(e){return ON(this,e)},o.Wb=function(e){F7(this,e)},o.Xl=function(e,t){HS(this,e,t)},o.Yl=function(e){return uxn(this,e)},o.Zl=function(e){KBn(this,e)},w(Ct,"BasicFeatureMap",78),b(1960,1,Hh),o.Nb=function(e){_i(this,e)},o.Rb=function(e){if(this.g==-1)throw T(new Mu);lT(this);try{mqn(this.e,this.b,this.a,e),this.d=this.e.j,iS(this)}catch(t){throw t=Ot(t),L(t,77)?T(new Ko):T(t)}},o.Ob=function(){return W$(this)},o.Sb=function(){return LRn(this)},o.Pb=function(){return iS(this)},o.Tb=function(){return this.a},o.Ub=function(){var e;if(LRn(this))return lT(this),this.g=--this.a,this.ul()&&(e=A5(this.e,this.b,this.c,this.a,this.j),this.j=e),this.i=0,this.j;throw T(new nc)},o.Vb=function(){return this.a-1},o.Qb=function(){if(this.g==-1)throw T(new Mu);lT(this);try{h_n(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(e){throw e=Ot(e),L(e,77)?T(new Ko):T(e)}},o.ul=function(){return!1},o.Wb=function(e){if(this.g==-1)throw T(new Mu);lT(this);try{HUn(this.e,this.b,this.g,e),this.d=this.e.j}catch(t){throw t=Ot(t),L(t,77)?T(new Ko):T(t)}},o.a=0,o.c=0,o.d=0,o.f=!1,o.g=0,o.i=0,w(Ct,"FeatureMapUtil/BasicFeatureEIterator",1960),b(420,1960,Hh,Qm),o.$l=function(){var e,t,i;for(i=this.e.i,e=u(this.e.g,124);this.c<i;){if(t=e[this.c],this.k.am(t.Lk()))return this.j=this.f?t:t.md(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},o._l=function(){var e,t;for(e=u(this.e.g,124);--this.c>=0;)if(t=e[this.c],this.k.am(t.Lk()))return this.j=this.f?t:t.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},w(Ct,"BasicFeatureMap/FeatureEIterator",420),b(676,420,Hh,dN),o.ul=function(){return!0},w(Ct,"BasicFeatureMap/ResolvingFeatureEIterator",676),b(968,495,zP,TCn),o.pj=function(){return this},w(Ct,"EContentsEList/1",968),b(969,495,zP,WTn),o.ul=function(){return!1},w(Ct,"EContentsEList/2",969),b(967,287,XP,CCn),o.wl=function(e){},o.Ob=function(){return!1},o.Sb=function(){return!1},w(Ct,"EContentsEList/FeatureIteratorImpl/1",967),b(840,593,Qr,DX),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,rt(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EDataTypeEList/Unsettable",840),b(1958,593,Qr,NCn),o.Si=function(){return!0},w(Ct,"EDataTypeUniqueEList",1958),b(1959,840,Qr,DCn),o.Si=function(){return!0},w(Ct,"EDataTypeUniqueEList/Unsettable",1959),b(147,83,Qr,Cu),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectContainmentEList/Resolving",147),b(1184,555,Qr,$Cn),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectContainmentEList/Unsettable/Resolving",1184),b(766,14,Qr,kV),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,rt(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EObjectContainmentWithInverseEList/Unsettable",766),b(1222,766,Qr,VSn),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222),b(757,504,Qr,$X),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,rt(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EObjectEList/Unsettable",757),b(338,504,Qr,Eg),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectResolvingEList",338),b(1844,757,Qr,xCn),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectResolvingEList/Unsettable",1844),b(1527,1,{},T6n);var Zoe;w(Ct,"EObjectValidator",1527),b(559,504,Qr,dT),o.il=function(){return this.d},o.jl=function(){return this.b},o.Mj=function(){return!0},o.ml=function(){return!0},o.b=0,w(Ct,"EObjectWithInverseEList",559),b(1225,559,Qr,WSn),o.ll=function(){return!0},w(Ct,"EObjectWithInverseEList/ManyInverse",1225),b(635,559,Qr,DN),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,rt(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EObjectWithInverseEList/Unsettable",635),b(1224,635,Qr,JSn),o.ll=function(){return!0},w(Ct,"EObjectWithInverseEList/Unsettable/ManyInverse",1224),b(767,559,Qr,yV),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectWithInverseResolvingEList",767),b(32,767,Qr,Dn),o.ll=function(){return!0},w(Ct,"EObjectWithInverseResolvingEList/ManyInverse",32),b(768,635,Qr,jV),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectWithInverseResolvingEList/Unsettable",768),b(1223,768,Qr,QSn),o.ll=function(){return!0},w(Ct,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223),b(1185,632,Qr),o.Li=function(){return(this.b&1792)==0},o.Ni=function(){this.b|=1},o.kl=function(){return(this.b&4)!=0},o.Mj=function(){return(this.b&40)!=0},o.ll=function(){return(this.b&16)!=0},o.ml=function(){return(this.b&8)!=0},o.nl=function(){return(this.b&C0)!=0},o.al=function(){return(this.b&32)!=0},o.ol=function(){return(this.b&Gs)!=0},o.fk=function(e){return this.d?RLn(this.d,e):this.Lk().Hk().fk(e)},o.Qj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},o.Si=function(){return(this.b&128)!=0},o.Gk=function(){var e;me(this),this.b&2&&(fo(this.e)?(e=(this.b&1)!=0,this.b&=-2,em(this,new Bs(this.e,2,At(this.e.Dh(),this.Lk()),e,!1))):this.b&=-2)},o.Yi=function(){return(this.b&1536)==0},o.b=0,w(Ct,"EcoreEList/Generic",1185),b(1186,1185,Qr,qOn),o.Lk=function(){return this.a},w(Ct,"EcoreEList/Dynamic",1186),b(765,66,Mh,xG),o.aj=function(e){return wk(this.a.a,e)},w(Ct,"EcoreEMap/1",765),b(764,83,Qr,kW),o.Mi=function(e,t){uS(this.b,u(t,136))},o.Oi=function(e,t){Fxn(this.b)},o.Pi=function(e,t,i){var r;++(r=this.b,u(t,136),r).e},o.Qi=function(e,t){cx(this.b,u(t,136))},o.Ri=function(e,t,i){cx(this.b,u(i,136)),x(i)===x(t)&&u(i,136).Ci(Jle(u(t,136).ld())),uS(this.b,u(t,136))},w(Ct,"EcoreEMap/DelegateEObjectContainmentEList",764),b(1220,141,_cn,ixn),w(Ct,"EcoreEMap/Unsettable",1220),b(1221,764,Qr,YSn),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,rt(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221),b(1189,215,n2,UIn),o.a=!1,o.b=!1,w(Ct,"EcoreUtil/Copier",1189),b(759,1,Pi,PLn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return xKn(this)},o.Pb=function(){var e;return xKn(this),e=this.b,this.b=null,e},o.Qb=function(){this.a.Qb()},w(Ct,"EcoreUtil/ProperContentIterator",759),b(1528,1527,{},T8n);var nse;w(Ct,"EcoreValidator",1528);var ese;Dt(Ct,"FeatureMapUtil/Validator"),b(1295,1,{2041:1},C6n),o.am=function(e){return!0},w(Ct,"FeatureMapUtil/1",1295),b(773,1,{2041:1},etn),o.am=function(e){var t;return this.c==e?!0:(t=un(ee(this.a,e)),t==null?WSe(this,e)?(PNn(this.a,e,(_n(),uv)),!0):(PNn(this.a,e,(_n(),pa)),!1):t==(_n(),uv))},o.e=!1;var TU;w(Ct,"FeatureMapUtil/BasicValidator",773),b(774,45,n2,LX),w(Ct,"FeatureMapUtil/BasicValidator/Cache",774),b(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},k7),o.bd=function(e,t){mqn(this.c,this.b,e,t)},o.Fc=function(e){return Ten(this.c,this.b,e)},o.cd=function(e,t){return gOe(this.c,this.b,e,t)},o.Gc=function(e){return S6(this,e)},o.Gi=function(e,t){l4e(this.c,this.b,e,t)},o.Wk=function(e,t){return pen(this.c,this.b,e,t)},o.$i=function(e){return _S(this.c,this.b,e,!1)},o.Ii=function(){return oCn(this.c,this.b)},o.Ji=function(){return Rle(this.c,this.b)},o.Ki=function(e){return gme(this.c,this.b,e)},o.Xk=function(e,t){return ASn(this,e,t)},o.$b=function(){cp(this)},o.Hc=function(e){return _T(this.c,this.b,e)},o.Ic=function(e){return wve(this.c,this.b,e)},o.Xb=function(e){return _S(this.c,this.b,e,!0)},o.Fk=function(e){return this},o.dd=function(e){return E3e(this.c,this.b,e)},o.dc=function(){return TM(this)},o.Qj=function(){return!xk(this.c,this.b)},o.Kc=function(){return e4e(this.c,this.b)},o.ed=function(){return t4e(this.c,this.b)},o.fd=function(e){return N5e(this.c,this.b,e)},o.Ti=function(e,t){return NUn(this.c,this.b,e,t)},o.Ui=function(e,t){vme(this.c,this.b,e,t)},o.gd=function(e){return h_n(this.c,this.b,e)},o.Mc=function(e){return mPe(this.c,this.b,e)},o.hd=function(e,t){return HUn(this.c,this.b,e,t)},o.Wb=function(e){jS(this.c,this.b),S6(this,u(e,15))},o.gc=function(){return L5e(this.c,this.b)},o.Pc=function(){return Tpe(this.c,this.b)},o.Qc=function(e){return M3e(this.c,this.b,e)},o.Ib=function(){var e,t;for(t=new Hl,t.a+="[",e=oCn(this.c,this.b);W$(e);)Er(t,I6(iS(e))),W$(e)&&(t.a+=ur);return t.a+="]",t.a},o.Gk=function(){jS(this.c,this.b)},w(Ct,"FeatureMapUtil/FeatureEList",509),b(644,38,Vy,GD),o.hj=function(e){return g5(this,e)},o.mj=function(e){var t,i,r,c,s,f,h;switch(this.d){case 1:case 2:{if(s=e.jj(),x(s)===x(this.c)&&g5(this,null)==e.hj(null))return this.g=e.ij(),e.gj()==1&&(this.d=1),!0;break}case 3:{switch(c=e.gj(),c){case 3:{if(s=e.jj(),x(s)===x(this.c)&&g5(this,null)==e.hj(null))return this.d=5,t=new Cb(2),ve(t,this.g),ve(t,e.ij()),this.g=t,!0;break}}break}case 5:{switch(c=e.gj(),c){case 3:{if(s=e.jj(),x(s)===x(this.c)&&g5(this,null)==e.hj(null))return i=u(this.g,16),i.Fc(e.ij()),!0;break}}break}case 4:{switch(c=e.gj(),c){case 3:{if(s=e.jj(),x(s)===x(this.c)&&g5(this,null)==e.hj(null))return this.d=1,this.g=e.ij(),!0;break}case 4:{if(s=e.jj(),x(s)===x(this.c)&&g5(this,null)==e.hj(null))return this.d=6,h=new Cb(2),ve(h,this.n),ve(h,e.kj()),this.n=h,f=S(C(ye,1),_e,28,15,[this.o,e.lj()]),this.g=f,!0;break}}break}case 6:{switch(c=e.gj(),c){case 4:{if(s=e.jj(),x(s)===x(this.c)&&g5(this,null)==e.hj(null))return i=u(this.n,16),i.Fc(e.kj()),f=u(this.g,53),r=F(ye,_e,28,f.length+1,15,1),Oc(f,0,r,0,f.length),r[f.length]=e.lj(),this.g=r,!0;break}}break}}return!1},w(Ct,"FeatureMapUtil/FeatureENotificationImpl",644),b(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},nT),o.Ol=function(e,t){return Ten(this.c,e,t)},o.Pl=function(e,t,i){return pen(this.c,e,t,i)},o.Ql=function(e,t,i){return qen(this.c,e,t,i)},o.Rl=function(){return this},o.Sl=function(e,t){return by(this.c,e,t)},o.Tl=function(e){return u(_S(this.c,this.b,e,!1),76).Lk()},o.Ul=function(e){return u(_S(this.c,this.b,e,!1),76).md()},o.Vl=function(){return this.a},o.Wl=function(e){return!xk(this.c,e)},o.Xl=function(e,t){HS(this.c,e,t)},o.Yl=function(e){return uxn(this.c,e)},o.Zl=function(e){KBn(this.c,e)},w(Ct,"FeatureMapUtil/FeatureFeatureMap",564),b(1294,1,CF,DTn),o.Fk=function(e){return _S(this.b,this.a,-1,e)},o.Qj=function(){return!xk(this.b,this.a)},o.Wb=function(e){HS(this.b,this.a,e)},o.Gk=function(){jS(this.b,this.a)},w(Ct,"FeatureMapUtil/FeatureValue",1294);var B3,CU,SU,F3,tse,dE=Dt(eI,"AnyType");b(680,63,Il,kL),w(eI,"InvalidDatatypeValueException",680);var SA=Dt(eI,OJn),bE=Dt(eI,AJn),cbn=Dt(eI,LJn),ise,yc,ubn,zd,rse,cse,use,ose,sse,fse,hse,lse,ase,dse,bse,G2,wse,z2,D9,gse,jw,wE,gE,pse,$9,x9;b(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},ez),o.Lh=function(e,t,i){switch(e){case 0:return i?(!this.c&&(this.c=new Ft(this,0)),this.c):(!this.c&&(this.c=new Ft(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Ft(this,0)),u($c(this.c,(at(),zd)),160)):(!this.c&&(this.c=new Ft(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Vl();case 2:return i?(!this.b&&(this.b=new Ft(this,2)),this.b):(!this.b&&(this.b=new Ft(this,2)),this.b.b)}return zo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e),t,i)},o.Uh=function(e,t,i){var r;switch(t){case 0:return!this.c&&(this.c=new Ft(this,0)),hy(this.c,e,i);case 1:return(!this.c&&(this.c=new Ft(this,0)),u(u($c(this.c,(at(),zd)),160),71)).Xk(e,i);case 2:return!this.b&&(this.b=new Ft(this,2)),hy(this.b,e,i)}return r=u($n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),t),69),r.wk().Ak(this,rQ(this),t-se(this.ii()),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Ft(this,0)),u($c(this.c,(at(),zd)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return Uo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e))},o.bi=function(e,t){switch(e){case 0:!this.c&&(this.c=new Ft(this,0)),F7(this.c,t);return;case 1:(!this.c&&(this.c=new Ft(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new Ft(this,2)),F7(this.b,t);return}Jo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e),t)},o.ii=function(){return at(),ubn},o.ki=function(e){switch(e){case 0:!this.c&&(this.c=new Ft(this,0)),me(this.c);return;case 1:(!this.c&&(this.c=new Ft(this,0)),u($c(this.c,(at(),zd)),160)).$b();return;case 2:!this.b&&(this.b=new Ft(this,2)),me(this.b);return}Wo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e))},o.Ib=function(){var e;return this.j&4?Hs(this):(e=new ls(Hs(this)),e.a+=" (mixed: ",E6(e,this.c),e.a+=", anyAttribute: ",E6(e,this.b),e.a+=")",e.a)},w(oi,"AnyTypeImpl",844),b(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},R6n),o.Lh=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return zo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e),t,i)},o.Wh=function(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return Uo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e))},o.bi=function(e,t){switch(e){case 0:Cfe(this,Ae(t));return;case 1:Pfe(this,Ae(t));return}Jo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e),t)},o.ii=function(){return at(),G2},o.ki=function(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}Wo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e))},o.Ib=function(){var e;return this.j&4?Hs(this):(e=new ls(Hs(this)),e.a+=" (data: ",Er(e,this.a),e.a+=", target: ",Er(e,this.b),e.a+=")",e.a)},o.a=null,o.b=null,w(oi,"ProcessingInstructionImpl",681),b(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},djn),o.Lh=function(e,t,i){switch(e){case 0:return i?(!this.c&&(this.c=new Ft(this,0)),this.c):(!this.c&&(this.c=new Ft(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Ft(this,0)),u($c(this.c,(at(),zd)),160)):(!this.c&&(this.c=new Ft(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Vl();case 2:return i?(!this.b&&(this.b=new Ft(this,2)),this.b):(!this.b&&(this.b=new Ft(this,2)),this.b.b);case 3:return!this.c&&(this.c=new Ft(this,0)),Ae(by(this.c,(at(),D9),!0));case 4:return MV(this.a,(!this.c&&(this.c=new Ft(this,0)),Ae(by(this.c,(at(),D9),!0))));case 5:return this.a}return zo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e),t,i)},o.Wh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Ft(this,0)),u($c(this.c,(at(),zd)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new Ft(this,0)),Ae(by(this.c,(at(),D9),!0))!=null;case 4:return MV(this.a,(!this.c&&(this.c=new Ft(this,0)),Ae(by(this.c,(at(),D9),!0))))!=null;case 5:return!!this.a}return Uo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e))},o.bi=function(e,t){switch(e){case 0:!this.c&&(this.c=new Ft(this,0)),F7(this.c,t);return;case 1:(!this.c&&(this.c=new Ft(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new Ft(this,2)),F7(this.b,t);return;case 3:aJ(this,Ae(t));return;case 4:aJ(this,EV(this.a,t));return;case 5:Sfe(this,u(t,156));return}Jo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e),t)},o.ii=function(){return at(),z2},o.ki=function(e){switch(e){case 0:!this.c&&(this.c=new Ft(this,0)),me(this.c);return;case 1:(!this.c&&(this.c=new Ft(this,0)),u($c(this.c,(at(),zd)),160)).$b();return;case 2:!this.b&&(this.b=new Ft(this,2)),me(this.b);return;case 3:!this.c&&(this.c=new Ft(this,0)),HS(this.c,(at(),D9),null);return;case 4:aJ(this,EV(this.a,null));return;case 5:this.a=null;return}Wo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e))},w(oi,"SimpleAnyTypeImpl",682),b(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},bjn),o.Lh=function(e,t,i){switch(e){case 0:return i?(!this.a&&(this.a=new Ft(this,0)),this.a):(!this.a&&(this.a=new Ft(this,0)),this.a.b);case 1:return i?(!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),this.b):(!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),ik(this.b));case 2:return i?(!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),this.c):(!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),ik(this.c));case 3:return!this.a&&(this.a=new Ft(this,0)),$c(this.a,(at(),wE));case 4:return!this.a&&(this.a=new Ft(this,0)),$c(this.a,(at(),gE));case 5:return!this.a&&(this.a=new Ft(this,0)),$c(this.a,(at(),$9));case 6:return!this.a&&(this.a=new Ft(this,0)),$c(this.a,(at(),x9))}return zo(this,e-se((at(),jw)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():jw,e),t,i)},o.Uh=function(e,t,i){var r;switch(t){case 0:return!this.a&&(this.a=new Ft(this,0)),hy(this.a,e,i);case 1:return!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),qM(this.b,e,i);case 2:return!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),qM(this.c,e,i);case 5:return!this.a&&(this.a=new Ft(this,0)),ASn($c(this.a,(at(),$9)),e,i)}return r=u($n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():(at(),jw),t),69),r.wk().Ak(this,rQ(this),t-se((at(),jw)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new Ft(this,0)),!TM($c(this.a,(at(),wE)));case 4:return!this.a&&(this.a=new Ft(this,0)),!TM($c(this.a,(at(),gE)));case 5:return!this.a&&(this.a=new Ft(this,0)),!TM($c(this.a,(at(),$9)));case 6:return!this.a&&(this.a=new Ft(this,0)),!TM($c(this.a,(at(),x9)))}return Uo(this,e-se((at(),jw)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():jw,e))},o.bi=function(e,t){switch(e){case 0:!this.a&&(this.a=new Ft(this,0)),F7(this.a,t);return;case 1:!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),CC(this.b,t);return;case 2:!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),CC(this.c,t);return;case 3:!this.a&&(this.a=new Ft(this,0)),cp($c(this.a,(at(),wE))),!this.a&&(this.a=new Ft(this,0)),S6($c(this.a,wE),u(t,16));return;case 4:!this.a&&(this.a=new Ft(this,0)),cp($c(this.a,(at(),gE))),!this.a&&(this.a=new Ft(this,0)),S6($c(this.a,gE),u(t,16));return;case 5:!this.a&&(this.a=new Ft(this,0)),cp($c(this.a,(at(),$9))),!this.a&&(this.a=new Ft(this,0)),S6($c(this.a,$9),u(t,16));return;case 6:!this.a&&(this.a=new Ft(this,0)),cp($c(this.a,(at(),x9))),!this.a&&(this.a=new Ft(this,0)),S6($c(this.a,x9),u(t,16));return}Jo(this,e-se((at(),jw)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():jw,e),t)},o.ii=function(){return at(),jw},o.ki=function(e){switch(e){case 0:!this.a&&(this.a=new Ft(this,0)),me(this.a);return;case 1:!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new Ft(this,0)),cp($c(this.a,(at(),wE)));return;case 4:!this.a&&(this.a=new Ft(this,0)),cp($c(this.a,(at(),gE)));return;case 5:!this.a&&(this.a=new Ft(this,0)),cp($c(this.a,(at(),$9)));return;case 6:!this.a&&(this.a=new Ft(this,0)),cp($c(this.a,(at(),x9)));return}Wo(this,e-se((at(),jw)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():jw,e))},o.Ib=function(){var e;return this.j&4?Hs(this):(e=new ls(Hs(this)),e.a+=" (mixed: ",E6(e,this.a),e.a+=")",e.a)},w(oi,"XMLTypeDocumentRootImpl",683),b(2028,720,{110:1,94:1,93:1,479:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},S6n),o.ri=function(e,t){switch(e.hk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:Jr(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return Ae(t);case 6:return fae(u(t,195));case 12:case 47:case 49:case 11:return IGn(this,e,t);case 13:return t==null?null:kOe(u(t,247));case 15:case 14:return t==null?null:T0e($(B(t)));case 17:return TFn((at(),t));case 18:return TFn(t);case 21:case 20:return t==null?null:C0e(u(t,161).a);case 27:return hae(u(t,195));case 30:return BBn((at(),u(t,15)));case 31:return BBn(u(t,15));case 40:return aae((at(),t));case 42:return CFn((at(),t));case 43:return CFn(t);case 59:case 48:return lae((at(),t));default:throw T(new Gn(nv+e.xe()+Yb))}},o.si=function(e){var t,i,r,c,s;switch(e.G==-1&&(e.G=(i=jo(e),i?f1(i.vi(),e):-1)),e.G){case 0:return t=new ez,t;case 1:return r=new R6n,r;case 2:return c=new djn,c;case 3:return s=new bjn,s;default:throw T(new Gn(hF+e.zb+Yb))}},o.ti=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;switch(e.hk()){case 5:case 52:case 4:return t;case 6:return m9e(t);case 8:case 7:return t==null?null:rye(t);case 9:return t==null?null:lk(So((r=Rc(t,!0),r.length>0&&(zn(0,r.length),r.charCodeAt(0)==43)?(zn(1,r.length+1),r.substr(1)):r),-128,127)<<24>>24);case 10:return t==null?null:lk(So((c=Rc(t,!0),c.length>0&&(zn(0,c.length),c.charCodeAt(0)==43)?(zn(1,c.length+1),c.substr(1)):c),-128,127)<<24>>24);case 11:return Ae(Ub(this,(at(),use),t));case 12:return Ae(Ub(this,(at(),ose),t));case 13:return t==null?null:new Tz(Rc(t,!0));case 15:case 14:return STe(t);case 16:return Ae(Ub(this,(at(),sse),t));case 17:return _Kn((at(),t));case 18:return _Kn(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Rc(t,!0);case 21:case 20:return RTe(t);case 22:return Ae(Ub(this,(at(),fse),t));case 23:return Ae(Ub(this,(at(),hse),t));case 24:return Ae(Ub(this,(at(),lse),t));case 25:return Ae(Ub(this,(at(),ase),t));case 26:return Ae(Ub(this,(at(),dse),t));case 27:return u9e(t);case 30:return HKn((at(),t));case 31:return HKn(t);case 32:return t==null?null:Y(So((d=Rc(t,!0),d.length>0&&(zn(0,d.length),d.charCodeAt(0)==43)?(zn(1,d.length+1),d.substr(1)):d),Wi,et));case 33:return t==null?null:new q1((g=Rc(t,!0),g.length>0&&(zn(0,g.length),g.charCodeAt(0)==43)?(zn(1,g.length+1),g.substr(1)):g));case 34:return t==null?null:Y(So((p=Rc(t,!0),p.length>0&&(zn(0,p.length),p.charCodeAt(0)==43)?(zn(1,p.length+1),p.substr(1)):p),Wi,et));case 36:return t==null?null:Tl(zS((m=Rc(t,!0),m.length>0&&(zn(0,m.length),m.charCodeAt(0)==43)?(zn(1,m.length+1),m.substr(1)):m)));case 37:return t==null?null:Tl(zS((k=Rc(t,!0),k.length>0&&(zn(0,k.length),k.charCodeAt(0)==43)?(zn(1,k.length+1),k.substr(1)):k)));case 40:return i7e((at(),t));case 42:return qKn((at(),t));case 43:return qKn(t);case 44:return t==null?null:new q1((j=Rc(t,!0),j.length>0&&(zn(0,j.length),j.charCodeAt(0)==43)?(zn(1,j.length+1),j.substr(1)):j));case 45:return t==null?null:new q1((P=Rc(t,!0),P.length>0&&(zn(0,P.length),P.charCodeAt(0)==43)?(zn(1,P.length+1),P.substr(1)):P));case 46:return Rc(t,!1);case 47:return Ae(Ub(this,(at(),bse),t));case 59:case 48:return t7e((at(),t));case 49:return Ae(Ub(this,(at(),wse),t));case 50:return t==null?null:o4(So((O=Rc(t,!0),O.length>0&&(zn(0,O.length),O.charCodeAt(0)==43)?(zn(1,O.length+1),O.substr(1)):O),QP,32767)<<16>>16);case 51:return t==null?null:o4(So((s=Rc(t,!0),s.length>0&&(zn(0,s.length),s.charCodeAt(0)==43)?(zn(1,s.length+1),s.substr(1)):s),QP,32767)<<16>>16);case 53:return Ae(Ub(this,(at(),gse),t));case 55:return t==null?null:o4(So((f=Rc(t,!0),f.length>0&&(zn(0,f.length),f.charCodeAt(0)==43)?(zn(1,f.length+1),f.substr(1)):f),QP,32767)<<16>>16);case 56:return t==null?null:o4(So((h=Rc(t,!0),h.length>0&&(zn(0,h.length),h.charCodeAt(0)==43)?(zn(1,h.length+1),h.substr(1)):h),QP,32767)<<16>>16);case 57:return t==null?null:Tl(zS((l=Rc(t,!0),l.length>0&&(zn(0,l.length),l.charCodeAt(0)==43)?(zn(1,l.length+1),l.substr(1)):l)));case 58:return t==null?null:Tl(zS((a=Rc(t,!0),a.length>0&&(zn(0,a.length),a.charCodeAt(0)==43)?(zn(1,a.length+1),a.substr(1)):a)));case 60:return t==null?null:Y(So((i=Rc(t,!0),i.length>0&&(zn(0,i.length),i.charCodeAt(0)==43)?(zn(1,i.length+1),i.substr(1)):i),Wi,et));case 61:return t==null?null:Y(So(Rc(t,!0),Wi,et));default:throw T(new Gn(nv+e.xe()+Yb))}};var mse,obn,vse,sbn;w(oi,"XMLTypeFactoryImpl",2028),b(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},aOn),o.N=!1,o.O=!1;var kse=!1;w(oi,"XMLTypePackageImpl",594),b(1961,1,{851:1},P6n),o.Kk=function(){return Den(),Ise},w(oi,"XMLTypePackageImpl/1",1961),b(1970,1,ze,I6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/10",1970),b(1971,1,ze,O6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/11",1971),b(1972,1,ze,A6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/12",1972),b(1973,1,ze,L6n),o.fk=function(e){return $w(e)},o.gk=function(e){return F(si,J,345,e,7,1)},w(oi,"XMLTypePackageImpl/13",1973),b(1974,1,ze,N6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/14",1974),b(1975,1,ze,D6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,k0,15,e,0,1)},w(oi,"XMLTypePackageImpl/15",1975),b(1976,1,ze,$6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,k0,15,e,0,1)},w(oi,"XMLTypePackageImpl/16",1976),b(1977,1,ze,x6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/17",1977),b(1978,1,ze,K6n),o.fk=function(e){return L(e,161)},o.gk=function(e){return F(ov,J,161,e,0,1)},w(oi,"XMLTypePackageImpl/18",1978),b(1979,1,ze,B6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/19",1979),b(1962,1,ze,F6n),o.fk=function(e){return L(e,857)},o.gk=function(e){return F(dE,Rn,857,e,0,1)},w(oi,"XMLTypePackageImpl/2",1962),b(1980,1,ze,_6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/20",1980),b(1981,1,ze,H6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/21",1981),b(1982,1,ze,q6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/22",1982),b(1983,1,ze,U6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/23",1983),b(1984,1,ze,G6n),o.fk=function(e){return L(e,195)},o.gk=function(e){return F(Ru,J,195,e,0,2)},w(oi,"XMLTypePackageImpl/24",1984),b(1985,1,ze,z6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/25",1985),b(1986,1,ze,X6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/26",1986),b(1987,1,ze,V6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,k0,15,e,0,1)},w(oi,"XMLTypePackageImpl/27",1987),b(1988,1,ze,W6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,k0,15,e,0,1)},w(oi,"XMLTypePackageImpl/28",1988),b(1989,1,ze,J6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/29",1989),b(1963,1,ze,Q6n),o.fk=function(e){return L(e,681)},o.gk=function(e){return F(SA,Rn,2119,e,0,1)},w(oi,"XMLTypePackageImpl/3",1963),b(1990,1,ze,Y6n),o.fk=function(e){return L(e,17)},o.gk=function(e){return F(Gi,J,17,e,0,1)},w(oi,"XMLTypePackageImpl/30",1990),b(1991,1,ze,Z6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/31",1991),b(1992,1,ze,n5n),o.fk=function(e){return L(e,168)},o.gk=function(e){return F(nw,J,168,e,0,1)},w(oi,"XMLTypePackageImpl/32",1992),b(1993,1,ze,e5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/33",1993),b(1994,1,ze,t5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/34",1994),b(1995,1,ze,i5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/35",1995),b(1996,1,ze,r5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/36",1996),b(1997,1,ze,c5n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,k0,15,e,0,1)},w(oi,"XMLTypePackageImpl/37",1997),b(1998,1,ze,u5n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,k0,15,e,0,1)},w(oi,"XMLTypePackageImpl/38",1998),b(1999,1,ze,o5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/39",1999),b(1964,1,ze,s5n),o.fk=function(e){return L(e,682)},o.gk=function(e){return F(bE,Rn,2120,e,0,1)},w(oi,"XMLTypePackageImpl/4",1964),b(2e3,1,ze,f5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/40",2e3),b(2001,1,ze,h5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/41",2001),b(2002,1,ze,l5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/42",2002),b(2003,1,ze,a5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/43",2003),b(2004,1,ze,d5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/44",2004),b(2005,1,ze,b5n),o.fk=function(e){return L(e,191)},o.gk=function(e){return F(ew,J,191,e,0,1)},w(oi,"XMLTypePackageImpl/45",2005),b(2006,1,ze,w5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/46",2006),b(2007,1,ze,g5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/47",2007),b(2008,1,ze,p5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/48",2008),b(2009,1,ze,m5n),o.fk=function(e){return L(e,191)},o.gk=function(e){return F(ew,J,191,e,0,1)},w(oi,"XMLTypePackageImpl/49",2009),b(1965,1,ze,v5n),o.fk=function(e){return L(e,683)},o.gk=function(e){return F(cbn,Rn,2121,e,0,1)},w(oi,"XMLTypePackageImpl/5",1965),b(2010,1,ze,k5n),o.fk=function(e){return L(e,168)},o.gk=function(e){return F(nw,J,168,e,0,1)},w(oi,"XMLTypePackageImpl/50",2010),b(2011,1,ze,y5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/51",2011),b(2012,1,ze,j5n),o.fk=function(e){return L(e,17)},o.gk=function(e){return F(Gi,J,17,e,0,1)},w(oi,"XMLTypePackageImpl/52",2012),b(1966,1,ze,E5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/6",1966),b(1967,1,ze,M5n),o.fk=function(e){return L(e,195)},o.gk=function(e){return F(Ru,J,195,e,0,2)},w(oi,"XMLTypePackageImpl/7",1967),b(1968,1,ze,T5n),o.fk=function(e){return Dw(e)},o.gk=function(e){return F(zt,J,484,e,8,1)},w(oi,"XMLTypePackageImpl/8",1968),b(1969,1,ze,C5n),o.fk=function(e){return L(e,222)},o.gk=function(e){return F(p3,J,222,e,0,1)},w(oi,"XMLTypePackageImpl/9",1969);var nh,A1,R9,PA,I;b(55,63,Il,Ne),w(p1,"RegEx/ParseException",55),b(836,1,{},tG),o.bm=function(e){return e<this.j&&Xi(this.i,e)==63},o.cm=function(){var e,t,i,r,c;if(this.c!=10)throw T(new Ne($e((Oe(),qP))));switch(e=this.a,e){case 101:e=27;break;case 102:e=12;break;case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 120:if(Ze(this),this.c!=0)throw T(new Ne($e((Oe(),g1))));if(this.a==123){c=0,i=0;do{if(Ze(this),this.c!=0)throw T(new Ne($e((Oe(),g1))));if((c=bd(this.a))<0)break;if(i>i*16)throw T(new Ne($e((Oe(),qWn))));i=i*16+c}while(!0);if(this.a!=125)throw T(new Ne($e((Oe(),UWn))));if(i>rv)throw T(new Ne($e((Oe(),GWn))));e=i}else{if(c=0,this.c!=0||(c=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(i=c,Ze(this),this.c!=0||(c=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));i=i*16+c,e=i}break;case 117:if(r=0,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));t=t*16+r,e=t;break;case 118:if(Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,t>rv)throw T(new Ne($e((Oe(),"parser.descappe.4"))));e=t;break;case 65:case 90:case 122:throw T(new Ne($e((Oe(),zWn))))}return e},o.dm=function(e){var t,i;switch(e){case 100:i=(this.e&32)==32?fa("Nd",!0):(nt(),IA);break;case 68:i=(this.e&32)==32?fa("Nd",!1):(nt(),bbn);break;case 119:i=(this.e&32)==32?fa("IsWord",!0):(nt(),Uv);break;case 87:i=(this.e&32)==32?fa("IsWord",!1):(nt(),gbn);break;case 115:i=(this.e&32)==32?fa("IsSpace",!0):(nt(),_3);break;case 83:i=(this.e&32)==32?fa("IsSpace",!1):(nt(),wbn);break;default:throw T(new ec((t=e,zJn+t.toString(16))))}return i},o.em=function(e){var t,i,r,c,s,f,h,l,a,d,g,p;for(this.b=1,Ze(this),t=null,this.c==0&&this.a==94?(Ze(this),e?d=(nt(),nt(),new yo(5)):(t=(nt(),nt(),new yo(4)),xc(t,0,rv),d=new yo(4))):d=(nt(),nt(),new yo(4)),c=!0;(p=this.c)!=1&&!(p==0&&this.a==93&&!c);){if(c=!1,i=this.a,r=!1,p==10)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:g0(d,this.dm(i)),r=!0;break;case 105:case 73:case 99:case 67:i=this.um(d,i),i<0&&(r=!0);break;case 112:case 80:if(g=Lnn(this,i),!g)throw T(new Ne($e((Oe(),EF))));g0(d,g),r=!0;break;default:i=this.cm()}else if(p==20){if(f=bm(this.i,58,this.d),f<0)throw T(new Ne($e((Oe(),$cn))));if(h=!0,Xi(this.i,this.d)==94&&(++this.d,h=!1),s=qo(this.i,this.d,f),l=pDn(s,h,(this.e&512)==512),!l)throw T(new Ne($e((Oe(),KWn))));if(g0(d,l),r=!0,f+1>=this.j||Xi(this.i,f+1)!=93)throw T(new Ne($e((Oe(),$cn))));this.d=f+2}if(Ze(this),!r)if(this.c!=0||this.a!=45)xc(d,i,i);else{if(Ze(this),(p=this.c)==1)throw T(new Ne($e((Oe(),UP))));p==0&&this.a==93?(xc(d,i,i),xc(d,45,45)):(a=this.a,p==10&&(a=this.cm()),Ze(this),xc(d,i,a))}(this.e&Gs)==Gs&&this.c==0&&this.a==44&&Ze(this)}if(this.c==1)throw T(new Ne($e((Oe(),UP))));return t&&(z5(t,d),d=t),Gg(d),U5(d),this.b=0,Ze(this),d},o.fm=function(){var e,t,i,r;for(i=this.em(!1);(r=this.c)!=7;)if(e=this.a,r==0&&(e==45||e==38)||r==4){if(Ze(this),this.c!=9)throw T(new Ne($e((Oe(),FWn))));if(t=this.em(!1),r==4)g0(i,t);else if(e==45)z5(i,t);else if(e==38)TGn(i,t);else throw T(new ec("ASSERT"))}else throw T(new Ne($e((Oe(),_Wn))));return Ze(this),i},o.gm=function(){var e,t;return e=this.a-48,t=(nt(),nt(),new OD(12,null,e)),!this.g&&(this.g=new RE),xE(this.g,new RG(e)),Ze(this),t},o.hm=function(){return Ze(this),nt(),Ese},o.im=function(){return Ze(this),nt(),jse},o.jm=function(){throw T(new Ne($e((Oe(),is))))},o.km=function(){throw T(new Ne($e((Oe(),is))))},o.lm=function(){return Ze(this),y6e()},o.mm=function(){return Ze(this),nt(),Tse},o.nm=function(){return Ze(this),nt(),Sse},o.om=function(){var e;if(this.d>=this.j||((e=Xi(this.i,this.d++))&65504)!=64)throw T(new Ne($e((Oe(),$Wn))));return Ze(this),nt(),nt(),new Dh(0,e-64)},o.pm=function(){return Ze(this),MIe()},o.qm=function(){return Ze(this),nt(),Pse},o.rm=function(){var e;return e=(nt(),nt(),new Dh(0,105)),Ze(this),e},o.sm=function(){return Ze(this),nt(),Cse},o.tm=function(){return Ze(this),nt(),Mse},o.um=function(e,t){return this.cm()},o.vm=function(){return Ze(this),nt(),abn},o.wm=function(){var e,t,i,r,c;if(this.d+1>=this.j)throw T(new Ne($e((Oe(),LWn))));if(r=-1,t=null,e=Xi(this.i,this.d),49<=e&&e<=57){if(r=e-48,!this.g&&(this.g=new RE),xE(this.g,new RG(r)),++this.d,Xi(this.i,this.d)!=41)throw T(new Ne($e((Oe(),Sd))));++this.d}else switch(e==63&&--this.d,Ze(this),t=ctn(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw T(new Ne($e((Oe(),Sd))));break;default:throw T(new Ne($e((Oe(),NWn))))}if(Ze(this),c=xb(this),i=null,c.e==2){if(c.Pm()!=2)throw T(new Ne($e((Oe(),DWn))));i=c.Lm(1),c=c.Lm(0)}if(this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),nt(),nt(),new YDn(r,t,c,i)},o.xm=function(){return Ze(this),nt(),dbn},o.ym=function(){var e;if(Ze(this),e=bT(24,xb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.zm=function(){var e;if(Ze(this),e=bT(20,xb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Am=function(){var e;if(Ze(this),e=bT(22,xb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Bm=function(){var e,t,i,r,c;for(e=0,i=0,t=-1;this.d<this.j&&(t=Xi(this.i,this.d),c=Knn(t),c!=0);)e|=c,++this.d;if(this.d>=this.j)throw T(new Ne($e((Oe(),Ncn))));if(t==45){for(++this.d;this.d<this.j&&(t=Xi(this.i,this.d),c=Knn(t),c!=0);)i|=c,++this.d;if(this.d>=this.j)throw T(new Ne($e((Oe(),Ncn))))}if(t==58){if(++this.d,Ze(this),r=XIn(xb(this),e,i),this.c!=7)throw T(new Ne($e((Oe(),Sd))));Ze(this)}else if(t==41)++this.d,Ze(this),r=XIn(xb(this),e,i);else throw T(new Ne($e((Oe(),AWn))));return r},o.Cm=function(){var e;if(Ze(this),e=bT(21,xb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Dm=function(){var e;if(Ze(this),e=bT(23,xb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Em=function(){var e,t;if(Ze(this),e=this.f++,t=rD(xb(this),e),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),t},o.Fm=function(){var e;if(Ze(this),e=rD(xb(this),0),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Gm=function(e){return Ze(this),this.c==5?(Ze(this),cT(e,(nt(),nt(),new Xw(9,e)))):cT(e,(nt(),nt(),new Xw(3,e)))},o.Hm=function(e){var t;return Ze(this),t=(nt(),nt(),new C6(2)),this.c==5?(Ze(this),pd(t,B9),pd(t,e)):(pd(t,e),pd(t,B9)),t},o.Im=function(e){return Ze(this),this.c==5?(Ze(this),nt(),nt(),new Xw(9,e)):(nt(),nt(),new Xw(3,e))},o.a=0,o.b=0,o.c=0,o.d=0,o.e=0,o.f=1,o.g=null,o.j=0,w(p1,"RegEx/RegexParser",836),b(1947,836,{},wjn),o.bm=function(e){return!1},o.cm=function(){return den(this)},o.dm=function(e){return I4(e)},o.em=function(e){return kzn(this)},o.fm=function(){throw T(new Ne($e((Oe(),is))))},o.gm=function(){throw T(new Ne($e((Oe(),is))))},o.hm=function(){throw T(new Ne($e((Oe(),is))))},o.im=function(){throw T(new Ne($e((Oe(),is))))},o.jm=function(){return Ze(this),I4(67)},o.km=function(){return Ze(this),I4(73)},o.lm=function(){throw T(new Ne($e((Oe(),is))))},o.mm=function(){throw T(new Ne($e((Oe(),is))))},o.nm=function(){throw T(new Ne($e((Oe(),is))))},o.om=function(){return Ze(this),I4(99)},o.pm=function(){throw T(new Ne($e((Oe(),is))))},o.qm=function(){throw T(new Ne($e((Oe(),is))))},o.rm=function(){return Ze(this),I4(105)},o.sm=function(){throw T(new Ne($e((Oe(),is))))},o.tm=function(){throw T(new Ne($e((Oe(),is))))},o.um=function(e,t){return g0(e,I4(t)),-1},o.vm=function(){return Ze(this),nt(),nt(),new Dh(0,94)},o.wm=function(){throw T(new Ne($e((Oe(),is))))},o.xm=function(){return Ze(this),nt(),nt(),new Dh(0,36)},o.ym=function(){throw T(new Ne($e((Oe(),is))))},o.zm=function(){throw T(new Ne($e((Oe(),is))))},o.Am=function(){throw T(new Ne($e((Oe(),is))))},o.Bm=function(){throw T(new Ne($e((Oe(),is))))},o.Cm=function(){throw T(new Ne($e((Oe(),is))))},o.Dm=function(){throw T(new Ne($e((Oe(),is))))},o.Em=function(){var e;if(Ze(this),e=rD(xb(this),0),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Fm=function(){throw T(new Ne($e((Oe(),is))))},o.Gm=function(e){return Ze(this),cT(e,(nt(),nt(),new Xw(3,e)))},o.Hm=function(e){var t;return Ze(this),t=(nt(),nt(),new C6(2)),pd(t,e),pd(t,B9),t},o.Im=function(e){return Ze(this),nt(),nt(),new Xw(3,e)};var X2=null,Hv=null;w(p1,"RegEx/ParserForXMLSchema",1947),b(122,1,cv,Wd),o.Jm=function(e){throw T(new ec("Not supported."))},o.Km=function(){return-1},o.Lm=function(e){return null},o.Mm=function(){return null},o.Nm=function(e){},o.Om=function(e){},o.Pm=function(){return 0},o.Ib=function(){return this.Qm(0)},o.Qm=function(e){return this.e==11?".":""},o.e=0;var fbn,qv,K9,yse,hbn,rg=null,IA,PU=null,lbn,B9,IU=null,abn,dbn,bbn,wbn,gbn,jse,_3,Ese,Mse,Tse,Cse,Uv,Sse,Pse,DDe=w(p1,"RegEx/Token",122);b(138,122,{3:1,138:1,122:1},yo),o.Qm=function(e){var t,i,r;if(this.e==4)if(this==lbn)i=".";else if(this==IA)i="\\d";else if(this==Uv)i="\\w";else if(this==_3)i="\\s";else{for(r=new Hl,r.a+="[",t=0;t<this.b.length;t+=2)e&Gs&&t>0&&(r.a+=","),this.b[t]===this.b[t+1]?Er(r,dy(this.b[t])):(Er(r,dy(this.b[t])),r.a+="-",Er(r,dy(this.b[t+1])));r.a+="]",i=r.a}else if(this==bbn)i="\\D";else if(this==gbn)i="\\W";else if(this==wbn)i="\\S";else{for(r=new Hl,r.a+="[^",t=0;t<this.b.length;t+=2)e&Gs&&t>0&&(r.a+=","),this.b[t]===this.b[t+1]?Er(r,dy(this.b[t])):(Er(r,dy(this.b[t])),r.a+="-",Er(r,dy(this.b[t+1])));r.a+="]",i=r.a}return i},o.a=!1,o.c=!1,w(p1,"RegEx/RangeToken",138),b(592,1,{592:1},RG),o.a=0,w(p1,"RegEx/RegexParser/ReferencePosition",592),b(591,1,{3:1,591:1},OEn),o.Fb=function(e){var t;return e==null||!L(e,591)?!1:(t=u(e,591),Sn(this.b,t.b)&&this.a==t.a)},o.Hb=function(){return t1(this.b+"/"+uen(this.a))},o.Ib=function(){return this.c.Qm(this.a)},o.a=0,w(p1,"RegEx/RegularExpression",591),b(228,122,cv,Dh),o.Km=function(){return this.a},o.Qm=function(e){var t,i,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r="\\"+NN(this.a&ui);break;case 12:r="\\f";break;case 10:r="\\n";break;case 13:r="\\r";break;case 9:r="\\t";break;case 27:r="\\e";break;default:this.a>=hr?(i=(t=this.a>>>0,"0"+t.toString(16)),r="\\v"+qo(i,i.length-6,i.length)):r=""+NN(this.a&ui)}break;case 8:this==abn||this==dbn?r=""+NN(this.a&ui):r="\\"+NN(this.a&ui);break;default:r=null}return r},o.a=0,w(p1,"RegEx/Token/CharToken",228),b(318,122,cv,Xw),o.Lm=function(e){return this.a},o.Nm=function(e){this.b=e},o.Om=function(e){this.c=e},o.Pm=function(){return 1},o.Qm=function(e){var t;if(this.e==3)if(this.c<0&&this.b<0)t=this.a.Qm(e)+"*";else if(this.c==this.b)t=this.a.Qm(e)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)t=this.a.Qm(e)+"{"+this.c+",}";else throw T(new ec("Token#toString(): CLOSURE "+this.c+ur+this.b));else if(this.c<0&&this.b<0)t=this.a.Qm(e)+"*?";else if(this.c==this.b)t=this.a.Qm(e)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)t=this.a.Qm(e)+"{"+this.c+",}?";else throw T(new ec("Token#toString(): NONGREEDYCLOSURE "+this.c+ur+this.b));return t},o.b=0,o.c=0,w(p1,"RegEx/Token/ClosureToken",318),b(837,122,cv,CW),o.Lm=function(e){return e==0?this.a:this.b},o.Pm=function(){return 2},o.Qm=function(e){var t;return this.b.e==3&&this.b.Lm(0)==this.a?t=this.a.Qm(e)+"+":this.b.e==9&&this.b.Lm(0)==this.a?t=this.a.Qm(e)+"+?":t=this.a.Qm(e)+(""+this.b.Qm(e)),t},w(p1,"RegEx/Token/ConcatToken",837),b(1945,122,cv,YDn),o.Lm=function(e){if(e==0)return this.d;if(e==1)return this.b;throw T(new ec("Internal Error: "+e))},o.Pm=function(){return this.b?2:1},o.Qm=function(e){var t;return this.c>0?t="(?("+this.c+")":this.a.e==8?t="(?("+this.a+")":t="(?"+this.a,this.b?t+=this.d+"|"+this.b+")":t+=this.d+")",t},o.c=0,w(p1,"RegEx/Token/ConditionToken",1945),b(1946,122,cv,HAn),o.Lm=function(e){return this.b},o.Pm=function(){return 1},o.Qm=function(e){return"(?"+(this.a==0?"":uen(this.a))+(this.c==0?"":uen(this.c))+":"+this.b.Qm(e)+")"},o.a=0,o.c=0,w(p1,"RegEx/Token/ModifierToken",1946),b(838,122,cv,xW),o.Lm=function(e){return this.a},o.Pm=function(){return 1},o.Qm=function(e){var t;switch(t=null,this.e){case 6:this.b==0?t="(?:"+this.a.Qm(e)+")":t="("+this.a.Qm(e)+")";break;case 20:t="(?="+this.a.Qm(e)+")";break;case 21:t="(?!"+this.a.Qm(e)+")";break;case 22:t="(?<="+this.a.Qm(e)+")";break;case 23:t="(?<!"+this.a.Qm(e)+")";break;case 24:t="(?>"+this.a.Qm(e)+")"}return t},o.b=0,w(p1,"RegEx/Token/ParenToken",838),b(530,122,{3:1,122:1,530:1},OD),o.Mm=function(){return this.b},o.Qm=function(e){return this.e==12?"\\"+this.a:gTe(this.b)},o.a=0,w(p1,"RegEx/Token/StringToken",530),b(476,122,cv,C6),o.Jm=function(e){pd(this,e)},o.Lm=function(e){return u(mb(this.a,e),122)},o.Pm=function(){return this.a?this.a.a.c.length:0},o.Qm=function(e){var t,i,r,c,s;if(this.e==1){if(this.a.a.c.length==2)t=u(mb(this.a,0),122),i=u(mb(this.a,1),122),i.e==3&&i.Lm(0)==t?c=t.Qm(e)+"+":i.e==9&&i.Lm(0)==t?c=t.Qm(e)+"+?":c=t.Qm(e)+(""+i.Qm(e));else{for(s=new Hl,r=0;r<this.a.a.c.length;r++)Er(s,u(mb(this.a,r),122).Qm(e));c=s.a}return c}if(this.a.a.c.length==2&&u(mb(this.a,1),122).e==7)c=u(mb(this.a,0),122).Qm(e)+"?";else if(this.a.a.c.length==2&&u(mb(this.a,0),122).e==7)c=u(mb(this.a,1),122).Qm(e)+"??";else{for(s=new Hl,Er(s,u(mb(this.a,0),122).Qm(e)),r=1;r<this.a.a.c.length;r++)s.a+="|",Er(s,u(mb(this.a,r),122).Qm(e));c=s.a}return c},w(p1,"RegEx/Token/UnionToken",476),b(527,1,{600:1},Y9),o.Ib=function(){return this.a.b},w(JJn,"XMLTypeUtil/PatternMatcherImpl",527),b(1707,1527,{},S5n);var Ise;w(JJn,"XMLTypeValidator",1707),b(270,1,qh,Qa),o.Jc=function(e){qi(this,e)},o.Kc=function(){return(this.b-this.a)*this.c<0?Ra:new U1(this)},o.a=0,o.b=0,o.c=0;var Ra;w(nun,"ExclusiveRange",270),b(1084,1,Hh,P5n),o.Rb=function(e){u(e,17),Qle()},o.Nb=function(e){_i(this,e)},o.Pb=function(){return Bhe()},o.Ub=function(){return Fhe()},o.Wb=function(e){u(e,17),Zle()},o.Ob=function(){return!1},o.Sb=function(){return!1},o.Tb=function(){return-1},o.Vb=function(){return-1},o.Qb=function(){throw T(new Fl(ZJn))},w(nun,"ExclusiveRange/1",1084),b(258,1,Hh,U1),o.Rb=function(e){u(e,17),Yle()},o.Nb=function(e){_i(this,e)},o.Pb=function(){return z6e(this)},o.Ub=function(){return Dme(this)},o.Wb=function(e){u(e,17),n1e()},o.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},o.Sb=function(){return this.b>0},o.Tb=function(){return this.b},o.Vb=function(){return this.b-1},o.Qb=function(){throw T(new Fl(ZJn))},o.a=0,o.b=0,w(nun,"ExclusiveRange/RangeIterator",258);var fs=Cm(GP,"C"),ye=Cm(v8,"I"),so=Cm(i3,"Z"),Ka=Cm(k8,"J"),Ru=Cm(g8,"B"),Ii=Cm(p8,"D"),cg=Cm(m8,"F"),V2=Cm(y8,"S"),$De=Dt("org.eclipse.elk.core.labels","ILabelManager"),pbn=Dt(or,"DiagnosticChain"),mbn=Dt(SJn,"ResourceSet"),vbn=w(or,"InvocationTargetException",null),Ose=(_E(),W3e),Ase=Ase=Fke;H4e(Kfe),K4e("permProps",[[["locale","default"],[nQn,"gecko1_8"]],[["locale","default"],[nQn,"safari"]]]),Ase(null,"elk",null)}).call(this)}).call(this,typeof Dse<"u"?Dse:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(Ht,gt,Pr){function Li(Jt,Xe){if(!(Jt instanceof Xe))throw new TypeError("Cannot call a class as a function")}function y(Jt,Xe){if(!Jt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Xe&&(typeof Xe=="object"||typeof Xe=="function")?Xe:Jt}function Wt(Jt,Xe){if(typeof Xe!="function"&&Xe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Xe);Jt.prototype=Object.create(Xe&&Xe.prototype,{constructor:{value:Jt,enumerable:!1,writable:!0,configurable:!0}}),Xe&&(Object.setPrototypeOf?Object.setPrototypeOf(Jt,Xe):Jt.__proto__=Xe)}var Ku=Ht("./elk-api.js").default,qt=function(Jt){Wt(Xe,Jt);function Xe(){var Yi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Li(this,Xe);var Bi=Object.assign({},Yi),En=!1;try{Ht.resolve("web-worker"),En=!0}catch{}if(Yi.workerUrl)if(En){var hu=Ht("web-worker");Bi.workerFactory=function(Ir){return new hu(Ir)}}else console.warn(`Web worker requested but 'web-worker' package not installed.
Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
... Falling back to non-web worker version.`);if(!Bi.workerFactory){var Qc=Ht("./elk-worker.min.js"),Bu=Qc.Worker;Bi.workerFactory=function(Ir){return new Bu(Ir)}}return y(this,(Xe.__proto__||Object.getPrototypeOf(Xe)).call(this,Bi))}return Xe}(Ku);Object.defineProperty(gt.exports,"__esModule",{value:!0}),gt.exports=qt,qt.default=qt},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(Ht,gt,Pr){gt.exports=Worker},{}]},{},[3])(3)})})(Kse);var WDe=Kse.exports;const JDe=KDe(WDe),$se=new JDe;let Tw={};const QDe={};let z3={};const YDe=async function(tt,Kt,Ht,gt,Pr,Li,y){const Ku=Ht.select(`[id="${Kt}"]`).insert("g").attr("class","nodes"),qt=Object.keys(tt);return await Promise.all(qt.map(async function(Jt){const Xe=tt[Jt];let Yi="default";Xe.classes.length>0&&(Yi=Xe.classes.join(" ")),Yi=Yi+" flowchart-label";const Bi=jbn(Xe.styles);let En=Xe.text!==void 0?Xe.text:Xe.id;const hu={width:0,height:0},Qc=[{id:Xe.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:Xe.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:Xe.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:Xe.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let Bu=0,Ir="",Tf={};switch(Xe.type){case"round":Bu=5,Ir="rect";break;case"square":Ir="rect";break;case"diamond":Ir="question",Tf={portConstraints:"FIXED_SIDE"};break;case"hexagon":Ir="hexagon";break;case"odd":Ir="rect_left_inv_arrow";break;case"lean_right":Ir="lean_right";break;case"lean_left":Ir="lean_left";break;case"trapezoid":Ir="trapezoid";break;case"inv_trapezoid":Ir="inv_trapezoid";break;case"odd_right":Ir="rect_left_inv_arrow";break;case"circle":Ir="circle";break;case"ellipse":Ir="ellipse";break;case"stadium":Ir="stadium";break;case"subroutine":Ir="subroutine";break;case"cylinder":Ir="cylinder";break;case"group":Ir="rect";break;case"doublecircle":Ir="doublecircle";break;default:Ir="rect"}const D1={labelStyle:Bi.labelStyle,shape:Ir,labelText:En,labelType:Xe.labelType,rx:Bu,ry:Bu,class:Yi,style:Bi.style,id:Xe.id,link:Xe.link,linkTarget:Xe.linkTarget,tooltip:Pr.db.getTooltip(Xe.id)||"",domId:Pr.db.lookUpDomId(Xe.id),haveCallback:Xe.haveCallback,width:Xe.type==="group"?500:void 0,dir:Xe.dir,type:Xe.type,props:Xe.props,padding:DU().flowchart.padding};let $1,og;if(D1.type!=="group")og=await HDe(Ku,D1,Xe.dir),$1=og.node().getBBox();else{gt.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:x1,bbox:ul}=await qDe(Ku,D1,void 0,!0);hu.width=ul.width,hu.wrappingWidth=DU().flowchart.wrappingWidth,hu.height=ul.height,hu.labelNode=x1.node(),D1.labelData=hu}const X3={id:Xe.id,ports:Xe.type==="diamond"?Qc:[],layoutOptions:Tf,labelText:En,labelData:hu,domId:Pr.db.lookUpDomId(Xe.id),width:$1==null?void 0:$1.width,height:$1==null?void 0:$1.height,type:Xe.type,el:og,parent:Li.parentById[Xe.id]};z3[D1.id]=X3})),y},xse=(tt,Kt,Ht)=>{const gt={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return gt.TD=gt.TB,N1.info("abc88",Ht,Kt,tt),gt[Ht][Kt][tt]},Rse=(tt,Kt,Ht)=>{if(N1.info("getNextPort abc88",{node:tt,edgeDirection:Kt,graphDirection:Ht}),!Tw[tt])switch(Ht){case"TB":case"TD":Tw[tt]={inPosition:"north",outPosition:"south"};break;case"BT":Tw[tt]={inPosition:"south",outPosition:"north"};break;case"RL":Tw[tt]={inPosition:"east",outPosition:"west"};break;case"LR":Tw[tt]={inPosition:"west",outPosition:"east"};break}const gt=Kt==="in"?Tw[tt].inPosition:Tw[tt].outPosition;return Kt==="in"?Tw[tt].inPosition=xse(Tw[tt].inPosition,Kt,Ht):Tw[tt].outPosition=xse(Tw[tt].outPosition,Kt,Ht),gt},ZDe=(tt,Kt)=>{let Ht=tt.start,gt=tt.end;const Pr=Ht,Li=gt,y=z3[Ht],Wt=z3[gt];return!y||!Wt?{source:Ht,target:gt}:(y.type==="diamond"&&(Ht=`${Ht}-${Rse(Ht,"out",Kt)}`),Wt.type==="diamond"&&(gt=`${gt}-${Rse(gt,"in",Kt)}`),{source:Ht,target:gt,sourceId:Pr,targetId:Li})},n$e=function(tt,Kt,Ht,gt){N1.info("abc78 edges = ",tt);const Pr=gt.insert("g").attr("class","edgeLabels");let Li={},y=Kt.db.getDirection(),Wt,Ku;if(tt.defaultStyle!==void 0){const qt=jbn(tt.defaultStyle);Wt=qt.style,Ku=qt.labelStyle}return tt.forEach(function(qt){const Jt="L-"+qt.start+"-"+qt.end;Li[Jt]===void 0?(Li[Jt]=0,N1.info("abc78 new entry",Jt,Li[Jt])):(Li[Jt]++,N1.info("abc78 new entry",Jt,Li[Jt]));let Xe=Jt+"-"+Li[Jt];N1.info("abc78 new link id to be used is",Jt,Xe,Li[Jt]);const Yi="LS-"+qt.start,Bi="LE-"+qt.end,En={style:"",labelStyle:""};switch(En.minlen=qt.length||1,qt.type==="arrow_open"?En.arrowhead="none":En.arrowhead="normal",En.arrowTypeStart="arrow_open",En.arrowTypeEnd="arrow_open",qt.type){case"double_arrow_cross":En.arrowTypeStart="arrow_cross";case"arrow_cross":En.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":En.arrowTypeStart="arrow_point";case"arrow_point":En.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":En.arrowTypeStart="arrow_circle";case"arrow_circle":En.arrowTypeEnd="arrow_circle";break}let hu="",Qc="";switch(qt.stroke){case"normal":hu="fill:none;",Wt!==void 0&&(hu=Wt),Ku!==void 0&&(Qc=Ku),En.thickness="normal",En.pattern="solid";break;case"dotted":En.thickness="normal",En.pattern="dotted",En.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":En.thickness="thick",En.pattern="solid",En.style="stroke-width: 3.5px;fill:none;";break}if(qt.style!==void 0){const og=jbn(qt.style);hu=og.style,Qc=og.labelStyle}En.style=En.style+=hu,En.labelStyle=En.labelStyle+=Qc,qt.interpolate!==void 0?En.curve=ybn(qt.interpolate,NU):tt.defaultInterpolate!==void 0?En.curve=ybn(tt.defaultInterpolate,NU):En.curve=ybn(QDe.curve,NU),qt.text===void 0?qt.style!==void 0&&(En.arrowheadStyle="fill: #333"):(En.arrowheadStyle="fill: #333",En.labelpos="c"),En.labelType=qt.labelType,En.label=qt.text.replace(FDe.lineBreakRegex,`
`),qt.style===void 0&&(En.style=En.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),En.labelStyle=En.labelStyle.replace("color:","fill:"),En.id=Xe,En.classes="flowchart-link "+Yi+" "+Bi;const Bu=UDe(Pr,En),{source:Ir,target:Tf,sourceId:D1,targetId:$1}=ZDe(qt,y);N1.debug("abc78 source and target",Ir,Tf),Ht.edges.push({id:"e"+qt.start+qt.end,sources:[Ir],targets:[Tf],sourceId:D1,targetId:$1,labelEl:Bu,labels:[{width:En.width,height:En.height,orgWidth:En.width,orgHeight:En.height,text:En.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:En})}),Ht},e$e=function(tt,Kt,Ht,gt,Pr){let Li="";gt&&(Li=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Li=Li.replace(/\(/g,"\\("),Li=Li.replace(/\)/g,"\\)")),zDe(tt,Kt,Li,Pr,Ht)},t$e=function(tt,Kt){return N1.info("Extracting classes"),Kt.db.getClasses()},i$e=function(tt){const Kt={parentById:{},childrenById:{}},Ht=tt.getSubGraphs();return N1.info("Subgraphs - ",Ht),Ht.forEach(function(gt){gt.nodes.forEach(function(Pr){Kt.parentById[Pr]=gt.id,Kt.childrenById[gt.id]===void 0&&(Kt.childrenById[gt.id]=[]),Kt.childrenById[gt.id].push(Pr)})}),Ht.forEach(function(gt){gt.id,Kt.parentById[gt.id]!==void 0&&Kt.parentById[gt.id]}),Kt},r$e=function(tt,Kt,Ht){const gt=VDe(tt,Kt,Ht);if(gt===void 0||gt==="root")return{x:0,y:0};const Pr=z3[gt].offset;return{x:Pr.posX,y:Pr.posY}},c$e=function(tt,Kt,Ht,gt,Pr,Li){const y=r$e(Kt.sourceId,Kt.targetId,Pr),Wt=Kt.sections[0].startPoint,Ku=Kt.sections[0].endPoint,Jt=(Kt.sections[0].bendPoints?Kt.sections[0].bendPoints:[]).map(Tf=>[Tf.x+y.x,Tf.y+y.y]),Xe=[[Wt.x+y.x,Wt.y+y.y],...Jt,[Ku.x+y.x,Ku.y+y.y]],{x:Yi,y:Bi}=GDe(Kt.edgeData),En=XDe().x(Yi).y(Bi).curve(NU),hu=tt.insert("path").attr("d",En(Xe)).attr("class","path "+Ht.classes).attr("fill","none"),Qc=tt.insert("g").attr("class","edgeLabel"),Bu=OA(Qc.node().appendChild(Kt.labelEl)),Ir=Bu.node().firstChild.getBoundingClientRect();Bu.attr("width",Ir.width),Bu.attr("height",Ir.height),Qc.attr("transform",`translate(${Kt.labels[0].x+y.x}, ${Kt.labels[0].y+y.y})`),e$e(hu,Ht,gt.type,gt.arrowMarkerAbsolute,Li)},Bse=(tt,Kt)=>{tt.forEach(Ht=>{Ht.children||(Ht.children=[]);const gt=Kt.childrenById[Ht.id];gt&>.forEach(Pr=>{Ht.children.push(z3[Pr])}),Bse(Ht.children,Kt)})},u$e=async function(tt,Kt,Ht,gt){var Pr;gt.db.clear(),z3={},Tw={},gt.db.setGen("gen-2"),gt.parser.parse(tt);const Li=OA("body").append("div").attr("style","height:400px").attr("id","cy");let y={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(N1.info("Drawing flowchart using v3 renderer",$se),gt.db.getDirection()){case"BT":y.layoutOptions["elk.direction"]="UP";break;case"TB":y.layoutOptions["elk.direction"]="DOWN";break;case"LR":y.layoutOptions["elk.direction"]="RIGHT";break;case"RL":y.layoutOptions["elk.direction"]="LEFT";break}const{securityLevel:Ku,flowchart:qt}=DU();let Jt;Ku==="sandbox"&&(Jt=OA("#i"+Kt));const Xe=Ku==="sandbox"?OA(Jt.nodes()[0].contentDocument.body):OA("body"),Yi=Ku==="sandbox"?Jt.nodes()[0].contentDocument:document,Bi=Xe.select(`[id="${Kt}"]`);_De(Bi,["point","circle","cross"],gt.type,Kt);const hu=gt.db.getVertices();let Qc;const Bu=gt.db.getSubGraphs();N1.info("Subgraphs - ",Bu);for(let x1=Bu.length-1;x1>=0;x1--)Qc=Bu[x1],gt.db.addVertex(Qc.id,{text:Qc.title,type:Qc.labelType},"group",void 0,Qc.classes,Qc.dir);const Ir=Bi.insert("g").attr("class","subgraphs"),Tf=i$e(gt.db);y=await YDe(hu,Kt,Xe,Yi,gt,Tf,y);const D1=Bi.insert("g").attr("class","edges edgePath"),$1=gt.db.getEdges();y=n$e($1,gt,y,Bi),Object.keys(z3).forEach(x1=>{const ul=z3[x1];ul.parent||y.children.push(ul),Tf.childrenById[x1]!==void 0&&(ul.labels=[{text:ul.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:ul.labelData.width,height:ul.labelData.height}],delete ul.x,delete ul.y,delete ul.width,delete ul.height)}),Bse(y.children,Tf),N1.info("after layout",JSON.stringify(y,null,2));const X3=await $se.layout(y);Fse(0,0,X3.children,Bi,Ir,gt,0),N1.info("after layout",X3),(Pr=X3.edges)==null||Pr.map(x1=>{c$e(D1,x1,x1.edgeData,gt,Tf,Kt)}),BDe({},Bi,qt.diagramPadding,qt.useMaxWidth),Li.remove()},Fse=(tt,Kt,Ht,gt,Pr,Li,y)=>{Ht.forEach(function(Wt){if(Wt)if(z3[Wt.id].offset={posX:Wt.x+tt,posY:Wt.y+Kt,x:tt,y:Kt,depth:y,width:Wt.width,height:Wt.height},Wt.type==="group"){const Ku=Pr.insert("g").attr("class","subgraph");Ku.insert("rect").attr("class","subgraph subgraph-lvl-"+y%5+" node").attr("x",Wt.x+tt).attr("y",Wt.y+Kt).attr("width",Wt.width).attr("height",Wt.height);const qt=Ku.insert("g").attr("class","label"),Jt=DU().flowchart.htmlLabels?Wt.labelData.width/2:0;qt.attr("transform",`translate(${Wt.labels[0].x+tt+Wt.x+Jt}, ${Wt.labels[0].y+Kt+Wt.y+3})`),qt.node().appendChild(Wt.labelData.labelNode),N1.info("Id (UGH)= ",Wt.type,Wt.labels)}else N1.info("Id (UGH)= ",Wt.id),Wt.el.attr("transform",`translate(${Wt.x+tt+Wt.width/2}, ${Wt.y+Kt+Wt.height/2})`)}),Ht.forEach(function(Wt){Wt&&Wt.type==="group"&&Fse(tt+Wt.x,Kt+Wt.y,Wt.children,gt,Pr,Li,y+1)})},o$e={getClasses:t$e,draw:u$e},s$e=tt=>{let Kt="";for(let Ht=0;Ht<5;Ht++)Kt+=`
.subgraph-lvl-${Ht} {
fill: ${tt[`surface${Ht}`]};
stroke: ${tt[`surfacePeer${Ht}`]};
}
`;return Kt},f$e=tt=>`.label {
font-family: ${tt.fontFamily};
color: ${tt.nodeTextColor||tt.textColor};
}
.cluster-label text {
fill: ${tt.titleColor};
}
.cluster-label span {
color: ${tt.titleColor};
}
.label text,span {
fill: ${tt.nodeTextColor||tt.textColor};
color: ${tt.nodeTextColor||tt.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${tt.mainBkg};
stroke: ${tt.nodeBorder};
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${tt.arrowheadColor};
}
.edgePath .path {
stroke: ${tt.lineColor};
stroke-width: 2.0px;
}
.flowchart-link {
stroke: ${tt.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${tt.edgeLabelBackground};
rect {
opacity: 0.85;
background-color: ${tt.edgeLabelBackground};
fill: ${tt.edgeLabelBackground};
}
text-align: center;
}
.cluster rect {
fill: ${tt.clusterBkg};
stroke: ${tt.clusterBorder};
stroke-width: 1px;
}
.cluster text {
fill: ${tt.titleColor};
}
.cluster span {
color: ${tt.titleColor};
}
/* .cluster div {
color: ${tt.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${tt.fontFamily};
font-size: 12px;
background: ${tt.tertiaryColor};
border: 1px solid ${tt.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${tt.textColor};
}
.subgraph {
stroke-width:2;
rx:3;
}
// .subgraph-lvl-1 {
// fill:#ccc;
// // stroke:black;
// }
.flowchart-label text {
text-anchor: middle;
}
${s$e(tt)}
`,h$e=f$e,m$e={db:xDe,renderer:o$e,parser:RDe,styles:h$e};export{m$e as diagram};
import{p as a,f as o}from"./flowDb-a32fc02b-mKtk886G.js";import{f as t,a as e}from"./styles-a35956af-xNc0fAXX.js";import{aJ as s}from"./index-Hfn5l4aw.js";import"./layout-94e1e85f-BAM45a7u.js";import"./index-20c9cf41-l8R8WdfM.js";import"./edges-9f0d1f4d-OJsHViVb.js";import"./createText-77e212b0-L6d34XR_.js";import"./line-b015ae81-MIcjsH1n.js";import"./array-b7dcf730-Nw74a44z.js";import"./path-39bad7e2-aUcfwwLI.js";const u={parser:a,db:o,renderer:t,styles:e,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,s({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{u as diagram};
import{p as St,f as W}from"./flowDb-a32fc02b-mKtk886G.js";import{G as Lt,h as S,u as Et,r as _t,p as Tt,l as Nt,d as M,f as tt}from"./layout-94e1e85f-BAM45a7u.js";import{ax as m,aE as z,aF as et,at as J,aB as rt,ay as G,aG as V,aH as P,aI as At}from"./index-Hfn5l4aw.js";import{f as It,a as Ct,b as at,s as Bt,c as N,i as nt,d as _,e as st,g as it}from"./styles-a35956af-xNc0fAXX.js";import{l as Mt}from"./line-b015ae81-MIcjsH1n.js";import"./index-20c9cf41-l8R8WdfM.js";import"./edges-9f0d1f4d-OJsHViVb.js";import"./createText-77e212b0-L6d34XR_.js";import"./array-b7dcf730-Nw74a44z.js";import"./path-39bad7e2-aUcfwwLI.js";function Dt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Gt(r,e){return fetch(r,e).then(Dt)}function Rt(r){return(e,t)=>Gt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Pt=Rt("image/svg+xml"),H={normal:$t,vee:Wt,undirected:Vt};function Ut(r){H=r}function $t(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Ht(r,e){for(var t=r.append("text"),n=Yt(e.label).split(`
`),a=0;a<n.length;a++)t.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(n[a]);return N(t,e.labelStyle),t}function Yt(r){for(var e="",t=!1,n,a=0;a<r.length;++a)if(n=r[a],t){switch(n){case"n":e+=`
`;break;default:e+=n}t=!1}else n==="\\"?t=!0:e+=n;return e}function K(r,e,t){var n=e.label,a=r.append("g");e.labelType==="svg"?zt(a,e):typeof n!="string"||e.labelType==="html"?at(a,e):Ht(a,e);var s=a.node().getBBox(),i;switch(t){case"top":i=-e.height/2;break;case"bottom":i=e.height/2-s.height;break;default:i=-s.height/2}return a.attr("transform","translate("+-s.width/2+","+i+")"),a}var Y=function(r,e){var t=e.nodes().filter(function(s){return nt(e,s)}),n=r.selectAll("g.cluster").data(t,function(s){return s});_(n.exit(),e).style("opacity",0).remove();var a=n.enter().append("g").attr("class","cluster").attr("id",function(s){var i=e.node(s);return i.id}).style("opacity",0).each(function(s){var i=e.node(s),o=m(this);m(this).append("rect");var c=o.append("g").attr("class","label");K(c,i,i.clusterLabelPos)});return n=n.merge(a),n=_(n,e).style("opacity",1),n.selectAll("rect").each(function(s){var i=e.node(s),o=m(this);N(o,i.style)}),n};function Xt(r){Y=r}let X=function(r,e){var t=r.selectAll("g.edgeLabel").data(e.edges(),function(a){return st(a)}).classed("update",!0);t.exit().remove(),t.enter().append("g").classed("edgeLabel",!0).style("opacity",0),t=r.selectAll("g.edgeLabel"),t.each(function(a){var s=m(this);s.select(".label").remove();var i=e.edge(a),o=K(s,e.edge(a),0).classed("label",!0),c=o.node().getBBox();i.labelId&&o.attr("id",i.labelId),S(i,"width")||(i.width=c.width),S(i,"height")||(i.height=c.height)});var n;return t.exit?n=t.exit():n=t.selectAll(null),_(n,e).style("opacity",0).remove(),t};function Ft(r){X=r}function O(r,e){return r.intersect(e)}var F=function(r,e,t){var n=r.selectAll("g.edgePath").data(e.edges(),function(i){return st(i)}).classed("update",!0),a=Zt(n,e);Ot(n,e);var s=n.merge!==void 0?n.merge(a):n;return _(s,e).style("opacity",1),s.each(function(i){var o=m(this),c=e.edge(i);c.elem=this,c.id&&o.attr("id",c.id),it(o,c.class,(o.classed("update")?"update ":"")+"edgePath")}),s.selectAll("path.path").each(function(i){var o=e.edge(i);o.arrowheadId=Et("arrowhead");var c=m(this).attr("marker-end",function(){return"url("+Qt(location.href,o.arrowheadId)+")"}).style("fill","none");_(c,e).attr("d",function(d){return Jt(e,d)}),N(c,o.style)}),s.selectAll("defs *").remove(),s.selectAll("defs").each(function(i){var o=e.edge(i),c=t[o.arrowhead];c(m(this),o.arrowheadId,o,"arrowhead")}),s};function qt(r){F=r}function Qt(r,e){var t=r.split("#")[0];return t+"#"+e}function Jt(r,e){var t=r.edge(e),n=r.node(e.v),a=r.node(e.w),s=t.points.slice(1,t.points.length-1);return s.unshift(O(n,s[0])),s.push(O(a,s[s.length-1])),ot(t,s)}function ot(r,e){var t=(Mt||Pt.line)().x(function(n){return n.x}).y(function(n){return n.y});return(t.curve||t.interpolate)(r.curve),t(e)}function Kt(r){var e=r.getBBox(),t=r.ownerSVGElement.getScreenCTM().inverse().multiply(r.getScreenCTM()).translate(e.width/2,e.height/2);return{x:t.e,y:t.f}}function Zt(r,e){var t=r.enter().append("g").attr("class","edgePath").style("opacity",0);return t.append("path").attr("class","path").attr("d",function(n){var a=e.edge(n),s=e.node(n.v).elem,i=_t(a.points.length).map(function(){return Kt(s)});return ot(a,i)}),t.append("defs"),t}function Ot(r,e){var t=r.exit();_(t,e).style("opacity",0).remove()}var q=function(r,e,t){var n=e.nodes().filter(function(i){return!nt(e,i)}),a=r.selectAll("g.node").data(n,function(i){return i}).classed("update",!0);a.exit().remove(),a.enter().append("g").attr("class","node").style("opacity",0),a=r.selectAll("g.node"),a.each(function(i){var o=e.node(i),c=m(this);it(c,o.class,(c.classed("update")?"update ":"")+"node"),c.select("g.label").remove();var d=c.append("g").attr("class","label"),l=K(d,o),v=t[o.shape],h=Tt(l.node().getBBox(),"width","height");o.elem=this,o.id&&c.attr("id",o.id),o.labelId&&d.attr("id",o.labelId),S(o,"width")&&(h.width=o.width),S(o,"height")&&(h.height=o.height),h.width+=o.paddingLeft+o.paddingRight,h.height+=o.paddingTop+o.paddingBottom,d.attr("transform","translate("+(o.paddingLeft-o.paddingRight)/2+","+(o.paddingTop-o.paddingBottom)/2+")");var u=m(this);u.select(".label-container").remove();var p=v(u,h,o).classed("label-container",!0);N(p,o.style);var g=p.node().getBBox();o.width=g.width,o.height=g.height});var s;return a.exit?s=a.exit():s=a.selectAll(null),_(s,e).style("opacity",0).remove(),a};function jt(r){q=r}function te(r,e){var t=r.filter(function(){return!m(this).classed("update")});function n(a){var s=e.node(a);return"translate("+s.x+","+s.y+")"}t.attr("transform",n),_(r,e).style("opacity",1).attr("transform",n),_(t.selectAll("rect"),e).attr("width",function(a){return e.node(a).width}).attr("height",function(a){return e.node(a).height}).attr("x",function(a){var s=e.node(a);return-s.width/2}).attr("y",function(a){var s=e.node(a);return-s.height/2})}function ee(r,e){var t=r.filter(function(){return!m(this).classed("update")});function n(a){var s=e.edge(a);return S(s,"x")?"translate("+s.x+","+s.y+")":""}t.attr("transform",n),_(r,e).style("opacity",1).attr("transform",n)}function re(r,e){var t=r.filter(function(){return!m(this).classed("update")});function n(a){var s=e.node(a);return"translate("+s.x+","+s.y+")"}t.attr("transform",n),_(r,e).style("opacity",1).attr("transform",n)}function lt(r,e,t,n){var a=r.x,s=r.y,i=a-n.x,o=s-n.y,c=Math.sqrt(e*e*o*o+t*t*i*i),d=Math.abs(e*t*i/c);n.x<a&&(d=-d);var l=Math.abs(e*t*o/c);return n.y<s&&(l=-l),{x:a+d,y:s+l}}function ae(r,e,t){return lt(r,e,e,t)}function ne(r,e,t,n){var a,s,i,o,c,d,l,v,h,u,p,g,f,y,k;if(a=e.y-r.y,i=r.x-e.x,c=e.x*r.y-r.x*e.y,h=a*t.x+i*t.y+c,u=a*n.x+i*n.y+c,!(h!==0&&u!==0&&j(h,u))&&(s=n.y-t.y,o=t.x-n.x,d=n.x*t.y-t.x*n.y,l=s*r.x+o*r.y+d,v=s*e.x+o*e.y+d,!(l!==0&&v!==0&&j(l,v))&&(p=a*o-s*i,p!==0)))return g=Math.abs(p/2),f=i*d-o*c,y=f<0?(f-g)/p:(f+g)/p,f=s*c-a*d,k=f<0?(f-g)/p:(f+g)/p,{x:y,y:k}}function j(r,e){return r*e>0}function T(r,e,t){var n=r.x,a=r.y,s=[],i=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;e.forEach(function(p){i=Math.min(i,p.x),o=Math.min(o,p.y)});for(var c=n-r.width/2-i,d=a-r.height/2-o,l=0;l<e.length;l++){var v=e[l],h=e[l<e.length-1?l+1:0],u=ne(r,t,{x:c+v.x,y:d+v.y},{x:c+h.x,y:d+h.y});u&&s.push(u)}return s.length?(s.length>1&&s.sort(function(p,g){var f=p.x-t.x,y=p.y-t.y,k=Math.sqrt(f*f+y*y),C=g.x-t.x,E=g.y-t.y,U=Math.sqrt(C*C+E*E);return k<U?-1:k===U?0:1}),s[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",r),r)}function Z(r,e){var t=r.x,n=r.y,a=e.x-t,s=e.y-n,i=r.width/2,o=r.height/2,c,d;return Math.abs(s)*i>Math.abs(a)*o?(s<0&&(o=-o),c=s===0?0:o*a/s,d=o):(a<0&&(i=-i),c=i,d=a===0?0:i*s/a),{x:t+c,y:n+d}}var Q={rect:ie,ellipse:oe,circle:le,diamond:ce};function se(r){Q=r}function ie(r,e,t){var n=r.insert("rect",":first-child").attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return t.intersect=function(a){return Z(t,a)},n}function oe(r,e,t){var n=e.width/2,a=e.height/2,s=r.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",n).attr("ry",a);return t.intersect=function(i){return lt(t,n,a,i)},s}function le(r,e,t){var n=Math.max(e.width,e.height)/2,a=r.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",n);return t.intersect=function(s){return ae(t,n,s)},a}function ce(r,e,t){var n=e.width*Math.SQRT2/2,a=e.height*Math.SQRT2/2,s=[{x:0,y:-a},{x:-n,y:0},{x:0,y:a},{x:n,y:0}],i=r.insert("polygon",":first-child").attr("points",s.map(function(o){return o.x+","+o.y}).join(" "));return t.intersect=function(o){return T(t,s,o)},i}function de(){var r=function(e,t){fe(t);var n=D(e,"output"),a=D(n,"clusters"),s=D(n,"edgePaths"),i=X(D(n,"edgeLabels"),t),o=q(D(n,"nodes"),t,Q);Nt(t),re(o,t),ee(i,t),F(s,t,H);var c=Y(a,t);te(c,t),pe(t)};return r.createNodes=function(e){return arguments.length?(jt(e),r):q},r.createClusters=function(e){return arguments.length?(Xt(e),r):Y},r.createEdgeLabels=function(e){return arguments.length?(Ft(e),r):X},r.createEdgePaths=function(e){return arguments.length?(qt(e),r):F},r.shapes=function(e){return arguments.length?(se(e),r):Q},r.arrows=function(e){return arguments.length?(Ut(e),r):H},r}var he={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},ue={arrowhead:"normal",curve:P};function fe(r){r.nodes().forEach(function(e){var t=r.node(e);!S(t,"label")&&!r.children(e).length&&(t.label=e),S(t,"paddingX")&&M(t,{paddingLeft:t.paddingX,paddingRight:t.paddingX}),S(t,"paddingY")&&M(t,{paddingTop:t.paddingY,paddingBottom:t.paddingY}),S(t,"padding")&&M(t,{paddingLeft:t.padding,paddingRight:t.padding,paddingTop:t.padding,paddingBottom:t.padding}),M(t,he),tt(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(n){t[n]=Number(t[n])}),S(t,"width")&&(t._prevWidth=t.width),S(t,"height")&&(t._prevHeight=t.height)}),r.edges().forEach(function(e){var t=r.edge(e);S(t,"label")||(t.label=""),M(t,ue)})}function pe(r){tt(r.nodes(),function(e){var t=r.node(e);S(t,"_prevWidth")?t.width=t._prevWidth:delete t.width,S(t,"_prevHeight")?t.height=t._prevHeight:delete t.height,delete t._prevWidth,delete t._prevHeight})}function D(r,e){var t=r.select("g."+e);return t.empty()&&(t=r.append("g").attr("class",e)),t}function ct(r,e,t){const n=e.width,a=e.height,s=(n+a)*.9,i=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}],o=A(r,s,s,i);return t.intersect=function(c){return T(t,i,c)},o}function dt(r,e,t){const a=e.height,s=a/4,i=e.width+2*s,o=[{x:s,y:0},{x:i-s,y:0},{x:i,y:-a/2},{x:i-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],c=A(r,i,a,o);return t.intersect=function(d){return T(t,o,d)},c}function ht(r,e,t){const n=e.width,a=e.height,s=[{x:-a/2,y:0},{x:n,y:0},{x:n,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function ut(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function ft(r,e,t){const n=e.width,a=e.height,s=[{x:2*a/6,y:0},{x:n+a/6,y:0},{x:n-2*a/6,y:-a},{x:-a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function pt(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n+2*a/6,y:0},{x:n-a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function vt(r,e,t){const n=e.width,a=e.height,s=[{x:a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:-2*a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function yt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n+a/2,y:0},{x:n,y:-a/2},{x:n+a/2,y:-a},{x:0,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function gt(r,e,t){const n=e.height,a=e.width+n/4,s=r.insert("rect",":first-child").attr("rx",n/2).attr("ry",n/2).attr("x",-a/2).attr("y",-n/2).attr("width",a).attr("height",n);return t.intersect=function(i){return Z(t,i)},s}function wt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n,y:0},{x:n,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:n+8,y:0},{x:n+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function xt(r,e,t){const n=e.width,a=n/2,s=a/(2.5+n/50),i=e.height+s,o="M 0,"+s+" a "+a+","+s+" 0,0,0 "+n+" 0 a "+a+","+s+" 0,0,0 "+-n+" 0 l 0,"+i+" a "+a+","+s+" 0,0,0 "+n+" 0 l 0,"+-i,c=r.attr("label-offset-y",s).insert("path",":first-child").attr("d",o).attr("transform","translate("+-n/2+","+-(i/2+s)+")");return t.intersect=function(d){const l=Z(t,d),v=l.x-t.x;if(a!=0&&(Math.abs(v)<t.width/2||Math.abs(v)==t.width/2&&Math.abs(l.y-t.y)>t.height/2-s)){let h=s*s*(1-v*v/(a*a));h!=0&&(h=Math.sqrt(h)),h=s-h,d.y-t.y>0&&(h=-h),l.y+=h}return l},c}function ve(r){r.shapes().question=ct,r.shapes().hexagon=dt,r.shapes().stadium=gt,r.shapes().subroutine=wt,r.shapes().cylinder=xt,r.shapes().rect_left_inv_arrow=ht,r.shapes().lean_right=ut,r.shapes().lean_left=ft,r.shapes().trapezoid=pt,r.shapes().inv_trapezoid=vt,r.shapes().rect_right_inv_arrow=yt}function ye(r){r({question:ct}),r({hexagon:dt}),r({stadium:gt}),r({subroutine:wt}),r({cylinder:xt}),r({rect_left_inv_arrow:ht}),r({lean_right:ut}),r({lean_left:ft}),r({trapezoid:pt}),r({inv_trapezoid:vt}),r({rect_right_inv_arrow:yt})}function A(r,e,t,n){return r.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("transform","translate("+-e/2+","+t/2+")")}const ge={addToRender:ve,addToRenderV2:ye},mt={},we=function(r){const e=Object.keys(r);for(const t of e)mt[t]=r[t]},bt=function(r,e,t,n,a,s){const i=n?n.select(`[id="${t}"]`):m(`[id="${t}"]`),o=a||document;Object.keys(r).forEach(function(d){const l=r[d];let v="default";l.classes.length>0&&(v=l.classes.join(" "));const h=z(l.styles);let u=l.text!==void 0?l.text:l.id,p;if(et(J().flowchart.htmlLabels)){const y={label:u.replace(/fa[blrs]?:fa-[\w-]+/g,k=>`<i class='${k.replace(":"," ")}'></i>`)};p=at(i,y).node(),p.parentNode.removeChild(p)}else{const y=o.createElementNS("http://www.w3.org/2000/svg","text");y.setAttribute("style",h.labelStyle.replace("color:","fill:"));const k=u.split(rt.lineBreakRegex);for(const C of k){const E=o.createElementNS("http://www.w3.org/2000/svg","tspan");E.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),E.setAttribute("dy","1em"),E.setAttribute("x","1"),E.textContent=C,y.appendChild(E)}p=y}let g=0,f="";switch(l.type){case"round":g=5,f="rect";break;case"square":f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"odd":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"odd_right":f="rect_left_inv_arrow";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder";break;case"group":f="rect";break;default:f="rect"}G.warn("Adding node",l.id,l.domId),e.setNode(s.db.lookUpDomId(l.id),{labelType:"svg",labelStyle:h.labelStyle,shape:f,label:p,rx:g,ry:g,class:v,style:h.style,id:s.db.lookUpDomId(l.id)})})},kt=function(r,e,t){let n=0,a,s;if(r.defaultStyle!==void 0){const i=z(r.defaultStyle);a=i.style,s=i.labelStyle}r.forEach(function(i){n++;const o="L-"+i.start+"-"+i.end,c="LS-"+i.start,d="LE-"+i.end,l={};i.type==="arrow_open"?l.arrowhead="none":l.arrowhead="normal";let v="",h="";if(i.style!==void 0){const u=z(i.style);v=u.style,h=u.labelStyle}else switch(i.stroke){case"normal":v="fill:none",a!==void 0&&(v=a),s!==void 0&&(h=s);break;case"dotted":v="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":v=" stroke-width: 3.5px;fill:none";break}l.style=v,l.labelStyle=h,i.interpolate!==void 0?l.curve=V(i.interpolate,P):r.defaultInterpolate!==void 0?l.curve=V(r.defaultInterpolate,P):l.curve=V(mt.curve,P),i.text===void 0?i.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",et(J().flowchart.htmlLabels)?(l.labelType="html",l.label=`<span id="L-${o}" class="edgeLabel L-${c}' L-${d}" style="${l.labelStyle}">${i.text.replace(/fa[blrs]?:fa-[\w-]+/g,u=>`<i class='${u.replace(":"," ")}'></i>`)}</span>`):(l.labelType="text",l.label=i.text.replace(rt.lineBreakRegex,`
`),i.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=o,l.class=c+" "+d,l.minlen=i.length||1,e.setEdge(t.db.lookUpDomId(i.start),t.db.lookUpDomId(i.end),l,n)})},xe=function(r,e){return G.info("Extracting classes"),e.db.getClasses()},me=function(r,e,t,n){G.info("Drawing flowchart");const{securityLevel:a,flowchart:s}=J();let i;a==="sandbox"&&(i=m("#i"+e));const o=a==="sandbox"?m(i.nodes()[0].contentDocument.body):m("body"),c=a==="sandbox"?i.nodes()[0].contentDocument:document;let d=n.db.getDirection();d===void 0&&(d="TD");const l=s.nodeSpacing||50,v=s.rankSpacing||50,h=new Lt({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:l,ranksep:v,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let u;const p=n.db.getSubGraphs();for(let w=p.length-1;w>=0;w--)u=p[w],n.db.addVertex(u.id,u.title,"group",void 0,u.classes);const g=n.db.getVertices();G.warn("Get vertices",g);const f=n.db.getEdges();let y=0;for(y=p.length-1;y>=0;y--){u=p[y],Bt("cluster").append("text");for(let w=0;w<u.nodes.length;w++)G.warn("Setting subgraph",u.nodes[w],n.db.lookUpDomId(u.nodes[w]),n.db.lookUpDomId(u.id)),h.setParent(n.db.lookUpDomId(u.nodes[w]),n.db.lookUpDomId(u.id))}bt(g,h,e,o,c,n),kt(f,h,n);const k=new de;ge.addToRender(k),k.arrows().none=function(b,L,x,B){const I=b.append("marker").attr("id",L).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");N(I,x[B+"Style"])},k.arrows().normal=function(b,L){b.append("marker").attr("id",L).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const C=o.select(`[id="${e}"]`),E=o.select("#"+e+" g");for(k(E,h),E.selectAll("g.node").attr("title",function(){return n.db.getTooltip(this.id)}),n.db.indexNodes("subGraph"+y),y=0;y<p.length;y++)if(u=p[y],u.title!=="undefined"){const w=c.querySelectorAll("#"+e+' [id="'+n.db.lookUpDomId(u.id)+'"] rect'),b=c.querySelectorAll("#"+e+' [id="'+n.db.lookUpDomId(u.id)+'"]'),L=w[0].x.baseVal.value,x=w[0].y.baseVal.value,B=w[0].width.baseVal.value,I=m(b[0]).select(".label");I.attr("transform",`translate(${L+B/2}, ${x+14})`),I.attr("id",e+"Text");for(let $=0;$<u.classes.length;$++)b[0].classList.add(u.classes[$])}if(!s.htmlLabels){const w=c.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const b of w){const L=b.getBBox(),x=c.createElementNS("http://www.w3.org/2000/svg","rect");x.setAttribute("rx",0),x.setAttribute("ry",0),x.setAttribute("width",L.width),x.setAttribute("height",L.height),b.insertBefore(x,b.firstChild)}}At(h,C,s.diagramPadding,s.useMaxWidth),Object.keys(g).forEach(function(w){const b=g[w];if(b.link){const L=o.select("#"+e+' [id="'+n.db.lookUpDomId(w)+'"]');if(L){const x=c.createElementNS("http://www.w3.org/2000/svg","a");x.setAttributeNS("http://www.w3.org/2000/svg","class",b.classes.join(" ")),x.setAttributeNS("http://www.w3.org/2000/svg","href",b.link),x.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),a==="sandbox"?x.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):b.linkTarget&&x.setAttributeNS("http://www.w3.org/2000/svg","target",b.linkTarget);const B=L.insert(function(){return x},":first-child"),R=L.select(".label-container");R&&B.append(function(){return R.node()});const I=L.select(".label");I&&B.append(function(){return I.node()})}}})},be={setConf:we,addVertices:bt,addEdges:kt,getClasses:xe,draw:me},Be={parser:St,db:W,renderer:It,styles:Ct,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,be.setConf(r.flowchart),W.clear(),W.setGen("gen-1")}};export{Be as diagram};
import{at as et,c3 as me,ap as ye,aq as ve,ar as Ve,as as Le,aT as Ie,aU as Re,ay as J1,aK as dt,aV as Ne,aB as we,ax as w1}from"./index-Hfn5l4aw.js";var pt=function(){var e=function(f1,a,o,f){for(o=o||{},f=f1.length;f--;o[f1[f]]=a);return o},u=[1,4],i=[1,3],n=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],U=[1,14],F=[1,15],w=[1,16],X=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],C=[1,49],k=[1,48],l1=[1,29],U1=[1,30],G1=[1,31],M1=[1,32],K1=[1,33],B=[1,44],x=[1,46],m=[1,42],y=[1,47],v=[1,43],V=[1,50],L=[1,45],I=[1,51],R=[1,52],Y1=[1,34],j1=[1,35],z1=[1,36],X1=[1,37],I1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],W=[1,61],Q=[1,60],Z=[1,62],H1=[8,9,11,73,75],k1=[1,88],b1=[1,93],g1=[1,92],D1=[1,89],F1=[1,85],T1=[1,91],S1=[1,87],C1=[1,94],_1=[1,90],B1=[1,95],x1=[1,86],q1=[8,9,10,11,73,75],N=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Et=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],R1=[42,58,86,99,102,103,106,108,111,112,113],kt=[1,121],bt=[1,120],gt=[1,128],Dt=[1,142],Ft=[1,143],Tt=[1,144],St=[1,145],Ct=[1,130],_t=[1,132],Bt=[1,136],xt=[1,137],mt=[1,138],yt=[1,139],vt=[1,140],Vt=[1,141],Lt=[1,146],It=[1,147],Rt=[1,126],Nt=[1,127],wt=[1,134],Ot=[1,129],Pt=[1,133],Ut=[1,131],nt=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Gt=[1,149],T=[8,9,11],K=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],p=[1,169],O=[1,165],P=[1,166],A=[1,170],d=[1,167],E=[1,168],m1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mt=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],J=[1,235],$=[1,233],t1=[1,237],e1=[1,231],s1=[1,232],u1=[1,234],i1=[1,236],r1=[1,238],y1=[1,255],Kt=[8,9,11,103],q=[8,9,10,11,58,81,102,103,106,107,108,109],at={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeperator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,verticeStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,f,r,S,t,N1){var s=t.length-1;switch(S){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:this.$=t[s];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 43:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 49:this.$=t[s];break;case 50:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],r.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 71:this.$=t[s];break;case 72:var Y=r.destructLink(t[s],t[s-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,text:t[s-1]};break;case 73:this.$={text:t[s],type:"text"};break;case 74:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:this.$={text:t[s],type:"string"};break;case 76:this.$={text:t[s],type:"markdown"};break;case 77:var Y=r.destructLink(t[s]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length};break;case 78:this.$=t[s-1];break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 94:this.$={text:t[s],type:"text"};break;case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 96:this.$={text:t[s],type:"text"};break;case 98:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 121:case 123:this.$=[t[s]];break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 174:this.$=t[s];break;case 175:this.$=t[s-1]+""+t[s];break;case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:u,10:i,12:n},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:n},{4:8,9:u,10:i,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:C,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:I1,15:53,18:56},e(b,[2,3]),e(b,[2,4]),e(b,[2,5]),e(b,[2,6]),e(b,[2,7]),e(b,[2,8]),{8:W,9:Q,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:W,9:Q,11:Z,21:66},{8:W,9:Q,11:Z,21:67},{8:W,9:Q,11:Z,21:68},{8:W,9:Q,11:Z,21:69},{8:W,9:Q,11:Z,21:70},{8:W,9:Q,10:[1,71],11:Z,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(H1,[2,46],{18:75,10:I1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:k1,42:b1,58:g1,77:[1,83],86:D1,92:[1,80],94:[1,81],98:82,102:F1,103:T1,106:S1,108:C1,111:_1,112:B1,113:x1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(q1,[2,47]),e(q1,[2,49],{44:[1,96]}),e(N,[2,67],{110:109,29:[1,97],42:C,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:B,99:x,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(M,[2,174]),e(M,[2,135]),e(M,[2,136]),e(M,[2,137]),e(M,[2,138]),e(M,[2,139]),e(M,[2,140]),e(M,[2,141]),e(M,[2,142]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Et,[2,26],{18:111,10:I1}),e(b,[2,27]),{40:112,41:38,42:C,43:39,45:40,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(R1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:kt,116:bt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:gt,12:Dt,14:Ft,27:Tt,28:122,32:St,42:Ct,58:_t,73:Bt,77:[1,124],78:[1,125],80:135,81:xt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:123,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(nt,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(H1,[2,45],{42:Gt}),{42:C,45:150,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{99:[1,151],100:152,102:[1,153]},{42:C,45:154,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{42:C,45:155,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:S1,108:C1,111:_1,112:B1,113:x1}),e(T,[2,110],{10:[1,161]}),e(K,[2,176]),e(K,[2,163]),e(K,[2,164]),e(K,[2,165]),e(K,[2,166]),e(K,[2,167]),e(K,[2,168]),e(K,[2,169]),e(K,[2,170]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),{42:C,45:162,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{30:163,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:171,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:174,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:175,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:176,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:181,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:182,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:183,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(M,[2,175]),e(c,[2,20]),e(Et,[2,25]),e(H1,[2,43],{18:184,10:I1}),e(R1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:kt,116:bt},e(m1,[2,73]),e(m1,[2,75]),e(m1,[2,76]),e(m1,[2,161]),e(m1,[2,162]),{8:W,9:Q,10:gt,11:Z,12:Dt,14:Ft,21:191,27:Tt,29:[1,190],32:St,42:Ct,58:_t,73:Bt,80:135,81:xt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:192,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:C,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:I1,18:194},{10:[1,195],42:C,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,196]},{10:[1,197],103:[1,198]},e(Mt,[2,121]),{10:[1,199],42:C,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,200],42:C,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(K,[2,177]),{77:[1,205],95:[1,206]},e(q1,[2,50],{110:109,42:C,58:k,86:B,99:x,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),{31:[1,207],65:p,79:208,113:A,114:d,115:E},e(h1,[2,79]),e(h1,[2,81]),e(h1,[2,82]),e(h1,[2,146]),e(h1,[2,147]),e(h1,[2,148]),e(h1,[2,149]),{47:[1,209],65:p,79:208,113:A,114:d,115:E},{30:210,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{49:[1,211],65:p,79:208,113:A,114:d,115:E},{51:[1,212],65:p,79:208,113:A,114:d,115:E},{53:[1,213],65:p,79:208,113:A,114:d,115:E},{55:[1,214],65:p,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:p,79:208,113:A,114:d,115:E},{64:[1,217],65:p,79:208,113:A,114:d,115:E},{30:218,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{31:[1,219],65:p,79:208,113:A,114:d,115:E},{65:p,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:p,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(H1,[2,44],{42:Gt}),e(R1,[2,70]),e(R1,[2,69]),{60:[1,224],65:p,79:208,113:A,114:d,115:E},e(R1,[2,72]),e(m1,[2,74]),{30:225,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(nt,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:C,43:39,45:40,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{10:J,58:$,81:t1,89:228,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:239,101:[1,240],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:241,101:[1,242],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{102:[1,243]},{10:J,58:$,81:t1,89:244,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{42:C,45:245,58:k,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(N,[2,51]),e(h1,[2,80]),e(N,[2,52]),{49:[1,250],65:p,79:208,113:A,114:d,115:E},e(N,[2,59]),e(N,[2,54]),e(N,[2,55]),e(N,[2,56]),{106:[1,251]},e(N,[2,58]),e(N,[2,60]),{64:[1,252],65:p,79:208,113:A,114:d,115:E},e(N,[2,62]),e(N,[2,63]),e(N,[2,65]),e(N,[2,64]),e(N,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:C,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(q1,[2,48]),e(T,[2,114],{103:y1}),e(Kt,[2,123],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(q,[2,125]),e(q,[2,127]),e(q,[2,128]),e(q,[2,129]),e(q,[2,130]),e(q,[2,131]),e(q,[2,132]),e(q,[2,133]),e(q,[2,134]),e(T,[2,115],{103:y1}),{10:[1,257]},e(T,[2,116],{103:y1}),{10:[1,258]},e(Mt,[2,122]),e(T,[2,98],{103:y1}),e(T,[2,99],{110:109,42:C,58:k,86:B,99:x,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:W,9:Q,11:Z,21:264},e(b,[2,34]),{10:J,58:$,81:t1,102:e1,104:265,105:230,106:s1,107:u1,108:i1,109:r1},e(q,[2,126]),{14:k1,42:b1,58:g1,86:D1,98:266,102:F1,103:T1,106:S1,108:C1,111:_1,112:B1,113:x1,117:84},{14:k1,42:b1,58:g1,86:D1,98:267,102:F1,103:T1,106:S1,108:C1,111:_1,112:B1,113:x1,117:84},{95:[1,268]},e(T,[2,113]),e(N,[2,53]),{30:269,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(N,[2,61]),e(nt,l,{5:270}),e(Kt,[2,124],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(T,[2,119],{117:160,10:[1,271],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:S1,108:C1,111:_1,112:B1,113:x1}),e(T,[2,120],{117:160,10:[1,272],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:S1,108:C1,111:_1,112:B1,113:x1}),e(T,[2,107]),{31:[1,273],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:C,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:B,99:x,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:J,58:$,81:t1,89:275,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:276,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},e(N,[2,57]),e(b,[2,33]),e(T,[2,117],{103:y1}),e(T,[2,118],{103:y1})],defaultActions:{},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var f=new Error(a);throw f.hash=o,f}},parse:function(a){var o=this,f=[0],r=[],S=[null],t=[],N1=this.table,s="",Y=0,Yt=0,Ce=2,jt=1,_e=t.slice.call(arguments,1),_=Object.create(this.lexer),d1={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(d1.yy[ot]=this.yy[ot]);_.setInput(a,d1.yy),d1.yy.lexer=_,d1.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var lt=_.yylloc;t.push(lt);var Be=_.options&&_.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function xe(){var a1;return a1=r.pop()||_.lex()||jt,typeof a1!="number"&&(a1 instanceof Array&&(r=a1,a1=r.pop()),a1=o.symbols_[a1]||a1),a1}for(var G,E1,j,ht,v1={},W1,n1,zt,Q1;;){if(E1=f[f.length-1],this.defaultActions[E1]?j=this.defaultActions[E1]:((G===null||typeof G>"u")&&(G=xe()),j=N1[E1]&&N1[E1][G]),typeof j>"u"||!j.length||!j[0]){var ft="";Q1=[];for(W1 in N1[E1])this.terminals_[W1]&&W1>Ce&&Q1.push("'"+this.terminals_[W1]+"'");_.showPosition?ft="Parse error on line "+(Y+1)+`:
`+_.showPosition()+`
Expecting `+Q1.join(", ")+", got '"+(this.terminals_[G]||G)+"'":ft="Parse error on line "+(Y+1)+": Unexpected "+(G==jt?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(ft,{text:_.match,token:this.terminals_[G]||G,line:_.yylineno,loc:lt,expected:Q1})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E1+", token: "+G);switch(j[0]){case 1:f.push(G),S.push(_.yytext),t.push(_.yylloc),f.push(j[1]),G=null,Yt=_.yyleng,s=_.yytext,Y=_.yylineno,lt=_.yylloc;break;case 2:if(n1=this.productions_[j[1]][1],v1.$=S[S.length-n1],v1._$={first_line:t[t.length-(n1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(n1||1)].first_column,last_column:t[t.length-1].last_column},Be&&(v1._$.range=[t[t.length-(n1||1)].range[0],t[t.length-1].range[1]]),ht=this.performAction.apply(v1,[s,Yt,Y,d1.yy,j[1],S,t].concat(_e)),typeof ht<"u")return ht;n1&&(f=f.slice(0,-1*n1*2),S=S.slice(0,-1*n1),t=t.slice(0,-1*n1)),f.push(this.productions_[j[1]][0]),S.push(v1.$),t.push(v1._$),zt=N1[f[f.length-2]][f[f.length-1]],f.push(zt);break;case 3:return!0}}return!0}},Se=function(){var f1={EOF:1,parseError:function(o,f){if(this.yy.parser)this.yy.parser.parseError(o,f);else throw new Error(o)},setInput:function(a,o){return this.yy=o||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var o=a.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var o=a.length,f=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===r.length?this.yylloc.first_column:0)+r[r.length-f.length].length-f[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),o=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
`+o+"^"},test_match:function(a,o){var f,r,S;if(this.options.backtrack_lexer&&(S={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(S.yylloc.range=this.yylloc.range.slice(0))),r=a[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],f=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var t in S)this[t]=S[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,o,f,r;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),t=0;t<S.length;t++)if(f=this._input.match(this.rules[S[t]]),f&&(!o||f[0].length>o[0].length)){if(o=f,r=t,this.options.backtrack_lexer){if(a=this.test_match(f,S[t]),a!==!1)return a;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(a=this.test_match(o,S[r]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return o||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(o,f,r,S){switch(r){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return o.lex.firstGraph()&&this.begin("dir"),12;case 30:return o.lex.firstGraph()&&this.begin("dir"),12;case 31:return o.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;case 39:return this.popState(),14;case 40:return this.popState(),14;case 41:return this.popState(),14;case 42:return this.popState(),14;case 43:return this.popState(),14;case 44:return this.popState(),14;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:return 116;case 64:return this.popState(),75;case 65:return this.pushState("thickEdgeText"),73;case 66:return 116;case 67:return this.popState(),75;case 68:return this.pushState("dottedEdgeText"),73;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112:return 11}},rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}};return f1}();at.lexer=Se;function ct(){this.yy={}}return ct.prototype=at,at.Parser=ct,new ct}();pt.parser=pt;const Xe=pt,Oe="flowchart-";let Xt=0,L1=et(),D={},H=[],V1={},c1=[],$1={},tt={},Z1=0,At=!0,z,st,ut=[];const it=e=>we.sanitizeText(e,L1),P1=function(e){const u=Object.keys(D);for(const i of u)if(D[i].id===e)return D[i].domId;return e},Ht=function(e,u,i,n,c,l,h={}){let U,F=e;F!==void 0&&F.trim().length!==0&&(D[F]===void 0&&(D[F]={id:F,labelType:"text",domId:Oe+F+"-"+Xt,styles:[],classes:[]}),Xt++,u!==void 0?(L1=et(),U=it(u.text.trim()),D[F].labelType=u.type,U[0]==='"'&&U[U.length-1]==='"'&&(U=U.substring(1,U.length-1)),D[F].text=U):D[F].text===void 0&&(D[F].text=e),i!==void 0&&(D[F].type=i),n!=null&&n.forEach(function(w){D[F].styles.push(w)}),c!=null&&c.forEach(function(w){D[F].classes.push(w)}),l!==void 0&&(D[F].dir=l),D[F].props===void 0?D[F].props=h:h!==void 0&&Object.assign(D[F].props,h))},qt=function(e,u,i){const l={start:e,end:u,type:void 0,text:"",labelType:"text"};J1.info("abc78 Got edge...",l);const h=i.text;if(h!==void 0&&(l.text=it(h.text.trim()),l.text[0]==='"'&&l.text[l.text.length-1]==='"'&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=h.type),i!==void 0&&(l.type=i.type,l.stroke=i.stroke,l.length=i.length),(l==null?void 0:l.length)>10&&(l.length=10),H.length<(L1.maxEdges??500))J1.info("abc78 pushing edge..."),H.push(l);else throw new Error(`Edge limit exceeded. ${H.length} edges found, but the limit is ${L1.maxEdges}.
Initialize mermaid with maxEdges set to a higher number to allow more edges.
You cannot set this config via configuration inside the diagram as it is a secure config.
You have to call mermaid.initialize.`)},Wt=function(e,u,i){J1.info("addLink (abc78)",e,u,i);let n,c;for(n=0;n<e.length;n++)for(c=0;c<u.length;c++)qt(e[n],u[c],i)},Qt=function(e,u){e.forEach(function(i){i==="default"?H.defaultInterpolate=u:H[i].interpolate=u})},Zt=function(e,u){e.forEach(function(i){if(i>=H.length)throw new Error(`The index ${i} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${H.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);i==="default"?H.defaultStyle=u:(dt.isSubstringInArray("fill",u)===-1&&u.push("fill:none"),H[i].style=u)})},Jt=function(e,u){e.split(",").forEach(function(i){V1[i]===void 0&&(V1[i]={id:i,styles:[],textStyles:[]}),u!=null&&u.forEach(function(n){if(n.match("color")){const c=n.replace("fill","bgFill").replace("color","fill");V1[i].textStyles.push(c)}V1[i].styles.push(n)})})},$t=function(e){z=e,z.match(/.*</)&&(z="RL"),z.match(/.*\^/)&&(z="BT"),z.match(/.*>/)&&(z="LR"),z.match(/.*v/)&&(z="TB"),z==="TD"&&(z="TB")},rt=function(e,u){e.split(",").forEach(function(i){let n=i;D[n]!==void 0&&D[n].classes.push(u),$1[n]!==void 0&&$1[n].classes.push(u)})},Pe=function(e,u){e.split(",").forEach(function(i){u!==void 0&&(tt[st==="gen-1"?P1(i):i]=it(u))})},Ue=function(e,u,i){let n=P1(e);if(et().securityLevel!=="loose"||u===void 0)return;let c=[];if(typeof i=="string"){c=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l<c.length;l++){let h=c[l].trim();h.charAt(0)==='"'&&h.charAt(h.length-1)==='"'&&(h=h.substr(1,h.length-2)),c[l]=h}}c.length===0&&c.push(e),D[e]!==void 0&&(D[e].haveCallback=!0,ut.push(function(){const l=document.querySelector(`[id="${n}"]`);l!==null&&l.addEventListener("click",function(){dt.runFunc(u,...c)},!1)}))},te=function(e,u,i){e.split(",").forEach(function(n){D[n]!==void 0&&(D[n].link=dt.formatUrl(u,L1),D[n].linkTarget=i)}),rt(e,"clickable")},ee=function(e){if(tt.hasOwnProperty(e))return tt[e]},se=function(e,u,i){e.split(",").forEach(function(n){Ue(n,u,i)}),rt(e,"clickable")},ue=function(e){ut.forEach(function(u){u(e)})},ie=function(){return z.trim()},re=function(){return D},ne=function(){return H},ae=function(){return V1},ce=function(e){let u=w1(".mermaidTooltip");(u._groups||u)[0][0]===null&&(u=w1("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),w1(e).select("svg").selectAll("g.node").on("mouseover",function(){const c=w1(this);if(c.attr("title")===null)return;const h=this.getBoundingClientRect();u.transition().duration(200).style("opacity",".9"),u.text(c.attr("title")).style("left",window.scrollX+h.left+(h.right-h.left)/2+"px").style("top",window.scrollY+h.bottom+"px"),u.html(u.html().replace(/<br\/>/g,"<br/>")),c.classed("hover",!0)}).on("mouseout",function(){u.transition().duration(500).style("opacity",0),w1(this).classed("hover",!1)})};ut.push(ce);const oe=function(e="gen-1"){D={},V1={},H=[],ut=[ce],c1=[],$1={},Z1=0,tt={},At=!0,st=e,L1=et(),Ne()},le=e=>{st=e||"gen-2"},he=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},fe=function(e,u,i){let n=e.text.trim(),c=i.text;e===i&&i.text.match(/\s/)&&(n=void 0);function l(X){const o1={boolean:{},number:{},string:{}},p1=[];let A1;return{nodeList:X.filter(function(k){const l1=typeof k;return k.stmt&&k.stmt==="dir"?(A1=k.value,!1):k.trim()===""?!1:l1 in o1?o1[l1].hasOwnProperty(k)?!1:o1[l1][k]=!0:p1.includes(k)?!1:p1.push(k)}),dir:A1}}let h=[];const{nodeList:U,dir:F}=l(h.concat.apply(h,u));if(h=U,st==="gen-1")for(let X=0;X<h.length;X++)h[X]=P1(h[X]);n=n||"subGraph"+Z1,c=c||"",c=it(c),Z1=Z1+1;const w={id:n,nodes:h,title:c.trim(),classes:[],dir:F,labelType:i.type};return J1.info("Adding",w.id,w.nodes,w.dir),w.nodes=Fe(w,c1).nodes,c1.push(w),$1[n]=w,n},Ge=function(e){for(const[u,i]of c1.entries())if(i.id===e)return u;return-1};let O1=-1;const pe=[],Ae=function(e,u){const i=c1[u].nodes;if(O1=O1+1,O1>2e3)return;if(pe[O1]=u,c1[u].id===e)return{result:!0,count:0};let n=0,c=1;for(;n<i.length;){const l=Ge(i[n]);if(l>=0){const h=Ae(e,l);if(h.result)return{result:!0,count:c+h.count};c=c+h.count}n=n+1}return{result:!1,count:c}},de=function(e){return pe[e]},Ee=function(){O1=-1,c1.length>0&&Ae("none",c1.length-1)},ke=function(){return c1},be=()=>At?(At=!1,!0):!1,Me=e=>{let u=e.trim(),i="arrow_open";switch(u[0]){case"<":i="arrow_point",u=u.slice(1);break;case"x":i="arrow_cross",u=u.slice(1);break;case"o":i="arrow_circle",u=u.slice(1);break}let n="normal";return u.includes("=")&&(n="thick"),u.includes(".")&&(n="dotted"),{type:i,stroke:n}},Ke=(e,u)=>{const i=u.length;let n=0;for(let c=0;c<i;++c)u[c]===e&&++n;return n},Ye=e=>{const u=e.trim();let i=u.slice(0,-1),n="arrow_open";switch(u.slice(-1)){case"x":n="arrow_cross",u[0]==="x"&&(n="double_"+n,i=i.slice(1));break;case">":n="arrow_point",u[0]==="<"&&(n="double_"+n,i=i.slice(1));break;case"o":n="arrow_circle",u[0]==="o"&&(n="double_"+n,i=i.slice(1));break}let c="normal",l=i.length-1;i[0]==="="&&(c="thick"),i[0]==="~"&&(c="invisible");let h=Ke(".",i);return h&&(c="dotted",l=h),{type:n,stroke:c,length:l}},ge=(e,u)=>{const i=Ye(e);let n;if(u){if(n=Me(u),n.stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if(n.type==="arrow_open")n.type=i.type;else{if(n.type!==i.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return n.type==="double_arrow"&&(n.type="double_arrow_point"),n.length=i.length,n}return i},De=(e,u)=>{let i=!1;return e.forEach(n=>{n.nodes.indexOf(u)>=0&&(i=!0)}),i},Fe=(e,u)=>{const i=[];return e.nodes.forEach((n,c)=>{De(u,n)||i.push(e.nodes[c])}),{nodes:i}},Te={firstGraph:be},je={defaultConfig:()=>me.flowchart,setAccTitle:ye,getAccTitle:ve,getAccDescription:Ve,setAccDescription:Le,addVertex:Ht,lookUpDomId:P1,addLink:Wt,updateLinkInterpolate:Qt,updateLink:Zt,addClass:Jt,setDirection:$t,setClass:rt,setTooltip:Pe,getTooltip:ee,setClickEvent:se,setLink:te,bindFunctions:ue,getDirection:ie,getVertices:re,getEdges:ne,getClasses:ae,clear:oe,setGen:le,defaultStyle:he,addSubGraph:fe,getDepthFirstPos:de,indexNodes:Ee,getSubGraphs:ke,destructLink:ge,lex:Te,exists:De,makeUniq:Fe,setDiagramTitle:Ie,getDiagramTitle:Re},He=Object.freeze(Object.defineProperty({__proto__:null,addClass:Jt,addLink:Wt,addSingleLink:qt,addSubGraph:fe,addVertex:Ht,bindFunctions:ue,clear:oe,default:je,defaultStyle:he,destructLink:ge,firstGraph:be,getClasses:ae,getDepthFirstPos:de,getDirection:ie,getEdges:ne,getSubGraphs:ke,getTooltip:ee,getVertices:re,indexNodes:Ee,lex:Te,lookUpDomId:P1,setClass:rt,setClickEvent:se,setDirection:$t,setGen:le,setLink:te,updateLink:Zt,updateLinkInterpolate:Qt},Symbol.toStringTag,{value:"Module"}));export{He as d,je as f,Xe as p};
import{at as Z,ap as Et,aq as mt,as as gt,ar as kt,aT as Rt,aU as Ot,ay as G,aV as bt,ax as rt,aK as Nt,az as xt,aW as Tt,aX as At}from"./index-Hfn5l4aw.js";import{G as Mt,l as wt}from"./layout-94e1e85f-BAM45a7u.js";import{l as St}from"./line-b015ae81-MIcjsH1n.js";import"./array-b7dcf730-Nw74a44z.js";import"./path-39bad7e2-aUcfwwLI.js";var it=function(){var t=function(w,i,n,c){for(n=n||{},c=w.length;c--;n[w[c]]=i);return n},e=[6,8,10,20,22,24,26,27,28],r=[1,10],u=[1,11],l=[1,12],f=[1,13],y=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],g=[1,24],R=[1,25],p=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],x=[1,34],I=[27,28,46,47],F=[41,42,43,44,45],W=[17,34],C=[1,54],T=[1,53],M=[17,34,36,38],O={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(i,n,c,d,E,a,V){var s=a.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(a[s-4]),d.addEntity(a[s-2]),d.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:d.addEntity(a[s-3]),d.addAttributes(a[s-3],a[s-1]);break;case 10:d.addEntity(a[s-2]);break;case 11:d.addEntity(a[s]);break;case 12:d.addEntity(a[s-6],a[s-4]),d.addAttributes(a[s-6],a[s-1]);break;case 13:d.addEntity(a[s-5],a[s-3]);break;case 14:d.addEntity(a[s-3],a[s-1]);break;case 15:case 16:this.$=a[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=a[s];break;case 20:case 41:case 42:this.$=a[s].replace(/"/g,"");break;case 21:case 29:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 27:case 28:case 31:this.$=a[s];break;case 30:a[s-2].push(a[s]),this.$=a[s-2];break;case 32:this.$=a[s].replace(/"/g,"");break;case 33:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:u,24:l,26:f,27:y,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:l,26:f,27:y,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:g,45:R}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(p,[2,19]),t(p,[2,20]),t(e,[2,4]),{11:29,27:y,28:o},{16:30,17:[1,31],29:32,30:33,34:x},{11:35,27:y,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:x},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:g,45:R},t(F,[2,39]),t(F,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(W,[2,23],{32:50,33:51,35:52,37:C,38:T}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(W,[2,24],{33:56,36:[1,57],38:T}),t(W,[2,25]),t(M,[2,29]),t(W,[2,32]),t(M,[2,31]),{16:58,17:[1,59],29:32,30:33,34:x},t(W,[2,26]),{35:60,37:C},{17:[1,61]},t(e,[2,13]),t(M,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=n,c}},parse:function(i){var n=this,c=[0],d=[],E=[null],a=[],V=this.table,s="",Q=0,st=0,yt=2,ot=1,pt=a.slice.call(arguments,1),N=Object.create(this.lexer),z={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(z.yy[J]=this.yy[J]);N.setInput(i,z.yy),z.yy.lexer=N,z.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var $=N.yylloc;a.push($);var ft=N.options&&N.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var Y;return Y=d.pop()||N.lex()||ot,typeof Y!="number"&&(Y instanceof Array&&(d=Y,Y=d.pop()),Y=n.symbols_[Y]||Y),Y}for(var S,H,D,tt,K={},q,P,lt,j;;){if(H=c[c.length-1],this.defaultActions[H]?D=this.defaultActions[H]:((S===null||typeof S>"u")&&(S=_t()),D=V[H]&&V[H][S]),typeof D>"u"||!D.length||!D[0]){var et="";j=[];for(q in V[H])this.terminals_[q]&&q>yt&&j.push("'"+this.terminals_[q]+"'");N.showPosition?et="Parse error on line "+(Q+1)+`:
`+N.showPosition()+`
Expecting `+j.join(", ")+", got '"+(this.terminals_[S]||S)+"'":et="Parse error on line "+(Q+1)+": Unexpected "+(S==ot?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(et,{text:N.match,token:this.terminals_[S]||S,line:N.yylineno,loc:$,expected:j})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+S);switch(D[0]){case 1:c.push(S),E.push(N.yytext),a.push(N.yylloc),c.push(D[1]),S=null,st=N.yyleng,s=N.yytext,Q=N.yylineno,$=N.yylloc;break;case 2:if(P=this.productions_[D[1]][1],K.$=E[E.length-P],K._$={first_line:a[a.length-(P||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(P||1)].first_column,last_column:a[a.length-1].last_column},ft&&(K._$.range=[a[a.length-(P||1)].range[0],a[a.length-1].range[1]]),tt=this.performAction.apply(K,[s,st,Q,z.yy,D[1],E,a].concat(pt)),typeof tt<"u")return tt;P&&(c=c.slice(0,-1*P*2),E=E.slice(0,-1*P),a=a.slice(0,-1*P)),c.push(this.productions_[D[1]][0]),E.push(K.$),a.push(K._$),lt=V[c[c.length-2]][c[c.length-1]],c.push(lt);break;case 3:return!0}}return!0}},b=function(){var w={EOF:1,parseError:function(n,c){if(this.yy.parser)this.yy.parser.parseError(n,c);else throw new Error(n)},setInput:function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var n=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+n+"^"},test_match:function(i,n){var c,d,E;if(this.options.backtrack_lexer&&(E={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(E.yylloc.range=this.yylloc.range.slice(0))),d=i[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],c=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var a in E)this[a]=E[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,n,c,d;this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),a=0;a<E.length;a++)if(c=this._input.match(this.rules[E[a]]),c&&(!n||c[0].length>n[0].length)){if(n=c,d=a,this.options.backtrack_lexer){if(i=this.test_match(c,E[a]),i!==!1)return i;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(i=this.test_match(n,E[d]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,c,d,E){switch(d){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;case 22:return c.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return c.yytext[0];case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};return w}();O.lexer=b;function v(){this.yy={}}return v.prototype=O,O.Parser=v,new v}();it.parser=it;const It=it;let U={},nt=[];const Dt={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},vt={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},dt=function(t,e=void 0){return U[t]===void 0?(U[t]={attributes:[],alias:e},G.info("Added new entity :",t)):U[t]&&!U[t].alias&&e&&(U[t].alias=e,G.info(`Add alias '${e}' to entity '${t}'`)),U[t]},Lt=()=>U,Bt=function(t,e){let r=dt(t),u;for(u=e.length-1;u>=0;u--)r.attributes.push(e[u]),G.debug("Added attribute ",e[u].attributeName)},Ct=function(t,e,r,u){let l={entityA:t,roleA:e,entityB:r,relSpec:u};nt.push(l),G.debug("Added new relationship :",l)},Pt=()=>nt,Yt=function(){U={},nt=[],bt()},Zt={Cardinality:Dt,Identification:vt,getConfig:()=>Z().er,addEntity:dt,addAttributes:Bt,getEntities:Lt,addRelationship:Ct,getRelationships:Pt,clear:Yt,setAccTitle:Et,getAccTitle:mt,setAccDescription:gt,getAccDescription:kt,setDiagramTitle:Rt,getDiagramTitle:Ot},L={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},Ft=function(t,e){let r;t.append("defs").append("marker").attr("id",L.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",L.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",L.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",L.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",L.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",L.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},B={ERMarkers:L,insertMarkers:Ft},Wt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Ut(t){return typeof t=="string"&&Wt.test(t)}const A=[];for(let t=0;t<256;++t)A.push((t+256).toString(16).slice(1));function zt(t,e=0){return(A[t[e+0]]+A[t[e+1]]+A[t[e+2]]+A[t[e+3]]+"-"+A[t[e+4]]+A[t[e+5]]+"-"+A[t[e+6]]+A[t[e+7]]+"-"+A[t[e+8]]+A[t[e+9]]+"-"+A[t[e+10]]+A[t[e+11]]+A[t[e+12]]+A[t[e+13]]+A[t[e+14]]+A[t[e+15]]).toLowerCase()}function Ht(t){if(!Ut(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function Kt(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}const Vt="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Gt="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Xt(t,e,r){function u(l,f,y,o){var h;if(typeof l=="string"&&(l=Kt(l)),typeof f=="string"&&(f=Ht(f)),((h=f)===null||h===void 0?void 0:h.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let _=new Uint8Array(16+l.length);if(_.set(f),_.set(l,f.length),_=r(_),_[6]=_[6]&15|e,_[8]=_[8]&63|128,y){o=o||0;for(let m=0;m<16;++m)y[o+m]=_[m];return y}return zt(_)}try{u.name=t}catch{}return u.DNS=Vt,u.URL=Gt,u}function Qt(t,e,r,u){switch(t){case 0:return e&r^~e&u;case 1:return e^r^u;case 2:return e&r^e&u^r&u;case 3:return e^r^u}}function at(t,e){return t<<e|t>>>32-e}function qt(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const y=unescape(encodeURIComponent(t));t=[];for(let o=0;o<y.length;++o)t.push(y.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const u=t.length/4+2,l=Math.ceil(u/16),f=new Array(l);for(let y=0;y<l;++y){const o=new Uint32Array(16);for(let h=0;h<16;++h)o[h]=t[y*64+h*4]<<24|t[y*64+h*4+1]<<16|t[y*64+h*4+2]<<8|t[y*64+h*4+3];f[y]=o}f[l-1][14]=(t.length-1)*8/Math.pow(2,32),f[l-1][14]=Math.floor(f[l-1][14]),f[l-1][15]=(t.length-1)*8&4294967295;for(let y=0;y<l;++y){const o=new Uint32Array(80);for(let p=0;p<16;++p)o[p]=f[y][p];for(let p=16;p<80;++p)o[p]=at(o[p-3]^o[p-8]^o[p-14]^o[p-16],1);let h=r[0],_=r[1],m=r[2],g=r[3],R=r[4];for(let p=0;p<80;++p){const x=Math.floor(p/20),I=at(h,5)+Qt(x,_,m,g)+R+e[x]+o[p]>>>0;R=g,g=m,m=at(_,30)>>>0,_=h,h=I}r[0]=r[0]+h>>>0,r[1]=r[1]+_>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+R>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const jt=Xt("v5",80,qt),Jt=jt,$t=/[^\dA-Za-z](\W)*/g;let k={},X=new Map;const te=function(t){const e=Object.keys(t);for(const r of e)k[r]=t[r]},ee=(t,e,r)=>{const u=k.entityPadding/3,l=k.entityPadding/3,f=k.fontSize*.85,y=e.node().getBBox(),o=[];let h=!1,_=!1,m=0,g=0,R=0,p=0,x=y.height+u*2,I=1;r.forEach(T=>{T.attributeKeyTypeList!==void 0&&T.attributeKeyTypeList.length>0&&(h=!0),T.attributeComment!==void 0&&(_=!0)}),r.forEach(T=>{const M=`${e.node().id}-attr-${I}`;let O=0;const b=At(T.attributeType),v=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",f+"px").text(b),w=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",f+"px").text(T.attributeName),i={};i.tn=v,i.nn=w;const n=v.node().getBBox(),c=w.node().getBBox();if(m=Math.max(m,n.width),g=Math.max(g,c.width),O=Math.max(n.height,c.height),h){const d=T.attributeKeyTypeList!==void 0?T.attributeKeyTypeList.join(","):"",E=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",f+"px").text(d);i.kn=E;const a=E.node().getBBox();R=Math.max(R,a.width),O=Math.max(O,a.height)}if(_){const d=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",f+"px").text(T.attributeComment||"");i.cn=d;const E=d.node().getBBox();p=Math.max(p,E.width),O=Math.max(O,E.height)}i.height=O,o.push(i),x+=O+u*2,I+=1});let F=4;h&&(F+=2),_&&(F+=2);const W=m+g+R+p,C={width:Math.max(k.minEntityWidth,Math.max(y.width+k.entityPadding*2,W+l*F)),height:r.length>0?x:Math.max(k.minEntityHeight,y.height+k.entityPadding*2)};if(r.length>0){const T=Math.max(0,(C.width-W-l*F)/(F/2));e.attr("transform","translate("+C.width/2+","+(u+y.height/2)+")");let M=y.height+u*2,O="attributeBoxOdd";o.forEach(b=>{const v=M+u+b.height/2;b.tn.attr("transform","translate("+l+","+v+")");const w=t.insert("rect","#"+b.tn.node().id).classed(`er ${O}`,!0).attr("x",0).attr("y",M).attr("width",m+l*2+T).attr("height",b.height+u*2),i=parseFloat(w.attr("x"))+parseFloat(w.attr("width"));b.nn.attr("transform","translate("+(i+l)+","+v+")");const n=t.insert("rect","#"+b.nn.node().id).classed(`er ${O}`,!0).attr("x",i).attr("y",M).attr("width",g+l*2+T).attr("height",b.height+u*2);let c=parseFloat(n.attr("x"))+parseFloat(n.attr("width"));if(h){b.kn.attr("transform","translate("+(c+l)+","+v+")");const d=t.insert("rect","#"+b.kn.node().id).classed(`er ${O}`,!0).attr("x",c).attr("y",M).attr("width",R+l*2+T).attr("height",b.height+u*2);c=parseFloat(d.attr("x"))+parseFloat(d.attr("width"))}_&&(b.cn.attr("transform","translate("+(c+l)+","+v+")"),t.insert("rect","#"+b.cn.node().id).classed(`er ${O}`,"true").attr("x",c).attr("y",M).attr("width",p+l*2+T).attr("height",b.height+u*2)),M+=b.height+u*2,O=O==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else C.height=Math.max(k.minEntityHeight,x),e.attr("transform","translate("+C.width/2+","+C.height/2+")");return C},re=function(t,e,r){const u=Object.keys(e);let l;return u.forEach(function(f){const y=le(f,"entity");X.set(f,y);const o=t.append("g").attr("id",y);l=l===void 0?y:l;const h="text-"+y,_=o.append("text").classed("er entityLabel",!0).attr("id",h).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",Z().fontFamily).style("font-size",k.fontSize+"px").text(e[f].alias??f),{width:m,height:g}=ee(o,_,e[f].attributes),p=o.insert("rect","#"+h).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",m).attr("height",g).node().getBBox();r.setNode(y,{width:p.width,height:p.height,shape:"rect",id:y})}),l},ae=function(t,e){e.nodes().forEach(function(r){r!==void 0&&e.node(r)!==void 0&&t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )")})},ut=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},ie=function(t,e){return t.forEach(function(r){e.setEdge(X.get(r.entityA),X.get(r.entityB),{relationship:r},ut(r))}),t};let ct=0;const ne=function(t,e,r,u,l){ct++;const f=r.edge(X.get(e.entityA),X.get(e.entityB),ut(e)),y=St().x(function(x){return x.x}).y(function(x){return x.y}).curve(Tt),o=t.insert("path","#"+u).classed("er relationshipLine",!0).attr("d",y(f.points)).style("stroke",k.stroke).style("fill","none");e.relSpec.relType===l.db.Identification.NON_IDENTIFYING&&o.attr("stroke-dasharray","8,8");let h="";switch(k.arrowMarkerAbsolute&&(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,h=h.replace(/\(/g,"\\("),h=h.replace(/\)/g,"\\)")),e.relSpec.cardA){case l.db.Cardinality.ZERO_OR_ONE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ZERO_OR_ONE_END+")");break;case l.db.Cardinality.ZERO_OR_MORE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ZERO_OR_MORE_END+")");break;case l.db.Cardinality.ONE_OR_MORE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ONE_OR_MORE_END+")");break;case l.db.Cardinality.ONLY_ONE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ONLY_ONE_END+")");break;case l.db.Cardinality.MD_PARENT:o.attr("marker-end","url("+h+"#"+B.ERMarkers.MD_PARENT_END+")");break}switch(e.relSpec.cardB){case l.db.Cardinality.ZERO_OR_ONE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ZERO_OR_ONE_START+")");break;case l.db.Cardinality.ZERO_OR_MORE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ZERO_OR_MORE_START+")");break;case l.db.Cardinality.ONE_OR_MORE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ONE_OR_MORE_START+")");break;case l.db.Cardinality.ONLY_ONE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ONLY_ONE_START+")");break;case l.db.Cardinality.MD_PARENT:o.attr("marker-start","url("+h+"#"+B.ERMarkers.MD_PARENT_START+")");break}const _=o.node().getTotalLength(),m=o.node().getPointAtLength(_*.5),g="rel"+ct,p=t.append("text").classed("er relationshipLabel",!0).attr("id",g).attr("x",m.x).attr("y",m.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",Z().fontFamily).style("font-size",k.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+g).classed("er relationshipLabelBox",!0).attr("x",m.x-p.width/2).attr("y",m.y-p.height/2).attr("width",p.width).attr("height",p.height)},se=function(t,e,r,u){k=Z().er,G.info("Drawing ER diagram");const l=Z().securityLevel;let f;l==="sandbox"&&(f=rt("#i"+e));const o=(l==="sandbox"?rt(f.nodes()[0].contentDocument.body):rt("body")).select(`[id='${e}']`);B.insertMarkers(o,k);let h;h=new Mt({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:k.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const _=re(o,u.db.getEntities(),h),m=ie(u.db.getRelationships(),h);wt(h),ae(o,h),m.forEach(function(I){ne(o,I,h,_,u)});const g=k.diagramPadding;Nt.insertTitle(o,"entityTitleText",k.titleTopMargin,u.db.getDiagramTitle());const R=o.node().getBBox(),p=R.width+g*2,x=R.height+g*2;xt(o,x,p,k.useMaxWidth),o.attr("viewBox",`${R.x-g} ${R.y-g} ${p} ${x}`)},oe="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function le(t="",e=""){const r=t.replace($t,"");return`${ht(e)}${ht(r)}${Jt(t,oe)}`}function ht(t=""){return t.length>0?`${t}-`:""}const ce={setConf:te,draw:se},he=t=>`
.entityBox {
fill: ${t.mainBkg};
stroke: ${t.nodeBorder};
}
.attributeBoxOdd {
fill: ${t.attributeBackgroundColorOdd};
stroke: ${t.nodeBorder};
}
.attributeBoxEven {
fill: ${t.attributeBackgroundColorEven};
stroke: ${t.nodeBorder};
}
.relationshipLabelBox {
fill: ${t.tertiaryColor};
opacity: 0.7;
background-color: ${t.tertiaryColor};
rect {
opacity: 0.5;
}
}
.relationshipLine {
stroke: ${t.lineColor};
}
.entityTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${t.textColor};
}
#MD_PARENT_START {
fill: #f5f5f5 !important;
stroke: ${t.lineColor} !important;
stroke-width: 1;
}
#MD_PARENT_END {
fill: #f5f5f5 !important;
stroke: ${t.lineColor} !important;
stroke-width: 1;
}
`,de=he,Ee={parser:It,db:Zt,renderer:ce,styles:de};export{Ee as diagram};
import{aF as I,at as b,au as J,c4 as V,ax as T,ay as d,aK as A,aW as lt}from"./index-Hfn5l4aw.js";import{a as et}from"./createText-77e212b0-L6d34XR_.js";import{l as ct}from"./line-b015ae81-MIcjsH1n.js";const ht=(a,t,r,i)=>{t.forEach(e=>{ut[e](a,r,i)})},ot=(a,t,r)=>{d.trace("Making markers for ",r),a.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),a.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},ft=(a,t,r)=>{a.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},pt=(a,t,r)=>{a.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},yt=(a,t,r)=>{a.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},dt=(a,t,r)=>{a.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),a.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},gt=(a,t,r)=>{a.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),a.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},xt=(a,t,r)=>{a.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),a.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},wt=(a,t,r)=>{a.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),a.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},bt=(a,t,r)=>{a.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},ut={extension:ot,composition:ft,aggregation:pt,dependency:yt,lollipop:dt,point:gt,circle:xt,cross:wt,barb:bt},sr=ht;function mt(a,t){t&&a.attr("style",t)}function kt(a){const t=T(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),i=a.label,e=a.isNode?"nodeLabel":"edgeLabel";return r.html('<span class="'+e+'" '+(a.labelStyle?'style="'+a.labelStyle+'"':"")+">"+i+"</span>"),mt(r,a.labelStyle),r.style("display","inline-block"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const vt=(a,t,r,i)=>{let e=a||"";if(typeof e=="object"&&(e=e[0]),I(b().flowchart.htmlLabels)){e=e.replace(/\\n|\n/g,"<br />"),d.info("vertexText"+e);const s={isNode:i,label:V(e).replace(/fa[blrs]?:fa-[\w-]+/g,l=>`<i class='${l.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return kt(s)}else{const s=document.createElementNS("http://www.w3.org/2000/svg","text");s.setAttribute("style",t.replace("color:","fill:"));let n=[];typeof e=="string"?n=e.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(e)?n=e:n=[];for(const l of n){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),r?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=l.trim(),s.appendChild(c)}return s}},R=vt,E=async(a,t,r,i)=>{let e;const s=t.useHtmlLabels||I(b().flowchart.htmlLabels);r?e=r:e="node default";const n=a.insert("g").attr("class",e).attr("id",t.domId||t.id),l=n.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=l.node();let h;t.labelType==="markdown"?h=et(l,J(V(c),b()),{useHtmlLabels:s,width:t.width||b().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(R(J(V(c),b()),t.labelStyle,!1,i));let f=h.getBBox();const y=t.padding/2;if(I(b().flowchart.htmlLabels)){const p=h.children[0],x=T(h),m=p.getElementsByTagName("img");if(m){const g=c.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...m].map(w=>new Promise(S=>{function B(){if(w.style.display="flex",w.style.flexDirection="column",g){const C=b().fontSize?b().fontSize:window.getComputedStyle(document.body).fontSize,D=parseInt(C,10)*5+"px";w.style.minWidth=D,w.style.maxWidth=D}else w.style.width="100%";S(w)}setTimeout(()=>{w.complete&&B()}),w.addEventListener("error",B),w.addEventListener("load",B)})))}f=p.getBoundingClientRect(),x.attr("width",f.width),x.attr("height",f.height)}return s?l.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):l.attr("transform","translate(0, "+-f.height/2+")"),t.centerLabel&&l.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:n,bbox:f,halfPadding:y,label:l}},k=(a,t)=>{const r=t.node().getBBox();a.width=r.width,a.height=r.height};function N(a,t,r,i){return a.insert("polygon",":first-child").attr("points",i.map(function(e){return e.x+","+e.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}function Lt(a,t){return a.intersect(t)}function st(a,t,r,i){var e=a.x,s=a.y,n=e-i.x,l=s-i.y,c=Math.sqrt(t*t*l*l+r*r*n*n),o=Math.abs(t*r*n/c);i.x<e&&(o=-o);var h=Math.abs(t*r*l/c);return i.y<s&&(h=-h),{x:e+o,y:s+h}}function St(a,t,r){return st(a,t,t,r)}function Mt(a,t,r,i){var e,s,n,l,c,o,h,f,y,p,x,m,g,w,S;if(e=t.y-a.y,n=a.x-t.x,c=t.x*a.y-a.x*t.y,y=e*r.x+n*r.y+c,p=e*i.x+n*i.y+c,!(y!==0&&p!==0&&K(y,p))&&(s=i.y-r.y,l=r.x-i.x,o=i.x*r.y-r.x*i.y,h=s*a.x+l*a.y+o,f=s*t.x+l*t.y+o,!(h!==0&&f!==0&&K(h,f))&&(x=e*l-s*n,x!==0)))return m=Math.abs(x/2),g=n*o-l*c,w=g<0?(g-m)/x:(g+m)/x,g=s*c-e*o,S=g<0?(g-m)/x:(g+m)/x,{x:w,y:S}}function K(a,t){return a*t>0}function Bt(a,t,r){var i=a.x,e=a.y,s=[],n=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(x){n=Math.min(n,x.x),l=Math.min(l,x.y)}):(n=Math.min(n,t.x),l=Math.min(l,t.y));for(var c=i-a.width/2-n,o=e-a.height/2-l,h=0;h<t.length;h++){var f=t[h],y=t[h<t.length-1?h+1:0],p=Mt(a,r,{x:c+f.x,y:o+f.y},{x:c+y.x,y:o+y.y});p&&s.push(p)}return s.length?(s.length>1&&s.sort(function(x,m){var g=x.x-r.x,w=x.y-r.y,S=Math.sqrt(g*g+w*w),B=m.x-r.x,C=m.y-r.y,O=Math.sqrt(B*B+C*C);return S<O?-1:S===O?0:1}),s[0]):a}const Tt=(a,t)=>{var r=a.x,i=a.y,e=t.x-r,s=t.y-i,n=a.width/2,l=a.height/2,c,o;return Math.abs(s)*n>Math.abs(e)*l?(s<0&&(l=-l),c=s===0?0:l*e/s,o=l):(e<0&&(n=-n),c=n,o=e===0?0:n*s/e),{x:r+c,y:i+o}},Et=Tt,u={node:Lt,circle:St,ellipse:st,polygon:Bt,rect:Et},Ct=async(a,t)=>{t.useHtmlLabels||b().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:i,bbox:e,halfPadding:s}=await E(a,t,"node "+t.classes,!0);d.info("Classes = ",t.classes);const n=i.insert("rect",":first-child");return n.attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2-s).attr("y",-e.height/2-s).attr("width",e.width+t.padding).attr("height",e.height+t.padding),k(t,n),t.intersect=function(l){return u.rect(t,l)},i},_t=Ct,q=a=>a?" "+a:"",$=(a,t)=>`${t||"node default"}${q(a.classes)} ${q(a.class)}`,G=async(a,t)=>{const{shapeSvg:r,bbox:i}=await E(a,t,$(t,void 0),!0),e=i.width+t.padding,s=i.height+t.padding,n=e+s,l=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}];d.info("Question main (Circle)");const c=N(r,n,n,l);return c.attr("style",t.style),k(t,c),t.intersect=function(o){return d.warn("Intersect called"),u.polygon(t,l,o)},r},$t=(a,t)=>{const r=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=28,e=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}];return r.insert("polygon",":first-child").attr("points",e.map(function(n){return n.x+","+n.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(n){return u.circle(t,14,n)},r},Rt=async(a,t)=>{const{shapeSvg:r,bbox:i}=await E(a,t,$(t,void 0),!0),e=4,s=i.height+t.padding,n=s/e,l=i.width+2*n+t.padding,c=[{x:n,y:0},{x:l-n,y:0},{x:l,y:-s/2},{x:l-n,y:-s},{x:n,y:-s},{x:0,y:-s/2}],o=N(r,l,s,c);return o.attr("style",t.style),k(t,o),t.intersect=function(h){return u.polygon(t,c,h)},r},It=async(a,t)=>{const{shapeSvg:r,bbox:i}=await E(a,t,$(t,void 0),!0),e=i.width+t.padding,s=i.height+t.padding,n=[{x:-s/2,y:0},{x:e,y:0},{x:e,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}];return N(r,e,s,n).attr("style",t.style),t.width=e+s,t.height=s,t.intersect=function(c){return u.polygon(t,n,c)},r},Ht=async(a,t)=>{const{shapeSvg:r,bbox:i}=await E(a,t,$(t),!0),e=i.width+t.padding,s=i.height+t.padding,n=[{x:-2*s/6,y:0},{x:e-s/6,y:0},{x:e+2*s/6,y:-s},{x:s/6,y:-s}],l=N(r,e,s,n);return l.attr("style",t.style),k(t,l),t.intersect=function(c){return u.polygon(t,n,c)},r},Nt=async(a,t)=>{const{shapeSvg:r,bbox:i}=await E(a,t,$(t,void 0),!0),e=i.width+t.padding,s=i.height+t.padding,n=[{x:2*s/6,y:0},{x:e+s/6,y:0},{x:e-2*s/6,y:-s},{x:-s/6,y:-s}],l=N(r,e,s,n);return l.attr("style",t.style),k(t,l),t.intersect=function(c){return u.polygon(t,n,c)},r},Wt=async(a,t)=>{const{shapeSvg:r,bbox:i}=await E(a,t,$(t,void 0),!0),e=i.width+t.padding,s=i.height+t.padding,n=[{x:-2*s/6,y:0},{x:e+2*s/6,y:0},{x:e-s/6,y:-s},{x:s/6,y:-s}],l=N(r,e,s,n);return l.attr("style",t.style),k(t,l),t.intersect=function(c){return u.polygon(t,n,c)},r},Xt=async(a,t)=>{const{shapeSvg:r,bbox:i}=await E(a,t,$(t,void 0),!0),e=i.width+t.padding,s=i.height+t.padding,n=[{x:s/6,y:0},{x:e-s/6,y:0},{x:e+2*s/6,y:-s},{x:-2*s/6,y:-s}],l=N(r,e,s,n);return l.attr("style",t.style),k(t,l),t.intersect=function(c){return u.polygon(t,n,c)},r},Ot=async(a,t)=>{const{shapeSvg:r,bbox:i}=await E(a,t,$(t,void 0),!0),e=i.width+t.padding,s=i.height+t.padding,n=[{x:0,y:0},{x:e+s/2,y:0},{x:e,y:-s/2},{x:e+s/2,y:-s},{x:0,y:-s}],l=N(r,e,s,n);return l.attr("style",t.style),k(t,l),t.intersect=function(c){return u.polygon(t,n,c)},r},Yt=async(a,t)=>{const{shapeSvg:r,bbox:i}=await E(a,t,$(t,void 0),!0),e=i.width+t.padding,s=e/2,n=s/(2.5+e/50),l=i.height+n+t.padding,c="M 0,"+n+" a "+s+","+n+" 0,0,0 "+e+" 0 a "+s+","+n+" 0,0,0 "+-e+" 0 l 0,"+l+" a "+s+","+n+" 0,0,0 "+e+" 0 l 0,"+-l,o=r.attr("label-offset-y",n).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-e/2+","+-(l/2+n)+")");return k(t,o),t.intersect=function(h){const f=u.rect(t,h),y=f.x-t.x;if(s!=0&&(Math.abs(y)<t.width/2||Math.abs(y)==t.width/2&&Math.abs(f.y-t.y)>t.height/2-n)){let p=n*n*(1-y*y/(s*s));p!=0&&(p=Math.sqrt(p)),p=n-p,h.y-t.y>0&&(p=-p),f.y+=p}return f},r},Dt=async(a,t)=>{const{shapeSvg:r,bbox:i,halfPadding:e}=await E(a,t,"node "+t.classes+" "+t.class,!0),s=r.insert("rect",":first-child"),n=i.width+t.padding,l=i.height+t.padding;if(s.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",-i.width/2-e).attr("y",-i.height/2-e).attr("width",n).attr("height",l),t.props){const c=new Set(Object.keys(t.props));t.props.borders&&(it(s,t.props.borders,n,l),c.delete("borders")),c.forEach(o=>{d.warn(`Unknown node property ${o}`)})}return k(t,s),t.intersect=function(c){return u.rect(t,c)},r},jt=async(a,t)=>{const{shapeSvg:r}=await E(a,t,"label",!0);d.trace("Classes = ",t.class);const i=r.insert("rect",":first-child"),e=0,s=0;if(i.attr("width",e).attr("height",s),r.attr("class","label edgeLabel"),t.props){const n=new Set(Object.keys(t.props));t.props.borders&&(it(i,t.props.borders,e,s),n.delete("borders")),n.forEach(l=>{d.warn(`Unknown node property ${l}`)})}return k(t,i),t.intersect=function(n){return u.rect(t,n)},r};function it(a,t,r,i){const e=[],s=l=>{e.push(l,0)},n=l=>{e.push(0,l)};t.includes("t")?(d.debug("add top border"),s(r)):n(r),t.includes("r")?(d.debug("add right border"),s(i)):n(i),t.includes("b")?(d.debug("add bottom border"),s(r)):n(r),t.includes("l")?(d.debug("add left border"),s(i)):n(i),a.attr("stroke-dasharray",e.join(" "))}const At=(a,t)=>{let r;t.classes?r="node "+t.classes:r="node default";const i=a.insert("g").attr("class",r).attr("id",t.domId||t.id),e=i.insert("rect",":first-child"),s=i.insert("line"),n=i.insert("g").attr("class","label"),l=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof l=="object"?c=l[0]:c=l,d.info("Label text abc79",c,l,typeof l=="object");const o=n.node().appendChild(R(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(I(b().flowchart.htmlLabels)){const m=o.children[0],g=T(o);h=m.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}d.info("Text 2",l);const f=l.slice(1,l.length);let y=o.getBBox();const p=n.node().appendChild(R(f.join?f.join("<br/>"):f,t.labelStyle,!0,!0));if(I(b().flowchart.htmlLabels)){const m=p.children[0],g=T(p);h=m.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}const x=t.padding/2;return T(p).attr("transform","translate( "+(h.width>y.width?0:(y.width-h.width)/2)+", "+(y.height+x+5)+")"),T(o).attr("transform","translate( "+(h.width<y.width?0:-(y.width-h.width)/2)+", 0)"),h=n.node().getBBox(),n.attr("transform","translate("+-h.width/2+", "+(-h.height/2-x+3)+")"),e.attr("class","outer title-state").attr("x",-h.width/2-x).attr("y",-h.height/2-x).attr("width",h.width+t.padding).attr("height",h.height+t.padding),s.attr("class","divider").attr("x1",-h.width/2-x).attr("x2",h.width/2+x).attr("y1",-h.height/2-x+y.height+x).attr("y2",-h.height/2-x+y.height+x),k(t,e),t.intersect=function(m){return u.rect(t,m)},i},Ut=async(a,t)=>{const{shapeSvg:r,bbox:i}=await E(a,t,$(t,void 0),!0),e=i.height+t.padding,s=i.width+e/4+t.padding,n=r.insert("rect",":first-child").attr("style",t.style).attr("rx",e/2).attr("ry",e/2).attr("x",-s/2).attr("y",-e/2).attr("width",s).attr("height",e);return k(t,n),t.intersect=function(l){return u.rect(t,l)},r},zt=async(a,t)=>{const{shapeSvg:r,bbox:i,halfPadding:e}=await E(a,t,$(t,void 0),!0),s=r.insert("circle",":first-child");return s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+e).attr("width",i.width+t.padding).attr("height",i.height+t.padding),d.info("Circle main"),k(t,s),t.intersect=function(n){return d.info("Circle intersect",t,i.width/2+e,n),u.circle(t,i.width/2+e,n)},r},Zt=async(a,t)=>{const{shapeSvg:r,bbox:i,halfPadding:e}=await E(a,t,$(t,void 0),!0),s=5,n=r.insert("g",":first-child"),l=n.insert("circle"),c=n.insert("circle");return n.attr("class",t.class),l.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+e+s).attr("width",i.width+t.padding+s*2).attr("height",i.height+t.padding+s*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+e).attr("width",i.width+t.padding).attr("height",i.height+t.padding),d.info("DoubleCircle main"),k(t,l),t.intersect=function(o){return d.info("DoubleCircle intersect",t,i.width/2+e+s,o),u.circle(t,i.width/2+e+s,o)},r},Ft=async(a,t)=>{const{shapeSvg:r,bbox:i}=await E(a,t,$(t,void 0),!0),e=i.width+t.padding,s=i.height+t.padding,n=[{x:0,y:0},{x:e,y:0},{x:e,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:e+8,y:0},{x:e+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],l=N(r,e,s,n);return l.attr("style",t.style),k(t,l),t.intersect=function(c){return u.polygon(t,n,c)},r},Qt=(a,t)=>{const r=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=r.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),k(t,i),t.intersect=function(e){return u.circle(t,7,e)},r},P=(a,t,r)=>{const i=a.insert("g").attr("class","node default").attr("id",t.domId||t.id);let e=70,s=10;r==="LR"&&(e=10,s=70);const n=i.append("rect").attr("x",-1*e/2).attr("y",-1*s/2).attr("width",e).attr("height",s).attr("class","fork-join");return k(t,n),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(l){return u.rect(t,l)},i},Vt=(a,t)=>{const r=a.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=r.insert("circle",":first-child"),e=r.insert("circle",":first-child");return e.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),k(t,e),t.intersect=function(s){return u.circle(t,7,s)},r},Jt=(a,t)=>{const r=t.padding/2,i=4,e=8;let s;t.classes?s="node "+t.classes:s="node default";const n=a.insert("g").attr("class",s).attr("id",t.domId||t.id),l=n.insert("rect",":first-child"),c=n.insert("line"),o=n.insert("line");let h=0,f=i;const y=n.insert("g").attr("class","label");let p=0;const x=t.classData.annotations&&t.classData.annotations[0],m=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",g=y.node().appendChild(R(m,t.labelStyle,!0,!0));let w=g.getBBox();if(I(b().flowchart.htmlLabels)){const v=g.children[0],L=T(g);w=v.getBoundingClientRect(),L.attr("width",w.width),L.attr("height",w.height)}t.classData.annotations[0]&&(f+=w.height+i,h+=w.width);let S=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(b().flowchart.htmlLabels?S+="<"+t.classData.type+">":S+="<"+t.classData.type+">");const B=y.node().appendChild(R(S,t.labelStyle,!0,!0));T(B).attr("class","classTitle");let C=B.getBBox();if(I(b().flowchart.htmlLabels)){const v=B.children[0],L=T(B);C=v.getBoundingClientRect(),L.attr("width",C.width),L.attr("height",C.height)}f+=C.height+i,C.width>h&&(h=C.width);const O=[];t.classData.members.forEach(v=>{const L=v.getDisplayDetails();let X=L.displayText;b().flowchart.htmlLabels&&(X=X.replace(/</g,"<").replace(/>/g,">"));const H=y.node().appendChild(R(X,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let _=H.getBBox();if(I(b().flowchart.htmlLabels)){const Q=H.children[0],j=T(H);_=Q.getBoundingClientRect(),j.attr("width",_.width),j.attr("height",_.height)}_.width>h&&(h=_.width),f+=_.height+i,O.push(H)}),f+=e;const D=[];if(t.classData.methods.forEach(v=>{const L=v.getDisplayDetails();let X=L.displayText;b().flowchart.htmlLabels&&(X=X.replace(/</g,"<").replace(/>/g,">"));const H=y.node().appendChild(R(X,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let _=H.getBBox();if(I(b().flowchart.htmlLabels)){const Q=H.children[0],j=T(H);_=Q.getBoundingClientRect(),j.attr("width",_.width),j.attr("height",_.height)}_.width>h&&(h=_.width),f+=_.height+i,D.push(H)}),f+=e,x){let v=(h-w.width)/2;T(g).attr("transform","translate( "+(-1*h/2+v)+", "+-1*f/2+")"),p=w.height+i}let nt=(h-C.width)/2;return T(B).attr("transform","translate( "+(-1*h/2+nt)+", "+(-1*f/2+p)+")"),p+=C.height+i,c.attr("class","divider").attr("x1",-h/2-r).attr("x2",h/2+r).attr("y1",-f/2-r+e+p).attr("y2",-f/2-r+e+p),p+=e,O.forEach(v=>{T(v).attr("transform","translate( "+-h/2+", "+(-1*f/2+p+e/2)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),p+=e,o.attr("class","divider").attr("x1",-h/2-r).attr("x2",h/2+r).attr("y1",-f/2-r+e+p).attr("y2",-f/2-r+e+p),p+=e,D.forEach(v=>{T(v).attr("transform","translate( "+-h/2+", "+(-1*f/2+p)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),l.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-r).attr("y",-(f/2)-r).attr("width",h+t.padding).attr("height",f+t.padding),k(t,l),t.intersect=function(v){return u.rect(t,v)},n},tt={rhombus:G,question:G,rect:Dt,labelRect:jt,rectWithTitle:At,choice:$t,circle:zt,doublecircle:Zt,stadium:Ut,hexagon:Rt,rect_left_inv_arrow:It,lean_right:Ht,lean_left:Nt,trapezoid:Wt,inv_trapezoid:Xt,rect_right_inv_arrow:Ot,cylinder:Yt,start:Qt,end:Vt,note:_t,subroutine:Ft,fork:P,join:P,class_box:Jt};let Y={};const ir=async(a,t,r)=>{let i,e;if(t.link){let s;b().securityLevel==="sandbox"?s="_top":t.linkTarget&&(s=t.linkTarget||"_blank"),i=a.insert("svg:a").attr("xlink:href",t.link).attr("target",s),e=await tt[t.shape](i,t,r)}else e=await tt[t.shape](a,t,r),i=e;return t.tooltip&&e.attr("title",t.tooltip),t.class&&e.attr("class","node default "+t.class),Y[t.id]=i,t.haveCallback&&Y[t.id].attr("class",Y[t.id].attr("class")+" clickable"),i},nr=(a,t)=>{Y[t.id]=a},lr=()=>{Y={}},cr=a=>{const t=Y[a.id];d.trace("Transforming node",a.diff,a,"translate("+(a.x-a.width/2-5)+", "+a.width/2+")");const r=8,i=a.diff||0;return a.clusterNode?t.attr("transform","translate("+(a.x+i-a.width/2)+", "+(a.y-a.height/2-r)+")"):t.attr("transform","translate("+a.x+", "+a.y+")"),i},W={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function U(a,t){if(a===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};a=Z(a),t=Z(t);const[r,i]=[a.x,a.y],[e,s]=[t.x,t.y],n=e-r,l=s-i;return{angle:Math.atan(l/n),deltaX:n,deltaY:l}}const Z=a=>Array.isArray(a)?{x:a[0],y:a[1]}:a,Kt=a=>({x:function(t,r,i){let e=0;if(r===0&&Object.hasOwn(W,a.arrowTypeStart)){const{angle:s,deltaX:n}=U(i[0],i[1]);e=W[a.arrowTypeStart]*Math.cos(s)*(n>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(W,a.arrowTypeEnd)){const{angle:s,deltaX:n}=U(i[i.length-1],i[i.length-2]);e=W[a.arrowTypeEnd]*Math.cos(s)*(n>=0?1:-1)}return Z(t).x+e},y:function(t,r,i){let e=0;if(r===0&&Object.hasOwn(W,a.arrowTypeStart)){const{angle:s,deltaY:n}=U(i[0],i[1]);e=W[a.arrowTypeStart]*Math.abs(Math.sin(s))*(n>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(W,a.arrowTypeEnd)){const{angle:s,deltaY:n}=U(i[i.length-1],i[i.length-2]);e=W[a.arrowTypeEnd]*Math.abs(Math.sin(s))*(n>=0?1:-1)}return Z(t).y+e}}),qt=(a,t,r,i,e)=>{t.arrowTypeStart&&rt(a,"start",t.arrowTypeStart,r,i,e),t.arrowTypeEnd&&rt(a,"end",t.arrowTypeEnd,r,i,e)},Gt={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},rt=(a,t,r,i,e,s)=>{const n=Gt[r];if(!n){d.warn(`Unknown arrow type: ${r}`);return}const l=t==="start"?"Start":"End";a.attr(`marker-${t}`,`url(${i}#${e}_${s}-${n}${l})`)};let F={},M={};const hr=()=>{F={},M={}},or=(a,t)=>{const r=I(b().flowchart.htmlLabels),i=t.labelType==="markdown"?et(a,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:!0}):R(t.label,t.labelStyle);d.info("abc82",t,t.labelType);const e=a.insert("g").attr("class","edgeLabel"),s=e.insert("g").attr("class","label");s.node().appendChild(i);let n=i.getBBox();if(r){const c=i.children[0],o=T(i);n=c.getBoundingClientRect(),o.attr("width",n.width),o.attr("height",n.height)}s.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),F[t.id]=e,t.width=n.width,t.height=n.height;let l;if(t.startLabelLeft){const c=R(t.startLabelLeft,t.labelStyle),o=a.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),M[t.id]||(M[t.id]={}),M[t.id].startLeft=o,z(l,t.startLabelLeft)}if(t.startLabelRight){const c=R(t.startLabelRight,t.labelStyle),o=a.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=o.node().appendChild(c),h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),M[t.id]||(M[t.id]={}),M[t.id].startRight=o,z(l,t.startLabelRight)}if(t.endLabelLeft){const c=R(t.endLabelLeft,t.labelStyle),o=a.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),o.node().appendChild(c),M[t.id]||(M[t.id]={}),M[t.id].endLeft=o,z(l,t.endLabelLeft)}if(t.endLabelRight){const c=R(t.endLabelRight,t.labelStyle),o=a.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");l=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),o.node().appendChild(c),M[t.id]||(M[t.id]={}),M[t.id].endRight=o,z(l,t.endLabelRight)}return i};function z(a,t){b().flowchart.htmlLabels&&a&&(a.style.width=t.length*9+"px",a.style.height="12px")}const fr=(a,t)=>{d.info("Moving label abc78 ",a.id,a.label,F[a.id]);let r=t.updatedPath?t.updatedPath:t.originalPath;if(a.label){const i=F[a.id];let e=a.x,s=a.y;if(r){const n=A.calcLabelPosition(r);d.info("Moving label "+a.label+" from (",e,",",s,") to (",n.x,",",n.y,") abc78"),t.updatedPath&&(e=n.x,s=n.y)}i.attr("transform","translate("+e+", "+s+")")}if(a.startLabelLeft){const i=M[a.id].startLeft;let e=a.x,s=a.y;if(r){const n=A.calcTerminalLabelPosition(a.arrowTypeStart?10:0,"start_left",r);e=n.x,s=n.y}i.attr("transform","translate("+e+", "+s+")")}if(a.startLabelRight){const i=M[a.id].startRight;let e=a.x,s=a.y;if(r){const n=A.calcTerminalLabelPosition(a.arrowTypeStart?10:0,"start_right",r);e=n.x,s=n.y}i.attr("transform","translate("+e+", "+s+")")}if(a.endLabelLeft){const i=M[a.id].endLeft;let e=a.x,s=a.y;if(r){const n=A.calcTerminalLabelPosition(a.arrowTypeEnd?10:0,"end_left",r);e=n.x,s=n.y}i.attr("transform","translate("+e+", "+s+")")}if(a.endLabelRight){const i=M[a.id].endRight;let e=a.x,s=a.y;if(r){const n=A.calcTerminalLabelPosition(a.arrowTypeEnd?10:0,"end_right",r);e=n.x,s=n.y}i.attr("transform","translate("+e+", "+s+")")}},Pt=(a,t)=>{const r=a.x,i=a.y,e=Math.abs(t.x-r),s=Math.abs(t.y-i),n=a.width/2,l=a.height/2;return e>=n||s>=l},tr=(a,t,r)=>{d.warn(`intersection calc abc89:
outsidePoint: ${JSON.stringify(t)}
insidePoint : ${JSON.stringify(r)}
node : x:${a.x} y:${a.y} w:${a.width} h:${a.height}`);const i=a.x,e=a.y,s=Math.abs(i-r.x),n=a.width/2;let l=r.x<t.x?n-s:n+s;const c=a.height/2,o=Math.abs(t.y-r.y),h=Math.abs(t.x-r.x);if(Math.abs(e-t.y)*n>Math.abs(i-t.x)*c){let f=r.y<t.y?t.y-c-e:e-c-t.y;l=h*f/o;const y={x:r.x<t.x?r.x+l:r.x-h+l,y:r.y<t.y?r.y+o-f:r.y-o+f};return l===0&&(y.x=t.x,y.y=t.y),h===0&&(y.x=t.x),o===0&&(y.y=t.y),d.warn(`abc89 topp/bott calc, Q ${o}, q ${f}, R ${h}, r ${l}`,y),y}else{r.x<t.x?l=t.x-n-i:l=i-n-t.x;let f=o*l/h,y=r.x<t.x?r.x+h-l:r.x-h+l,p=r.y<t.y?r.y+f:r.y-f;return d.warn(`sides calc abc89, Q ${o}, q ${f}, R ${h}, r ${l}`,{_x:y,_y:p}),l===0&&(y=t.x,p=t.y),h===0&&(y=t.x),o===0&&(p=t.y),{x:y,y:p}}},at=(a,t)=>{d.warn("abc88 cutPathAtIntersect",a,t);let r=[],i=a[0],e=!1;return a.forEach(s=>{if(d.info("abc88 checking point",s,t),!Pt(t,s)&&!e){const n=tr(t,i,s);d.warn("abc88 inside",s,i,n),d.warn("abc88 intersection",n);let l=!1;r.forEach(c=>{l=l||c.x===n.x&&c.y===n.y}),r.some(c=>c.x===n.x&&c.y===n.y)?d.warn("abc88 no intersect",n,r):r.push(n),e=!0}else d.warn("abc88 outside",s,i),i=s,e||r.push(s)}),d.warn("abc88 returning points",r),r},pr=function(a,t,r,i,e,s,n){let l=r.points,c=!1;const o=s.node(t.v);var h=s.node(t.w);d.info("abc88 InsertEdge: ",r),h.intersect&&o.intersect&&(l=l.slice(1,r.points.length-1),l.unshift(o.intersect(l[0])),d.info("Last point",l[l.length-1],h,h.intersect(l[l.length-1])),l.push(h.intersect(l[l.length-1]))),r.toCluster&&(d.info("to cluster abc88",i[r.toCluster]),l=at(r.points,i[r.toCluster].node),c=!0),r.fromCluster&&(d.info("from cluster abc88",i[r.fromCluster]),l=at(l.reverse(),i[r.fromCluster].node).reverse(),c=!0);const f=l.filter(C=>!Number.isNaN(C.y));let y=lt;r.curve&&(e==="graph"||e==="flowchart")&&(y=r.curve);const{x:p,y:x}=Kt(r),m=ct().x(p).y(x).curve(y);let g;switch(r.thickness){case"normal":g="edge-thickness-normal";break;case"thick":g="edge-thickness-thick";break;case"invisible":g="edge-thickness-thick";break;default:g=""}switch(r.pattern){case"solid":g+=" edge-pattern-solid";break;case"dotted":g+=" edge-pattern-dotted";break;case"dashed":g+=" edge-pattern-dashed";break}const w=a.append("path").attr("d",m(f)).attr("id",r.id).attr("class"," "+g+(r.classes?" "+r.classes:"")).attr("style",r.style);let S="";(b().flowchart.arrowMarkerAbsolute||b().state.arrowMarkerAbsolute)&&(S=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,S=S.replace(/\(/g,"\\("),S=S.replace(/\)/g,"\\)")),d.info("arrowTypeStart",r.arrowTypeStart),d.info("arrowTypeEnd",r.arrowTypeEnd),qt(w,r,S,n,e);let B={};return c&&(B.updatedPath=l),B.originalPath=r.points,B};export{ir as a,or as b,pr as c,fr as d,lr as e,hr as f,R as g,Et as h,sr as i,Kt as j,qt as k,E as l,cr as p,nr as s,k as u};
import{ay as At,c4 as zt,cl as It}from"./index-Hfn5l4aw.js";const Tt={};function Bt(n,r){const t=r||Tt,e=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,u=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return et(n,e,u)}function et(n,r,t){if(Lt(n)){if("value"in n)return n.type==="html"&&!t?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Vn(n.children,r,t)}return Array.isArray(n)?Vn(n,r,t):""}function Vn(n,r,t){const e=[];let u=-1;for(;++u<n.length;)e[u]=et(n[u],r,t);return e.join("")}function Lt(n){return!!(n&&typeof n=="object")}function tn(n,r,t,e){const u=n.length;let i=0,l;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,t=t>0?t:0,e.length<1e4)l=Array.from(e),l.unshift(r,t),n.splice(...l);else for(t&&n.splice(r,t);i<e.length;)l=e.slice(i,i+1e4),l.unshift(r,0),n.splice(...l),i+=1e4,r+=1e4}function Z(n,r){return n.length>0?(tn(n,n.length,0,r),n):r}const Wn={}.hasOwnProperty;function Ot(n){const r={};let t=-1;for(;++t<n.length;)Dt(r,n[t]);return r}function Dt(n,r){let t;for(t in r){const u=(Wn.call(n,t)?n[t]:void 0)||(n[t]={}),i=r[t];let l;if(i)for(l in i){Wn.call(u,l)||(u[l]=[]);const a=i[l];Pt(u[l],Array.isArray(a)?a:a?[a]:[])}}}function Pt(n,r){let t=-1;const e=[];for(;++t<r.length;)(r[t].add==="after"?n:e).push(r[t]);tn(n,0,0,e)}const _t=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,nn=cn(/[A-Za-z]/),X=cn(/[\dA-Za-z]/),Mt=cn(/[#-'*+\--9=?A-Z^-~]/);function An(n){return n!==null&&(n<32||n===127)}const zn=cn(/\d/),jt=cn(/[\dA-Fa-f]/),Rt=cn(/[!-/:-@[-`{-~]/);function C(n){return n!==null&&n<-2}function v(n){return n!==null&&(n<0||n===32)}function z(n){return n===-2||n===-1||n===32}const qt=cn(_t),Ht=cn(/\s/);function cn(n){return r;function r(t){return t!==null&&n.test(String.fromCharCode(t))}}function O(n,r,t,e){const u=e?e-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(f){return z(f)?(n.enter(t),a(f)):r(f)}function a(f){return z(f)&&i++<u?(n.consume(f),a):(n.exit(t),r(f))}}const Nt={tokenize:Vt};function Vt(n){const r=n.attempt(this.parser.constructs.contentInitial,e,u);let t;return r;function e(a){if(a===null){n.consume(a);return}return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),O(n,r,"linePrefix")}function u(a){return n.enter("paragraph"),i(a)}function i(a){const f=n.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=f),t=f,l(a)}function l(a){if(a===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(a);return}return C(a)?(n.consume(a),n.exit("chunkText"),i):(n.consume(a),l)}}const Wt={tokenize:Qt},Qn={tokenize:Ut};function Qt(n){const r=this,t=[];let e=0,u,i,l;return a;function a(F){if(e<t.length){const D=t[e];return r.containerState=D[1],n.attempt(D[0].continuation,f,c)(F)}return c(F)}function f(F){if(e++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,u&&j();const D=r.events.length;let _=D,k;for(;_--;)if(r.events[_][0]==="exit"&&r.events[_][1].type==="chunkFlow"){k=r.events[_][1].end;break}y(e);let T=D;for(;T<r.events.length;)r.events[T][1].end=Object.assign({},k),T++;return tn(r.events,_+1,0,r.events.slice(D)),r.events.length=T,c(F)}return a(F)}function c(F){if(e===t.length){if(!u)return x(F);if(u.currentConstruct&&u.currentConstruct.concrete)return A(F);r.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return r.containerState={},n.check(Qn,p,m)(F)}function p(F){return u&&j(),y(e),x(F)}function m(F){return r.parser.lazy[r.now().line]=e!==t.length,l=r.now().offset,A(F)}function x(F){return r.containerState={},n.attempt(Qn,h,A)(F)}function h(F){return e++,t.push([r.currentConstruct,r.containerState]),x(F)}function A(F){if(F===null){u&&j(),y(0),n.consume(F);return}return u=u||r.parser.flow(r.now()),n.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:u}),I(F)}function I(F){if(F===null){M(n.exit("chunkFlow"),!0),y(0),n.consume(F);return}return C(F)?(n.consume(F),M(n.exit("chunkFlow")),e=0,r.interrupt=void 0,a):(n.consume(F),I)}function M(F,D){const _=r.sliceStream(F);if(D&&_.push(null),F.previous=i,i&&(i.next=F),i=F,u.defineSkip(F.start),u.write(_),r.parser.lazy[F.start.line]){let k=u.events.length;for(;k--;)if(u.events[k][1].start.offset<l&&(!u.events[k][1].end||u.events[k][1].end.offset>l))return;const T=r.events.length;let H=T,N,V;for(;H--;)if(r.events[H][0]==="exit"&&r.events[H][1].type==="chunkFlow"){if(N){V=r.events[H][1].end;break}N=!0}for(y(e),k=T;k<r.events.length;)r.events[k][1].end=Object.assign({},V),k++;tn(r.events,H+1,0,r.events.slice(T)),r.events.length=k}}function y(F){let D=t.length;for(;D-- >F;){const _=t[D];r.containerState=_[1],_[0].exit.call(r,n)}t.length=F}function j(){u.write([null]),i=void 0,u=void 0,r.containerState._closeFlow=void 0}}function Ut(n,r,t){return O(n,n.attempt(this.parser.constructs.document,r,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Un(n){if(n===null||v(n)||Ht(n))return 1;if(qt(n))return 2}function Ln(n,r,t){const e=[];let u=-1;for(;++u<n.length;){const i=n[u].resolveAll;i&&!e.includes(i)&&(r=i(r,t),e.push(i))}return r}const In={name:"attention",tokenize:vt,resolveAll:$t};function $t(n,r){let t=-1,e,u,i,l,a,f,c,p;for(;++t<n.length;)if(n[t][0]==="enter"&&n[t][1].type==="attentionSequence"&&n[t][1]._close){for(e=t;e--;)if(n[e][0]==="exit"&&n[e][1].type==="attentionSequence"&&n[e][1]._open&&r.sliceSerialize(n[e][1]).charCodeAt(0)===r.sliceSerialize(n[t][1]).charCodeAt(0)){if((n[e][1]._close||n[t][1]._open)&&(n[t][1].end.offset-n[t][1].start.offset)%3&&!((n[e][1].end.offset-n[e][1].start.offset+n[t][1].end.offset-n[t][1].start.offset)%3))continue;f=n[e][1].end.offset-n[e][1].start.offset>1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const m=Object.assign({},n[e][1].end),x=Object.assign({},n[t][1].start);$n(m,-f),$n(x,f),l={type:f>1?"strongSequence":"emphasisSequence",start:m,end:Object.assign({},n[e][1].end)},a={type:f>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:x},i={type:f>1?"strongText":"emphasisText",start:Object.assign({},n[e][1].end),end:Object.assign({},n[t][1].start)},u={type:f>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},a.end)},n[e][1].end=Object.assign({},l.start),n[t][1].start=Object.assign({},a.end),c=[],n[e][1].end.offset-n[e][1].start.offset&&(c=Z(c,[["enter",n[e][1],r],["exit",n[e][1],r]])),c=Z(c,[["enter",u,r],["enter",l,r],["exit",l,r],["enter",i,r]]),c=Z(c,Ln(r.parser.constructs.insideSpan.null,n.slice(e+1,t),r)),c=Z(c,[["exit",i,r],["enter",a,r],["exit",a,r],["exit",u,r]]),n[t][1].end.offset-n[t][1].start.offset?(p=2,c=Z(c,[["enter",n[t][1],r],["exit",n[t][1],r]])):p=0,tn(n,e-1,t-e+3,c),t=e+c.length-p-2;break}}for(t=-1;++t<n.length;)n[t][1].type==="attentionSequence"&&(n[t][1].type="data");return n}function vt(n,r){const t=this.parser.constructs.attentionMarkers.null,e=this.previous,u=Un(e);let i;return l;function l(f){return i=f,n.enter("attentionSequence"),a(f)}function a(f){if(f===i)return n.consume(f),a;const c=n.exit("attentionSequence"),p=Un(f),m=!p||p===2&&u||t.includes(f),x=!u||u===2&&p||t.includes(e);return c._open=!!(i===42?m:m&&(u||!x)),c._close=!!(i===42?x:x&&(p||!m)),r(f)}}function $n(n,r){n.column+=r,n.offset+=r,n._bufferIndex+=r}const Zt={name:"autolink",tokenize:Yt};function Yt(n,r,t){let e=0;return u;function u(h){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),i}function i(h){return nn(h)?(n.consume(h),l):c(h)}function l(h){return h===43||h===45||h===46||X(h)?(e=1,a(h)):c(h)}function a(h){return h===58?(n.consume(h),e=0,f):(h===43||h===45||h===46||X(h))&&e++<32?(n.consume(h),a):(e=0,c(h))}function f(h){return h===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):h===null||h===32||h===60||An(h)?t(h):(n.consume(h),f)}function c(h){return h===64?(n.consume(h),p):Mt(h)?(n.consume(h),c):t(h)}function p(h){return X(h)?m(h):t(h)}function m(h){return h===46?(n.consume(h),e=0,p):h===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):x(h)}function x(h){if((h===45||X(h))&&e++<63){const A=h===45?x:m;return n.consume(h),A}return t(h)}}const Sn={tokenize:Gt,partial:!0};function Gt(n,r,t){return e;function e(i){return z(i)?O(n,u,"linePrefix")(i):u(i)}function u(i){return i===null||C(i)?r(i):t(i)}}const rt={name:"blockQuote",tokenize:Jt,continuation:{tokenize:Kt},exit:Xt};function Jt(n,r,t){const e=this;return u;function u(l){if(l===62){const a=e.containerState;return a.open||(n.enter("blockQuote",{_container:!0}),a.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(l),n.exit("blockQuoteMarker"),i}return t(l)}function i(l){return z(l)?(n.enter("blockQuotePrefixWhitespace"),n.consume(l),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),r):(n.exit("blockQuotePrefix"),r(l))}}function Kt(n,r,t){const e=this;return u;function u(l){return z(l)?O(n,i,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return n.attempt(rt,r,t)(l)}}function Xt(n){n.exit("blockQuote")}const it={name:"characterEscape",tokenize:ne};function ne(n,r,t){return e;function e(i){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(i),n.exit("escapeMarker"),u}function u(i){return Rt(i)?(n.enter("characterEscapeValue"),n.consume(i),n.exit("characterEscapeValue"),n.exit("characterEscape"),r):t(i)}}const vn=document.createElement("i");function On(n){const r="&"+n+";";vn.innerHTML=r;const t=vn.textContent;return t.charCodeAt(t.length-1)===59&&n!=="semi"||t===r?!1:t}const ut={name:"characterReference",tokenize:te};function te(n,r,t){const e=this;let u=0,i,l;return a;function a(m){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(m),n.exit("characterReferenceMarker"),f}function f(m){return m===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(m),n.exit("characterReferenceMarkerNumeric"),c):(n.enter("characterReferenceValue"),i=31,l=X,p(m))}function c(m){return m===88||m===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(m),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),i=6,l=jt,p):(n.enter("characterReferenceValue"),i=7,l=zn,p(m))}function p(m){if(m===59&&u){const x=n.exit("characterReferenceValue");return l===X&&!On(e.sliceSerialize(x))?t(m):(n.enter("characterReferenceMarker"),n.consume(m),n.exit("characterReferenceMarker"),n.exit("characterReference"),r)}return l(m)&&u++<i?(n.consume(m),p):t(m)}}const Zn={tokenize:re,partial:!0},Yn={name:"codeFenced",tokenize:ee,concrete:!0};function ee(n,r,t){const e=this,u={tokenize:_,partial:!0};let i=0,l=0,a;return f;function f(k){return c(k)}function c(k){const T=e.events[e.events.length-1];return i=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,a=k,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),p(k)}function p(k){return k===a?(l++,n.consume(k),p):l<3?t(k):(n.exit("codeFencedFenceSequence"),z(k)?O(n,m,"whitespace")(k):m(k))}function m(k){return k===null||C(k)?(n.exit("codeFencedFence"),e.interrupt?r(k):n.check(Zn,I,D)(k)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),x(k))}function x(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),m(k)):z(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),O(n,h,"whitespace")(k)):k===96&&k===a?t(k):(n.consume(k),x)}function h(k){return k===null||C(k)?m(k):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),A(k))}function A(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),m(k)):k===96&&k===a?t(k):(n.consume(k),A)}function I(k){return n.attempt(u,D,M)(k)}function M(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),y}function y(k){return i>0&&z(k)?O(n,j,"linePrefix",i+1)(k):j(k)}function j(k){return k===null||C(k)?n.check(Zn,I,D)(k):(n.enter("codeFlowValue"),F(k))}function F(k){return k===null||C(k)?(n.exit("codeFlowValue"),j(k)):(n.consume(k),F)}function D(k){return n.exit("codeFenced"),r(k)}function _(k,T,H){let N=0;return V;function V(w){return k.enter("lineEnding"),k.consume(w),k.exit("lineEnding"),d}function d(w){return k.enter("codeFencedFence"),z(w)?O(k,S,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):S(w)}function S(w){return w===a?(k.enter("codeFencedFenceSequence"),P(w)):H(w)}function P(w){return w===a?(N++,k.consume(w),P):N>=l?(k.exit("codeFencedFenceSequence"),z(w)?O(k,R,"whitespace")(w):R(w)):H(w)}function R(w){return w===null||C(w)?(k.exit("codeFencedFence"),T(w)):H(w)}}}function re(n,r,t){const e=this;return u;function u(l){return l===null?t(l):(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}const Cn={name:"codeIndented",tokenize:ue},ie={tokenize:le,partial:!0};function ue(n,r,t){const e=this;return u;function u(c){return n.enter("codeIndented"),O(n,i,"linePrefix",5)(c)}function i(c){const p=e.events[e.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(c):t(c)}function l(c){return c===null?f(c):C(c)?n.attempt(ie,l,f)(c):(n.enter("codeFlowValue"),a(c))}function a(c){return c===null||C(c)?(n.exit("codeFlowValue"),l(c)):(n.consume(c),a)}function f(c){return n.exit("codeIndented"),r(c)}}function le(n,r,t){const e=this;return u;function u(l){return e.parser.lazy[e.now().line]?t(l):C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),u):O(n,i,"linePrefix",5)(l)}function i(l){const a=e.events[e.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):C(l)?u(l):t(l)}}const ae={name:"codeText",tokenize:ce,resolve:oe,previous:se};function oe(n){let r=n.length-4,t=3,e,u;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(e=t;++e<r;)if(n[e][1].type==="codeTextData"){n[t][1].type="codeTextPadding",n[r][1].type="codeTextPadding",t+=2,r-=2;break}}for(e=t-1,r++;++e<=r;)u===void 0?e!==r&&n[e][1].type!=="lineEnding"&&(u=e):(e===r||n[e][1].type==="lineEnding")&&(n[u][1].type="codeTextData",e!==u+2&&(n[u][1].end=n[e-1][1].end,n.splice(u+2,e-u-2),r-=e-u-2,e=u+2),u=void 0);return n}function se(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ce(n,r,t){let e=0,u,i;return l;function l(m){return n.enter("codeText"),n.enter("codeTextSequence"),a(m)}function a(m){return m===96?(n.consume(m),e++,a):(n.exit("codeTextSequence"),f(m))}function f(m){return m===null?t(m):m===32?(n.enter("space"),n.consume(m),n.exit("space"),f):m===96?(i=n.enter("codeTextSequence"),u=0,p(m)):C(m)?(n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),f):(n.enter("codeTextData"),c(m))}function c(m){return m===null||m===32||m===96||C(m)?(n.exit("codeTextData"),f(m)):(n.consume(m),c)}function p(m){return m===96?(n.consume(m),u++,p):u===e?(n.exit("codeTextSequence"),n.exit("codeText"),r(m)):(i.type="codeTextData",c(m))}}function lt(n){const r={};let t=-1,e,u,i,l,a,f,c;for(;++t<n.length;){for(;t in r;)t=r[t];if(e=n[t],t&&e[1].type==="chunkFlow"&&n[t-1][1].type==="listItemPrefix"&&(f=e[1]._tokenizer.events,i=0,i<f.length&&f[i][1].type==="lineEndingBlank"&&(i+=2),i<f.length&&f[i][1].type==="content"))for(;++i<f.length&&f[i][1].type!=="content";)f[i][1].type==="chunkText"&&(f[i][1]._isInFirstContentOfListItem=!0,i++);if(e[0]==="enter")e[1].contentType&&(Object.assign(r,he(n,t)),t=r[t],c=!0);else if(e[1]._container){for(i=t,u=void 0;i--&&(l=n[i],l[1].type==="lineEnding"||l[1].type==="lineEndingBlank");)l[0]==="enter"&&(u&&(n[u][1].type="lineEndingBlank"),l[1].type="lineEnding",u=i);u&&(e[1].end=Object.assign({},n[u][1].start),a=n.slice(u,t),a.unshift(e),tn(n,u,t-u+1,a))}}return!c}function he(n,r){const t=n[r][1],e=n[r][2];let u=r-1;const i=[],l=t._tokenizer||e.parser[t.contentType](t.start),a=l.events,f=[],c={};let p,m,x=-1,h=t,A=0,I=0;const M=[I];for(;h;){for(;n[++u][1]!==h;);i.push(u),h._tokenizer||(p=e.sliceStream(h),h.next||p.push(null),m&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(p),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),m=h,h=h.next}for(h=t;++x<a.length;)a[x][0]==="exit"&&a[x-1][0]==="enter"&&a[x][1].type===a[x-1][1].type&&a[x][1].start.line!==a[x][1].end.line&&(I=x+1,M.push(I),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):M.pop(),x=M.length;x--;){const y=a.slice(M[x],M[x+1]),j=i.pop();f.unshift([j,j+y.length-1]),tn(n,j,2,y)}for(x=-1;++x<f.length;)c[A+f[x][0]]=A+f[x][1],A+=f[x][1]-f[x][0]-1;return c}const pe={tokenize:xe,resolve:fe},me={tokenize:ge,partial:!0};function fe(n){return lt(n),n}function xe(n,r){let t;return e;function e(a){return n.enter("content"),t=n.enter("chunkContent",{contentType:"content"}),u(a)}function u(a){return a===null?i(a):C(a)?n.check(me,l,i)(a):(n.consume(a),u)}function i(a){return n.exit("chunkContent"),n.exit("content"),r(a)}function l(a){return n.consume(a),n.exit("chunkContent"),t.next=n.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,u}}function ge(n,r,t){const e=this;return u;function u(l){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),O(n,i,"linePrefix")}function i(l){if(l===null||C(l))return t(l);const a=e.events[e.events.length-1];return!e.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):n.interrupt(e.parser.constructs.flow,t,r)(l)}}function at(n,r,t,e,u,i,l,a,f){const c=f||Number.POSITIVE_INFINITY;let p=0;return m;function m(y){return y===60?(n.enter(e),n.enter(u),n.enter(i),n.consume(y),n.exit(i),x):y===null||y===32||y===41||An(y)?t(y):(n.enter(e),n.enter(l),n.enter(a),n.enter("chunkString",{contentType:"string"}),I(y))}function x(y){return y===62?(n.enter(i),n.consume(y),n.exit(i),n.exit(u),n.exit(e),r):(n.enter(a),n.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(n.exit("chunkString"),n.exit(a),x(y)):y===null||y===60||C(y)?t(y):(n.consume(y),y===92?A:h)}function A(y){return y===60||y===62||y===92?(n.consume(y),h):h(y)}function I(y){return!p&&(y===null||y===41||v(y))?(n.exit("chunkString"),n.exit(a),n.exit(l),n.exit(e),r(y)):p<c&&y===40?(n.consume(y),p++,I):y===41?(n.consume(y),p--,I):y===null||y===32||y===40||An(y)?t(y):(n.consume(y),y===92?M:I)}function M(y){return y===40||y===41||y===92?(n.consume(y),I):I(y)}}function ot(n,r,t,e,u,i){const l=this;let a=0,f;return c;function c(h){return n.enter(e),n.enter(u),n.consume(h),n.exit(u),n.enter(i),p}function p(h){return a>999||h===null||h===91||h===93&&!f||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(n.exit(i),n.enter(u),n.consume(h),n.exit(u),n.exit(e),r):C(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),p):(n.enter("chunkString",{contentType:"string"}),m(h))}function m(h){return h===null||h===91||h===93||C(h)||a++>999?(n.exit("chunkString"),p(h)):(n.consume(h),f||(f=!z(h)),h===92?x:m)}function x(h){return h===91||h===92||h===93?(n.consume(h),a++,m):m(h)}}function st(n,r,t,e,u,i){let l;return a;function a(x){return x===34||x===39||x===40?(n.enter(e),n.enter(u),n.consume(x),n.exit(u),l=x===40?41:x,f):t(x)}function f(x){return x===l?(n.enter(u),n.consume(x),n.exit(u),n.exit(e),r):(n.enter(i),c(x))}function c(x){return x===l?(n.exit(i),f(l)):x===null?t(x):C(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),O(n,c,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===l||x===null||C(x)?(n.exit("chunkString"),c(x)):(n.consume(x),x===92?m:p)}function m(x){return x===l||x===92?(n.consume(x),p):p(x)}}function bn(n,r){let t;return e;function e(u){return C(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),t=!0,e):z(u)?O(n,e,t?"linePrefix":"lineSuffix")(u):r(u)}}function xn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ke={name:"definition",tokenize:ye},be={tokenize:de,partial:!0};function ye(n,r,t){const e=this;let u;return i;function i(h){return n.enter("definition"),l(h)}function l(h){return ot.call(e,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return u=xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)),h===58?(n.enter("definitionMarker"),n.consume(h),n.exit("definitionMarker"),f):t(h)}function f(h){return v(h)?bn(n,c)(h):c(h)}function c(h){return at(n,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return n.attempt(be,m,m)(h)}function m(h){return z(h)?O(n,x,"whitespace")(h):x(h)}function x(h){return h===null||C(h)?(n.exit("definition"),e.parser.defined.push(u),r(h)):t(h)}}function de(n,r,t){return e;function e(a){return v(a)?bn(n,u)(a):t(a)}function u(a){return st(n,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return z(a)?O(n,l,"whitespace")(a):l(a)}function l(a){return a===null||C(a)?r(a):t(a)}}const Se={name:"hardBreakEscape",tokenize:Fe};function Fe(n,r,t){return e;function e(i){return n.enter("hardBreakEscape"),n.consume(i),u}function u(i){return C(i)?(n.exit("hardBreakEscape"),r(i)):t(i)}}const Ee={name:"headingAtx",tokenize:we,resolve:Ce};function Ce(n,r){let t=n.length-2,e=3,u,i;return n[e][1].type==="whitespace"&&(e+=2),t-2>e&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(e===t-1||t-4>e&&n[t-2][1].type==="whitespace")&&(t-=e+1===t?2:4),t>e&&(u={type:"atxHeadingText",start:n[e][1].start,end:n[t][1].end},i={type:"chunkText",start:n[e][1].start,end:n[t][1].end,contentType:"text"},tn(n,e,t-e+1,[["enter",u,r],["enter",i,r],["exit",i,r],["exit",u,r]])),n}function we(n,r,t){let e=0;return u;function u(p){return n.enter("atxHeading"),i(p)}function i(p){return n.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&e++<6?(n.consume(p),l):p===null||v(p)?(n.exit("atxHeadingSequence"),a(p)):t(p)}function a(p){return p===35?(n.enter("atxHeadingSequence"),f(p)):p===null||C(p)?(n.exit("atxHeading"),r(p)):z(p)?O(n,a,"whitespace")(p):(n.enter("atxHeadingText"),c(p))}function f(p){return p===35?(n.consume(p),f):(n.exit("atxHeadingSequence"),a(p))}function c(p){return p===null||p===35||v(p)?(n.exit("atxHeadingText"),a(p)):(n.consume(p),c)}}const Ae=["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"],Gn=["pre","script","style","textarea"],ze={name:"htmlFlow",tokenize:Le,resolveTo:Be,concrete:!0},Ie={tokenize:De,partial:!0},Te={tokenize:Oe,partial:!0};function Be(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function Le(n,r,t){const e=this;let u,i,l,a,f;return c;function c(s){return p(s)}function p(s){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(s),m}function m(s){return s===33?(n.consume(s),x):s===47?(n.consume(s),i=!0,I):s===63?(n.consume(s),u=3,e.interrupt?r:o):nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function x(s){return s===45?(n.consume(s),u=2,h):s===91?(n.consume(s),u=5,a=0,A):nn(s)?(n.consume(s),u=4,e.interrupt?r:o):t(s)}function h(s){return s===45?(n.consume(s),e.interrupt?r:o):t(s)}function A(s){const J="CDATA[";return s===J.charCodeAt(a++)?(n.consume(s),a===J.length?e.interrupt?r:S:A):t(s)}function I(s){return nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function M(s){if(s===null||s===47||s===62||v(s)){const J=s===47,hn=l.toLowerCase();return!J&&!i&&Gn.includes(hn)?(u=1,e.interrupt?r(s):S(s)):Ae.includes(l.toLowerCase())?(u=6,J?(n.consume(s),y):e.interrupt?r(s):S(s)):(u=7,e.interrupt&&!e.parser.lazy[e.now().line]?t(s):i?j(s):F(s))}return s===45||X(s)?(n.consume(s),l+=String.fromCharCode(s),M):t(s)}function y(s){return s===62?(n.consume(s),e.interrupt?r:S):t(s)}function j(s){return z(s)?(n.consume(s),j):V(s)}function F(s){return s===47?(n.consume(s),V):s===58||s===95||nn(s)?(n.consume(s),D):z(s)?(n.consume(s),F):V(s)}function D(s){return s===45||s===46||s===58||s===95||X(s)?(n.consume(s),D):_(s)}function _(s){return s===61?(n.consume(s),k):z(s)?(n.consume(s),_):F(s)}function k(s){return s===null||s===60||s===61||s===62||s===96?t(s):s===34||s===39?(n.consume(s),f=s,T):z(s)?(n.consume(s),k):H(s)}function T(s){return s===f?(n.consume(s),f=null,N):s===null||C(s)?t(s):(n.consume(s),T)}function H(s){return s===null||s===34||s===39||s===47||s===60||s===61||s===62||s===96||v(s)?_(s):(n.consume(s),H)}function N(s){return s===47||s===62||z(s)?F(s):t(s)}function V(s){return s===62?(n.consume(s),d):t(s)}function d(s){return s===null||C(s)?S(s):z(s)?(n.consume(s),d):t(s)}function S(s){return s===45&&u===2?(n.consume(s),U):s===60&&u===1?(n.consume(s),W):s===62&&u===4?(n.consume(s),G):s===63&&u===3?(n.consume(s),o):s===93&&u===5?(n.consume(s),en):C(s)&&(u===6||u===7)?(n.exit("htmlFlowData"),n.check(Ie,rn,P)(s)):s===null||C(s)?(n.exit("htmlFlowData"),P(s)):(n.consume(s),S)}function P(s){return n.check(Te,R,rn)(s)}function R(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),w}function w(s){return s===null||C(s)?P(s):(n.enter("htmlFlowData"),S(s))}function U(s){return s===45?(n.consume(s),o):S(s)}function W(s){return s===47?(n.consume(s),l="",Y):S(s)}function Y(s){if(s===62){const J=l.toLowerCase();return Gn.includes(J)?(n.consume(s),G):S(s)}return nn(s)&&l.length<8?(n.consume(s),l+=String.fromCharCode(s),Y):S(s)}function en(s){return s===93?(n.consume(s),o):S(s)}function o(s){return s===62?(n.consume(s),G):s===45&&u===2?(n.consume(s),o):S(s)}function G(s){return s===null||C(s)?(n.exit("htmlFlowData"),rn(s)):(n.consume(s),G)}function rn(s){return n.exit("htmlFlow"),r(s)}}function Oe(n,r,t){const e=this;return u;function u(l){return C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i):t(l)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}function De(n,r,t){return e;function e(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),n.attempt(Sn,r,t)}}const Pe={name:"htmlText",tokenize:_e};function _e(n,r,t){const e=this;let u,i,l;return a;function a(o){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(o),f}function f(o){return o===33?(n.consume(o),c):o===47?(n.consume(o),_):o===63?(n.consume(o),F):nn(o)?(n.consume(o),H):t(o)}function c(o){return o===45?(n.consume(o),p):o===91?(n.consume(o),i=0,A):nn(o)?(n.consume(o),j):t(o)}function p(o){return o===45?(n.consume(o),h):t(o)}function m(o){return o===null?t(o):o===45?(n.consume(o),x):C(o)?(l=m,W(o)):(n.consume(o),m)}function x(o){return o===45?(n.consume(o),h):m(o)}function h(o){return o===62?U(o):o===45?x(o):m(o)}function A(o){const G="CDATA[";return o===G.charCodeAt(i++)?(n.consume(o),i===G.length?I:A):t(o)}function I(o){return o===null?t(o):o===93?(n.consume(o),M):C(o)?(l=I,W(o)):(n.consume(o),I)}function M(o){return o===93?(n.consume(o),y):I(o)}function y(o){return o===62?U(o):o===93?(n.consume(o),y):I(o)}function j(o){return o===null||o===62?U(o):C(o)?(l=j,W(o)):(n.consume(o),j)}function F(o){return o===null?t(o):o===63?(n.consume(o),D):C(o)?(l=F,W(o)):(n.consume(o),F)}function D(o){return o===62?U(o):F(o)}function _(o){return nn(o)?(n.consume(o),k):t(o)}function k(o){return o===45||X(o)?(n.consume(o),k):T(o)}function T(o){return C(o)?(l=T,W(o)):z(o)?(n.consume(o),T):U(o)}function H(o){return o===45||X(o)?(n.consume(o),H):o===47||o===62||v(o)?N(o):t(o)}function N(o){return o===47?(n.consume(o),U):o===58||o===95||nn(o)?(n.consume(o),V):C(o)?(l=N,W(o)):z(o)?(n.consume(o),N):U(o)}function V(o){return o===45||o===46||o===58||o===95||X(o)?(n.consume(o),V):d(o)}function d(o){return o===61?(n.consume(o),S):C(o)?(l=d,W(o)):z(o)?(n.consume(o),d):N(o)}function S(o){return o===null||o===60||o===61||o===62||o===96?t(o):o===34||o===39?(n.consume(o),u=o,P):C(o)?(l=S,W(o)):z(o)?(n.consume(o),S):(n.consume(o),R)}function P(o){return o===u?(n.consume(o),u=void 0,w):o===null?t(o):C(o)?(l=P,W(o)):(n.consume(o),P)}function R(o){return o===null||o===34||o===39||o===60||o===61||o===96?t(o):o===47||o===62||v(o)?N(o):(n.consume(o),R)}function w(o){return o===47||o===62||v(o)?N(o):t(o)}function U(o){return o===62?(n.consume(o),n.exit("htmlTextData"),n.exit("htmlText"),r):t(o)}function W(o){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),Y}function Y(o){return z(o)?O(n,en,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):en(o)}function en(o){return n.enter("htmlTextData"),l(o)}}const Dn={name:"labelEnd",tokenize:Ne,resolveTo:He,resolveAll:qe},Me={tokenize:Ve},je={tokenize:We},Re={tokenize:Qe};function qe(n){let r=-1;for(;++r<n.length;){const t=n[r][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(n.splice(r+1,t.type==="labelImage"?4:2),t.type="data",r++)}return n}function He(n,r){let t=n.length,e=0,u,i,l,a;for(;t--;)if(u=n[t][1],i){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;n[t][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(l){if(n[t][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(i=t,u.type!=="labelLink")){e=2;break}}else u.type==="labelEnd"&&(l=t);const f={type:n[i][1].type==="labelLink"?"link":"image",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)},c={type:"label",start:Object.assign({},n[i][1].start),end:Object.assign({},n[l][1].end)},p={type:"labelText",start:Object.assign({},n[i+e+2][1].end),end:Object.assign({},n[l-2][1].start)};return a=[["enter",f,r],["enter",c,r]],a=Z(a,n.slice(i+1,i+e+3)),a=Z(a,[["enter",p,r]]),a=Z(a,Ln(r.parser.constructs.insideSpan.null,n.slice(i+e+4,l-3),r)),a=Z(a,[["exit",p,r],n[l-2],n[l-1],["exit",c,r]]),a=Z(a,n.slice(l+1)),a=Z(a,[["exit",f,r]]),tn(n,i,n.length,a),n}function Ne(n,r,t){const e=this;let u=e.events.length,i,l;for(;u--;)if((e.events[u][1].type==="labelImage"||e.events[u][1].type==="labelLink")&&!e.events[u][1]._balanced){i=e.events[u][1];break}return a;function a(x){return i?i._inactive?m(x):(l=e.parser.defined.includes(xn(e.sliceSerialize({start:i.end,end:e.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(x),n.exit("labelMarker"),n.exit("labelEnd"),f):t(x)}function f(x){return x===40?n.attempt(Me,p,l?p:m)(x):x===91?n.attempt(je,p,l?c:m)(x):l?p(x):m(x)}function c(x){return n.attempt(Re,p,m)(x)}function p(x){return r(x)}function m(x){return i._balanced=!0,t(x)}}function Ve(n,r,t){return e;function e(m){return n.enter("resource"),n.enter("resourceMarker"),n.consume(m),n.exit("resourceMarker"),u}function u(m){return v(m)?bn(n,i)(m):i(m)}function i(m){return m===41?p(m):at(n,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function l(m){return v(m)?bn(n,f)(m):p(m)}function a(m){return t(m)}function f(m){return m===34||m===39||m===40?st(n,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):p(m)}function c(m){return v(m)?bn(n,p)(m):p(m)}function p(m){return m===41?(n.enter("resourceMarker"),n.consume(m),n.exit("resourceMarker"),n.exit("resource"),r):t(m)}}function We(n,r,t){const e=this;return u;function u(a){return ot.call(e,n,i,l,"reference","referenceMarker","referenceString")(a)}function i(a){return e.parser.defined.includes(xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)))?r(a):t(a)}function l(a){return t(a)}}function Qe(n,r,t){return e;function e(i){return n.enter("reference"),n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),u}function u(i){return i===93?(n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),n.exit("reference"),r):t(i)}}const Ue={name:"labelStartImage",tokenize:$e,resolveAll:Dn.resolveAll};function $e(n,r,t){const e=this;return u;function u(a){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(a),n.exit("labelImageMarker"),i}function i(a){return a===91?(n.enter("labelMarker"),n.consume(a),n.exit("labelMarker"),n.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(a):r(a)}}const ve={name:"labelStartLink",tokenize:Ze,resolveAll:Dn.resolveAll};function Ze(n,r,t){const e=this;return u;function u(l){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(l),n.exit("labelMarker"),n.exit("labelLink"),i}function i(l){return l===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(l):r(l)}}const wn={name:"lineEnding",tokenize:Ye};function Ye(n,r){return t;function t(e){return n.enter("lineEnding"),n.consume(e),n.exit("lineEnding"),O(n,r,"linePrefix")}}const yn={name:"thematicBreak",tokenize:Ge};function Ge(n,r,t){let e=0,u;return i;function i(c){return n.enter("thematicBreak"),l(c)}function l(c){return u=c,a(c)}function a(c){return c===u?(n.enter("thematicBreakSequence"),f(c)):e>=3&&(c===null||C(c))?(n.exit("thematicBreak"),r(c)):t(c)}function f(c){return c===u?(n.consume(c),e++,f):(n.exit("thematicBreakSequence"),z(c)?O(n,a,"whitespace")(c):a(c))}}const $={name:"list",tokenize:Xe,continuation:{tokenize:nr},exit:er},Je={tokenize:rr,partial:!0},Ke={tokenize:tr,partial:!0};function Xe(n,r,t){const e=this,u=e.events[e.events.length-1];let i=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,l=0;return a;function a(h){const A=e.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!e.containerState.marker||h===e.containerState.marker:zn(h)){if(e.containerState.type||(e.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),h===42||h===45?n.check(yn,t,c)(h):c(h);if(!e.interrupt||h===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),f(h)}return t(h)}function f(h){return zn(h)&&++l<10?(n.consume(h),f):(!e.interrupt||l<2)&&(e.containerState.marker?h===e.containerState.marker:h===41||h===46)?(n.exit("listItemValue"),c(h)):t(h)}function c(h){return n.enter("listItemMarker"),n.consume(h),n.exit("listItemMarker"),e.containerState.marker=e.containerState.marker||h,n.check(Sn,e.interrupt?t:p,n.attempt(Je,x,m))}function p(h){return e.containerState.initialBlankLine=!0,i++,x(h)}function m(h){return z(h)?(n.enter("listItemPrefixWhitespace"),n.consume(h),n.exit("listItemPrefixWhitespace"),x):t(h)}function x(h){return e.containerState.size=i+e.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(h)}}function nr(n,r,t){const e=this;return e.containerState._closeFlow=void 0,n.check(Sn,u,i);function u(a){return e.containerState.furtherBlankLines=e.containerState.furtherBlankLines||e.containerState.initialBlankLine,O(n,r,"listItemIndent",e.containerState.size+1)(a)}function i(a){return e.containerState.furtherBlankLines||!z(a)?(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,l(a)):(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,n.attempt(Ke,r,l)(a))}function l(a){return e.containerState._closeFlow=!0,e.interrupt=void 0,O(n,n.attempt($,r,t),"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function tr(n,r,t){const e=this;return O(n,u,"listItemIndent",e.containerState.size+1);function u(i){const l=e.events[e.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===e.containerState.size?r(i):t(i)}}function er(n){n.exit(this.containerState.type)}function rr(n,r,t){const e=this;return O(n,u,"listItemPrefixWhitespace",e.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(i){const l=e.events[e.events.length-1];return!z(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):t(i)}}const Jn={name:"setextUnderline",tokenize:ur,resolveTo:ir};function ir(n,r){let t=n.length,e,u,i;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){e=t;break}n[t][1].type==="paragraph"&&(u=t)}else n[t][1].type==="content"&&n.splice(t,1),!i&&n[t][1].type==="definition"&&(i=t);const l={type:"setextHeading",start:Object.assign({},n[u][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[u][1].type="setextHeadingText",i?(n.splice(u,0,["enter",l,r]),n.splice(i+1,0,["exit",n[e][1],r]),n[e][1].end=Object.assign({},n[i][1].end)):n[e][1]=l,n.push(["exit",l,r]),n}function ur(n,r,t){const e=this;let u;return i;function i(c){let p=e.events.length,m;for(;p--;)if(e.events[p][1].type!=="lineEnding"&&e.events[p][1].type!=="linePrefix"&&e.events[p][1].type!=="content"){m=e.events[p][1].type==="paragraph";break}return!e.parser.lazy[e.now().line]&&(e.interrupt||m)?(n.enter("setextHeadingLine"),u=c,l(c)):t(c)}function l(c){return n.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===u?(n.consume(c),a):(n.exit("setextHeadingLineSequence"),z(c)?O(n,f,"lineSuffix")(c):f(c))}function f(c){return c===null||C(c)?(n.exit("setextHeadingLine"),r(c)):t(c)}}const lr={tokenize:ar};function ar(n){const r=this,t=n.attempt(Sn,e,n.attempt(this.parser.constructs.flowInitial,u,O(n,n.attempt(this.parser.constructs.flow,u,n.attempt(pe,u)),"linePrefix")));return t;function e(i){if(i===null){n.consume(i);return}return n.enter("lineEndingBlank"),n.consume(i),n.exit("lineEndingBlank"),r.currentConstruct=void 0,t}function u(i){if(i===null){n.consume(i);return}return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),r.currentConstruct=void 0,t}}const or={resolveAll:ht()},sr=ct("string"),cr=ct("text");function ct(n){return{tokenize:r,resolveAll:ht(n==="text"?hr:void 0)};function r(t){const e=this,u=this.parser.constructs[n],i=t.attempt(u,l,a);return l;function l(p){return c(p)?i(p):a(p)}function a(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),f}function f(p){return c(p)?(t.exit("data"),i(p)):(t.consume(p),f)}function c(p){if(p===null)return!0;const m=u[p];let x=-1;if(m)for(;++x<m.length;){const h=m[x];if(!h.previous||h.previous.call(e,e.previous))return!0}return!1}}}function ht(n){return r;function r(t,e){let u=-1,i;for(;++u<=t.length;)i===void 0?t[u]&&t[u][1].type==="data"&&(i=u,u++):(!t[u]||t[u][1].type!=="data")&&(u!==i+2&&(t[i][1].end=t[u-1][1].end,t.splice(i+2,u-i-2),u=i+2),i=void 0);return n?n(t,e):t}}function hr(n,r){let t=0;for(;++t<=n.length;)if((t===n.length||n[t][1].type==="lineEnding")&&n[t-1][1].type==="data"){const e=n[t-1][1],u=r.sliceStream(e);let i=u.length,l=-1,a=0,f;for(;i--;){const c=u[i];if(typeof c=="string"){for(l=c.length;c.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(c===-2)f=!0,a++;else if(c!==-1){i++;break}}if(a){const c={type:t===n.length||f||a<2?"lineSuffix":"hardBreakTrailing",start:{line:e.end.line,column:e.end.column-a,offset:e.end.offset-a,_index:e.start._index+i,_bufferIndex:i?l:e.start._bufferIndex+l},end:Object.assign({},e.end)};e.end=Object.assign({},c.start),e.start.offset===e.end.offset?Object.assign(e,c):(n.splice(t,0,["enter",c,r],["exit",c,r]),t+=2)}t++}return n}function pr(n,r,t){let e=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const u={},i=[];let l=[],a=[];const f={consume:j,enter:F,exit:D,attempt:T(_),check:T(k),interrupt:T(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:n,sliceStream:h,sliceSerialize:x,now:A,defineSkip:I,write:m};let p=r.tokenize.call(c,f);return r.resolveAll&&i.push(r),c;function m(d){return l=Z(l,d),M(),l[l.length-1]!==null?[]:(H(r,0),c.events=Ln(i,c.events,c),c.events)}function x(d,S){return fr(h(d),S)}function h(d){return mr(l,d)}function A(){const{line:d,column:S,offset:P,_index:R,_bufferIndex:w}=e;return{line:d,column:S,offset:P,_index:R,_bufferIndex:w}}function I(d){u[d.line]=d.column,V()}function M(){let d;for(;e._index<l.length;){const S=l[e._index];if(typeof S=="string")for(d=e._index,e._bufferIndex<0&&(e._bufferIndex=0);e._index===d&&e._bufferIndex<S.length;)y(S.charCodeAt(e._bufferIndex));else y(S)}}function y(d){p=p(d)}function j(d){C(d)?(e.line++,e.column=1,e.offset+=d===-3?2:1,V()):d!==-1&&(e.column++,e.offset++),e._bufferIndex<0?e._index++:(e._bufferIndex++,e._bufferIndex===l[e._index].length&&(e._bufferIndex=-1,e._index++)),c.previous=d}function F(d,S){const P=S||{};return P.type=d,P.start=A(),c.events.push(["enter",P,c]),a.push(P),P}function D(d){const S=a.pop();return S.end=A(),c.events.push(["exit",S,c]),S}function _(d,S){H(d,S.from)}function k(d,S){S.restore()}function T(d,S){return P;function P(R,w,U){let W,Y,en,o;return Array.isArray(R)?rn(R):"tokenize"in R?rn([R]):G(R);function G(Q){return pn;function pn(an){const mn=an!==null&&Q[an],fn=an!==null&&Q.null,Fn=[...Array.isArray(mn)?mn:mn?[mn]:[],...Array.isArray(fn)?fn:fn?[fn]:[]];return rn(Fn)(an)}}function rn(Q){return W=Q,Y=0,Q.length===0?U:s(Q[Y])}function s(Q){return pn;function pn(an){return o=N(),en=Q,Q.partial||(c.currentConstruct=Q),Q.name&&c.parser.constructs.disable.null.includes(Q.name)?hn():Q.tokenize.call(S?Object.assign(Object.create(c),S):c,f,J,hn)(an)}}function J(Q){return d(en,o),w}function hn(Q){return o.restore(),++Y<W.length?s(W[Y]):U}}}function H(d,S){d.resolveAll&&!i.includes(d)&&i.push(d),d.resolve&&tn(c.events,S,c.events.length-S,d.resolve(c.events.slice(S),c)),d.resolveTo&&(c.events=d.resolveTo(c.events,c))}function N(){const d=A(),S=c.previous,P=c.currentConstruct,R=c.events.length,w=Array.from(a);return{restore:U,from:R};function U(){e=d,c.previous=S,c.currentConstruct=P,c.events.length=R,a=w,V()}}function V(){e.line in u&&e.column<2&&(e.column=u[e.line],e.offset+=u[e.line]-1)}}function mr(n,r){const t=r.start._index,e=r.start._bufferIndex,u=r.end._index,i=r.end._bufferIndex;let l;if(t===u)l=[n[t].slice(e,i)];else{if(l=n.slice(t,u),e>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(e):l.shift()}i>0&&l.push(n[u].slice(0,i))}return l}function fr(n,r){let t=-1;const e=[];let u;for(;++t<n.length;){const i=n[t];let l;if(typeof i=="string")l=i;else switch(i){case-5:{l="\r";break}case-4:{l=`
`;break}case-3:{l=`\r
`;break}case-2:{l=r?" ":" ";break}case-1:{if(!r&&u)continue;l=" ";break}default:l=String.fromCharCode(i)}u=i===-2,e.push(l)}return e.join("")}const xr={42:$,43:$,45:$,48:$,49:$,50:$,51:$,52:$,53:$,54:$,55:$,56:$,57:$,62:rt},gr={91:ke},kr={[-2]:Cn,[-1]:Cn,32:Cn},br={35:Ee,42:yn,45:[Jn,yn],60:ze,61:Jn,95:yn,96:Yn,126:Yn},yr={38:ut,92:it},dr={[-5]:wn,[-4]:wn,[-3]:wn,33:Ue,38:ut,42:In,60:[Zt,Pe],91:ve,92:[Se,it],93:Dn,95:In,96:ae},Sr={null:[In,or]},Fr={null:[42,95]},Er={null:[]},Cr=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Fr,contentInitial:gr,disable:Er,document:xr,flow:br,flowInitial:kr,insideSpan:Sr,string:yr,text:dr},Symbol.toStringTag,{value:"Module"}));function wr(n){const t=Ot([Cr,...(n||{}).extensions||[]]),e={defined:[],lazy:{},constructs:t,content:u(Nt),document:u(Wt),flow:u(lr),string:u(sr),text:u(cr)};return e;function u(i){return l;function l(a){return pr(e,i,a)}}}const Kn=/[\0\t\n\r]/g;function Ar(){let n=1,r="",t=!0,e;return u;function u(i,l,a){const f=[];let c,p,m,x,h;for(i=r+i.toString(l),m=0,r="",t&&(i.charCodeAt(0)===65279&&m++,t=void 0);m<i.length;){if(Kn.lastIndex=m,c=Kn.exec(i),x=c&&c.index!==void 0?c.index:i.length,h=i.charCodeAt(x),!c){r=i.slice(m);break}if(h===10&&m===x&&e)f.push(-3),e=void 0;else switch(e&&(f.push(-5),e=void 0),m<x&&(f.push(i.slice(m,x)),n+=x-m),h){case 0:{f.push(65533),n++;break}case 9:{for(p=Math.ceil(n/4)*4,f.push(-2);n++<p;)f.push(-1);break}case 10:{f.push(-4),n=1;break}default:e=!0,n=1}m=x+1}return a&&(e&&f.push(-5),r&&f.push(r),f.push(null)),f}}function zr(n){for(;!lt(n););return n}function pt(n,r){const t=Number.parseInt(n,r);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCharCode(t)}const Ir=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Tr(n){return n.replace(Ir,Br)}function Br(n,r,t){if(r)return r;if(t.charCodeAt(0)===35){const u=t.charCodeAt(1),i=u===120||u===88;return pt(t.slice(i?2:1),i?16:10)}return On(t)||n}function dn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Xn(n.position):"start"in n||"end"in n?Xn(n):"line"in n||"column"in n?Tn(n):""}function Tn(n){return nt(n&&n.line)+":"+nt(n&&n.column)}function Xn(n){return Tn(n&&n.start)+"-"+Tn(n&&n.end)}function nt(n){return n&&typeof n=="number"?n:1}const mt={}.hasOwnProperty,ft=function(n,r,t){return typeof r!="string"&&(t=r,r=void 0),Lr(t)(zr(wr(t).document().write(Ar()(n,r,!0))))};function Lr(n){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Hn),autolinkProtocol:d,autolinkEmail:d,atxHeading:a(jn),blockQuote:a(Fn),characterEscape:d,characterReference:d,codeFenced:a(Mn),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:a(Mn,f),codeText:a(kt,f),codeTextData:d,data:d,codeFlowValue:d,definition:a(bt),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:a(yt),hardBreakEscape:a(Rn),hardBreakTrailing:a(Rn),htmlFlow:a(qn,f),htmlFlowData:d,htmlText:a(qn,f),htmlTextData:d,image:a(dt),label:f,link:a(Hn),listItem:a(St),listItemValue:A,listOrdered:a(Nn,h),listUnordered:a(Nn),paragraph:a(Ft),reference:hn,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:a(jn),strong:a(Et),thematicBreak:a(wt)},exit:{atxHeading:p(),atxHeadingSequence:T,autolink:p(),autolinkEmail:fn,autolinkProtocol:mn,blockQuote:p(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:pn,characterReferenceMarkerNumeric:pn,characterReferenceValue:an,codeFenced:p(j),codeFencedFence:y,codeFencedFenceInfo:I,codeFencedFenceMeta:M,codeFlowValue:S,codeIndented:p(F),codeText:p(W),codeTextData:S,data:S,definition:p(),definitionDestinationString:k,definitionLabelString:D,definitionTitleString:_,emphasis:p(),hardBreakEscape:p(R),hardBreakTrailing:p(R),htmlFlow:p(w),htmlFlowData:S,htmlText:p(U),htmlTextData:S,image:p(en),label:G,labelText:o,lineEnding:P,link:p(Y),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Q,resourceDestinationString:rn,resourceTitleString:s,resource:J,setextHeading:p(V),setextHeadingLineSequence:N,setextHeadingText:H,strong:p(),thematicBreak:p()}};xt(r,(n||{}).mdastExtensions||[]);const t={};return e;function e(g){let b={type:"root",children:[]};const E={stack:[b],tokenStack:[],config:r,enter:c,exit:m,buffer:f,resume:x,setData:i,getData:l},B=[];let L=-1;for(;++L<g.length;)if(g[L][1].type==="listOrdered"||g[L][1].type==="listUnordered")if(g[L][0]==="enter")B.push(L);else{const K=B.pop();L=u(g,K,L)}for(L=-1;++L<g.length;){const K=r[g[L][0]];mt.call(K,g[L][1].type)&&K[g[L][1].type].call(Object.assign({sliceSerialize:g[L][2].sliceSerialize},E),g[L][1])}if(E.tokenStack.length>0){const K=E.tokenStack[E.tokenStack.length-1];(K[1]||tt).call(E,void 0,K[0])}for(b.position={start:sn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:sn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},L=-1;++L<r.transforms.length;)b=r.transforms[L](b)||b;return b}function u(g,b,E){let B=b-1,L=-1,K=!1,on,un,gn,kn;for(;++B<=E;){const q=g[B];if(q[1].type==="listUnordered"||q[1].type==="listOrdered"||q[1].type==="blockQuote"?(q[0]==="enter"?L++:L--,kn=void 0):q[1].type==="lineEndingBlank"?q[0]==="enter"&&(on&&!kn&&!L&&!gn&&(gn=B),kn=void 0):q[1].type==="linePrefix"||q[1].type==="listItemValue"||q[1].type==="listItemMarker"||q[1].type==="listItemPrefix"||q[1].type==="listItemPrefixWhitespace"||(kn=void 0),!L&&q[0]==="enter"&&q[1].type==="listItemPrefix"||L===-1&&q[0]==="exit"&&(q[1].type==="listUnordered"||q[1].type==="listOrdered")){if(on){let En=B;for(un=void 0;En--;){const ln=g[En];if(ln[1].type==="lineEnding"||ln[1].type==="lineEndingBlank"){if(ln[0]==="exit")continue;un&&(g[un][1].type="lineEndingBlank",K=!0),ln[1].type="lineEnding",un=En}else if(!(ln[1].type==="linePrefix"||ln[1].type==="blockQuotePrefix"||ln[1].type==="blockQuotePrefixWhitespace"||ln[1].type==="blockQuoteMarker"||ln[1].type==="listItemIndent"))break}gn&&(!un||gn<un)&&(on._spread=!0),on.end=Object.assign({},un?g[un][1].start:q[1].end),g.splice(un||B,0,["exit",on,q[2]]),B++,E++}q[1].type==="listItemPrefix"&&(on={type:"listItem",_spread:!1,start:Object.assign({},q[1].start)},g.splice(B,0,["enter",on,q[2]]),B++,E++,gn=void 0,kn=!0)}}return g[b][1]._spread=K,E}function i(g,b){t[g]=b}function l(g){return t[g]}function a(g,b){return E;function E(B){c.call(this,g(B),B),b&&b.call(this,B)}}function f(){this.stack.push({type:"fragment",children:[]})}function c(g,b,E){return this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([b,E]),g.position={start:sn(b.start)},g}function p(g){return b;function b(E){g&&g.call(this,E),m.call(this,E)}}function m(g,b){const E=this.stack.pop(),B=this.tokenStack.pop();if(B)B[0].type!==g.type&&(b?b.call(this,g,B[0]):(B[1]||tt).call(this,g,B[0]));else throw new Error("Cannot close `"+g.type+"` ("+dn({start:g.start,end:g.end})+"): it’s not open");return E.position.end=sn(g.end),E}function x(){return Bt(this.stack.pop())}function h(){i("expectingFirstListItemValue",!0)}function A(g){if(l("expectingFirstListItemValue")){const b=this.stack[this.stack.length-2];b.start=Number.parseInt(this.sliceSerialize(g),10),i("expectingFirstListItemValue")}}function I(){const g=this.resume(),b=this.stack[this.stack.length-1];b.lang=g}function M(){const g=this.resume(),b=this.stack[this.stack.length-1];b.meta=g}function y(){l("flowCodeInside")||(this.buffer(),i("flowCodeInside",!0))}function j(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")}function F(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g.replace(/(\r?\n|\r)$/g,"")}function D(g){const b=this.resume(),E=this.stack[this.stack.length-1];E.label=b,E.identifier=xn(this.sliceSerialize(g)).toLowerCase()}function _(){const g=this.resume(),b=this.stack[this.stack.length-1];b.title=g}function k(){const g=this.resume(),b=this.stack[this.stack.length-1];b.url=g}function T(g){const b=this.stack[this.stack.length-1];if(!b.depth){const E=this.sliceSerialize(g).length;b.depth=E}}function H(){i("setextHeadingSlurpLineEnding",!0)}function N(g){const b=this.stack[this.stack.length-1];b.depth=this.sliceSerialize(g).charCodeAt(0)===61?1:2}function V(){i("setextHeadingSlurpLineEnding")}function d(g){const b=this.stack[this.stack.length-1];let E=b.children[b.children.length-1];(!E||E.type!=="text")&&(E=Ct(),E.position={start:sn(g.start)},b.children.push(E)),this.stack.push(E)}function S(g){const b=this.stack.pop();b.value+=this.sliceSerialize(g),b.position.end=sn(g.end)}function P(g){const b=this.stack[this.stack.length-1];if(l("atHardBreak")){const E=b.children[b.children.length-1];E.position.end=sn(g.end),i("atHardBreak");return}!l("setextHeadingSlurpLineEnding")&&r.canContainEols.includes(b.type)&&(d.call(this,g),S.call(this,g))}function R(){i("atHardBreak",!0)}function w(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function U(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function W(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function Y(){const g=this.stack[this.stack.length-1];if(l("inReference")){const b=l("referenceType")||"shortcut";g.type+="Reference",g.referenceType=b,delete g.url,delete g.title}else delete g.identifier,delete g.label;i("referenceType")}function en(){const g=this.stack[this.stack.length-1];if(l("inReference")){const b=l("referenceType")||"shortcut";g.type+="Reference",g.referenceType=b,delete g.url,delete g.title}else delete g.identifier,delete g.label;i("referenceType")}function o(g){const b=this.sliceSerialize(g),E=this.stack[this.stack.length-2];E.label=Tr(b),E.identifier=xn(b).toLowerCase()}function G(){const g=this.stack[this.stack.length-1],b=this.resume(),E=this.stack[this.stack.length-1];if(i("inReference",!0),E.type==="link"){const B=g.children;E.children=B}else E.alt=b}function rn(){const g=this.resume(),b=this.stack[this.stack.length-1];b.url=g}function s(){const g=this.resume(),b=this.stack[this.stack.length-1];b.title=g}function J(){i("inReference")}function hn(){i("referenceType","collapsed")}function Q(g){const b=this.resume(),E=this.stack[this.stack.length-1];E.label=b,E.identifier=xn(this.sliceSerialize(g)).toLowerCase(),i("referenceType","full")}function pn(g){i("characterReferenceType",g.type)}function an(g){const b=this.sliceSerialize(g),E=l("characterReferenceType");let B;E?(B=pt(b,E==="characterReferenceMarkerNumeric"?10:16),i("characterReferenceType")):B=On(b);const L=this.stack.pop();L.value+=B,L.position.end=sn(g.end)}function mn(g){S.call(this,g);const b=this.stack[this.stack.length-1];b.url=this.sliceSerialize(g)}function fn(g){S.call(this,g);const b=this.stack[this.stack.length-1];b.url="mailto:"+this.sliceSerialize(g)}function Fn(){return{type:"blockquote",children:[]}}function Mn(){return{type:"code",lang:null,meta:null,value:""}}function kt(){return{type:"inlineCode",value:""}}function bt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function yt(){return{type:"emphasis",children:[]}}function jn(){return{type:"heading",depth:void 0,children:[]}}function Rn(){return{type:"break"}}function qn(){return{type:"html",value:""}}function dt(){return{type:"image",title:null,url:"",alt:null}}function Hn(){return{type:"link",title:null,url:"",children:[]}}function Nn(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function St(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function Ft(){return{type:"paragraph",children:[]}}function Et(){return{type:"strong",children:[]}}function Ct(){return{type:"text",value:""}}function wt(){return{type:"thematicBreak"}}}function sn(n){return{line:n.line,column:n.column,offset:n.offset}}function xt(n,r){let t=-1;for(;++t<r.length;){const e=r[t];Array.isArray(e)?xt(n,e):Or(n,e)}}function Or(n,r){let t;for(t in r)if(mt.call(r,t)){if(t==="canContainEols"){const e=r[t];e&&n[t].push(...e)}else if(t==="transforms"){const e=r[t];e&&n[t].push(...e)}else if(t==="enter"||t==="exit"){const e=r[t];e&&Object.assign(n[t],e)}}}function tt(n,r){throw n?new Error("Cannot close `"+n.type+"` ("+dn({start:n.start,end:n.end})+"): a different token (`"+r.type+"`, "+dn({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+dn({start:r.start,end:r.end})+") is still open")}function Dr(n){const r=n.replace(/\n{2,}/g,`
`);return It(r)}function Pr(n){const r=Dr(n),{children:t}=ft(r),e=[[]];let u=0;function i(l,a="normal"){l.type==="text"?l.value.split(`
`).forEach((c,p)=>{p!==0&&(u++,e.push([])),c.split(" ").forEach(m=>{m&&e[u].push({content:m,type:a})})}):(l.type==="strong"||l.type==="emphasis")&&l.children.forEach(f=>{i(f,l.type)})}return t.forEach(l=>{l.type==="paragraph"&&l.children.forEach(a=>{i(a)})}),e}function _r(n){const{children:r}=ft(n);function t(e){return e.type==="text"?e.value.replace(/\n/g,"<br/>"):e.type==="strong"?`<strong>${e.children.map(t).join("")}</strong>`:e.type==="emphasis"?`<em>${e.children.map(t).join("")}</em>`:e.type==="paragraph"?`<p>${e.children.map(t).join("")}</p>`:`Unsupported markdown: ${e.type}`}return r.map(t).join("")}function Mr(n){return Intl.Segmenter?[...new Intl.Segmenter().segment(n)].map(r=>r.segment):[...n]}function jr(n,r){const t=Mr(r.content);return gt(n,[],t,r.type)}function gt(n,r,t,e){if(t.length===0)return[{content:r.join(""),type:e},{content:"",type:e}];const[u,...i]=t,l=[...r,u];return n([{content:l.join(""),type:e}])?gt(n,l,i,e):(r.length===0&&u&&(r.push(u),t.shift()),[{content:r.join(""),type:e},{content:t.join(""),type:e}])}function Rr(n,r){if(n.some(({content:t})=>t.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Bn(n,r)}function Bn(n,r,t=[],e=[]){if(n.length===0)return e.length>0&&t.push(e),t.length>0?t:[];let u="";n[0].content===" "&&(u=" ",n.shift());const i=n.shift()??{content:" ",type:"normal"},l=[...e];if(u!==""&&l.push({content:u,type:"normal"}),l.push(i),r(l))return Bn(n,r,t,l);if(e.length>0)t.push(e),n.unshift(i);else if(i.content){const[a,f]=jr(r,i);t.push([a]),f.content&&n.unshift(f)}return Bn(n,r,t)}function qr(n,r){r&&n.attr("style",r)}function Hr(n,r,t,e,u=!1){const i=n.append("foreignObject"),l=i.append("xhtml:div"),a=r.label,f=r.isNode?"nodeLabel":"edgeLabel";l.html(`
<span class="${f} ${e}" `+(r.labelStyle?'style="'+r.labelStyle+'"':"")+">"+a+"</span>"),qr(l,r.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("max-width",t+"px"),l.attr("xmlns","http://www.w3.org/1999/xhtml"),u&&l.attr("class","labelBkg");let c=l.node().getBoundingClientRect();return c.width===t&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",t+"px"),c=l.node().getBoundingClientRect()),i.style("width",c.width),i.style("height",c.height),i.node()}function Pn(n,r,t){return n.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",r*t-.1+"em").attr("dy",t+"em")}function Nr(n,r,t){const e=n.append("text"),u=Pn(e,1,r);_n(u,t);const i=u.node().getComputedTextLength();return e.remove(),i}function Qr(n,r,t){var e;const u=n.append("text"),i=Pn(u,1,r);_n(i,[{content:t,type:"normal"}]);const l=(e=i.node())==null?void 0:e.getBoundingClientRect();return l&&u.remove(),l}function Vr(n,r,t,e=!1){const i=r.append("g"),l=i.insert("rect").attr("class","background"),a=i.append("text").attr("y","-10.1");let f=0;for(const c of t){const p=x=>Nr(i,1.1,x)<=n,m=p(c)?[c]:Rr(c,p);for(const x of m){const h=Pn(a,f,1.1);_n(h,x),f++}}if(e){const c=a.node().getBBox(),p=2;return l.attr("x",-p).attr("y",-p).attr("width",c.width+2*p).attr("height",c.height+2*p),i.node()}else return a.node()}function _n(n,r){n.text(""),r.forEach((t,e)=>{const u=n.append("tspan").attr("font-style",t.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",t.type==="strong"?"bold":"normal");e===0?u.text(t.content):u.text(" "+t.content)})}const Ur=(n,r="",{style:t="",isTitle:e=!1,classes:u="",useHtmlLabels:i=!0,isNode:l=!0,width:a=200,addSvgBackground:f=!1}={})=>{if(At.info("createText",r,t,e,u,i,l,f),i){const c=_r(r),p={isNode:l,label:zt(c).replace(/fa[blrs]?:fa-[\w-]+/g,x=>`<i class='${x.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return Hr(n,p,a,u,f)}else{const c=Pr(r);return Vr(a,n,c,f)}};export{Ur as a,Qr as c};
import{p as M,d as _,s as B}from"./styles-9e4c6998-0KggYSQd.js";import{ay as d,at as c,ax as w,aK as G,aI as R,aE as E,aG as D,aH as C,aB as A}from"./index-Hfn5l4aw.js";import{G as z}from"./layout-94e1e85f-BAM45a7u.js";import{r as H}from"./index-20c9cf41-l8R8WdfM.js";import"./edges-9f0d1f4d-OJsHViVb.js";import"./createText-77e212b0-L6d34XR_.js";import"./line-b015ae81-MIcjsH1n.js";import"./array-b7dcf730-Nw74a44z.js";import"./path-39bad7e2-aUcfwwLI.js";const S=s=>A.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const P=function(s,t,y,n){const e=Object.keys(s);d.info("keys:",e),d.info(s),e.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};t.setNode(l.id,p),$(l.classes,t,y,n,l.id),d.info("setNode",p)})},$=function(s,t,y,n,e){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==e).forEach(function(o){var r,l;const a=s[o],p=a.cssClasses.join(" "),f=E(a.styles),h=a.label??a.id,u=0,b={labelStyle:f.labelStyle,shape:"class_box",labelText:S(h),classData:a,rx:u,ry:u,class:p,style:f.style,id:a.id,domId:a.domId,tooltip:n.db.getTooltip(a.id,e)||"",haveCallback:a.haveCallback,link:a.link,width:a.type==="group"?500:void 0,type:a.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};t.setNode(a.id,b),e&&t.setParent(a.id,e),d.info("setNode",b)})},q=function(s,t,y,n){d.info(s),s.forEach(function(e,i){var o,r;const l=e,a="",p={labelStyle:"",style:""},f=l.text,h=0,m={labelStyle:p.labelStyle,shape:"note",labelText:S(f),noteData:l,rx:h,ry:h,class:a,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(t.setNode(l.id,m),d.info("setNode",m),!l.class||!(l.class in n))return;const b=y+i,x={id:`edgeNote${b}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:D(k.curve,C)};t.setEdge(l.id,l.class,x,b)})},F=function(s,t){const y=c().flowchart;let n=0;s.forEach(function(e){var i;n++;const o={classes:"relation",pattern:e.relation.lineType==1?"dashed":"solid",id:`id_${e.id1}_${e.id2}_${n}`,arrowhead:e.type==="arrow_open"?"none":"normal",startLabelRight:e.relationTitle1==="none"?"":e.relationTitle1,endLabelLeft:e.relationTitle2==="none"?"":e.relationTitle2,arrowTypeStart:N(e.relation.type1),arrowTypeEnd:N(e.relation.type2),style:"fill:none",labelStyle:"",curve:D(y==null?void 0:y.curve,C)};if(d.info(o,e),e.style!==void 0){const r=E(e.style);o.style=r.style,o.labelStyle=r.labelStyle}e.text=e.title,e.text===void 0?e.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label='<span class="edgeLabel">'+e.text+"</span>"):(o.labelType="text",o.label=e.text.replace(A.lineBreakRegex,`
`),e.style===void 0&&(o.style=o.style||"stroke: #333; stroke-width: 1.5px;fill:none"),o.labelStyle=o.labelStyle.replace("color:","fill:"))),t.setEdge(e.id1,e.id2,o,n)})},K=function(s){k={...k,...s}},V=async function(s,t,y,n){d.info("Drawing class - ",t);const e=c().flowchart??c().class,i=c().securityLevel;d.info("config:",e);const o=(e==null?void 0:e.nodeSpacing)??50,r=(e==null?void 0:e.rankSpacing)??50,l=new z({multigraph:!0,compound:!0}).setGraph({rankdir:n.db.getDirection(),nodesep:o,ranksep:r,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),a=n.db.getNamespaces(),p=n.db.getClasses(),f=n.db.getRelations(),h=n.db.getNotes();d.info(f),P(a,l,t,n),$(p,l,t,n),F(f,l),q(h,l,f.length+1,p);let u;i==="sandbox"&&(u=w("#i"+t));const m=i==="sandbox"?w(u.nodes()[0].contentDocument.body):w("body"),b=m.select(`[id="${t}"]`),x=m.select("#"+t+" g");if(await H(x,l,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",t),G.insertTitle(b,"classTitleText",(e==null?void 0:e.titleTopMargin)??5,n.db.getDiagramTitle()),R(l,b,e==null?void 0:e.diagramPadding,e==null?void 0:e.useMaxWidth),!(e!=null&&e.htmlLabels)){const T=i==="sandbox"?u.nodes()[0].contentDocument:document,I=T.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const g of I){const L=g.getBBox(),v=T.createElementNS("http://www.w3.org/2000/svg","rect");v.setAttribute("rx",0),v.setAttribute("ry",0),v.setAttribute("width",L.width),v.setAttribute("height",L.height),g.insertBefore(v,g.firstChild)}}};function N(s){let t;switch(s){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}const W={setConf:K,draw:V},te={parser:M,db:_,renderer:W,styles:B,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,_.clear()}};export{te as diagram};
import{p as W,d as S,s as A}from"./styles-9e4c6998-0KggYSQd.js";import{at as v,ay as y,ax as B,az as G,aW as $,aK as M,aX as I}from"./index-Hfn5l4aw.js";import{G as X,l as O}from"./layout-94e1e85f-BAM45a7u.js";import{l as P}from"./line-b015ae81-MIcjsH1n.js";import"./array-b7dcf730-Nw74a44z.js";import"./path-39bad7e2-aUcfwwLI.js";let H=0;const Y=function(i,a,t,o,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=P().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let f,h;const x=a.points.length;let b=M.calcLabelPosition(a.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},J=function(i,a,t,o){y.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=C(a);const f=c.append("tspan").text(r).attr("class","title");n||f.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,u;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){_(d,l,n,t),n=!1})}const m=s.node().getBBox();var w=" ";a.cssClasses.length>0&&(w=w+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},C=function(i){let a=i.id;return i.type&&(a+="<"+I(i.type)+">"),a},Z=function(i,a,t,o){y.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(`
`);n.forEach(function(x){y.debug(`Adding line: ${x}`),c.append("tspan").text(x).attr("class","title").attr("dy",t.textHeight)});const r=s.node().getBBox(),h=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",r.width+2*t.padding).attr("height",r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return c.node().childNodes.forEach(function(x){x.setAttribute("x",(h-x.getBBox().width)/2)}),g.width=h,g.height=r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,g},_=function(i,a,t,o){const{displayText:p,cssStyle:g}=a.getDisplayDetails(),s=i.append("tspan").attr("x",o.padding).text(p);g!==""&&s.attr("style",a.cssStyle),t||s.attr("dy",o.textHeight)},N={getClassTitleString:C,drawClass:J,drawEdge:Y,drawNote:Z};let T={};const E=20,L=function(i){const a=Object.entries(T).find(t=>t[1].label===i);if(a)return a[0]},R=function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},z=function(i,a,t,o){const p=v().class;T={},y.info("Rendering diagram "+i);const g=v().securityLevel;let s;g==="sandbox"&&(s=B("#i"+a));const c=g==="sandbox"?B(s.nodes()[0].contentDocument.body):B("body"),n=c.select(`[id='${a}']`);R(n);const r=new X({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});const f=o.db.getClasses(),h=Object.keys(f);for(const e of h){const d=f[e],l=N.drawClass(n,d,p,o);T[l.id]=l,r.setNode(l.id,l),y.info("Org height: "+l.height)}o.db.getRelations().forEach(function(e){y.info("tjoho"+L(e.id1)+L(e.id2)+JSON.stringify(e)),r.setEdge(L(e.id1),L(e.id2),{relation:e},e.title||"DEFAULT")}),o.db.getNotes().forEach(function(e){y.debug(`Adding note: ${JSON.stringify(e)}`);const d=N.drawNote(n,e,p,o);T[d.id]=d,r.setNode(d.id,d),e.class&&e.class in f&&r.setEdge(e.id,L(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),O(r),r.nodes().forEach(function(e){e!==void 0&&r.node(e)!==void 0&&(y.debug("Node "+e+": "+JSON.stringify(r.node(e))),c.select("#"+(o.db.lookUpDomId(e)||e)).attr("transform","translate("+(r.node(e).x-r.node(e).width/2)+","+(r.node(e).y-r.node(e).height/2)+" )"))}),r.edges().forEach(function(e){e!==void 0&&r.edge(e)!==void 0&&(y.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(r.edge(e))),N.drawEdge(n,r.edge(e),r.edge(e).relation,p,o))});const u=n.node().getBBox(),m=u.width+E*2,w=u.height+E*2;G(n,w,m,p.useMaxWidth);const k=`${u.x-E} ${u.y-E} ${m} ${w}`;y.debug(`viewBox ${k}`),n.attr("viewBox",k)},F={draw:z},j={parser:W,db:S,renderer:F,styles:A,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,S.clear()}};export{j as diagram};
import{ap as Ce,aq as we,ar as Oe,as as Te,at as Dt,au as ue,av as Re,aw as wt,ax as Nt,ay as le,az as De,aA as Se,aB as Kt,aC as oe,aD as Pe}from"./index-Hfn5l4aw.js";import{d as Me,g as Le}from"./svgDrawCommon-1b9ff2ad-B4iIY08o.js";var Yt=function(){var e=function(bt,_,x,m){for(x=x||{},m=bt.length;m--;x[bt[m]]=_);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],O=[1,30],R=[1,31],S=[1,32],L=[1,33],Y=[1,34],Q=[1,35],H=[1,36],q=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],it=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],lt=[1,51],ot=[1,52],ct=[1,53],ht=[1,54],ut=[1,55],dt=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],At=[14,42],Vt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],v=[1,82],k=[1,83],A=[1,84],C=[1,85],w=[12,14,42],ne=[12,14,33,42],Pt=[12,14,33,42,76,77,79,80],mt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(_,x,m,g,T,u,Tt){var y=u.length-1;switch(T){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let Et={};Et[u[y-1].trim()]=u[y].trim(),this.$=Et;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(At,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(At,[2,14]),e(Vt,[2,16],{12:[1,76]}),e(At,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:v,77:k,79:A,80:C},{35:86,75:81,76:v,77:k,79:A,80:C},{35:87,75:81,76:v,77:k,79:A,80:C},{35:88,75:81,76:v,77:k,79:A,80:C},{35:89,75:81,76:v,77:k,79:A,80:C},{35:90,75:81,76:v,77:k,79:A,80:C},{35:91,75:81,76:v,77:k,79:A,80:C},{35:92,75:81,76:v,77:k,79:A,80:C},{35:93,75:81,76:v,77:k,79:A,80:C},{35:94,75:81,76:v,77:k,79:A,80:C},{35:95,75:81,76:v,77:k,79:A,80:C},{35:96,75:81,76:v,77:k,79:A,80:C},{35:97,75:81,76:v,77:k,79:A,80:C},{35:98,75:81,76:v,77:k,79:A,80:C},{35:99,75:81,76:v,77:k,79:A,80:C},{35:100,75:81,76:v,77:k,79:A,80:C},{35:101,75:81,76:v,77:k,79:A,80:C},{35:102,75:81,76:v,77:k,79:A,80:C},{35:103,75:81,76:v,77:k,79:A,80:C},{35:104,75:81,76:v,77:k,79:A,80:C},e(w,[2,59]),{35:105,75:81,76:v,77:k,79:A,80:C},{35:106,75:81,76:v,77:k,79:A,80:C},{35:107,75:81,76:v,77:k,79:A,80:C},{35:108,75:81,76:v,77:k,79:A,80:C},{35:109,75:81,76:v,77:k,79:A,80:C},{35:110,75:81,76:v,77:k,79:A,80:C},{35:111,75:81,76:v,77:k,79:A,80:C},{35:112,75:81,76:v,77:k,79:A,80:C},{35:113,75:81,76:v,77:k,79:A,80:C},{35:114,75:81,76:v,77:k,79:A,80:C},{35:115,75:81,76:v,77:k,79:A,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:k,79:A,80:C},{35:120,75:81,76:v,77:k,79:A,80:C},{35:121,75:81,76:v,77:k,79:A,80:C},{35:122,75:81,76:v,77:k,79:A,80:C},{35:123,75:81,76:v,77:k,79:A,80:C},{35:124,75:81,76:v,77:k,79:A,80:C},{35:125,75:81,76:v,77:k,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(At,[2,15]),e(Vt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(At,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(Ot,[2,21]),e(Ot,[2,22]),e(w,[2,39]),e(ne,[2,71],{75:81,35:132,76:v,77:k,79:A,80:C}),e(Pt,[2,73]),{78:[1,133]},e(Pt,[2,75]),e(Pt,[2,76]),e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),e(w,[2,47]),e(w,[2,48]),e(w,[2,49]),e(w,[2,50]),e(w,[2,51]),e(w,[2,52]),e(w,[2,53]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(w,[2,60]),e(w,[2,61]),e(w,[2,62]),e(w,[2,63]),e(w,[2,64]),e(w,[2,65]),e(w,[2,66]),e(w,[2,67]),e(w,[2,68]),e(w,[2,69]),e(w,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(mt,[2,28]),e(mt,[2,29]),e(mt,[2,30]),e(mt,[2,31]),e(mt,[2,32]),e(mt,[2,33]),e(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Vt,[2,18]),e(At,[2,38]),e(ne,[2,72]),e(Pt,[2,74]),e(w,[2,24]),e(w,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(_,x){if(x.recoverable)this.trace(_);else{var m=new Error(_);throw m.hash=x,m}},parse:function(_){var x=this,m=[0],g=[],T=[null],u=[],Tt=this.table,y="",Et=0,se=0,Ee=2,ae=1,ve=u.slice.call(arguments,1),D=Object.create(this.lexer),vt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(vt.yy[Qt]=this.yy[Qt]);D.setInput(_,vt.yy),vt.yy.lexer=D,vt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;u.push(Ht);var ke=D.options&&D.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(){var X;return X=g.pop()||D.lex()||ae,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,kt,N,qt,Ct={},Mt,z,re,Lt;;){if(kt=m[m.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((M===null||typeof M>"u")&&(M=Ae()),N=Tt[kt]&&Tt[kt][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in Tt[kt])this.terminals_[Mt]&&Mt>Ee&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`:
`+D.showPosition()+`
Expecting `+Lt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Gt="Parse error on line "+(Et+1)+": Unexpected "+(M==ae?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Gt,{text:D.match,token:this.terminals_[M]||M,line:D.yylineno,loc:Ht,expected:Lt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+M);switch(N[0]){case 1:m.push(M),T.push(D.yytext),u.push(D.yylloc),m.push(N[1]),M=null,se=D.yyleng,y=D.yytext,Et=D.yylineno,Ht=D.yylloc;break;case 2:if(z=this.productions_[N[1]][1],Ct.$=T[T.length-z],Ct._$={first_line:u[u.length-(z||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(z||1)].first_column,last_column:u[u.length-1].last_column},ke&&(Ct._$.range=[u[u.length-(z||1)].range[0],u[u.length-1].range[1]]),qt=this.performAction.apply(Ct,[y,se,Et,vt.yy,N[1],T,u].concat(ve)),typeof qt<"u")return qt;z&&(m=m.slice(0,-1*z*2),T=T.slice(0,-1*z),u=u.slice(0,-1*z)),m.push(this.productions_[N[1]][0]),T.push(Ct.$),u.push(Ct._$),re=Tt[m[m.length-2]][m[m.length-1]],m.push(re);break;case 3:return!0}}return!0}},me=function(){var bt={EOF:1,parseError:function(x,m){if(this.yy.parser)this.yy.parser.parseError(x,m);else throw new Error(x)},setInput:function(_,x){return this.yy=x||this.yy||{},this._input=_,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var x=_.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},unput:function(_){var x=_.length,m=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===g.length?this.yylloc.first_column:0)+g[g.length-m.length].length-m[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(_){this.unput(this.match.slice(_))},pastInput:function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _=this.pastInput(),x=new Array(_.length+1).join("-");return _+this.upcomingInput()+`
`+x+"^"},test_match:function(_,x){var m,g,T;if(this.options.backtrack_lexer&&(T={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(T.yylloc.range=this.yylloc.range.slice(0))),g=_[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_[0].length),this.matched+=_[0],m=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var u in T)this[u]=T[u];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,x,m,g;this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),u=0;u<T.length;u++)if(m=this._input.match(this.rules[T[u]]),m&&(!x||m[0].length>x[0].length)){if(x=m,g=u,this.options.backtrack_lexer){if(_=this.test_match(m,T[u]),_!==!1)return _;if(this._backtrack){x=!1;continue}else return!1}else if(!this.options.flex)break}return x?(_=this.test_match(x,T[g]),_!==!1?_:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var x=this.next();return x||this.lex()},begin:function(x){this.conditionStack.push(x)},popState:function(){var x=this.conditionStack.length-1;return x>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(x){return x=this.conditionStack.length-1-Math.abs(x||0),x>=0?this.conditionStack[x]:"INITIAL"},pushState:function(x){this.begin(x)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(x,m,g,T){switch(g){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return bt}();Xt.lexer=me;function Wt(){this.yy={}}return Wt.prototype=Xt,Xt.Parser=Wt,new Wt}();Yt.parser=Yt;const Ne=Yt;let U=[],_t=[""],P="global",j="",V=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],St=[],te="",ee=!1,It=4,jt=2;var de;const Be=function(){return de},Ye=function(e){de=ue(e,Dt())},Ie=function(e,t,a,o,l,i,s,r,n){if(e==null||t===void 0||t===null||a===void 0||a===null||o===void 0||o===null)return;let h={};const f=St.find(d=>d.from===t&&d.to===a);if(f?h=f:St.push(h),h.type=e,h.from=t,h.to=a,h.label={text:o},l==null)h.techn={text:""};else if(typeof l=="object"){let[d,p]=Object.entries(l)[0];h[d]={text:p}}else h.techn={text:l};if(i==null)h.descr={text:""};else if(typeof i=="object"){let[d,p]=Object.entries(i)[0];h[d]={text:p}}else h.descr={text:i};if(typeof s=="object"){let[d,p]=Object.entries(s)[0];h[d]=p}else h.sprite=s;if(typeof r=="object"){let[d,p]=Object.entries(r)[0];h[d]=p}else h.tags=r;if(typeof n=="object"){let[d,p]=Object.entries(n)[0];h[d]=p}else h.link=n;h.wrap=xt()},je=function(e,t,a,o,l,i,s){if(t===null||a===null)return;let r={};const n=U.find(h=>h.alias===t);if(n&&t===n.alias?r=n:(r.alias=t,U.push(r)),a==null?r.label={text:""}:r.label={text:a},o==null)r.descr={text:""};else if(typeof o=="object"){let[h,f]=Object.entries(o)[0];r[h]={text:f}}else r.descr={text:o};if(typeof l=="object"){let[h,f]=Object.entries(l)[0];r[h]=f}else r.sprite=l;if(typeof i=="object"){let[h,f]=Object.entries(i)[0];r[h]=f}else r.tags=i;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];r[h]=f}else r.link=s;r.typeC4Shape={text:e},r.parentBoundary=P,r.wrap=xt()},Ue=function(e,t,a,o,l,i,s,r){if(t===null||a===null)return;let n={};const h=U.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,U.push(n)),a==null?n.label={text:""}:n.label={text:a},o==null)n.techn={text:""};else if(typeof o=="object"){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.techn={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if(typeof i=="object"){let[f,d]=Object.entries(i)[0];n[f]=d}else n.sprite=i;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if(typeof r=="object"){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.wrap=xt(),n.typeC4Shape={text:e},n.parentBoundary=P},Fe=function(e,t,a,o,l,i,s,r){if(t===null||a===null)return;let n={};const h=U.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,U.push(n)),a==null?n.label={text:""}:n.label={text:a},o==null)n.techn={text:""};else if(typeof o=="object"){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.techn={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if(typeof i=="object"){let[f,d]=Object.entries(i)[0];n[f]=d}else n.sprite=i;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if(typeof r=="object"){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.wrap=xt(),n.typeC4Shape={text:e},n.parentBoundary=P},Ve=function(e,t,a,o,l){if(e===null||t===null)return;let i={};const s=V.find(r=>r.alias===e);if(s&&e===s.alias?i=s:(i.alias=e,V.push(i)),t==null?i.label={text:""}:i.label={text:t},a==null)i.type={text:"system"};else if(typeof a=="object"){let[r,n]=Object.entries(a)[0];i[r]={text:n}}else i.type={text:a};if(typeof o=="object"){let[r,n]=Object.entries(o)[0];i[r]=n}else i.tags=o;if(typeof l=="object"){let[r,n]=Object.entries(l)[0];i[r]=n}else i.link=l;i.parentBoundary=P,i.wrap=xt(),j=P,P=e,_t.push(j)},ze=function(e,t,a,o,l){if(e===null||t===null)return;let i={};const s=V.find(r=>r.alias===e);if(s&&e===s.alias?i=s:(i.alias=e,V.push(i)),t==null?i.label={text:""}:i.label={text:t},a==null)i.type={text:"container"};else if(typeof a=="object"){let[r,n]=Object.entries(a)[0];i[r]={text:n}}else i.type={text:a};if(typeof o=="object"){let[r,n]=Object.entries(o)[0];i[r]=n}else i.tags=o;if(typeof l=="object"){let[r,n]=Object.entries(l)[0];i[r]=n}else i.link=l;i.parentBoundary=P,i.wrap=xt(),j=P,P=e,_t.push(j)},Xe=function(e,t,a,o,l,i,s,r){if(t===null||a===null)return;let n={};const h=V.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,V.push(n)),a==null?n.label={text:""}:n.label={text:a},o==null)n.type={text:"node"};else if(typeof o=="object"){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.type={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if(typeof s=="object"){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if(typeof r=="object"){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.nodeType=e,n.parentBoundary=P,n.wrap=xt(),j=P,P=t,_t.push(j)},We=function(){P=j,_t.pop(),j=_t.pop(),_t.push(j)},Qe=function(e,t,a,o,l,i,s,r,n,h,f){let d=U.find(p=>p.alias===t);if(!(d===void 0&&(d=V.find(p=>p.alias===t),d===void 0))){if(a!=null)if(typeof a=="object"){let[p,E]=Object.entries(a)[0];d[p]=E}else d.bgColor=a;if(o!=null)if(typeof o=="object"){let[p,E]=Object.entries(o)[0];d[p]=E}else d.fontColor=o;if(l!=null)if(typeof l=="object"){let[p,E]=Object.entries(l)[0];d[p]=E}else d.borderColor=l;if(i!=null)if(typeof i=="object"){let[p,E]=Object.entries(i)[0];d[p]=E}else d.shadowing=i;if(s!=null)if(typeof s=="object"){let[p,E]=Object.entries(s)[0];d[p]=E}else d.shape=s;if(r!=null)if(typeof r=="object"){let[p,E]=Object.entries(r)[0];d[p]=E}else d.sprite=r;if(n!=null)if(typeof n=="object"){let[p,E]=Object.entries(n)[0];d[p]=E}else d.techn=n;if(h!=null)if(typeof h=="object"){let[p,E]=Object.entries(h)[0];d[p]=E}else d.legendText=h;if(f!=null)if(typeof f=="object"){let[p,E]=Object.entries(f)[0];d[p]=E}else d.legendSprite=f}},He=function(e,t,a,o,l,i,s){const r=St.find(n=>n.from===t&&n.to===a);if(r!==void 0){if(o!=null)if(typeof o=="object"){let[n,h]=Object.entries(o)[0];r[n]=h}else r.textColor=o;if(l!=null)if(typeof l=="object"){let[n,h]=Object.entries(l)[0];r[n]=h}else r.lineColor=l;if(i!=null)if(typeof i=="object"){let[n,h]=Object.entries(i)[0];r[n]=parseInt(h)}else r.offsetX=parseInt(i);if(s!=null)if(typeof s=="object"){let[n,h]=Object.entries(s)[0];r[n]=parseInt(h)}else r.offsetY=parseInt(s)}},qe=function(e,t,a){let o=It,l=jt;if(typeof t=="object"){const i=Object.values(t)[0];o=parseInt(i)}else o=parseInt(t);if(typeof a=="object"){const i=Object.values(a)[0];l=parseInt(i)}else l=parseInt(a);o>=1&&(It=o),l>=1&&(jt=l)},Ge=function(){return It},Ke=function(){return jt},Je=function(){return P},Ze=function(){return j},fe=function(e){return e==null?U:U.filter(t=>t.parentBoundary===e)},$e=function(e){return U.find(t=>t.alias===e)},t0=function(e){return Object.keys(fe(e))},e0=function(e){return e==null?V:V.filter(t=>t.parentBoundary===e)},i0=function(){return St},n0=function(){return te},s0=function(e){ee=e},xt=function(){return ee},a0=function(){U=[],V=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],j="",P="global",_t=[""],St=[],_t=[""],te="",ee=!1,It=4,jt=2},r0={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},l0={FILLED:0,OPEN:1},o0={LEFTOF:0,RIGHTOF:1,OVER:2},c0=function(e){te=ue(e,Dt())},Jt={addPersonOrSystem:je,addPersonOrSystemBoundary:Ve,addContainer:Ue,addContainerBoundary:ze,addComponent:Fe,addDeploymentNode:Xe,popBoundaryParseStack:We,addRel:Ie,updateElStyle:Qe,updateRelStyle:He,updateLayoutConfig:qe,autoWrap:xt,setWrap:s0,getC4ShapeArray:fe,getC4Shape:$e,getC4ShapeKeys:t0,getBoundarys:e0,getCurrentBoundaryParse:Je,getParentBoundaryParse:Ze,getRels:i0,getTitle:n0,getC4Type:Be,getC4ShapeInRow:Ge,getC4BoundaryInRow:Ke,setAccTitle:Ce,getAccTitle:we,getAccDescription:Oe,setAccDescription:Te,getConfig:()=>Dt().c4,clear:a0,LINETYPE:r0,ARROWTYPE:l0,PLACEMENT:o0,setTitle:c0,setC4Type:Ye},ie=function(e,t){return Me(e,t)},pe=function(e,t,a,o,l,i){const s=e.append("image");s.attr("width",t),s.attr("height",a),s.attr("x",o),s.attr("y",l);let r=i.startsWith("data:image/png;base64")?i:Pe(i);s.attr("xlink:href",r)},h0=(e,t,a)=>{const o=e.append("g");let l=0;for(let i of t){let s=i.textColor?i.textColor:"#444444",r=i.lineColor?i.lineColor:"#444444",n=i.offsetX?parseInt(i.offsetX):0,h=i.offsetY?parseInt(i.offsetY):0,f="";if(l===0){let p=o.append("line");p.attr("x1",i.startPoint.x),p.attr("y1",i.startPoint.y),p.attr("x2",i.endPoint.x),p.attr("y2",i.endPoint.y),p.attr("stroke-width","1"),p.attr("stroke",r),p.style("fill","none"),i.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(i.type==="birel"||i.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)"),l=-1}else{let p=o.append("path");p.attr("fill","none").attr("stroke-width","1").attr("stroke",r).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",i.startPoint.x).replaceAll("starty",i.startPoint.y).replaceAll("controlx",i.startPoint.x+(i.endPoint.x-i.startPoint.x)/2-(i.endPoint.x-i.startPoint.x)/4).replaceAll("controly",i.startPoint.y+(i.endPoint.y-i.startPoint.y)/2).replaceAll("stopx",i.endPoint.x).replaceAll("stopy",i.endPoint.y)),i.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(i.type==="birel"||i.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)")}let d=a.messageFont();W(a)(i.label.text,o,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+n,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+h,i.label.width,i.label.height,{fill:s},d),i.techn&&i.techn.text!==""&&(d=a.messageFont(),W(a)("["+i.techn.text+"]",o,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+n,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+a.messageFontSize+5+h,Math.max(i.label.width,i.techn.width),i.techn.height,{fill:s,"font-style":"italic"},d))}},u0=function(e,t,a){const o=e.append("g");let l=t.bgColor?t.bgColor:"none",i=t.borderColor?t.borderColor:"#444444",s=t.fontColor?t.fontColor:"black",r={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(r={"stroke-width":1});let n={x:t.x,y:t.y,fill:l,stroke:i,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:r};ie(o,n);let h=a.boundaryFont();h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=s,W(a)(t.label.text,o,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},h),t.type&&t.type.text!==""&&(h=a.boundaryFont(),h.fontColor=s,W(a)(t.type.text,o,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},h)),t.descr&&t.descr.text!==""&&(h=a.boundaryFont(),h.fontSize=h.fontSize-2,h.fontColor=s,W(a)(t.descr.text,o,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},h))},d0=function(e,t,a){var o;let l=t.bgColor?t.bgColor:a[t.typeC4Shape.text+"_bg_color"],i=t.borderColor?t.borderColor:a[t.typeC4Shape.text+"_border_color"],s=t.fontColor?t.fontColor:"#FFFFFF",r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const n=e.append("g");n.attr("class","person-man");const h=Le();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":h.x=t.x,h.y=t.y,h.fill=l,h.width=t.width,h.height=t.height,h.stroke=i,h.rx=2.5,h.ry=2.5,h.attrs={"stroke-width":.5},ie(n,h);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":n.append("path").attr("fill",l).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),n.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":n.append("path").attr("fill",l).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),n.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let f=E0(a,t.typeC4Shape.text);switch(n.append("text").attr("fill",s).attr("font-family",f.fontFamily).attr("font-size",f.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":pe(n,48,48,t.x+t.width/2-24,t.y+t.image.Y,r);break}let d=a[t.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=s,W(a)(t.label.text,n,t.x,t.y+t.label.Y,t.width,t.height,{fill:s},d),d=a[t.typeC4Shape.text+"Font"](),d.fontColor=s,t.techn&&((o=t.techn)==null?void 0:o.text)!==""?W(a)(t.techn.text,n,t.x,t.y+t.techn.Y,t.width,t.height,{fill:s,"font-style":"italic"},d):t.type&&t.type.text!==""&&W(a)(t.type.text,n,t.x,t.y+t.type.Y,t.width,t.height,{fill:s,"font-style":"italic"},d),t.descr&&t.descr.text!==""&&(d=a.personFont(),d.fontColor=s,W(a)(t.descr.text,n,t.x,t.y+t.descr.Y,t.width,t.height,{fill:s},d)),t.height},f0=function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},p0=function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},y0=function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},g0=function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},b0=function(e){e.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},_0=function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},x0=function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},m0=function(e){const a=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);a.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),a.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},E0=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),W=function(){function e(l,i,s,r,n,h,f){const d=i.append("text").attr("x",s+n/2).attr("y",r+h/2+5).style("text-anchor","middle").text(l);o(d,f)}function t(l,i,s,r,n,h,f,d){const{fontSize:p,fontFamily:E,fontWeight:O}=d,R=l.split(Kt.lineBreakRegex);for(let S=0;S<R.length;S++){const L=S*p-p*(R.length-1)/2,Y=i.append("text").attr("x",s+n/2).attr("y",r).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",p).style("font-weight",O).style("font-family",E);Y.append("tspan").attr("dy",L).text(R[S]).attr("alignment-baseline","mathematical"),o(Y,f)}}function a(l,i,s,r,n,h,f,d){const p=i.append("switch"),O=p.append("foreignObject").attr("x",s).attr("y",r).attr("width",n).attr("height",h).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");O.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(l),t(l,p,s,r,n,h,f,d),o(O,f)}function o(l,i){for(const s in i)i.hasOwnProperty(s)&&l.attr(s,i[s])}return function(l){return l.textPlacement==="fo"?a:l.textPlacement==="old"?e:t}}(),F={drawRect:ie,drawBoundary:u0,drawC4Shape:d0,drawRels:h0,drawImage:pe,insertArrowHead:g0,insertArrowEnd:b0,insertArrowFilledHead:_0,insertDynamicNumber:x0,insertArrowCrossHead:m0,insertDatabaseIcon:f0,insertComputerIcon:p0,insertClockIcon:y0};let Ut=0,Ft=0,ye=4,Zt=2;Yt.yy=Jt;let b={};class ge{constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,$t(t.db.getConfig())}setData(t,a,o,l){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=a,this.nextData.starty=this.data.starty=o,this.nextData.stopy=this.data.stopy=l}updateVal(t,a,o,l){t[a]===void 0?t[a]=o:t[a]=l(o,t[a])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let a=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+t.margin*2,o=a+t.width,l=this.nextData.starty+t.margin*2,i=l+t.height;(a>=this.data.widthLimit||o>=this.data.widthLimit||this.nextData.cnt>ye)&&(a=this.nextData.startx+t.margin+b.nextLinePaddingX,l=this.nextData.stopy+t.margin*2,this.nextData.stopx=o=a+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=l+t.height,this.nextData.cnt=1),t.x=a,t.y=l,this.updateVal(this.data,"startx",a,Math.min),this.updateVal(this.data,"starty",l,Math.min),this.updateVal(this.data,"stopx",o,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",a,Math.min),this.updateVal(this.nextData,"starty",l,Math.min),this.updateVal(this.nextData,"stopx",o,Math.max),this.updateVal(this.nextData,"stopy",i,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},$t(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}}const $t=function(e){Re(b,e),e.fontFamily&&(b.personFontFamily=b.systemFontFamily=b.messageFontFamily=e.fontFamily),e.fontSize&&(b.personFontSize=b.systemFontSize=b.messageFontSize=e.fontSize),e.fontWeight&&(b.personFontWeight=b.systemFontWeight=b.messageFontWeight=e.fontWeight)},Rt=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),Bt=e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),v0=e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight});function I(e,t,a,o,l){if(!t[e].width)if(a)t[e].text=Se(t[e].text,l,o),t[e].textLines=t[e].text.split(Kt.lineBreakRegex).length,t[e].width=l,t[e].height=oe(t[e].text,o);else{let i=t[e].text.split(Kt.lineBreakRegex);t[e].textLines=i.length;let s=0;t[e].height=0,t[e].width=0;for(const r of i)t[e].width=Math.max(wt(r,o),t[e].width),s=oe(r,o),t[e].height=t[e].height+s}}const be=function(e,t,a){t.x=a.data.startx,t.y=a.data.starty,t.width=a.data.stopx-a.data.startx,t.height=a.data.stopy-a.data.starty,t.label.y=b.c4ShapeMargin-35;let o=t.wrap&&b.wrap,l=Bt(b);l.fontSize=l.fontSize+2,l.fontWeight="bold";let i=wt(t.label.text,l);I("label",t,o,l,i),F.drawBoundary(e,t,b)},_e=function(e,t,a,o){let l=0;for(const i of o){l=0;const s=a[i];let r=Rt(b,s.typeC4Shape.text);switch(r.fontSize=r.fontSize-2,s.typeC4Shape.width=wt("«"+s.typeC4Shape.text+"»",r),s.typeC4Shape.height=r.fontSize+2,s.typeC4Shape.Y=b.c4ShapePadding,l=s.typeC4Shape.Y+s.typeC4Shape.height-4,s.image={width:0,height:0,Y:0},s.typeC4Shape.text){case"person":case"external_person":s.image.width=48,s.image.height=48,s.image.Y=l,l=s.image.Y+s.image.height;break}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=l,l=s.image.Y+s.image.height);let n=s.wrap&&b.wrap,h=b.width-b.c4ShapePadding*2,f=Rt(b,s.typeC4Shape.text);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",I("label",s,n,f,h),s.label.Y=l+8,l=s.label.Y+s.label.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let E=Rt(b,s.typeC4Shape.text);I("type",s,n,E,h),s.type.Y=l+5,l=s.type.Y+s.type.height}else if(s.techn&&s.techn.text!==""){s.techn.text="["+s.techn.text+"]";let E=Rt(b,s.techn.text);I("techn",s,n,E,h),s.techn.Y=l+5,l=s.techn.Y+s.techn.height}let d=l,p=s.label.width;if(s.descr&&s.descr.text!==""){let E=Rt(b,s.typeC4Shape.text);I("descr",s,n,E,h),s.descr.Y=l+20,l=s.descr.Y+s.descr.height,p=Math.max(s.label.width,s.descr.width),d=l-s.descr.textLines*5}p=p+b.c4ShapePadding,s.width=Math.max(s.width||b.width,p,b.width),s.height=Math.max(s.height||b.height,d,b.height),s.margin=s.margin||b.c4ShapeMargin,e.insert(s),F.drawC4Shape(t,s,b)}e.bumpLastMargin(b.c4ShapeMargin)};class B{constructor(t,a){this.x=t,this.y=a}}let ce=function(e,t){let a=e.x,o=e.y,l=t.x,i=t.y,s=a+e.width/2,r=o+e.height/2,n=Math.abs(a-l),h=Math.abs(o-i),f=h/n,d=e.height/e.width,p=null;return o==i&&a<l?p=new B(a+e.width,r):o==i&&a>l?p=new B(a,r):a==l&&o<i?p=new B(s,o+e.height):a==l&&o>i&&(p=new B(s,o)),a>l&&o<i?d>=f?p=new B(a,r+f*e.width/2):p=new B(s-n/h*e.height/2,o+e.height):a<l&&o<i?d>=f?p=new B(a+e.width,r+f*e.width/2):p=new B(s+n/h*e.height/2,o+e.height):a<l&&o>i?d>=f?p=new B(a+e.width,r-f*e.width/2):p=new B(s+e.height/2*n/h,o):a>l&&o>i&&(d>=f?p=new B(a,r-e.width/2*f):p=new B(s-e.height/2*n/h,o)),p},k0=function(e,t){let a={x:0,y:0};a.x=t.x+t.width/2,a.y=t.y+t.height/2;let o=ce(e,a);a.x=e.x+e.width/2,a.y=e.y+e.height/2;let l=ce(t,a);return{startPoint:o,endPoint:l}};const A0=function(e,t,a,o){let l=0;for(let i of t){l=l+1;let s=i.wrap&&b.wrap,r=v0(b);o.db.getC4Type()==="C4Dynamic"&&(i.label.text=l+": "+i.label.text);let h=wt(i.label.text,r);I("label",i,s,r,h),i.techn&&i.techn.text!==""&&(h=wt(i.techn.text,r),I("techn",i,s,r,h)),i.descr&&i.descr.text!==""&&(h=wt(i.descr.text,r),I("descr",i,s,r,h));let f=a(i.from),d=a(i.to),p=k0(f,d);i.startPoint=p.startPoint,i.endPoint=p.endPoint}F.drawRels(e,t,b)};function xe(e,t,a,o,l){let i=new ge(l);i.data.widthLimit=a.data.widthLimit/Math.min(Zt,o.length);for(let[s,r]of o.entries()){let n=0;r.image={width:0,height:0,Y:0},r.sprite&&(r.image.width=48,r.image.height=48,r.image.Y=n,n=r.image.Y+r.image.height);let h=r.wrap&&b.wrap,f=Bt(b);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",I("label",r,h,f,i.data.widthLimit),r.label.Y=n+8,n=r.label.Y+r.label.height,r.type&&r.type.text!==""){r.type.text="["+r.type.text+"]";let O=Bt(b);I("type",r,h,O,i.data.widthLimit),r.type.Y=n+5,n=r.type.Y+r.type.height}if(r.descr&&r.descr.text!==""){let O=Bt(b);O.fontSize=O.fontSize-2,I("descr",r,h,O,i.data.widthLimit),r.descr.Y=n+20,n=r.descr.Y+r.descr.height}if(s==0||s%Zt===0){let O=a.data.startx+b.diagramMarginX,R=a.data.stopy+b.diagramMarginY+n;i.setData(O,O,R,R)}else{let O=i.data.stopx!==i.data.startx?i.data.stopx+b.diagramMarginX:i.data.startx,R=i.data.starty;i.setData(O,O,R,R)}i.name=r.alias;let d=l.db.getC4ShapeArray(r.alias),p=l.db.getC4ShapeKeys(r.alias);p.length>0&&_e(i,e,d,p),t=r.alias;let E=l.db.getBoundarys(t);E.length>0&&xe(e,t,i,E,l),r.alias!=="global"&&be(e,r,i),a.data.stopy=Math.max(i.data.stopy+b.c4ShapeMargin,a.data.stopy),a.data.stopx=Math.max(i.data.stopx+b.c4ShapeMargin,a.data.stopx),Ut=Math.max(Ut,a.data.stopx),Ft=Math.max(Ft,a.data.stopy)}}const C0=function(e,t,a,o){b=Dt().c4;const l=Dt().securityLevel;let i;l==="sandbox"&&(i=Nt("#i"+t));const s=l==="sandbox"?Nt(i.nodes()[0].contentDocument.body):Nt("body");let r=o.db;o.db.setWrap(b.wrap),ye=r.getC4ShapeInRow(),Zt=r.getC4BoundaryInRow(),le.debug(`C:${JSON.stringify(b,null,2)}`);const n=l==="sandbox"?s.select(`[id="${t}"]`):Nt(`[id="${t}"]`);F.insertComputerIcon(n),F.insertDatabaseIcon(n),F.insertClockIcon(n);let h=new ge(o);h.setData(b.diagramMarginX,b.diagramMarginX,b.diagramMarginY,b.diagramMarginY),h.data.widthLimit=screen.availWidth,Ut=b.diagramMarginX,Ft=b.diagramMarginY;const f=o.db.getTitle();let d=o.db.getBoundarys("");xe(n,"",h,d,o),F.insertArrowHead(n),F.insertArrowEnd(n),F.insertArrowCrossHead(n),F.insertArrowFilledHead(n),A0(n,o.db.getRels(),o.db.getC4Shape,o),h.data.stopx=Ut,h.data.stopy=Ft;const p=h.data;let O=p.stopy-p.starty+2*b.diagramMarginY;const S=p.stopx-p.startx+2*b.diagramMarginX;f&&n.append("text").text(f).attr("x",(p.stopx-p.startx)/2-4*b.diagramMarginX).attr("y",p.starty+b.diagramMarginY),De(n,O,S,b.useMaxWidth);const L=f?60:0;n.attr("viewBox",p.startx-b.diagramMarginX+" -"+(b.diagramMarginY+L)+" "+S+" "+(O+L)),le.debug("models:",p)},he={drawPersonOrSystemArray:_e,drawBoundary:be,setConf:$t,draw:C0},w0=e=>`.person {
stroke: ${e.personBorder};
fill: ${e.personBkg};
}
`,O0=w0,D0={parser:Ne,db:Jt,renderer:he,styles:O0,init:({c4:e,wrap:t})=>{he.setConf(e),Jt.setWrap(t)}};export{D0 as diagram};
import{w as cn,c as b}from"./path-39bad7e2-aUcfwwLI.js";import{c9 as rn,ca as C,cb as j,cc as an,cd as g,bc as ln,ce as H,cf as _,cg as un,ch as o,ci as sn,cj as on,ck as tn}from"./index-Hfn5l4aw.js";function fn(c){return c.innerRadius}function gn(c){return c.outerRadius}function yn(c){return c.startAngle}function mn(c){return c.endAngle}function dn(c){return c&&c.padAngle}function pn(c,h,E,q,v,A,k,r){var I=E-c,i=q-h,n=k-v,m=r-A,a=m*I-n*i;if(!(a*a<g))return a=(n*(h-A)-m*(c-v))/a,[c+a*I,h+a*i]}function Q(c,h,E,q,v,A,k){var r=c-E,I=h-q,i=(k?A:-A)/H(r*r+I*I),n=i*I,m=-i*r,a=c+n,s=h+m,t=E+n,f=q+m,z=(a+t)/2,l=(s+f)/2,d=t-a,y=f-s,R=d*d+y*y,T=v-A,P=a*f-t*s,O=(y<0?-1:1)*H(tn(0,T*T*R-P*P)),S=(P*y-d*O)/R,$=(-P*d-y*O)/R,w=(P*y+d*O)/R,p=(-P*d+y*O)/R,x=S-z,e=$-l,u=w-z,B=p-l;return x*x+e*e>u*u+B*B&&(S=w,$=p),{cx:S,cy:$,x01:-n,y01:-m,x11:S*(v/T-1),y11:$*(v/T-1)}}function vn(){var c=fn,h=gn,E=b(0),q=null,v=yn,A=mn,k=dn,r=null,I=cn(i);function i(){var n,m,a=+c.apply(this,arguments),s=+h.apply(this,arguments),t=v.apply(this,arguments)-an,f=A.apply(this,arguments)-an,z=un(f-t),l=f>t;if(r||(r=n=I()),s<a&&(m=s,s=a,a=m),!(s>g))r.moveTo(0,0);else if(z>ln-g)r.moveTo(s*C(t),s*j(t)),r.arc(0,0,s,t,f,!l),a>g&&(r.moveTo(a*C(f),a*j(f)),r.arc(0,0,a,f,t,l));else{var d=t,y=f,R=t,T=f,P=z,O=z,S=k.apply(this,arguments)/2,$=S>g&&(q?+q.apply(this,arguments):H(a*a+s*s)),w=_(un(s-a)/2,+E.apply(this,arguments)),p=w,x=w,e,u;if($>g){var B=sn($/a*j(S)),J=sn($/s*j(S));(P-=B*2)>g?(B*=l?1:-1,R+=B,T-=B):(P=0,R=T=(t+f)/2),(O-=J*2)>g?(J*=l?1:-1,d+=J,y-=J):(O=0,d=y=(t+f)/2)}var F=s*C(d),G=s*j(d),K=a*C(T),L=a*j(T);if(w>g){var M=s*C(y),N=s*j(y),U=a*C(R),V=a*j(R),D;if(z<rn)if(D=pn(F,G,U,V,M,N,K,L)){var W=F-D[0],X=G-D[1],Y=M-D[0],Z=N-D[1],nn=1/j(on((W*Y+X*Z)/(H(W*W+X*X)*H(Y*Y+Z*Z)))/2),en=H(D[0]*D[0]+D[1]*D[1]);p=_(w,(a-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}O>g?x>g?(e=Q(U,V,F,G,s,x,l),u=Q(M,N,K,L,s,x,l),r.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?r.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(u.y01,u.x01),!l):(r.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!l),r.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(u.cy+u.y11,u.cx+u.x11),!l),r.arc(u.cx,u.cy,x,o(u.y11,u.x11),o(u.y01,u.x01),!l))):(r.moveTo(F,G),r.arc(0,0,s,d,y,!l)):r.moveTo(F,G),!(a>g)||!(P>g)?r.lineTo(K,L):p>g?(e=Q(K,L,M,N,a,-p,l),u=Q(F,G,U,V,a,-p,l),r.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?r.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(u.y01,u.x01),!l):(r.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!l),r.arc(0,0,a,o(e.cy+e.y11,e.cx+e.x11),o(u.cy+u.y11,u.cx+u.x11),l),r.arc(u.cx,u.cy,p,o(u.y11,u.x11),o(u.y01,u.x01),!l))):r.arc(0,0,a,T,R,l)}if(r.closePath(),n)return r=null,n+""||null}return i.centroid=function(){var n=(+c.apply(this,arguments)+ +h.apply(this,arguments))/2,m=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-rn/2;return[C(m)*n,j(m)*n]},i.innerRadius=function(n){return arguments.length?(c=typeof n=="function"?n:b(+n),i):c},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:b(+n),i):h},i.cornerRadius=function(n){return arguments.length?(E=typeof n=="function"?n:b(+n),i):E},i.padRadius=function(n){return arguments.length?(q=n==null?null:typeof n=="function"?n:b(+n),i):q},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:b(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:b(+n),i):A},i.padAngle=function(n){return arguments.length?(k=typeof n=="function"?n:b(+n),i):k},i.context=function(n){return arguments.length?(r=n??null,i):r},i}export{vn as d};
import{d,u as _,a as h,c as m,b as p,r as u,e as a,f as t,t as s,g as r,F as f,h as g,n as v,i as x,o as n,j as y,k as b,l as N,m as k,_ as P}from"./index-Hfn5l4aw.js";import{N as w}from"./NoteDisplay-yuZim5X5.js";const V={class:"m-4"},L={class:"mb-10"},S={class:"text-4xl font-bold mt-2"},T={class:"opacity-50"},B={class:"text-lg"},D={class:"font-bold flex gap-2"},H={class:"opacity-50"},j=t("div",{class:"flex-auto"},null,-1),z={key:0,class:"border-gray-400/50 mb-8"},C=d({__name:"PresenterPrint",setup(F){_(`
@page {
size: A4;
margin-top: 1.5cm;
margin-bottom: 1cm;
}
* {
-webkit-print-color-adjust: exact;
}
html,
html body,
html #app,
html #page-root {
height: auto;
overflow: auto !important;
}
`),h({title:`Notes - ${m.title}`});const i=p(()=>u.map(o=>{var l;return(l=o.meta)==null?void 0:l.slide}).filter(o=>o!==void 0&&o.noteHTML!==""));return(o,l)=>(n(),a("div",{id:"page-root",style:v(r(x))},[t("div",V,[t("div",L,[t("h1",S,s(r(m).title),1),t("div",T,s(new Date().toLocaleString()),1)]),(n(!0),a(f,null,g(i.value,(e,c)=>(n(),a("div",{key:c,class:"flex flex-col gap-4 break-inside-avoid-page"},[t("div",null,[t("h2",B,[t("div",D,[t("div",H,s(e==null?void 0:e.no)+"/"+s(r(y)),1),b(" "+s(e==null?void 0:e.title)+" ",1),j])]),N(w,{"note-html":e.noteHTML,class:"max-w-full"},null,8,["note-html"])]),c<i.value.length-1?(n(),a("hr",z)):k("v-if",!0)]))),128))])],4))}}),E=P(C,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/PresenterPrint.vue"]]);export{E as default};
import{o as u,e as _,f as e,p as g,q as I,b as w,d as A,s as k,v as x,w as C,_ as D,x as R,y as E,c as M,a as q,z as N,A as O,B as U,C as W,D as Z,E as G,G as X,H as j,I as J,J as K,K as Q,L as Y,M as ee,g as t,N as te,l as i,t as se,n as f,i as V,O as P,S as T,m as $,P as oe,Q as B,R as H,T as ne,j as le,U as b,V as ae,W as ie,F as re,X as ce,Y as ue,Z as de,$ as _e,a0 as me,a1 as L,a2 as ve,a3 as pe}from"./index-Hfn5l4aw.js";import{N as he}from"./NoteDisplay-yuZim5X5.js";import fe from"./DrawingControls-BpEX6Ul-.js";const ge={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},xe=e("path",{fill:"currentColor",d:"M8 12h10v2H8z"},null,-1),we=e("path",{fill:"currentColor",d:"M21.448 20A10.856 10.856 0 0 0 24 13a11 11 0 1 0-11 11a10.856 10.856 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9"},null,-1),Se=[xe,we];function ye(s,n){return u(),_("svg",ge,[...Se])}const $e={name:"carbon-zoom-out",render:ye},be={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},ke=e("path",{fill:"currentColor",d:"M18 12h-4V8h-2v4H8v2h4v4h2v-4h4z"},null,-1),Ce=e("path",{fill:"currentColor",d:"M21.448 20A10.856 10.856 0 0 0 24 13a11 11 0 1 0-11 11a10.856 10.856 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9"},null,-1),ze=[ke,Ce];function Me(s,n){return u(),_("svg",be,[...ze])}const Ne={name:"carbon-zoom-in",render:Me},Ve={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Pe=e("path",{fill:"currentColor",d:"M12 10H6.78A11 11 0 0 1 27 16h2A13 13 0 0 0 6 7.68V4H4v8h8zm8 12h5.22A11 11 0 0 1 5 16H3a13 13 0 0 0 23 8.32V28h2v-8h-8z"},null,-1),Te=[Pe];function Be(s,n){return u(),_("svg",Ve,[...Te])}const He={name:"carbon-renew",render:Be},Le={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Ae=e("path",{fill:"currentColor",d:"M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14m0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4"},null,-1),De=e("path",{fill:"currentColor",d:"M20.59 22L15 16.41V7h2v8.58l5 5.01z"},null,-1),Fe=[Ae,De];function Ie(s,n){return u(),_("svg",Le,[...Fe])}const Re={name:"carbon-time",render:Ie},Ee="/slides/fosdem2024/assets/logo-title-horizontal-XSaaVPPu.png";function qe(){const s=g(Date.now()),n=I({interval:1e3}),m=w(()=>{const l=(n.value-s.value)/1e3,r=Math.floor(l%60).toString().padStart(2,"0");return`${Math.floor(l/60).toString().padStart(2,"0")}:${r}`});function v(){s.value=n.value}return{timer:m,resetTimer:v}}const Oe=A({__name:"NoteStatic",props:{class:{type:String,required:!1}},setup(s){const n=s,m=w(()=>{var l,r,a;return(a=(r=(l=k.value)==null?void 0:l.meta)==null?void 0:r.slide)==null?void 0:a.note}),v=w(()=>{var l,r,a;return(a=(r=(l=k.value)==null?void 0:l.meta)==null?void 0:r.slide)==null?void 0:a.noteHTML});return(l,r)=>(u(),x(he,{class:C(n.class),note:m.value,"note-html":v.value},null,8,["class","note","note-html"]))}}),Ue=D(Oe,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/NoteStatic.vue"]]),S=s=>(_e("data-v-574fd206"),s=s(),me(),s),We={class:"bg-main h-full slidev-presenter"},Ze={class:"grid-section top flex"},Ge=S(()=>e("img",{src:Ee,class:"ml-2 my-auto h-10 py-1 lg:h-14 lg:py-2",style:{height:"3.5rem"},alt:"Slidev logo"},null,-1)),Xe=S(()=>e("div",{class:"flex-auto"},null,-1)),je={class:"text-2xl pl-2 pr-6 my-auto tabular-nums"},Je=S(()=>e("div",{class:"context"}," current ",-1)),Ke=S(()=>e("div",{class:"context"}," next ",-1)),Qe={key:1,class:"grid-section note grid grid-rows-[1fr_min-content] overflow-hidden"},Ye={class:"border-t border-main py-1 px-2 text-sm"},et={class:"grid-section bottom"},tt={class:"progress-bar"},st=A({__name:"Presenter",setup(s){const n=g();R(),E(n);const m=M.titleTemplate.replace("%s",M.title||"Slidev");q({title:`Presenter - ${m}`}),g(!1);const{timer:v,resetTimer:l}=qe(),r=g([]),a=w(()=>N.value<O.value?{route:k.value,clicks:N.value+1}:U.value?{route:W.value,clicks:0}:null);return Z(),G(()=>{const z=n.value.querySelector("#slide-content"),o=X(j()),y=J();K(()=>{if(!y.value||Y.value||!ee.value)return;const d=z.getBoundingClientRect(),p=(o.x-d.left)/d.width*100,h=(o.y-d.top)/d.height*100;if(!(p<0||p>100||h<0||h>100))return{x:p,y:h}},d=>{Q.cursor=d})}),(z,o)=>{const y=Re,d=He,p=Ne,h=$e;return u(),_(re,null,[e("div",We,[e("div",{class:C(["grid-container",`layout${t(te)}`])},[e("div",Ze,[Ge,Xe,e("div",{class:"timer-btn my-auto relative w-22px h-22px cursor-pointer text-lg",opacity:"50 hover:100",onClick:o[0]||(o[0]=(...c)=>t(l)&&t(l)(...c))},[i(y,{class:"absolute"}),i(d,{class:"absolute opacity-0"})]),e("div",je,se(t(v)),1)]),e("div",{ref_key:"main",ref:n,class:"relative grid-section main flex flex-col p-2 lg:p-4",style:f(t(V))},[i(T,{key:"main",class:"h-full w-full"},{default:P(()=>[i(ce,{"render-context":"presenter"})]),_:1}),Je],4),e("div",{class:"relative grid-section next flex flex-col p-2 lg:p-4",style:f(t(V))},[a.value?(u(),x(T,{key:"next",class:"h-full w-full"},{default:P(()=>{var c;return[i(t(de),{is:(c=a.value.route)==null?void 0:c.component,"clicks-elements":r.value,"onUpdate:clicksElements":o[1]||(o[1]=F=>r.value=F),clicks:a.value.clicks,"clicks-disabled":!1,class:C(t(ue)(a.value.route)),route:a.value.route,"render-context":"previewNext"},null,8,["is","clicks-elements","clicks","class","route"])]}),_:1})):$("v-if",!0),Ke],4),$(" Notes "),(u(),_("div",Qe,[(u(),x(Ue,{key:1,class:"w-full max-w-full h-full overflow-auto p-2 lg:p-4",style:f({fontSize:`${t(oe)}em`})},null,8,["style"])),e("div",Ye,[e("button",{class:"slidev-icon-btn",onClick:o[2]||(o[2]=(...c)=>t(B)&&t(B)(...c))},[i(L,{text:"Increase font size"}),i(p)]),e("button",{class:"slidev-icon-btn",onClick:o[3]||(o[3]=(...c)=>t(H)&&t(H)(...c))},[i(L,{text:"Decrease font size"}),i(h)]),$("v-if",!0)])])),e("div",et,[i(ve,{persist:!0})]),(u(),x(fe,{key:2}))],2),e("div",tt,[e("div",{class:"progress h-2px bg-primary transition-all",style:f({width:`${(t(ne)-1)/(t(le)-1)*100}%`})},null,4)])]),i(pe),i(ie,{modelValue:t(b),"onUpdate:modelValue":o[5]||(o[5]=c=>ae(b)?b.value=c:null)},null,8,["modelValue"])],64)}}}),at=D(st,[["__scopeId","data-v-574fd206"],["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/Presenter.vue"]]);export{at as default};
.slidev-presenter[data-v-574fd206]{--slidev-controls-foreground: current}.timer-btn[data-v-574fd206]:hover>:first-child{opacity:0}.timer-btn[data-v-574fd206]:hover>:last-child{opacity:1}.section-title[data-v-574fd206]{padding:.5rem 1rem;font-size:1.25rem;line-height:1.75rem}.grid-container[data-v-574fd206]{height:100%;width:100%;--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity));--un-bg-opacity:.15;display:grid;gap:1px 1px}.grid-container.layout1[data-v-574fd206]{grid-template-columns:1fr 1fr;grid-template-rows:min-content 2fr 1fr min-content;grid-template-areas:"top top" "main main" "note next" "bottom bottom"}.grid-container.layout2[data-v-574fd206]{grid-template-columns:3fr 2fr;grid-template-rows:min-content 2fr 1fr min-content;grid-template-areas:"top top" "note main" "note next" "bottom bottom"}@media (max-aspect-ratio: 3/5){.grid-container.layout1[data-v-574fd206]{grid-template-columns:1fr;grid-template-rows:min-content 1fr 1fr 1fr min-content;grid-template-areas:"top" "main" "note" "next" "bottom"}}@media (min-aspect-ratio: 1/1){.grid-container.layout1[data-v-574fd206]{grid-template-columns:1fr 1.1fr .9fr;grid-template-rows:min-content 1fr 2fr min-content;grid-template-areas:"top top top" "main main next" "main main note" "bottom bottom bottom"}}.progress-bar[data-v-574fd206]{position:fixed;left:0;right:0;bottom:0}.grid-section[data-v-574fd206]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(24 24 24 / var(--un-text-opacity))}.grid-section.top[data-v-574fd206]{grid-area:top}.grid-section.main[data-v-574fd206]{grid-area:main}.grid-section.next[data-v-574fd206]{grid-area:next}.grid-section.note[data-v-574fd206]{grid-area:note}.grid-section.bottom[data-v-574fd206]{grid-area:bottom}.dark .grid-section[data-v-574fd206]{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(221 221 221 / var(--un-text-opacity))}.context[data-v-574fd206]{position:absolute;top:0;left:0;border-bottom-right-radius:.375rem;--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity));--un-bg-opacity:.5;padding-left:.25rem;padding-right:.25rem;font-size:.75rem;line-height:1rem;opacity:.75}
import{d,e as n,w as s,f as r,t as a,o as l,_ as c}from"./index-Hfn5l4aw.js";const u=["innerHTML"],m=["textContent"],f=["textContent"],k=d({__name:"NoteDisplay",props:{class:{type:String,required:!1},noteHtml:{type:String,required:!1},note:{type:String,required:!1},placeholder:{type:String,required:!1}},emits:["click"],setup(p){const o=p;return(e,t)=>e.noteHtml?(l(),n("div",{key:0,class:s(["prose overflow-auto outline-none",o.class]),onClick:t[0]||(t[0]=i=>e.$emit("click")),innerHTML:e.noteHtml},null,10,u)):e.note?(l(),n("div",{key:1,class:s(["prose overflow-auto outline-none",o.class]),onClick:t[1]||(t[1]=i=>e.$emit("click"))},[r("p",{textContent:a(e.note)},null,8,m)],2)):(l(),n("div",{key:2,class:s(["prose overflow-auto outline-none opacity-50 italic",o.class]),onClick:t[2]||(t[2]=i=>e.$emit("click"))},[r("p",{textContent:a(o.placeholder||"No notes.")},null,8,f)],2))}}),v=c(k,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/NoteDisplay.vue"]]);export{v as N};
import{d as l,al as r,am as i,p as c,E as u,ai as a,J as m,an as d,ao as _,o as f,e as p,w as v,g as s,a7 as o,_ as g}from"./index-Hfn5l4aw.js";const w=l({__name:"DrawingLayer",setup(h){const t=r(i),e=c();return u(()=>{a.mount(e.value,e.value.parentElement),m(t,n=>a.options.coordinateScale=1/n,{immediate:!0}),d()}),_(()=>{a.unmount()}),(n,x)=>(f(),p("svg",{ref_key:"svg",ref:e,class:v(["w-full h-full absolute top-0",{"pointer-events-none":!s(o),"touch-none":s(o)}])},null,2))}}),E=g(w,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/DrawingLayer.vue"]]);export{E as default};
import{o as i,e as a,f as t,d as y,p as C,a4 as N,a5 as R,a6 as T,n as M,g as n,_ as D,v as U,O as j,w as r,a7 as h,a8 as _,l as e,a9 as m,m as f,h as q,aa as x,ab as F,F as P,ac as Y,ad as G,ae as I,af as J,a1 as d,ag as g,ah as b,ai as k,aj as $,ak as Q}from"./index-Hfn5l4aw.js";const W={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},X=t("path",{fill:"currentColor",d:"M16 2C8.2 2 2 8.2 2 16s6.2 14 14 14s14-6.2 14-14S23.8 2 16 2m0 26C9.4 28 4 22.6 4 16S9.4 4 16 4s12 5.4 12 12s-5.4 12-12 12"},null,-1),nn=t("path",{fill:"currentColor",d:"M21.4 23L16 17.6L10.6 23L9 21.4l5.4-5.4L9 10.6L10.6 9l5.4 5.4L21.4 9l1.6 1.6l-5.4 5.4l5.4 5.4z"},null,-1),en=[X,nn];function tn(c,l){return i(),a("svg",W,[...en])}const on={name:"carbon-close-outline",render:tn},sn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},ln=t("path",{fill:"currentColor",d:"M2 16A14 14 0 1 0 16 2A14 14 0 0 0 2 16m23.15 7.75L8.25 6.85a12 12 0 0 1 16.9 16.9M8.24 25.16a12 12 0 0 1-1.4-16.89l16.89 16.89a12 12 0 0 1-15.49 0"},null,-1),an=[ln];function rn(c,l){return i(),a("svg",sn,[...an])}const cn={name:"carbon-error",render:rn},dn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},_n=t("path",{fill:"currentColor",d:"M28.59 13.31L30 11.9L20 2l-1.31 1.42l1.18 1.18l-11.49 9.72l-1.72-1.71L5.25 14l5.66 5.68L2 28.58L3.41 30l8.91-8.91L18 26.75l1.39-1.42l-1.71-1.71l9.72-11.49ZM16.26 22.2L9.8 15.74L21.29 6L26 10.71Z"},null,-1),un=[_n];function hn(c,l){return i(),a("svg",dn,[...un])}const pn={name:"carbon-pin",render:hn},mn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},vn=t("path",{fill:"currentColor",d:"M28.586 13.314L30 11.9L20 2l-1.314 1.415l1.186 1.186L8.38 14.322l-1.716-1.715L5.25 14l5.657 5.677L2 28.583L3.41 30l8.911-8.909L18 26.748l1.393-1.414l-1.716-1.716l9.724-11.49Z"},null,-1),gn=[vn];function bn(c,l){return i(),a("svg",mn,[...gn])}const wn={name:"carbon-pin-filled",render:bn},fn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},xn=t("path",{fill:"currentColor",d:"M29 26H12a1 1 0 0 1-.707-.293l-9-9a1 1 0 0 1 0-1.414l9-9A1 1 0 0 1 12 6h17a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1m-16.586-2H28V8H12.414l-8 8z"},null,-1),$n=t("path",{fill:"currentColor",d:"M20.414 16L25 11.414L23.586 10L19 14.586L14.414 10L13 11.414L17.586 16L13 20.586L14.414 22L19 17.414L23.586 22L25 20.586z"},null,-1),Ln=[xn,$n];function Cn(c,l){return i(),a("svg",fn,[...Ln])}const kn={name:"carbon-delete",render:Cn},yn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Mn=t("path",{fill:"currentColor",d:"M12 10h12.185l-3.587-3.586L22 5l6 6l-6 6l-1.402-1.415L24.182 12H12a6 6 0 0 0 0 12h8v2h-8a8 8 0 0 1 0-16"},null,-1),Dn=[Mn];function Bn(c,l){return i(),a("svg",yn,[...Dn])}const Vn={name:"carbon-redo",render:Bn},Hn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Sn=t("path",{fill:"currentColor",d:"M20 10H7.815l3.587-3.586L10 5l-6 6l6 6l1.402-1.415L7.818 12H20a6 6 0 0 1 0 12h-8v2h8a8 8 0 0 0 0-16"},null,-1),zn=[Sn];function An(c,l){return i(),a("svg",Hn,[...zn])}const On={name:"carbon-undo",render:An},Zn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},En=t("path",{fill:"currentColor",d:"M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M6 26V6h20v20Z"},null,-1),Kn=[En];function Nn(c,l){return i(),a("svg",Zn,[...Kn])}const Rn={name:"carbon-checkbox",render:Nn},Tn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Un=t("path",{fill:"currentColor",d:"M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m0 26a12 12 0 1 1 12-12a12 12 0 0 1-12 12"},null,-1),jn=[Un];function qn(c,l){return i(),a("svg",Tn,[...jn])}const Fn={name:"carbon-radio-button",render:qn},Pn={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Yn=t("path",{fill:"currentColor",d:"M10 6v2h12.59L6 24.59L7.41 26L24 9.41V22h2V6z"},null,-1),Gn=[Yn];function In(c,l){return i(),a("svg",Pn,[...Gn])}const Jn={name:"carbon-arrow-up-right",render:In},Qn=y({__name:"Draggable",props:{storageKey:{type:String,required:!1},initial:{type:Object,required:!1}},setup(c){const l=c,v=C(null),u=l.initial??{x:0,y:0},w=l.storageKey?N(l.storageKey,u):C(u),{style:p}=R(v,{initialValue:w});return(o,L)=>(i(),a("div",{ref_key:"el",ref:v,class:"fixed",style:M(n(p))},[T(o.$slots,"default")],4))}}),Wn=D(Qn,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/Draggable.vue"]]),Xn=t("svg",{width:"1em",height:"1em",class:"-mt-0.5",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},[t("path",{d:"M21.71 3.29a1 1 0 0 0-1.42 0l-18 18a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l18-18a1 1 0 0 0 0-1.42z",fill:"currentColor"})],-1),ne=["onClick"],ee=y({__name:"DrawingControls",setup(c){function l(){k.undo()}function v(){k.redo()}function u(p){m.value=p,h.value=!0}function w(p){x.color=p,h.value=!0}return(p,o)=>{const L=Q,B=Jn,V=Fn,H=Rn,S=On,z=Vn,A=kn,O=wn,Z=pn,E=cn,K=on;return i(),U(Wn,{class:r(["flex flex-wrap text-xl p-2 gap-1 rounded-md bg-main shadow transition-opacity duration-200",n(h)?"":n(_)?"opacity-40 hover:opacity-90":"opacity-0 pointer-events-none"]),dark:"border border-gray-400 border-opacity-10","storage-key":"slidev-drawing-pos","initial-x":10,"initial-y":10},{default:j(()=>[t("button",{class:r(["slidev-icon-btn",{shallow:n(m)!=="stylus"}]),onClick:o[0]||(o[0]=s=>u("stylus"))},[e(d,{text:"Draw with stylus"}),e(L)],2),t("button",{class:r(["slidev-icon-btn",{shallow:n(m)!=="line"}]),onClick:o[1]||(o[1]=s=>u("line"))},[e(d,{text:"Draw a line"}),Xn],2),t("button",{class:r(["slidev-icon-btn",{shallow:n(m)!=="arrow"}]),onClick:o[2]||(o[2]=s=>u("arrow"))},[e(d,{text:"Draw an arrow"}),e(B)],2),t("button",{class:r(["slidev-icon-btn",{shallow:n(m)!=="ellipse"}]),onClick:o[3]||(o[3]=s=>u("ellipse"))},[e(d,{text:"Draw an ellipse"}),e(V)],2),t("button",{class:r(["slidev-icon-btn",{shallow:n(m)!=="rectangle"}]),onClick:o[4]||(o[4]=s=>u("rectangle"))},[e(d,{text:"Draw a rectangle"}),e(H)],2),f(" TODO: not sure why it's not working! "),f(` <button class="slidev-icon-btn" :class="{ shallow: drawingMode != 'eraseLine' }" @click="setDrawingMode('eraseLine')">
<HiddenText text="Erase" />
<carbon:erase />
</button> `),e($),(i(!0),a(P,null,q(n(F),s=>(i(),a("button",{key:s,class:r(["slidev-icon-btn",n(x).color===s?"active":"shallow"]),onClick:te=>w(s)},[e(d,{text:"Set brush color"}),t("div",{class:r(["w-6 h-6 transition-all transform border border-gray-400/50",n(x).color!==s?"rounded-1/2 scale-85":"rounded-md"]),style:M(n(h)?{background:s}:{borderColor:s})},null,6)],10,ne))),128)),e($),t("button",{class:r(["slidev-icon-btn",{disabled:!n(Y)}]),onClick:o[5]||(o[5]=s=>l())},[e(d,{text:"Undo"}),e(S)],2),t("button",{class:r(["slidev-icon-btn",{disabled:!n(G)}]),onClick:o[6]||(o[6]=s=>v())},[e(d,{text:"Redo"}),e(z)],2),t("button",{class:r(["slidev-icon-btn",{disabled:!n(I)}]),onClick:o[7]||(o[7]=s=>n(J)())},[e(d,{text:"Delete"}),e(A)],2),e($),t("button",{class:r(["slidev-icon-btn",{shallow:!n(_)}]),onClick:o[8]||(o[8]=s=>_.value=!n(_))},[e(d,{text:n(_)?"Unpin drawing":"Pin drawing"},null,8,["text"]),g(e(O,{class:"transform -rotate-45"},null,512),[[b,n(_)]]),g(e(Z,null,null,512),[[b,!n(_)]])],2),n(h)?(i(),a("button",{key:0,class:r(["slidev-icon-btn",{shallow:!n(h)}]),onClick:o[9]||(o[9]=s=>h.value=!n(h))},[e(d,{text:n(_)?"Drawing pinned":"Drawing unpinned"},null,8,["text"]),g(e(E,null,null,512),[[b,n(_)]]),g(e(K,null,null,512),[[b,!n(_)]])],2)):f("v-if",!0)]),_:1},8,["class"])}}}),se=D(ee,[["__file","/home/alex/notes/slides/fosdem2024/node_modules/@slidev/client/internals/DrawingControls.vue"]]);export{se as default};
import{Z as zt,$ as ot,W as wt,V as Ft,s as Nt,g as Xt,C as Yt,D as St,a as Ht,b as $t,E as Ut,l as Ct,U as qt,i as jt,d as Gt}from"./slidev/Mermaid-sWhOKcCj.js";import{c as Qt}from"./createText-f6615236-DY9JQ1lr.js";import{i as Kt}from"./init-cc95ec8e-Gi6I4Gst.js";import{o as Zt}from"./ordinal-475e0c0c-BmOJQ37o.js";import{l as pt}from"./linear-d94cf28d-BOPJ1JvI.js";import{l as ft}from"./line-65d70945-Bv9b7vLo.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";function Jt(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s<n;)o[s]=e+s*i;return o}function st(){var e=Zt().unknown(void 0),t=e.domain,i=e.range,s=0,n=1,o,c,p=!1,d=0,R=0,_=.5;delete e.unknown;function A(){var m=t().length,T=n<s,S=T?n:s,P=T?s:n;o=(P-S)/Math.max(1,m-d+R*2),p&&(o=Math.floor(o)),S+=(P-S-o*(m-d))*_,c=o*(1-d),p&&(S=Math.round(S),c=Math.round(c));var f=Jt(m).map(function(C){return S+o*C});return i(T?f.reverse():f)}return e.domain=function(m){return arguments.length?(t(m),A()):t()},e.range=function(m){return arguments.length?([s,n]=m,s=+s,n=+n,A()):[s,n]},e.rangeRound=function(m){return[s,n]=m,s=+s,n=+n,p=!0,A()},e.bandwidth=function(){return c},e.step=function(){return o},e.round=function(m){return arguments.length?(p=!!m,A()):p},e.padding=function(m){return arguments.length?(d=Math.min(1,R=+m),A()):d},e.paddingInner=function(m){return arguments.length?(d=Math.min(1,m),A()):d},e.paddingOuter=function(m){return arguments.length?(R=+m,A()):R},e.align=function(m){return arguments.length?(_=Math.max(0,Math.min(1,m)),A()):_},e.copy=function(){return st(t(),[s,n]).round(p).paddingInner(d).paddingOuter(R).align(_)},Kt.apply(A(),arguments)}var nt=function(){var e=function(V,r,l,u){for(l=l||{},u=V.length;u--;l[V[u]]=r);return l},t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],o=[1,6],c=[1,7],p=[1,5,10,12,14,16,18,19,21,23,34,35,36],d=[1,25],R=[1,26],_=[1,28],A=[1,29],m=[1,30],T=[1,31],S=[1,32],P=[1,33],f=[1,34],C=[1,35],h=[1,36],L=[1,37],z=[1,43],lt=[1,42],ct=[1,47],$=[1,50],w=[1,10,12,14,16,18,19,21,23,34,35,36],Q=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],E=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],ut=[1,64],K={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:function(r,l,u,g,b,a,F){var x=a.length-1;switch(b){case 5:g.setOrientation(a[x]);break;case 9:g.setDiagramTitle(a[x].text.trim());break;case 12:g.setLineData({text:"",type:"text"},a[x]);break;case 13:g.setLineData(a[x-1],a[x]);break;case 14:g.setBarData({text:"",type:"text"},a[x]);break;case 15:g.setBarData(a[x-1],a[x]);break;case 16:this.$=a[x].trim(),g.setAccTitle(this.$);break;case 17:case 18:this.$=a[x].trim(),g.setAccDescription(this.$);break;case 19:this.$=a[x-1];break;case 20:this.$=[Number(a[x-2]),...a[x]];break;case 21:this.$=[Number(a[x])];break;case 22:g.setXAxisTitle(a[x]);break;case 23:g.setXAxisTitle(a[x-1]);break;case 24:g.setXAxisTitle({type:"text",text:""});break;case 25:g.setXAxisBand(a[x]);break;case 26:g.setXAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 27:this.$=a[x-1];break;case 28:this.$=[a[x-2],...a[x]];break;case 29:this.$=[a[x]];break;case 30:g.setYAxisTitle(a[x]);break;case 31:g.setYAxisTitle(a[x-1]);break;case 32:g.setYAxisTitle({type:"text",text:""});break;case 33:g.setYAxisRangeData(Number(a[x-2]),Number(a[x]));break;case 37:this.$={text:a[x],type:"text"};break;case 38:this.$={text:a[x],type:"text"};break;case 39:this.$={text:a[x],type:"markdown"};break;case 40:this.$=a[x];break;case 41:this.$=a[x-1]+""+a[x];break}},table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:o,36:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:o,36:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:o,36:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(p,[2,34]),e(p,[2,35]),e(p,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:o,36:c}),{1:[2,3]},e(p,[2,5]),e(t,[2,7],{4:22,34:n,35:o,36:c}),{11:23,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:39,13:38,24:z,27:lt,29:40,30:41,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:45,15:44,27:ct,33:46,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:49,17:48,24:$,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{11:52,17:51,24:$,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},{20:[1,53]},{22:[1,54]},e(w,[2,18]),{1:[2,2]},e(w,[2,8]),e(w,[2,9]),e(Q,[2,37],{40:55,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L}),e(Q,[2,38]),e(Q,[2,39]),e(E,[2,40]),e(E,[2,42]),e(E,[2,43]),e(E,[2,44]),e(E,[2,45]),e(E,[2,46]),e(E,[2,47]),e(E,[2,48]),e(E,[2,49]),e(E,[2,50]),e(E,[2,51]),e(w,[2,10]),e(w,[2,22],{30:41,29:56,24:z,27:lt}),e(w,[2,24]),e(w,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},e(w,[2,11]),e(w,[2,30],{33:60,27:ct}),e(w,[2,32]),{31:[1,61]},e(w,[2,12]),{17:62,24:$},{25:63,27:ut},e(w,[2,14]),{17:65,24:$},e(w,[2,16]),e(w,[2,17]),e(E,[2,41]),e(w,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(w,[2,31]),{27:[1,69]},e(w,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(w,[2,15]),e(w,[2,26]),e(w,[2,27]),{11:59,32:72,37:24,38:d,39:R,40:27,41:_,42:A,43:m,44:T,45:S,46:P,47:f,48:C,49:h,50:L},e(w,[2,33]),e(w,[2,19]),{25:73,27:ut},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:function(r,l){if(l.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=l,u}},parse:function(r){var l=this,u=[0],g=[],b=[null],a=[],F=this.table,x="",U=0,gt=0,Vt=2,xt=1,Wt=a.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(W.yy[J]=this.yy[J]);k.setInput(r,W.yy),W.yy.lexer=k,W.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var tt=k.yylloc;a.push(tt);var Bt=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ot(){var I;return I=g.pop()||k.lex()||xt,typeof I!="number"&&(I instanceof Array&&(g=I,I=g.pop()),I=l.symbols_[I]||I),I}for(var D,B,v,it,O={},q,M,dt,j;;){if(B=u[u.length-1],this.defaultActions[B]?v=this.defaultActions[B]:((D===null||typeof D>"u")&&(D=Ot()),v=F[B]&&F[B][D]),typeof v>"u"||!v.length||!v[0]){var et="";j=[];for(q in F[B])this.terminals_[q]&&q>Vt&&j.push("'"+this.terminals_[q]+"'");k.showPosition?et="Parse error on line "+(U+1)+`:
`+k.showPosition()+`
Expecting `+j.join(", ")+", got '"+(this.terminals_[D]||D)+"'":et="Parse error on line "+(U+1)+": Unexpected "+(D==xt?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(et,{text:k.match,token:this.terminals_[D]||D,line:k.yylineno,loc:tt,expected:j})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+B+", token: "+D);switch(v[0]){case 1:u.push(D),b.push(k.yytext),a.push(k.yylloc),u.push(v[1]),D=null,gt=k.yyleng,x=k.yytext,U=k.yylineno,tt=k.yylloc;break;case 2:if(M=this.productions_[v[1]][1],O.$=b[b.length-M],O._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},Bt&&(O._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),it=this.performAction.apply(O,[x,gt,U,W.yy,v[1],b,a].concat(Wt)),typeof it<"u")return it;M&&(u=u.slice(0,-1*M*2),b=b.slice(0,-1*M),a=a.slice(0,-1*M)),u.push(this.productions_[v[1]][0]),b.push(O.$),a.push(O._$),dt=F[u[u.length-2]][u[u.length-1]],u.push(dt);break;case 3:return!0}}return!0}},It=function(){var V={EOF:1,parseError:function(l,u){if(this.yy.parser)this.yy.parser.parseError(l,u);else throw new Error(l)},setInput:function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},unput:function(r){var l=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===g.length?this.yylloc.first_column:0)+g[g.length-u.length].length-u[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
`+l+"^"},test_match:function(r,l){var u,g,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),g=r[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],u=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var a in b)this[a]=b[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,l,u,g;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),a=0;a<b.length;a++)if(u=this._input.match(this.rules[b[a]]),u&&(!l||u[0].length>l[0].length)){if(l=u,g=a,this.options.backtrack_lexer){if(r=this.test_match(u,b[a]),r!==!1)return r;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(r=this.test_match(l,b[g]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var l=this.next();return l||this.lex()},begin:function(l){this.conditionStack.push(l)},popState:function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},pushState:function(l){this.begin(l)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(l,u,g,b){switch(g){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";case 17:return this.pushState("axis_data"),"Y_AXIS";case 18:return this.pushState("axis_band_data"),24;case 19:return 31;case 20:return this.pushState("data"),16;case 21:return this.pushState("data"),18;case 22:return this.pushState("data_inner"),24;case 23:return 27;case 24:return this.popState(),26;case 25:this.popState();break;case 26:this.pushState("string");break;case 27:this.popState();break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 43:break;case 44:return 35;case 45:return 36}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}};return V}();K.lexer=It;function Z(){this.yy={}}return Z.prototype=K,K.Parser=Z,new Z}();nt.parser=nt;const ti=nt;function mt(e){return e.type==="bar"}function _t(e){return e.type==="band"}function N(e){return e.type==="linear"}class kt{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((o,c)=>Math.max(c.length,o),0)*i,height:i};const s={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const o of t){const c=Qt(n,1,o),p=c?c.width:o.length*i,d=c?c.height:i;s.width=Math.max(s.width,p),s.height=Math.max(s.height,d)}return n.remove(),s}}const yt=.7,bt=.2;class Rt{constructor(t,i,s,n){this.axisConfig=t,this.title=i,this.textDimensionCalculator=s,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){yt*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(yt*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=bt*t.width;this.outerPadding=Math.min(s.width/2,n);const o=s.height+this.axisConfig.labelPadding*2;this.labelTextHeight=s.height,o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=bt*t.height;this.outerPadding=Math.min(s.height/2,n);const o=s.width+this.axisConfig.labelPadding*2;o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${i},${this.getScaleValue(s)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(s)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}}class ii extends Rt{constructor(t,i,s,n,o){super(t,n,o,i),this.categories=s,this.scale=st().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=st().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),Ct.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)||this.getRange()[0]}}class ei extends Rt{constructor(t,i,s,n,o){super(t,n,o,i),this.domain=s,this.scale=pt().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=pt().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}}function At(e,t,i,s){const n=new kt(s);return _t(e)?new ii(t,i,e.categories,e.title,n):new ei(t,i,[e.min,e.max],e.title,n)}class si{constructor(t,i,s,n){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(i.width,t.width),n=i.height+2*this.chartConfig.titlePadding;return i.width<=s&&i.height<=n&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=n,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}}function ni(e,t,i,s){const n=new kt(s);return new si(n,e,t,i)}class ai{constructor(t,i,s,n,o){this.plotData=t,this.xAxis=i,this.yAxis=s,this.orientation=n,this.plotIndex=o}getDrawableElement(){const t=this.plotData.data.map(s=>[this.xAxis.getScaleValue(s[0]),this.yAxis.getScaleValue(s[1])]);let i;return this.orientation==="horizontal"?i=ft().y(s=>s[0]).x(s=>s[1])(t):i=ft().x(s=>s[0]).y(s=>s[1])(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}}class oi{constructor(t,i,s,n,o,c){this.barData=t,this.boundingRect=i,this.xAxis=s,this.yAxis=n,this.orientation=o,this.plotIndex=c}getDrawableElement(){const t=this.barData.data.map(o=>[this.xAxis.getScaleValue(o[0]),this.yAxis.getScaleValue(o[1])]),s=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),n=s/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:this.boundingRect.x,y:o[0]-n,height:s,width:o[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:o[0]-n,y:o[1],width:s,height:this.boundingRect.y+this.boundingRect.height-o[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}}class ri{constructor(t,i,s){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[i,s]of this.chartData.plots.entries())switch(s.type){case"line":{const n=new ai(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break;case"bar":{const n=new oi(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break}return t}}function hi(e,t,i){return new ri(e,t,i)}class li{constructor(t,i,s,n){this.chartConfig=t,this.chartData=i,this.componentStore={title:ni(t,i,s,n),plot:hi(t,i,s),xAxis:At(i.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},n),yAxis:At(i.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},n)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),c=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),p=this.componentStore.plot.calculateSpace({width:o,height:c});t-=p.width,i-=p.height,p=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),n=p.height,i-=p.height,this.componentStore.xAxis.setAxisPosition("bottom"),p=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=p.height,this.componentStore.yAxis.setAxisPosition("left"),p=this.componentStore.yAxis.calculateSpace({width:t,height:i}),s=p.width,t-=p.width,t>0&&(o+=t,t=0),i>0&&(c+=i,i=0),this.componentStore.plot.calculateSpace({width:o,height:c}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.xAxis.setRange([s,s+o]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:n+c}),this.componentStore.yAxis.setRange([n,n+c]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(d=>mt(d))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=0,c=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),p=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),d=this.componentStore.plot.calculateSpace({width:c,height:p});t-=d.width,i-=d.height,d=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=d.height,i-=d.height,this.componentStore.xAxis.setAxisPosition("left"),d=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=d.width,n=d.width,this.componentStore.yAxis.setAxisPosition("top"),d=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=d.height,o=s+d.height,t>0&&(c+=t,t=0),i>0&&(p+=i,i=0),this.componentStore.plot.calculateSpace({width:c,height:p}),this.componentStore.plot.setBoundingBoxXY({x:n,y:o}),this.componentStore.yAxis.setRange([n,n+c]),this.componentStore.yAxis.setBoundingBoxXY({x:n,y:s}),this.componentStore.xAxis.setRange([o,o+p]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some(R=>mt(R))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}}class ci{static build(t,i,s,n){return new li(t,i,s,n).getDrawableElement()}}let X=0,Tt,Y=Pt(),H=Dt(),y=Lt(),at=H.plotColorPalette.split(",").map(e=>e.trim()),G=!1,rt=!1;function Dt(){const e=zt(),t=ot();return wt(e.xyChart,t.themeVariables.xyChart)}function Pt(){const e=ot();return wt(Ft.xyChart,e.xyChart)}function Lt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function ht(e){const t=ot();return Gt(e.trim(),t)}function ui(e){Tt=e}function gi(e){e==="horizontal"?Y.chartOrientation="horizontal":Y.chartOrientation="vertical"}function xi(e){y.xAxis.title=ht(e.text)}function Et(e,t){y.xAxis={type:"linear",title:y.xAxis.title,min:e,max:t},G=!0}function di(e){y.xAxis={type:"band",title:y.xAxis.title,categories:e.map(t=>ht(t.text))},G=!0}function pi(e){y.yAxis.title=ht(e.text)}function fi(e,t){y.yAxis={type:"linear",title:y.yAxis.title,min:e,max:t},rt=!0}function mi(e){const t=Math.min(...e),i=Math.max(...e),s=N(y.yAxis)?y.yAxis.min:1/0,n=N(y.yAxis)?y.yAxis.max:-1/0;y.yAxis={type:"linear",title:y.yAxis.title,min:Math.min(s,t),max:Math.max(n,i)}}function vt(e){let t=[];if(e.length===0)return t;if(!G){const i=N(y.xAxis)?y.xAxis.min:1/0,s=N(y.xAxis)?y.xAxis.max:-1/0;Et(Math.min(i,1),Math.max(s,e.length))}if(rt||mi(e),_t(y.xAxis)&&(t=y.xAxis.categories.map((i,s)=>[i,e[s]])),N(y.xAxis)){const i=y.xAxis.min,s=y.xAxis.max,n=(s-i+1)/e.length,o=[];for(let c=i;c<=s;c+=n)o.push(`${c}`);t=o.map((c,p)=>[c,e[p]])}return t}function Mt(e){return at[e===0?0:e%at.length]}function yi(e,t){const i=vt(t);y.plots.push({type:"line",strokeFill:Mt(X),strokeWidth:2,data:i}),X++}function bi(e,t){const i=vt(t);y.plots.push({type:"bar",fill:Mt(X),data:i}),X++}function Ai(){if(y.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return y.title=St(),ci.build(Y,y,H,Tt)}function wi(){return H}function Si(){return Y}const Ci=function(){Ut(),X=0,Y=Pt(),y=Lt(),H=Dt(),at=H.plotColorPalette.split(",").map(e=>e.trim()),G=!1,rt=!1},_i={getDrawableElem:Ai,clear:Ci,setAccTitle:Nt,getAccTitle:Xt,setDiagramTitle:Yt,getDiagramTitle:St,getAccDescription:Ht,setAccDescription:$t,setOrientation:gi,setXAxisTitle:xi,setXAxisRangeData:Et,setXAxisBand:di,setYAxisTitle:pi,setYAxisRangeData:fi,setLineData:yi,setBarData:bi,setTmpSVGG:ui,getChartThemeConfig:wi,getChartConfig:Si},ki=(e,t,i,s)=>{const n=s.db,o=n.getChartThemeConfig(),c=n.getChartConfig();function p(f){return f==="top"?"text-before-edge":"middle"}function d(f){return f==="left"?"start":f==="right"?"end":"middle"}function R(f){return`translate(${f.x}, ${f.y}) rotate(${f.rotation||0})`}Ct.debug(`Rendering xychart chart
`+e);const _=qt(t),A=_.append("g").attr("class","main"),m=A.append("rect").attr("width",c.width).attr("height",c.height).attr("class","background");jt(_,c.height,c.width,!0),_.attr("viewBox",`0 0 ${c.width} ${c.height}`),m.attr("fill",o.backgroundColor),n.setTmpSVGG(_.append("g").attr("class","mermaid-tmp-group"));const T=n.getDrawableElem(),S={};function P(f){let C=A,h="";for(const[L]of f.entries()){let z=A;L>0&&S[h]&&(z=S[h]),h+=f[L],C=S[h],C||(C=S[h]=z.append("g").attr("class",f[L]))}return C}for(const f of T){if(f.data.length===0)continue;const C=P(f.groupTexts);switch(f.type){case"rect":C.selectAll("rect").data(f.data).enter().append("rect").attr("x",h=>h.x).attr("y",h=>h.y).attr("width",h=>h.width).attr("height",h=>h.height).attr("fill",h=>h.fill).attr("stroke",h=>h.strokeFill).attr("stroke-width",h=>h.strokeWidth);break;case"text":C.selectAll("text").data(f.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",h=>h.fill).attr("font-size",h=>h.fontSize).attr("dominant-baseline",h=>p(h.verticalPos)).attr("text-anchor",h=>d(h.horizontalPos)).attr("transform",h=>R(h)).text(h=>h.text);break;case"path":C.selectAll("path").data(f.data).enter().append("path").attr("d",h=>h.path).attr("fill",h=>h.fill?h.fill:"none").attr("stroke",h=>h.strokeFill).attr("stroke-width",h=>h.strokeWidth);break}}},Ri={draw:ki},zi={parser:ti,db:_i,renderer:Ri};export{zi as diagram};
import{c5 as ft,aV as gt,at as mt,ay as E,ax as G,aI as xt,c6 as _t,c7 as bt,c8 as kt}from"./index-Hfn5l4aw.js";import{d as D}from"./arc-01f1c7b4-EdqqRiec.js";import"./path-39bad7e2-aUcfwwLI.js";var K=function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],l=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,o,$){var x=o.length-1;switch(u){case 1:return o[x-1];case 2:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 15:d.addTask(o[x],0,""),this.$=o[x];break;case 16:d.addEvent(o[x].substr(2)),this.$=o[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],o=[],$=this.table,x="",I=0,W=0,C=2,A=1,B=o.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(i,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var T=k.yylloc;o.push(T);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var b,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((b===null||typeof b>"u")&&(b=z()),S=$[L]&&$[L][b]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(I+1)+`:
import{b6 as ft,E as gt,c as mt,l as E,h as G,t as xt,b7 as bt,b8 as _t,b9 as kt}from"./slidev/Mermaid-sWhOKcCj.js";import{d as D}from"./arc-5aa99581-BSv9xTON.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./path-39bad7e2-CbwjOpE9.js";var K=function(){var n=function(g,i,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],o=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,l,$){var x=l.length-1;switch(u){case 1:return l[x-1];case 2:this.$=[];break;case 3:l[x-1].push(l[x]),this.$=l[x-1];break;case 4:case 5:this.$=l[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(l[x].substr(6)),this.$=l[x].substr(6);break;case 9:this.$=l[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=l[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(l[x].substr(8)),this.$=l[x].substr(8);break;case 15:d.addTask(l[x],0,""),this.$=l[x];break;case 16:d.addEvent(l[x].substr(2)),this.$=l[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],l=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=l.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(i,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;l.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var _,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=z()),S=$[L]&&$[L][_]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`:
Expecting `+j.join(", ")+", got '"+(this.terminals_[b]||b)+"'":J="Parse error on line "+(I+1)+": Unexpected "+(b==A?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(J,{text:k.match,token:this.terminals_[b]||b,line:k.yylineno,loc:T,expected:j})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+b);switch(S[0]){case 1:c.push(b),u.push(k.yytext),o.push(k.yylloc),c.push(S[1]),b=null,W=k.yyleng,x=k.yytext,I=k.yylineno,T=k.yylloc;break;case 2:if(N=this.productions_[S[1]][1],R.$=u[u.length-N],R._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},P&&(R._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),Z=this.performAction.apply(R,[x,W,I,w.yy,S[1],u,o].concat(B)),typeof Z<"u")return Z;N&&(c=c.slice(0,-1*N*2),u=u.slice(0,-1*N),o=o.slice(0,-1*N)),c.push(this.productions_[S[1]][0]),u.push(R.$),o.push(R._$),Y=$[c[c.length-2]][c[c.length-1]],c.push(Y);break;case 3:return!0}}return!0}},_=function(){var g={EOF:1,parseError:function(r,c){if(this.yy.parser)this.yy.parser.parseError(r,c);else throw new Error(r)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
Expecting `+j.join(", ")+", got '"+(this.terminals_[_]||_)+"'":J="Parse error on line "+(T+1)+": Unexpected "+(_==A?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(J,{text:k.match,token:this.terminals_[_]||_,line:k.yylineno,loc:I,expected:j})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+_);switch(S[0]){case 1:c.push(_),u.push(k.yytext),l.push(k.yylloc),c.push(S[1]),_=null,W=k.yyleng,x=k.yytext,T=k.yylineno,I=k.yylloc;break;case 2:if(N=this.productions_[S[1]][1],R.$=u[u.length-N],R._$={first_line:l[l.length-(N||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(N||1)].first_column,last_column:l[l.length-1].last_column},P&&(R._$.range=[l[l.length-(N||1)].range[0],l[l.length-1].range[1]]),Z=this.performAction.apply(R,[x,W,T,w.yy,S[1],u,l].concat(B)),typeof Z<"u")return Z;N&&(c=c.slice(0,-1*N*2),u=u.slice(0,-1*N),l=l.slice(0,-1*N)),c.push(this.productions_[S[1]][0]),u.push(R.$),l.push(R._$),Y=$[c[c.length-2]][c[c.length-1]],c.push(Y);break;case 3:return!0}}return!0}},b=function(){var g={EOF:1,parseError:function(r,c){if(this.yy.parser)this.yy.parser.parseError(r,c);else throw new Error(r)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+r+"^"},test_match:function(i,r){var c,d,u;if(this.options.backtrack_lexer&&(u={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(u.yylloc.range=this.yylloc.range.slice(0))),d=i[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],c=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var o in u)this[o]=u[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,r,c,d;this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),o=0;o<u.length;o++)if(c=this._input.match(this.rules[u[o]]),c&&(!r||c[0].length>r[0].length)){if(r=c,d=o,this.options.backtrack_lexer){if(i=this.test_match(c,u[o]),i!==!1)return i;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(i=this.test_match(r,u[d]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,c,d,u){switch(d){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return g}();f.lexer=_;function m(){this.yy={}}return m.prototype=f,f.Parser=m,new m}();K.parser=K;const vt=K;let V="",st=0;const Q=[],q=[],F=[],it=()=>ft,rt=function(){Q.length=0,q.length=0,V="",F.length=0,gt()},at=function(n){V=n,Q.push(n)},lt=function(){return Q},ot=function(){let n=tt();const t=100;let e=0;for(;!n&&e<t;)n=tt(),e++;return q.push(...F),q},ct=function(n,t,e){const a={id:st++,section:V,type:V,task:n,score:t||0,events:e?[e]:[]};F.push(a)},ht=function(n){F.find(e=>e.id===st-1).events.push(n)},dt=function(n){const t={section:V,type:V,description:n,task:n,classes:[]};q.push(t)},tt=function(){const n=function(e){return F[e].processed};let t=!0;for(const[e,a]of F.entries())n(e),t=t&&a.processed;return t},wt={clear:rt,getCommonDb:it,addSection:at,getSections:lt,getTasks:ot,addTask:ct,addTaskOrg:dt,addEvent:ht},St=Object.freeze(Object.defineProperty({__proto__:null,addEvent:ht,addSection:at,addTask:ct,addTaskOrg:dt,clear:rt,default:wt,getCommonDb:it,getSections:lt,getTasks:ot},Symbol.toStringTag,{value:"Module"})),Et=12,U=function(n,t){const e=n.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),t.class!==void 0&&e.attr("class",t.class),e},It=function(n,t){const a=n.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=n.append("g");s.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(y){const f=D().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",f).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}function l(y){const f=D().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",f).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}function p(y){y.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return t.score>3?h(s):t.score<3?l(s):p(s),a},Tt=function(n,t){const e=n.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),e.class!==void 0&&e.attr("class",e.class),t.title!==void 0&&e.append("title").text(t.title),e},ut=function(n,t){const e=t.text.replace(/<br\s*\/?>/gi," "),a=n.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),a},$t=function(n,t){function e(s,h,l,p,y){return s+","+h+" "+(s+l)+","+h+" "+(s+l)+","+(h+p-y)+" "+(s+l-y*1.2)+","+(h+p)+" "+s+","+(h+p)}const a=n.append("polygon");a.attr("points",e(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,ut(n,t)},Nt=function(n,t,e){const a=n.append("g"),s=X();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=e.width,s.height=e.height,s.class="journey-section section-type-"+t.num,s.rx=3,s.ry=3,U(a,s),pt(e)(t.text,a,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+t.num},e,t.colour)};let et=-1;const Mt=function(n,t,e){const a=t.x+e.width/2,s=n.append("g");et++;const h=300+5*30;s.append("line").attr("id","task"+et).attr("x1",a).attr("y1",t.y).attr("x2",a).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),It(s,{cx:a,cy:300+(5-t.score)*30,score:t.score});const l=X();l.x=t.x,l.y=t.y,l.fill=t.fill,l.width=e.width,l.height=e.height,l.class="task task-type-"+t.num,l.rx=3,l.ry=3,U(s,l),t.x+14,pt(e)(t.task,s,l.x,l.y,l.width,l.height,{class:"task"},e,t.colour)},Lt=function(n,t){U(n,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},At=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},X=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},pt=function(){function n(s,h,l,p,y,f,_,m){const g=h.append("text").attr("x",l+y/2).attr("y",p+f/2+5).style("font-color",m).style("text-anchor","middle").text(s);a(g,_)}function t(s,h,l,p,y,f,_,m,g){const{taskFontSize:i,taskFontFamily:r}=m,c=s.split(/<br\s*\/?>/gi);for(let d=0;d<c.length;d++){const u=d*i-i*(c.length-1)/2,o=h.append("text").attr("x",l+y/2).attr("y",p).attr("fill",g).style("text-anchor","middle").style("font-size",i).style("font-family",r);o.append("tspan").attr("x",l+y/2).attr("dy",u).text(c[d]),o.attr("y",p+f/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(o,_)}}function e(s,h,l,p,y,f,_,m){const g=h.append("switch"),r=g.append("foreignObject").attr("x",l).attr("y",p).attr("width",y).attr("height",f).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");r.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),t(s,g,l,p,y,f,_,m),a(r,_)}function a(s,h){for(const l in h)l in h&&s.attr(l,h[l])}return function(s){return s.textPlacement==="fo"?e:s.textPlacement==="old"?n:t}}(),Pt=function(n){n.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")};function yt(n,t){n.each(function(){var e=G(this),a=e.text().split(/(\s+|<br>)/).reverse(),s,h=[],l=1.1,p=e.attr("y"),y=parseFloat(e.attr("dy")),f=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("dy",y+"em");for(let _=0;_<a.length;_++)s=a[a.length-1-_],h.push(s),f.text(h.join(" ").trim()),(f.node().getComputedTextLength()>t||s==="<br>")&&(h.pop(),f.text(h.join(" ").trim()),s==="<br>"?h=[""]:h=[s],f=e.append("tspan").attr("x",0).attr("y",p).attr("dy",l+"em").text(s))})}const Ht=function(n,t,e,a){const s=e%Et-1,h=n.append("g");t.section=s,h.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+s));const l=h.append("g"),p=h.append("g"),f=p.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(yt,t.width).node().getBBox(),_=a.fontSize&&a.fontSize.replace?a.fontSize.replace("px",""):a.fontSize;return t.height=f.height+_*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,p.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),zt(l,t,s),t},Ct=function(n,t,e){const a=n.append("g"),h=a.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(yt,t.width).node().getBBox(),l=e.fontSize&&e.fontSize.replace?e.fontSize.replace("px",""):e.fontSize;return a.remove(),h.height+l*1.1*.5+t.padding},zt=function(n,t,e){n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+2*5} q0,-5 5,-5 h${t.width-2*5} q5,0 5,5 v${t.height-5} H0 Z`),n.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},H={drawRect:U,drawCircle:Tt,drawSection:Nt,drawText:ut,drawLabel:$t,drawTask:Mt,drawBackgroundRect:Lt,getTextObj:At,getNoteRect:X,initGraphics:Pt,drawNode:Ht,getVirtualNodeHeight:Ct},Rt=function(n,t,e,a){var s,h;const l=mt(),p=l.leftMargin??50;E.debug("timeline",a.db);const y=l.securityLevel;let f;y==="sandbox"&&(f=G("#i"+t));const m=(y==="sandbox"?G(f.nodes()[0].contentDocument.body):G("body")).select("#"+t);m.append("g");const g=a.db.getTasks(),i=a.db.getCommonDb().getDiagramTitle();E.debug("task",g),H.initGraphics(m);const r=a.db.getSections();E.debug("sections",r);let c=0,d=0,u=0,o=0,$=50+p,x=50;o=50;let I=0,W=!0;r.forEach(function(w){const v={number:I,descr:w,section:I,width:150,padding:20,maxHeight:c},T=H.getVirtualNodeHeight(m,v,l);E.debug("sectionHeight before draw",T),c=Math.max(c,T+20)});let C=0,A=0;E.debug("tasks.length",g.length);for(const[w,v]of g.entries()){const T={number:w,descr:v,section:v.section,width:150,padding:20,maxHeight:d},P=H.getVirtualNodeHeight(m,T,l);E.debug("taskHeight before draw",P),d=Math.max(d,P+20),C=Math.max(C,v.events.length);let z=0;for(let b=0;b<v.events.length;b++){const S={descr:v.events[b],section:v.section,number:v.section,width:150,padding:20,maxHeight:50};z+=H.getVirtualNodeHeight(m,S,l)}A=Math.max(A,z)}E.debug("maxSectionHeight before draw",c),E.debug("maxTaskHeight before draw",d),r&&r.length>0?r.forEach(w=>{const v=g.filter(b=>b.section===w),T={number:I,descr:w,section:I,width:200*Math.max(v.length,1)-50,padding:20,maxHeight:c};E.debug("sectionNode",T);const P=m.append("g"),z=H.drawNode(P,T,I,l);E.debug("sectionNode output",z),P.attr("transform",`translate(${$}, ${o})`),x+=c+50,v.length>0&&nt(m,v,I,$,x,d,l,C,A,c,!1),$+=200*Math.max(v.length,1),x=o,I++}):(W=!1,nt(m,g,I,$,x,d,l,C,A,c,!0));const B=m.node().getBBox();E.debug("bounds",B),i&&m.append("text").text(i).attr("x",B.width/2-p).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),u=W?c+d+150:d+100,m.append("g").attr("class","lineWrapper").append("line").attr("x1",p).attr("y1",u).attr("x2",B.width+3*p).attr("y2",u).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),xt(void 0,m,((s=l.timeline)==null?void 0:s.padding)??50,((h=l.timeline)==null?void 0:h.useMaxWidth)??!1)},nt=function(n,t,e,a,s,h,l,p,y,f,_){var m;for(const g of t){const i={descr:g.task,section:e,number:e,width:150,padding:20,maxHeight:h};E.debug("taskNode",i);const r=n.append("g").attr("class","taskWrapper"),d=H.drawNode(r,i,e,l).height;if(E.debug("taskHeight after draw",d),r.attr("transform",`translate(${a}, ${s})`),h=Math.max(h,d),g.events){const u=n.append("g").attr("class","lineWrapper");let o=h;s+=100,o=o+Vt(n,g.events,e,a,s,l),s-=100,u.append("line").attr("x1",a+190/2).attr("y1",s+h).attr("x2",a+190/2).attr("y2",s+h+(_?h:f)+y+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}a=a+200,_&&!((m=l.timeline)!=null&&m.disableMulticolor)&&e++}s=s-10},Vt=function(n,t,e,a,s,h){let l=0;const p=s;s=s+100;for(const y of t){const f={descr:y,section:e,number:e,width:150,padding:20,maxHeight:50};E.debug("eventNode",f);const _=n.append("g").attr("class","eventWrapper"),g=H.drawNode(_,f,e,h).height;l=l+g,_.attr("transform",`translate(${a}, ${s})`),s=s+10+g}return s=p,l},Ft={setConf:()=>{},draw:Rt},Wt=n=>{let t="";for(let e=0;e<n.THEME_COLOR_LIMIT;e++)n["lineColor"+e]=n["lineColor"+e]||n["cScaleInv"+e],_t(n["lineColor"+e])?n["lineColor"+e]=bt(n["lineColor"+e],20):n["lineColor"+e]=kt(n["lineColor"+e],20);for(let e=0;e<n.THEME_COLOR_LIMIT;e++){const a=""+(17-3*e);t+=`
`+r+"^"},test_match:function(i,r){var c,d,u;if(this.options.backtrack_lexer&&(u={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(u.yylloc.range=this.yylloc.range.slice(0))),d=i[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],c=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var l in u)this[l]=u[l];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,r,c,d;this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),l=0;l<u.length;l++)if(c=this._input.match(this.rules[u[l]]),c&&(!r||c[0].length>r[0].length)){if(r=c,d=l,this.options.backtrack_lexer){if(i=this.test_match(c,u[l]),i!==!1)return i;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(i=this.test_match(r,u[d]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,c,d,u){switch(d){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return g}();f.lexer=b;function m(){this.yy={}}return m.prototype=f,f.Parser=m,new m}();K.parser=K;const vt=K;let F="",st=0;const Q=[],q=[],V=[],it=()=>ft,rt=function(){Q.length=0,q.length=0,F="",V.length=0,gt()},at=function(n){F=n,Q.push(n)},ot=function(){return Q},lt=function(){let n=tt();const t=100;let e=0;for(;!n&&e<t;)n=tt(),e++;return q.push(...V),q},ct=function(n,t,e){const a={id:st++,section:F,type:F,task:n,score:t||0,events:e?[e]:[]};V.push(a)},ht=function(n){V.find(e=>e.id===st-1).events.push(n)},dt=function(n){const t={section:F,type:F,description:n,task:n,classes:[]};q.push(t)},tt=function(){const n=function(e){return V[e].processed};let t=!0;for(const[e,a]of V.entries())n(e),t=t&&a.processed;return t},wt={clear:rt,getCommonDb:it,addSection:at,getSections:ot,getTasks:lt,addTask:ct,addTaskOrg:dt,addEvent:ht},St=Object.freeze(Object.defineProperty({__proto__:null,addEvent:ht,addSection:at,addTask:ct,addTaskOrg:dt,clear:rt,default:wt,getCommonDb:it,getSections:ot,getTasks:lt},Symbol.toStringTag,{value:"Module"})),Et=12,U=function(n,t){const e=n.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),t.class!==void 0&&e.attr("class",t.class),e},Tt=function(n,t){const a=n.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=n.append("g");s.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(y){const f=D().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",f).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}function o(y){const f=D().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",f).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}function p(y){y.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return t.score>3?h(s):t.score<3?o(s):p(s),a},It=function(n,t){const e=n.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),e.class!==void 0&&e.attr("class",e.class),t.title!==void 0&&e.append("title").text(t.title),e},ut=function(n,t){const e=t.text.replace(/<br\s*\/?>/gi," "),a=n.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),a},$t=function(n,t){function e(s,h,o,p,y){return s+","+h+" "+(s+o)+","+h+" "+(s+o)+","+(h+p-y)+" "+(s+o-y*1.2)+","+(h+p)+" "+s+","+(h+p)}const a=n.append("polygon");a.attr("points",e(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,ut(n,t)},Nt=function(n,t,e){const a=n.append("g"),s=X();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=e.width,s.height=e.height,s.class="journey-section section-type-"+t.num,s.rx=3,s.ry=3,U(a,s),pt(e)(t.text,a,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+t.num},e,t.colour)};let et=-1;const Mt=function(n,t,e){const a=t.x+e.width/2,s=n.append("g");et++;const h=300+5*30;s.append("line").attr("id","task"+et).attr("x1",a).attr("y1",t.y).attr("x2",a).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Tt(s,{cx:a,cy:300+(5-t.score)*30,score:t.score});const o=X();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=e.width,o.height=e.height,o.class="task task-type-"+t.num,o.rx=3,o.ry=3,U(s,o),t.x+14,pt(e)(t.task,s,o.x,o.y,o.width,o.height,{class:"task"},e,t.colour)},Lt=function(n,t){U(n,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},At=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},X=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},pt=function(){function n(s,h,o,p,y,f,b,m){const g=h.append("text").attr("x",o+y/2).attr("y",p+f/2+5).style("font-color",m).style("text-anchor","middle").text(s);a(g,b)}function t(s,h,o,p,y,f,b,m,g){const{taskFontSize:i,taskFontFamily:r}=m,c=s.split(/<br\s*\/?>/gi);for(let d=0;d<c.length;d++){const u=d*i-i*(c.length-1)/2,l=h.append("text").attr("x",o+y/2).attr("y",p).attr("fill",g).style("text-anchor","middle").style("font-size",i).style("font-family",r);l.append("tspan").attr("x",o+y/2).attr("dy",u).text(c[d]),l.attr("y",p+f/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(l,b)}}function e(s,h,o,p,y,f,b,m){const g=h.append("switch"),r=g.append("foreignObject").attr("x",o).attr("y",p).attr("width",y).attr("height",f).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");r.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),t(s,g,o,p,y,f,b,m),a(r,b)}function a(s,h){for(const o in h)o in h&&s.attr(o,h[o])}return function(s){return s.textPlacement==="fo"?e:s.textPlacement==="old"?n:t}}(),Pt=function(n){n.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")};function yt(n,t){n.each(function(){var e=G(this),a=e.text().split(/(\s+|<br>)/).reverse(),s,h=[],o=1.1,p=e.attr("y"),y=parseFloat(e.attr("dy")),f=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("dy",y+"em");for(let b=0;b<a.length;b++)s=a[a.length-1-b],h.push(s),f.text(h.join(" ").trim()),(f.node().getComputedTextLength()>t||s==="<br>")&&(h.pop(),f.text(h.join(" ").trim()),s==="<br>"?h=[""]:h=[s],f=e.append("tspan").attr("x",0).attr("y",p).attr("dy",o+"em").text(s))})}const Ht=function(n,t,e,a){const s=e%Et-1,h=n.append("g");t.section=s,h.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+s));const o=h.append("g"),p=h.append("g"),f=p.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(yt,t.width).node().getBBox(),b=a.fontSize&&a.fontSize.replace?a.fontSize.replace("px",""):a.fontSize;return t.height=f.height+b*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,p.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),zt(o,t,s),t},Ct=function(n,t,e){const a=n.append("g"),h=a.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(yt,t.width).node().getBBox(),o=e.fontSize&&e.fontSize.replace?e.fontSize.replace("px",""):e.fontSize;return a.remove(),h.height+o*1.1*.5+t.padding},zt=function(n,t,e){n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+2*5} q0,-5 5,-5 h${t.width-2*5} q5,0 5,5 v${t.height-5} H0 Z`),n.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},H={drawRect:U,drawCircle:It,drawSection:Nt,drawText:ut,drawLabel:$t,drawTask:Mt,drawBackgroundRect:Lt,getTextObj:At,getNoteRect:X,initGraphics:Pt,drawNode:Ht,getVirtualNodeHeight:Ct},Rt=function(n,t,e,a){var s,h;const o=mt(),p=o.leftMargin??50;E.debug("timeline",a.db);const y=o.securityLevel;let f;y==="sandbox"&&(f=G("#i"+t));const m=(y==="sandbox"?G(f.nodes()[0].contentDocument.body):G("body")).select("#"+t);m.append("g");const g=a.db.getTasks(),i=a.db.getCommonDb().getDiagramTitle();E.debug("task",g),H.initGraphics(m);const r=a.db.getSections();E.debug("sections",r);let c=0,d=0,u=0,l=0,$=50+p,x=50;l=50;let T=0,W=!0;r.forEach(function(w){const v={number:T,descr:w,section:T,width:150,padding:20,maxHeight:c},I=H.getVirtualNodeHeight(m,v,o);E.debug("sectionHeight before draw",I),c=Math.max(c,I+20)});let C=0,A=0;E.debug("tasks.length",g.length);for(const[w,v]of g.entries()){const I={number:w,descr:v,section:v.section,width:150,padding:20,maxHeight:d},P=H.getVirtualNodeHeight(m,I,o);E.debug("taskHeight before draw",P),d=Math.max(d,P+20),C=Math.max(C,v.events.length);let z=0;for(let _=0;_<v.events.length;_++){const S={descr:v.events[_],section:v.section,number:v.section,width:150,padding:20,maxHeight:50};z+=H.getVirtualNodeHeight(m,S,o)}A=Math.max(A,z)}E.debug("maxSectionHeight before draw",c),E.debug("maxTaskHeight before draw",d),r&&r.length>0?r.forEach(w=>{const v=g.filter(_=>_.section===w),I={number:T,descr:w,section:T,width:200*Math.max(v.length,1)-50,padding:20,maxHeight:c};E.debug("sectionNode",I);const P=m.append("g"),z=H.drawNode(P,I,T,o);E.debug("sectionNode output",z),P.attr("transform",`translate(${$}, ${l})`),x+=c+50,v.length>0&&nt(m,v,T,$,x,d,o,C,A,c,!1),$+=200*Math.max(v.length,1),x=l,T++}):(W=!1,nt(m,g,T,$,x,d,o,C,A,c,!0));const B=m.node().getBBox();E.debug("bounds",B),i&&m.append("text").text(i).attr("x",B.width/2-p).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),u=W?c+d+150:d+100,m.append("g").attr("class","lineWrapper").append("line").attr("x1",p).attr("y1",u).attr("x2",B.width+3*p).attr("y2",u).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),xt(void 0,m,((s=o.timeline)==null?void 0:s.padding)??50,((h=o.timeline)==null?void 0:h.useMaxWidth)??!1)},nt=function(n,t,e,a,s,h,o,p,y,f,b){var m;for(const g of t){const i={descr:g.task,section:e,number:e,width:150,padding:20,maxHeight:h};E.debug("taskNode",i);const r=n.append("g").attr("class","taskWrapper"),d=H.drawNode(r,i,e,o).height;if(E.debug("taskHeight after draw",d),r.attr("transform",`translate(${a}, ${s})`),h=Math.max(h,d),g.events){const u=n.append("g").attr("class","lineWrapper");let l=h;s+=100,l=l+Ft(n,g.events,e,a,s,o),s-=100,u.append("line").attr("x1",a+190/2).attr("y1",s+h).attr("x2",a+190/2).attr("y2",s+h+(b?h:f)+y+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}a=a+200,b&&!((m=o.timeline)!=null&&m.disableMulticolor)&&e++}s=s-10},Ft=function(n,t,e,a,s,h){let o=0;const p=s;s=s+100;for(const y of t){const f={descr:y,section:e,number:e,width:150,padding:20,maxHeight:50};E.debug("eventNode",f);const b=n.append("g").attr("class","eventWrapper"),g=H.drawNode(b,f,e,h).height;o=o+g,b.attr("transform",`translate(${a}, ${s})`),s=s+10+g}return s=p,o},Vt={setConf:()=>{},draw:Rt},Wt=n=>{let t="";for(let e=0;e<n.THEME_COLOR_LIMIT;e++)n["lineColor"+e]=n["lineColor"+e]||n["cScaleInv"+e],bt(n["lineColor"+e])?n["lineColor"+e]=_t(n["lineColor"+e],20):n["lineColor"+e]=kt(n["lineColor"+e],20);for(let e=0;e<n.THEME_COLOR_LIMIT;e++){const a=""+(17-3*e);t+=`
import{m as i,ar as o}from"./slidev/Mermaid-sWhOKcCj.js";const l=(s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx!==void 0&&e.attr("rx",t.rx),t.ry!==void 0&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class!==void 0&&e.attr("class",t.class),e},x=(s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(s,e).lower()},d=(s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},h=(s,t,e,r)=>{const n=s.append("image");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",a)},y=(s,t,e,r)=>{const n=s.append("use");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),m=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,y as b,h as c,l as d,m as e,d as f,g};
import{ap as ut,aq as rt,ar as at,as as lt,at as F,aT as ct,aU as ot,aB as v,aV as ht,ay as At,aK as He,ax as z,au as pt,aX as Re}from"./index-Hfn5l4aw.js";var Ve=function(){var e=function(x,u,a,h){for(a=a||{},h=x.length;h--;a[x[h]]=u);return a},i=[1,17],r=[1,18],l=[1,19],o=[1,39],A=[1,40],k=[1,25],D=[1,23],B=[1,24],_=[1,31],fe=[1,32],de=[1,33],Ee=[1,34],Ce=[1,35],me=[1,36],be=[1,26],ke=[1,27],ge=[1,28],Te=[1,29],d=[1,43],Fe=[1,30],E=[1,42],C=[1,44],m=[1,41],g=[1,45],ye=[1,9],c=[1,8,9],Y=[1,56],Q=[1,57],j=[1,58],X=[1,59],q=[1,60],De=[1,61],Be=[1,62],H=[1,8,9,39],Ge=[1,74],M=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],W=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],J=[13,74,80,95,97,98],G=[13,64,65,74,80,95,97,98],Ue=[13,59,60,61,62,63,74,80,95,97,98],_e=[1,93],Z=[1,110],$=[1,108],ee=[1,102],te=[1,103],se=[1,104],ie=[1,105],ne=[1,106],ue=[1,107],re=[1,109],Se=[1,8,9,37,39,42],ae=[1,8,9,21],ze=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],Ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,f,t,U){var s=t.length-1;switch(f){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:k,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ke,69:ge,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:g},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ye,[2,5],{8:[1,46]}),{8:[1,47]},e(c,[2,16],{21:[1,48]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),e(c,[2,26]),{32:[1,49]},{34:[1,50]},e(c,[2,29]),e(c,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Y,60:Q,61:j,62:X,63:q,64:De,65:Be}),{37:[1,63]},e(H,[2,36],{37:[1,65],42:[1,64]}),e(c,[2,47]),e(c,[2,48]),{16:66,74:d,80:E,95:C,97:m},{16:37,17:67,18:38,74:d,80:E,95:C,97:m,98:g},{16:37,17:68,18:38,74:d,80:E,95:C,97:m,98:g},{16:37,17:69,18:38,74:d,80:E,95:C,97:m,98:g},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:E,95:C,97:m,98:g},{13:Ge,51:73},e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(c,[2,58]),e(M,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:E,95:C,97:m,98:g}),e(M,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:E,95:C,97:m},{16:37,17:80,18:38,74:d,80:E,95:C,97:m,98:g},e(W,[2,112]),e(W,[2,113]),e(W,[2,114]),e(W,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ye,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:l,40:o,44:A,45:k,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ke,69:ge,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:g}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:k,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ke,69:ge,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:g},e(c,[2,17]),e(c,[2,27]),e(c,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:E,95:C,97:m,98:g},{49:85,57:54,58:55,59:Y,60:Q,61:j,62:X,63:q,64:De,65:Be},e(c,[2,46]),{58:86,64:De,65:Be},e(J,[2,62],{57:87,59:Y,60:Q,61:j,62:X,63:q}),e(G,[2,63]),e(G,[2,64]),e(G,[2,65]),e(G,[2,66]),e(G,[2,67]),e(Ue,[2,68]),e(Ue,[2,69]),{8:[1,89],23:90,38:88,41:22,44:A},{16:91,74:d,80:E,95:C,97:m},{43:92,47:_e},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Z,73:$,74:ee,75:99,77:100,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},{74:[1,111]},{13:Ge,51:112},e(c,[2,54]),e(c,[2,117]),e(M,[2,13]),e(M,[2,14]),e(M,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:E,95:C,97:m},e(Se,[2,40],{11:114,12:[1,115]}),e(ye,[2,7]),{9:[1,116]},e(ae,[2,49]),{16:37,17:117,18:38,74:d,80:E,95:C,97:m,98:g},{13:[1,119],16:37,17:118,18:38,74:d,80:E,95:C,97:m,98:g},e(J,[2,61],{57:120,59:Y,60:Q,61:j,62:X,63:q}),e(J,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:A},{8:[1,123],39:[2,33]},e(H,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:_e},{16:37,17:127,18:38,74:d,80:E,95:C,97:m,98:g},e(c,[2,70],{13:[1,128]}),e(c,[2,72],{13:[1,130],68:[1,129]}),e(c,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(c,[2,84],{78:[1,134]}),e(ze,[2,86],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(c,[2,85]),e(c,[2,53]),{37:[2,10]},e(Se,[2,41]),{13:[1,136]},{1:[2,4]},e(ae,[2,51]),e(ae,[2,50]),{16:37,17:137,18:38,74:d,80:E,95:C,97:m,98:g},e(J,[2,59]),e(c,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:A},{43:140,47:_e},e(H,[2,38]),{39:[2,44]},e(c,[2,42]),e(c,[2,71]),e(c,[2,73]),e(c,[2,74],{68:[1,141]}),e(c,[2,77]),e(c,[2,78],{13:[1,142]}),e(c,[2,80],{13:[1,144],68:[1,143]}),{21:Z,73:$,74:ee,77:145,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},e(S,[2,89]),{14:[1,146]},e(ae,[2,52]),e(c,[2,31]),{39:[2,35]},{39:[1,147]},e(c,[2,75]),e(c,[2,79]),e(c,[2,81]),e(c,[2,82],{68:[1,148]}),e(ze,[2,87],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(Se,[2,8]),e(H,[2,39]),e(c,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var h=new Error(u);throw h.hash=a,h}},parse:function(u){var a=this,h=[0],n=[],f=[null],t=[],U=this.table,s="",le=0,Ke=0,tt=2,Ye=1,st=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(I.yy[ve]=this.yy[ve]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var xe=b.yylloc;t.push(xe);var it=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var L;return L=n.pop()||b.lex()||Ye,typeof L!="number"&&(L instanceof Array&&(n=L,L=n.pop()),L=a.symbols_[L]||L),L}for(var T,R,y,Oe,P={},ce,N,Qe,oe;;){if(R=h[h.length-1],this.defaultActions[R]?y=this.defaultActions[R]:((T===null||typeof T>"u")&&(T=nt()),y=U[R]&&U[R][T]),typeof y>"u"||!y.length||!y[0]){var Ie="";oe=[];for(ce in U[R])this.terminals_[ce]&&ce>tt&&oe.push("'"+this.terminals_[ce]+"'");b.showPosition?Ie="Parse error on line "+(le+1)+`:
import{s as ut,g as rt,a as at,b as lt,c as F,C as ct,D as ot,j as v,E as ht,l as At,v as We,h as z,d as pt,G as Re}from"./slidev/Mermaid-sWhOKcCj.js";var Ve=function(){var e=function(x,u,a,h){for(a=a||{},h=x.length;h--;a[x[h]]=u);return a},i=[1,17],r=[1,18],l=[1,19],o=[1,39],A=[1,40],g=[1,25],D=[1,23],B=[1,24],_=[1,31],fe=[1,32],de=[1,33],Ee=[1,34],Ce=[1,35],me=[1,36],be=[1,26],ge=[1,27],ke=[1,28],Te=[1,29],d=[1,43],Fe=[1,30],E=[1,42],C=[1,44],m=[1,41],k=[1,45],ye=[1,9],c=[1,8,9],Y=[1,56],j=[1,57],Q=[1,58],X=[1,59],H=[1,60],De=[1,61],Be=[1,62],W=[1,8,9,39],Ge=[1,74],M=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],q=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],J=[13,74,80,95,97,98],G=[13,64,65,74,80,95,97,98],Ue=[13,59,60,61,62,63,74,80,95,97,98],_e=[1,93],Z=[1,110],$=[1,108],ee=[1,102],te=[1,103],se=[1,104],ie=[1,105],ne=[1,106],ue=[1,107],re=[1,109],Se=[1,8,9,37,39,42],ae=[1,8,9,21],ze=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],Ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,h,n,f,t,U){var s=t.length-1;switch(f){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ye,[2,5],{8:[1,46]}),{8:[1,47]},e(c,[2,16],{21:[1,48]}),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(c,[2,23]),e(c,[2,24]),e(c,[2,25]),e(c,[2,26]),{32:[1,49]},{34:[1,50]},e(c,[2,29]),e(c,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be}),{37:[1,63]},e(W,[2,36],{37:[1,65],42:[1,64]}),e(c,[2,47]),e(c,[2,48]),{16:66,74:d,80:E,95:C,97:m},{16:37,17:67,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:68,18:38,74:d,80:E,95:C,97:m,98:k},{16:37,17:69,18:38,74:d,80:E,95:C,97:m,98:k},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:E,95:C,97:m,98:k},{13:Ge,51:73},e(c,[2,55]),e(c,[2,56]),e(c,[2,57]),e(c,[2,58]),e(M,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:E,95:C,97:m,98:k}),e(M,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:E,95:C,97:m},{16:37,17:80,18:38,74:d,80:E,95:C,97:m,98:k},e(q,[2,112]),e(q,[2,113]),e(q,[2,114]),e(q,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ye,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:l,40:o,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:l,36:21,40:o,41:22,44:A,45:g,47:D,48:B,50:_,52:fe,53:de,54:Ee,55:Ce,56:me,66:be,67:ge,69:ke,73:Te,74:d,76:Fe,80:E,95:C,97:m,98:k},e(c,[2,17]),e(c,[2,27]),e(c,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:E,95:C,97:m,98:k},{49:85,57:54,58:55,59:Y,60:j,61:Q,62:X,63:H,64:De,65:Be},e(c,[2,46]),{58:86,64:De,65:Be},e(J,[2,62],{57:87,59:Y,60:j,61:Q,62:X,63:H}),e(G,[2,63]),e(G,[2,64]),e(G,[2,65]),e(G,[2,66]),e(G,[2,67]),e(Ue,[2,68]),e(Ue,[2,69]),{8:[1,89],23:90,38:88,41:22,44:A},{16:91,74:d,80:E,95:C,97:m},{43:92,47:_e},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:Z,73:$,74:ee,75:99,77:100,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},{74:[1,111]},{13:Ge,51:112},e(c,[2,54]),e(c,[2,117]),e(M,[2,13]),e(M,[2,14]),e(M,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:E,95:C,97:m},e(Se,[2,40],{11:114,12:[1,115]}),e(ye,[2,7]),{9:[1,116]},e(ae,[2,49]),{16:37,17:117,18:38,74:d,80:E,95:C,97:m,98:k},{13:[1,119],16:37,17:118,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,61],{57:120,59:Y,60:j,61:Q,62:X,63:H}),e(J,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:A},{8:[1,123],39:[2,33]},e(W,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:_e},{16:37,17:127,18:38,74:d,80:E,95:C,97:m,98:k},e(c,[2,70],{13:[1,128]}),e(c,[2,72],{13:[1,130],68:[1,129]}),e(c,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(c,[2,84],{78:[1,134]}),e(ze,[2,86],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(c,[2,85]),e(c,[2,53]),{37:[2,10]},e(Se,[2,41]),{13:[1,136]},{1:[2,4]},e(ae,[2,51]),e(ae,[2,50]),{16:37,17:137,18:38,74:d,80:E,95:C,97:m,98:k},e(J,[2,59]),e(c,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:A},{43:140,47:_e},e(W,[2,38]),{39:[2,44]},e(c,[2,42]),e(c,[2,71]),e(c,[2,73]),e(c,[2,74],{68:[1,141]}),e(c,[2,77]),e(c,[2,78],{13:[1,142]}),e(c,[2,80],{13:[1,144],68:[1,143]}),{21:Z,73:$,74:ee,77:145,79:101,80:te,81:se,82:ie,83:ne,84:ue,85:re},e(S,[2,89]),{14:[1,146]},e(ae,[2,52]),e(c,[2,31]),{39:[2,35]},{39:[1,147]},e(c,[2,75]),e(c,[2,79]),e(c,[2,81]),e(c,[2,82],{68:[1,148]}),e(ze,[2,87],{79:135,21:Z,73:$,74:ee,80:te,81:se,82:ie,83:ne,84:ue,85:re}),e(Se,[2,8]),e(W,[2,39]),e(c,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var h=new Error(u);throw h.hash=a,h}},parse:function(u){var a=this,h=[0],n=[],f=[null],t=[],U=this.table,s="",le=0,Ke=0,tt=2,Ye=1,st=t.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(I.yy[ve]=this.yy[ve]);b.setInput(u,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var xe=b.yylloc;t.push(xe);var it=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nt(){var L;return L=n.pop()||b.lex()||Ye,typeof L!="number"&&(L instanceof Array&&(n=L,L=n.pop()),L=a.symbols_[L]||L),L}for(var T,R,y,Oe,P={},ce,N,je,oe;;){if(R=h[h.length-1],this.defaultActions[R]?y=this.defaultActions[R]:((T===null||typeof T>"u")&&(T=nt()),y=U[R]&&U[R][T]),typeof y>"u"||!y.length||!y[0]){var Ie="";oe=[];for(ce in U[R])this.terminals_[ce]&&ce>tt&&oe.push("'"+this.terminals_[ce]+"'");b.showPosition?Ie="Parse error on line "+(le+1)+`:
Expecting `+oe.join(", ")+", got '"+(this.terminals_[T]||T)+"'":Ie="Parse error on line "+(le+1)+": Unexpected "+(T==Ye?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(Ie,{text:b.match,token:this.terminals_[T]||T,line:b.yylineno,loc:xe,expected:oe})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+T);switch(y[0]){case 1:h.push(T),f.push(b.yytext),t.push(b.yylloc),h.push(y[1]),T=null,Ke=b.yyleng,s=b.yytext,le=b.yylineno,xe=b.yylloc;break;case 2:if(N=this.productions_[y[1]][1],P.$=f[f.length-N],P._$={first_line:t[t.length-(N||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(N||1)].first_column,last_column:t[t.length-1].last_column},it&&(P._$.range=[t[t.length-(N||1)].range[0],t[t.length-1].range[1]]),Oe=this.performAction.apply(P,[s,Ke,le,I.yy,y[1],f,t].concat(st)),typeof Oe<"u")return Oe;N&&(h=h.slice(0,-1*N*2),f=f.slice(0,-1*N),t=t.slice(0,-1*N)),h.push(this.productions_[y[1]][0]),f.push(P.$),t.push(P._$),Qe=U[h[h.length-2]][h[h.length-1]],h.push(Qe);break;case 3:return!0}}return!0}},et=function(){var x={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput:function(u,a){return this.yy=a||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var a=u.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var a=u.length,h=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===n.length?this.yylloc.first_column:0)+n[n.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
Expecting `+oe.join(", ")+", got '"+(this.terminals_[T]||T)+"'":Ie="Parse error on line "+(le+1)+": Unexpected "+(T==Ye?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(Ie,{text:b.match,token:this.terminals_[T]||T,line:b.yylineno,loc:xe,expected:oe})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+T);switch(y[0]){case 1:h.push(T),f.push(b.yytext),t.push(b.yylloc),h.push(y[1]),T=null,Ke=b.yyleng,s=b.yytext,le=b.yylineno,xe=b.yylloc;break;case 2:if(N=this.productions_[y[1]][1],P.$=f[f.length-N],P._$={first_line:t[t.length-(N||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(N||1)].first_column,last_column:t[t.length-1].last_column},it&&(P._$.range=[t[t.length-(N||1)].range[0],t[t.length-1].range[1]]),Oe=this.performAction.apply(P,[s,Ke,le,I.yy,y[1],f,t].concat(st)),typeof Oe<"u")return Oe;N&&(h=h.slice(0,-1*N*2),f=f.slice(0,-1*N),t=t.slice(0,-1*N)),h.push(this.productions_[y[1]][0]),f.push(P.$),t.push(P._$),je=U[h[h.length-2]][h[h.length-1]],h.push(je);break;case 3:return!0}}return!0}},et=function(){var x={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput:function(u,a){return this.yy=a||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var a=u.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var a=u.length,h=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===n.length?this.yylloc.first_column:0)+n[n.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(a,h,n,f){switch(n){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:break;case 5:break;case 6:return this.begin("acc_title"),31;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),33;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 70;case 22:this.popState();break;case 23:return 71;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 73;case 28:return this.begin("namespace"),40;case 29:return this.popState(),8;case 30:break;case 31:return this.begin("namespace-body"),37;case 32:return this.popState(),39;case 33:return"EOF_IN_STRUCT";case 34:return 8;case 35:break;case 36:return"EDGE_STATE";case 37:return this.begin("class"),44;case 38:return this.popState(),8;case 39:break;case 40:return this.popState(),this.popState(),39;case 41:return this.begin("class-body"),37;case 42:return this.popState(),39;case 43:return"EOF_IN_STRUCT";case 44:return"EDGE_STATE";case 45:return"OPEN_IN_STRUCT";case 46:break;case 47:return"MEMBER";case 48:return 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;case 57:this.popState();break;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 60:this.popState();break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:return 68;case 64:return 68;case 65:return 68;case 66:return 68;case 67:return 60;case 68:return 60;case 69:return 62;case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return"DOT";case 80:return"PLUS";case 81:return 81;case 82:return 78;case 83:return 84;case 84:return 84;case 85:return 85;case 86:return"EQUALS";case 87:return"EQUALS";case 88:return 74;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 80;case 93:return 97;case 94:return 83;case 95:return 83;case 96:return 9}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,32,33,34,35,36,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},namespace:{rules:[26,28,29,30,31,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},"class-body":{rules:[26,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},class:{rules:[26,38,39,40,41,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr:{rules:[9,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_title:{rules:[7,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_args:{rules:[22,23,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_name:{rules:[19,20,21,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},href:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},struct:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},generic:{rules:[26,48,49,50,51,52,53,54,55,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},bqstring:{rules:[26,48,49,50,51,52,53,54,55,56,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},string:{rules:[24,25,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],inclusive:!0}}};return x}();Ne.lexer=et;function Le(){this.yy={}}return Le.prototype=Ne,Ne.Parser=Le,new Le}();Ve.parser=Ve;const zt=Ve,je=["#","+","~","-",""];class Xe{constructor(i,r){this.memberType=r,this.visibility="",this.classifier="";const l=pt(i,F());this.parseMember(l)}getDisplayDetails(){let i=this.visibility+Re(this.id);this.memberType==="method"&&(i+=`(${Re(this.parameters.trim())})`,this.returnType&&(i+=" : "+Re(this.returnType))),i=i.trim();const r=this.parseClassifier();return{displayText:i,cssStyle:r}}parseMember(i){let r="";if(this.memberType==="method"){const l=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/,o=i.match(l);if(o){const A=o[1]?o[1].trim():"";if(je.includes(A)&&(this.visibility=A),this.id=o[2].trim(),this.parameters=o[3]?o[3].trim():"",r=o[4]?o[4].trim():"",this.returnType=o[5]?o[5].trim():"",r===""){const k=this.returnType.substring(this.returnType.length-1);k.match(/[$*]/)&&(r=k,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const l=i.length,o=i.substring(0,1),A=i.substring(l-1);je.includes(o)&&(this.visibility=o),A.match(/[$*]/)&&(r=A),this.id=i.substring(this.visibility===""?0:1,r===""?l:l-1)}this.classifier=r}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}const pe="classId-";let Pe=[],p={},he=[],qe=0,O={},we=0,K=[];const V=e=>v.sanitizeText(e,F()),w=function(e){const i=v.sanitizeText(e,F());let r="",l=i;if(i.indexOf("~")>0){const o=i.split("~");l=V(o[0]),r=V(o[1])}return{className:l,type:r}},ft=function(e,i){const r=v.sanitizeText(e,F());i&&(i=V(i));const{className:l}=w(r);p[l].label=i},Ae=function(e){const i=v.sanitizeText(e,F()),{className:r,type:l}=w(i);if(Object.hasOwn(p,r))return;const o=v.sanitizeText(r,F());p[o]={id:o,type:l,label:o,cssClasses:[],methods:[],members:[],annotations:[],styles:[],domId:pe+o+"-"+qe},qe++},We=function(e){const i=v.sanitizeText(e,F());if(i in p)return p[i].domId;throw new Error("Class not found: "+i)},dt=function(){Pe=[],p={},he=[],K=[],K.push(Ze),O={},we=0,ht()},Et=function(e){return p[e]},Ct=function(){return p},mt=function(){return Pe},bt=function(){return he},kt=function(e){At.debug("Adding relation: "+JSON.stringify(e)),Ae(e.id1),Ae(e.id2),e.id1=w(e.id1).className,e.id2=w(e.id2).className,e.relationTitle1=v.sanitizeText(e.relationTitle1.trim(),F()),e.relationTitle2=v.sanitizeText(e.relationTitle2.trim(),F()),Pe.push(e)},gt=function(e,i){const r=w(e).className;p[r].annotations.push(i)},Je=function(e,i){Ae(e);const r=w(e).className,l=p[r];if(typeof i=="string"){const o=i.trim();o.startsWith("<<")&&o.endsWith(">>")?l.annotations.push(V(o.substring(2,o.length-2))):o.indexOf(")")>0?l.methods.push(new Xe(o,"method")):o&&l.members.push(new Xe(o,"attribute"))}},Tt=function(e,i){Array.isArray(i)&&(i.reverse(),i.forEach(r=>Je(e,r)))},Ft=function(e,i){const r={id:`note${he.length}`,class:i,text:e};he.push(r)},yt=function(e){return e.startsWith(":")&&(e=e.substring(1)),V(e.trim())},Me=function(e,i){e.split(",").forEach(function(r){let l=r;r[0].match(/\d/)&&(l=pe+l),p[l]!==void 0&&p[l].cssClasses.push(i)})},Dt=function(e,i){e.split(",").forEach(function(r){i!==void 0&&(p[r].tooltip=V(i))})},Bt=function(e,i){return i?O[i].classes[e].tooltip:p[e].tooltip},_t=function(e,i,r){const l=F();e.split(",").forEach(function(o){let A=o;o[0].match(/\d/)&&(A=pe+A),p[A]!==void 0&&(p[A].link=He.formatUrl(i,l),l.securityLevel==="sandbox"?p[A].linkTarget="_top":typeof r=="string"?p[A].linkTarget=V(r):p[A].linkTarget="_blank")}),Me(e,"clickable")},St=function(e,i,r){e.split(",").forEach(function(l){Nt(l,i,r),p[l].haveCallback=!0}),Me(e,"clickable")},Nt=function(e,i,r){const l=v.sanitizeText(e,F());if(F().securityLevel!=="loose"||i===void 0)return;const A=l;if(p[A]!==void 0){const k=We(A);let D=[];if(typeof r=="string"){D=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let B=0;B<D.length;B++){let _=D[B].trim();_.charAt(0)==='"'&&_.charAt(_.length-1)==='"'&&(_=_.substr(1,_.length-2)),D[B]=_}}D.length===0&&D.push(k),K.push(function(){const B=document.querySelector(`[id="${k}"]`);B!==null&&B.addEventListener("click",function(){He.runFunc(i,...D)},!1)})}},Lt=function(e){K.forEach(function(i){i(e)})},vt={LINE:0,DOTTED_LINE:1},xt={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},Ze=function(e){let i=z(".mermaidTooltip");(i._groups||i)[0][0]===null&&(i=z("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),z(e).select("svg").selectAll("g.node").on("mouseover",function(){const o=z(this);if(o.attr("title")===null)return;const k=this.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(o.attr("title")).style("left",window.scrollX+k.left+(k.right-k.left)/2+"px").style("top",window.scrollY+k.top-14+document.body.scrollTop+"px"),i.html(i.html().replace(/<br\/>/g,"<br/>")),o.classed("hover",!0)}).on("mouseout",function(){i.transition().duration(500).style("opacity",0),z(this).classed("hover",!1)})};K.push(Ze);let $e="TB";const Ot=()=>$e,It=e=>{$e=e},Rt=function(e){O[e]===void 0&&(O[e]={id:e,classes:{},children:{},domId:pe+e+"-"+we},we++)},Vt=function(e){return O[e]},wt=function(){return O},Pt=function(e,i){if(O[e]!==void 0)for(const r of i){const{className:l}=w(r);p[l].parent=e,O[e].classes[l]=p[l]}},Mt=function(e,i){const r=p[e];if(!(!i||!r))for(const l of i)l.includes(",")?r.styles.push(...l.split(",")):r.styles.push(l)},Kt={setAccTitle:ut,getAccTitle:rt,getAccDescription:at,setAccDescription:lt,getConfig:()=>F().class,addClass:Ae,bindFunctions:Lt,clear:dt,getClass:Et,getClasses:Ct,getNotes:bt,addAnnotation:gt,addNote:Ft,getRelations:mt,addRelation:kt,getDirection:Ot,setDirection:It,addMember:Je,addMembers:Tt,cleanupLabel:yt,lineType:vt,relationType:xt,setClickEvent:St,setCssClass:Me,setLink:_t,getTooltip:Bt,setTooltip:Dt,lookUpDomId:We,setDiagramTitle:ct,getDiagramTitle:ot,setClassLabel:ft,addNamespace:Rt,addClassesToNamespace:Pt,getNamespace:Vt,getNamespaces:wt,setCssStyle:Mt},Gt=e=>`g.classGroup text {
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(a,h,n,f){switch(n){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:break;case 5:break;case 6:return this.begin("acc_title"),31;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),33;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 70;case 22:this.popState();break;case 23:return 71;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 73;case 28:return this.begin("namespace"),40;case 29:return this.popState(),8;case 30:break;case 31:return this.begin("namespace-body"),37;case 32:return this.popState(),39;case 33:return"EOF_IN_STRUCT";case 34:return 8;case 35:break;case 36:return"EDGE_STATE";case 37:return this.begin("class"),44;case 38:return this.popState(),8;case 39:break;case 40:return this.popState(),this.popState(),39;case 41:return this.begin("class-body"),37;case 42:return this.popState(),39;case 43:return"EOF_IN_STRUCT";case 44:return"EDGE_STATE";case 45:return"OPEN_IN_STRUCT";case 46:break;case 47:return"MEMBER";case 48:return 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;case 57:this.popState();break;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 60:this.popState();break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:return 68;case 64:return 68;case 65:return 68;case 66:return 68;case 67:return 60;case 68:return 60;case 69:return 62;case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return"DOT";case 80:return"PLUS";case 81:return 81;case 82:return 78;case 83:return 84;case 84:return 84;case 85:return 85;case 86:return"EQUALS";case 87:return"EQUALS";case 88:return 74;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 80;case 93:return 97;case 94:return 83;case 95:return 83;case 96:return 9}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,32,33,34,35,36,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},namespace:{rules:[26,28,29,30,31,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},"class-body":{rules:[26,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},class:{rules:[26,38,39,40,41,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr:{rules:[9,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_title:{rules:[7,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_args:{rules:[22,23,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_name:{rules:[19,20,21,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},href:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},struct:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},generic:{rules:[26,48,49,50,51,52,53,54,55,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},bqstring:{rules:[26,48,49,50,51,52,53,54,55,56,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},string:{rules:[24,25,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],inclusive:!0}}};return x}();Ne.lexer=et;function Le(){this.yy={}}return Le.prototype=Ne,Ne.Parser=Le,new Le}();Ve.parser=Ve;const zt=Ve,Qe=["#","+","~","-",""];class Xe{constructor(i,r){this.memberType=r,this.visibility="",this.classifier="";const l=pt(i,F());this.parseMember(l)}getDisplayDetails(){let i=this.visibility+Re(this.id);this.memberType==="method"&&(i+=`(${Re(this.parameters.trim())})`,this.returnType&&(i+=" : "+Re(this.returnType))),i=i.trim();const r=this.parseClassifier();return{displayText:i,cssStyle:r}}parseMember(i){let r="";if(this.memberType==="method"){const l=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/,o=i.match(l);if(o){const A=o[1]?o[1].trim():"";if(Qe.includes(A)&&(this.visibility=A),this.id=o[2].trim(),this.parameters=o[3]?o[3].trim():"",r=o[4]?o[4].trim():"",this.returnType=o[5]?o[5].trim():"",r===""){const g=this.returnType.substring(this.returnType.length-1);g.match(/[$*]/)&&(r=g,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const l=i.length,o=i.substring(0,1),A=i.substring(l-1);Qe.includes(o)&&(this.visibility=o),A.match(/[$*]/)&&(r=A),this.id=i.substring(this.visibility===""?0:1,r===""?l:l-1)}this.classifier=r}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}const pe="classId-";let Pe=[],p={},he=[],He=0,O={},we=0,K=[];const V=e=>v.sanitizeText(e,F()),w=function(e){const i=v.sanitizeText(e,F());let r="",l=i;if(i.indexOf("~")>0){const o=i.split("~");l=V(o[0]),r=V(o[1])}return{className:l,type:r}},ft=function(e,i){const r=v.sanitizeText(e,F());i&&(i=V(i));const{className:l}=w(r);p[l].label=i},Ae=function(e){const i=v.sanitizeText(e,F()),{className:r,type:l}=w(i);if(Object.hasOwn(p,r))return;const o=v.sanitizeText(r,F());p[o]={id:o,type:l,label:o,cssClasses:[],methods:[],members:[],annotations:[],styles:[],domId:pe+o+"-"+He},He++},qe=function(e){const i=v.sanitizeText(e,F());if(i in p)return p[i].domId;throw new Error("Class not found: "+i)},dt=function(){Pe=[],p={},he=[],K=[],K.push(Ze),O={},we=0,ht()},Et=function(e){return p[e]},Ct=function(){return p},mt=function(){return Pe},bt=function(){return he},gt=function(e){At.debug("Adding relation: "+JSON.stringify(e)),Ae(e.id1),Ae(e.id2),e.id1=w(e.id1).className,e.id2=w(e.id2).className,e.relationTitle1=v.sanitizeText(e.relationTitle1.trim(),F()),e.relationTitle2=v.sanitizeText(e.relationTitle2.trim(),F()),Pe.push(e)},kt=function(e,i){const r=w(e).className;p[r].annotations.push(i)},Je=function(e,i){Ae(e);const r=w(e).className,l=p[r];if(typeof i=="string"){const o=i.trim();o.startsWith("<<")&&o.endsWith(">>")?l.annotations.push(V(o.substring(2,o.length-2))):o.indexOf(")")>0?l.methods.push(new Xe(o,"method")):o&&l.members.push(new Xe(o,"attribute"))}},Tt=function(e,i){Array.isArray(i)&&(i.reverse(),i.forEach(r=>Je(e,r)))},Ft=function(e,i){const r={id:`note${he.length}`,class:i,text:e};he.push(r)},yt=function(e){return e.startsWith(":")&&(e=e.substring(1)),V(e.trim())},Me=function(e,i){e.split(",").forEach(function(r){let l=r;r[0].match(/\d/)&&(l=pe+l),p[l]!==void 0&&p[l].cssClasses.push(i)})},Dt=function(e,i){e.split(",").forEach(function(r){i!==void 0&&(p[r].tooltip=V(i))})},Bt=function(e,i){return i?O[i].classes[e].tooltip:p[e].tooltip},_t=function(e,i,r){const l=F();e.split(",").forEach(function(o){let A=o;o[0].match(/\d/)&&(A=pe+A),p[A]!==void 0&&(p[A].link=We.formatUrl(i,l),l.securityLevel==="sandbox"?p[A].linkTarget="_top":typeof r=="string"?p[A].linkTarget=V(r):p[A].linkTarget="_blank")}),Me(e,"clickable")},St=function(e,i,r){e.split(",").forEach(function(l){Nt(l,i,r),p[l].haveCallback=!0}),Me(e,"clickable")},Nt=function(e,i,r){const l=v.sanitizeText(e,F());if(F().securityLevel!=="loose"||i===void 0)return;const A=l;if(p[A]!==void 0){const g=qe(A);let D=[];if(typeof r=="string"){D=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let B=0;B<D.length;B++){let _=D[B].trim();_.charAt(0)==='"'&&_.charAt(_.length-1)==='"'&&(_=_.substr(1,_.length-2)),D[B]=_}}D.length===0&&D.push(g),K.push(function(){const B=document.querySelector(`[id="${g}"]`);B!==null&&B.addEventListener("click",function(){We.runFunc(i,...D)},!1)})}},Lt=function(e){K.forEach(function(i){i(e)})},vt={LINE:0,DOTTED_LINE:1},xt={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},Ze=function(e){let i=z(".mermaidTooltip");(i._groups||i)[0][0]===null&&(i=z("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),z(e).select("svg").selectAll("g.node").on("mouseover",function(){const o=z(this);if(o.attr("title")===null)return;const g=this.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(o.attr("title")).style("left",window.scrollX+g.left+(g.right-g.left)/2+"px").style("top",window.scrollY+g.top-14+document.body.scrollTop+"px"),i.html(i.html().replace(/<br\/>/g,"<br/>")),o.classed("hover",!0)}).on("mouseout",function(){i.transition().duration(500).style("opacity",0),z(this).classed("hover",!1)})};K.push(Ze);let $e="TB";const Ot=()=>$e,It=e=>{$e=e},Rt=function(e){O[e]===void 0&&(O[e]={id:e,classes:{},children:{},domId:pe+e+"-"+we},we++)},Vt=function(e){return O[e]},wt=function(){return O},Pt=function(e,i){if(O[e]!==void 0)for(const r of i){const{className:l}=w(r);p[l].parent=e,O[e].classes[l]=p[l]}},Mt=function(e,i){const r=p[e];if(!(!i||!r))for(const l of i)l.includes(",")?r.styles.push(...l.split(",")):r.styles.push(l)},Kt={setAccTitle:ut,getAccTitle:rt,getAccDescription:at,setAccDescription:lt,getConfig:()=>F().class,addClass:Ae,bindFunctions:Lt,clear:dt,getClass:Et,getClasses:Ct,getNotes:bt,addAnnotation:kt,addNote:Ft,getRelations:mt,addRelation:gt,getDirection:Ot,setDirection:It,addMember:Je,addMembers:Tt,cleanupLabel:yt,lineType:vt,relationType:xt,setClickEvent:St,setCssClass:Me,setLink:_t,getTooltip:Bt,setTooltip:Dt,lookUpDomId:qe,setDiagramTitle:ct,getDiagramTitle:ot,setClassLabel:ft,addNamespace:Rt,addClassesToNamespace:Pt,getNamespace:Vt,getNamespaces:wt,setCssStyle:Mt},Gt=e=>`g.classGroup text {
import{G as R}from"./graph-af3d5df6-B9Rrt_D8.js";import{n as N,l as g,o as F,c as S,j as G,r as q,p as E,q as L,h as $,v as j,t as U,S as z,x as H,y as K,z as W,A as X,B as J}from"./slidev/Mermaid-sWhOKcCj.js";import{r as Q}from"./index-c8395ba2-BeB0hvAS.js";import{c as Y}from"./channel-d3ac35ac-BF6w4Boq.js";function Z(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([K(e)],H)}function pe(e,l){return!!e.children(l).length}function be(e){return A(e.v)+":"+A(e.w)+":"+A(e.name)}var O=/:/g;function A(e){return e?String(e).replace(O,"\\:"):""}function ee(e,l){l&&e.attr("style",l)}function fe(e,l,c){l&&e.attr("class",l).attr("class",c+" "+e.attr("class"))}function ue(e,l){var c=l.graph();if(X(c)){var a=c.transition;if(J(a))return a(e)}return e}function te(e,l){var c=e.append("foreignObject").attr("width","100000"),a=c.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=l.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert(function(){return i});break;default:a.html(i)}ee(a,l.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var d=a.node().getBoundingClientRect();return c.attr("width",d.width).attr("height",d.height),c}const P={},re=function(e){const l=Object.keys(e);for(const c of l)P[c]=e[c]},V=async function(e,l,c,a,i,d){const u=a.select(`[id="${c}"]`),n=Object.keys(e);for(const p of n){const r=e[p];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const w=N(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(F(S().flowchart.htmlLabels))s=te(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",w.labelStyle.replace("color:","fill:"));const _=t.split(G.lineBreakRegex);for(const C of _){const v=i.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=C,k.appendChild(v)}s=k}let b=0,o="";switch(r.type){case"round":b=5,o="rect";break;case"square":o="rect";break;case"diamond":o="question";break;case"hexagon":o="hexagon";break;case"odd":o="rect_left_inv_arrow";break;case"lean_right":o="lean_right";break;case"lean_left":o="lean_left";break;case"trapezoid":o="trapezoid";break;case"inv_trapezoid":o="inv_trapezoid";break;case"odd_right":o="rect_left_inv_arrow";break;case"circle":o="circle";break;case"ellipse":o="ellipse";break;case"stadium":o="stadium";break;case"subroutine":o="subroutine";break;case"cylinder":o="cylinder";break;case"group":o="rect";break;case"doublecircle":o="doublecircle";break;default:o="rect"}const T=await q(t,S());l.setNode(r.id,{labelStyle:w.labelStyle,shape:o,labelText:T,labelType:r.labelType,rx:b,ry:b,class:y,style:w.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:d.db.getTooltip(r.id)||"",domId:d.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:S().flowchart.padding}),g.info("setNode",{labelStyle:w.labelStyle,labelType:r.labelType,shape:o,labelText:T,rx:b,ry:b,class:y,style:w.style,id:r.id,domId:d.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:S().flowchart.padding})}},M=async function(e,l,c){g.info("abc78 edges = ",e);let a=0,i={},d,u;if(e.defaultStyle!==void 0){const n=N(e.defaultStyle);d=n.style,u=n.labelStyle}for(const n of e){a++;const p="L-"+n.start+"-"+n.end;i[p]===void 0?(i[p]=0,g.info("abc78 new entry",p,i[p])):(i[p]++,g.info("abc78 new entry",p,i[p]));let r=p+"-"+i[p];g.info("abc78 new link id to be used is",p,r,i[p]);const y="LS-"+n.start,w="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",b="";switch(n.stroke){case"normal":s="fill:none;",d!==void 0&&(s=d),u!==void 0&&(b=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const o=N(n.style);s=o.style,b=o.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=b,n.interpolate!==void 0?t.curve=E(n.interpolate,L):e.defaultInterpolate!==void 0?t.curve=E(e.defaultInterpolate,L):t.curve=E(P.curve,L),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await q(n.text.replace(G.lineBreakRegex,`
`),S()),n.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=r,t.classes="flowchart-link "+y+" "+w,l.setEdge(n.start,n.end,t,a)}},le=function(e,l){return l.db.getClasses()},ae=async function(e,l,c,a){g.info("Drawing flowchart");let i=a.db.getDirection();i===void 0&&(i="TD");const{securityLevel:d,flowchart:u}=S(),n=u.nodeSpacing||50,p=u.rankSpacing||50;let r;d==="sandbox"&&(r=$("#i"+l));const y=d==="sandbox"?$(r.nodes()[0].contentDocument.body):$("body"),w=d==="sandbox"?r.nodes()[0].contentDocument:document,t=new R({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:n,ranksep:p,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let s;const b=a.db.getSubGraphs();g.info("Subgraphs - ",b);for(let f=b.length-1;f>=0;f--)s=b[f],g.info("Subgraph - ",s),a.db.addVertex(s.id,{text:s.title,type:s.labelType},"group",void 0,s.classes,s.dir);const o=a.db.getVertices(),T=a.db.getEdges();g.info("Edges",T);let k=0;for(k=b.length-1;k>=0;k--){s=b[k],Z("cluster").append("text");for(let f=0;f<s.nodes.length;f++)g.info("Setting up subgraphs",s.nodes[f],s.id),t.setParent(s.nodes[f],s.id)}await V(o,t,l,y,w,a),await M(T,t);const _=y.select(`[id="${l}"]`),C=y.select("#"+l+" g");if(await Q(C,t,["point","circle","cross"],"flowchart",l),j.insertTitle(_,"flowchartTitleText",u.titleTopMargin,a.db.getDiagramTitle()),U(t,_,u.diagramPadding,u.useMaxWidth),a.db.indexNodes("subGraph"+k),!u.htmlLabels){const f=w.querySelectorAll('[id="'+l+'"] .edgeLabel .label');for(const x of f){const m=x.getBBox(),h=w.createElementNS("http://www.w3.org/2000/svg","rect");h.setAttribute("rx",0),h.setAttribute("ry",0),h.setAttribute("width",m.width),h.setAttribute("height",m.height),x.insertBefore(h,x.firstChild)}}Object.keys(o).forEach(function(f){const x=o[f];if(x.link){const m=$("#"+l+' [id="'+f+'"]');if(m){const h=w.createElementNS("http://www.w3.org/2000/svg","a");h.setAttributeNS("http://www.w3.org/2000/svg","class",x.classes.join(" ")),h.setAttributeNS("http://www.w3.org/2000/svg","href",x.link),h.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),d==="sandbox"?h.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):x.linkTarget&&h.setAttributeNS("http://www.w3.org/2000/svg","target",x.linkTarget);const B=m.insert(function(){return h},":first-child"),I=m.select(".label-container");I&&B.append(function(){return I.node()});const D=m.select(".label");D&&B.append(function(){return D.node()})}}})},we={setConf:re,addVertices:V,addEdges:M,getClasses:le,draw:ae},oe=(e,l)=>{const c=Y,a=c(e,"r"),i=c(e,"g"),d=c(e,"b");return W(a,i,d,l)},ne=e=>`.label {
font-family: ${e.fontFamily};
color: ${e.nodeTextColor||e.textColor};
}
.cluster-label text {
fill: ${e.titleColor};
}
.cluster-label span,p {
color: ${e.titleColor};
}
.label text,span,p {
fill: ${e.nodeTextColor||e.textColor};
color: ${e.nodeTextColor||e.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${e.mainBkg};
stroke: ${e.nodeBorder};
stroke-width: 1px;
}
.flowchart-label text {
text-anchor: middle;
}
// .flowchart-label .text-outer-tspan {
// text-anchor: middle;
// }
// .flowchart-label .text-inner-tspan {
// text-anchor: start;
// }
.node .katex path {
fill: #000;
stroke: #000;
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${e.arrowheadColor};
}
.edgePath .path {
stroke: ${e.lineColor};
stroke-width: 2.0px;
}
.flowchart-link {
stroke: ${e.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${e.edgeLabelBackground};
rect {
opacity: 0.5;
background-color: ${e.edgeLabelBackground};
fill: ${e.edgeLabelBackground};
}
text-align: center;
}
/* For html labels only */
.labelBkg {
background-color: ${oe(e.edgeLabelBackground,.5)};
// background-color:
}
.cluster rect {
fill: ${e.clusterBkg};
stroke: ${e.clusterBorder};
stroke-width: 1px;
}
.cluster text {
fill: ${e.titleColor};
}
.cluster span,p {
color: ${e.titleColor};
}
/* .cluster div {
color: ${e.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${e.fontFamily};
font-size: 12px;
background: ${e.tertiaryColor};
border: 1px solid ${e.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${e.textColor};
}
`,he=ne;export{he as a,te as b,ee as c,ue as d,be as e,we as f,fe as g,pe as i,Z as s};
import{at as Y,aq as jt,ap as zt,ar as Mt,as as Ht,aT as Xt,aU as Kt,ay as D,aB as ot,aV as Wt,bm as Jt}from"./index-Hfn5l4aw.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],U=[1,20],j=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var v=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");v=st[0],O=[O,st[1]]}this.$={stmt:"state",id:v,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:U,26:j,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:U,26:j,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:U,26:j,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:U,26:j,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",v=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),A={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(A.yy[dt]=this.yy[dt]);S.setInput(r,A.yy),A.yy.lexer=S,A.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ut(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=Ut()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(v+1)+`:
import{c as Y,g as Ut,s as zt,a as Mt,b as Ht,C as Xt,D as Kt,l as D,j as ot,E as Wt,a8 as Jt}from"./slidev/Mermaid-sWhOKcCj.js";var gt=function(){var t=function(C,r,n,i){for(n=n||{},i=C.length;i--;n[C[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],f=[2,4],d=[1,9],y=[1,11],k=[1,15],u=[1,16],E=[1,17],T=[1,18],R=[1,30],G=[1,19],j=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],K=[1,27],W=[1,28],J=[1,29],q=[1,32],Q=[1,33],Z=[1,34],tt=[1,35],w=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],et=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Dt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,p,e,$){var l=e.length-1;switch(p){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var v=e[l],O=e[l-2].trim();if(e[l].match(":")){var st=e[l].split(":");v=st[0],O=[O,st[1]]}this.$={stmt:"state",id:v,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],f,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:u,18:E,21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(et,[2,40],{51:[1,51]}),t(et,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:w},t(c,[2,16]),t(Dt,f,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,64],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(et,[2,42]),t(et,[2,43]),t(c,[2,14]),t(c,[2,18]),t(Dt,f,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:k,16:u,18:E,20:[1,69],21:T,23:R,24:G,25:j,26:U,27:z,28:M,31:24,32:H,34:X,36:K,37:W,41:J,44:q,45:Q,46:Z,47:tt,50:w},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],p=[null],e=[],$=this.table,l="",v=0,O=0,st=2,B=1,ft=e.slice.call(arguments,1),S=Object.create(this.lexer),A={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(A.yy[dt]=this.yy[dt]);S.setInput(r,A.yy),A.yy.lexer=S,A.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var yt=S.yylloc;e.push(yt);var Gt=S.options&&S.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function jt(){var x;return x=o.pop()||S.lex()||B,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=n.symbols_[x]||x),x}for(var _,L,m,pt,N={},it,b,Ct,rt;;){if(L=i[i.length-1],this.defaultActions[L]?m=this.defaultActions[L]:((_===null||typeof _>"u")&&(_=jt()),m=$[L]&&$[L][_]),typeof m>"u"||!m.length||!m[0]){var St="";rt=[];for(it in $[L])this.terminals_[it]&&it>st&&rt.push("'"+this.terminals_[it]+"'");S.showPosition?St="Parse error on line "+(v+1)+`:
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,i,o,p){switch(o){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),i.yytext=i.yytext.substr(2).trim(),30;case 64:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return i.yytext=i.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}};return C}();ht.lexer=Yt;function ut(){this.yy={}}return ut.prototype=ht,ht.Parser=ut,new ut}();gt.parser=gt;const De=gt,qt="LR",Ce="TB",_t="state",It="relation",Qt="classDef",Zt="applyClass",Et="default",te="divider",bt="[*]",Ot="start",Nt=bt,Rt="end",vt="color",At="fill",ee="bgFill",se=",";function wt(){return{}}let $t=qt,lt=[],P=wt();const Bt=()=>({relations:[],states:{},documents:{}});let ct={root:Bt()},g=ct.root,V=0,Lt=0;const ie={LINE:0,DOTTED_LINE:1},re={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},nt=t=>JSON.parse(JSON.stringify(t)),ne=t=>{D.info("Setting root doc",t),lt=t},ae=()=>lt,at=(t,s,a)=>{if(s.stmt===It)at(t,s.state1,!0),at(t,s.state2,!1);else if(s.stmt===_t&&(s.id==="[*]"?(s.id=a?t.id+"_start":t.id+"_end",s.start=a):s.id=s.id.trim()),s.doc){const h=[];let f=[],d;for(d=0;d<s.doc.length;d++)if(s.doc[d].type===te){const y=nt(s.doc[d]);y.doc=nt(f),h.push(y),f=[]}else f.push(s.doc[d]);if(h.length>0&&f.length>0){const y={stmt:_t,id:Jt(),type:"divider",doc:nt(f)};h.push(nt(y)),s.doc=h}s.doc.forEach(y=>at(s,y,!0))}},le=()=>(at({id:"root"},{id:"root",doc:lt},!0),{id:"root",doc:lt}),ce=t=>{let s;t.doc?s=t.doc:s=t,D.info(s),Pt(!0),D.info("Extract",s),s.forEach(a=>{switch(a.stmt){case _t:I(a.id.trim(),a.type,a.doc,a.description,a.note,a.classes,a.styles,a.textStyles);break;case It:Vt(a.state1,a.state2,a.description);break;case Qt:Ft(a.id.trim(),a.classes);break;case Zt:xt(a.id.trim(),a.styleClass);break}})},I=function(t,s=Et,a=null,h=null,f=null,d=null,y=null,k=null){const u=t==null?void 0:t.trim();g.states[u]===void 0?(D.info("Adding state ",u,h),g.states[u]={id:u,descriptions:[],type:s,doc:a,note:f,classes:[],styles:[],textStyles:[]}):(g.states[u].doc||(g.states[u].doc=a),g.states[u].type||(g.states[u].type=s)),h&&(D.info("Setting state description",u,h),typeof h=="string"&&kt(u,h.trim()),typeof h=="object"&&h.forEach(E=>kt(u,E.trim()))),f&&(g.states[u].note=f,g.states[u].note.text=ot.sanitizeText(g.states[u].note.text,Y())),d&&(D.info("Setting state classes",u,d),(typeof d=="string"?[d]:d).forEach(T=>xt(u,T.trim()))),y&&(D.info("Setting state styles",u,y),(typeof y=="string"?[y]:y).forEach(T=>_e(u,T.trim()))),k&&(D.info("Setting state styles",u,y),(typeof k=="string"?[k]:k).forEach(T=>me(u,T.trim())))},Pt=function(t){ct={root:Bt()},g=ct.root,V=0,P=wt(),t||Wt()},F=function(t){return g.states[t]},oe=function(){return g.states},he=function(){D.info("Documents = ",ct)},ue=function(){return g.relations};function mt(t=""){let s=t;return t===bt&&(V++,s=`${Ot}${V}`),s}function Tt(t="",s=Et){return t===bt?Ot:s}function fe(t=""){let s=t;return t===Nt&&(V++,s=`${Rt}${V}`),s}function de(t="",s=Et){return t===Nt?Rt:s}function ye(t,s,a){let h=mt(t.id.trim()),f=Tt(t.id.trim(),t.type),d=mt(s.id.trim()),y=Tt(s.id.trim(),s.type);I(h,f,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),I(d,y,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),g.relations.push({id1:h,id2:d,relationTitle:ot.sanitizeText(a,Y())})}const Vt=function(t,s,a){if(typeof t=="object")ye(t,s,a);else{const h=mt(t.trim()),f=Tt(t),d=fe(s.trim()),y=de(s);I(h,f),I(d,y),g.relations.push({id1:h,id2:d,title:ot.sanitizeText(a,Y())})}},kt=function(t,s){const a=g.states[t],h=s.startsWith(":")?s.replace(":","").trim():s;a.descriptions.push(ot.sanitizeText(h,Y()))},pe=function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},Se=()=>(Lt++,"divider-id-"+Lt),Ft=function(t,s=""){P[t]===void 0&&(P[t]={id:t,styles:[],textStyles:[]});const a=P[t];s!=null&&s.split(se).forEach(h=>{const f=h.replace(/([^;]*);/,"$1").trim();if(h.match(vt)){const y=f.replace(At,ee).replace(vt,At);a.textStyles.push(y)}a.styles.push(f)})},ge=function(){return P},xt=function(t,s){t.split(",").forEach(function(a){let h=F(a);if(h===void 0){const f=a.trim();I(f),h=F(f)}h.classes.push(s)})},_e=function(t,s){const a=F(t);a!==void 0&&a.textStyles.push(s)},me=function(t,s){const a=F(t);a!==void 0&&a.textStyles.push(s)},Te=()=>$t,ke=t=>{$t=t},Ee=t=>t&&t[0]===":"?t.substr(1).trim():t.trim(),ve={getConfig:()=>Y().state,addState:I,clear:Pt,getState:F,getStates:oe,getRelations:ue,getClasses:ge,getDirection:Te,addRelation:Vt,getDividerId:Se,setDirection:ke,cleanupLabel:pe,lineType:ie,relationType:re,logDocuments:he,getRootDoc:ae,setRootDoc:ne,getRootDocV2:le,extract:ce,trimColon:Ee,getAccTitle:jt,setAccTitle:zt,getAccDescription:Mt,setAccDescription:Ht,addStyleClass:Ft,setCssClass:xt,addDescription:kt,setDiagramTitle:Xt,getDiagramTitle:Kt},be=t=>`
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,i,o,p){switch(o){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),i.yytext=i.yytext.substr(2).trim(),30;case 64:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return i.yytext=i.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}};return C}();ht.lexer=Yt;function ut(){this.yy={}}return ut.prototype=ht,ht.Parser=ut,new ut}();gt.parser=gt;const De=gt,qt="LR",Ce="TB",_t="state",It="relation",Qt="classDef",Zt="applyClass",Et="default",te="divider",bt="[*]",Ot="start",Nt=bt,Rt="end",vt="color",At="fill",ee="bgFill",se=",";function wt(){return{}}let $t=qt,lt=[],P=wt();const Bt=()=>({relations:[],states:{},documents:{}});let ct={root:Bt()},g=ct.root,F=0,Lt=0;const ie={LINE:0,DOTTED_LINE:1},re={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},nt=t=>JSON.parse(JSON.stringify(t)),ne=t=>{D.info("Setting root doc",t),lt=t},ae=()=>lt,at=(t,s,a)=>{if(s.stmt===It)at(t,s.state1,!0),at(t,s.state2,!1);else if(s.stmt===_t&&(s.id==="[*]"?(s.id=a?t.id+"_start":t.id+"_end",s.start=a):s.id=s.id.trim()),s.doc){const h=[];let f=[],d;for(d=0;d<s.doc.length;d++)if(s.doc[d].type===te){const y=nt(s.doc[d]);y.doc=nt(f),h.push(y),f=[]}else f.push(s.doc[d]);if(h.length>0&&f.length>0){const y={stmt:_t,id:Jt(),type:"divider",doc:nt(f)};h.push(nt(y)),s.doc=h}s.doc.forEach(y=>at(s,y,!0))}},le=()=>(at({id:"root"},{id:"root",doc:lt},!0),{id:"root",doc:lt}),ce=t=>{let s;t.doc?s=t.doc:s=t,D.info(s),Pt(!0),D.info("Extract",s),s.forEach(a=>{switch(a.stmt){case _t:I(a.id.trim(),a.type,a.doc,a.description,a.note,a.classes,a.styles,a.textStyles);break;case It:Ft(a.state1,a.state2,a.description);break;case Qt:Vt(a.id.trim(),a.classes);break;case Zt:xt(a.id.trim(),a.styleClass);break}})},I=function(t,s=Et,a=null,h=null,f=null,d=null,y=null,k=null){const u=t==null?void 0:t.trim();g.states[u]===void 0?(D.info("Adding state ",u,h),g.states[u]={id:u,descriptions:[],type:s,doc:a,note:f,classes:[],styles:[],textStyles:[]}):(g.states[u].doc||(g.states[u].doc=a),g.states[u].type||(g.states[u].type=s)),h&&(D.info("Setting state description",u,h),typeof h=="string"&&kt(u,h.trim()),typeof h=="object"&&h.forEach(E=>kt(u,E.trim()))),f&&(g.states[u].note=f,g.states[u].note.text=ot.sanitizeText(g.states[u].note.text,Y())),d&&(D.info("Setting state classes",u,d),(typeof d=="string"?[d]:d).forEach(T=>xt(u,T.trim()))),y&&(D.info("Setting state styles",u,y),(typeof y=="string"?[y]:y).forEach(T=>_e(u,T.trim()))),k&&(D.info("Setting state styles",u,y),(typeof k=="string"?[k]:k).forEach(T=>me(u,T.trim())))},Pt=function(t){ct={root:Bt()},g=ct.root,F=0,P=wt(),t||Wt()},V=function(t){return g.states[t]},oe=function(){return g.states},he=function(){D.info("Documents = ",ct)},ue=function(){return g.relations};function mt(t=""){let s=t;return t===bt&&(F++,s=`${Ot}${F}`),s}function Tt(t="",s=Et){return t===bt?Ot:s}function fe(t=""){let s=t;return t===Nt&&(F++,s=`${Rt}${F}`),s}function de(t="",s=Et){return t===Nt?Rt:s}function ye(t,s,a){let h=mt(t.id.trim()),f=Tt(t.id.trim(),t.type),d=mt(s.id.trim()),y=Tt(s.id.trim(),s.type);I(h,f,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),I(d,y,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),g.relations.push({id1:h,id2:d,relationTitle:ot.sanitizeText(a,Y())})}const Ft=function(t,s,a){if(typeof t=="object")ye(t,s,a);else{const h=mt(t.trim()),f=Tt(t),d=fe(s.trim()),y=de(s);I(h,f),I(d,y),g.relations.push({id1:h,id2:d,title:ot.sanitizeText(a,Y())})}},kt=function(t,s){const a=g.states[t],h=s.startsWith(":")?s.replace(":","").trim():s;a.descriptions.push(ot.sanitizeText(h,Y()))},pe=function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},Se=()=>(Lt++,"divider-id-"+Lt),Vt=function(t,s=""){P[t]===void 0&&(P[t]={id:t,styles:[],textStyles:[]});const a=P[t];s!=null&&s.split(se).forEach(h=>{const f=h.replace(/([^;]*);/,"$1").trim();if(h.match(vt)){const y=f.replace(At,ee).replace(vt,At);a.textStyles.push(y)}a.styles.push(f)})},ge=function(){return P},xt=function(t,s){t.split(",").forEach(function(a){let h=V(a);if(h===void 0){const f=a.trim();I(f),h=V(f)}h.classes.push(s)})},_e=function(t,s){const a=V(t);a!==void 0&&a.textStyles.push(s)},me=function(t,s){const a=V(t);a!==void 0&&a.textStyles.push(s)},Te=()=>$t,ke=t=>{$t=t},Ee=t=>t&&t[0]===":"?t.substr(1).trim():t.trim(),ve={getConfig:()=>Y().state,addState:I,clear:Pt,getState:V,getStates:oe,getRelations:ue,getClasses:ge,getDirection:Te,addRelation:Ft,getDividerId:Se,setDirection:ke,cleanupLabel:pe,lineType:ie,relationType:re,logDocuments:he,getRootDoc:ae,setRootDoc:ne,getRootDocV2:le,extract:ce,trimColon:Ee,getAccTitle:Ut,setAccTitle:zt,getAccDescription:Mt,setAccDescription:Ht,addStyleClass:Vt,setCssClass:xt,addDescription:kt,setDiagramTitle:Xt,getDiagramTitle:Kt},be=t=>`
import{p as J,d as B,s as Q,D as H,a as X,S as Z,b as F,c as I}from"./styles-15409a09-FaFI1JLV.js";import{G as tt}from"./graph-af3d5df6-B9Rrt_D8.js";import{l as E,c as g,h as x,v as et,i as ot,j as w}from"./slidev/Mermaid-sWhOKcCj.js";import{r as st}from"./index-c8395ba2-BeB0hvAS.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./layout-6685625a-TirZJcn7.js";import"./clone-d2e37f8c-kF1Uud7q.js";import"./edges-1e1ebc73-BF9aEHVZ.js";import"./createText-f6615236-DY9JQ1lr.js";import"./line-65d70945-Bv9b7vLo.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const h="rect",C="rectWithTitle",nt="start",it="end",ct="divider",rt="roundedWithTitle",lt="note",at="noteGroup",_="statediagram",dt="state",Et=`${_}-${dt}`,m="transition",St="note",pt="note-edge",Tt=`${m} ${pt}`,_t=`${_}-${St}`,ut="cluster",Dt=`${_}-${ut}`,bt="cluster-alt",ft=`${_}-${bt}`,U="parent",V="note",At="state",N="----",ht=`${N}${V}`,M=`${N}${U}`,Y="fill:none",W="fill: #333",z="c",j="text",q="normal";let y={},d=0;const yt=function(t){const n=Object.keys(t);for(const e of n)t[e]},gt=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function $t(t){return t==null?"":t.classes?t.classes.join(" "):""}function R(t="",n=0,e="",i=N){const c=e!==null&&e.length>0?`${i}${e}`:"";return`${At}-${t}${c}-${n}`}const A=(t,n,e,i,c,r)=>{const o=e.id,u=$t(i[o]);if(o!=="root"){let p=h;e.start===!0&&(p=nt),e.start===!1&&(p=it),e.type!==H&&(p=e.type),y[o]||(y[o]={id:o,shape:p,description:w.sanitizeText(o,g()),classes:`${u} ${Et}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=w.sanitizeTextOrArray(s.description,g())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(E.info("Setting cluster for ",o,G(e)),s.type="group",s.dir=G(e),s.shape=e.type===X?ct:rt,s.classes=s.classes+" "+Dt+" "+(r?ft:""));const T={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:R(o,d),type:s.type,padding:15};if(T.centerLabel=!0,e.note){const l={labelStyle:"",shape:lt,labelText:e.note.text,classes:_t,style:"",id:o+ht+"-"+d,domId:R(o,d,V),type:s.type,padding:15},a={labelStyle:"",shape:at,labelText:e.note.text,classes:s.classes,style:"",id:o+M,domId:R(o,d,U),type:"group",padding:0};d++;const D=o+M;t.setNode(D,a),t.setNode(l.id,l),t.setNode(o,T),t.setParent(o,D),t.setParent(l.id,D);let S=o,b=l.id;e.note.position==="left of"&&(S=l.id,b=o),t.setEdge(S,b,{arrowhead:"none",arrowType:"",style:Y,labelStyle:"",classes:Tt,arrowheadStyle:W,labelpos:z,labelType:j,thickness:q})}else t.setNode(o,T)}n&&n.id!=="root"&&(E.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(E.trace("Adding nodes children "),xt(t,e,e.doc,i,c,!r))},xt=(t,n,e,i,c,r)=>{E.trace("items",e),e.forEach(o=>{switch(o.stmt){case F:A(t,n,o,i,c,r);break;case H:A(t,n,o,i,c,r);break;case Z:{A(t,n,o.state1,i,c,r),A(t,n,o.state2,i,c,r);const u={id:"edge"+d,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Y,labelStyle:"",label:w.sanitizeText(o.description,g()),arrowheadStyle:W,labelpos:z,labelType:j,thickness:q,classes:m};t.setEdge(o.state1.id,o.state2.id,u,d),d++}break}})},G=(t,n=I)=>{let e=n;if(t.doc)for(let i=0;i<t.doc.length;i++){const c=t.doc[i];c.stmt==="dir"&&(e=c.value)}return e},Ct=async function(t,n,e,i){E.info("Drawing state diagram (v2)",n),y={},i.db.getDirection();const{securityLevel:c,state:r}=g(),o=r.nodeSpacing||50,u=r.rankSpacing||50;E.info(i.db.getRootDocV2()),i.db.extract(i.db.getRootDocV2()),E.info(i.db.getRootDocV2());const p=i.db.getStates(),s=new tt({multigraph:!0,compound:!0}).setGraph({rankdir:G(i.db.getRootDocV2()),nodesep:o,ranksep:u,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});A(s,void 0,i.db.getRootDocV2(),p,i.db,!0);let T;c==="sandbox"&&(T=x("#i"+n));const l=c==="sandbox"?x(T.nodes()[0].contentDocument.body):x("body"),a=l.select(`[id="${n}"]`),D=l.select("#"+n+" g");await st(D,s,["barb"],_,n);const S=8;et.insertTitle(a,"statediagramTitleText",r.titleTopMargin,i.db.getDiagramTitle());const b=a.node().getBBox(),L=b.width+S*2,P=b.height+S*2;a.attr("class",_);const O=a.node().getBBox();ot(a,P,L,r.useMaxWidth);const v=`${O.x-S} ${O.y-S} ${L} ${P}`;E.debug(`viewBox ${v}`),a.attr("viewBox",v);const K=document.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(const $ of K){const k=$.getBBox(),f=document.createElementNS("http://www.w3.org/2000/svg",h);f.setAttribute("rx",0),f.setAttribute("ry",0),f.setAttribute("width",k.width),f.setAttribute("height",k.height),$.insertBefore(f,$.firstChild)}},Rt={setConf:yt,getClasses:gt,draw:Ct},Wt={parser:J,db:B,renderer:Rt,styles:Q,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,B.clear()}};export{Wt as diagram};
import{p as P,d as N,s as W}from"./styles-15409a09-FaFI1JLV.js";import{c as t,h as H,l as b,i as v,j as T,F as R,v as U}from"./slidev/Mermaid-sWhOKcCj.js";import{G as C}from"./graph-af3d5df6-B9Rrt_D8.js";import{l as F}from"./layout-6685625a-TirZJcn7.js";import{l as $}from"./line-65d70945-Bv9b7vLo.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const O=e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),X=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),J=(e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),c=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c.width+2*t().state.padding).attr("height",c.height+2*t().state.padding).attr("rx",t().state.radius),o},Y=(e,i)=>{const o=function(l,m,w){const E=l.append("tspan").attr("x",2*t().state.padding).text(m);w||E.attr("dy",t().state.textHeight)},s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=s.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,r=!0;i.descriptions.forEach(function(l){a||(o(p,l,r),r=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),d=Math.max(x.width,s.width);return y.attr("x2",d+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},I=(e,i,o)=>{const c=t().state.padding,s=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,r=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=r.node().getBBox().width+s;let d=Math.max(x,p);d===p&&(d=d+s);let l;const m=e.node().getBBox();i.doc,l=a-c,x>p&&(l=(p-d)/2+c),Math.abs(a-m.x)<c&&x>p&&(l=a-(x-p)/2);const w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",w).attr("class",o?"alt-composit":"composit").attr("width",d).attr("height",m.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),r.attr("x",l+c),x<=p&&r.attr("x",a+(d-s)/2-x/2+c),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",d).attr("height",m.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},_=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),q=(e,i)=>{let o=t().state.forkWidth,c=t().state.forkHeight;if(i.parentId){let s=o;o=c,c=s}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",c).attr("x",t().state.padding).attr("y",t().state.padding)},Z=(e,i,o,c)=>{let s=0;const g=c.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"<br/>");p=p.replace(/\n/g,"<br/>");const a=p.split(T.lineBreakRegex);let r=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const d=g.append("tspan");if(d.text(x),r===0){const l=d.node().getBBox();r+=l.height}s+=r,d.attr("x",i+t().state.noteMargin),d.attr("y",o+s+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:s}},j=(e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),c=i.append("g"),{textWidth:s,textHeight:g}=Z(e,0,0,c);return o.attr("height",g+2*t().state.noteMargin),o.attr("width",s+t().state.noteMargin*2),o},L=function(e,i){const o=i.id,c={id:o,label:i.id,width:0,height:0},s=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&O(s),i.type==="end"&&_(s),(i.type==="fork"||i.type==="join")&&q(s,i),i.type==="note"&&j(i.note.text,s),i.type==="divider"&&X(s),i.type==="default"&&i.descriptions.length===0&&J(s,i),i.type==="default"&&i.descriptions.length>0&&Y(s,i);const g=s.node().getBBox();return c.width=g.width+2*t().state.padding,c.height=g.height+2*t().state.padding,c};let G=0;const K=function(e,i,o){const c=function(r){switch(r){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}};i.points=i.points.filter(r=>!Number.isNaN(r.y));const s=i.points,g=$().x(function(r){return r.x}).y(function(r){return r.y}).curve(R),p=e.append("path").attr("d",g(s)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+c(N.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:x}=U.calcLabelPosition(i.points),d=T.getRows(o.title);let l=0;const m=[];let w=0,E=0;for(let u=0;u<=d.length;u++){const h=r.append("text").attr("text-anchor","middle").text(d[u]).attr("x",y).attr("y",x+l),f=h.node().getBBox();w=Math.max(w,f.width),E=Math.min(E,f.x),b.info(f.x,y,x+l),l===0&&(l=h.node().getBBox().height,b.info("Title height",l,x)),m.push(h)}let k=l*d.length;if(d.length>1){const u=(d.length-1)*l*.5;m.forEach((h,f)=>h.attr("y",x+f*l-u)),k=l*d.length}const n=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-w/2-t().state.padding/2).attr("y",x-k/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",k+t().state.padding),b.info(n)}G++};let B;const z={},Q=function(){},V=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},D=function(e,i,o,c){B=t().state;const s=t().securityLevel;let g;s==="sandbox"&&(g=H("#i"+i));const p=s==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=s==="sandbox"?g.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);const r=p.select(`[id='${i}']`);V(r);const y=c.db.getRootDoc();A(y,r,void 0,!1,p,a,c);const x=B.padding,d=r.node().getBBox(),l=d.width+x*2,m=d.height+x*2,w=l*1.75;v(r,m,w,B.useMaxWidth),r.attr("viewBox",`${d.x-B.padding} ${d.y-B.padding} `+l+" "+m)},tt=e=>e?e.length*B.fontSizeFactor:1,A=(e,i,o,c,s,g,p)=>{const a=new C({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){y=!1;break}o?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:B.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}}),p.db.extract(e);const x=p.db.getStates(),d=p.db.getRelations(),l=Object.keys(x);for(const n of l){const u=x[n];o&&(u.parentId=o);let h;if(u.doc){let f=i.append("g").attr("id",u.id).attr("class","stateGroup");h=A(u.doc,f,u.id,!c,s,g,p);{f=I(f,u,c);let S=f.node().getBBox();h.width=S.width,h.height=S.height+B.padding/2,z[u.id]={y:B.compositTitleSize}}}else h=L(i,u);if(u.note){const f={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},S=L(i,f);u.note.position==="left of"?(a.setNode(h.id+"-note",S),a.setNode(h.id,h)):(a.setNode(h.id,h),a.setNode(h.id+"-note",S)),a.setParent(h.id,h.id+"-group"),a.setParent(h.id+"-note",h.id+"-group")}else a.setNode(h.id,h)}b.debug("Count=",a.nodeCount(),a);let m=0;d.forEach(function(n){m++,b.debug("Setting edge",n),a.setEdge(n.id1,n.id2,{relation:n,width:tt(n.title),height:B.labelHeight*T.getRows(n.title).length,labelpos:"c"},"id"+m)}),F(a),b.debug("Graph after layout",a.nodes());const w=i.node();a.nodes().forEach(function(n){n!==void 0&&a.node(n)!==void 0?(b.warn("Node "+n+": "+JSON.stringify(a.node(n))),s.select("#"+w.id+" #"+n).attr("transform","translate("+(a.node(n).x-a.node(n).width/2)+","+(a.node(n).y+(z[n]?z[n].y:0)-a.node(n).height/2)+" )"),s.select("#"+w.id+" #"+n).attr("data-x-shift",a.node(n).x-a.node(n).width/2),g.querySelectorAll("#"+w.id+" #"+n+" .divider").forEach(h=>{const f=h.parentElement;let S=0,M=0;f&&(f.parentElement&&(S=f.parentElement.getBBox().width),M=parseInt(f.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",S-M-8)})):b.debug("No Node "+n+": "+JSON.stringify(a.node(n)))});let E=w.getBBox();a.edges().forEach(function(n){n!==void 0&&a.edge(n)!==void 0&&(b.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(a.edge(n))),K(i,a.edge(n),a.edge(n).relation))}),E=w.getBBox();const k={id:o||"root",label:o||"root",width:0,height:0};return k.width=E.width+2*B.padding,k.height=E.height+2*B.padding,b.debug("Doc rendered",k,a),k},et={setConf:Q,draw:D},pt={parser:P,db:N,renderer:et,styles:W,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()}};export{pt as diagram};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingPreview-lUDfsxKN.js","assets/modules/vue-O-XuQLLR.js","assets/index-DENYuTHS.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/index-BAThGyva.css","assets/slidev/bottom-WehDtssn.js","assets/bottom-DbIWt59F.css"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{d as m,y as c,M as F,Y as L,J as V,o as r,b as u,l as d,A as a,i as B,c as f,g as _,h as M,F as v,Z as R,e as y,f as j,C as z,_ as G}from"../modules/vue-O-XuQLLR.js";import{t as W}from"../modules/shiki-CBnMlxcT.js";import{G as D,g as I,S as O,a as T,w as H}from"./bottom-WehDtssn.js";import{s as J,a as k,_ as K,c as S,i as X,b as h,u as w,d as $,C as Y,e as N,f as g,g as Z}from"../index-DENYuTHS.js";import{P as Q}from"./PrintStyle-DYFVhmXJ.js";function U(l){return Array.from(new Set(l))}function q(...l){let t,n,e;l.length===1?(t=0,e=1,[n]=l):[t,n,e=1]=l;const s=[];let i=t;for(;i<n;)s.push(i),i+=e||1;return s}function ee(l,t){if(!t||t==="all"||t==="*")return q(1,l+1);if(t==="none")return[];const n=[];for(const e of t.split(/[,;]/g))if(!e.includes("-"))n.push(+e);else{const[s,i]=e.split("-",2);n.push(...q(+s,i?+i+1:l+1))}return U(n).filter(e=>e<=l).sort((e,s)=>e-s)}const te=["id"],ne=m({__name:"PrintSlideClick",props:{nav:{type:Object,required:!0}},setup(l){const{nav:t}=l,n=c(()=>t.currentSlideRoute.value),e=c(()=>({height:`${J.value}px`,width:`${k.value}px`})),s=F();K(()=>import("./DrawingPreview-lUDfsxKN.js").then(o=>o.a),__vite__mapDeps([0,1,2,3,4,5,6,7])).then(o=>s.value=o.default);const i=c(()=>`${n.value.no.toString().padStart(3,"0")}-${(t.clicks.value+1).toString().padStart(2,"0")}`);return L(X,V({nav:t,configs:S,themeConfigs:c(()=>S.themeConfig)})),(o,C)=>(r(),u("div",{id:i.value,class:"print-slide-container",style:M(e.value)},[d(a(D)),d(O,{is:n.value.component,"clicks-context":o.nav.clicksContext.value,class:B(a(I)(n.value)),route:n.value},null,8,["is","clicks-context","class","route"]),s.value?(r(),f(a(s),{key:0,page:n.value.no},null,8,["page"])):_("v-if",!0),d(a(T))],12,te))}}),A=h(ne,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintSlideClick.vue"]]),se=m({__name:"PrintSlide",props:{route:{type:null,required:!0}},setup(l){const{route:t}=l,{isPrintWithClicks:n}=w(),e=$(t,n.value?0:Y);return(s,i)=>(r(),u(v,null,[d(A,{"clicks-context":a(e),nav:a(N)(s.route,a(e))},null,8,["clicks-context","nav"]),a(n)?(r(),u(v,{key:0},[_(`
clicks0.total can be any number >=0 when rendering.
So total-clicksStart can be negative in intermediate states.
`),(r(!0),u(v,null,R(Math.max(0,a(e).total-a(e).clicksStart),o=>(r(),f(A,{key:o,nav:a(N)(s.route,a($)(s.route,o+a(e).clicksStart))},null,8,["nav"]))),128))],64)):_("v-if",!0)],64))}}),le=h(se,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintSlide.vue"]]),ae={id:"print-content"},ie=m({__name:"PrintContainer",props:{width:{type:Number,required:!0}},setup(l){const t=l,{slides:n,currentRoute:e}=w(),s=c(()=>t.width),i=c(()=>t.width/g.value),o=c(()=>s.value/i.value),C=c(()=>o.value<g.value?s.value/k.value:i.value*g.value/k.value);let p=n.value;e.value.query.range&&(p=ee(p.length,e.value.query.range).map(P=>p[P-1]));const E=c(()=>({"select-none":!S.selectable}));return L(Z,C),(x,P)=>(r(),u("div",{id:"print-container",class:B(E.value)},[y("div",ae,[(r(!0),u(v,null,R(a(p),b=>(r(),f(le,{key:b.no,route:b},null,8,["route"]))),128))]),j(x.$slots,"controls")],2))}}),re=h(ie,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintContainer.vue"]]),oe={id:"page-root",class:"grid grid-cols-[1fr_max-content]"},ce=y("div",{id:"twoslash-container"},null,-1),ue=m({__name:"print",setup(l){const{isPrintMode:t}=w();return z(()=>{t?document.body.parentNode.classList.add("print"):document.body.parentNode.classList.remove("print")}),G(()=>{W()}),(n,e)=>(r(),u(v,null,[a(t)?(r(),f(Q,{key:0})):_("v-if",!0),y("div",oe,[d(re,{class:"w-full h-full",style:M({background:"var(--slidev-slide-container-background, black)"}),width:a(H).width.value},null,8,["style","width"]),ce])],64))}}),fe=h(ue,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/print.vue"]]);export{fe as default};
import{d as _,$ as u,y as h,b as a,e as t,x as s,A as r,F as f,Z as v,o as n,a0 as g,l as x,g as b}from"../modules/vue-O-XuQLLR.js";import{u as y,h as N,c as m,b as k}from"../index-DENYuTHS.js";import{N as w}from"./NoteDisplay-BdmlYjVU.js";import"../modules/shiki-CBnMlxcT.js";const L={id:"page-root"},T={class:"m-4"},V={class:"mb-10"},B={class:"text-4xl font-bold mt-2"},D={class:"opacity-50"},H={class:"text-lg"},S={class:"font-bold flex gap-2"},A={class:"opacity-50"},C=t("div",{class:"flex-auto"},null,-1),F={key:0,class:"border-main mb-8"},M=_({__name:"print",setup($){const{slides:d,total:p}=y();u(`
@page {
size: A4;
margin-top: 1.5cm;
margin-bottom: 1cm;
}
* {
-webkit-print-color-adjust: exact;
}
html,
html body,
html #app,
html #page-root {
height: auto;
overflow: auto !important;
}
`),N({title:`Notes - ${m.title}`});const i=h(()=>d.value.map(o=>{var l;return(l=o.meta)==null?void 0:l.slide}).filter(o=>o!==void 0&&o.noteHTML!==""));return(o,l)=>(n(),a("div",L,[t("div",T,[t("div",V,[t("h1",B,s(r(m).title),1),t("div",D,s(new Date().toLocaleString()),1)]),(n(!0),a(f,null,v(i.value,(e,c)=>(n(),a("div",{key:c,class:"flex flex-col gap-4 break-inside-avoid-page"},[t("div",null,[t("h2",H,[t("div",S,[t("div",A,s(e==null?void 0:e.no)+"/"+s(r(p)),1),g(" "+s(e==null?void 0:e.title)+" ",1),C])]),x(w,{"note-html":e.noteHTML,class:"max-w-full"},null,8,["note-html"])]),c<i.value.length-1?(n(),a("hr",F)):b("v-if",!0)]))),128))])]))}}),Z=k(M,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/presenter/print.vue"]]);export{Z as default};
import{_ as X,a as Z,b as Y,c as ee,d as te}from"../modules/unplugin-icons-DhLcIxB1.js";import{t as q,d as R,c as b,i as f,A as t,o as i,y as v,b as k,e,l as r,F as B,x as N,g as z,Z as se,a1 as oe,a2 as le,h as I,p as U,a as W,D as G,M as ne,_ as ae,J as re,a3 as ie,a4 as ce,k as $,a5 as ue}from"../modules/vue-O-XuQLLR.js";import{j as de,b as P,k as pe,r as me,C as ve,u as _e,c as H,h as fe,l as xe,d as be,m as ke}from"../index-DENYuTHS.js";import{r as ge,u as he,S as O,I as Q,Q as ye,a as Ce,N as we,G as Se}from"./SlidesShow-Dk9xuOJo.js";import{s as $e,b as V,p as Ne,S as ze,g as Ie,c as Fe,i as De,d as Me}from"./bottom-WehDtssn.js";import{N as Te}from"./NoteDisplay-BdmlYjVU.js";import Ve from"./DrawingControls-BxiOgCac.js";import{u as qe}from"./DrawingPreview-lUDfsxKN.js";import"../modules/shiki-CBnMlxcT.js";import"./context-8sk6R7gr.js";function Be(a){var l;return{info:q((l=de(a))==null?void 0:l.meta.slide),update:async()=>{}}}const Re=R({__name:"NoteStatic",props:{no:{type:Number,required:!0},class:{type:String,required:!1},clicksContext:{type:null,required:!1}},setup(a){const l=a,{info:s}=Be(l.no);return(u,c)=>{var o,x;return i(),b(Te,{class:f(l.class),note:(o=t(s))==null?void 0:o.note,"note-html":(x=t(s))==null?void 0:x.noteHTML,"clicks-context":u.clicksContext},null,8,["class","note","note-html","clicks-context"])}}}),Pe=P(Re,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NoteStatic.vue"]]),E=a=>(U("data-v-52a29648"),a=a(),W(),a),Le=["title"],je={class:"flex gap-0.5 items-center min-w-16 font-mono mr1"},Ae=E(()=>e("div",{"flex-auto":""},null,-1)),Ge={"text-primary":""},He=E(()=>e("span",{op25:""},"/",-1)),Oe={op50:""},Qe=["min","max"],Ue=R({__name:"ClicksSlider",props:{clicksContext:{type:null,required:!0}},setup(a){const l=a,s=v(()=>l.clicksContext.total),u=v(()=>pe(0,l.clicksContext.clicksStart,s.value)),c=v(()=>s.value-u.value+1),o=v({get(){return l.clicksContext.current>s.value?-1:l.clicksContext.current},set(g){l.clicksContext.current=g}}),x=v(()=>me(u.value,s.value+1));function F(){(o.value<0||o.value>s.value)&&(o.value=0)}return(g,d)=>{const D=X;return i(),k("div",{class:f(["flex gap-1 items-center select-none",c.value?"":"op50"]),title:`Clicks in this slide: ${c.value}`},[e("div",je,[r(D,{"text-sm":"",op50:""}),Ae,o.value>=0&&o.value!==t(ve)?(i(),k(B,{key:0},[e("span",Ge,N(o.value),1),He],64)):z("v-if",!0),e("span",Oe,N(s.value),1)]),e("div",{relative:"","flex-auto":"",h5:"","font-mono":"",flex:"~",onDblclick:d[2]||(d[2]=n=>o.value=g.clicksContext.total)},[(i(!0),k(B,null,se(x.value,n=>(i(),k("div",{key:n,border:"y main","of-hidden":"",relative:"",class:f([n===0?"rounded-l border-l":"",n===s.value?"rounded-r border-r":""]),style:I({width:c.value>0?`${1/c.value*100}%`:"100%"})},[e("div",{absolute:"","inset-0":"",class:f(n<=o.value?"bg-primary op15":"")},null,2),e("div",{class:f([+n==+o.value?"text-primary font-bold op100 border-primary":"op30 border-main",n===0?"rounded-l":"",n===s.value?"rounded-r":"border-r-2"]),"w-full":"","h-full":"","text-xs":"",flex:"","items-center":"","justify-center":"","z-1":""},N(n),3)],6))),128)),oe(e("input",{"onUpdate:modelValue":d[0]||(d[0]=n=>o.value=n),class:"range",absolute:"","inset-0":"",type:"range",min:u.value,max:s.value,step:1,"z-10":"",op0:"",style:I({"--thumb-width":`${1/(c.value+1)*100}%`}),onMousedown:F,onFocus:d[1]||(d[1]=n=>{var C;return(C=n.currentTarget)==null?void 0:C.blur()})},null,44,Qe),[[le,o.value]])],32)],10,Le)}}}),We=P(Ue,[["__scopeId","data-v-52a29648"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/ClicksSlider.vue"]]),L=a=>(U("data-v-d0ba6bbb"),a=a(),W(),a),Ee={class:"bg-main h-full slidev-presenter"},Je=L(()=>e("div",{class:"absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm"}," Current ",-1)),Ke={class:"relative grid-section next flex flex-col p-2 lg:p-4"},Xe=L(()=>e("div",{class:"absolute left-0 top-0 bg-main border-b border-r border-main px2 py1 op50 text-sm"}," Next ",-1)),Ze={key:1,class:"grid-section note grid grid-rows-[1fr_min-content] overflow-hidden"},Ye={class:"border-t border-main py-1 px-2 text-sm"},et={class:"grid-section bottom flex"},tt=L(()=>e("div",{"flex-auto":""},null,-1)),st={class:"text-2xl pl-2 pr-6 my-auto tabular-nums"},ot={class:"progress-bar"},lt=R({__name:"presenter",setup(a){const l=q();ge(),he(l);const{clicksContext:s,currentSlideNo:u,currentSlideRoute:c,hasNext:o,nextRoute:x,slides:F,queryClicks:g,getPrimaryClicks:d,total:D}=_e(),{isDrawing:n}=qe(),C=H.titleTemplate.replace("%s",H.title||"Slidev");fe({title:`Presenter - ${C}`}),q(!1);const{timer:J,resetTimer:j}=xe(),K=v(()=>F.value.map(S=>be(S))),p=v(()=>s.value.current<s.value.total?[c.value,s.value.current+1]:o.value?[x.value,0]:null),w=v(()=>p.value&&K.value[p.value[0].no-1]);return G([c,g],()=>{w.value&&(w.value.current=p.value[1])},{immediate:!0}),ne(),ae(()=>{const S=l.value.querySelector("#slide-content"),_=re(ie()),M=ce();G(()=>{if(!M.value||n.value||!$e.value)return;const m=S.getBoundingClientRect(),h=(_.x-m.left)/m.width*100,y=(_.y-m.top)/m.height*100;if(!(h<0||h>100||y<0||y>100))return{x:h,y}},m=>{ke.cursor=m})}),(S,_)=>{var A;const M=Z,m=Y,h=ee,y=te;return i(),k(B,null,[e("div",Ee,[e("div",{class:f(["grid-container",`layout${t(Ne)}`])},[e("div",{ref_key:"main",ref:l,class:"relative grid-section main flex flex-col"},[r(O,{key:"main",class:"h-full w-full p-2 lg:p-4 flex-auto"},{default:$(()=>[r(Ce,{"render-context":"presenter"})]),_:1}),(i(),b(We,{key:(A=t(c))==null?void 0:A.no,"clicks-context":t(d)(t(c)),class:"w-full pb2 px4 flex-none"},null,8,["clicks-context"])),Je],512),e("div",Ke,[p.value&&w.value?(i(),b(O,{key:"next",class:"h-full w-full"},{default:$(()=>[(i(),b(ze,{is:p.value[0].component,key:p.value[0].no,"clicks-context":w.value,class:f(t(Ie)(p.value[0])),route:p.value[0],"render-context":"previewNext"},null,8,["is","clicks-context","class","route"]))]),_:1})):z("v-if",!0),Xe]),z(" Notes "),(i(),k("div",Ze,[(i(),b(Pe,{key:`static-${t(u)}`,no:t(u),class:"w-full max-w-full h-full overflow-auto p-2 lg:p-4",style:I({fontSize:`${t(Fe)}em`}),"clicks-context":t(s)},null,8,["no","style","clicks-context"])),e("div",Ye,[r(Q,{title:"Increase font size",onClick:t(De)},{default:$(()=>[r(M)]),_:1},8,["onClick"]),r(Q,{title:"Decrease font size",onClick:t(Me)},{default:$(()=>[r(m)]),_:1},8,["onClick"]),z("v-if",!0)])])),e("div",et,[r(we,{persist:!0}),tt,e("div",{class:"timer-btn my-auto relative w-22px h-22px cursor-pointer text-lg",opacity:"50 hover:100",onClick:_[2]||(_[2]=(...T)=>t(j)&&t(j)(...T))},[r(h,{class:"absolute"}),r(y,{class:"absolute opacity-0"})]),e("div",st,N(t(J)),1)]),(i(),b(Ve,{key:2}))],2),e("div",ot,[e("div",{class:"progress h-3px bg-primary transition-all",style:I({width:`${(t(u)-1)/(t(D)-1)*100}%`})},null,4)])]),r(Se),r(ye,{modelValue:t(V),"onUpdate:modelValue":_[3]||(_[3]=T=>ue(V)?V.value=T:null)},null,8,["modelValue"])],64)}}}),_t=P(lt,[["__scopeId","data-v-d0ba6bbb"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/presenter.vue"]]);export{_t as default};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingControls-BxiOgCac.js","assets/modules/unplugin-icons-DhLcIxB1.js","assets/modules/vue-O-XuQLLR.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/DrawingPreview-lUDfsxKN.js","assets/index-DENYuTHS.js","assets/index-BAThGyva.css","assets/slidev/bottom-WehDtssn.js","assets/bottom-DbIWt59F.css","assets/slidev/SlidesShow-Dk9xuOJo.js","assets/slidev/context-8sk6R7gr.js","assets/SlidesShow-DZAAkYiM.css","assets/DrawingControls-C5T1oZL5.css"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{b as w,c as y,u as $,_ as z}from"../index-DENYuTHS.js";import{d as k,a6 as P,o as s,c as r,A as e,b as v,e as t,f as B,i as D,g as a,a7 as O,y as E,k as M,a5 as g,a0 as R,M as h,l as p,F as I,t as A,h as T}from"../modules/vue-O-XuQLLR.js";import{b as x,e as C,f as S,h as U,j as N,w as H,k as L,l as j}from"./bottom-WehDtssn.js";import{Q as F,G,r as Q,u as W,S as K,a as X,N as Y}from"./SlidesShow-Dk9xuOJo.js";import{P as q}from"./PrintStyle-DYFVhmXJ.js";import{u as J}from"./DrawingPreview-lUDfsxKN.js";import"../modules/shiki-CBnMlxcT.js";import"../modules/unplugin-icons-DhLcIxB1.js";import"./context-8sk6R7gr.js";const Z="/slides/fosdem2024/assets/logo-BYkHSa_O.png",ee={key:0,class:"fixed top-0 bottom-0 left-0 right-0 grid z-20"},oe=k({__name:"Modal",props:{modelValue:{default:!1},class:{default:""}},emits:["update:modelValue"],setup(u,{emit:i}){const n=u,o=P(n,"modelValue",i);function l(){o.value=!1}return(c,d)=>(s(),r(O,null,[e(o)?(s(),v("div",ee,[t("div",{bg:"black opacity-80",class:"absolute top-0 bottom-0 left-0 right-0 -z-1",onClick:d[0]||(d[0]=m=>l())}),t("div",{class:D(["m-auto rounded-md bg-main shadow",n.class]),"dark:border":"~ main"},[B(c.$slots,"default")],2)])):a("v-if",!0)],1024))}}),se=w(oe,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Modal.vue"]]),le={class:"slidev-info-dialog slidev-layout flex flex-col gap-4 text-base"},te=["innerHTML"],ae=t("a",{href:"https://github.com/slidevjs/slidev",target:"_blank",class:"!opacity-100 !border-none !text-current"},[t("div",{class:"flex gap-1 children:my-auto"},[t("div",{class:"opacity-50 text-sm mr-2"},"Powered by"),t("img",{class:"w-5 h-5",src:Z,alt:"Slidev logo"}),t("div",{style:{color:"#2082A6"}},[t("b",null,"Sli"),R("dev ")])])],-1),ie=k({__name:"InfoDialog",props:{modelValue:{default:!1}},emits:["update:modelValue"],setup(u,{emit:i}){const o=P(u,"modelValue",i),l=E(()=>typeof y.info=="string");return(c,d)=>(s(),r(se,{modelValue:e(o),"onUpdate:modelValue":d[0]||(d[0]=m=>g(o)?o.value=m:null),class:"px-6 py-4"},{default:M(()=>[t("div",le,[l.value?(s(),v("div",{key:0,class:"mb-4",innerHTML:e(y).info},null,8,te)):a("v-if",!0),ae])]),_:1},8,["modelValue"]))}}),ne=w(ie,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/InfoDialog.vue"]]),re=k({__name:"Controls",setup(u){const i=h(),n=h();return(_,o)=>(s(),v(I,null,[p(F,{modelValue:e(x),"onUpdate:modelValue":o[0]||(o[0]=l=>g(x)?x.value=l:null)},null,8,["modelValue"]),p(G),i.value?(s(),r(e(i),{key:0})):a("v-if",!0),n.value?(s(),r(e(n),{key:1,modelValue:e(C),"onUpdate:modelValue":o[1]||(o[1]=l=>g(C)?C.value=l:null)},null,8,["modelValue"])):a("v-if",!0),e(y).info?(s(),r(ne,{key:2,modelValue:e(S),"onUpdate:modelValue":o[2]||(o[2]=l=>g(S)?S.value=l:null)},null,8,["modelValue"])):a("v-if",!0)],64))}}),de=w(re,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Controls.vue"]]),ue=k({__name:"play",setup(u){Q();const{next:i,prev:n,isEmbedded:_,isPrintMode:o}=$(),{isDrawing:l}=J(),c=A();function d(f){var b;N.value||((b=f.target)==null?void 0:b.id)==="slide-container"&&(f.screenX/window.innerWidth>.6?i():n())}W(c);const m=E(()=>U.value||N.value);h();const V=h();return z(()=>import("./DrawingControls-BxiOgCac.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])).then(f=>V.value=f.default),(f,b)=>(s(),v(I,null,[e(o)?(s(),r(q,{key:0})):a("v-if",!0),t("div",{id:"page-root",ref_key:"root",ref:c,class:D(["grid",e(j)?"grid-rows-[1fr_max-content]":"grid-cols-[1fr_max-content]"])},[p(K,{class:"w-full h-full",style:T({background:"var(--slidev-slide-container-background, black)"}),width:e(o)?e(H).width.value:void 0,scale:e(L),"is-main":!0,onPointerdown:d},{default:M(()=>[p(X,{"render-context":"slide"})]),controls:M(()=>[e(o)?a("v-if",!0):(s(),v("div",{key:0,class:D(["absolute bottom-0 left-0 transition duration-300 opacity-0 hover:opacity-100",[m.value?"!opacity-100 right-0":"opacity-0 p-2",e(l)?"pointer-events-none":""]])},[p(Y,{class:"m-auto",persist:m.value},null,8,["persist"])],2)),!e(y).drawings.presenterOnly&&!e(_)&&V.value?(s(),r(e(V),{key:1,class:"ml-0"})):a("v-if",!0)]),_:1},8,["style","width","scale"]),a("v-if",!0)],2),e(o)?a("v-if",!0):(s(),r(de,{key:1}))],64))}}),we=w(ue,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/pages/play.vue"]]);export{we as default};
import{at as n,ar as r,t as u,y as j,Y as $,au as v}from"../modules/vue-O-XuQLLR.js";import{g as p,B as x,K as l,i as C,A as S,x as R,y as T,w as g,L as k,M as E}from"../index-DENYuTHS.js";function F(){const t=n(C),s=r(t,"nav"),i=n(S).value,e=r(i,"current"),a=n(R),c=n(T),o=n(l,{}),d=n(g,void 0),m=n(p,u(1)),f=n(x,j(()=>1));return{$slidev:t,$nav:s,$clicksContext:i,$clicks:e,$page:a,$route:d,$renderContext:c,$frontmatter:o,$scale:m,$zoom:f}}function A(t){var a,c;$(l,t);const{$slidev:s,$page:i}=F(),e=s.nav.slides.find(o=>o.no===i.value);if((c=(a=e==null?void 0:e.meta)==null?void 0:a.slide)!=null&&c.frontmatter){for(const o of Object.keys(e.meta.slide.frontmatter))o in t||delete e.meta.slide.frontmatter[o];Object.assign(e.meta.slide.frontmatter,t)}}function O(t,s){return{...v(t,s===0?k:E),frontmatter:t}}export{O as f,A as p,F as u};
import{t as o,al as z,am as F,an as j,y as c,ao as A,ap as B,Q as t,S as _,R as E,aq as L,d as g,_ as x,o as m,b as C,F as P,g as O,e as T,Y as i,ar as S,c as $,h as N,i as R,af as D,A as M,as as q,v as I}from"../modules/vue-O-XuQLLR.js";import{f as V,_ as W,c as r,b,w as G,x as K,y as U,z as H,A as Q,B as X}from"../index-DENYuTHS.js";const ie=o(!1),le=o(!1),re=o(!1),Y=o(!1),ce=o(!0),de=z({xs:460,...L}),y=F(),ue=j(),ve=c(()=>y.height.value-y.width.value/V.value>120),fe=A(_?document.body:null),h=B(),pe=c(()=>{var s,e;return["INPUT","TEXTAREA"].includes(((s=h.value)==null?void 0:s.tagName)||"")||((e=h.value)==null?void 0:e.classList.contains("CodeMirror-code"))}),ge=c(()=>{var s;return["BUTTON","A"].includes(((s=h.value)==null?void 0:s.tagName)||"")});t("slidev-camera","default",{listenToStorageChanges:!1});t("slidev-mic","default",{listenToStorageChanges:!1});const me=t("slidev-scale",0),he=t("slidev-presenter-cursor",!0,{listenToStorageChanges:!1}),_e=t("slidev-show-editor",!1,{listenToStorageChanges:!1}),we=t("slidev-editor-vertical",!1,{listenToStorageChanges:!1});t("slidev-editor-width",_?window.innerWidth*.4:318,{listenToStorageChanges:!1});t("slidev-editor-height",_?window.innerHeight*.4:300,{listenToStorageChanges:!1});const p=t("slidev-presenter-font-size",1,{listenToStorageChanges:!1}),f=t("slidev-presenter-layout",1,{listenToStorageChanges:!1});function Ce(){f.value=f.value+1,f.value>2&&(f.value=1)}function Se(){p.value=Math.min(2,p.value+.1)}function ye(){p.value=Math.max(.5,p.value-.1)}const xe=E(Y);function Te(s,e=""){var d,n;const a=["slidev-page",e],l=(n=(d=s==null?void 0:s.meta)==null?void 0:d.slide)==null?void 0:n.no;return l!=null&&a.push(`slidev-page-${l}`),a.filter(Boolean).join(" ")}async function be(){const{saveAs:s}=await W(()=>import("../modules/file-saver-EUMWMpoS.js").then(e=>e.F),[]);s(typeof r.download=="string"?r.download:r.exportFilename?`${r.exportFilename}.pdf`:"/slides/fosdem2024slidev-exported.pdf",`${r.title}.pdf`)}const Z={class:"h-full w-full flex items-center justify-center gap-2 slidev-slide-loading"},J=T("div",{class:"i-svg-spinners-90-ring-with-bg text-xl"},null,-1),ee=T("div",null,"Loading slide...",-1),se=g({__name:"SlideLoading",setup(s){const e=o(!1);return x(()=>{setTimeout(()=>{e.value=!0},200)}),(a,l)=>(m(),C("div",Z,[e.value?(m(),C(P,{key:0},[J,ee],64)):O("v-if",!0)]))}}),te=b(se,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideLoading.vue"]]),ae=g({__name:"SlideWrapper",props:{clicksContext:{type:Object,required:!0},renderContext:{type:String,default:"slide"},active:{type:Boolean,default:!1},is:{type:Function,required:!0},route:{type:Object,required:!0}},setup(s){const e=s,a=c(()=>{var n,u;return((u=(n=e.route.meta)==null?void 0:n.slide)==null?void 0:u.frontmatter.zoom)??1});i(G,e.route),i(K,o(e.route.no)),i(U,o(e.renderContext)),i(H,S(e,"active")),i(Q,S(e,"clicksContext")),i(X,a);const l=c(()=>a.value===1?void 0:{width:`${100/a.value}%`,height:`${100/a.value}%`,transformOrigin:"top left",transform:`scale(${a.value})`}),d=q({loader:async()=>{const n=await e.is();return g({setup(u,{attrs:k}){return x(()=>{var v,w;(w=(v=e.clicksContext)==null?void 0:v.onMounted)==null||w.call(v)}),()=>I(n.default,k)}})},delay:300,loadingComponent:te});return(n,u)=>(m(),$(D(M(d)),{style:N(l.value),"data-slidev-no":e.route.no,class:R({"disable-view-transition":!["slide","presenter"].includes(e.renderContext)})},null,8,["style","data-slidev-no","class"]))}}),ke=b(ae,[["__scopeId","data-v-026ee359"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideWrapper.vue"]]),ze={render(){return[]}},Fe={render(){return[]}};export{Fe as G,ke as S,ze as a,Y as b,p as c,ye as d,ie as e,le as f,Te as g,ve as h,Se as i,_e as j,me as k,we as l,re as m,ue as n,be as o,f as p,ce as q,ge as r,he as s,xe as t,pe as u,fe as v,y as w,de as x,Ce as y,h as z};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["assets/slidev/DrawingControls-BxiOgCac.js","assets/modules/unplugin-icons-DhLcIxB1.js","assets/modules/vue-O-XuQLLR.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/DrawingPreview-lUDfsxKN.js","assets/index-DENYuTHS.js","assets/index-BAThGyva.css","assets/slidev/bottom-WehDtssn.js","assets/bottom-DbIWt59F.css","assets/slidev/context-8sk6R7gr.js","assets/DrawingControls-C5T1oZL5.css","assets/slidev/DrawingLayer-DThRU5_g.js"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{t as D,a8 as Ot,a9 as Dt,y as N,aa as L,ab as W,U as Ft,D as me,ac as Vt,d as Y,ad as jt,C as st,$ as Bt,Y as Gt,b as k,e as A,f as le,h as ce,i as F,o as h,a6 as Ve,x as X,F as H,Z as ke,A as u,l as x,a0 as Ee,a5 as Wt,ae as Kt,c as C,g as b,a7 as zt,k as R,af as nt,M as Ie,r as Ht,ag as Ut,ah as Yt,a1 as ot,ai as rt,j as he,aj as Qt,N as Xt,m as Jt,ak as qt,p as Zt,a as es}from"../modules/vue-O-XuQLLR.js";import{u as se,n as ts,t as Ne,f as we,a as xe,s as ss,c as ie,g as ns,b as U,o as ze,_ as it,p as os,q as He,d as at,C as lt,j as Ue,m as be,v as Ye}from"../index-DENYuTHS.js";import{u as je,D as rs}from"./DrawingPreview-lUDfsxKN.js";import{b as G,t as Re,m as Z,n as ct,o as ut,q as is,r as as,u as ls,v as dt,k as Se,x as Ae,s as fe,p as cs,y as us,f as Qe,z as ae,w as Me,S as ht,g as ft,G as ds,a as hs}from"./bottom-WehDtssn.js";import{e as fs,f as ps,g as vs,h as _s,i as gs,j as ms,k as ys,l as pt,m as ks,n as ws,o as xs,p as bs,q as Ss,r as Ms,s as $s,t as Cs,u as Es,v as Is}from"../modules/unplugin-icons-DhLcIxB1.js";import{u as Ns}from"./context-8sk6R7gr.js";import{t as Rs}from"../modules/shiki-CBnMlxcT.js";function No(t){const{next:e,nextSlide:s,prev:n,prevSlide:o}=se(),{isDrawing:r}=je(),i=D(0),{direction:a,distanceX:l,distanceY:c}=Ot(t,{pointerTypes:["touch"],onSwipeStart(){r.value||(i.value=Dt())},onSwipeEnd(){if(!i.value||r.value)return;const d=Math.abs(l.value),f=Math.abs(c.value);d/window.innerWidth>.3||d>75?a.value==="left"?e():n():(f/window.innerHeight>.4||f>200)&&(a.value==="down"?o():s())}})}const _e=D(1),ge=N(()=>ts.value.length),O=D(0),Be=D(0);function As(){O.value>_e.value&&(O.value-=1)}function Ls(){O.value<ge.value&&(O.value+=1)}function Ts(){if(O.value>_e.value){let t=O.value-Be.value;t<_e.value&&(t=_e.value),O.value=t}}function Ps(){if(O.value<ge.value){let t=O.value+Be.value;t>ge.value&&(t=ge.value),O.value=t}}const Os=[];function Ds(){const{go:t,goFirst:e,goLast:s,next:n,nextSlide:o,prev:r,prevSlide:i}=se(),{drawingEnabled:a}=je(),{escape:l,space:c,shift:d,left:f,right:p,up:v,down:y,enter:_,d:M,g:S,o:I,"`":w}=ct,T={next:n,prev:r,nextSlide:o,prevSlide:i,go:t,goFirst:e,goLast:s,downloadPDF:ut,toggleDark:Ne,toggleOverview:Re,toggleDrawing:()=>a.value=!a.value,escapeOverview:()=>G.value=!1,showGotoDialog:()=>Z.value=!Z.value};let g=[{name:"next_space",key:L(c,W(d)),fn:n,autoRepeat:!0},{name:"prev_space",key:L(c,d),fn:r,autoRepeat:!0},{name:"next_right",key:L(p,W(d),W(G)),fn:n,autoRepeat:!0},{name:"prev_left",key:L(f,W(d),W(G)),fn:r,autoRepeat:!0},{name:"next_page_key",key:"pageDown",fn:n,autoRepeat:!0},{name:"prev_page_key",key:"pageUp",fn:r,autoRepeat:!0},{name:"next_down",key:L(y,W(G)),fn:o,autoRepeat:!0},{name:"prev_up",key:L(v,W(G)),fn:()=>i(!1),autoRepeat:!0},{name:"next_shift",key:L(p,d),fn:o,autoRepeat:!0},{name:"prev_shift",key:L(f,d),fn:()=>i(!1),autoRepeat:!0},{name:"toggle_dark",key:L(M,W(a)),fn:Ne},{name:"toggle_overview",key:L(Ft(I,w),W(a)),fn:Re},{name:"hide_overview",key:L(l,W(a)),fn:()=>G.value=!1},{name:"goto",key:L(S,W(a)),fn:()=>Z.value=!Z.value},{name:"next_overview",key:L(p,G),fn:Ls},{name:"prev_overview",key:L(f,G),fn:As},{name:"up_overview",key:L(v,G),fn:Ts},{name:"down_overview",key:L(y,G),fn:Ps},{name:"goto_from_overview",key:L(_,G),fn:()=>{t(O.value),G.value=!1}}];const P=new Set(g.map($=>$.name));for(const $ of Os){const j=$(T,g);g=g.concat(j)}if(g.filter($=>$.name&&P.has($.name)).length===0){const $=["========== WARNING ==========","defineShortcutsSetup did not return any of the base shortcuts.","See https://sli.dev/custom/config-shortcuts.html for migration.",'If it is intentional, return at least one shortcut with one of the base names (e.g. name:"goto").'].join(`
`);alert($),console.warn($)}return g}const vt=L(W(ls),W(as),is);function Fs(t,e,s=!1){typeof t=="string"&&(t=ct[t]);const n=L(t,vt);let o=0,r;const i=()=>{if(clearTimeout(r),!n.value){o=0;return}s&&(r=setTimeout(i,Math.max(1e3-o*250,150)),o++),e()};return me(n,i,{flush:"sync"})}function Vs(t,e){return Vt(t,s=>{vt.value&&(s.repeat||e())})}function Ro(){const t=Ds();new Map(t.map(s=>[s.key,s])).forEach(s=>{s.fn&&Fs(s.key,s.fn,s.autoRepeat)}),Vs("f",()=>dt.toggle())}const js=Y({__name:"SlideContainer",props:{width:{type:Number},meta:{default:()=>({})},scale:{type:[Number,String]},isMain:{type:Boolean,default:!1}},setup(t){const e=t,{clicksDirection:s,isPrintMode:n}=se(),o=D(),r=jt(o),i=N(()=>e.width?e.width:r.width.value),a=N(()=>e.width?e.width/we.value:r.height.value);e.width&&st(()=>{o.value&&(o.value.style.width=`${i.value}px`,o.value.style.height=`${a.value}px`)});const l=N(()=>i.value/a.value),c=N(()=>e.scale&&!n.value?e.scale:l.value<we.value?i.value/xe.value:a.value*we.value/xe.value),d=N(()=>({height:`${ss.value}px`,width:`${xe.value}px`,transform:`translate(-50%, -50%) scale(${c.value})`,"--slidev-slide-scale":c.value})),f=N(()=>({"select-none":!ie.selectable,"slidev-nav-go-forward":s.value>0,"slidev-nav-go-backward":s.value<0}));return e.isMain&&Bt(N(()=>`
:root {
--slidev-slide-scale: ${c.value};
}
`)),Gt(ns,c),(p,v)=>(h(),k("div",{id:"slide-container",ref_key:"root",ref:o,class:F(["slidev-slides-container",f.value])},[A("div",{id:"slide-content",class:"slidev-slide-content",style:ce(d.value)},[le(p.$slots,"default")],4),le(p.$slots,"controls")],2))}}),Bs=U(js,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlideContainer.vue"]]),Gs={class:"select-list"},Ws={class:"title"},Ks={class:"items"},zs=["onClick"],Hs=Y({__name:"SelectList",props:{modelValue:{type:[Object,String,Number]},title:{type:String},items:{type:Array}},setup(t,{emit:e}){const o=Ve(t,"modelValue",e,{passive:!0});return(r,i)=>{const a=fs;return h(),k("div",Gs,[A("div",Ws,X(t.title),1),A("div",Ks,[(h(!0),k(H,null,ke(t.items,l=>(h(),k("div",{key:l.value,class:F(["item",{active:u(o)===l.value}]),onClick:()=>{var c;o.value=l.value,(c=l.onClick)==null||c.call(l)}},[x(a,{class:F(["text-green-500",{"opacity-0":u(o)!==l.value}])},null,8,["class"]),Ee(" "+X(l.display||l.value),1)],10,zs))),128))])])}}}),Us=U(Hs,[["__scopeId","data-v-3f89fa11"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SelectList.vue"]]),Ys={class:"text-sm"},Qs=Y({__name:"Settings",setup(t){const e=[{display:"Fit",value:0},{display:"1:1",value:1}];return(s,n)=>(h(),k("div",Ys,[x(Us,{modelValue:u(Se),"onUpdate:modelValue":n[0]||(n[0]=o=>Wt(Se)?Se.value=o:null),title:"Scale",items:e},null,8,["modelValue"])]))}}),Xs=U(Qs,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Settings.vue"]]),Js={key:0,class:"rounded-md bg-main shadow absolute bottom-10 left-0 z-20","dark:border":"~ main"},qs=Y({__name:"MenuButton",props:{modelValue:{default:!1},disabled:{default:!1}},setup(t,{emit:e}){const o=Ve(t,"modelValue",e,{passive:!0}),r=D();return Kt(r,()=>{o.value=!1}),(i,a)=>(h(),k("div",{ref_key:"el",ref:r,class:"flex relative"},[A("button",{class:F({disabled:t.disabled}),onClick:a[0]||(a[0]=l=>o.value=!u(o))},[le(i.$slots,"button",{class:F({disabled:t.disabled})})],2),(h(),C(zt,null,[u(o)?(h(),k("div",Js,[le(i.$slots,"menu")])):b("v-if",!0)],1024))],512))}}),Zs=U(qs,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/MenuButton.vue"]]),en={},tn={class:"w-1px opacity-10 bg-current m-1 lg:m-2"};function sn(t,e){return h(),k("div",tn)}const pe=U(en,[["render",sn],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/VerticalDivider.vue"]]),nn={class:"sr-only"},on=Y({__name:"IconButton",props:{title:{type:String,required:!0},icon:{type:String,required:!1},as:{type:String,required:!1}},setup(t){return(e,s)=>(h(),C(nt(e.as||"button"),{class:"slidev-icon-btn",title:e.title},{default:R(()=>[A("span",nn,X(e.title),1),le(e.$slots,"default",{},()=>[A("div",{class:F(e.icon)},null,2)])]),_:3},8,["title"]))}}),z=U(on,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/IconButton.vue"]]),rn={render(){return[]}},an={class:"h-40px flex",p:"l-1 t-0.5 r-2",text:"sm leading-2"},ln={class:"my-auto"},cn={class:"opacity-50"},un=Y({__name:"NavControls",props:{persist:{default:!1}},setup(t){const e=t,{currentRoute:s,currentSlideNo:n,hasNext:o,hasPrev:r,isEmbedded:i,isPresenter:a,isPresenterAvailable:l,next:c,prev:d,total:f}=se(),{brush:p,drawingEnabled:v}=je(),y=Ae.smaller("md"),{isFullscreen:_,toggle:M}=dt,S=N(()=>s.value.query.password),I=N(()=>S.value?`?password=${S.value}`:""),w=N(()=>`${ze(n.value,!0)}${I.value}`),T=N(()=>`${ze(n.value,!1)}${I.value}`),g=D();function P(){g.value&&ae.value&&g.value.contains(ae.value)&&ae.value.blur()}const E=N(()=>e.persist?"text-$slidev-controls-foreground bg-transparent":"rounded-md bg-main shadow dark:border dark:border-main"),$=Ie(),j=Ie();return it(()=>import("./DrawingControls-BxiOgCac.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])).then(re=>j.value=re.default),(re,V)=>{const q=ps,We=vs,B=_s,ne=gs,ue=bs,Mt=ms,$t=ys,Ct=pt,Et=ks,It=ws,Nt=Ss,Ke=Ht("RouterLink"),Rt=Ms,At=$s,Lt=Cs,Tt=Es,Pt=xs;return h(),k("nav",{ref_key:"root",ref:g,class:"flex flex-col"},[A("div",{class:F(["flex flex-wrap-reverse text-xl gap-0.5 p-1 lg:gap-1 lg:p-2",E.value]),onMouseleave:P},[u(i)?b("v-if",!0):(h(),C(z,{key:0,title:u(_)?"Close fullscreen":"Enter fullscreen",onClick:u(M)},{default:R(()=>[u(_)?(h(),C(q,{key:0})):(h(),C(We,{key:1}))]),_:1},8,["title","onClick"])),x(z,{class:F({disabled:!u(r)}),title:"Go to previous slide",onClick:u(d)},{default:R(()=>[x(B)]),_:1},8,["class","onClick"]),x(z,{class:F({disabled:!u(o)}),title:"Go to next slide",onClick:u(c)},{default:R(()=>[x(ne)]),_:1},8,["class","onClick"]),u(i)?b("v-if",!0):(h(),C(z,{key:1,title:"Show slide overview",onClick:V[0]||(V[0]=de=>u(Re)())},{default:R(()=>[x(ue)]),_:1})),u(os)?b("v-if",!0):(h(),C(z,{key:2,title:u(He)?"Switch to light mode theme":"Switch to dark mode theme",onClick:V[1]||(V[1]=de=>u(Ne)())},{default:R(()=>[u(He)?(h(),C(Mt,{key:0})):(h(),C($t,{key:1}))]),_:1},8,["title"])),x(pe),u(i)?b("v-if",!0):(h(),k(H,{key:3},[!u(a)&&!u(y)&&$.value?(h(),k(H,{key:0},[x(u($)),x(pe)],64)):b("v-if",!0),u(a)?(h(),C(z,{key:1,title:u(fe)?"Hide presenter cursor":"Show presenter cursor",onClick:V[2]||(V[2]=de=>fe.value=!u(fe))},{default:R(()=>[u(fe)?(h(),C(Ct,{key:0})):(h(),C(Et,{key:1}))]),_:1},8,["title"])):b("v-if",!0)],64)),(!u(ie).drawings.presenterOnly||u(a))&&!u(i)?(h(),k(H,{key:4},[x(z,{class:"relative",title:u(v)?"Hide drawing toolbar":"Show drawing toolbar",onClick:V[3]||(V[3]=de=>v.value=!u(v))},{default:R(()=>[x(It),u(v)?(h(),k("div",{key:0,class:"absolute left-1 right-1 bottom-0 h-0.7 rounded-full",style:ce({background:u(p).color})},null,4)):b("v-if",!0)]),_:1},8,["title"]),x(pe)],64)):b("v-if",!0),u(i)?b("v-if",!0):(h(),k(H,{key:5},[u(a)?(h(),C(Ke,{key:0,to:T.value,class:"slidev-icon-btn",title:"Play Mode"},{default:R(()=>[x(Nt)]),_:1},8,["to"])):b("v-if",!0),u(l)?(h(),C(Ke,{key:1,to:w.value,class:"slidev-icon-btn",title:"Presenter Mode"},{default:R(()=>[x(Rt)]),_:1},8,["to"])):b("v-if",!0),b("v-if",!0),u(a)?(h(),C(z,{key:3,title:"Toggle Presenter Layout",class:"aspect-ratio-initial",onClick:u(us)},{default:R(()=>[x(At),Ee(" "+X(u(cs)),1)]),_:1},8,["onClick"])):b("v-if",!0)],64)),(h(),k(H,{key:6},[u(ie).download?(h(),C(z,{key:0,title:"Download as PDF",onClick:u(ut)},{default:R(()=>[x(Lt)]),_:1},8,["onClick"])):b("v-if",!0)],64)),!u(a)&&u(ie).info&&!u(i)?(h(),C(z,{key:7,title:"Show info",onClick:V[5]||(V[5]=de=>Qe.value=!u(Qe))},{default:R(()=>[x(Tt)]),_:1})):b("v-if",!0),!u(a)&&!u(i)?(h(),C(Zs,{key:8},{button:R(()=>[x(z,{title:"Adjust settings"},{default:R(()=>[x(Pt)]),_:1})]),menu:R(()=>[x(Xs)]),_:1})):b("v-if",!0),u(i)?b("v-if",!0):(h(),C(pe,{key:9})),A("div",an,[A("div",ln,[Ee(X(u(n))+" ",1),A("span",cn,"/ "+X(u(f)),1)])]),x(u(rn))],34)],512)}}}),Ao=U(un,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NavControls.vue"]]),dn=["onClick"],hn={class:"text-green font-bold"},fn={class:"opacity-50"},pn={key:1,class:"opacity-50"},vn={key:0,class:"fixed top-4 right-4 text-gray-400 flex flex-col items-center gap-2"},$e=4*16*2,Xe=2*16,_n=Y({__name:"QuickOverview",props:{modelValue:{type:Boolean,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const o=Ve(t,"modelValue",e),{currentSlideNo:r,go:i,slides:a}=se();function l(){o.value=!1}function c(M){i(M),l()}function d(M){return M===O.value}const f=Ae.smaller("xs"),p=Ae.smaller("sm"),v=N(()=>f.value?Me.width.value-$e:p.value?(Me.width.value-$e-Xe)/2:300),y=N(()=>Math.floor((Me.width.value-$e)/(v.value+Xe))),_=D("");return Ut("keypress",M=>{if(!G.value){_.value="";return}if(M.key==="Enter"){M.preventDefault(),_.value?(c(+_.value),_.value=""):c(O.value);return}const S=Number.parseInt(M.key.replace(/[^0-9]/g,""));if(Number.isNaN(S)){_.value="";return}if(!_.value&&S===0)return;if(_.value+=String(S),+_.value>=a.value.length){_.value="";return}const I=a.value.findIndex(w=>`/${w.no}`===_.value);I!==-1&&(O.value=I+1),+_.value*10>a.value.length&&(c(+_.value),_.value="")}),st(()=>{O.value=r.value,Be.value=y.value}),(M,S)=>{const I=Is;return h(),k(H,null,[x(Yt,{"enter-active-class":"duration-150 ease-out","enter-from-class":"opacity-0 scale-102 !backdrop-blur-0px","leave-active-class":"duration-200 ease-in","leave-to-class":"opacity-0 scale-102 !backdrop-blur-0px",persisted:""},{default:R(()=>[ot(A("div",{class:"bg-main !bg-opacity-75 p-16 py-20 overflow-y-auto backdrop-blur-5px fixed left-0 right-0 top-0 h-[calc(var(--vh,1vh)*100)]",onClick:S[0]||(S[0]=w=>l())},[A("div",{class:"grid gap-y-4 gap-x-8 w-full",style:ce(`grid-template-columns: repeat(auto-fit,minmax(${v.value}px,1fr))`)},[(h(!0),k(H,null,ke(u(a),(w,T)=>(h(),k("div",{key:w.no,class:"relative"},[A("div",{class:F(["inline-block border rounded overflow-hidden bg-main hover:border-primary transition",d(T+1)||u(O)===T+1?"border-primary":"border-main"]),onClick:g=>c(w.no)},[(h(),C(Bs,{key:w.no,width:v.value,class:"pointer-events-none"},{default:R(()=>[w!=null&&w.component?(h(),C(ht,{key:0,is:w.component,"clicks-context":u(at)(w,u(lt)),class:F(u(ft)(w)),route:w,"render-context":"overview"},null,8,["is","clicks-context","class","route"])):b("v-if",!0),x(rs,{page:w.no},null,8,["page"])]),_:2},1032,["width"]))],10,dn),A("div",{class:"absolute top-0",style:ce(`left: ${v.value+5}px`)},[_.value&&String(T+1).startsWith(_.value)?(h(),k(H,{key:0},[A("span",hn,X(_.value),1),A("span",fn,X(String(T+1).slice(_.value.length)),1)],64)):(h(),k("span",pn,X(T+1),1))],4)]))),128))],4)],512),[[rt,u(o)]])]),_:1}),u(o)?(h(),k("div",vn,[x(z,{title:"Close",class:"text-2xl",onClick:l},{default:R(()=>[x(I)]),_:1}),b("v-if",!0)])):b("v-if",!0)],64)}}}),Lo=U(_n,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/QuickOverview.vue"]]);function J(t){return Array.isArray?Array.isArray(t):mt(t)==="[object Array]"}const gn=1/0;function mn(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-gn?"-0":e}function yn(t){return t==null?"":mn(t)}function Q(t){return typeof t=="string"}function _t(t){return typeof t=="number"}function kn(t){return t===!0||t===!1||wn(t)&&mt(t)=="[object Boolean]"}function gt(t){return typeof t=="object"}function wn(t){return gt(t)&&t!==null}function K(t){return t!=null}function Ce(t){return!t.trim().length}function mt(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const xn="Incorrect 'index' type",bn=t=>`Invalid value for key ${t}`,Sn=t=>`Pattern length exceeds max of ${t}.`,Mn=t=>`Missing ${t} property in key`,$n=t=>`Property 'weight' in key '${t}' must be a positive integer`,Je=Object.prototype.hasOwnProperty;class Cn{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(n=>{let o=yt(n);this._keys.push(o),this._keyMap[o.id]=o,s+=o.weight}),this._keys.forEach(n=>{n.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function yt(t){let e=null,s=null,n=null,o=1,r=null;if(Q(t)||J(t))n=t,e=qe(t),s=Le(t);else{if(!Je.call(t,"name"))throw new Error(Mn("name"));const i=t.name;if(n=i,Je.call(t,"weight")&&(o=t.weight,o<=0))throw new Error($n(i));e=qe(i),s=Le(i),r=t.getFn}return{path:e,id:s,weight:o,src:n,getFn:r}}function qe(t){return J(t)?t:t.split(".")}function Le(t){return J(t)?t.join("."):t}function En(t,e){let s=[],n=!1;const o=(r,i,a)=>{if(K(r))if(!i[a])s.push(r);else{let l=i[a];const c=r[l];if(!K(c))return;if(a===i.length-1&&(Q(c)||_t(c)||kn(c)))s.push(yn(c));else if(J(c)){n=!0;for(let d=0,f=c.length;d<f;d+=1)o(c[d],i,a+1)}else i.length&&o(c,i,a+1)}};return o(t,Q(e)?e.split("."):e,0),n?s:s[0]}const In={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Nn={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},Rn={location:0,threshold:.6,distance:100},An={useExtendedSearch:!1,getFn:En,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var m={...Nn,...In,...Rn,...An};const Ln=/[^ ]+/g;function Tn(t=1,e=3){const s=new Map,n=Math.pow(10,e);return{get(o){const r=o.match(Ln).length;if(s.has(r))return s.get(r);const i=1/Math.pow(r,.5*t),a=parseFloat(Math.round(i*n)/n);return s.set(r,a),a},clear(){s.clear()}}}class Ge{constructor({getFn:e=m.getFn,fieldNormWeight:s=m.fieldNormWeight}={}){this.norm=Tn(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,n)=>{this._keysMap[s.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Q(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();Q(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,n=this.size();s<n;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!K(e)||Ce(e))return;let n={v:e,i:s,n:this.norm.get(e)};this.records.push(n)}_addObject(e,s){let n={i:s,$:{}};this.keys.forEach((o,r)=>{let i=o.getFn?o.getFn(e):this.getFn(e,o.path);if(K(i)){if(J(i)){let a=[];const l=[{nestedArrIndex:-1,value:i}];for(;l.length;){const{nestedArrIndex:c,value:d}=l.pop();if(K(d))if(Q(d)&&!Ce(d)){let f={v:d,i:c,n:this.norm.get(d)};a.push(f)}else J(d)&&d.forEach((f,p)=>{l.push({nestedArrIndex:p,value:f})})}n.$[r]=a}else if(Q(i)&&!Ce(i)){let a={v:i,n:this.norm.get(i)};n.$[r]=a}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function kt(t,e,{getFn:s=m.getFn,fieldNormWeight:n=m.fieldNormWeight}={}){const o=new Ge({getFn:s,fieldNormWeight:n});return o.setKeys(t.map(yt)),o.setSources(e),o.create(),o}function Pn(t,{getFn:e=m.getFn,fieldNormWeight:s=m.fieldNormWeight}={}){const{keys:n,records:o}=t,r=new Ge({getFn:e,fieldNormWeight:s});return r.setKeys(n),r.setIndexRecords(o),r}function ve(t,{errors:e=0,currentLocation:s=0,expectedLocation:n=0,distance:o=m.distance,ignoreLocation:r=m.ignoreLocation}={}){const i=e/t.length;if(r)return i;const a=Math.abs(n-s);return o?i+a/o:a?1:i}function On(t=[],e=m.minMatchCharLength){let s=[],n=-1,o=-1,r=0;for(let i=t.length;r<i;r+=1){let a=t[r];a&&n===-1?n=r:!a&&n!==-1&&(o=r-1,o-n+1>=e&&s.push([n,o]),n=-1)}return t[r-1]&&r-n>=e&&s.push([n,r-1]),s}const te=32;function Dn(t,e,s,{location:n=m.location,distance:o=m.distance,threshold:r=m.threshold,findAllMatches:i=m.findAllMatches,minMatchCharLength:a=m.minMatchCharLength,includeMatches:l=m.includeMatches,ignoreLocation:c=m.ignoreLocation}={}){if(e.length>te)throw new Error(Sn(te));const d=e.length,f=t.length,p=Math.max(0,Math.min(n,f));let v=r,y=p;const _=a>1||l,M=_?Array(f):[];let S;for(;(S=t.indexOf(e,y))>-1;){let E=ve(e,{currentLocation:S,expectedLocation:p,distance:o,ignoreLocation:c});if(v=Math.min(E,v),y=S+d,_){let $=0;for(;$<d;)M[S+$]=1,$+=1}}y=-1;let I=[],w=1,T=d+f;const g=1<<d-1;for(let E=0;E<d;E+=1){let $=0,j=T;for(;$<j;)ve(e,{errors:E,currentLocation:p+j,expectedLocation:p,distance:o,ignoreLocation:c})<=v?$=j:T=j,j=Math.floor((T-$)/2+$);T=j;let re=Math.max(1,p-j+1),V=i?f:Math.min(p+j,f)+d,q=Array(V+2);q[V+1]=(1<<E)-1;for(let B=V;B>=re;B-=1){let ne=B-1,ue=s[t.charAt(ne)];if(_&&(M[ne]=+!!ue),q[B]=(q[B+1]<<1|1)&ue,E&&(q[B]|=(I[B+1]|I[B])<<1|1|I[B+1]),q[B]&g&&(w=ve(e,{errors:E,currentLocation:ne,expectedLocation:p,distance:o,ignoreLocation:c}),w<=v)){if(v=w,y=ne,y<=p)break;re=Math.max(1,2*p-y)}}if(ve(e,{errors:E+1,currentLocation:p,expectedLocation:p,distance:o,ignoreLocation:c})>v)break;I=q}const P={isMatch:y>=0,score:Math.max(.001,w)};if(_){const E=On(M,a);E.length?l&&(P.indices=E):P.isMatch=!1}return P}function Fn(t){let e={};for(let s=0,n=t.length;s<n;s+=1){const o=t.charAt(s);e[o]=(e[o]||0)|1<<n-s-1}return e}class wt{constructor(e,{location:s=m.location,threshold:n=m.threshold,distance:o=m.distance,includeMatches:r=m.includeMatches,findAllMatches:i=m.findAllMatches,minMatchCharLength:a=m.minMatchCharLength,isCaseSensitive:l=m.isCaseSensitive,ignoreLocation:c=m.ignoreLocation}={}){if(this.options={location:s,threshold:n,distance:o,includeMatches:r,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c},this.pattern=l?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const d=(p,v)=>{this.chunks.push({pattern:p,alphabet:Fn(p),startIndex:v})},f=this.pattern.length;if(f>te){let p=0;const v=f%te,y=f-v;for(;p<y;)d(this.pattern.substr(p,te),p),p+=te;if(v){const _=f-te;d(this.pattern.substr(_),_)}}else d(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:n}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let y={isMatch:!0,score:0};return n&&(y.indices=[[0,e.length-1]]),y}const{location:o,distance:r,threshold:i,findAllMatches:a,minMatchCharLength:l,ignoreLocation:c}=this.options;let d=[],f=0,p=!1;this.chunks.forEach(({pattern:y,alphabet:_,startIndex:M})=>{const{isMatch:S,score:I,indices:w}=Dn(e,y,_,{location:o+M,distance:r,threshold:i,findAllMatches:a,minMatchCharLength:l,includeMatches:n,ignoreLocation:c});S&&(p=!0),f+=I,S&&w&&(d=[...d,...w])});let v={isMatch:p,score:p?f/this.chunks.length:1};return p&&n&&(v.indices=d),v}}class ee{constructor(e){this.pattern=e}static isMultiMatch(e){return Ze(e,this.multiRegex)}static isSingleMatch(e){return Ze(e,this.singleRegex)}search(){}}function Ze(t,e){const s=t.match(e);return s?s[1]:null}class Vn extends ee{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class jn extends ee{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const n=e.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class Bn extends ee{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class Gn extends ee{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class Wn extends ee{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Kn extends ee{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class xt extends ee{constructor(e,{location:s=m.location,threshold:n=m.threshold,distance:o=m.distance,includeMatches:r=m.includeMatches,findAllMatches:i=m.findAllMatches,minMatchCharLength:a=m.minMatchCharLength,isCaseSensitive:l=m.isCaseSensitive,ignoreLocation:c=m.ignoreLocation}={}){super(e),this._bitapSearch=new wt(e,{location:s,threshold:n,distance:o,includeMatches:r,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class bt extends ee{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,n;const o=[],r=this.pattern.length;for(;(n=e.indexOf(this.pattern,s))>-1;)s=n+r,o.push([n,s-1]);const i=!!o.length;return{isMatch:i,score:i?0:1,indices:o}}}const Te=[Vn,bt,Bn,Gn,Kn,Wn,jn,xt],et=Te.length,zn=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Hn="|";function Un(t,e={}){return t.split(Hn).map(s=>{let n=s.trim().split(zn).filter(r=>r&&!!r.trim()),o=[];for(let r=0,i=n.length;r<i;r+=1){const a=n[r];let l=!1,c=-1;for(;!l&&++c<et;){const d=Te[c];let f=d.isMultiMatch(a);f&&(o.push(new d(f,e)),l=!0)}if(!l)for(c=-1;++c<et;){const d=Te[c];let f=d.isSingleMatch(a);if(f){o.push(new d(f,e));break}}}return o})}const Yn=new Set([xt.type,bt.type]);class Qn{constructor(e,{isCaseSensitive:s=m.isCaseSensitive,includeMatches:n=m.includeMatches,minMatchCharLength:o=m.minMatchCharLength,ignoreLocation:r=m.ignoreLocation,findAllMatches:i=m.findAllMatches,location:a=m.location,threshold:l=m.threshold,distance:c=m.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:n,minMatchCharLength:o,findAllMatches:i,ignoreLocation:r,location:a,threshold:l,distance:c},this.pattern=s?e:e.toLowerCase(),this.query=Un(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:o}=this.options;e=o?e:e.toLowerCase();let r=0,i=[],a=0;for(let l=0,c=s.length;l<c;l+=1){const d=s[l];i.length=0,r=0;for(let f=0,p=d.length;f<p;f+=1){const v=d[f],{isMatch:y,indices:_,score:M}=v.search(e);if(y){if(r+=1,a+=M,n){const S=v.constructor.type;Yn.has(S)?i=[...i,..._]:i.push(_)}}else{a=0,r=0,i.length=0;break}}if(r){let f={isMatch:!0,score:a/r};return n&&(f.indices=i),f}}return{isMatch:!1,score:1}}}const Pe=[];function Xn(...t){Pe.push(...t)}function Oe(t,e){for(let s=0,n=Pe.length;s<n;s+=1){let o=Pe[s];if(o.condition(t,e))return new o(t,e)}return new wt(t,e)}const ye={AND:"$and",OR:"$or"},De={PATH:"$path",PATTERN:"$val"},Fe=t=>!!(t[ye.AND]||t[ye.OR]),Jn=t=>!!t[De.PATH],qn=t=>!J(t)&>(t)&&!Fe(t),tt=t=>({[ye.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function St(t,e,{auto:s=!0}={}){const n=o=>{let r=Object.keys(o);const i=Jn(o);if(!i&&r.length>1&&!Fe(o))return n(tt(o));if(qn(o)){const l=i?o[De.PATH]:r[0],c=i?o[De.PATTERN]:o[l];if(!Q(c))throw new Error(bn(l));const d={keyId:Le(l),pattern:c};return s&&(d.searcher=Oe(c,e)),d}let a={children:[],operator:r[0]};return r.forEach(l=>{const c=o[l];J(c)&&c.forEach(d=>{a.children.push(n(d))})}),a};return Fe(t)||(t=tt(t)),n(t)}function Zn(t,{ignoreFieldNorm:e=m.ignoreFieldNorm}){t.forEach(s=>{let n=1;s.matches.forEach(({key:o,norm:r,score:i})=>{const a=o?o.weight:null;n*=Math.pow(i===0&&a?Number.EPSILON:i,(a||1)*(e?1:r))}),s.score=n})}function eo(t,e){const s=t.matches;e.matches=[],K(s)&&s.forEach(n=>{if(!K(n.indices)||!n.indices.length)return;const{indices:o,value:r}=n;let i={indices:o,value:r};n.key&&(i.key=n.key.src),n.idx>-1&&(i.refIndex=n.idx),e.matches.push(i)})}function to(t,e){e.score=t.score}function so(t,e,{includeMatches:s=m.includeMatches,includeScore:n=m.includeScore}={}){const o=[];return s&&o.push(eo),n&&o.push(to),t.map(r=>{const{idx:i}=r,a={item:e[i],refIndex:i};return o.length&&o.forEach(l=>{l(r,a)}),a})}class oe{constructor(e,s={},n){this.options={...m,...s},this.options.useExtendedSearch,this._keyStore=new Cn(this.options.keys),this.setCollection(e,n)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof Ge))throw new Error(xn);this._myIndex=s||kt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){K(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let n=0,o=this._docs.length;n<o;n+=1){const r=this._docs[n];e(r,n)&&(this.removeAt(n),n-=1,o-=1,s.push(r))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:n,includeScore:o,shouldSort:r,sortFn:i,ignoreFieldNorm:a}=this.options;let l=Q(e)?Q(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return Zn(l,{ignoreFieldNorm:a}),r&&l.sort(i),_t(s)&&s>-1&&(l=l.slice(0,s)),so(l,this._docs,{includeMatches:n,includeScore:o})}_searchStringList(e){const s=Oe(e,this.options),{records:n}=this._myIndex,o=[];return n.forEach(({v:r,i,n:a})=>{if(!K(r))return;const{isMatch:l,score:c,indices:d}=s.searchIn(r);l&&o.push({item:r,idx:i,matches:[{score:c,value:r,norm:a,indices:d}]})}),o}_searchLogical(e){const s=St(e,this.options),n=(a,l,c)=>{if(!a.children){const{keyId:f,searcher:p}=a,v=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(l,f),searcher:p});return v&&v.length?[{idx:c,item:l,matches:v}]:[]}const d=[];for(let f=0,p=a.children.length;f<p;f+=1){const v=a.children[f],y=n(v,l,c);if(y.length)d.push(...y);else if(a.operator===ye.AND)return[]}return d},o=this._myIndex.records,r={},i=[];return o.forEach(({$:a,i:l})=>{if(K(a)){let c=n(s,a,l);c.length&&(r[l]||(r[l]={idx:l,item:a,matches:[]},i.push(r[l])),c.forEach(({matches:d})=>{r[l].matches.push(...d)}))}}),i}_searchObjectList(e){const s=Oe(e,this.options),{keys:n,records:o}=this._myIndex,r=[];return o.forEach(({$:i,i:a})=>{if(!K(i))return;let l=[];n.forEach((c,d)=>{l.push(...this._findMatches({key:c,value:i[d],searcher:s}))}),l.length&&r.push({idx:a,item:i,matches:l})}),r}_findMatches({key:e,value:s,searcher:n}){if(!K(s))return[];let o=[];if(J(s))s.forEach(({v:r,i,n:a})=>{if(!K(r))return;const{isMatch:l,score:c,indices:d}=n.searchIn(r);l&&o.push({score:c,key:e,value:r,idx:i,norm:a,indices:d})});else{const{v:r,n:i}=s,{isMatch:a,score:l,indices:c}=n.searchIn(r);a&&o.push({score:l,key:e,value:r,norm:i,indices:c})}return o}}oe.version="7.0.0";oe.createIndex=kt;oe.parseIndex=Pn;oe.config=m;oe.parseQuery=St;Xn(Qn);const no={key:0},oo={key:1},ro={key:2},io={key:3},ao={key:4},lo=Y({__name:"title-renderer",props:{no:{type:[Number,String],required:!1}},setup(t){const e=t,{$page:s}=Ns(),n=N(()=>+(e.no??s.value));return(o,r)=>(h(),k("div",null,[n.value===1?(h(),k("p",no,"Nix for genetics")):n.value===2?(h(),k("p",oo,"Next-generation sequencing")):n.value===3?(h(),k("p",ro,"Bioinformatics pipeline")):n.value===4?(h(),k("p",io,"Nix : excellent community")):n.value===5?(h(),k("p",ao,"Thank you !")):b("v-if",!0)]))}}),co=U(lo,[["__file","/@slidev/title-renderer.md"]]),uo={class:"bg-main transform",shadow:"~",p:"x-4 y-2",border:"~ transparent rounded dark:main"},ho=["value","disabled"],fo=["border","onClick"],po={"w-4":"","text-right":"",op50:"","text-sm":""},vo=Y({__name:"Goto",setup(t){const e=D(),s=D(),n=D(),o=D(),r=D(""),i=D(0),{go:a,slides:l}=se();function c(g){return g!=null}const d=N(()=>new oe(l.value.map(g=>{var P;return(P=g.meta)==null?void 0:P.slide}).filter(c),{keys:["no","title"],threshold:.3,shouldSort:!0,minMatchCharLength:1})),f=N(()=>r.value.startsWith("/")?r.value.substring(1):r.value),p=N(()=>d.value.search(f.value).map(g=>g.item)),v=N(()=>!!p.value.length);function y(){if(v.value){const g=p.value.at(i.value||0);g&&a(g.no)}_()}function _(){r.value="",Z.value=!1}function M(g){g.preventDefault(),i.value++,i.value>=p.value.length&&(i.value=0),I()}function S(g){g.preventDefault(),i.value--,i.value<=-2&&(i.value=p.value.length-1),I()}function I(){var P;const g=(P=o.value)==null?void 0:P[i.value];g&&n.value&&(g.offsetTop+g.offsetHeight>n.value.offsetHeight+n.value.scrollTop?n.value.scrollTo({behavior:"smooth",top:g.offsetTop+g.offsetHeight-n.value.offsetHeight+1}):g.offsetTop<n.value.scrollTop&&n.value.scrollTo({behavior:"smooth",top:g.offsetTop}))}function w(g){i.value=0,r.value=g.target.value}function T(g){a(g),_()}return me(Z,async g=>{var P;g?(r.value="",i.value=0,setTimeout(()=>{var E;return(E=s.value)==null?void 0:E.focus()},0)):(P=s.value)==null||P.blur()}),me(ae,()=>{var g;(g=e.value)!=null&&g.contains(ae.value)||_()}),(g,P)=>(h(),k("div",{id:"slidev-goto-dialog",ref_key:"container",ref:e,class:F(["fixed right-5 transition-all",u(Z)?"top-5":"-top-20"]),"w-90":"","max-w-90":"","min-w-90":""},[A("div",uo,[A("input",{id:"slidev-goto-input",ref_key:"input",ref:s,value:r.value,type:"text",disabled:!u(Z),class:F(["outline-none bg-transparent",{"text-red-400":!v.value&&r.value}]),placeholder:"Goto...",onKeydown:[he(y,["enter"]),he(_,["escape"]),he(M,["down"]),he(S,["up"])],onInput:w},null,42,ho)]),p.value.length>0?(h(),k("ul",{key:0,ref_key:"list",ref:n,class:"autocomplete-list",shadow:"~",border:"~ transparent rounded dark:main"},[(h(!0),k(H,null,ke(p.value,(E,$)=>(h(),k("li",{ref_for:!0,ref_key:"items",ref:o,key:E.id,role:"button",tabindex:"0",p:"x-4 y-2","cursor-pointer":"",hover:"op100",flex:"~ gap-2","w-90":"","items-center":"",border:$===0?"":"t main",class:F(i.value===$?"bg-active op100":"op80"),onClick:Qt(j=>T(E.no),["stop","prevent"])},[A("div",po,X(E.no),1),x(u(co),{no:E.no},null,8,["no"])],10,fo))),128))],512)):b("v-if",!0)],2))}}),To=U(vo,[["__scopeId","data-v-f5ee02a7"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Goto.vue"]]);function _o(){const t=Xt(),e=D(!1);let s,n;const o=typeof document<"u"&&"startViewTransition"in document;return t.beforeResolve((r,i)=>{var _,M,S,I;const a=(_=Ue(i.params.no))==null?void 0:_.meta,l=(M=Ue(r.params.no))==null?void 0:M.meta,c=(S=a==null?void 0:a.slide)==null?void 0:S.no,d=(I=l==null?void 0:l.slide)==null?void 0:I.no;if((c!=null&&d!=null&&((c<d?a==null?void 0:a.transition:l==null?void 0:l.transition)??ie.transition))!=="view-transition"){e.value=!1;return}if(!o){e.value=!1,console.warn("View transition is not supported in your browser, fallback to normal transition.");return}e.value=!0;const p=new Promise((w,T)=>{s=w,n=T});let v;const y=new Promise(w=>v=w);return setTimeout(()=>{document.startViewTransition(()=>(v(),p))},50),y}),o&&t.afterEach(()=>{s==null||s(),n==null||n()}),e}const go={key:0,class:"absolute top-0 left-0 right-0 bottom-0 pointer-events-none text-xl"},mo=Y({__name:"PresenterMouse",setup(t){return(e,s)=>{const n=pt;return u(be).cursor?(h(),k("div",go,[x(n,{class:"absolute stroke-white dark:stroke-black",style:ce({left:`${u(be).cursor.x}%`,top:`${u(be).cursor.y}%`,strokeWidth:16})},null,8,["style"])])):b("v-if",!0)}}}),yo=U(mo,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PresenterMouse.vue"]]),ko=t=>(Zt("data-v-afb4231e"),t=t(),es(),t),wo=ko(()=>A("div",{id:"twoslash-container"},null,-1)),xo=Y({__name:"SlidesShow",props:{renderContext:{type:String,required:!0}},setup(t){const{currentSlideRoute:e,currentTransition:s,getPrimaryClicks:n,isPresenter:o,nextRoute:r,slides:i,isPrintMode:a,isPrintWithClicks:l}=se();me(e,()=>{var v,y;(v=e.value)!=null&&v.meta&&e.value.meta.preload!==!1&&(e.value.meta.__preloaded=!0),(y=r.value)!=null&&y.meta&&r.value.meta.preload!==!1&&(r.value.meta.__preloaded=!0)},{immediate:!0});const c=_o(),d=Ie();it(()=>import("./DrawingLayer-DThRU5_g.js"),__vite__mapDeps([12,2,10,6,3,4,7,5,8,9])).then(v=>d.value=v.default);const f=N(()=>i.value.filter(v=>{var y;return((y=v.meta)==null?void 0:y.__preloaded)||v===e.value}));function p(){Ye.value=!0,Rs()}return(v,y)=>(h(),k(H,null,[b(" Global Bottom "),x(u(ds)),b(" Slides "),(h(),C(nt(u(c)?"div":qt),Jt(u(Ye)?{}:u(s),{id:"slideshow",tag:"div",onAfterLeave:p}),{default:R(()=>[(h(!0),k(H,null,ke(f.value,_=>ot((h(),k("div",{key:_.no},[x(ht,{is:_.component,"clicks-context":u(a)&&!u(l)?u(at)(_,u(lt)):u(n)(_),class:F([u(ft)(_),"overflow-hidden"]),route:_,"render-context":v.renderContext},null,8,["is","clicks-context","class","route","render-context"])])),[[rt,_===u(e)]])),128))]),_:1},16)),wo,b(" Global Top "),x(u(hs)),d.value?(h(),C(u(d),{key:0})):b("v-if",!0),u(o)?b("v-if",!0):(h(),C(yo,{key:1}))],64))}}),Po=U(xo,[["__scopeId","data-v-afb4231e"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/SlidesShow.vue"]]);export{To as G,z as I,Ao as N,Lo as Q,Bs as S,pe as V,Po as a,Ro as r,No as u};
import{d as i,o as r,c as o,k as l,a0 as p,x as t,A as s,v as c}from"../modules/vue-O-XuQLLR.js";import{a as _,s as d,b as f}from"../index-DENYuTHS.js";const u=i({__name:"PrintStyle",setup(m){function a(n,{slots:e}){if(e.default)return c("style",e.default())}return(n,e)=>(r(),o(a,null,{default:l(()=>[p(" @page { size: "+t(s(_))+"px "+t(s(d))+"px; margin: 0px; } ",1)]),_:1}))}}),y=f(u,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/PrintStyle.vue"]]);export{y as P};
import{d as N,y as q,t as M,D as H,n as B,_ as T,b as m,i as p,e as L,x as b,o as d}from"../modules/vue-O-XuQLLR.js";import{C as w,b as $}from"../index-DENYuTHS.js";const I=["innerHTML"],P=["textContent"],K=["textContent"],k="slidev-note-fade",r="slidev-note-click-mark",R=N({__name:"NoteDisplay",props:{class:{type:String,required:!1},noteHtml:{type:String,required:!1},note:{type:String,required:!1},placeholder:{type:String,required:!1},clicksContext:{type:null,required:!1},autoScroll:{type:Boolean,required:!1}},emits:["markerDblclick","markerClick"],setup(A,{emit:D}){const l=A,v=D,h=q(()=>{var o,n;return((o=l.clicksContext)==null?void 0:o.current)!=null&&((n=l.noteHtml)==null?void 0:n.includes("slidev-note-click-mark"))}),a=M(null);function y(){var S;if(!a.value||!h.value)return;const o=Array.from(a.value.querySelectorAll(`.${r}`)),n=+(((S=l.clicksContext)==null?void 0:S.current)??w),c=n<0||n>=w,g=new Set;function C(e){!e||e===a.value||(g.add(e),e.parentElement&&C(e.parentElement))}const _=new Map;for(const e of o){const t=e.parentElement,s=Number(e.dataset.clicks);_.set(s,e),C(t),Array.from(t.childNodes).forEach(f=>{if(f.nodeType===3){const x=document.createElement("span");x.textContent=f.textContent,t.insertBefore(x,f),f.remove()}})}const E=Array.from(a.value.querySelectorAll("*"));let i=0;const u=new Map;for(const e of E)u.has(i)||u.set(i,[]),u.get(i).push(e),e.classList.contains(r)&&(i=Number(e.dataset.clicks)||i+1);for(const[e,t]of u)c?t.forEach(s=>s.classList.remove(k)):t.forEach(s=>s.classList.toggle(k,g.has(s)?!1:e!==n));for(const[e,t]of _)t.classList.remove(k),t.classList.toggle(`${r}-past`,c?!1:e<n),t.classList.toggle(`${r}-active`,c?!1:e===n),t.classList.toggle(`${r}-next`,c?!1:e===n+1),t.classList.toggle(`${r}-future`,c?!1:e>n+1),t.ondblclick=s=>{v("markerDblclick",s,e),!s.defaultPrevented&&(l.clicksContext.current=e,s.stopPropagation(),s.stopImmediatePropagation())},t.onclick=s=>{v("markerClick",s,e)},l.autoScroll&&e===n&&t.scrollIntoView({block:"center",behavior:"smooth"})}return H(()=>{var o;return[l.noteHtml,(o=l.clicksContext)==null?void 0:o.current]},()=>{B(()=>{y()})},{immediate:!0}),T(()=>{y()}),(o,n)=>o.noteHtml?(d(),m("div",{key:0,ref_key:"noteDisplay",ref:a,class:p(["prose overflow-auto outline-none slidev-note",[l.class,h.value?"slidev-note-with-clicks":""]]),innerHTML:o.noteHtml},null,10,I)):o.note?(d(),m("div",{key:1,class:p(["prose overflow-auto outline-none slidev-note",l.class])},[L("p",{textContent:b(o.note)},null,8,P)],2)):(d(),m("div",{key:2,class:p(["prose overflow-auto outline-none opacity-50 italic select-none slidev-note",l.class])},[L("p",{textContent:b(l.placeholder||"No notes.")},null,8,K)],2))}}),F=$(R,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/NoteDisplay.vue"]]);export{F as N};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["assets/c4Diagram-e2511a7a-D4PtnF99.js","assets/svgDrawCommon-99ae2c94-BzrMl0LX.js","assets/modules/vue-O-XuQLLR.js","assets/index-DENYuTHS.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/index-BAThGyva.css","assets/modules/file-saver-EUMWMpoS.js","assets/flowDiagram-e44a2353-oPb14xqg.js","assets/flowDb-147da10a-Cx_grzty.js","assets/graph-af3d5df6-B9Rrt_D8.js","assets/layout-6685625a-TirZJcn7.js","assets/styles-c171666c-DFB0BSW8.js","assets/index-c8395ba2-BeB0hvAS.js","assets/clone-d2e37f8c-kF1Uud7q.js","assets/edges-1e1ebc73-BF9aEHVZ.js","assets/createText-f6615236-DY9JQ1lr.js","assets/line-65d70945-Bv9b7vLo.js","assets/array-b7dcf730-BKyUJesY.js","assets/path-39bad7e2-CbwjOpE9.js","assets/channel-d3ac35ac-BF6w4Boq.js","assets/flowDiagram-v2-a8396bb5-B6uvWRZi.js","assets/erDiagram-582bd92f-Bdp29OHf.js","assets/gitGraphDiagram-d5d647e9-CzK63b8s.js","assets/ganttDiagram-05e48839-BsDG_2Rh.js","assets/linear-d94cf28d-BOPJ1JvI.js","assets/init-cc95ec8e-Gi6I4Gst.js","assets/infoDiagram-00deb277-CwQyZWUw.js","assets/pieDiagram-35c7eafc-Dbp_bXX5.js","assets/arc-5aa99581-BSv9xTON.js","assets/ordinal-475e0c0c-BmOJQ37o.js","assets/quadrantDiagram-9c93c009-sY1BZ1aG.js","assets/xychartDiagram-7b46ecfd-TpNv_eTg.js","assets/requirementDiagram-e882bd67-Cd9l96Nf.js","assets/sequenceDiagram-1767341c-Ckf8lhi2.js","assets/classDiagram-3275847a-CoUbQdy4.js","assets/styles-d48462a7-C8TUyLNy.js","assets/classDiagram-v2-2ed0a7d3-CU0N-Hcd.js","assets/stateDiagram-d2e6f24f-oVYdlYR9.js","assets/styles-15409a09-FaFI1JLV.js","assets/stateDiagram-v2-21d485ae-wuKVlWkf.js","assets/journeyDiagram-a5efd2e1-BV9IvVjZ.js","assets/flowchart-elk-definition-1a3aaf5d-CrpMlA3y.js","assets/timeline-definition-f8c5dfc0-BaOfPiRR.js","assets/mindmap-definition-74120bdd-DdId7Jzm.js","assets/sankeyDiagram-f5d051b7-CEiOBqOk.js","assets/Tableau10-31042135-CvOaoHrI.js","assets/blockDiagram-8beecd1f-CgCJKU_s.js"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{d as Us,t as Xe,y as Bc,C as Ii,o as en,b as Ys,D as Ac,x as Lc,c as Fc,I as Ec}from"../modules/vue-O-XuQLLR.js";import{_ as Z,H as Bo,I as Oc,b as Gs,q as Mc}from"../index-DENYuTHS.js";import{g as $c}from"../modules/file-saver-EUMWMpoS.js";function Ic(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var n=r.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(u){var f,h;return(h=(f=u.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&h!==void 0?h:0})):a},[]);if(n.length){var o=new RegExp(`
[ ]{`+Math.min.apply(Math,n)+"}","g");r=r.map(function(a){return a.replace(o,`
`)})}r[0]=r[0].replace(/^\r?\n/,"");var s=r[0];return e.forEach(function(a,l){var c=s.match(/(?:^|\n)( *)$/),u=c?c[1]:"",f=a;typeof a=="string"&&a.includes(`
`)&&(f=String(a).split(`
`).map(function(h,d){return d===0?h:""+u+h}).join(`
`)),s+=f+r[l+1]}),s}var Dc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Vs={exports:{}};(function(t,e){(function(i,r){t.exports=r()})(Dc,function(){var i=1e3,r=6e4,n=36e5,o="millisecond",s="second",a="minute",l="hour",c="day",u="week",f="month",h="quarter",d="year",_="date",T="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(q){var B=["th","st","nd","rd"],x=q%100;return"["+q+(B[(x-20)%10]||B[x]||B[0])+"]"}},E=function(q,B,x){var M=String(q);return!M||M.length>=B?q:""+Array(B+1-M.length).join(x)+q},L={s:E,z:function(q){var B=-q.utcOffset(),x=Math.abs(B),M=Math.floor(x/60),k=x%60;return(B<=0?"+":"-")+E(M,2,"0")+":"+E(k,2,"0")},m:function q(B,x){if(B.date()<x.date())return-q(x,B);var M=12*(x.year()-B.year())+(x.month()-B.month()),k=B.clone().add(M,f),S=x-k<0,H=B.clone().add(M+(S?-1:1),f);return+(-(M+(x-k)/(S?k-H:H-k))||0)},a:function(q){return q<0?Math.ceil(q)||0:Math.floor(q)},p:function(q){return{M:f,y:d,w:u,d:c,D:_,h:l,m:a,s,ms:o,Q:h}[q]||String(q||"").toLowerCase().replace(/s$/,"")},u:function(q){return q===void 0}},R="en",m={};m[R]=y;var b="$isDayjsObject",O=function(q){return q instanceof St||!(!q||!q[b])},Zt=function q(B,x,M){var k;if(!B)return R;if(typeof B=="string"){var S=B.toLowerCase();m[S]&&(k=S),x&&(m[S]=x,k=S);var H=B.split("-");if(!k&&H.length>1)return q(H[0])}else{var W=B.name;m[W]=B,k=W}return!M&&k&&(R=k),k||!M&&R},G=function(q,B){if(O(q))return q.clone();var x=typeof B=="object"?B:{};return x.date=q,x.args=arguments,new St(x)},Y=L;Y.l=Zt,Y.i=O,Y.w=function(q,B){return G(q,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var St=function(){function q(x){this.$L=Zt(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[b]=!0}var B=q.prototype;return B.parse=function(x){this.$d=function(M){var k=M.date,S=M.utc;if(k===null)return new Date(NaN);if(Y.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var H=k.match(w);if(H){var W=H[2]-1||0,K=(H[7]||"0").substring(0,3);return S?new Date(Date.UTC(H[1],W,H[3]||1,H[4]||0,H[5]||0,H[6]||0,K)):new Date(H[1],W,H[3]||1,H[4]||0,H[5]||0,H[6]||0,K)}}return new Date(k)}(x),this.init()},B.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},B.$utils=function(){return Y},B.isValid=function(){return this.$d.toString()!==T},B.isSame=function(x,M){var k=G(x);return this.startOf(M)<=k&&k<=this.endOf(M)},B.isAfter=function(x,M){return G(x)<this.startOf(M)},B.isBefore=function(x,M){return this.endOf(M)<G(x)},B.$g=function(x,M,k){return Y.u(x)?this[M]:this.set(k,x)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function(x,M){var k=this,S=!!Y.u(M)||M,H=Y.p(x),W=function(Ot,Q){var nt=Y.w(k.$u?Date.UTC(k.$y,Q,Ot):new Date(k.$y,Q,Ot),k);return S?nt:nt.endOf(c)},K=function(Ot,Q){return Y.w(k.toDate()[Ot].apply(k.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(Q)),k)},j=this.$W,J=this.$M,rt=this.$D,Pt="set"+(this.$u?"UTC":"");switch(H){case d:return S?W(1,0):W(31,11);case f:return S?W(1,J):W(0,J+1);case u:var wt=this.$locale().weekStart||0,Qt=(j<wt?j+7:j)-wt;return W(S?rt-Qt:rt+(6-Qt),J);case c:case _:return K(Pt+"Hours",0);case l:return K(Pt+"Minutes",1);case a:return K(Pt+"Seconds",2);case s:return K(Pt+"Milliseconds",3);default:return this.clone()}},B.endOf=function(x){return this.startOf(x,!1)},B.$set=function(x,M){var k,S=Y.p(x),H="set"+(this.$u?"UTC":""),W=(k={},k[c]=H+"Date",k[_]=H+"Date",k[f]=H+"Month",k[d]=H+"FullYear",k[l]=H+"Hours",k[a]=H+"Minutes",k[s]=H+"Seconds",k[o]=H+"Milliseconds",k)[S],K=S===c?this.$D+(M-this.$W):M;if(S===f||S===d){var j=this.clone().set(_,1);j.$d[W](K),j.init(),this.$d=j.set(_,Math.min(this.$D,j.daysInMonth())).$d}else W&&this.$d[W](K);return this.init(),this},B.set=function(x,M){return this.clone().$set(x,M)},B.get=function(x){return this[Y.p(x)]()},B.add=function(x,M){var k,S=this;x=Number(x);var H=Y.p(M),W=function(J){var rt=G(S);return Y.w(rt.date(rt.date()+Math.round(J*x)),S)};if(H===f)return this.set(f,this.$M+x);if(H===d)return this.set(d,this.$y+x);if(H===c)return W(1);if(H===u)return W(7);var K=(k={},k[a]=r,k[l]=n,k[s]=i,k)[H]||1,j=this.$d.getTime()+x*K;return Y.w(j,this)},B.subtract=function(x,M){return this.add(-1*x,M)},B.format=function(x){var M=this,k=this.$locale();if(!this.isValid())return k.invalidDate||T;var S=x||"YYYY-MM-DDTHH:mm:ssZ",H=Y.z(this),W=this.$H,K=this.$m,j=this.$M,J=k.weekdays,rt=k.months,Pt=k.meridiem,wt=function(Q,nt,qt,te){return Q&&(Q[nt]||Q(M,S))||qt[nt].slice(0,te)},Qt=function(Q){return Y.s(W%12||12,Q,"0")},Ot=Pt||function(Q,nt,qt){var te=Q<12?"AM":"PM";return qt?te.toLowerCase():te};return S.replace(A,function(Q,nt){return nt||function(qt){switch(qt){case"YY":return String(M.$y).slice(-2);case"YYYY":return Y.s(M.$y,4,"0");case"M":return j+1;case"MM":return Y.s(j+1,2,"0");case"MMM":return wt(k.monthsShort,j,rt,3);case"MMMM":return wt(rt,j);case"D":return M.$D;case"DD":return Y.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return wt(k.weekdaysMin,M.$W,J,2);case"ddd":return wt(k.weekdaysShort,M.$W,J,3);case"dddd":return J[M.$W];case"H":return String(W);case"HH":return Y.s(W,2,"0");case"h":return Qt(1);case"hh":return Qt(2);case"a":return Ot(W,K,!0);case"A":return Ot(W,K,!1);case"m":return String(K);case"mm":return Y.s(K,2,"0");case"s":return String(M.$s);case"ss":return Y.s(M.$s,2,"0");case"SSS":return Y.s(M.$ms,3,"0");case"Z":return H}return null}(Q)||H.replace(":","")})},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function(x,M,k){var S,H=this,W=Y.p(M),K=G(x),j=(K.utcOffset()-this.utcOffset())*r,J=this-K,rt=function(){return Y.m(H,K)};switch(W){case d:S=rt()/12;break;case f:S=rt();break;case h:S=rt()/3;break;case u:S=(J-j)/6048e5;break;case c:S=(J-j)/864e5;break;case l:S=J/n;break;case a:S=J/r;break;case s:S=J/i;break;default:S=J}return k?S:Y.a(S)},B.daysInMonth=function(){return this.endOf(f).$D},B.$locale=function(){return m[this.$L]},B.locale=function(x,M){if(!x)return this.$L;var k=this.clone(),S=Zt(x,M,!0);return S&&(k.$L=S),k},B.clone=function(){return Y.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},q}(),Jt=St.prototype;return G.prototype=Jt,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",c],["$M",f],["$y",d],["$D",_]].forEach(function(q){Jt[q[1]]=function(B){return this.$g(B,q[0],q[1])}}),G.extend=function(q,B){return q.$i||(q(B,St,G),q.$i=!0),G},G.locale=Zt,G.isDayjs=O,G.unix=function(q){return G(1e3*q)},G.en=m[R],G.Ls=m,G.p={},G})})(Vs);var Rc=Vs.exports;const Pc=Nc(Rc),Ht={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},N={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},Sn=function(t="fatal"){let e=Ht.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Ht&&(e=Ht[t])):typeof t=="number"&&(e=t),N.trace=()=>{},N.debug=()=>{},N.info=()=>{},N.warn=()=>{},N.error=()=>{},N.fatal=()=>{},e<=Ht.fatal&&(N.fatal=console.error?console.error.bind(console,Tt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Tt("FATAL"))),e<=Ht.error&&(N.error=console.error?console.error.bind(console,Tt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Tt("ERROR"))),e<=Ht.warn&&(N.warn=console.warn?console.warn.bind(console,Tt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Tt("WARN"))),e<=Ht.info&&(N.info=console.info?console.info.bind(console,Tt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Tt("INFO"))),e<=Ht.debug&&(N.debug=console.debug?console.debug.bind(console,Tt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Tt("DEBUG"))),e<=Ht.trace&&(N.trace=console.debug?console.debug.bind(console,Tt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Tt("TRACE")))},Tt=t=>`%c${Pc().format("ss.SSS")} : ${t} : `;var Xs={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeUrl=t.BLANK_URL=void 0;var e=/^([^\w]*)(javascript|data|vbscript)/im,i=/&#(\w+)(^\w|;)?/g,r=/&(newline|tab);/gi,n=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,o=/^.+(:|:)/gim,s=[".","/"];t.BLANK_URL="about:blank";function a(u){return s.indexOf(u[0])>-1}function l(u){var f=u.replace(n,"");return f.replace(i,function(h,d){return String.fromCharCode(d)})}function c(u){if(!u)return t.BLANK_URL;var f=l(u).replace(r,"").replace(n,"").trim();if(!f)return t.BLANK_URL;if(a(f))return f;var h=f.match(o);if(!h)return f;var d=h[0];return e.test(d)?t.BLANK_URL:f}t.sanitizeUrl=c})(Xs);var qc={value:()=>{}};function Ks(){for(var t=0,e=arguments.length,i={},r;t<e;++t){if(!(r=arguments[t]+"")||r in i||/[\s.]/.test(r))throw new Error("illegal type: "+r);i[r]=[]}return new Di(i)}function Di(t){this._=t}function zc(t,e){return t.trim().split(/^|\s+/).map(function(i){var r="",n=i.indexOf(".");if(n>=0&&(r=i.slice(n+1),i=i.slice(0,n)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:r}})}Di.prototype=Ks.prototype={constructor:Di,on:function(t,e){var i=this._,r=zc(t+"",i),n,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((n=(t=r[o]).type)&&(n=Wc(i[n],t.name)))return n;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(n=(t=r[o]).type)i[n]=Ao(i[n],t.name,e);else if(e==null)for(n in i)i[n]=Ao(i[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new Di(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var i=new Array(n),r=0,n,o;r<n;++r)i[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,n=o.length;r<n;++r)o[r].value.apply(e,i)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],n=0,o=r.length;n<o;++n)r[n].value.apply(e,i)}};function Wc(t,e){for(var i=0,r=t.length,n;i<r;++i)if((n=t[i]).name===e)return n.value}function Ao(t,e,i){for(var r=0,n=t.length;r<n;++r)if(t[r].name===e){t[r]=qc,t=t.slice(0,r).concat(t.slice(r+1));break}return i!=null&&t.push({name:e,value:i}),t}var rn="http://www.w3.org/1999/xhtml";const Lo={svg:"http://www.w3.org/2000/svg",xhtml:rn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function gr(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),Lo.hasOwnProperty(e)?{space:Lo[e],local:t}:t}function Hc(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===rn&&e.documentElement.namespaceURI===rn?e.createElement(t):e.createElementNS(i,t)}}function jc(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Zs(t){var e=gr(t);return(e.local?jc:Hc)(e)}function Uc(){}function wn(t){return t==null?Uc:function(){return this.querySelector(t)}}function Yc(t){typeof t!="function"&&(t=wn(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=new Array(s),l,c,u=0;u<s;++u)(l=o[u])&&(c=t.call(l,l.__data__,u,o))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new bt(r,this._parents)}function Gc(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Vc(){return[]}function Js(t){return t==null?Vc:function(){return this.querySelectorAll(t)}}function Xc(t){return function(){return Gc(t.apply(this,arguments))}}function Kc(t){typeof t=="function"?t=Xc(t):t=Js(t);for(var e=this._groups,i=e.length,r=[],n=[],o=0;o<i;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(r.push(t.call(l,l.__data__,c,s)),n.push(l));return new bt(r,n)}function Qs(t){return function(){return this.matches(t)}}function ta(t){return function(e){return e.matches(t)}}var Zc=Array.prototype.find;function Jc(t){return function(){return Zc.call(this.children,t)}}function Qc(){return this.firstElementChild}function th(t){return this.select(t==null?Qc:Jc(typeof t=="function"?t:ta(t)))}var eh=Array.prototype.filter;function ih(){return Array.from(this.children)}function rh(t){return function(){return eh.call(this.children,t)}}function nh(t){return this.selectAll(t==null?ih:rh(typeof t=="function"?t:ta(t)))}function oh(t){typeof t!="function"&&(t=Qs(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new bt(r,this._parents)}function ea(t){return new Array(t.length)}function sh(){return new bt(this._enter||this._groups.map(ea),this._parents)}function Gi(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Gi.prototype={constructor:Gi,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function ah(t){return function(){return t}}function lh(t,e,i,r,n,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):i[s]=new Gi(t,o[s]);for(;s<l;++s)(a=e[s])&&(n[s]=a)}function ch(t,e,i,r,n,o,s){var a,l,c=new Map,u=e.length,f=o.length,h=new Array(u),d;for(a=0;a<u;++a)(l=e[a])&&(h[a]=d=s.call(l,l.__data__,a,e)+"",c.has(d)?n[a]=l:c.set(d,l));for(a=0;a<f;++a)d=s.call(t,o[a],a,o)+"",(l=c.get(d))?(r[a]=l,l.__data__=o[a],c.delete(d)):i[a]=new Gi(t,o[a]);for(a=0;a<u;++a)(l=e[a])&&c.get(h[a])===l&&(n[a]=l)}function hh(t){return t.__data__}function uh(t,e){if(!arguments.length)return Array.from(this,hh);var i=e?ch:lh,r=this._parents,n=this._groups;typeof t!="function"&&(t=ah(t));for(var o=n.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var u=r[c],f=n[c],h=f.length,d=fh(t.call(u,u&&u.__data__,c,r)),_=d.length,T=a[c]=new Array(_),w=s[c]=new Array(_),A=l[c]=new Array(h);i(u,f,T,w,A,d,e);for(var y=0,E=0,L,R;y<_;++y)if(L=T[y]){for(y>=E&&(E=y+1);!(R=w[E])&&++E<_;);L._next=R||null}}return s=new bt(s,r),s._enter=a,s._exit=l,s}function fh(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function dh(){return new bt(this._exit||this._groups.map(ea),this._parents)}function ph(t,e,i){var r=this.enter(),n=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),i==null?o.remove():i(o),r&&n?r.merge(n).order():n}function gh(t){for(var e=t.selection?t.selection():t,i=this._groups,r=e._groups,n=i.length,o=r.length,s=Math.min(n,o),a=new Array(n),l=0;l<s;++l)for(var c=i[l],u=r[l],f=c.length,h=a[l]=new Array(f),d,_=0;_<f;++_)(d=c[_]||u[_])&&(h[_]=d);for(;l<n;++l)a[l]=i[l];return new bt(a,this._parents)}function mh(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var r=t[e],n=r.length-1,o=r[n],s;--n>=0;)(s=r[n])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function _h(t){t||(t=yh);function e(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}for(var i=this._groups,r=i.length,n=new Array(r),o=0;o<r;++o){for(var s=i[o],a=s.length,l=n[o]=new Array(a),c,u=0;u<a;++u)(c=s[u])&&(l[u]=c);l.sort(e)}return new bt(n,this._parents).order()}function yh(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Ch(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function bh(){return Array.from(this)}function xh(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,o=r.length;n<o;++n){var s=r[n];if(s)return s}return null}function Th(){let t=0;for(const e of this)++t;return t}function vh(){return!this.node()}function kh(t){for(var e=this._groups,i=0,r=e.length;i<r;++i)for(var n=e[i],o=0,s=n.length,a;o<s;++o)(a=n[o])&&t.call(a,a.__data__,o,n);return this}function Sh(t){return function(){this.removeAttribute(t)}}function wh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Bh(t,e){return function(){this.setAttribute(t,e)}}function Ah(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Lh(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function Fh(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function Eh(t,e){var i=gr(t);if(arguments.length<2){var r=this.node();return i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)}return this.each((e==null?i.local?wh:Sh:typeof e=="function"?i.local?Fh:Lh:i.local?Ah:Bh)(i,e))}function ia(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Oh(t){return function(){this.style.removeProperty(t)}}function Mh(t,e,i){return function(){this.style.setProperty(t,e,i)}}function $h(t,e,i){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,i)}}function Ih(t,e,i){return arguments.length>1?this.each((e==null?Oh:typeof e=="function"?$h:Mh)(t,e,i??"")):Fe(this.node(),t)}function Fe(t,e){return t.style.getPropertyValue(e)||ia(t).getComputedStyle(t,null).getPropertyValue(e)}function Dh(t){return function(){delete this[t]}}function Nh(t,e){return function(){this[t]=e}}function Rh(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function Ph(t,e){return arguments.length>1?this.each((e==null?Dh:typeof e=="function"?Rh:Nh)(t,e)):this.node()[t]}function ra(t){return t.trim().split(/^|\s+/)}function Bn(t){return t.classList||new na(t)}function na(t){this._node=t,this._names=ra(t.getAttribute("class")||"")}na.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function oa(t,e){for(var i=Bn(t),r=-1,n=e.length;++r<n;)i.add(e[r])}function sa(t,e){for(var i=Bn(t),r=-1,n=e.length;++r<n;)i.remove(e[r])}function qh(t){return function(){oa(this,t)}}function zh(t){return function(){sa(this,t)}}function Wh(t,e){return function(){(e.apply(this,arguments)?oa:sa)(this,t)}}function Hh(t,e){var i=ra(t+"");if(arguments.length<2){for(var r=Bn(this.node()),n=-1,o=i.length;++n<o;)if(!r.contains(i[n]))return!1;return!0}return this.each((typeof e=="function"?Wh:e?qh:zh)(i,e))}function jh(){this.textContent=""}function Uh(t){return function(){this.textContent=t}}function Yh(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Gh(t){return arguments.length?this.each(t==null?jh:(typeof t=="function"?Yh:Uh)(t)):this.node().textContent}function Vh(){this.innerHTML=""}function Xh(t){return function(){this.innerHTML=t}}function Kh(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Zh(t){return arguments.length?this.each(t==null?Vh:(typeof t=="function"?Kh:Xh)(t)):this.node().innerHTML}function Jh(){this.nextSibling&&this.parentNode.appendChild(this)}function Qh(){return this.each(Jh)}function tu(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function eu(){return this.each(tu)}function iu(t){var e=typeof t=="function"?t:Zs(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function ru(){return null}function nu(t,e){var i=typeof t=="function"?t:Zs(t),r=e==null?ru:typeof e=="function"?e:wn(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})}function ou(){var t=this.parentNode;t&&t.removeChild(this)}function su(){return this.each(ou)}function au(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function lu(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function cu(t){return this.select(t?lu:au)}function hu(t){return arguments.length?this.property("__data__",t):this.node().__data__}function uu(t){return function(e){t.call(this,e,this.__data__)}}function fu(t){return t.trim().split(/^|\s+/).map(function(e){var i="",r=e.indexOf(".");return r>=0&&(i=e.slice(r+1),e=e.slice(0,r)),{type:e,name:i}})}function du(t){return function(){var e=this.__on;if(e){for(var i=0,r=-1,n=e.length,o;i<n;++i)o=e[i],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function pu(t,e,i){return function(){var r=this.__on,n,o=uu(e);if(r){for(var s=0,a=r.length;s<a;++s)if((n=r[s]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=o,n.options=i),n.value=e;return}}this.addEventListener(t.type,o,i),n={type:t.type,name:t.name,value:e,listener:o,options:i},r?r.push(n):this.__on=[n]}}function gu(t,e,i){var r=fu(t+""),n,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(n=0,u=a[l];n<o;++n)if((s=r[n]).type===u.type&&s.name===u.name)return u.value}return}for(a=e?pu:du,n=0;n<o;++n)this.each(a(r[n],e,i));return this}function aa(t,e,i){var r=ia(t),n=r.CustomEvent;typeof n=="function"?n=new n(e,i):(n=r.document.createEvent("Event"),i?(n.initEvent(e,i.bubbles,i.cancelable),n.detail=i.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function mu(t,e){return function(){return aa(this,t,e)}}function _u(t,e){return function(){return aa(this,t,e.apply(this,arguments))}}function yu(t,e){return this.each((typeof e=="function"?_u:mu)(t,e))}function*Cu(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,o=r.length,s;n<o;++n)(s=r[n])&&(yield s)}var la=[null];function bt(t,e){this._groups=t,this._parents=e}function gi(){return new bt([[document.documentElement]],la)}function bu(){return this}bt.prototype=gi.prototype={constructor:bt,select:Yc,selectAll:Kc,selectChild:th,selectChildren:nh,filter:oh,data:uh,enter:sh,exit:dh,join:ph,merge:gh,selection:bu,order:mh,sort:_h,call:Ch,nodes:bh,node:xh,size:Th,empty:vh,each:kh,attr:Eh,style:Ih,property:Ph,classed:Hh,text:Gh,html:Zh,raise:Qh,lower:eu,append:iu,insert:nu,remove:su,clone:cu,datum:hu,on:gu,dispatch:yu,[Symbol.iterator]:Cu};function vt(t){return typeof t=="string"?new bt([[document.querySelector(t)]],[document.documentElement]):new bt([[t]],la)}function An(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function ca(t,e){var i=Object.create(t.prototype);for(var r in e)i[r]=e[r];return i}function mi(){}var oi=.7,Vi=1/oi,Le="\\s*([+-]?\\d+)\\s*",si="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Mt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xu=/^#([0-9a-f]{3,8})$/,Tu=new RegExp(`^rgb\\(${Le},${Le},${Le}\\)$`),vu=new RegExp(`^rgb\\(${Mt},${Mt},${Mt}\\)$`),ku=new RegExp(`^rgba\\(${Le},${Le},${Le},${si}\\)$`),Su=new RegExp(`^rgba\\(${Mt},${Mt},${Mt},${si}\\)$`),wu=new RegExp(`^hsl\\(${si},${Mt},${Mt}\\)$`),Bu=new RegExp(`^hsla\\(${si},${Mt},${Mt},${si}\\)$`),Fo={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};An(mi,ai,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Eo,formatHex:Eo,formatHex8:Au,formatHsl:Lu,formatRgb:Oo,toString:Oo});function Eo(){return this.rgb().formatHex()}function Au(){return this.rgb().formatHex8()}function Lu(){return ha(this).formatHsl()}function Oo(){return this.rgb().formatRgb()}function ai(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=xu.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?Mo(e):i===3?new mt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?Si(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?Si(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Tu.exec(t))?new mt(e[1],e[2],e[3],1):(e=vu.exec(t))?new mt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=ku.exec(t))?Si(e[1],e[2],e[3],e[4]):(e=Su.exec(t))?Si(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=wu.exec(t))?Do(e[1],e[2]/100,e[3]/100,1):(e=Bu.exec(t))?Do(e[1],e[2]/100,e[3]/100,e[4]):Fo.hasOwnProperty(t)?Mo(Fo[t]):t==="transparent"?new mt(NaN,NaN,NaN,0):null}function Mo(t){return new mt(t>>16&255,t>>8&255,t&255,1)}function Si(t,e,i,r){return r<=0&&(t=e=i=NaN),new mt(t,e,i,r)}function Fu(t){return t instanceof mi||(t=ai(t)),t?(t=t.rgb(),new mt(t.r,t.g,t.b,t.opacity)):new mt}function nn(t,e,i,r){return arguments.length===1?Fu(t):new mt(t,e,i,r??1)}function mt(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}An(mt,nn,ca(mi,{brighter(t){return t=t==null?Vi:Math.pow(Vi,t),new mt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?oi:Math.pow(oi,t),new mt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new mt(fe(this.r),fe(this.g),fe(this.b),Xi(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:$o,formatHex:$o,formatHex8:Eu,formatRgb:Io,toString:Io}));function $o(){return`#${ue(this.r)}${ue(this.g)}${ue(this.b)}`}function Eu(){return`#${ue(this.r)}${ue(this.g)}${ue(this.b)}${ue((isNaN(this.opacity)?1:this.opacity)*255)}`}function Io(){const t=Xi(this.opacity);return`${t===1?"rgb(":"rgba("}${fe(this.r)}, ${fe(this.g)}, ${fe(this.b)}${t===1?")":`, ${t})`}`}function Xi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function fe(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ue(t){return t=fe(t),(t<16?"0":"")+t.toString(16)}function Do(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new At(t,e,i,r)}function ha(t){if(t instanceof At)return new At(t.h,t.s,t.l,t.opacity);if(t instanceof mi||(t=ai(t)),!t)return new At;if(t instanceof At)return t;t=t.rgb();var e=t.r/255,i=t.g/255,r=t.b/255,n=Math.min(e,i,r),o=Math.max(e,i,r),s=NaN,a=o-n,l=(o+n)/2;return a?(e===o?s=(i-r)/a+(i<r)*6:i===o?s=(r-e)/a+2:s=(e-i)/a+4,a/=l<.5?o+n:2-o-n,s*=60):a=l>0&&l<1?0:s,new At(s,a,l,t.opacity)}function Ou(t,e,i,r){return arguments.length===1?ha(t):new At(t,e,i,r??1)}function At(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}An(At,Ou,ca(mi,{brighter(t){return t=t==null?Vi:Math.pow(Vi,t),new At(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?oi:Math.pow(oi,t),new At(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*e,n=2*i-r;return new mt(Pr(t>=240?t-240:t+120,n,r),Pr(t,n,r),Pr(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new At(No(this.h),wi(this.s),wi(this.l),Xi(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 t=Xi(this.opacity);return`${t===1?"hsl(":"hsla("}${No(this.h)}, ${wi(this.s)*100}%, ${wi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function No(t){return t=(t||0)%360,t<0?t+360:t}function wi(t){return Math.max(0,Math.min(1,t||0))}function Pr(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const Ln=t=>()=>t;function ua(t,e){return function(i){return t+i*e}}function Mu(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(r){return Math.pow(t+r*e,i)}}function Px(t,e){var i=e-t;return i?ua(t,i>180||i<-180?i-360*Math.round(i/360):i):Ln(isNaN(t)?e:t)}function $u(t){return(t=+t)==1?fa:function(e,i){return i-e?Mu(e,i,t):Ln(isNaN(e)?i:e)}}function fa(t,e){var i=e-t;return i?ua(t,i):Ln(isNaN(t)?e:t)}const Ro=function t(e){var i=$u(e);function r(n,o){var s=i((n=nn(n)).r,(o=nn(o)).r),a=i(n.g,o.g),l=i(n.b,o.b),c=fa(n.opacity,o.opacity);return function(u){return n.r=s(u),n.g=a(u),n.b=l(u),n.opacity=c(u),n+""}}return r.gamma=t,r}(1);function ie(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var on=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qr=new RegExp(on.source,"g");function Iu(t){return function(){return t}}function Du(t){return function(e){return t(e)+""}}function Nu(t,e){var i=on.lastIndex=qr.lastIndex=0,r,n,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=on.exec(t))&&(n=qr.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(n=n[0])?a[s]?a[s]+=n:a[++s]=n:(a[++s]=null,l.push({i:s,x:ie(r,n)})),i=qr.lastIndex;return i<e.length&&(o=e.slice(i),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?Du(l[0].x):Iu(e):(e=l.length,function(c){for(var u=0,f;u<e;++u)a[(f=l[u]).i]=f.x(c);return a.join("")})}var Po=180/Math.PI,sn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function da(t,e,i,r,n,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*i+e*r)&&(i-=t*l,r-=e*l),(a=Math.sqrt(i*i+r*r))&&(i/=a,r/=a,l/=a),t*r<e*i&&(t=-t,e=-e,l=-l,s=-s),{translateX:n,translateY:o,rotate:Math.atan2(e,t)*Po,skewX:Math.atan(l)*Po,scaleX:s,scaleY:a}}var Bi;function Ru(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?sn:da(e.a,e.b,e.c,e.d,e.e,e.f)}function Pu(t){return t==null||(Bi||(Bi=document.createElementNS("http://www.w3.org/2000/svg","g")),Bi.setAttribute("transform",t),!(t=Bi.transform.baseVal.consolidate()))?sn:(t=t.matrix,da(t.a,t.b,t.c,t.d,t.e,t.f))}function pa(t,e,i,r){function n(c){return c.length?c.pop()+" ":""}function o(c,u,f,h,d,_){if(c!==f||u!==h){var T=d.push("translate(",null,e,null,i);_.push({i:T-4,x:ie(c,f)},{i:T-2,x:ie(u,h)})}else(f||h)&&d.push("translate("+f+e+h+i)}function s(c,u,f,h){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),h.push({i:f.push(n(f)+"rotate(",null,r)-2,x:ie(c,u)})):u&&f.push(n(f)+"rotate("+u+r)}function a(c,u,f,h){c!==u?h.push({i:f.push(n(f)+"skewX(",null,r)-2,x:ie(c,u)}):u&&f.push(n(f)+"skewX("+u+r)}function l(c,u,f,h,d,_){if(c!==f||u!==h){var T=d.push(n(d)+"scale(",null,",",null,")");_.push({i:T-4,x:ie(c,f)},{i:T-2,x:ie(u,h)})}else(f!==1||h!==1)&&d.push(n(d)+"scale("+f+","+h+")")}return function(c,u){var f=[],h=[];return c=t(c),u=t(u),o(c.translateX,c.translateY,u.translateX,u.translateY,f,h),s(c.rotate,u.rotate,f,h),a(c.skewX,u.skewX,f,h),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,f,h),c=u=null,function(d){for(var _=-1,T=h.length,w;++_<T;)f[(w=h[_]).i]=w.x(d);return f.join("")}}}var qu=pa(Ru,"px, ","px)","deg)"),zu=pa(Pu,", ",")",")"),Ee=0,Ke=0,je=0,ga=1e3,Ki,Ze,Zi=0,ge=0,mr=0,li=typeof performance=="object"&&performance.now?performance:Date,ma=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Fn(){return ge||(ma(Wu),ge=li.now()+mr)}function Wu(){ge=0}function Ji(){this._call=this._time=this._next=null}Ji.prototype=_a.prototype={constructor:Ji,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?Fn():+i)+(e==null?0:+e),!this._next&&Ze!==this&&(Ze?Ze._next=this:Ki=this,Ze=this),this._call=t,this._time=i,an()},stop:function(){this._call&&(this._call=null,this._time=1/0,an())}};function _a(t,e,i){var r=new Ji;return r.restart(t,e,i),r}function Hu(){Fn(),++Ee;for(var t=Ki,e;t;)(e=ge-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Ee}function qo(){ge=(Zi=li.now())+mr,Ee=Ke=0;try{Hu()}finally{Ee=0,Uu(),ge=0}}function ju(){var t=li.now(),e=t-Zi;e>ga&&(mr-=e,Zi=t)}function Uu(){for(var t,e=Ki,i,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(i=e._next,e._next=null,e=t?t._next=i:Ki=i);Ze=t,an(r)}function an(t){if(!Ee){Ke&&(Ke=clearTimeout(Ke));var e=t-ge;e>24?(t<1/0&&(Ke=setTimeout(qo,t-li.now()-mr)),je&&(je=clearInterval(je))):(je||(Zi=li.now(),je=setInterval(ju,ga)),Ee=1,ma(qo))}}function zo(t,e,i){var r=new Ji;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var Yu=Ks("start","end","cancel","interrupt"),Gu=[],ya=0,Wo=1,ln=2,Ni=3,Ho=4,cn=5,Ri=6;function _r(t,e,i,r,n,o){var s=t.__transition;if(!s)t.__transition={};else if(i in s)return;Vu(t,i,{name:e,index:r,group:n,on:Yu,tween:Gu,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ya})}function En(t,e){var i=Et(t,e);if(i.state>ya)throw new Error("too late; already scheduled");return i}function Nt(t,e){var i=Et(t,e);if(i.state>Ni)throw new Error("too late; already running");return i}function Et(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function Vu(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=_a(o,0,i.time);function o(c){i.state=Wo,i.timer.restart(s,i.delay,i.time),i.delay<=c&&s(c-i.delay)}function s(c){var u,f,h,d;if(i.state!==Wo)return l();for(u in r)if(d=r[u],d.name===i.name){if(d.state===Ni)return zo(s);d.state===Ho?(d.state=Ri,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[u]):+u<e&&(d.state=Ri,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[u])}if(zo(function(){i.state===Ni&&(i.state=Ho,i.timer.restart(a,i.delay,i.time),a(c))}),i.state=ln,i.on.call("start",t,t.__data__,i.index,i.group),i.state===ln){for(i.state=Ni,n=new Array(h=i.tween.length),u=0,f=-1;u<h;++u)(d=i.tween[u].value.call(t,t.__data__,i.index,i.group))&&(n[++f]=d);n.length=f+1}}function a(c){for(var u=c<i.duration?i.ease.call(null,c/i.duration):(i.timer.restart(l),i.state=cn,1),f=-1,h=n.length;++f<h;)n[f].call(t,u);i.state===cn&&(i.on.call("end",t,t.__data__,i.index,i.group),l())}function l(){i.state=Ri,i.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function Xu(t,e){var i=t.__transition,r,n,o=!0,s;if(i){e=e==null?null:e+"";for(s in i){if((r=i[s]).name!==e){o=!1;continue}n=r.state>ln&&r.state<cn,r.state=Ri,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete i[s]}o&&delete t.__transition}}function Ku(t){return this.each(function(){Xu(this,t)})}function Zu(t,e){var i,r;return function(){var n=Nt(this,t),o=n.tween;if(o!==i){r=i=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}n.tween=r}}function Ju(t,e,i){var r,n;if(typeof i!="function")throw new Error;return function(){var o=Nt(this,t),s=o.tween;if(s!==r){n=(r=s).slice();for(var a={name:e,value:i},l=0,c=n.length;l<c;++l)if(n[l].name===e){n[l]=a;break}l===c&&n.push(a)}o.tween=n}}function Qu(t,e){var i=this._id;if(t+="",arguments.length<2){for(var r=Et(this.node(),i).tween,n=0,o=r.length,s;n<o;++n)if((s=r[n]).name===t)return s.value;return null}return this.each((e==null?Zu:Ju)(i,t,e))}function On(t,e,i){var r=t._id;return t.each(function(){var n=Nt(this,r);(n.value||(n.value={}))[e]=i.apply(this,arguments)}),function(n){return Et(n,r).value[e]}}function Ca(t,e){var i;return(typeof e=="number"?ie:e instanceof ai?Ro:(i=ai(e))?(e=i,Ro):Nu)(t,e)}function tf(t){return function(){this.removeAttribute(t)}}function ef(t){return function(){this.removeAttributeNS(t.space,t.local)}}function rf(t,e,i){var r,n=i+"",o;return function(){var s=this.getAttribute(t);return s===n?null:s===r?o:o=e(r=s,i)}}function nf(t,e,i){var r,n=i+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===n?null:s===r?o:o=e(r=s,i)}}function of(t,e,i){var r,n,o;return function(){var s,a=i(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a)))}}function sf(t,e,i){var r,n,o;return function(){var s,a=i(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a)))}}function af(t,e){var i=gr(t),r=i==="transform"?zu:Ca;return this.attrTween(t,typeof e=="function"?(i.local?sf:of)(i,r,On(this,"attr."+t,e)):e==null?(i.local?ef:tf)(i):(i.local?nf:rf)(i,r,e))}function lf(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function cf(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function hf(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&cf(t,o)),i}return n._value=e,n}function uf(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&lf(t,o)),i}return n._value=e,n}function ff(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var r=gr(t);return this.tween(i,(r.local?hf:uf)(r,e))}function df(t,e){return function(){En(this,t).delay=+e.apply(this,arguments)}}function pf(t,e){return e=+e,function(){En(this,t).delay=e}}function gf(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?df:pf)(e,t)):Et(this.node(),e).delay}function mf(t,e){return function(){Nt(this,t).duration=+e.apply(this,arguments)}}function _f(t,e){return e=+e,function(){Nt(this,t).duration=e}}function yf(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?mf:_f)(e,t)):Et(this.node(),e).duration}function Cf(t,e){if(typeof e!="function")throw new Error;return function(){Nt(this,t).ease=e}}function bf(t){var e=this._id;return arguments.length?this.each(Cf(e,t)):Et(this.node(),e).ease}function xf(t,e){return function(){var i=e.apply(this,arguments);if(typeof i!="function")throw new Error;Nt(this,t).ease=i}}function Tf(t){if(typeof t!="function")throw new Error;return this.each(xf(this._id,t))}function vf(t){typeof t!="function"&&(t=Qs(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new Xt(r,this._parents,this._name,this._id)}function kf(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,r=e.length,n=i.length,o=Math.min(r,n),s=new Array(r),a=0;a<o;++a)for(var l=e[a],c=i[a],u=l.length,f=s[a]=new Array(u),h,d=0;d<u;++d)(h=l[d]||c[d])&&(f[d]=h);for(;a<r;++a)s[a]=e[a];return new Xt(s,this._parents,this._name,this._id)}function Sf(t){return(t+"").trim().split(/^|\s+/).every(function(e){var i=e.indexOf(".");return i>=0&&(e=e.slice(0,i)),!e||e==="start"})}function wf(t,e,i){var r,n,o=Sf(e)?En:Nt;return function(){var s=o(this,t),a=s.on;a!==r&&(n=(r=a).copy()).on(e,i),s.on=n}}function Bf(t,e){var i=this._id;return arguments.length<2?Et(this.node(),i).on.on(t):this.each(wf(i,t,e))}function Af(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function Lf(){return this.on("end.remove",Af(this._id))}function Ff(t){var e=this._name,i=this._id;typeof t!="function"&&(t=wn(t));for(var r=this._groups,n=r.length,o=new Array(n),s=0;s<n;++s)for(var a=r[s],l=a.length,c=o[s]=new Array(l),u,f,h=0;h<l;++h)(u=a[h])&&(f=t.call(u,u.__data__,h,a))&&("__data__"in u&&(f.__data__=u.__data__),c[h]=f,_r(c[h],e,i,h,c,Et(u,i)));return new Xt(o,this._parents,e,i)}function Ef(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Js(t));for(var r=this._groups,n=r.length,o=[],s=[],a=0;a<n;++a)for(var l=r[a],c=l.length,u,f=0;f<c;++f)if(u=l[f]){for(var h=t.call(u,u.__data__,f,l),d,_=Et(u,i),T=0,w=h.length;T<w;++T)(d=h[T])&&_r(d,e,i,T,h,_);o.push(h),s.push(u)}return new Xt(o,s,e,i)}var Of=gi.prototype.constructor;function Mf(){return new Of(this._groups,this._parents)}function $f(t,e){var i,r,n;return function(){var o=Fe(this,t),s=(this.style.removeProperty(t),Fe(this,t));return o===s?null:o===i&&s===r?n:n=e(i=o,r=s)}}function ba(t){return function(){this.style.removeProperty(t)}}function If(t,e,i){var r,n=i+"",o;return function(){var s=Fe(this,t);return s===n?null:s===r?o:o=e(r=s,i)}}function Df(t,e,i){var r,n,o;return function(){var s=Fe(this,t),a=i(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),Fe(this,t))),s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a))}}function Nf(t,e){var i,r,n,o="style."+e,s="end."+o,a;return function(){var l=Nt(this,t),c=l.on,u=l.value[o]==null?a||(a=ba(e)):void 0;(c!==i||n!==u)&&(r=(i=c).copy()).on(s,n=u),l.on=r}}function Rf(t,e,i){var r=(t+="")=="transform"?qu:Ca;return e==null?this.styleTween(t,$f(t,r)).on("end.style."+t,ba(t)):typeof e=="function"?this.styleTween(t,Df(t,r,On(this,"style."+t,e))).each(Nf(this._id,t)):this.styleTween(t,If(t,r,e),i).on("end.style."+t,null)}function Pf(t,e,i){return function(r){this.style.setProperty(t,e.call(this,r),i)}}function qf(t,e,i){var r,n;function o(){var s=e.apply(this,arguments);return s!==n&&(r=(n=s)&&Pf(t,s,i)),r}return o._value=e,o}function zf(t,e,i){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,qf(t,e,i??""))}function Wf(t){return function(){this.textContent=t}}function Hf(t){return function(){var e=t(this);this.textContent=e??""}}function jf(t){return this.tween("text",typeof t=="function"?Hf(On(this,"text",t)):Wf(t==null?"":t+""))}function Uf(t){return function(e){this.textContent=t.call(this,e)}}function Yf(t){var e,i;function r(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&Uf(n)),e}return r._value=t,r}function Gf(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Yf(t))}function Vf(){for(var t=this._name,e=this._id,i=xa(),r=this._groups,n=r.length,o=0;o<n;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var u=Et(l,e);_r(l,t,i,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Xt(r,this._parents,t,i)}function Xf(){var t,e,i=this,r=i._id,n=i.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--n===0&&o()}};i.each(function(){var c=Nt(this,r),u=c.on;u!==t&&(e=(t=u).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),n===0&&o()})}var Kf=0;function Xt(t,e,i,r){this._groups=t,this._parents=e,this._name=i,this._id=r}function xa(){return++Kf}var jt=gi.prototype;Xt.prototype={constructor:Xt,select:Ff,selectAll:Ef,selectChild:jt.selectChild,selectChildren:jt.selectChildren,filter:vf,merge:kf,selection:Mf,transition:Vf,call:jt.call,nodes:jt.nodes,node:jt.node,size:jt.size,empty:jt.empty,each:jt.each,on:Bf,attr:af,attrTween:ff,style:Rf,styleTween:zf,text:jf,textTween:Gf,remove:Lf,tween:Qu,delay:gf,duration:yf,ease:bf,easeVarying:Tf,end:Xf,[Symbol.iterator]:jt[Symbol.iterator]};function Zf(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Jf={time:null,delay:0,duration:250,ease:Zf};function Qf(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}function td(t){var e,i;t instanceof Xt?(e=t._id,t=t._name):(e=xa(),(i=Jf).time=Fn(),t=t==null?null:t+"");for(var r=this._groups,n=r.length,o=0;o<n;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&_r(l,t,e,c,s,i||Qf(l,e));return new Xt(r,this._parents,t,e)}gi.prototype.interrupt=Ku;gi.prototype.transition=td;const qx=Math.abs,zx=Math.atan2,Wx=Math.cos,Hx=Math.max,jx=Math.min,Ux=Math.sin,Yx=Math.sqrt,jo=1e-12,Mn=Math.PI,Uo=Mn/2,Gx=2*Mn;function Vx(t){return t>1?0:t<-1?Mn:Math.acos(t)}function Xx(t){return t>=1?Uo:t<=-1?-Uo:Math.asin(t)}function Ta(t){this._context=t}Ta.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function ed(t){return new Ta(t)}class va{constructor(e,i){this._context=e,this._x=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,i){switch(e=+e,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,i,e,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,e,this._y0,e,i);break}}this._x0=e,this._y0=i}}function id(t){return new va(t,!0)}function rd(t){return new va(t,!1)}function ne(){}function Qi(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function yr(t){this._context=t}yr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Qi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Qi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function nd(t){return new yr(t)}function ka(t){this._context=t}ka.prototype={areaStart:ne,areaEnd:ne,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Qi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function od(t){return new ka(t)}function Sa(t){this._context=t}Sa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:Qi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function sd(t){return new Sa(t)}function wa(t,e){this._basis=new yr(t),this._beta=e}wa.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r=t[0],n=e[0],o=t[i]-r,s=e[i]-n,a=-1,l;++a<=i;)l=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*o),this._beta*e[a]+(1-this._beta)*(n+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const ad=function t(e){function i(r){return e===1?new yr(r):new wa(r,e)}return i.beta=function(r){return t(+r)},i}(.85);function tr(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function $n(t,e){this._context=t,this._k=(1-e)/6}$n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:tr(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:tr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ld=function t(e){function i(r){return new $n(r,e)}return i.tension=function(r){return t(+r)},i}(0);function In(t,e){this._context=t,this._k=(1-e)/6}In.prototype={areaStart:ne,areaEnd:ne,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:tr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const cd=function t(e){function i(r){return new In(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Dn(t,e){this._context=t,this._k=(1-e)/6}Dn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:tr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const hd=function t(e){function i(r){return new Dn(r,e)}return i.tension=function(r){return t(+r)},i}(0);function Nn(t,e,i){var r=t._x1,n=t._y1,o=t._x2,s=t._y2;if(t._l01_a>jo){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>jo){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/u,s=(s*c+t._y1*t._l23_2a-i*t._l12_2a)/u}t._context.bezierCurveTo(r,n,o,s,t._x2,t._y2)}function Ba(t,e){this._context=t,this._alpha=e}Ba.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Nn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ud=function t(e){function i(r){return e?new Ba(r,e):new $n(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function Aa(t,e){this._context=t,this._alpha=e}Aa.prototype={areaStart:ne,areaEnd:ne,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Nn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const fd=function t(e){function i(r){return e?new Aa(r,e):new In(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function La(t,e){this._context=t,this._alpha=e}La.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Nn(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const dd=function t(e){function i(r){return e?new La(r,e):new Dn(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function Fa(t){this._context=t}Fa.prototype={areaStart:ne,areaEnd:ne,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function pd(t){return new Fa(t)}function Yo(t){return t<0?-1:1}function Go(t,e,i){var r=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(r||n<0&&-0),s=(i-t._y1)/(n||r<0&&-0),a=(o*n+s*r)/(r+n);return(Yo(o)+Yo(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Vo(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function zr(t,e,i){var r=t._x0,n=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,n+a*e,o-a,s-a*i,o,s)}function er(t){this._context=t}er.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:zr(this,this._t0,Vo(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,zr(this,Vo(this,i=Go(this,t,e)),i);break;default:zr(this,this._t0,i=Go(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function Ea(t){this._context=new Oa(t)}(Ea.prototype=Object.create(er.prototype)).point=function(t,e){er.prototype.point.call(this,e,t)};function Oa(t){this._context=t}Oa.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,n,o){this._context.bezierCurveTo(e,t,r,i,o,n)}};function gd(t){return new er(t)}function md(t){return new Ea(t)}function Ma(t){this._context=t}Ma.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var r=Xo(t),n=Xo(e),o=0,s=1;s<i;++o,++s)this._context.bezierCurveTo(r[0][o],n[0][o],r[1][o],n[1][o],t[s],e[s]);(this._line||this._line!==0&&i===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function Xo(t){var e,i=t.length-1,r,n=new Array(i),o=new Array(i),s=new Array(i);for(n[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<i-1;++e)n[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(n[i-1]=2,o[i-1]=7,s[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=n[e]/o[e-1],o[e]-=r,s[e]-=r*s[e-1];for(n[i-1]=s[i-1]/o[i-1],e=i-2;e>=0;--e)n[e]=(s[e]-n[e+1])/o[e];for(o[i-1]=(t[i]+n[i-1])/2,e=0;e<i-1;++e)o[e]=2*t[e+1]-n[e+1];return[n,o]}function _d(t){return new Ma(t)}function Cr(t,e){this._context=t,this._t=e}Cr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function yd(t){return new Cr(t,.5)}function Cd(t){return new Cr(t,0)}function bd(t){return new Cr(t,1)}function Je(t,e,i){this.k=t,this.x=e,this.y=i}Je.prototype={constructor:Je,scale:function(t){return t===1?this:new Je(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Je(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Je.prototype;/*! @license DOMPurify 3.0.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.9/LICENSE */const{entries:$a,setPrototypeOf:Ko,isFrozen:xd,getPrototypeOf:Td,getOwnPropertyDescriptor:vd}=Object;let{freeze:ft,seal:Ft,create:Ia}=Object,{apply:hn,construct:un}=typeof Reflect<"u"&&Reflect;ft||(ft=function(e){return e});Ft||(Ft=function(e){return e});hn||(hn=function(e,i,r){return e.apply(i,r)});un||(un=function(e,i){return new e(...i)});const Ai=xt(Array.prototype.forEach),Zo=xt(Array.prototype.pop),Ue=xt(Array.prototype.push),Pi=xt(String.prototype.toLowerCase),Wr=xt(String.prototype.toString),kd=xt(String.prototype.match),Ye=xt(String.prototype.replace),Sd=xt(String.prototype.indexOf),wd=xt(String.prototype.trim),Bt=xt(Object.prototype.hasOwnProperty),Ct=xt(RegExp.prototype.test),Ge=Bd(TypeError);function xt(t){return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return hn(t,e,r)}}function Bd(t){return function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return un(t,i)}}function U(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pi;Ko&&Ko(t,null);let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){const o=i(n);o!==n&&(xd(e)||(e[r]=o),n=o)}t[n]=!0}return t}function Ad(t){for(let e=0;e<t.length;e++)Bt(t,e)||(t[e]=null);return t}function ce(t){const e=Ia(null);for(const[i,r]of $a(t))Bt(t,i)&&(Array.isArray(r)?e[i]=Ad(r):r&&typeof r=="object"&&r.constructor===Object?e[i]=ce(r):e[i]=r);return e}function Li(t,e){for(;t!==null;){const r=vd(t,e);if(r){if(r.get)return xt(r.get);if(typeof r.value=="function")return xt(r.value)}t=Td(t)}function i(){return null}return i}const Jo=ft(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Hr=ft(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),jr=ft(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ld=ft(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ur=ft(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Fd=ft(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Qo=ft(["#text"]),ts=ft(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Yr=ft(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),es=ft(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Fi=ft(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ed=Ft(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Od=Ft(/<%[\w\W]*|[\w\W]*%>/gm),Md=Ft(/\${[\w\W]*}/gm),$d=Ft(/^data-[\-\w.\u00B7-\uFFFF]/),Id=Ft(/^aria-[\-\w]+$/),Da=Ft(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Dd=Ft(/^(?:\w+script|data):/i),Nd=Ft(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Na=Ft(/^html$/i);var is=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ed,ERB_EXPR:Od,TMPLIT_EXPR:Md,DATA_ATTR:$d,ARIA_ATTR:Id,IS_ALLOWED_URI:Da,IS_SCRIPT_OR_DATA:Dd,ATTR_WHITESPACE:Nd,DOCTYPE_NAME:Na});const Rd=function(){return typeof window>"u"?null:window},Pd=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";i&&i.hasAttribute(n)&&(r=i.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function Ra(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rd();const e=$=>Ra($);if(e.version="3.0.9",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;let{document:i}=t;const r=i,n=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:d}=t,_=l.prototype,T=Li(_,"cloneNode"),w=Li(_,"nextSibling"),A=Li(_,"childNodes"),y=Li(_,"parentNode");if(typeof s=="function"){const $=i.createElement("template");$.content&&$.content.ownerDocument&&(i=$.content.ownerDocument)}let E,L="";const{implementation:R,createNodeIterator:m,createDocumentFragment:b,getElementsByTagName:O}=i,{importNode:Zt}=r;let G={};e.isSupported=typeof $a=="function"&&typeof y=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Y,ERB_EXPR:St,TMPLIT_EXPR:Jt,DATA_ATTR:q,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:x,ATTR_WHITESPACE:M}=is;let{IS_ALLOWED_URI:k}=is,S=null;const H=U({},[...Jo,...Hr,...jr,...Ur,...Qo]);let W=null;const K=U({},[...ts,...Yr,...es,...Fi]);let j=Object.seal(Ia(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),J=null,rt=null,Pt=!0,wt=!0,Qt=!1,Ot=!0,Q=!1,nt=!1,qt=!1,te=!1,xe=!1,xi=!1,Ti=!1,so=!0,ao=!1;const yc="user-content-";let Mr=!0,ze=!1,Te={},ve=null;const lo=U({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let co=null;const ho=U({},["audio","video","img","source","image","track"]);let $r=null;const uo=U({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vi="http://www.w3.org/1998/Math/MathML",ki="http://www.w3.org/2000/svg",zt="http://www.w3.org/1999/xhtml";let ke=zt,Ir=!1,Dr=null;const Cc=U({},[vi,ki,zt],Wr);let We=null;const bc=["application/xhtml+xml","text/html"],xc="text/html";let it=null,Se=null;const Tc=i.createElement("form"),fo=function(p){return p instanceof RegExp||p instanceof Function},Nr=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Se&&Se===p)){if((!p||typeof p!="object")&&(p={}),p=ce(p),We=bc.indexOf(p.PARSER_MEDIA_TYPE)===-1?xc:p.PARSER_MEDIA_TYPE,it=We==="application/xhtml+xml"?Wr:Pi,S=Bt(p,"ALLOWED_TAGS")?U({},p.ALLOWED_TAGS,it):H,W=Bt(p,"ALLOWED_ATTR")?U({},p.ALLOWED_ATTR,it):K,Dr=Bt(p,"ALLOWED_NAMESPACES")?U({},p.ALLOWED_NAMESPACES,Wr):Cc,$r=Bt(p,"ADD_URI_SAFE_ATTR")?U(ce(uo),p.ADD_URI_SAFE_ATTR,it):uo,co=Bt(p,"ADD_DATA_URI_TAGS")?U(ce(ho),p.ADD_DATA_URI_TAGS,it):ho,ve=Bt(p,"FORBID_CONTENTS")?U({},p.FORBID_CONTENTS,it):lo,J=Bt(p,"FORBID_TAGS")?U({},p.FORBID_TAGS,it):{},rt=Bt(p,"FORBID_ATTR")?U({},p.FORBID_ATTR,it):{},Te=Bt(p,"USE_PROFILES")?p.USE_PROFILES:!1,Pt=p.ALLOW_ARIA_ATTR!==!1,wt=p.ALLOW_DATA_ATTR!==!1,Qt=p.ALLOW_UNKNOWN_PROTOCOLS||!1,Ot=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Q=p.SAFE_FOR_TEMPLATES||!1,nt=p.WHOLE_DOCUMENT||!1,xe=p.RETURN_DOM||!1,xi=p.RETURN_DOM_FRAGMENT||!1,Ti=p.RETURN_TRUSTED_TYPE||!1,te=p.FORCE_BODY||!1,so=p.SANITIZE_DOM!==!1,ao=p.SANITIZE_NAMED_PROPS||!1,Mr=p.KEEP_CONTENT!==!1,ze=p.IN_PLACE||!1,k=p.ALLOWED_URI_REGEXP||Da,ke=p.NAMESPACE||zt,j=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&fo(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&fo(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(j.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(wt=!1),xi&&(xe=!0),Te&&(S=U({},Qo),W=[],Te.html===!0&&(U(S,Jo),U(W,ts)),Te.svg===!0&&(U(S,Hr),U(W,Yr),U(W,Fi)),Te.svgFilters===!0&&(U(S,jr),U(W,Yr),U(W,Fi)),Te.mathMl===!0&&(U(S,Ur),U(W,es),U(W,Fi))),p.ADD_TAGS&&(S===H&&(S=ce(S)),U(S,p.ADD_TAGS,it)),p.ADD_ATTR&&(W===K&&(W=ce(W)),U(W,p.ADD_ATTR,it)),p.ADD_URI_SAFE_ATTR&&U($r,p.ADD_URI_SAFE_ATTR,it),p.FORBID_CONTENTS&&(ve===lo&&(ve=ce(ve)),U(ve,p.FORBID_CONTENTS,it)),Mr&&(S["#text"]=!0),nt&&U(S,["html","head","body"]),S.table&&(U(S,["tbody"]),delete J.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ge('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ge('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=p.TRUSTED_TYPES_POLICY,L=E.createHTML("")}else E===void 0&&(E=Pd(d,n)),E!==null&&typeof L=="string"&&(L=E.createHTML(""));ft&&ft(p),Se=p}},po=U({},["mi","mo","mn","ms","mtext"]),go=U({},["foreignobject","desc","title","annotation-xml"]),vc=U({},["title","style","font","a","script"]),mo=U({},[...Hr,...jr,...Ld]),_o=U({},[...Ur,...Fd]),kc=function(p){let C=y(p);(!C||!C.tagName)&&(C={namespaceURI:ke,tagName:"template"});const F=Pi(p.tagName),V=Pi(C.tagName);return Dr[p.namespaceURI]?p.namespaceURI===ki?C.namespaceURI===zt?F==="svg":C.namespaceURI===vi?F==="svg"&&(V==="annotation-xml"||po[V]):!!mo[F]:p.namespaceURI===vi?C.namespaceURI===zt?F==="math":C.namespaceURI===ki?F==="math"&&go[V]:!!_o[F]:p.namespaceURI===zt?C.namespaceURI===ki&&!go[V]||C.namespaceURI===vi&&!po[V]?!1:!_o[F]&&(vc[F]||!mo[F]):!!(We==="application/xhtml+xml"&&Dr[p.namespaceURI]):!1},ae=function(p){Ue(e.removed,{element:p});try{p.parentNode.removeChild(p)}catch{p.remove()}},Rr=function(p,C){try{Ue(e.removed,{attribute:C.getAttributeNode(p),from:C})}catch{Ue(e.removed,{attribute:null,from:C})}if(C.removeAttribute(p),p==="is"&&!W[p])if(xe||xi)try{ae(C)}catch{}else try{C.setAttribute(p,"")}catch{}},yo=function(p){let C=null,F=null;if(te)p="<remove></remove>"+p;else{const st=kd(p,/^[\r\n\t ]+/);F=st&&st[0]}We==="application/xhtml+xml"&&ke===zt&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const V=E?E.createHTML(p):p;if(ke===zt)try{C=new h().parseFromString(V,We)}catch{}if(!C||!C.documentElement){C=R.createDocument(ke,"template",null);try{C.documentElement.innerHTML=Ir?L:V}catch{}}const ot=C.body||C.documentElement;return p&&F&&ot.insertBefore(i.createTextNode(F),ot.childNodes[0]||null),ke===zt?O.call(C,nt?"html":"body")[0]:nt?C.documentElement:ot},Co=function(p){return m.call(p.ownerDocument||p,p,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null)},Sc=function(p){return p instanceof f&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof u)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},bo=function(p){return typeof a=="function"&&p instanceof a},Wt=function(p,C,F){G[p]&&Ai(G[p],V=>{V.call(e,C,F,Se)})},xo=function(p){let C=null;if(Wt("beforeSanitizeElements",p,null),Sc(p))return ae(p),!0;const F=it(p.nodeName);if(Wt("uponSanitizeElement",p,{tagName:F,allowedTags:S}),p.hasChildNodes()&&!bo(p.firstElementChild)&&Ct(/<[/\w]/g,p.innerHTML)&&Ct(/<[/\w]/g,p.textContent))return ae(p),!0;if(!S[F]||J[F]){if(!J[F]&&vo(F)&&(j.tagNameCheck instanceof RegExp&&Ct(j.tagNameCheck,F)||j.tagNameCheck instanceof Function&&j.tagNameCheck(F)))return!1;if(Mr&&!ve[F]){const V=y(p)||p.parentNode,ot=A(p)||p.childNodes;if(ot&&V){const st=ot.length;for(let dt=st-1;dt>=0;--dt)V.insertBefore(T(ot[dt],!0),w(p))}}return ae(p),!0}return p instanceof l&&!kc(p)||(F==="noscript"||F==="noembed"||F==="noframes")&&Ct(/<\/no(script|embed|frames)/i,p.innerHTML)?(ae(p),!0):(Q&&p.nodeType===3&&(C=p.textContent,Ai([Y,St,Jt],V=>{C=Ye(C,V," ")}),p.textContent!==C&&(Ue(e.removed,{element:p.cloneNode()}),p.textContent=C)),Wt("afterSanitizeElements",p,null),!1)},To=function(p,C,F){if(so&&(C==="id"||C==="name")&&(F in i||F in Tc))return!1;if(!(wt&&!rt[C]&&Ct(q,C))){if(!(Pt&&Ct(B,C))){if(!W[C]||rt[C]){if(!(vo(p)&&(j.tagNameCheck instanceof RegExp&&Ct(j.tagNameCheck,p)||j.tagNameCheck instanceof Function&&j.tagNameCheck(p))&&(j.attributeNameCheck instanceof RegExp&&Ct(j.attributeNameCheck,C)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(C))||C==="is"&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&Ct(j.tagNameCheck,F)||j.tagNameCheck instanceof Function&&j.tagNameCheck(F))))return!1}else if(!$r[C]){if(!Ct(k,Ye(F,M,""))){if(!((C==="src"||C==="xlink:href"||C==="href")&&p!=="script"&&Sd(F,"data:")===0&&co[p])){if(!(Qt&&!Ct(x,Ye(F,M,"")))){if(F)return!1}}}}}}return!0},vo=function(p){return p!=="annotation-xml"&&p.indexOf("-")>0},ko=function(p){Wt("beforeSanitizeAttributes",p,null);const{attributes:C}=p;if(!C)return;const F={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W};let V=C.length;for(;V--;){const ot=C[V],{name:st,namespaceURI:dt,value:le}=ot,He=it(st);let pt=st==="value"?le:wd(le);if(F.attrName=He,F.attrValue=pt,F.keepAttr=!0,F.forceKeepAttr=void 0,Wt("uponSanitizeAttribute",p,F),pt=F.attrValue,F.forceKeepAttr||(Rr(st,p),!F.keepAttr))continue;if(!Ot&&Ct(/\/>/i,pt)){Rr(st,p);continue}Q&&Ai([Y,St,Jt],wo=>{pt=Ye(pt,wo," ")});const So=it(p.nodeName);if(To(So,He,pt)){if(ao&&(He==="id"||He==="name")&&(Rr(st,p),pt=yc+pt),E&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!dt)switch(d.getAttributeType(So,He)){case"TrustedHTML":{pt=E.createHTML(pt);break}case"TrustedScriptURL":{pt=E.createScriptURL(pt);break}}try{dt?p.setAttributeNS(dt,st,pt):p.setAttribute(st,pt),Zo(e.removed)}catch{}}}Wt("afterSanitizeAttributes",p,null)},wc=function $(p){let C=null;const F=Co(p);for(Wt("beforeSanitizeShadowDOM",p,null);C=F.nextNode();)Wt("uponSanitizeShadowNode",C,null),!xo(C)&&(C.content instanceof o&&$(C.content),ko(C));Wt("afterSanitizeShadowDOM",p,null)};return e.sanitize=function($){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,F=null,V=null,ot=null;if(Ir=!$,Ir&&($="<!-->"),typeof $!="string"&&!bo($))if(typeof $.toString=="function"){if($=$.toString(),typeof $!="string")throw Ge("dirty is not a string, aborting")}else throw Ge("toString is not a function");if(!e.isSupported)return $;if(qt||Nr(p),e.removed=[],typeof $=="string"&&(ze=!1),ze){if($.nodeName){const le=it($.nodeName);if(!S[le]||J[le])throw Ge("root node is forbidden and cannot be sanitized in-place")}}else if($ instanceof a)C=yo("<!---->"),F=C.ownerDocument.importNode($,!0),F.nodeType===1&&F.nodeName==="BODY"||F.nodeName==="HTML"?C=F:C.appendChild(F);else{if(!xe&&!Q&&!nt&&$.indexOf("<")===-1)return E&&Ti?E.createHTML($):$;if(C=yo($),!C)return xe?null:Ti?L:""}C&&te&&ae(C.firstChild);const st=Co(ze?$:C);for(;V=st.nextNode();)xo(V)||(V.content instanceof o&&wc(V.content),ko(V));if(ze)return $;if(xe){if(xi)for(ot=b.call(C.ownerDocument);C.firstChild;)ot.appendChild(C.firstChild);else ot=C;return(W.shadowroot||W.shadowrootmode)&&(ot=Zt.call(r,ot,!0)),ot}let dt=nt?C.outerHTML:C.innerHTML;return nt&&S["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&Ct(Na,C.ownerDocument.doctype.name)&&(dt="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
`+dt),Q&&Ai([Y,St,Jt],le=>{dt=Ye(dt,le," ")}),E&&Ti?E.createHTML(dt):dt},e.setConfig=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nr($),qt=!0},e.clearConfig=function(){Se=null,qt=!1},e.isValidAttribute=function($,p,C){Se||Nr({});const F=it($),V=it(p);return To(F,V,C)},e.addHook=function($,p){typeof p=="function"&&(G[$]=G[$]||[],Ue(G[$],p))},e.removeHook=function($){if(G[$])return Zo(G[$])},e.removeHooks=function($){G[$]&&(G[$]=[])},e.removeAllHooks=function(){G={}},e}var Oe=Ra();const _i=/<br\s*\/?>/gi,qd=t=>t?qa(t).replace(/\\n/g,"#br#").split("#br#"):[""],zd=(()=>{let t=!1;return()=>{t||(Wd(),t=!0)}})();function Wd(){const t="data-temp-href-target";Oe.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),Oe.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const Pa=t=>(zd(),Oe.sanitize(t)),rs=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=Pa(t):r!=="loose"&&(t=qa(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=Yd(t))}return t},ci=(t,e)=>t&&(e.dompurifyConfig?t=Oe.sanitize(rs(t,e),e.dompurifyConfig).toString():t=Oe.sanitize(rs(t,e),{FORBID_TAGS:["style"]}).toString(),t),Hd=(t,e)=>typeof t=="string"?ci(t,e):t.flat().map(i=>ci(i,e)),jd=t=>_i.test(t),Ud=t=>t.split(_i),Yd=t=>t.replace(/#br#/g,"<br/>"),qa=t=>t.replace(_i,"#br#"),Gd=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},za=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),Vd=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},Xd=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},Kx=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r<e.length;r++){let n=e[r];if(n===","&&r>0&&r+1<e.length){const o=e[r-1],s=e[r+1];Kd(o,s)&&(n=o+","+s,r++,i.pop())}i.push(Zd(n))}return i.join("")},fn=(t,e)=>Math.max(0,t.split(e).length-1),Kd=(t,e)=>{const i=fn(t,"~"),r=fn(e,"~");return i===1&&r===1},Zd=t=>{const e=fn(t,"~");let i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);const r=[...t];let n=r.indexOf("~"),o=r.lastIndexOf("~");for(;n!==-1&&o!==-1&&n!==o;)r[n]="<",r[o]=">",n=r.indexOf("~"),o=r.lastIndexOf("~");return i&&r.unshift("~"),r.join("")},ns=()=>window.MathMLElement!==void 0,dn=/\$\$(.*)\$\$/g,os=t=>{var e;return(((e=t.match(dn))==null?void 0:e.length)??0)>0},Zx=async(t,e)=>{t=await Jd(t,e);const i=document.createElement("div");i.innerHTML=t,i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0";const r=document.querySelector("body");r==null||r.insertAdjacentElement("beforeend",i);const n={width:i.clientWidth,height:i.clientHeight};return i.remove(),n},Jd=async(t,e)=>{if(!os(t))return t;if(!ns()&&!e.legacyMathML)return t.replace(dn,"MathML is unsupported in this environment.");const{default:i}=await Z(()=>import("../katex-ffb0e8f1-xpx6yKzS.js"),[]);return t.split(_i).map(r=>os(r)?`
<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
${r}
</div>
`:`<div>${r}</div>`).join("").replace(dn,(r,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:ns()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},Rn={getRows:qd,sanitizeText:ci,sanitizeTextOrArray:Hd,hasBreaks:jd,splitBreaks:Ud,lineBreakRegex:_i,removeScript:Pa,getUrl:Gd,evaluate:za,getMax:Vd,getMin:Xd},qi={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;switch(r){case"r":return qi.hue2rgb(o,n,t+1/3)*255;case"g":return qi.hue2rgb(o,n,t)*255;case"b":return qi.hue2rgb(o,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),o=Math.min(t,e,i),s=(n+o)/2;if(r==="l")return s*100;if(n===o)return 0;const a=n-o,l=s>.5?a/(2-n-o):a/(n+o);if(r==="s")return l*100;switch(n){case t:return((e-i)/a+(e<i?6:0))*60;case e:return((i-t)/a+2)*60;case i:return((t-e)/a+4)*60;default:return-1}}},Qd=qi,tp={clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},ep=tp,ip={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},rp=ip,np={channel:Qd,lang:ep,unit:rp},z=np,ee={};for(let t=0;t<=255;t++)ee[t]=z.unit.dec2hex(t);const at={ALL:0,RGB:1,HSL:2};class op{constructor(){this.type=at.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=at.ALL}is(e){return this.type===e}}const sp=op;class ap{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new sp}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=at.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=z.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=z.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=z.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=z.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=z.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=z.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(at.HSL)&&i!==void 0?i:(this._ensureHSL(),z.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(at.HSL)&&i!==void 0?i:(this._ensureHSL(),z.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(at.HSL)&&i!==void 0?i:(this._ensureHSL(),z.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(at.RGB)&&i!==void 0?i:(this._ensureRGB(),z.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(at.RGB)&&i!==void 0?i:(this._ensureRGB(),z.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(at.RGB)&&i!==void 0?i:(this._ensureRGB(),z.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(at.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(at.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(at.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(at.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(at.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(at.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const lp=ap,cp=new lp({r:0,g:0,b:0,a:0},"transparent"),br=cp,Wa={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Wa.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,o=n%4===0,s=n>4,a=s?1:17,l=s?8:4,c=o?0:-1,u=s?255:15;return br.set({r:(r>>l*(c+3)&u)*a,g:(r>>l*(c+2)&u)*a,b:(r>>l*(c+1)&u)*a,a:o?(r&u)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${ee[Math.round(e)]}${ee[Math.round(i)]}${ee[Math.round(r)]}${ee[Math.round(n*255)]}`:`#${ee[Math.round(e)]}${ee[Math.round(i)]}${ee[Math.round(r)]}`}},Qe=Wa,zi={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(zi.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return z.channel.clamp.h(parseFloat(i)*.9);case"rad":return z.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return z.channel.clamp.h(parseFloat(i)*360)}}return z.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(zi.re);if(!i)return;const[,r,n,o,s,a]=i;return br.set({h:zi._hue2deg(r),s:z.channel.clamp.s(parseFloat(n)),l:z.channel.clamp.l(parseFloat(o)),a:s?z.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${z.lang.round(e)}, ${z.lang.round(i)}%, ${z.lang.round(r)}%, ${n})`:`hsl(${z.lang.round(e)}, ${z.lang.round(i)}%, ${z.lang.round(r)}%)`}},Ei=zi,Wi={colors:{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",cyanaqua:"#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",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",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",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",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",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=Wi.colors[t];if(e)return Qe.parse(e)},stringify:t=>{const e=Qe.stringify(t);for(const i in Wi.colors)if(Wi.colors[i]===e)return i}},ss=Wi,Ha={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(Ha.re);if(!i)return;const[,r,n,o,s,a,l,c,u]=i;return br.set({r:z.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:z.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:z.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:c?z.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${z.lang.round(e)}, ${z.lang.round(i)}, ${z.lang.round(r)}, ${z.lang.round(n)})`:`rgb(${z.lang.round(e)}, ${z.lang.round(i)}, ${z.lang.round(r)})`}},Oi=Ha,hp={format:{keyword:ss,hex:Qe,rgb:Oi,rgba:Oi,hsl:Ei,hsla:Ei},parse:t=>{if(typeof t!="string")return t;const e=Qe.parse(t)||Oi.parse(t)||Ei.parse(t)||ss.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(at.HSL)||t.data.r===void 0?Ei.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Oi.stringify(t):Qe.stringify(t)},It=hp,up=(t,e)=>{const i=It.parse(t);for(const r in e)i[r]=z.channel.clamp[r](e[r]);return It.stringify(i)},ja=up,fp=(t,e,i=0,r=1)=>{if(typeof t!="number")return ja(t,{a:e});const n=br.set({r:z.channel.clamp.r(t),g:z.channel.clamp.g(e),b:z.channel.clamp.b(i),a:z.channel.clamp.a(r)});return It.stringify(n)},ti=fp,dp=t=>{const{r:e,g:i,b:r}=It.parse(t),n=.2126*z.channel.toLinear(e)+.7152*z.channel.toLinear(i)+.0722*z.channel.toLinear(r);return z.lang.round(n)},pp=dp,gp=t=>pp(t)>=.5,mp=gp,_p=t=>!mp(t),yi=_p,yp=(t,e,i)=>{const r=It.parse(t),n=r[e],o=z.channel.clamp[e](n+i);return n!==o&&(r[e]=o),It.stringify(r)},Ua=yp,Cp=(t,e)=>Ua(t,"l",e),I=Cp,bp=(t,e)=>Ua(t,"l",-e),P=bp,xp=(t,e)=>{const i=It.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return ja(t,r)},g=xp,Tp=(t,e,i=50)=>{const{r,g:n,b:o,a:s}=It.parse(t),{r:a,g:l,b:c,a:u}=It.parse(e),f=i/100,h=f*2-1,d=s-u,T=((h*d===-1?h:(h+d)/(1+h*d))+1)/2,w=1-T,A=r*T+a*w,y=n*T+l*w,E=o*T+c*w,L=s*f+u*(1-f);return ti(A,y,E,L)},vp=Tp,kp=(t,e=100)=>{const i=It.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,vp(i,t,e)},v=kp,ut=(t,e)=>e?g(t,{s:-40,l:10}):g(t,{s:-40,l:-10}),xr="#ffffff",Tr="#f2f2f2";let Sp=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,n,o,s,a,l,c,u,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||g(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||g(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ut(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ut(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||v(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||v(this.tertiaryColor),this.lineColor=this.lineColor||v(this.background),this.arrowheadColor=this.arrowheadColor||v(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||P(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||v(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||I(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.darkMode)for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=P(this["cScale"+d],75);else for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=P(this["cScale"+d],25);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||v(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||I(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||P(this["cScale"+d],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=this["cScaleLabel"+d]||this.scaleLabelColor;const h=this.darkMode?-4:-1;for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||g(this.mainBkg,{h:180,s:-15,l:h*(5+d*3)}),this["surfacePeer"+d]=this["surfacePeer"+d]||g(this.mainBkg,{h:180,s:-15,l:h*(8+d*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||g(this.primaryColor,{h:64}),this.fillType3=this.fillType3||g(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||g(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||g(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||g(this.primaryColor,{h:128}),this.fillType7=this.fillType7||g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-10}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||yi(this.quadrant1Fill)?I(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=I(this.git0,25),this.git1=I(this.git1,25),this.git2=I(this.git2,25),this.git3=I(this.git3,25),this.git4=I(this.git4,25),this.git5=I(this.git5,25),this.git6=I(this.git6,25),this.git7=I(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Tr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const wp=t=>{const e=new Sp;return e.calculate(t),e};let Bp=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=I(this.primaryColor,16),this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=v(this.background),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=I(v("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=ti(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=P("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=P(this.sectionBkgColor,10),this.taskBorderColor=ti(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ti(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,n,o,s,a,l,c,u,f;this.secondBkg=I(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=I(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=I(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330});for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||v(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScalePeer"+h]=this["cScalePeer"+h]||I(this["cScale"+h],10);for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||g(this.mainBkg,{h:30,s:-30,l:-(-10+h*4)}),this["surfacePeer"+h]=this["surfacePeer"+h]||g(this.mainBkg,{h:30,s:-30,l:-(-7+h*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["pie"+h]=this["cScale"+h];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||yi(this.quadrant1Fill)?I(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=I(this.secondaryColor,20),this.git1=I(this.pie2||this.secondaryColor,20),this.git2=I(this.pie3||this.tertiaryColor,20),this.git3=I(this.pie4||g(this.primaryColor,{h:-30}),20),this.git4=I(this.pie5||g(this.primaryColor,{h:-60}),20),this.git5=I(this.pie6||g(this.primaryColor,{h:-90}),10),this.git6=I(this.pie7||g(this.primaryColor,{h:60}),10),this.git7=I(this.pie8||g(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||I(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||I(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Ap=t=>{const e=new Bp;return e.calculate(t),e};let Lp=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=g(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=ti(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,n,o,s,a,l,c,u,f;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||P(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||P(this.tertiaryColor,40);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=P(this["cScale"+h],10),this["cScalePeer"+h]=this["cScalePeer"+h]||P(this["cScale"+h],25);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||g(this["cScale"+h],{h:180});for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||g(this.mainBkg,{h:30,l:-(5+h*5)}),this["surfacePeer"+h]=this["surfacePeer"+h]||g(this.mainBkg,{h:30,l:-(7+h*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||v(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||v(this.labelTextColor);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=I(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||g(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||g(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||yi(this.quadrant1Fill)?I(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=I(this.git0,25),this.git1=I(this.git1,25),this.git2=I(this.git2,25),this.git3=I(this.git3,25),this.git4=I(this.git4,25),this.git5=I(this.git5,25),this.git6=I(this.git6,25),this.git7=I(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||P(v(this.git0),25),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Tr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Fp=t=>{const e=new Lp;return e.calculate(t),e};let Ep=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=I("#cde498",10),this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.primaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,u,f;this.actorBorder=P(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||P(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||P(this.tertiaryColor,40);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=P(this["cScale"+h],10),this["cScalePeer"+h]=this["cScalePeer"+h]||P(this["cScale"+h],25);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||g(this["cScale"+h],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||g(this.mainBkg,{h:30,s:-30,l:-(5+h*5)}),this["surfacePeer"+h]=this["surfacePeer"+h]||g(this.mainBkg,{h:30,s:-30,l:-(8+h*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||g(this.primaryColor,{l:-30}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||yi(this.quadrant1Fill)?I(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=I(this.git0,25),this.git1=I(this.git1,25),this.git2=I(this.git2,25),this.git3=I(this.git3,25),this.git4=I(this.git4,25),this.git5=I(this.git5,25),this.git6=I(this.git6,25),this.git7=I(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Tr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Op=t=>{const e=new Ep;return e.calculate(t),e};class Mp{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=I(this.contrast,55),this.background="#ffffff",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,u,f;this.secondBkg=I(this.contrast,55),this.border2=this.contrast,this.actorBorder=I(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||v(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this.darkMode?this["cScalePeer"+h]=this["cScalePeer"+h]||I(this["cScale"+h],10):this["cScalePeer"+h]=this["cScalePeer"+h]||P(this["cScale"+h],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||g(this.mainBkg,{l:-(5+h*5)}),this["surfacePeer"+h]=this["surfacePeer"+h]||g(this.mainBkg,{l:-(8+h*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=I(this.contrast,30),this.sectionBkgColor2=I(this.contrast,30),this.taskBorderColor=P(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=I(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=P(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128});for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["pie"+h]=this["cScale"+h];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||yi(this.quadrant1Fill)?I(this.quadrant1Fill):P(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=P(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||g(this.primaryColor,{h:-30}),this.git4=this.pie5||g(this.primaryColor,{h:-60}),this.git5=this.pie6||g(this.primaryColor,{h:-90}),this.git6=this.pie7||g(this.primaryColor,{h:60}),this.git7=this.pie8||g(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||xr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Tr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const $p=t=>{const e=new Mp;return e.calculate(t),e},Vt={base:{getThemeVariables:wp},dark:{getThemeVariables:Ap},default:{getThemeVariables:Fp},forest:{getThemeVariables:Op},neutral:{getThemeVariables:$p}},Ut={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},Ya={...Ut,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Vt.default.getThemeVariables(),sequence:{...Ut.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...Ut.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Ut.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...Ut.pie,useWidth:984},xyChart:{...Ut.xyChart,useWidth:void 0},requirement:{...Ut.requirement,useWidth:void 0},gitGraph:{...Ut.gitGraph,useMaxWidth:!1},sankey:{...Ut.sankey,useMaxWidth:!1}},Ga=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...Ga(t[r],"")]:[...i,e+r],[]),Ip=new Set(Ga(Ya,"")),Dp=Ya,ir=t=>{if(N.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>ir(e));return}for(const e of Object.keys(t)){if(N.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Ip.has(e)||t[e]==null){N.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){N.debug("sanitizing object",e),ir(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(N.debug("sanitizing css option",e),t[e]=Np(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}N.debug("After sanitization",t)}},Np=t=>{let e=0,i=0;for(const r of t){if(e<i)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?e++:r==="}"&&i++}return e!==i?"{ /* ERROR: Unbalanced CSS */ }":t},Va=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,ei=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Rp=/\s*%%.*\n/gm;class Xa extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const Me={},vr=function(t,e){t=t.replace(Va,"").replace(ei,"").replace(Rp,`
`);for(const[i,{detector:r}]of Object.entries(Me))if(r(t,e))return i;throw new Xa(`No diagram type detected matching given configuration for text: ${t}`)},Ka=(...t)=>{for(const{id:e,detector:i,loader:r}of t)Za(e,i,r)},Za=(t,e,i)=>{Me[t]?N.error(`Detector with key ${t} already exists`):Me[t]={detector:e,loader:i},N.debug(`Detector with key ${t} added${i?" with loader":""}`)},Pp=t=>Me[t].loader,pn=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>pn(t,o,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=pn(t[o],e[o],{depth:i-1,clobber:r})):(r||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},lt=pn;var qp=typeof global=="object"&&global&&global.Object===Object&&global;const Ja=qp;var zp=typeof self=="object"&&self&&self.Object===Object&&self,Wp=Ja||zp||Function("return this")();const Rt=Wp;var Hp=Rt.Symbol;const rr=Hp;var Qa=Object.prototype,jp=Qa.hasOwnProperty,Up=Qa.toString,Ve=rr?rr.toStringTag:void 0;function Yp(t){var e=jp.call(t,Ve),i=t[Ve];try{t[Ve]=void 0;var r=!0}catch{}var n=Up.call(t);return r&&(e?t[Ve]=i:delete t[Ve]),n}var Gp=Object.prototype,Vp=Gp.toString;function Xp(t){return Vp.call(t)}var Kp="[object Null]",Zp="[object Undefined]",as=rr?rr.toStringTag:void 0;function Re(t){return t==null?t===void 0?Zp:Kp:as&&as in Object(t)?Yp(t):Xp(t)}function ye(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Jp="[object AsyncFunction]",Qp="[object Function]",tg="[object GeneratorFunction]",eg="[object Proxy]";function Pn(t){if(!ye(t))return!1;var e=Re(t);return e==Qp||e==tg||e==Jp||e==eg}var ig=Rt["__core-js_shared__"];const Gr=ig;var ls=function(){var t=/[^.]+$/.exec(Gr&&Gr.keys&&Gr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function rg(t){return!!ls&&ls in t}var ng=Function.prototype,og=ng.toString;function Ce(t){if(t!=null){try{return og.call(t)}catch{}try{return t+""}catch{}}return""}var sg=/[\\^$.*+?()[\]{}|]/g,ag=/^\[object .+?Constructor\]$/,lg=Function.prototype,cg=Object.prototype,hg=lg.toString,ug=cg.hasOwnProperty,fg=RegExp("^"+hg.call(ug).replace(sg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dg(t){if(!ye(t)||rg(t))return!1;var e=Pn(t)?fg:ag;return e.test(Ce(t))}function pg(t,e){return t==null?void 0:t[e]}function be(t,e){var i=pg(t,e);return dg(i)?i:void 0}var gg=be(Object,"create");const hi=gg;function mg(){this.__data__=hi?hi(null):{},this.size=0}function _g(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var yg="__lodash_hash_undefined__",Cg=Object.prototype,bg=Cg.hasOwnProperty;function xg(t){var e=this.__data__;if(hi){var i=e[t];return i===yg?void 0:i}return bg.call(e,t)?e[t]:void 0}var Tg=Object.prototype,vg=Tg.hasOwnProperty;function kg(t){var e=this.__data__;return hi?e[t]!==void 0:vg.call(e,t)}var Sg="__lodash_hash_undefined__";function wg(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=hi&&e===void 0?Sg:e,this}function me(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}me.prototype.clear=mg;me.prototype.delete=_g;me.prototype.get=xg;me.prototype.has=kg;me.prototype.set=wg;function Bg(){this.__data__=[],this.size=0}function kr(t,e){return t===e||t!==t&&e!==e}function Sr(t,e){for(var i=t.length;i--;)if(kr(t[i][0],e))return i;return-1}var Ag=Array.prototype,Lg=Ag.splice;function Fg(t){var e=this.__data__,i=Sr(e,t);if(i<0)return!1;var r=e.length-1;return i==r?e.pop():Lg.call(e,i,1),--this.size,!0}function Eg(t){var e=this.__data__,i=Sr(e,t);return i<0?void 0:e[i][1]}function Og(t){return Sr(this.__data__,t)>-1}function Mg(t,e){var i=this.__data__,r=Sr(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function Kt(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}Kt.prototype.clear=Bg;Kt.prototype.delete=Fg;Kt.prototype.get=Eg;Kt.prototype.has=Og;Kt.prototype.set=Mg;var $g=be(Rt,"Map");const ui=$g;function Ig(){this.size=0,this.__data__={hash:new me,map:new(ui||Kt),string:new me}}function Dg(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function wr(t,e){var i=t.__data__;return Dg(e)?i[typeof e=="string"?"string":"hash"]:i.map}function Ng(t){var e=wr(this,t).delete(t);return this.size-=e?1:0,e}function Rg(t){return wr(this,t).get(t)}function Pg(t){return wr(this,t).has(t)}function qg(t,e){var i=wr(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this}function se(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}se.prototype.clear=Ig;se.prototype.delete=Ng;se.prototype.get=Rg;se.prototype.has=Pg;se.prototype.set=qg;var zg="Expected a function";function Ci(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(zg);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s)||o,s};return i.cache=new(Ci.Cache||se),i}Ci.Cache=se;function Wg(){this.__data__=new Kt,this.size=0}function Hg(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}function jg(t){return this.__data__.get(t)}function Ug(t){return this.__data__.has(t)}var Yg=200;function Gg(t,e){var i=this.__data__;if(i instanceof Kt){var r=i.__data__;if(!ui||r.length<Yg-1)return r.push([t,e]),this.size=++i.size,this;i=this.__data__=new se(r)}return i.set(t,e),this.size=i.size,this}function Pe(t){var e=this.__data__=new Kt(t);this.size=e.size}Pe.prototype.clear=Wg;Pe.prototype.delete=Hg;Pe.prototype.get=jg;Pe.prototype.has=Ug;Pe.prototype.set=Gg;var Vg=function(){try{var t=be(Object,"defineProperty");return t({},"",{}),t}catch{}}();const nr=Vg;function qn(t,e,i){e=="__proto__"&&nr?nr(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function gn(t,e,i){(i!==void 0&&!kr(t[e],i)||i===void 0&&!(e in t))&&qn(t,e,i)}function Xg(t){return function(e,i,r){for(var n=-1,o=Object(e),s=r(e),a=s.length;a--;){var l=s[t?a:++n];if(i(o[l],l,o)===!1)break}return e}}var Kg=Xg();const Zg=Kg;var tl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,cs=tl&&typeof module=="object"&&module&&!module.nodeType&&module,Jg=cs&&cs.exports===tl,hs=Jg?Rt.Buffer:void 0,us=hs?hs.allocUnsafe:void 0;function Qg(t,e){if(e)return t.slice();var i=t.length,r=us?us(i):new t.constructor(i);return t.copy(r),r}var tm=Rt.Uint8Array;const fs=tm;function em(t){var e=new t.constructor(t.byteLength);return new fs(e).set(new fs(t)),e}function im(t,e){var i=e?em(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function rm(t,e){var i=-1,r=t.length;for(e||(e=Array(r));++i<r;)e[i]=t[i];return e}var ds=Object.create,nm=function(){function t(){}return function(e){if(!ye(e))return{};if(ds)return ds(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();const om=nm;function el(t,e){return function(i){return t(e(i))}}var sm=el(Object.getPrototypeOf,Object);const il=sm;var am=Object.prototype;function Br(t){var e=t&&t.constructor,i=typeof e=="function"&&e.prototype||am;return t===i}function lm(t){return typeof t.constructor=="function"&&!Br(t)?om(il(t)):{}}function bi(t){return t!=null&&typeof t=="object"}var cm="[object Arguments]";function ps(t){return bi(t)&&Re(t)==cm}var rl=Object.prototype,hm=rl.hasOwnProperty,um=rl.propertyIsEnumerable,fm=ps(function(){return arguments}())?ps:function(t){return bi(t)&&hm.call(t,"callee")&&!um.call(t,"callee")};const or=fm;var dm=Array.isArray;const sr=dm;var pm=9007199254740991;function nl(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=pm}function Ar(t){return t!=null&&nl(t.length)&&!Pn(t)}function gm(t){return bi(t)&&Ar(t)}function mm(){return!1}var ol=typeof exports=="object"&&exports&&!exports.nodeType&&exports,gs=ol&&typeof module=="object"&&module&&!module.nodeType&&module,_m=gs&&gs.exports===ol,ms=_m?Rt.Buffer:void 0,ym=ms?ms.isBuffer:void 0,Cm=ym||mm;const zn=Cm;var bm="[object Object]",xm=Function.prototype,Tm=Object.prototype,sl=xm.toString,vm=Tm.hasOwnProperty,km=sl.call(Object);function Sm(t){if(!bi(t)||Re(t)!=bm)return!1;var e=il(t);if(e===null)return!0;var i=vm.call(e,"constructor")&&e.constructor;return typeof i=="function"&&i instanceof i&&sl.call(i)==km}var wm="[object Arguments]",Bm="[object Array]",Am="[object Boolean]",Lm="[object Date]",Fm="[object Error]",Em="[object Function]",Om="[object Map]",Mm="[object Number]",$m="[object Object]",Im="[object RegExp]",Dm="[object Set]",Nm="[object String]",Rm="[object WeakMap]",Pm="[object ArrayBuffer]",qm="[object DataView]",zm="[object Float32Array]",Wm="[object Float64Array]",Hm="[object Int8Array]",jm="[object Int16Array]",Um="[object Int32Array]",Ym="[object Uint8Array]",Gm="[object Uint8ClampedArray]",Vm="[object Uint16Array]",Xm="[object Uint32Array]",X={};X[zm]=X[Wm]=X[Hm]=X[jm]=X[Um]=X[Ym]=X[Gm]=X[Vm]=X[Xm]=!0;X[wm]=X[Bm]=X[Pm]=X[Am]=X[qm]=X[Lm]=X[Fm]=X[Em]=X[Om]=X[Mm]=X[$m]=X[Im]=X[Dm]=X[Nm]=X[Rm]=!1;function Km(t){return bi(t)&&nl(t.length)&&!!X[Re(t)]}function Zm(t){return function(e){return t(e)}}var al=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ii=al&&typeof module=="object"&&module&&!module.nodeType&&module,Jm=ii&&ii.exports===al,Vr=Jm&&Ja.process,Qm=function(){try{var t=ii&&ii.require&&ii.require("util").types;return t||Vr&&Vr.binding&&Vr.binding("util")}catch{}}();const _s=Qm;var ys=_s&&_s.isTypedArray,t_=ys?Zm(ys):Km;const Wn=t_;function mn(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var e_=Object.prototype,i_=e_.hasOwnProperty;function r_(t,e,i){var r=t[e];(!(i_.call(t,e)&&kr(r,i))||i===void 0&&!(e in t))&&qn(t,e,i)}function n_(t,e,i,r){var n=!i;i||(i={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=r?r(i[a],t[a],a,i,t):void 0;l===void 0&&(l=t[a]),n?qn(i,a,l):r_(i,a,l)}return i}function o_(t,e){for(var i=-1,r=Array(t);++i<t;)r[i]=e(i);return r}var s_=9007199254740991,a_=/^(?:0|[1-9]\d*)$/;function ll(t,e){var i=typeof t;return e=e??s_,!!e&&(i=="number"||i!="symbol"&&a_.test(t))&&t>-1&&t%1==0&&t<e}var l_=Object.prototype,c_=l_.hasOwnProperty;function h_(t,e){var i=sr(t),r=!i&&or(t),n=!i&&!r&&zn(t),o=!i&&!r&&!n&&Wn(t),s=i||r||n||o,a=s?o_(t.length,String):[],l=a.length;for(var c in t)(e||c_.call(t,c))&&!(s&&(c=="length"||n&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ll(c,l)))&&a.push(c);return a}function u_(t){var e=[];if(t!=null)for(var i in Object(t))e.push(i);return e}var f_=Object.prototype,d_=f_.hasOwnProperty;function p_(t){if(!ye(t))return u_(t);var e=Br(t),i=[];for(var r in t)r=="constructor"&&(e||!d_.call(t,r))||i.push(r);return i}function cl(t){return Ar(t)?h_(t,!0):p_(t)}function g_(t){return n_(t,cl(t))}function m_(t,e,i,r,n,o,s){var a=mn(t,i),l=mn(e,i),c=s.get(l);if(c){gn(t,i,c);return}var u=o?o(a,l,i+"",t,e,s):void 0,f=u===void 0;if(f){var h=sr(l),d=!h&&zn(l),_=!h&&!d&&Wn(l);u=l,h||d||_?sr(a)?u=a:gm(a)?u=rm(a):d?(f=!1,u=Qg(l,!0)):_?(f=!1,u=im(l,!0)):u=[]:Sm(l)||or(l)?(u=a,or(a)?u=g_(a):(!ye(a)||Pn(a))&&(u=lm(l))):f=!1}f&&(s.set(l,u),n(u,l,r,o,s),s.delete(l)),gn(t,i,u)}function hl(t,e,i,r,n){t!==e&&Zg(e,function(o,s){if(n||(n=new Pe),ye(o))m_(t,e,s,i,hl,r,n);else{var a=r?r(mn(t,s),o,s+"",t,e,n):void 0;a===void 0&&(a=o),gn(t,s,a)}},cl)}function ul(t){return t}function __(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}var Cs=Math.max;function y_(t,e,i){return e=Cs(e===void 0?t.length-1:e,0),function(){for(var r=arguments,n=-1,o=Cs(r.length-e,0),s=Array(o);++n<o;)s[n]=r[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=r[n];return a[e]=i(s),__(t,this,a)}}function C_(t){return function(){return t}}var b_=nr?function(t,e){return nr(t,"toString",{configurable:!0,enumerable:!1,value:C_(e),writable:!0})}:ul;const x_=b_;var T_=800,v_=16,k_=Date.now;function S_(t){var e=0,i=0;return function(){var r=k_(),n=v_-(r-i);if(i=r,n>0){if(++e>=T_)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var w_=S_(x_);const B_=w_;function A_(t,e){return B_(y_(t,e,ul),t+"")}function L_(t,e,i){if(!ye(i))return!1;var r=typeof e;return(r=="number"?Ar(i)&&ll(e,i.length):r=="string"&&e in i)?kr(i[e],t):!1}function F_(t){return A_(function(e,i){var r=-1,n=i.length,o=n>1?i[n-1]:void 0,s=n>2?i[2]:void 0;for(o=t.length>3&&typeof o=="function"?(n--,o):void 0,s&&L_(i[0],i[1],s)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var a=i[r];a&&t(e,a,r,o)}return e})}var E_=F_(function(t,e,i){hl(t,e,i)});const O_=E_,M_="",$_={curveBasis:nd,curveBasisClosed:od,curveBasisOpen:sd,curveBumpX:id,curveBumpY:rd,curveBundle:ad,curveCardinalClosed:cd,curveCardinalOpen:hd,curveCardinal:ld,curveCatmullRomClosed:fd,curveCatmullRomOpen:dd,curveCatmullRom:ud,curveLinear:ed,curveLinearClosed:pd,curveMonotoneX:gd,curveMonotoneY:md,curveNatural:_d,curveStep:yd,curveStepAfter:bd,curveStepBefore:Cd},I_=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,D_=function(t,e){const i=fl(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const s=i.map(a=>a.args);ir(s),r=lt(r,[...s])}else r=i.args;if(!r)return;let n=vr(t,e);const o="config";return r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o]),r},fl=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${I_.source})(?=[}][%]{2}).*
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),N.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=ei.exec(t))!==null;)if(r.index===ei.lastIndex&&ei.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return N.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},N_=function(t){return t.replace(ei,"")},R_=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function P_(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return $_[i]??e}function q_(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Xs.sanitizeUrl(i):i}const z_=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s<r;s++)if(o=o[i[s]],!o){N.error(`Function name: ${t} not found in window`);return}o[n](...e)};function dl(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function W_(t){let e,i=0;t.forEach(n=>{i+=dl(n,e),e=n});const r=i/2;return Hn(t,r)}function H_(t){return t.length===1?t[0]:W_(t)}const bs=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Hn=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=dl(n,i);if(o<r)r-=o;else{const s=r/o;if(s<=0)return i;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:bs((1-s)*i.x+s*n.x,5),y:bs((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},j_=(t,e,i)=>{N.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Hn(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function U_(t,e,i){const r=structuredClone(i);N.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Hn(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function Y_(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let xs=0;const G_=()=>(xs++,"id-"+Math.random().toString(36).substr(2,12)+"-"+xs);function V_(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const X_=t=>V_(t.length),K_=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},Z_=function(t,e){const i=e.text.replace(Rn.lineBreakRegex," "),[,r]=Un(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},J_=Ci((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),Rn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=ar(`${s} `,i),c=ar(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:d}=Q_(s,e,"-",i);n.push(o,...h),o=d}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Q_=Ci((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(ar(c,r)>=e){const f=l+1,h=n.length===f,d=`${c}${i}`;o.push(h?c:d),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function t0(t,e){return jn(t,e).height}function ar(t,e){return jn(t,e).width}const jn=Ci((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Un(i),s=["sans-serif",r],a=t.split(Rn.lineBreakRegex),l=[],c=vt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of s){let d=0;const _={width:0,height:0,lineHeight:0};for(const T of a){const w=K_();w.text=T||M_;const A=Z_(u,w).style("font-size",o).style("font-weight",n).style("font-family",h),y=(A._groups||A)[0][0].getBBox();if(y.width===0&&y.height===0)throw new Error("svg element not in render tree");_.width=Math.round(Math.max(_.width,y.width)),d=Math.round(y.height),_.height+=d,_.lineHeight=Math.round(Math.max(_.lineHeight,d))}l.push(_)}u.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class e0{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let Mi;const i0=function(t){return Mi=Mi||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Mi.innerHTML=t,unescape(Mi.textContent)};function pl(t){return"str"in t}const r0=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Un=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function gl(t,e){return O_({},t,e)}const ri={assignWithDepth:lt,wrapLabel:J_,calculateTextHeight:t0,calculateTextWidth:ar,calculateTextDimensions:jn,cleanAndMerge:gl,detectInit:D_,detectDirective:fl,isSubstringInArray:R_,interpolateToCurve:P_,calcLabelPosition:H_,calcCardinalityPosition:j_,calcTerminalLabelPosition:U_,formatUrl:q_,getStylesFromArray:Y_,generateId:G_,random:X_,runFunc:z_,entityDecode:i0,insertTitle:r0,parseFontSize:Un,InitIDGenerator:e0},n0=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},o0=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")};var ml="comm",_l="rule",yl="decl",s0="@import",a0="@keyframes",l0="@layer",Cl=Math.abs,Yn=String.fromCharCode;function bl(t){return t.trim()}function Hi(t,e,i){return t.replace(e,i)}function c0(t,e,i){return t.indexOf(e,i)}function fi(t,e){return t.charCodeAt(e)|0}function di(t,e,i){return t.slice(e,i)}function Yt(t){return t.length}function h0(t){return t.length}function $i(t,e){return e.push(t),t}var Lr=1,$e=1,xl=0,kt=0,tt=0,qe="";function Gn(t,e,i,r,n,o,s,a){return{value:t,root:e,parent:i,type:r,props:n,children:o,line:Lr,column:$e,length:s,return:"",siblings:a}}function u0(){return tt}function f0(){return tt=kt>0?fi(qe,--kt):0,$e--,tt===10&&($e=1,Lr--),tt}function Lt(){return tt=kt<xl?fi(qe,kt++):0,$e++,tt===10&&($e=1,Lr++),tt}function de(){return fi(qe,kt)}function ji(){return kt}function Fr(t,e){return di(qe,t,e)}function _n(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function d0(t){return Lr=$e=1,xl=Yt(qe=t),kt=0,[]}function p0(t){return qe="",t}function Xr(t){return bl(Fr(kt-1,yn(t===91?t+2:t===40?t+1:t)))}function g0(t){for(;(tt=de())&&tt<33;)Lt();return _n(t)>2||_n(tt)>3?"":" "}function m0(t,e){for(;--e&&Lt()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return Fr(t,ji()+(e<6&&de()==32&&Lt()==32))}function yn(t){for(;Lt();)switch(tt){case t:return kt;case 34:case 39:t!==34&&t!==39&&yn(tt);break;case 40:t===41&&yn(t);break;case 92:Lt();break}return kt}function _0(t,e){for(;Lt()&&t+tt!==57;)if(t+tt===84&&de()===47)break;return"/*"+Fr(e,kt-1)+"*"+Yn(t===47?t:Lt())}function y0(t){for(;!_n(de());)Lt();return Fr(t,kt)}function C0(t){return p0(Ui("",null,null,null,[""],t=d0(t),0,[0],t))}function Ui(t,e,i,r,n,o,s,a,l){for(var c=0,u=0,f=s,h=0,d=0,_=0,T=1,w=1,A=1,y=0,E="",L=n,R=o,m=r,b=E;w;)switch(_=y,y=Lt()){case 40:if(_!=108&&fi(b,f-1)==58){c0(b+=Hi(Xr(y),"&","&\f"),"&\f",Cl(c?a[c-1]:0))!=-1&&(A=-1);break}case 34:case 39:case 91:b+=Xr(y);break;case 9:case 10:case 13:case 32:b+=g0(_);break;case 92:b+=m0(ji()-1,7);continue;case 47:switch(de()){case 42:case 47:$i(b0(_0(Lt(),ji()),e,i,l),l);break;default:b+="/"}break;case 123*T:a[c++]=Yt(b)*A;case 125*T:case 59:case 0:switch(y){case 0:case 125:w=0;case 59+u:A==-1&&(b=Hi(b,/\f/g,"")),d>0&&Yt(b)-f&&$i(d>32?vs(b+";",r,i,f-1,l):vs(Hi(b," ","")+";",r,i,f-2,l),l);break;case 59:b+=";";default:if($i(m=Ts(b,e,i,c,u,n,a,E,L=[],R=[],f,o),o),y===123)if(u===0)Ui(b,e,m,m,L,o,f,a,R);else switch(h===99&&fi(b,3)===110?100:h){case 100:case 108:case 109:case 115:Ui(t,m,m,r&&$i(Ts(t,m,m,0,0,n,a,E,n,L=[],f,R),R),n,R,f,a,r?L:R);break;default:Ui(b,m,m,m,[""],R,0,a,R)}}c=u=d=0,T=A=1,E=b="",f=s;break;case 58:f=1+Yt(b),d=_;default:if(T<1){if(y==123)--T;else if(y==125&&T++==0&&f0()==125)continue}switch(b+=Yn(y),y*T){case 38:A=u>0?1:(b+="\f",-1);break;case 44:a[c++]=(Yt(b)-1)*A,A=1;break;case 64:de()===45&&(b+=Xr(Lt())),h=de(),u=f=Yt(E=b+=y0(ji())),y++;break;case 45:_===45&&Yt(b)==2&&(T=0)}}return o}function Ts(t,e,i,r,n,o,s,a,l,c,u,f){for(var h=n-1,d=n===0?o:[""],_=h0(d),T=0,w=0,A=0;T<r;++T)for(var y=0,E=di(t,h+1,h=Cl(w=s[T])),L=t;y<_;++y)(L=bl(w>0?d[y]+" "+E:Hi(E,/&\f/g,d[y])))&&(l[A++]=L);return Gn(t,e,i,n===0?_l:a,l,c,u,f)}function b0(t,e,i,r){return Gn(t,e,i,ml,Yn(u0()),di(t,2,-2),0,r)}function vs(t,e,i,r,n){return Gn(t,e,i,yl,di(t,0,r),di(t,r+1,-1),r,n)}function Cn(t,e){for(var i="",r=0;r<t.length;r++)i+=e(t[r],r,t,e)||"";return i}function x0(t,e,i,r){switch(t.type){case l0:if(t.children.length)break;case s0:case yl:return t.return=t.return||t.value;case ml:return"";case a0:return t.return=t.value+"{"+Cn(t.children,r)+"}";case _l:if(!Yt(t.value=t.props.join(",")))return""}return Yt(i=Cn(t.children,r))?t.return=t.value+"{"+i+"}":""}const ks="10.9.0",Ie=Object.freeze(Dp);let gt=lt({},Ie),Tl,De=[],ni=lt({},Ie);const Er=(t,e)=>{let i=lt({},t),r={};for(const n of e)Sl(n),r=lt(r,n);if(i=lt(i,r),r.theme&&r.theme in Vt){const n=lt({},Tl),o=lt(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in Vt&&(i.themeVariables=Vt[i.theme].getThemeVariables(o))}return ni=i,wl(ni),ni},T0=t=>(gt=lt({},Ie),gt=lt(gt,t),t.theme&&Vt[t.theme]&&(gt.themeVariables=Vt[t.theme].getThemeVariables(t.themeVariables)),Er(gt,De),gt),v0=t=>{Tl=lt({},t)},k0=t=>(gt=lt(gt,t),Er(gt,De),gt),vl=()=>lt({},gt),kl=t=>(wl(t),lt(ni,t),Dt()),Dt=()=>lt({},ni),Sl=t=>{t&&(["secure",...gt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(N.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Sl(t[e])}))},S0=t=>{ir(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),De.push(t),Er(gt,De)},lr=(t=gt)=>{De=[],Er(t,De)},w0={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Ss={},B0=t=>{Ss[t]||(N.warn(w0[t]),Ss[t]=!0)},wl=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&B0("LAZY_LOAD_DEPRECATED")},Bl="c4",A0=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),L0=async()=>{const{diagram:t}=await Z(()=>import("../c4Diagram-e2511a7a-D4PtnF99.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]));return{id:Bl,diagram:t}},F0={id:Bl,detector:A0,loader:L0},E0=F0,Al="flowchart",O0=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},M0=async()=>{const{diagram:t}=await Z(()=>import("../flowDiagram-e44a2353-oPb14xqg.js"),__vite__mapDeps([8,9,10,11,12,13,14,15,16,17,18,19,20,2,3,4,5,6,7]));return{id:Al,diagram:t}},$0={id:Al,detector:O0,loader:M0},I0=$0,Ll="flowchart-v2",D0=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},N0=async()=>{const{diagram:t}=await Z(()=>import("../flowDiagram-v2-a8396bb5-B6uvWRZi.js"),__vite__mapDeps([21,9,12,10,13,11,14,15,16,17,18,19,20,2,3,4,5,6,7]));return{id:Ll,diagram:t}},R0={id:Ll,detector:D0,loader:N0},P0=R0,Fl="er",q0=t=>/^\s*erDiagram/.test(t),z0=async()=>{const{diagram:t}=await Z(()=>import("../erDiagram-582bd92f-Bdp29OHf.js"),__vite__mapDeps([22,10,11,17,18,19,2,3,4,5,6,7]));return{id:Fl,diagram:t}},W0={id:Fl,detector:q0,loader:z0},H0=W0,El="gitGraph",j0=t=>/^\s*gitGraph/.test(t),U0=async()=>{const{diagram:t}=await Z(()=>import("../gitGraphDiagram-d5d647e9-CzK63b8s.js"),__vite__mapDeps([23,2,3,4,5,6,7]));return{id:El,diagram:t}},Y0={id:El,detector:j0,loader:U0},G0=Y0,Ol="gantt",V0=t=>/^\s*gantt/.test(t),X0=async()=>{const{diagram:t}=await Z(()=>import("../ganttDiagram-05e48839-BsDG_2Rh.js"),__vite__mapDeps([24,25,26,2,3,4,5,6,7]));return{id:Ol,diagram:t}},K0={id:Ol,detector:V0,loader:X0},Z0=K0,Ml="info",J0=t=>/^\s*info/.test(t),Q0=async()=>{const{diagram:t}=await Z(()=>import("../infoDiagram-00deb277-CwQyZWUw.js"),__vite__mapDeps([27,2,3,4,5,6,7]));return{id:Ml,diagram:t}},ty={id:Ml,detector:J0,loader:Q0},$l="pie",ey=t=>/^\s*pie/.test(t),iy=async()=>{const{diagram:t}=await Z(()=>import("../pieDiagram-35c7eafc-Dbp_bXX5.js"),__vite__mapDeps([28,29,19,30,26,18,2,3,4,5,6,7]));return{id:$l,diagram:t}},ry={id:$l,detector:ey,loader:iy},Il="quadrantChart",ny=t=>/^\s*quadrantChart/.test(t),oy=async()=>{const{diagram:t}=await Z(()=>import("../quadrantDiagram-9c93c009-sY1BZ1aG.js"),__vite__mapDeps([31,25,26,2,3,4,5,6,7]));return{id:Il,diagram:t}},sy={id:Il,detector:ny,loader:oy},ay=sy,Dl="xychart",ly=t=>/^\s*xychart-beta/.test(t),cy=async()=>{const{diagram:t}=await Z(()=>import("../xychartDiagram-7b46ecfd-TpNv_eTg.js"),__vite__mapDeps([32,16,26,30,25,17,18,19,2,3,4,5,6,7]));return{id:Dl,diagram:t}},hy={id:Dl,detector:ly,loader:cy},uy=hy,Nl="requirement",fy=t=>/^\s*requirement(Diagram)?/.test(t),dy=async()=>{const{diagram:t}=await Z(()=>import("../requirementDiagram-e882bd67-Cd9l96Nf.js"),__vite__mapDeps([33,10,11,17,18,19,2,3,4,5,6,7]));return{id:Nl,diagram:t}},py={id:Nl,detector:fy,loader:dy},gy=py,Rl="sequence",my=t=>/^\s*sequenceDiagram/.test(t),_y=async()=>{const{diagram:t}=await Z(()=>import("../sequenceDiagram-1767341c-Ckf8lhi2.js"),__vite__mapDeps([34,1,2,3,4,5,6,7]));return{id:Rl,diagram:t}},yy={id:Rl,detector:my,loader:_y},Cy=yy,Pl="class",by=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},xy=async()=>{const{diagram:t}=await Z(()=>import("../classDiagram-3275847a-CoUbQdy4.js"),__vite__mapDeps([35,36,10,11,17,18,19,2,3,4,5,6,7]));return{id:Pl,diagram:t}},Ty={id:Pl,detector:by,loader:xy},vy=Ty,ql="classDiagram",ky=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Sy=async()=>{const{diagram:t}=await Z(()=>import("../classDiagram-v2-2ed0a7d3-CU0N-Hcd.js"),__vite__mapDeps([37,36,10,13,11,14,15,16,17,18,19,2,3,4,5,6,7]));return{id:ql,diagram:t}},wy={id:ql,detector:ky,loader:Sy},By=wy,zl="state",Ay=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},Ly=async()=>{const{diagram:t}=await Z(()=>import("../stateDiagram-d2e6f24f-oVYdlYR9.js"),__vite__mapDeps([38,39,10,11,17,18,19,2,3,4,5,6,7]));return{id:zl,diagram:t}},Fy={id:zl,detector:Ay,loader:Ly},Ey=Fy,Wl="stateDiagram",Oy=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},My=async()=>{const{diagram:t}=await Z(()=>import("../stateDiagram-v2-21d485ae-wuKVlWkf.js"),__vite__mapDeps([40,39,10,13,11,14,15,16,17,18,19,2,3,4,5,6,7]));return{id:Wl,diagram:t}},$y={id:Wl,detector:Oy,loader:My},Iy=$y,Hl="journey",Dy=t=>/^\s*journey/.test(t),Ny=async()=>{const{diagram:t}=await Z(()=>import("../journeyDiagram-a5efd2e1-BV9IvVjZ.js"),__vite__mapDeps([41,1,29,19,2,3,4,5,6,7]));return{id:Hl,diagram:t}},Ry={id:Hl,detector:Dy,loader:Ny},Py=Ry,qy=function(t,e){for(let i of e)t.attr(i[0],i[1])},zy=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},jl=function(t,e,i,r){const n=zy(e,i,r);qy(t,n)},Wy=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;N.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;N.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,N.info(`Calculated bounds: ${a}x${l}`),jl(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},Yi={},Hy=(t,e,i)=>{let r="";return t in Yi&&Yi[t]?r=Yi[t](i):N.warn(`No theme found for ${t}`),` & {
font-family: ${i.fontFamily};
font-size: ${i.fontSize};
fill: ${i.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${i.errorBkgColor};
}
& .error-text {
fill: ${i.errorTextColor};
stroke: ${i.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: 2px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${i.lineColor};
stroke: ${i.lineColor};
}
& .marker.cross {
stroke: ${i.lineColor};
}
& svg {
font-family: ${i.fontFamily};
font-size: ${i.fontSize};
}
${r}
${e}
`},jy=(t,e)=>{e!==void 0&&(Yi[t]=e)},Uy=Hy;let Vn="",Xn="",Kn="";const Zn=t=>ci(t,Dt()),Yy=()=>{Vn="",Kn="",Xn=""},Gy=t=>{Vn=Zn(t).replace(/^\s+/g,"")},Vy=()=>Vn,Xy=t=>{Kn=Zn(t).replace(/\n\s+/g,`
`)},Ky=()=>Kn,Zy=t=>{Xn=Zn(t)},Jy=()=>Xn,Qy=Object.freeze(Object.defineProperty({__proto__:null,clear:Yy,getAccDescription:Ky,getAccTitle:Vy,getDiagramTitle:Jy,setAccDescription:Xy,setAccTitle:Gy,setDiagramTitle:Zy},Symbol.toStringTag,{value:"Module"})),tC=N,eC=Sn,Jn=Dt,iT=kl,rT=Ie,iC=t=>ci(t,Jn()),rC=Wy,nC=()=>Qy,cr={},hr=(t,e,i)=>{var r;if(cr[t])throw new Error(`Diagram ${t} already registered.`);cr[t]=e,i&&Za(t,i),jy(t,e.styles),(r=e.injectUtils)==null||r.call(e,tC,eC,Jn,iC,rC,nC(),()=>{})},Qn=t=>{if(t in cr)return cr[t];throw new oC(t)};class oC extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const sC=t=>{var e;const{securityLevel:i}=Jn();let r=vt("body");if(i==="sandbox"){const s=((e=vt(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=vt(s.body)}return r.select(`#${t}`)},aC=(t,e,i)=>{N.debug(`rendering svg for syntax error
`);const r=sC(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),jl(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},Ul={draw:aC},lC=Ul,cC={db:{},renderer:Ul,parser:{parser:{yy:{}},parse:()=>{}}},hC=cC,Yl="flowchart-elk",uC=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},fC=async()=>{const{diagram:t}=await Z(()=>import("../flowchart-elk-definition-1a3aaf5d-CrpMlA3y.js"),__vite__mapDeps([42,9,15,16,17,18,19,2,3,4,5,6,7]));return{id:Yl,diagram:t}},dC={id:Yl,detector:uC,loader:fC},pC=dC,Gl="timeline",gC=t=>/^\s*timeline/.test(t),mC=async()=>{const{diagram:t}=await Z(()=>import("../timeline-definition-f8c5dfc0-BaOfPiRR.js"),__vite__mapDeps([43,29,19,2,3,4,5,6,7]));return{id:Gl,diagram:t}},_C={id:Gl,detector:gC,loader:mC},yC=_C,Vl="mindmap",CC=t=>/^\s*mindmap/.test(t),bC=async()=>{const{diagram:t}=await Z(()=>import("../mindmap-definition-74120bdd-DdId7Jzm.js"),__vite__mapDeps([44,16,2,3,4,5,6,7]));return{id:Vl,diagram:t}},xC={id:Vl,detector:CC,loader:bC},TC=xC,Xl="sankey",vC=t=>/^\s*sankey-beta/.test(t),kC=async()=>{const{diagram:t}=await Z(()=>import("../sankeyDiagram-f5d051b7-CEiOBqOk.js"),__vite__mapDeps([45,30,26,46,2,3,4,5,6,7]));return{id:Xl,diagram:t}},SC={id:Xl,detector:vC,loader:kC},wC=SC,Kl="block",BC=t=>/^\s*block-beta/.test(t),AC=async()=>{const{diagram:t}=await Z(()=>import("../blockDiagram-8beecd1f-CgCJKU_s.js"),__vite__mapDeps([47,14,10,20,15,16,17,18,19,30,26,46,2,3,4,5,6,7]));return{id:Kl,diagram:t}},LC={id:Kl,detector:BC,loader:AC},FC=LC;let ws=!1;const to=()=>{ws||(ws=!0,hr("error",hC,t=>t.toLowerCase().trim()==="error"),hr("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Ka(E0,By,vy,H0,Z0,ty,ry,gy,Cy,pC,P0,I0,TC,yC,G0,Iy,Ey,Py,ay,wC,uy,FC))};class Zl{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=n0(e),this.text+=`
`;const r=Dt();try{this.type=vr(e,r)}catch(o){this.type="error",this.detectError=o}const n=Qn(this.type);N.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,o;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const s=Dt();(r=this.init)==null||r.call(this,s),this.metadata.title&&((o=(n=this.db).setDiagramTitle)==null||o.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const EC=async(t,e={})=>{const i=vr(t,Dt());try{Qn(i)}catch{const n=Pp(i);if(!n)throw new Xa(`Diagram ${i} not found.`);const{id:o,diagram:s}=await n();hr(o,s)}return new Zl(t,e)};let Bs=[];const OC=()=>{Bs.forEach(t=>{t()}),Bs=[]};var MC=el(Object.keys,Object);const $C=MC;var IC=Object.prototype,DC=IC.hasOwnProperty;function NC(t){if(!Br(t))return $C(t);var e=[];for(var i in Object(t))DC.call(t,i)&&i!="constructor"&&e.push(i);return e}var RC=be(Rt,"DataView");const bn=RC;var PC=be(Rt,"Promise");const xn=PC;var qC=be(Rt,"Set");const Tn=qC;var zC=be(Rt,"WeakMap");const vn=zC;var As="[object Map]",WC="[object Object]",Ls="[object Promise]",Fs="[object Set]",Es="[object WeakMap]",Os="[object DataView]",HC=Ce(bn),jC=Ce(ui),UC=Ce(xn),YC=Ce(Tn),GC=Ce(vn),he=Re;(bn&&he(new bn(new ArrayBuffer(1)))!=Os||ui&&he(new ui)!=As||xn&&he(xn.resolve())!=Ls||Tn&&he(new Tn)!=Fs||vn&&he(new vn)!=Es)&&(he=function(t){var e=Re(t),i=e==WC?t.constructor:void 0,r=i?Ce(i):"";if(r)switch(r){case HC:return Os;case jC:return As;case UC:return Ls;case YC:return Fs;case GC:return Es}return e});const VC=he;var XC="[object Map]",KC="[object Set]",ZC=Object.prototype,JC=ZC.hasOwnProperty;function Kr(t){if(t==null)return!0;if(Ar(t)&&(sr(t)||typeof t=="string"||typeof t.splice=="function"||zn(t)||Wn(t)||or(t)))return!t.length;var e=VC(t);if(e==XC||e==KC)return!t.size;if(Br(t))return!NC(t).length;for(var i in t)if(JC.call(t,i))return!1;return!0}const QC="graphics-document document";function t1(t,e){t.attr("role",QC),e!==""&&t.attr("aria-roledescription",e)}function e1(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const i1=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Jl(t){return typeof t>"u"||t===null}function r1(t){return typeof t=="object"&&t!==null}function n1(t){return Array.isArray(t)?t:Jl(t)?[]:[t]}function o1(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;i<r;i+=1)n=o[i],t[n]=e[n];return t}function s1(t,e){var i="",r;for(r=0;r<e;r+=1)i+=t;return i}function a1(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var l1=Jl,c1=r1,h1=n1,u1=s1,f1=a1,d1=o1,ht={isNothing:l1,isObject:c1,toArray:h1,repeat:u1,isNegativeZero:f1,extend:d1};function Ql(t,e){var i="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(i+=`
`+t.mark.snippet),r+" "+i):r}function pi(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Ql(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}pi.prototype=Object.create(Error.prototype);pi.prototype.constructor=pi;pi.prototype.toString=function(e){return this.name+": "+Ql(this,e)};var Gt=pi;function Zr(t,e,i,r,n){var o="",s="",a=Math.floor(n/2)-1;return r-e>a&&(o=" ... ",e=r-a+o.length),i-r>a&&(s=" ...",i=r+a-s.length),{str:o+t.slice(e,i).replace(/\t/g,"→")+s,pos:r-e+o.length}}function Jr(t,e){return ht.repeat(" ",e-t.length)+t}function p1(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],o,s=-1;o=i.exec(t.buffer);)n.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=Zr(t.buffer,r[s-l],n[s-l],t.position-(r[s]-r[s-l]),f),a=ht.repeat(" ",e.indent)+Jr((t.line-l+1).toString(),u)+" | "+c.str+`
`+a;for(c=Zr(t.buffer,r[s],n[s],t.position,f),a+=ht.repeat(" ",e.indent)+Jr((t.line+1).toString(),u)+" | "+c.str+`
`,a+=ht.repeat("-",e.indent+u+3+c.pos)+`^
`,l=1;l<=e.linesAfter&&!(s+l>=n.length);l++)c=Zr(t.buffer,r[s+l],n[s+l],t.position-(r[s]-r[s+l]),f),a+=ht.repeat(" ",e.indent)+Jr((t.line+l+1).toString(),u)+" | "+c.str+`
`;return a.replace(/\n$/,"")}var g1=p1,m1=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_1=["scalar","sequence","mapping"];function y1(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function C1(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(m1.indexOf(i)===-1)throw new Gt('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(i){return i},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=y1(e.styleAliases||null),_1.indexOf(this.kind)===-1)throw new Gt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ct=C1;function Ms(t,e){var i=[];return t[e].forEach(function(r){var n=i.length;i.forEach(function(o,s){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(n=s)}),i[n]=r}),i}function b1(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,i;function r(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,i=arguments.length;e<i;e+=1)arguments[e].forEach(r);return t}function kn(t){return this.extend(t)}kn.prototype.extend=function(e){var i=[],r=[];if(e instanceof ct)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(i=i.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Gt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(o){if(!(o instanceof ct))throw new Gt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Gt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Gt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(o){if(!(o instanceof ct))throw new Gt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(kn.prototype);return n.implicit=(this.implicit||[]).concat(i),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=Ms(n,"implicit"),n.compiledExplicit=Ms(n,"explicit"),n.compiledTypeMap=b1(n.compiledImplicit,n.compiledExplicit),n};var x1=kn,T1=new ct("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),v1=new ct("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),k1=new ct("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),S1=new x1({explicit:[T1,v1,k1]});function w1(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function B1(){return null}function A1(t){return t===null}var L1=new ct("tag:yaml.org,2002:null",{kind:"scalar",resolve:w1,construct:B1,predicate:A1,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function F1(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function E1(t){return t==="true"||t==="True"||t==="TRUE"}function O1(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var M1=new ct("tag:yaml.org,2002:bool",{kind:"scalar",resolve:F1,construct:E1,predicate:O1,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function $1(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function I1(t){return 48<=t&&t<=55}function D1(t){return 48<=t&&t<=57}function N1(t){if(t===null)return!1;var e=t.length,i=0,r=!1,n;if(!e)return!1;if(n=t[i],(n==="-"||n==="+")&&(n=t[++i]),n==="0"){if(i+1===e)return!0;if(n=t[++i],n==="b"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(n!=="0"&&n!=="1")return!1;r=!0}return r&&n!=="_"}if(n==="x"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!$1(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}if(n==="o"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!I1(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}}if(n==="_")return!1;for(;i<e;i++)if(n=t[i],n!=="_"){if(!D1(t.charCodeAt(i)))return!1;r=!0}return!(!r||n==="_")}function R1(t){var e=t,i=1,r;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),r=e[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),e=e.slice(1),r=e[0]),e==="0")return 0;if(r==="0"){if(e[1]==="b")return i*parseInt(e.slice(2),2);if(e[1]==="x")return i*parseInt(e.slice(2),16);if(e[1]==="o")return i*parseInt(e.slice(2),8)}return i*parseInt(e,10)}function P1(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!ht.isNegativeZero(t)}var q1=new ct("tag:yaml.org,2002:int",{kind:"scalar",resolve:N1,construct:R1,predicate:P1,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),z1=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function W1(t){return!(t===null||!z1.test(t)||t[t.length-1]==="_")}function H1(t){var e,i;return e=t.replace(/_/g,"").toLowerCase(),i=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:i*parseFloat(e,10)}var j1=/^[-+]?[0-9]+e/;function U1(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ht.isNegativeZero(t))return"-0.0";return i=t.toString(10),j1.test(i)?i.replace("e",".e"):i}function Y1(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ht.isNegativeZero(t))}var G1=new ct("tag:yaml.org,2002:float",{kind:"scalar",resolve:W1,construct:H1,predicate:Y1,represent:U1,defaultStyle:"lowercase"}),tc=S1.extend({implicit:[L1,M1,q1,G1]}),V1=tc,ec=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ic=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function X1(t){return t===null?!1:ec.exec(t)!==null||ic.exec(t)!==null}function K1(t){var e,i,r,n,o,s,a,l=0,c=null,u,f,h;if(e=ec.exec(t),e===null&&(e=ic.exec(t)),e===null)throw new Error("Date resolve error");if(i=+e[1],r=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(i,r,n));if(o=+e[4],s=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],f=+(e[11]||0),c=(u*60+f)*6e4,e[9]==="-"&&(c=-c)),h=new Date(Date.UTC(i,r,n,o,s,a,l)),c&&h.setTime(h.getTime()-c),h}function Z1(t){return t.toISOString()}var J1=new ct("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:X1,construct:K1,instanceOf:Date,represent:Z1});function Q1(t){return t==="<<"||t===null}var tb=new ct("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Q1}),eo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function eb(t){if(t===null)return!1;var e,i,r=0,n=t.length,o=eo;for(i=0;i<n;i++)if(e=o.indexOf(t.charAt(i)),!(e>64)){if(e<0)return!1;r+=6}return r%8===0}function ib(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,o=eo,s=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(r.charAt(e));return i=n%4*6,i===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):i===18?(a.push(s>>10&255),a.push(s>>2&255)):i===12&&a.push(s>>4&255),new Uint8Array(a)}function rb(t){var e="",i=0,r,n,o=t.length,s=eo;for(r=0;r<o;r++)r%3===0&&r&&(e+=s[i>>18&63],e+=s[i>>12&63],e+=s[i>>6&63],e+=s[i&63]),i=(i<<8)+t[r];return n=o%3,n===0?(e+=s[i>>18&63],e+=s[i>>12&63],e+=s[i>>6&63],e+=s[i&63]):n===2?(e+=s[i>>10&63],e+=s[i>>4&63],e+=s[i<<2&63],e+=s[64]):n===1&&(e+=s[i>>2&63],e+=s[i<<4&63],e+=s[64],e+=s[64]),e}function nb(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var ob=new ct("tag:yaml.org,2002:binary",{kind:"scalar",resolve:eb,construct:ib,predicate:nb,represent:rb}),sb=Object.prototype.hasOwnProperty,ab=Object.prototype.toString;function lb(t){if(t===null)return!0;var e=[],i,r,n,o,s,a=t;for(i=0,r=a.length;i<r;i+=1){if(n=a[i],s=!1,ab.call(n)!=="[object Object]")return!1;for(o in n)if(sb.call(n,o))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(o)===-1)e.push(o);else return!1}return!0}function cb(t){return t!==null?t:[]}var hb=new ct("tag:yaml.org,2002:omap",{kind:"sequence",resolve:lb,construct:cb}),ub=Object.prototype.toString;function fb(t){if(t===null)return!0;var e,i,r,n,o,s=t;for(o=new Array(s.length),e=0,i=s.length;e<i;e+=1){if(r=s[e],ub.call(r)!=="[object Object]"||(n=Object.keys(r),n.length!==1))return!1;o[e]=[n[0],r[n[0]]]}return!0}function db(t){if(t===null)return[];var e,i,r,n,o,s=t;for(o=new Array(s.length),e=0,i=s.length;e<i;e+=1)r=s[e],n=Object.keys(r),o[e]=[n[0],r[n[0]]];return o}var pb=new ct("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:fb,construct:db}),gb=Object.prototype.hasOwnProperty;function mb(t){if(t===null)return!0;var e,i=t;for(e in i)if(gb.call(i,e)&&i[e]!==null)return!1;return!0}function _b(t){return t!==null?t:{}}var yb=new ct("tag:yaml.org,2002:set",{kind:"mapping",resolve:mb,construct:_b}),Cb=V1.extend({implicit:[J1,tb],explicit:[ob,hb,pb,yb]}),oe=Object.prototype.hasOwnProperty,ur=1,rc=2,nc=3,fr=4,Qr=1,bb=2,$s=3,xb=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Tb=/[\x85\u2028\u2029]/,vb=/[,\[\]\{\}]/,oc=/^(?:!|!!|![a-z\-]+!)$/i,sc=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Is(t){return Object.prototype.toString.call(t)}function $t(t){return t===10||t===13}function pe(t){return t===9||t===32}function _t(t){return t===9||t===32||t===10||t===13}function Be(t){return t===44||t===91||t===93||t===123||t===125}function kb(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Sb(t){return t===120?2:t===117?4:t===85?8:0}function wb(t){return 48<=t&&t<=57?t-48:-1}function Ds(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?" ":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function Bb(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var ac=new Array(256),lc=new Array(256);for(var we=0;we<256;we++)ac[we]=Ds(we)?1:0,lc[we]=Ds(we);function Ab(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Cb,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function cc(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=g1(i),new Gt(e,i)}function D(t,e){throw cc(t,e)}function dr(t,e){t.onWarning&&t.onWarning.call(null,cc(t,e))}var Ns={YAML:function(e,i,r){var n,o,s;e.version!==null&&D(e,"duplication of %YAML directive"),r.length!==1&&D(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&D(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),s=parseInt(n[2],10),o!==1&&D(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&dr(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var n,o;r.length!==2&&D(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],oc.test(n)||D(e,"ill-formed tag handle (first argument) of the TAG directive"),oe.call(e.tagMap,n)&&D(e,'there is a previously declared suffix for "'+n+'" tag handle'),sc.test(o)||D(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{D(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function re(t,e,i,r){var n,o,s,a;if(e<i){if(a=t.input.slice(e,i),r)for(n=0,o=a.length;n<o;n+=1)s=a.charCodeAt(n),s===9||32<=s&&s<=1114111||D(t,"expected valid JSON character");else xb.test(a)&&D(t,"the stream contains non-printable characters");t.result+=a}}function Rs(t,e,i,r){var n,o,s,a;for(ht.isObject(i)||D(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(i),s=0,a=n.length;s<a;s+=1)o=n[s],oe.call(e,o)||(e[o]=i[o],r[o]=!0)}function Ae(t,e,i,r,n,o,s,a,l){var c,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,u=n.length;c<u;c+=1)Array.isArray(n[c])&&D(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Is(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Is(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)Rs(t,e,o[c],i);else Rs(t,e,o,i);else!t.json&&!oe.call(i,n)&&oe.call(e,n)&&(t.line=s||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,D(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[n]=o,delete i[n];return e}function io(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):D(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function et(t,e,i){for(var r=0,n=t.input.charCodeAt(t.position);n!==0;){for(;pe(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if($t(n))for(io(t),n=t.input.charCodeAt(t.position),r++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return i!==-1&&r!==0&&t.lineIndent<i&&dr(t,"deficient indentation"),r}function Or(t){var e=t.position,i;return i=t.input.charCodeAt(e),!!((i===45||i===46)&&i===t.input.charCodeAt(e+1)&&i===t.input.charCodeAt(e+2)&&(e+=3,i=t.input.charCodeAt(e),i===0||_t(i)))}function ro(t,e){e===1?t.result+=" ":e>1&&(t.result+=ht.repeat(`
`,e-1))}function Lb(t,e,i){var r,n,o,s,a,l,c,u,f=t.kind,h=t.result,d;if(d=t.input.charCodeAt(t.position),_t(d)||Be(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=t.input.charCodeAt(t.position+1),_t(n)||i&&Be(n)))return!1;for(t.kind="scalar",t.result="",o=s=t.position,a=!1;d!==0;){if(d===58){if(n=t.input.charCodeAt(t.position+1),_t(n)||i&&Be(n))break}else if(d===35){if(r=t.input.charCodeAt(t.position-1),_t(r))break}else{if(t.position===t.lineStart&&Or(t)||i&&Be(d))break;if($t(d))if(l=t.line,c=t.lineStart,u=t.lineIndent,et(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=c,t.lineIndent=u;break}}a&&(re(t,o,s,!1),ro(t,t.line-l),o=s=t.position,a=!1),pe(d)||(s=t.position+1),d=t.input.charCodeAt(++t.position)}return re(t,o,s,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function Fb(t,e){var i,r,n;if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(re(t,r,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)r=t.position,t.position++,n=t.position;else return!0;else $t(i)?(re(t,r,n,!0),ro(t,et(t,!1,e)),r=n=t.position):t.position===t.lineStart&&Or(t)?D(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);D(t,"unexpected end of the stream within a single quoted scalar")}function Eb(t,e){var i,r,n,o,s,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return re(t,i,t.position,!0),t.position++,!0;if(a===92){if(re(t,i,t.position,!0),a=t.input.charCodeAt(++t.position),$t(a))et(t,!1,e);else if(a<256&&ac[a])t.result+=lc[a],t.position++;else if((s=Sb(a))>0){for(n=s,o=0;n>0;n--)a=t.input.charCodeAt(++t.position),(s=kb(a))>=0?o=(o<<4)+s:D(t,"expected hexadecimal character");t.result+=Bb(o),t.position++}else D(t,"unknown escape sequence");i=r=t.position}else $t(a)?(re(t,i,r,!0),ro(t,et(t,!1,e)),i=r=t.position):t.position===t.lineStart&&Or(t)?D(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}D(t,"unexpected end of the stream within a double quoted scalar")}function Ob(t,e){var i=!0,r,n,o,s=t.tag,a,l=t.anchor,c,u,f,h,d,_=Object.create(null),T,w,A,y;if(y=t.input.charCodeAt(t.position),y===91)u=93,d=!1,a=[];else if(y===123)u=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),y=t.input.charCodeAt(++t.position);y!==0;){if(et(t,!0,e),y=t.input.charCodeAt(t.position),y===u)return t.position++,t.tag=s,t.anchor=l,t.kind=d?"mapping":"sequence",t.result=a,!0;i?y===44&&D(t,"expected the node content, but found ','"):D(t,"missed comma between flow collection entries"),w=T=A=null,f=h=!1,y===63&&(c=t.input.charCodeAt(t.position+1),_t(c)&&(f=h=!0,t.position++,et(t,!0,e))),r=t.line,n=t.lineStart,o=t.position,Ne(t,e,ur,!1,!0),w=t.tag,T=t.result,et(t,!0,e),y=t.input.charCodeAt(t.position),(h||t.line===r)&&y===58&&(f=!0,y=t.input.charCodeAt(++t.position),et(t,!0,e),Ne(t,e,ur,!1,!0),A=t.result),d?Ae(t,a,_,w,T,A,r,n,o):f?a.push(Ae(t,null,_,w,T,A,r,n,o)):a.push(T),et(t,!0,e),y=t.input.charCodeAt(t.position),y===44?(i=!0,y=t.input.charCodeAt(++t.position)):i=!1}D(t,"unexpected end of the stream within a flow collection")}function Mb(t,e){var i,r,n=Qr,o=!1,s=!1,a=e,l=0,c=!1,u,f;if(f=t.input.charCodeAt(t.position),f===124)r=!1;else if(f===62)r=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)Qr===n?n=f===43?$s:bb:D(t,"repeat of a chomping mode identifier");else if((u=wb(f))>=0)u===0?D(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?D(t,"repeat of an indentation width identifier"):(a=e+u-1,s=!0);else break;if(pe(f)){do f=t.input.charCodeAt(++t.position);while(pe(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!$t(f)&&f!==0)}for(;f!==0;){for(io(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!s||t.lineIndent<a)&&f===32;)t.lineIndent++,f=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>a&&(a=t.lineIndent),$t(f)){l++;continue}if(t.lineIndent<a){n===$s?t.result+=ht.repeat(`
`,o?1+l:l):n===Qr&&o&&(t.result+=`
`);break}for(r?pe(f)?(c=!0,t.result+=ht.repeat(`
`,o?1+l:l)):c?(c=!1,t.result+=ht.repeat(`
`,l+1)):l===0?o&&(t.result+=" "):t.result+=ht.repeat(`
`,l):t.result+=ht.repeat(`
`,o?1+l:l),o=!0,s=!0,l=0,i=t.position;!$t(f)&&f!==0;)f=t.input.charCodeAt(++t.position);re(t,i,t.position,!1)}return!0}function Ps(t,e){var i,r=t.tag,n=t.anchor,o=[],s,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,D(t,"tab characters must not be used in indentation")),!(l!==45||(s=t.input.charCodeAt(t.position+1),!_t(s))));){if(a=!0,t.position++,et(t,!0,-1)&&t.lineIndent<=e){o.push(null),l=t.input.charCodeAt(t.position);continue}if(i=t.line,Ne(t,e,nc,!1,!0),o.push(t.result),et(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>e)&&l!==0)D(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=r,t.anchor=n,t.kind="sequence",t.result=o,!0):!1}function $b(t,e,i){var r,n,o,s,a,l,c=t.tag,u=t.anchor,f={},h=Object.create(null),d=null,_=null,T=null,w=!1,A=!1,y;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),y=t.input.charCodeAt(t.position);y!==0;){if(!w&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,D(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),o=t.line,(y===63||y===58)&&_t(r))y===63?(w&&(Ae(t,f,h,d,_,null,s,a,l),d=_=T=null),A=!0,w=!0,n=!0):w?(w=!1,n=!0):D(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,y=r;else{if(s=t.line,a=t.lineStart,l=t.position,!Ne(t,i,rc,!1,!0))break;if(t.line===o){for(y=t.input.charCodeAt(t.position);pe(y);)y=t.input.charCodeAt(++t.position);if(y===58)y=t.input.charCodeAt(++t.position),_t(y)||D(t,"a whitespace character is expected after the key-value separator within a block mapping"),w&&(Ae(t,f,h,d,_,null,s,a,l),d=_=T=null),A=!0,w=!1,n=!1,d=t.tag,_=t.result;else if(A)D(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(A)D(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===o||t.lineIndent>e)&&(w&&(s=t.line,a=t.lineStart,l=t.position),Ne(t,e,fr,!0,n)&&(w?_=t.result:T=t.result),w||(Ae(t,f,h,d,_,T,s,a,l),d=_=T=null),et(t,!0,-1),y=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&y!==0)D(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return w&&Ae(t,f,h,d,_,null,s,a,l),A&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=f),A}function Ib(t){var e,i=!1,r=!1,n,o,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&D(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(i=!0,s=t.input.charCodeAt(++t.position)):s===33?(r=!0,n="!!",s=t.input.charCodeAt(++t.position)):n="!",e=t.position,i){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(o=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):D(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!_t(s);)s===33&&(r?D(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),oc.test(n)||D(t,"named tag handle cannot contain such characters"),r=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);o=t.input.slice(e,t.position),vb.test(o)&&D(t,"tag suffix cannot contain flow indicator characters")}o&&!sc.test(o)&&D(t,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{D(t,"tag name is malformed: "+o)}return i?t.tag=o:oe.call(t.tagMap,n)?t.tag=t.tagMap[n]+o:n==="!"?t.tag="!"+o:n==="!!"?t.tag="tag:yaml.org,2002:"+o:D(t,'undeclared tag handle "'+n+'"'),!0}function Db(t){var e,i;if(i=t.input.charCodeAt(t.position),i!==38)return!1;for(t.anchor!==null&&D(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!_t(i)&&!Be(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&D(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Nb(t){var e,i,r;if(r=t.input.charCodeAt(t.position),r!==42)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!_t(r)&&!Be(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&D(t,"name of an alias node must contain at least one character"),i=t.input.slice(e,t.position),oe.call(t.anchorMap,i)||D(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],et(t,!0,-1),!0}function Ne(t,e,i,r,n){var o,s,a,l=1,c=!1,u=!1,f,h,d,_,T,w;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=s=a=fr===i||nc===i,r&&et(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;Ib(t)||Db(t);)et(t,!0,-1)?(c=!0,a=o,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||fr===i)&&(ur===i||rc===i?T=e:T=e+1,w=t.position-t.lineStart,l===1?a&&(Ps(t,w)||$b(t,w,T))||Ob(t,T)?u=!0:(s&&Mb(t,T)||Fb(t,T)||Eb(t,T)?u=!0:Nb(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&D(t,"alias node should not have any properties")):Lb(t,T,ur===i)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=a&&Ps(t,w))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&D(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),f=0,h=t.implicitTypes.length;f<h;f+=1)if(_=t.implicitTypes[f],_.resolve(t.result)){t.result=_.construct(t.result),t.tag=_.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(oe.call(t.typeMap[t.kind||"fallback"],t.tag))_=t.typeMap[t.kind||"fallback"][t.tag];else for(_=null,d=t.typeMap.multi[t.kind||"fallback"],f=0,h=d.length;f<h;f+=1)if(t.tag.slice(0,d[f].tag.length)===d[f].tag){_=d[f];break}_||D(t,"unknown tag !<"+t.tag+">"),t.result!==null&&_.kind!==t.kind&&D(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+_.kind+'", not "'+t.kind+'"'),_.resolve(t.result,t.tag)?(t.result=_.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):D(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}function Rb(t){var e=t.position,i,r,n,o=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(et(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(o=!0,s=t.input.charCodeAt(++t.position),i=t.position;s!==0&&!_t(s);)s=t.input.charCodeAt(++t.position);for(r=t.input.slice(i,t.position),n=[],r.length<1&&D(t,"directive name must not be less than one character in length");s!==0;){for(;pe(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!$t(s));break}if($t(s))break;for(i=t.position;s!==0&&!_t(s);)s=t.input.charCodeAt(++t.position);n.push(t.input.slice(i,t.position))}s!==0&&io(t),oe.call(Ns,r)?Ns[r](t,r,n):dr(t,'unknown document directive "'+r+'"')}if(et(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,et(t,!0,-1)):o&&D(t,"directives end mark is expected"),Ne(t,t.lineIndent-1,fr,!1,!0),et(t,!0,-1),t.checkLineBreaks&&Tb.test(t.input.slice(e,t.position))&&dr(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Or(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,et(t,!0,-1));return}if(t.position<t.length-1)D(t,"end of the stream or a document separator is expected");else return}function hc(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var i=new Ab(t,e),r=t.indexOf("\0");for(r!==-1&&(i.position=r,D(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)Rb(i);return i.documents}function Pb(t,e,i){e!==null&&typeof e=="object"&&typeof i>"u"&&(i=e,e=null);var r=hc(t,i);if(typeof e!="function")return r;for(var n=0,o=r.length;n<o;n+=1)e(r[n])}function qb(t,e){var i=hc(t,e);if(i.length!==0){if(i.length===1)return i[0];throw new Gt("expected a single document in the stream, but found more")}}var zb=Pb,Wb=qb,Hb={loadAll:zb,load:Wb},jb=tc,Ub=Hb.load;function Yb(t){const e=t.match(Va);if(!e)return{text:t,metadata:{}};let i=Ub(e[1],{schema:jb})??{};i=typeof i=="object"&&!Array.isArray(i)?i:{};const r={};return i.displayMode&&(r.displayMode=i.displayMode.toString()),i.title&&(r.title=i.title.toString()),i.config&&(r.config=i.config),{text:t.slice(e[0].length),metadata:r}}const Gb=t=>t.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(e,i,r)=>"<"+i+r.replace(/="([^"]*)"/g,"='$1'")+">"),Vb=t=>{const{text:e,metadata:i}=Yb(t),{displayMode:r,title:n,config:o={}}=i;return r&&(o.gantt||(o.gantt={}),o.gantt.displayMode=r),{title:n,config:o,text:e}},Xb=t=>{const e=ri.detectInit(t)??{},i=ri.detectDirective(t,"wrap");return Array.isArray(i)?e.wrap=i.some(({type:r})=>{}):(i==null?void 0:i.type)==="wrap"&&(e.wrap=!0),{text:N_(t),directive:e}};function uc(t){const e=Gb(t),i=Vb(e),r=Xb(i.text),n=gl(i.config,r.directive);return t=i1(r.text),{code:t,title:i.title,config:n}}const Kb=5e4,Zb="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Jb="sandbox",Qb="loose",tx="http://www.w3.org/2000/svg",ex="http://www.w3.org/1999/xlink",ix="http://www.w3.org/1999/xhtml",rx="100%",nx="100%",ox="border:0;margin:0;",sx="margin:0",ax="allow-top-navigation-by-user-activation allow-popups",lx='The "iframe" tag is not supported by your browser.',cx=["foreignobject"],hx=["dominant-baseline"];function fc(t){const e=uc(t);return lr(),S0(e.config??{}),e}async function ux(t,e){to(),t=fc(t).code;try{await no(t)}catch(i){if(e!=null&&e.suppressErrors)return!1;throw i}return!0}const qs=(t,e,i=[])=>`
.${t} ${e} { ${i.join(" !important; ")} !important; }`,fx=(t,e={})=>{var i;let r="";if(t.themeCSS!==void 0&&(r+=`
${t.themeCSS}`),t.fontFamily!==void 0&&(r+=`
:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=`
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Kr(e)){const a=t.htmlLabels||((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const c=e[l];Kr(c.styles)||a.forEach(u=>{r+=qs(c.id,u,c.styles)}),Kr(c.textStyles)||(r+=qs(c.id,"tspan",c.textStyles))}}return r},dx=(t,e,i,r)=>{const n=fx(t,i),o=Uy(e,n,t.themeVariables);return Cn(C0(`${r}{${o}}`),x0)},px=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=o0(r),r=r.replace(/<br>/g,"<br/>"),r},gx=(t="",e)=>{var i,r;const n=(r=(i=e==null?void 0:e.viewBox)==null?void 0:i.baseVal)!=null&&r.height?e.viewBox.baseVal.height+"px":nx,o=btoa('<body style="'+sx+'">'+t+"</body>");return`<iframe style="width:${rx};height:${n};${ox}" src="data:text/html;base64,${o}" sandbox="${ax}">
${lx}
</iframe>`},zs=(t,e,i,r,n)=>{const o=t.append("div");o.attr("id",i),r&&o.attr("style",r);const s=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns",tx);return n&&s.attr("xmlns:xlink",n),s.append("g"),t};function Ws(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const mx=(t,e,i,r)=>{var n,o,s;(n=t.getElementById(e))==null||n.remove(),(o=t.getElementById(i))==null||o.remove(),(s=t.getElementById(r))==null||s.remove()},_x=async function(t,e,i){var r,n,o,s,a,l;to();const c=fc(e);e=c.code;const u=Dt();N.debug(u),e.length>((u==null?void 0:u.maxTextSize)??Kb)&&(e=Zb);const f="#"+t,h="i"+t,d="#"+h,_="d"+t,T="#"+_;let w=vt("body");const A=u.securityLevel===Jb,y=u.securityLevel===Qb,E=u.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),A){const S=Ws(vt(i),h);w=vt(S.nodes()[0].contentDocument.body),w.node().style.margin=0}else w=vt(i);zs(w,t,_,`font-family: ${E}`,ex)}else{if(mx(document,t,_,h),A){const S=Ws(vt("body"),h);w=vt(S.nodes()[0].contentDocument.body),w.node().style.margin=0}else w=vt("body");zs(w,t,_)}let L,R;try{L=await no(e,{title:c.title})}catch(S){L=new Zl("error"),R=S}const m=w.select(T).node(),b=L.type,O=m.firstChild,Zt=O.firstChild,G=(n=(r=L.renderer).getClasses)==null?void 0:n.call(r,e,L),Y=dx(u,b,G,f),St=document.createElement("style");St.innerHTML=Y,O.insertBefore(St,Zt);try{await L.renderer.draw(e,t,ks,L)}catch(S){throw lC.draw(e,t,ks),S}const Jt=w.select(`${T} svg`),q=(s=(o=L.db).getAccTitle)==null?void 0:s.call(o),B=(l=(a=L.db).getAccDescription)==null?void 0:l.call(a);Cx(b,Jt,q,B),w.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",ix);let x=w.select(T).node().innerHTML;if(N.debug("config.arrowMarkerAbsolute",u.arrowMarkerAbsolute),x=px(x,A,za(u.arrowMarkerAbsolute)),A){const S=w.select(T+" svg").node();x=gx(x,S)}else y||(x=Oe.sanitize(x,{ADD_TAGS:cx,ADD_ATTR:hx}));if(OC(),R)throw R;const k=vt(A?d:T).node();return k&&"remove"in k&&k.remove(),{svg:x,bindFunctions:L.db.bindFunctions}};function yx(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),v0(t),t!=null&&t.theme&&t.theme in Vt?t.themeVariables=Vt[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Vt.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?T0(t):vl();Sn(i.logLevel),to()}const no=(t,e={})=>{const{code:i}=uc(t);return EC(i,e)};function Cx(t,e,i,r){t1(e,t),e1(e,i,r,e.attr("id"))}const _e=Object.freeze({render:_x,parse:ux,getDiagramFromText:no,initialize:yx,getConfig:Dt,setConfig:kl,getSiteConfig:vl,updateSiteConfig:k0,reset:()=>{lr()},globalReset:()=>{lr(Ie)},defaultConfig:Ie});Sn(Dt().logLevel);lr(Dt());const bx=async()=>{N.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Me).map(async([i,{detector:r,loader:n}])=>{if(n)try{Qn(i)}catch{try{const{diagram:s,id:a}=await n();hr(a,s,r)}catch(s){throw N.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete Me[i],s}}}))).filter(i=>i.status==="rejected");if(e.length>0){N.error(`Failed to load ${e.length} external diagrams`);for(const i of e)N.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},xx=(t,e,i)=>{N.warn(t),pl(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},dc=async function(t={querySelector:".mermaid"}){try{await Tx(t)}catch(e){if(pl(e)&&N.error(e.str),yt.parseError&&yt.parseError(e),!t.suppressErrors)throw N.error("Use the suppressErrors option to suppress these errors"),e}},Tx=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=_e.getConfig();N.debug(`${t?"":"No "}Callback function found`);let n;if(i)n=i;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");N.debug(`Found ${n.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(N.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),_e.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const o=new ri.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const a=[];for(const l of Array.from(n)){N.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${o.next()}`;s=l.innerHTML,s=Ic(ri.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const u=ri.detectInit(s);u&&N.debug("Detected early reinit: ",u);try{const{svg:f,bindFunctions:h}=await _c(c,s,l);l.innerHTML=f,t&&await t(c),h&&h(l)}catch(f){xx(f,a,yt.parseError)}}if(a.length>0)throw a[0]},pc=function(t){_e.initialize(t)},vx=async function(t,e,i){N.warn("mermaid.init is deprecated. Please use run instead."),t&&pc(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await dc(r)},kx=async(t,{lazyLoad:e=!0}={})=>{Ka(...t),e===!1&&await bx()},gc=function(){if(yt.startOnLoad){const{startOnLoad:t}=_e.getConfig();t&&yt.run().catch(e=>N.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*!
* Wait for document loaded before starting the execution
*/window.addEventListener("load",gc,!1)}const Sx=function(t){yt.parseError=t},pr=[];let tn=!1;const mc=async()=>{if(!tn){for(tn=!0;pr.length>0;){const t=pr.shift();if(t)try{await t()}catch(e){N.error("Error executing queue",e)}}tn=!1}},wx=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((o,s)=>{_e.parse(t,e).then(a=>{o(a),i(a)},a=>{var l;N.error("Error parsing",a),(l=yt.parseError)==null||l.call(yt,a),s(a),r(a)})});pr.push(n),mc().catch(r)}),_c=(t,e,i)=>new Promise((r,n)=>{const o=()=>new Promise((s,a)=>{_e.render(t,e,i).then(l=>{s(l),r(l)},l=>{var c;N.error("Error parsing",l),(c=yt.parseError)==null||c.call(yt,l),a(l),n(l)})});pr.push(o),mc().catch(n)}),yt={startOnLoad:!0,mermaidAPI:_e,parse:wx,render:_c,init:vx,run:dc,registerExternalDiagrams:kx,initialize:pc,parseError:void 0,contentLoaded:gc,setParseErrorHandler:Sx,detectType:vr};var oo={exports:{}};oo.exports;(function(t){var e=function(){var i=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",o={};function s(l,c){if(!o[l]){o[l]={};for(var u=0;u<l.length;u++)o[l][l.charAt(u)]=u}return o[l][c]}var a={compressToBase64:function(l){if(l==null)return"";var c=a._compress(l,6,function(u){return r.charAt(u)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:a._decompress(l.length,32,function(c){return s(r,l.charAt(c))})},compressToUTF16:function(l){return l==null?"":a._compress(l,15,function(c){return i(c+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:a._decompress(l.length,16384,function(c){return l.charCodeAt(c)-32})},compressToUint8Array:function(l){for(var c=a.compress(l),u=new Uint8Array(c.length*2),f=0,h=c.length;f<h;f++){var d=c.charCodeAt(f);u[f*2]=d>>>8,u[f*2+1]=d%256}return u},decompressFromUint8Array:function(l){if(l==null)return a.decompress(l);for(var c=new Array(l.length/2),u=0,f=c.length;u<f;u++)c[u]=l[u*2]*256+l[u*2+1];var h=[];return c.forEach(function(d){h.push(i(d))}),a.decompress(h.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":a._compress(l,6,function(c){return n.charAt(c)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),a._decompress(l.length,32,function(c){return s(n,l.charAt(c))}))},compress:function(l){return a._compress(l,16,function(c){return i(c)})},_compress:function(l,c,u){if(l==null)return"";var f,h,d={},_={},T="",w="",A="",y=2,E=3,L=2,R=[],m=0,b=0,O;for(O=0;O<l.length;O+=1)if(T=l.charAt(O),Object.prototype.hasOwnProperty.call(d,T)||(d[T]=E++,_[T]=!0),w=A+T,Object.prototype.hasOwnProperty.call(d,w))A=w;else{if(Object.prototype.hasOwnProperty.call(_,A)){if(A.charCodeAt(0)<256){for(f=0;f<L;f++)m=m<<1,b==c-1?(b=0,R.push(u(m)),m=0):b++;for(h=A.charCodeAt(0),f=0;f<8;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1}else{for(h=1,f=0;f<L;f++)m=m<<1|h,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=0;for(h=A.charCodeAt(0),f=0;f<16;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1}y--,y==0&&(y=Math.pow(2,L),L++),delete _[A]}else for(h=d[A],f=0;f<L;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1;y--,y==0&&(y=Math.pow(2,L),L++),d[w]=E++,A=String(T)}if(A!==""){if(Object.prototype.hasOwnProperty.call(_,A)){if(A.charCodeAt(0)<256){for(f=0;f<L;f++)m=m<<1,b==c-1?(b=0,R.push(u(m)),m=0):b++;for(h=A.charCodeAt(0),f=0;f<8;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1}else{for(h=1,f=0;f<L;f++)m=m<<1|h,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=0;for(h=A.charCodeAt(0),f=0;f<16;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1}y--,y==0&&(y=Math.pow(2,L),L++),delete _[A]}else for(h=d[A],f=0;f<L;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1;y--,y==0&&(y=Math.pow(2,L),L++)}for(h=2,f=0;f<L;f++)m=m<<1|h&1,b==c-1?(b=0,R.push(u(m)),m=0):b++,h=h>>1;for(;;)if(m=m<<1,b==c-1){R.push(u(m));break}else b++;return R.join("")},decompress:function(l){return l==null?"":l==""?null:a._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var f=[],h=4,d=4,_=3,T="",w=[],A,y,E,L,R,m,b,O={val:u(0),position:c,index:1};for(A=0;A<3;A+=1)f[A]=A;for(E=0,R=Math.pow(2,2),m=1;m!=R;)L=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),E|=(L>0?1:0)*m,m<<=1;switch(E){case 0:for(E=0,R=Math.pow(2,8),m=1;m!=R;)L=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),E|=(L>0?1:0)*m,m<<=1;b=i(E);break;case 1:for(E=0,R=Math.pow(2,16),m=1;m!=R;)L=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),E|=(L>0?1:0)*m,m<<=1;b=i(E);break;case 2:return""}for(f[3]=b,y=b,w.push(b);;){if(O.index>l)return"";for(E=0,R=Math.pow(2,_),m=1;m!=R;)L=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),E|=(L>0?1:0)*m,m<<=1;switch(b=E){case 0:for(E=0,R=Math.pow(2,8),m=1;m!=R;)L=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),E|=(L>0?1:0)*m,m<<=1;f[d++]=i(E),b=d-1,h--;break;case 1:for(E=0,R=Math.pow(2,16),m=1;m!=R;)L=O.val&O.position,O.position>>=1,O.position==0&&(O.position=c,O.val=u(O.index++)),E|=(L>0?1:0)*m,m<<=1;f[d++]=i(E),b=d-1,h--;break;case 2:return w.join("")}if(h==0&&(h=Math.pow(2,_),_++),f[b])T=f[b];else if(b===d)T=y+y.charAt(0);else return null;w.push(T),f[d++]=y+T.charAt(0),h--,y=T,h==0&&(h=Math.pow(2,_),_++)}}};return a}();t!=null?t.exports=e:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})})(oo);var Bx=oo.exports;const Ax=$c(Bx);const Lx=[],Fx=()=>{const t={theme:"default"};for(const e of Lx)Object.assign(t,e());return t};yt.startOnLoad=!1;yt.initialize({startOnLoad:!1});const Hs=new Map;let js;async function Ex(t,e){js??(js=document.getElementById("mermaid-rendering-container"));const i=t+JSON.stringify(e),r=Hs.get(i);if(r)return r;yt.initialize({startOnLoad:!1,...Bo(Fx()||{}),...Bo(e)});const n=Ax.decompressFromBase64(t),o=Oc(),{svg:s}=await yt.render(o,n,js);return Hs.set(i,s),s}const Ox=Us({__name:"ShadowRoot",props:{innerHtml:{type:String,required:!0}},emits:["shadow"],setup(t,{emit:e}){const i=t,r=e,n=Xe(),o=Bc(()=>n.value?n.value.shadowRoot||n.value.attachShadow({mode:"open"}):null);return Ii(()=>{o.value&&i.innerHtml&&(r("shadow",o.value),o.value.innerHTML=i.innerHtml)}),(s,a)=>(en(),Ys("div",{ref_key:"el",ref:n},null,512))}}),Mx=Gs(Ox,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/ShadowRoot.vue"]]),$x={key:0,border:"1 red rounded",class:"pa-3 text-wrap"},Ix=Us({__name:"Mermaid",props:{codeLz:{type:String,required:!0},scale:{type:Number,required:!1},theme:{type:String,required:!1}},setup(t){const e=t,i=Ec(),r=Xe(),n=Xe(null),o=Xe("");Ii(async a=>{let l=!1;a(()=>{l=!0}),n.value=null;try{const c=await Ex(e.codeLz||"",{theme:e.theme||(Mc.value?"dark":void 0),...i.attrs});l||(o.value=c)}catch(c){n.value=`${c}`,console.warn(c)}});const s=Xe();return Ac(o,()=>{s.value=void 0}),Ii(()=>{var l,c,u;const a=(c=(l=r.value)==null?void 0:l.children)==null?void 0:c[0];if(a&&a.hasAttribute("viewBox")&&s.value==null){const f=Number.parseFloat(((u=a.getAttribute("viewBox"))==null?void 0:u.split(" ")[3])||"");s.value=Number.isNaN(f)?void 0:f}},{flush:"post"}),Ii(()=>{var l,c;const a=(c=(l=r.value)==null?void 0:l.children)==null?void 0:c[0];a!=null&&e.scale!=null&&s.value!=null&&(a.setAttribute("height",`${s.value*e.scale}`),a.removeAttribute("width"),a.removeAttribute("style"))},{flush:"post"}),(a,l)=>n.value?(en(),Ys("pre",$x,Lc(n.value),1)):(en(),Fc(Mx,{key:1,class:"mermaid","inner-html":o.value,onShadow:l[0]||(l[0]=c=>r.value=c)},null,8,["inner-html"]))}}),nT=Gs(Ix,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/builtin/Mermaid.vue"]]);export{Dt as $,Sm as A,Pn as B,Zy as C,Jy as D,Yy as E,nd as F,Kx as G,rC as H,X_ as I,An as J,ca as K,mi as L,Dc as M,Pc as N,Nc as O,Fu as P,fa as Q,mt as R,bt as S,Px as T,sC as U,Dp as V,gl as W,Un as X,Gx as Y,Fp as Z,nT as _,Ky as a,Yx as a$,ie as a0,Ln as a1,ai as a2,Ro as a3,Nu as a4,os as a5,M_ as a6,Zx as a7,G_ as a8,A_ as a9,se as aA,nl as aB,or as aC,Kr as aD,rm as aE,VC as aF,zn as aG,Qg as aH,lm as aI,Pe as aJ,bi as aK,Re as aL,n_ as aM,im as aN,em as aO,Wn as aP,il as aQ,fs as aR,z as aS,It as aT,o0 as aU,Ic as aV,Mn as aW,Wx as aX,Ux as aY,Uo as aZ,jo as a_,L_ as aa,cl as ab,kr as ac,B_ as ad,y_ as ae,ul as af,O_ as ag,Ar as ah,sr as ai,Zm as aj,Rt as ak,qn as al,ye as am,ll as an,r_ as ao,Zg as ap,C_ as aq,_i as ar,rT as as,rr as at,_s as au,Tn as av,h_ as aw,NC as ax,Ci as ay,gm as az,Xy as b,jx as b0,qx as b1,zx as b2,Xx as b3,Vx as b4,Hx as b5,Qy as b6,yi as b7,I as b8,P as b9,Jn as c,ci as d,lt as e,ar as f,Vy as g,vt as h,jl as i,Rn as j,t0 as k,N as l,Xs as m,Y_ as n,za as o,P_ as p,ed as q,Jd as r,Gy as s,Wy as t,iT as u,ri as v,J_ as w,la as x,Gc as y,ti as z};
import{T as Nt,Q as st,av as kt,t as z,y as rt,J as It,aw as At,n as Ct,D as Ft,d as Tt,A as ct,o as Kt,b as $t,g as Ot}from"../modules/vue-O-XuQLLR.js";import{u as Rt,c as dt,N as nt,O as ft,P as zt,b as Ut}from"../index-DENYuTHS.js";import{u as Vt}from"./bottom-WehDtssn.js";var jt=Object.defineProperty,pt=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,gt=(t,e,s)=>e in t?jt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,it=(t,e)=>{for(var s in e||(e={}))Ht.call(e,s)&>(t,s,e[s]);if(pt)for(var s of pt(e))qt.call(e,s)&>(t,s,e[s]);return t},Gt=()=>({emit(t,...e){for(let s=0,r=this.events[t]||[],i=r.length;s<i;s++)r[s](...e)},events:{},on(t,e){var s;return((s=this.events)[t]||(s[t]=[])).push(e),()=>{var r;this.events[t]=(r=this.events[t])==null?void 0:r.filter(i=>e!==i)}}});function mt(t,e,s,r=i=>i){return t*r(.5-e*(.5-s))}function Bt(t){return[-t[0],-t[1]]}function M(t,e){return[t[0]+e[0],t[1]+e[1]]}function b(t,e){return[t[0]-e[0],t[1]-e[1]]}function E(t,e){return[t[0]*e,t[1]*e]}function Xt(t,e){return[t[0]/e,t[1]/e]}function U(t){return[t[1],-t[0]]}function vt(t,e){return t[0]*e[0]+t[1]*e[1]}function Yt(t,e){return t[0]===e[0]&&t[1]===e[1]}function Zt(t){return Math.hypot(t[0],t[1])}function Qt(t){return t[0]*t[0]+t[1]*t[1]}function yt(t,e){return Qt(b(t,e))}function Pt(t){return Xt(t,Zt(t))}function Jt(t,e){return Math.hypot(t[1]-e[1],t[0]-e[0])}function V(t,e,s){let r=Math.sin(s),i=Math.cos(s),n=t[0]-e[0],a=t[1]-e[1],o=n*i-a*r,l=n*r+a*i;return[o+e[0],l+e[1]]}function ot(t,e,s){return M(t,E(b(e,t),s))}function xt(t,e,s){return M(t,E(e,s))}var{min:K,PI:Wt}=Math,_t=.275,j=Wt+1e-4;function te(t,e={}){let{size:s=16,smoothing:r=.5,thinning:i=.5,simulatePressure:n=!0,easing:a=u=>u,start:o={},end:l={},last:g=!1}=e,{cap:v=!0,easing:y=u=>u*(2-u)}=o,{cap:P=!0,easing:f=u=>--u*u*u+1}=l;if(t.length===0||s<=0)return[];let d=t[t.length-1].runningLength,c=o.taper===!1?0:o.taper===!0?Math.max(s,d):o.taper,S=l.taper===!1?0:l.taper===!0?Math.max(s,d):l.taper,T=Math.pow(s*r,2),D=[],h=[],x=t.slice(0,10).reduce((u,w)=>{let p=w.pressure;if(n){let m=K(1,w.distance/s),W=K(1,1-m);p=K(1,u+(W-u)*(m*_t))}return(u+p)/2},t[0].pressure),_=mt(s,i,t[t.length-1].pressure,a),Y,Z=t[0].vector,O=t[0].point,H=O,A=O,C=H,Q=!1;for(let u=0;u<t.length;u++){let{pressure:w}=t[u],{point:p,vector:m,distance:W,runningLength:R}=t[u];if(u<t.length-1&&d-R<3)continue;if(i){if(n){let I=K(1,W/s),et=K(1,1-I);w=K(1,x+(et-x)*(I*_t))}_=mt(s,i,w,a)}else _=s/2;Y===void 0&&(Y=_);let Mt=R<c?y(R/c):1,Lt=d-R<S?f((d-R)/S):1;_=Math.max(.01,_*Math.min(Mt,Lt));let ht=(u<t.length-1?t[u+1]:t[u]).vector,tt=u<t.length-1?vt(m,ht):1,Dt=vt(m,Z)<0&&!Q,lt=tt!==null&&tt<0;if(Dt||lt){let I=E(U(Z),_);for(let et=1/13,G=0;G<=1;G+=et)A=V(b(p,I),p,j*G),D.push(A),C=V(M(p,I),p,j*-G),h.push(C);O=A,H=C,lt&&(Q=!0);continue}if(Q=!1,u===t.length-1){let I=E(U(m),_);D.push(b(p,I)),h.push(M(p,I));continue}let ut=E(U(ot(ht,m,tt)),_);A=b(p,ut),(u<=1||yt(O,A)>T)&&(D.push(A),O=A),C=M(p,ut),(u<=1||yt(H,C)>T)&&(h.push(C),H=C),x=w,Z=m}let N=t[0].point.slice(0,2),k=t.length>1?t[t.length-1].point.slice(0,2):M(t[0].point,[1,1]),J=[],q=[];if(t.length===1){if(!(c||S)||g){let u=xt(N,Pt(U(b(N,k))),-(Y||_)),w=[];for(let p=1/13,m=p;m<=1;m+=p)w.push(V(u,N,j*2*m));return w}}else{if(!(c||S&&t.length===1))if(v)for(let w=1/13,p=w;p<=1;p+=w){let m=V(h[0],N,j*p);J.push(m)}else{let w=b(D[0],h[0]),p=E(w,.5),m=E(w,.51);J.push(b(N,p),b(N,m),M(N,m),M(N,p))}let u=U(Bt(t[t.length-1].vector));if(S||c&&t.length===1)q.push(k);else if(P){let w=xt(k,u,_);for(let p=1/29,m=p;m<1;m+=p)q.push(V(w,k,j*3*m))}else q.push(M(k,E(u,_)),M(k,E(u,_*.99)),b(k,E(u,_*.99)),b(k,E(u,_)))}return D.concat(q,h.reverse(),J)}function ee(t,e={}){var s;let{streamline:r=.5,size:i=16,last:n=!1}=e;if(t.length===0)return[];let a=.15+(1-r)*.85,o=Array.isArray(t[0])?t:t.map(({x:f,y:d,pressure:c=.5})=>[f,d,c]);if(o.length===2){let f=o[1];o=o.slice(0,-1);for(let d=1;d<5;d++)o.push(ot(o[0],f,d/4))}o.length===1&&(o=[...o,[...M(o[0],[1,1]),...o[0].slice(2)]]);let l=[{point:[o[0][0],o[0][1]],pressure:o[0][2]>=0?o[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],g=!1,v=0,y=l[0],P=o.length-1;for(let f=1;f<o.length;f++){let d=n&&f===P?o[f].slice(0,2):ot(y.point,o[f],a);if(Yt(y.point,d))continue;let c=Jt(d,y.point);if(v+=c,f<P&&!g){if(v<i)continue;g=!0}y={point:d,pressure:o[f][2]>=0?o[f][2]:.5,vector:Pt(b(y.point,d)),distance:c,runningLength:v},l.push(y)}return l[0].vector=((s=l[1])==null?void 0:s.vector)||[0,0],l}function se(t,e={}){return te(ee(t,e),e)}function B(t,e){return t-e}function re(t){return t<0?-1:1}function X(t){return[Math.abs(t),re(t)]}function bt(){const t=()=>((1+Math.random())*65536|0).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}var ne=2,L=ne,$=class{constructor(t){this.drauu=t,this.event=void 0,this.point=void 0,this.start=void 0,this.el=null}onSelected(t){}onUnselected(){}onStart(t){}onMove(t){return!1}onEnd(t){}get brush(){return this.drauu.brush}get shiftPressed(){return this.drauu.shiftPressed}get altPressed(){return this.drauu.altPressed}get svgElement(){return this.drauu.el}getMousePosition(t){var e,s,r;const i=this.drauu.el,n=(e=this.drauu.options.coordinateScale)!=null?e:1,a=(s=this.drauu.options.offset)!=null?s:{x:0,y:0};if(this.drauu.options.coordinateTransform===!1){const o=this.drauu.el.getBoundingClientRect();return{x:(t.pageX-o.left+a.x)*n,y:(t.pageY-o.top+a.y)*n,pressure:t.pressure}}else{const o=this.drauu.svgPoint;o.x=t.clientX+a.x,o.y=t.clientY+a.y;const l=o.matrixTransform((r=i.getScreenCTM())==null?void 0:r.inverse());return{x:l.x*n,y:l.y*n,pressure:t.pressure}}}createElement(t,e){var s;const r=document.createElementNS("http://www.w3.org/2000/svg",t),i=e?it(it({},this.brush),e):this.brush;return r.setAttribute("fill",(s=i.fill)!=null?s:"transparent"),r.setAttribute("stroke",i.color),r.setAttribute("stroke-width",i.size.toString()),r.setAttribute("stroke-linecap","round"),i.dasharray&&r.setAttribute("stroke-dasharray",i.dasharray),r}attr(t,e){this.el.setAttribute(t,typeof e=="string"?e:e.toFixed(L))}_setEvent(t){this.event=t,this.point=this.getMousePosition(t)}_eventDown(t){return this._setEvent(t),this.start=this.point,this.onStart(this.point)}_eventMove(t){return this._setEvent(t),this.onMove(this.point)}_eventUp(t){return this._setEvent(t),this.onEnd(this.point)}},ie=class St extends ${constructor(){super(...arguments),this.points=[]}onStart(e){return this.el=document.createElementNS("http://www.w3.org/2000/svg","path"),this.points=[e],this.attr("fill",this.brush.color),this.attr("d",this.getSvgData(this.points)),this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&this.points.push(e),this.attr("d",this.getSvgData(this.points)),!0}onEnd(){const e=this.el;return this.el=null,!!e}getSvgData(e){return St.getSvgData(e,this.brush)}static getSvgData(e,s){const r=se(e,it({size:s.size,thinning:.9,simulatePressure:!1,start:{taper:5},end:{taper:5}},s.stylusOptions));if(!r.length)return"";const i=r.reduce((n,[a,o],l,g)=>{const[v,y]=g[(l+1)%g.length];return n.push(a,o,(a+v)/2,(o+y)/2),n},["M",...r[0],"Q"]);return i.push("Z"),i.map(n=>typeof n=="number"?n.toFixed(2):n).join(" ")}},oe=class extends ${onStart(t){return this.el=this.createElement("ellipse"),this.attr("cx",t.x),this.attr("cy",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,s]=X(t.x-this.start.x),[r,i]=X(t.y-this.start.y);if(this.shiftPressed){const n=Math.min(e,r);e=n,r=n}if(this.altPressed)this.attr("cx",this.start.x),this.attr("cy",this.start.y),this.attr("rx",e),this.attr("ry",r);else{const[n,a]=[this.start.x,this.start.x+e*s].sort(B),[o,l]=[this.start.y,this.start.y+r*i].sort(B);this.attr("cx",(n+a)/2),this.attr("cy",(o+l)/2),this.attr("rx",(a-n)/2),this.attr("ry",(l-o)/2)}return!0}onEnd(){const t=this.el;return this.el=null,!(!t||!t.getTotalLength())}};function Et(t,e){const s=document.createElementNS("http://www.w3.org/2000/svg","defs"),r=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("fill",e),r.setAttribute("id",t),r.setAttribute("viewBox","0 -5 10 10"),r.setAttribute("refX","5"),r.setAttribute("refY","0"),r.setAttribute("markerWidth","4"),r.setAttribute("markerHeight","4"),r.setAttribute("orient","auto"),i.setAttribute("d","M0,-5L10,0L0,5"),r.appendChild(i),s.appendChild(r),s}var ae=class extends ${onStart(t){if(this.el=this.createElement("line",{fill:"transparent"}),this.attr("x1",t.x),this.attr("y1",t.y),this.attr("x2",t.x),this.attr("y2",t.y),this.brush.arrowEnd){const e=bt(),s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.append(Et(e,this.brush.color)),s.append(this.el),this.attr("marker-end",`url(#${e})`),s}return this.el}onMove(t){if(!this.el)return!1;let{x:e,y:s}=t;if(this.shiftPressed){const r=t.x-this.start.x,i=t.y-this.start.y;if(i!==0){let n=r/i;n=Math.round(n),Math.abs(n)<=1?(e=this.start.x+i*n,s=this.start.y+i):(e=this.start.x+r,s=this.start.y)}}return this.altPressed?(this.attr("x1",this.start.x*2-e),this.attr("y1",this.start.y*2-s),this.attr("x2",e),this.attr("y2",s)):(this.attr("x1",this.start.x),this.attr("y1",this.start.y),this.attr("x2",e),this.attr("y2",s)),!0}onEnd(){const t=this.el;return this.el=null,!(!t||t.getTotalLength()<5)}},he=class extends ${onStart(t){return this.el=this.createElement("rect"),this.brush.cornerRadius&&(this.attr("rx",this.brush.cornerRadius),this.attr("ry",this.brush.cornerRadius)),this.attr("x",t.x),this.attr("y",t.y),this.el}onMove(t){if(!this.el||!this.start)return!1;let[e,s]=X(t.x-this.start.x),[r,i]=X(t.y-this.start.y);if(this.shiftPressed){const n=Math.min(e,r);e=n,r=n}if(this.altPressed)this.attr("x",this.start.x-e),this.attr("y",this.start.y-r),this.attr("width",e*2),this.attr("height",r*2);else{const[n,a]=[this.start.x,this.start.x+e*s].sort(B),[o,l]=[this.start.y,this.start.y+r*i].sort(B);this.attr("x",n),this.attr("y",o),this.attr("width",a-n),this.attr("height",l-o)}return!0}onEnd(){const t=this.el;return this.el=null,!(!t||!t.getTotalLength())}};function le(t,e){const s=t.x-e.x,r=t.y-e.y;return s*s+r*r}function ue(t,e,s){let r=e.x,i=e.y,n=s.x-r,a=s.y-i;if(n!==0||a!==0){const o=((t.x-r)*n+(t.y-i)*a)/(n*n+a*a);o>1?(r=s.x,i=s.y):o>0&&(r+=n*o,i+=a*o)}return n=t.x-r,a=t.y-i,n*n+a*a}function ce(t,e){let s=t[0];const r=[s];let i;for(let n=1,a=t.length;n<a;n++)i=t[n],le(i,s)>e&&(r.push(i),s=i);return s!==i&&i&&r.push(i),r}function at(t,e,s,r,i){let n=r,a=0;for(let o=e+1;o<s;o++){const l=ue(t[o],t[e],t[s]);l>n&&(a=o,n=l)}n>r&&(a-e>1&&at(t,e,a,r,i),i.push(t[a]),s-a>1&&at(t,a,s,r,i))}function de(t,e){const s=t.length-1,r=[t[0]];return at(t,0,s,e,r),r.push(t[s]),r}function wt(t,e,s=!1){if(t.length<=2)return t;const r=e!==void 0?e*e:1;return t=s?t:ce(t,r),t=de(t,r),t}var fe=class F extends ${constructor(){super(...arguments),this.points=[],this.count=0}onStart(e){if(this.el=this.createElement("path",{fill:"transparent"}),this.points=[e],this.brush.arrowEnd){this.arrowId=bt();const s=Et(this.arrowId,this.brush.color);this.el.appendChild(s)}return this.el}onMove(e){return this.el||this.onStart(e),this.points[this.points.length-1]!==e&&(this.points.push(e),this.count+=1),this.count>5&&(this.points=wt(this.points,1,!0),this.count=0),this.attr("d",F.toSvgData(this.points)),!0}onEnd(){const e=this.el;return this.el=null,!(!e||(e.setAttribute("d",F.toSvgData(wt(this.points,1,!0))),!e.getTotalLength()))}static line(e,s){const r=s.x-e.x,i=s.y-e.y;return{length:Math.sqrt(r**2+i**2),angle:Math.atan2(i,r)}}static controlPoint(e,s,r,i){const n=s||e,a=r||e,o=.2,l=F.line(n,a),g=l.angle+(i?Math.PI:0),v=l.length*o,y=e.x+Math.cos(g)*v,P=e.y+Math.sin(g)*v;return{x:y,y:P}}static bezierCommand(e,s,r){const i=F.controlPoint(r[s-1],r[s-2],e),n=F.controlPoint(e,r[s-1],r[s+1],!0);return`C ${i.x.toFixed(L)},${i.y.toFixed(L)} ${n.x.toFixed(L)},${n.y.toFixed(L)} ${e.x.toFixed(L)},${e.y.toFixed(L)}`}static toSvgData(e){return e.reduce((s,r,i,n)=>i===0?`M ${r.x.toFixed(L)},${r.y.toFixed(L)}`:`${s} ${F.bezierCommand(r,i,n)}`,"")}},pe=class extends ${constructor(){super(...arguments),this.pathSubFactor=20,this.pathFragments=[],this._erased=[]}onSelected(t){const e=(s,r)=>{if(s&&s.length)for(let i=0;i<s.length;i++){const n=s[i];if(n.getTotalLength){const a=n.getTotalLength();for(let o=0;o<this.pathSubFactor;o++){const l=n.getPointAtLength(a*o/this.pathSubFactor),g=n.getPointAtLength(a*(o+1)/this.pathSubFactor);this.pathFragments.push({x1:l.x,x2:g.x,y1:l.y,y2:g.y,segment:o,element:r||n})}}else n.children&&e(n.children,n)}};t&&e(t.children)}onUnselected(){this.pathFragments=[]}onStart(t){this.svgPointPrevious=this.svgElement.createSVGPoint(),this.svgPointPrevious.x=t.x,this.svgPointPrevious.y=t.y}onMove(t){this.svgPointCurrent=this.svgElement.createSVGPoint(),this.svgPointCurrent.x=t.x,this.svgPointCurrent.y=t.y;const e=this.checkAndEraseElement();return this.svgPointPrevious=this.svgPointCurrent,e}onEnd(){this.svgPointPrevious=void 0,this.svgPointCurrent=void 0;const t=this._erased;return this._erased=[],{undo:()=>t.forEach(e=>this.drauu._restoreNode(e)),redo:()=>t.forEach(e=>this.drauu._removeNode(e))}}checkAndEraseElement(){if(this.pathFragments.length)for(let t=0;t<this.pathFragments.length;t++){const e=this.pathFragments[t],s={x1:this.svgPointPrevious.x,x2:this.svgPointCurrent.x,y1:this.svgPointPrevious.y,y2:this.svgPointCurrent.y};this.lineLineIntersect(e,s)&&(this.drauu._removeNode(e.element),this._erased.push(e.element))}return this._erased.length&&(this.pathFragments=this.pathFragments.filter(t=>!this._erased.includes(t.element))),this._erased.length>0}lineLineIntersect(t,e){const s=t.x1,r=t.x2,i=e.x1,n=e.x2,a=t.y1,o=t.y2,l=e.y1,g=e.y2,v=(s-r)*(l-g)-(a-o)*(i-n),y=(s*o-a*r)*(i-n)-(s-r)*(i*g-l*n),P=(s*o-a*r)*(l-g)-(a-o)*(i*g-l*n),f=(d,c,S)=>d>=c&&d<=S?!0:d>=S&&d<=c;if(v===0)return!1;{const d={x:y/v,y:P/v};return f(d.x,s,r)&&f(d.y,a,o)&&f(d.x,i,n)&&f(d.y,l,g)}}};function ge(t){return{draw:new fe(t),stylus:new ie(t),line:new ae(t),rectangle:new he(t),ellipse:new oe(t),eraseLine:new pe(t)}}var me=class{constructor(t={}){this.options=t,this.el=null,this.svgPoint=null,this.eventEl=null,this.shiftPressed=!1,this.altPressed=!1,this.drawing=!1,this._emitter=Gt(),this._originalPointerId=null,this._models=ge(this),this._opStack=[],this._opIndex=0,this._disposables=[],this._elements=[],this.options.brush||(this.options.brush={color:"black",size:3,mode:"stylus"}),t.el&&this.mount(t.el,t.eventTarget,t.window)}get model(){return this._models[this.mode]}get mounted(){return!!this.el}get mode(){return this.options.brush.mode||"stylus"}set mode(t){this._models[this.mode].onUnselected(),this.options.brush.mode=t,this.model.onSelected(this.el)}get brush(){return this.options.brush}set brush(t){this.options.brush=t}resolveSelector(t){return typeof t=="string"?document.querySelector(t):t||null}mount(t,e,s=window){if(this.el)throw new Error("[drauu] already mounted, unmount previous target first");if(this.el=this.resolveSelector(t),!this.el)throw new Error("[drauu] target element not found");if(this.el.tagName.toLocaleLowerCase()!=="svg")throw new Error("[drauu] can only mount to a SVG element");if(!this.el.createSVGPoint)throw new Error("[drauu] SVG element must be create by document.createElementNS('http://www.w3.org/2000/svg', 'svg')");this.svgPoint=this.el.createSVGPoint();const r=this.resolveSelector(e)||this.el,i=this.eventStart.bind(this),n=this.eventMove.bind(this),a=this.eventEnd.bind(this),o=this.eventKeyboard.bind(this);r.addEventListener("pointerdown",i,{passive:!1}),s.addEventListener("pointermove",n,{passive:!1}),s.addEventListener("pointerup",a,{passive:!1}),s.addEventListener("pointercancel",a,{passive:!1}),s.addEventListener("keydown",o,!1),s.addEventListener("keyup",o,!1),this._disposables.push(()=>{r.removeEventListener("pointerdown",i),s.removeEventListener("pointermove",n),s.removeEventListener("pointerup",a),s.removeEventListener("pointercancel",a),s.removeEventListener("keydown",o,!1),s.removeEventListener("keyup",o,!1)}),this._emitter.emit("mounted")}unmount(){this._disposables.forEach(t=>t()),this._disposables.length=0,this._elements.length=0,this.el=null,this._emitter.emit("unmounted")}on(t,e){return this._emitter.on(t,e)}undo(){return!this.canUndo()||this.drawing?!1:(this._opStack[--this._opIndex].undo(),this._emitter.emit("changed"),!0)}redo(){return!this.canRedo()||this.drawing?!1:(this._opStack[this._opIndex++].redo(),this._emitter.emit("changed"),!0)}canRedo(){return this._opIndex<this._opStack.length}canUndo(){return this._opIndex>0}eventMove(t){!this.acceptsInput(t)||!this.drawing||this.model._eventMove(t)&&(t.stopPropagation(),t.preventDefault(),this._emitter.emit("changed"))}eventStart(t){this.acceptsInput(t)&&(t.stopPropagation(),t.preventDefault(),this._currentNode&&this.cancel(),this.drawing=!0,this._originalPointerId=t.pointerId,this._emitter.emit("start"),this._currentNode=this.model._eventDown(t),this._currentNode&&this.mode!=="eraseLine"&&this.el.appendChild(this._currentNode),this._emitter.emit("changed"))}eventEnd(t){if(!this.acceptsInput(t)||!this.drawing)return;const e=this.model._eventUp(t);if(!e)this.cancel();else if(e===!0){const s=this._currentNode;this._appendNode(s),this.commit({undo:()=>this._removeNode(s),redo:()=>this._restoreNode(s)})}else this.commit(e);this.drawing=!1,this._emitter.emit("end"),this._emitter.emit("changed"),this._originalPointerId=null}acceptsInput(t){return(!this.options.acceptsInputTypes||this.options.acceptsInputTypes.includes(t.pointerType))&&!(this._originalPointerId&&this._originalPointerId!==t.pointerId)}eventKeyboard(t){this.shiftPressed===t.shiftKey&&this.altPressed===t.altKey||(this.shiftPressed=t.shiftKey,this.altPressed=t.altKey,this.model.point&&this.model.onMove(this.model.point)&&this._emitter.emit("changed"))}commit(t){this._opStack.length=this._opIndex,this._opStack.push(t),this._opIndex++;const e=this._currentNode;this._currentNode=void 0,this._emitter.emit("committed",e)}clear(){this._opStack.length=0,this._opIndex=0,this.cancel(),this.el.innerHTML="",this._emitter.emit("changed")}cancel(){this._currentNode&&(this.el.removeChild(this._currentNode),this._currentNode=void 0,this._emitter.emit("canceled"))}dump(){return this.el.innerHTML}load(t){this.clear(),this.el.innerHTML=t}_appendNode(t){const e=this._elements.at(-1);e?e.after(t):this.el.append(t);const s=this._elements.push(t)-1;t.dataset.drauu_index=s.toString()}_removeNode(t){t.remove(),this._elements[+t.dataset.drauu_index]=null}_restoreNode(t){const e=+t.dataset.drauu_index;this._elements[e]=t;for(let s=e-1;s>=0;s--){const r=this._elements[s];if(r){r.after(t);return}}this.el.prepend(t)}};function ve(t){return new me(t)}const ye=Nt(()=>{const{currentSlideNo:t,isPresenter:e}=Rt(),s=["#ff595e","#ffca3a","#8ac926","#1982c4","#6a4c93","#ffffff","#000000"],r=st("slidev-drawing-enabled",!1),i=st("slidev-drawing-pinned",!1),n=kt(st("slidev-drawing-brush",{color:s[0],size:4,mode:"stylus"})),a=z(!1),o=z(!1),l=z(!1),g=z(!1),v=z("stylus"),y=rt(()=>dt.drawings.syncAll||e.value);let P=!1;const f=rt({get(){return v.value},set(h){v.value=h,h==="arrow"?(c.mode="line",n.arrowEnd=!0):(c.mode=h,n.arrowEnd=!1)}}),d=It({brush:n,acceptsInputTypes:rt(()=>r.value&&(!dt.drawings.presenterOnly||e.value)?void 0:["pen"]),coordinateTransform:!1}),c=At(ve(d));function S(){c.clear(),y.value&&ft(t.value,"")}function T(){var h;l.value=c.canRedo(),o.value=c.canUndo(),g.value=!!((h=c.el)!=null&&h.children.length)}function D(h){P=!0;const x=nt[h||t.value];x!=null?c.load(x):c.clear(),T(),P=!1}return c.on("changed",()=>{if(T(),!P){const h=c.dump(),x=t.value;(nt[x]||"")!==h&&y.value&&ft(x,c.dump())}}),zt(h=>{P=!0,h[t.value]!=null&&c.load(h[t.value]||""),P=!1,T()}),Ct(()=>{Ft(t,()=>{c.mounted&&D()},{immediate:!0})}),c.on("start",()=>a.value=!0),c.on("end",()=>a.value=!1),window.addEventListener("keydown",h=>{if(!r.value||Vt.value)return;const x=!h.ctrlKey&&!h.altKey&&!h.shiftKey&&!h.metaKey;let _=!0;h.code==="KeyZ"&&(h.ctrlKey||h.metaKey)?h.shiftKey?c.redo():c.undo():h.code==="Escape"?r.value=!1:h.code==="KeyL"&&x?f.value="line":h.code==="KeyA"&&x?f.value="arrow":h.code==="KeyS"&&x?f.value="stylus":h.code==="KeyR"&&x?f.value="rectangle":h.code==="KeyE"&&x?f.value="ellipse":h.code==="KeyC"&&x?S():h.code.startsWith("Digit")&&x&&+h.code[5]<=s.length?n.color=s[+h.code[5]-1]:_=!1,_&&(h.preventDefault(),h.stopPropagation())},!1),{brush:n,brushColors:s,canClear:g,canRedo:l,canUndo:o,clear:S,drauu:c,drauuOptions:d,drawingEnabled:r,drawingMode:f,drawingPinned:i,drawingState:nt,isDrawing:a,loadCanvas:D}}),xe=["innerHTML"],_e=Tt({__name:"DrawingPreview",props:{page:{type:Number,required:!0}},setup(t){const{drawingState:e}=ye();return(s,r)=>ct(e)[s.page]?(Kt(),$t("svg",{key:0,class:"w-full h-full absolute top-0 pointer-events-none",innerHTML:ct(e)[s.page]},null,8,xe)):Ot("v-if",!0)}}),we=Ut(_e,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingPreview.vue"]]),Ee=Object.freeze(Object.defineProperty({__proto__:null,default:we},Symbol.toStringTag,{value:"Module"}));export{we as D,Ee as a,ye as u};
import{d as l,t as i,_ as u,D as m,E as c,o as p,b as f,i as d,A as s}from"../modules/vue-O-XuQLLR.js";import{u as _}from"./context-8sk6R7gr.js";import{u as v}from"./DrawingPreview-lUDfsxKN.js";import{b as g}from"../index-DENYuTHS.js";import"./bottom-WehDtssn.js";import"../modules/shiki-CBnMlxcT.js";const w=l({__name:"DrawingLayer",setup(h){const{drauu:e,drawingEnabled:o,loadCanvas:t}=v(),r=_().$scale,n=i();return u(()=>{e.mount(n.value,n.value.parentElement),m(r,a=>e.options.coordinateScale=1/a,{immediate:!0}),t()}),c(()=>{e.unmount()}),(a,x)=>(p(),f("svg",{ref_key:"svg",ref:n,class:d(["w-full h-full absolute top-0",{"pointer-events-none":!s(o),"touch-none":s(o)}])},null,2))}}),B=g(w,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingLayer.vue"]]);export{B as default};
import{n as T,w as Y,x as Z,y as H,z as J,A as W,B as X,C as ee,D as ne,E as te,F as se,G as oe}from"../modules/unplugin-icons-DhLcIxB1.js";import{d as B,t as $,Q as le,ax as ae,b as L,f as ie,h as z,A as e,o as g,c as C,k as o,i as l,l as n,e as r,x as re,a1 as m,a2 as ue,Z as ce,F as de,ai as b,g as _e}from"../modules/vue-O-XuQLLR.js";import{L as pe}from"../modules/shiki-CBnMlxcT.js";import{u as me}from"./DrawingPreview-lUDfsxKN.js";import{I as a,V as D}from"./SlidesShow-Dk9xuOJo.js";import{b as M}from"../index-DENYuTHS.js";import"./bottom-WehDtssn.js";import"./context-8sk6R7gr.js";const ge=B({__name:"Draggable",props:{storageKey:{type:String,required:!1},initial:{type:Object,required:!1}},setup(h){const u=h,w=$(null),f=u.initial??{x:0,y:0},k=u.storageKey?le(u.storageKey,f):$(f),{style:y}=ae(w,{initialValue:k});return(v,d)=>(g(),L("div",{ref_key:"el",ref:w,class:"fixed",style:z(e(y))},[ie(v.$slots,"default")],4))}}),we=M(ge,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/Draggable.vue"]]),fe=r("svg",{width:"1em",height:"1em",class:"-mt-0.5",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},[r("path",{d:"M21.71 3.29a1 1 0 0 0-1.42 0l-18 18a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l18-18a1 1 0 0 0 0-1.42z",fill:"currentColor"})],-1),ve=r("svg",{viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},[r("line",{x1:"2",y1:"15",x2:"22",y2:"4",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round"}),r("line",{x1:"2",y1:"24",x2:"28",y2:"10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"}),r("line",{x1:"7",y1:"31",x2:"29",y2:"19",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round"})],-1),be={class:"flex bg-main p-2"},ke={class:"inline-block w-7 text-center"},ye={class:"pt-.5"},xe=B({__name:"DrawingControls",setup(h){const{brush:u,canClear:w,canRedo:f,canUndo:k,clear:y,drauu:v,drawingEnabled:d,drawingMode:i,drawingPinned:c,brushColors:S}=me();function V(){v.undo()}function A(){v.redo()}let x="stylus";function _(p){i.value=p,d.value=!0,p!=="eraseLine"&&(x=p)}function E(p){u.color=p,d.value=!0,i.value=x}return(p,t)=>{const U=T,F=Y,K=Z,N=H,R=J,j=W,q=X,I=ee,P=ne,G=te,O=se,Q=oe;return g(),C(we,{class:l(["flex flex-wrap text-xl p-2 gap-1 rounded-md bg-main shadow transition-opacity duration-200 z-20 border border-main",e(d)?"":e(c)?"opacity-40 hover:opacity-90":"opacity-0 pointer-events-none"]),"storage-key":"slidev-drawing-pos","initial-x":10,"initial-y":10},{default:o(()=>[n(a,{title:"Draw with stylus",class:l({shallow:e(i)!=="stylus"}),onClick:t[0]||(t[0]=s=>_("stylus"))},{default:o(()=>[n(U)]),_:1},8,["class"]),n(a,{title:"Draw a line",class:l({shallow:e(i)!=="line"}),onClick:t[1]||(t[1]=s=>_("line"))},{default:o(()=>[fe]),_:1},8,["class"]),n(a,{title:"Draw an arrow",class:l({shallow:e(i)!=="arrow"}),onClick:t[2]||(t[2]=s=>_("arrow"))},{default:o(()=>[n(F)]),_:1},8,["class"]),n(a,{title:"Draw an ellipse",class:l({shallow:e(i)!=="ellipse"}),onClick:t[3]||(t[3]=s=>_("ellipse"))},{default:o(()=>[n(K)]),_:1},8,["class"]),n(a,{title:"Draw a rectangle",class:l({shallow:e(i)!=="rectangle"}),onClick:t[4]||(t[4]=s=>_("rectangle"))},{default:o(()=>[n(N)]),_:1},8,["class"]),n(a,{title:"Erase",class:l({shallow:e(i)!=="eraseLine"}),onClick:t[5]||(t[5]=s=>_("eraseLine"))},{default:o(()=>[n(R)]),_:1},8,["class"]),n(D),n(e(pe),null,{popper:o(()=>[r("div",be,[r("div",ke,re(e(u).size),1),r("div",ye,[m(r("input",{"onUpdate:modelValue":t[6]||(t[6]=s=>e(u).size=s),type:"range",min:"1",max:"15",onChange:t[7]||(t[7]=s=>i.value=e(x))},null,544),[[ue,e(u).size]])])])]),default:o(()=>[n(a,{title:"Adjust stroke width",class:l({shallow:e(i)==="eraseLine"})},{default:o(()=>[ve]),_:1},8,["class"])]),_:1}),(g(!0),L(de,null,ce(e(S),s=>(g(),C(a,{key:s,title:"Set brush color",class:l(e(u).color===s&&e(i)!=="eraseLine"?"active":"shallow"),onClick:Ce=>E(s)},{default:o(()=>[r("div",{class:l(["w-6 h-6 transition-all transform border",e(u).color!==s?"rounded-1/2 scale-85 border-white":"rounded-md border-gray-300/50"]),style:z(e(d)?{background:s}:{borderColor:s})},null,6)]),_:2},1032,["class","onClick"]))),128)),n(D),n(a,{title:"Undo",class:l({disabled:!e(k)}),onClick:t[8]||(t[8]=s=>V())},{default:o(()=>[n(j)]),_:1},8,["class"]),n(a,{title:"Redo",class:l({disabled:!e(f)}),onClick:t[9]||(t[9]=s=>A())},{default:o(()=>[n(q)]),_:1},8,["class"]),n(a,{title:"Delete",class:l({disabled:!e(w)}),onClick:t[10]||(t[10]=s=>e(y)())},{default:o(()=>[n(I)]),_:1},8,["class"]),n(D),n(a,{title:e(c)?"Unpin drawing":"Pin drawing",class:l({shallow:!e(c)}),onClick:t[11]||(t[11]=s=>c.value=!e(c))},{default:o(()=>[m(n(P,{class:"transform -rotate-45"},null,512),[[b,e(c)]]),m(n(G,null,null,512),[[b,!e(c)]])]),_:1},8,["title","class"]),e(d)?(g(),C(a,{key:0,title:e(c)?"Drawing pinned":"Drawing unpinned",class:l({shallow:!e(d)}),onClick:t[12]||(t[12]=s=>d.value=!e(d))},{default:o(()=>[m(n(O,null,null,512),[[b,e(c)]]),m(n(Q,null,null,512),[[b,!e(c)]])]),_:1},8,["title","class"])):_e("v-if",!0)]),_:1},8,["class"])}}}),Ve=M(xe,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/internals/DrawingControls.vue"]]);export{Ve as default};
import{d as p,y as f,o as a,b as u,f as d,h,e,c as v,k as r,a0 as c,l as y,q as g,s as x,A as _}from"../modules/vue-O-XuQLLR.js";import{b as l,J as i}from"../index-DENYuTHS.js";import{u as m,p as b,f as $}from"./context-8sk6R7gr.js";import"../modules/shiki-CBnMlxcT.js";const q=p({__name:"Transform",props:{scale:{type:[Number,String],required:!1},origin:{type:String,required:!1}},setup(o){const t=o,n=f(()=>{const s=[];return t.scale!=null&&s.push(`scale(${t.scale||1})`),{transform:s.join(" "),"transform-origin":t.origin||"top left"}});return(s,E)=>(a(),u("div",{style:h(n.value)},[d(s.$slots,"default")],4))}}),T=l(q,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/builtin/Transform.vue"]]),k={class:"slidev-layout quote"},B={class:"my-auto"},C={__name:"quote",setup(o){return m(),(t,n)=>(a(),u("div",k,[e("div",B,[d(t.$slots,"default")])]))}},S=l(C,[["__file","/home/alex/notes/slides/node_modules/@slidev/theme-default/layouts/quote.vue"]]),N=e("h1",null,"Thank you !",-1),F=e("p",null,"And to:",-1),P=e("p",null,"Besançon Hospital",-1),V=e("p",null,"Mésocentre de calcul de Franche-Comté",-1),j=e("br",null,null,-1),z=e("br",null,null,-1),A=e("br",null,null,-1),I=e("br",null,null,-1),w={__name:"5",setup(o){return b(i),m(),(t,n)=>{const s=T;return a(),v(S,g(x(_($)(_(i),4))),{default:r(()=>[N,F,P,V,j,z,c(" Contact: alexis.praga (at) proton.me "),A,I,y(s,{scale:.5},{default:r(()=>[c(" Images courtesy of Flaticon ")]),_:1})]),_:1},16)}}},R=l(w,[["__file","/@slidev/slides/5.md"]]);export{R as default};
import{_ as A}from"./Mermaid-sWhOKcCj.js";import{o,b as l,f as d,c,k as i,l as m,m as _,q as p,s as u,A as t,e as f}from"../modules/vue-O-XuQLLR.js";import{b as r,G as s}from"../index-DENYuTHS.js";import{p as g,u as C,f as F}from"./context-8sk6R7gr.js";import"../modules/file-saver-EUMWMpoS.js";import"../modules/shiki-CBnMlxcT.js";const Y={},T={class:"slidev-layout default"};function k(e,n){return o(),l("div",T,[d(e.$slots,"default")])}const x=r(Y,[["render",k],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/default.vue"]]),B=f("h1",null,"Nix : excellent community",-1),w={__name:"4",setup(e){return g(s),C(),(n,X)=>{const a=A;return o(),c(x,p(u(t(F)(t(s),3))),{default:i(()=>[B,m(a,_({"code-lz":"OYQwdgLhBQAE+wCYggUwGIHsBOBbF8AmsYQLQCy5pAItXAqgB4DGANgK6KoDOCsA7qlQBrVGETd68AKTTYACgAGTNpx6LYIZs1QAHCL267UzAJYAzU8yQoesU2FgkylGtVjmc+CABobAT15Mc1gIAAtUASFhBQAibnZxEH9YgEpYHFhYwRExCVi/ACN2CFgwTFLwyP4cRCyc4WRA2IA6VOgpWG4TCFNMRwA5VH5YAAUtYRBgHk6wkF1SXX9YAC4tXoA3SJ8AJgAGHYAWUj2ARlIdgFY/faOTnZPTzq3dVfXTLdhdg+Ozi4BmG4/e6PTrkdisXoAR2sb2Ym22t3+JwAHKRTtdYLdfg8zp0jKZXmt4R9EQdkXs0XsAGxAu4HUF8bAQYCkCCYTCsXjEhFfJEnS4nWlY4EMvF8Qp9JgQECsUzARwrRD9Mk7XFo06A24PU57C5PCV9UiS4CWViRJUqvkHdXorXk9Hnf57ToAIT61FdAAkACoAZXglrAqttmu+Owpxx21M6kswxmwrFWyuD1rVqNR4dDLvxPT6jgAqrpkGhOgBpMSlIOqinInYAdnDFMFe3rnWDjAg5lYmBG1bTkceTaF6MunVAEBiyatWYzewAnLOF+iXXwJzF+0v5+jadqVyvOgBxFDCUiHFo7FrUlqnaeprejh+nalAA==="},{theme:"neutral"}),null,16)]),_:1},16)}}},E=r(w,[["__file","/@slidev/slides/4.md"]]);export{E as default};
import{_ as m}from"./Mermaid-sWhOKcCj.js";import{d as p,o as d,b as _,e,f as t,i as l,c as f,k as n,l as g,m as h,q as v,s as A,A as i}from"../modules/vue-O-XuQLLR.js";import{b as u,F as c}from"../index-DENYuTHS.js";import{p as w,u as B,f as C}from"./context-8sk6R7gr.js";import"../modules/file-saver-EUMWMpoS.js";import"../modules/shiki-CBnMlxcT.js";const k={class:"col-header"},M=p({__name:"two-cols-header",props:{class:{type:String},layoutClass:{type:String}},setup(a){const o=a;return(s,r)=>(d(),_("div",{class:l(["slidev-layout two-cols-header w-full h-full",a.layoutClass])},[e("div",k,[t(s.$slots,"default",{},void 0,!0)]),e("div",{class:l(["col-left",o.class])},[t(s.$slots,"left",{},void 0,!0)],2),e("div",{class:l(["col-right",o.class])},[t(s.$slots,"right",{},void 0,!0)],2),e("div",{class:l(["col-bottom",o.class])},[t(s.$slots,"bottom",{},void 0,!0)],2)],2))}}),Y=u(M,[["__scopeId","data-v-1401df1d"],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/two-cols-header.vue"]]),b=e("h1",null,"Bioinformatics pipeline",-1),y=e("h1",null,"Nix ?",-1),F=e("ul",null,[e("li",null,"Reproducible dependencies : ok ! (it’s the law)"),e("li",null,"High Performance Computing : ok !"),e("li",null,"Manage workflow ?"),e("li",null,"Manage databases ?")],-1),x={__name:"3",setup(a){return w(c),B(),(o,s)=>{const r=m;return d(),f(Y,v(A(i(C)(i(c),2))),{right:n(I=>[y,F]),default:n(()=>[b,g(r,h({"code-lz":"OYJwhgDgFgBAMgJQFBgDYEtgDsYFpcB8MAxmqgNqmqowBuYI6YWALgLp6EzNYD2LYFgFNORAGbpUwkEgAmAIwCMACnIARQWHlgAziMUAaAEwA6M2wCUo7lj4Dhc+UdUaB2vTACsBgGxmTltYSUkIgQA="},{theme:"neutral",scale:.8}),null,16)]),_:1},16)}}},E=u(x,[["__file","/@slidev/slides/3.md"]]);export{E as default};
import{o as n,b as l,e,f as c,c as i,k as _,a0 as d,q as u,s as m,A as t}from"../modules/vue-O-XuQLLR.js";import{b as a,E as o}from"../index-DENYuTHS.js";import{p as f,u as p,f as h}from"./context-8sk6R7gr.js";import"../modules/shiki-CBnMlxcT.js";const v="/slides/fosdem2024/assets/ngs-BKBsMuHF.svg",x={},g={class:"slidev-layout center h-full grid place-content-center"},B={class:"my-auto"};function b(s,r){return n(),l("div",g,[e("div",B,[c(s.$slots,"default")])])}const k=a(x,[["render",b],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/center.vue"]]),y=e("h1",null,"Next-generation sequencing",-1),$=e("br",null,null,-1),N=e("p",null,[e("img",{src:v,alt:""})],-1),P=e("br",null,null,-1),q=e("br",null,null,-1),C={__name:"2",setup(s){return f(o),p(),(r,E)=>(n(),i(k,u(m(t(h)(t(o),1))),{default:_(()=>[y,$,N,P,q,d(" Bioinformatics: 1 million -> 1 000 candidates ")]),_:1},16))}},j=a(C,[["__file","/@slidev/slides/2.md"]]);export{j as default};
import{d as _,y as p,o as c,b as f,e as s,f as m,h,c as v,k as g,q as x,s as y,A as a}from"../modules/vue-O-XuQLLR.js";import{u as d,p as k,f as b}from"./context-8sk6R7gr.js";import{b as u,D as i}from"../index-DENYuTHS.js";import"../modules/shiki-CBnMlxcT.js";function l(e){return e.startsWith("/")?"/slides/fosdem2024"+e.slice(1):e}function P(e,r=!1){const o=e&&["#","rgb","hsl"].some(n=>e.indexOf(n)===0),t={background:o?e:void 0,color:e&&!o?"white":void 0,backgroundImage:o?void 0:e?r?`linear-gradient(#0005, #0008), url(${l(e)})`:`url("${l(e)}")`:void 0,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"cover"};return t.background||delete t.background,t}const B={class:"my-auto w-full"},C=_({__name:"cover",props:{background:{default:""}},setup(e){d();const r=e,o=p(()=>P(r.background,!0));return(t,n)=>(c(),f("div",{class:"slidev-layout cover",style:h(o.value)},[s("div",B,[m(t.$slots,"default")])],4))}}),S=u(C,[["__file","/home/alex/notes/slides/node_modules/@slidev/theme-default/layouts/cover.vue"]]),$=s("h1",null,"Nix for genetics",-1),w=s("h2",null,"Powering a bioinformatics pipeline",-1),z=s("p",null,"Alexis Praga (M. D, Ph.D in Computer Science)",-1),A=s("p",null,"Besançon Hospital (France)",-1),D={__name:"1",setup(e){return k(i),d(),(r,o)=>(c(),v(S,x(y(a(b)(a(i),0))),{default:g(()=>[$,w,z,A]),_:1},16))}},j=u(D,[["__file","/@slidev/slides/1.md"]]);export{j as default};
import{m as $t,g as we,D as ve,C as _e,c as st,s as te,b as ke,a as Pe,j as v,X as ee,a5 as nt,E as Le,l as G,d as At,r as se,$ as Bt,a6 as Ie,a7 as wt,e as Ae,h as Lt,i as Ne,v as B}from"./slidev/Mermaid-sWhOKcCj.js";import{d as Se,a as Me,b as Re,c as Ce,e as zt,g as Nt}from"./svgDrawCommon-99ae2c94-BzrMl0LX.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var Yt=function(){var t=function(dt,w,k,L){for(k=k||{},L=dt.length;L--;k[dt[L]]=w);return k},e=[1,2],c=[1,3],s=[1,4],i=[2,4],a=[1,9],o=[1,11],l=[1,13],p=[1,14],r=[1,16],x=[1,17],T=[1,18],u=[1,24],g=[1,25],m=[1,26],_=[1,27],I=[1,28],V=[1,29],S=[1,30],O=[1,31],R=[1,32],q=[1,33],z=[1,34],J=[1,35],$=[1,36],H=[1,37],U=[1,38],F=[1,39],W=[1,41],Z=[1,42],K=[1,43],Q=[1,44],tt=[1,45],N=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],j=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],rt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],A=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Xt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ht=[68,69,70],ot=[1,120],Mt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,DOTTED_ARROW:74,SOLID_CROSS:75,DOTTED_CROSS:76,SOLID_POINT:77,DOTTED_POINT:78,TXT:79,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"DOTTED_ARROW",75:"SOLID_CROSS",76:"DOTTED_CROSS",77:"SOLID_POINT",78:"DOTTED_POINT",79:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:function(w,k,L,b,M,h,Et){var d=h.length-1;switch(M){case 3:return b.apply(h[d]),h[d];case 4:case 9:this.$=[];break;case 5:case 10:h[d-1].push(h[d]),this.$=h[d-1];break;case 6:case 7:case 11:case 12:this.$=h[d];break;case 8:case 13:this.$=[];break;case 15:h[d].type="createParticipant",this.$=h[d];break;case 16:h[d-1].unshift({type:"boxStart",boxData:b.parseBoxData(h[d-2])}),h[d-1].push({type:"boxEnd",boxText:h[d-2]}),this.$=h[d-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-2]),sequenceIndexStep:Number(h[d-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(h[d-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-1]};break;case 29:b.setDiagramTitle(h[d].substring(6)),this.$=h[d].substring(6);break;case 30:b.setDiagramTitle(h[d].substring(7)),this.$=h[d].substring(7);break;case 31:this.$=h[d].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=h[d].trim(),b.setAccDescription(this.$);break;case 34:h[d-1].unshift({type:"loopStart",loopText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.LOOP_START}),h[d-1].push({type:"loopEnd",loopText:h[d-2],signalType:b.LINETYPE.LOOP_END}),this.$=h[d-1];break;case 35:h[d-1].unshift({type:"rectStart",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_START}),h[d-1].push({type:"rectEnd",color:b.parseMessage(h[d-2]),signalType:b.LINETYPE.RECT_END}),this.$=h[d-1];break;case 36:h[d-1].unshift({type:"optStart",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_START}),h[d-1].push({type:"optEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.OPT_END}),this.$=h[d-1];break;case 37:h[d-1].unshift({type:"altStart",altText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.ALT_START}),h[d-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=h[d-1];break;case 38:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 39:h[d-1].unshift({type:"parStart",parText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.PAR_OVER_START}),h[d-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=h[d-1];break;case 40:h[d-1].unshift({type:"criticalStart",criticalText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.CRITICAL_START}),h[d-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=h[d-1];break;case 41:h[d-1].unshift({type:"breakStart",breakText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_START}),h[d-1].push({type:"breakEnd",optText:b.parseMessage(h[d-2]),signalType:b.LINETYPE.BREAK_END}),this.$=h[d-1];break;case 43:this.$=h[d-3].concat([{type:"option",optionText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.CRITICAL_OPTION},h[d]]);break;case 45:this.$=h[d-3].concat([{type:"and",parText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.PAR_AND},h[d]]);break;case 47:this.$=h[d-3].concat([{type:"else",altText:b.parseMessage(h[d-1]),signalType:b.LINETYPE.ALT_ELSE},h[d]]);break;case 48:h[d-3].draw="participant",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 49:h[d-1].draw="participant",h[d-1].type="addParticipant",this.$=h[d-1];break;case 50:h[d-3].draw="actor",h[d-3].type="addParticipant",h[d-3].description=b.parseMessage(h[d-1]),this.$=h[d-3];break;case 51:h[d-1].draw="actor",h[d-1].type="addParticipant",this.$=h[d-1];break;case 52:h[d-1].type="destroyParticipant",this.$=h[d-1];break;case 53:this.$=[h[d-1],{type:"addNote",placement:h[d-2],actor:h[d-1].actor,text:h[d]}];break;case 54:h[d-2]=[].concat(h[d-1],h[d-1]).slice(0,2),h[d-2][0]=h[d-2][0].actor,h[d-2][1]=h[d-2][1].actor,this.$=[h[d-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:h[d-2].slice(0,2),text:h[d]}];break;case 55:this.$=[h[d-1],{type:"addLinks",actor:h[d-1].actor,text:h[d]}];break;case 56:this.$=[h[d-1],{type:"addALink",actor:h[d-1].actor,text:h[d]}];break;case 57:this.$=[h[d-1],{type:"addProperties",actor:h[d-1].actor,text:h[d]}];break;case 58:this.$=[h[d-1],{type:"addDetails",actor:h[d-1].actor,text:h[d]}];break;case 61:this.$=[h[d-2],h[d]];break;case 62:this.$=h[d];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:h[d-1]}];break;case 66:this.$=[h[d-4],h[d-1],{type:"addMessage",from:h[d-4].actor,to:h[d-1].actor,signalType:h[d-3],msg:h[d]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:h[d-4]}];break;case 67:this.$=[h[d-3],h[d-1],{type:"addMessage",from:h[d-3].actor,to:h[d-1].actor,signalType:h[d-2],msg:h[d]}];break;case 68:this.$={type:"addParticipant",actor:h[d]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.DOTTED;break;case 73:this.$=b.LINETYPE.SOLID_CROSS;break;case 74:this.$=b.LINETYPE.DOTTED_CROSS;break;case 75:this.$=b.LINETYPE.SOLID_POINT;break;case 76:this.$=b.LINETYPE.DOTTED_POINT;break;case 77:this.$=b.parseMessage(h[d].trim().substring(1));break}},table:[{3:1,4:e,5:c,6:s},{1:[3]},{3:5,4:e,5:c,6:s},{3:6,4:e,5:c,6:s},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,5]),{9:47,12:12,13:l,14:p,17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:H,52:U,53:F},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:N},{22:55,70:N},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:N},{22:72,70:N},{22:73,70:N},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82]},{55:83,57:[1,84],65:[1,85],66:[1,86]},{22:87,70:N},{22:88,70:N},{22:89,70:N},{22:90,70:N},t([5,51,64,71,72,73,74,75,76,77,78,79],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:91}),t(y,[2,17]),{5:[1,93],19:[1,92]},{5:[1,94]},t(y,[2,21]),{5:[1,95]},{5:[1,96]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t(j,i,{7:97}),t(j,i,{7:98}),t(j,i,{7:99}),t(rt,i,{40:100,7:101}),t(A,i,{42:102,7:103}),t(A,i,{7:103,42:104}),t(Xt,i,{45:105,7:106}),t(j,i,{7:107}),{5:[1,109],51:[1,108]},{5:[1,111],51:[1,110]},{5:[1,112]},{22:115,68:[1,113],69:[1,114],70:N},t(ht,[2,69]),t(ht,[2,70]),t(ht,[2,71]),t(ht,[2,72]),t(ht,[2,73]),t(ht,[2,74]),t(ht,[2,75]),t(ht,[2,76]),{22:116,70:N},{22:118,58:117,70:N},{70:[2,63]},{70:[2,64]},{56:119,79:ot},{56:121,79:ot},{56:122,79:ot},{56:123,79:ot},{4:[1,126],5:[1,128],11:125,12:127,16:[1,124],50:H,52:U,53:F},{5:[1,129]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,130],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,131],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,132],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,133]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,46],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,49:[1,134],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,135]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,44],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,48:[1,136],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{16:[1,137]},{16:[1,138]},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[2,42],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,47:[1,139],50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{4:a,5:o,8:8,9:10,12:12,13:l,14:p,16:[1,140],17:15,18:r,21:x,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:u,30:g,31:m,33:_,35:I,36:V,37:S,38:O,39:R,41:q,43:z,44:J,46:$,50:H,52:U,53:F,54:W,59:Z,60:K,61:Q,62:tt,70:N},{15:[1,141]},t(y,[2,49]),{15:[1,142]},t(y,[2,51]),t(y,[2,52]),{22:143,70:N},{22:144,70:N},{56:145,79:ot},{56:146,79:ot},{56:147,79:ot},{64:[1,148],79:[2,62]},{5:[2,55]},{5:[2,77]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:149,50:H,52:U,53:F},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,150]},t(y,[2,38]),{15:[1,151]},t(y,[2,39]),t(y,[2,40]),{15:[1,152]},t(y,[2,41]),{5:[1,153]},{5:[1,154]},{56:155,79:ot},{56:156,79:ot},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:157,70:N},t(P,[2,11]),t(rt,i,{7:101,40:158}),t(A,i,{7:103,42:159}),t(Xt,i,{7:106,45:160}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{79:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],85:[2,63],86:[2,64],119:[2,55],120:[2,77],121:[2,56],122:[2,57],123:[2,58],145:[2,67],146:[2,53],147:[2,54],155:[2,65],156:[2,66],157:[2,61],158:[2,47],159:[2,45],160:[2,43]},parseError:function(w,k){if(k.recoverable)this.trace(w);else{var L=new Error(w);throw L.hash=k,L}},parse:function(w){var k=this,L=[0],b=[],M=[null],h=[],Et=this.table,d="",_t=0,Gt=0,Te=2,Jt=1,be=h.slice.call(arguments,1),Y=Object.create(this.lexer),pt={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(pt.yy[Ct]=this.yy[Ct]);Y.setInput(w,pt.yy),pt.yy.lexer=Y,pt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Dt=Y.yylloc;h.push(Dt);var Ee=Y.options&&Y.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var lt;return lt=b.pop()||Y.lex()||Jt,typeof lt!="number"&&(lt instanceof Array&&(b=lt,lt=b.pop()),lt=k.symbols_[lt]||lt),lt}for(var X,ut,et,Vt,yt={},kt,ct,Zt,Pt;;){if(ut=L[L.length-1],this.defaultActions[ut]?et=this.defaultActions[ut]:((X===null||typeof X>"u")&&(X=me()),et=Et[ut]&&Et[ut][X]),typeof et>"u"||!et.length||!et[0]){var Ot="";Pt=[];for(kt in Et[ut])this.terminals_[kt]&&kt>Te&&Pt.push("'"+this.terminals_[kt]+"'");Y.showPosition?Ot="Parse error on line "+(_t+1)+`:
`+Y.showPosition()+`
Expecting `+Pt.join(", ")+", got '"+(this.terminals_[X]||X)+"'":Ot="Parse error on line "+(_t+1)+": Unexpected "+(X==Jt?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError(Ot,{text:Y.match,token:this.terminals_[X]||X,line:Y.yylineno,loc:Dt,expected:Pt})}if(et[0]instanceof Array&&et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ut+", token: "+X);switch(et[0]){case 1:L.push(X),M.push(Y.yytext),h.push(Y.yylloc),L.push(et[1]),X=null,Gt=Y.yyleng,d=Y.yytext,_t=Y.yylineno,Dt=Y.yylloc;break;case 2:if(ct=this.productions_[et[1]][1],yt.$=M[M.length-ct],yt._$={first_line:h[h.length-(ct||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(ct||1)].first_column,last_column:h[h.length-1].last_column},Ee&&(yt._$.range=[h[h.length-(ct||1)].range[0],h[h.length-1].range[1]]),Vt=this.performAction.apply(yt,[d,Gt,_t,pt.yy,et[1],M,h].concat(be)),typeof Vt<"u")return Vt;ct&&(L=L.slice(0,-1*ct*2),M=M.slice(0,-1*ct),h=h.slice(0,-1*ct)),L.push(this.productions_[et[1]][0]),M.push(yt.$),h.push(yt._$),Zt=Et[L[L.length-2]][L[L.length-1]],L.push(Zt);break;case 3:return!0}}return!0}},ye=function(){var dt={EOF:1,parseError:function(k,L){if(this.yy.parser)this.yy.parser.parseError(k,L);else throw new Error(k)},setInput:function(w,k){return this.yy=k||this.yy||{},this._input=w,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var k=w.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},unput:function(w){var k=w.length,L=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),L.length-1&&(this.yylineno-=L.length-1);var M=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:L?(L.length===b.length?this.yylloc.first_column:0)+b[b.length-L.length].length-L[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[M[0],M[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(w){this.unput(this.match.slice(w))},pastInput:function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var w=this.pastInput(),k=new Array(w.length+1).join("-");return w+this.upcomingInput()+`
`+k+"^"},test_match:function(w,k){var L,b,M;if(this.options.backtrack_lexer&&(M={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(M.yylloc.range=this.yylloc.range.slice(0))),b=w[0].match(/(?:\r\n?|\n).*/g),b&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(w[0].length),this.matched+=w[0],L=this.performAction.call(this,this.yy,this,k,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),L)return L;if(this._backtrack){for(var h in M)this[h]=M[h];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var w,k,L,b;this._more||(this.yytext="",this.match="");for(var M=this._currentRules(),h=0;h<M.length;h++)if(L=this._input.match(this.rules[M[h]]),L&&(!k||L[0].length>k[0].length)){if(k=L,b=h,this.options.backtrack_lexer){if(w=this.test_match(L,M[h]),w!==!1)return w;if(this._backtrack){k=!1;continue}else return!1}else if(!this.options.flex)break}return k?(w=this.test_match(k,M[b]),w!==!1?w:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var k=this.next();return k||this.lex()},begin:function(k){this.conditionStack.push(k)},popState:function(){var k=this.conditionStack.length-1;return k>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(k){return k=this.conditionStack.length-1-Math.abs(k||0),k>=0?this.conditionStack[k]:"INITIAL"},pushState:function(k){this.begin(k)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(k,L,b,M){switch(b){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;case 8:return this.begin("ID"),50;case 9:return this.begin("ID"),52;case 10:return 13;case 11:return this.begin("ID"),53;case 12:return L.yytext=L.yytext.trim(),this.begin("ALIAS"),70;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),36;case 16:return this.begin("LINE"),37;case 17:return this.begin("LINE"),38;case 18:return this.begin("LINE"),39;case 19:return this.begin("LINE"),49;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),48;case 23:return this.begin("LINE"),44;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),46;case 26:return this.popState(),15;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;case 37:return this.begin("ID"),23;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;case 41:return this.popState(),"acc_title_value";case 42:return this.begin("acc_descr"),33;case 43:return this.popState(),"acc_descr_value";case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 51:return 5;case 52:return L.yytext=L.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 71;case 56:return 72;case 57:return 75;case 58:return 76;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 68;case 63:return 69;case 64:return 5;case 65:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[45,46],inclusive:!1},acc_descr:{rules:[43],inclusive:!1},acc_title:{rules:[41],inclusive:!1},ID:{rules:[2,3,12],inclusive:!1},ALIAS:{rules:[2,3,13,14],inclusive:!1},LINE:{rules:[2,3,26],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65],inclusive:!0}}};return dt}();Mt.lexer=ye;function Rt(){this.yy={}}return Rt.prototype=Mt,Mt.Parser=Rt,new Rt}();Yt.parser=Yt;const De=Yt;class Ve{constructor(e){this.init=e,this.records=this.init()}reset(){this.records=this.init()}}const E=new Ve(()=>({prevActor:void 0,actors:{},createdActors:{},destroyedActors:{},boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),Oe=function(t){E.records.boxes.push({name:t.text,wrap:t.wrap===void 0&>()||!!t.wrap,fill:t.color,actorKeys:[]}),E.records.currentBox=E.records.boxes.slice(-1)[0]},Ft=function(t,e,c,s){let i=E.records.currentBox;const a=E.records.actors[t];if(a){if(E.records.currentBox&&a.box&&E.records.currentBox!==a.box)throw new Error("A same participant should only be defined in one Box: "+a.name+" can't be in '"+a.box.name+"' and in '"+E.records.currentBox.name+"' at the same time.");if(i=a.box?a.box:E.records.currentBox,a.box=i,a&&e===a.name&&c==null)return}(c==null||c.text==null)&&(c={text:e,wrap:null,type:s}),(s==null||c.text==null)&&(c={text:e,wrap:null,type:s}),E.records.actors[t]={box:i,name:e,description:c.text,wrap:c.wrap===void 0&>()||!!c.wrap,prevActor:E.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:s||"participant"},E.records.prevActor&&E.records.actors[E.records.prevActor]&&(E.records.actors[E.records.prevActor].nextActor=t),E.records.currentBox&&E.records.currentBox.actorKeys.push(t),E.records.prevActor=t},Be=t=>{let e,c=0;for(e=0;e<E.records.messages.length;e++)E.records.messages[e].type===mt.ACTIVE_START&&E.records.messages[e].from.actor===t&&c++,E.records.messages[e].type===mt.ACTIVE_END&&E.records.messages[e].from.actor===t&&c--;return c},Ye=function(t,e,c,s){E.records.messages.push({from:t,to:e,message:c.text,wrap:c.wrap===void 0&>()||!!c.wrap,answer:s})},C=function(t,e,c={text:void 0,wrap:void 0},s,i=!1){if(s===mt.ACTIVE_END&&Be(t.actor)<1){let o=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw o.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},o}return E.records.messages.push({from:t,to:e,message:c.text,wrap:c.wrap===void 0&>()||!!c.wrap,type:s,activate:i}),!0},Fe=function(){return E.records.boxes.length>0},We=function(){return E.records.boxes.some(t=>t.name)},qe=function(){return E.records.messages},ze=function(){return E.records.boxes},He=function(){return E.records.actors},Ue=function(){return E.records.createdActors},Ke=function(){return E.records.destroyedActors},vt=function(t){return E.records.actors[t]},Xe=function(){return Object.keys(E.records.actors)},Ge=function(){E.records.sequenceNumbersEnabled=!0},Je=function(){E.records.sequenceNumbersEnabled=!1},Ze=()=>E.records.sequenceNumbersEnabled,Qe=function(t){E.records.wrapEnabled=t},gt=()=>E.records.wrapEnabled!==void 0?E.records.wrapEnabled:st().sequence.wrap,je=function(){E.reset(),Le()},$e=function(t){const e=t.trim(),c={text:e.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:e.match(/^:?wrap:/)!==null?!0:e.match(/^:?nowrap:/)!==null?!1:void 0};return G.debug("parseMessage:",c),c},t0=function(t){const e=t.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let c=e!=null&&e[1]?e[1].trim():"transparent",s=e!=null&&e[2]?e[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",c)||(c="transparent",s=t.trim());else{const i=new Option().style;i.color=c,i.color!==c&&(c="transparent",s=t.trim())}return{color:c,text:s!==void 0?At(s.replace(/^:?(?:no)?wrap:/,""),st()):void 0,wrap:s!==void 0?s.match(/^:?wrap:/)!==null?!0:s.match(/^:?nowrap:/)!==null?!1:void 0:void 0}},mt={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32},e0={FILLED:0,OPEN:1},s0={LEFTOF:0,RIGHTOF:1,OVER:2},re=function(t,e,c){const s={actor:t,placement:e,message:c.text,wrap:c.wrap===void 0&>()||!!c.wrap},i=[].concat(t,t);E.records.notes.push(s),E.records.messages.push({from:i[0],to:i[1],message:c.text,wrap:c.wrap===void 0&>()||!!c.wrap,type:mt.NOTE,placement:e})},ie=function(t,e){const c=vt(t);try{let s=At(e.text,st());s=s.replace(/&/g,"&"),s=s.replace(/=/g,"=");const i=JSON.parse(s);Ht(c,i)}catch(s){G.error("error while parsing actor link text",s)}},r0=function(t,e){const c=vt(t);try{const o={};let l=At(e.text,st());var s=l.indexOf("@");l=l.replace(/&/g,"&"),l=l.replace(/=/g,"=");var i=l.slice(0,s-1).trim(),a=l.slice(s+1).trim();o[i]=a,Ht(c,o)}catch(o){G.error("error while parsing actor link text",o)}};function Ht(t,e){if(t.links==null)t.links=e;else for(let c in e)t.links[c]=e[c]}const ae=function(t,e){const c=vt(t);try{let s=At(e.text,st());const i=JSON.parse(s);ne(c,i)}catch(s){G.error("error while parsing actor properties text",s)}};function ne(t,e){if(t.properties==null)t.properties=e;else for(let c in e)t.properties[c]=e[c]}function i0(){E.records.currentBox=void 0}const oe=function(t,e){const c=vt(t),s=document.getElementById(e.text);try{const i=s.innerHTML,a=JSON.parse(i);a.properties&&ne(c,a.properties),a.links&&Ht(c,a.links)}catch(i){G.error("error while parsing actor details text",i)}},a0=function(t,e){if(t!==void 0&&t.properties!==void 0)return t.properties[e]},ce=function(t){if(Array.isArray(t))t.forEach(function(e){ce(e)});else switch(t.type){case"sequenceIndex":E.records.messages.push({from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":Ft(t.actor,t.actor,t.description,t.draw);break;case"createParticipant":if(E.records.actors[t.actor])throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");E.records.lastCreated=t.actor,Ft(t.actor,t.actor,t.description,t.draw),E.records.createdActors[t.actor]=E.records.messages.length;break;case"destroyParticipant":E.records.lastDestroyed=t.actor,E.records.destroyedActors[t.actor]=E.records.messages.length;break;case"activeStart":C(t.actor,void 0,void 0,t.signalType);break;case"activeEnd":C(t.actor,void 0,void 0,t.signalType);break;case"addNote":re(t.actor,t.placement,t.text);break;case"addLinks":ie(t.actor,t.text);break;case"addALink":r0(t.actor,t.text);break;case"addProperties":ae(t.actor,t.text);break;case"addDetails":oe(t.actor,t.text);break;case"addMessage":if(E.records.lastCreated){if(t.to!==E.records.lastCreated)throw new Error("The created participant "+E.records.lastCreated+" does not have an associated creating message after its declaration. Please check the sequence diagram.");E.records.lastCreated=void 0}else if(E.records.lastDestroyed){if(t.to!==E.records.lastDestroyed&&t.from!==E.records.lastDestroyed)throw new Error("The destroyed participant "+E.records.lastDestroyed+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");E.records.lastDestroyed=void 0}C(t.from,t.to,t.msg,t.signalType,t.activate);break;case"boxStart":Oe(t.boxData);break;case"boxEnd":i0();break;case"loopStart":C(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":C(void 0,void 0,void 0,t.signalType);break;case"rectStart":C(void 0,void 0,t.color,t.signalType);break;case"rectEnd":C(void 0,void 0,void 0,t.signalType);break;case"optStart":C(void 0,void 0,t.optText,t.signalType);break;case"optEnd":C(void 0,void 0,void 0,t.signalType);break;case"altStart":C(void 0,void 0,t.altText,t.signalType);break;case"else":C(void 0,void 0,t.altText,t.signalType);break;case"altEnd":C(void 0,void 0,void 0,t.signalType);break;case"setAccTitle":te(t.text);break;case"parStart":C(void 0,void 0,t.parText,t.signalType);break;case"and":C(void 0,void 0,t.parText,t.signalType);break;case"parEnd":C(void 0,void 0,void 0,t.signalType);break;case"criticalStart":C(void 0,void 0,t.criticalText,t.signalType);break;case"option":C(void 0,void 0,t.optionText,t.signalType);break;case"criticalEnd":C(void 0,void 0,void 0,t.signalType);break;case"breakStart":C(void 0,void 0,t.breakText,t.signalType);break;case"breakEnd":C(void 0,void 0,void 0,t.signalType);break}},Qt={addActor:Ft,addMessage:Ye,addSignal:C,addLinks:ie,addDetails:oe,addProperties:ae,autoWrap:gt,setWrap:Qe,enableSequenceNumbers:Ge,disableSequenceNumbers:Je,showSequenceNumbers:Ze,getMessages:qe,getActors:He,getCreatedActors:Ue,getDestroyedActors:Ke,getActor:vt,getActorKeys:Xe,getActorProperty:a0,getAccTitle:we,getBoxes:ze,getDiagramTitle:ve,setDiagramTitle:_e,getConfig:()=>st().sequence,clear:je,parseMessage:$e,parseBoxData:t0,LINETYPE:mt,ARROWTYPE:e0,PLACEMENT:s0,addNote:re,setAccTitle:te,apply:ce,setAccDescription:ke,getAccDescription:Pe,hasAtLeastOneBox:Fe,hasAtLeastOneBoxWithTitle:We},n0=t=>`.actor {
stroke: ${t.actorBorder};
fill: ${t.actorBkg};
}
text.actor > tspan {
fill: ${t.actorTextColor};
stroke: none;
}
.actor-line {
stroke: ${t.actorLineColor};
}
.messageLine0 {
stroke-width: 1.5;
stroke-dasharray: none;
stroke: ${t.signalColor};
}
.messageLine1 {
stroke-width: 1.5;
stroke-dasharray: 2, 2;
stroke: ${t.signalColor};
}
#arrowhead path {
fill: ${t.signalColor};
stroke: ${t.signalColor};
}
.sequenceNumber {
fill: ${t.sequenceNumberColor};
}
#sequencenumber {
fill: ${t.signalColor};
}
#crosshead path {
fill: ${t.signalColor};
stroke: ${t.signalColor};
}
.messageText {
fill: ${t.signalTextColor};
stroke: none;
}
.labelBox {
stroke: ${t.labelBoxBorderColor};
fill: ${t.labelBoxBkgColor};
}
.labelText, .labelText > tspan {
fill: ${t.labelTextColor};
stroke: none;
}
.loopText, .loopText > tspan {
fill: ${t.loopTextColor};
stroke: none;
}
.loopLine {
stroke-width: 2px;
stroke-dasharray: 2, 2;
stroke: ${t.labelBoxBorderColor};
fill: ${t.labelBoxBorderColor};
}
.note {
//stroke: #decc93;
stroke: ${t.noteBorderColor};
fill: ${t.noteBkgColor};
}
.noteText, .noteText > tspan {
fill: ${t.noteTextColor};
stroke: none;
}
.activation0 {
fill: ${t.activationBkgColor};
stroke: ${t.activationBorderColor};
}
.activation1 {
fill: ${t.activationBkgColor};
stroke: ${t.activationBorderColor};
}
.activation2 {
fill: ${t.activationBkgColor};
stroke: ${t.activationBorderColor};
}
.actorPopupMenu {
position: absolute;
}
.actorPopupMenuPanel {
position: absolute;
fill: ${t.actorBkg};
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
}
.actor-man line {
stroke: ${t.actorBorder};
fill: ${t.actorBkg};
}
.actor-man circle, line {
stroke: ${t.actorBorder};
fill: ${t.actorBkg};
stroke-width: 2px;
}
`,o0=n0,ft=18*2,le="actor-top",he="actor-bottom",Ut=function(t,e){return Se(t,e)},c0=function(t,e,c,s,i){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};const a=e.links,o=e.actorCnt,l=e.rectData;var p="none";i&&(p="block !important");const r=t.append("g");r.attr("id","actor"+o+"_popup"),r.attr("class","actorPopupMenu"),r.attr("display",p);var x="";l.class!==void 0&&(x=" "+l.class);let T=l.width>c?l.width:c;const u=r.append("rect");if(u.attr("class","actorPopupMenuPanel"+x),u.attr("x",l.x),u.attr("y",l.height),u.attr("fill",l.fill),u.attr("stroke",l.stroke),u.attr("width",T),u.attr("height",l.height),u.attr("rx",l.rx),u.attr("ry",l.ry),a!=null){var g=20;for(let I in a){var m=r.append("a"),_=$t.sanitizeUrl(a[I]);m.attr("xlink:href",_),m.attr("target","_blank"),k0(s)(I,m,l.x+10,l.height+g,T,20,{class:"actor"},s),g+=30}}return u.attr("height",g),{height:l.height+g,width:T}},l0=function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},It=async function(t,e,c=null){let s=t.append("foreignObject");const i=await se(e.text,Bt()),o=s.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();if(s.attr("height",Math.round(o.height)).attr("width",Math.round(o.width)),e.class==="noteText"){const l=t.node().firstChild;l.setAttribute("height",o.height+2*e.textMargin);const p=l.getBBox();s.attr("x",Math.round(p.x+p.width/2-o.width/2)).attr("y",Math.round(p.y+p.height/2-o.height/2))}else if(c){let{startx:l,stopx:p,starty:r}=c;if(l>p){const x=l;l=p,p=x}s.attr("x",Math.round(l+Math.abs(l-p)/2-o.width/2)),e.class==="loopText"?s.attr("y",Math.round(r)):s.attr("y",Math.round(r-o.height))}return[s]},bt=function(t,e){let c=0,s=0;const i=e.text.split(v.lineBreakRegex),[a,o]=ee(e.fontSize);let l=[],p=0,r=()=>e.y;if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":r=()=>Math.round(e.y+e.textMargin);break;case"middle":case"center":r=()=>Math.round(e.y+(c+s+e.textMargin)/2);break;case"bottom":case"end":r=()=>Math.round(e.y+(c+s+2*e.textMargin)-e.textMargin);break}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle";break}for(let[x,T]of i.entries()){e.textMargin!==void 0&&e.textMargin===0&&a!==void 0&&(p=x*a);const u=t.append("text");u.attr("x",e.x),u.attr("y",r()),e.anchor!==void 0&&u.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),e.fontFamily!==void 0&&u.style("font-family",e.fontFamily),o!==void 0&&u.style("font-size",o),e.fontWeight!==void 0&&u.style("font-weight",e.fontWeight),e.fill!==void 0&&u.attr("fill",e.fill),e.class!==void 0&&u.attr("class",e.class),e.dy!==void 0?u.attr("dy",e.dy):p!==0&&u.attr("dy",p);const g=T||Ie;if(e.tspan){const m=u.append("tspan");m.attr("x",e.x),e.fill!==void 0&&m.attr("fill",e.fill),m.text(g)}else u.text(g);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(s+=(u._groups||u)[0][0].getBBox().height,c=s),l.push(u)}return l},de=function(t,e){function c(i,a,o,l,p){return i+","+a+" "+(i+o)+","+a+" "+(i+o)+","+(a+l-p)+" "+(i+o-p*1.2)+","+(a+l)+" "+i+","+(a+l)}const s=t.append("polygon");return s.attr("points",c(e.x,e.y,e.width,e.height,7)),s.attr("class","labelBox"),e.y=e.y+e.height/2,bt(t,e),s};let at=-1;const pe=(t,e,c,s)=>{t.select&&c.forEach(i=>{const a=e[i],o=t.select("#actor"+a.actorCnt);!s.mirrorActors&&a.stopy?o.attr("y2",a.stopy+a.height/2):s.mirrorActors&&o.attr("y2",a.stopy)})},h0=async function(t,e,c,s){const i=s?e.stopy:e.starty,a=e.x+e.width/2,o=i+5,l=t.append("g").lower();var p=l;s||(at++,Object.keys(e.links||{}).length&&!c.forceMenus&&p.attr("onclick",l0(`actor${at}_popup`)).attr("cursor","pointer"),p.append("line").attr("id","actor"+at).attr("x1",a).attr("y1",o).attr("x2",a).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),p=l.append("g"),e.actorCnt=at,e.links!=null&&p.attr("id","root-"+at));const r=Nt();var x="actor";e.properties!=null&&e.properties.class?x=e.properties.class:r.fill="#eaeaea",s?x+=` ${he}`:x+=` ${le}`,r.x=e.x,r.y=i,r.width=e.width,r.height=e.height,r.class=x,r.rx=3,r.ry=3,r.name=e.name;const T=Ut(p,r);if(e.rectData=r,e.properties!=null&&e.properties.icon){const g=e.properties.icon.trim();g.charAt(0)==="@"?Re(p,r.x+r.width-20,r.y+10,g.substr(1)):Ce(p,r.x+r.width-20,r.y+10,g)}await Kt(c,nt(e.description))(e.description,p,r.x,r.y,r.width,r.height,{class:"actor"},c);let u=e.height;if(T.node){const g=T.node().getBBox();e.height=g.height,u=g.height}return u},d0=async function(t,e,c,s){const i=s?e.stopy:e.starty,a=e.x+e.width/2,o=i+80;t.lower(),s||(at++,t.append("line").attr("id","actor"+at).attr("x1",a).attr("y1",o).attr("x2",a).attr("y2",2e3).attr("class","actor-line").attr("class","200").attr("stroke-width","0.5px").attr("stroke","#999"),e.actorCnt=at);const l=t.append("g");let p="actor-man";s?p+=` ${he}`:p+=` ${le}`,l.attr("class",p),l.attr("name",e.name);const r=Nt();r.x=e.x,r.y=i,r.fill="#eaeaea",r.width=e.width,r.height=e.height,r.class="actor",r.rx=3,r.ry=3,l.append("line").attr("id","actor-man-torso"+at).attr("x1",a).attr("y1",i+25).attr("x2",a).attr("y2",i+45),l.append("line").attr("id","actor-man-arms"+at).attr("x1",a-ft/2).attr("y1",i+33).attr("x2",a+ft/2).attr("y2",i+33),l.append("line").attr("x1",a-ft/2).attr("y1",i+60).attr("x2",a).attr("y2",i+45),l.append("line").attr("x1",a).attr("y1",i+45).attr("x2",a+ft/2-2).attr("y2",i+60);const x=l.append("circle");x.attr("cx",e.x+e.width/2),x.attr("cy",i+10),x.attr("r",15),x.attr("width",e.width),x.attr("height",e.height);const T=l.node().getBBox();return e.height=T.height,await Kt(c,nt(e.description))(e.description,l,r.x,r.y+35,r.width,r.height,{class:"actor"},c),e.height},p0=async function(t,e,c,s){switch(e.type){case"actor":return await d0(t,e,c,s);case"participant":return await h0(t,e,c,s)}},u0=async function(t,e,c){const i=t.append("g");ue(i,e),e.name&&await Kt(c)(e.name,i,e.x,e.y+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},c),i.lower()},f0=function(t){return t.append("g")},g0=function(t,e,c,s,i){const a=Nt(),o=e.anchored;a.x=e.startx,a.y=e.starty,a.class="activation"+i%3,a.width=e.stopx-e.startx,a.height=c-e.starty,Ut(o,a)},x0=async function(t,e,c,s){const{boxMargin:i,boxTextMargin:a,labelBoxHeight:o,labelBoxWidth:l,messageFontFamily:p,messageFontSize:r,messageFontWeight:x}=s,T=t.append("g"),u=function(_,I,V,S){return T.append("line").attr("x1",_).attr("y1",I).attr("x2",V).attr("y2",S).attr("class","loopLine")};u(e.startx,e.starty,e.stopx,e.starty),u(e.stopx,e.starty,e.stopx,e.stopy),u(e.startx,e.stopy,e.stopx,e.stopy),u(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0&&e.sections.forEach(function(_){u(e.startx,_.y,e.stopx,_.y).style("stroke-dasharray","3, 3")});let g=zt();g.text=c,g.x=e.startx,g.y=e.starty,g.fontFamily=p,g.fontSize=r,g.fontWeight=x,g.anchor="middle",g.valign="middle",g.tspan=!1,g.width=l||50,g.height=o||20,g.textMargin=a,g.class="labelText",de(T,g),g=fe(),g.text=e.title,g.x=e.startx+l/2+(e.stopx-e.startx)/2,g.y=e.starty+i+a,g.anchor="middle",g.valign="middle",g.textMargin=a,g.class="loopText",g.fontFamily=p,g.fontSize=r,g.fontWeight=x,g.wrap=!0;let m=nt(g.text)?await It(T,g,e):bt(T,g);if(e.sectionTitles!==void 0){for(const[_,I]of Object.entries(e.sectionTitles))if(I.message){g.text=I.message,g.x=e.startx+(e.stopx-e.startx)/2,g.y=e.sections[_].y+i+a,g.class="loopText",g.anchor="middle",g.valign="middle",g.tspan=!1,g.fontFamily=p,g.fontSize=r,g.fontWeight=x,g.wrap=e.wrap,nt(g.text)?(e.starty=e.sections[_].y,await It(T,g,e)):bt(T,g);let V=Math.round(m.map(S=>(S._groups||S)[0][0].getBBox().height).reduce((S,O)=>S+O));e.sections[_].height+=V-(i+a)}}return e.height=Math.round(e.stopy-e.starty),T},ue=function(t,e){Me(t,e)},y0=function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},T0=function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},b0=function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},E0=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},m0=function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},w0=function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},v0=function(t){t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},fe=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},_0=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},Kt=function(){function t(a,o,l,p,r,x,T){const u=o.append("text").attr("x",l+r/2).attr("y",p+x/2+5).style("text-anchor","middle").text(a);i(u,T)}function e(a,o,l,p,r,x,T,u){const{actorFontSize:g,actorFontFamily:m,actorFontWeight:_}=u,[I,V]=ee(g),S=a.split(v.lineBreakRegex);for(let O=0;O<S.length;O++){const R=O*I-I*(S.length-1)/2,q=o.append("text").attr("x",l+r/2).attr("y",p).style("text-anchor","middle").style("font-size",V).style("font-weight",_).style("font-family",m);q.append("tspan").attr("x",l+r/2).attr("dy",R).text(S[O]),q.attr("y",p+x/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(q,T)}}function c(a,o,l,p,r,x,T,u){const g=o.append("switch"),_=g.append("foreignObject").attr("x",l).attr("y",p).attr("width",r).attr("height",x).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");_.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(a),e(a,g,l,p,r,x,T,u),i(_,T)}async function s(a,o,l,p,r,x,T,u){const g=await wt(a,Bt()),m=o.append("switch"),I=m.append("foreignObject").attr("x",l+r/2-g.width/2).attr("y",p+x/2-g.height/2).attr("width",g.width).attr("height",g.height).append("xhtml:div").style("height","100%").style("width","100%");I.append("div").style("text-align","center").style("vertical-align","middle").html(await se(a,Bt())),e(a,m,l,p,r,x,T,u),i(I,T)}function i(a,o){for(const l in o)o.hasOwnProperty(l)&&a.attr(l,o[l])}return function(a,o=!1){return o?s:a.textPlacement==="fo"?c:a.textPlacement==="old"?t:e}}(),k0=function(){function t(i,a,o,l,p,r,x){const T=a.append("text").attr("x",o).attr("y",l).style("text-anchor","start").text(i);s(T,x)}function e(i,a,o,l,p,r,x,T){const{actorFontSize:u,actorFontFamily:g,actorFontWeight:m}=T,_=i.split(v.lineBreakRegex);for(let I=0;I<_.length;I++){const V=I*u-u*(_.length-1)/2,S=a.append("text").attr("x",o).attr("y",l).style("text-anchor","start").style("font-size",u).style("font-weight",m).style("font-family",g);S.append("tspan").attr("x",o).attr("dy",V).text(_[I]),S.attr("y",l+r/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(S,x)}}function c(i,a,o,l,p,r,x,T){const u=a.append("switch"),m=u.append("foreignObject").attr("x",o).attr("y",l).attr("width",p).attr("height",r).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");m.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),e(i,u,o,l,p,r,x,T),s(m,x)}function s(i,a){for(const o in a)a.hasOwnProperty(o)&&i.attr(o,a[o])}return function(i){return i.textPlacement==="fo"?c:i.textPlacement==="old"?t:e}}(),D={drawRect:Ut,drawText:bt,drawLabel:de,drawActor:p0,drawBox:u0,drawPopup:c0,anchorElement:f0,drawActivation:g0,drawLoop:x0,drawBackgroundRect:ue,insertArrowHead:E0,insertArrowFilledHead:m0,insertSequenceNumber:w0,insertArrowCrossHead:v0,insertDatabaseIcon:y0,insertComputerIcon:T0,insertClockIcon:b0,getTextObj:fe,getNoteRect:_0,fixLifeLineHeights:pe,sanitizeUrl:$t.sanitizeUrl};let n={};const f={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(t=>t.height||0))+(this.loops.length===0?0:this.loops.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.messages.length===0?0:this.messages.map(t=>t.height||0).reduce((t,e)=>t+e))+(this.notes.length===0?0:this.notes.map(t=>t.height||0).reduce((t,e)=>t+e))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(t){this.boxes.push(t)},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,xe(st())},updateVal:function(t,e,c,s){t[e]===void 0?t[e]=c:t[e]=s(c,t[e])},updateBounds:function(t,e,c,s){const i=this;let a=0;function o(l){return function(r){a++;const x=i.sequenceItems.length-a+1;i.updateVal(r,"starty",e-x*n.boxMargin,Math.min),i.updateVal(r,"stopy",s+x*n.boxMargin,Math.max),i.updateVal(f.data,"startx",t-x*n.boxMargin,Math.min),i.updateVal(f.data,"stopx",c+x*n.boxMargin,Math.max),l!=="activation"&&(i.updateVal(r,"startx",t-x*n.boxMargin,Math.min),i.updateVal(r,"stopx",c+x*n.boxMargin,Math.max),i.updateVal(f.data,"starty",e-x*n.boxMargin,Math.min),i.updateVal(f.data,"stopy",s+x*n.boxMargin,Math.max))}}this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},insert:function(t,e,c,s){const i=v.getMin(t,c),a=v.getMax(t,c),o=v.getMin(e,s),l=v.getMax(e,s);this.updateVal(f.data,"startx",i,Math.min),this.updateVal(f.data,"starty",o,Math.min),this.updateVal(f.data,"stopx",a,Math.max),this.updateVal(f.data,"stopy",l,Math.max),this.updateBounds(i,o,a,l)},newActivation:function(t,e,c){const s=c[t.from.actor],i=St(t.from.actor).length||0,a=s.x+s.width/2+(i-1)*n.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+n.activationWidth,stopy:void 0,actor:t.from.actor,anchored:D.anchorElement(e)})},endActivation:function(t){const e=this.activations.map(function(c){return c.actor}).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},isLoopOverlap:function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},addSectionToLoop:function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:f.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},saveVerticalPos:function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},resetVerticalPos:function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=v.getMax(this.data.stopy,this.verticalPos)},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},P0=async function(t,e){f.bumpVerticalPos(n.boxMargin),e.height=n.boxMargin,e.starty=f.getVerticalPos();const c=Nt();c.x=e.startx,c.y=e.starty,c.width=e.width||n.width,c.class="note";const s=t.append("g"),i=D.drawRect(s,c),a=zt();a.x=e.startx,a.y=e.starty,a.width=c.width,a.dy="1em",a.text=e.message,a.class="noteText",a.fontFamily=n.noteFontFamily,a.fontSize=n.noteFontSize,a.fontWeight=n.noteFontWeight,a.anchor=n.noteAlign,a.textMargin=n.noteMargin,a.valign="center";const o=nt(a.text)?await It(s,a):bt(s,a),l=Math.round(o.map(p=>(p._groups||p)[0][0].getBBox().height).reduce((p,r)=>p+r));i.attr("height",l+2*n.noteMargin),e.height+=l+2*n.noteMargin,f.bumpVerticalPos(l+2*n.noteMargin),e.stopy=e.starty+l+2*n.noteMargin,e.stopx=e.startx+c.width,f.insert(e.startx,e.starty,e.stopx,e.stopy),f.models.addNote(e)},xt=t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),Tt=t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),Wt=t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight});async function L0(t,e){f.bumpVerticalPos(10);const{startx:c,stopx:s,message:i}=e,a=v.splitBreaks(i).length,o=nt(i),l=o?await wt(i,st()):B.calculateTextDimensions(i,xt(n));if(!o){const T=l.height/a;e.height+=T,f.bumpVerticalPos(T)}let p,r=l.height-10;const x=l.width;if(c===s){p=f.getVerticalPos()+r,n.rightAngles||(r+=n.boxMargin,p=f.getVerticalPos()+r),r+=30;const T=v.getMax(x/2,n.width/2);f.insert(c-T,f.getVerticalPos()-10+r,s+T,f.getVerticalPos()+30+r)}else r+=n.boxMargin,p=f.getVerticalPos()+r,f.insert(c,p-10,s,p);return f.bumpVerticalPos(r),e.height+=r,e.stopy=e.starty+e.height,f.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),p}const I0=async function(t,e,c,s){const{startx:i,stopx:a,starty:o,message:l,type:p,sequenceIndex:r,sequenceVisible:x}=e,T=B.calculateTextDimensions(l,xt(n)),u=zt();u.x=i,u.y=o+10,u.width=a-i,u.class="messageText",u.dy="1em",u.text=l,u.fontFamily=n.messageFontFamily,u.fontSize=n.messageFontSize,u.fontWeight=n.messageFontWeight,u.anchor=n.messageAlign,u.valign="center",u.textMargin=n.wrapPadding,u.tspan=!1,nt(u.text)?await It(t,u,{startx:i,stopx:a,starty:c}):bt(t,u);const g=T.width;let m;i===a?n.rightAngles?m=t.append("path").attr("d",`M ${i},${c} H ${i+v.getMax(n.width/2,g/2)} V ${c+25} H ${i}`):m=t.append("path").attr("d","M "+i+","+c+" C "+(i+60)+","+(c-10)+" "+(i+60)+","+(c+30)+" "+i+","+(c+20)):(m=t.append("line"),m.attr("x1",i),m.attr("y1",c),m.attr("x2",a),m.attr("y2",c)),p===s.db.LINETYPE.DOTTED||p===s.db.LINETYPE.DOTTED_CROSS||p===s.db.LINETYPE.DOTTED_POINT||p===s.db.LINETYPE.DOTTED_OPEN?(m.style("stroke-dasharray","3, 3"),m.attr("class","messageLine1")):m.attr("class","messageLine0");let _="";n.arrowMarkerAbsolute&&(_=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,_=_.replace(/\(/g,"\\("),_=_.replace(/\)/g,"\\)")),m.attr("stroke-width",2),m.attr("stroke","none"),m.style("fill","none"),(p===s.db.LINETYPE.SOLID||p===s.db.LINETYPE.DOTTED)&&m.attr("marker-end","url("+_+"#arrowhead)"),(p===s.db.LINETYPE.SOLID_POINT||p===s.db.LINETYPE.DOTTED_POINT)&&m.attr("marker-end","url("+_+"#filled-head)"),(p===s.db.LINETYPE.SOLID_CROSS||p===s.db.LINETYPE.DOTTED_CROSS)&&m.attr("marker-end","url("+_+"#crosshead)"),(x||n.showSequenceNumbers)&&(m.attr("marker-start","url("+_+"#sequencenumber)"),t.append("text").attr("x",i).attr("y",c+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(r))},A0=async function(t,e,c,s,i,a,o){let l=0,p=0,r,x=0;for(const T of s){const u=e[T],g=u.box;r&&r!=g&&(o||f.models.addBox(r),p+=n.boxMargin+r.margin),g&&g!=r&&(o||(g.x=l+p,g.y=i),p+=g.margin),u.width=u.width||n.width,u.height=v.getMax(u.height||n.height,n.height),u.margin=u.margin||n.actorMargin,x=v.getMax(x,u.height),c[u.name]&&(p+=u.width/2),u.x=l+p,u.starty=f.getVerticalPos(),f.insert(u.x,i,u.x+u.width,u.height),l+=u.width+p,u.box&&(u.box.width=l+g.margin-u.box.x),p=u.margin,r=u.box,f.models.addActor(u)}r&&!o&&f.models.addBox(r),f.bumpVerticalPos(x)},qt=async function(t,e,c,s){if(s){let i=0;f.bumpVerticalPos(n.boxMargin*2);for(const a of c){const o=e[a];o.stopy||(o.stopy=f.getVerticalPos());const l=await D.drawActor(t,o,n,!0);i=v.getMax(i,l)}f.bumpVerticalPos(i+n.boxMargin)}else for(const i of c){const a=e[i];await D.drawActor(t,a,n,!1)}},ge=function(t,e,c,s){let i=0,a=0;for(const o of c){const l=e[o],p=R0(l),r=D.drawPopup(t,l,p,n,n.forceMenus,s);r.height>i&&(i=r.height),r.width+l.x>a&&(a=r.width+l.x)}return{maxHeight:i,maxWidth:a}},xe=function(t){Ae(n,t),t.fontFamily&&(n.actorFontFamily=n.noteFontFamily=n.messageFontFamily=t.fontFamily),t.fontSize&&(n.actorFontSize=n.noteFontSize=n.messageFontSize=t.fontSize),t.fontWeight&&(n.actorFontWeight=n.noteFontWeight=n.messageFontWeight=t.fontWeight)},St=function(t){return f.activations.filter(function(e){return e.actor===t})},jt=function(t,e){const c=e[t],s=St(t),i=s.reduce(function(o,l){return v.getMin(o,l.startx)},c.x+c.width/2-1),a=s.reduce(function(o,l){return v.getMax(o,l.stopx)},c.x+c.width/2+1);return[i,a]};function it(t,e,c,s,i){f.bumpVerticalPos(c);let a=s;if(e.id&&e.message&&t[e.id]){const o=t[e.id].width,l=xt(n);e.message=B.wrapLabel(`[${e.message}]`,o-2*n.wrapPadding,l),e.width=o,e.wrap=!0;const p=B.calculateTextDimensions(e.message,l),r=v.getMax(p.height,n.labelBoxHeight);a=s+r,G.debug(`${r} - ${e.message}`)}i(e),f.bumpVerticalPos(a)}function N0(t,e,c,s,i,a,o){function l(r,x){r.x<i[t.from].x?(f.insert(e.stopx-x,e.starty,e.startx,e.stopy+r.height/2+n.noteMargin),e.stopx=e.stopx+x):(f.insert(e.startx,e.starty,e.stopx+x,e.stopy+r.height/2+n.noteMargin),e.stopx=e.stopx-x)}function p(r,x){r.x<i[t.to].x?(f.insert(e.startx-x,e.starty,e.stopx,e.stopy+r.height/2+n.noteMargin),e.startx=e.startx+x):(f.insert(e.stopx,e.starty,e.startx+x,e.stopy+r.height/2+n.noteMargin),e.startx=e.startx-x)}if(a[t.to]==s){const r=i[t.to],x=r.type=="actor"?ft/2+3:r.width/2+3;l(r,x),r.starty=c-r.height/2,f.bumpVerticalPos(r.height/2)}else if(o[t.from]==s){const r=i[t.from];if(n.mirrorActors){const x=r.type=="actor"?ft/2:r.width/2;p(r,x)}r.stopy=c-r.height/2,f.bumpVerticalPos(r.height/2)}else if(o[t.to]==s){const r=i[t.to];if(n.mirrorActors){const x=r.type=="actor"?ft/2+3:r.width/2+3;l(r,x)}r.stopy=c-r.height/2,f.bumpVerticalPos(r.height/2)}}const S0=async function(t,e,c,s){const{securityLevel:i,sequence:a}=st();n=a;let o;i==="sandbox"&&(o=Lt("#i"+e));const l=i==="sandbox"?Lt(o.nodes()[0].contentDocument.body):Lt("body"),p=i==="sandbox"?o.nodes()[0].contentDocument:document;f.init(),G.debug(s.db);const r=i==="sandbox"?l.select(`[id="${e}"]`):Lt(`[id="${e}"]`),x=s.db.getActors(),T=s.db.getCreatedActors(),u=s.db.getDestroyedActors(),g=s.db.getBoxes();let m=s.db.getActorKeys();const _=s.db.getMessages(),I=s.db.getDiagramTitle(),V=s.db.hasAtLeastOneBox(),S=s.db.hasAtLeastOneBoxWithTitle(),O=await M0(x,_,s);if(n.height=await C0(x,O,g),D.insertComputerIcon(r),D.insertDatabaseIcon(r),D.insertClockIcon(r),V&&(f.bumpVerticalPos(n.boxMargin),S&&f.bumpVerticalPos(g[0].textMaxHeight)),n.hideUnusedParticipants===!0){const y=new Set;_.forEach(P=>{y.add(P.from),y.add(P.to)}),m=m.filter(P=>y.has(P))}await A0(r,x,T,m,0,_,!1);const R=await O0(_,x,O,s);D.insertArrowHead(r),D.insertArrowCrossHead(r),D.insertArrowFilledHead(r),D.insertSequenceNumber(r);function q(y,P){const j=f.endActivation(y);j.starty+18>P&&(j.starty=P-6,P+=12),D.drawActivation(r,j,P,n,St(y.from.actor).length),f.insert(j.startx,P-10,j.stopx,P)}let z=1,J=1;const $=[],H=[];let U=0;for(const y of _){let P,j,rt;switch(y.type){case s.db.LINETYPE.NOTE:f.resetVerticalPos(),j=y.noteModel,await P0(r,j);break;case s.db.LINETYPE.ACTIVE_START:f.newActivation(y,r,x);break;case s.db.LINETYPE.ACTIVE_END:q(y,f.getVerticalPos());break;case s.db.LINETYPE.LOOP_START:it(R,y,n.boxMargin,n.boxMargin+n.boxTextMargin,A=>f.newLoop(A));break;case s.db.LINETYPE.LOOP_END:P=f.endLoop(),await D.drawLoop(r,P,"loop",n),f.bumpVerticalPos(P.stopy-f.getVerticalPos()),f.models.addLoop(P);break;case s.db.LINETYPE.RECT_START:it(R,y,n.boxMargin,n.boxMargin,A=>f.newLoop(void 0,A.message));break;case s.db.LINETYPE.RECT_END:P=f.endLoop(),H.push(P),f.models.addLoop(P),f.bumpVerticalPos(P.stopy-f.getVerticalPos());break;case s.db.LINETYPE.OPT_START:it(R,y,n.boxMargin,n.boxMargin+n.boxTextMargin,A=>f.newLoop(A));break;case s.db.LINETYPE.OPT_END:P=f.endLoop(),await D.drawLoop(r,P,"opt",n),f.bumpVerticalPos(P.stopy-f.getVerticalPos()),f.models.addLoop(P);break;case s.db.LINETYPE.ALT_START:it(R,y,n.boxMargin,n.boxMargin+n.boxTextMargin,A=>f.newLoop(A));break;case s.db.LINETYPE.ALT_ELSE:it(R,y,n.boxMargin+n.boxTextMargin,n.boxMargin,A=>f.addSectionToLoop(A));break;case s.db.LINETYPE.ALT_END:P=f.endLoop(),await D.drawLoop(r,P,"alt",n),f.bumpVerticalPos(P.stopy-f.getVerticalPos()),f.models.addLoop(P);break;case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:it(R,y,n.boxMargin,n.boxMargin+n.boxTextMargin,A=>f.newLoop(A)),f.saveVerticalPos();break;case s.db.LINETYPE.PAR_AND:it(R,y,n.boxMargin+n.boxTextMargin,n.boxMargin,A=>f.addSectionToLoop(A));break;case s.db.LINETYPE.PAR_END:P=f.endLoop(),await D.drawLoop(r,P,"par",n),f.bumpVerticalPos(P.stopy-f.getVerticalPos()),f.models.addLoop(P);break;case s.db.LINETYPE.AUTONUMBER:z=y.message.start||z,J=y.message.step||J,y.message.visible?s.db.enableSequenceNumbers():s.db.disableSequenceNumbers();break;case s.db.LINETYPE.CRITICAL_START:it(R,y,n.boxMargin,n.boxMargin+n.boxTextMargin,A=>f.newLoop(A));break;case s.db.LINETYPE.CRITICAL_OPTION:it(R,y,n.boxMargin+n.boxTextMargin,n.boxMargin,A=>f.addSectionToLoop(A));break;case s.db.LINETYPE.CRITICAL_END:P=f.endLoop(),await D.drawLoop(r,P,"critical",n),f.bumpVerticalPos(P.stopy-f.getVerticalPos()),f.models.addLoop(P);break;case s.db.LINETYPE.BREAK_START:it(R,y,n.boxMargin,n.boxMargin+n.boxTextMargin,A=>f.newLoop(A));break;case s.db.LINETYPE.BREAK_END:P=f.endLoop(),await D.drawLoop(r,P,"break",n),f.bumpVerticalPos(P.stopy-f.getVerticalPos()),f.models.addLoop(P);break;default:try{rt=y.msgModel,rt.starty=f.getVerticalPos(),rt.sequenceIndex=z,rt.sequenceVisible=s.db.showSequenceNumbers();const A=await L0(r,rt);N0(y,rt,A,U,x,T,u),$.push({messageModel:rt,lineStartY:A}),f.models.addMessage(rt)}catch(A){G.error("error while drawing message",A)}}[s.db.LINETYPE.SOLID_OPEN,s.db.LINETYPE.DOTTED_OPEN,s.db.LINETYPE.SOLID,s.db.LINETYPE.DOTTED,s.db.LINETYPE.SOLID_CROSS,s.db.LINETYPE.DOTTED_CROSS,s.db.LINETYPE.SOLID_POINT,s.db.LINETYPE.DOTTED_POINT].includes(y.type)&&(z=z+J),U++}G.debug("createdActors",T),G.debug("destroyedActors",u),await qt(r,x,m,!1);for(const y of $)await I0(r,y.messageModel,y.lineStartY,s);n.mirrorActors&&await qt(r,x,m,!0),H.forEach(y=>D.drawBackgroundRect(r,y)),pe(r,x,m,n);for(const y of f.models.boxes)y.height=f.getVerticalPos()-y.y,f.insert(y.x,y.y,y.x+y.width,y.height),y.startx=y.x,y.starty=y.y,y.stopx=y.startx+y.width,y.stopy=y.starty+y.height,y.stroke="rgb(0,0,0, 0.5)",await D.drawBox(r,y,n);V&&f.bumpVerticalPos(n.boxMargin);const F=ge(r,x,m,p),{bounds:W}=f.getBounds();let Z=W.stopy-W.starty;Z<F.maxHeight&&(Z=F.maxHeight);let K=Z+2*n.diagramMarginY;n.mirrorActors&&(K=K-n.boxMargin+n.bottomMarginAdj);let Q=W.stopx-W.startx;Q<F.maxWidth&&(Q=F.maxWidth);const tt=Q+2*n.diagramMarginX;I&&r.append("text").text(I).attr("x",(W.stopx-W.startx)/2-2*n.diagramMarginX).attr("y",-25),Ne(r,K,tt,n.useMaxWidth);const N=I?40:0;r.attr("viewBox",W.startx-n.diagramMarginX+" -"+(n.diagramMarginY+N)+" "+tt+" "+(K+N)),G.debug("models:",f.models)};async function M0(t,e,c){const s={};for(const i of e)if(t[i.to]&&t[i.from]){const a=t[i.to];if(i.placement===c.db.PLACEMENT.LEFTOF&&!a.prevActor||i.placement===c.db.PLACEMENT.RIGHTOF&&!a.nextActor)continue;const o=i.placement!==void 0,l=!o,p=o?Tt(n):xt(n),r=i.wrap?B.wrapLabel(i.message,n.width-2*n.wrapPadding,p):i.message,T=(nt(r)?await wt(i.message,st()):B.calculateTextDimensions(r,p)).width+2*n.wrapPadding;l&&i.from===a.nextActor?s[i.to]=v.getMax(s[i.to]||0,T):l&&i.from===a.prevActor?s[i.from]=v.getMax(s[i.from]||0,T):l&&i.from===i.to?(s[i.from]=v.getMax(s[i.from]||0,T/2),s[i.to]=v.getMax(s[i.to]||0,T/2)):i.placement===c.db.PLACEMENT.RIGHTOF?s[i.from]=v.getMax(s[i.from]||0,T):i.placement===c.db.PLACEMENT.LEFTOF?s[a.prevActor]=v.getMax(s[a.prevActor]||0,T):i.placement===c.db.PLACEMENT.OVER&&(a.prevActor&&(s[a.prevActor]=v.getMax(s[a.prevActor]||0,T/2)),a.nextActor&&(s[i.from]=v.getMax(s[i.from]||0,T/2)))}return G.debug("maxMessageWidthPerActor:",s),s}const R0=function(t){let e=0;const c=Wt(n);for(const s in t.links){const a=B.calculateTextDimensions(s,c).width+2*n.wrapPadding+2*n.boxMargin;e<a&&(e=a)}return e};async function C0(t,e,c){let s=0;for(const a of Object.keys(t)){const o=t[a];o.wrap&&(o.description=B.wrapLabel(o.description,n.width-2*n.wrapPadding,Wt(n)));const l=nt(o.description)?await wt(o.description,st()):B.calculateTextDimensions(o.description,Wt(n));o.width=o.wrap?n.width:v.getMax(n.width,l.width+2*n.wrapPadding),o.height=o.wrap?v.getMax(l.height,n.height):n.height,s=v.getMax(s,o.height)}for(const a in e){const o=t[a];if(!o)continue;const l=t[o.nextActor];if(!l){const T=e[a]+n.actorMargin-o.width/2;o.margin=v.getMax(T,n.actorMargin);continue}const r=e[a]+n.actorMargin-o.width/2-l.width/2;o.margin=v.getMax(r,n.actorMargin)}let i=0;return c.forEach(a=>{const o=xt(n);let l=a.actorKeys.reduce((x,T)=>x+=t[T].width+(t[T].margin||0),0);l-=2*n.boxTextMargin,a.wrap&&(a.name=B.wrapLabel(a.name,l-2*n.wrapPadding,o));const p=B.calculateTextDimensions(a.name,o);i=v.getMax(p.height,i);const r=v.getMax(l,p.width+2*n.wrapPadding);if(a.margin=n.boxTextMargin,l<r){const x=(r-l)/2;a.margin+=x}}),c.forEach(a=>a.textMaxHeight=i),v.getMax(s,n.height)}const D0=async function(t,e,c){const s=e[t.from].x,i=e[t.to].x,a=t.wrap&&t.message;let o=nt(t.message)?await wt(t.message,st()):B.calculateTextDimensions(a?B.wrapLabel(t.message,n.width,Tt(n)):t.message,Tt(n));const l={width:a?n.width:v.getMax(n.width,o.width+2*n.noteMargin),height:0,startx:e[t.from].x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===c.db.PLACEMENT.RIGHTOF?(l.width=a?v.getMax(n.width,o.width):v.getMax(e[t.from].width/2+e[t.to].width/2,o.width+2*n.noteMargin),l.startx=s+(e[t.from].width+n.actorMargin)/2):t.placement===c.db.PLACEMENT.LEFTOF?(l.width=a?v.getMax(n.width,o.width+2*n.noteMargin):v.getMax(e[t.from].width/2+e[t.to].width/2,o.width+2*n.noteMargin),l.startx=s-l.width+(e[t.from].width-n.actorMargin)/2):t.to===t.from?(o=B.calculateTextDimensions(a?B.wrapLabel(t.message,v.getMax(n.width,e[t.from].width),Tt(n)):t.message,Tt(n)),l.width=a?v.getMax(n.width,e[t.from].width):v.getMax(e[t.from].width,n.width,o.width+2*n.noteMargin),l.startx=s+(e[t.from].width-l.width)/2):(l.width=Math.abs(s+e[t.from].width/2-(i+e[t.to].width/2))+n.actorMargin,l.startx=s<i?s+e[t.from].width/2-n.actorMargin/2:i+e[t.to].width/2-n.actorMargin/2),a&&(l.message=B.wrapLabel(t.message,l.width-2*n.wrapPadding,Tt(n))),G.debug(`NM:[${l.startx},${l.stopx},${l.starty},${l.stopy}:${l.width},${l.height}=${t.message}]`),l},V0=function(t,e,c){if(![c.db.LINETYPE.SOLID_OPEN,c.db.LINETYPE.DOTTED_OPEN,c.db.LINETYPE.SOLID,c.db.LINETYPE.DOTTED,c.db.LINETYPE.SOLID_CROSS,c.db.LINETYPE.DOTTED_CROSS,c.db.LINETYPE.SOLID_POINT,c.db.LINETYPE.DOTTED_POINT].includes(t.type))return{};const[s,i]=jt(t.from,e),[a,o]=jt(t.to,e),l=s<=a,p=l?i:s;let r=l?a:o;const x=Math.abs(a-o)>2,T=_=>l?-_:_;t.from===t.to?r=p:(t.activate&&!x&&(r+=T(n.activationWidth/2-1)),[c.db.LINETYPE.SOLID_OPEN,c.db.LINETYPE.DOTTED_OPEN].includes(t.type)||(r+=T(3)));const u=[s,i,a,o],g=Math.abs(p-r);t.wrap&&t.message&&(t.message=B.wrapLabel(t.message,v.getMax(g+2*n.wrapPadding,n.width),xt(n)));const m=B.calculateTextDimensions(t.message,xt(n));return{width:v.getMax(t.wrap?0:m.width+2*n.wrapPadding,g+2*n.wrapPadding,n.width),height:0,startx:p,stopx:r,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,u),toBounds:Math.max.apply(null,u)}},O0=async function(t,e,c,s){const i={},a=[];let o,l,p;for(const r of t){switch(r.id=B.random({length:10}),r.type){case s.db.LINETYPE.LOOP_START:case s.db.LINETYPE.ALT_START:case s.db.LINETYPE.OPT_START:case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:case s.db.LINETYPE.CRITICAL_START:case s.db.LINETYPE.BREAK_START:a.push({id:r.id,msg:r.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case s.db.LINETYPE.ALT_ELSE:case s.db.LINETYPE.PAR_AND:case s.db.LINETYPE.CRITICAL_OPTION:r.message&&(o=a.pop(),i[o.id]=o,i[r.id]=o,a.push(o));break;case s.db.LINETYPE.LOOP_END:case s.db.LINETYPE.ALT_END:case s.db.LINETYPE.OPT_END:case s.db.LINETYPE.PAR_END:case s.db.LINETYPE.CRITICAL_END:case s.db.LINETYPE.BREAK_END:o=a.pop(),i[o.id]=o;break;case s.db.LINETYPE.ACTIVE_START:{const T=e[r.from?r.from.actor:r.to.actor],u=St(r.from?r.from.actor:r.to.actor).length,g=T.x+T.width/2+(u-1)*n.activationWidth/2,m={startx:g,stopx:g+n.activationWidth,actor:r.from.actor,enabled:!0};f.activations.push(m)}break;case s.db.LINETYPE.ACTIVE_END:{const T=f.activations.map(u=>u.actor).lastIndexOf(r.from.actor);delete f.activations.splice(T,1)[0]}break}r.placement!==void 0?(l=await D0(r,e,s),r.noteModel=l,a.forEach(T=>{o=T,o.from=v.getMin(o.from,l.startx),o.to=v.getMax(o.to,l.startx+l.width),o.width=v.getMax(o.width,Math.abs(o.from-o.to))-n.labelBoxWidth})):(p=V0(r,e,s),r.msgModel=p,p.startx&&p.stopx&&a.length>0&&a.forEach(T=>{if(o=T,p.startx===p.stopx){const u=e[r.from],g=e[r.to];o.from=v.getMin(u.x-p.width/2,u.x-u.width/2,o.from),o.to=v.getMax(g.x+p.width/2,g.x+u.width/2,o.to),o.width=v.getMax(o.width,Math.abs(o.to-o.from))-n.labelBoxWidth}else o.from=v.getMin(p.startx,o.from),o.to=v.getMax(p.stopx,o.to),o.width=v.getMax(o.width,p.width)-n.labelBoxWidth}))}return f.activations=[],G.debug("Loop type widths:",i),i},B0={bounds:f,drawActors:qt,drawActorsPopup:ge,setConf:xe,draw:S0},U0={parser:De,db:Qt,renderer:B0,styles:o0,init:({wrap:t})=>{Qt.setWrap(t)}};export{U0 as diagram};
import{c as rt,g as mt,s as kt,a as _t,b as xt,D as vt,C as bt,E as wt,j as St,as as Lt,h as G,t as Et}from"./slidev/Mermaid-sWhOKcCj.js";import{o as At}from"./ordinal-475e0c0c-BmOJQ37o.js";import{d as Tt}from"./Tableau10-31042135-CvOaoHrI.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./init-cc95ec8e-Gi6I4Gst.js";var tt=function(){var t=function(p,i,o,c){for(o=o||{},c=p.length;c--;o[p[c]]=i);return o},n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(i,o,c,m,b,y,x){var E=y.length-1;switch(b){case 7:const L=m.findOrCreateNode(y[E-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(y[E-2].trim().replaceAll('""','"')),N=parseFloat(y[E].trim());m.addLink(L,A,N);break;case 8:case 9:case 11:this.$=y[E];break;case 10:this.$=y[E-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(i,o){if(o.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=o,c}},parse:function(i){var o=this,c=[0],m=[],b=[null],y=[],x=this.table,E="",L=0,A=0,N=2,I=1,z=y.slice.call(arguments,1),S=Object.create(this.lexer),M={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(M.yy[$]=this.yy[$]);S.setInput(i,M.yy),M.yy.lexer=S,M.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var C=S.yylloc;y.push(C);var P=S.options&&S.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function d(){var v;return v=m.pop()||S.lex()||I,typeof v!="number"&&(v instanceof Array&&(m=v,v=m.pop()),v=o.symbols_[v]||v),v}for(var w,O,T,V,e={},f,l,h,r;;){if(O=c[c.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=d()),T=x[O]&&x[O][w]),typeof T>"u"||!T.length||!T[0]){var k="";r=[];for(f in x[O])this.terminals_[f]&&f>N&&r.push("'"+this.terminals_[f]+"'");S.showPosition?k="Parse error on line "+(L+1)+`:
`+S.showPosition()+`
Expecting `+r.join(", ")+", got '"+(this.terminals_[w]||w)+"'":k="Parse error on line "+(L+1)+": Unexpected "+(w==I?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(k,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:C,expected:r})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+w);switch(T[0]){case 1:c.push(w),b.push(S.yytext),y.push(S.yylloc),c.push(T[1]),w=null,A=S.yyleng,E=S.yytext,L=S.yylineno,C=S.yylloc;break;case 2:if(l=this.productions_[T[1]][1],e.$=b[b.length-l],e._$={first_line:y[y.length-(l||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(l||1)].first_column,last_column:y[y.length-1].last_column},P&&(e._$.range=[y[y.length-(l||1)].range[0],y[y.length-1].range[1]]),V=this.performAction.apply(e,[E,A,L,M.yy,T[1],b,y].concat(z)),typeof V<"u")return V;l&&(c=c.slice(0,-1*l*2),b=b.slice(0,-1*l),y=y.slice(0,-1*l)),c.push(this.productions_[T[1]][0]),b.push(e.$),y.push(e._$),h=x[c[c.length-2]][c[c.length-1]],c.push(h);break;case 3:return!0}}return!0}},_=function(){var p={EOF:1,parseError:function(o,c){if(this.yy.parser)this.yy.parser.parseError(o,c);else throw new Error(o)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===m.length?this.yylloc.first_column:0)+m[m.length-c.length].length-c[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+o+"^"},test_match:function(i,o){var c,m,b;if(this.options.backtrack_lexer&&(b={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(b.yylloc.range=this.yylloc.range.slice(0))),m=i[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],c=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var y in b)this[y]=b[y];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,o,c,m;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),y=0;y<b.length;y++)if(c=this._input.match(this.rules[b[y]]),c&&(!o||c[0].length>o[0].length)){if(o=c,m=y,this.options.backtrack_lexer){if(i=this.test_match(c,b[y]),i!==!1)return i;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(i=this.test_match(o,b[m]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return o||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(o,c,m,b){switch(m){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return p}();u.lexer=_;function g(){this.yy={}}return g.prototype=u,u.Parser=g,new g}();tt.parser=tt;const H=tt;let q=[],Q=[],B={};const Mt=()=>{q=[],Q=[],B={},wt()};class Nt{constructor(n,s,a=0){this.source=n,this.target=s,this.value=a}}const Ct=(t,n,s)=>{q.push(new Nt(t,n,s))};class Pt{constructor(n){this.ID=n}}const It=t=>(t=St.sanitizeText(t,rt()),B[t]||(B[t]=new Pt(t),Q.push(B[t])),B[t]),Ot=()=>Q,$t=()=>q,zt=()=>({nodes:Q.map(t=>({id:t.ID})),links:q.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),Dt={nodesMap:B,getConfig:()=>rt().sankey,getNodes:Ot,getLinks:$t,getGraph:zt,addLink:Ct,findOrCreateNode:It,getAccTitle:mt,setAccTitle:kt,getAccDescription:_t,setAccDescription:xt,getDiagramTitle:vt,setDiagramTitle:bt,clear:Mt};function ot(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s<u||s===void 0&&u>=u)&&(s=u)}return s}function yt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function Z(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function jt(t){return t.target.depth}function Bt(t){return t.depth}function Vt(t,n){return n-1-t.height}function dt(t,n){return t.sourceLinks.length?t.depth:n-1}function Rt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?yt(t.sourceLinks,jt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return X(t.source,n.source)||t.index-n.index}function at(t,n){return X(t.target,n.target)||t.index-n.index}function X(t,n){return t.y0-n.y0}function J(t){return t.value}function Ut(t){return t.index}function Wt(t){return t.nodes}function Ft(t){return t.links}function ct(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ut({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function Gt(){let t=0,n=0,s=1,a=1,u=24,_=8,g,p=Ut,i=dt,o,c,m=Wt,b=Ft,y=6;function x(){const e={nodes:m.apply(null,arguments),links:b.apply(null,arguments)};return E(e),L(e),A(e),N(e),S(e),ut(e),e}x.update=function(e){return ut(e),e},x.nodeId=function(e){return arguments.length?(p=typeof e=="function"?e:Y(e),x):p},x.nodeAlign=function(e){return arguments.length?(i=typeof e=="function"?e:Y(e),x):i},x.nodeSort=function(e){return arguments.length?(o=e,x):o},x.nodeWidth=function(e){return arguments.length?(u=+e,x):u},x.nodePadding=function(e){return arguments.length?(_=g=+e,x):_},x.nodes=function(e){return arguments.length?(m=typeof e=="function"?e:Y(e),x):m},x.links=function(e){return arguments.length?(b=typeof e=="function"?e:Y(e),x):b},x.linkSort=function(e){return arguments.length?(c=e,x):c},x.size=function(e){return arguments.length?(t=n=0,s=+e[0],a=+e[1],x):[s-t,a-n]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],n=+e[0][1],a=+e[1][1],x):[[t,n],[s,a]]},x.iterations=function(e){return arguments.length?(y=+e,x):y};function E({nodes:e,links:f}){for(const[h,r]of e.entries())r.index=h,r.sourceLinks=[],r.targetLinks=[];const l=new Map(e.map((h,r)=>[p(h,r,e),h]));for(const[h,r]of f.entries()){r.index=h;let{source:k,target:v}=r;typeof k!="object"&&(k=r.source=ct(l,k)),typeof v!="object"&&(v=r.target=ct(l,v)),k.sourceLinks.push(r),v.targetLinks.push(r)}if(c!=null)for(const{sourceLinks:h,targetLinks:r}of e)h.sort(c),r.sort(c)}function L({nodes:e}){for(const f of e)f.value=f.fixedValue===void 0?Math.max(Z(f.sourceLinks,J),Z(f.targetLinks,J)):f.fixedValue}function A({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.depth=r;for(const{target:v}of k.sourceLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function N({nodes:e}){const f=e.length;let l=new Set(e),h=new Set,r=0;for(;l.size;){for(const k of l){k.height=r;for(const{source:v}of k.targetLinks)h.add(v)}if(++r>f)throw new Error("circular link");l=h,h=new Set}}function I({nodes:e}){const f=ot(e,r=>r.depth)+1,l=(s-t-u)/(f-1),h=new Array(f);for(const r of e){const k=Math.max(0,Math.min(f-1,Math.floor(i.call(null,r,f))));r.layer=k,r.x0=t+k*l,r.x1=r.x0+u,h[k]?h[k].push(r):h[k]=[r]}if(o)for(const r of h)r.sort(o);return h}function z(e){const f=yt(e,l=>(a-n-(l.length-1)*g)/Z(l,J));for(const l of e){let h=n;for(const r of l){r.y0=h,r.y1=h+r.value*f,h=r.y1+g;for(const k of r.sourceLinks)k.width=k.value*f}h=(a-h+g)/(l.length+1);for(let r=0;r<l.length;++r){const k=l[r];k.y0+=h*(r+1),k.y1+=h*(r+1)}O(l)}}function S(e){const f=I(e);g=Math.min(_,(a-n)/(ot(f,l=>l.length)-1)),z(f);for(let l=0;l<y;++l){const h=Math.pow(.99,l),r=Math.max(1-h,(l+1)/y);$(f,h,r),M(f,h,r)}}function M(e,f,l){for(let h=1,r=e.length;h<r;++h){const k=e[h];for(const v of k){let R=0,D=0;for(const{source:W,value:K}of v.targetLinks){let F=K*(v.layer-W.layer);R+=T(W,v)*F,D+=F}if(!(D>0))continue;let U=(R/D-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(X),C(k,l)}}function $(e,f,l){for(let h=e.length,r=h-2;r>=0;--r){const k=e[r];for(const v of k){let R=0,D=0;for(const{target:W,value:K}of v.sourceLinks){let F=K*(W.layer-v.layer);R+=V(v,W)*F,D+=F}if(!(D>0))continue;let U=(R/D-v.y0)*f;v.y0+=U,v.y1+=U,w(v)}o===void 0&&k.sort(X),C(k,l)}}function C(e,f){const l=e.length>>1,h=e[l];d(e,h.y0-g,l-1,f),P(e,h.y1+g,l+1,f),d(e,a,e.length-1,f),P(e,n,0,f)}function P(e,f,l,h){for(;l<e.length;++l){const r=e[l],k=(f-r.y0)*h;k>1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+g}}function d(e,f,l,h){for(;l>=0;--l){const r=e[l],k=(r.y1-f)*h;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-g}}function w({sourceLinks:e,targetLinks:f}){if(c===void 0){for(const{source:{sourceLinks:l}}of f)l.sort(at);for(const{target:{targetLinks:l}}of e)l.sort(lt)}}function O(e){if(c===void 0)for(const{sourceLinks:f,targetLinks:l}of e)f.sort(at),l.sort(lt)}function T(e,f){let l=e.y0-(e.sourceLinks.length-1)*g/2;for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l+=r+g}for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l-=r}return l}function V(e,f){let l=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:h,width:r}of f.targetLinks){if(h===e)break;l+=r+g}for(const{target:h,width:r}of e.sourceLinks){if(h===f)break;l-=r}return l}return x}var et=Math.PI,nt=2*et,j=1e-6,Yt=nt-j;function it(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function gt(){return new it}it.prototype=gt.prototype={constructor:it,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,_){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+_)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var _=this._x1,g=this._y1,p=s-t,i=a-n,o=_-t,c=g-n,m=o*o+c*c;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>j)if(!(Math.abs(c*p-i*o)>j)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var b=s-_,y=a-g,x=p*p+i*i,E=b*b+y*y,L=Math.sqrt(x),A=Math.sqrt(m),N=u*Math.tan((et-Math.acos((x+m-E)/(2*L*A)))/2),I=N/A,z=N/L;Math.abs(I-1)>j&&(this._+="L"+(t+I*o)+","+(n+I*c)),this._+="A"+u+","+u+",0,0,"+ +(c*b>o*y)+","+(this._x1=t+z*p)+","+(this._y1=n+z*i)}},arc:function(t,n,s,a,u,_){t=+t,n=+n,s=+s,_=!!_;var g=s*Math.cos(a),p=s*Math.sin(a),i=t+g,o=n+p,c=1^_,m=_?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+i+","+o:(Math.abs(this._x1-i)>j||Math.abs(this._y1-o)>j)&&(this._+="L"+i+","+o),s&&(m<0&&(m=m%nt+nt),m>Yt?this._+="A"+s+","+s+",0,1,"+c+","+(t-g)+","+(n-p)+"A"+s+","+s+",0,1,"+c+","+(this._x1=i)+","+(this._y1=o):m>j&&(this._+="A"+s+","+s+",0,"+ +(m>=et)+","+c+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ht(t){return function(){return t}}function Ht(t){return t[0]}function Xt(t){return t[1]}var qt=Array.prototype.slice;function Qt(t){return t.source}function Kt(t){return t.target}function Zt(t){var n=Qt,s=Kt,a=Ht,u=Xt,_=null;function g(){var p,i=qt.call(arguments),o=n.apply(this,i),c=s.apply(this,i);if(_||(_=p=gt()),t(_,+a.apply(this,(i[0]=o,i)),+u.apply(this,i),+a.apply(this,(i[0]=c,i)),+u.apply(this,i)),p)return _=null,p+""||null}return g.source=function(p){return arguments.length?(n=p,g):n},g.target=function(p){return arguments.length?(s=p,g):s},g.x=function(p){return arguments.length?(a=typeof p=="function"?p:ht(+p),g):a},g.y=function(p){return arguments.length?(u=typeof p=="function"?p:ht(+p),g):u},g.context=function(p){return arguments.length?(_=p??null,g):_},g}function Jt(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function te(){return Zt(Jt)}function ee(t){return[t.source.x1,t.y0]}function ne(t){return[t.target.x0,t.y1]}function ie(){return te().source(ee).target(ne)}const pt=class st{static next(n){return new st(n+ ++st.count)}constructor(n){this.id=n,this.href=`#${n}`}toString(){return"url("+this.href+")"}};pt.count=0;let ft=pt;const se={left:Bt,right:Vt,center:Rt,justify:dt},re=function(t,n,s,a){const{securityLevel:u,sankey:_}=rt(),g=Lt.sankey;let p;u==="sandbox"&&(p=G("#i"+n));const i=u==="sandbox"?G(p.nodes()[0].contentDocument.body):G("body"),o=u==="sandbox"?i.select(`[id="${n}"]`):G(`[id="${n}"]`),c=(_==null?void 0:_.width)??g.width,m=(_==null?void 0:_.height)??g.width,b=(_==null?void 0:_.useMaxWidth)??g.useMaxWidth,y=(_==null?void 0:_.nodeAlignment)??g.nodeAlignment,x=(_==null?void 0:_.prefix)??g.prefix,E=(_==null?void 0:_.suffix)??g.suffix,L=(_==null?void 0:_.showValues)??g.showValues,A=a.db.getGraph(),N=se[y];Gt().nodeId(d=>d.id).nodeWidth(10).nodePadding(10+(L?15:0)).nodeAlign(N).extent([[0,0],[c,m]])(A);const S=At(Tt);o.append("g").attr("class","nodes").selectAll(".node").data(A.nodes).join("g").attr("class","node").attr("id",d=>(d.uid=ft.next("node-")).id).attr("transform",function(d){return"translate("+d.x0+","+d.y0+")"}).attr("x",d=>d.x0).attr("y",d=>d.y0).append("rect").attr("height",d=>d.y1-d.y0).attr("width",d=>d.x1-d.x0).attr("fill",d=>S(d.id));const M=({id:d,value:w})=>L?`${d}
${x}${Math.round(w*100)/100}${E}`:d;o.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(A.nodes).join("text").attr("x",d=>d.x0<c/2?d.x1+6:d.x0-6).attr("y",d=>(d.y1+d.y0)/2).attr("dy",`${L?"0":"0.35"}em`).attr("text-anchor",d=>d.x0<c/2?"start":"end").text(M);const $=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(A.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),C=(_==null?void 0:_.linkColor)||"gradient";if(C==="gradient"){const d=$.append("linearGradient").attr("id",w=>(w.uid=ft.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",w=>w.source.x1).attr("x2",w=>w.target.x0);d.append("stop").attr("offset","0%").attr("stop-color",w=>S(w.source.id)),d.append("stop").attr("offset","100%").attr("stop-color",w=>S(w.target.id))}let P;switch(C){case"gradient":P=d=>d.uid;break;case"source":P=d=>S(d.source.id);break;case"target":P=d=>S(d.target.id);break;default:P=C}$.append("path").attr("d",ie()).attr("stroke",P).attr("stroke-width",d=>Math.max(1,d.width)),Et(void 0,o,0,b)},oe={draw:re},le=t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
`).trim(),ae=H.parse.bind(H);H.parse=t=>ae(le(t));const me={parser:H,db:Dt,renderer:oe};export{me as diagram};
import{c as Te,s as Ce,g as Fe,b as Me,a as De,l as Ne,E as Pe,h as oe,i as Ye,j as ke}from"./slidev/Mermaid-sWhOKcCj.js";import{G as Ue}from"./graph-af3d5df6-B9Rrt_D8.js";import{l as Be}from"./layout-6685625a-TirZJcn7.js";import{l as Qe}from"./line-65d70945-Bv9b7vLo.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";var ce=function(){var e=function(V,i,n,a){for(n=n||{},a=V.length;a--;n[V[a]]=i);return n},t=[1,3],l=[1,4],c=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],p=[1,18],h=[2,7],o=[1,22],E=[1,23],R=[1,24],A=[1,25],T=[1,26],N=[1,27],v=[1,20],k=[1,28],x=[1,29],F=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],fe=[1,48],ye=[1,49],_e=[1,50],Ee=[1,51],ge=[1,52],Re=[1,53],O=[53,54],M=[1,64],D=[1,60],P=[1,61],Y=[1,62],U=[1,63],B=[1,65],j=[1,69],z=[1,70],X=[1,67],J=[1,68],m=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(i,n,a,r,f,s,W){var _=s.length-1;switch(f){case 4:this.$=s[_].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:r.addRequirement(s[_-3],s[_-4]);break;case 14:r.setNewReqId(s[_-2]);break;case 15:r.setNewReqText(s[_-2]);break;case 16:r.setNewReqRisk(s[_-2]);break;case 17:r.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=r.RequirementType.REQUIREMENT;break;case 21:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=r.RiskLevel.LOW_RISK;break;case 27:this.$=r.RiskLevel.MED_RISK;break;case 28:this.$=r.RiskLevel.HIGH_RISK;break;case 29:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=r.VerifyType.VERIFY_TEST;break;case 33:r.addElement(s[_-3]);break;case 34:r.setNewElementType(s[_-2]);break;case 35:r.setNewElementDocRef(s[_-2]);break;case 38:r.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:r.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=r.Relationships.CONTAINS;break;case 41:this.$=r.Relationships.COPIES;break;case 42:this.$=r.Relationships.DERIVES;break;case 43:this.$=r.Relationships.SATISFIES;break;case 44:this.$=r.Relationships.VERIFIES;break;case 45:this.$=r.Relationships.REFINES;break;case 46:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:c,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:c,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:c,13:u},{1:[2,2]},{4:17,5:p,7:13,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:p,7:31,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:32,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:33,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:34,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{4:17,5:p,7:35,8:h,9:l,11:c,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:E,33:R,34:A,35:T,36:N,44:v,62:k,63:x},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(de,[2,49]),e(de,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:pe,56:fe,57:ye,58:_e,59:Ee,60:ge,61:Re},{52:54,55:pe,56:fe,57:ye,58:_e,59:Ee,60:ge,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:M,20:59,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:66,47:X,49:J},{23:71,62:k,63:x},{23:72,62:k,63:x},e(m,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:M,20:77,21:D,24:P,26:Y,28:U,30:B},e(m,[2,19]),e(m,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:z,46:80,47:X,49:J},e(m,[2,37]),e(m,[2,38]),e(m,[2,39]),{23:81,62:k,63:x},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(m,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(m,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:M,20:106,21:D,24:P,26:Y,28:U,30:B},{5:M,20:107,21:D,24:P,26:Y,28:U,30:B},{5:M,20:108,21:D,24:P,26:Y,28:U,30:B},{5:M,20:109,21:D,24:P,26:Y,28:U,30:B},{5:j,30:z,46:110,47:X,49:J},{5:j,30:z,46:111,47:X,49:J},e(m,[2,14]),e(m,[2,15]),e(m,[2,16]),e(m,[2,17]),e(m,[2,34]),e(m,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:function(i,n){if(n.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=n,a}},parse:function(i){var n=this,a=[0],r=[],f=[null],s=[],W=this.table,_="",Z=0,me=0,Ve=2,Ie=1,qe=s.slice.call(arguments,1),g=Object.create(this.lexer),L={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(L.yy[ne]=this.yy[ne]);g.setInput(i,L.yy),L.yy.lexer=g,L.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var se=g.yylloc;s.push(se);var Oe=g.options&&g.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var $;return $=r.pop()||g.lex()||Ie,typeof $!="number"&&($ instanceof Array&&(r=$,$=r.pop()),$=n.symbols_[$]||$),$}for(var I,C,S,ae,Q={},ee,w,be,te;;){if(C=a[a.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((I===null||typeof I>"u")&&(I=Le()),S=W[C]&&W[C][I]),typeof S>"u"||!S.length||!S[0]){var le="";te=[];for(ee in W[C])this.terminals_[ee]&&ee>Ve&&te.push("'"+this.terminals_[ee]+"'");g.showPosition?le="Parse error on line "+(Z+1)+`:
`+g.showPosition()+`
Expecting `+te.join(", ")+", got '"+(this.terminals_[I]||I)+"'":le="Parse error on line "+(Z+1)+": Unexpected "+(I==Ie?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(le,{text:g.match,token:this.terminals_[I]||I,line:g.yylineno,loc:se,expected:te})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+I);switch(S[0]){case 1:a.push(I),f.push(g.yytext),s.push(g.yylloc),a.push(S[1]),I=null,me=g.yyleng,_=g.yytext,Z=g.yylineno,se=g.yylloc;break;case 2:if(w=this.productions_[S[1]][1],Q.$=f[f.length-w],Q._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},Oe&&(Q._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),ae=this.performAction.apply(Q,[_,me,Z,L.yy,S[1],f,s].concat(qe)),typeof ae<"u")return ae;w&&(a=a.slice(0,-1*w*2),f=f.slice(0,-1*w),s=s.slice(0,-1*w)),a.push(this.productions_[S[1]][0]),f.push(Q.$),s.push(Q._$),be=W[a[a.length-2]][a[a.length-1]],a.push(be);break;case 3:return!0}}return!0}},$e=function(){var V={EOF:1,parseError:function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},setInput:function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var n=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+n+"^"},test_match:function(i,n){var a,r,f;if(this.options.backtrack_lexer&&(f={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(f.yylloc.range=this.yylloc.range.slice(0))),r=i[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],a=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var s in f)this[s]=f[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,n,a,r;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),s=0;s<f.length;s++)if(a=this._input.match(this.rules[f[s]]),a&&(!n||a[0].length>n[0].length)){if(n=a,r=s,this.options.backtrack_lexer){if(i=this.test_match(a,f[s]),i!==!1)return i;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(i=this.test_match(n,f[r]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,a,r,f){switch(r){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:return a.yytext=a.yytext.trim(),62}},rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50],inclusive:!0}}};return V}();ie.lexer=$e;function re(){this.yy={}}return re.prototype=ie,ie.Parser=re,new re}();ce.parser=ce;const He=ce;let ue=[],b={},K={},q={},G={};const We={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},Ke={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},Ge={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},je={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},ze=(e,t)=>(K[e]===void 0&&(K[e]={name:e,type:t,id:b.id,text:b.text,risk:b.risk,verifyMethod:b.verifyMethod}),b={},K[e]),Xe=()=>K,Je=e=>{b!==void 0&&(b.id=e)},Ze=e=>{b!==void 0&&(b.text=e)},et=e=>{b!==void 0&&(b.risk=e)},tt=e=>{b!==void 0&&(b.verifyMethod=e)},it=e=>(G[e]===void 0&&(G[e]={name:e,type:q.type,docRef:q.docRef},Ne.info("Added new requirement: ",e)),q={},G[e]),rt=()=>G,nt=e=>{q!==void 0&&(q.type=e)},st=e=>{q!==void 0&&(q.docRef=e)},at=(e,t,l)=>{ue.push({type:e,src:t,dst:l})},lt=()=>ue,ot=()=>{ue=[],b={},K={},q={},G={},Pe()},ct={RequirementType:We,RiskLevel:Ke,VerifyType:Ge,Relationships:je,getConfig:()=>Te().req,addRequirement:ze,getRequirements:Xe,setNewReqId:Je,setNewReqText:Ze,setNewReqRisk:et,setNewReqVerifyMethod:tt,setAccTitle:Ce,getAccTitle:Fe,setAccDescription:Me,getAccDescription:De,addElement:it,getElements:rt,setNewElementType:nt,setNewElementDocRef:st,addRelationship:at,getRelationships:lt,clear:ot},ht=e=>`
marker {
fill: ${e.relationColor};
stroke: ${e.relationColor};
}
marker.cross {
stroke: ${e.lineColor};
}
svg {
font-family: ${e.fontFamily};
font-size: ${e.fontSize};
}
.reqBox {
fill: ${e.requirementBackground};
fill-opacity: 1.0;
stroke: ${e.requirementBorderColor};
stroke-width: ${e.requirementBorderSize};
}
.reqTitle, .reqLabel{
fill: ${e.requirementTextColor};
}
.reqLabelBox {
fill: ${e.relationLabelBackground};
fill-opacity: 1.0;
}
.req-title-line {
stroke: ${e.requirementBorderColor};
stroke-width: ${e.requirementBorderSize};
}
.relationshipLine {
stroke: ${e.relationColor};
stroke-width: 1;
}
.relationshipLabel {
fill: ${e.relationLabelColor};
}
`,ut=ht,he={CONTAINS:"contains",ARROW:"arrow"},dt=(e,t)=>{let l=e.append("defs").append("marker").attr("id",he.CONTAINS+"_line_ending").attr("refX",0).attr("refY",t.line_height/2).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("g");l.append("circle").attr("cx",t.line_height/2).attr("cy",t.line_height/2).attr("r",t.line_height/2).attr("fill","none"),l.append("line").attr("x1",0).attr("x2",t.line_height).attr("y1",t.line_height/2).attr("y2",t.line_height/2).attr("stroke-width",1),l.append("line").attr("y1",0).attr("y2",t.line_height).attr("x1",t.line_height/2).attr("x2",t.line_height/2).attr("stroke-width",1),e.append("defs").append("marker").attr("id",he.ARROW+"_line_ending").attr("refX",t.line_height).attr("refY",.5*t.line_height).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("path").attr("d",`M0,0
L${t.line_height},${t.line_height/2}
M${t.line_height},${t.line_height/2}
L0,${t.line_height}`).attr("stroke-width",1)},xe={ReqMarkers:he,insertLineEndings:dt};let y={},Se=0;const Ae=(e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",y.rect_min_width+"px").attr("height",y.rect_min_height+"px"),ve=(e,t,l)=>{let c=y.rect_min_width/2,u=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",c).attr("y",y.rect_padding).attr("dominant-baseline","hanging"),d=0;l.forEach(E=>{d==0?u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",0).text(E):u.append("tspan").attr("text-anchor","middle").attr("x",y.rect_min_width/2).attr("dy",y.line_height*.75).text(E),d++});let p=1.5*y.rect_padding,h=d*y.line_height*.75,o=p+h;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",y.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:u,y:o}},we=(e,t,l,c)=>{let u=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",y.rect_padding).attr("y",c).attr("dominant-baseline","hanging"),d=0;const p=30;let h=[];return l.forEach(o=>{let E=o.length;for(;E>p&&d<3;){let R=o.substring(0,p);o=o.substring(p,o.length),E=o.length,h[h.length]=R,d++}if(d==3){let R=h[h.length-1];h[h.length-1]=R.substring(0,R.length-4)+"..."}else h[h.length]=o;d=0}),h.forEach(o=>{u.append("tspan").attr("x",y.rect_padding).attr("dy",y.line_height).text(o)}),u},pt=(e,t,l,c)=>{const u=t.node().getTotalLength(),d=t.node().getPointAtLength(u*.5),p="rel"+Se;Se++;const o=e.append("text").attr("class","req relationshipLabel").attr("id",p).attr("x",d.x).attr("y",d.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(c).node().getBBox();e.insert("rect","#"+p).attr("class","req reqLabelBox").attr("x",d.x-o.width/2).attr("y",d.y-o.height/2).attr("width",o.width).attr("height",o.height).attr("fill","white").attr("fill-opacity","85%")},ft=function(e,t,l,c,u){const d=l.edge(H(t.src),H(t.dst)),p=Qe().x(function(o){return o.x}).y(function(o){return o.y}),h=e.insert("path","#"+c).attr("class","er relationshipLine").attr("d",p(d.points)).attr("fill","none");t.type==u.db.Relationships.CONTAINS?h.attr("marker-start","url("+ke.getUrl(y.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(h.attr("stroke-dasharray","10,7"),h.attr("marker-end","url("+ke.getUrl(y.arrowMarkerAbsolute)+"#"+xe.ReqMarkers.ARROW+"_line_ending)")),pt(e,h,y,`<<${t.type}>>`)},yt=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];c=H(c),Ne.info("Added new requirement: ",c);const d=l.append("g").attr("id",c),p="req-"+c,h=Ae(d,p);let o=ve(d,c+"_title",[`<<${u.type}>>`,`${u.name}`]);we(d,c+"_body",[`Id: ${u.id}`,`Text: ${u.text}`,`Risk: ${u.risk}`,`Verification: ${u.verifyMethod}`],o.y);const E=h.node().getBBox();t.setNode(c,{width:E.width,height:E.height,shape:"rect",id:c})})},_t=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];const d=H(c),p=l.append("g").attr("id",d),h="element-"+d,o=Ae(p,h);let E=ve(p,h+"_title",["<<Element>>",`${c}`]);we(p,h+"_body",[`Type: ${u.type||"Not Specified"}`,`Doc Ref: ${u.docRef||"None"}`],E.y);const R=o.node().getBBox();t.setNode(d,{width:R.width,height:R.height,shape:"rect",id:d})})},Et=(e,t)=>(e.forEach(function(l){let c=H(l.src),u=H(l.dst);t.setEdge(c,u,{relationship:l})}),e),gt=function(e,t){t.nodes().forEach(function(l){l!==void 0&&t.node(l)!==void 0&&(e.select("#"+l),e.select("#"+l).attr("transform","translate("+(t.node(l).x-t.node(l).width/2)+","+(t.node(l).y-t.node(l).height/2)+" )"))})},H=e=>e.replace(/\s/g,"").replace(/\./g,"_"),Rt=(e,t,l,c)=>{y=Te().requirement;const u=y.securityLevel;let d;u==="sandbox"&&(d=oe("#i"+t));const h=(u==="sandbox"?oe(d.nodes()[0].contentDocument.body):oe("body")).select(`[id='${t}']`);xe.insertLineEndings(h,y);const o=new Ue({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:y.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let E=c.db.getRequirements(),R=c.db.getElements(),A=c.db.getRelationships();yt(E,o,h),_t(R,o,h),Et(A,o),Be(o),gt(h,o),A.forEach(function(x){ft(h,x,o,t,c)});const T=y.rect_padding,N=h.node().getBBox(),v=N.width+T*2,k=N.height+T*2;Ye(h,k,v,y.useMaxWidth),h.attr("viewBox",`${N.x-T} ${N.y-T} ${v} ${k}`)},mt={draw:Rt},$t={parser:He,db:ct,renderer:mt,styles:ut};export{$t as diagram};
import{Z as vt,c as yt,V as D,l as ot,s as Lt,g as Ct,C as zt,D as bt,a as Et,b as Dt,E as It,h as gt,i as Bt,d as wt}from"./slidev/Mermaid-sWhOKcCj.js";import{l as _t}from"./linear-d94cf28d-BOPJ1JvI.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./init-cc95ec8e-Gi6I4Gst.js";var pt=function(){var e=function(K,n,r,l){for(r=r||{},l=K.length;l--;r[K[l]]=n);return r},s=[1,3],h=[1,4],x=[1,5],f=[1,6],d=[1,7],c=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],g=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],y=[2,7],p=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],M=[1,22],X=[1,23],C=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],Q=[1,31],T=[1,32],_=[1,33],m=[1,34],t=[1,35],A=[1,36],S=[1,37],k=[1,38],F=[1,39],P=[1,40],v=[1,41],L=[1,42],O=[1,57],Y=[1,58],z=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,r,l,o,q,a,et){var u=a.length-1;switch(q){case 12:this.$=a[u].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[u].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[u].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[u].substr(8)),this.$=a[u].substr(8);break;case 17:o.addPoint(a[u-3],a[u-1],a[u]);break;case 18:o.setXAxisLeftText(a[u-2]),o.setXAxisRightText(a[u]);break;case 19:a[u-1].text+=" ⟶ ",o.setXAxisLeftText(a[u-1]);break;case 20:o.setXAxisLeftText(a[u]);break;case 21:o.setYAxisBottomText(a[u-2]),o.setYAxisTopText(a[u]);break;case 22:a[u-1].text+=" ⟶ ",o.setYAxisBottomText(a[u-1]);break;case 23:o.setYAxisBottomText(a[u]);break;case 24:o.setQuadrant1Text(a[u]);break;case 25:o.setQuadrant2Text(a[u]);break;case 26:o.setQuadrant3Text(a[u]);break;case 27:o.setQuadrant4Text(a[u]);break;case 31:this.$={text:a[u],type:"text"};break;case 32:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 33:this.$={text:a[u],type:"text"};break;case 34:this.$={text:a[u],type:"markdown"};break;case 35:this.$=a[u];break;case 36:this.$=a[u-1]+""+a[u];break}},table:[{3:1,4:2,5:s,6:h,32:x,33:f,34:d},{1:[3]},{3:8,4:2,5:s,6:h,32:x,33:f,34:d},{3:9,4:2,5:s,6:h,32:x,33:f,34:d},e(c,[2,4],{7:10}),e(g,[2,28]),e(g,[2,29]),e(g,[2,30]),{1:[2,1]},{1:[2,2]},e(i,y,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(c,[2,5]),{4:43,32:x,33:f,34:d},e(i,y,{10:14,11:15,12:16,21:28,35:29,9:44,5:p,13:B,15:N,17:V,19:I,20:b,25:M,27:X,28:C,29:it,30:at,31:nt,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:49,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:50,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:51,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:52,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{21:53,35:29,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L},{5:O,22:[1,54],35:56,36:55,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y},e(z,[2,31]),e(z,[2,33]),e(z,[2,34]),e(z,[2,37]),e(z,[2,38]),e(z,[2,39]),e(z,[2,40]),e(z,[2,41]),e(z,[2,42]),e(z,[2,43]),e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(z,[2,47]),e(c,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:O,26:[1,59],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,23],{36:55,35:56,5:O,26:[1,60],40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,24],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,25],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,26],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,27],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),{23:[1,61]},e(z,[2,32]),e(z,[2,48]),e(z,[2,49]),e(z,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:Q,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,21],{36:55,35:56,5:O,40:T,41:_,42:m,43:t,44:A,45:S,46:k,47:F,48:P,49:v,50:L,51:Y}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=r,l}},parse:function(n){var r=this,l=[0],o=[],q=[null],a=[],et=this.table,u="",st=0,qt=0,St=2,Tt=1,kt=a.slice.call(arguments,1),E=Object.create(this.lexer),Z={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Z.yy[dt]=this.yy[dt]);E.setInput(n,Z.yy),Z.yy.lexer=E,Z.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ut=E.yylloc;a.push(ut);var Ft=E.options&&E.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pt(){var j;return j=o.pop()||E.lex()||Tt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=r.symbols_[j]||j),j}for(var W,J,H,xt,tt={},rt,$,mt,lt;;){if(J=l[l.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=Pt()),H=et[J]&&et[J][W]),typeof H>"u"||!H.length||!H[0]){var ft="";lt=[];for(rt in et[J])this.terminals_[rt]&&rt>St&<.push("'"+this.terminals_[rt]+"'");E.showPosition?ft="Parse error on line "+(st+1)+`:
`+E.showPosition()+`
Expecting `+lt.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ft="Parse error on line "+(st+1)+": Unexpected "+(W==Tt?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(ft,{text:E.match,token:this.terminals_[W]||W,line:E.yylineno,loc:ut,expected:lt})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+W);switch(H[0]){case 1:l.push(W),q.push(E.yytext),a.push(E.yylloc),l.push(H[1]),W=null,qt=E.yyleng,u=E.yytext,st=E.yylineno,ut=E.yylloc;break;case 2:if($=this.productions_[H[1]][1],tt.$=q[q.length-$],tt._$={first_line:a[a.length-($||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-($||1)].first_column,last_column:a[a.length-1].last_column},Ft&&(tt._$.range=[a[a.length-($||1)].range[0],a[a.length-1].range[1]]),xt=this.performAction.apply(tt,[u,qt,st,Z.yy,H[1],q,a].concat(kt)),typeof xt<"u")return xt;$&&(l=l.slice(0,-1*$*2),q=q.slice(0,-1*$),a=a.slice(0,-1*$)),l.push(this.productions_[H[1]][0]),q.push(tt.$),a.push(tt._$),mt=et[l[l.length-2]][l[l.length-1]],l.push(mt);break;case 3:return!0}}return!0}},At=function(){var K={EOF:1,parseError:function(r,l){if(this.yy.parser)this.yy.parser.parseError(r,l);else throw new Error(r)},setInput:function(n,r){return this.yy=r||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var r=n.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var r=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var q=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===o.length?this.yylloc.first_column:0)+o[o.length-l.length].length-l[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),r=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
`+r+"^"},test_match:function(n,r){var l,o,q;if(this.options.backtrack_lexer&&(q={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(q.yylloc.range=this.yylloc.range.slice(0))),o=n[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],l=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var a in q)this[a]=q[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,r,l,o;this._more||(this.yytext="",this.match="");for(var q=this._currentRules(),a=0;a<q.length;a++)if(l=this._input.match(this.rules[q[a]]),l&&(!r||l[0].length>r[0].length)){if(r=l,o=a,this.options.backtrack_lexer){if(n=this.test_match(l,q[a]),n!==!1)return n;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(n=this.test_match(r,q[o]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,l,o,q){switch(o){case 0:break;case 1:break;case 2:return 32;case 3:break;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 22:this.popState();break;case 23:this.begin("string");break;case 24:this.popState();break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 28:this.popState();break;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:return 46;case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return K}();ht.lexer=At;function ct(){this.yy={}}return ct.prototype=ht,ht.Parser=ct,new ct}();pt.parser=pt;const Rt=pt,R=vt();class Vt{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var s,h,x,f,d,c,g,i,y,p,B,N,V,I,b,M,X,C;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((s=D.quadrantChart)==null?void 0:s.chartWidth)||500,chartWidth:((h=D.quadrantChart)==null?void 0:h.chartHeight)||500,titlePadding:((x=D.quadrantChart)==null?void 0:x.titlePadding)||10,titleFontSize:((f=D.quadrantChart)==null?void 0:f.titleFontSize)||20,quadrantPadding:((d=D.quadrantChart)==null?void 0:d.quadrantPadding)||5,xAxisLabelPadding:((c=D.quadrantChart)==null?void 0:c.xAxisLabelPadding)||5,yAxisLabelPadding:((g=D.quadrantChart)==null?void 0:g.yAxisLabelPadding)||5,xAxisLabelFontSize:((i=D.quadrantChart)==null?void 0:i.xAxisLabelFontSize)||16,yAxisLabelFontSize:((y=D.quadrantChart)==null?void 0:y.yAxisLabelFontSize)||16,quadrantLabelFontSize:((p=D.quadrantChart)==null?void 0:p.quadrantLabelFontSize)||16,quadrantTextTopPadding:((B=D.quadrantChart)==null?void 0:B.quadrantTextTopPadding)||5,pointTextPadding:((N=D.quadrantChart)==null?void 0:N.pointTextPadding)||5,pointLabelFontSize:((V=D.quadrantChart)==null?void 0:V.pointLabelFontSize)||12,pointRadius:((I=D.quadrantChart)==null?void 0:I.pointRadius)||5,xAxisPosition:((b=D.quadrantChart)==null?void 0:b.xAxisPosition)||"top",yAxisPosition:((M=D.quadrantChart)==null?void 0:M.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((X=D.quadrantChart)==null?void 0:X.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((C=D.quadrantChart)==null?void 0:C.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:R.quadrant1Fill,quadrant2Fill:R.quadrant2Fill,quadrant3Fill:R.quadrant3Fill,quadrant4Fill:R.quadrant4Fill,quadrant1TextFill:R.quadrant1TextFill,quadrant2TextFill:R.quadrant2TextFill,quadrant3TextFill:R.quadrant3TextFill,quadrant4TextFill:R.quadrant4TextFill,quadrantPointFill:R.quadrantPointFill,quadrantPointTextFill:R.quadrantPointTextFill,quadrantXAxisTextFill:R.quadrantXAxisTextFill,quadrantYAxisTextFill:R.quadrantYAxisTextFill,quadrantTitleFill:R.quadrantTitleFill,quadrantInternalBorderStrokeFill:R.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:R.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),ot.info("clear called")}setData(s){this.data={...this.data,...s}}addPoints(s){this.data.points=[...s,...this.data.points]}setConfig(s){ot.trace("setConfig called with: ",s),this.config={...this.config,...s}}setThemeConfig(s){ot.trace("setThemeConfig called with: ",s),this.themeConfig={...this.themeConfig,...s}}calculateSpace(s,h,x,f){const d=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,c={top:s==="top"&&h?d:0,bottom:s==="bottom"&&h?d:0},g=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,i={left:this.config.yAxisPosition==="left"&&x?g:0,right:this.config.yAxisPosition==="right"&&x?g:0},y=this.config.titleFontSize+this.config.titlePadding*2,p={top:f?y:0},B=this.config.quadrantPadding+i.left,N=this.config.quadrantPadding+c.top+p.top,V=this.config.chartWidth-this.config.quadrantPadding*2-i.left-i.right,I=this.config.chartHeight-this.config.quadrantPadding*2-c.top-c.bottom-p.top,b=V/2,M=I/2;return{xAxisSpace:c,yAxisSpace:i,titleSpace:p,quadrantSpace:{quadrantLeft:B,quadrantTop:N,quadrantWidth:V,quadrantHalfWidth:b,quadrantHeight:I,quadrantHalfHeight:M}}}getAxisLabels(s,h,x,f){const{quadrantSpace:d,titleSpace:c}=f,{quadrantHalfHeight:g,quadrantHeight:i,quadrantLeft:y,quadrantHalfWidth:p,quadrantTop:B,quadrantWidth:N}=d,V=!!this.data.xAxisRightText,I=!!this.data.yAxisTopText,b=[];return this.data.xAxisLeftText&&h&&b.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:y+(V?p/2:0),y:s==="top"?this.config.xAxisLabelPadding+c.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:V?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&h&&b.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:y+p+(V?p/2:0),y:s==="top"?this.config.xAxisLabelPadding+c.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:V?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&x&&b.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+y+N+this.config.quadrantPadding,y:B+i-(I?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&x&&b.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+y+N+this.config.quadrantPadding,y:B+g-(I?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),b}getQuadrants(s){const{quadrantSpace:h}=s,{quadrantHalfHeight:x,quadrantLeft:f,quadrantHalfWidth:d,quadrantTop:c}=h,g=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+d,y:c,width:d,height:x,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:c,width:d,height:x,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f,y:c+x,width:d,height:x,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:f+d,y:c+x,width:d,height:x,fill:this.themeConfig.quadrant4Fill}];for(const i of g)i.text.x=i.x+i.width/2,this.data.points.length===0?(i.text.y=i.y+i.height/2,i.text.horizontalPos="middle"):(i.text.y=i.y+this.config.quadrantTextTopPadding,i.text.horizontalPos="top");return g}getQuadrantPoints(s){const{quadrantSpace:h}=s,{quadrantHeight:x,quadrantLeft:f,quadrantTop:d,quadrantWidth:c}=h,g=_t().domain([0,1]).range([f,c+f]),i=_t().domain([0,1]).range([x+d,d]);return this.data.points.map(p=>({x:g(p.x),y:i(p.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:p.text,fill:this.themeConfig.quadrantPointTextFill,x:g(p.x),y:i(p.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}}))}getBorders(s){const h=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:x}=s,{quadrantHalfHeight:f,quadrantHeight:d,quadrantLeft:c,quadrantHalfWidth:g,quadrantTop:i,quadrantWidth:y}=x;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c-h,y1:i,x2:c+y+h,y2:i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c+y,y1:i+h,x2:c+y,y2:i+d-h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c-h,y1:i+d,x2:c+y+h,y2:i+d},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:c,y1:i+h,x2:c,y2:i+d-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:c+g,y1:i+h,x2:c+g,y2:i+d-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:c+h,y1:i+f,x2:c+y-h,y2:i+f}]}getTitle(s){if(s)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const s=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),h=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),x=this.config.showTitle&&!!this.data.titleText,f=this.data.points.length>0?"bottom":this.config.xAxisPosition,d=this.calculateSpace(f,s,h,x);return{points:this.getQuadrantPoints(d),quadrants:this.getQuadrants(d),axisLabels:this.getAxisLabels(f,s,h,d),borderLines:this.getBorders(d),title:this.getTitle(x)}}}const Wt=yt();function G(e){return wt(e.trim(),Wt)}const w=new Vt;function Nt(e){w.setData({quadrant1Text:G(e.text)})}function Ut(e){w.setData({quadrant2Text:G(e.text)})}function Qt(e){w.setData({quadrant3Text:G(e.text)})}function Ht(e){w.setData({quadrant4Text:G(e.text)})}function Mt(e){w.setData({xAxisLeftText:G(e.text)})}function Xt(e){w.setData({xAxisRightText:G(e.text)})}function Ot(e){w.setData({yAxisTopText:G(e.text)})}function Yt(e){w.setData({yAxisBottomText:G(e.text)})}function $t(e,s,h){w.addPoints([{x:s,y:h,text:G(e.text)}])}function jt(e){w.setConfig({chartWidth:e})}function Gt(e){w.setConfig({chartHeight:e})}function Kt(){const e=yt(),{themeVariables:s,quadrantChart:h}=e;return h&&w.setConfig(h),w.setThemeConfig({quadrant1Fill:s.quadrant1Fill,quadrant2Fill:s.quadrant2Fill,quadrant3Fill:s.quadrant3Fill,quadrant4Fill:s.quadrant4Fill,quadrant1TextFill:s.quadrant1TextFill,quadrant2TextFill:s.quadrant2TextFill,quadrant3TextFill:s.quadrant3TextFill,quadrant4TextFill:s.quadrant4TextFill,quadrantPointFill:s.quadrantPointFill,quadrantPointTextFill:s.quadrantPointTextFill,quadrantXAxisTextFill:s.quadrantXAxisTextFill,quadrantYAxisTextFill:s.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:s.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:s.quadrantInternalBorderStrokeFill,quadrantTitleFill:s.quadrantTitleFill}),w.setData({titleText:bt()}),w.build()}const Zt=function(){w.clear(),It()},Jt={setWidth:jt,setHeight:Gt,setQuadrant1Text:Nt,setQuadrant2Text:Ut,setQuadrant3Text:Qt,setQuadrant4Text:Ht,setXAxisLeftText:Mt,setXAxisRightText:Xt,setYAxisTopText:Ot,setYAxisBottomText:Yt,addPoint:$t,getQuadrantData:Kt,clear:Zt,setAccTitle:Lt,getAccTitle:Ct,setDiagramTitle:zt,getDiagramTitle:bt,getAccDescription:Et,setAccDescription:Dt},te=(e,s,h,x)=>{var f,d,c;function g(t){return t==="top"?"hanging":"middle"}function i(t){return t==="left"?"start":"middle"}function y(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}const p=yt();ot.debug(`Rendering quadrant chart
`+e);const B=p.securityLevel;let N;B==="sandbox"&&(N=gt("#i"+s));const I=(B==="sandbox"?gt(N.nodes()[0].contentDocument.body):gt("body")).select(`[id="${s}"]`),b=I.append("g").attr("class","main"),M=((f=p.quadrantChart)==null?void 0:f.chartWidth)||500,X=((d=p.quadrantChart)==null?void 0:d.chartHeight)||500;Bt(I,X,M,((c=p.quadrantChart)==null?void 0:c.useMaxWidth)||!0),I.attr("viewBox","0 0 "+M+" "+X),x.db.setHeight(X),x.db.setWidth(M);const C=x.db.getQuadrantData(),it=b.append("g").attr("class","quadrants"),at=b.append("g").attr("class","border"),nt=b.append("g").attr("class","data-points"),U=b.append("g").attr("class","labels"),Q=b.append("g").attr("class","title");C.title&&Q.append("text").attr("x",0).attr("y",0).attr("fill",C.title.fill).attr("font-size",C.title.fontSize).attr("dominant-baseline",g(C.title.horizontalPos)).attr("text-anchor",i(C.title.verticalPos)).attr("transform",y(C.title)).text(C.title.text),C.borderLines&&at.selectAll("line").data(C.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth);const T=it.selectAll("g.quadrant").data(C.quadrants).enter().append("g").attr("class","quadrant");T.append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),T.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>g(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>y(t.text)).text(t=>t.text.text),U.selectAll("g.label").data(C.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>g(t.horizontalPos)).attr("text-anchor",t=>i(t.verticalPos)).attr("transform",t=>y(t));const m=nt.selectAll("g.data-point").data(C.points).enter().append("g").attr("class","data-point");m.append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill),m.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>g(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>y(t.text))},ee={draw:te},he={parser:Rt,db:Jt,renderer:ee,styles:()=>""};export{he as diagram};
#print-content{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark #print-content{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.print-slide-container{position:relative;--un-translate-x:0;--un-translate-y:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));break-after:page;overflow:hidden}html.print,html.print body,html.print #app{height:auto;overflow:auto}html.print #page-root{height:auto;overflow:hidden}html.print *{-webkit-print-color-adjust:exact}html.print{width:100%;height:100%;overflow:visible}html.print body{margin:0 auto;border:0;padding:0;float:none;overflow:visible}
.range[data-v-52a29648]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent}.range[data-v-52a29648]::-webkit-slider-thumb{-webkit-appearance:none;height:100%;width:var(--thumb-width, .5rem)}.range[data-v-52a29648]::-moz-range-thumb{height:100%;width:var(--thumb-width, .5rem)}.slidev-presenter[data-v-d0ba6bbb]{--slidev-controls-foreground: current}.timer-btn[data-v-d0ba6bbb]:hover>:first-child{opacity:0}.timer-btn[data-v-d0ba6bbb]:hover>:last-child{opacity:1}.section-title[data-v-d0ba6bbb]{padding:.5rem 1rem;font-size:1.25rem;line-height:1.75rem}.grid-container[data-v-d0ba6bbb]{background-color:#9ca3af33;height:100%;width:100%;display:grid;gap:1px 1px}.grid-container.layout1[data-v-d0ba6bbb]{grid-template-columns:1fr 1fr;grid-template-rows:2fr 1fr min-content;grid-template-areas:"main main" "note next" "bottom bottom"}.grid-container.layout2[data-v-d0ba6bbb]{grid-template-columns:3fr 2fr;grid-template-rows:2fr 1fr min-content;grid-template-areas:"note main" "note next" "bottom bottom"}@media (max-aspect-ratio: 3/5){.grid-container.layout1[data-v-d0ba6bbb]{grid-template-columns:1fr;grid-template-rows:1fr 1fr 1fr min-content;grid-template-areas:"main" "note" "next" "bottom"}}@media (min-aspect-ratio: 1/1){.grid-container.layout1[data-v-d0ba6bbb]{grid-template-columns:1fr 1.1fr .9fr;grid-template-rows:1fr 2fr min-content;grid-template-areas:"main main next" "main main note" "bottom bottom bottom"}}.progress-bar[data-v-d0ba6bbb]{position:fixed;left:0;right:0;top:0}.grid-section[data-v-d0ba6bbb]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .grid-section[data-v-d0ba6bbb]{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.grid-section.top[data-v-d0ba6bbb]{grid-area:top}.grid-section.main[data-v-d0ba6bbb]{grid-area:main}.grid-section.next[data-v-d0ba6bbb]{grid-area:next}.grid-section.note[data-v-d0ba6bbb]{grid-area:note}.grid-section.bottom[data-v-d0ba6bbb]{grid-area:bottom}
.slidev-info-dialog{max-width:37.5rem;padding:1rem!important}
import{b9 as at,aT as lt,aU as ot,ap as ct,aq as ht,as as ut,ar as yt,aV as ft,au as pt,at as et,ay as it,ba as gt,b8 as dt,bb as mt,az as _t,bc as J}from"./index-Hfn5l4aw.js";import{d as tt}from"./arc-01f1c7b4-EdqqRiec.js";import{o as xt}from"./ordinal-475e0c0c-Beet9Qdq.js";import{a as bt}from"./array-b7dcf730-Nw74a44z.js";import{c as z}from"./path-39bad7e2-aUcfwwLI.js";import"./init-cc95ec8e-Hi12RPRh.js";function kt(e,u){return u<e?-1:u>e?1:u>=e?0:NaN}function vt(e){return e}function St(){var e=vt,u=kt,A=null,p=z(0),g=z(J),E=z(0);function y(a){var l,d=(a=bt(a)).length,m,I,T=0,_=new Array(d),k=new Array(d),c=+p.apply(this,arguments),$=Math.min(J,Math.max(-J,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs($)/d,E.apply(this,arguments)),v=w*($<0?-1:1),t;for(l=0;l<d;++l)(t=k[_[l]=l]=+e(a[l],l,a))>0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(k[i],k[n])}):A!=null&&_.sort(function(i,n){return A(a[i],a[n])}),l=0,I=T?($-d*v)/T:0;l<d;++l,c=O)m=_[l],t=k[m],O=c+(t>0?t*I:0)+v,k[m]={data:a[m],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return k}return y.value=function(a){return arguments.length?(e=typeof a=="function"?a:z(+a),y):e},y.sortValues=function(a){return arguments.length?(u=a,A=null,y):u},y.sort=function(a){return arguments.length?(A=a,u=null,y):A},y.startAngle=function(a){return arguments.length?(p=typeof a=="function"?a:z(+a),y):p},y.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:z(+a),y):g},y.padAngle=function(a){return arguments.length?(E=typeof a=="function"?a:z(+a),y):E},y}var K=function(){var e=function(v,t,i,n){for(i=i||{},n=v.length;n--;i[v[n]]=t);return i},u=[1,3],A=[1,4],p=[1,5],g=[1,6],E=[1,10,12,14,16,18,19,20,21,22],y=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],d=[2,7],m=[1,12],I=[1,13],T=[1,14],_=[1,15],k=[1,16],c=[1,17],$={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,V){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:A,21:p,22:g},{1:[3]},{3:7,4:2,5:u,20:A,21:p,22:g},e(E,y,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,d,{8:10,9:11,1:[2,2],10:m,12:I,14:T,16:_,18:k,19:c}),e(E,y,{6:18}),e(E,[2,5]),{4:19,20:A,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,d,{8:10,9:11,1:[2,3],10:m,12:I,14:T,16:_,18:k,19:c}),e(E,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],V=this.table,x="",f=0,P=0,F=2,M=1,B=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(N.yy[Y]=this.yy[Y]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var q=h.yylloc;s.push(q);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var b,L,S,Z,R={},j,D,X,W;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((b===null||typeof b>"u")&&(b=rt()),S=V[L]&&V[L][b]),typeof S>"u"||!S.length||!S[0]){var H="";W=[];for(j in V[L])this.terminals_[j]&&j>F&&W.push("'"+this.terminals_[j]+"'");h.showPosition?H="Parse error on line "+(f+1)+`:
import{V as at,C as lt,D as ot,s as ct,g as ht,b as ut,a as yt,E as ft,d as pt,c as et,l as it,W as gt,U as dt,X as mt,i as _t,Y as H}from"./slidev/Mermaid-sWhOKcCj.js";import{d as tt}from"./arc-5aa99581-BSv9xTON.js";import{o as xt}from"./ordinal-475e0c0c-BmOJQ37o.js";import{a as kt}from"./array-b7dcf730-BKyUJesY.js";import{c as F}from"./path-39bad7e2-CbwjOpE9.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./init-cc95ec8e-Gi6I4Gst.js";function vt(e,u){return u<e?-1:u>e?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=vt,E=null,p=F(0),g=F(H),A=F(0);function y(a){var l,d=(a=kt(a)).length,m,I,T=0,_=new Array(d),v=new Array(d),c=+p.apply(this,arguments),$=Math.min(H,Math.max(-H,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs($)/d,A.apply(this,arguments)),b=w*($<0?-1:1),t;for(l=0;l<d;++l)(t=v[_[l]=l]=+e(a[l],l,a))>0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(v[i],v[n])}):E!=null&&_.sort(function(i,n){return E(a[i],a[n])}),l=0,I=T?($-d*b)/T:0;l<d;++l,c=O)m=_[l],t=v[m],O=c+(t>0?t*I:0)+b,v[m]={data:a[m],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return v}return y.value=function(a){return arguments.length?(e=typeof a=="function"?a:F(+a),y):e},y.sortValues=function(a){return arguments.length?(u=a,E=null,y):u},y.sort=function(a){return arguments.length?(E=a,u=null,y):E},y.startAngle=function(a){return arguments.length?(p=typeof a=="function"?a:F(+a),y):p},y.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:F(+a),y):g},y.padAngle=function(a){return arguments.length?(A=typeof a=="function"?a:F(+a),y):A},y}var J=function(){var e=function(b,t,i,n){for(i=i||{},n=b.length;n--;i[b[n]]=t);return i},u=[1,3],E=[1,4],p=[1,5],g=[1,6],A=[1,10,12,14,16,18,19,20,21,22],y=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],d=[2,7],m=[1,12],I=[1,13],T=[1,14],_=[1,15],v=[1,16],c=[1,17],$={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,V){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:E,21:p,22:g},{1:[3]},{3:7,4:2,5:u,20:E,21:p,22:g},e(A,y,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,d,{8:10,9:11,1:[2,2],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,y,{6:18}),e(A,[2,5]),{4:19,20:E,21:p,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,d,{8:10,9:11,1:[2,3],10:m,12:I,14:T,16:_,18:v,19:c}),e(A,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],V=this.table,x="",f=0,P=0,R=2,M=1,Y=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(N.yy[B]=this.yy[B]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var X=h.yylloc;s.push(X);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var k,L,S,Z,z={},W,D,Q,j;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),S=V[L]&&V[L][k]),typeof S>"u"||!S.length||!S[0]){var q="";j=[];for(W in V[L])this.terminals_[W]&&W>R&&j.push("'"+this.terminals_[W]+"'");h.showPosition?q="Parse error on line "+(f+1)+`:
Expecting `+W.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(f+1)+": Unexpected "+(b==M?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:h.match,token:this.terminals_[b]||b,line:h.yylineno,loc:q,expected:W})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+b);switch(S[0]){case 1:n.push(b),o.push(h.yytext),s.push(h.yylloc),n.push(S[1]),b=null,P=h.yyleng,x=h.yytext,f=h.yylineno,q=h.yylloc;break;case 2:if(D=this.productions_[S[1]][1],R.$=o[o.length-D],R._$={first_line:s[s.length-(D||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(D||1)].first_column,last_column:s[s.length-1].last_column},st&&(R._$.range=[s[s.length-(D||1)].range[0],s[s.length-1].range[1]]),Z=this.performAction.apply(R,[x,P,f,N.yy,S[1],o,s].concat(B)),typeof Z<"u")return Z;D&&(n=n.slice(0,-1*D*2),o=o.slice(0,-1*D),s=s.slice(0,-1*D)),n.push(this.productions_[S[1]][0]),o.push(R.$),s.push(R._$),X=V[n[n.length-2]][n[n.length-1]],n.push(X);break;case 3:return!0}}return!0}},O=function(){var v={EOF:1,parseError:function(i,n){if(this.yy.parser)this.yy.parser.parseError(i,n);else throw new Error(i)},setInput:function(t,i){return this.yy=i||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var i=t.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var i=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
Expecting `+j.join(", ")+", got '"+(this.terminals_[k]||k)+"'":q="Parse error on line "+(f+1)+": Unexpected "+(k==M?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(q,{text:h.match,token:this.terminals_[k]||k,line:h.yylineno,loc:X,expected:j})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+k);switch(S[0]){case 1:n.push(k),o.push(h.yytext),s.push(h.yylloc),n.push(S[1]),k=null,P=h.yyleng,x=h.yytext,f=h.yylineno,X=h.yylloc;break;case 2:if(D=this.productions_[S[1]][1],z.$=o[o.length-D],z._$={first_line:s[s.length-(D||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(D||1)].first_column,last_column:s[s.length-1].last_column},st&&(z._$.range=[s[s.length-(D||1)].range[0],s[s.length-1].range[1]]),Z=this.performAction.apply(z,[x,P,f,N.yy,S[1],o,s].concat(Y)),typeof Z<"u")return Z;D&&(n=n.slice(0,-1*D*2),o=o.slice(0,-1*D),s=s.slice(0,-1*D)),n.push(this.productions_[S[1]][0]),o.push(z.$),s.push(z._$),Q=V[n[n.length-2]][n[n.length-1]],n.push(Q);break;case 3:return!0}}return!0}},O=function(){var b={EOF:1,parseError:function(i,n){if(this.yy.parser)this.yy.parser.parseError(i,n);else throw new Error(i)},setInput:function(t,i){return this.yy=i||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var i=t.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var i=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return i||this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},pushState:function(i){this.begin(i)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(i,n,r,o){switch(r){case 0:break;case 1:break;case 2:return 20;case 3:break;case 4:break;case 5:return this.begin("title"),12;case 6:return this.popState(),"title_value";case 7:return this.begin("acc_title"),14;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),16;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"txt";case 17:return 5;case 18:return 7;case 19:return"value";case 20:return 22}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[6],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,7,9,11,14,17,18,19,20],inclusive:!0}}};return v}();$.lexer=O;function w(){this.yy={}}return w.prototype=$,$.Parser=w,new w}();K.parser=K;const At=K,nt=at.pie,G={sections:{},showData:!1,config:nt};let U=G.sections,Q=G.showData;const Et=structuredClone(nt),$t=()=>structuredClone(Et),wt=()=>{U=structuredClone(G.sections),Q=G.showData,ft()},Tt=(e,u)=>{e=pt(e,et()),U[e]===void 0&&(U[e]=u,it.debug(`added new section: ${e}, with value: ${u}`))},It=()=>U,Dt=e=>(e.substring(0,1)===":"&&(e=e.substring(1).trim()),Number(e.trim())),Ct=e=>{Q=e},Ot=()=>Q,Vt={getConfig:$t,clear:wt,setDiagramTitle:lt,getDiagramTitle:ot,setAccTitle:ct,getAccTitle:ht,setAccDescription:ut,getAccDescription:yt,addSection:Tt,getSections:It,cleanupValue:Dt,setShowData:Ct,getShowData:Ot},Pt=e=>`
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return i||this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},pushState:function(i){this.begin(i)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(i,n,r,o){switch(r){case 0:break;case 1:break;case 2:return 20;case 3:break;case 4:break;case 5:return this.begin("title"),12;case 6:return this.popState(),"title_value";case 7:return this.begin("acc_title"),14;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),16;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"txt";case 17:return 5;case 18:return 7;case 19:return"value";case 20:return 22}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[6],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,7,9,11,14,17,18,19,20],inclusive:!0}}};return b}();$.lexer=O;function w(){this.yy={}}return w.prototype=$,$.Parser=w,new w}();J.parser=J;const Et=J,nt=at.pie,G={sections:{},showData:!1,config:nt};let U=G.sections,K=G.showData;const At=structuredClone(nt),$t=()=>structuredClone(At),wt=()=>{U=structuredClone(G.sections),K=G.showData,ft()},Tt=(e,u)=>{e=pt(e,et()),U[e]===void 0&&(U[e]=u,it.debug(`added new section: ${e}, with value: ${u}`))},It=()=>U,Dt=e=>(e.substring(0,1)===":"&&(e=e.substring(1).trim()),Number(e.trim())),Ct=e=>{K=e},Ot=()=>K,Vt={getConfig:$t,clear:wt,setDiagramTitle:lt,getDiagramTitle:ot,setAccTitle:ct,getAccTitle:ht,setAccDescription:ut,getAccDescription:yt,addSection:Tt,getSections:It,cleanupValue:Dt,setShowData:Ct,getShowData:Ot},Pt=e=>`
`,Nt=Pt,Lt=e=>{const u=Object.entries(e).map(p=>({label:p[0],value:p[1]})).sort((p,g)=>g.value-p.value);return St().value(p=>p.value)(u)},zt=(e,u,A,p)=>{it.debug(`rendering pie chart
`+e);const g=p.db,E=et(),y=gt(g.getConfig(),E.pie),a=40,l=18,d=4,m=450,I=m,T=dt(u),_=T.append("g"),k=g.getSections();_.attr("transform","translate("+I/2+","+m/2+")");const{themeVariables:c}=E;let[$]=mt(c.pieOuterStrokeWidth);$??($=2);const O=y.textPosition,w=Math.min(I,m)/2-a,v=tt().innerRadius(0).outerRadius(w),t=tt().innerRadius(w*O).outerRadius(w*O);_.append("circle").attr("cx",0).attr("cy",0).attr("r",w+$/2).attr("class","pieOuterCircle");const i=Lt(k),n=[c.pie1,c.pie2,c.pie3,c.pie4,c.pie5,c.pie6,c.pie7,c.pie8,c.pie9,c.pie10,c.pie11,c.pie12],r=xt(n);_.selectAll("mySlices").data(i).enter().append("path").attr("d",v).attr("fill",f=>r(f.data.label)).attr("class","pieCircle");let o=0;Object.keys(k).forEach(f=>{o+=k[f]}),_.selectAll("mySlices").data(i).enter().append("text").text(f=>(f.data.value/o*100).toFixed(0)+"%").attr("transform",f=>"translate("+t.centroid(f)+")").style("text-anchor","middle").attr("class","slice"),_.append("text").text(g.getDiagramTitle()).attr("x",0).attr("y",-(m-50)/2).attr("class","pieTitleText");const s=_.selectAll(".legend").data(r.domain()).enter().append("g").attr("class","legend").attr("transform",(f,P)=>{const F=l+d,M=F*r.domain().length/2,B=12*l,h=P*F-M;return"translate("+B+","+h+")"});s.append("rect").attr("width",l).attr("height",l).style("fill",r).style("stroke",r),s.data(i).append("text").attr("x",l+d).attr("y",l-d).text(f=>{const{label:P,value:F}=f.data;return g.getShowData()?`${P} [${F}]`:P});const V=Math.max(...s.selectAll("text").nodes().map(f=>(f==null?void 0:f.getBoundingClientRect().width)??0)),x=I+a+l+d+V;T.attr("viewBox",`0 0 ${x} ${m}`),_t(T,m,x,y.useMaxWidth)},Ft={draw:zt},Bt={parser:At,db:Vt,renderer:Ft,styles:Nt};export{Bt as diagram};
`,Nt=Pt,Lt=e=>{const u=Object.entries(e).map(p=>({label:p[0],value:p[1]})).sort((p,g)=>g.value-p.value);return St().value(p=>p.value)(u)},Ft=(e,u,E,p)=>{it.debug(`rendering pie chart
`+e);const g=p.db,A=et(),y=gt(g.getConfig(),A.pie),a=40,l=18,d=4,m=450,I=m,T=dt(u),_=T.append("g"),v=g.getSections();_.attr("transform","translate("+I/2+","+m/2+")");const{themeVariables:c}=A;let[$]=mt(c.pieOuterStrokeWidth);$??($=2);const O=y.textPosition,w=Math.min(I,m)/2-a,b=tt().innerRadius(0).outerRadius(w),t=tt().innerRadius(w*O).outerRadius(w*O);_.append("circle").attr("cx",0).attr("cy",0).attr("r",w+$/2).attr("class","pieOuterCircle");const i=Lt(v),n=[c.pie1,c.pie2,c.pie3,c.pie4,c.pie5,c.pie6,c.pie7,c.pie8,c.pie9,c.pie10,c.pie11,c.pie12],r=xt(n);_.selectAll("mySlices").data(i).enter().append("path").attr("d",b).attr("fill",f=>r(f.data.label)).attr("class","pieCircle");let o=0;Object.keys(v).forEach(f=>{o+=v[f]}),_.selectAll("mySlices").data(i).enter().append("text").text(f=>(f.data.value/o*100).toFixed(0)+"%").attr("transform",f=>"translate("+t.centroid(f)+")").style("text-anchor","middle").attr("class","slice"),_.append("text").text(g.getDiagramTitle()).attr("x",0).attr("y",-(m-50)/2).attr("class","pieTitleText");const s=_.selectAll(".legend").data(r.domain()).enter().append("g").attr("class","legend").attr("transform",(f,P)=>{const R=l+d,M=R*r.domain().length/2,Y=12*l,h=P*R-M;return"translate("+Y+","+h+")"});s.append("rect").attr("width",l).attr("height",l).style("fill",r).style("stroke",r),s.data(i).append("text").attr("x",l+d).attr("y",l-d).text(f=>{const{label:P,value:R}=f.data;return g.getShowData()?`${P} [${R}]`:P});const V=Math.max(...s.selectAll("text").nodes().map(f=>(f==null?void 0:f.getBoundingClientRect().width)??0)),x=I+a+l+d+V;T.attr("viewBox",`0 0 ${x} ${m}`),_t(T,m,x,y.useMaxWidth)},Rt={draw:Ft},qt={parser:Et,db:Vt,renderer:Rt,styles:Nt};export{qt as diagram};
import{i as a}from"./init-cc95ec8e-Hi12RPRh.js";class o extends Map{constructor(t,n=g){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,s]of t)this.set(r,s)}get(t){return super.get(c(this,t))}has(t){return super.has(c(this,t))}set(t,n){return super.set(l(this,t),n)}delete(t){return super.delete(p(this,t))}}function c({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function l({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function p({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function g(e){return e!==null&&typeof e=="object"?e.valueOf():e}const f=Symbol("implicit");function h(){var e=new o,t=[],n=[],r=f;function s(i){let u=e.get(i);if(u===void 0){if(r!==f)return r;e.set(i,u=t.push(i)-1)}return n[u%n.length]}return s.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new o;for(const u of i)e.has(u)||e.set(u,t.push(u)-1);return s},s.range=function(i){return arguments.length?(n=Array.from(i),s):n.slice()},s.unknown=function(i){return arguments.length?(r=i,s):r},s.copy=function(){return h(t,n).unknown(r)},a.apply(s,arguments),s}export{h as o};
import{i as a}from"./init-cc95ec8e-Gi6I4Gst.js";class o extends Map{constructor(t,n=g){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,s]of t)this.set(r,s)}get(t){return super.get(c(this,t))}has(t){return super.has(c(this,t))}set(t,n){return super.set(l(this,t),n)}delete(t){return super.delete(p(this,t))}}function c({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function l({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function p({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function g(e){return e!==null&&typeof e=="object"?e.valueOf():e}const f=Symbol("implicit");function h(){var e=new o,t=[],n=[],r=f;function s(i){let u=e.get(i);if(u===void 0){if(r!==f)return r;e.set(i,u=t.push(i)-1)}return n[u%n.length]}return s.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new o;for(const u of i)e.has(u)||e.set(u,t.push(u)-1);return s},s.range=function(i){return arguments.length?(n=Array.from(i),s):n.slice()},s.unknown=function(i){return arguments.length?(r=i,s):r},s.copy=function(){return h(t,n).unknown(r)},a.apply(s,arguments),s}export{h as o};
/**
* @vue/shared v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Ue(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const me=Object.freeze({}),ms=Object.freeze([]),Me=()=>{},fr=()=>!1,nn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Sr=e=>e.startsWith("onUpdate:"),ce=Object.assign,Kl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},fm=Object.prototype.hasOwnProperty,de=(e,t)=>fm.call(e,t),H=Array.isArray,Jn=e=>Ls(e)==="[object Map]",as=e=>Ls(e)==="[object Set]",hc=e=>Ls(e)==="[object Date]",dm=e=>Ls(e)==="[object RegExp]",Q=e=>typeof e=="function",ee=e=>typeof e=="string",kt=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",Yr=e=>(he(e)||Q(e))&&Q(e.then)&&Q(e.catch),uf=Object.prototype.toString,Ls=e=>uf.call(e),ql=e=>Ls(e).slice(8,-1),ff=e=>Ls(e)==="[object Object]",Wl=e=>ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Cn=Ue(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),df=Ue("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Jr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},pm=/-(\w)/g,Ie=Jr(e=>e.replace(pm,(t,n)=>n?n.toUpperCase():"")),hm=/\B([A-Z])/g,Xe=Jr(e=>e.replace(hm,"-$1").toLowerCase()),Ut=Jr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Dt=Jr(e=>e?`on${Ut(e)}`:""),Pt=(e,t)=>!Object.is(e,t),_n=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},wr=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},fi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Er=e=>{const t=ee(e)?Number(e):NaN;return isNaN(t)?e:t};let mc;const zl=()=>mc||(mc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),jt={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},mm={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},gm="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",ym=Ue(gm),gc=2;function vm(e,t=0,n=e.length){let s=e.split(/(\r?\n)/);const i=s.filter((l,a)=>a%2===1);s=s.filter((l,a)=>a%2===0);let r=0;const o=[];for(let l=0;l<s.length;l++)if(r+=s[l].length+(i[l]&&i[l].length||0),r>=t){for(let a=l-gc;a<=l+gc||n>r;a++){if(a<0||a>=s.length)continue;const c=a+1;o.push(`${c}${" ".repeat(Math.max(3-String(c).length,0))}| ${s[a]}`);const f=s[a].length,u=i[a]&&i[a].length||0;if(a===l){const d=t-(r-(f+u)),p=Math.max(1,n>r?f-d:n-t);o.push(" | "+" ".repeat(d)+"^".repeat(p))}else if(a>l){if(n>r){const d=Math.max(Math.min(n-r,f),1);o.push(" | "+"^".repeat(d))}r+=f+u}}break}return o.join(`
`)}function Ds(e){if(H(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=ee(s)?pf(s):Ds(s);if(i)for(const r in i)t[r]=i[r]}return t}else if(ee(e)||he(e))return e}const bm=/;(?![^(]*\))/g,_m=/:([^]+)/,Sm=/\/\*[^]*?\*\//g;function pf(e){const t={};return e.replace(Sm,"").split(bm).forEach(n=>{if(n){const s=n.split(_m);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function wm(e){let t="";if(!e||ee(e))return t;for(const n in e){const s=e[n],i=n.startsWith("--")?n:Xe(n);(ee(s)||typeof s=="number")&&(t+=`${i}:${s};`)}return t}function Vs(e){let t="";if(ee(e))t=e;else if(H(e))for(let n=0;n<e.length;n++){const s=Vs(e[n]);s&&(t+=s+" ")}else if(he(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Em(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ee(t)&&(e.class=Vs(t)),n&&(e.style=Ds(n)),e}const Cm="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Tm="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",xm="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",Om="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",Gl=Ue(Cm),hf=Ue(Tm),mf=Ue(xm),Am=Ue(Om),gf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Rm=Ue(gf),yc=Ue(gf+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function Yl(e){return!!e||e===""}const Im=Ue("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Nm=Ue("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function km(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}function Pm(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Nn(e[s],t[s]);return n}function Nn(e,t){if(e===t)return!0;let n=hc(e),s=hc(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=kt(e),s=kt(t),n||s)return e===t;if(n=H(e),s=H(t),n||s)return n&&s?Pm(e,t):!1;if(n=he(e),s=he(t),n||s){if(!n||!s)return!1;const i=Object.keys(e).length,r=Object.keys(t).length;if(i!==r)return!1;for(const o in e){const l=e.hasOwnProperty(o),a=t.hasOwnProperty(o);if(l&&!a||!l&&a||!Nn(e[o],t[o]))return!1}}return String(e)===String(t)}function Xr(e,t){return e.findIndex(n=>Nn(n,t))}const Mm=e=>ee(e)?e:e==null?"":H(e)||he(e)&&(e.toString===uf||!Q(e.toString))?JSON.stringify(e,yf,2):String(e),yf=(e,t)=>t&&t.__v_isRef?yf(e,t.value):Jn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],r)=>(n[Eo(s,r)+" =>"]=i,n),{})}:as(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Eo(n))}:kt(t)?Eo(t):he(t)&&!H(t)&&!ff(t)?String(t):t,Eo=(e,t="")=>{var n;return kt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Kt(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let pt;class Jl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=pt,!t&&pt&&(this.index=(pt.scopes||(pt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=pt;try{return pt=this,t()}finally{pt=n}}else Kt("cannot run an inactive effect scope.")}on(){pt=this}off(){pt=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function vf(e){return new Jl(e)}function bf(e,t=pt){t&&t.active&&t.effects.push(e)}function Xl(){return pt}function _f(e){pt?pt.cleanups.push(e):Kt("onScopeDispose() is called when there is no active effect scope to be associated with.")}let Xn;class Cs{constructor(t,n,s,i){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,bf(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,$n();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&($m(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Fn()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Tn,n=Xn;try{return Tn=!0,Xn=this,this._runnings++,vc(this),this.fn()}finally{bc(this),this._runnings--,Xn=n,Tn=t}}stop(){var t;this.active&&(vc(this),bc(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function $m(e){return e.value}function vc(e){e._trackId++,e._depsLength=0}function bc(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Sf(e.deps[t],e);e.deps.length=e._depsLength}}function Sf(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}function Fm(e,t){e.effect instanceof Cs&&(e=e.effect.fn);const n=new Cs(e,Me,()=>{n.dirty&&n.run()});t&&(ce(n,t),t.scope&&bf(n,t.scope)),(!t||!t.lazy)&&n.run();const s=n.run.bind(n);return s.effect=n,s}function Lm(e){e.effect.stop()}let Tn=!0,Go=0;const wf=[];function $n(){wf.push(Tn),Tn=!1}function Fn(){const e=wf.pop();Tn=e===void 0?!0:e}function Ql(){Go++}function Zl(){for(Go--;!Go&&Yo.length;)Yo.shift()()}function Ef(e,t,n){var s;if(t.get(e)!==e._trackId){t.set(e,e._trackId);const i=e.deps[e._depsLength];i!==t?(i&&Sf(i,e),e.deps[e._depsLength++]=t):e._depsLength++,(s=e.onTrack)==null||s.call(e,ce({effect:e},n))}}const Yo=[];function Cf(e,t,n){var s;Ql();for(const i of e.keys()){let r;i._dirtyLevel<t&&(r??(r=e.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(r??(r=e.get(i)===i._trackId))&&((s=i.onTrigger)==null||s.call(i,ce({effect:i},n)),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&Yo.push(i.scheduler)))}Zl()}const Tf=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Cr=new WeakMap,Qn=Symbol("iterate"),Jo=Symbol("Map key iterate");function tt(e,t,n){if(Tn&&Xn){let s=Cr.get(e);s||Cr.set(e,s=new Map);let i=s.get(n);i||s.set(n,i=Tf(()=>s.delete(n))),Ef(Xn,i,{target:e,type:t,key:n})}}function Bt(e,t,n,s,i,r){const o=Cr.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(n==="length"&&H(e)){const a=Number(s);o.forEach((c,f)=>{(f==="length"||!kt(f)&&f>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(o.get(n)),t){case"add":H(e)?Wl(n)&&l.push(o.get("length")):(l.push(o.get(Qn)),Jn(e)&&l.push(o.get(Jo)));break;case"delete":H(e)||(l.push(o.get(Qn)),Jn(e)&&l.push(o.get(Jo)));break;case"set":Jn(e)&&l.push(o.get(Qn));break}Ql();for(const a of l)a&&Cf(a,4,{target:e,type:t,key:n,newValue:s,oldValue:i,oldTarget:r});Zl()}function Dm(e,t){var n;return(n=Cr.get(e))==null?void 0:n.get(t)}const Vm=Ue("__proto__,__v_isRef,__isVue"),xf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kt)),_c=jm();function jm(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=se(this);for(let r=0,o=this.length;r<o;r++)tt(s,"get",r+"");const i=s[t](...n);return i===-1||i===!1?s[t](...n.map(se)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){$n(),Ql();const s=se(this)[t].apply(this,n);return Zl(),Fn(),s}}),e}function Bm(e){const t=se(this);return tt(t,"has",e),t.hasOwnProperty(e)}class Of{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const i=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(i?r?Mf:Pf:r?kf:Nf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=H(t);if(!i){if(o&&de(_c,n))return Reflect.get(_c,n,s);if(n==="hasOwnProperty")return Bm}const l=Reflect.get(t,n,s);return(kt(n)?xf.has(n):Vm(n))||(i||tt(t,"get",n),r)?l:Te(l)?o&&Wl(n)?l:l.value:he(l)?i?Rt(l):it(l):l}}class Af extends Of{constructor(t=!1){super(!1,t)}set(t,n,s,i){let r=t[n];if(!this._isShallow){const a=sn(r);if(!On(s)&&!sn(s)&&(r=se(r),s=se(s)),!H(t)&&Te(r)&&!Te(s))return a?!1:(r.value=s,!0)}const o=H(t)&&Wl(n)?Number(n)<t.length:de(t,n),l=Reflect.set(t,n,s,i);return t===se(i)&&(o?Pt(s,r)&&Bt(t,"set",n,s,r):Bt(t,"add",n,s)),l}deleteProperty(t,n){const s=de(t,n),i=t[n],r=Reflect.deleteProperty(t,n);return r&&s&&Bt(t,"delete",n,void 0,i),r}has(t,n){const s=Reflect.has(t,n);return(!kt(n)||!xf.has(n))&&tt(t,"has",n),s}ownKeys(t){return tt(t,"iterate",H(t)?"length":Qn),Reflect.ownKeys(t)}}class Rf extends Of{constructor(t=!1){super(!0,t)}set(t,n){return Kt(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return Kt(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const Hm=new Af,Um=new Rf,Km=new Af(!0),qm=new Rf(!0),ea=e=>e,Qr=e=>Reflect.getPrototypeOf(e);function zi(e,t,n=!1,s=!1){e=e.__v_raw;const i=se(e),r=se(t);n||(Pt(t,r)&&tt(i,"get",t),tt(i,"get",r));const{has:o}=Qr(i),l=s?ea:n?sa:pi;if(o.call(i,t))return l(e.get(t));if(o.call(i,r))return l(e.get(r));e!==i&&e.get(t)}function Gi(e,t=!1){const n=this.__v_raw,s=se(n),i=se(e);return t||(Pt(e,i)&&tt(s,"has",e),tt(s,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Yi(e,t=!1){return e=e.__v_raw,!t&&tt(se(e),"iterate",Qn),Reflect.get(e,"size",e)}function Sc(e){e=se(e);const t=se(this);return Qr(t).has.call(t,e)||(t.add(e),Bt(t,"add",e,e)),this}function wc(e,t){t=se(t);const n=se(this),{has:s,get:i}=Qr(n);let r=s.call(n,e);r?If(n,s,e):(e=se(e),r=s.call(n,e));const o=i.call(n,e);return n.set(e,t),r?Pt(t,o)&&Bt(n,"set",e,t,o):Bt(n,"add",e,t),this}function Ec(e){const t=se(this),{has:n,get:s}=Qr(t);let i=n.call(t,e);i?If(t,n,e):(e=se(e),i=n.call(t,e));const r=s?s.call(t,e):void 0,o=t.delete(e);return i&&Bt(t,"delete",e,void 0,r),o}function Cc(){const e=se(this),t=e.size!==0,n=Jn(e)?new Map(e):new Set(e),s=e.clear();return t&&Bt(e,"clear",void 0,void 0,n),s}function Ji(e,t){return function(s,i){const r=this,o=r.__v_raw,l=se(o),a=t?ea:e?sa:pi;return!e&&tt(l,"iterate",Qn),o.forEach((c,f)=>s.call(i,a(c),a(f),r))}}function Xi(e,t,n){return function(...s){const i=this.__v_raw,r=se(i),o=Jn(r),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,c=i[e](...s),f=n?ea:t?sa:pi;return!t&&tt(r,"iterate",a?Jo:Qn),{next(){const{value:u,done:d}=c.next();return d?{value:u,done:d}:{value:l?[f(u[0]),f(u[1])]:f(u),done:d}},[Symbol.iterator](){return this}}}}function cn(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";Kt(`${Ut(e)} operation ${n}failed: target is readonly.`,se(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Wm(){const e={get(r){return zi(this,r)},get size(){return Yi(this)},has:Gi,add:Sc,set:wc,delete:Ec,clear:Cc,forEach:Ji(!1,!1)},t={get(r){return zi(this,r,!1,!0)},get size(){return Yi(this)},has:Gi,add:Sc,set:wc,delete:Ec,clear:Cc,forEach:Ji(!1,!0)},n={get(r){return zi(this,r,!0)},get size(){return Yi(this,!0)},has(r){return Gi.call(this,r,!0)},add:cn("add"),set:cn("set"),delete:cn("delete"),clear:cn("clear"),forEach:Ji(!0,!1)},s={get(r){return zi(this,r,!0,!0)},get size(){return Yi(this,!0)},has(r){return Gi.call(this,r,!0)},add:cn("add"),set:cn("set"),delete:cn("delete"),clear:cn("clear"),forEach:Ji(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Xi(r,!1,!1),n[r]=Xi(r,!0,!1),t[r]=Xi(r,!1,!0),s[r]=Xi(r,!0,!0)}),[e,n,t,s]}const[zm,Gm,Ym,Jm]=Wm();function Zr(e,t){const n=t?e?Jm:Ym:e?Gm:zm;return(s,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(de(n,i)&&i in s?n:s,i,r)}const Xm={get:Zr(!1,!1)},Qm={get:Zr(!1,!0)},Zm={get:Zr(!0,!1)},eg={get:Zr(!0,!0)};function If(e,t,n){const s=se(n);if(s!==n&&t.call(e,s)){const i=ql(e);Kt(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Nf=new WeakMap,kf=new WeakMap,Pf=new WeakMap,Mf=new WeakMap;function tg(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ng(e){return e.__v_skip||!Object.isExtensible(e)?0:tg(ql(e))}function it(e){return sn(e)?e:eo(e,!1,Hm,Xm,Nf)}function ta(e){return eo(e,!1,Km,Qm,kf)}function Rt(e){return eo(e,!0,Um,Zm,Pf)}function qn(e){return eo(e,!0,qm,eg,Mf)}function eo(e,t,n,s,i){if(!he(e))return Kt(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const o=ng(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return i.set(e,l),l}function xn(e){return sn(e)?xn(e.__v_raw):!!(e&&e.__v_isReactive)}function sn(e){return!!(e&&e.__v_isReadonly)}function On(e){return!!(e&&e.__v_isShallow)}function di(e){return xn(e)||sn(e)}function se(e){const t=e&&e.__v_raw;return t?se(t):e}function na(e){return Object.isExtensible(e)&&wr(e,"__v_skip",!0),e}const pi=e=>he(e)?it(e):e,sa=e=>he(e)?Rt(e):e,sg="Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";class $f{constructor(t,n,s,i){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Cs(()=>t(this._value),()=>gs(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const t=se(this);return(!t._cacheable||t.effect.dirty)&&Pt(t._value,t._value=t.effect.run())&&gs(t,4),ia(t),t.effect._dirtyLevel>=2&&(this._warnRecursive&&Kt(sg,`
getter: `,this.getter),gs(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ig(e,t,n=!1){let s,i;const r=Q(e);r?(s=e,i=()=>{Kt("Write operation failed: computed value is readonly")}):(s=e.get,i=e.set);const o=new $f(s,i,r||!i,n);return t&&!n&&(o.effect.onTrack=t.onTrack,o.effect.onTrigger=t.onTrigger),o}function ia(e){var t;Tn&&Xn&&(e=se(e),Ef(Xn,(t=e.dep)!=null?t:e.dep=Tf(()=>e.dep=void 0,e instanceof $f?e:void 0),{target:e,type:"get",key:"value"}))}function gs(e,t=4,n){e=se(e);const s=e.dep;s&&Cf(s,t,{target:e,type:"set",key:"value",newValue:n})}function Te(e){return!!(e&&e.__v_isRef===!0)}function ne(e){return Ff(e,!1)}function ra(e){return Ff(e,!0)}function Ff(e,t){return Te(e)?e:new rg(e,t)}class rg{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:se(t),this._value=n?t:pi(t)}get value(){return ia(this),this._value}set value(t){const n=this.__v_isShallow||On(t)||sn(t);t=n?t:se(t),Pt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:pi(t),gs(this,4,t))}}function og(e){gs(e,4,e.value)}function Ze(e){return Te(e)?e.value:e}function lg(e){return Q(e)?e():Ze(e)}const ag={get:(e,t,n)=>Ze(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return Te(i)&&!Te(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function oa(e){return xn(e)?e:new Proxy(e,ag)}class cg{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>ia(this),()=>gs(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function to(e){return new cg(e)}function Lf(e){di(e)||Kt("toRefs() expects a reactive object but received a plain one.");const t=H(e)?new Array(e.length):{};for(const n in e)t[n]=Vf(e,n);return t}class ug{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Dm(se(this._object),this._key)}}class fg{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Df(e,t,n){return Te(e)?e:Q(e)?new fg(e):he(e)&&arguments.length>1?Vf(e,t,n):ne(e)}function Vf(e,t,n){const s=e[t];return Te(s)?s:new ug(e,t,n)}const dg={GET:"get",HAS:"has",ITERATE:"iterate"},pg={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/**
* @vue/runtime-core v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Zn=[];function Qs(e){Zn.push(e)}function Zs(){Zn.pop()}function M(e,...t){$n();const n=Zn.length?Zn[Zn.length-1].component:null,s=n&&n.appContext.config.warnHandler,i=hg();if(s)Ht(s,n,11,[e+t.map(r=>{var o,l;return(l=(o=r.toString)==null?void 0:o.call(r))!=null?l:JSON.stringify(r)}).join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${po(n,r.type)}>`).join(`
`),i]);else{const r=[`[Vue warn]: ${e}`,...t];i.length&&r.push(`
`,...mg(i)),console.warn(...r)}Fn()}function hg(){let e=Zn[Zn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function mg(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
`],...gg(n))}),t}function gg({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,i=` at <${po(e.component,e.type,s)}`,r=">"+n;return e.props?[i,...yg(e.props),r]:[i+r]}function yg(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...jf(s,e[s]))}),n.length>3&&t.push(" ..."),t}function jf(e,t,n){return ee(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Te(t)?(t=jf(e,se(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Q(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=se(t),n?t:[`${e}=`,t])}function la(e,t){e!==void 0&&(typeof e!="number"?M(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&M(`${t} is NaN - the duration expression might be incorrect.`))}const vg={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},no={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function Ht(e,t,n,s){try{return s?e(...s):e()}catch(i){Ln(i,t,n)}}function mt(e,t,n,s){if(Q(e)){const r=Ht(e,t,n,s);return r&&Yr(r)&&r.catch(o=>{Ln(o,t,n)}),r}const i=[];for(let r=0;r<e.length;r++)i.push(mt(e[r],t,n,s));return i}function Ln(e,t,n,s=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,l=no[n];for(;r;){const c=r.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,o,l)===!1)return}r=r.parent}const a=t.appContext.config.errorHandler;if(a){Ht(a,null,10,[e,o,l]);return}}bg(e,n,i,s)}function bg(e,t,n,s=!0){{const i=no[t];if(n&&Qs(n),M(`Unhandled error${i?` during execution of ${i}`:""}`),n&&Zs(),s)throw e;console.error(e)}}let hi=!1,Xo=!1;const Qe=[];let Vt=0;const ys=[];let Qt=null,hn=0;const Bf=Promise.resolve();let aa=null;const _g=100;function Dn(e){const t=aa||Bf;return e?t.then(this?e.bind(this):e):t}function Sg(e){let t=Vt+1,n=Qe.length;for(;t<n;){const s=t+n>>>1,i=Qe[s],r=gi(i);r<e||r===e&&i.pre?t=s+1:n=s}return t}function Ni(e){(!Qe.length||!Qe.includes(e,hi&&e.allowRecurse?Vt+1:Vt))&&(e.id==null?Qe.push(e):Qe.splice(Sg(e.id),0,e),Hf())}function Hf(){!hi&&!Xo&&(Xo=!0,aa=Bf.then(Uf))}function wg(e){const t=Qe.indexOf(e);t>Vt&&Qe.splice(t,1)}function mi(e){H(e)?ys.push(...e):(!Qt||!Qt.includes(e,e.allowRecurse?hn+1:hn))&&ys.push(e),Hf()}function Tc(e,t,n=hi?Vt+1:0){for(t=t||new Map;n<Qe.length;n++){const s=Qe[n];if(s&&s.pre){if(e&&s.id!==e.uid||ca(t,s))continue;Qe.splice(n,1),n--,s()}}}function Tr(e){if(ys.length){const t=[...new Set(ys)].sort((n,s)=>gi(n)-gi(s));if(ys.length=0,Qt){Qt.push(...t);return}for(Qt=t,e=e||new Map,hn=0;hn<Qt.length;hn++)ca(e,Qt[hn])||Qt[hn]();Qt=null,hn=0}}const gi=e=>e.id==null?1/0:e.id,Eg=(e,t)=>{const n=gi(e)-gi(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Uf(e){Xo=!1,hi=!0,e=e||new Map,Qe.sort(Eg);const t=n=>ca(e,n);try{for(Vt=0;Vt<Qe.length;Vt++){const n=Qe[Vt];if(n&&n.active!==!1){if(t(n))continue;Ht(n,null,14)}}}finally{Vt=0,Qe.length=0,Tr(e),hi=!1,aa=null,(Qe.length||ys.length)&&Uf(e)}}function ca(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>_g){const s=t.ownerInstance,i=s&&_i(s.type);return Ln(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,n+1)}}let An=!1;const hs=new Set;zl().__VUE_HMR_RUNTIME__={createRecord:Co(Kf),rerender:Co(xg),reload:Co(Og)};const ss=new Map;function Cg(e){const t=e.type.__hmrId;let n=ss.get(t);n||(Kf(t,e.type),n=ss.get(t)),n.instances.add(e)}function Tg(e){ss.get(e.type.__hmrId).instances.delete(e)}function Kf(e,t){return ss.has(e)?!1:(ss.set(e,{initialDef:ei(t),instances:new Set}),!0)}function ei(e){return Kd(e)?e.__vccOpts:e}function xg(e,t){const n=ss.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(s=>{t&&(s.render=t,ei(s.type).render=t),s.renderCache=[],An=!0,s.effect.dirty=!0,s.update(),An=!1}))}function Og(e,t){const n=ss.get(e);if(!n)return;t=ei(t),xc(n.initialDef,t);const s=[...n.instances];for(const i of s){const r=ei(i.type);hs.has(r)||(r!==n.initialDef&&xc(r,t),hs.add(r)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(hs.add(r),i.ceReload(t.styles),hs.delete(r)):i.parent?(i.parent.effect.dirty=!0,Ni(i.parent.update)):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}mi(()=>{for(const i of s)hs.delete(ei(i.type))})}function xc(e,t){ce(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Co(e){return(t,n)=>{try{return e(t,n)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Ot,Ys=[],Qo=!1;function ki(e,...t){Ot?Ot.emit(e,...t):Qo||Ys.push({event:e,args:t})}function ua(e,t){var n,s;Ot=e,Ot?(Ot.enabled=!0,Ys.forEach(({event:i,args:r})=>Ot.emit(i,...r)),Ys=[]):typeof window<"u"&&window.HTMLElement&&!((s=(n=window.navigator)==null?void 0:n.userAgent)!=null&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{ua(r,t)}),setTimeout(()=>{Ot||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Qo=!0,Ys=[])},3e3)):(Qo=!0,Ys=[])}function Ag(e,t){ki("app:init",e,t,{Fragment:De,Text:kn,Comment:$e,Static:Rn})}function Rg(e){ki("app:unmount",e)}const Zo=fa("component:added"),qf=fa("component:updated"),Ig=fa("component:removed"),Ng=e=>{Ot&&typeof Ot.cleanupBuffer=="function"&&!Ot.cleanupBuffer(e)&&Ig(e)};function fa(e){return t=>{ki(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const kg=Wf("perf:start"),Pg=Wf("perf:end");function Wf(e){return(t,n,s)=>{ki(e,t.appContext.app,t.uid,t,n,s)}}function Mg(e,t,n){ki("component:emit",e.appContext.app,e,t,n)}function $g(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||me;{const{emitsOptions:f,propsOptions:[u]}=e;if(f)if(!(t in f))(!u||!(Dt(t)in u))&&M(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Dt(t)}" prop.`);else{const d=f[t];Q(d)&&(d(...n)||M(`Invalid event arguments: event validation failed for event "${t}".`))}}let i=n;const r=t.startsWith("update:"),o=r&&t.slice(7);if(o&&o in s){const f=`${o==="modelValue"?"model":o}Modifiers`,{number:u,trim:d}=s[f]||me;d&&(i=n.map(p=>ee(p)?p.trim():p)),u&&(i=n.map(fi))}Mg(e,t,i);{const f=t.toLowerCase();f!==t&&s[Dt(f)]&&M(`Event "${f}" is emitted in component ${po(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Xe(t)}" instead of "${t}".`)}let l,a=s[l=Dt(t)]||s[l=Dt(Ie(t))];!a&&r&&(a=s[l=Dt(Xe(t))]),a&&mt(a,e,6,i);const c=s[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,mt(c,e,6,i)}}function zf(e,t,n=!1){const s=t.emitsCache,i=s.get(e);if(i!==void 0)return i;const r=e.emits;let o={},l=!1;if(!Q(e)){const a=c=>{const f=zf(c,t,!0);f&&(l=!0,ce(o,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(he(e)&&s.set(e,null),null):(H(r)?r.forEach(a=>o[a]=null):ce(o,r),he(e)&&s.set(e,o),o)}function so(e,t){return!e||!nn(t)?!1:(t=t.slice(2).replace(/Once$/,""),de(e,t[0].toLowerCase()+t.slice(1))||de(e,Xe(t))||de(e,t))}let Re=null,io=null;function yi(e){const t=Re;return Re=e,io=e&&e.type.__scopeId||null,t}function Fg(e){io=e}function Lg(){io=null}const Dg=e=>da;function da(e,t=Re,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&al(-1);const r=yi(t);let o;try{o=e(...i)}finally{yi(r),s._d&&al(1)}return qf(t),o};return s._n=!0,s._c=!0,s._d=!0,s}let el=!1;function xr(){el=!0}function dr(e){const{type:t,vnode:n,proxy:s,withProxy:i,props:r,propsOptions:[o],slots:l,attrs:a,emit:c,render:f,renderCache:u,data:d,setupState:p,ctx:m,inheritAttrs:w}=e;let E,y;const _=yi(e);el=!1;try{if(n.shapeFlag&4){const S=i||s,A=p.__isScriptSetup?new Proxy(S,{get(C,T,O){return M(`Property '${String(T)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(C,T,O)}}):S;E=ut(f.call(A,S,u,r,p,d,m)),y=a}else{const S=t;a===r&&xr(),E=ut(S.length>1?S(r,{get attrs(){return xr(),a},slots:l,emit:c}):S(r,null)),y=t.props?a:Vg(a)}}catch(S){ni.length=0,Ln(S,e,1),E=xe($e)}let g=E,b;if(E.patchFlag>0&&E.patchFlag&2048&&([g,b]=Gf(E)),y&&w!==!1){const S=Object.keys(y),{shapeFlag:A}=g;if(S.length){if(A&7)o&&S.some(Sr)&&(y=jg(y,o)),g=Tt(g,y);else if(!el&&g.type!==$e){const C=Object.keys(a),T=[],O=[];for(let x=0,N=C.length;x<N;x++){const I=C[x];nn(I)?Sr(I)||T.push(I[2].toLowerCase()+I.slice(3)):O.push(I)}O.length&&M(`Extraneous non-props attributes (${O.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),T.length&&M(`Extraneous non-emits event listeners (${T.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&(Oc(g)||M("Runtime directive used on component with non-element root node. The directives will not function as intended."),g=Tt(g),g.dirs=g.dirs?g.dirs.concat(n.dirs):n.dirs),n.transition&&(Oc(g)||M("Component inside <Transition> renders non-element root node that cannot be animated."),g.transition=n.transition),b?b(g):E=g,yi(_),E}const Gf=e=>{const t=e.children,n=e.dynamicChildren,s=ro(t,!1);if(s){if(s.patchFlag>0&&s.patchFlag&2048)return Gf(s)}else return[e,void 0];const i=t.indexOf(s),r=n?n.indexOf(s):-1,o=l=>{t[i]=l,n&&(r>-1?n[r]=l:l.patchFlag>0&&(e.dynamicChildren=[...n,l]))};return[ut(s),o]};function ro(e,t=!0){let n;for(let s=0;s<e.length;s++){const i=e[s];if(rn(i)){if(i.type!==$e||i.children==="v-if"){if(n)return;if(n=i,t&&n.patchFlag>0&&n.patchFlag&2048)return ro(n.children)}}else return}return n}const Vg=e=>{let t;for(const n in e)(n==="class"||n==="style"||nn(n))&&((t||(t={}))[n]=e[n]);return t},jg=(e,t)=>{const n={};for(const s in e)(!Sr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n},Oc=e=>e.shapeFlag&7||e.type===$e;function Bg(e,t,n){const{props:s,children:i,component:r}=e,{props:o,children:l,patchFlag:a}=t,c=r.emitsOptions;if((i||l)&&An||t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Ac(s,o,c):!!o;if(a&8){const f=t.dynamicProps;for(let u=0;u<f.length;u++){const d=f[u];if(o[d]!==s[d]&&!so(c,d))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?Ac(s,o,c):!0:!!o;return!1}function Ac(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let i=0;i<s.length;i++){const r=s[i];if(t[r]!==e[r]&&!so(n,r))return!0}return!1}function pa({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Or="components",Hg="directives";function Yf(e,t){return ma(Or,e,!0,t)||e}const ha=Symbol.for("v-ndc");function Ug(e){return ee(e)?ma(Or,e,!1)||e:e||ha}function Kg(e){return ma(Hg,e)}function ma(e,t,n=!0,s=!1){const i=Re||Pe;if(i){const r=i.type;if(e===Or){const l=_i(r,!1);if(l&&(l===t||l===Ie(t)||l===Ut(Ie(t))))return r}const o=Rc(i[e]||r[e],t)||Rc(i.appContext[e],t);if(!o&&s)return r;if(n&&!o){const l=e===Or?`
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";M(`Failed to resolve ${e.slice(0,-1)}: ${t}${l}`)}return o}else M(`resolve${Ut(e.slice(0,-1))} can only be used in render() or setup().`)}function Rc(e,t){return e&&(e[t]||e[Ie(t)]||e[Ut(Ie(t))])}const Jf=e=>e.__isSuspense;let tl=0;const qg={name:"Suspense",__isSuspense:!0,process(e,t,n,s,i,r,o,l,a,c){if(e==null)zg(t,n,s,i,r,o,l,a,c);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Gg(e,t,n,s,i,o,l,a,c)}},hydrate:Yg,create:ga,normalize:Jg},Wg=qg;function vi(e,t){const n=e.props&&e.props[t];Q(n)&&n()}function zg(e,t,n,s,i,r,o,l,a){const{p:c,o:{createElement:f}}=a,u=f("div"),d=e.suspense=ga(e,i,s,t,u,n,r,o,l,a);c(null,d.pendingBranch=e.ssContent,u,null,s,d,r,o),d.deps>0?(vi(e,"onPending"),vi(e,"onFallback"),c(null,e.ssFallback,t,n,s,null,r,o),vs(d,e.ssFallback)):d.resolve(!1,!0)}function Gg(e,t,n,s,i,r,o,l,{p:a,um:c,o:{createElement:f}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:w,isInFallback:E,isHydrating:y}=u;if(w)u.pendingBranch=d,At(d,w)?(a(w,d,u.hiddenContainer,null,i,u,r,o,l),u.deps<=0?u.resolve():E&&(y||(a(m,p,n,s,i,null,r,o,l),vs(u,p)))):(u.pendingId=tl++,y?(u.isHydrating=!1,u.activeBranch=w):c(w,i,u),u.deps=0,u.effects.length=0,u.hiddenContainer=f("div"),E?(a(null,d,u.hiddenContainer,null,i,u,r,o,l),u.deps<=0?u.resolve():(a(m,p,n,s,i,null,r,o,l),vs(u,p))):m&&At(d,m)?(a(m,d,n,s,i,u,r,o,l),u.resolve(!0)):(a(null,d,u.hiddenContainer,null,i,u,r,o,l),u.deps<=0&&u.resolve()));else if(m&&At(d,m))a(m,d,n,s,i,u,r,o,l),vs(u,d);else if(vi(t,"onPending"),u.pendingBranch=d,d.shapeFlag&512?u.pendingId=d.component.suspenseId:u.pendingId=tl++,a(null,d,u.hiddenContainer,null,i,u,r,o,l),u.deps<=0)u.resolve();else{const{timeout:_,pendingId:g}=u;_>0?setTimeout(()=>{u.pendingId===g&&u.fallback(p)},_):_===0&&u.fallback(p)}}let Ic=!1;function ga(e,t,n,s,i,r,o,l,a,c,f=!1){Ic||(Ic=!0,console[console.info?"info":"log"]("<Suspense> is an experimental feature and its API will likely change."));const{p:u,m:d,um:p,n:m,o:{parentNode:w,remove:E}}=c;let y;const _=Xg(e);_&&t!=null&&t.pendingBranch&&(y=t.pendingId,t.deps++);const g=e.props?Er(e.props.timeout):void 0;la(g,"Suspense timeout");const b=r,S={vnode:e,parent:t,parentComponent:n,namespace:o,container:s,hiddenContainer:i,deps:0,pendingId:tl++,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(A=!1,C=!1){{if(!A&&!S.pendingBranch)throw new Error("suspense.resolve() is called without a pending branch.");if(S.isUnmounted)throw new Error("suspense.resolve() is called on an already unmounted suspense boundary.")}const{vnode:T,activeBranch:O,pendingBranch:x,pendingId:N,effects:I,parentComponent:j,container:G}=S;let te=!1;S.isHydrating?S.isHydrating=!1:A||(te=O&&x.transition&&x.transition.mode==="out-in",te&&(O.transition.afterLeave=()=>{N===S.pendingId&&(d(x,G,r===b?m(O):r,0),mi(I))}),O&&(w(O.el)!==S.hiddenContainer&&(r=m(O)),p(O,j,S,!0)),te||d(x,G,r,0)),vs(S,x),S.pendingBranch=null,S.isInFallback=!1;let z=S.parent,J=!1;for(;z;){if(z.pendingBranch){z.effects.push(...I),J=!0;break}z=z.parent}!J&&!te&&mi(I),S.effects=[],_&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!C&&t.resolve()),vi(T,"onResolve")},fallback(A){if(!S.pendingBranch)return;const{vnode:C,activeBranch:T,parentComponent:O,container:x,namespace:N}=S;vi(C,"onFallback");const I=m(T),j=()=>{S.isInFallback&&(u(null,A,x,I,O,null,N,l,a),vs(S,A))},G=A.transition&&A.transition.mode==="out-in";G&&(T.transition.afterLeave=j),S.isInFallback=!0,p(T,O,null,!0),G||j()},move(A,C,T){S.activeBranch&&d(S.activeBranch,A,C,T),S.container=A},next(){return S.activeBranch&&m(S.activeBranch)},registerDep(A,C){const T=!!S.pendingBranch;T&&S.deps++;const O=A.vnode.el;A.asyncDep.catch(x=>{Ln(x,A,0)}).then(x=>{if(A.isUnmounted||S.isUnmounted||S.pendingId!==A.suspenseId)return;A.asyncResolved=!0;const{vnode:N}=A;Qs(N),pl(A,x,!1),O&&(N.el=O);const I=!O&&A.subTree.el;C(A,N,w(O||A.subTree.el),O?null:m(A.subTree),S,o,a),I&&E(I),pa(A,N.el),Zs(),T&&--S.deps===0&&S.resolve()})},unmount(A,C){S.isUnmounted=!0,S.activeBranch&&p(S.activeBranch,n,A,C),S.pendingBranch&&p(S.pendingBranch,n,A,C)}};return S}function Yg(e,t,n,s,i,r,o,l,a){const c=t.suspense=ga(t,s,n,e.parentNode,document.createElement("div"),null,i,r,o,l,!0),f=a(e,c.pendingBranch=t.ssContent,n,c,r,o);return c.deps===0&&c.resolve(!1,!0),f}function Jg(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=Nc(s?n.default:n),e.ssFallback=s?Nc(n.fallback):xe($e)}function Nc(e){let t;if(Q(e)){const n=rs&&e._c;n&&(e._d=!1,co()),e=e(),n&&(e._d=!0,t=ft,kd())}if(H(e)){const n=ro(e);!n&&e.filter(s=>s!==ha).length>0&&M("<Suspense> slots expect a single root node."),e=n}return e=ut(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Xf(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):mi(e)}function vs(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,s&&s.subTree===n&&(s.vnode.el=i,pa(s,i))}function Xg(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const Qf=Symbol.for("v-scx"),Zf=()=>{{const e=Et(Qf);return e||M("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function ya(e,t){return Pi(e,null,t)}function ed(e,t){return Pi(e,null,ce({},t,{flush:"post"}))}function td(e,t){return Pi(e,null,ce({},t,{flush:"sync"}))}const Qi={};function Ee(e,t,n){return Q(t)||M("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Pi(e,t,n)}function Pi(e,t,{immediate:n,deep:s,flush:i,once:r,onTrack:o,onTrigger:l}=me){if(t&&r){const C=t;t=(...T)=>{C(...T),A()}}s!==void 0&&typeof s=="number"&&M('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),t||(n!==void 0&&M('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&M('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&M('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const a=C=>{M("Invalid watch source: ",C,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=Pe,f=C=>s===!0?C:Wn(C,s===!1?1:void 0);let u,d=!1,p=!1;if(Te(e)?(u=()=>e.value,d=On(e)):xn(e)?(u=()=>f(e),d=!0):H(e)?(p=!0,d=e.some(C=>xn(C)||On(C)),u=()=>e.map(C=>{if(Te(C))return C.value;if(xn(C))return f(C);if(Q(C))return Ht(C,c,2);a(C)})):Q(e)?t?u=()=>Ht(e,c,2):u=()=>(m&&m(),mt(e,c,3,[w])):(u=Me,a(e)),t&&s){const C=u;u=()=>Wn(C())}let m,w=C=>{m=b.onStop=()=>{Ht(C,c,4),m=b.onStop=void 0}},E;if(Fi)if(w=Me,t?n&&mt(t,c,3,[u(),p?[]:void 0,w]):u(),i==="sync"){const C=Zf();E=C.__watcherHandles||(C.__watcherHandles=[])}else return Me;let y=p?new Array(e.length).fill(Qi):Qi;const _=()=>{if(!(!b.active||!b.dirty))if(t){const C=b.run();(s||d||(p?C.some((T,O)=>Pt(T,y[O])):Pt(C,y)))&&(m&&m(),mt(t,c,3,[C,y===Qi?void 0:p&&y[0]===Qi?[]:y,w]),y=C)}else b.run()};_.allowRecurse=!!t;let g;i==="sync"?g=_:i==="post"?g=()=>We(_,c&&c.suspense):(_.pre=!0,c&&(_.id=c.uid),g=()=>Ni(_));const b=new Cs(u,Me,g),S=Xl(),A=()=>{b.stop(),S&&Kl(S.effects,b)};return b.onTrack=o,b.onTrigger=l,t?n?_():y=b.run():i==="post"?We(b.run.bind(b),c&&c.suspense):b.run(),E&&E.push(A),A}function Qg(e,t,n){const s=this.proxy,i=ee(e)?e.includes(".")?nd(s,e):()=>s[e]:e.bind(s,s);let r;Q(t)?r=t:(r=t.handler,n=t);const o=os(this),l=Pi(i,r.bind(s),n);return o(),l}function nd(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}function Wn(e,t,n=0,s){if(!he(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),Te(e))Wn(e.value,t,n,s);else if(H(e))for(let i=0;i<e.length;i++)Wn(e[i],t,n,s);else if(as(e)||Jn(e))e.forEach(i=>{Wn(i,t,n,s)});else if(ff(e))for(const i in e)Wn(e[i],t,n,s);return e}function sd(e){df(e)&&M("Do not use built-in directive ids as custom directive id: "+e)}function Zg(e,t){if(Re===null)return M("withDirectives can only be used inside render functions."),e;const n=fo(Re)||Re.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,l,a=me]=t[i];r&&(Q(r)&&(r={mounted:r,updated:r}),r.deep&&Wn(o),s.push({dir:r,instance:n,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function Lt(e,t,n,s){const i=e.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const l=i[o];r&&(l.oldValue=r[o].value);let a=l.dir[s];a&&($n(),mt(a,n,8,[e.el,l,e,t]),Fn())}}const mn=Symbol("_leaveCb"),Zi=Symbol("_enterCb");function va(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return cs(()=>{e.isMounted=!0}),ao(()=>{e.isUnmounting=!0}),e}const bt=[Function,Array],ba={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:bt,onEnter:bt,onAfterEnter:bt,onEnterCancelled:bt,onBeforeLeave:bt,onLeave:bt,onAfterLeave:bt,onLeaveCancelled:bt,onBeforeAppear:bt,onAppear:bt,onAfterAppear:bt,onAppearCancelled:bt},ey={name:"BaseTransition",props:ba,setup(e,{slots:t}){const n=Ge(),s=va();return()=>{const i=t.default&&oo(t.default(),!0);if(!i||!i.length)return;let r=i[0];if(i.length>1){let d=!1;for(const p of i)if(p.type!==$e){if(d){M("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}r=p,d=!0}}const o=se(e),{mode:l}=o;if(l&&l!=="in-out"&&l!=="out-in"&&l!=="default"&&M(`invalid <transition> mode: ${l}`),s.isLeaving)return To(r);const a=kc(r);if(!a)return To(r);const c=Ts(a,o,s,n);is(a,c);const f=n.subTree,u=f&&kc(f);if(u&&u.type!==$e&&!At(a,u)){const d=Ts(u,o,s,n);if(is(u,d),l==="out-in")return s.isLeaving=!0,d.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},To(r);l==="in-out"&&a.type!==$e&&(d.delayLeave=(p,m,w)=>{const E=rd(s,u);E[String(u.key)]=u,p[mn]=()=>{m(),p[mn]=void 0,delete c.delayedLeave},c.delayedLeave=w})}return r}}},id=ey;function rd(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Ts(e,t,n,s){const{appear:i,mode:r,persisted:o=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:u,onLeave:d,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:w,onAppear:E,onAfterAppear:y,onAppearCancelled:_}=t,g=String(e.key),b=rd(n,e),S=(T,O)=>{T&&mt(T,s,9,O)},A=(T,O)=>{const x=O[1];S(T,O),H(T)?T.every(N=>N.length<=1)&&x():T.length<=1&&x()},C={mode:r,persisted:o,beforeEnter(T){let O=l;if(!n.isMounted)if(i)O=w||l;else return;T[mn]&&T[mn](!0);const x=b[g];x&&At(e,x)&&x.el[mn]&&x.el[mn](),S(O,[T])},enter(T){let O=a,x=c,N=f;if(!n.isMounted)if(i)O=E||a,x=y||c,N=_||f;else return;let I=!1;const j=T[Zi]=G=>{I||(I=!0,G?S(N,[T]):S(x,[T]),C.delayedLeave&&C.delayedLeave(),T[Zi]=void 0)};O?A(O,[T,j]):j()},leave(T,O){const x=String(e.key);if(T[Zi]&&T[Zi](!0),n.isUnmounting)return O();S(u,[T]);let N=!1;const I=T[mn]=j=>{N||(N=!0,O(),j?S(m,[T]):S(p,[T]),T[mn]=void 0,b[x]===e&&delete b[x])};b[x]=e,d?A(d,[T,I]):I()},clone(T){return Ts(T,t,n,s)}};return C}function To(e){if(Bs(e))return e=Tt(e),e.children=null,e}function kc(e){return Bs(e)?e.component?e.component.subTree:e.children?e.children[0]:void 0:e}function is(e,t){e.shapeFlag&6&&e.component?is(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function oo(e,t=!1,n){let s=[],i=0;for(let r=0;r<e.length;r++){let o=e[r];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:r);o.type===De?(o.patchFlag&128&&i++,s=s.concat(oo(o.children,t,l))):(t||o.type!==$e)&&s.push(l!=null?Tt(o,{key:l}):o)}if(i>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function js(e,t){return Q(e)?ce({name:e.name},t,{setup:e}):e}const es=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function ty(e){Q(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:i=200,timeout:r,suspensible:o=!0,onError:l}=e;let a=null,c,f=0;const u=()=>(f++,a=null,d()),d=()=>{let p;return a||(p=a=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((w,E)=>{l(m,()=>w(u()),()=>E(m),f+1)});throw m}).then(m=>{if(p!==a&&a)return a;if(m||M("Async component loader resolved to undefined. If you are using retry(), make sure to return its return value."),m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),m&&!he(m)&&!Q(m))throw new Error(`Invalid async component load result: ${m}`);return c=m,m}))};return js({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const p=Pe;if(c)return()=>xo(c,p);const m=_=>{a=null,Ln(_,p,13,!s)};if(o&&p.suspense||Fi)return d().then(_=>()=>xo(_,p)).catch(_=>(m(_),()=>s?xe(s,{error:_}):null));const w=ne(!1),E=ne(),y=ne(!!i);return i&&setTimeout(()=>{y.value=!1},i),r!=null&&setTimeout(()=>{if(!w.value&&!E.value){const _=new Error(`Async component timed out after ${r}ms.`);m(_),E.value=_}},r),d().then(()=>{w.value=!0,p.parent&&Bs(p.parent.vnode)&&(p.parent.effect.dirty=!0,Ni(p.parent.update))}).catch(_=>{m(_),E.value=_}),()=>{if(w.value&&c)return xo(c,p);if(E.value&&s)return xe(s,{error:E.value});if(n&&!y.value)return xe(n)}}})}function xo(e,t){const{ref:n,props:s,children:i,ce:r}=t.vnode,o=xe(e,s,i);return o.ref=n,o.ce=r,delete t.vnode.ce,o}const Bs=e=>e.type.__isKeepAlive,ny={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ge(),s=n.ctx;if(!s.renderer)return()=>{const _=t.default&&t.default();return _&&_.length===1?_[0]:_};const i=new Map,r=new Set;let o=null;n.__v_cache=i;const l=n.suspense,{renderer:{p:a,m:c,um:f,o:{createElement:u}}}=s,d=u("div");s.activate=(_,g,b,S,A)=>{const C=_.component;c(_,g,b,0,l),a(C.vnode,_,g,b,C,l,S,_.slotScopeIds,A),We(()=>{C.isDeactivated=!1,C.a&&_n(C.a);const T=_.props&&_.props.onVnodeMounted;T&&at(T,C.parent,_)},l),Zo(C)},s.deactivate=_=>{const g=_.component;c(_,d,null,1,l),We(()=>{g.da&&_n(g.da);const b=_.props&&_.props.onVnodeUnmounted;b&&at(b,g.parent,_),g.isDeactivated=!0},l),Zo(g)};function p(_){Oo(_),f(_,n,l,!0)}function m(_){i.forEach((g,b)=>{const S=_i(g.type);S&&(!_||!_(S))&&w(b)})}function w(_){const g=i.get(_);!o||!At(g,o)?p(g):o&&Oo(o),i.delete(_),r.delete(_)}Ee(()=>[e.include,e.exclude],([_,g])=>{_&&m(b=>Js(_,b)),g&&m(b=>!Js(g,b))},{flush:"post",deep:!0});let E=null;const y=()=>{E!=null&&i.set(E,Ao(n.subTree))};return cs(y),Mi(y),ao(()=>{i.forEach(_=>{const{subTree:g,suspense:b}=n,S=Ao(g);if(_.type===S.type&&_.key===S.key){Oo(S);const A=S.component.da;A&&We(A,b);return}p(_)})}),()=>{if(E=null,!t.default)return null;const _=t.default(),g=_[0];if(_.length>1)return M("KeepAlive should contain exactly one component child."),o=null,_;if(!rn(g)||!(g.shapeFlag&4)&&!(g.shapeFlag&128))return o=null,g;let b=Ao(g);const S=b.type,A=_i(es(b)?b.type.__asyncResolved||{}:S),{include:C,exclude:T,max:O}=e;if(C&&(!A||!Js(C,A))||T&&A&&Js(T,A))return o=b,g;const x=b.key==null?S:b.key,N=i.get(x);return b.el&&(b=Tt(b),g.shapeFlag&128&&(g.ssContent=b)),E=x,N?(b.el=N.el,b.component=N.component,b.transition&&is(b,b.transition),b.shapeFlag|=512,r.delete(x),r.add(x)):(r.add(x),O&&r.size>parseInt(O,10)&&w(r.values().next().value)),b.shapeFlag|=256,o=b,Jf(g.type)?g:b}}},sy=ny;function Js(e,t){return H(e)?e.some(n=>Js(n,t)):ee(e)?e.split(",").includes(t):dm(e)?e.test(t):!1}function od(e,t){ad(e,"a",t)}function ld(e,t){ad(e,"da",t)}function ad(e,t,n=Pe){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(lo(t,s,n),n){let i=n.parent;for(;i&&i.parent;)Bs(i.parent.vnode)&&iy(s,t,n,i),i=i.parent}}function iy(e,t,n,s){const i=lo(t,e,s,!0);$i(()=>{Kl(s[t],i)},n)}function Oo(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ao(e){return e.shapeFlag&128?e.ssContent:e}function lo(e,t,n=Pe,s=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;$n();const l=os(n),a=mt(t,n,e,o);return l(),Fn(),a});return s?i.unshift(r):i.push(r),r}else{const i=Dt(no[e].replace(/ hook$/,""));M(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const on=e=>(t,n=Pe)=>(!Fi||e==="sp")&&lo(e,(...s)=>t(...s),n),cd=on("bm"),cs=on("m"),ud=on("bu"),Mi=on("u"),ao=on("bum"),$i=on("um"),fd=on("sp"),dd=on("rtg"),pd=on("rtc");function hd(e,t=Pe){lo("ec",e,t)}function ry(e,t,n,s){let i;const r=n&&n[s];if(H(e)||ee(e)){i=new Array(e.length);for(let o=0,l=e.length;o<l;o++)i[o]=t(e[o],o,void 0,r&&r[o])}else if(typeof e=="number"){Number.isInteger(e)||M(`The v-for range expect an integer value but got ${e}.`),i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,r&&r[o])}else if(he(e))if(e[Symbol.iterator])i=Array.from(e,(o,l)=>t(o,l,void 0,r&&r[l]));else{const o=Object.keys(e);i=new Array(o.length);for(let l=0,a=o.length;l<a;l++){const c=o[l];i[l]=t(e[c],c,l,r&&r[l])}}else i=[];return n&&(n[s]=i),i}function oy(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(H(s))for(let i=0;i<s.length;i++)e[s[i].name]=s[i].fn;else s&&(e[s.name]=s.key?(...i)=>{const r=s.fn(...i);return r&&(r.key=s.key),r}:s.fn)}return e}function ly(e,t,n={},s,i){if(Re.isCE||Re.parent&&es(Re.parent)&&Re.parent.isCE)return t!=="default"&&(n.name=t),xe("slot",n,s&&s());let r=e[t];r&&r.length>1&&(M("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),r=()=>[]),r&&r._c&&(r._d=!1),co();const o=r&&md(r(n)),l=Ea(De,{key:n.key||o&&o.key||`_${t}`},o||(s?s():[]),o&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function md(e){return e.some(t=>rn(t)?!(t.type===$e||t.type===De&&!md(t.children)):!0)?e:null}function ay(e,t){const n={};if(!he(e))return M("v-on with no argument expects an object value."),n;for(const s in e)n[t&&/[A-Z]/.test(s)?`on:${s}`:Dt(s)]=e[s];return n}const nl=e=>e?Vd(e)?fo(e)||e.proxy:nl(e.parent):null,ts=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>qn(e.props),$attrs:e=>qn(e.attrs),$slots:e=>qn(e.slots),$refs:e=>qn(e.refs),$parent:e=>nl(e.parent),$root:e=>nl(e.root),$emit:e=>e.emit,$options:e=>Sa(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ni(e.update)}),$nextTick:e=>e.n||(e.n=Dn.bind(e.proxy)),$watch:e=>Qg.bind(e)}),_a=e=>e==="_"||e==="$",Ro=(e,t)=>e!==me&&!e.__isScriptSetup&&de(e,t),ti={get({_:e},t){const{ctx:n,setupState:s,data:i,props:r,accessCache:o,type:l,appContext:a}=e;if(t==="__isVue")return!0;let c;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(Ro(s,t))return o[t]=1,s[t];if(i!==me&&de(i,t))return o[t]=2,i[t];if((c=e.propsOptions[0])&&de(c,t))return o[t]=3,r[t];if(n!==me&&de(n,t))return o[t]=4,n[t];sl&&(o[t]=0)}}const f=ts[t];let u,d;if(f)return t==="$attrs"?(tt(e,"get",t),xr()):t==="$slots"&&tt(e,"get",t),f(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==me&&de(n,t))return o[t]=4,n[t];if(d=a.config.globalProperties,de(d,t))return d[t];Re&&(!ee(t)||t.indexOf("__v")!==0)&&(i!==me&&_a(t[0])&&de(i,t)?M(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===Re&&M(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:s,setupState:i,ctx:r}=e;return Ro(i,t)?(i[t]=n,!0):i.__isScriptSetup&&de(i,t)?(M(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):s!==me&&de(s,t)?(s[t]=n,!0):de(e.props,t)?(M(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(M(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(t in e.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:n}):r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,propsOptions:r}},o){let l;return!!n[o]||e!==me&&de(e,o)||Ro(t,o)||(l=r[0])&&de(l,o)||de(s,o)||de(ts,o)||de(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:de(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};ti.ownKeys=e=>(M("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e));const cy=ce({},ti,{get(e,t){if(t!==Symbol.unscopables)return ti.get(e,t,e)},has(e,t){const n=t[0]!=="_"&&!ym(t);return!n&&ti.has(e,t)&&M(`Property ${JSON.stringify(t)} should not start with _ which is a reserved prefix for Vue internals.`),n}});function uy(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(ts).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>ts[n](e),set:Me})}),t}function fy(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(s=>{Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>e.props[s],set:Me})})}function dy(e){const{ctx:t,setupState:n}=e;Object.keys(se(n)).forEach(s=>{if(!n.__isScriptSetup){if(_a(s[0])){M(`setup() return property ${JSON.stringify(s)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>n[s],set:Me})}})}const us=e=>M(`${e}() is a compiler-hint helper that is only usable inside <script setup> of a single file component. Its arguments should be compiled away and passing it at runtime has no effect.`);function py(){return us("defineProps"),null}function hy(){return us("defineEmits"),null}function my(e){us("defineExpose")}function gy(e){us("defineOptions")}function yy(){return us("defineSlots"),null}function vy(){us("defineModel")}function by(e,t){return us("withDefaults"),null}function gd(){return yd().slots}function _y(){return yd().attrs}function yd(){const e=Ge();return e||M("useContext() called without active instance."),e.setupContext||(e.setupContext=Ud(e))}function bi(e){return H(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Sy(e,t){const n=bi(e);for(const s in t){if(s.startsWith("__skip"))continue;let i=n[s];i?H(i)||Q(i)?i=n[s]={type:i,default:t[s]}:i.default=t[s]:i===null?i=n[s]={default:t[s]}:M(`props default key "${s}" has no corresponding declaration.`),i&&t[`__skip_${s}`]&&(i.skipFactory=!0)}return n}function wy(e,t){return!e||!t?e||t:H(e)&&H(t)?e.concat(t):ce({},bi(e),bi(t))}function Ey(e,t){const n={};for(const s in e)t.includes(s)||Object.defineProperty(n,s,{enumerable:!0,get:()=>e[s]});return n}function Cy(e){const t=Ge();t||M("withAsyncContext called without active current instance. This is likely a bug.");let n=e();return fl(),Yr(n)&&(n=n.catch(s=>{throw os(t),s})),[n,()=>os(t)]}function Ty(){const e=Object.create(null);return(t,n)=>{e[n]?M(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let sl=!0;function xy(e){const t=Sa(e),n=e.proxy,s=e.ctx;sl=!1,t.beforeCreate&&Pc(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:o,watch:l,provide:a,inject:c,created:f,beforeMount:u,mounted:d,beforeUpdate:p,updated:m,activated:w,deactivated:E,beforeDestroy:y,beforeUnmount:_,destroyed:g,unmounted:b,render:S,renderTracked:A,renderTriggered:C,errorCaptured:T,serverPrefetch:O,expose:x,inheritAttrs:N,components:I,directives:j,filters:G}=t,te=Ty();{const[J]=e.propsOptions;if(J)for(const W in J)te("Props",W)}if(c&&Oy(c,s,te),o)for(const J in o){const W=o[J];Q(W)?(Object.defineProperty(s,J,{value:W.bind(n),configurable:!0,enumerable:!0,writable:!0}),te("Methods",J)):M(`Method "${J}" has type "${typeof W}" in the component definition. Did you reference the function correctly?`)}if(i){Q(i)||M("The data option must be a function. Plain object usage is no longer supported.");const J=i.call(n,n);if(Yr(J)&&M("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!he(J))M("data() should return an object.");else{e.data=it(J);for(const W in J)te("Data",W),_a(W[0])||Object.defineProperty(s,W,{configurable:!0,enumerable:!0,get:()=>J[W],set:Me})}}if(sl=!0,r)for(const J in r){const W=r[J],Fe=Q(W)?W.bind(n,n):Q(W.get)?W.get.bind(n,n):Me;Fe===Me&&M(`Computed property "${J}" has no getter.`);const Ye=!Q(W)&&Q(W.set)?W.set.bind(n):()=>{M(`Write operation failed: computed property "${J}" is readonly.`)},rt=ae({get:Fe,set:Ye});Object.defineProperty(s,J,{enumerable:!0,configurable:!0,get:()=>rt.value,set:Mt=>rt.value=Mt}),te("Computed",J)}if(l)for(const J in l)vd(l[J],s,n,J);if(a){const J=Q(a)?a.call(n):a;Reflect.ownKeys(J).forEach(W=>{_s(W,J[W])})}f&&Pc(f,e,"c");function z(J,W){H(W)?W.forEach(Fe=>J(Fe.bind(n))):W&&J(W.bind(n))}if(z(cd,u),z(cs,d),z(ud,p),z(Mi,m),z(od,w),z(ld,E),z(hd,T),z(pd,A),z(dd,C),z(ao,_),z($i,b),z(fd,O),H(x))if(x.length){const J=e.exposed||(e.exposed={});x.forEach(W=>{Object.defineProperty(J,W,{get:()=>n[W],set:Fe=>n[W]=Fe})})}else e.exposed||(e.exposed={});S&&e.render===Me&&(e.render=S),N!=null&&(e.inheritAttrs=N),I&&(e.components=I),j&&(e.directives=j)}function Oy(e,t,n=Me){H(e)&&(e=il(e));for(const s in e){const i=e[s];let r;he(i)?"default"in i?r=Et(i.from||s,i.default,!0):r=Et(i.from||s):r=Et(i),Te(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[s]=r,n("Inject",s)}}function Pc(e,t,n){mt(H(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function vd(e,t,n,s){const i=s.includes(".")?nd(n,s):()=>n[s];if(ee(e)){const r=t[e];Q(r)?Ee(i,r):M(`Invalid watch handler specified by key "${e}"`,r)}else if(Q(e))Ee(i,e.bind(n));else if(he(e))if(H(e))e.forEach(r=>vd(r,t,n,s));else{const r=Q(e.handler)?e.handler.bind(n):t[e.handler];Q(r)?Ee(i,r,e):M(`Invalid watch handler specified by key "${e.handler}"`,r)}else M(`Invalid watch option: "${s}"`,e)}function Sa(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,l=r.get(t);let a;return l?a=l:!i.length&&!n&&!s?a=t:(a={},i.length&&i.forEach(c=>Ar(a,c,o,!0)),Ar(a,t,o)),he(t)&&r.set(t,a),a}function Ar(e,t,n,s=!1){const{mixins:i,extends:r}=t;r&&Ar(e,r,n,!0),i&&i.forEach(o=>Ar(e,o,n,!0));for(const o in t)if(s&&o==="expose")M('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=Ay[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Ay={data:Mc,props:$c,emits:$c,methods:Xs,computed:Xs,beforeCreate:st,created:st,beforeMount:st,mounted:st,beforeUpdate:st,updated:st,beforeDestroy:st,beforeUnmount:st,destroyed:st,unmounted:st,activated:st,deactivated:st,errorCaptured:st,serverPrefetch:st,components:Xs,directives:Xs,watch:Iy,provide:Mc,inject:Ry};function Mc(e,t){return t?e?function(){return ce(Q(e)?e.call(this,this):e,Q(t)?t.call(this,this):t)}:t:e}function Ry(e,t){return Xs(il(e),il(t))}function il(e){if(H(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function st(e,t){return e?[...new Set([].concat(e,t))]:t}function Xs(e,t){return e?ce(Object.create(null),e,t):t}function $c(e,t){return e?H(e)&&H(t)?[...new Set([...e,...t])]:ce(Object.create(null),bi(e),bi(t??{})):t}function Iy(e,t){if(!e)return t;if(!t)return e;const n=ce(Object.create(null),e);for(const s in t)n[s]=st(e[s],t[s]);return n}function bd(){return{app:null,config:{isNativeTag:fr,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ny=0;function ky(e,t){return function(s,i=null){Q(s)||(s=ce({},s)),i!=null&&!he(i)&&(M("root props passed to app.mount() must be an object."),i=null);const r=bd(),o=new WeakSet;let l=!1;const a=r.app={_uid:Ny++,_component:s,_props:i,_container:null,_context:r,_instance:null,version:ml,get config(){return r.config},set config(c){M("app.config cannot be replaced. Modify individual options instead.")},use(c,...f){return o.has(c)?M("Plugin has already been applied to target app."):c&&Q(c.install)?(o.add(c),c.install(a,...f)):Q(c)?(o.add(c),c(a,...f)):M('A plugin must either be a function or an object with an "install" function.'),a},mixin(c){return r.mixins.includes(c)?M("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),a},component(c,f){return dl(c,r.config),f?(r.components[c]&&M(`Component "${c}" has already been registered in target app.`),r.components[c]=f,a):r.components[c]},directive(c,f){return sd(c),f?(r.directives[c]&&M(`Directive "${c}" has already been registered in target app.`),r.directives[c]=f,a):r.directives[c]},mount(c,f,u){if(l)M("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{c.__vue_app__&&M("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const d=xe(s,i);return d.appContext=r,u===!0?u="svg":u===!1&&(u=void 0),r.reload=()=>{e(Tt(d),c,u)},f&&t?t(d,c):e(d,c,u),l=!0,a._container=c,c.__vue_app__=a,a._instance=d.component,Ag(a,ml),fo(d.component)||d.component.proxy}},unmount(){l?(e(null,a._container),a._instance=null,Rg(a),delete a._container.__vue_app__):M("Cannot unmount an app that is not mounted.")},provide(c,f){return c in r.provides&&M(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),r.provides[c]=f,a},runWithContext(c){const f=bs;bs=a;try{return c()}finally{bs=f}}};return a}}let bs=null;function _s(e,t){if(!Pe)M("provide() can only be used inside setup().");else{let n=Pe.provides;const s=Pe.parent&&Pe.parent.provides;s===n&&(n=Pe.provides=Object.create(s)),n[e]=t}}function Et(e,t,n=!1){const s=Pe||Re;if(s||bs){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:bs._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Q(t)?t.call(s&&s.proxy):t;M(`injection "${String(e)}" not found.`)}else M("inject() can only be used inside setup() or functional components.")}function Py(){return!!(Pe||Re||bs)}function My(e,t,n,s=!1){const i={},r={};wr(r,uo,1),e.propsDefaults=Object.create(null),_d(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);wd(t||{},i,e),n?e.props=s?i:ta(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function $y(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function Fy(e,t,n,s){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,l=se(i),[a]=e.propsOptions;let c=!1;if(!$y(e)&&(s||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let u=0;u<f.length;u++){let d=f[u];if(so(e.emitsOptions,d))continue;const p=t[d];if(a)if(de(r,d))p!==r[d]&&(r[d]=p,c=!0);else{const m=Ie(d);i[m]=rl(a,l,m,p,e,!1)}else p!==r[d]&&(r[d]=p,c=!0)}}}else{_d(e,t,i,r)&&(c=!0);let f;for(const u in l)(!t||!de(t,u)&&((f=Xe(u))===u||!de(t,f)))&&(a?n&&(n[u]!==void 0||n[f]!==void 0)&&(i[u]=rl(a,l,u,void 0,e,!0)):delete i[u]);if(r!==l)for(const u in r)(!t||!de(t,u))&&(delete r[u],c=!0)}c&&Bt(e,"set","$attrs"),wd(t||{},i,e)}function _d(e,t,n,s){const[i,r]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(Cn(a))continue;const c=t[a];let f;i&&de(i,f=Ie(a))?!r||!r.includes(f)?n[f]=c:(l||(l={}))[f]=c:so(e.emitsOptions,a)||(!(a in s)||c!==s[a])&&(s[a]=c,o=!0)}if(r){const a=se(n),c=l||me;for(let f=0;f<r.length;f++){const u=r[f];n[u]=rl(i,a,u,c[u],e,!de(c,u))}}return o}function rl(e,t,n,s,i,r){const o=e[n];if(o!=null){const l=de(o,"default");if(l&&s===void 0){const a=o.default;if(o.type!==Function&&!o.skipFactory&&Q(a)){const{propsDefaults:c}=i;if(n in c)s=c[n];else{const f=os(i);s=c[n]=a.call(null,t),f()}}else s=a}o[0]&&(r&&!l?s=!1:o[1]&&(s===""||s===Xe(n))&&(s=!0))}return s}function Sd(e,t,n=!1){const s=t.propsCache,i=s.get(e);if(i)return i;const r=e.props,o={},l=[];let a=!1;if(!Q(e)){const f=u=>{a=!0;const[d,p]=Sd(u,t,!0);ce(o,d),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!a)return he(e)&&s.set(e,ms),ms;if(H(r))for(let f=0;f<r.length;f++){ee(r[f])||M("props must be strings when using array syntax.",r[f]);const u=Ie(r[f]);Fc(u)&&(o[u]=me)}else if(r){he(r)||M("invalid props options",r);for(const f in r){const u=Ie(f);if(Fc(u)){const d=r[f],p=o[u]=H(d)||Q(d)?{type:d}:ce({},d);if(p){const m=Dc(Boolean,p.type),w=Dc(String,p.type);p[0]=m>-1,p[1]=w<0||m<w,(m>-1||de(p,"default"))&&l.push(u)}}}}const c=[o,l];return he(e)&&s.set(e,c),c}function Fc(e){return e[0]!=="$"&&!Cn(e)?!0:(M(`Invalid prop name: "${e}" is a reserved property.`),!1)}function ol(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Lc(e,t){return ol(e)===ol(t)}function Dc(e,t){return H(t)?t.findIndex(n=>Lc(n,e)):Q(t)&&Lc(t,e)?0:-1}function wd(e,t,n){const s=se(t),i=n.propsOptions[0];for(const r in i){let o=i[r];o!=null&&Ly(r,s[r],o,qn(s),!de(e,r)&&!de(e,Xe(r)))}}function Ly(e,t,n,s,i){const{type:r,required:o,validator:l,skipCheck:a}=n;if(o&&i){M('Missing required prop: "'+e+'"');return}if(!(t==null&&!o)){if(r!=null&&r!==!0&&!a){let c=!1;const f=H(r)?r:[r],u=[];for(let d=0;d<f.length&&!c;d++){const{valid:p,expectedType:m}=Vy(t,f[d]);u.push(m||""),c=p}if(!c){M(jy(e,t,u));return}}l&&!l(t,s)&&M('Invalid prop: custom validator check failed for prop "'+e+'".')}}const Dy=Ue("String,Number,Boolean,Function,Symbol,BigInt");function Vy(e,t){let n;const s=ol(t);if(Dy(s)){const i=typeof e;n=i===s.toLowerCase(),!n&&i==="object"&&(n=e instanceof t)}else s==="Object"?n=he(e):s==="Array"?n=H(e):s==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:s}}function jy(e,t,n){if(n.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let s=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(Ut).join(" | ")}`;const i=n[0],r=ql(t),o=Vc(t,i),l=Vc(t,r);return n.length===1&&jc(i)&&!By(i,r)&&(s+=` with value ${o}`),s+=`, got ${r} `,jc(r)&&(s+=`with value ${l}.`),s}function Vc(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function jc(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function By(...e){return e.some(t=>t.toLowerCase()==="boolean")}const Ed=e=>e[0]==="_"||e==="$stable",wa=e=>H(e)?e.map(ut):[ut(e)],Hy=(e,t,n)=>{if(t._n)return t;const s=da((...i)=>(Pe&&(!n||n.root===Pe.root)&&M(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),wa(t(...i))),n);return s._c=!1,s},Cd=(e,t,n)=>{const s=e._ctx;for(const i in e){if(Ed(i))continue;const r=e[i];if(Q(r))t[i]=Hy(i,r,s);else if(r!=null){M(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const o=wa(r);t[i]=()=>o}}},Td=(e,t)=>{Bs(e.vnode)||M("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=wa(t);e.slots.default=()=>n},Uy=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=se(t),wr(t,"_",n)):Cd(t,e.slots={})}else e.slots={},t&&Td(e,t);wr(e.slots,uo,1)},Ky=(e,t,n)=>{const{vnode:s,slots:i}=e;let r=!0,o=me;if(s.shapeFlag&32){const l=t._;l?An?(ce(i,t),Bt(e,"set","$slots")):n&&l===1?r=!1:(ce(i,t),!n&&l===1&&delete i._):(r=!t.$stable,Cd(t,i)),o=t}else t&&(Td(e,t),o={default:1});if(r)for(const l in i)!Ed(l)&&o[l]==null&&delete i[l]};function Rr(e,t,n,s,i=!1){if(H(e)){e.forEach((d,p)=>Rr(d,t&&(H(t)?t[p]:t),n,s,i));return}if(es(s)&&!i)return;const r=s.shapeFlag&4?fo(s.component)||s.component.proxy:s.el,o=i?null:r,{i:l,r:a}=e;if(!l){M("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=t&&t.r,f=l.refs===me?l.refs={}:l.refs,u=l.setupState;if(c!=null&&c!==a&&(ee(c)?(f[c]=null,de(u,c)&&(u[c]=null)):Te(c)&&(c.value=null)),Q(a))Ht(a,l,12,[o,f]);else{const d=ee(a),p=Te(a);if(d||p){const m=()=>{if(e.f){const w=d?de(u,a)?u[a]:f[a]:a.value;i?H(w)&&Kl(w,r):H(w)?w.includes(r)||w.push(r):d?(f[a]=[r],de(u,a)&&(u[a]=f[a])):(a.value=[r],e.k&&(f[e.k]=a.value))}else d?(f[a]=o,de(u,a)&&(u[a]=o)):p?(a.value=o,e.k&&(f[e.k]=o)):M("Invalid template ref type:",a,`(${typeof a})`)};o?(m.id=-1,We(m,n)):m()}else M("Invalid template ref type:",a,`(${typeof a})`)}}let Wt=!1;const qy=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Wy=e=>e.namespaceURI.includes("MathML"),er=e=>{if(qy(e))return"svg";if(Wy(e))return"mathml"},Us=e=>e.nodeType===8;function zy(e){const{mt:t,p:n,o:{patchProp:s,createText:i,nextSibling:r,parentNode:o,remove:l,insert:a,createComment:c}}=e,f=(g,b)=>{if(!b.hasChildNodes()){M("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,g,b),Tr(),b._vnode=g;return}Wt=!1,u(b.firstChild,g,null,null,null),Tr(),b._vnode=g,Wt&&console.error("Hydration completed but contains mismatches.")},u=(g,b,S,A,C,T=!1)=>{const O=Us(g)&&g.data==="[",x=()=>w(g,b,S,A,C,O),{type:N,ref:I,shapeFlag:j,patchFlag:G}=b;let te=g.nodeType;b.el=g,"__vnode"in g||Object.defineProperty(g,"__vnode",{value:b,enumerable:!1}),"__vueParentComponent"in g||Object.defineProperty(g,"__vueParentComponent",{value:S,enumerable:!1}),G===-2&&(T=!1,b.dynamicChildren=null);let z=null;switch(N){case kn:te!==3?b.children===""?(a(b.el=i(""),o(g),g),z=g):z=x():(g.data!==b.children&&(Wt=!0,M("Hydration text mismatch in",g.parentNode,`
- rendered on server: ${JSON.stringify(g.data)}
- expected on client: ${JSON.stringify(b.children)}`),g.data=b.children),z=r(g));break;case $e:_(g)?(z=r(g),y(b.el=g.content.firstChild,g,S)):te!==8||O?z=x():z=r(g);break;case Rn:if(O&&(g=r(g),te=g.nodeType),te===1||te===3){z=g;const J=!b.children.length;for(let W=0;W<b.staticCount;W++)J&&(b.children+=z.nodeType===1?z.outerHTML:z.data),W===b.staticCount-1&&(b.anchor=z),z=r(z);return O?r(z):z}else x();break;case De:O?z=m(g,b,S,A,C,T):z=x();break;default:if(j&1)(te!==1||b.type.toLowerCase()!==g.tagName.toLowerCase())&&!_(g)?z=x():z=d(g,b,S,A,C,T);else if(j&6){b.slotScopeIds=C;const J=o(g);if(O?z=E(g):Us(g)&&g.data==="teleport start"?z=E(g,g.data,"teleport end"):z=r(g),t(b,J,null,S,A,er(J),T),es(b)){let W;O?(W=xe(De),W.anchor=z?z.previousSibling:J.lastChild):W=g.nodeType===3?Ta(""):xe("div"),W.el=g,b.component.subTree=W}}else j&64?te!==8?z=x():z=b.type.hydrate(g,b,S,A,C,T,e,p):j&128?z=b.type.hydrate(g,b,S,A,er(o(g)),C,T,e,u):M("Invalid HostVNode type:",N,`(${typeof N})`)}return I!=null&&Rr(I,null,A,b),z},d=(g,b,S,A,C,T)=>{T=T||!!b.dynamicChildren;const{type:O,props:x,patchFlag:N,shapeFlag:I,dirs:j,transition:G}=b,te=O==="input"||O==="option";{j&&Lt(b,null,S,"created");let z=!1;if(_(g)){z=Rd(A,G)&&S&&S.vnode.props&&S.vnode.props.appear;const W=g.content.firstChild;z&&G.beforeEnter(W),y(W,g,S),b.el=g=W}if(I&16&&!(x&&(x.innerHTML||x.textContent))){let W=p(g.firstChild,b,g,S,A,C,T),Fe=!1;for(;W;){Wt=!0,Fe||(M("Hydration children mismatch on",g,`
Server rendered element contains more child nodes than client vdom.`),Fe=!0);const Ye=W;W=W.nextSibling,l(Ye)}}else I&8&&g.textContent!==b.children&&(Wt=!0,M("Hydration text content mismatch on",g,`
- rendered on server: ${g.textContent}
- expected on client: ${b.children}`),g.textContent=b.children);if(x)for(const W in x)Gy(g,W,x[W],b,S)&&(Wt=!0),(te&&(W.endsWith("value")||W==="indeterminate")||nn(W)&&!Cn(W)||W[0]===".")&&s(g,W,null,x[W],void 0,void 0,S);let J;(J=x&&x.onVnodeBeforeMount)&&at(J,S,b),j&&Lt(b,null,S,"beforeMount"),((J=x&&x.onVnodeMounted)||j||z)&&Xf(()=>{J&&at(J,S,b),z&&G.enter(g),j&&Lt(b,null,S,"mounted")},A)}return g.nextSibling},p=(g,b,S,A,C,T,O)=>{O=O||!!b.dynamicChildren;const x=b.children,N=x.length;let I=!1;for(let j=0;j<N;j++){const G=O?x[j]:x[j]=ut(x[j]);if(g)g=u(g,G,A,C,T,O);else{if(G.type===kn&&!G.children)continue;Wt=!0,I||(M("Hydration children mismatch on",S,`
Server rendered element contains fewer child nodes than client vdom.`),I=!0),n(null,G,S,null,A,C,er(S),T)}}return g},m=(g,b,S,A,C,T)=>{const{slotScopeIds:O}=b;O&&(C=C?C.concat(O):O);const x=o(g),N=p(r(g),b,x,S,A,C,T);return N&&Us(N)&&N.data==="]"?r(b.anchor=N):(Wt=!0,a(b.anchor=c("]"),x,N),N)},w=(g,b,S,A,C,T)=>{if(Wt=!0,M(`Hydration node mismatch:
- rendered on server:`,g,g.nodeType===3?"(text)":Us(g)&&g.data==="["?"(start of fragment)":"",`
- expected on client:`,b.type),b.el=null,T){const N=E(g);for(;;){const I=r(g);if(I&&I!==N)l(I);else break}}const O=r(g),x=o(g);return l(g),n(null,b,x,O,S,A,er(x),C),O},E=(g,b="[",S="]")=>{let A=0;for(;g;)if(g=r(g),g&&Us(g)&&(g.data===b&&A++,g.data===S)){if(A===0)return r(g);A--}return g},y=(g,b,S)=>{const A=b.parentNode;A&&A.replaceChild(g,b);let C=S;for(;C;)C.vnode.el===b&&(C.vnode.el=C.subTree.el=g),C=C.parent},_=g=>g.nodeType===1&&g.tagName.toLowerCase()==="template";return[f,u]}function Gy(e,t,n,s,i){var r;let o,l,a,c;if(t==="class")a=e.getAttribute("class"),c=Vs(n),Yy(Bc(a||""),Bc(c))||(o=l="class");else if(t==="style"){a=e.getAttribute("style"),c=ee(n)?n:wm(Ds(n));const f=Hc(a),u=Hc(c);if(s.dirs)for(const{dir:p,value:m}of s.dirs)p.name==="show"&&!m&&u.set("display","none");const d=i==null?void 0:i.subTree;if(s===d||(d==null?void 0:d.type)===De&&d.children.includes(s)){const p=(r=i==null?void 0:i.getCssVars)==null?void 0:r.call(i);for(const m in p)u.set(`--${m}`,String(p[m]))}Jy(f,u)||(o=l="style")}else(e instanceof SVGElement&&Nm(t)||e instanceof HTMLElement&&(yc(t)||Im(t)))&&(yc(t)?(a=e.hasAttribute(t),c=Yl(n)):n==null?(a=e.hasAttribute(t),c=!1):(e.hasAttribute(t)?a=e.getAttribute(t):t==="value"&&e.tagName==="TEXTAREA"?a=e.value:a=!1,c=km(n)?String(n):!1),a!==c&&(o="attribute",l=t));if(o){const f=p=>p===!1?"(not rendered)":`${l}="${p}"`,u=`Hydration ${o} mismatch on`,d=`
- rendered on server: ${f(a)}
- expected on client: ${f(c)}
Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.
You should fix the source of the mismatch.`;return M(u,e,d),!0}return!1}function Bc(e){return new Set(e.trim().split(/\s+/))}function Yy(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function Hc(e){const t=new Map;for(const n of e.split(";")){let[s,i]=n.split(":");s=s==null?void 0:s.trim(),i=i==null?void 0:i.trim(),s&&i&&t.set(s,i)}return t}function Jy(e,t){if(e.size!==t.size)return!1;for(const[n,s]of e)if(s!==t.get(n))return!1;return!0}let Ks,Sn;function Gt(e,t){e.appContext.config.performance&&Ir()&&Sn.mark(`vue-${t}-${e.uid}`),kg(e,t,Ir()?Sn.now():Date.now())}function Yt(e,t){if(e.appContext.config.performance&&Ir()){const n=`vue-${t}-${e.uid}`,s=n+":end";Sn.mark(s),Sn.measure(`<${po(e,e.type)}> ${t}`,n,s),Sn.clearMarks(n),Sn.clearMarks(s)}Pg(e,t,Ir()?Sn.now():Date.now())}function Ir(){return Ks!==void 0||(typeof window<"u"&&window.performance?(Ks=!0,Sn=window.performance):Ks=!1),Ks}function Xy(){const e=[];if(e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
For more details, see https://link.vuejs.org/feature-flags.`)}}const We=Xf;function xd(e){return Ad(e)}function Od(e){return Ad(e,zy)}function Ad(e,t){Xy();const n=zl();n.__VUE__=!0,ua(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:s,remove:i,patchProp:r,createElement:o,createText:l,createComment:a,setText:c,setElementText:f,parentNode:u,nextSibling:d,setScopeId:p=Me,insertStaticContent:m}=e,w=(h,v,R,P=null,$=null,D=null,B=void 0,L=null,V=An?!1:!!v.dynamicChildren)=>{if(h===v)return;h&&!At(h,v)&&(P=K(h),vt(h,$,D,!0),h=null),v.patchFlag===-2&&(V=!1,v.dynamicChildren=null);const{type:F,ref:q,shapeFlag:Z}=v;switch(F){case kn:E(h,v,R,P);break;case $e:y(h,v,R,P);break;case Rn:h==null?_(v,R,P,B):g(h,v,R,B);break;case De:j(h,v,R,P,$,D,B,L,V);break;default:Z&1?A(h,v,R,P,$,D,B,L,V):Z&6?G(h,v,R,P,$,D,B,L,V):Z&64||Z&128?F.process(h,v,R,P,$,D,B,L,V,ue):M("Invalid VNode type:",F,`(${typeof F})`)}q!=null&&$&&Rr(q,h&&h.ref,D,v||h,!v)},E=(h,v,R,P)=>{if(h==null)s(v.el=l(v.children),R,P);else{const $=v.el=h.el;v.children!==h.children&&c($,v.children)}},y=(h,v,R,P)=>{h==null?s(v.el=a(v.children||""),R,P):v.el=h.el},_=(h,v,R,P)=>{[h.el,h.anchor]=m(h.children,v,R,P,h.el,h.anchor)},g=(h,v,R,P)=>{if(v.children!==h.children){const $=d(h.anchor);S(h),[v.el,v.anchor]=m(v.children,R,$,P)}else v.el=h.el,v.anchor=h.anchor},b=({el:h,anchor:v},R,P)=>{let $;for(;h&&h!==v;)$=d(h),s(h,R,P),h=$;s(v,R,P)},S=({el:h,anchor:v})=>{let R;for(;h&&h!==v;)R=d(h),i(h),h=R;i(v)},A=(h,v,R,P,$,D,B,L,V)=>{v.type==="svg"?B="svg":v.type==="math"&&(B="mathml"),h==null?C(v,R,P,$,D,B,L,V):x(h,v,$,D,B,L,V)},C=(h,v,R,P,$,D,B,L)=>{let V,F;const{props:q,shapeFlag:Z,transition:X,dirs:ie}=h;if(V=h.el=o(h.type,D,q&&q.is,q),Z&8?f(V,h.children):Z&16&&O(h.children,V,null,P,$,Io(h,D),B,L),ie&&Lt(h,null,P,"created"),T(V,h,h.scopeId,B,P),q){for(const _e in q)_e!=="value"&&!Cn(_e)&&r(V,_e,null,q[_e],D,h.children,P,$,k);"value"in q&&r(V,"value",null,q.value,D),(F=q.onVnodeBeforeMount)&&at(F,P,h)}Object.defineProperty(V,"__vnode",{value:h,enumerable:!1}),Object.defineProperty(V,"__vueParentComponent",{value:P,enumerable:!1}),ie&&Lt(h,null,P,"beforeMount");const pe=Rd($,X);pe&&X.beforeEnter(V),s(V,v,R),((F=q&&q.onVnodeMounted)||pe||ie)&&We(()=>{F&&at(F,P,h),pe&&X.enter(V),ie&&Lt(h,null,P,"mounted")},$)},T=(h,v,R,P,$)=>{if(R&&p(h,R),P)for(let D=0;D<P.length;D++)p(h,P[D]);if($){let D=$.subTree;if(D.patchFlag>0&&D.patchFlag&2048&&(D=ro(D.children)||D),v===D){const B=$.vnode;T(h,B,B.scopeId,B.slotScopeIds,$.parent)}}},O=(h,v,R,P,$,D,B,L,V=0)=>{for(let F=V;F<h.length;F++){const q=h[F]=L?gn(h[F]):ut(h[F]);w(null,q,v,R,P,$,D,B,L)}},x=(h,v,R,P,$,D,B)=>{const L=v.el=h.el;let{patchFlag:V,dynamicChildren:F,dirs:q}=v;V|=h.patchFlag&16;const Z=h.props||me,X=v.props||me;let ie;if(R&&Vn(R,!1),(ie=X.onVnodeBeforeUpdate)&&at(ie,R,v,h),q&&Lt(v,h,R,"beforeUpdate"),R&&Vn(R,!0),An&&(V=0,B=!1,F=null),F?(N(h.dynamicChildren,F,L,R,P,Io(v,$),D),Nr(h,v)):B||Fe(h,v,L,null,R,P,Io(v,$),D,!1),V>0){if(V&16)I(L,v,Z,X,R,P,$);else if(V&2&&Z.class!==X.class&&r(L,"class",null,X.class,$),V&4&&r(L,"style",Z.style,X.style,$),V&8){const pe=v.dynamicProps;for(let _e=0;_e<pe.length;_e++){const Ae=pe[_e],je=Z[Ae],xt=X[Ae];(xt!==je||Ae==="value")&&r(L,Ae,je,xt,$,h.children,R,P,k)}}V&1&&h.children!==v.children&&f(L,v.children)}else!B&&F==null&&I(L,v,Z,X,R,P,$);((ie=X.onVnodeUpdated)||q)&&We(()=>{ie&&at(ie,R,v,h),q&&Lt(v,h,R,"updated")},P)},N=(h,v,R,P,$,D,B)=>{for(let L=0;L<v.length;L++){const V=h[L],F=v[L],q=V.el&&(V.type===De||!At(V,F)||V.shapeFlag&70)?u(V.el):R;w(V,F,q,null,P,$,D,B,!0)}},I=(h,v,R,P,$,D,B)=>{if(R!==P){if(R!==me)for(const L in R)!Cn(L)&&!(L in P)&&r(h,L,R[L],null,B,v.children,$,D,k);for(const L in P){if(Cn(L))continue;const V=P[L],F=R[L];V!==F&&L!=="value"&&r(h,L,F,V,B,v.children,$,D,k)}"value"in P&&r(h,"value",R.value,P.value,B)}},j=(h,v,R,P,$,D,B,L,V)=>{const F=v.el=h?h.el:l(""),q=v.anchor=h?h.anchor:l("");let{patchFlag:Z,dynamicChildren:X,slotScopeIds:ie}=v;(An||Z&2048)&&(Z=0,V=!1,X=null),ie&&(L=L?L.concat(ie):ie),h==null?(s(F,R,P),s(q,R,P),O(v.children||[],R,q,$,D,B,L,V)):Z>0&&Z&64&&X&&h.dynamicChildren?(N(h.dynamicChildren,X,R,$,D,B,L),Nr(h,v)):Fe(h,v,R,q,$,D,B,L,V)},G=(h,v,R,P,$,D,B,L,V)=>{v.slotScopeIds=L,h==null?v.shapeFlag&512?$.ctx.activate(v,R,P,B,V):te(v,R,P,$,D,B,V):z(h,v,V)},te=(h,v,R,P,$,D,B)=>{const L=h.component=Dd(h,P,$);if(L.type.__hmrId&&Cg(L),Qs(h),Gt(L,"mount"),Bs(h)&&(L.ctx.renderer=ue),Gt(L,"init"),jd(L),Yt(L,"init"),L.asyncDep){if($&&$.registerDep(L,J),!h.el){const V=L.subTree=xe($e);y(null,V,v,R)}}else J(L,h,v,R,$,D,B);Zs(),Yt(L,"mount")},z=(h,v,R)=>{const P=v.component=h.component;if(Bg(h,v,R))if(P.asyncDep&&!P.asyncResolved){Qs(v),W(P,v,R),Zs();return}else P.next=v,wg(P.update),P.effect.dirty=!0,P.update();else v.el=h.el,P.vnode=v},J=(h,v,R,P,$,D,B)=>{const L=()=>{if(h.isMounted){let{next:q,bu:Z,u:X,parent:ie,vnode:pe}=h;{const fs=Id(h);if(fs){q&&(q.el=pe.el,W(h,q,B)),fs.asyncDep.then(()=>{h.isUnmounted||L()});return}}let _e=q,Ae;Qs(q||h.vnode),Vn(h,!1),q?(q.el=pe.el,W(h,q,B)):q=pe,Z&&_n(Z),(Ae=q.props&&q.props.onVnodeBeforeUpdate)&&at(Ae,ie,q,pe),Vn(h,!0),Gt(h,"render");const je=dr(h);Yt(h,"render");const xt=h.subTree;h.subTree=je,Gt(h,"patch"),w(xt,je,u(xt.el),K(xt),h,$,D),Yt(h,"patch"),q.el=je.el,_e===null&&pa(h,je.el),X&&We(X,$),(Ae=q.props&&q.props.onVnodeUpdated)&&We(()=>at(Ae,ie,q,pe),$),qf(h),Zs()}else{let q;const{el:Z,props:X}=v,{bm:ie,m:pe,parent:_e}=h,Ae=es(v);if(Vn(h,!1),ie&&_n(ie),!Ae&&(q=X&&X.onVnodeBeforeMount)&&at(q,_e,v),Vn(h,!0),Z&&le){const je=()=>{Gt(h,"render"),h.subTree=dr(h),Yt(h,"render"),Gt(h,"hydrate"),le(Z,h.subTree,h,$,null),Yt(h,"hydrate")};Ae?v.type.__asyncLoader().then(()=>!h.isUnmounted&&je()):je()}else{Gt(h,"render");const je=h.subTree=dr(h);Yt(h,"render"),Gt(h,"patch"),w(null,je,R,P,h,$,D),Yt(h,"patch"),v.el=je.el}if(pe&&We(pe,$),!Ae&&(q=X&&X.onVnodeMounted)){const je=v;We(()=>at(q,_e,je),$)}(v.shapeFlag&256||_e&&es(_e.vnode)&&_e.vnode.shapeFlag&256)&&h.a&&We(h.a,$),h.isMounted=!0,Zo(h),v=R=P=null}},V=h.effect=new Cs(L,Me,()=>Ni(F),h.scope),F=h.update=()=>{V.dirty&&V.run()};F.id=h.uid,Vn(h,!0),V.onTrack=h.rtc?q=>_n(h.rtc,q):void 0,V.onTrigger=h.rtg?q=>_n(h.rtg,q):void 0,F.ownerInstance=h,F()},W=(h,v,R)=>{v.component=h;const P=h.vnode.props;h.vnode=v,h.next=null,Fy(h,v.props,P,R),Ky(h,v.children,R),$n(),Tc(h),Fn()},Fe=(h,v,R,P,$,D,B,L,V=!1)=>{const F=h&&h.children,q=h?h.shapeFlag:0,Z=v.children,{patchFlag:X,shapeFlag:ie}=v;if(X>0){if(X&128){rt(F,Z,R,P,$,D,B,L,V);return}else if(X&256){Ye(F,Z,R,P,$,D,B,L,V);return}}ie&8?(q&16&&k(F,$,D),Z!==F&&f(R,Z)):q&16?ie&16?rt(F,Z,R,P,$,D,B,L,V):k(F,$,D,!0):(q&8&&f(R,""),ie&16&&O(Z,R,P,$,D,B,L,V))},Ye=(h,v,R,P,$,D,B,L,V)=>{h=h||ms,v=v||ms;const F=h.length,q=v.length,Z=Math.min(F,q);let X;for(X=0;X<Z;X++){const ie=v[X]=V?gn(v[X]):ut(v[X]);w(h[X],ie,R,null,$,D,B,L,V)}F>q?k(h,$,D,!0,!1,Z):O(v,R,P,$,D,B,L,V,Z)},rt=(h,v,R,P,$,D,B,L,V)=>{let F=0;const q=v.length;let Z=h.length-1,X=q-1;for(;F<=Z&&F<=X;){const ie=h[F],pe=v[F]=V?gn(v[F]):ut(v[F]);if(At(ie,pe))w(ie,pe,R,null,$,D,B,L,V);else break;F++}for(;F<=Z&&F<=X;){const ie=h[Z],pe=v[X]=V?gn(v[X]):ut(v[X]);if(At(ie,pe))w(ie,pe,R,null,$,D,B,L,V);else break;Z--,X--}if(F>Z){if(F<=X){const ie=X+1,pe=ie<q?v[ie].el:P;for(;F<=X;)w(null,v[F]=V?gn(v[F]):ut(v[F]),R,pe,$,D,B,L,V),F++}}else if(F>X)for(;F<=Z;)vt(h[F],$,D,!0),F++;else{const ie=F,pe=F,_e=new Map;for(F=pe;F<=X;F++){const nt=v[F]=V?gn(v[F]):ut(v[F]);nt.key!=null&&(_e.has(nt.key)&&M("Duplicate keys found during update:",JSON.stringify(nt.key),"Make sure keys are unique."),_e.set(nt.key,F))}let Ae,je=0;const xt=X-pe+1;let fs=!1,fc=0;const Hs=new Array(xt);for(F=0;F<xt;F++)Hs[F]=0;for(F=ie;F<=Z;F++){const nt=h[F];if(je>=xt){vt(nt,$,D,!0);continue}let $t;if(nt.key!=null)$t=_e.get(nt.key);else for(Ae=pe;Ae<=X;Ae++)if(Hs[Ae-pe]===0&&At(nt,v[Ae])){$t=Ae;break}$t===void 0?vt(nt,$,D,!0):(Hs[$t-pe]=F+1,$t>=fc?fc=$t:fs=!0,w(nt,v[$t],R,null,$,D,B,L,V),je++)}const dc=fs?Qy(Hs):ms;for(Ae=dc.length-1,F=xt-1;F>=0;F--){const nt=pe+F,$t=v[nt],pc=nt+1<q?v[nt+1].el:P;Hs[F]===0?w(null,$t,R,pc,$,D,B,L,V):fs&&(Ae<0||F!==dc[Ae]?Mt($t,R,pc,2):Ae--)}}},Mt=(h,v,R,P,$=null)=>{const{el:D,type:B,transition:L,children:V,shapeFlag:F}=h;if(F&6){Mt(h.component.subTree,v,R,P);return}if(F&128){h.suspense.move(v,R,P);return}if(F&64){B.move(h,v,R,ue);return}if(B===De){s(D,v,R);for(let Z=0;Z<V.length;Z++)Mt(V[Z],v,R,P);s(h.anchor,v,R);return}if(B===Rn){b(h,v,R);return}if(P!==2&&F&1&&L)if(P===0)L.beforeEnter(D),s(D,v,R),We(()=>L.enter(D),$);else{const{leave:Z,delayLeave:X,afterLeave:ie}=L,pe=()=>s(D,v,R),_e=()=>{Z(D,()=>{pe(),ie&&ie()})};X?X(D,pe,_e):_e()}else s(D,v,R)},vt=(h,v,R,P=!1,$=!1)=>{const{type:D,props:B,ref:L,children:V,dynamicChildren:F,shapeFlag:q,patchFlag:Z,dirs:X}=h;if(L!=null&&Rr(L,null,R,h,!0),q&256){v.ctx.deactivate(h);return}const ie=q&1&&X,pe=!es(h);let _e;if(pe&&(_e=B&&B.onVnodeBeforeUnmount)&&at(_e,v,h),q&6)an(h.component,R,P);else{if(q&128){h.suspense.unmount(R,P);return}ie&&Lt(h,null,v,"beforeUnmount"),q&64?h.type.remove(h,v,R,$,ue,P):F&&(D!==De||Z>0&&Z&64)?k(F,v,R,!1,!0):(D===De&&Z&384||!$&&q&16)&&k(V,v,R),P&&ln(h)}(pe&&(_e=B&&B.onVnodeUnmounted)||ie)&&We(()=>{_e&&at(_e,v,h),ie&&Lt(h,null,v,"unmounted")},R)},ln=h=>{const{type:v,el:R,anchor:P,transition:$}=h;if(v===De){h.patchFlag>0&&h.patchFlag&2048&&$&&!$.persisted?h.children.forEach(B=>{B.type===$e?i(B.el):ln(B)}):Wi(R,P);return}if(v===Rn){S(h);return}const D=()=>{i(R),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(h.shapeFlag&1&&$&&!$.persisted){const{leave:B,delayLeave:L}=$,V=()=>B(R,D);L?L(h.el,D,V):V()}else D()},Wi=(h,v)=>{let R;for(;h!==v;)R=d(h),i(h),h=R;i(v)},an=(h,v,R)=>{h.type.__hmrId&&Tg(h);const{bum:P,scope:$,update:D,subTree:B,um:L}=h;P&&_n(P),$.stop(),D&&(D.active=!1,vt(B,h,v,R)),L&&We(L,v),We(()=>{h.isUnmounted=!0},v),v&&v.pendingBranch&&!v.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===v.pendingId&&(v.deps--,v.deps===0&&v.resolve()),Ng(h)},k=(h,v,R,P=!1,$=!1,D=0)=>{for(let B=D;B<h.length;B++)vt(h[B],v,R,P,$)},K=h=>h.shapeFlag&6?K(h.component.subTree):h.shapeFlag&128?h.suspense.next():d(h.anchor||h.el);let U=!1;const Y=(h,v,R)=>{h==null?v._vnode&&vt(v._vnode,null,null,!0):w(v._vnode||null,h,v,null,null,null,R),U||(U=!0,Tc(),Tr(),U=!1),v._vnode=h},ue={p:w,um:vt,m:Mt,r:ln,mt:te,mc:O,pc:Fe,pbc:N,n:K,o:e};let Oe,le;return t&&([Oe,le]=t(ue)),{render:Y,hydrate:Oe,createApp:ky(Y,Oe)}}function Io({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Vn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Rd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Nr(e,t,n=!1){const s=e.children,i=t.children;if(H(s)&&H(i))for(let r=0;r<s.length;r++){const o=s[r];let l=i[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[r]=gn(i[r]),l.el=o.el),n||Nr(o,l)),l.type===kn&&(l.el=o.el),l.type===$e&&!l.el&&(l.el=o.el)}}function Qy(e){const t=e.slice(),n=[0];let s,i,r,o,l;const a=e.length;for(s=0;s<a;s++){const c=e[s];if(c!==0){if(i=n[n.length-1],e[i]<c){t[s]=i,n.push(s);continue}for(r=0,o=n.length-1;r<o;)l=r+o>>1,e[n[l]]<c?r=l+1:o=l;c<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=t[o];return n}function Id(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Id(t)}const Zy=e=>e.__isTeleport,Ss=e=>e&&(e.disabled||e.disabled===""),Uc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Kc=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ll=(e,t)=>{const n=e&&e.to;if(ee(n))if(t){const s=t(n);return s||M(`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),s}else return M("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return!n&&!Ss(e)&&M(`Invalid Teleport target: ${n}`),n},ev={name:"Teleport",__isTeleport:!0,process(e,t,n,s,i,r,o,l,a,c){const{mc:f,pc:u,pbc:d,o:{insert:p,querySelector:m,createText:w,createComment:E}}=c,y=Ss(t.props);let{shapeFlag:_,children:g,dynamicChildren:b}=t;if(An&&(a=!1,b=null),e==null){const S=t.el=E("teleport start"),A=t.anchor=E("teleport end");p(S,n,s),p(A,n,s);const C=t.target=ll(t.props,m),T=t.targetAnchor=w("");C?(p(T,C),o==="svg"||Uc(C)?o="svg":(o==="mathml"||Kc(C))&&(o="mathml")):y||M("Invalid Teleport target on mount:",C,`(${typeof C})`);const O=(x,N)=>{_&16&&f(g,x,N,i,r,o,l,a)};y?O(n,A):C&&O(C,T)}else{t.el=e.el;const S=t.anchor=e.anchor,A=t.target=e.target,C=t.targetAnchor=e.targetAnchor,T=Ss(e.props),O=T?n:A,x=T?S:C;if(o==="svg"||Uc(A)?o="svg":(o==="mathml"||Kc(A))&&(o="mathml"),b?(d(e.dynamicChildren,b,O,i,r,o,l),Nr(e,t,!0)):a||u(e,t,O,x,i,r,o,l,!1),y)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):tr(t,n,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const N=t.target=ll(t.props,m);N?tr(t,N,null,c,0):M("Invalid Teleport target on update:",A,`(${typeof A})`)}else T&&tr(t,A,C,c,1)}Nd(t)},remove(e,t,n,s,{um:i,o:{remove:r}},o){const{shapeFlag:l,children:a,anchor:c,targetAnchor:f,target:u,props:d}=e;if(u&&r(f),o&&r(c),l&16){const p=o||!Ss(d);for(let m=0;m<a.length;m++){const w=a[m];i(w,t,n,p,!!w.dynamicChildren)}}},move:tr,hydrate:tv};function tr(e,t,n,{o:{insert:s},m:i},r=2){r===0&&s(e.targetAnchor,t,n);const{el:o,anchor:l,shapeFlag:a,children:c,props:f}=e,u=r===2;if(u&&s(o,t,n),(!u||Ss(f))&&a&16)for(let d=0;d<c.length;d++)i(c[d],t,n,2);u&&s(l,t,n)}function tv(e,t,n,s,i,r,{o:{nextSibling:o,parentNode:l,querySelector:a}},c){const f=t.target=ll(t.props,a);if(f){const u=f._lpa||f.firstChild;if(t.shapeFlag&16)if(Ss(t.props))t.anchor=c(o(e),t,l(e),n,s,i,r),t.targetAnchor=u;else{t.anchor=o(e);let d=u;for(;d;)if(d=o(d),d&&d.nodeType===8&&d.data==="teleport anchor"){t.targetAnchor=d,f._lpa=t.targetAnchor&&o(t.targetAnchor);break}c(u,t,f,n,s,i,r)}Nd(t)}return t.anchor&&o(t.anchor)}const nv=ev;function Nd(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const De=Symbol.for("v-fgt"),kn=Symbol.for("v-txt"),$e=Symbol.for("v-cmt"),Rn=Symbol.for("v-stc"),ni=[];let ft=null;function co(e=!1){ni.push(ft=e?null:[])}function kd(){ni.pop(),ft=ni[ni.length-1]||null}let rs=1;function al(e){rs+=e}function Pd(e){return e.dynamicChildren=rs>0?ft||ms:null,kd(),rs>0&&ft&&ft.push(e),e}function sv(e,t,n,s,i,r){return Pd(Ca(e,t,n,s,i,r,!0))}function Ea(e,t,n,s,i){return Pd(xe(e,t,n,s,i,!0))}function rn(e){return e?e.__v_isVNode===!0:!1}function At(e,t){return t.shapeFlag&6&&hs.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}let cl;function iv(e){cl=e}const rv=(...e)=>ov(...cl?cl(e,Re):e),uo="__vInternal",Md=({key:e})=>e??null,pr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ee(e)||Te(e)||Q(e)?{i:Re,r:e,k:t,f:!!n}:e:null);function Ca(e,t=null,n=null,s=0,i=null,r=e===De?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Md(t),ref:t&&pr(t),scopeId:io,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Re};return l?(xa(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=ee(n)?8:16),a.key!==a.key&&M("VNode created with invalid key (NaN). VNode type:",a.type),rs>0&&!o&&ft&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&ft.push(a),a}const xe=rv;function ov(e,t=null,n=null,s=0,i=null,r=!1){if((!e||e===ha)&&(e||M(`Invalid vnode type when creating vnode: ${e}.`),e=$e),rn(e)){const l=Tt(e,t,!0);return n&&xa(l,n),rs>0&&!r&&ft&&(l.shapeFlag&6?ft[ft.indexOf(e)]=l:ft.push(l)),l.patchFlag|=-2,l}if(Kd(e)&&(e=e.__vccOpts),t){t=$d(t);let{class:l,style:a}=t;l&&!ee(l)&&(t.class=Vs(l)),he(a)&&(di(a)&&!H(a)&&(a=ce({},a)),t.style=Ds(a))}const o=ee(e)?1:Jf(e)?128:Zy(e)?64:he(e)?4:Q(e)?2:0;return o&4&&di(e)&&(e=se(e),M("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
Component that was made reactive: `,e)),Ca(e,t,n,s,i,o,r,!0)}function $d(e){return e?di(e)||uo in e?ce({},e):e:null}function Tt(e,t,n=!1){const{props:s,ref:i,patchFlag:r,children:o}=e,l=t?Ld(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Md(l),ref:t&&t.ref?n&&i?H(i)?i.concat(pr(t)):[i,pr(t)]:pr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r===-1&&H(o)?o.map(Fd):o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==De?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tt(e.ssContent),ssFallback:e.ssFallback&&Tt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Fd(e){const t=Tt(e);return H(e.children)&&(t.children=e.children.map(Fd)),t}function Ta(e=" ",t=0){return xe(kn,null,e,t)}function lv(e,t){const n=xe(Rn,null,e);return n.staticCount=t,n}function av(e="",t=!1){return t?(co(),Ea($e,null,e)):xe($e,null,e)}function ut(e){return e==null||typeof e=="boolean"?xe($e):H(e)?xe(De,null,e.slice()):typeof e=="object"?gn(e):xe(kn,null,String(e))}function gn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tt(e)}function xa(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),xa(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(uo in t)?t._ctx=Re:i===3&&Re&&(Re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Q(t)?(t={default:t,_ctx:Re},n=32):(t=String(t),s&64?(n=16,t=[Ta(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ld(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const i in s)if(i==="class")t.class!==s.class&&(t.class=Vs([t.class,s.class]));else if(i==="style")t.style=Ds([t.style,s.style]);else if(nn(i)){const r=t[i],o=s[i];o&&r!==o&&!(H(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=s[i])}return t}function at(e,t,n,s=null){mt(e,t,7,[n,s])}const cv=bd();let uv=0;function Dd(e,t,n){const s=e.type,i=(t?t.appContext:e.appContext)||cv,r={uid:uv++,vnode:e,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Jl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Sd(s,i),emitsOptions:zf(s,i),emit:null,emitted:null,propsDefaults:me,inheritAttrs:s.inheritAttrs,ctx:me,data:me,props:me,attrs:me,slots:me,refs:me,setupState:me,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx=uy(r),r.root=t?t.root:r,r.emit=$g.bind(null,r),e.ce&&e.ce(r),r}let Pe=null;const Ge=()=>Pe||Re;let kr,ul;{const e=zl(),t=(n,s)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(s),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};kr=t("__VUE_INSTANCE_SETTERS__",n=>Pe=n),ul=t("__VUE_SSR_SETTERS__",n=>Fi=n)}const os=e=>{const t=Pe;return kr(e),e.scope.on(),()=>{e.scope.off(),kr(t)}},fl=()=>{Pe&&Pe.scope.off(),kr(null)},fv=Ue("slot,component");function dl(e,{isNativeTag:t}){(fv(e)||t(e))&&M("Do not use built-in or reserved HTML elements as component id: "+e)}function Vd(e){return e.vnode.shapeFlag&4}let Fi=!1;function jd(e,t=!1){t&&ul(t);const{props:n,children:s}=e.vnode,i=Vd(e);My(e,n,i,t),Uy(e,s);const r=i?dv(e,t):void 0;return t&&ul(!1),r}function dv(e,t){var n;const s=e.type;{if(s.name&&dl(s.name,e.appContext.config),s.components){const r=Object.keys(s.components);for(let o=0;o<r.length;o++)dl(r[o],e.appContext.config)}if(s.directives){const r=Object.keys(s.directives);for(let o=0;o<r.length;o++)sd(r[o])}s.compilerOptions&&Oa()&&M('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=na(new Proxy(e.ctx,ti)),fy(e);const{setup:i}=s;if(i){const r=e.setupContext=i.length>1?Ud(e):null,o=os(e);$n();const l=Ht(i,e,0,[qn(e.props),r]);if(Fn(),o(),Yr(l)){if(l.then(fl,fl),t)return l.then(a=>{pl(e,a,t)}).catch(a=>{Ln(a,e,0)});if(e.asyncDep=l,!e.suspense){const a=(n=s.name)!=null?n:"Anonymous";M(`Component <${a}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else pl(e,l,t)}else Hd(e,t)}function pl(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)?(rn(t)&&M("setup() should not return VNodes directly - return a render function instead."),e.devtoolsRawSetupState=t,e.setupState=oa(t),dy(e)):t!==void 0&&M(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Hd(e,n)}let si,hl;function Bd(e){si=e,hl=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,cy))}}const Oa=()=>!si;function Hd(e,t,n){const s=e.type;if(!e.render){if(!t&&si&&!s.render){const i=s.template||Sa(e).template;if(i){Gt(e,"compile");const{isCustomElement:r,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:a}=s,c=ce(ce({isCustomElement:r,delimiters:l},o),a);s.render=si(i,c),Yt(e,"compile")}}e.render=s.render||Me,hl&&hl(e)}{const i=os(e);$n();try{xy(e)}finally{Fn(),i()}}!s.render&&e.render===Me&&!t&&(!si&&s.template?M('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):M("Component is missing template or render function."))}function pv(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return xr(),tt(e,"get","$attrs"),t[n]},set(){return M("setupContext.attrs is readonly."),!1},deleteProperty(){return M("setupContext.attrs is readonly."),!1}}))}function hv(e){return e.slotsProxy||(e.slotsProxy=new Proxy(e.slots,{get(t,n){return tt(e,"get","$slots"),t[n]}}))}function Ud(e){return Object.freeze({get attrs(){return pv(e)},get slots(){return hv(e)},get emit(){return(n,...s)=>e.emit(n,...s)},expose:n=>{if(e.exposed&&M("expose() should be called only once per setup()."),n!=null){let s=typeof n;s==="object"&&(H(n)?s="array":Te(n)&&(s="ref")),s!=="object"&&M(`expose() should be passed a plain object, received ${s}.`)}e.exposed=n||{}}})}function fo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(oa(na(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ts)return ts[n](e)},has(t,n){return n in t||n in ts}}))}const mv=/(?:^|[-_])(\w)/g,gv=e=>e.replace(mv,t=>t.toUpperCase()).replace(/[-_]/g,"");function _i(e,t=!0){return Q(e)?e.displayName||e.name:e.name||t&&e.__name}function po(e,t,n=!1){let s=_i(t);if(!s&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(s=i[1])}if(!s&&e&&e.parent){const i=r=>{for(const o in r)if(r[o]===t)return o};s=i(e.components||e.parent.type.components)||i(e.appContext.components)}return s?gv(s):n?"App":"Anonymous"}function Kd(e){return Q(e)&&"__vccOpts"in e}const ae=(e,t)=>{const n=ig(e,t,Fi);{const s=Ge();s&&s.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function yv(e,t,n=me){const s=Ge();if(!s)return M("useModel() called without active instance."),ne();if(!s.propsOptions[0][t])return M(`useModel() called with prop "${t}" which is not declared.`),ne();const i=Ie(t),r=Xe(t),o=to((a,c)=>{let f;return td(()=>{const u=e[t];Pt(f,u)&&(f=u,c())}),{get(){return a(),n.get?n.get(f):f},set(u){const d=s.vnode.props;!(d&&(t in d||i in d||r in d)&&(`onUpdate:${t}`in d||`onUpdate:${i}`in d||`onUpdate:${r}`in d))&&Pt(u,f)&&(f=u,c()),s.emit(`update:${t}`,n.set?n.set(u):u)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return o[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:o,done:!1}:{done:!0}}}},o}function xs(e,t,n){const s=arguments.length;return s===2?he(t)&&!H(t)?rn(t)?xe(e,null,[t]):xe(e,t):xe(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&rn(n)&&(n=[n]),xe(e,t,n))}function qd(){if(typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},s={style:"color:#eb2f96"},i={header(u){return he(u)?u.__isVue?["div",e,"VueInstance"]:Te(u)?["div",{},["span",e,f(u)],"<",l(u.value),">"]:xn(u)?["div",{},["span",e,On(u)?"ShallowReactive":"Reactive"],"<",l(u),`>${sn(u)?" (readonly)":""}`]:sn(u)?["div",{},["span",e,On(u)?"ShallowReadonly":"Readonly"],"<",l(u),">"]:null:null},hasBody(u){return u&&u.__isVue},body(u){if(u&&u.__isVue)return["div",{},...r(u.$)]}};function r(u){const d=[];u.type.props&&u.props&&d.push(o("props",se(u.props))),u.setupState!==me&&d.push(o("setup",u.setupState)),u.data!==me&&d.push(o("data",se(u.data)));const p=a(u,"computed");p&&d.push(o("computed",p));const m=a(u,"inject");return m&&d.push(o("injected",m)),d.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:u}]]),d}function o(u,d){return d=ce({},d),Object.keys(d).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},u],["div",{style:"padding-left:1.25em"},...Object.keys(d).map(p=>["div",{},["span",s,p+": "],l(d[p],!1)])]]:["span",{}]}function l(u,d=!0){return typeof u=="number"?["span",t,u]:typeof u=="string"?["span",n,JSON.stringify(u)]:typeof u=="boolean"?["span",s,u]:he(u)?["object",{object:d?se(u):u}]:["span",n,String(u)]}function a(u,d){const p=u.type;if(Q(p))return;const m={};for(const w in u.ctx)c(p,w,d)&&(m[w]=u.ctx[w]);return m}function c(u,d,p){const m=u[p];if(H(m)&&m.includes(d)||he(m)&&d in m||u.extends&&c(u.extends,d,p)||u.mixins&&u.mixins.some(w=>c(w,d,p)))return!0}function f(u){return On(u)?"ShallowRef":u.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}function vv(e,t,n,s){const i=n[s];if(i&&Wd(i,e))return i;const r=t();return r.memo=e.slice(),n[s]=r}function Wd(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let s=0;s<n.length;s++)if(Pt(n[s],t[s]))return!1;return rs>0&&ft&&ft.push(e),!0}const ml="3.4.21",Be=M,bv=no,_v=Ot,Sv=ua,wv={createComponentInstance:Dd,setupComponent:jd,renderComponentRoot:dr,setCurrentRenderingInstance:yi,isVNode:rn,normalizeVNode:ut},Ev=wv,Cv=null,Tv=null,xv=null;/**
* @vue/runtime-dom v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Ov="http://www.w3.org/2000/svg",Av="http://www.w3.org/1998/Math/MathML",yn=typeof document<"u"?document:null,qc=yn&&yn.createElement("template"),Rv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const i=t==="svg"?yn.createElementNS(Ov,e):t==="mathml"?yn.createElementNS(Av,e):yn.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>yn.createTextNode(e),createComment:e=>yn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,r){const o=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{qc.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const l=qc.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},un="transition",qs="animation",Os=Symbol("_vtc"),Aa=(e,{slots:t})=>xs(id,Gd(e),t);Aa.displayName="Transition";const zd={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Iv=Aa.props=ce({},ba,zd),jn=(e,t=[])=>{H(e)?e.forEach(n=>n(...t)):e&&e(...t)},Wc=e=>e?H(e)?e.some(t=>t.length>1):e.length>1:!1;function Gd(e){const t={};for(const I in e)I in zd||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:s,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:c=o,appearToClass:f=l,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Nv(i),w=m&&m[0],E=m&&m[1],{onBeforeEnter:y,onEnter:_,onEnterCancelled:g,onLeave:b,onLeaveCancelled:S,onBeforeAppear:A=y,onAppear:C=_,onAppearCancelled:T=g}=t,O=(I,j,G)=>{pn(I,j?f:l),pn(I,j?c:o),G&&G()},x=(I,j)=>{I._isLeaving=!1,pn(I,u),pn(I,p),pn(I,d),j&&j()},N=I=>(j,G)=>{const te=I?C:_,z=()=>O(j,I,G);jn(te,[j,z]),zc(()=>{pn(j,I?a:r),Jt(j,I?f:l),Wc(te)||Gc(j,s,w,z)})};return ce(t,{onBeforeEnter(I){jn(y,[I]),Jt(I,r),Jt(I,o)},onBeforeAppear(I){jn(A,[I]),Jt(I,a),Jt(I,c)},onEnter:N(!1),onAppear:N(!0),onLeave(I,j){I._isLeaving=!0;const G=()=>x(I,j);Jt(I,u),Jd(),Jt(I,d),zc(()=>{I._isLeaving&&(pn(I,u),Jt(I,p),Wc(b)||Gc(I,s,E,G))}),jn(b,[I,G])},onEnterCancelled(I){O(I,!1),jn(g,[I])},onAppearCancelled(I){O(I,!0),jn(T,[I])},onLeaveCancelled(I){x(I),jn(S,[I])}})}function Nv(e){if(e==null)return null;if(he(e))return[No(e.enter),No(e.leave)];{const t=No(e);return[t,t]}}function No(e){const t=Er(e);return la(t,"<transition> explicit duration"),t}function Jt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Os]||(e[Os]=new Set)).add(t)}function pn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Os];n&&(n.delete(t),n.size||(e[Os]=void 0))}function zc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let kv=0;function Gc(e,t,n,s){const i=e._endId=++kv,r=()=>{i===e._endId&&s()};if(n)return setTimeout(r,n);const{type:o,timeout:l,propCount:a}=Yd(e,t);if(!o)return s();const c=o+"end";let f=0;const u=()=>{e.removeEventListener(c,d),r()},d=p=>{p.target===e&&++f>=a&&u()};setTimeout(()=>{f<a&&u()},l+1),e.addEventListener(c,d)}function Yd(e,t){const n=window.getComputedStyle(e),s=m=>(n[m]||"").split(", "),i=s(`${un}Delay`),r=s(`${un}Duration`),o=Yc(i,r),l=s(`${qs}Delay`),a=s(`${qs}Duration`),c=Yc(l,a);let f=null,u=0,d=0;t===un?o>0&&(f=un,u=o,d=r.length):t===qs?c>0&&(f=qs,u=c,d=a.length):(u=Math.max(o,c),f=u>0?o>c?un:qs:null,d=f?f===un?r.length:a.length:0);const p=f===un&&/\b(transform|all)(,|$)/.test(s(`${un}Property`).toString());return{type:f,timeout:u,propCount:d,hasTransform:p}}function Yc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Jc(n)+Jc(e[s])))}function Jc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Jd(){return document.body.offsetHeight}function Pv(e,t,n){const s=e[Os];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Pr=Symbol("_vod"),Xd=Symbol("_vsh"),Ra={beforeMount(e,{value:t},{transition:n}){e[Pr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ws(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Ws(e,!0),s.enter(e)):s.leave(e,()=>{Ws(e,!1)}):Ws(e,t))},beforeUnmount(e,{value:t}){Ws(e,t)}};Ra.name="show";function Ws(e,t){e.style.display=t?e[Pr]:"none",e[Xd]=!t}function Mv(){Ra.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Qd=Symbol("CSS_VAR_TEXT");function $v(e){const t=Ge();if(!t){Be("useCssVars is called without current active component instance.");return}const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(r=>yl(r,i))};t.getCssVars=()=>e(t.proxy);const s=()=>{const i=e(t.proxy);gl(t.subTree,i),n(i)};ed(s),cs(()=>{const i=new MutationObserver(s);i.observe(t.subTree.el.parentNode,{childList:!0}),$i(()=>i.disconnect())})}function gl(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{gl(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)yl(e.el,t);else if(e.type===De)e.children.forEach(n=>gl(n,t));else if(e.type===Rn){let{el:n,anchor:s}=e;for(;n&&(yl(n,t),n!==s);)n=n.nextSibling}}function yl(e,t){if(e.nodeType===1){const n=e.style;let s="";for(const i in t)n.setProperty(`--${i}`,t[i]),s+=`--${i}: ${t[i]};`;n[Qd]=s}}const Fv=/(^|;)\s*display\s*:/;function Lv(e,t,n){const s=e.style,i=ee(n);let r=!1;if(n&&!i){if(t)if(ee(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&hr(s,l,"")}else for(const o in t)n[o]==null&&hr(s,o,"");for(const o in n)o==="display"&&(r=!0),hr(s,o,n[o])}else if(i){if(t!==n){const o=s[Qd];o&&(n+=";"+o),s.cssText=n,r=Fv.test(n)}}else t&&e.removeAttribute("style");Pr in e&&(e[Pr]=r?s.display:"",e[Xd]&&(s.display="none"))}const Dv=/[^\\];\s*$/,Xc=/\s*!important$/;function hr(e,t,n){if(H(n))n.forEach(s=>hr(e,t,s));else if(n==null&&(n=""),Dv.test(n)&&Be(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const s=Vv(e,t);Xc.test(n)?e.setProperty(Xe(s),n.replace(Xc,""),"important"):e[s]=n}}const Qc=["Webkit","Moz","ms"],ko={};function Vv(e,t){const n=ko[t];if(n)return n;let s=Ie(t);if(s!=="filter"&&s in e)return ko[t]=s;s=Ut(s);for(let i=0;i<Qc.length;i++){const r=Qc[i]+s;if(r in e)return ko[t]=r}return t}const Zc="http://www.w3.org/1999/xlink";function jv(e,t,n,s,i){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Zc,t.slice(6,t.length)):e.setAttributeNS(Zc,t,n);else{const r=Rm(t);n==null||r&&!Yl(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function Bv(e,t,n,s,i,r,o){if(t==="innerHTML"||t==="textContent"){s&&o(s,i,r),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const c=l==="OPTION"?e.getAttribute("value")||"":e.value,f=n??"";(c!==f||!("_value"in e))&&(e.value=f),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Yl(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch(c){a||Be(`Failed setting prop "${t}" on <${l.toLowerCase()}>: value ${n} is invalid.`,c)}a&&e.removeAttribute(t)}function en(e,t,n,s){e.addEventListener(t,n,s)}function Hv(e,t,n,s){e.removeEventListener(t,n,s)}const eu=Symbol("_vei");function Uv(e,t,n,s,i=null){const r=e[eu]||(e[eu]={}),o=r[t];if(s&&o)o.value=s;else{const[l,a]=Kv(t);if(s){const c=r[t]=zv(s,i);en(e,l,c,a)}else o&&(Hv(e,l,o,a),r[t]=void 0)}}const tu=/(?:Once|Passive|Capture)$/;function Kv(e){let t;if(tu.test(e)){t={};let s;for(;s=e.match(tu);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Xe(e.slice(2)),t]}let Po=0;const qv=Promise.resolve(),Wv=()=>Po||(qv.then(()=>Po=0),Po=Date.now());function zv(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;mt(Gv(s,n.value),t,5,[s])};return n.value=e,n.attached=Wv(),n}function Gv(e,t){if(H(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const nu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Yv=(e,t,n,s,i,r,o,l,a)=>{const c=i==="svg";t==="class"?Pv(e,s,c):t==="style"?Lv(e,n,s):nn(t)?Sr(t)||Uv(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Jv(e,t,s,c))?Bv(e,t,s,r,o,l,a):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),jv(e,t,s,c))};function Jv(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&nu(t)&&Q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return nu(t)&&ee(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Zd(e,t){const n=js(e);class s extends ho{constructor(r){super(n,r,t)}}return s.def=n,s}/*! #__NO_SIDE_EFFECTS__ */const Xv=e=>Zd(e,up),Qv=typeof HTMLElement<"u"?HTMLElement:class{};class ho extends Qv{constructor(t,n={},s){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):(this.shadowRoot&&Be("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Dn(()=>{this._connected||(vl(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);this._ob=new MutationObserver(s=>{for(const i of s)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(s,i=!1)=>{const{props:r,styles:o}=s;let l;if(r&&!H(r))for(const a in r){const c=r[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=Er(this._props[a])),(l||(l=Object.create(null)))[Ie(a)]=!0)}this._numberProps=l,i&&this._resolveProps(s),this._applyStyles(o),this._update()},n=this._def.__asyncLoader;n?n().then(s=>t(s,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,s=H(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&s.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of s.map(Ie))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r)}})}_setAttr(t){let n=this.getAttribute(t);const s=Ie(t);this._numberProps&&this._numberProps[s]&&(n=Er(n)),this._setProp(s,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,s=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),s&&(n===!0?this.setAttribute(Xe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Xe(t),n+""):n||this.removeAttribute(Xe(t))))}_update(){vl(this._createVNode(),this.shadowRoot)}_createVNode(){const t=xe(this._def,ce({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0,n.ceReload=r=>{this._styles&&(this._styles.forEach(o=>this.shadowRoot.removeChild(o)),this._styles.length=0),this._applyStyles(r),this._instance=null,this._update()};const s=(r,o)=>{this.dispatchEvent(new CustomEvent(r,{detail:o}))};n.emit=(r,...o)=>{s(r,o),Xe(r)!==r&&s(Xe(r),o)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof ho){n.parent=i._instance,n.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const s=document.createElement("style");s.textContent=n,this.shadowRoot.appendChild(s),(this._styles||(this._styles=[])).push(s)})}}function Zv(e="$style"){{const t=Ge();if(!t)return Be("useCssModule must be called inside setup()"),me;const n=t.type.__cssModules;if(!n)return Be("Current instance does not have CSS modules injected."),me;const s=n[e];return s||(Be(`Current instance does not have CSS module named "${e}".`),me)}}const ep=new WeakMap,tp=new WeakMap,Mr=Symbol("_moveCb"),su=Symbol("_enterCb"),np={name:"TransitionGroup",props:ce({},Iv,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ge(),s=va();let i,r;return Mi(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!rb(i[0].el,n.vnode.el,o))return;i.forEach(nb),i.forEach(sb);const l=i.filter(ib);Jd(),l.forEach(a=>{const c=a.el,f=c.style;Jt(c,o),f.transform=f.webkitTransform=f.transitionDuration="";const u=c[Mr]=d=>{d&&d.target!==c||(!d||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",u),c[Mr]=null,pn(c,o))};c.addEventListener("transitionend",u)})}),()=>{const o=se(e),l=Gd(o);let a=o.tag||De;i=r,r=t.default?oo(t.default()):[];for(let c=0;c<r.length;c++){const f=r[c];f.key!=null?is(f,Ts(f,l,s,n)):Be("<TransitionGroup> children must be keyed.")}if(i)for(let c=0;c<i.length;c++){const f=i[c];is(f,Ts(f,l,s,n)),ep.set(f,f.el.getBoundingClientRect())}return xe(a,null,r)}}},eb=e=>delete e.mode;np.props;const tb=np;function nb(e){const t=e.el;t[Mr]&&t[Mr](),t[su]&&t[su]()}function sb(e){tp.set(e,e.el.getBoundingClientRect())}function ib(e){const t=ep.get(e),n=tp.get(e),s=t.left-n.left,i=t.top-n.top;if(s||i){const r=e.el.style;return r.transform=r.webkitTransform=`translate(${s}px,${i}px)`,r.transitionDuration="0s",e}}function rb(e,t,n){const s=e.cloneNode(),i=e[Os];i&&i.forEach(l=>{l.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:o}=Yd(s);return r.removeChild(s),o}const Pn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?n=>_n(t,n):t};function ob(e){e.target.composing=!0}function iu(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ct=Symbol("_assign"),$r={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[Ct]=Pn(i);const r=s||i.props&&i.props.type==="number";en(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),r&&(l=fi(l)),e[Ct](l)}),n&&en(e,"change",()=>{e.value=e.value.trim()}),t||(en(e,"compositionstart",ob),en(e,"compositionend",iu),en(e,"change",iu))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:i}},r){if(e[Ct]=Pn(r),e.composing)return;const o=i||e.type==="number"?fi(e.value):e.value,l=t??"";o!==l&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===l)||(e.value=l))}},Ia={deep:!0,created(e,t,n){e[Ct]=Pn(n),en(e,"change",()=>{const s=e._modelValue,i=As(e),r=e.checked,o=e[Ct];if(H(s)){const l=Xr(s,i),a=l!==-1;if(r&&!a)o(s.concat(i));else if(!r&&a){const c=[...s];c.splice(l,1),o(c)}}else if(as(s)){const l=new Set(s);r?l.add(i):l.delete(i),o(l)}else o(ip(e,r))})},mounted:ru,beforeUpdate(e,t,n){e[Ct]=Pn(n),ru(e,t,n)}};function ru(e,{value:t,oldValue:n},s){e._modelValue=t,H(t)?e.checked=Xr(t,s.props.value)>-1:as(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Nn(t,ip(e,!0)))}const Na={created(e,{value:t},n){e.checked=Nn(t,n.props.value),e[Ct]=Pn(n),en(e,"change",()=>{e[Ct](As(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Ct]=Pn(s),t!==n&&(e.checked=Nn(t,s.props.value))}},sp={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const i=as(t);en(e,"change",()=>{const r=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?fi(As(o)):As(o));e[Ct](e.multiple?i?new Set(r):r:r[0]),e._assigning=!0,Dn(()=>{e._assigning=!1})}),e[Ct]=Pn(s)},mounted(e,{value:t,modifiers:{number:n}}){ou(e,t,n)},beforeUpdate(e,t,n){e[Ct]=Pn(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||ou(e,t,n)}};function ou(e,t,n){const s=e.multiple,i=H(t);if(s&&!i&&!as(t)){Be(`<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(t).slice(8,-1)}.`);return}for(let r=0,o=e.options.length;r<o;r++){const l=e.options[r],a=As(l);if(s)if(i){const c=typeof a;c==="string"||c==="number"?l.selected=t.includes(n?fi(a):a):l.selected=Xr(t,a)>-1}else l.selected=t.has(a);else if(Nn(As(l),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}function As(e){return"_value"in e?e._value:e.value}function ip(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const rp={created(e,t,n){nr(e,t,n,null,"created")},mounted(e,t,n){nr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){nr(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){nr(e,t,n,s,"updated")}};function op(e,t){switch(e){case"SELECT":return sp;case"TEXTAREA":return $r;default:switch(t){case"checkbox":return Ia;case"radio":return Na;default:return $r}}}function nr(e,t,n,s,i){const o=op(e.tagName,n.props&&n.props.type)[i];o&&o(e,t,n,s)}function lb(){$r.getSSRProps=({value:e})=>({value:e}),Na.getSSRProps=({value:e},t)=>{if(t.props&&Nn(t.props.value,e))return{checked:!0}},Ia.getSSRProps=({value:e},t)=>{if(H(e)){if(t.props&&Xr(e,t.props.value)>-1)return{checked:!0}}else if(as(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},rp.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=op(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const ab=["ctrl","shift","alt","meta"],cb={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ab.some(n=>e[`${n}Key`]&&!t.includes(n))},ub=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(i,...r)=>{for(let o=0;o<t.length;o++){const l=cb[t[o]];if(l&&l(i,t))return}return e(i,...r)})},fb={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},db=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=i=>{if(!("key"in i))return;const r=Xe(i.key);if(t.some(o=>o===r||fb[o]===r))return e(i)})},lp=ce({patchProp:Yv},Rv);let ii,lu=!1;function ap(){return ii||(ii=xd(lp))}function cp(){return ii=lu?ii:Od(lp),lu=!0,ii}const vl=(...e)=>{ap().render(...e)},up=(...e)=>{cp().hydrate(...e)},pb=(...e)=>{const t=ap().createApp(...e);dp(t),pp(t);const{mount:n}=t;return t.mount=s=>{const i=hp(s);if(!i)return;const r=t._component;!Q(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,fp(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t},hb=(...e)=>{const t=cp().createApp(...e);dp(t),pp(t);const{mount:n}=t;return t.mount=s=>{const i=hp(s);if(i)return n(i,!0,fp(i))},t};function fp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function dp(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>Gl(t)||hf(t)||mf(t),writable:!1})}function pp(e){if(Oa()){const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){Be("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,s='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return Be(s),n},set(){Be(s)}})}}function hp(e){if(ee(e)){const t=document.querySelector(e);return t||Be(`Failed to mount app: mount target selector "${e}" returned null.`),t}return window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&Be('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}let au=!1;const mb=()=>{au||(au=!0,lb(),Mv())},gb=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:id,BaseTransitionPropsValidators:ba,Comment:$e,DeprecationTypes:xv,EffectScope:Jl,ErrorCodes:vg,ErrorTypeStrings:bv,Fragment:De,KeepAlive:sy,ReactiveEffect:Cs,Static:Rn,Suspense:Wg,Teleport:nv,Text:kn,TrackOpTypes:dg,Transition:Aa,TransitionGroup:tb,TriggerOpTypes:pg,VueElement:ho,assertNumber:la,callWithAsyncErrorHandling:mt,callWithErrorHandling:Ht,camelize:Ie,capitalize:Ut,cloneVNode:Tt,compatUtils:Tv,computed:ae,createApp:pb,createBlock:Ea,createCommentVNode:av,createElementBlock:sv,createElementVNode:Ca,createHydrationRenderer:Od,createPropsRestProxy:Ey,createRenderer:xd,createSSRApp:hb,createSlots:oy,createStaticVNode:lv,createTextVNode:Ta,createVNode:xe,customRef:to,defineAsyncComponent:ty,defineComponent:js,defineCustomElement:Zd,defineEmits:hy,defineExpose:my,defineModel:vy,defineOptions:gy,defineProps:py,defineSSRCustomElement:Xv,defineSlots:yy,devtools:_v,effect:Fm,effectScope:vf,getCurrentInstance:Ge,getCurrentScope:Xl,getTransitionRawChildren:oo,guardReactiveProps:$d,h:xs,handleError:Ln,hasInjectionContext:Py,hydrate:up,initCustomFormatter:qd,initDirectivesForSSR:mb,inject:Et,isMemoSame:Wd,isProxy:di,isReactive:xn,isReadonly:sn,isRef:Te,isRuntimeOnly:Oa,isShallow:On,isVNode:rn,markRaw:na,mergeDefaults:Sy,mergeModels:wy,mergeProps:Ld,nextTick:Dn,normalizeClass:Vs,normalizeProps:Em,normalizeStyle:Ds,onActivated:od,onBeforeMount:cd,onBeforeUnmount:ao,onBeforeUpdate:ud,onDeactivated:ld,onErrorCaptured:hd,onMounted:cs,onRenderTracked:pd,onRenderTriggered:dd,onScopeDispose:_f,onServerPrefetch:fd,onUnmounted:$i,onUpdated:Mi,openBlock:co,popScopeId:Lg,provide:_s,proxyRefs:oa,pushScopeId:Fg,queuePostFlushCb:mi,reactive:it,readonly:Rt,ref:ne,registerRuntimeCompiler:Bd,render:vl,renderList:ry,renderSlot:ly,resolveComponent:Yf,resolveDirective:Kg,resolveDynamicComponent:Ug,resolveFilter:Cv,resolveTransitionHooks:Ts,setBlockTracking:al,setDevtoolsHook:Sv,setTransitionHooks:is,shallowReactive:ta,shallowReadonly:qn,shallowRef:ra,ssrContextKey:Qf,ssrUtils:Ev,stop:Lm,toDisplayString:Mm,toHandlerKey:Dt,toHandlers:ay,toRaw:se,toRef:Df,toRefs:Lf,toValue:lg,transformVNodeArgs:iv,triggerRef:og,unref:Ze,useAttrs:_y,useCssModule:Zv,useCssVars:$v,useModel:yv,useSSRContext:Zf,useSlots:gd,useTransitionState:va,vModelCheckbox:Ia,vModelDynamic:rp,vModelRadio:Na,vModelSelect:sp,vModelText:$r,vShow:Ra,version:ml,warn:Be,watch:Ee,watchEffect:ya,watchPostEffect:ed,watchSyncEffect:td,withAsyncContext:Cy,withCtx:da,withDefaults:by,withDirectives:Zg,withKeys:db,withMemo:vv,withModifiers:ub,withScopeId:Dg},Symbol.toStringTag,{value:"Module"}));/**
* @vue/compiler-core v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Si=Symbol("Fragment"),ri=Symbol("Teleport"),ka=Symbol("Suspense"),Fr=Symbol("KeepAlive"),mp=Symbol("BaseTransition"),ls=Symbol("openBlock"),gp=Symbol("createBlock"),yp=Symbol("createElementBlock"),Pa=Symbol("createVNode"),Ma=Symbol("createElementVNode"),Li=Symbol("createCommentVNode"),$a=Symbol("createTextVNode"),vp=Symbol("createStaticVNode"),Fa=Symbol("resolveComponent"),La=Symbol("resolveDynamicComponent"),Da=Symbol("resolveDirective"),Va=Symbol("resolveFilter"),ja=Symbol("withDirectives"),Ba=Symbol("renderList"),bp=Symbol("renderSlot"),_p=Symbol("createSlots"),mo=Symbol("toDisplayString"),Lr=Symbol("mergeProps"),Ha=Symbol("normalizeClass"),Ua=Symbol("normalizeStyle"),wi=Symbol("normalizeProps"),Di=Symbol("guardReactiveProps"),Ka=Symbol("toHandlers"),bl=Symbol("camelize"),yb=Symbol("capitalize"),_l=Symbol("toHandlerKey"),Dr=Symbol("setBlockTracking"),vb=Symbol("pushScopeId"),bb=Symbol("popScopeId"),qa=Symbol("withCtx"),_b=Symbol("unref"),Sb=Symbol("isRef"),Wa=Symbol("withMemo"),Sp=Symbol("isMemoSame"),Rs={[Si]:"Fragment",[ri]:"Teleport",[ka]:"Suspense",[Fr]:"KeepAlive",[mp]:"BaseTransition",[ls]:"openBlock",[gp]:"createBlock",[yp]:"createElementBlock",[Pa]:"createVNode",[Ma]:"createElementVNode",[Li]:"createCommentVNode",[$a]:"createTextVNode",[vp]:"createStaticVNode",[Fa]:"resolveComponent",[La]:"resolveDynamicComponent",[Da]:"resolveDirective",[Va]:"resolveFilter",[ja]:"withDirectives",[Ba]:"renderList",[bp]:"renderSlot",[_p]:"createSlots",[mo]:"toDisplayString",[Lr]:"mergeProps",[Ha]:"normalizeClass",[Ua]:"normalizeStyle",[wi]:"normalizeProps",[Di]:"guardReactiveProps",[Ka]:"toHandlers",[bl]:"camelize",[yb]:"capitalize",[_l]:"toHandlerKey",[Dr]:"setBlockTracking",[vb]:"pushScopeId",[bb]:"popScopeId",[qa]:"withCtx",[_b]:"unref",[Sb]:"isRef",[Wa]:"withMemo",[Sp]:"isMemoSame"};function wb(e){Object.getOwnPropertySymbols(e).forEach(t=>{Rs[t]=e[t]})}const yt={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Eb(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:yt}}function Ei(e,t,n,s,i,r,o,l=!1,a=!1,c=!1,f=yt){return e&&(l?(e.helper(ls),e.helper(ks(e.inSSR,c))):e.helper(Ns(e.inSSR,c)),o&&e.helper(ja)),{type:13,tag:t,props:n,children:s,patchFlag:i,dynamicProps:r,directives:o,isBlock:l,disableTracking:a,isComponent:c,loc:f}}function Vi(e,t=yt){return{type:17,loc:t,elements:e}}function St(e,t=yt){return{type:15,loc:t,properties:e}}function ke(e,t){return{type:16,loc:yt,key:ee(e)?oe(e,!0):e,value:t}}function oe(e,t=!1,n=yt,s=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:s}}function Nt(e,t=yt){return{type:8,loc:t,children:e}}function Ve(e,t=[],n=yt){return{type:14,loc:n,callee:e,arguments:t}}function Is(e,t=void 0,n=!1,s=!1,i=yt){return{type:18,params:e,returns:t,newline:n,isSlot:s,loc:i}}function Sl(e,t,n,s=!0){return{type:19,test:e,consequent:t,alternate:n,newline:s,loc:yt}}function Cb(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:yt}}function Tb(e){return{type:21,body:e,loc:yt}}function Ns(e,t){return e||t?Pa:Ma}function ks(e,t){return e||t?gp:yp}function za(e,{helper:t,removeHelper:n,inSSR:s}){e.isBlock||(e.isBlock=!0,n(Ns(s,e.isComponent)),t(ls),t(ks(s,e.isComponent)))}const cu=new Uint8Array([123,123]),uu=new Uint8Array([125,125]);function fu(e){return e>=97&&e<=122||e>=65&&e<=90}function ht(e){return e===32||e===10||e===9||e===12||e===13}function fn(e){return e===47||e===62||ht(e)}function Vr(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Ke={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class xb{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=cu,this.delimiterClose=uu,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=cu,this.delimiterClose=uu}getPos(t){let n=1,s=t+1;for(let i=this.newlines.length-1;i>=0;i--){const r=this.newlines[i];if(t>r){n=i+2,s=t-r;break}}return{column:s,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?fn(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||ht(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const s=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=s}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Ke.TitleEnd||this.currentSequence===Ke.TextareaEnd&&!this.inSFCRoot?t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Ke.Cdata[this.sequenceIndex]?++this.sequenceIndex===Ke.Cdata.length&&(this.state=28,this.currentSequence=Ke.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Ke.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):fu(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){fn(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(fn(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(Vr("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){ht(t)||(t===62?(this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1):(this.state=fu(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||ht(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?(this.state=7,this.peek()!==62&&this.cbs.onerr(22,this.index)):t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):ht(t)||(t===61&&this.cbs.onerr(19,this.index),this.handleAttrStart(t))}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):ht(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){t===61||fn(t)?(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):(t===34||t===39||t===60)&&this.cbs.onerr(17,this.index)}stateInDirName(t){t===61||fn(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||fn(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||fn(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t),this.cbs.onerr(27,this.index))}stateInDirModifier(t){t===61||fn(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):ht(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):ht(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){ht(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===34||t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Ke.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Ke.ScriptEnd[3]?this.startSpecial(Ke.ScriptEnd,4):t===Ke.StyleEnd[3]?this.startSpecial(Ke.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Ke.TitleEnd[3]?this.startSpecial(Ke.TitleEnd,4):t===Ke.TextareaEnd[3]?this.startSpecial(Ke.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===Ke.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const Ob={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function wl(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function In(e,t){const n=wl("MODE",t),s=wl(e,t);return n===3?s===!0:s!==!1}function Ps(e,t,n,...s){const i=In(e,t);return i&&jr(e,t,n,...s),i}function jr(e,t,n,...s){if(wl(e,t)==="suppress-warning")return;const{message:r,link:o}=Ob[e],l=`(deprecation ${e}) ${typeof r=="function"?r(...s):r}${o?`
Details: ${o}`:""}`,a=new SyntaxError(l);a.code=e,n&&(a.loc=n),t.onWarn(a)}function Ga(e){throw e}function wp(e){console.warn(`[Vue warn] ${e.message}`)}function we(e,t,n,s){const i=(n||Ab)[e]+(s||""),r=new SyntaxError(String(i));return r.code=e,r.loc=t,r}const Ab={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '<' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""},dt=e=>e.type===4&&e.isStatic;function Ep(e){switch(e){case"Teleport":case"teleport":return ri;case"Suspense":case"suspense":return ka;case"KeepAlive":case"keep-alive":return Fr;case"BaseTransition":case"base-transition":return mp}}const Rb=/^\d|[^\$\w]/,Ya=e=>!Rb.test(e),Ib=/[A-Za-z_$\xA0-\uFFFF]/,Nb=/[\.\?\w$\xA0-\uFFFF]/,kb=/\s+[.[]\s*|\s*[.[]\s+/g,Pb=e=>{e=e.trim().replace(kb,o=>o.trim());let t=0,n=[],s=0,i=0,r=null;for(let o=0;o<e.length;o++){const l=e.charAt(o);switch(t){case 0:if(l==="[")n.push(t),t=1,s++;else if(l==="(")n.push(t),t=2,i++;else if(!(o===0?Ib:Nb).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(n.push(t),t=3,r=l):l==="["?s++:l==="]"&&(--s||(t=n.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")n.push(t),t=3,r=l;else if(l==="(")i++;else if(l===")"){if(o===e.length-1)return!1;--i||(t=n.pop())}break;case 3:l===r&&(t=n.pop(),r=null);break}}return!s&&!i},Cp=Pb;function du(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function _t(e,t,n=!1){for(let s=0;s<e.props.length;s++){const i=e.props[s];if(i.type===7&&(n||i.exp)&&(ee(t)?i.name===t:t.test(i.name)))return i}}function Ci(e,t,n=!1,s=!1){for(let i=0;i<e.props.length;i++){const r=e.props[i];if(r.type===6){if(n)continue;if(r.name===t&&(r.value||s))return r}else if(r.name==="bind"&&(r.exp||s)&&wn(r.arg,t))return r}}function wn(e,t){return!!(e&&dt(e)&&e.content===t)}function Mb(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Mo(e){return e.type===5||e.type===2}function $b(e){return e.type===7&&e.name==="slot"}function Br(e){return e.type===1&&e.tagType===3}function Hr(e){return e.type===1&&e.tagType===2}const Fb=new Set([wi,Di]);function Tp(e,t=[]){if(e&&!ee(e)&&e.type===14){const n=e.callee;if(!ee(n)&&Fb.has(n))return Tp(e.arguments[0],t.concat(e))}return[e,t]}function Ur(e,t,n){let s,i=e.type===13?e.props:e.arguments[2],r=[],o;if(i&&!ee(i)&&i.type===14){const l=Tp(i);i=l[0],r=l[1],o=r[r.length-1]}if(i==null||ee(i))s=St([t]);else if(i.type===14){const l=i.arguments[0];!ee(l)&&l.type===15?pu(t,l)||l.properties.unshift(t):i.callee===Ka?s=Ve(n.helper(Lr),[St([t]),i]):i.arguments.unshift(St([t])),!s&&(s=i)}else i.type===15?(pu(t,i)||i.properties.unshift(t),s=i):(s=Ve(n.helper(Lr),[St([t]),i]),o&&o.callee===Di&&(o=r[r.length-2]));e.type===13?o?o.arguments[0]=s:e.props=s:o?o.arguments[0]=s:e.arguments[2]=s}function pu(e,t){let n=!1;if(e.key.type===4){const s=e.key.content;n=t.properties.some(i=>i.key.type===4&&i.key.content===s)}return n}function Ti(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,s)=>n==="-"?"_":e.charCodeAt(s).toString())}`}function Lb(e){return e.type===14&&e.callee===Wa?e.arguments[1].returns:e}const Db=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,xp={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:fr,isPreTag:fr,isCustomElement:fr,onError:Ga,onWarn:wp,comments:!0,prefixIdentifiers:!1};let ge=xp,xi=null,ns="",Je=null,ye=null,lt="",Xt=-1,Un=-1,Kr=0,vn=!1,El=null;const Ne=[],Ce=new xb(Ne,{onerr:ot,ontext(e,t){sr(qe(e,t),e,t)},ontextentity(e,t,n){sr(e,t,n)},oninterpolation(e,t){if(vn)return sr(qe(e,t),e,t);let n=e+Ce.delimiterOpen.length,s=t-Ce.delimiterClose.length;for(;ht(ns.charCodeAt(n));)n++;for(;ht(ns.charCodeAt(s-1));)s--;let i=qe(n,s);i.includes("&")&&(i=ge.decodeEntities(i,!1)),Cl({type:5,content:gr(i,!1,Le(n,s)),loc:Le(e,t)})},onopentagname(e,t){const n=qe(e,t);Je={type:1,tag:n,ns:ge.getNamespace(n,Ne[0],ge.ns),tagType:0,props:[],children:[],loc:Le(e-1,t),codegenNode:void 0}},onopentagend(e){mu(e)},onclosetag(e,t){const n=qe(e,t);if(!ge.isVoidTag(n)){let s=!1;for(let i=0;i<Ne.length;i++)if(Ne[i].tag.toLowerCase()===n.toLowerCase()){s=!0,i>0&&ot(24,Ne[0].loc.start.offset);for(let o=0;o<=i;o++){const l=Ne.shift();mr(l,t,o<i)}break}s||ot(23,Op(e,60))}},onselfclosingtag(e){var t;const n=Je.tag;Je.isSelfClosing=!0,mu(e),((t=Ne[0])==null?void 0:t.tag)===n&&mr(Ne.shift(),e)},onattribname(e,t){ye={type:6,name:qe(e,t),nameLoc:Le(e,t),value:void 0,loc:Le(e)}},ondirname(e,t){const n=qe(e,t),s=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!vn&&s===""&&ot(26,e),vn||s==="")ye={type:6,name:n,nameLoc:Le(e,t),value:void 0,loc:Le(e)};else if(ye={type:7,name:s,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?["prop"]:[],loc:Le(e)},s==="pre"){vn=Ce.inVPre=!0,El=Je;const i=Je.props;for(let r=0;r<i.length;r++)i[r].type===7&&(i[r]=zb(i[r]))}},ondirarg(e,t){if(e===t)return;const n=qe(e,t);if(vn)ye.name+=n,zn(ye.nameLoc,t);else{const s=n[0]!=="[";ye.arg=gr(s?n:n.slice(1,-1),s,Le(e,t),s?3:0)}},ondirmodifier(e,t){const n=qe(e,t);if(vn)ye.name+="."+n,zn(ye.nameLoc,t);else if(ye.name==="slot"){const s=ye.arg;s&&(s.content+="."+n,zn(s.loc,t))}else ye.modifiers.push(n)},onattribdata(e,t){lt+=qe(e,t),Xt<0&&(Xt=e),Un=t},onattribentity(e,t,n){lt+=e,Xt<0&&(Xt=t),Un=n},onattribnameend(e){const t=ye.loc.start.offset,n=qe(t,e);ye.type===7&&(ye.rawName=n),Je.props.some(s=>(s.type===7?s.rawName:s.name)===n)&&ot(2,t)},onattribend(e,t){if(Je&&ye){if(zn(ye.loc,t),e!==0)if(lt.includes("&")&&(lt=ge.decodeEntities(lt,!0)),ye.type===6)ye.name==="class"&&(lt=Rp(lt).trim()),e===1&&!lt&&ot(13,t),ye.value={type:2,content:lt,loc:e===1?Le(Xt,Un):Le(Xt-1,Un+1)},Ce.inSFCRoot&&Je.tag==="template"&&ye.name==="lang"&<&<!=="html"&&Ce.enterRCDATA(Vr("</template"),0);else{let n=0;ye.exp=gr(lt,!1,Le(Xt,Un),0,n),ye.name==="for"&&(ye.forParseResult=jb(ye.exp));let s=-1;ye.name==="bind"&&(s=ye.modifiers.indexOf("sync"))>-1&&Ps("COMPILER_V_BIND_SYNC",ge,ye.loc,ye.rawName)&&(ye.name="model",ye.modifiers.splice(s,1))}(ye.type!==7||ye.name!=="pre")&&Je.props.push(ye)}lt="",Xt=Un=-1},oncomment(e,t){ge.comments&&Cl({type:3,content:qe(e,t),loc:Le(e-4,t+3)})},onend(){const e=ns.length;if(Ce.state!==1)switch(Ce.state){case 5:case 8:ot(5,e);break;case 3:case 4:ot(25,Ce.sectionStart);break;case 28:Ce.currentSequence===Ke.CdataEnd?ot(6,e):ot(7,e);break;case 6:case 7:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:ot(9,e);break}for(let t=0;t<Ne.length;t++)mr(Ne[t],e-1),ot(24,Ne[t].loc.start.offset)},oncdata(e,t){Ne[0].ns!==0?sr(qe(e,t),e,t):ot(1,e-9)},onprocessinginstruction(e){(Ne[0]?Ne[0].ns:ge.ns)===0&&ot(21,e-1)}}),hu=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Vb=/^\(|\)$/g;function jb(e){const t=e.loc,n=e.content,s=n.match(Db);if(!s)return;const[,i,r]=s,o=(u,d,p=!1)=>{const m=t.start.offset+d,w=m+u.length;return gr(u,!1,Le(m,w),0,p?1:0)},l={source:o(r.trim(),n.indexOf(r,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let a=i.trim().replace(Vb,"").trim();const c=i.indexOf(a),f=a.match(hu);if(f){a=a.replace(hu,"").trim();const u=f[1].trim();let d;if(u&&(d=n.indexOf(u,c+a.length),l.key=o(u,d,!0)),f[2]){const p=f[2].trim();p&&(l.index=o(p,n.indexOf(p,l.key?d+u.length:c+a.length),!0))}}return a&&(l.value=o(a,c,!0)),l}function qe(e,t){return ns.slice(e,t)}function mu(e){Ce.inSFCRoot&&(Je.innerLoc=Le(e+1,e+1)),Cl(Je);const{tag:t,ns:n}=Je;n===0&&ge.isPreTag(t)&&Kr++,ge.isVoidTag(t)?mr(Je,e):(Ne.unshift(Je),(n===1||n===2)&&(Ce.inXML=!0)),Je=null}function sr(e,t,n){var s;{const o=(s=Ne[0])==null?void 0:s.tag;o!=="script"&&o!=="style"&&e.includes("&")&&(e=ge.decodeEntities(e,!1))}const i=Ne[0]||xi,r=i.children[i.children.length-1];(r==null?void 0:r.type)===2?(r.content+=e,zn(r.loc,n)):i.children.push({type:2,content:e,loc:Le(t,n)})}function mr(e,t,n=!1){n?zn(e.loc,Op(t,60)):zn(e.loc,t+1),Ce.inSFCRoot&&(e.children.length?e.innerLoc.end=ce({},e.children[e.children.length-1].loc.end):e.innerLoc.end=ce({},e.innerLoc.start),e.innerLoc.source=qe(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:s,ns:i}=e;vn||(s==="slot"?e.tagType=2:gu(e)?e.tagType=3:Hb(e)&&(e.tagType=1)),Ce.inRCDATA||(e.children=Ap(e.children,e.tag)),i===0&&ge.isPreTag(s)&&Kr--,El===e&&(vn=Ce.inVPre=!1,El=null),Ce.inXML&&(Ne[0]?Ne[0].ns:ge.ns)===0&&(Ce.inXML=!1);{const r=e.props;if(In("COMPILER_V_IF_V_FOR_PRECEDENCE",ge)){let l=!1,a=!1;for(let c=0;c<r.length;c++){const f=r[c];if(f.type===7&&(f.name==="if"?l=!0:f.name==="for"&&(a=!0)),l&&a){jr("COMPILER_V_IF_V_FOR_PRECEDENCE",ge,e.loc);break}}}if(!Ce.inSFCRoot&&In("COMPILER_NATIVE_TEMPLATE",ge)&&e.tag==="template"&&!gu(e)){jr("COMPILER_NATIVE_TEMPLATE",ge,e.loc);const l=Ne[0]||xi,a=l.children.indexOf(e);l.children.splice(a,1,...e.children)}const o=r.find(l=>l.type===6&&l.name==="inline-template");o&&Ps("COMPILER_INLINE_TEMPLATE",ge,o.loc)&&e.children.length&&(o.value={type:2,content:qe(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:o.loc})}}function Op(e,t){let n=e;for(;ns.charCodeAt(n)!==t&&n>=0;)n--;return n}const Bb=new Set(["if","else","else-if","for","slot"]);function gu({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&Bb.has(t[n].name))return!0}return!1}function Hb({tag:e,props:t}){var n;if(ge.isCustomElement(e))return!1;if(e==="component"||Ub(e.charCodeAt(0))||Ep(e)||(n=ge.isBuiltInComponent)!=null&&n.call(ge,e)||ge.isNativeTag&&!ge.isNativeTag(e))return!0;for(let s=0;s<t.length;s++){const i=t[s];if(i.type===6){if(i.name==="is"&&i.value){if(i.value.content.startsWith("vue:"))return!0;if(Ps("COMPILER_IS_ON_ELEMENT",ge,i.loc))return!0}}else if(i.name==="bind"&&wn(i.arg,"is")&&Ps("COMPILER_IS_ON_ELEMENT",ge,i.loc))return!0}return!1}function Ub(e){return e>64&&e<91}const Kb=/\r\n/g;function Ap(e,t){var n,s;const i=ge.whitespace!=="preserve";let r=!1;for(let o=0;o<e.length;o++){const l=e[o];if(l.type===2)if(Kr)l.content=l.content.replace(Kb,`
`);else if(qb(l.content)){const a=(n=e[o-1])==null?void 0:n.type,c=(s=e[o+1])==null?void 0:s.type;!a||!c||i&&(a===3&&(c===3||c===1)||a===1&&(c===3||c===1&&Wb(l.content)))?(r=!0,e[o]=null):l.content=" "}else i&&(l.content=Rp(l.content))}if(Kr&&t&&ge.isPreTag(t)){const o=e[0];o&&o.type===2&&(o.content=o.content.replace(/^\r?\n/,""))}return r?e.filter(Boolean):e}function qb(e){for(let t=0;t<e.length;t++)if(!ht(e.charCodeAt(t)))return!1;return!0}function Wb(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Rp(e){let t="",n=!1;for(let s=0;s<e.length;s++)ht(e.charCodeAt(s))?n||(t+=" ",n=!0):(t+=e[s],n=!1);return t}function Cl(e){(Ne[0]||xi).children.push(e)}function Le(e,t){return{start:Ce.getPos(e),end:t==null?t:Ce.getPos(t),source:t==null?t:qe(e,t)}}function zn(e,t){e.end=Ce.getPos(t),e.source=qe(e.start.offset,t)}function zb(e){const t={type:6,name:e.rawName,nameLoc:Le(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function gr(e,t=!1,n,s=0,i=0){return oe(e,t,n,s)}function ot(e,t,n){ge.onError(we(e,Le(t,t),void 0,n))}function Gb(){Ce.reset(),Je=null,ye=null,lt="",Xt=-1,Un=-1,Ne.length=0}function Yb(e,t){if(Gb(),ns=e,ge=ce({},xp),t){let i;for(i in t)t[i]!=null&&(ge[i]=t[i])}if(!ge.decodeEntities)throw new Error("[@vue/compiler-core] decodeEntities option is required in browser builds.");Ce.mode=ge.parseMode==="html"?1:ge.parseMode==="sfc"?2:0,Ce.inXML=ge.ns===1||ge.ns===2;const n=t==null?void 0:t.delimiters;n&&(Ce.delimiterOpen=Vr(n[0]),Ce.delimiterClose=Vr(n[1]));const s=xi=Eb([],e);return Ce.parse(ns),s.loc=Le(0,e.length),s.children=Ap(s.children),xi=null,s}function Jb(e,t){yr(e,t,Ip(e,e.children[0]))}function Ip(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!Hr(t)}function yr(e,t,n=!1){const{children:s}=e,i=s.length;let r=0;for(let o=0;o<s.length;o++){const l=s[o];if(l.type===1&&l.tagType===0){const a=n?0:wt(l,t);if(a>0){if(a>=2){l.codegenNode.patchFlag="-1 /* HOISTED */",l.codegenNode=t.hoist(l.codegenNode),r++;continue}}else{const c=l.codegenNode;if(c.type===13){const f=Mp(c);if((!f||f===512||f===1)&&kp(l,t)>=2){const u=Pp(l);u&&(c.props=t.hoist(u))}c.dynamicProps&&(c.dynamicProps=t.hoist(c.dynamicProps))}}}if(l.type===1){const a=l.tagType===1;a&&t.scopes.vSlot++,yr(l,t),a&&t.scopes.vSlot--}else if(l.type===11)yr(l,t,l.children.length===1);else if(l.type===9)for(let a=0;a<l.branches.length;a++)yr(l.branches[a],t,l.branches[a].children.length===1)}if(r&&t.transformHoist&&t.transformHoist(s,t,e),r&&r===i&&e.type===1&&e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&H(e.codegenNode.children)){const o=t.hoist(Vi(e.codegenNode.children));t.hmr&&(o.content=`[...${o.content}]`),e.codegenNode.children=o}}function wt(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const s=n.get(e);if(s!==void 0)return s;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject")return 0;if(Mp(i))return n.set(e,0),0;{let l=3;const a=kp(e,t);if(a===0)return n.set(e,0),0;a<l&&(l=a);for(let c=0;c<e.children.length;c++){const f=wt(e.children[c],t);if(f===0)return n.set(e,0),0;f<l&&(l=f)}if(l>1)for(let c=0;c<e.props.length;c++){const f=e.props[c];if(f.type===7&&f.name==="bind"&&f.exp){const u=wt(f.exp,t);if(u===0)return n.set(e,0),0;u<l&&(l=u)}}if(i.isBlock){for(let c=0;c<e.props.length;c++)if(e.props[c].type===7)return n.set(e,0),0;t.removeHelper(ls),t.removeHelper(ks(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Ns(t.inSSR,i.isComponent))}return n.set(e,l),l}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return wt(e.content,t);case 4:return e.constType;case 8:let o=3;for(let l=0;l<e.children.length;l++){const a=e.children[l];if(ee(a)||kt(a))continue;const c=wt(a,t);if(c===0)return 0;c<o&&(o=c)}return o;default:return 0}}const Xb=new Set([Ha,Ua,wi,Di]);function Np(e,t){if(e.type===14&&!ee(e.callee)&&Xb.has(e.callee)){const n=e.arguments[0];if(n.type===4)return wt(n,t);if(n.type===14)return Np(n,t)}return 0}function kp(e,t){let n=3;const s=Pp(e);if(s&&s.type===15){const{properties:i}=s;for(let r=0;r<i.length;r++){const{key:o,value:l}=i[r],a=wt(o,t);if(a===0)return a;a<n&&(n=a);let c;if(l.type===4?c=wt(l,t):l.type===14?c=Np(l,t):c=0,c===0)return c;c<n&&(n=c)}}return n}function Pp(e){const t=e.codegenNode;if(t.type===13)return t.props}function Mp(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function Qb(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:s=!1,hmr:i=!1,cacheHandlers:r=!1,nodeTransforms:o=[],directiveTransforms:l={},transformHoist:a=null,isBuiltInComponent:c=Me,isCustomElement:f=Me,expressionPlugins:u=[],scopeId:d=null,slotted:p=!0,ssr:m=!1,inSSR:w=!1,ssrCssVars:E="",bindingMetadata:y=me,inline:_=!1,isTS:g=!1,onError:b=Ga,onWarn:S=wp,compatConfig:A}){const C=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),T={filename:t,selfName:C&&Ut(Ie(C[1])),prefixIdentifiers:n,hoistStatic:s,hmr:i,cacheHandlers:r,nodeTransforms:o,directiveTransforms:l,transformHoist:a,isBuiltInComponent:c,isCustomElement:f,expressionPlugins:u,scopeId:d,slotted:p,ssr:m,inSSR:w,ssrCssVars:E,bindingMetadata:y,inline:_,isTS:g,onError:b,onWarn:S,compatConfig:A,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new WeakMap,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(O){const x=T.helpers.get(O)||0;return T.helpers.set(O,x+1),O},removeHelper(O){const x=T.helpers.get(O);if(x){const N=x-1;N?T.helpers.set(O,N):T.helpers.delete(O)}},helperString(O){return`_${Rs[T.helper(O)]}`},replaceNode(O){{if(!T.currentNode)throw new Error("Node being replaced is already removed.");if(!T.parent)throw new Error("Cannot replace root node.")}T.parent.children[T.childIndex]=T.currentNode=O},removeNode(O){if(!T.parent)throw new Error("Cannot remove root node.");const x=T.parent.children,N=O?x.indexOf(O):T.currentNode?T.childIndex:-1;if(N<0)throw new Error("node being removed is not a child of current parent");!O||O===T.currentNode?(T.currentNode=null,T.onNodeRemoved()):T.childIndex>N&&(T.childIndex--,T.onNodeRemoved()),T.parent.children.splice(N,1)},onNodeRemoved:Me,addIdentifiers(O){},removeIdentifiers(O){},hoist(O){ee(O)&&(O=oe(O)),T.hoists.push(O);const x=oe(`_hoisted_${T.hoists.length}`,!1,O.loc,2);return x.hoisted=O,x},cache(O,x=!1){return Cb(T.cached++,O,x)}};return T.filters=new Set,T}function Zb(e,t){const n=Qb(e,t);go(e,n),t.hoistStatic&&Jb(e,n),t.ssr||e0(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function e0(e,t){const{helper:n}=t,{children:s}=e;if(s.length===1){const i=s[0];if(Ip(e,i)&&i.codegenNode){const r=i.codegenNode;r.type===13&&za(r,t),e.codegenNode=r}else e.codegenNode=i}else if(s.length>1){let i=64,r=jt[64];s.filter(o=>o.type!==3).length===1&&(i|=2048,r+=`, ${jt[2048]}`),e.codegenNode=Ei(t,n(Si),void 0,e.children,i+` /* ${r} */`,void 0,void 0,!0,void 0,!1)}}function t0(e,t){let n=0;const s=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];ee(i)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=s,go(i,t))}}function go(e,t){t.currentNode=e;const{nodeTransforms:n}=t,s=[];for(let r=0;r<n.length;r++){const o=n[r](e,t);if(o&&(H(o)?s.push(...o):s.push(o)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Li);break;case 5:t.ssr||t.helper(mo);break;case 9:for(let r=0;r<e.branches.length;r++)go(e.branches[r],t);break;case 10:case 11:case 1:case 0:t0(e,t);break}t.currentNode=e;let i=s.length;for(;i--;)s[i]()}function $p(e,t){const n=ee(e)?s=>s===e:s=>e.test(s);return(s,i)=>{if(s.type===1){const{props:r}=s;if(s.tagType===3&&r.some($b))return;const o=[];for(let l=0;l<r.length;l++){const a=r[l];if(a.type===7&&n(a.name)){r.splice(l,1),l--;const c=t(s,a,i);c&&o.push(c)}}return o}}}const yo="/*#__PURE__*/",Fp=e=>`${Rs[e]}: _${Rs[e]}`;function n0(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:s=!1,filename:i="template.vue.html",scopeId:r=null,optimizeImports:o=!1,runtimeGlobalName:l="Vue",runtimeModuleName:a="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:f=!1,isTS:u=!1,inSSR:d=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:s,filename:i,scopeId:r,optimizeImports:o,runtimeGlobalName:l,runtimeModuleName:a,ssrRuntimeModuleName:c,ssr:f,isTS:u,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(w){return`_${Rs[w]}`},push(w,E=-2,y){p.code+=w},indent(){m(++p.indentLevel)},deindent(w=!1){w?--p.indentLevel:m(--p.indentLevel)},newline(){m(p.indentLevel)}};function m(w){p.push(`
`+" ".repeat(w),0)}return p}function s0(e,t={}){const n=n0(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:s,push:i,prefixIdentifiers:r,indent:o,deindent:l,newline:a,scopeId:c,ssr:f}=n,u=Array.from(e.helpers),d=u.length>0,p=!r&&s!=="module";i0(e,n);const w=f?"ssrRender":"render",y=(f?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${w}(${y}) {`),o(),p&&(i("with (_ctx) {"),o(),d&&(i(`const { ${u.map(Fp).join(", ")} } = _Vue
`,-1),a())),e.components.length&&($o(e.components,"component",n),(e.directives.length||e.temps>0)&&a()),e.directives.length&&($o(e.directives,"directive",n),e.temps>0&&a()),e.filters&&e.filters.length&&(a(),$o(e.filters,"filter",n),a()),e.temps>0){i("let ");for(let _=0;_<e.temps;_++)i(`${_>0?", ":""}_temp${_}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
`,0),a()),f||i("return "),e.codegenNode?et(e.codegenNode,n):i("null"),p&&(l(),i("}")),l(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function i0(e,t){const{ssr:n,prefixIdentifiers:s,push:i,newline:r,runtimeModuleName:o,runtimeGlobalName:l,ssrRuntimeModuleName:a}=t,c=l,f=Array.from(e.helpers);if(f.length>0&&(i(`const _Vue = ${c}
`,-1),e.hoists.length)){const u=[Pa,Ma,Li,$a,vp].filter(d=>f.includes(d)).map(Fp).join(", ");i(`const { ${u} } = _Vue
`,-1)}r0(e.hoists,t),r(),i("return ")}function $o(e,t,{helper:n,push:s,newline:i,isTS:r}){const o=n(t==="filter"?Va:t==="component"?Fa:Da);for(let l=0;l<e.length;l++){let a=e[l];const c=a.endsWith("__self");c&&(a=a.slice(0,-6)),s(`const ${Ti(a,t)} = ${o}(${JSON.stringify(a)}${c?", true":""})${r?"!":""}`),l<e.length-1&&i()}}function r0(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:s,helper:i,scopeId:r,mode:o}=t;s();for(let l=0;l<e.length;l++){const a=e[l];a&&(n(`const _hoisted_${l+1} = `),et(a,t),s())}t.pure=!1}function o0(e){return ee(e)||e.type===4||e.type===2||e.type===5||e.type===8}function Ja(e,t){const n=e.length>3||e.some(s=>H(s)||!o0(s));t.push("["),n&&t.indent(),ji(e,t,n),n&&t.deindent(),t.push("]")}function ji(e,t,n=!1,s=!0){const{push:i,newline:r}=t;for(let o=0;o<e.length;o++){const l=e[o];ee(l)?i(l,-3):H(l)?Ja(l,t):et(l,t),o<e.length-1&&(n?(s&&i(","),r()):s&&i(", "))}}function et(e,t){if(ee(e)){t.push(e,-3);return}if(kt(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:du(e.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),et(e.codegenNode,t);break;case 2:l0(e,t);break;case 4:Lp(e,t);break;case 5:a0(e,t);break;case 12:et(e.codegenNode,t);break;case 8:Dp(e,t);break;case 3:u0(e,t);break;case 13:f0(e,t);break;case 14:p0(e,t);break;case 15:h0(e,t);break;case 17:m0(e,t);break;case 18:g0(e,t);break;case 19:y0(e,t);break;case 20:v0(e,t);break;case 21:ji(e.body,t,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:return du(!1,`unhandled codegen node type: ${e.type}`),e}}function l0(e,t){t.push(JSON.stringify(e.content),-3,e)}function Lp(e,t){const{content:n,isStatic:s}=e;t.push(s?JSON.stringify(n):n,-3,e)}function a0(e,t){const{push:n,helper:s,pure:i}=t;i&&n(yo),n(`${s(mo)}(`),et(e.content,t),n(")")}function Dp(e,t){for(let n=0;n<e.children.length;n++){const s=e.children[n];ee(s)?t.push(s,-3):et(s,t)}}function c0(e,t){const{push:n}=t;if(e.type===8)n("["),Dp(e,t),n("]");else if(e.isStatic){const s=Ya(e.content)?e.content:JSON.stringify(e.content);n(s,-2,e)}else n(`[${e.content}]`,-3,e)}function u0(e,t){const{push:n,helper:s,pure:i}=t;i&&n(yo),n(`${s(Li)}(${JSON.stringify(e.content)})`,-3,e)}function f0(e,t){const{push:n,helper:s,pure:i}=t,{tag:r,props:o,children:l,patchFlag:a,dynamicProps:c,directives:f,isBlock:u,disableTracking:d,isComponent:p}=e;f&&n(s(ja)+"("),u&&n(`(${s(ls)}(${d?"true":""}), `),i&&n(yo);const m=u?ks(t.inSSR,p):Ns(t.inSSR,p);n(s(m)+"(",-2,e),ji(d0([r,o,l,a,c]),t),n(")"),u&&n(")"),f&&(n(", "),et(f,t),n(")"))}function d0(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function p0(e,t){const{push:n,helper:s,pure:i}=t,r=ee(e.callee)?e.callee:s(e.callee);i&&n(yo),n(r+"(",-2,e),ji(e.arguments,t),n(")")}function h0(e,t){const{push:n,indent:s,deindent:i,newline:r}=t,{properties:o}=e;if(!o.length){n("{}",-2,e);return}const l=o.length>1||o.some(a=>a.value.type!==4);n(l?"{":"{ "),l&&s();for(let a=0;a<o.length;a++){const{key:c,value:f}=o[a];c0(c,t),n(": "),et(f,t),a<o.length-1&&(n(","),r())}l&&i(),n(l?"}":" }")}function m0(e,t){Ja(e.elements,t)}function g0(e,t){const{push:n,indent:s,deindent:i}=t,{params:r,returns:o,body:l,newline:a,isSlot:c}=e;c&&n(`_${Rs[qa]}(`),n("(",-2,e),H(r)?ji(r,t):r&&et(r,t),n(") => "),(a||l)&&(n("{"),s()),o?(a&&n("return "),H(o)?Ja(o,t):et(o,t)):l&&et(l,t),(a||l)&&(i(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function y0(e,t){const{test:n,consequent:s,alternate:i,newline:r}=e,{push:o,indent:l,deindent:a,newline:c}=t;if(n.type===4){const u=!Ya(n.content);u&&o("("),Lp(n,t),u&&o(")")}else o("("),et(n,t),o(")");r&&l(),t.indentLevel++,r||o(" "),o("? "),et(s,t),t.indentLevel--,r&&c(),r||o(" "),o(": ");const f=i.type===19;f||t.indentLevel++,et(i,t),f||t.indentLevel--,r&&a(!0)}function v0(e,t){const{push:n,helper:s,indent:i,deindent:r,newline:o}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(i(),n(`${s(Dr)}(-1),`),o()),n(`_cache[${e.index}] = `),et(e.value,t),e.isVNode&&(n(","),o(),n(`${s(Dr)}(1),`),o(),n(`_cache[${e.index}]`),r()),n(")")}const b0=new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b"),_0=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Gn(e,t,n=!1,s=!1){const i=e.content;if(i.trim())try{new Function(s?` ${i} `:`return ${n?`(${i}) => {}`:`(${i})`}`)}catch(r){let o=r.message;const l=i.replace(_0,"").match(b0);l&&(o=`avoid using JavaScript keyword as property name: "${l[0]}"`),t.onError(we(45,e.loc,void 0,o))}}const S0=(e,t)=>{if(e.type===5)e.content=Fo(e.content,t);else if(e.type===1)for(let n=0;n<e.props.length;n++){const s=e.props[n];if(s.type===7&&s.name!=="for"){const i=s.exp,r=s.arg;i&&i.type===4&&!(s.name==="on"&&r)&&(s.exp=Fo(i,t,s.name==="slot")),r&&r.type===4&&!r.isStatic&&(s.arg=Fo(r,t))}}};function Fo(e,t,n=!1,s=!1,i=Object.create(t.identifiers)){return Gn(e,t,n,s),e}const w0=$p(/^(if|else|else-if)$/,(e,t,n)=>E0(e,t,n,(s,i,r)=>{const o=n.parent.children;let l=o.indexOf(s),a=0;for(;l-->=0;){const c=o[l];c&&c.type===9&&(a+=c.branches.length)}return()=>{if(r)s.codegenNode=vu(i,a,n);else{const c=T0(s.codegenNode);c.alternate=vu(i,a+s.branches.length-1,n)}}}));function E0(e,t,n,s){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(we(28,t.loc)),t.exp=oe("true",!1,i)}if(t.exp&&Gn(t.exp,n),t.name==="if"){const i=yu(e,t),r={type:9,loc:e.loc,branches:[i]};if(n.replaceNode(r),s)return s(r,i,!0)}else{const i=n.parent.children,r=[];let o=i.indexOf(e);for(;o-->=-1;){const l=i[o];if(l&&l.type===3){n.removeNode(l),r.unshift(l);continue}if(l&&l.type===2&&!l.content.trim().length){n.removeNode(l);continue}if(l&&l.type===9){t.name==="else-if"&&l.branches[l.branches.length-1].condition===void 0&&n.onError(we(30,e.loc)),n.removeNode();const a=yu(e,t);r.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag==="transition"||n.parent.tag==="Transition"))&&(a.children=[...r,...a.children]);{const f=a.userKey;f&&l.branches.forEach(({userKey:u})=>{C0(u,f)&&n.onError(we(29,a.userKey.loc))})}l.branches.push(a);const c=s&&s(l,a,!1);go(a,n),c&&c(),n.currentNode=null}else n.onError(we(30,e.loc));break}}}function yu(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!_t(e,"for")?e.children:[e],userKey:Ci(e,"key"),isTemplateIf:n}}function vu(e,t,n){return e.condition?Sl(e.condition,bu(e,t,n),Ve(n.helper(Li),['"v-if"',"true"])):bu(e,t,n)}function bu(e,t,n){const{helper:s}=n,i=ke("key",oe(`${t}`,!1,yt,2)),{children:r}=e,o=r[0];if(r.length!==1||o.type!==1)if(r.length===1&&o.type===11){const a=o.codegenNode;return Ur(a,i,n),a}else{let a=64,c=jt[64];return!e.isTemplateIf&&r.filter(f=>f.type!==3).length===1&&(a|=2048,c+=`, ${jt[2048]}`),Ei(n,s(Si),St([i]),r,a+` /* ${c} */`,void 0,void 0,!0,!1,!1,e.loc)}else{const a=o.codegenNode,c=Lb(a);return c.type===13&&za(c,n),Ur(c,i,n),a}}function C0(e,t){if(!e||e.type!==t.type)return!1;if(e.type===6){if(e.value.content!==t.value.content)return!1}else{const n=e.exp,s=t.exp;if(n.type!==s.type||n.type!==4||n.isStatic!==s.isStatic||n.content!==s.content)return!1}return!0}function T0(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const x0=$p("for",(e,t,n)=>{const{helper:s,removeHelper:i}=n;return O0(e,t,n,r=>{const o=Ve(s(Ba),[r.source]),l=Br(e),a=_t(e,"memo"),c=Ci(e,"key"),f=c&&(c.type===6?oe(c.value.content,!0):c.exp),u=c?ke("key",f):null,d=r.source.type===4&&r.source.constType>0,p=d?64:c?128:256;return r.codegenNode=Ei(n,s(Si),void 0,o,p+` /* ${jt[p]} */`,void 0,void 0,!0,!d,!1,e.loc),()=>{let m;const{children:w}=r;l&&e.children.some(_=>{if(_.type===1){const g=Ci(_,"key");if(g)return n.onError(we(33,g.loc)),!0}});const E=w.length!==1||w[0].type!==1,y=Hr(e)?e:l&&e.children.length===1&&Hr(e.children[0])?e.children[0]:null;if(y?(m=y.codegenNode,l&&u&&Ur(m,u,n)):E?m=Ei(n,s(Si),u?St([u]):void 0,e.children,`64 /* ${jt[64]} */`,void 0,void 0,!0,void 0,!1):(m=w[0].codegenNode,l&&u&&Ur(m,u,n),m.isBlock!==!d&&(m.isBlock?(i(ls),i(ks(n.inSSR,m.isComponent))):i(Ns(n.inSSR,m.isComponent))),m.isBlock=!d,m.isBlock?(s(ls),s(ks(n.inSSR,m.isComponent))):s(Ns(n.inSSR,m.isComponent))),a){const _=Is(Tl(r.parseResult,[oe("_cached")]));_.body=Tb([Nt(["const _memo = (",a.exp,")"]),Nt(["if (_cached",...f?[" && _cached.key === ",f]:[],` && ${n.helperString(Sp)}(_cached, _memo)) return _cached`]),Nt(["const _item = ",m]),oe("_item.memo = _memo"),oe("return _item")]),o.arguments.push(_,oe("_cache"),oe(String(n.cached++)))}else o.arguments.push(Is(Tl(r.parseResult),m,!0))}})});function O0(e,t,n,s){if(!t.exp){n.onError(we(31,t.loc));return}const i=t.forParseResult;if(!i){n.onError(we(32,t.loc));return}Vp(i,n);const{addIdentifiers:r,removeIdentifiers:o,scopes:l}=n,{source:a,value:c,key:f,index:u}=i,d={type:11,loc:t.loc,source:a,valueAlias:c,keyAlias:f,objectIndexAlias:u,parseResult:i,children:Br(e)?e.children:[e]};n.replaceNode(d),l.vFor++;const p=s&&s(d);return()=>{l.vFor--,p&&p()}}function Vp(e,t){e.finalized||(Gn(e.source,t),e.key&&Gn(e.key,t,!0),e.index&&Gn(e.index,t,!0),e.value&&Gn(e.value,t,!0),e.finalized=!0)}function Tl({value:e,key:t,index:n},s=[]){return A0([e,t,n,...s])}function A0(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,s)=>n||oe("_".repeat(s+1),!1))}const _u=oe("undefined",!1),R0=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=_t(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},I0=(e,t,n,s)=>Is(e,n,!1,!0,n.length?n[0].loc:s);function N0(e,t,n=I0){t.helper(qa);const{children:s,loc:i}=e,r=[],o=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const a=_t(e,"slot",!0);if(a){const{arg:E,exp:y}=a;E&&!dt(E)&&(l=!0),r.push(ke(E||oe("default",!0),n(y,void 0,s,i)))}let c=!1,f=!1;const u=[],d=new Set;let p=0;for(let E=0;E<s.length;E++){const y=s[E];let _;if(!Br(y)||!(_=_t(y,"slot",!0))){y.type!==3&&u.push(y);continue}if(a){t.onError(we(37,_.loc));break}c=!0;const{children:g,loc:b}=y,{arg:S=oe("default",!0),exp:A,loc:C}=_;let T;dt(S)?T=S?S.content:"default":l=!0;const O=_t(y,"for"),x=n(A,O,g,b);let N,I;if(N=_t(y,"if"))l=!0,o.push(Sl(N.exp,ir(S,x,p++),_u));else if(I=_t(y,/^else(-if)?$/,!0)){let j=E,G;for(;j--&&(G=s[j],G.type===3););if(G&&Br(G)&&_t(G,"if")){s.splice(E,1),E--;let te=o[o.length-1];for(;te.alternate.type===19;)te=te.alternate;te.alternate=I.exp?Sl(I.exp,ir(S,x,p++),_u):ir(S,x,p++)}else t.onError(we(30,I.loc))}else if(O){l=!0;const j=O.forParseResult;j?(Vp(j,t),o.push(Ve(t.helper(Ba),[j.source,Is(Tl(j),ir(S,x),!0)]))):t.onError(we(32,O.loc))}else{if(T){if(d.has(T)){t.onError(we(38,C));continue}d.add(T),T==="default"&&(f=!0)}r.push(ke(S,x))}}if(!a){const E=(y,_)=>{const g=n(y,void 0,_,i);return t.compatConfig&&(g.isNonScopedSlot=!0),ke("default",g)};c?u.length&&u.some(y=>jp(y))&&(f?t.onError(we(39,u[0].loc)):r.push(E(void 0,u))):r.push(E(void 0,s))}const m=l?2:vr(e.children)?3:1;let w=St(r.concat(ke("_",oe(m+` /* ${mm[m]} */`,!1))),i);return o.length&&(w=Ve(t.helper(_p),[w,Vi(o)])),{slots:w,hasDynamicSlots:l}}function ir(e,t,n){const s=[ke("name",e),ke("fn",t)];return n!=null&&s.push(ke("key",oe(String(n),!0))),St(s)}function vr(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||vr(n.children))return!0;break;case 9:if(vr(n.branches))return!0;break;case 10:case 11:if(vr(n.children))return!0;break}}return!1}function jp(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():jp(e.content)}const Bp=new WeakMap,k0=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:s,props:i}=e,r=e.tagType===1;let o=r?P0(e,t):`"${s}"`;const l=he(o)&&o.callee===La;let a,c,f,u=0,d,p,m,w=l||o===ri||o===ka||!r&&(s==="svg"||s==="foreignObject");if(i.length>0){const E=Hp(e,t,void 0,r,l);a=E.props,u=E.patchFlag,p=E.dynamicPropNames;const y=E.directives;m=y&&y.length?Vi(y.map(_=>$0(_,t))):void 0,E.shouldUseBlock&&(w=!0)}if(e.children.length>0)if(o===Fr&&(w=!0,u|=1024,e.children.length>1&&t.onError(we(46,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}))),r&&o!==ri&&o!==Fr){const{slots:y,hasDynamicSlots:_}=N0(e,t);c=y,_&&(u|=1024)}else if(e.children.length===1&&o!==ri){const y=e.children[0],_=y.type,g=_===5||_===8;g&&wt(y,t)===0&&(u|=1),g||_===2?c=y:c=e.children}else c=e.children;if(u!==0){if(u<0)f=u+` /* ${jt[u]} */`;else{const E=Object.keys(jt).map(Number).filter(y=>y>0&&u&y).map(y=>jt[y]).join(", ");f=u+` /* ${E} */`}p&&p.length&&(d=F0(p))}e.codegenNode=Ei(t,o,a,c,f,d,m,!!w,!1,r,e.loc)};function P0(e,t,n=!1){let{tag:s}=e;const i=xl(s),r=Ci(e,"is");if(r)if(i||In("COMPILER_IS_ON_ELEMENT",t)){const l=r.type===6?r.value&&oe(r.value.content,!0):r.exp;if(l)return Ve(t.helper(La),[l])}else r.type===6&&r.value.content.startsWith("vue:")&&(s=r.value.content.slice(4));const o=Ep(s)||t.isBuiltInComponent(s);return o?(n||t.helper(o),o):(t.helper(Fa),t.components.add(s),Ti(s,"component"))}function Hp(e,t,n=e.props,s,i,r=!1){const{tag:o,loc:l,children:a}=e;let c=[];const f=[],u=[],d=a.length>0;let p=!1,m=0,w=!1,E=!1,y=!1,_=!1,g=!1,b=!1;const S=[],A=O=>{c.length&&(f.push(St(Su(c),l)),c=[]),O&&f.push(O)},C=({key:O,value:x})=>{if(dt(O)){const N=O.content,I=nn(N);if(I&&(!s||i)&&N.toLowerCase()!=="onclick"&&N!=="onUpdate:modelValue"&&!Cn(N)&&(_=!0),I&&Cn(N)&&(b=!0),I&&x.type===14&&(x=x.arguments[0]),x.type===20||(x.type===4||x.type===8)&&wt(x,t)>0)return;N==="ref"?w=!0:N==="class"?E=!0:N==="style"?y=!0:N!=="key"&&!S.includes(N)&&S.push(N),s&&(N==="class"||N==="style")&&!S.includes(N)&&S.push(N)}else g=!0};for(let O=0;O<n.length;O++){const x=n[O];if(x.type===6){const{loc:N,name:I,nameLoc:j,value:G}=x;let te=!0;if(I==="ref"&&(w=!0,t.scopes.vFor>0&&c.push(ke(oe("ref_for",!0),oe("true")))),I==="is"&&(xl(o)||G&&G.content.startsWith("vue:")||In("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(ke(oe(I,!0,j),oe(G?G.content:"",te,G?G.loc:N)))}else{const{name:N,arg:I,exp:j,loc:G,modifiers:te}=x,z=N==="bind",J=N==="on";if(N==="slot"){s||t.onError(we(40,G));continue}if(N==="once"||N==="memo"||N==="is"||z&&wn(I,"is")&&(xl(o)||In("COMPILER_IS_ON_ELEMENT",t))||J&&r)continue;if((z&&wn(I,"key")||J&&d&&wn(I,"vue:before-update"))&&(p=!0),z&&wn(I,"ref")&&t.scopes.vFor>0&&c.push(ke(oe("ref_for",!0),oe("true"))),!I&&(z||J)){if(g=!0,j)if(z){if(A(),f.some(Ye=>Ye.type===15?Ye.properties.some(({key:rt})=>rt.type!==4||!rt.isStatic?!0:rt.content!=="class"&&rt.content!=="style"&&!nn(rt.content)):!0)&&Ps("COMPILER_V_BIND_OBJECT_ORDER",t,G),In("COMPILER_V_BIND_OBJECT_ORDER",t)){f.unshift(j);continue}f.push(j)}else A({type:14,loc:G,callee:t.helper(Ka),arguments:s?[j]:[j,"true"]});else t.onError(we(z?34:35,G));continue}z&&te.includes("prop")&&(m|=32);const W=t.directiveTransforms[N];if(W){const{props:Fe,needRuntime:Ye}=W(x,e,t);!r&&Fe.forEach(C),J&&I&&!dt(I)?A(St(Fe,l)):c.push(...Fe),Ye&&(u.push(x),kt(Ye)&&Bp.set(x,Ye))}else df(N)||(u.push(x),d&&(p=!0))}}let T;if(f.length?(A(),f.length>1?T=Ve(t.helper(Lr),f,l):T=f[0]):c.length&&(T=St(Su(c),l)),g?m|=16:(E&&!s&&(m|=2),y&&!s&&(m|=4),S.length&&(m|=8),_&&(m|=32)),!p&&(m===0||m===32)&&(w||b||u.length>0)&&(m|=512),!t.inSSR&&T)switch(T.type){case 15:let O=-1,x=-1,N=!1;for(let G=0;G<T.properties.length;G++){const te=T.properties[G].key;dt(te)?te.content==="class"?O=G:te.content==="style"&&(x=G):te.isHandlerKey||(N=!0)}const I=T.properties[O],j=T.properties[x];N?T=Ve(t.helper(wi),[T]):(I&&!dt(I.value)&&(I.value=Ve(t.helper(Ha),[I.value])),j&&(y||j.value.type===4&&j.value.content.trim()[0]==="["||j.value.type===17)&&(j.value=Ve(t.helper(Ua),[j.value])));break;case 14:break;default:T=Ve(t.helper(wi),[Ve(t.helper(Di),[T])]);break}return{props:T,directives:u,patchFlag:m,dynamicPropNames:S,shouldUseBlock:p}}function Su(e){const t=new Map,n=[];for(let s=0;s<e.length;s++){const i=e[s];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}const r=i.key.content,o=t.get(r);o?(r==="style"||r==="class"||nn(r))&&M0(o,i):(t.set(r,i),n.push(i))}return n}function M0(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Vi([e.value,t.value],e.loc)}function $0(e,t){const n=[],s=Bp.get(e);s?n.push(t.helperString(s)):(t.helper(Da),t.directives.add(e.name),n.push(Ti(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const r=oe("true",!1,i);n.push(St(e.modifiers.map(o=>ke(o,r)),i))}return Vi(n,e.loc)}function F0(e){let t="[";for(let n=0,s=e.length;n<s;n++)t+=JSON.stringify(e[n]),n<s-1&&(t+=", ");return t+"]"}function xl(e){return e==="component"||e==="Component"}const L0=(e,t)=>{if(Hr(e)){const{children:n,loc:s}=e,{slotName:i,slotProps:r}=D0(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let l=2;r&&(o[2]=r,l=3),n.length&&(o[3]=Is([],n,!1,!1,s),l=4),t.scopeId&&!t.slotted&&(l=5),o.splice(l),e.codegenNode=Ve(t.helper(bp),o,s)}};function D0(e,t){let n='"default"',s;const i=[];for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===6)o.value&&(o.name==="name"?n=JSON.stringify(o.value.content):(o.name=Ie(o.name),i.push(o)));else if(o.name==="bind"&&wn(o.arg,"name")){if(o.exp)n=o.exp;else if(o.arg&&o.arg.type===4){const l=Ie(o.arg.content);n=o.exp=oe(l,!1,o.arg.loc)}}else o.name==="bind"&&o.arg&&dt(o.arg)&&(o.arg.content=Ie(o.arg.content)),i.push(o)}if(i.length>0){const{props:r,directives:o}=Hp(e,t,i,!1,!1);s=r,o.length&&t.onError(we(36,o[0].loc))}return{slotName:n,slotProps:s}}const V0=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Up=(e,t,n,s)=>{const{loc:i,modifiers:r,arg:o}=e;!e.exp&&!r.length&&n.onError(we(35,i));let l;if(o.type===4)if(o.isStatic){let u=o.content;u.startsWith("vnode")&&n.onError(we(51,o.loc)),u.startsWith("vue:")&&(u=`vnode-${u.slice(4)}`);const d=t.tagType!==0||u.startsWith("vnode")||!/[A-Z]/.test(u)?Dt(Ie(u)):`on:${u}`;l=oe(d,!0,o.loc)}else l=Nt([`${n.helperString(_l)}(`,o,")"]);else l=o,l.children.unshift(`${n.helperString(_l)}(`),l.children.push(")");let a=e.exp;a&&!a.content.trim()&&(a=void 0);let c=n.cacheHandlers&&!a&&!n.inVOnce;if(a){const u=Cp(a.content),d=!(u||V0.test(a.content)),p=a.content.includes(";");Gn(a,n,!1,p),(d||c&&u)&&(a=Nt([`${d?"$event":"(...args)"} => ${p?"{":"("}`,a,p?"}":")"]))}let f={props:[ke(l,a||oe("() => {}",!1,i))]};return s&&(f=s(f)),c&&(f.props[0].value=n.cache(f.props[0].value)),f.props.forEach(u=>u.key.isHandlerKey=!0),f},j0=(e,t,n)=>{const{modifiers:s,loc:i}=e,r=e.arg;let{exp:o}=e;if(o&&o.type===4&&!o.content.trim()&&(o=void 0),!o){if(r.type!==4||!r.isStatic)return n.onError(we(52,r.loc)),{props:[ke(r,oe("",!0,i))]};const l=Ie(r.content);o=e.exp=oe(l,!1,r.loc)}return r.type!==4?(r.children.unshift("("),r.children.push(') || ""')):r.isStatic||(r.content=`${r.content} || ""`),s.includes("camel")&&(r.type===4?r.isStatic?r.content=Ie(r.content):r.content=`${n.helperString(bl)}(${r.content})`:(r.children.unshift(`${n.helperString(bl)}(`),r.children.push(")"))),n.inSSR||(s.includes("prop")&&wu(r,"."),s.includes("attr")&&wu(r,"^")),{props:[ke(r,o)]}},wu=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},B0=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let s,i=!1;for(let r=0;r<n.length;r++){const o=n[r];if(Mo(o)){i=!0;for(let l=r+1;l<n.length;l++){const a=n[l];if(Mo(a))s||(s=n[r]=Nt([o],o.loc)),s.children.push(" + ",a),n.splice(l,1),l--;else{s=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(r=>r.type===7&&!t.directiveTransforms[r.name])&&e.tag!=="template")))for(let r=0;r<n.length;r++){const o=n[r];if(Mo(o)||o.type===8){const l=[];(o.type!==2||o.content!==" ")&&l.push(o),!t.ssr&&wt(o,t)===0&&l.push(`1 /* ${jt[1]} */`),n[r]={type:12,content:o,loc:o.loc,codegenNode:Ve(t.helper($a),l)}}}}},Eu=new WeakSet,H0=(e,t)=>{if(e.type===1&&_t(e,"once",!0))return Eu.has(e)||t.inVOnce||t.inSSR?void 0:(Eu.add(e),t.inVOnce=!0,t.helper(Dr),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},Kp=(e,t,n)=>{const{exp:s,arg:i}=e;if(!s)return n.onError(we(41,e.loc)),rr();const r=s.loc.source,o=s.type===4?s.content:r,l=n.bindingMetadata[r];if(l==="props"||l==="props-aliased")return n.onError(we(44,s.loc)),rr();if(!o.trim()||!Cp(o)&&!!1)return n.onError(we(42,s.loc)),rr();const c=i||oe("modelValue",!0),f=i?dt(i)?`onUpdate:${Ie(i.content)}`:Nt(['"onUpdate:" + ',i]):"onUpdate:modelValue";let u;const d=n.isTS?"($event: any)":"$event";u=Nt([`${d} => ((`,s,") = $event)"]);const p=[ke(c,e.exp),ke(f,u)];if(e.modifiers.length&&t.tagType===1){const m=e.modifiers.map(E=>(Ya(E)?E:JSON.stringify(E))+": true").join(", "),w=i?dt(i)?`${i.content}Modifiers`:Nt([i,' + "Modifiers"']):"modelModifiers";p.push(ke(w,oe(`{ ${m} }`,!1,e.loc,2)))}return rr(p)};function rr(e=[]){return{props:e}}const U0=/[\w).+\-_$\]]/,K0=(e,t)=>{In("COMPILER_FILTERS",t)&&(e.type===5&&qr(e.content,t),e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&qr(n.exp,t)}))};function qr(e,t){if(e.type===4)Cu(e,t);else for(let n=0;n<e.children.length;n++){const s=e.children[n];typeof s=="object"&&(s.type===4?Cu(s,t):s.type===8?qr(e,t):s.type===5&&qr(s.content,t))}}function Cu(e,t){const n=e.content;let s=!1,i=!1,r=!1,o=!1,l=0,a=0,c=0,f=0,u,d,p,m,w=[];for(p=0;p<n.length;p++)if(d=u,u=n.charCodeAt(p),s)u===39&&d!==92&&(s=!1);else if(i)u===34&&d!==92&&(i=!1);else if(r)u===96&&d!==92&&(r=!1);else if(o)u===47&&d!==92&&(o=!1);else if(u===124&&n.charCodeAt(p+1)!==124&&n.charCodeAt(p-1)!==124&&!l&&!a&&!c)m===void 0?(f=p+1,m=n.slice(0,p).trim()):E();else{switch(u){case 34:i=!0;break;case 39:s=!0;break;case 96:r=!0;break;case 40:c++;break;case 41:c--;break;case 91:a++;break;case 93:a--;break;case 123:l++;break;case 125:l--;break}if(u===47){let y=p-1,_;for(;y>=0&&(_=n.charAt(y),_===" ");y--);(!_||!U0.test(_))&&(o=!0)}}m===void 0?m=n.slice(0,p).trim():f!==0&&E();function E(){w.push(n.slice(f,p).trim()),f=p+1}if(w.length){for(jr("COMPILER_FILTERS",t,e.loc),p=0;p<w.length;p++)m=q0(m,w[p],t);e.content=m}}function q0(e,t,n){n.helper(Va);const s=t.indexOf("(");if(s<0)return n.filters.add(t),`${Ti(t,"filter")}(${e})`;{const i=t.slice(0,s),r=t.slice(s+1);return n.filters.add(i),`${Ti(i,"filter")}(${e}${r!==")"?","+r:r}`}}const Tu=new WeakSet,W0=(e,t)=>{if(e.type===1){const n=_t(e,"memo");return!n||Tu.has(e)?void 0:(Tu.add(e),()=>{const s=e.codegenNode||t.currentNode.codegenNode;s&&s.type===13&&(e.tagType!==1&&za(s,t),e.codegenNode=Ve(t.helper(Wa),[n.exp,Is(void 0,s),"_cache",String(t.cached++)]))})}};function z0(e){return[[H0,w0,W0,x0,K0,S0,L0,k0,R0,B0],{on:Up,bind:j0,model:Kp}]}function G0(e,t={}){const n=t.onError||Ga,s=t.mode==="module";t.prefixIdentifiers===!0?n(we(47)):s&&n(we(48));const i=!1;t.cacheHandlers&&n(we(49)),t.scopeId&&!s&&n(we(50));const r=ce({},t,{prefixIdentifiers:i}),o=ee(e)?Yb(e,r):e,[l,a]=z0();return Zb(o,ce({},r,{nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:ce({},a,t.directiveTransforms||{})})),s0(o,r)}const Y0=()=>({props:[]});/**
* @vue/compiler-dom v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const qp=Symbol("vModelRadio"),Wp=Symbol("vModelCheckbox"),zp=Symbol("vModelText"),Gp=Symbol("vModelSelect"),Ol=Symbol("vModelDynamic"),Yp=Symbol("vOnModifiersGuard"),Jp=Symbol("vOnKeysGuard"),Xp=Symbol("vShow"),Xa=Symbol("Transition"),Qp=Symbol("TransitionGroup");wb({[qp]:"vModelRadio",[Wp]:"vModelCheckbox",[zp]:"vModelText",[Gp]:"vModelSelect",[Ol]:"vModelDynamic",[Yp]:"withModifiers",[Jp]:"withKeys",[Xp]:"vShow",[Xa]:"Transition",[Qp]:"TransitionGroup"});let ds;function J0(e,t=!1){return ds||(ds=document.createElement("div")),t?(ds.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,ds.children[0].getAttribute("foo")):(ds.innerHTML=e,ds.textContent)}const X0={parseMode:"html",isVoidTag:Am,isNativeTag:e=>Gl(e)||hf(e)||mf(e),isPreTag:e=>e==="pre",decodeEntities:J0,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return Xa;if(e==="TransitionGroup"||e==="transition-group")return Qp},getNamespace(e,t,n){let s=t?t.ns:n;if(t&&s===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(s=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(s=0);else t&&s===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(s=0);if(s===0){if(e==="svg")return 1;if(e==="math")return 2}return s}},Q0=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:oe("style",!0,t.loc),exp:Z0(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Z0=(e,t)=>{const n=pf(e);return oe(JSON.stringify(n),!1,t,3)};function It(e,t){return we(e,t,e_)}const e_={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},t_=(e,t,n)=>{const{exp:s,loc:i}=e;return s||n.onError(It(53,i)),t.children.length&&(n.onError(It(54,i)),t.children.length=0),{props:[ke(oe("innerHTML",!0,i),s||oe("",!0))]}},n_=(e,t,n)=>{const{exp:s,loc:i}=e;return s||n.onError(It(55,i)),t.children.length&&(n.onError(It(56,i)),t.children.length=0),{props:[ke(oe("textContent",!0),s?wt(s,n)>0?s:Ve(n.helperString(mo),[s],i):oe("",!0))]}},s_=(e,t,n)=>{const s=Kp(e,t,n);if(!s.props.length||t.tagType===1)return s;e.arg&&n.onError(It(58,e.arg.loc));function i(){const l=_t(t,"bind");l&&wn(l.arg,"value")&&n.onError(It(60,l.loc))}const{tag:r}=t,o=n.isCustomElement(r);if(r==="input"||r==="textarea"||r==="select"||o){let l=zp,a=!1;if(r==="input"||o){const c=Ci(t,"type");if(c){if(c.type===7)l=Ol;else if(c.value)switch(c.value.content){case"radio":l=qp;break;case"checkbox":l=Wp;break;case"file":a=!0,n.onError(It(59,e.loc));break;default:i();break}}else Mb(t)?l=Ol:i()}else r==="select"?l=Gp:i();a||(s.needRuntime=n.helper(l))}else n.onError(It(57,e.loc));return s.props=s.props.filter(l=>!(l.key.type===4&&l.key.content==="modelValue")),s},i_=Ue("passive,once,capture"),r_=Ue("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),o_=Ue("left,right"),Zp=Ue("onkeyup,onkeydown,onkeypress",!0),l_=(e,t,n,s)=>{const i=[],r=[],o=[];for(let l=0;l<t.length;l++){const a=t[l];a==="native"&&Ps("COMPILER_V_ON_NATIVE",n,s)||i_(a)?o.push(a):o_(a)?dt(e)?Zp(e.content)?i.push(a):r.push(a):(i.push(a),r.push(a)):r_(a)?r.push(a):i.push(a)}return{keyModifiers:i,nonKeyModifiers:r,eventOptionModifiers:o}},xu=(e,t)=>dt(e)&&e.content.toLowerCase()==="onclick"?oe(t,!0):e.type!==4?Nt(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,a_=(e,t,n)=>Up(e,t,n,s=>{const{modifiers:i}=e;if(!i.length)return s;let{key:r,value:o}=s.props[0];const{keyModifiers:l,nonKeyModifiers:a,eventOptionModifiers:c}=l_(r,i,n,e.loc);if(a.includes("right")&&(r=xu(r,"onContextmenu")),a.includes("middle")&&(r=xu(r,"onMouseup")),a.length&&(o=Ve(n.helper(Yp),[o,JSON.stringify(a)])),l.length&&(!dt(r)||Zp(r.content))&&(o=Ve(n.helper(Jp),[o,JSON.stringify(l)])),c.length){const f=c.map(Ut).join("");r=dt(r)?oe(`${r.content}${f}`,!0):Nt(["(",r,`) + "${f}"`])}return{props:[ke(r,o)]}}),c_=(e,t,n)=>{const{exp:s,loc:i}=e;return s||n.onError(It(61,i)),{props:[],needRuntime:n.helper(Xp)}},u_=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===Xa)return()=>{if(!e.children.length)return;eh(e)&&t.onError(It(62,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:""}));const s=e.children[0];if(s.type===1)for(const i of s.props)i.type===7&&i.name==="show"&&e.props.push({type:6,name:"persisted",nameLoc:e.loc,value:void 0,loc:e.loc})}};function eh(e){const t=e.children=e.children.filter(s=>s.type!==3&&!(s.type===2&&!s.content.trim())),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(eh)}const f_=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(t.onError(It(63,e.loc)),t.removeNode())},d_=[Q0,u_],p_={cloak:Y0,html:t_,text:n_,model:s_,on:a_,show:c_};function h_(e,t={}){return G0(e,ce({},X0,t,{nodeTransforms:[f_,...d_,...t.nodeTransforms||[]],directiveTransforms:ce({},p_,t.directiveTransforms||{}),transformHoist:null}))}/**
* vue v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function m_(){qd()}m_();const Ou=new WeakMap;function g_(e){let t=Ou.get(e??me);return t||(t=Object.create(null),Ou.set(e??me,t)),t}function y_(e,t){if(!ee(e))if(e.nodeType)e=e.innerHTML;else return Be("invalid template option: ",e),Me;const n=e,s=g_(t),i=s[n];if(i)return i;if(e[0]==="#"){const c=document.querySelector(e);c||Be(`Template element not found or is empty: ${e}`),e=c?c.innerHTML:""}const r=ce({hoistStatic:!0,onError:l,onWarn:c=>l(c,!0)},t);!r.isCustomElement&&typeof customElements<"u"&&(r.isCustomElement=c=>!!customElements.get(c));const{code:o}=h_(e,r);function l(c,f=!1){const u=f?c.message:`Template compilation error: ${c.message}`,d=c.loc&&vm(e,c.loc.start.offset,c.loc.end.offset);Be(d?`${u}
${d}`:u)}const a=new Function("Vue",o)(gb);return a._rc=!0,s[n]=a}Bd(y_);function v_(){return th().__VUE_DEVTOOLS_GLOBAL_HOOK__}function th(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const b_=typeof Proxy=="function",__="devtools-plugin:setup",S_="plugin:settings:set";let ps,Al;function w_(){var e;return ps!==void 0||(typeof window<"u"&&window.performance?(ps=!0,Al=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(ps=!0,Al=globalThis.perf_hooks.performance):ps=!1),ps}function E_(){return w_()?Al.now():Date.now()}class C_{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const s={};if(t.settings)for(const o in t.settings){const l=t.settings[o];s[o]=l.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},s);try{const o=localStorage.getItem(i),l=JSON.parse(o);Object.assign(r,l)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(i,JSON.stringify(o))}catch{}r=o},now(){return E_()}},n&&n.on(S_,(o,l)=>{o===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(o,l)=>this.target?this.target.on[l]:(...a)=>{this.onQueue.push({method:l,args:a})}}),this.proxiedTarget=new Proxy({},{get:(o,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...a)=>(this.targetQueue.push({method:l,args:a,resolve:()=>{}}),this.fallbacks[l](...a)):(...a)=>new Promise(c=>{this.targetQueue.push({method:l,args:a,resolve:c})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function T_(e,t){const n=e,s=th(),i=v_(),r=b_&&n.enableEarlyProxy;if(i&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))i.emit(__,e,t);else{const o=r?new C_(n,i):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
* vue-router v4.3.0
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/const Zt=typeof document<"u";function x_(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const be=Object.assign;function Lo(e,t){const n={};for(const s in t){const i=t[s];n[s]=gt(i)?i.map(e):e(i)}return n}const oi=()=>{},gt=Array.isArray;function ve(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const nh=/#/g,O_=/&/g,A_=/\//g,R_=/=/g,I_=/\?/g,sh=/\+/g,N_=/%5B/g,k_=/%5D/g,ih=/%5E/g,P_=/%60/g,rh=/%7B/g,M_=/%7C/g,oh=/%7D/g,$_=/%20/g;function Qa(e){return encodeURI(""+e).replace(M_,"|").replace(N_,"[").replace(k_,"]")}function F_(e){return Qa(e).replace(rh,"{").replace(oh,"}").replace(ih,"^")}function Rl(e){return Qa(e).replace(sh,"%2B").replace($_,"+").replace(nh,"%23").replace(O_,"%26").replace(P_,"`").replace(rh,"{").replace(oh,"}").replace(ih,"^")}function L_(e){return Rl(e).replace(R_,"%3D")}function D_(e){return Qa(e).replace(nh,"%23").replace(I_,"%3F")}function V_(e){return e==null?"":D_(e).replace(A_,"%2F")}function Ms(e){try{return decodeURIComponent(""+e)}catch{ve(`Error decoding "${e}". Using original value`)}return""+e}const j_=/\/$/,B_=e=>e.replace(j_,"");function Do(e,t,n="/"){let s,i={},r="",o="";const l=t.indexOf("#");let a=t.indexOf("?");return l<a&&l>=0&&(a=-1),a>-1&&(s=t.slice(0,a),r=t.slice(a+1,l>-1?l:t.length),i=e(r)),l>-1&&(s=s||t.slice(0,l),o=t.slice(l,t.length)),s=K_(s??t,n),{fullPath:s+(r&&"?")+r+o,path:s,query:i,hash:Ms(o)}}function H_(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Au(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ru(e,t,n){const s=t.matched.length-1,i=n.matched.length-1;return s>-1&&s===i&&Mn(t.matched[s],n.matched[i])&&lh(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Mn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function lh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!U_(e[n],t[n]))return!1;return!0}function U_(e,t){return gt(e)?Iu(e,t):gt(t)?Iu(t,e):e===t}function Iu(e,t){return gt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function K_(e,t){if(e.startsWith("/"))return e;if(!t.startsWith("/"))return ve(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),s=e.split("/"),i=s[s.length-1];(i===".."||i===".")&&s.push("");let r=n.length-1,o,l;for(o=0;o<s.length;o++)if(l=s[o],l!==".")if(l==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(o).join("/")}var Oi;(function(e){e.pop="pop",e.push="push"})(Oi||(Oi={}));var li;(function(e){e.back="back",e.forward="forward",e.unknown=""})(li||(li={}));function q_(e){if(!e)if(Zt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),B_(e)}const W_=/^[^#]+#/;function z_(e,t){return e.replace(W_,"#")+t}function G_(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const vo=()=>({left:window.scrollX,top:window.scrollY});function Y_(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#");if(typeof e.el=="string"&&(!s||!document.getElementById(e.el.slice(1))))try{const r=document.querySelector(e.el);if(s&&r){ve(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{ve(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const i=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i){ve(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=G_(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Nu(e,t){return(history.state?history.state.position-t:-1)+e}const Il=new Map;function J_(e,t){Il.set(e,t)}function X_(e){const t=Il.get(e);return Il.delete(e),t}let Q_=()=>location.protocol+"//"+location.host;function ah(e,t){const{pathname:n,search:s,hash:i}=t,r=e.indexOf("#");if(r>-1){let l=i.includes(e.slice(r))?e.slice(r).length:1,a=i.slice(l);return a[0]!=="/"&&(a="/"+a),Au(a,"")}return Au(n,e)+s+i}function Z_(e,t,n,s){let i=[],r=[],o=null;const l=({state:d})=>{const p=ah(e,location),m=n.value,w=t.value;let E=0;if(d){if(n.value=p,t.value=d,o&&o===m){o=null;return}E=w?d.position-w.position:0}else s(p);i.forEach(y=>{y(n.value,m,{delta:E,type:Oi.pop,direction:E?E>0?li.forward:li.back:li.unknown})})};function a(){o=n.value}function c(d){i.push(d);const p=()=>{const m=i.indexOf(d);m>-1&&i.splice(m,1)};return r.push(p),p}function f(){const{history:d}=window;d.state&&d.replaceState(be({},d.state,{scroll:vo()}),"")}function u(){for(const d of r)d();r=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:a,listen:c,destroy:u}}function ku(e,t,n,s=!1,i=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:i?vo():null}}function eS(e){const{history:t,location:n}=window,s={value:ah(e,n)},i={value:t.state};i.value||r(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(a,c,f){const u=e.indexOf("#"),d=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+a:Q_()+e+a;try{t[f?"replaceState":"pushState"](c,"",d),i.value=c}catch(p){ve("Error with push/replace State",p),n[f?"replace":"assign"](d)}}function o(a,c){const f=be({},t.state,ku(i.value.back,a,i.value.forward,!0),c,{position:i.value.position});r(a,f,!0),s.value=a}function l(a,c){const f=be({},i.value,t.state,{forward:a,scroll:vo()});t.state||ve(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
history.replaceState(history.state, '', url)
You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),r(f.current,f,!0);const u=be({},ku(s.value,a,null),{position:f.position+1},c);r(a,u,!1),s.value=a}return{location:s,state:i,push:l,replace:o}}function eC(e){e=q_(e);const t=eS(e),n=Z_(e,t.state,t.location,t.replace);function s(r,o=!0){o||n.pauseListeners(),history.go(r)}const i=be({location:"",base:e,go:s,createHref:z_.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function tS(e){return typeof e=="string"||e&&typeof e=="object"}function ch(e){return typeof e=="string"||typeof e=="symbol"}const dn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},uh=Symbol("navigation failure");var Pu;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Pu||(Pu={}));const nS={1({location:e,currentLocation:t}){return`No match for
${JSON.stringify(e)}${t?`
while being at
`+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${iS(t)}" via a navigation guard.`},4({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},8({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},16({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function $s(e,t){return be(new Error(nS[e](t)),{type:e,[uh]:!0},t)}function zt(e,t){return e instanceof Error&&uh in e&&(t==null||!!(e.type&t))}const sS=["params","query","hash"];function iS(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of sS)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const Mu="[^/]+?",rS={sensitive:!1,strict:!1,start:!0,end:!0},oS=/[.+*?^${}()[\]/\\]/g;function lS(e,t){const n=be({},rS,t),s=[];let i=n.start?"^":"";const r=[];for(const c of e){const f=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let u=0;u<c.length;u++){const d=c[u];let p=40+(n.sensitive?.25:0);if(d.type===0)u||(i+="/"),i+=d.value.replace(oS,"\\$&"),p+=40;else if(d.type===1){const{value:m,repeatable:w,optional:E,regexp:y}=d;r.push({name:m,repeatable:w,optional:E});const _=y||Mu;if(_!==Mu){p+=10;try{new RegExp(`(${_})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${m}" (${_}): `+b.message)}}let g=w?`((?:${_})(?:/(?:${_}))*)`:`(${_})`;u||(g=E&&c.length<2?`(?:/${g})`:"/"+g),E&&(g+="?"),i+=g,p+=20,E&&(p+=-8),w&&(p+=-20),_===".*"&&(p+=-50)}f.push(p)}s.push(f)}if(n.strict&&n.end){const c=s.length-1;s[c][s[c].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const o=new RegExp(i,n.sensitive?"":"i");function l(c){const f=c.match(o),u={};if(!f)return null;for(let d=1;d<f.length;d++){const p=f[d]||"",m=r[d-1];u[m.name]=p&&m.repeatable?p.split("/"):p}return u}function a(c){let f="",u=!1;for(const d of e){(!u||!f.endsWith("/"))&&(f+="/"),u=!1;for(const p of d)if(p.type===0)f+=p.value;else if(p.type===1){const{value:m,repeatable:w,optional:E}=p,y=m in c?c[m]:"";if(gt(y)&&!w)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const _=gt(y)?y.join("/"):y;if(!_)if(E)d.length<2&&(f.endsWith("/")?f=f.slice(0,-1):u=!0);else throw new Error(`Missing required param "${m}"`);f+=_}}return f||"/"}return{re:o,score:s,keys:r,parse:l,stringify:a}}function aS(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function cS(e,t){let n=0;const s=e.score,i=t.score;for(;n<s.length&&n<i.length;){const r=aS(s[n],i[n]);if(r)return r;n++}if(Math.abs(i.length-s.length)===1){if($u(s))return 1;if($u(i))return-1}return i.length-s.length}function $u(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const uS={type:0,value:""},fS=/[a-zA-Z0-9_]/;function dS(e){if(!e)return[[]];if(e==="/")return[[uS]];if(!e.startsWith("/"))throw new Error(`Route paths should start with a "/": "${e}" should be "/${e}".`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,s=n;const i=[];let r;function o(){r&&i.push(r),r=[]}let l=0,a,c="",f="";function u(){c&&(n===0?r.push({type:0,value:c}):n===1||n===2||n===3?(r.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:f,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:a==="/"?(c&&u(),o()):a===":"?(u(),n=1):d();break;case 4:d(),n=s;break;case 1:a==="("?n=2:fS.test(a)?d():(u(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case 2:a===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+a:n=3:f+=a;break;case 3:u(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&l--,f="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),u(),o(),i}function pS(e,t,n){const s=lS(dS(e.path),n);{const r=new Set;for(const o of s.keys)r.has(o.name)&&ve(`Found duplicated params with name "${o.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),r.add(o.name)}const i=be(s,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function hS(e,t){const n=[],s=new Map;t=Du({strict:!1,end:!0,sensitive:!1},t);function i(f){return s.get(f)}function r(f,u,d){const p=!d,m=mS(f);bS(m,u),m.aliasOf=d&&d.record;const w=Du(t,f),E=[m];if("alias"in f){const g=typeof f.alias=="string"?[f.alias]:f.alias;for(const b of g)E.push(be({},m,{components:d?d.record.components:m.components,path:b,aliasOf:d?d.record:m}))}let y,_;for(const g of E){const{path:b}=g;if(u&&b[0]!=="/"){const S=u.record.path,A=S[S.length-1]==="/"?"":"/";g.path=u.record.path+(b&&A+b)}if(g.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(y=pS(g,u,w),u&&b[0]==="/"&&_S(y,u),d?(d.alias.push(y),vS(d,y)):(_=_||y,_!==y&&_.alias.push(y),p&&f.name&&!Lu(y)&&o(f.name)),m.children){const S=m.children;for(let A=0;A<S.length;A++)r(S[A],y,d&&d.children[A])}d=d||y,(y.record.components&&Object.keys(y.record.components).length||y.record.name||y.record.redirect)&&a(y)}return _?()=>{o(_)}:oi}function o(f){if(ch(f)){const u=s.get(f);u&&(s.delete(f),n.splice(n.indexOf(u),1),u.children.forEach(o),u.alias.forEach(o))}else{const u=n.indexOf(f);u>-1&&(n.splice(u,1),f.record.name&&s.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function l(){return n}function a(f){let u=0;for(;u<n.length&&cS(f,n[u])>=0&&(f.record.path!==n[u].record.path||!fh(f,n[u]));)u++;n.splice(u,0,f),f.record.name&&!Lu(f)&&s.set(f.record.name,f)}function c(f,u){let d,p={},m,w;if("name"in f&&f.name){if(d=s.get(f.name),!d)throw $s(1,{location:f});{const _=Object.keys(f.params||{}).filter(g=>!d.keys.find(b=>b.name===g));_.length&&ve(`Discarded invalid param(s) "${_.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}w=d.record.name,p=be(Fu(u.params,d.keys.filter(_=>!_.optional).concat(d.parent?d.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),f.params&&Fu(f.params,d.keys.map(_=>_.name))),m=d.stringify(p)}else if(f.path!=null)m=f.path,m.startsWith("/")||ve(`The Matcher cannot resolve relative paths but received "${m}". Unless you directly called \`matcher.resolve("${m}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),d=n.find(_=>_.re.test(m)),d&&(p=d.parse(m),w=d.record.name);else{if(d=u.name?s.get(u.name):n.find(_=>_.re.test(u.path)),!d)throw $s(1,{location:f,currentLocation:u});w=d.record.name,p=be({},u.params,f.params),m=d.stringify(p)}const E=[];let y=d;for(;y;)E.unshift(y.record),y=y.parent;return{name:w,path:m,params:p,matched:E,meta:yS(E)}}return e.forEach(f=>r(f)),{addRoute:r,resolve:c,removeRoute:o,getRoutes:l,getRecordMatcher:i}}function Fu(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function mS(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:gS(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function gS(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Lu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yS(e){return e.reduce((t,n)=>be(t,n.meta),{})}function Du(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Nl(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function vS(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(Nl.bind(null,n)))return ve(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(Nl.bind(null,n)))return ve(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function bS(e,t){t&&t.record.name&&!e.name&&!e.path&&ve(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function _S(e,t){for(const n of t.keys)if(!e.keys.find(Nl.bind(null,n)))return ve(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function fh(e,t){return t.children.some(n=>n===e||fh(e,n))}function SS(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<s.length;++i){const r=s[i].replace(sh," "),o=r.indexOf("="),l=Ms(o<0?r:r.slice(0,o)),a=o<0?null:Ms(r.slice(o+1));if(l in t){let c=t[l];gt(c)||(c=t[l]=[c]),c.push(a)}else t[l]=a}return t}function Vu(e){let t="";for(let n in e){const s=e[n];if(n=L_(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(gt(s)?s.map(r=>r&&Rl(r)):[s&&Rl(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function wS(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=gt(s)?s.map(i=>i==null?null:""+i):s==null?s:""+s)}return t}const ES=Symbol("router view location matched"),ju=Symbol("router view depth"),bo=Symbol("router"),dh=Symbol("route location"),kl=Symbol("router view location");function zs(){let e=[];function t(s){return e.push(s),()=>{const i=e.indexOf(s);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function bn(e,t,n,s,i,r=o=>o()){const o=s&&(s.enterCallbacks[i]=s.enterCallbacks[i]||[]);return()=>new Promise((l,a)=>{const c=d=>{d===!1?a($s(4,{from:n,to:t})):d instanceof Error?a(d):tS(d)?a($s(2,{from:t,to:d})):(o&&s.enterCallbacks[i]===o&&typeof d=="function"&&o.push(d),l())},f=r(()=>e.call(s&&s.instances[i],t,n,CS(c,t,n)));let u=Promise.resolve(f);if(e.length<3&&(u=u.then(c)),e.length>2){const d=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
${e.toString()}
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof f=="object"&&"then"in f)u=u.then(p=>c._called?p:(ve(d),Promise.reject(new Error("Invalid navigation guard"))));else if(f!==void 0&&!c._called){ve(d),a(new Error("Invalid navigation guard"));return}}u.catch(d=>a(d))})}function CS(e,t,n){let s=0;return function(){s++===1&&ve(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,s===1&&e.apply(null,arguments)}}function Vo(e,t,n,s,i=r=>r()){const r=[];for(const o of e){!o.components&&!o.children.length&&ve(`Record with path "${o.path}" is either missing a "component(s)" or "children" property.`);for(const l in o.components){let a=o.components[l];{if(!a||typeof a!="object"&&typeof a!="function")throw ve(`Component "${l}" in record with path "${o.path}" is not a valid component. Received "${String(a)}".`),new Error("Invalid route component");if("then"in a){ve(`Component "${l}" in record with path "${o.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const c=a;a=()=>c}else a.__asyncLoader&&!a.__warnedDefineAsync&&(a.__warnedDefineAsync=!0,ve(`Component "${l}" in record with path "${o.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(TS(a)){const f=(a.__vccOpts||a)[t];f&&r.push(bn(f,n,s,o,l,i))}else{let c=a();"catch"in c||(ve(`Component "${l}" in record with path "${o.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),c=Promise.resolve(c)),r.push(()=>c.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${o.path}"`));const u=x_(f)?f.default:f;o.components[l]=u;const p=(u.__vccOpts||u)[t];return p&&bn(p,n,s,o,l,i)()}))}}}return r}function TS(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Bu(e){const t=Et(bo),n=Et(dh),s=ae(()=>t.resolve(Ze(e.to))),i=ae(()=>{const{matched:a}=s.value,{length:c}=a,f=a[c-1],u=n.matched;if(!f||!u.length)return-1;const d=u.findIndex(Mn.bind(null,f));if(d>-1)return d;const p=Hu(a[c-2]);return c>1&&Hu(f)===p&&u[u.length-1].path!==p?u.findIndex(Mn.bind(null,a[c-2])):d}),r=ae(()=>i.value>-1&&RS(n.params,s.value.params)),o=ae(()=>i.value>-1&&i.value===n.matched.length-1&&lh(n.params,s.value.params));function l(a={}){return AS(a)?t[Ze(e.replace)?"replace":"push"](Ze(e.to)).catch(oi):Promise.resolve()}if(Zt){const a=Ge();if(a){const c={route:s.value,isActive:r.value,isExactActive:o.value};a.__vrl_devtools=a.__vrl_devtools||[],a.__vrl_devtools.push(c),ya(()=>{c.route=s.value,c.isActive=r.value,c.isExactActive=o.value},{flush:"post"})}}return{route:s,href:ae(()=>s.value.href),isActive:r,isExactActive:o,navigate:l}}const xS=js({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Bu,setup(e,{slots:t}){const n=it(Bu(e)),{options:s}=Et(bo),i=ae(()=>({[Uu(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Uu(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&t.default(n);return e.custom?r:xs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}}),OS=xS;function AS(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function RS(e,t){for(const n in t){const s=t[n],i=e[n];if(typeof s=="string"){if(s!==i)return!1}else if(!gt(i)||i.length!==s.length||s.some((r,o)=>r!==i[o]))return!1}return!0}function Hu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Uu=(e,t,n)=>e??t??n,IS=js({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){kS();const s=Et(kl),i=ae(()=>e.route||s.value),r=Et(ju,0),o=ae(()=>{let c=Ze(r);const{matched:f}=i.value;let u;for(;(u=f[c])&&!u.components;)c++;return c}),l=ae(()=>i.value.matched[o.value]);_s(ju,ae(()=>o.value+1)),_s(ES,l),_s(kl,i);const a=ne();return Ee(()=>[a.value,l.value,e.name],([c,f,u],[d,p,m])=>{f&&(f.instances[u]=c,p&&p!==f&&c&&c===d&&(f.leaveGuards.size||(f.leaveGuards=p.leaveGuards),f.updateGuards.size||(f.updateGuards=p.updateGuards))),c&&f&&(!p||!Mn(f,p)||!d)&&(f.enterCallbacks[u]||[]).forEach(w=>w(c))},{flush:"post"}),()=>{const c=i.value,f=e.name,u=l.value,d=u&&u.components[f];if(!d)return Ku(n.default,{Component:d,route:c});const p=u.props[f],m=p?p===!0?c.params:typeof p=="function"?p(c):p:null,E=xs(d,be({},m,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(u.instances[f]=null)},ref:a}));if(Zt&&E.ref){const y={depth:o.value,name:u.name,path:u.path,meta:u.meta};(gt(E.ref)?E.ref.map(g=>g.i):[E.ref.i]).forEach(g=>{g.__vrv_devtools=y})}return Ku(n.default,{Component:E,route:c})||E}}});function Ku(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const NS=IS;function kS(){const e=Ge(),t=e.parent&&e.parent.type.name,n=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const s=t==="KeepAlive"?"keep-alive":"transition";ve(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
Use slot props instead:
<router-view v-slot="{ Component }">
<${s}>
<component :is="Component" />
</${s}>
</router-view>`)}}function Gs(e,t){const n=be({},e,{matched:e.matched.map(s=>BS(s,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function or(e){return{_custom:{display:e}}}let PS=0;function MS(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const s=PS++;T_({id:"org.vuejs.router"+(s?"."+s:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},i=>{typeof i.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),i.on.inspectComponent((f,u)=>{f.instanceData&&f.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Gs(t.currentRoute.value,"Current Route")})}),i.on.visitComponentTree(({treeNode:f,componentInstance:u})=>{if(u.__vrv_devtools){const d=u.__vrv_devtools;f.tags.push({label:(d.name?`${d.name.toString()}: `:"")+d.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:ph})}gt(u.__vrl_devtools)&&(u.__devtoolsApi=i,u.__vrl_devtools.forEach(d=>{let p=gh,m="";d.isExactActive?(p=mh,m="This is exactly active"):d.isActive&&(p=hh,m="This link is active"),f.tags.push({label:d.route.path,textColor:0,tooltip:m,backgroundColor:p})}))}),Ee(t.currentRoute,()=>{a(),i.notifyComponentUpdate(),i.sendInspectorTree(l),i.sendInspectorState(l)});const r="router:navigations:"+s;i.addTimelineLayer({id:r,label:`Router${s?" "+s:""} Navigations`,color:4237508}),t.onError((f,u)=>{i.addTimelineEvent({layerId:r,event:{title:"Error during Navigation",subtitle:u.fullPath,logType:"error",time:i.now(),data:{error:f},groupId:u.meta.__navigationId}})});let o=0;t.beforeEach((f,u)=>{const d={guard:or("beforeEach"),from:Gs(u,"Current Location during this navigation"),to:Gs(f,"Target location")};Object.defineProperty(f.meta,"__navigationId",{value:o++}),i.addTimelineEvent({layerId:r,event:{time:i.now(),title:"Start of navigation",subtitle:f.fullPath,data:d,groupId:f.meta.__navigationId}})}),t.afterEach((f,u,d)=>{const p={guard:or("afterEach")};d?(p.failure={_custom:{type:Error,readOnly:!0,display:d?d.message:"",tooltip:"Navigation Failure",value:d}},p.status=or("❌")):p.status=or("✅"),p.from=Gs(u,"Current Location during this navigation"),p.to=Gs(f,"Target location"),i.addTimelineEvent({layerId:r,event:{title:"End of navigation",subtitle:f.fullPath,time:i.now(),data:p,logType:d?"warning":"default",groupId:f.meta.__navigationId}})});const l="router-inspector:"+s;i.addInspector({id:l,label:"Routes"+(s?" "+s:""),icon:"book",treeFilterPlaceholder:"Search routes"});function a(){if(!c)return;const f=c;let u=n.getRoutes().filter(d=>!d.parent||!d.parent.record.components);u.forEach(bh),f.filter&&(u=u.filter(d=>Pl(d,f.filter.toLowerCase()))),u.forEach(d=>vh(d,t.currentRoute.value)),f.rootNodes=u.map(yh)}let c;i.on.getInspectorTree(f=>{c=f,f.app===e&&f.inspectorId===l&&a()}),i.on.getInspectorState(f=>{if(f.app===e&&f.inspectorId===l){const d=n.getRoutes().find(p=>p.record.__vd_id===f.nodeId);d&&(f.state={options:FS(d)})}}),i.sendInspectorTree(l),i.sendInspectorState(l)})}function $S(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function FS(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(s=>`${s.name}${$S(s)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(s=>s.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(s=>s.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const ph=15485081,hh=2450411,mh=8702998,LS=2282478,gh=16486972,DS=6710886;function yh(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:LS}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:gh}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:ph}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:mh}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:hh}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:DS});let s=n.__vd_id;return s==null&&(s=String(VS++),n.__vd_id=s),{id:s,label:n.path,tags:t,children:e.children.map(yh)}}let VS=0;const jS=/^\/(.*)\/([a-z]*)$/;function vh(e,t){const n=t.matched.length&&Mn(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(s=>Mn(s,e.record))),e.children.forEach(s=>vh(s,t))}function bh(e){e.__vd_match=!1,e.children.forEach(bh)}function Pl(e,t){const n=String(e.re).match(jS);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(o=>Pl(o,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const i=e.record.path.toLowerCase(),r=Ms(i);return!t.startsWith("/")&&(r.includes(t)||i.includes(t))||r.startsWith(t)||i.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(o=>Pl(o,t))}function BS(e,t){const n={};for(const s in e)t.includes(s)||(n[s]=e[s]);return n}function tC(e){const t=hS(e.routes,e),n=e.parseQuery||SS,s=e.stringifyQuery||Vu,i=e.history;if(!i)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const r=zs(),o=zs(),l=zs(),a=ra(dn);let c=dn;Zt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Lo.bind(null,k=>""+k),u=Lo.bind(null,V_),d=Lo.bind(null,Ms);function p(k,K){let U,Y;return ch(k)?(U=t.getRecordMatcher(k),Y=K):Y=k,t.addRoute(Y,U)}function m(k){const K=t.getRecordMatcher(k);K?t.removeRoute(K):ve(`Cannot remove non-existent route "${String(k)}"`)}function w(){return t.getRoutes().map(k=>k.record)}function E(k){return!!t.getRecordMatcher(k)}function y(k,K){if(K=be({},K||a.value),typeof k=="string"){const h=Do(n,k,K.path),v=t.resolve({path:h.path},K),R=i.createHref(h.fullPath);return R.startsWith("//")?ve(`Location "${k}" resolved to "${R}". A resolved location cannot start with multiple slashes.`):v.matched.length||ve(`No match found for location with path "${k}"`),be(h,v,{params:d(v.params),hash:Ms(h.hash),redirectedFrom:void 0,href:R})}let U;if(k.path!=null)"params"in k&&!("name"in k)&&Object.keys(k.params).length&&ve(`Path "${k.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),U=be({},k,{path:Do(n,k.path,K.path).path});else{const h=be({},k.params);for(const v in h)h[v]==null&&delete h[v];U=be({},k,{params:u(h)}),K.params=u(K.params)}const Y=t.resolve(U,K),ue=k.hash||"";ue&&!ue.startsWith("#")&&ve(`A \`hash\` should always start with the character "#". Replace "${ue}" with "#${ue}".`),Y.params=f(d(Y.params));const Oe=H_(s,be({},k,{hash:F_(ue),path:Y.path})),le=i.createHref(Oe);return le.startsWith("//")?ve(`Location "${k}" resolved to "${le}". A resolved location cannot start with multiple slashes.`):Y.matched.length||ve(`No match found for location with path "${k.path!=null?k.path:k}"`),be({fullPath:Oe,hash:ue,query:s===Vu?wS(k.query):k.query||{}},Y,{redirectedFrom:void 0,href:le})}function _(k){return typeof k=="string"?Do(n,k,a.value.path):be({},k)}function g(k,K){if(c!==k)return $s(8,{from:K,to:k})}function b(k){return C(k)}function S(k){return b(be(_(k),{replace:!0}))}function A(k){const K=k.matched[k.matched.length-1];if(K&&K.redirect){const{redirect:U}=K;let Y=typeof U=="function"?U(k):U;if(typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=_(Y):{path:Y},Y.params={}),Y.path==null&&!("name"in Y))throw ve(`Invalid redirect found:
${JSON.stringify(Y,null,2)}
when navigating to "${k.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return be({query:k.query,hash:k.hash,params:Y.path!=null?{}:k.params},Y)}}function C(k,K){const U=c=y(k),Y=a.value,ue=k.state,Oe=k.force,le=k.replace===!0,h=A(U);if(h)return C(be(_(h),{state:typeof h=="object"?be({},ue,h.state):ue,force:Oe,replace:le}),K||U);const v=U;v.redirectedFrom=K;let R;return!Oe&&Ru(s,Y,U)&&(R=$s(16,{to:v,from:Y}),rt(Y,Y,!0,!1)),(R?Promise.resolve(R):x(v,Y)).catch(P=>zt(P)?zt(P,2)?P:Ye(P):W(P,v,Y)).then(P=>{if(P){if(zt(P,2))return Ru(s,y(P.to),v)&&K&&(K._count=K._count?K._count+1:1)>30?(ve(`Detected a possibly infinite redirection in a navigation guard when going from "${Y.fullPath}" to "${v.fullPath}". Aborting to avoid a Stack Overflow.
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):C(be({replace:le},_(P.to),{state:typeof P.to=="object"?be({},ue,P.to.state):ue,force:Oe}),K||v)}else P=I(v,Y,!0,le,ue);return N(v,Y,P),P})}function T(k,K){const U=g(k,K);return U?Promise.reject(U):Promise.resolve()}function O(k){const K=ln.values().next().value;return K&&typeof K.runWithContext=="function"?K.runWithContext(k):k()}function x(k,K){let U;const[Y,ue,Oe]=HS(k,K);U=Vo(Y.reverse(),"beforeRouteLeave",k,K);for(const h of Y)h.leaveGuards.forEach(v=>{U.push(bn(v,k,K))});const le=T.bind(null,k,K);return U.push(le),an(U).then(()=>{U=[];for(const h of r.list())U.push(bn(h,k,K));return U.push(le),an(U)}).then(()=>{U=Vo(ue,"beforeRouteUpdate",k,K);for(const h of ue)h.updateGuards.forEach(v=>{U.push(bn(v,k,K))});return U.push(le),an(U)}).then(()=>{U=[];for(const h of Oe)if(h.beforeEnter)if(gt(h.beforeEnter))for(const v of h.beforeEnter)U.push(bn(v,k,K));else U.push(bn(h.beforeEnter,k,K));return U.push(le),an(U)}).then(()=>(k.matched.forEach(h=>h.enterCallbacks={}),U=Vo(Oe,"beforeRouteEnter",k,K,O),U.push(le),an(U))).then(()=>{U=[];for(const h of o.list())U.push(bn(h,k,K));return U.push(le),an(U)}).catch(h=>zt(h,8)?h:Promise.reject(h))}function N(k,K,U){l.list().forEach(Y=>O(()=>Y(k,K,U)))}function I(k,K,U,Y,ue){const Oe=g(k,K);if(Oe)return Oe;const le=K===dn,h=Zt?history.state:{};U&&(Y||le?i.replace(k.fullPath,be({scroll:le&&h&&h.scroll},ue)):i.push(k.fullPath,ue)),a.value=k,rt(k,K,U,le),Ye()}let j;function G(){j||(j=i.listen((k,K,U)=>{if(!Wi.listening)return;const Y=y(k),ue=A(Y);if(ue){C(be(ue,{replace:!0}),Y).catch(oi);return}c=Y;const Oe=a.value;Zt&&J_(Nu(Oe.fullPath,U.delta),vo()),x(Y,Oe).catch(le=>zt(le,12)?le:zt(le,2)?(C(le.to,Y).then(h=>{zt(h,20)&&!U.delta&&U.type===Oi.pop&&i.go(-1,!1)}).catch(oi),Promise.reject()):(U.delta&&i.go(-U.delta,!1),W(le,Y,Oe))).then(le=>{le=le||I(Y,Oe,!1),le&&(U.delta&&!zt(le,8)?i.go(-U.delta,!1):U.type===Oi.pop&&zt(le,20)&&i.go(-1,!1)),N(Y,Oe,le)}).catch(oi)}))}let te=zs(),z=zs(),J;function W(k,K,U){Ye(k);const Y=z.list();return Y.length?Y.forEach(ue=>ue(k,K,U)):(ve("uncaught error during route navigation:"),console.error(k)),Promise.reject(k)}function Fe(){return J&&a.value!==dn?Promise.resolve():new Promise((k,K)=>{te.add([k,K])})}function Ye(k){return J||(J=!k,G(),te.list().forEach(([K,U])=>k?U(k):K()),te.reset()),k}function rt(k,K,U,Y){const{scrollBehavior:ue}=e;if(!Zt||!ue)return Promise.resolve();const Oe=!U&&X_(Nu(k.fullPath,0))||(Y||!U)&&history.state&&history.state.scroll||null;return Dn().then(()=>ue(k,K,Oe)).then(le=>le&&Y_(le)).catch(le=>W(le,k,K))}const Mt=k=>i.go(k);let vt;const ln=new Set,Wi={currentRoute:a,listening:!0,addRoute:p,removeRoute:m,hasRoute:E,getRoutes:w,resolve:y,options:e,push:b,replace:S,go:Mt,back:()=>Mt(-1),forward:()=>Mt(1),beforeEach:r.add,beforeResolve:o.add,afterEach:l.add,onError:z.add,isReady:Fe,install(k){const K=this;k.component("RouterLink",OS),k.component("RouterView",NS),k.config.globalProperties.$router=K,Object.defineProperty(k.config.globalProperties,"$route",{enumerable:!0,get:()=>Ze(a)}),Zt&&!vt&&a.value===dn&&(vt=!0,b(i.location).catch(ue=>{ve("Unexpected error when starting the router:",ue)}));const U={};for(const ue in dn)Object.defineProperty(U,ue,{get:()=>a.value[ue],enumerable:!0});k.provide(bo,K),k.provide(dh,ta(U)),k.provide(kl,a);const Y=k.unmount;ln.add(k),k.unmount=function(){ln.delete(k),ln.size<1&&(c=dn,j&&j(),j=null,a.value=dn,vt=!1,J=!1),Y()},Zt&&MS(k,K,t)}};function an(k){return k.reduce((K,U)=>K.then(()=>O(U)),Promise.resolve())}return Wi}function HS(e,t){const n=[],s=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let o=0;o<r;o++){const l=t.matched[o];l&&(e.matched.find(c=>Mn(c,l))?s.push(l):n.push(l));const a=e.matched[o];a&&(t.matched.find(c=>Mn(c,a))||i.push(a))}return[n,s,i]}function nC(){return Et(bo)}function qt(e){return Xl()?(_f(e),!0):!1}const ws=new WeakMap,sC=(e,t)=>{var n;const s=(n=Ge())==null?void 0:n.proxy;if(s==null)throw new Error("provideLocal must be called in setup");ws.has(s)||ws.set(s,Object.create(null));const i=ws.get(s);i[e]=t,_s(e,t)},iC=(...e)=>{var t;const n=e[0],s=(t=Ge())==null?void 0:t.proxy;if(s==null)throw new Error("injectLocal must be called in setup");return ws.has(s)&&n in ws.get(s)?ws.get(s)[n]:Et(...e)};function rC(e){let t=0,n,s;const i=()=>{t-=1,s&&t<=0&&(s.stop(),n=void 0,s=void 0)};return(...r)=>(t+=1,n||(s=vf(!0),n=s.run(()=>e(...r))),qt(i),n)}function Se(e){return typeof e=="function"?e():Ze(e)}function oC(e){if(!Te(e))return it(e);const t=new Proxy({},{get(n,s,i){return Ze(Reflect.get(e.value,s,i))},set(n,s,i){return Te(e.value[s])&&!Te(i)?e.value[s].value=i:e.value[s]=i,!0},deleteProperty(n,s){return Reflect.deleteProperty(e.value,s)},has(n,s){return Reflect.has(e.value,s)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return it(t)}const Fs=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const US=e=>typeof e<"u",KS=e=>e!=null,qS=Object.prototype.toString,Wr=e=>qS.call(e)==="[object Object]",qu=()=>+Date.now(),tn=()=>{},WS=zS();function zS(){var e,t;return Fs&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function GS(e,t){function n(...s){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(i).catch(r)})}return n}const _h=e=>e();function YS(e=_h){const t=ne(!0);function n(){t.value=!1}function s(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:Rt(t),pause:n,resume:s,eventFilter:i}}function JS(e,t){var n;if(typeof e=="number")return e+t;const s=((n=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:n[0])||"",i=e.slice(s.length),r=Number.parseFloat(s)+t;return Number.isNaN(r)?e:r+i}function lC(e,t,n=!1){return Object.fromEntries(Object.entries(e).filter(([s,i])=>(!n||i!==void 0)&&!t.includes(s)))}function Sh(e){return e||Ge()}function XS(...e){if(e.length!==1)return Df(...e);const t=e[0];return typeof t=="function"?Rt(to(()=>({get:t,set:tn}))):ne(t)}function QS(e,t,n={}){const{eventFilter:s=_h,...i}=n;return Ee(e,GS(s,t),i)}function ZS(e,t,n={}){const{eventFilter:s,...i}=n,{eventFilter:r,pause:o,resume:l,isActive:a}=YS(s);return{stop:QS(e,t,{...i,eventFilter:r}),pause:o,resume:l,isActive:a}}function ew(e,t={}){if(!Te(e))return Lf(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const s in e.value)n[s]=to(()=>({get(){return e.value[s]},set(i){var r;if((r=Se(t.replaceRef))!=null?r:!0)if(Array.isArray(e.value)){const l=[...e.value];l[s]=i,e.value=l}else{const l={...e.value,[s]:i};Object.setPrototypeOf(l,Object.getPrototypeOf(e.value)),e.value=l}else e.value[s]=i}}));return n}function Bi(e,t=!0,n){Sh()?cs(e,n):t?e():Dn(e)}function tw(e,t){Sh(t)&&$i(e,t)}function nw(e,t=1e3,n={}){const{immediate:s=!0,immediateCallback:i=!1}=n;let r=null;const o=ne(!1);function l(){r&&(clearInterval(r),r=null)}function a(){o.value=!1,l()}function c(){const f=Se(t);f<=0||(o.value=!0,i&&e(),l(),r=setInterval(e,f))}if(s&&Fs&&c(),Te(t)||typeof t=="function"){const f=Ee(t,()=>{o.value&&Fs&&c()});qt(f)}return qt(a),{isActive:o,pause:a,resume:c}}function aC(e=!1,t={}){const{truthyValue:n=!0,falsyValue:s=!1}=t,i=Te(e),r=ne(e);function o(l){if(arguments.length)return r.value=l,r.value;{const a=Se(n);return r.value=r.value===a?Se(s):a,r.value}}return i?o:[r,o]}function ze(e){var t;const n=Se(e);return(t=n==null?void 0:n.$el)!=null?t:n}const He=Fs?window:void 0,wh=Fs?window.document:void 0;function fe(...e){let t,n,s,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,i]=e,t=He):[t,n,s,i]=e,!t)return tn;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const r=[],o=()=>{r.forEach(f=>f()),r.length=0},l=(f,u,d,p)=>(f.addEventListener(u,d,p),()=>f.removeEventListener(u,d,p)),a=Ee(()=>[ze(t),Se(i)],([f,u])=>{if(o(),!f)return;const d=Wr(u)?{...u}:u;r.push(...n.flatMap(p=>s.map(m=>l(f,p,m,d))))},{immediate:!0,flush:"post"}),c=()=>{a(),o()};return qt(c),c}let Wu=!1;function cC(e,t,n={}){const{window:s=He,ignore:i=[],capture:r=!0,detectIframe:o=!1}=n;if(!s)return tn;WS&&!Wu&&(Wu=!0,Array.from(s.document.body.children).forEach(d=>d.addEventListener("click",tn)),s.document.documentElement.addEventListener("click",tn));let l=!0;const a=d=>i.some(p=>{if(typeof p=="string")return Array.from(s.document.querySelectorAll(p)).some(m=>m===d.target||d.composedPath().includes(m));{const m=ze(p);return m&&(d.target===m||d.composedPath().includes(m))}}),f=[fe(s,"click",d=>{const p=ze(e);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(l=!a(d)),!l){l=!0;return}t(d)}},{passive:!0,capture:r}),fe(s,"pointerdown",d=>{const p=ze(e);l=!a(d)&&!!(p&&!d.composedPath().includes(p))},{passive:!0}),o&&fe(s,"blur",d=>{setTimeout(()=>{var p;const m=ze(e);((p=s.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(m!=null&&m.contains(s.document.activeElement))&&t(d)},0)})].filter(Boolean);return()=>f.forEach(d=>d())}function sw(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function uC(...e){let t,n,s={};e.length===3?(t=e[0],n=e[1],s=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],s=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=He,eventName:r="keydown",passive:o=!1,dedupe:l=!1}=s,a=sw(t);return fe(i,r,f=>{f.repeat&&Se(l)||a(f)&&n(f)},o)}function fC(e={}){var t;const{window:n=He,deep:s=!0}=e,i=(t=e.document)!=null?t:n==null?void 0:n.document,r=()=>{var a;let c=i==null?void 0:i.activeElement;if(s)for(;c!=null&&c.shadowRoot;)c=(a=c==null?void 0:c.shadowRoot)==null?void 0:a.activeElement;return c},o=ne(),l=()=>{o.value=r()};return n&&(fe(n,"blur",a=>{a.relatedTarget===null&&l()},!0),fe(n,"focus",l,!0)),l(),o}function iw(){const e=ne(!1),t=Ge();return t&&cs(()=>{e.value=!0},t),e}function _o(e){const t=iw();return ae(()=>(t.value,!!e()))}function rw(e,t={}){const{immediate:n=!0,fpsLimit:s=void 0,window:i=He}=t,r=ne(!1),o=s?1e3/s:null;let l=0,a=null;function c(d){if(!r.value||!i)return;l||(l=d);const p=d-l;if(o&&p<o){a=i.requestAnimationFrame(c);return}l=d,e({delta:p,timestamp:d}),a=i.requestAnimationFrame(c)}function f(){!r.value&&i&&(r.value=!0,l=0,a=i.requestAnimationFrame(c))}function u(){r.value=!1,a!=null&&i&&(i.cancelAnimationFrame(a),a=null)}return n&&f(),qt(u),{isActive:Rt(r),pause:u,resume:f}}function Kn(e,t={}){const{window:n=He}=t,s=_o(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const r=ne(!1),o=c=>{r.value=c.matches},l=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",o):i.removeListener(o))},a=ya(()=>{s.value&&(l(),i=n.matchMedia(Se(e)),"addEventListener"in i?i.addEventListener("change",o):i.addListener(o),r.value=i.matches)});return qt(()=>{a(),l(),i=void 0}),r}const dC={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function pC(e,t={}){function n(f,u){let d=Se(e[Se(f)]);return u!=null&&(d=JS(d,u)),typeof d=="number"&&(d=`${d}px`),d}const{window:s=He,strategy:i="min-width"}=t;function r(f){return s?s.matchMedia(f).matches:!1}const o=f=>Kn(()=>`(min-width: ${n(f)})`,t),l=f=>Kn(()=>`(max-width: ${n(f)})`,t),a=Object.keys(e).reduce((f,u)=>(Object.defineProperty(f,u,{get:()=>i==="min-width"?o(u):l(u),enumerable:!0,configurable:!0}),f),{});function c(){const f=Object.keys(e).map(u=>[u,o(u)]);return ae(()=>f.filter(([,u])=>u.value).map(([u])=>u))}return Object.assign(a,{greaterOrEqual:o,smallerOrEqual:l,greater(f){return Kn(()=>`(min-width: ${n(f,.1)})`,t)},smaller(f){return Kn(()=>`(max-width: ${n(f,-.1)})`,t)},between(f,u){return Kn(()=>`(min-width: ${n(f)}) and (max-width: ${n(u,-.1)})`,t)},isGreater(f){return r(`(min-width: ${n(f,.1)})`)},isGreaterOrEqual(f){return r(`(min-width: ${n(f)})`)},isSmaller(f){return r(`(max-width: ${n(f,-.1)})`)},isSmallerOrEqual(f){return r(`(max-width: ${n(f)})`)},isInBetween(f,u){return r(`(min-width: ${n(f)}) and (max-width: ${n(u,-.1)})`)},current:c,active(){const f=c();return ae(()=>f.value.length===0?"":f.value.at(-1))}})}function ow(e){return JSON.parse(JSON.stringify(e))}const lr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ar="__vueuse_ssr_handlers__",lw=aw();function aw(){return ar in lr||(lr[ar]=lr[ar]||{}),lr[ar]}function cw(e,t){return lw[e]||t}function uw(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const fw={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},zu="vueuse-storage";function dw(e,t,n,s={}){var i;const{flush:r="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:f,window:u=He,eventFilter:d,onError:p=x=>{console.error(x)},initOnMounted:m}=s,w=(f?ra:ne)(typeof t=="function"?t():t);if(!n)try{n=cw("getDefaultStorage",()=>{var x;return(x=He)==null?void 0:x.localStorage})()}catch(x){p(x)}if(!n)return w;const E=Se(t),y=uw(E),_=(i=s.serializer)!=null?i:fw[y],{pause:g,resume:b}=ZS(w,()=>A(w.value),{flush:r,deep:o,eventFilter:d});u&&l&&Bi(()=>{fe(u,"storage",T),fe(u,zu,O),m&&T()}),m||T();function S(x,N){u&&u.dispatchEvent(new CustomEvent(zu,{detail:{key:e,oldValue:x,newValue:N,storageArea:n}}))}function A(x){try{const N=n.getItem(e);if(x==null)S(N,null),n.removeItem(e);else{const I=_.write(x);N!==I&&(n.setItem(e,I),S(N,I))}}catch(N){p(N)}}function C(x){const N=x?x.newValue:n.getItem(e);if(N==null)return a&&E!=null&&n.setItem(e,_.write(E)),E;if(!x&&c){const I=_.read(N);return typeof c=="function"?c(I,E):y==="object"&&!Array.isArray(I)?{...E,...I}:I}else return typeof N!="string"?N:_.read(N)}function T(x){if(!(x&&x.storageArea!==n)){if(x&&x.key==null){w.value=E;return}if(!(x&&x.key!==e)){g();try{(x==null?void 0:x.newValue)!==_.write(w.value)&&(w.value=C(x))}catch(N){p(N)}finally{x?Dn(b):b()}}}}function O(x){T(x.detail)}return w}function hC(e){return Kn("(prefers-color-scheme: dark)",e)}function mC(e,t={}){var n,s;const{pointerTypes:i,preventDefault:r,stopPropagation:o,exact:l,onMove:a,onEnd:c,onStart:f,initialValue:u,axis:d="both",draggingElement:p=He,containerElement:m,handle:w=e}=t,E=ne((n=Se(u))!=null?n:{x:0,y:0}),y=ne(),_=C=>i?i.includes(C.pointerType):!0,g=C=>{Se(r)&&C.preventDefault(),Se(o)&&C.stopPropagation()},b=C=>{var T;if(Se(t.disabled)||!_(C)||Se(l)&&C.target!==Se(e))return;const O=Se(m),x=(T=O==null?void 0:O.getBoundingClientRect)==null?void 0:T.call(O),N=Se(e).getBoundingClientRect(),I={x:C.clientX-(O?N.left-x.left+O.scrollLeft:N.left),y:C.clientY-(O?N.top-x.top+O.scrollTop:N.top)};(f==null?void 0:f(I,C))!==!1&&(y.value=I,g(C))},S=C=>{if(Se(t.disabled)||!_(C)||!y.value)return;const T=Se(m),O=Se(e).getBoundingClientRect();let{x,y:N}=E.value;(d==="x"||d==="both")&&(x=C.clientX-y.value.x,T&&(x=Math.min(Math.max(0,x),T.scrollWidth-O.width))),(d==="y"||d==="both")&&(N=C.clientY-y.value.y,T&&(N=Math.min(Math.max(0,N),T.scrollHeight-O.height))),E.value={x,y:N},a==null||a(E.value,C),g(C)},A=C=>{Se(t.disabled)||!_(C)||y.value&&(y.value=void 0,c==null||c(E.value,C),g(C))};if(Fs){const C={capture:(s=t.capture)!=null?s:!0};fe(w,"pointerdown",b,C),fe(p,"pointermove",S,C),fe(p,"pointerup",A,C)}return{...ew(E),position:E,isDragging:ae(()=>!!y.value),style:ae(()=>`left:${E.value.x}px;top:${E.value.y}px;`)}}function pw(e,t,n={}){const{window:s=He,...i}=n;let r;const o=_o(()=>s&&"ResizeObserver"in s),l=()=>{r&&(r.disconnect(),r=void 0)},a=ae(()=>Array.isArray(e)?e.map(u=>ze(u)):[ze(e)]),c=Ee(a,u=>{if(l(),o.value&&s){r=new ResizeObserver(t);for(const d of u)d&&r.observe(d,i)}},{immediate:!0,flush:"post"}),f=()=>{l(),c()};return qt(f),{isSupported:o,stop:f}}function gC(e,t={width:0,height:0},n={}){const{window:s=He,box:i="content-box"}=n,r=ae(()=>{var u,d;return(d=(u=ze(e))==null?void 0:u.namespaceURI)==null?void 0:d.includes("svg")}),o=ne(t.width),l=ne(t.height),{stop:a}=pw(e,([u])=>{const d=i==="border-box"?u.borderBoxSize:i==="content-box"?u.contentBoxSize:u.devicePixelContentBoxSize;if(s&&r.value){const p=ze(e);if(p){const m=s.getComputedStyle(p);o.value=Number.parseFloat(m.width),l.value=Number.parseFloat(m.height)}}else if(d){const p=Array.isArray(d)?d:[d];o.value=p.reduce((m,{inlineSize:w})=>m+w,0),l.value=p.reduce((m,{blockSize:w})=>m+w,0)}else o.value=u.contentRect.width,l.value=u.contentRect.height},n);Bi(()=>{const u=ze(e);u&&(o.value="offsetWidth"in u?u.offsetWidth:t.width,l.value="offsetHeight"in u?u.offsetHeight:t.height)});const c=Ee(()=>ze(e),u=>{o.value=u?t.width:0,l.value=u?t.height:0});function f(){a(),c()}return{width:o,height:l,stop:f}}function hw(e,t,n={}){const{root:s,rootMargin:i="0px",threshold:r=.1,window:o=He,immediate:l=!0}=n,a=_o(()=>o&&"IntersectionObserver"in o),c=ae(()=>{const m=Se(e);return(Array.isArray(m)?m:[m]).map(ze).filter(KS)});let f=tn;const u=ne(l),d=a.value?Ee(()=>[c.value,ze(s),u.value],([m,w])=>{if(f(),!u.value||!m.length)return;const E=new IntersectionObserver(t,{root:ze(w),rootMargin:i,threshold:r});m.forEach(y=>y&&E.observe(y)),f=()=>{E.disconnect(),f=tn}},{immediate:l,flush:"post"}):tn,p=()=>{f(),d(),u.value=!1};return qt(p),{isSupported:a,isActive:u,pause(){f(),u.value=!1},resume(){u.value=!0},stop:p}}const Gu=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function yC(e,t={}){const{document:n=wh,autoExit:s=!1}=t,i=ae(()=>{var y;return(y=ze(e))!=null?y:n==null?void 0:n.querySelector("html")}),r=ne(!1),o=ae(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(y=>n&&y in n||i.value&&y in i.value)),l=ae(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(y=>n&&y in n||i.value&&y in i.value)),a=ae(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(y=>n&&y in n||i.value&&y in i.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(y=>n&&y in n),f=_o(()=>i.value&&n&&o.value!==void 0&&l.value!==void 0&&a.value!==void 0),u=()=>c?(n==null?void 0:n[c])===i.value:!1,d=()=>{if(a.value){if(n&&n[a.value]!=null)return n[a.value];{const y=i.value;if((y==null?void 0:y[a.value])!=null)return!!y[a.value]}}return!1};async function p(){if(!(!f.value||!r.value)){if(l.value)if((n==null?void 0:n[l.value])!=null)await n[l.value]();else{const y=i.value;(y==null?void 0:y[l.value])!=null&&await y[l.value]()}r.value=!1}}async function m(){if(!f.value||r.value)return;d()&&await p();const y=i.value;o.value&&(y==null?void 0:y[o.value])!=null&&(await y[o.value](),r.value=!0)}async function w(){await(r.value?p():m())}const E=()=>{const y=d();(!y||y&&u())&&(r.value=y)};return fe(n,Gu,E,!1),fe(()=>ze(i),Gu,E,!1),s&&qt(p),{isSupported:f,isFullscreen:r,enter:m,exit:p,toggle:w}}function vC(e,t,n={}){const{window:s=He}=n;return dw(e,t,s==null?void 0:s.localStorage,n)}const mw={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function bC(e={}){const{reactive:t=!1,target:n=He,aliasMap:s=mw,passive:i=!0,onEventFired:r=tn}=e,o=it(new Set),l={toJSON(){return{}},current:o},a=t?it(l):l,c=new Set,f=new Set;function u(w,E){w in a&&(t?a[w]=E:a[w].value=E)}function d(){o.clear();for(const w of f)u(w,!1)}function p(w,E){var y,_;const g=(y=w.key)==null?void 0:y.toLowerCase(),S=[(_=w.code)==null?void 0:_.toLowerCase(),g].filter(Boolean);g&&(E?o.add(g):o.delete(g));for(const A of S)f.add(A),u(A,E);g==="meta"&&!E?(c.forEach(A=>{o.delete(A),u(A,!1)}),c.clear()):typeof w.getModifierState=="function"&&w.getModifierState("Meta")&&E&&[...o,...S].forEach(A=>c.add(A))}fe(n,"keydown",w=>(p(w,!0),r(w)),{passive:i}),fe(n,"keyup",w=>(p(w,!1),r(w)),{passive:i}),fe("blur",d,{passive:!0}),fe("focus",d,{passive:!0});const m=new Proxy(a,{get(w,E,y){if(typeof E!="string")return Reflect.get(w,E,y);if(E=E.toLowerCase(),E in s&&(E=s[E]),!(E in a))if(/[+_-]/.test(E)){const g=E.split(/[+_-]/g).map(b=>b.trim());a[E]=ae(()=>g.every(b=>Se(m[b])))}else a[E]=ne(!1);const _=Reflect.get(w,E,y);return t?Se(_):_}});return m}const gw={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function _C(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:s=!1,initialValue:i={x:0,y:0},window:r=He,target:o=r,scroll:l=!0,eventFilter:a}=e;let c=null;const f=ne(i.x),u=ne(i.y),d=ne(null),p=typeof t=="function"?t:gw[t],m=S=>{const A=p(S);c=S,A&&([f.value,u.value]=A,d.value="mouse")},w=S=>{if(S.touches.length>0){const A=p(S.touches[0]);A&&([f.value,u.value]=A,d.value="touch")}},E=()=>{if(!c||!r)return;const S=p(c);c instanceof MouseEvent&&S&&(f.value=S[0]+r.scrollX,u.value=S[1]+r.scrollY)},y=()=>{f.value=i.x,u.value=i.y},_=a?S=>a(()=>m(S),{}):S=>m(S),g=a?S=>a(()=>w(S),{}):S=>w(S),b=a?()=>a(()=>E(),{}):()=>E();if(o){const S={passive:!0};fe(o,["mousemove","dragover"],_,S),n&&t!=="movement"&&(fe(o,["touchstart","touchmove"],g,S),s&&fe(o,"touchend",y,S)),l&&t==="page"&&fe(r,"scroll",b,{passive:!0})}return{x:f,y:u,sourceType:d}}function SC(e,t={}){const n=XS(e),{threshold:s=50,onSwipe:i,onSwipeEnd:r,onSwipeStart:o,disableTextSelect:l=!1}=t,a=it({x:0,y:0}),c=(C,T)=>{a.x=C,a.y=T},f=it({x:0,y:0}),u=(C,T)=>{f.x=C,f.y=T},d=ae(()=>a.x-f.x),p=ae(()=>a.y-f.y),{max:m,abs:w}=Math,E=ae(()=>m(w(d.value),w(p.value))>=s),y=ne(!1),_=ne(!1),g=ae(()=>E.value?w(d.value)>w(p.value)?d.value>0?"left":"right":p.value>0?"up":"down":"none"),b=C=>{var T,O,x;const N=C.buttons===0,I=C.buttons===1;return(x=(O=(T=t.pointerTypes)==null?void 0:T.includes(C.pointerType))!=null?O:N||I)!=null?x:!0},S=[fe(e,"pointerdown",C=>{if(!b(C))return;_.value=!0;const T=C.target;T==null||T.setPointerCapture(C.pointerId);const{clientX:O,clientY:x}=C;c(O,x),u(O,x),o==null||o(C)}),fe(e,"pointermove",C=>{if(!b(C)||!_.value)return;const{clientX:T,clientY:O}=C;u(T,O),!y.value&&E.value&&(y.value=!0),y.value&&(i==null||i(C))}),fe(e,"pointerup",C=>{b(C)&&(y.value&&(r==null||r(C,g.value)),_.value=!1,y.value=!1)})];Bi(()=>{var C,T,O,x,N,I,j,G;(T=(C=n.value)==null?void 0:C.style)==null||T.setProperty("touch-action","none"),l&&((x=(O=n.value)==null?void 0:O.style)==null||x.setProperty("-webkit-user-select","none"),(I=(N=n.value)==null?void 0:N.style)==null||I.setProperty("-ms-user-select","none"),(G=(j=n.value)==null?void 0:j.style)==null||G.setProperty("user-select","none"))});const A=()=>S.forEach(C=>C());return{isSwiping:Rt(y),direction:Rt(g),posStart:Rt(a),posEnd:Rt(f),distanceX:d,distanceY:p,stop:A}}let yw=0;function wC(e,t={}){const n=ne(!1),{document:s=wh,immediate:i=!0,manual:r=!1,id:o=`vueuse_styletag_${++yw}`}=t,l=ne(e);let a=()=>{};const c=()=>{if(!s)return;const u=s.getElementById(o)||s.createElement("style");u.isConnected||(u.id=o,t.media&&(u.media=t.media),s.head.appendChild(u)),!n.value&&(a=Ee(l,d=>{u.textContent=d},{immediate:!0}),n.value=!0)},f=()=>{!s||!n.value||(a(),s.head.removeChild(s.getElementById(o)),n.value=!1)};return i&&!r&&Bi(c),r||qt(f),{id:o,css:l,unload:f,load:c,isLoaded:Rt(n)}}function EC(e={}){const{controls:t=!1,offset:n=0,immediate:s=!0,interval:i="requestAnimationFrame",callback:r}=e,o=ne(qu()+n),l=()=>o.value=qu()+n,a=r?()=>{l(),r(o.value)}:l,c=i==="requestAnimationFrame"?rw(a,{immediate:s}):nw(a,i,{immediate:s});return t?{timestamp:o,...c}:o}function CC(e,t,n,s={}){var i,r,o;const{clone:l=!1,passive:a=!1,eventName:c,deep:f=!1,defaultValue:u,shouldEmit:d}=s,p=Ge(),m=n||(p==null?void 0:p.emit)||((i=p==null?void 0:p.$emit)==null?void 0:i.bind(p))||((o=(r=p==null?void 0:p.proxy)==null?void 0:r.$emit)==null?void 0:o.bind(p==null?void 0:p.proxy));let w=c;t||(t="modelValue"),w=w||`update:${t.toString()}`;const E=g=>l?typeof l=="function"?l(g):ow(g):g,y=()=>US(e[t])?E(e[t]):u,_=g=>{d?d(g)&&m(w,g):m(w,g)};if(a){const g=y(),b=ne(g);let S=!1;return Ee(()=>e[t],A=>{S||(S=!0,b.value=E(A),Dn(()=>S=!1))}),Ee(b,A=>{!S&&(A!==e[t]||f)&&_(A)},{deep:f}),b}else return ae({get(){return y()},set(g){_(g)}})}function TC(e={}){const{window:t=He}=e;if(!t)return ne(!1);const n=ne(t.document.hasFocus());return fe(t,"blur",()=>{n.value=!1}),fe(t,"focus",()=>{n.value=!0}),n}function xC(e={}){const{window:t=He,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:s=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:r=!0}=e,o=ne(n),l=ne(s),a=()=>{t&&(r?(o.value=t.innerWidth,l.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(a(),Bi(a),fe("resize",a,{passive:!0}),i){const c=Kn("(orientation: portrait)");Ee(c,()=>a())}return{width:o,height:l}}function OC(...e){return ae(()=>e.every(t=>Se(t)))}function AC(e){return ae(()=>!Se(e))}function RC(...e){return ae(()=>e.some(t=>Se(t)))}function jo(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Ml(e,t,n=".",s){if(!jo(t))return Ml(e,{},n,s);const i=Object.assign({},t);for(const r in e){if(r==="__proto__"||r==="constructor")continue;const o=e[r];o!=null&&(s&&s(i,r,o,n)||(Array.isArray(o)&&Array.isArray(i[r])?i[r]=[...o,...i[r]]:jo(o)&&jo(i[r])?i[r]=Ml(o,i[r],(n?`${n}.`:"")+r.toString(),s):i[r]=o))}return i}function vw(e){return(...t)=>t.reduce((n,s)=>Ml(n,s,"",e),{})}const bw=vw(),Eh=1/60*1e3,_w=typeof performance<"u"?()=>performance.now():()=>Date.now(),Ch=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(_w()),Eh);function Sw(e){let t=[],n=[],s=0,i=!1,r=!1;const o=new WeakSet,l={schedule:(a,c=!1,f=!1)=>{const u=f&&i,d=u?t:n;return c&&o.add(a),d.indexOf(a)===-1&&(d.push(a),u&&i&&(s=t.length)),a},cancel:a=>{const c=n.indexOf(a);c!==-1&&n.splice(c,1),o.delete(a)},process:a=>{if(i){r=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,s=t.length,s)for(let c=0;c<s;c++){const f=t[c];f(a),o.has(f)&&(l.schedule(f),e())}i=!1,r&&(r=!1,l.process(a))}};return l}const ww=40;let $l=!0,Ai=!1,Fl=!1;const Es={delta:0,timestamp:0},Hi=["read","update","preRender","render","postRender"],So=Hi.reduce((e,t)=>(e[t]=Sw(()=>Ai=!0),e),{}),Ll=Hi.reduce((e,t)=>{const n=So[t];return e[t]=(s,i=!1,r=!1)=>(Ai||Tw(),n.schedule(s,i,r)),e},{}),Ew=Hi.reduce((e,t)=>(e[t]=So[t].cancel,e),{});Hi.reduce((e,t)=>(e[t]=()=>So[t].process(Es),e),{});const Cw=e=>So[e].process(Es),Th=e=>{Ai=!1,Es.delta=$l?Eh:Math.max(Math.min(e-Es.timestamp,ww),1),Es.timestamp=e,Fl=!0,Hi.forEach(Cw),Fl=!1,Ai&&($l=!1,Ch(Th))},Tw=()=>{Ai=!0,$l=!0,Fl||Ch(Th)},xh=()=>Es;function Oh(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]]);return n}var Za=function(){},Ri=function(){};Za=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Ri=function(e,t){if(!e)throw new Error(t)};const Dl=(e,t,n)=>Math.min(Math.max(n,e),t),Bo=.001,xw=.01,Yu=10,Ow=.05,Aw=1;function Rw({duration:e=800,bounce:t=.25,velocity:n=0,mass:s=1}){let i,r;Za(e<=Yu*1e3,"Spring duration must be 10 seconds or less");let o=1-t;o=Dl(Ow,Aw,o),e=Dl(xw,Yu,e/1e3),o<1?(i=c=>{const f=c*o,u=f*e,d=f-n,p=Vl(c,o),m=Math.exp(-u);return Bo-d/p*m},r=c=>{const u=c*o*e,d=u*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,m=Math.exp(-u),w=Vl(Math.pow(c,2),o);return(-i(c)+Bo>0?-1:1)*((d-p)*m)/w}):(i=c=>{const f=Math.exp(-c*e),u=(c-n)*e+1;return-Bo+f*u},r=c=>{const f=Math.exp(-c*e),u=(n-c)*(e*e);return f*u});const l=5/e,a=Nw(i,r,l);if(e=e*1e3,isNaN(a))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(a,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:e}}}const Iw=12;function Nw(e,t,n){let s=n;for(let i=1;i<Iw;i++)s=s-e(s)/t(s);return s}function Vl(e,t){return e*Math.sqrt(1-t*t)}const kw=["duration","bounce"],Pw=["stiffness","damping","mass"];function Ju(e,t){return t.some(n=>e[n]!==void 0)}function Mw(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Ju(e,Pw)&&Ju(e,kw)){const n=Rw(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function ec(e){var{from:t=0,to:n=1,restSpeed:s=2,restDelta:i}=e,r=Oh(e,["from","to","restSpeed","restDelta"]);const o={done:!1,value:t};let{stiffness:l,damping:a,mass:c,velocity:f,duration:u,isResolvedFromDuration:d}=Mw(r),p=Xu,m=Xu;function w(){const E=f?-(f/1e3):0,y=n-t,_=a/(2*Math.sqrt(l*c)),g=Math.sqrt(l/c)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),_<1){const b=Vl(g,_);p=S=>{const A=Math.exp(-_*g*S);return n-A*((E+_*g*y)/b*Math.sin(b*S)+y*Math.cos(b*S))},m=S=>{const A=Math.exp(-_*g*S);return _*g*A*(Math.sin(b*S)*(E+_*g*y)/b+y*Math.cos(b*S))-A*(Math.cos(b*S)*(E+_*g*y)-b*y*Math.sin(b*S))}}else if(_===1)p=b=>n-Math.exp(-g*b)*(y+(E+g*y)*b);else{const b=g*Math.sqrt(_*_-1);p=S=>{const A=Math.exp(-_*g*S),C=Math.min(b*S,300);return n-A*((E+_*g*y)*Math.sinh(C)+b*y*Math.cosh(C))/b}}}return w(),{next:E=>{const y=p(E);if(d)o.done=E>=u;else{const _=m(E)*1e3,g=Math.abs(_)<=s,b=Math.abs(n-y)<=i;o.done=g&&b}return o.value=o.done?n:y,o},flipTarget:()=>{f=-f,[t,n]=[n,t],w()}}}ec.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Xu=e=>0,Ah=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},tc=(e,t,n)=>-n*e+n*t+e,Rh=(e,t)=>n=>Math.max(Math.min(n,t),e),ai=e=>e%1?Number(e.toFixed(5)):e,Ii=/(-)?([\d]*\.?[\d])+/g,jl=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,$w=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ui(e){return typeof e=="string"}const Ki={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ci=Object.assign(Object.assign({},Ki),{transform:Rh(0,1)}),cr=Object.assign(Object.assign({},Ki),{default:1}),nc=e=>({test:t=>Ui(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Bn=nc("deg"),ui=nc("%"),re=nc("px"),Qu=Object.assign(Object.assign({},ui),{parse:e=>ui.parse(e)/100,transform:e=>ui.transform(e*100)}),sc=(e,t)=>n=>!!(Ui(n)&&$w.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Ih=(e,t,n)=>s=>{if(!Ui(s))return s;const[i,r,o,l]=s.match(Ii);return{[e]:parseFloat(i),[t]:parseFloat(r),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},Yn={test:sc("hsl","hue"),parse:Ih("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+ui.transform(ai(t))+", "+ui.transform(ai(n))+", "+ai(ci.transform(s))+")"},Fw=Rh(0,255),Ho=Object.assign(Object.assign({},Ki),{transform:e=>Math.round(Fw(e))}),En={test:sc("rgb","red"),parse:Ih("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Ho.transform(e)+", "+Ho.transform(t)+", "+Ho.transform(n)+", "+ai(ci.transform(s))+")"};function Lw(e){let t="",n="",s="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),s=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),s=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,s+=s,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Bl={test:sc("#"),parse:Lw,transform:En.transform},ct={test:e=>En.test(e)||Bl.test(e)||Yn.test(e),parse:e=>En.test(e)?En.parse(e):Yn.test(e)?Yn.parse(e):Bl.parse(e),transform:e=>Ui(e)?e:e.hasOwnProperty("red")?En.transform(e):Yn.transform(e)},Nh="${c}",kh="${n}";function Dw(e){var t,n,s,i;return isNaN(e)&&Ui(e)&&((n=(t=e.match(Ii))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(s=e.match(jl))===null||s===void 0?void 0:s.length)!==null&&i!==void 0?i:0)>0}function Ph(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const s=e.match(jl);s&&(n=s.length,e=e.replace(jl,Nh),t.push(...s.map(ct.parse)));const i=e.match(Ii);return i&&(e=e.replace(Ii,kh),t.push(...i.map(Ki.parse))),{values:t,numColors:n,tokenised:e}}function Mh(e){return Ph(e).values}function $h(e){const{values:t,numColors:n,tokenised:s}=Ph(e),i=t.length;return r=>{let o=s;for(let l=0;l<i;l++)o=o.replace(l<n?Nh:kh,l<n?ct.transform(r[l]):ai(r[l]));return o}}const Vw=e=>typeof e=="number"?0:e;function jw(e){const t=Mh(e);return $h(e)(t.map(Vw))}const qi={test:Dw,parse:Mh,createTransformer:$h,getAnimatableNone:jw},Bw=new Set(["brightness","contrast","saturate","opacity"]);function Hw(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(Ii)||[];if(!s)return e;const i=n.replace(s,"");let r=Bw.has(t)?1:0;return s!==n&&(r*=100),t+"("+r+i+")"}const Uw=/([a-z-]*)\(.*?\)/g,Hl=Object.assign(Object.assign({},qi),{getAnimatableNone:e=>{const t=e.match(Uw);return t?t.map(Hw).join(" "):e}});function Uo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Zu({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,r=0,o=0;if(!t)i=r=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=Uo(a,l,e+1/3),r=Uo(a,l,e),o=Uo(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}const Kw=(e,t,n)=>{const s=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-s)+s))},qw=[Bl,En,Yn],ef=e=>qw.find(t=>t.test(e)),tf=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Fh=(e,t)=>{let n=ef(e),s=ef(t);Ri(!!n,tf(e)),Ri(!!s,tf(t));let i=n.parse(e),r=s.parse(t);n===Yn&&(i=Zu(i),n=En),s===Yn&&(r=Zu(r),s=En);const o=Object.assign({},i);return l=>{for(const a in o)a!=="alpha"&&(o[a]=Kw(i[a],r[a],l));return o.alpha=tc(i.alpha,r.alpha,l),n.transform(o)}},Ww=e=>typeof e=="number",zw=(e,t)=>n=>t(e(n)),Lh=(...e)=>e.reduce(zw);function Dh(e,t){return Ww(e)?n=>tc(e,t,n):ct.test(e)?Fh(e,t):jh(e,t)}const Vh=(e,t)=>{const n=[...e],s=n.length,i=e.map((r,o)=>Dh(r,t[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}},Gw=(e,t)=>{const n=Object.assign(Object.assign({},e),t),s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=Dh(e[i],t[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}};function nf(e){const t=qi.parse(e),n=t.length;let s=0,i=0,r=0;for(let o=0;o<n;o++)s||typeof t[o]=="number"?s++:t[o].hue!==void 0?r++:i++;return{parsed:t,numNumbers:s,numRGB:i,numHSL:r}}const jh=(e,t)=>{const n=qi.createTransformer(t),s=nf(e),i=nf(t);return s.numHSL===i.numHSL&&s.numRGB===i.numRGB&&s.numNumbers>=i.numNumbers?Lh(Vh(s.parsed,i.parsed),n):(Za(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),o=>`${o>0?t:e}`)},Yw=(e,t)=>n=>tc(e,t,n);function Jw(e){if(typeof e=="number")return Yw;if(typeof e=="string")return ct.test(e)?Fh:jh;if(Array.isArray(e))return Vh;if(typeof e=="object")return Gw}function Xw(e,t,n){const s=[],i=n||Jw(e[0]),r=e.length-1;for(let o=0;o<r;o++){let l=i(e[o],e[o+1]);if(t){const a=Array.isArray(t)?t[o]:t;l=Lh(a,l)}s.push(l)}return s}function Qw([e,t],[n]){return s=>n(Ah(e,t,s))}function Zw(e,t){const n=e.length,s=n-1;return i=>{let r=0,o=!1;if(i<=e[0]?o=!0:i>=e[s]&&(r=s-1,o=!0),!o){let a=1;for(;a<n&&!(e[a]>i||a===s);a++);r=a-1}const l=Ah(e[r],e[r+1],i);return t[r](l)}}function Bh(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const r=e.length;Ri(r===t.length,"Both input and output ranges must be the same length"),Ri(!s||!Array.isArray(s)||s.length===r-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[r-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const o=Xw(t,s,i),l=r===2?Qw(e,o):Zw(e,o);return n?a=>l(Dl(e[0],e[r-1],a)):l}const wo=e=>t=>1-e(1-t),ic=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,eE=e=>t=>Math.pow(t,e),Hh=e=>t=>t*t*((e+1)*t-e),tE=e=>{const t=Hh(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},Uh=1.525,nE=4/11,sE=8/11,iE=9/10,Kh=e=>e,rc=eE(2),rE=wo(rc),qh=ic(rc),Wh=e=>1-Math.sin(Math.acos(e)),zh=wo(Wh),oE=ic(zh),oc=Hh(Uh),lE=wo(oc),aE=ic(oc),cE=tE(Uh),uE=4356/361,fE=35442/1805,dE=16061/1805,zr=e=>{if(e===1||e===0)return e;const t=e*e;return e<nE?7.5625*t:e<sE?9.075*t-9.9*e+3.4:e<iE?uE*t-fE*e+dE:10.8*e*e-20.52*e+10.72},pE=wo(zr),hE=e=>e<.5?.5*(1-zr(1-e*2)):.5*zr(e*2-1)+.5;function mE(e,t){return e.map(()=>t||qh).splice(0,e.length-1)}function gE(e){const t=e.length;return e.map((n,s)=>s!==0?s/(t-1):0)}function yE(e,t){return e.map(n=>n*t)}function br({from:e=0,to:t=1,ease:n,offset:s,duration:i=300}){const r={done:!1,value:e},o=Array.isArray(t)?t:[e,t],l=yE(s&&s.length===o.length?s:gE(o),i);function a(){return Bh(l,o,{ease:Array.isArray(n)?n:mE(o,n)})}let c=a();return{next:f=>(r.value=c(f),r.done=f>=i,r),flipTarget:()=>{o.reverse(),c=a()}}}function vE({velocity:e=0,from:t=0,power:n=.8,timeConstant:s=350,restDelta:i=.5,modifyTarget:r}){const o={done:!1,value:t};let l=n*e;const a=t+l,c=r===void 0?a:r(a);return c!==a&&(l=c-t),{next:f=>{const u=-l*Math.exp(-f/s);return o.done=!(u>i||u<-i),o.value=o.done?c:c+u,o},flipTarget:()=>{}}}const sf={keyframes:br,spring:ec,decay:vE};function bE(e){if(Array.isArray(e.to))return br;if(sf[e.type])return sf[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?br:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?ec:br}function Gh(e,t,n=0){return e-t-n}function _E(e,t,n=0,s=!0){return s?Gh(t+-e,t,n):t-(e-t)+n}function SE(e,t,n,s){return s?e>=t+n:e<=-n}const wE=e=>{const t=({delta:n})=>e(n);return{start:()=>Ll.update(t,!0),stop:()=>Ew.update(t)}};function Yh(e){var t,n,{from:s,autoplay:i=!0,driver:r=wE,elapsed:o=0,repeat:l=0,repeatType:a="loop",repeatDelay:c=0,onPlay:f,onStop:u,onComplete:d,onRepeat:p,onUpdate:m}=e,w=Oh(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:E}=w,y,_=0,g=w.duration,b,S=!1,A=!0,C;const T=bE(w);!((n=(t=T).needsInterpolation)===null||n===void 0)&&n.call(t,s,E)&&(C=Bh([0,100],[s,E],{clamp:!1}),s=0,E=100);const O=T(Object.assign(Object.assign({},w),{from:s,to:E}));function x(){_++,a==="reverse"?(A=_%2===0,o=_E(o,g,c,A)):(o=Gh(o,g,c),a==="mirror"&&O.flipTarget()),S=!1,p&&p()}function N(){y.stop(),d&&d()}function I(G){if(A||(G=-G),o+=G,!S){const te=O.next(Math.max(0,o));b=te.value,C&&(b=C(b)),S=A?te.done:o<=0}m==null||m(b),S&&(_===0&&(g??(g=o)),_<l?SE(o,g,c,A)&&x():N())}function j(){f==null||f(),y=r(I),y.start()}return i&&j(),{stop:()=>{u==null||u(),y.stop()}}}function Jh(e,t){return t?e*(1e3/t):0}function EE({from:e=0,velocity:t=0,min:n,max:s,power:i=.8,timeConstant:r=750,bounceStiffness:o=500,bounceDamping:l=10,restDelta:a=1,modifyTarget:c,driver:f,onUpdate:u,onComplete:d,onStop:p}){let m;function w(g){return n!==void 0&&g<n||s!==void 0&&g>s}function E(g){return n===void 0?s:s===void 0||Math.abs(n-g)<Math.abs(s-g)?n:s}function y(g){m==null||m.stop(),m=Yh(Object.assign(Object.assign({},g),{driver:f,onUpdate:b=>{var S;u==null||u(b),(S=g.onUpdate)===null||S===void 0||S.call(g,b)},onComplete:d,onStop:p}))}function _(g){y(Object.assign({type:"spring",stiffness:o,damping:l,restDelta:a},g))}if(w(e))_({from:e,velocity:t,to:E(e)});else{let g=i*t+e;typeof c<"u"&&(g=c(g));const b=E(g),S=b===n?-1:1;let A,C;const T=O=>{A=C,C=O,t=Jh(O-A,xh().delta),(S===1&&O>b||S===-1&&O<b)&&_({from:O,to:b,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:r,power:i,restDelta:a,modifyTarget:c,onUpdate:w(g)?T:void 0})}return{stop:()=>m==null?void 0:m.stop()}}const Xh=(e,t)=>1-3*t+3*e,Qh=(e,t)=>3*t-6*e,Zh=e=>3*e,Gr=(e,t,n)=>((Xh(t,n)*e+Qh(t,n))*e+Zh(t))*e,em=(e,t,n)=>3*Xh(t,n)*e*e+2*Qh(t,n)*e+Zh(t),CE=1e-7,TE=10;function xE(e,t,n,s,i){let r,o,l=0;do o=t+(n-t)/2,r=Gr(o,s,i)-e,r>0?n=o:t=o;while(Math.abs(r)>CE&&++l<TE);return o}const OE=8,AE=.001;function RE(e,t,n,s){for(let i=0;i<OE;++i){const r=em(t,n,s);if(r===0)return t;const o=Gr(t,n,s)-e;t-=o/r}return t}const _r=11,ur=1/(_r-1);function IE(e,t,n,s){if(e===t&&n===s)return Kh;const i=new Float32Array(_r);for(let o=0;o<_r;++o)i[o]=Gr(o*ur,e,n);function r(o){let l=0,a=1;const c=_r-1;for(;a!==c&&i[a]<=o;++a)l+=ur;--a;const f=(o-i[a])/(i[a+1]-i[a]),u=l+f*ur,d=em(u,e,n);return d>=AE?RE(o,u,e,n):d===0?u:xE(o,l,l+ur,e,n)}return o=>o===0||o===1?o:Gr(r(o),t,s)}const Ko={};var NE=Object.defineProperty,kE=(e,t,n)=>t in e?NE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,PE=(e,t,n)=>(kE(e,typeof t!="symbol"?t+"":t,n),n);class ME{constructor(){PE(this,"subscriptions",new Set)}add(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}notify(t,n,s){if(this.subscriptions.size)for(const i of this.subscriptions)i(t,n,s)}clear(){this.subscriptions.clear()}}var $E=Object.defineProperty,FE=(e,t,n)=>t in e?$E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ft=(e,t,n)=>(FE(e,typeof t!="symbol"?t+"":t,n),n);function rf(e){return!isNaN(parseFloat(e))}class LE{constructor(t){Ft(this,"current"),Ft(this,"prev"),Ft(this,"timeDelta",0),Ft(this,"lastUpdated",0),Ft(this,"updateSubscribers",new ME),Ft(this,"stopAnimation"),Ft(this,"canTrackVelocity",!1),Ft(this,"updateAndNotify",n=>{this.prev=this.current,this.current=n;const{delta:s,timestamp:i}=xh();this.lastUpdated!==i&&(this.timeDelta=s,this.lastUpdated=i),Ll.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)}),Ft(this,"scheduleVelocityCheck",()=>Ll.postRender(this.velocityCheck)),Ft(this,"velocityCheck",({timestamp:n})=>{this.canTrackVelocity||(this.canTrackVelocity=rf(this.current)),n!==this.lastUpdated&&(this.prev=this.current)}),this.prev=this.current=t,this.canTrackVelocity=rf(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}set(t){this.updateAndNotify(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Jh(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{const{stop:s}=t(n);this.stopAnimation=s}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function DE(e){return new LE(e)}const{isArray:VE}=Array;function jE(){const e=ne({}),t=s=>{const i=r=>{e.value[r]&&(e.value[r].stop(),e.value[r].destroy(),delete e.value[r])};s?VE(s)?s.forEach(i):i(s):Object.keys(e.value).forEach(i)},n=(s,i,r)=>{if(e.value[s])return e.value[s];const o=DE(i);return o.onChange(l=>r[s]=l),e.value[s]=o,o};return tw(t),{motionValues:e,get:n,stop:t}}function BE(e){return Array.isArray(e)}function Hn(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function qo(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function HE(e){return{type:"spring",stiffness:550,damping:e===0?100:30,restDelta:.01,restSpeed:10}}function Wo(){return{type:"keyframes",ease:"linear",duration:300}}function UE(e){return{type:"keyframes",duration:800,values:e}}const of={default:HE,x:Hn,y:Hn,z:Hn,rotate:Hn,rotateX:Hn,rotateY:Hn,rotateZ:Hn,scaleX:qo,scaleY:qo,scale:qo,backgroundColor:Wo,color:Wo,opacity:Wo};function tm(e,t){let n;return BE(t)?n=UE:n=of[e]||of.default,{to:t,...n(t)}}const lf={...Ki,transform:Math.round},nm={color:ct,backgroundColor:ct,outlineColor:ct,fill:ct,stroke:ct,borderColor:ct,borderTopColor:ct,borderRightColor:ct,borderBottomColor:ct,borderLeftColor:ct,borderWidth:re,borderTopWidth:re,borderRightWidth:re,borderBottomWidth:re,borderLeftWidth:re,borderRadius:re,radius:re,borderTopLeftRadius:re,borderTopRightRadius:re,borderBottomRightRadius:re,borderBottomLeftRadius:re,width:re,maxWidth:re,height:re,maxHeight:re,size:re,top:re,right:re,bottom:re,left:re,padding:re,paddingTop:re,paddingRight:re,paddingBottom:re,paddingLeft:re,margin:re,marginTop:re,marginRight:re,marginBottom:re,marginLeft:re,rotate:Bn,rotateX:Bn,rotateY:Bn,rotateZ:Bn,scale:cr,scaleX:cr,scaleY:cr,scaleZ:cr,skew:Bn,skewX:Bn,skewY:Bn,distance:re,translateX:re,translateY:re,translateZ:re,x:re,y:re,z:re,perspective:re,transformPerspective:re,opacity:ci,originX:Qu,originY:Qu,originZ:re,zIndex:lf,filter:Hl,WebkitFilter:Hl,fillOpacity:ci,strokeOpacity:ci,numOctaves:lf},lc=e=>nm[e];function sm(e,t){return t&&typeof e=="number"&&t.transform?t.transform(e):e}function KE(e,t){let n=lc(e);return n!==Hl&&(n=qi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qE={linear:Kh,easeIn:rc,easeInOut:qh,easeOut:rE,circIn:Wh,circInOut:oE,circOut:zh,backIn:oc,backInOut:aE,backOut:lE,anticipate:cE,bounceIn:pE,bounceInOut:hE,bounceOut:zr};function af(e){if(Array.isArray(e)){const[t,n,s,i]=e;return IE(t,n,s,i)}else if(typeof e=="string")return qE[e];return e}function WE(e){return Array.isArray(e)&&typeof e[0]!="number"}function cf(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&qi.test(t)&&!t.startsWith("url("))}function zE(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function GE({ease:e,times:t,delay:n,...s}){const i={...s};return t&&(i.offset=t),e&&(i.ease=WE(e)?e.map(af):af(e)),n&&(i.elapsed=-n),i}function YE(e,t,n){return Array.isArray(t.to)&&(e.duration||(e.duration=800)),zE(t),JE(e)||(e={...e,...tm(n,t.to)}),{...t,...GE(e)}}function JE({delay:e,repeat:t,repeatType:n,repeatDelay:s,from:i,...r}){return!!Object.keys(r).length}function XE(e,t){return e[t]||e.default||e}function QE(e,t,n,s,i){const r=XE(s,e);let o=r.from===null||r.from===void 0?t.get():r.from;const l=cf(e,n);o==="none"&&l&&typeof n=="string"&&(o=KE(e,n));const a=cf(e,o);function c(u){const d={from:o,to:n,velocity:s.velocity?s.velocity:t.getVelocity(),onUpdate:p=>t.set(p)};return r.type==="inertia"||r.type==="decay"?EE({...d,...r}):Yh({...YE(r,d,e),onUpdate:p=>{d.onUpdate(p),r.onUpdate&&r.onUpdate(p)},onComplete:()=>{s.onComplete&&s.onComplete(),i&&i(),u&&u()}})}function f(u){return t.set(n),s.onComplete&&s.onComplete(),i&&i(),u&&u(),{stop:()=>{}}}return!a||!l||r.type===!1?f:c}function ZE(){const{motionValues:e,stop:t,get:n}=jE();return{motionValues:e,stop:t,push:(i,r,o,l={},a)=>{const c=o[i],f=n(i,c,o);if(l&&l.immediate){f.set(r);return}const u=QE(i,f,r,l,a);f.start(u)}}}function e1(e,t={},{motionValues:n,push:s,stop:i}=ZE()){const r=Ze(t),o=ne(!1);Ee(n,u=>{o.value=Object.values(u).filter(d=>d.isAnimating()).length>0},{immediate:!0,deep:!0});const l=u=>{if(!r||!r[u])throw new Error(`The variant ${u} does not exist.`);return r[u]},a=u=>(typeof u=="string"&&(u=l(u)),Promise.all(Object.entries(u).map(([d,p])=>{if(d!=="transition")return new Promise(m=>s(d,p,e,u.transition||tm(d,u[d]),m))}).filter(Boolean)));return{isAnimating:o,apply:a,set:u=>{const d=Wr(u)?u:l(u);Object.entries(d).forEach(([p,m])=>{p!=="transition"&&s(p,m,e,{immediate:!0})})},leave:async u=>{let d;if(r&&(r.leave&&(d=r.leave),!r.leave&&r.initial&&(d=r.initial)),!d){u();return}await a(d),u()},stop:i}}const ac=typeof window<"u",t1=()=>ac&&window.onpointerdown===null,n1=()=>ac&&window.ontouchstart===null,s1=()=>ac&&window.onmousedown===null;function i1({target:e,state:t,variants:n,apply:s}){const i=Ze(n),r=ne(!1),o=ne(!1),l=ne(!1),a=ae(()=>{let f=[];return i&&(i.hovered&&(f=[...f,...Object.keys(i.hovered)]),i.tapped&&(f=[...f,...Object.keys(i.tapped)]),i.focused&&(f=[...f,...Object.keys(i.focused)])),f}),c=ae(()=>{const f={};Object.assign(f,t.value),r.value&&i.hovered&&Object.assign(f,i.hovered),o.value&&i.tapped&&Object.assign(f,i.tapped),l.value&&i.focused&&Object.assign(f,i.focused);for(const u in f)a.value.includes(u)||delete f[u];return f});i.hovered&&(fe(e,"mouseenter",()=>r.value=!0),fe(e,"mouseleave",()=>{r.value=!1,o.value=!1}),fe(e,"mouseout",()=>{r.value=!1,o.value=!1})),i.tapped&&(s1()&&(fe(e,"mousedown",()=>o.value=!0),fe(e,"mouseup",()=>o.value=!1)),t1()&&(fe(e,"pointerdown",()=>o.value=!0),fe(e,"pointerup",()=>o.value=!1)),n1()&&(fe(e,"touchstart",()=>o.value=!0),fe(e,"touchend",()=>o.value=!1))),i.focused&&(fe(e,"focus",()=>l.value=!0),fe(e,"blur",()=>l.value=!1)),Ee(c,s)}function r1({set:e,target:t,variants:n,variant:s}){const i=Ze(n);Ee(()=>t,()=>{i&&(i.initial&&e("initial"),i.enter&&(s.value="enter"))},{immediate:!0,flush:"pre"})}function o1({state:e,apply:t}){Ee(e,n=>{n&&t(n)},{immediate:!0})}function im({target:e,variants:t,variant:n}){const s=Ze(t);s&&(s.visible||s.visibleOnce)&&hw(e,([{isIntersecting:i}])=>{s.visible?i?n.value="visible":n.value="initial":s.visibleOnce&&(i&&n.value!=="visibleOnce"?n.value="visibleOnce":n.value||(n.value="initial"))})}function l1(e,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){t.lifeCycleHooks&&r1(e),t.syncVariants&&o1(e),t.visibilityHooks&&im(e),t.eventListeners&&i1(e)}function rm(e={}){const t=it({...e}),n=ne({});return Ee(t,()=>{const s={};for(const[i,r]of Object.entries(t)){const o=lc(i),l=sm(r,o);s[i]=l}n.value=s},{immediate:!0,deep:!0}),{state:t,style:n}}function cc(e,t){Ee(()=>ze(e),n=>{n&&t(n)},{immediate:!0})}const a1={x:"translateX",y:"translateY",z:"translateZ"};function om(e={},t=!0){const n=it({...e}),s=ne("");return Ee(n,i=>{let r="",o=!1;if(t&&(i.x||i.y||i.z)){const l=[i.x||0,i.y||0,i.z||0].map(re.transform).join(",");r+=`translate3d(${l}) `,o=!0}for(const[l,a]of Object.entries(i)){if(t&&(l==="x"||l==="y"||l==="z"))continue;const c=lc(l),f=sm(a,c);r+=`${a1[l]||l}(${f}) `}t&&!o&&(r+="translateZ(0px) "),s.value=r.trim()},{immediate:!0,deep:!0}),{state:n,transform:s}}const c1=["","X","Y","Z"],u1=["perspective","translate","scale","rotate","skew"],lm=["transformPerspective","x","y","z"];u1.forEach(e=>{c1.forEach(t=>{const n=e+t;lm.push(n)})});const f1=new Set(lm);function uc(e){return f1.has(e)}const d1=new Set(["originX","originY","originZ"]);function am(e){return d1.has(e)}function p1(e){const t={},n={};return Object.entries(e).forEach(([s,i])=>{uc(s)||am(s)?t[s]=i:n[s]=i}),{transform:t,style:n}}function cm(e){const{transform:t,style:n}=p1(e),{transform:s}=om(t),{style:i}=rm(n);return s.value&&(i.value.transform=s.value),i.value}function h1(e,t){let n,s;const{state:i,style:r}=rm();return cc(e,o=>{s=o;for(const l of Object.keys(nm))o.style[l]===null||o.style[l]===""||uc(l)||am(l)||(i[l]=o.style[l]);n&&Object.entries(n).forEach(([l,a])=>o.style[l]=a),t&&t(i)}),Ee(r,o=>{if(!s){n=o;return}for(const l in o)s.style[l]=o[l]},{immediate:!0}),{style:i}}function m1(e){const t=e.trim().split(/\) |\)/);if(t.length===1)return{};const n=s=>s.endsWith("px")||s.endsWith("deg")?parseFloat(s):isNaN(Number(s))?Number(s):s;return t.reduce((s,i)=>{if(!i)return s;const[r,o]=i.split("("),a=o.split(",").map(f=>n(f.endsWith(")")?f.replace(")",""):f.trim())),c=a.length===1?a[0]:a;return{...s,[r]:c}},{})}function g1(e,t){Object.entries(m1(t)).forEach(([n,s])=>{const i=["x","y","z"];if(n==="translate3d"){if(s===0){i.forEach(r=>e[r]=0);return}s.forEach((r,o)=>e[i[o]]=r);return}if(s=parseFloat(s),n==="translateX"){e.x=s;return}if(n==="translateY"){e.y=s;return}if(n==="translateZ"){e.z=s;return}e[n]=s})}function y1(e,t){let n,s;const{state:i,transform:r}=om();return cc(e,o=>{s=o,o.style.transform&&g1(i,o.style.transform),n&&(o.style.transform=n),t&&t(i)}),Ee(r,o=>{if(!s){n=o;return}s.style.transform=o},{immediate:!0}),{transform:i}}function v1(e,t){const n=it({}),s=o=>Object.entries(o).forEach(([l,a])=>n[l]=a),{style:i}=h1(e,s),{transform:r}=y1(e,s);return Ee(n,o=>{Object.entries(o).forEach(([l,a])=>{const c=uc(l)?r:i;c[l]&&c[l]===a||(c[l]=a)})},{immediate:!0,deep:!0}),cc(e,()=>t&&s(t)),{motionProperties:n,style:i,transform:r}}function b1(e={}){const t=Ze(e),n=ne();return{state:ae(()=>{if(n.value)return t[n.value]}),variant:n}}function um(e,t={},n){const{motionProperties:s}=v1(e),{variant:i,state:r}=b1(t),o=e1(s,t),l={target:e,variant:i,variants:t,state:r,motionProperties:s,...o};return l1(l,n),l}const _1=["initial","enter","leave","visible","visible-once","visibleOnce","hovered","tapped","focused","delay"];function S1(e,t){const n=e.props?e.props:e.data&&e.data.attrs?e.data.attrs:{};n&&(n.variants&&Wr(n.variants)&&(t.value={...t.value,...n.variants}),_1.forEach(s=>{if(s==="delay"){if(n&&n[s]&&typeof n[s]=="number"){const i=n[s];t&&t.value&&(t.value.enter&&(t.value.enter.transition||(t.value.enter.transition={}),t.value.enter.transition={delay:i,...t.value.enter.transition}),t.value.visible&&(t.value.visible.transition||(t.value.visible.transition={}),t.value.visible.transition={delay:i,...t.value.visible.transition}),t.value.visibleOnce&&(t.value.visibleOnce.transition||(t.value.visibleOnce.transition={}),t.value.visibleOnce.transition={delay:i,...t.value.visibleOnce.transition}))}return}if(n&&n[s]&&Wr(n[s])){const i=n[s];s==="visible-once"&&(s="visibleOnce"),t.value[s]=i}}))}function zo(e){return{created:(s,i,r)=>{const o=i.value&&typeof i.value=="string"?i.value:r.key;o&&Ko[o]&&Ko[o].stop();const l=ne(e||{});typeof i.value=="object"&&(l.value=i.value),S1(r,l);const c=um(s,l,{eventListeners:!0,lifeCycleHooks:!0,syncVariants:!0,visibilityHooks:!1});s.motionInstance=c,o&&(Ko[o]=c)},mounted:(s,i,r)=>{s.motionInstance&&im(s.motionInstance)},getSSRProps(s,i){let{initial:r}=s.value||i&&(i==null?void 0:i.props)||{};r=Ze(r);const o=bw((e==null?void 0:e.initial)||{},r||{});return!o||Object.keys(o).length===0?void 0:{style:cm(o)}}}}const w1={initial:{opacity:0},enter:{opacity:1}},E1={initial:{opacity:0},visible:{opacity:1}},C1={initial:{opacity:0},visibleOnce:{opacity:1}},T1={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},x1={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},O1={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},A1={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},R1={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},I1={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},N1={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},k1={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},P1={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},M1={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},$1={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},F1={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},L1={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},D1={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},V1={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},j1={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},B1={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},H1={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},U1={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},K1={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},q1={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},W1={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},z1={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},G1={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},Y1={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},J1={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},X1={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},Ul={__proto__:null,fade:w1,fadeVisible:E1,fadeVisibleOnce:C1,pop:T1,popVisible:x1,popVisibleOnce:O1,rollBottom:L1,rollLeft:A1,rollRight:N1,rollTop:M1,rollVisibleBottom:D1,rollVisibleLeft:R1,rollVisibleOnceBottom:V1,rollVisibleOnceLeft:I1,rollVisibleOnceRight:P1,rollVisibleOnceTop:F1,rollVisibleRight:k1,rollVisibleTop:$1,slideBottom:Y1,slideLeft:j1,slideRight:U1,slideTop:W1,slideVisibleBottom:J1,slideVisibleLeft:B1,slideVisibleOnceBottom:X1,slideVisibleOnceLeft:H1,slideVisibleOnceRight:q1,slideVisibleOnceTop:G1,slideVisibleRight:K1,slideVisibleTop:z1},Q1=js({props:{is:{type:[String,Object],required:!1},preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1}},setup(e){const t=gd(),n=it({});if(!e.is&&!t.default)return()=>xs("div",{});const s=ae(()=>{let l;return e.preset&&(l=Ul[e.preset]),l}),i=ae(()=>({initial:e.initial,enter:e.enter,leave:e.leave,visible:e.visible,visibleOnce:e.visibleOnce,hovered:e.hovered,tapped:e.tapped,focused:e.focused})),r=ae(()=>{const l={...i.value,...s.value||{},...e.variants||{}};return e.delay&&(l.enter.transition={...l.enter.transition},l.enter.transition.delay=parseInt(e.delay)),l}),o=ae(()=>{if(!e.is)return;let l=e.is;return typeof o.value=="string"&&!Gl(l)&&(l=Yf(l)),l});{const l=a=>{var c;(c=a.variants)!=null&&c.initial&&a.set("initial"),setTimeout(()=>{var f,u,d;(f=a.variants)!=null&&f.enter&&a.apply("enter"),(u=a.variants)!=null&&u.visible&&a.apply("visible"),(d=a.variants)!=null&&d.visibleOnce&&a.apply("visibleOnce")},10)};Mi(()=>Object.entries(n).forEach(([a,c])=>l(c)))}return{slots:t,component:o,motionConfig:r,instances:n}},render({slots:e,motionConfig:t,instances:n,component:s}){var l;const i=cm(t.initial||{}),r=(a,c)=>(a.props||(a.props={}),a.props.style=i,a.props.onVnodeMounted=({el:f})=>{const u=um(f,t);n[c]=u},a);if(s){const a=xs(s,void 0,e);return r(a,0),a}return(((l=e.default)==null?void 0:l.call(e))||[]).map((a,c)=>r(a,c))}});function Z1(e){const t="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",n="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",s=new RegExp(t.split("").join("|"),"g");return e.toString().replace(/[A-Z]/g,i=>`-${i}`).toLowerCase().replace(/\s+/g,"-").replace(s,i=>n.charAt(t.indexOf(i))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const IC={install(e,t){if(e.directive("motion",zo()),e.component("Motion",Q1),!t||t&&!t.excludePresets)for(const n in Ul){const s=Ul[n];e.directive(`motion-${Z1(n)}`,zo(s))}if(t&&t.directives)for(const n in t.directives){const s=t.directives[n];s.initial,e.directive(`motion-${n}`,zo(s))}}};export{wC as $,Ze as A,Et as B,ya as C,Ee as D,ao as E,De as F,ld as G,od as H,Ge as I,it as J,se as K,EC as L,ra as M,nC as N,ta as O,hC as P,vC as Q,aC as R,Fs as S,rC as T,RC as U,tC as V,eC as W,IC as X,sC as Y,ry as Z,cs as _,Lg as a,Ta as a0,Zg as a1,$r as a2,_C as a3,TC as a4,Te as a5,CC as a6,sy as a7,SC as a8,qu as a9,OC as aa,AC as ab,uC as ac,gC as ad,cC as ae,Ug as af,fe as ag,Aa as ah,Ra as ai,ub as aj,tb as ak,pC as al,xC as am,bC as an,yC as ao,fC as ap,dC as aq,Df as ar,ty as as,iC as at,lC as au,oC as av,na as aw,mC as ax,sv as b,Ea as c,js as d,Ca as e,ly as f,av as g,Ds as h,Vs as i,db as j,da as k,xe as l,Ld as m,Dn as n,co as o,Fg as p,Em as q,Yf as r,$d as s,ne as t,pb as u,xs as v,Dg as w,Mm as x,ae as y,ml as z};
import{o as e,b as o,e as n}from"./vue-O-XuQLLR.js";const c={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},_=n("path",{fill:"currentColor",d:"M12 10H6.78A11 11 0 0 1 27 16h2A13 13 0 0 0 6 7.68V4H4v8h8zm8 12h5.22A11 11 0 0 1 5 16H3a13 13 0 0 0 23 8.32V28h2v-8h-8z"},null,-1),l=[_];function i(t,s){return e(),o("svg",c,[...l])}const I2={name:"carbon-renew",render:i},h={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},r=n("path",{fill:"currentColor",d:"M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14m0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4"},null,-1),a=n("path",{fill:"currentColor",d:"M20.59 22L15 16.41V7h2v8.58l5 5.01z"},null,-1),d=[r,a];function u(t,s){return e(),o("svg",h,[...d])}const J2={name:"carbon-time",render:u},m={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},v=n("path",{fill:"currentColor",d:"M8 12h10v2H8z"},null,-1),$=n("path",{fill:"currentColor",d:"M21.448 20A10.856 10.856 0 0 0 24 13a11 11 0 1 0-11 11a10.856 10.856 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9"},null,-1),p=[v,$];function g(t,s){return e(),o("svg",m,[...p])}const K2={name:"carbon-zoom-out",render:g},L={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},f=n("path",{fill:"currentColor",d:"M18 12h-4V8h-2v4H8v2h4v4h2v-4h4z"},null,-1),w=n("path",{fill:"currentColor",d:"M21.448 20A10.856 10.856 0 0 0 24 13a11 11 0 1 0-11 11a10.856 10.856 0 0 0 7-2.552L27.586 29L29 27.586ZM13 22a9 9 0 1 1 9-9a9.01 9.01 0 0 1-9 9"},null,-1),x=[f,w];function M(t,s){return e(),o("svg",L,[...x])}const O2={name:"carbon-zoom-in",render:M},z={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},C=n("path",{fill:"currentColor",d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3s3 1.3 3 3s-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3s-3-1.3-3-3s1.3-3 3-3"},null,-1),H=[C];function b(t,s){return e(),o("svg",z,[...H])}const P2={name:"carbon-settings-adjust",render:b},B={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},V=n("path",{fill:"currentColor",d:"M17 22v-8h-4v2h2v6h-3v2h8v-2zM16 8a1.5 1.5 0 1 0 1.5 1.5A1.5 1.5 0 0 0 16 8"},null,-1),Z=n("path",{fill:"currentColor",d:"M16 30a14 14 0 1 1 14-14a14 14 0 0 1-14 14m0-26a12 12 0 1 0 12 12A12 12 0 0 0 16 4"},null,-1),A=[V,Z];function k(t,s){return e(),o("svg",B,[...A])}const Q2={name:"carbon-information",render:k},j={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},q=n("path",{fill:"currentColor",d:"M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4zm0-10l-1.41-1.41L17 20.17V2h-2v18.17l-7.59-7.58L6 14l10 10z"},null,-1),y=[q];function E(t,s){return e(),o("svg",j,[...y])}const R2={name:"carbon-download",render:E},S={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},D=n("path",{fill:"currentColor",d:"M26 6v4H6V6zm0-2H6a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M10 16v10H6V16zm0-2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2m16 2v10H16V16zm0-2H16a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V16a2 2 0 0 0-2-2"},null,-1),F=[D];function G(t,s){return e(),o("svg",S,[...F])}const T2={name:"carbon-template",render:G},N={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},I=n("path",{fill:"currentColor",d:"M29.415 19L27.7 17.285A2.97 2.97 0 0 0 28 16a3 3 0 1 0-3 3a2.97 2.97 0 0 0 1.286-.3L28 20.414V28h-6v-3a7.008 7.008 0 0 0-7-7H9a7.008 7.008 0 0 0-7 7v5h28v-9.586A1.988 1.988 0 0 0 29.415 19M4 25a5.006 5.006 0 0 1 5-5h6a5.006 5.006 0 0 1 5 5v3H4Z"},null,-1),J=n("path",{fill:"currentColor",d:"M12 4a5 5 0 1 1-5 5a5 5 0 0 1 5-5m0-2a7 7 0 1 0 7 7a7 7 0 0 0-7-7"},null,-1),K=[I,J];function O(t,s){return e(),o("svg",N,[...K])}const U2={name:"carbon-user-speaker",render:O},P={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Q=n("path",{fill:"currentColor",d:"M15 10h2v8h-2zm5 4h2v4h-2zm-10-2h2v6h-2z"},null,-1),R=n("path",{fill:"currentColor",d:"M25 4h-8V2h-2v2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8v6h-4v2h10v-2h-4v-6h8a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 16H7V6h18Z"},null,-1),T=[Q,R];function U(t,s){return e(),o("svg",P,[...T])}const W2={name:"carbon-presentation-file",render:U},W={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},X=n("path",{fill:"currentColor",d:"M27.307 6.107L30 3.414L28.586 2l-2.693 2.693L24.8 3.6a1.933 1.933 0 0 0-2.8 0l-18 18V28h6.4l18-18a1.933 1.933 0 0 0 0-2.8ZM9.6 26H6v-3.6L23.4 5L27 8.6ZM9 11.586L16.586 4L18 5.414L10.414 13z"},null,-1),Y=[X];function n1(t,s){return e(),o("svg",W,[...Y])}const X2={name:"carbon-pen",render:n1},e1={class:"slidev-icon",viewBox:"0 0 256 256",width:"1.2em",height:"1.2em"},o1=n("g",{fill:"currentColor"},[n("path",{d:"M213.66 201L201 213.66a8 8 0 0 1-11.31 0l-51.31-51.31a8 8 0 0 0-13 2.46l-17.82 46.41a8 8 0 0 1-14.85-.71L40.41 50.44a8 8 0 0 1 10-10l160.1 52.24a8 8 0 0 1 .71 14.85l-46.41 17.82a8 8 0 0 0-2.46 13l51.31 51.31a8 8 0 0 1 0 11.34",opacity:".2"}),n("path",{d:"M168 132.69L214.08 115l.33-.13a16 16 0 0 0-1.41-29.8L52.92 32.8A15.95 15.95 0 0 0 32.8 52.92L85.07 213a15.82 15.82 0 0 0 14.41 11h.78a15.84 15.84 0 0 0 14.61-9.59l.13-.33L132.69 168L184 219.31a16 16 0 0 0 22.63 0l12.68-12.68a16 16 0 0 0 0-22.63ZM195.31 208L144 156.69a16 16 0 0 0-26 4.93c0 .11-.09.22-.13.32l-17.65 46L48 48l159.85 52.2l-45.95 17.64l-.32.13a16 16 0 0 0-4.93 26L208 195.31Z"})],-1),t1=[o1];function s1(t,s){return e(),o("svg",e1,[...t1])}const Y2={name:"ph-cursor-duotone",render:s1},c1={class:"slidev-icon",viewBox:"0 0 256 256",width:"1.2em",height:"1.2em"},_1=n("path",{fill:"currentColor",d:"m220.49 207.8l-12.69 12.69a12 12 0 0 1-17 0l-56.57-56.57L115 214.08l-.13.33a15.84 15.84 0 0 1-14.61 9.59h-.78a15.82 15.82 0 0 1-14.41-11L32.8 52.92A15.95 15.95 0 0 1 52.92 32.8L213 85.07a16 16 0 0 1 1.41 29.8l-.33.13l-50.16 19.27l56.57 56.56a12 12 0 0 1 0 16.97"},null,-1),l1=[_1];function i1(t,s){return e(),o("svg",c1,[...l1])}const nn={name:"ph-cursor-fill",render:i1},h1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},r1=n("path",{fill:"currentColor",d:"M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6M5.394 6.813L6.81 5.399l3.505 3.506L8.9 10.319zM2 15.005h5v2H2zm3.394 10.193L8.9 21.692l1.414 1.414l-3.505 3.506zM15 25.005h2v5h-2zm6.687-1.9l1.414-1.414l3.506 3.506l-1.414 1.414zm3.313-8.1h5v2h-5zm-3.313-6.101l3.506-3.506l1.414 1.414l-3.506 3.506zM15 2.005h2v5h-2z"},null,-1),a1=[r1];function d1(t,s){return e(),o("svg",h1,[...a1])}const en={name:"carbon-sun",render:d1},u1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},m1=n("path",{fill:"currentColor",d:"M13.503 5.414a15.076 15.076 0 0 0 11.593 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3"},null,-1),v1=[m1];function $1(t,s){return e(),o("svg",u1,[...v1])}const on={name:"carbon-moon",render:$1},p1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},g1=n("path",{fill:"currentColor",d:"M8 4v4H4V4Zm2-2H2v8h8Zm8 2v4h-4V4Zm2-2h-8v8h8Zm8 2v4h-4V4Zm2-2h-8v8h8ZM8 14v4H4v-4Zm2-2H2v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8ZM8 24v4H4v-4Zm2-2H2v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Zm8 2v4h-4v-4Zm2-2h-8v8h8Z"},null,-1),L1=[g1];function f1(t,s){return e(),o("svg",p1,[...L1])}const tn={name:"carbon-apps",render:f1},w1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},x1=n("path",{fill:"currentColor",d:"m18 6l-1.43 1.393L24.15 15H4v2h20.15l-7.58 7.573L18 26l10-10z"},null,-1),M1=[x1];function z1(t,s){return e(),o("svg",w1,[...M1])}const sn={name:"carbon-arrow-right",render:z1},C1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},H1=n("path",{fill:"currentColor",d:"m14 26l1.41-1.41L7.83 17H28v-2H7.83l7.58-7.59L14 6L4 16z"},null,-1),b1=[H1];function B1(t,s){return e(),o("svg",C1,[...b1])}const cn={name:"carbon-arrow-left",render:B1},V1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Z1=n("path",{fill:"currentColor",d:"M20 2v2h6.586L18 12.582L19.414 14L28 5.414V12h2V2zm-6 17.416L12.592 18L4 26.586V20H2v10h10v-2H5.414z"},null,-1),A1=[Z1];function k1(t,s){return e(),o("svg",V1,[...A1])}const _n={name:"carbon-maximize",render:k1},j1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},q1=n("path",{fill:"currentColor",d:"M4 18v2h6.586L2 28.582L3.414 30L12 21.414V28h2V18zM30 3.416L28.592 2L20 10.586V4h-2v10h10v-2h-6.586z"},null,-1),y1=[q1];function E1(t,s){return e(),o("svg",j1,[...y1])}const ln={name:"carbon-minimize",render:E1},S1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},D1=n("path",{fill:"currentColor",d:"m13 24l-9-9l1.414-1.414L13 21.171L26.586 7.586L28 9z"},null,-1),F1=[D1];function G1(t,s){return e(),o("svg",S1,[...F1])}const hn={name:"carbon-checkmark",render:G1},N1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},I1=n("path",{fill:"currentColor",d:"M17.414 16L24 9.414L22.586 8L16 14.586L9.414 8L8 9.414L14.586 16L8 22.586L9.414 24L16 17.414L22.586 24L24 22.586z"},null,-1),J1=[I1];function K1(t,s){return e(),o("svg",N1,[...J1])}const rn={name:"carbon-close",render:K1},O1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},P1=n("path",{fill:"currentColor",d:"M16 2C8.2 2 2 8.2 2 16s6.2 14 14 14s14-6.2 14-14S23.8 2 16 2m0 26C9.4 28 4 22.6 4 16S9.4 4 16 4s12 5.4 12 12s-5.4 12-12 12"},null,-1),Q1=n("path",{fill:"currentColor",d:"M21.4 23L16 17.6L10.6 23L9 21.4l5.4-5.4L9 10.6L10.6 9l5.4 5.4L21.4 9l1.6 1.6l-5.4 5.4l5.4 5.4z"},null,-1),R1=[P1,Q1];function T1(t,s){return e(),o("svg",O1,[...R1])}const an={name:"carbon-close-outline",render:T1},U1={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},W1=n("path",{fill:"currentColor",d:"M2 16A14 14 0 1 0 16 2A14 14 0 0 0 2 16m23.15 7.75L8.25 6.85a12 12 0 0 1 16.9 16.9M8.24 25.16a12 12 0 0 1-1.4-16.89l16.89 16.89a12 12 0 0 1-15.49 0"},null,-1),X1=[W1];function Y1(t,s){return e(),o("svg",U1,[...X1])}const dn={name:"carbon-error",render:Y1},n2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},e2=n("path",{fill:"currentColor",d:"M28.59 13.31L30 11.9L20 2l-1.31 1.42l1.18 1.18l-11.49 9.72l-1.72-1.71L5.25 14l5.66 5.68L2 28.58L3.41 30l8.91-8.91L18 26.75l1.39-1.42l-1.71-1.71l9.72-11.49ZM16.26 22.2L9.8 15.74L21.29 6L26 10.71Z"},null,-1),o2=[e2];function t2(t,s){return e(),o("svg",n2,[...o2])}const un={name:"carbon-pin",render:t2},s2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},c2=n("path",{fill:"currentColor",d:"M28.586 13.314L30 11.9L20 2l-1.314 1.415l1.186 1.186L8.38 14.322l-1.716-1.715L5.25 14l5.657 5.677L2 28.583L3.41 30l8.911-8.909L18 26.748l1.393-1.414l-1.716-1.716l9.724-11.49Z"},null,-1),_2=[c2];function l2(t,s){return e(),o("svg",s2,[..._2])}const mn={name:"carbon-pin-filled",render:l2},i2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},h2=n("path",{fill:"currentColor",d:"M12 12h2v12h-2zm6 0h2v12h-2z"},null,-1),r2=n("path",{fill:"currentColor",d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20zm4-26h8v2h-8z"},null,-1),a2=[h2,r2];function d2(t,s){return e(),o("svg",i2,[...a2])}const vn={name:"carbon-trash-can",render:d2},u2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},m2=n("path",{fill:"currentColor",d:"M12 10h12.185l-3.587-3.586L22 5l6 6l-6 6l-1.402-1.415L24.182 12H12a6 6 0 0 0 0 12h8v2h-8a8 8 0 0 1 0-16"},null,-1),v2=[m2];function $2(t,s){return e(),o("svg",u2,[...v2])}const $n={name:"carbon-redo",render:$2},p2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},g2=n("path",{fill:"currentColor",d:"M20 10H7.815l3.587-3.586L10 5l-6 6l6 6l1.402-1.415L7.818 12H20a6 6 0 0 1 0 12h-8v2h8a8 8 0 0 0 0-16"},null,-1),L2=[g2];function f2(t,s){return e(),o("svg",p2,[...L2])}const pn={name:"carbon-undo",render:f2},w2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},x2=n("path",{fill:"currentColor",d:"M7 27h23v2H7zm20.38-16.49l-7.93-7.92a2 2 0 0 0-2.83 0l-14 14a2 2 0 0 0 0 2.83L7.13 24h9.59l10.66-10.66a2 2 0 0 0 0-2.83M15.89 22H8l-4-4l6.31-6.31l7.93 7.92zm3.76-3.76l-7.92-7.93L18 4l8 7.93z"},null,-1),M2=[x2];function z2(t,s){return e(),o("svg",w2,[...M2])}const gn={name:"carbon-erase",render:z2},C2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},H2=n("path",{fill:"currentColor",d:"M26 4H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2M6 26V6h20v20Z"},null,-1),b2=[H2];function B2(t,s){return e(),o("svg",C2,[...b2])}const Ln={name:"carbon-checkbox",render:B2},V2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},Z2=n("path",{fill:"currentColor",d:"M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2m0 26a12 12 0 1 1 12-12a12 12 0 0 1-12 12"},null,-1),A2=[Z2];function k2(t,s){return e(),o("svg",V2,[...A2])}const fn={name:"carbon-radio-button",render:k2},j2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},q2=n("path",{fill:"currentColor",d:"M10 6v2h12.59L6 24.59L7.41 26L24 9.41V22h2V6z"},null,-1),y2=[q2];function E2(t,s){return e(),o("svg",j2,[...y2])}const wn={name:"carbon-arrow-up-right",render:E2},S2={class:"slidev-icon",viewBox:"0 0 32 32",width:"1.2em",height:"1.2em"},D2=n("path",{fill:"currentColor",d:"M23 28a1 1 0 0 1-.71-.29l-6.13-6.14l-3.33 5a1 1 0 0 1-1 .44a1 1 0 0 1-.81-.7l-6-20A1 1 0 0 1 6.29 5l20 6a1 1 0 0 1 .7.81a1 1 0 0 1-.44 1l-5 3.33l6.14 6.13a1 1 0 0 1 0 1.42l-4 4A1 1 0 0 1 23 28m0-2.41L25.59 23l-7.16-7.15l5.25-3.5L7.49 7.49l4.86 16.19l3.5-5.25Z"},null,-1),F2=[D2];function G2(t,s){return e(),o("svg",S2,[...F2])}const xn={name:"carbon-cursor1",render:G2};export{pn as A,$n as B,vn as C,mn as D,un as E,dn as F,an as G,xn as _,O2 as a,K2 as b,J2 as c,I2 as d,hn as e,ln as f,_n as g,cn as h,sn as i,on as j,en as k,nn as l,Y2 as m,X2 as n,P2 as o,tn as p,W2 as q,U2 as r,T2 as s,R2 as t,Q2 as u,rn as v,wn as w,fn as x,Ln as y,gn as z};
import{d as xe,n as Vt,p as Wt,a as jt,o as I,c as be,w as qt,r as ne,b as se,e as K,F as Gt,f as me,g as je,h as Oe,i as Re,j as Yt,k as ge,l as ht,m as ut,q as Xt,s as Ut,t as Le,u as Kt,v as Zt,x as Qt}from"./vue-O-XuQLLR.js";const Jt=["top","right","bottom","left"],qe=["start","end"],Ge=Jt.reduce((e,t)=>e.concat(t,t+"-"+qe[0],t+"-"+qe[1]),[]),re=Math.min,U=Math.max,eo={left:"right",right:"left",bottom:"top",top:"bottom"},to={start:"end",end:"start"};function Me(e,t,o){return U(e,re(t,o))}function Z(e,t){return typeof e=="function"?e(t):e}function B(e){return e.split("-")[0]}function L(e){return e.split("-")[1]}function ft(e){return e==="x"?"y":"x"}function De(e){return e==="y"?"height":"width"}function ce(e){return["top","bottom"].includes(B(e))?"y":"x"}function Fe(e){return ft(ce(e))}function mt(e,t,o){o===void 0&&(o=!1);const i=L(e),n=Fe(e),s=De(n);let r=n==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=ve(r)),[r,ve(r)]}function oo(e){const t=ve(e);return[we(e),t,we(t)]}function we(e){return e.replace(/start|end/g,t=>to[t])}function io(e,t,o){const i=["left","right"],n=["right","left"],s=["top","bottom"],r=["bottom","top"];switch(e){case"top":case"bottom":return o?t?n:i:t?i:n;case"left":case"right":return t?s:r;default:return[]}}function no(e,t,o,i){const n=L(e);let s=io(B(e),o==="start",i);return n&&(s=s.map(r=>r+"-"+n),t&&(s=s.concat(s.map(we)))),s}function ve(e){return e.replace(/left|right|bottom|top/g,t=>eo[t])}function so(e){return{top:0,right:0,bottom:0,left:0,...e}}function gt(e){return typeof e!="number"?so(e):{top:e,right:e,bottom:e,left:e}}function ee(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ye(e,t,o){let{reference:i,floating:n}=e;const s=ce(t),r=Fe(t),a=De(r),l=B(t),d=s==="y",f=i.x+i.width/2-n.width/2,c=i.y+i.height/2-n.height/2,u=i[a]/2-n[a]/2;let p;switch(l){case"top":p={x:f,y:i.y-n.height};break;case"bottom":p={x:f,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:c};break;case"left":p={x:i.x-n.width,y:c};break;default:p={x:i.x,y:i.y}}switch(L(t)){case"start":p[r]-=u*(o&&d?-1:1);break;case"end":p[r]+=u*(o&&d?-1:1);break}return p}const ro=async(e,t,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:r}=o,a=s.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(t));let d=await r.getElementRects({reference:e,floating:t,strategy:n}),{x:f,y:c}=Ye(d,i,l),u=i,p={},h=0;for(let v=0;v<a.length;v++){const{name:y,fn:m}=a[v],{x:g,y:$,data:x,reset:_}=await m({x:f,y:c,initialPlacement:i,placement:u,strategy:n,middlewareData:p,rects:d,platform:r,elements:{reference:e,floating:t}});f=g??f,c=$??c,p={...p,[y]:{...p[y],...x}},_&&h<=50&&(h++,typeof _=="object"&&(_.placement&&(u=_.placement),_.rects&&(d=_.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:n}):_.rects),{x:f,y:c}=Ye(d,u,l)),v=-1)}return{x:f,y:c,placement:u,strategy:n,middlewareData:p}};async function Te(e,t){var o;t===void 0&&(t={});const{x:i,y:n,platform:s,rects:r,elements:a,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:u=!1,padding:p=0}=Z(t,e),h=gt(p),y=a[u?c==="floating"?"reference":"floating":c],m=ee(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(y)))==null||o?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:d,rootBoundary:f,strategy:l})),g=c==="floating"?{...r.floating,x:i,y:n}:r.reference,$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement($))?await(s.getScale==null?void 0:s.getScale($))||{x:1,y:1}:{x:1,y:1},_=ee(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:$,strategy:l}):g);return{top:(m.top-_.top+h.top)/x.y,bottom:(_.bottom-m.bottom+h.bottom)/x.y,left:(m.left-_.left+h.left)/x.x,right:(_.right-m.right+h.right)/x.x}}const ao=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:i,placement:n,rects:s,platform:r,elements:a,middlewareData:l}=t,{element:d,padding:f=0}=Z(e,t)||{};if(d==null)return{};const c=gt(f),u={x:o,y:i},p=Fe(n),h=De(p),v=await r.getDimensions(d),y=p==="y",m=y?"top":"left",g=y?"bottom":"right",$=y?"clientHeight":"clientWidth",x=s.reference[h]+s.reference[p]-u[p]-s.floating[h],_=u[p]-s.reference[p],b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(d));let T=b?b[$]:0;(!T||!await(r.isElement==null?void 0:r.isElement(b)))&&(T=a.floating[$]||s.floating[h]);const O=x/2-_/2,N=T/2-v[h]/2-1,S=re(c[m],N),k=re(c[g],N),P=S,Y=T-v[h]-k,C=T/2-v[h]/2+O,H=Me(P,C,Y),E=!l.arrow&&L(n)!=null&&C!==H&&s.reference[h]/2-(C<P?S:k)-v[h]/2<0,F=E?C<P?C-P:C-Y:0;return{[p]:u[p]+F,data:{[p]:H,centerOffset:C-H-F,...E&&{alignmentOffset:F}},reset:E}}});function lo(e,t,o){return(e?[...o.filter(n=>L(n)===e),...o.filter(n=>L(n)!==e)]:o.filter(n=>B(n)===n)).filter(n=>e?L(n)===e||(t?we(n)!==n:!1):!0)}const po=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,i,n;const{rects:s,middlewareData:r,placement:a,platform:l,elements:d}=t,{crossAxis:f=!1,alignment:c,allowedPlacements:u=Ge,autoAlignment:p=!0,...h}=Z(e,t),v=c!==void 0||u===Ge?lo(c||null,p,u):u,y=await Te(t,h),m=((o=r.autoPlacement)==null?void 0:o.index)||0,g=v[m];if(g==null)return{};const $=mt(g,s,await(l.isRTL==null?void 0:l.isRTL(d.floating)));if(a!==g)return{reset:{placement:v[0]}};const x=[y[B(g)],y[$[0]],y[$[1]]],_=[...((i=r.autoPlacement)==null?void 0:i.overflows)||[],{placement:g,overflows:x}],b=v[m+1];if(b)return{data:{index:m+1,overflows:_},reset:{placement:b}};const T=_.map(S=>{const k=L(S.placement);return[S.placement,k&&f?S.overflows.slice(0,2).reduce((P,Y)=>P+Y,0):S.overflows[0],S.overflows]}).sort((S,k)=>S[1]-k[1]),N=((n=T.filter(S=>S[2].slice(0,L(S[0])?2:3).every(k=>k<=0))[0])==null?void 0:n[0])||T[0][0];return N!==a?{data:{index:m+1,overflows:_},reset:{placement:N}}:{}}}},co=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,i;const{placement:n,middlewareData:s,rects:r,initialPlacement:a,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:u,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...y}=Z(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const m=B(n),g=B(a)===a,$=await(l.isRTL==null?void 0:l.isRTL(d.floating)),x=u||(g||!v?[ve(a)]:oo(a));!u&&h!=="none"&&x.push(...no(a,v,h,$));const _=[a,...x],b=await Te(t,y),T=[];let O=((i=s.flip)==null?void 0:i.overflows)||[];if(f&&T.push(b[m]),c){const P=mt(n,r,$);T.push(b[P[0]],b[P[1]])}if(O=[...O,{placement:n,overflows:T}],!T.every(P=>P<=0)){var N,S;const P=(((N=s.flip)==null?void 0:N.index)||0)+1,Y=_[P];if(Y)return{data:{index:P,overflows:O},reset:{placement:Y}};let C=(S=O.filter(H=>H.overflows[0]<=0).sort((H,E)=>H.overflows[1]-E.overflows[1])[0])==null?void 0:S.placement;if(!C)switch(p){case"bestFit":{var k;const H=(k=O.map(E=>[E.placement,E.overflows.filter(F=>F>0).reduce((F,It)=>F+It,0)]).sort((E,F)=>E[1]-F[1])[0])==null?void 0:k[0];H&&(C=H);break}case"initialPlacement":C=a;break}if(n!==C)return{reset:{placement:C}}}return{}}}};async function ho(e,t){const{placement:o,platform:i,elements:n}=e,s=await(i.isRTL==null?void 0:i.isRTL(n.floating)),r=B(o),a=L(o),l=ce(o)==="y",d=["left","top"].includes(r)?-1:1,f=s&&l?-1:1,c=Z(t,e);let{mainAxis:u,crossAxis:p,alignmentAxis:h}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return a&&typeof h=="number"&&(p=a==="end"?h*-1:h),l?{x:p*f,y:u*d}:{x:u*d,y:p*f}}const uo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,i;const{x:n,y:s,placement:r,middlewareData:a}=t,l=await ho(t,e);return r===((o=a.offset)==null?void 0:o.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:n+l.x,y:s+l.y,data:{...l,placement:r}}}}},fo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:i,placement:n}=t,{mainAxis:s=!0,crossAxis:r=!1,limiter:a={fn:y=>{let{x:m,y:g}=y;return{x:m,y:g}}},...l}=Z(e,t),d={x:o,y:i},f=await Te(t,l),c=ce(B(n)),u=ft(c);let p=d[u],h=d[c];if(s){const y=u==="y"?"top":"left",m=u==="y"?"bottom":"right",g=p+f[y],$=p-f[m];p=Me(g,p,$)}if(r){const y=c==="y"?"top":"left",m=c==="y"?"bottom":"right",g=h+f[y],$=h-f[m];h=Me(g,h,$)}const v=a.fn({...t,[u]:p,[c]:h});return{...v,data:{x:v.x-o,y:v.y-i}}}}},mo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:o,rects:i,platform:n,elements:s}=t,{apply:r=()=>{},...a}=Z(e,t),l=await Te(t,a),d=B(o),f=L(o),c=ce(o)==="y",{width:u,height:p}=i.floating;let h,v;d==="top"||d==="bottom"?(h=d,v=f===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,h=f==="end"?"top":"bottom");const y=p-l[h],m=u-l[v],g=!t.middlewareData.shift;let $=y,x=m;if(c){const b=u-l.left-l.right;x=f||g?re(m,b):b}else{const b=p-l.top-l.bottom;$=f||g?re(y,b):b}if(g&&!f){const b=U(l.left,0),T=U(l.right,0),O=U(l.top,0),N=U(l.bottom,0);c?x=u-2*(b!==0||T!==0?b+T:U(l.left,l.right)):$=p-2*(O!==0||N!==0?O+N:U(l.top,l.bottom))}await r({...t,availableWidth:x,availableHeight:$});const _=await n.getDimensions(s.floating);return u!==_.width||p!==_.height?{reset:{rects:!0}}:{}}}};function A(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function R(e){return A(e).getComputedStyle(e)}const Xe=Math.min,te=Math.max,ye=Math.round;function wt(e){const t=R(e);let o=parseFloat(t.width),i=parseFloat(t.height);const n=e.offsetWidth,s=e.offsetHeight,r=ye(o)!==n||ye(i)!==s;return r&&(o=n,i=s),{width:o,height:i,fallback:r}}function j(e){return yt(e)?(e.nodeName||"").toLowerCase():""}let he;function vt(){if(he)return he;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(he=e.brands.map(t=>t.brand+"/"+t.version).join(" "),he):navigator.userAgent}function D(e){return e instanceof A(e).HTMLElement}function q(e){return e instanceof A(e).Element}function yt(e){return e instanceof A(e).Node}function Ue(e){if(typeof ShadowRoot>"u")return!1;const t=A(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Se(e){const{overflow:t,overflowX:o,overflowY:i,display:n}=R(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+o)&&!["inline","contents"].includes(n)}function go(e){return["table","td","th"].includes(j(e))}function Ie(e){const t=/firefox/i.test(vt()),o=R(e),i=o.backdropFilter||o.WebkitBackdropFilter;return o.transform!=="none"||o.perspective!=="none"||(i?i!=="none":!1)||t&&o.willChange==="filter"||t&&(o.filter?o.filter!=="none":!1)||["transform","perspective"].some(n=>o.willChange.includes(n))||["paint","layout","strict","content"].some(n=>{const s=o.contain;return s!=null?s.includes(n):!1})}function $t(){return!/^((?!chrome|android).)*safari/i.test(vt())}function Ve(e){return["html","body","#document"].includes(j(e))}function _t(e){return q(e)?e:e.contextElement}const xt={x:1,y:1};function Q(e){const t=_t(e);if(!D(t))return xt;const o=t.getBoundingClientRect(),{width:i,height:n,fallback:s}=wt(t);let r=(s?ye(o.width):o.width)/i,a=(s?ye(o.height):o.height)/n;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}function ae(e,t,o,i){var n,s;t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),a=_t(e);let l=xt;t&&(i?q(i)&&(l=Q(i)):l=Q(e));const d=a?A(a):window,f=!$t()&&o;let c=(r.left+(f&&((n=d.visualViewport)==null?void 0:n.offsetLeft)||0))/l.x,u=(r.top+(f&&((s=d.visualViewport)==null?void 0:s.offsetTop)||0))/l.y,p=r.width/l.x,h=r.height/l.y;if(a){const v=A(a),y=i&&q(i)?A(i):i;let m=v.frameElement;for(;m&&i&&y!==v;){const g=Q(m),$=m.getBoundingClientRect(),x=getComputedStyle(m);$.x+=(m.clientLeft+parseFloat(x.paddingLeft))*g.x,$.y+=(m.clientTop+parseFloat(x.paddingTop))*g.y,c*=g.x,u*=g.y,p*=g.x,h*=g.y,c+=$.x,u+=$.y,m=A(m).frameElement}}return{width:p,height:h,top:u,right:c+p,bottom:u+h,left:c,x:c,y:u}}function G(e){return((yt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function wo(e){let{rect:t,offsetParent:o,strategy:i}=e;const n=D(o),s=G(o);if(o===s)return t;let r={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((n||!n&&i!=="fixed")&&((j(o)!=="body"||Se(s))&&(r=Pe(o)),D(o))){const d=ae(o);a=Q(o),l.x=d.x+o.clientLeft,l.y=d.y+o.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-r.scrollLeft*a.x+l.x,y:t.y*a.y-r.scrollTop*a.y+l.y}}function bt(e){return ae(G(e)).left+Pe(e).scrollLeft}function vo(e){const t=G(e),o=Pe(e),i=e.ownerDocument.body,n=te(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=te(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let r=-o.scrollLeft+bt(e);const a=-o.scrollTop;return R(i).direction==="rtl"&&(r+=te(t.clientWidth,i.clientWidth)-n),{width:n,height:s,x:r,y:a}}function le(e){if(j(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ue(e)&&e.host||G(e);return Ue(t)?t.host:t}function Tt(e){const t=le(e);return Ve(t)?t.ownerDocument.body:D(t)&&Se(t)?t:Tt(t)}function $e(e,t){var o;t===void 0&&(t=[]);const i=Tt(e),n=i===((o=e.ownerDocument)==null?void 0:o.body),s=A(i);return n?t.concat(s,s.visualViewport||[],Se(i)?i:[]):t.concat(i,$e(i))}function yo(e,t){const o=A(e),i=G(e),n=o.visualViewport;let s=i.clientWidth,r=i.clientHeight,a=0,l=0;if(n){s=n.width,r=n.height;const d=$t();(d||!d&&t==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:s,height:r,x:a,y:l}}function $o(e,t){const o=ae(e,!0,t==="fixed"),i=o.top+e.clientTop,n=o.left+e.clientLeft,s=D(e)?Q(e):{x:1,y:1},r=e.clientWidth*s.x,a=e.clientHeight*s.y,l=n*s.x,d=i*s.y;return{width:r,height:a,x:l,y:d}}function Ke(e,t,o){return t==="viewport"?ee(yo(e,o)):q(t)?ee($o(t,o)):ee(vo(G(e)))}function _o(e,t){const o=t.get(e);if(o)return o;let i=$e(e).filter(a=>q(a)&&j(a)!=="body"),n=null;const s=R(e).position==="fixed";let r=s?le(e):e;for(;q(r)&&!Ve(r);){const a=R(r),l=Ie(r);(s?!l&&!n:!l&&a.position==="static"&&!!n&&["absolute","fixed"].includes(n.position))?i=i.filter(f=>f!==r):n=a,r=le(r)}return t.set(e,i),i}function xo(e){let{element:t,boundary:o,rootBoundary:i,strategy:n}=e;const r=[...o==="clippingAncestors"?_o(t,this._c):[].concat(o),i],a=r[0],l=r.reduce((d,f)=>{const c=Ke(t,f,n);return d.top=te(c.top,d.top),d.right=Xe(c.right,d.right),d.bottom=Xe(c.bottom,d.bottom),d.left=te(c.left,d.left),d},Ke(t,a,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function bo(e){return D(e)?wt(e):e.getBoundingClientRect()}function Ze(e){return!D(e)||R(e).position==="fixed"?null:e.offsetParent}function To(e){let t=le(e);for(;D(t)&&!Ve(t);){if(Ie(t))return t;t=le(t)}return null}function Qe(e){const t=A(e);let o=Ze(e);for(;o&&go(o)&&R(o).position==="static";)o=Ze(o);return o&&(j(o)==="html"||j(o)==="body"&&R(o).position==="static"&&!Ie(o))?t:o||To(e)||t}function So(e,t,o){const i=D(t),n=G(t),s=ae(e,!0,o==="fixed",t);let r={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(i||!i&&o!=="fixed")if((j(t)!=="body"||Se(n))&&(r=Pe(t)),D(t)){const l=ae(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else n&&(a.x=bt(n));return{x:s.left+r.scrollLeft-a.x,y:s.top+r.scrollTop-a.y,width:s.width,height:s.height}}const Po={getClippingRect:xo,convertOffsetParentRelativeRectToViewportRelativeRect:wo,isElement:q,getDimensions:bo,getOffsetParent:Qe,getDocumentElement:G,getScale:Q,async getElementRects(e){let{reference:t,floating:o,strategy:i}=e;const n=this.getOffsetParent||Qe,s=this.getDimensions;return{reference:So(t,await n(o),i),floating:{x:0,y:0,...await s(o)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>R(e).direction==="rtl"},Co=(e,t,o)=>{const i=new Map,n={platform:Po,...o},s={...n.platform,_c:i};return ro(e,t,{...n,platform:s})};function St(e,t){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(typeof t[o]=="object"&&e[o]?St(e[o],t[o]):e[o]=t[o])}const M={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function de(e,t){let o=M.themes[e]||{},i;do i=o[t],typeof i>"u"?o.$extend?o=M.themes[o.$extend]||{}:(o=null,i=M[t]):o=null;while(o);return i}function Ao(e){const t=[e];let o=M.themes[e]||{};do o.$extend&&!o.$resetCss?(t.push(o.$extend),o=M.themes[o.$extend]||{}):o=null;while(o);return t.map(i=>`v-popper--theme-${i}`)}function Je(e){const t=[e];let o=M.themes[e]||{};do o.$extend?(t.push(o.$extend),o=M.themes[o.$extend]||{}):o=null;while(o);return t}let J=!1;if(typeof window<"u"){J=!1;try{const e=Object.defineProperty({},"passive",{get(){J=!0}});window.addEventListener("test",null,e)}catch{}}let Pt=!1;typeof window<"u"&&typeof navigator<"u"&&(Pt=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Ct=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),et={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},tt={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function ot(e,t){const o=e.indexOf(t);o!==-1&&e.splice(o,1)}function Ne(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const z=[];let X=null;const it={};function nt(e){let t=it[e];return t||(t=it[e]=[]),t}let He=function(){};typeof window<"u"&&(He=window.Element);function w(e){return function(t){return de(t.theme,e)}}const ke="__floating-vue__popper",At=()=>xe({name:"VPopper",provide(){return{[ke]:{parentPopper:this}}},inject:{[ke]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:w("disabled")},positioningDisabled:{type:Boolean,default:w("positioningDisabled")},placement:{type:String,default:w("placement"),validator:e=>Ct.includes(e)},delay:{type:[String,Number,Object],default:w("delay")},distance:{type:[Number,String],default:w("distance")},skidding:{type:[Number,String],default:w("skidding")},triggers:{type:Array,default:w("triggers")},showTriggers:{type:[Array,Function],default:w("showTriggers")},hideTriggers:{type:[Array,Function],default:w("hideTriggers")},popperTriggers:{type:Array,default:w("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:w("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:w("popperHideTriggers")},container:{type:[String,Object,He,Boolean],default:w("container")},boundary:{type:[String,He],default:w("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:w("strategy")},autoHide:{type:[Boolean,Function],default:w("autoHide")},handleResize:{type:Boolean,default:w("handleResize")},instantMove:{type:Boolean,default:w("instantMove")},eagerMount:{type:Boolean,default:w("eagerMount")},popperClass:{type:[String,Array,Object],default:w("popperClass")},computeTransformOrigin:{type:Boolean,default:w("computeTransformOrigin")},autoMinSize:{type:Boolean,default:w("autoMinSize")},autoSize:{type:[Boolean,String],default:w("autoSize")},autoMaxSize:{type:Boolean,default:w("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:w("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:w("preventOverflow")},overflowPadding:{type:[Number,String],default:w("overflowPadding")},arrowPadding:{type:[Number,String],default:w("arrowPadding")},arrowOverflow:{type:Boolean,default:w("arrowOverflow")},flip:{type:Boolean,default:w("flip")},shift:{type:Boolean,default:w("shift")},shiftCrossAxis:{type:Boolean,default:w("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:w("noAutoFocus")},disposeTimeout:{type:Number,default:w("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[ke])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:o=!1}={}){var i,n;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(o||!this.disabled)&&(((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var o;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((o=this.parentPopper)==null?void 0:o.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(uo({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(po({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(fo({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(co({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(ao({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:n,middlewareData:s})=>{let r;const{centerOffset:a}=s.arrow;return i.startsWith("top")||i.startsWith("bottom")?r=Math.abs(a)>n.reference.width/2:r=Math.abs(a)>n.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){const i=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:n,placement:s,middlewareData:r})=>{var a;if((a=r.autoSize)!=null&&a.skip)return{};let l,d;return s.startsWith("top")||s.startsWith("bottom")?l=n.reference.width:d=n.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="max"?"maxHeight":"height"]=d!=null?`${d}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(mo({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:i,availableHeight:n})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=n!=null?`${n}px`:null}})));const o=await Co(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:{...o.middlewareData.arrow,...o.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),X&&this.instantMove&&X.instantMove&&X!==this.parentPopper){X.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(X=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Ne(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...$e(this.$_referenceNode),...$e(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),o=this.$_popperNode.querySelector(".v-popper__wrapper"),i=o.parentNode.getBoundingClientRect(),n=t.x+t.width/2-(i.left+o.offsetLeft),s=t.y+t.height/2-(i.top+o.offsetTop);this.result.transformOrigin=`${n}px ${s}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let o=0;o<z.length;o++)t=z[o],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}z.push(this),document.body.classList.add("v-popper--some-open");for(const t of Je(this.theme))nt(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Ne(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,ot(z,this),z.length===0&&document.body.classList.remove("v-popper--some-open");for(const o of Je(this.theme)){const i=nt(o);ot(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${o}`)}X===this&&(X=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Ne(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=o=>{this.isShown&&!this.$_hideInProgress||(o.usedByTooltip=!0,!this.$_preventShow&&this.show({event:o}))};this.$_registerTriggerListeners(this.$_targetNodes,et,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],et,this.popperTriggers,this.popperShowTriggers,e);const t=o=>{o.usedByTooltip||this.hide({event:o})};this.$_registerTriggerListeners(this.$_targetNodes,tt,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],tt,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,o){this.$_events.push({targetNodes:e,eventType:t,handler:o}),e.forEach(i=>i.addEventListener(t,o,J?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,o,i,n){let s=o;i!=null&&(s=typeof i=="function"?i(s):i),s.forEach(r=>{const a=t[r];a&&this.$_registerEventListeners(e,a,n)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(o=>{const{targetNodes:i,eventType:n,handler:s}=o;!e||e===n?i.forEach(r=>r.removeEventListener(n,s)):t.push(o)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const o of this.$_targetNodes){const i=o.getAttribute(e);i&&(o.removeAttribute(e),o.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const o in e){const i=e[o];i==null?t.removeAttribute(o):t.setAttribute(o,i)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(oe>=e.left&&oe<=e.right&&ie>=e.top&&ie<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),o=oe-V,i=ie-W,n=t.left+t.width/2-V+(t.top+t.height/2)-W+t.width+t.height,s=V+o*n,r=W+i*n;return ue(V,W,s,r,t.left,t.top,t.left,t.bottom)||ue(V,W,s,r,t.left,t.top,t.right,t.top)||ue(V,W,s,r,t.right,t.top,t.right,t.bottom)||ue(V,W,s,r,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Pt){const e=J?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>st(t,!0),e),document.addEventListener("touchend",t=>rt(t,!0),e)}else window.addEventListener("mousedown",e=>st(e,!1),!0),window.addEventListener("click",e=>rt(e,!1),!0);window.addEventListener("resize",Nt)}function st(e,t){if(M.autoHideOnMousedown)Ot(e,t);else for(let o=0;o<z.length;o++){const i=z[o];try{i.mouseDownContains=i.popperNode().contains(e.target)}catch{}}}function rt(e,t){M.autoHideOnMousedown||Ot(e,t)}function Ot(e,t){const o={};for(let i=z.length-1;i>=0;i--){const n=z[i];try{const s=n.containsGlobalTarget=n.mouseDownContains||n.popperNode().contains(e.target);n.pendingHide=!1,requestAnimationFrame(()=>{if(n.pendingHide=!1,!o[n.randomId]&&at(n,s,e)){if(n.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&s){let a=n.parentPopper;for(;a;)o[a.randomId]=!0,a=a.parentPopper;return}let r=n.parentPopper;for(;r&&at(r,r.containsGlobalTarget,e);)r.$_handleGlobalClose(e,t),r=r.parentPopper}})}catch{}}}function at(e,t,o){return o.closeAllPopover||o.closePopover&&t||Oo(e,o)&&!t}function Oo(e,t){if(typeof e.autoHide=="function"){const o=e.autoHide(t);return e.lastAutoHide=o,o}return e.autoHide}function Nt(){for(let e=0;e<z.length;e++)z[e].$_computePosition()}let V=0,W=0,oe=0,ie=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{V=oe,W=ie,oe=e.clientX,ie=e.clientY},J?{passive:!0}:void 0);function ue(e,t,o,i,n,s,r,a){const l=((r-n)*(t-s)-(a-s)*(e-n))/((a-s)*(o-e)-(r-n)*(i-t)),d=((o-e)*(t-s)-(i-t)*(e-n))/((a-s)*(o-e)-(r-n)*(i-t));return l>=0&&l<=1&&d>=0&&d<=1}const No={extends:At()},Ce=(e,t)=>{const o=e.__vccOpts||e;for(const[i,n]of t)o[i]=n;return o};function ko(e,t,o,i,n,s){return I(),se("div",{ref:"reference",class:Re(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[me(e.$slots,"default",Xt(Ut(e.slotData)))],2)}const zo=Ce(No,[["render",ko]]);function Lo(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var o=e.indexOf("Trident/");if(o>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}let fe;function Ee(){Ee.init||(Ee.init=!0,fe=Lo()!==-1)}var Ae={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Ee(),Vt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",fe&&this.$el.appendChild(e),e.data="about:blank",fe||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!fe&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Mo=qt();Wt("data-v-b329ee4c");const Ho={class:"resize-observer",tabindex:"-1"};jt();const Eo=Mo((e,t,o,i,n,s)=>(I(),be("div",Ho)));Ae.render=Eo;Ae.__scopeId="data-v-b329ee4c";Ae.__file="src/components/ResizeObserver.vue";const kt=(e="theme")=>({computed:{themeClass(){return Ao(this[e])}}}),Bo=xe({name:"VPopperContent",components:{ResizeObserver:Ae},mixins:[kt()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),Ro=["id","aria-hidden","tabindex","data-popper-placement"],Do={ref:"inner",class:"v-popper__inner"},Fo=K("div",{class:"v-popper__arrow-outer"},null,-1),Io=K("div",{class:"v-popper__arrow-inner"},null,-1),Vo=[Fo,Io];function Wo(e,t,o,i,n,s){const r=ne("ResizeObserver");return I(),se("div",{id:e.popperId,ref:"popover",class:Re(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Oe(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Yt(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[K("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),K("div",{class:"v-popper__wrapper",style:Oe(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[K("div",Do,[e.mounted?(I(),se(Gt,{key:0},[K("div",null,[me(e.$slots,"default")]),e.handleResize?(I(),be(r,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):je("",!0)],64)):je("",!0)],512),K("div",{ref:"arrow",class:"v-popper__arrow-container",style:Oe(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Vo,4)],4)],46,Ro)}const zt=Ce(Bo,[["render",Wo]]),Lt={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Be=function(){};typeof window<"u"&&(Be=window.Element);const jo=xe({name:"VPopperWrapper",components:{Popper:zo,PopperContent:zt},mixins:[Lt,kt("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Be,Boolean],default:void 0},boundary:{type:[String,Be],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function qo(e,t,o,i,n,s){const r=ne("PopperContent"),a=ne("Popper");return I(),be(a,ut({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:ge(({popperId:l,isShown:d,shouldMountContent:f,skipTransition:c,autoHide:u,show:p,hide:h,handleResize:v,onResize:y,classes:m,result:g})=>[me(e.$slots,"default",{shown:d,show:p,hide:h}),ht(r,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:d,mounted:f,"skip-transition":c,"auto-hide":u,"handle-resize":v,classes:m,result:g,onHide:h,onResize:y},{default:ge(()=>[me(e.$slots,"popper",{shown:d,hide:h})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const We=Ce(jo,[["render",qo]]),Go={...We,name:"VDropdown",vPopperTheme:"dropdown"},Mt={...We,name:"VMenu",vPopperTheme:"menu"},Yo={...We,name:"VTooltip",vPopperTheme:"tooltip"},Xo=xe({name:"VTooltipDirective",components:{Popper:At(),PopperContent:zt},mixins:[Lt],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>de(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>de(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,o=this.content(this);o.then?o.then(i=>this.onResult(t,i)):this.onResult(t,o)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),Uo=["innerHTML"],Ko=["textContent"];function Zo(e,t,o,i,n,s){const r=ne("PopperContent"),a=ne("Popper");return I(),be(a,ut({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:ge(({popperId:l,isShown:d,shouldMountContent:f,skipTransition:c,autoHide:u,hide:p,handleResize:h,onResize:v,classes:y,result:m})=>[ht(r,{ref:"popperContent",class:Re({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:d,mounted:f,"skip-transition":c,"auto-hide":u,"handle-resize":h,classes:y,result:m,onHide:p,onResize:v},{default:ge(()=>[e.html?(I(),se("div",{key:0,innerHTML:e.finalContent},null,8,Uo)):(I(),se("div",{key:1,textContent:Qt(e.finalContent)},null,8,Ko))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const Qo=Ce(Xo,[["render",Zo]]),Ht="v-popper--has-tooltip";function Jo(e,t){let o=e.placement;if(!o&&t)for(const i of Ct)t[i]&&(o=i);return o||(o=de(e.theme||"tooltip","placement")),o}function Et(e,t,o){let i;const n=typeof t;return n==="string"?i={content:t}:t&&n==="object"?i=t:i={content:!1},i.placement=Jo(i,o),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}let ze,pe,ei=0;function ti(){if(ze)return;pe=Le([]),ze=Kt({name:"VTooltipDirectiveApp",setup(){return{directives:pe}},render(){return this.directives.map(t=>Zt(Qo,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),ze.mount(e)}function oi(e,t,o){ti();const i=Le(Et(e,t,o)),n=Le(!1),s={id:ei++,options:i,shown:n};return pe.value.push(s),e.classList&&e.classList.add(Ht),e.$_popper={options:i,item:s,show(){n.value=!0},hide(){n.value=!1}}}function Bt(e){if(e.$_popper){const t=pe.value.indexOf(e.$_popper.item);t!==-1&&pe.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Ht)}function lt(e,{value:t,modifiers:o}){const i=Et(e,t,o);if(!i.content||de(i.theme||"tooltip","disabled"))Bt(e);else{let n;e.$_popper?(n=e.$_popper,n.options.value=i):n=oi(e,t,o),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?n.show():n.hide())}}const ii={beforeMount:lt,updated:lt,beforeUnmount(e){Bt(e)}};function dt(e){e.addEventListener("mousedown",_e),e.addEventListener("click",_e),e.addEventListener("touchstart",Rt,J?{passive:!0}:!1)}function pt(e){e.removeEventListener("mousedown",_e),e.removeEventListener("click",_e),e.removeEventListener("touchstart",Rt),e.removeEventListener("touchend",Dt),e.removeEventListener("touchcancel",Ft)}function _e(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Rt(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const o=e.changedTouches[0];t.$_vclosepopover_touchPoint=o,t.addEventListener("touchend",Dt),t.addEventListener("touchcancel",Ft)}}function Dt(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const o=e.changedTouches[0],i=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(o.screenY-i.screenY)<20&&Math.abs(o.screenX-i.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Ft(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const ni={beforeMount(e,{value:t,modifiers:o}){e.$_closePopoverModifiers=o,(typeof t>"u"||t)&&dt(e)},updated(e,{value:t,oldValue:o,modifiers:i}){e.$_closePopoverModifiers=i,t!==o&&(typeof t>"u"||t?dt(e):pt(e))},beforeUnmount(e){pt(e)}},li=Mt;function si(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,St(M,t),e.directive("tooltip",ii),e.directive("close-popper",ni),e.component("VTooltip",Yo),e.component("VDropdown",Go),e.component("VMenu",Mt))}const ri={version:"5.2.2",install:si,options:M},ct=typeof navigator<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),di={install:(e,t={})=>{typeof window<"u"&&window.addEventListener("click",o=>{o.composedPath().some(n=>{var s,r,a,l;return((r=(s=n==null?void 0:n.classList)==null?void 0:s.contains)==null?void 0:r.call(s,"vp-code-group"))||((l=(a=n==null?void 0:n.classList)==null?void 0:a.contains)==null?void 0:l.call(a,"tabs"))})&&Nt()},{passive:!0}),e.use(ri,{...t,themes:{twoslash:{$extend:"dropdown",triggers:ct?["touch"]:["hover","touch"],popperTriggers:ct?["touch"]:["hover","touch"],placement:"bottom-start",overflowPadding:10,delay:0,handleResize:!1,autoHide:!0,instantMove:!0,flip:!1,arrowPadding:8,autoBoundaryMaxSize:!0},"twoslash-query":{$extend:"twoslash",triggers:["click"],popperTriggers:["click"],autoHide:!1},"twoslash-completion":{$extend:"twoslash-query",triggers:["click"],popperTriggers:["click"],autoHide:!1,distance:0,arrowOverflow:!0},...t.theme}})}};export{li as L,di as T,Nt as t};
.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper__popper{z-index:10000;top:0;left:0;outline:none}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;pointer-events:none}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.v-popper__inner{position:relative;box-sizing:border-box;overflow-y:auto}.v-popper__inner>div{position:relative;z-index:1;max-width:inherit;max-height:inherit}.v-popper__arrow-container{position:absolute;width:10px;height:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;position:absolute;top:0;left:0;width:0;height:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-tooltip .v-popper__inner{background:#000c;color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#000;border-radius:6px;border:1px solid #ddd;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd}:root{--twoslash-border-color: #8888;--twoslash-underline-color: currentColor;--twoslash-highlighted-border: #c37d0d50;--twoslash-highlighted-bg: #c37d0d20;--twoslash-popup-bg: #f8f8f8;--twoslash-popup-color: inherit;--twoslash-popup-shadow: rgba(0, 0, 0, .08) 0px 1px 4px;--twoslash-docs-color: #888;--twoslash-docs-font: sans-serif;--twoslash-code-font: inherit;--twoslash-code-font-size: 1em;--twoslash-matched-color: inherit;--twoslash-unmatched-color: #888;--twoslash-cursor-color: #8888;--twoslash-error-color: #d45656;--twoslash-error-bg: #d4565620;--twoslash-warn-color: #c37d0d;--twoslash-warn-bg: #c37d0d20;--twoslash-tag-color: #3772cf;--twoslash-tag-bg: #3772cf20;--twoslash-tag-warn-color: var(--twoslash-warn-color);--twoslash-tag-warn-bg: var(--twoslash-warn-bg);--twoslash-tag-annotate-color: #1ba673;--twoslash-tag-annotate-bg: #1ba67320}@media (prefers-reduced-motion: reduce){.twoslash *{transition:none!important}}.twoslash:hover .twoslash-hover{border-color:var(--twoslash-underline-color)}.twoslash .twoslash-hover{border-bottom:1px dotted transparent;transition-timing-function:ease;transition:border-color .3s;position:relative}.twoslash .twoslash-popup-container{position:absolute;opacity:0;display:inline-flex;flex-direction:column;transform:translateY(1.1em);background:var(--twoslash-popup-bg);color:var(--twoslash-popup-color);border:1px solid var(--twoslash-border-color);transition:opacity .3s;border-radius:4px;pointer-events:none;z-index:10;-webkit-user-select:none;user-select:none;text-align:left;box-shadow:var(--twoslash-popup-shadow)}.twoslash .twoslash-query-presisted .twoslash-popup-container{z-index:9;transform:translateY(1.5em)}.twoslash .twoslash-hover:hover .twoslash-popup-container,.twoslash .twoslash-error-hover:hover .twoslash-popup-container,.twoslash .twoslash-query-presisted .twoslash-popup-container{opacity:1;pointer-events:auto}.twoslash .twoslash-popup-container:hover{-webkit-user-select:auto;user-select:auto}.twoslash .twoslash-popup-arrow{position:absolute;top:-4px;left:1em;border-top:1px solid var(--twoslash-border-color);border-right:1px solid var(--twoslash-border-color);background:var(--twoslash-popup-bg);transform:rotate(-45deg);width:6px;height:6px;pointer-events:none}.twoslash .twoslash-popup-code,.twoslash .twoslash-popup-error,.twoslash .twoslash-popup-docs{padding:6px 8px!important}.twoslash .twoslash-popup-code{font-family:var(--twoslash-code-font);font-size:var(--twoslash-code-font-size)}.twoslash .twoslash-popup-docs{color:var(--twoslash-docs-color);font-family:var(--twoslash-docs-font);font-size:.8em;border-top:1px solid var(--twoslash-border-color)}.twoslash .twoslash-popup-error{color:var(--twoslash-error-color);background-color:var(--twoslash-error-bg);font-family:var(--twoslash-docs-font);font-size:.8em}.twoslash .twoslash-popup-docs-tags{display:flex;flex-direction:column;font-family:var(--twoslash-docs-font)}.twoslash .twoslash-popup-docs-tags,.twoslash .twoslash-popup-docs-tag-name{margin-right:.5em}.twoslash .twoslash-popup-docs-tag-name{font-family:var(--twoslash-code-font)}.twoslash .twoslash-error-line{position:relative;background-color:var(--twoslash-error-bg);border-left:3px solid var(--twoslash-error-color);color:var(--twoslash-error-color);padding:6px 12px;margin:.2em 0;min-width:100%;width:max-content}.twoslash .twoslash-error-line.twoslash-error-level-warning{background-color:var(--twoslash-warn-bg);border-left:3px solid var(--twoslash-warn-color);color:var(--twoslash-warn-color)}.twoslash .twoslash-error{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%206%203'%20enable-background%3D'new%200%200%206%203'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%23c94824'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%202.4%2C3%200%2C0.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") repeat-x bottom left;padding-bottom:2px}.twoslash .twoslash-error.twoslash-error-level-warning{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%206%203'%20enable-background%3D'new%200%200%206%203'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%23c37d0d'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%202.4%2C3%200%2C0.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") repeat-x bottom left;padding-bottom:2px}.twoslash .twoslash-completion-cursor{position:relative}.twoslash .twoslash-completion-cursor .twoslash-completion-list{-webkit-user-select:none;user-select:none;position:absolute;top:0;left:0;transform:translateY(1.2em);margin:3px 0 0 -1px;display:inline-block;z-index:8;box-shadow:var(--twoslash-popup-shadow);background:var(--twoslash-popup-bg);border:1px solid var(--twoslash-border-color)}.twoslash-completion-list{width:240px;font-size:.8rem;padding:4px;display:flex;flex-direction:column;gap:4px}.twoslash-completion-list:hover{-webkit-user-select:auto;user-select:auto}.twoslash-completion-list:before{background-color:var(--twoslash-cursor-color);width:2px;position:absolute;top:-1.6em;height:1.4em;left:-1px;content:" "}.twoslash-completion-list li{overflow:hidden;display:flex;align-items:center;gap:.25em;line-height:1em}.twoslash-completion-list li span.twoslash-completions-unmatched{color:var(--twoslash-unmatched-color)}.twoslash-completion-list .deprecated{text-decoration:line-through;opacity:.5}.twoslash-completion-list li span.twoslash-completions-matched{color:var(--twoslash-matched-color)}.twoslash-highlighted{background-color:var(--twoslash-highlighted-bg);border:1px solid var(--twoslash-highlighted-border);padding:1px 2px;margin:-1px -3px;border-radius:4px}.twoslash-completion-list .twoslash-completions-icon{color:var(--twoslash-unmatched-color);width:1em;flex:none}.twoslash .twoslash-tag-line{position:relative;background-color:var(--twoslash-tag-bg);border-left:3px solid var(--twoslash-tag-color);color:var(--twoslash-tag-color);padding:6px 10px;margin:.2em 0;display:flex;align-items:center;gap:.3em;min-width:100%;width:max-content}.twoslash .twoslash-tag-line .twoslash-tag-icon{width:1.1em;color:inherit}.twoslash .twoslash-tag-line.twoslash-tag-error-line{background-color:var(--twoslash-error-bg);border-left:3px solid var(--twoslash-error-color);color:var(--twoslash-error-color)}.twoslash .twoslash-tag-line.twoslash-tag-warn-line{background-color:var(--twoslash-tag-warn-bg);border-left:3px solid var(--twoslash-tag-warn-color);color:var(--twoslash-tag-warn-color)}.twoslash .twoslash-tag-line.twoslash-tag-annotate-line{background-color:var(--twoslash-tag-annotate-bg);border-left:3px solid var(--twoslash-tag-annotate-color);color:var(--twoslash-tag-annotate-color)}:root{--twoslash-popup-bg: var(--vp-c-bg, inherit);--twoslash-popup-color: var(--vp-c-text-1);--twoslash-docs-color: var(--vp-c-text-1);--twoslash-docs-font: var(--vp-font-family-base);--twoslash-code-font: var(--vp-font-family-mono);--twoslash-code-size: var(--vp-code-font-size);--twoslash-underline-color: #8888;--twoslash-border-color: var(--vp-c-border);--twoslash-cursor-color: var(--vp-c-brand);--twoslash-matched-color: var(--vp-c-brand);--twoslash-unmatched-color: var(--vp-c-text-2)}.v-popper--theme-twoslash{z-index:calc(var(--vp-z-index-local-nav) - 1)}.v-popper--theme-twoslash .v-popper__inner{background:var(--twoslash-popup-bg);color:var(--twoslash-popup-color);border-color:var(--twoslash-border-color)}.v-popper--theme-twoslash .v-popper__arrow-outer{border-color:var(--twoslash-border-color)}.v-popper--theme-twoslash .v-popper__arrow-inner{border-color:var(--twoslash-popup-bg)}.twoslash-popup-container{transform:translateY(1.5em)}.twoslash-query-presisted .twoslash-popup-container{transform:translateY(1.8em)}.twoslash .v-popper{display:inline-block}.twoslash-completion-list .twoslash-completions-icon{color:var(--twoslash-unmatched-color)!important}.twoslash-floating .twoslash-popup-code{max-width:600px;display:block;width:fit-content;min-width:100%;padding:6px 12px;line-height:var(--vp-code-line-height);font-size:var(--twoslash-code-size);transition:color .5s;white-space:pre-wrap}.twoslash-floating .twoslash-popup-docs,.twoslash-floating .twoslash-popup-error{padding:0 12px!important;font-family:var(--twoslash-docs-font);font-size:.9em;max-height:500px;max-width:700px;overflow-y:auto;overflow-x:hidden;text-wrap:balance}.twoslash-floating .twoslash-popup-docs{border-top:1px solid var(--twoslash-border-color);color:var(--twoslash-docs-color)}.twoslash-floating .twoslash-popup-error{color:var(--twoslash-error-color)}.twoslash-floating .twoslash-popup-error.twoslash-error-level-warning{color:var(--twoslash-warn-color)}.twoslash-floating .twoslash-popup-docs p,.twoslash-floating .twoslash-popup-error p{margin:0;padding:6px 0;text-wrap:balance}.twoslash-floating .twoslash-popup-docs pre .twoslash-floating .twoslash-popup-error pre{background-color:var(--vp-code-block-bg);border-radius:8px;padding:12px;margin:6px -2px;overflow-x:auto}.twoslash-floating .twoslash-popup-docs-tags{display:flex;flex-direction:column;padding:8px 12px!important}.twoslash-floating .twoslash-popup-docs-tags .twoslash-popup-docs-tag-name{font-family:var(--twoslash-code-font);color:var(--twoslash-unmatched-color);margin-right:.5em}.twoslash-completion-cursor{height:1.2em;width:2px;margin-bottom:-.2em;background:var(--twoslash-cursor-color);display:inline-block;-webkit-user-select:none;user-select:none}.twoslash-floating.twoslash-completion .v-popper__arrow-container{display:none}.twoslash-floating.twoslash-completion .twoslash-completion-list{padding:6px;font-family:var(--twoslash-code-font);font-size:var(--twoslash-code-size)!important}.twoslash-floating.twoslash-completion .twoslash-completion-list li{padding:3px 0}
function O(r,v){for(var u=0;u<v.length;u++){const a=v[u];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in r)){const c=Object.getOwnPropertyDescriptor(a,s);c&&Object.defineProperty(r,s,c.get?c:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var d=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var g={exports:{}};(function(r,v){(function(u,a){a()})(d,function(){function u(e,t){return typeof t>"u"?t={autoBom:!1}:typeof t!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function a(e,t,l){var o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){p(o.response,t,l)},o.onerror=function(){console.error("could not download file")},o.send()}function s(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return 200<=t.status&&299>=t.status}function c(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof d=="object"&&d.global===d?d:void 0,y=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),p=i.saveAs||(typeof window!="object"||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!y?function(e,t,l){var o=i.URL||i.webkitURL,n=document.createElement("a");t=t||e.name||"download",n.download=t,n.rel="noopener",typeof e=="string"?(n.href=e,n.origin===location.origin?c(n):s(n.href)?a(e,t,l):c(n,n.target="_blank")):(n.href=o.createObjectURL(e),setTimeout(function(){o.revokeObjectURL(n.href)},4e4),setTimeout(function(){c(n)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,l){if(t=t||e.name||"download",typeof e!="string")navigator.msSaveOrOpenBlob(u(e,l),t);else if(s(e))a(e,t,l);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){c(o)})}}:function(e,t,l,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return a(e,t,l);var n=e.type==="application/octet-stream",E=/constructor/i.test(i.HTMLElement)||i.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||n&&E||y)&&typeof FileReader<"u"){var w=new FileReader;w.onloadend=function(){var f=w.result;f=b?f:f.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=f:location=f,o=null},w.readAsDataURL(e)}else{var h=i.URL||i.webkitURL,m=h.createObjectURL(e);o?o.location=m:location.href=m,o=null,setTimeout(function(){h.revokeObjectURL(m)},4e4)}});i.saveAs=p.saveAs=p,r.exports=p})})(g);var j=g.exports;const A=_(j),L=O({__proto__:null,default:A},[j]);export{L as F};
function O(r,v){for(var u=0;u<v.length;u++){const a=v[u];if(typeof a!="string"&&!Array.isArray(a)){for(const l in a)if(l!=="default"&&!(l in r)){const c=Object.getOwnPropertyDescriptor(a,l);c&&Object.defineProperty(r,l,c.get?c:{enumerable:!0,get:()=>a[l]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var d=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var h={exports:{}};(function(r,v){(function(u,a){a()})(d,function(){function u(e,t){return typeof t>"u"?t={autoBom:!1}:typeof t!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function a(e,t,s){var o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){p(o.response,t,s)},o.onerror=function(){console.error("could not download file")},o.send()}function l(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return 200<=t.status&&299>=t.status}function c(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof d=="object"&&d.global===d?d:void 0,y=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),p=i.saveAs||(typeof window!="object"||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!y?function(e,t,s){var o=i.URL||i.webkitURL,n=document.createElement("a");t=t||e.name||"download",n.download=t,n.rel="noopener",typeof e=="string"?(n.href=e,n.origin===location.origin?c(n):l(n.href)?a(e,t,s):c(n,n.target="_blank")):(n.href=o.createObjectURL(e),setTimeout(function(){o.revokeObjectURL(n.href)},4e4),setTimeout(function(){c(n)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,s){if(t=t||e.name||"download",typeof e!="string")navigator.msSaveOrOpenBlob(u(e,s),t);else if(l(e))a(e,t,s);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){c(o)})}}:function(e,t,s,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return a(e,t,s);var n=e.type==="application/octet-stream",E=/constructor/i.test(i.HTMLElement)||i.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||n&&E||y)&&typeof FileReader<"u"){var w=new FileReader;w.onloadend=function(){var f=w.result;f=b?f:f.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=f:location=f,o=null},w.readAsDataURL(e)}else{var g=i.URL||i.webkitURL,m=g.createObjectURL(e);o?o.location=m:location.href=m,o=null,setTimeout(function(){g.revokeObjectURL(m)},4e4)}});i.saveAs=p.saveAs=p,r.exports=p})})(h);var j=h.exports;const A=_(j),L=O({__proto__:null,default:A},[j]);export{L as F,_ as g};
import{M as Ca,O as Ul,l as qr,c as Ji,U as pp,t as yp,V as ti,d as ri,h as mp,b7 as bp,b8 as Ep,b9 as wp,X as xp}from"./slidev/Mermaid-sWhOKcCj.js";import{a as Tp}from"./createText-f6615236-DY9JQ1lr.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var Qi=function(){var de=function(ee,H,te,S){for(te=te||{},S=ee.length;S--;te[ee[S]]=H);return te},Pe=[1,4],_=[1,13],ve=[1,12],J=[1,15],C=[1,16],T=[1,20],x=[1,19],N=[6,7,8],z=[1,26],Y=[1,24],P=[1,25],Z=[6,7,11],A=[1,6,13,15,16,19,22],U=[1,33],$=[1,34],Q=[1,6,7,11,13,15,16,19,22],ne={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(H,te,S,V,R,q,he){var pe=q.length-1;switch(R){case 6:case 7:return V;case 8:V.getLogger().trace("Stop NL ");break;case 9:V.getLogger().trace("Stop EOF ");break;case 11:V.getLogger().trace("Stop NL2 ");break;case 12:V.getLogger().trace("Stop EOF2 ");break;case 15:V.getLogger().info("Node: ",q[pe].id),V.addNode(q[pe-1].length,q[pe].id,q[pe].descr,q[pe].type);break;case 16:V.getLogger().trace("Icon: ",q[pe]),V.decorateNode({icon:q[pe]});break;case 17:case 21:V.decorateNode({class:q[pe]});break;case 18:V.getLogger().trace("SPACELIST");break;case 19:V.getLogger().trace("Node: ",q[pe].id),V.addNode(0,q[pe].id,q[pe].descr,q[pe].type);break;case 20:V.decorateNode({icon:q[pe]});break;case 25:V.getLogger().trace("node found ..",q[pe-2]),this.$={id:q[pe-1],descr:q[pe-1],type:V.getType(q[pe-2],q[pe])};break;case 26:this.$={id:q[pe],descr:q[pe],type:V.nodeType.DEFAULT};break;case 27:V.getLogger().trace("node found ..",q[pe-3]),this.$={id:q[pe-3],descr:q[pe-1],type:V.getType(q[pe-2],q[pe])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:Pe},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:Pe},{6:_,7:[1,10],9:9,12:11,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},de(N,[2,3]),{1:[2,2]},de(N,[2,4]),de(N,[2,5]),{1:[2,6],6:_,12:21,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},{6:_,9:22,12:11,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},{6:z,7:Y,10:23,11:P},de(Z,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:T,22:x}),de(Z,[2,18]),de(Z,[2,19]),de(Z,[2,20]),de(Z,[2,21]),de(Z,[2,23]),de(Z,[2,24]),de(Z,[2,26],{19:[1,30]}),{20:[1,31]},{6:z,7:Y,10:32,11:P},{1:[2,7],6:_,12:21,13:ve,14:14,15:J,16:C,17:17,18:18,19:T,22:x},de(A,[2,14],{7:U,11:$}),de(Q,[2,8]),de(Q,[2,9]),de(Q,[2,10]),de(Z,[2,15]),de(Z,[2,16]),de(Z,[2,17]),{20:[1,35]},{21:[1,36]},de(A,[2,13],{7:U,11:$}),de(Q,[2,11]),de(Q,[2,12]),{21:[1,37]},de(Z,[2,25]),de(Z,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(H,te){if(te.recoverable)this.trace(H);else{var S=new Error(H);throw S.hash=te,S}},parse:function(H){var te=this,S=[0],V=[],R=[null],q=[],he=this.table,pe="",Ae=0,Ne=0,Ye=2,at=1,dt=q.slice.call(arguments,1),Re=Object.create(this.lexer),Ve={yy:{}};for(var Ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ze)&&(Ve.yy[Ze]=this.yy[Ze]);Re.setInput(H,Ve.yy),Ve.yy.lexer=Re,Ve.yy.parser=this,typeof Re.yylloc>"u"&&(Re.yylloc={});var nt=Re.yylloc;q.push(nt);var ft=Re.options&&Re.options.ranges;typeof Ve.yy.parseError=="function"?this.parseError=Ve.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(){var jt;return jt=V.pop()||Re.lex()||at,typeof jt!="number"&&(jt instanceof Array&&(V=jt,jt=V.pop()),jt=te.symbols_[jt]||jt),jt}for(var tt,yt,Et,Pt,gt={},dr,qt,nn,Kr;;){if(yt=S[S.length-1],this.defaultActions[yt]?Et=this.defaultActions[yt]:((tt===null||typeof tt>"u")&&(tt=it()),Et=he[yt]&&he[yt][tt]),typeof Et>"u"||!Et.length||!Et[0]){var Da="";Kr=[];for(dr in he[yt])this.terminals_[dr]&&dr>Ye&&Kr.push("'"+this.terminals_[dr]+"'");Re.showPosition?Da="Parse error on line "+(Ae+1)+`:
`+Re.showPosition()+`
Expecting `+Kr.join(", ")+", got '"+(this.terminals_[tt]||tt)+"'":Da="Parse error on line "+(Ae+1)+": Unexpected "+(tt==at?"end of input":"'"+(this.terminals_[tt]||tt)+"'"),this.parseError(Da,{text:Re.match,token:this.terminals_[tt]||tt,line:Re.yylineno,loc:nt,expected:Kr})}if(Et[0]instanceof Array&&Et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+yt+", token: "+tt);switch(Et[0]){case 1:S.push(tt),R.push(Re.yytext),q.push(Re.yylloc),S.push(Et[1]),tt=null,Ne=Re.yyleng,pe=Re.yytext,Ae=Re.yylineno,nt=Re.yylloc;break;case 2:if(qt=this.productions_[Et[1]][1],gt.$=R[R.length-qt],gt._$={first_line:q[q.length-(qt||1)].first_line,last_line:q[q.length-1].last_line,first_column:q[q.length-(qt||1)].first_column,last_column:q[q.length-1].last_column},ft&&(gt._$.range=[q[q.length-(qt||1)].range[0],q[q.length-1].range[1]]),Pt=this.performAction.apply(gt,[pe,Ne,Ae,Ve.yy,Et[1],R,q].concat(dt)),typeof Pt<"u")return Pt;qt&&(S=S.slice(0,-1*qt*2),R=R.slice(0,-1*qt),q=q.slice(0,-1*qt)),S.push(this.productions_[Et[1]][0]),R.push(gt.$),q.push(gt._$),nn=he[S[S.length-2]][S[S.length-1]],S.push(nn);break;case 3:return!0}}return!0}},le=function(){var ee={EOF:1,parseError:function(te,S){if(this.yy.parser)this.yy.parser.parseError(te,S);else throw new Error(te)},setInput:function(H,te){return this.yy=te||this.yy||{},this._input=H,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var H=this._input[0];this.yytext+=H,this.yyleng++,this.offset++,this.match+=H,this.matched+=H;var te=H.match(/(?:\r\n?|\n).*/g);return te?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),H},unput:function(H){var te=H.length,S=H.split(/(?:\r\n?|\n)/g);this._input=H+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-te),this.offset-=te;var V=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),S.length-1&&(this.yylineno-=S.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:S?(S.length===V.length?this.yylloc.first_column:0)+V[V.length-S.length].length-S[0].length:this.yylloc.first_column-te},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-te]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(H){this.unput(this.match.slice(H))},pastInput:function(){var H=this.matched.substr(0,this.matched.length-this.match.length);return(H.length>20?"...":"")+H.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var H=this.match;return H.length<20&&(H+=this._input.substr(0,20-H.length)),(H.substr(0,20)+(H.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var H=this.pastInput(),te=new Array(H.length+1).join("-");return H+this.upcomingInput()+`
`+te+"^"},test_match:function(H,te){var S,V,R;if(this.options.backtrack_lexer&&(R={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(R.yylloc.range=this.yylloc.range.slice(0))),V=H[0].match(/(?:\r\n?|\n).*/g),V&&(this.yylineno+=V.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:V?V[V.length-1].length-V[V.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+H[0].length},this.yytext+=H[0],this.match+=H[0],this.matches=H,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(H[0].length),this.matched+=H[0],S=this.performAction.call(this,this.yy,this,te,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),S)return S;if(this._backtrack){for(var q in R)this[q]=R[q];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var H,te,S,V;this._more||(this.yytext="",this.match="");for(var R=this._currentRules(),q=0;q<R.length;q++)if(S=this._input.match(this.rules[R[q]]),S&&(!te||S[0].length>te[0].length)){if(te=S,V=q,this.options.backtrack_lexer){if(H=this.test_match(S,R[q]),H!==!1)return H;if(this._backtrack){te=!1;continue}else return!1}else if(!this.options.flex)break}return te?(H=this.test_match(te,R[V]),H!==!1?H:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var te=this.next();return te||this.lex()},begin:function(te){this.conditionStack.push(te)},popState:function(){var te=this.conditionStack.length-1;return te>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(te){return te=this.conditionStack.length-1-Math.abs(te||0),te>=0?this.conditionStack[te]:"INITIAL"},pushState:function(te){this.begin(te)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(te,S,V,R){switch(V){case 0:return te.getLogger().trace("Found comment",S.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:te.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return te.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:te.getLogger().trace("end icon"),this.popState();break;case 10:return te.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return te.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return te.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return te.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:te.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return te.getLogger().trace("description:",S.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),te.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),te.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),te.getLogger().trace("node end ...",S.yytext),"NODE_DEND";case 30:return this.popState(),te.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),te.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),te.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),te.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),te.getLogger().trace("node end (("),"NODE_DEND";case 35:return te.getLogger().trace("Long description:",S.yytext),20;case 36:return te.getLogger().trace("Long description:",S.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return ee}();ne.lexer=le;function j(){this.yy={}}return j.prototype=ne,ne.Parser=j,new j}();Qi.parser=Qi;const Cp=Qi;let sr=[],_l=0,ji={};const Dp=()=>{sr=[],_l=0,ji={}},Sp=function(de){for(let Pe=sr.length-1;Pe>=0;Pe--)if(sr[Pe].level<de)return sr[Pe];return null},Lp=()=>sr.length>0?sr[0]:null,Ap=(de,Pe,_,ve)=>{var J,C;qr.info("addNode",de,Pe,_,ve);const T=Ji();let x=((J=T.mindmap)==null?void 0:J.padding)??ti.mindmap.padding;switch(ve){case St.ROUNDED_RECT:case St.RECT:case St.HEXAGON:x*=2}const N={id:_l++,nodeId:ri(Pe,T),level:de,descr:ri(_,T),type:ve,children:[],width:((C=T.mindmap)==null?void 0:C.maxNodeWidth)??ti.mindmap.maxNodeWidth,padding:x},z=Sp(de);if(z)z.children.push(N),sr.push(N);else if(sr.length===0)sr.push(N);else throw new Error('There can be only one root. No parent could be found for ("'+N.descr+'")')},St={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Op=(de,Pe)=>{switch(qr.debug("In get type",de,Pe),de){case"[":return St.RECT;case"(":return Pe===")"?St.ROUNDED_RECT:St.CLOUD;case"((":return St.CIRCLE;case")":return St.CLOUD;case"))":return St.BANG;case"{{":return St.HEXAGON;default:return St.DEFAULT}},Np=(de,Pe)=>{ji[de]=Pe},Ip=de=>{if(!de)return;const Pe=Ji(),_=sr[sr.length-1];de.icon&&(_.icon=ri(de.icon,Pe)),de.class&&(_.class=ri(de.class,Pe))},Mp=de=>{switch(de){case St.DEFAULT:return"no-border";case St.RECT:return"rect";case St.ROUNDED_RECT:return"rounded-rect";case St.CIRCLE:return"circle";case St.CLOUD:return"cloud";case St.BANG:return"bang";case St.HEXAGON:return"hexgon";default:return"no-border"}},Rp=()=>qr,kp=de=>ji[de],Pp={clear:Dp,addNode:Ap,getMindmap:Lp,nodeType:St,getType:Op,setElementForId:Np,decorateNode:Ip,type2Str:Mp,getLogger:Rp,getElementById:kp},Bp=Pp;var Yl={exports:{}};(function(de,Pe){(function(_,ve){de.exports=ve()})(Ca,function(){function _(t){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(t)}function ve(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function J(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function C(t,e,r){return e&&J(t.prototype,e),r&&J(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function T(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function x(t,e){return N(t)||z(t,e)||Y(t,e)||Z()}function N(t){if(Array.isArray(t))return t}function z(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var a=[],n=!0,i=!1,o,s;try{for(r=r.call(t);!(n=(o=r.next()).done)&&(a.push(o.value),!(e&&a.length===e));n=!0);}catch(u){i=!0,s=u}finally{try{!n&&r.return!=null&&r.return()}finally{if(i)throw s}}return a}}function Y(t,e){if(t){if(typeof t=="string")return P(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P(t,e)}}function P(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function Z(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var A=typeof window>"u"?null:window,U=A?A.navigator:null;A&&A.document;var $=_(""),Q=_({}),ne=_(function(){}),le=typeof HTMLElement>"u"?"undefined":_(HTMLElement),j=function(e){return e&&e.instanceString&&H(e.instanceString)?e.instanceString():null},ee=function(e){return e!=null&&_(e)==$},H=function(e){return e!=null&&_(e)===ne},te=function(e){return!pe(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},S=function(e){return e!=null&&_(e)===Q&&!te(e)&&e.constructor===Object},V=function(e){return e!=null&&_(e)===Q},R=function(e){return e!=null&&_(e)===_(1)&&!isNaN(e)},q=function(e){return R(e)&&Math.floor(e)===e},he=function(e){if(le!=="undefined")return e!=null&&e instanceof HTMLElement},pe=function(e){return Ae(e)||Ne(e)},Ae=function(e){return j(e)==="collection"&&e._private.single},Ne=function(e){return j(e)==="collection"&&!e._private.single},Ye=function(e){return j(e)==="core"},at=function(e){return j(e)==="stylesheet"},dt=function(e){return j(e)==="event"},Re=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},Ve=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},Ze=function(e){return S(e)&&R(e.x1)&&R(e.x2)&&R(e.y1)&&R(e.y2)},nt=function(e){return V(e)&&H(e.then)},ft=function(){return U&&U.userAgent.match(/msie|trident|edge/i)},it=function(e,r){r||(r=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);return i.join("$")});var a=function n(){var i=this,o=arguments,s,u=r.apply(i,o),l=n.cache;return(s=l[u])||(s=l[u]=e.apply(i,o)),s};return a.cache={},a},tt=it(function(t){return t.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}),yt=it(function(t){return t.replace(/(-\w)/g,function(e){return e[1].toUpperCase()})}),Et=it(function(t,e){return t+e[0].toUpperCase()+e.substring(1)},function(t,e){return t+"$"+e}),Pt=function(e){return Re(e)?e:e.charAt(0).toUpperCase()+e.substring(1)},gt="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",dr="rgb[a]?\\(("+gt+"[%]?)\\s*,\\s*("+gt+"[%]?)\\s*,\\s*("+gt+"[%]?)(?:\\s*,\\s*("+gt+"))?\\)",qt="rgb[a]?\\((?:"+gt+"[%]?)\\s*,\\s*(?:"+gt+"[%]?)\\s*,\\s*(?:"+gt+"[%]?)(?:\\s*,\\s*(?:"+gt+"))?\\)",nn="hsl[a]?\\(("+gt+")\\s*,\\s*("+gt+"[%])\\s*,\\s*("+gt+"[%])(?:\\s*,\\s*("+gt+"))?\\)",Kr="hsl[a]?\\((?:"+gt+")\\s*,\\s*(?:"+gt+"[%])\\s*,\\s*(?:"+gt+"[%])(?:\\s*,\\s*(?:"+gt+"))?\\)",Da="\\#[0-9a-fA-F]{3}",jt="\\#[0-9a-fA-F]{6}",eo=function(e,r){return e<r?-1:e>r?1:0},Kl=function(e,r){return-1*eo(e,r)},He=Object.assign!=null?Object.assign.bind(Object):function(t){for(var e=arguments,r=1;r<e.length;r++){var a=e[r];if(a!=null)for(var n=Object.keys(a),i=0;i<n.length;i++){var o=n[i];t[o]=a[o]}}return t},Zl=function(e){if(!(!(e.length===4||e.length===7)||e[0]!=="#")){var r=e.length===4,a,n,i,o=16;return r?(a=parseInt(e[1]+e[1],o),n=parseInt(e[2]+e[2],o),i=parseInt(e[3]+e[3],o)):(a=parseInt(e[1]+e[2],o),n=parseInt(e[3]+e[4],o),i=parseInt(e[5]+e[6],o)),[a,n,i]}},Ql=function(e){var r,a,n,i,o,s,u,l;function v(c,y,p){return p<0&&(p+=1),p>1&&(p-=1),p<1/6?c+(y-c)*6*p:p<1/2?y:p<2/3?c+(y-c)*(2/3-p)*6:c}var f=new RegExp("^"+nn+"$").exec(e);if(f){if(a=parseInt(f[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(f[2]),n<0||n>100||(n=n/100,i=parseFloat(f[3]),i<0||i>100)||(i=i/100,o=f[4],o!==void 0&&(o=parseFloat(o),o<0||o>1)))return;if(n===0)s=u=l=Math.round(i*255);else{var h=i<.5?i*(1+n):i+n-i*n,d=2*i-h;s=Math.round(255*v(d,h,a+1/3)),u=Math.round(255*v(d,h,a)),l=Math.round(255*v(d,h,a-1/3))}r=[s,u,l,o]}return r},Jl=function(e){var r,a=new RegExp("^"+dr+"$").exec(e);if(a){r=[];for(var n=[],i=1;i<=3;i++){var o=a[i];if(o[o.length-1]==="%"&&(n[i]=!0),o=parseFloat(o),n[i]&&(o=o/100*255),o<0||o>255)return;r.push(Math.floor(o))}var s=n[1]||n[2]||n[3],u=n[1]&&n[2]&&n[3];if(s&&!u)return;var l=a[4];if(l!==void 0){if(l=parseFloat(l),l<0||l>1)return;r.push(l)}}return r},jl=function(e){return tu[e.toLowerCase()]},eu=function(e){return(te(e)?e:null)||jl(e)||Zl(e)||Jl(e)||Ql(e)},tu={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},to=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i<n;i++){var o=a[i];if(S(o))throw Error("Tried to set map with object key");i<a.length-1?(r[o]==null&&(r[o]={}),r=r[o]):r[o]=e.value}},ro=function(e){for(var r=e.map,a=e.keys,n=a.length,i=0;i<n;i++){var o=a[i];if(S(o))throw Error("Tried to get map with object key");if(r=r[o],r==null)return r}return r};function ru(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var kr=ru,Sa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Ca<"u"?Ca:typeof self<"u"?self:{};function au(t,e){return e={exports:{}},t(e,e.exports),e.exports}var nu=typeof Sa=="object"&&Sa&&Sa.Object===Object&&Sa,iu=nu,ou=typeof self=="object"&&self&&self.Object===Object&&self,su=iu||ou||Function("return this")(),on=su,lu=function(){return on.Date.now()},ai=lu,uu=/\s/;function vu(t){for(var e=t.length;e--&&uu.test(t.charAt(e)););return e}var fu=vu,hu=/^\s+/;function cu(t){return t&&t.slice(0,fu(t)+1).replace(hu,"")}var du=cu,gu=on.Symbol,Zr=gu,ao=Object.prototype,pu=ao.hasOwnProperty,yu=ao.toString,La=Zr?Zr.toStringTag:void 0;function mu(t){var e=pu.call(t,La),r=t[La];try{t[La]=void 0;var a=!0}catch{}var n=yu.call(t);return a&&(e?t[La]=r:delete t[La]),n}var bu=mu,Eu=Object.prototype,wu=Eu.toString;function xu(t){return wu.call(t)}var Tu=xu,Cu="[object Null]",Du="[object Undefined]",no=Zr?Zr.toStringTag:void 0;function Su(t){return t==null?t===void 0?Du:Cu:no&&no in Object(t)?bu(t):Tu(t)}var io=Su;function Lu(t){return t!=null&&typeof t=="object"}var Au=Lu,Ou="[object Symbol]";function Nu(t){return typeof t=="symbol"||Au(t)&&io(t)==Ou}var Aa=Nu,oo=NaN,Iu=/^[-+]0x[0-9a-f]+$/i,Mu=/^0b[01]+$/i,Ru=/^0o[0-7]+$/i,ku=parseInt;function Pu(t){if(typeof t=="number")return t;if(Aa(t))return oo;if(kr(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=kr(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=du(t);var r=Mu.test(t);return r||Ru.test(t)?ku(t.slice(2),r?2:8):Iu.test(t)?oo:+t}var so=Pu,Bu="Expected a function",Fu=Math.max,Gu=Math.min;function zu(t,e,r){var a,n,i,o,s,u,l=0,v=!1,f=!1,h=!0;if(typeof t!="function")throw new TypeError(Bu);e=so(e)||0,kr(r)&&(v=!!r.leading,f="maxWait"in r,i=f?Fu(so(r.maxWait)||0,e):i,h="trailing"in r?!!r.trailing:h);function d(L){var w=a,k=n;return a=n=void 0,l=L,o=t.apply(k,w),o}function c(L){return l=L,s=setTimeout(g,e),v?d(L):o}function y(L){var w=L-u,k=L-l,D=e-w;return f?Gu(D,i-k):D}function p(L){var w=L-u,k=L-l;return u===void 0||w>=e||w<0||f&&k>=i}function g(){var L=ai();if(p(L))return m(L);s=setTimeout(g,y(L))}function m(L){return s=void 0,h&&a?d(L):(a=n=void 0,o)}function b(){s!==void 0&&clearTimeout(s),l=0,a=u=n=s=void 0}function E(){return s===void 0?o:m(ai())}function M(){var L=ai(),w=p(L);if(a=arguments,n=this,u=L,w){if(s===void 0)return c(u);if(f)return clearTimeout(s),s=setTimeout(g,e),d(u)}return s===void 0&&(s=setTimeout(g,e)),o}return M.cancel=b,M.flush=E,M}var sn=zu,ni=A?A.performance:null,lo=ni&&ni.now?function(){return ni.now()}:function(){return Date.now()},Vu=function(){if(A){if(A.requestAnimationFrame)return function(t){A.requestAnimationFrame(t)};if(A.mozRequestAnimationFrame)return function(t){A.mozRequestAnimationFrame(t)};if(A.webkitRequestAnimationFrame)return function(t){A.webkitRequestAnimationFrame(t)};if(A.msRequestAnimationFrame)return function(t){A.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout(function(){t(lo())},1e3/60)}}(),ln=function(e){return Vu(e)},gr=lo,Qr=9261,uo=65599,Oa=5381,vo=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qr,a=r,n;n=e.next(),!n.done;)a=a*uo+n.value|0;return a},Na=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qr;return r*uo+e|0},Ia=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oa;return(r<<5)+r+e|0},$u=function(e,r){return e*2097152+r},wr=function(e){return e[0]*2097152+e[1]},un=function(e,r){return[Na(e[0],r[0]),Ia(e[1],r[1])]},Uu=function(e,r){var a={value:0,done:!1},n=0,i=e.length,o={next:function(){return n<i?a.value=e[n++]:a.done=!0,a}};return vo(o,r)},Pr=function(e,r){var a={value:0,done:!1},n=0,i=e.length,o={next:function(){return n<i?a.value=e.charCodeAt(n++):a.done=!0,a}};return vo(o,r)},fo=function(){return _u(arguments)},_u=function(e){for(var r,a=0;a<e.length;a++){var n=e[a];a===0?r=Pr(n):r=Pr(n,r)}return r},ho=!0,Yu=console.warn!=null,Hu=console.trace!=null,ii=Number.MAX_SAFE_INTEGER||9007199254740991,co=function(){return!0},vn=function(){return!1},go=function(){return 0},oi=function(){},xt=function(e){throw new Error(e)},po=function(e){if(e!==void 0)ho=!!e;else return ho},ht=function(e){po()&&(Yu?console.warn(e):(console.log(e),Hu&&console.trace()))},Xu=function(e){return He({},e)},lr=function(e){return e==null?e:te(e)?e.slice():S(e)?Xu(e):e},Wu=function(e){return e.slice()},yo=function(e,r){for(r=e="";e++<36;r+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return r},qu={},mo=function(){return qu},At=function(e){var r=Object.keys(e);return function(a){for(var n={},i=0;i<r.length;i++){var o=r[i],s=a==null?void 0:a[o];n[o]=s===void 0?e[o]:s}return n}},xr=function(e,r,a){for(var n=e.length-1;n>=0&&!(e[n]===r&&(e.splice(n,1),a));n--);},si=function(e){e.splice(0,e.length)},Ku=function(e,r){for(var a=0;a<r.length;a++){var n=r[a];e.push(n)}},er=function(e,r,a){return a&&(r=Et(a,r)),e[r]},Tr=function(e,r,a,n){a&&(r=Et(a,r)),e[r]=n},Zu=function(){function t(){ve(this,t),this._obj={}}return C(t,[{key:"set",value:function(r,a){return this._obj[r]=a,this}},{key:"delete",value:function(r){return this._obj[r]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(r){return this._obj[r]!==void 0}},{key:"get",value:function(r){return this._obj[r]}}]),t}(),ur=typeof Map<"u"?Map:Zu,Qu="undefined",Ju=function(){function t(e){if(ve(this,t),this._obj=Object.create(null),this.size=0,e!=null){var r;e.instanceString!=null&&e.instanceString()===this.instanceString()?r=e.toArray():r=e;for(var a=0;a<r.length;a++)this.add(r[a])}}return C(t,[{key:"instanceString",value:function(){return"set"}},{key:"add",value:function(r){var a=this._obj;a[r]!==1&&(a[r]=1,this.size++)}},{key:"delete",value:function(r){var a=this._obj;a[r]===1&&(a[r]=0,this.size--)}},{key:"clear",value:function(){this._obj=Object.create(null)}},{key:"has",value:function(r){return this._obj[r]===1}},{key:"toArray",value:function(){var r=this;return Object.keys(this._obj).filter(function(a){return r.has(a)})}},{key:"forEach",value:function(r,a){return this.toArray().forEach(r,a)}}]),t}(),Jr=(typeof Set>"u"?"undefined":_(Set))!==Qu?Set:Ju,fn=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||r===void 0||!Ye(e)){xt("An element must have a core reference and parameters set");return}var n=r.group;if(n==null&&(r.data&&r.data.source!=null&&r.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){xt("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:r.data||{},position:r.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!r.selected,selectable:r.selectable===void 0?!0:!!r.selectable,locked:!!r.locked,grabbed:!1,grabbable:r.grabbable===void 0?!0:!!r.grabbable,pannable:r.pannable===void 0?n==="edges":!!r.pannable,active:!1,classes:new Jr,animation:{current:[],queue:[]},rscratch:{},scratch:r.scratch||{},edges:[],children:[],parent:r.parent&&r.parent.isNode()?r.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),r.renderedPosition){var o=r.renderedPosition,s=e.pan(),u=e.zoom();i.position={x:(o.x-s.x)/u,y:(o.y-s.y)/u}}var l=[];te(r.classes)?l=r.classes:ee(r.classes)&&(l=r.classes.split(/\s+/));for(var v=0,f=l.length;v<f;v++){var h=l[v];!h||h===""||i.classes.add(h)}this.createEmitter();var d=r.style||r.css;d&&(ht("Setting a `style` bypass at element creation should be done only when absolutely necessary. Try to use the stylesheet instead."),this.style(d)),(a===void 0||a)&&this.restore()},bo=function(e){return e={bfs:e.bfs||!e.dfs,dfs:e.dfs||!e.bfs},function(a,n,i){var o;S(a)&&!pe(a)&&(o=a,a=o.roots||o.root,n=o.visit,i=o.directed),i=arguments.length===2&&!H(n)?n:i,n=H(n)?n:function(){};for(var s=this._private.cy,u=a=ee(a)?this.filter(a):a,l=[],v=[],f={},h={},d={},c=0,y,p=this.byGroup(),g=p.nodes,m=p.edges,b=0;b<u.length;b++){var E=u[b],M=E.id();E.isNode()&&(l.unshift(E),e.bfs&&(d[M]=!0,v.push(E)),h[M]=0)}for(var L=function(){var X=e.bfs?l.shift():l.pop(),B=X.id();if(e.dfs){if(d[B])return"continue";d[B]=!0,v.push(X)}var re=h[B],K=f[B],W=K!=null?K.source():null,ae=K!=null?K.target():null,ue=K==null?void 0:X.same(W)?ae[0]:W[0],me=void 0;if(me=n(X,K,ue,c++,re),me===!0)return y=X,"break";if(me===!1)return"break";for(var ie=X.connectedEdges().filter(function(De){return(!i||De.source().same(X))&&m.has(De)}),ge=0;ge<ie.length;ge++){var Ee=ie[ge],Ce=Ee.connectedNodes().filter(function(De){return!De.same(X)&&g.has(De)}),we=Ce.id();Ce.length!==0&&!d[we]&&(Ce=Ce[0],l.push(Ce),e.bfs&&(d[we]=!0,v.push(Ce)),f[we]=Ee,h[we]=h[B]+1)}};l.length!==0;){var w=L();if(w!=="continue"&&w==="break")break}for(var k=s.collection(),D=0;D<v.length;D++){var F=v[D],G=f[F.id()];G!=null&&k.push(G),k.push(F)}return{path:s.collection(k),found:s.collection(y)}}},Ma={breadthFirstSearch:bo({bfs:!0}),depthFirstSearch:bo({dfs:!0})};Ma.bfs=Ma.breadthFirstSearch,Ma.dfs=Ma.depthFirstSearch;var ju=au(function(t,e){(function(){var r,a,n,i,o,s,u,l,v,f,h,d,c,y,p;n=Math.floor,f=Math.min,a=function(g,m){return g<m?-1:g>m?1:0},v=function(g,m,b,E,M){var L;if(b==null&&(b=0),M==null&&(M=a),b<0)throw new Error("lo must be non-negative");for(E==null&&(E=g.length);b<E;)L=n((b+E)/2),M(m,g[L])<0?E=L:b=L+1;return[].splice.apply(g,[b,b-b].concat(m)),m},s=function(g,m,b){return b==null&&(b=a),g.push(m),y(g,0,g.length-1,b)},o=function(g,m){var b,E;return m==null&&(m=a),b=g.pop(),g.length?(E=g[0],g[0]=b,p(g,0,m)):E=b,E},l=function(g,m,b){var E;return b==null&&(b=a),E=g[0],g[0]=m,p(g,0,b),E},u=function(g,m,b){var E;return b==null&&(b=a),g.length&&b(g[0],m)<0&&(E=[g[0],m],m=E[0],g[0]=E[1],p(g,0,b)),m},i=function(g,m){var b,E,M,L,w,k;for(m==null&&(m=a),L=(function(){k=[];for(var D=0,F=n(g.length/2);0<=F?D<F:D>F;0<=F?D++:D--)k.push(D);return k}).apply(this).reverse(),w=[],E=0,M=L.length;E<M;E++)b=L[E],w.push(p(g,b,m));return w},c=function(g,m,b){var E;if(b==null&&(b=a),E=g.indexOf(m),E!==-1)return y(g,0,E,b),p(g,E,b)},h=function(g,m,b){var E,M,L,w,k;if(b==null&&(b=a),M=g.slice(0,m),!M.length)return M;for(i(M,b),k=g.slice(m),L=0,w=k.length;L<w;L++)E=k[L],u(M,E,b);return M.sort(b).reverse()},d=function(g,m,b){var E,M,L,w,k,D,F,G,I;if(b==null&&(b=a),m*10<=g.length){if(L=g.slice(0,m).sort(b),!L.length)return L;for(M=L[L.length-1],F=g.slice(m),w=0,D=F.length;w<D;w++)E=F[w],b(E,M)<0&&(v(L,E,0,null,b),L.pop(),M=L[L.length-1]);return L}for(i(g,b),I=[],k=0,G=f(m,g.length);0<=G?k<G:k>G;0<=G?++k:--k)I.push(o(g,b));return I},y=function(g,m,b,E){var M,L,w;for(E==null&&(E=a),M=g[b];b>m;){if(w=b-1>>1,L=g[w],E(M,L)<0){g[b]=L,b=w;continue}break}return g[b]=M},p=function(g,m,b){var E,M,L,w,k;for(b==null&&(b=a),M=g.length,k=m,L=g[m],E=2*m+1;E<M;)w=E+1,w<M&&!(b(g[E],g[w])<0)&&(E=w),g[m]=g[E],m=E,E=2*m+1;return g[m]=L,y(g,k,m,b)},r=function(){g.push=s,g.pop=o,g.replace=l,g.pushpop=u,g.heapify=i,g.updateItem=c,g.nlargest=h,g.nsmallest=d;function g(m){this.cmp=m??a,this.nodes=[]}return g.prototype.push=function(m){return s(this.nodes,m,this.cmp)},g.prototype.pop=function(){return o(this.nodes,this.cmp)},g.prototype.peek=function(){return this.nodes[0]},g.prototype.contains=function(m){return this.nodes.indexOf(m)!==-1},g.prototype.replace=function(m){return l(this.nodes,m,this.cmp)},g.prototype.pushpop=function(m){return u(this.nodes,m,this.cmp)},g.prototype.heapify=function(){return i(this.nodes,this.cmp)},g.prototype.updateItem=function(m){return c(this.nodes,m,this.cmp)},g.prototype.clear=function(){return this.nodes=[]},g.prototype.empty=function(){return this.nodes.length===0},g.prototype.size=function(){return this.nodes.length},g.prototype.clone=function(){var m;return m=new g,m.nodes=this.nodes.slice(0),m},g.prototype.toArray=function(){return this.nodes.slice(0)},g.prototype.insert=g.prototype.push,g.prototype.top=g.prototype.peek,g.prototype.front=g.prototype.peek,g.prototype.has=g.prototype.contains,g.prototype.copy=g.prototype.clone,g}(),function(g,m){return t.exports=m()}(this,function(){return r})}).call(Sa)}),Ra=ju,ev=At({root:null,weight:function(e){return 1},directed:!1}),tv={dijkstra:function(e){if(!S(e)){var r=arguments;e={root:r[0],weight:r[1],directed:r[2]}}var a=ev(e),n=a.root,i=a.weight,o=a.directed,s=this,u=i,l=ee(n)?this.filter(n)[0]:n[0],v={},f={},h={},d=this.byGroup(),c=d.nodes,y=d.edges;y.unmergeBy(function(re){return re.isLoop()});for(var p=function(K){return v[K.id()]},g=function(K,W){v[K.id()]=W,m.updateItem(K)},m=new Ra(function(re,K){return p(re)-p(K)}),b=0;b<c.length;b++){var E=c[b];v[E.id()]=E.same(l)?0:1/0,m.push(E)}for(var M=function(K,W){for(var ae=(o?K.edgesTo(W):K.edgesWith(W)).intersect(y),ue=1/0,me,ie=0;ie<ae.length;ie++){var ge=ae[ie],Ee=u(ge);(Ee<ue||!me)&&(ue=Ee,me=ge)}return{edge:me,dist:ue}};m.size()>0;){var L=m.pop(),w=p(L),k=L.id();if(h[k]=w,w!==1/0)for(var D=L.neighborhood().intersect(c),F=0;F<D.length;F++){var G=D[F],I=G.id(),X=M(L,G),B=w+X.dist;B<p(G)&&(g(G,B),f[I]={node:L,edge:X.edge})}}return{distanceTo:function(K){var W=ee(K)?c.filter(K)[0]:K[0];return h[W.id()]},pathTo:function(K){var W=ee(K)?c.filter(K)[0]:K[0],ae=[],ue=W,me=ue.id();if(W.length>0)for(ae.unshift(W);f[me];){var ie=f[me];ae.unshift(ie.edge),ae.unshift(ie.node),ue=ie.node,me=ue.id()}return s.spawn(ae)}}}},rv={kruskal:function(e){e=e||function(b){return 1};for(var r=this.byGroup(),a=r.nodes,n=r.edges,i=a.length,o=new Array(i),s=a,u=function(E){for(var M=0;M<o.length;M++){var L=o[M];if(L.has(E))return M}},l=0;l<i;l++)o[l]=this.spawn(a[l]);for(var v=n.sort(function(b,E){return e(b)-e(E)}),f=0;f<v.length;f++){var h=v[f],d=h.source()[0],c=h.target()[0],y=u(d),p=u(c),g=o[y],m=o[p];y!==p&&(s.merge(h),g.merge(m),o.splice(p,1))}return s}},av=At({root:null,goal:null,weight:function(e){return 1},heuristic:function(e){return 0},directed:!1}),nv={aStar:function(e){var r=this.cy(),a=av(e),n=a.root,i=a.goal,o=a.heuristic,s=a.directed,u=a.weight;n=r.collection(n)[0],i=r.collection(i)[0];var l=n.id(),v=i.id(),f={},h={},d={},c=new Ra(function(me,ie){return h[me.id()]-h[ie.id()]}),y=new Jr,p={},g={},m=function(ie,ge){c.push(ie),y.add(ge)},b,E,M=function(){b=c.pop(),E=b.id(),y.delete(E)},L=function(ie){return y.has(ie)};m(n,l),f[l]=0,h[l]=o(n);for(var w=0;c.size()>0;){if(M(),w++,E===v){for(var k=[],D=i,F=v,G=g[F];k.unshift(D),G!=null&&k.unshift(G),D=p[F],D!=null;)F=D.id(),G=g[F];return{found:!0,distance:f[E],path:this.spawn(k),steps:w}}d[E]=!0;for(var I=b._private.edges,X=0;X<I.length;X++){var B=I[X];if(this.hasElementWithId(B.id())&&!(s&&B.data("source")!==E)){var re=B.source(),K=B.target(),W=re.id()!==E?re:K,ae=W.id();if(this.hasElementWithId(ae)&&!d[ae]){var ue=f[E]+u(B);if(!L(ae)){f[ae]=ue,h[ae]=ue+o(W),m(W,ae),p[ae]=b,g[ae]=B;continue}ue<f[ae]&&(f[ae]=ue,h[ae]=ue+o(W),p[ae]=b,g[ae]=B)}}}}return{found:!1,distance:void 0,path:void 0,steps:w}}},iv=At({weight:function(e){return 1},directed:!1}),ov={floydWarshall:function(e){for(var r=this.cy(),a=iv(e),n=a.weight,i=a.directed,o=n,s=this.byGroup(),u=s.nodes,l=s.edges,v=u.length,f=v*v,h=function(Ee){return u.indexOf(Ee)},d=function(Ee){return u[Ee]},c=new Array(f),y=0;y<f;y++){var p=y%v,g=(y-p)/v;g===p?c[y]=0:c[y]=1/0}for(var m=new Array(f),b=new Array(f),E=0;E<l.length;E++){var M=l[E],L=M.source()[0],w=M.target()[0];if(L!==w){var k=h(L),D=h(w),F=k*v+D,G=o(M);if(c[F]>G&&(c[F]=G,m[F]=D,b[F]=M),!i){var I=D*v+k;!i&&c[I]>G&&(c[I]=G,m[I]=k,b[I]=M)}}}for(var X=0;X<v;X++)for(var B=0;B<v;B++)for(var re=B*v+X,K=0;K<v;K++){var W=B*v+K,ae=X*v+K;c[re]+c[ae]<c[W]&&(c[W]=c[re]+c[ae],m[W]=m[re])}var ue=function(Ee){return(ee(Ee)?r.filter(Ee):Ee)[0]},me=function(Ee){return h(ue(Ee))},ie={distance:function(Ee,Ce){var we=me(Ee),De=me(Ce);return c[we*v+De]},path:function(Ee,Ce){var we=me(Ee),De=me(Ce),oe=d(we);if(we===De)return oe.collection();if(m[we*v+De]==null)return r.collection();var xe=r.collection(),Le=we,Se;for(xe.merge(oe);we!==De;)Le=we,we=m[we*v+De],Se=b[Le*v+we],xe.merge(Se),xe.merge(d(we));return xe}};return ie}},sv=At({weight:function(e){return 1},directed:!1,root:null}),lv={bellmanFord:function(e){var r=this,a=sv(e),n=a.weight,i=a.directed,o=a.root,s=n,u=this,l=this.cy(),v=this.byGroup(),f=v.edges,h=v.nodes,d=h.length,c=new ur,y=!1,p=[];o=l.collection(o)[0],f.unmergeBy(function(ze){return ze.isLoop()});for(var g=f.length,m=function(Be){var Ue=c.get(Be.id());return Ue||(Ue={},c.set(Be.id(),Ue)),Ue},b=function(Be){return(ee(Be)?l.$(Be):Be)[0]},E=function(Be){return m(b(Be)).dist},M=function(Be){for(var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o,rt=b(Be),je=[],We=rt;;){if(We==null)return r.spawn();var et=m(We),fe=et.edge,O=et.pred;if(je.unshift(We[0]),We.same(Ue)&&je.length>0)break;fe!=null&&je.unshift(fe),We=O}return u.spawn(je)},L=0;L<d;L++){var w=h[L],k=m(w);w.same(o)?k.dist=0:k.dist=1/0,k.pred=null,k.edge=null}for(var D=!1,F=function(Be,Ue,rt,je,We,et){var fe=je.dist+et;fe<We.dist&&!rt.same(je.edge)&&(We.dist=fe,We.pred=Be,We.edge=rt,D=!0)},G=1;G<d;G++){D=!1;for(var I=0;I<g;I++){var X=f[I],B=X.source(),re=X.target(),K=s(X),W=m(B),ae=m(re);F(B,re,X,W,ae,K),i||F(re,B,X,ae,W,K)}if(!D)break}if(D)for(var ue=[],me=0;me<g;me++){var ie=f[me],ge=ie.source(),Ee=ie.target(),Ce=s(ie),we=m(ge).dist,De=m(Ee).dist;if(we+Ce<De||!i&&De+Ce<we)if(y||(ht("Graph contains a negative weight cycle for Bellman-Ford"),y=!0),e.findNegativeWeightCycles!==!1){var oe=[];we+Ce<De&&oe.push(ge),!i&&De+Ce<we&&oe.push(Ee);for(var xe=oe.length,Le=0;Le<xe;Le++){var Se=oe[Le],Oe=[Se];Oe.push(m(Se).edge);for(var Fe=m(Se).pred;Oe.indexOf(Fe)===-1;)Oe.push(Fe),Oe.push(m(Fe).edge),Fe=m(Fe).pred;Oe=Oe.slice(Oe.indexOf(Fe));for(var Xe=Oe[0].id(),Ie=0,Me=2;Me<Oe.length;Me+=2)Oe[Me].id()<Xe&&(Xe=Oe[Me].id(),Ie=Me);Oe=Oe.slice(Ie).concat(Oe.slice(0,Ie)),Oe.push(Oe[0]);var $e=Oe.map(function(ze){return ze.id()}).join(",");ue.indexOf($e)===-1&&(p.push(u.spawn(Oe)),ue.push($e))}}else break}return{distanceTo:E,pathTo:M,hasNegativeWeightCycle:y,negativeWeightCycles:p}}},uv=Math.sqrt(2),vv=function(e,r,a){a.length===0&&xt("Karger-Stein must be run on a connected (sub)graph");for(var n=a[e],i=n[1],o=n[2],s=r[i],u=r[o],l=a,v=l.length-1;v>=0;v--){var f=l[v],h=f[1],d=f[2];(r[h]===s&&r[d]===u||r[h]===u&&r[d]===s)&&l.splice(v,1)}for(var c=0;c<l.length;c++){var y=l[c];y[1]===u?(l[c]=y.slice(),l[c][1]=s):y[2]===u&&(l[c]=y.slice(),l[c][2]=s)}for(var p=0;p<r.length;p++)r[p]===u&&(r[p]=s);return l},li=function(e,r,a,n){for(;a>n;){var i=Math.floor(Math.random()*r.length);r=vv(i,e,r),a--}return r},fv={kargerStein:function(){var e=this,r=this.byGroup(),a=r.nodes,n=r.edges;n.unmergeBy(function(ae){return ae.isLoop()});var i=a.length,o=n.length,s=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),u=Math.floor(i/uv);if(i<2){xt("At least 2 nodes are required for Karger-Stein algorithm");return}for(var l=[],v=0;v<o;v++){var f=n[v];l.push([v,a.indexOf(f.source()),a.indexOf(f.target())])}for(var h=1/0,d=[],c=new Array(i),y=new Array(i),p=new Array(i),g=function(ue,me){for(var ie=0;ie<i;ie++)me[ie]=ue[ie]},m=0;m<=s;m++){for(var b=0;b<i;b++)y[b]=b;var E=li(y,l.slice(),i,u),M=E.slice();g(y,p);var L=li(y,E,u,2),w=li(p,M,u,2);L.length<=w.length&&L.length<h?(h=L.length,d=L,g(y,c)):w.length<=L.length&&w.length<h&&(h=w.length,d=w,g(p,c))}for(var k=this.spawn(d.map(function(ae){return n[ae[0]]})),D=this.spawn(),F=this.spawn(),G=c[0],I=0;I<c.length;I++){var X=c[I],B=a[I];X===G?D.merge(B):F.merge(B)}var re=function(ue){var me=e.spawn();return ue.forEach(function(ie){me.merge(ie),ie.connectedEdges().forEach(function(ge){e.contains(ge)&&!k.contains(ge)&&me.merge(ge)})}),me},K=[re(D),re(F)],W={cut:k,components:K,partition1:D,partition2:F};return W}},hv=function(e){return{x:e.x,y:e.y}},hn=function(e,r,a){return{x:e.x*r+a.x,y:e.y*r+a.y}},Eo=function(e,r,a){return{x:(e.x-a.x)/r,y:(e.y-a.y)/r}},jr=function(e){return{x:e[0],y:e[1]}},cv=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=r;i<a;i++){var o=e[i];isFinite(o)&&(n=Math.min(o,n))}return n},dv=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=r;i<a;i++){var o=e[i];isFinite(o)&&(n=Math.max(o,n))}return n},gv=function(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,o=r;o<a;o++){var s=e[o];isFinite(s)&&(n+=s,i++)}return n/i},pv=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(r,a):(a<e.length&&e.splice(a,e.length-a),r>0&&e.splice(0,r));for(var s=0,u=e.length-1;u>=0;u--){var l=e[u];o?isFinite(l)||(e[u]=-1/0,s++):e.splice(u,1)}i&&e.sort(function(h,d){return h-d});var v=e.length,f=Math.floor(v/2);return v%2!==0?e[f+1+s]:(e[f-1+s]+e[f+s])/2},yv=function(e){return Math.PI*e/180},cn=function(e,r){return Math.atan2(r,e)-Math.PI/2},ui=Math.log2||function(t){return Math.log(t)/Math.log(2)},wo=function(e){return e>0?1:e<0?-1:0},Br=function(e,r){return Math.sqrt(Fr(e,r))},Fr=function(e,r){var a=r.x-e.x,n=r.y-e.y;return a*a+n*n},mv=function(e){for(var r=e.length,a=0,n=0;n<r;n++)a+=e[n];for(var i=0;i<r;i++)e[i]=e[i]/a;return e},Lt=function(e,r,a,n){return(1-n)*(1-n)*e+2*(1-n)*n*r+n*n*a},ea=function(e,r,a,n){return{x:Lt(e.x,r.x,a.x,n),y:Lt(e.y,r.y,a.y,n)}},bv=function(e,r,a,n){var i={x:r.x-e.x,y:r.y-e.y},o=Br(e,r),s={x:i.x/o,y:i.y/o};return a=a??0,n=n??a*o,{x:e.x+s.x*n,y:e.y+s.y*n}},ka=function(e,r,a){return Math.max(e,Math.min(a,r))},Yt=function(e){if(e==null)return{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0};if(e.x1!=null&&e.y1!=null){if(e.x2!=null&&e.y2!=null&&e.x2>=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},Ev=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},wv=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},xv=function(e,r,a){return{x1:e.x1+r,x2:e.x2+r,y1:e.y1+a,y2:e.y2+a,w:e.w,h:e.h}},xo=function(e,r){e.x1=Math.min(e.x1,r.x1),e.x2=Math.max(e.x2,r.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,r.y1),e.y2=Math.max(e.y2,r.y2),e.h=e.y2-e.y1},Tv=function(e,r,a){e.x1=Math.min(e.x1,r),e.x2=Math.max(e.x2,r),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},dn=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=r,e.x2+=r,e.y1-=r,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},gn=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,o;if(r.length===1)a=n=i=o=r[0];else if(r.length===2)a=i=r[0],o=n=r[1];else if(r.length===4){var s=x(r,4);a=s[0],n=s[1],i=s[2],o=s[3]}return e.x1-=o,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},To=function(e,r){e.x1=r.x1,e.y1=r.y1,e.x2=r.x2,e.y2=r.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},vi=function(e,r){return!(e.x1>r.x2||r.x1>e.x2||e.x2<r.x1||r.x2<e.x1||e.y2<r.y1||r.y2<e.y1||e.y1>r.y2||r.y1>e.y2)},ta=function(e,r,a){return e.x1<=r&&r<=e.x2&&e.y1<=a&&a<=e.y2},Cv=function(e,r){return ta(e,r.x,r.y)},Co=function(e,r){return ta(e,r.x1,r.y1)&&ta(e,r.x2,r.y2)},Do=function(e,r,a,n,i,o,s){var u=Fa(i,o),l=i/2,v=o/2,f;{var h=a-l+u-s,d=n-v-s,c=a+l-u+s,y=d;if(f=Cr(e,r,a,n,h,d,c,y,!1),f.length>0)return f}{var p=a+l+s,g=n-v+u-s,m=p,b=n+v-u+s;if(f=Cr(e,r,a,n,p,g,m,b,!1),f.length>0)return f}{var E=a-l+u-s,M=n+v+s,L=a+l-u+s,w=M;if(f=Cr(e,r,a,n,E,M,L,w,!1),f.length>0)return f}{var k=a-l-s,D=n-v+u-s,F=k,G=n+v-u+s;if(f=Cr(e,r,a,n,k,D,F,G,!1),f.length>0)return f}var I;{var X=a-l+u,B=n-v+u;if(I=Pa(e,r,a,n,X,B,u+s),I.length>0&&I[0]<=X&&I[1]<=B)return[I[0],I[1]]}{var re=a+l-u,K=n-v+u;if(I=Pa(e,r,a,n,re,K,u+s),I.length>0&&I[0]>=re&&I[1]<=K)return[I[0],I[1]]}{var W=a+l-u,ae=n+v-u;if(I=Pa(e,r,a,n,W,ae,u+s),I.length>0&&I[0]>=W&&I[1]>=ae)return[I[0],I[1]]}{var ue=a-l+u,me=n+v-u;if(I=Pa(e,r,a,n,ue,me,u+s),I.length>0&&I[0]<=ue&&I[1]>=me)return[I[0],I[1]]}return[]},Dv=function(e,r,a,n,i,o,s){var u=s,l=Math.min(a,i),v=Math.max(a,i),f=Math.min(n,o),h=Math.max(n,o);return l-u<=e&&e<=v+u&&f-u<=r&&r<=h+u},Sv=function(e,r,a,n,i,o,s,u,l){var v={x1:Math.min(a,s,i)-l,x2:Math.max(a,s,i)+l,y1:Math.min(n,u,o)-l,y2:Math.max(n,u,o)+l};return!(e<v.x1||e>v.x2||r<v.y1||r>v.y2)},Lv=function(e,r,a,n){a-=n;var i=r*r-4*e*a;if(i<0)return[];var o=Math.sqrt(i),s=2*e,u=(-r+o)/s,l=(-r-o)/s;return[u,l]},Av=function(e,r,a,n,i){var o=1e-5;e===0&&(e=o),r/=e,a/=e,n/=e;var s,u,l,v,f,h,d,c;if(u=(3*a-r*r)/9,l=-(27*n)+r*(9*a-2*(r*r)),l/=54,s=u*u*u+l*l,i[1]=0,d=r/3,s>0){f=l+Math.sqrt(s),f=f<0?-Math.pow(-f,1/3):Math.pow(f,1/3),h=l-Math.sqrt(s),h=h<0?-Math.pow(-h,1/3):Math.pow(h,1/3),i[0]=-d+f+h,d+=(f+h)/2,i[4]=i[2]=-d,d=Math.sqrt(3)*(-h+f)/2,i[3]=d,i[5]=-d;return}if(i[5]=i[3]=0,s===0){c=l<0?-Math.pow(-l,1/3):Math.pow(l,1/3),i[0]=-d+2*c,i[4]=i[2]=-(c+d);return}u=-u,v=u*u*u,v=Math.acos(l/Math.sqrt(v)),c=2*Math.sqrt(u),i[0]=-d+c*Math.cos(v/3),i[2]=-d+c*Math.cos((v+2*Math.PI)/3),i[4]=-d+c*Math.cos((v+4*Math.PI)/3)},Ov=function(e,r,a,n,i,o,s,u){var l=1*a*a-4*a*i+2*a*s+4*i*i-4*i*s+s*s+n*n-4*n*o+2*n*u+4*o*o-4*o*u+u*u,v=1*9*a*i-3*a*a-3*a*s-6*i*i+3*i*s+9*n*o-3*n*n-3*n*u-6*o*o+3*o*u,f=1*3*a*a-6*a*i+a*s-a*e+2*i*i+2*i*e-s*e+3*n*n-6*n*o+n*u-n*r+2*o*o+2*o*r-u*r,h=1*a*i-a*a+a*e-i*e+n*o-n*n+n*r-o*r,d=[];Av(l,v,f,h,d);for(var c=1e-7,y=[],p=0;p<6;p+=2)Math.abs(d[p+1])<c&&d[p]>=0&&d[p]<=1&&y.push(d[p]);y.push(1),y.push(0);for(var g=-1,m,b,E,M=0;M<y.length;M++)m=Math.pow(1-y[M],2)*a+2*(1-y[M])*y[M]*i+y[M]*y[M]*s,b=Math.pow(1-y[M],2)*n+2*(1-y[M])*y[M]*o+y[M]*y[M]*u,E=Math.pow(m-e,2)+Math.pow(b-r,2),g>=0?E<g&&(g=E):g=E;return g},Nv=function(e,r,a,n,i,o){var s=[e-a,r-n],u=[i-a,o-n],l=u[0]*u[0]+u[1]*u[1],v=s[0]*s[0]+s[1]*s[1],f=s[0]*u[0]+s[1]*u[1],h=f*f/l;return f<0?v:h>l?(e-i)*(e-i)+(r-o)*(r-o):v-h},Ht=function(e,r,a){for(var n,i,o,s,u,l=0,v=0;v<a.length/2;v++)if(n=a[v*2],i=a[v*2+1],v+1<a.length/2?(o=a[(v+1)*2],s=a[(v+1)*2+1]):(o=a[(v+1-a.length/2)*2],s=a[(v+1-a.length/2)*2+1]),!(n==e&&o==e))if(n>=e&&e>=o||n<=e&&e<=o)u=(e-n)/(o-n)*(s-i)+i,u>r&&l++;else continue;return l%2!==0},pr=function(e,r,a,n,i,o,s,u,l){var v=new Array(a.length),f;u[0]!=null?(f=Math.atan(u[1]/u[0]),u[0]<0?f=f+Math.PI/2:f=-f-Math.PI/2):f=u;for(var h=Math.cos(-f),d=Math.sin(-f),c=0;c<v.length/2;c++)v[c*2]=o/2*(a[c*2]*h-a[c*2+1]*d),v[c*2+1]=s/2*(a[c*2+1]*h+a[c*2]*d),v[c*2]+=n,v[c*2+1]+=i;var y;if(l>0){var p=yn(v,-l);y=pn(p)}else y=v;return Ht(e,r,y)},Iv=function(e,r,a,n,i,o,s){for(var u=new Array(a.length),l=o/2,v=s/2,f=ci(o,s),h=f*f,d=0;d<a.length/4;d++){var c=void 0,y=void 0;d===0?c=a.length-2:c=d*4-2,y=d*4+2;var p=n+l*a[d*4],g=i+v*a[d*4+1],m=-a[c]*a[y]-a[c+1]*a[y+1],b=f/Math.tan(Math.acos(m)/2),E=p-b*a[c],M=g-b*a[c+1],L=p+b*a[y],w=g+b*a[y+1];u[d*4]=E,u[d*4+1]=M,u[d*4+2]=L,u[d*4+3]=w;var k=a[c+1],D=-a[c],F=k*a[y]+D*a[y+1];F<0&&(k*=-1,D*=-1);var G=E+k*f,I=M+D*f,X=Math.pow(G-e,2)+Math.pow(I-r,2);if(X<=h)return!0}return Ht(e,r,u)},pn=function(e){for(var r=new Array(e.length/2),a,n,i,o,s,u,l,v,f=0;f<e.length/4;f++){a=e[f*4],n=e[f*4+1],i=e[f*4+2],o=e[f*4+3],f<e.length/4-1?(s=e[(f+1)*4],u=e[(f+1)*4+1],l=e[(f+1)*4+2],v=e[(f+1)*4+3]):(s=e[0],u=e[1],l=e[2],v=e[3]);var h=Cr(a,n,i,o,s,u,l,v,!0);r[f*2]=h[0],r[f*2+1]=h[1]}return r},yn=function(e,r){for(var a=new Array(e.length*2),n,i,o,s,u=0;u<e.length/2;u++){n=e[u*2],i=e[u*2+1],u<e.length/2-1?(o=e[(u+1)*2],s=e[(u+1)*2+1]):(o=e[0],s=e[1]);var l=s-i,v=-(o-n),f=Math.sqrt(l*l+v*v),h=l/f,d=v/f;a[u*4]=n+h*r,a[u*4+1]=i+d*r,a[u*4+2]=o+h*r,a[u*4+3]=s+d*r}return a},Mv=function(e,r,a,n,i,o){var s=a-e,u=n-r;s/=i,u/=o;var l=Math.sqrt(s*s+u*u),v=l-1;if(v<0)return[];var f=v/l;return[(a-e)*f+e,(n-r)*f+r]},Gr=function(e,r,a,n,i,o,s){return e-=i,r-=o,e/=a/2+s,r/=n/2+s,e*e+r*r<=1},Pa=function(e,r,a,n,i,o,s){var u=[a-e,n-r],l=[e-i,r-o],v=u[0]*u[0]+u[1]*u[1],f=2*(l[0]*u[0]+l[1]*u[1]),h=l[0]*l[0]+l[1]*l[1]-s*s,d=f*f-4*v*h;if(d<0)return[];var c=(-f+Math.sqrt(d))/(2*v),y=(-f-Math.sqrt(d))/(2*v),p=Math.min(c,y),g=Math.max(c,y),m=[];if(p>=0&&p<=1&&m.push(p),g>=0&&g<=1&&m.push(g),m.length===0)return[];var b=m[0]*u[0]+e,E=m[0]*u[1]+r;if(m.length>1){if(m[0]==m[1])return[b,E];var M=m[1]*u[0]+e,L=m[1]*u[1]+r;return[b,E,M,L]}else return[b,E]},fi=function(e,r,a){return r<=e&&e<=a||a<=e&&e<=r?e:e<=r&&r<=a||a<=r&&r<=e?r:a},Cr=function(e,r,a,n,i,o,s,u,l){var v=e-i,f=a-e,h=s-i,d=r-o,c=n-r,y=u-o,p=h*d-y*v,g=f*d-c*v,m=y*f-h*c;if(m!==0){var b=p/m,E=g/m,M=.001,L=0-M,w=1+M;return L<=b&&b<=w&&L<=E&&E<=w?[e+b*f,r+b*c]:l?[e+b*f,r+b*c]:[]}else return p===0||g===0?fi(e,a,s)===s?[s,u]:fi(e,a,i)===i?[i,o]:fi(i,s,a)===a?[a,n]:[]:[]},Ba=function(e,r,a,n,i,o,s,u){var l=[],v,f=new Array(a.length),h=!0;o==null&&(h=!1);var d;if(h){for(var c=0;c<f.length/2;c++)f[c*2]=a[c*2]*o+n,f[c*2+1]=a[c*2+1]*s+i;if(u>0){var y=yn(f,-u);d=pn(y)}else d=f}else d=a;for(var p,g,m,b,E=0;E<d.length/2;E++)p=d[E*2],g=d[E*2+1],E<d.length/2-1?(m=d[(E+1)*2],b=d[(E+1)*2+1]):(m=d[0],b=d[1]),v=Cr(e,r,n,i,p,g,m,b),v.length!==0&&l.push(v[0],v[1]);return l},Rv=function(e,r,a,n,i,o,s,u){for(var l=[],v,f=new Array(a.length),h=o/2,d=s/2,c=ci(o,s),y=0;y<a.length/4;y++){var p=void 0,g=void 0;y===0?p=a.length-2:p=y*4-2,g=y*4+2;var m=n+h*a[y*4],b=i+d*a[y*4+1],E=-a[p]*a[g]-a[p+1]*a[g+1],M=c/Math.tan(Math.acos(E)/2),L=m-M*a[p],w=b-M*a[p+1],k=m+M*a[g],D=b+M*a[g+1];y===0?(f[a.length-2]=L,f[a.length-1]=w):(f[y*4-2]=L,f[y*4-1]=w),f[y*4]=k,f[y*4+1]=D;var F=a[p+1],G=-a[p],I=F*a[g]+G*a[g+1];I<0&&(F*=-1,G*=-1);var X=L+F*c,B=w+G*c;v=Pa(e,r,n,i,X,B,c),v.length!==0&&l.push(v[0],v[1])}for(var re=0;re<f.length/4;re++)v=Cr(e,r,n,i,f[re*4],f[re*4+1],f[re*4+2],f[re*4+3],!1),v.length!==0&&l.push(v[0],v[1]);if(l.length>2){for(var K=[l[0],l[1]],W=Math.pow(K[0]-e,2)+Math.pow(K[1]-r,2),ae=1;ae<l.length/2;ae++){var ue=Math.pow(l[ae*2]-e,2)+Math.pow(l[ae*2+1]-r,2);ue<=W&&(K[0]=l[ae*2],K[1]=l[ae*2+1],W=ue)}return K}return l},mn=function(e,r,a){var n=[e[0]-r[0],e[1]-r[1]],i=Math.sqrt(n[0]*n[0]+n[1]*n[1]),o=(i-a)/i;return o<0&&(o=1e-5),[r[0]+o*n[0],r[1]+o*n[1]]},Ut=function(e,r){var a=hi(e,r);return a=So(a),a},So=function(e){for(var r,a,n=e.length/2,i=1/0,o=1/0,s=-1/0,u=-1/0,l=0;l<n;l++)r=e[2*l],a=e[2*l+1],i=Math.min(i,r),s=Math.max(s,r),o=Math.min(o,a),u=Math.max(u,a);for(var v=2/(s-i),f=2/(u-o),h=0;h<n;h++)r=e[2*h]=e[2*h]*v,a=e[2*h+1]=e[2*h+1]*f,i=Math.min(i,r),s=Math.max(s,r),o=Math.min(o,a),u=Math.max(u,a);if(o<-1)for(var d=0;d<n;d++)a=e[2*d+1]=e[2*d+1]+(-1-o);return e},hi=function(e,r){var a=1/e*2*Math.PI,n=e%2===0?Math.PI/2+a/2:Math.PI/2;n+=r;for(var i=new Array(e*2),o,s=0;s<e;s++)o=s*a+n,i[2*s]=Math.cos(o),i[2*s+1]=Math.sin(-o);return i},Fa=function(e,r){return Math.min(e/4,r/4,8)},ci=function(e,r){return Math.min(e/10,r/10,8)},Lo=function(){return 8},kv=function(e,r,a){return[e-2*r+a,2*(r-e),e]},di=function(e,r){return{heightOffset:Math.min(15,.05*r),widthOffset:Math.min(100,.25*e),ctrlPtOffsetPct:.05}},Pv=At({dampingFactor:.8,precision:1e-6,iterations:200,weight:function(e){return 1}}),Bv={pageRank:function(e){for(var r=Pv(e),a=r.dampingFactor,n=r.precision,i=r.iterations,o=r.weight,s=this._private.cy,u=this.byGroup(),l=u.nodes,v=u.edges,f=l.length,h=f*f,d=v.length,c=new Array(h),y=new Array(f),p=(1-a)/f,g=0;g<f;g++){for(var m=0;m<f;m++){var b=g*f+m;c[b]=0}y[g]=0}for(var E=0;E<d;E++){var M=v[E],L=M.data("source"),w=M.data("target");if(L!==w){var k=l.indexOfId(L),D=l.indexOfId(w),F=o(M),G=D*f+k;c[G]+=F,y[k]+=F}}for(var I=1/f+p,X=0;X<f;X++)if(y[X]===0)for(var B=0;B<f;B++){var re=B*f+X;c[re]=I}else for(var K=0;K<f;K++){var W=K*f+X;c[W]=c[W]/y[X]+p}for(var ae=new Array(f),ue=new Array(f),me,ie=0;ie<f;ie++)ae[ie]=1;for(var ge=0;ge<i;ge++){for(var Ee=0;Ee<f;Ee++)ue[Ee]=0;for(var Ce=0;Ce<f;Ce++)for(var we=0;we<f;we++){var De=Ce*f+we;ue[Ce]+=c[De]*ae[we]}mv(ue),me=ae,ae=ue,ue=me;for(var oe=0,xe=0;xe<f;xe++){var Le=me[xe]-ae[xe];oe+=Le*Le}if(oe<n)break}var Se={rank:function(Fe){return Fe=s.collection(Fe)[0],ae[l.indexOf(Fe)]}};return Se}},Ao=At({root:null,weight:function(e){return 1},directed:!1,alpha:0}),ra={degreeCentralityNormalized:function(e){e=Ao(e);var r=this.cy(),a=this.nodes(),n=a.length;if(e.directed){for(var v={},f={},h=0,d=0,c=0;c<n;c++){var y=a[c],p=y.id();e.root=y;var g=this.degreeCentrality(e);h<g.indegree&&(h=g.indegree),d<g.outdegree&&(d=g.outdegree),v[p]=g.indegree,f[p]=g.outdegree}return{indegree:function(b){return h==0?0:(ee(b)&&(b=r.filter(b)),v[b.id()]/h)},outdegree:function(b){return d===0?0:(ee(b)&&(b=r.filter(b)),f[b.id()]/d)}}}else{for(var i={},o=0,s=0;s<n;s++){var u=a[s];e.root=u;var l=this.degreeCentrality(e);o<l.degree&&(o=l.degree),i[u.id()]=l.degree}return{degree:function(b){return o===0?0:(ee(b)&&(b=r.filter(b)),i[b.id()]/o)}}}},degreeCentrality:function(e){e=Ao(e);var r=this.cy(),a=this,n=e,i=n.root,o=n.weight,s=n.directed,u=n.alpha;if(i=r.collection(i)[0],s){for(var d=i.connectedEdges(),c=d.filter(function(L){return L.target().same(i)&&a.has(L)}),y=d.filter(function(L){return L.source().same(i)&&a.has(L)}),p=c.length,g=y.length,m=0,b=0,E=0;E<c.length;E++)m+=o(c[E]);for(var M=0;M<y.length;M++)b+=o(y[M]);return{indegree:Math.pow(p,1-u)*Math.pow(m,u),outdegree:Math.pow(g,1-u)*Math.pow(b,u)}}else{for(var l=i.connectedEdges().intersection(a),v=l.length,f=0,h=0;h<l.length;h++)f+=o(l[h]);return{degree:Math.pow(v,1-u)*Math.pow(f,u)}}}};ra.dc=ra.degreeCentrality,ra.dcn=ra.degreeCentralityNormalised=ra.degreeCentralityNormalized;var Oo=At({harmonic:!0,weight:function(){return 1},directed:!1,root:null}),aa={closenessCentralityNormalized:function(e){for(var r=Oo(e),a=r.harmonic,n=r.weight,i=r.directed,o=this.cy(),s={},u=0,l=this.nodes(),v=this.floydWarshall({weight:n,directed:i}),f=0;f<l.length;f++){for(var h=0,d=l[f],c=0;c<l.length;c++)if(f!==c){var y=v.distance(d,l[c]);a?h+=1/y:h+=y}a||(h=1/h),u<h&&(u=h),s[d.id()]=h}return{closeness:function(g){return u==0?0:(ee(g)?g=o.filter(g)[0].id():g=g.id(),s[g]/u)}}},closenessCentrality:function(e){var r=Oo(e),a=r.root,n=r.weight,i=r.directed,o=r.harmonic;a=this.filter(a)[0];for(var s=this.dijkstra({root:a,weight:n,directed:i}),u=0,l=this.nodes(),v=0;v<l.length;v++){var f=l[v];if(!f.same(a)){var h=s.distanceTo(f);o?u+=1/h:u+=h}}return o?u:1/u}};aa.cc=aa.closenessCentrality,aa.ccn=aa.closenessCentralityNormalised=aa.closenessCentralityNormalized;var Fv=At({weight:null,directed:!1}),gi={betweennessCentrality:function(e){for(var r=Fv(e),a=r.directed,n=r.weight,i=n!=null,o=this.cy(),s=this.nodes(),u={},l={},v=0,f={set:function(b,E){l[b]=E,E>v&&(v=E)},get:function(b){return l[b]}},h=0;h<s.length;h++){var d=s[h],c=d.id();a?u[c]=d.outgoers().nodes():u[c]=d.openNeighborhood().nodes(),f.set(c,0)}for(var y=function(b){for(var E=s[b].id(),M=[],L={},w={},k={},D=new Ra(function(we,De){return k[we]-k[De]}),F=0;F<s.length;F++){var G=s[F].id();L[G]=[],w[G]=0,k[G]=1/0}for(w[E]=1,k[E]=0,D.push(E);!D.empty();){var I=D.pop();if(M.push(I),i)for(var X=0;X<u[I].length;X++){var B=u[I][X],re=o.getElementById(I),K=void 0;re.edgesTo(B).length>0?K=re.edgesTo(B)[0]:K=B.edgesTo(re)[0];var W=n(K);B=B.id(),k[B]>k[I]+W&&(k[B]=k[I]+W,D.nodes.indexOf(B)<0?D.push(B):D.updateItem(B),w[B]=0,L[B]=[]),k[B]==k[I]+W&&(w[B]=w[B]+w[I],L[B].push(I))}else for(var ae=0;ae<u[I].length;ae++){var ue=u[I][ae].id();k[ue]==1/0&&(D.push(ue),k[ue]=k[I]+1),k[ue]==k[I]+1&&(w[ue]=w[ue]+w[I],L[ue].push(I))}}for(var me={},ie=0;ie<s.length;ie++)me[s[ie].id()]=0;for(;M.length>0;){for(var ge=M.pop(),Ee=0;Ee<L[ge].length;Ee++){var Ce=L[ge][Ee];me[Ce]=me[Ce]+w[Ce]/w[ge]*(1+me[ge])}ge!=s[b].id()&&f.set(ge,f.get(ge)+me[ge])}},p=0;p<s.length;p++)y(p);var g={betweenness:function(b){var E=o.collection(b).id();return f.get(E)},betweennessNormalized:function(b){if(v==0)return 0;var E=o.collection(b).id();return f.get(E)/v}};return g.betweennessNormalised=g.betweennessNormalized,g}};gi.bc=gi.betweennessCentrality;var Gv=At({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(t){return 1}]}),zv=function(e){return Gv(e)},Vv=function(e,r){for(var a=0,n=0;n<r.length;n++)a+=r[n](e);return a},$v=function(e,r,a){for(var n=0;n<r;n++)e[n*r+n]=a},No=function(e,r){for(var a,n=0;n<r;n++){a=0;for(var i=0;i<r;i++)a+=e[i*r+n];for(var o=0;o<r;o++)e[o*r+n]=e[o*r+n]/a}},Uv=function(e,r,a){for(var n=new Array(a*a),i=0;i<a;i++){for(var o=0;o<a;o++)n[i*a+o]=0;for(var s=0;s<a;s++)for(var u=0;u<a;u++)n[i*a+u]+=e[i*a+s]*r[s*a+u]}return n},_v=function(e,r,a){for(var n=e.slice(0),i=1;i<a;i++)e=Uv(e,n,r);return e},Yv=function(e,r,a){for(var n=new Array(r*r),i=0;i<r*r;i++)n[i]=Math.pow(e[i],a);return No(n,r),n},Hv=function(e,r,a,n){for(var i=0;i<a;i++){var o=Math.round(e[i]*Math.pow(10,n))/Math.pow(10,n),s=Math.round(r[i]*Math.pow(10,n))/Math.pow(10,n);if(o!==s)return!1}return!0},Xv=function(e,r,a,n){for(var i=[],o=0;o<r;o++){for(var s=[],u=0;u<r;u++)Math.round(e[o*r+u]*1e3)/1e3>0&&s.push(a[u]);s.length!==0&&i.push(n.collection(s))}return i},Wv=function(e,r){for(var a=0;a<e.length;a++)if(!r[a]||e[a].id()!==r[a].id())return!1;return!0},qv=function(e){for(var r=0;r<e.length;r++)for(var a=0;a<e.length;a++)r!=a&&Wv(e[r],e[a])&&e.splice(a,1);return e},Io=function(e){for(var r=this.nodes(),a=this.edges(),n=this.cy(),i=zv(e),o={},s=0;s<r.length;s++)o[r[s].id()]=s;for(var u=r.length,l=u*u,v=new Array(l),f,h=0;h<l;h++)v[h]=0;for(var d=0;d<a.length;d++){var c=a[d],y=o[c.source().id()],p=o[c.target().id()],g=Vv(c,i.attributes);v[y*u+p]+=g,v[p*u+y]+=g}$v(v,u,i.multFactor),No(v,u);for(var m=!0,b=0;m&&b<i.maxIterations;)m=!1,f=_v(v,u,i.expandFactor),v=Yv(f,u,i.inflateFactor),Hv(v,f,l,4)||(m=!0),b++;var E=Xv(v,u,r,n);return E=qv(E),E},Kv={markovClustering:Io,mcl:Io},Zv=function(e){return e},Mo=function(e,r){return Math.abs(r-e)},Ro=function(e,r,a){return e+Mo(r,a)},ko=function(e,r,a){return e+Math.pow(a-r,2)},Qv=function(e){return Math.sqrt(e)},Jv=function(e,r,a){return Math.max(e,Mo(r,a))},Ga=function(e,r,a,n,i){for(var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:Zv,s=n,u,l,v=0;v<e;v++)u=r(v),l=a(v),s=i(s,u,l);return o(s)},na={euclidean:function(e,r,a){return e>=2?Ga(e,r,a,0,ko,Qv):Ga(e,r,a,0,Ro)},squaredEuclidean:function(e,r,a){return Ga(e,r,a,0,ko)},manhattan:function(e,r,a){return Ga(e,r,a,0,Ro)},max:function(e,r,a){return Ga(e,r,a,-1/0,Jv)}};na["squared-euclidean"]=na.squaredEuclidean,na.squaredeuclidean=na.squaredEuclidean;function bn(t,e,r,a,n,i){var o;return H(t)?o=t:o=na[t]||na.euclidean,e===0&&H(t)?o(n,i):o(e,r,a,n,i)}var jv=At({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),pi=function(e){return jv(e)},En=function(e,r,a,n,i){var o=i!=="kMedoids",s=o?function(f){return a[f]}:function(f){return n[f](a)},u=function(h){return n[h](r)},l=a,v=r;return bn(e,n.length,s,u,l,v)},yi=function(e,r,a){for(var n=a.length,i=new Array(n),o=new Array(n),s=new Array(r),u=null,l=0;l<n;l++)i[l]=e.min(a[l]).value,o[l]=e.max(a[l]).value;for(var v=0;v<r;v++){u=[];for(var f=0;f<n;f++)u[f]=Math.random()*(o[f]-i[f])+i[f];s[v]=u}return s},Po=function(e,r,a,n,i){for(var o=1/0,s=0,u=0;u<r.length;u++){var l=En(a,e,r[u],n,i);l<o&&(o=l,s=u)}return s},Bo=function(e,r,a){for(var n=[],i=null,o=0;o<r.length;o++)i=r[o],a[i.id()]===e&&n.push(i);return n},ef=function(e,r,a){return Math.abs(r-e)<=a},tf=function(e,r,a){for(var n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++){var o=Math.abs(e[n][i]-r[n][i]);if(o>a)return!1}return!0},rf=function(e,r,a){for(var n=0;n<a;n++)if(e===r[n])return!0;return!1},Fo=function(e,r){var a=new Array(r);if(e.length<50)for(var n=0;n<r;n++){for(var i=e[Math.floor(Math.random()*e.length)];rf(i,a,n);)i=e[Math.floor(Math.random()*e.length)];a[n]=i}else for(var o=0;o<r;o++)a[o]=e[Math.floor(Math.random()*e.length)];return a},Go=function(e,r,a){for(var n=0,i=0;i<r.length;i++)n+=En("manhattan",r[i],e,a,"kMedoids");return n},af=function(e){var r=this.cy(),a=this.nodes(),n=null,i=pi(e),o=new Array(i.k),s={},u;i.testMode?typeof i.testCentroids=="number"?(i.testCentroids,u=yi(a,i.k,i.attributes)):_(i.testCentroids)==="object"?u=i.testCentroids:u=yi(a,i.k,i.attributes):u=yi(a,i.k,i.attributes);for(var l=!0,v=0;l&&v<i.maxIterations;){for(var f=0;f<a.length;f++)n=a[f],s[n.id()]=Po(n,u,i.distance,i.attributes,"kMeans");l=!1;for(var h=0;h<i.k;h++){var d=Bo(h,a,s);if(d.length!==0){for(var c=i.attributes.length,y=u[h],p=new Array(c),g=new Array(c),m=0;m<c;m++){g[m]=0;for(var b=0;b<d.length;b++)n=d[b],g[m]+=i.attributes[m](n);p[m]=g[m]/d.length,ef(p[m],y[m],i.sensitivityThreshold)||(l=!0)}u[h]=p,o[h]=r.collection(d)}}v++}return o},nf=function(e){var r=this.cy(),a=this.nodes(),n=null,i=pi(e),o=new Array(i.k),s,u={},l,v=new Array(i.k);i.testMode?typeof i.testCentroids=="number"||(_(i.testCentroids)==="object"?s=i.testCentroids:s=Fo(a,i.k)):s=Fo(a,i.k);for(var f=!0,h=0;f&&h<i.maxIterations;){for(var d=0;d<a.length;d++)n=a[d],u[n.id()]=Po(n,s,i.distance,i.attributes,"kMedoids");f=!1;for(var c=0;c<s.length;c++){var y=Bo(c,a,u);if(y.length!==0){v[c]=Go(s[c],y,i.attributes);for(var p=0;p<y.length;p++)l=Go(y[p],y,i.attributes),l<v[c]&&(v[c]=l,s[c]=y[p],f=!0);o[c]=r.collection(y)}}h++}return o},of=function(e,r,a,n,i){for(var o,s,u=0;u<r.length;u++)for(var l=0;l<e.length;l++)n[u][l]=Math.pow(a[u][l],i.m);for(var v=0;v<e.length;v++)for(var f=0;f<i.attributes.length;f++){o=0,s=0;for(var h=0;h<r.length;h++)o+=n[h][v]*i.attributes[f](r[h]),s+=n[h][v];e[v][f]=o/s}},sf=function(e,r,a,n,i){for(var o=0;o<e.length;o++)r[o]=e[o].slice();for(var s,u,l,v=2/(i.m-1),f=0;f<a.length;f++)for(var h=0;h<n.length;h++){s=0;for(var d=0;d<a.length;d++)u=En(i.distance,n[h],a[f],i.attributes,"cmeans"),l=En(i.distance,n[h],a[d],i.attributes,"cmeans"),s+=Math.pow(u/l,v);e[h][f]=1/s}},lf=function(e,r,a,n){for(var i=new Array(a.k),o=0;o<i.length;o++)i[o]=[];for(var s,u,l=0;l<r.length;l++){s=-1/0,u=-1;for(var v=0;v<r[0].length;v++)r[l][v]>s&&(s=r[l][v],u=v);i[u].push(e[l])}for(var f=0;f<i.length;f++)i[f]=n.collection(i[f]);return i},zo=function(e){var r=this.cy(),a=this.nodes(),n=pi(e),i,o,s,u,l;u=new Array(a.length);for(var v=0;v<a.length;v++)u[v]=new Array(n.k);s=new Array(a.length);for(var f=0;f<a.length;f++)s[f]=new Array(n.k);for(var h=0;h<a.length;h++){for(var d=0,c=0;c<n.k;c++)s[h][c]=Math.random(),d+=s[h][c];for(var y=0;y<n.k;y++)s[h][y]=s[h][y]/d}o=new Array(n.k);for(var p=0;p<n.k;p++)o[p]=new Array(n.attributes.length);l=new Array(a.length);for(var g=0;g<a.length;g++)l[g]=new Array(n.k);for(var m=!0,b=0;m&&b<n.maxIterations;)m=!1,of(o,a,s,l,n),sf(s,u,o,a,n),tf(s,u,n.sensitivityThreshold)||(m=!0),b++;return i=lf(a,s,n,r),{clusters:i,degreeOfMembership:s}},uf={kMeans:af,kMedoids:nf,fuzzyCMeans:zo,fcm:zo},vf=At({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),ff={single:"min",complete:"max"},hf=function(e){var r=vf(e),a=ff[r.linkage];return a!=null&&(r.linkage=a),r},Vo=function(e,r,a,n,i){for(var o=0,s=1/0,u,l=i.attributes,v=function(D,F){return bn(i.distance,l.length,function(G){return l[G](D)},function(G){return l[G](F)},D,F)},f=0;f<e.length;f++){var h=e[f].key,d=a[h][n[h]];d<s&&(o=h,s=d)}if(i.mode==="threshold"&&s>=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var c=r[o],y=r[n[o]],p;i.mode==="dendrogram"?p={left:c,right:y,key:c.key}:p={value:c.value.concat(y.value),key:c.key},e[c.index]=p,e.splice(y.index,1),r[c.key]=p;for(var g=0;g<e.length;g++){var m=e[g];c.key===m.key?u=1/0:i.linkage==="min"?(u=a[c.key][m.key],a[c.key][m.key]>a[y.key][m.key]&&(u=a[y.key][m.key])):i.linkage==="max"?(u=a[c.key][m.key],a[c.key][m.key]<a[y.key][m.key]&&(u=a[y.key][m.key])):i.linkage==="mean"?u=(a[c.key][m.key]*c.size+a[y.key][m.key]*y.size)/(c.size+y.size):i.mode==="dendrogram"?u=v(m.value,c.value):u=v(m.value[0],c.value[0]),a[c.key][m.key]=a[m.key][c.key]=u}for(var b=0;b<e.length;b++){var E=e[b].key;if(n[E]===c.key||n[E]===y.key){for(var M=E,L=0;L<e.length;L++){var w=e[L].key;a[E][w]<a[E][M]&&(M=w)}n[E]=M}e[b].index=b}return c.key=y.key=c.index=y.index=null,!0},wn=function t(e,r,a){e&&(e.value?r.push(e.value):(e.left&&t(e.left,r),e.right&&t(e.right,r)))},cf=function t(e,r){if(!e)return"";if(e.left&&e.right){var a=t(e.left,r),n=t(e.right,r),i=r.add({group:"nodes",data:{id:a+","+n}});return r.add({group:"edges",data:{source:a,target:i.id()}}),r.add({group:"edges",data:{source:n,target:i.id()}}),i.id()}else if(e.value)return e.value.id()},df=function t(e,r,a){if(!e)return[];var n=[],i=[],o=[];return r===0?(e.left&&wn(e.left,n),e.right&&wn(e.right,i),o=n.concat(i),[a.collection(o)]):r===1?e.value?[a.collection(e.value)]:(e.left&&wn(e.left,n),e.right&&wn(e.right,i),[a.collection(n),a.collection(i)]):e.value?[a.collection(e.value)]:(e.left&&(n=t(e.left,r-1,a)),e.right&&(i=t(e.right,r-1,a)),n.concat(i))},$o=function(e){for(var r=this.cy(),a=this.nodes(),n=hf(e),i=n.attributes,o=function(b,E){return bn(n.distance,i.length,function(M){return i[M](b)},function(M){return i[M](E)},b,E)},s=[],u=[],l=[],v=[],f=0;f<a.length;f++){var h={value:n.mode==="dendrogram"?a[f]:[a[f]],key:f,index:f};s[f]=h,v[f]=h,u[f]=[],l[f]=0}for(var d=0;d<s.length;d++)for(var c=0;c<=d;c++){var y=void 0;n.mode==="dendrogram"?y=d===c?1/0:o(s[d].value,s[c].value):y=d===c?1/0:o(s[d].value[0],s[c].value[0]),u[d][c]=y,u[c][d]=y,y<u[d][l[d]]&&(l[d]=c)}for(var p=Vo(s,v,u,l,n);p;)p=Vo(s,v,u,l,n);var g;return n.mode==="dendrogram"?(g=df(s[0],n.dendrogramDepth,r),n.addDendrogram&&cf(s[0],r)):(g=new Array(s.length),s.forEach(function(m,b){m.key=m.index=null,g[b]=r.collection(m.value)})),g},gf={hierarchicalClustering:$o,hca:$o},pf=At({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),yf=function(e){var r=e.damping,a=e.preference;.5<=r&&r<1||xt("Damping must range on [0.5, 1). Got: ".concat(r));var n=["median","mean","min","max"];return n.some(function(i){return i===a})||R(a)||xt("Preference must be one of [".concat(n.map(function(i){return"'".concat(i,"'")}).join(", "),"] or a number. Got: ").concat(a)),pf(e)},mf=function(e,r,a,n){var i=function(s,u){return n[u](s)};return-bn(e,n.length,function(o){return i(r,o)},function(o){return i(a,o)},r,a)},bf=function(e,r){var a=null;return r==="median"?a=pv(e):r==="mean"?a=gv(e):r==="min"?a=cv(e):r==="max"?a=dv(e):a=r,a},Ef=function(e,r,a){for(var n=[],i=0;i<e;i++)r[i*e+i]+a[i*e+i]>0&&n.push(i);return n},Uo=function(e,r,a){for(var n=[],i=0;i<e;i++){for(var o=-1,s=-1/0,u=0;u<a.length;u++){var l=a[u];r[i*e+l]>s&&(o=l,s=r[i*e+l])}o>0&&n.push(o)}for(var v=0;v<a.length;v++)n[a[v]]=a[v];return n},wf=function(e,r,a){for(var n=Uo(e,r,a),i=0;i<a.length;i++){for(var o=[],s=0;s<n.length;s++)n[s]===a[i]&&o.push(s);for(var u=-1,l=-1/0,v=0;v<o.length;v++){for(var f=0,h=0;h<o.length;h++)f+=r[o[h]*e+o[v]];f>l&&(u=v,l=f)}a[i]=o[u]}return n=Uo(e,r,a),n},_o=function(e){for(var r=this.cy(),a=this.nodes(),n=yf(e),i={},o=0;o<a.length;o++)i[a[o].id()]=o;var s,u,l,v,f,h;s=a.length,u=s*s,l=new Array(u);for(var d=0;d<u;d++)l[d]=-1/0;for(var c=0;c<s;c++)for(var y=0;y<s;y++)c!==y&&(l[c*s+y]=mf(n.distance,a[c],a[y],n.attributes));v=bf(l,n.preference);for(var p=0;p<s;p++)l[p*s+p]=v;f=new Array(u);for(var g=0;g<u;g++)f[g]=0;h=new Array(u);for(var m=0;m<u;m++)h[m]=0;for(var b=new Array(s),E=new Array(s),M=new Array(s),L=0;L<s;L++)b[L]=0,E[L]=0,M[L]=0;for(var w=new Array(s*n.minIterations),k=0;k<w.length;k++)w[k]=0;var D;for(D=0;D<n.maxIterations;D++){for(var F=0;F<s;F++){for(var G=-1/0,I=-1/0,X=-1,B=0,re=0;re<s;re++)b[re]=f[F*s+re],B=h[F*s+re]+l[F*s+re],B>=G?(I=G,G=B,X=re):B>I&&(I=B);for(var K=0;K<s;K++)f[F*s+K]=(1-n.damping)*(l[F*s+K]-G)+n.damping*b[K];f[F*s+X]=(1-n.damping)*(l[F*s+X]-I)+n.damping*b[X]}for(var W=0;W<s;W++){for(var ae=0,ue=0;ue<s;ue++)b[ue]=h[ue*s+W],E[ue]=Math.max(0,f[ue*s+W]),ae+=E[ue];ae-=E[W],E[W]=f[W*s+W],ae+=E[W];for(var me=0;me<s;me++)h[me*s+W]=(1-n.damping)*Math.min(0,ae-E[me])+n.damping*b[me];h[W*s+W]=(1-n.damping)*(ae-E[W])+n.damping*b[W]}for(var ie=0,ge=0;ge<s;ge++){var Ee=h[ge*s+ge]+f[ge*s+ge]>0?1:0;w[D%n.minIterations*s+ge]=Ee,ie+=Ee}if(ie>0&&(D>=n.minIterations-1||D==n.maxIterations-1)){for(var Ce=0,we=0;we<s;we++){M[we]=0;for(var De=0;De<n.minIterations;De++)M[we]+=w[De*s+we];(M[we]===0||M[we]===n.minIterations)&&Ce++}if(Ce===s)break}}for(var oe=Ef(s,f,h),xe=wf(s,l,oe),Le={},Se=0;Se<oe.length;Se++)Le[oe[Se]]=[];for(var Oe=0;Oe<a.length;Oe++){var Fe=i[a[Oe].id()],Xe=xe[Fe];Xe!=null&&Le[Xe].push(a[Oe])}for(var Ie=new Array(oe.length),Me=0;Me<oe.length;Me++)Ie[Me]=r.collection(Le[oe[Me]]);return Ie},xf={affinityPropagation:_o,ap:_o},Tf=At({root:void 0,directed:!1}),Cf={hierholzer:function(e){if(!S(e)){var r=arguments;e={root:r[0],directed:r[1]}}var a=Tf(e),n=a.root,i=a.directed,o=this,s=!1,u,l,v;n&&(v=ee(n)?this.filter(n)[0].id():n[0].id());var f={},h={};i?o.forEach(function(m){var b=m.id();if(m.isNode()){var E=m.indegree(!0),M=m.outdegree(!0),L=E-M,w=M-E;L==1?u?s=!0:u=b:w==1?l?s=!0:l=b:(w>1||L>1)&&(s=!0),f[b]=[],m.outgoers().forEach(function(k){k.isEdge()&&f[b].push(k.id())})}else h[b]=[void 0,m.target().id()]}):o.forEach(function(m){var b=m.id();if(m.isNode()){var E=m.degree(!0);E%2&&(u?l?s=!0:l=b:u=b),f[b]=[],m.connectedEdges().forEach(function(M){return f[b].push(M.id())})}else h[b]=[m.source().id(),m.target().id()]});var d={found:!1,trail:void 0};if(s)return d;if(l&&u)if(i){if(v&&l!=v)return d;v=l}else{if(v&&l!=v&&u!=v)return d;v||(v=l)}else v||(v=o[0].id());var c=function(b){for(var E=b,M=[b],L,w,k;f[E].length;)L=f[E].shift(),w=h[L][0],k=h[L][1],E!=k?(f[k]=f[k].filter(function(D){return D!=L}),E=k):!i&&E!=w&&(f[w]=f[w].filter(function(D){return D!=L}),E=w),M.unshift(L),M.unshift(E);return M},y=[],p=[];for(p=c(v);p.length!=1;)f[p[0]].length==0?(y.unshift(o.getElementById(p.shift())),y.unshift(o.getElementById(p.shift()))):p=c(p.shift()).concat(p);y.unshift(o.getElementById(p.shift()));for(var g in f)if(f[g].length)return d;return d.found=!0,d.trail=this.spawn(y,!0),d}},xn=function(){var e=this,r={},a=0,n=0,i=[],o=[],s={},u=function(h,d){for(var c=o.length-1,y=[],p=e.spawn();o[c].x!=h||o[c].y!=d;)y.push(o.pop().edge),c--;y.push(o.pop().edge),y.forEach(function(g){var m=g.connectedNodes().intersection(e);p.merge(g),m.forEach(function(b){var E=b.id(),M=b.connectedEdges().intersection(e);p.merge(b),r[E].cutVertex?p.merge(M.filter(function(L){return L.isLoop()})):p.merge(M)})}),i.push(p)},l=function f(h,d,c){h===c&&(n+=1),r[d]={id:a,low:a++,cutVertex:!1};var y=e.getElementById(d).connectedEdges().intersection(e);if(y.size()===0)i.push(e.spawn(e.getElementById(d)));else{var p,g,m,b;y.forEach(function(E){p=E.source().id(),g=E.target().id(),m=p===d?g:p,m!==c&&(b=E.id(),s[b]||(s[b]=!0,o.push({x:d,y:m,edge:E})),m in r?r[d].low=Math.min(r[d].low,r[m].id):(f(h,m,d),r[d].low=Math.min(r[d].low,r[m].low),r[d].id<=r[m].low&&(r[d].cutVertex=!0,u(d,m))))})}};e.forEach(function(f){if(f.isNode()){var h=f.id();h in r||(n=0,l(h,h),r[h].cutVertex=n>1)}});var v=Object.keys(r).filter(function(f){return r[f].cutVertex}).map(function(f){return e.getElementById(f)});return{cut:e.spawn(v),components:i}},Df={hopcroftTarjanBiconnected:xn,htbc:xn,htb:xn,hopcroftTarjanBiconnectedComponents:xn},Tn=function(){var e=this,r={},a=0,n=[],i=[],o=e.spawn(e),s=function u(l){i.push(l),r[l]={index:a,low:a++,explored:!1};var v=e.getElementById(l).connectedEdges().intersection(e);if(v.forEach(function(y){var p=y.target().id();p!==l&&(p in r||u(p),r[p].explored||(r[l].low=Math.min(r[l].low,r[p].low)))}),r[l].index===r[l].low){for(var f=e.spawn();;){var h=i.pop();if(f.merge(e.getElementById(h)),r[h].low=r[l].index,r[h].explored=!0,h===l)break}var d=f.edgesWith(f),c=f.merge(d);n.push(c),o=o.difference(c)}};return e.forEach(function(u){if(u.isNode()){var l=u.id();l in r||s(l)}}),{cut:o,components:n}},Sf={tarjanStronglyConnected:Tn,tsc:Tn,tscc:Tn,tarjanStronglyConnectedComponents:Tn},Yo={};[Ma,tv,rv,nv,ov,lv,fv,Bv,ra,aa,gi,Kv,uf,gf,xf,Cf,Df,Sf].forEach(function(t){He(Yo,t)});/*!
Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable
Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com)
Licensed under The MIT License (http://opensource.org/licenses/MIT)
*/var Ho=0,Xo=1,Wo=2,yr=function t(e){if(!(this instanceof t))return new t(e);this.id="Thenable/1.0.7",this.state=Ho,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e=="function"&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};yr.prototype={fulfill:function(e){return qo(this,Xo,"fulfillValue",e)},reject:function(e){return qo(this,Wo,"rejectReason",e)},then:function(e,r){var a=this,n=new yr;return a.onFulfilled.push(Qo(e,n,"fulfill")),a.onRejected.push(Qo(r,n,"reject")),Ko(a),n.proxy}};var qo=function(e,r,a,n){return e.state===Ho&&(e.state=r,e[a]=n,Ko(e)),e},Ko=function(e){e.state===Xo?Zo(e,"onFulfilled",e.fulfillValue):e.state===Wo&&Zo(e,"onRejected",e.rejectReason)},Zo=function(e,r,a){if(e[r].length!==0){var n=e[r];e[r]=[];var i=function(){for(var s=0;s<n.length;s++)n[s](a)};typeof setImmediate=="function"?setImmediate(i):setTimeout(i,0)}},Qo=function(e,r,a){return function(n){if(typeof e!="function")r[a].call(r,n);else{var i;try{i=e(n)}catch(o){r.reject(o);return}Lf(r,i)}}},Lf=function t(e,r){if(e===r||e.proxy===r){e.reject(new TypeError("cannot resolve promise with itself"));return}var a;if(_(r)==="object"&&r!==null||typeof r=="function")try{a=r.then}catch(i){e.reject(i);return}if(typeof a=="function"){var n=!1;try{a.call(r,function(i){n||(n=!0,i===r?e.reject(new TypeError("circular thenable chain")):t(e,i))},function(i){n||(n=!0,e.reject(i))})}catch(i){n||e.reject(i)}return}e.fulfill(r)};yr.all=function(t){return new yr(function(e,r){for(var a=new Array(t.length),n=0,i=function(u,l){a[u]=l,n++,n===t.length&&e(a)},o=0;o<t.length;o++)(function(s){var u=t[s],l=u!=null&&u.then!=null;if(l)u.then(function(f){i(s,f)},function(f){r(f)});else{var v=u;i(s,v)}})(o)})},yr.resolve=function(t){return new yr(function(e,r){e(t)})},yr.reject=function(t){return new yr(function(e,r){r(t)})};var ia=typeof Promise<"u"?Promise:yr,mi=function(e,r,a){var n=Ye(e),i=!n,o=this._private=He({duration:1e3},r,a);if(o.target=e,o.style=o.style||o.css,o.started=!1,o.playing=!1,o.hooked=!1,o.applying=!1,o.progress=0,o.completes=[],o.frames=[],o.complete&&H(o.complete)&&o.completes.push(o.complete),i){var s=e.position();o.startPosition=o.startPosition||{x:s.x,y:s.y},o.startStyle=o.startStyle||e.cy().style().getAnimationStartStyle(e,o.style)}if(n){var u=e.pan();o.startPan={x:u.x,y:u.y},o.startZoom=e.zoom()}this.length=1,this[0]=this},zr=mi.prototype;He(zr,{instanceString:function(){return"animation"},hook:function(){var e=this._private;if(!e.hooked){var r,a=e.target._private.animation;e.queue?r=a.queue:r=a.current,r.push(this),pe(e.target)&&e.target.cy().addToAnimationPool(e.target),e.hooked=!0}return this},play:function(){var e=this._private;return e.progress===1&&(e.progress=0),e.playing=!0,e.started=!1,e.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var e=this._private;return e.applying=!0,e.started=!1,e.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var e=this._private;return e.playing=!1,e.started=!1,this},stop:function(){var e=this._private;return e.playing=!1,e.started=!1,e.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(e){var r=this._private;return e===void 0?r.progress*r.duration:this.progress(e/r.duration)},progress:function(e){var r=this._private,a=r.playing;return e===void 0?r.progress:(a&&this.pause(),r.progress=e,r.started=!1,a&&this.play(),this)},completed:function(){return this._private.progress===1},reverse:function(){var e=this._private,r=e.playing;r&&this.pause(),e.progress=1-e.progress,e.started=!1;var a=function(l,v){var f=e[l];f!=null&&(e[l]=e[v],e[v]=f)};if(a("zoom","startZoom"),a("pan","startPan"),a("position","startPosition"),e.style)for(var n=0;n<e.style.length;n++){var i=e.style[n],o=i.name,s=e.startStyle[o];e.startStyle[o]=i,e.style[n]=s}return r&&this.play(),this},promise:function(e){var r=this._private,a;switch(e){case"frame":a=r.frames;break;default:case"complete":case"completed":a=r.completes}return new ia(function(n,i){a.push(function(){n()})})}}),zr.complete=zr.completed,zr.run=zr.play,zr.running=zr.playing;var Af={animated:function(){return function(){var r=this,a=r.length!==void 0,n=a?r:[r],i=this._private.cy||this;if(!i.styleEnabled())return!1;var o=n[0];if(o)return o._private.animation.current.length>0}},clearQueue:function(){return function(){var r=this,a=r.length!==void 0,n=a?r:[r],i=this._private.cy||this;if(!i.styleEnabled())return this;for(var o=0;o<n.length;o++){var s=n[o];s._private.animation.queue=[]}return this}},delay:function(){return function(r,a){var n=this._private.cy||this;return n.styleEnabled()?this.animate({delay:r,duration:r,complete:a}):this}},delayAnimation:function(){return function(r,a){var n=this._private.cy||this;return n.styleEnabled()?this.animation({delay:r,duration:r,complete:a}):this}},animation:function(){return function(r,a){var n=this,i=n.length!==void 0,o=i?n:[n],s=this._private.cy||this,u=!i,l=!u;if(!s.styleEnabled())return this;var v=s.style();r=He({},r,a);var f=Object.keys(r).length===0;if(f)return new mi(o[0],r);switch(r.duration===void 0&&(r.duration=400),r.duration){case"slow":r.duration=600;break;case"fast":r.duration=200;break}if(l&&(r.style=v.getPropsList(r.style||r.css),r.css=void 0),l&&r.renderedPosition!=null){var h=r.renderedPosition,d=s.pan(),c=s.zoom();r.position=Eo(h,c,d)}if(u&&r.panBy!=null){var y=r.panBy,p=s.pan();r.pan={x:p.x+y.x,y:p.y+y.y}}var g=r.center||r.centre;if(u&&g!=null){var m=s.getCenterPan(g.eles,r.zoom);m!=null&&(r.pan=m)}if(u&&r.fit!=null){var b=r.fit,E=s.getFitViewport(b.eles||b.boundingBox,b.padding);E!=null&&(r.pan=E.pan,r.zoom=E.zoom)}if(u&&S(r.zoom)){var M=s.getZoomedViewport(r.zoom);M!=null?(M.zoomed&&(r.zoom=M.zoom),M.panned&&(r.pan=M.pan)):r.zoom=null}return new mi(o[0],r)}},animate:function(){return function(r,a){var n=this,i=n.length!==void 0,o=i?n:[n],s=this._private.cy||this;if(!s.styleEnabled())return this;a&&(r=He({},r,a));for(var u=0;u<o.length;u++){var l=o[u],v=l.animated()&&(r.queue===void 0||r.queue),f=l.animation(r,v?{queue:!0}:void 0);f.play()}return this}},stop:function(){return function(r,a){var n=this,i=n.length!==void 0,o=i?n:[n],s=this._private.cy||this;if(!s.styleEnabled())return this;for(var u=0;u<o.length;u++){for(var l=o[u],v=l._private,f=v.animation.current,h=0;h<f.length;h++){var d=f[h],c=d._private;a&&(c.duration=0)}r&&(v.animation.queue=[]),a||(v.animation.current=[])}return s.notify("draw"),this}}},Of=Array.isArray,Cn=Of,Nf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,If=/^\w*$/;function Mf(t,e){if(Cn(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||Aa(t)?!0:If.test(t)||!Nf.test(t)||e!=null&&t in Object(e)}var Rf=Mf,kf="[object AsyncFunction]",Pf="[object Function]",Bf="[object GeneratorFunction]",Ff="[object Proxy]";function Gf(t){if(!kr(t))return!1;var e=io(t);return e==Pf||e==Bf||e==kf||e==Ff}var zf=Gf,Vf=on["__core-js_shared__"],bi=Vf,Jo=function(){var t=/[^.]+$/.exec(bi&&bi.keys&&bi.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function $f(t){return!!Jo&&Jo in t}var Uf=$f,_f=Function.prototype,Yf=_f.toString;function Hf(t){if(t!=null){try{return Yf.call(t)}catch{}try{return t+""}catch{}}return""}var Xf=Hf,Wf=/[\\^$.*+?()[\]{}|]/g,qf=/^\[object .+?Constructor\]$/,Kf=Function.prototype,Zf=Object.prototype,Qf=Kf.toString,Jf=Zf.hasOwnProperty,jf=RegExp("^"+Qf.call(Jf).replace(Wf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eh(t){if(!kr(t)||Uf(t))return!1;var e=zf(t)?jf:qf;return e.test(Xf(t))}var th=eh;function rh(t,e){return t==null?void 0:t[e]}var ah=rh;function nh(t,e){var r=ah(t,e);return th(r)?r:void 0}var Ei=nh,ih=Ei(Object,"create"),za=ih;function oh(){this.__data__=za?za(null):{},this.size=0}var sh=oh;function lh(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var uh=lh,vh="__lodash_hash_undefined__",fh=Object.prototype,hh=fh.hasOwnProperty;function ch(t){var e=this.__data__;if(za){var r=e[t];return r===vh?void 0:r}return hh.call(e,t)?e[t]:void 0}var dh=ch,gh=Object.prototype,ph=gh.hasOwnProperty;function yh(t){var e=this.__data__;return za?e[t]!==void 0:ph.call(e,t)}var mh=yh,bh="__lodash_hash_undefined__";function Eh(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=za&&e===void 0?bh:e,this}var wh=Eh;function oa(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var a=t[e];this.set(a[0],a[1])}}oa.prototype.clear=sh,oa.prototype.delete=uh,oa.prototype.get=dh,oa.prototype.has=mh,oa.prototype.set=wh;var jo=oa;function xh(){this.__data__=[],this.size=0}var Th=xh;function Ch(t,e){return t===e||t!==t&&e!==e}var es=Ch;function Dh(t,e){for(var r=t.length;r--;)if(es(t[r][0],e))return r;return-1}var Dn=Dh,Sh=Array.prototype,Lh=Sh.splice;function Ah(t){var e=this.__data__,r=Dn(e,t);if(r<0)return!1;var a=e.length-1;return r==a?e.pop():Lh.call(e,r,1),--this.size,!0}var Oh=Ah;function Nh(t){var e=this.__data__,r=Dn(e,t);return r<0?void 0:e[r][1]}var Ih=Nh;function Mh(t){return Dn(this.__data__,t)>-1}var Rh=Mh;function kh(t,e){var r=this.__data__,a=Dn(r,t);return a<0?(++this.size,r.push([t,e])):r[a][1]=e,this}var Ph=kh;function sa(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var a=t[e];this.set(a[0],a[1])}}sa.prototype.clear=Th,sa.prototype.delete=Oh,sa.prototype.get=Ih,sa.prototype.has=Rh,sa.prototype.set=Ph;var Bh=sa,Fh=Ei(on,"Map"),Gh=Fh;function zh(){this.size=0,this.__data__={hash:new jo,map:new(Gh||Bh),string:new jo}}var Vh=zh;function $h(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var Uh=$h;function _h(t,e){var r=t.__data__;return Uh(e)?r[typeof e=="string"?"string":"hash"]:r.map}var Sn=_h;function Yh(t){var e=Sn(this,t).delete(t);return this.size-=e?1:0,e}var Hh=Yh;function Xh(t){return Sn(this,t).get(t)}var Wh=Xh;function qh(t){return Sn(this,t).has(t)}var Kh=qh;function Zh(t,e){var r=Sn(this,t),a=r.size;return r.set(t,e),this.size+=r.size==a?0:1,this}var Qh=Zh;function la(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var a=t[e];this.set(a[0],a[1])}}la.prototype.clear=Vh,la.prototype.delete=Hh,la.prototype.get=Wh,la.prototype.has=Kh,la.prototype.set=Qh;var ts=la,Jh="Expected a function";function wi(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Jh);var r=function(){var a=arguments,n=e?e.apply(this,a):a[0],i=r.cache;if(i.has(n))return i.get(n);var o=t.apply(this,a);return r.cache=i.set(n,o)||i,o};return r.cache=new(wi.Cache||ts),r}wi.Cache=ts;var jh=wi,ec=500;function tc(t){var e=jh(t,function(a){return r.size===ec&&r.clear(),a}),r=e.cache;return e}var rc=tc,ac=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nc=/\\(\\)?/g,ic=rc(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(ac,function(r,a,n,i){e.push(n?i.replace(nc,"$1"):a||r)}),e}),rs=ic;function oc(t,e){for(var r=-1,a=t==null?0:t.length,n=Array(a);++r<a;)n[r]=e(t[r],r,t);return n}var as=oc,sc=1/0,ns=Zr?Zr.prototype:void 0,is=ns?ns.toString:void 0;function os(t){if(typeof t=="string")return t;if(Cn(t))return as(t,os)+"";if(Aa(t))return is?is.call(t):"";var e=t+"";return e=="0"&&1/t==-sc?"-0":e}var lc=os;function uc(t){return t==null?"":lc(t)}var ss=uc;function vc(t,e){return Cn(t)?t:Rf(t,e)?[t]:rs(ss(t))}var ls=vc,fc=1/0;function hc(t){if(typeof t=="string"||Aa(t))return t;var e=t+"";return e=="0"&&1/t==-fc?"-0":e}var xi=hc;function cc(t,e){e=ls(e,t);for(var r=0,a=e.length;t!=null&&r<a;)t=t[xi(e[r++])];return r&&r==a?t:void 0}var dc=cc;function gc(t,e,r){var a=t==null?void 0:dc(t,e);return a===void 0?r:a}var pc=gc,yc=function(){try{var t=Ei(Object,"defineProperty");return t({},"",{}),t}catch{}}(),us=yc;function mc(t,e,r){e=="__proto__"&&us?us(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var bc=mc,Ec=Object.prototype,wc=Ec.hasOwnProperty;function xc(t,e,r){var a=t[e];(!(wc.call(t,e)&&es(a,r))||r===void 0&&!(e in t))&&bc(t,e,r)}var Tc=xc,Cc=9007199254740991,Dc=/^(?:0|[1-9]\d*)$/;function Sc(t,e){var r=typeof t;return e=e??Cc,!!e&&(r=="number"||r!="symbol"&&Dc.test(t))&&t>-1&&t%1==0&&t<e}var Lc=Sc;function Ac(t,e,r,a){if(!kr(t))return t;e=ls(e,t);for(var n=-1,i=e.length,o=i-1,s=t;s!=null&&++n<i;){var u=xi(e[n]),l=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return t;if(n!=o){var v=s[u];l=a?a(v,u,s):void 0,l===void 0&&(l=kr(v)?v:Lc(e[n+1])?[]:{})}Tc(s,u,l),s=s[u]}return t}var Oc=Ac;function Nc(t,e,r){return t==null?t:Oc(t,e,r)}var Ic=Nc;function Mc(t,e){var r=-1,a=t.length;for(e||(e=Array(a));++r<a;)e[r]=t[r];return e}var Rc=Mc;function kc(t){return Cn(t)?as(t,xi):Aa(t)?[t]:Rc(rs(ss(t)))}var Pc=kc,Bc={data:function(e){var r={field:"data",bindingEvent:"data",allowBinding:!1,allowSetting:!1,allowGetting:!1,settingEvent:"data",settingTriggersEvent:!1,triggerFnName:"trigger",immutableKeys:{},updateStyle:!1,beforeGet:function(n){},beforeSet:function(n,i){},onSet:function(n){},canSet:function(n){return!0}};return e=He({},r,e),function(n,i){var o=e,s=this,u=s.length!==void 0,l=u?s:[s],v=u?s[0]:s;if(ee(n)){var f=n.indexOf(".")!==-1,h=f&&Pc(n);if(o.allowGetting&&i===void 0){var d;return v&&(o.beforeGet(v),h&&v._private[o.field][n]===void 0?d=pc(v._private[o.field],h):d=v._private[o.field][n]),d}else if(o.allowSetting&&i!==void 0){var c=!o.immutableKeys[n];if(c){var y=T({},n,i);o.beforeSet(s,y);for(var p=0,g=l.length;p<g;p++){var m=l[p];o.canSet(m)&&(h&&v._private[o.field][n]===void 0?Ic(m._private[o.field],h,i):m._private[o.field][n]=i)}o.updateStyle&&s.updateStyle(),o.onSet(s),o.settingTriggersEvent&&s[o.triggerFnName](o.settingEvent)}}}else if(o.allowSetting&&S(n)){var b=n,E,M,L=Object.keys(b);o.beforeSet(s,b);for(var w=0;w<L.length;w++){E=L[w],M=b[E];var k=!o.immutableKeys[E];if(k)for(var D=0;D<l.length;D++){var F=l[D];o.canSet(F)&&(F._private[o.field][E]=M)}}o.updateStyle&&s.updateStyle(),o.onSet(s),o.settingTriggersEvent&&s[o.triggerFnName](o.settingEvent)}else if(o.allowBinding&&H(n)){var G=n;s.on(o.bindingEvent,G)}else if(o.allowGetting&&n===void 0){var I;return v&&(o.beforeGet(v),I=v._private[o.field]),I}return s}},removeData:function(e){var r={field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!1,immutableKeys:{}};return e=He({},r,e),function(n){var i=e,o=this,s=o.length!==void 0,u=s?o:[o];if(ee(n)){for(var l=n.split(/\s+/),v=l.length,f=0;f<v;f++){var h=l[f];if(!Re(h)){var d=!i.immutableKeys[h];if(d)for(var c=0,y=u.length;c<y;c++)u[c]._private[i.field][h]=void 0}}i.triggerEvent&&o[i.triggerFnName](i.event)}else if(n===void 0){for(var p=0,g=u.length;p<g;p++)for(var m=u[p]._private[i.field],b=Object.keys(m),E=0;E<b.length;E++){var M=b[E],L=!i.immutableKeys[M];L&&(m[M]=void 0)}i.triggerEvent&&o[i.triggerFnName](i.event)}return o}}},Fc={eventAliasesOn:function(e){var r=e;r.addListener=r.listen=r.bind=r.on,r.unlisten=r.unbind=r.off=r.removeListener,r.trigger=r.emit,r.pon=r.promiseOn=function(a,n){var i=this,o=Array.prototype.slice.call(arguments,0);return new ia(function(s,u){var l=function(d){i.off.apply(i,f),s(d)},v=o.concat([l]),f=v.concat([]);i.on.apply(i,v)})}}},ct={};[Af,Bc,Fc].forEach(function(t){He(ct,t)});var Gc={animate:ct.animate(),animation:ct.animation(),animated:ct.animated(),clearQueue:ct.clearQueue(),delay:ct.delay(),delayAnimation:ct.delayAnimation(),stop:ct.stop()},Ln={classes:function(e){var r=this;if(e===void 0){var a=[];return r[0]._private.classes.forEach(function(c){return a.push(c)}),a}else te(e)||(e=(e||"").match(/\S+/g)||[]);for(var n=[],i=new Jr(e),o=0;o<r.length;o++){for(var s=r[o],u=s._private,l=u.classes,v=!1,f=0;f<e.length;f++){var h=e[f],d=l.has(h);if(!d){v=!0;break}}v||(v=l.size!==e.length),v&&(u.classes=i,n.push(s))}return n.length>0&&this.spawn(n).updateStyle().emit("class"),r},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var r=this[0];return r!=null&&r._private.classes.has(e)},toggleClass:function(e,r){te(e)||(e=e.match(/\S+/g)||[]);for(var a=this,n=r===void 0,i=[],o=0,s=a.length;o<s;o++)for(var u=a[o],l=u._private.classes,v=!1,f=0;f<e.length;f++){var h=e[f],d=l.has(h),c=!1;r||n&&!d?(l.add(h),c=!0):(!r||n&&d)&&(l.delete(h),c=!0),!v&&c&&(i.push(u),v=!0)}return i.length>0&&this.spawn(i).updateStyle().emit("class"),a},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,r){var a=this;if(r==null)r=250;else if(r===0)return a;return a.addClass(e),setTimeout(function(){a.removeClass(e)},r),a}};Ln.className=Ln.classNames=Ln.classes;var ot={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:gt,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};ot.variable="(?:[\\w-.]|(?:\\\\"+ot.metaChar+"))+",ot.className="(?:[\\w-]|(?:\\\\"+ot.metaChar+"))+",ot.value=ot.string+"|"+ot.number,ot.id=ot.variable,function(){var t,e,r;for(t=ot.comparatorOp.split("|"),r=0;r<t.length;r++)e=t[r],ot.comparatorOp+="|@"+e;for(t=ot.comparatorOp.split("|"),r=0;r<t.length;r++)e=t[r],!(e.indexOf("!")>=0)&&e!=="="&&(ot.comparatorOp+="|\\!"+e)}();var pt=function(){return{checks:[]}},ke={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},Ti=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(t,e){return Kl(t.selector,e.selector)}),zc=function(){for(var t={},e,r=0;r<Ti.length;r++)e=Ti[r],t[e.selector]=e.matches;return t}(),Vc=function(e,r){return zc[e](r)},$c="("+Ti.map(function(t){return t.selector}).join("|")+")",ua=function(e){return e.replace(new RegExp("\\\\("+ot.metaChar+")","g"),function(r,a){return a})},Dr=function(e,r,a){e[e.length-1]=a},Ci=[{name:"group",query:!0,regex:"("+ot.group+")",populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:ke.GROUP,value:i==="*"?i:i+"s"})}},{name:"state",query:!0,regex:$c,populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:ke.STATE,value:i})}},{name:"id",query:!0,regex:"\\#("+ot.id+")",populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:ke.ID,value:ua(i)})}},{name:"className",query:!0,regex:"\\.("+ot.className+")",populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:ke.CLASS,value:ua(i)})}},{name:"dataExists",query:!0,regex:"\\[\\s*("+ot.variable+")\\s*\\]",populate:function(e,r,a){var n=x(a,1),i=n[0];r.checks.push({type:ke.DATA_EXIST,field:ua(i)})}},{name:"dataCompare",query:!0,regex:"\\[\\s*("+ot.variable+")\\s*("+ot.comparatorOp+")\\s*("+ot.value+")\\s*\\]",populate:function(e,r,a){var n=x(a,3),i=n[0],o=n[1],s=n[2],u=new RegExp("^"+ot.string+"$").exec(s)!=null;u?s=s.substring(1,s.length-1):s=parseFloat(s),r.checks.push({type:ke.DATA_COMPARE,field:ua(i),operator:o,value:s})}},{name:"dataBool",query:!0,regex:"\\[\\s*("+ot.boolOp+")\\s*("+ot.variable+")\\s*\\]",populate:function(e,r,a){var n=x(a,2),i=n[0],o=n[1];r.checks.push({type:ke.DATA_BOOL,field:ua(o),operator:i})}},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+ot.meta+")\\s*("+ot.comparatorOp+")\\s*("+ot.number+")\\s*\\]\\]",populate:function(e,r,a){var n=x(a,3),i=n[0],o=n[1],s=n[2];r.checks.push({type:ke.META_COMPARE,field:ua(i),operator:o,value:parseFloat(s)})}},{name:"nextQuery",separator:!0,regex:ot.separator,populate:function(e,r){var a=e.currentSubject,n=e.edgeCount,i=e.compoundCount,o=e[e.length-1];a!=null&&(o.subject=a,e.currentSubject=null),o.edgeCount=n,o.compoundCount=i,e.edgeCount=0,e.compoundCount=0;var s=e[e.length++]=pt();return s}},{name:"directedEdge",separator:!0,regex:ot.directedEdge,populate:function(e,r){if(e.currentSubject==null){var a=pt(),n=r,i=pt();return a.checks.push({type:ke.DIRECTED_EDGE,source:n,target:i}),Dr(e,r,a),e.edgeCount++,i}else{var o=pt(),s=r,u=pt();return o.checks.push({type:ke.NODE_SOURCE,source:s,target:u}),Dr(e,r,o),e.edgeCount++,u}}},{name:"undirectedEdge",separator:!0,regex:ot.undirectedEdge,populate:function(e,r){if(e.currentSubject==null){var a=pt(),n=r,i=pt();return a.checks.push({type:ke.UNDIRECTED_EDGE,nodes:[n,i]}),Dr(e,r,a),e.edgeCount++,i}else{var o=pt(),s=r,u=pt();return o.checks.push({type:ke.NODE_NEIGHBOR,node:s,neighbor:u}),Dr(e,r,o),u}}},{name:"child",separator:!0,regex:ot.child,populate:function(e,r){if(e.currentSubject==null){var a=pt(),n=pt(),i=e[e.length-1];return a.checks.push({type:ke.CHILD,parent:i,child:n}),Dr(e,r,a),e.compoundCount++,n}else if(e.currentSubject===r){var o=pt(),s=e[e.length-1],u=pt(),l=pt(),v=pt(),f=pt();return o.checks.push({type:ke.COMPOUND_SPLIT,left:s,right:u,subject:l}),l.checks=r.checks,r.checks=[{type:ke.TRUE}],f.checks.push({type:ke.TRUE}),u.checks.push({type:ke.PARENT,parent:f,child:v}),Dr(e,s,o),e.currentSubject=l,e.compoundCount++,v}else{var h=pt(),d=pt(),c=[{type:ke.PARENT,parent:h,child:d}];return h.checks=r.checks,r.checks=c,e.compoundCount++,d}}},{name:"descendant",separator:!0,regex:ot.descendant,populate:function(e,r){if(e.currentSubject==null){var a=pt(),n=pt(),i=e[e.length-1];return a.checks.push({type:ke.DESCENDANT,ancestor:i,descendant:n}),Dr(e,r,a),e.compoundCount++,n}else if(e.currentSubject===r){var o=pt(),s=e[e.length-1],u=pt(),l=pt(),v=pt(),f=pt();return o.checks.push({type:ke.COMPOUND_SPLIT,left:s,right:u,subject:l}),l.checks=r.checks,r.checks=[{type:ke.TRUE}],f.checks.push({type:ke.TRUE}),u.checks.push({type:ke.ANCESTOR,ancestor:f,descendant:v}),Dr(e,s,o),e.currentSubject=l,e.compoundCount++,v}else{var h=pt(),d=pt(),c=[{type:ke.ANCESTOR,ancestor:h,descendant:d}];return h.checks=r.checks,r.checks=c,e.compoundCount++,d}}},{name:"subject",modifier:!0,regex:ot.subject,populate:function(e,r){if(e.currentSubject!=null&&e.currentSubject!==r)return ht("Redefinition of subject in selector `"+e.toString()+"`"),!1;e.currentSubject=r;var a=e[e.length-1],n=a.checks[0],i=n==null?null:n.type;i===ke.DIRECTED_EDGE?n.type=ke.NODE_TARGET:i===ke.UNDIRECTED_EDGE&&(n.type=ke.NODE_NEIGHBOR,n.node=n.nodes[1],n.neighbor=n.nodes[0],n.nodes=null)}}];Ci.forEach(function(t){return t.regexObj=new RegExp("^"+t.regex)});var Uc=function(e){for(var r,a,n,i=0;i<Ci.length;i++){var o=Ci[i],s=o.name,u=e.match(o.regexObj);if(u!=null){a=u,r=o,n=s;var l=u[0];e=e.substring(l.length);break}}return{expr:r,match:a,name:n,remaining:e}},_c=function(e){var r=e.match(/^\s+/);if(r){var a=r[0];e=e.substring(a.length)}return e},Yc=function(e){var r=this,a=r.inputText=e,n=r[0]=pt();for(r.length=1,a=_c(a);;){var i=Uc(a);if(i.expr==null)return ht("The selector `"+e+"`is invalid"),!1;var o=i.match.slice(1),s=i.expr.populate(r,n,o);if(s===!1)return!1;if(s!=null&&(n=s),a=i.remaining,a.match(/^\s*$/))break}var u=r[r.length-1];r.currentSubject!=null&&(u.subject=r.currentSubject),u.edgeCount=r.edgeCount,u.compoundCount=r.compoundCount;for(var l=0;l<r.length;l++){var v=r[l];if(v.compoundCount>0&&v.edgeCount>0)return ht("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(v.edgeCount>1)return ht("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;v.edgeCount===1&&ht("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},Hc=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(v){return v??""},r=function(v){return ee(v)?'"'+v+'"':e(v)},a=function(v){return" "+v+" "},n=function(v,f){var h=v.type,d=v.value;switch(h){case ke.GROUP:{var c=e(d);return c.substring(0,c.length-1)}case ke.DATA_COMPARE:{var y=v.field,p=v.operator;return"["+y+a(e(p))+r(d)+"]"}case ke.DATA_BOOL:{var g=v.operator,m=v.field;return"["+e(g)+m+"]"}case ke.DATA_EXIST:{var b=v.field;return"["+b+"]"}case ke.META_COMPARE:{var E=v.operator,M=v.field;return"[["+M+a(e(E))+r(d)+"]]"}case ke.STATE:return d;case ke.ID:return"#"+d;case ke.CLASS:return"."+d;case ke.PARENT:case ke.CHILD:return i(v.parent,f)+a(">")+i(v.child,f);case ke.ANCESTOR:case ke.DESCENDANT:return i(v.ancestor,f)+" "+i(v.descendant,f);case ke.COMPOUND_SPLIT:{var L=i(v.left,f),w=i(v.subject,f),k=i(v.right,f);return L+(L.length>0?" ":"")+w+k}case ke.TRUE:return""}},i=function(v,f){return v.checks.reduce(function(h,d,c){return h+(f===v&&c===0?"$":"")+n(d,f)},"")},o="",s=0;s<this.length;s++){var u=this[s];o+=i(u,u.subject),this.length>1&&s<this.length-1&&(o+=", ")}return this.toStringCache=o,o},Xc={parse:Yc,toString:Hc},vs=function(e,r,a){var n,i=ee(e),o=R(e),s=ee(a),u,l,v=!1,f=!1,h=!1;switch(r.indexOf("!")>=0&&(r=r.replace("!",""),f=!0),r.indexOf("@")>=0&&(r=r.replace("@",""),v=!0),(i||s||v)&&(u=!i&&!o?"":""+e,l=""+a),v&&(e=u=u.toLowerCase(),a=l=l.toLowerCase()),r){case"*=":n=u.indexOf(l)>=0;break;case"$=":n=u.indexOf(l,u.length-l.length)>=0;break;case"^=":n=u.indexOf(l)===0;break;case"=":n=e===a;break;case">":h=!0,n=e>a;break;case">=":h=!0,n=e>=a;break;case"<":h=!0,n=e<a;break;case"<=":h=!0,n=e<=a;break;default:n=!1;break}return f&&(e!=null||!h)&&(n=!n),n},Wc=function(e,r){switch(r){case"?":return!!e;case"!":return!e;case"^":return e===void 0}},qc=function(e){return e!==void 0},Di=function(e,r){return e.data(r)},Kc=function(e,r){return e[r]()},Tt=[],wt=function(e,r){return e.checks.every(function(a){return Tt[a.type](a,r)})};Tt[ke.GROUP]=function(t,e){var r=t.value;return r==="*"||r===e.group()},Tt[ke.STATE]=function(t,e){var r=t.value;return Vc(r,e)},Tt[ke.ID]=function(t,e){var r=t.value;return e.id()===r},Tt[ke.CLASS]=function(t,e){var r=t.value;return e.hasClass(r)},Tt[ke.META_COMPARE]=function(t,e){var r=t.field,a=t.operator,n=t.value;return vs(Kc(e,r),a,n)},Tt[ke.DATA_COMPARE]=function(t,e){var r=t.field,a=t.operator,n=t.value;return vs(Di(e,r),a,n)},Tt[ke.DATA_BOOL]=function(t,e){var r=t.field,a=t.operator;return Wc(Di(e,r),a)},Tt[ke.DATA_EXIST]=function(t,e){var r=t.field;return t.operator,qc(Di(e,r))},Tt[ke.UNDIRECTED_EDGE]=function(t,e){var r=t.nodes[0],a=t.nodes[1],n=e.source(),i=e.target();return wt(r,n)&&wt(a,i)||wt(a,n)&&wt(r,i)},Tt[ke.NODE_NEIGHBOR]=function(t,e){return wt(t.node,e)&&e.neighborhood().some(function(r){return r.isNode()&&wt(t.neighbor,r)})},Tt[ke.DIRECTED_EDGE]=function(t,e){return wt(t.source,e.source())&&wt(t.target,e.target())},Tt[ke.NODE_SOURCE]=function(t,e){return wt(t.source,e)&&e.outgoers().some(function(r){return r.isNode()&&wt(t.target,r)})},Tt[ke.NODE_TARGET]=function(t,e){return wt(t.target,e)&&e.incomers().some(function(r){return r.isNode()&&wt(t.source,r)})},Tt[ke.CHILD]=function(t,e){return wt(t.child,e)&&wt(t.parent,e.parent())},Tt[ke.PARENT]=function(t,e){return wt(t.parent,e)&&e.children().some(function(r){return wt(t.child,r)})},Tt[ke.DESCENDANT]=function(t,e){return wt(t.descendant,e)&&e.ancestors().some(function(r){return wt(t.ancestor,r)})},Tt[ke.ANCESTOR]=function(t,e){return wt(t.ancestor,e)&&e.descendants().some(function(r){return wt(t.descendant,r)})},Tt[ke.COMPOUND_SPLIT]=function(t,e){return wt(t.subject,e)&&wt(t.left,e)&&wt(t.right,e)},Tt[ke.TRUE]=function(){return!0},Tt[ke.COLLECTION]=function(t,e){var r=t.value;return r.has(e)},Tt[ke.FILTER]=function(t,e){var r=t.value;return r(e)};var Zc=function(e){var r=this;if(r.length===1&&r[0].checks.length===1&&r[0].checks[0].type===ke.ID)return e.getElementById(r[0].checks[0].value).collection();var a=function(i){for(var o=0;o<r.length;o++){var s=r[o];if(wt(s,i))return!0}return!1};return r.text()==null&&(a=function(){return!0}),e.filter(a)},Qc=function(e){for(var r=this,a=0;a<r.length;a++){var n=r[a];if(wt(n,e))return!0}return!1},Jc={matches:Qc,filter:Zc},Sr=function(e){this.inputText=e,this.currentSubject=null,this.compoundCount=0,this.edgeCount=0,this.length=0,e==null||ee(e)&&e.match(/^\s*$/)||(pe(e)?this.addQuery({checks:[{type:ke.COLLECTION,value:e.collection()}]}):H(e)?this.addQuery({checks:[{type:ke.FILTER,value:e}]}):ee(e)?this.parse(e)||(this.invalid=!0):xt("A selector must be created from a string; found "))},Lr=Sr.prototype;[Xc,Jc].forEach(function(t){return He(Lr,t)}),Lr.text=function(){return this.inputText},Lr.size=function(){return this.length},Lr.eq=function(t){return this[t]},Lr.sameText=function(t){return!this.invalid&&!t.invalid&&this.text()===t.text()},Lr.addQuery=function(t){this[this.length++]=t},Lr.selector=Lr.toString;var Ar={allAre:function(e){var r=new Sr(e);return this.every(function(a){return r.matches(a)})},is:function(e){var r=new Sr(e);return this.some(function(a){return r.matches(a)})},some:function(e,r){for(var a=0;a<this.length;a++){var n=r?e.apply(r,[this[a],a,this]):e(this[a],a,this);if(n)return!0}return!1},every:function(e,r){for(var a=0;a<this.length;a++){var n=r?e.apply(r,[this[a],a,this]):e(this[a],a,this);if(!n)return!1}return!0},same:function(e){if(this===e)return!0;e=this.cy().collection(e);var r=this.length,a=e.length;return r!==a?!1:r===1?this[0]===e[0]:this.every(function(n){return e.hasElementWithId(n.id())})},anySame:function(e){return e=this.cy().collection(e),this.some(function(r){return e.hasElementWithId(r.id())})},allAreNeighbors:function(e){e=this.cy().collection(e);var r=this.neighborhood();return e.every(function(a){return r.hasElementWithId(a.id())})},contains:function(e){e=this.cy().collection(e);var r=this;return e.every(function(a){return r.hasElementWithId(a.id())})}};Ar.allAreNeighbours=Ar.allAreNeighbors,Ar.has=Ar.contains,Ar.equal=Ar.equals=Ar.same;var Zt=function(e,r){return function(n,i,o,s){var u=n,l=this,v;if(u==null?v="":pe(u)&&u.length===1&&(v=u.id()),l.length===1&&v){var f=l[0]._private,h=f.traversalCache=f.traversalCache||{},d=h[r]=h[r]||[],c=Pr(v),y=d[c];return y||(d[c]=e.call(l,n,i,o,s))}else return e.call(l,n,i,o,s)}},va={parent:function(e){var r=[];if(this.length===1){var a=this[0]._private.parent;if(a)return a}for(var n=0;n<this.length;n++){var i=this[n],o=i._private.parent;o&&r.push(o)}return this.spawn(r,!0).filter(e)},parents:function(e){for(var r=[],a=this.parent();a.nonempty();){for(var n=0;n<a.length;n++){var i=a[n];r.push(i)}a=a.parent()}return this.spawn(r,!0).filter(e)},commonAncestors:function(e){for(var r,a=0;a<this.length;a++){var n=this[a],i=n.parents();r=r||i,r=r.intersect(i)}return r.filter(e)},orphans:function(e){return this.stdFilter(function(r){return r.isOrphan()}).filter(e)},nonorphans:function(e){return this.stdFilter(function(r){return r.isChild()}).filter(e)},children:Zt(function(t){for(var e=[],r=0;r<this.length;r++)for(var a=this[r],n=a._private.children,i=0;i<n.length;i++)e.push(n[i]);return this.spawn(e,!0).filter(t)},"children"),siblings:function(e){return this.parent().children().not(this).filter(e)},isParent:function(){var e=this[0];if(e)return e.isNode()&&e._private.children.length!==0},isChildless:function(){var e=this[0];if(e)return e.isNode()&&e._private.children.length===0},isChild:function(){var e=this[0];if(e)return e.isNode()&&e._private.parent!=null},isOrphan:function(){var e=this[0];if(e)return e.isNode()&&e._private.parent==null},descendants:function(e){var r=[];function a(n){for(var i=0;i<n.length;i++){var o=n[i];r.push(o),o.children().nonempty()&&a(o.children())}}return a(this.children()),this.spawn(r,!0).filter(e)}};function Si(t,e,r,a){for(var n=[],i=new Jr,o=t.cy(),s=o.hasCompoundNodes(),u=0;u<t.length;u++){var l=t[u];r?n.push(l):s&&a(n,i,l)}for(;n.length>0;){var v=n.shift();e(v),i.add(v.id()),s&&a(n,i,v)}return t}function fs(t,e,r){if(r.isParent())for(var a=r._private.children,n=0;n<a.length;n++){var i=a[n];e.has(i.id())||t.push(i)}}va.forEachDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Si(this,t,e,fs)};function hs(t,e,r){if(r.isChild()){var a=r._private.parent;e.has(a.id())||t.push(a)}}va.forEachUp=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Si(this,t,e,hs)};function jc(t,e,r){hs(t,e,r),fs(t,e,r)}va.forEachUpAndDown=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Si(this,t,e,jc)},va.ancestors=va.parents;var Va,cs;Va=cs={data:ct.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:ct.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:ct.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ct.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:ct.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:ct.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}},Va.attr=Va.data,Va.removeAttr=Va.removeData;var ed=cs,An={};function Li(t){return function(e){var r=this;if(e===void 0&&(e=!0),r.length!==0)if(r.isNode()&&!r.removed()){for(var a=0,n=r[0],i=n._private.edges,o=0;o<i.length;o++){var s=i[o];!e&&s.isLoop()||(a+=t(n,s))}return a}else return}}He(An,{degree:Li(function(t,e){return e.source().same(e.target())?2:1}),indegree:Li(function(t,e){return e.target().same(t)?1:0}),outdegree:Li(function(t,e){return e.source().same(t)?1:0})});function fa(t,e){return function(r){for(var a,n=this.nodes(),i=0;i<n.length;i++){var o=n[i],s=o[t](r);s!==void 0&&(a===void 0||e(s,a))&&(a=s)}return a}}He(An,{minDegree:fa("degree",function(t,e){return t<e}),maxDegree:fa("degree",function(t,e){return t>e}),minIndegree:fa("indegree",function(t,e){return t<e}),maxIndegree:fa("indegree",function(t,e){return t>e}),minOutdegree:fa("outdegree",function(t,e){return t<e}),maxOutdegree:fa("outdegree",function(t,e){return t>e})}),He(An,{totalDegree:function(e){for(var r=0,a=this.nodes(),n=0;n<a.length;n++)r+=a[n].degree(e);return r}});var tr,ds,gs=function(e,r,a){for(var n=0;n<e.length;n++){var i=e[n];if(!i.locked()){var o=i._private.position,s={x:r.x!=null?r.x-o.x:0,y:r.y!=null?r.y-o.y:0};i.isParent()&&!(s.x===0&&s.y===0)&&i.children().shift(s,a),i.dirtyBoundingBoxCache()}}},ps={field:"position",bindingEvent:"position",allowBinding:!0,allowSetting:!0,settingEvent:"position",settingTriggersEvent:!0,triggerFnName:"emitAndNotify",allowGetting:!0,validKeys:["x","y"],beforeGet:function(e){e.updateCompoundBounds()},beforeSet:function(e,r){gs(e,r,!1)},onSet:function(e){e.dirtyCompoundBoundsCache()},canSet:function(e){return!e.locked()}};tr=ds={position:ct.data(ps),silentPosition:ct.data(He({},ps,{allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!1,beforeSet:function(e,r){gs(e,r,!0)},onSet:function(e){e.dirtyCompoundBoundsCache()}})),positions:function(e,r){if(S(e))r?this.silentPosition(e):this.position(e);else if(H(e)){var a=e,n=this.cy();n.startBatch();for(var i=0;i<this.length;i++){var o=this[i],s=void 0;(s=a(o,i))&&(r?o.silentPosition(s):o.position(s))}n.endBatch()}return this},silentPositions:function(e){return this.positions(e,!0)},shift:function(e,r,a){var n;if(S(e)?(n={x:R(e.x)?e.x:0,y:R(e.y)?e.y:0},a=r):ee(e)&&R(r)&&(n={x:0,y:0},n[e]=r),n!=null){var i=this.cy();i.startBatch();for(var o=0;o<this.length;o++){var s=this[o];if(!(i.hasCompoundNodes()&&s.isChild()&&s.ancestors().anySame(this))){var u=s.position(),l={x:u.x+n.x,y:u.y+n.y};a?s.silentPosition(l):s.position(l)}}i.endBatch()}return this},silentShift:function(e,r){return S(e)?this.shift(e,!0):ee(e)&&R(r)&&this.shift(e,r,!0),this},renderedPosition:function(e,r){var a=this[0],n=this.cy(),i=n.zoom(),o=n.pan(),s=S(e)?e:void 0,u=s!==void 0||r!==void 0&&ee(e);if(a&&a.isNode())if(u)for(var l=0;l<this.length;l++){var v=this[l];r!==void 0?v.position(e,(r-o[e])/i):s!==void 0&&v.position(Eo(s,i,o))}else{var f=a.position();return s=hn(f,i,o),e===void 0?s:s[e]}else if(!u)return;return this},relativePosition:function(e,r){var a=this[0],n=this.cy(),i=S(e)?e:void 0,o=i!==void 0||r!==void 0&&ee(e),s=n.hasCompoundNodes();if(a&&a.isNode())if(o)for(var u=0;u<this.length;u++){var l=this[u],v=s?l.parent():null,f=v&&v.length>0,h=f;f&&(v=v[0]);var d=h?v.position():{x:0,y:0};r!==void 0?l.position(e,r+d[e]):i!==void 0&&l.position({x:i.x+d.x,y:i.y+d.y})}else{var c=a.position(),y=s?a.parent():null,p=y&&y.length>0,g=p;p&&(y=y[0]);var m=g?y.position():{x:0,y:0};return i={x:c.x-m.x,y:c.y-m.y},e===void 0?i:i[e]}else if(!o)return;return this}},tr.modelPosition=tr.point=tr.position,tr.modelPositions=tr.points=tr.positions,tr.renderedPoint=tr.renderedPosition,tr.relativePoint=tr.relativePosition;var td=ds,ha,Or;ha=Or={},Or.renderedBoundingBox=function(t){var e=this.boundingBox(t),r=this.cy(),a=r.zoom(),n=r.pan(),i=e.x1*a+n.x,o=e.x2*a+n.x,s=e.y1*a+n.y,u=e.y2*a+n.y;return{x1:i,x2:o,y1:s,y2:u,w:o-i,h:u-s}},Or.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();return!e.styleEnabled()||!e.hasCompoundNodes()?this:(this.forEachUp(function(r){if(r.isParent()){var a=r._private;a.compoundBoundsClean=!1,a.bbCache=null,t||r.emitAndNotify("bounds")}}),this)},Or.updateCompoundBounds=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function r(o){if(!o.isParent())return;var s=o._private,u=o.children(),l=o.pstyle("compound-sizing-wrt-labels").value==="include",v={width:{val:o.pstyle("min-width").pfValue,left:o.pstyle("min-width-bias-left"),right:o.pstyle("min-width-bias-right")},height:{val:o.pstyle("min-height").pfValue,top:o.pstyle("min-height-bias-top"),bottom:o.pstyle("min-height-bias-bottom")}},f=u.boundingBox({includeLabels:l,includeOverlays:!1,useCache:!1}),h=s.position;(f.w===0||f.h===0)&&(f={w:o.pstyle("width").pfValue,h:o.pstyle("height").pfValue},f.x1=h.x-f.w/2,f.x2=h.x+f.w/2,f.y1=h.y-f.h/2,f.y2=h.y+f.h/2);function d(D,F,G){var I=0,X=0,B=F+G;return D>0&&B>0&&(I=F/B*D,X=G/B*D),{biasDiff:I,biasComplementDiff:X}}function c(D,F,G,I){if(G.units==="%")switch(I){case"width":return D>0?G.pfValue*D:0;case"height":return F>0?G.pfValue*F:0;case"average":return D>0&&F>0?G.pfValue*(D+F)/2:0;case"min":return D>0&&F>0?D>F?G.pfValue*F:G.pfValue*D:0;case"max":return D>0&&F>0?D>F?G.pfValue*D:G.pfValue*F:0;default:return 0}else return G.units==="px"?G.pfValue:0}var y=v.width.left.value;v.width.left.units==="px"&&v.width.val>0&&(y=y*100/v.width.val);var p=v.width.right.value;v.width.right.units==="px"&&v.width.val>0&&(p=p*100/v.width.val);var g=v.height.top.value;v.height.top.units==="px"&&v.height.val>0&&(g=g*100/v.height.val);var m=v.height.bottom.value;v.height.bottom.units==="px"&&v.height.val>0&&(m=m*100/v.height.val);var b=d(v.width.val-f.w,y,p),E=b.biasDiff,M=b.biasComplementDiff,L=d(v.height.val-f.h,g,m),w=L.biasDiff,k=L.biasComplementDiff;s.autoPadding=c(f.w,f.h,o.pstyle("padding"),o.pstyle("padding-relative-to").value),s.autoWidth=Math.max(f.w,v.width.val),h.x=(-E+f.x1+f.x2+M)/2,s.autoHeight=Math.max(f.h,v.height.val),h.y=(-w+f.y1+f.y2+k)/2}for(var a=0;a<this.length;a++){var n=this[a],i=n._private;(!i.compoundBoundsClean||t)&&(r(n),e.batching()||(i.compoundBoundsClean=!0))}return this};var Qt=function(e){return e===1/0||e===-1/0?0:e},rr=function(e,r,a,n,i){n-r===0||i-a===0||r==null||a==null||n==null||i==null||(e.x1=r<e.x1?r:e.x1,e.x2=n>e.x2?n:e.x2,e.y1=a<e.y1?a:e.y1,e.y2=i>e.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},Vr=function(e,r){return r==null?e:rr(e,r.x1,r.y1,r.x2,r.y2)},$a=function(e,r,a){return er(e,r,a)},On=function(e,r,a){if(!r.cy().headless()){var n=r._private,i=n.rstyle,o=i.arrowWidth/2,s=r.pstyle(a+"-arrow-shape").value,u,l;if(s!=="none"){a==="source"?(u=i.srcX,l=i.srcY):a==="target"?(u=i.tgtX,l=i.tgtY):(u=i.midX,l=i.midY);var v=n.arrowBounds=n.arrowBounds||{},f=v[a]=v[a]||{};f.x1=u-o,f.y1=l-o,f.x2=u+o,f.y2=l+o,f.w=f.x2-f.x1,f.h=f.y2-f.y1,dn(f,1),rr(e,f.x1,f.y1,f.x2,f.y2)}}},Ai=function(e,r,a){if(!r.cy().headless()){var n;a?n=a+"-":n="";var i=r._private,o=i.rstyle,s=r.pstyle(n+"label").strValue;if(s){var u=r.pstyle("text-halign"),l=r.pstyle("text-valign"),v=$a(o,"labelWidth",a),f=$a(o,"labelHeight",a),h=$a(o,"labelX",a),d=$a(o,"labelY",a),c=r.pstyle(n+"text-margin-x").pfValue,y=r.pstyle(n+"text-margin-y").pfValue,p=r.isEdge(),g=r.pstyle(n+"text-rotation"),m=r.pstyle("text-outline-width").pfValue,b=r.pstyle("text-border-width").pfValue,E=b/2,M=r.pstyle("text-background-padding").pfValue,L=2,w=f,k=v,D=k/2,F=w/2,G,I,X,B;if(p)G=h-D,I=h+D,X=d-F,B=d+F;else{switch(u.value){case"left":G=h-k,I=h;break;case"center":G=h-D,I=h+D;break;case"right":G=h,I=h+k;break}switch(l.value){case"top":X=d-w,B=d;break;case"center":X=d-F,B=d+F;break;case"bottom":X=d,B=d+w;break}}G+=c-Math.max(m,E)-M-L,I+=c+Math.max(m,E)+M+L,X+=y-Math.max(m,E)-M-L,B+=y+Math.max(m,E)+M+L;var re=a||"main",K=i.labelBounds,W=K[re]=K[re]||{};W.x1=G,W.y1=X,W.x2=I,W.y2=B,W.w=I-G,W.h=B-X;var ae=p&&g.strValue==="autorotate",ue=g.pfValue!=null&&g.pfValue!==0;if(ae||ue){var me=ae?$a(i.rstyle,"labelAngle",a):g.pfValue,ie=Math.cos(me),ge=Math.sin(me),Ee=(G+I)/2,Ce=(X+B)/2;if(!p){switch(u.value){case"left":Ee=I;break;case"right":Ee=G;break}switch(l.value){case"top":Ce=B;break;case"bottom":Ce=X;break}}var we=function(Xe,Ie){return Xe=Xe-Ee,Ie=Ie-Ce,{x:Xe*ie-Ie*ge+Ee,y:Xe*ge+Ie*ie+Ce}},De=we(G,X),oe=we(G,B),xe=we(I,X),Le=we(I,B);G=Math.min(De.x,oe.x,xe.x,Le.x),I=Math.max(De.x,oe.x,xe.x,Le.x),X=Math.min(De.y,oe.y,xe.y,Le.y),B=Math.max(De.y,oe.y,xe.y,Le.y)}var Se=re+"Rot",Oe=K[Se]=K[Se]||{};Oe.x1=G,Oe.y1=X,Oe.x2=I,Oe.y2=B,Oe.w=I-G,Oe.h=B-X,rr(e,G,X,I,B),rr(i.labelBounds.all,G,X,I,B)}return e}},rd=function(e,r){if(!r.cy().headless()){var a=r.pstyle("outline-opacity").value,n=r.pstyle("outline-width").value;if(a>0&&n>0){var i=r.pstyle("outline-offset").value,o=r.pstyle("shape").value,s=n+i,u=(e.w+s*2)/e.w,l=(e.h+s*2)/e.h,v=0,f=0;["diamond","pentagon","round-triangle"].includes(o)?(u=(e.w+s*2.4)/e.w,f=-s/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(o)?u=(e.w+s*2.4)/e.w:o==="star"?(u=(e.w+s*2.8)/e.w,l=(e.h+s*2.6)/e.h,f=-s/3.8):o==="triangle"?(u=(e.w+s*2.8)/e.w,l=(e.h+s*2.4)/e.h,f=-s/1.4):o==="vee"&&(u=(e.w+s*4.4)/e.w,l=(e.h+s*3.8)/e.h,f=-s*.5);var h=e.h*l-e.h,d=e.w*u-e.w;if(gn(e,[Math.ceil(h/2),Math.ceil(d/2)]),v!=0||f!==0){var c=xv(e,v,f);xo(e,c)}}}},ad=function(e,r){var a=e._private.cy,n=a.styleEnabled(),i=a.headless(),o=Yt(),s=e._private,u=e.isNode(),l=e.isEdge(),v,f,h,d,c,y,p=s.rstyle,g=u&&n?e.pstyle("bounds-expansion").pfValue:[0],m=function($e){return $e.pstyle("display").value!=="none"},b=!n||m(e)&&(!l||m(e.source())&&m(e.target()));if(b){var E=0,M=0;n&&r.includeOverlays&&(E=e.pstyle("overlay-opacity").value,E!==0&&(M=e.pstyle("overlay-padding").value));var L=0,w=0;n&&r.includeUnderlays&&(L=e.pstyle("underlay-opacity").value,L!==0&&(w=e.pstyle("underlay-padding").value));var k=Math.max(M,w),D=0,F=0;if(n&&(D=e.pstyle("width").pfValue,F=D/2),u&&r.includeNodes){var G=e.position();c=G.x,y=G.y;var I=e.outerWidth(),X=I/2,B=e.outerHeight(),re=B/2;v=c-X,f=c+X,h=y-re,d=y+re,rr(o,v,h,f,d),n&&r.includeOutlines&&rd(o,e)}else if(l&&r.includeEdges)if(n&&!i){var K=e.pstyle("curve-style").strValue;if(v=Math.min(p.srcX,p.midX,p.tgtX),f=Math.max(p.srcX,p.midX,p.tgtX),h=Math.min(p.srcY,p.midY,p.tgtY),d=Math.max(p.srcY,p.midY,p.tgtY),v-=F,f+=F,h-=F,d+=F,rr(o,v,h,f,d),K==="haystack"){var W=p.haystackPts;if(W&&W.length===2){if(v=W[0].x,h=W[0].y,f=W[1].x,d=W[1].y,v>f){var ae=v;v=f,f=ae}if(h>d){var ue=h;h=d,d=ue}rr(o,v-F,h-F,f+F,d+F)}}else if(K==="bezier"||K==="unbundled-bezier"||K==="segments"||K==="taxi"){var me;switch(K){case"bezier":case"unbundled-bezier":me=p.bezierPts;break;case"segments":case"taxi":me=p.linePts;break}if(me!=null)for(var ie=0;ie<me.length;ie++){var ge=me[ie];v=ge.x-F,f=ge.x+F,h=ge.y-F,d=ge.y+F,rr(o,v,h,f,d)}}}else{var Ee=e.source(),Ce=Ee.position(),we=e.target(),De=we.position();if(v=Ce.x,f=De.x,h=Ce.y,d=De.y,v>f){var oe=v;v=f,f=oe}if(h>d){var xe=h;h=d,d=xe}v-=F,f+=F,h-=F,d+=F,rr(o,v,h,f,d)}if(n&&r.includeEdges&&l&&(On(o,e,"mid-source"),On(o,e,"mid-target"),On(o,e,"source"),On(o,e,"target")),n){var Le=e.pstyle("ghost").value==="yes";if(Le){var Se=e.pstyle("ghost-offset-x").pfValue,Oe=e.pstyle("ghost-offset-y").pfValue;rr(o,o.x1+Se,o.y1+Oe,o.x2+Se,o.y2+Oe)}}var Fe=s.bodyBounds=s.bodyBounds||{};To(Fe,o),gn(Fe,g),dn(Fe,1),n&&(v=o.x1,f=o.x2,h=o.y1,d=o.y2,rr(o,v-k,h-k,f+k,d+k));var Xe=s.overlayBounds=s.overlayBounds||{};To(Xe,o),gn(Xe,g),dn(Xe,1);var Ie=s.labelBounds=s.labelBounds||{};Ie.all!=null?wv(Ie.all):Ie.all=Yt(),n&&r.includeLabels&&(r.includeMainLabels&&Ai(o,e,null),l&&(r.includeSourceLabels&&Ai(o,e,"source"),r.includeTargetLabels&&Ai(o,e,"target")))}return o.x1=Qt(o.x1),o.y1=Qt(o.y1),o.x2=Qt(o.x2),o.y2=Qt(o.y2),o.w=Qt(o.x2-o.x1),o.h=Qt(o.y2-o.y1),o.w>0&&o.h>0&&b&&(gn(o,g),dn(o,1)),o},ys=function(e){var r=0,a=function(o){return(o?1:0)<<r++},n=0;return n+=a(e.incudeNodes),n+=a(e.includeEdges),n+=a(e.includeLabels),n+=a(e.includeMainLabels),n+=a(e.includeSourceLabels),n+=a(e.includeTargetLabels),n+=a(e.includeOverlays),n+=a(e.includeOutlines),n},ms=function(e){if(e.isEdge()){var r=e.source().position(),a=e.target().position(),n=function(o){return Math.round(o)};return Uu([n(r.x),n(r.y),n(a.x),n(a.y)])}else return 0},bs=function(e,r){var a=e._private,n,i=e.isEdge(),o=r==null?Es:ys(r),s=o===Es,u=ms(e),l=a.bbCachePosKey===u,v=r.useCache&&l,f=function(y){return y._private.bbCache==null||y._private.styleDirty},h=!v||f(e)||i&&f(e.source())||f(e.target());if(h?(l||e.recalculateRenderedStyle(v),n=ad(e,Ua),a.bbCache=n,a.bbCachePosKey=u):n=a.bbCache,!s){var d=e.isNode();n=Yt(),(r.includeNodes&&d||r.includeEdges&&!d)&&(r.includeOverlays?Vr(n,a.overlayBounds):Vr(n,a.bodyBounds)),r.includeLabels&&(r.includeMainLabels&&(!i||r.includeSourceLabels&&r.includeTargetLabels)?Vr(n,a.labelBounds.all):(r.includeMainLabels&&Vr(n,a.labelBounds.mainRot),r.includeSourceLabels&&Vr(n,a.labelBounds.sourceRot),r.includeTargetLabels&&Vr(n,a.labelBounds.targetRot))),n.w=n.x2-n.x1,n.h=n.y2-n.y1}return n},Ua={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,includeOutlines:!0,useCache:!0},Es=ys(Ua),ws=At(Ua);Or.boundingBox=function(t){var e;if(this.length===1&&this[0]._private.bbCache!=null&&!this[0]._private.styleDirty&&(t===void 0||t.useCache===void 0||t.useCache===!0))t===void 0?t=Ua:t=ws(t),e=bs(this[0],t);else{e=Yt(),t=t||Ua;var r=ws(t),a=this,n=a.cy(),i=n.styleEnabled();if(i)for(var o=0;o<a.length;o++){var s=a[o],u=s._private,l=ms(s),v=u.bbCachePosKey===l,f=r.useCache&&v&&!u.styleDirty;s.recalculateRenderedStyle(f)}this.updateCompoundBounds(!t.useCache);for(var h=0;h<a.length;h++){var d=a[h];Vr(e,bs(d,r))}}return e.x1=Qt(e.x1),e.y1=Qt(e.y1),e.x2=Qt(e.x2),e.y2=Qt(e.y2),e.w=Qt(e.x2-e.x1),e.h=Qt(e.y2-e.y1),e},Or.dirtyBoundingBoxCache=function(){for(var t=0;t<this.length;t++){var e=this[t]._private;e.bbCache=null,e.bbCachePosKey=null,e.bodyBounds=null,e.overlayBounds=null,e.labelBounds.all=null,e.labelBounds.source=null,e.labelBounds.target=null,e.labelBounds.main=null,e.labelBounds.sourceRot=null,e.labelBounds.targetRot=null,e.labelBounds.mainRot=null,e.arrowBounds.source=null,e.arrowBounds.target=null,e.arrowBounds["mid-source"]=null,e.arrowBounds["mid-target"]=null}return this.emitAndNotify("bounds"),this},Or.boundingBoxAt=function(t){var e=this.nodes(),r=this.cy(),a=r.hasCompoundNodes(),n=r.collection();if(a&&(n=e.filter(function(l){return l.isParent()}),e=e.not(n)),S(t)){var i=t;t=function(){return i}}var o=function(v,f){return v._private.bbAtOldPos=t(v,f)},s=function(v){return v._private.bbAtOldPos};r.startBatch(),e.forEach(o).silentPositions(t),a&&(n.dirtyCompoundBoundsCache(),n.dirtyBoundingBoxCache(),n.updateCompoundBounds(!0));var u=Ev(this.boundingBox({useCache:!1}));return e.silentPositions(s),a&&(n.dirtyCompoundBoundsCache(),n.dirtyBoundingBoxCache(),n.updateCompoundBounds(!0)),r.endBatch(),u},ha.boundingbox=ha.bb=ha.boundingBox,ha.renderedBoundingbox=ha.renderedBoundingBox;var nd=Or,_a,Ya;_a=Ya={};var xs=function(e){e.uppercaseName=Pt(e.name),e.autoName="auto"+e.uppercaseName,e.labelName="label"+e.uppercaseName,e.outerName="outer"+e.uppercaseName,e.uppercaseOuterName=Pt(e.outerName),_a[e.name]=function(){var a=this[0],n=a._private,i=n.cy,o=i._private.styleEnabled;if(a)if(o){if(a.isParent())return a.updateCompoundBounds(),n[e.autoName]||0;var s=a.pstyle(e.name);switch(s.strValue){case"label":return a.recalculateRenderedStyle(),n.rstyle[e.labelName]||0;default:return s.pfValue}}else return 1},_a["outer"+e.uppercaseName]=function(){var a=this[0],n=a._private,i=n.cy,o=i._private.styleEnabled;if(a)if(o){var s=a[e.name](),u=a.pstyle("border-width").pfValue,l=2*a.padding();return s+u+l}else return 1},_a["rendered"+e.uppercaseName]=function(){var a=this[0];if(a){var n=a[e.name]();return n*this.cy().zoom()}},_a["rendered"+e.uppercaseOuterName]=function(){var a=this[0];if(a){var n=a[e.outerName]();return n*this.cy().zoom()}}};xs({name:"width"}),xs({name:"height"}),Ya.padding=function(){var t=this[0],e=t._private;return t.isParent()?(t.updateCompoundBounds(),e.autoPadding!==void 0?e.autoPadding:t.pstyle("padding").pfValue):t.pstyle("padding").pfValue},Ya.paddedHeight=function(){var t=this[0];return t.height()+2*t.padding()},Ya.paddedWidth=function(){var t=this[0];return t.width()+2*t.padding()};var id=Ya,od=function(e,r){if(e.isEdge())return r(e)},sd=function(e,r){if(e.isEdge()){var a=e.cy();return hn(r(e),a.zoom(),a.pan())}},ld=function(e,r){if(e.isEdge()){var a=e.cy(),n=a.pan(),i=a.zoom();return r(e).map(function(o){return hn(o,i,n)})}},ud=function(e){return e.renderer().getControlPoints(e)},vd=function(e){return e.renderer().getSegmentPoints(e)},fd=function(e){return e.renderer().getSourceEndpoint(e)},hd=function(e){return e.renderer().getTargetEndpoint(e)},cd=function(e){return e.renderer().getEdgeMidpoint(e)},Ts={controlPoints:{get:ud,mult:!0},segmentPoints:{get:vd,mult:!0},sourceEndpoint:{get:fd},targetEndpoint:{get:hd},midpoint:{get:cd}},dd=function(e){return"rendered"+e[0].toUpperCase()+e.substr(1)},gd=Object.keys(Ts).reduce(function(t,e){var r=Ts[e],a=dd(e);return t[e]=function(){return od(this,r.get)},r.mult?t[a]=function(){return ld(this,r.get)}:t[a]=function(){return sd(this,r.get)},t},{}),pd=He({},td,nd,id,gd);/*!
Event object based on jQuery events, MIT license
https://jquery.org/license/
https://tldrlegal.com/license/mit-license
https://github.com/jquery/jquery/blob/master/src/event.js
*/var Cs=function(e,r){this.recycle(e,r)};function Ha(){return!1}function Nn(){return!0}Cs.prototype={instanceString:function(){return"event"},recycle:function(e,r){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=Ha,e!=null&&e.preventDefault?(this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?Nn:Ha):e!=null&&e.type?r=e:this.type=e,r!=null&&(this.originalEvent=r.originalEvent,this.type=r.type!=null?r.type:this.type,this.cy=r.cy,this.target=r.target,this.position=r.position,this.renderedPosition=r.renderedPosition,this.namespace=r.namespace,this.layout=r.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var a=this.position,n=this.cy.zoom(),i=this.cy.pan();this.renderedPosition={x:a.x*n+i.x,y:a.y*n+i.y}}this.timeStamp=e&&e.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=Nn;var e=this.originalEvent;e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){this.isPropagationStopped=Nn;var e=this.originalEvent;e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Nn,this.stopPropagation()},isDefaultPrevented:Ha,isPropagationStopped:Ha,isImmediatePropagationStopped:Ha};var Ds=/^([^.]+)(\.(?:[^.]+))?$/,yd=".*",Ss={qualifierCompare:function(e,r){return e===r},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(e){return e},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},Ls=Object.keys(Ss),md={};function In(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:md,e=arguments.length>1?arguments[1]:void 0,r=0;r<Ls.length;r++){var a=Ls[r];this[a]=t[a]||Ss[a]}this.context=e||this.context,this.listeners=[],this.emitting=0}var Nr=In.prototype,As=function(e,r,a,n,i,o,s){H(n)&&(i=n,n=null),s&&(o==null?o=s:o=He({},o,s));for(var u=te(a)?a:a.split(/\s+/),l=0;l<u.length;l++){var v=u[l];if(!Re(v)){var f=v.match(Ds);if(f){var h=f[1],d=f[2]?f[2]:null,c=r(e,v,h,d,n,i,o);if(c===!1)break}}}},Os=function(e,r){return e.addEventFields(e.context,r),new Cs(r.type,r)},bd=function(e,r,a){if(dt(a)){r(e,a);return}else if(S(a)){r(e,Os(e,a));return}for(var n=te(a)?a:a.split(/\s+/),i=0;i<n.length;i++){var o=n[i];if(!Re(o)){var s=o.match(Ds);if(s){var u=s[1],l=s[2]?s[2]:null,v=Os(e,{type:u,namespace:l,target:e.context});r(e,v)}}}};Nr.on=Nr.addListener=function(t,e,r,a,n){return As(this,function(i,o,s,u,l,v,f){H(v)&&i.listeners.push({event:o,callback:v,type:s,namespace:u,qualifier:l,conf:f})},t,e,r,a,n),this},Nr.one=function(t,e,r,a){return this.on(t,e,r,a,{one:!0})},Nr.removeListener=Nr.off=function(t,e,r,a){var n=this;this.emitting!==0&&(this.listeners=Wu(this.listeners));for(var i=this.listeners,o=function(l){var v=i[l];As(n,function(f,h,d,c,y,p){if((v.type===d||t==="*")&&(!c&&v.namespace!==".*"||v.namespace===c)&&(!y||f.qualifierCompare(v.qualifier,y))&&(!p||v.callback===p))return i.splice(l,1),!1},t,e,r,a)},s=i.length-1;s>=0;s--)o(s);return this},Nr.removeAllListeners=function(){return this.removeListener("*")},Nr.emit=Nr.trigger=function(t,e,r){var a=this.listeners,n=a.length;return this.emitting++,te(e)||(e=[e]),bd(this,function(i,o){r!=null&&(a=[{event:o.event,type:o.type,namespace:o.namespace,callback:r}],n=a.length);for(var s=function(v){var f=a[v];if(f.type===o.type&&(!f.namespace||f.namespace===o.namespace||f.namespace===yd)&&i.eventMatches(i.context,f,o)){var h=[o];e!=null&&Ku(h,e),i.beforeEmit(i.context,f,o),f.conf&&f.conf.one&&(i.listeners=i.listeners.filter(function(y){return y!==f}));var d=i.callbackContext(i.context,f,o),c=f.callback.apply(d,h);i.afterEmit(i.context,f,o),c===!1&&(o.stopPropagation(),o.preventDefault())}},u=0;u<n;u++)s(u);i.bubble(i.context)&&!o.isPropagationStopped()&&i.parent(i.context).emit(o,e)},t),this.emitting--,this};var Ed={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,a){var n=r.qualifier;return n!=null?e!==a.target&&Ae(a.target)&&n.matches(a.target):!0},addEventFields:function(e,r){r.cy=e.cy(),r.target=e},callbackContext:function(e,r,a){return r.qualifier!=null?a.target:e},beforeEmit:function(e,r){r.conf&&r.conf.once&&r.conf.onceCollection.removeListener(r.event,r.qualifier,r.callback)},bubble:function(){return!0},parent:function(e){return e.isChild()?e.parent():e.cy()}},Mn=function(e){return ee(e)?new Sr(e):e},Ns={createEmitter:function(){for(var e=0;e<this.length;e++){var r=this[e],a=r._private;a.emitter||(a.emitter=new In(Ed,r))}return this},emitter:function(){return this._private.emitter},on:function(e,r,a){for(var n=Mn(r),i=0;i<this.length;i++){var o=this[i];o.emitter().on(e,n,a)}return this},removeListener:function(e,r,a){for(var n=Mn(r),i=0;i<this.length;i++){var o=this[i];o.emitter().removeListener(e,n,a)}return this},removeAllListeners:function(){for(var e=0;e<this.length;e++){var r=this[e];r.emitter().removeAllListeners()}return this},one:function(e,r,a){for(var n=Mn(r),i=0;i<this.length;i++){var o=this[i];o.emitter().one(e,n,a)}return this},once:function(e,r,a){for(var n=Mn(r),i=0;i<this.length;i++){var o=this[i];o.emitter().on(e,n,a,{once:!0,onceCollection:this})}},emit:function(e,r){for(var a=0;a<this.length;a++){var n=this[a];n.emitter().emit(e,r)}return this},emitAndNotify:function(e,r){if(this.length!==0)return this.cy().notify(e,this),this.emit(e,r),this}};ct.eventAliasesOn(Ns);var Is={nodes:function(e){return this.filter(function(r){return r.isNode()}).filter(e)},edges:function(e){return this.filter(function(r){return r.isEdge()}).filter(e)},byGroup:function(){for(var e=this.spawn(),r=this.spawn(),a=0;a<this.length;a++){var n=this[a];n.isNode()?e.push(n):r.push(n)}return{nodes:e,edges:r}},filter:function(e,r){if(e===void 0)return this;if(ee(e)||pe(e))return new Sr(e).filter(this);if(H(e)){for(var a=this.spawn(),n=this,i=0;i<n.length;i++){var o=n[i],s=r?e.apply(r,[o,i,n]):e(o,i,n);s&&a.push(o)}return a}return this.spawn()},not:function(e){if(e){ee(e)&&(e=this.filter(e));for(var r=this.spawn(),a=0;a<this.length;a++){var n=this[a],i=e.has(n);i||r.push(n)}return r}else return this},absoluteComplement:function(){var e=this.cy();return e.mutableElements().not(this)},intersect:function(e){if(ee(e)){var r=e;return this.filter(r)}for(var a=this.spawn(),n=this,i=e,o=this.length<e.length,s=o?n:i,u=o?i:n,l=0;l<s.length;l++){var v=s[l];u.has(v)&&a.push(v)}return a},xor:function(e){var r=this._private.cy;ee(e)&&(e=r.$(e));var a=this.spawn(),n=this,i=e,o=function(u,l){for(var v=0;v<u.length;v++){var f=u[v],h=f._private.data.id,d=l.hasElementWithId(h);d||a.push(f)}};return o(n,i),o(i,n),a},diff:function(e){var r=this._private.cy;ee(e)&&(e=r.$(e));var a=this.spawn(),n=this.spawn(),i=this.spawn(),o=this,s=e,u=function(v,f,h){for(var d=0;d<v.length;d++){var c=v[d],y=c._private.data.id,p=f.hasElementWithId(y);p?i.merge(c):h.push(c)}};return u(o,s,a),u(s,o,n),{left:a,right:n,both:i}},add:function(e){var r=this._private.cy;if(!e)return this;if(ee(e)){var a=e;e=r.mutableElements().filter(a)}for(var n=this.spawnSelf(),i=0;i<e.length;i++){var o=e[i],s=!this.has(o);s&&n.push(o)}return n},merge:function(e){var r=this._private,a=r.cy;if(!e)return this;if(e&&ee(e)){var n=e;e=a.mutableElements().filter(n)}for(var i=r.map,o=0;o<e.length;o++){var s=e[o],u=s._private.data.id,l=!i.has(u);if(l){var v=this.length++;this[v]=s,i.set(u,{ele:s,index:v})}}return this},unmergeAt:function(e){var r=this[e],a=r.id(),n=this._private,i=n.map;this[e]=void 0,i.delete(a);var o=e===this.length-1;if(this.length>1&&!o){var s=this.length-1,u=this[s],l=u._private.data.id;this[s]=void 0,this[e]=u,i.set(l,{ele:u,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var r=this._private,a=e._private.data.id,n=r.map,i=n.get(a);if(!i)return this;var o=i.index;return this.unmergeAt(o),this},unmerge:function(e){var r=this._private.cy;if(!e)return this;if(e&&ee(e)){var a=e;e=r.mutableElements().filter(a)}for(var n=0;n<e.length;n++)this.unmergeOne(e[n]);return this},unmergeBy:function(e){for(var r=this.length-1;r>=0;r--){var a=this[r];e(a)&&this.unmergeAt(r)}return this},map:function(e,r){for(var a=[],n=this,i=0;i<n.length;i++){var o=n[i],s=r?e.apply(r,[o,i,n]):e(o,i,n);a.push(s)}return a},reduce:function(e,r){for(var a=r,n=this,i=0;i<n.length;i++)a=e(a,n[i],i,n);return a},max:function(e,r){for(var a=-1/0,n,i=this,o=0;o<i.length;o++){var s=i[o],u=r?e.apply(r,[s,o,i]):e(s,o,i);u>a&&(a=u,n=s)}return{value:a,ele:n}},min:function(e,r){for(var a=1/0,n,i=this,o=0;o<i.length;o++){var s=i[o],u=r?e.apply(r,[s,o,i]):e(s,o,i);u<a&&(a=u,n=s)}return{value:a,ele:n}}},lt=Is;lt.u=lt["|"]=lt["+"]=lt.union=lt.or=lt.add,lt["\\"]=lt["!"]=lt["-"]=lt.difference=lt.relativeComplement=lt.subtract=lt.not,lt.n=lt["&"]=lt["."]=lt.and=lt.intersection=lt.intersect,lt["^"]=lt["(+)"]=lt["(-)"]=lt.symmetricDifference=lt.symdiff=lt.xor,lt.fnFilter=lt.filterFn=lt.stdFilter=lt.filter,lt.complement=lt.abscomp=lt.absoluteComplement;var wd={isNode:function(){return this.group()==="nodes"},isEdge:function(){return this.group()==="edges"},isLoop:function(){return this.isEdge()&&this.source()[0]===this.target()[0]},isSimple:function(){return this.isEdge()&&this.source()[0]!==this.target()[0]},group:function(){var e=this[0];if(e)return e._private.group}},Ms=function(e,r){var a=e.cy(),n=a.hasCompoundNodes();function i(v){var f=v.pstyle("z-compound-depth");return f.value==="auto"?n?v.zDepth():0:f.value==="bottom"?-1:f.value==="top"?ii:0}var o=i(e)-i(r);if(o!==0)return o;function s(v){var f=v.pstyle("z-index-compare");return f.value==="auto"&&v.isNode()?1:0}var u=s(e)-s(r);if(u!==0)return u;var l=e.pstyle("z-index").value-r.pstyle("z-index").value;return l!==0?l:e.poolIndex()-r.poolIndex()},Rn={forEach:function(e,r){if(H(e))for(var a=this.length,n=0;n<a;n++){var i=this[n],o=r?e.apply(r,[i,n,this]):e(i,n,this);if(o===!1)break}return this},toArray:function(){for(var e=[],r=0;r<this.length;r++)e.push(this[r]);return e},slice:function(e,r){var a=[],n=this.length;r==null&&(r=n),e==null&&(e=0),e<0&&(e=n+e),r<0&&(r=n+r);for(var i=e;i>=0&&i<r&&i<n;i++)a.push(this[i]);return this.spawn(a)},size:function(){return this.length},eq:function(e){return this[e]||this.spawn()},first:function(){return this[0]||this.spawn()},last:function(){return this[this.length-1]||this.spawn()},empty:function(){return this.length===0},nonempty:function(){return!this.empty()},sort:function(e){if(!H(e))return this;var r=this.toArray().sort(e);return this.spawn(r)},sortByZIndex:function(){return this.sort(Ms)},zDepth:function(){var e=this[0];if(e){var r=e._private,a=r.group;if(a==="nodes"){var n=r.data.parent?e.parents().size():0;return e.isParent()?n:ii-1}else{var i=r.source,o=r.target,s=i.zDepth(),u=o.zDepth();return Math.max(s,u,0)}}}};Rn.each=Rn.forEach;var xd=function(){var e="undefined",r=(typeof Symbol>"u"?"undefined":_(Symbol))!=e&&_(Symbol.iterator)!=e;r&&(Rn[Symbol.iterator]=function(){var a=this,n={value:void 0,done:!1},i=0,o=this.length;return T({next:function(){return i<o?n.value=a[i++]:(n.value=void 0,n.done=!0),n}},Symbol.iterator,function(){return this})})};xd();var Td=At({nodeDimensionsIncludeLabels:!1}),kn={layoutDimensions:function(e){e=Td(e);var r;if(!this.takesUpSpace())r={w:0,h:0};else if(e.nodeDimensionsIncludeLabels){var a=this.boundingBox();r={w:a.w,h:a.h}}else r={w:this.outerWidth(),h:this.outerHeight()};return(r.w===0||r.h===0)&&(r.w=r.h=1),r},layoutPositions:function(e,r,a){var n=this.nodes().filter(function(M){return!M.isParent()}),i=this.cy(),o=r.eles,s=function(L){return L.id()},u=it(a,s);e.emit({type:"layoutstart",layout:e}),e.animations=[];var l=function(L,w,k){var D={x:w.x1+w.w/2,y:w.y1+w.h/2},F={x:(k.x-D.x)*L,y:(k.y-D.y)*L};return{x:D.x+F.x,y:D.y+F.y}},v=r.spacingFactor&&r.spacingFactor!==1,f=function(){if(!v)return null;for(var L=Yt(),w=0;w<n.length;w++){var k=n[w],D=u(k,w);Tv(L,D.x,D.y)}return L},h=f(),d=it(function(M,L){var w=u(M,L);if(v){var k=Math.abs(r.spacingFactor);w=l(k,h,w)}return r.transform!=null&&(w=r.transform(M,w)),w},s);if(r.animate){for(var c=0;c<n.length;c++){var y=n[c],p=d(y,c),g=r.animateFilter==null||r.animateFilter(y,c);if(g){var m=y.animation({position:p,duration:r.animationDuration,easing:r.animationEasing});e.animations.push(m)}else y.position(p)}if(r.fit){var b=i.animation({fit:{boundingBox:o.boundingBoxAt(d),padding:r.padding},duration:r.animationDuration,easing:r.animationEasing});e.animations.push(b)}else if(r.zoom!==void 0&&r.pan!==void 0){var E=i.animation({zoom:r.zoom,pan:r.pan,duration:r.animationDuration,easing:r.animationEasing});e.animations.push(E)}e.animations.forEach(function(M){return M.play()}),e.one("layoutready",r.ready),e.emit({type:"layoutready",layout:e}),ia.all(e.animations.map(function(M){return M.promise()})).then(function(){e.one("layoutstop",r.stop),e.emit({type:"layoutstop",layout:e})})}else n.positions(d),r.fit&&i.fit(r.eles,r.padding),r.zoom!=null&&i.zoom(r.zoom),r.pan&&i.pan(r.pan),e.one("layoutready",r.ready),e.emit({type:"layoutready",layout:e}),e.one("layoutstop",r.stop),e.emit({type:"layoutstop",layout:e});return this},layout:function(e){var r=this.cy();return r.makeLayout(He({},e,{eles:this}))}};kn.createLayout=kn.makeLayout=kn.layout;function Rs(t,e,r){var a=r._private,n=a.styleCache=a.styleCache||[],i;return(i=n[t])!=null||(i=n[t]=e(r)),i}function Pn(t,e){return t=Pr(t),function(a){return Rs(t,e,a)}}function Bn(t,e){t=Pr(t);var r=function(n){return e.call(n)};return function(){var n=this[0];if(n)return Rs(t,r,n)}}var Ot={recalculateRenderedStyle:function(e){var r=this.cy(),a=r.renderer(),n=r.styleEnabled();return a&&n&&a.recalculateRenderedStyle(this,e),this},dirtyStyleCache:function(){var e=this.cy(),r=function(i){return i._private.styleCache=null};if(e.hasCompoundNodes()){var a;a=this.spawnSelf().merge(this.descendants()).merge(this.parents()),a.merge(a.connectedEdges()),a.forEach(r)}else this.forEach(function(n){r(n),n.connectedEdges().forEach(r)});return this},updateStyle:function(e){var r=this._private.cy;if(!r.styleEnabled())return this;if(r.batching()){var a=r._private.batchStyleEles;return a.merge(this),this}var n=r.hasCompoundNodes(),i=this;e=!!(e||e===void 0),n&&(i=this.spawnSelf().merge(this.descendants()).merge(this.parents()));var o=i;return e?o.emitAndNotify("style"):o.emit("style"),i.forEach(function(s){return s._private.styleDirty=!0}),this},cleanStyle:function(){var e=this.cy();if(e.styleEnabled())for(var r=0;r<this.length;r++){var a=this[r];a._private.styleDirty&&(a._private.styleDirty=!1,e.style().apply(a))}},parsedStyle:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a=this[0],n=a.cy();if(n.styleEnabled()&&a){this.cleanStyle();var i=a._private.style[e];return i??(r?n.style().getDefaultProperty(e):null)}},numericStyle:function(e){var r=this[0];if(r.cy().styleEnabled()&&r){var a=r.pstyle(e);return a.pfValue!==void 0?a.pfValue:a.value}},numericStyleUnits:function(e){var r=this[0];if(r.cy().styleEnabled()&&r)return r.pstyle(e).units},renderedStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var a=this[0];if(a)return r.style().getRenderedStyle(a,e)},style:function(e,r){var a=this.cy();if(!a.styleEnabled())return this;var n=!1,i=a.style();if(S(e)){var o=e;i.applyBypass(this,o,n),this.emitAndNotify("style")}else if(ee(e))if(r===void 0){var s=this[0];return s?i.getStylePropertyValue(s,e):void 0}else i.applyBypass(this,e,r,n),this.emitAndNotify("style");else if(e===void 0){var u=this[0];return u?i.getRawStyle(u):void 0}return this},removeStyle:function(e){var r=this.cy();if(!r.styleEnabled())return this;var a=!1,n=r.style(),i=this;if(e===void 0)for(var o=0;o<i.length;o++){var s=i[o];n.removeAllBypasses(s,a)}else{e=e.split(/\s+/);for(var u=0;u<i.length;u++){var l=i[u];n.removeBypasses(l,e,a)}}return this.emitAndNotify("style"),this},show:function(){return this.css("display","element"),this},hide:function(){return this.css("display","none"),this},effectiveOpacity:function(){var e=this.cy();if(!e.styleEnabled())return 1;var r=e.hasCompoundNodes(),a=this[0];if(a){var n=a._private,i=a.pstyle("opacity").value;if(!r)return i;var o=n.data.parent?a.parents():null;if(o)for(var s=0;s<o.length;s++){var u=o[s],l=u.pstyle("opacity").value;i=l*i}return i}},transparent:function(){var e=this.cy();if(!e.styleEnabled())return!1;var r=this[0],a=r.cy().hasCompoundNodes();if(r)return a?r.effectiveOpacity()===0:r.pstyle("opacity").value===0},backgrounding:function(){var e=this.cy();if(!e.styleEnabled())return!1;var r=this[0];return!!r._private.backgrounding}};function Oi(t,e){var r=t._private,a=r.data.parent?t.parents():null;if(a)for(var n=0;n<a.length;n++){var i=a[n];if(!e(i))return!1}return!0}function Ni(t){var e=t.ok,r=t.edgeOkViaNode||t.ok,a=t.parentOk||t.ok;return function(){var n=this.cy();if(!n.styleEnabled())return!0;var i=this[0],o=n.hasCompoundNodes();if(i){var s=i._private;if(!e(i))return!1;if(i.isNode())return!o||Oi(i,a);var u=s.source,l=s.target;return r(u)&&(!o||Oi(u,r))&&(u===l||r(l)&&(!o||Oi(l,r)))}}}var ca=Pn("eleTakesUpSpace",function(t){return t.pstyle("display").value==="element"&&t.width()!==0&&(t.isNode()?t.height()!==0:!0)});Ot.takesUpSpace=Bn("takesUpSpace",Ni({ok:ca}));var Cd=Pn("eleInteractive",function(t){return t.pstyle("events").value==="yes"&&t.pstyle("visibility").value==="visible"&&ca(t)}),Dd=Pn("parentInteractive",function(t){return t.pstyle("visibility").value==="visible"&&ca(t)});Ot.interactive=Bn("interactive",Ni({ok:Cd,parentOk:Dd,edgeOkViaNode:ca})),Ot.noninteractive=function(){var t=this[0];if(t)return!t.interactive()};var Sd=Pn("eleVisible",function(t){return t.pstyle("visibility").value==="visible"&&t.pstyle("opacity").pfValue!==0&&ca(t)}),Ld=ca;Ot.visible=Bn("visible",Ni({ok:Sd,edgeOkViaNode:Ld})),Ot.hidden=function(){var t=this[0];if(t)return!t.visible()},Ot.isBundledBezier=Bn("isBundledBezier",function(){return this.cy().styleEnabled()?!this.removed()&&this.pstyle("curve-style").value==="bezier"&&this.takesUpSpace():!1}),Ot.bypass=Ot.css=Ot.style,Ot.renderedCss=Ot.renderedStyle,Ot.removeBypass=Ot.removeCss=Ot.removeStyle,Ot.pstyle=Ot.parsedStyle;var Ir={};function ks(t){return function(){var e=arguments,r=[];if(e.length===2){var a=e[0],n=e[1];this.on(t.event,a,n)}else if(e.length===1&&H(e[0])){var i=e[0];this.on(t.event,i)}else if(e.length===0||e.length===1&&te(e[0])){for(var o=e.length===1?e[0]:null,s=0;s<this.length;s++){var u=this[s],l=!t.ableField||u._private[t.ableField],v=u._private[t.field]!=t.value;if(t.overrideAble){var f=t.overrideAble(u);if(f!==void 0&&(l=f,!f))return this}l&&(u._private[t.field]=t.value,v&&r.push(u))}var h=this.spawn(r);h.updateStyle(),h.emit(t.event),o&&h.emit(o)}return this}}function da(t){Ir[t.field]=function(){var e=this[0];if(e){if(t.overrideField){var r=t.overrideField(e);if(r!==void 0)return r}return e._private[t.field]}},Ir[t.on]=ks({event:t.on,field:t.field,ableField:t.ableField,overrideAble:t.overrideAble,value:!0}),Ir[t.off]=ks({event:t.off,field:t.field,ableField:t.ableField,overrideAble:t.overrideAble,value:!1})}da({field:"locked",overrideField:function(e){return e.cy().autolock()?!0:void 0},on:"lock",off:"unlock"}),da({field:"grabbable",overrideField:function(e){return e.cy().autoungrabify()||e.pannable()?!1:void 0},on:"grabify",off:"ungrabify"}),da({field:"selected",ableField:"selectable",overrideAble:function(e){return e.cy().autounselectify()?!1:void 0},on:"select",off:"unselect"}),da({field:"selectable",overrideField:function(e){return e.cy().autounselectify()?!1:void 0},on:"selectify",off:"unselectify"}),Ir.deselect=Ir.unselect,Ir.grabbed=function(){var t=this[0];if(t)return t._private.grabbed},da({field:"active",on:"activate",off:"unactivate"}),da({field:"pannable",on:"panify",off:"unpanify"}),Ir.inactive=function(){var t=this[0];if(t)return!t._private.active};var Bt={},Ps=function(e){return function(a){for(var n=this,i=[],o=0;o<n.length;o++){var s=n[o];if(s.isNode()){for(var u=!1,l=s.connectedEdges(),v=0;v<l.length;v++){var f=l[v],h=f.source(),d=f.target();if(e.noIncomingEdges&&d===s&&h!==s||e.noOutgoingEdges&&h===s&&d!==s){u=!0;break}}u||i.push(s)}}return this.spawn(i,!0).filter(a)}},Bs=function(e){return function(r){for(var a=this,n=[],i=0;i<a.length;i++){var o=a[i];if(o.isNode())for(var s=o.connectedEdges(),u=0;u<s.length;u++){var l=s[u],v=l.source(),f=l.target();e.outgoing&&v===o?(n.push(l),n.push(f)):e.incoming&&f===o&&(n.push(l),n.push(v))}}return this.spawn(n,!0).filter(r)}},Fs=function(e){return function(r){for(var a=this,n=[],i={};;){var o=e.outgoing?a.outgoers():a.incomers();if(o.length===0)break;for(var s=!1,u=0;u<o.length;u++){var l=o[u],v=l.id();i[v]||(i[v]=!0,n.push(l),s=!0)}if(!s)break;a=o}return this.spawn(n,!0).filter(r)}};Bt.clearTraversalCache=function(){for(var t=0;t<this.length;t++)this[t]._private.traversalCache=null},He(Bt,{roots:Ps({noIncomingEdges:!0}),leaves:Ps({noOutgoingEdges:!0}),outgoers:Zt(Bs({outgoing:!0}),"outgoers"),successors:Fs({outgoing:!0}),incomers:Zt(Bs({incoming:!0}),"incomers"),predecessors:Fs({incoming:!0})}),He(Bt,{neighborhood:Zt(function(t){for(var e=[],r=this.nodes(),a=0;a<r.length;a++)for(var n=r[a],i=n.connectedEdges(),o=0;o<i.length;o++){var s=i[o],u=s.source(),l=s.target(),v=n===u?l:u;v.length>0&&e.push(v[0]),e.push(s[0])}return this.spawn(e,!0).filter(t)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),Bt.neighbourhood=Bt.neighborhood,Bt.closedNeighbourhood=Bt.closedNeighborhood,Bt.openNeighbourhood=Bt.openNeighborhood,He(Bt,{source:Zt(function(e){var r=this[0],a;return r&&(a=r._private.source||r.cy().collection()),a&&e?a.filter(e):a},"source"),target:Zt(function(e){var r=this[0],a;return r&&(a=r._private.target||r.cy().collection()),a&&e?a.filter(e):a},"target"),sources:Gs({attr:"source"}),targets:Gs({attr:"target"})});function Gs(t){return function(r){for(var a=[],n=0;n<this.length;n++){var i=this[n],o=i._private[t.attr];o&&a.push(o)}return this.spawn(a,!0).filter(r)}}He(Bt,{edgesWith:Zt(zs(),"edgesWith"),edgesTo:Zt(zs({thisIsSrc:!0}),"edgesTo")});function zs(t){return function(r){var a=[],n=this._private.cy,i=t||{};ee(r)&&(r=n.$(r));for(var o=0;o<r.length;o++)for(var s=r[o]._private.edges,u=0;u<s.length;u++){var l=s[u],v=l._private.data,f=this.hasElementWithId(v.source)&&r.hasElementWithId(v.target),h=r.hasElementWithId(v.source)&&this.hasElementWithId(v.target),d=f||h;d&&((i.thisIsSrc||i.thisIsTgt)&&(i.thisIsSrc&&!f||i.thisIsTgt&&!h)||a.push(l))}return this.spawn(a,!0)}}He(Bt,{connectedEdges:Zt(function(t){for(var e=[],r=this,a=0;a<r.length;a++){var n=r[a];if(n.isNode())for(var i=n._private.edges,o=0;o<i.length;o++){var s=i[o];e.push(s)}}return this.spawn(e,!0).filter(t)},"connectedEdges"),connectedNodes:Zt(function(t){for(var e=[],r=this,a=0;a<r.length;a++){var n=r[a];n.isEdge()&&(e.push(n.source()[0]),e.push(n.target()[0]))}return this.spawn(e,!0).filter(t)},"connectedNodes"),parallelEdges:Zt(Vs(),"parallelEdges"),codirectedEdges:Zt(Vs({codirected:!0}),"codirectedEdges")});function Vs(t){var e={codirected:!1};return t=He({},e,t),function(a){for(var n=[],i=this.edges(),o=t,s=0;s<i.length;s++)for(var u=i[s],l=u._private,v=l.source,f=v._private.data.id,h=l.data.target,d=v._private.edges,c=0;c<d.length;c++){var y=d[c],p=y._private.data,g=p.target,m=p.source,b=g===h&&m===f,E=f===g&&h===m;(o.codirected&&b||!o.codirected&&(b||E))&&n.push(y)}return this.spawn(n,!0).filter(a)}}He(Bt,{components:function(e){var r=this,a=r.cy(),n=a.collection(),i=e==null?r.nodes():e.nodes(),o=[];e!=null&&i.empty()&&(i=e.sources());var s=function(v,f){n.merge(v),i.unmerge(v),f.merge(v)};if(i.empty())return r.spawn();var u=function(){var v=a.collection();o.push(v);var f=i[0];s(f,v),r.bfs({directed:!1,roots:f,visit:function(d){return s(d,v)}}),v.forEach(function(h){h.connectedEdges().forEach(function(d){r.has(d)&&v.has(d.source())&&v.has(d.target())&&v.merge(d)})})};do u();while(i.length>0);return o},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),Bt.componentsOf=Bt.components;var Nt=function(e,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){xt("A collection must have a reference to the core");return}var i=new ur,o=!1;if(!r)r=[];else if(r.length>0&&S(r[0])&&!Ae(r[0])){o=!0;for(var s=[],u=new Jr,l=0,v=r.length;l<v;l++){var f=r[l];f.data==null&&(f.data={});var h=f.data;if(h.id==null)h.id=yo();else if(e.hasElementWithId(h.id)||u.has(h.id))continue;var d=new fn(e,f,!1);s.push(d),u.add(h.id)}r=s}this.length=0;for(var c=0,y=r.length;c<y;c++){var p=r[c][0];if(p!=null){var g=p._private.data.id;(!a||!i.has(g))&&(a&&i.set(g,{index:this.length,ele:p}),this[this.length]=p,this.length++)}}this._private={eles:this,cy:e,get map(){return this.lazyMap==null&&this.rebuildMap(),this.lazyMap},set map(m){this.lazyMap=m},rebuildMap:function(){for(var b=this.lazyMap=new ur,E=this.eles,M=0;M<E.length;M++){var L=E[M];b.set(L.id(),{index:M,ele:L})}}},a&&(this._private.map=i),o&&!n&&this.restore()},mt=fn.prototype=Nt.prototype=Object.create(Array.prototype);mt.instanceString=function(){return"collection"},mt.spawn=function(t,e){return new Nt(this.cy(),t,e)},mt.spawnSelf=function(){return this.spawn(this)},mt.cy=function(){return this._private.cy},mt.renderer=function(){return this._private.cy.renderer()},mt.element=function(){return this[0]},mt.collection=function(){return Ne(this)?this:new Nt(this._private.cy,[this])},mt.unique=function(){return new Nt(this._private.cy,this,!0)},mt.hasElementWithId=function(t){return t=""+t,this._private.map.has(t)},mt.getElementById=function(t){t=""+t;var e=this._private.cy,r=this._private.map.get(t);return r?r.ele:new Nt(e)},mt.$id=mt.getElementById,mt.poolIndex=function(){var t=this._private.cy,e=t._private.elements,r=this[0]._private.data.id;return e._private.map.get(r).index},mt.indexOf=function(t){var e=t[0]._private.data.id;return this._private.map.get(e).index},mt.indexOfId=function(t){return t=""+t,this._private.map.get(t).index},mt.json=function(t){var e=this.element(),r=this.cy();if(e==null&&t)return this;if(e!=null){var a=e._private;if(S(t)){if(r.startBatch(),t.data){e.data(t.data);var n=a.data;if(e.isEdge()){var i=!1,o={},s=t.data.source,u=t.data.target;s!=null&&s!=n.source&&(o.source=""+s,i=!0),u!=null&&u!=n.target&&(o.target=""+u,i=!0),i&&(e=e.move(o))}else{var l="parent"in t.data,v=t.data.parent;l&&(v!=null||n.parent!=null)&&v!=n.parent&&(v===void 0&&(v=null),v!=null&&(v=""+v),e=e.move({parent:v}))}}t.position&&e.position(t.position);var f=function(y,p,g){var m=t[y];m!=null&&m!==a[y]&&(m?e[p]():e[g]())};return f("removed","remove","restore"),f("selected","select","unselect"),f("selectable","selectify","unselectify"),f("locked","lock","unlock"),f("grabbable","grabify","ungrabify"),f("pannable","panify","unpanify"),t.classes!=null&&e.classes(t.classes),r.endBatch(),this}else if(t===void 0){var h={data:lr(a.data),position:lr(a.position),group:a.group,removed:a.removed,selected:a.selected,selectable:a.selectable,locked:a.locked,grabbable:a.grabbable,pannable:a.pannable,classes:null};h.classes="";var d=0;return a.classes.forEach(function(c){return h.classes+=d++===0?c:" "+c}),h}}},mt.jsons=function(){for(var t=[],e=0;e<this.length;e++){var r=this[e],a=r.json();t.push(a)}return t},mt.clone=function(){for(var t=this.cy(),e=[],r=0;r<this.length;r++){var a=this[r],n=a.json(),i=new fn(t,n,!1);e.push(i)}return new Nt(t,e)},mt.copy=mt.clone,mt.restore=function(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=r.cy(),n=a._private,i=[],o=[],s,u=0,l=r.length;u<l;u++){var v=r[u];e&&!v.removed()||(v.isNode()?i.push(v):o.push(v))}s=i.concat(o);var f,h=function(){s.splice(f,1),f--};for(f=0;f<s.length;f++){var d=s[f],c=d._private,y=c.data;if(d.clearTraversalCache(),!(!e&&!c.removed)){if(y.id===void 0)y.id=yo();else if(R(y.id))y.id=""+y.id;else if(Re(y.id)||!ee(y.id)){xt("Can not create element with invalid string ID `"+y.id+"`"),h();continue}else if(a.hasElementWithId(y.id)){xt("Can not create second element with ID `"+y.id+"`"),h();continue}}var p=y.id;if(d.isNode()){var g=c.position;g.x==null&&(g.x=0),g.y==null&&(g.y=0)}if(d.isEdge()){for(var m=d,b=["source","target"],E=b.length,M=!1,L=0;L<E;L++){var w=b[L],k=y[w];R(k)&&(k=y[w]=""+y[w]),k==null||k===""?(xt("Can not create edge `"+p+"` with unspecified "+w),M=!0):a.hasElementWithId(k)||(xt("Can not create edge `"+p+"` with nonexistant "+w+" `"+k+"`"),M=!0)}if(M){h();continue}var D=a.getElementById(y.source),F=a.getElementById(y.target);D.same(F)?D._private.edges.push(m):(D._private.edges.push(m),F._private.edges.push(m)),m._private.source=D,m._private.target=F}c.map=new ur,c.map.set(p,{ele:d,index:0}),c.removed=!1,e&&a.addToPool(d)}for(var G=0;G<i.length;G++){var I=i[G],X=I._private.data;R(X.parent)&&(X.parent=""+X.parent);var B=X.parent,re=B!=null;if(re||I._private.parent){var K=I._private.parent?a.collection().merge(I._private.parent):a.getElementById(B);if(K.empty())X.parent=void 0;else if(K[0].removed())ht("Node added with missing parent, reference to parent removed"),X.parent=void 0,I._private.parent=null;else{for(var W=!1,ae=K;!ae.empty();){if(I.same(ae)){W=!0,X.parent=void 0;break}ae=ae.parent()}W||(K[0]._private.children.push(I),I._private.parent=K[0],n.hasCompoundNodes=!0)}}}if(s.length>0){for(var ue=s.length===r.length?r:new Nt(a,s),me=0;me<ue.length;me++){var ie=ue[me];ie.isNode()||(ie.parallelEdges().clearTraversalCache(),ie.source().clearTraversalCache(),ie.target().clearTraversalCache())}var ge;n.hasCompoundNodes?ge=a.collection().merge(ue).merge(ue.connectedNodes()).merge(ue.parent()):ge=ue,ge.dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(t),t?ue.emitAndNotify("add"):e&&ue.emit("add")}return r},mt.removed=function(){var t=this[0];return t&&t._private.removed},mt.inside=function(){var t=this[0];return t&&!t._private.removed},mt.remove=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this,a=[],n={},i=r._private.cy;function o(B){for(var re=B._private.edges,K=0;K<re.length;K++)u(re[K])}function s(B){for(var re=B._private.children,K=0;K<re.length;K++)u(re[K])}function u(B){var re=n[B.id()];e&&B.removed()||re||(n[B.id()]=!0,B.isNode()?(a.push(B),o(B),s(B)):a.unshift(B))}for(var l=0,v=r.length;l<v;l++){var f=r[l];u(f)}function h(B,re){var K=B._private.edges;xr(K,re),B.clearTraversalCache()}function d(B){B.clearTraversalCache()}var c=[];c.ids={};function y(B,re){re=re[0],B=B[0];var K=B._private.children,W=B.id();xr(K,re),re._private.parent=null,c.ids[W]||(c.ids[W]=!0,c.push(B))}r.dirtyCompoundBoundsCache(),e&&i.removeFromPool(a);for(var p=0;p<a.length;p++){var g=a[p];if(g.isEdge()){var m=g.source()[0],b=g.target()[0];h(m,g),h(b,g);for(var E=g.parallelEdges(),M=0;M<E.length;M++){var L=E[M];d(L),L.isBundledBezier()&&L.dirtyBoundingBoxCache()}}else{var w=g.parent();w.length!==0&&y(w,g)}e&&(g._private.removed=!0)}var k=i._private.elements;i._private.hasCompoundNodes=!1;for(var D=0;D<k.length;D++){var F=k[D];if(F.isParent()){i._private.hasCompoundNodes=!0;break}}var G=new Nt(this.cy(),a);G.size()>0&&(t?G.emitAndNotify("remove"):e&&G.emit("remove"));for(var I=0;I<c.length;I++){var X=c[I];(!e||!X.removed())&&X.updateStyle()}return G},mt.move=function(t){var e=this._private.cy,r=this,a=!1,n=!1,i=function(c){return c==null?c:""+c};if(t.source!==void 0||t.target!==void 0){var o=i(t.source),s=i(t.target),u=o!=null&&e.hasElementWithId(o),l=s!=null&&e.hasElementWithId(s);(u||l)&&(e.batch(function(){r.remove(a,n),r.emitAndNotify("moveout");for(var d=0;d<r.length;d++){var c=r[d],y=c._private.data;c.isEdge()&&(u&&(y.source=o),l&&(y.target=s))}r.restore(a,n)}),r.emitAndNotify("move"))}else if(t.parent!==void 0){var v=i(t.parent),f=v===null||e.hasElementWithId(v);if(f){var h=v===null?void 0:v;e.batch(function(){var d=r.remove(a,n);d.emitAndNotify("moveout");for(var c=0;c<r.length;c++){var y=r[c],p=y._private.data;y.isNode()&&(p.parent=h)}d.restore(a,n)}),r.emitAndNotify("move")}}return this},[Yo,Gc,Ln,Ar,va,ed,An,pd,Ns,Is,wd,Rn,kn,Ot,Ir,Bt].forEach(function(t){He(mt,t)});var Ad={add:function(e){var r,a=this;if(pe(e)){var n=e;if(n._private.cy===a)r=n.restore();else{for(var i=[],o=0;o<n.length;o++){var s=n[o];i.push(s.json())}r=new Nt(a,i)}}else if(te(e)){var u=e;r=new Nt(a,u)}else if(S(e)&&(te(e.nodes)||te(e.edges))){for(var l=e,v=[],f=["nodes","edges"],h=0,d=f.length;h<d;h++){var c=f[h],y=l[c];if(te(y))for(var p=0,g=y.length;p<g;p++){var m=He({group:c},y[p]);v.push(m)}}r=new Nt(a,v)}else{var b=e;r=new fn(a,b).collection()}return r},remove:function(e){if(!pe(e)){if(ee(e)){var r=e;e=this.$(r)}}return e.remove()}};/*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */function Od(t,e,r,a){var n=4,i=.001,o=1e-7,s=10,u=11,l=1/(u-1),v=typeof Float32Array<"u";if(arguments.length!==4)return!1;for(var f=0;f<4;++f)if(typeof arguments[f]!="number"||isNaN(arguments[f])||!isFinite(arguments[f]))return!1;t=Math.min(t,1),r=Math.min(r,1),t=Math.max(t,0),r=Math.max(r,0);var h=v?new Float32Array(u):new Array(u);function d(F,G){return 1-3*G+3*F}function c(F,G){return 3*G-6*F}function y(F){return 3*F}function p(F,G,I){return((d(G,I)*F+c(G,I))*F+y(G))*F}function g(F,G,I){return 3*d(G,I)*F*F+2*c(G,I)*F+y(G)}function m(F,G){for(var I=0;I<n;++I){var X=g(G,t,r);if(X===0)return G;var B=p(G,t,r)-F;G-=B/X}return G}function b(){for(var F=0;F<u;++F)h[F]=p(F*l,t,r)}function E(F,G,I){var X,B,re=0;do B=G+(I-G)/2,X=p(B,t,r)-F,X>0?I=B:G=B;while(Math.abs(X)>o&&++re<s);return B}function M(F){for(var G=0,I=1,X=u-1;I!==X&&h[I]<=F;++I)G+=l;--I;var B=(F-h[I])/(h[I+1]-h[I]),re=G+B*l,K=g(re,t,r);return K>=i?m(F,re):K===0?re:E(F,G,G+l)}var L=!1;function w(){L=!0,(t!==e||r!==a)&&b()}var k=function(G){return L||w(),t===e&&r===a?G:G===0?0:G===1?1:p(M(G),e,a)};k.getControlPoints=function(){return[{x:t,y:e},{x:r,y:a}]};var D="generateBezier("+[t,e,r,a]+")";return k.toString=function(){return D},k}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var Nd=function(){function t(a){return-a.tension*a.x-a.friction*a.v}function e(a,n,i){var o={x:a.x+i.dx*n,v:a.v+i.dv*n,tension:a.tension,friction:a.friction};return{dx:o.v,dv:t(o)}}function r(a,n){var i={dx:a.v,dv:t(a)},o=e(a,n*.5,i),s=e(a,n*.5,o),u=e(a,n,s),l=1/6*(i.dx+2*(o.dx+s.dx)+u.dx),v=1/6*(i.dv+2*(o.dv+s.dv)+u.dv);return a.x=a.x+l*n,a.v=a.v+v*n,a}return function a(n,i,o){var s={x:-1,v:0,tension:null,friction:null},u=[0],l=0,v=1/1e4,f=16/1e3,h,d,c;for(n=parseFloat(n)||500,i=parseFloat(i)||20,o=o||null,s.tension=n,s.friction=i,h=o!==null,h?(l=a(n,i),d=l/o*f):d=f;c=r(c||s,d),u.push(1+c.x),l+=16,Math.abs(c.x)>v&&Math.abs(c.v)>v;);return h?function(y){return u[y*(u.length-1)|0]}:l}}(),bt=function(e,r,a,n){var i=Od(e,r,a,n);return function(o,s,u){return o+(s-o)*i(u)}},Fn={linear:function(e,r,a){return e+(r-e)*a},ease:bt(.25,.1,.25,1),"ease-in":bt(.42,0,1,1),"ease-out":bt(0,0,.58,1),"ease-in-out":bt(.42,0,.58,1),"ease-in-sine":bt(.47,0,.745,.715),"ease-out-sine":bt(.39,.575,.565,1),"ease-in-out-sine":bt(.445,.05,.55,.95),"ease-in-quad":bt(.55,.085,.68,.53),"ease-out-quad":bt(.25,.46,.45,.94),"ease-in-out-quad":bt(.455,.03,.515,.955),"ease-in-cubic":bt(.55,.055,.675,.19),"ease-out-cubic":bt(.215,.61,.355,1),"ease-in-out-cubic":bt(.645,.045,.355,1),"ease-in-quart":bt(.895,.03,.685,.22),"ease-out-quart":bt(.165,.84,.44,1),"ease-in-out-quart":bt(.77,0,.175,1),"ease-in-quint":bt(.755,.05,.855,.06),"ease-out-quint":bt(.23,1,.32,1),"ease-in-out-quint":bt(.86,0,.07,1),"ease-in-expo":bt(.95,.05,.795,.035),"ease-out-expo":bt(.19,1,.22,1),"ease-in-out-expo":bt(1,0,0,1),"ease-in-circ":bt(.6,.04,.98,.335),"ease-out-circ":bt(.075,.82,.165,1),"ease-in-out-circ":bt(.785,.135,.15,.86),spring:function(e,r,a){if(a===0)return Fn.linear;var n=Nd(e,r,a);return function(i,o,s){return i+(o-i)*n(s)}},"cubic-bezier":bt};function $s(t,e,r,a,n){if(a===1||e===r)return r;var i=n(e,r,a);return t==null||((t.roundValue||t.color)&&(i=Math.round(i)),t.min!==void 0&&(i=Math.max(i,t.min)),t.max!==void 0&&(i=Math.min(i,t.max))),i}function Us(t,e){return t.pfValue!=null||t.value!=null?t.pfValue!=null&&(e==null||e.type.units!=="%")?t.pfValue:t.value:t}function ga(t,e,r,a,n){var i=n!=null?n.type:null;r<0?r=0:r>1&&(r=1);var o=Us(t,n),s=Us(e,n);if(R(o)&&R(s))return $s(i,o,s,r,a);if(te(o)&&te(s)){for(var u=[],l=0;l<s.length;l++){var v=o[l],f=s[l];if(v!=null&&f!=null){var h=$s(i,v,f,r,a);u.push(h)}else u.push(f)}return u}}function Id(t,e,r,a){var n=!a,i=t._private,o=e._private,s=o.easing,u=o.startTime,l=a?t:t.cy(),v=l.style();if(!o.easingImpl)if(s==null)o.easingImpl=Fn.linear;else{var f;if(ee(s)){var h=v.parse("transition-timing-function",s);f=h.value}else f=s;var d,c;ee(f)?(d=f,c=[]):(d=f[1],c=f.slice(2).map(function(ue){return+ue})),c.length>0?(d==="spring"&&c.push(o.duration),o.easingImpl=Fn[d].apply(null,c)):o.easingImpl=Fn[d]}var y=o.easingImpl,p;if(o.duration===0?p=1:p=(r-u)/o.duration,o.applying&&(p=o.progress),p<0?p=0:p>1&&(p=1),o.delay==null){var g=o.startPosition,m=o.position;if(m&&n&&!t.locked()){var b={};Xa(g.x,m.x)&&(b.x=ga(g.x,m.x,p,y)),Xa(g.y,m.y)&&(b.y=ga(g.y,m.y,p,y)),t.position(b)}var E=o.startPan,M=o.pan,L=i.pan,w=M!=null&&a;w&&(Xa(E.x,M.x)&&(L.x=ga(E.x,M.x,p,y)),Xa(E.y,M.y)&&(L.y=ga(E.y,M.y,p,y)),t.emit("pan"));var k=o.startZoom,D=o.zoom,F=D!=null&&a;F&&(Xa(k,D)&&(i.zoom=ka(i.minZoom,ga(k,D,p,y),i.maxZoom)),t.emit("zoom")),(w||F)&&t.emit("viewport");var G=o.style;if(G&&G.length>0&&n){for(var I=0;I<G.length;I++){var X=G[I],B=X.name,re=X,K=o.startStyle[B],W=v.properties[K.name],ae=ga(K,re,p,y,W);v.overrideBypass(t,B,ae)}t.emit("style")}}return o.progress=p,p}function Xa(t,e){return t==null||e==null?!1:R(t)&&R(e)?!0:!!(t&&e)}function Md(t,e,r,a){var n=e._private;n.started=!0,n.startTime=r-n.progress*n.duration}function _s(t,e){var r=e._private.aniEles,a=[];function n(v,f){var h=v._private,d=h.animation.current,c=h.animation.queue,y=!1;if(d.length===0){var p=c.shift();p&&d.push(p)}for(var g=function(L){for(var w=L.length-1;w>=0;w--){var k=L[w];k()}L.splice(0,L.length)},m=d.length-1;m>=0;m--){var b=d[m],E=b._private;if(E.stopped){d.splice(m,1),E.hooked=!1,E.playing=!1,E.started=!1,g(E.frames);continue}!E.playing&&!E.applying||(E.playing&&E.applying&&(E.applying=!1),E.started||Md(v,b,t),Id(v,b,t,f),E.applying&&(E.applying=!1),g(E.frames),E.step!=null&&E.step(t),b.completed()&&(d.splice(m,1),E.hooked=!1,E.playing=!1,E.started=!1,g(E.completes)),y=!0)}return!f&&d.length===0&&c.length===0&&a.push(v),y}for(var i=!1,o=0;o<r.length;o++){var s=r[o],u=n(s);i=i||u}var l=n(e,!0);(i||l)&&(r.length>0?e.notify("draw",r):e.notify("draw")),r.unmerge(a),e.emit("step")}var Rd={animate:ct.animate(),animation:ct.animation(),animated:ct.animated(),clearQueue:ct.clearQueue(),delay:ct.delay(),delayAnimation:ct.delayAnimation(),stop:ct.stop(),addToAnimationPool:function(e){var r=this;r.styleEnabled()&&r._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function r(){e._private.animationsRunning&&ln(function(i){_s(i,e),r()})}var a=e.renderer();a&&a.beforeRender?a.beforeRender(function(i,o){_s(o,e)},a.beforeRenderPriorities.animations):r()}},kd={qualifierCompare:function(e,r){return e==null||r==null?e==null&&r==null:e.sameText(r)},eventMatches:function(e,r,a){var n=r.qualifier;return n!=null?e!==a.target&&Ae(a.target)&&n.matches(a.target):!0},addEventFields:function(e,r){r.cy=e,r.target=e},callbackContext:function(e,r,a){return r.qualifier!=null?a.target:e}},Gn=function(e){return ee(e)?new Sr(e):e},Ys={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new In(kd,this)),this},emitter:function(){return this._private.emitter},on:function(e,r,a){return this.emitter().on(e,Gn(r),a),this},removeListener:function(e,r,a){return this.emitter().removeListener(e,Gn(r),a),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,r,a){return this.emitter().one(e,Gn(r),a),this},once:function(e,r,a){return this.emitter().one(e,Gn(r),a),this},emit:function(e,r){return this.emitter().emit(e,r),this},emitAndNotify:function(e,r){return this.emit(e),this.notify(e,r),this}};ct.eventAliasesOn(Ys);var Ii={png:function(e){var r=this._private.renderer;return e=e||{},r.png(e)},jpg:function(e){var r=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",r.jpg(e)}};Ii.jpeg=Ii.jpg;var zn={layout:function(e){var r=this;if(e==null){xt("Layout options must be specified to make a layout");return}if(e.name==null){xt("A `name` must be specified to make a layout");return}var a=e.name,n=r.extension("layout",a);if(n==null){xt("No such layout `"+a+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var i;ee(e.eles)?i=r.$(e.eles):i=e.eles!=null?e.eles:r.$();var o=new n(He({},e,{cy:r,eles:i}));return o}};zn.createLayout=zn.makeLayout=zn.layout;var Pd={notify:function(e,r){var a=this._private;if(this.batching()){a.batchNotifications=a.batchNotifications||{};var n=a.batchNotifications[e]=a.batchNotifications[e]||this.collection();r!=null&&n.merge(r);return}if(a.notificationsEnabled){var i=this.renderer();this.destroyed()||!i||i.notify(e,r)}},notifications:function(e){var r=this._private;return e===void 0?r.notificationsEnabled:(r.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var r=this.renderer();Object.keys(e.batchNotifications).forEach(function(a){var n=e.batchNotifications[a];n.empty()?r.notify(a):r.notify(a,n)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var r=this;return this.batch(function(){for(var a=Object.keys(e),n=0;n<a.length;n++){var i=a[n],o=e[i],s=r.getElementById(i);s.data(o)}})}},Bd=At({hideEdgesOnViewport:!1,textureOnViewport:!1,motionBlur:!1,motionBlurOpacity:.05,pixelRatio:void 0,desktopTapThreshold:4,touchTapThreshold:8,wheelSensitivity:1,debug:!1,showFps:!1}),Mi={renderTo:function(e,r,a,n){var i=this._private.renderer;return i.renderTo(e,r,a,n),this},renderer:function(){return this._private.renderer},forceRender:function(){return this.notify("draw"),this},resize:function(){return this.invalidateSize(),this.emitAndNotify("resize"),this},initRenderer:function(e){var r=this,a=r.extension("renderer",e.name);if(a==null){xt("Can not initialise: No such renderer `".concat(e.name,"` found. Did you forget to import it and `cytoscape.use()` it?"));return}e.wheelSensitivity!==void 0&&ht("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");var n=Bd(e);n.cy=r,r._private.renderer=new a(n),this.notify("init")},destroyRenderer:function(){var e=this;e.notify("destroy");var r=e.container();if(r)for(r._cyreg=null;r.childNodes.length>0;)r.removeChild(r.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(a){var n=a._private;n.rscratch={},n.rstyle={},n.animation.current=[],n.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};Mi.invalidateDimensions=Mi.resize;var Vn={collection:function(e,r){return ee(e)?this.$(e):pe(e)?e.collection():te(e)?(r||(r={}),new Nt(this,e,r.unique,r.removed)):new Nt(this)},nodes:function(e){var r=this.$(function(a){return a.isNode()});return e?r.filter(e):r},edges:function(e){var r=this.$(function(a){return a.isEdge()});return e?r.filter(e):r},$:function(e){var r=this._private.elements;return e?r.filter(e):r.spawnSelf()},mutableElements:function(){return this._private.elements}};Vn.elements=Vn.filter=Vn.$;var Ft={},Wa="t",Fd="f";Ft.apply=function(t){for(var e=this,r=e._private,a=r.cy,n=a.collection(),i=0;i<t.length;i++){var o=t[i],s=e.getContextMeta(o);if(!s.empty){var u=e.getContextStyle(s),l=e.applyContextStyle(s,u,o);o._private.appliedInitStyle?e.updateTransitions(o,l.diffProps):o._private.appliedInitStyle=!0;var v=e.updateStyleHints(o);v&&n.push(o)}}return n},Ft.getPropertiesDiff=function(t,e){var r=this,a=r._private.propDiffs=r._private.propDiffs||{},n=t+"-"+e,i=a[n];if(i)return i;for(var o=[],s={},u=0;u<r.length;u++){var l=r[u],v=t[u]===Wa,f=e[u]===Wa,h=v!==f,d=l.mappedProperties.length>0;if(h||f&&d){var c=void 0;h&&d||h?c=l.properties:d&&(c=l.mappedProperties);for(var y=0;y<c.length;y++){for(var p=c[y],g=p.name,m=!1,b=u+1;b<r.length;b++){var E=r[b],M=e[b]===Wa;if(M&&(m=E.properties[p.name]!=null,m))break}!s[g]&&!m&&(s[g]=!0,o.push(g))}}}return a[n]=o,o},Ft.getContextMeta=function(t){for(var e=this,r="",a,n=t._private.styleCxtKey||"",i=0;i<e.length;i++){var o=e[i],s=o.selector&&o.selector.matches(t);s?r+=Wa:r+=Fd}return a=e.getPropertiesDiff(n,r),t._private.styleCxtKey=r,{key:r,diffPropNames:a,empty:a.length===0}},Ft.getContextStyle=function(t){var e=t.key,r=this,a=this._private.contextStyles=this._private.contextStyles||{};if(a[e])return a[e];for(var n={_private:{key:e}},i=0;i<r.length;i++){var o=r[i],s=e[i]===Wa;if(s)for(var u=0;u<o.properties.length;u++){var l=o.properties[u];n[l.name]=l}}return a[e]=n,n},Ft.applyContextStyle=function(t,e,r){for(var a=this,n=t.diffPropNames,i={},o=a.types,s=0;s<n.length;s++){var u=n[s],l=e[u],v=r.pstyle(u);if(!l)if(v)v.bypass?l={name:u,deleteBypassed:!0}:l={name:u,delete:!0};else continue;if(v!==l){if(l.mapped===o.fn&&v!=null&&v.mapping!=null&&v.mapping.value===l.value){var f=v.mapping,h=f.fnValue=l.value(r);if(h===f.prevFnValue)continue}var d=i[u]={prev:v};a.applyParsedProperty(r,l),d.next=r.pstyle(u),d.next&&d.next.bypass&&(d.next=d.next.bypassed)}}return{diffProps:i}},Ft.updateStyleHints=function(t){var e=t._private,r=this,a=r.propertyGroupNames,n=r.propertyGroupKeys,i=function(Oe,Fe,Xe){return r.getPropertiesHash(Oe,Fe,Xe)},o=e.styleKey;if(t.removed())return!1;var s=e.group==="nodes",u=t._private.style;a=Object.keys(u);for(var l=0;l<n.length;l++){var v=n[l];e.styleKeys[v]=[Qr,Oa]}for(var f=function(Oe,Fe){return e.styleKeys[Fe][0]=Na(Oe,e.styleKeys[Fe][0])},h=function(Oe,Fe){return e.styleKeys[Fe][1]=Ia(Oe,e.styleKeys[Fe][1])},d=function(Oe,Fe){f(Oe,Fe),h(Oe,Fe)},c=function(Oe,Fe){for(var Xe=0;Xe<Oe.length;Xe++){var Ie=Oe.charCodeAt(Xe);f(Ie,Fe),h(Ie,Fe)}},y=2e9,p=function(Oe){return-128<Oe&&Oe<128&&Math.floor(Oe)!==Oe?y-(Oe*1024|0):Oe},g=0;g<a.length;g++){var m=a[g],b=u[m];if(b!=null){var E=this.properties[m],M=E.type,L=E.groupKey,w=void 0;E.hashOverride!=null?w=E.hashOverride(t,b):b.pfValue!=null&&(w=b.pfValue);var k=E.enums==null?b.value:null,D=w!=null,F=k!=null,G=D||F,I=b.units;if(M.number&&G&&!M.multiple){var X=D?w:k;d(p(X),L),!D&&I!=null&&c(I,L)}else c(b.strValue,L)}}for(var B=[Qr,Oa],re=0;re<n.length;re++){var K=n[re],W=e.styleKeys[K];B[0]=Na(W[0],B[0]),B[1]=Ia(W[1],B[1])}e.styleKey=$u(B[0],B[1]);var ae=e.styleKeys;e.labelDimsKey=wr(ae.labelDimensions);var ue=i(t,["label"],ae.labelDimensions);if(e.labelKey=wr(ue),e.labelStyleKey=wr(un(ae.commonLabel,ue)),!s){var me=i(t,["source-label"],ae.labelDimensions);e.sourceLabelKey=wr(me),e.sourceLabelStyleKey=wr(un(ae.commonLabel,me));var ie=i(t,["target-label"],ae.labelDimensions);e.targetLabelKey=wr(ie),e.targetLabelStyleKey=wr(un(ae.commonLabel,ie))}if(s){var ge=e.styleKeys,Ee=ge.nodeBody,Ce=ge.nodeBorder,we=ge.nodeOutline,De=ge.backgroundImage,oe=ge.compound,xe=ge.pie,Le=[Ee,Ce,we,De,oe,xe].filter(function(Se){return Se!=null}).reduce(un,[Qr,Oa]);e.nodeKey=wr(Le),e.hasPie=xe!=null&&xe[0]!==Qr&&xe[1]!==Oa}return o!==e.styleKey},Ft.clearStyleHints=function(t){var e=t._private;e.styleCxtKey="",e.styleKeys={},e.styleKey=null,e.labelKey=null,e.labelStyleKey=null,e.sourceLabelKey=null,e.sourceLabelStyleKey=null,e.targetLabelKey=null,e.targetLabelStyleKey=null,e.nodeKey=null,e.hasPie=null},Ft.applyParsedProperty=function(t,e){var r=this,a=e,n=t._private.style,i,o=r.types,s=r.properties[a.name].type,u=a.bypass,l=n[a.name],v=l&&l.bypass,f=t._private,h="mapping",d=function(Ee){return Ee==null?null:Ee.pfValue!=null?Ee.pfValue:Ee.value},c=function(){var Ee=d(l),Ce=d(a);r.checkTriggers(t,a.name,Ee,Ce)};if(e.name==="curve-style"&&t.isEdge()&&(e.value!=="bezier"&&t.isLoop()||e.value==="haystack"&&(t.source().isParent()||t.target().isParent()))&&(a=e=this.parse(e.name,"bezier",u)),a.delete)return n[a.name]=void 0,c(),!0;if(a.deleteBypassed)return l?l.bypass?(l.bypassed=void 0,c(),!0):!1:(c(),!0);if(a.deleteBypass)return l?l.bypass?(n[a.name]=l.bypassed,c(),!0):!1:(c(),!0);var y=function(){ht("Do not assign mappings to elements without corresponding data (i.e. ele `"+t.id()+"` has no mapping for property `"+a.name+"` with data field `"+a.field+"`); try a `["+a.field+"]` selector to limit scope to elements with `"+a.field+"` defined")};switch(a.mapped){case o.mapData:{for(var p=a.field.split("."),g=f.data,m=0;m<p.length&&g;m++){var b=p[m];g=g[b]}if(g==null)return y(),!1;var E;if(R(g)){var M=a.fieldMax-a.fieldMin;M===0?E=0:E=(g-a.fieldMin)/M}else return ht("Do not use continuous mappers without specifying numeric data (i.e. `"+a.field+": "+g+"` for `"+t.id()+"` is non-numeric)"),!1;if(E<0?E=0:E>1&&(E=1),s.color){var L=a.valueMin[0],w=a.valueMax[0],k=a.valueMin[1],D=a.valueMax[1],F=a.valueMin[2],G=a.valueMax[2],I=a.valueMin[3]==null?1:a.valueMin[3],X=a.valueMax[3]==null?1:a.valueMax[3],B=[Math.round(L+(w-L)*E),Math.round(k+(D-k)*E),Math.round(F+(G-F)*E),Math.round(I+(X-I)*E)];i={bypass:a.bypass,name:a.name,value:B,strValue:"rgb("+B[0]+", "+B[1]+", "+B[2]+")"}}else if(s.number){var re=a.valueMin+(a.valueMax-a.valueMin)*E;i=this.parse(a.name,re,a.bypass,h)}else return!1;if(!i)return y(),!1;i.mapping=a,a=i;break}case o.data:{for(var K=a.field.split("."),W=f.data,ae=0;ae<K.length&&W;ae++){var ue=K[ae];W=W[ue]}if(W!=null&&(i=this.parse(a.name,W,a.bypass,h)),!i)return y(),!1;i.mapping=a,a=i;break}case o.fn:{var me=a.value,ie=a.fnValue!=null?a.fnValue:me(t);if(a.prevFnValue=ie,ie==null)return ht("Custom function mappers may not return null (i.e. `"+a.name+"` for ele `"+t.id()+"` is null)"),!1;if(i=this.parse(a.name,ie,a.bypass,h),!i)return ht("Custom function mappers may not return invalid values for the property type (i.e. `"+a.name+"` for ele `"+t.id()+"` is invalid)"),!1;i.mapping=lr(a),a=i;break}case void 0:break;default:return!1}return u?(v?a.bypassed=l.bypassed:a.bypassed=l,n[a.name]=a):v?l.bypassed=a:n[a.name]=a,c(),!0},Ft.cleanElements=function(t,e){for(var r=0;r<t.length;r++){var a=t[r];if(this.clearStyleHints(a),a.dirtyCompoundBoundsCache(),a.dirtyBoundingBoxCache(),!e)a._private.style={};else for(var n=a._private.style,i=Object.keys(n),o=0;o<i.length;o++){var s=i[o],u=n[s];u!=null&&(u.bypass?u.bypassed=null:n[s]=null)}}},Ft.update=function(){var t=this._private.cy,e=t.mutableElements();e.updateStyle()},Ft.updateTransitions=function(t,e){var r=this,a=t._private,n=t.pstyle("transition-property").value,i=t.pstyle("transition-duration").pfValue,o=t.pstyle("transition-delay").pfValue;if(n.length>0&&i>0){for(var s={},u=!1,l=0;l<n.length;l++){var v=n[l],f=t.pstyle(v),h=e[v];if(h){var d=h.prev,c=d,y=h.next!=null?h.next:f,p=!1,g=void 0,m=1e-6;c&&(R(c.pfValue)&&R(y.pfValue)?(p=y.pfValue-c.pfValue,g=c.pfValue+m*p):R(c.value)&&R(y.value)?(p=y.value-c.value,g=c.value+m*p):te(c.value)&&te(y.value)&&(p=c.value[0]!==y.value[0]||c.value[1]!==y.value[1]||c.value[2]!==y.value[2],g=c.strValue),p&&(s[v]=y.strValue,this.applyBypass(t,v,g),u=!0))}}if(!u)return;a.transitioning=!0,new ia(function(b){o>0?t.delayAnimation(o).play().promise().then(b):b()}).then(function(){return t.animation({style:s,duration:i,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){r.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1})}else a.transitioning&&(this.removeBypasses(t,n),t.emitAndNotify("style"),a.transitioning=!1)},Ft.checkTrigger=function(t,e,r,a,n,i){var o=this.properties[e],s=n(o);s!=null&&s(r,a)&&i(o)},Ft.checkZOrderTrigger=function(t,e,r,a){var n=this;this.checkTrigger(t,e,r,a,function(i){return i.triggersZOrder},function(){n._private.cy.notify("zorder",t)})},Ft.checkBoundsTrigger=function(t,e,r,a){this.checkTrigger(t,e,r,a,function(n){return n.triggersBounds},function(n){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),n.triggersBoundsOfParallelBeziers&&e==="curve-style"&&(r==="bezier"||a==="bezier")&&t.parallelEdges().forEach(function(i){i.isBundledBezier()&&i.dirtyBoundingBoxCache()}),n.triggersBoundsOfConnectedEdges&&e==="display"&&(r==="none"||a==="none")&&t.connectedEdges().forEach(function(i){i.dirtyBoundingBoxCache()})})},Ft.checkTriggers=function(t,e,r,a){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,r,a),this.checkBoundsTrigger(t,e,r,a)};var qa={};qa.applyBypass=function(t,e,r,a){var n=this,i=[],o=!0;if(e==="*"||e==="**"){if(r!==void 0)for(var s=0;s<n.properties.length;s++){var u=n.properties[s],l=u.name,v=this.parse(l,r,!0);v&&i.push(v)}}else if(ee(e)){var f=this.parse(e,r,!0);f&&i.push(f)}else if(S(e)){var h=e;a=r;for(var d=Object.keys(h),c=0;c<d.length;c++){var y=d[c],p=h[y];if(p===void 0&&(p=h[yt(y)]),p!==void 0){var g=this.parse(y,p,!0);g&&i.push(g)}}}else return!1;if(i.length===0)return!1;for(var m=!1,b=0;b<t.length;b++){for(var E=t[b],M={},L=void 0,w=0;w<i.length;w++){var k=i[w];if(a){var D=E.pstyle(k.name);L=M[k.name]={prev:D}}m=this.applyParsedProperty(E,lr(k))||m,a&&(L.next=E.pstyle(k.name))}m&&this.updateStyleHints(E),a&&this.updateTransitions(E,M,o)}return m},qa.overrideBypass=function(t,e,r){e=tt(e);for(var a=0;a<t.length;a++){var n=t[a],i=n._private.style[e],o=this.properties[e].type,s=o.color,u=o.mutiple,l=i?i.pfValue!=null?i.pfValue:i.value:null;!i||!i.bypass?this.applyBypass(n,e,r):(i.value=r,i.pfValue!=null&&(i.pfValue=r),s?i.strValue="rgb("+r.join(",")+")":u?i.strValue=r.join(" "):i.strValue=""+r,this.updateStyleHints(n)),this.checkTriggers(n,e,l,r)}},qa.removeAllBypasses=function(t,e){return this.removeBypasses(t,this.propertyNames,e)},qa.removeBypasses=function(t,e,r){for(var a=!0,n=0;n<t.length;n++){for(var i=t[n],o={},s=0;s<e.length;s++){var u=e[s],l=this.properties[u],v=i.pstyle(l.name);if(!(!v||!v.bypass)){var f="",h=this.parse(u,f,!0),d=o[l.name]={prev:v};this.applyParsedProperty(i,h),d.next=i.pstyle(l.name)}}this.updateStyleHints(i),r&&this.updateTransitions(i,o,a)}};var Ri={};Ri.getEmSizeInPixels=function(){var t=this.containerCss("font-size");return t!=null?parseFloat(t):1},Ri.containerCss=function(t){var e=this._private.cy,r=e.container(),a=e.window();if(a&&r&&a.getComputedStyle)return a.getComputedStyle(r).getPropertyValue(t)};var vr={};vr.getRenderedStyle=function(t,e){return e?this.getStylePropertyValue(t,e,!0):this.getRawStyle(t,!0)},vr.getRawStyle=function(t,e){var r=this;if(t=t[0],t){for(var a={},n=0;n<r.properties.length;n++){var i=r.properties[n],o=r.getStylePropertyValue(t,i.name,e);o!=null&&(a[i.name]=o,a[yt(i.name)]=o)}return a}},vr.getIndexedStyle=function(t,e,r,a){var n=t.pstyle(e)[r][a];return n??t.cy().style().getDefaultProperty(e)[r][0]},vr.getStylePropertyValue=function(t,e,r){var a=this;if(t=t[0],t){var n=a.properties[e];n.alias&&(n=n.pointsTo);var i=n.type,o=t.pstyle(n.name);if(o){var s=o.value,u=o.units,l=o.strValue;if(r&&i.number&&s!=null&&R(s)){var v=t.cy().zoom(),f=function(p){return p*v},h=function(p,g){return f(p)+g},d=te(s),c=d?u.every(function(y){return y!=null}):u!=null;return c?d?s.map(function(y,p){return h(y,u[p])}).join(" "):h(s,u):d?s.map(function(y){return ee(y)?y:""+f(y)}).join(" "):""+f(s)}else if(l!=null)return l}return null}},vr.getAnimationStartStyle=function(t,e){for(var r={},a=0;a<e.length;a++){var n=e[a],i=n.name,o=t.pstyle(i);o!==void 0&&(S(o)?o=this.parse(i,o.strValue):o=this.parse(i,o)),o&&(r[i]=o)}return r},vr.getPropsList=function(t){var e=this,r=[],a=t,n=e.properties;if(a)for(var i=Object.keys(a),o=0;o<i.length;o++){var s=i[o],u=a[s],l=n[s]||n[tt(s)],v=this.parse(l.name,u);v&&r.push(v)}return r},vr.getNonDefaultPropertiesHash=function(t,e,r){var a=r.slice(),n,i,o,s,u,l;for(u=0;u<e.length;u++)if(n=e[u],i=t.pstyle(n,!1),i!=null)if(i.pfValue!=null)a[0]=Na(s,a[0]),a[1]=Ia(s,a[1]);else for(o=i.strValue,l=0;l<o.length;l++)s=o.charCodeAt(l),a[0]=Na(s,a[0]),a[1]=Ia(s,a[1]);return a},vr.getPropertiesHash=vr.getNonDefaultPropertiesHash;var $n={};$n.appendFromJson=function(t){for(var e=this,r=0;r<t.length;r++){var a=t[r],n=a.selector,i=a.style||a.css,o=Object.keys(i);e.selector(n);for(var s=0;s<o.length;s++){var u=o[s],l=i[u];e.css(u,l)}}return e},$n.fromJson=function(t){var e=this;return e.resetToDefault(),e.appendFromJson(t),e},$n.json=function(){for(var t=[],e=this.defaultLength;e<this.length;e++){for(var r=this[e],a=r.selector,n=r.properties,i={},o=0;o<n.length;o++){var s=n[o];i[s.name]=s.strValue}t.push({selector:a?a.toString():"core",style:i})}return t};var ki={};ki.appendFromString=function(t){var e=this,r=this,a=""+t,n,i,o;a=a.replace(/[/][*](\s|.)+?[*][/]/g,"");function s(){a.length>n.length?a=a.substr(n.length):a=""}function u(){i.length>o.length?i=i.substr(o.length):i=""}for(;;){var l=a.match(/^\s*$/);if(l)break;var v=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!v){ht("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}n=v[0];var f=v[1];if(f!=="core"){var h=new Sr(f);if(h.invalid){ht("Skipping parsing of block: Invalid selector found in string stylesheet: "+f),s();continue}}var d=v[2],c=!1;i=d;for(var y=[];;){var p=i.match(/^\s*$/);if(p)break;var g=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!g){ht("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+d),c=!0;break}o=g[0];var m=g[1],b=g[2],E=e.properties[m];if(!E){ht("Skipping property: Invalid property name in: "+o),u();continue}var M=r.parse(m,b);if(!M){ht("Skipping property: Invalid property definition in: "+o),u();continue}y.push({name:m,val:b}),u()}if(c){s();break}r.selector(f);for(var L=0;L<y.length;L++){var w=y[L];r.css(w.name,w.val)}s()}return r},ki.fromString=function(t){var e=this;return e.resetToDefault(),e.appendFromString(t),e};var It={};(function(){var t=gt,e=qt,r=Kr,a=Da,n=jt,i=function(Le){return"^"+Le+"\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"},o=function(Le){var Se=t+"|\\w+|"+e+"|"+r+"|"+a+"|"+n;return"^"+Le+"\\s*\\(([\\w\\.]+)\\s*\\,\\s*("+t+")\\s*\\,\\s*("+t+")\\s*,\\s*("+Se+")\\s*\\,\\s*("+Se+")\\)$"},s=[`^url\\s*\\(\\s*['"]?(.+?)['"]?\\s*\\)$`,"^(none)$","^(.+)$"];It.types={time:{number:!0,min:0,units:"s|ms",implicitUnits:"ms"},percent:{number:!0,min:0,max:100,units:"%",implicitUnits:"%"},percentages:{number:!0,min:0,max:100,units:"%",implicitUnits:"%",multiple:!0},zeroOneNumber:{number:!0,min:0,max:1,unitless:!0},zeroOneNumbers:{number:!0,min:0,max:1,unitless:!0,multiple:!0},nOneOneNumber:{number:!0,min:-1,max:1,unitless:!0},nonNegativeInt:{number:!0,min:0,integer:!0,unitless:!0},nonNegativeNumber:{number:!0,min:0,unitless:!0},position:{enums:["parent","origin"]},nodeSize:{number:!0,min:0,enums:["label"]},number:{number:!0,unitless:!0},numbers:{number:!0,unitless:!0,multiple:!0},positiveNumber:{number:!0,unitless:!0,min:0,strictMin:!0},size:{number:!0,min:0},bidirectionalSize:{number:!0},bidirectionalSizeMaybePercent:{number:!0,allowPercent:!0},bidirectionalSizes:{number:!0,multiple:!0},sizeMaybePercent:{number:!0,min:0,allowPercent:!0},axisDirection:{enums:["horizontal","leftward","rightward","vertical","upward","downward","auto"]},paddingRelativeTo:{enums:["width","height","average","min","max"]},bgWH:{number:!0,min:0,allowPercent:!0,enums:["auto"],multiple:!0},bgPos:{number:!0,allowPercent:!0,multiple:!0},bgRelativeTo:{enums:["inner","include-padding"],multiple:!0},bgRepeat:{enums:["repeat","repeat-x","repeat-y","no-repeat"],multiple:!0},bgFit:{enums:["none","contain","cover"],multiple:!0},bgCrossOrigin:{enums:["anonymous","use-credentials","null"],multiple:!0},bgClip:{enums:["none","node"],multiple:!0},bgContainment:{enums:["inside","over"],multiple:!0},color:{color:!0},colors:{color:!0,multiple:!0},fill:{enums:["solid","linear-gradient","radial-gradient"]},bool:{enums:["yes","no"]},bools:{enums:["yes","no"],multiple:!0},lineStyle:{enums:["solid","dotted","dashed"]},lineCap:{enums:["butt","round","square"]},borderStyle:{enums:["solid","dotted","dashed","double"]},curveStyle:{enums:["bezier","unbundled-bezier","haystack","segments","straight","straight-triangle","taxi"]},fontFamily:{regex:'^([\\w- \\"]+(?:\\s*,\\s*[\\w- \\"]+)*)$'},fontStyle:{enums:["italic","normal","oblique"]},fontWeight:{enums:["normal","bold","bolder","lighter","100","200","300","400","500","600","800","900",100,200,300,400,500,600,700,800,900]},textDecoration:{enums:["none","underline","overline","line-through"]},textTransform:{enums:["none","uppercase","lowercase"]},textWrap:{enums:["none","wrap","ellipsis"]},textOverflowWrap:{enums:["whitespace","anywhere"]},textBackgroundShape:{enums:["rectangle","roundrectangle","round-rectangle"]},nodeShape:{enums:["rectangle","roundrectangle","round-rectangle","cutrectangle","cut-rectangle","bottomroundrectangle","bottom-round-rectangle","barrel","ellipse","triangle","round-triangle","square","pentagon","round-pentagon","hexagon","round-hexagon","concavehexagon","concave-hexagon","heptagon","round-heptagon","octagon","round-octagon","tag","round-tag","star","diamond","round-diamond","vee","rhomboid","right-rhomboid","polygon"]},overlayShape:{enums:["roundrectangle","round-rectangle","ellipse"]},compoundIncludeLabels:{enums:["include","exclude"]},arrowShape:{enums:["tee","triangle","triangle-tee","circle-triangle","triangle-cross","triangle-backcurve","vee","square","circle","diamond","chevron","none"]},arrowFill:{enums:["filled","hollow"]},arrowWidth:{number:!0,units:"%|px|em",implicitUnits:"px",enums:["match-line"]},display:{enums:["element","none"]},visibility:{enums:["hidden","visible"]},zCompoundDepth:{enums:["bottom","orphan","auto","top"]},zIndexCompare:{enums:["auto","manual"]},valign:{enums:["top","center","bottom"]},halign:{enums:["left","center","right"]},justification:{enums:["left","center","right","auto"]},text:{string:!0},data:{mapping:!0,regex:i("data")},layoutData:{mapping:!0,regex:i("layoutData")},scratch:{mapping:!0,regex:i("scratch")},mapData:{mapping:!0,regex:o("mapData")},mapLayoutData:{mapping:!0,regex:o("mapLayoutData")},mapScratch:{mapping:!0,regex:o("mapScratch")},fn:{mapping:!0,fn:!0},url:{regexes:s,singleRegexMatchValue:!0},urls:{regexes:s,singleRegexMatchValue:!0,multiple:!0},propList:{propList:!0},angle:{number:!0,units:"deg|rad",implicitUnits:"rad"},textRotation:{number:!0,units:"deg|rad",implicitUnits:"rad",enums:["none","autorotate"]},polygonPointList:{number:!0,multiple:!0,evenMultiple:!0,min:-1,max:1,unitless:!0},edgeDistances:{enums:["intersection","node-position","endpoints"]},edgeEndpoint:{number:!0,multiple:!0,units:"%|px|em|deg|rad",implicitUnits:"px",enums:["inside-to-node","outside-to-node","outside-to-node-or-label","outside-to-line","outside-to-line-or-label"],singleEnum:!0,validate:function(Le,Se){switch(Le.length){case 2:return Se[0]!=="deg"&&Se[0]!=="rad"&&Se[1]!=="deg"&&Se[1]!=="rad";case 1:return ee(Le[0])||Se[0]==="deg"||Se[0]==="rad";default:return!1}}},easing:{regexes:["^(spring)\\s*\\(\\s*("+t+")\\s*,\\s*("+t+")\\s*\\)$","^(cubic-bezier)\\s*\\(\\s*("+t+")\\s*,\\s*("+t+")\\s*,\\s*("+t+")\\s*,\\s*("+t+")\\s*\\)$"],enums:["linear","ease","ease-in","ease-out","ease-in-out","ease-in-sine","ease-out-sine","ease-in-out-sine","ease-in-quad","ease-out-quad","ease-in-out-quad","ease-in-cubic","ease-out-cubic","ease-in-out-cubic","ease-in-quart","ease-out-quart","ease-in-out-quart","ease-in-quint","ease-out-quint","ease-in-out-quint","ease-in-expo","ease-out-expo","ease-in-out-expo","ease-in-circ","ease-out-circ","ease-in-out-circ"]},gradientDirection:{enums:["to-bottom","to-top","to-left","to-right","to-bottom-right","to-bottom-left","to-top-right","to-top-left","to-right-bottom","to-left-bottom","to-right-top","to-left-top"]},boundsExpansion:{number:!0,multiple:!0,min:0,validate:function(Le){var Se=Le.length;return Se===1||Se===2||Se===4}}};var u={zeroNonZero:function(Le,Se){return(Le==null||Se==null)&&Le!==Se||Le==0&&Se!=0?!0:Le!=0&&Se==0},any:function(Le,Se){return Le!=Se},emptyNonEmpty:function(Le,Se){var Oe=Re(Le),Fe=Re(Se);return Oe&&!Fe||!Oe&&Fe}},l=It.types,v=[{name:"label",type:l.text,triggersBounds:u.any,triggersZOrder:u.emptyNonEmpty},{name:"text-rotation",type:l.textRotation,triggersBounds:u.any},{name:"text-margin-x",type:l.bidirectionalSize,triggersBounds:u.any},{name:"text-margin-y",type:l.bidirectionalSize,triggersBounds:u.any}],f=[{name:"source-label",type:l.text,triggersBounds:u.any},{name:"source-text-rotation",type:l.textRotation,triggersBounds:u.any},{name:"source-text-margin-x",type:l.bidirectionalSize,triggersBounds:u.any},{name:"source-text-margin-y",type:l.bidirectionalSize,triggersBounds:u.any},{name:"source-text-offset",type:l.size,triggersBounds:u.any}],h=[{name:"target-label",type:l.text,triggersBounds:u.any},{name:"target-text-rotation",type:l.textRotation,triggersBounds:u.any},{name:"target-text-margin-x",type:l.bidirectionalSize,triggersBounds:u.any},{name:"target-text-margin-y",type:l.bidirectionalSize,triggersBounds:u.any},{name:"target-text-offset",type:l.size,triggersBounds:u.any}],d=[{name:"font-family",type:l.fontFamily,triggersBounds:u.any},{name:"font-style",type:l.fontStyle,triggersBounds:u.any},{name:"font-weight",type:l.fontWeight,triggersBounds:u.any},{name:"font-size",type:l.size,triggersBounds:u.any},{name:"text-transform",type:l.textTransform,triggersBounds:u.any},{name:"text-wrap",type:l.textWrap,triggersBounds:u.any},{name:"text-overflow-wrap",type:l.textOverflowWrap,triggersBounds:u.any},{name:"text-max-width",type:l.size,triggersBounds:u.any},{name:"text-outline-width",type:l.size,triggersBounds:u.any},{name:"line-height",type:l.positiveNumber,triggersBounds:u.any}],c=[{name:"text-valign",type:l.valign,triggersBounds:u.any},{name:"text-halign",type:l.halign,triggersBounds:u.any},{name:"color",type:l.color},{name:"text-outline-color",type:l.color},{name:"text-outline-opacity",type:l.zeroOneNumber},{name:"text-background-color",type:l.color},{name:"text-background-opacity",type:l.zeroOneNumber},{name:"text-background-padding",type:l.size,triggersBounds:u.any},{name:"text-border-opacity",type:l.zeroOneNumber},{name:"text-border-color",type:l.color},{name:"text-border-width",type:l.size,triggersBounds:u.any},{name:"text-border-style",type:l.borderStyle,triggersBounds:u.any},{name:"text-background-shape",type:l.textBackgroundShape,triggersBounds:u.any},{name:"text-justification",type:l.justification}],y=[{name:"events",type:l.bool,triggersZOrder:u.any},{name:"text-events",type:l.bool,triggersZOrder:u.any}],p=[{name:"display",type:l.display,triggersZOrder:u.any,triggersBounds:u.any,triggersBoundsOfConnectedEdges:!0},{name:"visibility",type:l.visibility,triggersZOrder:u.any},{name:"opacity",type:l.zeroOneNumber,triggersZOrder:u.zeroNonZero},{name:"text-opacity",type:l.zeroOneNumber},{name:"min-zoomed-font-size",type:l.size},{name:"z-compound-depth",type:l.zCompoundDepth,triggersZOrder:u.any},{name:"z-index-compare",type:l.zIndexCompare,triggersZOrder:u.any},{name:"z-index",type:l.number,triggersZOrder:u.any}],g=[{name:"overlay-padding",type:l.size,triggersBounds:u.any},{name:"overlay-color",type:l.color},{name:"overlay-opacity",type:l.zeroOneNumber,triggersBounds:u.zeroNonZero},{name:"overlay-shape",type:l.overlayShape,triggersBounds:u.any}],m=[{name:"underlay-padding",type:l.size,triggersBounds:u.any},{name:"underlay-color",type:l.color},{name:"underlay-opacity",type:l.zeroOneNumber,triggersBounds:u.zeroNonZero},{name:"underlay-shape",type:l.overlayShape,triggersBounds:u.any}],b=[{name:"transition-property",type:l.propList},{name:"transition-duration",type:l.time},{name:"transition-delay",type:l.time},{name:"transition-timing-function",type:l.easing}],E=function(Le,Se){return Se.value==="label"?-Le.poolIndex():Se.pfValue},M=[{name:"height",type:l.nodeSize,triggersBounds:u.any,hashOverride:E},{name:"width",type:l.nodeSize,triggersBounds:u.any,hashOverride:E},{name:"shape",type:l.nodeShape,triggersBounds:u.any},{name:"shape-polygon-points",type:l.polygonPointList,triggersBounds:u.any},{name:"background-color",type:l.color},{name:"background-fill",type:l.fill},{name:"background-opacity",type:l.zeroOneNumber},{name:"background-blacken",type:l.nOneOneNumber},{name:"background-gradient-stop-colors",type:l.colors},{name:"background-gradient-stop-positions",type:l.percentages},{name:"background-gradient-direction",type:l.gradientDirection},{name:"padding",type:l.sizeMaybePercent,triggersBounds:u.any},{name:"padding-relative-to",type:l.paddingRelativeTo,triggersBounds:u.any},{name:"bounds-expansion",type:l.boundsExpansion,triggersBounds:u.any}],L=[{name:"border-color",type:l.color},{name:"border-opacity",type:l.zeroOneNumber},{name:"border-width",type:l.size,triggersBounds:u.any},{name:"border-style",type:l.borderStyle}],w=[{name:"outline-color",type:l.color},{name:"outline-opacity",type:l.zeroOneNumber},{name:"outline-width",type:l.size,triggersBounds:u.any},{name:"outline-style",type:l.borderStyle},{name:"outline-offset",type:l.size,triggersBounds:u.any}],k=[{name:"background-image",type:l.urls},{name:"background-image-crossorigin",type:l.bgCrossOrigin},{name:"background-image-opacity",type:l.zeroOneNumbers},{name:"background-image-containment",type:l.bgContainment},{name:"background-image-smoothing",type:l.bools},{name:"background-position-x",type:l.bgPos},{name:"background-position-y",type:l.bgPos},{name:"background-width-relative-to",type:l.bgRelativeTo},{name:"background-height-relative-to",type:l.bgRelativeTo},{name:"background-repeat",type:l.bgRepeat},{name:"background-fit",type:l.bgFit},{name:"background-clip",type:l.bgClip},{name:"background-width",type:l.bgWH},{name:"background-height",type:l.bgWH},{name:"background-offset-x",type:l.bgPos},{name:"background-offset-y",type:l.bgPos}],D=[{name:"position",type:l.position,triggersBounds:u.any},{name:"compound-sizing-wrt-labels",type:l.compoundIncludeLabels,triggersBounds:u.any},{name:"min-width",type:l.size,triggersBounds:u.any},{name:"min-width-bias-left",type:l.sizeMaybePercent,triggersBounds:u.any},{name:"min-width-bias-right",type:l.sizeMaybePercent,triggersBounds:u.any},{name:"min-height",type:l.size,triggersBounds:u.any},{name:"min-height-bias-top",type:l.sizeMaybePercent,triggersBounds:u.any},{name:"min-height-bias-bottom",type:l.sizeMaybePercent,triggersBounds:u.any}],F=[{name:"line-style",type:l.lineStyle},{name:"line-color",type:l.color},{name:"line-fill",type:l.fill},{name:"line-cap",type:l.lineCap},{name:"line-opacity",type:l.zeroOneNumber},{name:"line-dash-pattern",type:l.numbers},{name:"line-dash-offset",type:l.number},{name:"line-gradient-stop-colors",type:l.colors},{name:"line-gradient-stop-positions",type:l.percentages},{name:"curve-style",type:l.curveStyle,triggersBounds:u.any,triggersBoundsOfParallelBeziers:!0},{name:"haystack-radius",type:l.zeroOneNumber,triggersBounds:u.any},{name:"source-endpoint",type:l.edgeEndpoint,triggersBounds:u.any},{name:"target-endpoint",type:l.edgeEndpoint,triggersBounds:u.any},{name:"control-point-step-size",type:l.size,triggersBounds:u.any},{name:"control-point-distances",type:l.bidirectionalSizes,triggersBounds:u.any},{name:"control-point-weights",type:l.numbers,triggersBounds:u.any},{name:"segment-distances",type:l.bidirectionalSizes,triggersBounds:u.any},{name:"segment-weights",type:l.numbers,triggersBounds:u.any},{name:"taxi-turn",type:l.bidirectionalSizeMaybePercent,triggersBounds:u.any},{name:"taxi-turn-min-distance",type:l.size,triggersBounds:u.any},{name:"taxi-direction",type:l.axisDirection,triggersBounds:u.any},{name:"edge-distances",type:l.edgeDistances,triggersBounds:u.any},{name:"arrow-scale",type:l.positiveNumber,triggersBounds:u.any},{name:"loop-direction",type:l.angle,triggersBounds:u.any},{name:"loop-sweep",type:l.angle,triggersBounds:u.any},{name:"source-distance-from-node",type:l.size,triggersBounds:u.any},{name:"target-distance-from-node",type:l.size,triggersBounds:u.any}],G=[{name:"ghost",type:l.bool,triggersBounds:u.any},{name:"ghost-offset-x",type:l.bidirectionalSize,triggersBounds:u.any},{name:"ghost-offset-y",type:l.bidirectionalSize,triggersBounds:u.any},{name:"ghost-opacity",type:l.zeroOneNumber}],I=[{name:"selection-box-color",type:l.color},{name:"selection-box-opacity",type:l.zeroOneNumber},{name:"selection-box-border-color",type:l.color},{name:"selection-box-border-width",type:l.size},{name:"active-bg-color",type:l.color},{name:"active-bg-opacity",type:l.zeroOneNumber},{name:"active-bg-size",type:l.size},{name:"outside-texture-bg-color",type:l.color},{name:"outside-texture-bg-opacity",type:l.zeroOneNumber}],X=[];It.pieBackgroundN=16,X.push({name:"pie-size",type:l.sizeMaybePercent});for(var B=1;B<=It.pieBackgroundN;B++)X.push({name:"pie-"+B+"-background-color",type:l.color}),X.push({name:"pie-"+B+"-background-size",type:l.percent}),X.push({name:"pie-"+B+"-background-opacity",type:l.zeroOneNumber});var re=[],K=It.arrowPrefixes=["source","mid-source","target","mid-target"];[{name:"arrow-shape",type:l.arrowShape,triggersBounds:u.any},{name:"arrow-color",type:l.color},{name:"arrow-fill",type:l.arrowFill},{name:"arrow-width",type:l.arrowWidth}].forEach(function(xe){K.forEach(function(Le){var Se=Le+"-"+xe.name,Oe=xe.type,Fe=xe.triggersBounds;re.push({name:Se,type:Oe,triggersBounds:Fe})})},{});var W=It.properties=[].concat(y,b,p,g,m,G,c,d,v,f,h,M,L,w,k,X,D,F,re,I),ae=It.propertyGroups={behavior:y,transition:b,visibility:p,overlay:g,underlay:m,ghost:G,commonLabel:c,labelDimensions:d,mainLabel:v,sourceLabel:f,targetLabel:h,nodeBody:M,nodeBorder:L,nodeOutline:w,backgroundImage:k,pie:X,compound:D,edgeLine:F,edgeArrow:re,core:I},ue=It.propertyGroupNames={},me=It.propertyGroupKeys=Object.keys(ae);me.forEach(function(xe){ue[xe]=ae[xe].map(function(Le){return Le.name}),ae[xe].forEach(function(Le){return Le.groupKey=xe})});var ie=It.aliases=[{name:"content",pointsTo:"label"},{name:"control-point-distance",pointsTo:"control-point-distances"},{name:"control-point-weight",pointsTo:"control-point-weights"},{name:"edge-text-rotation",pointsTo:"text-rotation"},{name:"padding-left",pointsTo:"padding"},{name:"padding-right",pointsTo:"padding"},{name:"padding-top",pointsTo:"padding"},{name:"padding-bottom",pointsTo:"padding"}];It.propertyNames=W.map(function(xe){return xe.name});for(var ge=0;ge<W.length;ge++){var Ee=W[ge];W[Ee.name]=Ee}for(var Ce=0;Ce<ie.length;Ce++){var we=ie[Ce],De=W[we.pointsTo],oe={name:we.name,alias:!0,pointsTo:De};W.push(oe),W[we.name]=oe}})(),It.getDefaultProperty=function(t){return this.getDefaultProperties()[t]},It.getDefaultProperties=function(){var t=this._private;if(t.defaultProperties!=null)return t.defaultProperties;for(var e=He({"selection-box-color":"#ddd","selection-box-opacity":.65,"selection-box-border-color":"#aaa","selection-box-border-width":1,"active-bg-color":"black","active-bg-opacity":.15,"active-bg-size":30,"outside-texture-bg-color":"#000","outside-texture-bg-opacity":.125,events:"yes","text-events":"no","text-valign":"top","text-halign":"center","text-justification":"auto","line-height":1,color:"#000","text-outline-color":"#000","text-outline-width":0,"text-outline-opacity":1,"text-opacity":1,"text-decoration":"none","text-transform":"none","text-wrap":"none","text-overflow-wrap":"whitespace","text-max-width":9999,"text-background-color":"#000","text-background-opacity":0,"text-background-shape":"rectangle","text-background-padding":0,"text-border-opacity":0,"text-border-width":0,"text-border-style":"solid","text-border-color":"#000","font-family":"Helvetica Neue, Helvetica, sans-serif","font-style":"normal","font-weight":"normal","font-size":16,"min-zoomed-font-size":0,"text-rotation":"none","source-text-rotation":"none","target-text-rotation":"none",visibility:"visible",display:"element",opacity:1,"z-compound-depth":"auto","z-index-compare":"auto","z-index":0,label:"","text-margin-x":0,"text-margin-y":0,"source-label":"","source-text-offset":0,"source-text-margin-x":0,"source-text-margin-y":0,"target-label":"","target-text-offset":0,"target-text-margin-x":0,"target-text-margin-y":0,"overlay-opacity":0,"overlay-color":"#000","overlay-padding":10,"overlay-shape":"round-rectangle","underlay-opacity":0,"underlay-color":"#000","underlay-padding":10,"underlay-shape":"round-rectangle","transition-property":"none","transition-duration":0,"transition-delay":0,"transition-timing-function":"linear","background-blacken":0,"background-color":"#999","background-fill":"solid","background-opacity":1,"background-image":"none","background-image-crossorigin":"anonymous","background-image-opacity":1,"background-image-containment":"inside","background-image-smoothing":"yes","background-position-x":"50%","background-position-y":"50%","background-offset-x":0,"background-offset-y":0,"background-width-relative-to":"include-padding","background-height-relative-to":"include-padding","background-repeat":"no-repeat","background-fit":"none","background-clip":"node","background-width":"auto","background-height":"auto","border-color":"#000","border-opacity":1,"border-width":0,"border-style":"solid","outline-color":"#999","outline-opacity":1,"outline-width":0,"outline-offset":0,"outline-style":"solid",height:30,width:30,shape:"ellipse","shape-polygon-points":"-1, -1, 1, -1, 1, 1, -1, 1","bounds-expansion":0,"background-gradient-direction":"to-bottom","background-gradient-stop-colors":"#999","background-gradient-stop-positions":"0%",ghost:"no","ghost-offset-y":0,"ghost-offset-x":0,"ghost-opacity":0,padding:0,"padding-relative-to":"width",position:"origin","compound-sizing-wrt-labels":"include","min-width":0,"min-width-bias-left":0,"min-width-bias-right":0,"min-height":0,"min-height-bias-top":0,"min-height-bias-bottom":0},{"pie-size":"100%"},[{name:"pie-{{i}}-background-color",value:"black"},{name:"pie-{{i}}-background-size",value:"0%"},{name:"pie-{{i}}-background-opacity",value:1}].reduce(function(u,l){for(var v=1;v<=It.pieBackgroundN;v++){var f=l.name.replace("{{i}}",v),h=l.value;u[f]=h}return u},{}),{"line-style":"solid","line-color":"#999","line-fill":"solid","line-cap":"butt","line-opacity":1,"line-gradient-stop-colors":"#999","line-gradient-stop-positions":"0%","control-point-step-size":40,"control-point-weights":.5,"segment-weights":.5,"segment-distances":20,"taxi-turn":"50%","taxi-turn-min-distance":10,"taxi-direction":"auto","edge-distances":"intersection","curve-style":"haystack","haystack-radius":0,"arrow-scale":1,"loop-direction":"-45deg","loop-sweep":"-90deg","source-distance-from-node":0,"target-distance-from-node":0,"source-endpoint":"outside-to-node","target-endpoint":"outside-to-node","line-dash-pattern":[6,3],"line-dash-offset":0},[{name:"arrow-shape",value:"none"},{name:"arrow-color",value:"#999"},{name:"arrow-fill",value:"filled"},{name:"arrow-width",value:1}].reduce(function(u,l){return It.arrowPrefixes.forEach(function(v){var f=v+"-"+l.name,h=l.value;u[f]=h}),u},{})),r={},a=0;a<this.properties.length;a++){var n=this.properties[a];if(!n.pointsTo){var i=n.name,o=e[i],s=this.parse(i,o);r[i]=s}}return t.defaultProperties=r,t.defaultProperties},It.addDefaultStylesheet=function(){this.selector(":parent").css({shape:"rectangle",padding:10,"background-color":"#eee","border-color":"#ccc","border-width":1}).selector("edge").css({width:3}).selector(":loop").css({"curve-style":"bezier"}).selector("edge:compound").css({"curve-style":"bezier","source-endpoint":"outside-to-line","target-endpoint":"outside-to-line"}).selector(":selected").css({"background-color":"#0169D9","line-color":"#0169D9","source-arrow-color":"#0169D9","target-arrow-color":"#0169D9","mid-source-arrow-color":"#0169D9","mid-target-arrow-color":"#0169D9"}).selector(":parent:selected").css({"background-color":"#CCE1F9","border-color":"#aec8e5"}).selector(":active").css({"overlay-color":"black","overlay-padding":10,"overlay-opacity":.25}),this.defaultLength=this.length};var Un={};Un.parse=function(t,e,r,a){var n=this;if(H(e))return n.parseImplWarn(t,e,r,a);var i=a==="mapping"||a===!0||a===!1||a==null?"dontcare":a,o=r?"t":"f",s=""+e,u=fo(t,s,o,i),l=n.propCache=n.propCache||[],v;return(v=l[u])||(v=l[u]=n.parseImplWarn(t,e,r,a)),(r||a==="mapping")&&(v=lr(v),v&&(v.value=lr(v.value))),v},Un.parseImplWarn=function(t,e,r,a){var n=this.parseImpl(t,e,r,a);return!n&&e!=null&&ht("The style property `".concat(t,": ").concat(e,"` is invalid")),n&&(n.name==="width"||n.name==="height")&&e==="label"&&ht("The style value of `label` is deprecated for `"+n.name+"`"),n},Un.parseImpl=function(t,e,r,a){var n=this;t=tt(t);var i=n.properties[t],o=e,s=n.types;if(!i||e===void 0)return null;i.alias&&(i=i.pointsTo,t=i.name);var u=ee(e);u&&(e=e.trim());var l=i.type;if(!l)return null;if(r&&(e===""||e===null))return{name:t,value:e,bypass:!0,deleteBypass:!0};if(H(e))return{name:t,value:e,strValue:"fn",mapped:s.fn,bypass:r};var v,f;if(!(!u||a||e.length<7||e[1]!=="a")){if(e.length>=7&&e[0]==="d"&&(v=new RegExp(s.data.regex).exec(e))){if(r)return!1;var h=s.data;return{name:t,value:v,strValue:""+e,mapped:h,field:v[1],bypass:r}}else if(e.length>=10&&e[0]==="m"&&(f=new RegExp(s.mapData.regex).exec(e))){if(r||l.multiple)return!1;var d=s.mapData;if(!(l.color||l.number))return!1;var c=this.parse(t,f[4]);if(!c||c.mapped)return!1;var y=this.parse(t,f[5]);if(!y||y.mapped)return!1;if(c.pfValue===y.pfValue||c.strValue===y.strValue)return ht("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+c.strValue+"`"),this.parse(t,c.strValue);if(l.color){var p=c.value,g=y.value,m=p[0]===g[0]&&p[1]===g[1]&&p[2]===g[2]&&(p[3]===g[3]||(p[3]==null||p[3]===1)&&(g[3]==null||g[3]===1));if(m)return!1}return{name:t,value:f,strValue:""+e,mapped:d,field:f[1],fieldMin:parseFloat(f[2]),fieldMax:parseFloat(f[3]),valueMin:c.value,valueMax:y.value,bypass:r}}}if(l.multiple&&a!=="multiple"){var b;if(u?b=e.split(/\s+/):te(e)?b=e:b=[e],l.evenMultiple&&b.length%2!==0)return null;for(var E=[],M=[],L=[],w="",k=!1,D=0;D<b.length;D++){var F=n.parse(t,b[D],r,"multiple");k=k||ee(F.value),E.push(F.value),L.push(F.pfValue!=null?F.pfValue:F.value),M.push(F.units),w+=(D>0?" ":"")+F.strValue}return l.validate&&!l.validate(E,M)?null:l.singleEnum&&k?E.length===1&&ee(E[0])?{name:t,value:E[0],strValue:E[0],bypass:r}:null:{name:t,value:E,pfValue:L,strValue:w,bypass:r,units:M}}var G=function(){for(var Le=0;Le<l.enums.length;Le++){var Se=l.enums[Le];if(Se===e)return{name:t,value:e,strValue:""+e,bypass:r}}return null};if(l.number){var I,X="px";if(l.units&&(I=l.units),l.implicitUnits&&(X=l.implicitUnits),!l.unitless)if(u){var B="px|em"+(l.allowPercent?"|\\%":"");I&&(B=I);var re=e.match("^("+gt+")("+B+")?$");re&&(e=re[1],I=re[2]||X)}else(!I||l.implicitUnits)&&(I=X);if(e=parseFloat(e),isNaN(e)&&l.enums===void 0)return null;if(isNaN(e)&&l.enums!==void 0)return e=o,G();if(l.integer&&!q(e)||l.min!==void 0&&(e<l.min||l.strictMin&&e===l.min)||l.max!==void 0&&(e>l.max||l.strictMax&&e===l.max))return null;var K={name:t,value:e,strValue:""+e+(I||""),units:I,bypass:r};return l.unitless||I!=="px"&&I!=="em"?K.pfValue=e:K.pfValue=I==="px"||!I?e:this.getEmSizeInPixels()*e,(I==="ms"||I==="s")&&(K.pfValue=I==="ms"?e:1e3*e),(I==="deg"||I==="rad")&&(K.pfValue=I==="rad"?e:yv(e)),I==="%"&&(K.pfValue=e/100),K}else if(l.propList){var W=[],ae=""+e;if(ae!=="none"){for(var ue=ae.split(/\s*,\s*|\s+/),me=0;me<ue.length;me++){var ie=ue[me].trim();n.properties[ie]?W.push(ie):ht("`"+ie+"` is not a valid property name")}if(W.length===0)return null}return{name:t,value:W,strValue:W.length===0?"none":W.join(" "),bypass:r}}else if(l.color){var ge=eu(e);return ge?{name:t,value:ge,pfValue:ge,strValue:"rgb("+ge[0]+","+ge[1]+","+ge[2]+")",bypass:r}:null}else if(l.regex||l.regexes){if(l.enums){var Ee=G();if(Ee)return Ee}for(var Ce=l.regexes?l.regexes:[l.regex],we=0;we<Ce.length;we++){var De=new RegExp(Ce[we]),oe=De.exec(e);if(oe)return{name:t,value:l.singleRegexMatchValue?oe[1]:oe,strValue:""+e,bypass:r}}return null}else return l.string?{name:t,value:""+e,strValue:""+e,bypass:r}:l.enums?G():null};var Gt=function t(e){if(!(this instanceof t))return new t(e);if(!Ye(e)){xt("A style must have a core reference");return}this._private={cy:e,coreStyle:{}},this.length=0,this.resetToDefault()},zt=Gt.prototype;zt.instanceString=function(){return"style"},zt.clear=function(){for(var t=this._private,e=t.cy,r=e.elements(),a=0;a<this.length;a++)this[a]=void 0;return this.length=0,t.contextStyles={},t.propDiffs={},this.cleanElements(r,!0),r.forEach(function(n){var i=n[0]._private;i.styleDirty=!0,i.appliedInitStyle=!1}),this},zt.resetToDefault=function(){return this.clear(),this.addDefaultStylesheet(),this},zt.core=function(t){return this._private.coreStyle[t]||this.getDefaultProperty(t)},zt.selector=function(t){var e=t==="core"?null:new Sr(t),r=this.length++;return this[r]={selector:e,properties:[],mappedProperties:[],index:r},this},zt.css=function(){var t=this,e=arguments;if(e.length===1)for(var r=e[0],a=0;a<t.properties.length;a++){var n=t.properties[a],i=r[n.name];i===void 0&&(i=r[yt(n.name)]),i!==void 0&&this.cssRule(n.name,i)}else e.length===2&&this.cssRule(e[0],e[1]);return this},zt.style=zt.css,zt.cssRule=function(t,e){var r=this.parse(t,e);if(r){var a=this.length-1;this[a].properties.push(r),this[a].properties[r.name]=r,r.name.match(/pie-(\d+)-background-size/)&&r.value&&(this._private.hasPie=!0),r.mapped&&this[a].mappedProperties.push(r);var n=!this[a].selector;n&&(this._private.coreStyle[r.name]=r)}return this},zt.append=function(t){return at(t)?t.appendToStyle(this):te(t)?this.appendFromJson(t):ee(t)&&this.appendFromString(t),this},Gt.fromJson=function(t,e){var r=new Gt(t);return r.fromJson(e),r},Gt.fromString=function(t,e){return new Gt(t).fromString(e)},[Ft,qa,Ri,vr,$n,ki,It,Un].forEach(function(t){He(zt,t)}),Gt.types=zt.types,Gt.properties=zt.properties,Gt.propertyGroups=zt.propertyGroups,Gt.propertyGroupNames=zt.propertyGroupNames,Gt.propertyGroupKeys=zt.propertyGroupKeys;var Gd={style:function(e){if(e){var r=this.setStyle(e);r.update()}return this._private.style},setStyle:function(e){var r=this._private;return at(e)?r.style=e.generateStyle(this):te(e)?r.style=Gt.fromJson(this,e):ee(e)?r.style=Gt.fromString(this,e):r.style=Gt(this),r.style},updateStyle:function(){this.mutableElements().updateStyle()}},zd="single",$r={autolock:function(e){if(e!==void 0)this._private.autolock=!!e;else return this._private.autolock;return this},autoungrabify:function(e){if(e!==void 0)this._private.autoungrabify=!!e;else return this._private.autoungrabify;return this},autounselectify:function(e){if(e!==void 0)this._private.autounselectify=!!e;else return this._private.autounselectify;return this},selectionType:function(e){var r=this._private;if(r.selectionType==null&&(r.selectionType=zd),e!==void 0)(e==="additive"||e==="single")&&(r.selectionType=e);else return r.selectionType;return this},panningEnabled:function(e){if(e!==void 0)this._private.panningEnabled=!!e;else return this._private.panningEnabled;return this},userPanningEnabled:function(e){if(e!==void 0)this._private.userPanningEnabled=!!e;else return this._private.userPanningEnabled;return this},zoomingEnabled:function(e){if(e!==void 0)this._private.zoomingEnabled=!!e;else return this._private.zoomingEnabled;return this},userZoomingEnabled:function(e){if(e!==void 0)this._private.userZoomingEnabled=!!e;else return this._private.userZoomingEnabled;return this},boxSelectionEnabled:function(e){if(e!==void 0)this._private.boxSelectionEnabled=!!e;else return this._private.boxSelectionEnabled;return this},pan:function(){var e=arguments,r=this._private.pan,a,n,i,o,s;switch(e.length){case 0:return r;case 1:if(ee(e[0]))return a=e[0],r[a];if(S(e[0])){if(!this._private.panningEnabled)return this;i=e[0],o=i.x,s=i.y,R(o)&&(r.x=o),R(s)&&(r.y=s),this.emit("pan viewport")}break;case 2:if(!this._private.panningEnabled)return this;a=e[0],n=e[1],(a==="x"||a==="y")&&R(n)&&(r[a]=n),this.emit("pan viewport");break}return this.notify("viewport"),this},panBy:function(e,r){var a=arguments,n=this._private.pan,i,o,s,u,l;if(!this._private.panningEnabled)return this;switch(a.length){case 1:S(e)&&(s=a[0],u=s.x,l=s.y,R(u)&&(n.x+=u),R(l)&&(n.y+=l),this.emit("pan viewport"));break;case 2:i=e,o=r,(i==="x"||i==="y")&&R(o)&&(n[i]+=o),this.emit("pan viewport");break}return this.notify("viewport"),this},fit:function(e,r){var a=this.getFitViewport(e,r);if(a){var n=this._private;n.zoom=a.zoom,n.pan=a.pan,this.emit("pan zoom viewport"),this.notify("viewport")}return this},getFitViewport:function(e,r){if(R(e)&&r===void 0&&(r=e,e=void 0),!(!this._private.panningEnabled||!this._private.zoomingEnabled)){var a;if(ee(e)){var n=e;e=this.$(n)}else if(Ze(e)){var i=e;a={x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2},a.w=a.x2-a.x1,a.h=a.y2-a.y1}else pe(e)||(e=this.mutableElements());if(!(pe(e)&&e.empty())){a=a||e.boundingBox();var o=this.width(),s=this.height(),u;if(r=R(r)?r:0,!isNaN(o)&&!isNaN(s)&&o>0&&s>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0){u=Math.min((o-2*r)/a.w,(s-2*r)/a.h),u=u>this._private.maxZoom?this._private.maxZoom:u,u=u<this._private.minZoom?this._private.minZoom:u;var l={x:(o-u*(a.x1+a.x2))/2,y:(s-u*(a.y1+a.y2))/2};return{zoom:u,pan:l}}}}},zoomRange:function(e,r){var a=this._private;if(r==null){var n=e;e=n.min,r=n.max}return R(e)&&R(r)&&e<=r?(a.minZoom=e,a.maxZoom=r):R(e)&&r===void 0&&e<=a.maxZoom?a.minZoom=e:R(r)&&e===void 0&&r>=a.minZoom&&(a.maxZoom=r),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var r=this._private,a=r.pan,n=r.zoom,i,o,s=!1;if(r.zoomingEnabled||(s=!0),R(e)?o=e:S(e)&&(o=e.level,e.position!=null?i=hn(e.position,n,a):e.renderedPosition!=null&&(i=e.renderedPosition),i!=null&&!r.panningEnabled&&(s=!0)),o=o>r.maxZoom?r.maxZoom:o,o=o<r.minZoom?r.minZoom:o,s||!R(o)||o===n||i!=null&&(!R(i.x)||!R(i.y)))return null;if(i!=null){var u=a,l=n,v=o,f={x:-v/l*(i.x-u.x)+i.x,y:-v/l*(i.y-u.y)+i.y};return{zoomed:!0,panned:!0,zoom:v,pan:f}}else return{zoomed:!0,panned:!1,zoom:o,pan:a}},zoom:function(e){if(e===void 0)return this._private.zoom;var r=this.getZoomedViewport(e),a=this._private;return r==null||!r.zoomed?this:(a.zoom=r.zoom,r.panned&&(a.pan.x=r.pan.x,a.pan.y=r.pan.y),this.emit("zoom"+(r.panned?" pan":"")+" viewport"),this.notify("viewport"),this)},viewport:function(e){var r=this._private,a=!0,n=!0,i=[],o=!1,s=!1;if(!e)return this;if(R(e.zoom)||(a=!1),S(e.pan)||(n=!1),!a&&!n)return this;if(a){var u=e.zoom;u<r.minZoom||u>r.maxZoom||!r.zoomingEnabled?o=!0:(r.zoom=u,i.push("zoom"))}if(n&&(!o||!e.cancelOnFailedZoom)&&r.panningEnabled){var l=e.pan;R(l.x)&&(r.pan.x=l.x,s=!1),R(l.y)&&(r.pan.y=l.y,s=!1),s||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(e){var r=this.getCenterPan(e);return r&&(this._private.pan=r,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,r){if(this._private.panningEnabled){if(ee(e)){var a=e;e=this.mutableElements().filter(a)}else pe(e)||(e=this.mutableElements());if(e.length!==0){var n=e.boundingBox(),i=this.width(),o=this.height();r=r===void 0?this._private.zoom:r;var s={x:(i-r*(n.x1+n.x2))/2,y:(o-r*(n.y1+n.y2))/2};return s}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,r=e.container,a=this;return e.sizeCache=e.sizeCache||(r?function(){var n=a.window().getComputedStyle(r),i=function(s){return parseFloat(n.getPropertyValue(s))};return{width:r.clientWidth-i("padding-left")-i("padding-right"),height:r.clientHeight-i("padding-top")-i("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,r=this._private.zoom,a=this.renderedExtent(),n={x1:(a.x1-e.x)/r,x2:(a.x2-e.x)/r,y1:(a.y1-e.y)/r,y2:(a.y2-e.y)/r};return n.w=n.x2-n.x1,n.h=n.y2-n.y1,n},renderedExtent:function(){var e=this.width(),r=this.height();return{x1:0,y1:0,x2:e,y2:r,w:e,h:r}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};$r.centre=$r.center,$r.autolockNodes=$r.autolock,$r.autoungrabifyNodes=$r.autoungrabify;var Ka={data:ct.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:ct.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:ct.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ct.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};Ka.attr=Ka.data,Ka.removeAttr=Ka.removeData;var Za=function(e){var r=this;e=He({},e);var a=e.container;a&&!he(a)&&he(a[0])&&(a=a[0]);var n=a?a._cyreg:null;n=n||{},n&&n.cy&&(n.cy.destroy(),n={});var i=n.readies=n.readies||[];a&&(a._cyreg=n),n.cy=r;var o=A!==void 0&&a!==void 0&&!e.headless,s=e;s.layout=He({name:o?"grid":"null"},s.layout),s.renderer=He({name:o?"canvas":"null"},s.renderer);var u=function(c,y,p){return y!==void 0?y:p!==void 0?p:c},l=this._private={container:a,ready:!1,options:s,elements:new Nt(this),listeners:[],aniEles:new Nt(this),data:s.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:u(!0,s.zoomingEnabled),userZoomingEnabled:u(!0,s.userZoomingEnabled),panningEnabled:u(!0,s.panningEnabled),userPanningEnabled:u(!0,s.userPanningEnabled),boxSelectionEnabled:u(!0,s.boxSelectionEnabled),autolock:u(!1,s.autolock,s.autolockNodes),autoungrabify:u(!1,s.autoungrabify,s.autoungrabifyNodes),autounselectify:u(!1,s.autounselectify),styleEnabled:s.styleEnabled===void 0?o:s.styleEnabled,zoom:R(s.zoom)?s.zoom:1,pan:{x:S(s.pan)&&R(s.pan.x)?s.pan.x:0,y:S(s.pan)&&R(s.pan.y)?s.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:u(250,s.multiClickDebounceTime)};this.createEmitter(),this.selectionType(s.selectionType),this.zoomRange({min:s.minZoom,max:s.maxZoom});var v=function(c,y){var p=c.some(nt);if(p)return ia.all(c).then(y);y(c)};l.styleEnabled&&r.setStyle([]);var f=He({},s,s.renderer);r.initRenderer(f);var h=function(c,y,p){r.notifications(!1);var g=r.mutableElements();g.length>0&&g.remove(),c!=null&&(S(c)||te(c))&&r.add(c),r.one("layoutready",function(b){r.notifications(!0),r.emit(b),r.one("load",y),r.emitAndNotify("load")}).one("layoutstop",function(){r.one("done",p),r.emit("done")});var m=He({},r._private.options.layout);m.eles=r.elements(),r.layout(m).run()};v([s.style,s.elements],function(d){var c=d[0],y=d[1];l.styleEnabled&&r.style().append(c),h(y,function(){r.startAnimationLoop(),l.ready=!0,H(s.ready)&&r.on("ready",s.ready);for(var p=0;p<i.length;p++){var g=i[p];r.on("ready",g)}n&&(n.readies=[]),r.emit("ready")},s.done)})},_n=Za.prototype;He(_n,{instanceString:function(){return"core"},isReady:function(){return this._private.ready},destroyed:function(){return this._private.destroyed},ready:function(e){return this.isReady()?this.emitter().emit("ready",[],e):this.on("ready",e),this},destroy:function(){var e=this;if(!e.destroyed())return e.stopAnimationLoop(),e.destroyRenderer(),this.emit("destroy"),e._private.destroyed=!0,e},hasElementWithId:function(e){return this._private.elements.hasElementWithId(e)},getElementById:function(e){return this._private.elements.getElementById(e)},hasCompoundNodes:function(){return this._private.hasCompoundNodes},headless:function(){return this._private.renderer.isHeadless()},styleEnabled:function(){return this._private.styleEnabled},addToPool:function(e){return this._private.elements.merge(e),this},removeFromPool:function(e){return this._private.elements.unmerge(e),this},container:function(){return this._private.container||null},window:function(){var e=this._private.container;if(e==null)return A;var r=this._private.container.ownerDocument;return r===void 0||r==null?A:r.defaultView||A},mount:function(e){if(e!=null){var r=this,a=r._private,n=a.options;return!he(e)&&he(e[0])&&(e=e[0]),r.stopAnimationLoop(),r.destroyRenderer(),a.container=e,a.styleEnabled=!0,r.invalidateSize(),r.initRenderer(He({},n,n.renderer,{name:n.renderer.name==="null"?"canvas":n.renderer.name})),r.startAnimationLoop(),r.style(n.style),r.emit("mount"),r}},unmount:function(){var e=this;return e.stopAnimationLoop(),e.destroyRenderer(),e.initRenderer({name:"null"}),e.emit("unmount"),e},options:function(){return lr(this._private.options)},json:function(e){var r=this,a=r._private,n=r.mutableElements(),i=function(E){return r.getElementById(E.id())};if(S(e)){if(r.startBatch(),e.elements){var o={},s=function(E,M){for(var L=[],w=[],k=0;k<E.length;k++){var D=E[k];if(!D.data.id){ht("cy.json() cannot handle elements without an ID attribute");continue}var F=""+D.data.id,G=r.getElementById(F);o[F]=!0,G.length!==0?w.push({ele:G,json:D}):(M&&(D.group=M),L.push(D))}r.add(L);for(var I=0;I<w.length;I++){var X=w[I],B=X.ele,re=X.json;B.json(re)}};if(te(e.elements))s(e.elements);else for(var u=["nodes","edges"],l=0;l<u.length;l++){var v=u[l],f=e.elements[v];te(f)&&s(f,v)}var h=r.collection();n.filter(function(b){return!o[b.id()]}).forEach(function(b){b.isParent()?h.merge(b):b.remove()}),h.forEach(function(b){return b.children().move({parent:null})}),h.forEach(function(b){return i(b).remove()})}e.style&&r.style(e.style),e.zoom!=null&&e.zoom!==a.zoom&&r.zoom(e.zoom),e.pan&&(e.pan.x!==a.pan.x||e.pan.y!==a.pan.y)&&r.pan(e.pan),e.data&&r.data(e.data);for(var d=["minZoom","maxZoom","zoomingEnabled","userZoomingEnabled","panningEnabled","userPanningEnabled","boxSelectionEnabled","autolock","autoungrabify","autounselectify","multiClickDebounceTime"],c=0;c<d.length;c++){var y=d[c];e[y]!=null&&r[y](e[y])}return r.endBatch(),this}else{var p=!!e,g={};p?g.elements=this.elements().map(function(b){return b.json()}):(g.elements={},n.forEach(function(b){var E=b.group();g.elements[E]||(g.elements[E]=[]),g.elements[E].push(b.json())})),this._private.styleEnabled&&(g.style=r.style().json()),g.data=lr(r.data());var m=a.options;return g.zoomingEnabled=a.zoomingEnabled,g.userZoomingEnabled=a.userZoomingEnabled,g.zoom=a.zoom,g.minZoom=a.minZoom,g.maxZoom=a.maxZoom,g.panningEnabled=a.panningEnabled,g.userPanningEnabled=a.userPanningEnabled,g.pan=lr(a.pan),g.boxSelectionEnabled=a.boxSelectionEnabled,g.renderer=lr(m.renderer),g.hideEdgesOnViewport=m.hideEdgesOnViewport,g.textureOnViewport=m.textureOnViewport,g.wheelSensitivity=m.wheelSensitivity,g.motionBlur=m.motionBlur,g.multiClickDebounceTime=m.multiClickDebounceTime,g}}}),_n.$id=_n.getElementById,[Ad,Rd,Ys,Ii,zn,Pd,Mi,Vn,Gd,$r,Ka].forEach(function(t){He(_n,t)});var Vd={fit:!0,directed:!1,padding:30,circle:!1,grid:!1,spacingFactor:1.75,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,roots:void 0,depthSort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}},$d={maximal:!1,acyclic:!1},pa=function(e){return e.scratch("breadthfirst")},Hs=function(e,r){return e.scratch("breadthfirst",r)};function Xs(t){this.options=He({},Vd,$d,t)}Xs.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=a.nodes().filter(function(Ie){return!Ie.isParent()}),i=a,o=e.directed,s=e.acyclic||e.maximal||e.maximalAdjustments>0,u=Yt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),l;if(pe(e.roots))l=e.roots;else if(te(e.roots)){for(var v=[],f=0;f<e.roots.length;f++){var h=e.roots[f],d=r.getElementById(h);v.push(d)}l=r.collection(v)}else if(ee(e.roots))l=r.$(e.roots);else if(o)l=n.roots();else{var c=a.components();l=r.collection();for(var y=function(Me){var $e=c[Me],ze=$e.maxDegree(!1),Be=$e.filter(function(Ue){return Ue.degree(!1)===ze});l=l.add(Be)},p=0;p<c.length;p++)y(p)}var g=[],m={},b=function(Me,$e){g[$e]==null&&(g[$e]=[]);var ze=g[$e].length;g[$e].push(Me),Hs(Me,{index:ze,depth:$e})},E=function(Me,$e){var ze=pa(Me),Be=ze.depth,Ue=ze.index;g[Be][Ue]=null,b(Me,$e)};i.bfs({roots:l,directed:e.directed,visit:function(Me,$e,ze,Be,Ue){var rt=Me[0],je=rt.id();b(rt,Ue),m[je]=!0}});for(var M=[],L=0;L<n.length;L++){var w=n[L];m[w.id()]||M.push(w)}var k=function(Me){for(var $e=g[Me],ze=0;ze<$e.length;ze++){var Be=$e[ze];if(Be==null){$e.splice(ze,1),ze--;continue}Hs(Be,{depth:Me,index:ze})}},D=function(){for(var Me=0;Me<g.length;Me++)k(Me)},F=function(Me,$e){for(var ze=pa(Me),Be=Me.incomers().filter(function(O){return O.isNode()&&a.has(O)}),Ue=-1,rt=Me.id(),je=0;je<Be.length;je++){var We=Be[je],et=pa(We);Ue=Math.max(Ue,et.depth)}if(ze.depth<=Ue){if(!e.acyclic&&$e[rt])return null;var fe=Ue+1;return E(Me,fe),$e[rt]=fe,!0}return!1};if(o&&s){var G=[],I={},X=function(Me){return G.push(Me)},B=function(){return G.shift()};for(n.forEach(function(Ie){return G.push(Ie)});G.length>0;){var re=B(),K=F(re,I);if(K)re.outgoers().filter(function(Ie){return Ie.isNode()&&a.has(Ie)}).forEach(X);else if(K===null){ht("Detected double maximal shift for node `"+re.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}D();var W=0;if(e.avoidOverlap)for(var ae=0;ae<n.length;ae++){var ue=n[ae],me=ue.layoutDimensions(e),ie=me.w,ge=me.h;W=Math.max(W,ie,ge)}var Ee={},Ce=function(Me){if(Ee[Me.id()])return Ee[Me.id()];for(var $e=pa(Me).depth,ze=Me.neighborhood(),Be=0,Ue=0,rt=0;rt<ze.length;rt++){var je=ze[rt];if(!(je.isEdge()||je.isParent()||!n.has(je))){var We=pa(je);if(We!=null){var et=We.index,fe=We.depth;if(!(et==null||fe==null)){var O=g[fe].length;fe<$e&&(Be+=et/O,Ue++)}}}}return Ue=Math.max(1,Ue),Be=Be/Ue,Ue===0&&(Be=0),Ee[Me.id()]=Be,Be},we=function(Me,$e){var ze=Ce(Me),Be=Ce($e),Ue=ze-Be;return Ue===0?eo(Me.id(),$e.id()):Ue};e.depthSort!==void 0&&(we=e.depthSort);for(var De=0;De<g.length;De++)g[De].sort(we),k(De);for(var oe=[],xe=0;xe<M.length;xe++)oe.push(M[xe]);g.unshift(oe),D();for(var Le=0,Se=0;Se<g.length;Se++)Le=Math.max(g[Se].length,Le);var Oe={x:u.x1+u.w/2,y:u.x1+u.h/2},Fe=g.reduce(function(Ie,Me){return Math.max(Ie,Me.length)},0),Xe=function(Me){var $e=pa(Me),ze=$e.depth,Be=$e.index,Ue=g[ze].length,rt=Math.max(u.w/((e.grid?Fe:Ue)+1),W),je=Math.max(u.h/(g.length+1),W),We=Math.min(u.w/2/g.length,u.h/2/g.length);if(We=Math.max(We,W),e.circle){var fe=We*ze+We-(g.length>0&&g[0].length<=3?We/2:0),O=2*Math.PI/g[ze].length*Be;return ze===0&&g[0].length===1&&(fe=1),{x:Oe.x+fe*Math.cos(O),y:Oe.y+fe*Math.sin(O)}}else{var et={x:Oe.x+(Be+1-(Ue+1)/2)*rt,y:(ze+1)*je};return et}};return a.nodes().layoutPositions(this,e,Xe),this};var Ud={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function Ws(t){this.options=He({},Ud,t)}Ws.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,i=a.nodes().not(":parent");e.sort&&(i=i.sort(e.sort));for(var o=Yt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},u=e.sweep===void 0?2*Math.PI-2*Math.PI/i.length:e.sweep,l=u/Math.max(1,i.length-1),v,f=0,h=0;h<i.length;h++){var d=i[h],c=d.layoutDimensions(e),y=c.w,p=c.h;f=Math.max(f,y,p)}if(R(e.radius)?v=e.radius:i.length<=1?v=0:v=Math.min(o.h,o.w)/2-f,i.length>1&&e.avoidOverlap){f*=1.75;var g=Math.cos(l)-Math.cos(0),m=Math.sin(l)-Math.sin(0),b=Math.sqrt(f*f/(g*g+m*m));v=Math.max(b,v)}var E=function(L,w){var k=e.startAngle+w*l*(n?1:-1),D=v*Math.cos(k),F=v*Math.sin(k),G={x:s.x+D,y:s.y+F};return G};return a.nodes().layoutPositions(this,e,E),this};var _d={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function qs(t){this.options=He({},_d,t)}qs.prototype.run=function(){for(var t=this.options,e=t,r=e.counterclockwise!==void 0?!e.counterclockwise:e.clockwise,a=t.cy,n=e.eles,i=n.nodes().not(":parent"),o=Yt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},u=[],l=0,v=0;v<i.length;v++){var f=i[v],h=void 0;h=e.concentric(f),u.push({value:h,node:f}),f._private.scratch.concentric=h}i.updateStyle();for(var d=0;d<i.length;d++){var c=i[d],y=c.layoutDimensions(e);l=Math.max(l,y.w,y.h)}u.sort(function(Ie,Me){return Me.value-Ie.value});for(var p=e.levelWidth(i),g=[[]],m=g[0],b=0;b<u.length;b++){var E=u[b];if(m.length>0){var M=Math.abs(m[0].value-E.value);M>=p&&(m=[],g.push(m))}m.push(E)}var L=l+e.minNodeSpacing;if(!e.avoidOverlap){var w=g.length>0&&g[0].length>1,k=Math.min(o.w,o.h)/2-L,D=k/(g.length+w?1:0);L=Math.min(L,D)}for(var F=0,G=0;G<g.length;G++){var I=g[G],X=e.sweep===void 0?2*Math.PI-2*Math.PI/I.length:e.sweep,B=I.dTheta=X/Math.max(1,I.length-1);if(I.length>1&&e.avoidOverlap){var re=Math.cos(B)-Math.cos(0),K=Math.sin(B)-Math.sin(0),W=Math.sqrt(L*L/(re*re+K*K));F=Math.max(W,F)}I.r=F,F+=L}if(e.equidistant){for(var ae=0,ue=0,me=0;me<g.length;me++){var ie=g[me],ge=ie.r-ue;ae=Math.max(ae,ge)}ue=0;for(var Ee=0;Ee<g.length;Ee++){var Ce=g[Ee];Ee===0&&(ue=Ce.r),Ce.r=ue,ue+=ae}}for(var we={},De=0;De<g.length;De++)for(var oe=g[De],xe=oe.dTheta,Le=oe.r,Se=0;Se<oe.length;Se++){var Oe=oe[Se],Fe=e.startAngle+(r?1:-1)*xe*Se,Xe={x:s.x+Le*Math.cos(Fe),y:s.y+Le*Math.sin(Fe)};we[Oe.node.id()]=Xe}return n.nodes().layoutPositions(this,e,function(Ie){var Me=Ie.id();return we[Me]}),this};var Pi,Yd={ready:function(){},stop:function(){},animate:!0,animationEasing:void 0,animationDuration:void 0,animateFilter:function(e,r){return!0},animationThreshold:250,refresh:20,fit:!0,padding:30,boundingBox:void 0,nodeDimensionsIncludeLabels:!1,randomize:!1,componentSpacing:40,nodeRepulsion:function(e){return 2048},nodeOverlap:4,idealEdgeLength:function(e){return 32},edgeElasticity:function(e){return 32},nestingFactor:1.2,gravity:1,numIter:1e3,initialTemp:1e3,coolingFactor:.99,minTemp:1};function Yn(t){this.options=He({},Yd,t),this.options.layout=this;var e=this.options.eles.nodes(),r=this.options.eles.edges(),a=r.filter(function(n){var i=n.source().data("id"),o=n.target().data("id"),s=e.some(function(l){return l.data("id")===i}),u=e.some(function(l){return l.data("id")===o});return!s||!u});this.options.eles=this.options.eles.not(a)}Yn.prototype.run=function(){var t=this.options,e=t.cy,r=this;r.stopped=!1,(t.animate===!0||t.animate===!1)&&r.emit({type:"layoutstart",layout:r}),t.debug===!0?Pi=!0:Pi=!1;var a=Hd(e,r,t);Pi&&qd(a),t.randomize&&Kd(a);var n=gr(),i=function(){Zd(a,e,t),t.fit===!0&&e.fit(t.padding)},o=function(h){return!(r.stopped||h>=t.numIter||(Qd(a,t),a.temperature=a.temperature*t.coolingFactor,a.temperature<t.minTemp))},s=function(){if(t.animate===!0||t.animate===!1)i(),r.one("layoutstop",t.stop),r.emit({type:"layoutstop",layout:r});else{var h=t.eles.nodes(),d=Ks(a,t,h);h.layoutPositions(r,t,d)}},u=0,l=!0;if(t.animate===!0){var v=function f(){for(var h=0;l&&h<t.refresh;)l=o(u),u++,h++;if(!l)Qs(a,t),s();else{var d=gr();d-n>=t.animationThreshold&&i(),ln(f)}};v()}else{for(;l;)l=o(u),u++;Qs(a,t),s()}return this},Yn.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},Yn.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var Hd=function(e,r,a){for(var n=a.eles.edges(),i=a.eles.nodes(),o=Yt(a.boundingBox?a.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),s={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:n.size(),temperature:a.initialTemp,clientWidth:o.w,clientHeight:o.h,boundingBox:o},u=a.eles.components(),l={},v=0;v<u.length;v++)for(var f=u[v],h=0;h<f.length;h++){var d=f[h];l[d.id()]=v}for(var v=0;v<s.nodeSize;v++){var c=i[v],y=c.layoutDimensions(a),p={};p.isLocked=c.locked(),p.id=c.data("id"),p.parentId=c.data("parent"),p.cmptId=l[c.id()],p.children=[],p.positionX=c.position("x"),p.positionY=c.position("y"),p.offsetX=0,p.offsetY=0,p.height=y.w,p.width=y.h,p.maxX=p.positionX+p.width/2,p.minX=p.positionX-p.width/2,p.maxY=p.positionY+p.height/2,p.minY=p.positionY-p.height/2,p.padLeft=parseFloat(c.style("padding")),p.padRight=parseFloat(c.style("padding")),p.padTop=parseFloat(c.style("padding")),p.padBottom=parseFloat(c.style("padding")),p.nodeRepulsion=H(a.nodeRepulsion)?a.nodeRepulsion(c):a.nodeRepulsion,s.layoutNodes.push(p),s.idToIndex[p.id]=v}for(var g=[],m=0,b=-1,E=[],v=0;v<s.nodeSize;v++){var c=s.layoutNodes[v],M=c.parentId;M!=null?s.layoutNodes[s.idToIndex[M]].children.push(c.id):(g[++b]=c.id,E.push(c.id))}for(s.graphSet.push(E);m<=b;){var L=g[m++],w=s.idToIndex[L],d=s.layoutNodes[w],k=d.children;if(k.length>0){s.graphSet.push(k);for(var v=0;v<k.length;v++)g[++b]=k[v]}}for(var v=0;v<s.graphSet.length;v++)for(var D=s.graphSet[v],h=0;h<D.length;h++){var F=s.idToIndex[D[h]];s.indexToGraph[F]=v}for(var v=0;v<s.edgeSize;v++){var G=n[v],I={};I.id=G.data("id"),I.sourceId=G.data("source"),I.targetId=G.data("target");var X=H(a.idealEdgeLength)?a.idealEdgeLength(G):a.idealEdgeLength,B=H(a.edgeElasticity)?a.edgeElasticity(G):a.edgeElasticity,re=s.idToIndex[I.sourceId],K=s.idToIndex[I.targetId],W=s.indexToGraph[re],ae=s.indexToGraph[K];if(W!=ae){for(var ue=Xd(I.sourceId,I.targetId,s),me=s.graphSet[ue],ie=0,p=s.layoutNodes[re];me.indexOf(p.id)===-1;)p=s.layoutNodes[s.idToIndex[p.parentId]],ie++;for(p=s.layoutNodes[K];me.indexOf(p.id)===-1;)p=s.layoutNodes[s.idToIndex[p.parentId]],ie++;X*=ie*a.nestingFactor}I.idealLength=X,I.elasticity=B,s.layoutEdges.push(I)}return s},Xd=function(e,r,a){var n=Wd(e,r,0,a);return 2>n.count?0:n.graph},Wd=function t(e,r,a,n){var i=n.graphSet[a];if(-1<i.indexOf(e)&&-1<i.indexOf(r))return{count:2,graph:a};for(var o=0,s=0;s<i.length;s++){var u=i[s],l=n.idToIndex[u],v=n.layoutNodes[l].children;if(v.length!==0){var f=n.indexToGraph[n.idToIndex[v[0]]],h=t(e,r,f,n);if(h.count!==0)if(h.count===1){if(o++,o===2)break}else return h}}return{count:o,graph:a}},qd,Kd=function(e,r){for(var a=e.clientWidth,n=e.clientHeight,i=0;i<e.nodeSize;i++){var o=e.layoutNodes[i];o.children.length===0&&!o.isLocked&&(o.positionX=Math.random()*a,o.positionY=Math.random()*n)}},Ks=function(e,r,a){var n=e.boundingBox,i={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0};return r.boundingBox&&(a.forEach(function(o){var s=e.layoutNodes[e.idToIndex[o.data("id")]];i.x1=Math.min(i.x1,s.positionX),i.x2=Math.max(i.x2,s.positionX),i.y1=Math.min(i.y1,s.positionY),i.y2=Math.max(i.y2,s.positionY)}),i.w=i.x2-i.x1,i.h=i.y2-i.y1),function(o,s){var u=e.layoutNodes[e.idToIndex[o.data("id")]];if(r.boundingBox){var l=(u.positionX-i.x1)/i.w,v=(u.positionY-i.y1)/i.h;return{x:n.x1+l*n.w,y:n.y1+v*n.h}}else return{x:u.positionX,y:u.positionY}}},Zd=function(e,r,a){var n=a.layout,i=a.eles.nodes(),o=Ks(e,a,i);i.positions(o),e.ready!==!0&&(e.ready=!0,n.one("layoutready",a.ready),n.emit({type:"layoutready",layout:this}))},Qd=function(e,r,a){Jd(e,r),tg(e),rg(e,r),ag(e),ng(e)},Jd=function(e,r){for(var a=0;a<e.graphSet.length;a++)for(var n=e.graphSet[a],i=n.length,o=0;o<i;o++)for(var s=e.layoutNodes[e.idToIndex[n[o]]],u=o+1;u<i;u++){var l=e.layoutNodes[e.idToIndex[n[u]]];jd(s,l,e,r)}},Zs=function(e){return-e+2*e*Math.random()},jd=function(e,r,a,n){var i=e.cmptId,o=r.cmptId;if(!(i!==o&&!a.isCompound)){var s=r.positionX-e.positionX,u=r.positionY-e.positionY,l=1;s===0&&u===0&&(s=Zs(l),u=Zs(l));var v=eg(e,r,s,u);if(v>0)var f=n.nodeOverlap*v,h=Math.sqrt(s*s+u*u),d=f*s/h,c=f*u/h;else var y=Hn(e,s,u),p=Hn(r,-1*s,-1*u),g=p.x-y.x,m=p.y-y.y,b=g*g+m*m,h=Math.sqrt(b),f=(e.nodeRepulsion+r.nodeRepulsion)/b,d=f*g/h,c=f*m/h;e.isLocked||(e.offsetX-=d,e.offsetY-=c),r.isLocked||(r.offsetX+=d,r.offsetY+=c)}},eg=function(e,r,a,n){if(a>0)var i=e.maxX-r.minX;else var i=r.maxX-e.minX;if(n>0)var o=e.maxY-r.minY;else var o=r.maxY-e.minY;return i>=0&&o>=0?Math.sqrt(i*i+o*o):0},Hn=function(e,r,a){var n=e.positionX,i=e.positionY,o=e.height||1,s=e.width||1,u=a/r,l=o/s,v={};return r===0&&0<a||r===0&&0>a?(v.x=n,v.y=i+o/2,v):0<r&&-1*l<=u&&u<=l?(v.x=n+s/2,v.y=i+s*a/2/r,v):0>r&&-1*l<=u&&u<=l?(v.x=n-s/2,v.y=i-s*a/2/r,v):0<a&&(u<=-1*l||u>=l)?(v.x=n+o*r/2/a,v.y=i+o/2,v):(0>a&&(u<=-1*l||u>=l)&&(v.x=n-o*r/2/a,v.y=i-o/2),v)},tg=function(e,r){for(var a=0;a<e.edgeSize;a++){var n=e.layoutEdges[a],i=e.idToIndex[n.sourceId],o=e.layoutNodes[i],s=e.idToIndex[n.targetId],u=e.layoutNodes[s],l=u.positionX-o.positionX,v=u.positionY-o.positionY;if(!(l===0&&v===0)){var f=Hn(o,l,v),h=Hn(u,-1*l,-1*v),d=h.x-f.x,c=h.y-f.y,y=Math.sqrt(d*d+c*c),p=Math.pow(n.idealLength-y,2)/n.elasticity;if(y!==0)var g=p*d/y,m=p*c/y;else var g=0,m=0;o.isLocked||(o.offsetX+=g,o.offsetY+=m),u.isLocked||(u.offsetX-=g,u.offsetY-=m)}}},rg=function(e,r){if(r.gravity!==0)for(var a=1,n=0;n<e.graphSet.length;n++){var i=e.graphSet[n],o=i.length;if(n===0)var s=e.clientHeight/2,u=e.clientWidth/2;else var l=e.layoutNodes[e.idToIndex[i[0]]],v=e.layoutNodes[e.idToIndex[l.parentId]],s=v.positionX,u=v.positionY;for(var f=0;f<o;f++){var h=e.layoutNodes[e.idToIndex[i[f]]];if(!h.isLocked){var d=s-h.positionX,c=u-h.positionY,y=Math.sqrt(d*d+c*c);if(y>a){var p=r.gravity*d/y,g=r.gravity*c/y;h.offsetX+=p,h.offsetY+=g}}}}},ag=function(e,r){var a=[],n=0,i=-1;for(a.push.apply(a,e.graphSet[0]),i+=e.graphSet[0].length;n<=i;){var o=a[n++],s=e.idToIndex[o],u=e.layoutNodes[s],l=u.children;if(0<l.length&&!u.isLocked){for(var v=u.offsetX,f=u.offsetY,h=0;h<l.length;h++){var d=e.layoutNodes[e.idToIndex[l[h]]];d.offsetX+=v,d.offsetY+=f,a[++i]=l[h]}u.offsetX=0,u.offsetY=0}}},ng=function(e,r){for(var a=0;a<e.nodeSize;a++){var n=e.layoutNodes[a];0<n.children.length&&(n.maxX=void 0,n.minX=void 0,n.maxY=void 0,n.minY=void 0)}for(var a=0;a<e.nodeSize;a++){var n=e.layoutNodes[a];if(!(0<n.children.length||n.isLocked)){var i=ig(n.offsetX,n.offsetY,e.temperature);n.positionX+=i.x,n.positionY+=i.y,n.offsetX=0,n.offsetY=0,n.minX=n.positionX-n.width,n.maxX=n.positionX+n.width,n.minY=n.positionY-n.height,n.maxY=n.positionY+n.height,og(n,e)}}for(var a=0;a<e.nodeSize;a++){var n=e.layoutNodes[a];0<n.children.length&&!n.isLocked&&(n.positionX=(n.maxX+n.minX)/2,n.positionY=(n.maxY+n.minY)/2,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY)}},ig=function(e,r,a){var n=Math.sqrt(e*e+r*r);if(n>a)var i={x:a*e/n,y:a*r/n};else var i={x:e,y:r};return i},og=function t(e,r){var a=e.parentId;if(a!=null){var n=r.layoutNodes[r.idToIndex[a]],i=!1;if((n.maxX==null||e.maxX+n.padRight>n.maxX)&&(n.maxX=e.maxX+n.padRight,i=!0),(n.minX==null||e.minX-n.padLeft<n.minX)&&(n.minX=e.minX-n.padLeft,i=!0),(n.maxY==null||e.maxY+n.padBottom>n.maxY)&&(n.maxY=e.maxY+n.padBottom,i=!0),(n.minY==null||e.minY-n.padTop<n.minY)&&(n.minY=e.minY-n.padTop,i=!0),i)return t(n,r)}},Qs=function(e,r){for(var a=e.layoutNodes,n=[],i=0;i<a.length;i++){var o=a[i],s=o.cmptId,u=n[s]=n[s]||[];u.push(o)}for(var l=0,i=0;i<n.length;i++){var v=n[i];if(v){v.x1=1/0,v.x2=-1/0,v.y1=1/0,v.y2=-1/0;for(var f=0;f<v.length;f++){var h=v[f];v.x1=Math.min(v.x1,h.positionX-h.width/2),v.x2=Math.max(v.x2,h.positionX+h.width/2),v.y1=Math.min(v.y1,h.positionY-h.height/2),v.y2=Math.max(v.y2,h.positionY+h.height/2)}v.w=v.x2-v.x1,v.h=v.y2-v.y1,l+=v.w*v.h}}n.sort(function(m,b){return b.w*b.h-m.w*m.h});for(var d=0,c=0,y=0,p=0,g=Math.sqrt(l)*e.clientWidth/e.clientHeight,i=0;i<n.length;i++){var v=n[i];if(v){for(var f=0;f<v.length;f++){var h=v[f];h.isLocked||(h.positionX+=d-v.x1,h.positionY+=c-v.y1)}d+=v.w+r.componentSpacing,y+=v.w+r.componentSpacing,p=Math.max(p,v.h),y>g&&(c+=p+r.componentSpacing,d=0,y=0,p=0)}}},sg={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function Js(t){this.options=He({},sg,t)}Js.prototype.run=function(){var t=this.options,e=t,r=t.cy,a=e.eles,n=a.nodes().not(":parent");e.sort&&(n=n.sort(e.sort));var i=Yt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(i.h===0||i.w===0)a.nodes().layoutPositions(this,e,function(Ee){return{x:i.x1,y:i.y1}});else{var o=n.size(),s=Math.sqrt(o*i.h/i.w),u=Math.round(s),l=Math.round(i.w/i.h*s),v=function(Ce){if(Ce==null)return Math.min(u,l);var we=Math.min(u,l);we==u?u=Ce:l=Ce},f=function(Ce){if(Ce==null)return Math.max(u,l);var we=Math.max(u,l);we==u?u=Ce:l=Ce},h=e.rows,d=e.cols!=null?e.cols:e.columns;if(h!=null&&d!=null)u=h,l=d;else if(h!=null&&d==null)u=h,l=Math.ceil(o/u);else if(h==null&&d!=null)l=d,u=Math.ceil(o/l);else if(l*u>o){var c=v(),y=f();(c-1)*y>=o?v(c-1):(y-1)*c>=o&&f(y-1)}else for(;l*u<o;){var p=v(),g=f();(g+1)*p>=o?f(g+1):v(p+1)}var m=i.w/l,b=i.h/u;if(e.condense&&(m=0,b=0),e.avoidOverlap)for(var E=0;E<n.length;E++){var M=n[E],L=M._private.position;(L.x==null||L.y==null)&&(L.x=0,L.y=0);var w=M.layoutDimensions(e),k=e.avoidOverlapPadding,D=w.w+k,F=w.h+k;m=Math.max(m,D),b=Math.max(b,F)}for(var G={},I=function(Ce,we){return!!G["c-"+Ce+"-"+we]},X=function(Ce,we){G["c-"+Ce+"-"+we]=!0},B=0,re=0,K=function(){re++,re>=l&&(re=0,B++)},W={},ae=0;ae<n.length;ae++){var ue=n[ae],me=e.position(ue);if(me&&(me.row!==void 0||me.col!==void 0)){var ie={row:me.row,col:me.col};if(ie.col===void 0)for(ie.col=0;I(ie.row,ie.col);)ie.col++;else if(ie.row===void 0)for(ie.row=0;I(ie.row,ie.col);)ie.row++;W[ue.id()]=ie,X(ie.row,ie.col)}}var ge=function(Ce,we){var De,oe;if(Ce.locked()||Ce.isParent())return!1;var xe=W[Ce.id()];if(xe)De=xe.col*m+m/2+i.x1,oe=xe.row*b+b/2+i.y1;else{for(;I(B,re);)K();De=re*m+m/2+i.x1,oe=B*b+b/2+i.y1,X(B,re),K()}return{x:De,y:oe}};n.layoutPositions(this,e,ge)}return this};var lg={ready:function(){},stop:function(){}};function Bi(t){this.options=He({},lg,t)}Bi.prototype.run=function(){var t=this.options,e=t.eles,r=this;return t.cy,r.emit("layoutstart"),e.nodes().positions(function(){return{x:0,y:0}}),r.one("layoutready",t.ready),r.emit("layoutready"),r.one("layoutstop",t.stop),r.emit("layoutstop"),this},Bi.prototype.stop=function(){return this};var ug={positions:void 0,zoom:void 0,pan:void 0,fit:!0,padding:30,spacingFactor:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function js(t){this.options=He({},ug,t)}js.prototype.run=function(){var t=this.options,e=t.eles,r=e.nodes(),a=H(t.positions);function n(i){if(t.positions==null)return hv(i.position());if(a)return t.positions(i);var o=t.positions[i._private.data.id];return o??null}return r.layoutPositions(this,t,function(i,o){var s=n(i);return i.locked()||s==null?!1:s}),this};var vg={fit:!0,padding:30,boundingBox:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,r){return!0},ready:void 0,stop:void 0,transform:function(e,r){return r}};function el(t){this.options=He({},vg,t)}el.prototype.run=function(){var t=this.options,e=t.cy,r=t.eles,a=Yt(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),n=function(o,s){return{x:a.x1+Math.round(Math.random()*a.w),y:a.y1+Math.round(Math.random()*a.h)}};return r.nodes().layoutPositions(this,t,n),this};var fg=[{name:"breadthfirst",impl:Xs},{name:"circle",impl:Ws},{name:"concentric",impl:qs},{name:"cose",impl:Yn},{name:"grid",impl:Js},{name:"null",impl:Bi},{name:"preset",impl:js},{name:"random",impl:el}];function tl(t){this.options=t,this.notifications=0}var rl=function(){},al=function(){throw new Error("A headless instance can not render images")};tl.prototype={recalculateRenderedStyle:rl,notify:function(){this.notifications++},init:rl,isHeadless:function(){return!0},png:al,jpg:al};var Fi={};Fi.arrowShapeWidth=.3,Fi.registerArrowShapes=function(){var t=this.arrowShapes={},e=this,r=function(l,v,f,h,d,c,y){var p=d.x-f/2-y,g=d.x+f/2+y,m=d.y-f/2-y,b=d.y+f/2+y,E=p<=l&&l<=g&&m<=v&&v<=b;return E},a=function(l,v,f,h,d){var c=l*Math.cos(h)-v*Math.sin(h),y=l*Math.sin(h)+v*Math.cos(h),p=c*f,g=y*f,m=p+d.x,b=g+d.y;return{x:m,y:b}},n=function(l,v,f,h){for(var d=[],c=0;c<l.length;c+=2){var y=l[c],p=l[c+1];d.push(a(y,p,v,f,h))}return d},i=function(l){for(var v=[],f=0;f<l.length;f++){var h=l[f];v.push(h.x,h.y)}return v},o=function(l){return l.pstyle("width").pfValue*l.pstyle("arrow-scale").pfValue*2},s=function(l,v){ee(v)&&(v=t[v]),t[l]=He({name:l,points:[-.15,-.3,.15,-.3,.15,.3,-.15,.3],collide:function(h,d,c,y,p,g){var m=i(n(this.points,c+2*g,y,p)),b=Ht(h,d,m);return b},roughCollide:r,draw:function(h,d,c,y){var p=n(this.points,d,c,y);e.arrowShapeImpl("polygon")(h,p)},spacing:function(h){return 0},gap:o},v)};s("none",{collide:vn,roughCollide:vn,draw:oi,spacing:go,gap:go}),s("triangle",{points:[-.15,-.3,0,0,.15,-.3]}),s("arrow","triangle"),s("triangle-backcurve",{points:t.triangle.points,controlPoint:[0,-.15],roughCollide:r,draw:function(l,v,f,h,d){var c=n(this.points,v,f,h),y=this.controlPoint,p=a(y[0],y[1],v,f,h);e.arrowShapeImpl(this.name)(l,c,p)},gap:function(l){return o(l)*.8}}),s("triangle-tee",{points:[0,0,.15,-.3,-.15,-.3,0,0],pointsTee:[-.15,-.4,-.15,-.5,.15,-.5,.15,-.4],collide:function(l,v,f,h,d,c,y){var p=i(n(this.points,f+2*y,h,d)),g=i(n(this.pointsTee,f+2*y,h,d)),m=Ht(l,v,p)||Ht(l,v,g);return m},draw:function(l,v,f,h,d){var c=n(this.points,v,f,h),y=n(this.pointsTee,v,f,h);e.arrowShapeImpl(this.name)(l,c,y)}}),s("circle-triangle",{radius:.15,pointsTr:[0,-.15,.15,-.45,-.15,-.45,0,-.15],collide:function(l,v,f,h,d,c,y){var p=d,g=Math.pow(p.x-l,2)+Math.pow(p.y-v,2)<=Math.pow((f+2*y)*this.radius,2),m=i(n(this.points,f+2*y,h,d));return Ht(l,v,m)||g},draw:function(l,v,f,h,d){var c=n(this.pointsTr,v,f,h);e.arrowShapeImpl(this.name)(l,c,h.x,h.y,this.radius*v)},spacing:function(l){return e.getArrowWidth(l.pstyle("width").pfValue,l.pstyle("arrow-scale").value)*this.radius}}),s("triangle-cross",{points:[0,0,.15,-.3,-.15,-.3,0,0],baseCrossLinePts:[-.15,-.4,-.15,-.4,.15,-.4,.15,-.4],crossLinePts:function(l,v){var f=this.baseCrossLinePts.slice(),h=v/l,d=3,c=5;return f[d]=f[d]-h,f[c]=f[c]-h,f},collide:function(l,v,f,h,d,c,y){var p=i(n(this.points,f+2*y,h,d)),g=i(n(this.crossLinePts(f,c),f+2*y,h,d)),m=Ht(l,v,p)||Ht(l,v,g);return m},draw:function(l,v,f,h,d){var c=n(this.points,v,f,h),y=n(this.crossLinePts(v,d),v,f,h);e.arrowShapeImpl(this.name)(l,c,y)}}),s("vee",{points:[-.15,-.3,0,0,.15,-.3,0,-.15],gap:function(l){return o(l)*.525}}),s("circle",{radius:.15,collide:function(l,v,f,h,d,c,y){var p=d,g=Math.pow(p.x-l,2)+Math.pow(p.y-v,2)<=Math.pow((f+2*y)*this.radius,2);return g},draw:function(l,v,f,h,d){e.arrowShapeImpl(this.name)(l,h.x,h.y,this.radius*v)},spacing:function(l){return e.getArrowWidth(l.pstyle("width").pfValue,l.pstyle("arrow-scale").value)*this.radius}}),s("tee",{points:[-.15,0,-.15,-.1,.15,-.1,.15,0],spacing:function(l){return 1},gap:function(l){return 1}}),s("square",{points:[-.15,0,.15,0,.15,-.3,-.15,-.3]}),s("diamond",{points:[-.15,-.15,0,-.3,.15,-.15,0,0],gap:function(l){return l.pstyle("width").pfValue*l.pstyle("arrow-scale").value}}),s("chevron",{points:[0,0,-.15,-.15,-.1,-.2,0,-.1,.1,-.2,.15,-.15],gap:function(l){return .95*l.pstyle("width").pfValue*l.pstyle("arrow-scale").value}})};var Ur={};Ur.projectIntoViewport=function(t,e){var r=this.cy,a=this.findContainerClientCoords(),n=a[0],i=a[1],o=a[4],s=r.pan(),u=r.zoom(),l=((t-n)/o-s.x)/u,v=((e-i)/o-s.y)/u;return[l,v]},Ur.findContainerClientCoords=function(){if(this.containerBB)return this.containerBB;var t=this.container,e=t.getBoundingClientRect(),r=this.cy.window().getComputedStyle(t),a=function(g){return parseFloat(r.getPropertyValue(g))},n={left:a("padding-left"),right:a("padding-right"),top:a("padding-top"),bottom:a("padding-bottom")},i={left:a("border-left-width"),right:a("border-right-width"),top:a("border-top-width"),bottom:a("border-bottom-width")},o=t.clientWidth,s=t.clientHeight,u=n.left+n.right,l=n.top+n.bottom,v=i.left+i.right,f=e.width/(o+v),h=o-u,d=s-l,c=e.left+n.left+i.left,y=e.top+n.top+i.top;return this.containerBB=[c,y,h,d,f]},Ur.invalidateContainerClientCoordsCache=function(){this.containerBB=null},Ur.findNearestElement=function(t,e,r,a){return this.findNearestElements(t,e,r,a)[0]},Ur.findNearestElements=function(t,e,r,a){var n=this,i=this,o=i.getCachedZSortedEles(),s=[],u=i.cy.zoom(),l=i.cy.hasCompoundNodes(),v=(a?24:8)/u,f=(a?8:2)/u,h=(a?8:2)/u,d=1/0,c,y;r&&(o=o.interactive);function p(w,k){if(w.isNode()){if(y)return;y=w,s.push(w)}if(w.isEdge()&&(k==null||k<d))if(c){if(c.pstyle("z-compound-depth").value===w.pstyle("z-compound-depth").value&&c.pstyle("z-compound-depth").value===w.pstyle("z-compound-depth").value){for(var D=0;D<s.length;D++)if(s[D].isEdge()){s[D]=w,c=w,d=k??d;break}}}else s.push(w),c=w,d=k??d}function g(w){var k=w.outerWidth()+2*f,D=w.outerHeight()+2*f,F=k/2,G=D/2,I=w.position();if(I.x-F<=t&&t<=I.x+F&&I.y-G<=e&&e<=I.y+G){var X=i.nodeShapes[n.getNodeShape(w)];if(X.checkPoint(t,e,0,k,D,I.x,I.y))return p(w,0),!0}}function m(w){var k=w._private,D=k.rscratch,F=w.pstyle("width").pfValue,G=w.pstyle("arrow-scale").value,I=F/2+v,X=I*I,B=I*2,ae=k.source,ue=k.target,re;if(D.edgeType==="segments"||D.edgeType==="straight"||D.edgeType==="haystack"){for(var K=D.allpts,W=0;W+3<K.length;W+=2)if(Dv(t,e,K[W],K[W+1],K[W+2],K[W+3],B)&&X>(re=Nv(t,e,K[W],K[W+1],K[W+2],K[W+3])))return p(w,re),!0}else if(D.edgeType==="bezier"||D.edgeType==="multibezier"||D.edgeType==="self"||D.edgeType==="compound"){for(var K=D.allpts,W=0;W+5<D.allpts.length;W+=4)if(Sv(t,e,K[W],K[W+1],K[W+2],K[W+3],K[W+4],K[W+5],B)&&X>(re=Ov(t,e,K[W],K[W+1],K[W+2],K[W+3],K[W+4],K[W+5])))return p(w,re),!0}for(var ae=ae||k.source,ue=ue||k.target,me=n.getArrowWidth(F,G),ie=[{name:"source",x:D.arrowStartX,y:D.arrowStartY,angle:D.srcArrowAngle},{name:"target",x:D.arrowEndX,y:D.arrowEndY,angle:D.tgtArrowAngle},{name:"mid-source",x:D.midX,y:D.midY,angle:D.midsrcArrowAngle},{name:"mid-target",x:D.midX,y:D.midY,angle:D.midtgtArrowAngle}],W=0;W<ie.length;W++){var ge=ie[W],Ee=i.arrowShapes[w.pstyle(ge.name+"-arrow-shape").value],Ce=w.pstyle("width").pfValue;if(Ee.roughCollide(t,e,me,ge.angle,{x:ge.x,y:ge.y},Ce,v)&&Ee.collide(t,e,me,ge.angle,{x:ge.x,y:ge.y},Ce,v))return p(w),!0}l&&s.length>0&&(g(ae),g(ue))}function b(w,k,D){return er(w,k,D)}function E(w,k){var D=w._private,F=h,G;k?G=k+"-":G="",w.boundingBox();var I=D.labelBounds[k||"main"],X=w.pstyle(G+"label").value,B=w.pstyle("text-events").strValue==="yes";if(!(!B||!X)){var re=b(D.rscratch,"labelX",k),K=b(D.rscratch,"labelY",k),W=b(D.rscratch,"labelAngle",k),ae=w.pstyle(G+"text-margin-x").pfValue,ue=w.pstyle(G+"text-margin-y").pfValue,me=I.x1-F-ae,ie=I.x2+F-ae,ge=I.y1-F-ue,Ee=I.y2+F-ue;if(W){var Ce=Math.cos(W),we=Math.sin(W),De=function(Xe,Ie){return Xe=Xe-re,Ie=Ie-K,{x:Xe*Ce-Ie*we+re,y:Xe*we+Ie*Ce+K}},oe=De(me,ge),xe=De(me,Ee),Le=De(ie,ge),Se=De(ie,Ee),Oe=[oe.x+ae,oe.y+ue,Le.x+ae,Le.y+ue,Se.x+ae,Se.y+ue,xe.x+ae,xe.y+ue];if(Ht(t,e,Oe))return p(w),!0}else if(ta(I,t,e))return p(w),!0}}for(var M=o.length-1;M>=0;M--){var L=o[M];L.isNode()?g(L)||E(L):m(L)||E(L)||E(L,"source")||E(L,"target")}return s},Ur.getAllInBox=function(t,e,r,a){var n=this.getCachedZSortedEles().interactive,i=[],o=Math.min(t,r),s=Math.max(t,r),u=Math.min(e,a),l=Math.max(e,a);t=o,r=s,e=u,a=l;for(var v=Yt({x1:t,y1:e,x2:r,y2:a}),f=0;f<n.length;f++){var h=n[f];if(h.isNode()){var d=h,c=d.boundingBox({includeNodes:!0,includeEdges:!1,includeLabels:!1});vi(v,c)&&!Co(c,v)&&i.push(d)}else{var y=h,p=y._private,g=p.rscratch;if(g.startX!=null&&g.startY!=null&&!ta(v,g.startX,g.startY)||g.endX!=null&&g.endY!=null&&!ta(v,g.endX,g.endY))continue;if(g.edgeType==="bezier"||g.edgeType==="multibezier"||g.edgeType==="self"||g.edgeType==="compound"||g.edgeType==="segments"||g.edgeType==="haystack"){for(var m=p.rstyle.bezierPts||p.rstyle.linePts||p.rstyle.haystackPts,b=!0,E=0;E<m.length;E++)if(!Cv(v,m[E])){b=!1;break}b&&i.push(y)}else(g.edgeType==="haystack"||g.edgeType==="straight")&&i.push(y)}}return i};var Xn={};Xn.calculateArrowAngles=function(t){var e=t._private.rscratch,r=e.edgeType==="haystack",a=e.edgeType==="bezier",n=e.edgeType==="multibezier",i=e.edgeType==="segments",o=e.edgeType==="compound",s=e.edgeType==="self",u,l,v,f,h,d,g,m;if(r?(v=e.haystackPts[0],f=e.haystackPts[1],h=e.haystackPts[2],d=e.haystackPts[3]):(v=e.arrowStartX,f=e.arrowStartY,h=e.arrowEndX,d=e.arrowEndY),g=e.midX,m=e.midY,i)u=v-e.segpts[0],l=f-e.segpts[1];else if(n||o||s||a){var c=e.allpts,y=Lt(c[0],c[2],c[4],.1),p=Lt(c[1],c[3],c[5],.1);u=v-y,l=f-p}else u=v-g,l=f-m;e.srcArrowAngle=cn(u,l);var g=e.midX,m=e.midY;if(r&&(g=(v+h)/2,m=(f+d)/2),u=h-v,l=d-f,i){var c=e.allpts;if(c.length/2%2===0){var b=c.length/2,E=b-2;u=c[b]-c[E],l=c[b+1]-c[E+1]}else{var b=c.length/2-1,E=b-2,M=b+2;u=c[b]-c[E],l=c[b+1]-c[E+1]}}else if(n||o||s){var c=e.allpts,L=e.ctrlpts,w,k,D,F;if(L.length/2%2===0){var G=c.length/2-1,I=G+2,X=I+2;w=Lt(c[G],c[I],c[X],0),k=Lt(c[G+1],c[I+1],c[X+1],0),D=Lt(c[G],c[I],c[X],1e-4),F=Lt(c[G+1],c[I+1],c[X+1],1e-4)}else{var I=c.length/2-1,G=I-2,X=I+2;w=Lt(c[G],c[I],c[X],.4999),k=Lt(c[G+1],c[I+1],c[X+1],.4999),D=Lt(c[G],c[I],c[X],.5),F=Lt(c[G+1],c[I+1],c[X+1],.5)}u=D-w,l=F-k}if(e.midtgtArrowAngle=cn(u,l),e.midDispX=u,e.midDispY=l,u*=-1,l*=-1,i){var c=e.allpts;if(c.length/2%2!==0){var b=c.length/2-1,M=b+2;u=-(c[M]-c[b]),l=-(c[M+1]-c[b+1])}}if(e.midsrcArrowAngle=cn(u,l),i)u=h-e.segpts[e.segpts.length-2],l=d-e.segpts[e.segpts.length-1];else if(n||o||s||a){var c=e.allpts,B=c.length,y=Lt(c[B-6],c[B-4],c[B-2],.9),p=Lt(c[B-5],c[B-3],c[B-1],.9);u=h-y,l=d-p}else u=h-g,l=d-m;e.tgtArrowAngle=cn(u,l)},Xn.getArrowWidth=Xn.getArrowHeight=function(t,e){var r=this.arrowWidthCache=this.arrowWidthCache||{},a=r[t+", "+e];return a||(a=Math.max(Math.pow(t*13.37,.9),29)*e,r[t+", "+e]=a,a)};var Vt={};Vt.findMidptPtsEtc=function(t,e){var r=e.posPts,a=e.intersectionPts,n=e.vectorNormInverse,i,o=t.pstyle("source-endpoint"),s=t.pstyle("target-endpoint"),u=o.units!=null&&s.units!=null,l=function(M,L,w,k){var D=k-L,F=w-M,G=Math.sqrt(F*F+D*D);return{x:-D/G,y:F/G}},v=t.pstyle("edge-distances").value;switch(v){case"node-position":i=r;break;case"intersection":i=a;break;case"endpoints":{if(u){var f=this.manualEndptToPx(t.source()[0],o),h=x(f,2),d=h[0],c=h[1],y=this.manualEndptToPx(t.target()[0],s),p=x(y,2),g=p[0],m=p[1],b={x1:d,y1:c,x2:g,y2:m};n=l(d,c,g,m),i=b}else ht("Edge ".concat(t.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),i=a;break}}return{midptPts:i,vectorNormInverse:n}},Vt.findHaystackPoints=function(t){for(var e=0;e<t.length;e++){var r=t[e],a=r._private,n=a.rscratch;if(!n.haystack){var i=Math.random()*2*Math.PI;n.source={x:Math.cos(i),y:Math.sin(i)},i=Math.random()*2*Math.PI,n.target={x:Math.cos(i),y:Math.sin(i)}}var o=a.source,s=a.target,u=o.position(),l=s.position(),v=o.width(),f=s.width(),h=o.height(),d=s.height(),c=r.pstyle("haystack-radius").value,y=c/2;n.haystackPts=n.allpts=[n.source.x*v*y+u.x,n.source.y*h*y+u.y,n.target.x*f*y+l.x,n.target.y*d*y+l.y],n.midX=(n.allpts[0]+n.allpts[2])/2,n.midY=(n.allpts[1]+n.allpts[3])/2,n.edgeType="haystack",n.haystack=!0,this.storeEdgeProjections(r),this.calculateArrowAngles(r),this.recalculateEdgeLabelProjections(r),this.calculateLabelAngles(r)}},Vt.findSegmentsPoints=function(t,e){var r=t._private.rscratch,a=t.pstyle("segment-weights"),n=t.pstyle("segment-distances"),i=Math.min(a.pfValue.length,n.pfValue.length);r.edgeType="segments",r.segpts=[];for(var o=0;o<i;o++){var s=a.pfValue[o],u=n.pfValue[o],l=1-s,v=s,f=this.findMidptPtsEtc(t,e),h=f.midptPts,d=f.vectorNormInverse,c={x:h.x1*l+h.x2*v,y:h.y1*l+h.y2*v};r.segpts.push(c.x+d.x*u,c.y+d.y*u)}},Vt.findLoopPoints=function(t,e,r,a){var n=t._private.rscratch,i=e.dirCounts,o=e.srcPos,s=t.pstyle("control-point-distances"),u=s?s.pfValue[0]:void 0,l=t.pstyle("loop-direction").pfValue,v=t.pstyle("loop-sweep").pfValue,f=t.pstyle("control-point-step-size").pfValue;n.edgeType="self";var h=r,d=f;a&&(h=0,d=u);var c=l-Math.PI/2,y=c-v/2,p=c+v/2,g=l+"_"+v;h=i[g]===void 0?i[g]=0:++i[g],n.ctrlpts=[o.x+Math.cos(y)*1.4*d*(h/3+1),o.y+Math.sin(y)*1.4*d*(h/3+1),o.x+Math.cos(p)*1.4*d*(h/3+1),o.y+Math.sin(p)*1.4*d*(h/3+1)]},Vt.findCompoundLoopPoints=function(t,e,r,a){var n=t._private.rscratch;n.edgeType="compound";var i=e.srcPos,o=e.tgtPos,s=e.srcW,u=e.srcH,l=e.tgtW,v=e.tgtH,f=t.pstyle("control-point-step-size").pfValue,h=t.pstyle("control-point-distances"),d=h?h.pfValue[0]:void 0,c=r,y=f;a&&(c=0,y=d);var p=50,g={x:i.x-s/2,y:i.y-u/2},m={x:o.x-l/2,y:o.y-v/2},b={x:Math.min(g.x,m.x),y:Math.min(g.y,m.y)},E=.5,M=Math.max(E,Math.log(s*.01)),L=Math.max(E,Math.log(l*.01));n.ctrlpts=[b.x,b.y-(1+Math.pow(p,1.12)/100)*y*(c/3+1)*M,b.x-(1+Math.pow(p,1.12)/100)*y*(c/3+1)*L,b.y]},Vt.findStraightEdgePoints=function(t){t._private.rscratch.edgeType="straight"},Vt.findBezierPoints=function(t,e,r,a,n){var i=t._private.rscratch,o=t.pstyle("control-point-step-size").pfValue,s=t.pstyle("control-point-distances"),u=t.pstyle("control-point-weights"),l=s&&u?Math.min(s.value.length,u.value.length):1,v=s?s.pfValue[0]:void 0,f=u.value[0],h=a;i.edgeType=h?"multibezier":"bezier",i.ctrlpts=[];for(var d=0;d<l;d++){var c=(.5-e.eles.length/2+r)*o*(n?-1:1),y=void 0,p=wo(c);h&&(v=s?s.pfValue[d]:o,f=u.value[d]),a?y=v:y=v!==void 0?p*v:void 0;var g=y!==void 0?y:c,m=1-f,b=f,E=this.findMidptPtsEtc(t,e),M=E.midptPts,L=E.vectorNormInverse,w={x:M.x1*m+M.x2*b,y:M.y1*m+M.y2*b};i.ctrlpts.push(w.x+L.x*g,w.y+L.y*g)}},Vt.findTaxiPoints=function(t,e){var r=t._private.rscratch;r.edgeType="segments";var a="vertical",n="horizontal",i="leftward",o="rightward",s="downward",u="upward",l="auto",v=e.posPts,f=e.srcW,h=e.srcH,d=e.tgtW,c=e.tgtH,y=t.pstyle("edge-distances").value,p=y!=="node-position",g=t.pstyle("taxi-direction").value,m=g,b=t.pstyle("taxi-turn"),E=b.units==="%",M=b.pfValue,L=M<0,w=t.pstyle("taxi-turn-min-distance").pfValue,k=p?(f+d)/2:0,D=p?(h+c)/2:0,F=v.x2-v.x1,G=v.y2-v.y1,I=function(be,Ge){return be>0?Math.max(be-Ge,0):Math.min(be+Ge,0)},X=I(F,k),B=I(G,D),re=!1;m===l?g=Math.abs(X)>Math.abs(B)?n:a:m===u||m===s?(g=a,re=!0):(m===i||m===o)&&(g=n,re=!0);var K=g===a,W=K?B:X,ae=K?G:F,ue=wo(ae),me=!1;!(re&&(E||L))&&(m===s&&ae<0||m===u&&ae>0||m===i&&ae>0||m===o&&ae<0)&&(ue*=-1,W=ue*Math.abs(W),me=!0);var ie;if(E){var ge=M<0?1+M:M;ie=ge*W}else{var Ee=M<0?W:0;ie=Ee+M*ue}var Ce=function(be){return Math.abs(be)<w||Math.abs(be)>=Math.abs(W)},we=Ce(ie),De=Ce(Math.abs(W)-Math.abs(ie)),oe=we||De;if(oe&&!me)if(K){var xe=Math.abs(ae)<=h/2,Le=Math.abs(F)<=d/2;if(xe){var Se=(v.x1+v.x2)/2,Oe=v.y1,Fe=v.y2;r.segpts=[Se,Oe,Se,Fe]}else if(Le){var Xe=(v.y1+v.y2)/2,Ie=v.x1,Me=v.x2;r.segpts=[Ie,Xe,Me,Xe]}else r.segpts=[v.x1,v.y2]}else{var $e=Math.abs(ae)<=f/2,ze=Math.abs(G)<=c/2;if($e){var Be=(v.y1+v.y2)/2,Ue=v.x1,rt=v.x2;r.segpts=[Ue,Be,rt,Be]}else if(ze){var je=(v.x1+v.x2)/2,We=v.y1,et=v.y2;r.segpts=[je,We,je,et]}else r.segpts=[v.x2,v.y1]}else if(K){var fe=v.y1+ie+(p?h/2*ue:0),O=v.x1,se=v.x2;r.segpts=[O,fe,se,fe]}else{var Te=v.x1+ie+(p?f/2*ue:0),ce=v.y1,ye=v.y2;r.segpts=[Te,ce,Te,ye]}},Vt.tryToCorrectInvalidPoints=function(t,e){var r=t._private.rscratch;if(r.edgeType==="bezier"){var a=e.srcPos,n=e.tgtPos,i=e.srcW,o=e.srcH,s=e.tgtW,u=e.tgtH,l=e.srcShape,v=e.tgtShape,f=!R(r.startX)||!R(r.startY),h=!R(r.arrowStartX)||!R(r.arrowStartY),d=!R(r.endX)||!R(r.endY),c=!R(r.arrowEndX)||!R(r.arrowEndY),y=3,p=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth,g=y*p,m=Br({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.startX,y:r.startY}),b=m<g,E=Br({x:r.ctrlpts[0],y:r.ctrlpts[1]},{x:r.endX,y:r.endY}),M=E<g,L=!1;if(f||h||b){L=!0;var w={x:r.ctrlpts[0]-a.x,y:r.ctrlpts[1]-a.y},k=Math.sqrt(w.x*w.x+w.y*w.y),D={x:w.x/k,y:w.y/k},F=Math.max(i,o),G={x:r.ctrlpts[0]+D.x*2*F,y:r.ctrlpts[1]+D.y*2*F},I=l.intersectLine(a.x,a.y,i,o,G.x,G.y,0);b?(r.ctrlpts[0]=r.ctrlpts[0]+D.x*(g-m),r.ctrlpts[1]=r.ctrlpts[1]+D.y*(g-m)):(r.ctrlpts[0]=I[0]+D.x*g,r.ctrlpts[1]=I[1]+D.y*g)}if(d||c||M){L=!0;var X={x:r.ctrlpts[0]-n.x,y:r.ctrlpts[1]-n.y},B=Math.sqrt(X.x*X.x+X.y*X.y),re={x:X.x/B,y:X.y/B},K=Math.max(i,o),W={x:r.ctrlpts[0]+re.x*2*K,y:r.ctrlpts[1]+re.y*2*K},ae=v.intersectLine(n.x,n.y,s,u,W.x,W.y,0);M?(r.ctrlpts[0]=r.ctrlpts[0]+re.x*(g-E),r.ctrlpts[1]=r.ctrlpts[1]+re.y*(g-E)):(r.ctrlpts[0]=ae[0]+re.x*g,r.ctrlpts[1]=ae[1]+re.y*g)}L&&this.findEndpoints(t)}},Vt.storeAllpts=function(t){var e=t._private.rscratch;if(e.edgeType==="multibezier"||e.edgeType==="bezier"||e.edgeType==="self"||e.edgeType==="compound"){e.allpts=[],e.allpts.push(e.startX,e.startY);for(var r=0;r+1<e.ctrlpts.length;r+=2)e.allpts.push(e.ctrlpts[r],e.ctrlpts[r+1]),r+3<e.ctrlpts.length&&e.allpts.push((e.ctrlpts[r]+e.ctrlpts[r+2])/2,(e.ctrlpts[r+1]+e.ctrlpts[r+3])/2);e.allpts.push(e.endX,e.endY);var a,n;e.ctrlpts.length/2%2===0?(a=e.allpts.length/2-1,e.midX=e.allpts[a],e.midY=e.allpts[a+1]):(a=e.allpts.length/2-3,n=.5,e.midX=Lt(e.allpts[a],e.allpts[a+2],e.allpts[a+4],n),e.midY=Lt(e.allpts[a+1],e.allpts[a+3],e.allpts[a+5],n))}else if(e.edgeType==="straight")e.allpts=[e.startX,e.startY,e.endX,e.endY],e.midX=(e.startX+e.endX+e.arrowStartX+e.arrowEndX)/4,e.midY=(e.startY+e.endY+e.arrowStartY+e.arrowEndY)/4;else if(e.edgeType==="segments")if(e.allpts=[],e.allpts.push(e.startX,e.startY),e.allpts.push.apply(e.allpts,e.segpts),e.allpts.push(e.endX,e.endY),e.segpts.length%4===0){var i=e.segpts.length/2,o=i-2;e.midX=(e.segpts[o]+e.segpts[i])/2,e.midY=(e.segpts[o+1]+e.segpts[i+1])/2}else{var s=e.segpts.length/2-1;e.midX=e.segpts[s],e.midY=e.segpts[s+1]}},Vt.checkForInvalidEdgeWarning=function(t){var e=t[0]._private.rscratch;e.nodesOverlap||R(e.startX)&&R(e.startY)&&R(e.endX)&&R(e.endY)?e.loggedErr=!1:e.loggedErr||(e.loggedErr=!0,ht("Edge `"+t.id()+"` has invalid endpoints and so it is impossible to draw. Adjust your edge style (e.g. control points) accordingly or use an alternative edge type. This is expected behaviour when the source node and the target node overlap."))},Vt.findEdgeControlPoints=function(t){var e=this;if(!(!t||t.length===0)){for(var r=this,a=r.cy,n=a.hasCompoundNodes(),i={map:new ur,get:function(w){var k=this.map.get(w[0]);return k!=null?k.get(w[1]):null},set:function(w,k){var D=this.map.get(w[0]);D==null&&(D=new ur,this.map.set(w[0],D)),D.set(w[1],k)}},o=[],s=[],u=0;u<t.length;u++){var l=t[u],v=l._private,f=l.pstyle("curve-style").value;if(!(l.removed()||!l.takesUpSpace())){if(f==="haystack"){s.push(l);continue}var h=f==="unbundled-bezier"||f==="segments"||f==="straight"||f==="straight-triangle"||f==="taxi",d=f==="unbundled-bezier"||f==="bezier",c=v.source,y=v.target,p=c.poolIndex(),g=y.poolIndex(),m=[p,g].sort(),b=i.get(m);b==null&&(b={eles:[]},i.set(m,b),o.push(m)),b.eles.push(l),h&&(b.hasUnbundled=!0),d&&(b.hasBezier=!0)}}for(var E=function(w){var k=o[w],D=i.get(k),F=void 0;if(!D.hasUnbundled){var G=D.eles[0].parallelEdges().filter(function(et){return et.isBundledBezier()});si(D.eles),G.forEach(function(et){return D.eles.push(et)}),D.eles.sort(function(et,fe){return et.poolIndex()-fe.poolIndex()})}var I=D.eles[0],X=I.source(),B=I.target();if(X.poolIndex()>B.poolIndex()){var re=X;X=B,B=re}var K=D.srcPos=X.position(),W=D.tgtPos=B.position(),ae=D.srcW=X.outerWidth(),ue=D.srcH=X.outerHeight(),me=D.tgtW=B.outerWidth(),ie=D.tgtH=B.outerHeight(),ge=D.srcShape=r.nodeShapes[e.getNodeShape(X)],Ee=D.tgtShape=r.nodeShapes[e.getNodeShape(B)];D.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var Ce=0;Ce<D.eles.length;Ce++){var we=D.eles[Ce],De=we[0]._private.rscratch,oe=we.pstyle("curve-style").value,xe=oe==="unbundled-bezier"||oe==="segments"||oe==="taxi",Le=!X.same(we.source());if(!D.calculatedIntersection&&X!==B&&(D.hasBezier||D.hasUnbundled)){D.calculatedIntersection=!0;var Se=ge.intersectLine(K.x,K.y,ae,ue,W.x,W.y,0),Oe=D.srcIntn=Se,Fe=Ee.intersectLine(W.x,W.y,me,ie,K.x,K.y,0),Xe=D.tgtIntn=Fe,Ie=D.intersectionPts={x1:Se[0],x2:Fe[0],y1:Se[1],y2:Fe[1]},Me=D.posPts={x1:K.x,x2:W.x,y1:K.y,y2:W.y},$e=Fe[1]-Se[1],ze=Fe[0]-Se[0],Be=Math.sqrt(ze*ze+$e*$e),Ue=D.vector={x:ze,y:$e},rt=D.vectorNorm={x:Ue.x/Be,y:Ue.y/Be},je={x:-rt.y,y:rt.x};D.nodesOverlap=!R(Be)||Ee.checkPoint(Se[0],Se[1],0,me,ie,W.x,W.y)||ge.checkPoint(Fe[0],Fe[1],0,ae,ue,K.x,K.y),D.vectorNormInverse=je,F={nodesOverlap:D.nodesOverlap,dirCounts:D.dirCounts,calculatedIntersection:!0,hasBezier:D.hasBezier,hasUnbundled:D.hasUnbundled,eles:D.eles,srcPos:W,tgtPos:K,srcW:me,srcH:ie,tgtW:ae,tgtH:ue,srcIntn:Xe,tgtIntn:Oe,srcShape:Ee,tgtShape:ge,posPts:{x1:Me.x2,y1:Me.y2,x2:Me.x1,y2:Me.y1},intersectionPts:{x1:Ie.x2,y1:Ie.y2,x2:Ie.x1,y2:Ie.y1},vector:{x:-Ue.x,y:-Ue.y},vectorNorm:{x:-rt.x,y:-rt.y},vectorNormInverse:{x:-je.x,y:-je.y}}}var We=Le?F:D;De.nodesOverlap=We.nodesOverlap,De.srcIntn=We.srcIntn,De.tgtIntn=We.tgtIntn,n&&(X.isParent()||X.isChild()||B.isParent()||B.isChild())&&(X.parents().anySame(B)||B.parents().anySame(X)||X.same(B)&&X.isParent())?e.findCompoundLoopPoints(we,We,Ce,xe):X===B?e.findLoopPoints(we,We,Ce,xe):oe==="segments"?e.findSegmentsPoints(we,We):oe==="taxi"?e.findTaxiPoints(we,We):oe==="straight"||!xe&&D.eles.length%2===1&&Ce===Math.floor(D.eles.length/2)?e.findStraightEdgePoints(we):e.findBezierPoints(we,We,Ce,xe,Le),e.findEndpoints(we),e.tryToCorrectInvalidPoints(we,We),e.checkForInvalidEdgeWarning(we),e.storeAllpts(we),e.storeEdgeProjections(we),e.calculateArrowAngles(we),e.recalculateEdgeLabelProjections(we),e.calculateLabelAngles(we)}},M=0;M<o.length;M++)E(M);this.findHaystackPoints(s)}};function nl(t){var e=[];if(t!=null){for(var r=0;r<t.length;r+=2){var a=t[r],n=t[r+1];e.push({x:a,y:n})}return e}}Vt.getSegmentPoints=function(t){var e=t[0]._private.rscratch,r=e.edgeType;if(r==="segments")return this.recalculateRenderedStyle(t),nl(e.segpts)},Vt.getControlPoints=function(t){var e=t[0]._private.rscratch,r=e.edgeType;if(r==="bezier"||r==="multibezier"||r==="self"||r==="compound")return this.recalculateRenderedStyle(t),nl(e.ctrlpts)},Vt.getEdgeMidpoint=function(t){var e=t[0]._private.rscratch;return this.recalculateRenderedStyle(t),{x:e.midX,y:e.midY}};var Qa={};Qa.manualEndptToPx=function(t,e){var r=this,a=t.position(),n=t.outerWidth(),i=t.outerHeight();if(e.value.length===2){var o=[e.pfValue[0],e.pfValue[1]];return e.units[0]==="%"&&(o[0]=o[0]*n),e.units[1]==="%"&&(o[1]=o[1]*i),o[0]+=a.x,o[1]+=a.y,o}else{var s=e.pfValue[0];s=-Math.PI/2+s;var u=2*Math.max(n,i),l=[a.x+Math.cos(s)*u,a.y+Math.sin(s)*u];return r.nodeShapes[this.getNodeShape(t)].intersectLine(a.x,a.y,n,i,l[0],l[1],0)}},Qa.findEndpoints=function(t){var e=this,r,a=t.source()[0],n=t.target()[0],i=a.position(),o=n.position(),s=t.pstyle("target-arrow-shape").value,u=t.pstyle("source-arrow-shape").value,l=t.pstyle("target-distance-from-node").pfValue,v=t.pstyle("source-distance-from-node").pfValue,f=t.pstyle("curve-style").value,h=t._private.rscratch,d=h.edgeType,c=f==="taxi",y=d==="self"||d==="compound",p=d==="bezier"||d==="multibezier"||y,g=d!=="bezier",m=d==="straight"||d==="segments",b=d==="segments",E=p||g||m,M=y||c,L=t.pstyle("source-endpoint"),w=M?"outside-to-node":L.value,k=t.pstyle("target-endpoint"),D=M?"outside-to-node":k.value;h.srcManEndpt=L,h.tgtManEndpt=k;var F,G,I,X;if(p){var B=[h.ctrlpts[0],h.ctrlpts[1]],re=g?[h.ctrlpts[h.ctrlpts.length-2],h.ctrlpts[h.ctrlpts.length-1]]:B;F=re,G=B}else if(m){var K=b?h.segpts.slice(0,2):[o.x,o.y],W=b?h.segpts.slice(h.segpts.length-2):[i.x,i.y];F=W,G=K}if(D==="inside-to-node")r=[o.x,o.y];else if(k.units)r=this.manualEndptToPx(n,k);else if(D==="outside-to-line")r=h.tgtIntn;else if(D==="outside-to-node"||D==="outside-to-node-or-label"?I=F:(D==="outside-to-line"||D==="outside-to-line-or-label")&&(I=[i.x,i.y]),r=e.nodeShapes[this.getNodeShape(n)].intersectLine(o.x,o.y,n.outerWidth(),n.outerHeight(),I[0],I[1],0),D==="outside-to-node-or-label"||D==="outside-to-line-or-label"){var ae=n._private.rscratch,ue=ae.labelWidth,me=ae.labelHeight,ie=ae.labelX,ge=ae.labelY,Ee=ue/2,Ce=me/2,we=n.pstyle("text-valign").value;we==="top"?ge-=Ce:we==="bottom"&&(ge+=Ce);var De=n.pstyle("text-halign").value;De==="left"?ie-=Ee:De==="right"&&(ie+=Ee);var oe=Ba(I[0],I[1],[ie-Ee,ge-Ce,ie+Ee,ge-Ce,ie+Ee,ge+Ce,ie-Ee,ge+Ce],o.x,o.y);if(oe.length>0){var xe=i,Le=Fr(xe,jr(r)),Se=Fr(xe,jr(oe)),Oe=Le;if(Se<Le&&(r=oe,Oe=Se),oe.length>2){var Fe=Fr(xe,{x:oe[2],y:oe[3]});Fe<Oe&&(r=[oe[2],oe[3]])}}}var Xe=mn(r,F,e.arrowShapes[s].spacing(t)+l),Ie=mn(r,F,e.arrowShapes[s].gap(t)+l);if(h.endX=Ie[0],h.endY=Ie[1],h.arrowEndX=Xe[0],h.arrowEndY=Xe[1],w==="inside-to-node")r=[i.x,i.y];else if(L.units)r=this.manualEndptToPx(a,L);else if(w==="outside-to-line")r=h.srcIntn;else if(w==="outside-to-node"||w==="outside-to-node-or-label"?X=G:(w==="outside-to-line"||w==="outside-to-line-or-label")&&(X=[o.x,o.y]),r=e.nodeShapes[this.getNodeShape(a)].intersectLine(i.x,i.y,a.outerWidth(),a.outerHeight(),X[0],X[1],0),w==="outside-to-node-or-label"||w==="outside-to-line-or-label"){var Me=a._private.rscratch,$e=Me.labelWidth,ze=Me.labelHeight,Be=Me.labelX,Ue=Me.labelY,rt=$e/2,je=ze/2,We=a.pstyle("text-valign").value;We==="top"?Ue-=je:We==="bottom"&&(Ue+=je);var et=a.pstyle("text-halign").value;et==="left"?Be-=rt:et==="right"&&(Be+=rt);var fe=Ba(X[0],X[1],[Be-rt,Ue-je,Be+rt,Ue-je,Be+rt,Ue+je,Be-rt,Ue+je],i.x,i.y);if(fe.length>0){var O=o,se=Fr(O,jr(r)),Te=Fr(O,jr(fe)),ce=se;if(Te<se&&(r=[fe[0],fe[1]],ce=Te),fe.length>2){var ye=Fr(O,{x:fe[2],y:fe[3]});ye<ce&&(r=[fe[2],fe[3]])}}}var _e=mn(r,G,e.arrowShapes[u].spacing(t)+v),be=mn(r,G,e.arrowShapes[u].gap(t)+v);h.startX=be[0],h.startY=be[1],h.arrowStartX=_e[0],h.arrowStartY=_e[1],E&&(!R(h.startX)||!R(h.startY)||!R(h.endX)||!R(h.endY)?h.badLine=!0:h.badLine=!1)},Qa.getSourceEndpoint=function(t){var e=t[0]._private.rscratch;switch(this.recalculateRenderedStyle(t),e.edgeType){case"haystack":return{x:e.haystackPts[0],y:e.haystackPts[1]};default:return{x:e.arrowStartX,y:e.arrowStartY}}},Qa.getTargetEndpoint=function(t){var e=t[0]._private.rscratch;switch(this.recalculateRenderedStyle(t),e.edgeType){case"haystack":return{x:e.haystackPts[2],y:e.haystackPts[3]};default:return{x:e.arrowEndX,y:e.arrowEndY}}};var Gi={};function hg(t,e,r){for(var a=function(l,v,f,h){return Lt(l,v,f,h)},n=e._private,i=n.rstyle.bezierPts,o=0;o<t.bezierProjPcts.length;o++){var s=t.bezierProjPcts[o];i.push({x:a(r[0],r[2],r[4],s),y:a(r[1],r[3],r[5],s)})}}Gi.storeEdgeProjections=function(t){var e=t._private,r=e.rscratch,a=r.edgeType;if(e.rstyle.bezierPts=null,e.rstyle.linePts=null,e.rstyle.haystackPts=null,a==="multibezier"||a==="bezier"||a==="self"||a==="compound"){e.rstyle.bezierPts=[];for(var n=0;n+5<r.allpts.length;n+=4)hg(this,t,r.allpts.slice(n,n+6))}else if(a==="segments")for(var i=e.rstyle.linePts=[],n=0;n+1<r.allpts.length;n+=2)i.push({x:r.allpts[n],y:r.allpts[n+1]});else if(a==="haystack"){var o=r.haystackPts;e.rstyle.haystackPts=[{x:o[0],y:o[1]},{x:o[2],y:o[3]}]}e.rstyle.arrowWidth=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth},Gi.recalculateEdgeProjections=function(t){this.findEdgeControlPoints(t)};var fr={};fr.recalculateNodeLabelProjection=function(t){var e=t.pstyle("label").strValue;if(!Re(e)){var r,a,n=t._private,i=t.width(),o=t.height(),s=t.padding(),u=t.position(),l=t.pstyle("text-halign").strValue,v=t.pstyle("text-valign").strValue,f=n.rscratch,h=n.rstyle;switch(l){case"left":r=u.x-i/2-s;break;case"right":r=u.x+i/2+s;break;default:r=u.x}switch(v){case"top":a=u.y-o/2-s;break;case"bottom":a=u.y+o/2+s;break;default:a=u.y}f.labelX=r,f.labelY=a,h.labelX=r,h.labelY=a,this.calculateLabelAngles(t),this.applyLabelDimensions(t)}};var il=function(e,r){var a=Math.atan(r/e);return e===0&&a<0&&(a=a*-1),a},ol=function(e,r){var a=r.x-e.x,n=r.y-e.y;return il(a,n)},cg=function(e,r,a,n){var i=ka(0,n-.001,1),o=ka(0,n+.001,1),s=ea(e,r,a,i),u=ea(e,r,a,o);return ol(s,u)};fr.recalculateEdgeLabelProjections=function(t){var e,r=t._private,a=r.rscratch,n=this,i={mid:t.pstyle("label").strValue,source:t.pstyle("source-label").strValue,target:t.pstyle("target-label").strValue};if(i.mid||i.source||i.target){e={x:a.midX,y:a.midY};var o=function(f,h,d){Tr(r.rscratch,f,h,d),Tr(r.rstyle,f,h,d)};o("labelX",null,e.x),o("labelY",null,e.y);var s=il(a.midDispX,a.midDispY);o("labelAutoAngle",null,s);var u=function v(){if(v.cache)return v.cache;for(var f=[],h=0;h+5<a.allpts.length;h+=4){var d={x:a.allpts[h],y:a.allpts[h+1]},c={x:a.allpts[h+2],y:a.allpts[h+3]},y={x:a.allpts[h+4],y:a.allpts[h+5]};f.push({p0:d,p1:c,p2:y,startDist:0,length:0,segments:[]})}var p=r.rstyle.bezierPts,g=n.bezierProjPcts.length;function m(w,k,D,F,G){var I=Br(k,D),X=w.segments[w.segments.length-1],B={p0:k,p1:D,t0:F,t1:G,startDist:X?X.startDist+X.length:0,length:I};w.segments.push(B),w.length+=I}for(var b=0;b<f.length;b++){var E=f[b],M=f[b-1];M&&(E.startDist=M.startDist+M.length),m(E,E.p0,p[b*g],0,n.bezierProjPcts[0]);for(var L=0;L<g-1;L++)m(E,p[b*g+L],p[b*g+L+1],n.bezierProjPcts[L],n.bezierProjPcts[L+1]);m(E,p[b*g+g-1],E.p2,n.bezierProjPcts[g-1],1)}return v.cache=f},l=function(f){var h,d=f==="source";if(i[f]){var c=t.pstyle(f+"-text-offset").pfValue;switch(a.edgeType){case"self":case"compound":case"bezier":case"multibezier":{for(var y=u(),p,g=0,m=0,b=0;b<y.length;b++){for(var E=y[d?b:y.length-1-b],M=0;M<E.segments.length;M++){var L=E.segments[d?M:E.segments.length-1-M],w=b===y.length-1&&M===E.segments.length-1;if(g=m,m+=L.length,m>=c||w){p={cp:E,segment:L};break}}if(p)break}var k=p.cp,D=p.segment,F=(c-g)/D.length,G=D.t1-D.t0,I=d?D.t0+G*F:D.t1-G*F;I=ka(0,I,1),e=ea(k.p0,k.p1,k.p2,I),h=cg(k.p0,k.p1,k.p2,I);break}case"straight":case"segments":case"haystack":{for(var X=0,B,re,K,W,ae=a.allpts.length,ue=0;ue+3<ae&&(d?(K={x:a.allpts[ue],y:a.allpts[ue+1]},W={x:a.allpts[ue+2],y:a.allpts[ue+3]}):(K={x:a.allpts[ae-2-ue],y:a.allpts[ae-1-ue]},W={x:a.allpts[ae-4-ue],y:a.allpts[ae-3-ue]}),B=Br(K,W),re=X,X+=B,!(X>=c));ue+=2);var me=c-re,ie=me/B;ie=ka(0,ie,1),e=bv(K,W,ie),h=ol(K,W);break}}o("labelX",f,e.x),o("labelY",f,e.y),o("labelAutoAngle",f,h)}};l("source"),l("target"),this.applyLabelDimensions(t)}},fr.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))},fr.applyPrefixedLabelDimensions=function(t,e){var r=t._private,a=this.getLabelText(t,e),n=this.calculateLabelDimensions(t,a),i=t.pstyle("line-height").pfValue,o=t.pstyle("text-wrap").strValue,s=er(r.rscratch,"labelWrapCachedLines",e)||[],u=o!=="wrap"?1:Math.max(s.length,1),l=n.height/u,v=l*i,f=n.width,h=n.height+(u-1)*(i-1)*l;Tr(r.rstyle,"labelWidth",e,f),Tr(r.rscratch,"labelWidth",e,f),Tr(r.rstyle,"labelHeight",e,h),Tr(r.rscratch,"labelHeight",e,h),Tr(r.rscratch,"labelLineHeight",e,v)},fr.getLabelText=function(t,e){var r=t._private,a=e?e+"-":"",n=t.pstyle(a+"label").strValue,i=t.pstyle("text-transform").value,o=function(me,ie){return ie?(Tr(r.rscratch,me,e,ie),ie):er(r.rscratch,me,e)};if(!n)return"";i=="none"||(i=="uppercase"?n=n.toUpperCase():i=="lowercase"&&(n=n.toLowerCase()));var s=t.pstyle("text-wrap").value;if(s==="wrap"){var u=o("labelKey");if(u!=null&&o("labelWrapKey")===u)return o("labelWrapCachedText");for(var l="",v=n.split(`
`),f=t.pstyle("text-max-width").pfValue,h=t.pstyle("text-overflow-wrap").value,d=h==="anywhere",c=[],y=/[\s\u200b]+/,p=d?"":" ",g=0;g<v.length;g++){var m=v[g],b=this.calculateLabelDimensions(t,m),E=b.width;if(d){var M=m.split("").join(l);m=M}if(E>f){for(var L=m.split(y),w="",k=0;k<L.length;k++){var D=L[k],F=w.length===0?D:w+p+D,G=this.calculateLabelDimensions(t,F),I=G.width;I<=f?w+=D+p:(w&&c.push(w),w=D+p)}w.match(/^[\s\u200b]+$/)||c.push(w)}else c.push(m)}o("labelWrapCachedLines",c),n=o("labelWrapCachedText",c.join(`
`)),o("labelWrapKey",u)}else if(s==="ellipsis"){var X=t.pstyle("text-max-width").pfValue,B="",re="…",K=!1;if(this.calculateLabelDimensions(t,n).width<X)return n;for(var W=0;W<n.length;W++){var ae=this.calculateLabelDimensions(t,B+n[W]+re).width;if(ae>X)break;B+=n[W],W===n.length-1&&(K=!0)}return K||(B+=re),B}return n},fr.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,r=t.pstyle("text-halign").strValue;if(e==="auto")if(t.isNode())switch(r){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return e},fr.calculateLabelDimensions=function(t,e){var r=this,a=Pr(e,t._private.labelDimsKey),n=r.labelDimCache||(r.labelDimCache=[]),i=n[a];if(i!=null)return i;var o=0,s=t.pstyle("font-style").strValue,u=t.pstyle("font-size").pfValue,l=t.pstyle("font-family").strValue,v=t.pstyle("font-weight").strValue,f=this.labelCalcCanvas,h=this.labelCalcCanvasContext;if(!f){f=this.labelCalcCanvas=document.createElement("canvas"),h=this.labelCalcCanvasContext=f.getContext("2d");var d=f.style;d.position="absolute",d.left="-9999px",d.top="-9999px",d.zIndex="-1",d.visibility="hidden",d.pointerEvents="none"}h.font="".concat(s," ").concat(v," ").concat(u,"px ").concat(l);for(var c=0,y=0,p=e.split(`
`),g=0;g<p.length;g++){var m=p[g],b=h.measureText(m),E=Math.ceil(b.width),M=u;c=Math.max(E,c),y+=M}return c+=o,y+=o,n[a]={width:c,height:y}},fr.calculateLabelAngle=function(t,e){var r=t._private,a=r.rscratch,n=t.isEdge(),i=e?e+"-":"",o=t.pstyle(i+"text-rotation"),s=o.strValue;return s==="none"?0:n&&s==="autorotate"?a.labelAutoAngle:s==="autorotate"?0:o.pfValue},fr.calculateLabelAngles=function(t){var e=this,r=t.isEdge(),a=t._private,n=a.rscratch;n.labelAngle=e.calculateLabelAngle(t),r&&(n.sourceLabelAngle=e.calculateLabelAngle(t,"source"),n.targetLabelAngle=e.calculateLabelAngle(t,"target"))};var sl={},ll=28,ul=!1;sl.getNodeShape=function(t){var e=this,r=t.pstyle("shape").value;if(r==="cutrectangle"&&(t.width()<ll||t.height()<ll))return ul||(ht("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),ul=!0),"rectangle";if(t.isParent())return r==="rectangle"||r==="roundrectangle"||r==="round-rectangle"||r==="cutrectangle"||r==="cut-rectangle"||r==="barrel"?r:"rectangle";if(r==="polygon"){var a=t.pstyle("shape-polygon-points").value;return e.nodeShapes.makePolygon(a).name}return r};var Wn={};Wn.registerCalculationListeners=function(){var t=this.cy,e=t.collection(),r=this,a=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e.merge(o),s)for(var u=0;u<o.length;u++){var l=o[u],v=l._private,f=v.rstyle;f.clean=!1,f.cleanConnected=!1}};r.binder(t).on("bounds.* dirty.*",function(o){var s=o.target;a(s)}).on("style.* background.*",function(o){var s=o.target;a(s,!1)});var n=function(o){if(o){var s=r.onUpdateEleCalcsFns;e.cleanStyle();for(var u=0;u<e.length;u++){var l=e[u],v=l._private.rstyle;l.isNode()&&!v.cleanConnected&&(a(l.connectedEdges()),v.cleanConnected=!0)}if(s)for(var f=0;f<s.length;f++){var h=s[f];h(o,e)}r.recalculateRenderedStyle(e),e=t.collection()}};r.flushRenderedStyleQueue=function(){n(!0)},r.beforeRender(n,r.beforeRenderPriorities.eleCalcs)},Wn.onUpdateEleCalcs=function(t){var e=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];e.push(t)},Wn.recalculateRenderedStyle=function(t,e){var r=function(E){return E._private.rstyle.cleanConnected},a=[],n=[];if(!this.destroyed){e===void 0&&(e=!0);for(var i=0;i<t.length;i++){var o=t[i],s=o._private,u=s.rstyle;o.isEdge()&&(!r(o.source())||!r(o.target()))&&(u.clean=!1),!(e&&u.clean||o.removed())&&o.pstyle("display").value!=="none"&&(s.group==="nodes"?n.push(o):a.push(o),u.clean=!0)}for(var l=0;l<n.length;l++){var v=n[l],f=v._private,h=f.rstyle,d=v.position();this.recalculateNodeLabelProjection(v),h.nodeX=d.x,h.nodeY=d.y,h.nodeW=v.pstyle("width").pfValue,h.nodeH=v.pstyle("height").pfValue}this.recalculateEdgeProjections(a);for(var c=0;c<a.length;c++){var y=a[c],p=y._private,g=p.rstyle,m=p.rscratch;g.srcX=m.arrowStartX,g.srcY=m.arrowStartY,g.tgtX=m.arrowEndX,g.tgtY=m.arrowEndY,g.midX=m.midX,g.midY=m.midY,g.labelAngle=m.labelAngle,g.sourceLabelAngle=m.sourceLabelAngle,g.targetLabelAngle=m.targetLabelAngle}}};var qn={};qn.updateCachedGrabbedEles=function(){var t=this.cachedZSortedEles;if(t){t.drag=[],t.nondrag=[];for(var e=[],r=0;r<t.length;r++){var a=t[r],n=a._private.rscratch;a.grabbed()&&!a.isParent()?e.push(a):n.inDragLayer?t.drag.push(a):t.nondrag.push(a)}for(var r=0;r<e.length;r++){var a=e[r];t.drag.push(a)}}},qn.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null},qn.getCachedZSortedEles=function(t){if(t||!this.cachedZSortedEles){var e=this.cy.mutableElements().toArray();e.sort(Ms),e.interactive=e.filter(function(r){return r.interactive()}),this.cachedZSortedEles=e,this.updateCachedGrabbedEles()}else e=this.cachedZSortedEles;return e};var vl={};[Ur,Xn,Vt,Qa,Gi,fr,sl,Wn,qn].forEach(function(t){He(vl,t)});var fl={};fl.getCachedImage=function(t,e,r){var a=this,n=a.imageCache=a.imageCache||{},i=n[t];if(i)return i.image.complete||i.image.addEventListener("load",r),i.image;i=n[t]=n[t]||{};var o=i.image=new Image;o.addEventListener("load",r),o.addEventListener("error",function(){o.error=!0});var s="data:",u=t.substring(0,s.length).toLowerCase()===s;return u||(e=e==="null"?null:e,o.crossOrigin=e),o.src=t,o};var ya={};ya.registerBinding=function(t,e,r,a){var n=Array.prototype.slice.apply(arguments,[1]),i=this.binder(t);return i.on.apply(i,n)},ya.binder=function(t){var e=this,r=e.cy.window(),a=t===r||t===r.document||t===r.document.body||Ve(t);if(e.supportsPassiveEvents==null){var n=!1;try{var i=Object.defineProperty({},"passive",{get:function(){return n=!0,!0}});r.addEventListener("test",null,i)}catch{}e.supportsPassiveEvents=n}var o=function(u,l,v){var f=Array.prototype.slice.call(arguments);return a&&e.supportsPassiveEvents&&(f[2]={capture:v??!1,passive:!1,once:!1}),e.bindings.push({target:t,args:f}),(t.addEventListener||t.on).apply(t,f),this};return{on:o,addEventListener:o,addListener:o,bind:o}},ya.nodeIsDraggable=function(t){return t&&t.isNode()&&!t.locked()&&t.grabbable()},ya.nodeIsGrabbable=function(t){return this.nodeIsDraggable(t)&&t.interactive()},ya.load=function(){var t=this,e=t.cy.window(),r=function(O){return O.selected()},a=function(O,se,Te,ce){O==null&&(O=t.cy);for(var ye=0;ye<se.length;ye++){var _e=se[ye];O.emit({originalEvent:Te,type:_e,position:ce})}},n=function(O){return O.shiftKey||O.metaKey||O.ctrlKey},i=function(O,se){var Te=!0;if(t.cy.hasCompoundNodes()&&O&&O.pannable())for(var ce=0;se&&ce<se.length;ce++){var O=se[ce];if(O.isNode()&&O.isParent()&&!O.pannable()){Te=!1;break}}else Te=!0;return Te},o=function(O){O[0]._private.grabbed=!0},s=function(O){O[0]._private.grabbed=!1},u=function(O){O[0]._private.rscratch.inDragLayer=!0},l=function(O){O[0]._private.rscratch.inDragLayer=!1},v=function(O){O[0]._private.rscratch.isGrabTarget=!0},f=function(O){O[0]._private.rscratch.isGrabTarget=!1},h=function(O,se){var Te=se.addToList,ce=Te.has(O);!ce&&O.grabbable()&&!O.locked()&&(Te.merge(O),o(O))},d=function(O,se){if(O.cy().hasCompoundNodes()&&!(se.inDragLayer==null&&se.addToList==null)){var Te=O.descendants();se.inDragLayer&&(Te.forEach(u),Te.connectedEdges().forEach(u)),se.addToList&&h(Te,se)}},c=function(O,se){se=se||{};var Te=O.cy().hasCompoundNodes();se.inDragLayer&&(O.forEach(u),O.neighborhood().stdFilter(function(ce){return!Te||ce.isEdge()}).forEach(u)),se.addToList&&O.forEach(function(ce){h(ce,se)}),d(O,se),g(O,{inDragLayer:se.inDragLayer}),t.updateCachedGrabbedEles()},y=c,p=function(O){O&&(t.getCachedZSortedEles().forEach(function(se){s(se),l(se),f(se)}),t.updateCachedGrabbedEles())},g=function(O,se){if(!(se.inDragLayer==null&&se.addToList==null)&&O.cy().hasCompoundNodes()){var Te=O.ancestors().orphans();if(!Te.same(O)){var ce=Te.descendants().spawnSelf().merge(Te).unmerge(O).unmerge(O.descendants()),ye=ce.connectedEdges();se.inDragLayer&&(ye.forEach(u),ce.forEach(u)),se.addToList&&ce.forEach(function(_e){h(_e,se)})}}},m=function(){document.activeElement!=null&&document.activeElement.blur!=null&&document.activeElement.blur()},b=typeof MutationObserver<"u",E=typeof ResizeObserver<"u";b?(t.removeObserver=new MutationObserver(function(fe){for(var O=0;O<fe.length;O++){var se=fe[O],Te=se.removedNodes;if(Te)for(var ce=0;ce<Te.length;ce++){var ye=Te[ce];if(ye===t.container){t.destroy();break}}}}),t.container.parentNode&&t.removeObserver.observe(t.container.parentNode,{childList:!0})):t.registerBinding(t.container,"DOMNodeRemoved",function(fe){t.destroy()});var M=sn(function(){t.cy.resize()},100);b&&(t.styleObserver=new MutationObserver(M),t.styleObserver.observe(t.container,{attributes:!0})),t.registerBinding(e,"resize",M),E&&(t.resizeObserver=new ResizeObserver(M),t.resizeObserver.observe(t.container));var L=function(O,se){for(;O!=null;)se(O),O=O.parentNode},w=function(){t.invalidateContainerClientCoordsCache()};L(t.container,function(fe){t.registerBinding(fe,"transitionend",w),t.registerBinding(fe,"animationend",w),t.registerBinding(fe,"scroll",w)}),t.registerBinding(t.container,"contextmenu",function(fe){fe.preventDefault()});var k=function(){return t.selection[4]!==0},D=function(O){for(var se=t.findContainerClientCoords(),Te=se[0],ce=se[1],ye=se[2],_e=se[3],be=O.touches?O.touches:[O],Ge=!1,Qe=0;Qe<be.length;Qe++){var vt=be[Qe];if(Te<=vt.clientX&&vt.clientX<=Te+ye&&ce<=vt.clientY&&vt.clientY<=ce+_e){Ge=!0;break}}if(!Ge)return!1;for(var qe=t.container,st=O.target,Ke=st.parentNode,Je=!1;Ke;){if(Ke===qe){Je=!0;break}Ke=Ke.parentNode}return!!Je};t.registerBinding(t.container,"mousedown",function(O){if(D(O)){O.preventDefault(),m(),t.hoverData.capture=!0,t.hoverData.which=O.which;var se=t.cy,Te=[O.clientX,O.clientY],ce=t.projectIntoViewport(Te[0],Te[1]),ye=t.selection,_e=t.findNearestElements(ce[0],ce[1],!0,!1),be=_e[0],Ge=t.dragData.possibleDragElements;t.hoverData.mdownPos=ce,t.hoverData.mdownGPos=Te;var Qe=function(){t.hoverData.tapholdCancelled=!1,clearTimeout(t.hoverData.tapholdTimeout),t.hoverData.tapholdTimeout=setTimeout(function(){if(!t.hoverData.tapholdCancelled){var Ct=t.hoverData.down;Ct?Ct.emit({originalEvent:O,type:"taphold",position:{x:ce[0],y:ce[1]}}):se.emit({originalEvent:O,type:"taphold",position:{x:ce[0],y:ce[1]}})}},t.tapholdDuration)};if(O.which==3){t.hoverData.cxtStarted=!0;var vt={originalEvent:O,type:"cxttapstart",position:{x:ce[0],y:ce[1]}};be?(be.activate(),be.emit(vt),t.hoverData.down=be):se.emit(vt),t.hoverData.downTime=new Date().getTime(),t.hoverData.cxtDragged=!1}else if(O.which==1){be&&be.activate();{if(be!=null&&t.nodeIsGrabbable(be)){var qe=function(Ct){return{originalEvent:O,type:Ct,position:{x:ce[0],y:ce[1]}}},st=function(Ct){Ct.emit(qe("grab"))};if(v(be),!be.selected())Ge=t.dragData.possibleDragElements=se.collection(),y(be,{addToList:Ge}),be.emit(qe("grabon")).emit(qe("grab"));else{Ge=t.dragData.possibleDragElements=se.collection();var Ke=se.$(function(Je){return Je.isNode()&&Je.selected()&&t.nodeIsGrabbable(Je)});c(Ke,{addToList:Ge}),be.emit(qe("grabon")),Ke.forEach(st)}t.redrawHint("eles",!0),t.redrawHint("drag",!0)}t.hoverData.down=be,t.hoverData.downs=_e,t.hoverData.downTime=new Date().getTime()}a(be,["mousedown","tapstart","vmousedown"],O,{x:ce[0],y:ce[1]}),be==null?(ye[4]=1,t.data.bgActivePosistion={x:ce[0],y:ce[1]},t.redrawHint("select",!0),t.redraw()):be.pannable()&&(ye[4]=1),Qe()}ye[0]=ye[2]=ce[0],ye[1]=ye[3]=ce[1]}},!1),t.registerBinding(e,"mousemove",function(O){var se=t.hoverData.capture;if(!(!se&&!D(O))){var Te=!1,ce=t.cy,ye=ce.zoom(),_e=[O.clientX,O.clientY],be=t.projectIntoViewport(_e[0],_e[1]),Ge=t.hoverData.mdownPos,Qe=t.hoverData.mdownGPos,vt=t.selection,qe=null;!t.hoverData.draggingEles&&!t.hoverData.dragging&&!t.hoverData.selecting&&(qe=t.findNearestElement(be[0],be[1],!0,!1));var st=t.hoverData.last,Ke=t.hoverData.down,Je=[be[0]-vt[2],be[1]-vt[3]],Ct=t.dragData.possibleDragElements,Rt;if(Qe){var ar=_e[0]-Qe[0],nr=ar*ar,kt=_e[1]-Qe[1],Jt=kt*kt,_t=nr+Jt;t.hoverData.isOverThresholdDrag=Rt=_t>=t.desktopTapThreshold2}var Er=n(O);Rt&&(t.hoverData.tapholdCancelled=!0);var Rr=function(){var cr=t.hoverData.dragDelta=t.hoverData.dragDelta||[];cr.length===0?(cr.push(Je[0]),cr.push(Je[1])):(cr[0]+=Je[0],cr[1]+=Je[1])};Te=!0,a(qe,["mousemove","vmousemove","tapdrag"],O,{x:be[0],y:be[1]});var xa=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||ce.emit({originalEvent:O,type:"boxstart",position:{x:be[0],y:be[1]}}),vt[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(t.hoverData.which===3){if(Rt){var Xr={originalEvent:O,type:"cxtdrag",position:{x:be[0],y:be[1]}};Ke?Ke.emit(Xr):ce.emit(Xr),t.hoverData.cxtDragged=!0,(!t.hoverData.cxtOver||qe!==t.hoverData.cxtOver)&&(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:O,type:"cxtdragout",position:{x:be[0],y:be[1]}}),t.hoverData.cxtOver=qe,qe&&qe.emit({originalEvent:O,type:"cxtdragover",position:{x:be[0],y:be[1]}}))}}else if(t.hoverData.dragging){if(Te=!0,ce.panningEnabled()&&ce.userPanningEnabled()){var Ta;if(t.hoverData.justStartedPan){var Jn=t.hoverData.mdownPos;Ta={x:(be[0]-Jn[0])*ye,y:(be[1]-Jn[1])*ye},t.hoverData.justStartedPan=!1}else Ta={x:Je[0]*ye,y:Je[1]*ye};ce.panBy(Ta),ce.emit("dragpan"),t.hoverData.dragged=!0}be=t.projectIntoViewport(O.clientX,O.clientY)}else if(vt[4]==1&&(Ke==null||Ke.pannable())){if(Rt){if(!t.hoverData.dragging&&ce.boxSelectionEnabled()&&(Er||!ce.panningEnabled()||!ce.userPanningEnabled()))xa();else if(!t.hoverData.selecting&&ce.panningEnabled()&&ce.userPanningEnabled()){var Wr=i(Ke,t.hoverData.downs);Wr&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,vt[4]=0,t.data.bgActivePosistion=jr(Ge),t.redrawHint("select",!0),t.redraw())}Ke&&Ke.pannable()&&Ke.active()&&Ke.unactivate()}}else{if(Ke&&Ke.pannable()&&Ke.active()&&Ke.unactivate(),(!Ke||!Ke.grabbed())&&qe!=st&&(st&&a(st,["mouseout","tapdragout"],O,{x:be[0],y:be[1]}),qe&&a(qe,["mouseover","tapdragover"],O,{x:be[0],y:be[1]}),t.hoverData.last=qe),Ke)if(Rt){if(ce.boxSelectionEnabled()&&Er)Ke&&Ke.grabbed()&&(p(Ct),Ke.emit("freeon"),Ct.emit("free"),t.dragData.didDrag&&(Ke.emit("dragfreeon"),Ct.emit("dragfree"))),xa();else if(Ke&&Ke.grabbed()&&t.nodeIsDraggable(Ke)){var Xt=!t.dragData.didDrag;Xt&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||c(Ct,{inDragLayer:!0});var $t={x:0,y:0};if(R(Je[0])&&R(Je[1])&&($t.x+=Je[0],$t.y+=Je[1],Xt)){var Wt=t.hoverData.dragDelta;Wt&&R(Wt[0])&&R(Wt[1])&&($t.x+=Wt[0],$t.y+=Wt[1])}t.hoverData.draggingEles=!0,Ct.silentShift($t).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else Rr();Te=!0}if(vt[2]=be[0],vt[3]=be[1],Te)return O.stopPropagation&&O.stopPropagation(),O.preventDefault&&O.preventDefault(),!1}},!1);var F,G,I;t.registerBinding(e,"mouseup",function(O){var se=t.hoverData.capture;if(se){t.hoverData.capture=!1;var Te=t.cy,ce=t.projectIntoViewport(O.clientX,O.clientY),ye=t.selection,_e=t.findNearestElement(ce[0],ce[1],!0,!1),be=t.dragData.possibleDragElements,Ge=t.hoverData.down,Qe=n(O);if(t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,Ge&&Ge.unactivate(),t.hoverData.which===3){var vt={originalEvent:O,type:"cxttapend",position:{x:ce[0],y:ce[1]}};if(Ge?Ge.emit(vt):Te.emit(vt),!t.hoverData.cxtDragged){var qe={originalEvent:O,type:"cxttap",position:{x:ce[0],y:ce[1]}};Ge?Ge.emit(qe):Te.emit(qe)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(t.hoverData.which===1){if(a(_e,["mouseup","tapend","vmouseup"],O,{x:ce[0],y:ce[1]}),!t.dragData.didDrag&&!t.hoverData.dragged&&!t.hoverData.selecting&&!t.hoverData.isOverThresholdDrag&&(a(Ge,["click","tap","vclick"],O,{x:ce[0],y:ce[1]}),G=!1,O.timeStamp-I<=Te.multiClickDebounceTime()?(F&&clearTimeout(F),G=!0,I=null,a(Ge,["dblclick","dbltap","vdblclick"],O,{x:ce[0],y:ce[1]})):(F=setTimeout(function(){G||a(Ge,["oneclick","onetap","voneclick"],O,{x:ce[0],y:ce[1]})},Te.multiClickDebounceTime()),I=O.timeStamp)),Ge==null&&!t.dragData.didDrag&&!t.hoverData.selecting&&!t.hoverData.dragged&&!n(O)&&(Te.$(r).unselect(["tapunselect"]),be.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=be=Te.collection()),_e==Ge&&!t.dragData.didDrag&&!t.hoverData.selecting&&_e!=null&&_e._private.selectable&&(t.hoverData.dragging||(Te.selectionType()==="additive"||Qe?_e.selected()?_e.unselect(["tapunselect"]):_e.select(["tapselect"]):Qe||(Te.$(r).unmerge(_e).unselect(["tapunselect"]),_e.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var st=Te.collection(t.getAllInBox(ye[0],ye[1],ye[2],ye[3]));t.redrawHint("select",!0),st.length>0&&t.redrawHint("eles",!0),Te.emit({type:"boxend",originalEvent:O,position:{x:ce[0],y:ce[1]}});var Ke=function(Rt){return Rt.selectable()&&!Rt.selected()};Te.selectionType()==="additive"||Qe||Te.$(r).unmerge(st).unselect(),st.emit("box").stdFilter(Ke).select().emit("boxselect"),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!ye[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var Je=Ge&&Ge.grabbed();p(be),Je&&(Ge.emit("freeon"),be.emit("free"),t.dragData.didDrag&&(Ge.emit("dragfreeon"),be.emit("dragfree")))}}ye[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null}},!1);var X=function(O){if(!t.scrollingPage){var se=t.cy,Te=se.zoom(),ce=se.pan(),ye=t.projectIntoViewport(O.clientX,O.clientY),_e=[ye[0]*Te+ce.x,ye[1]*Te+ce.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||k()){O.preventDefault();return}if(se.panningEnabled()&&se.userPanningEnabled()&&se.zoomingEnabled()&&se.userZoomingEnabled()){O.preventDefault(),t.data.wheelZooming=!0,clearTimeout(t.data.wheelTimeout),t.data.wheelTimeout=setTimeout(function(){t.data.wheelZooming=!1,t.redrawHint("eles",!0),t.redraw()},150);var be;O.deltaY!=null?be=O.deltaY/-250:O.wheelDeltaY!=null?be=O.wheelDeltaY/1e3:be=O.wheelDelta/1e3,be=be*t.wheelSensitivity;var Ge=O.deltaMode===1;Ge&&(be*=33);var Qe=se.zoom()*Math.pow(10,be);O.type==="gesturechange"&&(Qe=t.gestureStartZoom*O.scale),se.zoom({level:Qe,renderedPosition:{x:_e[0],y:_e[1]}}),se.emit(O.type==="gesturechange"?"pinchzoom":"scrollzoom")}}};t.registerBinding(t.container,"wheel",X,!0),t.registerBinding(e,"scroll",function(O){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout(function(){t.scrollingPage=!1},250)},!0),t.registerBinding(t.container,"gesturestart",function(O){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||O.preventDefault()},!0),t.registerBinding(t.container,"gesturechange",function(fe){t.hasTouchStarted||X(fe)},!0),t.registerBinding(t.container,"mouseout",function(O){var se=t.projectIntoViewport(O.clientX,O.clientY);t.cy.emit({originalEvent:O,type:"mouseout",position:{x:se[0],y:se[1]}})},!1),t.registerBinding(t.container,"mouseover",function(O){var se=t.projectIntoViewport(O.clientX,O.clientY);t.cy.emit({originalEvent:O,type:"mouseover",position:{x:se[0],y:se[1]}})},!1);var B,re,K,W,ae,ue,me,ie,ge,Ee,Ce,we,De,oe=function(O,se,Te,ce){return Math.sqrt((Te-O)*(Te-O)+(ce-se)*(ce-se))},xe=function(O,se,Te,ce){return(Te-O)*(Te-O)+(ce-se)*(ce-se)},Le;t.registerBinding(t.container,"touchstart",Le=function(O){if(t.hasTouchStarted=!0,!!D(O)){m(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var se=t.cy,Te=t.touchData.now,ce=t.touchData.earlier;if(O.touches[0]){var ye=t.projectIntoViewport(O.touches[0].clientX,O.touches[0].clientY);Te[0]=ye[0],Te[1]=ye[1]}if(O.touches[1]){var ye=t.projectIntoViewport(O.touches[1].clientX,O.touches[1].clientY);Te[2]=ye[0],Te[3]=ye[1]}if(O.touches[2]){var ye=t.projectIntoViewport(O.touches[2].clientX,O.touches[2].clientY);Te[4]=ye[0],Te[5]=ye[1]}if(O.touches[1]){t.touchData.singleTouchMoved=!0,p(t.dragData.touchDragEles);var _e=t.findContainerClientCoords();ge=_e[0],Ee=_e[1],Ce=_e[2],we=_e[3],B=O.touches[0].clientX-ge,re=O.touches[0].clientY-Ee,K=O.touches[1].clientX-ge,W=O.touches[1].clientY-Ee,De=0<=B&&B<=Ce&&0<=K&&K<=Ce&&0<=re&&re<=we&&0<=W&&W<=we;var be=se.pan(),Ge=se.zoom();ae=oe(B,re,K,W),ue=xe(B,re,K,W),me=[(B+K)/2,(re+W)/2],ie=[(me[0]-be.x)/Ge,(me[1]-be.y)/Ge];var Qe=200,vt=Qe*Qe;if(ue<vt&&!O.touches[2]){var qe=t.findNearestElement(Te[0],Te[1],!0,!0),st=t.findNearestElement(Te[2],Te[3],!0,!0);qe&&qe.isNode()?(qe.activate().emit({originalEvent:O,type:"cxttapstart",position:{x:Te[0],y:Te[1]}}),t.touchData.start=qe):st&&st.isNode()?(st.activate().emit({originalEvent:O,type:"cxttapstart",position:{x:Te[0],y:Te[1]}}),t.touchData.start=st):se.emit({originalEvent:O,type:"cxttapstart",position:{x:Te[0],y:Te[1]}}),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!0,t.touchData.cxtDragged=!1,t.data.bgActivePosistion=void 0,t.redraw();return}}if(O.touches[2])se.boxSelectionEnabled()&&O.preventDefault();else if(!O.touches[1]){if(O.touches[0]){var Ke=t.findNearestElements(Te[0],Te[1],!0,!0),Je=Ke[0];if(Je!=null&&(Je.activate(),t.touchData.start=Je,t.touchData.starts=Ke,t.nodeIsGrabbable(Je))){var Ct=t.dragData.touchDragEles=se.collection(),Rt=null;t.redrawHint("eles",!0),t.redrawHint("drag",!0),Je.selected()?(Rt=se.$(function(_t){return _t.selected()&&t.nodeIsGrabbable(_t)}),c(Rt,{addToList:Ct})):y(Je,{addToList:Ct}),v(Je);var ar=function(Er){return{originalEvent:O,type:Er,position:{x:Te[0],y:Te[1]}}};Je.emit(ar("grabon")),Rt?Rt.forEach(function(_t){_t.emit(ar("grab"))}):Je.emit(ar("grab"))}a(Je,["touchstart","tapstart","vmousedown"],O,{x:Te[0],y:Te[1]}),Je==null&&(t.data.bgActivePosistion={x:ye[0],y:ye[1]},t.redrawHint("select",!0),t.redraw()),t.touchData.singleTouchMoved=!1,t.touchData.singleTouchStartTime=+new Date,clearTimeout(t.touchData.tapholdTimeout),t.touchData.tapholdTimeout=setTimeout(function(){t.touchData.singleTouchMoved===!1&&!t.pinching&&!t.touchData.selecting&&a(t.touchData.start,["taphold"],O,{x:Te[0],y:Te[1]})},t.tapholdDuration)}}if(O.touches.length>=1){for(var nr=t.touchData.startPosition=[null,null,null,null,null,null],kt=0;kt<Te.length;kt++)nr[kt]=ce[kt]=Te[kt];var Jt=O.touches[0];t.touchData.startGPosition=[Jt.clientX,Jt.clientY]}}},!1);var Se;t.registerBinding(window,"touchmove",Se=function(O){var se=t.touchData.capture;if(!(!se&&!D(O))){var Te=t.selection,ce=t.cy,ye=t.touchData.now,_e=t.touchData.earlier,be=ce.zoom();if(O.touches[0]){var Ge=t.projectIntoViewport(O.touches[0].clientX,O.touches[0].clientY);ye[0]=Ge[0],ye[1]=Ge[1]}if(O.touches[1]){var Ge=t.projectIntoViewport(O.touches[1].clientX,O.touches[1].clientY);ye[2]=Ge[0],ye[3]=Ge[1]}if(O.touches[2]){var Ge=t.projectIntoViewport(O.touches[2].clientX,O.touches[2].clientY);ye[4]=Ge[0],ye[5]=Ge[1]}var Qe=t.touchData.startGPosition,vt;if(se&&O.touches[0]&&Qe){for(var qe=[],st=0;st<ye.length;st++)qe[st]=ye[st]-_e[st];var Ke=O.touches[0].clientX-Qe[0],Je=Ke*Ke,Ct=O.touches[0].clientY-Qe[1],Rt=Ct*Ct,ar=Je+Rt;vt=ar>=t.touchTapThreshold2}if(se&&t.touchData.cxt){O.preventDefault();var nr=O.touches[0].clientX-ge,kt=O.touches[0].clientY-Ee,Jt=O.touches[1].clientX-ge,_t=O.touches[1].clientY-Ee,Er=xe(nr,kt,Jt,_t),Rr=Er/ue,xa=150,Xr=xa*xa,Ta=1.5,Jn=Ta*Ta;if(Rr>=Jn||Er>=Xr){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Wr={originalEvent:O,type:"cxttapend",position:{x:ye[0],y:ye[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(Wr),t.touchData.start=null):ce.emit(Wr)}}if(se&&t.touchData.cxt){var Wr={originalEvent:O,type:"cxtdrag",position:{x:ye[0],y:ye[1]}};t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(Wr):ce.emit(Wr),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var Xt=t.findNearestElement(ye[0],ye[1],!0,!0);(!t.touchData.cxtOver||Xt!==t.touchData.cxtOver)&&(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:O,type:"cxtdragout",position:{x:ye[0],y:ye[1]}}),t.touchData.cxtOver=Xt,Xt&&Xt.emit({originalEvent:O,type:"cxtdragover",position:{x:ye[0],y:ye[1]}}))}else if(se&&O.touches[2]&&ce.boxSelectionEnabled())O.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||ce.emit({originalEvent:O,type:"boxstart",position:{x:ye[0],y:ye[1]}}),t.touchData.selecting=!0,t.touchData.didSelect=!0,Te[4]=1,!Te||Te.length===0||Te[0]===void 0?(Te[0]=(ye[0]+ye[2]+ye[4])/3,Te[1]=(ye[1]+ye[3]+ye[5])/3,Te[2]=(ye[0]+ye[2]+ye[4])/3+1,Te[3]=(ye[1]+ye[3]+ye[5])/3+1):(Te[2]=(ye[0]+ye[2]+ye[4])/3,Te[3]=(ye[1]+ye[3]+ye[5])/3),t.redrawHint("select",!0),t.redraw();else if(se&&O.touches[1]&&!t.touchData.didSelect&&ce.zoomingEnabled()&&ce.panningEnabled()&&ce.userZoomingEnabled()&&ce.userPanningEnabled()){O.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var $t=t.dragData.touchDragEles;if($t){t.redrawHint("drag",!0);for(var Wt=0;Wt<$t.length;Wt++){var jn=$t[Wt]._private;jn.grabbed=!1,jn.rscratch.inDragLayer=!1}}var cr=t.touchData.start,nr=O.touches[0].clientX-ge,kt=O.touches[0].clientY-Ee,Jt=O.touches[1].clientX-ge,_t=O.touches[1].clientY-Ee,Bl=oe(nr,kt,Jt,_t),sp=Bl/ae;if(De){var lp=nr-B,up=kt-re,vp=Jt-K,fp=_t-W,hp=(lp+vp)/2,cp=(up+fp)/2,rn=ce.zoom(),Wi=rn*sp,ei=ce.pan(),Fl=ie[0]*rn+ei.x,Gl=ie[1]*rn+ei.y,dp={x:-Wi/rn*(Fl-ei.x-hp)+Fl,y:-Wi/rn*(Gl-ei.y-cp)+Gl};if(cr&&cr.active()){var $t=t.dragData.touchDragEles;p($t),t.redrawHint("drag",!0),t.redrawHint("eles",!0),cr.unactivate().emit("freeon"),$t.emit("free"),t.dragData.didDrag&&(cr.emit("dragfreeon"),$t.emit("dragfree"))}ce.viewport({zoom:Wi,pan:dp,cancelOnFailedZoom:!0}),ce.emit("pinchzoom"),ae=Bl,B=nr,re=kt,K=Jt,W=_t,t.pinching=!0}if(O.touches[0]){var Ge=t.projectIntoViewport(O.touches[0].clientX,O.touches[0].clientY);ye[0]=Ge[0],ye[1]=Ge[1]}if(O.touches[1]){var Ge=t.projectIntoViewport(O.touches[1].clientX,O.touches[1].clientY);ye[2]=Ge[0],ye[3]=Ge[1]}if(O.touches[2]){var Ge=t.projectIntoViewport(O.touches[2].clientX,O.touches[2].clientY);ye[4]=Ge[0],ye[5]=Ge[1]}}else if(O.touches[0]&&!t.touchData.didSelect){var ir=t.touchData.start,qi=t.touchData.last,Xt;if(!t.hoverData.draggingEles&&!t.swipePanning&&(Xt=t.findNearestElement(ye[0],ye[1],!0,!0)),se&&ir!=null&&O.preventDefault(),se&&ir!=null&&t.nodeIsDraggable(ir))if(vt){var $t=t.dragData.touchDragEles,zl=!t.dragData.didDrag;zl&&c($t,{inDragLayer:!0}),t.dragData.didDrag=!0;var an={x:0,y:0};if(R(qe[0])&&R(qe[1])&&(an.x+=qe[0],an.y+=qe[1],zl)){t.redrawHint("eles",!0);var or=t.touchData.dragDelta;or&&R(or[0])&&R(or[1])&&(an.x+=or[0],an.y+=or[1])}t.hoverData.draggingEles=!0,$t.silentShift(an).emit("position drag"),t.redrawHint("drag",!0),t.touchData.startPosition[0]==_e[0]&&t.touchData.startPosition[1]==_e[1]&&t.redrawHint("eles",!0),t.redraw()}else{var or=t.touchData.dragDelta=t.touchData.dragDelta||[];or.length===0?(or.push(qe[0]),or.push(qe[1])):(or[0]+=qe[0],or[1]+=qe[1])}if(a(ir||Xt,["touchmove","tapdrag","vmousemove"],O,{x:ye[0],y:ye[1]}),(!ir||!ir.grabbed())&&Xt!=qi&&(qi&&qi.emit({originalEvent:O,type:"tapdragout",position:{x:ye[0],y:ye[1]}}),Xt&&Xt.emit({originalEvent:O,type:"tapdragover",position:{x:ye[0],y:ye[1]}})),t.touchData.last=Xt,se)for(var Wt=0;Wt<ye.length;Wt++)ye[Wt]&&t.touchData.startPosition[Wt]&&vt&&(t.touchData.singleTouchMoved=!0);if(se&&(ir==null||ir.pannable())&&ce.panningEnabled()&&ce.userPanningEnabled()){var gp=i(ir,t.touchData.starts);gp&&(O.preventDefault(),t.data.bgActivePosistion||(t.data.bgActivePosistion=jr(t.touchData.startPosition)),t.swipePanning?(ce.panBy({x:qe[0]*be,y:qe[1]*be}),ce.emit("dragpan")):vt&&(t.swipePanning=!0,ce.panBy({x:Ke*be,y:Ct*be}),ce.emit("dragpan"),ir&&(ir.unactivate(),t.redrawHint("select",!0),t.touchData.start=null)));var Ge=t.projectIntoViewport(O.touches[0].clientX,O.touches[0].clientY);ye[0]=Ge[0],ye[1]=Ge[1]}}for(var st=0;st<ye.length;st++)_e[st]=ye[st];se&&O.touches.length>0&&!t.hoverData.draggingEles&&!t.swipePanning&&t.data.bgActivePosistion!=null&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1);var Oe;t.registerBinding(e,"touchcancel",Oe=function(O){var se=t.touchData.start;t.touchData.capture=!1,se&&se.unactivate()});var Fe,Xe,Ie,Me;if(t.registerBinding(e,"touchend",Fe=function(O){var se=t.touchData.start,Te=t.touchData.capture;if(Te)O.touches.length===0&&(t.touchData.capture=!1),O.preventDefault();else return;var ce=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var ye=t.cy,_e=ye.zoom(),be=t.touchData.now,Ge=t.touchData.earlier;if(O.touches[0]){var Qe=t.projectIntoViewport(O.touches[0].clientX,O.touches[0].clientY);be[0]=Qe[0],be[1]=Qe[1]}if(O.touches[1]){var Qe=t.projectIntoViewport(O.touches[1].clientX,O.touches[1].clientY);be[2]=Qe[0],be[3]=Qe[1]}if(O.touches[2]){var Qe=t.projectIntoViewport(O.touches[2].clientX,O.touches[2].clientY);be[4]=Qe[0],be[5]=Qe[1]}se&&se.unactivate();var vt;if(t.touchData.cxt){if(vt={originalEvent:O,type:"cxttapend",position:{x:be[0],y:be[1]}},se?se.emit(vt):ye.emit(vt),!t.touchData.cxtDragged){var qe={originalEvent:O,type:"cxttap",position:{x:be[0],y:be[1]}};se?se.emit(qe):ye.emit(qe)}t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,t.redraw();return}if(!O.touches[2]&&ye.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var st=ye.collection(t.getAllInBox(ce[0],ce[1],ce[2],ce[3]));ce[0]=void 0,ce[1]=void 0,ce[2]=void 0,ce[3]=void 0,ce[4]=0,t.redrawHint("select",!0),ye.emit({type:"boxend",originalEvent:O,position:{x:be[0],y:be[1]}});var Ke=function(Xr){return Xr.selectable()&&!Xr.selected()};st.emit("box").stdFilter(Ke).select().emit("boxselect"),st.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(se!=null&&se.unactivate(),O.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(!O.touches[1]){if(!O.touches[0]){if(!O.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var Je=t.dragData.touchDragEles;if(se!=null){var Ct=se._private.grabbed;p(Je),t.redrawHint("drag",!0),t.redrawHint("eles",!0),Ct&&(se.emit("freeon"),Je.emit("free"),t.dragData.didDrag&&(se.emit("dragfreeon"),Je.emit("dragfree"))),a(se,["touchend","tapend","vmouseup","tapdragout"],O,{x:be[0],y:be[1]}),se.unactivate(),t.touchData.start=null}else{var Rt=t.findNearestElement(be[0],be[1],!0,!0);a(Rt,["touchend","tapend","vmouseup","tapdragout"],O,{x:be[0],y:be[1]})}var ar=t.touchData.startPosition[0]-be[0],nr=ar*ar,kt=t.touchData.startPosition[1]-be[1],Jt=kt*kt,_t=nr+Jt,Er=_t*_e*_e;t.touchData.singleTouchMoved||(se||ye.$(":selected").unselect(["tapunselect"]),a(se,["tap","vclick"],O,{x:be[0],y:be[1]}),Xe=!1,O.timeStamp-Me<=ye.multiClickDebounceTime()?(Ie&&clearTimeout(Ie),Xe=!0,Me=null,a(se,["dbltap","vdblclick"],O,{x:be[0],y:be[1]})):(Ie=setTimeout(function(){Xe||a(se,["onetap","voneclick"],O,{x:be[0],y:be[1]})},ye.multiClickDebounceTime()),Me=O.timeStamp)),se!=null&&!t.dragData.didDrag&&se._private.selectable&&Er<t.touchTapThreshold2&&!t.pinching&&(ye.selectionType()==="single"?(ye.$(r).unmerge(se).unselect(["tapunselect"]),se.select(["tapselect"])):se.selected()?se.unselect(["tapunselect"]):se.select(["tapselect"]),t.redrawHint("eles",!0)),t.touchData.singleTouchMoved=!0}}}for(var Rr=0;Rr<be.length;Rr++)Ge[Rr]=be[Rr];t.dragData.didDrag=!1,O.touches.length===0&&(t.touchData.dragDelta=[],t.touchData.startPosition=[null,null,null,null,null,null],t.touchData.startGPosition=null,t.touchData.didSelect=!1),O.touches.length<2&&(O.touches.length===1&&(t.touchData.startGPosition=[O.touches[0].clientX,O.touches[0].clientY]),t.pinching=!1,t.redrawHint("eles",!0),t.redraw())},!1),typeof TouchEvent>"u"){var $e=[],ze=function(O){return{clientX:O.clientX,clientY:O.clientY,force:1,identifier:O.pointerId,pageX:O.pageX,pageY:O.pageY,radiusX:O.width/2,radiusY:O.height/2,screenX:O.screenX,screenY:O.screenY,target:O.target}},Be=function(O){return{event:O,touch:ze(O)}},Ue=function(O){$e.push(Be(O))},rt=function(O){for(var se=0;se<$e.length;se++){var Te=$e[se];if(Te.event.pointerId===O.pointerId){$e.splice(se,1);return}}},je=function(O){var se=$e.filter(function(Te){return Te.event.pointerId===O.pointerId})[0];se.event=O,se.touch=ze(O)},We=function(O){O.touches=$e.map(function(se){return se.touch})},et=function(O){return O.pointerType==="mouse"||O.pointerType===4};t.registerBinding(t.container,"pointerdown",function(fe){et(fe)||(fe.preventDefault(),Ue(fe),We(fe),Le(fe))}),t.registerBinding(t.container,"pointerup",function(fe){et(fe)||(rt(fe),We(fe),Fe(fe))}),t.registerBinding(t.container,"pointercancel",function(fe){et(fe)||(rt(fe),We(fe),Oe(fe))}),t.registerBinding(t.container,"pointermove",function(fe){et(fe)||(fe.preventDefault(),je(fe),We(fe),Se(fe))})}};var mr={};mr.generatePolygon=function(t,e){return this.nodeShapes[t]={renderer:this,name:t,points:e,draw:function(a,n,i,o,s){this.renderer.nodeShapeImpl("polygon",a,n,i,o,s,this.points)},intersectLine:function(a,n,i,o,s,u,l){return Ba(s,u,this.points,a,n,i/2,o/2,l)},checkPoint:function(a,n,i,o,s,u,l){return pr(a,n,this.points,u,l,o,s,[0,-1],i)}}},mr.generateEllipse=function(){return this.nodeShapes.ellipse={renderer:this,name:"ellipse",draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,o,s){return Mv(i,o,e,r,a/2+s,n/2+s)},checkPoint:function(e,r,a,n,i,o,s){return Gr(e,r,n,i,o,s,a)}}},mr.generateRoundPolygon=function(t,e){for(var r=new Array(e.length*2),a=0;a<e.length/2;a++){var n=a*2,i=void 0;a<e.length/2-1?i=(a+1)*2:i=0,r[a*4]=e[n],r[a*4+1]=e[n+1];var o=e[i]-e[n],s=e[i+1]-e[n+1],u=Math.sqrt(o*o+s*s);r[a*4+2]=o/u,r[a*4+3]=s/u}return this.nodeShapes[t]={renderer:this,name:t,points:r,draw:function(v,f,h,d,c){this.renderer.nodeShapeImpl("round-polygon",v,f,h,d,c,this.points)},intersectLine:function(v,f,h,d,c,y,p){return Rv(c,y,this.points,v,f,h,d)},checkPoint:function(v,f,h,d,c,y,p){return Iv(v,f,this.points,y,p,d,c)}}},mr.generateRoundRectangle=function(){return this.nodeShapes["round-rectangle"]=this.nodeShapes.roundrectangle={renderer:this,name:"round-rectangle",points:Ut(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,o,s){return Do(i,o,e,r,a,n,s)},checkPoint:function(e,r,a,n,i,o,s){var u=Fa(n,i),l=u*2;return!!(pr(e,r,this.points,o,s,n,i-l,[0,-1],a)||pr(e,r,this.points,o,s,n-l,i,[0,-1],a)||Gr(e,r,l,l,o-n/2+u,s-i/2+u,a)||Gr(e,r,l,l,o+n/2-u,s-i/2+u,a)||Gr(e,r,l,l,o+n/2-u,s+i/2-u,a)||Gr(e,r,l,l,o-n/2+u,s+i/2-u,a))}}},mr.generateCutRectangle=function(){return this.nodeShapes["cut-rectangle"]=this.nodeShapes.cutrectangle={renderer:this,name:"cut-rectangle",cornerLength:Lo(),points:Ut(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},generateCutTrianglePts:function(e,r,a,n){var i=this.cornerLength,o=r/2,s=e/2,u=a-s,l=a+s,v=n-o,f=n+o;return{topLeft:[u,v+i,u+i,v,u+i,v+i],topRight:[l-i,v,l,v+i,l-i,v+i],bottomRight:[l,f-i,l-i,f,l-i,f-i],bottomLeft:[u+i,f,u,f-i,u+i,f-i]}},intersectLine:function(e,r,a,n,i,o,s){var u=this.generateCutTrianglePts(a+2*s,n+2*s,e,r),l=[].concat.apply([],[u.topLeft.splice(0,4),u.topRight.splice(0,4),u.bottomRight.splice(0,4),u.bottomLeft.splice(0,4)]);return Ba(i,o,l,e,r)},checkPoint:function(e,r,a,n,i,o,s){if(pr(e,r,this.points,o,s,n,i-2*this.cornerLength,[0,-1],a)||pr(e,r,this.points,o,s,n-2*this.cornerLength,i,[0,-1],a))return!0;var u=this.generateCutTrianglePts(n,i,o,s);return Ht(e,r,u.topLeft)||Ht(e,r,u.topRight)||Ht(e,r,u.bottomRight)||Ht(e,r,u.bottomLeft)}}},mr.generateBarrel=function(){return this.nodeShapes.barrel={renderer:this,name:"barrel",points:Ut(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,o,s){var u=.15,l=.5,v=.85,f=this.generateBarrelBezierPts(a+2*s,n+2*s,e,r),h=function(y){var p=ea({x:y[0],y:y[1]},{x:y[2],y:y[3]},{x:y[4],y:y[5]},u),g=ea({x:y[0],y:y[1]},{x:y[2],y:y[3]},{x:y[4],y:y[5]},l),m=ea({x:y[0],y:y[1]},{x:y[2],y:y[3]},{x:y[4],y:y[5]},v);return[y[0],y[1],p.x,p.y,g.x,g.y,m.x,m.y,y[4],y[5]]},d=[].concat(h(f.topLeft),h(f.topRight),h(f.bottomRight),h(f.bottomLeft));return Ba(i,o,d,e,r)},generateBarrelBezierPts:function(e,r,a,n){var i=r/2,o=e/2,s=a-o,u=a+o,l=n-i,v=n+i,f=di(e,r),h=f.heightOffset,d=f.widthOffset,c=f.ctrlPtOffsetPct*e,y={topLeft:[s,l+h,s+c,l,s+d,l],topRight:[u-d,l,u-c,l,u,l+h],bottomRight:[u,v-h,u-c,v,u-d,v],bottomLeft:[s+d,v,s+c,v,s,v-h]};return y.topLeft.isTop=!0,y.topRight.isTop=!0,y.bottomLeft.isBottom=!0,y.bottomRight.isBottom=!0,y},checkPoint:function(e,r,a,n,i,o,s){var u=di(n,i),l=u.heightOffset,v=u.widthOffset;if(pr(e,r,this.points,o,s,n,i-2*l,[0,-1],a)||pr(e,r,this.points,o,s,n-2*v,i,[0,-1],a))return!0;for(var f=this.generateBarrelBezierPts(n,i,o,s),h=function(w,k,D){var F=D[4],G=D[2],I=D[0],X=D[5],B=D[1],re=Math.min(F,I),K=Math.max(F,I),W=Math.min(X,B),ae=Math.max(X,B);if(re<=w&&w<=K&&W<=k&&k<=ae){var ue=kv(F,G,I),me=Lv(ue[0],ue[1],ue[2],w),ie=me.filter(function(ge){return 0<=ge&&ge<=1});if(ie.length>0)return ie[0]}return null},d=Object.keys(f),c=0;c<d.length;c++){var y=d[c],p=f[y],g=h(e,r,p);if(g!=null){var m=p[5],b=p[3],E=p[1],M=Lt(m,b,E,g);if(p.isTop&&M<=r||p.isBottom&&r<=M)return!0}}return!1}}},mr.generateBottomRoundrectangle=function(){return this.nodeShapes["bottom-round-rectangle"]=this.nodeShapes.bottomroundrectangle={renderer:this,name:"bottom-round-rectangle",points:Ut(4,0),draw:function(e,r,a,n,i){this.renderer.nodeShapeImpl(this.name,e,r,a,n,i)},intersectLine:function(e,r,a,n,i,o,s){var u=e-(a/2+s),l=r-(n/2+s),v=l,f=e+(a/2+s),h=Cr(i,o,e,r,u,l,f,v,!1);return h.length>0?h:Do(i,o,e,r,a,n,s)},checkPoint:function(e,r,a,n,i,o,s){var u=Fa(n,i),l=2*u;if(pr(e,r,this.points,o,s,n,i-l,[0,-1],a)||pr(e,r,this.points,o,s,n-l,i,[0,-1],a))return!0;var v=n/2+2*a,f=i/2+2*a,h=[o-v,s-f,o-v,s,o+v,s,o+v,s-f];return!!(Ht(e,r,h)||Gr(e,r,l,l,o+n/2-u,s+i/2-u,a)||Gr(e,r,l,l,o-n/2+u,s+i/2-u,a))}}},mr.registerNodeShapes=function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",Ut(3,0)),this.generateRoundPolygon("round-triangle",Ut(3,0)),this.generatePolygon("rectangle",Ut(4,0)),t.square=t.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var r=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",r),this.generateRoundPolygon("round-diamond",r)}this.generatePolygon("pentagon",Ut(5,0)),this.generateRoundPolygon("round-pentagon",Ut(5,0)),this.generatePolygon("hexagon",Ut(6,0)),this.generateRoundPolygon("round-hexagon",Ut(6,0)),this.generatePolygon("heptagon",Ut(7,0)),this.generateRoundPolygon("round-heptagon",Ut(7,0)),this.generatePolygon("octagon",Ut(8,0)),this.generateRoundPolygon("round-octagon",Ut(8,0));var a=new Array(20);{var n=hi(5,0),i=hi(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s<i.length/2;s++)i[s*2]*=o,i[s*2+1]*=o;for(var s=0;s<20/4;s++)a[s*4]=n[s*2],a[s*4+1]=n[s*2+1],a[s*4+2]=i[s*2],a[s*4+3]=i[s*2+1]}a=So(a),this.generatePolygon("star",a),this.generatePolygon("vee",[-1,-1,0,-.333,1,-1,0,1]),this.generatePolygon("rhomboid",[-1,-1,.333,-1,1,1,-.333,1]),this.generatePolygon("right-rhomboid",[-.333,-1,1,-1,.333,1,-1,1]),this.nodeShapes.concavehexagon=this.generatePolygon("concave-hexagon",[-1,-.95,-.75,0,-1,.95,1,.95,.75,0,1,-.95]);{var u=[-1,-1,.25,-1,1,0,.25,1,-1,1];this.generatePolygon("tag",u),this.generateRoundPolygon("round-tag",u)}t.makePolygon=function(l){var v=l.join("$"),f="polygon-"+v,h;return(h=this[f])?h:e.generatePolygon(f,l)}};var Ja={};Ja.timeToRender=function(){return this.redrawTotalTime/this.redrawCount},Ja.redraw=function(t){t=t||mo();var e=this;e.averageRedrawTime===void 0&&(e.averageRedrawTime=0),e.lastRedrawTime===void 0&&(e.lastRedrawTime=0),e.lastDrawTime===void 0&&(e.lastDrawTime=0),e.requestedFrame=!0,e.renderOptions=t},Ja.beforeRender=function(t,e){if(!this.destroyed){e==null&&xt("Priority is not optional for beforeRender");var r=this.beforeRenderCallbacks;r.push({fn:t,priority:e}),r.sort(function(a,n){return n.priority-a.priority})}};var hl=function(e,r,a){for(var n=e.beforeRenderCallbacks,i=0;i<n.length;i++)n[i].fn(r,a)};Ja.startRenderLoop=function(){var t=this,e=t.cy;if(!t.renderLoopStarted){t.renderLoopStarted=!0;var r=function a(n){if(!t.destroyed){if(!e.batching())if(t.requestedFrame&&!t.skipFrame){hl(t,!0,n);var i=gr();t.render(t.renderOptions);var o=t.lastDrawTime=gr();t.averageRedrawTime===void 0&&(t.averageRedrawTime=o-i),t.redrawCount===void 0&&(t.redrawCount=0),t.redrawCount++,t.redrawTotalTime===void 0&&(t.redrawTotalTime=0);var s=o-i;t.redrawTotalTime+=s,t.lastRedrawTime=s,t.averageRedrawTime=t.averageRedrawTime/2+s/2,t.requestedFrame=!1}else hl(t,!1,n);t.skipFrame=!1,ln(a)}};ln(r)}};var dg=function(e){this.init(e)},cl=dg,ma=cl.prototype;ma.clientFunctions=["redrawHint","render","renderTo","matchCanvasSize","nodeShapeImpl","arrowShapeImpl"],ma.init=function(t){var e=this;e.options=t,e.cy=t.cy;var r=e.container=t.cy.container(),a=e.cy.window();if(a){var n=a.document,i=n.head,o="__________cytoscape_stylesheet",s="__________cytoscape_container",u=n.getElementById(o)!=null;if(r.className.indexOf(s)<0&&(r.className=(r.className||"")+" "+s),!u){var l=n.createElement("style");l.id=o,l.textContent="."+s+" { position: relative; }",i.insertBefore(l,i.children[0])}var v=a.getComputedStyle(r),f=v.getPropertyValue("position");f==="static"&&ht("A Cytoscape container has style position:static and so can not use UI extensions properly")}e.selection=[void 0,void 0,void 0,void 0,0],e.bezierProjPcts=[.05,.225,.4,.5,.6,.775,.95],e.hoverData={down:null,last:null,downTime:null,triggerMode:null,dragging:!1,initialPan:[null,null],capture:!1},e.dragData={possibleDragElements:[]},e.touchData={start:null,capture:!1,startPosition:[null,null,null,null,null,null],singleTouchStartTime:null,singleTouchMoved:!0,now:[null,null,null,null,null,null],earlier:[null,null,null,null,null,null]},e.redraws=0,e.showFps=t.showFps,e.debug=t.debug,e.hideEdgesOnViewport=t.hideEdgesOnViewport,e.textureOnViewport=t.textureOnViewport,e.wheelSensitivity=t.wheelSensitivity,e.motionBlurEnabled=t.motionBlur,e.forcedPixelRatio=R(t.pixelRatio)?t.pixelRatio:null,e.motionBlur=t.motionBlur,e.motionBlurOpacity=t.motionBlurOpacity,e.motionBlurTransparency=1-e.motionBlurOpacity,e.motionBlurPxRatio=1,e.mbPxRBlurry=1,e.minMbLowQualFrames=4,e.fullQualityMb=!1,e.clearedForMotionBlur=[],e.desktopTapThreshold=t.desktopTapThreshold,e.desktopTapThreshold2=t.desktopTapThreshold*t.desktopTapThreshold,e.touchTapThreshold=t.touchTapThreshold,e.touchTapThreshold2=t.touchTapThreshold*t.touchTapThreshold,e.tapholdDuration=500,e.bindings=[],e.beforeRenderCallbacks=[],e.beforeRenderPriorities={animations:400,eleCalcs:300,eleTxrDeq:200,lyrTxrDeq:150,lyrTxrSkip:100},e.registerNodeShapes(),e.registerArrowShapes(),e.registerCalculationListeners()},ma.notify=function(t,e){var r=this,a=r.cy;if(!this.destroyed){if(t==="init"){r.load();return}if(t==="destroy"){r.destroy();return}(t==="add"||t==="remove"||t==="move"&&a.hasCompoundNodes()||t==="load"||t==="zorder"||t==="mount")&&r.invalidateCachedZSortedEles(),t==="viewport"&&r.redrawHint("select",!0),(t==="load"||t==="resize"||t==="mount")&&(r.invalidateContainerClientCoordsCache(),r.matchCanvasSize(r.container)),r.redrawHint("eles",!0),r.redrawHint("drag",!0),this.startRenderLoop(),this.redraw()}},ma.destroy=function(){var t=this;t.destroyed=!0,t.cy.stopAnimationLoop();for(var e=0;e<t.bindings.length;e++){var r=t.bindings[e],a=r,n=a.target;(n.off||n.removeEventListener).apply(n,a.args)}if(t.bindings=[],t.beforeRenderCallbacks=[],t.onUpdateEleCalcsFns=[],t.removeObserver&&t.removeObserver.disconnect(),t.styleObserver&&t.styleObserver.disconnect(),t.resizeObserver&&t.resizeObserver.disconnect(),t.labelCalcDiv)try{document.body.removeChild(t.labelCalcDiv)}catch{}},ma.isHeadless=function(){return!1},[Fi,vl,fl,ya,mr,Ja].forEach(function(t){He(ma,t)});var zi=1e3/60,dl={setupDequeueing:function(e){return function(){var a=this,n=this.renderer;if(!a.dequeueingSetup){a.dequeueingSetup=!0;var i=sn(function(){n.redrawHint("eles",!0),n.redrawHint("drag",!0),n.redraw()},e.deqRedrawThreshold),o=function(l,v){var f=gr(),h=n.averageRedrawTime,d=n.lastRedrawTime,c=[],y=n.cy.extent(),p=n.getPixelRatio();for(l||n.flushRenderedStyleQueue();;){var g=gr(),m=g-f,b=g-v;if(d<zi){var E=zi-(l?h:0);if(b>=e.deqFastCost*E)break}else if(l){if(m>=e.deqCost*d||m>=e.deqAvgCost*h)break}else if(b>=e.deqNoDrawCost*zi)break;var M=e.deq(a,p,y);if(M.length>0)for(var L=0;L<M.length;L++)c.push(M[L]);else break}c.length>0&&(e.onDeqd(a,c),!l&&e.shouldRedraw(a,c,p,y)&&i())},s=e.priority||oi;n.beforeRender(o,s(a))}}}},gg=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vn;ve(this,t),this.idsByKey=new ur,this.keyForId=new ur,this.cachesByLvl=new ur,this.lvls=[],this.getKey=e,this.doesEleInvalidateKey=r}return C(t,[{key:"getIdsFor",value:function(r){r==null&&xt("Can not get id list for null key");var a=this.idsByKey,n=this.idsByKey.get(r);return n||(n=new Jr,a.set(r,n)),n}},{key:"addIdForKey",value:function(r,a){r!=null&&this.getIdsFor(r).add(a)}},{key:"deleteIdForKey",value:function(r,a){r!=null&&this.getIdsFor(r).delete(a)}},{key:"getNumberOfIdsForKey",value:function(r){return r==null?0:this.getIdsFor(r).size}},{key:"updateKeyMappingFor",value:function(r){var a=r.id(),n=this.keyForId.get(a),i=this.getKey(r);this.deleteIdForKey(n,a),this.addIdForKey(i,a),this.keyForId.set(a,i)}},{key:"deleteKeyMappingFor",value:function(r){var a=r.id(),n=this.keyForId.get(a);this.deleteIdForKey(n,a),this.keyForId.delete(a)}},{key:"keyHasChangedFor",value:function(r){var a=r.id(),n=this.keyForId.get(a),i=this.getKey(r);return n!==i}},{key:"isInvalid",value:function(r){return this.keyHasChangedFor(r)||this.doesEleInvalidateKey(r)}},{key:"getCachesAt",value:function(r){var a=this.cachesByLvl,n=this.lvls,i=a.get(r);return i||(i=new ur,a.set(r,i),n.push(r)),i}},{key:"getCache",value:function(r,a){return this.getCachesAt(a).get(r)}},{key:"get",value:function(r,a){var n=this.getKey(r),i=this.getCache(n,a);return i!=null&&this.updateKeyMappingFor(r),i}},{key:"getForCachedKey",value:function(r,a){var n=this.keyForId.get(r.id()),i=this.getCache(n,a);return i}},{key:"hasCache",value:function(r,a){return this.getCachesAt(a).has(r)}},{key:"has",value:function(r,a){var n=this.getKey(r);return this.hasCache(n,a)}},{key:"setCache",value:function(r,a,n){n.key=r,this.getCachesAt(a).set(r,n)}},{key:"set",value:function(r,a,n){var i=this.getKey(r);this.setCache(i,a,n),this.updateKeyMappingFor(r)}},{key:"deleteCache",value:function(r,a){this.getCachesAt(a).delete(r)}},{key:"delete",value:function(r,a){var n=this.getKey(r);this.deleteCache(n,a)}},{key:"invalidateKey",value:function(r){var a=this;this.lvls.forEach(function(n){return a.deleteCache(r,n)})}},{key:"invalidate",value:function(r){var a=r.id(),n=this.keyForId.get(a);this.deleteKeyMappingFor(r);var i=this.doesEleInvalidateKey(r);return i&&this.invalidateKey(n),i||this.getNumberOfIdsForKey(n)===0}}]),t}(),gl=25,Kn=50,Zn=-4,Vi=3,pg=7.99,yg=8,mg=1024,bg=1024,Eg=1024,wg=.2,xg=.8,Tg=10,Cg=.15,Dg=.1,Sg=.9,Lg=.9,Ag=100,Og=1,ba={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},Ng=At({getKey:null,doesEleInvalidateKey:vn,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:co,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),ja=function(e,r){var a=this;a.renderer=e,a.onDequeues=[];var n=Ng(r);He(a,n),a.lookup=new gg(n.getKey,n.doesEleInvalidateKey),a.setupDequeueing()},Dt=ja.prototype;Dt.reasons=ba,Dt.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]},Dt.getRetiredTextureQueue=function(t){var e=this,r=e.eleImgCaches.retired=e.eleImgCaches.retired||{},a=r[t]=r[t]||[];return a},Dt.getElementQueue=function(){var t=this,e=t.eleCacheQueue=t.eleCacheQueue||new Ra(function(r,a){return a.reqs-r.reqs});return e},Dt.getElementKeyToQueue=function(){var t=this,e=t.eleKeyToCacheQueue=t.eleKeyToCacheQueue||{};return e},Dt.getElement=function(t,e,r,a,n){var i=this,o=this.renderer,s=o.cy.zoom(),u=this.lookup;if(!e||e.w===0||e.h===0||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed()||!i.allowEdgeTxrCaching&&t.isEdge()||!i.allowParentTxrCaching&&t.isParent())return null;if(a==null&&(a=Math.ceil(ui(s*r))),a<Zn)a=Zn;else if(s>=pg||a>Vi)return null;var l=Math.pow(2,a),v=e.h*l,f=e.w*l,h=o.eleTextBiggerThanMin(t,l);if(!this.isVisible(t,h))return null;var d=u.get(t,a);if(d&&d.invalidated&&(d.invalidated=!1,d.texture.invalidatedWidth-=d.width),d)return d;var c;if(v<=gl?c=gl:v<=Kn?c=Kn:c=Math.ceil(v/Kn)*Kn,v>Eg||f>bg)return null;var y=i.getTextureQueue(c),p=y[y.length-2],g=function(){return i.recycleTexture(c,f)||i.addTexture(c,f)};p||(p=y[y.length-1]),p||(p=g()),p.width-p.usedWidth<f&&(p=g());for(var m=function(K){return K&&K.scaledLabelShown===h},b=n&&n===ba.dequeue,E=n&&n===ba.highQuality,M=n&&n===ba.downscale,L,w=a+1;w<=Vi;w++){var k=u.get(t,w);if(k){L=k;break}}var D=L&&L.level===a+1?L:null,F=function(){p.context.drawImage(D.texture.canvas,D.x,0,D.width,D.height,p.usedWidth,0,f,v)};if(p.context.setTransform(1,0,0,1,0,0),p.context.clearRect(p.usedWidth,0,f,c),m(D))F();else if(m(L))if(E){for(var G=L.level;G>a;G--)D=i.getElement(t,e,r,G,ba.downscale);F()}else return i.queueElement(t,L.level-1),L;else{var I;if(!b&&!E&&!M)for(var X=a-1;X>=Zn;X--){var B=u.get(t,X);if(B){I=B;break}}if(m(I))return i.queueElement(t,a),I;p.context.translate(p.usedWidth,0),p.context.scale(l,l),this.drawElement(p.context,t,e,h,!1),p.context.scale(1/l,1/l),p.context.translate(-p.usedWidth,0)}return d={x:p.usedWidth,texture:p,level:a,scale:l,width:f,height:v,scaledLabelShown:h},p.usedWidth+=Math.ceil(f+yg),p.eleCaches.push(d),u.set(t,a,d),i.checkTextureFullness(p),d},Dt.invalidateElements=function(t){for(var e=0;e<t.length;e++)this.invalidateElement(t[e])},Dt.invalidateElement=function(t){var e=this,r=e.lookup,a=[],n=r.isInvalid(t);if(n){for(var i=Zn;i<=Vi;i++){var o=r.getForCachedKey(t,i);o&&a.push(o)}var s=r.invalidate(t);if(s)for(var u=0;u<a.length;u++){var l=a[u],v=l.texture;v.invalidatedWidth+=l.width,l.invalidated=!0,e.checkTextureUtility(v)}e.removeFromQueue(t)}},Dt.checkTextureUtility=function(t){t.invalidatedWidth>=wg*t.width&&this.retireTexture(t)},Dt.checkTextureFullness=function(t){var e=this,r=e.getTextureQueue(t.height);t.usedWidth/t.width>xg&&t.fullnessChecks>=Tg?xr(r,t):t.fullnessChecks++},Dt.retireTexture=function(t){var e=this,r=t.height,a=e.getTextureQueue(r),n=this.lookup;xr(a,t),t.retired=!0;for(var i=t.eleCaches,o=0;o<i.length;o++){var s=i[o];n.deleteCache(s.key,s.level)}si(i);var u=e.getRetiredTextureQueue(r);u.push(t)},Dt.addTexture=function(t,e){var r=this,a=r.getTextureQueue(t),n={};return a.push(n),n.eleCaches=[],n.height=t,n.width=Math.max(mg,e),n.usedWidth=0,n.invalidatedWidth=0,n.fullnessChecks=0,n.canvas=r.renderer.makeOffscreenCanvas(n.width,n.height),n.context=n.canvas.getContext("2d"),n},Dt.recycleTexture=function(t,e){for(var r=this,a=r.getTextureQueue(t),n=r.getRetiredTextureQueue(t),i=0;i<n.length;i++){var o=n[i];if(o.width>=e)return o.retired=!1,o.usedWidth=0,o.invalidatedWidth=0,o.fullnessChecks=0,si(o.eleCaches),o.context.setTransform(1,0,0,1,0,0),o.context.clearRect(0,0,o.width,o.height),xr(n,o),a.push(o),o}},Dt.queueElement=function(t,e){var r=this,a=r.getElementQueue(),n=r.getElementKeyToQueue(),i=this.getKey(t),o=n[i];if(o)o.level=Math.max(o.level,e),o.eles.merge(t),o.reqs++,a.updateItem(o);else{var s={eles:t.spawn().merge(t),level:e,reqs:1,key:i};a.push(s),n[i]=s}},Dt.dequeue=function(t){for(var e=this,r=e.getElementQueue(),a=e.getElementKeyToQueue(),n=[],i=e.lookup,o=0;o<Og&&r.size()>0;o++){var s=r.pop(),u=s.key,l=s.eles[0],v=i.hasCache(l,s.level);if(a[u]=null,v)continue;n.push(s);var f=e.getBoundingBox(l);e.getElement(l,f,t,s.level,ba.dequeue)}return n},Dt.removeFromQueue=function(t){var e=this,r=e.getElementQueue(),a=e.getElementKeyToQueue(),n=this.getKey(t),i=a[n];i!=null&&(i.eles.length===1?(i.reqs=ii,r.updateItem(i),r.pop(),a[n]=null):i.eles.unmerge(t))},Dt.onDequeue=function(t){this.onDequeues.push(t)},Dt.offDequeue=function(t){xr(this.onDequeues,t)},Dt.setupDequeueing=dl.setupDequeueing({deqRedrawThreshold:Ag,deqCost:Cg,deqAvgCost:Dg,deqNoDrawCost:Sg,deqFastCost:Lg,deq:function(e,r,a){return e.dequeue(r,a)},onDeqd:function(e,r){for(var a=0;a<e.onDequeues.length;a++){var n=e.onDequeues[a];n(r)}},shouldRedraw:function(e,r,a,n){for(var i=0;i<r.length;i++)for(var o=r[i].eles,s=0;s<o.length;s++){var u=o[s].boundingBox();if(vi(u,n))return!0}return!1},priority:function(e){return e.renderer.beforeRenderPriorities.eleTxrDeq}});var Ig=1,en=-4,Qn=2,Mg=3.99,Rg=50,kg=50,Pg=.15,Bg=.1,Fg=.9,Gg=.9,zg=1,pl=250,Vg=4e3*4e3,$g=!0,yl=function(e){var r=this,a=r.renderer=e,n=a.cy;r.layersByLevel={},r.firstGet=!0,r.lastInvalidationTime=gr()-2*pl,r.skipping=!1,r.eleTxrDeqs=n.collection(),r.scheduleElementRefinement=sn(function(){r.refineElementTextures(r.eleTxrDeqs),r.eleTxrDeqs.unmerge(r.eleTxrDeqs)},kg),a.beforeRender(function(o,s){s-r.lastInvalidationTime<=pl?r.skipping=!0:r.skipping=!1},a.beforeRenderPriorities.lyrTxrSkip);var i=function(s,u){return u.reqs-s.reqs};r.layersQueue=new Ra(i),r.setupDequeueing()},Mt=yl.prototype,ml=0,Ug=Math.pow(2,53)-1;Mt.makeLayer=function(t,e){var r=Math.pow(2,e),a=Math.ceil(t.w*r),n=Math.ceil(t.h*r),i=this.renderer.makeOffscreenCanvas(a,n),o={id:ml=++ml%Ug,bb:t,level:e,width:a,height:n,canvas:i,context:i.getContext("2d"),eles:[],elesQueue:[],reqs:0},s=o.context,u=-o.bb.x1,l=-o.bb.y1;return s.scale(r,r),s.translate(u,l),o},Mt.getLayers=function(t,e,r){var a=this,n=a.renderer,i=n.cy,o=i.zoom(),s=a.firstGet;if(a.firstGet=!1,r==null){if(r=Math.ceil(ui(o*e)),r<en)r=en;else if(o>=Mg||r>Qn)return null}a.validateLayersElesOrdering(r,t);var u=a.layersByLevel,l=Math.pow(2,r),v=u[r]=u[r]||[],f,h=a.levelIsComplete(r,t),d,c=function(){var F=function(re){if(a.validateLayersElesOrdering(re,t),a.levelIsComplete(re,t))return d=u[re],!0},G=function(re){if(!d)for(var K=r+re;en<=K&&K<=Qn&&!F(K);K+=re);};G(1),G(-1);for(var I=v.length-1;I>=0;I--){var X=v[I];X.invalid&&xr(v,X)}};if(!h)c();else return v;var y=function(){if(!f){f=Yt();for(var F=0;F<t.length;F++)xo(f,t[F].boundingBox())}return f},p=function(F){F=F||{};var G=F.after;y();var I=f.w*l*(f.h*l);if(I>Vg)return null;var X=a.makeLayer(f,r);if(G!=null){var B=v.indexOf(G)+1;v.splice(B,0,X)}else(F.insert===void 0||F.insert)&&v.unshift(X);return X};if(a.skipping&&!s)return null;for(var g=null,m=t.length/Ig,b=!s,E=0;E<t.length;E++){var M=t[E],L=M._private.rscratch,w=L.imgLayerCaches=L.imgLayerCaches||{},k=w[r];if(k){g=k;continue}if((!g||g.eles.length>=m||!Co(g.bb,M.boundingBox()))&&(g=p({insert:!0,after:g}),!g))return null;d||b?a.queueLayer(g,M):a.drawEleInLayer(g,M,r,e),g.eles.push(M),w[r]=g}return d||(b?null:v)},Mt.getEleLevelForLayerLevel=function(t,e){return t},Mt.drawEleInLayer=function(t,e,r,a){var n=this,i=this.renderer,o=t.context,s=e.boundingBox();s.w===0||s.h===0||!e.visible()||(r=n.getEleLevelForLayerLevel(r,a),i.setImgSmoothing(o,!1),i.drawCachedElement(o,e,null,null,r,$g),i.setImgSmoothing(o,!0))},Mt.levelIsComplete=function(t,e){var r=this,a=r.layersByLevel[t];if(!a||a.length===0)return!1;for(var n=0,i=0;i<a.length;i++){var o=a[i];if(o.reqs>0||o.invalid)return!1;n+=o.eles.length}return n===e.length},Mt.validateLayersElesOrdering=function(t,e){var r=this.layersByLevel[t];if(r)for(var a=0;a<r.length;a++){for(var n=r[a],i=-1,o=0;o<e.length;o++)if(n.eles[0]===e[o]){i=o;break}if(i<0){this.invalidateLayer(n);continue}for(var s=i,o=0;o<n.eles.length;o++)if(n.eles[o]!==e[s+o]){this.invalidateLayer(n);break}}},Mt.updateElementsInLayers=function(t,e){for(var r=this,a=Ae(t[0]),n=0;n<t.length;n++)for(var i=a?null:t[n],o=a?t[n]:t[n].ele,s=o._private.rscratch,u=s.imgLayerCaches=s.imgLayerCaches||{},l=en;l<=Qn;l++){var v=u[l];v&&(i&&r.getEleLevelForLayerLevel(v.level)!==i.level||e(v,o,i))}},Mt.haveLayers=function(){for(var t=this,e=!1,r=en;r<=Qn;r++){var a=t.layersByLevel[r];if(a&&a.length>0){e=!0;break}}return e},Mt.invalidateElements=function(t){var e=this;t.length!==0&&(e.lastInvalidationTime=gr(),!(t.length===0||!e.haveLayers())&&e.updateElementsInLayers(t,function(a,n,i){e.invalidateLayer(a)}))},Mt.invalidateLayer=function(t){if(this.lastInvalidationTime=gr(),!t.invalid){var e=t.level,r=t.eles,a=this.layersByLevel[e];xr(a,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var n=0;n<r.length;n++){var i=r[n]._private.rscratch.imgLayerCaches;i&&(i[e]=null)}}},Mt.refineElementTextures=function(t){var e=this;e.updateElementsInLayers(t,function(a,n,i){var o=a.replacement;if(o||(o=a.replacement=e.makeLayer(a.bb,a.level),o.replaces=a,o.eles=a.eles),!o.reqs)for(var s=0;s<o.eles.length;s++)e.queueLayer(o,o.eles[s])})},Mt.enqueueElementRefinement=function(t){this.eleTxrDeqs.merge(t),this.scheduleElementRefinement()},Mt.queueLayer=function(t,e){var r=this,a=r.layersQueue,n=t.elesQueue,i=n.hasId=n.hasId||{};if(!t.replacement){if(e){if(i[e.id()])return;n.push(e),i[e.id()]=!0}t.reqs?(t.reqs++,a.updateItem(t)):(t.reqs=1,a.push(t))}},Mt.dequeue=function(t){for(var e=this,r=e.layersQueue,a=[],n=0;n<zg&&r.size()!==0;){var i=r.peek();if(i.replacement){r.pop();continue}if(i.replaces&&i!==i.replaces.replacement){r.pop();continue}if(i.invalid){r.pop();continue}var o=i.elesQueue.shift();o&&(e.drawEleInLayer(i,o,i.level,t),n++),a.length===0&&a.push(!0),i.elesQueue.length===0&&(r.pop(),i.reqs=0,i.replaces&&e.applyLayerReplacement(i),e.requestRedraw())}return a},Mt.applyLayerReplacement=function(t){var e=this,r=e.layersByLevel[t.level],a=t.replaces,n=r.indexOf(a);if(!(n<0||a.invalid)){r[n]=t;for(var i=0;i<t.eles.length;i++){var o=t.eles[i]._private,s=o.imgLayerCaches=o.imgLayerCaches||{};s&&(s[t.level]=t)}e.requestRedraw()}},Mt.requestRedraw=sn(function(){var t=this.renderer;t.redrawHint("eles",!0),t.redrawHint("drag",!0),t.redraw()},100),Mt.setupDequeueing=dl.setupDequeueing({deqRedrawThreshold:Rg,deqCost:Pg,deqAvgCost:Bg,deqNoDrawCost:Fg,deqFastCost:Gg,deq:function(e,r){return e.dequeue(r)},onDeqd:oi,shouldRedraw:co,priority:function(e){return e.renderer.beforeRenderPriorities.lyrTxrDeq}});var bl={},El;function _g(t,e){for(var r=0;r<e.length;r++){var a=e[r];t.lineTo(a.x,a.y)}}function Yg(t,e,r){for(var a,n=0;n<e.length;n++){var i=e[n];n===0&&(a=i),t.lineTo(i.x,i.y)}t.quadraticCurveTo(r.x,r.y,a.x,a.y)}function wl(t,e,r){t.beginPath&&t.beginPath();for(var a=e,n=0;n<a.length;n++){var i=a[n];t.lineTo(i.x,i.y)}var o=r,s=r[0];t.moveTo(s.x,s.y);for(var n=1;n<o.length;n++){var i=o[n];t.lineTo(i.x,i.y)}t.closePath&&t.closePath()}function Hg(t,e,r,a,n){t.beginPath&&t.beginPath(),t.arc(r,a,n,0,Math.PI*2,!1);var i=e,o=i[0];t.moveTo(o.x,o.y);for(var s=0;s<i.length;s++){var u=i[s];t.lineTo(u.x,u.y)}t.closePath&&t.closePath()}function Xg(t,e,r,a){t.arc(e,r,a,0,Math.PI*2,!1)}bl.arrowShapeImpl=function(t){return(El||(El={polygon:_g,"triangle-backcurve":Yg,"triangle-tee":wl,"circle-triangle":Hg,"triangle-cross":wl,circle:Xg}))[t]};var hr={};hr.drawElement=function(t,e,r,a,n,i){var o=this;e.isNode()?o.drawNode(t,e,r,a,n,i):o.drawEdge(t,e,r,a,n,i)},hr.drawElementOverlay=function(t,e){var r=this;e.isNode()?r.drawNodeOverlay(t,e):r.drawEdgeOverlay(t,e)},hr.drawElementUnderlay=function(t,e){var r=this;e.isNode()?r.drawNodeUnderlay(t,e):r.drawEdgeUnderlay(t,e)},hr.drawCachedElementPortion=function(t,e,r,a,n,i,o,s){var u=this,l=r.getBoundingBox(e);if(!(l.w===0||l.h===0)){var v=r.getElement(e,l,a,n,i);if(v!=null){var f=s(u,e);if(f===0)return;var h=o(u,e),d=l.x1,c=l.y1,y=l.w,p=l.h,g,m,b,E,M;if(h!==0){var L=r.getRotationPoint(e);b=L.x,E=L.y,t.translate(b,E),t.rotate(h),M=u.getImgSmoothing(t),M||u.setImgSmoothing(t,!0);var w=r.getRotationOffset(e);g=w.x,m=w.y}else g=d,m=c;var k;f!==1&&(k=t.globalAlpha,t.globalAlpha=k*f),t.drawImage(v.texture.canvas,v.x,0,v.width,v.height,g,m,y,p),f!==1&&(t.globalAlpha=k),h!==0&&(t.rotate(-h),t.translate(-b,-E),M||u.setImgSmoothing(t,!1))}else r.drawElement(t,e)}};var Wg=function(){return 0},qg=function(e,r){return e.getTextAngle(r,null)},Kg=function(e,r){return e.getTextAngle(r,"source")},Zg=function(e,r){return e.getTextAngle(r,"target")},Qg=function(e,r){return r.effectiveOpacity()},$i=function(e,r){return r.pstyle("text-opacity").pfValue*r.effectiveOpacity()};hr.drawCachedElement=function(t,e,r,a,n,i){var o=this,s=o.data,u=s.eleTxrCache,l=s.lblTxrCache,v=s.slbTxrCache,f=s.tlbTxrCache,h=e.boundingBox(),d=i===!0?u.reasons.highQuality:null;if(!(h.w===0||h.h===0||!e.visible())&&(!a||vi(h,a))){var c=e.isEdge(),y=e.element()._private.rscratch.badLine;o.drawElementUnderlay(t,e),o.drawCachedElementPortion(t,e,u,r,n,d,Wg,Qg),(!c||!y)&&o.drawCachedElementPortion(t,e,l,r,n,d,qg,$i),c&&!y&&(o.drawCachedElementPortion(t,e,v,r,n,d,Kg,$i),o.drawCachedElementPortion(t,e,f,r,n,d,Zg,$i)),o.drawElementOverlay(t,e)}},hr.drawElements=function(t,e){for(var r=this,a=0;a<e.length;a++){var n=e[a];r.drawElement(t,n)}},hr.drawCachedElements=function(t,e,r,a){for(var n=this,i=0;i<e.length;i++){var o=e[i];n.drawCachedElement(t,o,r,a)}},hr.drawCachedNodes=function(t,e,r,a){for(var n=this,i=0;i<e.length;i++){var o=e[i];o.isNode()&&n.drawCachedElement(t,o,r,a)}},hr.drawLayeredElements=function(t,e,r,a){var n=this,i=n.data.lyrTxrCache.getLayers(e,r);if(i)for(var o=0;o<i.length;o++){var s=i[o],u=s.bb;u.w===0||u.h===0||t.drawImage(s.canvas,u.x1,u.y1,u.w,u.h)}else n.drawCachedElements(t,e,r,a)};var br={};br.drawEdge=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s=e._private.rscratch;if(!(i&&!e.visible())&&!(s.badLine||s.allpts==null||isNaN(s.allpts[0]))){var u;r&&(u=r,t.translate(-u.x1,-u.y1));var l=i?e.pstyle("opacity").value:1,v=i?e.pstyle("line-opacity").value:1,f=e.pstyle("curve-style").value,h=e.pstyle("line-style").value,d=e.pstyle("width").pfValue,c=e.pstyle("line-cap").value,y=l*v,p=l*v,g=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y;f==="straight-triangle"?(o.eleStrokeStyle(t,e,I),o.drawEdgeTrianglePath(e,t,s.allpts)):(t.lineWidth=d,t.lineCap=c,o.eleStrokeStyle(t,e,I),o.drawEdgePath(e,t,s.allpts,h),t.lineCap="butt")},m=function(){n&&o.drawEdgeOverlay(t,e)},b=function(){n&&o.drawEdgeUnderlay(t,e)},E=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p;o.drawArrowheads(t,e,I)},M=function(){o.drawElementText(t,e,null,a)};t.lineJoin="round";var L=e.pstyle("ghost").value==="yes";if(L){var w=e.pstyle("ghost-offset-x").pfValue,k=e.pstyle("ghost-offset-y").pfValue,D=e.pstyle("ghost-opacity").value,F=y*D;t.translate(w,k),g(F),E(F),t.translate(-w,-k)}b(),g(),E(),m(),M(),r&&t.translate(u.x1,u.y1)}};var xl=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,a){if(a.visible()){var n=a.pstyle("".concat(e,"-opacity")).value;if(n!==0){var i=this,o=i.usePaths(),s=a._private.rscratch,u=a.pstyle("".concat(e,"-padding")).pfValue,l=2*u,v=a.pstyle("".concat(e,"-color")).value;r.lineWidth=l,s.edgeType==="self"&&!o?r.lineCap="butt":r.lineCap="round",i.colorStrokeStyle(r,v[0],v[1],v[2],n),i.drawEdgePath(a,r,s.allpts,"solid")}}}};br.drawEdgeOverlay=xl("overlay"),br.drawEdgeUnderlay=xl("underlay"),br.drawEdgePath=function(t,e,r,a){var n=t._private.rscratch,i=e,o,s=!1,u=this.usePaths(),l=t.pstyle("line-dash-pattern").pfValue,v=t.pstyle("line-dash-offset").pfValue;if(u){var f=r.join("$"),h=n.pathCacheKey&&n.pathCacheKey===f;h?(o=e=n.pathCache,s=!0):(o=e=new Path2D,n.pathCacheKey=f,n.pathCache=o)}if(i.setLineDash)switch(a){case"dotted":i.setLineDash([1,1]);break;case"dashed":i.setLineDash(l),i.lineDashOffset=v;break;case"solid":i.setLineDash([]);break}if(!s&&!n.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(r[0],r[1]),n.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var d=2;d+3<r.length;d+=4)e.quadraticCurveTo(r[d],r[d+1],r[d+2],r[d+3]);break;case"straight":case"segments":case"haystack":for(var c=2;c+1<r.length;c+=2)e.lineTo(r[c],r[c+1]);break}e=i,u?e.stroke(o):e.stroke(),e.setLineDash&&e.setLineDash([])},br.drawEdgeTrianglePath=function(t,e,r){e.fillStyle=e.strokeStyle;for(var a=t.pstyle("width").pfValue,n=0;n+1<r.length;n+=2){var i=[r[n+2]-r[n],r[n+3]-r[n+1]],o=Math.sqrt(i[0]*i[0]+i[1]*i[1]),s=[i[1]/o,-i[0]/o],u=[s[0]*a/2,s[1]*a/2];e.beginPath(),e.moveTo(r[n]-u[0],r[n+1]-u[1]),e.lineTo(r[n]+u[0],r[n+1]+u[1]),e.lineTo(r[n+2],r[n+3]),e.closePath(),e.fill()}},br.drawArrowheads=function(t,e,r){var a=e._private.rscratch,n=a.edgeType==="haystack";n||this.drawArrowhead(t,e,"source",a.arrowStartX,a.arrowStartY,a.srcArrowAngle,r),this.drawArrowhead(t,e,"mid-target",a.midX,a.midY,a.midtgtArrowAngle,r),this.drawArrowhead(t,e,"mid-source",a.midX,a.midY,a.midsrcArrowAngle,r),n||this.drawArrowhead(t,e,"target",a.arrowEndX,a.arrowEndY,a.tgtArrowAngle,r)},br.drawArrowhead=function(t,e,r,a,n,i,o){if(!(isNaN(a)||a==null||isNaN(n)||n==null||isNaN(i)||i==null)){var s=this,u=e.pstyle(r+"-arrow-shape").value;if(u!=="none"){var l=e.pstyle(r+"-arrow-fill").value==="hollow"?"both":"filled",v=e.pstyle(r+"-arrow-fill").value,f=e.pstyle("width").pfValue,h=e.pstyle(r+"-arrow-width"),d=h.value==="match-line"?f:h.pfValue;h.units==="%"&&(d*=f);var c=e.pstyle("opacity").value;o===void 0&&(o=c);var y=t.globalCompositeOperation;(o!==1||v==="hollow")&&(t.globalCompositeOperation="destination-out",s.colorFillStyle(t,255,255,255,1),s.colorStrokeStyle(t,255,255,255,1),s.drawArrowShape(e,t,l,f,u,d,a,n,i),t.globalCompositeOperation=y);var p=e.pstyle(r+"-arrow-color").value;s.colorFillStyle(t,p[0],p[1],p[2],o),s.colorStrokeStyle(t,p[0],p[1],p[2],o),s.drawArrowShape(e,t,v,f,u,d,a,n,i)}}},br.drawArrowShape=function(t,e,r,a,n,i,o,s,u){var l=this,v=this.usePaths()&&n!=="triangle-cross",f=!1,h,d=e,c={x:o,y:s},y=t.pstyle("arrow-scale").value,p=this.getArrowWidth(a,y),g=l.arrowShapes[n];if(v){var m=l.arrowPathCache=l.arrowPathCache||[],b=Pr(n),E=m[b];E!=null?(h=e=E,f=!0):(h=e=new Path2D,m[b]=h)}f||(e.beginPath&&e.beginPath(),v?g.draw(e,1,0,{x:0,y:0},1):g.draw(e,p,u,c,a),e.closePath&&e.closePath()),e=d,v&&(e.translate(o,s),e.rotate(u),e.scale(p,p)),(r==="filled"||r==="both")&&(v?e.fill(h):e.fill()),(r==="hollow"||r==="both")&&(e.lineWidth=i/(v?p:1),e.lineJoin="miter",v?e.stroke(h):e.stroke()),v&&(e.scale(1/p,1/p),e.rotate(-u),e.translate(-o,-s))};var Ui={};Ui.safeDrawImage=function(t,e,r,a,n,i,o,s,u,l){if(!(n<=0||i<=0||u<=0||l<=0))try{t.drawImage(e,r,a,n,i,o,s,u,l)}catch(v){ht(v)}},Ui.drawInscribedImage=function(t,e,r,a,n){var i=this,o=r.position(),s=o.x,u=o.y,l=r.cy().style(),v=l.getIndexedStyle.bind(l),f=v(r,"background-fit","value",a),h=v(r,"background-repeat","value",a),d=r.width(),c=r.height(),y=r.padding()*2,p=d+(v(r,"background-width-relative-to","value",a)==="inner"?0:y),g=c+(v(r,"background-height-relative-to","value",a)==="inner"?0:y),m=r._private.rscratch,b=v(r,"background-clip","value",a),E=b==="node",M=v(r,"background-image-opacity","value",a)*n,L=v(r,"background-image-smoothing","value",a),w=e.width||e.cachedW,k=e.height||e.cachedH;(w==null||k==null)&&(document.body.appendChild(e),w=e.cachedW=e.width||e.offsetWidth,k=e.cachedH=e.height||e.offsetHeight,document.body.removeChild(e));var D=w,F=k;if(v(r,"background-width","value",a)!=="auto"&&(v(r,"background-width","units",a)==="%"?D=v(r,"background-width","pfValue",a)*p:D=v(r,"background-width","pfValue",a)),v(r,"background-height","value",a)!=="auto"&&(v(r,"background-height","units",a)==="%"?F=v(r,"background-height","pfValue",a)*g:F=v(r,"background-height","pfValue",a)),!(D===0||F===0)){if(f==="contain"){var G=Math.min(p/D,g/F);D*=G,F*=G}else if(f==="cover"){var G=Math.max(p/D,g/F);D*=G,F*=G}var I=s-p/2,X=v(r,"background-position-x","units",a),B=v(r,"background-position-x","pfValue",a);X==="%"?I+=(p-D)*B:I+=B;var re=v(r,"background-offset-x","units",a),K=v(r,"background-offset-x","pfValue",a);re==="%"?I+=(p-D)*K:I+=K;var W=u-g/2,ae=v(r,"background-position-y","units",a),ue=v(r,"background-position-y","pfValue",a);ae==="%"?W+=(g-F)*ue:W+=ue;var me=v(r,"background-offset-y","units",a),ie=v(r,"background-offset-y","pfValue",a);me==="%"?W+=(g-F)*ie:W+=ie,m.pathCache&&(I-=s,W-=u,s=0,u=0);var ge=t.globalAlpha;t.globalAlpha=M;var Ee=i.getImgSmoothing(t),Ce=!1;if(L==="no"&&Ee?(i.setImgSmoothing(t,!1),Ce=!0):L==="yes"&&!Ee&&(i.setImgSmoothing(t,!0),Ce=!0),h==="no-repeat")E&&(t.save(),m.pathCache?t.clip(m.pathCache):(i.nodeShapes[i.getNodeShape(r)].draw(t,s,u,p,g),t.clip())),i.safeDrawImage(t,e,0,0,w,k,I,W,D,F),E&&t.restore();else{var we=t.createPattern(e,h);t.fillStyle=we,i.nodeShapes[i.getNodeShape(r)].draw(t,s,u,p,g),t.translate(I,W),t.fill(),t.translate(-I,-W)}t.globalAlpha=ge,Ce&&i.setImgSmoothing(t,Ee)}};var _r={};_r.eleTextBiggerThanMin=function(t,e){if(!e){var r=t.cy().zoom(),a=this.getPixelRatio(),n=Math.ceil(ui(r*a));e=Math.pow(2,n)}var i=t.pstyle("font-size").pfValue*e,o=t.pstyle("min-zoomed-font-size").pfValue;return!(i<o)},_r.drawElementText=function(t,e,r,a,n){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this;if(a==null){if(i&&!o.eleTextBiggerThanMin(e))return}else if(a===!1)return;if(e.isNode()){var s=e.pstyle("label");if(!s||!s.value)return;var u=o.getLabelJustification(e);t.textAlign=u,t.textBaseline="bottom"}else{var l=e.element()._private.rscratch.badLine,v=e.pstyle("label"),f=e.pstyle("source-label"),h=e.pstyle("target-label");if(l||(!v||!v.value)&&(!f||!f.value)&&(!h||!h.value))return;t.textAlign="center",t.textBaseline="bottom"}var d=!r,c;r&&(c=r,t.translate(-c.x1,-c.y1)),n==null?(o.drawText(t,e,null,d,i),e.isEdge()&&(o.drawText(t,e,"source",d,i),o.drawText(t,e,"target",d,i))):o.drawText(t,e,n,d,i),r&&t.translate(c.x1,c.y1)},_r.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var r=0;r<this.fontCaches.length;r++)if(e=this.fontCaches[r],e.context===t)return e;return e={context:t},this.fontCaches.push(e),e},_r.setupTextStyle=function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=e.pstyle("font-style").strValue,n=e.pstyle("font-size").pfValue+"px",i=e.pstyle("font-family").strValue,o=e.pstyle("font-weight").strValue,s=r?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,u=e.pstyle("text-outline-opacity").value*s,l=e.pstyle("color").value,v=e.pstyle("text-outline-color").value;t.font=a+" "+o+" "+n+" "+i,t.lineJoin="round",this.colorFillStyle(t,l[0],l[1],l[2],s),this.colorStrokeStyle(t,v[0],v[1],v[2],u)};function _i(t,e,r,a,n){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,o=arguments.length>6?arguments[6]:void 0;t.beginPath(),t.moveTo(e+i,r),t.lineTo(e+a-i,r),t.quadraticCurveTo(e+a,r,e+a,r+i),t.lineTo(e+a,r+n-i),t.quadraticCurveTo(e+a,r+n,e+a-i,r+n),t.lineTo(e+i,r+n),t.quadraticCurveTo(e,r+n,e,r+n-i),t.lineTo(e,r+i),t.quadraticCurveTo(e,r,e+i,r),t.closePath(),o?t.stroke():t.fill()}_r.getTextAngle=function(t,e){var r,a=t._private,n=a.rscratch,i=e?e+"-":"",o=t.pstyle(i+"text-rotation"),s=er(n,"labelAngle",e);return o.strValue==="autorotate"?r=t.isEdge()?s:0:o.strValue==="none"?r=0:r=o.pfValue,r},_r.drawText=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=e._private,o=i.rscratch,s=n?e.effectiveOpacity():1;if(!(n&&(s===0||e.pstyle("text-opacity").value===0))){r==="main"&&(r=null);var u=er(o,"labelX",r),l=er(o,"labelY",r),v,f,h=this.getLabelText(e,r);if(h!=null&&h!==""&&!isNaN(u)&&!isNaN(l)){this.setupTextStyle(t,e,n);var d=r?r+"-":"",c=er(o,"labelWidth",r),y=er(o,"labelHeight",r),p=e.pstyle(d+"text-margin-x").pfValue,g=e.pstyle(d+"text-margin-y").pfValue,m=e.isEdge(),b=e.pstyle("text-halign").value,E=e.pstyle("text-valign").value;m&&(b="center",E="center"),u+=p,l+=g;var M;switch(a?M=this.getTextAngle(e,r):M=0,M!==0&&(v=u,f=l,t.translate(v,f),t.rotate(M),u=0,l=0),E){case"top":break;case"center":l+=y/2;break;case"bottom":l+=y;break}var L=e.pstyle("text-background-opacity").value,w=e.pstyle("text-border-opacity").value,k=e.pstyle("text-border-width").pfValue,D=e.pstyle("text-background-padding").pfValue,F=e.pstyle("text-background-shape").strValue,G=F.indexOf("round")===0,I=2;if(L>0||k>0&&w>0){var X=u-D;switch(b){case"left":X-=c;break;case"center":X-=c/2;break}var B=l-y-D,re=c+2*D,K=y+2*D;if(L>0){var W=t.fillStyle,ae=e.pstyle("text-background-color").value;t.fillStyle="rgba("+ae[0]+","+ae[1]+","+ae[2]+","+L*s+")",G?_i(t,X,B,re,K,I):t.fillRect(X,B,re,K),t.fillStyle=W}if(k>0&&w>0){var ue=t.strokeStyle,me=t.lineWidth,ie=e.pstyle("text-border-color").value,ge=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+ie[0]+","+ie[1]+","+ie[2]+","+w*s+")",t.lineWidth=k,t.setLineDash)switch(ge){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=k/4,t.setLineDash([]);break;case"solid":t.setLineDash([]);break}if(G?_i(t,X,B,re,K,I,"stroke"):t.strokeRect(X,B,re,K),ge==="double"){var Ee=k/2;G?_i(t,X+Ee,B+Ee,re-Ee*2,K-Ee*2,I,"stroke"):t.strokeRect(X+Ee,B+Ee,re-Ee*2,K-Ee*2)}t.setLineDash&&t.setLineDash([]),t.lineWidth=me,t.strokeStyle=ue}}var Ce=2*e.pstyle("text-outline-width").pfValue;if(Ce>0&&(t.lineWidth=Ce),e.pstyle("text-wrap").value==="wrap"){var we=er(o,"labelWrapCachedLines",r),De=er(o,"labelLineHeight",r),oe=c/2,xe=this.getLabelJustification(e);switch(xe==="auto"||(b==="left"?xe==="left"?u+=-c:xe==="center"&&(u+=-oe):b==="center"?xe==="left"?u+=-oe:xe==="right"&&(u+=oe):b==="right"&&(xe==="center"?u+=oe:xe==="right"&&(u+=c))),E){case"top":l-=(we.length-1)*De;break;case"center":case"bottom":l-=(we.length-1)*De;break}for(var Le=0;Le<we.length;Le++)Ce>0&&t.strokeText(we[Le],u,l),t.fillText(we[Le],u,l),l+=De}else Ce>0&&t.strokeText(h,u,l),t.fillText(h,u,l);M!==0&&(t.rotate(-M),t.translate(-v,-f))}}};var Ea={};Ea.drawNode=function(t,e,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s,u,l=e._private,v=l.rscratch,f=e.position();if(!(!R(f.x)||!R(f.y))&&!(i&&!e.visible())){var h=i?e.effectiveOpacity():1,d=o.usePaths(),c,y=!1,p=e.padding();s=e.width()+2*p,u=e.height()+2*p;var g;r&&(g=r,t.translate(-g.x1,-g.y1));for(var m=e.pstyle("background-image"),b=m.value,E=new Array(b.length),M=new Array(b.length),L=0,w=0;w<b.length;w++){var k=b[w],D=E[w]=k!=null&&k!=="none";if(D){var F=e.cy().style().getIndexedStyle(e,"background-image-crossorigin","value",w);L++,M[w]=o.getCachedImage(k,F,function(){l.backgroundTimestamp=Date.now(),e.emitAndNotify("background")})}}var G=e.pstyle("background-blacken").value,I=e.pstyle("border-width").pfValue,X=e.pstyle("background-opacity").value*h,B=e.pstyle("border-color").value,re=e.pstyle("border-style").value,K=e.pstyle("border-opacity").value*h,W=e.pstyle("outline-width").pfValue,ae=e.pstyle("outline-color").value,ue=e.pstyle("outline-style").value,me=e.pstyle("outline-opacity").value*h,ie=e.pstyle("outline-offset").value;t.lineJoin="miter";var ge=function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X;o.eleFillStyle(t,e,fe)},Ee=function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:K;o.colorStrokeStyle(t,B[0],B[1],B[2],fe)},Ce=function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:me;o.colorStrokeStyle(t,ae[0],ae[1],ae[2],fe)},we=function(fe,O,se,Te){var ce=o.nodePathCache=o.nodePathCache||[],ye=fo(se==="polygon"?se+","+Te.join(","):se,""+O,""+fe),_e=ce[ye],be,Ge=!1;return _e!=null?(be=_e,Ge=!0,v.pathCache=be):(be=new Path2D,ce[ye]=v.pathCache=be),{path:be,cacheHit:Ge}},De=e.pstyle("shape").strValue,oe=e.pstyle("shape-polygon-points").pfValue;if(d){t.translate(f.x,f.y);var xe=we(s,u,De,oe);c=xe.path,y=xe.cacheHit}var Le=function(){if(!y){var fe=f;d&&(fe={x:0,y:0}),o.nodeShapes[o.getNodeShape(e)].draw(c||t,fe.x,fe.y,s,u)}d?t.fill(c):t.fill()},Se=function(){for(var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h,O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,se=l.backgrounding,Te=0,ce=0;ce<M.length;ce++){var ye=e.cy().style().getIndexedStyle(e,"background-image-containment","value",ce);if(O&&ye==="over"||!O&&ye==="inside"){Te++;continue}E[ce]&&M[ce].complete&&!M[ce].error&&(Te++,o.drawInscribedImage(t,M[ce],e,ce,fe))}l.backgrounding=Te!==L,se!==l.backgrounding&&e.updateStyle(!1)},Oe=function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h;o.hasPie(e)&&(o.drawPie(t,e,O),fe&&(d||o.nodeShapes[o.getNodeShape(e)].draw(t,f.x,f.y,s,u)))},Fe=function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h,O=(G>0?G:-G)*fe,se=G>0?0:255;G!==0&&(o.colorFillStyle(t,se,se,se,O),d?t.fill(c):t.fill())},Xe=function(){if(I>0){if(t.lineWidth=I,t.lineCap="butt",t.setLineDash)switch(re){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}if(d?t.stroke(c):t.stroke(),re==="double"){t.lineWidth=I/3;var fe=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",d?t.stroke(c):t.stroke(),t.globalCompositeOperation=fe}t.setLineDash&&t.setLineDash([])}},Ie=function(){if(W>0){if(t.lineWidth=W,t.lineCap="butt",t.setLineDash)switch(ue){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([]);break}var fe=f;d&&(fe={x:0,y:0});var O=o.getNodeShape(e),se=(s+I+(W+ie))/s,Te=(u+I+(W+ie))/u,ce=s*se,ye=u*Te,_e=o.nodeShapes[O].points,be;if(d){var Ge=we(ce,ye,O,_e);be=Ge.path}if(O==="ellipse")o.drawEllipsePath(be||t,fe.x,fe.y,ce,ye);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(O)){var Qe=0,vt=0,qe=0;O==="round-diamond"?Qe=(I+ie+W)*1.4:O==="round-heptagon"?(Qe=(I+ie+W)*1.075,qe=-(I/2+ie+W)/35):O==="round-hexagon"?Qe=(I+ie+W)*1.12:O==="round-pentagon"?(Qe=(I+ie+W)*1.13,qe=-(I/2+ie+W)/15):O==="round-tag"?(Qe=(I+ie+W)*1.12,vt=(I/2+W+ie)*.07):O==="round-triangle"&&(Qe=(I+ie+W)*(Math.PI/2),qe=-(I+ie/2+W)/Math.PI),Qe!==0&&(se=(s+Qe)/s,Te=(u+Qe)/u),o.drawRoundPolygonPath(be||t,fe.x+vt,fe.y+qe,s*se,u*Te,_e)}else if(["roundrectangle","round-rectangle"].includes(O))o.drawRoundRectanglePath(be||t,fe.x,fe.y,ce,ye);else if(["cutrectangle","cut-rectangle"].includes(O))o.drawCutRectanglePath(be||t,fe.x,fe.y,ce,ye);else if(["bottomroundrectangle","bottom-round-rectangle"].includes(O))o.drawBottomRoundRectanglePath(be||t,fe.x,fe.y,ce,ye);else if(O==="barrel")o.drawBarrelPath(be||t,fe.x,fe.y,ce,ye);else if(O.startsWith("polygon")||["rhomboid","right-rhomboid","round-tag","tag","vee"].includes(O)){var st=(I+W+ie)/s;_e=pn(yn(_e,st)),o.drawPolygonPath(be||t,fe.x,fe.y,s,u,_e)}else{var Ke=(I+W+ie)/s;_e=pn(yn(_e,-Ke)),o.drawPolygonPath(be||t,fe.x,fe.y,s,u,_e)}if(d?t.stroke(be):t.stroke(),ue==="double"){t.lineWidth=I/3;var Je=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",d?t.stroke(be):t.stroke(),t.globalCompositeOperation=Je}t.setLineDash&&t.setLineDash([])}},Me=function(){n&&o.drawNodeOverlay(t,e,f,s,u)},$e=function(){n&&o.drawNodeUnderlay(t,e,f,s,u)},ze=function(){o.drawElementText(t,e,null,a)},Be=e.pstyle("ghost").value==="yes";if(Be){var Ue=e.pstyle("ghost-offset-x").pfValue,rt=e.pstyle("ghost-offset-y").pfValue,je=e.pstyle("ghost-opacity").value,We=je*h;t.translate(Ue,rt),Ce(),Ie(),ge(je*X),Le(),Se(We,!0),Ee(je*K),Xe(),Oe(G!==0||I!==0),Se(We,!1),Fe(We),t.translate(-Ue,-rt)}d&&t.translate(-f.x,-f.y),$e(),d&&t.translate(f.x,f.y),Ce(),Ie(),ge(),Le(),Se(h,!0),Ee(),Xe(),Oe(G!==0||I!==0),Se(h,!1),Fe(),d&&t.translate(-f.x,-f.y),ze(),Me(),r&&t.translate(g.x1,g.y1)}};var Tl=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(r,a,n,i,o){var s=this;if(a.visible()){var u=a.pstyle("".concat(e,"-padding")).pfValue,l=a.pstyle("".concat(e,"-opacity")).value,v=a.pstyle("".concat(e,"-color")).value,f=a.pstyle("".concat(e,"-shape")).value;if(l>0){if(n=n||a.position(),i==null||o==null){var h=a.padding();i=a.width()+2*h,o=a.height()+2*h}s.colorFillStyle(r,v[0],v[1],v[2],l),s.nodeShapes[f].draw(r,n.x,n.y,i+u*2,o+u*2),r.fill()}}}};Ea.drawNodeOverlay=Tl("overlay"),Ea.drawNodeUnderlay=Tl("underlay"),Ea.hasPie=function(t){return t=t[0],t._private.hasPie},Ea.drawPie=function(t,e,r,a){e=e[0],a=a||e.position();var n=e.cy().style(),i=e.pstyle("pie-size"),o=a.x,s=a.y,u=e.width(),l=e.height(),v=Math.min(u,l)/2,f=0,h=this.usePaths();h&&(o=0,s=0),i.units==="%"?v=v*i.pfValue:i.pfValue!==void 0&&(v=i.pfValue/2);for(var d=1;d<=n.pieBackgroundN;d++){var c=e.pstyle("pie-"+d+"-background-size").value,y=e.pstyle("pie-"+d+"-background-color").value,p=e.pstyle("pie-"+d+"-background-opacity").value*r,g=c/100;g+f>1&&(g=1-f);var m=1.5*Math.PI+2*Math.PI*f,b=2*Math.PI*g,E=m+b;c===0||f>=1||f+g>1||(t.beginPath(),t.moveTo(o,s),t.arc(o,s,v,m,E),t.closePath(),this.colorFillStyle(t,y[0],y[1],y[2],p),t.fill(),f+=g)}};var Kt={},Jg=100;Kt.getPixelRatio=function(){var t=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var e=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/e},Kt.paintCache=function(t){for(var e=this.paintCaches=this.paintCaches||[],r=!0,a,n=0;n<e.length;n++)if(a=e[n],a.context===t){r=!1;break}return r&&(a={context:t},e.push(a)),a},Kt.createGradientStyleFor=function(t,e,r,a,n){var i,o=this.usePaths(),s=r.pstyle(e+"-gradient-stop-colors").value,u=r.pstyle(e+"-gradient-stop-positions").pfValue;if(a==="radial-gradient")if(r.isEdge()){var l=r.sourceEndpoint(),v=r.targetEndpoint(),f=r.midpoint(),h=Br(l,f),d=Br(v,f);i=t.createRadialGradient(f.x,f.y,0,f.x,f.y,Math.max(h,d))}else{var c=o?{x:0,y:0}:r.position(),y=r.paddedWidth(),p=r.paddedHeight();i=t.createRadialGradient(c.x,c.y,0,c.x,c.y,Math.max(y,p))}else if(r.isEdge()){var g=r.sourceEndpoint(),m=r.targetEndpoint();i=t.createLinearGradient(g.x,g.y,m.x,m.y)}else{var b=o?{x:0,y:0}:r.position(),E=r.paddedWidth(),M=r.paddedHeight(),L=E/2,w=M/2,k=r.pstyle("background-gradient-direction").value;switch(k){case"to-bottom":i=t.createLinearGradient(b.x,b.y-w,b.x,b.y+w);break;case"to-top":i=t.createLinearGradient(b.x,b.y+w,b.x,b.y-w);break;case"to-left":i=t.createLinearGradient(b.x+L,b.y,b.x-L,b.y);break;case"to-right":i=t.createLinearGradient(b.x-L,b.y,b.x+L,b.y);break;case"to-bottom-right":case"to-right-bottom":i=t.createLinearGradient(b.x-L,b.y-w,b.x+L,b.y+w);break;case"to-top-right":case"to-right-top":i=t.createLinearGradient(b.x-L,b.y+w,b.x+L,b.y-w);break;case"to-bottom-left":case"to-left-bottom":i=t.createLinearGradient(b.x+L,b.y-w,b.x-L,b.y+w);break;case"to-top-left":case"to-left-top":i=t.createLinearGradient(b.x+L,b.y+w,b.x-L,b.y-w);break}}if(!i)return null;for(var D=u.length===s.length,F=s.length,G=0;G<F;G++)i.addColorStop(D?u[G]:G/(F-1),"rgba("+s[G][0]+","+s[G][1]+","+s[G][2]+","+n+")");return i},Kt.gradientFillStyle=function(t,e,r,a){var n=this.createGradientStyleFor(t,"background",e,r,a);if(!n)return null;t.fillStyle=n},Kt.colorFillStyle=function(t,e,r,a,n){t.fillStyle="rgba("+e+","+r+","+a+","+n+")"},Kt.eleFillStyle=function(t,e,r){var a=e.pstyle("background-fill").value;if(a==="linear-gradient"||a==="radial-gradient")this.gradientFillStyle(t,e,a,r);else{var n=e.pstyle("background-color").value;this.colorFillStyle(t,n[0],n[1],n[2],r)}},Kt.gradientStrokeStyle=function(t,e,r,a){var n=this.createGradientStyleFor(t,"line",e,r,a);if(!n)return null;t.strokeStyle=n},Kt.colorStrokeStyle=function(t,e,r,a,n){t.strokeStyle="rgba("+e+","+r+","+a+","+n+")"},Kt.eleStrokeStyle=function(t,e,r){var a=e.pstyle("line-fill").value;if(a==="linear-gradient"||a==="radial-gradient")this.gradientStrokeStyle(t,e,a,r);else{var n=e.pstyle("line-color").value;this.colorStrokeStyle(t,n[0],n[1],n[2],r)}},Kt.matchCanvasSize=function(t){var e=this,r=e.data,a=e.findContainerClientCoords(),n=a[2],i=a[3],o=e.getPixelRatio(),s=e.motionBlurPxRatio;(t===e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE]||t===e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG])&&(o=s);var u=n*o,l=i*o,v;if(!(u===e.canvasWidth&&l===e.canvasHeight)){e.fontCaches=null;var f=r.canvasContainer;f.style.width=n+"px",f.style.height=i+"px";for(var h=0;h<e.CANVAS_LAYERS;h++)v=r.canvases[h],v.width=u,v.height=l,v.style.width=n+"px",v.style.height=i+"px";for(var h=0;h<e.BUFFER_COUNT;h++)v=r.bufferCanvases[h],v.width=u,v.height=l,v.style.width=n+"px",v.style.height=i+"px";e.textureMult=1,o<=1&&(v=r.bufferCanvases[e.TEXTURE_BUFFER],e.textureMult=2,v.width=u*e.textureMult,v.height=l*e.textureMult),e.canvasWidth=u,e.canvasHeight=l}},Kt.renderTo=function(t,e,r,a){this.render({forcedContext:t,forcedZoom:e,forcedPan:r,drawAllLayers:!0,forcedPxRatio:a})},Kt.render=function(t){t=t||mo();var e=t.forcedContext,r=t.drawAllLayers,a=t.drawOnlyNodeLayer,n=t.forcedZoom,i=t.forcedPan,o=this,s=t.forcedPxRatio===void 0?this.getPixelRatio():t.forcedPxRatio,u=o.cy,l=o.data,v=l.canvasNeedsRedraw,f=o.textureOnViewport&&!e&&(o.pinching||o.hoverData.dragging||o.swipePanning||o.data.wheelZooming),h=t.motionBlur!==void 0?t.motionBlur:o.motionBlur,d=o.motionBlurPxRatio,c=u.hasCompoundNodes(),y=o.hoverData.draggingEles,p=!!(o.hoverData.selecting||o.touchData.selecting);h=h&&!e&&o.motionBlurEnabled&&!p;var g=h;e||(o.prevPxRatio!==s&&(o.invalidateContainerClientCoordsCache(),o.matchCanvasSize(o.container),o.redrawHint("eles",!0),o.redrawHint("drag",!0)),o.prevPxRatio=s),!e&&o.motionBlurTimeout&&clearTimeout(o.motionBlurTimeout),h&&(o.mbFrames==null&&(o.mbFrames=0),o.mbFrames++,o.mbFrames<3&&(g=!1),o.mbFrames>o.minMbLowQualFrames&&(o.motionBlurPxRatio=o.mbPxRBlurry)),o.clearingMotionBlur&&(o.motionBlurPxRatio=1),o.textureDrawLastFrame&&!f&&(v[o.NODE]=!0,v[o.SELECT_BOX]=!0);var m=u.style(),b=u.zoom(),E=n!==void 0?n:b,M=u.pan(),L={x:M.x,y:M.y},w={zoom:b,pan:{x:M.x,y:M.y}},k=o.prevViewport,D=k===void 0||w.zoom!==k.zoom||w.pan.x!==k.pan.x||w.pan.y!==k.pan.y;!D&&!(y&&!c)&&(o.motionBlurPxRatio=1),i&&(L=i),E*=s,L.x*=s,L.y*=s;var F=o.getCachedZSortedEles();function G(Ie,Me,$e,ze,Be){var Ue=Ie.globalCompositeOperation;Ie.globalCompositeOperation="destination-out",o.colorFillStyle(Ie,255,255,255,o.motionBlurTransparency),Ie.fillRect(Me,$e,ze,Be),Ie.globalCompositeOperation=Ue}function I(Ie,Me){var $e,ze,Be,Ue;!o.clearingMotionBlur&&(Ie===l.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]||Ie===l.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG])?($e={x:M.x*d,y:M.y*d},ze=b*d,Be=o.canvasWidth*d,Ue=o.canvasHeight*d):($e=L,ze=E,Be=o.canvasWidth,Ue=o.canvasHeight),Ie.setTransform(1,0,0,1,0,0),Me==="motionBlur"?G(Ie,0,0,Be,Ue):!e&&(Me===void 0||Me)&&Ie.clearRect(0,0,Be,Ue),r||(Ie.translate($e.x,$e.y),Ie.scale(ze,ze)),i&&Ie.translate(i.x,i.y),n&&Ie.scale(n,n)}if(f||(o.textureDrawLastFrame=!1),f){if(o.textureDrawLastFrame=!0,!o.textureCache){o.textureCache={},o.textureCache.bb=u.mutableElements().boundingBox(),o.textureCache.texture=o.data.bufferCanvases[o.TEXTURE_BUFFER];var X=o.data.bufferContexts[o.TEXTURE_BUFFER];X.setTransform(1,0,0,1,0,0),X.clearRect(0,0,o.canvasWidth*o.textureMult,o.canvasHeight*o.textureMult),o.render({forcedContext:X,drawOnlyNodeLayer:!0,forcedPxRatio:s*o.textureMult});var w=o.textureCache.viewport={zoom:u.zoom(),pan:u.pan(),width:o.canvasWidth,height:o.canvasHeight};w.mpan={x:(0-w.pan.x)/w.zoom,y:(0-w.pan.y)/w.zoom}}v[o.DRAG]=!1,v[o.NODE]=!1;var B=l.contexts[o.NODE],re=o.textureCache.texture,w=o.textureCache.viewport;B.setTransform(1,0,0,1,0,0),h?G(B,0,0,w.width,w.height):B.clearRect(0,0,w.width,w.height);var K=m.core("outside-texture-bg-color").value,W=m.core("outside-texture-bg-opacity").value;o.colorFillStyle(B,K[0],K[1],K[2],W),B.fillRect(0,0,w.width,w.height);var b=u.zoom();I(B,!1),B.clearRect(w.mpan.x,w.mpan.y,w.width/w.zoom/s,w.height/w.zoom/s),B.drawImage(re,w.mpan.x,w.mpan.y,w.width/w.zoom/s,w.height/w.zoom/s)}else o.textureOnViewport&&!e&&(o.textureCache=null);var ae=u.extent(),ue=o.pinching||o.hoverData.dragging||o.swipePanning||o.data.wheelZooming||o.hoverData.draggingEles||o.cy.animated(),me=o.hideEdgesOnViewport&&ue,ie=[];if(ie[o.NODE]=!v[o.NODE]&&h&&!o.clearedForMotionBlur[o.NODE]||o.clearingMotionBlur,ie[o.NODE]&&(o.clearedForMotionBlur[o.NODE]=!0),ie[o.DRAG]=!v[o.DRAG]&&h&&!o.clearedForMotionBlur[o.DRAG]||o.clearingMotionBlur,ie[o.DRAG]&&(o.clearedForMotionBlur[o.DRAG]=!0),v[o.NODE]||r||a||ie[o.NODE]){var ge=h&&!ie[o.NODE]&&d!==1,B=e||(ge?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]:l.contexts[o.NODE]),Ee=h&&!ge?"motionBlur":void 0;I(B,Ee),me?o.drawCachedNodes(B,F.nondrag,s,ae):o.drawLayeredElements(B,F.nondrag,s,ae),o.debug&&o.drawDebugPoints(B,F.nondrag),!r&&!h&&(v[o.NODE]=!1)}if(!a&&(v[o.DRAG]||r||ie[o.DRAG])){var ge=h&&!ie[o.DRAG]&&d!==1,B=e||(ge?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]:l.contexts[o.DRAG]);I(B,h&&!ge?"motionBlur":void 0),me?o.drawCachedNodes(B,F.drag,s,ae):o.drawCachedElements(B,F.drag,s,ae),o.debug&&o.drawDebugPoints(B,F.drag),!r&&!h&&(v[o.DRAG]=!1)}if(o.showFps||!a&&v[o.SELECT_BOX]&&!r){var B=e||l.contexts[o.SELECT_BOX];if(I(B),o.selection[4]==1&&(o.hoverData.selecting||o.touchData.selecting)){var b=o.cy.zoom(),Ce=m.core("selection-box-border-width").value/b;B.lineWidth=Ce,B.fillStyle="rgba("+m.core("selection-box-color").value[0]+","+m.core("selection-box-color").value[1]+","+m.core("selection-box-color").value[2]+","+m.core("selection-box-opacity").value+")",B.fillRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]),Ce>0&&(B.strokeStyle="rgba("+m.core("selection-box-border-color").value[0]+","+m.core("selection-box-border-color").value[1]+","+m.core("selection-box-border-color").value[2]+","+m.core("selection-box-opacity").value+")",B.strokeRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]))}if(l.bgActivePosistion&&!o.hoverData.selecting){var b=o.cy.zoom(),we=l.bgActivePosistion;B.fillStyle="rgba("+m.core("active-bg-color").value[0]+","+m.core("active-bg-color").value[1]+","+m.core("active-bg-color").value[2]+","+m.core("active-bg-opacity").value+")",B.beginPath(),B.arc(we.x,we.y,m.core("active-bg-size").pfValue/b,0,2*Math.PI),B.fill()}var De=o.lastRedrawTime;if(o.showFps&&De){De=Math.round(De);var oe=Math.round(1e3/De);B.setTransform(1,0,0,1,0,0),B.fillStyle="rgba(255, 0, 0, 0.75)",B.strokeStyle="rgba(255, 0, 0, 0.75)",B.lineWidth=1,B.fillText("1 frame = "+De+" ms = "+oe+" fps",0,20);var xe=60;B.strokeRect(0,30,250,20),B.fillRect(0,30,250*Math.min(oe/xe,1),20)}r||(v[o.SELECT_BOX]=!1)}if(h&&d!==1){var Le=l.contexts[o.NODE],Se=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_NODE],Oe=l.contexts[o.DRAG],Fe=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_DRAG],Xe=function(Me,$e,ze){Me.setTransform(1,0,0,1,0,0),ze||!g?Me.clearRect(0,0,o.canvasWidth,o.canvasHeight):G(Me,0,0,o.canvasWidth,o.canvasHeight);var Be=d;Me.drawImage($e,0,0,o.canvasWidth*Be,o.canvasHeight*Be,0,0,o.canvasWidth,o.canvasHeight)};(v[o.NODE]||ie[o.NODE])&&(Xe(Le,Se,ie[o.NODE]),v[o.NODE]=!1),(v[o.DRAG]||ie[o.DRAG])&&(Xe(Oe,Fe,ie[o.DRAG]),v[o.DRAG]=!1)}o.prevViewport=w,o.clearingMotionBlur&&(o.clearingMotionBlur=!1,o.motionBlurCleared=!0,o.motionBlur=!0),h&&(o.motionBlurTimeout=setTimeout(function(){o.motionBlurTimeout=null,o.clearedForMotionBlur[o.NODE]=!1,o.clearedForMotionBlur[o.DRAG]=!1,o.motionBlur=!1,o.clearingMotionBlur=!f,o.mbFrames=0,v[o.NODE]=!0,v[o.DRAG]=!0,o.redraw()},Jg)),e||u.emit("render")};var Mr={};Mr.drawPolygonPath=function(t,e,r,a,n,i){var o=a/2,s=n/2;t.beginPath&&t.beginPath(),t.moveTo(e+o*i[0],r+s*i[1]);for(var u=1;u<i.length/2;u++)t.lineTo(e+o*i[u*2],r+s*i[u*2+1]);t.closePath()},Mr.drawRoundPolygonPath=function(t,e,r,a,n,i){var o=a/2,s=n/2,u=ci(a,n);t.beginPath&&t.beginPath();for(var l=0;l<i.length/4;l++){var v=void 0,f=void 0;l===0?v=i.length-2:v=l*4-2,f=l*4+2;var h=e+o*i[l*4],d=r+s*i[l*4+1],c=-i[v]*i[f]-i[v+1]*i[f+1],y=u/Math.tan(Math.acos(c)/2),p=h-y*i[v],g=d-y*i[v+1],m=h+y*i[f],b=d+y*i[f+1];l===0?t.moveTo(p,g):t.lineTo(p,g),t.arcTo(h,d,m,b,u)}t.closePath()},Mr.drawRoundRectanglePath=function(t,e,r,a,n){var i=a/2,o=n/2,s=Fa(a,n);t.beginPath&&t.beginPath(),t.moveTo(e,r-o),t.arcTo(e+i,r-o,e+i,r,s),t.arcTo(e+i,r+o,e,r+o,s),t.arcTo(e-i,r+o,e-i,r,s),t.arcTo(e-i,r-o,e,r-o,s),t.lineTo(e,r-o),t.closePath()},Mr.drawBottomRoundRectanglePath=function(t,e,r,a,n){var i=a/2,o=n/2,s=Fa(a,n);t.beginPath&&t.beginPath(),t.moveTo(e,r-o),t.lineTo(e+i,r-o),t.lineTo(e+i,r),t.arcTo(e+i,r+o,e,r+o,s),t.arcTo(e-i,r+o,e-i,r,s),t.lineTo(e-i,r-o),t.lineTo(e,r-o),t.closePath()},Mr.drawCutRectanglePath=function(t,e,r,a,n){var i=a/2,o=n/2,s=Lo();t.beginPath&&t.beginPath(),t.moveTo(e-i+s,r-o),t.lineTo(e+i-s,r-o),t.lineTo(e+i,r-o+s),t.lineTo(e+i,r+o-s),t.lineTo(e+i-s,r+o),t.lineTo(e-i+s,r+o),t.lineTo(e-i,r+o-s),t.lineTo(e-i,r-o+s),t.closePath()},Mr.drawBarrelPath=function(t,e,r,a,n){var i=a/2,o=n/2,s=e-i,u=e+i,l=r-o,v=r+o,f=di(a,n),h=f.widthOffset,d=f.heightOffset,c=f.ctrlPtOffsetPct*h;t.beginPath&&t.beginPath(),t.moveTo(s,l+d),t.lineTo(s,v-d),t.quadraticCurveTo(s+c,v,s+h,v),t.lineTo(u-h,v),t.quadraticCurveTo(u-c,v,u,v-d),t.lineTo(u,l+d),t.quadraticCurveTo(u-c,l,u-h,l),t.lineTo(s+h,l),t.quadraticCurveTo(s+c,l,s,l+d),t.closePath()};for(var Cl=Math.sin(0),Dl=Math.cos(0),Yi={},Hi={},Sl=Math.PI/40,wa=0*Math.PI;wa<2*Math.PI;wa+=Sl)Yi[wa]=Math.sin(wa),Hi[wa]=Math.cos(wa);Mr.drawEllipsePath=function(t,e,r,a,n){if(t.beginPath&&t.beginPath(),t.ellipse)t.ellipse(e,r,a/2,n/2,0,0,2*Math.PI);else for(var i,o,s=a/2,u=n/2,l=0*Math.PI;l<2*Math.PI;l+=Sl)i=e-s*Yi[l]*Cl+s*Hi[l]*Dl,o=r+u*Hi[l]*Cl+u*Yi[l]*Dl,l===0?t.moveTo(i,o):t.lineTo(i,o);t.closePath()};var tn={};tn.createBuffer=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,[r,r.getContext("2d")]},tn.bufferCanvasImage=function(t){var e=this.cy,r=e.mutableElements(),a=r.boundingBox(),n=this.findContainerClientCoords(),i=t.full?Math.ceil(a.w):n[2],o=t.full?Math.ceil(a.h):n[3],s=R(t.maxWidth)||R(t.maxHeight),u=this.getPixelRatio(),l=1;if(t.scale!==void 0)i*=t.scale,o*=t.scale,l=t.scale;else if(s){var v=1/0,f=1/0;R(t.maxWidth)&&(v=l*t.maxWidth/i),R(t.maxHeight)&&(f=l*t.maxHeight/o),l=Math.min(v,f),i*=l,o*=l}s||(i*=u,o*=u,l*=u);var h=document.createElement("canvas");h.width=i,h.height=o,h.style.width=i+"px",h.style.height=o+"px";var d=h.getContext("2d");if(i>0&&o>0){d.clearRect(0,0,i,o),d.globalCompositeOperation="source-over";var c=this.getCachedZSortedEles();if(t.full)d.translate(-a.x1*l,-a.y1*l),d.scale(l,l),this.drawElements(d,c),d.scale(1/l,1/l),d.translate(a.x1*l,a.y1*l);else{var y=e.pan(),p={x:y.x*l,y:y.y*l};l*=e.zoom(),d.translate(p.x,p.y),d.scale(l,l),this.drawElements(d,c),d.scale(1/l,1/l),d.translate(-p.x,-p.y)}t.bg&&(d.globalCompositeOperation="destination-over",d.fillStyle=t.bg,d.rect(0,0,i,o),d.fill())}return h};function jg(t,e){for(var r=atob(t),a=new ArrayBuffer(r.length),n=new Uint8Array(a),i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return new Blob([a],{type:e})}function Ll(t){var e=t.indexOf(",");return t.substr(e+1)}function Al(t,e,r){var a=function(){return e.toDataURL(r,t.quality)};switch(t.output){case"blob-promise":return new ia(function(n,i){try{e.toBlob(function(o){o!=null?n(o):i(new Error("`canvas.toBlob()` sent a null value in its callback"))},r,t.quality)}catch(o){i(o)}});case"blob":return jg(Ll(a()),r);case"base64":return Ll(a());case"base64uri":default:return a()}}tn.png=function(t){return Al(t,this.bufferCanvasImage(t),"image/png")},tn.jpg=function(t){return Al(t,this.bufferCanvasImage(t),"image/jpeg")};var Ol={};Ol.nodeShapeImpl=function(t,e,r,a,n,i,o){switch(t){case"ellipse":return this.drawEllipsePath(e,r,a,n,i);case"polygon":return this.drawPolygonPath(e,r,a,n,i,o);case"round-polygon":return this.drawRoundPolygonPath(e,r,a,n,i,o);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(e,r,a,n,i);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(e,r,a,n,i);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(e,r,a,n,i);case"barrel":return this.drawBarrelPath(e,r,a,n,i)}};var ep=Nl,ut=Nl.prototype;ut.CANVAS_LAYERS=3,ut.SELECT_BOX=0,ut.DRAG=1,ut.NODE=2,ut.BUFFER_COUNT=3,ut.TEXTURE_BUFFER=0,ut.MOTIONBLUR_BUFFER_NODE=1,ut.MOTIONBLUR_BUFFER_DRAG=2;function Nl(t){var e=this;e.data={canvases:new Array(ut.CANVAS_LAYERS),contexts:new Array(ut.CANVAS_LAYERS),canvasNeedsRedraw:new Array(ut.CANVAS_LAYERS),bufferCanvases:new Array(ut.BUFFER_COUNT),bufferContexts:new Array(ut.CANVAS_LAYERS)};var r="-webkit-tap-highlight-color",a="rgba(0,0,0,0)";e.data.canvasContainer=document.createElement("div");var n=e.data.canvasContainer.style;e.data.canvasContainer.style[r]=a,n.position="relative",n.zIndex="0",n.overflow="hidden";var i=t.cy.container();i.appendChild(e.data.canvasContainer),i.style[r]=a;var o={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};ft()&&(o["-ms-touch-action"]="none",o["touch-action"]="none");for(var s=0;s<ut.CANVAS_LAYERS;s++){var u=e.data.canvases[s]=document.createElement("canvas");e.data.contexts[s]=u.getContext("2d"),Object.keys(o).forEach(function(De){u.style[De]=o[De]}),u.style.position="absolute",u.setAttribute("data-id","layer"+s),u.style.zIndex=String(ut.CANVAS_LAYERS-s),e.data.canvasContainer.appendChild(u),e.data.canvasNeedsRedraw[s]=!1}e.data.topCanvas=e.data.canvases[0],e.data.canvases[ut.NODE].setAttribute("data-id","layer"+ut.NODE+"-node"),e.data.canvases[ut.SELECT_BOX].setAttribute("data-id","layer"+ut.SELECT_BOX+"-selectbox"),e.data.canvases[ut.DRAG].setAttribute("data-id","layer"+ut.DRAG+"-drag");for(var s=0;s<ut.BUFFER_COUNT;s++)e.data.bufferCanvases[s]=document.createElement("canvas"),e.data.bufferContexts[s]=e.data.bufferCanvases[s].getContext("2d"),e.data.bufferCanvases[s].style.position="absolute",e.data.bufferCanvases[s].setAttribute("data-id","buffer"+s),e.data.bufferCanvases[s].style.zIndex=String(-s-1),e.data.bufferCanvases[s].style.visibility="hidden";e.pathsEnabled=!0;var l=Yt(),v=function(oe){return{x:(oe.x1+oe.x2)/2,y:(oe.y1+oe.y2)/2}},f=function(oe){return{x:-oe.w/2,y:-oe.h/2}},h=function(oe){var xe=oe[0]._private,Le=xe.oldBackgroundTimestamp===xe.backgroundTimestamp;return!Le},d=function(oe){return oe[0]._private.nodeKey},c=function(oe){return oe[0]._private.labelStyleKey},y=function(oe){return oe[0]._private.sourceLabelStyleKey},p=function(oe){return oe[0]._private.targetLabelStyleKey},g=function(oe,xe,Le,Se,Oe){return e.drawElement(oe,xe,Le,!1,!1,Oe)},m=function(oe,xe,Le,Se,Oe){return e.drawElementText(oe,xe,Le,Se,"main",Oe)},b=function(oe,xe,Le,Se,Oe){return e.drawElementText(oe,xe,Le,Se,"source",Oe)},E=function(oe,xe,Le,Se,Oe){return e.drawElementText(oe,xe,Le,Se,"target",Oe)},M=function(oe){return oe.boundingBox(),oe[0]._private.bodyBounds},L=function(oe){return oe.boundingBox(),oe[0]._private.labelBounds.main||l},w=function(oe){return oe.boundingBox(),oe[0]._private.labelBounds.source||l},k=function(oe){return oe.boundingBox(),oe[0]._private.labelBounds.target||l},D=function(oe,xe){return xe},F=function(oe){return v(M(oe))},G=function(oe,xe,Le){var Se=oe?oe+"-":"";return{x:xe.x+Le.pstyle(Se+"text-margin-x").pfValue,y:xe.y+Le.pstyle(Se+"text-margin-y").pfValue}},I=function(oe,xe,Le){var Se=oe[0]._private.rscratch;return{x:Se[xe],y:Se[Le]}},X=function(oe){return G("",I(oe,"labelX","labelY"),oe)},B=function(oe){return G("source",I(oe,"sourceLabelX","sourceLabelY"),oe)},re=function(oe){return G("target",I(oe,"targetLabelX","targetLabelY"),oe)},K=function(oe){return f(M(oe))},W=function(oe){return f(w(oe))},ae=function(oe){return f(k(oe))},ue=function(oe){var xe=L(oe),Le=f(L(oe));if(oe.isNode()){switch(oe.pstyle("text-halign").value){case"left":Le.x=-xe.w;break;case"right":Le.x=0;break}switch(oe.pstyle("text-valign").value){case"top":Le.y=-xe.h;break;case"bottom":Le.y=0;break}}return Le},me=e.data.eleTxrCache=new ja(e,{getKey:d,doesEleInvalidateKey:h,drawElement:g,getBoundingBox:M,getRotationPoint:F,getRotationOffset:K,allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),ie=e.data.lblTxrCache=new ja(e,{getKey:c,drawElement:m,getBoundingBox:L,getRotationPoint:X,getRotationOffset:ue,isVisible:D}),ge=e.data.slbTxrCache=new ja(e,{getKey:y,drawElement:b,getBoundingBox:w,getRotationPoint:B,getRotationOffset:W,isVisible:D}),Ee=e.data.tlbTxrCache=new ja(e,{getKey:p,drawElement:E,getBoundingBox:k,getRotationPoint:re,getRotationOffset:ae,isVisible:D}),Ce=e.data.lyrTxrCache=new yl(e);e.onUpdateEleCalcs(function(oe,xe){me.invalidateElements(xe),ie.invalidateElements(xe),ge.invalidateElements(xe),Ee.invalidateElements(xe),Ce.invalidateElements(xe);for(var Le=0;Le<xe.length;Le++){var Se=xe[Le]._private;Se.oldBackgroundTimestamp=Se.backgroundTimestamp}});var we=function(oe){for(var xe=0;xe<oe.length;xe++)Ce.enqueueElementRefinement(oe[xe].ele)};me.onDequeue(we),ie.onDequeue(we),ge.onDequeue(we),Ee.onDequeue(we)}ut.redrawHint=function(t,e){var r=this;switch(t){case"eles":r.data.canvasNeedsRedraw[ut.NODE]=e;break;case"drag":r.data.canvasNeedsRedraw[ut.DRAG]=e;break;case"select":r.data.canvasNeedsRedraw[ut.SELECT_BOX]=e;break}};var tp=typeof Path2D<"u";ut.path2dEnabled=function(t){if(t===void 0)return this.pathsEnabled;this.pathsEnabled=!!t},ut.usePaths=function(){return tp&&this.pathsEnabled},ut.setImgSmoothing=function(t,e){t.imageSmoothingEnabled!=null?t.imageSmoothingEnabled=e:(t.webkitImageSmoothingEnabled=e,t.mozImageSmoothingEnabled=e,t.msImageSmoothingEnabled=e)},ut.getImgSmoothing=function(t){return t.imageSmoothingEnabled!=null?t.imageSmoothingEnabled:t.webkitImageSmoothingEnabled||t.mozImageSmoothingEnabled||t.msImageSmoothingEnabled},ut.makeOffscreenCanvas=function(t,e){var r;return(typeof OffscreenCanvas>"u"?"undefined":_(OffscreenCanvas))!=="undefined"?r=new OffscreenCanvas(t,e):(r=document.createElement("canvas"),r.width=t,r.height=e),r},[bl,hr,br,Ui,_r,Ea,Kt,Mr,tn,Ol].forEach(function(t){He(ut,t)});var rp=[{name:"null",impl:tl},{name:"base",impl:cl},{name:"canvas",impl:ep}],ap=[{type:"layout",extensions:fg},{type:"renderer",extensions:rp}],Il={},Ml={};function Rl(t,e,r){var a=r,n=function(k){ht("Can not register `"+e+"` for `"+t+"` since `"+k+"` already exists in the prototype and can not be overridden")};if(t==="core"){if(Za.prototype[e])return n(e);Za.prototype[e]=r}else if(t==="collection"){if(Nt.prototype[e])return n(e);Nt.prototype[e]=r}else if(t==="layout"){for(var i=function(k){this.options=k,r.call(this,k),S(this._private)||(this._private={}),this._private.cy=k.cy,this._private.listeners=[],this.createEmitter()},o=i.prototype=Object.create(r.prototype),s=[],u=0;u<s.length;u++){var l=s[u];o[l]=o[l]||function(){return this}}o.start&&!o.run?o.run=function(){return this.start(),this}:!o.start&&o.run&&(o.start=function(){return this.run(),this});var v=r.prototype.stop;o.stop=function(){var w=this.options;if(w&&w.animate){var k=this.animations;if(k)for(var D=0;D<k.length;D++)k[D].stop()}return v?v.call(this):this.emit("layoutstop"),this},o.destroy||(o.destroy=function(){return this}),o.cy=function(){return this._private.cy};var f=function(k){return k._private.cy},h={addEventFields:function(k,D){D.layout=k,D.cy=f(k),D.target=k},bubble:function(){return!0},parent:function(k){return f(k)}};He(o,{createEmitter:function(){return this._private.emitter=new In(h,this),this},emitter:function(){return this._private.emitter},on:function(k,D){return this.emitter().on(k,D),this},one:function(k,D){return this.emitter().one(k,D),this},once:function(k,D){return this.emitter().one(k,D),this},removeListener:function(k,D){return this.emitter().removeListener(k,D),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},emit:function(k,D){return this.emitter().emit(k,D),this}}),ct.eventAliasesOn(o),a=i}else if(t==="renderer"&&e!=="null"&&e!=="base"){var d=kl("renderer","base"),c=d.prototype,y=r,p=r.prototype,g=function(){d.apply(this,arguments),y.apply(this,arguments)},m=g.prototype;for(var b in c){var E=c[b],M=p[b]!=null;if(M)return n(b);m[b]=E}for(var L in p)m[L]=p[L];c.clientFunctions.forEach(function(w){m[w]=m[w]||function(){xt("Renderer does not implement `renderer."+w+"()` on its prototype")}}),a=g}else if(t==="__proto__"||t==="constructor"||t==="prototype")return xt(t+" is an illegal type to be registered, possibly lead to prototype pollutions");return to({map:Il,keys:[t,e],value:a})}function kl(t,e){return ro({map:Il,keys:[t,e]})}function np(t,e,r,a,n){return to({map:Ml,keys:[t,e,r,a],value:n})}function ip(t,e,r,a){return ro({map:Ml,keys:[t,e,r,a]})}var Xi=function(){if(arguments.length===2)return kl.apply(null,arguments);if(arguments.length===3)return Rl.apply(null,arguments);if(arguments.length===4)return ip.apply(null,arguments);if(arguments.length===5)return np.apply(null,arguments);xt("Invalid extension access syntax")};Za.prototype.extension=Xi,ap.forEach(function(t){t.extensions.forEach(function(e){Rl(t.type,e.name,e.impl)})});var Pl=function t(){if(!(this instanceof t))return new t;this.length=0},Yr=Pl.prototype;Yr.instanceString=function(){return"stylesheet"},Yr.selector=function(t){var e=this.length++;return this[e]={selector:t,properties:[]},this},Yr.css=function(t,e){var r=this.length-1;if(ee(t))this[r].properties.push({name:t,value:e});else if(S(t))for(var a=t,n=Object.keys(a),i=0;i<n.length;i++){var o=n[i],s=a[o];if(s!=null){var u=Gt.properties[o]||Gt.properties[yt(o)];if(u!=null){var l=u.name,v=s;this[r].properties.push({name:l,value:v})}}}return this},Yr.style=Yr.css,Yr.generateStyle=function(t){var e=new Gt(t);return this.appendToStyle(e)},Yr.appendToStyle=function(t){for(var e=0;e<this.length;e++){var r=this[e],a=r.selector,n=r.properties;t.selector(a);for(var i=0;i<n.length;i++){var o=n[i];t.css(o.name,o.value)}}return t};var op="3.28.1",Hr=function(e){if(e===void 0&&(e={}),S(e))return new Za(e);if(ee(e))return Xi.apply(Xi,arguments)};return Hr.use=function(t){var e=Array.prototype.slice.call(arguments,1);return e.unshift(Hr),t.apply(null,e),this},Hr.warnings=function(t){return po(t)},Hr.version=op,Hr.stylesheet=Hr.Stylesheet=Pl,Hr})})(Yl);var Fp=Yl.exports;const Hl=Ul(Fp);var Xl={exports:{}},Ki={exports:{}},Zi={exports:{}},Vl;function Gp(){return Vl||(Vl=1,function(de,Pe){(function(ve,J){de.exports=J()})(Ca,function(){return function(_){var ve={};function J(C){if(ve[C])return ve[C].exports;var T=ve[C]={i:C,l:!1,exports:{}};return _[C].call(T.exports,T,T.exports,J),T.l=!0,T.exports}return J.m=_,J.c=ve,J.i=function(C){return C},J.d=function(C,T,x){J.o(C,T)||Object.defineProperty(C,T,{configurable:!1,enumerable:!0,get:x})},J.n=function(C){var T=C&&C.__esModule?function(){return C.default}:function(){return C};return J.d(T,"a",T),T},J.o=function(C,T){return Object.prototype.hasOwnProperty.call(C,T)},J.p="",J(J.s=26)}([function(_,ve,J){function C(){}C.QUALITY=1,C.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,C.DEFAULT_INCREMENTAL=!1,C.DEFAULT_ANIMATION_ON_LAYOUT=!0,C.DEFAULT_ANIMATION_DURING_LAYOUT=!1,C.DEFAULT_ANIMATION_PERIOD=50,C.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,C.DEFAULT_GRAPH_MARGIN=15,C.NODE_DIMENSIONS_INCLUDE_LABELS=!1,C.SIMPLE_NODE_SIZE=40,C.SIMPLE_NODE_HALF_SIZE=C.SIMPLE_NODE_SIZE/2,C.EMPTY_COMPOUND_NODE_SIZE=40,C.MIN_EDGE_LENGTH=1,C.WORLD_BOUNDARY=1e6,C.INITIAL_WORLD_BOUNDARY=C.WORLD_BOUNDARY/1e3,C.WORLD_CENTER_X=1200,C.WORLD_CENTER_Y=900,_.exports=C},function(_,ve,J){var C=J(2),T=J(8),x=J(9);function N(Y,P,Z){C.call(this,Z),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=Z,this.bendpoints=[],this.source=Y,this.target=P}N.prototype=Object.create(C.prototype);for(var z in C)N[z]=C[z];N.prototype.getSource=function(){return this.source},N.prototype.getTarget=function(){return this.target},N.prototype.isInterGraph=function(){return this.isInterGraph},N.prototype.getLength=function(){return this.length},N.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},N.prototype.getBendpoints=function(){return this.bendpoints},N.prototype.getLca=function(){return this.lca},N.prototype.getSourceInLca=function(){return this.sourceInLca},N.prototype.getTargetInLca=function(){return this.targetInLca},N.prototype.getOtherEnd=function(Y){if(this.source===Y)return this.target;if(this.target===Y)return this.source;throw"Node is not incident with this edge"},N.prototype.getOtherEndInGraph=function(Y,P){for(var Z=this.getOtherEnd(Y),A=P.getGraphManager().getRoot();;){if(Z.getOwner()==P)return Z;if(Z.getOwner()==A)break;Z=Z.getOwner().getParent()}return null},N.prototype.updateLength=function(){var Y=new Array(4);this.isOverlapingSourceAndTarget=T.getIntersection(this.target.getRect(),this.source.getRect(),Y),this.isOverlapingSourceAndTarget||(this.lengthX=Y[0]-Y[2],this.lengthY=Y[1]-Y[3],Math.abs(this.lengthX)<1&&(this.lengthX=x.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=x.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},N.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=x.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=x.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},_.exports=N},function(_,ve,J){function C(T){this.vGraphObject=T}_.exports=C},function(_,ve,J){var C=J(2),T=J(10),x=J(13),N=J(0),z=J(16),Y=J(4);function P(A,U,$,Q){$==null&&Q==null&&(Q=U),C.call(this,Q),A.graphManager!=null&&(A=A.graphManager),this.estimatedSize=T.MIN_VALUE,this.inclusionTreeDepth=T.MAX_VALUE,this.vGraphObject=Q,this.edges=[],this.graphManager=A,$!=null&&U!=null?this.rect=new x(U.x,U.y,$.width,$.height):this.rect=new x}P.prototype=Object.create(C.prototype);for(var Z in C)P[Z]=C[Z];P.prototype.getEdges=function(){return this.edges},P.prototype.getChild=function(){return this.child},P.prototype.getOwner=function(){return this.owner},P.prototype.getWidth=function(){return this.rect.width},P.prototype.setWidth=function(A){this.rect.width=A},P.prototype.getHeight=function(){return this.rect.height},P.prototype.setHeight=function(A){this.rect.height=A},P.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},P.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},P.prototype.getCenter=function(){return new Y(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},P.prototype.getLocation=function(){return new Y(this.rect.x,this.rect.y)},P.prototype.getRect=function(){return this.rect},P.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},P.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},P.prototype.setRect=function(A,U){this.rect.x=A.x,this.rect.y=A.y,this.rect.width=U.width,this.rect.height=U.height},P.prototype.setCenter=function(A,U){this.rect.x=A-this.rect.width/2,this.rect.y=U-this.rect.height/2},P.prototype.setLocation=function(A,U){this.rect.x=A,this.rect.y=U},P.prototype.moveBy=function(A,U){this.rect.x+=A,this.rect.y+=U},P.prototype.getEdgeListToNode=function(A){var U=[],$=this;return $.edges.forEach(function(Q){if(Q.target==A){if(Q.source!=$)throw"Incorrect edge source!";U.push(Q)}}),U},P.prototype.getEdgesBetween=function(A){var U=[],$=this;return $.edges.forEach(function(Q){if(!(Q.source==$||Q.target==$))throw"Incorrect edge source and/or target";(Q.target==A||Q.source==A)&&U.push(Q)}),U},P.prototype.getNeighborsList=function(){var A=new Set,U=this;return U.edges.forEach(function($){if($.source==U)A.add($.target);else{if($.target!=U)throw"Incorrect incidency!";A.add($.source)}}),A},P.prototype.withChildren=function(){var A=new Set,U,$;if(A.add(this),this.child!=null)for(var Q=this.child.getNodes(),ne=0;ne<Q.length;ne++)U=Q[ne],$=U.withChildren(),$.forEach(function(le){A.add(le)});return A},P.prototype.getNoOfChildren=function(){var A=0,U;if(this.child==null)A=1;else for(var $=this.child.getNodes(),Q=0;Q<$.length;Q++)U=$[Q],A+=U.getNoOfChildren();return A==0&&(A=1),A},P.prototype.getEstimatedSize=function(){if(this.estimatedSize==T.MIN_VALUE)throw"assert failed";return this.estimatedSize},P.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},P.prototype.scatter=function(){var A,U,$=-N.INITIAL_WORLD_BOUNDARY,Q=N.INITIAL_WORLD_BOUNDARY;A=N.WORLD_CENTER_X+z.nextDouble()*(Q-$)+$;var ne=-N.INITIAL_WORLD_BOUNDARY,le=N.INITIAL_WORLD_BOUNDARY;U=N.WORLD_CENTER_Y+z.nextDouble()*(le-ne)+ne,this.rect.x=A,this.rect.y=U},P.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var A=this.getChild();if(A.updateBounds(!0),this.rect.x=A.getLeft(),this.rect.y=A.getTop(),this.setWidth(A.getRight()-A.getLeft()),this.setHeight(A.getBottom()-A.getTop()),N.NODE_DIMENSIONS_INCLUDE_LABELS){var U=A.getRight()-A.getLeft(),$=A.getBottom()-A.getTop();this.labelWidth>U&&(this.rect.x-=(this.labelWidth-U)/2,this.setWidth(this.labelWidth)),this.labelHeight>$&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-$)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-$),this.setHeight(this.labelHeight))}}},P.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==T.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},P.prototype.transform=function(A){var U=this.rect.x;U>N.WORLD_BOUNDARY?U=N.WORLD_BOUNDARY:U<-N.WORLD_BOUNDARY&&(U=-N.WORLD_BOUNDARY);var $=this.rect.y;$>N.WORLD_BOUNDARY?$=N.WORLD_BOUNDARY:$<-N.WORLD_BOUNDARY&&($=-N.WORLD_BOUNDARY);var Q=new Y(U,$),ne=A.inverseTransformPoint(Q);this.setLocation(ne.x,ne.y)},P.prototype.getLeft=function(){return this.rect.x},P.prototype.getRight=function(){return this.rect.x+this.rect.width},P.prototype.getTop=function(){return this.rect.y},P.prototype.getBottom=function(){return this.rect.y+this.rect.height},P.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},_.exports=P},function(_,ve,J){function C(T,x){T==null&&x==null?(this.x=0,this.y=0):(this.x=T,this.y=x)}C.prototype.getX=function(){return this.x},C.prototype.getY=function(){return this.y},C.prototype.setX=function(T){this.x=T},C.prototype.setY=function(T){this.y=T},C.prototype.getDifference=function(T){return new DimensionD(this.x-T.x,this.y-T.y)},C.prototype.getCopy=function(){return new C(this.x,this.y)},C.prototype.translate=function(T){return this.x+=T.width,this.y+=T.height,this},_.exports=C},function(_,ve,J){var C=J(2),T=J(10),x=J(0),N=J(6),z=J(3),Y=J(1),P=J(13),Z=J(12),A=J(11);function U(Q,ne,le){C.call(this,le),this.estimatedSize=T.MIN_VALUE,this.margin=x.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=Q,ne!=null&&ne instanceof N?this.graphManager=ne:ne!=null&&ne instanceof Layout&&(this.graphManager=ne.graphManager)}U.prototype=Object.create(C.prototype);for(var $ in C)U[$]=C[$];U.prototype.getNodes=function(){return this.nodes},U.prototype.getEdges=function(){return this.edges},U.prototype.getGraphManager=function(){return this.graphManager},U.prototype.getParent=function(){return this.parent},U.prototype.getLeft=function(){return this.left},U.prototype.getRight=function(){return this.right},U.prototype.getTop=function(){return this.top},U.prototype.getBottom=function(){return this.bottom},U.prototype.isConnected=function(){return this.isConnected},U.prototype.add=function(Q,ne,le){if(ne==null&&le==null){var j=Q;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(j)>-1)throw"Node already in graph!";return j.owner=this,this.getNodes().push(j),j}else{var ee=Q;if(!(this.getNodes().indexOf(ne)>-1&&this.getNodes().indexOf(le)>-1))throw"Source or target not in graph!";if(!(ne.owner==le.owner&&ne.owner==this))throw"Both owners must be this graph!";return ne.owner!=le.owner?null:(ee.source=ne,ee.target=le,ee.isInterGraph=!1,this.getEdges().push(ee),ne.edges.push(ee),le!=ne&&le.edges.push(ee),ee)}},U.prototype.remove=function(Q){var ne=Q;if(Q instanceof z){if(ne==null)throw"Node is null!";if(!(ne.owner!=null&&ne.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var le=ne.edges.slice(),j,ee=le.length,H=0;H<ee;H++)j=le[H],j.isInterGraph?this.graphManager.remove(j):j.source.owner.remove(j);var te=this.nodes.indexOf(ne);if(te==-1)throw"Node not in owner node list!";this.nodes.splice(te,1)}else if(Q instanceof Y){var j=Q;if(j==null)throw"Edge is null!";if(!(j.source!=null&&j.target!=null))throw"Source and/or target is null!";if(!(j.source.owner!=null&&j.target.owner!=null&&j.source.owner==this&&j.target.owner==this))throw"Source and/or target owner is invalid!";var S=j.source.edges.indexOf(j),V=j.target.edges.indexOf(j);if(!(S>-1&&V>-1))throw"Source and/or target doesn't know this edge!";j.source.edges.splice(S,1),j.target!=j.source&&j.target.edges.splice(V,1);var te=j.source.owner.getEdges().indexOf(j);if(te==-1)throw"Not in owner's edge list!";j.source.owner.getEdges().splice(te,1)}},U.prototype.updateLeftTop=function(){for(var Q=T.MAX_VALUE,ne=T.MAX_VALUE,le,j,ee,H=this.getNodes(),te=H.length,S=0;S<te;S++){var V=H[S];le=V.getTop(),j=V.getLeft(),Q>le&&(Q=le),ne>j&&(ne=j)}return Q==T.MAX_VALUE?null:(H[0].getParent().paddingLeft!=null?ee=H[0].getParent().paddingLeft:ee=this.margin,this.left=ne-ee,this.top=Q-ee,new Z(this.left,this.top))},U.prototype.updateBounds=function(Q){for(var ne=T.MAX_VALUE,le=-T.MAX_VALUE,j=T.MAX_VALUE,ee=-T.MAX_VALUE,H,te,S,V,R,q=this.nodes,he=q.length,pe=0;pe<he;pe++){var Ae=q[pe];Q&&Ae.child!=null&&Ae.updateBounds(),H=Ae.getLeft(),te=Ae.getRight(),S=Ae.getTop(),V=Ae.getBottom(),ne>H&&(ne=H),le<te&&(le=te),j>S&&(j=S),ee<V&&(ee=V)}var Ne=new P(ne,j,le-ne,ee-j);ne==T.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),q[0].getParent().paddingLeft!=null?R=q[0].getParent().paddingLeft:R=this.margin,this.left=Ne.x-R,this.right=Ne.x+Ne.width+R,this.top=Ne.y-R,this.bottom=Ne.y+Ne.height+R},U.calculateBounds=function(Q){for(var ne=T.MAX_VALUE,le=-T.MAX_VALUE,j=T.MAX_VALUE,ee=-T.MAX_VALUE,H,te,S,V,R=Q.length,q=0;q<R;q++){var he=Q[q];H=he.getLeft(),te=he.getRight(),S=he.getTop(),V=he.getBottom(),ne>H&&(ne=H),le<te&&(le=te),j>S&&(j=S),ee<V&&(ee=V)}var pe=new P(ne,j,le-ne,ee-j);return pe},U.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},U.prototype.getEstimatedSize=function(){if(this.estimatedSize==T.MIN_VALUE)throw"assert failed";return this.estimatedSize},U.prototype.calcEstimatedSize=function(){for(var Q=0,ne=this.nodes,le=ne.length,j=0;j<le;j++){var ee=ne[j];Q+=ee.calcEstimatedSize()}return Q==0?this.estimatedSize=x.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=Q/Math.sqrt(this.nodes.length),this.estimatedSize},U.prototype.updateConnected=function(){var Q=this;if(this.nodes.length==0){this.isConnected=!0;return}var ne=new A,le=new Set,j=this.nodes[0],ee,H,te=j.withChildren();for(te.forEach(function(pe){ne.push(pe),le.add(pe)});ne.length!==0;){j=ne.shift(),ee=j.getEdges();for(var S=ee.length,V=0;V<S;V++){var R=ee[V];if(H=R.getOtherEndInGraph(j,this),H!=null&&!le.has(H)){var q=H.withChildren();q.forEach(function(pe){ne.push(pe),le.add(pe)})}}}if(this.isConnected=!1,le.size>=this.nodes.length){var he=0;le.forEach(function(pe){pe.owner==Q&&he++}),he==this.nodes.length&&(this.isConnected=!0)}},_.exports=U},function(_,ve,J){var C,T=J(1);function x(N){C=J(5),this.layout=N,this.graphs=[],this.edges=[]}x.prototype.addRoot=function(){var N=this.layout.newGraph(),z=this.layout.newNode(null),Y=this.add(N,z);return this.setRootGraph(Y),this.rootGraph},x.prototype.add=function(N,z,Y,P,Z){if(Y==null&&P==null&&Z==null){if(N==null)throw"Graph is null!";if(z==null)throw"Parent node is null!";if(this.graphs.indexOf(N)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(N),N.parent!=null)throw"Already has a parent!";if(z.child!=null)throw"Already has a child!";return N.parent=z,z.child=N,N}else{Z=Y,P=z,Y=N;var A=P.getOwner(),U=Z.getOwner();if(!(A!=null&&A.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(U!=null&&U.getGraphManager()==this))throw"Target not in this graph mgr!";if(A==U)return Y.isInterGraph=!1,A.add(Y,P,Z);if(Y.isInterGraph=!0,Y.source=P,Y.target=Z,this.edges.indexOf(Y)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(Y),!(Y.source!=null&&Y.target!=null))throw"Edge source and/or target is null!";if(!(Y.source.edges.indexOf(Y)==-1&&Y.target.edges.indexOf(Y)==-1))throw"Edge already in source and/or target incidency list!";return Y.source.edges.push(Y),Y.target.edges.push(Y),Y}},x.prototype.remove=function(N){if(N instanceof C){var z=N;if(z.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(z==this.rootGraph||z.parent!=null&&z.parent.graphManager==this))throw"Invalid parent node!";var Y=[];Y=Y.concat(z.getEdges());for(var P,Z=Y.length,A=0;A<Z;A++)P=Y[A],z.remove(P);var U=[];U=U.concat(z.getNodes());var $;Z=U.length;for(var A=0;A<Z;A++)$=U[A],z.remove($);z==this.rootGraph&&this.setRootGraph(null);var Q=this.graphs.indexOf(z);this.graphs.splice(Q,1),z.parent=null}else if(N instanceof T){if(P=N,P==null)throw"Edge is null!";if(!P.isInterGraph)throw"Not an inter-graph edge!";if(!(P.source!=null&&P.target!=null))throw"Source and/or target is null!";if(!(P.source.edges.indexOf(P)!=-1&&P.target.edges.indexOf(P)!=-1))throw"Source and/or target doesn't know this edge!";var Q=P.source.edges.indexOf(P);if(P.source.edges.splice(Q,1),Q=P.target.edges.indexOf(P),P.target.edges.splice(Q,1),!(P.source.owner!=null&&P.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(P.source.owner.getGraphManager().edges.indexOf(P)==-1)throw"Not in owner graph manager's edge list!";var Q=P.source.owner.getGraphManager().edges.indexOf(P);P.source.owner.getGraphManager().edges.splice(Q,1)}},x.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},x.prototype.getGraphs=function(){return this.graphs},x.prototype.getAllNodes=function(){if(this.allNodes==null){for(var N=[],z=this.getGraphs(),Y=z.length,P=0;P<Y;P++)N=N.concat(z[P].getNodes());this.allNodes=N}return this.allNodes},x.prototype.resetAllNodes=function(){this.allNodes=null},x.prototype.resetAllEdges=function(){this.allEdges=null},x.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},x.prototype.getAllEdges=function(){if(this.allEdges==null){var N=[],z=this.getGraphs();z.length;for(var Y=0;Y<z.length;Y++)N=N.concat(z[Y].getEdges());N=N.concat(this.edges),this.allEdges=N}return this.allEdges},x.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},x.prototype.setAllNodesToApplyGravitation=function(N){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=N},x.prototype.getRoot=function(){return this.rootGraph},x.prototype.setRootGraph=function(N){if(N.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=N,N.parent==null&&(N.parent=this.layout.newNode("Root node"))},x.prototype.getLayout=function(){return this.layout},x.prototype.isOneAncestorOfOther=function(N,z){if(!(N!=null&&z!=null))throw"assert failed";if(N==z)return!0;var Y=N.getOwner(),P;do{if(P=Y.getParent(),P==null)break;if(P==z)return!0;if(Y=P.getOwner(),Y==null)break}while(!0);Y=z.getOwner();do{if(P=Y.getParent(),P==null)break;if(P==N)return!0;if(Y=P.getOwner(),Y==null)break}while(!0);return!1},x.prototype.calcLowestCommonAncestors=function(){for(var N,z,Y,P,Z,A=this.getAllEdges(),U=A.length,$=0;$<U;$++){if(N=A[$],z=N.source,Y=N.target,N.lca=null,N.sourceInLca=z,N.targetInLca=Y,z==Y){N.lca=z.getOwner();continue}for(P=z.getOwner();N.lca==null;){for(N.targetInLca=Y,Z=Y.getOwner();N.lca==null;){if(Z==P){N.lca=Z;break}if(Z==this.rootGraph)break;if(N.lca!=null)throw"assert failed";N.targetInLca=Z.getParent(),Z=N.targetInLca.getOwner()}if(P==this.rootGraph)break;N.lca==null&&(N.sourceInLca=P.getParent(),P=N.sourceInLca.getOwner())}if(N.lca==null)throw"assert failed"}},x.prototype.calcLowestCommonAncestor=function(N,z){if(N==z)return N.getOwner();var Y=N.getOwner();do{if(Y==null)break;var P=z.getOwner();do{if(P==null)break;if(P==Y)return P;P=P.getParent().getOwner()}while(!0);Y=Y.getParent().getOwner()}while(!0);return Y},x.prototype.calcInclusionTreeDepths=function(N,z){N==null&&z==null&&(N=this.rootGraph,z=1);for(var Y,P=N.getNodes(),Z=P.length,A=0;A<Z;A++)Y=P[A],Y.inclusionTreeDepth=z,Y.child!=null&&this.calcInclusionTreeDepths(Y.child,z+1)},x.prototype.includesInvalidEdge=function(){for(var N,z=this.edges.length,Y=0;Y<z;Y++)if(N=this.edges[Y],this.isOneAncestorOfOther(N.source,N.target))return!0;return!1},_.exports=x},function(_,ve,J){var C=J(0);function T(){}for(var x in C)T[x]=C[x];T.MAX_ITERATIONS=2500,T.DEFAULT_EDGE_LENGTH=50,T.DEFAULT_SPRING_STRENGTH=.45,T.DEFAULT_REPULSION_STRENGTH=4500,T.DEFAULT_GRAVITY_STRENGTH=.4,T.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,T.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,T.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,T.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,T.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,T.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,T.COOLING_ADAPTATION_FACTOR=.33,T.ADAPTATION_LOWER_NODE_LIMIT=1e3,T.ADAPTATION_UPPER_NODE_LIMIT=5e3,T.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,T.MAX_NODE_DISPLACEMENT=T.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,T.MIN_REPULSION_DIST=T.DEFAULT_EDGE_LENGTH/10,T.CONVERGENCE_CHECK_PERIOD=100,T.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,T.MIN_EDGE_LENGTH=1,T.GRID_CALCULATION_CHECK_PERIOD=10,_.exports=T},function(_,ve,J){var C=J(12);function T(){}T.calcSeparationAmount=function(x,N,z,Y){if(!x.intersects(N))throw"assert failed";var P=new Array(2);this.decideDirectionsForOverlappingNodes(x,N,P),z[0]=Math.min(x.getRight(),N.getRight())-Math.max(x.x,N.x),z[1]=Math.min(x.getBottom(),N.getBottom())-Math.max(x.y,N.y),x.getX()<=N.getX()&&x.getRight()>=N.getRight()?z[0]+=Math.min(N.getX()-x.getX(),x.getRight()-N.getRight()):N.getX()<=x.getX()&&N.getRight()>=x.getRight()&&(z[0]+=Math.min(x.getX()-N.getX(),N.getRight()-x.getRight())),x.getY()<=N.getY()&&x.getBottom()>=N.getBottom()?z[1]+=Math.min(N.getY()-x.getY(),x.getBottom()-N.getBottom()):N.getY()<=x.getY()&&N.getBottom()>=x.getBottom()&&(z[1]+=Math.min(x.getY()-N.getY(),N.getBottom()-x.getBottom()));var Z=Math.abs((N.getCenterY()-x.getCenterY())/(N.getCenterX()-x.getCenterX()));N.getCenterY()===x.getCenterY()&&N.getCenterX()===x.getCenterX()&&(Z=1);var A=Z*z[0],U=z[1]/Z;z[0]<U?U=z[0]:A=z[1],z[0]=-1*P[0]*(U/2+Y),z[1]=-1*P[1]*(A/2+Y)},T.decideDirectionsForOverlappingNodes=function(x,N,z){x.getCenterX()<N.getCenterX()?z[0]=-1:z[0]=1,x.getCenterY()<N.getCenterY()?z[1]=-1:z[1]=1},T.getIntersection2=function(x,N,z){var Y=x.getCenterX(),P=x.getCenterY(),Z=N.getCenterX(),A=N.getCenterY();if(x.intersects(N))return z[0]=Y,z[1]=P,z[2]=Z,z[3]=A,!0;var U=x.getX(),$=x.getY(),Q=x.getRight(),ne=x.getX(),le=x.getBottom(),j=x.getRight(),ee=x.getWidthHalf(),H=x.getHeightHalf(),te=N.getX(),S=N.getY(),V=N.getRight(),R=N.getX(),q=N.getBottom(),he=N.getRight(),pe=N.getWidthHalf(),Ae=N.getHeightHalf(),Ne=!1,Ye=!1;if(Y===Z){if(P>A)return z[0]=Y,z[1]=$,z[2]=Z,z[3]=q,!1;if(P<A)return z[0]=Y,z[1]=le,z[2]=Z,z[3]=S,!1}else if(P===A){if(Y>Z)return z[0]=U,z[1]=P,z[2]=V,z[3]=A,!1;if(Y<Z)return z[0]=Q,z[1]=P,z[2]=te,z[3]=A,!1}else{var at=x.height/x.width,dt=N.height/N.width,Re=(A-P)/(Z-Y),Ve=void 0,Ze=void 0,nt=void 0,ft=void 0,it=void 0,tt=void 0;if(-at===Re?Y>Z?(z[0]=ne,z[1]=le,Ne=!0):(z[0]=Q,z[1]=$,Ne=!0):at===Re&&(Y>Z?(z[0]=U,z[1]=$,Ne=!0):(z[0]=j,z[1]=le,Ne=!0)),-dt===Re?Z>Y?(z[2]=R,z[3]=q,Ye=!0):(z[2]=V,z[3]=S,Ye=!0):dt===Re&&(Z>Y?(z[2]=te,z[3]=S,Ye=!0):(z[2]=he,z[3]=q,Ye=!0)),Ne&&Ye)return!1;if(Y>Z?P>A?(Ve=this.getCardinalDirection(at,Re,4),Ze=this.getCardinalDirection(dt,Re,2)):(Ve=this.getCardinalDirection(-at,Re,3),Ze=this.getCardinalDirection(-dt,Re,1)):P>A?(Ve=this.getCardinalDirection(-at,Re,1),Ze=this.getCardinalDirection(-dt,Re,3)):(Ve=this.getCardinalDirection(at,Re,2),Ze=this.getCardinalDirection(dt,Re,4)),!Ne)switch(Ve){case 1:ft=$,nt=Y+-H/Re,z[0]=nt,z[1]=ft;break;case 2:nt=j,ft=P+ee*Re,z[0]=nt,z[1]=ft;break;case 3:ft=le,nt=Y+H/Re,z[0]=nt,z[1]=ft;break;case 4:nt=ne,ft=P+-ee*Re,z[0]=nt,z[1]=ft;break}if(!Ye)switch(Ze){case 1:tt=S,it=Z+-Ae/Re,z[2]=it,z[3]=tt;break;case 2:it=he,tt=A+pe*Re,z[2]=it,z[3]=tt;break;case 3:tt=q,it=Z+Ae/Re,z[2]=it,z[3]=tt;break;case 4:it=R,tt=A+-pe*Re,z[2]=it,z[3]=tt;break}}return!1},T.getCardinalDirection=function(x,N,z){return x>N?z:1+z%4},T.getIntersection=function(x,N,z,Y){if(Y==null)return this.getIntersection2(x,N,z);var P=x.x,Z=x.y,A=N.x,U=N.y,$=z.x,Q=z.y,ne=Y.x,le=Y.y,j=void 0,ee=void 0,H=void 0,te=void 0,S=void 0,V=void 0,R=void 0,q=void 0,he=void 0;return H=U-Z,S=P-A,R=A*Z-P*U,te=le-Q,V=$-ne,q=ne*Q-$*le,he=H*V-te*S,he===0?null:(j=(S*q-V*R)/he,ee=(te*R-H*q)/he,new C(j,ee))},T.angleOfVector=function(x,N,z,Y){var P=void 0;return x!==z?(P=Math.atan((Y-N)/(z-x)),z<x?P+=Math.PI:Y<N&&(P+=this.TWO_PI)):Y<N?P=this.ONE_AND_HALF_PI:P=this.HALF_PI,P},T.doIntersect=function(x,N,z,Y){var P=x.x,Z=x.y,A=N.x,U=N.y,$=z.x,Q=z.y,ne=Y.x,le=Y.y,j=(A-P)*(le-Q)-(ne-$)*(U-Z);if(j===0)return!1;var ee=((le-Q)*(ne-P)+($-ne)*(le-Z))/j,H=((Z-U)*(ne-P)+(A-P)*(le-Z))/j;return 0<ee&&ee<1&&0<H&&H<1},T.HALF_PI=.5*Math.PI,T.ONE_AND_HALF_PI=1.5*Math.PI,T.TWO_PI=2*Math.PI,T.THREE_PI=3*Math.PI,_.exports=T},function(_,ve,J){function C(){}C.sign=function(T){return T>0?1:T<0?-1:0},C.floor=function(T){return T<0?Math.ceil(T):Math.floor(T)},C.ceil=function(T){return T<0?Math.floor(T):Math.ceil(T)},_.exports=C},function(_,ve,J){function C(){}C.MAX_VALUE=2147483647,C.MIN_VALUE=-2147483648,_.exports=C},function(_,ve,J){var C=function(){function P(Z,A){for(var U=0;U<A.length;U++){var $=A[U];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(Z,$.key,$)}}return function(Z,A,U){return A&&P(Z.prototype,A),U&&P(Z,U),Z}}();function T(P,Z){if(!(P instanceof Z))throw new TypeError("Cannot call a class as a function")}var x=function(Z){return{value:Z,next:null,prev:null}},N=function(Z,A,U,$){return Z!==null?Z.next=A:$.head=A,U!==null?U.prev=A:$.tail=A,A.prev=Z,A.next=U,$.length++,A},z=function(Z,A){var U=Z.prev,$=Z.next;return U!==null?U.next=$:A.head=$,$!==null?$.prev=U:A.tail=U,Z.prev=Z.next=null,A.length--,Z},Y=function(){function P(Z){var A=this;T(this,P),this.length=0,this.head=null,this.tail=null,Z!=null&&Z.forEach(function(U){return A.push(U)})}return C(P,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(A,U){return N(U.prev,x(A),U,this)}},{key:"insertAfter",value:function(A,U){return N(U,x(A),U.next,this)}},{key:"insertNodeBefore",value:function(A,U){return N(U.prev,A,U,this)}},{key:"insertNodeAfter",value:function(A,U){return N(U,A,U.next,this)}},{key:"push",value:function(A){return N(this.tail,x(A),null,this)}},{key:"unshift",value:function(A){return N(null,x(A),this.head,this)}},{key:"remove",value:function(A){return z(A,this)}},{key:"pop",value:function(){return z(this.tail,this).value}},{key:"popNode",value:function(){return z(this.tail,this)}},{key:"shift",value:function(){return z(this.head,this).value}},{key:"shiftNode",value:function(){return z(this.head,this)}},{key:"get_object_at",value:function(A){if(A<=this.length()){for(var U=1,$=this.head;U<A;)$=$.next,U++;return $.value}}},{key:"set_object_at",value:function(A,U){if(A<=this.length()){for(var $=1,Q=this.head;$<A;)Q=Q.next,$++;Q.value=U}}}]),P}();_.exports=Y},function(_,ve,J){function C(T,x,N){this.x=null,this.y=null,T==null&&x==null&&N==null?(this.x=0,this.y=0):typeof T=="number"&&typeof x=="number"&&N==null?(this.x=T,this.y=x):T.constructor.name=="Point"&&x==null&&N==null&&(N=T,this.x=N.x,this.y=N.y)}C.prototype.getX=function(){return this.x},C.prototype.getY=function(){return this.y},C.prototype.getLocation=function(){return new C(this.x,this.y)},C.prototype.setLocation=function(T,x,N){T.constructor.name=="Point"&&x==null&&N==null?(N=T,this.setLocation(N.x,N.y)):typeof T=="number"&&typeof x=="number"&&N==null&&(parseInt(T)==T&&parseInt(x)==x?this.move(T,x):(this.x=Math.floor(T+.5),this.y=Math.floor(x+.5)))},C.prototype.move=function(T,x){this.x=T,this.y=x},C.prototype.translate=function(T,x){this.x+=T,this.y+=x},C.prototype.equals=function(T){if(T.constructor.name=="Point"){var x=T;return this.x==x.x&&this.y==x.y}return this==T},C.prototype.toString=function(){return new C().constructor.name+"[x="+this.x+",y="+this.y+"]"},_.exports=C},function(_,ve,J){function C(T,x,N,z){this.x=0,this.y=0,this.width=0,this.height=0,T!=null&&x!=null&&N!=null&&z!=null&&(this.x=T,this.y=x,this.width=N,this.height=z)}C.prototype.getX=function(){return this.x},C.prototype.setX=function(T){this.x=T},C.prototype.getY=function(){return this.y},C.prototype.setY=function(T){this.y=T},C.prototype.getWidth=function(){return this.width},C.prototype.setWidth=function(T){this.width=T},C.prototype.getHeight=function(){return this.height},C.prototype.setHeight=function(T){this.height=T},C.prototype.getRight=function(){return this.x+this.width},C.prototype.getBottom=function(){return this.y+this.height},C.prototype.intersects=function(T){return!(this.getRight()<T.x||this.getBottom()<T.y||T.getRight()<this.x||T.getBottom()<this.y)},C.prototype.getCenterX=function(){return this.x+this.width/2},C.prototype.getMinX=function(){return this.getX()},C.prototype.getMaxX=function(){return this.getX()+this.width},C.prototype.getCenterY=function(){return this.y+this.height/2},C.prototype.getMinY=function(){return this.getY()},C.prototype.getMaxY=function(){return this.getY()+this.height},C.prototype.getWidthHalf=function(){return this.width/2},C.prototype.getHeightHalf=function(){return this.height/2},_.exports=C},function(_,ve,J){var C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x};function T(){}T.lastID=0,T.createID=function(x){return T.isPrimitive(x)?x:(x.uniqueID!=null||(x.uniqueID=T.getString(),T.lastID++),x.uniqueID)},T.getString=function(x){return x==null&&(x=T.lastID),"Object#"+x},T.isPrimitive=function(x){var N=typeof x>"u"?"undefined":C(x);return x==null||N!="object"&&N!="function"},_.exports=T},function(_,ve,J){function C($){if(Array.isArray($)){for(var Q=0,ne=Array($.length);Q<$.length;Q++)ne[Q]=$[Q];return ne}else return Array.from($)}var T=J(0),x=J(6),N=J(3),z=J(1),Y=J(5),P=J(4),Z=J(17),A=J(27);function U($){A.call(this),this.layoutQuality=T.QUALITY,this.createBendsAsNeeded=T.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=T.DEFAULT_INCREMENTAL,this.animationOnLayout=T.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=T.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=T.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=T.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new x(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,$!=null&&(this.isRemoteUse=$)}U.RANDOM_SEED=1,U.prototype=Object.create(A.prototype),U.prototype.getGraphManager=function(){return this.graphManager},U.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},U.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},U.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},U.prototype.newGraphManager=function(){var $=new x(this);return this.graphManager=$,$},U.prototype.newGraph=function($){return new Y(null,this.graphManager,$)},U.prototype.newNode=function($){return new N(this.graphManager,$)},U.prototype.newEdge=function($){return new z(null,null,$)},U.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},U.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var $;return this.checkLayoutSuccess()?$=!1:$=this.layout(),T.ANIMATE==="during"?!1:($&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,$)},U.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},U.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var $=this.graphManager.getAllEdges(),Q=0;Q<$.length;Q++)$[Q];for(var ne=this.graphManager.getRoot().getNodes(),Q=0;Q<ne.length;Q++)ne[Q];this.update(this.graphManager.getRoot())}},U.prototype.update=function($){if($==null)this.update2();else if($ instanceof N){var Q=$;if(Q.getChild()!=null)for(var ne=Q.getChild().getNodes(),le=0;le<ne.length;le++)update(ne[le]);if(Q.vGraphObject!=null){var j=Q.vGraphObject;j.update(Q)}}else if($ instanceof z){var ee=$;if(ee.vGraphObject!=null){var H=ee.vGraphObject;H.update(ee)}}else if($ instanceof Y){var te=$;if(te.vGraphObject!=null){var S=te.vGraphObject;S.update(te)}}},U.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=T.QUALITY,this.animationDuringLayout=T.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=T.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=T.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=T.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=T.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=T.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},U.prototype.transform=function($){if($==null)this.transform(new P(0,0));else{var Q=new Z,ne=this.graphManager.getRoot().updateLeftTop();if(ne!=null){Q.setWorldOrgX($.x),Q.setWorldOrgY($.y),Q.setDeviceOrgX(ne.x),Q.setDeviceOrgY(ne.y);for(var le=this.getAllNodes(),j,ee=0;ee<le.length;ee++)j=le[ee],j.transform(Q)}}},U.prototype.positionNodesRandomly=function($){if($==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var Q,ne,le=$.getNodes(),j=0;j<le.length;j++)Q=le[j],ne=Q.getChild(),ne==null||ne.getNodes().length==0?Q.scatter():(this.positionNodesRandomly(ne),Q.updateBounds())},U.prototype.getFlatForest=function(){for(var $=[],Q=!0,ne=this.graphManager.getRoot().getNodes(),le=!0,j=0;j<ne.length;j++)ne[j].getChild()!=null&&(le=!1);if(!le)return $;var ee=new Set,H=[],te=new Map,S=[];for(S=S.concat(ne);S.length>0&&Q;){for(H.push(S[0]);H.length>0&&Q;){var V=H[0];H.splice(0,1),ee.add(V);for(var R=V.getEdges(),j=0;j<R.length;j++){var q=R[j].getOtherEnd(V);if(te.get(V)!=q)if(!ee.has(q))H.push(q),te.set(q,V);else{Q=!1;break}}}if(!Q)$=[];else{var he=[].concat(C(ee));$.push(he);for(var j=0;j<he.length;j++){var pe=he[j],Ae=S.indexOf(pe);Ae>-1&&S.splice(Ae,1)}ee=new Set,te=new Map}}return $},U.prototype.createDummyNodesForBendpoints=function($){for(var Q=[],ne=$.source,le=this.graphManager.calcLowestCommonAncestor($.source,$.target),j=0;j<$.bendpoints.length;j++){var ee=this.newNode(null);ee.setRect(new Point(0,0),new Dimension(1,1)),le.add(ee);var H=this.newEdge(null);this.graphManager.add(H,ne,ee),Q.add(ee),ne=ee}var H=this.newEdge(null);return this.graphManager.add(H,ne,$.target),this.edgeToDummyNodes.set($,Q),$.isInterGraph()?this.graphManager.remove($):le.remove($),Q},U.prototype.createBendpointsFromDummyNodes=function(){var $=[];$=$.concat(this.graphManager.getAllEdges()),$=[].concat(C(this.edgeToDummyNodes.keys())).concat($);for(var Q=0;Q<$.length;Q++){var ne=$[Q];if(ne.bendpoints.length>0){for(var le=this.edgeToDummyNodes.get(ne),j=0;j<le.length;j++){var ee=le[j],H=new P(ee.getCenterX(),ee.getCenterY()),te=ne.bendpoints.get(j);te.x=H.x,te.y=H.y,ee.getOwner().remove(ee)}this.graphManager.add(ne,ne.source,ne.target)}}},U.transform=function($,Q,ne,le){if(ne!=null&&le!=null){var j=Q;if($<=50){var ee=Q/ne;j-=(Q-ee)/50*(50-$)}else{var H=Q*le;j+=(H-Q)/50*($-50)}return j}else{var te,S;return $<=50?(te=9*Q/500,S=Q/10):(te=9*Q/50,S=-8*Q),te*$+S}},U.findCenterOfTree=function($){var Q=[];Q=Q.concat($);var ne=[],le=new Map,j=!1,ee=null;(Q.length==1||Q.length==2)&&(j=!0,ee=Q[0]);for(var H=0;H<Q.length;H++){var te=Q[H],S=te.getNeighborsList().size;le.set(te,te.getNeighborsList().size),S==1&&ne.push(te)}var V=[];for(V=V.concat(ne);!j;){var R=[];R=R.concat(V),V=[];for(var H=0;H<Q.length;H++){var te=Q[H],q=Q.indexOf(te);q>=0&&Q.splice(q,1);var he=te.getNeighborsList();he.forEach(function(Ne){if(ne.indexOf(Ne)<0){var Ye=le.get(Ne),at=Ye-1;at==1&&V.push(Ne),le.set(Ne,at)}})}ne=ne.concat(V),(Q.length==1||Q.length==2)&&(j=!0,ee=Q[0])}return ee},U.prototype.setGraphManager=function($){this.graphManager=$},_.exports=U},function(_,ve,J){function C(){}C.seed=1,C.x=0,C.nextDouble=function(){return C.x=Math.sin(C.seed++)*1e4,C.x-Math.floor(C.x)},_.exports=C},function(_,ve,J){var C=J(4);function T(x,N){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}T.prototype.getWorldOrgX=function(){return this.lworldOrgX},T.prototype.setWorldOrgX=function(x){this.lworldOrgX=x},T.prototype.getWorldOrgY=function(){return this.lworldOrgY},T.prototype.setWorldOrgY=function(x){this.lworldOrgY=x},T.prototype.getWorldExtX=function(){return this.lworldExtX},T.prototype.setWorldExtX=function(x){this.lworldExtX=x},T.prototype.getWorldExtY=function(){return this.lworldExtY},T.prototype.setWorldExtY=function(x){this.lworldExtY=x},T.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},T.prototype.setDeviceOrgX=function(x){this.ldeviceOrgX=x},T.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},T.prototype.setDeviceOrgY=function(x){this.ldeviceOrgY=x},T.prototype.getDeviceExtX=function(){return this.ldeviceExtX},T.prototype.setDeviceExtX=function(x){this.ldeviceExtX=x},T.prototype.getDeviceExtY=function(){return this.ldeviceExtY},T.prototype.setDeviceExtY=function(x){this.ldeviceExtY=x},T.prototype.transformX=function(x){var N=0,z=this.lworldExtX;return z!=0&&(N=this.ldeviceOrgX+(x-this.lworldOrgX)*this.ldeviceExtX/z),N},T.prototype.transformY=function(x){var N=0,z=this.lworldExtY;return z!=0&&(N=this.ldeviceOrgY+(x-this.lworldOrgY)*this.ldeviceExtY/z),N},T.prototype.inverseTransformX=function(x){var N=0,z=this.ldeviceExtX;return z!=0&&(N=this.lworldOrgX+(x-this.ldeviceOrgX)*this.lworldExtX/z),N},T.prototype.inverseTransformY=function(x){var N=0,z=this.ldeviceExtY;return z!=0&&(N=this.lworldOrgY+(x-this.ldeviceOrgY)*this.lworldExtY/z),N},T.prototype.inverseTransformPoint=function(x){var N=new C(this.inverseTransformX(x.x),this.inverseTransformY(x.y));return N},_.exports=T},function(_,ve,J){function C(A){if(Array.isArray(A)){for(var U=0,$=Array(A.length);U<A.length;U++)$[U]=A[U];return $}else return Array.from(A)}var T=J(15),x=J(7),N=J(0),z=J(8),Y=J(9);function P(){T.call(this),this.useSmartIdealEdgeLengthCalculation=x.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=x.DEFAULT_EDGE_LENGTH,this.springConstant=x.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=x.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=x.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=x.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=x.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=x.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*x.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=x.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=x.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=x.MAX_ITERATIONS}P.prototype=Object.create(T.prototype);for(var Z in T)P[Z]=T[Z];P.prototype.initParameters=function(){T.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=x.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},P.prototype.calcIdealEdgeLengths=function(){for(var A,U,$,Q,ne,le,j=this.getGraphManager().getAllEdges(),ee=0;ee<j.length;ee++)A=j[ee],A.idealLength=this.idealEdgeLength,A.isInterGraph&&($=A.getSource(),Q=A.getTarget(),ne=A.getSourceInLca().getEstimatedSize(),le=A.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(A.idealLength+=ne+le-2*N.SIMPLE_NODE_SIZE),U=A.getLca().getInclusionTreeDepth(),A.idealLength+=x.DEFAULT_EDGE_LENGTH*x.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*($.getInclusionTreeDepth()+Q.getInclusionTreeDepth()-2*U))},P.prototype.initSpringEmbedder=function(){var A=this.getAllNodes().length;this.incremental?(A>x.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*x.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(A-x.ADAPTATION_LOWER_NODE_LIMIT)/(x.ADAPTATION_UPPER_NODE_LIMIT-x.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-x.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=x.MAX_NODE_DISPLACEMENT_INCREMENTAL):(A>x.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(x.COOLING_ADAPTATION_FACTOR,1-(A-x.ADAPTATION_LOWER_NODE_LIMIT)/(x.ADAPTATION_UPPER_NODE_LIMIT-x.ADAPTATION_LOWER_NODE_LIMIT)*(1-x.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=x.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},P.prototype.calcSpringForces=function(){for(var A=this.getAllEdges(),U,$=0;$<A.length;$++)U=A[$],this.calcSpringForce(U,U.idealLength)},P.prototype.calcRepulsionForces=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$,Q,ne,le,j=this.getAllNodes(),ee;if(this.useFRGridVariant)for(this.totalIterations%x.GRID_CALCULATION_CHECK_PERIOD==1&&A&&this.updateGrid(),ee=new Set,$=0;$<j.length;$++)ne=j[$],this.calculateRepulsionForceOfANode(ne,ee,A,U),ee.add(ne);else for($=0;$<j.length;$++)for(ne=j[$],Q=$+1;Q<j.length;Q++)le=j[Q],ne.getOwner()==le.getOwner()&&this.calcRepulsionForce(ne,le)},P.prototype.calcGravitationalForces=function(){for(var A,U=this.getAllNodesToApplyGravitation(),$=0;$<U.length;$++)A=U[$],this.calcGravitationalForce(A)},P.prototype.moveNodes=function(){for(var A=this.getAllNodes(),U,$=0;$<A.length;$++)U=A[$],U.move()},P.prototype.calcSpringForce=function(A,U){var $=A.getSource(),Q=A.getTarget(),ne,le,j,ee;if(this.uniformLeafNodeSizes&&$.getChild()==null&&Q.getChild()==null)A.updateLengthSimple();else if(A.updateLength(),A.isOverlapingSourceAndTarget)return;ne=A.getLength(),ne!=0&&(le=this.springConstant*(ne-U),j=le*(A.lengthX/ne),ee=le*(A.lengthY/ne),$.springForceX+=j,$.springForceY+=ee,Q.springForceX-=j,Q.springForceY-=ee)},P.prototype.calcRepulsionForce=function(A,U){var $=A.getRect(),Q=U.getRect(),ne=new Array(2),le=new Array(4),j,ee,H,te,S,V,R;if($.intersects(Q)){z.calcSeparationAmount($,Q,ne,x.DEFAULT_EDGE_LENGTH/2),V=2*ne[0],R=2*ne[1];var q=A.noOfChildren*U.noOfChildren/(A.noOfChildren+U.noOfChildren);A.repulsionForceX-=q*V,A.repulsionForceY-=q*R,U.repulsionForceX+=q*V,U.repulsionForceY+=q*R}else this.uniformLeafNodeSizes&&A.getChild()==null&&U.getChild()==null?(j=Q.getCenterX()-$.getCenterX(),ee=Q.getCenterY()-$.getCenterY()):(z.getIntersection($,Q,le),j=le[2]-le[0],ee=le[3]-le[1]),Math.abs(j)<x.MIN_REPULSION_DIST&&(j=Y.sign(j)*x.MIN_REPULSION_DIST),Math.abs(ee)<x.MIN_REPULSION_DIST&&(ee=Y.sign(ee)*x.MIN_REPULSION_DIST),H=j*j+ee*ee,te=Math.sqrt(H),S=this.repulsionConstant*A.noOfChildren*U.noOfChildren/H,V=S*j/te,R=S*ee/te,A.repulsionForceX-=V,A.repulsionForceY-=R,U.repulsionForceX+=V,U.repulsionForceY+=R},P.prototype.calcGravitationalForce=function(A){var U,$,Q,ne,le,j,ee,H;U=A.getOwner(),$=(U.getRight()+U.getLeft())/2,Q=(U.getTop()+U.getBottom())/2,ne=A.getCenterX()-$,le=A.getCenterY()-Q,j=Math.abs(ne)+A.getWidth()/2,ee=Math.abs(le)+A.getHeight()/2,A.getOwner()==this.graphManager.getRoot()?(H=U.getEstimatedSize()*this.gravityRangeFactor,(j>H||ee>H)&&(A.gravitationForceX=-this.gravityConstant*ne,A.gravitationForceY=-this.gravityConstant*le)):(H=U.getEstimatedSize()*this.compoundGravityRangeFactor,(j>H||ee>H)&&(A.gravitationForceX=-this.gravityConstant*ne*this.compoundGravityConstant,A.gravitationForceY=-this.gravityConstant*le*this.compoundGravityConstant))},P.prototype.isConverged=function(){var A,U=!1;return this.totalIterations>this.maxIterations/3&&(U=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),A=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,A||U},P.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},P.prototype.calcNoOfChildrenForAllNodes=function(){for(var A,U=this.graphManager.getAllNodes(),$=0;$<U.length;$++)A=U[$],A.noOfChildren=A.getNoOfChildren()},P.prototype.calcGrid=function(A){var U=0,$=0;U=parseInt(Math.ceil((A.getRight()-A.getLeft())/this.repulsionRange)),$=parseInt(Math.ceil((A.getBottom()-A.getTop())/this.repulsionRange));for(var Q=new Array(U),ne=0;ne<U;ne++)Q[ne]=new Array($);for(var ne=0;ne<U;ne++)for(var le=0;le<$;le++)Q[ne][le]=new Array;return Q},P.prototype.addNodeToGrid=function(A,U,$){var Q=0,ne=0,le=0,j=0;Q=parseInt(Math.floor((A.getRect().x-U)/this.repulsionRange)),ne=parseInt(Math.floor((A.getRect().width+A.getRect().x-U)/this.repulsionRange)),le=parseInt(Math.floor((A.getRect().y-$)/this.repulsionRange)),j=parseInt(Math.floor((A.getRect().height+A.getRect().y-$)/this.repulsionRange));for(var ee=Q;ee<=ne;ee++)for(var H=le;H<=j;H++)this.grid[ee][H].push(A),A.setGridCoordinates(Q,ne,le,j)},P.prototype.updateGrid=function(){var A,U,$=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),A=0;A<$.length;A++)U=$[A],this.addNodeToGrid(U,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},P.prototype.calculateRepulsionForceOfANode=function(A,U,$,Q){if(this.totalIterations%x.GRID_CALCULATION_CHECK_PERIOD==1&&$||Q){var ne=new Set;A.surrounding=new Array;for(var le,j=this.grid,ee=A.startX-1;ee<A.finishX+2;ee++)for(var H=A.startY-1;H<A.finishY+2;H++)if(!(ee<0||H<0||ee>=j.length||H>=j[0].length)){for(var te=0;te<j[ee][H].length;te++)if(le=j[ee][H][te],!(A.getOwner()!=le.getOwner()||A==le)&&!U.has(le)&&!ne.has(le)){var S=Math.abs(A.getCenterX()-le.getCenterX())-(A.getWidth()/2+le.getWidth()/2),V=Math.abs(A.getCenterY()-le.getCenterY())-(A.getHeight()/2+le.getHeight()/2);S<=this.repulsionRange&&V<=this.repulsionRange&&ne.add(le)}}A.surrounding=[].concat(C(ne))}for(ee=0;ee<A.surrounding.length;ee++)this.calcRepulsionForce(A,A.surrounding[ee])},P.prototype.calcRepulsionRange=function(){return 0},_.exports=P},function(_,ve,J){var C=J(1),T=J(7);function x(z,Y,P){C.call(this,z,Y,P),this.idealLength=T.DEFAULT_EDGE_LENGTH}x.prototype=Object.create(C.prototype);for(var N in C)x[N]=C[N];_.exports=x},function(_,ve,J){var C=J(3);function T(N,z,Y,P){C.call(this,N,z,Y,P),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}T.prototype=Object.create(C.prototype);for(var x in C)T[x]=C[x];T.prototype.setGridCoordinates=function(N,z,Y,P){this.startX=N,this.finishX=z,this.startY=Y,this.finishY=P},_.exports=T},function(_,ve,J){function C(T,x){this.width=0,this.height=0,T!==null&&x!==null&&(this.height=x,this.width=T)}C.prototype.getWidth=function(){return this.width},C.prototype.setWidth=function(T){this.width=T},C.prototype.getHeight=function(){return this.height},C.prototype.setHeight=function(T){this.height=T},_.exports=C},function(_,ve,J){var C=J(14);function T(){this.map={},this.keys=[]}T.prototype.put=function(x,N){var z=C.createID(x);this.contains(z)||(this.map[z]=N,this.keys.push(x))},T.prototype.contains=function(x){return C.createID(x),this.map[x]!=null},T.prototype.get=function(x){var N=C.createID(x);return this.map[N]},T.prototype.keySet=function(){return this.keys},_.exports=T},function(_,ve,J){var C=J(14);function T(){this.set={}}T.prototype.add=function(x){var N=C.createID(x);this.contains(N)||(this.set[N]=x)},T.prototype.remove=function(x){delete this.set[C.createID(x)]},T.prototype.clear=function(){this.set={}},T.prototype.contains=function(x){return this.set[C.createID(x)]==x},T.prototype.isEmpty=function(){return this.size()===0},T.prototype.size=function(){return Object.keys(this.set).length},T.prototype.addAllTo=function(x){for(var N=Object.keys(this.set),z=N.length,Y=0;Y<z;Y++)x.push(this.set[N[Y]])},T.prototype.size=function(){return Object.keys(this.set).length},T.prototype.addAll=function(x){for(var N=x.length,z=0;z<N;z++){var Y=x[z];this.add(Y)}},_.exports=T},function(_,ve,J){var C=function(){function z(Y,P){for(var Z=0;Z<P.length;Z++){var A=P[Z];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(Y,A.key,A)}}return function(Y,P,Z){return P&&z(Y.prototype,P),Z&&z(Y,Z),Y}}();function T(z,Y){if(!(z instanceof Y))throw new TypeError("Cannot call a class as a function")}var x=J(11),N=function(){function z(Y,P){T(this,z),(P!==null||P!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var Z=void 0;Y instanceof x?Z=Y.size():Z=Y.length,this._quicksort(Y,0,Z-1)}return C(z,[{key:"_quicksort",value:function(P,Z,A){if(Z<A){var U=this._partition(P,Z,A);this._quicksort(P,Z,U),this._quicksort(P,U+1,A)}}},{key:"_partition",value:function(P,Z,A){for(var U=this._get(P,Z),$=Z,Q=A;;){for(;this.compareFunction(U,this._get(P,Q));)Q--;for(;this.compareFunction(this._get(P,$),U);)$++;if($<Q)this._swap(P,$,Q),$++,Q--;else return Q}}},{key:"_get",value:function(P,Z){return P instanceof x?P.get_object_at(Z):P[Z]}},{key:"_set",value:function(P,Z,A){P instanceof x?P.set_object_at(Z,A):P[Z]=A}},{key:"_swap",value:function(P,Z,A){var U=this._get(P,Z);this._set(P,Z,this._get(P,A)),this._set(P,A,U)}},{key:"_defaultCompareFunction",value:function(P,Z){return Z>P}}]),z}();_.exports=N},function(_,ve,J){var C=function(){function N(z,Y){for(var P=0;P<Y.length;P++){var Z=Y[P];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(z,Z.key,Z)}}return function(z,Y,P){return Y&&N(z.prototype,Y),P&&N(z,P),z}}();function T(N,z){if(!(N instanceof z))throw new TypeError("Cannot call a class as a function")}var x=function(){function N(z,Y){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;T(this,N),this.sequence1=z,this.sequence2=Y,this.match_score=P,this.mismatch_penalty=Z,this.gap_penalty=A,this.iMax=z.length+1,this.jMax=Y.length+1,this.grid=new Array(this.iMax);for(var U=0;U<this.iMax;U++){this.grid[U]=new Array(this.jMax);for(var $=0;$<this.jMax;$++)this.grid[U][$]=0}this.tracebackGrid=new Array(this.iMax);for(var Q=0;Q<this.iMax;Q++){this.tracebackGrid[Q]=new Array(this.jMax);for(var ne=0;ne<this.jMax;ne++)this.tracebackGrid[Q][ne]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return C(N,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var Y=1;Y<this.jMax;Y++)this.grid[0][Y]=this.grid[0][Y-1]+this.gap_penalty,this.tracebackGrid[0][Y]=[!1,!1,!0];for(var P=1;P<this.iMax;P++)this.grid[P][0]=this.grid[P-1][0]+this.gap_penalty,this.tracebackGrid[P][0]=[!1,!0,!1];for(var Z=1;Z<this.iMax;Z++)for(var A=1;A<this.jMax;A++){var U=void 0;this.sequence1[Z-1]===this.sequence2[A-1]?U=this.grid[Z-1][A-1]+this.match_score:U=this.grid[Z-1][A-1]+this.mismatch_penalty;var $=this.grid[Z-1][A]+this.gap_penalty,Q=this.grid[Z][A-1]+this.gap_penalty,ne=[U,$,Q],le=this.arrayAllMaxIndexes(ne);this.grid[Z][A]=ne[le[0]],this.tracebackGrid[Z][A]=[le.includes(0),le.includes(1),le.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var Y=[];for(Y.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});Y[0];){var P=Y[0],Z=this.tracebackGrid[P.pos[0]][P.pos[1]];Z[0]&&Y.push({pos:[P.pos[0]-1,P.pos[1]-1],seq1:this.sequence1[P.pos[0]-1]+P.seq1,seq2:this.sequence2[P.pos[1]-1]+P.seq2}),Z[1]&&Y.push({pos:[P.pos[0]-1,P.pos[1]],seq1:this.sequence1[P.pos[0]-1]+P.seq1,seq2:"-"+P.seq2}),Z[2]&&Y.push({pos:[P.pos[0],P.pos[1]-1],seq1:"-"+P.seq1,seq2:this.sequence2[P.pos[1]-1]+P.seq2}),P.pos[0]===0&&P.pos[1]===0&&this.alignments.push({sequence1:P.seq1,sequence2:P.seq2}),Y.shift()}return this.alignments}},{key:"getAllIndexes",value:function(Y,P){for(var Z=[],A=-1;(A=Y.indexOf(P,A+1))!==-1;)Z.push(A);return Z}},{key:"arrayAllMaxIndexes",value:function(Y){return this.getAllIndexes(Y,Math.max.apply(null,Y))}}]),N}();_.exports=x},function(_,ve,J){var C=function(){};C.FDLayout=J(18),C.FDLayoutConstants=J(7),C.FDLayoutEdge=J(19),C.FDLayoutNode=J(20),C.DimensionD=J(21),C.HashMap=J(22),C.HashSet=J(23),C.IGeometry=J(8),C.IMath=J(9),C.Integer=J(10),C.Point=J(12),C.PointD=J(4),C.RandomSeed=J(16),C.RectangleD=J(13),C.Transform=J(17),C.UniqueIDGeneretor=J(14),C.Quicksort=J(24),C.LinkedList=J(11),C.LGraphObject=J(2),C.LGraph=J(5),C.LEdge=J(1),C.LGraphManager=J(6),C.LNode=J(3),C.Layout=J(15),C.LayoutConstants=J(0),C.NeedlemanWunsch=J(25),_.exports=C},function(_,ve,J){function C(){this.listeners=[]}var T=C.prototype;T.addListener=function(x,N){this.listeners.push({event:x,callback:N})},T.removeListener=function(x,N){for(var z=this.listeners.length;z>=0;z--){var Y=this.listeners[z];Y.event===x&&Y.callback===N&&this.listeners.splice(z,1)}},T.emit=function(x,N){for(var z=0;z<this.listeners.length;z++){var Y=this.listeners[z];x===Y.event&&Y.callback(N)}},_.exports=C}])})}(Zi)),Zi.exports}var $l;function zp(){return $l||($l=1,function(de,Pe){(function(ve,J){de.exports=J(Gp())})(Ca,function(_){return function(ve){var J={};function C(T){if(J[T])return J[T].exports;var x=J[T]={i:T,l:!1,exports:{}};return ve[T].call(x.exports,x,x.exports,C),x.l=!0,x.exports}return C.m=ve,C.c=J,C.i=function(T){return T},C.d=function(T,x,N){C.o(T,x)||Object.defineProperty(T,x,{configurable:!1,enumerable:!0,get:N})},C.n=function(T){var x=T&&T.__esModule?function(){return T.default}:function(){return T};return C.d(x,"a",x),x},C.o=function(T,x){return Object.prototype.hasOwnProperty.call(T,x)},C.p="",C(C.s=7)}([function(ve,J){ve.exports=_},function(ve,J,C){var T=C(0).FDLayoutConstants;function x(){}for(var N in T)x[N]=T[N];x.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,x.DEFAULT_RADIAL_SEPARATION=T.DEFAULT_EDGE_LENGTH,x.DEFAULT_COMPONENT_SEPERATION=60,x.TILE=!0,x.TILING_PADDING_VERTICAL=10,x.TILING_PADDING_HORIZONTAL=10,x.TREE_REDUCTION_ON_INCREMENTAL=!1,ve.exports=x},function(ve,J,C){var T=C(0).FDLayoutEdge;function x(z,Y,P){T.call(this,z,Y,P)}x.prototype=Object.create(T.prototype);for(var N in T)x[N]=T[N];ve.exports=x},function(ve,J,C){var T=C(0).LGraph;function x(z,Y,P){T.call(this,z,Y,P)}x.prototype=Object.create(T.prototype);for(var N in T)x[N]=T[N];ve.exports=x},function(ve,J,C){var T=C(0).LGraphManager;function x(z){T.call(this,z)}x.prototype=Object.create(T.prototype);for(var N in T)x[N]=T[N];ve.exports=x},function(ve,J,C){var T=C(0).FDLayoutNode,x=C(0).IMath;function N(Y,P,Z,A){T.call(this,Y,P,Z,A)}N.prototype=Object.create(T.prototype);for(var z in T)N[z]=T[z];N.prototype.move=function(){var Y=this.graphManager.getLayout();this.displacementX=Y.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=Y.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>Y.coolingFactor*Y.maxNodeDisplacement&&(this.displacementX=Y.coolingFactor*Y.maxNodeDisplacement*x.sign(this.displacementX)),Math.abs(this.displacementY)>Y.coolingFactor*Y.maxNodeDisplacement&&(this.displacementY=Y.coolingFactor*Y.maxNodeDisplacement*x.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),Y.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},N.prototype.propogateDisplacementToChildren=function(Y,P){for(var Z=this.getChild().getNodes(),A,U=0;U<Z.length;U++)A=Z[U],A.getChild()==null?(A.moveBy(Y,P),A.displacementX+=Y,A.displacementY+=P):A.propogateDisplacementToChildren(Y,P)},N.prototype.setPred1=function(Y){this.pred1=Y},N.prototype.getPred1=function(){return pred1},N.prototype.getPred2=function(){return pred2},N.prototype.setNext=function(Y){this.next=Y},N.prototype.getNext=function(){return next},N.prototype.setProcessed=function(Y){this.processed=Y},N.prototype.isProcessed=function(){return processed},ve.exports=N},function(ve,J,C){var T=C(0).FDLayout,x=C(4),N=C(3),z=C(5),Y=C(2),P=C(1),Z=C(0).FDLayoutConstants,A=C(0).LayoutConstants,U=C(0).Point,$=C(0).PointD,Q=C(0).Layout,ne=C(0).Integer,le=C(0).IGeometry,j=C(0).LGraph,ee=C(0).Transform;function H(){T.call(this),this.toBeTiled={}}H.prototype=Object.create(T.prototype);for(var te in T)H[te]=T[te];H.prototype.newGraphManager=function(){var S=new x(this);return this.graphManager=S,S},H.prototype.newGraph=function(S){return new N(null,this.graphManager,S)},H.prototype.newNode=function(S){return new z(this.graphManager,S)},H.prototype.newEdge=function(S){return new Y(null,null,S)},H.prototype.initParameters=function(){T.prototype.initParameters.call(this,arguments),this.isSubLayout||(P.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=P.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=P.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=Z.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=Z.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=Z.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=Z.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=Z.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=Z.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/Z.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=Z.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},H.prototype.layout=function(){var S=A.DEFAULT_CREATE_BENDS_AS_NEEDED;return S&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},H.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(P.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var V=new Set(this.getAllNodes()),R=this.nodesWithGravity.filter(function(pe){return V.has(pe)});this.graphManager.setAllNodesToApplyGravitation(R)}}else{var S=this.getFlatForest();if(S.length>0)this.positionNodesRadially(S);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var V=new Set(this.getAllNodes()),R=this.nodesWithGravity.filter(function(q){return V.has(q)});this.graphManager.setAllNodesToApplyGravitation(R),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},H.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%Z.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var S=new Set(this.getAllNodes()),V=this.nodesWithGravity.filter(function(he){return S.has(he)});this.graphManager.setAllNodesToApplyGravitation(V),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=Z.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=Z.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var R=!this.isTreeGrowing&&!this.isGrowthFinished,q=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(R,q),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},H.prototype.getPositionsData=function(){for(var S=this.graphManager.getAllNodes(),V={},R=0;R<S.length;R++){var q=S[R].rect,he=S[R].id;V[he]={id:he,x:q.getCenterX(),y:q.getCenterY(),w:q.width,h:q.height}}return V},H.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var S=!1;if(Z.ANIMATE==="during")this.emit("layoutstarted");else{for(;!S;)S=this.tick();this.graphManager.updateBounds()}},H.prototype.calculateNodesToApplyGravitationTo=function(){var S=[],V,R=this.graphManager.getGraphs(),q=R.length,he;for(he=0;he<q;he++)V=R[he],V.updateConnected(),V.isConnected||(S=S.concat(V.getNodes()));return S},H.prototype.createBendpoints=function(){var S=[];S=S.concat(this.graphManager.getAllEdges());var V=new Set,R;for(R=0;R<S.length;R++){var q=S[R];if(!V.has(q)){var he=q.getSource(),pe=q.getTarget();if(he==pe)q.getBendpoints().push(new $),q.getBendpoints().push(new $),this.createDummyNodesForBendpoints(q),V.add(q);else{var Ae=[];if(Ae=Ae.concat(he.getEdgeListToNode(pe)),Ae=Ae.concat(pe.getEdgeListToNode(he)),!V.has(Ae[0])){if(Ae.length>1){var Ne;for(Ne=0;Ne<Ae.length;Ne++){var Ye=Ae[Ne];Ye.getBendpoints().push(new $),this.createDummyNodesForBendpoints(Ye)}}Ae.forEach(function(at){V.add(at)})}}}if(V.size==S.length)break}},H.prototype.positionNodesRadially=function(S){for(var V=new U(0,0),R=Math.ceil(Math.sqrt(S.length)),q=0,he=0,pe=0,Ae=new $(0,0),Ne=0;Ne<S.length;Ne++){Ne%R==0&&(pe=0,he=q,Ne!=0&&(he+=P.DEFAULT_COMPONENT_SEPERATION),q=0);var Ye=S[Ne],at=Q.findCenterOfTree(Ye);V.x=pe,V.y=he,Ae=H.radialLayout(Ye,at,V),Ae.y>q&&(q=Math.floor(Ae.y)),pe=Math.floor(Ae.x+P.DEFAULT_COMPONENT_SEPERATION)}this.transform(new $(A.WORLD_CENTER_X-Ae.x/2,A.WORLD_CENTER_Y-Ae.y/2))},H.radialLayout=function(S,V,R){var q=Math.max(this.maxDiagonalInTree(S),P.DEFAULT_RADIAL_SEPARATION);H.branchRadialLayout(V,null,0,359,0,q);var he=j.calculateBounds(S),pe=new ee;pe.setDeviceOrgX(he.getMinX()),pe.setDeviceOrgY(he.getMinY()),pe.setWorldOrgX(R.x),pe.setWorldOrgY(R.y);for(var Ae=0;Ae<S.length;Ae++){var Ne=S[Ae];Ne.transform(pe)}var Ye=new $(he.getMaxX(),he.getMaxY());return pe.inverseTransformPoint(Ye)},H.branchRadialLayout=function(S,V,R,q,he,pe){var Ae=(q-R+1)/2;Ae<0&&(Ae+=180);var Ne=(Ae+R)%360,Ye=Ne*le.TWO_PI/360,at=he*Math.cos(Ye),dt=he*Math.sin(Ye);S.setCenter(at,dt);var Re=[];Re=Re.concat(S.getEdges());var Ve=Re.length;V!=null&&Ve--;for(var Ze=0,nt=Re.length,ft,it=S.getEdgesBetween(V);it.length>1;){var tt=it[0];it.splice(0,1);var yt=Re.indexOf(tt);yt>=0&&Re.splice(yt,1),nt--,Ve--}V!=null?ft=(Re.indexOf(it[0])+1)%nt:ft=0;for(var Et=Math.abs(q-R)/Ve,Pt=ft;Ze!=Ve;Pt=++Pt%nt){var gt=Re[Pt].getOtherEnd(S);if(gt!=V){var dr=(R+Ze*Et)%360,qt=(dr+Et)%360;H.branchRadialLayout(gt,S,dr,qt,he+pe,pe),Ze++}}},H.maxDiagonalInTree=function(S){for(var V=ne.MIN_VALUE,R=0;R<S.length;R++){var q=S[R],he=q.getDiagonal();he>V&&(V=he)}return V},H.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},H.prototype.groupZeroDegreeMembers=function(){var S=this,V={};this.memberGroups={},this.idToDummyNode={};for(var R=[],q=this.graphManager.getAllNodes(),he=0;he<q.length;he++){var pe=q[he],Ae=pe.getParent();this.getNodeDegreeWithChildren(pe)===0&&(Ae.id==null||!this.getToBeTiled(Ae))&&R.push(pe)}for(var he=0;he<R.length;he++){var pe=R[he],Ne=pe.getParent().id;typeof V[Ne]>"u"&&(V[Ne]=[]),V[Ne]=V[Ne].concat(pe)}Object.keys(V).forEach(function(Ye){if(V[Ye].length>1){var at="DummyCompound_"+Ye;S.memberGroups[at]=V[Ye];var dt=V[Ye][0].getParent(),Re=new z(S.graphManager);Re.id=at,Re.paddingLeft=dt.paddingLeft||0,Re.paddingRight=dt.paddingRight||0,Re.paddingBottom=dt.paddingBottom||0,Re.paddingTop=dt.paddingTop||0,S.idToDummyNode[at]=Re;var Ve=S.getGraphManager().add(S.newGraph(),Re),Ze=dt.getChild();Ze.add(Re);for(var nt=0;nt<V[Ye].length;nt++){var ft=V[Ye][nt];Ze.remove(ft),Ve.add(ft)}}})},H.prototype.clearCompounds=function(){var S={},V={};this.performDFSOnCompounds();for(var R=0;R<this.compoundOrder.length;R++)V[this.compoundOrder[R].id]=this.compoundOrder[R],S[this.compoundOrder[R].id]=[].concat(this.compoundOrder[R].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[R].getChild()),this.compoundOrder[R].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(S,V)},H.prototype.clearZeroDegreeMembers=function(){var S=this,V=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(R){var q=S.idToDummyNode[R];V[R]=S.tileNodes(S.memberGroups[R],q.paddingLeft+q.paddingRight),q.rect.width=V[R].width,q.rect.height=V[R].height})},H.prototype.repopulateCompounds=function(){for(var S=this.compoundOrder.length-1;S>=0;S--){var V=this.compoundOrder[S],R=V.id,q=V.paddingLeft,he=V.paddingTop;this.adjustLocations(this.tiledMemberPack[R],V.rect.x,V.rect.y,q,he)}},H.prototype.repopulateZeroDegreeMembers=function(){var S=this,V=this.tiledZeroDegreePack;Object.keys(V).forEach(function(R){var q=S.idToDummyNode[R],he=q.paddingLeft,pe=q.paddingTop;S.adjustLocations(V[R],q.rect.x,q.rect.y,he,pe)})},H.prototype.getToBeTiled=function(S){var V=S.id;if(this.toBeTiled[V]!=null)return this.toBeTiled[V];var R=S.getChild();if(R==null)return this.toBeTiled[V]=!1,!1;for(var q=R.getNodes(),he=0;he<q.length;he++){var pe=q[he];if(this.getNodeDegree(pe)>0)return this.toBeTiled[V]=!1,!1;if(pe.getChild()==null){this.toBeTiled[pe.id]=!1;continue}if(!this.getToBeTiled(pe))return this.toBeTiled[V]=!1,!1}return this.toBeTiled[V]=!0,!0},H.prototype.getNodeDegree=function(S){S.id;for(var V=S.getEdges(),R=0,q=0;q<V.length;q++){var he=V[q];he.getSource().id!==he.getTarget().id&&(R=R+1)}return R},H.prototype.getNodeDegreeWithChildren=function(S){var V=this.getNodeDegree(S);if(S.getChild()==null)return V;for(var R=S.getChild().getNodes(),q=0;q<R.length;q++){var he=R[q];V+=this.getNodeDegreeWithChildren(he)}return V},H.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},H.prototype.fillCompexOrderByDFS=function(S){for(var V=0;V<S.length;V++){var R=S[V];R.getChild()!=null&&this.fillCompexOrderByDFS(R.getChild().getNodes()),this.getToBeTiled(R)&&this.compoundOrder.push(R)}},H.prototype.adjustLocations=function(S,V,R,q,he){V+=q,R+=he;for(var pe=V,Ae=0;Ae<S.rows.length;Ae++){var Ne=S.rows[Ae];V=pe;for(var Ye=0,at=0;at<Ne.length;at++){var dt=Ne[at];dt.rect.x=V,dt.rect.y=R,V+=dt.rect.width+S.horizontalPadding,dt.rect.height>Ye&&(Ye=dt.rect.height)}R+=Ye+S.verticalPadding}},H.prototype.tileCompoundMembers=function(S,V){var R=this;this.tiledMemberPack=[],Object.keys(S).forEach(function(q){var he=V[q];R.tiledMemberPack[q]=R.tileNodes(S[q],he.paddingLeft+he.paddingRight),he.rect.width=R.tiledMemberPack[q].width,he.rect.height=R.tiledMemberPack[q].height})},H.prototype.tileNodes=function(S,V){var R=P.TILING_PADDING_VERTICAL,q=P.TILING_PADDING_HORIZONTAL,he={rows:[],rowWidth:[],rowHeight:[],width:0,height:V,verticalPadding:R,horizontalPadding:q};S.sort(function(Ne,Ye){return Ne.rect.width*Ne.rect.height>Ye.rect.width*Ye.rect.height?-1:Ne.rect.width*Ne.rect.height<Ye.rect.width*Ye.rect.height?1:0});for(var pe=0;pe<S.length;pe++){var Ae=S[pe];he.rows.length==0?this.insertNodeToRow(he,Ae,0,V):this.canAddHorizontal(he,Ae.rect.width,Ae.rect.height)?this.insertNodeToRow(he,Ae,this.getShortestRowIndex(he),V):this.insertNodeToRow(he,Ae,he.rows.length,V),this.shiftToLastRow(he)}return he},H.prototype.insertNodeToRow=function(S,V,R,q){var he=q;if(R==S.rows.length){var pe=[];S.rows.push(pe),S.rowWidth.push(he),S.rowHeight.push(0)}var Ae=S.rowWidth[R]+V.rect.width;S.rows[R].length>0&&(Ae+=S.horizontalPadding),S.rowWidth[R]=Ae,S.width<Ae&&(S.width=Ae);var Ne=V.rect.height;R>0&&(Ne+=S.verticalPadding);var Ye=0;Ne>S.rowHeight[R]&&(Ye=S.rowHeight[R],S.rowHeight[R]=Ne,Ye=S.rowHeight[R]-Ye),S.height+=Ye,S.rows[R].push(V)},H.prototype.getShortestRowIndex=function(S){for(var V=-1,R=Number.MAX_VALUE,q=0;q<S.rows.length;q++)S.rowWidth[q]<R&&(V=q,R=S.rowWidth[q]);return V},H.prototype.getLongestRowIndex=function(S){for(var V=-1,R=Number.MIN_VALUE,q=0;q<S.rows.length;q++)S.rowWidth[q]>R&&(V=q,R=S.rowWidth[q]);return V},H.prototype.canAddHorizontal=function(S,V,R){var q=this.getShortestRowIndex(S);if(q<0)return!0;var he=S.rowWidth[q];if(he+S.horizontalPadding+V<=S.width)return!0;var pe=0;S.rowHeight[q]<R&&q>0&&(pe=R+S.verticalPadding-S.rowHeight[q]);var Ae;S.width-he>=V+S.horizontalPadding?Ae=(S.height+pe)/(he+V+S.horizontalPadding):Ae=(S.height+pe)/S.width,pe=R+S.verticalPadding;var Ne;return S.width<V?Ne=(S.height+pe)/V:Ne=(S.height+pe)/S.width,Ne<1&&(Ne=1/Ne),Ae<1&&(Ae=1/Ae),Ae<Ne},H.prototype.shiftToLastRow=function(S){var V=this.getLongestRowIndex(S),R=S.rowWidth.length-1,q=S.rows[V],he=q[q.length-1],pe=he.width+S.horizontalPadding;if(S.width-S.rowWidth[R]>pe&&V!=R){q.splice(-1,1),S.rows[R].push(he),S.rowWidth[V]=S.rowWidth[V]-pe,S.rowWidth[R]=S.rowWidth[R]+pe,S.width=S.rowWidth[instance.getLongestRowIndex(S)];for(var Ae=Number.MIN_VALUE,Ne=0;Ne<q.length;Ne++)q[Ne].height>Ae&&(Ae=q[Ne].height);V>0&&(Ae+=S.verticalPadding);var Ye=S.rowHeight[V]+S.rowHeight[R];S.rowHeight[V]=Ae,S.rowHeight[R]<he.height+S.verticalPadding&&(S.rowHeight[R]=he.height+S.verticalPadding);var at=S.rowHeight[V]+S.rowHeight[R];S.height+=at-Ye,this.shiftToLastRow(S)}},H.prototype.tilingPreLayout=function(){P.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},H.prototype.tilingPostLayout=function(){P.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},H.prototype.reduceTrees=function(){for(var S=[],V=!0,R;V;){var q=this.graphManager.getAllNodes(),he=[];V=!1;for(var pe=0;pe<q.length;pe++)R=q[pe],R.getEdges().length==1&&!R.getEdges()[0].isInterGraph&&R.getChild()==null&&(he.push([R,R.getEdges()[0],R.getOwner()]),V=!0);if(V==!0){for(var Ae=[],Ne=0;Ne<he.length;Ne++)he[Ne][0].getEdges().length==1&&(Ae.push(he[Ne]),he[Ne][0].getOwner().remove(he[Ne][0]));S.push(Ae),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=S},H.prototype.growTree=function(S){for(var V=S.length,R=S[V-1],q,he=0;he<R.length;he++)q=R[he],this.findPlaceforPrunedNode(q),q[2].add(q[0]),q[2].add(q[1],q[1].source,q[1].target);S.splice(S.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},H.prototype.findPlaceforPrunedNode=function(S){var V,R,q=S[0];q==S[1].source?R=S[1].target:R=S[1].source;var he=R.startX,pe=R.finishX,Ae=R.startY,Ne=R.finishY,Ye=0,at=0,dt=0,Re=0,Ve=[Ye,dt,at,Re];if(Ae>0)for(var Ze=he;Ze<=pe;Ze++)Ve[0]+=this.grid[Ze][Ae-1].length+this.grid[Ze][Ae].length-1;if(pe<this.grid.length-1)for(var Ze=Ae;Ze<=Ne;Ze++)Ve[1]+=this.grid[pe+1][Ze].length+this.grid[pe][Ze].length-1;if(Ne<this.grid[0].length-1)for(var Ze=he;Ze<=pe;Ze++)Ve[2]+=this.grid[Ze][Ne+1].length+this.grid[Ze][Ne].length-1;if(he>0)for(var Ze=Ae;Ze<=Ne;Ze++)Ve[3]+=this.grid[he-1][Ze].length+this.grid[he][Ze].length-1;for(var nt=ne.MAX_VALUE,ft,it,tt=0;tt<Ve.length;tt++)Ve[tt]<nt?(nt=Ve[tt],ft=1,it=tt):Ve[tt]==nt&&ft++;if(ft==3&&nt==0)Ve[0]==0&&Ve[1]==0&&Ve[2]==0?V=1:Ve[0]==0&&Ve[1]==0&&Ve[3]==0?V=0:Ve[0]==0&&Ve[2]==0&&Ve[3]==0?V=3:Ve[1]==0&&Ve[2]==0&&Ve[3]==0&&(V=2);else if(ft==2&&nt==0){var yt=Math.floor(Math.random()*2);Ve[0]==0&&Ve[1]==0?yt==0?V=0:V=1:Ve[0]==0&&Ve[2]==0?yt==0?V=0:V=2:Ve[0]==0&&Ve[3]==0?yt==0?V=0:V=3:Ve[1]==0&&Ve[2]==0?yt==0?V=1:V=2:Ve[1]==0&&Ve[3]==0?yt==0?V=1:V=3:yt==0?V=2:V=3}else if(ft==4&&nt==0){var yt=Math.floor(Math.random()*4);V=yt}else V=it;V==0?q.setCenter(R.getCenterX(),R.getCenterY()-R.getHeight()/2-Z.DEFAULT_EDGE_LENGTH-q.getHeight()/2):V==1?q.setCenter(R.getCenterX()+R.getWidth()/2+Z.DEFAULT_EDGE_LENGTH+q.getWidth()/2,R.getCenterY()):V==2?q.setCenter(R.getCenterX(),R.getCenterY()+R.getHeight()/2+Z.DEFAULT_EDGE_LENGTH+q.getHeight()/2):q.setCenter(R.getCenterX()-R.getWidth()/2-Z.DEFAULT_EDGE_LENGTH-q.getWidth()/2,R.getCenterY())},ve.exports=H},function(ve,J,C){var T={};T.layoutBase=C(0),T.CoSEConstants=C(1),T.CoSEEdge=C(2),T.CoSEGraph=C(3),T.CoSEGraphManager=C(4),T.CoSELayout=C(6),T.CoSENode=C(5),ve.exports=T}])})}(Ki)),Ki.exports}(function(de,Pe){(function(ve,J){de.exports=J(zp())})(Ca,function(_){return function(ve){var J={};function C(T){if(J[T])return J[T].exports;var x=J[T]={i:T,l:!1,exports:{}};return ve[T].call(x.exports,x,x.exports,C),x.l=!0,x.exports}return C.m=ve,C.c=J,C.i=function(T){return T},C.d=function(T,x,N){C.o(T,x)||Object.defineProperty(T,x,{configurable:!1,enumerable:!0,get:N})},C.n=function(T){var x=T&&T.__esModule?function(){return T.default}:function(){return T};return C.d(x,"a",x),x},C.o=function(T,x){return Object.prototype.hasOwnProperty.call(T,x)},C.p="",C(C.s=1)}([function(ve,J){ve.exports=_},function(ve,J,C){var T=C(0).layoutBase.LayoutConstants,x=C(0).layoutBase.FDLayoutConstants,N=C(0).CoSEConstants,z=C(0).CoSELayout,Y=C(0).CoSENode,P=C(0).layoutBase.PointD,Z=C(0).layoutBase.DimensionD,A={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function U(le,j){var ee={};for(var H in le)ee[H]=le[H];for(var H in j)ee[H]=j[H];return ee}function $(le){this.options=U(A,le),Q(this.options)}var Q=function(j){j.nodeRepulsion!=null&&(N.DEFAULT_REPULSION_STRENGTH=x.DEFAULT_REPULSION_STRENGTH=j.nodeRepulsion),j.idealEdgeLength!=null&&(N.DEFAULT_EDGE_LENGTH=x.DEFAULT_EDGE_LENGTH=j.idealEdgeLength),j.edgeElasticity!=null&&(N.DEFAULT_SPRING_STRENGTH=x.DEFAULT_SPRING_STRENGTH=j.edgeElasticity),j.nestingFactor!=null&&(N.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=x.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=j.nestingFactor),j.gravity!=null&&(N.DEFAULT_GRAVITY_STRENGTH=x.DEFAULT_GRAVITY_STRENGTH=j.gravity),j.numIter!=null&&(N.MAX_ITERATIONS=x.MAX_ITERATIONS=j.numIter),j.gravityRange!=null&&(N.DEFAULT_GRAVITY_RANGE_FACTOR=x.DEFAULT_GRAVITY_RANGE_FACTOR=j.gravityRange),j.gravityCompound!=null&&(N.DEFAULT_COMPOUND_GRAVITY_STRENGTH=x.DEFAULT_COMPOUND_GRAVITY_STRENGTH=j.gravityCompound),j.gravityRangeCompound!=null&&(N.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=x.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=j.gravityRangeCompound),j.initialEnergyOnIncremental!=null&&(N.DEFAULT_COOLING_FACTOR_INCREMENTAL=x.DEFAULT_COOLING_FACTOR_INCREMENTAL=j.initialEnergyOnIncremental),j.quality=="draft"?T.QUALITY=0:j.quality=="proof"?T.QUALITY=2:T.QUALITY=1,N.NODE_DIMENSIONS_INCLUDE_LABELS=x.NODE_DIMENSIONS_INCLUDE_LABELS=T.NODE_DIMENSIONS_INCLUDE_LABELS=j.nodeDimensionsIncludeLabels,N.DEFAULT_INCREMENTAL=x.DEFAULT_INCREMENTAL=T.DEFAULT_INCREMENTAL=!j.randomize,N.ANIMATE=x.ANIMATE=T.ANIMATE=j.animate,N.TILE=j.tile,N.TILING_PADDING_VERTICAL=typeof j.tilingPaddingVertical=="function"?j.tilingPaddingVertical.call():j.tilingPaddingVertical,N.TILING_PADDING_HORIZONTAL=typeof j.tilingPaddingHorizontal=="function"?j.tilingPaddingHorizontal.call():j.tilingPaddingHorizontal};$.prototype.run=function(){var le,j,ee=this.options;this.idToLNode={};var H=this.layout=new z,te=this;te.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var S=H.newGraphManager();this.gm=S;var V=this.options.eles.nodes(),R=this.options.eles.edges();this.root=S.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(V),H);for(var q=0;q<R.length;q++){var he=R[q],pe=this.idToLNode[he.data("source")],Ae=this.idToLNode[he.data("target")];if(pe!==Ae&&pe.getEdgesBetween(Ae).length==0){var Ne=S.add(H.newEdge(),pe,Ae);Ne.id=he.id()}}var Ye=function(Re,Ve){typeof Re=="number"&&(Re=Ve);var Ze=Re.data("id"),nt=te.idToLNode[Ze];return{x:nt.getRect().getCenterX(),y:nt.getRect().getCenterY()}},at=function dt(){for(var Re=function(){ee.fit&&ee.cy.fit(ee.eles,ee.padding),le||(le=!0,te.cy.one("layoutready",ee.ready),te.cy.trigger({type:"layoutready",layout:te}))},Ve=te.options.refresh,Ze,nt=0;nt<Ve&&!Ze;nt++)Ze=te.stopped||te.layout.tick();if(Ze){H.checkLayoutSuccess()&&!H.isSubLayout&&H.doPostLayout(),H.tilingPostLayout&&H.tilingPostLayout(),H.isLayoutFinished=!0,te.options.eles.nodes().positions(Ye),Re(),te.cy.one("layoutstop",te.options.stop),te.cy.trigger({type:"layoutstop",layout:te}),j&&cancelAnimationFrame(j),le=!1;return}var ft=te.layout.getPositionsData();ee.eles.nodes().positions(function(it,tt){if(typeof it=="number"&&(it=tt),!it.isParent()){for(var yt=it.id(),Et=ft[yt],Pt=it;Et==null&&(Et=ft[Pt.data("parent")]||ft["DummyCompound_"+Pt.data("parent")],ft[yt]=Et,Pt=Pt.parent()[0],Pt!=null););return Et!=null?{x:Et.x,y:Et.y}:{x:it.position("x"),y:it.position("y")}}}),Re(),j=requestAnimationFrame(dt)};return H.addListener("layoutstarted",function(){te.options.animate==="during"&&(j=requestAnimationFrame(at))}),H.runLayout(),this.options.animate!=="during"&&(te.options.eles.nodes().not(":parent").layoutPositions(te,te.options,Ye),le=!1),this},$.prototype.getTopMostNodes=function(le){for(var j={},ee=0;ee<le.length;ee++)j[le[ee].id()]=!0;var H=le.filter(function(te,S){typeof te=="number"&&(te=S);for(var V=te.parent()[0];V!=null;){if(j[V.id()])return!1;V=V.parent()[0]}return!0});return H},$.prototype.processChildrenList=function(le,j,ee){for(var H=j.length,te=0;te<H;te++){var S=j[te],V=S.children(),R,q=S.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(S.outerWidth()!=null&&S.outerHeight()!=null?R=le.add(new Y(ee.graphManager,new P(S.position("x")-q.w/2,S.position("y")-q.h/2),new Z(parseFloat(q.w),parseFloat(q.h)))):R=le.add(new Y(this.graphManager)),R.id=S.data("id"),R.paddingLeft=parseInt(S.css("padding")),R.paddingTop=parseInt(S.css("padding")),R.paddingRight=parseInt(S.css("padding")),R.paddingBottom=parseInt(S.css("padding")),this.options.nodeDimensionsIncludeLabels&&S.isParent()){var he=S.boundingBox({includeLabels:!0,includeNodes:!1}).w,pe=S.boundingBox({includeLabels:!0,includeNodes:!1}).h,Ae=S.css("text-halign");R.labelWidth=he,R.labelHeight=pe,R.labelPos=Ae}if(this.idToLNode[S.data("id")]=R,isNaN(R.rect.x)&&(R.rect.x=0),isNaN(R.rect.y)&&(R.rect.y=0),V!=null&&V.length>0){var Ne;Ne=ee.getGraphManager().add(ee.newGraph(),R),this.processChildrenList(Ne,V,ee)}}},$.prototype.stop=function(){return this.stopped=!0,this};var ne=function(j){j("layout","cose-bilkent",$)};typeof cytoscape<"u"&&ne(cytoscape),ve.exports=ne}])})})(Xl);var Vp=Xl.exports;const $p=Ul(Vp),Up=12,_p=function(de,Pe,_,ve){Pe.append("path").attr("id","node-"+_.id).attr("class","node-bkg node-"+de.type2Str(_.type)).attr("d",`M0 ${_.height-5} v${-_.height+2*5} q0,-5 5,-5 h${_.width-2*5} q5,0 5,5 v${_.height-5} H0 Z`),Pe.append("line").attr("class","node-line-"+ve).attr("x1",0).attr("y1",_.height).attr("x2",_.width).attr("y2",_.height)},Yp=function(de,Pe,_){Pe.append("rect").attr("id","node-"+_.id).attr("class","node-bkg node-"+de.type2Str(_.type)).attr("height",_.height).attr("width",_.width)},Hp=function(de,Pe,_){const ve=_.width,J=_.height,C=.15*ve,T=.25*ve,x=.35*ve,N=.2*ve;Pe.append("path").attr("id","node-"+_.id).attr("class","node-bkg node-"+de.type2Str(_.type)).attr("d",`M0 0 a${C},${C} 0 0,1 ${ve*.25},${-1*ve*.1}
a${x},${x} 1 0,1 ${ve*.4},${-1*ve*.1}
a${T},${T} 1 0,1 ${ve*.35},${1*ve*.2}
a${C},${C} 1 0,1 ${ve*.15},${1*J*.35}
a${N},${N} 1 0,1 ${-1*ve*.15},${1*J*.65}
a${T},${C} 1 0,1 ${-1*ve*.25},${ve*.15}
a${x},${x} 1 0,1 ${-1*ve*.5},0
a${C},${C} 1 0,1 ${-1*ve*.25},${-1*ve*.15}
a${C},${C} 1 0,1 ${-1*ve*.1},${-1*J*.35}
a${N},${N} 1 0,1 ${ve*.1},${-1*J*.65}
H0 V0 Z`)},Xp=function(de,Pe,_){const ve=_.width,J=_.height,C=.15*ve;Pe.append("path").attr("id","node-"+_.id).attr("class","node-bkg node-"+de.type2Str(_.type)).attr("d",`M0 0 a${C},${C} 1 0,0 ${ve*.25},${-1*J*.1}
a${C},${C} 1 0,0 ${ve*.25},0
a${C},${C} 1 0,0 ${ve*.25},0
a${C},${C} 1 0,0 ${ve*.25},${1*J*.1}
a${C},${C} 1 0,0 ${ve*.15},${1*J*.33}
a${C*.8},${C*.8} 1 0,0 0,${1*J*.34}
a${C},${C} 1 0,0 ${-1*ve*.15},${1*J*.33}
a${C},${C} 1 0,0 ${-1*ve*.25},${J*.15}
a${C},${C} 1 0,0 ${-1*ve*.25},0
a${C},${C} 1 0,0 ${-1*ve*.25},0
a${C},${C} 1 0,0 ${-1*ve*.25},${-1*J*.15}
a${C},${C} 1 0,0 ${-1*ve*.1},${-1*J*.33}
a${C*.8},${C*.8} 1 0,0 0,${-1*J*.34}
a${C},${C} 1 0,0 ${ve*.1},${-1*J*.33}
H0 V0 Z`)},Wp=function(de,Pe,_){Pe.append("circle").attr("id","node-"+_.id).attr("class","node-bkg node-"+de.type2Str(_.type)).attr("r",_.width/2)};function qp(de,Pe,_,ve,J){return de.insert("polygon",":first-child").attr("points",ve.map(function(C){return C.x+","+C.y}).join(" ")).attr("transform","translate("+(J.width-Pe)/2+", "+_+")")}const Kp=function(de,Pe,_){const ve=_.height,C=ve/4,T=_.width-_.padding+2*C,x=[{x:C,y:0},{x:T-C,y:0},{x:T,y:-ve/2},{x:T-C,y:-ve},{x:C,y:-ve},{x:0,y:-ve/2}];qp(Pe,T,ve,x,_)},Zp=function(de,Pe,_){Pe.append("rect").attr("id","node-"+_.id).attr("class","node-bkg node-"+de.type2Str(_.type)).attr("height",_.height).attr("rx",_.padding).attr("ry",_.padding).attr("width",_.width)},Qp=function(de,Pe,_,ve,J){const C=J.htmlLabels,T=ve%(Up-1),x=Pe.append("g");_.section=T;let N="section-"+T;T<0&&(N+=" section-root"),x.attr("class",(_.class?_.class+" ":"")+"mindmap-node "+N);const z=x.append("g"),Y=x.append("g"),P=_.descr.replace(/(<br\/*>)/g,`
`);Tp(Y,P,{useHtmlLabels:C,width:_.width,classes:"mindmap-node-label"}),C||Y.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const Z=Y.node().getBBox(),[A]=xp(J.fontSize);if(_.height=Z.height+A*1.1*.5+_.padding,_.width=Z.width+2*_.padding,_.icon)if(_.type===de.nodeType.CIRCLE)_.height+=50,_.width+=50,x.append("foreignObject").attr("height","50px").attr("width",_.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+T+" "+_.icon),Y.attr("transform","translate("+_.width/2+", "+(_.height/2-1.5*_.padding)+")");else{_.width+=50;const U=_.height;_.height=Math.max(U,60);const $=Math.abs(_.height-U);x.append("foreignObject").attr("width","60px").attr("height",_.height).attr("style","text-align: center;margin-top:"+$/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+T+" "+_.icon),Y.attr("transform","translate("+(25+_.width/2)+", "+($/2+_.padding/2)+")")}else if(C){const U=(_.width-Z.width)/2,$=(_.height-Z.height)/2;Y.attr("transform","translate("+U+", "+$+")")}else{const U=_.width/2,$=_.padding/2;Y.attr("transform","translate("+U+", "+$+")")}switch(_.type){case de.nodeType.DEFAULT:_p(de,z,_,T);break;case de.nodeType.ROUNDED_RECT:Zp(de,z,_);break;case de.nodeType.RECT:Yp(de,z,_);break;case de.nodeType.CIRCLE:z.attr("transform","translate("+_.width/2+", "+ +_.height/2+")"),Wp(de,z,_);break;case de.nodeType.CLOUD:Hp(de,z,_);break;case de.nodeType.BANG:Xp(de,z,_);break;case de.nodeType.HEXAGON:Kp(de,z,_);break}return de.setElementForId(_.id,x),_.height},Jp=function(de,Pe){const _=de.getElementById(Pe.id),ve=Pe.x||0,J=Pe.y||0;_.attr("transform","translate("+ve+","+J+")")};Hl.use($p);function Wl(de,Pe,_,ve,J){Qp(de,Pe,_,ve,J),_.children&&_.children.forEach((C,T)=>{Wl(de,Pe,C,ve<0?T:ve,J)})}function jp(de,Pe){Pe.edges().map((_,ve)=>{const J=_.data();if(_[0]._private.bodyBounds){const C=_[0]._private.rscratch;qr.trace("Edge: ",ve,J),de.insert("path").attr("d",`M ${C.startX},${C.startY} L ${C.midX},${C.midY} L${C.endX},${C.endY} `).attr("class","edge section-edge-"+J.section+" edge-depth-"+J.depth)}})}function ql(de,Pe,_,ve){Pe.add({group:"nodes",data:{id:de.id.toString(),labelText:de.descr,height:de.height,width:de.width,level:ve,nodeId:de.id,padding:de.padding,type:de.type},position:{x:de.x,y:de.y}}),de.children&&de.children.forEach(J=>{ql(J,Pe,_,ve+1),Pe.add({group:"edges",data:{id:`${de.id}_${J.id}`,source:de.id,target:J.id,depth:ve,section:J.section}})})}function ey(de,Pe){return new Promise(_=>{const ve=mp("body").append("div").attr("id","cy").attr("style","display:none"),J=Hl({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});ve.remove(),ql(de,J,Pe,0),J.nodes().forEach(function(C){C.layoutDimensions=()=>{const T=C.data();return{w:T.width,h:T.height}}}),J.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),J.ready(C=>{qr.info("Ready",C),_(J)})})}function ty(de,Pe){Pe.nodes().map((_,ve)=>{const J=_.data();J.x=_.position().x,J.y=_.position().y,Jp(de,J);const C=de.getElementById(J.nodeId);qr.info("Id:",ve,"Position: (",_.position().x,", ",_.position().y,")",J),C.attr("transform",`translate(${_.position().x-J.width/2}, ${_.position().y-J.height/2})`),C.attr("attr",`apa-${ve})`)})}const ry=async(de,Pe,_,ve)=>{var J,C;qr.debug(`Rendering mindmap diagram
`+de);const T=ve.db,x=T.getMindmap();if(!x)return;const N=Ji();N.htmlLabels=!1;const z=pp(Pe),Y=z.append("g");Y.attr("class","mindmap-edges");const P=z.append("g");P.attr("class","mindmap-nodes"),Wl(T,P,x,-1,N);const Z=await ey(x,N);jp(Y,Z),ty(T,Z),yp(void 0,z,((J=N.mindmap)==null?void 0:J.padding)??ti.mindmap.padding,((C=N.mindmap)==null?void 0:C.useMaxWidth)??ti.mindmap.useMaxWidth)},ay={draw:ry},ny=de=>{let Pe="";for(let _=0;_<de.THEME_COLOR_LIMIT;_++)de["lineColor"+_]=de["lineColor"+_]||de["cScaleInv"+_],bp(de["lineColor"+_])?de["lineColor"+_]=Ep(de["lineColor"+_],20):de["lineColor"+_]=wp(de["lineColor"+_],20);for(let _=0;_<de.THEME_COLOR_LIMIT;_++){const ve=""+(17-3*_);Pe+=`
.section-${_-1} rect, .section-${_-1} path, .section-${_-1} circle, .section-${_-1} polygon, .section-${_-1} path {
fill: ${de["cScale"+_]};
}
.section-${_-1} text {
fill: ${de["cScaleLabel"+_]};
}
.node-icon-${_-1} {
font-size: 40px;
color: ${de["cScaleLabel"+_]};
}
.section-edge-${_-1}{
stroke: ${de["cScale"+_]};
}
.edge-depth-${_-1}{
stroke-width: ${ve};
}
.section-${_-1} line {
stroke: ${de["cScaleInv"+_]} ;
stroke-width: 3;
}
.disabled, .disabled circle, .disabled text {
fill: lightgray;
}
.disabled text {
fill: #efefef;
}
`}return Pe},iy=de=>`
.edge {
stroke-width: 3;
}
${ny(de)}
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
fill: ${de.git0};
}
.section-root text {
fill: ${de.gitBranchLabel0};
}
.icon-container {
height:100%;
display: flex;
justify-content: center;
align-items: center;
}
.edge {
fill: none;
}
.mindmap-node-label {
dy: 1em;
alignment-baseline: middle;
text-anchor: middle;
dominant-baseline: middle;
text-align: center;
}
`,oy=iy,cy={db:Bp,renderer:ay,parser:Cp,styles:oy};export{cy as diagram};
import{a0 as I,a1 as un,a2 as U,a3 as Y,a4 as fn}from"./slidev/Mermaid-sWhOKcCj.js";import{i as cn}from"./init-cc95ec8e-Gi6I4Gst.js";function F(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function _(n){let t,i,r;n.length!==2?(t=F,i=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,i=n,r=n);function e(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;i(u[h],c)<0?o=h+1:l=h}while(o<l)}return o}function f(u,c,o=0,l=u.length){if(o<l){if(t(c,c)!==0)return l;do{const h=o+l>>>1;i(u[h],c)<=0?o=h+1:l=h}while(o<l)}return o}function a(u,c,o=0,l=u.length){const h=e(u,c,o,l-1);return h>o&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:e,center:a,right:f}}function mn(){return 0}function sn(n){return n===null?NaN:+n}const ln=_(F),gn=ln.right;_(sn).center;const dn=gn,yn=Math.sqrt(50),Mn=Math.sqrt(10),pn=Math.sqrt(2);function R(n,t,i){const r=(t-n)/Math.max(0,i),e=Math.floor(Math.log10(r)),f=r/Math.pow(10,e),a=f>=yn?10:f>=Mn?5:f>=pn?2:1;let u,c,o;return e<0?(o=Math.pow(10,-e)/a,u=Math.round(n*o),c=Math.round(t*o),u/o<n&&++u,c/o>t&&--c,o=-o):(o=Math.pow(10,e)*a,u=Math.round(n/o),c=Math.round(t/o),u*o<n&&++u,c*o>t&&--c),c<u&&.5<=i&&i<2?R(n,t,i*2):[u,c,o]}function wn(n,t,i){if(t=+t,n=+n,i=+i,!(i>0))return[];if(n===t)return[n];const r=t<n,[e,f,a]=r?R(t,n,i):R(n,t,i);if(!(f>=e))return[];const u=f-e+1,c=new Array(u);if(r)if(a<0)for(let o=0;o<u;++o)c[o]=(f-o)/-a;else for(let o=0;o<u;++o)c[o]=(f-o)*a;else if(a<0)for(let o=0;o<u;++o)c[o]=(e+o)/-a;else for(let o=0;o<u;++o)c[o]=(e+o)*a;return c}function L(n,t,i){return t=+t,n=+n,i=+i,R(n,t,i)[2]}function vn(n,t,i){t=+t,n=+n,i=+i;const r=t<n,e=r?L(t,n,i):L(n,t,i);return(r?-1:1)*(e<0?1/-e:e)}function Nn(n,t){t||(t=[]);var i=n?Math.min(t.length,n.length):0,r=t.slice(),e;return function(f){for(e=0;e<i;++e)r[e]=n[e]*(1-f)+t[e]*f;return r}}function kn(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function xn(n,t){var i=t?t.length:0,r=n?Math.min(i,n.length):0,e=new Array(r),f=new Array(i),a;for(a=0;a<r;++a)e[a]=C(n[a],t[a]);for(;a<i;++a)f[a]=t[a];return function(u){for(a=0;a<r;++a)f[a]=e[a](u);return f}}function An(n,t){var i=new Date;return n=+n,t=+t,function(r){return i.setTime(n*(1-r)+t*r),i}}function Sn(n,t){var i={},r={},e;(n===null||typeof n!="object")&&(n={}),(t===null||typeof t!="object")&&(t={});for(e in t)e in n?i[e]=C(n[e],t[e]):r[e]=t[e];return function(f){for(e in i)r[e]=i[e](f);return r}}function C(n,t){var i=typeof t,r;return t==null||i==="boolean"?un(t):(i==="number"?I:i==="string"?(r=U(t))?(t=r,Y):fn:t instanceof U?Y:t instanceof Date?An:kn(t)?Nn:Array.isArray(t)?xn:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Sn:I)(n,t)}function bn(n,t){return n=+n,t=+t,function(i){return Math.round(n*(1-i)+t*i)}}function jn(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((i=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var i,r=n.slice(0,i);return[r.length>1?r[0]+r.slice(2):r,+n.slice(i+1)]}function A(n){return n=E(Math.abs(n)),n?n[1]:NaN}function Pn(n,t){return function(i,r){for(var e=i.length,f=[],a=0,u=n[0],c=0;e>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(i.substring(e-=u,e+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function zn(n){return function(t){return t.replace(/[0-9]/g,function(i){return n[+i]})}}var $n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=$n.exec(n)))throw new Error("invalid format: "+n);var t;return new B({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=B.prototype;function B(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}B.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Fn(n){n:for(var t=n.length,i=1,r=-1,e;i<t;++i)switch(n[i]){case".":r=e=i;break;case"0":r===0&&(r=i),e=i;break;default:if(!+n[i])break n;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(e+1):n}var nn;function Rn(n,t){var i=E(n,t);if(!i)return n+"";var r=i[0],e=i[1],f=e-(nn=Math.max(-8,Math.min(8,Math.floor(e/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function Z(n,t){var i=E(n,t);if(!i)return n+"";var r=i[0],e=i[1];return e<0?"0."+new Array(-e).join("0")+r:r.length>e+1?r.slice(0,e+1)+"."+r.slice(e+1):r+new Array(e-r.length+2).join("0")}const H={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:jn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Z(n*100,t),r:Z,s:Rn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function J(n){return n}var K=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function En(n){var t=n.grouping===void 0||n.thousands===void 0?J:Pn(K.call(n.grouping,Number),n.thousands+""),i=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",e=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?J:zn(K.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var s=h.fill,p=h.align,y=h.sign,S=h.symbol,N=h.zero,b=h.width,T=h.comma,w=h.precision,G=h.trim,g=h.type;g==="n"?(T=!0,g="g"):H[g]||(w===void 0&&(w=12),G=!0,g="g"),(N||s==="0"&&p==="=")&&(N=!0,s="0",p="=");var en=S==="$"?i:S==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",on=S==="$"?r:/[%p]/.test(g)?a:"",O=H[g],an=/[defgprs%]/.test(g);w=w===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var v=en,d=on,k,X,j;if(g==="c")d=O(m)+d,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),G&&(m=Fn(m)),P&&+m==0&&y!=="+"&&(P=!1),v=(P?y==="("?y:u:y==="-"||y==="("?"":y)+v,d=(g==="s"?Q[8+nn/3]:"")+d+(P&&y==="("?")":""),an){for(k=-1,X=m.length;++k<X;)if(j=m.charCodeAt(k),48>j||j>57){d=(j===46?e+m.slice(k+1):m.slice(k))+d,m=m.slice(0,k);break}}}T&&!N&&(m=t(m,1/0));var z=v.length+m.length+d.length,M=z<b?new Array(b-z+1).join(s):"";switch(T&&N&&(m=t(M+m,M.length?b-d.length:1/0),M=""),p){case"<":m=v+m+d+M;break;case"=":m=v+M+m+d;break;case"^":m=M.slice(0,z=M.length>>1)+v+m+d+M.slice(z);break;default:m=M+v+m+d;break}return f(m)}return V.toString=function(){return h+""},V}function l(h,s){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(A(s)/3)))*3,S=Math.pow(10,-y),N=Q[8+y/3];return function(b){return p(S*b)+N}}return{format:o,formatPrefix:l}}var $,tn,rn;Dn({thousands:",",grouping:[3],currency:["$",""]});function Dn(n){return $=En(n),tn=$.format,rn=$.formatPrefix,$}function Tn(n){return Math.max(0,-A(Math.abs(n)))}function In(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(A(t)/3)))*3-A(Math.abs(n)))}function Ln(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,A(t)-A(n))+1}function qn(n){return function(){return n}}function Cn(n){return+n}var W=[0,1];function x(n){return n}function q(n,t){return(t-=n=+n)?function(i){return(i-n)/t}:qn(isNaN(t)?NaN:.5)}function Bn(n,t){var i;return n>t&&(i=n,n=t,t=i),function(r){return Math.max(n,Math.min(t,r))}}function Gn(n,t,i){var r=n[0],e=n[1],f=t[0],a=t[1];return e<r?(r=q(e,r),f=i(a,f)):(r=q(r,e),f=i(f,a)),function(u){return f(r(u))}}function On(n,t,i){var r=Math.min(n.length,t.length)-1,e=new Array(r),f=new Array(r),a=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++a<r;)e[a]=q(n[a],n[a+1]),f[a]=i(t[a],t[a+1]);return function(u){var c=dn(n,u,1,r)-1;return f[c](e[c](u))}}function Vn(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function Xn(){var n=W,t=W,i=C,r,e,f,a=x,u,c,o;function l(){var s=Math.min(n.length,t.length);return a!==x&&(a=Bn(n[0],n[s-1])),u=s>2?On:Gn,c=o=null,h}function h(s){return s==null||isNaN(s=+s)?f:(c||(c=u(n.map(r),t,i)))(r(a(s)))}return h.invert=function(s){return a(e((o||(o=u(t,n.map(r),I)))(s)))},h.domain=function(s){return arguments.length?(n=Array.from(s,Cn),l()):n.slice()},h.range=function(s){return arguments.length?(t=Array.from(s),l()):t.slice()},h.rangeRound=function(s){return t=Array.from(s),i=bn,l()},h.clamp=function(s){return arguments.length?(a=s?!0:x,l()):a!==x},h.interpolate=function(s){return arguments.length?(i=s,l()):i},h.unknown=function(s){return arguments.length?(f=s,h):f},function(s,p){return r=s,e=p,l()}}function Un(){return Xn()(x,x)}function Yn(n,t,i,r){var e=vn(n,t,i),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=In(e,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=Ln(e,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Tn(e))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Zn(n){var t=n.domain;return n.ticks=function(i){var r=t();return wn(r[0],r[r.length-1],i??10)},n.tickFormat=function(i,r){var e=t();return Yn(e[0],e[e.length-1],i??10,r)},n.nice=function(i){i==null&&(i=10);var r=t(),e=0,f=r.length-1,a=r[e],u=r[f],c,o,l=10;for(u<a&&(o=a,a=u,u=o,o=e,e=f,f=o);l-- >0;){if(o=L(a,u,i),o===c)return r[e]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Hn(){var n=Un();return n.copy=function(){return Vn(n,Hn())},cn.apply(n,arguments),Zn(n)}export{Vn as a,_ as b,Un as c,Hn as l,vn as t};
import{a as h}from"./array-b7dcf730-BKyUJesY.js";import{w as v,c as o}from"./path-39bad7e2-CbwjOpE9.js";import{q as d}from"./slidev/Mermaid-sWhOKcCj.js";function w(t){return t[0]}function b(t){return t[1]}function L(t,u){var s=o(!0),f=null,l=d,r=null,m=v(e);t=typeof t=="function"?t:t===void 0?w:o(t),u=typeof u=="function"?u:u===void 0?b:o(u);function e(n){var i,g=(n=h(n)).length,p,c=!1,a;for(f==null&&(r=l(a=m())),i=0;i<=g;++i)!(i<g&&s(p=n[i],i,n))===c&&((c=!c)?r.lineStart():r.lineEnd()),c&&r.point(+t(p,i,n),+u(p,i,n));if(a)return r=null,a+""||null}return e.x=function(n){return arguments.length?(t=typeof n=="function"?n:o(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:o(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:o(!!n),e):s},e.curve=function(n){return arguments.length?(l=n,f!=null&&(r=l(f)),e):l},e.context=function(n){return arguments.length?(n==null?f=r=null:r=l(f=n),e):f},e}export{L as l};
import{b as xn,a as P,f as s,G as x,c as Un,d as L,e as kn,g as En,t as zn,i as g,h as w,v as y,r as V,j as Hn,k as yn,l as Nn,m as jn,n as M,o as F,p as Jn,q as Kn,s as Zn}from"./graph-af3d5df6-B9Rrt_D8.js";import{a9 as Ln,aa as $,ab as _n,ac as Qn,ad as ne,ae as ee,af as J,ag as H,ah as Cn,ai as K,aj as re,ak as te,al as ie,am as A,an as ae,ao as In,ap as oe,aq as ue}from"./slidev/Mermaid-sWhOKcCj.js";var de=/\s/;function fe(n){for(var e=n.length;e--&&de.test(n.charAt(e)););return e}var se=/^\s+/;function ce(n){return n&&n.slice(0,fe(n)+1).replace(se,"")}var un=NaN,he=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,le=/^0o[0-7]+$/i,pe=parseInt;function we(n){if(typeof n=="number")return n;if(F(n))return un;if(A(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=A(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=ce(n);var r=ve.test(n);return r||le.test(n)?pe(n.slice(2),r?2:8):he.test(n)?un:+n}var dn=1/0,me=17976931348623157e292;function S(n){if(!n)return n===0?n:0;if(n=we(n),n===dn||n===-dn){var e=n<0?-1:1;return e*me}return n===n?n:0}function be(n){var e=S(n),r=e%1;return e===e?r?e-r:e:0}function _(n){var e=n==null?0:n.length;return e?xn(n,1):[]}function ge(n){return ne(ee(n,void 0,_),n+"")}var xe=1,ke=4;function Ee(n){return Hn(n,xe|ke)}var ye=function(){return te.Date.now()};const fn=ye;var Rn=Object.prototype,Ne=Rn.hasOwnProperty,Le=Ln(function(n,e){n=Object(n);var r=-1,t=e.length,i=t>2?e[2]:void 0;for(i&&$(e[0],e[1],i)&&(t=1);++r<t;)for(var o=e[r],a=_n(o),u=-1,d=a.length;++u<d;){var f=a[u],c=n[f];(c===void 0||Qn(c,Rn[f])&&!Ne.call(n,f))&&(n[f]=o[f])}return n});const _e=Le;function B(n){var e=n==null?0:n.length;return e?n[e-1]:void 0}function Ce(n){return function(e,r,t){var i=Object(e);if(!Cn(e)){var o=L(r);e=Kn(e),r=function(u){return o(i[u],u,i)}}var a=n(e,r,t);return a>-1?i[o?e[a]:a]:void 0}}var Ie=Math.max;function Re(n,e,r){var t=n==null?0:n.length;if(!t)return-1;var i=r==null?0:be(r);return i<0&&(i=Ie(t+i,0)),Zn(n,L(e),i)}var Te=Ce(Re);const Z=Te;function Tn(n,e){var r=-1,t=Cn(n)?Array(n.length):[];return Un(n,function(i,o,a){t[++r]=e(i,o,a)}),t}function m(n,e){var r=K(n)?P:Tn;return r(n,L(e))}function Me(n,e){return n==null?n:oe(n,yn(e),_n)}function Oe(n,e){return n&&kn(n,yn(e))}function Pe(n,e){return n>e}function Mn(n,e){return n<e}function Y(n,e){var r={};return e=L(e),kn(n,function(t,i,o){ie(r,i,e(t,i,o))}),r}function Q(n,e,r){for(var t=-1,i=n.length;++t<i;){var o=n[t],a=e(o);if(a!=null&&(u===void 0?a===a&&!F(a):r(a,u)))var u=a,d=o}return d}function k(n){return n&&n.length?Q(n,J,Pe):void 0}function R(n){return n&&n.length?Q(n,J,Mn):void 0}function nn(n,e){return n&&n.length?Q(n,L(e),Mn):void 0}function Se(n,e,r,t){if(!A(n))return n;e=Nn(e,n);for(var i=-1,o=e.length,a=o-1,u=n;u!=null&&++i<o;){var d=Jn(e[i]),f=r;if(d==="__proto__"||d==="constructor"||d==="prototype")return n;if(i!=a){var c=u[d];f=t?t(c,d,u):void 0,f===void 0&&(f=A(c)?c:ae(e[i+1])?[]:{})}In(u,d,f),u=u[d]}return n}function Fe(n,e,r){for(var t=-1,i=e.length,o={};++t<i;){var a=e[t],u=En(n,a);r(u,a)&&Se(o,Nn(a,n),u)}return o}function $e(n,e){var r=n.length;for(n.sort(e);r--;)n[r]=n[r].value;return n}function Ae(n,e){if(n!==e){var r=n!==void 0,t=n===null,i=n===n,o=F(n),a=e!==void 0,u=e===null,d=e===e,f=F(e);if(!u&&!f&&!o&&n>e||o&&a&&d&&!u&&!f||t&&a&&d||!r&&d||!i)return 1;if(!t&&!o&&!f&&n<e||f&&r&&i&&!t&&!o||u&&r&&i||!a&&i||!d)return-1}return 0}function Be(n,e,r){for(var t=-1,i=n.criteria,o=e.criteria,a=i.length,u=r.length;++t<a;){var d=Ae(i[t],o[t]);if(d){if(t>=u)return d;var f=r[t];return d*(f=="desc"?-1:1)}}return n.index-e.index}function Ge(n,e,r){e.length?e=P(e,function(o){return K(o)?function(a){return En(a,o.length===1?o[0]:o)}:o}):e=[J];var t=-1;e=P(e,re(L));var i=Tn(n,function(o,a,u){var d=P(e,function(f){return f(o)});return{criteria:d,index:++t,value:o}});return $e(i,function(o,a){return Be(o,a,r)})}function Ve(n,e){return Fe(n,e,function(r,t){return jn(n,t)})}var Ye=ge(function(n,e){return n==null?{}:Ve(n,e)});const G=Ye;var De=Math.ceil,qe=Math.max;function We(n,e,r,t){for(var i=-1,o=qe(De((e-n)/(r||1)),0),a=Array(o);o--;)a[t?o:++i]=n,n+=r;return a}function Xe(n){return function(e,r,t){return t&&typeof t!="number"&&$(e,r,t)&&(r=t=void 0),e=S(e),r===void 0?(r=e,e=0):r=S(r),t=t===void 0?e<r?1:-1:S(t),We(e,r,t,n)}}var Ue=Xe();const N=Ue;var ze=Ln(function(n,e){if(n==null)return[];var r=e.length;return r>1&&$(n,e[0],e[1])?e=[]:r>2&&$(e[0],e[1],e[2])&&(e=[e[0]]),Ge(n,xn(e,1),[])});const O=ze;var He=0;function en(n){var e=++He;return zn(n)+e}function je(n,e,r){for(var t=-1,i=n.length,o=e.length,a={};++t<i;){var u=t<o?e[t]:void 0;r(a,n[t],u)}return a}function Je(n,e){return je(n||[],e||[],In)}class Ke{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,r=e._prev;if(r!==e)return sn(r),r}enqueue(e){var r=this._sentinel;e._prev&&e._next&&sn(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r}toString(){for(var e=[],r=this._sentinel,t=r._prev;t!==r;)e.push(JSON.stringify(t,Ze)),t=t._prev;return"["+e.join(", ")+"]"}}function sn(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function Ze(n,e){if(n!=="_next"&&n!=="_prev")return e}var Qe=ue(1);function nr(n,e){if(n.nodeCount()<=1)return[];var r=rr(n,e||Qe),t=er(r.graph,r.buckets,r.zeroIdx);return _(m(t,function(i){return n.outEdges(i.v,i.w)}))}function er(n,e,r){for(var t=[],i=e[e.length-1],o=e[0],a;n.nodeCount();){for(;a=o.dequeue();)q(n,e,r,a);for(;a=i.dequeue();)q(n,e,r,a);if(n.nodeCount()){for(var u=e.length-2;u>0;--u)if(a=e[u].dequeue(),a){t=t.concat(q(n,e,r,a,!0));break}}}return t}function q(n,e,r,t,i){var o=i?[]:void 0;return s(n.inEdges(t.v),function(a){var u=n.edge(a),d=n.node(a.v);i&&o.push({v:a.v,w:a.w}),d.out-=u,j(e,r,d)}),s(n.outEdges(t.v),function(a){var u=n.edge(a),d=a.w,f=n.node(d);f.in-=u,j(e,r,f)}),n.removeNode(t.v),o}function rr(n,e){var r=new x,t=0,i=0;s(n.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),s(n.edges(),function(u){var d=r.edge(u.v,u.w)||0,f=e(u),c=d+f;r.setEdge(u.v,u.w,c),i=Math.max(i,r.node(u.v).out+=f),t=Math.max(t,r.node(u.w).in+=f)});var o=N(i+t+3).map(function(){return new Ke}),a=t+1;return s(r.nodes(),function(u){j(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function j(n,e,r){r.out?r.in?n[r.out-r.in+e].enqueue(r):n[n.length-1].enqueue(r):n[0].enqueue(r)}function tr(n){var e=n.graph().acyclicer==="greedy"?nr(n,r(n)):ir(n);s(e,function(t){var i=n.edge(t);n.removeEdge(t),i.forwardName=t.name,i.reversed=!0,n.setEdge(t.w,t.v,i,en("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function ir(n){var e=[],r={},t={};function i(o){w(t,o)||(t[o]=!0,r[o]=!0,s(n.outEdges(o),function(a){w(r,a.w)?e.push(a):i(a.w)}),delete r[o])}return s(n.nodes(),i),e}function ar(n){s(n.edges(),function(e){var r=n.edge(e);if(r.reversed){n.removeEdge(e);var t=r.forwardName;delete r.reversed,delete r.forwardName,n.setEdge(e.w,e.v,r,t)}})}function C(n,e,r,t){var i;do i=en(t);while(n.hasNode(i));return r.dummy=e,n.setNode(i,r),i}function or(n){var e=new x().setGraph(n.graph());return s(n.nodes(),function(r){e.setNode(r,n.node(r))}),s(n.edges(),function(r){var t=e.edge(r.v,r.w)||{weight:0,minlen:1},i=n.edge(r);e.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),e}function On(n){var e=new x({multigraph:n.isMultigraph()}).setGraph(n.graph());return s(n.nodes(),function(r){n.children(r).length||e.setNode(r,n.node(r))}),s(n.edges(),function(r){e.setEdge(r,n.edge(r))}),e}function cn(n,e){var r=n.x,t=n.y,i=e.x-r,o=e.y-t,a=n.width/2,u=n.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),d=u*i/o,f=u):(i<0&&(a=-a),d=a,f=a*o/i),{x:r+d,y:t+f}}function D(n){var e=m(N(Pn(n)+1),function(){return[]});return s(n.nodes(),function(r){var t=n.node(r),i=t.rank;g(i)||(e[i][t.order]=r)}),e}function ur(n){var e=R(m(n.nodes(),function(r){return n.node(r).rank}));s(n.nodes(),function(r){var t=n.node(r);w(t,"rank")&&(t.rank-=e)})}function dr(n){var e=R(m(n.nodes(),function(o){return n.node(o).rank})),r=[];s(n.nodes(),function(o){var a=n.node(o).rank-e;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=n.graph().nodeRankFactor;s(r,function(o,a){g(o)&&a%i!==0?--t:t&&s(o,function(u){n.node(u).rank+=t})})}function hn(n,e,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),C(n,"border",i,e)}function Pn(n){return k(m(n.nodes(),function(e){var r=n.node(e).rank;if(!g(r))return r}))}function fr(n,e){var r={lhs:[],rhs:[]};return s(n,function(t){e(t)?r.lhs.push(t):r.rhs.push(t)}),r}function sr(n,e){var r=fn();try{return e()}finally{console.log(n+" time: "+(fn()-r)+"ms")}}function cr(n,e){return e()}function hr(n){function e(r){var t=n.children(r),i=n.node(r);if(t.length&&s(t,e),w(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)vn(n,"borderLeft","_bl",r,i,o),vn(n,"borderRight","_br",r,i,o)}}s(n.children(),e)}function vn(n,e,r,t,i,o){var a={width:0,height:0,rank:o,borderType:e},u=i[e][o-1],d=C(n,"border",a,r);i[e][o]=d,n.setParent(d,t),u&&n.setEdge(u,d,{weight:1})}function vr(n){var e=n.graph().rankdir.toLowerCase();(e==="lr"||e==="rl")&&Sn(n)}function lr(n){var e=n.graph().rankdir.toLowerCase();(e==="bt"||e==="rl")&&pr(n),(e==="lr"||e==="rl")&&(wr(n),Sn(n))}function Sn(n){s(n.nodes(),function(e){ln(n.node(e))}),s(n.edges(),function(e){ln(n.edge(e))})}function ln(n){var e=n.width;n.width=n.height,n.height=e}function pr(n){s(n.nodes(),function(e){W(n.node(e))}),s(n.edges(),function(e){var r=n.edge(e);s(r.points,W),w(r,"y")&&W(r)})}function W(n){n.y=-n.y}function wr(n){s(n.nodes(),function(e){X(n.node(e))}),s(n.edges(),function(e){var r=n.edge(e);s(r.points,X),w(r,"x")&&X(r)})}function X(n){var e=n.x;n.x=n.y,n.y=e}function mr(n){n.graph().dummyChains=[],s(n.edges(),function(e){br(n,e)})}function br(n,e){var r=e.v,t=n.node(r).rank,i=e.w,o=n.node(i).rank,a=e.name,u=n.edge(e),d=u.labelRank;if(o!==t+1){n.removeEdge(e);var f,c,h;for(h=0,++t;t<o;++h,++t)u.points=[],c={width:0,height:0,edgeLabel:u,edgeObj:e,rank:t},f=C(n,"edge",c,"_d"),t===d&&(c.width=u.width,c.height=u.height,c.dummy="edge-label",c.labelpos=u.labelpos),n.setEdge(r,f,{weight:u.weight},a),h===0&&n.graph().dummyChains.push(f),r=f;n.setEdge(r,i,{weight:u.weight},a)}}function gr(n){s(n.graph().dummyChains,function(e){var r=n.node(e),t=r.edgeLabel,i;for(n.setEdge(r.edgeObj,t);r.dummy;)i=n.successors(e)[0],n.removeNode(e),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),e=i,r=n.node(e)})}function rn(n){var e={};function r(t){var i=n.node(t);if(w(e,t))return i.rank;e[t]=!0;var o=R(m(n.outEdges(t),function(a){return r(a.w)-n.edge(a).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),i.rank=o}s(n.sources(),r)}function T(n,e){return n.node(e.w).rank-n.node(e.v).rank-n.edge(e).minlen}function Fn(n){var e=new x({directed:!1}),r=n.nodes()[0],t=n.nodeCount();e.setNode(r,{});for(var i,o;xr(e,n)<t;)i=kr(e,n),o=e.hasNode(i.v)?T(n,i):-T(n,i),Er(e,n,o);return e}function xr(n,e){function r(t){s(e.nodeEdges(t),function(i){var o=i.v,a=t===o?i.w:o;!n.hasNode(a)&&!T(e,i)&&(n.setNode(a,{}),n.setEdge(t,a,{}),r(a))})}return s(n.nodes(),r),n.nodeCount()}function kr(n,e){return nn(e.edges(),function(r){if(n.hasNode(r.v)!==n.hasNode(r.w))return T(e,r)})}function Er(n,e,r){s(n.nodes(),function(t){e.node(t).rank+=r})}function $n(n,e,r){K(e)||(e=[e]);var t=(n.isDirected()?n.successors:n.neighbors).bind(n),i=[],o={};return s(e,function(a){if(!n.hasNode(a))throw new Error("Graph does not have node: "+a);An(n,a,r==="post",o,t,i)}),i}function An(n,e,r,t,i,o){w(t,e)||(t[e]=!0,r||o.push(e),s(i(e),function(a){An(n,a,r,t,i,o)}),r&&o.push(e))}function yr(n,e){return $n(n,e,"post")}function Nr(n,e){return $n(n,e,"pre")}E.initLowLimValues=an;E.initCutValues=tn;E.calcCutValue=Bn;E.leaveEdge=Vn;E.enterEdge=Yn;E.exchangeEdges=Dn;function E(n){n=or(n),rn(n);var e=Fn(n);an(e),tn(e,n);for(var r,t;r=Vn(e);)t=Yn(e,n,r),Dn(e,n,r,t)}function tn(n,e){var r=yr(n,n.nodes());r=r.slice(0,r.length-1),s(r,function(t){Lr(n,e,t)})}function Lr(n,e,r){var t=n.node(r),i=t.parent;n.edge(r,i).cutvalue=Bn(n,e,r)}function Bn(n,e,r){var t=n.node(r),i=t.parent,o=!0,a=e.edge(r,i),u=0;return a||(o=!1,a=e.edge(i,r)),u=a.weight,s(e.nodeEdges(r),function(d){var f=d.v===r,c=f?d.w:d.v;if(c!==i){var h=f===o,v=e.edge(d).weight;if(u+=h?v:-v,Cr(n,r,c)){var l=n.edge(r,c).cutvalue;u+=h?-l:l}}}),u}function an(n,e){arguments.length<2&&(e=n.nodes()[0]),Gn(n,{},1,e)}function Gn(n,e,r,t,i){var o=r,a=n.node(t);return e[t]=!0,s(n.neighbors(t),function(u){w(e,u)||(r=Gn(n,e,r,u,t))}),a.low=o,a.lim=r++,i?a.parent=i:delete a.parent,r}function Vn(n){return Z(n.edges(),function(e){return n.edge(e).cutvalue<0})}function Yn(n,e,r){var t=r.v,i=r.w;e.hasEdge(t,i)||(t=r.w,i=r.v);var o=n.node(t),a=n.node(i),u=o,d=!1;o.lim>a.lim&&(u=a,d=!0);var f=M(e.edges(),function(c){return d===pn(n,n.node(c.v),u)&&d!==pn(n,n.node(c.w),u)});return nn(f,function(c){return T(e,c)})}function Dn(n,e,r,t){var i=r.v,o=r.w;n.removeEdge(i,o),n.setEdge(t.v,t.w,{}),an(n),tn(n,e),_r(n,e)}function _r(n,e){var r=Z(n.nodes(),function(i){return!e.node(i).parent}),t=Nr(n,r);t=t.slice(1),s(t,function(i){var o=n.node(i).parent,a=e.edge(i,o),u=!1;a||(a=e.edge(o,i),u=!0),e.node(i).rank=e.node(o).rank+(u?a.minlen:-a.minlen)})}function Cr(n,e,r){return n.hasEdge(e,r)}function pn(n,e,r){return r.low<=e.lim&&e.lim<=r.lim}function Ir(n){switch(n.graph().ranker){case"network-simplex":wn(n);break;case"tight-tree":Tr(n);break;case"longest-path":Rr(n);break;default:wn(n)}}var Rr=rn;function Tr(n){rn(n),Fn(n)}function wn(n){E(n)}function Mr(n){var e=C(n,"root",{},"_root"),r=Or(n),t=k(y(r))-1,i=2*t+1;n.graph().nestingRoot=e,s(n.edges(),function(a){n.edge(a).minlen*=i});var o=Pr(n)+1;s(n.children(),function(a){qn(n,e,i,o,t,r,a)}),n.graph().nodeRankFactor=i}function qn(n,e,r,t,i,o,a){var u=n.children(a);if(!u.length){a!==e&&n.setEdge(e,a,{weight:0,minlen:r});return}var d=hn(n,"_bt"),f=hn(n,"_bb"),c=n.node(a);n.setParent(d,a),c.borderTop=d,n.setParent(f,a),c.borderBottom=f,s(u,function(h){qn(n,e,r,t,i,o,h);var v=n.node(h),l=v.borderTop?v.borderTop:h,p=v.borderBottom?v.borderBottom:h,b=v.borderTop?t:2*t,I=l!==p?1:i-o[a]+1;n.setEdge(d,l,{weight:b,minlen:I,nestingEdge:!0}),n.setEdge(p,f,{weight:b,minlen:I,nestingEdge:!0})}),n.parent(a)||n.setEdge(e,d,{weight:0,minlen:i+o[a]})}function Or(n){var e={};function r(t,i){var o=n.children(t);o&&o.length&&s(o,function(a){r(a,i+1)}),e[t]=i}return s(n.children(),function(t){r(t,1)}),e}function Pr(n){return V(n.edges(),function(e,r){return e+n.edge(r).weight},0)}function Sr(n){var e=n.graph();n.removeNode(e.nestingRoot),delete e.nestingRoot,s(n.edges(),function(r){var t=n.edge(r);t.nestingEdge&&n.removeEdge(r)})}function Fr(n,e,r){var t={},i;s(r,function(o){for(var a=n.parent(o),u,d;a;){if(u=n.parent(a),u?(d=t[u],t[u]=a):(d=i,i=a),d&&d!==a){e.setEdge(d,a);return}a=u}})}function $r(n,e,r){var t=Ar(n),i=new x({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return n.node(o)});return s(n.nodes(),function(o){var a=n.node(o),u=n.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),s(n[r](o),function(d){var f=d.v===o?d.w:d.v,c=i.edge(f,o),h=g(c)?0:c.weight;i.setEdge(f,o,{weight:n.edge(d).weight+h})}),w(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))}),i}function Ar(n){for(var e;n.hasNode(e=en("_root")););return e}function Br(n,e){for(var r=0,t=1;t<e.length;++t)r+=Gr(n,e[t-1],e[t]);return r}function Gr(n,e,r){for(var t=Je(r,m(r,function(f,c){return c})),i=_(m(e,function(f){return O(m(n.outEdges(f),function(c){return{pos:t[c.w],weight:n.edge(c).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var a=2*o-1;o-=1;var u=m(new Array(a),function(){return 0}),d=0;return s(i.forEach(function(f){var c=f.pos+o;u[c]+=f.weight;for(var h=0;c>0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=f.weight;d+=f.weight*h})),d}function Vr(n){var e={},r=M(n.nodes(),function(u){return!n.children(u).length}),t=k(m(r,function(u){return n.node(u).rank})),i=m(N(t+1),function(){return[]});function o(u){if(!w(e,u)){e[u]=!0;var d=n.node(u);i[d.rank].push(u),s(n.successors(u),o)}}var a=O(r,function(u){return n.node(u).rank});return s(a,o),i}function Yr(n,e){return m(e,function(r){var t=n.inEdges(r);if(t.length){var i=V(t,function(o,a){var u=n.edge(a),d=n.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Dr(n,e){var r={};s(n,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};g(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),s(e.edges(),function(i){var o=r[i.v],a=r[i.w];!g(o)&&!g(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=M(r,function(i){return!i.indegree});return qr(t)}function qr(n){var e=[];function r(o){return function(a){a.merged||(g(a.barycenter)||g(o.barycenter)||a.barycenter>=o.barycenter)&&Wr(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&n.push(a)}}for(;n.length;){var i=n.pop();e.push(i),s(i.in.reverse(),r(i)),s(i.out,t(i))}return m(M(e,function(o){return!o.merged}),function(o){return G(o,["vs","i","barycenter","weight"])})}function Wr(n,e){var r=0,t=0;n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.vs=e.vs.concat(n.vs),n.barycenter=r/t,n.weight=t,n.i=Math.min(e.i,n.i),e.merged=!0}function Xr(n,e){var r=fr(n,function(c){return w(c,"barycenter")}),t=r.lhs,i=O(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;t.sort(Ur(!!e)),d=mn(o,i,d),s(t,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=mn(o,i,d)});var f={vs:_(o)};return u&&(f.barycenter=a/u,f.weight=u),f}function mn(n,e,r){for(var t;e.length&&(t=B(e)).i<=r;)e.pop(),n.push(t.vs),r++;return r}function Ur(n){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:n?r.i-e.i:e.i-r.i}}function Wn(n,e,r,t){var i=n.children(e),o=n.node(e),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(i=M(i,function(p){return p!==a&&p!==u}));var f=Yr(n,i);s(f,function(p){if(n.children(p.v).length){var b=Wn(n,p.v,r,t);d[p.v]=b,w(b,"barycenter")&&Hr(p,b)}});var c=Dr(f,r);zr(c,d);var h=Xr(c,t);if(a&&(h.vs=_([a,h.vs,u]),n.predecessors(a).length)){var v=n.node(n.predecessors(a)[0]),l=n.node(n.predecessors(u)[0]);w(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+v.order+l.order)/(h.weight+2),h.weight+=2}return h}function zr(n,e){s(n,function(r){r.vs=_(r.vs.map(function(t){return e[t]?e[t].vs:t}))})}function Hr(n,e){g(n.barycenter)?(n.barycenter=e.barycenter,n.weight=e.weight):(n.barycenter=(n.barycenter*n.weight+e.barycenter*e.weight)/(n.weight+e.weight),n.weight+=e.weight)}function jr(n){var e=Pn(n),r=bn(n,N(1,e+1),"inEdges"),t=bn(n,N(e-1,-1,-1),"outEdges"),i=Vr(n);gn(n,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){Jr(u%2?r:t,u%4>=2),i=D(n);var f=Br(n,i);f<o&&(d=0,a=Ee(i),o=f)}gn(n,a)}function bn(n,e,r){return m(e,function(t){return $r(n,t,r)})}function Jr(n,e){var r=new x;s(n,function(t){var i=t.graph().root,o=Wn(t,i,r,e);s(o.vs,function(a,u){t.node(a).order=u}),Fr(t,r,o.vs)})}function gn(n,e){s(e,function(r){s(r,function(t,i){n.node(t).order=i})})}function Kr(n){var e=Qr(n);s(n.graph().dummyChains,function(r){for(var t=n.node(r),i=t.edgeObj,o=Zr(n,e,i.v,i.w),a=o.path,u=o.lca,d=0,f=a[d],c=!0;r!==i.w;){if(t=n.node(r),c){for(;(f=a[d])!==u&&n.node(f).maxRank<t.rank;)d++;f===u&&(c=!1)}if(!c){for(;d<a.length-1&&n.node(f=a[d+1]).minRank<=t.rank;)d++;f=a[d]}n.setParent(r,f),r=n.successors(r)[0]}})}function Zr(n,e,r,t){var i=[],o=[],a=Math.min(e[r].low,e[t].low),u=Math.max(e[r].lim,e[t].lim),d,f;d=r;do d=n.parent(d),i.push(d);while(d&&(e[d].low>a||u>e[d].lim));for(f=d,d=t;(d=n.parent(d))!==f;)o.push(d);return{path:i.concat(o.reverse()),lca:f}}function Qr(n){var e={},r=0;function t(i){var o=r;s(n.children(i),t),e[i]={low:o,lim:r++}}return s(n.children(),t),e}function nt(n,e){var r={};function t(i,o){var a=0,u=0,d=i.length,f=B(o);return s(o,function(c,h){var v=rt(n,c),l=v?n.node(v).order:d;(v||c===f)&&(s(o.slice(u,h+1),function(p){s(n.predecessors(p),function(b){var I=n.node(b),on=I.order;(on<a||l<on)&&!(I.dummy&&n.node(p).dummy)&&Xn(r,b,p)})}),u=h+1,a=l)}),o}return V(e,t),r}function et(n,e){var r={};function t(o,a,u,d,f){var c;s(N(a,u),function(h){c=o[h],n.node(c).dummy&&s(n.predecessors(c),function(v){var l=n.node(v);l.dummy&&(l.order<d||l.order>f)&&Xn(r,v,c)})})}function i(o,a){var u=-1,d,f=0;return s(a,function(c,h){if(n.node(c).dummy==="border"){var v=n.predecessors(c);v.length&&(d=n.node(v[0]).order,t(a,f,h,u,d),f=h,u=d)}t(a,f,a.length,d,o.length)}),a}return V(e,i),r}function rt(n,e){if(n.node(e).dummy)return Z(n.predecessors(e),function(r){return n.node(r).dummy})}function Xn(n,e,r){if(e>r){var t=e;e=r,r=t}var i=n[e];i||(n[e]=i={}),i[r]=!0}function tt(n,e,r){if(e>r){var t=e;e=r,r=t}return w(n[e],r)}function it(n,e,r,t){var i={},o={},a={};return s(e,function(u){s(u,function(d,f){i[d]=d,o[d]=d,a[d]=f})}),s(e,function(u){var d=-1;s(u,function(f){var c=t(f);if(c.length){c=O(c,function(b){return a[b]});for(var h=(c.length-1)/2,v=Math.floor(h),l=Math.ceil(h);v<=l;++v){var p=c[v];o[f]===f&&d<a[p]&&!tt(r,f,p)&&(o[p]=f,o[f]=i[f]=i[p],d=a[p])}}})}),{root:i,align:o}}function at(n,e,r,t,i){var o={},a=ot(n,e,r,i),u=i?"borderLeft":"borderRight";function d(h,v){for(var l=a.nodes(),p=l.pop(),b={};p;)b[p]?h(p):(b[p]=!0,l.push(p),l=l.concat(v(p))),p=l.pop()}function f(h){o[h]=a.inEdges(h).reduce(function(v,l){return Math.max(v,o[l.v]+a.edge(l))},0)}function c(h){var v=a.outEdges(h).reduce(function(p,b){return Math.min(p,o[b.w]-a.edge(b))},Number.POSITIVE_INFINITY),l=n.node(h);v!==Number.POSITIVE_INFINITY&&l.borderType!==u&&(o[h]=Math.max(o[h],v))}return d(f,a.predecessors.bind(a)),d(c,a.successors.bind(a)),s(t,function(h){o[h]=o[r[h]]}),o}function ot(n,e,r,t){var i=new x,o=n.graph(),a=ct(o.nodesep,o.edgesep,t);return s(e,function(u){var d;s(u,function(f){var c=r[f];if(i.setNode(c),d){var h=r[d],v=i.edge(h,c);i.setEdge(h,c,Math.max(a(n,f,d),v||0))}d=f})}),i}function ut(n,e){return nn(y(e),function(r){var t=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Me(r,function(o,a){var u=ht(n,a)/2;t=Math.max(o+u,t),i=Math.min(o-u,i)}),t-i})}function dt(n,e){var r=y(e),t=R(r),i=k(r);s(["u","d"],function(o){s(["l","r"],function(a){var u=o+a,d=n[u],f;if(d!==e){var c=y(d);f=a==="l"?t-R(c):i-k(c),f&&(n[u]=Y(d,function(h){return h+f}))}})})}function ft(n,e){return Y(n.ul,function(r,t){if(e)return n[e.toLowerCase()][t];var i=O(m(n,t));return(i[1]+i[2])/2})}function st(n){var e=D(n),r=H(nt(n,e),et(n,e)),t={},i;s(["u","d"],function(a){i=a==="u"?e:y(e).reverse(),s(["l","r"],function(u){u==="r"&&(i=m(i,function(h){return y(h).reverse()}));var d=(a==="u"?n.predecessors:n.successors).bind(n),f=it(n,i,r,d),c=at(n,i,f.root,f.align,u==="r");u==="r"&&(c=Y(c,function(h){return-h})),t[a+u]=c})});var o=ut(n,t);return dt(t,o),ft(t,n.graph().align)}function ct(n,e,r){return function(t,i,o){var a=t.node(i),u=t.node(o),d=0,f;if(d+=a.width/2,w(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":f=-a.width/2;break;case"r":f=a.width/2;break}if(f&&(d+=r?f:-f),f=0,d+=(a.dummy?e:n)/2,d+=(u.dummy?e:n)/2,d+=u.width/2,w(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":f=u.width/2;break;case"r":f=-u.width/2;break}return f&&(d+=r?f:-f),f=0,d}}function ht(n,e){return n.node(e).width}function vt(n){n=On(n),lt(n),Oe(st(n),function(e,r){n.node(r).x=e})}function lt(n){var e=D(n),r=n.graph().ranksep,t=0;s(e,function(i){var o=k(m(i,function(a){return n.node(a).height}));s(i,function(a){n.node(a).y=t+o/2}),t+=o+r})}function Vt(n,e){var r=e&&e.debugTiming?sr:cr;r("layout",function(){var t=r(" buildLayoutGraph",function(){return Lt(n)});r(" runLayout",function(){pt(t,r)}),r(" updateInputGraph",function(){wt(n,t)})})}function pt(n,e){e(" makeSpaceForEdgeLabels",function(){_t(n)}),e(" removeSelfEdges",function(){Ft(n)}),e(" acyclic",function(){tr(n)}),e(" nestingGraph.run",function(){Mr(n)}),e(" rank",function(){Ir(On(n))}),e(" injectEdgeLabelProxies",function(){Ct(n)}),e(" removeEmptyRanks",function(){dr(n)}),e(" nestingGraph.cleanup",function(){Sr(n)}),e(" normalizeRanks",function(){ur(n)}),e(" assignRankMinMax",function(){It(n)}),e(" removeEdgeLabelProxies",function(){Rt(n)}),e(" normalize.run",function(){mr(n)}),e(" parentDummyChains",function(){Kr(n)}),e(" addBorderSegments",function(){hr(n)}),e(" order",function(){jr(n)}),e(" insertSelfEdges",function(){$t(n)}),e(" adjustCoordinateSystem",function(){vr(n)}),e(" position",function(){vt(n)}),e(" positionSelfEdges",function(){At(n)}),e(" removeBorderNodes",function(){St(n)}),e(" normalize.undo",function(){gr(n)}),e(" fixupEdgeLabelCoords",function(){Ot(n)}),e(" undoCoordinateSystem",function(){lr(n)}),e(" translateGraph",function(){Tt(n)}),e(" assignNodeIntersects",function(){Mt(n)}),e(" reversePoints",function(){Pt(n)}),e(" acyclic.undo",function(){ar(n)})}function wt(n,e){s(n.nodes(),function(r){var t=n.node(r),i=e.node(r);t&&(t.x=i.x,t.y=i.y,e.children(r).length&&(t.width=i.width,t.height=i.height))}),s(n.edges(),function(r){var t=n.edge(r),i=e.edge(r);t.points=i.points,w(i,"x")&&(t.x=i.x,t.y=i.y)}),n.graph().width=e.graph().width,n.graph().height=e.graph().height}var mt=["nodesep","edgesep","ranksep","marginx","marginy"],bt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},gt=["acyclicer","ranker","rankdir","align"],xt=["width","height"],kt={width:0,height:0},Et=["minlen","weight","width","height","labeloffset"],yt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Nt=["labelpos"];function Lt(n){var e=new x({multigraph:!0,compound:!0}),r=z(n.graph());return e.setGraph(H({},bt,U(r,mt),G(r,gt))),s(n.nodes(),function(t){var i=z(n.node(t));e.setNode(t,_e(U(i,xt),kt)),e.setParent(t,n.parent(t))}),s(n.edges(),function(t){var i=z(n.edge(t));e.setEdge(t,H({},yt,U(i,Et),G(i,Nt)))}),e}function _t(n){var e=n.graph();e.ranksep/=2,s(n.edges(),function(r){var t=n.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Ct(n){s(n.edges(),function(e){var r=n.edge(e);if(r.width&&r.height){var t=n.node(e.v),i=n.node(e.w),o={rank:(i.rank-t.rank)/2+t.rank,e};C(n,"edge-proxy",o,"_ep")}})}function It(n){var e=0;s(n.nodes(),function(r){var t=n.node(r);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,e=k(e,t.maxRank))}),n.graph().maxRank=e}function Rt(n){s(n.nodes(),function(e){var r=n.node(e);r.dummy==="edge-proxy"&&(n.edge(r.e).labelRank=r.rank,n.removeNode(e))})}function Tt(n){var e=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,i=0,o=n.graph(),a=o.marginx||0,u=o.marginy||0;function d(f){var c=f.x,h=f.y,v=f.width,l=f.height;e=Math.min(e,c-v/2),r=Math.max(r,c+v/2),t=Math.min(t,h-l/2),i=Math.max(i,h+l/2)}s(n.nodes(),function(f){d(n.node(f))}),s(n.edges(),function(f){var c=n.edge(f);w(c,"x")&&d(c)}),e-=a,t-=u,s(n.nodes(),function(f){var c=n.node(f);c.x-=e,c.y-=t}),s(n.edges(),function(f){var c=n.edge(f);s(c.points,function(h){h.x-=e,h.y-=t}),w(c,"x")&&(c.x-=e),w(c,"y")&&(c.y-=t)}),o.width=r-e+a,o.height=i-t+u}function Mt(n){s(n.edges(),function(e){var r=n.edge(e),t=n.node(e.v),i=n.node(e.w),o,a;r.points?(o=r.points[0],a=r.points[r.points.length-1]):(r.points=[],o=i,a=t),r.points.unshift(cn(t,o)),r.points.push(cn(i,a))})}function Ot(n){s(n.edges(),function(e){var r=n.edge(e);if(w(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Pt(n){s(n.edges(),function(e){var r=n.edge(e);r.reversed&&r.points.reverse()})}function St(n){s(n.nodes(),function(e){if(n.children(e).length){var r=n.node(e),t=n.node(r.borderTop),i=n.node(r.borderBottom),o=n.node(B(r.borderLeft)),a=n.node(B(r.borderRight));r.width=Math.abs(a.x-o.x),r.height=Math.abs(i.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),s(n.nodes(),function(e){n.node(e).dummy==="border"&&n.removeNode(e)})}function Ft(n){s(n.edges(),function(e){if(e.v===e.w){var r=n.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e,label:n.edge(e)}),n.removeEdge(e)}})}function $t(n){var e=D(n);s(e,function(r){var t=0;s(r,function(i,o){var a=n.node(i);a.order=o+t,s(a.selfEdges,function(u){C(n,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:o+ ++t,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}function At(n){s(n.nodes(),function(e){var r=n.node(e);if(r.dummy==="selfedge"){var t=n.node(r.e.v),i=t.x+t.width/2,o=t.y,a=r.x-i,u=t.height/2;n.setEdge(r.e,r.label),n.removeNode(e),r.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function U(n,e){return Y(G(n,e),Number)}function z(n){var e={};return s(n,function(r,t){e[t.toLowerCase()]=r}),e}export{_e as d,Vt as l,m,G as p,N as r,en as u};
class h0{constructor(e,t,a){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=a}static range(e,t){return t?!e||!e.loc||!t.loc||e.loc.lexer!==t.loc.lexer?null:new h0(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}}class w0{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new w0(t,h0.range(this,e))}}class M{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var a="KaTeX parse error: "+e,n,s,o=t&&t.loc;if(o&&o.start<=o.end){var m=o.lexer.input;n=o.start,s=o.end,n===m.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var c=m.slice(n,s).replace(/[^]/g,"$&̲"),p;n>15?p="…"+m.slice(n-15,n):p=m.slice(0,n);var g;s+15<m.length?g=m.slice(s,s+15)+"…":g=m.slice(s),a+=p+c+g}var y=new Error(a);return y.name="ParseError",y.__proto__=M.prototype,y.position=n,n!=null&&s!=null&&(y.length=s-n),y.rawMessage=e,y}}M.prototype.__proto__=Error.prototype;var da=function(e,t){return e.indexOf(t)!==-1},fa=function(e,t){return e===void 0?t:e},pa=/([A-Z])/g,va=function(e){return e.replace(pa,"-$1").toLowerCase()},ga={"&":"&",">":">","<":"<",'"':""","'":"'"},ba=/[&><"']/g;function ya(r){return String(r).replace(ba,e=>ga[e])}var pr=function r(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?r(e.body[0]):e:e.type==="font"?r(e.body):e},wa=function(e){var t=pr(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},xa=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},ka=function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return t!=null?t[1]:"_relative"},E={contains:da,deflt:fa,escape:ya,hyphenate:va,getBaseElem:pr,isCharacterBox:wa,protocolFromUrl:ka},Te={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:r=>"#"+r},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:r=>Math.max(0,r),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:r=>Math.max(0,r),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:r=>Math.max(0,r),cli:"-e, --max-expand <n>",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};function Sa(r){if(r.default)return r.default;var e=r.type,t=Array.isArray(e)?e[0]:e;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class ct{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t in Te)if(Te.hasOwnProperty(t)){var a=Te[t];this[t]=e[t]!==void 0?a.processor?a.processor(e[t]):e[t]:Sa(a)}}reportNonstrict(e,t,a){var n=this.strict;if(typeof n=="function"&&(n=n(e,t,a)),!(!n||n==="ignore")){if(n===!0||n==="error")throw new M("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),a);n==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,a){var n=this.strict;if(typeof n=="function")try{n=n(e,t,a)}catch{n="error"}return!n||n==="ignore"?!1:n===!0||n==="error"?!0:n==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]")),!1)}isTrusted(e){e.url&&!e.protocol&&(e.protocol=E.protocolFromUrl(e.url));var t=typeof this.trust=="function"?this.trust(e):this.trust;return!!t}}class O0{constructor(e,t,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=a}sup(){return b0[Ma[this.id]]}sub(){return b0[za[this.id]]}fracNum(){return b0[Ta[this.id]]}fracDen(){return b0[Aa[this.id]]}cramp(){return b0[Ba[this.id]]}text(){return b0[Na[this.id]]}isTight(){return this.size>=2}}var dt=0,Be=1,_0=2,A0=3,le=4,d0=5,ee=6,n0=7,b0=[new O0(dt,0,!1),new O0(Be,0,!0),new O0(_0,1,!1),new O0(A0,1,!0),new O0(le,2,!1),new O0(d0,2,!0),new O0(ee,3,!1),new O0(n0,3,!0)],Ma=[le,d0,le,d0,ee,n0,ee,n0],za=[d0,d0,d0,d0,n0,n0,n0,n0],Ta=[_0,A0,le,d0,ee,n0,ee,n0],Aa=[A0,A0,d0,d0,n0,n0,n0,n0],Ba=[Be,Be,A0,A0,d0,d0,n0,n0],Na=[dt,Be,_0,A0,_0,A0,_0,A0],I={DISPLAY:b0[dt],TEXT:b0[_0],SCRIPT:b0[le],SCRIPTSCRIPT:b0[ee]},at=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Ca(r){for(var e=0;e<at.length;e++)for(var t=at[e],a=0;a<t.blocks.length;a++){var n=t.blocks[a];if(r>=n[0]&&r<=n[1])return t.name}return null}var Ae=[];at.forEach(r=>r.blocks.forEach(e=>Ae.push(...e)));function vr(r){for(var e=0;e<Ae.length;e+=2)if(r>=Ae[e]&&r<=Ae[e+1])return!0;return!1}var Q0=80,qa=function(e,t){return"M95,"+(622+e+t)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+e/2.075+" -"+e+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+e)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Ra=function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+e/2.084+" -"+e+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+e)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Ia=function(e,t){return"M983 "+(10+e+t)+`
l`+e/3.13+" -"+e+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Da=function(e,t){return"M424,"+(2398+e+t)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+e)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+t+`
h400000v`+(40+e)+"h-400000z"},Ea=function(e,t){return"M473,"+(2713+e+t)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},Oa=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},Ha=function(e,t,a){var n=a-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+`
H742v`+n+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},La=function(e,t,a){t=1e3*t;var n="";switch(e){case"sqrtMain":n=qa(t,Q0);break;case"sqrtSize1":n=Ra(t,Q0);break;case"sqrtSize2":n=Ia(t,Q0);break;case"sqrtSize3":n=Da(t,Q0);break;case"sqrtSize4":n=Ea(t,Q0);break;case"sqrtTall":n=Ha(t,Q0,a)}return n},Fa=function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z"+("M367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z");case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257z"+("M478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z");default:return""}},Et={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Pa=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z
M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v602 h84z
M403 1759 V0 H319 V1759 v`+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v602 h84z
M347 1759 V0 h-84 V1759 v`+t+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class me{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return E.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){var e=t=>t.toText();return this.children.map(e).join("")}}var y0={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ge={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Ot={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Ga(r,e){y0[r]=e}function ft(r,e,t){if(!y0[e])throw new Error("Font metrics not found for font: "+e+".");var a=r.charCodeAt(0),n=y0[e][a];if(!n&&r[0]in Ot&&(a=Ot[r[0]].charCodeAt(0),n=y0[e][a]),!n&&t==="text"&&vr(a)&&(n=y0[e][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var Ue={};function Va(r){var e;if(r>=5?e=0:r>=3?e=1:e=2,!Ue[e]){var t=Ue[e]={cssEmPerMu:ge.quad[e]/18};for(var a in ge)ge.hasOwnProperty(a)&&(t[a]=ge[a][e])}return Ue[e]}var Ua=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ht=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Lt=function(e,t){return t.size<2?e:Ua[e-1][t.size-1]};class T0{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||T0.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=Ht[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var a in e)e.hasOwnProperty(a)&&(t[a]=e[a]);return new T0(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Lt(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Ht[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=Lt(T0.BASESIZE,e);return this.size===t&&this.textSize===T0.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==T0.BASESIZE?["sizing","reset-size"+this.size,"size"+T0.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Va(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}T0.BASESIZE=6;var nt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Ya={ex:!0,em:!0,mu:!0},gr=function(e){return typeof e!="string"&&(e=e.unit),e in nt||e in Ya||e==="ex"},K=function(e,t){var a;if(e.unit in nt)a=nt[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")a=t.fontMetrics().cssEmPerMu;else{var n;if(t.style.isTight()?n=t.havingStyle(t.style.text()):n=t,e.unit==="ex")a=n.fontMetrics().xHeight;else if(e.unit==="em")a=n.fontMetrics().quad;else throw new M("Invalid unit: '"+e.unit+"'");n!==t&&(a*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*a,t.maxSize)},T=function(e){return+e.toFixed(4)+"em"},F0=function(e){return e.filter(t=>t).join(" ")},br=function(e,t,a){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},yr=function(e){var t=document.createElement(e);t.className=F0(this.classes);for(var a in this.style)this.style.hasOwnProperty(a)&&(t.style[a]=this.style[a]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(var s=0;s<this.children.length;s++)t.appendChild(this.children[s].toNode());return t},wr=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+E.escape(F0(this.classes))+'"');var a="";for(var n in this.style)this.style.hasOwnProperty(n)&&(a+=E.hyphenate(n)+":"+this.style[n]+";");a&&(t+=' style="'+E.escape(a)+'"');for(var s in this.attributes)this.attributes.hasOwnProperty(s)&&(t+=" "+s+'="'+E.escape(this.attributes[s])+'"');t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</"+e+">",t};class ue{constructor(e,t,a,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,br.call(this,e,a,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return E.contains(this.classes,e)}toNode(){return yr.call(this,"span")}toMarkup(){return wr.call(this,"span")}}class pt{constructor(e,t,a,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,br.call(this,t,n),this.children=a||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return E.contains(this.classes,e)}toNode(){return yr.call(this,"a")}toMarkup(){return wr.call(this,"a")}}class Xa{constructor(e,t,a){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=a}hasClass(e){return E.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e="<img src='"+this.src+" 'alt='"+this.alt+"' ",t="";for(var a in this.style)this.style.hasOwnProperty(a)&&(t+=E.hyphenate(a)+":"+this.style[a]+";");return t&&(e+=' style="'+E.escape(t)+'"'),e+="'/>",e}}var $a={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class f0{constructor(e,t,a,n,s,o,m,c){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=a||0,this.italic=n||0,this.skew=s||0,this.width=o||0,this.classes=m||[],this.style=c||{},this.maxFontSize=0;var p=Ca(this.text.charCodeAt(0));p&&this.classes.push(p+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=$a[this.text])}hasClass(e){return E.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),t=null;this.italic>0&&(t=document.createElement("span"),t.style.marginRight=T(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=F0(this.classes));for(var a in this.style)this.style.hasOwnProperty(a)&&(t=t||document.createElement("span"),t.style[a]=this.style[a]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=E.escape(F0(this.classes)),t+='"');var a="";this.italic>0&&(a+="margin-right:"+this.italic+"em;");for(var n in this.style)this.style.hasOwnProperty(n)&&(a+=E.hyphenate(n)+":"+this.style[n]+";");a&&(e=!0,t+=' style="'+E.escape(a)+'"');var s=E.escape(this.text);return e?(t+=">",t+=s,t+="</span>",t):s}}class N0{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&t.setAttribute(a,this.attributes[a]);for(var n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");e+=">";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+="</svg>",e}}class P0{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"path");return this.alternate?t.setAttribute("d",this.alternate):t.setAttribute("d",Et[this.pathName]),t}toMarkup(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Et[this.pathName]+"'/>"}}class it{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&t.setAttribute(a,this.attributes[a]);return t}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");return e+="/>",e}}function Ft(r){if(r instanceof f0)return r;throw new Error("Expected symbolNode but got "+String(r)+".")}function Wa(r){if(r instanceof ue)return r;throw new Error("Expected span<HtmlDomNode> but got "+String(r)+".")}var ja={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Za={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},$={math:{},text:{}};function i(r,e,t,a,n,s){$[r][n]={font:e,group:t,replace:a},s&&a&&($[r][a]=$[r][n])}var l="math",k="text",h="main",d="ams",W="accent-token",N="bin",i0="close",te="inner",R="mathord",_="op-token",m0="open",Ie="punct",f="rel",R0="spacing",v="textord";i(l,h,f,"≡","\\equiv",!0);i(l,h,f,"≺","\\prec",!0);i(l,h,f,"≻","\\succ",!0);i(l,h,f,"∼","\\sim",!0);i(l,h,f,"⊥","\\perp");i(l,h,f,"⪯","\\preceq",!0);i(l,h,f,"⪰","\\succeq",!0);i(l,h,f,"≃","\\simeq",!0);i(l,h,f,"∣","\\mid",!0);i(l,h,f,"≪","\\ll",!0);i(l,h,f,"≫","\\gg",!0);i(l,h,f,"≍","\\asymp",!0);i(l,h,f,"∥","\\parallel");i(l,h,f,"⋈","\\bowtie",!0);i(l,h,f,"⌣","\\smile",!0);i(l,h,f,"⊑","\\sqsubseteq",!0);i(l,h,f,"⊒","\\sqsupseteq",!0);i(l,h,f,"≐","\\doteq",!0);i(l,h,f,"⌢","\\frown",!0);i(l,h,f,"∋","\\ni",!0);i(l,h,f,"∝","\\propto",!0);i(l,h,f,"⊢","\\vdash",!0);i(l,h,f,"⊣","\\dashv",!0);i(l,h,f,"∋","\\owns");i(l,h,Ie,".","\\ldotp");i(l,h,Ie,"⋅","\\cdotp");i(l,h,v,"#","\\#");i(k,h,v,"#","\\#");i(l,h,v,"&","\\&");i(k,h,v,"&","\\&");i(l,h,v,"ℵ","\\aleph",!0);i(l,h,v,"∀","\\forall",!0);i(l,h,v,"ℏ","\\hbar",!0);i(l,h,v,"∃","\\exists",!0);i(l,h,v,"∇","\\nabla",!0);i(l,h,v,"♭","\\flat",!0);i(l,h,v,"ℓ","\\ell",!0);i(l,h,v,"♮","\\natural",!0);i(l,h,v,"♣","\\clubsuit",!0);i(l,h,v,"℘","\\wp",!0);i(l,h,v,"♯","\\sharp",!0);i(l,h,v,"♢","\\diamondsuit",!0);i(l,h,v,"ℜ","\\Re",!0);i(l,h,v,"♡","\\heartsuit",!0);i(l,h,v,"ℑ","\\Im",!0);i(l,h,v,"♠","\\spadesuit",!0);i(l,h,v,"§","\\S",!0);i(k,h,v,"§","\\S");i(l,h,v,"¶","\\P",!0);i(k,h,v,"¶","\\P");i(l,h,v,"†","\\dag");i(k,h,v,"†","\\dag");i(k,h,v,"†","\\textdagger");i(l,h,v,"‡","\\ddag");i(k,h,v,"‡","\\ddag");i(k,h,v,"‡","\\textdaggerdbl");i(l,h,i0,"⎱","\\rmoustache",!0);i(l,h,m0,"⎰","\\lmoustache",!0);i(l,h,i0,"⟯","\\rgroup",!0);i(l,h,m0,"⟮","\\lgroup",!0);i(l,h,N,"∓","\\mp",!0);i(l,h,N,"⊖","\\ominus",!0);i(l,h,N,"⊎","\\uplus",!0);i(l,h,N,"⊓","\\sqcap",!0);i(l,h,N,"∗","\\ast");i(l,h,N,"⊔","\\sqcup",!0);i(l,h,N,"◯","\\bigcirc",!0);i(l,h,N,"∙","\\bullet",!0);i(l,h,N,"‡","\\ddagger");i(l,h,N,"≀","\\wr",!0);i(l,h,N,"⨿","\\amalg");i(l,h,N,"&","\\And");i(l,h,f,"⟵","\\longleftarrow",!0);i(l,h,f,"⇐","\\Leftarrow",!0);i(l,h,f,"⟸","\\Longleftarrow",!0);i(l,h,f,"⟶","\\longrightarrow",!0);i(l,h,f,"⇒","\\Rightarrow",!0);i(l,h,f,"⟹","\\Longrightarrow",!0);i(l,h,f,"↔","\\leftrightarrow",!0);i(l,h,f,"⟷","\\longleftrightarrow",!0);i(l,h,f,"⇔","\\Leftrightarrow",!0);i(l,h,f,"⟺","\\Longleftrightarrow",!0);i(l,h,f,"↦","\\mapsto",!0);i(l,h,f,"⟼","\\longmapsto",!0);i(l,h,f,"↗","\\nearrow",!0);i(l,h,f,"↩","\\hookleftarrow",!0);i(l,h,f,"↪","\\hookrightarrow",!0);i(l,h,f,"↘","\\searrow",!0);i(l,h,f,"↼","\\leftharpoonup",!0);i(l,h,f,"⇀","\\rightharpoonup",!0);i(l,h,f,"↙","\\swarrow",!0);i(l,h,f,"↽","\\leftharpoondown",!0);i(l,h,f,"⇁","\\rightharpoondown",!0);i(l,h,f,"↖","\\nwarrow",!0);i(l,h,f,"⇌","\\rightleftharpoons",!0);i(l,d,f,"≮","\\nless",!0);i(l,d,f,"","\\@nleqslant");i(l,d,f,"","\\@nleqq");i(l,d,f,"⪇","\\lneq",!0);i(l,d,f,"≨","\\lneqq",!0);i(l,d,f,"","\\@lvertneqq");i(l,d,f,"⋦","\\lnsim",!0);i(l,d,f,"⪉","\\lnapprox",!0);i(l,d,f,"⊀","\\nprec",!0);i(l,d,f,"⋠","\\npreceq",!0);i(l,d,f,"⋨","\\precnsim",!0);i(l,d,f,"⪹","\\precnapprox",!0);i(l,d,f,"≁","\\nsim",!0);i(l,d,f,"","\\@nshortmid");i(l,d,f,"∤","\\nmid",!0);i(l,d,f,"⊬","\\nvdash",!0);i(l,d,f,"⊭","\\nvDash",!0);i(l,d,f,"⋪","\\ntriangleleft");i(l,d,f,"⋬","\\ntrianglelefteq",!0);i(l,d,f,"⊊","\\subsetneq",!0);i(l,d,f,"","\\@varsubsetneq");i(l,d,f,"⫋","\\subsetneqq",!0);i(l,d,f,"","\\@varsubsetneqq");i(l,d,f,"≯","\\ngtr",!0);i(l,d,f,"","\\@ngeqslant");i(l,d,f,"","\\@ngeqq");i(l,d,f,"⪈","\\gneq",!0);i(l,d,f,"≩","\\gneqq",!0);i(l,d,f,"","\\@gvertneqq");i(l,d,f,"⋧","\\gnsim",!0);i(l,d,f,"⪊","\\gnapprox",!0);i(l,d,f,"⊁","\\nsucc",!0);i(l,d,f,"⋡","\\nsucceq",!0);i(l,d,f,"⋩","\\succnsim",!0);i(l,d,f,"⪺","\\succnapprox",!0);i(l,d,f,"≆","\\ncong",!0);i(l,d,f,"","\\@nshortparallel");i(l,d,f,"∦","\\nparallel",!0);i(l,d,f,"⊯","\\nVDash",!0);i(l,d,f,"⋫","\\ntriangleright");i(l,d,f,"⋭","\\ntrianglerighteq",!0);i(l,d,f,"","\\@nsupseteqq");i(l,d,f,"⊋","\\supsetneq",!0);i(l,d,f,"","\\@varsupsetneq");i(l,d,f,"⫌","\\supsetneqq",!0);i(l,d,f,"","\\@varsupsetneqq");i(l,d,f,"⊮","\\nVdash",!0);i(l,d,f,"⪵","\\precneqq",!0);i(l,d,f,"⪶","\\succneqq",!0);i(l,d,f,"","\\@nsubseteqq");i(l,d,N,"⊴","\\unlhd");i(l,d,N,"⊵","\\unrhd");i(l,d,f,"↚","\\nleftarrow",!0);i(l,d,f,"↛","\\nrightarrow",!0);i(l,d,f,"⇍","\\nLeftarrow",!0);i(l,d,f,"⇏","\\nRightarrow",!0);i(l,d,f,"↮","\\nleftrightarrow",!0);i(l,d,f,"⇎","\\nLeftrightarrow",!0);i(l,d,f,"△","\\vartriangle");i(l,d,v,"ℏ","\\hslash");i(l,d,v,"▽","\\triangledown");i(l,d,v,"◊","\\lozenge");i(l,d,v,"Ⓢ","\\circledS");i(l,d,v,"®","\\circledR");i(k,d,v,"®","\\circledR");i(l,d,v,"∡","\\measuredangle",!0);i(l,d,v,"∄","\\nexists");i(l,d,v,"℧","\\mho");i(l,d,v,"Ⅎ","\\Finv",!0);i(l,d,v,"⅁","\\Game",!0);i(l,d,v,"‵","\\backprime");i(l,d,v,"▲","\\blacktriangle");i(l,d,v,"▼","\\blacktriangledown");i(l,d,v,"■","\\blacksquare");i(l,d,v,"⧫","\\blacklozenge");i(l,d,v,"★","\\bigstar");i(l,d,v,"∢","\\sphericalangle",!0);i(l,d,v,"∁","\\complement",!0);i(l,d,v,"ð","\\eth",!0);i(k,h,v,"ð","ð");i(l,d,v,"╱","\\diagup");i(l,d,v,"╲","\\diagdown");i(l,d,v,"□","\\square");i(l,d,v,"□","\\Box");i(l,d,v,"◊","\\Diamond");i(l,d,v,"¥","\\yen",!0);i(k,d,v,"¥","\\yen",!0);i(l,d,v,"✓","\\checkmark",!0);i(k,d,v,"✓","\\checkmark");i(l,d,v,"ℶ","\\beth",!0);i(l,d,v,"ℸ","\\daleth",!0);i(l,d,v,"ℷ","\\gimel",!0);i(l,d,v,"ϝ","\\digamma",!0);i(l,d,v,"ϰ","\\varkappa");i(l,d,m0,"┌","\\@ulcorner",!0);i(l,d,i0,"┐","\\@urcorner",!0);i(l,d,m0,"└","\\@llcorner",!0);i(l,d,i0,"┘","\\@lrcorner",!0);i(l,d,f,"≦","\\leqq",!0);i(l,d,f,"⩽","\\leqslant",!0);i(l,d,f,"⪕","\\eqslantless",!0);i(l,d,f,"≲","\\lesssim",!0);i(l,d,f,"⪅","\\lessapprox",!0);i(l,d,f,"≊","\\approxeq",!0);i(l,d,N,"⋖","\\lessdot");i(l,d,f,"⋘","\\lll",!0);i(l,d,f,"≶","\\lessgtr",!0);i(l,d,f,"⋚","\\lesseqgtr",!0);i(l,d,f,"⪋","\\lesseqqgtr",!0);i(l,d,f,"≑","\\doteqdot");i(l,d,f,"≓","\\risingdotseq",!0);i(l,d,f,"≒","\\fallingdotseq",!0);i(l,d,f,"∽","\\backsim",!0);i(l,d,f,"⋍","\\backsimeq",!0);i(l,d,f,"⫅","\\subseteqq",!0);i(l,d,f,"⋐","\\Subset",!0);i(l,d,f,"⊏","\\sqsubset",!0);i(l,d,f,"≼","\\preccurlyeq",!0);i(l,d,f,"⋞","\\curlyeqprec",!0);i(l,d,f,"≾","\\precsim",!0);i(l,d,f,"⪷","\\precapprox",!0);i(l,d,f,"⊲","\\vartriangleleft");i(l,d,f,"⊴","\\trianglelefteq");i(l,d,f,"⊨","\\vDash",!0);i(l,d,f,"⊪","\\Vvdash",!0);i(l,d,f,"⌣","\\smallsmile");i(l,d,f,"⌢","\\smallfrown");i(l,d,f,"≏","\\bumpeq",!0);i(l,d,f,"≎","\\Bumpeq",!0);i(l,d,f,"≧","\\geqq",!0);i(l,d,f,"⩾","\\geqslant",!0);i(l,d,f,"⪖","\\eqslantgtr",!0);i(l,d,f,"≳","\\gtrsim",!0);i(l,d,f,"⪆","\\gtrapprox",!0);i(l,d,N,"⋗","\\gtrdot");i(l,d,f,"⋙","\\ggg",!0);i(l,d,f,"≷","\\gtrless",!0);i(l,d,f,"⋛","\\gtreqless",!0);i(l,d,f,"⪌","\\gtreqqless",!0);i(l,d,f,"≖","\\eqcirc",!0);i(l,d,f,"≗","\\circeq",!0);i(l,d,f,"≜","\\triangleq",!0);i(l,d,f,"∼","\\thicksim");i(l,d,f,"≈","\\thickapprox");i(l,d,f,"⫆","\\supseteqq",!0);i(l,d,f,"⋑","\\Supset",!0);i(l,d,f,"⊐","\\sqsupset",!0);i(l,d,f,"≽","\\succcurlyeq",!0);i(l,d,f,"⋟","\\curlyeqsucc",!0);i(l,d,f,"≿","\\succsim",!0);i(l,d,f,"⪸","\\succapprox",!0);i(l,d,f,"⊳","\\vartriangleright");i(l,d,f,"⊵","\\trianglerighteq");i(l,d,f,"⊩","\\Vdash",!0);i(l,d,f,"∣","\\shortmid");i(l,d,f,"∥","\\shortparallel");i(l,d,f,"≬","\\between",!0);i(l,d,f,"⋔","\\pitchfork",!0);i(l,d,f,"∝","\\varpropto");i(l,d,f,"◀","\\blacktriangleleft");i(l,d,f,"∴","\\therefore",!0);i(l,d,f,"∍","\\backepsilon");i(l,d,f,"▶","\\blacktriangleright");i(l,d,f,"∵","\\because",!0);i(l,d,f,"⋘","\\llless");i(l,d,f,"⋙","\\gggtr");i(l,d,N,"⊲","\\lhd");i(l,d,N,"⊳","\\rhd");i(l,d,f,"≂","\\eqsim",!0);i(l,h,f,"⋈","\\Join");i(l,d,f,"≑","\\Doteq",!0);i(l,d,N,"∔","\\dotplus",!0);i(l,d,N,"∖","\\smallsetminus");i(l,d,N,"⋒","\\Cap",!0);i(l,d,N,"⋓","\\Cup",!0);i(l,d,N,"⩞","\\doublebarwedge",!0);i(l,d,N,"⊟","\\boxminus",!0);i(l,d,N,"⊞","\\boxplus",!0);i(l,d,N,"⋇","\\divideontimes",!0);i(l,d,N,"⋉","\\ltimes",!0);i(l,d,N,"⋊","\\rtimes",!0);i(l,d,N,"⋋","\\leftthreetimes",!0);i(l,d,N,"⋌","\\rightthreetimes",!0);i(l,d,N,"⋏","\\curlywedge",!0);i(l,d,N,"⋎","\\curlyvee",!0);i(l,d,N,"⊝","\\circleddash",!0);i(l,d,N,"⊛","\\circledast",!0);i(l,d,N,"⋅","\\centerdot");i(l,d,N,"⊺","\\intercal",!0);i(l,d,N,"⋒","\\doublecap");i(l,d,N,"⋓","\\doublecup");i(l,d,N,"⊠","\\boxtimes",!0);i(l,d,f,"⇢","\\dashrightarrow",!0);i(l,d,f,"⇠","\\dashleftarrow",!0);i(l,d,f,"⇇","\\leftleftarrows",!0);i(l,d,f,"⇆","\\leftrightarrows",!0);i(l,d,f,"⇚","\\Lleftarrow",!0);i(l,d,f,"↞","\\twoheadleftarrow",!0);i(l,d,f,"↢","\\leftarrowtail",!0);i(l,d,f,"↫","\\looparrowleft",!0);i(l,d,f,"⇋","\\leftrightharpoons",!0);i(l,d,f,"↶","\\curvearrowleft",!0);i(l,d,f,"↺","\\circlearrowleft",!0);i(l,d,f,"↰","\\Lsh",!0);i(l,d,f,"⇈","\\upuparrows",!0);i(l,d,f,"↿","\\upharpoonleft",!0);i(l,d,f,"⇃","\\downharpoonleft",!0);i(l,h,f,"⊶","\\origof",!0);i(l,h,f,"⊷","\\imageof",!0);i(l,d,f,"⊸","\\multimap",!0);i(l,d,f,"↭","\\leftrightsquigarrow",!0);i(l,d,f,"⇉","\\rightrightarrows",!0);i(l,d,f,"⇄","\\rightleftarrows",!0);i(l,d,f,"↠","\\twoheadrightarrow",!0);i(l,d,f,"↣","\\rightarrowtail",!0);i(l,d,f,"↬","\\looparrowright",!0);i(l,d,f,"↷","\\curvearrowright",!0);i(l,d,f,"↻","\\circlearrowright",!0);i(l,d,f,"↱","\\Rsh",!0);i(l,d,f,"⇊","\\downdownarrows",!0);i(l,d,f,"↾","\\upharpoonright",!0);i(l,d,f,"⇂","\\downharpoonright",!0);i(l,d,f,"⇝","\\rightsquigarrow",!0);i(l,d,f,"⇝","\\leadsto");i(l,d,f,"⇛","\\Rrightarrow",!0);i(l,d,f,"↾","\\restriction");i(l,h,v,"‘","`");i(l,h,v,"$","\\$");i(k,h,v,"$","\\$");i(k,h,v,"$","\\textdollar");i(l,h,v,"%","\\%");i(k,h,v,"%","\\%");i(l,h,v,"_","\\_");i(k,h,v,"_","\\_");i(k,h,v,"_","\\textunderscore");i(l,h,v,"∠","\\angle",!0);i(l,h,v,"∞","\\infty",!0);i(l,h,v,"′","\\prime");i(l,h,v,"△","\\triangle");i(l,h,v,"Γ","\\Gamma",!0);i(l,h,v,"Δ","\\Delta",!0);i(l,h,v,"Θ","\\Theta",!0);i(l,h,v,"Λ","\\Lambda",!0);i(l,h,v,"Ξ","\\Xi",!0);i(l,h,v,"Π","\\Pi",!0);i(l,h,v,"Σ","\\Sigma",!0);i(l,h,v,"Υ","\\Upsilon",!0);i(l,h,v,"Φ","\\Phi",!0);i(l,h,v,"Ψ","\\Psi",!0);i(l,h,v,"Ω","\\Omega",!0);i(l,h,v,"A","Α");i(l,h,v,"B","Β");i(l,h,v,"E","Ε");i(l,h,v,"Z","Ζ");i(l,h,v,"H","Η");i(l,h,v,"I","Ι");i(l,h,v,"K","Κ");i(l,h,v,"M","Μ");i(l,h,v,"N","Ν");i(l,h,v,"O","Ο");i(l,h,v,"P","Ρ");i(l,h,v,"T","Τ");i(l,h,v,"X","Χ");i(l,h,v,"¬","\\neg",!0);i(l,h,v,"¬","\\lnot");i(l,h,v,"⊤","\\top");i(l,h,v,"⊥","\\bot");i(l,h,v,"∅","\\emptyset");i(l,d,v,"∅","\\varnothing");i(l,h,R,"α","\\alpha",!0);i(l,h,R,"β","\\beta",!0);i(l,h,R,"γ","\\gamma",!0);i(l,h,R,"δ","\\delta",!0);i(l,h,R,"ϵ","\\epsilon",!0);i(l,h,R,"ζ","\\zeta",!0);i(l,h,R,"η","\\eta",!0);i(l,h,R,"θ","\\theta",!0);i(l,h,R,"ι","\\iota",!0);i(l,h,R,"κ","\\kappa",!0);i(l,h,R,"λ","\\lambda",!0);i(l,h,R,"μ","\\mu",!0);i(l,h,R,"ν","\\nu",!0);i(l,h,R,"ξ","\\xi",!0);i(l,h,R,"ο","\\omicron",!0);i(l,h,R,"π","\\pi",!0);i(l,h,R,"ρ","\\rho",!0);i(l,h,R,"σ","\\sigma",!0);i(l,h,R,"τ","\\tau",!0);i(l,h,R,"υ","\\upsilon",!0);i(l,h,R,"ϕ","\\phi",!0);i(l,h,R,"χ","\\chi",!0);i(l,h,R,"ψ","\\psi",!0);i(l,h,R,"ω","\\omega",!0);i(l,h,R,"ε","\\varepsilon",!0);i(l,h,R,"ϑ","\\vartheta",!0);i(l,h,R,"ϖ","\\varpi",!0);i(l,h,R,"ϱ","\\varrho",!0);i(l,h,R,"ς","\\varsigma",!0);i(l,h,R,"φ","\\varphi",!0);i(l,h,N,"∗","*",!0);i(l,h,N,"+","+");i(l,h,N,"−","-",!0);i(l,h,N,"⋅","\\cdot",!0);i(l,h,N,"∘","\\circ",!0);i(l,h,N,"÷","\\div",!0);i(l,h,N,"±","\\pm",!0);i(l,h,N,"×","\\times",!0);i(l,h,N,"∩","\\cap",!0);i(l,h,N,"∪","\\cup",!0);i(l,h,N,"∖","\\setminus",!0);i(l,h,N,"∧","\\land");i(l,h,N,"∨","\\lor");i(l,h,N,"∧","\\wedge",!0);i(l,h,N,"∨","\\vee",!0);i(l,h,v,"√","\\surd");i(l,h,m0,"⟨","\\langle",!0);i(l,h,m0,"∣","\\lvert");i(l,h,m0,"∥","\\lVert");i(l,h,i0,"?","?");i(l,h,i0,"!","!");i(l,h,i0,"⟩","\\rangle",!0);i(l,h,i0,"∣","\\rvert");i(l,h,i0,"∥","\\rVert");i(l,h,f,"=","=");i(l,h,f,":",":");i(l,h,f,"≈","\\approx",!0);i(l,h,f,"≅","\\cong",!0);i(l,h,f,"≥","\\ge");i(l,h,f,"≥","\\geq",!0);i(l,h,f,"←","\\gets");i(l,h,f,">","\\gt",!0);i(l,h,f,"∈","\\in",!0);i(l,h,f,"","\\@not");i(l,h,f,"⊂","\\subset",!0);i(l,h,f,"⊃","\\supset",!0);i(l,h,f,"⊆","\\subseteq",!0);i(l,h,f,"⊇","\\supseteq",!0);i(l,d,f,"⊈","\\nsubseteq",!0);i(l,d,f,"⊉","\\nsupseteq",!0);i(l,h,f,"⊨","\\models");i(l,h,f,"←","\\leftarrow",!0);i(l,h,f,"≤","\\le");i(l,h,f,"≤","\\leq",!0);i(l,h,f,"<","\\lt",!0);i(l,h,f,"→","\\rightarrow",!0);i(l,h,f,"→","\\to");i(l,d,f,"≱","\\ngeq",!0);i(l,d,f,"≰","\\nleq",!0);i(l,h,R0," ","\\ ");i(l,h,R0," ","\\space");i(l,h,R0," ","\\nobreakspace");i(k,h,R0," ","\\ ");i(k,h,R0," "," ");i(k,h,R0," ","\\space");i(k,h,R0," ","\\nobreakspace");i(l,h,R0,null,"\\nobreak");i(l,h,R0,null,"\\allowbreak");i(l,h,Ie,",",",");i(l,h,Ie,";",";");i(l,d,N,"⊼","\\barwedge",!0);i(l,d,N,"⊻","\\veebar",!0);i(l,h,N,"⊙","\\odot",!0);i(l,h,N,"⊕","\\oplus",!0);i(l,h,N,"⊗","\\otimes",!0);i(l,h,v,"∂","\\partial",!0);i(l,h,N,"⊘","\\oslash",!0);i(l,d,N,"⊚","\\circledcirc",!0);i(l,d,N,"⊡","\\boxdot",!0);i(l,h,N,"△","\\bigtriangleup");i(l,h,N,"▽","\\bigtriangledown");i(l,h,N,"†","\\dagger");i(l,h,N,"⋄","\\diamond");i(l,h,N,"⋆","\\star");i(l,h,N,"◃","\\triangleleft");i(l,h,N,"▹","\\triangleright");i(l,h,m0,"{","\\{");i(k,h,v,"{","\\{");i(k,h,v,"{","\\textbraceleft");i(l,h,i0,"}","\\}");i(k,h,v,"}","\\}");i(k,h,v,"}","\\textbraceright");i(l,h,m0,"{","\\lbrace");i(l,h,i0,"}","\\rbrace");i(l,h,m0,"[","\\lbrack",!0);i(k,h,v,"[","\\lbrack",!0);i(l,h,i0,"]","\\rbrack",!0);i(k,h,v,"]","\\rbrack",!0);i(l,h,m0,"(","\\lparen",!0);i(l,h,i0,")","\\rparen",!0);i(k,h,v,"<","\\textless",!0);i(k,h,v,">","\\textgreater",!0);i(l,h,m0,"⌊","\\lfloor",!0);i(l,h,i0,"⌋","\\rfloor",!0);i(l,h,m0,"⌈","\\lceil",!0);i(l,h,i0,"⌉","\\rceil",!0);i(l,h,v,"\\","\\backslash");i(l,h,v,"∣","|");i(l,h,v,"∣","\\vert");i(k,h,v,"|","\\textbar",!0);i(l,h,v,"∥","\\|");i(l,h,v,"∥","\\Vert");i(k,h,v,"∥","\\textbardbl");i(k,h,v,"~","\\textasciitilde");i(k,h,v,"\\","\\textbackslash");i(k,h,v,"^","\\textasciicircum");i(l,h,f,"↑","\\uparrow",!0);i(l,h,f,"⇑","\\Uparrow",!0);i(l,h,f,"↓","\\downarrow",!0);i(l,h,f,"⇓","\\Downarrow",!0);i(l,h,f,"↕","\\updownarrow",!0);i(l,h,f,"⇕","\\Updownarrow",!0);i(l,h,_,"∐","\\coprod");i(l,h,_,"⋁","\\bigvee");i(l,h,_,"⋀","\\bigwedge");i(l,h,_,"⨄","\\biguplus");i(l,h,_,"⋂","\\bigcap");i(l,h,_,"⋃","\\bigcup");i(l,h,_,"∫","\\int");i(l,h,_,"∫","\\intop");i(l,h,_,"∬","\\iint");i(l,h,_,"∭","\\iiint");i(l,h,_,"∏","\\prod");i(l,h,_,"∑","\\sum");i(l,h,_,"⨂","\\bigotimes");i(l,h,_,"⨁","\\bigoplus");i(l,h,_,"⨀","\\bigodot");i(l,h,_,"∮","\\oint");i(l,h,_,"∯","\\oiint");i(l,h,_,"∰","\\oiiint");i(l,h,_,"⨆","\\bigsqcup");i(l,h,_,"∫","\\smallint");i(k,h,te,"…","\\textellipsis");i(l,h,te,"…","\\mathellipsis");i(k,h,te,"…","\\ldots",!0);i(l,h,te,"…","\\ldots",!0);i(l,h,te,"⋯","\\@cdots",!0);i(l,h,te,"⋱","\\ddots",!0);i(l,h,v,"⋮","\\varvdots");i(l,h,W,"ˊ","\\acute");i(l,h,W,"ˋ","\\grave");i(l,h,W,"¨","\\ddot");i(l,h,W,"~","\\tilde");i(l,h,W,"ˉ","\\bar");i(l,h,W,"˘","\\breve");i(l,h,W,"ˇ","\\check");i(l,h,W,"^","\\hat");i(l,h,W,"⃗","\\vec");i(l,h,W,"˙","\\dot");i(l,h,W,"˚","\\mathring");i(l,h,R,"","\\@imath");i(l,h,R,"","\\@jmath");i(l,h,v,"ı","ı");i(l,h,v,"ȷ","ȷ");i(k,h,v,"ı","\\i",!0);i(k,h,v,"ȷ","\\j",!0);i(k,h,v,"ß","\\ss",!0);i(k,h,v,"æ","\\ae",!0);i(k,h,v,"œ","\\oe",!0);i(k,h,v,"ø","\\o",!0);i(k,h,v,"Æ","\\AE",!0);i(k,h,v,"Œ","\\OE",!0);i(k,h,v,"Ø","\\O",!0);i(k,h,W,"ˊ","\\'");i(k,h,W,"ˋ","\\`");i(k,h,W,"ˆ","\\^");i(k,h,W,"˜","\\~");i(k,h,W,"ˉ","\\=");i(k,h,W,"˘","\\u");i(k,h,W,"˙","\\.");i(k,h,W,"¸","\\c");i(k,h,W,"˚","\\r");i(k,h,W,"ˇ","\\v");i(k,h,W,"¨",'\\"');i(k,h,W,"˝","\\H");i(k,h,W,"◯","\\textcircled");var xr={"--":!0,"---":!0,"``":!0,"''":!0};i(k,h,v,"–","--",!0);i(k,h,v,"–","\\textendash");i(k,h,v,"—","---",!0);i(k,h,v,"—","\\textemdash");i(k,h,v,"‘","`",!0);i(k,h,v,"‘","\\textquoteleft");i(k,h,v,"’","'",!0);i(k,h,v,"’","\\textquoteright");i(k,h,v,"“","``",!0);i(k,h,v,"“","\\textquotedblleft");i(k,h,v,"”","''",!0);i(k,h,v,"”","\\textquotedblright");i(l,h,v,"°","\\degree",!0);i(k,h,v,"°","\\degree");i(k,h,v,"°","\\textdegree",!0);i(l,h,v,"£","\\pounds");i(l,h,v,"£","\\mathsterling",!0);i(k,h,v,"£","\\pounds");i(k,h,v,"£","\\textsterling",!0);i(l,d,v,"✠","\\maltese");i(k,d,v,"✠","\\maltese");var Pt='0123456789/@."';for(var Ye=0;Ye<Pt.length;Ye++){var Gt=Pt.charAt(Ye);i(l,h,v,Gt,Gt)}var Vt='0123456789!@*()-=+";:?/.,';for(var Xe=0;Xe<Vt.length;Xe++){var Ut=Vt.charAt(Xe);i(k,h,v,Ut,Ut)}var Ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var $e=0;$e<Ne.length;$e++){var be=Ne.charAt($e);i(l,h,R,be,be),i(k,h,v,be,be)}i(l,d,v,"C","ℂ");i(k,d,v,"C","ℂ");i(l,d,v,"H","ℍ");i(k,d,v,"H","ℍ");i(l,d,v,"N","ℕ");i(k,d,v,"N","ℕ");i(l,d,v,"P","ℙ");i(k,d,v,"P","ℙ");i(l,d,v,"Q","ℚ");i(k,d,v,"Q","ℚ");i(l,d,v,"R","ℝ");i(k,d,v,"R","ℝ");i(l,d,v,"Z","ℤ");i(k,d,v,"Z","ℤ");i(l,h,R,"h","ℎ");i(k,h,R,"h","ℎ");var D="";for(var a0=0;a0<Ne.length;a0++){var J=Ne.charAt(a0);D=String.fromCharCode(55349,56320+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56372+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56424+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56580+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56684+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56736+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56788+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56840+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56944+a0),i(l,h,R,J,D),i(k,h,v,J,D),a0<26&&(D=String.fromCharCode(55349,56632+a0),i(l,h,R,J,D),i(k,h,v,J,D),D=String.fromCharCode(55349,56476+a0),i(l,h,R,J,D),i(k,h,v,J,D))}D="𝕜";i(l,h,R,"k",D);i(k,h,v,"k",D);for(var Y0=0;Y0<10;Y0++){var H0=Y0.toString();D=String.fromCharCode(55349,57294+Y0),i(l,h,R,H0,D),i(k,h,v,H0,D),D=String.fromCharCode(55349,57314+Y0),i(l,h,R,H0,D),i(k,h,v,H0,D),D=String.fromCharCode(55349,57324+Y0),i(l,h,R,H0,D),i(k,h,v,H0,D),D=String.fromCharCode(55349,57334+Y0),i(l,h,R,H0,D),i(k,h,v,H0,D)}var st="ÐÞþ";for(var We=0;We<st.length;We++){var ye=st.charAt(We);i(l,h,R,ye,ye),i(k,h,v,ye,ye)}var we=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Yt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Ka=function(e,t){var a=e.charCodeAt(0),n=e.charCodeAt(1),s=(a-55296)*1024+(n-56320)+65536,o=t==="math"?0:1;if(119808<=s&&s<120484){var m=Math.floor((s-119808)/26);return[we[m][2],we[m][o]]}else if(120782<=s&&s<=120831){var c=Math.floor((s-120782)/10);return[Yt[c][2],Yt[c][o]]}else{if(s===120485||s===120486)return[we[0][2],we[0][o]];if(120486<s&&s<120782)return["",""];throw new M("Unsupported character: "+e)}},De=function(e,t,a){return $[a][e]&&$[a][e].replace&&(e=$[a][e].replace),{value:e,metrics:ft(e,t,a)}},g0=function(e,t,a,n,s){var o=De(e,t,a),m=o.metrics;e=o.value;var c;if(m){var p=m.italic;(a==="text"||n&&n.font==="mathit")&&(p=0),c=new f0(e,m.height,m.depth,p,m.skew,m.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+t+"' and mode '"+a+"'")),c=new f0(e,0,0,0,0,0,s);if(n){c.maxFontSize=n.sizeMultiplier,n.style.isTight()&&c.classes.push("mtight");var g=n.getColor();g&&(c.style.color=g)}return c},Ja=function(e,t,a,n){return n===void 0&&(n=[]),a.font==="boldsymbol"&&De(e,"Main-Bold",t).metrics?g0(e,"Main-Bold",t,a,n.concat(["mathbf"])):e==="\\"||$[t][e].font==="main"?g0(e,"Main-Regular",t,a,n):g0(e,"AMS-Regular",t,a,n.concat(["amsrm"]))},Qa=function(e,t,a,n,s){return s!=="textord"&&De(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},_a=function(e,t,a){var n=e.mode,s=e.text,o=["mord"],m=n==="math"||n==="text"&&t.font,c=m?t.font:t.fontFamily,p="",g="";if(s.charCodeAt(0)===55349&&([p,g]=Ka(s,n)),p.length>0)return g0(s,p,n,t,o.concat(g));if(c){var y,x;if(c==="boldsymbol"){var w=Qa(s,n,t,o,a);y=w.fontName,x=[w.fontClass]}else m?(y=Mr[c].fontName,x=[c]):(y=xe(c,t.fontWeight,t.fontShape),x=[c,t.fontWeight,t.fontShape]);if(De(s,y,n).metrics)return g0(s,y,n,t,o.concat(x));if(xr.hasOwnProperty(s)&&y.slice(0,10)==="Typewriter"){for(var z=[],A=0;A<s.length;A++)z.push(g0(s[A],y,n,t,o.concat(x)));return Sr(z)}}if(a==="mathord")return g0(s,"Math-Italic",n,t,o.concat(["mathnormal"]));if(a==="textord"){var C=$[n][s]&&$[n][s].font;if(C==="ams"){var q=xe("amsrm",t.fontWeight,t.fontShape);return g0(s,q,n,t,o.concat("amsrm",t.fontWeight,t.fontShape))}else if(C==="main"||!C){var O=xe("textrm",t.fontWeight,t.fontShape);return g0(s,O,n,t,o.concat(t.fontWeight,t.fontShape))}else{var H=xe(C,t.fontWeight,t.fontShape);return g0(s,H,n,t,o.concat(H,t.fontWeight,t.fontShape))}}else throw new Error("unexpected type: "+a+" in makeOrd")},e1=(r,e)=>{if(F0(r.classes)!==F0(e.classes)||r.skew!==e.skew||r.maxFontSize!==e.maxFontSize)return!1;if(r.classes.length===1){var t=r.classes[0];if(t==="mbin"||t==="mord")return!1}for(var a in r.style)if(r.style.hasOwnProperty(a)&&r.style[a]!==e.style[a])return!1;for(var n in e.style)if(e.style.hasOwnProperty(n)&&r.style[n]!==e.style[n])return!1;return!0},t1=r=>{for(var e=0;e<r.length-1;e++){var t=r[e],a=r[e+1];t instanceof f0&&a instanceof f0&&e1(t,a)&&(t.text+=a.text,t.height=Math.max(t.height,a.height),t.depth=Math.max(t.depth,a.depth),t.italic=a.italic,r.splice(e+1,1),e--)}return r},vt=function(e){for(var t=0,a=0,n=0,s=0;s<e.children.length;s++){var o=e.children[s];o.height>t&&(t=o.height),o.depth>a&&(a=o.depth),o.maxFontSize>n&&(n=o.maxFontSize)}e.height=t,e.depth=a,e.maxFontSize=n},l0=function(e,t,a,n){var s=new ue(e,t,a,n);return vt(s),s},kr=(r,e,t,a)=>new ue(r,e,t,a),r1=function(e,t,a){var n=l0([e],[],t);return n.height=Math.max(a||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=T(n.height),n.maxFontSize=1,n},a1=function(e,t,a,n){var s=new pt(e,t,a,n);return vt(s),s},Sr=function(e){var t=new me(e);return vt(t),t},n1=function(e,t){return e instanceof me?l0([],[e],t):e},i1=function(e){if(e.positionType==="individualShift"){for(var t=e.children,a=[t[0]],n=-t[0].shift-t[0].elem.depth,s=n,o=1;o<t.length;o++){var m=-t[o].shift-s-t[o].elem.depth,c=m-(t[o-1].elem.height+t[o-1].elem.depth);s=s+m,a.push({type:"kern",size:c}),a.push(t[o])}return{children:a,depth:n}}var p;if(e.positionType==="top"){for(var g=e.positionData,y=0;y<e.children.length;y++){var x=e.children[y];g-=x.type==="kern"?x.size:x.elem.height+x.elem.depth}p=g}else if(e.positionType==="bottom")p=-e.positionData;else{var w=e.children[0];if(w.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")p=-w.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")p=-w.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:p}},s1=function(e,t){for(var{children:a,depth:n}=i1(e),s=0,o=0;o<a.length;o++){var m=a[o];if(m.type==="elem"){var c=m.elem;s=Math.max(s,c.maxFontSize,c.height)}}s+=2;var p=l0(["pstrut"],[]);p.style.height=T(s);for(var g=[],y=n,x=n,w=n,z=0;z<a.length;z++){var A=a[z];if(A.type==="kern")w+=A.size;else{var C=A.elem,q=A.wrapperClasses||[],O=A.wrapperStyle||{},H=l0(q,[p,C],void 0,O);H.style.top=T(-s-w-C.depth),A.marginLeft&&(H.style.marginLeft=A.marginLeft),A.marginRight&&(H.style.marginRight=A.marginRight),g.push(H),w+=C.height+C.depth}y=Math.min(y,w),x=Math.max(x,w)}var V=l0(["vlist"],g);V.style.height=T(x);var F;if(y<0){var U=l0([],[]),G=l0(["vlist"],[U]);G.style.height=T(-y);var j=l0(["vlist-s"],[new f0("")]);F=[l0(["vlist-r"],[V,j]),l0(["vlist-r"],[G])]}else F=[l0(["vlist-r"],[V])];var Y=l0(["vlist-t"],F);return F.length===2&&Y.classes.push("vlist-t2"),Y.height=x,Y.depth=-y,Y},l1=(r,e)=>{var t=l0(["mspace"],[],e),a=K(r,e);return t.style.marginRight=T(a),t},xe=function(e,t,a){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}var s;return t==="textbf"&&a==="textit"?s="BoldItalic":t==="textbf"?s="Bold":t==="textit"?s="Italic":s="Regular",n+"-"+s},Mr={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},zr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},o1=function(e,t){var[a,n,s]=zr[e],o=new P0(a),m=new N0([o],{width:T(n),height:T(s),style:"width:"+T(n),viewBox:"0 0 "+1e3*n+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),c=kr(["overlay"],[m],t);return c.height=s,c.style.height=T(s),c.style.width=T(n),c},b={fontMap:Mr,makeSymbol:g0,mathsym:Ja,makeSpan:l0,makeSvgSpan:kr,makeLineSpan:r1,makeAnchor:a1,makeFragment:Sr,wrapFragment:n1,makeVList:s1,makeOrd:_a,makeGlue:l1,staticSvg:o1,svgData:zr,tryCombineChars:t1},Z={number:3,unit:"mu"},X0={number:4,unit:"mu"},z0={number:5,unit:"mu"},h1={mord:{mop:Z,mbin:X0,mrel:z0,minner:Z},mop:{mord:Z,mop:Z,mrel:z0,minner:Z},mbin:{mord:X0,mop:X0,mopen:X0,minner:X0},mrel:{mord:z0,mop:z0,mopen:z0,minner:z0},mopen:{},mclose:{mop:Z,mbin:X0,mrel:z0,minner:Z},mpunct:{mord:Z,mop:Z,mrel:z0,mopen:Z,mclose:Z,mpunct:Z,minner:Z},minner:{mord:Z,mop:Z,mbin:X0,mrel:z0,mopen:Z,mpunct:Z,minner:Z}},m1={mord:{mop:Z},mop:{mord:Z,mop:Z},mbin:{},mrel:{},mopen:{},mclose:{mop:Z},mpunct:{},minner:{mop:Z}},Tr={},Ce={},qe={};function B(r){for(var{type:e,names:t,props:a,handler:n,htmlBuilder:s,mathmlBuilder:o}=r,m={type:e,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===void 0?!0:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:n},c=0;c<t.length;++c)Tr[t[c]]=m;e&&(s&&(Ce[e]=s),o&&(qe[e]=o))}function $0(r){var{type:e,htmlBuilder:t,mathmlBuilder:a}=r;B({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:t,mathmlBuilder:a})}var Re=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},Q=function(e){return e.type==="ordgroup"?e.body:[e]},C0=b.makeSpan,u1=["leftmost","mbin","mopen","mrel","mop","mpunct"],c1=["rightmost","mrel","mclose","mpunct"],d1={display:I.DISPLAY,text:I.TEXT,script:I.SCRIPT,scriptscript:I.SCRIPTSCRIPT},f1={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},t0=function(e,t,a,n){n===void 0&&(n=[null,null]);for(var s=[],o=0;o<e.length;o++){var m=P(e[o],t);if(m instanceof me){var c=m.children;s.push(...c)}else s.push(m)}if(b.tryCombineChars(s),!a)return s;var p=t;if(e.length===1){var g=e[0];g.type==="sizing"?p=t.havingSize(g.size):g.type==="styling"&&(p=t.havingStyle(d1[g.style]))}var y=C0([n[0]||"leftmost"],[],t),x=C0([n[1]||"rightmost"],[],t),w=a==="root";return Xt(s,(z,A)=>{var C=A.classes[0],q=z.classes[0];C==="mbin"&&E.contains(c1,q)?A.classes[0]="mord":q==="mbin"&&E.contains(u1,C)&&(z.classes[0]="mord")},{node:y},x,w),Xt(s,(z,A)=>{var C=lt(A),q=lt(z),O=C&&q?z.hasClass("mtight")?m1[C][q]:h1[C][q]:null;if(O)return b.makeGlue(O,p)},{node:y},x,w),s},Xt=function r(e,t,a,n,s){n&&e.push(n);for(var o=0;o<e.length;o++){var m=e[o],c=Ar(m);if(c){r(c.children,t,a,null,s);continue}var p=!m.hasClass("mspace");if(p){var g=t(m,a.node);g&&(a.insertAfter?a.insertAfter(g):(e.unshift(g),o++))}p?a.node=m:s&&m.hasClass("newline")&&(a.node=C0(["leftmost"])),a.insertAfter=(y=>x=>{e.splice(y+1,0,x),o++})(o)}n&&e.pop()},Ar=function(e){return e instanceof me||e instanceof pt||e instanceof ue&&e.hasClass("enclosing")?e:null},p1=function r(e,t){var a=Ar(e);if(a){var n=a.children;if(n.length){if(t==="right")return r(n[n.length-1],"right");if(t==="left")return r(n[0],"left")}}return e},lt=function(e,t){return e?(t&&(e=p1(e,t)),f1[e.classes[0]]||null):null},oe=function(e,t){var a=["nulldelimiter"].concat(e.baseSizingClasses());return C0(t.concat(a))},P=function(e,t,a){if(!e)return C0();if(Ce[e.type]){var n=Ce[e.type](e,t);if(a&&t.size!==a.size){n=C0(t.sizingClasses(a),[n],t);var s=t.sizeMultiplier/a.sizeMultiplier;n.height*=s,n.depth*=s}return n}else throw new M("Got group of unknown type: '"+e.type+"'")};function ke(r,e){var t=C0(["base"],r,e),a=C0(["strut"]);return a.style.height=T(t.height+t.depth),t.depth&&(a.style.verticalAlign=T(-t.depth)),t.children.unshift(a),t}function ot(r,e){var t=null;r.length===1&&r[0].type==="tag"&&(t=r[0].tag,r=r[0].body);var a=t0(r,e,"root"),n;a.length===2&&a[1].hasClass("tag")&&(n=a.pop());for(var s=[],o=[],m=0;m<a.length;m++)if(o.push(a[m]),a[m].hasClass("mbin")||a[m].hasClass("mrel")||a[m].hasClass("allowbreak")){for(var c=!1;m<a.length-1&&a[m+1].hasClass("mspace")&&!a[m+1].hasClass("newline");)m++,o.push(a[m]),a[m].hasClass("nobreak")&&(c=!0);c||(s.push(ke(o,e)),o=[])}else a[m].hasClass("newline")&&(o.pop(),o.length>0&&(s.push(ke(o,e)),o=[]),s.push(a[m]));o.length>0&&s.push(ke(o,e));var p;t?(p=ke(t0(t,e,!0)),p.classes=["tag"],s.push(p)):n&&s.push(n);var g=C0(["katex-html"],s);if(g.setAttribute("aria-hidden","true"),p){var y=p.children[0];y.style.height=T(g.height+g.depth),g.depth&&(y.style.verticalAlign=T(-g.depth))}return g}function Br(r){return new me(r)}class c0{constructor(e,t,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=a||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=F0(this.classes));for(var a=0;a<this.children.length;a++)e.appendChild(this.children[a].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=E.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+E.escape(F0(this.classes))+'"'),e+=">";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}}class ie{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return E.escape(this.toText())}toText(){return this.text}}class v1{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character=" ":e>=-.05556&&e<=-.05555?this.character=" ":e>=-.1667&&e<=-.1666?this.character=" ":e>=-.2223&&e<=-.2222?this.character=" ":e>=-.2778&&e<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",T(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+T(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var S={MathNode:c0,TextNode:ie,SpaceNode:v1,newDocumentFragment:Br},p0=function(e,t,a){return $[t][e]&&$[t][e].replace&&e.charCodeAt(0)!==55349&&!(xr.hasOwnProperty(e)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(e=$[t][e].replace),new S.TextNode(e)},gt=function(e){return e.length===1?e[0]:new S.MathNode("mrow",e)},bt=function(e,t){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold";var a=t.font;if(!a||a==="mathnormal")return null;var n=e.mode;if(a==="mathit")return"italic";if(a==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(a==="mathbf")return"bold";if(a==="mathbb")return"double-struck";if(a==="mathfrak")return"fraktur";if(a==="mathscr"||a==="mathcal")return"script";if(a==="mathsf")return"sans-serif";if(a==="mathtt")return"monospace";var s=e.text;if(E.contains(["\\imath","\\jmath"],s))return null;$[n][s]&&$[n][s].replace&&(s=$[n][s].replace);var o=b.fontMap[a].fontName;return ft(s,o,n)?b.fontMap[a].variant:null},o0=function(e,t,a){if(e.length===1){var n=X(e[0],t);return a&&n instanceof c0&&n.type==="mo"&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var s=[],o,m=0;m<e.length;m++){var c=X(e[m],t);if(c instanceof c0&&o instanceof c0){if(c.type==="mtext"&&o.type==="mtext"&&c.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...c.children);continue}else if(c.type==="mn"&&o.type==="mn"){o.children.push(...c.children);continue}else if(c.type==="mi"&&c.children.length===1&&o.type==="mn"){var p=c.children[0];if(p instanceof ie&&p.text==="."){o.children.push(...c.children);continue}}else if(o.type==="mi"&&o.children.length===1){var g=o.children[0];if(g instanceof ie&&g.text==="̸"&&(c.type==="mo"||c.type==="mi"||c.type==="mn")){var y=c.children[0];y instanceof ie&&y.text.length>0&&(y.text=y.text.slice(0,1)+"̸"+y.text.slice(1),s.pop())}}}s.push(c),o=c}return s},G0=function(e,t,a){return gt(o0(e,t,a))},X=function(e,t){if(!e)return new S.MathNode("mrow");if(qe[e.type]){var a=qe[e.type](e,t);return a}else throw new M("Got group of unknown type: '"+e.type+"'")};function $t(r,e,t,a,n){var s=o0(r,t),o;s.length===1&&s[0]instanceof c0&&E.contains(["mrow","mtable"],s[0].type)?o=s[0]:o=new S.MathNode("mrow",s);var m=new S.MathNode("annotation",[new S.TextNode(e)]);m.setAttribute("encoding","application/x-tex");var c=new S.MathNode("semantics",[o,m]),p=new S.MathNode("math",[c]);p.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&p.setAttribute("display","block");var g=n?"katex":"katex-mathml";return b.makeSpan([g],[p])}var Nr=function(e){return new T0({style:e.displayMode?I.DISPLAY:I.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Cr=function(e,t){if(t.displayMode){var a=["katex-display"];t.leqno&&a.push("leqno"),t.fleqn&&a.push("fleqn"),e=b.makeSpan(a,[e])}return e},g1=function(e,t,a){var n=Nr(a),s;if(a.output==="mathml")return $t(e,t,n,a.displayMode,!0);if(a.output==="html"){var o=ot(e,n);s=b.makeSpan(["katex"],[o])}else{var m=$t(e,t,n,a.displayMode,!1),c=ot(e,n);s=b.makeSpan(["katex"],[m,c])}return Cr(s,a)},b1=function(e,t,a){var n=Nr(a),s=ot(e,n),o=b.makeSpan(["katex"],[s]);return Cr(o,a)},y1={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},w1=function(e){var t=new S.MathNode("mo",[new S.TextNode(y1[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},x1={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},k1=function(e){return e.type==="ordgroup"?e.body.length:1},S1=function(e,t){function a(){var m=4e5,c=e.label.slice(1);if(E.contains(["widehat","widecheck","widetilde","utilde"],c)){var p=e,g=k1(p.base),y,x,w;if(g>5)c==="widehat"||c==="widecheck"?(y=420,m=2364,w=.42,x=c+"4"):(y=312,m=2340,w=.34,x="tilde4");else{var z=[1,1,2,2,3,3][g];c==="widehat"||c==="widecheck"?(m=[0,1062,2364,2364,2364][z],y=[0,239,300,360,420][z],w=[0,.24,.3,.3,.36,.42][z],x=c+z):(m=[0,600,1033,2339,2340][z],y=[0,260,286,306,312][z],w=[0,.26,.286,.3,.306,.34][z],x="tilde"+z)}var A=new P0(x),C=new N0([A],{width:"100%",height:T(w),viewBox:"0 0 "+m+" "+y,preserveAspectRatio:"none"});return{span:b.makeSvgSpan([],[C],t),minWidth:0,height:w}}else{var q=[],O=x1[c],[H,V,F]=O,U=F/1e3,G=H.length,j,Y;if(G===1){var M0=O[3];j=["hide-tail"],Y=[M0]}else if(G===2)j=["halfarrow-left","halfarrow-right"],Y=["xMinYMin","xMaxYMin"];else if(G===3)j=["brace-left","brace-center","brace-right"],Y=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+G+" children.");for(var r0=0;r0<G;r0++){var e0=new P0(H[r0]),U0=new N0([e0],{width:"400em",height:T(U),viewBox:"0 0 "+m+" "+F,preserveAspectRatio:Y[r0]+" slice"}),s0=b.makeSvgSpan([j[r0]],[U0],t);if(G===1)return{span:s0,minWidth:V,height:U};s0.style.height=T(U),q.push(s0)}return{span:b.makeSpan(["stretchy"],q,t),minWidth:V,height:U}}}var{span:n,minWidth:s,height:o}=a();return n.height=o,n.style.height=T(o),s>0&&(n.style.minWidth=T(s)),n},M1=function(e,t,a,n,s){var o,m=e.height+e.depth+a+n;if(/fbox|color|angl/.test(t)){if(o=b.makeSpan(["stretchy",t],[],s),t==="fbox"){var c=s.color&&s.getColor();c&&(o.style.borderColor=c)}}else{var p=[];/^[bx]cancel$/.test(t)&&p.push(new it({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&p.push(new it({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var g=new N0(p,{width:"100%",height:T(m)});o=b.makeSvgSpan([],[g],s)}return o.height=m,o.style.height=T(m),o},q0={encloseSpan:M1,mathMLnode:w1,svgSpan:S1};function L(r,e){if(!r||r.type!==e)throw new Error("Expected node of type "+e+", but got "+(r?"node of type "+r.type:String(r)));return r}function yt(r){var e=Ee(r);if(!e)throw new Error("Expected node of symbol group type, but got "+(r?"node of type "+r.type:String(r)));return e}function Ee(r){return r&&(r.type==="atom"||Za.hasOwnProperty(r.type))?r:null}var wt=(r,e)=>{var t,a,n;r&&r.type==="supsub"?(a=L(r.base,"accent"),t=a.base,r.base=t,n=Wa(P(r,e)),r.base=a):(a=L(r,"accent"),t=a.base);var s=P(t,e.havingCrampedStyle()),o=a.isShifty&&E.isCharacterBox(t),m=0;if(o){var c=E.getBaseElem(t),p=P(c,e.havingCrampedStyle());m=Ft(p).skew}var g=a.label==="\\c",y=g?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),x;if(a.isStretchy)x=q0.svgSpan(a,e),x=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:x,wrapperClasses:["svg-align"],wrapperStyle:m>0?{width:"calc(100% - "+T(2*m)+")",marginLeft:T(2*m)}:void 0}]},e);else{var w,z;a.label==="\\vec"?(w=b.staticSvg("vec",e),z=b.svgData.vec[1]):(w=b.makeOrd({mode:a.mode,text:a.label},e,"textord"),w=Ft(w),w.italic=0,z=w.width,g&&(y+=w.depth)),x=b.makeSpan(["accent-body"],[w]);var A=a.label==="\\textcircled";A&&(x.classes.push("accent-full"),y=s.height);var C=m;A||(C-=z/2),x.style.left=T(C),a.label==="\\textcircled"&&(x.style.top=".2em"),x=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-y},{type:"elem",elem:x}]},e)}var q=b.makeSpan(["mord","accent"],[x],e);return n?(n.children[0]=q,n.height=Math.max(q.height,n.height),n.classes[0]="mord",n):q},qr=(r,e)=>{var t=r.isStretchy?q0.mathMLnode(r.label):new S.MathNode("mo",[p0(r.label,r.mode)]),a=new S.MathNode("mover",[X(r.base,e),t]);return a.setAttribute("accent","true"),a},z1=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));B({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(r,e)=>{var t=Re(e[0]),a=!z1.test(r.funcName),n=!a||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:a,isShifty:n,base:t}},htmlBuilder:wt,mathmlBuilder:qr});B({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(r,e)=>{var t=e[0],a=r.parser.mode;return a==="math"&&(r.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+r.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:r.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:wt,mathmlBuilder:qr});B({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"accentUnder",mode:t.mode,label:a,base:n}},htmlBuilder:(r,e)=>{var t=P(r.base,e),a=q0.svgSpan(r,e),n=r.label==="\\utilde"?.12:0,s=b.makeVList({positionType:"top",positionData:t.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:t}]},e);return b.makeSpan(["mord","accentunder"],[s],e)},mathmlBuilder:(r,e)=>{var t=q0.mathMLnode(r.label),a=new S.MathNode("munder",[X(r.base,e),t]);return a.setAttribute("accentunder","true"),a}});var Se=r=>{var e=new S.MathNode("mpadded",r?[r]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};B({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:a,funcName:n}=r;return{type:"xArrow",mode:a.mode,label:n,body:e[0],below:t[0]}},htmlBuilder(r,e){var t=e.style,a=e.havingStyle(t.sup()),n=b.wrapFragment(P(r.body,a,e),e),s=r.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(s+"-arrow-pad");var o;r.below&&(a=e.havingStyle(t.sub()),o=b.wrapFragment(P(r.below,a,e),e),o.classes.push(s+"-arrow-pad"));var m=q0.svgSpan(r,e),c=-e.fontMetrics().axisHeight+.5*m.height,p=-e.fontMetrics().axisHeight-.5*m.height-.111;(n.depth>.25||r.label==="\\xleftequilibrium")&&(p-=n.depth);var g;if(o){var y=-e.fontMetrics().axisHeight+o.height+.5*m.height+.111;g=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:p},{type:"elem",elem:m,shift:c},{type:"elem",elem:o,shift:y}]},e)}else g=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:p},{type:"elem",elem:m,shift:c}]},e);return g.children[0].children[0].children[1].classes.push("svg-align"),b.makeSpan(["mrel","x-arrow"],[g],e)},mathmlBuilder(r,e){var t=q0.mathMLnode(r.label);t.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(r.body){var n=Se(X(r.body,e));if(r.below){var s=Se(X(r.below,e));a=new S.MathNode("munderover",[t,s,n])}else a=new S.MathNode("mover",[t,n])}else if(r.below){var o=Se(X(r.below,e));a=new S.MathNode("munder",[t,o])}else a=Se(),a=new S.MathNode("mover",[t,a]);return a}});var T1=b.makeSpan;function Rr(r,e){var t=t0(r.body,e,!0);return T1([r.mclass],t,e)}function Ir(r,e){var t,a=o0(r.body,e);return r.mclass==="minner"?t=new S.MathNode("mpadded",a):r.mclass==="mord"?r.isCharacterBox?(t=a[0],t.type="mi"):t=new S.MathNode("mi",a):(r.isCharacterBox?(t=a[0],t.type="mo"):t=new S.MathNode("mo",a),r.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):r.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):r.mclass==="mopen"||r.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):r.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}B({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"mclass",mode:t.mode,mclass:"m"+a.slice(5),body:Q(n),isCharacterBox:E.isCharacterBox(n)}},htmlBuilder:Rr,mathmlBuilder:Ir});var Oe=r=>{var e=r.type==="ordgroup"&&r.body.length?r.body[0]:r;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};B({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(r,e){var{parser:t}=r;return{type:"mclass",mode:t.mode,mclass:Oe(e[0]),body:Q(e[1]),isCharacterBox:E.isCharacterBox(e[1])}}});B({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(r,e){var{parser:t,funcName:a}=r,n=e[1],s=e[0],o;a!=="\\stackrel"?o=Oe(n):o="mrel";var m={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:Q(n)},c={type:"supsub",mode:s.mode,base:m,sup:a==="\\underset"?null:s,sub:a==="\\underset"?s:null};return{type:"mclass",mode:t.mode,mclass:o,body:[c],isCharacterBox:E.isCharacterBox(c)}},htmlBuilder:Rr,mathmlBuilder:Ir});B({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"pmb",mode:t.mode,mclass:Oe(e[0]),body:Q(e[0])}},htmlBuilder(r,e){var t=t0(r.body,e,!0),a=b.makeSpan([r.mclass],t,e);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(r,e){var t=o0(r.body,e),a=new S.MathNode("mstyle",t);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var A1={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Wt=()=>({type:"styling",body:[],mode:"math",style:"display"}),jt=r=>r.type==="textord"&&r.text==="@",B1=(r,e)=>(r.type==="mathord"||r.type==="atom")&&r.text===e;function N1(r,e,t){var a=A1[r];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(a,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var n=t.callFunction("\\\\cdleft",[e[0]],[]),s={type:"atom",text:a,mode:"math",family:"rel"},o=t.callFunction("\\Big",[s],[]),m=t.callFunction("\\\\cdright",[e[1]],[]),c={type:"ordgroup",mode:"math",body:[n,o,m]};return t.callFunction("\\\\cdparent",[c],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var p={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[p],[])}default:return{type:"textord",text:" ",mode:"math"}}}function C1(r){var e=[];for(r.gullet.beginGroup(),r.gullet.macros.set("\\cr","\\\\\\relax"),r.gullet.beginGroup();;){e.push(r.parseExpression(!1,"\\\\")),r.gullet.endGroup(),r.gullet.beginGroup();var t=r.fetch().text;if(t==="&"||t==="\\\\")r.consume();else if(t==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new M("Expected \\\\ or \\cr or \\end",r.nextToken)}for(var a=[],n=[a],s=0;s<e.length;s++){for(var o=e[s],m=Wt(),c=0;c<o.length;c++)if(!jt(o[c]))m.body.push(o[c]);else{a.push(m),c+=1;var p=yt(o[c]).text,g=new Array(2);if(g[0]={type:"ordgroup",mode:"math",body:[]},g[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(p)>-1))if("<>AV".indexOf(p)>-1)for(var y=0;y<2;y++){for(var x=!0,w=c+1;w<o.length;w++){if(B1(o[w],p)){x=!1,c=w;break}if(jt(o[w]))throw new M("Missing a "+p+" character to complete a CD arrow.",o[w]);g[y].body.push(o[w])}if(x)throw new M("Missing a "+p+" character to complete a CD arrow.",o[c])}else throw new M('Expected one of "<>AV=|." after @',o[c]);var z=N1(p,g,r),A={type:"styling",body:[z],mode:"math",style:"display"};a.push(A),m=Wt()}s%2===0?a.push(m):a.shift(),a=[],n.push(a)}r.gullet.endGroup(),r.gullet.endGroup();var C=new Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}B({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r;return{type:"cdlabel",mode:t.mode,side:a.slice(4),label:e[0]}},htmlBuilder(r,e){var t=e.havingStyle(e.style.sup()),a=b.wrapFragment(P(r.label,t,e),e);return a.classes.push("cd-label-"+r.side),a.style.bottom=T(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(r,e){var t=new S.MathNode("mrow",[X(r.label,e)]);return t=new S.MathNode("mpadded",[t]),t.setAttribute("width","0"),r.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new S.MathNode("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});B({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(r,e){var{parser:t}=r;return{type:"cdlabelparent",mode:t.mode,fragment:e[0]}},htmlBuilder(r,e){var t=b.wrapFragment(P(r.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(r,e){return new S.MathNode("mrow",[X(r.fragment,e)])}});B({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(r,e){for(var{parser:t}=r,a=L(e[0],"ordgroup"),n=a.body,s="",o=0;o<n.length;o++){var m=L(n[o],"textord");s+=m.text}var c=parseInt(s),p;if(isNaN(c))throw new M("\\@char has non-numeric argument "+s);if(c<0||c>=1114111)throw new M("\\@char with invalid code point "+s);return c<=65535?p=String.fromCharCode(c):(c-=65536,p=String.fromCharCode((c>>10)+55296,(c&1023)+56320)),{type:"textord",mode:t.mode,text:p}}});var Dr=(r,e)=>{var t=t0(r.body,e.withColor(r.color),!1);return b.makeFragment(t)},Er=(r,e)=>{var t=o0(r.body,e.withColor(r.color)),a=new S.MathNode("mstyle",t);return a.setAttribute("mathcolor",r.color),a};B({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(r,e){var{parser:t}=r,a=L(e[0],"color-token").color,n=e[1];return{type:"color",mode:t.mode,color:a,body:Q(n)}},htmlBuilder:Dr,mathmlBuilder:Er});B({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(r,e){var{parser:t,breakOnTokenText:a}=r,n=L(e[0],"color-token").color;t.gullet.macros.set("\\current@color",n);var s=t.parseExpression(!0,a);return{type:"color",mode:t.mode,color:n,body:s}},htmlBuilder:Dr,mathmlBuilder:Er});B({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(r,e,t){var{parser:a}=r,n=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,s=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:s,size:n&&L(n,"size").value}},htmlBuilder(r,e){var t=b.makeSpan(["mspace"],[],e);return r.newLine&&(t.classes.push("newline"),r.size&&(t.style.marginTop=T(K(r.size,e)))),t},mathmlBuilder(r,e){var t=new S.MathNode("mspace");return r.newLine&&(t.setAttribute("linebreak","newline"),r.size&&t.setAttribute("height",T(K(r.size,e)))),t}});var ht={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Or=r=>{var e=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new M("Expected a control sequence",r);return e},q1=r=>{var e=r.gullet.popToken();return e.text==="="&&(e=r.gullet.popToken(),e.text===" "&&(e=r.gullet.popToken())),e},Hr=(r,e,t,a)=>{var n=r.gullet.macros.get(t.text);n==null&&(t.noexpand=!0,n={tokens:[t],numArgs:0,unexpandable:!r.gullet.isExpandable(t.text)}),r.gullet.macros.set(e,n,a)};B({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(r){var{parser:e,funcName:t}=r;e.consumeSpaces();var a=e.fetch();if(ht[a.text])return(t==="\\global"||t==="\\\\globallong")&&(a.text=ht[a.text]),L(e.parseFunction(),"internal");throw new M("Invalid token after macro prefix",a)}});B({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=e.gullet.popToken(),n=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new M("Expected a control sequence",a);for(var s=0,o,m=[[]];e.gullet.future().text!=="{";)if(a=e.gullet.popToken(),a.text==="#"){if(e.gullet.future().text==="{"){o=e.gullet.future(),m[s].push("{");break}if(a=e.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new M('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==s+1)throw new M('Argument number "'+a.text+'" out of order');s++,m.push([])}else{if(a.text==="EOF")throw new M("Expected a macro definition");m[s].push(a.text)}var{tokens:c}=e.gullet.consumeArg();return o&&c.unshift(o),(t==="\\edef"||t==="\\xdef")&&(c=e.gullet.expandTokens(c),c.reverse()),e.gullet.macros.set(n,{tokens:c,numArgs:s,delimiters:m},t===ht[t]),{type:"internal",mode:e.mode}}});B({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=Or(e.gullet.popToken());e.gullet.consumeSpaces();var n=q1(e);return Hr(e,a,n,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});B({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=Or(e.gullet.popToken()),n=e.gullet.popToken(),s=e.gullet.popToken();return Hr(e,a,s,t==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}});var ne=function(e,t,a){var n=$.math[e]&&$.math[e].replace,s=ft(n||e,t,a);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return s},xt=function(e,t,a,n){var s=a.havingBaseStyle(t),o=b.makeSpan(n.concat(s.sizingClasses(a)),[e],a),m=s.sizeMultiplier/a.sizeMultiplier;return o.height*=m,o.depth*=m,o.maxFontSize=s.sizeMultiplier,o},Lr=function(e,t,a){var n=t.havingBaseStyle(a),s=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=T(s),e.height-=s,e.depth+=s},R1=function(e,t,a,n,s,o){var m=b.makeSymbol(e,"Main-Regular",s,n),c=xt(m,t,n,o);return a&&Lr(c,n,t),c},I1=function(e,t,a,n){return b.makeSymbol(e,"Size"+t+"-Regular",a,n)},Fr=function(e,t,a,n,s,o){var m=I1(e,t,s,n),c=xt(b.makeSpan(["delimsizing","size"+t],[m],n),I.TEXT,n,o);return a&&Lr(c,n,I.TEXT),c},je=function(e,t,a){var n;t==="Size1-Regular"?n="delim-size1":n="delim-size4";var s=b.makeSpan(["delimsizinginner",n],[b.makeSpan([],[b.makeSymbol(e,t,a)])]);return{type:"elem",elem:s}},Ze=function(e,t,a){var n=y0["Size4-Regular"][e.charCodeAt(0)]?y0["Size4-Regular"][e.charCodeAt(0)][4]:y0["Size1-Regular"][e.charCodeAt(0)][4],s=new P0("inner",Fa(e,Math.round(1e3*t))),o=new N0([s],{width:T(n),height:T(t),style:"width:"+T(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),m=b.makeSvgSpan([],[o],a);return m.height=t,m.style.height=T(t),m.style.width=T(n),{type:"elem",elem:m}},mt=.008,Me={type:"kern",size:-1*mt},D1=["|","\\lvert","\\rvert","\\vert"],E1=["\\|","\\lVert","\\rVert","\\Vert"],Pr=function(e,t,a,n,s,o){var m,c,p,g,y="",x=0;m=p=g=e,c=null;var w="Size1-Regular";e==="\\uparrow"?p=g="⏐":e==="\\Uparrow"?p=g="‖":e==="\\downarrow"?m=p="⏐":e==="\\Downarrow"?m=p="‖":e==="\\updownarrow"?(m="\\uparrow",p="⏐",g="\\downarrow"):e==="\\Updownarrow"?(m="\\Uparrow",p="‖",g="\\Downarrow"):E.contains(D1,e)?(p="∣",y="vert",x=333):E.contains(E1,e)?(p="∥",y="doublevert",x=556):e==="["||e==="\\lbrack"?(m="⎡",p="⎢",g="⎣",w="Size4-Regular",y="lbrack",x=667):e==="]"||e==="\\rbrack"?(m="⎤",p="⎥",g="⎦",w="Size4-Regular",y="rbrack",x=667):e==="\\lfloor"||e==="⌊"?(p=m="⎢",g="⎣",w="Size4-Regular",y="lfloor",x=667):e==="\\lceil"||e==="⌈"?(m="⎡",p=g="⎢",w="Size4-Regular",y="lceil",x=667):e==="\\rfloor"||e==="⌋"?(p=m="⎥",g="⎦",w="Size4-Regular",y="rfloor",x=667):e==="\\rceil"||e==="⌉"?(m="⎤",p=g="⎥",w="Size4-Regular",y="rceil",x=667):e==="("||e==="\\lparen"?(m="⎛",p="⎜",g="⎝",w="Size4-Regular",y="lparen",x=875):e===")"||e==="\\rparen"?(m="⎞",p="⎟",g="⎠",w="Size4-Regular",y="rparen",x=875):e==="\\{"||e==="\\lbrace"?(m="⎧",c="⎨",g="⎩",p="⎪",w="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(m="⎫",c="⎬",g="⎭",p="⎪",w="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(m="⎧",g="⎩",p="⎪",w="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(m="⎫",g="⎭",p="⎪",w="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(m="⎧",g="⎭",p="⎪",w="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(m="⎫",g="⎩",p="⎪",w="Size4-Regular");var z=ne(m,w,s),A=z.height+z.depth,C=ne(p,w,s),q=C.height+C.depth,O=ne(g,w,s),H=O.height+O.depth,V=0,F=1;if(c!==null){var U=ne(c,w,s);V=U.height+U.depth,F=2}var G=A+H+V,j=Math.max(0,Math.ceil((t-G)/(F*q))),Y=G+j*F*q,M0=n.fontMetrics().axisHeight;a&&(M0*=n.sizeMultiplier);var r0=Y/2-M0,e0=[];if(y.length>0){var U0=Y-A-H,s0=Math.round(Y*1e3),v0=Pa(y,Math.round(U0*1e3)),I0=new P0(y,v0),W0=(x/1e3).toFixed(3)+"em",j0=(s0/1e3).toFixed(3)+"em",Fe=new N0([I0],{width:W0,height:j0,viewBox:"0 0 "+x+" "+s0}),D0=b.makeSvgSpan([],[Fe],n);D0.height=s0/1e3,D0.style.width=W0,D0.style.height=j0,e0.push({type:"elem",elem:D0})}else{if(e0.push(je(g,w,s)),e0.push(Me),c===null){var E0=Y-A-H+2*mt;e0.push(Ze(p,E0,n))}else{var u0=(Y-A-H-V)/2+2*mt;e0.push(Ze(p,u0,n)),e0.push(Me),e0.push(je(c,w,s)),e0.push(Me),e0.push(Ze(p,u0,n))}e0.push(Me),e0.push(je(m,w,s))}var ae=n.havingBaseStyle(I.TEXT),Pe=b.makeVList({positionType:"bottom",positionData:r0,children:e0},ae);return xt(b.makeSpan(["delimsizing","mult"],[Pe],ae),I.TEXT,n,o)},Ke=80,Je=.08,Qe=function(e,t,a,n,s){var o=La(e,n,a),m=new P0(e,o),c=new N0([m],{width:"400em",height:T(t),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return b.makeSvgSpan(["hide-tail"],[c],s)},O1=function(e,t){var a=t.havingBaseSizing(),n=Yr("\\surd",e*a.sizeMultiplier,Ur,a),s=a.sizeMultiplier,o=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),m,c=0,p=0,g=0,y;return n.type==="small"?(g=1e3+1e3*o+Ke,e<1?s=1:e<1.4&&(s=.7),c=(1+o+Je)/s,p=(1+o)/s,m=Qe("sqrtMain",c,g,o,t),m.style.minWidth="0.853em",y=.833/s):n.type==="large"?(g=(1e3+Ke)*se[n.size],p=(se[n.size]+o)/s,c=(se[n.size]+o+Je)/s,m=Qe("sqrtSize"+n.size,c,g,o,t),m.style.minWidth="1.02em",y=1/s):(c=e+o+Je,p=e+o,g=Math.floor(1e3*e+o)+Ke,m=Qe("sqrtTall",c,g,o,t),m.style.minWidth="0.742em",y=1.056),m.height=p,m.style.height=T(c),{span:m,advanceWidth:y,ruleWidth:(t.fontMetrics().sqrtRuleThickness+o)*s}},Gr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],H1=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Vr=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],se=[0,1.2,1.8,2.4,3],L1=function(e,t,a,n,s){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),E.contains(Gr,e)||E.contains(Vr,e))return Fr(e,t,!1,a,n,s);if(E.contains(H1,e))return Pr(e,se[t],!1,a,n,s);throw new M("Illegal delimiter: '"+e+"'")},F1=[{type:"small",style:I.SCRIPTSCRIPT},{type:"small",style:I.SCRIPT},{type:"small",style:I.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],P1=[{type:"small",style:I.SCRIPTSCRIPT},{type:"small",style:I.SCRIPT},{type:"small",style:I.TEXT},{type:"stack"}],Ur=[{type:"small",style:I.SCRIPTSCRIPT},{type:"small",style:I.SCRIPT},{type:"small",style:I.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],G1=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},Yr=function(e,t,a,n){for(var s=Math.min(2,3-n.style.size),o=s;o<a.length&&a[o].type!=="stack";o++){var m=ne(e,G1(a[o]),"math"),c=m.height+m.depth;if(a[o].type==="small"){var p=n.havingBaseStyle(a[o].style);c*=p.sizeMultiplier}if(c>t)return a[o]}return a[a.length-1]},Xr=function(e,t,a,n,s,o){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var m;E.contains(Vr,e)?m=F1:E.contains(Gr,e)?m=Ur:m=P1;var c=Yr(e,t,m,n);return c.type==="small"?R1(e,c.style,a,n,s,o):c.type==="large"?Fr(e,c.size,a,n,s,o):Pr(e,t,a,n,s,o)},V1=function(e,t,a,n,s,o){var m=n.fontMetrics().axisHeight*n.sizeMultiplier,c=901,p=5/n.fontMetrics().ptPerEm,g=Math.max(t-m,a+m),y=Math.max(g/500*c,2*g-p);return Xr(e,y,!0,n,s,o)},B0={sqrtImage:O1,sizedDelim:L1,sizeToMaxHeight:se,customSizedDelim:Xr,leftRightDelim:V1},Zt={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},U1=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function He(r,e){var t=Ee(r);if(t&&E.contains(U1,t.text))return t;throw t?new M("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",r):new M("Invalid delimiter type '"+r.type+"'",r)}B({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(r,e)=>{var t=He(e[0],r);return{type:"delimsizing",mode:r.parser.mode,size:Zt[r.funcName].size,mclass:Zt[r.funcName].mclass,delim:t.text}},htmlBuilder:(r,e)=>r.delim==="."?b.makeSpan([r.mclass]):B0.sizedDelim(r.delim,r.size,e,r.mode,[r.mclass]),mathmlBuilder:r=>{var e=[];r.delim!=="."&&e.push(p0(r.delim,r.mode));var t=new S.MathNode("mo",e);r.mclass==="mopen"||r.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var a=T(B0.sizeToMaxHeight[r.size]);return t.setAttribute("minsize",a),t.setAttribute("maxsize",a),t}});function Kt(r){if(!r.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}B({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=r.parser.gullet.macros.get("\\current@color");if(t&&typeof t!="string")throw new M("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:r.parser.mode,delim:He(e[0],r).text,color:t}}});B({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=He(e[0],r),a=r.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var s=L(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:n,left:t.text,right:s.delim,rightColor:s.color}},htmlBuilder:(r,e)=>{Kt(r);for(var t=t0(r.body,e,!0,["mopen","mclose"]),a=0,n=0,s=!1,o=0;o<t.length;o++)t[o].isMiddle?s=!0:(a=Math.max(t[o].height,a),n=Math.max(t[o].depth,n));a*=e.sizeMultiplier,n*=e.sizeMultiplier;var m;if(r.left==="."?m=oe(e,["mopen"]):m=B0.leftRightDelim(r.left,a,n,e,r.mode,["mopen"]),t.unshift(m),s)for(var c=1;c<t.length;c++){var p=t[c],g=p.isMiddle;g&&(t[c]=B0.leftRightDelim(g.delim,a,n,g.options,r.mode,[]))}var y;if(r.right===".")y=oe(e,["mclose"]);else{var x=r.rightColor?e.withColor(r.rightColor):e;y=B0.leftRightDelim(r.right,a,n,x,r.mode,["mclose"])}return t.push(y),b.makeSpan(["minner"],t,e)},mathmlBuilder:(r,e)=>{Kt(r);var t=o0(r.body,e);if(r.left!=="."){var a=new S.MathNode("mo",[p0(r.left,r.mode)]);a.setAttribute("fence","true"),t.unshift(a)}if(r.right!=="."){var n=new S.MathNode("mo",[p0(r.right,r.mode)]);n.setAttribute("fence","true"),r.rightColor&&n.setAttribute("mathcolor",r.rightColor),t.push(n)}return gt(t)}});B({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=He(e[0],r);if(!r.parser.leftrightDepth)throw new M("\\middle without preceding \\left",t);return{type:"middle",mode:r.parser.mode,delim:t.text}},htmlBuilder:(r,e)=>{var t;if(r.delim===".")t=oe(e,[]);else{t=B0.sizedDelim(r.delim,1,e,r.mode,[]);var a={delim:r.delim,options:e};t.isMiddle=a}return t},mathmlBuilder:(r,e)=>{var t=r.delim==="\\vert"||r.delim==="|"?p0("|","text"):p0(r.delim,r.mode),a=new S.MathNode("mo",[t]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var kt=(r,e)=>{var t=b.wrapFragment(P(r.body,e),e),a=r.label.slice(1),n=e.sizeMultiplier,s,o=0,m=E.isCharacterBox(r.body);if(a==="sout")s=b.makeSpan(["stretchy","sout"]),s.height=e.fontMetrics().defaultRuleThickness/n,o=-.5*e.fontMetrics().xHeight;else if(a==="phase"){var c=K({number:.6,unit:"pt"},e),p=K({number:.35,unit:"ex"},e),g=e.havingBaseSizing();n=n/g.sizeMultiplier;var y=t.height+t.depth+c+p;t.style.paddingLeft=T(y/2+c);var x=Math.floor(1e3*y*n),w=Oa(x),z=new N0([new P0("phase",w)],{width:"400em",height:T(x/1e3),viewBox:"0 0 400000 "+x,preserveAspectRatio:"xMinYMin slice"});s=b.makeSvgSpan(["hide-tail"],[z],e),s.style.height=T(y),o=t.depth+c+p}else{/cancel/.test(a)?m||t.classes.push("cancel-pad"):a==="angl"?t.classes.push("anglpad"):t.classes.push("boxpad");var A=0,C=0,q=0;/box/.test(a)?(q=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),A=e.fontMetrics().fboxsep+(a==="colorbox"?0:q),C=A):a==="angl"?(q=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),A=4*q,C=Math.max(0,.25-t.depth)):(A=m?.2:0,C=A),s=q0.encloseSpan(t,a,A,C,e),/fbox|boxed|fcolorbox/.test(a)?(s.style.borderStyle="solid",s.style.borderWidth=T(q)):a==="angl"&&q!==.049&&(s.style.borderTopWidth=T(q),s.style.borderRightWidth=T(q)),o=t.depth+C,r.backgroundColor&&(s.style.backgroundColor=r.backgroundColor,r.borderColor&&(s.style.borderColor=r.borderColor))}var O;if(r.backgroundColor)O=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:t,shift:0}]},e);else{var H=/cancel|phase/.test(a)?["svg-align"]:[];O=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:H}]},e)}return/cancel/.test(a)&&(O.height=t.height,O.depth=t.depth),/cancel/.test(a)&&!m?b.makeSpan(["mord","cancel-lap"],[O],e):b.makeSpan(["mord"],[O],e)},St=(r,e)=>{var t=0,a=new S.MathNode(r.label.indexOf("colorbox")>-1?"mpadded":"menclose",[X(r.body,e)]);switch(r.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(t=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*t+"pt"),a.setAttribute("height","+"+2*t+"pt"),a.setAttribute("lspace",t+"pt"),a.setAttribute("voffset",t+"pt"),r.label==="\\fcolorbox"){var n=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);a.setAttribute("style","border: "+n+"em solid "+String(r.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return r.backgroundColor&&a.setAttribute("mathbackground",r.backgroundColor),a};B({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(r,e,t){var{parser:a,funcName:n}=r,s=L(e[0],"color-token").color,o=e[1];return{type:"enclose",mode:a.mode,label:n,backgroundColor:s,body:o}},htmlBuilder:kt,mathmlBuilder:St});B({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(r,e,t){var{parser:a,funcName:n}=r,s=L(e[0],"color-token").color,o=L(e[1],"color-token").color,m=e[2];return{type:"enclose",mode:a.mode,label:n,backgroundColor:o,borderColor:s,body:m}},htmlBuilder:kt,mathmlBuilder:St});B({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\fbox",body:e[0]}}});B({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"enclose",mode:t.mode,label:a,body:n}},htmlBuilder:kt,mathmlBuilder:St});B({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\angl",body:e[0]}}});var $r={};function x0(r){for(var{type:e,names:t,props:a,handler:n,htmlBuilder:s,mathmlBuilder:o}=r,m={type:e,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},c=0;c<t.length;++c)$r[t[c]]=m;s&&(Ce[e]=s),o&&(qe[e]=o)}var Wr={};function u(r,e){Wr[r]=e}function Jt(r){var e=[];r.consumeSpaces();var t=r.fetch().text;for(t==="\\relax"&&(r.consume(),r.consumeSpaces(),t=r.fetch().text);t==="\\hline"||t==="\\hdashline";)r.consume(),e.push(t==="\\hdashline"),r.consumeSpaces(),t=r.fetch().text;return e}var Le=r=>{var e=r.parser.settings;if(!e.displayMode)throw new M("{"+r.envName+"} can be used only in display mode.")};function Mt(r){if(r.indexOf("ed")===-1)return r.indexOf("*")===-1}function V0(r,e,t){var{hskipBeforeAndAfter:a,addJot:n,cols:s,arraystretch:o,colSeparationType:m,autoTag:c,singleRow:p,emptySingleRow:g,maxNumCols:y,leqno:x}=e;if(r.gullet.beginGroup(),p||r.gullet.macros.set("\\cr","\\\\\\relax"),!o){var w=r.gullet.expandMacroAsText("\\arraystretch");if(w==null)o=1;else if(o=parseFloat(w),!o||o<0)throw new M("Invalid \\arraystretch: "+w)}r.gullet.beginGroup();var z=[],A=[z],C=[],q=[],O=c!=null?[]:void 0;function H(){c&&r.gullet.macros.set("\\@eqnsw","1",!0)}function V(){O&&(r.gullet.macros.get("\\df@tag")?(O.push(r.subparse([new w0("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):O.push(!!c&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(H(),q.push(Jt(r));;){var F=r.parseExpression(!1,p?"\\end":"\\\\");r.gullet.endGroup(),r.gullet.beginGroup(),F={type:"ordgroup",mode:r.mode,body:F},t&&(F={type:"styling",mode:r.mode,style:t,body:[F]}),z.push(F);var U=r.fetch().text;if(U==="&"){if(y&&z.length===y){if(p||m)throw new M("Too many tab characters: &",r.nextToken);r.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}r.consume()}else if(U==="\\end"){V(),z.length===1&&F.type==="styling"&&F.body[0].body.length===0&&(A.length>1||!g)&&A.pop(),q.length<A.length+1&&q.push([]);break}else if(U==="\\\\"){r.consume();var G=void 0;r.gullet.future().text!==" "&&(G=r.parseSizeGroup(!0)),C.push(G?G.value:null),V(),q.push(Jt(r)),z=[],A.push(z),H()}else throw new M("Expected & or \\\\ or \\cr or \\end",r.nextToken)}return r.gullet.endGroup(),r.gullet.endGroup(),{type:"array",mode:r.mode,addJot:n,arraystretch:o,body:A,cols:s,rowGaps:C,hskipBeforeAndAfter:a,hLinesBeforeRow:q,colSeparationType:m,tags:O,leqno:x}}function zt(r){return r.slice(0,1)==="d"?"display":"text"}var k0=function(e,t){var a,n,s=e.body.length,o=e.hLinesBeforeRow,m=0,c=new Array(s),p=[],g=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),y=1/t.fontMetrics().ptPerEm,x=5*y;if(e.colSeparationType&&e.colSeparationType==="small"){var w=t.havingStyle(I.SCRIPT).sizeMultiplier;x=.2778*(w/t.sizeMultiplier)}var z=e.colSeparationType==="CD"?K({number:3,unit:"ex"},t):12*y,A=3*y,C=e.arraystretch*z,q=.7*C,O=.3*C,H=0;function V(pe){for(var ve=0;ve<pe.length;++ve)ve>0&&(H+=.25),p.push({pos:H,isDashed:pe[ve]})}for(V(o[0]),a=0;a<e.body.length;++a){var F=e.body[a],U=q,G=O;m<F.length&&(m=F.length);var j=new Array(F.length);for(n=0;n<F.length;++n){var Y=P(F[n],t);G<Y.depth&&(G=Y.depth),U<Y.height&&(U=Y.height),j[n]=Y}var M0=e.rowGaps[a],r0=0;M0&&(r0=K(M0,t),r0>0&&(r0+=O,G<r0&&(G=r0),r0=0)),e.addJot&&(G+=A),j.height=U,j.depth=G,H+=U,j.pos=H,H+=G+r0,c[a]=j,V(o[a+1])}var e0=H/2+t.fontMetrics().axisHeight,U0=e.cols||[],s0=[],v0,I0,W0=[];if(e.tags&&e.tags.some(pe=>pe))for(a=0;a<s;++a){var j0=c[a],Fe=j0.pos-e0,D0=e.tags[a],E0=void 0;D0===!0?E0=b.makeSpan(["eqn-num"],[],t):D0===!1?E0=b.makeSpan([],[],t):E0=b.makeSpan([],t0(D0,t,!0),t),E0.depth=j0.depth,E0.height=j0.height,W0.push({type:"elem",elem:E0,shift:Fe})}for(n=0,I0=0;n<m||I0<U0.length;++n,++I0){for(var u0=U0[I0]||{},ae=!0;u0.type==="separator";){if(ae||(v0=b.makeSpan(["arraycolsep"],[]),v0.style.width=T(t.fontMetrics().doubleRuleSep),s0.push(v0)),u0.separator==="|"||u0.separator===":"){var Pe=u0.separator==="|"?"solid":"dashed",Z0=b.makeSpan(["vertical-separator"],[],t);Z0.style.height=T(H),Z0.style.borderRightWidth=T(g),Z0.style.borderRightStyle=Pe,Z0.style.margin="0 "+T(-g/2);var Rt=H-e0;Rt&&(Z0.style.verticalAlign=T(-Rt)),s0.push(Z0)}else throw new M("Invalid separator type: "+u0.separator);I0++,u0=U0[I0]||{},ae=!1}if(!(n>=m)){var K0=void 0;(n>0||e.hskipBeforeAndAfter)&&(K0=E.deflt(u0.pregap,x),K0!==0&&(v0=b.makeSpan(["arraycolsep"],[]),v0.style.width=T(K0),s0.push(v0)));var J0=[];for(a=0;a<s;++a){var de=c[a],fe=de[n];if(fe){var ma=de.pos-e0;fe.depth=de.depth,fe.height=de.height,J0.push({type:"elem",elem:fe,shift:ma})}}J0=b.makeVList({positionType:"individualShift",children:J0},t),J0=b.makeSpan(["col-align-"+(u0.align||"c")],[J0]),s0.push(J0),(n<m-1||e.hskipBeforeAndAfter)&&(K0=E.deflt(u0.postgap,x),K0!==0&&(v0=b.makeSpan(["arraycolsep"],[]),v0.style.width=T(K0),s0.push(v0)))}}if(c=b.makeSpan(["mtable"],s0),p.length>0){for(var ua=b.makeLineSpan("hline",t,g),ca=b.makeLineSpan("hdashline",t,g),Ge=[{type:"elem",elem:c,shift:0}];p.length>0;){var It=p.pop(),Dt=It.pos-e0;It.isDashed?Ge.push({type:"elem",elem:ca,shift:Dt}):Ge.push({type:"elem",elem:ua,shift:Dt})}c=b.makeVList({positionType:"individualShift",children:Ge},t)}if(W0.length===0)return b.makeSpan(["mord"],[c],t);var Ve=b.makeVList({positionType:"individualShift",children:W0},t);return Ve=b.makeSpan(["tag"],[Ve],t),b.makeFragment([c,Ve])},Y1={c:"center ",l:"left ",r:"right "},S0=function(e,t){for(var a=[],n=new S.MathNode("mtd",[],["mtr-glue"]),s=new S.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<e.body.length;o++){for(var m=e.body[o],c=[],p=0;p<m.length;p++)c.push(new S.MathNode("mtd",[X(m[p],t)]));e.tags&&e.tags[o]&&(c.unshift(n),c.push(n),e.leqno?c.unshift(s):c.push(s)),a.push(new S.MathNode("mtr",c))}var g=new S.MathNode("mtable",a),y=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);g.setAttribute("rowspacing",T(y));var x="",w="";if(e.cols&&e.cols.length>0){var z=e.cols,A="",C=!1,q=0,O=z.length;z[0].type==="separator"&&(x+="top ",q=1),z[z.length-1].type==="separator"&&(x+="bottom ",O-=1);for(var H=q;H<O;H++)z[H].type==="align"?(w+=Y1[z[H].align],C&&(A+="none "),C=!0):z[H].type==="separator"&&C&&(A+=z[H].separator==="|"?"solid ":"dashed ",C=!1);g.setAttribute("columnalign",w.trim()),/[sd]/.test(A)&&g.setAttribute("columnlines",A.trim())}if(e.colSeparationType==="align"){for(var V=e.cols||[],F="",U=1;U<V.length;U++)F+=U%2?"0em ":"1em ";g.setAttribute("columnspacing",F.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?g.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?g.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?g.setAttribute("columnspacing","0.5em"):g.setAttribute("columnspacing","1em");var G="",j=e.hLinesBeforeRow;x+=j[0].length>0?"left ":"",x+=j[j.length-1].length>0?"right ":"";for(var Y=1;Y<j.length-1;Y++)G+=j[Y].length===0?"none ":j[Y][0]?"dashed ":"solid ";return/[sd]/.test(G)&&g.setAttribute("rowlines",G.trim()),x!==""&&(g=new S.MathNode("menclose",[g]),g.setAttribute("notation",x.trim())),e.arraystretch&&e.arraystretch<1&&(g=new S.MathNode("mstyle",[g]),g.setAttribute("scriptlevel","1")),g},jr=function(e,t){e.envName.indexOf("ed")===-1&&Le(e);var a=[],n=e.envName.indexOf("at")>-1?"alignat":"align",s=e.envName==="split",o=V0(e.parser,{cols:a,addJot:!0,autoTag:s?void 0:Mt(e.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display"),m,c=0,p={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var g="",y=0;y<t[0].body.length;y++){var x=L(t[0].body[y],"textord");g+=x.text}m=Number(g),c=m*2}var w=!c;o.body.forEach(function(q){for(var O=1;O<q.length;O+=2){var H=L(q[O],"styling"),V=L(H.body[0],"ordgroup");V.body.unshift(p)}if(w)c<q.length&&(c=q.length);else{var F=q.length/2;if(m<F)throw new M("Too many math in a row: "+("expected "+m+", but got "+F),q[0])}});for(var z=0;z<c;++z){var A="r",C=0;z%2===1?A="l":z>0&&w&&(C=1),a[z]={type:"align",align:A,pregap:C,postgap:0}}return o.colSeparationType=w?"align":"alignat",o};x0({type:"array",names:["array","darray"],props:{numArgs:1},handler(r,e){var t=Ee(e[0]),a=t?[e[0]]:L(e[0],"ordgroup").body,n=a.map(function(o){var m=yt(o),c=m.text;if("lcr".indexOf(c)!==-1)return{type:"align",align:c};if(c==="|")return{type:"separator",separator:"|"};if(c===":")return{type:"separator",separator:":"};throw new M("Unknown column alignment: "+c,o)}),s={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return V0(r.parser,s,zt(r.envName))},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(r){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[r.envName.replace("*","")],t="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:t}]};if(r.envName.charAt(r.envName.length-1)==="*"){var n=r.parser;if(n.consumeSpaces(),n.fetch().text==="["){if(n.consume(),n.consumeSpaces(),t=n.fetch().text,"lcr".indexOf(t)===-1)throw new M("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),a.cols=[{type:"align",align:t}]}}var s=V0(r.parser,a,zt(r.envName)),o=Math.max(0,...s.body.map(m=>m.length));return s.cols=new Array(o).fill({type:"align",align:t}),e?{type:"leftright",mode:r.mode,body:[s],left:e[0],right:e[1],rightColor:void 0}:s},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(r){var e={arraystretch:.5},t=V0(r.parser,e,"script");return t.colSeparationType="small",t},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["subarray"],props:{numArgs:1},handler(r,e){var t=Ee(e[0]),a=t?[e[0]]:L(e[0],"ordgroup").body,n=a.map(function(o){var m=yt(o),c=m.text;if("lc".indexOf(c)!==-1)return{type:"align",align:c};throw new M("Unknown column alignment: "+c,o)});if(n.length>1)throw new M("{subarray} can contain only one column");var s={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=V0(r.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new M("{subarray} can contain only one column");return s},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(r){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},t=V0(r.parser,e,zt(r.envName));return{type:"leftright",mode:r.mode,body:[t],left:r.envName.indexOf("r")>-1?".":"\\{",right:r.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:jr,htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(r){E.contains(["gather","gather*"],r.envName)&&Le(r);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Mt(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return V0(r.parser,e,"display")},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:jr,htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(r){Le(r);var e={autoTag:Mt(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return V0(r.parser,e,"display")},htmlBuilder:k0,mathmlBuilder:S0});x0({type:"array",names:["CD"],props:{numArgs:0},handler(r){return Le(r),C1(r.parser)},htmlBuilder:k0,mathmlBuilder:S0});u("\\nonumber","\\gdef\\@eqnsw{0}");u("\\notag","\\nonumber");B({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(r,e){throw new M(r.funcName+" valid only within array environment")}});var Qt=$r;B({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];if(n.type!=="ordgroup")throw new M("Invalid environment name",n);for(var s="",o=0;o<n.body.length;++o)s+=L(n.body[o],"textord").text;if(a==="\\begin"){if(!Qt.hasOwnProperty(s))throw new M("No such environment: "+s,n);var m=Qt[s],{args:c,optArgs:p}=t.parseArguments("\\begin{"+s+"}",m),g={mode:t.mode,envName:s,parser:t},y=m.handler(g,c,p);t.expect("\\end",!1);var x=t.nextToken,w=L(t.parseFunction(),"environment");if(w.name!==s)throw new M("Mismatch: \\begin{"+s+"} matched by \\end{"+w.name+"}",x);return y}return{type:"environment",mode:t.mode,name:s,nameGroup:n}}});var Zr=(r,e)=>{var t=r.font,a=e.withFont(t);return P(r.body,a)},Kr=(r,e)=>{var t=r.font,a=e.withFont(t);return X(r.body,a)},_t={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};B({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=Re(e[0]),s=a;return s in _t&&(s=_t[s]),{type:"font",mode:t.mode,font:s.slice(1),body:n}},htmlBuilder:Zr,mathmlBuilder:Kr});B({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(r,e)=>{var{parser:t}=r,a=e[0],n=E.isCharacterBox(a);return{type:"mclass",mode:t.mode,mclass:Oe(a),body:[{type:"font",mode:t.mode,font:"boldsymbol",body:a}],isCharacterBox:n}}});B({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a,breakOnTokenText:n}=r,{mode:s}=t,o=t.parseExpression(!0,n),m="math"+a.slice(1);return{type:"font",mode:s,font:m,body:{type:"ordgroup",mode:t.mode,body:o}}},htmlBuilder:Zr,mathmlBuilder:Kr});var Jr=(r,e)=>{var t=e;return r==="display"?t=t.id>=I.SCRIPT.id?t.text():I.DISPLAY:r==="text"&&t.size===I.DISPLAY.size?t=I.TEXT:r==="script"?t=I.SCRIPT:r==="scriptscript"&&(t=I.SCRIPTSCRIPT),t},Tt=(r,e)=>{var t=Jr(r.size,e.style),a=t.fracNum(),n=t.fracDen(),s;s=e.havingStyle(a);var o=P(r.numer,s,e);if(r.continued){var m=8.5/e.fontMetrics().ptPerEm,c=3.5/e.fontMetrics().ptPerEm;o.height=o.height<m?m:o.height,o.depth=o.depth<c?c:o.depth}s=e.havingStyle(n);var p=P(r.denom,s,e),g,y,x;r.hasBarLine?(r.barSize?(y=K(r.barSize,e),g=b.makeLineSpan("frac-line",e,y)):g=b.makeLineSpan("frac-line",e),y=g.height,x=g.height):(g=null,y=0,x=e.fontMetrics().defaultRuleThickness);var w,z,A;t.size===I.DISPLAY.size||r.size==="display"?(w=e.fontMetrics().num1,y>0?z=3*x:z=7*x,A=e.fontMetrics().denom1):(y>0?(w=e.fontMetrics().num2,z=x):(w=e.fontMetrics().num3,z=3*x),A=e.fontMetrics().denom2);var C;if(g){var O=e.fontMetrics().axisHeight;w-o.depth-(O+.5*y)<z&&(w+=z-(w-o.depth-(O+.5*y))),O-.5*y-(p.height-A)<z&&(A+=z-(O-.5*y-(p.height-A)));var H=-(O-.5*y);C=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:p,shift:A},{type:"elem",elem:g,shift:H},{type:"elem",elem:o,shift:-w}]},e)}else{var q=w-o.depth-(p.height-A);q<z&&(w+=.5*(z-q),A+=.5*(z-q)),C=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:p,shift:A},{type:"elem",elem:o,shift:-w}]},e)}s=e.havingStyle(t),C.height*=s.sizeMultiplier/e.sizeMultiplier,C.depth*=s.sizeMultiplier/e.sizeMultiplier;var V;t.size===I.DISPLAY.size?V=e.fontMetrics().delim1:t.size===I.SCRIPTSCRIPT.size?V=e.havingStyle(I.SCRIPT).fontMetrics().delim2:V=e.fontMetrics().delim2;var F,U;return r.leftDelim==null?F=oe(e,["mopen"]):F=B0.customSizedDelim(r.leftDelim,V,!0,e.havingStyle(t),r.mode,["mopen"]),r.continued?U=b.makeSpan([]):r.rightDelim==null?U=oe(e,["mclose"]):U=B0.customSizedDelim(r.rightDelim,V,!0,e.havingStyle(t),r.mode,["mclose"]),b.makeSpan(["mord"].concat(s.sizingClasses(e)),[F,b.makeSpan(["mfrac"],[C]),U],e)},At=(r,e)=>{var t=new S.MathNode("mfrac",[X(r.numer,e),X(r.denom,e)]);if(!r.hasBarLine)t.setAttribute("linethickness","0px");else if(r.barSize){var a=K(r.barSize,e);t.setAttribute("linethickness",T(a))}var n=Jr(r.size,e.style);if(n.size!==e.style.size){t=new S.MathNode("mstyle",[t]);var s=n.size===I.DISPLAY.size?"true":"false";t.setAttribute("displaystyle",s),t.setAttribute("scriptlevel","0")}if(r.leftDelim!=null||r.rightDelim!=null){var o=[];if(r.leftDelim!=null){var m=new S.MathNode("mo",[new S.TextNode(r.leftDelim.replace("\\",""))]);m.setAttribute("fence","true"),o.push(m)}if(o.push(t),r.rightDelim!=null){var c=new S.MathNode("mo",[new S.TextNode(r.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),o.push(c)}return gt(o)}return t};B({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=e[1],o,m=null,c=null,p="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,m="(",c=")";break;case"\\\\bracefrac":o=!1,m="\\{",c="\\}";break;case"\\\\brackfrac":o=!1,m="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":p="display";break;case"\\tfrac":case"\\tbinom":p="text";break}return{type:"genfrac",mode:t.mode,continued:!1,numer:n,denom:s,hasBarLine:o,leftDelim:m,rightDelim:c,size:p,barSize:null}},htmlBuilder:Tt,mathmlBuilder:At});B({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=e[1];return{type:"genfrac",mode:t.mode,continued:!0,numer:n,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});B({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(r){var{parser:e,funcName:t,token:a}=r,n;switch(t){case"\\over":n="\\frac";break;case"\\choose":n="\\binom";break;case"\\atop":n="\\\\atopfrac";break;case"\\brace":n="\\\\bracefrac";break;case"\\brack":n="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:n,token:a}}});var er=["display","text","script","scriptscript"],tr=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};B({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(r,e){var{parser:t}=r,a=e[4],n=e[5],s=Re(e[0]),o=s.type==="atom"&&s.family==="open"?tr(s.text):null,m=Re(e[1]),c=m.type==="atom"&&m.family==="close"?tr(m.text):null,p=L(e[2],"size"),g,y=null;p.isBlank?g=!0:(y=p.value,g=y.number>0);var x="auto",w=e[3];if(w.type==="ordgroup"){if(w.body.length>0){var z=L(w.body[0],"textord");x=er[Number(z.text)]}}else w=L(w,"textord"),x=er[Number(w.text)];return{type:"genfrac",mode:t.mode,numer:a,denom:n,continued:!1,hasBarLine:g,barSize:y,leftDelim:o,rightDelim:c,size:x}},htmlBuilder:Tt,mathmlBuilder:At});B({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(r,e){var{parser:t,funcName:a,token:n}=r;return{type:"infix",mode:t.mode,replaceWith:"\\\\abovefrac",size:L(e[0],"size").value,token:n}}});B({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=xa(L(e[1],"infix").size),o=e[2],m=s.number>0;return{type:"genfrac",mode:t.mode,numer:n,denom:o,continued:!1,hasBarLine:m,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Tt,mathmlBuilder:At});var Qr=(r,e)=>{var t=e.style,a,n;r.type==="supsub"?(a=r.sup?P(r.sup,e.havingStyle(t.sup()),e):P(r.sub,e.havingStyle(t.sub()),e),n=L(r.base,"horizBrace")):n=L(r,"horizBrace");var s=P(n.base,e.havingBaseStyle(I.DISPLAY)),o=q0.svgSpan(n,e),m;if(n.isOver?(m=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},e),m.children[0].children[0].children[1].classes.push("svg-align")):(m=b.makeVList({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},e),m.children[0].children[0].children[0].classes.push("svg-align")),a){var c=b.makeSpan(["mord",n.isOver?"mover":"munder"],[m],e);n.isOver?m=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:a}]},e):m=b.makeVList({positionType:"bottom",positionData:c.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:c}]},e)}return b.makeSpan(["mord",n.isOver?"mover":"munder"],[m],e)},X1=(r,e)=>{var t=q0.mathMLnode(r.label);return new S.MathNode(r.isOver?"mover":"munder",[X(r.base,e),t])};B({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r;return{type:"horizBrace",mode:t.mode,label:a,isOver:/^\\over/.test(a),base:e[0]}},htmlBuilder:Qr,mathmlBuilder:X1});B({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[1],n=L(e[0],"url").url;return t.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:t.mode,href:n,body:Q(a)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(r,e)=>{var t=t0(r.body,e,!1);return b.makeAnchor(r.href,[],t,e)},mathmlBuilder:(r,e)=>{var t=G0(r.body,e);return t instanceof c0||(t=new c0("mrow",[t])),t.setAttribute("href",r.href),t}});B({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=L(e[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:a}))return t.formatUnsupportedCmd("\\url");for(var n=[],s=0;s<a.length;s++){var o=a[s];o==="~"&&(o="\\textasciitilde"),n.push({type:"textord",mode:"text",text:o})}var m={type:"text",mode:t.mode,font:"\\texttt",body:n};return{type:"href",mode:t.mode,href:a,body:Q(m)}}});B({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(r,e){var{parser:t}=r;return{type:"hbox",mode:t.mode,body:Q(e[0])}},htmlBuilder(r,e){var t=t0(r.body,e,!1);return b.makeFragment(t)},mathmlBuilder(r,e){return new S.MathNode("mrow",o0(r.body,e))}});B({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a,token:n}=r,s=L(e[0],"raw").string,o=e[1];t.settings.strict&&t.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var m,c={};switch(a){case"\\htmlClass":c.class=s,m={command:"\\htmlClass",class:s};break;case"\\htmlId":c.id=s,m={command:"\\htmlId",id:s};break;case"\\htmlStyle":c.style=s,m={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var p=s.split(","),g=0;g<p.length;g++){var y=p[g].split("=");if(y.length!==2)throw new M("Error parsing key-value for \\htmlData");c["data-"+y[0].trim()]=y[1].trim()}m={command:"\\htmlData",attributes:c};break}default:throw new Error("Unrecognized html command")}return t.settings.isTrusted(m)?{type:"html",mode:t.mode,attributes:c,body:Q(o)}:t.formatUnsupportedCmd(a)},htmlBuilder:(r,e)=>{var t=t0(r.body,e,!1),a=["enclosing"];r.attributes.class&&a.push(...r.attributes.class.trim().split(/\s+/));var n=b.makeSpan(a,t,e);for(var s in r.attributes)s!=="class"&&r.attributes.hasOwnProperty(s)&&n.setAttribute(s,r.attributes[s]);return n},mathmlBuilder:(r,e)=>G0(r.body,e)});B({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"htmlmathml",mode:t.mode,html:Q(e[0]),mathml:Q(e[1])}},htmlBuilder:(r,e)=>{var t=t0(r.html,e,!1);return b.makeFragment(t)},mathmlBuilder:(r,e)=>G0(r.mathml,e)});var _e=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new M("Invalid size: '"+e+"' in \\includegraphics");var a={number:+(t[1]+t[2]),unit:t[3]};if(!gr(a))throw new M("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};B({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(r,e,t)=>{var{parser:a}=r,n={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},m="";if(t[0])for(var c=L(t[0],"raw").string,p=c.split(","),g=0;g<p.length;g++){var y=p[g].split("=");if(y.length===2){var x=y[1].trim();switch(y[0].trim()){case"alt":m=x;break;case"width":n=_e(x);break;case"height":s=_e(x);break;case"totalheight":o=_e(x);break;default:throw new M("Invalid key: '"+y[0]+"' in \\includegraphics.")}}}var w=L(e[0],"url").url;return m===""&&(m=w,m=m.replace(/^.*[\\/]/,""),m=m.substring(0,m.lastIndexOf("."))),a.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:a.mode,alt:m,width:n,height:s,totalheight:o,src:w}:a.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(r,e)=>{var t=K(r.height,e),a=0;r.totalheight.number>0&&(a=K(r.totalheight,e)-t);var n=0;r.width.number>0&&(n=K(r.width,e));var s={height:T(t+a)};n>0&&(s.width=T(n)),a>0&&(s.verticalAlign=T(-a));var o=new Xa(r.src,r.alt,s);return o.height=t,o.depth=a,o},mathmlBuilder:(r,e)=>{var t=new S.MathNode("mglyph",[]);t.setAttribute("alt",r.alt);var a=K(r.height,e),n=0;if(r.totalheight.number>0&&(n=K(r.totalheight,e)-a,t.setAttribute("valign",T(-n))),t.setAttribute("height",T(a+n)),r.width.number>0){var s=K(r.width,e);t.setAttribute("width",T(s))}return t.setAttribute("src",r.src),t}});B({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r,n=L(e[0],"size");if(t.settings.strict){var s=a[1]==="m",o=n.value.unit==="mu";s?(o||t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+n.value.unit+" units")),t.mode!=="math"&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):o&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:t.mode,dimension:n.value}},htmlBuilder(r,e){return b.makeGlue(r.dimension,e)},mathmlBuilder(r,e){var t=K(r.dimension,e);return new S.SpaceNode(t)}});B({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"lap",mode:t.mode,alignment:a.slice(5),body:n}},htmlBuilder:(r,e)=>{var t;r.alignment==="clap"?(t=b.makeSpan([],[P(r.body,e)]),t=b.makeSpan(["inner"],[t],e)):t=b.makeSpan(["inner"],[P(r.body,e)]);var a=b.makeSpan(["fix"],[]),n=b.makeSpan([r.alignment],[t,a],e),s=b.makeSpan(["strut"]);return s.style.height=T(n.height+n.depth),n.depth&&(s.style.verticalAlign=T(-n.depth)),n.children.unshift(s),n=b.makeSpan(["thinbox"],[n],e),b.makeSpan(["mord","vbox"],[n],e)},mathmlBuilder:(r,e)=>{var t=new S.MathNode("mpadded",[X(r.body,e)]);if(r.alignment!=="rlap"){var a=r.alignment==="llap"?"-1":"-0.5";t.setAttribute("lspace",a+"width")}return t.setAttribute("width","0px"),t}});B({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){var{funcName:t,parser:a}=r,n=a.mode;a.switchMode("math");var s=t==="\\("?"\\)":"$",o=a.parseExpression(!1,s);return a.expect(s),a.switchMode(n),{type:"styling",mode:a.mode,style:"text",body:o}}});B({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){throw new M("Mismatched "+r.funcName)}});var rr=(r,e)=>{switch(e.style.size){case I.DISPLAY.size:return r.display;case I.TEXT.size:return r.text;case I.SCRIPT.size:return r.script;case I.SCRIPTSCRIPT.size:return r.scriptscript;default:return r.text}};B({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"mathchoice",mode:t.mode,display:Q(e[0]),text:Q(e[1]),script:Q(e[2]),scriptscript:Q(e[3])}},htmlBuilder:(r,e)=>{var t=rr(r,e),a=t0(t,e,!1);return b.makeFragment(a)},mathmlBuilder:(r,e)=>{var t=rr(r,e);return G0(t,e)}});var _r=(r,e,t,a,n,s,o)=>{r=b.makeSpan([],[r]);var m=t&&E.isCharacterBox(t),c,p;if(e){var g=P(e,a.havingStyle(n.sup()),a);p={elem:g,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-g.depth)}}if(t){var y=P(t,a.havingStyle(n.sub()),a);c={elem:y,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-y.height)}}var x;if(p&&c){var w=a.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+r.depth+o;x=b.makeVList({positionType:"bottom",positionData:w,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:T(-s)},{type:"kern",size:c.kern},{type:"elem",elem:r},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:T(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(c){var z=r.height-o;x=b.makeVList({positionType:"top",positionData:z,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:T(-s)},{type:"kern",size:c.kern},{type:"elem",elem:r}]},a)}else if(p){var A=r.depth+o;x=b.makeVList({positionType:"bottom",positionData:A,children:[{type:"elem",elem:r},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:T(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return r;var C=[x];if(c&&s!==0&&!m){var q=b.makeSpan(["mspace"],[],a);q.style.marginRight=T(s),C.unshift(q)}return b.makeSpan(["mop","op-limits"],C,a)},ea=["\\smallint"],re=(r,e)=>{var t,a,n=!1,s;r.type==="supsub"?(t=r.sup,a=r.sub,s=L(r.base,"op"),n=!0):s=L(r,"op");var o=e.style,m=!1;o.size===I.DISPLAY.size&&s.symbol&&!E.contains(ea,s.name)&&(m=!0);var c;if(s.symbol){var p=m?"Size2-Regular":"Size1-Regular",g="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(g=s.name.slice(1),s.name=g==="oiint"?"\\iint":"\\iiint"),c=b.makeSymbol(s.name,p,"math",e,["mop","op-symbol",m?"large-op":"small-op"]),g.length>0){var y=c.italic,x=b.staticSvg(g+"Size"+(m?"2":"1"),e);c=b.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:x,shift:m?.08:0}]},e),s.name="\\"+g,c.classes.unshift("mop"),c.italic=y}}else if(s.body){var w=t0(s.body,e,!0);w.length===1&&w[0]instanceof f0?(c=w[0],c.classes[0]="mop"):c=b.makeSpan(["mop"],w,e)}else{for(var z=[],A=1;A<s.name.length;A++)z.push(b.mathsym(s.name[A],s.mode,e));c=b.makeSpan(["mop"],z,e)}var C=0,q=0;return(c instanceof f0||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(C=(c.height-c.depth)/2-e.fontMetrics().axisHeight,q=c.italic),n?_r(c,t,a,e,o,q,C):(C&&(c.style.position="relative",c.style.top=T(C)),c)},ce=(r,e)=>{var t;if(r.symbol)t=new c0("mo",[p0(r.name,r.mode)]),E.contains(ea,r.name)&&t.setAttribute("largeop","false");else if(r.body)t=new c0("mo",o0(r.body,e));else{t=new c0("mi",[new ie(r.name.slice(1))]);var a=new c0("mo",[p0("","text")]);r.parentIsSupSub?t=new c0("mrow",[t,a]):t=Br([t,a])}return t},$1={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};B({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=a;return n.length===1&&(n=$1[n]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:re,mathmlBuilder:ce});B({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Q(a)}},htmlBuilder:re,mathmlBuilder:ce});var W1={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};B({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:re,mathmlBuilder:ce});B({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:re,mathmlBuilder:ce});B({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r,a=t;return a.length===1&&(a=W1[a]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:re,mathmlBuilder:ce});var ta=(r,e)=>{var t,a,n=!1,s;r.type==="supsub"?(t=r.sup,a=r.sub,s=L(r.base,"operatorname"),n=!0):s=L(r,"operatorname");var o;if(s.body.length>0){for(var m=s.body.map(y=>{var x=y.text;return typeof x=="string"?{type:"textord",mode:y.mode,text:x}:y}),c=t0(m,e.withFont("mathrm"),!0),p=0;p<c.length;p++){var g=c[p];g instanceof f0&&(g.text=g.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=b.makeSpan(["mop"],c,e)}else o=b.makeSpan(["mop"],[],e);return n?_r(o,t,a,e,e.style,0,0):o},j1=(r,e)=>{for(var t=o0(r.body,e.withFont("mathrm")),a=!0,n=0;n<t.length;n++){var s=t[n];if(!(s instanceof S.SpaceNode))if(s instanceof S.MathNode)switch(s.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var o=s.children[0];s.children.length===1&&o instanceof S.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):a=!1;break}default:a=!1}else a=!1}if(a){var m=t.map(g=>g.toText()).join("");t=[new S.TextNode(m)]}var c=new S.MathNode("mi",t);c.setAttribute("mathvariant","normal");var p=new S.MathNode("mo",[p0("","text")]);return r.parentIsSupSub?new S.MathNode("mrow",[c,p]):S.newDocumentFragment([c,p])};B({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"operatorname",mode:t.mode,body:Q(n),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:ta,mathmlBuilder:j1});u("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");$0({type:"ordgroup",htmlBuilder(r,e){return r.semisimple?b.makeFragment(t0(r.body,e,!1)):b.makeSpan(["mord"],t0(r.body,e,!0),e)},mathmlBuilder(r,e){return G0(r.body,e,!0)}});B({type:"overline",names:["\\overline"],props:{numArgs:1},handler(r,e){var{parser:t}=r,a=e[0];return{type:"overline",mode:t.mode,body:a}},htmlBuilder(r,e){var t=P(r.body,e.havingCrampedStyle()),a=b.makeLineSpan("overline-line",e),n=e.fontMetrics().defaultRuleThickness,s=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:3*n},{type:"elem",elem:a},{type:"kern",size:n}]},e);return b.makeSpan(["mord","overline"],[s],e)},mathmlBuilder(r,e){var t=new S.MathNode("mo",[new S.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new S.MathNode("mover",[X(r.body,e),t]);return a.setAttribute("accent","true"),a}});B({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"phantom",mode:t.mode,body:Q(a)}},htmlBuilder:(r,e)=>{var t=t0(r.body,e.withPhantom(),!1);return b.makeFragment(t)},mathmlBuilder:(r,e)=>{var t=o0(r.body,e);return new S.MathNode("mphantom",t)}});B({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"hphantom",mode:t.mode,body:a}},htmlBuilder:(r,e)=>{var t=b.makeSpan([],[P(r.body,e.withPhantom())]);if(t.height=0,t.depth=0,t.children)for(var a=0;a<t.children.length;a++)t.children[a].height=0,t.children[a].depth=0;return t=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t}]},e),b.makeSpan(["mord"],[t],e)},mathmlBuilder:(r,e)=>{var t=o0(Q(r.body),e),a=new S.MathNode("mphantom",t),n=new S.MathNode("mpadded",[a]);return n.setAttribute("height","0px"),n.setAttribute("depth","0px"),n}});B({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"vphantom",mode:t.mode,body:a}},htmlBuilder:(r,e)=>{var t=b.makeSpan(["inner"],[P(r.body,e.withPhantom())]),a=b.makeSpan(["fix"],[]);return b.makeSpan(["mord","rlap"],[t,a],e)},mathmlBuilder:(r,e)=>{var t=o0(Q(r.body),e),a=new S.MathNode("mphantom",t),n=new S.MathNode("mpadded",[a]);return n.setAttribute("width","0px"),n}});B({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r,a=L(e[0],"size").value,n=e[1];return{type:"raisebox",mode:t.mode,dy:a,body:n}},htmlBuilder(r,e){var t=P(r.body,e),a=K(r.dy,e);return b.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){var t=new S.MathNode("mpadded",[X(r.body,e)]),a=r.dy.number+r.dy.unit;return t.setAttribute("voffset",a),t}});B({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(r){var{parser:e}=r;return{type:"internal",mode:e.mode}}});B({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(r,e,t){var{parser:a}=r,n=t[0],s=L(e[0],"size"),o=L(e[1],"size");return{type:"rule",mode:a.mode,shift:n&&L(n,"size").value,width:s.value,height:o.value}},htmlBuilder(r,e){var t=b.makeSpan(["mord","rule"],[],e),a=K(r.width,e),n=K(r.height,e),s=r.shift?K(r.shift,e):0;return t.style.borderRightWidth=T(a),t.style.borderTopWidth=T(n),t.style.bottom=T(s),t.width=a,t.height=n+s,t.depth=-s,t.maxFontSize=n*1.125*e.sizeMultiplier,t},mathmlBuilder(r,e){var t=K(r.width,e),a=K(r.height,e),n=r.shift?K(r.shift,e):0,s=e.color&&e.getColor()||"black",o=new S.MathNode("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",T(t)),o.setAttribute("height",T(a));var m=new S.MathNode("mpadded",[o]);return n>=0?m.setAttribute("height",T(n)):(m.setAttribute("height",T(n)),m.setAttribute("depth",T(-n))),m.setAttribute("voffset",T(n)),m}});function ra(r,e,t){for(var a=t0(r,e,!1),n=e.sizeMultiplier/t.sizeMultiplier,s=0;s<a.length;s++){var o=a[s].classes.indexOf("sizing");o<0?Array.prototype.push.apply(a[s].classes,e.sizingClasses(t)):a[s].classes[o+1]==="reset-size"+e.size&&(a[s].classes[o+1]="reset-size"+t.size),a[s].height*=n,a[s].depth*=n}return b.makeFragment(a)}var ar=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Z1=(r,e)=>{var t=e.havingSize(r.size);return ra(r.body,t,e)};B({type:"sizing",names:ar,props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{breakOnTokenText:t,funcName:a,parser:n}=r,s=n.parseExpression(!1,t);return{type:"sizing",mode:n.mode,size:ar.indexOf(a)+1,body:s}},htmlBuilder:Z1,mathmlBuilder:(r,e)=>{var t=e.havingSize(r.size),a=o0(r.body,t),n=new S.MathNode("mstyle",a);return n.setAttribute("mathsize",T(t.sizeMultiplier)),n}});B({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(r,e,t)=>{var{parser:a}=r,n=!1,s=!1,o=t[0]&&L(t[0],"ordgroup");if(o)for(var m="",c=0;c<o.body.length;++c){var p=o.body[c];if(m=p.text,m==="t")n=!0;else if(m==="b")s=!0;else{n=!1,s=!1;break}}else n=!0,s=!0;var g=e[0];return{type:"smash",mode:a.mode,body:g,smashHeight:n,smashDepth:s}},htmlBuilder:(r,e)=>{var t=b.makeSpan([],[P(r.body,e)]);if(!r.smashHeight&&!r.smashDepth)return t;if(r.smashHeight&&(t.height=0,t.children))for(var a=0;a<t.children.length;a++)t.children[a].height=0;if(r.smashDepth&&(t.depth=0,t.children))for(var n=0;n<t.children.length;n++)t.children[n].depth=0;var s=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t}]},e);return b.makeSpan(["mord"],[s],e)},mathmlBuilder:(r,e)=>{var t=new S.MathNode("mpadded",[X(r.body,e)]);return r.smashHeight&&t.setAttribute("height","0px"),r.smashDepth&&t.setAttribute("depth","0px"),t}});B({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:a}=r,n=t[0],s=e[0];return{type:"sqrt",mode:a.mode,body:s,index:n}},htmlBuilder(r,e){var t=P(r.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=b.wrapFragment(t,e);var a=e.fontMetrics(),n=a.defaultRuleThickness,s=n;e.style.id<I.TEXT.id&&(s=e.fontMetrics().xHeight);var o=n+s/4,m=t.height+t.depth+o+n,{span:c,ruleWidth:p,advanceWidth:g}=B0.sqrtImage(m,e),y=c.height-p;y>t.height+t.depth+o&&(o=(o+y-t.height-t.depth)/2);var x=c.height-t.height-o-p;t.style.paddingLeft=T(g);var w=b.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+x)},{type:"elem",elem:c},{type:"kern",size:p}]},e);if(r.index){var z=e.havingStyle(I.SCRIPTSCRIPT),A=P(r.index,z,e),C=.6*(w.height-w.depth),q=b.makeVList({positionType:"shift",positionData:-C,children:[{type:"elem",elem:A}]},e),O=b.makeSpan(["root"],[q]);return b.makeSpan(["mord","sqrt"],[O,w],e)}else return b.makeSpan(["mord","sqrt"],[w],e)},mathmlBuilder(r,e){var{body:t,index:a}=r;return a?new S.MathNode("mroot",[X(t,e),X(a,e)]):new S.MathNode("msqrt",[X(t,e)])}});var nr={display:I.DISPLAY,text:I.TEXT,script:I.SCRIPT,scriptscript:I.SCRIPTSCRIPT};B({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r,e){var{breakOnTokenText:t,funcName:a,parser:n}=r,s=n.parseExpression(!0,t),o=a.slice(1,a.length-5);return{type:"styling",mode:n.mode,style:o,body:s}},htmlBuilder(r,e){var t=nr[r.style],a=e.havingStyle(t).withFont("");return ra(r.body,a,e)},mathmlBuilder(r,e){var t=nr[r.style],a=e.havingStyle(t),n=o0(r.body,a),s=new S.MathNode("mstyle",n),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},m=o[r.style];return s.setAttribute("scriptlevel",m[0]),s.setAttribute("displaystyle",m[1]),s}});var K1=function(e,t){var a=e.base;if(a)if(a.type==="op"){var n=a.limits&&(t.style.size===I.DISPLAY.size||a.alwaysHandleSupSub);return n?re:null}else if(a.type==="operatorname"){var s=a.alwaysHandleSupSub&&(t.style.size===I.DISPLAY.size||a.limits);return s?ta:null}else{if(a.type==="accent")return E.isCharacterBox(a.base)?wt:null;if(a.type==="horizBrace"){var o=!e.sub;return o===a.isOver?Qr:null}else return null}else return null};$0({type:"supsub",htmlBuilder(r,e){var t=K1(r,e);if(t)return t(r,e);var{base:a,sup:n,sub:s}=r,o=P(a,e),m,c,p=e.fontMetrics(),g=0,y=0,x=a&&E.isCharacterBox(a);if(n){var w=e.havingStyle(e.style.sup());m=P(n,w,e),x||(g=o.height-w.fontMetrics().supDrop*w.sizeMultiplier/e.sizeMultiplier)}if(s){var z=e.havingStyle(e.style.sub());c=P(s,z,e),x||(y=o.depth+z.fontMetrics().subDrop*z.sizeMultiplier/e.sizeMultiplier)}var A;e.style===I.DISPLAY?A=p.sup1:e.style.cramped?A=p.sup3:A=p.sup2;var C=e.sizeMultiplier,q=T(.5/p.ptPerEm/C),O=null;if(c){var H=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");(o instanceof f0||H)&&(O=T(-o.italic))}var V;if(m&&c){g=Math.max(g,A,m.depth+.25*p.xHeight),y=Math.max(y,p.sub2);var F=p.defaultRuleThickness,U=4*F;if(g-m.depth-(c.height-y)<U){y=U-(g-m.depth)+c.height;var G=.8*p.xHeight-(g-m.depth);G>0&&(g+=G,y-=G)}var j=[{type:"elem",elem:c,shift:y,marginRight:q,marginLeft:O},{type:"elem",elem:m,shift:-g,marginRight:q}];V=b.makeVList({positionType:"individualShift",children:j},e)}else if(c){y=Math.max(y,p.sub1,c.height-.8*p.xHeight);var Y=[{type:"elem",elem:c,marginLeft:O,marginRight:q}];V=b.makeVList({positionType:"shift",positionData:y,children:Y},e)}else if(m)g=Math.max(g,A,m.depth+.25*p.xHeight),V=b.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:m,marginRight:q}]},e);else throw new Error("supsub must have either sup or sub.");var M0=lt(o,"right")||"mord";return b.makeSpan([M0],[o,b.makeSpan(["msupsub"],[V])],e)},mathmlBuilder(r,e){var t=!1,a,n;r.base&&r.base.type==="horizBrace"&&(n=!!r.sup,n===r.base.isOver&&(t=!0,a=r.base.isOver)),r.base&&(r.base.type==="op"||r.base.type==="operatorname")&&(r.base.parentIsSupSub=!0);var s=[X(r.base,e)];r.sub&&s.push(X(r.sub,e)),r.sup&&s.push(X(r.sup,e));var o;if(t)o=a?"mover":"munder";else if(r.sub)if(r.sup){var p=r.base;p&&p.type==="op"&&p.limits&&e.style===I.DISPLAY||p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(e.style===I.DISPLAY||p.limits)?o="munderover":o="msubsup"}else{var c=r.base;c&&c.type==="op"&&c.limits&&(e.style===I.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||e.style===I.DISPLAY)?o="munder":o="msub"}else{var m=r.base;m&&m.type==="op"&&m.limits&&(e.style===I.DISPLAY||m.alwaysHandleSupSub)||m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(m.limits||e.style===I.DISPLAY)?o="mover":o="msup"}return new S.MathNode(o,s)}});$0({type:"atom",htmlBuilder(r,e){return b.mathsym(r.text,r.mode,e,["m"+r.family])},mathmlBuilder(r,e){var t=new S.MathNode("mo",[p0(r.text,r.mode)]);if(r.family==="bin"){var a=bt(r,e);a==="bold-italic"&&t.setAttribute("mathvariant",a)}else r.family==="punct"?t.setAttribute("separator","true"):(r.family==="open"||r.family==="close")&&t.setAttribute("stretchy","false");return t}});var aa={mi:"italic",mn:"normal",mtext:"normal"};$0({type:"mathord",htmlBuilder(r,e){return b.makeOrd(r,e,"mathord")},mathmlBuilder(r,e){var t=new S.MathNode("mi",[p0(r.text,r.mode,e)]),a=bt(r,e)||"italic";return a!==aa[t.type]&&t.setAttribute("mathvariant",a),t}});$0({type:"textord",htmlBuilder(r,e){return b.makeOrd(r,e,"textord")},mathmlBuilder(r,e){var t=p0(r.text,r.mode,e),a=bt(r,e)||"normal",n;return r.mode==="text"?n=new S.MathNode("mtext",[t]):/[0-9]/.test(r.text)?n=new S.MathNode("mn",[t]):r.text==="\\prime"?n=new S.MathNode("mo",[t]):n=new S.MathNode("mi",[t]),a!==aa[n.type]&&n.setAttribute("mathvariant",a),n}});var et={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},tt={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};$0({type:"spacing",htmlBuilder(r,e){if(tt.hasOwnProperty(r.text)){var t=tt[r.text].className||"";if(r.mode==="text"){var a=b.makeOrd(r,e,"textord");return a.classes.push(t),a}else return b.makeSpan(["mspace",t],[b.mathsym(r.text,r.mode,e)],e)}else{if(et.hasOwnProperty(r.text))return b.makeSpan(["mspace",et[r.text]],[],e);throw new M('Unknown type of space "'+r.text+'"')}},mathmlBuilder(r,e){var t;if(tt.hasOwnProperty(r.text))t=new S.MathNode("mtext",[new S.TextNode(" ")]);else{if(et.hasOwnProperty(r.text))return new S.MathNode("mspace");throw new M('Unknown type of space "'+r.text+'"')}return t}});var ir=()=>{var r=new S.MathNode("mtd",[]);return r.setAttribute("width","50%"),r};$0({type:"tag",mathmlBuilder(r,e){var t=new S.MathNode("mtable",[new S.MathNode("mtr",[ir(),new S.MathNode("mtd",[G0(r.body,e)]),ir(),new S.MathNode("mtd",[G0(r.tag,e)])])]);return t.setAttribute("width","100%"),t}});var sr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},lr={"\\textbf":"textbf","\\textmd":"textmd"},J1={"\\textit":"textit","\\textup":"textup"},or=(r,e)=>{var t=r.font;return t?sr[t]?e.withTextFontFamily(sr[t]):lr[t]?e.withTextFontWeight(lr[t]):e.withTextFontShape(J1[t]):e};B({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"text",mode:t.mode,body:Q(n),font:a}},htmlBuilder(r,e){var t=or(r,e),a=t0(r.body,t,!0);return b.makeSpan(["mord","text"],a,t)},mathmlBuilder(r,e){var t=or(r,e);return G0(r.body,t)}});B({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"underline",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=P(r.body,e),a=b.makeLineSpan("underline-line",e),n=e.fontMetrics().defaultRuleThickness,s=b.makeVList({positionType:"top",positionData:t.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:t}]},e);return b.makeSpan(["mord","underline"],[s],e)},mathmlBuilder(r,e){var t=new S.MathNode("mo",[new S.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new S.MathNode("munder",[X(r.body,e),t]);return a.setAttribute("accentunder","true"),a}});B({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"vcenter",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=P(r.body,e),a=e.fontMetrics().axisHeight,n=.5*(t.height-a-(t.depth+a));return b.makeVList({positionType:"shift",positionData:n,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){return new S.MathNode("mpadded",[X(r.body,e)],["vcenter"])}});B({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(r,e,t){throw new M("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(r,e){for(var t=hr(r),a=[],n=e.havingStyle(e.style.text()),s=0;s<t.length;s++){var o=t[s];o==="~"&&(o="\\textasciitilde"),a.push(b.makeSymbol(o,"Typewriter-Regular",r.mode,n,["mord","texttt"]))}return b.makeSpan(["mord","text"].concat(n.sizingClasses(e)),b.tryCombineChars(a),n)},mathmlBuilder(r,e){var t=new S.TextNode(hr(r)),a=new S.MathNode("mtext",[t]);return a.setAttribute("mathvariant","monospace"),a}});var hr=r=>r.body.replace(/ /g,r.star?"␣":" "),L0=Tr,na=`[ \r
]`,Q1="\\\\[a-zA-Z@]+",_1="\\\\[^\uD800-\uDFFF]",e4="("+Q1+")"+na+"*",t4=`\\\\(
|[ \r ]+
?)[ \r ]*`,ut="[̀-ͯ]",r4=new RegExp(ut+"+$"),a4="("+na+"+)|"+(t4+"|")+"([!-\\[\\]-‧-豈-]"+(ut+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(ut+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+e4)+("|"+_1+")");class mr{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(a4,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new w0("EOF",new h0(this,t,t));var a=this.tokenRegex.exec(e);if(a===null||a.index!==t)throw new M("Unexpected character: '"+e[t]+"'",new w0(e[t],new h0(this,t,t+1)));var n=a[6]||a[3]||(a[2]?"\\ ":" ");if(this.catcodes[n]===14){var s=e.indexOf(`
`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new w0(n,new h0(this,t,this.tokenRegex.lastIndex))}}class n4{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new M("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,a){if(a===void 0&&(a=!1),a){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(e)&&(s[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}}var i4=Wr;u("\\noexpand",function(r){var e=r.popToken();return r.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});u("\\expandafter",function(r){var e=r.popToken();return r.expandOnce(!0),{tokens:[e],numArgs:0}});u("\\@firstoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[0],numArgs:0}});u("\\@secondoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[1],numArgs:0}});u("\\@ifnextchar",function(r){var e=r.consumeArgs(3);r.consumeSpaces();var t=r.future();return e[0].length===1&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});u("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");u("\\TextOrMath",function(r){var e=r.consumeArgs(2);return r.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var ur={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};u("\\char",function(r){var e=r.popToken(),t,a="";if(e.text==="'")t=8,e=r.popToken();else if(e.text==='"')t=16,e=r.popToken();else if(e.text==="`")if(e=r.popToken(),e.text[0]==="\\")a=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new M("\\char` missing argument");a=e.text.charCodeAt(0)}else t=10;if(t){if(a=ur[e.text],a==null||a>=t)throw new M("Invalid base-"+t+" digit "+e.text);for(var n;(n=ur[r.future().text])!=null&&n<t;)a*=t,a+=n,r.popToken()}return"\\@char{"+a+"}"});var Bt=(r,e,t)=>{var a=r.consumeArg().tokens;if(a.length!==1)throw new M("\\newcommand's first argument must be a macro name");var n=a[0].text,s=r.isDefined(n);if(s&&!e)throw new M("\\newcommand{"+n+"} attempting to redefine "+(n+"; use \\renewcommand"));if(!s&&!t)throw new M("\\renewcommand{"+n+"} when command "+n+" does not yet exist; use \\newcommand");var o=0;if(a=r.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var m="",c=r.expandNextToken();c.text!=="]"&&c.text!=="EOF";)m+=c.text,c=r.expandNextToken();if(!m.match(/^\s*[0-9]+\s*$/))throw new M("Invalid number of arguments: "+m);o=parseInt(m),a=r.consumeArg().tokens}return r.macros.set(n,{tokens:a,numArgs:o}),""};u("\\newcommand",r=>Bt(r,!1,!0));u("\\renewcommand",r=>Bt(r,!0,!1));u("\\providecommand",r=>Bt(r,!0,!0));u("\\message",r=>{var e=r.consumeArgs(1)[0];return console.log(e.reverse().map(t=>t.text).join("")),""});u("\\errmessage",r=>{var e=r.consumeArgs(1)[0];return console.error(e.reverse().map(t=>t.text).join("")),""});u("\\show",r=>{var e=r.popToken(),t=e.text;return console.log(e,r.macros.get(t),L0[t],$.math[t],$.text[t]),""});u("\\bgroup","{");u("\\egroup","}");u("~","\\nobreakspace");u("\\lq","`");u("\\rq","'");u("\\aa","\\r a");u("\\AA","\\r A");u("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");u("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");u("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");u("ℬ","\\mathscr{B}");u("ℰ","\\mathscr{E}");u("ℱ","\\mathscr{F}");u("ℋ","\\mathscr{H}");u("ℐ","\\mathscr{I}");u("ℒ","\\mathscr{L}");u("ℳ","\\mathscr{M}");u("ℛ","\\mathscr{R}");u("ℭ","\\mathfrak{C}");u("ℌ","\\mathfrak{H}");u("ℨ","\\mathfrak{Z}");u("\\Bbbk","\\Bbb{k}");u("·","\\cdotp");u("\\llap","\\mathllap{\\textrm{#1}}");u("\\rlap","\\mathrlap{\\textrm{#1}}");u("\\clap","\\mathclap{\\textrm{#1}}");u("\\mathstrut","\\vphantom{(}");u("\\underbar","\\underline{\\text{#1}}");u("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');u("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");u("\\ne","\\neq");u("≠","\\neq");u("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");u("∉","\\notin");u("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");u("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");u("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");u("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");u("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");u("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");u("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");u("⟂","\\perp");u("‼","\\mathclose{!\\mkern-0.8mu!}");u("∌","\\notni");u("⌜","\\ulcorner");u("⌝","\\urcorner");u("⌞","\\llcorner");u("⌟","\\lrcorner");u("©","\\copyright");u("®","\\textregistered");u("️","\\textregistered");u("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');u("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');u("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');u("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');u("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");u("⋮","\\vdots");u("\\varGamma","\\mathit{\\Gamma}");u("\\varDelta","\\mathit{\\Delta}");u("\\varTheta","\\mathit{\\Theta}");u("\\varLambda","\\mathit{\\Lambda}");u("\\varXi","\\mathit{\\Xi}");u("\\varPi","\\mathit{\\Pi}");u("\\varSigma","\\mathit{\\Sigma}");u("\\varUpsilon","\\mathit{\\Upsilon}");u("\\varPhi","\\mathit{\\Phi}");u("\\varPsi","\\mathit{\\Psi}");u("\\varOmega","\\mathit{\\Omega}");u("\\substack","\\begin{subarray}{c}#1\\end{subarray}");u("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");u("\\boxed","\\fbox{$\\displaystyle{#1}$}");u("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");u("\\implies","\\DOTSB\\;\\Longrightarrow\\;");u("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var cr={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};u("\\dots",function(r){var e="\\dotso",t=r.expandAfterFuture().text;return t in cr?e=cr[t]:(t.slice(0,4)==="\\not"||t in $.math&&E.contains(["bin","rel"],$.math[t].group))&&(e="\\dotsb"),e});var Nt={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};u("\\dotso",function(r){var e=r.future().text;return e in Nt?"\\ldots\\,":"\\ldots"});u("\\dotsc",function(r){var e=r.future().text;return e in Nt&&e!==","?"\\ldots\\,":"\\ldots"});u("\\cdots",function(r){var e=r.future().text;return e in Nt?"\\@cdots\\,":"\\@cdots"});u("\\dotsb","\\cdots");u("\\dotsm","\\cdots");u("\\dotsi","\\!\\cdots");u("\\dotsx","\\ldots\\,");u("\\DOTSI","\\relax");u("\\DOTSB","\\relax");u("\\DOTSX","\\relax");u("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");u("\\,","\\tmspace+{3mu}{.1667em}");u("\\thinspace","\\,");u("\\>","\\mskip{4mu}");u("\\:","\\tmspace+{4mu}{.2222em}");u("\\medspace","\\:");u("\\;","\\tmspace+{5mu}{.2777em}");u("\\thickspace","\\;");u("\\!","\\tmspace-{3mu}{.1667em}");u("\\negthinspace","\\!");u("\\negmedspace","\\tmspace-{4mu}{.2222em}");u("\\negthickspace","\\tmspace-{5mu}{.277em}");u("\\enspace","\\kern.5em ");u("\\enskip","\\hskip.5em\\relax");u("\\quad","\\hskip1em\\relax");u("\\qquad","\\hskip2em\\relax");u("\\tag","\\@ifstar\\tag@literal\\tag@paren");u("\\tag@paren","\\tag@literal{({#1})}");u("\\tag@literal",r=>{if(r.macros.get("\\df@tag"))throw new M("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});u("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");u("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");u("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");u("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");u("\\newline","\\\\\\relax");u("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ia=T(y0["Main-Regular"][84][1]-.7*y0["Main-Regular"][65][1]);u("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ia+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");u("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ia+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");u("\\hspace","\\@ifstar\\@hspacer\\@hspace");u("\\@hspace","\\hskip #1\\relax");u("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");u("\\ordinarycolon",":");u("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");u("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');u("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');u("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');u("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');u("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');u("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');u("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');u("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');u("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');u("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');u("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');u("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');u("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');u("∷","\\dblcolon");u("∹","\\eqcolon");u("≔","\\coloneqq");u("≕","\\eqqcolon");u("⩴","\\Coloneqq");u("\\ratio","\\vcentcolon");u("\\coloncolon","\\dblcolon");u("\\colonequals","\\coloneqq");u("\\coloncolonequals","\\Coloneqq");u("\\equalscolon","\\eqqcolon");u("\\equalscoloncolon","\\Eqqcolon");u("\\colonminus","\\coloneq");u("\\coloncolonminus","\\Coloneq");u("\\minuscolon","\\eqcolon");u("\\minuscoloncolon","\\Eqcolon");u("\\coloncolonapprox","\\Colonapprox");u("\\coloncolonsim","\\Colonsim");u("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");u("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");u("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");u("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");u("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");u("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");u("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");u("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");u("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");u("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");u("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");u("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");u("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");u("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");u("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");u("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");u("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");u("\\nleqq","\\html@mathml{\\@nleqq}{≰}");u("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");u("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");u("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");u("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");u("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");u("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");u("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");u("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");u("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");u("\\imath","\\html@mathml{\\@imath}{ı}");u("\\jmath","\\html@mathml{\\@jmath}{ȷ}");u("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");u("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");u("⟦","\\llbracket");u("⟧","\\rrbracket");u("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");u("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");u("⦃","\\lBrace");u("⦄","\\rBrace");u("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");u("⦵","\\minuso");u("\\darr","\\downarrow");u("\\dArr","\\Downarrow");u("\\Darr","\\Downarrow");u("\\lang","\\langle");u("\\rang","\\rangle");u("\\uarr","\\uparrow");u("\\uArr","\\Uparrow");u("\\Uarr","\\Uparrow");u("\\N","\\mathbb{N}");u("\\R","\\mathbb{R}");u("\\Z","\\mathbb{Z}");u("\\alef","\\aleph");u("\\alefsym","\\aleph");u("\\Alpha","\\mathrm{A}");u("\\Beta","\\mathrm{B}");u("\\bull","\\bullet");u("\\Chi","\\mathrm{X}");u("\\clubs","\\clubsuit");u("\\cnums","\\mathbb{C}");u("\\Complex","\\mathbb{C}");u("\\Dagger","\\ddagger");u("\\diamonds","\\diamondsuit");u("\\empty","\\emptyset");u("\\Epsilon","\\mathrm{E}");u("\\Eta","\\mathrm{H}");u("\\exist","\\exists");u("\\harr","\\leftrightarrow");u("\\hArr","\\Leftrightarrow");u("\\Harr","\\Leftrightarrow");u("\\hearts","\\heartsuit");u("\\image","\\Im");u("\\infin","\\infty");u("\\Iota","\\mathrm{I}");u("\\isin","\\in");u("\\Kappa","\\mathrm{K}");u("\\larr","\\leftarrow");u("\\lArr","\\Leftarrow");u("\\Larr","\\Leftarrow");u("\\lrarr","\\leftrightarrow");u("\\lrArr","\\Leftrightarrow");u("\\Lrarr","\\Leftrightarrow");u("\\Mu","\\mathrm{M}");u("\\natnums","\\mathbb{N}");u("\\Nu","\\mathrm{N}");u("\\Omicron","\\mathrm{O}");u("\\plusmn","\\pm");u("\\rarr","\\rightarrow");u("\\rArr","\\Rightarrow");u("\\Rarr","\\Rightarrow");u("\\real","\\Re");u("\\reals","\\mathbb{R}");u("\\Reals","\\mathbb{R}");u("\\Rho","\\mathrm{P}");u("\\sdot","\\cdot");u("\\sect","\\S");u("\\spades","\\spadesuit");u("\\sub","\\subset");u("\\sube","\\subseteq");u("\\supe","\\supseteq");u("\\Tau","\\mathrm{T}");u("\\thetasym","\\vartheta");u("\\weierp","\\wp");u("\\Zeta","\\mathrm{Z}");u("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");u("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");u("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");u("\\bra","\\mathinner{\\langle{#1}|}");u("\\ket","\\mathinner{|{#1}\\rangle}");u("\\braket","\\mathinner{\\langle{#1}\\rangle}");u("\\Bra","\\left\\langle#1\\right|");u("\\Ket","\\left|#1\\right\\rangle");var sa=r=>e=>{var t=e.consumeArg().tokens,a=e.consumeArg().tokens,n=e.consumeArg().tokens,s=e.consumeArg().tokens,o=e.macros.get("|"),m=e.macros.get("\\|");e.macros.beginGroup();var c=y=>x=>{r&&(x.macros.set("|",o),n.length&&x.macros.set("\\|",m));var w=y;if(!y&&n.length){var z=x.future();z.text==="|"&&(x.popToken(),w=!0)}return{tokens:w?n:a,numArgs:0}};e.macros.set("|",c(!1)),n.length&&e.macros.set("\\|",c(!0));var p=e.consumeArg().tokens,g=e.expandTokens([...s,...p,...t]);return e.macros.endGroup(),{tokens:g.reverse(),numArgs:0}};u("\\bra@ket",sa(!1));u("\\bra@set",sa(!0));u("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");u("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");u("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");u("\\angln","{\\angl n}");u("\\blue","\\textcolor{##6495ed}{#1}");u("\\orange","\\textcolor{##ffa500}{#1}");u("\\pink","\\textcolor{##ff00af}{#1}");u("\\red","\\textcolor{##df0030}{#1}");u("\\green","\\textcolor{##28ae7b}{#1}");u("\\gray","\\textcolor{gray}{#1}");u("\\purple","\\textcolor{##9d38bd}{#1}");u("\\blueA","\\textcolor{##ccfaff}{#1}");u("\\blueB","\\textcolor{##80f6ff}{#1}");u("\\blueC","\\textcolor{##63d9ea}{#1}");u("\\blueD","\\textcolor{##11accd}{#1}");u("\\blueE","\\textcolor{##0c7f99}{#1}");u("\\tealA","\\textcolor{##94fff5}{#1}");u("\\tealB","\\textcolor{##26edd5}{#1}");u("\\tealC","\\textcolor{##01d1c1}{#1}");u("\\tealD","\\textcolor{##01a995}{#1}");u("\\tealE","\\textcolor{##208170}{#1}");u("\\greenA","\\textcolor{##b6ffb0}{#1}");u("\\greenB","\\textcolor{##8af281}{#1}");u("\\greenC","\\textcolor{##74cf70}{#1}");u("\\greenD","\\textcolor{##1fab54}{#1}");u("\\greenE","\\textcolor{##0d923f}{#1}");u("\\goldA","\\textcolor{##ffd0a9}{#1}");u("\\goldB","\\textcolor{##ffbb71}{#1}");u("\\goldC","\\textcolor{##ff9c39}{#1}");u("\\goldD","\\textcolor{##e07d10}{#1}");u("\\goldE","\\textcolor{##a75a05}{#1}");u("\\redA","\\textcolor{##fca9a9}{#1}");u("\\redB","\\textcolor{##ff8482}{#1}");u("\\redC","\\textcolor{##f9685d}{#1}");u("\\redD","\\textcolor{##e84d39}{#1}");u("\\redE","\\textcolor{##bc2612}{#1}");u("\\maroonA","\\textcolor{##ffbde0}{#1}");u("\\maroonB","\\textcolor{##ff92c6}{#1}");u("\\maroonC","\\textcolor{##ed5fa6}{#1}");u("\\maroonD","\\textcolor{##ca337c}{#1}");u("\\maroonE","\\textcolor{##9e034e}{#1}");u("\\purpleA","\\textcolor{##ddd7ff}{#1}");u("\\purpleB","\\textcolor{##c6b9fc}{#1}");u("\\purpleC","\\textcolor{##aa87ff}{#1}");u("\\purpleD","\\textcolor{##7854ab}{#1}");u("\\purpleE","\\textcolor{##543b78}{#1}");u("\\mintA","\\textcolor{##f5f9e8}{#1}");u("\\mintB","\\textcolor{##edf2df}{#1}");u("\\mintC","\\textcolor{##e0e5cc}{#1}");u("\\grayA","\\textcolor{##f6f7f7}{#1}");u("\\grayB","\\textcolor{##f0f1f2}{#1}");u("\\grayC","\\textcolor{##e3e5e6}{#1}");u("\\grayD","\\textcolor{##d6d8da}{#1}");u("\\grayE","\\textcolor{##babec2}{#1}");u("\\grayF","\\textcolor{##888d93}{#1}");u("\\grayG","\\textcolor{##626569}{#1}");u("\\grayH","\\textcolor{##3b3e40}{#1}");u("\\grayI","\\textcolor{##21242c}{#1}");u("\\kaBlue","\\textcolor{##314453}{#1}");u("\\kaGreen","\\textcolor{##71B307}{#1}");var la={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class s4{constructor(e,t,a){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new n4(i4,t.macros),this.mode=a,this.stack=[]}feed(e){this.lexer=new mr(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,a,n;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;t=this.popToken(),{tokens:n,end:a}=this.consumeArg(["]"])}else({tokens:n,start:t,end:a}=this.consumeArg());return this.pushToken(new w0("EOF",a.loc)),this.pushTokens(n),t.range(a,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var t=[],a=e&&e.length>0;a||this.consumeSpaces();var n=this.future(),s,o=0,m=0;do{if(s=this.popToken(),t.push(s),s.text==="{")++o;else if(s.text==="}"){if(--o,o===-1)throw new M("Extra }",s)}else if(s.text==="EOF")throw new M("Unexpected end of input in a macro argument, expected '"+(e&&a?e[m]:"}")+"'",s);if(e&&a)if((o===0||o===1&&e[m]==="{")&&s.text===e[m]){if(++m,m===e.length){t.splice(-m,m);break}}else m=0}while(o!==0||a);return n.text==="{"&&t[t.length-1].text==="}"&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:n,end:s}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new M("The length of delimiters doesn't match the number of args!");for(var a=t[0],n=0;n<a.length;n++){var s=this.popToken();if(a[n]!==s.text)throw new M("Use of the macro doesn't match its definition",s)}}for(var o=[],m=0;m<e;m++)o.push(this.consumeArg(t&&t[m+1]).tokens);return o}expandOnce(e){var t=this.popToken(),a=t.text,n=t.noexpand?null:this._getExpansion(a);if(n==null||e&&n.unexpandable){if(e&&n==null&&a[0]==="\\"&&!this.isDefined(a))throw new M("Undefined control sequence: "+a);return this.pushToken(t),!1}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new M("Too many expansions: infinite loop or need to increase maxExpand setting");var s=n.tokens,o=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){s=s.slice();for(var m=s.length-1;m>=0;--m){var c=s[m];if(c.text==="#"){if(m===0)throw new M("Incomplete placeholder at end of macro body",c);if(c=s[--m],c.text==="#")s.splice(m+1,1);else if(/^[1-9]$/.test(c.text))s.splice(m,2,...o[+c.text-1]);else throw new M("Not a valid argument number",c)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new w0(e)]):void 0}expandTokens(e){var t=[],a=this.stack.length;for(this.pushTokens(e);this.stack.length>a;)if(this.expandOnce(!0)===!1){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(a=>a.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var a=this.lexer.catcodes[e];if(a!=null&&a!==13)return}var n=typeof t=="function"?t(this):t;if(typeof n=="string"){var s=0;if(n.indexOf("#")!==-1)for(var o=n.replace(/##/g,"");o.indexOf("#"+(s+1))!==-1;)++s;for(var m=new mr(n,this.settings),c=[],p=m.lex();p.text!=="EOF";)c.push(p),p=m.lex();c.reverse();var g={tokens:c,numArgs:s};return g}return n}isDefined(e){return this.macros.has(e)||L0.hasOwnProperty(e)||$.math.hasOwnProperty(e)||$.text.hasOwnProperty(e)||la.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t=="string"||typeof t=="function"||!t.unexpandable:L0.hasOwnProperty(e)&&!L0[e].primitive}}var dr=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,ze=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),rt={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},fr={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class he{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new s4(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new M("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new w0("}")),this.gullet.pushTokens(e);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,a}parseExpression(e,t){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var n=this.fetch();if(he.endOfExpression.indexOf(n.text)!==-1||t&&n.text===t||e&&L0[n.text]&&L0[n.text].infix)break;var s=this.parseAtom(t);if(s){if(s.type==="internal")continue}else break;a.push(s)}return this.mode==="text"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(e){for(var t=-1,a,n=0;n<e.length;n++)if(e[n].type==="infix"){if(t!==-1)throw new M("only one infix operator per group",e[n].token);t=n,a=e[n].replaceWith}if(t!==-1&&a){var s,o,m=e.slice(0,t),c=e.slice(t+1);m.length===1&&m[0].type==="ordgroup"?s=m[0]:s={type:"ordgroup",mode:this.mode,body:m},c.length===1&&c[0].type==="ordgroup"?o=c[0]:o={type:"ordgroup",mode:this.mode,body:c};var p;return a==="\\\\abovefrac"?p=this.callFunction(a,[s,e[t],o],[]):p=this.callFunction(a,[s,o],[]),[p]}else return e}handleSupSubscript(e){var t=this.fetch(),a=t.text;this.consume(),this.consumeSpaces();var n=this.parseGroup(e);if(!n)throw new M("Expected group after '"+a+"'",t);return n}formatUnsupportedCmd(e){for(var t=[],a=0;a<e.length;a++)t.push({type:"textord",mode:"text",text:e[a]});var n={type:"text",mode:this.mode,body:t},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]};return s}parseAtom(e){var t=this.parseGroup("atom",e);if(this.mode==="text")return t;for(var a,n;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(t&&t.type==="op"){var o=s.text==="\\limits";t.limits=o,t.alwaysHandleSupSub=!0}else if(t&&t.type==="operatorname")t.alwaysHandleSupSub&&(t.limits=s.text==="\\limits");else throw new M("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(a)throw new M("Double superscript",s);a=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(n)throw new M("Double subscript",s);n=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(a)throw new M("Double superscript",s);var m={type:"textord",mode:this.mode,text:"\\prime"},c=[m];for(this.consume();this.fetch().text==="'";)c.push(m),this.consume();this.fetch().text==="^"&&c.push(this.handleSupSubscript("superscript")),a={type:"ordgroup",mode:this.mode,body:c}}else if(ze[s.text]){var p=ze[s.text],g=dr.test(s.text);for(this.consume();;){var y=this.fetch().text;if(!ze[y]||dr.test(y)!==g)break;this.consume(),p+=ze[y]}var x=new he(p,this.settings).parse();g?n={type:"ordgroup",mode:"math",body:x}:a={type:"ordgroup",mode:"math",body:x}}else break}return a||n?{type:"supsub",mode:this.mode,base:t,sup:a,sub:n}:t}parseFunction(e,t){var a=this.fetch(),n=a.text,s=L0[n];if(!s)return null;if(this.consume(),t&&t!=="atom"&&!s.allowedInArgument)throw new M("Got function '"+n+"' with no arguments"+(t?" as "+t:""),a);if(this.mode==="text"&&!s.allowedInText)throw new M("Can't use function '"+n+"' in text mode",a);if(this.mode==="math"&&s.allowedInMath===!1)throw new M("Can't use function '"+n+"' in math mode",a);var{args:o,optArgs:m}=this.parseArguments(n,s);return this.callFunction(n,o,m,a,e)}callFunction(e,t,a,n,s){var o={funcName:e,parser:this,token:n,breakOnTokenText:s},m=L0[e];if(m&&m.handler)return m.handler(o,t,a);throw new M("No function handler for "+e)}parseArguments(e,t){var a=t.numArgs+t.numOptionalArgs;if(a===0)return{args:[],optArgs:[]};for(var n=[],s=[],o=0;o<a;o++){var m=t.argTypes&&t.argTypes[o],c=o<t.numOptionalArgs;(t.primitive&&m==null||t.type==="sqrt"&&o===1&&s[0]==null)&&(m="primitive");var p=this.parseGroupOfType("argument to '"+e+"'",m,c);if(c)s.push(p);else if(p!=null)n.push(p);else throw new M("Null argument, please report this as a bug")}return{args:n,optArgs:s}}parseGroupOfType(e,t,a){switch(t){case"color":return this.parseColorGroup(a);case"size":return this.parseSizeGroup(a);case"url":return this.parseUrlGroup(a);case"math":case"text":return this.parseArgumentGroup(a,t);case"hbox":{var n=this.parseArgumentGroup(a,"text");return n!=null?{type:"styling",mode:n.mode,body:[n],style:"text"}:null}case"raw":{var s=this.parseStringGroup("raw",a);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(a)throw new M("A primitive argument cannot be optional");var o=this.parseGroup(e);if(o==null)throw new M("Expected group as "+e,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(a);default:throw new M("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e,t){var a=this.gullet.scanArgument(t);if(a==null)return null;for(var n="",s;(s=this.fetch()).text!=="EOF";)n+=s.text,this.consume();return this.consume(),a.text=n,a}parseRegexGroup(e,t){for(var a=this.fetch(),n=a,s="",o;(o=this.fetch()).text!=="EOF"&&e.test(s+o.text);)n=o,s+=n.text,this.consume();if(s==="")throw new M("Invalid "+t+": '"+a.text+"'",a);return a.range(n,s)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(t==null)return null;var a=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!a)throw new M("Invalid color: '"+t.text+"'",t);var n=a[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(e){var t,a=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?t=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):t=this.parseStringGroup("size",e),!t)return null;!e&&t.text.length===0&&(t.text="0pt",a=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!n)throw new M("Invalid size: '"+t.text+"'",t);var s={number:+(n[1]+n[2]),unit:n[3]};if(!gr(s))throw new M("Invalid unit: '"+s.unit+"'",t);return{type:"size",mode:this.mode,value:s,isBlank:a}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),t==null)return null;var a=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:a}}parseArgumentGroup(e,t){var a=this.gullet.scanArgument(e);if(a==null)return null;var n=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:a.loc,body:s};return t&&this.switchMode(n),o}parseGroup(e,t){var a=this.fetch(),n=a.text,s;if(n==="{"||n==="\\begingroup"){this.consume();var o=n==="{"?"}":"\\endgroup";this.gullet.beginGroup();var m=this.parseExpression(!1,o),c=this.fetch();this.expect(o),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:h0.range(a,c),body:m,semisimple:n==="\\begingroup"||void 0}}else if(s=this.parseFunction(t,e)||this.parseSymbol(),s==null&&n[0]==="\\"&&!la.hasOwnProperty(n)){if(this.settings.throwOnError)throw new M("Undefined control sequence: "+n,a);s=this.formatUnsupportedCmd(n),this.consume()}return s}formLigatures(e){for(var t=e.length-1,a=0;a<t;++a){var n=e[a],s=n.text;s==="-"&&e[a+1].text==="-"&&(a+1<t&&e[a+2].text==="-"?(e.splice(a,3,{type:"textord",mode:"text",loc:h0.range(n,e[a+2]),text:"---"}),t-=2):(e.splice(a,2,{type:"textord",mode:"text",loc:h0.range(n,e[a+1]),text:"--"}),t-=1)),(s==="'"||s==="`")&&e[a+1].text===s&&(e.splice(a,2,{type:"textord",mode:"text",loc:h0.range(n,e[a+1]),text:s+s}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var a=t.slice(5),n=a.charAt(0)==="*";if(n&&(a=a.slice(1)),a.length<2||a.charAt(0)!==a.slice(-1))throw new M(`\\verb assertion failed --
please report what input caused this bug`);return a=a.slice(1,-1),{type:"verb",mode:"text",body:a,star:n}}fr.hasOwnProperty(t[0])&&!$[this.mode][t[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=fr[t[0]]+t.slice(1));var s=r4.exec(t);s&&(t=t.substring(0,s.index),t==="i"?t="ı":t==="j"&&(t="ȷ"));var o;if($[this.mode][t]){this.settings.strict&&this.mode==="math"&&st.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var m=$[this.mode][t].group,c=h0.range(e),p;if(ja.hasOwnProperty(m)){var g=m;p={type:"atom",mode:this.mode,family:g,loc:c,text:t}}else p={type:m,mode:this.mode,loc:c,text:t};o=p}else if(t.charCodeAt(0)>=128)this.settings.strict&&(vr(t.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'"'+(" ("+t.charCodeAt(0)+")"),e)),o={type:"textord",mode:"text",loc:h0.range(e),text:t};else return null;if(this.consume(),s)for(var y=0;y<s[0].length;y++){var x=s[0][y];if(!rt[x])throw new M("Unknown accent ' "+x+"'",e);var w=rt[x][this.mode]||rt[x].text;if(!w)throw new M("Accent "+x+" unsupported in "+this.mode+" mode",e);o={type:"accent",mode:this.mode,loc:h0.range(e),label:w,isStretchy:!1,isShifty:!0,base:o}}return o}}he.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Ct=function(e,t){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var a=new he(e,t);delete a.gullet.macros.current["\\df@tag"];var n=a.parse();if(delete a.gullet.macros.current["\\current@color"],delete a.gullet.macros.current["\\color"],a.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new M("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:a.subparse([new w0("\\df@tag")])}]}return n},oa=function(e,t,a){t.textContent="";var n=qt(e,a).toNode();t.appendChild(n)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),oa=function(){throw new M("KaTeX doesn't work in quirks mode.")});var l4=function(e,t){var a=qt(e,t).toMarkup();return a},o4=function(e,t){var a=new ct(t);return Ct(e,a)},ha=function(e,t,a){if(a.throwOnError||!(e instanceof M))throw e;var n=b.makeSpan(["katex-error"],[new f0(t)]);return n.setAttribute("title",e.toString()),n.setAttribute("style","color:"+a.errorColor),n},qt=function(e,t){var a=new ct(t);try{var n=Ct(e,a);return g1(n,e,a)}catch(s){return ha(s,e,a)}},h4=function(e,t){var a=new ct(t);try{var n=Ct(e,a);return b1(n,e,a)}catch(s){return ha(s,e,a)}},m4={version:"0.16.9",render:oa,renderToString:l4,ParseError:M,SETTINGS_SCHEMA:Te,__parse:o4,__renderToDomTree:qt,__renderToHTMLTree:h4,__setFontMetrics:Ga,__defineSymbol:i,__defineFunction:B,__defineMacro:u,__domTree:{Span:ue,Anchor:pt,SymbolNode:f0,SvgNode:N0,PathNode:P0,LineNode:it}};export{m4 as default};
import{at as I,aT as yt,aU as ft,ap as dt,aq as pt,as as gt,ar as mt,aV as xt,ax as W,az as kt}from"./index-Hfn5l4aw.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-1b9ff2ad-B4iIY08o.js";import{d as Q}from"./arc-01f1c7b4-EdqqRiec.js";import"./path-39bad7e2-aUcfwwLI.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var $;return $=u.pop()||x.lex()||J,typeof $!="number"&&($ instanceof Array&&(u=$,$=u.pop()),$=r.symbols_[$]||$),$}for(var _,E,b,q,A={},N,T,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var O="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?O="Parse error on line "+(R+1)+`:
import{c as C,C as yt,D as ft,s as dt,g as pt,b as gt,a as mt,E as xt,h as W,i as kt}from"./slidev/Mermaid-sWhOKcCj.js";import{d as _t,f as bt,a as vt,g as it}from"./svgDrawCommon-99ae2c94-BzrMl0LX.js";import{d as Q}from"./arc-5aa99581-BSv9xTON.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./path-39bad7e2-CbwjOpE9.js";var G=function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var $;return $=u.pop()||x.lex()||J,typeof $!="number"&&($ instanceof Array&&(u=$,$=u.pop()),$=r.symbols_[$]||$),$}for(var _,E,b,O,I={},N,T,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var q="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?q="Parse error on line "+(R+1)+`:
Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":O="Parse error on line "+(R+1)+": Unexpected "+(_==J?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(O,{text:x.match,token:this.terminals_[_]||_,line:x.yylineno,loc:Y,expected:B})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(b[0]){case 1:a.push(_),d.push(x.yytext),o.push(x.yylloc),a.push(b[1]),_=null,Z=x.yyleng,k=x.yytext,R=x.yylineno,Y=x.yylloc;break;case 2:if(T=this.productions_[b[1]][1],A.$=d[d.length-T],A._$={first_line:o[o.length-(T||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(T||1)].first_column,last_column:o[o.length-1].last_column},ht&&(A._$.range=[o[o.length-(T||1)].range[0],o[o.length-1].range[1]]),q=this.performAction.apply(A,[k,Z,R,S.yy,b[1],d,o].concat(ct)),typeof q<"u")return q;T&&(a=a.slice(0,-1*T*2),d=d.slice(0,-1*T),o=o.slice(0,-1*T)),a.push(this.productions_[b[1]][0]),d.push(A.$),o.push(A._$),K=w[a[a.length-2]][a[a.length-1]],a.push(K);break;case 3:return!0}}return!0}},m=function(){var p={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(s,r){return this.yy=r||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var r=s.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var r=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":q="Parse error on line "+(R+1)+": Unexpected "+(_==J?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(q,{text:x.match,token:this.terminals_[_]||_,line:x.yylineno,loc:Y,expected:B})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(b[0]){case 1:a.push(_),d.push(x.yytext),o.push(x.yylloc),a.push(b[1]),_=null,Z=x.yyleng,k=x.yytext,R=x.yylineno,Y=x.yylloc;break;case 2:if(T=this.productions_[b[1]][1],I.$=d[d.length-T],I._$={first_line:o[o.length-(T||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(T||1)].first_column,last_column:o[o.length-1].last_column},ht&&(I._$.range=[o[o.length-(T||1)].range[0],o[o.length-1].range[1]]),O=this.performAction.apply(I,[k,Z,R,S.yy,b[1],d,o].concat(ct)),typeof O<"u")return O;T&&(a=a.slice(0,-1*T*2),d=d.slice(0,-1*T),o=o.slice(0,-1*T)),a.push(this.productions_[b[1]][0]),d.push(I.$),o.push(I._$),K=w[a[a.length-2]][a[a.length-1]],a.push(K);break;case 3:return!0}}return!0}},m=function(){var p={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(s,r){return this.yy=r||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var r=s.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var r=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,u,d){switch(u){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return p}();y.lexer=m;function g(){this.yy={}}return g.prototype=y,y.Parser=g,new g}();G.parser=G;const wt=G;let C="";const H=[],V=[],F=[],Tt=function(){H.length=0,V.length=0,C="",F.length=0,xt()},$t=function(t){C=t,H.push(t)},Mt=function(){return H},St=function(){let t=D();const e=100;let i=0;for(;!t&&i<e;)t=D(),i++;return V.push(...F),V},Et=function(){const t=[];return V.forEach(i=>{i.people&&t.push(...i.people)}),[...new Set(t)].sort()},Pt=function(t,e){const i=e.substr(1).split(":");let l=0,n=[];i.length===1?(l=Number(i[0]),n=[]):(l=Number(i[0]),n=i[1].split(","));const h=n.map(f=>f.trim()),c={section:C,type:C,people:h,task:t,score:l};F.push(c)},It=function(t){const e={section:C,type:C,description:t,task:t,classes:[]};V.push(e)},D=function(){const t=function(i){return F[i].processed};let e=!0;for(const[i,l]of F.entries())t(i),e=e&&l.processed;return e},At=function(){return Et()},tt={getConfig:()=>I().journey,clear:Tt,setDiagramTitle:yt,getDiagramTitle:ft,setAccTitle:dt,getAccTitle:pt,setAccDescription:gt,getAccDescription:mt,addSection:$t,getSections:Mt,getTasks:St,addTask:Pt,addTaskOrg:It,getActors:At},Ct=t=>`.label {
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,u,d){switch(u){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return p}();y.lexer=m;function g(){this.yy={}}return g.prototype=y,y.Parser=g,new g}();G.parser=G;const wt=G;let A="";const H=[],V=[],F=[],Tt=function(){H.length=0,V.length=0,A="",F.length=0,xt()},$t=function(t){A=t,H.push(t)},Mt=function(){return H},St=function(){let t=D();const e=100;let i=0;for(;!t&&i<e;)t=D(),i++;return V.push(...F),V},Et=function(){const t=[];return V.forEach(i=>{i.people&&t.push(...i.people)}),[...new Set(t)].sort()},Pt=function(t,e){const i=e.substr(1).split(":");let l=0,n=[];i.length===1?(l=Number(i[0]),n=[]):(l=Number(i[0]),n=i[1].split(","));const h=n.map(f=>f.trim()),c={section:A,type:A,people:h,task:t,score:l};F.push(c)},Ct=function(t){const e={section:A,type:A,description:t,task:t,classes:[]};V.push(e)},D=function(){const t=function(i){return F[i].processed};let e=!0;for(const[i,l]of F.entries())t(i),e=e&&l.processed;return e},It=function(){return Et()},tt={getConfig:()=>C().journey,clear:Tt,setDiagramTitle:yt,getDiagramTitle:ft,setAccTitle:dt,getAccTitle:pt,setAccDescription:gt,getAccDescription:mt,addSection:$t,getSections:Mt,getTasks:St,addTask:Pt,addTaskOrg:Ct,getActors:It},At=t=>`.label {
`,Vt=Ct,U=function(t,e){return _t(t,e)},Ft=function(t,e){const l=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=t.append("g");n.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(y){const m=Q().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function c(y){const m=Q().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function f(y){y.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return e.score>3?h(n):e.score<3?c(n):f(n),l},rt=function(t,e){const i=t.append("circle");return i.attr("cx",e.cx),i.attr("cy",e.cy),i.attr("class","actor-"+e.pos),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("r",e.r),i.class!==void 0&&i.attr("class",i.class),e.title!==void 0&&i.append("title").text(e.title),i},at=function(t,e){return bt(t,e)},Lt=function(t,e){function i(n,h,c,f,y){return n+","+h+" "+(n+c)+","+h+" "+(n+c)+","+(h+f-y)+" "+(n+c-y*1.2)+","+(h+f)+" "+n+","+(h+f)}const l=t.append("polygon");l.attr("points",i(e.x,e.y,50,20,7)),l.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,at(t,e)},Rt=function(t,e,i){const l=t.append("g"),n=it();n.x=e.x,n.y=e.y,n.fill=e.fill,n.width=i.width*e.taskCount+i.diagramMarginX*(e.taskCount-1),n.height=i.height,n.class="journey-section section-type-"+e.num,n.rx=3,n.ry=3,U(l,n),ot(i)(e.text,l,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+e.num},i,e.colour)};let et=-1;const Nt=function(t,e,i){const l=e.x+i.width/2,n=t.append("g");et++;const h=300+5*30;n.append("line").attr("id","task"+et).attr("x1",l).attr("y1",e.y).attr("x2",l).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Ft(n,{cx:l,cy:300+(5-e.score)*30,score:e.score});const c=it();c.x=e.x,c.y=e.y,c.fill=e.fill,c.width=i.width,c.height=i.height,c.class="task task-type-"+e.num,c.rx=3,c.ry=3,U(n,c);let f=e.x+14;e.people.forEach(y=>{const m=e.actors[y].color,g={cx:f,cy:e.y,r:7,fill:m,stroke:"#000",title:y,pos:e.actors[y].position};rt(n,g),f+=10}),ot(i)(e.task,n,c.x,c.y,c.width,c.height,{class:"task"},i,e.colour)},Bt=function(t,e){vt(t,e)},ot=function(){function t(n,h,c,f,y,m,g,p){const s=h.append("text").attr("x",c+y/2).attr("y",f+m/2+5).style("font-color",p).style("text-anchor","middle").text(n);l(s,g)}function e(n,h,c,f,y,m,g,p,s){const{taskFontSize:r,taskFontFamily:a}=p,u=n.split(/<br\s*\/?>/gi);for(let d=0;d<u.length;d++){const o=d*r-r*(u.length-1)/2,w=h.append("text").attr("x",c+y/2).attr("y",f).attr("fill",s).style("text-anchor","middle").style("font-size",r).style("font-family",a);w.append("tspan").attr("x",c+y/2).attr("dy",o).text(u[d]),w.attr("y",f+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),l(w,g)}}function i(n,h,c,f,y,m,g,p){const s=h.append("switch"),a=s.append("foreignObject").attr("x",c).attr("y",f).attr("width",y).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");a.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),e(n,s,c,f,y,m,g,p),l(a,g)}function l(n,h){for(const c in h)c in h&&n.attr(c,h[c])}return function(n){return n.textPlacement==="fo"?i:n.textPlacement==="old"?t:e}}(),jt=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},L={drawRect:U,drawCircle:rt,drawSection:Rt,drawText:at,drawLabel:Lt,drawTask:Nt,drawBackgroundRect:Bt,initGraphics:jt},zt=function(t){Object.keys(t).forEach(function(i){j[i]=t[i]})},M={};function Yt(t){const e=I().journey;let i=60;Object.keys(M).forEach(l=>{const n=M[l].color,h={cx:20,cy:i,r:7,fill:n,stroke:"#000",pos:M[l].position};L.drawCircle(t,h);const c={x:40,y:i+7,fill:"#666",text:l,textMargin:e.boxTextMargin|5};L.drawText(t,c),i+=20})}const j=I().journey,P=j.leftMargin,qt=function(t,e,i,l){const n=I().journey,h=I().securityLevel;let c;h==="sandbox"&&(c=W("#i"+e));const f=h==="sandbox"?W(c.nodes()[0].contentDocument.body):W("body");v.init();const y=f.select("#"+e);L.initGraphics(y);const m=l.db.getTasks(),g=l.db.getDiagramTitle(),p=l.db.getActors();for(const o in M)delete M[o];let s=0;p.forEach(o=>{M[o]={color:n.actorColours[s%n.actorColours.length],position:s},s++}),Yt(y),v.insert(0,0,P,Object.keys(M).length*50),Ot(y,m,0);const r=v.getBounds();g&&y.append("text").text(g).attr("x",P).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const a=r.stopy-r.starty+2*n.diagramMarginY,u=P+r.stopx+2*n.diagramMarginX;kt(y,a,u,n.useMaxWidth),y.append("line").attr("x1",P).attr("y1",n.height*4).attr("x2",u-P-4).attr("y2",n.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const d=g?70:0;y.attr("viewBox",`${r.startx} -25 ${u} ${a+d}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",a+d+25)},v={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,i,l){t[e]===void 0?t[e]=i:t[e]=l(i,t[e])},updateBounds:function(t,e,i,l){const n=I().journey,h=this;let c=0;function f(y){return function(g){c++;const p=h.sequenceItems.length-c+1;h.updateVal(g,"starty",e-p*n.boxMargin,Math.min),h.updateVal(g,"stopy",l+p*n.boxMargin,Math.max),h.updateVal(v.data,"startx",t-p*n.boxMargin,Math.min),h.updateVal(v.data,"stopx",i+p*n.boxMargin,Math.max),y!=="activation"&&(h.updateVal(g,"startx",t-p*n.boxMargin,Math.min),h.updateVal(g,"stopx",i+p*n.boxMargin,Math.max),h.updateVal(v.data,"starty",e-p*n.boxMargin,Math.min),h.updateVal(v.data,"stopy",l+p*n.boxMargin,Math.max))}}this.sequenceItems.forEach(f())},insert:function(t,e,i,l){const n=Math.min(t,i),h=Math.max(t,i),c=Math.min(e,l),f=Math.max(e,l);this.updateVal(v.data,"startx",n,Math.min),this.updateVal(v.data,"starty",c,Math.min),this.updateVal(v.data,"stopx",h,Math.max),this.updateVal(v.data,"stopy",f,Math.max),this.updateBounds(n,c,h,f)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},X=j.sectionFills,st=j.sectionColours,Ot=function(t,e,i){const l=I().journey;let n="";const h=l.height*2+l.diagramMarginY,c=i+h;let f=0,y="#CCC",m="black",g=0;for(const[p,s]of e.entries()){if(n!==s.section){y=X[f%X.length],g=f%X.length,m=st[f%st.length];let a=0;const u=s.section;for(let o=p;o<e.length&&e[o].section==u;o++)a=a+1;const d={x:p*l.taskMargin+p*l.width+P,y:50,text:s.section,fill:y,num:g,colour:m,taskCount:a};L.drawSection(t,d,l),n=s.section,f++}const r=s.people.reduce((a,u)=>(M[u]&&(a[u]=M[u]),a),{});s.x=p*l.taskMargin+p*l.width+P,s.y=c,s.width=l.diagramMarginX,s.height=l.diagramMarginY,s.colour=m,s.fill=y,s.num=g,s.actors=r,L.drawTask(t,s,l),v.insert(s.x,s.y,s.x+s.width+l.taskMargin,300+5*30)}},nt={setConf:zt,draw:qt},Ut={parser:wt,db:tt,renderer:nt,styles:Vt,init:t=>{nt.setConf(t.journey),tt.clear()}};export{Ut as diagram};
`,Vt=At,U=function(t,e){return _t(t,e)},Ft=function(t,e){const l=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=t.append("g");n.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(y){const m=Q().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function c(y){const m=Q().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function f(y){y.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return e.score>3?h(n):e.score<3?c(n):f(n),l},rt=function(t,e){const i=t.append("circle");return i.attr("cx",e.cx),i.attr("cy",e.cy),i.attr("class","actor-"+e.pos),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("r",e.r),i.class!==void 0&&i.attr("class",i.class),e.title!==void 0&&i.append("title").text(e.title),i},at=function(t,e){return bt(t,e)},Lt=function(t,e){function i(n,h,c,f,y){return n+","+h+" "+(n+c)+","+h+" "+(n+c)+","+(h+f-y)+" "+(n+c-y*1.2)+","+(h+f)+" "+n+","+(h+f)}const l=t.append("polygon");l.attr("points",i(e.x,e.y,50,20,7)),l.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,at(t,e)},Rt=function(t,e,i){const l=t.append("g"),n=it();n.x=e.x,n.y=e.y,n.fill=e.fill,n.width=i.width*e.taskCount+i.diagramMarginX*(e.taskCount-1),n.height=i.height,n.class="journey-section section-type-"+e.num,n.rx=3,n.ry=3,U(l,n),ot(i)(e.text,l,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+e.num},i,e.colour)};let et=-1;const Nt=function(t,e,i){const l=e.x+i.width/2,n=t.append("g");et++;const h=300+5*30;n.append("line").attr("id","task"+et).attr("x1",l).attr("y1",e.y).attr("x2",l).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Ft(n,{cx:l,cy:300+(5-e.score)*30,score:e.score});const c=it();c.x=e.x,c.y=e.y,c.fill=e.fill,c.width=i.width,c.height=i.height,c.class="task task-type-"+e.num,c.rx=3,c.ry=3,U(n,c);let f=e.x+14;e.people.forEach(y=>{const m=e.actors[y].color,g={cx:f,cy:e.y,r:7,fill:m,stroke:"#000",title:y,pos:e.actors[y].position};rt(n,g),f+=10}),ot(i)(e.task,n,c.x,c.y,c.width,c.height,{class:"task"},i,e.colour)},Bt=function(t,e){vt(t,e)},ot=function(){function t(n,h,c,f,y,m,g,p){const s=h.append("text").attr("x",c+y/2).attr("y",f+m/2+5).style("font-color",p).style("text-anchor","middle").text(n);l(s,g)}function e(n,h,c,f,y,m,g,p,s){const{taskFontSize:r,taskFontFamily:a}=p,u=n.split(/<br\s*\/?>/gi);for(let d=0;d<u.length;d++){const o=d*r-r*(u.length-1)/2,w=h.append("text").attr("x",c+y/2).attr("y",f).attr("fill",s).style("text-anchor","middle").style("font-size",r).style("font-family",a);w.append("tspan").attr("x",c+y/2).attr("dy",o).text(u[d]),w.attr("y",f+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),l(w,g)}}function i(n,h,c,f,y,m,g,p){const s=h.append("switch"),a=s.append("foreignObject").attr("x",c).attr("y",f).attr("width",y).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");a.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),e(n,s,c,f,y,m,g,p),l(a,g)}function l(n,h){for(const c in h)c in h&&n.attr(c,h[c])}return function(n){return n.textPlacement==="fo"?i:n.textPlacement==="old"?t:e}}(),jt=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},L={drawRect:U,drawCircle:rt,drawSection:Rt,drawText:at,drawLabel:Lt,drawTask:Nt,drawBackgroundRect:Bt,initGraphics:jt},zt=function(t){Object.keys(t).forEach(function(i){j[i]=t[i]})},M={};function Yt(t){const e=C().journey;let i=60;Object.keys(M).forEach(l=>{const n=M[l].color,h={cx:20,cy:i,r:7,fill:n,stroke:"#000",pos:M[l].position};L.drawCircle(t,h);const c={x:40,y:i+7,fill:"#666",text:l,textMargin:e.boxTextMargin|5};L.drawText(t,c),i+=20})}const j=C().journey,P=j.leftMargin,Ot=function(t,e,i,l){const n=C().journey,h=C().securityLevel;let c;h==="sandbox"&&(c=W("#i"+e));const f=h==="sandbox"?W(c.nodes()[0].contentDocument.body):W("body");v.init();const y=f.select("#"+e);L.initGraphics(y);const m=l.db.getTasks(),g=l.db.getDiagramTitle(),p=l.db.getActors();for(const o in M)delete M[o];let s=0;p.forEach(o=>{M[o]={color:n.actorColours[s%n.actorColours.length],position:s},s++}),Yt(y),v.insert(0,0,P,Object.keys(M).length*50),qt(y,m,0);const r=v.getBounds();g&&y.append("text").text(g).attr("x",P).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const a=r.stopy-r.starty+2*n.diagramMarginY,u=P+r.stopx+2*n.diagramMarginX;kt(y,a,u,n.useMaxWidth),y.append("line").attr("x1",P).attr("y1",n.height*4).attr("x2",u-P-4).attr("y2",n.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const d=g?70:0;y.attr("viewBox",`${r.startx} -25 ${u} ${a+d}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",a+d+25)},v={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,i,l){t[e]===void 0?t[e]=i:t[e]=l(i,t[e])},updateBounds:function(t,e,i,l){const n=C().journey,h=this;let c=0;function f(y){return function(g){c++;const p=h.sequenceItems.length-c+1;h.updateVal(g,"starty",e-p*n.boxMargin,Math.min),h.updateVal(g,"stopy",l+p*n.boxMargin,Math.max),h.updateVal(v.data,"startx",t-p*n.boxMargin,Math.min),h.updateVal(v.data,"stopx",i+p*n.boxMargin,Math.max),y!=="activation"&&(h.updateVal(g,"startx",t-p*n.boxMargin,Math.min),h.updateVal(g,"stopx",i+p*n.boxMargin,Math.max),h.updateVal(v.data,"starty",e-p*n.boxMargin,Math.min),h.updateVal(v.data,"stopy",l+p*n.boxMargin,Math.max))}}this.sequenceItems.forEach(f())},insert:function(t,e,i,l){const n=Math.min(t,i),h=Math.max(t,i),c=Math.min(e,l),f=Math.max(e,l);this.updateVal(v.data,"startx",n,Math.min),this.updateVal(v.data,"starty",c,Math.min),this.updateVal(v.data,"stopx",h,Math.max),this.updateVal(v.data,"stopy",f,Math.max),this.updateBounds(n,c,h,f)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},X=j.sectionFills,st=j.sectionColours,qt=function(t,e,i){const l=C().journey;let n="";const h=l.height*2+l.diagramMarginY,c=i+h;let f=0,y="#CCC",m="black",g=0;for(const[p,s]of e.entries()){if(n!==s.section){y=X[f%X.length],g=f%X.length,m=st[f%st.length];let a=0;const u=s.section;for(let o=p;o<e.length&&e[o].section==u;o++)a=a+1;const d={x:p*l.taskMargin+p*l.width+P,y:50,text:s.section,fill:y,num:g,colour:m,taskCount:a};L.drawSection(t,d,l),n=s.section,f++}const r=s.people.reduce((a,u)=>(M[u]&&(a[u]=M[u]),a),{});s.x=p*l.taskMargin+p*l.width+P,s.y=c,s.width=l.diagramMarginX,s.height=l.diagramMarginY,s.colour=m,s.fill=y,s.num=g,s.actors=r,L.drawTask(t,s,l),v.insert(s.x,s.y,s.x+s.width+l.taskMargin,300+5*30)}},nt={setConf:zt,draw:Ot},Qt={parser:wt,db:tt,renderer:nt,styles:Vt,init:t=>{nt.setConf(t.journey),tt.clear()}};export{Qt as diagram};
import{ay as Y,b8 as D,az as M}from"./index-Hfn5l4aw.js";var O=function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",b=0,L=0,N=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},v,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(v in d[g])this.terminals_[v]&&v>N&&S.push("'"+this.terminals_[v]+"'");o.showPosition?A="Parse error on line "+(b+1)+`:
import{l as Y,U as D,i as M}from"./slidev/Mermaid-sWhOKcCj.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var O=function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",v=0,L=0,N=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},b,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>N&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`:
Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(b+1)+": Unexpected "+(l==T?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(h[0]){case 1:n.push(l),r.push(o.yytext),i.push(o.yylloc),n.push(h[1]),l=null,L=o.yyleng,P=o.yytext,b=o.yylineno,I=o.yylloc;break;case 2:if(c=this.productions_[h[1]][1],_.$=r[r.length-c],_._$={first_line:i[i.length-(c||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(c||1)].first_column,last_column:i[i.length-1].last_column},z&&(_._$.range=[i[i.length-(c||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(_,[P,L,b,p.yy,h[1],r,i].concat(R)),typeof w<"u")return w;c&&(n=n.slice(0,-1*c*2),r=r.slice(0,-1*c),i=i.slice(0,-1*c)),n.push(this.productions_[h[1]][0]),r.push(_.$),i.push(_._$),F=d[n[n.length-2]][n[n.length-1]],n.push(F);break;case 3:return!0}}return!0}},k=function(){var u={EOF:1,parseError:function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(v+1)+": Unexpected "+(l==T?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(h[0]){case 1:n.push(l),r.push(o.yytext),i.push(o.yylloc),n.push(h[1]),l=null,L=o.yyleng,P=o.yytext,v=o.yylineno,I=o.yylloc;break;case 2:if(c=this.productions_[h[1]][1],_.$=r[r.length-c],_._$={first_line:i[i.length-(c||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(c||1)].first_column,last_column:i[i.length-1].last_column},z&&(_._$.range=[i[i.length-(c||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(_,[P,L,v,p.yy,h[1],r,i].concat(R)),typeof w<"u")return w;c&&(n=n.slice(0,-1*c*2),r=r.slice(0,-1*c),i=i.slice(0,-1*c)),n.push(this.productions_[h[1]][0]),r.push(_.$),i.push(_._$),F=d[n[n.length-2]][n[n.length-1]],n.push(F);break;case 3:return!0}}return!0}},k=function(){var u={EOF:1,parseError:function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+a);const k=D(f);M(k,100,400,!0),k.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${m}`)},H={draw:G},K={parser:B,db:C,renderer:H};export{K as diagram};
`+a);const k=D(f);M(k,100,400,!0),k.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${m}`)},H={draw:G},tt={parser:B,db:C,renderer:H};export{tt as diagram};
import{i as N,G as A}from"./graph-af3d5df6-B9Rrt_D8.js";import{m as $,l as H}from"./layout-6685625a-TirZJcn7.js";import{c as V}from"./clone-d2e37f8c-kF1Uud7q.js";import{i as U,u as W,s as _,a as q,b as z,g as D,p as O,c as K,d as Q,e as Y,f as Z,h as J,j as p}from"./edges-1e1ebc73-BF9aEHVZ.js";import{l as s,c as T,o as S,h as L}from"./slidev/Mermaid-sWhOKcCj.js";import{a as I}from"./createText-f6615236-DY9JQ1lr.js";function m(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:tt(e),edges:et(e)};return N(e.graph())||(t.value=V(e.graph())),t}function tt(e){return $(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return N(n)||(i.value=n),N(r)||(i.parent=r),i})}function et(e){return $(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return N(t.name)||(r.name=t.name),N(n)||(r.value=n),r})}let l={},g={},R={};const nt=()=>{g={},R={},l={}},B=(e,t)=>(s.trace("In isDescendant",t," ",e," = ",g[t].includes(e)),!!g[t].includes(e)),it=(e,t)=>(s.info("Descendants of ",t," is ",g[t]),s.info("Edge is ",e),e.v===t||e.w===t?!1:g[t]?g[t].includes(e.v)||B(e.v,t)||B(e.w,t)||g[t].includes(e.w):(s.debug("Tilt, ",t,",not in descendants"),!1)),P=(e,t,n,r)=>{s.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const i=t.children(e)||[];e!==r&&i.push(e),s.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(a=>{if(t.children(a).length>0)P(a,t,n,r);else{const d=t.node(a);s.info("cp ",a," to ",r," with parent ",e),n.setNode(a,d),r!==t.parent(a)&&(s.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(s.debug("Setting parent",a,e),n.setParent(a,e)):(s.info("In copy ",e,"root",r,"data",t.node(e),r),s.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));const u=t.edges(a);s.debug("Copying Edges",u),u.forEach(f=>{s.info("Edge",f);const h=t.edge(f.v,f.w,f.name);s.info("Edge data",h,r);try{it(f,r)?(s.info("Copying as ",f.v,f.w,h,f.name),n.setEdge(f.v,f.w,h,f.name),s.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):s.info("Skipping copy of edge ",f.v,"-->",f.w," rootId: ",r," clusterId:",e)}catch(w){s.error(w)}})}s.debug("Removing node",a),t.removeNode(a)})},k=(e,t)=>{const n=t.children(e);let r=[...n];for(const i of n)R[i]=e,r=[...r,...k(i,t)];return r},C=(e,t)=>{s.trace("Searching",e);const n=t.children(e);if(s.trace("Searching children of id ",e,n),n.length<1)return s.trace("This is a valid node",e),e;for(const r of n){const i=C(r,t);if(i)return s.trace("Found replacement for",e," => ",i),i}},X=e=>!l[e]||!l[e].externalConnections?e:l[e]?l[e].id:e,st=(e,t)=>{if(!e||t>10){s.debug("Opting out, no graph ");return}else s.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(s.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),g[n]=k(n,e),l[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),i=e.edges();r.length>0?(s.debug("Cluster identified",n,g),i.forEach(a=>{if(a.v!==n&&a.w!==n){const d=B(a.v,n),u=B(a.w,n);d^u&&(s.warn("Edge: ",a," leaves cluster ",n),s.warn("Descendants of XXX ",n,": ",g[n]),l[n].externalConnections=!0)}})):s.debug("Not a cluster ",n,g)});for(let n of Object.keys(l)){const r=l[n].id,i=e.parent(r);i!==n&&l[i]&&!l[i].externalConnections&&(l[n].id=i)}e.edges().forEach(function(n){const r=e.edge(n);s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),s.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(s.warn("Fix XXX",l,"ids:",n.v,n.w,"Translating: ",l[n.v]," --- ",l[n.w]),l[n.v]&&l[n.w]&&l[n.v]===l[n.w]){s.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name);const d=n.w+"---"+n.v;e.setNode(d,{domId:d,id:d,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const u=structuredClone(r),f=structuredClone(r);u.label="",u.arrowTypeEnd="none",f.label="",u.fromCluster=n.v,f.toCluster=n.v,e.setEdge(i,d,u,n.name+"-cyclic-special"),e.setEdge(d,a,f,n.name+"-cyclic-special")}else if(l[n.v]||l[n.w]){if(s.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),i=X(n.v),a=X(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){const d=e.parent(i);l[d].externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){const d=e.parent(a);l[d].externalConnections=!0,r.toCluster=n.w}s.warn("Fix Replacing with XXX",i,a,n.name),e.setEdge(i,a,r,n.name)}}),s.warn("Adjusted Graph",m(e)),F(e,0),s.trace(l)},F=(e,t)=>{if(s.warn("extractor - ",t,m(e),e.children("D")),t>10){s.error("Bailing out");return}let n=e.nodes(),r=!1;for(const i of n){const a=e.children(i);r=r||a.length>0}if(!r){s.debug("Done, no node has children",e.nodes());return}s.debug("Nodes = ",n,t);for(const i of n)if(s.debug("Extracting node",i,l,l[i]&&!l[i].externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!l[i])s.debug("Not a cluster",i,t);else if(!l[i].externalConnections&&e.children(i)&&e.children(i).length>0){s.warn("Cluster without external connections, without a parent and with children",i,t);let d=e.graph().rankdir==="TB"?"LR":"TB";l[i]&&l[i].clusterData&&l[i].clusterData.dir&&(d=l[i].clusterData.dir,s.warn("Fixing dir",l[i].clusterData.dir,d));const u=new A({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});s.warn("Old graph before copy",m(e)),P(i,e,u,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:l[i].clusterData,labelText:l[i].labelText,graph:u}),s.warn("New graph after copy node: (",i,")",m(u)),s.debug("Old graph after copy",m(e))}else s.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!l[i].externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),s.debug(l);n=e.nodes(),s.warn("New list of nodes",n);for(const i of n){const a=e.node(i);s.warn(" Now next level",i,a),a.clusterNode&&F(a.graph,t+1)}},G=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const i=e.children(r),a=G(e,i);n=[...n,...a]}),n},rt=e=>G(e,e.children()),at=(e,t)=>{s.info("Creating subgraph rect for ",t.id,t);const n=T(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),i=r.insert("rect",":first-child"),a=S(n.flowchart.htmlLabels),d=r.insert("g").attr("class","cluster-label"),u=t.labelType==="markdown"?I(d,t.labelText,{style:t.labelStyle,useHtmlLabels:a}):d.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}const h=0*t.padding,w=h/2,x=t.width<=f.width+h?f.width+h:t.width;t.width<=f.width+h?t.diff=(f.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,s.trace("Data ",t,JSON.stringify(t)),i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-x/2).attr("y",t.y-t.height/2-w).attr("width",x).attr("height",t.height+h);const{subGraphTitleTopMargin:v}=D(n);a?d.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+v})`):d.attr("transform",`translate(${t.x}, ${t.y-t.height/2+v})`);const y=i.node().getBBox();return t.width=y.width,t.height=y.height,t.intersect=function(c){return p(t,c)},r},ct=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(u){return p(t,u)},n},ot=(e,t)=>{const n=T(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),i=r.insert("rect",":first-child"),a=r.insert("g").attr("class","cluster-label"),d=r.append("rect"),u=a.node().appendChild(J(t.labelText,t.labelStyle,void 0,!0));let f=u.getBBox();if(S(n.flowchart.htmlLabels)){const c=u.children[0],o=L(u);f=c.getBoundingClientRect(),o.attr("width",f.width),o.attr("height",f.height)}f=u.getBBox();const h=0*t.padding,w=h/2,x=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(f.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,i.attr("class","outer").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w).attr("width",x+h).attr("height",t.height+h),d.attr("class","inner").attr("x",t.x-x/2-w).attr("y",t.y-t.height/2-w+f.height-1).attr("width",x+h).attr("height",t.height+h-f.height-3);const{subGraphTitleTopMargin:v}=D(n);a.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2-t.padding/3+(S(n.flowchart.htmlLabels)?5:3)+v})`);const y=i.node().getBBox();return t.height=y.height,t.intersect=function(c){return p(t,c)},r},lt=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,a=i/2;r.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+i).attr("height",t.height+i);const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.diff=-t.padding/2,t.intersect=function(u){return p(t,u)},n},ft={rect:at,roundedWithTitle:ot,noteGroup:ct,divider:lt};let j={};const dt=(e,t)=>{s.trace("Inserting cluster");const n=t.shape||"rect";j[t.id]=ft[n](e,t)},ut=()=>{j={}},M=async(e,t,n,r,i,a)=>{s.info("Graph in recursive render: XXX",m(t),i);const d=t.graph().rankdir;s.trace("Dir in recursive render - dir:",d);const u=e.insert("g").attr("class","root");t.nodes()?s.info("Recursive render XXX",t.nodes()):s.info("No nodes found for",t),t.edges().length>0&&s.trace("Recursive edges",t.edge(t.edges()[0]));const f=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),w=u.insert("g").attr("class","edgeLabels"),x=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(c){const o=t.node(c);if(i!==void 0){const b=JSON.parse(JSON.stringify(i.clusterData));s.info("Setting data for cluster XXX (",c,") ",b,i),t.setNode(i.id,b),t.parent(c)||(s.trace("Setting parent",c,i.id),t.setParent(c,i.id,b))}if(s.info("(Insert) Node XXX"+c+": "+JSON.stringify(t.node(c))),o&&o.clusterNode){s.info("Cluster identified",c,o.width,t.node(c));const b=await M(x,o.graph,n,r,t.node(c),a),E=b.elem;W(o,E),o.diff=b.diff||0,s.info("Node bounds (abc123)",c,o,o.width,o.x,o.y),_(E,o),s.warn("Recursive render complete ",E,o)}else t.children(c).length>0?(s.info("Cluster - the non recursive path XXX",c,o.id,o,t),s.info(C(o.id,t)),l[o.id]={id:C(o.id,t),node:o}):(s.info("Node - the non recursive path",c,o.id,o),await q(x,t.node(c),d))})),t.edges().forEach(function(c){const o=t.edge(c.v,c.w,c.name);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c)),s.info("Edge "+c.v+" -> "+c.w+": ",c," ",JSON.stringify(t.edge(c))),s.info("Fix",l,"ids:",c.v,c.w,"Translating: ",l[c.v],l[c.w]),z(w,o)}),t.edges().forEach(function(c){s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(c))}),s.info("#############################################"),s.info("### Layout ###"),s.info("#############################################"),s.info(t),H(t),s.info("Graph after layout:",m(t));let v=0;const{subGraphTitleTotalMargin:y}=D(a);return rt(t).forEach(function(c){const o=t.node(c);s.info("Position "+c+": "+JSON.stringify(t.node(c))),s.info("Position "+c+": ("+o.x,","+o.y,") width: ",o.width," height: ",o.height),o&&o.clusterNode?(o.y+=y,O(o)):t.children(c).length>0?(o.height+=y,dt(f,o),l[o.id].node=o):(o.y+=y/2,O(o))}),t.edges().forEach(function(c){const o=t.edge(c);s.info("Edge "+c.v+" -> "+c.w+": "+JSON.stringify(o),o),o.points.forEach(E=>E.y+=y/2);const b=K(h,c,o,l,n,t,r);Q(o,b)}),t.nodes().forEach(function(c){const o=t.node(c);s.info(c,o.type,o.diff),o.type==="group"&&(v=o.diff)}),{elem:u,diff:v}},bt=async(e,t,n,r,i)=>{U(e,n,r,i),Y(),Z(),ut(),nt(),s.warn("Graph at first:",JSON.stringify(m(t))),st(t),s.warn("Graph after:",JSON.stringify(m(t)));const a=T();await M(e,t,r,i,void 0,a)};export{bt as r};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = ["assets/slidev/1--1SccWCr.js","assets/modules/vue-O-XuQLLR.js","assets/slidev/context-8sk6R7gr.js","assets/modules/shiki-CBnMlxcT.js","assets/modules/shiki-BSchMNmt.css","assets/slidev/2-C5CaHS53.js","assets/slidev/3-Gpy7S1Gl.js","assets/slidev/Mermaid-sWhOKcCj.js","assets/modules/file-saver-EUMWMpoS.js","assets/3-DBxdtZqV.css","assets/slidev/4-l7EwEV7U.js","assets/slidev/5-D6NuYssw.js","assets/slidev/print-jyzcjppc.js","assets/slidev/bottom-WehDtssn.js","assets/bottom-DbIWt59F.css","assets/slidev/PrintStyle-DYFVhmXJ.js","assets/print-Nssgrd1X.css","assets/slidev/print-DuifTBxY.js","assets/slidev/NoteDisplay-BdmlYjVU.js","assets/NoteDisplay-C6AkVv8T.css","assets/slidev/presenter-DqwarjmO.js","assets/modules/unplugin-icons-DhLcIxB1.js","assets/slidev/SlidesShow-Dk9xuOJo.js","assets/slidev/DrawingPreview-lUDfsxKN.js","assets/SlidesShow-DZAAkYiM.css","assets/slidev/DrawingControls-BxiOgCac.js","assets/DrawingControls-C5T1oZL5.css","assets/presenter-knhRrLBR.css","assets/slidev/play-C0mExgsc.js","assets/play-CoA43pdi.css"]
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{t as P,y,n as Ce,z as _s,A as lt,B as bs,C as ie,D as oe,E as ws,G as xs,H as Ms,I as jt,J as E,K as Ss,L as Ts,o as Dt,b as As,M as Wt,N as He,O as Ps,P as Os,Q as Cs,R as Es,S as Ls,T as zt,U as Is,d as $s,r as Ns,c as Rs,V as Fs,W as Hs,X as js,u as Ds}from"./modules/vue-O-XuQLLR.js";import{T as Ws}from"./modules/shiki-CBnMlxcT.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function s(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=s(r);fetch(r.href,i)}})();function me(t,e,s){return Math.min(s,Math.max(e,t))}function zs(...t){return Vs(t).reduce((e,s)=>e+s,0)}function qs(t){return t=t??[],Array.isArray(t)?t:[t]}function Vs(t){return qs(t).flat(1)}function Eo(...t){let e,s,n;t.length===1?(e=0,n=1,[s]=t):[e,s,n=1]=t;const r=[];let i=e;for(;i<s;)r.push(i),i+=n||1;return r}function Bs(t){return t!=null}function Us(t,e){return Object.fromEntries(Object.entries(t).map(([s,n])=>e(s,n)).filter(Bs))}function Lo(t){return Object.keys(t).forEach(e=>t[e]===void 0?delete t[e]:{}),t}const T={theme:"default",title:"Nix for genetics",titleTemplate:"%s - Slidev",addons:[],remoteAssets:!1,monaco:!0,monacoTypesSource:"local",monacoTypesAdditionalPackages:[],download:!1,export:{},info:!1,highlighter:"shiki",twoslash:!0,lineNumbers:!1,colorSchema:"auto",routerMode:"history",aspectRatio:1.7777777777777777,canvasWidth:980,exportFilename:"",selectable:!1,themeConfig:{},fonts:{sans:['"Avenir Next"','"Nunito Sans"',"ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:['"Fira Code"',"ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"],webfonts:["Avenir Next","Nunito Sans","Fira Code"],provider:"google",local:["Avenir Next"],italic:!1,weights:["200","400","600"]},favicon:"https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png",drawings:{enabled:!0,persist:!1,presenterOnly:!1,syncAll:!0},plantUmlServer:"https://www.plantuml.com/plantuml",codeCopy:!0,record:"dev",css:"unocss",presenter:!0,htmlAttrs:{},editor:!0},Ys=P(T.aspectRatio??16/9),Gs=P(T.canvasWidth??980),Io=y(()=>Math.ceil(Gs.value/Ys.value)),Ks=y(()=>Us(T.themeConfig||{},(t,e)=>[`--slidev-theme-${t}`,e]));function Qe(t,e={},s){for(const n in t){const r=t[n],i=s?`${s}:${n}`:n;typeof r=="object"&&r!==null?Qe(r,e,i):typeof r=="function"&&(e[i]=r)}return e}const Zs={run:t=>t()},Js=()=>Zs,qt=typeof console.createTask<"u"?console.createTask:Js;function Qs(t,e){const s=e.shift(),n=qt(s);return t.reduce((r,i)=>r.then(()=>n.run(()=>i(...e))),Promise.resolve())}function Xs(t,e){const s=e.shift(),n=qt(s);return Promise.all(t.map(r=>n.run(()=>r(...e))))}function We(t,e){for(const s of[...t])s(e)}class en{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,s,n={}){if(!e||typeof s!="function")return()=>{};const r=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let o=i.message;o||(o=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!s.name)try{Object.defineProperty(s,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(s),()=>{s&&(this.removeHook(e,s),s=void 0)}}hookOnce(e,s){let n,r=(...i)=>(typeof n=="function"&&n(),n=void 0,r=void 0,s(...i));return n=this.hook(e,r),n}removeHook(e,s){if(this._hooks[e]){const n=this._hooks[e].indexOf(s);n!==-1&&this._hooks[e].splice(n,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,s){this._deprecatedHooks[e]=typeof s=="string"?{to:s}:s;const n=this._hooks[e]||[];delete this._hooks[e];for(const r of n)this.hook(e,r)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const s in e)this.deprecateHook(s,e[s])}addHooks(e){const s=Qe(e),n=Object.keys(s).map(r=>this.hook(r,s[r]));return()=>{for(const r of n.splice(0,n.length))r()}}removeHooks(e){const s=Qe(e);for(const n in s)this.removeHook(n,s[n])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...s){return s.unshift(e),this.callHookWith(Qs,e,...s)}callHookParallel(e,...s){return s.unshift(e),this.callHookWith(Xs,e,...s)}callHookWith(e,s,...n){const r=this._before||this._after?{name:s,args:n,context:{}}:void 0;this._before&&We(this._before,r);const i=e(s in this._hooks?[...this._hooks[s]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&r&&We(this._after,r)}):(this._after&&r&&We(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const s=this._before.indexOf(e);s!==-1&&this._before.splice(s,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const s=this._after.indexOf(e);s!==-1&&this._after.splice(s,1)}}}}function tn(){return new en}function sn(t){return Array.isArray(t)?t:[t]}const nn=["title","titleTemplate","script","style","noscript"],Se=["base","meta","link","style","script","noscript"],rn=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],on=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],Vt=["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"],an=typeof window<"u";function ct(t){let e=9;for(let s=0;s<t.length;)e=Math.imul(e^t.charCodeAt(s++),9**9);return((e^e>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function mt(t){return t._h||ct(t._d?t._d:`${t.tag}:${t.textContent||t.innerHTML||""}:${Object.entries(t.props).map(([e,s])=>`${e}:${String(s)}`).join(",")}`)}function Bt(t,e){const{props:s,tag:n}=t;if(on.includes(n))return n;if(n==="link"&&s.rel==="canonical")return"canonical";if(s.charset)return"charset";const r=["id"];n==="meta"&&r.push("name","property","http-equiv");for(const i of r)if(typeof s[i]<"u"){const o=String(s[i]);return e&&!e(o)?!1:`${n}:${i}:${o}`}return!1}function vt(t,e){return t==null?e||null:typeof t=="function"?t(e):t}async function ln(t,e,s){const n={tag:t,props:await Ut(typeof e=="object"&&typeof e!="function"&&!(e instanceof Promise)?{...e}:{[["script","noscript","style"].includes(t)?"innerHTML":"textContent"]:e},["templateParams","titleTemplate"].includes(t))};return Vt.forEach(r=>{const i=typeof n.props[r]<"u"?n.props[r]:s[r];typeof i<"u"&&((!["innerHTML","textContent","children"].includes(r)||nn.includes(n.tag))&&(n[r==="children"?"innerHTML":r]=i),delete n.props[r])}),n.props.body&&(n.tagPosition="bodyClose",delete n.props.body),n.tag==="script"&&typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),Array.isArray(n.props.content)?n.props.content.map(r=>({...n,props:{...n.props,content:r}})):n}function cn(t,e){const s=t==="class"?" ":";";return typeof e=="object"&&!Array.isArray(e)&&(e=Object.entries(e).filter(([,n])=>n).map(([n,r])=>t==="style"?`${n}:${r}`:n)),(Array.isArray(e)?e.join(s):e).split(s).filter(n=>n.trim()).filter(Boolean).join(s)}async function Ut(t,e){for(const s of Object.keys(t)){if(["class","style"].includes(s)){t[s]=cn(s,t[s]);continue}if(t[s]instanceof Promise&&(t[s]=await t[s]),!e&&!Vt.includes(s)){const n=String(t[s]),r=s.startsWith("data-");n==="true"||n===""?t[s]=r?"true":!0:t[s]||(r&&n==="false"?t[s]="false":delete t[s])}}return t}const un=10;async function fn(t){const e=[];return Object.entries(t.resolvedInput).filter(([s,n])=>typeof n<"u"&&rn.includes(s)).forEach(([s,n])=>{const r=sn(n);e.push(...r.map(i=>ln(s,i,t)).flat())}),(await Promise.all(e)).flat().filter(Boolean).map((s,n)=>(s._e=t._i,t.mode&&(s._m=t.mode),s._p=(t._i<<un)+n,s))}const yt={base:-10,title:10},kt={critical:-80,high:-10,low:20};function Ee(t){let e=100;const s=t.tagPriority;return typeof s=="number"?s:(t.tag==="meta"?(t.props["http-equiv"]==="content-security-policy"&&(e=-30),t.props.charset&&(e=-20),t.props.name==="viewport"&&(e=-15)):t.tag==="link"&&t.props.rel==="preconnect"?e=20:t.tag in yt&&(e=yt[t.tag]),typeof s=="string"&&s in kt?e+kt[s]:e)}const hn=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],_t=["onload","onerror","onabort","onprogress","onloadstart"],B="%separator";function Te(t,e,s){if(typeof t!="string"||!t.includes("%"))return t;function n(o){let a;return["s","pageTitle"].includes(o)?a=e.pageTitle:o.includes(".")?a=o.split(".").reduce((l,c)=>l&&l[c]||void 0,e):a=e[o],typeof a<"u"?(a||"").replace(/"/g,'\\"'):!1}let r=t;try{r=decodeURI(t)}catch{}return(r.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(o=>{const a=n(o.slice(1));typeof a=="string"&&(t=t.replace(new RegExp(`\\${o}(\\W|$)`,"g"),(l,c)=>`${a}${c}`).trim())}),t.includes(B)&&(t.endsWith(B)&&(t=t.slice(0,-B.length).trim()),t.startsWith(B)&&(t=t.slice(B.length).trim()),t=t.replace(new RegExp(`\\${B}\\s*\\${B}`,"g"),B),t=Te(t,{separator:s},s)),t}async function dn(t,e={}){var u;const s=e.document||t.resolvedOptions.document;if(!s||!t.dirty)return;const n={shouldRender:!0,tags:[]};if(await t.hooks.callHook("dom:beforeRender",n),!n.shouldRender)return;const r=(await t.resolveTags()).map(f=>({tag:f,id:Se.includes(f.tag)?mt(f):f.tag,shouldRender:!0}));let i=t._dom;if(!i){i={elMap:{htmlAttrs:s.documentElement,bodyAttrs:s.body}};for(const f of["body","head"]){const h=(u=s[f])==null?void 0:u.children,d=[];for(const p of[...h].filter(g=>Se.includes(g.tagName.toLowerCase()))){const g={tag:p.tagName.toLowerCase(),props:await Ut(p.getAttributeNames().reduce((_,b)=>({..._,[b]:p.getAttribute(b)}),{})),innerHTML:p.innerHTML};let v=1,m=Bt(g);for(;m&&d.find(_=>_._d===m);)m=`${m}:${v++}`;g._d=m||void 0,d.push(g),i.elMap[p.getAttribute("data-hid")||mt(g)]=p}}}i.pendingSideEffects={...i.sideEffects||{}},i.sideEffects={};function o(f,h,d){const p=`${f}:${h}`;i.sideEffects[p]=d,delete i.pendingSideEffects[p]}function a({id:f,$el:h,tag:d}){const p=d.tag.endsWith("Attrs");i.elMap[f]=h,p||(["textContent","innerHTML"].forEach(g=>{d[g]&&d[g]!==h[g]&&(h[g]=d[g])}),o(f,"el",()=>{var g;(g=i.elMap[f])==null||g.remove(),delete i.elMap[f]}));for(const[g,v]of Object.entries(d._eventHandlers||{}))h.getAttribute(`data-${g}`)!==""&&((d.tag==="bodyAttrs"?s.defaultView:h).addEventListener(g.replace("on",""),v.bind(h)),h.setAttribute(`data-${g}`,""));Object.entries(d.props).forEach(([g,v])=>{const m=`attr:${g}`;if(g==="class")for(const _ of(v||"").split(" ").filter(Boolean))p&&o(f,`${m}:${_}`,()=>h.classList.remove(_)),!h.classList.contains(_)&&h.classList.add(_);else if(g==="style")for(const _ of(v||"").split(";").filter(Boolean)){const[b,...x]=_.split(":").map(L=>L.trim());o(f,`${m}:${_}:${b}`,()=>{h.style.removeProperty(b)}),h.style.setProperty(b,x.join(":"))}else h.getAttribute(g)!==v&&h.setAttribute(g,v===!0?"":String(v)),p&&o(f,m,()=>h.removeAttribute(g))})}const l=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of r){const{tag:h,shouldRender:d,id:p}=f;if(d){if(h.tag==="title"){s.title=h.textContent;continue}f.$el=f.$el||i.elMap[p],f.$el?a(f):Se.includes(h.tag)&&l.push(f)}}for(const f of l){const h=f.tag.tagPosition||"head";f.$el=s.createElement(f.tag.tag),a(f),c[h]=c[h]||s.createDocumentFragment(),c[h].appendChild(f.$el)}for(const f of r)await t.hooks.callHook("dom:renderTag",f,s,o);c.head&&s.head.appendChild(c.head),c.bodyOpen&&s.body.insertBefore(c.bodyOpen,s.body.firstChild),c.bodyClose&&s.body.appendChild(c.bodyClose),Object.values(i.pendingSideEffects).forEach(f=>f()),t._dom=i,t.dirty=!1,await t.hooks.callHook("dom:rendered",{renders:r})}async function pn(t,e={}){const s=e.delayFn||(n=>setTimeout(n,10));return t._domUpdatePromise=t._domUpdatePromise||new Promise(n=>s(async()=>{await dn(t,e),delete t._domUpdatePromise,n()}))}function gn(t){return e=>{var n,r;const s=((r=(n=e.resolvedOptions.document)==null?void 0:n.head.querySelector('script[id="unhead:payload"]'))==null?void 0:r.innerHTML)||!1;return s&&e.push(JSON.parse(s)),{mode:"client",hooks:{"entries:updated":function(i){pn(i,t)}}}}}const mn=["templateParams","htmlAttrs","bodyAttrs"],vn={hooks:{"tag:normalise":function({tag:t}){["hid","vmid","key"].forEach(n=>{t.props[n]&&(t.key=t.props[n],delete t.props[n])});const s=Bt(t)||(t.key?`${t.tag}:${t.key}`:!1);s&&(t._d=s)},"tags:resolve":function(t){const e={};t.tags.forEach(n=>{const r=(n.key?`${n.tag}:${n.key}`:n._d)||n._p,i=e[r];if(i){let a=n==null?void 0:n.tagDuplicateStrategy;if(!a&&mn.includes(n.tag)&&(a="merge"),a==="merge"){const l=i.props;["class","style"].forEach(c=>{l[c]&&(n.props[c]?(c==="style"&&!l[c].endsWith(";")&&(l[c]+=";"),n.props[c]=`${l[c]} ${n.props[c]}`):n.props[c]=l[c])}),e[r].props={...l,...n.props};return}else if(n._e===i._e){i._duped=i._duped||[],n._d=`${i._d}:${i._duped.length+1}`,i._duped.push(n);return}else if(Ee(n)>Ee(i))return}const o=Object.keys(n.props).length+(n.innerHTML?1:0)+(n.textContent?1:0);if(Se.includes(n.tag)&&o===0){delete e[r];return}e[r]=n});const s=[];Object.values(e).forEach(n=>{const r=n._duped;delete n._duped,s.push(n),r&&s.push(...r)}),t.tags=s,t.tags=t.tags.filter(n=>!(n.tag==="meta"&&(n.props.name||n.props.property)&&!n.props.content))}}},yn={mode:"server",hooks:{"tags:resolve":function(t){const e={};t.tags.filter(s=>["titleTemplate","templateParams","title"].includes(s.tag)&&s._m==="server").forEach(s=>{e[s.tag]=s.tag.startsWith("title")?s.textContent:s.props}),Object.keys(e).length&&t.tags.push({tag:"script",innerHTML:JSON.stringify(e),props:{id:"unhead:payload",type:"application/json"}})}}},kn=["script","link","bodyAttrs"],_n=t=>({hooks:{"tags:resolve":function(e){for(const s of e.tags.filter(n=>kn.includes(n.tag)))Object.entries(s.props).forEach(([n,r])=>{n.startsWith("on")&&typeof r=="function"&&(t.ssr&&_t.includes(n)?s.props[n]=`this.dataset.${n}fired = true`:delete s.props[n],s._eventHandlers=s._eventHandlers||{},s._eventHandlers[n]=r)}),t.ssr&&s._eventHandlers&&(s.props.src||s.props.href)&&(s.key=s.key||ct(s.props.src||s.props.href))},"dom:renderTag":function({$el:e,tag:s}){var n,r;for(const i of Object.keys((e==null?void 0:e.dataset)||{}).filter(o=>_t.some(a=>`${a}fired`===o))){const o=i.replace("fired","");(r=(n=s._eventHandlers)==null?void 0:n[o])==null||r.call(e,new Event(o.replace("on","")))}}}}),bn=["link","style","script","noscript"],wn={hooks:{"tag:normalise":({tag:t})=>{t.key&&bn.includes(t.tag)&&(t.props["data-hid"]=t._h=ct(t.key))}}},xn={hooks:{"tags:resolve":t=>{const e=s=>{var n;return(n=t.tags.find(r=>r._d===s))==null?void 0:n._p};for(const{prefix:s,offset:n}of hn)for(const r of t.tags.filter(i=>typeof i.tagPriority=="string"&&i.tagPriority.startsWith(s))){const i=e(r.tagPriority.replace(s,""));typeof i<"u"&&(r._p=i+n)}t.tags.sort((s,n)=>s._p-n._p).sort((s,n)=>Ee(s)-Ee(n))}}},Mn={meta:"content",link:"href",htmlAttrs:"lang"},Sn=t=>({hooks:{"tags:resolve":e=>{var a;const{tags:s}=e,n=(a=s.find(l=>l.tag==="title"))==null?void 0:a.textContent,r=s.findIndex(l=>l.tag==="templateParams"),i=r!==-1?s[r].props:{},o=i.separator||"|";delete i.separator,i.pageTitle=Te(i.pageTitle||n||"",i,o);for(const l of s.filter(c=>c.processTemplateParams!==!1)){const c=Mn[l.tag];c&&typeof l.props[c]=="string"?l.props[c]=Te(l.props[c],i,o):(l.processTemplateParams===!0||["titleTemplate","title"].includes(l.tag))&&["innerHTML","textContent"].forEach(u=>{typeof l[u]=="string"&&(l[u]=Te(l[u],i,o))})}t._templateParams=i,t._separator=o,e.tags=s.filter(l=>l.tag!=="templateParams")}}}),Tn={hooks:{"tags:resolve":t=>{const{tags:e}=t;let s=e.findIndex(r=>r.tag==="titleTemplate");const n=e.findIndex(r=>r.tag==="title");if(n!==-1&&s!==-1){const r=vt(e[s].textContent,e[n].textContent);r!==null?e[n].textContent=r||e[n].textContent:delete e[n]}else if(s!==-1){const r=vt(e[s].textContent);r!==null&&(e[s].textContent=r,e[s].tag="title",s=-1)}s!==-1&&delete e[s],t.tags=e.filter(Boolean)}}},An={hooks:{"tags:afterResolve":function(t){for(const e of t.tags)typeof e.innerHTML=="string"&&(e.innerHTML&&["application/ld+json","application/json"].includes(e.props.type)?e.innerHTML=e.innerHTML.replace(/</g,"\\u003C"):e.innerHTML=e.innerHTML.replace(new RegExp(`</${e.tag}`,"g"),`<\\/${e.tag}`))}}};let Yt;function Pn(t={}){const e=On(t);return e.use(gn()),Yt=e}function bt(t,e){return!t||t==="server"&&e||t==="client"&&!e}function On(t={}){const e=tn();e.addHooks(t.hooks||{}),t.document=t.document||(an?document:void 0);const s=!t.document,n=()=>{a.dirty=!0,e.callHook("entries:updated",a)};let r=0,i=[];const o=[],a={plugins:o,dirty:!1,resolvedOptions:t,hooks:e,headEntries(){return i},use(l){const c=typeof l=="function"?l(a):l;(!c.key||!o.some(u=>u.key===c.key))&&(o.push(c),bt(c.mode,s)&&e.addHooks(c.hooks||{}))},push(l,c){c==null||delete c.head;const u={_i:r++,input:l,...c};return bt(u.mode,s)&&(i.push(u),n()),{dispose(){i=i.filter(f=>f._i!==u._i),e.callHook("entries:updated",a),n()},patch(f){i=i.map(h=>(h._i===u._i&&(h.input=u.input=f),h)),n()}}},async resolveTags(){const l={tags:[],entries:[...i]};await e.callHook("entries:resolve",l);for(const c of l.entries){const u=c.resolvedInput||c.input;if(c.resolvedInput=await(c.transform?c.transform(u):u),c.resolvedInput)for(const f of await fn(c)){const h={tag:f,entry:c,resolvedOptions:a.resolvedOptions};await e.callHook("tag:normalise",h),l.tags.push(h.tag)}}return await e.callHook("tags:beforeResolve",l),await e.callHook("tags:resolve",l),await e.callHook("tags:afterResolve",l),l.tags},ssr:s};return[vn,yn,_n,wn,xn,Sn,Tn,An,...(t==null?void 0:t.plugins)||[]].forEach(l=>a.use(l)),a.hooks.callHook("init",a),a}function Cn(){return Yt}const En=_s.startsWith("3");function Ln(t){return typeof t=="function"?t():lt(t)}function Le(t,e=""){if(t instanceof Promise)return t;const s=Ln(t);return!t||!s?s:Array.isArray(s)?s.map(n=>Le(n,e)):typeof s=="object"?Object.fromEntries(Object.entries(s).map(([n,r])=>n==="titleTemplate"||n.startsWith("on")?[n,lt(r)]:[n,Le(r,n)])):s}const In={hooks:{"entries:resolve":function(t){for(const e of t.entries)e.resolvedInput=Le(e.input)}}},Gt="usehead";function $n(t){return{install(s){En&&(s.config.globalProperties.$unhead=t,s.config.globalProperties.$head=t,s.provide(Gt,t))}}.install}function Nn(t={}){t.domDelayFn=t.domDelayFn||(s=>Ce(()=>setTimeout(()=>s(),0)));const e=Pn(t);return e.use(In),e.install=$n(e),e}const wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xt="__unhead_injection_handler__";function Rn(){if(xt in wt)return wt[xt]();const t=bs(Gt);return t||console.warn("Unhead is missing Vue context, falling back to shared context. This may have unexpected results."),t||Cn()}function Fn(t,e={}){const s=e.head||Rn();if(s)return s.ssr?s.push(t,e):Hn(s,t,e)}function Hn(t,e,s={}){const n=P(!1),r=P({});ie(()=>{r.value=n.value?{}:Le(e)});const i=t.push(r.value,s);return oe(r,a=>{i.patch(a)}),jt()&&(ws(()=>{i.dispose()}),xs(()=>{n.value=!0}),Ms(()=>{n.value=!1})),i}function Kt(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(2,10)}function N(t,e,s){Object.defineProperty(t,e,{value:s,writable:!0,enumerable:!1})}const ee=E({page:0,clicks:0});let jn=[],Dn=[];N(ee,"$syncUp",!0);N(ee,"$syncDown",!0);N(ee,"$paused",!1);N(ee,"$onSet",t=>jn.push(t));N(ee,"$onPatch",t=>Dn.push(t));Kt();N(ee,"$patch",async()=>!1);function Zt(t,e,s=!1){const n=[];let r=!1,i=!1,o,a;const l=E(e);function c(d){n.push(d)}function u(d,p){l[d]!==p&&(clearTimeout(o),r=!0,l[d]=p,o=setTimeout(()=>r=!1,0))}function f(d){r||(clearTimeout(a),i=!0,Object.entries(d).forEach(([p,g])=>{l[p]=g}),a=setTimeout(()=>i=!1,0))}function h(d){let p;s?s&&window.addEventListener("storage",v=>{v&&v.key===d&&v.newValue&&f(JSON.parse(v.newValue))}):(p=new BroadcastChannel(d),p.addEventListener("message",v=>f(v.data)));function g(){!s&&p&&!i?p.postMessage(Ss(l)):s&&!i&&window.localStorage.setItem(d,JSON.stringify(l)),r||n.forEach(v=>v(l))}if(oe(l,g,{deep:!0,flush:"sync"}),s){const v=window.localStorage.getItem(d);v&&f(JSON.parse(v))}}return{init:h,onPatch:c,patch:u,state:l}}const{init:Wn,onPatch:zn,patch:le,state:$o}=Zt(ee,{page:1,clicks:0,viewerPage:1,viewerClicks:0}),te=E({});let qn=[],Vn=[];N(te,"$syncUp",!0);N(te,"$syncDown",!0);N(te,"$paused",!1);N(te,"$onSet",t=>qn.push(t));N(te,"$onPatch",t=>Vn.push(t));Kt();N(te,"$patch",async()=>!1);const{init:Bn,onPatch:No,patch:Ro,state:Fo}=Zt(te,{},!1),ut="$$slidev-clicks-context",Un="$$slidev-page",Ho="$$slidev-slide-scale",Yn="$$slidev-context",jo="$$slidev-route",Gn="$$slidev-render-context",Do="$$slidev-active",Wo="$$slidev-fontmatter",zo="$$slidev-slide-zoom",Ae="slidev-vclick-target",ce="slidev-vclick-hidden",ue="slidev-vclick-fade",ze="slidev-vclick-hidden-explicitly",qe="slidev-vclick-current",Ve="slidev-vclick-prior",Ie=999999,Kn=["localhost","127.0.0.1"],Zn=["clicks","clicksStart","disabled","hide","hideInToc","layout","level","preload","routeAlias","src","title","transition","zoom"],qo=[...Zn,"theme","titleTemplate","info","author","keywords","presenter","download","exportFilename","export","highlighter","lineNumbers","monaco","remoteAssets","selectable","record","colorSchema","routerMode","aspectRatio","canvasWidth","themeConfig","favicon","plantUmlServer","fonts","defaults","drawings","htmlAttrs","mdc"],Jt=P(!1);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Qt(t){return typeof t>"u"||t===null}function Jn(t){return typeof t=="object"&&t!==null}function Qn(t){return Array.isArray(t)?t:Qt(t)?[]:[t]}function Xn(t,e){var s,n,r,i;if(e)for(i=Object.keys(e),s=0,n=i.length;s<n;s+=1)r=i[s],t[r]=e[r];return t}function er(t,e){var s="",n;for(n=0;n<e;n+=1)s+=t;return s}function tr(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var sr=Qt,nr=Jn,rr=Qn,ir=er,or=tr,ar=Xn,ft={isNothing:sr,isObject:nr,toArray:rr,repeat:ir,isNegativeZero:or,extend:ar};function Xt(t,e){var s="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(s+='in "'+t.mark.name+'" '),s+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(s+=`
`+t.mark.snippet),n+" "+s):n}function ve(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Xt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ve.prototype=Object.create(Error.prototype);ve.prototype.constructor=ve;ve.prototype.toString=function(e){return this.name+": "+Xt(this,e)};var X=ve,lr=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],cr=["scalar","sequence","mapping"];function ur(t){var e={};return t!==null&&Object.keys(t).forEach(function(s){t[s].forEach(function(n){e[String(n)]=s})}),e}function fr(t,e){if(e=e||{},Object.keys(e).forEach(function(s){if(lr.indexOf(s)===-1)throw new X('Unknown option "'+s+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(s){return s},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=ur(e.styleAliases||null),cr.indexOf(this.kind)===-1)throw new X('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var A=fr;function Mt(t,e){var s=[];return t[e].forEach(function(n){var r=s.length;s.forEach(function(i,o){i.tag===n.tag&&i.kind===n.kind&&i.multi===n.multi&&(r=o)}),s[r]=n}),s}function hr(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,s;function n(r){r.multi?(t.multi[r.kind].push(r),t.multi.fallback.push(r)):t[r.kind][r.tag]=t.fallback[r.tag]=r}for(e=0,s=arguments.length;e<s;e+=1)arguments[e].forEach(n);return t}function Xe(t){return this.extend(t)}Xe.prototype.extend=function(e){var s=[],n=[];if(e instanceof A)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(s=s.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new X("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");s.forEach(function(i){if(!(i instanceof A))throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new X("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new X("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(i){if(!(i instanceof A))throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(Xe.prototype);return r.implicit=(this.implicit||[]).concat(s),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=Mt(r,"implicit"),r.compiledExplicit=Mt(r,"explicit"),r.compiledTypeMap=hr(r.compiledImplicit,r.compiledExplicit),r};var dr=Xe,pr=new A("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),gr=new A("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),mr=new A("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),vr=new dr({explicit:[pr,gr,mr]});function yr(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function kr(){return null}function _r(t){return t===null}var br=new A("tag:yaml.org,2002:null",{kind:"scalar",resolve:yr,construct:kr,predicate:_r,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function wr(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function xr(t){return t==="true"||t==="True"||t==="TRUE"}function Mr(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Sr=new A("tag:yaml.org,2002:bool",{kind:"scalar",resolve:wr,construct:xr,predicate:Mr,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Tr(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Ar(t){return 48<=t&&t<=55}function Pr(t){return 48<=t&&t<=57}function Or(t){if(t===null)return!1;var e=t.length,s=0,n=!1,r;if(!e)return!1;if(r=t[s],(r==="-"||r==="+")&&(r=t[++s]),r==="0"){if(s+1===e)return!0;if(r=t[++s],r==="b"){for(s++;s<e;s++)if(r=t[s],r!=="_"){if(r!=="0"&&r!=="1")return!1;n=!0}return n&&r!=="_"}if(r==="x"){for(s++;s<e;s++)if(r=t[s],r!=="_"){if(!Tr(t.charCodeAt(s)))return!1;n=!0}return n&&r!=="_"}if(r==="o"){for(s++;s<e;s++)if(r=t[s],r!=="_"){if(!Ar(t.charCodeAt(s)))return!1;n=!0}return n&&r!=="_"}}if(r==="_")return!1;for(;s<e;s++)if(r=t[s],r!=="_"){if(!Pr(t.charCodeAt(s)))return!1;n=!0}return!(!n||r==="_")}function Cr(t){var e=t,s=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(s=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return s*parseInt(e.slice(2),2);if(e[1]==="x")return s*parseInt(e.slice(2),16);if(e[1]==="o")return s*parseInt(e.slice(2),8)}return s*parseInt(e,10)}function Er(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!ft.isNegativeZero(t)}var Lr=new A("tag:yaml.org,2002:int",{kind:"scalar",resolve:Or,construct:Cr,predicate:Er,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Ir=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function $r(t){return!(t===null||!Ir.test(t)||t[t.length-1]==="_")}function Nr(t){var e,s;return e=t.replace(/_/g,"").toLowerCase(),s=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?s===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:s*parseFloat(e,10)}var Rr=/^[-+]?[0-9]+e/;function Fr(t,e){var s;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ft.isNegativeZero(t))return"-0.0";return s=t.toString(10),Rr.test(s)?s.replace("e",".e"):s}function Hr(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ft.isNegativeZero(t))}var jr=new A("tag:yaml.org,2002:float",{kind:"scalar",resolve:$r,construct:Nr,predicate:Hr,represent:Fr,defaultStyle:"lowercase"}),Dr=vr.extend({implicit:[br,Sr,Lr,jr]}),Wr=Dr,es=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ts=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function zr(t){return t===null?!1:es.exec(t)!==null||ts.exec(t)!==null}function qr(t){var e,s,n,r,i,o,a,l=0,c=null,u,f,h;if(e=es.exec(t),e===null&&(e=ts.exec(t)),e===null)throw new Error("Date resolve error");if(s=+e[1],n=+e[2]-1,r=+e[3],!e[4])return new Date(Date.UTC(s,n,r));if(i=+e[4],o=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],f=+(e[11]||0),c=(u*60+f)*6e4,e[9]==="-"&&(c=-c)),h=new Date(Date.UTC(s,n,r,i,o,a,l)),c&&h.setTime(h.getTime()-c),h}function Vr(t){return t.toISOString()}var Br=new A("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:zr,construct:qr,instanceOf:Date,represent:Vr});function Ur(t){return t==="<<"||t===null}var Yr=new A("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Ur}),ht=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function Gr(t){if(t===null)return!1;var e,s,n=0,r=t.length,i=ht;for(s=0;s<r;s++)if(e=i.indexOf(t.charAt(s)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}function Kr(t){var e,s,n=t.replace(/[\r\n=]/g,""),r=n.length,i=ht,o=0,a=[];for(e=0;e<r;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|i.indexOf(n.charAt(e));return s=r%4*6,s===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):s===18?(a.push(o>>10&255),a.push(o>>2&255)):s===12&&a.push(o>>4&255),new Uint8Array(a)}function Zr(t){var e="",s=0,n,r,i=t.length,o=ht;for(n=0;n<i;n++)n%3===0&&n&&(e+=o[s>>18&63],e+=o[s>>12&63],e+=o[s>>6&63],e+=o[s&63]),s=(s<<8)+t[n];return r=i%3,r===0?(e+=o[s>>18&63],e+=o[s>>12&63],e+=o[s>>6&63],e+=o[s&63]):r===2?(e+=o[s>>10&63],e+=o[s>>4&63],e+=o[s<<2&63],e+=o[64]):r===1&&(e+=o[s>>2&63],e+=o[s<<4&63],e+=o[64],e+=o[64]),e}function Jr(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Qr=new A("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Gr,construct:Kr,predicate:Jr,represent:Zr}),Xr=Object.prototype.hasOwnProperty,ei=Object.prototype.toString;function ti(t){if(t===null)return!0;var e=[],s,n,r,i,o,a=t;for(s=0,n=a.length;s<n;s+=1){if(r=a[s],o=!1,ei.call(r)!=="[object Object]")return!1;for(i in r)if(Xr.call(r,i))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(i)===-1)e.push(i);else return!1}return!0}function si(t){return t!==null?t:[]}var ni=new A("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ti,construct:si}),ri=Object.prototype.toString;function ii(t){if(t===null)return!0;var e,s,n,r,i,o=t;for(i=new Array(o.length),e=0,s=o.length;e<s;e+=1){if(n=o[e],ri.call(n)!=="[object Object]"||(r=Object.keys(n),r.length!==1))return!1;i[e]=[r[0],n[r[0]]]}return!0}function oi(t){if(t===null)return[];var e,s,n,r,i,o=t;for(i=new Array(o.length),e=0,s=o.length;e<s;e+=1)n=o[e],r=Object.keys(n),i[e]=[r[0],n[r[0]]];return i}var ai=new A("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ii,construct:oi}),li=Object.prototype.hasOwnProperty;function ci(t){if(t===null)return!0;var e,s=t;for(e in s)if(li.call(s,e)&&s[e]!==null)return!1;return!0}function ui(t){return t!==null?t:{}}var fi=new A("tag:yaml.org,2002:set",{kind:"mapping",resolve:ci,construct:ui});Wr.extend({implicit:[Br,Yr],explicit:[Qr,ni,ai,fi]});function St(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?" ":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}var hi=new Array(256),di=new Array(256);for(var ne=0;ne<256;ne++)hi[ne]=St(ne)?1:0,di[ne]=St(ne);function Vo(){const t=P(Date.now()),e=Ts({interval:1e3}),s=y(()=>{const r=(e.value-t.value)/1e3,i=Math.floor(r%60).toString().padStart(2,"0");return`${Math.floor(r/60).toString().padStart(2,"0")}:${i}`});function n(){t.value=e.value}return{timer:s,resetTimer:n}}function pi(t=5){const e=[],s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",n=s.length;for(let r=0;r<t;r++)e.push(s.charAt(Math.floor(Math.random()*n)));return e.join("")}function gi(t="+1"){let e=+t;return Number.isNaN(e)&&(console.warn("[slidev] Invalid click position:",t),e=0),[typeof t=="string"&&"+-".includes(t[0]),e]}const mi="modulepreload",vi=function(t){return"/slides/fosdem2024/"+t},Tt={},V=function(e,s,n){let r=Promise.resolve();if(s&&s.length>0){const i=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.all(s.map(l=>{if(l=vi(l),l in Tt)return;Tt[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(!!n)for(let d=i.length-1;d>=0;d--){const p=i[d];if(p.href===l&&(!c||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":mi,c||(h.as="script",h.crossOrigin=""),h.href=l,a&&h.setAttribute("nonce",a),document.head.appendChild(h),c)return new Promise((d,p)=>{h.addEventListener("load",d),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>e()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})},ss=(t,e)=>{const s=t.__vccOpts||t;for(const[n,r]of e)s[n]=r;return s},yi={},ki={class:"px-4 py-10 text-center text-red-700 dark:text-red-500 font-bold font-mono"};function _i(t,e){return Dt(),As("div",ki," An error occurred on this slide. Check the terminal for more information. ")}const bi=ss(yi,[["render",_i],["__file","/home/alex/notes/slides/node_modules/@slidev/client/layouts/error.vue"]]),fe=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"})),Y=E({theme:"default",title:"Nix for genetics"}),wi=E({layout:y(()=>Y.layout),transition:y(()=>Y.transition),class:y(()=>Y.class),clicks:y(()=>Y.clicks),name:y(()=>Y.name),preload:y(()=>Y.preload),slide:{index:0,content:"",note:"",title:"Nix for genetics",noteHTML:`<p>We are dealing with real world patients =</p>
<ul>
<li>accurate results : no mistake is allowed (diagnosis can be life changing)</li>
<li>reproducible : we need to have the trust of other doctors</li>
<li>fast : increasing demand !</li>
</ul>
<p>Rare diseases</p>
<ul>
<li>... are rare : how to diagnosis things you don't see often ?</li>
<li>mix of state-of-the art technology, computer science and human expertise</li>
</ul>
`,raw:"",frontmatter:Y,filepath:"/home/alex/notes/slides/fosdem2024.md",start:0,id:0,no:1},__clicksContext:null,__preloaded:!1}),G=E({transition:"fade-out",layout:"center"}),xi=E({layout:y(()=>G.layout),transition:y(()=>G.transition),class:y(()=>G.class),clicks:y(()=>G.clicks),name:y(()=>G.name),preload:y(()=>G.preload),slide:{index:1,content:"",note:"",title:"Next-generation sequencing",level:1,noteHTML:`<ul>
<li>How does that work in practice ?</li>
<li>We start from a blood sample. DNA is then extracted and "sequenced" (getting the DNA code)</li>
<li>Raw data cannot be used on its own so it needs to be processed and filtered.</li>
<li>The final output is a dataframe (i.e CSV) than a human can examine and try to find the diagnosis.</li>
<li>We still a human (no AI)</li>
<li>And bioinformatics is super important : if we filter too much, we miss the diagnosis. Not enough and the human won't be able to read the data.</li>
</ul>
`,raw:"",frontmatter:G,filepath:"/home/alex/notes/slides/fosdem2024.md",start:23,id:1,no:2},__clicksContext:null,__preloaded:!1}),K=E({layout:"two-cols-header"}),Mi=E({layout:y(()=>K.layout),transition:y(()=>K.transition),class:y(()=>K.class),clicks:y(()=>K.clicks),name:y(()=>K.name),preload:y(()=>K.preload),slide:{index:2,content:"",note:"",title:"Bioinformatics pipeline",level:1,noteHTML:`<p>Quite simple : a set of command-line utilites that process (compressed) text data</p>
<p>External databases are basically text file .</p>
<p>How does nix fit into this ?</p>
<ul>
<li>hard-coded software version and dependencies -> that's an obligation for the laboratory. A small update means to run all checks... and there are expensive</li>
<li>database could be managed ... but there are stored in a different folder. In theory it could be done (has been added a few month agay)</li>
<li>manage execution ?</li>
</ul>
`,raw:"",frontmatter:K,filepath:"/home/alex/notes/slides/fosdem2024.md",start:48,id:2,no:3},__clicksContext:null,__preloaded:!1}),Z=E({}),Si=E({layout:y(()=>Z.layout),transition:y(()=>Z.transition),class:y(()=>Z.class),clicks:y(()=>Z.clicks),name:y(()=>Z.name),preload:y(()=>Z.preload),slide:{index:3,content:"",note:"",title:"Nix : excellent community",level:1,noteHTML:`<ul>
<li>Very welcoming (Element, github)</li>
<li>Several packages contributed upstream (some waiting)</li>
<li>Not easy as in my spare time + 5k in github</li>
</ul>
`,raw:"",frontmatter:Z,filepath:"/home/alex/notes/slides/fosdem2024.md",start:85,id:3,no:4},__clicksContext:null,__preloaded:!1}),J=E({layout:"quote",class:"text-center"}),Ti=E({layout:y(()=>J.layout),transition:y(()=>J.transition),class:y(()=>J.class),clicks:y(()=>J.clicks),name:y(()=>J.name),preload:y(()=>J.preload),slide:{index:4,content:"",note:"",title:"Thank you !",level:1,noteHTML:"",raw:"",frontmatter:J,filepath:"/home/alex/notes/slides/fosdem2024.md",start:121,id:4,no:5},__clicksContext:null,__preloaded:!1}),Ai=[{no:1,meta:wi,component:async()=>{try{return await V(()=>import("./slidev/1--1SccWCr.js"),__vite__mapDeps([0,1,2,3,4]))}catch(t){return console.error("Failed to load slide 1:",t),fe}}},{no:2,meta:xi,component:async()=>{try{return await V(()=>import("./slidev/2-C5CaHS53.js"),__vite__mapDeps([5,1,2,3,4]))}catch(t){return console.error("Failed to load slide 2:",t),fe}}},{no:3,meta:Mi,component:async()=>{try{return await V(()=>import("./slidev/3-Gpy7S1Gl.js"),__vite__mapDeps([6,7,1,8,2,3,4,9]))}catch(t){return console.error("Failed to load slide 3:",t),fe}}},{no:4,meta:Si,component:async()=>{try{return await V(()=>import("./slidev/4-l7EwEV7U.js"),__vite__mapDeps([10,7,1,8,2,3,4]))}catch(t){return console.error("Failed to load slide 4:",t),fe}}},{no:5,meta:Ti,component:async()=>{try{return await V(()=>import("./slidev/5-D6NuYssw.js"),__vite__mapDeps([11,1,2,3,4]))}catch(t){return console.error("Failed to load slide 5:",t),fe}}}],j=Wt(Ai);function ye(t){return j.value.find(e=>{var s;return e.no===+t||((s=e.meta.slide)==null?void 0:s.frontmatter.routeAlias)===t})}function $e(t,e){var n;(typeof t=="number"||typeof t=="string")&&(t=ye(t));const s=((n=t.meta.slide)==null?void 0:n.frontmatter.routeAlias)??t.no;return e?`/presenter/${s}`:`/${s}`}function Pi(t,e,{mode:s="replace"}={}){const n=He();return y({get(){const r=n.currentRoute.value.query[t];return r==null?e??null:Array.isArray(r)?r.filter(Boolean):r},set(r){Ce(()=>{(n.currentRoute.value.query[t]??(e==null?void 0:e.toString()))!==r.toString()&&n[lt(s)]({query:{...n.currentRoute.value.query,[t]:`${r}`===e?void 0:r}})})}})}const et=P(0);function ns(t,e=0,s){const n=new Map,r=Ps(new Map);return{get current(){return me(+t.value,e,this.total)},set current(i){t.value=me(+i,e,this.total)},clicksStart:e,relativeOffsets:n,map:r,onMounted(){},resolve(i,o=1){const[a,l]=gi(i);if(a){const c=this.currentOffset;return{start:c+l,end:c+l+o-1,delta:l+o-1}}else return{start:l,end:l+o-1,delta:0}},register(i,o){n.set(i,o.delta),r.set(i,o)},unregister(i){n.delete(i),r.delete(i)},get currentOffset(){return et.value,zs(...n.values())},get total(){return et.value,s??Math.max(0,...[...r.values()].map(i=>i.max||0))}}}function Oi(t,e=0){var n,r;const s=((n=t==null?void 0:t.meta.slide)==null?void 0:n.frontmatter.clicksStart)??0;return ns(P(Math.max(e,s)),s,(r=t==null?void 0:t.meta)==null?void 0:r.clicks)}const At=Os(),Be=Cs("slidev-color-schema","auto"),Pt=y(()=>T.colorSchema!=="auto"),rs=y({get(){return Pt.value?T.colorSchema==="dark":Be.value==="auto"?At.value:Be.value==="dark"},set(t){Pt.value||(Be.value=t===At.value?"auto":t?"dark":"light")}}),Bo=Es(rs);Ls&&oe(rs,t=>{const e=document.querySelector("html");e.classList.toggle("dark",t),e.classList.toggle("light",!t)},{immediate:!0});const Ci={"slide-left":"slide-left | slide-right","slide-right":"slide-right | slide-left","slide-up":"slide-up | slide-down","slide-down":"slide-down | slide-up"};function Ei(t,e=!1){if(!t||(typeof t=="string"&&(t={name:t}),!t.name))return;let s=t.name.includes("|")?t.name:Ci[t.name]||t.name;if(s.includes("|")){const[n,r]=s.split("|").map(i=>i.trim());s=e?r:n}if(s)return{...t,name:s}}function Li(t,e,s){var r,i;let n=t>0?(r=s==null?void 0:s.meta)==null?void 0:r.transition:(i=e==null?void 0:e.meta)==null?void 0:i.transition;return n||(n=T.transition),Ei(n,t<0)}function is(t,e,s=1){var r,i,o,a,l,c,u,f,h;const n=(i=(r=e.meta)==null?void 0:r.slide)==null?void 0:i.level;n&&n>s&&t.length>0?is(t[t.length-1].children,e,s+1):t.push({no:e.no,children:[],level:s,path:$e(((a=(o=e.meta.slide)==null?void 0:o.frontmatter)==null?void 0:a.routeAlias)??e.no,!1),hideInToc:!!((u=(c=(l=e.meta)==null?void 0:l.slide)==null?void 0:c.frontmatter)!=null&&u.hideInToc),title:(h=(f=e.meta)==null?void 0:f.slide)==null?void 0:h.title})}function os(t,e,s=!1,n,r){return t.map(i=>{const o={...i,active:i.no===(r==null?void 0:r.value),hasActiveParent:s};return o.children.length>0&&(o.children=os(o.children,e,o.active||o.hasActiveParent,o,r)),n&&(o.active||o.activeParent)&&(n.activeParent=!0),o})}function as(t,e=1){return t.filter(s=>!s.hideInToc).map(s=>({...s,children:as(s.children,e+1)}))}function Ii(t,e,s){const n=y(()=>t.value.filter(i=>{var o,a;return(a=(o=i.meta)==null?void 0:o.slide)==null?void 0:a.title}).reduce((i,o)=>(is(i,o),i),[])),r=y(()=>os(n.value,s.value,void 0,void 0,e));return y(()=>as(r.value))}function ls(t,e,s=P(0),n,r,i){const o=y(()=>j.value.length),a=P(0),l=P(0),c=y(()=>$e(t.value,n.value)),u=y(()=>t.value.no),f=y(()=>{var w;return((w=t.value.meta)==null?void 0:w.layout)||(u.value===1?"cover":"default")}),h=y(()=>e.value.current),d=y(()=>e.value.clicksStart),p=y(()=>e.value.total),g=y(()=>j.value[Math.min(j.value.length,u.value+1)-1]),v=y(()=>j.value[Math.max(1,u.value-1)-1]),m=y(()=>u.value<j.value.length||h.value<p.value),_=y(()=>u.value>1||h.value>0),b=y(()=>Li(a.value,t.value,v.value));oe(t,(w,M)=>{a.value=w.no-M.no});async function x(w){return!1}const L=Ii(j,u,t);async function D(){l.value=1,p.value<=s.value?await W():s.value+=1}async function se(){l.value=-1,s.value<=d.value?await z():s.value-=1}async function W(){l.value=1,u.value<j.value.length&&await S(u.value+1)}async function z(w=!0){var q,R;l.value=-1;const M=Math.max(1,u.value-1);await S(M,w?r.value?void 0:((R=(q=ye(M))==null?void 0:q.meta.__clicksContext)==null?void 0:R.total)??Ie:void 0)}function _e(){return S(1)}function be(){return S(o.value)}async function S(w,M=0){var we,ae,gt;Jt.value=!1;const q=u.value!==w,R=M!==s.value,H=(we=ye(w))==null?void 0:we.meta,De=((ae=H==null?void 0:H.slide)==null?void 0:ae.frontmatter.clicksStart)??0;M=me(M,De,((gt=H==null?void 0:H.__clicksContext)==null?void 0:gt.total)??Ie),(q||R)&&await(i==null?void 0:i.push({path:$e(w,n.value),query:{...i.currentRoute.value.query,clicks:M===0?void 0:M.toString()}}))}return{slides:j,total:o,currentPath:c,currentSlideNo:u,currentPage:u,currentSlideRoute:t,currentLayout:f,currentTransition:b,clicksDirection:l,nextRoute:g,prevRoute:v,clicksContext:e,clicks:h,clicksStart:d,clicksTotal:p,hasNext:m,hasPrev:_,tocTree:L,navDirection:a,openInEditor:x,next:D,prev:se,go:S,goLast:be,goFirst:_e,nextSlide:W,prevSlide:z}}function Uo(t,e){const s=async()=>{};return{...ls(y(()=>t),y(()=>e),P(Ie),P(!1),P(!1)),next:s,prev:s,nextSlide:s,prevSlide:s,goFirst:s,goLast:s,go:s}}const $i=zt(()=>{const t=He(),e=y(()=>t.currentRoute.value),s=y(()=>(t.currentRoute.value.query,new URLSearchParams(location.search))),n=y(()=>s.value.has("print")),r=y(()=>s.value.get("print")==="clicks"),i=y(()=>s.value.has("embedded")),o=y(()=>e.value.name==="play"),a=y(()=>e.value.name==="presenter"),l=y(()=>e.value.name==="notes"),c=y(()=>!a.value&&(!T.remote||s.value.get("password")===T.remote)),u=Is(o,a),f=y(()=>{var m;return u.value?((m=ye(e.value.params.no))==null?void 0:m.no)??1:1}),h=y(()=>j.value[f.value-1]),d=Pi("clicks","0"),p=y(()=>v(h.value)),g=y({get(){let m=+(d.value||0);return Number.isNaN(m)&&(m=0),m},set(m){d.value=m.toString()}});function v(m){var x,L;if((x=m==null?void 0:m.meta)!=null&&x.__clicksContext)return m.meta.__clicksContext;const _=m.no,b=ns(y({get(){return f.value===_?Math.max(+(d.value??0),b.clicksStart):f.value>_?Ie:b.clicksStart},set(D){f.value===_&&(d.value=me(D,b.clicksStart,b.total).toString())}}),((L=m==null?void 0:m.meta.slide)==null?void 0:L.frontmatter.clicksStart)??0,m==null?void 0:m.meta.clicks);return b.onMounted=()=>{f.value===_&&(d.value=me(+d.value,b.clicksStart,b.total).toString())},m!=null&&m.meta&&(m.meta.__clicksContext=b),b}return{router:t,currentRoute:e,isPrintMode:n,isPrintWithClicks:r,isEmbedded:i,isPlaying:o,isPresenter:a,isNotesViewer:l,isPresenterAvailable:c,hasPrimarySlide:u,currentSlideNo:f,currentSlideRoute:h,clicksContext:p,queryClicksRaw:d,queryClicks:g,getPrimaryClicks:v}}),Ot=zt(()=>{const t=$i(),e=He(),s=ls(t.currentSlideRoute,t.clicksContext,t.queryClicks,t.isPresenter,t.isPrintMode,e);return oe([s.total,t.currentRoute],async()=>{t.hasPrimarySlide.value&&!ye(t.currentRoute.value.params.no)&&await s.goLast()},{flush:"pre",immediate:!0}),{...s,...t}}),Ni=[];function Ri(){const t=jt().appContext.app,e=E({nav:Ot(),configs:T,themeConfigs:y(()=>T.themeConfig)});t.provide(Gn,P("none")),t.provide(Yn,e),t.provide(Un,y(()=>e.nav.currentSlideNo)),t.provide(ut,Wt(Oi()));for(const f of Ni)f();const s=T.titleTemplate.replace("%s",T.title||"Slidev"),{clicksContext:n,currentSlideNo:r,hasPrimarySlide:i,isNotesViewer:o,isPresenter:a}=Ot();Fn({title:s,htmlAttrs:T.htmlAttrs}),Wn(`${s} - shared`),Bn(`${s} - drawings`);const l=`${location.origin}_${pi()}`;function c(){o.value||!a.value&&!Kn.includes(location.host.split(":")[0])||(a.value?(le("page",+r.value),le("clicks",n.value.current)):(le("viewerPage",+r.value),le("viewerClicks",n.value.current)),le("lastUpdate",{id:l,type:a.value?"presenter":"viewer",time:new Date().getTime()}))}const u=He();u.afterEach(c),oe(n,c),zn(f=>{var h;i.value&&((h=f.lastUpdate)==null?void 0:h.type)==="presenter"&&(+f.page!=+r.value||+n.value.current!=+f.clicks)&&(Jt.value=!1,u.replace({path:$e(f.page,a.value),query:{...u.currentRoute.value.query,clicks:f.clicks||0}}))})}const Fi=$s({__name:"App",setup(t){return Ri(),ie(()=>{for(const[e,s]of Object.entries(Ks.value))document.body.style.setProperty(e,s.toString())}),(e,s)=>{const n=Ns("RouterView");return Dt(),Rs(n)}}}),Hi=ss(Fi,[["__file","/home/alex/notes/slides/node_modules/@slidev/client/App.vue"]]);function cs(t,e,s){var n;return((n=t.instance)==null?void 0:n.$).provides[e]??s}function ji(){return{install(t){t.directive("click",{name:"v-click",mounted(e,s){const n=Pe(e,s,s.value);if(n==null)return;e.classList.toggle(Ae,!0);const r=Array.isArray(n.clicks)?n.clicks:[n.clicks,void 0];e.dataset.slidevClicksStart=String(r[0]),r[1]!=null&&(e.dataset.slidevClicksEnd=String(r[1])),ie(()=>{const i=n.isActive.value,o=n.isCurrent.value,a=i&&!o;n.flagHide?(e.classList.toggle(n.flagFade?ue:ce,i),e.classList.toggle(ze,i)):e.classList.toggle(n.flagFade?ue:ce,!i),e.classList.toggle(qe,o),e.classList.toggle(Ve,a)})},unmounted:Ye}),t.directive("after",{name:"v-after",mounted(e,s){const n=Pe(e,s,s.value,!0);n!=null&&(e.classList.toggle(Ae,!0),ie(()=>{const r=n.isActive.value,i=n.isCurrent.value,o=r&&!i;n.flagHide?(e.classList.toggle(n.flagFade?ue:ce,r),e.classList.toggle(ze,r)):e.classList.toggle(n.flagFade?ue:ce,!r),e.classList.toggle(qe,i),e.classList.toggle(Ve,o)}))},unmounted:Ye}),t.directive("click-hide",{name:"v-click-hide",mounted(e,s){const n=Pe(e,s,s.value,!1,!0);n!=null&&(e.classList.toggle(Ae,!0),ie(()=>{const r=n.isActive.value,i=n.isCurrent.value,o=r&&!i;e.classList.toggle(n.flagFade?ue:ce,r),e.classList.toggle(ze,r),e.classList.toggle(qe,i),e.classList.toggle(Ve,o)}))},unmounted:Ye})}}}function Ue(t,e){return Array.isArray(t)?t[0]<=e&&e<t[1]:t<=e}function Di(t,e){return Array.isArray(t)?t[0]===e:t===e}function Pe(t,e,s,n=!1,r=!1){var f;const i=(f=cs(e,ut))==null?void 0:f.value;if(!t||!i||s===!1||s==="false")return null;r||(r=e.modifiers.hide!==!1&&e.modifiers.hide!=null);const o=e.modifiers.fade!==!1&&e.modifiers.fade!=null;n?s="+0":(s==null||s===!0||s==="true")&&(s="+1");let a,l,c;Array.isArray(s)?(a=0,l=s,c=+s[1]):{start:l,end:c,delta:a}=i.resolve(s);const u={max:c,clicks:l,delta:a,isActive:y(()=>Ue(l,i.current)),isCurrent:y(()=>Di(l,i.current)),isShown:y(()=>r?!Ue(l,i.current):Ue(l,i.current)),flagFade:o,flagHide:r};return i.register(t,u),u}function Ye(t,e){var n;t.classList.toggle(Ae,!1);const s=(n=cs(e,ut))==null?void 0:n.value;s==null||s.unregister(t)}function us(){return Math.floor(Math.random()*2**31)}class Wi{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}function tt(t,e,s){if(t&&t.length){const[n,r]=e,i=Math.PI/180*s,o=Math.cos(i),a=Math.sin(i);for(const l of t){const[c,u]=l;l[0]=(c-n)*o-(u-r)*a+n,l[1]=(c-n)*a+(u-r)*o+r}}}function zi(t,e,s){const n=[];t.forEach(r=>n.push(...r)),tt(n,e,s)}function qi(t,e){return t[0]===e[0]&&t[1]===e[1]}function Vi(t,e,s,n=1){const r=s,i=Math.max(e,.1),o=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,a=[0,0];if(r)for(const c of o)tt(c,a,r);const l=Bi(o,i,n);if(r){for(const c of o)tt(c,a,-r);zi(l,a,-r)}return l}function Bi(t,e,s){const n=[];for(const c of t){const u=[...c];qi(u[0],u[u.length-1])||u.push([u[0][0],u[0][1]]),u.length>2&&n.push(u)}const r=[];e=Math.max(e,.1);const i=[];for(const c of n)for(let u=0;u<c.length-1;u++){const f=c[u],h=c[u+1];if(f[1]!==h[1]){const d=Math.min(f[1],h[1]);i.push({ymin:d,ymax:Math.max(f[1],h[1]),x:d===f[1]?f[0]:h[0],islope:(h[0]-f[0])/(h[1]-f[1])})}}if(i.sort((c,u)=>c.ymin<u.ymin?-1:c.ymin>u.ymin?1:c.x<u.x?-1:c.x>u.x?1:c.ymax===u.ymax?0:(c.ymax-u.ymax)/Math.abs(c.ymax-u.ymax)),!i.length)return r;let o=[],a=i[0].ymin,l=0;for(;o.length||i.length;){if(i.length){let c=-1;for(let f=0;f<i.length&&!(i[f].ymin>a);f++)c=f;i.splice(0,c+1).forEach(f=>{o.push({s:a,edge:f})})}if(o=o.filter(c=>!(c.edge.ymax<=a)),o.sort((c,u)=>c.edge.x===u.edge.x?0:(c.edge.x-u.edge.x)/Math.abs(c.edge.x-u.edge.x)),(s!==1||l%e===0)&&o.length>1)for(let c=0;c<o.length;c=c+2){const u=c+1;if(u>=o.length)break;const f=o[c].edge,h=o[u].edge;r.push([[Math.round(f.x),a],[Math.round(h.x),a]])}a+=s,o.forEach(c=>{c.edge.x=c.edge.x+s*c.edge.islope}),l++}return r}function ke(t,e){var s;const n=e.hachureAngle+90;let r=e.hachureGap;r<0&&(r=e.strokeWidth*4),r=Math.round(Math.max(r,.1));let i=1;return e.roughness>=1&&(((s=e.randomizer)===null||s===void 0?void 0:s.next())||Math.random())>.7&&(i=r),Vi(t,r,n,i||1)}class dt{constructor(e){this.helper=e}fillPolygons(e,s){return this._fillPolygons(e,s)}_fillPolygons(e,s){const n=ke(e,s);return{type:"fillSketch",ops:this.renderLines(n,s)}}renderLines(e,s){const n=[];for(const r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],s));return n}}function je(t){const e=t[0],s=t[1];return Math.sqrt(Math.pow(e[0]-s[0],2)+Math.pow(e[1]-s[1],2))}class Ui extends dt{fillPolygons(e,s){let n=s.hachureGap;n<0&&(n=s.strokeWidth*4),n=Math.max(n,.1);const r=Object.assign({},s,{hachureGap:n}),i=ke(e,r),o=Math.PI/180*s.hachureAngle,a=[],l=n*.5*Math.cos(o),c=n*.5*Math.sin(o);for(const[f,h]of i)je([f,h])&&a.push([[f[0]-l,f[1]+c],[...h]],[[f[0]+l,f[1]-c],[...h]]);return{type:"fillSketch",ops:this.renderLines(a,s)}}}class Yi extends dt{fillPolygons(e,s){const n=this._fillPolygons(e,s),r=Object.assign({},s,{hachureAngle:s.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}}class Gi{constructor(e){this.helper=e}fillPolygons(e,s){s=Object.assign({},s,{hachureAngle:0});const n=ke(e,s);return this.dotsOnLines(n,s)}dotsOnLines(e,s){const n=[];let r=s.hachureGap;r<0&&(r=s.strokeWidth*4),r=Math.max(r,.1);let i=s.fillWeight;i<0&&(i=s.strokeWidth/2);const o=r/4;for(const a of e){const l=je(a),c=l/r,u=Math.ceil(c)-1,f=l-u*r,h=(a[0][0]+a[1][0])/2-r/4,d=Math.min(a[0][1],a[1][1]);for(let p=0;p<u;p++){const g=d+f+p*r,v=h-o+Math.random()*2*o,m=g-o+Math.random()*2*o,_=this.helper.ellipse(v,m,i,i,s);n.push(..._.ops)}}return{type:"fillSketch",ops:n}}}class Ki{constructor(e){this.helper=e}fillPolygons(e,s){const n=ke(e,s);return{type:"fillSketch",ops:this.dashedLine(n,s)}}dashedLine(e,s){const n=s.dashOffset<0?s.hachureGap<0?s.strokeWidth*4:s.hachureGap:s.dashOffset,r=s.dashGap<0?s.hachureGap<0?s.strokeWidth*4:s.hachureGap:s.dashGap,i=[];return e.forEach(o=>{const a=je(o),l=Math.floor(a/(n+r)),c=(a+r-l*(n+r))/2;let u=o[0],f=o[1];u[0]>f[0]&&(u=o[1],f=o[0]);const h=Math.atan((f[1]-u[1])/(f[0]-u[0]));for(let d=0;d<l;d++){const p=d*(n+r),g=p+n,v=[u[0]+p*Math.cos(h)+c*Math.cos(h),u[1]+p*Math.sin(h)+c*Math.sin(h)],m=[u[0]+g*Math.cos(h)+c*Math.cos(h),u[1]+g*Math.sin(h)+c*Math.sin(h)];i.push(...this.helper.doubleLineOps(v[0],v[1],m[0],m[1],s))}}),i}}class Zi{constructor(e){this.helper=e}fillPolygons(e,s){const n=s.hachureGap<0?s.strokeWidth*4:s.hachureGap,r=s.zigzagOffset<0?n:s.zigzagOffset;s=Object.assign({},s,{hachureGap:n+r});const i=ke(e,s);return{type:"fillSketch",ops:this.zigzagLines(i,r,s)}}zigzagLines(e,s,n){const r=[];return e.forEach(i=>{const o=je(i),a=Math.round(o/(2*s));let l=i[0],c=i[1];l[0]>c[0]&&(l=i[1],c=i[0]);const u=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let f=0;f<a;f++){const h=f*2*s,d=(f+1)*2*s,p=Math.sqrt(2*Math.pow(s,2)),g=[l[0]+h*Math.cos(u),l[1]+h*Math.sin(u)],v=[l[0]+d*Math.cos(u),l[1]+d*Math.sin(u)],m=[g[0]+p*Math.cos(u+Math.PI/4),g[1]+p*Math.sin(u+Math.PI/4)];r.push(...this.helper.doubleLineOps(g[0],g[1],m[0],m[1],n),...this.helper.doubleLineOps(m[0],m[1],v[0],v[1],n))}}),r}}const O={};function Ji(t,e){let s=t.fillStyle||"hachure";if(!O[s])switch(s){case"zigzag":O[s]||(O[s]=new Ui(e));break;case"cross-hatch":O[s]||(O[s]=new Yi(e));break;case"dots":O[s]||(O[s]=new Gi(e));break;case"dashed":O[s]||(O[s]=new Ki(e));break;case"zigzag-line":O[s]||(O[s]=new Zi(e));break;case"hachure":default:s="hachure",O[s]||(O[s]=new dt(e));break}return O[s]}const Qi=0,st=1,fs=2,xe={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Xi(t){const e=new Array;for(;t!=="";)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:Qi,text:RegExp.$1},t=t.substr(RegExp.$1.length);else if(t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))e[e.length]={type:st,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length);else return[];return e[e.length]={type:fs,text:""},e}function Ge(t,e){return t.type===e}function pt(t){const e=[],s=Xi(t);let n="BOD",r=0,i=s[r];for(;!Ge(i,fs);){let o=0;const a=[];if(n==="BOD")if(i.text==="M"||i.text==="m")r++,o=xe[i.text],n=i.text;else return pt("M0,0"+t);else Ge(i,st)?o=xe[n]:(r++,o=xe[i.text],n=i.text);if(r+o<s.length){for(let l=r;l<r+o;l++){const c=s[l];if(Ge(c,st))a[a.length]=+c.text;else throw new Error("Param not a number: "+n+","+c.text)}if(typeof xe[n]=="number"){const l={key:n,data:a};e.push(l),r+=o,i=s[r],n==="M"&&(n="L"),n==="m"&&(n="l")}else throw new Error("Bad segment: "+n)}else throw new Error("Path data ended short")}return e}function hs(t){let e=0,s=0,n=0,r=0;const i=[];for(const{key:o,data:a}of t)switch(o){case"M":i.push({key:"M",data:[...a]}),[e,s]=a,[n,r]=a;break;case"m":e+=a[0],s+=a[1],i.push({key:"M",data:[e,s]}),n=e,r=s;break;case"L":i.push({key:"L",data:[...a]}),[e,s]=a;break;case"l":e+=a[0],s+=a[1],i.push({key:"L",data:[e,s]});break;case"C":i.push({key:"C",data:[...a]}),e=a[4],s=a[5];break;case"c":{const l=a.map((c,u)=>u%2?c+s:c+e);i.push({key:"C",data:l}),e=l[4],s=l[5];break}case"Q":i.push({key:"Q",data:[...a]}),e=a[2],s=a[3];break;case"q":{const l=a.map((c,u)=>u%2?c+s:c+e);i.push({key:"Q",data:l}),e=l[2],s=l[3];break}case"A":i.push({key:"A",data:[...a]}),e=a[5],s=a[6];break;case"a":e+=a[5],s+=a[6],i.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,s]});break;case"H":i.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],i.push({key:"H",data:[e]});break;case"V":i.push({key:"V",data:[...a]}),s=a[0];break;case"v":s+=a[0],i.push({key:"V",data:[s]});break;case"S":i.push({key:"S",data:[...a]}),e=a[2],s=a[3];break;case"s":{const l=a.map((c,u)=>u%2?c+s:c+e);i.push({key:"S",data:l}),e=l[2],s=l[3];break}case"T":i.push({key:"T",data:[...a]}),e=a[0],s=a[1];break;case"t":e+=a[0],s+=a[1],i.push({key:"T",data:[e,s]});break;case"Z":case"z":i.push({key:"Z",data:[]}),e=n,s=r;break}return i}function ds(t){const e=[];let s="",n=0,r=0,i=0,o=0,a=0,l=0;for(const{key:c,data:u}of t){switch(c){case"M":e.push({key:"M",data:[...u]}),[n,r]=u,[i,o]=u;break;case"C":e.push({key:"C",data:[...u]}),n=u[4],r=u[5],a=u[2],l=u[3];break;case"L":e.push({key:"L",data:[...u]}),[n,r]=u;break;case"H":n=u[0],e.push({key:"L",data:[n,r]});break;case"V":r=u[0],e.push({key:"L",data:[n,r]});break;case"S":{let f=0,h=0;s==="C"||s==="S"?(f=n+(n-a),h=r+(r-l)):(f=n,h=r),e.push({key:"C",data:[f,h,...u]}),a=u[0],l=u[1],n=u[2],r=u[3];break}case"T":{const[f,h]=u;let d=0,p=0;s==="Q"||s==="T"?(d=n+(n-a),p=r+(r-l)):(d=n,p=r);const g=n+2*(d-n)/3,v=r+2*(p-r)/3,m=f+2*(d-f)/3,_=h+2*(p-h)/3;e.push({key:"C",data:[g,v,m,_,f,h]}),a=d,l=p,n=f,r=h;break}case"Q":{const[f,h,d,p]=u,g=n+2*(f-n)/3,v=r+2*(h-r)/3,m=d+2*(f-d)/3,_=p+2*(h-p)/3;e.push({key:"C",data:[g,v,m,_,d,p]}),a=f,l=h,n=d,r=p;break}case"A":{const f=Math.abs(u[0]),h=Math.abs(u[1]),d=u[2],p=u[3],g=u[4],v=u[5],m=u[6];f===0||h===0?(e.push({key:"C",data:[n,r,v,m,v,m]}),n=v,r=m):(n!==v||r!==m)&&(ps(n,r,v,m,f,h,d,p,g).forEach(function(b){e.push({key:"C",data:b})}),n=v,r=m);break}case"Z":e.push({key:"Z",data:[]}),n=i,r=o;break}s=c}return e}function eo(t){return Math.PI*t/180}function he(t,e,s){const n=t*Math.cos(s)-e*Math.sin(s),r=t*Math.sin(s)+e*Math.cos(s);return[n,r]}function ps(t,e,s,n,r,i,o,a,l,c){const u=eo(o);let f=[],h=0,d=0,p=0,g=0;if(c)[h,d,p,g]=c;else{[t,e]=he(t,e,-u),[s,n]=he(s,n,-u);const S=(t-s)/2,w=(e-n)/2;let M=S*S/(r*r)+w*w/(i*i);M>1&&(M=Math.sqrt(M),r=M*r,i=M*i);const q=a===l?-1:1,R=r*r,H=i*i,De=R*H-R*w*w-H*S*S,we=R*w*w+H*S*S,ae=q*Math.sqrt(Math.abs(De/we));p=ae*r*w/i+(t+s)/2,g=ae*-i*S/r+(e+n)/2,h=Math.asin(parseFloat(((e-g)/i).toFixed(9))),d=Math.asin(parseFloat(((n-g)/i).toFixed(9))),t<p&&(h=Math.PI-h),s<p&&(d=Math.PI-d),h<0&&(h=Math.PI*2+h),d<0&&(d=Math.PI*2+d),l&&h>d&&(h=h-Math.PI*2),!l&&d>h&&(d=d-Math.PI*2)}let v=d-h;if(Math.abs(v)>Math.PI*120/180){const S=d,w=s,M=n;l&&d>h?d=h+Math.PI*120/180*1:d=h+Math.PI*120/180*-1,s=p+r*Math.cos(d),n=g+i*Math.sin(d),f=ps(s,n,w,M,r,i,o,0,l,[d,S,p,g])}v=d-h;const m=Math.cos(h),_=Math.sin(h),b=Math.cos(d),x=Math.sin(d),L=Math.tan(v/4),D=4/3*r*L,se=4/3*i*L,W=[t,e],z=[t+D*_,e-se*m],_e=[s+D*x,n-se*b],be=[s,n];if(z[0]=2*W[0]-z[0],z[1]=2*W[1]-z[1],c)return[z,_e,be].concat(f);{f=[z,_e,be].concat(f);const S=[];for(let w=0;w<f.length;w+=3){const M=he(f[w][0],f[w][1],u),q=he(f[w+1][0],f[w+1][1],u),R=he(f[w+2][0],f[w+2][1],u);S.push([M[0],M[1],q[0],q[1],R[0],R[1]])}return S}}const to={randOffset:ro,randOffsetWithRange:io,ellipse:nt,doubleLineOps:oo};function $(t,e,s,n,r){return{type:"path",ops:U(t,e,s,n,r)}}function pe(t,e,s){const n=(t||[]).length;if(n>2){const r=[];for(let i=0;i<n-1;i++)r.push(...U(t[i][0],t[i][1],t[i+1][0],t[i+1][1],s));return e&&r.push(...U(t[n-1][0],t[n-1][1],t[0][0],t[0][1],s)),{type:"path",ops:r}}else if(n===2)return $(t[0][0],t[0][1],t[1][0],t[1][1],s);return{type:"path",ops:[]}}function so(t,e){return pe(t,!0,e)}function gs(t,e,s,n,r){const i=[[t,e],[t+s,e],[t+s,e+n],[t,e+n]];return so(i,r)}function Ct(t,e){if(t.length){const n=typeof t[0][0]=="number"?[t]:t,r=Me(n[0],1*(1+e.roughness*.2),e),i=e.disableMultiStroke?[]:Me(n[0],1.5*(1+e.roughness*.22),It(e));for(let o=1;o<n.length;o++){const a=n[o];if(a.length){const l=Me(a,1*(1+e.roughness*.2),e),c=e.disableMultiStroke?[]:Me(a,1.5*(1+e.roughness*.22),It(e));for(const u of l)u.op!=="move"&&r.push(u);for(const u of c)u.op!=="move"&&i.push(u)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function nt(t,e,s,n,r){const i=ms(s,n,r);return rt(t,e,r,i).opset}function ms(t,e,s){const n=Math.sqrt(Math.PI*2*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),r=Math.ceil(Math.max(s.curveStepCount,s.curveStepCount/Math.sqrt(200)*n)),i=Math.PI*2/r;let o=Math.abs(t/2),a=Math.abs(e/2);const l=1-s.curveFitting;return o+=k(o*l,s),a+=k(a*l,s),{increment:i,rx:o,ry:a}}function rt(t,e,s,n){const[r,i]=$t(n.increment,t,e,n.rx,n.ry,1,n.increment*Ne(.1,Ne(.4,1,s),s),s);let o=Re(r,null,s);if(!s.disableMultiStroke&&s.roughness!==0){const[a]=$t(n.increment,t,e,n.rx,n.ry,1.5,0,s),l=Re(a,null,s);o=o.concat(l)}return{estimatedPoints:i,opset:{type:"path",ops:o}}}function Et(t,e,s,n,r,i,o,a,l){const c=t,u=e;let f=Math.abs(s/2),h=Math.abs(n/2);f+=k(f*.01,l),h+=k(h*.01,l);let d=r,p=i;for(;d<0;)d+=Math.PI*2,p+=Math.PI*2;p-d>Math.PI*2&&(d=0,p=Math.PI*2);const g=Math.PI*2/l.curveStepCount,v=Math.min(g/2,(p-d)/2),m=Nt(v,c,u,f,h,d,p,1,l);if(!l.disableMultiStroke){const _=Nt(v,c,u,f,h,d,p,1.5,l);m.push(..._)}return o&&(a?m.push(...U(c,u,c+f*Math.cos(d),u+h*Math.sin(d),l),...U(c,u,c+f*Math.cos(p),u+h*Math.sin(p),l)):m.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+f*Math.cos(d),u+h*Math.sin(d)]})),{type:"path",ops:m}}function Lt(t,e){const s=ds(hs(pt(t))),n=[];let r=[0,0],i=[0,0];for(const{key:o,data:a}of s)switch(o){case"M":{i=[a[0],a[1]],r=[a[0],a[1]];break}case"L":n.push(...U(i[0],i[1],a[0],a[1],e)),i=[a[0],a[1]];break;case"C":{const[l,c,u,f,h,d]=a;n.push(...ao(l,c,u,f,h,d,i,e)),i=[h,d];break}case"Z":n.push(...U(i[0],i[1],r[0],r[1],e)),i=[r[0],r[1]];break}return{type:"path",ops:n}}function Ke(t,e){const s=[];for(const n of t)if(n.length){const r=e.maxRandomnessOffset||0,i=n.length;if(i>2){s.push({op:"move",data:[n[0][0]+k(r,e),n[0][1]+k(r,e)]});for(let o=1;o<i;o++)s.push({op:"lineTo",data:[n[o][0]+k(r,e),n[o][1]+k(r,e)]})}}return{type:"fillPath",ops:s}}function re(t,e){return Ji(e,to).fillPolygons(t,e)}function no(t,e,s,n,r,i,o){const a=t,l=e;let c=Math.abs(s/2),u=Math.abs(n/2);c+=k(c*.01,o),u+=k(u*.01,o);let f=r,h=i;for(;f<0;)f+=Math.PI*2,h+=Math.PI*2;h-f>Math.PI*2&&(f=0,h=Math.PI*2);const d=(h-f)/o.curveStepCount,p=[];for(let g=f;g<=h;g=g+d)p.push([a+c*Math.cos(g),l+u*Math.sin(g)]);return p.push([a+c*Math.cos(h),l+u*Math.sin(h)]),p.push([a,l]),re([p],o)}function ro(t,e){return k(t,e)}function io(t,e,s){return Ne(t,e,s)}function oo(t,e,s,n,r){return U(t,e,s,n,r,!0)}function It(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function vs(t){return t.randomizer||(t.randomizer=new Wi(t.seed||0)),t.randomizer.next()}function Ne(t,e,s,n=1){return s.roughness*n*(vs(s)*(e-t)+t)}function k(t,e,s=1){return Ne(-t,t,e,s)}function U(t,e,s,n,r,i=!1){const o=i?r.disableMultiStrokeFill:r.disableMultiStroke,a=it(t,e,s,n,r,!0,!1);if(o)return a;const l=it(t,e,s,n,r,!0,!0);return a.concat(l)}function it(t,e,s,n,r,i,o){const a=Math.pow(t-s,2)+Math.pow(e-n,2),l=Math.sqrt(a);let c=1;l<200?c=1:l>500?c=.4:c=-.0016668*l+1.233334;let u=r.maxRandomnessOffset||0;u*u*100>a&&(u=l/10);const f=u/2,h=.2+vs(r)*.2;let d=r.bowing*r.maxRandomnessOffset*(n-e)/200,p=r.bowing*r.maxRandomnessOffset*(t-s)/200;d=k(d,r,c),p=k(p,r,c);const g=[],v=()=>k(f,r,c),m=()=>k(u,r,c),_=r.preserveVertices;return i&&(o?g.push({op:"move",data:[t+(_?0:v()),e+(_?0:v())]}):g.push({op:"move",data:[t+(_?0:k(u,r,c)),e+(_?0:k(u,r,c))]})),o?g.push({op:"bcurveTo",data:[d+t+(s-t)*h+v(),p+e+(n-e)*h+v(),d+t+2*(s-t)*h+v(),p+e+2*(n-e)*h+v(),s+(_?0:v()),n+(_?0:v())]}):g.push({op:"bcurveTo",data:[d+t+(s-t)*h+m(),p+e+(n-e)*h+m(),d+t+2*(s-t)*h+m(),p+e+2*(n-e)*h+m(),s+(_?0:m()),n+(_?0:m())]}),g}function Me(t,e,s){if(!t.length)return[];const n=[];n.push([t[0][0]+k(e,s),t[0][1]+k(e,s)]),n.push([t[0][0]+k(e,s),t[0][1]+k(e,s)]);for(let r=1;r<t.length;r++)n.push([t[r][0]+k(e,s),t[r][1]+k(e,s)]),r===t.length-1&&n.push([t[r][0]+k(e,s),t[r][1]+k(e,s)]);return Re(n,null,s)}function Re(t,e,s){const n=t.length,r=[];if(n>3){const i=[],o=1-s.curveTightness;r.push({op:"move",data:[t[1][0],t[1][1]]});for(let a=1;a+2<n;a++){const l=t[a];i[0]=[l[0],l[1]],i[1]=[l[0]+(o*t[a+1][0]-o*t[a-1][0])/6,l[1]+(o*t[a+1][1]-o*t[a-1][1])/6],i[2]=[t[a+1][0]+(o*t[a][0]-o*t[a+2][0])/6,t[a+1][1]+(o*t[a][1]-o*t[a+2][1])/6],i[3]=[t[a+1][0],t[a+1][1]],r.push({op:"bcurveTo",data:[i[1][0],i[1][1],i[2][0],i[2][1],i[3][0],i[3][1]]})}if(e&&e.length===2){const a=s.maxRandomnessOffset;r.push({op:"lineTo",data:[e[0]+k(a,s),e[1]+k(a,s)]})}}else n===3?(r.push({op:"move",data:[t[1][0],t[1][1]]}),r.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):n===2&&r.push(...it(t[0][0],t[0][1],t[1][0],t[1][1],s,!0,!0));return r}function $t(t,e,s,n,r,i,o,a){const l=a.roughness===0,c=[],u=[];if(l){t=t/4,u.push([e+n*Math.cos(-t),s+r*Math.sin(-t)]);for(let f=0;f<=Math.PI*2;f=f+t){const h=[e+n*Math.cos(f),s+r*Math.sin(f)];c.push(h),u.push(h)}u.push([e+n*Math.cos(0),s+r*Math.sin(0)]),u.push([e+n*Math.cos(t),s+r*Math.sin(t)])}else{const f=k(.5,a)-Math.PI/2;u.push([k(i,a)+e+.9*n*Math.cos(f-t),k(i,a)+s+.9*r*Math.sin(f-t)]);const h=Math.PI*2+f-.01;for(let d=f;d<h;d=d+t){const p=[k(i,a)+e+n*Math.cos(d),k(i,a)+s+r*Math.sin(d)];c.push(p),u.push(p)}u.push([k(i,a)+e+n*Math.cos(f+Math.PI*2+o*.5),k(i,a)+s+r*Math.sin(f+Math.PI*2+o*.5)]),u.push([k(i,a)+e+.98*n*Math.cos(f+o),k(i,a)+s+.98*r*Math.sin(f+o)]),u.push([k(i,a)+e+.9*n*Math.cos(f+o*.5),k(i,a)+s+.9*r*Math.sin(f+o*.5)])}return[u,c]}function Nt(t,e,s,n,r,i,o,a,l){const c=i+k(.1,l),u=[];u.push([k(a,l)+e+.9*n*Math.cos(c-t),k(a,l)+s+.9*r*Math.sin(c-t)]);for(let f=c;f<=o;f=f+t)u.push([k(a,l)+e+n*Math.cos(f),k(a,l)+s+r*Math.sin(f)]);return u.push([e+n*Math.cos(o),s+r*Math.sin(o)]),u.push([e+n*Math.cos(o),s+r*Math.sin(o)]),Re(u,null,l)}function ao(t,e,s,n,r,i,o,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let u=[0,0];const f=a.disableMultiStroke?1:2,h=a.preserveVertices;for(let d=0;d<f;d++)d===0?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(h?0:k(c[0],a)),o[1]+(h?0:k(c[0],a))]}),u=h?[r,i]:[r+k(c[d],a),i+k(c[d],a)],l.push({op:"bcurveTo",data:[t+k(c[d],a),e+k(c[d],a),s+k(c[d],a),n+k(c[d],a),u[0],u[1]]});return l}function de(t){return[...t]}function Rt(t,e=0){const s=t.length;if(s<3)throw new Error("A curve must have at least three points.");const n=[];if(s===3)n.push(de(t[0]),de(t[1]),de(t[2]),de(t[2]));else{const r=[];r.push(t[0],t[0]);for(let a=1;a<t.length;a++)r.push(t[a]),a===t.length-1&&r.push(t[a]);const i=[],o=1-e;n.push(de(r[0]));for(let a=1;a+2<r.length;a++){const l=r[a];i[0]=[l[0],l[1]],i[1]=[l[0]+(o*r[a+1][0]-o*r[a-1][0])/6,l[1]+(o*r[a+1][1]-o*r[a-1][1])/6],i[2]=[r[a+1][0]+(o*r[a][0]-o*r[a+2][0])/6,r[a+1][1]+(o*r[a][1]-o*r[a+2][1])/6],i[3]=[r[a+1][0],r[a+1][1]],n.push(i[1],i[2],i[3])}}return n}function lo(t,e){return Math.sqrt(Oe(t,e))}function Oe(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function co(t,e,s){const n=Oe(e,s);if(n===0)return Oe(t,e);let r=((t[0]-e[0])*(s[0]-e[0])+(t[1]-e[1])*(s[1]-e[1]))/n;return r=Math.max(0,Math.min(1,r)),Oe(t,Q(e,s,r))}function Q(t,e,s){return[t[0]+(e[0]-t[0])*s,t[1]+(e[1]-t[1])*s]}function uo(t,e){const s=t[e+0],n=t[e+1],r=t[e+2],i=t[e+3];let o=3*n[0]-2*s[0]-i[0];o*=o;let a=3*n[1]-2*s[1]-i[1];a*=a;let l=3*r[0]-2*i[0]-s[0];l*=l;let c=3*r[1]-2*i[1]-s[1];return c*=c,o<l&&(o=l),a<c&&(a=c),o+a}function ot(t,e,s,n){const r=n||[];if(uo(t,e)<s){const i=t[e+0];r.length?lo(r[r.length-1],i)>1&&r.push(i):r.push(i),r.push(t[e+3])}else{const o=t[e+0],a=t[e+1],l=t[e+2],c=t[e+3],u=Q(o,a,.5),f=Q(a,l,.5),h=Q(l,c,.5),d=Q(u,f,.5),p=Q(f,h,.5),g=Q(d,p,.5);ot([o,u,d,g],0,s,r),ot([g,p,h,c],0,s,r)}return r}function fo(t,e){return Fe(t,0,t.length,e)}function Fe(t,e,s,n,r){const i=r||[],o=t[e],a=t[s-1];let l=0,c=1;for(let u=e+1;u<s-1;++u){const f=co(t[u],o,a);f>l&&(l=f,c=u)}return Math.sqrt(l)>n?(Fe(t,e,c+1,n,i),Fe(t,c,s,n,i)):(i.length||i.push(o),i.push(a)),i}function at(t,e=.15,s){const n=[],r=(t.length-1)/3;for(let i=0;i<r;i++){const o=i*3;ot(t,o,e,n)}return s&&s>0?Fe(n,0,n.length,s):n}function ho(t,e,s){const n=pt(t),r=ds(hs(n)),i=[];let o=[],a=[0,0],l=[];const c=()=>{l.length>=4&&o.push(...at(l,e)),l=[]},u=()=>{c(),o.length&&(i.push(o),o=[])};for(const{key:h,data:d}of r)switch(h){case"M":u(),a=[d[0],d[1]],o.push(a);break;case"L":c(),o.push([d[0],d[1]]);break;case"C":if(!l.length){const p=o.length?o[o.length-1]:a;l.push([p[0],p[1]])}l.push([d[0],d[1]]),l.push([d[2],d[3]]),l.push([d[4],d[5]]);break;case"Z":c(),o.push([a[0],a[1]]);break}if(u(),!s)return i;const f=[];for(const h of i){const d=fo(h,s);d.length&&f.push(d)}return f}const I="none";class po{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return us()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,s,n){return{shape:e,sets:s||[],options:n||this.defaultOptions}}line(e,s,n,r,i){const o=this._o(i);return this._d("line",[$(e,s,n,r,o)],o)}rectangle(e,s,n,r,i){const o=this._o(i),a=[],l=gs(e,s,n,r,o);if(o.fill){const c=[[e,s],[e+n,s],[e+n,s+r],[e,s+r]];o.fillStyle==="solid"?a.push(Ke([c],o)):a.push(re([c],o))}return o.stroke!==I&&a.push(l),this._d("rectangle",a,o)}ellipse(e,s,n,r,i){const o=this._o(i),a=[],l=ms(n,r,o),c=rt(e,s,o,l);if(o.fill)if(o.fillStyle==="solid"){const u=rt(e,s,o,l).opset;u.type="fillPath",a.push(u)}else a.push(re([c.estimatedPoints],o));return o.stroke!==I&&a.push(c.opset),this._d("ellipse",a,o)}circle(e,s,n,r){const i=this.ellipse(e,s,n,n,r);return i.shape="circle",i}linearPath(e,s){const n=this._o(s);return this._d("linearPath",[pe(e,!1,n)],n)}arc(e,s,n,r,i,o,a=!1,l){const c=this._o(l),u=[],f=Et(e,s,n,r,i,o,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const h=Object.assign({},c);h.disableMultiStroke=!0;const d=Et(e,s,n,r,i,o,!0,!1,h);d.type="fillPath",u.push(d)}else u.push(no(e,s,n,r,i,o,c));return c.stroke!==I&&u.push(f),this._d("arc",u,c)}curve(e,s){const n=this._o(s),r=[],i=Ct(e,n);if(n.fill&&n.fill!==I)if(n.fillStyle==="solid"){const o=Ct(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],a=e;if(a.length){const c=typeof a[0][0]=="number"?[a]:a;for(const u of c)u.length<3?o.push(...u):u.length===3?o.push(...at(Rt([u[0],u[0],u[1],u[2]]),10,(1+n.roughness)/2)):o.push(...at(Rt(u),10,(1+n.roughness)/2))}o.length&&r.push(re([o],n))}return n.stroke!==I&&r.push(i),this._d("curve",r,n)}polygon(e,s){const n=this._o(s),r=[],i=pe(e,!0,n);return n.fill&&(n.fillStyle==="solid"?r.push(Ke([e],n)):r.push(re([e],n))),n.stroke!==I&&r.push(i),this._d("polygon",r,n)}path(e,s){const n=this._o(s),r=[];if(!e)return this._d("path",r,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const i=n.fill&&n.fill!=="transparent"&&n.fill!==I,o=n.stroke!==I,a=!!(n.simplification&&n.simplification<1),l=a?4-4*(n.simplification||1):(1+n.roughness)/2,c=ho(e,1,l),u=Lt(e,n);if(i)if(n.fillStyle==="solid")if(c.length===1){const f=Lt(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(f.ops)})}else r.push(Ke(c,n));else r.push(re(c,n));return o&&(a?c.forEach(f=>{r.push(pe(f,!1,n))}):r.push(u)),this._d("path",r,n)}opsToPath(e,s){let n="";for(const r of e.ops){const i=typeof s=="number"&&s>=0?r.data.map(o=>+o.toFixed(s)):r.data;switch(r.op){case"move":n+=`M${i[0]} ${i[1]} `;break;case"bcurveTo":n+=`C${i[0]} ${i[1]}, ${i[2]} ${i[3]}, ${i[4]} ${i[5]} `;break;case"lineTo":n+=`L${i[0]} ${i[1]} `;break}}return n.trim()}toPaths(e){const s=e.sets||[],n=e.options||this.defaultOptions,r=[];for(const i of s){let o=null;switch(i.type){case"path":o={d:this.opsToPath(i),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:I};break;case"fillPath":o={d:this.opsToPath(i),stroke:I,strokeWidth:0,fill:n.fill||I};break;case"fillSketch":o=this.fillSketch(i,n);break}o&&r.push(o)}return r}fillSketch(e,s){let n=s.fillWeight;return n<0&&(n=s.strokeWidth/2),{d:this.opsToPath(e),stroke:s.fill||I,strokeWidth:n,fill:I}}_mergedShape(e){return e.filter((s,n)=>n===0?!0:s.op!=="move")}}const ys="http://www.w3.org/2000/svg",go=800;let Ze=null;function mo(){return Ze||(Ze=new po().defaultOptions),Ze}function Je(t,e,s){return{...mo(),maxRandomnessOffset:2,roughness:t==="highlight"?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,disableMultiStroke:t!=="double",disableMultiStrokeFill:!1,seed:e,...s}}function vo(t){const e=t.padding;if(e||e===0){if(typeof e=="number")return[e,e,e,e];if(Array.isArray(e)){const s=e;if(s.length)switch(s.length){case 4:return[...s];case 1:return[s[0],s[0],s[0],s[0]];case 2:return[...s,...s];case 3:return[...s,s[1]];default:return[s[0],s[1],s[2],s[3]]}}}return[5,5,5,5]}function yo(t,e,s,n,r,i){const o=[];let a=s.strokeWidth||2;const l=vo(s),c=s.animate===void 0?!0:!!s.animate,u=s.iterations||2,f=s.rtl?1:0,h=Je("single",i,s);switch(s.type){case"underline":{const d=e.y+e.h+l[2];for(let p=f;p<u+f;p++)p%2?o.push($(e.x+e.w,d,e.x,d,h)):o.push($(e.x,d,e.x+e.w,d,h));break}case"strike-through":{const d=e.y+e.h/2;for(let p=f;p<u+f;p++)p%2?o.push($(e.x+e.w,d,e.x,d,h)):o.push($(e.x,d,e.x+e.w,d,h));break}case"box":{const d=e.x-l[3],p=e.y-l[0],g=e.w+(l[1]+l[3]),v=e.h+(l[0]+l[2]);for(let m=0;m<u;m++)o.push(gs(d,p,g,v,h));break}case"bracket":{const d=Array.isArray(s.brackets)?s.brackets:s.brackets?[s.brackets]:["right"],p=e.x-l[3]*2,g=e.x+e.w+l[1]*2,v=e.y-l[0]*2,m=e.y+e.h+l[2]*2;for(const _ of d){let b;switch(_){case"bottom":b=[[p,e.y+e.h],[p,m],[g,m],[g,e.y+e.h]];break;case"top":b=[[p,e.y],[p,v],[g,v],[g,e.y]];break;case"left":b=[[e.x,v],[p,v],[p,m],[e.x,m]];break;case"right":b=[[e.x+e.w,v],[g,v],[g,m],[e.x+e.w,m]];break}b&&o.push(pe(b,!1,h))}break}case"crossed-off":{const d=e.x,p=e.y,g=d+e.w,v=p+e.h;for(let m=f;m<u+f;m++)m%2?o.push($(g,v,d,p,h)):o.push($(d,p,g,v,h));for(let m=f;m<u+f;m++)m%2?o.push($(d,v,g,p,h)):o.push($(g,p,d,v,h));break}case"circle":{const d=Je("double",i,s),p=e.w+(l[1]+l[3]),g=e.h+(l[0]+l[2]),v=e.x-l[3]+p/2,m=e.y-l[0]+g/2,_=Math.floor(u/2),b=u-_*2;for(let x=0;x<_;x++)o.push(nt(v,m,p,g,d));for(let x=0;x<b;x++)o.push(nt(v,m,p,g,h));break}case"highlight":{const d=Je("highlight",i,s);a=e.h*.95;const p=e.y+e.h/2;for(let g=f;g<u+f;g++)g%2?o.push($(e.x+e.w,p,e.x,p,d)):o.push($(e.x,p,e.x+e.w,p,d));break}}if(o.length){const d=ko(o),p=[],g=[];let v=0;const m=(_,b,x)=>_.setAttribute(b,x);for(const _ of d){const b=document.createElementNS(ys,"path");if(m(b,"d",_),m(b,"fill","none"),m(b,"stroke",s.color||"currentColor"),m(b,"stroke-width",`${a}`),s.opacity!==void 0&&m(b,"style",`opacity:${s.opacity}`),c){const x=b.getTotalLength();p.push(x),v+=x}t.appendChild(b),g.push(b)}if(c){let _=0;for(let b=0;b<g.length;b++){const x=g[b],L=p[b],D=v?r*(L/v):0,se=n+_,W=x.style;W.strokeDashoffset=`${L}`,W.strokeDasharray=`${L}`,W.animation=`rough-notation-dash ${D}ms ease-out ${se}ms forwards`,_+=D}return Ft(r+n)}}return Ft(0)}function Ft(t){return new Promise(e=>setTimeout(e,t))}function ko(t){const e=[];for(const s of t){let n="";for(const r of s.ops){const i=r.data;switch(r.op){case"move":n.trim()&&e.push(n.trim()),n=`M${i[0]} ${i[1]} `;break;case"bcurveTo":n+=`C${i[0]} ${i[1]}, ${i[2]} ${i[3]}, ${i[4]} ${i[5]} `;break;case"lineTo":n+=`L${i[0]} ${i[1]} `;break}}n.trim()&&e.push(n.trim())}return e}function _o(){if(!window.__rno_kf_s){const t=window.__rno_kf_s=document.createElement("style");t.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(t)}}var bo=Object.defineProperty,wo=(t,e,s)=>e in t?bo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,F=(t,e,s)=>(wo(t,typeof e!="symbol"?e+"":e,s),s);class xo{constructor(e,s){F(this,"_state","unattached"),F(this,"_config"),F(this,"_resizing",!1),F(this,"_ro"),F(this,"_seed",us()),F(this,"_e"),F(this,"_svg"),F(this,"_lastSizes",[]),F(this,"_animationDelay",0),F(this,"_resizeListener",()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,this._state==="showing"&&this.haveRectsChanged()&&this.show()},400))}),F(this,"pendingRefresh"),this._e=e,this._config=JSON.parse(JSON.stringify(s)),this.attach()}getConfig(e){return this._config[e]}setConfig(e,s){this._config[e]!==s&&(this._config[e]=s,this.refresh())}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get class(){return this._config.class}set class(e){this._config.class!==e&&(this._config.class=e,this._svg&&this._svg.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" ")))}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if(this._state==="unattached"&&this._e.parentElement){_o();const e=this._svg=document.createElementNS(ys,"svg");e.setAttribute("class",["rough-annotation",this._config.class||""].filter(Boolean).join(" "));const s=e.style;s.position="absolute",s.top="0",s.left="0",s.overflow="visible",s.pointerEvents="none",s.width="100px",s.height="100px";const n=this._config.type==="highlight";if(this._e.insertAdjacentElement(n?"beforebegin":"afterend",e),this._state="not-showing",n){const r=window.getComputedStyle(this._e).position;(!r||r==="static")&&(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(e=>{for(const s of e)s.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){const e=this.rects();if(e.length===this._lastSizes.length){for(let s=0;s<e.length;s++)if(!this.isSameRect(e[s],this._lastSizes[s]))return!0}else return!0}return!1}isSameRect(e,s){const n=(r,i)=>Math.round(r)===Math.round(i);return n(e.x,s.x)&&n(e.y,s.y)&&n(e.w,s.w)&&n(e.h,s.h)}isShowing(){return this._state!=="not-showing"}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}async show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&await this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&await this.render(this._svg,!1);break}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}async render(e,s){let n=this._config;s&&(n=JSON.parse(JSON.stringify(this._config)),n.animate=!1);const r=this.rects();let i=0;r.forEach(c=>i+=c.w);const o=n.animationDuration||go;let a=0;const l=[];for(let c=0;c<r.length;c++){const u=r[c],f=o*(u.w/i);l.push(yo(e,r[c],n,a+this._animationDelay+(this._config.delay||0),f,this._seed)),a+=f}return this._lastSizes=r,this._state="showing",await Promise.all(l)}rects(){const e=[];if(this._svg)if(this._config.multiline){const s=this._e.getClientRects();for(let n=0;n<s.length;n++)e.push(this.svgRect(this._svg,s[n]))}else e.push(this.svgRect(this._svg,this._e.getBoundingClientRect()));return e}svgRect(e,s){const n=e.getBoundingClientRect(),r=s;return{x:(r.x||r.left)-(n.x||n.left),y:(r.y||r.top)-(n.y||n.top),w:r.width,h:r.height}}}function Mo(t,e){return new xo(t,e)}function C(t,e){return t.class=[t.class,e].filter(Boolean).join(" "),t}const Ht={box:t=>Object.assign(t,{type:"box"}),circle:t=>Object.assign(t,{type:"circle"}),underline:t=>Object.assign(t,{type:"underline"}),highlight:t=>Object.assign(t,{type:"highlight"}),"strike-through":t=>Object.assign(t,{type:"strike-through"}),"crossed-off":t=>Object.assign(t,{type:"crossed-off"}),bracket:t=>Object.assign(t,{type:"bracket"}),strike:t=>Object.assign(t,{type:"strike-through"}),cross:t=>Object.assign(t,{type:"crossed-off"}),crossed:t=>Object.assign(t,{type:"crossed-off"}),linethrough:t=>Object.assign(t,{type:"strike-through"}),"line-through":t=>Object.assign(t,{type:"strike-through"}),black:t=>C(t,"text-black"),blue:t=>C(t,"text-blue"),cyan:t=>C(t,"text-cyan"),gray:t=>C(t,"text-gray"),green:t=>C(t,"text-green"),indigo:t=>C(t,"text-indigo"),lime:t=>C(t,"text-lime"),orange:t=>C(t,"text-orange"),pink:t=>C(t,"text-pink"),purple:t=>C(t,"text-purple"),red:t=>C(t,"text-red"),teal:t=>C(t,"text-teal"),white:t=>C(t,"text-white"),yellow:t=>C(t,"text-yellow")},So=[[/^delay-?(\d+)?$/,(t,e,s)=>{const n=(t[1]?Number.parseInt(t[1]):s)||300;return e.delay=n,e}],[/^(?:op|opacity)-?(\d+)?$/,(t,e,s)=>{const n=(t[1]?Number.parseInt(t[1]):s)||100;return e.opacity=n/100,e}]];function To(){return{install(t){t.directive("mark",{name:"v-mark",mounted:(e,s)=>{const n=y(()=>{const o=typeof s.value=="object"&&!Array.isArray(s.value)?{...s.value}:{at:s.value};let a={at:o.at};const l=Object.entries(s.modifiers).filter(([u,f])=>{if(Ht[u])return a=Ht[u](a,f),!1;for(const[h,d]of So){const p=u.match(h);if(p)return a=d(p,a,f),!1}return!0});l.length&&console.warn("[Slidev] Invalid modifiers for v-mark:",l);const c={...a,...o};return c.type||(c.type="underline"),c}),r=Mo(e,n.value),i=Pe(e,s,n.value.at);if(!i){r.show();return}ie(()=>{let o;n.value.class&&(r.class=n.value.class),n.value.color&&(r.color=n.value.color);const a=n.value.at;a===!0?o=!0:a===!1?o=!1:o=i.isActive.value,o!=null&&(o?r.show():r.hide())})}})}}}const ge=[{name:"print",path:"/print",component:()=>V(()=>import("./slidev/print-jyzcjppc.js"),__vite__mapDeps([12,1,3,4,13,14,15,16]))},{path:"",redirect:{path:"/1"}}];{let t=function(e){if(!T.remote||T.remote===e.query.password)return!0;if(T.remote&&e.query.password===void 0){const s=prompt("Enter password");if(T.remote===s)return!0}return e.params.no?{path:`/${e.params.no}`}:{path:""}};ge.push({path:"/presenter/print",component:()=>V(()=>import("./slidev/print-DuifTBxY.js"),__vite__mapDeps([17,1,18,19,3,4]))}),ge.push({name:"presenter",path:"/presenter/:no",component:()=>V(()=>import("./slidev/presenter-DqwarjmO.js"),__vite__mapDeps([20,21,1,22,23,13,14,2,3,4,24,18,19,25,26,27])),beforeEnter:t}),ge.push({path:"/presenter",redirect:{path:"/presenter/1"}})}ge.push({name:"play",path:"/:no",component:()=>V(()=>import("./slidev/play-C0mExgsc.js"),__vite__mapDeps([28,1,13,14,22,23,21,2,3,4,24,15,29]))});const Ao=[];async function Po(t){function e(){document.documentElement.style.setProperty("--vh",`${window.innerHeight*.01}px`)}e(),window.addEventListener("resize",e);const s=Fs({history:Hs("/slides/fosdem2024"),routes:ge});t.use(s),t.use(Nn()),t.use(ji()),t.use(To()),t.use(js),t.use(Ws,{container:"#twoslash-container"});const n={app:t,router:s};Ce(()=>{s.afterEach(async()=>{await Ce(),et.value+=1})});for(const r of Ao)await r(n)}const ks=Ds(Hi);Po(ks);ks.mount("#app");export{ut as A,zo as B,Ie as C,Y as D,G as E,K as F,Z as G,Lo as H,pi as I,J,Wo as K,qo as L,Zn as M,Fo as N,Ro as O,No as P,V as _,Gs as a,ss as b,T as c,Oi as d,Uo as e,Ys as f,Ho as g,Fn as h,Yn as i,ye as j,me as k,Vo as l,$o as m,j as n,$e as o,Pt as p,rs as q,Eo as r,Io as s,Bo as t,Ot as u,Jt as v,jo as w,Un as x,Gn as y,Do as z};
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.prose :where(h1,h2,h3,h4,h5,h6):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-headings);font-weight:600;line-height:1.25}.prose :where(a):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-links);text-decoration:underline;font-weight:500}.prose :where(a code):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-links)}.prose :where(p,ul,ol,pre):not(:where(.not-prose,.not-prose *)){margin:1em 0;line-height:1.75}.prose :where(blockquote):not(:where(.not-prose,.not-prose *)){margin:1em 0;padding-left:1em;font-style:italic;border-left:.25em solid var(--un-prose-borders)}.prose :where(h1):not(:where(.not-prose,.not-prose *)){margin:1rem 0;font-size:2.25em}.prose :where(h2):not(:where(.not-prose,.not-prose *)){margin:1.75em 0 .5em;font-size:1.75em}.prose :where(h3):not(:where(.not-prose,.not-prose *)){margin:1.5em 0 .5em;font-size:1.375em}.prose :where(h4):not(:where(.not-prose,.not-prose *)){margin:1em 0;font-size:1.125em}.prose :where(img,video):not(:where(.not-prose,.not-prose *)){max-width:100%}.prose :where(figure,picture):not(:where(.not-prose,.not-prose *)){margin:1em 0}.prose :where(figcaption):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-captions);font-size:.875em}.prose :where(code):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-code);font-size:.875em;font-weight:600;font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.prose :where(:not(pre)>code):not(:where(.not-prose,.not-prose *)):before,.prose :where(:not(pre)>code):not(:where(.not-prose,.not-prose *)):after{content:"`"}.prose :where(pre):not(:where(.not-prose,.not-prose *)){padding:1.25rem 1.5rem;overflow-x:auto;border-radius:.375rem}.prose :where(pre,code):not(:where(.not-prose,.not-prose *)){white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;hyphens:none;background:transparent}.prose :where(pre code):not(:where(.not-prose,.not-prose *)){font-weight:inherit}.prose :where(ol,ul):not(:where(.not-prose,.not-prose *)){padding-left:1.25em}.prose :where(ol):not(:where(.not-prose,.not-prose *)){list-style-type:decimal}.prose :where(ol[type=A]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where(.not-prose,.not-prose *)){list-style-type:decimal}.prose :where(ul):not(:where(.not-prose,.not-prose *)){list-style-type:disc}.prose :where(ol>li):not(:where(.not-prose,.not-prose *))::marker,.prose :where(ul>li):not(:where(.not-prose,.not-prose *))::marker,.prose :where(summary):not(:where(.not-prose,.not-prose *))::marker{color:var(--un-prose-lists)}.prose :where(hr):not(:where(.not-prose,.not-prose *)){margin:2em 0;border:1px solid var(--un-prose-hr)}.prose :where(table):not(:where(.not-prose,.not-prose *)){display:block;margin:1em 0;border-collapse:collapse;overflow-x:auto}.prose :where(tr):not(:where(.not-prose,.not-prose *)):nth-child(2n){background:var(--un-prose-bg-soft)}.prose :where(td,th):not(:where(.not-prose,.not-prose *)){border:1px solid var(--un-prose-borders);padding:.625em 1em}.prose :where(abbr):not(:where(.not-prose,.not-prose *)){cursor:help}.prose :where(kbd):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-code);border:1px solid;padding:.25rem .5rem;font-size:.875em;border-radius:.25rem}.prose :where(details):not(:where(.not-prose,.not-prose *)){margin:1em 0;padding:1.25rem 1.5rem;background:var(--un-prose-bg-soft)}.prose :where(summary):not(:where(.not-prose,.not-prose *)){cursor:pointer;font-weight:600}.prose{color:var(--un-prose-body);max-width:65ch}.container{width:100%}.border-main,.dark .dark\:border-main,.dark [border~="dark:main"],.dark [dark\:border~=main],[border~=main]{border-color:#9ca3af33}.border-primary,.hover\:border-primary:hover{border-color:var(--slidev-theme-primary)}.bg-active{background-color:#9ca3af1a}.bg-main{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .bg-main{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.bg-primary{background-color:var(--slidev-theme-primary)}.text-primary,[text-primary=""]{color:var(--slidev-theme-primary)}@media print{.print-container{width:100%}}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 640px){@media print{.print-container{max-width:640px}}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 768px){@media print{.print-container{max-width:768px}}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1024px){@media print{.print-container{max-width:1024px}}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1280px){@media print{.print-container{max-width:1280px}}}@media (min-width: 1536px){.container{max-width:1536px}}@media (min-width: 1536px){@media print{.print-container{max-width:1536px}}}:root{--slidev-code-background: #f5f5f5;--slidev-code-foreground: #1b1b1b;--slidev-code-font-family: "Fira Code",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--slidev-code-padding: 8px;--slidev-code-font-size: 12px;--slidev-code-line-height: 18px;--slidev-code-radius: 4px;--slidev-code-margin: 4px 0;--slidev-theme-primary: #3ab9d5;--slidev-transition-duration: .5s;--slidev-slide-container-background: black;--slidev-controls-foreground: white}html.dark{--slidev-code-background: #1b1b1b;--slidev-code-foreground: #eee}html,body,#app,#page-root{padding:0;margin:0;width:100%;height:100vh;height:calc(var(--vh, 1vh) * 100);overflow:hidden;font-family:Avenir Next,Nunito Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}html{background:transparent}.slidev-icon-btn{aspect-ratio:1;display:inline-block;-webkit-user-select:none;user-select:none;outline:none;cursor:pointer;border-radius:.25rem;padding:.25rem;vertical-align:middle;opacity:.75;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.15s;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width: 768px){.slidev-icon-btn{padding:.5rem}}.slidev-icon-btn:hover{--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity));--un-bg-opacity:.1;opacity:1}.slidev-icon-btn.shallow{opacity:.3}.slidev-icon-btn.active{opacity:1}.slidev-icon-btn.disabled{opacity:.25;pointer-events:none}.slidev-vclick-target{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.1s}.slidev-vclick-hidden{opacity:0!important;pointer-events:none!important;-webkit-user-select:none!important;user-select:none!important}.slidev-vclick-fade{opacity:.5}.slidev-icon{display:inline-block;vertical-align:sub;line-height:1em}.slidev-page{position:relative;top:0;left:0;right:0;width:100%}.slidev-note-with-clicks .slidev-note-fade{color:#888888ab}.slidev-note-click-mark{-webkit-user-select:none;user-select:none;font-size:.7em;display:inline-flex;align-items:center;border-width:1px;border-color:transparent;border-radius:.25rem;background-color:#a78bfa1a;padding-left:.25rem;padding-right:.25rem;--un-text-opacity:1;color:rgb(167 139 250 / var(--un-text-opacity));font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.slidev-note-click-mark.slidev-note-click-mark-active{border-width:1px;--un-border-opacity:1;border-color:rgb(167 139 250 / var(--un-border-opacity))}.slidev-note-click-mark.slidev-note-click-mark-past{filter:saturate(0);opacity:.5}.slidev-note-click-mark.slidev-note-click-mark-future{opacity:.5}.slidev-note-click-mark:before{content:"";display:inline-block;--un-icon: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M23 28a1 1 0 0 1-.71-.29l-6.13-6.14l-3.33 5a1 1 0 0 1-1 .44a1 1 0 0 1-.81-.7l-6-20A1 1 0 0 1 6.29 5l20 6a1 1 0 0 1 .7.81a1 1 0 0 1-.44 1l-5 3.33l6.14 6.13a1 1 0 0 1 0 1.42l-4 4A1 1 0 0 1 23 28m0-2.41L25.59 23l-7.16-7.15l5.25-3.5L7.49 7.49l4.86 16.19l3.5-5.25Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em;opacity:.8}.slidev-note-click-mark:after{content:attr(data-clicks);display:inline-block;transform:translateY(.1em)}.rough-annotation{transform:scale(calc(1 / var(--slidev-slide-scale)))}html.dark:root{color-scheme:dark}html.dark .shiki{color:var(--shiki-dark, inherit);--twoslash-popup-bg: var(--shiki-dark-bg, inherit)}html.dark .shiki span{color:var(--shiki-dark)}html:not(.dark) .shiki{color:var(--shiki-light, inherit);--twoslash-popup-bg: var(--shiki-light-bg, inherit)}html:not(.dark) .shiki span{color:var(--shiki-light)}.twoslash-meta-line.twoslash-popover-line{margin-top:-10px}.slidev-code-wrapper{margin:var(--slidev-code-margin)!important;scroll-padding:var(--slidev-code-padding)}.slidev-code-wrapper:-webkit-scrollbar{width:0px}.slidev-code{font-family:var(--slidev-code-font-family)!important;padding:var(--slidev-code-padding)!important;font-size:var(--slidev-code-font-size)!important;line-height:var(--slidev-code-line-height)!important;border-radius:var(--slidev-code-radius)!important;background:var(--slidev-code-background);overflow:auto}.slidev-code .slidev-code-dishonored{opacity:.3;pointer-events:none}.slidev-code-line-numbers .slidev-code code{counter-reset:step;counter-increment:step calc(var(--start, 1) - 1)}.slidev-code-line-numbers .slidev-code code .line:before{content:counter(step);counter-increment:step;display:inline-block;text-align:right;margin-right:1.5rem;width:1rem;--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.dark .slidev-code-line-numbers .slidev-code code .line:before{--un-text-opacity:1;color:rgb(75 85 99 / var(--un-text-opacity))}.slidev-layout :not(pre)>code{font-size:.9em;background:var(--slidev-code-background);border-radius:var(--slidev-code-radius);padding:.125rem .375rem;font-weight:300}.slidev-layout :not(pre)>code:before{margin-right:-.08em}.katex,.katex :after,.katex :before{border-color:currentColor}.CodeMirror pre.CodeMirror-placeholder{opacity:.4}.slidev-katex-wrapper .mord.dishonored{opacity:.3}.slide-left-enter-active,.slide-left-leave-active,.slide-right-enter-active,.slide-right-leave-active,.slide-up-enter-active,.slide-up-leave-active,.slide-down-enter-active,.slide-down-leave-active{transition:all var(--slidev-transition-duration) ease}.slide-left-enter-from,.slide-right-leave-to{transform:translate(100%)}.slide-left-leave-to,.slide-right-enter-from{transform:translate(-100%)}.slide-up-enter-from,.slide-down-leave-to{transform:translateY(100%)}.slide-up-leave-to,.slide-down-enter-from{transform:translateY(-100%)}.fade-enter-active,.fade-leave-active{transition:opacity var(--slidev-transition-duration) ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-out-leave-active{transition:opacity calc(var(--slidev-transition-duration) * .6) ease-out}.fade-out-enter-active{transition:opacity calc(var(--slidev-transition-duration) * .8) ease-in;transition-delay:calc(var(--slidev-transition-duration) * .6)}.fade-out-enter-from,.fade-out-leave-to{opacity:0}.slidev-layout{height:100%;padding:2.5rem 3.5rem;font-size:1.1rem}.slidev-layout pre,.slidev-layout code{-webkit-user-select:text;user-select:text}.slidev-layout code{font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.slidev-layout h1{margin-bottom:1rem;font-size:2.25rem;line-height:2.5rem}.slidev-layout h6{padding-top:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase}.slidev-layout p{margin-top:1rem;margin-bottom:1rem;line-height:1.5rem}.slidev-layout ul{list-style:square}.slidev-layout ol{list-style:decimal}.slidev-layout li{line-height:1.8em}.slidev-layout blockquote{background:var(--slidev-code-background);color:var(--slidev-code-foreground);border-left-width:1px;border-color:var(--slidev-theme-primary);border-radius:.25rem;padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem}.slidev-layout blockquote>*{margin-top:0;margin-bottom:0}.slidev-layout table{width:100%}.slidev-layout tr{border-bottom-width:1px;border-color:#9ca3af33}.slidev-layout th{text-align:left;font-weight:400}.slidev-layout a{border-bottom-width:1px;border-color:currentColor;border-style:dashed}.slidev-layout a:hover{border-style:solid;color:var(--slidev-theme-primary)}.slidev-layout td,.slidev-layout th{padding:.75rem .5rem}.slidev-layout b,.slidev-layout strong{font-weight:600}.slidev-layout kbd{border-width:1px;border-bottom-width:2px;border-color:#9ca3af33;border-radius:.25rem;--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity));--un-bg-opacity:.05;padding:.125rem .25rem;font-size:.75rem;line-height:1rem;font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.slidev-layout h1,[dir=ltr] h1,.slidev-layout [dir=ltr] h1,.slidev-layout h6,[dir=ltr] h6,.slidev-layout [dir=ltr] h6{margin-left:-.05em;margin-right:0}.slidev-layout li,[dir=ltr] li,.slidev-layout [dir=ltr] li{margin-left:1.1em;margin-right:0;padding-left:.2em;padding-right:0}[dir=rtl] h1,.slidev-layout [dir=rtl] h1,[dir=rtl] h6,.slidev-layout [dir=rtl] h6{margin-right:-.05em;margin-left:0}[dir=rtl] li,.slidev-layout [dir=rtl] li{margin-right:1.1em;margin-left:0;padding-right:.2em;padding-left:0}.slidev-layout h1+p{margin-top:-.5rem;margin-bottom:1rem;opacity:.5}.slidev-layout p+h2,.slidev-layout ul+h2,.slidev-layout table+h2{margin-top:2.5rem}.slidev-layout h1{margin-bottom:1rem;margin-left:-.05em;font-size:2.25rem;line-height:2.5rem}.slidev-layout h2{font-size:1.875rem;line-height:2.25rem}.slidev-layout h3{font-size:1.5rem;line-height:2rem}.slidev-layout h4{font-size:1.25rem;line-height:1.75rem}.slidev-layout h5{font-size:1rem;line-height:1.5rem}.slidev-layout h6{margin-left:-.05em;padding-top:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase}.slidev-layout h6:not(.opacity-100){opacity:.4}.slidev-layout.cover,.slidev-layout.intro{display:grid;height:100%}.slidev-layout.cover h1,.slidev-layout.intro h1{font-size:3.75rem;line-height:1;line-height:5rem}.slidev-layout.fact{display:grid;height:100%;text-align:center}.slidev-layout.fact h1{font-size:6rem;line-height:1;font-weight:700}.slidev-layout.fact h1+p{font-size:1.5rem;line-height:2rem;font-weight:700}.slidev-layout.statement{display:grid;height:100%;text-align:center}.slidev-layout.statement h1{font-size:3.75rem;line-height:1;font-weight:700}.slidev-layout.quote{display:grid;height:100%}.slidev-layout.quote h1+p{margin-top:.5rem}.slidev-layout.section h1{font-size:3.75rem;line-height:1;font-weight:500;line-height:5rem}:root{--prism-scheme: light;--prism-foreground: #6e6e6e;--prism-background: #f4f4f4;--prism-comment: #a8a8a8;--prism-string: #555555;--prism-literal: #333333;--prism-keyword: #000000;--prism-function: #4f4f4f;--prism-deleted: #333333;--prism-class: #333333;--prism-builtin: #757575;--prism-property: #333333;--prism-namespace: #4f4f4f;--prism-punctuation: #ababab;--prism-decorator: var(--prism-class);--prism-operator: var(--prism-punctuation);--prism-number: var(--prism-literal);--prism-boolean: var(--prism-literal);--prism-variable: var(--prism-literal);--prism-constant: var(--prism-literal);--prism-symbol: var(--prism-literal);--prism-interpolation: var(--prism-literal);--prism-selector: var(--prism-keyword);--prism-keyword-control: var(--prism-keyword);--prism-regex: var(--prism-string);--prism-json-property: var(--prism-property);--prism-inline-background: var(--prism-background);--prism-comment-style: italic;--prism-url-decoration: underline;--prism-line-number: #a5a5a5;--prism-line-number-gutter: #333333;--prism-line-highlight-background: #eeeeee;--prism-selection-background: #dddddd;--prism-marker-color: var(--prism-foreground);--prism-marker-opacity: .4;--prism-marker-font-size: .8em;--prism-font-size: 1em;--prism-line-height: 1.5em;--prism-font-family: monospace;--prism-inline-font-size: var(--prism-font-size);--prism-block-font-size: var(--prism-font-size);--prism-tab-size: 2;--prism-block-padding-x: 1em;--prism-block-padding-y: 1em;--prism-block-margin-x: 0;--prism-block-margin-y: .5em;--prism-block-radius: .3em;--prism-inline-padding-x: .3em;--prism-inline-padding-y: .1em;--prism-inline-radius: .3em}div[class*=language-],pre[class*=language-],code[class*=language-]{font-size:var(--prism-font-size);font-family:var(--prism-font-family);direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:var(--prism-line-height);-moz-tab-size:var(--prism-tab-size);-o-tab-size:var(--prism-tab-size);tab-size:var(--prism-tab-size);-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none;color:var(--prism-foreground)!important}div[class*=language-],pre[class*=language-]{font-size:var(--prism-block-font-size);padding:var(--prism-block-padding-y) var(--prism-block-padding-x);margin:var(--prism-block-margin-y) var(--prism-block-margin-x);border-radius:var(--prism-block-radius);overflow:auto;background:var(--prism-background)}:not(pre)>code[class*=language-]{font-size:var(--prism-inline-font-size);padding:var(--prism-inline-padding-y) var(--prism-inline-padding-x);border-radius:var(--prism-inline-radius);background:var(--prism-inline-background)}pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection{background:var(--prism-selection-background)}pre[class*=language-]::selection,pre[class*=language-] ::selection,code[class*=language-]::selection,code[class*=language-] ::selection{background:var(--prism-selection-background)}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:var(--prism-comment);font-style:var(--prism-comment-style)}.token.namespace{color:var(--prism-namespace)}.token.interpolation{color:var(--prism-interpolation)}.token.string{color:var(--prism-string)}.token.punctuation{color:var(--prism-punctuation)}.token.operator{color:var(--prism-operator)}.token.keyword.module,.token.keyword.control-flow{color:var(--prism-keyword-control)}.token.url,.token.symbol,.token.inserted{color:var(--prism-symbol)}.token.constant{color:var(--prism-constant)}.token.string.url{text-decoration:var(--prism-url-decoration)}.token.boolean,.language-json .token.boolean{color:var(--prism-boolean)}.token.number,.language-json .token.number{color:var(--prism-number)}.token.variable{color:var(--prism-variable)}.token.keyword{color:var(--prism-keyword)}.token.atrule,.token.attr-value,.token.selector{color:var(--prism-selector)}.token.function{color:var(--prism-function)}.token.deleted{color:var(--prism-deleted)}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.class-name{color:var(--prism-class)}.token.tag,.token.builtin{color:var(--prism-builtin)}.token.attr-name,.token.property,.token.entity{color:var(--prism-property)}.language-json .token.property{color:var(--prism-json-property)}.token.regex{color:var(--prism-regex)}.token.decorator,.token.annotation{color:var(--prism-decorator)}.line-numbers .line-numbers-rows{border-right-color:var(--prism-line-number)}.line-numbers-rows>span:before{color:var(--prism-line-number-gutter)}.line-highlight{background:var(--prism-line-highlight-background)}:root{--cm-scheme: light;--cm-foreground: #6e6e6e;--cm-background: #f4f4f4;--cm-comment: #a8a8a8;--cm-string: #555555;--cm-literal: #333333;--cm-keyword: #000000;--cm-function: #4f4f4f;--cm-deleted: #333333;--cm-class: #333333;--cm-builtin: #757575;--cm-property: #333333;--cm-namespace: #4f4f4f;--cm-punctuation: #ababab;--cm-decorator: var(--cm-class);--cm-operator: var(--cm-punctuation);--cm-number: var(--cm-literal);--cm-boolean: var(--cm-literal);--cm-variable: var(--cm-literal);--cm-constant: var(--cm-literal);--cm-symbol: var(--cm-literal);--cm-interpolation: var(--cm-literal);--cm-selector: var(--cm-keyword);--cm-keyword-control: var(--cm-keyword);--cm-regex: var(--cm-string);--cm-json-property: var(--cm-property);--cm-inline-background: var(--cm-background);--cm-comment-style: italic;--cm-url-decoration: underline;--cm-line-number: #a5a5a5;--cm-line-number-gutter: #333333;--cm-line-highlight-background: #eeeeee;--cm-selection-background: #aaaaaa;--cm-marker-color: var(--cm-foreground);--cm-marker-opacity: .4;--cm-marker-font-size: .8em;--cm-font-size: 1em;--cm-line-height: 1.5em;--cm-font-family: monospace;--cm-inline-font-size: var(--cm-font-size);--cm-block-font-size: var(--cm-font-size);--cm-tab-size: 2;--cm-block-padding-x: 1em;--cm-block-padding-y: 1em;--cm-block-margin-x: 0;--cm-block-margin-y: .5em;--cm-block-radius: .3em;--cm-inline-padding-x: .3em;--cm-inline-padding-y: .1em;--cm-inline-radius: .3em}.cm-s-vars.CodeMirror{background-color:var(--cm-background);color:var(--cm-foreground)}.cm-s-vars .CodeMirror-gutters{background:var(--cm-line-number-gutter);color:var(--cm-line-number);border:none}.cm-s-vars .CodeMirror-guttermarker,.cm-s-vars .CodeMirror-guttermarker-subtle,.cm-s-vars .CodeMirror-linenumber{color:var(--cm-line-number)}.cm-s-vars div.CodeMirror-selected,.cm-s-vars.CodeMirror-focused div.CodeMirror-selected{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line::selection,.cm-s-vars .CodeMirror-line>span::selection,.cm-s-vars .CodeMirror-line>span>span::selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-line::-moz-selection,.cm-s-vars .CodeMirror-line>span::-moz-selection,.cm-s-vars .CodeMirror-line>span>span::-moz-selection{background:var(--cm-selection-background)}.cm-s-vars .CodeMirror-activeline-background{background:var(--cm-line-highlight-background)}.cm-s-vars .cm-keyword{color:var(--cm-keyword)}.cm-s-vars .cm-variable,.cm-s-vars .cm-variable-2,.cm-s-vars .cm-variable-3,.cm-s-vars .cm-type{color:var(--cm-variable)}.cm-s-vars .cm-builtin{color:var(--cm-builtin)}.cm-s-vars .cm-atom{color:var(--cm-literal)}.cm-s-vars .cm-number{color:var(--cm-number)}.cm-s-vars .cm-def{color:var(--cm-decorator)}.cm-s-vars .cm-string,.cm-s-vars .cm-string-2{color:var(--cm-string)}.cm-s-vars .cm-comment{color:var(--cm-comment)}.cm-s-vars .cm-tag{color:var(--cm-builtin)}.cm-s-vars .cm-meta{color:var(--cm-namespace)}.cm-s-vars .cm-attribute,.cm-s-vars .cm-property{color:var(--cm-property)}.cm-s-vars .cm-qualifier{color:var(--cm-keyword)}.cm-s-vars .cm-error{color:var(--prism-deleted)}.cm-s-vars .cm-operator,.cm-s-vars .cm-bracket{color:var(--cm-punctuation)}.cm-s-vars .CodeMirror-matchingbracket{text-decoration:underline}.cm-s-vars .CodeMirror-cursor{border-left:1px solid currentColor}:root{--cm-scheme: var(--prism-scheme);--cm-foreground: var(--prism-foreground);--cm-background: var(--prism-background);--cm-comment: var(--prism-comment);--cm-string: var(--prism-string);--cm-literal: var(--prism-literal);--cm-keyword: var(--prism-keyword);--cm-function: var(--prism-function);--cm-deleted: var(--prism-deleted);--cm-class: var(--prism-class);--cm-builtin: var(--prism-builtin);--cm-property: var(--prism-property);--cm-namespace: var(--prism-namespace);--cm-punctuation: var(--prism-punctuation);--cm-decorator: var(--prism-decorator);--cm-operator: var(--prism-operator);--cm-number: var(--prism-number);--cm-boolean: var(--prism-boolean);--cm-variable: var(--prism-variable);--cm-constant: var(--prism-constant);--cm-symbol: var(--prism-symbol);--cm-interpolation: var(--prism-interpolation);--cm-selector: var(--prism-selector);--cm-keyword-control: var(--prism-keyword-control);--cm-regex: var(--prism-regex);--cm-json-property: var(--prism-json-property);--cm-inline-background: var(--prism-inline-background);--cm-comment-style: var(--prism-comment-style);--cm-url-decoration: var(--prism-url-decoration);--cm-line-number: var(--prism-line-number);--cm-line-number-gutter: var(--prism-line-number-gutter);--cm-line-highlight-background: var(--prism-line-highlight-background);--cm-selection-background: var(--prism-selection-background);--cm-marker-color: var(--prism-marker-color);--cm-marker-opacity: var(--prism-marker-opacity);--cm-marker-font-size: var(--prism-marker-font-size);--cm-font-size: var(--prism-font-size);--cm-line-height: var(--prism-line-height);--cm-font-family: var(--prism-font-family);--cm-inline-font-size: var(--prism-inline-font-size);--cm-block-font-size: var(--prism-block-font-size);--cm-tab-size: var(--prism-tab-size);--cm-block-padding-x: var(--prism-block-padding-x);--cm-block-padding-y: var(--prism-block-padding-y);--cm-block-margin-x: var(--prism-block-margin-x);--cm-block-margin-y: var(--prism-block-margin-y);--cm-block-radius: var(--prism-block-radius);--cm-inline-padding-x: var(--prism-inline-padding-x);--cm-inline-padding-y: var(--prism-inline-padding-y);--cm-inline-radius: var(--prism-inline-radius)}:root{--prism-font-family: var(--slidev-code-font-family);--prism-background: var(--slidev-code-background)}html:not(.dark){--prism-foreground: #393a34;--prism-comment: #a0ada0;--prism-string: #b56959;--prism-literal: #2f8a89;--prism-number: #296aa3;--prism-keyword: #1c6b48;--prism-function: #6c7834;--prism-boolean: #1c6b48;--prism-constant: #a65e2b;--prism-deleted: #a14f55;--prism-class: #2993a3;--prism-builtin: #ab5959;--prism-property: #b58451;--prism-namespace: #b05a78;--prism-punctuation: #8e8f8b;--prism-decorator: #bd8f8f;--prism-regex: #ab5e3f;--prism-json-property: #698c96}html.dark{--prism-foreground: #d4cfbf;--prism-comment: #758575;--prism-string: #d48372;--prism-literal: #429988;--prism-keyword: #4d9375;--prism-boolean: #1c6b48;--prism-number: #6394bf;--prism-variable: #c2b36e;--prism-function: #a1b567;--prism-deleted: #a14f55;--prism-class: #54b1bf;--prism-builtin: #e0a569;--prism-property: #dd8e6e;--prism-namespace: #db889a;--prism-punctuation: #858585;--prism-decorator: #bd8f8f;--prism-regex: #ab5e3f;--prism-json-property: #6b8b9e;--prism-line-number: #888888;--prism-line-number-gutter: #eeeeee;--prism-line-highlight-background: #444444;--prism-selection-background: #444444}:root{--twoslash-popup-bg: var(--slidev-code-background);--twoslash-popup-color: var(--slidev-code-foreground);--twoslash-docs-color: inherit;--twoslash-docs-font: inherit;--twoslash-code-font: "Fira Code",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--twoslash-underline-color: #8888;--twoslash-border-color: #8888;--twoslash-cursor-color: var(--slidev-theme-primary);--twoslash-matched-color: var(--slidev-theme-primary)}.twoslash-popup-container{font-size:13px}.twoslash-popup-container .twoslash-popup-code{font-size:.85em}.twoslash-floating .twoslash-popup-docs-tags .twoslash-popup-docs-tag-name{color:inherit;opacity:.5}.i-svg-spinners-90-ring-with-bg{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath fill='currentColor' d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute,[absolute=""]{position:absolute}.fixed,[fixed=""]{position:fixed}.relative,[relative=""]{position:relative}.inset-0,[inset-0=""]{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.bottom-10{bottom:2.5rem}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-4{right:1rem}.right-5,[right-5=""]{right:1.25rem}.top-0{top:0}.top-1\/2{top:50%}.-top-20{top:-5rem}.top-4{top:1rem}.top-5{top:1.25rem}.-z-1{z-index:-1}.z-1,[z-1=""]{z-index:1}.z-10,[z-10=""]{z-index:10}.z-20{z-index:20}.grid,[grid=""]{display:grid}.grid-cols-\[1fr_max-content\]{grid-template-columns:1fr max-content}.grid-rows-\[1fr_max-content\]{grid-template-rows:1fr max-content}.grid-rows-\[1fr_min-content\]{grid-template-rows:1fr min-content}.m-1{margin:.25rem}.m-4{margin:1rem}.m-auto{margin:auto}.my{margin-top:1rem;margin-bottom:1rem}.children\:my-auto>*,.my-auto{margin-top:auto;margin-bottom:auto}.mb-10{margin-bottom:2.5rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-0{margin-left:0}.-ml-2{margin-left:-.5rem}.mr-1,.mr1{margin-right:.25rem}.mr-2{margin-right:.5rem}.ms{margin-inline-start:1rem}.-mt-0\.5{margin-top:-.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.block{display:block}.inline-block{display:inline-block}.hidden{display:none}.aspect-ratio-initial{aspect-ratio:initial}.h-\[calc\(var\(--vh\,1vh\)\*100\)\]{height:calc(var(--vh,1vh) * 100)}.h-0\.7{height:.175rem}.h-22px{height:22px}.h-3px{height:3px}.h-40px{height:40px}.h-5,.h5,[h5=""]{height:1.25rem}.h-6{height:1.5rem}.h-full,[h-full=""]{height:100%}.h1{height:.25rem}.h2{height:.5rem}.max-w-150{max-width:37.5rem}.max-w-90,[max-w-90=""]{max-width:22.5rem}.max-w-full{max-width:100%}.min-w-16{min-width:4rem}.min-w-90,[min-w-90=""]{min-width:22.5rem}.w-1px{width:1px}.w-22px{width:22px}.w-4,[w-4=""]{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-90,[w-90=""]{width:22.5rem}.w-full,[w-full=""]{width:100%}.flex,[flex=""],[flex~="~"]{display:flex}.flex-auto,[flex-auto=""]{flex:1 1 auto}.flex-none{flex:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.translate-0{--un-translate-x:0;--un-translate-y:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-rotate-45{--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-rotate:-45deg;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}[scale~="0.5"]{--un-scale-x:.005;--un-scale-y:.005;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-102{--un-scale-x:1.02;--un-scale-y:1.02;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.scale-85{--un-scale-x:.85;--un-scale-y:.85;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-default{cursor:default}.cursor-pointer,[cursor-pointer=""]{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;user-select:none}.resize{resize:both}.resize-none{resize:none}.break-inside-avoid-page{break-inside:avoid-page}.break-after-page{break-after:page}.place-content-center{place-content:center}.items-center,[items-center=""]{align-items:center}.justify-center,[justify-center=""]{justify-content:center}.gap-2,[flex~=gap-2]{gap:.5rem}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-4{gap:1rem}.gap-x-8{column-gap:2rem}.gap-y-4{row-gap:1rem}.of-auto,.overflow-auto{overflow:auto}.of-hidden,.overflow-hidden,[of-hidden=""]{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.b,.border,.dark .dark\:border,.dark [dark\:border~="~"],[border~="~"],[border~="1"]{border-width:1px}[border~="0"]{border-width:0px}.border-2{border-width:2px}[border~=y]{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-r-2{border-right-width:2px}.border-t,[border~=t]{border-top-width:1px}.border-gray-300\/50{border-color:#d1d5db80}[border~=red]{--un-border-opacity:1;border-color:rgb(248 113 113 / var(--un-border-opacity))}.border-transparent,[border~=transparent]{border-color:transparent}.border-white{--un-border-opacity:1;border-color:rgb(255 255 255 / var(--un-border-opacity))}.rounded,[border~=rounded]{border-radius:.25rem}.rounded-1\/2{border-radius:50%}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.\!border-none{border-style:none!important}[bg~=black]{--un-bg-opacity:1;background-color:rgb(0 0 0 / var(--un-bg-opacity))}.bg-current{background-color:currentColor}.bg-gray\/20{background-color:#9ca3af33}.bg-transparent,[bg-transparent~=","],[bg-transparent~="{"],[bg-transparent~="&&"],[bg-transparent~="text.value"]{background-color:transparent}[bg-transparent~="!valid.value"]{background-color:transparent!important}.hover\:bg-gray-400:hover{--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity))}[bg-transparent~="placeholder:"]::placeholder{background-color:transparent}.\!bg-opacity-75{--un-bg-opacity:.75 !important}[bg~=opacity-80]{--un-bg-opacity:.8}.hover\:bg-opacity-10:hover{--un-bg-opacity:.1}[stroke-width~="1"]{stroke-width:1px}[stroke-width~="2"]{stroke-width:2px}[stroke-width~="3"]{stroke-width:3px}.dark .dark\:stroke-black{--un-stroke-opacity:1;stroke:rgb(0 0 0 / var(--un-stroke-opacity))}.stroke-white{--un-stroke-opacity:1;stroke:rgb(255 255 255 / var(--un-stroke-opacity))}.p-1{padding:.25rem}.p-16{padding:4rem}.p-2{padding:.5rem}.\!p-4{padding:1rem!important}.pa-3{padding:.75rem}.px,.px-4,.px4,[p~=x-4],[px=""]{padding-left:1rem;padding-right:1rem}.py-2,[p~=y-2]{padding-top:.5rem;padding-bottom:.5rem}.px-2,.px2{padding-left:.5rem;padding-right:.5rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-1,.py1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-4{padding-top:1rem;padding-bottom:1rem}[p~=l-1]{padding-left:.25rem}[p~=r-2]{padding-right:.5rem}.pt-\.5,[p~="t-0.5"]{padding-top:.125rem}.pb2{padding-bottom:.5rem}.pl-2{padding-left:.5rem}.pr-6{padding-right:1.5rem}.pie,[pie=""]{padding-inline-end:1rem}.text-center{text-align:center}.text-right,[text-right=""]{text-align:right}.text-wrap{text-wrap:wrap}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm,[text-sm=""],[text~=sm]{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs,[text-xs=""]{font-size:.75rem;line-height:1rem}.text-\$slidev-controls-foreground{color:var(--slidev-controls-foreground)}.text-black{--un-text-opacity:1;color:rgb(0 0 0 / var(--un-text-opacity))}.text-blue{--un-text-opacity:1;color:rgb(96 165 250 / var(--un-text-opacity))}.\!text-current{color:currentColor!important}.text-cyan{--un-text-opacity:1;color:rgb(34 211 238 / var(--un-text-opacity))}.text-gray,.text-gray-400{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.text-green{--un-text-opacity:1;color:rgb(74 222 128 / var(--un-text-opacity))}.text-green-500{--un-text-opacity:1;color:rgb(34 197 94 / var(--un-text-opacity))}.text-indigo{--un-text-opacity:1;color:rgb(129 140 248 / var(--un-text-opacity))}.text-lime{--un-text-opacity:1;color:rgb(163 230 53 / var(--un-text-opacity))}.text-orange{--un-text-opacity:1;color:rgb(251 146 60 / var(--un-text-opacity))}.text-pink{--un-text-opacity:1;color:rgb(244 114 182 / var(--un-text-opacity))}.text-purple{--un-text-opacity:1;color:rgb(192 132 252 / var(--un-text-opacity))}.text-red,.text-red-400{--un-text-opacity:1;color:rgb(248 113 113 / var(--un-text-opacity))}.dark .dark\:text-red-500{--un-text-opacity:1;color:rgb(239 68 68 / var(--un-text-opacity))}.text-red-700{--un-text-opacity:1;color:rgb(185 28 28 / var(--un-text-opacity))}.text-teal{--un-text-opacity:1;color:rgb(45 212 191 / var(--un-text-opacity))}.text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.text-yellow{--un-text-opacity:1;color:rgb(250 204 21 / var(--un-text-opacity))}.font-bold,[font-bold=""]{font-weight:700}.leading-2{line-height:.5rem}.tracking-widest{letter-spacing:.1em}.font-mono,[font-mono=""]{font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.op0,.opacity-0,[op0=""]{opacity:0}.op100,[op100=""]{opacity:1}.op15{opacity:.15}.op25,.opacity-25,[op25=""]{opacity:.25}.op30{opacity:.3}.op50,.opacity-50,[op50=""]{opacity:.5}.op80,.opacity-80{opacity:.8}.\!opacity-0{opacity:0!important}.opacity-10{opacity:.1}.\!opacity-100{opacity:1!important}.opacity-40{opacity:.4}[hover~=op100]:hover,.hover\:opacity-100:hover{opacity:1}.hover\:opacity-90:hover{opacity:.9}.shadow,[shadow~="~"]{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}[shadow~="$event"]{--un-shadow:var(--event);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.outline-none,[outline-none=""]{outline:2px solid transparent;outline-offset:2px}.\!backdrop-blur-0px{--un-backdrop-blur:blur(0px) !important;-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)!important;backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)!important}.backdrop-blur-5px{--un-backdrop-blur:blur(5px);-webkit-backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.view-transition-name{view-transition-name:name}@media (max-width: 767.9px){.lt-md\:hidden{display:none}}@media (min-width: 1024px){.lg\:m-2{margin:.5rem}.lg\:gap-1{gap:.25rem}.lg\:p-2{padding:.5rem}.lg\:p-4{padding:1rem}}.shiki-magic-move-container{position:relative;white-space:pre}.shiki-magic-move-item{display:inline-block;transition:color var(--smm-duration, .5s) var(--smm-easing, "ease")}.shiki-magic-move-move,.shiki-magic-move-enter-active,.shiki-magic-move-leave-active{transition:all var(--smm-duration, .5s) var(--smm-easing, "ease")}.shiki-magic-move-container-resize,.shiki-magic-move-container-restyle{transition:all var(--smm-duration, .5s) var(--smm-easing, "ease");transition-delay:calc(var(--smm-duration, .5s) * var(--smm-delay-container, 1))}.shiki-magic-move-move{transition-delay:calc(calc(var(--smm-duration, .5s) * var(--smm-delay-move, 1)) + var(--smm-stagger, 0));z-index:1}.shiki-magic-move-enter-active{transition-delay:calc(calc(var(--smm-duration, .5s) * var(--smm-delay-enter, 1)) + var(--smm-stagger, 0));z-index:1}.shiki-magic-move-leave-active{transition-delay:calc(calc(var(--smm-duration, .5s) * var(--smm-delay-leave, 1)) + var(--smm-stagger, 0))}.shiki-magic-move-enter-from,.shiki-magic-move-leave-to{opacity:0}br.shiki-magic-move-leave-active{display:none}
import{at as E,au as x,av as B,a9 as Ze,aq as M,B as re,ah as Te,aw as Je,ax as Qe,ay as Xe,az as We,aA as ze,aB as Ve,an as ke,ai as y,aC as ve,af as Ee,aD as te,am as $e,aE as en,aF as I,aG as q,aH as nn,aI as rn,aJ as L,ao as tn,ap as sn,aK as C,aL as an,aM as G,ab as J,aN as un,aO as Oe,aj as me,aP as fn,aQ as on,ac as hn,aR as ie}from"./slidev/Mermaid-sWhOKcCj.js";var ln="[object Symbol]";function Q(e){return typeof e=="symbol"||C(e)&&an(e)==ln}function we(e,n){for(var r=-1,t=e==null?0:e.length,i=Array(t);++r<t;)i[r]=n(e[r],r,e);return i}var gn=1/0,se=E?E.prototype:void 0,ae=se?se.toString:void 0;function Pe(e){if(typeof e=="string")return e;if(y(e))return we(e,Pe)+"";if(Q(e))return ae?ae.call(e):"";var n=e+"";return n=="0"&&1/e==-gn?"-0":n}function dn(){}function Le(e,n){for(var r=-1,t=e==null?0:e.length;++r<t&&n(e[r],r,e)!==!1;);return e}function cn(e,n,r,t){for(var i=e.length,s=r+(t?1:-1);t?s--:++s<i;)if(n(e[s],s,e))return s;return-1}function _n(e){return e!==e}function pn(e,n,r){for(var t=r-1,i=e.length;++t<i;)if(e[t]===n)return t;return-1}function bn(e,n,r){return n===n?pn(e,n,r):cn(e,_n,r)}function yn(e,n){var r=e==null?0:e.length;return!!r&&bn(e,n,0)>-1}function T(e){return Te(e)?Je(e):Qe(e)}var An=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tn=/^\w*$/;function X(e,n){if(y(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Q(e)?!0:Tn.test(e)||!An.test(e)||n!=null&&e in Object(n)}var vn=500;function En(e){var n=Xe(e,function(t){return r.size===vn&&r.clear(),t}),r=n.cache;return n}var $n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,On=/\\(\\)?/g,mn=En(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace($n,function(r,t,i,s){n.push(i?s.replace(On,"$1"):t||r)}),n});const wn=mn;function Pn(e){return e==null?"":Pe(e)}function Ie(e,n){return y(e)?e:X(e,n)?[e]:wn(Pn(e))}var Ln=1/0;function U(e){if(typeof e=="string"||Q(e))return e;var n=e+"";return n=="0"&&1/e==-Ln?"-0":n}function Ce(e,n){n=Ie(n,e);for(var r=0,t=n.length;e!=null&&r<t;)e=e[U(n[r++])];return r&&r==t?e:void 0}function In(e,n,r){var t=e==null?void 0:Ce(e,n);return t===void 0?r:t}function W(e,n){for(var r=-1,t=n.length,i=e.length;++r<t;)e[i+r]=n[r];return e}var ue=E?E.isConcatSpreadable:void 0;function Cn(e){return y(e)||ve(e)||!!(ue&&e&&e[ue])}function Se(e,n,r,t,i){var s=-1,a=e.length;for(r||(r=Cn),i||(i=[]);++s<a;){var u=e[s];n>0&&r(u)?n>1?Se(u,n-1,r,t,i):W(i,u):t||(i[i.length]=u)}return i}function Sn(e,n,r,t){var i=-1,s=e==null?0:e.length;for(t&&s&&(r=e[++i]);++i<s;)r=n(r,e[i],i,e);return r}function Nn(e,n){return e&&G(n,T(n),e)}function Fn(e,n){return e&&G(n,J(n),e)}function Ne(e,n){for(var r=-1,t=e==null?0:e.length,i=0,s=[];++r<t;){var a=e[r];n(a,r,e)&&(s[i++]=a)}return s}function Fe(){return[]}var Mn=Object.prototype,Dn=Mn.propertyIsEnumerable,fe=Object.getOwnPropertySymbols,Rn=fe?function(e){return e==null?[]:(e=Object(e),Ne(fe(e),function(n){return Dn.call(e,n)}))}:Fe;const z=Rn;function xn(e,n){return G(e,z(e),n)}var Gn=Object.getOwnPropertySymbols,Un=Gn?function(e){for(var n=[];e;)W(n,z(e)),e=on(e);return n}:Fe;const Me=Un;function Bn(e,n){return G(e,Me(e),n)}function De(e,n,r){var t=n(e);return y(e)?t:W(t,r(e))}function Z(e){return De(e,T,z)}function jn(e){return De(e,J,Me)}var Kn=Object.prototype,Hn=Kn.hasOwnProperty;function Yn(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&Hn.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function qn(e,n){var r=n?Oe(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Zn=/\w*$/;function Jn(e){var n=new e.constructor(e.source,Zn.exec(e));return n.lastIndex=e.lastIndex,n}var oe=E?E.prototype:void 0,he=oe?oe.valueOf:void 0;function Qn(e){return he?Object(he.call(e)):{}}var Xn="[object Boolean]",Wn="[object Date]",zn="[object Map]",Vn="[object Number]",kn="[object RegExp]",er="[object Set]",nr="[object String]",rr="[object Symbol]",tr="[object ArrayBuffer]",ir="[object DataView]",sr="[object Float32Array]",ar="[object Float64Array]",ur="[object Int8Array]",fr="[object Int16Array]",or="[object Int32Array]",hr="[object Uint8Array]",lr="[object Uint8ClampedArray]",gr="[object Uint16Array]",dr="[object Uint32Array]";function cr(e,n,r){var t=e.constructor;switch(n){case tr:return Oe(e);case Xn:case Wn:return new t(+e);case ir:return qn(e,r);case sr:case ar:case ur:case fr:case or:case hr:case lr:case gr:case dr:return un(e,r);case zn:return new t;case Vn:case nr:return new t(e);case kn:return Jn(e);case er:return new t;case rr:return Qn(e)}}var _r="[object Map]";function pr(e){return C(e)&&I(e)==_r}var le=x&&x.isMap,br=le?me(le):pr;const yr=br;var Ar="[object Set]";function Tr(e){return C(e)&&I(e)==Ar}var ge=x&&x.isSet,vr=ge?me(ge):Tr;const Er=vr;var $r=1,Or=2,mr=4,Re="[object Arguments]",wr="[object Array]",Pr="[object Boolean]",Lr="[object Date]",Ir="[object Error]",xe="[object Function]",Cr="[object GeneratorFunction]",Sr="[object Map]",Nr="[object Number]",Ge="[object Object]",Fr="[object RegExp]",Mr="[object Set]",Dr="[object String]",Rr="[object Symbol]",xr="[object WeakMap]",Gr="[object ArrayBuffer]",Ur="[object DataView]",Br="[object Float32Array]",jr="[object Float64Array]",Kr="[object Int8Array]",Hr="[object Int16Array]",Yr="[object Int32Array]",qr="[object Uint8Array]",Zr="[object Uint8ClampedArray]",Jr="[object Uint16Array]",Qr="[object Uint32Array]",l={};l[Re]=l[wr]=l[Gr]=l[Ur]=l[Pr]=l[Lr]=l[Br]=l[jr]=l[Kr]=l[Hr]=l[Yr]=l[Sr]=l[Nr]=l[Ge]=l[Fr]=l[Mr]=l[Dr]=l[Rr]=l[qr]=l[Zr]=l[Jr]=l[Qr]=!0;l[Ir]=l[xe]=l[xr]=!1;function j(e,n,r,t,i,s){var a,u=n&$r,f=n&Or,d=n&mr;if(r&&(a=i?r(e,t,i,s):r(e)),a!==void 0)return a;if(!$e(e))return e;var g=y(e);if(g){if(a=Yn(e),!u)return en(e,a)}else{var o=I(e),h=o==xe||o==Cr;if(q(e))return nn(e,u);if(o==Ge||o==Re||h&&!i){if(a=f||h?{}:rn(e),!u)return f?Bn(e,Fn(a,e)):xn(e,Nn(a,e))}else{if(!l[o])return i?e:{};a=cr(e,o,u)}}s||(s=new L);var A=s.get(e);if(A)return A;s.set(e,a),Er(e)?e.forEach(function(c){a.add(j(c,n,r,c,e,s))}):yr(e)&&e.forEach(function(c,_){a.set(_,j(c,n,r,_,e,s))});var p=d?f?jn:Z:f?J:T,b=g?void 0:p(e);return Le(b||e,function(c,_){b&&(_=c,c=e[_]),tn(a,_,j(c,n,r,_,e,s))}),a}var Xr="__lodash_hash_undefined__";function Wr(e){return this.__data__.set(e,Xr),this}function zr(e){return this.__data__.has(e)}function S(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new ze;++n<r;)this.add(e[n])}S.prototype.add=S.prototype.push=Wr;S.prototype.has=zr;function Vr(e,n){for(var r=-1,t=e==null?0:e.length;++r<t;)if(n(e[r],r,e))return!0;return!1}function Ue(e,n){return e.has(n)}var kr=1,et=2;function Be(e,n,r,t,i,s){var a=r&kr,u=e.length,f=n.length;if(u!=f&&!(a&&f>u))return!1;var d=s.get(e),g=s.get(n);if(d&&g)return d==n&&g==e;var o=-1,h=!0,A=r&et?new S:void 0;for(s.set(e,n),s.set(n,e);++o<u;){var p=e[o],b=n[o];if(t)var c=a?t(b,p,o,n,e,s):t(p,b,o,e,n,s);if(c!==void 0){if(c)continue;h=!1;break}if(A){if(!Vr(n,function(_,$){if(!Ue(A,$)&&(p===_||i(p,_,r,t,s)))return A.push($)})){h=!1;break}}else if(!(p===b||i(p,b,r,t,s))){h=!1;break}}return s.delete(e),s.delete(n),h}function nt(e){var n=-1,r=Array(e.size);return e.forEach(function(t,i){r[++n]=[i,t]}),r}function V(e){var n=-1,r=Array(e.size);return e.forEach(function(t){r[++n]=t}),r}var rt=1,tt=2,it="[object Boolean]",st="[object Date]",at="[object Error]",ut="[object Map]",ft="[object Number]",ot="[object RegExp]",ht="[object Set]",lt="[object String]",gt="[object Symbol]",dt="[object ArrayBuffer]",ct="[object DataView]",de=E?E.prototype:void 0,K=de?de.valueOf:void 0;function _t(e,n,r,t,i,s,a){switch(r){case ct:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case dt:return!(e.byteLength!=n.byteLength||!s(new ie(e),new ie(n)));case it:case st:case ft:return hn(+e,+n);case at:return e.name==n.name&&e.message==n.message;case ot:case lt:return e==n+"";case ut:var u=nt;case ht:var f=t&rt;if(u||(u=V),e.size!=n.size&&!f)return!1;var d=a.get(e);if(d)return d==n;t|=tt,a.set(e,n);var g=Be(u(e),u(n),t,i,s,a);return a.delete(e),g;case gt:if(K)return K.call(e)==K.call(n)}return!1}var pt=1,bt=Object.prototype,yt=bt.hasOwnProperty;function At(e,n,r,t,i,s){var a=r&pt,u=Z(e),f=u.length,d=Z(n),g=d.length;if(f!=g&&!a)return!1;for(var o=f;o--;){var h=u[o];if(!(a?h in n:yt.call(n,h)))return!1}var A=s.get(e),p=s.get(n);if(A&&p)return A==n&&p==e;var b=!0;s.set(e,n),s.set(n,e);for(var c=a;++o<f;){h=u[o];var _=e[h],$=n[h];if(t)var ne=a?t($,_,h,n,e,s):t(_,$,h,e,n,s);if(!(ne===void 0?_===$||i(_,$,r,t,s):ne)){b=!1;break}c||(c=h=="constructor")}if(b&&!c){var N=e.constructor,F=n.constructor;N!=F&&"constructor"in e&&"constructor"in n&&!(typeof N=="function"&&N instanceof N&&typeof F=="function"&&F instanceof F)&&(b=!1)}return s.delete(e),s.delete(n),b}var Tt=1,ce="[object Arguments]",_e="[object Array]",D="[object Object]",vt=Object.prototype,pe=vt.hasOwnProperty;function Et(e,n,r,t,i,s){var a=y(e),u=y(n),f=a?_e:I(e),d=u?_e:I(n);f=f==ce?D:f,d=d==ce?D:d;var g=f==D,o=d==D,h=f==d;if(h&&q(e)){if(!q(n))return!1;a=!0,g=!1}if(h&&!g)return s||(s=new L),a||fn(e)?Be(e,n,r,t,i,s):_t(e,n,f,r,t,i,s);if(!(r&Tt)){var A=g&&pe.call(e,"__wrapped__"),p=o&&pe.call(n,"__wrapped__");if(A||p){var b=A?e.value():e,c=p?n.value():n;return s||(s=new L),i(b,c,r,t,s)}}return h?(s||(s=new L),At(e,n,r,t,i,s)):!1}function k(e,n,r,t,i){return e===n?!0:e==null||n==null||!C(e)&&!C(n)?e!==e&&n!==n:Et(e,n,r,t,k,i)}var $t=1,Ot=2;function mt(e,n,r,t){var i=r.length,s=i,a=!t;if(e==null)return!s;for(e=Object(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){u=r[i];var f=u[0],d=e[f],g=u[1];if(a&&u[2]){if(d===void 0&&!(f in e))return!1}else{var o=new L;if(t)var h=t(d,g,f,e,n,o);if(!(h===void 0?k(g,d,$t|Ot,t,o):h))return!1}}return!0}function je(e){return e===e&&!$e(e)}function wt(e){for(var n=T(e),r=n.length;r--;){var t=n[r],i=e[t];n[r]=[t,i,je(i)]}return n}function Ke(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}function Pt(e){var n=wt(e);return n.length==1&&n[0][2]?Ke(n[0][0],n[0][1]):function(r){return r===e||mt(r,e,n)}}function Lt(e,n){return e!=null&&n in Object(e)}function He(e,n,r){n=Ie(n,e);for(var t=-1,i=n.length,s=!1;++t<i;){var a=U(n[t]);if(!(s=e!=null&&r(e,a)))break;e=e[a]}return s||++t!=i?s:(i=e==null?0:e.length,!!i&&Ve(i)&&ke(a,i)&&(y(e)||ve(e)))}function It(e,n){return e!=null&&He(e,n,Lt)}var Ct=1,St=2;function Nt(e,n){return X(e)&&je(n)?Ke(U(e),n):function(r){var t=In(r,e);return t===void 0&&t===n?It(r,e):k(n,t,Ct|St)}}function Ft(e){return function(n){return n==null?void 0:n[e]}}function Mt(e){return function(n){return Ce(n,e)}}function Dt(e){return X(e)?Ft(U(e)):Mt(e)}function Ye(e){return typeof e=="function"?e:e==null?Ee:typeof e=="object"?y(e)?Nt(e[0],e[1]):Pt(e):Dt(e)}function Rt(e,n){return e&&sn(e,n,T)}function xt(e,n){return function(r,t){if(r==null)return r;if(!Te(r))return e(r,t);for(var i=r.length,s=n?i:-1,a=Object(r);(n?s--:++s<i)&&t(a[s],s,a)!==!1;);return r}}var Gt=xt(Rt);const ee=Gt;function Ut(e,n,r){for(var t=-1,i=e==null?0:e.length;++t<i;)if(r(n,e[t]))return!0;return!1}function Bt(e){return typeof e=="function"?e:Ee}function O(e,n){var r=y(e)?Le:ee;return r(e,Bt(n))}function jt(e,n){var r=[];return ee(e,function(t,i,s){n(t,i,s)&&r.push(t)}),r}function R(e,n){var r=y(e)?Ne:jt;return r(e,Ye(n))}var Kt=Object.prototype,Ht=Kt.hasOwnProperty;function Yt(e,n){return e!=null&&Ht.call(e,n)}function v(e,n){return e!=null&&He(e,n,Yt)}function qt(e,n){return we(n,function(r){return e[r]})}function H(e){return e==null?[]:qt(e,T(e))}function w(e){return e===void 0}function Zt(e,n,r,t,i){return i(e,function(s,a,u){r=t?(t=!1,s):n(r,s,a,u)}),r}function Jt(e,n,r){var t=y(e)?Sn:Zt,i=arguments.length<3;return t(e,Ye(n),r,i,ee)}var Qt=1/0,Xt=B&&1/V(new B([,-0]))[1]==Qt?function(e){return new B(e)}:dn;const Wt=Xt;var zt=200;function Vt(e,n,r){var t=-1,i=yn,s=e.length,a=!0,u=[],f=u;if(r)a=!1,i=Ut;else if(s>=zt){var d=n?null:Wt(e);if(d)return V(d);a=!1,i=Ue,f=new S}else f=n?[]:u;e:for(;++t<s;){var g=e[t],o=n?n(g):g;if(g=r||g!==0?g:0,a&&o===o){for(var h=f.length;h--;)if(f[h]===o)continue e;n&&f.push(o),u.push(g)}else i(f,o,r)||(f!==u&&f.push(o),u.push(g))}return u}var kt=Ze(function(e){return Vt(Se(e,1,We,!0))});const ei=kt;var ni="\0",m="\0",be="";class qe{constructor(n={}){this._isDirected=v(n,"directed")?n.directed:!0,this._isMultigraph=v(n,"multigraph")?n.multigraph:!1,this._isCompound=v(n,"compound")?n.compound:!1,this._label=void 0,this._defaultNodeLabelFn=M(void 0),this._defaultEdgeLabelFn=M(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[m]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(n){return this._label=n,this}graph(){return this._label}setDefaultNodeLabel(n){return re(n)||(n=M(n)),this._defaultNodeLabelFn=n,this}nodeCount(){return this._nodeCount}nodes(){return T(this._nodes)}sources(){var n=this;return R(this.nodes(),function(r){return te(n._in[r])})}sinks(){var n=this;return R(this.nodes(),function(r){return te(n._out[r])})}setNodes(n,r){var t=arguments,i=this;return O(n,function(s){t.length>1?i.setNode(s,r):i.setNode(s)}),this}setNode(n,r){return v(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=r),this):(this._nodes[n]=arguments.length>1?r:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=m,this._children[n]={},this._children[m][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)}node(n){return this._nodes[n]}hasNode(n){return v(this._nodes,n)}removeNode(n){var r=this;if(v(this._nodes,n)){var t=function(i){r.removeEdge(r._edgeObjs[i])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],O(this.children(n),function(i){r.setParent(i)}),delete this._children[n]),O(T(this._in[n]),t),delete this._in[n],delete this._preds[n],O(T(this._out[n]),t),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this}setParent(n,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(w(r))r=m;else{r+="";for(var t=r;!w(t);t=this.parent(t))if(t===n)throw new Error("Setting "+r+" as parent of "+n+" would create a cycle");this.setNode(r)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=r,this._children[r][n]=!0,this}_removeFromParentsChildList(n){delete this._children[this._parent[n]][n]}parent(n){if(this._isCompound){var r=this._parent[n];if(r!==m)return r}}children(n){if(w(n)&&(n=m),this._isCompound){var r=this._children[n];if(r)return T(r)}else{if(n===m)return this.nodes();if(this.hasNode(n))return[]}}predecessors(n){var r=this._preds[n];if(r)return T(r)}successors(n){var r=this._sucs[n];if(r)return T(r)}neighbors(n){var r=this.predecessors(n);if(r)return ei(r,this.successors(n))}isLeaf(n){var r;return this.isDirected()?r=this.successors(n):r=this.neighbors(n),r.length===0}filterNodes(n){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var t=this;O(this._nodes,function(a,u){n(u)&&r.setNode(u,a)}),O(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,t.edge(a))});var i={};function s(a){var u=t.parent(a);return u===void 0||r.hasNode(u)?(i[a]=u,u):u in i?i[u]:s(u)}return this._isCompound&&O(r.nodes(),function(a){r.setParent(a,s(a))}),r}setDefaultEdgeLabel(n){return re(n)||(n=M(n)),this._defaultEdgeLabelFn=n,this}edgeCount(){return this._edgeCount}edges(){return H(this._edgeObjs)}setPath(n,r){var t=this,i=arguments;return Jt(n,function(s,a){return i.length>1?t.setEdge(s,a,r):t.setEdge(s,a),a}),this}setEdge(){var n,r,t,i,s=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(n=a.v,r=a.w,t=a.name,arguments.length===2&&(i=arguments[1],s=!0)):(n=a,r=arguments[1],t=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),n=""+n,r=""+r,w(t)||(t=""+t);var u=P(this._isDirected,n,r,t);if(v(this._edgeLabels,u))return s&&(this._edgeLabels[u]=i),this;if(!w(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(r),this._edgeLabels[u]=s?i:this._defaultEdgeLabelFn(n,r,t);var f=ri(this._isDirected,n,r,t);return n=f.v,r=f.w,Object.freeze(f),this._edgeObjs[u]=f,ye(this._preds[r],n),ye(this._sucs[n],r),this._in[r][u]=f,this._out[n][u]=f,this._edgeCount++,this}edge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t);return this._edgeLabels[i]}hasEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t);return v(this._edgeLabels,i)}removeEdge(n,r,t){var i=arguments.length===1?Y(this._isDirected,arguments[0]):P(this._isDirected,n,r,t),s=this._edgeObjs[i];return s&&(n=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],Ae(this._preds[r],n),Ae(this._sucs[n],r),delete this._in[r][i],delete this._out[n][i],this._edgeCount--),this}inEdges(n,r){var t=this._in[n];if(t){var i=H(t);return r?R(i,function(s){return s.v===r}):i}}outEdges(n,r){var t=this._out[n];if(t){var i=H(t);return r?R(i,function(s){return s.w===r}):i}}nodeEdges(n,r){var t=this.inEdges(n,r);if(t)return t.concat(this.outEdges(n,r))}}qe.prototype._nodeCount=0;qe.prototype._edgeCount=0;function ye(e,n){e[n]?e[n]++:e[n]=1}function Ae(e,n){--e[n]||delete e[n]}function P(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}return i+be+s+be+(w(t)?ni:t)}function ri(e,n,r,t){var i=""+n,s=""+r;if(!e&&i>s){var a=i;i=s,s=a}var u={v:i,w:s};return t&&(u.name=t),u}function Y(e,n){return P(e,n.v,n.w,n.name)}export{qe as G,we as a,Se as b,ee as c,Ye as d,Rt as e,O as f,Ce as g,v as h,w as i,j,Bt as k,Ie as l,It as m,R as n,Q as o,U as p,T as q,Jt as r,cn as s,Pn as t,H as v};
import{c as C,s as vt,g as Ct,a as Ot,b as Pt,C as Gt,D as It,l as B,j as D,E as St,h as At,v as Nt,H as Ht,I as Bt}from"./slidev/Mermaid-sWhOKcCj.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var mt=function(){var r=function(I,o,u,d){for(u=u||{},d=I.length;d--;u[I[d]]=o);return u},n=[1,3],l=[1,6],h=[1,4],i=[1,5],c=[2,5],p=[1,12],m=[5,7,13,19,21,23,24,26,28,31,37,40,47],x=[7,13,19,21,23,24,26,28,31,37,40],y=[7,12,13,19,21,23,24,26,28,31,37,40],a=[7,13,47],R=[1,42],_=[1,41],b=[7,13,29,32,35,38,47],f=[1,55],k=[1,56],g=[1,57],E=[7,13,32,35,42,47],z={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(o,u,d,s,T,t,X){var e=t.length-1;switch(T){case 2:return t[e];case 3:return t[e-1];case 4:return s.setDirection(t[e-3]),t[e-1];case 6:s.setOptions(t[e-1]),this.$=t[e];break;case 7:t[e-1]+=t[e],this.$=t[e-1];break;case 9:this.$=[];break;case 10:t[e-1].push(t[e]),this.$=t[e-1];break;case 11:this.$=t[e-1];break;case 16:this.$=t[e].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=t[e].trim(),s.setAccDescription(this.$);break;case 19:s.addSection(t[e].substr(8)),this.$=t[e].substr(8);break;case 21:s.checkout(t[e]);break;case 22:s.branch(t[e]);break;case 23:s.branch(t[e-2],t[e]);break;case 24:s.cherryPick(t[e],"",void 0);break;case 25:s.cherryPick(t[e-2],"",void 0,t[e]);break;case 26:s.cherryPick(t[e-2],"",t[e]);break;case 27:s.cherryPick(t[e-4],"",t[e],t[e-2]);break;case 28:s.cherryPick(t[e-4],"",t[e-2],t[e]);break;case 29:s.cherryPick(t[e],"",t[e-2]);break;case 30:s.cherryPick(t[e],"","");break;case 31:s.cherryPick(t[e-2],"","");break;case 32:s.cherryPick(t[e-4],"","",t[e-2]);break;case 33:s.cherryPick(t[e-4],"","",t[e]);break;case 34:s.cherryPick(t[e-2],"",t[e-4],t[e]);break;case 35:s.cherryPick(t[e-2],"","",t[e]);break;case 36:s.merge(t[e],"","","");break;case 37:s.merge(t[e-2],t[e],"","");break;case 38:s.merge(t[e-2],"",t[e],"");break;case 39:s.merge(t[e-2],"","",t[e]);break;case 40:s.merge(t[e-4],t[e],"",t[e-2]);break;case 41:s.merge(t[e-4],"",t[e],t[e-2]);break;case 42:s.merge(t[e-4],"",t[e-2],t[e]);break;case 43:s.merge(t[e-4],t[e-2],t[e],"");break;case 44:s.merge(t[e-4],t[e-2],"",t[e]);break;case 45:s.merge(t[e-4],t[e],t[e-2],"");break;case 46:s.merge(t[e-6],t[e-4],t[e-2],t[e]);break;case 47:s.merge(t[e-6],t[e],t[e-4],t[e-2]);break;case 48:s.merge(t[e-6],t[e-4],t[e],t[e-2]);break;case 49:s.merge(t[e-6],t[e-2],t[e-4],t[e]);break;case 50:s.merge(t[e-6],t[e],t[e-2],t[e-4]);break;case 51:s.merge(t[e-6],t[e-2],t[e],t[e-4]);break;case 52:s.commit(t[e]);break;case 53:s.commit("","",s.commitType.NORMAL,t[e]);break;case 54:s.commit("","",t[e],"");break;case 55:s.commit("","",t[e],t[e-2]);break;case 56:s.commit("","",t[e-2],t[e]);break;case 57:s.commit("",t[e],s.commitType.NORMAL,"");break;case 58:s.commit("",t[e-2],s.commitType.NORMAL,t[e]);break;case 59:s.commit("",t[e],s.commitType.NORMAL,t[e-2]);break;case 60:s.commit("",t[e-2],t[e],"");break;case 61:s.commit("",t[e],t[e-2],"");break;case 62:s.commit("",t[e-4],t[e-2],t[e]);break;case 63:s.commit("",t[e-4],t[e],t[e-2]);break;case 64:s.commit("",t[e-2],t[e-4],t[e]);break;case 65:s.commit("",t[e],t[e-4],t[e-2]);break;case 66:s.commit("",t[e],t[e-2],t[e-4]);break;case 67:s.commit("",t[e-2],t[e],t[e-4]);break;case 68:s.commit(t[e],"",s.commitType.NORMAL,"");break;case 69:s.commit(t[e],"",s.commitType.NORMAL,t[e-2]);break;case 70:s.commit(t[e-2],"",s.commitType.NORMAL,t[e]);break;case 71:s.commit(t[e-2],"",t[e],"");break;case 72:s.commit(t[e],"",t[e-2],"");break;case 73:s.commit(t[e],t[e-2],s.commitType.NORMAL,"");break;case 74:s.commit(t[e-2],t[e],s.commitType.NORMAL,"");break;case 75:s.commit(t[e-4],"",t[e-2],t[e]);break;case 76:s.commit(t[e-4],"",t[e],t[e-2]);break;case 77:s.commit(t[e-2],"",t[e-4],t[e]);break;case 78:s.commit(t[e],"",t[e-4],t[e-2]);break;case 79:s.commit(t[e],"",t[e-2],t[e-4]);break;case 80:s.commit(t[e-2],"",t[e],t[e-4]);break;case 81:s.commit(t[e-4],t[e],t[e-2],"");break;case 82:s.commit(t[e-4],t[e-2],t[e],"");break;case 83:s.commit(t[e-2],t[e],t[e-4],"");break;case 84:s.commit(t[e],t[e-2],t[e-4],"");break;case 85:s.commit(t[e],t[e-4],t[e-2],"");break;case 86:s.commit(t[e-2],t[e-4],t[e],"");break;case 87:s.commit(t[e-4],t[e],s.commitType.NORMAL,t[e-2]);break;case 88:s.commit(t[e-4],t[e-2],s.commitType.NORMAL,t[e]);break;case 89:s.commit(t[e-2],t[e],s.commitType.NORMAL,t[e-4]);break;case 90:s.commit(t[e],t[e-2],s.commitType.NORMAL,t[e-4]);break;case 91:s.commit(t[e],t[e-4],s.commitType.NORMAL,t[e-2]);break;case 92:s.commit(t[e-2],t[e-4],s.commitType.NORMAL,t[e]);break;case 93:s.commit(t[e-6],t[e-4],t[e-2],t[e]);break;case 94:s.commit(t[e-6],t[e-4],t[e],t[e-2]);break;case 95:s.commit(t[e-6],t[e-2],t[e-4],t[e]);break;case 96:s.commit(t[e-6],t[e],t[e-4],t[e-2]);break;case 97:s.commit(t[e-6],t[e-2],t[e],t[e-4]);break;case 98:s.commit(t[e-6],t[e],t[e-2],t[e-4]);break;case 99:s.commit(t[e-4],t[e-6],t[e-2],t[e]);break;case 100:s.commit(t[e-4],t[e-6],t[e],t[e-2]);break;case 101:s.commit(t[e-2],t[e-6],t[e-4],t[e]);break;case 102:s.commit(t[e],t[e-6],t[e-4],t[e-2]);break;case 103:s.commit(t[e-2],t[e-6],t[e],t[e-4]);break;case 104:s.commit(t[e],t[e-6],t[e-2],t[e-4]);break;case 105:s.commit(t[e],t[e-4],t[e-2],t[e-6]);break;case 106:s.commit(t[e-2],t[e-4],t[e],t[e-6]);break;case 107:s.commit(t[e],t[e-2],t[e-4],t[e-6]);break;case 108:s.commit(t[e-2],t[e],t[e-4],t[e-6]);break;case 109:s.commit(t[e-4],t[e-2],t[e],t[e-6]);break;case 110:s.commit(t[e-4],t[e],t[e-2],t[e-6]);break;case 111:s.commit(t[e-2],t[e-4],t[e-6],t[e]);break;case 112:s.commit(t[e],t[e-4],t[e-6],t[e-2]);break;case 113:s.commit(t[e-2],t[e],t[e-6],t[e-4]);break;case 114:s.commit(t[e],t[e-2],t[e-6],t[e-4]);break;case 115:s.commit(t[e-4],t[e-2],t[e-6],t[e]);break;case 116:s.commit(t[e-4],t[e],t[e-6],t[e-2]);break;case 117:this.$="";break;case 118:this.$=t[e];break;case 119:this.$=s.commitType.NORMAL;break;case 120:this.$=s.commitType.REVERSE;break;case 121:this.$=s.commitType.HIGHLIGHT;break}},table:[{3:1,4:2,5:n,7:l,13:h,47:i},{1:[3]},{3:7,4:2,5:n,7:l,13:h,47:i},{6:8,7:c,8:[1,9],9:[1,10],10:11,13:p},r(m,[2,124]),r(m,[2,125]),r(m,[2,126]),{1:[2,1]},{7:[1,13]},{6:14,7:c,10:11,13:p},{8:[1,15]},r(x,[2,9],{11:16,12:[1,17]}),r(y,[2,8]),{1:[2,2]},{7:[1,18]},{6:19,7:c,10:11,13:p},{7:[2,6],13:[1,22],14:20,15:21,16:23,17:24,18:25,19:[1,26],21:[1,27],23:[1,28],24:[1,29],25:30,26:[1,31],28:[1,35],31:[1,34],37:[1,33],40:[1,32]},r(y,[2,7]),{1:[2,3]},{7:[1,36]},r(x,[2,10]),{4:37,7:l,13:h,47:i},r(x,[2,12]),r(a,[2,13]),r(a,[2,14]),r(a,[2,15]),{20:[1,38]},{22:[1,39]},r(a,[2,18]),r(a,[2,19]),r(a,[2,20]),{27:40,33:R,46:_},r(a,[2,117],{41:43,32:[1,46],33:[1,48],35:[1,44],38:[1,45],42:[1,47]}),{27:49,33:R,46:_},{32:[1,50],35:[1,51]},{27:52,33:R,46:_},{1:[2,4]},r(x,[2,11]),r(a,[2,16]),r(a,[2,17]),r(a,[2,21]),r(b,[2,122]),r(b,[2,123]),r(a,[2,52]),{33:[1,53]},{39:54,43:f,44:k,45:g},{33:[1,58]},{33:[1,59]},r(a,[2,118]),r(a,[2,36],{32:[1,60],35:[1,62],38:[1,61]}),{33:[1,63]},{33:[1,64],36:[1,65]},r(a,[2,22],{29:[1,66]}),r(a,[2,53],{32:[1,68],38:[1,67],42:[1,69]}),r(a,[2,54],{32:[1,71],35:[1,70],42:[1,72]}),r(E,[2,119]),r(E,[2,120]),r(E,[2,121]),r(a,[2,57],{35:[1,73],38:[1,74],42:[1,75]}),r(a,[2,68],{32:[1,78],35:[1,76],38:[1,77]}),{33:[1,79]},{39:80,43:f,44:k,45:g},{33:[1,81]},r(a,[2,24],{34:[1,82],35:[1,83]}),{32:[1,84]},{32:[1,85]},{30:[1,86]},{39:87,43:f,44:k,45:g},{33:[1,88]},{33:[1,89]},{33:[1,90]},{33:[1,91]},{33:[1,92]},{33:[1,93]},{39:94,43:f,44:k,45:g},{33:[1,95]},{33:[1,96]},{39:97,43:f,44:k,45:g},{33:[1,98]},r(a,[2,37],{35:[1,100],38:[1,99]}),r(a,[2,38],{32:[1,102],35:[1,101]}),r(a,[2,39],{32:[1,103],38:[1,104]}),{33:[1,105]},{33:[1,106],36:[1,107]},{33:[1,108]},{33:[1,109]},r(a,[2,23]),r(a,[2,55],{32:[1,110],42:[1,111]}),r(a,[2,59],{38:[1,112],42:[1,113]}),r(a,[2,69],{32:[1,115],38:[1,114]}),r(a,[2,56],{32:[1,116],42:[1,117]}),r(a,[2,61],{35:[1,118],42:[1,119]}),r(a,[2,72],{32:[1,121],35:[1,120]}),r(a,[2,58],{38:[1,122],42:[1,123]}),r(a,[2,60],{35:[1,124],42:[1,125]}),r(a,[2,73],{35:[1,127],38:[1,126]}),r(a,[2,70],{32:[1,129],38:[1,128]}),r(a,[2,71],{32:[1,131],35:[1,130]}),r(a,[2,74],{35:[1,133],38:[1,132]}),{39:134,43:f,44:k,45:g},{33:[1,135]},{33:[1,136]},{33:[1,137]},{33:[1,138]},{39:139,43:f,44:k,45:g},r(a,[2,25],{35:[1,140]}),r(a,[2,26],{34:[1,141]}),r(a,[2,31],{34:[1,142]}),r(a,[2,29],{34:[1,143]}),r(a,[2,30],{34:[1,144]}),{33:[1,145]},{33:[1,146]},{39:147,43:f,44:k,45:g},{33:[1,148]},{39:149,43:f,44:k,45:g},{33:[1,150]},{33:[1,151]},{33:[1,152]},{33:[1,153]},{33:[1,154]},{33:[1,155]},{33:[1,156]},{39:157,43:f,44:k,45:g},{33:[1,158]},{33:[1,159]},{33:[1,160]},{39:161,43:f,44:k,45:g},{33:[1,162]},{39:163,43:f,44:k,45:g},{33:[1,164]},{33:[1,165]},{33:[1,166]},{39:167,43:f,44:k,45:g},{33:[1,168]},r(a,[2,43],{35:[1,169]}),r(a,[2,44],{38:[1,170]}),r(a,[2,42],{32:[1,171]}),r(a,[2,45],{35:[1,172]}),r(a,[2,40],{38:[1,173]}),r(a,[2,41],{32:[1,174]}),{33:[1,175],36:[1,176]},{33:[1,177]},{33:[1,178]},{33:[1,179]},{33:[1,180]},r(a,[2,66],{42:[1,181]}),r(a,[2,79],{32:[1,182]}),r(a,[2,67],{42:[1,183]}),r(a,[2,90],{38:[1,184]}),r(a,[2,80],{32:[1,185]}),r(a,[2,89],{38:[1,186]}),r(a,[2,65],{42:[1,187]}),r(a,[2,78],{32:[1,188]}),r(a,[2,64],{42:[1,189]}),r(a,[2,84],{35:[1,190]}),r(a,[2,77],{32:[1,191]}),r(a,[2,83],{35:[1,192]}),r(a,[2,63],{42:[1,193]}),r(a,[2,91],{38:[1,194]}),r(a,[2,62],{42:[1,195]}),r(a,[2,85],{35:[1,196]}),r(a,[2,86],{35:[1,197]}),r(a,[2,92],{38:[1,198]}),r(a,[2,76],{32:[1,199]}),r(a,[2,87],{38:[1,200]}),r(a,[2,75],{32:[1,201]}),r(a,[2,81],{35:[1,202]}),r(a,[2,82],{35:[1,203]}),r(a,[2,88],{38:[1,204]}),{33:[1,205]},{39:206,43:f,44:k,45:g},{33:[1,207]},{33:[1,208]},{39:209,43:f,44:k,45:g},{33:[1,210]},r(a,[2,27]),r(a,[2,32]),r(a,[2,28]),r(a,[2,33]),r(a,[2,34]),r(a,[2,35]),{33:[1,211]},{33:[1,212]},{33:[1,213]},{39:214,43:f,44:k,45:g},{33:[1,215]},{39:216,43:f,44:k,45:g},{33:[1,217]},{33:[1,218]},{33:[1,219]},{33:[1,220]},{33:[1,221]},{33:[1,222]},{33:[1,223]},{39:224,43:f,44:k,45:g},{33:[1,225]},{33:[1,226]},{33:[1,227]},{39:228,43:f,44:k,45:g},{33:[1,229]},{39:230,43:f,44:k,45:g},{33:[1,231]},{33:[1,232]},{33:[1,233]},{39:234,43:f,44:k,45:g},r(a,[2,46]),r(a,[2,48]),r(a,[2,47]),r(a,[2,49]),r(a,[2,51]),r(a,[2,50]),r(a,[2,107]),r(a,[2,108]),r(a,[2,105]),r(a,[2,106]),r(a,[2,110]),r(a,[2,109]),r(a,[2,114]),r(a,[2,113]),r(a,[2,112]),r(a,[2,111]),r(a,[2,116]),r(a,[2,115]),r(a,[2,104]),r(a,[2,103]),r(a,[2,102]),r(a,[2,101]),r(a,[2,99]),r(a,[2,100]),r(a,[2,98]),r(a,[2,97]),r(a,[2,96]),r(a,[2,95]),r(a,[2,93]),r(a,[2,94])],defaultActions:{7:[2,1],13:[2,2],18:[2,3],36:[2,4]},parseError:function(o,u){if(u.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=u,d}},parse:function(o){var u=this,d=[0],s=[],T=[null],t=[],X=this.table,e="",rt=0,ft=0,wt=2,pt=1,Lt=t.slice.call(arguments,1),O=Object.create(this.lexer),F={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(F.yy[ct]=this.yy[ct]);O.setInput(o,F.yy),F.yy.lexer=O,F.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var ot=O.yylloc;t.push(ot);var Rt=O.options&&O.options.ranges;typeof F.yy.parseError=="function"?this.parseError=F.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(){var q;return q=s.pop()||O.lex()||pt,typeof q!="number"&&(q instanceof Array&&(s=q,q=s.pop()),q=u.symbols_[q]||q),q}for(var N,K,V,lt,J={},it,j,bt,st;;){if(K=d[d.length-1],this.defaultActions[K]?V=this.defaultActions[K]:((N===null||typeof N>"u")&&(N=Mt()),V=X[K]&&X[K][N]),typeof V>"u"||!V.length||!V[0]){var ht="";st=[];for(it in X[K])this.terminals_[it]&&it>wt&&st.push("'"+this.terminals_[it]+"'");O.showPosition?ht="Parse error on line "+(rt+1)+`:
`+O.showPosition()+`
Expecting `+st.join(", ")+", got '"+(this.terminals_[N]||N)+"'":ht="Parse error on line "+(rt+1)+": Unexpected "+(N==pt?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(ht,{text:O.match,token:this.terminals_[N]||N,line:O.yylineno,loc:ot,expected:st})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+N);switch(V[0]){case 1:d.push(N),T.push(O.yytext),t.push(O.yylloc),d.push(V[1]),N=null,ft=O.yyleng,e=O.yytext,rt=O.yylineno,ot=O.yylloc;break;case 2:if(j=this.productions_[V[1]][1],J.$=T[T.length-j],J._$={first_line:t[t.length-(j||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(j||1)].first_column,last_column:t[t.length-1].last_column},Rt&&(J._$.range=[t[t.length-(j||1)].range[0],t[t.length-1].range[1]]),lt=this.performAction.apply(J,[e,ft,rt,F.yy,V[1],T,t].concat(Lt)),typeof lt<"u")return lt;j&&(d=d.slice(0,-1*j*2),T=T.slice(0,-1*j),t=t.slice(0,-1*j)),d.push(this.productions_[V[1]][0]),T.push(J.$),t.push(J._$),bt=X[d[d.length-2]][d[d.length-1]],d.push(bt);break;case 3:return!0}}return!0}},M=function(){var I={EOF:1,parseError:function(u,d){if(this.yy.parser)this.yy.parser.parseError(u,d);else throw new Error(u)},setInput:function(o,u){return this.yy=u||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var u=o.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var u=o.length,d=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===s.length?this.yylloc.first_column:0)+s[s.length-d.length].length-d[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),u=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
`+u+"^"},test_match:function(o,u){var d,s,T;if(this.options.backtrack_lexer&&(T={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(T.yylloc.range=this.yylloc.range.slice(0))),s=o[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],d=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var t in T)this[t]=T[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,u,d,s;this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),t=0;t<T.length;t++)if(d=this._input.match(this.rules[T[t]]),d&&(!u||d[0].length>u[0].length)){if(u=d,s=t,this.options.backtrack_lexer){if(o=this.test_match(d,T[t]),o!==!1)return o;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(o=this.test_match(u,T[s]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var u=this.next();return u||this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){var u=this.conditionStack.length-1;return u>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},pushState:function(u){this.begin(u)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(u,d,s,T){switch(s){case 0:return this.begin("acc_title"),19;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),21;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 13;case 8:break;case 9:break;case 10:return 5;case 11:return 40;case 12:return 32;case 13:return 38;case 14:return 42;case 15:return 43;case 16:return 44;case 17:return 45;case 18:return 35;case 19:return 28;case 20:return 29;case 21:return 37;case 22:return 31;case 23:return 34;case 24:return 26;case 25:return 9;case 26:return 9;case 27:return 8;case 28:return"CARET";case 29:this.begin("options");break;case 30:this.popState();break;case 31:return 12;case 32:return 36;case 33:this.begin("string");break;case 34:this.popState();break;case 35:return 33;case 36:return 30;case 37:return 46;case 38:return 7}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:parent:)/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},options:{rules:[30,31],inclusive:!1},string:{rules:[34,35],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,36,37,38,39],inclusive:!0}}};return I}();z.lexer=M;function S(){this.yy={}}return S.prototype=z,z.Parser=S,new S}();mt.parser=mt;const Vt=mt;let at=C().gitGraph.mainBranchName,Dt=C().gitGraph.mainBranchOrder,v={},A=null,tt={};tt[at]={name:at,order:Dt};let L={};L[at]=A;let G=at,kt="LR",W=0;function ut(){return Bt({length:7})}function zt(r,n){const l=Object.create(null);return r.reduce((h,i)=>{const c=n(i);return l[c]||(l[c]=!0,h.push(i)),h},[])}const jt=function(r){kt=r};let xt={};const qt=function(r){B.debug("options str",r),r=r&&r.trim(),r=r||"{}";try{xt=JSON.parse(r)}catch(n){B.error("error while parsing gitGraph options",n.message)}},Yt=function(){return xt},Ft=function(r,n,l,h){B.debug("Entering commit:",r,n,l,h),n=D.sanitizeText(n,C()),r=D.sanitizeText(r,C()),h=D.sanitizeText(h,C());const i={id:n||W+"-"+ut(),message:r,seq:W++,type:l||Q.NORMAL,tag:h||"",parents:A==null?[]:[A.id],branch:G};A=i,v[i.id]=i,L[G]=i.id,B.debug("in pushCommit "+i.id)},Kt=function(r,n){if(r=D.sanitizeText(r,C()),L[r]===void 0)L[r]=A!=null?A.id:null,tt[r]={name:r,order:n?parseInt(n,10):null},yt(r),B.debug("in createBranch");else{let l=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+r+'")');throw l.hash={text:"branch "+r,token:"branch "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+r+'"']},l}},Ut=function(r,n,l,h){r=D.sanitizeText(r,C()),n=D.sanitizeText(n,C());const i=v[L[G]],c=v[L[r]];if(G===r){let m=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},m}else if(i===void 0||!i){let m=new Error('Incorrect usage of "merge". Current branch ('+G+")has no commits");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},m}else if(L[r]===void 0){let m=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+r]},m}else if(c===void 0||!c){let m=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},m}else if(i===c){let m=new Error('Incorrect usage of "merge". Both branches have same head');throw m.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},m}else if(n&&v[n]!==void 0){let m=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom Id");throw m.hash={text:"merge "+r+n+l+h,token:"merge "+r+n+l+h,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+r+" "+n+"_UNIQUE "+l+" "+h]},m}const p={id:n||W+"-"+ut(),message:"merged branch "+r+" into "+G,seq:W++,parents:[A==null?null:A.id,L[r]],branch:G,type:Q.MERGE,customType:l,customId:!!n,tag:h||""};A=p,v[p.id]=p,L[G]=p.id,B.debug(L),B.debug("in mergeBranch")},Wt=function(r,n,l,h){if(B.debug("Entering cherryPick:",r,n,l),r=D.sanitizeText(r,C()),n=D.sanitizeText(n,C()),l=D.sanitizeText(l,C()),h=D.sanitizeText(h,C()),!r||v[r]===void 0){let p=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw p.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},p}let i=v[r],c=i.branch;if(h&&!(Array.isArray(i.parents)&&i.parents.includes(h)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");if(i.type===Q.MERGE&&!h)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||v[n]===void 0){if(c===G){let x=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw x.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},x}const p=v[L[G]];if(p===void 0||!p){let x=new Error('Incorrect usage of "cherry-pick". Current branch ('+G+")has no commits");throw x.hash={text:"cherryPick "+r+" "+n,token:"cherryPick "+r+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},x}const m={id:W+"-"+ut(),message:"cherry-picked "+i+" into "+G,seq:W++,parents:[A==null?null:A.id,i.id],branch:G,type:Q.CHERRY_PICK,tag:l??`cherry-pick:${i.id}${i.type===Q.MERGE?`|parent:${h}`:""}`};A=m,v[m.id]=m,L[G]=m.id,B.debug(L),B.debug("in cherryPick")}},yt=function(r){if(r=D.sanitizeText(r,C()),L[r]===void 0){let n=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+r+'")');throw n.hash={text:"checkout "+r,token:"checkout "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+r+'"']},n}else{G=r;const n=L[G];A=v[n]}};function gt(r,n,l){const h=r.indexOf(n);h===-1?r.push(l):r.splice(h,1,l)}function _t(r){const n=r.reduce((i,c)=>i.seq>c.seq?i:c,r[0]);let l="";r.forEach(function(i){i===n?l+=" *":l+=" |"});const h=[l,n.id,n.seq];for(let i in L)L[i]===n.id&&h.push(i);if(B.debug(h.join(" ")),n.parents&&n.parents.length==2){const i=v[n.parents[0]];gt(r,n,i),r.push(v[n.parents[1]])}else{if(n.parents.length==0)return;{const i=v[n.parents];gt(r,n,i)}}r=zt(r,i=>i.id),_t(r)}const Jt=function(){B.debug(v);const r=Et()[0];_t([r])},Qt=function(){v={},A=null;let r=C().gitGraph.mainBranchName,n=C().gitGraph.mainBranchOrder;L={},L[r]=null,tt={},tt[r]={name:r,order:n},G=r,W=0,St()},Xt=function(){return Object.values(tt).map((n,l)=>n.order!==null?n:{...n,order:parseFloat(`0.${l}`,10)}).sort((n,l)=>n.order-l.order).map(({name:n})=>({name:n}))},Zt=function(){return L},$t=function(){return v},Et=function(){const r=Object.keys(v).map(function(n){return v[n]});return r.forEach(function(n){B.debug(n.id)}),r.sort((n,l)=>n.seq-l.seq),r},te=function(){return G},ee=function(){return kt},re=function(){return A},Q={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ie={getConfig:()=>C().gitGraph,setDirection:jt,setOptions:qt,getOptions:Yt,commit:Ft,branch:Kt,merge:Ut,cherryPick:Wt,checkout:yt,prettyPrint:Jt,clear:Qt,getBranchesAsObjArray:Xt,getBranches:Zt,getCommits:$t,getCommitsArray:Et,getCurrentBranch:te,getDirection:ee,getHead:re,setAccTitle:vt,getAccTitle:Ct,getAccDescription:Ot,setAccDescription:Pt,setDiagramTitle:Gt,getDiagramTitle:It,commitType:Q};let Z={};const P={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},U=8;let H={},Y={},nt=[],et=0,w="LR";const se=()=>{H={},Y={},Z={},et=0,nt=[],w="LR"},Tt=r=>{const n=document.createElementNS("http://www.w3.org/2000/svg","text");let l=[];typeof r=="string"?l=r.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(r)?l=r:l=[];for(const h of l){const i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=h.trim(),n.appendChild(i)}return n},ae=r=>{let n="",l=0;return r.forEach(h=>{const i=w==="TB"?Y[h].y:Y[h].x;i>=l&&(n=h,l=i)}),n||void 0},dt=(r,n,l)=>{const h=C().gitGraph,i=r.append("g").attr("class","commit-bullets"),c=r.append("g").attr("class","commit-labels");let p=0;w==="TB"&&(p=30);const x=Object.keys(n).sort((_,b)=>n[_].seq-n[b].seq),y=h.parallelCommits,a=10,R=40;x.forEach(_=>{const b=n[_];if(y)if(b.parents.length){const E=ae(b.parents);p=w==="TB"?Y[E].y+R:Y[E].x+R}else p=0,w==="TB"&&(p=30);const f=p+a,k=w==="TB"?f:H[b.branch].pos,g=w==="TB"?H[b.branch].pos:f;if(l){let E,z=b.customType!==void 0&&b.customType!==""?b.customType:b.type;switch(z){case P.NORMAL:E="commit-normal";break;case P.REVERSE:E="commit-reverse";break;case P.HIGHLIGHT:E="commit-highlight";break;case P.MERGE:E="commit-merge";break;case P.CHERRY_PICK:E="commit-cherry-pick";break;default:E="commit-normal"}if(z===P.HIGHLIGHT){const M=i.append("rect");M.attr("x",g-10),M.attr("y",k-10),M.attr("height",20),M.attr("width",20),M.attr("class",`commit ${b.id} commit-highlight${H[b.branch].index%U} ${E}-outer`),i.append("rect").attr("x",g-6).attr("y",k-6).attr("height",12).attr("width",12).attr("class",`commit ${b.id} commit${H[b.branch].index%U} ${E}-inner`)}else if(z===P.CHERRY_PICK)i.append("circle").attr("cx",g).attr("cy",k).attr("r",10).attr("class",`commit ${b.id} ${E}`),i.append("circle").attr("cx",g-3).attr("cy",k+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${b.id} ${E}`),i.append("circle").attr("cx",g+3).attr("cy",k+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${b.id} ${E}`),i.append("line").attr("x1",g+3).attr("y1",k+1).attr("x2",g).attr("y2",k-5).attr("stroke","#fff").attr("class",`commit ${b.id} ${E}`),i.append("line").attr("x1",g-3).attr("y1",k+1).attr("x2",g).attr("y2",k-5).attr("stroke","#fff").attr("class",`commit ${b.id} ${E}`);else{const M=i.append("circle");if(M.attr("cx",g),M.attr("cy",k),M.attr("r",b.type===P.MERGE?9:10),M.attr("class",`commit ${b.id} commit${H[b.branch].index%U}`),z===P.MERGE){const S=i.append("circle");S.attr("cx",g),S.attr("cy",k),S.attr("r",6),S.attr("class",`commit ${E} ${b.id} commit${H[b.branch].index%U}`)}z===P.REVERSE&&i.append("path").attr("d",`M ${g-5},${k-5}L${g+5},${k+5}M${g-5},${k+5}L${g+5},${k-5}`).attr("class",`commit ${E} ${b.id} commit${H[b.branch].index%U}`)}}if(w==="TB"?Y[b.id]={x:g,y:f}:Y[b.id]={x:f,y:k},l){if(b.type!==P.CHERRY_PICK&&(b.customId&&b.type===P.MERGE||b.type!==P.MERGE)&&h.showCommitLabel){const M=c.append("g"),S=M.insert("rect").attr("class","commit-label-bkg"),I=M.append("text").attr("x",p).attr("y",k+25).attr("class","commit-label").text(b.id);let o=I.node().getBBox();if(S.attr("x",f-o.width/2-2).attr("y",k+13.5).attr("width",o.width+2*2).attr("height",o.height+2*2),w==="TB"&&(S.attr("x",g-(o.width+4*4+5)).attr("y",k-12),I.attr("x",g-(o.width+4*4)).attr("y",k+o.height-12)),w!=="TB"&&I.attr("x",f-o.width/2),h.rotateCommitLabel)if(w==="TB")I.attr("transform","rotate(-45, "+g+", "+k+")"),S.attr("transform","rotate(-45, "+g+", "+k+")");else{let u=-7.5-(o.width+10)/25*9.5,d=10+o.width/25*8.5;M.attr("transform","translate("+u+", "+d+") rotate(-45, "+p+", "+k+")")}}if(b.tag){const M=c.insert("polygon"),S=c.append("circle"),I=c.append("text").attr("y",k-16).attr("class","tag-label").text(b.tag);let o=I.node().getBBox();I.attr("x",f-o.width/2);const u=o.height/2,d=k-19.2;M.attr("class","tag-label-bkg").attr("points",`
${p-o.width/2-4/2},${d+2}
${p-o.width/2-4/2},${d-2}
${f-o.width/2-4},${d-u-2}
${f+o.width/2+4},${d-u-2}
${f+o.width/2+4},${d+u+2}
${f-o.width/2-4},${d+u+2}`),S.attr("cx",p-o.width/2+4/2).attr("cy",d).attr("r",1.5).attr("class","tag-hole"),w==="TB"&&(M.attr("class","tag-label-bkg").attr("points",`
${g},${p+2}
${g},${p-2}
${g+a},${p-u-2}
${g+a+o.width+4},${p-u-2}
${g+a+o.width+4},${p+u+2}
${g+a},${p+u+2}`).attr("transform","translate(12,12) rotate(45, "+g+","+p+")"),S.attr("cx",g+4/2).attr("cy",p).attr("transform","translate(12,12) rotate(45, "+g+","+p+")"),I.attr("x",g+5).attr("y",p+3).attr("transform","translate(14,14) rotate(45, "+g+","+p+")"))}}p+=R+a,p>et&&(et=p)})},ne=(r,n,l,h,i)=>{const p=(w==="TB"?l.x<h.x:l.y<h.y)?n.branch:r.branch,m=y=>y.branch===p,x=y=>y.seq>r.seq&&y.seq<n.seq;return Object.values(i).some(y=>x(y)&&m(y))},$=(r,n,l=0)=>{const h=r+Math.abs(r-n)/2;if(l>5)return h;if(nt.every(p=>Math.abs(p-h)>=10))return nt.push(h),h;const c=Math.abs(r-n);return $(r,n-c/5,l+1)},ce=(r,n,l,h)=>{const i=Y[n.id],c=Y[l.id],p=ne(n,l,i,c,h);let m="",x="",y=0,a=0,R=H[l.branch].index;l.type===P.MERGE&&n.id!==l.parents[0]&&(R=H[n.branch].index);let _;if(p){m="A 10 10, 0, 0, 0,",x="A 10 10, 0, 0, 1,",y=10,a=10;const b=i.y<c.y?$(i.y,c.y):$(c.y,i.y),f=i.x<c.x?$(i.x,c.x):$(c.x,i.x);w==="TB"?i.x<c.x?_=`M ${i.x} ${i.y} L ${f-y} ${i.y} ${x} ${f} ${i.y+a} L ${f} ${c.y-y} ${m} ${f+a} ${c.y} L ${c.x} ${c.y}`:(R=H[n.branch].index,_=`M ${i.x} ${i.y} L ${f+y} ${i.y} ${m} ${f} ${i.y+a} L ${f} ${c.y-y} ${x} ${f-a} ${c.y} L ${c.x} ${c.y}`):i.y<c.y?_=`M ${i.x} ${i.y} L ${i.x} ${b-y} ${m} ${i.x+a} ${b} L ${c.x-y} ${b} ${x} ${c.x} ${b+a} L ${c.x} ${c.y}`:(R=H[n.branch].index,_=`M ${i.x} ${i.y} L ${i.x} ${b+y} ${x} ${i.x+a} ${b} L ${c.x-y} ${b} ${m} ${c.x} ${b-a} L ${c.x} ${c.y}`)}else m="A 20 20, 0, 0, 0,",x="A 20 20, 0, 0, 1,",y=20,a=20,w==="TB"?(i.x<c.x&&(l.type===P.MERGE&&n.id!==l.parents[0]?_=`M ${i.x} ${i.y} L ${i.x} ${c.y-y} ${m} ${i.x+a} ${c.y} L ${c.x} ${c.y}`:_=`M ${i.x} ${i.y} L ${c.x-y} ${i.y} ${x} ${c.x} ${i.y+a} L ${c.x} ${c.y}`),i.x>c.x&&(m="A 20 20, 0, 0, 0,",x="A 20 20, 0, 0, 1,",y=20,a=20,l.type===P.MERGE&&n.id!==l.parents[0]?_=`M ${i.x} ${i.y} L ${i.x} ${c.y-y} ${x} ${i.x-a} ${c.y} L ${c.x} ${c.y}`:_=`M ${i.x} ${i.y} L ${c.x+y} ${i.y} ${m} ${c.x} ${i.y+a} L ${c.x} ${c.y}`),i.x===c.x&&(_=`M ${i.x} ${i.y} L ${c.x} ${c.y}`)):(i.y<c.y&&(l.type===P.MERGE&&n.id!==l.parents[0]?_=`M ${i.x} ${i.y} L ${c.x-y} ${i.y} ${x} ${c.x} ${i.y+a} L ${c.x} ${c.y}`:_=`M ${i.x} ${i.y} L ${i.x} ${c.y-y} ${m} ${i.x+a} ${c.y} L ${c.x} ${c.y}`),i.y>c.y&&(l.type===P.MERGE&&n.id!==l.parents[0]?_=`M ${i.x} ${i.y} L ${c.x-y} ${i.y} ${m} ${c.x} ${i.y-a} L ${c.x} ${c.y}`:_=`M ${i.x} ${i.y} L ${i.x} ${c.y+y} ${x} ${i.x+a} ${c.y} L ${c.x} ${c.y}`),i.y===c.y&&(_=`M ${i.x} ${i.y} L ${c.x} ${c.y}`));r.append("path").attr("d",_).attr("class","arrow arrow"+R%U)},oe=(r,n)=>{const l=r.append("g").attr("class","commit-arrows");Object.keys(n).forEach(h=>{const i=n[h];i.parents&&i.parents.length>0&&i.parents.forEach(c=>{ce(l,n[c],i,n)})})},le=(r,n)=>{const l=C().gitGraph,h=r.append("g");n.forEach((i,c)=>{const p=c%U,m=H[i.name].pos,x=h.append("line");x.attr("x1",0),x.attr("y1",m),x.attr("x2",et),x.attr("y2",m),x.attr("class","branch branch"+p),w==="TB"&&(x.attr("y1",30),x.attr("x1",m),x.attr("y2",et),x.attr("x2",m)),nt.push(m);let y=i.name;const a=Tt(y),R=h.insert("rect"),b=h.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+p);b.node().appendChild(a);let f=a.getBBox();R.attr("class","branchLabelBkg label"+p).attr("rx",4).attr("ry",4).attr("x",-f.width-4-(l.rotateCommitLabel===!0?30:0)).attr("y",-f.height/2+8).attr("width",f.width+18).attr("height",f.height+4),b.attr("transform","translate("+(-f.width-14-(l.rotateCommitLabel===!0?30:0))+", "+(m-f.height/2-1)+")"),w==="TB"&&(R.attr("x",m-f.width/2-10).attr("y",0),b.attr("transform","translate("+(m-f.width/2-5)+", 0)")),w!=="TB"&&R.attr("transform","translate(-19, "+(m-f.height/2)+")")})},he=function(r,n,l,h){se();const i=C(),c=i.gitGraph;B.debug("in gitgraph renderer",r+`
`,"id:",n,l),Z=h.db.getCommits();const p=h.db.getBranchesAsObjArray();w=h.db.getDirection();const m=At(`[id="${n}"]`);let x=0;p.forEach((y,a)=>{const R=Tt(y.name),_=m.append("g"),b=_.insert("g").attr("class","branchLabel"),f=b.insert("g").attr("class","label branch-label");f.node().appendChild(R);let k=R.getBBox();H[y.name]={pos:x,index:a},x+=50+(c.rotateCommitLabel?40:0)+(w==="TB"?k.width/2:0),f.remove(),b.remove(),_.remove()}),dt(m,Z,!1),c.showBranches&&le(m,p),oe(m,Z),dt(m,Z,!0),Nt.insertTitle(m,"gitTitleText",c.titleTopMargin,h.db.getDiagramTitle()),Ht(void 0,m,c.diagramPadding,c.useMaxWidth??i.useMaxWidth)},me={draw:he},ue=r=>`
.commit-id,
.commit-msg,
.branch-label {
fill: lightgrey;
color: lightgrey;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
${[0,1,2,3,4,5,6,7].map(n=>`
.branch-label${n} { fill: ${r["gitBranchLabel"+n]}; }
.commit${n} { stroke: ${r["git"+n]}; fill: ${r["git"+n]}; }
.commit-highlight${n} { stroke: ${r["gitInv"+n]}; fill: ${r["gitInv"+n]}; }
.label${n} { fill: ${r["git"+n]}; }
.arrow${n} { stroke: ${r["git"+n]}; }
`).join(`
`)}
.branch {
stroke-width: 1;
stroke: ${r.lineColor};
stroke-dasharray: 2;
}
.commit-label { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelColor};}
.commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelBackground}; opacity: 0.5; }
.tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};}
.tag-label-bkg { fill: ${r.tagLabelBackground}; stroke: ${r.tagLabelBorder}; }
.tag-hole { fill: ${r.textColor}; }
.commit-merge {
stroke: ${r.primaryColor};
fill: ${r.primaryColor};
}
.commit-reverse {
stroke: ${r.primaryColor};
fill: ${r.primaryColor};
stroke-width: 3;
}
.commit-highlight-outer {
}
.commit-highlight-inner {
stroke: ${r.primaryColor};
fill: ${r.primaryColor};
}
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
.gitTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${r.textColor};
}
`,fe=ue,xe={parser:Vt,db:ie,renderer:me,styles:fe};export{xe as diagram};
import{J as Be,K as Ze,R as Xe,L as qe,M as ye,N as nt,O as ke,c as wt,s as Dn,g as Mn,C as Sn,D as _n,b as Un,a as Yn,P as Fn,E as Ln,m as En,l as qt,h as zt,i as An,j as In,v as Wn,Q as Kt,T as On}from"./slidev/Mermaid-sWhOKcCj.js";import{l as Hn,c as Nn,a as Vn,b as Pn,t as Ue}from"./linear-d94cf28d-BOPJ1JvI.js";import{i as zn}from"./init-cc95ec8e-Gi6I4Gst.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";function Rn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Zn(t){return t}var Bt=1,te=2,ue=3,Rt=4,Ye=1e-6;function Xn(t){return"translate("+t+",0)"}function qn(t){return"translate(0,"+t+")"}function Gn(t){return e=>+t(e)}function jn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Qn(){return!this.__axis}function Ge(t,e){var n=[],r=null,i=null,s=6,a=6,k=3,Y=typeof window<"u"&&window.devicePixelRatio>1?0:.5,g=t===Bt||t===Rt?-1:1,b=t===Rt||t===te?"x":"y",U=t===Bt||t===ue?Xn:qn;function C(v){var q=r??(e.ticks?e.ticks.apply(e,n):e.domain()),y=i??(e.tickFormat?e.tickFormat.apply(e,n):Zn),L=Math.max(s,0)+k,O=e.range(),W=+O[0]+Y,B=+O[O.length-1]+Y,Z=(e.bandwidth?jn:Gn)(e.copy(),Y),Q=v.selection?v.selection():v,x=Q.selectAll(".domain").data([null]),A=Q.selectAll(".tick").data(q,e).order(),T=A.exit(),F=A.enter().append("g").attr("class","tick"),D=A.select("line"),w=A.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(F),D=D.merge(F.append("line").attr("stroke","currentColor").attr(b+"2",g*s)),w=w.merge(F.append("text").attr("fill","currentColor").attr(b,g*L).attr("dy",t===Bt?"0em":t===ue?"0.71em":"0.32em")),v!==Q&&(x=x.transition(v),A=A.transition(v),D=D.transition(v),w=w.transition(v),T=T.transition(v).attr("opacity",Ye).attr("transform",function(o){return isFinite(o=Z(o))?U(o+Y):this.getAttribute("transform")}),F.attr("opacity",Ye).attr("transform",function(o){var d=this.parentNode.__axis;return U((d&&isFinite(d=d(o))?d:Z(o))+Y)})),T.remove(),x.attr("d",t===Rt||t===te?a?"M"+g*a+","+W+"H"+Y+"V"+B+"H"+g*a:"M"+Y+","+W+"V"+B:a?"M"+W+","+g*a+"V"+Y+"H"+B+"V"+g*a:"M"+W+","+Y+"H"+B),A.attr("opacity",1).attr("transform",function(o){return U(Z(o)+Y)}),D.attr(b+"2",g*s),w.attr(b,g*L).text(y),Q.filter(Qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===Rt?"end":"middle"),Q.each(function(){this.__axis=Z})}return C.scale=function(v){return arguments.length?(e=v,C):e},C.ticks=function(){return n=Array.from(arguments),C},C.tickArguments=function(v){return arguments.length?(n=v==null?[]:Array.from(v),C):n.slice()},C.tickValues=function(v){return arguments.length?(r=v==null?null:Array.from(v),C):r&&r.slice()},C.tickFormat=function(v){return arguments.length?(i=v,C):i},C.tickSize=function(v){return arguments.length?(s=a=+v,C):s},C.tickSizeInner=function(v){return arguments.length?(s=+v,C):s},C.tickSizeOuter=function(v){return arguments.length?(a=+v,C):a},C.tickPadding=function(v){return arguments.length?(k=+v,C):k},C.offset=function(v){return arguments.length?(Y=+v,C):Y},C}function Jn(t){return Ge(Bt,t)}function $n(t){return Ge(ue,t)}const Kn=Math.PI/180,tr=180/Math.PI,Gt=18,je=.96422,Qe=1,Je=.82521,$e=4/29,Ct=6/29,Ke=3*Ct*Ct,er=Ct*Ct*Ct;function tn(t){if(t instanceof ot)return new ot(t.l,t.a,t.b,t.opacity);if(t instanceof ut)return en(t);t instanceof Xe||(t=Fn(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/Qe),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/je),a=ee((.0139322*e+.0971045*n+.7141733*r)/Je)),new ot(116*i-16,500*(s-i),200*(i-a),t.opacity)}function nr(t,e,n,r){return arguments.length===1?tn(t):new ot(t,e,n,r??1)}function ot(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Be(ot,nr,Ze(qe,{brighter(t){return new ot(this.l+Gt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ot(this.l-Gt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=je*ne(e),t=Qe*ne(t),n=Je*ne(n),new Xe(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>er?Math.pow(t,1/3):t/Ke+$e}function ne(t){return t>Ct?t*t*t:Ke*(t-$e)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function rr(t){if(t instanceof ut)return new ut(t.h,t.c,t.l,t.opacity);if(t instanceof ot||(t=tn(t)),t.a===0&&t.b===0)return new ut(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*tr;return new ut(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function fe(t,e,n,r){return arguments.length===1?rr(t):new ut(t,e,n,r??1)}function ut(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function en(t){if(isNaN(t.h))return new ot(t.l,0,0,t.opacity);var e=t.h*Kn;return new ot(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Be(ut,fe,Ze(qe,{brighter(t){return new ut(this.h,this.c,this.l+Gt*(t??1),this.opacity)},darker(t){return new ut(this.h,this.c,this.l-Gt*(t??1),this.opacity)},rgb(){return en(this).rgb()}}));function ir(t){return function(e,n){var r=t((e=fe(e)).h,(n=fe(n)).h),i=Kt(e.c,n.c),s=Kt(e.l,n.l),a=Kt(e.opacity,n.opacity);return function(k){return e.h=r(k),e.c=i(k),e.l=s(k),e.opacity=a(k),e+""}}}const sr=ir(On);function ar(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],s=t[r],a;return s<i&&(a=n,n=r,r=a,a=i,i=s,s=a),t[n]=e.floor(i),t[r]=e.ceil(s),t}const se=new Date,ae=new Date;function K(t,e,n,r){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),k=i.ceil(s);return s-a<k-s?a:k},i.offset=(s,a)=>(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,k)=>{const Y=[];if(s=i.ceil(s),k=k==null?1:Math.floor(k),!(s<a)||!(k>0))return Y;let g;do Y.push(g=new Date(+s)),e(s,k),t(s);while(g<s&&s<a);return Y},i.filter=s=>K(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,k)=>{if(a>=a)if(k<0)for(;++k<=0;)for(;e(a,-1),!s(a););else for(;--k>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Mt=K(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Mt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?K(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Mt);Mt.range;const ft=1e3,rt=ft*60,ht=rt*60,dt=ht*24,pe=dt*7,Fe=dt*30,oe=dt*365,gt=K(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ft)},(t,e)=>(e-t)/ft,t=>t.getUTCSeconds());gt.range;const Et=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ft)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());Et.range;const or=K(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());or.range;const At=K(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ft-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getHours());At.range;const cr=K(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getUTCHours());cr.range;const yt=K(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/dt,t=>t.getDate()-1);yt.range;const Te=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>t.getUTCDate()-1);Te.range;const lr=K(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>Math.floor(t/dt));lr.range;function Tt(t){return K(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/pe)}const Ot=Tt(0),It=Tt(1),nn=Tt(2),rn=Tt(3),kt=Tt(4),sn=Tt(5),an=Tt(6);Ot.range;It.range;nn.range;rn.range;kt.range;sn.range;an.range;function vt(t){return K(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/pe)}const on=vt(0),jt=vt(1),ur=vt(2),fr=vt(3),St=vt(4),hr=vt(5),dr=vt(6);on.range;jt.range;ur.range;fr.range;St.range;hr.range;dr.range;const Wt=K(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Wt.range;const mr=K(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());mr.range;const mt=K(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());mt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:K(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});mt.range;const pt=K(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:K(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});pt.range;function gr(t,e,n,r,i,s){const a=[[gt,1,ft],[gt,5,5*ft],[gt,15,15*ft],[gt,30,30*ft],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,ht],[i,3,3*ht],[i,6,6*ht],[i,12,12*ht],[r,1,dt],[r,2,2*dt],[n,1,pe],[e,1,Fe],[e,3,3*Fe],[t,1,oe]];function k(g,b,U){const C=b<g;C&&([g,b]=[b,g]);const v=U&&typeof U.range=="function"?U:Y(g,b,U),q=v?v.range(g,+b+1):[];return C?q.reverse():q}function Y(g,b,U){const C=Math.abs(b-g)/U,v=Pn(([,,L])=>L).right(a,C);if(v===a.length)return t.every(Ue(g/oe,b/oe,U));if(v===0)return Mt.every(Math.max(Ue(g,b,U),1));const[q,y]=a[C/a[v-1][2]<a[v][2]/C?v-1:v];return q.every(y)}return[k,Y]}const[yr,kr]=gr(mt,Wt,Ot,yt,At,Et);function ce(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function le(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Yt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function pr(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,a=t.shortDays,k=t.months,Y=t.shortMonths,g=Ft(i),b=Lt(i),U=Ft(s),C=Lt(s),v=Ft(a),q=Lt(a),y=Ft(k),L=Lt(k),O=Ft(Y),W=Lt(Y),B={a:c,A:X,b:f,B:h,c:null,d:Oe,e:Oe,f:Pr,g:Jr,G:Kr,H:Hr,I:Nr,j:Vr,L:cn,m:zr,M:Rr,p:_,q:G,Q:Ve,s:Pe,S:Br,u:Zr,U:Xr,V:qr,w:Gr,W:jr,x:null,X:null,y:Qr,Y:$r,Z:ti,"%":Ne},Z={a:H,A:V,b:I,B:P,c:null,d:He,e:He,f:ii,g:mi,G:yi,H:ei,I:ni,j:ri,L:un,m:si,M:ai,p:st,q:it,Q:Ve,s:Pe,S:oi,u:ci,U:li,V:ui,w:fi,W:hi,x:null,X:null,y:di,Y:gi,Z:ki,"%":Ne},Q={a:D,A:w,b:o,B:d,c:m,d:Ie,e:Ie,f:Ar,g:Ae,G:Ee,H:We,I:We,j:Yr,L:Er,m:Ur,M:Fr,p:F,q:_r,Q:Wr,s:Or,S:Lr,u:wr,U:Cr,V:Dr,w:xr,W:Mr,x:u,X:S,y:Ae,Y:Ee,Z:Sr,"%":Ir};B.x=x(n,B),B.X=x(r,B),B.c=x(e,B),Z.x=x(n,Z),Z.X=x(r,Z),Z.c=x(e,Z);function x(p,E){return function(M){var l=[],R=-1,N=0,j=p.length,J,et,Ut;for(M instanceof Date||(M=new Date(+M));++R<j;)p.charCodeAt(R)===37&&(l.push(p.slice(N,R)),(et=Le[J=p.charAt(++R)])!=null?J=p.charAt(++R):et=J==="e"?" ":"0",(Ut=E[J])&&(J=Ut(M,et)),l.push(J),N=R+1);return l.push(p.slice(N,R)),l.join("")}}function A(p,E){return function(M){var l=Yt(1900,void 0,1),R=T(l,p,M+="",0),N,j;if(R!=M.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if(E&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(N=le(Yt(l.y,0,1)),j=N.getUTCDay(),N=j>4||j===0?jt.ceil(N):jt(N),N=Te.offset(N,(l.V-1)*7),l.y=N.getUTCFullYear(),l.m=N.getUTCMonth(),l.d=N.getUTCDate()+(l.w+6)%7):(N=ce(Yt(l.y,0,1)),j=N.getDay(),N=j>4||j===0?It.ceil(N):It(N),N=yt.offset(N,(l.V-1)*7),l.y=N.getFullYear(),l.m=N.getMonth(),l.d=N.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),j="Z"in l?le(Yt(l.y,0,1)).getUTCDay():ce(Yt(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(j+5)%7:l.w+l.U*7-(j+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function T(p,E,M,l){for(var R=0,N=E.length,j=M.length,J,et;R<N;){if(l>=j)return-1;if(J=E.charCodeAt(R++),J===37){if(J=E.charAt(R++),et=Q[J in Le?E.charAt(R++):J],!et||(l=et(p,M,l))<0)return-1}else if(J!=M.charCodeAt(l++))return-1}return l}function F(p,E,M){var l=g.exec(E.slice(M));return l?(p.p=b.get(l[0].toLowerCase()),M+l[0].length):-1}function D(p,E,M){var l=v.exec(E.slice(M));return l?(p.w=q.get(l[0].toLowerCase()),M+l[0].length):-1}function w(p,E,M){var l=U.exec(E.slice(M));return l?(p.w=C.get(l[0].toLowerCase()),M+l[0].length):-1}function o(p,E,M){var l=O.exec(E.slice(M));return l?(p.m=W.get(l[0].toLowerCase()),M+l[0].length):-1}function d(p,E,M){var l=y.exec(E.slice(M));return l?(p.m=L.get(l[0].toLowerCase()),M+l[0].length):-1}function m(p,E,M){return T(p,e,E,M)}function u(p,E,M){return T(p,n,E,M)}function S(p,E,M){return T(p,r,E,M)}function c(p){return a[p.getDay()]}function X(p){return s[p.getDay()]}function f(p){return Y[p.getMonth()]}function h(p){return k[p.getMonth()]}function _(p){return i[+(p.getHours()>=12)]}function G(p){return 1+~~(p.getMonth()/3)}function H(p){return a[p.getUTCDay()]}function V(p){return s[p.getUTCDay()]}function I(p){return Y[p.getUTCMonth()]}function P(p){return k[p.getUTCMonth()]}function st(p){return i[+(p.getUTCHours()>=12)]}function it(p){return 1+~~(p.getUTCMonth()/3)}return{format:function(p){var E=x(p+="",B);return E.toString=function(){return p},E},parse:function(p){var E=A(p+="",!1);return E.toString=function(){return p},E},utcFormat:function(p){var E=x(p+="",Z);return E.toString=function(){return p},E},utcParse:function(p){var E=A(p+="",!0);return E.toString=function(){return p},E}}}var Le={"-":"",_:" ",0:"0"},tt=/^\s*\d+/,Tr=/^%/,vr=/[\\^$*+?|[\]().{}]/g;function z(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function br(t){return t.replace(vr,"\\$&")}function Ft(t){return new RegExp("^(?:"+t.map(br).join("|")+")","i")}function Lt(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function xr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function wr(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Dr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Mr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ee(t,e,n){var r=tt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ae(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Sr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _r(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Ur(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ie(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function We(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=tt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ir(t,e,n){var r=Tr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Wr(t,e,n){var r=tt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=tt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Oe(t,e){return z(t.getDate(),e,2)}function Hr(t,e){return z(t.getHours(),e,2)}function Nr(t,e){return z(t.getHours()%12||12,e,2)}function Vr(t,e){return z(1+yt.count(mt(t),t),e,3)}function cn(t,e){return z(t.getMilliseconds(),e,3)}function Pr(t,e){return cn(t,e)+"000"}function zr(t,e){return z(t.getMonth()+1,e,2)}function Rr(t,e){return z(t.getMinutes(),e,2)}function Br(t,e){return z(t.getSeconds(),e,2)}function Zr(t){var e=t.getDay();return e===0?7:e}function Xr(t,e){return z(Ot.count(mt(t)-1,t),e,2)}function ln(t){var e=t.getDay();return e>=4||e===0?kt(t):kt.ceil(t)}function qr(t,e){return t=ln(t),z(kt.count(mt(t),t)+(mt(t).getDay()===4),e,2)}function Gr(t){return t.getDay()}function jr(t,e){return z(It.count(mt(t)-1,t),e,2)}function Qr(t,e){return z(t.getFullYear()%100,e,2)}function Jr(t,e){return t=ln(t),z(t.getFullYear()%100,e,2)}function $r(t,e){return z(t.getFullYear()%1e4,e,4)}function Kr(t,e){var n=t.getDay();return t=n>=4||n===0?kt(t):kt.ceil(t),z(t.getFullYear()%1e4,e,4)}function ti(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+z(e/60|0,"0",2)+z(e%60,"0",2)}function He(t,e){return z(t.getUTCDate(),e,2)}function ei(t,e){return z(t.getUTCHours(),e,2)}function ni(t,e){return z(t.getUTCHours()%12||12,e,2)}function ri(t,e){return z(1+Te.count(pt(t),t),e,3)}function un(t,e){return z(t.getUTCMilliseconds(),e,3)}function ii(t,e){return un(t,e)+"000"}function si(t,e){return z(t.getUTCMonth()+1,e,2)}function ai(t,e){return z(t.getUTCMinutes(),e,2)}function oi(t,e){return z(t.getUTCSeconds(),e,2)}function ci(t){var e=t.getUTCDay();return e===0?7:e}function li(t,e){return z(on.count(pt(t)-1,t),e,2)}function fn(t){var e=t.getUTCDay();return e>=4||e===0?St(t):St.ceil(t)}function ui(t,e){return t=fn(t),z(St.count(pt(t),t)+(pt(t).getUTCDay()===4),e,2)}function fi(t){return t.getUTCDay()}function hi(t,e){return z(jt.count(pt(t)-1,t),e,2)}function di(t,e){return z(t.getUTCFullYear()%100,e,2)}function mi(t,e){return t=fn(t),z(t.getUTCFullYear()%100,e,2)}function gi(t,e){return z(t.getUTCFullYear()%1e4,e,4)}function yi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?St(t):St.ceil(t),z(t.getUTCFullYear()%1e4,e,4)}function ki(){return"+0000"}function Ne(){return"%"}function Ve(t){return+t}function Pe(t){return Math.floor(+t/1e3)}var xt,Qt;pi({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function pi(t){return xt=pr(t),Qt=xt.format,xt.parse,xt.utcFormat,xt.utcParse,xt}function Ti(t){return new Date(t)}function vi(t){return t instanceof Date?+t:+new Date(+t)}function hn(t,e,n,r,i,s,a,k,Y,g){var b=Nn(),U=b.invert,C=b.domain,v=g(".%L"),q=g(":%S"),y=g("%I:%M"),L=g("%I %p"),O=g("%a %d"),W=g("%b %d"),B=g("%B"),Z=g("%Y");function Q(x){return(Y(x)<x?v:k(x)<x?q:a(x)<x?y:s(x)<x?L:r(x)<x?i(x)<x?O:W:n(x)<x?B:Z)(x)}return b.invert=function(x){return new Date(U(x))},b.domain=function(x){return arguments.length?C(Array.from(x,vi)):C().map(Ti)},b.ticks=function(x){var A=C();return t(A[0],A[A.length-1],x??10)},b.tickFormat=function(x,A){return A==null?Q:g(A)},b.nice=function(x){var A=C();return(!x||typeof x.range!="function")&&(x=e(A[0],A[A.length-1],x??10)),x?C(ar(A,x)):b},b.copy=function(){return Vn(b,hn(t,e,n,r,i,s,a,k,Y,g))},b}function bi(){return zn.apply(hn(yr,kr,mt,Wt,Ot,yt,At,Et,gt,Qt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var he=function(){var t=function(w,o,d,m){for(d=d||{},m=w.length;m--;d[w[m]]=o);return d},e=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],n=[1,25],r=[1,26],i=[1,27],s=[1,28],a=[1,29],k=[1,30],Y=[1,31],g=[1,9],b=[1,10],U=[1,11],C=[1,12],v=[1,13],q=[1,14],y=[1,15],L=[1,16],O=[1,18],W=[1,19],B=[1,20],Z=[1,21],Q=[1,22],x=[1,24],A=[1,32],T={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(o,d,m,u,S,c,X){var f=c.length-1;switch(S){case 1:return c[f-1];case 2:this.$=[];break;case 3:c[f-1].push(c[f]),this.$=c[f-1];break;case 4:case 5:this.$=c[f];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setDateFormat(c[f].substr(11)),this.$=c[f].substr(11);break;case 16:u.enableInclusiveEndDates(),this.$=c[f].substr(18);break;case 17:u.TopAxis(),this.$=c[f].substr(8);break;case 18:u.setAxisFormat(c[f].substr(11)),this.$=c[f].substr(11);break;case 19:u.setTickInterval(c[f].substr(13)),this.$=c[f].substr(13);break;case 20:u.setExcludes(c[f].substr(9)),this.$=c[f].substr(9);break;case 21:u.setIncludes(c[f].substr(9)),this.$=c[f].substr(9);break;case 22:u.setTodayMarker(c[f].substr(12)),this.$=c[f].substr(12);break;case 24:u.setDiagramTitle(c[f].substr(6)),this.$=c[f].substr(6);break;case 25:this.$=c[f].trim(),u.setAccTitle(this.$);break;case 26:case 27:this.$=c[f].trim(),u.setAccDescription(this.$);break;case 28:u.addSection(c[f].substr(8)),this.$=c[f].substr(8);break;case 30:u.addTask(c[f-1],c[f]),this.$="task";break;case 31:this.$=c[f-1],u.setClickEvent(c[f-1],c[f],null);break;case 32:this.$=c[f-2],u.setClickEvent(c[f-2],c[f-1],c[f]);break;case 33:this.$=c[f-2],u.setClickEvent(c[f-2],c[f-1],null),u.setLink(c[f-2],c[f]);break;case 34:this.$=c[f-3],u.setClickEvent(c[f-3],c[f-2],c[f-1]),u.setLink(c[f-3],c[f]);break;case 35:this.$=c[f-2],u.setClickEvent(c[f-2],c[f],null),u.setLink(c[f-2],c[f-1]);break;case 36:this.$=c[f-3],u.setClickEvent(c[f-3],c[f-1],c[f]),u.setLink(c[f-3],c[f-2]);break;case 37:this.$=c[f-1],u.setLink(c[f-1],c[f]);break;case 38:case 44:this.$=c[f-1]+" "+c[f];break;case 39:case 40:case 42:this.$=c[f-2]+" "+c[f-1]+" "+c[f];break;case 41:case 43:this.$=c[f-3]+" "+c[f-2]+" "+c[f-1]+" "+c[f];break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:k,18:Y,19:g,20:b,21:U,22:C,23:v,24:q,25:y,26:L,27:O,28:W,30:B,32:Z,33:Q,34:23,35:x,37:A},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:n,13:r,14:i,15:s,16:a,17:k,18:Y,19:g,20:b,21:U,22:C,23:v,24:q,25:y,26:L,27:O,28:W,30:B,32:Z,33:Q,34:23,35:x,37:A},t(e,[2,5]),t(e,[2,6]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),{29:[1,34]},{31:[1,35]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),{36:[1,36]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),{38:[1,37],40:[1,38]},t(e,[2,4]),t(e,[2,25]),t(e,[2,26]),t(e,[2,30]),t(e,[2,31],{39:[1,39],40:[1,40]}),t(e,[2,37],{38:[1,41]}),t(e,[2,32],{40:[1,42]}),t(e,[2,33]),t(e,[2,35],{39:[1,43]}),t(e,[2,34]),t(e,[2,36])],defaultActions:{},parseError:function(o,d){if(d.recoverable)this.trace(o);else{var m=new Error(o);throw m.hash=d,m}},parse:function(o){var d=this,m=[0],u=[],S=[null],c=[],X=this.table,f="",h=0,_=0,G=2,H=1,V=c.slice.call(arguments,1),I=Object.create(this.lexer),P={yy:{}};for(var st in this.yy)Object.prototype.hasOwnProperty.call(this.yy,st)&&(P.yy[st]=this.yy[st]);I.setInput(o,P.yy),P.yy.lexer=I,P.yy.parser=this,typeof I.yylloc>"u"&&(I.yylloc={});var it=I.yylloc;c.push(it);var p=I.options&&I.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function E(){var ct;return ct=u.pop()||I.lex()||H,typeof ct!="number"&&(ct instanceof Array&&(u=ct,ct=u.pop()),ct=d.symbols_[ct]||ct),ct}for(var M,l,R,N,j={},J,et,Ut,Pt;;){if(l=m[m.length-1],this.defaultActions[l]?R=this.defaultActions[l]:((M===null||typeof M>"u")&&(M=E()),R=X[l]&&X[l][M]),typeof R>"u"||!R.length||!R[0]){var $t="";Pt=[];for(J in X[l])this.terminals_[J]&&J>G&&Pt.push("'"+this.terminals_[J]+"'");I.showPosition?$t="Parse error on line "+(h+1)+`:
`+I.showPosition()+`
Expecting `+Pt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":$t="Parse error on line "+(h+1)+": Unexpected "+(M==H?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError($t,{text:I.match,token:this.terminals_[M]||M,line:I.yylineno,loc:it,expected:Pt})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+l+", token: "+M);switch(R[0]){case 1:m.push(M),S.push(I.yytext),c.push(I.yylloc),m.push(R[1]),M=null,_=I.yyleng,f=I.yytext,h=I.yylineno,it=I.yylloc;break;case 2:if(et=this.productions_[R[1]][1],j.$=S[S.length-et],j._$={first_line:c[c.length-(et||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(et||1)].first_column,last_column:c[c.length-1].last_column},p&&(j._$.range=[c[c.length-(et||1)].range[0],c[c.length-1].range[1]]),N=this.performAction.apply(j,[f,_,h,P.yy,R[1],S,c].concat(V)),typeof N<"u")return N;et&&(m=m.slice(0,-1*et*2),S=S.slice(0,-1*et),c=c.slice(0,-1*et)),m.push(this.productions_[R[1]][0]),S.push(j.$),c.push(j._$),Ut=X[m[m.length-2]][m[m.length-1]],m.push(Ut);break;case 3:return!0}}return!0}},F=function(){var w={EOF:1,parseError:function(d,m){if(this.yy.parser)this.yy.parser.parseError(d,m);else throw new Error(d)},setInput:function(o,d){return this.yy=d||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var d=o.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var d=o.length,m=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),d=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
`+d+"^"},test_match:function(o,d){var m,u,S;if(this.options.backtrack_lexer&&(S={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(S.yylloc.range=this.yylloc.range.slice(0))),u=o[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],m=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var c in S)this[c]=S[c];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,d,m,u;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),c=0;c<S.length;c++)if(m=this._input.match(this.rules[S[c]]),m&&(!d||m[0].length>d[0].length)){if(d=m,u=c,this.options.backtrack_lexer){if(o=this.test_match(m,S[c]),o!==!1)return o;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(o=this.test_match(d,S[u]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var d=this.next();return d||this.lex()},begin:function(d){this.conditionStack.push(d)},popState:function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},pushState:function(d){this.begin(d)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(d,m,u,S){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}};return w}();T.lexer=F;function D(){this.yy={}}return D.prototype=T,T.Parser=D,new D}();he.parser=he;const xi=he;var dn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ye,function(){var n="day";return function(r,i,s){var a=function(g){return g.add(4-g.isoWeekday(),n)},k=i.prototype;k.isoWeekYear=function(){return a(this).year()},k.isoWeek=function(g){if(!this.$utils().u(g))return this.add(7*(g-this.isoWeek()),n);var b,U,C,v,q=a(this),y=(b=this.isoWeekYear(),U=this.$u,C=(U?s.utc:s)().year(b).startOf("year"),v=4-C.isoWeekday(),C.isoWeekday()>4&&(v+=7),C.add(v,n));return q.diff(y,"week")+1},k.isoWeekday=function(g){return this.$utils().u(g)?this.day()||7:this.day(this.day()%7?g:g-7)};var Y=k.startOf;k.startOf=function(g,b){var U=this.$utils(),C=!!U.u(b)||b;return U.p(g)==="isoweek"?C?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):Y.bind(this)(g,b)}}})})(dn);var wi=dn.exports;const Ci=ke(wi);var mn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ye,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,k={},Y=function(y){return(y=+y)+(y>68?1900:2e3)},g=function(y){return function(L){this[y]=+L}},b=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(L){if(!L||L==="Z")return 0;var O=L.match(/([+-]|\d\d)/g),W=60*O[1]+(+O[2]||0);return W===0?0:O[0]==="+"?-W:W}(y)}],U=function(y){var L=k[y];return L&&(L.indexOf?L:L.s.concat(L.f))},C=function(y,L){var O,W=k.meridiem;if(W){for(var B=1;B<=24;B+=1)if(y.indexOf(W(B,0,L))>-1){O=B>12;break}}else O=y===(L?"pm":"PM");return O},v={A:[a,function(y){this.afternoon=C(y,!1)}],a:[a,function(y){this.afternoon=C(y,!0)}],S:[/\d/,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[s,g("seconds")],ss:[s,g("seconds")],m:[s,g("minutes")],mm:[s,g("minutes")],H:[s,g("hours")],h:[s,g("hours")],HH:[s,g("hours")],hh:[s,g("hours")],D:[s,g("day")],DD:[i,g("day")],Do:[a,function(y){var L=k.ordinal,O=y.match(/\d+/);if(this.day=O[0],L)for(var W=1;W<=31;W+=1)L(W).replace(/\[|\]/g,"")===y&&(this.day=W)}],M:[s,g("month")],MM:[i,g("month")],MMM:[a,function(y){var L=U("months"),O=(U("monthsShort")||L.map(function(W){return W.slice(0,3)})).indexOf(y)+1;if(O<1)throw new Error;this.month=O%12||O}],MMMM:[a,function(y){var L=U("months").indexOf(y)+1;if(L<1)throw new Error;this.month=L%12||L}],Y:[/[+-]?\d+/,g("year")],YY:[i,function(y){this.year=Y(y)}],YYYY:[/\d{4}/,g("year")],Z:b,ZZ:b};function q(y){var L,O;L=y,O=k&&k.formats;for(var W=(y=L.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(F,D,w){var o=w&&w.toUpperCase();return D||O[w]||n[w]||O[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(d,m,u){return m||u.slice(1)})})).match(r),B=W.length,Z=0;Z<B;Z+=1){var Q=W[Z],x=v[Q],A=x&&x[0],T=x&&x[1];W[Z]=T?{regex:A,parser:T}:Q.replace(/^\[|\]$/g,"")}return function(F){for(var D={},w=0,o=0;w<B;w+=1){var d=W[w];if(typeof d=="string")o+=d.length;else{var m=d.regex,u=d.parser,S=F.slice(o),c=m.exec(S)[0];u.call(D,c),F=F.replace(c,"")}}return function(X){var f=X.afternoon;if(f!==void 0){var h=X.hours;f?h<12&&(X.hours+=12):h===12&&(X.hours=0),delete X.afternoon}}(D),D}}return function(y,L,O){O.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(Y=y.parseTwoDigitYear);var W=L.prototype,B=W.parse;W.parse=function(Z){var Q=Z.date,x=Z.utc,A=Z.args;this.$u=x;var T=A[1];if(typeof T=="string"){var F=A[2]===!0,D=A[3]===!0,w=F||D,o=A[2];D&&(o=A[2]),k=this.$locale(),!F&&o&&(k=O.Ls[o]),this.$d=function(S,c,X){try{if(["x","X"].indexOf(c)>-1)return new Date((c==="X"?1e3:1)*S);var f=q(c)(S),h=f.year,_=f.month,G=f.day,H=f.hours,V=f.minutes,I=f.seconds,P=f.milliseconds,st=f.zone,it=new Date,p=G||(h||_?1:it.getDate()),E=h||it.getFullYear(),M=0;h&&!_||(M=_>0?_-1:it.getMonth());var l=H||0,R=V||0,N=I||0,j=P||0;return st?new Date(Date.UTC(E,M,p,l,R,N,j+60*st.offset*1e3)):X?new Date(Date.UTC(E,M,p,l,R,N,j)):new Date(E,M,p,l,R,N,j)}catch{return new Date("")}}(Q,T,x),this.init(),o&&o!==!0&&(this.$L=this.locale(o).$L),w&&Q!=this.format(T)&&(this.$d=new Date("")),k={}}else if(T instanceof Array)for(var d=T.length,m=1;m<=d;m+=1){A[1]=T[m-1];var u=O.apply(this,A);if(u.isValid()){this.$d=u.$d,this.$L=u.$L,this.init();break}m===d&&(this.$d=new Date(""))}else B.call(this,Z)}}})})(mn);var Di=mn.exports;const Mi=ke(Di);var gn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ye,function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(a){var k=this,Y=this.$locale();if(!this.isValid())return s.bind(this)(a);var g=this.$utils(),b=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(U){switch(U){case"Q":return Math.ceil((k.$M+1)/3);case"Do":return Y.ordinal(k.$D);case"gggg":return k.weekYear();case"GGGG":return k.isoWeekYear();case"wo":return Y.ordinal(k.week(),"W");case"w":case"ww":return g.s(k.week(),U==="w"?1:2,"0");case"W":case"WW":return g.s(k.isoWeek(),U==="W"?1:2,"0");case"k":case"kk":return g.s(String(k.$H===0?24:k.$H),U==="k"?1:2,"0");case"X":return Math.floor(k.$d.getTime()/1e3);case"x":return k.$d.getTime();case"z":return"["+k.offsetName()+"]";case"zzz":return"["+k.offsetName("long")+"]";default:return U}});return s.bind(this)(b)}}})})(gn);var Si=gn.exports;const _i=ke(Si);nt.extend(Ci);nt.extend(Mi);nt.extend(_i);let at="",ve="",be,xe="",Ht=[],Nt=[],we={},Ce=[],Jt=[],_t="",De="";const yn=["active","done","crit","milestone"];let Me=[],Vt=!1,Se=!1,_e="sunday",de=0;const Ui=function(){Ce=[],Jt=[],_t="",Me=[],Zt=0,ge=void 0,Xt=void 0,$=[],at="",ve="",De="",be=void 0,xe="",Ht=[],Nt=[],Vt=!1,Se=!1,de=0,we={},Ln(),_e="sunday"},Yi=function(t){ve=t},Fi=function(){return ve},Li=function(t){be=t},Ei=function(){return be},Ai=function(t){xe=t},Ii=function(){return xe},Wi=function(t){at=t},Oi=function(){Vt=!0},Hi=function(){return Vt},Ni=function(){Se=!0},Vi=function(){return Se},Pi=function(t){De=t},zi=function(){return De},Ri=function(){return at},Bi=function(t){Ht=t.toLowerCase().split(/[\s,]+/)},Zi=function(){return Ht},Xi=function(t){Nt=t.toLowerCase().split(/[\s,]+/)},qi=function(){return Nt},Gi=function(){return we},ji=function(t){_t=t,Ce.push(t)},Qi=function(){return Ce},Ji=function(){let t=ze();const e=10;let n=0;for(;!t&&n<e;)t=ze(),n++;return Jt=$,Jt},kn=function(t,e,n,r){return r.includes(t.format(e.trim()))?!1:t.isoWeekday()>=6&&n.includes("weekends")||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(t.format(e.trim()))},$i=function(t){_e=t},Ki=function(){return _e},pn=function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i;t.startTime instanceof Date?i=nt(t.startTime):i=nt(t.startTime,e,!0),i=i.add(1,"d");let s;t.endTime instanceof Date?s=nt(t.endTime):s=nt(t.endTime,e,!0);const[a,k]=ts(i,s,e,n,r);t.endTime=a.toDate(),t.renderEndTime=k},ts=function(t,e,n,r,i){let s=!1,a=null;for(;t<=e;)s||(a=e.toDate()),s=kn(t,n,r,i),s&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,a]},me=function(t,e,n){n=n.trim();const i=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(i!==null){let a=null;for(const Y of i.groups.ids.split(" ")){let g=bt(Y);g!==void 0&&(!a||g.endTime>a.endTime)&&(a=g)}if(a)return a.endTime;const k=new Date;return k.setHours(0,0,0,0),k}let s=nt(n,e.trim(),!0);if(s.isValid())return s.toDate();{qt.debug("Invalid date:"+n),qt.debug("With date format:"+e.trim());const a=new Date(n);if(a===void 0||isNaN(a.getTime())||a.getFullYear()<-1e4||a.getFullYear()>1e4)throw new Error("Invalid date:"+n);return a}},Tn=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},vn=function(t,e,n,r=!1){n=n.trim();const s=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let b=null;for(const C of s.groups.ids.split(" ")){let v=bt(C);v!==void 0&&(!b||v.startTime<b.startTime)&&(b=v)}if(b)return b.startTime;const U=new Date;return U.setHours(0,0,0,0),U}let a=nt(n,e.trim(),!0);if(a.isValid())return r&&(a=a.add(1,"d")),a.toDate();let k=nt(t);const[Y,g]=Tn(n);if(!Number.isNaN(Y)){const b=k.add(Y,g);b.isValid()&&(k=b)}return k.toDate()};let Zt=0;const Dt=function(t){return t===void 0?(Zt=Zt+1,"task"+Zt):t},es=function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};Cn(r,i,yn);for(let a=0;a<r.length;a++)r[a]=r[a].trim();let s="";switch(r.length){case 1:i.id=Dt(),i.startTime=t.endTime,s=r[0];break;case 2:i.id=Dt(),i.startTime=me(void 0,at,r[0]),s=r[1];break;case 3:i.id=Dt(r[0]),i.startTime=me(void 0,at,r[1]),s=r[2];break}return s&&(i.endTime=vn(i.startTime,at,s,Vt),i.manualEndTime=nt(s,"YYYY-MM-DD",!0).isValid(),pn(i,at,Nt,Ht)),i},ns=function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};Cn(r,i,yn);for(let s=0;s<r.length;s++)r[s]=r[s].trim();switch(r.length){case 1:i.id=Dt(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=Dt(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Dt(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]};break}return i};let ge,Xt,$=[];const bn={},rs=function(t,e){const n={section:_t,type:_t,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=ns(Xt,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Xt,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=de,de++;const i=$.push(n);Xt=n.id,bn[n.id]=i-1},bt=function(t){const e=bn[t];return $[e]},is=function(t,e){const n={section:_t,type:_t,description:t,task:t,classes:[]},r=es(ge,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,ge=n,Jt.push(n)},ze=function(){const t=function(n){const r=$[n];let i="";switch($[n].raw.startTime.type){case"prevTaskEnd":{const s=bt(r.prevTaskId);r.startTime=s.endTime;break}case"getStartDate":i=me(void 0,at,$[n].raw.startTime.startData),i&&($[n].startTime=i);break}return $[n].startTime&&($[n].endTime=vn($[n].startTime,at,$[n].raw.endTime.data,Vt),$[n].endTime&&($[n].processed=!0,$[n].manualEndTime=nt($[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),pn($[n],at,Nt,Ht))),$[n].processed};let e=!0;for(const[n,r]of $.entries())t(n),e=e&&r.processed;return e},ss=function(t,e){let n=e;wt().securityLevel!=="loose"&&(n=En.sanitizeUrl(e)),t.split(",").forEach(function(r){bt(r)!==void 0&&(wn(r,()=>{window.open(n,"_self")}),we[r]=n)}),xn(t,"clickable")},xn=function(t,e){t.split(",").forEach(function(n){let r=bt(n);r!==void 0&&r.classes.push(e)})},as=function(t,e,n){if(wt().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<r.length;s++){let a=r[s].trim();a.charAt(0)==='"'&&a.charAt(a.length-1)==='"'&&(a=a.substr(1,a.length-2)),r[s]=a}}r.length===0&&r.push(t),bt(t)!==void 0&&wn(t,()=>{Wn.runFunc(e,...r)})},wn=function(t,e){Me.push(function(){const n=document.querySelector(`[id="${t}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const n=document.querySelector(`[id="${t}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},os=function(t,e,n){t.split(",").forEach(function(r){as(r,e,n)}),xn(t,"clickable")},cs=function(t){Me.forEach(function(e){e(t)})},ls={getConfig:()=>wt().gantt,clear:Ui,setDateFormat:Wi,getDateFormat:Ri,enableInclusiveEndDates:Oi,endDatesAreInclusive:Hi,enableTopAxis:Ni,topAxisEnabled:Vi,setAxisFormat:Yi,getAxisFormat:Fi,setTickInterval:Li,getTickInterval:Ei,setTodayMarker:Ai,getTodayMarker:Ii,setAccTitle:Dn,getAccTitle:Mn,setDiagramTitle:Sn,getDiagramTitle:_n,setDisplayMode:Pi,getDisplayMode:zi,setAccDescription:Un,getAccDescription:Yn,addSection:ji,getSections:Qi,getTasks:Ji,addTask:rs,findTaskById:bt,addTaskOrg:is,setIncludes:Bi,getIncludes:Zi,setExcludes:Xi,getExcludes:qi,setClickEvent:os,setLink:ss,getLinks:Gi,bindFunctions:cs,parseDuration:Tn,isInvalidDate:kn,setWeekday:$i,getWeekday:Ki};function Cn(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(i){const s="^\\s*"+i+"\\s*$",a=new RegExp(s);t[0].match(a)&&(e[i]=!0,t.shift(1),r=!0)})}const us=function(){qt.debug("Something is calling, setConf, remove the call")},Re={monday:It,tuesday:nn,wednesday:rn,thursday:kt,friday:sn,saturday:an,sunday:Ot},fs=(t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((s,a)=>s.startTime-a.startTime||s.order-a.order),i=0;for(const s of r)for(let a=0;a<n.length;a++)if(s.startTime>=n[a]){n[a]=s.endTime,s.order=a+e,a>i&&(i=a);break}return i};let lt;const hs=function(t,e,n,r){const i=wt().gantt,s=wt().securityLevel;let a;s==="sandbox"&&(a=zt("#i"+e));const k=s==="sandbox"?zt(a.nodes()[0].contentDocument.body):zt("body"),Y=s==="sandbox"?a.nodes()[0].contentDocument:document,g=Y.getElementById(e);lt=g.parentElement.offsetWidth,lt===void 0&&(lt=1200),i.useWidth!==void 0&&(lt=i.useWidth);const b=r.db.getTasks();let U=[];for(const T of b)U.push(T.type);U=A(U);const C={};let v=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const T={};for(const D of b)T[D.section]===void 0?T[D.section]=[D]:T[D.section].push(D);let F=0;for(const D of Object.keys(T)){const w=fs(T[D],F)+1;F+=w,v+=w*(i.barHeight+i.barGap),C[D]=w}}else{v+=b.length*(i.barHeight+i.barGap);for(const T of U)C[T]=b.filter(F=>F.type===T).length}g.setAttribute("viewBox","0 0 "+lt+" "+v);const q=k.select(`[id="${e}"]`),y=bi().domain([Bn(b,function(T){return T.startTime}),Rn(b,function(T){return T.endTime})]).rangeRound([0,lt-i.leftPadding-i.rightPadding]);function L(T,F){const D=T.startTime,w=F.startTime;let o=0;return D>w?o=1:D<w&&(o=-1),o}b.sort(L),O(b,lt,v),An(q,v,lt,i.useMaxWidth),q.append("text").text(r.db.getDiagramTitle()).attr("x",lt/2).attr("y",i.titleTopMargin).attr("class","titleText");function O(T,F,D){const w=i.barHeight,o=w+i.barGap,d=i.topPadding,m=i.leftPadding,u=Hn().domain([0,U.length]).range(["#00B9FA","#F95002"]).interpolate(sr);B(o,d,m,F,D,T,r.db.getExcludes(),r.db.getIncludes()),Z(m,d,F,D),W(T,o,d,m,w,u,F),Q(o,d),x(m,d,F,D)}function W(T,F,D,w,o,d,m){const S=[...new Set(T.map(h=>h.order))].map(h=>T.find(_=>_.order===h));q.append("g").selectAll("rect").data(S).enter().append("rect").attr("x",0).attr("y",function(h,_){return _=h.order,_*F+D-2}).attr("width",function(){return m-i.rightPadding/2}).attr("height",F).attr("class",function(h){for(const[_,G]of U.entries())if(h.type===G)return"section section"+_%i.numberSectionStyles;return"section section0"});const c=q.append("g").selectAll("rect").data(T).enter(),X=r.db.getLinks();if(c.append("rect").attr("id",function(h){return h.id}).attr("rx",3).attr("ry",3).attr("x",function(h){return h.milestone?y(h.startTime)+w+.5*(y(h.endTime)-y(h.startTime))-.5*o:y(h.startTime)+w}).attr("y",function(h,_){return _=h.order,_*F+D}).attr("width",function(h){return h.milestone?o:y(h.renderEndTime||h.endTime)-y(h.startTime)}).attr("height",o).attr("transform-origin",function(h,_){return _=h.order,(y(h.startTime)+w+.5*(y(h.endTime)-y(h.startTime))).toString()+"px "+(_*F+D+.5*o).toString()+"px"}).attr("class",function(h){const _="task";let G="";h.classes.length>0&&(G=h.classes.join(" "));let H=0;for(const[I,P]of U.entries())h.type===P&&(H=I%i.numberSectionStyles);let V="";return h.active?h.crit?V+=" activeCrit":V=" active":h.done?h.crit?V=" doneCrit":V=" done":h.crit&&(V+=" crit"),V.length===0&&(V=" task"),h.milestone&&(V=" milestone "+V),V+=H,V+=" "+G,_+V}),c.append("text").attr("id",function(h){return h.id+"-text"}).text(function(h){return h.task}).attr("font-size",i.fontSize).attr("x",function(h){let _=y(h.startTime),G=y(h.renderEndTime||h.endTime);h.milestone&&(_+=.5*(y(h.endTime)-y(h.startTime))-.5*o),h.milestone&&(G=_+o);const H=this.getBBox().width;return H>G-_?G+H+1.5*i.leftPadding>m?_+w-5:G+w+5:(G-_)/2+_+w}).attr("y",function(h,_){return _=h.order,_*F+i.barHeight/2+(i.fontSize/2-2)+D}).attr("text-height",o).attr("class",function(h){const _=y(h.startTime);let G=y(h.endTime);h.milestone&&(G=_+o);const H=this.getBBox().width;let V="";h.classes.length>0&&(V=h.classes.join(" "));let I=0;for(const[st,it]of U.entries())h.type===it&&(I=st%i.numberSectionStyles);let P="";return h.active&&(h.crit?P="activeCritText"+I:P="activeText"+I),h.done?h.crit?P=P+" doneCritText"+I:P=P+" doneText"+I:h.crit&&(P=P+" critText"+I),h.milestone&&(P+=" milestoneText"),H>G-_?G+H+1.5*i.leftPadding>m?V+" taskTextOutsideLeft taskTextOutside"+I+" "+P:V+" taskTextOutsideRight taskTextOutside"+I+" "+P+" width-"+H:V+" taskText taskText"+I+" "+P+" width-"+H}),wt().securityLevel==="sandbox"){let h;h=zt("#i"+e);const _=h.nodes()[0].contentDocument;c.filter(function(G){return X[G.id]!==void 0}).each(function(G){var H=_.querySelector("#"+G.id),V=_.querySelector("#"+G.id+"-text");const I=H.parentNode;var P=_.createElement("a");P.setAttribute("xlink:href",X[G.id]),P.setAttribute("target","_top"),I.appendChild(P),P.appendChild(H),P.appendChild(V)})}}function B(T,F,D,w,o,d,m,u){if(m.length===0&&u.length===0)return;let S,c;for(const{startTime:H,endTime:V}of d)(S===void 0||H<S)&&(S=H),(c===void 0||V>c)&&(c=V);if(!S||!c)return;if(nt(c).diff(nt(S),"year")>5){qt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const X=r.db.getDateFormat(),f=[];let h=null,_=nt(S);for(;_.valueOf()<=c;)r.db.isInvalidDate(_,X,m,u)?h?h.end=_:h={start:_,end:_}:h&&(f.push(h),h=null),_=_.add(1,"d");q.append("g").selectAll("rect").data(f).enter().append("rect").attr("id",function(H){return"exclude-"+H.start.format("YYYY-MM-DD")}).attr("x",function(H){return y(H.start)+D}).attr("y",i.gridLineStartPadding).attr("width",function(H){const V=H.end.add(1,"day");return y(V)-y(H.start)}).attr("height",o-F-i.gridLineStartPadding).attr("transform-origin",function(H,V){return(y(H.start)+D+.5*(y(H.end)-y(H.start))).toString()+"px "+(V*T+.5*o).toString()+"px"}).attr("class","exclude-range")}function Z(T,F,D,w){let o=$n(y).tickSize(-w+F+i.gridLineStartPadding).tickFormat(Qt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));const m=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(m!==null){const u=m[1],S=m[2],c=r.db.getWeekday()||i.weekday;switch(S){case"millisecond":o.ticks(Mt.every(u));break;case"second":o.ticks(gt.every(u));break;case"minute":o.ticks(Et.every(u));break;case"hour":o.ticks(At.every(u));break;case"day":o.ticks(yt.every(u));break;case"week":o.ticks(Re[c].every(u));break;case"month":o.ticks(Wt.every(u));break}}if(q.append("g").attr("class","grid").attr("transform","translate("+T+", "+(w-50)+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let u=Jn(y).tickSize(-w+F+i.gridLineStartPadding).tickFormat(Qt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(m!==null){const S=m[1],c=m[2],X=r.db.getWeekday()||i.weekday;switch(c){case"millisecond":u.ticks(Mt.every(S));break;case"second":u.ticks(gt.every(S));break;case"minute":u.ticks(Et.every(S));break;case"hour":u.ticks(At.every(S));break;case"day":u.ticks(yt.every(S));break;case"week":u.ticks(Re[X].every(S));break;case"month":u.ticks(Wt.every(S));break}}q.append("g").attr("class","grid").attr("transform","translate("+T+", "+F+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function Q(T,F){let D=0;const w=Object.keys(C).map(o=>[o,C[o]]);q.append("g").selectAll("text").data(w).enter().append(function(o){const d=o[0].split(In.lineBreakRegex),m=-(d.length-1)/2,u=Y.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",m+"em");for(const[S,c]of d.entries()){const X=Y.createElementNS("http://www.w3.org/2000/svg","tspan");X.setAttribute("alignment-baseline","central"),X.setAttribute("x","10"),S>0&&X.setAttribute("dy","1em"),X.textContent=c,u.appendChild(X)}return u}).attr("x",10).attr("y",function(o,d){if(d>0)for(let m=0;m<d;m++)return D+=w[d-1][1],o[1]*T/2+D*T+F;else return o[1]*T/2+F}).attr("font-size",i.sectionFontSize).attr("class",function(o){for(const[d,m]of U.entries())if(o[0]===m)return"sectionTitle sectionTitle"+d%i.numberSectionStyles;return"sectionTitle"})}function x(T,F,D,w){const o=r.db.getTodayMarker();if(o==="off")return;const d=q.append("g").attr("class","today"),m=new Date,u=d.append("line");u.attr("x1",y(m)+T).attr("x2",y(m)+T).attr("y1",i.titleTopMargin).attr("y2",w-i.titleTopMargin).attr("class","today"),o!==""&&u.attr("style",o.replace(/,/g,";"))}function A(T){const F={},D=[];for(let w=0,o=T.length;w<o;++w)Object.prototype.hasOwnProperty.call(F,T[w])||(F[T[w]]=!0,D.push(T[w]));return D}},ds={setConf:us,draw:hs},ms=t=>`
.mermaid-main-font {
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
.exclude-range {
fill: ${t.excludeBkgColor};
}
.section {
stroke: none;
opacity: 0.2;
}
.section0 {
fill: ${t.sectionBkgColor};
}
.section2 {
fill: ${t.sectionBkgColor2};
}
.section1,
.section3 {
fill: ${t.altSectionBkgColor};
opacity: 0.2;
}
.sectionTitle0 {
fill: ${t.titleColor};
}
.sectionTitle1 {
fill: ${t.titleColor};
}
.sectionTitle2 {
fill: ${t.titleColor};
}
.sectionTitle3 {
fill: ${t.titleColor};
}
.sectionTitle {
text-anchor: start;
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
/* Grid and axis */
.grid .tick {
stroke: ${t.gridColor};
opacity: 0.8;
shape-rendering: crispEdges;
}
.grid .tick text {
font-family: ${t.fontFamily};
fill: ${t.textColor};
}
.grid path {
stroke-width: 0;
}
/* Today line */
.today {
fill: none;
stroke: ${t.todayLineColor};
stroke-width: 2px;
}
/* Task styling */
/* Default task */
.task {
stroke-width: 2;
}
.taskText {
text-anchor: middle;
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
.taskTextOutsideRight {
fill: ${t.taskTextDarkColor};
text-anchor: start;
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
.taskTextOutsideLeft {
fill: ${t.taskTextDarkColor};
text-anchor: end;
}
/* Special case clickable */
.task.clickable {
cursor: pointer;
}
.taskText.clickable {
cursor: pointer;
fill: ${t.taskTextClickableColor} !important;
font-weight: bold;
}
.taskTextOutsideLeft.clickable {
cursor: pointer;
fill: ${t.taskTextClickableColor} !important;
font-weight: bold;
}
.taskTextOutsideRight.clickable {
cursor: pointer;
fill: ${t.taskTextClickableColor} !important;
font-weight: bold;
}
/* Specific task settings for the sections*/
.taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: ${t.taskTextColor};
}
.task0,
.task1,
.task2,
.task3 {
fill: ${t.taskBkgColor};
stroke: ${t.taskBorderColor};
}
.taskTextOutside0,
.taskTextOutside2
{
fill: ${t.taskTextOutsideColor};
}
.taskTextOutside1,
.taskTextOutside3 {
fill: ${t.taskTextOutsideColor};
}
/* Active task */
.active0,
.active1,
.active2,
.active3 {
fill: ${t.activeTaskBkgColor};
stroke: ${t.activeTaskBorderColor};
}
.activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: ${t.taskTextDarkColor} !important;
}
/* Completed task */
.done0,
.done1,
.done2,
.done3 {
stroke: ${t.doneTaskBorderColor};
fill: ${t.doneTaskBkgColor};
stroke-width: 2;
}
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: ${t.taskTextDarkColor} !important;
}
/* Tasks on the critical line */
.crit0,
.crit1,
.crit2,
.crit3 {
stroke: ${t.critBorderColor};
fill: ${t.critBkgColor};
stroke-width: 2;
}
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: ${t.critBorderColor};
fill: ${t.activeTaskBkgColor};
stroke-width: 2;
}
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: ${t.critBorderColor};
fill: ${t.doneTaskBkgColor};
stroke-width: 2;
cursor: pointer;
shape-rendering: crispEdges;
}
.milestone {
transform: rotate(45deg) scale(0.8,0.8);
}
.milestoneText {
font-style: italic;
}
.doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
fill: ${t.taskTextDarkColor} !important;
}
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: ${t.taskTextDarkColor} !important;
}
.titleText {
text-anchor: middle;
font-size: 18px;
fill: ${t.titleColor||t.textColor};
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
`,gs=ms,ws={parser:xi,db:ls,renderer:ds,styles:gs};export{ws as diagram};
import{d as xDe,p as RDe}from"./flowDb-147da10a-Cx_grzty.js";import{M as Dse,O as KDe,l as Ba,h as OA,$ as $U,t as BDe,n as Ebn,p as jbn,q as DU,j as FDe}from"./slidev/Mermaid-sWhOKcCj.js";import{i as _De,a as HDe,l as qDe,b as UDe,k as GDe,m as zDe}from"./edges-1e1ebc73-BF9aEHVZ.js";import{l as XDe}from"./line-65d70945-Bv9b7vLo.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./createText-f6615236-DY9JQ1lr.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const VDe=(ct,_t,Xt)=>{const{parentById:gt}=Xt,Pr=new Set;let Li=ct;for(;Li;){if(Pr.add(Li),Li===_t)return Li;Li=gt[Li]}for(Li=_t;Li;){if(Pr.has(Li))return Li;Li=gt[Li]}return"root"};function NU(ct){throw new Error('Could not dynamically require "'+ct+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Kse={exports:{}};(function(ct,_t){(function(Xt){ct.exports=Xt()})(function(){return function(){function Xt(gt,Pr,Li){function y(Ht,Jt){if(!Pr[Ht]){if(!gt[Ht]){var Xe=typeof NU=="function"&&NU;if(!Jt&&Xe)return Xe(Ht,!0);if(Wt)return Wt(Ht,!0);var Yi=new Error("Cannot find module '"+Ht+"'");throw Yi.code="MODULE_NOT_FOUND",Yi}var Bi=Pr[Ht]={exports:{}};gt[Ht][0].call(Bi.exports,function(En){var hu=gt[Ht][1][En];return y(hu||En)},Bi,Bi.exports,Xt,gt,Pr,Li)}return Pr[Ht].exports}for(var Wt=typeof NU=="function"&&NU,Ku=0;Ku<Li.length;Ku++)y(Li[Ku]);return y}return Xt}()({1:[function(Xt,gt,Pr){Object.defineProperty(Pr,"__esModule",{value:!0});var Li=function(){function Ht(Jt,Xe){for(var Yi=0;Yi<Xe.length;Yi++){var Bi=Xe[Yi];Bi.enumerable=Bi.enumerable||!1,Bi.configurable=!0,"value"in Bi&&(Bi.writable=!0),Object.defineProperty(Jt,Bi.key,Bi)}}return function(Jt,Xe,Yi){return Xe&&Ht(Jt.prototype,Xe),Yi&&Ht(Jt,Yi),Jt}}();function y(Ht,Jt){if(!(Ht instanceof Jt))throw new TypeError("Cannot call a class as a function")}var Wt=function(){function Ht(){var Jt=this,Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Yi=Xe.defaultLayoutOptions,Bi=Yi===void 0?{}:Yi,En=Xe.algorithms,hu=En===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:En,Qc=Xe.workerFactory,Bu=Xe.workerUrl;if(y(this,Ht),this.defaultLayoutOptions=Bi,this.initialized=!1,typeof Bu>"u"&&typeof Qc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Ir=Qc;typeof Bu<"u"&&typeof Qc>"u"&&(Ir=function(D1){return new Worker(D1)});var Tf=Ir(Bu);if(typeof Tf.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new Ku(Tf),this.worker.postMessage({cmd:"register",algorithms:hu}).then(function(N1){return Jt.initialized=!0}).catch(console.err)}return Li(Ht,[{key:"layout",value:function(Xe){var Yi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bi=Yi.layoutOptions,En=Bi===void 0?this.defaultLayoutOptions:Bi,hu=Yi.logging,Qc=hu===void 0?!1:hu,Bu=Yi.measureExecutionTime,Ir=Bu===void 0?!1:Bu;return Xe?this.worker.postMessage({cmd:"layout",graph:Xe,layoutOptions:En,options:{logging:Qc,measureExecutionTime:Ir}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),Ht}();Pr.default=Wt;var Ku=function(){function Ht(Jt){var Xe=this;if(y(this,Ht),Jt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=Jt,this.worker.onmessage=function(Yi){setTimeout(function(){Xe.receive(Xe,Yi)},0)}}return Li(Ht,[{key:"postMessage",value:function(Xe){var Yi=this.id||0;this.id=Yi+1,Xe.id=Yi;var Bi=this;return new Promise(function(En,hu){Bi.resolvers[Yi]=function(Qc,Bu){Qc?(Bi.convertGwtStyleError(Qc),hu(Qc)):En(Bu)},Bi.worker.postMessage(Xe)})}},{key:"receive",value:function(Xe,Yi){var Bi=Yi.data,En=Xe.resolvers[Bi.id];En&&(delete Xe.resolvers[Bi.id],Bi.error?En(Bi.error):En(null,Bi.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Xe){if(Xe){var Yi=Xe.__java$exception;Yi&&(Yi.cause&&Yi.cause.backingJsObject&&(Xe.cause=Yi.cause.backingJsObject,this.convertGwtStyleError(Xe.cause)),delete Xe.__java$exception)}}}]),Ht}()},{}],2:[function(Xt,gt,Pr){(function(Li){(function(){var y;typeof window<"u"?y=window:typeof Li<"u"?y=Li:typeof self<"u"&&(y=self);var Wt;function Ku(){}function Ht(){}function Jt(){}function Xe(){}function Yi(){}function Bi(){}function En(){}function hu(){}function Qc(){}function Bu(){}function Ir(){}function Tf(){}function N1(){}function D1(){}function og(){}function V3(){}function $1(){}function ul(){}function Mbn(){}function Tbn(){}function Q2(){}function R(){}function Cbn(){}function mE(){}function Sbn(){}function Pbn(){}function Ibn(){}function Obn(){}function Abn(){}function xU(){}function Lbn(){}function Nbn(){}function Dbn(){}function AA(){}function $bn(){}function xbn(){}function Rbn(){}function LA(){}function Kbn(){}function Bbn(){}function RU(){}function Fbn(){}function _bn(){}function yu(){}function ju(){}function Y2(){}function Z2(){}function Hbn(){}function qbn(){}function Ubn(){}function Gbn(){}function KU(){}function Eu(){}function np(){}function ep(){}function zbn(){}function Xbn(){}function NA(){}function Vbn(){}function Wbn(){}function Jbn(){}function Qbn(){}function Ybn(){}function Zbn(){}function n0n(){}function e0n(){}function t0n(){}function i0n(){}function r0n(){}function c0n(){}function u0n(){}function o0n(){}function s0n(){}function f0n(){}function h0n(){}function l0n(){}function a0n(){}function d0n(){}function b0n(){}function w0n(){}function g0n(){}function p0n(){}function m0n(){}function v0n(){}function k0n(){}function y0n(){}function j0n(){}function E0n(){}function M0n(){}function T0n(){}function C0n(){}function BU(){}function S0n(){}function P0n(){}function I0n(){}function O0n(){}function DA(){}function $A(){}function vE(){}function A0n(){}function L0n(){}function xA(){}function N0n(){}function D0n(){}function $0n(){}function kE(){}function x0n(){}function R0n(){}function K0n(){}function B0n(){}function F0n(){}function _0n(){}function H0n(){}function q0n(){}function U0n(){}function FU(){}function G0n(){}function z0n(){}function _U(){}function X0n(){}function V0n(){}function W0n(){}function J0n(){}function Q0n(){}function Y0n(){}function Z0n(){}function nwn(){}function ewn(){}function twn(){}function iwn(){}function rwn(){}function cwn(){}function RA(){}function uwn(){}function own(){}function swn(){}function fwn(){}function hwn(){}function lwn(){}function awn(){}function dwn(){}function bwn(){}function HU(){}function qU(){}function wwn(){}function gwn(){}function pwn(){}function mwn(){}function vwn(){}function kwn(){}function ywn(){}function jwn(){}function Ewn(){}function Mwn(){}function Twn(){}function Cwn(){}function Swn(){}function Pwn(){}function Iwn(){}function Own(){}function Awn(){}function Lwn(){}function Nwn(){}function Dwn(){}function $wn(){}function xwn(){}function Rwn(){}function Kwn(){}function Bwn(){}function Fwn(){}function _wn(){}function Hwn(){}function qwn(){}function Uwn(){}function Gwn(){}function zwn(){}function Xwn(){}function Vwn(){}function Wwn(){}function Jwn(){}function Qwn(){}function Ywn(){}function Zwn(){}function ngn(){}function egn(){}function tgn(){}function ign(){}function rgn(){}function cgn(){}function ugn(){}function ogn(){}function sgn(){}function fgn(){}function hgn(){}function lgn(){}function agn(){}function dgn(){}function bgn(){}function wgn(){}function ggn(){}function pgn(){}function mgn(){}function vgn(){}function kgn(){}function ygn(){}function jgn(){}function Egn(){}function Mgn(){}function Tgn(){}function Cgn(){}function Sgn(){}function Pgn(){}function Ign(){}function Ogn(){}function Agn(){}function Lgn(){}function Ngn(){}function Dgn(){}function $gn(){}function xgn(){}function Rgn(){}function Kgn(){}function Bgn(){}function Fgn(){}function _gn(){}function Hgn(){}function qgn(){}function Ugn(){}function Ggn(){}function zgn(){}function Xgn(){}function Vgn(){}function Wgn(){}function Jgn(){}function Qgn(){}function Ygn(){}function Zgn(){}function n2n(){}function e2n(){}function t2n(){}function i2n(){}function r2n(){}function c2n(){}function u2n(){}function UU(){}function o2n(){}function s2n(){}function f2n(){}function h2n(){}function l2n(){}function a2n(){}function d2n(){}function b2n(){}function w2n(){}function g2n(){}function p2n(){}function m2n(){}function v2n(){}function k2n(){}function y2n(){}function j2n(){}function E2n(){}function M2n(){}function T2n(){}function C2n(){}function S2n(){}function P2n(){}function I2n(){}function O2n(){}function A2n(){}function L2n(){}function N2n(){}function D2n(){}function $2n(){}function x2n(){}function R2n(){}function K2n(){}function B2n(){}function F2n(){}function _2n(){}function H2n(){}function q2n(){}function U2n(){}function G2n(){}function z2n(){}function X2n(){}function V2n(){}function W2n(){}function J2n(){}function Q2n(){}function Y2n(){}function Z2n(){}function npn(){}function epn(){}function tpn(){}function ipn(){}function rpn(){}function cpn(){}function upn(){}function opn(){}function spn(){}function fpn(){}function hpn(){}function lpn(){}function apn(){}function dpn(){}function bpn(){}function wpn(){}function gpn(){}function ppn(){}function mpn(){}function vpn(){}function kpn(){}function ypn(){}function jpn(){}function Epn(){}function Mpn(){}function Tpn(){}function GU(){}function Cpn(){}function Spn(){}function Ppn(){}function Ipn(){}function Opn(){}function Apn(){}function Lpn(){}function Npn(){}function Dpn(){}function $pn(){}function zU(){}function xpn(){}function Rpn(){}function Kpn(){}function Bpn(){}function Fpn(){}function _pn(){}function XU(){}function VU(){}function Hpn(){}function WU(){}function JU(){}function qpn(){}function Upn(){}function Gpn(){}function zpn(){}function Xpn(){}function Vpn(){}function Wpn(){}function Jpn(){}function Qpn(){}function Ypn(){}function Zpn(){}function QU(){}function n3n(){}function e3n(){}function t3n(){}function i3n(){}function r3n(){}function c3n(){}function u3n(){}function o3n(){}function s3n(){}function f3n(){}function h3n(){}function l3n(){}function a3n(){}function d3n(){}function b3n(){}function w3n(){}function g3n(){}function p3n(){}function m3n(){}function v3n(){}function k3n(){}function y3n(){}function j3n(){}function E3n(){}function M3n(){}function T3n(){}function C3n(){}function S3n(){}function P3n(){}function I3n(){}function O3n(){}function A3n(){}function L3n(){}function N3n(){}function D3n(){}function $3n(){}function x3n(){}function R3n(){}function K3n(){}function B3n(){}function F3n(){}function _3n(){}function H3n(){}function q3n(){}function U3n(){}function G3n(){}function z3n(){}function X3n(){}function V3n(){}function W3n(){}function J3n(){}function Q3n(){}function Y3n(){}function Z3n(){}function n4n(){}function e4n(){}function t4n(){}function i4n(){}function r4n(){}function c4n(){}function u4n(){}function o4n(){}function s4n(){}function f4n(){}function h4n(){}function l4n(){}function a4n(){}function d4n(){}function b4n(){}function w4n(){}function g4n(){}function p4n(){}function m4n(){}function v4n(){}function k4n(){}function y4n(){}function j4n(){}function E4n(){}function M4n(){}function T4n(){}function C4n(){}function S4n(){}function P4n(){}function I4n(){}function O4n(){}function A4n(){}function _se(){}function L4n(){}function N4n(){}function D4n(){}function $4n(){}function x4n(){}function R4n(){}function K4n(){}function B4n(){}function F4n(){}function _4n(){}function H4n(){}function q4n(){}function U4n(){}function G4n(){}function z4n(){}function X4n(){}function V4n(){}function W4n(){}function J4n(){}function Q4n(){}function Y4n(){}function Z4n(){}function nmn(){}function emn(){}function tmn(){}function imn(){}function rmn(){}function KA(){}function BA(){}function cmn(){}function FA(){}function umn(){}function omn(){}function smn(){}function fmn(){}function hmn(){}function lmn(){}function amn(){}function dmn(){}function bmn(){}function wmn(){}function YU(){}function gmn(){}function pmn(){}function mmn(){}function Hse(){}function vmn(){}function kmn(){}function ymn(){}function jmn(){}function Emn(){}function Mmn(){}function Tmn(){}function Fa(){}function Cmn(){}function tp(){}function ZU(){}function Smn(){}function Pmn(){}function Imn(){}function Omn(){}function Amn(){}function Lmn(){}function Nmn(){}function Dmn(){}function $mn(){}function xmn(){}function Rmn(){}function Kmn(){}function Bmn(){}function Fmn(){}function _mn(){}function Hmn(){}function qmn(){}function Umn(){}function Gmn(){}function hn(){}function zmn(){}function Xmn(){}function Vmn(){}function Wmn(){}function Jmn(){}function Qmn(){}function Ymn(){}function Zmn(){}function nvn(){}function evn(){}function tvn(){}function ivn(){}function rvn(){}function _A(){}function cvn(){}function uvn(){}function ovn(){}function yE(){}function svn(){}function HA(){}function jE(){}function fvn(){}function nG(){}function hvn(){}function lvn(){}function avn(){}function dvn(){}function bvn(){}function wvn(){}function EE(){}function gvn(){}function pvn(){}function ME(){}function mvn(){}function TE(){}function vvn(){}function eG(){}function kvn(){}function qA(){}function tG(){}function yvn(){}function jvn(){}function Evn(){}function Mvn(){}function qse(){}function Tvn(){}function Cvn(){}function Svn(){}function Pvn(){}function Ivn(){}function Ovn(){}function Avn(){}function Lvn(){}function Nvn(){}function Dvn(){}function W3(){}function UA(){}function $vn(){}function xvn(){}function Rvn(){}function Kvn(){}function Bvn(){}function Fvn(){}function _vn(){}function Hvn(){}function qvn(){}function Uvn(){}function Gvn(){}function zvn(){}function Xvn(){}function Vvn(){}function Wvn(){}function Jvn(){}function Qvn(){}function Yvn(){}function Zvn(){}function n6n(){}function e6n(){}function t6n(){}function i6n(){}function r6n(){}function c6n(){}function u6n(){}function o6n(){}function s6n(){}function f6n(){}function h6n(){}function l6n(){}function a6n(){}function d6n(){}function b6n(){}function w6n(){}function g6n(){}function p6n(){}function m6n(){}function v6n(){}function k6n(){}function y6n(){}function j6n(){}function E6n(){}function M6n(){}function T6n(){}function C6n(){}function S6n(){}function P6n(){}function I6n(){}function O6n(){}function A6n(){}function L6n(){}function N6n(){}function D6n(){}function $6n(){}function x6n(){}function R6n(){}function K6n(){}function B6n(){}function F6n(){}function _6n(){}function H6n(){}function q6n(){}function U6n(){}function G6n(){}function z6n(){}function X6n(){}function V6n(){}function W6n(){}function J6n(){}function Q6n(){}function Y6n(){}function Z6n(){}function n5n(){}function e5n(){}function t5n(){}function i5n(){}function r5n(){}function c5n(){}function u5n(){}function o5n(){}function s5n(){}function f5n(){}function h5n(){}function l5n(){}function a5n(){}function d5n(){}function b5n(){}function w5n(){}function g5n(){}function p5n(){}function m5n(){}function v5n(){}function k5n(){}function y5n(){}function j5n(){}function E5n(){}function M5n(){}function T5n(){}function C5n(){}function S5n(){}function iG(){}function P5n(){}function I5n(){}function GA(){Zv()}function O5n(){r7()}function A5n(){aS()}function L5n(){Q$()}function N5n(){M5()}function D5n(){lnn()}function $5n(){Us()}function x5n(){yZ()}function R5n(){Uk()}function K5n(){c7()}function B5n(){N7()}function F5n(){aMn()}function _5n(){Hp()}function H5n(){FNn()}function q5n(){kQ()}function U5n(){PAn()}function G5n(){yQ()}function z5n(){pDn()}function X5n(){SAn()}function V5n(){cm()}function W5n(){nxn()}function J5n(){Z$n()}function Q5n(){ELn()}function Y5n(){exn()}function Z5n(){ua()}function n8n(){ZE()}function e8n(){htn()}function t8n(){cn()}function i8n(){txn()}function r8n(){Ixn()}function c8n(){IAn()}function u8n(){nFn()}function o8n(){OAn()}function s8n(){bUn()}function f8n(){Hnn()}function h8n(){kl()}function l8n(){wKn()}function a8n(){lc()}function d8n(){BAn()}function b8n(){_p()}function w8n(){Men()}function g8n(){oa()}function p8n(){Ten()}function m8n(){Bf()}function v8n(){Wk()}function k8n(){ER()}function y8n(){Lx()}function uf(){wPn()}function j8n(){YT()}function E8n(){mS()}function rG(){He()}function M8n(){DC()}function T8n(){QY()}function cG(){L$()}function uG(){FS()}function C8n(){xen()}function oG(n){Jn(n)}function S8n(n){this.a=n}function CE(n){this.a=n}function P8n(n){this.a=n}function I8n(n){this.a=n}function O8n(n){this.a=n}function A8n(n){this.a=n}function L8n(n){this.a=n}function N8n(n){this.a=n}function sG(n){this.a=n}function fG(n){this.a=n}function D8n(n){this.a=n}function $8n(n){this.a=n}function zA(n){this.a=n}function x8n(n){this.a=n}function R8n(n){this.a=n}function XA(n){this.a=n}function VA(n){this.a=n}function K8n(n){this.a=n}function WA(n){this.a=n}function B8n(n){this.a=n}function F8n(n){this.a=n}function _8n(n){this.a=n}function hG(n){this.b=n}function H8n(n){this.c=n}function q8n(n){this.a=n}function U8n(n){this.a=n}function G8n(n){this.a=n}function z8n(n){this.a=n}function X8n(n){this.a=n}function V8n(n){this.a=n}function W8n(n){this.a=n}function J8n(n){this.a=n}function Q8n(n){this.a=n}function Y8n(n){this.a=n}function Z8n(n){this.a=n}function n9n(n){this.a=n}function e9n(n){this.a=n}function lG(n){this.a=n}function aG(n){this.a=n}function SE(n){this.a=n}function U9(n){this.a=n}function _a(){this.a=[]}function t9n(n,e){n.a=e}function Use(n,e){n.a=e}function Gse(n,e){n.b=e}function zse(n,e){n.b=e}function Xse(n,e){n.b=e}function dG(n,e){n.j=e}function Vse(n,e){n.g=e}function Wse(n,e){n.i=e}function Jse(n,e){n.c=e}function Qse(n,e){n.c=e}function Yse(n,e){n.d=e}function Zse(n,e){n.d=e}function Ha(n,e){n.k=e}function nfe(n,e){n.c=e}function bG(n,e){n.c=e}function wG(n,e){n.a=e}function efe(n,e){n.a=e}function tfe(n,e){n.f=e}function ife(n,e){n.a=e}function rfe(n,e){n.b=e}function JA(n,e){n.d=e}function PE(n,e){n.i=e}function gG(n,e){n.o=e}function cfe(n,e){n.r=e}function ufe(n,e){n.a=e}function ofe(n,e){n.b=e}function i9n(n,e){n.e=e}function sfe(n,e){n.f=e}function pG(n,e){n.g=e}function ffe(n,e){n.e=e}function hfe(n,e){n.f=e}function lfe(n,e){n.f=e}function QA(n,e){n.a=e}function YA(n,e){n.b=e}function afe(n,e){n.n=e}function dfe(n,e){n.a=e}function bfe(n,e){n.c=e}function wfe(n,e){n.c=e}function gfe(n,e){n.c=e}function pfe(n,e){n.a=e}function mfe(n,e){n.a=e}function vfe(n,e){n.d=e}function kfe(n,e){n.d=e}function yfe(n,e){n.e=e}function jfe(n,e){n.e=e}function Efe(n,e){n.g=e}function Mfe(n,e){n.f=e}function Tfe(n,e){n.j=e}function Cfe(n,e){n.a=e}function Sfe(n,e){n.a=e}function Pfe(n,e){n.b=e}function r9n(n){n.b=n.a}function c9n(n){n.c=n.d.d}function mG(n){this.a=n}function vG(n){this.a=n}function kG(n){this.a=n}function qa(n){this.a=n}function Ua(n){this.a=n}function G9(n){this.a=n}function u9n(n){this.a=n}function yG(n){this.a=n}function z9(n){this.a=n}function IE(n){this.a=n}function ol(n){this.a=n}function P0(n){this.a=n}function o9n(n){this.a=n}function s9n(n){this.a=n}function ZA(n){this.b=n}function J3(n){this.b=n}function Q3(n){this.b=n}function nL(n){this.a=n}function f9n(n){this.a=n}function eL(n){this.c=n}function M(n){this.c=n}function h9n(n){this.c=n}function zv(n){this.d=n}function jG(n){this.a=n}function Ce(n){this.a=n}function l9n(n){this.a=n}function EG(n){this.a=n}function MG(n){this.a=n}function TG(n){this.a=n}function CG(n){this.a=n}function SG(n){this.a=n}function PG(n){this.a=n}function Y3(n){this.a=n}function a9n(n){this.a=n}function d9n(n){this.a=n}function Z3(n){this.a=n}function b9n(n){this.a=n}function w9n(n){this.a=n}function g9n(n){this.a=n}function p9n(n){this.a=n}function m9n(n){this.a=n}function v9n(n){this.a=n}function k9n(n){this.a=n}function y9n(n){this.a=n}function j9n(n){this.a=n}function E9n(n){this.a=n}function M9n(n){this.a=n}function T9n(n){this.a=n}function C9n(n){this.a=n}function S9n(n){this.a=n}function P9n(n){this.a=n}function Xv(n){this.a=n}function I9n(n){this.a=n}function O9n(n){this.a=n}function A9n(n){this.a=n}function L9n(n){this.a=n}function OE(n){this.a=n}function N9n(n){this.a=n}function D9n(n){this.a=n}function n4(n){this.a=n}function IG(n){this.a=n}function $9n(n){this.a=n}function x9n(n){this.a=n}function R9n(n){this.a=n}function K9n(n){this.a=n}function B9n(n){this.a=n}function F9n(n){this.a=n}function OG(n){this.a=n}function AG(n){this.a=n}function LG(n){this.a=n}function Vv(n){this.a=n}function AE(n){this.e=n}function e4(n){this.a=n}function _9n(n){this.a=n}function ip(n){this.a=n}function NG(n){this.a=n}function H9n(n){this.a=n}function q9n(n){this.a=n}function U9n(n){this.a=n}function G9n(n){this.a=n}function z9n(n){this.a=n}function X9n(n){this.a=n}function V9n(n){this.a=n}function W9n(n){this.a=n}function J9n(n){this.a=n}function Q9n(n){this.a=n}function Y9n(n){this.a=n}function DG(n){this.a=n}function Z9n(n){this.a=n}function n7n(n){this.a=n}function e7n(n){this.a=n}function t7n(n){this.a=n}function i7n(n){this.a=n}function r7n(n){this.a=n}function c7n(n){this.a=n}function u7n(n){this.a=n}function o7n(n){this.a=n}function s7n(n){this.a=n}function f7n(n){this.a=n}function h7n(n){this.a=n}function l7n(n){this.a=n}function a7n(n){this.a=n}function d7n(n){this.a=n}function b7n(n){this.a=n}function w7n(n){this.a=n}function g7n(n){this.a=n}function p7n(n){this.a=n}function m7n(n){this.a=n}function v7n(n){this.a=n}function k7n(n){this.a=n}function y7n(n){this.a=n}function j7n(n){this.a=n}function E7n(n){this.a=n}function M7n(n){this.a=n}function T7n(n){this.a=n}function C7n(n){this.a=n}function S7n(n){this.a=n}function P7n(n){this.a=n}function I7n(n){this.a=n}function O7n(n){this.a=n}function A7n(n){this.a=n}function L7n(n){this.a=n}function N7n(n){this.a=n}function D7n(n){this.a=n}function $7n(n){this.a=n}function x7n(n){this.a=n}function R7n(n){this.c=n}function K7n(n){this.b=n}function B7n(n){this.a=n}function F7n(n){this.a=n}function _7n(n){this.a=n}function H7n(n){this.a=n}function q7n(n){this.a=n}function U7n(n){this.a=n}function G7n(n){this.a=n}function z7n(n){this.a=n}function X7n(n){this.a=n}function V7n(n){this.a=n}function W7n(n){this.a=n}function J7n(n){this.a=n}function Q7n(n){this.a=n}function Y7n(n){this.a=n}function Z7n(n){this.a=n}function nkn(n){this.a=n}function ekn(n){this.a=n}function tkn(n){this.a=n}function ikn(n){this.a=n}function rkn(n){this.a=n}function ckn(n){this.a=n}function ukn(n){this.a=n}function okn(n){this.a=n}function skn(n){this.a=n}function fkn(n){this.a=n}function hkn(n){this.a=n}function lkn(n){this.a=n}function sl(n){this.a=n}function sg(n){this.a=n}function akn(n){this.a=n}function dkn(n){this.a=n}function bkn(n){this.a=n}function wkn(n){this.a=n}function gkn(n){this.a=n}function pkn(n){this.a=n}function mkn(n){this.a=n}function vkn(n){this.a=n}function kkn(n){this.a=n}function ykn(n){this.a=n}function jkn(n){this.a=n}function Ekn(n){this.a=n}function Mkn(n){this.a=n}function Tkn(n){this.a=n}function Ckn(n){this.a=n}function Skn(n){this.a=n}function Pkn(n){this.a=n}function Ikn(n){this.a=n}function Okn(n){this.a=n}function Akn(n){this.a=n}function Lkn(n){this.a=n}function Nkn(n){this.a=n}function Dkn(n){this.a=n}function $kn(n){this.a=n}function xkn(n){this.a=n}function Rkn(n){this.a=n}function LE(n){this.a=n}function Kkn(n){this.f=n}function Bkn(n){this.a=n}function Fkn(n){this.a=n}function _kn(n){this.a=n}function Hkn(n){this.a=n}function qkn(n){this.a=n}function Ukn(n){this.a=n}function Gkn(n){this.a=n}function zkn(n){this.a=n}function Xkn(n){this.a=n}function Vkn(n){this.a=n}function Wkn(n){this.a=n}function Jkn(n){this.a=n}function Qkn(n){this.a=n}function Ykn(n){this.a=n}function Zkn(n){this.a=n}function nyn(n){this.a=n}function eyn(n){this.a=n}function tyn(n){this.a=n}function iyn(n){this.a=n}function ryn(n){this.a=n}function cyn(n){this.a=n}function uyn(n){this.a=n}function oyn(n){this.a=n}function syn(n){this.a=n}function fyn(n){this.a=n}function hyn(n){this.a=n}function lyn(n){this.a=n}function ayn(n){this.a=n}function tL(n){this.a=n}function $G(n){this.a=n}function lt(n){this.b=n}function dyn(n){this.a=n}function byn(n){this.a=n}function wyn(n){this.a=n}function gyn(n){this.a=n}function pyn(n){this.a=n}function myn(n){this.a=n}function vyn(n){this.a=n}function kyn(n){this.b=n}function yyn(n){this.a=n}function X9(n){this.a=n}function jyn(n){this.a=n}function Eyn(n){this.a=n}function xG(n){this.c=n}function NE(n){this.e=n}function DE(n){this.a=n}function $E(n){this.a=n}function iL(n){this.a=n}function Myn(n){this.d=n}function Tyn(n){this.a=n}function RG(n){this.a=n}function KG(n){this.a=n}function Wd(n){this.e=n}function Ife(){this.a=0}function de(){Hu(this)}function Z(){pN(this)}function rL(){sOn(this)}function Cyn(){}function Jd(){this.c=Gdn}function Syn(n,e){n.b+=e}function Ofe(n,e){e.Wb(n)}function Afe(n){return n.a}function Lfe(n){return n.a}function Nfe(n){return n.a}function Dfe(n){return n.a}function $fe(n){return n.a}function T(n){return n.e}function xfe(){return null}function Rfe(){return null}function Kfe(){Ez(),pNe()}function Bfe(n){n.b.Of(n.e)}function Pyn(n){n.b=new ML}function Wv(n,e){n.b=e-n.b}function Jv(n,e){n.a=e-n.a}function Fn(n,e){n.push(e)}function Iyn(n,e){n.sort(e)}function Oyn(n,e){e.jd(n.a)}function Ffe(n,e){gi(e,n)}function _fe(n,e,t){n.Yd(t,e)}function V9(n,e){n.e=e,e.b=n}function BG(n){oh(),this.a=n}function Ayn(n){oh(),this.a=n}function Lyn(n){oh(),this.a=n}function cL(n){mb(),this.a=n}function Nyn(n){A4(),XF.le(n)}function FG(){FG=R,new de}function Ga(){YCn.call(this)}function _G(){YCn.call(this)}function HG(){Ga.call(this)}function uL(){Ga.call(this)}function Dyn(){Ga.call(this)}function W9(){Ga.call(this)}function Mu(){Ga.call(this)}function rp(){Ga.call(this)}function Ie(){Ga.call(this)}function Ko(){Ga.call(this)}function $yn(){Ga.call(this)}function nc(){Ga.call(this)}function xyn(){Ga.call(this)}function Ryn(){this.a=this}function xE(){this.Bb|=256}function Kyn(){this.b=new GTn}function I0(n,e){n.length=e}function RE(n,e){nn(n.a,e)}function Hfe(n,e){dnn(n.c,e)}function qfe(n,e){fi(n.b,e)}function Ufe(n,e){uS(n.a,e)}function Gfe(n,e){cx(n.a,e)}function t4(n,e){it(n.e,e)}function cp(n){jS(n.c,n.b)}function zfe(n,e){n.kc().Nb(e)}function qG(n){this.a=K5e(n)}function ni(){this.a=new de}function Byn(){this.a=new de}function UG(){this.a=new rMn}function KE(){this.a=new Z}function oL(){this.a=new Z}function GG(){this.a=new Z}function hs(){this.a=new c0n}function za(){this.a=new DNn}function zG(){this.a=new FU}function XG(){this.a=new CAn}function VG(){this.a=new KSn}function Fyn(){this.a=new Z}function _yn(){this.a=new Z}function Hyn(){this.a=new Z}function WG(){this.a=new Z}function qyn(){this.d=new Z}function Uyn(){this.a=new zAn}function Gyn(){this.a=new ni}function zyn(){this.a=new de}function Xyn(){this.b=new de}function Vyn(){this.b=new Z}function JG(){this.e=new Z}function Wyn(){this.a=new Z5n}function Jyn(){this.d=new Z}function Qyn(){QOn.call(this)}function Yyn(){QOn.call(this)}function Zyn(){Z.call(this)}function QG(){HG.call(this)}function YG(){KE.call(this)}function njn(){qM.call(this)}function ejn(){WG.call(this)}function Qv(){Cyn.call(this)}function sL(){Qv.call(this)}function up(){Cyn.call(this)}function ZG(){up.call(this)}function tjn(){iz.call(this)}function ijn(){iz.call(this)}function rjn(){iz.call(this)}function cjn(){rz.call(this)}function Yv(){svn.call(this)}function nz(){svn.call(this)}function Tu(){Mt.call(this)}function ujn(){yjn.call(this)}function ojn(){yjn.call(this)}function sjn(){de.call(this)}function fjn(){de.call(this)}function hjn(){de.call(this)}function fL(){cxn.call(this)}function ljn(){ni.call(this)}function ajn(){xE.call(this)}function hL(){RX.call(this)}function ez(){de.call(this)}function lL(){RX.call(this)}function aL(){de.call(this)}function djn(){de.call(this)}function tz(){TE.call(this)}function bjn(){tz.call(this)}function wjn(){TE.call(this)}function gjn(){iG.call(this)}function iz(){this.a=new ni}function pjn(){this.a=new de}function mjn(){this.a=new Z}function rz(){this.a=new de}function op(){this.a=new Mt}function vjn(){this.j=new Z}function kjn(){this.a=new mEn}function yjn(){this.a=new mvn}function cz(){this.a=new Z4n}function Zv(){Zv=R,FF=new Ht}function dL(){dL=R,_F=new Ejn}function bL(){bL=R,HF=new jjn}function jjn(){XA.call(this,"")}function Ejn(){XA.call(this,"")}function Mjn(n){P$n.call(this,n)}function Tjn(n){P$n.call(this,n)}function uz(n){sG.call(this,n)}function oz(n){XEn.call(this,n)}function Xfe(n){XEn.call(this,n)}function Vfe(n){oz.call(this,n)}function Wfe(n){oz.call(this,n)}function Jfe(n){oz.call(this,n)}function Cjn(n){zD.call(this,n)}function Sjn(n){zD.call(this,n)}function Pjn(n){uPn.call(this,n)}function Ijn(n){Oz.call(this,n)}function n6(n){WE.call(this,n)}function sz(n){WE.call(this,n)}function Ojn(n){WE.call(this,n)}function fz(n){mje.call(this,n)}function hz(n){fz.call(this,n)}function ec(n){SIn.call(this,n)}function Ajn(n){ec.call(this,n)}function sp(){U9.call(this,{})}function Ljn(){Ljn=R,dQn=new Tbn}function BE(){BE=R,GF=new PCn}function Njn(){Njn=R,uun=new Ku}function lz(){lz=R,sun=new D1}function FE(){FE=R,C8=new $1}function wL(n){b4(),this.a=n}function gL(n){KQ(),this.a=n}function Qd(n){nD(),this.f=n}function pL(n){nD(),this.f=n}function Djn(n){bPn(),this.a=n}function $jn(n){n.b=null,n.c=0}function Qfe(n,e){n.e=e,bqn(n,e)}function Yfe(n,e){n.a=e,cEe(n)}function mL(n,e,t){n.a[e.g]=t}function Zfe(n,e,t){kke(t,n,e)}function nhe(n,e){Wae(e.i,n.n)}function xjn(n,e){v6e(n).Cd(e)}function ehe(n,e){n.a.ec().Mc(e)}function Rjn(n,e){return n.g-e.g}function the(n,e){return n*n/e}function on(n){return Jn(n),n}function $(n){return Jn(n),n}function J9(n){return Jn(n),n}function ihe(n){return new SE(n)}function rhe(n){return new q0(n)}function az(n){return Jn(n),n}function che(n){return Jn(n),n}function _E(n){ec.call(this,n)}function Or(n){ec.call(this,n)}function Kjn(n){ec.call(this,n)}function vL(n){SIn.call(this,n)}function i4(n){ec.call(this,n)}function Gn(n){ec.call(this,n)}function Ar(n){ec.call(this,n)}function Bjn(n){ec.call(this,n)}function fp(n){ec.call(this,n)}function Fl(n){ec.call(this,n)}function _l(n){ec.call(this,n)}function hp(n){ec.call(this,n)}function eh(n){ec.call(this,n)}function kL(n){ec.call(this,n)}function Ne(n){ec.call(this,n)}function Fu(n){Jn(n),this.a=n}function dz(n){return ld(n),n}function e6(n){TW(n,n.length)}function t6(n){return n.b==n.c}function O0(n){return!!n&&n.b}function uhe(n){return!!n&&n.k}function ohe(n){return!!n&&n.j}function she(n,e,t){n.c.Ef(e,t)}function Fjn(n,e){n.be(e),e.ae(n)}function lp(n){oh(),this.a=Pe(n)}function yL(){this.a=Ae(Pe(ur))}function _jn(){throw T(new Ie)}function fhe(){throw T(new Ie)}function bz(){throw T(new Ie)}function Hjn(){throw T(new Ie)}function hhe(){throw T(new Ie)}function lhe(){throw T(new Ie)}function HE(){HE=R,A4()}function Hl(){G9.call(this,"")}function i6(){G9.call(this,"")}function x1(){G9.call(this,"")}function fg(){G9.call(this,"")}function wz(n){Or.call(this,n)}function gz(n){Or.call(this,n)}function th(n){Gn.call(this,n)}function r4(n){Q3.call(this,n)}function qjn(n){r4.call(this,n)}function jL(n){KM.call(this,n)}function EL(n){WX.call(this,n,0)}function ML(){oJ.call(this,12,3)}function C(n,e){return kAn(n,e)}function qE(n,e){return o$(n,e)}function ahe(n,e){return n.a-e.a}function dhe(n,e){return n.a-e.a}function bhe(n,e){return n.a-e.a}function whe(n,e){return e in n.a}function Ujn(n){return n.a?n.b:0}function ghe(n){return n.a?n.b:0}function phe(n,e,t){e.Cd(n.a[t])}function mhe(n,e,t){e.Pe(n.a[t])}function vhe(n,e){n.b=new rr(e)}function khe(n,e){return n.b=e,n}function Gjn(n,e){return n.c=e,n}function zjn(n,e){return n.f=e,n}function yhe(n,e){return n.g=e,n}function pz(n,e){return n.a=e,n}function mz(n,e){return n.f=e,n}function jhe(n,e){return n.k=e,n}function vz(n,e){return n.a=e,n}function Ehe(n,e){return n.e=e,n}function kz(n,e){return n.e=e,n}function Mhe(n,e){return n.f=e,n}function The(n,e){n.b=!0,n.d=e}function Che(n,e){return n.b-e.b}function She(n,e){return n.g-e.g}function Phe(n,e){return n?0:e-1}function Xjn(n,e){return n?0:e-1}function Ihe(n,e){return n?e-1:0}function Ohe(n,e){return n.s-e.s}function Ahe(n,e){return e.rg(n)}function Yd(n,e){return n.b=e,n}function UE(n,e){return n.a=e,n}function Zd(n,e){return n.c=e,n}function nb(n,e){return n.d=e,n}function eb(n,e){return n.e=e,n}function yz(n,e){return n.f=e,n}function r6(n,e){return n.a=e,n}function c4(n,e){return n.b=e,n}function u4(n,e){return n.c=e,n}function an(n,e){return n.c=e,n}function Pn(n,e){return n.b=e,n}function dn(n,e){return n.d=e,n}function bn(n,e){return n.e=e,n}function Lhe(n,e){return n.f=e,n}function wn(n,e){return n.g=e,n}function gn(n,e){return n.a=e,n}function pn(n,e){return n.i=e,n}function mn(n,e){return n.j=e,n}function Nhe(n,e){ua(),ic(e,n)}function Dhe(n,e,t){J0e(n.a,e,t)}function GE(n){$N.call(this,n)}function Vjn(n){Z5e.call(this,n)}function Wjn(n){POn.call(this,n)}function jz(n){POn.call(this,n)}function R1(n){Pb.call(this,n)}function Jjn(n){MD.call(this,n)}function Qjn(n){MD.call(this,n)}function Yjn(){AX.call(this,"")}function Ni(){this.a=0,this.b=0}function Zjn(){this.b=0,this.a=0}function nEn(n,e){n.b=0,Z0(n,e)}function eEn(n,e){return n.k=e,n}function $he(n,e){return n.j=e,n}function xhe(n,e){n.c=e,n.b=!0}function tEn(){tEn=R,CQn=Xke()}function K1(){K1=R,voe=rke()}function iEn(){iEn=R,Ci=gye()}function Ez(){Ez=R,La=z4()}function o4(){o4=R,Udn=cke()}function rEn(){rEn=R,ise=uke()}function Mz(){Mz=R,yc=tEe()}function of(n){return n.e&&n.e()}function cEn(n){return n.l|n.m<<22}function uEn(n,e){return n.c._b(e)}function oEn(n,e){return rKn(n.b,e)}function TL(n){return n?n.d:null}function Rhe(n){return n?n.g:null}function Khe(n){return n?n.i:null}function Xa(n){return ll(n),n.o}function hg(n,e){return n.a+=e,n}function CL(n,e){return n.a+=e,n}function ql(n,e){return n.a+=e,n}function tb(n,e){return n.a+=e,n}function Tz(n,e){for(;n.Bd(e););}function zE(n){this.a=new ap(n)}function sEn(){throw T(new Ie)}function fEn(){throw T(new Ie)}function hEn(){throw T(new Ie)}function lEn(){throw T(new Ie)}function aEn(){throw T(new Ie)}function dEn(){throw T(new Ie)}function Ul(n){this.a=new iD(n)}function bEn(){this.a=new R5(Bln)}function wEn(){this.b=new R5(rln)}function gEn(){this.a=new R5(f1n)}function pEn(){this.b=new R5(xq)}function mEn(){this.b=new R5(xq)}function XE(n){this.a=0,this.b=n}function Cz(n){zGn(),ONe(this,n)}function s4(n){return X1(n),n.a}function Q9(n){return n.b!=n.d.c}function Sz(n,e){return n.d[e.p]}function vEn(n,e){return XCe(n,e)}function Pz(n,e,t){n.splice(e,t)}function lg(n,e){for(;n.Re(e););}function kEn(n){n.c?Lqn(n):Nqn(n)}function yEn(){throw T(new Ie)}function jEn(){throw T(new Ie)}function EEn(){throw T(new Ie)}function MEn(){throw T(new Ie)}function TEn(){throw T(new Ie)}function CEn(){throw T(new Ie)}function SEn(){throw T(new Ie)}function PEn(){throw T(new Ie)}function IEn(){throw T(new Ie)}function OEn(){throw T(new Ie)}function Bhe(){throw T(new nc)}function Fhe(){throw T(new nc)}function Y9(n){this.a=new AEn(n)}function AEn(n){Ume(this,n,jje())}function Z9(n){return!n||oOn(n)}function n7(n){return nh[n]!=-1}function _he(){cI!=0&&(cI=0),uI=-1}function LEn(){BF==null&&(BF=[])}function e7(n,e){Tg.call(this,n,e)}function f4(n,e){e7.call(this,n,e)}function NEn(n,e){this.a=n,this.b=e}function DEn(n,e){this.a=n,this.b=e}function $En(n,e){this.a=n,this.b=e}function xEn(n,e){this.a=n,this.b=e}function REn(n,e){this.a=n,this.b=e}function KEn(n,e){this.a=n,this.b=e}function BEn(n,e){this.a=n,this.b=e}function h4(n,e){this.e=n,this.d=e}function Iz(n,e){this.b=n,this.c=e}function FEn(n,e){this.b=n,this.a=e}function _En(n,e){this.b=n,this.a=e}function HEn(n,e){this.b=n,this.a=e}function qEn(n,e){this.b=n,this.a=e}function UEn(n,e){this.a=n,this.b=e}function SL(n,e){this.a=n,this.b=e}function GEn(n,e){this.a=n,this.f=e}function ib(n,e){this.g=n,this.i=e}function je(n,e){this.f=n,this.g=e}function zEn(n,e){this.b=n,this.c=e}function XEn(n){BX(n.dc()),this.c=n}function Hhe(n,e){this.a=n,this.b=e}function VEn(n,e){this.a=n,this.b=e}function WEn(n){this.a=u(Pe(n),15)}function Oz(n){this.a=u(Pe(n),15)}function JEn(n){this.a=u(Pe(n),85)}function VE(n){this.b=u(Pe(n),85)}function WE(n){this.b=u(Pe(n),51)}function JE(){this.q=new y.Date}function PL(n,e){this.a=n,this.b=e}function QEn(n,e){return Zc(n.b,e)}function t7(n,e){return n.b.Hc(e)}function YEn(n,e){return n.b.Ic(e)}function ZEn(n,e){return n.b.Qc(e)}function nMn(n,e){return n.b.Hc(e)}function eMn(n,e){return n.c.uc(e)}function tMn(n,e){return rt(n.c,e)}function sf(n,e){return n.a._b(e)}function iMn(n,e){return n>e&&e<W5}function c6(n){return n.f.c+n.i.c}function qhe(n){return zIn(),n?aQn:lQn}function ap(n){wRn.call(this,n,0)}function rMn(){iD.call(this,null)}function dp(n){this.c=n,i$n(this)}function Mt(){jCn(this),vo(this)}function fl(){fl=R,pQn=new Cbn}function l4(){l4=R,fv=new Pbn}function A0(){A0=R,ZF=new qTn}function QE(){QE=R,PQn=new UTn}function a4(){a4=R,$un=new Bbn}function Az(){i$.call(this,null)}function Va(){Va=R,v3=new Vbn}function qt(n,e){X1(n),n.a.Nb(e)}function Uhe(n,e){return n.a.Xc(e)}function Ghe(n,e){return n.a.Yc(e)}function IL(n,e){return n.a.$c(e)}function OL(n,e){return n.a._c(e)}function zhe(n,e){return n.Gc(e),n}function Xhe(n,e){return Ki(n,e),n}function Vhe(n,e){aR(H(n.a),e)}function Whe(n,e){aR(H(n.a),e)}function cMn(n,e){return n.Gc(e),n}function Jhe(n,e){return n.a.f=e,n}function uMn(n,e){return n.a.d=e,n}function oMn(n,e){return n.a.g=e,n}function sMn(n,e){return n.a.j=e,n}function As(n,e){return n.a.a=e,n}function Ls(n,e){return n.a.d=e,n}function Ns(n,e){return n.a.e=e,n}function Ds(n,e){return n.a.g=e,n}function i7(n,e){return n.a.f=e,n}function Qhe(n){return n.b=!1,n}function fMn(){fMn=R,KQn=new Zbn}function YE(){YE=R,d_=new bSn}function Lz(){Lz=R,jZn=new z0n}function hMn(){hMn=R,EZn=new Z0n}function Nz(){Nz=R,MZn=new wIn}function Dz(){Dz=R,Aon=new iwn}function lMn(){lMn=R,NZn=new dwn}function u6(){u6=R,$Zn=new bwn}function r7(){r7=R,BZn=new _wn}function c7(){c7=R,KZn=new Ni}function aMn(){aMn=R,qZn=new Tgn}function o6(){o6=R,QZn=new upn}function ZE(){ZE=R,w2=new Opn}function nM(){nM=R,Jte=new Zmn}function eM(){eM=R,Rq=new bMn}function tM(){tM=R,Kq=new dSn}function s6(){s6=R,Hj=new bOn}function dMn(){Y$n(),this.c=new ML}function bMn(){je.call(this,VXn,0)}function Yhe(n,e,t){Lr(n.d,e.f,t)}function Zhe(n,e,t,i){I9e(n,i,e,t)}function nle(n,e,t,i){nCe(i,n,e,t)}function ele(n,e,t,i){OLe(i,n,e,t)}function f6(n,e){s1(n.c.c,e.b,e)}function rb(n,e){s1(n.c.b,e.c,e)}function tle(n){return n.e.b+n.f.b}function ile(n){return n.e.a+n.f.a}function rle(n){return n.b?n.b:n.a}function cle(n){return(n.c+n.a)/2}function wMn(n,e){return B7e(n.a,e)}function h6(n,e){return n.a=e.g,n}function $z(){$z=R,qdn=new djn}function gMn(){gMn=R,Boe=new hjn}function cb(){cb=R,poe=new nvn}function pMn(){pMn=R,Toe=new lvn}function mMn(){mMn=R,Koe=new fjn}function B1(){B1=R,Is=new ez}function iM(){iM=R,yA=new de}function l6(){l6=R,MU=new CCn}function Gl(){Gl=R,dE=new SCn}function AL(){AL=R,Zoe=new C6n}function dr(){dr=R,ese=new S6n}function F1(){F1=R,xa=new I5n}function xz(){xz=R,nbn=new Z}function rM(n){return u(n,44).ld()}function LL(n){return n.b<n.d.gc()}function ule(n,e){return e.split(n)}function NL(n,e){return Ec(n,e)>0}function DL(n,e){return Ec(n,e)<0}function vMn(n,e){return JN(n.a,e)}function ole(n,e){yAn.call(this,n,e)}function Rz(n){wD(),uPn.call(this,n)}function Kz(n,e){bIn(n,n.length,e)}function u7(n,e){HIn(n,n.length,e)}function a6(n,e){return n.a.get(e)}function kMn(n,e){return Zc(n.e,e)}function Bz(n){return Jn(n),!1}function Fz(n){this.a=u(Pe(n),229)}function cM(n){On.call(this,n,21)}function uM(n,e){je.call(this,n,e)}function $L(n,e){je.call(this,n,e)}function yMn(n,e){this.b=n,this.a=e}function oM(n,e){this.d=n,this.e=e}function jMn(n,e){this.a=n,this.b=e}function EMn(n,e){this.a=n,this.b=e}function MMn(n,e){this.a=n,this.b=e}function TMn(n,e){this.a=n,this.b=e}function bp(n,e){this.a=n,this.b=e}function CMn(n,e){this.b=n,this.a=e}function _z(n,e){this.b=n,this.a=e}function Hz(n,e){je.call(this,n,e)}function qz(n,e){je.call(this,n,e)}function ag(n,e){je.call(this,n,e)}function xL(n,e){je.call(this,n,e)}function RL(n,e){je.call(this,n,e)}function KL(n,e){je.call(this,n,e)}function sM(n,e){je.call(this,n,e)}function Uz(n,e){this.b=n,this.a=e}function fM(n,e){je.call(this,n,e)}function Gz(n,e){this.b=n,this.a=e}function hM(n,e){je.call(this,n,e)}function SMn(n,e){this.b=n,this.a=e}function zz(n,e){je.call(this,n,e)}function BL(n,e){je.call(this,n,e)}function o7(n,e){je.call(this,n,e)}function d6(n,e,t){n.splice(e,0,t)}function sle(n,e,t){n.Mb(t)&&e.Cd(t)}function fle(n,e,t){e.Pe(n.a.Ye(t))}function hle(n,e,t){e.Dd(n.a.Ze(t))}function lle(n,e,t){e.Cd(n.a.Kb(t))}function ale(n,e){return Su(n.c,e)}function dle(n,e){return Su(n.e,e)}function lM(n,e){je.call(this,n,e)}function aM(n,e){je.call(this,n,e)}function b6(n,e){je.call(this,n,e)}function Xz(n,e){je.call(this,n,e)}function ei(n,e){je.call(this,n,e)}function dM(n,e){je.call(this,n,e)}function PMn(n,e){this.a=n,this.b=e}function IMn(n,e){this.a=n,this.b=e}function OMn(n,e){this.a=n,this.b=e}function AMn(n,e){this.a=n,this.b=e}function LMn(n,e){this.a=n,this.b=e}function NMn(n,e){this.a=n,this.b=e}function DMn(n,e){this.b=n,this.a=e}function $Mn(n,e){this.b=n,this.a=e}function Vz(n,e){this.b=n,this.a=e}function d4(n,e){this.c=n,this.d=e}function xMn(n,e){this.e=n,this.d=e}function RMn(n,e){this.a=n,this.b=e}function KMn(n,e){this.a=n,this.b=e}function BMn(n,e){this.a=n,this.b=e}function FMn(n,e){this.b=n,this.a=e}function _Mn(n,e){this.b=e,this.c=n}function bM(n,e){je.call(this,n,e)}function s7(n,e){je.call(this,n,e)}function FL(n,e){je.call(this,n,e)}function Wz(n,e){je.call(this,n,e)}function w6(n,e){je.call(this,n,e)}function _L(n,e){je.call(this,n,e)}function HL(n,e){je.call(this,n,e)}function f7(n,e){je.call(this,n,e)}function Jz(n,e){je.call(this,n,e)}function qL(n,e){je.call(this,n,e)}function g6(n,e){je.call(this,n,e)}function Qz(n,e){je.call(this,n,e)}function p6(n,e){je.call(this,n,e)}function m6(n,e){je.call(this,n,e)}function L0(n,e){je.call(this,n,e)}function UL(n,e){je.call(this,n,e)}function GL(n,e){je.call(this,n,e)}function Yz(n,e){je.call(this,n,e)}function h7(n,e){je.call(this,n,e)}function dg(n,e){je.call(this,n,e)}function zL(n,e){je.call(this,n,e)}function wM(n,e){je.call(this,n,e)}function l7(n,e){je.call(this,n,e)}function N0(n,e){je.call(this,n,e)}function gM(n,e){je.call(this,n,e)}function Zz(n,e){je.call(this,n,e)}function XL(n,e){je.call(this,n,e)}function VL(n,e){je.call(this,n,e)}function WL(n,e){je.call(this,n,e)}function JL(n,e){je.call(this,n,e)}function QL(n,e){je.call(this,n,e)}function YL(n,e){je.call(this,n,e)}function ZL(n,e){je.call(this,n,e)}function HMn(n,e){this.b=n,this.a=e}function nX(n,e){je.call(this,n,e)}function qMn(n,e){this.a=n,this.b=e}function UMn(n,e){this.a=n,this.b=e}function GMn(n,e){this.a=n,this.b=e}function eX(n,e){je.call(this,n,e)}function tX(n,e){je.call(this,n,e)}function zMn(n,e){this.a=n,this.b=e}function ble(n,e){return k4(),e!=n}function a7(n){return oe(n.a),n.b}function nN(n){return yMe(n,n.c),n}function XMn(){return tEn(),new CQn}function VMn(){VM(),this.a=new vV}function WMn(){AS(),this.a=new ni}function JMn(){DD(),this.b=new ni}function QMn(n,e){this.b=n,this.d=e}function YMn(n,e){this.a=n,this.b=e}function ZMn(n,e){this.a=n,this.b=e}function nTn(n,e){this.a=n,this.b=e}function eTn(n,e){this.b=n,this.a=e}function iX(n,e){je.call(this,n,e)}function rX(n,e){je.call(this,n,e)}function pM(n,e){je.call(this,n,e)}function ub(n,e){je.call(this,n,e)}function eN(n,e){je.call(this,n,e)}function mM(n,e){je.call(this,n,e)}function cX(n,e){je.call(this,n,e)}function uX(n,e){je.call(this,n,e)}function d7(n,e){je.call(this,n,e)}function oX(n,e){je.call(this,n,e)}function tN(n,e){je.call(this,n,e)}function vM(n,e){je.call(this,n,e)}function iN(n,e){je.call(this,n,e)}function rN(n,e){je.call(this,n,e)}function cN(n,e){je.call(this,n,e)}function uN(n,e){je.call(this,n,e)}function sX(n,e){je.call(this,n,e)}function oN(n,e){je.call(this,n,e)}function fX(n,e){je.call(this,n,e)}function b7(n,e){je.call(this,n,e)}function sN(n,e){je.call(this,n,e)}function hX(n,e){je.call(this,n,e)}function w7(n,e){je.call(this,n,e)}function lX(n,e){je.call(this,n,e)}function tTn(n,e){this.b=n,this.a=e}function iTn(n,e){this.b=n,this.a=e}function rTn(n,e){this.b=n,this.a=e}function cTn(n,e){this.b=n,this.a=e}function aX(n,e){this.a=n,this.b=e}function uTn(n,e){this.a=n,this.b=e}function oTn(n,e){this.a=n,this.b=e}function V(n,e){this.a=n,this.b=e}function v6(n,e){je.call(this,n,e)}function g7(n,e){je.call(this,n,e)}function wp(n,e){je.call(this,n,e)}function k6(n,e){je.call(this,n,e)}function p7(n,e){je.call(this,n,e)}function fN(n,e){je.call(this,n,e)}function kM(n,e){je.call(this,n,e)}function y6(n,e){je.call(this,n,e)}function hN(n,e){je.call(this,n,e)}function yM(n,e){je.call(this,n,e)}function bg(n,e){je.call(this,n,e)}function m7(n,e){je.call(this,n,e)}function j6(n,e){je.call(this,n,e)}function E6(n,e){je.call(this,n,e)}function v7(n,e){je.call(this,n,e)}function jM(n,e){je.call(this,n,e)}function wg(n,e){je.call(this,n,e)}function lN(n,e){je.call(this,n,e)}function sTn(n,e){je.call(this,n,e)}function EM(n,e){je.call(this,n,e)}function fTn(n,e){this.a=n,this.b=e}function hTn(n,e){this.a=n,this.b=e}function lTn(n,e){this.a=n,this.b=e}function aTn(n,e){this.a=n,this.b=e}function dTn(n,e){this.a=n,this.b=e}function bTn(n,e){this.a=n,this.b=e}function bi(n,e){this.a=n,this.b=e}function wTn(n,e){this.a=n,this.b=e}function gTn(n,e){this.a=n,this.b=e}function pTn(n,e){this.a=n,this.b=e}function mTn(n,e){this.a=n,this.b=e}function vTn(n,e){this.a=n,this.b=e}function kTn(n,e){this.a=n,this.b=e}function yTn(n,e){this.b=n,this.a=e}function jTn(n,e){this.b=n,this.a=e}function ETn(n,e){this.b=n,this.a=e}function MTn(n,e){this.b=n,this.a=e}function TTn(n,e){this.a=n,this.b=e}function CTn(n,e){this.a=n,this.b=e}function MM(n,e){je.call(this,n,e)}function STn(n,e){this.a=n,this.b=e}function PTn(n,e){this.a=n,this.b=e}function gp(n,e){je.call(this,n,e)}function ITn(n,e){this.f=n,this.c=e}function dX(n,e){return Su(n.g,e)}function wle(n,e){return Su(e.b,n)}function OTn(n,e){return wx(n.a,e)}function gle(n,e){return-n.b.af(e)}function ple(n,e){n&&Ve(hE,n,e)}function bX(n,e){n.i=null,kC(n,e)}function mle(n,e,t){yFn(e,oR(n,t))}function vle(n,e,t){yFn(e,oR(n,t))}function kle(n,e){VTe(n.a,u(e,58))}function ATn(n,e){U4e(n.a,u(e,12))}function TM(n,e){this.a=n,this.b=e}function LTn(n,e){this.a=n,this.b=e}function NTn(n,e){this.a=n,this.b=e}function DTn(n,e){this.a=n,this.b=e}function $Tn(n,e){this.a=n,this.b=e}function xTn(n,e){this.d=n,this.b=e}function RTn(n,e){this.e=n,this.a=e}function k7(n,e){this.b=n,this.c=e}function wX(n,e){this.i=n,this.g=e}function gX(n,e){this.d=n,this.e=e}function yle(n,e){cme(new ne(n),e)}function CM(n){return Rk(n.c,n.b)}function Fr(n){return n?n.md():null}function x(n){return n??null}function Si(n){return typeof n===nK}function D0(n){return typeof n===i3}function $0(n){return typeof n===atn}function ob(n,e){return Ec(n,e)==0}function SM(n,e){return Ec(n,e)>=0}function M6(n,e){return Ec(n,e)!=0}function PM(n,e){return jve(n.Kc(),e)}function _1(n,e){return n.Rd().Xb(e)}function KTn(n){return eo(n),n.d.gc()}function IM(n){return x6(n==null),n}function T6(n,e){return n.a+=""+e,n}function Er(n,e){return n.a+=""+e,n}function C6(n,e){return n.a+=""+e,n}function Lc(n,e){return n.a+=""+e,n}function Be(n,e){return n.a+=""+e,n}function pX(n,e){return n.a+=""+e,n}function jle(n){return""+(Jn(n),n)}function BTn(n){Hu(this),s5(this,n)}function FTn(){uJ(),aW.call(this)}function _Tn(n,e){pW.call(this,n,e)}function HTn(n,e){pW.call(this,n,e)}function OM(n,e){pW.call(this,n,e)}function ir(n,e){xt(n,e,n.c.b,n.c)}function gg(n,e){xt(n,e,n.a,n.a.a)}function mX(n){return Nn(n,0),null}function qTn(){this.b=0,this.a=!1}function UTn(){this.b=0,this.a=!1}function GTn(){this.b=new ap(Q0(12))}function zTn(){zTn=R,kYn=Me(jx())}function XTn(){XTn=R,HZn=Me(iqn())}function VTn(){VTn=R,lre=Me(xxn())}function vX(){vX=R,FG(),fun=new de}function ff(n){return n.a=0,n.b=0,n}function WTn(n,e){return n.a=e.g+1,n}function aN(n,e){F0.call(this,n,e)}function Tn(n,e){Lt.call(this,n,e)}function pg(n,e){wX.call(this,n,e)}function JTn(n,e){M7.call(this,n,e)}function dN(n,e){Y4.call(this,n,e)}function Ge(n,e){iM(),Ve(yA,n,e)}function QTn(n,e){n.q.setTime(id(e))}function Ele(n){y.clearTimeout(n)}function Mle(n){return Pe(n),new S6(n)}function YTn(n,e){return x(n)===x(e)}function ZTn(n,e){return n.a.a.a.cc(e)}function bN(n,e){return qo(n.a,0,e)}function kX(n){return Swe(u(n,74))}function pp(n){return wi((Jn(n),n))}function Tle(n){return wi((Jn(n),n))}function nCn(n){return Yc(n.l,n.m,n.h)}function yX(n,e){return jc(n.a,e.a)}function Cle(n,e){return FIn(n.a,e.a)}function Sle(n,e){return bt(n.a,e.a)}function ih(n,e){return n.indexOf(e)}function Ple(n,e){return n.j[e.p]==2}function sb(n,e){return n==e?0:n?1:-1}function AM(n){return n<10?"0"+n:""+n}function Vr(n){return typeof n===atn}function Ile(n){return n==r0||n==Ow}function Ole(n){return n==r0||n==Iw}function eCn(n,e){return jc(n.g,e.g)}function jX(n){return qr(n.b.b,n,0)}function tCn(){rT.call(this,0,0,0,0)}function rh(){EG.call(this,new Ql)}function EX(n,e){R4(n,0,n.length,e)}function Ale(n,e){return nn(n.a,e),e}function Lle(n,e){return Rs(),e.a+=n}function Nle(n,e){return Rs(),e.a+=n}function Dle(n,e){return Rs(),e.c+=n}function $le(n,e){return nn(n.c,e),n}function MX(n,e){return To(n.a,e),n}function iCn(n){this.a=XMn(),this.b=n}function rCn(n){this.a=XMn(),this.b=n}function rr(n){this.a=n.a,this.b=n.b}function S6(n){this.a=n,GA.call(this)}function cCn(n){this.a=n,GA.call(this)}function mp(){Ho.call(this,0,0,0,0)}function LM(n){return To(new ii,n)}function uCn(n){return jT(u(n,123))}function fo(n){return n.vh()&&n.wh()}function mg(n){return n!=Qf&&n!=Ia}function hl(n){return n==Kr||n==Xr}function vg(n){return n==us||n==Wf}function oCn(n){return n==I2||n==P2}function xle(n,e){return jc(n.g,e.g)}function sCn(n,e){return new Y4(e,n)}function Rle(n,e){return new Y4(e,n)}function TX(n){return r0e(n.b.Kc(),n.a)}function wN(n,e){um(n,e),G4(n,n.D)}function gN(n,e,t){aC(n,e),lC(n,t)}function kg(n,e,t){Ob(n,e),Ib(n,t)}function Bo(n,e,t){eu(n,e),tu(n,t)}function y7(n,e,t){_4(n,e),q4(n,t)}function j7(n,e,t){H4(n,e),U4(n,t)}function fCn(n,e,t){oV.call(this,n,e,t)}function CX(n){ITn.call(this,n,!0)}function hCn(){uM.call(this,"Tail",3)}function lCn(){uM.call(this,"Head",1)}function H1(n){dh(),mve.call(this,n)}function fb(n){rT.call(this,n,n,n,n)}function pN(n){n.c=F(ki,Kn,1,0,5,1)}function SX(n){return n.b&&xR(n),n.a}function PX(n){return n.b&&xR(n),n.c}function Kle(n,e){Uf||(n.b=e)}function Ble(n,e){return n[n.length]=e}function Fle(n,e){return n[n.length]=e}function _le(n,e){return Y0(e,Pf(n))}function Hle(n,e){return Y0(e,Pf(n))}function qle(n,e){return pC(dD(n.d),e)}function Ule(n,e){return pC(dD(n.g),e)}function Gle(n,e){return pC(dD(n.j),e)}function Di(n,e){Lt.call(this,n.b,e)}function zle(n,e){ve(Pc(n.a),LAn(e))}function Xle(n,e){ve(no(n.a),NAn(e))}function Vle(n,e,t){Bo(t,t.i+n,t.j+e)}function aCn(n,e,t){$t(n.c[e.g],e.g,t)}function Wle(n,e,t){u(n.c,71).Gi(e,t)}function mN(n,e,t){return $t(n,e,t),t}function dCn(n){nu(n.Sf(),new L9n(n))}function yg(n){return n!=null?mt(n):0}function Jle(n){return n==null?0:mt(n)}function P6(n){nt(),Wd.call(this,n)}function bCn(n){this.a=n,HV.call(this,n)}function Cf(){Cf=R,y.Math.log(2)}function Fo(){Fo=R,rl=(pMn(),Toe)}function wCn(){wCn=R,QH=new y5(lU)}function Oe(){Oe=R,new gCn,new Z}function gCn(){new de,new de,new de}function Qle(){throw T(new Fl(QJn))}function Yle(){throw T(new Fl(QJn))}function Zle(){throw T(new Fl(YJn))}function n1e(){throw T(new Fl(YJn))}function vN(n){this.a=n,VE.call(this,n)}function kN(n){this.a=n,VE.call(this,n)}function pCn(n,e){mb(),this.a=n,this.b=e}function e1e(n,e){Pe(e),Sg(n).Jc(new Bu)}function Yt(n,e){QN(n.c,n.c.length,e)}function tc(n){return n.a<n.c.c.length}function IX(n){return n.a<n.c.a.length}function mCn(n,e){return n.a?n.b:e.We()}function jc(n,e){return n<e?-1:n>e?1:0}function OX(n,e){return Ec(n,e)>0?n:e}function Yc(n,e,t){return{l:n,m:e,h:t}}function t1e(n,e){n.a!=null&&ATn(e,n.a)}function i1e(n){Zi(n,null),Oi(n,null)}function r1e(n,e,t){return Ve(n.g,t,e)}function jg(n,e,t){return ZY(e,t,n.c)}function c1e(n,e,t){return Ve(n.k,t,e)}function u1e(n,e,t){return GAe(n,e,t),t}function o1e(n,e){return ko(),e.n.b+=n}function vCn(n){ZW.call(this),this.b=n}function AX(n){mV.call(this),this.a=n}function kCn(){uM.call(this,"Range",2)}function NM(n){this.b=n,this.a=new Z}function yCn(n){this.b=new $0n,this.a=n}function jCn(n){n.a=new AA,n.c=new AA}function ECn(n){n.a=new de,n.d=new de}function MCn(n){$D(n,null),xD(n,null)}function TCn(n,e){return XAe(n.a,e,null)}function s1e(n,e){return Ve(n.a,e.a,e)}function Fi(n){return new V(n.a,n.b)}function LX(n){return new V(n.c,n.d)}function f1e(n){return new V(n.c,n.d)}function I6(n,e){return cAe(n.c,n.b,e)}function L(n,e){return n!=null&&Cx(n,e)}function yN(n,e){return Yve(n.Kc(),e)!=-1}function DM(n){return n.Ob()?n.Pb():null}function h1e(n){this.b=(Ln(),new eL(n))}function NX(n){this.a=n,de.call(this)}function CCn(){M7.call(this,null,null)}function SCn(){_M.call(this,null,null)}function PCn(){je.call(this,"INSTANCE",0)}function ICn(){LZ(),this.a=new R5(Oon)}function OCn(n){return ws(n,0,n.length)}function l1e(n,e){return new VCn(n.Kc(),e)}function DX(n,e){return n.a.Bc(e)!=null}function ACn(n,e){me(n),n.Gc(u(e,15))}function a1e(n,e,t){n.c.bd(e,u(t,136))}function d1e(n,e,t){n.c.Ui(e,u(t,136))}function LCn(n,e){n.c&&(eW(e),rAn(e))}function b1e(n,e){n.q.setHours(e),H5(n,e)}function w1e(n,e){ab(e,n.a.a.a,n.a.a.b)}function g1e(n,e,t,i){$t(n.a[e.g],t.g,i)}function jN(n,e,t){return n.a[e.g][t.g]}function p1e(n,e){return n.e[e.c.p][e.p]}function m1e(n,e){return n.c[e.c.p][e.p]}function Sf(n,e){return n.a[e.c.p][e.p]}function v1e(n,e){return n.j[e.p]=OTe(e)}function EN(n,e){return n.a.Bc(e)!=null}function k1e(n,e){return $(B(e.a))<=n}function y1e(n,e){return $(B(e.a))>=n}function j1e(n,e){return KJ(n.f,e.Pg())}function vp(n,e){return n.a*e.a+n.b*e.b}function E1e(n,e){return n.a<IV(e)?-1:1}function M1e(n,e){return KJ(n.b,e.Pg())}function T1e(n,e,t){return t?e!=0:e!=n-1}function NCn(n,e,t){n.a=e^1502,n.b=t^NK}function C1e(n,e,t){return n.a=e,n.b=t,n}function ch(n,e){return n.a*=e,n.b*=e,n}function nn(n,e){return Fn(n.c,e),!0}function O6(n,e,t){return $t(n.g,e,t),t}function ti(n,e,t){R7.call(this,n,e,t)}function $M(n,e,t){ti.call(this,n,e,t)}function $X(n,e,t){QM.call(this,n,e,t)}function DCn(n,e,t){QM.call(this,n,e,t)}function $Cn(n,e,t){$X.call(this,n,e,t)}function Cu(n,e,t){ti.call(this,n,e,t)}function xCn(n,e,t){$M.call(this,n,e,t)}function xX(n,e,t){R7.call(this,n,e,t)}function Eg(n,e,t){R7.call(this,n,e,t)}function RCn(n,e,t){xX.call(this,n,e,t)}function xM(n){n.j=F(jun,J,319,0,0,1)}function Mg(){this.a=F(ki,Kn,1,8,5,1)}function RX(){this.Bb|=256,this.Bb|=512}function ne(n){this.i=n,this.f=this.i.j}function q1(n){this.c=n,this.a=this.c.a}function Tg(n,e){this.a=n,VE.call(this,e)}function KX(n,e){return H5e(n,new x1,e).a}function BX(n){if(!n)throw T(new W9)}function FX(n){if(!n)throw T(new Mu)}function _X(){_X=R,_X(),IQn=new Rbn}function KCn(){KCn=R,AL(),nse=new C8n}function b4(){b4=R,Lun=new wL(null)}function S1e(n){G7(n,TWn),SS(n,GLe(n))}function BCn(n){n.a=u(Un(n.b.a,4),129)}function FCn(n){n.a=u(Un(n.b.a,4),129)}function _Cn(n){n.b.Qb(),--n.d.f.d,fT(n.d)}function HX(n){this.a=n,H8n.call(this,n.d)}function HCn(n,e){this.a=n,EL.call(this,e)}function qCn(n,e){this.a=n,EL.call(this,e)}function UCn(n,e){this.a=n,EL.call(this,e)}function qX(n,e){this.a=e,EL.call(this,n)}function GCn(n,e){this.a=e,zD.call(this,n)}function zCn(n,e){this.a=n,zD.call(this,e)}function XCn(n,e){this.a=e,WE.call(this,n)}function VCn(n,e){this.a=e,WE.call(this,n)}function ce(n,e){return Pe(e),new XCn(n,e)}function WCn(n,e){return new k_n(n.a,n.b,e)}function UX(n,e,t){return n.indexOf(e,t)}function RM(n,e){return n.lastIndexOf(e)}function A6(n){return n==null?gu:Jr(n)}function P1e(n){return n==null?null:n.name}function I1e(n){return n.l+n.m*o3+n.h*vd}function O1e(n){return Q9(n.a)?DAn(n):null}function ls(n){G9.call(this,(Jn(n),n))}function mo(n){G9.call(this,(Jn(n),n))}function JCn(n){XA.call(this,u(Pe(n),34))}function QCn(n){XA.call(this,u(Pe(n),34))}function MN(n){EG.call(this,new XJ(n))}function KM(n){Q3.call(this,n),this.a=n}function GX(n){J3.call(this,n),this.a=n}function zX(n){r4.call(this,n),this.a=n}function YCn(){xM(this),TT(this),this.je()}function ZCn(n){this.a=n,ZA.call(this,n)}function ho(n){return oe(n.a!=null),n.a}function nSn(n,e){return nn(e.a,n.a),n.a}function eSn(n,e){return nn(e.b,n.a),n.a}function hb(n,e){return nn(e.a,n.a),n.a}function E7(n,e,t){return N$(n,e,e,t),n}function BM(n,e){return++n.b,nn(n.a,e)}function XX(n,e){return++n.b,du(n.a,e)}function A1e(n,e){return bt(n.c.d,e.c.d)}function L1e(n,e){return bt(n.c.c,e.c.c)}function N1e(n,e){return bt(n.n.a,e.n.a)}function lu(n,e){return u(ot(n.b,e),15)}function D1e(n,e){return n.n.b=(Jn(e),e)}function $1e(n,e){return n.n.b=(Jn(e),e)}function Su(n,e){return!!e&&n.b[e.g]==e}function L6(n){return tc(n.a)||tc(n.b)}function lb(n){return n.$H||(n.$H=++bDe)}function x1e(n){return n.a!=null?n.a:null}function R1e(n,e){return bt(n.e.b,e.e.b)}function K1e(n,e){return bt(n.e.a,e.e.a)}function B1e(n,e,t){return RLn(n,e,t,n.b)}function VX(n,e,t){return RLn(n,e,t,n.c)}function F1e(n){return Rs(),!!n&&!n.dc()}function tSn(){o6(),this.b=new w7n(this)}function FM(){FM=R,bI=new Lt(gXn,0)}function _n(){_n=R,ga=!1,ov=!0}function zl(n){var e;e=n.a,n.a=n.b,n.b=e}function M7(n,e){l6(),this.a=n,this.b=e}function _M(n,e){Gl(),this.b=n,this.c=e}function TN(n,e){nD(),this.f=e,this.d=n}function WX(n,e){RJ(e,n),this.d=n,this.c=e}function JX(n,e){uZ.call(this,n,e,null)}function iSn(n,e,t,i){mW.call(this,n,e,t,i)}function kp(n){this.d=n,ne.call(this,n)}function yp(n){this.c=n,ne.call(this,n)}function T7(n){this.c=n,kp.call(this,n)}function _1e(n){return new X0(3,n)}function Lh(n){return Mo(n,mw),new Gc(n)}function rSn(n){return A4(),parseInt(n)||-1}function H1e(n){return BE(),Ee((lAn(),oQn),n)}function w4(n,e,t){return UX(n,wu(e),t)}function CN(n,e){return new iPn(n,n.gc(),e)}function q1e(n,e){return eD(n.c).Md().Xb(e)}function g4(n,e,t){var i;i=n.fd(e),i.Rb(t)}function QX(n,e,t){u(lk(n,e),21).Fc(t)}function U1e(n,e,t){cx(n.a,t),uS(n.a,e)}function C7(n){L(n,158)&&u(n,158).pi()}function cSn(n){qV.call(this,n,null,null)}function SN(n){A0(),this.b=n,this.a=!0}function uSn(n){QE(),this.b=n,this.a=!0}function p4(n){return oe(n.b!=0),n.a.a.c}function $s(n){return oe(n.b!=0),n.c.b.c}function G1e(n,e){return N$(n,e,e+1,""),n}function kt(n,e){return!!n.q&&Zc(n.q,e)}function oSn(n){return n.b=u(XW(n.a),44)}function z1e(n){return n.f!=null?n.f:""+n.g}function PN(n){return n.f!=null?n.f:""+n.g}function X1e(n,e){return n>0?e/(n*n):e*100}function V1e(n,e){return n>0?e*e/n:e*e*100}function x0(n,e){return u(Df(n.a,e),34)}function W1e(n,e){return ua(),In(n,e.e,e)}function J1e(n,e,t){return nM(),t.Mg(n,e)}function Q1e(n){return kl(),n.e.a+n.f.a/2}function Y1e(n,e,t){return kl(),t.e.a-n*e}function Z1e(n){return kl(),n.e.b+n.f.b/2}function nae(n,e,t){return kl(),t.e.b-n*e}function sSn(n){n.d=new cSn(n),n.e=new de}function fSn(){this.a=new Mb,this.b=new Mb}function hSn(n){this.c=n,this.a=1,this.b=1}function lSn(n){YR(),Pyn(this),this.Ff(n)}function eae(n,e,t){YT(),n.pf(e)&&t.Cd(n)}function tae(n,e,t){return nn(e,jKn(n,t))}function ab(n,e,t){return n.a+=e,n.b+=t,n}function iae(n,e,t){return n.a*=e,n.b*=t,n}function YX(n,e){return n.a=e.a,n.b=e.b,n}function HM(n){return n.a=-n.a,n.b=-n.b,n}function N6(n,e,t){return n.a-=e,n.b-=t,n}function aSn(n){Mt.call(this),r5(this,n)}function dSn(){je.call(this,"GROW_TREE",0)}function bSn(){je.call(this,"POLYOMINO",0)}function lo(n,e,t){Ou.call(this,n,e,t,2)}function rae(n,e,t){v5(Pc(n.a),e,LAn(t))}function wSn(n,e){l6(),M7.call(this,n,e)}function ZX(n,e){Gl(),_M.call(this,n,e)}function gSn(n,e){Gl(),ZX.call(this,n,e)}function pSn(n,e){Gl(),_M.call(this,n,e)}function cae(n,e){return n.c.Fc(u(e,136))}function uae(n,e,t){v5(no(n.a),e,NAn(t))}function mSn(n){this.c=n,eu(n,0),tu(n,0)}function IN(n,e){Fo(),oT.call(this,n,e)}function vSn(n,e){Fo(),IN.call(this,n,e)}function nV(n,e){Fo(),IN.call(this,n,e)}function eV(n,e){Fo(),oT.call(this,n,e)}function kSn(n,e){Fo(),nV.call(this,n,e)}function ySn(n,e){Fo(),eV.call(this,n,e)}function jSn(n,e){Fo(),oT.call(this,n,e)}function oae(n,e,t){return e.zl(n.e,n.c,t)}function sae(n,e,t){return e.Al(n.e,n.c,t)}function tV(n,e,t){return qS(hk(n,e),t)}function ON(n,e){return ea(n.e,u(e,54))}function fae(n){return n==null?null:DLe(n)}function hae(n){return n==null?null:Sje(n)}function lae(n){return n==null?null:Jr(n)}function aae(n){return n==null?null:Jr(n)}function un(n){return x6(n==null||D0(n)),n}function B(n){return x6(n==null||$0(n)),n}function Ae(n){return x6(n==null||Si(n)),n}function ll(n){n.o==null&&cTe(n)}function iV(n){if(!n)throw T(new W9)}function dae(n){if(!n)throw T(new uL)}function oe(n){if(!n)throw T(new nc)}function R0(n){if(!n)throw T(new Mu)}function ESn(n){if(!n)throw T(new Ko)}function m4(){m4=R,aE=new ujn,new ojn}function Cg(){Cg=R,L2=new lt("root")}function rV(){cxn.call(this),this.Bb|=hr}function bae(n,e){this.d=n,c9n(this),this.b=e}function cV(n,e){i$.call(this,n),this.a=e}function uV(n,e){i$.call(this,n),this.a=e}function oV(n,e,t){VT.call(this,n,e,t,null)}function MSn(n,e,t){VT.call(this,n,e,t,null)}function S7(n,e){this.c=n,h4.call(this,n,e)}function D6(n,e){this.a=n,S7.call(this,n,e)}function sV(n){this.q=new y.Date(id(n))}function TSn(n){return n>8?0:n+1}function CSn(n,e){Uf||nn(n.a,e)}function wae(n,e){return c7(),Q4(e.d.i,n)}function gae(n,e){return Hp(),new tUn(e,n)}function pae(n,e,t){return n.Ne(e,t)<=0?t:e}function mae(n,e,t){return n.Ne(e,t)<=0?e:t}function vae(n,e){return u(Df(n.b,e),143)}function kae(n,e){return u(Df(n.c,e),233)}function AN(n){return u(sn(n.a,n.b),294)}function SSn(n){return new V(n.c,n.d+n.a)}function PSn(n){return Jn(n),n?1231:1237}function ISn(n){return ko(),oCn(u(n,203))}function K0(){K0=R,ron=jn((go(),Gd))}function yae(n,e){e.a?TMe(n,e):EN(n.a,e.b)}function P7(n,e,t){++n.j,n.tj(),t$(n,e,t)}function OSn(n,e,t){++n.j,n.qj(e,n.Zi(e,t))}function ASn(n,e,t){var i;i=n.fd(e),i.Rb(t)}function fV(n,e,t){return t=Po(n,e,6,t),t}function hV(n,e,t){return t=Po(n,e,3,t),t}function lV(n,e,t){return t=Po(n,e,9,t),t}function uh(n,e){return G7(e,$tn),n.f=e,n}function aV(n,e){return(e&et)%n.d.length}function LSn(n,e,t){return Gen(n.c,n.b,e,t)}function NSn(n,e){this.c=n,Pb.call(this,e)}function DSn(n,e){this.a=n,kyn.call(this,e)}function I7(n,e){this.a=n,kyn.call(this,e)}function Lt(n,e){lt.call(this,n),this.a=e}function dV(n,e){xG.call(this,n),this.a=e}function LN(n,e){xG.call(this,n),this.a=e}function jae(n){XY.call(this,0,0),this.f=n}function $Sn(n,e,t){return n.a+=ws(e,0,t),n}function O7(n){return!n.a&&(n.a=new Mbn),n.a}function bV(n,e){var t;return t=n.e,n.e=e,t}function wV(n,e){var t;return t=e,!!n.Fe(t)}function Eae(n,e){return _n(),n==e?0:n?1:-1}function B0(n,e){n.a.bd(n.b,e),++n.b,n.c=-1}function A7(n){n.b?A7(n.b):n.f.c.zc(n.e,n.d)}function xSn(n){Hu(n.e),n.d.b=n.d,n.d.a=n.d}function Mae(n,e,t){Va(),t9n(n,e.Ve(n.a,t))}function gV(n,e,t){return Ip(n,u(e,22),t)}function xs(n,e){return qE(new Array(e),n)}function Tae(n){return Se(U1(n,32))^Se(n)}function NN(n){return String.fromCharCode(n)}function Cae(n){return n==null?null:n.message}function Sae(n,e,t){return n.apply(e,t)}function Pae(n,e){var t;t=n[LK],t.call(n,e)}function Iae(n,e){var t;t=n[LK],t.call(n,e)}function Oae(n,e){return c7(),!Q4(e.d.i,n)}function pV(n,e,t,i){rT.call(this,n,e,t,i)}function RSn(){qM.call(this),this.a=new Ni}function mV(){this.n=new Ni,this.o=new Ni}function KSn(){this.b=new Ni,this.c=new Z}function BSn(){this.a=new Z,this.b=new Z}function FSn(){this.a=new FU,this.b=new Kyn}function vV(){this.b=new Ql,this.a=new Ql}function _Sn(){this.b=new ni,this.a=new ni}function HSn(){this.b=new de,this.a=new de}function qSn(){this.b=new wEn,this.a=new H3n}function USn(){this.a=new n8n,this.b=new Npn}function GSn(){this.a=new Z,this.d=new Z}function qM(){this.n=new up,this.i=new mp}function zSn(n){this.a=(Mo(n,mw),new Gc(n))}function XSn(n){this.a=(Mo(n,mw),new Gc(n))}function Aae(n){return n<100?null:new R1(n)}function Lae(n,e){return n.n.a=(Jn(e),e+10)}function Nae(n,e){return n.n.a=(Jn(e),e+10)}function Dae(n,e){return e==n||km(CS(e),n)}function VSn(n,e){return Ve(n.a,e,"")==null}function $ae(n,e){var t;return t=e.qi(n.a),t}function tt(n,e){return n.a+=e.a,n.b+=e.b,n}function mi(n,e){return n.a-=e.a,n.b-=e.b,n}function xae(n){return I0(n.j.c,0),n.a=-1,n}function kV(n,e,t){return t=Po(n,e,11,t),t}function Rae(n,e,t){t!=null&&mC(e,Rx(n,t))}function Kae(n,e,t){t!=null&&vC(e,Rx(n,t))}function jp(n,e,t,i){q.call(this,n,e,t,i)}function yV(n,e,t,i){q.call(this,n,e,t,i)}function WSn(n,e,t,i){yV.call(this,n,e,t,i)}function JSn(n,e,t,i){bT.call(this,n,e,t,i)}function DN(n,e,t,i){bT.call(this,n,e,t,i)}function jV(n,e,t,i){bT.call(this,n,e,t,i)}function QSn(n,e,t,i){DN.call(this,n,e,t,i)}function EV(n,e,t,i){DN.call(this,n,e,t,i)}function Dn(n,e,t,i){jV.call(this,n,e,t,i)}function YSn(n,e,t,i){EV.call(this,n,e,t,i)}function ZSn(n,e,t,i){yW.call(this,n,e,t,i)}function F0(n,e){Or.call(this,p8+n+Cd+e)}function MV(n,e){return n.jk().wi().ri(n,e)}function TV(n,e){return n.jk().wi().ti(n,e)}function nPn(n,e){return Jn(n),x(n)===x(e)}function Sn(n,e){return Jn(n),x(n)===x(e)}function Bae(n,e){return n.b.Bd(new EMn(n,e))}function Fae(n,e){return n.b.Bd(new MMn(n,e))}function ePn(n,e){return n.b.Bd(new TMn(n,e))}function _ae(n,e){return n.e=u(n.d.Kb(e),159)}function CV(n,e,t){return n.lastIndexOf(e,t)}function Hae(n,e,t){return bt(n[e.a],n[t.a])}function qae(n,e){return U(e,(cn(),Mj),n)}function Uae(n,e){return jc(e.a.d.p,n.a.d.p)}function Gae(n,e){return jc(n.a.d.p,e.a.d.p)}function zae(n,e){return bt(n.c-n.s,e.c-e.s)}function Xae(n,e){return bt(n.b.e.a,e.b.e.a)}function Vae(n,e){return bt(n.c.e.a,e.c.e.a)}function tPn(n){return n.c?qr(n.c.a,n,0):-1}function Ep(n){return n==Ud||n==tl||n==qc}function SV(n,e){this.c=n,oD.call(this,n,e)}function iPn(n,e,t){this.a=n,WX.call(this,e,t)}function rPn(n){this.c=n,OM.call(this,Ey,0)}function cPn(n,e,t){this.c=e,this.b=t,this.a=n}function L7(n){k4(),this.d=n,this.a=new Mg}function uPn(n){oh(),this.a=(Ln(),new r4(n))}function Wae(n,e){hl(n.f)?QMe(n,e):Pye(n,e)}function oPn(n,e){s0e.call(this,n,n.length,e)}function Jae(n,e){Uf||e&&(n.d=e)}function sPn(n,e){return L(e,15)&&xqn(n.c,e)}function Qae(n,e,t){return u(n.c,71).Wk(e,t)}function UM(n,e,t){return u(n.c,71).Xk(e,t)}function Yae(n,e,t){return oae(n,u(e,343),t)}function PV(n,e,t){return sae(n,u(e,343),t)}function Zae(n,e,t){return IFn(n,u(e,343),t)}function fPn(n,e,t){return _ye(n,u(e,343),t)}function $6(n,e){return e==null?null:tw(n.b,e)}function IV(n){return $0(n)?(Jn(n),n):n.ue()}function GM(n){return!isNaN(n)&&!isFinite(n)}function $N(n){jCn(this),vo(this),Ki(this,n)}function _u(n){pN(this),GV(this.c,0,n.Pc())}function _o(n,e,t){this.a=n,this.b=e,this.c=t}function hPn(n,e,t){this.a=n,this.b=e,this.c=t}function lPn(n,e,t){this.d=n,this.b=t,this.a=e}function aPn(n){this.a=n,fl(),vc(Date.now())}function dPn(n){bo(n.a),UJ(n.c,n.b),n.b=null}function xN(){xN=R,Aun=new $bn,SQn=new xbn}function bPn(){bPn=R,Ooe=F(ki,Kn,1,0,5,1)}function wPn(){wPn=R,Voe=F(ki,Kn,1,0,5,1)}function OV(){OV=R,Woe=F(ki,Kn,1,0,5,1)}function oh(){oh=R,new BG((Ln(),Ln(),sr))}function nde(n){return K4(),Ee((yDn(),OQn),n)}function ede(n){return Gu(),Ee((lDn(),xQn),n)}function tde(n){return YC(),Ee((JLn(),HQn),n)}function ide(n){return cC(),Ee((QLn(),qQn),n)}function rde(n){return DS(),Ee((Jxn(),UQn),n)}function cde(n){return wf(),Ee((fDn(),XQn),n)}function ude(n){return Uu(),Ee((sDn(),WQn),n)}function ode(n){return bu(),Ee((hDn(),QQn),n)}function sde(n){return VS(),Ee((zTn(),kYn),n)}function fde(n){return Db(),Ee((EDn(),jYn),n)}function hde(n){return Vp(),Ee((TDn(),MYn),n)}function lde(n){return C5(),Ee((MDn(),SYn),n)}function ade(n){return YE(),Ee((jLn(),PYn),n)}function dde(n){return uC(),Ee((YLn(),GYn),n)}function bde(n){return t5(),Ee((aDn(),pZn),n)}function wde(n){return Vi(),Ee((u$n(),yZn),n)}function gde(n){return nm(),Ee((SDn(),CZn),n)}function pde(n){return dd(),Ee((CDn(),LZn),n)}function AV(n,e){if(!n)throw T(new Gn(e))}function v4(n){if(!n)throw T(new Ar(dtn))}function RN(n,e){if(n!=e)throw T(new Ko)}function gPn(n,e,t){this.a=n,this.b=e,this.c=t}function LV(n,e,t){this.a=n,this.b=e,this.c=t}function pPn(n,e,t){this.a=n,this.b=e,this.c=t}function zM(n,e,t){this.b=n,this.a=e,this.c=t}function NV(n,e,t){this.b=n,this.c=e,this.a=t}function DV(n,e,t){this.a=n,this.b=e,this.c=t}function XM(n,e,t){this.e=e,this.b=n,this.d=t}function mPn(n,e,t){this.b=n,this.a=e,this.c=t}function mde(n,e,t){return Va(),n.a.Yd(e,t),e}function KN(n){var e;return e=new u0n,e.e=n,e}function $V(n){var e;return e=new qyn,e.b=n,e}function N7(){N7=R,MI=new sgn,TI=new fgn}function VM(){VM=R,XZn=new xgn,zZn=new Rgn}function Rs(){Rs=R,YZn=new G2n,ZZn=new z2n}function vde(n){return Lb(),Ee((qNn(),fne),n)}function kde(n){return tr(),Ee((XTn(),HZn),n)}function yde(n){return AC(),Ee((IDn(),GZn),n)}function jde(n){return xf(),Ee((PDn(),tne),n)}function Ede(n){return ow(),Ee((o$n(),rne),n)}function Mde(n){return LS(),Ee(($xn(),hne),n)}function Tde(n){return Yp(),Ee((L$n(),lne),n)}function Cde(n){return QT(),Ee((cNn(),ane),n)}function Sde(n){return c5(),Ee((_Nn(),dne),n)}function Pde(n){return bC(),Ee((HNn(),bne),n)}function Ide(n){return o1(),Ee((s$n(),wne),n)}function Ode(n){return wk(),Ee((eNn(),gne),n)}function Ade(n){return jm(),Ee(($$n(),jne),n)}function Lde(n){return pr(),Ee((aRn(),Ene),n)}function Nde(n){return Z4(),Ee((GNn(),Mne),n)}function Dde(n){return vl(),Ee((zNn(),Cne),n)}function $de(n){return FT(),Ee((nNn(),Sne),n)}function xde(n){return Vk(),Ee((D$n(),yne),n)}function Rde(n){return hd(),Ee((UNn(),mne),n)}function Kde(n){return vS(),Ee((N$n(),vne),n)}function Bde(n){return sk(),Ee((tNn(),kne),n)}function Fde(n){return Yo(),Ee((h$n(),Pne),n)}function _de(n){return a1(),Ee((Xxn(),Yte),n)}function Hde(n){return w5(),Ee((XNn(),Zte),n)}function qde(n){return cw(),Ee((ODn(),nie),n)}function Ude(n){return T5(),Ee((f$n(),eie),n)}function Gde(n){return ps(),Ee((dRn(),tie),n)}function zde(n){return lh(),Ee((ADn(),iie),n)}function Xde(n){return dk(),Ee((iNn(),rie),n)}function Vde(n){return gr(),Ee((JNn(),uie),n)}function Wde(n){return PC(),Ee((VNn(),oie),n)}function Jde(n){return a5(),Ee((WNn(),sie),n)}function Qde(n){return om(),Ee((QNn(),fie),n)}function Yde(n){return dC(),Ee((YNn(),hie),n)}function Zde(n){return LC(),Ee((ZNn(),lie),n)}function nbe(n){return Ab(),Ee((oDn(),Sie),n)}function ebe(n){return Z6(),Ee((rNn(),Lie),n)}function tbe(n){return fh(),Ee((sNn(),Bie),n)}function ibe(n){return If(),Ee((fNn(),_ie),n)}function rbe(n){return af(),Ee((hNn(),tre),n)}function cbe(n){return Tb(),Ee((lNn(),fre),n)}function ube(n){return Qp(),Ee((KDn(),hre),n)}function obe(n){return F5(),Ee((VTn(),lre),n)}function sbe(n){return d5(),Ee((nDn(),are),n)}function fbe(n){return b5(),Ee((RDn(),$re),n)}function hbe(n){return RT(),Ee((uNn(),xre),n)}function lbe(n){return yC(),Ee((oNn(),_re),n)}function abe(n){return wS(),Ee((l$n(),qre),n)}function dbe(n){return Ik(),Ee((eDn(),Gre),n)}function bbe(n){return ZT(),Ee((aNn(),Ure),n)}function wbe(n){return sS(),Ee((xDn(),lce),n)}function gbe(n){return SC(),Ee((tDn(),ace),n)}function pbe(n){return XC(),Ee((iDn(),dce),n)}function mbe(n){return rS(),Ee((rDn(),wce),n)}function vbe(n){return _C(),Ee((cDn(),mce),n)}function kbe(n){return GT(),Ee((dNn(),Bce),n)}function ybe(n){return V4(),Ee((ZLn(),_Zn),n)}function jbe(n){return Vn(),Ee((x$n(),xZn),n)}function Ebe(n){return nC(),Ee((uDn(),Fce),n)}function Mbe(n){return D$(),Ee((bNn(),_ce),n)}function Tbe(n){return x5(),Ee((a$n(),qce),n)}function Cbe(n){return eM(),Ee((OLn(),Gce),n)}function Sbe(n){return $k(),Ee((bDn(),Uce),n)}function Pbe(n){return tM(),Ee((ALn(),Xce),n)}function Ibe(n){return ik(),Ee((wNn(),Vce),n)}function Obe(n){return Jk(),Ee((d$n(),Wce),n)}function Abe(n){return s6(),Ee((LLn(),lue),n)}function Lbe(n){return Tk(),Ee((gNn(),aue),n)}function Nbe(n){return pf(),Ee((w$n(),mue),n)}function Dbe(n){return l1(),Ee((Nxn(),kue),n)}function $be(n){return Bh(),Ee((R$n(),yue),n)}function xbe(n){return wd(),Ee((K$n(),Sue),n)}function Rbe(n){return ci(),Ee((b$n(),zue),n)}function Kbe(n){return $f(),Ee((wDn(),Xue),n)}function Bbe(n){return El(),Ee((BDn(),Vue),n)}function Fbe(n){return pS(),Ee((B$n(),Wue),n)}function _be(n){return jl(),Ee((dDn(),Que),n)}function Hbe(n){return Co(),Ee((FDn(),Zue),n)}function qbe(n){return lw(),Ee((Wxn(),noe),n)}function Ube(n){return Kg(),Ee((g$n(),eoe),n)}function Gbe(n){return Ai(),Ee((F$n(),toe),n)}function zbe(n){return zu(),Ee((_$n(),ioe),n)}function Xbe(n){return en(),Ee((p$n(),roe),n)}function Vbe(n){return go(),Ee((_Dn(),foe),n)}function Wbe(n){return io(),Ee((Vxn(),hoe),n)}function Jbe(n){return Gp(),Ee((gDn(),loe),n)}function Qbe(n,e){return Jn(n),n+(Jn(e),e)}function Ybe(n){return BN(),Ee((pNn(),aoe),n)}function Zbe(n){return qC(),Ee((HDn(),doe),n)}function n0e(n){return NC(),Ee((qDn(),goe),n)}function k4(){k4=R,tln=(en(),Wn),OO=Zn}function BN(){BN=R,vdn=new VPn,kdn=new NIn}function e0e(n){return!n.e&&(n.e=new Z),n.e}function FN(n,e){this.c=n,this.a=e,this.b=e-n}function vPn(n,e,t){this.a=n,this.b=e,this.c=t}function _N(n,e,t){this.a=n,this.b=e,this.c=t}function xV(n,e,t){this.a=n,this.b=e,this.c=t}function RV(n,e,t){this.a=n,this.b=e,this.c=t}function kPn(n,e,t){this.a=n,this.b=e,this.c=t}function yPn(n,e,t){this.a=n,this.b=e,this.c=t}function Xl(n,e,t){this.e=n,this.a=e,this.c=t}function jPn(n,e,t){Fo(),eJ.call(this,n,e,t)}function HN(n,e,t){Fo(),KW.call(this,n,e,t)}function KV(n,e,t){Fo(),KW.call(this,n,e,t)}function BV(n,e,t){Fo(),KW.call(this,n,e,t)}function EPn(n,e,t){Fo(),HN.call(this,n,e,t)}function FV(n,e,t){Fo(),HN.call(this,n,e,t)}function MPn(n,e,t){Fo(),FV.call(this,n,e,t)}function TPn(n,e,t){Fo(),KV.call(this,n,e,t)}function CPn(n,e,t){Fo(),BV.call(this,n,e,t)}function qN(n){rT.call(this,n.d,n.c,n.a,n.b)}function _V(n){rT.call(this,n.d,n.c,n.a,n.b)}function HV(n){this.d=n,c9n(this),this.b=nwe(n.d)}function t0e(n){return Mm(),Ee((Dxn(),Ioe),n)}function D7(n,e){return Pe(n),Pe(e),new DEn(n,e)}function Mp(n,e){return Pe(n),Pe(e),new BPn(n,e)}function i0e(n,e){return Pe(n),Pe(e),new FPn(n,e)}function r0e(n,e){return Pe(n),Pe(e),new qEn(n,e)}function UN(n){return oe(n.b!=0),Xo(n,n.a.a)}function c0e(n){return oe(n.b!=0),Xo(n,n.c.b)}function u0e(n){return!n.c&&(n.c=new W3),n.c}function y4(n){var e;return e=new Z,b$(e,n),e}function o0e(n){var e;return e=new ni,b$(e,n),e}function SPn(n){var e;return e=new UG,S$(e,n),e}function $7(n){var e;return e=new Mt,S$(e,n),e}function u(n,e){return x6(n==null||Cx(n,e)),n}function s0e(n,e,t){CIn.call(this,e,t),this.a=n}function PPn(n,e){this.c=n,this.b=e,this.a=!1}function IPn(){this.a=";,;",this.b="",this.c=""}function OPn(n,e,t){this.b=n,_Tn.call(this,e,t)}function qV(n,e,t){this.c=n,oM.call(this,e,t)}function UV(n,e,t){d4.call(this,n,e),this.b=t}function GV(n,e,t){Rnn(t,0,n,e,t.length,!1)}function Nh(n,e,t,i,r){n.b=e,n.c=t,n.d=i,n.a=r}function zV(n,e,t,i,r){n.d=e,n.c=t,n.a=i,n.b=r}function f0e(n,e){e&&(n.b=e,n.a=(X1(e),e.a))}function x7(n,e){if(!n)throw T(new Gn(e))}function Tp(n,e){if(!n)throw T(new Ar(e))}function XV(n,e){if(!n)throw T(new Kjn(e))}function h0e(n,e){return ZE(),jc(n.d.p,e.d.p)}function l0e(n,e){return kl(),bt(n.e.b,e.e.b)}function a0e(n,e){return kl(),bt(n.e.a,e.e.a)}function d0e(n,e){return jc(GPn(n.d),GPn(e.d))}function WM(n,e){return e&&vT(n,e.d)?e:null}function b0e(n,e){return e==(en(),Wn)?n.c:n.d}function VV(n){return Y1(dwe(Vr(n)?ds(n):n))}function w0e(n){return new V(n.c+n.b,n.d+n.a)}function APn(n){return n!=null&&!lx(n,L9,N9)}function g0e(n,e){return(fKn(n)<<4|fKn(e))&ui}function LPn(n,e,t,i,r){n.c=e,n.d=t,n.b=i,n.a=r}function WV(n){var e,t;e=n.b,t=n.c,n.b=t,n.c=e}function JV(n){var e,t;t=n.d,e=n.a,n.d=e,n.a=t}function p0e(n,e){var t;return t=n.c,PQ(n,e),t}function QV(n,e){return e<0?n.g=-1:n.g=e,n}function JM(n,e){return Tme(n),n.a*=e,n.b*=e,n}function NPn(n,e,t){S$n.call(this,e,t),this.d=n}function R7(n,e,t){gX.call(this,n,e),this.c=t}function QM(n,e,t){gX.call(this,n,e),this.c=t}function YV(n){OV(),TE.call(this),this.ci(n)}function DPn(){$4(),Kwe.call(this,(B1(),Is))}function $Pn(n){return nt(),new Dh(0,n)}function xPn(){xPn=R,CU=(Ln(),new nL(OF))}function YM(){YM=R,new fZ((bL(),HF),(dL(),_F))}function RPn(){RPn=R,pun=F(Gi,J,17,256,0,1)}function KPn(){this.b=$(B(rn((Us(),k_))))}function GN(n){this.b=n,this.a=Ja(this.b.a).Od()}function BPn(n,e){this.b=n,this.a=e,GA.call(this)}function FPn(n,e){this.a=n,this.b=e,GA.call(this)}function _Pn(n,e,t){this.a=n,pg.call(this,e,t)}function HPn(n,e,t){this.a=n,pg.call(this,e,t)}function j4(n,e,t){var i;i=new q0(t),bf(n,e,i)}function ZV(n,e,t){var i;return i=n[e],n[e]=t,i}function ZM(n){var e;return e=n.slice(),o$(e,n)}function nT(n){var e;return e=n.n,n.a.b+e.d+e.a}function qPn(n){var e;return e=n.n,n.e.b+e.d+e.a}function nW(n){var e;return e=n.n,n.e.a+e.b+e.c}function eW(n){n.a.b=n.b,n.b.a=n.a,n.a=n.b=null}function Re(n,e){return xt(n,e,n.c.b,n.c),!0}function m0e(n){return n.a?n.a:vD(n)}function v0e(n){return Np(),Fh(n)==St(ra(n))}function k0e(n){return Np(),ra(n)==St(Fh(n))}function db(n,e){return O5(n,new d4(e.a,e.b))}function y0e(n,e){return yT(),Dx(n,e),new lOn(n,e)}function j0e(n,e){return n.c<e.c?-1:n.c==e.c?0:1}function UPn(n){return n.b.c.length-n.e.c.length}function GPn(n){return n.e.c.length-n.g.c.length}function zN(n){return n.e.c.length+n.g.c.length}function K7(n){return n==0||isNaN(n)?n:n<0?-1:1}function E0e(n){return!fr(n)&&n.c.i.c==n.d.i.c}function M0e(n){return ko(),(en(),su).Hc(n.j)}function T0e(n,e,t){return kl(),t.e.a+t.f.a+n*e}function C0e(n,e,t){return kl(),t.e.b+t.f.b+n*e}function S0e(n,e,t){return Ve(n.b,u(t.b,18),e)}function P0e(n,e,t){return Ve(n.b,u(t.b,18),e)}function I0e(n,e,t){wLe(n.a,n.b,n.c,u(e,166),t)}function tW(n,e,t,i){tZ.call(this,n,e,t,i,0,0)}function zPn(n){OV(),YV.call(this,n),this.a=-1}function XPn(n,e){CIn.call(this,e,1040),this.a=n}function VPn(){sTn.call(this,"COUNT_CHILDREN",0)}function eT(n,e){k7.call(this,n,e),this.a=this}function Dt(n,e){var t;return t=bD(n,e),t.i=2,t}function tT(n,e){var t;return++n.j,t=n.Cj(e),t}function Fe(n,e,t){return n.a=-1,QX(n,e.g,t),n}function O0e(n,e){return nn(n,new V(e.a,e.b))}function WPn(n){return _p(),F(DO,AP,40,n,0,1)}function JPn(n){return n.e.Rd().gc()*n.c.Rd().gc()}function XN(n,e,t){return new cPn(Fwe(n)._e(),t,e)}function A0e(n,e){IQ(n,e==null?null:(Jn(e),e))}function L0e(n,e){SQ(n,e==null?null:(Jn(e),e))}function N0e(n,e){SQ(n,e==null?null:(Jn(e),e))}function x6(n){if(!n)throw T(new i4(null))}function iW(n){if(n.c.e!=n.a)throw T(new Ko)}function rW(n){if(n.e.c!=n.b)throw T(new Ko)}function iT(n){for(Pe(n);n.Ob();)n.Pb(),n.Qb()}function VN(n){mb(),this.a=(Ln(),new nL(Pe(n)))}function cW(n){this.c=n,this.b=this.c.d.vc().Kc()}function D0e(n){n.a.ld(),u(n.a.md(),16).gc(),bz()}function QPn(n,e){return n.a+=ws(e,0,e.length),n}function sn(n,e){return Nn(e,n.c.length),n.c[e]}function YPn(n,e){return Nn(e,n.a.length),n.a[e]}function $0e(n,e){return Jn(e),mk(e,(Jn(n),n))}function x0e(n,e){return Jn(n),mk(n,(Jn(e),e))}function Wa(n,e,t,i,r,c){return jFn(n,e,t,i,r,0,c)}function R0e(n,e){return $t(e,0,uW(e[0],Tl(1)))}function K0e(n,e){return Tl(nr(Tl(n.a).a,e.a))}function uW(n,e){return K0e(u(n,168),u(e,168))}function ZPn(){ZPn=R,mun=F(t0,J,168,256,0,1)}function nIn(){nIn=R,yun=F(i0,J,191,256,0,1)}function eIn(){eIn=R,bun=F(p3,J,222,256,0,1)}function tIn(){tIn=R,gun=F(S8,J,180,128,0,1)}function oW(){Nh(this,!1,!1,!1,!1)}function sW(n){EG.call(this,new Ql),Ki(this,n)}function R6(n){this.a=new ap(n.gc()),Ki(this,n)}function iIn(n){this.c=n,this.a=new dp(this.c.a)}function rIn(n){this.a=n,this.c=new de,o6e(this)}function cIn(){this.d=new V(0,0),this.e=new ni}function Cn(n,e){Va(),i$.call(this,n),this.a=e}function rT(n,e,t,i){zV(this,n,e,t,i)}function B0e(n,e,t){return jc(e.d[n.g],t.d[n.g])}function F0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function _0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function H0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function q0e(n,e,t){return jc(n.d[e.p],n.d[t.p])}function cT(n,e,t){return y.Math.min(t/n,1/e)}function uIn(n,e){return n?0:y.Math.max(0,e-1)}function WN(n,e){return n==null?e==null:Sn(n,e)}function U0e(n,e){return n==null?e==null:JC(n,e)}function oIn(n){return n.q?n.q:(Ln(),Ln(),Wh)}function sIn(n){return n.c-u(sn(n.a,n.b),294).b}function ao(n){return n.c?n.c.f:n.e.b}function Pu(n){return n.c?n.c.g:n.e.a}function G0e(n,e){return n.a==null&&qqn(n),n.a[e]}function fIn(n){var e;return e=MFn(n),e?fIn(e):n}function uT(n,e){return nt(),new SW(n,e)}function Dh(n,e){nt(),Wd.call(this,n),this.a=e}function oT(n,e){Fo(),NE.call(this,e),this.a=n}function K6(n,e,t){this.a=n,ti.call(this,e,t,2)}function hIn(n){this.b=new Mt,this.a=n,this.c=-1}function lIn(n){WX.call(this,0,0),this.a=n,this.b=0}function sT(n){Pb.call(this,n.gc()),Kt(this,n)}function fT(n){n.b?fT(n.b):n.d.dc()&&n.f.c.Bc(n.e)}function fW(n){return Array.isArray(n)&&n.Tm===Q2}function JN(n,e){return L(e,22)&&Su(n,u(e,22))}function aIn(n,e){return L(e,22)&&kme(n,u(e,22))}function wr(n,e){return KRn(n,e,J3e(n,n.b.Ce(e)))}function z0e(n,e){return n.a.get(e)!==void 0}function hW(n){return to(n,26)*J5+to(n,27)*Q5}function dIn(n,e){return Bme(new Ubn,new b9n(n),e)}function QN(n,e,t){xRn(0,e,n.length),R4(n,0,e,t)}function bb(n,e,t){z0(e,n.c.length),d6(n.c,e,t)}function hT(n,e,t){var i;n&&(i=n.i,i.c=e,i.b=t)}function lT(n,e,t){var i;n&&(i=n.i,i.d=e,i.a=t)}function bIn(n,e,t){var i;for(i=0;i<e;++i)n[i]=t}function X0e(n,e){var t;for(t=0;t<e;++t)n[t]=-1}function yt(n,e){var t;return t=jn(n),nY(t,e),t}function V0e(n,e){return!n&&(n=[]),n[n.length]=e,n}function YN(n,e){tt(n.c,e),n.b.c+=e.a,n.b.d+=e.b}function W0e(n,e){YN(n,mi(new V(e.a,e.b),n.c))}function ZN(n,e){this.b=new Mt,this.a=n,this.c=e}function wIn(){this.b=new twn,this.c=new WOn(this)}function lW(){this.d=new i0n,this.e=new VOn(this)}function aW(){uJ(),this.f=new Mt,this.e=new Mt}function gIn(){ko(),this.k=new de,this.d=new ni}function nD(){nD=R,moe=new Di((He(),oo),0)}function pIn(){pIn=R,cQn=new lIn(F(ki,Kn,1,0,5,1))}function J0e(n,e,t){return fi(n,new bp(e.a,t.a))}function Q0e(n,e,t){return-jc(n.f[e.p],n.f[t.p])}function Y0e(n,e,t){LHn(t,n,1),nn(e,new LMn(t,n))}function Z0e(n,e,t){I5(t,n,1),nn(e,new $Mn(t,n))}function mIn(n,e,t){this.a=n,$M.call(this,e,t,22)}function vIn(n,e,t){this.a=n,$M.call(this,e,t,14)}function kIn(n,e,t,i){Fo(),rLn.call(this,n,e,t,i)}function yIn(n,e,t,i){Fo(),rLn.call(this,n,e,t,i)}function Iu(n,e,t){return n.a=-1,QX(n,e.g+1,t),n}function dW(n,e,t){return t=Po(n,u(e,54),7,t),t}function bW(n,e,t){return t=Po(n,u(e,54),3,t),t}function Se(n){return Vr(n)?n|0:cEn(n)}function jIn(n){return nt(),new OD(10,n,0)}function EIn(n){var e;return e=n.f,e||(n.f=n.Dc())}function Cp(n){var e;return e=n.i,e||(n.i=n.bc())}function aT(n){if(n.e.j!=n.d)throw T(new Ko)}function Ja(n){return n.c?n.c:n.c=n.Sd()}function eD(n){return n.d?n.d:n.d=n.Td()}function B6(n,e){return q8e(hk(n,e))?e.zi():null}function nwe(n){return L(n,15)?u(n,15).ed():n.Kc()}function wW(n){return n.Qc(F(ki,Kn,1,n.gc(),5,1))}function MIn(n){return n!=null&&uD(n)&&n.Tm!==Q2}function gW(n){return!Array.isArray(n)&&n.Tm===Q2}function TIn(n,e){return Pe(e),n.a.Jd(e)&&!n.b.Jd(e)}function ewe(n,e){return Yc(n.l&e.l,n.m&e.m,n.h&e.h)}function twe(n,e){return Yc(n.l|e.l,n.m|e.m,n.h|e.h)}function iwe(n,e){return Yc(n.l^e.l,n.m^e.m,n.h^e.h)}function Ks(n,e){return Y1(t_n(Vr(n)?ds(n):n,e))}function wb(n,e){return Y1(znn(Vr(n)?ds(n):n,e))}function U1(n,e){return Y1(Kje(Vr(n)?ds(n):n,e))}function rwe(n,e){return Eae((Jn(n),n),(Jn(e),e))}function tD(n,e){return bt((Jn(n),n),(Jn(e),e))}function dT(n){this.b=new Gc(11),this.a=(jb(),n)}function ie(n){this.a=(pIn(),cQn),this.d=u(Pe(n),51)}function CIn(n,e){this.c=0,this.d=n,this.b=e|64|wh}function pW(n,e){this.e=n,this.d=e&64?e|wh:e}function iD(n){this.b=null,this.a=(jb(),n||Iun)}function SIn(n){xM(this),this.g=n,TT(this),this.je()}function Qa(n){F1(),this.a=0,this.b=n-1,this.c=1}function mW(n,e,t,i){this.a=n,VT.call(this,n,e,t,i)}function cwe(n,e,t){n.a.Mb(t)&&(n.b=!0,e.Cd(t))}function vW(n){n.d||(n.d=n.b.Kc(),n.c=n.b.gc())}function E4(n,e){if(n<0||n>=e)throw T(new QG)}function _0(n,e){return Nk(n,(Jn(e),new a9n(e)))}function Sp(n,e){return Nk(n,(Jn(e),new d9n(e)))}function PIn(n,e,t){return VNe(n,u(e,12),u(t,12))}function IIn(n){return Au(),u(n,12).g.c.length!=0}function OIn(n){return Au(),u(n,12).e.c.length!=0}function uwe(n,e){return Hp(),bt(e.a.o.a,n.a.o.a)}function owe(n,e){e.Bb&kc&&!n.a.o&&(n.a.o=e)}function swe(n,e){e.Ug("General 'Rotator",1),jLe(n)}function fwe(n,e,t){e.qf(t,$(B(ee(n.b,t)))*n.a)}function AIn(n,e,t){return Vg(),W4(n,e)&&W4(n,t)}function F6(n){return zu(),!n.Hc(Rl)&&!n.Hc(Oa)}function hwe(n){return n.e?HJ(n.e):null}function _6(n){return Vr(n)?""+n:$qn(n)}function kW(n){var e;for(e=n;e.f;)e=e.f;return e}function lwe(n,e,t){return $t(e,0,uW(e[0],t[0])),e}function Vl(n,e,t,i){var r;r=n.i,r.i=e,r.a=t,r.b=i}function q(n,e,t,i){ti.call(this,n,e,t),this.b=i}function Mi(n,e,t,i,r){c$.call(this,n,e,t,i,r,-1)}function H6(n,e,t,i,r){ck.call(this,n,e,t,i,r,-1)}function bT(n,e,t,i){R7.call(this,n,e,t),this.b=i}function LIn(n){ITn.call(this,n,!1),this.a=!1}function NIn(){sTn.call(this,"LOOKAHEAD_LAYOUT",1)}function DIn(n){this.b=n,kp.call(this,n),BCn(this)}function $In(n){this.b=n,T7.call(this,n),FCn(this)}function H0(n,e,t){this.a=n,jp.call(this,e,t,5,6)}function yW(n,e,t,i){this.b=n,ti.call(this,e,t,i)}function xIn(n,e){this.b=n,H8n.call(this,n.b),this.a=e}function RIn(n){this.a=kBn(n.a),this.b=new _u(n.b)}function jW(n,e){mb(),Hhe.call(this,n,RC(new Fu(e)))}function wT(n,e){return nt(),new RW(n,e,0)}function rD(n,e){return nt(),new RW(6,n,e)}function _i(n,e){for(Jn(e);n.Ob();)e.Cd(n.Pb())}function Zc(n,e){return Si(e)?SD(n,e):!!wr(n.f,e)}function cD(n,e){return e.Vh()?ea(n.b,u(e,54)):e}function awe(n,e){return Sn(n.substr(0,e.length),e)}function $h(n){return new ie(new qX(n.a.length,n.a))}function gT(n){return new V(n.c+n.b/2,n.d+n.a/2)}function dwe(n){return Yc(~n.l&ro,~n.m&ro,~n.h&Ol)}function uD(n){return typeof n===vy||typeof n===eK}function Hu(n){n.f=new iCn(n),n.i=new rCn(n),++n.g}function KIn(n){if(!n)throw T(new nc);return n.d}function Pp(n){var e;return e=l5(n),oe(e!=null),e}function bwe(n){var e;return e=O5e(n),oe(e!=null),e}function M4(n,e){var t;return t=n.a.gc(),RJ(e,t),t-e}function fi(n,e){var t;return t=n.a.zc(e,n),t==null}function B7(n,e){return n.a.zc(e,(_n(),ga))==null}function EW(n){return new Cn(null,vwe(n,n.length))}function MW(n,e,t){return cGn(n,u(e,42),u(t,176))}function Ip(n,e,t){return _s(n.a,e),ZV(n.b,e.g,t)}function wwe(n,e,t){E4(t,n.a.c.length),Go(n.a,t,e)}function K(n,e,t,i){xRn(e,t,n.length),gwe(n,e,t,i)}function gwe(n,e,t,i){var r;for(r=e;r<t;++r)n[r]=i}function TW(n,e){var t;for(t=0;t<e;++t)n[t]=!1}function Ya(n,e,t){dh(),this.e=n,this.d=e,this.a=t}function CW(n,e,t){this.c=n,this.a=e,Ln(),this.b=t}function oD(n,e){this.d=n,ne.call(this,n),this.e=e}function hf(n,e,t){return $6e(n,e.g,t),_s(n.c,e),n}function pwe(n){return Yg(n,(ci(),Kr)),n.d=!0,n}function sD(n){return!n.j&&Tfe(n,yPe(n.g,n.b)),n.j}function BIn(n){n.a=null,n.e=null,Hu(n.b),n.d=0,++n.c}function q6(n){R0(n.b!=-1),Yl(n.c,n.a=n.b),n.b=-1}function SW(n,e){Wd.call(this,1),this.a=n,this.b=e}function mwe(n,e){return n>0?y.Math.log(n/e):-100}function FIn(n,e){return Ec(n,e)<0?-1:Ec(n,e)>0?1:0}function F7(n,e){ACn(n,L(e,160)?e:u(e,2036).Rl())}function PW(n,e){if(n==null)throw T(new fp(e))}function vwe(n,e){return yme(e,n.length),new XPn(n,e)}function IW(n,e){return e?Ki(n,e):!1}function kwe(){return BE(),S(C(uQn,1),G,549,0,[GF])}function U6(n){return n.e==0?n:new Ya(-n.e,n.d,n.a)}function ywe(n,e){return bt(n.c.c+n.c.b,e.c.c+e.c.b)}function _7(n,e){xt(n.d,e,n.b.b,n.b),++n.a,n.c=null}function _In(n,e){return n.c?_In(n.c,e):nn(n.b,e),n}function jwe(n,e,t){var i;return i=J0(n,e),qD(n,e,t),i}function HIn(n,e,t){var i;for(i=0;i<e;++i)$t(n,i,t)}function qIn(n,e,t,i,r){for(;e<t;)i[r++]=Xi(n,e++)}function T4(n,e,t,i,r){Qx(n,u(ot(e.k,t),15),t,i,r)}function gb(n,e){qt(_r(n.Oc(),new lpn),new M7n(e))}function Ewe(n,e){return bt(n.e.a+n.f.a,e.e.a+e.f.a)}function Mwe(n,e){return bt(n.e.b+n.f.b,e.e.b+e.f.b)}function fD(n){return y.Math.abs(n.d.e-n.e.e)-n.a}function Twe(n){return n==Pt?nj:n==li?"-INF":""+n}function Cwe(n){return n==Pt?nj:n==li?"-INF":""+n}function Swe(n){return Np(),St(Fh(n))==St(ra(n))}function Pwe(n,e,t){return u(n.c.hd(e,u(t,136)),44)}function Iwe(n,e){Op(n,new q0(e.f!=null?e.f:""+e.g))}function Owe(n,e){Op(n,new q0(e.f!=null?e.f:""+e.g))}function Kt(n,e){return n.Si()&&(e=gAn(n,e)),n.Fi(e)}function hD(n,e){return e=n.Yk(null,e),KFn(n,null,e)}function Awe(n,e){++n.j,Jx(n,n.i,e),nMe(n,u(e,343))}function OW(n){n?YZ(n,(fl(),pQn)):$ge((fl(),n))}function pb(n){this.d=(Jn(n),n),this.a=0,this.c=Ey}function lD(n,e){this.d=j5e(n),this.c=e,this.a=.5*e}function UIn(n){ZW.call(this),this.a=n,nn(n.a,this)}function GIn(){Ql.call(this),this.a=!0,this.b=!0}function zIn(){zIn=R,lQn=new aG(!1),aQn=new aG(!0)}function G6(n){var e;return e=n.g,e||(n.g=new sG(n))}function pT(n){var e;return e=n.k,e||(n.k=new fG(n))}function AW(n){var e;return e=n.k,e||(n.k=new fG(n))}function Lwe(n){var e;return e=n.i,e||(n.i=new x8n(n))}function XIn(n){var e;return e=n.f,e||(n.f=new HX(n))}function aD(n){var e;return e=n.j,e||(n.j=new W8n(n))}function dD(n){var e;return e=n.d,e||(n.d=new VA(n))}function VIn(n,e,t){return nt(),new qAn(n,e,t)}function WIn(n,e){return Z7(e,n.c.b.c.gc()),new NEn(n,e)}function LW(n,e){var t;return t=n.a.gc(),Z7(e,t),t-1-e}function w(n,e,t){var i;return i=bD(n,e),G$n(t,i),i}function bD(n,e){var t;return t=new QQ,t.j=n,t.d=e,t}function Pe(n){if(n==null)throw T(new rp);return n}function q0(n){if(n==null)throw T(new rp);this.a=n}function JIn(n){FG(),this.b=new Z,this.a=n,MAe(this,n)}function NW(n){this.b=n,this.a=u(as(this.b.a.e),227)}function mb(){mb=R,oh(),qF=new ID((Ln(),Ln(),sr))}function wD(){wD=R,oh(),cun=new Rz((Ln(),Ln(),hI))}function G1(){G1=R,Hn=ZEe(),An(),tg&&nke()}function mT(n){n.s=NaN,n.c=NaN,kHn(n,n.e),kHn(n,n.j)}function se(n){return(n.i==null&&bh(n),n.i).length}function QIn(n,e){return u(Ja(n.a).Md().Xb(e),44).ld()}function ee(n,e){return Si(e)?Dc(n,e):Fr(wr(n.f,e))}function Nwe(n,e){return Np(),n==Fh(e)?ra(e):Fh(e)}function Dwe(n,e,t,i){return t==0||(t-i)/t<n.e||e>=n.g}function $t(n,e,t){return dae(t==null||sIe(n,t)),n[e]=t}function DW(n,e){return zn(e,n.length+1),n.substr(e)}function gD(n,e){for(Jn(e);n.c<n.d;)n.Se(e,n.c++)}function $W(n){this.d=n,this.c=n.a.d.a,this.b=n.a.e.g}function YIn(n){this.c=n,this.a=new Mt,this.b=new Mt}function Nc(n){this.c=new Ni,this.a=new Z,this.b=n}function ZIn(n){this.b=new Z,this.a=new Z,this.c=n}function $we(n,e,t){u(e.b,68),nu(e.a,new xV(n,t,e))}function xwe(n,e){return Hp(),u(Mr(n,e.d),15).Fc(e)}function Op(n,e){var t;t=n.a.length,J0(n,t),qD(n,t,e)}function nOn(n,e){var t;t=console[n],t.call(console,e)}function eOn(n,e){var t;++n.j,t=n.Ej(),n.rj(n.Zi(t,e))}function pD(n,e,t){var i;return i=C$(n,e,t),ken(n,i)}function vb(n){return!n.d&&(n.d=new ti(jr,n,1)),n.d}function Rwe(n){return!n.a&&(n.a=new ti(Aa,n,4)),n.a}function C4(n,e){return n.a+=String.fromCharCode(e),n}function z1(n,e){return n.a+=String.fromCharCode(e),n}function xW(n,e,t){this.a=n,xG.call(this,e),this.b=t}function tOn(n,e,t){this.a=n,mJ.call(this,8,e,null,t)}function RW(n,e,t){Wd.call(this,n),this.a=e,this.b=t}function KW(n,e,t){NE.call(this,e),this.a=n,this.b=t}function iOn(n){this.c=n,this.b=this.c.a,this.a=this.c.e}function Kwe(n){this.a=(Jn(Ke),Ke),this.b=n,new ez}function rOn(n){GW(n.a),n.b=F(ki,Kn,1,n.b.length,5,1)}function bo(n){R0(n.c!=-1),n.d.gd(n.c),n.b=n.c,n.c=-1}function z6(n){return y.Math.sqrt(n.a*n.a+n.b*n.b)}function vT(n,e){return qx(n.c,n.f,e,n.b,n.a,n.e,n.d)}function kb(n,e){return E4(e,n.a.c.length),sn(n.a,e)}function sh(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function cOn(n){return L(n,102)&&(u(n,19).Bb&kc)!=0}function uOn(n){return as(n),L(n,484)?u(n,484):Jr(n)}function oOn(n){return n?n.dc():!n.Kc().Ob()}function Bwe(n){return rg?SD(rg,n):!1}function Fwe(n){return 0>=n?new Az:Gme(n-1)}function Hi(n){return!n.a&&n.c?n.c.b:n.a}function BW(n){return L(n,616)?n:new oAn(n)}function X1(n){n.c?X1(n.c):(ta(n),n.d=!0)}function X6(n){n.c?n.c.$e():(n.d=!0,fCe(n))}function sOn(n){n.b=!1,n.c=!1,n.d=!1,n.a=!1}function fOn(n){var e,t;return e=n.c.i.c,t=n.d.i.c,e==t}function _we(n,e){var t;t=n.Ih(e),t>=0?n.ki(t):Pnn(n,e)}function hOn(n,e){n.c<0||n.b.b<n.c?ir(n.b,e):n.a.tf(e)}function Hwe(n,e){ve((!n.a&&(n.a=new I7(n,n)),n.a),e)}function qwe(n,e){YN(u(e.b,68),n),nu(e.a,new IG(n))}function Uwe(n,e){return jc(e.j.c.length,n.j.c.length)}function Gwe(n,e,t){return qp(),t.Lg(n,u(e.ld(),149))}function as(n){if(n==null)throw T(new rp);return n}function Jn(n){if(n==null)throw T(new rp);return n}function zwe(n){if(n.p!=4)throw T(new Mu);return n.e}function Xwe(n){if(n.p!=3)throw T(new Mu);return n.e}function Vwe(n){if(n.p!=3)throw T(new Mu);return n.j}function Wwe(n){if(n.p!=4)throw T(new Mu);return n.j}function Jwe(n){if(n.p!=6)throw T(new Mu);return n.f}function Qwe(n){if(n.p!=6)throw T(new Mu);return n.k}function FW(n){return!n.b&&(n.b=new DE(new aL)),n.b}function yb(n){return n.c==-2&&gfe(n,Uye(n.g,n.b)),n.c}function S4(n,e){var t;return t=bD("",n),t.n=e,t.i=1,t}function kT(n,e,t,i){ib.call(this,n,t),this.a=e,this.f=i}function _W(n,e,t,i){ib.call(this,n,e),this.d=t,this.a=i}function lOn(n,e){h1e.call(this,zme(Pe(n),Pe(e))),this.a=e}function ii(){vjn.call(this),I0(this.j.c,0),this.a=-1}function aOn(){cnn.call(this,ks,(o4(),Udn)),vOe(this)}function dOn(){cnn.call(this,Pd,(rEn(),ise)),hAe(this)}function bOn(){je.call(this,"DELAUNAY_TRIANGULATION",0)}function Ywe(n){return String.fromCharCode.apply(null,n)}function Ve(n,e,t){return Si(e)?Lr(n,e,t):Vc(n.f,e,t)}function HW(n){return Ln(),n?n.Oe():(jb(),jb(),Oun)}function Zwe(n){return Mo(n,cK),oC(nr(nr(5,n),n/10|0))}function wOn(n,e){return YM(),new fZ(new QCn(n),new JCn(e))}function yT(){yT=R,rQn=new hz(S(C(Id,1),WS,44,0,[]))}function gOn(n){return!n.d&&(n.d=new Q3(n.c.Cc())),n.d}function P4(n){return!n.a&&(n.a=new qjn(n.c.vc())),n.a}function pOn(n){return!n.b&&(n.b=new r4(n.c.ec())),n.b}function xh(n,e){for(;e-- >0;)n=n<<1|(n<0?1:0);return n}function mOn(n,e){var t;return t=new Nc(n),Fn(e.c,t),t}function vOn(n,e){n.u.Hc((zu(),Rl))&&zEe(n,e),h4e(n,e)}function mc(n,e){return x(n)===x(e)||n!=null&&rt(n,e)}function Mr(n,e){return JN(n.a,e)?n.b[u(e,22).g]:null}function nge(){return YE(),S(C(oon,1),G,489,0,[d_])}function ege(){return eM(),S(C($1n,1),G,490,0,[Rq])}function tge(){return tM(),S(C(zce,1),G,558,0,[Kq])}function ige(){return s6(),S(C(tan,1),G,539,0,[Hj])}function jT(n){return!n.n&&(n.n=new q(Sr,n,1,7)),n.n}function mD(n){return!n.c&&(n.c=new q(Qu,n,9,9)),n.c}function qW(n){return!n.c&&(n.c=new Dn(he,n,5,8)),n.c}function rge(n){return!n.b&&(n.b=new Dn(he,n,4,7)),n.b}function H7(n){return n.j.c.length=0,GW(n.c),xae(n.a),n}function I4(n){return n.e==rv&&jfe(n,Y8e(n.g,n.b)),n.e}function q7(n){return n.f==rv&&Mfe(n,q7e(n.g,n.b)),n.f}function We(n,e,t,i){return Hxn(n,e,t,!1),KC(n,i),n}function kOn(n,e){this.b=n,oD.call(this,n,e),BCn(this)}function yOn(n,e){this.b=n,SV.call(this,n,e),FCn(this)}function V6(n){this.d=n,this.a=this.d.b,this.b=this.d.c}function UW(n,e){this.b=n,this.c=e,this.a=new dp(this.b)}function Xi(n,e){return zn(e,n.length),n.charCodeAt(e)}function cge(n,e){AY(n,$(yl(e,"x")),$(yl(e,"y")))}function uge(n,e){AY(n,$(yl(e,"x")),$(yl(e,"y")))}function ut(n,e){return ta(n),new Cn(n,new eQ(e,n.a))}function _r(n,e){return ta(n),new Cn(n,new FJ(e,n.a))}function U0(n,e){return ta(n),new cV(n,new ONn(e,n.a))}function ET(n,e){return ta(n),new uV(n,new ANn(e,n.a))}function oge(n,e){return new GOn(u(Pe(n),50),u(Pe(e),50))}function sge(n,e){return bt(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function jOn(n,e,t){t.a?tu(n,e.b-n.f/2):eu(n,e.a-n.g/2)}function fge(n,e){return bt(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function hge(n,e){return Dz(),bt((Jn(n),n),(Jn(e),e))}function lge(n){return n!=null&&t7(jA,n.toLowerCase())}function GW(n){var e;for(e=n.Kc();e.Ob();)e.Pb(),e.Qb()}function Sg(n){var e;return e=n.b,!e&&(n.b=e=new D8n(n)),e}function vD(n){var e;return e=Wme(n),e||null}function EOn(n,e){var t,i;return t=n/e,i=wi(t),t>i&&++i,i}function age(n,e,t){var i;i=u(n.d.Kb(t),159),i&&i.Nb(e)}function dge(n,e,t){wOe(n.a,t),zve(t),xMe(n.b,t),xOe(e,t)}function MT(n,e,t,i){this.a=n,this.c=e,this.b=t,this.d=i}function zW(n,e,t,i){this.c=n,this.b=e,this.a=t,this.d=i}function MOn(n,e,t,i){this.c=n,this.b=e,this.d=t,this.a=i}function Ho(n,e,t,i){this.c=n,this.d=e,this.b=t,this.a=i}function TOn(n,e,t,i){this.a=n,this.d=e,this.c=t,this.b=i}function kD(n,e,t,i){this.a=n,this.e=e,this.d=t,this.c=i}function COn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function yD(n,e,t){this.a=vtn,this.d=n,this.b=e,this.c=t}function Ap(n,e,t,i){je.call(this,n,e),this.a=t,this.b=i}function SOn(n,e){this.d=(Jn(n),n),this.a=16449,this.c=e}function POn(n){this.a=new Z,this.e=F(ye,J,53,n,0,2)}function bge(n){n.Ug("No crossing minimization",1),n.Vg()}function IOn(){ec.call(this,"There is no more element.")}function OOn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function AOn(n,e,t,i){this.a=n,this.b=e,this.c=t,this.d=i}function Za(n,e,t,i){this.e=n,this.a=e,this.c=t,this.d=i}function LOn(n,e,t,i){this.a=n,this.c=e,this.d=t,this.b=i}function NOn(n,e,t,i){Fo(),LNn.call(this,e,t,i),this.a=n}function DOn(n,e,t,i){Fo(),LNn.call(this,e,t,i),this.a=n}function jD(n,e,t){var i,r;return i=ctn(n),r=e.ti(t,i),r}function al(n){var e,t;return t=(e=new Jd,e),F4(t,n),t}function ED(n){var e,t;return t=(e=new Jd,e),snn(t,n),t}function wge(n,e){var t;return t=ee(n.f,e),_Q(e,t),null}function $On(n){return!n.b&&(n.b=new q(Vt,n,12,3)),n.b}function xOn(n){return x6(n==null||uD(n)&&n.Tm!==Q2),n}function TT(n){return n.n&&(n.e!==Rzn&&n.je(),n.j=null),n}function O4(n){if(eo(n.d),n.d.d!=n.c)throw T(new Ko)}function XW(n){return oe(n.b<n.d.gc()),n.d.Xb(n.c=n.b++)}function vo(n){n.a.a=n.c,n.c.b=n.a,n.a.b=n.c.a=null,n.b=0}function MD(n){this.f=n,this.c=this.f.e,n.f>0&&bFn(this)}function ROn(n,e){this.a=n,bae.call(this,n,u(n.d,15).fd(e))}function gge(n,e){return bt(Pu(n)*ao(n),Pu(e)*ao(e))}function pge(n,e){return bt(Pu(n)*ao(n),Pu(e)*ao(e))}function mge(n){return _b(n)&&on(un(z(n,(cn(),Dd))))}function vge(n,e){return In(n,u(v(e,(cn(),Mv)),17),e)}function kge(n,e){return u(v(n,(W(),C3)),15).Fc(e),e}function VW(n,e){return n.b=e.b,n.c=e.c,n.d=e.d,n.a=e.a,n}function KOn(n,e,t,i){this.b=n,this.c=i,OM.call(this,e,t)}function yge(n,e,t){n.i=0,n.e=0,e!=t&&yRn(n,e,t)}function jge(n,e,t){n.i=0,n.e=0,e!=t&&jRn(n,e,t)}function Ege(n,e,t){return o6(),J5e(u(ee(n.e,e),529),t)}function Lp(n){var e;return e=n.f,e||(n.f=new h4(n,n.c))}function BOn(n,e){return Rg(n.j,e.s,e.c)+Rg(e.e,n.s,n.c)}function FOn(n,e){n.e&&!n.e.a&&(Syn(n.e,e),FOn(n.e,e))}function _On(n,e){n.d&&!n.d.a&&(Syn(n.d,e),_On(n.d,e))}function Mge(n,e){return-bt(Pu(n)*ao(n),Pu(e)*ao(e))}function Tge(n){return u(n.ld(),149).Pg()+":"+Jr(n.md())}function HOn(){tR(this,new uG),this.wb=(G1(),Hn),o4()}function qOn(n){this.b=new Z,hi(this.b,this.b),this.a=n}function WW(n,e){new Mt,this.a=new Tu,this.b=n,this.c=e}function jb(){jb=R,Iun=new xU,YF=new xU,Oun=new Lbn}function Ln(){Ln=R,sr=new Sbn,Wh=new Ibn,hI=new Obn}function JW(){JW=R,BQn=new n0n,_Qn=new lW,FQn=new e0n}function Np(){Np=R,mI=new Z,p_=new de,g_=new Z}function CT(n,e){if(n==null)throw T(new fp(e));return n}function ST(n){return!n.a&&(n.a=new q(Ye,n,10,11)),n.a}function ft(n){return!n.q&&(n.q=new q(Ps,n,11,10)),n.q}function H(n){return!n.s&&(n.s=new q(ku,n,21,17)),n.s}function Cge(n){return Pe(n),OBn(new ie(ce(n.a.Kc(),new En)))}function Sge(n,e){return wo(n),wo(e),Rjn(u(n,22),u(e,22))}function nd(n,e,t){var i,r;i=IV(t),r=new SE(i),bf(n,e,r)}function TD(n,e,t,i,r,c){ck.call(this,n,e,t,i,r,c?-2:-1)}function UOn(n,e,t,i){gX.call(this,e,t),this.b=n,this.a=i}function GOn(n,e){Vfe.call(this,new iD(n)),this.a=n,this.b=e}function QW(n){this.b=n,this.c=n,n.e=null,n.c=null,this.a=1}function Pge(n){Rs();var e;e=u(n.g,10),e.n.a=n.d.c+e.d.b}function A4(){A4=R;var n,e;e=!$8e(),n=new V3,XF=e?new og:n}function CD(n){return Ln(),L(n,59)?new jL(n):new KM(n)}function PT(n){return L(n,16)?new R6(u(n,16)):o0e(n.Kc())}function Ige(n){return new HCn(n,n.e.Rd().gc()*n.c.Rd().gc())}function Oge(n){return new qCn(n,n.e.Rd().gc()*n.c.Rd().gc())}function YW(n){return n&&n.hashCode?n.hashCode():lb(n)}function SD(n,e){return e==null?!!wr(n.f,null):z0e(n.i,e)}function Age(n,e){var t;return t=DX(n.a,e),t&&(e.d=null),t}function zOn(n,e,t){return n.f?n.f.ef(e,t):!1}function U7(n,e,t,i){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i)}function PD(n,e,t,i){$t(n.c[e.g],e.g,t),$t(n.b[e.g],e.g,i)}function Lge(n,e,t){return $(B(t.a))<=n&&$(B(t.b))>=e}function XOn(n,e){this.g=n,this.d=S(C(Qh,1),b1,10,0,[e])}function VOn(n){this.c=n,this.b=new Ul(u(Pe(new t0n),50))}function WOn(n){this.c=n,this.b=new Ul(u(Pe(new ewn),50))}function JOn(n){this.b=n,this.a=new Ul(u(Pe(new D0n),50))}function QOn(){this.b=new ni,this.d=new Mt,this.e=new YG}function ZW(){this.c=new Ni,this.d=new Ni,this.e=new Ni}function Eb(){this.a=new Tu,this.b=(Mo(3,mw),new Gc(3))}function Wl(n,e){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e}function IT(n){this.c=n.c,this.d=n.d,this.b=n.b,this.a=n.a}function YOn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function ZOn(n,e,t,i,r,c){this.a=n,k$.call(this,e,t,i,r,c)}function V1(n,e,t,i,r,c,s){return new GD(n.e,e,t,i,r,c,s)}function Nge(n,e,t){return t>=0&&Sn(n.substr(t,e.length),e)}function nAn(n,e){return L(e,149)&&Sn(n.b,u(e,149).Pg())}function Dge(n,e){return n.a?e.Gh().Kc():u(e.Gh(),71).Ii()}function eAn(n,e){var t;return t=n.b.Qc(e),WLn(t,n.b.gc()),t}function G7(n,e){if(n==null)throw T(new fp(e));return n}function Hr(n){return n.u||(Zu(n),n.u=new DSn(n,n)),n.u}function ID(n){this.a=(Ln(),L(n,59)?new jL(n):new KM(n))}function au(n){var e;return e=u(Un(n,16),29),e||n.ii()}function OT(n,e){var t;return t=Xa(n.Rm),e==null?t:t+": "+e}function qo(n,e,t){return Ri(e,t,n.length),n.substr(e,t-e)}function tAn(n,e){qM.call(this),hQ(this),this.a=n,this.c=e}function $ge(n){n&&OT(n,n.ie())}function xge(n){HE(),y.setTimeout(function(){throw n},0)}function Rge(){return YC(),S(C(Kun,1),G,436,0,[u_,Run])}function Kge(){return cC(),S(C(Fun,1),G,435,0,[Bun,o_])}function Bge(){return uC(),S(C(bon,1),G,432,0,[m_,vI])}function Fge(){return V4(),S(C(FZn,1),G,517,0,[dj,L_])}function _ge(){return FT(),S(C(Qsn,1),G,429,0,[sH,Jsn])}function Hge(){return wk(),S(C($sn,1),G,428,0,[WI,Dsn])}function qge(){return QT(),S(C(Ssn,1),G,431,0,[Csn,X_])}function Uge(){return dk(),S(C(qhn,1),G,430,0,[qH,UH])}function Gge(){return Z6(),S(C(Aie,1),G,531,0,[e9,n9])}function zge(){return yC(),S(C(Bln,1),G,501,0,[BO,N2])}function Xge(){return fh(),S(C(Kie,1),G,523,0,[m0,y1])}function Vge(){return If(),S(C(Fie,1),G,522,0,[Bd,Xf])}function Wge(){return af(),S(C(ere,1),G,528,0,[zw,Ea])}function Jge(){return sk(),S(C(Ksn,1),G,488,0,[Rsn,QI])}function Qge(){return GT(),S(C(P1n,1),G,491,0,[Dq,S1n])}function Yge(){return D$(),S(C(D1n,1),G,492,0,[L1n,N1n])}function Zge(){return RT(),S(C(Kln,1),G,433,0,[aq,Rln])}function n2e(){return ZT(),S(C(_ln,1),G,434,0,[Fln,mq])}function e2e(){return Tb(),S(C(sre,1),G,465,0,[Ma,O2])}function t2e(){return ik(),S(C(x1n,1),G,438,0,[Bq,JO])}function i2e(){return Tk(),S(C(ran,1),G,437,0,[YO,ian])}function r2e(){return BN(),S(C(dA,1),G,347,0,[vdn,kdn])}function AT(n,e,t,i){return t>=0?n.Uh(e,t,i):n.Ch(null,t,i)}function z7(n){return n.b.b==0?n.a.sf():UN(n.b)}function c2e(n){if(n.p!=5)throw T(new Mu);return Se(n.f)}function u2e(n){if(n.p!=5)throw T(new Mu);return Se(n.k)}function nJ(n){return x(n.a)===x((L$(),EU))&&rAe(n),n.a}function o2e(n,e){n.b=e,n.c>0&&n.b>0&&(n.g=cT(n.c,n.b,n.a))}function s2e(n,e){n.c=e,n.c>0&&n.b>0&&(n.g=cT(n.c,n.b,n.a))}function iAn(n,e){ufe(this,new V(n.a,n.b)),ofe(this,$7(e))}function Mb(){Wfe.call(this,new ap(Q0(12))),BX(!0),this.a=2}function OD(n,e,t){nt(),Wd.call(this,n),this.b=e,this.a=t}function eJ(n,e,t){Fo(),NE.call(this,e),this.a=n,this.b=t}function rAn(n){var e;e=n.c.d.b,n.b=e,n.a=n.c.d,e.a=n.c.d.b=n}function f2e(n){return n.b==0?null:(oe(n.b!=0),Xo(n,n.a.a))}function Dc(n,e){return e==null?Fr(wr(n.f,null)):a6(n.i,e)}function cAn(n,e,t,i,r){return new rR(n,(K4(),t_),e,t,i,r)}function LT(n,e){return zLn(e),Nme(n,F(ye,_e,28,e,15,1),e)}function NT(n,e){return CT(n,"set1"),CT(e,"set2"),new VEn(n,e)}function h2e(n,e){var t=oun[n.charCodeAt(0)];return t??n}function uAn(n,e){var t,i;return t=e,i=new LA,NGn(n,t,i),i.d}function AD(n,e,t,i){var r;r=new RSn,e.a[t.g]=r,Ip(n.b,i,r)}function l2e(n,e){var t;return t=Ome(n.f,e),tt(HM(t),n.f.d)}function X7(n){var e;_me(n.a),dCn(n.a),e=new OE(n.a),_Y(e)}function a2e(n,e){_qn(n,!0),nu(n.e.Rf(),new NV(n,!0,e))}function d2e(n,e){return Np(),n==St(Fh(e))||n==St(ra(e))}function b2e(n,e){return kl(),u(v(e,(lc(),Ph)),17).a==n}function wi(n){return Math.max(Math.min(n,et),-2147483648)|0}function oAn(n){this.a=u(Pe(n),277),this.b=(Ln(),new zX(n))}function sAn(n,e,t){this.i=new Z,this.b=n,this.g=e,this.a=t}function tJ(n,e,t){this.a=new Z,this.e=n,this.f=e,this.c=t}function DT(n,e,t){this.c=new Z,this.e=n,this.f=e,this.b=t}function fAn(n){qM.call(this),hQ(this),this.a=n,this.c=!0}function w2e(n){function e(){}return e.prototype=n||{},new e}function g2e(n){if(n.Ae())return null;var e=n.n;return rI[e]}function V7(n){return n.Db>>16!=3?null:u(n.Cb,27)}function Pf(n){return n.Db>>16!=9?null:u(n.Cb,27)}function hAn(n){return n.Db>>16!=6?null:u(n.Cb,74)}function Tb(){Tb=R,Ma=new rX(s3,0),O2=new rX(f3,1)}function fh(){fh=R,m0=new eX(f3,0),y1=new eX(s3,1)}function If(){If=R,Bd=new tX(_K,0),Xf=new tX("UP",1)}function lAn(){lAn=R,oQn=Me((BE(),S(C(uQn,1),G,549,0,[GF])))}function aAn(n){var e;return e=new zE(Q0(n.length)),nY(e,n),e}function dAn(n,e){return n.b+=e.b,n.c+=e.c,n.d+=e.d,n.a+=e.a,n}function p2e(n,e){return Zxn(n,e)?(W$n(n),!0):!1}function dl(n,e){if(e==null)throw T(new rp);return R8e(n,e)}function W7(n,e){var t;t=n.q.getHours(),n.q.setDate(e),H5(n,t)}function iJ(n,e,t){var i;i=n.Ih(e),i>=0?n.bi(i,t):een(n,e,t)}function bAn(n,e){var t;return t=n.Ih(e),t>=0?n.Wh(t):hR(n,e)}function wAn(n,e){var t;for(Pe(e),t=n.a;t;t=t.c)e.Yd(t.g,t.i)}function LD(n,e,t){var i;i=vRn(n,e,t),n.b=new EC(i.c.length)}function Pg(n,e,t){$T(),n&&Ve(kU,n,e),n&&Ve(hE,n,t)}function m2e(n,e){return VM(),_n(),u(e.a,17).a<n}function v2e(n,e){return VM(),_n(),u(e.b,17).a<n}function ND(n,e){return y.Math.abs(n)<y.Math.abs(e)?n:e}function k2e(n){return!n.a&&(n.a=new q(Ye,n,10,11)),n.a.i>0}function rJ(n){var e;return e=n.d,e=n.bj(n.f),ve(n,e),e.Ob()}function gAn(n,e){var t;return t=new sW(e),_Fn(t,n),new _u(t)}function y2e(n){if(n.p!=0)throw T(new Mu);return M6(n.f,0)}function j2e(n){if(n.p!=0)throw T(new Mu);return M6(n.k,0)}function pAn(n){return n.Db>>16!=7?null:u(n.Cb,241)}function L4(n){return n.Db>>16!=6?null:u(n.Cb,241)}function mAn(n){return n.Db>>16!=7?null:u(n.Cb,167)}function St(n){return n.Db>>16!=11?null:u(n.Cb,27)}function G0(n){return n.Db>>16!=17?null:u(n.Cb,29)}function vAn(n){return n.Db>>16!=3?null:u(n.Cb,155)}function cJ(n){var e;return ta(n),e=new ni,ut(n,new T9n(e))}function kAn(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function E2e(n,e){var t;t=n.q.getHours(),n.q.setMonth(e),H5(n,t)}function yAn(n,e){xM(this),this.f=e,this.g=n,TT(this),this.je()}function jAn(n,e){this.a=n,this.c=Fi(this.a),this.b=new IT(e)}function EAn(n,e,t){this.a=e,this.c=n,this.b=(Pe(t),new _u(t))}function MAn(n,e,t){this.a=e,this.c=n,this.b=(Pe(t),new _u(t))}function TAn(n){this.a=n,this.b=F(Pie,J,2043,n.e.length,0,2)}function CAn(){this.a=new rh,this.e=new ni,this.g=0,this.i=0}function $T(){$T=R,kU=new de,hE=new de,ple(TQn,new wvn)}function SAn(){SAn=R,aie=Iu(new ii,(Vi(),zr),(tr(),bj))}function uJ(){uJ=R,die=Iu(new ii,(Vi(),zr),(tr(),bj))}function PAn(){PAn=R,wie=Iu(new ii,(Vi(),zr),(tr(),bj))}function IAn(){IAn=R,Nie=Fe(new ii,(Vi(),zr),(tr(),N8))}function ko(){ko=R,xie=Fe(new ii,(Vi(),zr),(tr(),N8))}function OAn(){OAn=R,Rie=Fe(new ii,(Vi(),zr),(tr(),N8))}function DD(){DD=R,Hie=Fe(new ii,(Vi(),zr),(tr(),N8))}function W6(n,e,t,i,r,c){return new ml(n.e,e,n.Lj(),t,i,r,c)}function Lr(n,e,t){return e==null?Vc(n.f,null,t):$b(n.i,e,t)}function Zi(n,e){n.c&&du(n.c.g,n),n.c=e,n.c&&nn(n.c.g,n)}function $i(n,e){n.c&&du(n.c.a,n),n.c=e,n.c&&nn(n.c.a,n)}function ic(n,e){n.i&&du(n.i.j,n),n.i=e,n.i&&nn(n.i.j,n)}function Oi(n,e){n.d&&du(n.d.e,n),n.d=e,n.d&&nn(n.d.e,n)}function $D(n,e){n.a&&du(n.a.k,n),n.a=e,n.a&&nn(n.a.k,n)}function xD(n,e){n.b&&du(n.b.f,n),n.b=e,n.b&&nn(n.b.f,n)}function AAn(n,e){$we(n,n.b,n.c),u(n.b.b,68),e&&u(e.b,68).b}function M2e(n,e){return bt(u(n.c,65).c.e.b,u(e.c,65).c.e.b)}function T2e(n,e){return bt(u(n.c,65).c.e.a,u(e.c,65).c.e.a)}function C2e(n){return Y$(),_n(),u(n.a,86).d.e!=0}function xT(n,e){L(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,e)}function RD(n,e){L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,e)}function S2e(n,e){LY(n,e),L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),2)}function P2e(n,e){var t,i;t=e.c,i=t!=null,i&&Op(n,new q0(e.c))}function LAn(n){var e,t;return t=(o4(),e=new Jd,e),F4(t,n),t}function NAn(n){var e,t;return t=(o4(),e=new Jd,e),F4(t,n),t}function DAn(n){for(var e;;)if(e=n.Pb(),!n.Ob())return e}function I2e(n,e,t){return nn(n.a,(yT(),Dx(e,t),new ib(e,t))),n}function $c(n,e){return dr(),a$(e)?new eT(e,n):new k7(e,n)}function J7(n){return dh(),Ec(n,0)>=0?ia(n):U6(ia(n1(n)))}function O2e(n){var e;return e=u(ZM(n.b),9),new _o(n.a,e,n.c)}function $An(n,e){var t;return t=u(tw(Lp(n.a),e),16),t?t.gc():0}function xAn(n,e,t){var i;oKn(e,t,n.c.length),i=t-e,Pz(n.c,e,i)}function Jl(n,e,t){oKn(e,t,n.gc()),this.c=n,this.a=e,this.b=t-e}function Dp(n){this.c=new Mt,this.b=n.b,this.d=n.c,this.a=n.a}function KD(n){this.a=y.Math.cos(n),this.b=y.Math.sin(n)}function ed(n,e,t,i){this.c=n,this.d=i,$D(this,e),xD(this,t)}function oJ(n,e){Xfe.call(this,new ap(Q0(n))),Mo(e,Azn),this.a=e}function RAn(n,e,t){return new rR(n,(K4(),e_),null,!1,e,t)}function KAn(n,e,t){return new rR(n,(K4(),i_),e,t,null,!1)}function A2e(){return Gu(),S(C(xr,1),G,108,0,[xun,Yr,Sw])}function L2e(){return bu(),S(C(JQn,1),G,472,0,[kf,ma,Xs])}function N2e(){return Uu(),S(C(VQn,1),G,471,0,[Th,pa,zs])}function D2e(){return wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])}function $2e(){return t5(),S(C(Ion,1),G,391,0,[j_,y_,E_])}function x2e(){return Lb(),S(C(K_,1),G,372,0,[u0,va,c0])}function R2e(){return c5(),S(C(Isn,1),G,322,0,[$8,pj,Psn])}function K2e(){return bC(),S(C(Asn,1),G,351,0,[Osn,VI,V_])}function B2e(){return hd(),S(C(pne,1),G,460,0,[Q_,mv,m2])}function F2e(){return Z4(),S(C(oH,1),G,299,0,[cH,uH,mj])}function _2e(){return vl(),S(C(Tne,1),G,311,0,[vj,k2,E3])}function H2e(){return w5(),S(C(Nhn,1),G,390,0,[xH,Lhn,TO])}function q2e(){return gr(),S(C(cie,1),G,463,0,[Q8,Vu,Jc])}function U2e(){return PC(),S(C(zhn,1),G,387,0,[Uhn,GH,Ghn])}function G2e(){return a5(),S(C(Xhn,1),G,349,0,[XH,zH,Oj])}function z2e(){return om(),S(C(Whn,1),G,350,0,[VH,Vhn,Y8])}function X2e(){return dC(),S(C(Yhn,1),G,352,0,[Qhn,WH,Jhn])}function V2e(){return LC(),S(C(Zhn,1),G,388,0,[JH,Av,Gw])}function W2e(){return Ab(),S(C(Cie,1),G,464,0,[Aj,Z8,IO])}function Of(n){return cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a]))}function J2e(){return d5(),S(C(gln,1),G,392,0,[wln,ZH,Nj])}function BAn(){BAn=R,Rre=Iu(new ii,(Qp(),i9),(F5(),uln))}function RT(){RT=R,aq=new cX("DFS",0),Rln=new cX("BFS",1)}function FAn(n,e,t){var i;i=new E3n,i.b=e,i.a=t,++e.b,nn(n.d,i)}function Q2e(n,e,t){var i;i=new rr(t.d),tt(i,n),AY(e,i.a,i.b)}function Y2e(n,e){NCn(n,Se(vi(wb(e,24),YS)),Se(vi(e,YS)))}function z0(n,e){if(n<0||n>e)throw T(new Or(Ptn+n+Itn+e))}function Nn(n,e){if(n<0||n>=e)throw T(new Or(Ptn+n+Itn+e))}function zn(n,e){if(n<0||n>=e)throw T(new wz(Ptn+n+Itn+e))}function On(n,e){this.b=(Jn(n),n),this.a=e&vw?e:e|64|wh}function sJ(n){var e;return ta(n),e=(jb(),jb(),YF),fC(n,e)}function Z2e(n,e,t){var i;return i=G5(n,e,!1),i.b<=e&&i.a<=t}function npe(){return nC(),S(C(A1n,1),G,439,0,[$q,O1n,I1n])}function epe(){return _C(),S(C(a1n,1),G,394,0,[l1n,Oq,h1n])}function tpe(){return XC(),S(C(f1n,1),G,445,0,[Kj,qO,Mq])}function ipe(){return rS(),S(C(bce,1),G,456,0,[Tq,Sq,Cq])}function rpe(){return Ik(),S(C(Uln,1),G,393,0,[FO,Hln,qln])}function cpe(){return SC(),S(C(s1n,1),G,300,0,[Eq,o1n,u1n])}function upe(){return jl(),S(C(ldn,1),G,346,0,[uA,T1,E9])}function ope(){return $k(),S(C(xq,1),G,444,0,[XO,VO,WO])}function spe(){return $f(),S(C(Zan,1),G,278,0,[Rv,Jw,Kv])}function fpe(){return Gp(),S(C(mdn,1),G,280,0,[pdn,Yw,aA])}function Cb(n){return Pe(n),L(n,16)?new _u(u(n,16)):y4(n.Kc())}function fJ(n,e){return n&&n.equals?n.equals(e):x(n)===x(e)}function vi(n,e){return Y1(ewe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function lf(n,e){return Y1(twe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function BD(n,e){return Y1(iwe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function hpe(n,e){var t;return t=(Jn(n),n).g,iV(!!t),Jn(e),t(e)}function _An(n,e){var t,i;return i=M4(n,e),t=n.a.fd(i),new zEn(n,t)}function lpe(n){return n.Db>>16!=6?null:u(dR(n),241)}function ape(n){if(n.p!=2)throw T(new Mu);return Se(n.f)&ui}function dpe(n){if(n.p!=2)throw T(new Mu);return Se(n.k)&ui}function E(n){return oe(n.a<n.c.c.length),n.b=n.a++,n.c.c[n.b]}function bpe(n,e){n.b=n.b|e.b,n.c=n.c|e.c,n.d=n.d|e.d,n.a=n.a|e.a}function wpe(n,e){var t;t=$(B(n.a.of((He(),iA)))),tzn(n,e,t)}function HAn(n,e){Ya.call(this,1,2,S(C(ye,1),_e,28,15,[n,e]))}function qAn(n,e,t){Wd.call(this,25),this.b=n,this.a=e,this.c=t}function yo(n){nt(),Wd.call(this,n),this.c=!1,this.a=!1}function gpe(n){return n.a==($4(),CA)&&mfe(n,OSe(n.g,n.b)),n.a}function $p(n){return n.d==($4(),CA)&&kfe(n,IIe(n.g,n.b)),n.d}function ppe(n,e){return i5(),n.c==e.c?bt(e.d,n.d):bt(e.c,n.c)}function mpe(n,e){return i5(),n.c==e.c?bt(e.d,n.d):bt(n.c,e.c)}function vpe(n,e){return i5(),n.c==e.c?bt(n.d,e.d):bt(n.c,e.c)}function kpe(n,e){return i5(),n.c==e.c?bt(n.d,e.d):bt(e.c,n.c)}function hJ(n,e){return aIn(n.a,e)?ZV(n.b,u(e,22).g,null):null}function ype(n){return nr(Ks(vc(to(n,32)),32),vc(to(n,32)))}function lJ(n){return n.b==null||n.b.length==0?"n_"+n.a:"n_"+n.b}function td(n){return n.c==null||n.c.length==0?"n_"+n.g:"n_"+n.c}function UAn(n,e){var t;for(t=n+"";t.length<e;)t="0"+t;return t}function jpe(n,e){var t;t=u(ee(n.g,e),60),nu(e.d,new KMn(n,t))}function Epe(n,e){var t,i;return t=XBn(n),i=XBn(e),t<i?-1:t>i?1:0}function GAn(n,e){var t,i;return t=s$(e),i=t,u(ee(n.c,i),17).a}function FD(n,e,t){var i;i=n.d[e.p],n.d[e.p]=n.d[t.p],n.d[t.p]=i}function Mpe(n,e,t){var i;n.n&&e&&t&&(i=new uvn,nn(n.e,i))}function _D(n,e){if(fi(n.a,e),e.d)throw T(new ec(nXn));e.d=n}function aJ(n,e){this.a=new Z,this.d=new Z,this.f=n,this.c=e}function zAn(){this.c=new ICn,this.a=new $Nn,this.b=new Xyn,lMn()}function XAn(){qp(),this.b=new de,this.a=new de,this.c=new Z}function VAn(n,e,t){this.d=n,this.j=e,this.e=t,this.o=-1,this.p=3}function WAn(n,e,t){this.d=n,this.k=e,this.f=t,this.o=-1,this.p=5}function JAn(n,e,t,i,r,c){aQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function QAn(n,e,t,i,r,c){dQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function YAn(n,e,t,i,r,c){OJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function ZAn(n,e,t,i,r,c){gQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function nLn(n,e,t,i,r,c){AJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function eLn(n,e,t,i,r,c){bQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function tLn(n,e,t,i,r,c){wQ.call(this,n,e,t,i,r),c&&(this.o=-2)}function iLn(n,e,t,i,r,c){LJ.call(this,n,e,t,i,r),c&&(this.o=-2)}function rLn(n,e,t,i){NE.call(this,t),this.b=n,this.c=e,this.d=i}function cLn(n,e){this.f=n,this.a=($4(),TA),this.c=TA,this.b=e}function uLn(n,e){this.g=n,this.d=($4(),CA),this.a=CA,this.b=e}function dJ(n,e){!n.c&&(n.c=new Bt(n,0)),HS(n.c,(at(),$9),e)}function Tpe(n,e){return oTe(n,e,L(e,102)&&(u(e,19).Bb&hr)!=0)}function Cpe(n,e){return FIn(vc(n.q.getTime()),vc(e.q.getTime()))}function oLn(n){return XN(n.e.Rd().gc()*n.c.Rd().gc(),16,new A8n(n))}function Spe(n){return!!n.u&&Pc(n.u.a).i!=0&&!(n.n&&Ox(n.n))}function Ppe(n){return!!n.a&&no(n.a.a).i!=0&&!(n.b&&Ax(n.b))}function bJ(n,e){return e==0?!!n.o&&n.o.f!=0:Mx(n,e)}function Ipe(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Hc(t)}function sLn(n,e,t){var i;return i=u(n.Zb().xc(e),16),!!i&&i.Mc(t)}function fLn(n,e){var t;return t=1-e,n.a[t]=jC(n.a[t],t),jC(n,e)}function hLn(n,e){var t,i;return i=vi(n,mr),t=Ks(e,32),lf(t,i)}function lLn(n,e,t){var i;i=(Pe(n),new _u(n)),A7e(new EAn(i,e,t))}function Q7(n,e,t){var i;i=(Pe(n),new _u(n)),L7e(new MAn(i,e,t))}function fc(n,e,t,i,r,c){return Hxn(n,e,t,c),EY(n,i),MY(n,r),n}function aLn(n,e,t,i){return n.a+=""+qo(e==null?gu:Jr(e),t,i),n}function xi(n,e){this.a=n,zv.call(this,n),z0(e,n.gc()),this.b=e}function dLn(n){this.a=F(ki,Kn,1,JQ(y.Math.max(8,n))<<1,5,1)}function Y7(n){return u(Rf(n,F(Qh,b1,10,n.c.length,0,1)),199)}function hh(n){return u(Rf(n,F(O_,rB,18,n.c.length,0,1)),483)}function bLn(n){return n.a?n.e.length==0?n.a.a:n.a.a+(""+n.e):n.c}function J6(n){for(;n.d>0&&n.a[--n.d]==0;);n.a[n.d++]==0&&(n.e=0)}function wLn(n){return oe(n.b.b!=n.d.a),n.c=n.b=n.b.b,--n.a,n.c.c}function Ope(n,e,t){n.a=e,n.c=t,n.b.a.$b(),vo(n.d),I0(n.e.a.c,0)}function gLn(n,e){var t;n.e=new cz,t=aw(e),Yt(t,n.c),Oqn(n,t,0)}function ri(n,e,t,i){var r;r=new ZU,r.a=e,r.b=t,r.c=i,Re(n.a,r)}function Q(n,e,t,i){var r;r=new ZU,r.a=e,r.b=t,r.c=i,Re(n.b,r)}function pLn(n,e,t){if(n<0||e<n||e>t)throw T(new Or(qje(n,e,t)))}function Z7(n,e){if(n<0||n>=e)throw T(new Or(kEe(n,e)));return n}function Ape(n){if(!("stack"in n))try{throw n}catch{}return n}function Ig(n){return o6(),L(n.g,10)?u(n.g,10):null}function Lpe(n){return Sg(n).dc()?!1:(e1e(n,new Ir),!0)}function id(n){var e;return Vr(n)?(e=n,e==-0?0:e):X4e(n)}function mLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function vLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function kLn(n,e){return L(e,44)?xx(n.a,u(e,44)):!1}function wJ(n){var e;return X1(n),e=new Nbn,lg(n.a,new j9n(e)),e}function gJ(){var n,e,t;return e=(t=(n=new Jd,n),t),nn(nbn,e),e}function KT(n){var e;return X1(n),e=new Dbn,lg(n.a,new E9n(e)),e}function Npe(n,e){return n.a<=n.b?(e.Dd(n.a++),!0):!1}function yLn(n){I$.call(this,n,(K4(),n_),null,!1,null,!1)}function jLn(){jLn=R,PYn=Me((YE(),S(C(oon,1),G,489,0,[d_])))}function ELn(){ELn=R,eln=wOn(Y(1),Y(4)),nln=wOn(Y(1),Y(2))}function Dpe(n,e){return new _N(e,N6(Fi(e.e),n,n),(_n(),!0))}function BT(n){return new Gc((Mo(n,cK),oC(nr(nr(5,n),n/10|0))))}function $pe(n){return XN(n.e.Rd().gc()*n.c.Rd().gc(),273,new O8n(n))}function MLn(n){return u(Rf(n,F(RZn,LXn,12,n.c.length,0,1)),2042)}function xpe(n){return ko(),!fr(n)&&!(!fr(n)&&n.c.i.c==n.d.i.c)}function Rpe(n,e){return _p(),u(v(e,(lc(),A2)),17).a>=n.gc()}function Q6(n,e){vNe(e,n),WV(n.d),WV(u(v(n,(cn(),mO)),214))}function HD(n,e){kNe(e,n),JV(n.d),JV(u(v(n,(cn(),mO)),214))}function Kpe(n,e,t){n.d&&du(n.d.e,n),n.d=e,n.d&&bb(n.d.e,t,n)}function Bpe(n,e,t){return t.f.c.length>0?MW(n.a,e,t):MW(n.b,e,t)}function Fpe(n,e,t){var i;i=i9e();try{return Sae(n,e,t)}finally{L3e(i)}}function Sb(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.pe()),i}function Y6(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=t.se()),i}function N4(n,e){var t,i;return t=J0(n,e),i=null,t&&(i=t.se()),i}function bl(n,e){var t,i;return t=dl(n,e),i=null,t&&(i=wnn(t)),i}function _pe(n,e,t){var i;return i=wm(t),RS(n.g,i,e),RS(n.i,e,t),e}function pJ(n,e,t){this.d=new $7n(this),this.e=n,this.i=e,this.f=t}function TLn(n,e,t,i){this.e=null,this.c=n,this.d=e,this.a=t,this.b=i}function CLn(n,e,t,i){ECn(this),this.c=n,this.e=e,this.f=t,this.b=i}function mJ(n,e,t,i){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1}function SLn(n,e,t,i){return L(t,59)?new iSn(n,e,t,i):new mW(n,e,t,i)}function D4(n){return L(n,16)?u(n,16).dc():!n.Kc().Ob()}function PLn(n){if(n.e.g!=n.b)throw T(new Ko);return!!n.c&&n.d>0}function be(n){return oe(n.b!=n.d.c),n.c=n.b,n.b=n.b.a,++n.a,n.c.c}function vJ(n,e){Jn(e),$t(n.a,n.c,e),n.c=n.c+1&n.a.length-1,JBn(n)}function W1(n,e){Jn(e),n.b=n.b-1&n.a.length-1,$t(n.a,n.b,e),JBn(n)}function ILn(n){var e;e=n.Gh(),this.a=L(e,71)?u(e,71).Ii():e.Kc()}function Hpe(n){return new On(Sme(u(n.a.md(),16).gc(),n.a.ld()),16)}function OLn(){OLn=R,Gce=Me((eM(),S(C($1n,1),G,490,0,[Rq])))}function ALn(){ALn=R,Xce=Me((tM(),S(C(zce,1),G,558,0,[Kq])))}function LLn(){LLn=R,lue=Me((s6(),S(C(tan,1),G,539,0,[Hj])))}function qpe(){return dd(),S(C(Non,1),G,389,0,[Aw,Lon,P_,I_])}function Upe(){return K4(),S(C(lI,1),G,304,0,[n_,e_,t_,i_])}function Gpe(){return Vp(),S(C(EYn,1),G,332,0,[uj,cj,oj,sj])}function zpe(){return C5(),S(C(CYn,1),G,406,0,[fj,wI,gI,hj])}function Xpe(){return Db(),S(C(yYn,1),G,417,0,[rj,ij,l_,a_])}function Vpe(){return nm(),S(C(TZn,1),G,416,0,[r0,Ow,Iw,d2])}function Wpe(){return xf(),S(C(ene,1),G,421,0,[j3,lv,av,R_])}function Jpe(){return AC(),S(C(UZn,1),G,371,0,[x_,HI,qI,wj])}function Qpe(){return cw(),S(C(KH,1),G,203,0,[CO,RH,I2,P2])}function Ype(){return lh(),S(C(Hhn,1),G,284,0,[k1,_hn,_H,HH])}function Zpe(n){var e;return n.j==(en(),ae)&&(e=mHn(n),Su(e,Zn))}function n3e(n,e){var t;t=e.a,Zi(t,e.c.d),Oi(t,e.d.d),nw(t.a,n.n)}function kJ(n,e){var t;return t=u(Df(n.b,e),67),!t&&(t=new Mt),t}function xp(n){return o6(),L(n.g,154)?u(n.g,154):null}function e3e(n){n.a=null,n.e=null,I0(n.b.c,0),I0(n.f.c,0),n.c=null}function FT(){FT=R,sH=new Yz(qm,0),Jsn=new Yz("TOP_LEFT",1)}function Z6(){Z6=R,e9=new nX("UPPER",0),n9=new nX("LOWER",1)}function t3e(n,e){return vp(new V(e.e.a+e.f.a/2,e.e.b+e.f.b/2),n)}function NLn(n,e){return u(ho(_0(u(ot(n.k,e),15).Oc(),w2)),113)}function DLn(n,e){return u(ho(Sp(u(ot(n.k,e),15).Oc(),w2)),113)}function i3e(){return Qp(),S(C(rln,1),G,405,0,[NO,t9,i9,r9])}function r3e(){return b5(),S(C(xln,1),G,353,0,[lq,KO,hq,fq])}function c3e(){return sS(),S(C(c1n,1),G,354,0,[jq,i1n,r1n,t1n])}function u3e(){return go(),S(C(P9,1),G,386,0,[rE,Gd,iE,Qw])}function o3e(){return Co(),S(C(Yue,1),G,291,0,[nE,nl,Sa,Zj])}function s3e(){return El(),S(C(lU,1),G,223,0,[hU,Yj,Bv,R3])}function f3e(){return qC(),S(C(Mdn,1),G,320,0,[bU,ydn,Edn,jdn])}function h3e(){return NC(),S(C(woe,1),G,415,0,[wU,Cdn,Tdn,Sdn])}function l3e(n){return $T(),Zc(kU,n)?u(ee(kU,n),341).Qg():null}function Uo(n,e,t){return e<0?hR(n,t):u(t,69).wk().Bk(n,n.hi(),e)}function a3e(n,e,t){var i;return i=wm(t),RS(n.j,i,e),Ve(n.k,e,t),e}function d3e(n,e,t){var i;return i=wm(t),RS(n.d,i,e),Ve(n.e,e,t),e}function $Ln(n){var e,t;return e=(K1(),t=new HA,t),n&&SS(e,n),e}function yJ(n){var e;return e=n.aj(n.i),n.i>0&&Oc(n.g,0,e,0,n.i),e}function xLn(n,e){var t;for(t=n.j.c.length;t<e;t++)nn(n.j,n.Ng())}function RLn(n,e,t,i){var r;return r=i[e.g][t.g],$(B(v(n.a,r)))}function KLn(n,e){iM();var t;return t=u(ee(yA,n),57),!t||t.fk(e)}function b3e(n){if(n.p!=1)throw T(new Mu);return Se(n.f)<<24>>24}function w3e(n){if(n.p!=1)throw T(new Mu);return Se(n.k)<<24>>24}function g3e(n){if(n.p!=7)throw T(new Mu);return Se(n.k)<<16>>16}function p3e(n){if(n.p!=7)throw T(new Mu);return Se(n.f)<<16>>16}function Og(n,e){return e.e==0||n.e==0?P8:(Sm(),vR(n,e))}function BLn(n,e){return x(e)===x(n)?"(this Map)":e==null?gu:Jr(e)}function m3e(n,e,t){return tD(B(Fr(wr(n.f,e))),B(Fr(wr(n.f,t))))}function v3e(n,e,t){var i;i=u(ee(n.g,t),60),nn(n.a.c,new bi(e,i))}function FLn(n,e,t){n.i=0,n.e=0,e!=t&&(jRn(n,e,t),yRn(n,e,t))}function k3e(n,e,t,i,r){var c;c=yTe(r,t,i),nn(e,dEe(r,c)),rje(n,r,e)}function jJ(n,e,t,i,r){this.i=n,this.a=e,this.e=t,this.j=i,this.f=r}function _Ln(n,e){ZW.call(this),this.a=n,this.b=e,nn(this.a.b,this)}function HLn(n){this.b=new de,this.c=new de,this.d=new de,this.a=n}function qLn(n,e){var t;return t=new fg,n.Gd(t),t.a+="..",e.Hd(t),t.a}function ULn(n,e){var t;for(t=e;t;)ab(n,t.i,t.j),t=St(t);return n}function GLn(n,e,t){var i;return i=wm(t),Ve(n.b,i,e),Ve(n.c,e,t),e}function wl(n){var e;for(e=0;n.Ob();)n.Pb(),e=nr(e,1);return oC(e)}function Rh(n,e){dr();var t;return t=u(n,69).vk(),kje(t,e),t.xl(e)}function y3e(n,e,t){if(t){var i=t.oe();n.a[e]=i(t)}else delete n.a[e]}function EJ(n,e){var t;t=n.q.getHours(),n.q.setFullYear(e+ha),H5(n,t)}function j3e(n,e){return u(e==null?Fr(wr(n.f,null)):a6(n.i,e),288)}function MJ(n,e){return n==(Vn(),zt)&&e==zt?4:n==zt||e==zt?8:32}function _T(n,e,t){return BS(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function E3e(n,e,t){return Am(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function M3e(n,e,t){return bTe(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0)}function TJ(n){n.b!=n.c&&(n.a=F(ki,Kn,1,8,5,1),n.b=0,n.c=0)}function n5(n){return oe(n.a<n.c.a.length),n.b=n.a,i$n(n),n.c.b[n.b]}function Pc(n){return n.n||(Zu(n),n.n=new mIn(n,jr,n),Hr(n)),n.n}function zLn(n){if(n<0)throw T(new Bjn("Negative array size: "+n))}function qD(n,e,t){if(t){var i=t.oe();t=i(t)}else t=void 0;n.a[e]=t}function XLn(n,e){cm();var t;return t=n.j.g-e.j.g,t!=0?t:0}function T3e(n,e){return fl(),ve(H(n.a),e)}function C3e(n,e){return fl(),ve(H(n.a),e)}function gl(n,e){dh(),Ya.call(this,n,1,S(C(ye,1),_e,28,15,[e]))}function X0(n,e){nt(),Wd.call(this,n),this.a=e,this.c=-1,this.b=-1}function V0(n,e,t,i){VAn.call(this,1,t,i),this.c=n,this.b=e}function UD(n,e,t,i){WAn.call(this,1,t,i),this.c=n,this.b=e}function GD(n,e,t,i,r,c,s){k$.call(this,e,i,r,c,s),this.c=n,this.a=t}function rd(n,e,t){this.e=n,this.a=ki,this.b=Qqn(e),this.c=e,this.d=t}function zD(n){this.e=n,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function CJ(n){this.d=n,this.b=this.d.a.entries(),this.a=this.b.next()}function VLn(n){this.c=n,this.a=u(gs(n),156),this.b=this.a.jk().wi()}function Ql(){de.call(this),sSn(this),this.d.b=this.d,this.d.a=this.d}function xt(n,e,t,i){var r;r=new AA,r.c=e,r.b=t,r.a=i,i.b=t.a=r,++n.b}function S3e(n,e){var t;return t=e!=null?Dc(n,e):Fr(wr(n.f,e)),IM(t)}function P3e(n,e){var t;return t=e!=null?Dc(n,e):Fr(wr(n.f,e)),IM(t)}function Wr(n,e){var t;return e.b.Kb(GDn(n,e.c.Xe(),(t=new S9n(e),t)))}function I3e(n,e){var t;return zLn(e),t=n.slice(0,e),t.length=e,o$(t,n)}function WLn(n,e){var t;for(t=0;t<e;++t)$t(n,t,new jG(u(n[t],44)))}function O3e(n,e){var t;for(t=n.d-1;t>=0&&n.a[t]===e[t];t--);return t<0}function HT(n){var e;return n?new sW(n):(e=new rh,S$(e,n),e)}function A3e(n,e){var t,i;i=!1;do t=lRn(n,e),i=i|t;while(t);return i}function L3e(n){n&&rme((lz(),sun)),--cI,n&&uI!=-1&&(Ele(uI),uI=-1)}function qT(n){ZZ(),NCn(this,Se(vi(wb(n,24),YS)),Se(vi(n,YS)))}function JLn(){JLn=R,HQn=Me((YC(),S(C(Kun,1),G,436,0,[u_,Run])))}function QLn(){QLn=R,qQn=Me((cC(),S(C(Fun,1),G,435,0,[Bun,o_])))}function YLn(){YLn=R,GYn=Me((uC(),S(C(bon,1),G,432,0,[m_,vI])))}function ZLn(){ZLn=R,_Zn=Me((V4(),S(C(FZn,1),G,517,0,[dj,L_])))}function nNn(){nNn=R,Sne=Me((FT(),S(C(Qsn,1),G,429,0,[sH,Jsn])))}function eNn(){eNn=R,gne=Me((wk(),S(C($sn,1),G,428,0,[WI,Dsn])))}function tNn(){tNn=R,kne=Me((sk(),S(C(Ksn,1),G,488,0,[Rsn,QI])))}function iNn(){iNn=R,rie=Me((dk(),S(C(qhn,1),G,430,0,[qH,UH])))}function rNn(){rNn=R,Lie=Me((Z6(),S(C(Aie,1),G,531,0,[e9,n9])))}function cNn(){cNn=R,ane=Me((QT(),S(C(Ssn,1),G,431,0,[Csn,X_])))}function uNn(){uNn=R,xre=Me((RT(),S(C(Kln,1),G,433,0,[aq,Rln])))}function oNn(){oNn=R,_re=Me((yC(),S(C(Bln,1),G,501,0,[BO,N2])))}function sNn(){sNn=R,Bie=Me((fh(),S(C(Kie,1),G,523,0,[m0,y1])))}function fNn(){fNn=R,_ie=Me((If(),S(C(Fie,1),G,522,0,[Bd,Xf])))}function hNn(){hNn=R,tre=Me((af(),S(C(ere,1),G,528,0,[zw,Ea])))}function lNn(){lNn=R,fre=Me((Tb(),S(C(sre,1),G,465,0,[Ma,O2])))}function aNn(){aNn=R,Ure=Me((ZT(),S(C(_ln,1),G,434,0,[Fln,mq])))}function dNn(){dNn=R,Bce=Me((GT(),S(C(P1n,1),G,491,0,[Dq,S1n])))}function bNn(){bNn=R,_ce=Me((D$(),S(C(D1n,1),G,492,0,[L1n,N1n])))}function wNn(){wNn=R,Vce=Me((ik(),S(C(x1n,1),G,438,0,[Bq,JO])))}function gNn(){gNn=R,aue=Me((Tk(),S(C(ran,1),G,437,0,[YO,ian])))}function pNn(){pNn=R,aoe=Me((BN(),S(C(dA,1),G,347,0,[vdn,kdn])))}function N3e(){return ci(),S(C(y9,1),G,88,0,[Jf,Xr,Kr,Wf,us])}function D3e(){return en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])}function $3e(n,e,t){return u(e==null?Vc(n.f,null,t):$b(n.i,e,t),288)}function x3e(n){return(n.k==(Vn(),zt)||n.k==Zt)&&kt(n,(W(),B8))}function XD(n){return n.c&&n.d?lJ(n.c)+"->"+lJ(n.d):"e_"+lb(n)}function qi(n,e){var t,i;for(Jn(e),i=n.Kc();i.Ob();)t=i.Pb(),e.Cd(t)}function R3e(n,e){var t;t=new sp,nd(t,"x",e.a),nd(t,"y",e.b),Op(n,t)}function K3e(n,e){var t;t=new sp,nd(t,"x",e.a),nd(t,"y",e.b),Op(n,t)}function mNn(n,e){var t;for(t=e;t;)ab(n,-t.i,-t.j),t=St(t);return n}function SJ(n,e){var t,i;for(t=e,i=0;t>0;)i+=n.a[t],t-=t&-t;return i}function Go(n,e,t){var i;return i=(Nn(e,n.c.length),n.c[e]),n.c[e]=t,i}function PJ(n,e,t){n.a.c.length=0,fAe(n,e,t),n.a.c.length==0||RPe(n,e)}function nk(n){n.i=0,u7(n.b,null),u7(n.c,null),n.a=null,n.e=null,++n.g}function UT(){UT=R,Uf=!0,LQn=!1,NQn=!1,$Qn=!1,DQn=!1}function VD(n){UT(),!Uf&&(this.c=n,this.e=!0,this.a=new Z)}function vNn(n,e){this.c=0,this.b=e,HTn.call(this,n,17493),this.a=this.c}function kNn(n){jzn(),Pyn(this),this.a=new Mt,oY(this,n),Re(this.a,n)}function yNn(){pN(this),this.b=new V(Pt,Pt),this.a=new V(li,li)}function GT(){GT=R,Dq=new sX(rin,0),S1n=new sX("TARGET_WIDTH",1)}function Ag(n,e){return(ta(n),s4(new Cn(n,new eQ(e,n.a)))).Bd(v3)}function B3e(){return Vi(),S(C(Oon,1),G,367,0,[Vs,Jh,Ac,Fc,zr])}function F3e(){return ow(),S(C(ine,1),G,375,0,[gj,zI,XI,GI,UI])}function _3e(){return o1(),S(C(Nsn,1),G,348,0,[W_,Lsn,J_,pv,gv])}function H3e(){return T5(),S(C($hn,1),G,323,0,[Dhn,BH,FH,W8,J8])}function q3e(){return Yo(),S(C(hfn,1),G,171,0,[Ej,_8,ya,H8,xw])}function U3e(){return wS(),S(C(Hre,1),G,368,0,[gq,dq,pq,bq,wq])}function G3e(){return x5(),S(C(Hce,1),G,373,0,[D2,L3,d9,a9,_j])}function z3e(){return Jk(),S(C(F1n,1),G,324,0,[R1n,Fq,B1n,_q,K1n])}function X3e(){return pf(),S(C(Zh,1),G,170,0,[xn,pi,Ih,Fd,E1])}function V3e(){return Kg(),S(C(T9,1),G,256,0,[Pa,eE,adn,M9,ddn])}function W3e(n){return HE(),function(){return Fpe(n,this,arguments)}}function fr(n){return!n.c||!n.d?!1:!!n.c.i&&n.c.i==n.d.i}function IJ(n,e){return L(e,143)?Sn(n.c,u(e,143).c):!1}function Zu(n){return n.t||(n.t=new myn(n),v5(new Djn(n),0,n.t)),n.t}function jNn(n){this.b=n,ne.call(this,n),this.a=u(Un(this.b.a,4),129)}function ENn(n){this.b=n,yp.call(this,n),this.a=u(Un(this.b.a,4),129)}function Bs(n,e,t,i,r){NNn.call(this,e,i,r),this.c=n,this.b=t}function OJ(n,e,t,i,r){VAn.call(this,e,i,r),this.c=n,this.a=t}function AJ(n,e,t,i,r){WAn.call(this,e,i,r),this.c=n,this.a=t}function LJ(n,e,t,i,r){NNn.call(this,e,i,r),this.c=n,this.a=t}function WD(n,e){var t;return t=u(Df(n.d,e),23),t||u(Df(n.e,e),23)}function MNn(n,e){var t,i;return t=e.ld(),i=n.Fe(t),!!i&&mc(i.e,e.md())}function TNn(n,e){var t;return t=e.ld(),new ib(t,n.e.pc(t,u(e.md(),16)))}function J3e(n,e){var t;return t=n.a.get(e),t??F(ki,Kn,1,0,5,1)}function CNn(n){var e;return e=n.length,Sn(Yn.substr(Yn.length-e,e),n)}function fe(n){if(pe(n))return n.c=n.a,n.a.Pb();throw T(new nc)}function NJ(n,e){return e==0||n.e==0?n:e>0?wqn(n,e):BKn(n,-e)}function Rp(n,e){return e==0||n.e==0?n:e>0?BKn(n,e):wqn(n,-e)}function DJ(n){ole.call(this,n==null?gu:Jr(n),L(n,82)?u(n,82):null)}function SNn(n){var e;return n.c||(e=n.r,L(e,90)&&(n.c=u(e,29))),n.c}function JD(n){var e;return e=new Eb,Ur(e,n),U(e,(cn(),Rr),null),e}function PNn(n){var e,t;return e=n.c.i,t=n.d.i,e.k==(Vn(),Zt)&&t.k==Zt}function QD(n){var e,t,i;return e=n&ro,t=n>>22&ro,i=n<0?Ol:0,Yc(e,t,i)}function Q3e(n){var e,t,i,r;for(t=n,i=0,r=t.length;i<r;++i)e=t[i],X6(e)}function Y3e(n,e){var t,i;t=u(o5e(n.c,e),16),t&&(i=t.gc(),t.$b(),n.d-=i)}function YD(n,e,t){var i;return i=n.Ih(e),i>=0?n.Lh(i,t,!0):Hb(n,e,t)}function Z3e(n,e,t){return bt(vp(pm(n),Fi(e.b)),vp(pm(n),Fi(t.b)))}function n4e(n,e,t){return bt(vp(pm(n),Fi(e.e)),vp(pm(n),Fi(t.e)))}function e4e(n,e){return y.Math.min(J1(e.a,n.d.d.c),J1(e.b,n.d.d.c))}function ek(n,e){n._i(n.i+1),O6(n,n.i,n.Zi(n.i,e)),n.Mi(n.i++,e),n.Ni()}function e5(n){var e,t;++n.j,e=n.g,t=n.i,n.g=null,n.i=0,n.Oi(t,e),n.Ni()}function INn(n,e,t){var i;i=new NX(n.a),s5(i,n.a.a),Vc(i.f,e,t),n.a.a=i}function $J(n,e,t,i){var r;for(r=0;r<dI;r++)hT(n.a[r][e.g],t,i[e.g])}function xJ(n,e,t,i){var r;for(r=0;r<f_;r++)lT(n.a[e.g][r],t,i[e.g])}function ot(n,e){var t;return t=u(n.c.xc(e),16),!t&&(t=n.ic(e)),n.pc(e,t)}function t4e(n){var e;return e=(Pe(n),n?new _u(n):y4(n.Kc())),Yk(e),RC(e)}function Af(n){var e,t;return Pe(n),e=Zwe(n.length),t=new Gc(e),nY(t,n),t}function ZD(n,e,t,i){var r;return r=F(ye,_e,28,e,15,1),Eye(r,n,e,t,i),r}function RJ(n,e){if(n<0||n>e)throw T(new Or(Mnn(n,e,"index")));return n}function Yl(n,e){var t;return t=(Nn(e,n.c.length),n.c[e]),Pz(n.c,e,1),t}function KJ(n,e){var t,i;return t=(Jn(n),n),i=(Jn(e),e),t==i?0:t<i?-1:1}function BJ(n){var e;return e=n.e+n.f,isNaN(e)&&GM(n.d)?n.d:e}function i4e(n){return n.e=3,n.d=n.Yb(),n.e!=2?(n.e=0,!0):!1}function pl(n,e){return n.a?Be(n.a,n.b):n.a=new mo(n.d),C6(n.a,e),n}function Kp(n,e){return Si(e)?e==null?_nn(n.f,null):Gxn(n.i,e):_nn(n.f,e)}function ONn(n,e){_Tn.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function ANn(n,e){HTn.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function FJ(n,e){OM.call(this,e.zd(),e.yd()&-6),Jn(n),this.a=n,this.b=e}function LNn(n,e,t){NE.call(this,t),this.b=n,this.c=e,this.d=(gx(),TU)}function NNn(n,e,t){this.d=n,this.k=e?1:0,this.f=t?1:0,this.o=-1,this.p=0}function Lf(n){this.c=n,this.a=new M(this.c.a),this.b=new M(this.c.b)}function zT(){this.e=new Z,this.c=new Z,this.d=new Z,this.b=new Z}function DNn(){this.g=new GG,this.b=new GG,this.a=new Z,this.k=new Z}function $Nn(){this.a=new WG,this.b=new ejn,this.d=new cwn,this.e=new lwn}function xNn(n,e,t){this.a=n,this.c=e,this.d=t,nn(e.e,this),nn(t.b,this)}function _J(n,e,t){var i,r;for(i=0,r=0;r<e.length;r++)i+=n.tg(e[r],i,t)}function r4e(n,e){var t;return t=EAe(n,e),n.b=new EC(t.c.length),HOe(n,t)}function c4e(n,e){var t;t=n.q.getHours()+(e/60|0),n.q.setMinutes(e),H5(n,t)}function n$(n){var e;return e=n.b,e.b==0?null:u(Zo(e,0),65).b}function HJ(n){if(n.a){if(n.e)return HJ(n.e)}else return n;return null}function u4e(n,e){return n.p<e.p?1:n.p>e.p?-1:0}function RNn(n){var e;return n.a||(e=n.r,L(e,156)&&(n.a=u(e,156))),n.a}function o4e(n,e,t){var i;return++n.e,--n.f,i=u(n.d[e].gd(t),136),i.md()}function s4e(n){var e,t;return e=n.ld(),t=u(n.md(),16),D7(t.Nc(),new N8n(e))}function KNn(n,e){return Zc(n.a,e)?(Kp(n.a,e),!0):!1}function Bp(n,e,t){return Z7(e,n.e.Rd().gc()),Z7(t,n.c.Rd().gc()),n.a[e][t]}function XT(n,e,t){this.a=n,this.b=e,this.c=t,nn(n.t,this),nn(e.i,this)}function VT(n,e,t,i){this.f=n,this.e=e,this.d=t,this.b=i,this.c=i?i.d:null}function tk(){this.b=new Mt,this.a=new Mt,this.b=new Mt,this.a=new Mt}function $4(){$4=R;var n,e;TA=(o4(),e=new xE,e),CA=(n=new fL,n)}function f4e(n){var e;return ta(n),e=new OPn(n,n.a.e,n.a.d|4),new cV(n,e)}function BNn(n){var e;for(X1(n),e=0;n.a.Bd(new Wbn);)e=nr(e,1);return e}function WT(n,e){return Jn(e),n.c<n.d?(n.Se(e,n.c++),!0):!1}function Gc(n){pN(this),x7(n>=0,"Initial capacity must not be negative")}function JT(){JT=R,b9=new lt("org.eclipse.elk.labels.labelManager")}function FNn(){FNn=R,ysn=new Lt("separateLayerConnections",(AC(),x_))}function af(){af=R,zw=new iX("REGULAR",0),Ea=new iX("CRITICAL",1)}function ik(){ik=R,Bq=new hX("FIXED",0),JO=new hX("CENTER_NODE",1)}function QT(){QT=R,Csn=new Wz("QUADRATIC",0),X_=new Wz("SCANLINE",1)}function _Nn(){_Nn=R,dne=Me((c5(),S(C(Isn,1),G,322,0,[$8,pj,Psn])))}function HNn(){HNn=R,bne=Me((bC(),S(C(Asn,1),G,351,0,[Osn,VI,V_])))}function qNn(){qNn=R,fne=Me((Lb(),S(C(K_,1),G,372,0,[u0,va,c0])))}function UNn(){UNn=R,mne=Me((hd(),S(C(pne,1),G,460,0,[Q_,mv,m2])))}function GNn(){GNn=R,Mne=Me((Z4(),S(C(oH,1),G,299,0,[cH,uH,mj])))}function zNn(){zNn=R,Cne=Me((vl(),S(C(Tne,1),G,311,0,[vj,k2,E3])))}function XNn(){XNn=R,Zte=Me((w5(),S(C(Nhn,1),G,390,0,[xH,Lhn,TO])))}function VNn(){VNn=R,oie=Me((PC(),S(C(zhn,1),G,387,0,[Uhn,GH,Ghn])))}function WNn(){WNn=R,sie=Me((a5(),S(C(Xhn,1),G,349,0,[XH,zH,Oj])))}function JNn(){JNn=R,uie=Me((gr(),S(C(cie,1),G,463,0,[Q8,Vu,Jc])))}function QNn(){QNn=R,fie=Me((om(),S(C(Whn,1),G,350,0,[VH,Vhn,Y8])))}function YNn(){YNn=R,hie=Me((dC(),S(C(Yhn,1),G,352,0,[Qhn,WH,Jhn])))}function ZNn(){ZNn=R,lie=Me((LC(),S(C(Zhn,1),G,388,0,[JH,Av,Gw])))}function nDn(){nDn=R,are=Me((d5(),S(C(gln,1),G,392,0,[wln,ZH,Nj])))}function eDn(){eDn=R,Gre=Me((Ik(),S(C(Uln,1),G,393,0,[FO,Hln,qln])))}function tDn(){tDn=R,ace=Me((SC(),S(C(s1n,1),G,300,0,[Eq,o1n,u1n])))}function iDn(){iDn=R,dce=Me((XC(),S(C(f1n,1),G,445,0,[Kj,qO,Mq])))}function rDn(){rDn=R,wce=Me((rS(),S(C(bce,1),G,456,0,[Tq,Sq,Cq])))}function cDn(){cDn=R,mce=Me((_C(),S(C(a1n,1),G,394,0,[l1n,Oq,h1n])))}function uDn(){uDn=R,Fce=Me((nC(),S(C(A1n,1),G,439,0,[$q,O1n,I1n])))}function oDn(){oDn=R,Sie=Me((Ab(),S(C(Cie,1),G,464,0,[Aj,Z8,IO])))}function sDn(){sDn=R,WQn=Me((Uu(),S(C(VQn,1),G,471,0,[Th,pa,zs])))}function fDn(){fDn=R,XQn=Me((wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])))}function hDn(){hDn=R,QQn=Me((bu(),S(C(JQn,1),G,472,0,[kf,ma,Xs])))}function lDn(){lDn=R,xQn=Me((Gu(),S(C(xr,1),G,108,0,[xun,Yr,Sw])))}function aDn(){aDn=R,pZn=Me((t5(),S(C(Ion,1),G,391,0,[j_,y_,E_])))}function dDn(){dDn=R,Que=Me((jl(),S(C(ldn,1),G,346,0,[uA,T1,E9])))}function bDn(){bDn=R,Uce=Me(($k(),S(C(xq,1),G,444,0,[XO,VO,WO])))}function wDn(){wDn=R,Xue=Me(($f(),S(C(Zan,1),G,278,0,[Rv,Jw,Kv])))}function gDn(){gDn=R,loe=Me((Gp(),S(C(mdn,1),G,280,0,[pdn,Yw,aA])))}function Nf(n,e){return!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),wx(n.o,e)}function h4e(n,e){var t;n.C&&(t=u(Mr(n.b,e),127).n,t.d=n.C.d,t.a=n.C.a)}function qJ(n){var e,t,i,r;r=n.d,e=n.a,t=n.b,i=n.c,n.d=t,n.a=i,n.b=r,n.c=e}function l4e(n){return!n.g&&(n.g=new ME),!n.g.b&&(n.g.b=new byn(n)),n.g.b}function rk(n){return!n.g&&(n.g=new ME),!n.g.c&&(n.g.c=new pyn(n)),n.g.c}function a4e(n){return!n.g&&(n.g=new ME),!n.g.d&&(n.g.d=new wyn(n)),n.g.d}function d4e(n){return!n.g&&(n.g=new ME),!n.g.a&&(n.g.a=new gyn(n)),n.g.a}function b4e(n,e,t,i){return t&&(i=t.Rh(e,At(t.Dh(),n.c.uk()),null,i)),i}function w4e(n,e,t,i){return t&&(i=t.Th(e,At(t.Dh(),n.c.uk()),null,i)),i}function e$(n,e,t,i){var r;return r=F(ye,_e,28,e+1,15,1),vIe(r,n,e,t,i),r}function F(n,e,t,i,r,c){var s;return s=_Bn(r,i),r!=10&&S(C(n,c),e,t,r,s),s}function g4e(n,e,t){var i,r;for(r=new Y4(e,n),i=0;i<t;++i)iS(r);return r}function t$(n,e,t){var i,r;if(t!=null)for(i=0;i<e;++i)r=t[i],n.Qi(i,r)}function UJ(n,e){var t;return t=new LA,t.c=!0,t.d=e.md(),NGn(n,e.ld(),t)}function p4e(n,e){var t;t=n.q.getHours()+(e/3600|0),n.q.setSeconds(e),H5(n,t)}function GJ(n,e){var t,i;return t=e,i=CD(y4(new f$(n,t))),iT(new f$(n,t)),i}function m4e(n,e){e.Ug("Label management",1),IM(v(n,(JT(),b9))),e.Vg()}function v4e(n,e,t,i){NUn(n,e,t,Am(n,e,i,L(e,102)&&(u(e,19).Bb&hr)!=0))}function zJ(n,e,t){u(n.b,68),u(n.b,68),u(n.b,68),nu(n.a,new gPn(t,e,n))}function Ri(n,e,t){if(n<0||e>t||e<n)throw T(new wz(ZS+n+Stn+e+Mtn+t))}function i$(n){n?(this.c=n,this.b=null):(this.c=null,this.b=new Z)}function r$(n,e){oM.call(this,n,e),this.a=F(lDe,WS,447,2,0,1),this.b=!0}function XJ(n){wRn.call(this,n,0),sSn(this),this.d.b=this.d,this.d.a=this.d}function VJ(n){this.e=n,this.b=this.e.a.entries(),this.a=F(ki,Kn,1,0,5,1)}function pDn(){pDn=R,bie=Iu(Fe(new ii,(Vi(),Vs),(tr(),N_)),zr,bj)}function k4e(){return vS(),S(C(xsn,1),G,283,0,[Z_,Y_,eH,nH,tH,JI])}function y4e(){return Vk(),S(C(qsn,1),G,281,0,[YI,Fsn,Hsn,Bsn,_sn,iH])}function j4e(){return jm(),S(C(Wsn,1),G,282,0,[x8,Gsn,Vsn,Xsn,zsn,Usn])}function E4e(){return Yp(),S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2])}function M4e(){return Vn(),S(C(A_,1),G,273,0,[zt,Ti,Zt,_c,Sc,Gf])}function T4e(){return zu(),S(C(oA,1),G,279,0,[Oa,Rl,tE,S9,C9,K3])}function C4e(){return Ai(),S(C(bdn,1),G,101,0,[Ia,Qf,Fv,Ud,tl,qc])}function S4e(){return pS(),S(C(cdn,1),G,321,0,[aU,tdn,rdn,ndn,idn,edn])}function P4e(){return Bh(),S(C(fan,1),G,255,0,[Xq,qj,Uj,eA,ZO,nA])}function I4e(){return wd(),S(C(Qq,1),G,298,0,[Jq,m9,p9,Wq,w9,g9])}function WJ(n){var e;return!n.a&&n.b!=-1&&(e=n.c.Dh(),n.a=$n(e,n.b)),n.a}function ve(n,e){return n.Si()&&n.Hc(e)?!1:(n.Hi(e),!0)}function df(n,e){return G7(e,"Horizontal alignment cannot be null"),n.b=e,n}function mDn(n,e,t){nt();var i;return i=sa(n,e),t&&i&&Bwe(n)&&(i=null),i}function JJ(n,e,t){var i;i=n.b[t.c.p][t.p],i.b+=e.b,i.c+=e.c,i.a+=e.a,++i.a}function QJ(n,e,t){var i;n.d[e.g]=t,i=n.g.c,i[e.g]=y.Math.max(i[e.g],t+1)}function J1(n,e){var t,i;return t=n.a-e.a,i=n.b-e.b,y.Math.sqrt(t*t+i*i)}function YJ(n,e){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),36),sUn(n,t,0,0)}function Zl(n,e,t){var i,r;for(r=n.Kc();r.Ob();)i=u(r.Pb(),36),Pm(i,e,t)}function O4e(n){var e,t;for(t=ge(n.a,0);t.b!=t.d.c;)e=u(be(t),65),Ann(e)}function vDn(n,e){return kMn(n.e,e)||s1(n.e,e,new fBn(e)),u(Df(n.e,e),113)}function qu(n,e,t,i){return Jn(n),Jn(e),Jn(t),Jn(i),new CW(n,e,new Kbn)}function Ou(n,e,t,i){this.ak(),this.a=e,this.b=n,this.c=new yW(this,e,t,i)}function c$(n,e,t,i,r,c){mJ.call(this,e,i,r,c),this.c=n,this.b=t}function ck(n,e,t,i,r,c){mJ.call(this,e,i,r,c),this.c=n,this.a=t}function uk(n,e){var t,i,r;return r=n.r,i=n.d,t=G5(n,e,!0),t.b!=r||t.a!=i}function ok(n,e,t){var i,r;return r=(i=Tm(n.b,e),i),r?qS(hk(n,r),t):null}function A4e(n,e,t){var i,r,c;i=dl(n,t),r=null,i&&(r=wnn(i)),c=r,uBn(e,t,c)}function L4e(n,e,t){var i,r,c;i=dl(n,t),r=null,i&&(r=wnn(i)),c=r,uBn(e,t,c)}function x4(n,e){var t;return t=n.Ih(e),t>=0?n.Lh(t,!0,!0):Hb(n,e,!0)}function N4e(n,e,t){var i;return i=vRn(n,e,t),n.b=new EC(i.c.length),aen(n,i)}function D4e(n){if(n.b<=0)throw T(new nc);return--n.b,n.a-=n.c.c,Y(n.a)}function $4e(n){var e;if(!n.a)throw T(new IOn);return e=n.a,n.a=St(n.a),e}function x4e(n){for(;!n.a;)if(!ePn(n.c,new M9n(n)))return!1;return!0}function Fp(n){var e;return Pe(n),L(n,204)?(e=u(n,204),e):new _8n(n)}function R4e(n){YT(),u(n.of((He(),Ww)),181).Fc((zu(),tE)),n.qf(oU,null)}function YT(){YT=R,wue=new Emn,pue=new Mmn,gue=T6e((He(),oU),wue,Ca,pue)}function ZT(){ZT=R,Fln=new oX("LEAF_NUMBER",0),mq=new oX("NODE_SIZE",1)}function u$(n){n.a=F(ye,_e,28,n.b+1,15,1),n.c=F(ye,_e,28,n.b,15,1),n.d=0}function K4e(n,e){n.a.Ne(e.d,n.b)>0&&(nn(n.c,new UV(e.c,e.d,n.d)),n.b=e.d)}function ZJ(n,e){if(n.g==null||e>=n.i)throw T(new aN(e,n.i));return n.g[e]}function kDn(n,e,t){if(rm(n,t),t!=null&&!n.fk(t))throw T(new uL);return t}function o$(n,e){return bk(e)!=10&&S(wo(e),e.Sm,e.__elementTypeId$,bk(e),n),n}function R4(n,e,t,i){var r;i=(jb(),i||Iun),r=n.slice(e,t),Tnn(r,n,e,t,-e,i)}function zo(n,e,t,i,r){return e<0?Hb(n,t,i):u(t,69).wk().yk(n,n.hi(),e,i,r)}function B4e(n,e){return bt($(B(v(n,(W(),f0)))),$(B(v(e,f0))))}function yDn(){yDn=R,OQn=Me((K4(),S(C(lI,1),G,304,0,[n_,e_,t_,i_])))}function K4(){K4=R,n_=new uM("All",0),e_=new lCn,t_=new kCn,i_=new hCn}function Uu(){Uu=R,Th=new RL(s3,0),pa=new RL(qm,1),zs=new RL(f3,2)}function jDn(){jDn=R,FS(),sbn=Pt,mse=li,fbn=new z9(Pt),vse=new z9(li)}function EDn(){EDn=R,jYn=Me((Db(),S(C(yYn,1),G,417,0,[rj,ij,l_,a_])))}function MDn(){MDn=R,SYn=Me((C5(),S(C(CYn,1),G,406,0,[fj,wI,gI,hj])))}function TDn(){TDn=R,MYn=Me((Vp(),S(C(EYn,1),G,332,0,[uj,cj,oj,sj])))}function CDn(){CDn=R,LZn=Me((dd(),S(C(Non,1),G,389,0,[Aw,Lon,P_,I_])))}function SDn(){SDn=R,CZn=Me((nm(),S(C(TZn,1),G,416,0,[r0,Ow,Iw,d2])))}function PDn(){PDn=R,tne=Me((xf(),S(C(ene,1),G,421,0,[j3,lv,av,R_])))}function IDn(){IDn=R,GZn=Me((AC(),S(C(UZn,1),G,371,0,[x_,HI,qI,wj])))}function ODn(){ODn=R,nie=Me((cw(),S(C(KH,1),G,203,0,[CO,RH,I2,P2])))}function ADn(){ADn=R,iie=Me((lh(),S(C(Hhn,1),G,284,0,[k1,_hn,_H,HH])))}function sk(){sk=R,Rsn=new Qz(kh,0),QI=new Qz("IMPROVE_STRAIGHTNESS",1)}function LDn(n,e){var t,i;return i=e/n.c.Rd().gc()|0,t=e%n.c.Rd().gc(),Bp(n,i,t)}function NDn(n){var e;if(n.nl())for(e=n.i-1;e>=0;--e)N(n,e);return yJ(n)}function nQ(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[0];)t=e;return t}function DDn(n){var e,t;if(!n.b)return null;for(t=n.b;e=t.a[1];)t=e;return t}function F4e(n){return L(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function _4e(n){return L(n,180)?""+u(n,180).a:n==null?null:Jr(n)}function $Dn(n,e){if(e.a)throw T(new ec(nXn));fi(n.a,e),e.a=n,!n.j&&(n.j=e)}function eQ(n,e){OM.call(this,e.zd(),e.yd()&-16449),Jn(n),this.a=n,this.c=e}function H4e(n,e){return new _N(e,ab(Fi(e.e),e.f.a+n,e.f.b+n),(_n(),!1))}function q4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function U4e(n,e){return k4(),nn(n,new bi(e,Y(e.e.c.length+e.g.c.length)))}function xDn(){xDn=R,lce=Me((sS(),S(C(c1n,1),G,354,0,[jq,i1n,r1n,t1n])))}function RDn(){RDn=R,$re=Me((b5(),S(C(xln,1),G,353,0,[lq,KO,hq,fq])))}function KDn(){KDn=R,hre=Me((Qp(),S(C(rln,1),G,405,0,[NO,t9,i9,r9])))}function BDn(){BDn=R,Vue=Me((El(),S(C(lU,1),G,223,0,[hU,Yj,Bv,R3])))}function FDn(){FDn=R,Zue=Me((Co(),S(C(Yue,1),G,291,0,[nE,nl,Sa,Zj])))}function _Dn(){_Dn=R,foe=Me((go(),S(C(P9,1),G,386,0,[rE,Gd,iE,Qw])))}function HDn(){HDn=R,doe=Me((qC(),S(C(Mdn,1),G,320,0,[bU,ydn,Edn,jdn])))}function qDn(){qDn=R,goe=Me((NC(),S(C(woe,1),G,415,0,[wU,Cdn,Tdn,Sdn])))}function nC(){nC=R,$q=new oN(mVn,0),O1n=new oN(Ern,1),I1n=new oN(kh,2)}function W0(n,e,t,i,r){return Jn(n),Jn(e),Jn(t),Jn(i),Jn(r),new CW(n,e,i)}function UDn(n,e){var t;return t=u(Kp(n.e,e),400),t?(eW(t),t.e):null}function du(n,e){var t;return t=qr(n,e,0),t==-1?!1:(Yl(n,t),!0)}function GDn(n,e,t){var i;return X1(n),i=new NA,i.a=e,n.a.Nb(new CMn(i,t)),i.a}function G4e(n){var e;return X1(n),e=F(Ii,Cr,28,0,15,1),lg(n.a,new y9n(e)),e}function tQ(n){var e;if(!E$(n))throw T(new nc);return n.e=1,e=n.d,n.d=null,e}function n1(n){var e;return Vr(n)&&(e=0-n,!isNaN(e))?e:Y1(tm(n))}function qr(n,e,t){for(;t<n.c.length;++t)if(mc(e,n.c[t]))return t;return-1}function s$(n){var e,t;return t=u(sn(n.j,0),12),e=u(v(t,(W(),st)),12),e}function f$(n,e){var t;this.f=n,this.b=e,t=u(ee(n.b,e),260),this.c=t?t.b:null}function zDn(){Rs(),this.b=new de,this.f=new de,this.g=new de,this.e=new de}function eC(n){xM(this),this.g=n?OT(n,n.ie()):null,this.f=n,TT(this),this.je()}function h$(n){var e;e=n.jj(),e!=null&&n.d!=-1&&u(e,94).xh(n),n.i&&n.i.oj()}function fk(n){var e;for(e=n.p+1;e<n.c.a.c.length;++e)--u(sn(n.c.a,e),10).p}function XDn(n){R0(!!n.c),RN(n.f.g,n.d),n.c.Qb(),n.c=null,n.b=UQ(n),n.d=n.f.g}function no(n){return n.b||(n.b=new vIn(n,jr,n),!n.a&&(n.a=new I7(n,n))),n.b}function hk(n,e){var t,i;return t=u(e,690),i=t.xi(),!i&&t.Ai(i=new RTn(n,e)),i}function Nr(n,e){var t,i;return t=u(e,692),i=t.$k(),!i&&t.cl(i=new uLn(n,e)),i}function iQ(n,e){o6();var t,i;return t=xp(n),i=xp(e),!!t&&!!i&&!pBn(t.k,i.k)}function tC(n,e){return mc(e,sn(n.f,0))||mc(e,sn(n.f,1))||mc(e,sn(n.f,2))}function lk(n,e){if(e<0)throw T(new Or(LVn+e));return xLn(n,e+1),sn(n.j,e)}function VDn(n,e,t,i){if(!n)throw T(new Gn(B5(e,S(C(ki,1),Kn,1,5,[t,i]))))}function ml(n,e,t,i,r,c,s){k$.call(this,e,i,r,c,s),this.c=n,this.b=t}function Kh(n,e,t){var i,r;for(i=10,r=0;r<t-1;r++)e<i&&(n.a+="0"),i*=10;n.a+=e}function iC(n){var e,t;return t=n.length,e=F(fs,gh,28,t,15,1),qIn(n,0,t,e,0),e}function ak(n){eIn();var e,t;return e=n+128,t=bun[e],!t&&(t=bun[e]=new u9n(n)),t}function WDn(n){return RN(n.d.a.e.g,n.b),oe(n.c!=n.d.a.d),n.a=n.c,n.c=n.c.a,n.a}function z4e(n){switch(n.g){case 0:return et;case 1:return-1;default:return 0}}function X4e(n){return AZ(n,(B4(),aun))<0?-I1e(tm(n)):n.l+n.m*o3+n.h*vd}function JDn(n){(this.q?this.q:(Ln(),Ln(),Wh)).Ac(n.q?n.q:(Ln(),Ln(),Wh))}function V4e(n,e){Ep(u(u(n.f,27).of((He(),v9)),101))&&e8e(mD(u(n.f,27)),e)}function l$(n,e){var t;return t=At(n.d,e),t>=0?tS(n,t,!0,!0):Hb(n,e,!0)}function rQ(n){var e;return e=cd(Un(n,32)),e==null&&(iu(n),e=cd(Un(n,32))),e}function cQ(n){var e;return n.Oh()||(e=se(n.Dh())-n.ji(),n.$h().Mk(e)),n.zh()}function QDn(n,e){con=new kE,TYn=e,O8=n,u(O8.b,68),zJ(O8,con,null),aGn(O8)}function t5(){t5=R,j_=new BL("XY",0),y_=new BL("X",1),E_=new BL("Y",2)}function bu(){bu=R,kf=new KL("TOP",0),ma=new KL(qm,1),Xs=new KL(xtn,2)}function vl(){vl=R,vj=new GL(kh,0),k2=new GL("TOP",1),E3=new GL(xtn,2)}function dk(){dk=R,qH=new Zz("INPUT_ORDER",0),UH=new Zz("PORT_DEGREE",1)}function B4(){B4=R,hun=Yc(ro,ro,524287),bQn=Yc(0,0,Cy),lun=QD(1),QD(2),aun=QD(0)}function a$(n){var e;return n.d!=n.r&&(e=gs(n),n.e=!!e&&e.lk()==bJn,n.d=e),n.e}function d$(n,e,t){var i;return i=n.g[e],O6(n,e,n.Zi(e,t)),n.Ri(e,t,i),n.Ni(),i}function rC(n,e){var t;return t=n.dd(e),t>=0?(n.gd(t),!0):!1}function b$(n,e){var t;for(Pe(n),Pe(e),t=!1;e.Ob();)t=t|n.Fc(e.Pb());return t}function Df(n,e){var t;return t=u(ee(n.e,e),400),t?(LCn(n,t),t.e):null}function YDn(n){var e,t;return e=n/60|0,t=n%60,t==0?""+e:""+e+":"+(""+t)}function J0(n,e){var t=n.a[e],i=(F$(),VF)[typeof t];return i?i(t):bY(typeof t)}function rc(n,e){var t,i;return ta(n),i=new FJ(e,n.a),t=new rPn(i),new Cn(n,t)}function w$(n){var e;return e=n.b.c.length==0?null:sn(n.b,0),e!=null&&T$(n,0),e}function W4e(n,e){var t,i,r;r=e.c.i,t=u(ee(n.f,r),60),i=t.d.c-t.e.c,RQ(e.a,i,0)}function uQ(n,e){var t;for(++n.d,++n.c[e],t=e+1;t<n.a.length;)++n.a[t],t+=t&-t}function ZDn(n,e,t,i){nt(),Wd.call(this,26),this.c=n,this.a=e,this.d=t,this.b=i}function n$n(n,e){for(;e[0]<n.length&&ih(` \r
`,wu(Xi(n,e[0])))>=0;)++e[0]}function J4e(n,e){eu(n,e==null||GM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Q4e(n,e){tu(n,e==null||GM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Y4e(n,e){Ob(n,e==null||GM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function Z4e(n,e){Ib(n,e==null||GM((Jn(e),e))||isNaN((Jn(e),e))?0:(Jn(e),e))}function nme(n,e,t){return vp(new V(t.e.a+t.f.a/2,t.e.b+t.f.b/2),n)==(Jn(e),e)}function eme(n,e){return L(e,102)&&u(e,19).Bb&hr?new dN(e,n):new Y4(e,n)}function tme(n,e){return L(e,102)&&u(e,19).Bb&hr?new dN(e,n):new Y4(e,n)}function bk(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function e$n(n,e){return e==(xN(),xN(),SQn)?n.toLocaleLowerCase():n.toLowerCase()}function t$n(n){if(!n.e)throw T(new nc);return n.c=n.a=n.e,n.e=n.e.e,--n.d,n.a.f}function oQ(n){if(!n.c)throw T(new nc);return n.e=n.a=n.c,n.c=n.c.c,++n.d,n.a.f}function i$n(n){var e;for(++n.a,e=n.c.a.length;n.a<e;++n.a)if(n.c.b[n.a])return}function ime(n){var e,t;if(n.a){t=null;do e=n.a,n.a=null,t=d_n(e,t);while(n.a);n.a=t}}function rme(n){var e,t;if(n.b){t=null;do e=n.b,n.b=null,t=d_n(e,t);while(n.b);n.b=t}}function cme(n,e){var t;for(t=0;n.e!=n.i.gc();)I0e(e,ue(n),Y(t)),t!=et&&++t}function ume(n,e){var t;return t=xb(n.e.c,e.e.c),t==0?bt(n.e.d,e.e.d):t}function ome(n,e){var t,i;for(i=e.c,t=i+1;t<=e.f;t++)n.a[t]>n.a[i]&&(i=t);return i}function r$n(n){var e;return e=u(v(n,(W(),o0)),313),e?e.a==n:!1}function c$n(n){var e;return e=u(v(n,(W(),o0)),313),e?e.i==n:!1}function u$n(){u$n=R,yZn=Me((Vi(),S(C(Oon,1),G,367,0,[Vs,Jh,Ac,Fc,zr])))}function o$n(){o$n=R,rne=Me((ow(),S(C(ine,1),G,375,0,[gj,zI,XI,GI,UI])))}function s$n(){s$n=R,wne=Me((o1(),S(C(Nsn,1),G,348,0,[W_,Lsn,J_,pv,gv])))}function f$n(){f$n=R,eie=Me((T5(),S(C($hn,1),G,323,0,[Dhn,BH,FH,W8,J8])))}function h$n(){h$n=R,Pne=Me((Yo(),S(C(hfn,1),G,171,0,[Ej,_8,ya,H8,xw])))}function l$n(){l$n=R,qre=Me((wS(),S(C(Hre,1),G,368,0,[gq,dq,pq,bq,wq])))}function a$n(){a$n=R,qce=Me((x5(),S(C(Hce,1),G,373,0,[D2,L3,d9,a9,_j])))}function d$n(){d$n=R,Wce=Me((Jk(),S(C(F1n,1),G,324,0,[R1n,Fq,B1n,_q,K1n])))}function b$n(){b$n=R,zue=Me((ci(),S(C(y9,1),G,88,0,[Jf,Xr,Kr,Wf,us])))}function w$n(){w$n=R,mue=Me((pf(),S(C(Zh,1),G,170,0,[xn,pi,Ih,Fd,E1])))}function g$n(){g$n=R,eoe=Me((Kg(),S(C(T9,1),G,256,0,[Pa,eE,adn,M9,ddn])))}function p$n(){p$n=R,roe=Me((en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])))}function cC(){cC=R,Bun=new qz("BY_SIZE",0),o_=new qz("BY_SIZE_AND_SHAPE",1)}function uC(){uC=R,m_=new zz("EADES",0),vI=new zz("FRUCHTERMAN_REINGOLD",1)}function wk(){wk=R,WI=new Jz("READING_DIRECTION",0),Dsn=new Jz("ROTATION",1)}function i5(){i5=R,IZn=new rwn,OZn=new own,SZn=new swn,PZn=new uwn,AZn=new fwn}function m$n(n){this.b=new Z,this.a=new Z,this.c=new Z,this.d=new Z,this.e=n}function v$n(n){this.g=n,this.f=new Z,this.a=y.Math.min(this.g.c.c,this.g.d.c)}function k$n(n,e,t){qM.call(this),hQ(this),this.a=n,this.c=t,this.b=e.d,this.f=e.e}function sme(n,e,t){var i,r;for(r=new M(t);r.a<r.c.c.length;)i=E(r),VZ(n,e,i)}function bf(n,e,t){var i;if(e==null)throw T(new rp);return i=dl(n,e),y3e(n,e,t),i}function g$(n,e){var t;return t=u(ee(n.a,e),137),t||(t=new xA,Ve(n.a,e,t)),t}function $n(n,e){var t;return t=(n.i==null&&bh(n),n.i),e>=0&&e<t.length?t[e]:null}function fme(n,e){var t;return t=e>0?e-1:e,eEn($he(U$n(QV(new op,t),n.n),n.j),n.k)}function Dr(n){var e,t;t=(e=new hL,e),ve((!n.q&&(n.q=new q(Ps,n,11,10)),n.q),t)}function sQ(n){return(n.i&2?"interface ":n.i&1?"":"class ")+(ll(n),n.o)}function oC(n){return Ec(n,et)>0?et:Ec(n,Wi)<0?Wi:Se(n)}function Q0(n){return n<3?(Mo(n,$zn),n+1):n<W5?wi(n/.75+1):et}function y$n(n,e){return Jn(e),vW(n),n.d.Ob()?(e.Cd(n.d.Pb()),!0):!1}function hme(n,e){var t,i;return t=u(tw(n.d,e),16),t?(i=e,n.e.pc(i,t)):null}function lme(n,e,t,i){var r;n.j=-1,Knn(n,gnn(n,e,t),(dr(),r=u(e,69).vk(),r.xl(i)))}function ame(n,e){return _p(),-jc(u(v(n,(lc(),A2)),17).a,u(v(e,A2),17).a)}function j$n(n,e){return!!o5(n,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))))}function dme(){return Mm(),S(C(kA,1),G,245,0,[vU,mA,vA,pA,mU,gA,wA,pU])}function bme(){return l1(),S(C(vue,1),G,285,0,[uan,yi,Zr,$2,Qi,It,N3,Vf])}function wme(){return LS(),S(C(Tsn,1),G,276,0,[F_,q_,B_,z_,H_,__,G_,U_])}function gme(n){var e;return e=$(B(v(n,(cn(),m1)))),e<0&&(e=0,U(n,m1,e)),e}function sC(n,e){var t,i;for(i=n.Kc();i.Ob();)t=u(i.Pb(),72),U(t,(W(),S3),e)}function pme(n,e,t){var i;i=y.Math.max(0,n.b/2-.5),I5(t,i,1),nn(e,new IMn(t,i))}function mme(n,e,t){var i;return i=n.a.e[u(e.a,10).p]-n.a.e[u(t.a,10).p],wi(K7(i))}function fC(n,e){var t;return ta(n),t=new KOn(n,n.a.zd(),n.a.yd()|4,e),new Cn(n,t)}function p$(n){var e;R0(!!n.c),e=n.c.a,Xo(n.d,n.c),n.b==n.c?n.b=e:--n.a,n.c=null}function E$n(n){return n.a>=-.01&&n.a<=_f&&(n.a=0),n.b>=-.01&&n.b<=_f&&(n.b=0),n}function Lg(n){Vg();var e,t;for(t=Crn,e=0;e<n.length;e++)n[e]>t&&(t=n[e]);return t}function M$n(n,e){var t;if(t=oy(n.Dh(),e),!t)throw T(new Gn(ba+e+sF));return t}function Y0(n,e){var t;for(t=n;St(t);)if(t=St(t),t==e)return!0;return!1}function vme(n,e){var t,i,r;for(i=e.a.ld(),t=u(e.a.md(),16).gc(),r=0;r<t;r++)n.Cd(i)}function nu(n,e){var t,i,r,c;for(Jn(e),i=n.c,r=0,c=i.length;r<c;++r)t=i[r],e.Cd(t)}function T$n(n,e,t,i,r,c){var s;s=JD(i),Zi(s,r),Oi(s,c),In(n.a,i,new zM(s,e,t.f))}function C$n(n,e){ht(n,(_h(),Iq),e.f),ht(n,pce,e.e),ht(n,Pq,e.d),ht(n,gce,e.c)}function S$n(n,e){this.a=new de,this.e=new de,this.b=(w5(),TO),this.c=n,this.b=e}function P$n(n){this.d=n,this.c=n.c.vc().Kc(),this.b=null,this.a=null,this.e=(BE(),GF)}function Xo(n,e){var t;return t=e.c,e.a.b=e.b,e.b.a=e.a,e.a=e.b=null,e.c=null,--n.b,t}function kme(n,e){return e&&n.b[e.g]==e?($t(n.b,e.g,null),--n.c,!0):!1}function yme(n,e){if(0>n||n>e)throw T(new gz("fromIndex: 0, toIndex: "+n+Mtn+e))}function Pb(n){if(n<0)throw T(new Gn("Illegal Capacity: "+n));this.g=this.aj(n)}function fQ(n,e){return Cf(),Fs(fa),y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)}function m$(n,e){var t,i,r,c;for(i=n.d,r=0,c=i.length;r<c;++r)t=i[r],Sf(n.g,t).a=e}function jme(n,e,t){var i,r,c;for(r=e[t],i=0;i<r.length;i++)c=r[i],n.e[c.c.p][c.p]=i}function Eme(n){var e;for(e=0;e<n.c.length;e++)(Nn(e,n.c.length),u(n.c[e],12)).p=e}function Mme(n){var e,t;for(e=n.a.d.j,t=n.c.d.j;e!=t;)_s(n.b,e),e=BC(e);_s(n.b,e)}function Tme(n){var e;return e=y.Math.sqrt(n.a*n.a+n.b*n.b),e>0&&(n.a/=e,n.b/=e),n}function jo(n){var e;return n.w?n.w:(e=lpe(n),e&&!e.Vh()&&(n.w=e),e)}function F4(n,e){var t,i;i=n.a,t=w5e(n,e,null),i!=e&&!n.e&&(t=Dm(n,e,t)),t&&t.oj()}function I$n(n,e,t){var i,r;i=e;do r=$(n.p[i.p])+t,n.p[i.p]=r,i=n.a[i.p];while(i!=e)}function O$n(n,e,t){var i=function(){return n.apply(i,arguments)};return e.apply(i,t),i}function Cme(n){var e;return n==null?null:(e=u(n,195),Kye(e,e.length))}function N(n,e){if(n.g==null||e>=n.i)throw T(new aN(e,n.i));return n.Wi(e,n.g[e])}function Sme(n,e){Ln();var t,i;for(i=new Z,t=0;t<n;++t)Fn(i.c,e);return new jL(i)}function A$n(n){return ta(n),Tp(!0,"n may not be negative"),new Cn(n,new uxn(n.a))}function hQ(n){n.b=(Uu(),pa),n.f=(bu(),ma),n.d=(Mo(2,mw),new Gc(2)),n.e=new Ni}function hC(n){this.b=(Pe(n),new _u(n)),this.a=new Z,this.d=new Z,this.e=new Ni}function wf(){wf=R,bc=new xL("BEGIN",0),Wc=new xL(qm,1),wc=new xL("END",2)}function $f(){$f=R,Rv=new fN(qm,0),Jw=new fN("HEAD",1),Kv=new fN("TAIL",2)}function _p(){_p=R,Kre=ah(ah(ah(h6(new ii,(Qp(),t9)),(F5(),YH)),sln),aln)}function kl(){kl=R,Fre=ah(ah(ah(h6(new ii,(Qp(),r9)),(F5(),hln)),cln),fln)}function L$n(){L$n=R,lne=Me((Yp(),S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2])))}function N$n(){N$n=R,vne=Me((vS(),S(C(xsn,1),G,283,0,[Z_,Y_,eH,nH,tH,JI])))}function D$n(){D$n=R,yne=Me((Vk(),S(C(qsn,1),G,281,0,[YI,Fsn,Hsn,Bsn,_sn,iH])))}function $$n(){$$n=R,jne=Me((jm(),S(C(Wsn,1),G,282,0,[x8,Gsn,Vsn,Xsn,zsn,Usn])))}function x$n(){x$n=R,xZn=Me((Vn(),S(C(A_,1),G,273,0,[zt,Ti,Zt,_c,Sc,Gf])))}function R$n(){R$n=R,yue=Me((Bh(),S(C(fan,1),G,255,0,[Xq,qj,Uj,eA,ZO,nA])))}function K$n(){K$n=R,Sue=Me((wd(),S(C(Qq,1),G,298,0,[Jq,m9,p9,Wq,w9,g9])))}function B$n(){B$n=R,Wue=Me((pS(),S(C(cdn,1),G,321,0,[aU,tdn,rdn,ndn,idn,edn])))}function F$n(){F$n=R,toe=Me((Ai(),S(C(bdn,1),G,101,0,[Ia,Qf,Fv,Ud,tl,qc])))}function _$n(){_$n=R,ioe=Me((zu(),S(C(oA,1),G,279,0,[Oa,Rl,tE,S9,C9,K3])))}function H$n(){H$n=R,dI=(wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])).length,f_=dI}function Pme(){return lw(),S(C(yr,1),G,95,0,[Qs,xl,Ys,nf,el,Ts,No,Zs,Ms])}function Ime(n,e){return ua(),jc(n.b.c.length-n.e.c.length,e.b.c.length-e.e.c.length)}function Ng(n,e){return Khe(u5(n,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))))}function lQ(n,e){return Cf(),Fs(fa),y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)}function lC(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,1,t,n.b))}function _4(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,3,t,n.b))}function Ib(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,3,t,n.f))}function Ob(n,e){var t;t=n.g,n.g=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,4,t,n.g))}function eu(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,5,t,n.i))}function tu(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,6,t,n.j))}function H4(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,1,t,n.j))}function q4(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,4,t,n.c))}function U4(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,2,t,n.k))}function aC(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&it(n,new V0(n,0,t,n.a))}function e1(n,e){var t;t=n.s,n.s=e,n.Db&4&&!(n.Db&1)&&it(n,new UD(n,4,t,n.s))}function Z0(n,e){var t;t=n.t,n.t=e,n.Db&4&&!(n.Db&1)&&it(n,new UD(n,5,t,n.t))}function v$(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&it(n,new UD(n,2,t,n.d))}function G4(n,e){var t;t=n.F,n.F=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,5,t,e))}function gk(n,e){var t;return t=u(ee((iM(),yA),n),57),t?t.gk(e):F(ki,Kn,1,e,5,1)}function Ome(n,e){var t;return t=mi(Fi(u(ee(n.g,e),8)),LX(u(ee(n.f,e),470).b)),t}function Ame(n,e){var t,i,r;return t=(i=(K1(),r=new nG,r),e&&uen(i,e),i),TQ(t,n),t}function yl(n,e){var t,i;return t=e in n.a,t&&(i=dl(n,e).re(),i)?i.a:null}function q$n(n,e,t){if(rm(n,t),!n.kl()&&t!=null&&!n.fk(t))throw T(new uL);return t}function U$n(n,e){return n.n=e,n.n?(n.f=new Z,n.e=new Z):(n.f=null,n.e=null),n}function G$n(n,e){if(n){e.n=n;var t=g2e(e);if(!t){rI[n]=[e];return}t.Rm=e}}function cd(n){var e;return x6(n==null||Array.isArray(n)&&(e=bk(n),!(e>=14&&e<=16))),n}function Ee(n,e){var t;return Jn(e),t=n[":"+e],x7(!!t,"Enum constant undefined: "+e),t}function we(n,e,t,i,r,c){var s;return s=bD(n,e),G$n(t,s),s.i=r?8:0,s.f=i,s.e=r,s.g=c,s}function aQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=n,this.a=t}function dQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=n,this.a=t}function bQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=n,this.a=t}function wQ(n,e,t,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=n,this.a=t}function gQ(n,e,t,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=n,this.a=t}function z$n(n,e){var t,i,r,c;for(i=e,r=0,c=i.length;r<c;++r)t=i[r],$Dn(n.a,t);return n}function Eo(n){var e,t,i,r;for(t=n,i=0,r=t.length;i<r;++i)e=t[i],Pe(e);return new cCn(n)}function pQ(n){var e;return e=mi(Fi(n.d.d),n.c.d),vm(e,n.c.e.a,n.c.e.b),tt(e,n.c.d)}function mQ(n){var e;return e=mi(Fi(n.c.d),n.d.d),vm(e,n.d.e.a,n.d.e.b),tt(e,n.d.d)}function Lme(n){var e=/function(?:\s+([\w$]+))?\s*\(/,t=e.exec(n);return t&&t[1]||uK}function Nme(n,e,t){var i,r;return r=n.length,i=y.Math.min(t,r),Rnn(n,0,e,0,i,!0),e}function X$n(n,e,t){var i,r;for(r=e.Kc();r.Ob();)i=u(r.Pb(),74),fi(n,u(t.Kb(i),27))}function Dme(n,e){Ep(u(v(u(n.e,10),(cn(),Ft)),101))&&(Ln(),Yt(u(n.e,10).j,e))}function $me(){return DS(),S(C(ton,1),G,257,0,[eon,Qun,Yun,Jun,s_,non,Zun,Wun,Vun])}function xme(){return a1(),S(C(Ahn,1),G,265,0,[$H,Phn,Ihn,DH,Shn,Ohn,MO,Iv,Ov])}function Ab(){Ab=R,Aj=new ZL("BARYCENTER",0),Z8=new ZL(qXn,1),IO=new ZL(UXn,2)}function dC(){dC=R,Qhn=new QL("NO",0),WH=new QL(rin,1),Jhn=new QL("LOOK_BACK",2)}function bC(){bC=R,Osn=new HL("ARD",0),VI=new HL("MSD",1),V_=new HL("MANUAL",2)}function gr(){gr=R,Q8=new XL(n8,0),Vu=new XL("INPUT",1),Jc=new XL("OUTPUT",2)}function z4(){return Gq||(Gq=new Jqn,Dg(Gq,S(C(a2,1),Kn,134,0,[new rG]))),Gq}function Fs(n){if(!(n>=0))throw T(new Gn("tolerance ("+n+") must be >= 0"));return n}function V$n(n,e){var t;return L(e,44)?n.c.Mc(e):(t=wx(n,e),VC(n,e),t)}function Tr(n,e,t){return ad(n,e),zc(n,t),e1(n,0),Z0(n,1),u1(n,!0),c1(n,!0),n}function pk(n,e){var t;if(t=n.gc(),e<0||e>t)throw T(new F0(e,t));return new SV(n,e)}function wC(n,e){n.b=y.Math.max(n.b,e.d),n.e+=e.r+(n.a.c.length==0?0:n.c),nn(n.a,e)}function W$n(n){R0(n.c>=0),_8e(n.d,n.c)<0&&(n.a=n.a-1&n.d.a.length-1,n.b=n.d.c),n.c=-1}function gC(n){var e,t;for(t=n.c.Cc().Kc();t.Ob();)e=u(t.Pb(),16),e.$b();n.c.$b(),n.d=0}function Rme(n){var e,t,i,r;for(t=n.a,i=0,r=t.length;i<r;++i)e=t[i],HIn(e,e.length,null)}function r5(n,e){var t,i,r,c;for(i=e,r=0,c=i.length;r<c;++r)t=i[r],xt(n,t,n.c.b,n.c)}function J$n(n,e){var t,i;for(t=0,i=n.gc();t<i;++t)if(mc(e,n.Xb(t)))return t;return-1}function vQ(n){var e,t;if(n==0)return 32;for(t=0,e=1;!(e&n);e<<=1)++t;return t}function Mo(n,e){if(n<0)throw T(new Gn(e+" cannot be negative but was: "+n));return n}function Kme(n,e){typeof window===vy&&typeof window.$gwt===vy&&(window.$gwt[n]=e)}function pC(n,e){return Rhe(o5(n.a,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))))}function Bme(n,e,t){return W0(n,new m9n(e),new zbn,new v9n(t),S(C(xr,1),G,108,0,[]))}function Fme(){return io(),S(C(gdn,1),G,264,0,[_v,uE,sA,I9,fA,lA,hA,dU,cE])}function Q$n(){Q$n=R,wQn=S(C(ye,1),_e,28,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function c5(){c5=R,$8=new _L("LAYER_SWEEP",0),pj=new _L(sB,1),Psn=new _L(kh,2)}function kQ(){kQ=R,gie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)}function Y$n(){Y$n=R,pie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)}function yQ(){yQ=R,mie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)}function Z$n(){Z$n=R,vie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)}function nxn(){nxn=R,kie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)}function exn(){exn=R,yie=Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)}function txn(){txn=R,Mie=Iu(Fe(Fe(new ii,(Vi(),Ac),(tr(),DI)),Fc,II),zr,NI)}function _me(n){var e,t;for(t=new M(zBn(n));t.a<t.c.c.length;)e=u(E(t),695),e._f()}function Hme(){LEn();for(var n=BF,e=0;e<arguments.length;e++)n.push(arguments[e])}function ixn(n){Lz(),this.g=new de,this.f=new de,this.b=new de,this.c=new Mb,this.i=n}function jQ(){this.f=new Ni,this.d=new ZG,this.c=new Ni,this.a=new Z,this.b=new Z}function rxn(n,e,t,i){this.ak(),this.a=e,this.b=n,this.c=null,this.c=new ZSn(this,e,t,i)}function k$(n,e,t,i,r){this.d=n,this.n=e,this.g=t,this.o=i,this.p=-1,r||(this.o=-2-i-1)}function cxn(){RX.call(this),this.n=-1,this.g=null,this.i=null,this.j=null,this.Bb|=Gs}function uxn(n){OM.call(this,n.Ad(64)?OX(0,bs(n.zd(),1)):Ey,n.yd()),this.b=1,this.a=n}function qme(n,e){return _p(),u(v(e,(lc(),A2)),17).a<n.gc()&&u(v(e,A2),17).a>=0}function EQ(n,e){n.r>0&&n.c<n.r&&(n.c+=e,n.i&&n.i.d>0&&n.g!=0&&EQ(n.i,e/n.r*n.i.d))}function MQ(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,1,t,n.c))}function y$(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,4,t,n.c))}function X4(n,e){var t;t=n.k,n.k=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,2,t,n.k))}function j$(n,e){var t;t=n.D,n.D=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,2,t,n.D))}function mC(n,e){var t;t=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,8,t,n.f))}function vC(n,e){var t;t=n.i,n.i=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,7,t,n.i))}function TQ(n,e){var t;t=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,8,t,n.a))}function CQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,0,t,n.b))}function SQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,0,t,n.b))}function PQ(n,e){var t;t=n.c,n.c=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,1,t,n.c))}function IQ(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,1,t,n.d))}function Ume(n,e,t){var i;n.b=e,n.a=t,i=(n.a&512)==512?new gjn:new iG,n.c=rSe(i,n.b,n.a)}function oxn(n,e){return Pl(n.e,e)?(dr(),a$(e)?new eT(e,n):new k7(e,n)):new $Tn(e,n)}function Gme(n){var e,t;return 0>n?new Az:(e=n+1,t=new vNn(e,n),new uV(null,t))}function zme(n,e){Ln();var t;return t=new ap(1),Si(n)?Lr(t,n,e):Vc(t.f,n,e),new eL(t)}function Xme(n,e){var t,i;return t=n.c,i=e.e[n.p],i>0?u(sn(t.a,i-1),10):null}function Vme(n,e){var t,i;return t=n.o+n.p,i=e.o+e.p,t<i?-1:t==i?0:1}function Wme(n){var e;return e=v(n,(W(),st)),L(e,167)?TKn(u(e,167)):null}function sxn(n){var e;return n=y.Math.max(n,2),e=JQ(n),n>e?(e<<=1,e>0?e:W5):e}function E$(n){switch(FX(n.e!=3),n.e){case 2:return!1;case 0:return!0}return i4e(n)}function fxn(n,e){var t;return L(e,8)?(t=u(e,8),n.a==t.a&&n.b==t.b):!1}function Jme(n,e){var t;t=new kE,u(e.b,68),u(e.b,68),u(e.b,68),nu(e.a,new RV(n,t,e))}function hxn(n,e){var t,i;for(i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),zk(n,t.ld(),t.md())}function OQ(n,e){var t;t=n.d,n.d=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,11,t,n.d))}function kC(n,e){var t;t=n.j,n.j=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,13,t,n.j))}function AQ(n,e){var t;t=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,21,t,n.b))}function Qme(n,e){(UT(),Uf?null:e.c).length==0&&CSn(e,new RU),Lr(n.a,Uf?null:e.c,e)}function Yme(n,e){e.Ug("Hierarchical port constraint processing",1),g9e(n),xNe(n),e.Vg()}function Lb(){Lb=R,u0=new FL("START",0),va=new FL("MIDDLE",1),c0=new FL("END",2)}function yC(){yC=R,BO=new uX("P1_NODE_PLACEMENT",0),N2=new uX("P2_EDGE_ROUTING",1)}function Q1(){Q1=R,y3=new lt(Wtn),jI=new lt(TXn),L8=new lt(CXn),lj=new lt(SXn)}function Nb(n){var e;return RN(n.f.g,n.d),oe(n.b),n.c=n.a,e=u(n.a.Pb(),44),n.b=UQ(n),e}function LQ(n){var e;return n.b==null?(Gl(),Gl(),dE):(e=n.ul()?n.tl():n.sl(),e)}function lxn(n,e){var t;return t=e==null?-1:qr(n.b,e,0),t<0?!1:(T$(n,t),!0)}function _s(n,e){var t;return Jn(e),t=e.g,n.b[t]?!1:($t(n.b,t,e),++n.c,!0)}function jC(n,e){var t,i;return t=1-e,i=n.a[t],n.a[t]=i.a[e],i.a[e]=n,n.b=!0,i.b=!1,i}function Zme(n,e){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),272),n.b=!0,fi(n.e,t),t.b=n}function nve(n,e){var t,i;return t=u(v(n,(cn(),Hw)),8),i=u(v(e,Hw),8),bt(t.b,i.b)}function M$(n,e,t){var i,r,c;return c=e>>5,r=e&31,i=vi(U1(n.n[t][c],Se(Ks(r,1))),3),i}function axn(n,e,t){var i,r,c;for(c=n.a.length-1,r=n.b,i=0;i<t;r=r+1&c,++i)$t(e,i,n.a[r])}function T$(n,e){var t;t=Yl(n.b,n.b.c.length-1),e<n.b.c.length&&(Go(n.b,e,t),$_n(n,e))}function dxn(n,e){var t;return t=u(ee(n.c,e),467),t||(t=new Jyn,t.c=e,Ve(n.c,t.c,t)),t}function eve(n,e){var t,i;i=new Z,t=e;do Fn(i.c,t),t=u(ee(n.k,t),18);while(t);return i}function C$(n,e,t){var i;return i=new Z,fen(n,e,i,t,!0,!0),n.b=new EC(i.c.length),i}function ud(n,e){var t,i;for(t=n.Pc(),R4(t,0,t.length,e),i=0;i<t.length;i++)n.hd(i,t[i])}function NQ(n){var e,t;for(t=new ne(n);t.e!=t.i.gc();)e=u(ue(t),27),eu(e,0),tu(e,0)}function bxn(n){this.e=n,this.d=new zE(Q0(Cp(this.e).gc())),this.c=this.e.a,this.b=this.e.c}function EC(n){this.b=n,this.a=F(ye,_e,28,n+1,15,1),this.c=F(ye,_e,28,n,15,1),this.d=0}function wxn(n,e,t){S$n.call(this,e,t),this.d=F(Qh,b1,10,n.a.c.length,0,1),Rf(n.a,this.d)}function gxn(n,e,t){pJ.call(this,n,e,t),this.a=new de,this.b=new de,this.d=new q7n(this)}function pxn(n){lW.call(this),this.b=$(B(v(n,(cn(),Ws)))),this.a=u(v(n,$l),223)}function S$(n,e){var t;return L(e,16)?(t=u(e,16),n.Gc(t)):b$(n,u(Pe(e),20).Kc())}function tve(n,e){qt(ut(new Cn(null,new On(new qa(n.b),1)),new fTn(n,e)),new lTn(n,e))}function ive(n,e){e.Ug(HXn,1),qt(rc(new Cn(null,new On(n.b,16)),new Swn),new Pwn),e.Vg()}function mt(n){return Si(n)?t1(n):$0(n)?pp(n):D0(n)?PSn(n):gW(n)?n.Hb():fW(n)?lb(n):YW(n)}function mxn(n){var e,t;for(t=n.c.a.ec().Kc();t.Ob();)e=u(t.Pb(),219),efe(e,new RIn(e.f))}function DQ(n){var e,t;for(t=n.c.a.ec().Kc();t.Ob();)e=u(t.Pb(),219),tfe(e,new QFn(e.e))}function zc(n,e){var t;t=n.zb,n.zb=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,1,t,n.zb))}function MC(n,e){var t;t=n.xb,n.xb=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,3,t,n.xb))}function TC(n,e){var t;t=n.yb,n.yb=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,2,t,n.yb))}function Rt(n,e){var t,i;t=(i=new fL,i),t.n=e,ve((!n.s&&(n.s=new q(ku,n,21,17)),n.s),t)}function jt(n,e){var t,i;i=(t=new rV,t),i.n=e,ve((!n.s&&(n.s=new q(ku,n,21,17)),n.s),i)}function Ki(n,e){var t,i,r;for(Jn(e),t=!1,r=e.Kc();r.Ob();)i=r.Pb(),t=t|n.Fc(i);return t}function vxn(n){var e,t,i;for(e=0,i=n.Kc();i.Ob();)t=i.Pb(),e+=t!=null?mt(t):0,e=~~e;return e}function P$(n,e){var t=n.a,i=0;for(var r in t)t.hasOwnProperty(r)&&(e[i++]=r);return e}function kxn(n){var e;return n==0?"UTC":(n<0?(n=-n,e="UTC+"):e="UTC-",e+YDn(n))}function $Q(n){return n.a<54?n.f<0?-1:n.f>0?1:0:(!n.c&&(n.c=J7(vc(n.f))),n.c).e}function yxn(n,e){e?n.B==null&&(n.B=n.D,n.D=null):n.B!=null&&(n.D=n.B,n.B=null)}function rve(n,e){return nm(),n==r0&&e==Ow||n==Ow&&e==r0||n==d2&&e==Iw||n==Iw&&e==d2}function cve(n,e){return nm(),n==r0&&e==Iw||n==r0&&e==d2||n==Ow&&e==d2||n==Ow&&e==Iw}function jxn(n,e){return Cf(),Fs(_f),y.Math.abs(0-e)<=_f||e==0||isNaN(0)&&isNaN(e)?0:n/e}function Exn(n,e){return $(B(ho(Nk(_r(new Cn(null,new On(n.c.b,16)),new O7n(n)),e))))}function xQ(n,e){return $(B(ho(Nk(_r(new Cn(null,new On(n.c.b,16)),new I7n(n)),e))))}function uve(){return pr(),S(C(rH,1),G,259,0,[ZI,cs,R8,nO,yv,v2,K8,vv,kv,eO])}function ove(){return ps(),S(C(Fhn,1),G,243,0,[SO,Pj,Ij,Rhn,Khn,xhn,Bhn,PO,p0,Uw])}function sve(n,e){var t;e.Ug("General Compactor",1),t=d8e(u(z(n,(oa(),kq)),393)),t.Cg(n)}function fve(n,e){var t,i;return t=u(z(n,(oa(),_O)),17),i=u(z(e,_O),17),jc(t.a,i.a)}function RQ(n,e,t){var i,r;for(r=ge(n,0);r.b!=r.d.c;)i=u(be(r),8),i.a+=e,i.b+=t;return n}function u5(n,e,t){var i;for(i=n.b[t&n.f];i;i=i.b)if(t==i.a&&sh(e,i.g))return i;return null}function o5(n,e,t){var i;for(i=n.c[t&n.f];i;i=i.d)if(t==i.f&&sh(e,i.i))return i;return null}function hve(n,e,t){var i,r,c;for(i=0,r=0;r<t;r++)c=e[r],n[r]=c<<1|i,i=c>>>31;i!=0&&(n[t]=i)}function I$(n,e,t,i,r,c){var s;this.c=n,s=new Z,gZ(n,s,e,n.b,t,i,r,c),this.a=new xi(s,0)}function Mxn(){this.c=new XE(0),this.b=new XE(Trn),this.d=new XE(lVn),this.a=new XE(QK)}function Vo(n,e,t,i,r,c,s){je.call(this,n,e),this.d=t,this.e=i,this.c=r,this.b=c,this.a=Af(s)}function Ut(n,e,t,i,r,c,s,f,h,l,a,d,g){return I_n(n,e,t,i,r,c,s,f,h,l,a,d,g),sx(n,!1),n}function lve(n){return n.b.c.i.k==(Vn(),Zt)?u(v(n.b.c.i,(W(),st)),12):n.b.c}function Txn(n){return n.b.d.i.k==(Vn(),Zt)?u(v(n.b.d.i,(W(),st)),12):n.b.d}function ave(n){var e;return e=KT(n),ob(e.a,0)?(QE(),QE(),PQn):(QE(),new uSn(e.b))}function O$(n){var e;return e=wJ(n),ob(e.a,0)?(A0(),A0(),ZF):(A0(),new SN(e.b))}function A$(n){var e;return e=wJ(n),ob(e.a,0)?(A0(),A0(),ZF):(A0(),new SN(e.c))}function Cxn(n){switch(n.g){case 2:return en(),Wn;case 4:return en(),Zn;default:return n}}function Sxn(n){switch(n.g){case 1:return en(),ae;case 3:return en(),Xn;default:return n}}function Pxn(n){switch(n.g){case 0:return new hmn;case 1:return new lmn;default:return null}}function Hp(){Hp=R,$_=new Lt("edgelabelcenterednessanalysis.includelabel",(_n(),ga))}function KQ(){KQ=R,Tie=ah(WTn(Fe(Fe(new ii,(Vi(),Ac),(tr(),DI)),Fc,II),zr),NI)}function Ixn(){Ixn=R,Iie=ah(WTn(Fe(Fe(new ii,(Vi(),Ac),(tr(),DI)),Fc,II),zr),NI)}function L$(){L$=R,D9=new ljn,EU=S(C(ku,1),f2,179,0,[]),Joe=S(C(Ps,1),Ucn,62,0,[])}function V4(){V4=R,dj=new Xz("TO_INTERNAL_LTR",0),L_=new Xz("TO_INPUT_DIRECTION",1)}function Au(){Au=R,Bon=new wwn,Ron=new gwn,Kon=new pwn,xon=new mwn,Fon=new vwn,_on=new kwn}function dve(n,e){e.Ug(HXn,1),_Y(Qhe(new OE((u6(),new kD(n,!1,!1,new HU))))),e.Vg()}function bve(n,e,t){t.Ug("DFS Treeifying phase",1),A8e(n,e),ICe(n,e),n.a=null,n.b=null,t.Vg()}function mk(n,e){return _n(),Si(n)?KJ(n,Ae(e)):$0(n)?tD(n,B(e)):D0(n)?rwe(n,un(e)):n.Fd(e)}function s5(n,e){var t,i;for(Jn(e),i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),n.zc(t.ld(),t.md())}function wve(n,e,t){var i;for(i=t.Kc();i.Ob();)if(!_T(n,e,i.Pb()))return!1;return!0}function gve(n,e,t,i,r){var c;return t&&(c=At(e.Dh(),n.c),r=t.Rh(e,-1-(c==-1?i:c),null,r)),r}function pve(n,e,t,i,r){var c;return t&&(c=At(e.Dh(),n.c),r=t.Th(e,-1-(c==-1?i:c),null,r)),r}function Oxn(n){var e;if(n.b==-2){if(n.e==0)e=-1;else for(e=0;n.a[e]==0;e++);n.b=e}return n.b}function mve(n){if(Jn(n),n.length==0)throw T(new th("Zero length BigInteger"));MPe(this,n)}function BQ(n){this.i=n.gc(),this.i>0&&(this.g=this.aj(this.i+(this.i/8|0)+1),n.Qc(this.g))}function Axn(n,e,t){this.g=n,this.d=e,this.e=t,this.a=new Z,OEe(this),Ln(),Yt(this.a,null)}function FQ(n,e){e.q=n,n.d=y.Math.max(n.d,e.r),n.b+=e.d+(n.a.c.length==0?0:n.c),nn(n.a,e)}function W4(n,e){var t,i,r,c;return r=n.c,t=n.c+n.b,c=n.d,i=n.d+n.a,e.a>r&&e.a<t&&e.b>c&&e.b<i}function nw(n,e){var t,i;for(i=ge(n,0);i.b!=i.d.c;)t=u(be(i),8),t.a+=e.a,t.b+=e.b;return n}function vve(n){var e,t,i;for(i=0,t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),30),e.p=i,++i}function kve(n){var e,t,i;return n.j==(en(),Xn)&&(e=mHn(n),t=Su(e,Zn),i=Su(e,Wn),i||i&&t)}function yve(n,e){var t;return t=enn(n),Lnn(new V(t.c,t.d),new V(t.b,t.a),n.Mf(),e,n.ag())}function _Q(n,e){var t;t=u(e,190),nd(t,"x",n.i),nd(t,"y",n.j),nd(t,dF,n.g),nd(t,aF,n.f)}function CC(n,e){var t;L(e,85)?(u(n.c,79).Gk(),t=u(e,85),hxn(n,t)):u(n.c,79).Wb(e)}function f5(n,e){var t,i;for(Jn(e),i=n.vc().Kc();i.Ob();)t=u(i.Pb(),44),e.Yd(t.ld(),t.md())}function jve(n,e){var t;for(Pe(e);n.Ob();)if(t=n.Pb(),!qQ(u(t,10)))return!1;return!0}function Eve(){var n;return r_||(r_=new Byn,n=new VD(""),Kle(n,(a4(),$un)),Qme(r_,n)),r_}function Lxn(n,e){return W0(new w9n(n),new g9n(e),new p9n(e),new Gbn,S(C(xr,1),G,108,0,[]))}function SC(){SC=R,Eq=new iN(kh,0),o1n=new iN("POLAR_COORDINATE",1),u1n=new iN("ID",2)}function PC(){PC=R,Uhn=new VL("EQUALLY",0),GH=new VL(eP,1),Ghn=new VL("NORTH_SOUTH",2)}function J4(){J4=R,A8=new Lt("debugSVG",(_n(),!1)),uon=new Lt("overlapsExisted",!0)}function Nxn(){Nxn=R,kue=Me((l1(),S(C(vue,1),G,285,0,[uan,yi,Zr,$2,Qi,It,N3,Vf])))}function Dxn(){Dxn=R,Ioe=Me((Mm(),S(C(kA,1),G,245,0,[vU,mA,vA,pA,mU,gA,wA,pU])))}function $xn(){$xn=R,hne=Me((LS(),S(C(Tsn,1),G,276,0,[F_,q_,B_,z_,H_,__,G_,U_])))}function xxn(){return F5(),S(C(CDe,1),G,262,0,[YH,sln,aln,dln,lln,oln,bln,cln,hln,fln,uln])}function od(n,e,t){var i,r;return r=u($6(n.d,e),17),i=u($6(n.b,t),17),!r||!i?null:Bp(n,r.a,i.a)}function Rxn(n,e){var t;return t=CR(z4(),n),t?(ht(e,(He(),q2),t),!0):!1}function Kxn(n){return K0(),n.A.Hc((go(),Qw))&&!n.B.Hc((io(),uE))?DKn(n):null}function Bxn(){this.a=u(rn((Us(),kI)),17).a,this.c=$(B(rn(yI))),this.b=$(B(rn(v_)))}function sd(n){this.f=n,this.e=new CJ(this.f.i),this.a=this.e,this.b=UQ(this),this.d=this.f.g}function Bt(n,e){QM.call(this,Qoe,n,e),this.b=this,this.a=ru(n.Dh(),$n(this.e.Dh(),this.c))}function Mve(n,e){var t,i;for(i=new M(e.b);i.a<i.c.c.length;)t=u(E(i),30),n.a[t.p]=ije(t)}function To(n,e){var t;for(t=0;t<e.j.c.length;t++)u(lk(n,t),21).Gc(u(lk(e,t),16));return n}function N$(n,e,t,i){var r;r=n.a.length,t>r?t=r:zn(e,t+1),n.a=qo(n.a,0,e)+(""+i)+DW(n.a,t)}function Fxn(n,e){n.a=nr(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d=nr(n.d,e)}function Tve(n,e){return e<n.b.gc()?u(n.b.Xb(e),10):e==n.b.gc()?n.a:u(sn(n.e,e-n.b.gc()-1),10)}function Cve(n,e,t){return bt(vp(pm(n),new V(e.e.a,e.e.b)),vp(pm(n),new V(t.e.a,t.e.b)))}function Sve(n,e,t){return n==(Ab(),IO)?new Wpn:to(e,1)!=0?new jz(t.length):new Wjn(t.length)}function it(n,e){var t,i,r;if(t=n.th(),t!=null&&n.wh())for(i=0,r=t.length;i<r;++i)t[i].dj(e)}function Pve(n,e){var t,i,r;for(t=n.c.Xe(),r=e.Kc();r.Ob();)i=r.Pb(),n.a.Yd(t,i);return n.b.Kb(t)}function Q4(n,e){var t,i;for(t=n,i=Hi(t).e;i;){if(t=i,t==e)return!0;i=Hi(t).e}return!1}function Y1(n){var e;return e=n.h,e==0?n.l+n.m*o3:e==Ol?n.l+n.m*o3-vd:n}function Ive(n,e,t){var i,r;return i=n.a.f[e.p],r=n.a.f[t.p],i<r?-1:i==r?0:1}function Ove(n,e){var t,i;for(i=new M(e);i.a<i.c.c.length;)t=u(E(i),72),nn(n.d,t),Yye(n,t)}function Ave(n,e){var t;e.Ug("Edge and layer constraint edge reversal",1),t=FSe(n),pLe(t),e.Vg()}function Lve(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)t=u(ue(i),27),Bo(t,t.i+e.b,t.j+e.d)}function _xn(n){var e;n.d==null?(++n.e,n.f=0,ZRn(null)):(++n.e,e=n.d,n.d=null,n.f=0,ZRn(e))}function Nve(n){var e;if(n.a==n.b.a)throw T(new nc);return e=n.a,n.c=e,n.a=u(as(n.a.e),227),e}function Un(n,e){var t;return n.Db&e?(t=Bx(n,e),t==-1?n.Eb:cd(n.Eb)[t]):null}function hc(n,e){var t,i;return t=(i=new cG,i),t.G=e,!n.rb&&(n.rb=new H0(n,Mf,n)),ve(n.rb,t),t}function Je(n,e){var t,i;return t=(i=new xE,i),t.G=e,!n.rb&&(n.rb=new H0(n,Mf,n)),ve(n.rb,t),t}function Hxn(n,e,t,i){L(n.Cb,184)&&(u(n.Cb,184).tb=null),zc(n,t),e&&JEe(n,e),i&&n.gl(!0)}function qxn(n,e){n.c&&(cUn(n,e,!0),qt(new Cn(null,new On(e,16)),new x7n(n))),cUn(n,e,!1)}function Dve(n){wCn();var e;return vMn(QH,n)||(e=new T3n,e.a=n,gV(QH,n,e)),u(Mr(QH,n),645)}function IC(n){var e;if(n.g>1||n.Ob())return++n.a,n.g=0,e=n.i,n.Ob(),e;throw T(new nc)}function Uxn(n){switch(n.a.g){case 1:return new WMn;case 3:return new WBn;default:return new s8n}}function HQ(n,e){switch(e){case 1:return!!n.n&&n.n.i!=0;case 2:return n.k!=null}return bJ(n,e)}function vc(n){return Sy<n&&n<vd?n<0?y.Math.ceil(n):y.Math.floor(n):Y1(sCe(n))}function vk(n){var e;return n<128?(tIn(),e=gun[n],!e&&(e=gun[n]=new yG(n)),e):new yG(n)}function $ve(n,e){var t;try{e.de()}catch(i){if(i=Ot(i),L(i,82))t=i,Fn(n.c,t);else throw T(i)}}function ds(n){var e,t,i,r;return r=n,i=0,r<0&&(r+=vd,i=Ol),t=wi(r/o3),e=wi(r-t*o3),Yc(e,t,i)}function kk(n){var e,t,i;for(i=0,t=new dp(n.a);t.a<t.c.a.length;)e=n5(t),n.b.Hc(e)&&++i;return i}function xve(n){var e,t,i;for(e=1,i=n.Kc();i.Ob();)t=i.Pb(),e=31*e+(t==null?0:mt(t)),e=~~e;return e}function Ur(n,e){var t;return e&&(t=e.nf(),t.dc()||(n.q?s5(n.q,t):n.q=new BTn(t))),n}function Gxn(n,e){var t;return t=n.a.get(e),t===void 0?++n.d:(Iae(n.a,e),--n.c,++n.b.g),t}function Rve(n,e){var t,i,r;return t=e.p-n.p,t==0?(i=n.f.a*n.f.b,r=e.f.a*e.f.b,bt(i,r)):t}function Kve(n,e){var t,i;return t=n.j,i=e.j,t!=i?t.g-i.g:n.p==e.p?0:t==(en(),Xn)?n.p-e.p:e.p-n.p}function h5(n,e,t,i,r){$t(n.c[e.g],t.g,i),$t(n.c[t.g],e.g,i),$t(n.b[e.g],t.g,r),$t(n.b[t.g],e.g,r)}function fd(n,e,t){this.b=(Jn(n),n),this.d=(Jn(e),e),this.e=(Jn(t),t),this.c=this.d+(""+this.e)}function Y4(n,e){this.b=n,this.e=e,this.d=e.j,this.f=(dr(),u(n,69).xk()),this.k=ru(e.e.Dh(),n)}function yk(n){this.n=new Z,this.e=new Mt,this.j=new Mt,this.k=new Z,this.f=new Z,this.p=n}function zxn(n){n.r=new ni,n.w=new ni,n.t=new Z,n.i=new Z,n.d=new ni,n.a=new mp,n.c=new de}function Db(){Db=R,rj=new sM("UP",0),ij=new sM(_K,1),l_=new sM(s3,2),a_=new sM(f3,3)}function Z4(){Z4=R,cH=new UL("ONE_SIDED",0),uH=new UL("TWO_SIDED",1),mj=new UL("OFF",2)}function D$(){D$=R,L1n=new fX("EQUAL_BETWEEN_STRUCTURES",0),N1n=new fX("TO_ASPECT_RATIO",1)}function Xxn(){Xxn=R,Yte=Me((a1(),S(C(Ahn,1),G,265,0,[$H,Phn,Ihn,DH,Shn,Ohn,MO,Iv,Ov])))}function Vxn(){Vxn=R,hoe=Me((io(),S(C(gdn,1),G,264,0,[_v,uE,sA,I9,fA,lA,hA,dU,cE])))}function Wxn(){Wxn=R,noe=Me((lw(),S(C(yr,1),G,95,0,[Qs,xl,Ys,nf,el,Ts,No,Zs,Ms])))}function Jxn(){Jxn=R,UQn=Me((DS(),S(C(ton,1),G,257,0,[eon,Qun,Yun,Jun,s_,non,Zun,Wun,Vun])))}function qQ(n){var e;return e=u(v(n,(W(),gc)),64),n.k==(Vn(),Zt)&&(e==(en(),Wn)||e==Zn)}function Bve(n,e,t){var i,r;r=u(v(n,(cn(),Rr)),75),r&&(i=new Tu,J$(i,0,r),nw(i,t),Ki(e,i))}function OC(n,e,t){var i,r,c,s;s=Hi(n),i=s.d,r=s.c,c=n.n,e&&(c.a=c.a-i.b-r.a),t&&(c.b=c.b-i.d-r.b)}function Fve(n,e){var t,i;return t=n.f.c.length,i=e.f.c.length,t<i?-1:t==i?0:1}function _ve(n){return n.b.c.length!=0&&u(sn(n.b,0),72).a?u(sn(n.b,0),72).a:vD(n)}function Hve(n){var e;if(n){if(e=n,e.dc())throw T(new nc);return e.Xb(e.gc()-1)}return DAn(n.Kc())}function Qxn(n){var e;return Ec(n,0)<0&&(n=VV(n)),e=Se(U1(n,32)),64-(e!=0?iy(e):iy(Se(n))+32)}function qve(){return UT(),Uf?new VD(null):wHn(Eve(),"com.google.common.base.Strings")}function $$(n,e,t,i){return t==1?(!n.n&&(n.n=new q(Sr,n,1,7)),cr(n.n,e,i)):fnn(n,e,t,i)}function jk(n,e){var t,i;return i=(t=new UA,t),zc(i,e),ve((!n.A&&(n.A=new Cu(fu,n,7)),n.A),i),i}function Uve(n,e,t){var i,r,c,s;return c=null,s=e,r=Sb(s,gF),i=new wTn(n,t),c=(yke(i.a,i.b,r),r),c}function x$(n){var e;return(!n.a||!(n.Bb&1)&&n.a.Vh())&&(e=gs(n),L(e,156)&&(n.a=u(e,156))),n.a}function Ek(n,e){var t,i;for(Jn(e),i=e.Kc();i.Ob();)if(t=i.Pb(),!n.Hc(t))return!1;return!0}function Gve(n,e){var t,i,r;return t=n.l+e.l,i=n.m+e.m+(t>>22),r=n.h+e.h+(i>>22),Yc(t&ro,i&ro,r&Ol)}function Yxn(n,e){var t,i,r;return t=n.l-e.l,i=n.m-e.m+(t>>22),r=n.h-e.h+(i>>22),Yc(t&ro,i&ro,r&Ol)}function zve(n){var e,t;for(BLe(n),t=new M(n.d);t.a<t.c.c.length;)e=u(E(t),105),e.i&&Dje(e)}function Ot(n){var e;return L(n,82)?n:(e=n&&n.__java$exception,e||(e=new GRn(n),Nyn(e)),e)}function Mk(n){if(L(n,193))return u(n,123);if(n)return null;throw T(new fp(MWn))}function UQ(n){return n.a.Ob()?!0:n.a!=n.e?!1:(n.a=new VJ(n.f.f),n.a.Ob())}function Zxn(n,e){if(e==null)return!1;for(;n.a!=n.b;)if(rt(e,xC(n)))return!0;return!1}function nRn(n,e){return!n||!e||n==e?!1:FKn(n.d.c,e.d.c+e.d.b)&&FKn(e.d.c,n.d.c+n.d.b)}function hi(n,e){var t,i;return t=e.Pc(),i=t.length,i==0?!1:(GV(n.c,n.c.length,t),!0)}function Xve(n,e,t){var i,r;for(r=e.vc().Kc();r.Ob();)i=u(r.Pb(),44),n.yc(i.ld(),i.md(),t);return n}function R$(n){var e,t,i;for(e=new Mt,i=ge(n.d,0);i.b!=i.d.c;)t=u(be(i),65),Re(e,t.c);return e}function eRn(n,e){var t,i;for(i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),72),U(t,(W(),S3),e)}function Vve(n,e,t){var i,r;for(r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),27),Bo(i,i.i+e,i.j+t)}function tRn(n,e){if(!n)throw T(new Gn(B5("value already present: %s",S(C(ki,1),Kn,1,5,[e]))))}function Wve(n,e,t,i,r){return Vg(),y.Math.min(OGn(n,e,t,i,r),OGn(t,i,n,e,HM(new V(r.a,r.b))))}function Jve(n,e,t,i){u(t.b,68),u(t.b,68),u(i.b,68),u(i.b,68),u(i.b,68),nu(i.a,new xV(n,e,i))}function Qve(n,e){n.d==(ci(),Kr)||n.d==us?u(e.a,60).c.Fc(u(e.b,60)):u(e.b,60).c.Fc(u(e.a,60))}function iRn(n,e){var t;return t=Lh(e.a.gc()),qt(fC(new Cn(null,new On(e,1)),n.i),new oTn(n,t)),t}function rRn(n){var e,t;return t=(e=new UA,e),zc(t,"T"),ve((!n.d&&(n.d=new Cu(fu,n,11)),n.d),t),t}function GQ(n){var e,t,i,r;for(e=1,t=0,r=n.gc();t<r;++t)i=n.Vi(t),e=31*e+(i==null?0:mt(i));return e}function cRn(n,e,t,i){var r;return Z7(e,n.e.Rd().gc()),Z7(t,n.c.Rd().gc()),r=n.a[e][t],$t(n.a[e],t,i),r}function S(n,e,t,i,r){return r.Rm=n,r.Sm=e,r.Tm=Q2,r.__elementTypeId$=t,r.__elementTypeCategory$=i,r}function AC(){AC=R,x_=new dM(kh,0),HI=new dM(GXn,1),qI=new dM(zXn,2),wj=new dM("BOTH",3)}function xf(){xf=R,j3=new bM(qm,0),lv=new bM(s3,1),av=new bM(f3,2),R_=new bM("TOP",3)}function nm(){nm=R,r0=new lM("Q1",0),Ow=new lM("Q4",1),Iw=new lM("Q2",2),d2=new lM("Q3",3)}function LC(){LC=R,JH=new YL("OFF",0),Av=new YL("SINGLE_EDGE",1),Gw=new YL("MULTI_EDGE",2)}function Tk(){Tk=R,YO=new lX("MINIMUM_SPANNING_TREE",0),ian=new lX("MAXIMUM_SPANNING_TREE",1)}function qp(){qp=R,bue=new mmn,due=new pmn}function zQ(n){var e,t;return t=(K1(),e=new jE,e),n&&ve((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),t),t}function K$(n){var e,t,i,r;for(r=new Z,i=n.Kc();i.Ob();)t=u(i.Pb(),27),e=aw(t),hi(r,e);return r}function Yve(n,e){var t,i;for(CT(e,"predicate"),i=0;n.Ob();i++)if(t=n.Pb(),e.Lb(t))return i;return-1}function Up(n,e){var t,i;if(i=0,n<64&&n<=e)for(e=e<64?e:63,t=n;t<=e;t++)i=lf(i,Ks(1,t));return i}function Zve(n,e){var t,i;return t=n.c,i=e.e[n.p],i<t.a.c.length-1?u(sn(t.a,i+1),10):null}function XQ(n){Ln();var e,t,i;for(i=0,t=n.Kc();t.Ob();)e=t.Pb(),i=i+(e!=null?mt(e):0),i=i|0;return i}function n6e(n){var e,t,i;return e=u(n.e&&n.e(),9),i=(t=e.slice(),u(o$(t,e),9)),new _o(e,i,e.length)}function uRn(n,e,t){var i;Hu(n.a),nu(t.i,new Ikn(n)),i=new NM(u(ee(n.a,e.b),68)),JKn(n,i,e),t.f=i}function e6e(n){var e;Ub(n,!0),e=d1,kt(n,(cn(),Cv))&&(e+=u(v(n,Cv),17).a),U(n,Cv,Y(e))}function t6e(n){var e;return e=new ul,e.a=n,e.b=a6e(n),e.c=F(fn,J,2,2,6,1),e.c[0]=kxn(n),e.c[1]=kxn(n),e}function oRn(n){var e,t,i;return t=n.n,i=n.o,e=n.d,new Ho(t.a-e.b,t.b-e.d,i.a+(e.b+e.c),i.b+(e.d+e.a))}function i6e(n,e){return!n||!e||n==e?!1:xb(n.b.c,e.b.c+e.b.b)<0&&xb(e.b.c,n.b.c+n.b.b)<0}function sRn(n){switch(n.g){case 1:return Sa;case 2:return nl;case 3:return Zj;default:return nE}}function r6e(n){switch(u(v(n,(cn(),ou)),171).g){case 2:case 4:return!0;default:return!1}}function Ck(n,e,t){switch(t.g){case 2:n.b=e;break;case 1:n.c=e;break;case 4:n.d=e;break;case 3:n.a=e}}function VQ(n,e){switch(e){case 0:!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),n.o.c.$b();return}cR(n,e)}function c6e(n,e){var t,i;return t=u(u(ee(n.g,e.a),42).a,68),i=u(u(ee(n.g,e.b),42).a,68),xUn(t,i)}function WQ(n,e,t){var i;if(i=n.gc(),e>i)throw T(new F0(e,i));return n.Si()&&(t=gAn(n,t)),n.Ei(e,t)}function em(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)Fg(n,c,s)||xS(n,c,s,!0,!1)}function u6e(n){Vg();var e,t,i;for(t=F(Ei,J,8,2,0,1),i=0,e=0;e<2;e++)i+=.5,t[e]=Z9e(i,n);return t}function tm(n){var e,t,i;return e=~n.l+1&ro,t=~n.m+(e==0?1:0)&ro,i=~n.h+(e==0&&t==0?1:0)&Ol,Yc(e,t,i)}function JQ(n){var e;if(n<0)return Wi;if(n==0)return 0;for(e=W5;!(e&n);e>>=1);return e}function B$(n,e,t){return n>=128?!1:n<64?M6(vi(Ks(1,n),t),0):M6(vi(Ks(1,n-64),e),0)}function Sk(n,e,t){return t==null?(!n.q&&(n.q=new de),Kp(n.q,e)):(!n.q&&(n.q=new de),Ve(n.q,e,t)),n}function U(n,e,t){return t==null?(!n.q&&(n.q=new de),Kp(n.q,e)):(!n.q&&(n.q=new de),Ve(n.q,e,t)),n}function fRn(n){var e,t;return t=new zT,Ur(t,n),U(t,(Q1(),y3),n),e=new de,$Ie(n,t,e),fLe(n,t,e),t}function hRn(n){var e,t;return e=n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f,t=n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d,e||t}function lRn(n,e){var t,i,r,c;for(t=!1,i=n.a[e].length,c=0;c<i-1;c++)r=c+1,t=t|N8e(n,e,c,r);return t}function o6e(n){var e,t,i,r;for(t=n.a,i=0,r=t.length;i<r;++i)e=t[i],mRn(n,e,(en(),ae)),mRn(n,e,Xn)}function aRn(){aRn=R,Ene=Me((pr(),S(C(rH,1),G,259,0,[ZI,cs,R8,nO,yv,v2,K8,vv,kv,eO])))}function dRn(){dRn=R,tie=Me((ps(),S(C(Fhn,1),G,243,0,[SO,Pj,Ij,Rhn,Khn,xhn,Bhn,PO,p0,Uw])))}function hd(){hd=R,Q_=new qL(kh,0),mv=new qL("INCOMING_ONLY",1),m2=new qL("OUTGOING_ONLY",2)}function F$(){F$=R,VF={boolean:qhe,number:ihe,string:rhe,object:L_n,function:L_n,undefined:Rfe}}function QQ(){this.o=null,this.k=null,this.j=null,this.d=null,this.b=null,this.n=null,this.a=null}function YQ(n,e){this.c=n,this.d=e,this.b=this.d/this.c.c.Rd().gc()|0,this.a=this.d%this.c.c.Rd().gc()}function bRn(n,e){this.b=n,pg.call(this,(u(N(H((G1(),Hn).o),10),19),e.i),e.g),this.a=(L$(),EU)}function ZQ(n,e,t){this.q=new y.Date,this.q.setFullYear(n+ha,e,t),this.q.setHours(0,0,0,0),H5(this,0)}function wRn(n,e){x7(n>=0,"Negative initial capacity"),x7(e>=0,"Non-positive load factor"),Hu(this)}function s6e(n,e,t,i,r){var c,s;if(s=n.length,c=t.length,e<0||i<0||r<0||e+r>s||i+r>c)throw T(new HG)}function nY(n,e){Ln();var t,i,r,c,s;for(s=!1,i=e,r=0,c=i.length;r<c;++r)t=i[r],s=s|n.Fc(t);return s}function gRn(n,e,t){var i,r;return i=new r$(e,t),r=new LA,n.b=yqn(n,n.b,i,r),r.b||++n.c,n.b.b=!1,r.d}function l5(n){var e;return e=n.a[n.b],e==null?null:($t(n.a,n.b,null),n.b=n.b+1&n.a.length-1,e)}function pRn(n){var e,t;return t=iy(n.h),t==32?(e=iy(n.m),e==32?iy(n.l)+32:e+20-10):t-12}function eY(n){var e;return(!n.c||!(n.Bb&1)&&n.c.Db&64)&&(e=gs(n),L(e,90)&&(n.c=u(e,29))),n.c}function Z1(n){var e,t;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),60),e.d.c=-e.d.c-e.d.b;cen(n)}function na(n){var e,t;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),e.g.c=-e.g.c-e.g.b;IS(n)}function mRn(n,e,t){var i,r,c,s;for(s=g5(e,t),c=0,r=s.Kc();r.Ob();)i=u(r.Pb(),12),Ve(n.c,i,Y(c++))}function vRn(n,e,t){var i;return i=new Z,fen(n,e,i,(en(),Zn),!0,!1),fen(n,t,i,Wn,!1,!1),i}function cc(n){var e,t,i,r,c;for(e=new Ni,i=n,r=0,c=i.length;r<c;++r)t=i[r],e.a+=t.a,e.b+=t.b;return e}function _$(n,e,t){var i,r,c,s;return c=null,s=e,r=Sb(s,"labels"),i=new TTn(n,t),c=(GMe(i.a,i.b,r),r),c}function f6e(n,e,t,i){var r;return r=Jnn(n,e,t,i),!r&&(r=p5e(n,t,i),r&&!Qg(n,e,r))?null:r}function h6e(n,e,t,i){var r;return r=Qnn(n,e,t,i),!r&&(r=rx(n,t,i),r&&!Qg(n,e,r))?null:r}function l6e(n,e,t){if(Pe(e),t.Ob())for(pX(e,uOn(t.Pb()));t.Ob();)pX(e,n.a),pX(e,uOn(t.Pb()));return e}function kRn(n,e){var t;for(t=0;t<n.a.a.length;t++)if(!u(YPn(n.a,t),178).Lb(e))return!1;return!0}function a6e(n){var e;return n==0?"Etc/GMT":(n<0?(n=-n,e="Etc/GMT-"):e="Etc/GMT+",e+YDn(n))}function tY(n){var e;return n.b<=0?!1:(e=ih("MLydhHmsSDkK",wu(Xi(n.c,0))),e>1||e>=0&&n.b<3)}function H$(n){var e,t,i;e=~n.l+1&ro,t=~n.m+(e==0?1:0)&ro,i=~n.h+(e==0&&t==0?1:0)&Ol,n.l=e,n.m=t,n.h=i}function iY(n){Ln();var e,t,i;for(i=1,t=n.Kc();t.Ob();)e=t.Pb(),i=31*i+(e!=null?mt(e):0),i=i|0;return i}function d6e(n,e,t,i,r){var c;return c=znn(n,e),t&&H$(c),r&&(n=u7e(n,e),i?wa=tm(n):wa=Yc(n.l,n.m,n.h)),c}function yRn(n,e,t){n.g=uR(n,e,(en(),Zn),n.b),n.d=uR(n,t,Zn,n.b),!(n.g.c==0||n.d.c==0)&&YFn(n)}function jRn(n,e,t){n.g=uR(n,e,(en(),Wn),n.j),n.d=uR(n,t,Wn,n.j),!(n.g.c==0||n.d.c==0)&&YFn(n)}function rY(n,e){switch(e){case 7:return!!n.e&&n.e.i!=0;case 8:return!!n.d&&n.d.i!=0}return HY(n,e)}function b6e(n,e){switch(e.g){case 0:L(n.b,641)||(n.b=new Bxn);break;case 1:L(n.b,642)||(n.b=new KPn)}}function ERn(n){switch(n.g){case 0:return new gmn;default:throw T(new Gn(xP+(n.f!=null?n.f:""+n.g)))}}function MRn(n){switch(n.g){case 0:return new wmn;default:throw T(new Gn(xP+(n.f!=null?n.f:""+n.g)))}}function w6e(n,e,t){return!s4(ut(new Cn(null,new On(n.c,16)),new Z3(new hTn(e,t)))).Bd((Va(),v3))}function TRn(n,e){return vp(pm(u(v(e,(lc(),v0)),88)),new V(n.c.e.a-n.b.e.a,n.c.e.b-n.b.e.b))<=0}function g6e(n,e){for(;n.g==null&&!n.c?rJ(n):n.g==null||n.i!=0&&u(n.g[n.i-1],51).Ob();)kle(e,MS(n))}function ld(n){var e,t;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),e.f.$b();Yfe(n.b,n),uqn(n)}function Pk(n){var e,t,i;for(e=new Tu,i=ge(n,0);i.b!=i.d.c;)t=u(be(i),8),g4(e,0,new rr(t));return e}function im(n){var e;return X1(n),e=new NA,n.a.Bd(e)?(b4(),new wL(Jn(e.a))):(b4(),b4(),Lun)}function cY(n,e,t){switch(e){case 0:!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),CC(n.o,t);return}sR(n,e,t)}function q$(n,e,t){this.g=n,this.e=new Ni,this.f=new Ni,this.d=new Mt,this.b=new Mt,this.a=e,this.c=t}function U$(n,e,t,i){this.b=new Z,this.n=new Z,this.i=i,this.j=t,this.s=n,this.t=e,this.r=0,this.d=0}function rm(n,e){if(!n.Li()&&e==null)throw T(new Gn("The 'no null' constraint is violated"));return e}function t1(n){var e,t;for(e=0,t=0;t<n.length;t++)e=(e<<5)-e+(zn(t,n.length),n.charCodeAt(t))|0;return e}function CRn(n,e){var t,i,r;for(r=n.b;r;){if(t=n.a.Ne(e,r.d),t==0)return r;i=t<0?0:1,r=r.a[i]}return null}function p6e(n,e,t){var i,r;i=(_n(),!!kX(t)),r=u(e.xc(i),15),r||(r=new Z,e.zc(i,r)),r.Fc(t)}function m6e(n,e){var t,i;return t=u(z(n,(Bf(),Bj)),17).a,i=u(z(e,Bj),17).a,t==i||t<i?-1:t>i?1:0}function v6e(n){return nn(n.c,(qp(),bue)),fQ(n.a,$(B(rn((bx(),EO)))))?new tvn:new $kn(n)}function k6e(n){for(;!n.d||!n.d.Ob();)if(n.b&&!t6(n.b))n.d=u(Pp(n.b),51);else return null;return n.d}function uY(n){switch(n.g){case 1:return lVn;default:case 2:return 0;case 3:return QK;case 4:return Trn}}function y6e(){nt();var n;return IU||(n=_1e(sa("M",!0)),n=uT(sa("M",!1),n),IU=n,IU)}function NC(){NC=R,wU=new MM("ELK",0),Cdn=new MM("JSON",1),Tdn=new MM("DOT",2),Sdn=new MM("SVG",3)}function a5(){a5=R,XH=new WL("STACKED",0),zH=new WL("REVERSE_STACKED",1),Oj=new WL("SEQUENCED",2)}function d5(){d5=R,wln=new eN(kh,0),ZH=new eN("MIDDLE_TO_MIDDLE",1),Nj=new eN("AVOID_OVERLAP",2)}function cm(){cm=R,Esn=new Ygn,Msn=new Zgn,JZn=new Jgn,WZn=new n2n,VZn=new Qgn,jsn=(Jn(VZn),new Abn)}function DC(){DC=R,hdn=new fb(15),Jue=new Di((He(),M1),hdn),j9=D3,udn=Iue,odn=Hd,fdn=_2,sdn=Vw}function Dg(n,e){var t,i,r,c,s;for(i=e,r=0,c=i.length;r<c;++r)t=i[r],s=new YIn(n),t.hf(s),VIe(s);Hu(n.f)}function G$(n,e){var t;return e===n?!0:L(e,229)?(t=u(e,229),rt(n.Zb(),t.Zb())):!1}function oY(n,e){return tqn(n,e)?(In(n.b,u(v(e,(W(),Dl)),21),e),Re(n.a,e),!0):!1}function j6e(n){var e,t;e=u(v(n,(W(),Xu)),10),e&&(t=e.c,du(t.a,e),t.a.c.length==0&&du(Hi(e).b,t))}function E6e(n,e){return kt(n,(W(),dt))&&kt(e,dt)?u(v(e,dt),17).a-u(v(n,dt),17).a:0}function M6e(n,e){return kt(n,(W(),dt))&&kt(e,dt)?u(v(n,dt),17).a-u(v(e,dt),17).a:0}function SRn(n){return Uf?F(AQn,Jzn,581,0,0,1):u(Rf(n.a,F(AQn,Jzn,581,n.a.c.length,0,1)),856)}function T6e(n,e,t,i){return yT(),new hz(S(C(Id,1),WS,44,0,[(Dx(n,e),new ib(n,e)),(Dx(t,i),new ib(t,i))]))}function $g(n,e,t){var i,r;return r=(i=new hL,i),Tr(r,e,t),ve((!n.q&&(n.q=new q(Ps,n,11,10)),n.q),r),r}function z$(n){var e,t,i,r;for(r=ule(Coe,n),t=r.length,i=F(fn,J,2,t,6,1),e=0;e<t;++e)i[e]=r[e];return i}function sY(n,e){var t;e*2+1>=n.b.c.length||(sY(n,2*e+1),t=2*e+2,t<n.b.c.length&&sY(n,t),$_n(n,e))}function C6e(n,e){var t,i;for(i=ge(n,0);i.b!=i.d.c;)t=u(be(i),219),t.e.length>0&&(e.Cd(t),t.i&&E5e(t))}function fY(n,e,t){var i;for(i=t-1;i>=0&&n[i]===e[i];i--);return i<0?0:DL(vi(n[i],mr),vi(e[i],mr))?-1:1}function PRn(n,e,t){var i,r;this.g=n,this.c=e,this.a=this,this.d=this,r=sxn(t),i=F(sQn,My,227,r,0,1),this.b=i}function X$(n,e,t,i,r){var c,s;for(s=t;s<=r;s++)for(c=e;c<=i;c++)if(Fg(n,c,s))return!0;return!1}function S6e(n,e){var t,i;for(i=n.Zb().Cc().Kc();i.Ob();)if(t=u(i.Pb(),16),t.Hc(e))return!0;return!1}function IRn(n,e,t){var i,r,c,s;for(Jn(t),s=!1,c=n.fd(e),r=t.Kc();r.Ob();)i=r.Pb(),c.Rb(i),s=!0;return s}function V$(n,e){var t,i;return i=u(Un(n.a,4),129),t=F(yU,TF,424,e,0,1),i!=null&&Oc(i,0,t,0,i.length),t}function ORn(n,e){var t;return t=new jR((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,e),n.e!=null||(t.c=n),t}function P6e(n,e){var t;return n===e?!0:L(e,85)?(t=u(e,85),ann(Ja(n),t.vc())):!1}function ARn(n,e,t){var i,r;for(r=t.Kc();r.Ob();)if(i=u(r.Pb(),44),n.Be(e,i.md()))return!0;return!1}function LRn(n,e,t){return n.d[e.p][t.p]||(A9e(n,e,t),n.d[e.p][t.p]=!0,n.d[t.p][e.p]=!0),n.a[e.p][t.p]}function I6e(n,e){var t;return!n||n==e||!kt(e,(W(),s0))?!1:(t=u(v(e,(W(),s0)),10),t!=n)}function W$(n){switch(n.i){case 2:return!0;case 1:return!1;case-1:++n.c;default:return n.$l()}}function NRn(n){switch(n.i){case-2:return!0;case-1:return!1;case 1:--n.c;default:return n._l()}}function DRn(n){yAn.call(this,"The given string does not match the expected format for individual spacings.",n)}function O6e(n,e){var t;e.Ug("Min Size Preprocessing",1),t=ynn(n),ht(n,(_h(),f9),t.a),ht(n,UO,t.b),e.Vg()}function A6e(n){var e,t,i;for(e=0,i=F(Ei,J,8,n.b,0,1),t=ge(n,0);t.b!=t.d.c;)i[e++]=u(be(t),8);return i}function J$(n,e,t){var i,r,c;for(i=new Mt,c=ge(t,0);c.b!=c.d.c;)r=u(be(c),8),Re(i,new rr(r));IRn(n,e,i)}function L6e(n,e){var t;return t=nr(n,e),DL(BD(n,e),0)|SM(BD(n,t),0)?t:nr(Ey,BD(U1(t,63),1))}function N6e(n,e){var t,i;return t=u(n.d.Bc(e),16),t?(i=n.e.hc(),i.Gc(t),n.e.d-=t.gc(),t.$b(),i):null}function $Rn(n){var e;if(e=n.a.c.length,e>0)return E4(e-1,n.a.c.length),Yl(n.a,e-1);throw T(new $yn)}function xRn(n,e,t){if(n>e)throw T(new Gn(ZS+n+Qzn+e));if(n<0||e>t)throw T(new gz(ZS+n+Stn+e+Mtn+t))}function um(n,e){n.D==null&&n.B!=null&&(n.D=n.B,n.B=null),j$(n,e==null?null:(Jn(e),e)),n.C&&n.hl(null)}function D6e(n,e){var t;t=rn((bx(),EO))!=null&&e.Sg()!=null?$(B(e.Sg()))/$(B(rn(EO))):1,Ve(n.b,e,t)}function hY(n,e){var t,i;if(i=n.c[e],i!=0)for(n.c[e]=0,n.d-=i,t=e+1;t<n.a.length;)n.a[t]-=i,t+=t&-t}function ew(n){var e;++n.j,n.i==0?n.g=null:n.i<n.g.length&&(e=n.g,n.g=n.aj(n.i),Oc(e,0,n.g,0,n.i))}function $6e(n,e,t){if(e<0)throw T(new Or(LVn+e));e<n.j.c.length?Go(n.j,e,t):(xLn(n,e),nn(n.j,t))}function RRn(n){if(!n.a||!(n.a.i&8))throw T(new Ar("Enumeration class expected for layout option "+n.f))}function lY(n){var e;return e=(!n.a&&(n.a=new q(Kl,n,9,5)),n.a),e.i!=0?rle(u(N(e,0),694)):null}function x6e(n){var e;for(Pe(n),AV(!0,"numberToAdvance must be nonnegative"),e=0;e<0&&pe(n);e++)fe(n);return e}function Q$(){Q$=R,fon=(YE(),d_),son=new Tn(Ftn,fon),IYn=new lt(_tn),OYn=new lt(Htn),AYn=new lt(qtn)}function b5(){b5=R,lq=new mM(ein,0),KO=new mM(bVn,1),hq=new mM("FAN",2),fq=new mM("CONSTRAINT",3)}function Ik(){Ik=R,FO=new tN(kh,0),Hln=new tN("RADIAL_COMPACTION",1),qln=new tN("WEDGE_COMPACTION",2)}function om(){om=R,VH=new JL("CONSERVATIVE",0),Vhn=new JL("CONSERVATIVE_SOFT",1),Y8=new JL("SLOPPY",2)}function Gu(){Gu=R,xun=new $L("CONCURRENT",0),Yr=new $L("IDENTITY_FINISH",1),Sw=new $L("UNORDERED",2)}function Y$(){Y$=R,T_=aAn(S(C(y9,1),G,88,0,[(ci(),Kr),Xr])),C_=aAn(S(C(y9,1),G,88,0,[us,Wf]))}function wo(n){return Si(n)?fn:$0(n)?si:D0(n)?Gt:gW(n)||fW(n)?n.Rm:n.Rm||Array.isArray(n)&&C(fQn,1)||fQn}function R6e(n){return n?n.i&1?n==so?Gt:n==ye?Gi:n==cg?sv:n==Ii?si:n==Ra?t0:n==V2?i0:n==Ru?p3:S8:n:null}function xg(n){return(n.c!=n.b.b||n.i!=n.g.b)&&(I0(n.a.c,0),hi(n.a,n.b),hi(n.a,n.g),n.c=n.b.b,n.i=n.g.b),n.a}function K6e(n,e){var t,i;for(t=n.a.length-1;e!=n.b;)i=e-1&t,$t(n.a,e,n.a[i]),e=i;$t(n.a,n.b,null),n.b=n.b+1&t}function B6e(n,e){var t,i;for(t=n.a.length-1,n.c=n.c-1&t;e!=n.c;)i=e+1&t,$t(n.a,e,n.a[i]),e=i;$t(n.a,n.c,null)}function aY(n,e,t){var i,r;return z0(e,n.c.length),i=t.Pc(),r=i.length,r==0?!1:(GV(n.c,e,i),!0)}function KRn(n,e,t){var i,r,c,s;for(r=t,c=0,s=r.length;c<s;++c)if(i=r[c],n.b.Be(e,i.ld()))return i;return null}function Ok(n){var e,t,i,r,c;for(c=1,t=n,i=0,r=t.length;i<r;++i)e=t[i],c=31*c+(e!=null?mt(e):0),c=c|0;return c}function Me(n){var e,t,i,r,c;for(e={},i=n,r=0,c=i.length;r<c;++r)t=i[r],e[":"+(t.f!=null?t.f:""+t.g)]=t;return e}function F6e(n){var e,t;if(n==null)return null;for(e=0,t=n.length;e<t;e++)if(!APn(n[e]))return n[e];return null}function Z$(n,e){return!n||e&&!n.j||L(n,127)&&u(n,127).a.b==0?0:n.jf()}function $C(n,e){return!n||e&&!n.k||L(n,127)&&u(n,127).a.a==0?0:n.kf()}function BRn(n,e){return kt(n,(W(),dt))&&kt(e,dt)?jc(u(v(n,dt),17).a,u(v(e,dt),17).a):0}function FRn(n){var e,t,i;for(i=0,t=new ie(ce(n.a.Kc(),new En));pe(t);)e=u(fe(t),18),e.c.i==e.d.i||++i;return i}function _Rn(n,e){var t,i,r;for(r=e-n.f,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),315),xKn(t,t.e,t.f+r);n.f=e}function ad(n,e){var t,i,r;i=n.Yk(e,null),r=null,e&&(r=(o4(),t=new Jd,t),F4(r,n.r)),i=Kf(n,r,i),i&&i.oj()}function HRn(n,e){var t,i,r;t=n,r=0;do{if(t==e)return r;if(i=t.e,!i)throw T(new W9);t=Hi(i),++r}while(!0)}function _6e(n){var e,t,i,r;for(i=n.b.a,t=i.a.ec().Kc();t.Ob();)e=u(t.Pb(),567),r=new zHn(e,n.e,n.f),nn(n.g,r)}function H6e(n){var e;return e=new v$n(n),Q7(n.a,AZn,new Fu(S(C(aj,1),Kn,382,0,[e]))),e.d&&nn(e.f,e.d),e.f}function qRn(n,e){var t;for(t=0;t<e.length;t++)if(n==(zn(t,e.length),e.charCodeAt(t)))return!0;return!1}function q6e(n,e){return e<n.length&&(zn(e,n.length),n.charCodeAt(e)!=63)&&(zn(e,n.length),n.charCodeAt(e)!=35)}function URn(n,e,t,i){ECn(this),this.c=F(Qh,b1,10,n.a.c.length,0,1),this.e=e,Rf(n.a,this.c),this.f=t,this.b=i}function GRn(n){Njn(),xM(this),TT(this),this.e=n,bqn(this,n),this.g=n==null?gu:Jr(n),this.a="",this.b=n,this.a=""}function dY(){this.a=new amn,this.f=new jkn(this),this.b=new Ekn(this),this.i=new Mkn(this),this.e=new Tkn(this)}function zRn(){Jfe.call(this,new XJ(Q0(16))),Mo(2,Azn),this.b=2,this.a=new _W(null,null,0,null),V9(this.a,this.a)}function bY(n){throw F$(),T(new Ajn("Unexpected typeof result '"+n+"'; please report this bug to the GWT team"))}function nx(n,e,t){return y.Math.abs(e-n)<IP||y.Math.abs(t-n)<IP?!0:e-n>IP?n-t>IP:t-n>IP}function XRn(n,e){var t;for(t=0;t<e.length;t++)if(n==(zn(t,e.length),e.charCodeAt(t)))return!0;return!1}function U6e(n){var e,t;if(n==null)return!1;for(e=0,t=n.length;e<t;e++)if(!APn(n[e]))return!1;return!0}function wY(n,e){var t,i,r;return i=!1,t=e.q.d,e.d<n.b&&(r=ren(e.q,n.b),e.q.d>r&&(EFn(e.q,r),i=t!=e.q.d)),i}function VRn(n,e){var t,i,r,c,s,f,h,l;return h=e.i,l=e.j,i=n.f,r=i.i,c=i.j,s=h-r,f=l-c,t=y.Math.sqrt(s*s+f*f),t}function gY(n,e){var t,i;return i=WC(n),i||(t=(UR(),$Hn(e)),i=new Myn(t),ve(i.El(),n)),i}function Ak(n,e){var t,i;return t=u(n.c.Bc(e),16),t?(i=n.hc(),i.Gc(t),n.d-=t.gc(),t.$b(),n.mc(i)):n.jc()}function G6e(n,e){var t,i;for(i=to(n.d,1)!=0,t=!0;t;)t=!1,t=e.c.mg(e.e,i),t=t|sy(n,e,i,!1),i=!i;DQ(n)}function WRn(n,e,t,i){var r,c;n.a=e,c=i?0:1,n.f=(r=new s_n(n.c,n.a,t,c),new Fqn(t,n.a,r,n.e,n.b,n.c==(Ab(),Z8)))}function xC(n){var e;return oe(n.a!=n.b),e=n.d.a[n.a],ESn(n.b==n.d.c&&e!=null),n.c=n.a,n.a=n.a+1&n.d.a.length-1,e}function JRn(n){var e;if(n.c!=0)return n.c;for(e=0;e<n.a.length;e++)n.c=n.c*33+(n.a[e]&-1);return n.c=n.c*n.e,n.c}function z6e(n){var e;if(!(n.c.c<0?n.a>=n.c.b:n.a<=n.c.b))throw T(new nc);return e=n.a,n.a+=n.c.c,++n.b,Y(e)}function ex(n){var e;return e=new AX(n.a),Ur(e,n),U(e,(W(),st),n),e.o.a=n.g,e.o.b=n.f,e.n.a=n.i,e.n.b=n.j,e}function tx(n){return(en(),mu).Hc(n.j)?$(B(v(n,(W(),jv)))):cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a])).b}function X6e(n){var e;return e=LM(Mie),u(v(n,(W(),Hc)),21).Hc((pr(),yv))&&Fe(e,(Vi(),Ac),(tr(),RI)),e}function V6e(n){var e,t,i,r;for(r=new ni,i=new M(n);i.a<i.c.c.length;)t=u(E(i),27),e=wSe(t),Ki(r,e);return r}function W6e(n){var e,t;for(t=new M(n.r);t.a<t.c.c.length;)if(e=u(E(t),10),n.n[e.p]<=0)return e;return null}function J6e(n,e,t){var i,r;for(r=e.a.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),60),zOn(n,i,t))return!0;return!1}function Q6e(n,e,t,i){var r,c;for(c=n.Kc();c.Ob();)r=u(c.Pb(),72),r.n.a=e.a+(i.a-r.o.a)/2,r.n.b=e.b,e.b+=r.o.b+t}function Y6e(n,e,t){var i;i=new sHn(n,e),In(n.r,e.ag(),i),t&&!F6(n.u)&&(i.c=new fAn(n.d),nu(e.Rf(),new N9n(i)))}function Ec(n,e){var t;return Vr(n)&&Vr(e)&&(t=n-e,!isNaN(t))?t:AZ(Vr(n)?ds(n):n,Vr(e)?ds(e):e)}function pY(n,e){var t,i,r;for(r=1,t=n,i=e>=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function Z6e(n,e){var t,i,r;for(r=1,t=n,i=e>=0?e:-e;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return e<0?1/r:r}function ea(n,e){var t,i,r,c;return c=(r=n?WC(n):null,A_n((i=e,r&&r.Gl(),i))),c==e&&(t=WC(n),t&&t.Gl()),c}function QRn(n,e,t){var i,r;return r=n.f,n.f=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,0,r,e),t?t.nj(i):t=i),t}function YRn(n,e,t){var i,r;return r=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,3,r,e),t?t.nj(i):t=i),t}function mY(n,e,t){var i,r;return r=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,1,r,e),t?t.nj(i):t=i),t}function ZRn(n){var e,t;if(n!=null)for(t=0;t<n.length;++t)e=n[t],e&&(u(e.g,379),e.i)}function n5e(n,e,t,i,r,c,s,f){var h;for(h=t;c<s;)h>=i||e<t&&f.Ne(n[e],n[h])<=0?$t(r,c++,n[e++]):$t(r,c++,n[h++])}function e5e(n,e,t,i,r){e==0||i==0||(e==1?r[i]=hZ(r,t,i,n[0]):i==1?r[e]=hZ(r,n,e,t[0]):EMe(n,t,r,e,i))}function t5e(n,e,t){var i,r,c,s;for(i=t/n.gc(),r=0,s=n.Kc();s.Ob();)c=u(s.Pb(),186),_Rn(c,c.f+i*r),gke(c,e,i),++r}function i5e(n){var e,t,i;for(i=0,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),172),i=y.Math.max(i,e.g);return i}function r5e(n){var e,t,i;for(i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),219),e=t.c.kg()?t.f:t.a,e&&OOe(e,t.j)}function w5(){w5=R,xH=new zL("DUMMY_NODE_OVER",0),Lhn=new zL("DUMMY_NODE_UNDER",1),TO=new zL("EQUAL",2)}function Gp(){Gp=R,pdn=new lN("PARALLEL_NODE",0),Yw=new lN("HIERARCHICAL_NODE",1),aA=new lN("ROOT_NODE",2)}function jl(){jl=R,uA=new hN("INHERIT",0),T1=new hN("INCLUDE_CHILDREN",1),E9=new hN("SEPARATE_CHILDREN",2)}function vY(n,e){switch(e){case 1:!n.n&&(n.n=new q(Sr,n,1,7)),me(n.n);return;case 2:X4(n,null);return}VQ(n,e)}function nKn(n){switch(n.g){case 0:return new omn;case 1:return new fmn;case 2:return new smn;default:return null}}function i1(n){switch(oh(),n.c){case 0:return wD(),cun;case 1:return new lp(K_n(new dp(n)));default:return new Pjn(n)}}function eKn(n){switch(oh(),n.gc()){case 0:return wD(),cun;case 1:return new lp(n.Kc().Pb());default:return new Rz(n)}}function RC(n){var e;switch(n.gc()){case 0:return qF;case 1:return new VN(Pe(n.Xb(0)));default:return e=n,new ID(e)}}function Y(n){var e,t;return n>-129&&n<128?(RPn(),e=n+128,t=pun[e],!t&&(t=pun[e]=new mG(n)),t):new mG(n)}function sm(n){var e,t;return n>-129&&n<128?(nIn(),e=n+128,t=yun[e],!t&&(t=yun[e]=new kG(n)),t):new kG(n)}function tKn(n,e){var t;n.a.c.length>0&&(t=u(sn(n.a,n.a.c.length-1),579),oY(t,e))||nn(n.a,new kNn(e))}function c5e(n){Rs();var e,t;e=n.d.c-n.e.c,t=u(n.g,154),nu(t.b,new p7n(e)),nu(t.c,new m7n(e)),qi(t.i,new v7n(e))}function iKn(n){var e;return e=new x1,e.a+="VerticalSegment ",Lc(e,n.e),e.a+=" ",Be(e,KX(new yL,new M(n.k))),e.a}function ix(n,e){var t,i,r;for(t=0,r=uc(n,e).Kc();r.Ob();)i=u(r.Pb(),12),t+=v(i,(W(),Xu))!=null?1:0;return t}function Rg(n,e,t){var i,r,c;for(i=0,c=ge(n,0);c.b!=c.d.c&&(r=$(B(be(c))),!(r>t));)r>=e&&++i;return i}function rKn(n,e){Pe(n);try{return n._b(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return!1;throw T(t)}}function kY(n,e){Pe(n);try{return n.Hc(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return!1;throw T(t)}}function u5e(n,e){Pe(n);try{return n.Mc(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return!1;throw T(t)}}function tw(n,e){Pe(n);try{return n.xc(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return null;throw T(t)}}function o5e(n,e){Pe(n);try{return n.Bc(e)}catch(t){if(t=Ot(t),L(t,212)||L(t,169))return null;throw T(t)}}function g5(n,e){switch(e.g){case 2:case 1:return uc(n,e);case 3:case 4:return Qo(uc(n,e))}return Ln(),Ln(),sr}function p5(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (name: ",Er(e,n.zb),e.a+=")",e.a)}function s5e(n){var e;return e=u(Df(n.c.c,""),233),e||(e=new Dp(u4(c4(new tp,""),"Other")),s1(n.c.c,"",e)),e}function yY(n,e,t){var i,r;return r=n.sb,n.sb=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,4,r,e),t?t.nj(i):t=i),t}function jY(n,e,t){var i,r;return r=n.r,n.r=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,8,r,n.r),t?t.nj(i):t=i),t}function f5e(n,e,t){var i,r;return i=new ml(n.e,4,13,(r=e.c,r||(An(),Zf)),null,f1(n,e),!1),t?t.nj(i):t=i,t}function h5e(n,e,t){var i,r;return i=new ml(n.e,3,13,null,(r=e.c,r||(An(),Zf)),f1(n,e),!1),t?t.nj(i):t=i,t}function r1(n,e){var t,i;return t=u(e,691),i=t.el(),!i&&t.fl(i=L(e,90)?new xTn(n,u(e,29)):new cLn(n,u(e,156))),i}function Lk(n,e,t){var i;n._i(n.i+1),i=n.Zi(e,t),e!=n.i&&Oc(n.g,e,n.g,e+1,n.i-e),$t(n.g,e,i),++n.i,n.Mi(e,t),n.Ni()}function l5e(n,e){var t;return e.a&&(t=e.a.a.length,n.a?Be(n.a,n.b):n.a=new mo(n.d),aLn(n.a,e.a,e.d.length,t)),n}function a5e(n,e){var t;n.c=e,n.a=p8e(e),n.a<54&&(n.f=(t=e.d>1?hLn(e.a[0],e.a[1]):hLn(e.a[0],0),id(e.e>0?t:n1(t))))}function Nk(n,e){var t;return t=new NA,n.a.Bd(t)?(b4(),new wL(Jn(GDn(n,t.a,e)))):(X1(n),b4(),b4(),Lun)}function cKn(n,e){var t;n.c.length!=0&&(t=u(Rf(n,F(Qh,b1,10,n.c.length,0,1)),199),EX(t,new rgn),Y_n(t,e))}function uKn(n,e){var t;n.c.length!=0&&(t=u(Rf(n,F(Qh,b1,10,n.c.length,0,1)),199),EX(t,new cgn),Y_n(t,e))}function rt(n,e){return Si(n)?Sn(n,e):$0(n)?nPn(n,e):D0(n)?(Jn(n),x(n)===x(e)):gW(n)?n.Fb(e):fW(n)?YTn(n,e):fJ(n,e)}function Wo(n,e,t){if(e<0)Pnn(n,t);else{if(!t.rk())throw T(new Gn(ba+t.xe()+b8));u(t,69).wk().Ek(n,n.hi(),e)}}function oKn(n,e,t){if(n<0||e>t)throw T(new Or(ZS+n+Stn+e+", size: "+t));if(n>e)throw T(new Gn(ZS+n+Qzn+e))}function sKn(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (source: ",Er(e,n.d),e.a+=")",e.a)}function fKn(n){return n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:n>=48&&n<=57?n-48:0}function d5e(n){VS();var e,t,i,r;for(t=jx(),i=0,r=t.length;i<r;++i)if(e=t[i],qr(e.a,n,0)!=-1)return e;return h_}function b5e(n,e){var t,i,r,c;if(e.ej(n.a),c=u(Un(n.a,8),2035),c!=null)for(t=c,i=0,r=t.length;i<r;++i)null.Um()}function c1(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,2,t,e))}function EY(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,8,t,e))}function KC(n,e){var t;t=(n.Bb&256)!=0,e?n.Bb|=256:n.Bb&=-257,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,8,t,e))}function u1(n,e){var t;t=(n.Bb&512)!=0,e?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,3,t,e))}function MY(n,e){var t;t=(n.Bb&512)!=0,e?n.Bb|=512:n.Bb&=-513,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,9,t,e))}function w5e(n,e,t){var i,r;return r=n.a,n.a=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,5,r,n.a),t?GZ(t,i):t=i),t}function m5(n,e){var t;return n.b==-1&&n.a&&(t=n.a.pk(),n.b=t?n.c.Hh(n.a.Lj(),t):At(n.c.Dh(),n.a)),n.c.yh(n.b,e)}function hKn(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)if(t=u(ue(i),29),x(e)===x(t))return!0;return!1}function TY(n){var e,t;return e=n.k,e==(Vn(),Zt)?(t=u(v(n,(W(),gc)),64),t==(en(),Xn)||t==ae):!1}function lKn(n){var e;return e=wJ(n),ob(e.a,0)?(A0(),A0(),ZF):(A0(),new SN(NL(e.a,0)?BJ(e)/id(e.a):0))}function Dk(n,e){this.e=e,this.a=Qxn(n),this.a<54?this.f=id(n):this.c=(dh(),Ec(n,0)>=0?ia(n):U6(ia(n1(n))))}function aKn(n,e,t,i,r,c){this.e=new Z,this.f=(gr(),Q8),nn(this.e,n),this.d=e,this.a=t,this.b=i,this.f=r,this.c=c}function g5e(n,e,t){n.n=Wa(Ra,[J,PK],[376,28],14,[t,wi(y.Math.ceil(e/32))],2),n.o=e,n.p=t,n.j=e-1>>1,n.k=t-1>>1}function dKn(n){return n-=n>>1&1431655765,n=(n>>2&858993459)+(n&858993459),n=(n>>4)+n&252645135,n+=n>>8,n+=n>>16,n&63}function bKn(n,e){var t,i;for(i=new ne(n);i.e!=i.i.gc();)if(t=u(ue(i),142),x(e)===x(t))return!0;return!1}function p5e(n,e,t){var i,r,c;return c=(r=Tm(n.b,e),r),c&&(i=u(qS(hk(n,c),""),29),i)?Jnn(n,i,e,t):null}function rx(n,e,t){var i,r,c;return c=(r=Tm(n.b,e),r),c&&(i=u(qS(hk(n,c),""),29),i)?Qnn(n,i,e,t):null}function m5e(n,e){var t;if(t=Ng(n.i,e),t==null)throw T(new eh("Node did not exist in input."));return _Q(e,t),null}function v5e(n,e){var t;if(t=oy(n,e),L(t,331))return u(t,35);throw T(new Gn(ba+e+"' is not a valid attribute"))}function v5(n,e,t){var i;if(i=n.gc(),e>i)throw T(new F0(e,i));if(n.Si()&&n.Hc(t))throw T(new Gn(Vy));n.Gi(e,t)}function k5e(n,e){e.Ug("Sort end labels",1),qt(ut(rc(new Cn(null,new On(n.b,16)),new Hwn),new qwn),new Uwn),e.Vg()}function ci(){ci=R,Jf=new p7(n8,0),Xr=new p7(f3,1),Kr=new p7(s3,2),Wf=new p7(_K,3),us=new p7("UP",4)}function $k(){$k=R,XO=new sN("P1_STRUCTURE",0),VO=new sN("P2_PROCESSING_ORDER",1),WO=new sN("P3_EXECUTION",2)}function wKn(){wKn=R,Bre=ah(ah(h6(ah(ah(h6(Fe(new ii,(Qp(),t9),(F5(),YH)),i9),lln),dln),r9),oln),bln)}function y5e(n){switch(u(v(n,(W(),Ad)),311).g){case 1:U(n,Ad,(vl(),E3));break;case 2:U(n,Ad,(vl(),k2))}}function j5e(n){switch(n){case 0:return new rjn;case 1:return new tjn;case 2:return new ijn;default:throw T(new W9)}}function gKn(n){switch(n.g){case 2:return Xr;case 1:return Kr;case 4:return Wf;case 3:return us;default:return Jf}}function CY(n,e){switch(n.b.g){case 0:case 1:return e;case 2:case 3:return new Ho(e.d,0,e.a,e.b);default:return null}}function SY(n){switch(n.g){case 1:return Wn;case 2:return Xn;case 3:return Zn;case 4:return ae;default:return sc}}function xk(n){switch(n.g){case 1:return ae;case 2:return Wn;case 3:return Xn;case 4:return Zn;default:return sc}}function BC(n){switch(n.g){case 1:return Zn;case 2:return ae;case 3:return Wn;case 4:return Xn;default:return sc}}function PY(n,e,t,i){switch(e){case 1:return!n.n&&(n.n=new q(Sr,n,1,7)),n.n;case 2:return n.k}return kZ(n,e,t,i)}function k5(n,e,t){var i,r;return n.Pj()?(r=n.Qj(),i=lR(n,e,t),n.Jj(n.Ij(7,Y(t),i,e,r)),i):lR(n,e,t)}function cx(n,e){var t,i,r;n.d==null?(++n.e,--n.f):(r=e.ld(),t=e.Bi(),i=(t&et)%n.d.length,o4e(n,i,BHn(n,i,t,r)))}function fm(n,e){var t;t=(n.Bb&Gs)!=0,e?n.Bb|=Gs:n.Bb&=-1025,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,10,t,e))}function hm(n,e){var t;t=(n.Bb&vw)!=0,e?n.Bb|=vw:n.Bb&=-4097,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,12,t,e))}function lm(n,e){var t;t=(n.Bb&$u)!=0,e?n.Bb|=$u:n.Bb&=-8193,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,15,t,e))}function am(n,e){var t;t=(n.Bb&Cw)!=0,e?n.Bb|=Cw:n.Bb&=-2049,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,11,t,e))}function E5e(n){var e;n.g&&(e=n.c.kg()?n.f:n.a,hen(e.a,n.o,!0),hen(e.a,n.o,!1),U(n.o,(cn(),Ft),(Ai(),Ud)))}function M5e(n){var e;if(!n.a)throw T(new Ar("Cannot offset an unassigned cut."));e=n.c-n.b,n.b+=e,_On(n,e),FOn(n,e)}function T5e(n,e){var t;if(t=ee(n.k,e),t==null)throw T(new eh("Port did not exist in input."));return _Q(e,t),null}function C5e(n){var e,t;for(t=xHn(jo(n)).Kc();t.Ob();)if(e=Ae(t.Pb()),_5(n,e))return S3e((mMn(),Koe),e);return null}function pKn(n){var e,t;for(t=n.p.a.ec().Kc();t.Ob();)if(e=u(t.Pb(),218),e.f&&n.b[e.c]<-1e-10)return e;return null}function S5e(n){var e,t;for(t=z1(new x1,91),e=!0;n.Ob();)e||(t.a+=ur),e=!1,Lc(t,n.Pb());return(t.a+="]",t).a}function P5e(n){var e,t,i;for(e=new Z,i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),602),hi(e,u(t.Cf(),16));return e}function ux(n,e){var t,i;for(i=new M(e);i.a<i.c.c.length;)t=u(E(i),42),du(n.b.b,t.b),Age(u(t.a,194),u(t.b,86))}function I5e(n,e){var t;return t=bt(n.b.c,e.b.c),t!=0||(t=bt(n.a.a,e.a.a),t!=0)?t:bt(n.a.b,e.a.b)}function bt(n,e){return n<e?-1:n>e?1:n==e?n==0?bt(1/n,1/e):0:isNaN(n)?isNaN(e)?0:1:-1}function O5e(n){var e;return e=n.a[n.c-1&n.a.length-1],e==null?null:(n.c=n.c-1&n.a.length-1,$t(n.a,n.c,null),e)}function A5e(n){var e,t,i;for(i=0,t=n.length,e=0;e<t;e++)n[e]==32||n[e]==13||n[e]==10||n[e]==9||(n[i++]=n[e]);return i}function L5e(n,e){var t,i,r,c,s;for(s=ru(n.e.Dh(),e),c=0,t=u(n.g,124),r=0;r<n.i;++r)i=t[r],s.am(i.Lk())&&++c;return c}function N5e(n,e,t){var i,r;for(r=L(e,102)&&u(e,19).Bb&hr?new dN(e,n):new Y4(e,n),i=0;i<t;++i)iS(r);return r}function mKn(n,e,t){var i,r;if(n.c)rnn(n.c,e,t);else for(r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),163),mKn(i,e,t)}function D5e(n,e,t){var i,r;return i=u(e.of(n.a),34),r=u(t.of(n.a),34),i!=null&&r!=null?mk(i,r):i!=null?-1:r!=null?1:0}function IY(n,e){var t,i,r;for(Jn(e),t=!1,i=new M(n);i.a<i.c.c.length;)r=E(i),e.Hc(r)&&(q6(i),t=!0);return t}function jn(n){var e,t,i,r;return t=(e=u(of((i=n.Rm,r=i.f,r==ke?i:r)),9),new _o(e,u(xs(e,e.length),9),0)),_s(t,n),t}function FC(n){var e,t;return t=u(v(n,(cn(),Lo)),88),t==(ci(),Jf)?(e=$(B(v(n,oO))),e>=1?Xr:Wf):t}function $5e(n){switch(u(v(n,(cn(),$l)),223).g){case 1:return new Ipn;case 3:return new Dpn;default:return new Ppn}}function ta(n){if(n.c)ta(n.c);else if(n.d)throw T(new Ar("Stream already terminated, can't be modified or used"))}function $b(n,e,t){var i;return i=n.a.get(e),n.a.set(e,t===void 0?null:t),i===void 0?(++n.c,++n.b.g):++n.d,i}function x5e(n,e,t){var i,r;for(r=n.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),10),Ek(t,u(sn(e,i.p),16)))return i;return null}function OY(n,e,t){var i;return i=0,e&&(vg(n.a)?i+=e.f.a/2:i+=e.f.b/2),t&&(vg(n.a)?i+=t.f.a/2:i+=t.f.b/2),i}function R5e(n,e,t){var i;i=t,!i&&(i=QV(new op,0)),i.Ug(IXn,2),jBn(n.b,e,i.eh(1)),YOe(n,e,i.eh(1)),eNe(e,i.eh(1)),i.Vg()}function AY(n,e,t){var i,r;return i=(K1(),r=new yE,r),aC(i,e),lC(i,t),n&&ve((!n.a&&(n.a=new ti(xo,n,5)),n.a),i),i}function ox(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (identifier: ",Er(e,n.k),e.a+=")",e.a)}function sx(n,e){var t;t=(n.Bb&kc)!=0,e?n.Bb|=kc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,18,t,e))}function LY(n,e){var t;t=(n.Bb&kc)!=0,e?n.Bb|=kc:n.Bb&=-32769,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,18,t,e))}function dm(n,e){var t;t=(n.Bb&wh)!=0,e?n.Bb|=wh:n.Bb&=-16385,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,16,t,e))}function NY(n,e){var t;t=(n.Bb&hr)!=0,e?n.Bb|=hr:n.Bb&=-65537,n.Db&4&&!(n.Db&1)&&it(n,new Bs(n,1,20,t,e))}function DY(n){var e;return e=F(fs,gh,28,2,15,1),n-=hr,e[0]=(n>>10)+Py&ui,e[1]=(n&1023)+56320&ui,ws(e,0,e.length)}function K5e(n){var e;return e=sw(n),e>34028234663852886e22?Pt:e<-34028234663852886e22?li:e}function nr(n,e){var t;return Vr(n)&&Vr(e)&&(t=n+e,Sy<t&&t<vd)?t:Y1(Gve(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function er(n,e){var t;return Vr(n)&&Vr(e)&&(t=n*e,Sy<t&&t<vd)?t:Y1(FOe(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function bs(n,e){var t;return Vr(n)&&Vr(e)&&(t=n-e,Sy<t&&t<vd)?t:Y1(Yxn(Vr(n)?ds(n):n,Vr(e)?ds(e):e))}function uc(n,e){var t;return n.i||Snn(n),t=u(Mr(n.g,e),42),t?new Jl(n.j,u(t.a,17).a,u(t.b,17).a):(Ln(),Ln(),sr)}function B5e(n){return Y$(),_n(),!!(yKn(u(n.a,86).j,u(n.b,88))||u(n.a,86).d.e!=0&&yKn(u(n.a,86).j,u(n.b,88)))}function F5e(n,e){return Sn(e.b&&e.c?td(e.b)+"->"+td(e.c):"e_"+mt(e),n.b&&n.c?td(n.b)+"->"+td(n.c):"e_"+mt(n))}function _5e(n,e){return Sn(e.b&&e.c?td(e.b)+"->"+td(e.c):"e_"+mt(e),n.b&&n.c?td(n.b)+"->"+td(n.c):"e_"+mt(n))}function xb(n,e){return Cf(),Fs(fa),y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:n<e?-1:n>e?1:sb(isNaN(n),isNaN(e))}function El(){El=R,hU=new kM(n8,0),Yj=new kM("POLYLINE",1),Bv=new kM("ORTHOGONAL",2),R3=new kM("SPLINES",3)}function _C(){_C=R,l1n=new uN("ASPECT_RATIO_DRIVEN",0),Oq=new uN("MAX_SCALE_DRIVEN",1),h1n=new uN("AREA_DRIVEN",2)}function H5e(n,e,t){var i;try{l6e(n,e,t)}catch(r){throw r=Ot(r),L(r,606)?(i=r,T(new DJ(i))):T(r)}return e}function q5e(n){var e,t,i;for(t=0,i=n.length;t<i;t++)if(n[t]==null)throw T(new fp("at index "+t));return e=n,new Fu(e)}function Ml(n){var e,t,i;for(e=new Z,i=new M(n.j);i.a<i.c.c.length;)t=u(E(i),12),nn(e,t.b);return Pe(e),new S6(e)}function ji(n){var e,t,i;for(e=new Z,i=new M(n.j);i.a<i.c.c.length;)t=u(E(i),12),nn(e,t.e);return Pe(e),new S6(e)}function Qt(n){var e,t,i;for(e=new Z,i=new M(n.j);i.a<i.c.c.length;)t=u(E(i),12),nn(e,t.g);return Pe(e),new S6(e)}function U5e(n,e){var t,i,r;for(r=new de,i=e.vc().Kc();i.Ob();)t=u(i.Pb(),44),Ve(r,t.ld(),Pve(n,u(t.md(),15)));return r}function G5e(n){var e,t;for(t=DMe(jo(G0(n))).Kc();t.Ob();)if(e=Ae(t.Pb()),_5(n,e))return P3e((gMn(),Boe),e);return null}function fx(n,e){var t,i,r;for(r=0,i=u(e.Kb(n),20).Kc();i.Ob();)t=u(i.Pb(),18),on(un(v(t,(W(),zf))))||++r;return r}function vKn(n){var e,t,i,r;for(e=new XSn(n.Rd().gc()),r=0,i=Fp(n.Rd().Kc());i.Ob();)t=i.Pb(),I2e(e,t,Y(r++));return Pje(e.a)}function hx(n,e,t,i){var r,c;return Jn(i),Jn(t),r=n.xc(e),c=r==null?t:cMn(u(r,15),u(t,16)),c==null?n.Bc(e):n.zc(e,c),c}function z5e(n,e,t,i){var r,c,s;for(r=e+1;r<t;++r)for(c=r;c>e&&i.Ne(n[c-1],n[c])>0;--c)s=n[c],$t(n,c,n[c-1]),$t(n,c-1,s)}function vn(n,e){var t,i,r,c,s;if(t=e.f,s1(n.c.d,t,e),e.g!=null)for(r=e.g,c=0,s=r.length;c<s;++c)i=r[c],s1(n.c.e,i,e)}function kKn(n,e){var t,i;for(t=ge(n,0);t.b!=t.d.c;){if(i=J9(B(be(t))),i==e)return;if(i>e){wLn(t);break}}_7(t,e)}function X5e(n,e){var t,i,r;i=Ig(e),r=$(B(rw(i,(cn(),Ws)))),t=y.Math.max(0,r/2-.5),I5(e,t,1),nn(n,new DMn(e,t))}function V5e(n,e,t){var i;t.Ug("Straight Line Edge Routing",1),t.dh(e,$rn),i=u(z(e,(Cg(),L2)),27),iGn(n,i),t.dh(e,LP)}function $Y(n,e){n.n.c.length==0&&nn(n.n,new DT(n.s,n.t,n.i)),nn(n.b,e),wZ(u(sn(n.n,n.n.c.length-1),209),e),BUn(n,e)}function y5(n){var e;this.a=(e=u(n.e&&n.e(),9),new _o(e,u(xs(e,e.length),9),0)),this.b=F(ki,Kn,1,this.a.a.length,5,1)}function Jr(n){var e;return Array.isArray(n)&&n.Tm===Q2?Xa(wo(n))+"@"+(e=mt(n)>>>0,e.toString(16)):n.toString()}function W5e(n,e){return n.h==Cy&&n.m==0&&n.l==0?(e&&(wa=Yc(0,0,0)),nCn((B4(),lun))):(e&&(wa=Yc(n.l,n.m,n.h)),Yc(0,0,0))}function J5e(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function yKn(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return!1}}function xY(n,e,t,i){switch(e){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return PY(n,e,t,i)}function HC(n,e){if(e==n.d)return n.e;if(e==n.e)return n.d;throw T(new Gn("Node "+e+" not part of edge "+n))}function Q5e(n,e){var t;if(t=oy(n.Dh(),e),L(t,102))return u(t,19);throw T(new Gn(ba+e+"' is not a valid reference"))}function Jo(n,e,t,i){if(e<0)een(n,t,i);else{if(!t.rk())throw T(new Gn(ba+t.xe()+b8));u(t,69).wk().Ck(n,n.hi(),e,i)}}function eo(n){var e;if(n.b){if(eo(n.b),n.b.d!=n.c)throw T(new Ko)}else n.d.dc()&&(e=u(n.f.c.xc(n.e),16),e&&(n.d=e))}function Y5e(n){K0();var e,t,i,r;for(e=n.o.b,i=u(u(ot(n.r,(en(),ae)),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r=t.e,r.b+=e}function Z5e(n){var e,t,i;for(this.a=new rh,i=new M(n);i.a<i.c.c.length;)t=u(E(i),16),e=new cIn,Zme(e,t),fi(this.a,e)}function n8e(n,e){var t,i,r;for(i=ePe(n,e),r=i[i.length-1]/2,t=0;t<i.length;t++)if(i[t]>=r)return e.c+t;return e.c+e.b.gc()}function e8e(n,e){m4();var t,i,r,c;for(i=NDn(n),r=e,R4(i,0,i.length,r),t=0;t<i.length;t++)c=H7e(n,i[t],t),t!=c&&k5(n,t,c)}function lx(n,e,t){var i,r;for(i=0,r=n.length;i<r;i++)if(B$((zn(i,n.length),n.charCodeAt(i)),e,t))return!0;return!1}function t8e(n,e){var t,i;for(i=n.e.a.ec().Kc();i.Ob();)if(t=u(i.Pb(),272),fje(e,t.d)||mEe(e,t.d))return!0;return!1}function RY(n,e,t,i,r){var c,s,f;for(s=r;e.b!=e.c;)c=u(Pp(e),10),f=u(uc(c,i).Xb(0),12),n.d[f.p]=s++,Fn(t.c,f);return s}function KY(n,e){var t,i,r,c,s,f;for(i=0,t=0,c=e,s=0,f=c.length;s<f;++s)r=c[s],r>0&&(i+=r,++t);return t>1&&(i+=n.d*(t-1)),i}function i8e(n){var e,t,i,r,c;return c=nnn(n),t=Z9(n.c),i=!t,i&&(r=new _a,bf(c,"knownLayouters",r),e=new lyn(r),qi(n.c,e)),c}function BY(n){var e,t,i;for(i=new Hl,i.a+="[",e=0,t=n.gc();e<t;)Er(i,A6(n.Vi(e))),++e<t&&(i.a+=ur);return i.a+="]",i.a}function r8e(n){return n.e==null?n:(!n.c&&(n.c=new jR((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,null)),n.c)}function c8e(n){return n.k!=(Vn(),zt)?!1:Ag(new Cn(null,new pb(new ie(ce(Qt(n).a.Kc(),new En)))),new mpn)}function Qo(n){var e,t;return L(n,307)?(t=t4e(u(n,307)),e=t,e):L(n,441)?u(n,441).a:L(n,59)?new Ijn(n):new Oz(n)}function u8e(n){var e;return n==null?!0:(e=n.length,e>0&&(zn(e-1,n.length),n.charCodeAt(e-1)==58)&&!lx(n,L9,N9))}function FY(n,e){var t;return x(n)===x(e)?!0:L(e,92)?(t=u(e,92),n.e==t.e&&n.d==t.d&&O3e(n,t.a)):!1}function zp(n){switch(en(),n.g){case 4:return Xn;case 1:return Zn;case 3:return ae;case 2:return Wn;default:return sc}}function o8e(n){var e,t;if(n.b)return n.b;for(t=Uf?null:n.d;t;){if(e=Uf?null:t.b,e)return e;t=Uf?null:t.d}return a4(),$un}function _Y(n){var e,t,i;for(i=$(B(n.a.of((He(),iA)))),t=new M(n.a.Sf());t.a<t.c.c.length;)e=u(E(t),695),tzn(n,e,i)}function s8e(n){var e,t,i,r;for(e=(n.j==null&&(n.j=(A4(),r=XF.me(n),Cke(r))),n.j),t=0,i=e.length;t<i;++t);}function ax(n,e){var t,i;for(i=new M(e);i.a<i.c.c.length;)t=u(E(i),42),nn(n.b.b,u(t.b,86)),_D(u(t.a,194),u(t.b,86))}function f8e(n,e,t){var i,r;for(r=n.a.b,i=r.c.length;i<t;i++)bb(r,0,new Nc(n.a));$i(e,u(sn(r,r.c.length-t),30)),n.b[e.p]=t}function h8e(n,e,t,i,r){ko(),qs(Ns(Ls(As(Ds(new hs,0),r.d.e-n),e),r.d)),qs(Ns(Ls(As(Ds(new hs,0),t-r.a.e),r.a),i))}function jKn(n,e){var t;return n.d?Zc(n.b,e)?u(ee(n.b,e),47):(t=e.dg(),Ve(n.b,e,t),t):e.dg()}function l8e(n){var e=n.e;function t(i){return!i||i.length==0?"":" "+i.join(`
`)}return e&&(e.stack||t(n[oK]))}function HY(n,e){switch(e){case 3:return n.f!=0;case 4:return n.g!=0;case 5:return n.i!=0;case 6:return n.j!=0}return HQ(n,e)}function EKn(n){switch(n.g){case 0:return new W4n;case 1:return new Y4n;default:throw T(new Gn(cB+(n.f!=null?n.f:""+n.g)))}}function a8e(n){switch(n.g){case 0:return new J4n;case 1:return new Q4n;default:throw T(new Gn(GB+(n.f!=null?n.f:""+n.g)))}}function d8e(n){switch(n.g){case 1:return new H4n;case 2:return new fSn;default:throw T(new Gn(GB+(n.f!=null?n.f:""+n.g)))}}function MKn(n){switch(n.g){case 0:return new rz;case 1:return new cjn;default:throw T(new Gn(xP+(n.f!=null?n.f:""+n.g)))}}function dx(){ZZ();var n,e,t;t=hDe+++Date.now(),n=wi(y.Math.floor(t*Oy))&YS,e=wi(t-n*Etn),this.a=n^1502,this.b=e^NK}function Yo(){Yo=R,Ej=new h7(kh,0),_8=new h7("FIRST",1),ya=new h7(GXn,2),H8=new h7("LAST",3),xw=new h7(zXn,4)}function qC(){qC=R,bU=new EM(Ern,0),ydn=new EM("GROUP_DEC",1),Edn=new EM("GROUP_MIXED",2),jdn=new EM("GROUP_INC",3)}function b8e(n,e){var t,i,r,c;e&&(r=yl(e,"x"),t=new tyn(n),H4(t.a,(Jn(r),r)),c=yl(e,"y"),i=new ryn(n),U4(i.a,(Jn(c),c)))}function w8e(n,e){var t,i,r,c;e&&(r=yl(e,"x"),t=new uyn(n),_4(t.a,(Jn(r),r)),c=yl(e,"y"),i=new oyn(n),q4(i.a,(Jn(c),c)))}function g8e(n,e){var t,i,r,c;for(r=new Gc(e.gc()),i=e.Kc();i.Ob();)t=i.Pb(),c=OR(n,u(t,58)),c&&Fn(r.c,c);return r}function iw(n,e,t){var i,r;for(r=n.Kc();r.Ob();)if(i=r.Pb(),x(e)===x(i)||e!=null&&rt(e,i))return t&&r.Qb(),!0;return!1}function TKn(n){var e,t,i;return t=n.jh(),t?(e=n.Eh(),L(e,167)&&(i=TKn(u(e,167)),i!=null)?i+"."+t:t):null}function p8e(n){var e,t,i;return n.e==0?0:(e=n.d<<5,t=n.a[n.d-1],n.e<0&&(i=Oxn(n),i==n.d-1&&(--t,t=t|0)),e-=iy(t),e)}function m8e(n){var e,t,i;return n<fI.length?fI[n]:(t=n>>5,e=n&31,i=F(ye,_e,28,t+1,15,1),i[t]=1<<e,new Ya(1,t+1,i))}function CKn(n,e){var t,i;if(e){for(t=0;t<n.i;++t)if(i=u(n.g[t],378),i.mj(e))return!1;return ve(n,e)}else return!1}function qY(n,e,t){var i,r;if(++n.j,t.dc())return!1;for(r=t.Kc();r.Ob();)i=r.Pb(),n.qj(e,n.Zi(e,i)),++e;return!0}function v8e(n,e,t,i){var r,c;if(c=t-e,c<3)for(;c<3;)n*=10,++c;else{for(r=1;c>3;)r*=10,--c;n=(n+(r>>1))/r|0}return i.i=n,!0}function At(n,e){var t,i,r;if(t=(n.i==null&&bh(n),n.i),i=e.Lj(),i!=-1){for(r=t.length;i<r;++i)if(t[i]==e)return i}return-1}function k8e(n){var e,t,i,r,c;for(t=u(n.g,689),i=n.i-1;i>=0;--i)for(e=t[i],r=0;r<i;++r)if(c=t[r],LUn(n,e,c)){Jp(n,i);break}}function UY(n){var e,t,i,r;for(e=new _a,r=new J3(n.b.Kc());r.b.Ob();)i=u(r.b.Pb(),701),t=xje(i),jwe(e,e.a.length,t);return e.a}function GY(n){var e;return!n.c&&(n.c=new p0n),Yt(n.d,new v0n),vSe(n),e=hSe(n),qt(new Cn(null,new On(n.d,16)),new D9n(n)),e}function y8e(n,e){e.Ug("End label post-processing",1),qt(ut(rc(new Cn(null,new On(n.b,16)),new Dwn),new $wn),new xwn),e.Vg()}function zY(n){bx(),this.c=Af(S(C(IDe,1),Kn,845,0,[Jte])),this.b=new de,this.a=n,Ve(this.b,EO,1),nu(Qte,new Dkn(this))}function SKn(n,e,t){H$n(),njn.call(this),this.a=Wa(zQn,[J,Dtn],[603,217],0,[dI,f_],2),this.c=new mp,this.g=n,this.f=e,this.d=t}function XY(n,e){this.n=Wa(Ra,[J,PK],[376,28],14,[e,wi(y.Math.ceil(n/32))],2),this.o=n,this.p=e,this.j=n-1>>1,this.k=e-1>>1}function j8e(n){YT(),u(n.of((He(),Ca)),181).Hc((io(),hA))&&(u(n.of(Ww),181).Fc((zu(),K3)),u(n.of(Ca),181).Mc(hA))}function PKn(n){var e,t;e=n.d==(Yp(),dv),t=UZ(n),e&&!t||!e&&t?U(n.a,(cn(),Ch),(Bh(),Uj)):U(n.a,(cn(),Ch),(Bh(),qj))}function bx(){bx=R,nM(),EO=(cn(),g0),Qte=Af(S(C(zq,1),jrn,149,0,[Cj,Ws,C2,w0,qw,IH,Sv,Pv,OH,X8,T2,Kd,S2]))}function E8e(n,e){var t;return t=u(Wr(n,qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),t.Qc(WPn(t.gc()))}function IKn(n,e){var t,i;if(i=new Y3(n.a.ad(e,!0)),i.a.gc()<=1)throw T(new rp);return t=i.a.ec().Kc(),t.Pb(),u(t.Pb(),40)}function M8e(n,e,t){var i,r;return i=$(n.p[e.i.p])+$(n.d[e.i.p])+e.n.b+e.a.b,r=$(n.p[t.i.p])+$(n.d[t.i.p])+t.n.b+t.a.b,r-i}function VY(n,e){var t;return n.i>0&&(e.length<n.i&&(t=gk(wo(e).c,n.i),e=t),Oc(n.g,0,e,0,n.i)),e.length>n.i&&$t(e,n.i,null),e}function UC(n){var e;return n.Db&64?p5(n):(e=new ls(p5(n)),e.a+=" (instanceClassName: ",Er(e,n.D),e.a+=")",e.a)}function GC(n){var e,t,i,r;for(r=0,t=0,i=n.length;t<i;t++)e=(zn(t,n.length),n.charCodeAt(t)),e<64&&(r=lf(r,Ks(1,e)));return r}function T8e(n,e,t){var i,r;for(i=vi(t,mr),r=0;Ec(i,0)!=0&&r<e;r++)i=nr(i,vi(n[r],mr)),n[r]=Se(i),i=wb(i,32);return Se(i)}function Rk(n,e){var t,i,r,c;for(c=ru(n.e.Dh(),e),t=u(n.g,124),r=0;r<n.i;++r)if(i=t[r],c.am(i.Lk()))return!1;return!0}function wx(n,e){var t,i,r;return n.f>0?(n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=BHn(n,r,i,e),t!=-1):!1}function OKn(n,e){var t,i;n.a=nr(n.a,1),n.c=y.Math.min(n.c,e),n.b=y.Math.max(n.b,e),n.d+=e,t=e-n.f,i=n.e+t,n.f=i-n.e-t,n.e=i}function WY(n,e){switch(e){case 3:Ib(n,0);return;case 4:Ob(n,0);return;case 5:eu(n,0);return;case 6:tu(n,0);return}vY(n,e)}function Rb(n,e){switch(e.g){case 1:return Mp(n.j,(Au(),Ron));case 2:return Mp(n.j,(Au(),Bon));default:return Ln(),Ln(),sr}}function JY(n){mb();var e;switch(e=n.Pc(),e.length){case 0:return qF;case 1:return new VN(Pe(e[0]));default:return new ID(q5e(e))}}function AKn(n,e){n.Xj();try{n.d.bd(n.e++,e),n.f=n.d.j,n.g=-1}catch(t){throw t=Ot(t),L(t,77)?T(new Ko):T(t)}}function gx(){gx=R,TU=new Cvn,zdn=new Svn,Xdn=new Pvn,Vdn=new Ivn,Wdn=new Ovn,Jdn=new Avn,Qdn=new Lvn,Ydn=new Nvn,Zdn=new Dvn}function zC(n,e){vX();var t,i;return t=O7((FE(),FE(),C8)),i=null,e==t&&(i=u(Dc(fun,n),624)),i||(i=new JIn(n),e==t&&Lr(fun,n,i)),i}function LKn(n){cw();var e;return(n.q?n.q:(Ln(),Ln(),Wh))._b((cn(),d0))?e=u(v(n,d0),203):e=u(v(Hi(n),z8),203),e}function rw(n,e){var t,i;return i=null,kt(n,(cn(),yO))&&(t=u(v(n,yO),96),t.pf(e)&&(i=t.of(e))),i==null&&(i=v(Hi(n),e)),i}function NKn(n,e){var t,i,r;return L(e,44)?(t=u(e,44),i=t.ld(),r=tw(n.Rc(),i),sh(r,t.md())&&(r!=null||n.Rc()._b(i))):!1}function gf(n,e){var t,i,r;return n.f>0&&(n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=$nn(n,r,i,e),t)?t.md():null}function Xc(n,e,t){var i,r,c;return n.Pj()?(i=n.i,c=n.Qj(),Lk(n,i,e),r=n.Ij(3,null,e,i,c),t?t.nj(r):t=r):Lk(n,n.i,e),t}function C8e(n,e,t){var i,r;return i=new ml(n.e,4,10,(r=e.c,L(r,90)?u(r,29):(An(),Os)),null,f1(n,e),!1),t?t.nj(i):t=i,t}function S8e(n,e,t){var i,r;return i=new ml(n.e,3,10,null,(r=e.c,L(r,90)?u(r,29):(An(),Os)),f1(n,e),!1),t?t.nj(i):t=i,t}function DKn(n){K0();var e;return e=new rr(u(n.e.of((He(),_2)),8)),n.B.Hc((io(),_v))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function ia(n){dh();var e,t;return t=Se(n),e=Se(U1(n,32)),e!=0?new HAn(t,e):t>10||t<0?new gl(1,t):kQn[t]}function Kk(n,e){var t;return Vr(n)&&Vr(e)&&(t=n%e,Sy<t&&t<vd)?t:Y1((Wen(Vr(n)?ds(n):n,Vr(e)?ds(e):e,!0),wa))}function j5(n,e){var t;bLe(e),t=u(v(n,(cn(),bO)),283),t&&U(n,bO,O7e(t)),zl(n.c),zl(n.f),qJ(n.d),qJ(u(v(n,mO),214))}function P8e(n){var e,t,i,r;for(i=uEe(n),Yt(i,BZn),r=n.d,r.c.length=0,t=new M(i);t.a<t.c.c.length;)e=u(E(t),466),hi(r,e.b)}function px(n){var e;n.c!=0&&(e=u(sn(n.a,n.b),294),e.b==1?(++n.b,n.b<n.a.c.length&&r9n(u(sn(n.a,n.b),294))):--e.b,--n.c)}function I8e(n){var e;e=n.a;do e=u(fe(new ie(ce(Qt(e).a.Kc(),new En))),18).d.i,e.k==(Vn(),Ti)&&nn(n.e,e);while(e.k==(Vn(),Ti))}function $Kn(n){this.e=F(ye,_e,28,n.length,15,1),this.c=F(so,Xh,28,n.length,16,1),this.b=F(so,Xh,28,n.length,16,1),this.f=0}function O8e(n){var e,t;for(n.j=F(Ii,Cr,28,n.p.c.length,15,1),t=new M(n.p);t.a<t.c.c.length;)e=u(E(t),10),n.j[e.p]=e.o.b/n.i}function A8e(n,e){var t,i,r,c;for(c=e.b.b,n.a=new Mt,n.b=F(ye,_e,28,c,15,1),t=0,r=ge(e.b,0);r.b!=r.d.c;)i=u(be(r),40),i.g=t++}function xKn(n,e,t){var i,r,c,s;for(c=e-n.e,s=t-n.f,r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),172),Hk(i,i.s+c,i.t+s);n.e=e,n.f=t}function Bk(n,e){var t,i;for(i=e.length,t=0;t<i;t+=2)xc(n,(zn(t,e.length),e.charCodeAt(t)),(zn(t+1,e.length),e.charCodeAt(t+1)))}function L8e(n,e){e.Ug("Min Size Postprocessing",1),ht(n,(_h(),Xw),y.Math.max($(B(z(n,Xw))),$(B(z(n,f9))))),e.Vg()}function QY(){QY=R,wdn=new fb(15),uoe=new Di((He(),M1),wdn),soe=new Di(qd,15),ooe=new Di(sU,Y(0)),coe=new Di(x2,Gm)}function go(){go=R,rE=new jM("PORTS",0),Gd=new jM("PORT_LABELS",1),iE=new jM("NODE_LABELS",2),Qw=new jM("MINIMUM_SIZE",3)}function XC(){XC=R,Kj=new rN("P1_WIDTH_APPROXIMATION",0),qO=new rN("P2_PACKING",1),Mq=new rN("P3_WHITESPACE_ELIMINATION",2)}function RKn(n){if(n.b==null){for(;n.a.Ob();)if(n.b=n.a.Pb(),!u(n.b,54).Jh())return!0;return n.b=null,!1}else return!0}function bm(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.Ne(e,c.d),t&&i==0)return c;i>=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function Fk(n,e,t){var i,r,c;for(r=null,c=n.b;c;){if(i=n.a.Ne(e,c.d),t&&i==0)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function N8e(n,e,t,i){var r,c,s;return r=!1,xAe(n.f,t,i)&&(e9e(n.f,n.a[e][t],n.a[e][i]),c=n.a[e],s=c[i],c[i]=c[t],c[t]=s,r=!0),r}function KKn(n,e,t){var i,r,c,s;for(r=u(ee(n.b,t),183),i=0,s=new M(e.j);s.a<s.c.c.length;)c=u(E(s),113),r[c.d.p]&&++i;return i}function YY(n,e,t){var i,r;i=u(Dc(Uv,e),122),r=u(Dc(B9,e),122),t?(Lr(Uv,n,i),Lr(B9,n,r)):(Lr(B9,n,i),Lr(Uv,n,r))}function BKn(n,e){var t,i,r,c;return t=e>>5,e&=31,r=n.d+t+(e==0?0:1),i=F(ye,_e,28,r,15,1),Aye(i,n.a,t,e),c=new Ya(n.e,r,i),J6(c),c}function D8e(n,e){var t,i,r;for(i=new ie(ce(Qt(n).a.Kc(),new En));pe(i);)if(t=u(fe(i),18),r=t.d.i,r.c==e)return!1;return!0}function ZY(n,e,t){var i,r,c,s,f;return s=n.k,f=e.k,i=t[s.g][f.g],r=B(rw(n,i)),c=B(rw(e,i)),y.Math.max((Jn(r),r),(Jn(c),c))}function $8e(){return Error.stackTraceLimit>0?(y.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function x8e(n,e){return Cf(),Cf(),Fs(fa),(y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:n<e?-1:n>e?1:sb(isNaN(n),isNaN(e)))>0}function nZ(n,e){return Cf(),Cf(),Fs(fa),(y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:n<e?-1:n>e?1:sb(isNaN(n),isNaN(e)))<0}function FKn(n,e){return Cf(),Cf(),Fs(fa),(y.Math.abs(n-e)<=fa||n==e||isNaN(n)&&isNaN(e)?0:n<e?-1:n>e?1:sb(isNaN(n),isNaN(e)))<=0}function mx(n,e){for(var t=0;!e[t]||e[t]=="";)t++;for(var i=e[t++];t<e.length;t++)!e[t]||e[t]==""||(i+=n+e[t]);return i}function _Kn(n){var e,t;return e=u(Un(n.a,4),129),e!=null?(t=F(yU,TF,424,e.length,0,1),Oc(e,0,t,0,e.length),t):Ooe}function HKn(n){var e,t,i,r,c;if(n==null)return null;for(c=new Z,t=z$(n),i=0,r=t.length;i<r;++i)e=t[i],nn(c,Rc(e,!0));return c}function qKn(n){var e,t,i,r,c;if(n==null)return null;for(c=new Z,t=z$(n),i=0,r=t.length;i<r;++i)e=t[i],nn(c,Rc(e,!0));return c}function UKn(n){var e,t,i,r,c;if(n==null)return null;for(c=new Z,t=z$(n),i=0,r=t.length;i<r;++i)e=t[i],nn(c,Rc(e,!0));return c}function GKn(n,e){var t,i,r;if(n.c)Ib(n.c,e);else for(t=e-ao(n),r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),163),GKn(i,ao(i)+t)}function zKn(n,e){var t,i,r;if(n.c)Ob(n.c,e);else for(t=e-Pu(n),r=new M(n.d);r.a<r.c.c.length;)i=u(E(r),163),zKn(i,Pu(i)+t)}function ws(n,e,t){var i,r,c,s;for(c=e+t,Ri(e,c,n.length),s="",r=e;r<c;)i=y.Math.min(r+1e4,c),s+=Ywe(n.slice(r,i)),r=i;return s}function eZ(n){switch(n.g){case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:return!0;default:return!1}}function o1(){o1=R,W_=new f7(rin,0),Lsn=new f7(VXn,1),J_=new f7(sB,2),pv=new f7(ein,3),gv=new f7("GREEDY_MODEL_ORDER",4)}function lh(){lh=R,k1=new gM(kh,0),_hn=new gM("NODES_AND_EDGES",1),_H=new gM("PREFER_EDGES",2),HH=new gM("PREFER_NODES",3)}function tZ(n,e,t,i,r,c){this.a=n,this.c=e,this.b=t,this.f=i,this.d=r,this.e=c,this.c>0&&this.b>0&&(this.g=cT(this.c,this.b,this.a))}function R8e(n,e){var t=n.a,i;e=String(e),t.hasOwnProperty(e)&&(i=t[e]);var r=(F$(),VF)[typeof i],c=r?r(i):bY(typeof i);return c}function wm(n){var e,t,i;if(i=null,e=Eh in n.a,t=!e,t)throw T(new eh("Every element must have an id."));return i=Zp(dl(n,Eh)),i}function Kb(n){var e,t;for(t=a_n(n),e=null;n.c==2;)Ze(n),e||(e=(nt(),nt(),new P6(2)),pd(e,t),t=e),t.Jm(a_n(n));return t}function VC(n,e){var t,i,r;return n._j(),i=e==null?0:mt(e),r=(i&et)%n.d.length,t=$nn(n,r,i,e),t?(V$n(n,t),t.md()):null}function XKn(n,e){return n.e>e.e?1:n.e<e.e?-1:n.d>e.d?n.e:n.d<e.d?-e.e:n.e*fY(n.a,e.a,n.d)}function VKn(n){return n>=48&&n<48+y.Math.min(10,10)?n-48:n>=97&&n<97?n-97+10:n>=65&&n<65?n-65+10:-1}function K8e(n,e){if(e.c==n)return e.d;if(e.d==n)return e.c;throw T(new Gn("Input edge is not connected to the input port."))}function B8e(n){if(JC(nv,n))return _n(),ov;if(JC(cF,n))return _n(),ga;throw T(new Gn("Expecting true or false"))}function iZ(n){switch(typeof n){case nK:return t1(n);case atn:return pp(n);case i3:return PSn(n);default:return n==null?0:lb(n)}}function ah(n,e){if(n.a<0)throw T(new Ar("Did not call before(...) or after(...) before calling add(...)."));return QX(n,n.a,e),n}function rZ(n){return $T(),L(n,162)?u(ee(hE,TQn),295).Rg(n):Zc(hE,wo(n))?u(ee(hE,wo(n)),295).Rg(n):null}function iu(n){var e,t;return n.Db&32||(t=(e=u(Un(n,16),29),se(e||n.ii())-se(n.ii())),t!=0&&Xp(n,32,F(ki,Kn,1,t,5,1))),n}function Xp(n,e,t){var i;n.Db&e?t==null?jMe(n,e):(i=Bx(n,e),i==-1?n.Eb=t:$t(cd(n.Eb),i,t)):t!=null&&GCe(n,e,t)}function F8e(n,e,t,i){var r,c;e.c.length!=0&&(r=$Te(t,i),c=xEe(e),qt(fC(new Cn(null,new On(c,1)),new N3n),new TOn(n,t,r,i)))}function _8e(n,e){var t,i,r,c;return i=n.a.length-1,t=e-n.b&i,c=n.c-e&i,r=n.c-n.b&i,ESn(t<r),t>=c?(B6e(n,e),-1):(K6e(n,e),1)}function WC(n){var e,t,i;if(i=n.Jh(),!i)for(e=0,t=n.Ph();t;t=t.Ph()){if(++e>IK)return t.Qh();if(i=t.Jh(),i||t==n)break}return i}function WKn(n,e){var t;return x(e)===x(n)?!0:!L(e,21)||(t=u(e,21),t.gc()!=n.gc())?!1:n.Ic(t)}function H8e(n,e){return n.e<e.e?-1:n.e>e.e?1:n.f<e.f?-1:n.f>e.f?1:mt(n)-mt(e)}function JC(n,e){return Jn(n),e==null?!1:Sn(n,e)?!0:n.length==e.length&&Sn(n.toLowerCase(),e.toLowerCase())}function Tl(n){var e,t;return Ec(n,-129)>0&&Ec(n,128)<0?(ZPn(),e=Se(n)+128,t=mun[e],!t&&(t=mun[e]=new vG(n)),t):new vG(n)}function dd(){dd=R,Aw=new aM(kh,0),Lon=new aM("INSIDE_PORT_SIDE_GROUPS",1),P_=new aM("GROUP_MODEL_ORDER",2),I_=new aM(ein,3)}function q8e(n){var e;return n.b||xhe(n,(e=$ae(n.e,n.a),!e||!Sn(cF,gf((!e.b&&(e.b=new lo((An(),ar),pc,e)),e.b),"qualified")))),n.c}function U8e(n,e){var t,i;for(t=(zn(e,n.length),n.charCodeAt(e)),i=e+1;i<n.length&&(zn(i,n.length),n.charCodeAt(i)==t);)++i;return i-e}function G8e(n,e){(!e&&console.groupCollapsed!=null?console.groupCollapsed:console.group??console.log).call(console,n)}function z8e(n,e,t,i){i==n,u(t.b,68),u(t.b,68),u(i.b,68),u(i.b,68).c.b,zJ(i,e,n)}function X8e(n){var e,t;for(e=new M(n.g);e.a<e.c.c.length;)u(E(e),568);t=new hqn(n.g,$(n.a),n.c),yLe(t),n.g=t.b,n.d=t.a}function JKn(n,e,t){var i,r,c;for(c=new M(t.a);c.a<c.c.c.length;)r=u(E(c),225),i=new NM(u(ee(n.a,r.b),68)),nn(e.a,i),JKn(n,i,r)}function V8e(n,e,t){var i,r,c;return i=u(N(no(n.a),e),89),c=(r=i.c,r||(An(),Zf)),(c.Vh()?ea(n.b,u(c,54)):c)==t?KS(i):F4(i,t),c}function cZ(n,e,t){e.b=y.Math.max(e.b,-t.a),e.c=y.Math.max(e.c,t.a-n.a),e.d=y.Math.max(e.d,-t.b),e.a=y.Math.max(e.a,t.b-n.b)}function uZ(n,e,t){this.c=n,this.f=new Z,this.e=new Ni,this.j=new oW,this.n=new oW,this.b=e,this.g=new Ho(e.c,e.d,e.b,e.a),this.a=t}function vx(n){var e,t,i,r;for(this.a=new rh,this.d=new ni,this.e=0,t=n,i=0,r=t.length;i<r;++i)e=t[i],!this.f&&(this.f=e),_D(this,e)}function QKn(n){dh(),n.length==0?(this.e=0,this.d=1,this.a=S(C(ye,1),_e,28,15,[0])):(this.e=1,this.d=n.length,this.a=n,J6(this))}function E5(n,e,t){njn.call(this),this.a=F(zQn,Dtn,217,(wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])).length,0,1),this.b=n,this.d=e,this.c=t}function W8e(n){var e,t,i,r,c,s;for(s=u(v(n,(W(),st)),12),U(s,jv,n.i.n.b),e=hh(n.e),i=e,r=0,c=i.length;r<c;++r)t=i[r],Oi(t,s)}function J8e(n){var e,t,i,r,c,s;for(t=u(v(n,(W(),st)),12),U(t,jv,n.i.n.b),e=hh(n.g),r=e,c=0,s=r.length;c<s;++c)i=r[c],Zi(i,t)}function Q8e(n,e){DD();var t,i;for(i=new ie(ce(Ml(n).a.Kc(),new En));pe(i);)if(t=u(fe(i),18),t.d.i==e||t.c.i==e)return t;return null}function YKn(n,e){var t,i;return t=e.qi(n.a),t&&(i=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),Qe)),i!=null)?i:e.xe()}function Y8e(n,e){var t,i;return t=e.qi(n.a),t&&(i=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),Qe)),i!=null)?i:e.xe()}function Z8e(n,e){var t,i;return t=jc(n.a.c.p,e.a.c.p),t!=0?t:(i=jc(n.a.d.i.p,e.a.d.i.p),i!=0?i:jc(e.a.d.p,n.a.d.p))}function n9e(n,e){var t,i,r,c;for(i=0,r=e.gc();i<r;++i)t=e.Tl(i),L(t,102)&&u(t,19).Bb&kc&&(c=e.Ul(i),c!=null&&OR(n,u(c,58)))}function ZKn(n,e){var t,i,r;if(nn(mI,n),e.Fc(n),t=u(ee(p_,n),21),t)for(r=t.Kc();r.Ob();)i=u(r.Pb(),27),qr(mI,i,0)!=-1||ZKn(i,e)}function e9e(n,e,t){var i,r;eR(n.e,e,t,(en(),Wn)),eR(n.i,e,t,Zn),n.a&&(r=u(v(e,(W(),st)),12),i=u(v(t,st),12),FD(n.g,r,i))}function nBn(n,e,t){var i,r,c;i=e.c.p,c=e.p,n.b[i][c]=new XOn(n,e),t&&(n.a[i][c]=new R7n(e),r=u(v(e,(W(),s0)),10),r&&In(n.d,r,e))}function t9e(n,e,t){var i,r,c,s;return c=e.j,s=t.j,c!=s?c.g-s.g:(i=n.f[e.p],r=n.f[t.p],i==0&&r==0?0:i==0?-1:r==0?1:bt(i,r))}function i9e(){var n;return cI!=0&&(n=Date.now(),n-hQn>2e3&&(hQn=n,uI=y.setTimeout(_he,10))),cI++==0?(ime((lz(),sun)),!0):!1}function r9e(n,e,t){var i;(LQn?(o8e(n),!0):NQn||$Qn?(a4(),!0):DQn&&(a4(),!1))&&(i=new aPn(e),i.b=t,aje(n,i))}function kx(n,e){var t;t=!n.A.Hc((go(),Gd))||n.q==(Ai(),qc),n.u.Hc((zu(),Rl))?t?XLe(n,e):UGn(n,e):n.u.Hc(Oa)&&(t?dLe(n,e):czn(n,e))}function eBn(n){var e;x(z(n,(He(),B2)))===x((jl(),uA))&&(St(n)?(e=u(z(St(n),B2),346),ht(n,B2,e)):ht(n,B2,E9))}function c9e(n){var e,t;return kt(n.d.i,(cn(),Mv))?(e=u(v(n.c.i,Mv),17),t=u(v(n.d.i,Mv),17),jc(e.a,t.a)>0):!1}function tBn(n,e,t){return new Ho(y.Math.min(n.a,e.a)-t/2,y.Math.min(n.b,e.b)-t/2,y.Math.abs(n.a-e.a)+t,y.Math.abs(n.b-e.b)+t)}function iBn(n){var e;this.d=new Z,this.j=new Ni,this.g=new Ni,e=n.g.b,this.f=u(v(Hi(e),(cn(),Lo)),88),this.e=$(B(nS(e,qw)))}function rBn(n){this.d=new Z,this.e=new Ql,this.c=F(ye,_e,28,(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,15,1),this.b=n}function oZ(n,e,t){var i;switch(i=t[n.g][e],n.g){case 1:case 3:return new V(0,i);case 2:case 4:return new V(i,0);default:return null}}function cBn(n,e,t){var i,r;r=u(z7(e.f),205);try{r.rf(n,t),hOn(e.f,r)}catch(c){throw c=Ot(c),L(c,103)?(i=c,T(i)):T(c)}}function uBn(n,e,t){var i,r,c,s,f,h;return i=null,f=Yen(z4(),e),c=null,f&&(r=null,h=Jen(f,t),s=null,h!=null&&(s=n.qf(f,h)),r=s,c=r),i=c,i}function yx(n,e,t,i){var r;if(r=n.length,e>=r)return r;for(e=e>0?e:0;e<r&&!B$((zn(e,n.length),n.charCodeAt(e)),t,i);e++);return e}function Rf(n,e){var t,i;for(i=n.c.length,e.length<i&&(e=qE(new Array(i),e)),t=0;t<i;++t)$t(e,t,n.c[t]);return e.length>i&&$t(e,i,null),e}function oBn(n,e){var t,i;for(i=n.a.length,e.length<i&&(e=qE(new Array(i),e)),t=0;t<i;++t)$t(e,t,n.a[t]);return e.length>i&&$t(e,i,null),e}function gm(n,e){var t,i;if(++n.j,e!=null&&(t=(i=n.a.Cb,L(i,99)?u(i,99).th():null),hMe(e,t))){Xp(n.a,4,t);return}Xp(n.a,4,u(e,129))}function u9e(n){var e;if(n==null)return null;if(e=lTe(Rc(n,!0)),e==null)throw T(new kL("Invalid hexBinary value: '"+n+"'"));return e}function QC(n,e,t){var i;e.a.length>0&&(nn(n.b,new PPn(e.a,t)),i=e.a.length,0<i?e.a=qo(e.a,0,0):0>i&&(e.a+=OCn(F(fs,gh,28,-i,15,1))))}function sBn(n,e,t){var i,r,c;if(!t[e.d])for(t[e.d]=!0,r=new M(xg(e));r.a<r.c.c.length;)i=u(E(r),218),c=HC(i,e),sBn(n,c,t)}function s1(n,e,t){var i,r,c;return r=u(ee(n.e,e),400),r?(c=bV(r,t),LCn(n,r),c):(i=new qV(n,e,t),Ve(n.e,e,i),rAn(i),null)}function o9e(n,e,t,i){var r,c,s;return r=new ml(n.e,1,13,(s=e.c,s||(An(),Zf)),(c=t.c,c||(An(),Zf)),f1(n,e),!1),i?i.nj(r):i=r,i}function jx(){return VS(),S(C(vYn,1),G,164,0,[pYn,gYn,mYn,sYn,oYn,fYn,aYn,lYn,hYn,wYn,bYn,dYn,cYn,rYn,uYn,tYn,eYn,iYn,ZQn,YQn,nYn,h_])}function pm(n){switch(n.g){case 4:return new V(0,-1);case 1:return new V(1,0);case 2:return new V(-1,0);default:return new V(0,1)}}function Ex(n){switch(n.g){case 1:return ci(),us;case 4:return ci(),Kr;case 2:return ci(),Xr;case 3:return ci(),Wf}return ci(),Jf}function s9e(n){var e;switch(e=n.hj(null),e){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}function pf(){pf=R,xn=new g7("PARENTS",0),pi=new g7("NODES",1),Ih=new g7("EDGES",2),Fd=new g7("PORTS",3),E1=new g7("LABELS",4)}function f9e(n,e,t){var i;switch(i=t.q.getFullYear()-ha+ha,i<0&&(i=-i),e){case 1:n.a+=i;break;case 2:Kh(n,i%100,2);break;default:Kh(n,i,e)}}function ge(n,e){var t,i;if(z0(e,n.b),e>=n.b>>1)for(i=n.c,t=n.b;t>e;--t)i=i.b;else for(i=n.a.a,t=0;t<e;++t)i=i.a;return new lPn(n,e,i)}function YC(){YC=R,u_=new Hz("NUM_OF_EXTERNAL_SIDES_THAN_NUM_OF_EXTENSIONS_LAST",0),Run=new Hz("CORNER_CASES_THAN_SINGLE_SIDE_LAST",1)}function fBn(n){this.b=new Z,this.e=new Z,this.d=n,this.a=!s4(ut(new Cn(null,new pb(new Lf(n.b))),new Z3(new vpn))).Bd((Va(),v3))}function hBn(n,e){var t,i,r,c;for(t=0,r=new M(e.a);r.a<r.c.c.length;)i=u(E(r),10),c=i.o.a+i.d.c+i.d.b+n.j,t=y.Math.max(t,c);return t}function lBn(n,e){var t,i,r;r=e.d.i,i=r.k,!(i==(Vn(),zt)||i==Gf)&&(t=new ie(ce(Qt(r).a.Kc(),new En)),pe(t)&&Ve(n.k,e,u(fe(t),18)))}function h9e(n,e){return kl(),bt((n.a.b==0?new V(n.c.e.a,n.c.e.b):u(p4(n.a),8)).b,(e.a.b==0?new V(e.c.e.a,e.c.e.b):u(p4(e.a),8)).b)}function l9e(n,e){return kl(),bt((n.a.b==0?new V(n.c.e.a,n.c.e.b):u(p4(n.a),8)).a,(e.a.b==0?new V(e.c.e.a,e.c.e.b):u(p4(e.a),8)).a)}function a9e(n,e){return kl(),bt((n.a.b==0?new V(n.b.e.a,n.b.e.b):u($s(n.a),8)).a,(e.a.b==0?new V(e.b.e.a,e.b.e.b):u($s(e.a),8)).a)}function d9e(n,e){return kl(),bt((n.a.b==0?new V(n.b.e.a,n.b.e.b):u($s(n.a),8)).b,(e.a.b==0?new V(e.b.e.a,e.b.e.b):u($s(e.a),8)).b)}function Kg(){Kg=R,Pa=new m7("DISTRIBUTED",0),eE=new m7("JUSTIFIED",1),adn=new m7("BEGIN",2),M9=new m7(qm,3),ddn=new m7("END",4)}function Mx(n,e){var t,i,r;return i=$n(n.Dh(),e),t=e-n.ji(),t<0?(r=n.Ih(i),r>=0?n.Wh(r):hR(n,i)):t<0?hR(n,i):u(i,69).wk().Bk(n,n.hi(),t)}function aBn(n){var e,t,i;for(i=(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),n.o),t=i.c.Kc();t.e!=t.i.gc();)e=u(t.Yj(),44),e.md();return rk(i)}function rn(n){var e;if(L(n.a,4)){if(e=rZ(n.a),e==null)throw T(new Ar(DVn+n.b+"'. "+NVn+(ll(lE),lE.k)+dcn));return e}else return n.a}function b9e(n,e){var t,i;if(n.j.length!=e.j.length)return!1;for(t=0,i=n.j.length;t<i;t++)if(!Sn(n.j[t],e.j[t]))return!1;return!0}function ue(n){var e;try{return e=n.i.Xb(n.e),n.Xj(),n.g=n.e++,e}catch(t){throw t=Ot(t),L(t,77)?(n.Xj(),T(new nc)):T(t)}}function Tx(n){var e;try{return e=n.c.Vi(n.e),n.Xj(),n.g=n.e++,e}catch(t){throw t=Ot(t),L(t,77)?(n.Xj(),T(new nc)):T(t)}}function ZC(n){var e,t,i,r;for(r=0,t=0,i=n.length;t<i;t++)e=(zn(t,n.length),n.charCodeAt(t)),e>=64&&e<128&&(r=lf(r,Ks(1,e-64)));return r}function nS(n,e){var t,i;return i=null,kt(n,(He(),$3))&&(t=u(v(n,$3),96),t.pf(e)&&(i=t.of(e))),i==null&&Hi(n)&&(i=v(Hi(n),e)),i}function w9e(n,e){var t;return t=u(v(n,(cn(),Rr)),75),yN(e,NZn)?t?vo(t):(t=new Tu,U(n,Rr,t)):t&&U(n,Rr,null),t}function M5(){M5=R,aon=(He(),qan),w_=Ean,LYn=x2,lon=M1,xYn=(aS(),Uun),$Yn=Hun,RYn=zun,DYn=_un,NYn=(Q$(),son),b_=IYn,hon=OYn,pI=AYn}function eS(n){switch(Dz(),this.c=new Z,this.d=n,n.g){case 0:case 2:this.a=HW(Aon),this.b=Pt;break;case 3:case 1:this.a=Aon,this.b=li}}function g9e(n){var e;Ep(u(v(n,(cn(),Ft)),101))&&(e=n.b,nHn((Nn(0,e.c.length),u(e.c[0],30))),nHn(u(sn(e,e.c.length-1),30)))}function p9e(n,e){e.Ug("Self-Loop post-processing",1),qt(ut(ut(rc(new Cn(null,new On(n.b,16)),new s2n),new f2n),new h2n),new l2n),e.Vg()}function dBn(n,e,t){var i,r;if(n.c)eu(n.c,n.c.i+e),tu(n.c,n.c.j+t);else for(r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),163),dBn(i,e,t)}function m9e(n){var e;if(n==null)return null;if(e=iNe(Rc(n,!0)),e==null)throw T(new kL("Invalid base64Binary value: '"+n+"'"));return e}function Zo(n,e){var t;t=n.fd(e);try{return t.Pb()}catch(i){throw i=Ot(i),L(i,112)?T(new Or("Can't get element "+e)):T(i)}}function bBn(n,e){var t,i,r;for(t=n.o,r=u(u(ot(n.r,e),21),87).Kc();r.Ob();)i=u(r.Pb(),117),i.e.a=y7e(i,t.a),i.e.b=t.b*$(B(i.b.of(bI)))}function v9e(n,e){var t,i,r;for(r=new Gc(e.gc()),i=e.Kc();i.Ob();)t=u(i.Pb(),293),t.c==t.f?Em(n,t,t.c):Hje(n,t)||Fn(r.c,t);return r}function wBn(n){var e;return e=new x1,e.a+="n",n.k!=(Vn(),zt)&&Be(Be((e.a+="(",e),PN(n.k).toLowerCase()),")"),Be((e.a+="_",e),qk(n)),e.a}function k9e(n,e){var t,i,r,c;return r=n.k,t=$(B(v(n,(W(),f0)))),c=e.k,i=$(B(v(e,f0))),c!=(Vn(),Zt)?-1:r!=Zt?1:t==i?0:t<i?-1:1}function y9e(n,e){var t,i;return t=u(u(ee(n.g,e.a),42).a,68),i=u(u(ee(n.g,e.b),42).a,68),J1(e.a,e.b)-J1(e.a,LX(t.b))-J1(e.b,LX(i.b))}function gBn(n,e){var t;switch(t=u(Mr(n.b,e),127).n,e.g){case 1:n.t>=0&&(t.d=n.t);break;case 3:n.t>=0&&(t.a=n.t)}n.C&&(t.b=n.C.b,t.c=n.C.c)}function T5(){T5=R,Dhn=new l7(Ern,0),BH=new l7(sB,1),FH=new l7("LINEAR_SEGMENTS",2),W8=new l7("BRANDES_KOEPF",3),J8=new l7(sVn,4)}function C5(){C5=R,fj=new hM(eP,0),wI=new hM(HK,1),gI=new hM(qK,2),hj=new hM(UK,3),fj.a=!1,wI.a=!0,gI.a=!1,hj.a=!0}function Vp(){Vp=R,uj=new fM(eP,0),cj=new fM(HK,1),oj=new fM(qK,2),sj=new fM(UK,3),uj.a=!1,cj.a=!0,oj.a=!1,sj.a=!0}function Wp(n,e,t,i){var r;return t>=0?n.Sh(e,t,i):(n.Ph()&&(i=(r=n.Fh(),r>=0?n.Ah(i):n.Ph().Th(n,-1-r,null,i))),n.Ch(e,t,i))}function sZ(n,e){switch(e){case 7:!n.e&&(n.e=new Dn(Vt,n,7,4)),me(n.e);return;case 8:!n.d&&(n.d=new Dn(Vt,n,8,5)),me(n.d);return}WY(n,e)}function ht(n,e,t){return t==null?(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),VC(n.o,e)):(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),zk(n.o,e,t)),n}function pBn(n,e){Ln();var t,i,r,c;for(t=n,c=e,L(n,21)&&!L(e,21)&&(t=e,c=n),r=t.Kc();r.Ob();)if(i=r.Pb(),c.Hc(i))return!1;return!0}function j9e(n,e,t,i){if(e.a<i.a)return!0;if(e.a==i.a){if(e.b<i.b)return!0;if(e.b==i.b&&n.b>t.b)return!0}return!1}function Cx(n,e){return Si(n)?!!iQn[e]:n.Sm?!!n.Sm[e]:$0(n)?!!tQn[e]:D0(n)?!!eQn[e]:!1}function E9e(n){var e;e=n.a;do e=u(fe(new ie(ce(ji(e).a.Kc(),new En))),18).c.i,e.k==(Vn(),Ti)&&n.b.Fc(e);while(e.k==(Vn(),Ti));n.b=Qo(n.b)}function mBn(n,e){var t,i,r;for(r=n,i=new ie(ce(ji(e).a.Kc(),new En));pe(i);)t=u(fe(i),18),t.c.i.c&&(r=y.Math.max(r,t.c.i.c.p));return r}function M9e(n,e){var t,i,r;for(r=0,i=u(u(ot(n.r,e),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r+=t.d.d+t.b.Mf().b+t.d.a,i.Ob()&&(r+=n.w);return r}function T9e(n,e){var t,i,r;for(r=0,i=u(u(ot(n.r,e),21),87).Kc();i.Ob();)t=u(i.Pb(),117),r+=t.d.b+t.b.Mf().a+t.d.c,i.Ob()&&(r+=n.w);return r}function vBn(n){var e,t,i,r;if(i=0,r=aw(n),r.c.length==0)return 1;for(t=new M(r);t.a<t.c.c.length;)e=u(E(t),27),i+=vBn(e);return i}function C9e(n){var e,t,i;for(i=n.c.a,n.p=(Pe(i),new _u(i)),t=new M(i);t.a<t.c.c.length;)e=u(E(t),10),e.p=fEe(e).a;Ln(),Yt(n.p,new Vpn)}function S9e(n,e,t){var i,r,c,s;return i=n.dd(e),i!=-1&&(n.Pj()?(c=n.Qj(),s=tT(n,i),r=n.Ij(4,s,null,i,c),t?t.nj(r):t=r):tT(n,i)),t}function cr(n,e,t){var i,r,c,s;return i=n.dd(e),i!=-1&&(n.Pj()?(c=n.Qj(),s=Jp(n,i),r=n.Ij(4,s,null,i,c),t?t.nj(r):t=r):Jp(n,i)),t}function P9e(n,e,t,i){var r,c,s;t.Xh(e)&&(dr(),a$(e)?(r=u(t.Mh(e),160),n9e(n,r)):(c=(s=e,s?u(i,54).gi(s):null),c&&Ofe(t.Mh(e),c)))}function tS(n,e,t,i){var r,c,s;return c=$n(n.Dh(),e),r=e-n.ji(),r<0?(s=n.Ih(c),s>=0?n.Lh(s,t,!0):Hb(n,c,t)):u(c,69).wk().yk(n,n.hi(),r,t,i)}function I9e(n,e,t,i){var r,c;c=e.pf((He(),F2))?u(e.of(F2),21):n.j,r=d5e(c),r!=(VS(),h_)&&(t&&!eZ(r)||dnn(aTe(n,r,i),e))}function O9e(n){switch(n.g){case 1:return Db(),rj;case 3:return Db(),ij;case 2:return Db(),a_;case 4:return Db(),l_;default:return null}}function A9e(n,e,t){if(n.e)switch(n.b){case 1:yge(n.c,e,t);break;case 0:jge(n.c,e,t)}else FLn(n.c,e,t);n.a[e.p][t.p]=n.c.i,n.a[t.p][e.p]=n.c.e}function kBn(n){var e,t;if(n==null)return null;for(t=F(Qh,J,199,n.length,0,2),e=0;e<t.length;e++)t[e]=u(I3e(n[e],n[e].length),199);return t}function iS(n){var e;if(W$(n))return aT(n),n.ul()&&(e=N5(n.e,n.b,n.c,n.a,n.j),n.j=e),n.g=n.a,++n.a,++n.c,n.i=0,n.j;throw T(new nc)}function L9e(n,e){var t,i,r,c;return c=n.o,t=n.p,c<t?c*=c:t*=t,i=c+t,c=e.o,t=e.p,c<t?c*=c:t*=t,r=c+t,i<r?-1:i==r?0:1}function f1(n,e){var t,i,r;if(r=eFn(n,e),r>=0)return r;if(n.ol()){for(i=0;i<n.i;++i)if(t=n.pl(u(n.g[i],58)),x(t)===x(e))return i}return-1}function Bg(n,e,t){var i,r;if(r=n.gc(),e>=r)throw T(new F0(e,r));if(n.Si()&&(i=n.dd(t),i>=0&&i!=e))throw T(new Gn(Vy));return n.Xi(e,t)}function fZ(n,e){if(this.a=u(Pe(n),253),this.b=u(Pe(e),253),n.Ed(e)>0||n==(dL(),_F)||e==(bL(),HF))throw T(new Gn("Invalid range: "+qLn(n,e)))}function yBn(n){var e,t;for(this.b=new Z,this.c=n,this.a=!1,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),10),this.a=this.a|e.k==(Vn(),zt)}function N9e(n,e){var t,i,r;for(t=hb(new za,n),r=new M(e);r.a<r.c.c.length;)i=u(E(r),125),qs(Ns(Ls(Ds(As(new hs,0),0),t),i));return t}function jBn(n,e,t){t.Ug("Compound graph preprocessor",1),n.a=new Mb,FGn(n,e,null),SOe(n,e),QTe(n),U(e,(W(),efn),n.a),n.a=null,Hu(n.b),t.Vg()}function EBn(n,e,t){var i,r,c;for(r=new ie(ce((e?ji(n):Qt(n)).a.Kc(),new En));pe(r);)i=u(fe(r),18),c=e?i.c.i:i.d.i,c.k==(Vn(),Sc)&&$i(c,t)}function D9e(n,e){var t,i,r;for(e.Ug("Untreeify",1),t=u(v(n,(pt(),yln)),15),r=t.Kc();r.Ob();)i=u(r.Pb(),65),Re(i.b.d,i),Re(i.c.b,i);e.Vg()}function $9e(n){var e,t,i;for(i=u(ot(n.a,(ow(),zI)),15).Kc();i.Ob();)t=u(i.Pb(),105),e=jZ(t),T4(n,t,e[0],(Lb(),c0),0),T4(n,t,e[1],u0,1)}function x9e(n){var e,t,i;for(i=u(ot(n.a,(ow(),XI)),15).Kc();i.Ob();)t=u(i.Pb(),105),e=jZ(t),T4(n,t,e[0],(Lb(),c0),0),T4(n,t,e[1],u0,1)}function cw(){cw=R,CO=new wM(kh,0),RH=new wM("PORT_POSITION",1),I2=new wM("NODE_SIZE_WHERE_SPACE_PERMITS",2),P2=new wM("NODE_SIZE",3)}function rS(){rS=R,Tq=new cN("INTERACTIVE_NODE_REORDERER",0),Sq=new cN("MIN_SIZE_PRE_PROCESSOR",1),Cq=new cN("MIN_SIZE_POST_PROCESSOR",2)}function Bh(){Bh=R,Xq=new v6("AUTOMATIC",0),qj=new v6(s3,1),Uj=new v6(f3,2),eA=new v6("TOP",3),ZO=new v6(xtn,4),nA=new v6(qm,5)}function hZ(n,e,t,i){Sm();var r,c;for(r=0,c=0;c<t;c++)r=nr(er(vi(e[c],mr),vi(i,mr)),vi(Se(r),mr)),n[c]=Se(r),r=U1(r,32);return Se(r)}function lZ(n,e,t){var i,r;for(r=0,i=0;i<f_;i++)r=y.Math.max(r,Z$(n.a[e.g][i],t));return e==(wf(),Wc)&&n.b&&(r=y.Math.max(r,n.b.b)),r}function cS(n,e){var t,i;if(iV(e>0),(e&-e)==e)return wi(e*to(n,31)*4656612873077393e-25);do t=to(n,31),i=t%e;while(t-i+(e-1)<0);return wi(i)}function R9e(n,e,t){switch(t.g){case 1:n.a=e.a/2,n.b=0;break;case 2:n.a=e.a,n.b=e.b/2;break;case 3:n.a=e.a/2,n.b=e.b;break;case 4:n.a=0,n.b=e.b/2}}function _k(n,e,t,i){var r,c;for(r=e;r<n.c.length;r++)if(c=(Nn(r,n.c.length),u(n.c[r],12)),t.Mb(c))Fn(i.c,c);else return r;return n.c.length}function Sx(n){switch(n.g){case 0:return null;case 1:return new Mxn;case 2:return new cz;default:throw T(new Gn(GB+(n.f!=null?n.f:""+n.g)))}}function Hk(n,e,t){var i,r;for(Vve(n,e-n.s,t-n.t),r=new M(n.n);r.a<r.c.c.length;)i=u(E(r),209),ffe(i,i.e+e-n.s),hfe(i,i.f+t-n.t);n.s=e,n.t=t}function K9e(n){var e,t,i,r,c;for(t=0,r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),125),i.d=t++;return e=Xye(n),c=null,e.c.length>1&&(c=N9e(n,e)),c}function MBn(n){var e;return e=$(B(z(n,(He(),Qj))))*y.Math.sqrt((!n.a&&(n.a=new q(Ye,n,10,11)),n.a).i),new V(e,e/$(B(z(n,rA))))}function Px(n){var e;return n.f&&n.f.Vh()&&(e=u(n.f,54),n.f=u(ea(n,e),84),n.f!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,9,8,e,n.f))),n.f}function Ix(n){var e;return n.i&&n.i.Vh()&&(e=u(n.i,54),n.i=u(ea(n,e),84),n.i!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,9,7,e,n.i))),n.i}function br(n){var e;return n.b&&n.b.Db&64&&(e=n.b,n.b=u(ea(n,e),19),n.b!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,9,21,e,n.b))),n.b}function uS(n,e){var t,i,r;n.d==null?(++n.e,++n.f):(i=e.Bi(),uCe(n,n.f+1),r=(i&et)%n.d.length,t=n.d[r],!t&&(t=n.d[r]=n.dk()),t.Fc(e),++n.f)}function aZ(n,e,t){var i;return e.tk()?!1:e.Ik()!=-2?(i=e.ik(),i==null?t==null:rt(i,t)):e.qk()==n.e.Dh()&&t==null}function oS(){var n;Mo(16,$zn),n=sxn(16),this.b=F(UF,My,303,n,0,1),this.c=F(UF,My,303,n,0,1),this.a=null,this.e=null,this.i=0,this.f=n-1,this.g=0}function Cl(n){mV.call(this),this.k=(Vn(),zt),this.j=(Mo(6,mw),new Gc(6)),this.b=(Mo(2,mw),new Gc(2)),this.d=new sL,this.f=new ZG,this.a=n}function B9e(n){var e,t;n.c.length<=1||(e=Pqn(n,(en(),ae)),w_n(n,u(e.a,17).a,u(e.b,17).a),t=Pqn(n,Wn),w_n(n,u(t.a,17).a,u(t.b,17).a))}function F9e(n,e,t){var i,r;for(r=n.a.b,i=r.c.length;i<t;i++)bb(r,r.c.length,new Nc(n.a));$i(e,(Nn(t-1,r.c.length),u(r.c[t-1],30))),n.b[e.p]=t}function TBn(n,e){var t,i,r;for(n.b[e.g]=1,i=ge(e.d,0);i.b!=i.d.c;)t=u(be(i),65),r=t.c,n.b[r.g]==1?Re(n.a,t):n.b[r.g]==2?n.b[r.g]=1:TBn(n,r)}function CBn(n,e,t,i){var r,c,s;for(r=u(ot(i?n.a:n.b,e),21),s=r.Kc();s.Ob();)if(c=u(s.Pb(),27),NS(n,t,c))return!0;return!1}function Ox(n){var e,t;for(t=new ne(n);t.e!=t.i.gc();)if(e=u(ue(t),89),e.e||(!e.d&&(e.d=new ti(jr,e,1)),e.d).i!=0)return!0;return!1}function Ax(n){var e,t;for(t=new ne(n);t.e!=t.i.gc();)if(e=u(ue(t),89),e.e||(!e.d&&(e.d=new ti(jr,e,1)),e.d).i!=0)return!0;return!1}function _9e(n){var e,t,i;for(e=0,i=new M(n.c.a);i.a<i.c.c.length;)t=u(E(i),10),e+=wl(new ie(ce(Qt(t).a.Kc(),new En)));return e/n.c.a.c.length}function Lx(){Lx=R,ean=(ER(),Q1n),nan=new fb(8),new Di((He(),M1),nan),new Di(qd,8),hue=W1n,Y1n=tue,Z1n=iue,fue=new Di(zj,(_n(),!1))}function H9e(n,e,t){var i;t.Ug("Shrinking tree compaction",1),on(un(v(e,(J4(),A8))))?(Jme(n,e.f),QDn(e.f,(i=e.c,i))):QDn(e.f,e.c),t.Vg()}function dZ(n,e,t,i){switch(e){case 7:return!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e;case 8:return!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d}return xY(n,e,t,i)}function Nx(n){var e;return n.a&&n.a.Vh()&&(e=u(n.a,54),n.a=u(ea(n,e),142),n.a!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,9,5,e,n.a))),n.a}function bd(n){return n<48||n>102?-1:n<=57?n-48:n<65?-1:n<=70?n-65+10:n<97?-1:n-97+10}function Dx(n,e){if(n==null)throw T(new fp("null key in entry: null="+e));if(e==null)throw T(new fp("null value in entry: "+n+"=null"))}function q9e(n,e){for(var t,i;n.Ob();)if(!e.Ob()||(t=n.Pb(),i=e.Pb(),!(x(t)===x(i)||t!=null&&rt(t,i))))return!1;return!e.Ob()}function SBn(n,e){var t;return t=S(C(Ii,1),Cr,28,15,[Z$(n.a[0],e),Z$(n.a[1],e),Z$(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function PBn(n,e){var t;return t=S(C(Ii,1),Cr,28,15,[$C(n.a[0],e),$C(n.a[1],e),$C(n.a[2],e)]),n.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function bZ(n,e,t){Ep(u(v(e,(cn(),Ft)),101))||(PJ(n,e,h1(e,t)),PJ(n,e,h1(e,(en(),ae))),PJ(n,e,h1(e,Xn)),Ln(),Yt(e.j,new D7n(n)))}function IBn(n){var e,t;for(n.c||sAe(n),t=new Tu,e=new M(n.a),E(e);e.a<e.c.c.length;)Re(t,u(E(e),418).a);return oe(t.b!=0),Xo(t,t.c.b),t}function U9e(n,e,t){var i,r,c,s,f;for(f=n.r+e,n.r+=e,n.d+=t,i=t/n.n.c.length,r=0,s=new M(n.n);s.a<s.c.c.length;)c=u(E(s),209),iTe(c,f,i,r),++r}function G9e(n){var e,t,i;for(n.b.a.$b(),n.a=F(aI,Kn,60,n.c.c.a.b.c.length,0,1),e=0,i=new M(n.c.c.a.b);i.a<i.c.c.length;)t=u(E(i),60),t.f=e++}function z9e(n){var e,t,i;for(n.b.a.$b(),n.a=F(M_,Kn,86,n.c.a.a.b.c.length,0,1),e=0,i=new M(n.c.a.a.b);i.a<i.c.c.length;)t=u(E(i),86),t.i=e++}function OBn(n){var e;if(e=x6e(n),!pe(n))throw T(new Or("position (0) must be less than the number of elements that remained ("+e+")"));return fe(n)}function X9e(n,e){var t;return n.a||(t=F(Ii,Cr,28,0,15,1),lg(n.b.a,new k9n(t)),Iyn(t,O$n(mE.prototype.Me,mE,[])),n.a=new oPn(t,n.d)),WT(n.a,e)}function ABn(n,e,t){var i;try{return Fg(n,e+n.j,t+n.k)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function V9e(n,e,t){var i;try{return DBn(n,e+n.j,t+n.k)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function W9e(n,e,t){var i;try{return $Bn(n,e+n.j,t+n.k)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function LBn(n){switch(n.g){case 1:return en(),Wn;case 4:return en(),Xn;case 3:return en(),Zn;case 2:return en(),ae;default:return en(),sc}}function J9e(n,e,t){e.k==(Vn(),zt)&&t.k==Ti&&(n.d=ix(e,(en(),ae)),n.b=ix(e,Xn)),t.k==zt&&e.k==Ti&&(n.d=ix(t,(en(),Xn)),n.b=ix(t,ae))}function $x(n,e){var t,i,r;for(r=uc(n,e),i=r.Kc();i.Ob();)if(t=u(i.Pb(),12),v(t,(W(),Xu))!=null||L6(new Lf(t.b)))return!0;return!1}function Q9e(n,e,t){t.Ug("Linear segments node placement",1),n.b=u(v(e,(W(),E2)),312),RNe(n,e),dOe(n,e),AOe(n,e),bNe(n),n.a=null,n.b=null,t.Vg()}function wZ(n,e){return eu(e,n.e+n.d+(n.c.c.length==0?0:n.b)),tu(e,n.f),n.a=y.Math.max(n.a,e.f),n.d+=e.g+(n.c.c.length==0?0:n.b),nn(n.c,e),!0}function Y9e(n,e,t){var i,r,c,s;for(s=0,i=t/n.a.c.length,c=new M(n.a);c.a<c.c.c.length;)r=u(E(c),172),Hk(r,r.s,r.t+s*i),U9e(r,n.d-r.r+e,i),++s}function Z9e(n,e){var t,i,r,c,s,f;for(r=e.length-1,s=0,f=0,i=0;i<=r;i++)c=e[i],t=pje(r,i)*pY(1-n,r-i)*pY(n,i),s+=c.a*t,f+=c.b*t;return new V(s,f)}function NBn(n,e){var t,i,r,c,s;for(t=e.gc(),n._i(n.i+t),c=e.Kc(),s=n.i,n.i+=t,i=s;i<n.i;++i)r=c.Pb(),O6(n,i,n.Zi(i,r)),n.Mi(i,r),n.Ni();return t!=0}function n7e(n,e,t){var i,r,c;return n.Pj()?(i=n.Ej(),c=n.Qj(),++n.j,n.qj(i,n.Zi(i,e)),r=n.Ij(3,null,e,i,c),t?t.nj(r):t=r):OSn(n,n.Ej(),e),t}function e7e(n,e,t){var i,r,c;return i=u(N(Pc(n.a),e),89),c=(r=i.c,L(r,90)?u(r,29):(An(),Os)),(c.Db&64?ea(n.b,c):c)==t?KS(i):F4(i,t),c}function t7e(n){var e;return n==null?null:new H1((e=Rc(n,!0),e.length>0&&(zn(0,e.length),e.charCodeAt(0)==43)?(zn(1,e.length+1),e.substr(1)):e))}function i7e(n){var e;return n==null?null:new H1((e=Rc(n,!0),e.length>0&&(zn(0,e.length),e.charCodeAt(0)==43)?(zn(1,e.length+1),e.substr(1)):e))}function gZ(n,e,t,i,r,c,s,f){var h,l;i&&(h=i.a[0],h&&gZ(n,e,t,h,r,c,s,f),qx(n,t,i.d,r,c,s,f)&&e.Fc(i),l=i.a[1],l&&gZ(n,e,t,l,r,c,s,f))}function Fg(n,e,t){try{return ob(M$(n,e,t),1)}catch(i){throw i=Ot(i),L(i,333)?T(new Or(GK+n.o+"*"+n.p+zK+e+ur+t+XK)):T(i)}}function DBn(n,e,t){try{return ob(M$(n,e,t),0)}catch(i){throw i=Ot(i),L(i,333)?T(new Or(GK+n.o+"*"+n.p+zK+e+ur+t+XK)):T(i)}}function $Bn(n,e,t){try{return ob(M$(n,e,t),2)}catch(i){throw i=Ot(i),L(i,333)?T(new Or(GK+n.o+"*"+n.p+zK+e+ur+t+XK)):T(i)}}function xBn(n,e){if(n.g==-1)throw T(new Mu);n.Xj();try{n.d.hd(n.g,e),n.f=n.d.j}catch(t){throw t=Ot(t),L(t,77)?T(new Ko):T(t)}}function r7e(n){var e,t,i,r,c;for(i=new M(n.b);i.a<i.c.c.length;)for(t=u(E(i),30),e=0,c=new M(t.a);c.a<c.c.c.length;)r=u(E(c),10),r.p=e++}function S5(n,e){var t,i,r,c;for(c=n.gc(),e.length<c&&(e=qE(new Array(c),e)),r=e,i=n.Kc(),t=0;t<c;++t)$t(r,t,i.Pb());return e.length>c&&$t(e,c,null),e}function c7e(n,e){var t,i;if(i=n.gc(),e==null){for(t=0;t<i;t++)if(n.Xb(t)==null)return t}else for(t=0;t<i;t++)if(rt(e,n.Xb(t)))return t;return-1}function xx(n,e){var t,i,r;return t=e.ld(),r=e.md(),i=n.xc(t),!(!(x(r)===x(i)||r!=null&&rt(r,i))||i==null&&!n._b(t))}function u7e(n,e){var t,i,r;return e<=22?(t=n.l&(1<<e)-1,i=r=0):e<=44?(t=n.l,i=n.m&(1<<e-22)-1,r=0):(t=n.l,i=n.m,r=n.h&(1<<e-44)-1),Yc(t,i,r)}function o7e(n,e){switch(e.g){case 1:return n.f.n.d+n.t;case 3:return n.f.n.a+n.t;case 2:return n.f.n.c+n.s;case 4:return n.f.n.b+n.s;default:return 0}}function s7e(n,e){var t,i;switch(i=e.c,t=e.a,n.b.g){case 0:t.d=n.e-i.a-i.d;break;case 1:t.d+=n.e;break;case 2:t.c=n.e-i.a-i.d;break;case 3:t.c=n.e+i.d}}function pZ(n,e,t,i){var r,c;this.a=e,this.c=i,r=n.a,zse(this,new V(-r.c,-r.d)),tt(this.b,t),c=i/2,e.a?N6(this.b,0,c):N6(this.b,c,0),nn(n.c,this)}function RBn(n,e,t,i){var r;this.c=n,this.d=e,r=new Mt,xt(r,t,r.c.b,r.c),this.a=r,this.b=u(v(i,(lc(),v0)),88),this.e=$(B(v(i,Nln))),Ezn(this)}function sS(){sS=R,jq=new vM(kh,0),i1n=new vM(WXn,1),r1n=new vM("EDGE_LENGTH_BY_POSITION",2),t1n=new vM("CROSSING_MINIMIZATION_BY_POSITION",3)}function Rx(n,e){var t,i;if(t=u(Ng(n.g,e),27),t)return t;if(i=u(Ng(n.j,e),123),i)return i;throw T(new eh("Referenced shape does not exist: "+e))}function mZ(n,e){var t,i;if(L(e,253)){i=u(e,253);try{return t=n.Ed(i),t==0}catch(r){if(r=Ot(r),L(r,212))return!1;throw T(r)}}return!1}function f7e(n,e){if(n.c==e)return n.d;if(n.d==e)return n.c;throw T(new Gn("Node 'one' must be either source or target of edge 'edge'."))}function h7e(n,e){if(n.c.i==e)return n.d.i;if(n.d.i==e)return n.c.i;throw T(new Gn("Node "+e+" is neither source nor target of edge "+n))}function l7e(n,e,t){t.Ug("Self-Loop ordering",1),qt(_r(ut(ut(rc(new Cn(null,new On(e.b,16)),new i2n),new r2n),new c2n),new u2n),new u7n(n)),t.Vg()}function a7e(n,e){var t;switch(e.g){case 2:case 4:t=n.a,n.c.d.n.b<t.d.n.b&&(t=n.c),Vl(n,e,(xf(),R_),t);break;case 1:case 3:Vl(n,e,(xf(),j3),null)}}function Kx(n,e,t,i,r,c){var s,f,h,l,a;for(s=ake(e,t,c),f=t==(en(),Xn)||t==Wn?-1:1,l=n[t.g],a=0;a<l.length;a++)h=l[a],h>0&&(h+=r),l[a]=s,s+=f*(h+i)}function KBn(n){var e,t,i;for(i=n.f,n.n=F(Ii,Cr,28,i,15,1),n.d=F(Ii,Cr,28,i,15,1),e=0;e<i;e++)t=u(sn(n.c.b,e),30),n.n[e]=hBn(n,t),n.d[e]=eqn(n,t)}function Bx(n,e){var t,i,r;for(r=0,i=2;i<e;i<<=1)n.Db&i&&++r;if(r==0){for(t=e<<=1;t<=128;t<<=1)if(n.Db&t)return 0;return-1}else return r}function BBn(n,e){var t,i,r,c,s;for(s=ru(n.e.Dh(),e),c=null,t=u(n.g,124),r=0;r<n.i;++r)i=t[r],s.am(i.Lk())&&(!c&&(c=new EE),ve(c,i));c&&uzn(n,c)}function FBn(n){var e,t,i;if(!n)return null;if(n.dc())return"";for(i=new Hl,t=n.Kc();t.Ob();)e=t.Pb(),Er(i,Ae(e)),i.a+=" ";return bN(i,i.a.length-1)}function _Bn(n,e){var t=new Array(e),i;switch(n){case 14:case 15:i=0;break;case 16:i=!1;break;default:return t}for(var r=0;r<e;++r)t[r]=i;return t}function Bb(n){var e,t,i;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),60),e.c.$b();hl(n.d)?i=n.a.c:i=n.a.d,nu(i,new A9n(n)),n.c.df(n),vqn(n)}function HBn(n){var e,t,i,r;for(t=new M(n.e.c);t.a<t.c.c.length;){for(e=u(E(t),290),r=new M(e.b);r.a<r.c.c.length;)i=u(E(r),454),qen(i);W_n(e)}}function fS(n){var e,t,i,r,c;for(i=0,c=0,r=0,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),172),c=y.Math.max(c,e.r),i+=e.d+(r>0?n.c:0),++r;n.b=i,n.d=c}function qBn(n,e){var t;return t=S(C(Ii,1),Cr,28,15,[lZ(n,(wf(),bc),e),lZ(n,Wc,e),lZ(n,wc,e)]),n.f&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function d7e(n,e,t){var i;try{xS(n,e+n.j,t+n.k,!1,!0)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function b7e(n,e,t){var i;try{xS(n,e+n.j,t+n.k,!0,!1)}catch(r){throw r=Ot(r),L(r,77)?(i=r,T(new Or(i.g+iP+e+ur+t+")."))):T(r)}}function UBn(n){var e;kt(n,(cn(),a0))&&(e=u(v(n,a0),21),e.Hc((lw(),Qs))?(e.Mc(Qs),e.Fc(Ys)):e.Hc(Ys)&&(e.Mc(Ys),e.Fc(Qs)))}function GBn(n){var e;kt(n,(cn(),a0))&&(e=u(v(n,a0),21),e.Hc((lw(),nf))?(e.Mc(nf),e.Fc(Ts)):e.Hc(Ts)&&(e.Mc(Ts),e.Fc(nf)))}function Fx(n,e,t,i){var r,c,s,f;return n.a==null&&gje(n,e),s=e.b.j.c.length,c=t.d.p,f=i.d.p,r=f-1,r<0&&(r=s-1),c<=r?n.a[r]-n.a[c]:n.a[s-1]-n.a[c]+n.a[r]}function w7e(n){var e,t;if(!n.b)for(n.b=BT(u(n.f,27).kh().i),t=new ne(u(n.f,27).kh());t.e!=t.i.gc();)e=u(ue(t),135),nn(n.b,new pL(e));return n.b}function g7e(n){var e,t;if(!n.e)for(n.e=BT(mD(u(n.f,27)).i),t=new ne(mD(u(n.f,27)));t.e!=t.i.gc();)e=u(ue(t),123),nn(n.e,new Kkn(e));return n.e}function zBn(n){var e,t;if(!n.a)for(n.a=BT(ST(u(n.f,27)).i),t=new ne(ST(u(n.f,27)));t.e!=t.i.gc();)e=u(ue(t),27),nn(n.a,new TN(n,e));return n.a}function Fb(n){var e;if(!n.C&&(n.D!=null||n.B!=null))if(e=iLe(n),e)n.hl(e);else try{n.hl(null)}catch(t){if(t=Ot(t),!L(t,63))throw T(t)}return n.C}function p7e(n){switch(n.q.g){case 5:gFn(n,(en(),Xn)),gFn(n,ae);break;case 4:mGn(n,(en(),Xn)),mGn(n,ae);break;default:y_n(n,(en(),Xn)),y_n(n,ae)}}function m7e(n){switch(n.q.g){case 5:pFn(n,(en(),Zn)),pFn(n,Wn);break;case 4:vGn(n,(en(),Zn)),vGn(n,Wn);break;default:j_n(n,(en(),Zn)),j_n(n,Wn)}}function _g(n,e){var t,i,r;for(r=new Ni,i=n.Kc();i.Ob();)t=u(i.Pb(),36),Pm(t,r.a,0),r.a+=t.f.a+e,r.b=y.Math.max(r.b,t.f.b);return r.b>0&&(r.b+=e),r}function hS(n,e){var t,i,r;for(r=new Ni,i=n.Kc();i.Ob();)t=u(i.Pb(),36),Pm(t,0,r.b),r.b+=t.f.b+e,r.a=y.Math.max(r.a,t.f.a);return r.a>0&&(r.a+=e),r}function XBn(n){var e,t,i;for(i=et,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),10),kt(e,(W(),dt))&&(i=y.Math.min(i,u(v(e,dt),17).a));return i}function VBn(n,e){var t,i;if(e.length==0)return 0;for(t=pD(n.a,e[0],(en(),Wn)),t+=pD(n.a,e[e.length-1],Zn),i=0;i<e.length;i++)t+=eje(n,i,e);return t}function WBn(){K5(),this.c=new Z,this.i=new Z,this.e=new rh,this.f=new rh,this.g=new rh,this.j=new Z,this.a=new Z,this.b=new de,this.k=new de}function _x(n,e){var t,i;return n.Db>>16==6?n.Cb.Th(n,5,Ef,e):(i=br(u($n((t=u(Un(n,16),29),t||n.ii()),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function v7e(n){A4();var e=n.e;if(e&&e.stack){var t=e.stack,i=e+`
`;return t.substring(0,i.length)==i&&(t=t.substring(i.length)),t.split(`
`)}return[]}function k7e(n){var e;return e=(Q$n(),wQn),e[n>>>28]|e[n>>24&15]<<4|e[n>>20&15]<<8|e[n>>16&15]<<12|e[n>>12&15]<<16|e[n>>8&15]<<20|e[n>>4&15]<<24|e[n&15]<<28}function JBn(n){var e,t,i;n.b==n.c&&(i=n.a.length,t=JQ(y.Math.max(8,i))<<1,n.b!=0?(e=xs(n.a,t),axn(n,e,i),n.a=e,n.b=0):I0(n.a,t),n.c=i)}function y7e(n,e){var t;return t=n.b,t.pf((He(),oo))?t.ag()==(en(),Wn)?-t.Mf().a-$(B(t.of(oo))):e+$(B(t.of(oo))):t.ag()==(en(),Wn)?-t.Mf().a:e}function qk(n){var e;return n.b.c.length!=0&&u(sn(n.b,0),72).a?u(sn(n.b,0),72).a:(e=vD(n),e??""+(n.c?qr(n.c.a,n,0):-1))}function lS(n){var e;return n.f.c.length!=0&&u(sn(n.f,0),72).a?u(sn(n.f,0),72).a:(e=vD(n),e??""+(n.i?qr(n.i.j,n,0):-1))}function j7e(n,e){var t,i;if(e<0||e>=n.gc())return null;for(t=e;t<n.gc();++t)if(i=u(n.Xb(t),131),t==n.gc()-1||!i.o)return new bi(Y(t),i);return null}function E7e(n,e,t){var i,r,c,s,f;for(c=n.c,f=t?e:n,i=t?n:e,r=f.p+1;r<i.p;++r)if(s=u(sn(c.a,r),10),!(s.k==(Vn(),Gf)||Q7e(s)))return!1;return!0}function vZ(n){var e,t,i,r,c;for(c=0,r=li,i=0,t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),172),c+=e.r+(i>0?n.c:0),r=y.Math.max(r,e.d),++i;n.e=c,n.b=r}function M7e(n){var e,t;if(!n.b)for(n.b=BT(u(n.f,123).kh().i),t=new ne(u(n.f,123).kh());t.e!=t.i.gc();)e=u(ue(t),135),nn(n.b,new pL(e));return n.b}function T7e(n,e){var t,i,r;if(e.dc())return m4(),m4(),aE;for(t=new NSn(n,e.gc()),r=new ne(n);r.e!=r.i.gc();)i=ue(r),e.Hc(i)&&ve(t,i);return t}function kZ(n,e,t,i){return e==0?i?(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),n.o):(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),rk(n.o)):tS(n,e,t,i)}function Hx(n){var e,t;if(n.rb)for(e=0,t=n.rb.i;e<t;++e)C7(N(n.rb,e));if(n.vb)for(e=0,t=n.vb.i;e<t;++e)C7(N(n.vb,e));B6((Lu(),zi),n),n.Bb|=1}function Et(n,e,t,i,r,c,s,f,h,l,a,d,g,p){return I_n(n,e,i,null,r,c,s,f,h,l,g,!0,p),LY(n,a),L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),2),t&&AQ(n,t),NY(n,d),n}function C7e(n){var e,t;if(n==null)return null;t=0;try{t=So(n,Wi,et)&ui}catch(i){if(i=Ot(i),L(i,130))e=iC(n),t=e[0];else throw T(i)}return vk(t)}function S7e(n){var e,t;if(n==null)return null;t=0;try{t=So(n,Wi,et)&ui}catch(i){if(i=Ot(i),L(i,130))e=iC(n),t=e[0];else throw T(i)}return vk(t)}function P7e(n,e){var t,i,r;return r=n.h-e.h,r<0||(t=n.l-e.l,i=n.m-e.m+(t>>22),r+=i>>22,r<0)?!1:(n.l=t&ro,n.m=i&ro,n.h=r&Ol,!0)}function qx(n,e,t,i,r,c,s){var f,h;return!(e.Te()&&(h=n.a.Ne(t,i),h<0||!r&&h==0)||e.Ue()&&(f=n.a.Ne(t,c),f>0||!s&&f==0))}function I7e(n,e){cm();var t;if(t=n.j.g-e.j.g,t!=0)return 0;switch(n.j.g){case 2:return fx(e,Msn)-fx(n,Msn);case 4:return fx(n,Esn)-fx(e,Esn)}return 0}function O7e(n){switch(n.g){case 0:return Y_;case 1:return Z_;case 2:return nH;case 3:return eH;case 4:return JI;case 5:return tH;default:return null}}function $r(n,e,t){var i,r;return i=(r=new lL,ad(r,e),zc(r,t),ve((!n.c&&(n.c=new q(y0,n,12,10)),n.c),r),r),e1(i,0),Z0(i,1),u1(i,!0),c1(i,!0),i}function Jp(n,e){var t,i;if(e>=n.i)throw T(new aN(e,n.i));return++n.j,t=n.g[e],i=n.i-e-1,i>0&&Oc(n.g,e+1,n.g,e,i),$t(n.g,--n.i,null),n.Qi(e,t),n.Ni(),t}function QBn(n,e){var t,i;return n.Db>>16==17?n.Cb.Th(n,21,Ss,e):(i=br(u($n((t=u(Un(n,16),29),t||n.ii()),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function A7e(n){var e,t,i,r;for(Ln(),Yt(n.c,n.a),r=new M(n.c);r.a<r.c.c.length;)for(i=E(r),t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),693),e.bf(i)}function L7e(n){var e,t,i,r;for(Ln(),Yt(n.c,n.a),r=new M(n.c);r.a<r.c.c.length;)for(i=E(r),t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),382),e.bf(i)}function N7e(n){var e,t,i,r,c;for(r=et,c=null,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),218),t.d.j^t.e.j&&(e=t.e.e-t.d.e-t.a,e<r&&(r=e,c=t));return c}function yZ(){yZ=R,hZn=new Tn(Jtn,(_n(),!1)),oZn=new Tn(Qtn,100),jon=(t5(),j_),sZn=new Tn(Ytn,jon),fZn=new Tn(Ztn,vh),lZn=new Tn(nin,Y(et))}function YBn(n,e,t){var i,r,c,s,f,h,l,a;for(l=0,r=n.a[e],c=0,s=r.length;c<s;++c)for(i=r[c],a=g5(i,t),h=a.Kc();h.Ob();)f=u(h.Pb(),12),Ve(n.f,f,Y(l++))}function D7e(n,e,t){var i,r,c,s;if(t)for(r=t.a.length,i=new Qa(r),s=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);s.Ob();)c=u(s.Pb(),17),In(n,e,Zp(J0(t,c.a)))}function $7e(n,e,t){var i,r,c,s;if(t)for(r=t.a.length,i=new Qa(r),s=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);s.Ob();)c=u(s.Pb(),17),In(n,e,Zp(J0(t,c.a)))}function jZ(n){ua();var e;return e=u(S5(Cp(n.k),F(lr,Tc,64,2,0,1)),126),R4(e,0,e.length,null),e[0]==(en(),Xn)&&e[1]==Wn&&($t(e,0,Wn),$t(e,1,Xn)),e}function ZBn(n,e,t){var i,r,c;return r=ECe(n,e,t),c=aen(n,r),u$(n.b),FD(n,e,t),Ln(),Yt(r,new U7n(n)),i=aen(n,r),u$(n.b),FD(n,t,e),new bi(Y(c),Y(i))}function nFn(){nFn=R,Die=Fe(new ii,(Vi(),zr),(tr(),N8)),AO=new Lt("linearSegments.inputPrio",Y(0)),LO=new Lt("linearSegments.outputPrio",Y(0))}function Qp(){Qp=R,NO=new pM("P1_TREEIFICATION",0),t9=new pM("P2_NODE_ORDERING",1),i9=new pM("P3_NODE_PLACEMENT",2),r9=new pM("P4_EDGE_ROUTING",3)}function x7e(n){var e,t,i,r;for(t=0,e=0,r=new ne(n);r.e!=r.i.gc();)i=u(ue(r),27),t=y.Math.max(i.g+i.i,t),e=y.Math.max(i.f+i.j,e);return new V(t,e)}function R7e(n,e){var t,i,r,c;for(c=0,i=new M(n);i.a<i.c.c.length;)t=u(E(i),27),c+=y.Math.pow(t.g*t.f-e,2);return r=y.Math.sqrt(c/(n.c.length-1)),r}function Co(){Co=R,nE=new yM("UNKNOWN",0),nl=new yM("ABOVE",1),Sa=new yM("BELOW",2),Zj=new yM("INLINE",3),new Lt("org.eclipse.elk.labelSide",nE)}function eFn(n,e){var t;if(n.Yi()&&e!=null){for(t=0;t<n.i;++t)if(rt(e,n.g[t]))return t}else for(t=0;t<n.i;++t)if(x(n.g[t])===x(e))return t;return-1}function K7e(n,e,t){var i,r;return e.c==(gr(),Jc)&&t.c==Vu?-1:e.c==Vu&&t.c==Jc?1:(i=HRn(e.a,n.a),r=HRn(t.a,n.a),e.c==Jc?r-i:i-r)}function uw(n,e,t){if(t&&(e<0||e>t.a.c.length))throw T(new Gn("index must be >= 0 and <= layer node count"));n.c&&du(n.c.a,n),n.c=t,t&&bb(t.a,e,n)}function tFn(n,e){var t,i,r;for(i=new ie(ce(Ml(n).a.Kc(),new En));pe(i);)return t=u(fe(i),18),r=u(e.Kb(t),10),new CE(Pe(r.n.b+r.o.b/2));return Zv(),Zv(),FF}function iFn(n,e){this.c=new de,this.a=n,this.b=e,this.d=u(v(n,(W(),E2)),312),x(v(n,(cn(),shn)))===x((sk(),QI))?this.e=new Yyn:this.e=new Qyn}function P5(n,e){var t,i;return i=null,n.pf((He(),$3))&&(t=u(n.of($3),96),t.pf(e)&&(i=t.of(e))),i==null&&n.Tf()&&(i=n.Tf().of(e)),i==null&&(i=rn(e)),i}function Ux(n,e){var t,i;t=n.fd(e);try{return i=t.Pb(),t.Qb(),i}catch(r){throw r=Ot(r),L(r,112)?T(new Or("Can't remove element "+e)):T(r)}}function B7e(n,e){var t,i,r;if(i=new JE,r=new ZQ(i.q.getFullYear()-ha,i.q.getMonth(),i.q.getDate()),t=JIe(n,e,r),t==0||t<e.length)throw T(new Gn(e));return r}function EZ(n,e){var t,i,r;for(Jn(e),iV(e!=n),r=n.b.c.length,i=e.Kc();i.Ob();)t=i.Pb(),nn(n.b,Jn(t));return r!=n.b.c.length?(sY(n,0),!0):!1}function Uk(){Uk=R,Con=(He(),Vj),new Di(Yq,(_n(),!0)),dZn=Hd,bZn=_2,wZn=Ca,aZn=F2,Pon=Wj,gZn=Ww,Ton=(yZ(),hZn),Eon=sZn,Mon=fZn,Son=lZn,EI=oZn}function F7e(n,e){if(e==n.c)return n.d;if(e==n.d)return n.c;throw T(new Gn("'port' must be either the source port or target port of the edge."))}function _7e(n,e,t){var i,r;switch(r=n.o,i=n.d,e.g){case 1:return-i.d-t;case 3:return r.b+i.a+t;case 2:return r.a+i.c+t;case 4:return-i.b-t;default:return 0}}function MZ(n,e,t,i){var r,c,s,f;for($i(e,u(i.Xb(0),30)),f=i.kd(1,i.gc()),c=u(t.Kb(e),20).Kc();c.Ob();)r=u(c.Pb(),18),s=r.c.i==e?r.d.i:r.c.i,MZ(n,s,t,f)}function rFn(n){var e;return e=new de,kt(n,(W(),wH))?u(v(n,wH),85):(qt(ut(new Cn(null,new On(n.j,16)),new P2n),new l7n(e)),U(n,wH,e),e)}function cFn(n,e){var t,i,r,c,s;for(i=0,r=0,t=0,s=new M(n);s.a<s.c.c.length;)c=u(E(s),186),i=y.Math.max(i,c.e),r+=c.b+(t>0?e:0),++t;return new V(i,r)}function TZ(n,e){var t,i;return n.Db>>16==6?n.Cb.Th(n,6,Vt,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),bA)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function CZ(n,e){var t,i;return n.Db>>16==7?n.Cb.Th(n,1,oE,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),Idn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function SZ(n,e){var t,i;return n.Db>>16==9?n.Cb.Th(n,9,Ye,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),Adn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function uFn(n,e){var t,i;return n.Db>>16==5?n.Cb.Th(n,9,EA,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),P1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function oFn(n,e){var t,i;return n.Db>>16==7?n.Cb.Th(n,6,Ef,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),O1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function PZ(n,e){var t,i;return n.Db>>16==3?n.Cb.Th(n,0,fE,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),S1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function sFn(){this.a=new dvn,this.g=new oS,this.j=new oS,this.b=new de,this.d=new oS,this.i=new oS,this.k=new de,this.c=new de,this.e=new de,this.f=new de}function H7e(n,e,t){var i,r,c;for(t<0&&(t=0),c=n.i,r=t;r<c;r++)if(i=N(n,r),e==null){if(i==null)return r}else if(x(e)===x(i)||rt(e,i))return r;return-1}function q7e(n,e){var t,i;return t=e.qi(n.a),t?(i=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),nI)),Sn(Yy,i)?B6(n,jo(e.qk())):i):null}function mm(n,e){var t,i;if(e){if(e==n)return!0;for(t=0,i=u(e,54).Ph();i&&i!=e;i=i.Ph()){if(++t>IK)return mm(n,i);if(i==n)return!0}}return!1}function U7e(n){switch(FM(),n.q.g){case 5:U_n(n,(en(),Xn)),U_n(n,ae);break;case 4:GHn(n,(en(),Xn)),GHn(n,ae);break;default:VGn(n,(en(),Xn)),VGn(n,ae)}}function G7e(n){switch(FM(),n.q.g){case 5:fHn(n,(en(),Zn)),fHn(n,Wn);break;case 4:bBn(n,(en(),Zn)),bBn(n,Wn);break;default:WGn(n,(en(),Zn)),WGn(n,Wn)}}function z7e(n){var e,t;e=u(v(n,(Us(),nZn)),17),e?(t=e.a,t==0?U(n,(Q1(),jI),new dx):U(n,(Q1(),jI),new qT(t))):U(n,(Q1(),jI),new qT(1))}function X7e(n,e){var t;switch(t=n.i,e.g){case 1:return-(n.n.b+n.o.b);case 2:return n.n.a-t.o.a;case 3:return n.n.b-t.o.b;case 4:return-(n.n.a+n.o.a)}return 0}function V7e(n,e){switch(n.g){case 0:return e==(Yo(),ya)?HI:qI;case 1:return e==(Yo(),ya)?HI:wj;case 2:return e==(Yo(),ya)?wj:qI;default:return wj}}function Gk(n,e){var t,i,r;for(du(n.a,e),n.e-=e.r+(n.a.c.length==0?0:n.c),r=xrn,i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),172),r=y.Math.max(r,t.d);n.b=r}function IZ(n,e){var t,i;return n.Db>>16==3?n.Cb.Th(n,12,Ye,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),Pdn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function OZ(n,e){var t,i;return n.Db>>16==11?n.Cb.Th(n,10,Ye,e):(i=br(u($n((t=u(Un(n,16),29),t||(Mc(),Odn)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function fFn(n,e){var t,i;return n.Db>>16==10?n.Cb.Th(n,11,Ss,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),I1)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function hFn(n,e){var t,i;return n.Db>>16==10?n.Cb.Th(n,12,Ps,e):(i=br(u($n((t=u(Un(n,16),29),t||(An(),ig)),n.Db>>16),19)),n.Cb.Th(n,i.n,i.f,e))}function gs(n){var e;return!(n.Bb&1)&&n.r&&n.r.Vh()&&(e=u(n.r,54),n.r=u(ea(n,e),142),n.r!=e&&n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,9,8,e,n.r))),n.r}function Gx(n,e,t){var i;return i=S(C(Ii,1),Cr,28,15,[tnn(n,(wf(),bc),e,t),tnn(n,Wc,e,t),tnn(n,wc,e,t)]),n.f&&(i[0]=y.Math.max(i[0],i[2]),i[2]=i[0]),i}function W7e(n,e){var t,i,r;if(r=v9e(n,e),r.c.length!=0)for(Yt(r,new Ign),t=r.c.length,i=0;i<t;i++)Em(n,(Nn(i,r.c.length),u(r.c[i],293)),mSe(n,r,i))}function J7e(n){var e,t,i,r;for(r=u(ot(n.a,(ow(),UI)),15).Kc();r.Ob();)for(i=u(r.Pb(),105),t=Cp(i.k).Kc();t.Ob();)e=u(t.Pb(),64),T4(n,i,e,(Lb(),va),1)}function Q7e(n){var e,t;if(n.k==(Vn(),Ti)){for(t=new ie(ce(Ml(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),!fr(e)&&n.c==RZ(e,n).c)return!0}return!1}function Y7e(n){var e,t;if(n.k==(Vn(),Ti)){for(t=new ie(ce(Ml(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),!fr(e)&&e.c.i.c==e.d.i.c)return!0}return!1}function Z7e(n,e){var t,i,r,c,s;if(e)for(r=e.a.length,t=new Qa(r),s=(t.b-t.a)*t.c<0?(F1(),xa):new q1(t);s.Ob();)c=u(s.Pb(),17),i=N4(e,c.a),i&&KHn(n,i)}function nke(){xz();var n,e;for(_Ne((G1(),Hn)),ANe(Hn),Hx(Hn),Gdn=(An(),Zf),e=new M(nbn);e.a<e.c.c.length;)n=u(E(e),248),Dm(n,Zf,null);return!0}function AZ(n,e){var t,i,r,c,s,f,h,l;return h=n.h>>19,l=e.h>>19,h!=l?l-h:(r=n.h,f=e.h,r!=f?r-f:(i=n.m,s=e.m,i!=s?i-s:(t=n.l,c=e.l,t-c)))}function aS(){aS=R,Xun=(DS(),s_),zun=new Tn(Otn,Xun),Gun=(cC(),o_),Uun=new Tn(Atn,Gun),qun=(YC(),u_),Hun=new Tn(Ltn,qun),_un=new Tn(Ntn,(_n(),!0))}function I5(n,e,t){var i,r;i=e*t,L(n.g,154)?(r=xp(n),r.f.d?r.f.a||(n.d.a+=i+_f):(n.d.d-=i+_f,n.d.a+=i+_f)):L(n.g,10)&&(n.d.d-=i,n.d.a+=2*i)}function lFn(n,e,t){var i,r,c,s,f;for(r=n[t.g],f=new M(e.d);f.a<f.c.c.length;)s=u(E(f),105),c=s.i,c&&c.i==t&&(i=s.d[t.g],r[i]=y.Math.max(r[i],c.j.b))}function eke(n,e){var t,i,r,c,s;for(i=0,r=0,t=0,s=new M(e.d);s.a<s.c.c.length;)c=u(E(s),315),fS(c),i=y.Math.max(i,c.b),r+=c.d+(t>0?n.b:0),++t;e.b=i,e.e=r}function aFn(n){var e,t,i;if(i=n.b,iMn(n.i,i.length)){for(t=i.length*2,n.b=F(UF,My,303,t,0,1),n.c=F(UF,My,303,t,0,1),n.f=t-1,n.i=0,e=n.a;e;e=e.c)ny(n,e,e);++n.g}}function tke(n,e,t,i){var r,c,s,f;for(r=0;r<e.o;r++)for(c=r-e.j+t,s=0;s<e.p;s++)f=s-e.k+i,Fg(e,r,s)?W9e(n,c,f)||d7e(n,c,f):$Bn(e,r,s)&&(ABn(n,c,f)||b7e(n,c,f))}function O5(n,e){return n.b.a=y.Math.min(n.b.a,e.c),n.b.b=y.Math.min(n.b.b,e.d),n.a.a=y.Math.max(n.a.a,e.c),n.a.b=y.Math.max(n.a.b,e.d),Fn(n.c,e),!0}function ike(n,e,t){var i;i=e.c.i,i.k==(Vn(),Ti)?(U(n,(W(),yf),u(v(i,yf),12)),U(n,Es,u(v(i,Es),12))):(U(n,(W(),yf),e.c),U(n,Es,t.d))}function vm(n,e,t){Vg();var i,r,c,s,f,h;return s=e/2,c=t/2,i=y.Math.abs(n.a),r=y.Math.abs(n.b),f=1,h=1,i>s&&(f=s/i),r>c&&(h=c/r),ch(n,y.Math.min(f,h)),n}function rke(){FS();var n,e;try{if(e=u(_Z((B1(),Is),tv),2113),e)return e}catch(t){if(t=Ot(t),L(t,103))n=t,OW((Oe(),n));else throw T(t)}return new fvn}function cke(){FS();var n,e;try{if(e=u(_Z((B1(),Is),ks),2040),e)return e}catch(t){if(t=Ot(t),L(t,103))n=t,OW((Oe(),n));else throw T(t)}return new $vn}function uke(){jDn();var n,e;try{if(e=u(_Z((B1(),Is),Pd),2122),e)return e}catch(t){if(t=Ot(t),L(t,103))n=t,OW((Oe(),n));else throw T(t)}return new P6n}function oke(n,e,t){var i,r;return r=n.e,n.e=e,n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,4,r,e),t?t.nj(i):t=i),r!=e&&(e?t=Dm(n,TS(n,e),t):t=Dm(n,n.a,t)),t}function dFn(){JE.call(this),this.e=-1,this.a=!1,this.p=Wi,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Wi}function ske(n,e){var t,i,r;if(i=n.b.d.d,n.a||(i+=n.b.d.a),r=e.b.d.d,e.a||(r+=e.b.d.a),t=bt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function fke(n,e){var t,i,r;if(i=n.b.b.d,n.a||(i+=n.b.b.a),r=e.b.b.d,e.a||(r+=e.b.b.a),t=bt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function hke(n,e){var t,i,r;if(i=n.b.g.d,n.a||(i+=n.b.g.a),r=e.b.g.d,e.a||(r+=e.b.g.a),t=bt(i,r),t==0){if(!n.a&&e.a)return-1;if(!e.a&&n.a)return 1}return t}function LZ(){LZ=R,mZn=Iu(Fe(Fe(Fe(new ii,(Vi(),Fc),(tr(),fsn)),Fc,hsn),zr,lsn),zr,Yon),kZn=Fe(Fe(new ii,Fc,Gon),Fc,Zon),vZn=Iu(new ii,zr,esn)}function lke(n){var e,t,i,r,c;for(e=u(v(n,(W(),B8)),85),c=n.n,i=e.Cc().Kc();i.Ob();)t=u(i.Pb(),314),r=t.i,r.c+=c.a,r.d+=c.b,t.c?Lqn(t):Nqn(t);U(n,B8,null)}function ake(n,e,t){var i,r;switch(r=n.b,i=r.d,e.g){case 1:return-i.d-t;case 2:return r.o.a+i.c+t;case 3:return r.o.b+i.a+t;case 4:return-i.b-t;default:return-1}}function dke(n,e,t){var i,r;for(t.Ug("Interactive node placement",1),n.a=u(v(e,(W(),E2)),312),r=new M(e.b);r.a<r.c.c.length;)i=u(E(r),30),cSe(n,i);t.Vg()}function bke(n){var e,t,i,r,c;if(i=0,r=i2,n.b)for(e=0;e<360;e++)t=e*.017453292519943295,Ien(n,n.d,0,0,Md,t),c=n.b.Dg(n.d),c<r&&(i=t,r=c);Ien(n,n.d,0,0,Md,i)}function wke(n,e){var t,i,r,c;for(c=new de,e.e=null,e.f=null,i=new M(e.i);i.a<i.c.c.length;)t=u(E(i),68),r=u(ee(n.g,t.a),42),t.a=gT(t.b),Ve(c,t.a,r);n.g=c}function gke(n,e,t){var i,r,c,s,f,h;for(r=e-n.e,c=r/n.d.c.length,s=0,h=new M(n.d);h.a<h.c.c.length;)f=u(E(h),315),i=n.b-f.b+t,xKn(f,f.e+s*c,f.f),Y9e(f,c,i),++s}function bFn(n){var e;if(n.f._j(),n.b!=-1){if(++n.b,e=n.f.d[n.a],n.b<e.i)return;++n.a}for(;n.a<n.f.d.length;++n.a)if(e=n.f.d[n.a],e&&e.i!=0){n.b=0;return}n.b=-1}function pke(n,e){var t,i,r;for(r=e.c.length,t=vEe(n,r==0?"":(Nn(0,e.c.length),Ae(e.c[0]))),i=1;i<r&&t;++i)t=u(t,54).Zh((Nn(i,e.c.length),Ae(e.c[i])));return t}function wFn(n,e){var t,i;for(i=new M(e);i.a<i.c.c.length;)t=u(E(i),10),n.c[t.c.p][t.p].a=hW(n.i),n.c[t.c.p][t.p].d=$(n.c[t.c.p][t.p].a),n.c[t.c.p][t.p].b=1}function mke(n,e){var t,i,r,c;for(c=0,i=new M(n);i.a<i.c.c.length;)t=u(E(i),163),c+=y.Math.pow(Pu(t)*ao(t)-e,2);return r=y.Math.sqrt(c/(n.c.length-1)),r}function gFn(n,e){var t,i,r,c;for(c=0,r=u(u(ot(n.r,e),21),87).Kc();r.Ob();)i=u(r.Pb(),117),c=y.Math.max(c,i.e.a+i.b.Mf().a);t=u(Mr(n.b,e),127),t.n.b=0,t.a.a=c}function pFn(n,e){var t,i,r,c;for(t=0,c=u(u(ot(n.r,e),21),87).Kc();c.Ob();)r=u(c.Pb(),117),t=y.Math.max(t,r.e.b+r.b.Mf().b);i=u(Mr(n.b,e),127),i.n.d=0,i.a.b=t}function mFn(n,e,t,i){var r,c,s;return c=nPe(n,e,t,i),s=ken(n,c),eR(n,e,t,i),u$(n.b),Ln(),Yt(c,new G7n(n)),r=ken(n,c),eR(n,t,e,i),u$(n.b),new bi(Y(s),Y(r))}function vke(n,e){var t;e.Ug("Delaunay triangulation",1),t=new Z,nu(n.i,new Skn(t)),on(un(v(n,(J4(),A8)))),n.e?Ki(n.e,azn(t)):n.e=azn(t),e.Vg()}function kke(n,e,t){var i,r;for(j7(n,n.j+e,n.k+t),r=new ne((!n.a&&(n.a=new ti(xo,n,5)),n.a));r.e!=r.i.gc();)i=u(ue(r),377),gN(i,i.a+e,i.b+t);y7(n,n.b+e,n.c+t)}function NZ(n,e,t,i){switch(t){case 7:return!n.e&&(n.e=new Dn(Vt,n,7,4)),Xc(n.e,e,i);case 8:return!n.d&&(n.d=new Dn(Vt,n,8,5)),Xc(n.d,e,i)}return Yx(n,e,t,i)}function DZ(n,e,t,i){switch(t){case 7:return!n.e&&(n.e=new Dn(Vt,n,7,4)),cr(n.e,e,i);case 8:return!n.d&&(n.d=new Dn(Vt,n,8,5)),cr(n.d,e,i)}return $$(n,e,t,i)}function yke(n,e,t){var i,r,c,s,f;if(t)for(c=t.a.length,i=new Qa(c),f=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),r=N4(t,s.a),r&&q_n(n,r,e)}function zk(n,e,t){var i,r,c,s,f;return n._j(),c=e==null?0:mt(e),n.f>0&&(s=(c&et)%n.d.length,r=$nn(n,s,c,e),r)?(f=r.nd(t),f):(i=n.ck(c,e,t),n.c.Fc(i),null)}function $Z(n,e){var t,i,r,c;switch(r1(n,e).Kl()){case 3:case 2:{for(t=Jg(e),r=0,c=t.i;r<c;++r)if(i=u(N(t,r),35),yb(Nr(n,i))==5)return i;break}}return null}function jke(n){var e,t,i,r,c;if(iMn(n.f,n.b.length))for(i=F(sQn,My,227,n.b.length*2,0,1),n.b=i,r=i.length-1,t=n.a;t!=n;t=t._d())c=u(t,227),e=c.d&r,c.a=i[e],i[e]=c}function Eke(n){var e,t;return t=u(v(n,(W(),Hc)),21),e=LM(Jie),t.Hc((pr(),v2))&&To(e,Zie),t.Hc(K8)&&To(e,nre),t.Hc(vv)&&To(e,Qie),t.Hc(kv)&&To(e,Yie),e}function xZ(n){if(n<0)throw T(new Gn("The input must be positive"));return n<oan.length?id(oan[n]):y.Math.sqrt(Md*n)*(Z6e(n,n)/pY(2.718281828459045,n))}function km(n,e){var t;if(n.Yi()&&e!=null){for(t=0;t<n.i;++t)if(rt(e,n.g[t]))return!0}else for(t=0;t<n.i;++t)if(x(n.g[t])===x(e))return!0;return!1}function Mke(n,e){if(e==null){for(;n.a.Ob();)if(u(n.a.Pb(),44).md()==null)return!0}else for(;n.a.Ob();)if(rt(e,u(n.a.Pb(),44).md()))return!0;return!1}function Tke(n,e){var t,i,r;return e===n?!0:L(e,678)?(r=u(e,2046),WKn((i=n.g,i||(n.g=new zA(n))),(t=r.g,t||(r.g=new zA(r))))):!1}function Cke(n){var e,t,i,r;for(e="gA",t="vz",r=y.Math.min(n.length,5),i=r-1;i>=0;i--)if(Sn(n[i].d,e)||Sn(n[i].d,t)){n.length>=i+1&&n.splice(0,i+1);break}return n}function Xk(n,e){var t;return Vr(n)&&Vr(e)&&(t=n/e,Sy<t&&t<vd)?t<0?y.Math.ceil(t):y.Math.floor(t):Y1(Wen(Vr(n)?ds(n):n,Vr(e)?ds(e):e,!1))}function RZ(n,e){if(e==n.c.i)return n.d.i;if(e==n.d.i)return n.c.i;throw T(new Gn("'node' must either be the source node or target node of the edge."))}function Ske(n){var e,t,i,r;if(r=u(v(n,(W(),nfn)),36),r){for(i=new Ni,e=Hi(n.c.i);e!=r;)t=e.e,e=Hi(t),ab(tt(tt(i,t.n),e.c),e.d.b,e.d.d);return i}return KZn}function Pke(n){var e;e=u(v(n,(W(),h0)),337),qt(rc(new Cn(null,new On(e.d,16)),new a2n),new c7n(n)),qt(ut(new Cn(null,new On(e.d,16)),new d2n),new o7n(n))}function zx(n,e){var t,i,r,c;for(r=e?Qt(n):ji(n),i=new ie(ce(r.a.Kc(),new En));pe(i);)if(t=u(fe(i),18),c=RZ(t,n),c.k==(Vn(),Ti)&&c.c!=n.c)return c;return null}function Ike(n){var e,t,i;for(t=new M(n.p);t.a<t.c.c.length;)e=u(E(t),10),e.k==(Vn(),zt)&&(i=e.o.b,n.i=y.Math.min(n.i,i),n.g=y.Math.max(n.g,i))}function vFn(n,e,t){var i,r,c;for(c=new M(e);c.a<c.c.c.length;)i=u(E(c),10),n.c[i.c.p][i.p].e=!1;for(r=new M(e);r.a<r.c.c.length;)i=u(E(r),10),etn(n,i,t)}function Xx(n,e,t){var i,r;i=Rg(e.j,t.s,t.c)+Rg(t.e,e.s,e.c),r=Rg(t.j,e.s,e.c)+Rg(e.e,t.s,t.c),i==r?i>0&&(n.b+=2,n.a+=i):(n.b+=1,n.a+=y.Math.min(i,r))}function kFn(n){var e;e=u(v(u(Zo(n.b,0),40),(lc(),Oln)),107),U(n,(pt(),Lv),new V(0,0)),lUn(new tk,n,e.b+e.c-$(B(v(n,iq))),e.d+e.a-$(B(v(n,rq))))}function yFn(n,e){var t,i;if(i=!1,Si(e)&&(i=!0,Op(n,new q0(Ae(e)))),i||L(e,242)&&(i=!0,Op(n,(t=IV(u(e,242)),new SE(t)))),!i)throw T(new vL(Lcn))}function Oke(n,e,t,i){var r,c,s;return r=new ml(n.e,1,10,(s=e.c,L(s,90)?u(s,29):(An(),Os)),(c=t.c,L(c,90)?u(c,29):(An(),Os)),f1(n,e),!1),i?i.nj(r):i=r,i}function KZ(n){var e,t;switch(u(v(Hi(n),(cn(),ehn)),429).g){case 0:return e=n.n,t=n.o,new V(e.a+t.a/2,e.b+t.b/2);case 1:return new rr(n.n);default:return null}}function Vk(){Vk=R,YI=new p6(kh,0),Fsn=new p6("LEFTUP",1),Hsn=new p6("RIGHTUP",2),Bsn=new p6("LEFTDOWN",3),_sn=new p6("RIGHTDOWN",4),iH=new p6("BALANCED",5)}function Ake(n,e,t){var i,r,c;if(i=bt(n.a[e.p],n.a[t.p]),i==0){if(r=u(v(e,(W(),C3)),15),c=u(v(t,C3),15),r.Hc(t))return-1;if(c.Hc(e))return 1}return i}function Lke(n){switch(n.g){case 1:return new U4n;case 2:return new G4n;case 3:return new q4n;case 0:return null;default:throw T(new Gn(GB+(n.f!=null?n.f:""+n.g)))}}function BZ(n,e,t){switch(e){case 1:!n.n&&(n.n=new q(Sr,n,1,7)),me(n.n),!n.n&&(n.n=new q(Sr,n,1,7)),Kt(n.n,u(t,16));return;case 2:X4(n,Ae(t));return}cY(n,e,t)}function FZ(n,e,t){switch(e){case 3:Ib(n,$(B(t)));return;case 4:Ob(n,$(B(t)));return;case 5:eu(n,$(B(t)));return;case 6:tu(n,$(B(t)));return}BZ(n,e,t)}function dS(n,e,t){var i,r,c;c=(i=new lL,i),r=Kf(c,e,null),r&&r.oj(),zc(c,t),ve((!n.c&&(n.c=new q(y0,n,12,10)),n.c),c),e1(c,0),Z0(c,1),u1(c,!0),c1(c,!0)}function _Z(n,e){var t,i,r;return t=a6(n.i,e),L(t,241)?(r=u(t,241),r.zi()==null,r.wi()):L(t,507)?(i=u(t,2037),r=i.b,r):null}function Nke(n,e,t,i){var r,c;return Pe(e),Pe(t),c=u($6(n.d,e),17),VDn(!!c,"Row %s not in %s",e,n.e),r=u($6(n.b,t),17),VDn(!!r,"Column %s not in %s",t,n.c),cRn(n,c.a,r.a,i)}function jFn(n,e,t,i,r,c,s){var f,h,l,a,d;if(a=r[c],l=c==s-1,f=l?i:0,d=_Bn(f,a),i!=10&&S(C(n,s-c),e[c],t[c],f,d),!l)for(++c,h=0;h<a;++h)d[h]=jFn(n,e,t,i,r,c,s);return d}function A5(n){if(n.g==-1)throw T(new Mu);n.Xj();try{n.i.gd(n.g),n.f=n.i.j,n.g<n.e&&--n.e,n.g=-1}catch(e){throw e=Ot(e),L(e,77)?T(new Ko):T(e)}}function Dke(n){var e,t,i,r;for(r=-1,i=0,t=new M(n);t.a<t.c.c.length;){if(e=u(E(t),249),e.c==(gr(),Vu)){r=i==0?0:i-1;break}else i==n.c.length-1&&(r=i);i+=1}return r}function $ke(n){var e,t,i,r;for(r=0,e=0,i=new M(n.c);i.a<i.c.c.length;)t=u(E(i),27),eu(t,n.e+r),tu(t,n.f),r+=t.g+n.b,e=y.Math.max(e,t.f+n.b);n.d=r-n.b,n.a=e-n.b}function Hg(n){var e,t,i;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),60),i=e.d.c,e.d.c=e.d.d,e.d.d=i,i=e.d.b,e.d.b=e.d.a,e.d.a=i,i=e.b.a,e.b.a=e.b.b,e.b.b=i;cen(n)}function qg(n){var e,t,i;for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),i=e.g.c,e.g.c=e.g.d,e.g.d=i,i=e.g.b,e.g.b=e.g.a,e.g.a=i,i=e.e.a,e.e.a=e.e.b,e.e.b=i;IS(n)}function xke(n){var e,t,i,r,c;for(c=Cp(n.k),t=(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])),i=0,r=t.length;i<r;++i)if(e=t[i],e!=sc&&!c.Hc(e))return e;return null}function Vx(n,e){var t,i;return i=u(x1e(im(ut(new Cn(null,new On(e.j,16)),new $pn))),12),i&&(t=u(sn(i.e,0),18),t)?u(v(t,(W(),dt)),17).a:z4e(n.b)}function Rke(n,e){var t,i,r,c;for(c=new M(e.a);c.a<c.c.c.length;)for(r=u(E(c),10),e6(n.d),i=new ie(ce(Qt(r).a.Kc(),new En));pe(i);)t=u(fe(i),18),vHn(n,r,t.d.i)}function Kke(n,e){var t,i;for(du(n.b,e),i=new M(n.n);i.a<i.c.c.length;)if(t=u(E(i),209),qr(t.c,e,0)!=-1){du(t.c,e),$ke(t),t.c.c.length==0&&du(n.n,t);break}ZUn(n)}function EFn(n,e){var t,i,r,c,s;for(s=n.f,r=0,c=0,i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),172),Hk(t,n.e,s),uk(t,e),c=y.Math.max(c,t.r),s+=t.d+n.c,r=s;n.d=c,n.b=r}function MFn(n){var e,t;return t=cy(n),D4(t)?null:(e=(Pe(t),u(OBn(new ie(ce(t.a.Kc(),new En))),74)),Gr(u(N((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84)))}function bS(n){var e;return n.o||(e=n.uk(),e?n.o=new xW(n,n,null):n.al()?n.o=new dV(n,null):yb(Nr((Lu(),zi),n))==1?n.o=new VLn(n):n.o=new LN(n,null)),n.o}function Bke(n,e,t,i){var r,c,s,f,h;t.Xh(e)&&(r=(s=e,s?u(i,54).gi(s):null),r&&(h=t.Mh(e),f=e.t,f>1||f==-1?(c=u(h,15),r.Wb(g8e(n,c))):r.Wb(OR(n,u(h,58)))))}function Fke(n,e,t,i){LEn();var r=BF;function c(){for(var s=0;s<r.length;s++)r[s]()}if(n)try{Ose(c)()}catch(s){n(e,s)}else Ose(c)()}function _ke(n,e){var t,i,r,c;for(r=(c=new qa(n.b).a.vc().Kc(),new IE(c));r.a.Ob();)if(i=(t=u(r.a.Pb(),44),u(t.ld(),34)),yX(e,u(i,17))<0)return!1;return!0}function Hke(n,e){var t,i,r,c;for(r=(c=new qa(n.b).a.vc().Kc(),new IE(c));r.a.Ob();)if(i=(t=u(r.a.Pb(),44),u(t.ld(),34)),yX(e,u(i,17))>0)return!1;return!0}function qke(n){var e,t,i,r,c;for(i=new sd(new Ua(n.b).a);i.b;)t=Nb(i),e=u(t.ld(),10),c=u(u(t.md(),42).a,10),r=u(u(t.md(),42).b,8),tt(ff(e.n),tt(Fi(c.n),r))}function Uke(n){switch(u(v(n.b,(cn(),Vfn)),387).g){case 1:qt(_r(rc(new Cn(null,new On(n.d,16)),new ypn),new jpn),new Epn);break;case 2:BSe(n);break;case 0:pEe(n)}}function Gke(n,e,t){var i,r,c;for(i=t,!i&&(i=new op),i.Ug("Layout",n.a.c.length),c=new M(n.a);c.a<c.c.c.length;){if(r=u(E(c),47),i.$g())return;r.Kf(e,i.eh(1))}i.Vg()}function wd(){wd=R,Jq=new k6("V_TOP",0),m9=new k6("V_CENTER",1),p9=new k6("V_BOTTOM",2),Wq=new k6("H_LEFT",3),w9=new k6("H_CENTER",4),g9=new k6("H_RIGHT",5)}function HZ(n){var e;return n.Db&64?UC(n):(e=new ls(UC(n)),e.a+=" (abstract: ",ql(e,(n.Bb&256)!=0),e.a+=", interface: ",ql(e,(n.Bb&512)!=0),e.a+=")",e.a)}function zke(n){var e;n.c==null&&(e=x(n.b)===x(uun)?null:n.b,n.d=e==null?gu:MIn(e)?P1e(xOn(e)):Si(e)?ptn:Xa(wo(e)),n.a=n.a+": "+(MIn(e)?Cae(xOn(e)):e+""),n.c="("+n.d+") "+n.a)}function Xke(){function n(){try{return new Map().entries().next().done}catch{return!1}}return typeof Map===eK&&Map.prototype.entries&&n()?Map:NLe()}function Vke(n,e){var t,i,r,c;for(c=new xi(n.e,0),t=0;c.b<c.d.gc();){if(i=$((oe(c.b<c.d.gc()),B(c.d.Xb(c.c=c.b++)))),r=i-e,r>_B)return t;r>-1e-6&&++t}return t}function qZ(n,e){var t;e!=n.b?(t=null,n.b&&(t=AT(n.b,n,-4,t)),e&&(t=Wp(e,n,-4,t)),t=YRn(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,3,e,e))}function TFn(n,e){var t;e!=n.f?(t=null,n.f&&(t=AT(n.f,n,-1,t)),e&&(t=Wp(e,n,-1,t)),t=QRn(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,0,e,e))}function Wke(n,e,t,i){var r,c,s,f;return fo(n.e)&&(r=e.Lk(),f=e.md(),c=t.md(),s=V1(n,1,r,f,c,r.Jk()?Am(n,r,c,L(r,102)&&(u(r,19).Bb&hr)!=0):-1,!0),i?i.nj(s):i=s),i}function CFn(n){var e,t,i;if(n==null)return null;if(t=u(n,15),t.dc())return"";for(i=new Hl,e=t.Kc();e.Ob();)Er(i,(at(),Ae(e.Pb()))),i.a+=" ";return bN(i,i.a.length-1)}function SFn(n){var e,t,i;if(n==null)return null;if(t=u(n,15),t.dc())return"";for(i=new Hl,e=t.Kc();e.Ob();)Er(i,(at(),Ae(e.Pb()))),i.a+=" ";return bN(i,i.a.length-1)}function Jke(n,e,t){var i,r;return i=n.c[e.c.p][e.p],r=n.c[t.c.p][t.p],i.a!=null&&r.a!=null?tD(i.a,r.a):i.a!=null?-1:r.a!=null?1:0}function Qke(n,e,t){return t.Ug("Tree layout",1),H7(n.b),hf(n.b,(Qp(),NO),NO),hf(n.b,t9,t9),hf(n.b,i9,i9),hf(n.b,r9,r9),n.a=gy(n.b,e),Gke(n,e,t.eh(1)),t.Vg(),e}function Yke(n,e){var t,i,r,c,s,f;if(e)for(c=e.a.length,t=new Qa(c),f=(t.b-t.a)*t.c<0?(F1(),xa):new q1(t);f.Ob();)s=u(f.Pb(),17),r=N4(e,s.a),i=new Vkn(n),uge(i.a,r)}function Zke(n,e){var t,i,r,c,s,f;if(e)for(c=e.a.length,t=new Qa(c),f=(t.b-t.a)*t.c<0?(F1(),xa):new q1(t);f.Ob();)s=u(f.Pb(),17),r=N4(e,s.a),i=new Bkn(n),cge(i.a,r)}function nye(n){var e;if(n!=null&&n.length>0&&Xi(n,n.length-1)==33)try{return e=$Hn(qo(n,0,n.length-1)),e.e==null}catch(t){if(t=Ot(t),!L(t,33))throw T(t)}return!1}function eye(n,e,t){var i,r,c;switch(i=Hi(e),r=FC(i),c=new Ic,ic(c,e),t.g){case 1:gi(c,xk(zp(r)));break;case 2:gi(c,zp(r))}return U(c,(cn(),Fw),B(v(n,Fw))),c}function UZ(n){var e,t;return e=u(fe(new ie(ce(ji(n.a).a.Kc(),new En))),18),t=u(fe(new ie(ce(Qt(n.a).a.Kc(),new En))),18),on(un(v(e,(W(),zf))))||on(un(v(t,zf)))}function ow(){ow=R,gj=new s7("ONE_SIDE",0),zI=new s7("TWO_SIDES_CORNER",1),XI=new s7("TWO_SIDES_OPPOSING",2),GI=new s7("THREE_SIDES",3),UI=new s7("FOUR_SIDES",4)}function PFn(n,e){var t,i,r,c;for(c=new Z,r=0,i=e.Kc();i.Ob();){for(t=Y(u(i.Pb(),17).a+r);t.a<n.f&&!G0e(n,t.a);)t=Y(t.a+1),++r;if(t.a>=n.f)break;Fn(c.c,t)}return c}function tye(n,e){var t,i,r,c,s;for(c=new M(e.a);c.a<c.c.c.length;)for(r=u(E(c),10),i=new ie(ce(ji(r).a.Kc(),new En));pe(i);)t=u(fe(i),18),s=t.c.i.p,n.n[s]=n.n[s]-1}function iye(n){var e,t;for(t=new M(n.e.b);t.a<t.c.c.length;)e=u(E(t),30),YAe(n,e);qt(ut(rc(rc(new Cn(null,new On(n.e.b,16)),new l3n),new p3n),new m3n),new ckn(n))}function GZ(n,e){return e?n.mj(e)?!1:n.i?n.i.nj(e):L(e,152)?(n.i=u(e,152),!0):(n.i=new gvn,n.i.nj(e)):!1}function IFn(n,e,t){var i,r,c;return i=e.Lk(),c=e.md(),r=i.Jk()?V1(n,3,i,null,c,Am(n,i,c,L(i,102)&&(u(i,19).Bb&hr)!=0),!0):V1(n,1,i,i.ik(),c,-1,!0),t?t.nj(r):t=r,t}function rye(n){if(n=Rc(n,!0),Sn(nv,n)||Sn("1",n))return _n(),ov;if(Sn(cF,n)||Sn("0",n))return _n(),ga;throw T(new kL("Invalid boolean value: '"+n+"'"))}function zZ(n,e,t){var i,r,c;for(r=n.vc().Kc();r.Ob();)if(i=u(r.Pb(),44),c=i.ld(),x(e)===x(c)||e!=null&&rt(e,c))return t&&(i=new oM(i.ld(),i.md()),r.Qb()),i;return null}function cye(n){K0();var e,t,i;n.B.Hc((io(),sA))&&(i=n.f.i,e=new IT(n.a.c),t=new up,t.b=e.c-i.c,t.d=e.d-i.d,t.c=i.c+i.b-(e.c+e.b),t.a=i.d+i.a-(e.d+e.a),n.e.$f(t))}function OFn(n,e,t,i){var r,c,s;for(s=y.Math.min(t,_Un(u(n.b,68),e,t,i)),c=new M(n.a);c.a<c.c.c.length;)r=u(E(c),225),r!=e&&(s=y.Math.min(s,OFn(r,e,s,i)));return s}function XZ(n){var e,t,i,r;for(r=F(Qh,J,199,n.b.c.length,0,2),i=new xi(n.b,0);i.b<i.d.gc();)e=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),30)),t=i.b-1,r[t]=Y7(e.a);return r}function VZ(n,e,t){var i,r,c;i=u(Df(n.a,t),34),i!=null&&(c=u(Df(n.b,i),67),iw(c,t,!0)),r=u(Df(n.b,e),67),r||(r=new Mt,s1(n.b,e,r)),xt(r,t,r.c.b,r.c),s1(n.a,t,e)}function Wx(n,e,t,i,r){var c,s,f,h;for(s=Ehe(vz($V(O9e(t)),i),_7e(n,t,r)),h=h1(n,t).Kc();h.Ob();)f=u(h.Pb(),12),e[f.p]&&(c=e[f.p].i,nn(s.d,new ZN(c,CY(s,c))));GY(s)}function WZ(n,e){this.f=new de,this.b=new de,this.j=new de,this.a=n,this.c=e,this.c>0&&YBn(this,this.c-1,(en(),Zn)),this.c<this.a.length-1&&YBn(this,this.c+1,(en(),Wn))}function uye(n,e){var t,i,r,c,s;for(c=new M(e.d);c.a<c.c.c.length;)for(r=u(E(c),105),s=u(ee(n.c,r),118).o,i=new dp(r.b);i.a<i.c.a.length;)t=u(n5(i),64),QJ(r,t,s)}function JZ(n){n.length>0&&n[0].length>0&&(this.c=on(un(v(Hi(n[0][0]),(W(),ifn))))),this.a=F(jie,J,2117,n.length,0,2),this.b=F(Eie,J,2118,n.length,0,2),this.d=new zRn}function oye(n){return n.c.length==0?!1:(Nn(0,n.c.length),u(n.c[0],18)).c.i.k==(Vn(),Ti)?!0:Ag(_r(new Cn(null,new On(n,16)),new t3n),new i3n)}function AFn(n,e){var t,i,r,c,s,f,h;for(f=aw(e),c=e.f,h=e.g,s=y.Math.sqrt(c*c+h*h),r=0,i=new M(f);i.a<i.c.c.length;)t=u(E(i),27),r+=AFn(n,t);return y.Math.max(r,s)}function Ai(){Ai=R,Ia=new j6(n8,0),Qf=new j6("FREE",1),Fv=new j6("FIXED_SIDE",2),Ud=new j6("FIXED_ORDER",3),tl=new j6("FIXED_RATIO",4),qc=new j6("FIXED_POS",5)}function sye(n,e){var t,i,r;if(t=e.qi(n.a),t){for(r=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),ys)),i=1;i<(Lu(),rbn).length;++i)if(Sn(rbn[i],r))return i}return 0}function fye(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],pl(c,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function hye(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],pl(c,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function LFn(n){var e,t,i;for(i=new fd(ur,"{","}"),t=n.vc().Kc();t.Ob();)e=u(t.Pb(),44),pl(i,BLn(n,e.ld())+"="+BLn(n,e.md()));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function lye(n){for(var e,t,i,r;!t6(n.o);)t=u(Pp(n.o),42),i=u(t.a,125),e=u(t.b,218),r=HC(e,i),e.e==i?(BM(r.g,e),i.e=r.e+e.a):(BM(r.b,e),i.e=r.e-e.a),nn(n.e.a,i)}function QZ(n,e){var t,i,r;for(t=null,r=u(e.Kb(n),20).Kc();r.Ob();)if(i=u(r.Pb(),18),!t)t=i.c.i==n?i.d.i:i.c.i;else if((i.c.i==n?i.d.i:i.c.i)!=t)return!1;return!0}function NFn(n,e){var t,i,r,c,s;for(t=JHn(n,!1,e),r=new M(t);r.a<r.c.c.length;)i=u(E(r),132),i.d==0?($D(i,null),xD(i,null)):(c=i.a,s=i.b,$D(i,s),xD(i,c))}function aye(n){var e,t;return e=new ii,To(e,ire),t=u(v(n,(W(),Hc)),21),t.Hc((pr(),K8))&&To(e,ore),t.Hc(vv)&&To(e,rre),t.Hc(v2)&&To(e,ure),t.Hc(kv)&&To(e,cre),e}function YZ(n,e,t){var i,r,c,s,f;for(s8e(n),r=(n.k==null&&(n.k=F(zF,J,82,0,0,1)),n.k),c=0,s=r.length;c<s;++c)i=r[c],YZ(i);f=n.f,f&&YZ(f)}function dye(n){var e,t,i,r;for(nAe(n),t=new ie(ce(Ml(n).a.Kc(),new En));pe(t);)e=u(fe(t),18),i=e.c.i==n,r=i?e.d:e.c,i?Oi(e,null):Zi(e,null),U(e,(W(),ofn),r),SMe(n,r.i)}function bye(n,e,t,i){var r,c;switch(c=e.i,r=t[c.g][n.d[c.g]],c.g){case 1:r-=i+e.j.b,e.g.b=r;break;case 3:r+=i,e.g.b=r;break;case 4:r-=i+e.j.a,e.g.a=r;break;case 2:r+=i,e.g.a=r}}function wye(n){var e,t,i;for(t=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));t.e!=t.i.gc();)if(e=u(ue(t),27),i=cy(e),!pe(new ie(ce(i.a.Kc(),new En))))return e;return null}function wS(){wS=R,gq=new d7("OVERLAP_REMOVAL",0),dq=new d7(mVn,1),pq=new d7("ROTATION",2),bq=new d7("GRAPH_SIZE_CALCULATION",3),wq=new d7("OUTGOING_EDGE_ANGLES",4)}function gye(){var n;return Soe?u(Tm((B1(),Is),tv),2115):(n=u(L(Dc((B1(),Is),tv),569)?Dc(Is,tv):new jHn,569),Soe=!0,KAe(n),eDe(n),Hx(n),Lr(Is,tv,n),n)}function Jx(n,e,t){var i,r;if(n.j==0)return t;if(r=u(q$n(n,e,t),76),i=t.Lk(),!i.rk()||!n.a.am(i))throw T(new ec("Invalid entry feature '"+i.qk().zb+"."+i.xe()+"'"));return r}function pye(n,e){var t,i,r,c,s,f,h,l;for(f=n.a,h=0,l=f.length;h<l;++h)for(s=f[h],i=s,r=0,c=i.length;r<c;++r)if(t=i[r],x(e)===x(t)||e!=null&&rt(e,t))return!0;return!1}function mye(n){var e,t,i;return Ec(n,0)>=0?(t=Xk(n,QS),i=Kk(n,QS)):(e=U1(n,1),t=Xk(e,5e8),i=Kk(e,5e8),i=nr(Ks(i,1),vi(n,1))),lf(Ks(i,32),vi(t,mr))}function DFn(n,e,t){var i,r;switch(i=(oe(e.b!=0),u(Xo(e,e.a.a),8)),t.g){case 0:i.b=0;break;case 2:i.b=n.f;break;case 3:i.a=0;break;default:i.a=n.g}return r=ge(e,0),_7(r,i),e}function $Fn(n,e,t,i){var r,c,s,f,h;switch(h=n.b,c=e.d,s=c.j,f=oZ(s,h.d[s.g],t),r=tt(Fi(c.n),c.a),c.j.g){case 1:case 3:f.a+=r.a;break;case 2:case 4:f.b+=r.b}xt(i,f,i.c.b,i.c)}function vye(n,e,t){var i,r,c,s;for(s=qr(n.e,e,0),c=new JG,c.b=t,i=new xi(n.e,s);i.b<i.d.gc();)r=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),10)),r.p=t,nn(c.e,r),bo(i);return c}function kye(n,e,t,i){var r,c,s,f,h;for(r=null,c=0,f=new M(e);f.a<f.c.c.length;)s=u(E(f),27),h=s.i+s.g,n<s.j+s.f+i&&(r?t.i-h<t.i-c&&(r=s):r=s,c=r.i+r.g);return r?c+i:0}function yye(n,e,t,i){var r,c,s,f,h;for(c=null,r=0,f=new M(e);f.a<f.c.c.length;)s=u(E(f),27),h=s.j+s.f,n<s.i+s.g+i&&(c?t.j-h<t.j-r&&(c=s):c=s,r=c.j+c.f);return c?r+i:0}function jye(n){var e,t,i;for(e=!1,i=n.b.c.length,t=0;t<i;t++)tY(u(sn(n.b,t),443))?!e&&t+1<i&&tY(u(sn(n.b,t+1),443))&&(e=!0,u(sn(n.b,t),443).a=!0):e=!1}function Eye(n,e,t,i,r){var c,s;for(c=0,s=0;s<r;s++)c=nr(c,bs(vi(e[s],mr),vi(i[s],mr))),n[s]=Se(c),c=wb(c,32);for(;s<t;s++)c=nr(c,vi(e[s],mr)),n[s]=Se(c),c=wb(c,32)}function Mye(n,e){Sm();var t,i;for(i=(dh(),sI),t=n;e>1;e>>=1)e&1&&(i=Og(i,t)),t.d==1?t=Og(t,t):t=new QKn(pUn(t.a,t.d,F(ye,_e,28,t.d<<1,15,1)));return i=Og(i,t),i}function ZZ(){ZZ=R;var n,e,t,i;for(Nun=F(Ii,Cr,28,25,15,1),Dun=F(Ii,Cr,28,33,15,1),i=152587890625e-16,e=32;e>=0;e--)Dun[e]=i,i*=.5;for(t=1,n=24;n>=0;n--)Nun[n]=t,t*=.5}function Tye(n){var e,t;if(on(un(z(n,(cn(),Bw))))){for(t=new ie(ce(Sl(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),74),_b(e)&&on(un(z(e,Dd))))return!0}return!1}function xFn(n,e){var t,i,r;fi(n.f,e)&&(e.b=n,i=e.c,qr(n.j,i,0)!=-1||nn(n.j,i),r=e.d,qr(n.j,r,0)!=-1||nn(n.j,r),t=e.a.b,t.c.length!=0&&(!n.i&&(n.i=new iBn(n)),Ove(n.i,t)))}function Cye(n){var e,t,i,r,c;return t=n.c.d,i=t.j,r=n.d.d,c=r.j,i==c?t.p<r.p?0:1:BC(i)==c?0:SY(i)==c?1:(e=n.b,Su(e.b,BC(i))?0:1)}function gd(n){var e;this.d=new de,this.c=n.c,this.e=n.d,this.b=n.b,this.f=new hIn(n.e),this.a=n.a,n.f?this.g=n.f:this.g=(e=u(of(kA),9),new _o(e,u(xs(e,e.length),9),0))}function gS(n,e){var t,i,r,c,s,f;r=n,s=Y6(r,"layoutOptions"),!s&&(s=Y6(r,wWn)),s&&(f=s,i=null,f&&(i=(c=P$(f,F(fn,J,2,0,6,1)),new PL(f,c))),i&&(t=new ETn(f,e),qi(i,t)))}function Gr(n){if(L(n,207))return u(n,27);if(L(n,193))return Pf(u(n,123));throw T(n?new Fl("Only support nodes and ports."):new fp(MWn))}function Sye(n,e,t,i){return(e>=0&&Sn(n.substr(e,3),"GMT")||e>=0&&Sn(n.substr(e,3),"UTC"))&&(t[0]=e+3),Len(n,t,i)}function Pye(n,e){var t,i,r,c,s;for(c=n.g.a,s=n.g.b,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),72),r=t.n,r.a=c,n.i==(en(),Xn)?r.b=s+n.j.b-t.o.b:r.b=s,tt(r,e),c+=t.o.a+n.e}function RFn(n,e,t){if(n.b)throw T(new Ar("The task is already done."));return n.p!=null?!1:(n.p=e,n.r=t,n.k&&(n.o=(fl(),er(vc(Date.now()),d1))),!0)}function nnn(n){var e,t,i,r,c,s,f;return f=new sp,t=n.Pg(),r=t!=null,r&&j4(f,Eh,n.Pg()),i=n.xe(),c=i!=null,c&&j4(f,Qe,n.xe()),e=n.Og(),s=e!=null,s&&j4(f,"description",n.Og()),f}function KFn(n,e,t){var i,r,c;return c=n.q,n.q=e,n.Db&4&&!(n.Db&1)&&(r=new Mi(n,1,9,c,e),t?t.nj(r):t=r),e?(i=e.c,i!=n.r&&(t=n.Yk(i,t))):n.r&&(t=n.Yk(null,t)),t}function Iye(n,e,t){var i,r,c,s,f;for(t=(f=e,Wp(f,n.e,-1-n.c,t)),s=FW(n.a),c=(i=new sd(new Ua(s.a).a),new $E(i));c.a.b;)r=u(Nb(c.a).ld(),89),t=Dm(r,TS(r,n.a),t);return t}function Oye(n,e,t){var i,r,c,s,f;for(t=(f=e,AT(f,n.e,-1-n.c,t)),s=FW(n.a),c=(i=new sd(new Ua(s.a).a),new $E(i));c.a.b;)r=u(Nb(c.a).ld(),89),t=Dm(r,TS(r,n.a),t);return t}function Aye(n,e,t,i){var r,c,s;if(i==0)Oc(e,0,n,t,n.length-t);else for(s=32-i,n[n.length-1]=0,c=n.length-1;c>t;c--)n[c]|=e[c-t-1]>>>s,n[c-1]=e[c-t-1]<<i;for(r=0;r<t;r++)n[r]=0}function Lye(n){var e,t,i,r,c;for(e=0,t=0,c=n.Kc();c.Ob();)i=u(c.Pb(),117),e=y.Math.max(e,i.d.b),t=y.Math.max(t,i.d.c);for(r=n.Kc();r.Ob();)i=u(r.Pb(),117),i.d.b=e,i.d.c=t}function Nye(n){var e,t,i,r,c;for(t=0,e=0,c=n.Kc();c.Ob();)i=u(c.Pb(),117),t=y.Math.max(t,i.d.d),e=y.Math.max(e,i.d.a);for(r=n.Kc();r.Ob();)i=u(r.Pb(),117),i.d.d=t,i.d.a=e}function Qx(n,e,t,i,r){var c,s;c=u(Wr(ut(e.Oc(),new dpn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),Yk(c),s=u(od(n.b,t,i),15),r==0?s.cd(0,c):s.Gc(c)}function Dye(n,e,t){t.Ug("Grow Tree",1),n.b=e.f,on(un(v(e,(J4(),A8))))?(n.c=new kE,AAn(n,null)):n.c=new kE,n.a=!1,cqn(n,e.f),U(e,uon,(_n(),!!n.a)),t.Vg()}function enn(n){var e,t,i,r;for(e=null,r=new M(n.Rf());r.a<r.c.c.length;)i=u(E(r),187),t=new Ho(i.Lf().a,i.Lf().b,i.Mf().a,i.Mf().b),e?L5(e,t):e=t;return!e&&(e=new mp),e}function Yx(n,e,t,i){var r,c;return t==1?(!n.n&&(n.n=new q(Sr,n,1,7)),Xc(n.n,e,i)):(c=u($n((r=u(Un(n,16),29),r||n.ii()),t),69),c.wk().zk(n,iu(n),t-se(n.ii()),e,i))}function Zx(n,e,t){var i,r,c,s,f;for(i=t.gc(),n._i(n.i+i),f=n.i-e,f>0&&Oc(n.g,e,n.g,e+i,f),s=t.Kc(),n.i+=i,r=0;r<i;++r)c=s.Pb(),O6(n,e,n.Zi(e,c)),n.Mi(e,c),n.Ni(),++e;return i!=0}function Kf(n,e,t){var i;return e!=n.q?(n.q&&(t=AT(n.q,n,-10,t)),e&&(t=Wp(e,n,-10,t)),t=KFn(n,e,t)):n.Db&4&&!(n.Db&1)&&(i=new Mi(n,1,9,e,e),t?t.nj(i):t=i),t}function nR(n,e,t,i){return AV((t&wh)==0,"flatMap does not support SUBSIZED characteristic"),AV((t&4)==0,"flatMap does not support SORTED characteristic"),Pe(n),Pe(e),new TLn(n,e,t,i)}function $ye(n,e){PW(e,"Cannot suppress a null exception."),x7(e!=n,"Exception can not suppress itself."),!n.i&&(n.k==null?n.k=S(C(zF,1),J,82,0,[e]):n.k[n.k.length]=e)}function xye(n,e){var t;if(t=eCn(n.b.ag(),e.b.ag()),t!=0)return t;switch(n.b.ag().g){case 1:case 2:return jc(n.b.Nf(),e.b.Nf());case 3:case 4:return jc(e.b.Nf(),n.b.Nf())}return 0}function Rye(n){var e,t,i;for(i=n.e.c.length,n.a=Wa(ye,[J,_e],[53,28],15,[i,i],2),t=new M(n.c);t.a<t.c.c.length;)e=u(E(t),290),n.a[e.c.a][e.d.a]+=u(v(e,(Us(),k3)),17).a}function Kye(n,e){var t,i,r,c,s;if(n==null)return null;for(s=F(fs,gh,28,2*e,15,1),i=0,r=0;i<e;++i)t=n[i]>>4&15,c=n[i]&15,s[r++]=Ldn[t],s[r++]=Ldn[c];return ws(s,0,s.length)}function wu(n){var e,t;return n>=hr?(e=Py+(n-hr>>10&1023)&ui,t=56320+(n-hr&1023)&ui,String.fromCharCode(e)+(""+String.fromCharCode(t))):String.fromCharCode(n&ui)}function Bye(n,e){K0();var t,i,r,c;return r=u(u(ot(n.r,e),21),87),r.gc()>=2?(i=u(r.Kc().Pb(),117),t=n.u.Hc((zu(),S9)),c=n.u.Hc(K3),!i.a&&!t&&(r.gc()==2||c)):!1}function BFn(n,e,t,i,r){var c,s,f;for(c=Mqn(n,e,t,i,r),f=!1;!c;)ES(n,r,!0),f=!0,c=Mqn(n,e,t,i,r);f&&ES(n,r,!1),s=K$(r),s.c.length!=0&&(n.d&&n.d.Gg(s),BFn(n,r,t,i,s))}function pS(){pS=R,aU=new y6(kh,0),tdn=new y6("DIRECTED",1),rdn=new y6("UNDIRECTED",2),ndn=new y6("ASSOCIATION",3),idn=new y6("GENERALIZATION",4),edn=new y6("DEPENDENCY",5)}function Fye(n,e){var t;if(!Pf(n))throw T(new Ar(eWn));switch(t=Pf(n),e.g){case 1:return-(n.j+n.f);case 2:return n.i-t.g;case 3:return n.j-t.f;case 4:return-(n.i+n.g)}return 0}function _ye(n,e,t){var i,r,c;return i=e.Lk(),c=e.md(),r=i.Jk()?V1(n,4,i,c,null,Am(n,i,c,L(i,102)&&(u(i,19).Bb&hr)!=0),!0):V1(n,i.tk()?2:1,i,c,i.ik(),-1,!0),t?t.nj(r):t=r,t}function ym(n,e){var t,i;for(Jn(e),i=n.b.c.length,nn(n.b,e);i>0;){if(t=i,i=(i-1)/2|0,n.a.Ne(sn(n.b,i),e)<=0)return Go(n.b,t,e),!0;Go(n.b,t,sn(n.b,i))}return Go(n.b,i,e),!0}function tnn(n,e,t,i){var r,c;if(r=0,t)r=$C(n.a[t.g][e.g],i);else for(c=0;c<dI;c++)r=y.Math.max(r,$C(n.a[c][e.g],i));return e==(wf(),Wc)&&n.b&&(r=y.Math.max(r,n.b.a)),r}function Hye(n,e){var t,i,r,c,s,f;return r=n.i,c=e.i,!r||!c||r.i!=c.i||r.i==(en(),Zn)||r.i==(en(),Wn)?!1:(s=r.g.a,t=s+r.j.a,f=c.g.a,i=f+c.j.a,s<=i&&t>=f)}function FFn(n){switch(n.g){case 0:return new cmn;case 1:return new umn;default:throw T(new Gn("No implementation is available for the width approximator "+(n.f!=null?n.f:""+n.g)))}}function inn(n,e,t,i){var r;if(r=!1,Si(i)&&(r=!0,j4(e,t,Ae(i))),r||D0(i)&&(r=!0,inn(n,e,t,i)),r||L(i,242)&&(r=!0,nd(e,t,u(i,242))),!r)throw T(new vL(Lcn))}function qye(n,e){var t,i,r;if(t=e.qi(n.a),t&&(r=gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),vs),r!=null)){for(i=1;i<(Lu(),tbn).length;++i)if(Sn(tbn[i],r))return i}return 0}function Uye(n,e){var t,i,r;if(t=e.qi(n.a),t&&(r=gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),vs),r!=null)){for(i=1;i<(Lu(),ibn).length;++i)if(Sn(ibn[i],r))return i}return 0}function _Fn(n,e){var t,i,r,c;if(Jn(e),c=n.a.gc(),c<e.gc())for(t=n.a.ec().Kc();t.Ob();)i=t.Pb(),e.Hc(i)&&t.Qb();else for(r=e.Kc();r.Ob();)i=r.Pb(),n.a.Bc(i)!=null;return c!=n.a.gc()}function HFn(n){var e,t;switch(t=Fi(cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a]))),e=n.i.d,n.j.g){case 1:t.b-=e.d;break;case 2:t.a+=e.c;break;case 3:t.b+=e.a;break;case 4:t.a-=e.b}return t}function Gye(n){var e;for(e=(Hp(),u(fe(new ie(ce(ji(n).a.Kc(),new En))),18).c.i);e.k==(Vn(),Ti);)U(e,(W(),jj),(_n(),!0)),e=u(fe(new ie(ce(ji(e).a.Kc(),new En))),18).c.i}function eR(n,e,t,i){var r,c,s,f;for(f=g5(e,i),s=f.Kc();s.Ob();)r=u(s.Pb(),12),n.d[r.p]=n.d[r.p]+n.c[t.p];for(f=g5(t,i),c=f.Kc();c.Ob();)r=u(c.Pb(),12),n.d[r.p]=n.d[r.p]-n.c[e.p]}function rnn(n,e,t){var i,r;for(r=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));r.e!=r.i.gc();)i=u(ue(r),27),Bo(i,i.i+e,i.j+t);qi((!n.b&&(n.b=new q(Vt,n,12,3)),n.b),new aTn(e,t))}function zye(n,e,t,i){var r,c;for(c=e,r=c.d==null||n.a.Ne(t.d,c.d)>0?1:0;c.a[r]!=t;)c=c.a[r],r=n.a.Ne(t.d,c.d)>0?1:0;c.a[r]=i,i.b=t.b,i.a[0]=t.a[0],i.a[1]=t.a[1],t.a[0]=null,t.a[1]=null}function Xye(n){var e,t,i,r;for(e=new Z,t=F(so,Xh,28,n.a.c.length,16,1),TW(t,t.length),r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),125),t[i.d]||(Fn(e.c,i),sBn(n,i,t));return e}function qFn(n,e){var t,i,r,c,s;for(r=e==1?C_:T_,i=r.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),88),s=u(ot(n.f.c,t),21).Kc();s.Ob();)c=u(s.Pb(),42),du(n.b.b,c.b),du(n.b.a,u(c.b,86).d)}function Vye(n,e){var t;e.Ug("Hierarchical port position processing",1),t=n.b,t.c.length>0&&dUn((Nn(0,t.c.length),u(t.c[0],30)),n),t.c.length>1&&dUn(u(sn(t,t.c.length-1),30),n),e.Vg()}function Wye(n){zu();var e,t;return e=yt(Rl,S(C(oA,1),G,279,0,[Oa])),!(kk(NT(e,n))>1||(t=yt(S9,S(C(oA,1),G,279,0,[C9,K3])),kk(NT(t,n))>1))}function cnn(n,e){var t;t=Dc((B1(),Is),n),L(t,507)?Lr(Is,n,new NTn(this,e)):Lr(Is,n,this),tR(this,e),e==(o4(),Udn)?(this.wb=u(this,2038),u(e,2040)):this.wb=(G1(),Hn)}function Jye(n){var e,t,i;if(n==null)return null;for(e=null,t=0;t<A9.length;++t)try{return wMn(A9[t],n)}catch(r){if(r=Ot(r),L(r,33))i=r,e=i;else throw T(r)}throw T(new eC(e))}function UFn(){UFn=R,EQn=S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),MQn=S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])}function GFn(n){var e,t,i;e=Sn(typeof e,xK)?null:new Jbn,e&&(a4(),t=(i=900,i>=d1?"error":i>=900?"warn":i>=800?"info":"log"),nOn(t,n.a),n.b&&oen(e,t,n.b,"Exception: ",!0))}function v(n,e){var t,i;return i=(!n.q&&(n.q=new de),ee(n.q,e)),i??(t=e.Sg(),L(t,4)&&(t==null?(!n.q&&(n.q=new de),Kp(n.q,e)):(!n.q&&(n.q=new de),Ve(n.q,e,t))),t)}function Vi(){Vi=R,Vs=new o7("P1_CYCLE_BREAKING",0),Jh=new o7("P2_LAYERING",1),Ac=new o7("P3_NODE_ORDERING",2),Fc=new o7("P4_NODE_PLACEMENT",3),zr=new o7("P5_EDGE_ROUTING",4)}function Qye(n,e){i5();var t;if(n.c==e.c){if(n.b==e.b||rve(n.b,e.b)){if(t=Ile(n.b)?1:-1,n.a&&!e.a)return t;if(!n.a&&e.a)return-t}return jc(n.b.g,e.b.g)}else return bt(n.c,e.c)}function zFn(n,e){var t,i,r;if(onn(n,e))return!0;for(i=new M(e);i.a<i.c.c.length;)if(t=u(E(i),27),r=MFn(t),NS(n,t,r)||VRn(n,t)-n.g<=n.a)return!0;return!1}function Wk(){Wk=R,QO=(ER(),Q1n),Uq=sue,qq=oue,U1n=rue,Hq=uue,q1n=new fb(8),Qce=new Di((He(),M1),q1n),Yce=new Di(qd,8),Zce=W1n,_1n=nue,H1n=eue,Jce=new Di(zj,(_n(),!1))}function mS(){mS=R,ban=new fb(15),Tue=new Di((He(),M1),ban),Cue=new Di(qd,15),wan=new Di(Jj,Y(0)),lan=Lue,Eue=Hd,Mue=Ca,han=new Di(x2,$Vn),aan=Vj,dan=_2,Vq=Oue,jue=Gj}function Fh(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i!=1)throw T(new Gn(mF));return Gr(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84))}function XFn(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i!=1)throw T(new Gn(mF));return Mk(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84))}function VFn(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i!=1)throw T(new Gn(mF));return Mk(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))}function ra(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i!=1||(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i!=1)throw T(new Gn(mF));return Gr(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))}function unn(n,e,t){var i,r,c;if(++n.j,r=n.Ej(),e>=r||e<0)throw T(new Or(vF+e+Cd+r));if(t>=r||t<0)throw T(new Or(kF+t+Cd+r));return e!=t?i=(c=n.Cj(t),n.qj(e,c),c):i=n.xj(t),i}function WFn(n){var e,t,i;if(i=n,n)for(e=0,t=n.Eh();t;t=t.Eh()){if(++e>IK)return WFn(t);if(i=t,t==n)throw T(new Ar("There is a cycle in the containment hierarchy of "+n))}return i}function ca(n){var e,t,i;for(i=new fd(ur,"[","]"),t=n.Kc();t.Ob();)e=t.Pb(),pl(i,x(e)===x(n)?"(this Collection)":e==null?gu:Jr(e));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function onn(n,e){var t,i;if(i=!1,e.gc()<2)return!1;for(t=0;t<e.gc();t++)t<e.gc()-1?i=i|NS(n,u(e.Xb(t),27),u(e.Xb(t+1),27)):i=i|NS(n,u(e.Xb(t),27),u(e.Xb(0),27));return i}function JFn(n,e){var t;e!=n.a?(t=null,n.a&&(t=u(n.a,54).Th(n,4,Ef,t)),e&&(t=u(e,54).Rh(n,4,Ef,t)),t=mY(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,1,e,e))}function snn(n,e){var t;e!=n.e?(n.e&&KNn(FW(n.e),n),e&&(!e.b&&(e.b=new DE(new aL)),VSn(e.b,n)),t=oke(n,e,null),t&&t.oj()):n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,4,e,e))}function Yye(n,e){var t;t=e.o,hl(n.f)?(n.j.a=y.Math.max(n.j.a,t.a),n.j.b+=t.b,n.d.c.length>1&&(n.j.b+=n.e)):(n.j.a+=t.a,n.j.b=y.Math.max(n.j.b,t.b),n.d.c.length>1&&(n.j.a+=n.e))}function ua(){ua=R,une=S(C(lr,1),Tc,64,0,[(en(),Xn),Zn,ae]),cne=S(C(lr,1),Tc,64,0,[Zn,ae,Wn]),one=S(C(lr,1),Tc,64,0,[ae,Wn,Xn]),sne=S(C(lr,1),Tc,64,0,[Wn,Xn,Zn])}function Zye(n,e,t,i){var r,c,s,f,h,l,a;if(s=n.c.d,f=n.d.d,s.j!=f.j)for(a=n.b,r=s.j,h=null;r!=f.j;)h=e==0?BC(r):SY(r),c=oZ(r,a.d[r.g],t),l=oZ(h,a.d[h.g],t),Re(i,tt(c,l)),r=h}function nje(n,e,t,i){var r,c,s,f,h;return s=ZBn(n.a,e,t),f=u(s.a,17).a,c=u(s.b,17).a,i&&(h=u(v(e,(W(),Xu)),10),r=u(v(t,Xu),10),h&&r&&(FLn(n.b,h,r),f+=n.b.i,c+=n.b.e)),f>c}function QFn(n){var e,t,i,r,c,s,f,h,l;for(this.a=kBn(n),this.b=new Z,t=n,i=0,r=t.length;i<r;++i)for(e=t[i],c=new Z,nn(this.b,c),f=e,h=0,l=f.length;h<l;++h)s=f[h],nn(c,new _u(s.j))}function eje(n,e,t){var i,r,c;return c=0,i=t[e],e<t.length-1&&(r=t[e+1],n.b[e]?(c=YNe(n.d,i,r),c+=pD(n.a,i,(en(),Zn)),c+=pD(n.a,r,Wn)):c=N4e(n.a,i,r)),n.c[e]&&(c+=r4e(n.a,i)),c}function tje(n,e,t,i,r){var c,s,f,h;for(h=null,f=new M(i);f.a<f.c.c.length;)if(s=u(E(f),453),s!=t&&qr(s.e,r,0)!=-1){h=s;break}c=JD(r),Zi(c,t.b),Oi(c,h.b),In(n.a,r,new zM(c,e,t.f))}function ije(n){var e,t,i,r;if(vg(u(v(n.b,(cn(),Lo)),88)))return 0;for(e=0,i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),10),t.k==(Vn(),zt)&&(r=t.o.a,e=y.Math.max(e,r));return e}function YFn(n){for(;n.g.c!=0&&n.d.c!=0;)AN(n.g).c>AN(n.d).c?(n.i+=n.g.c,px(n.d)):AN(n.d).c>AN(n.g).c?(n.e+=n.d.c,px(n.g)):(n.i+=sIn(n.g),n.e+=sIn(n.d),px(n.g),px(n.d))}function rje(n,e,t){var i,r,c,s;for(c=e.q,s=e.r,new ed((af(),Ea),e,c,1),new ed(Ea,c,s,1),r=new M(t);r.a<r.c.c.length;)i=u(E(r),118),i!=c&&i!=e&&i!=s&&(zen(n.a,i,e),zen(n.a,i,s))}function ZFn(n,e,t,i){n.a.d=y.Math.min(e,t),n.a.a=y.Math.max(e,i)-n.a.d,e<t?(n.b=.5*(e+t),n.g=HB*n.b+.9*e,n.f=HB*n.b+.9*t):(n.b=.5*(e+i),n.g=HB*n.b+.9*i,n.f=HB*n.b+.9*e)}function cje(n){var e,t,i,r;if(n.b!=0){for(e=new Mt,r=ge(n,0);r.b!=r.d.c;)i=u(be(r),40),Ki(e,R$(i)),t=i.e,t.a=u(v(i,(pt(),$j)),17).a,t.b=u(v(i,xj),17).a;return e}return new Mt}function uje(n){switch(u(v(n,(cn(),ou)),171).g){case 1:U(n,ou,(Yo(),H8));break;case 2:U(n,ou,(Yo(),xw));break;case 3:U(n,ou,(Yo(),_8));break;case 4:U(n,ou,(Yo(),ya))}}function oje(n,e,t){var i;t.Ug("Self-Loop routing",1),i=$5e(e),IM(v(e,(JT(),b9))),qt(_r(ut(ut(rc(new Cn(null,new On(e.b,16)),new m2n),new v2n),new k2n),new y2n),new PMn(n,i)),t.Vg()}function jm(){jm=R,x8=new m6(kh,0),Gsn=new m6(s3,1),Vsn=new m6(f3,2),Xsn=new m6("LEFT_RIGHT_CONSTRAINT_LOCKING",3),zsn=new m6("LEFT_RIGHT_CONNECTION_LOCKING",4),Usn=new m6(WXn,5)}function n_n(n,e,t){var i,r,c,s,f,h,l;f=t.a/2,c=t.b/2,i=y.Math.abs(e.a-n.a),r=y.Math.abs(e.b-n.b),h=1,l=1,i>f&&(h=f/i),r>c&&(l=c/r),s=y.Math.min(h,l),n.a+=s*(e.a-n.a),n.b+=s*(e.b-n.b)}function sje(n,e,t,i,r){var c,s;for(s=!1,c=u(sn(t.b,0),27);RIe(n,e,c,i,r)&&(s=!0,Kke(t,c),t.b.c.length!=0);)c=u(sn(t.b,0),27);return t.b.c.length==0&&Gk(t.j,t),s&&fS(e.q),s}function fje(n,e){Vg();var t,i,r,c;if(e.b<2)return!1;for(c=ge(e,0),t=u(be(c),8),i=t;c.b!=c.d.c;){if(r=u(be(c),8),mR(n,i,r))return!0;i=r}return!!mR(n,i,t)}function fnn(n,e,t,i){var r,c;return t==0?(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),UM(n.o,e,i)):(c=u($n((r=u(Un(n,16),29),r||n.ii()),t),69),c.wk().Ak(n,iu(n),t-se(n.ii()),e,i))}function tR(n,e){var t;e!=n.sb?(t=null,n.sb&&(t=u(n.sb,54).Th(n,1,O9,t)),e&&(t=u(e,54).Rh(n,1,O9,t)),t=yY(n,e,t),t&&t.oj()):n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,4,e,e))}function hje(n,e){var t,i,r,c;if(e)r=yl(e,"x"),t=new Gkn(n),_4(t.a,(Jn(r),r)),c=yl(e,"y"),i=new zkn(n),q4(i.a,(Jn(c),c));else throw T(new eh("All edge sections need an end point."))}function lje(n,e){var t,i,r,c;if(e)r=yl(e,"x"),t=new Hkn(n),H4(t.a,(Jn(r),r)),c=yl(e,"y"),i=new qkn(n),U4(i.a,(Jn(c),c));else throw T(new eh("All edge sections need a start point."))}function aje(n,e){var t,i,r,c,s,f,h;for(i=SRn(n),c=0,f=i.length;c<f;++c)GFn(e);for(h=!Uf&&n.e?Uf?null:n.d:null;h;){for(t=SRn(h),r=0,s=t.length;r<s;++r)GFn(e);h=!Uf&&h.e?Uf?null:h.d:null}}function e_n(n,e){var t,i;i=u(v(e,(cn(),Ft)),101),U(e,(W(),sfn),i),t=e.e,t&&(qt(new Cn(null,new On(t.a,16)),new OG(n)),qt(rc(new Cn(null,new On(t.b,16)),new _U),new AG(n)))}function Vn(){Vn=R,zt=new b6("NORMAL",0),Ti=new b6("LONG_EDGE",1),Zt=new b6("EXTERNAL_PORT",2),_c=new b6("NORTH_SOUTH_PORT",3),Sc=new b6("LABEL",4),Gf=new b6("BREAKING_POINT",5)}function dje(n){var e,t,i,r;if(e=!1,kt(n,(W(),B8)))for(t=u(v(n,B8),85),r=new M(n.j);r.a<r.c.c.length;)i=u(E(r),12),jTe(i)&&(e||($Ee(Hi(n)),e=!0),P8e(u(t.xc(i),314)))}function bje(n){var e,t,i,r,c,s,f,h,l;return l=nnn(n),t=n.e,c=t!=null,c&&j4(l,FP,n.e),f=n.k,s=!!f,s&&j4(l,"type",PN(n.k)),i=Z9(n.j),r=!i,r&&(h=new _a,bf(l,pF,h),e=new ayn(h),qi(n.j,e)),l}function wje(n){var e,t,i,r;for(r=z1((Mo(n.gc(),"size"),new fg),123),i=!0,t=Ja(n).Kc();t.Ob();)e=u(t.Pb(),44),i||(r.a+=ur),i=!1,Lc(z1(Lc(r,e.ld()),61),e.md());return(r.a+="}",r).a}function t_n(n,e){var t,i,r;return e&=63,e<22?(t=n.l<<e,i=n.m<<e|n.l>>22-e,r=n.h<<e|n.m>>22-e):e<44?(t=0,i=n.l<<e-22,r=n.m<<e-22|n.l>>44-e):(t=0,i=0,r=n.l<<e-44),Yc(t&ro,i&ro,r&Ol)}function sw(n){if(dun==null&&(dun=new RegExp("^\\s*[+-]?(NaN|Infinity|((\\d+\\.?\\d*)|(\\.\\d+))([eE][+-]?\\d+)?[dDfF]?)\\s*$")),!dun.test(n))throw T(new th(Vb+n+'"'));return parseFloat(n)}function i_n(n,e){var t,i,r,c,s;for(r=e==1?C_:T_,i=r.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),88),s=u(ot(n.f.c,t),21).Kc();s.Ob();)c=u(s.Pb(),42),nn(n.b.b,u(c.b,86)),nn(n.b.a,u(c.b,86).d)}function gje(n,e){var t,i,r,c;for(c=e.b.j,n.a=F(ye,_e,28,c.c.length,15,1),r=0,i=0;i<c.c.length;i++)t=(Nn(i,c.c.length),u(c.c[i],12)),t.e.c.length==0&&t.g.c.length==0?r+=1:r+=3,n.a[i]=r}function vS(){vS=R,Z_=new g6("ALWAYS_UP",0),Y_=new g6("ALWAYS_DOWN",1),eH=new g6("DIRECTION_UP",2),nH=new g6("DIRECTION_DOWN",3),tH=new g6("SMART_UP",4),JI=new g6("SMART_DOWN",5)}function pje(n,e){if(n<0||e<0)throw T(new Gn("k and n must be positive"));if(e>n)throw T(new Gn("k must be smaller than n"));return e==0||e==n?1:n==0?0:xZ(n)/(xZ(e)*xZ(n-e))}function hnn(n,e){var t,i,r,c;for(t=new CX(n);t.g==null&&!t.c?rJ(t):t.g==null||t.i!=0&&u(t.g[t.i-1],51).Ob();)if(c=u(MS(t),58),L(c,167))for(i=u(c,167),r=0;r<e.length;r++)e[r].Kg(i)}function iR(n){var e;return n.Db&64?ox(n):(e=new ls(ox(n)),e.a+=" (height: ",hg(e,n.f),e.a+=", width: ",hg(e,n.g),e.a+=", x: ",hg(e,n.i),e.a+=", y: ",hg(e,n.j),e.a+=")",e.a)}function mje(n){var e,t,i,r,c,s,f;for(e=new Ql,i=n,r=0,c=i.length;r<c;++r)if(t=i[r],s=Pe(t.ld()),f=s1(e,s,Pe(t.md())),f!=null)throw T(new Gn("duplicate key: "+s));this.b=(Ln(),new eL(e))}function vje(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],pl(c,String.fromCharCode(e));return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function lnn(){lnn=R,don=(uC(),vI),BYn=new Tn(cP,don),Y(1),KYn=new Tn(Xtn,Y(300)),Y(0),HYn=new Tn(Vtn,Y(0)),qYn=new Tn(ZK,vh),FYn=new Tn(nB,5),UYn=vI,_Yn=m_}function kje(n,e){var t;if(e!=null&&!n.c.Hk().fk(e))throw t=L(e,58)?u(e,58).Dh().zb:Xa(wo(e)),T(new i4(ba+n.c.xe()+"'s type '"+n.c.Hk().xe()+"' does not permit a value of type '"+t+"'"))}function yje(n,e,t){var i,r;for(r=new xi(n.b,0);r.b<r.d.gc();)i=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),72)),x(v(i,(W(),ufn)))===x(e)&&(pnn(i.n,Hi(n.c.i),t),bo(r),nn(e.b,i))}function r_n(n){var e,t;return t=y.Math.sqrt((n.k==null&&(n.k=xQ(n,new Hpn)),$(n.k)/(n.b*(n.g==null&&(n.g=Exn(n,new VU)),$(n.g))))),e=Se(vc(y.Math.round(t))),e=y.Math.min(e,n.f),e}function jje(){var n,e,t;for(e=0,n=0;n<1;n++){if(t=Fnn((zn(n,1),"X".charCodeAt(n))),t==0)throw T(new Ne((zn(n,2),"Unknown Option: "+"X".substr(n))));e|=t}return e}function Ic(){Au(),mV.call(this),this.j=(en(),sc),this.a=new Ni,new sL,this.f=(Mo(2,mw),new Gc(2)),this.e=(Mo(4,mw),new Gc(4)),this.g=(Mo(4,mw),new Gc(4)),this.b=new OMn(this.e,this.g)}function Eje(n,e){var t,i;return!(on(un(v(e,(W(),zf))))||(i=e.c.i,n==(Yo(),_8)&&i.k==(Vn(),Sc))||(t=u(v(i,(cn(),ou)),171),t==ya))}function Mje(n,e){var t,i;return!(on(un(v(e,(W(),zf))))||(i=e.d.i,n==(Yo(),H8)&&i.k==(Vn(),Sc))||(t=u(v(i,(cn(),ou)),171),t==xw))}function Tje(n,e){var t,i,r,c,s,f,h;for(s=n.d,h=n.o,f=new Ho(-s.b,-s.d,s.b+h.a+s.c,s.d+h.b+s.a),i=e,r=0,c=i.length;r<c;++r)t=i[r],t&&L5(f,t.i);s.b=-f.c,s.d=-f.d,s.c=f.b-s.b-h.a,s.a=f.a-s.d-h.b}function Cje(n,e){if(e.a)switch(u(v(e.b,(W(),sfn)),101).g){case 0:case 1:Uke(e);case 2:qt(new Cn(null,new On(e.d,16)),new UU),PMe(n.a,e)}else qt(new Cn(null,new On(e.d,16)),new UU)}function Jk(){Jk=R,R1n=new w7("CENTER_DISTANCE",0),Fq=new w7("CIRCLE_UNDERLAP",1),B1n=new w7("RECTANGLE_UNDERLAP",2),_q=new w7("INVERTED_OVERLAP",3),K1n=new w7("MINIMUM_ROOT_DISTANCE",4)}function Sje(n){ben();var e,t,i,r,c;if(n==null)return null;for(i=n.length,r=i*2,e=F(fs,gh,28,r,15,1),t=0;t<i;t++)c=n[t],c<0&&(c+=256),e[t*2]=PA[c>>4],e[t*2+1]=PA[c&15];return ws(e,0,e.length)}function Pje(n){yT();var e,t,i;switch(i=n.c.length,i){case 0:return rQn;case 1:return e=u(K_n(new M(n)),44),y0e(e.ld(),e.md());default:return t=u(Rf(n,F(Id,WS,44,n.c.length,0,1)),173),new fz(t)}}function Ije(n){var e,t,i,r,c,s;for(e=new Mg,t=new Mg,W1(e,n),W1(t,n);t.b!=t.c;)for(r=u(Pp(t),36),s=new M(r.a);s.a<s.c.c.length;)c=u(E(s),10),c.e&&(i=c.e,W1(e,i),W1(t,i));return e}function h1(n,e){switch(e.g){case 1:return Mp(n.j,(Au(),Kon));case 2:return Mp(n.j,(Au(),xon));case 3:return Mp(n.j,(Au(),Fon));case 4:return Mp(n.j,(Au(),_on));default:return Ln(),Ln(),sr}}function Oje(n,e){var t,i,r;t=b0e(e,n.e),i=u(ee(n.g.f,t),17).a,r=n.a.c.length-1,n.a.c.length!=0&&u(sn(n.a,r),294).c==i?(++u(sn(n.a,r),294).a,++u(sn(n.a,r),294).b):nn(n.a,new hSn(i))}function Aje(n,e,t){var i,r;return i=XSe(n,e,t),i!=0?i:kt(e,(W(),dt))&&kt(t,dt)?(r=jc(u(v(e,dt),17).a,u(v(t,dt),17).a),r<0?hy(n,e,t):r>0&&hy(n,t,e),r):pMe(n,e,t)}function oa(){oa=R,fce=(He(),D3),hce=qd,cce=Hd,uce=_2,oce=Ca,rce=F2,Jln=Wj,sce=Ww,vq=(Men(),Xre),kq=Vre,Yln=Yre,yq=ece,Zln=Zre,n1n=nce,Qln=Wre,_O=Jre,HO=Qre,Rj=tce,e1n=ice,Wln=zre}function c_n(n,e){var t,i,r,c,s;if(n.e<=e||Z2e(n,n.g,e))return n.g;for(c=n.r,i=n.g,s=n.r,r=(c-i)/2+i;i+1<c;)t=G5(n,r,!1),t.b<=r&&t.a<=e?(s=r,c=r):i=r,r=(c-i)/2+i;return s}function Lje(n,e,t){var i;i=Cqn(n,e,!0),RFn(t,"Recursive Graph Layout",i),hnn(e,S(C(can,1),Kn,536,0,[new j8n])),Nf(e,(He(),q2))||hnn(e,S(C(can,1),Kn,536,0,[new Cmn])),ltn(n,e,null,t),u_n(t)}function u_n(n){var e;if(n.p==null)throw T(new Ar("The task has not begun yet."));n.b||(n.k&&(e=(fl(),er(vc(Date.now()),d1)),n.q=id(bs(e,n.o))*1e-9),n.c<n.r&&EQ(n,n.r-n.c),n.b=!0)}function Qk(n){var e,t,i;for(i=new Tu,Re(i,new V(n.j,n.k)),t=new ne((!n.a&&(n.a=new ti(xo,n,5)),n.a));t.e!=t.i.gc();)e=u(ue(t),377),Re(i,new V(e.a,e.b));return Re(i,new V(n.b,n.c)),i}function Nje(n,e,t,i,r){var c,s,f,h,l,a;if(r)for(h=r.a.length,c=new Qa(h),a=(c.b-c.a)*c.c<0?(F1(),xa):new q1(c);a.Ob();)l=u(a.Pb(),17),f=N4(r,l.a),s=new AOn(n,e,t,i),eIe(s.a,s.b,s.c,s.d,f)}function ann(n,e){var t;if(x(n)===x(e))return!0;if(L(e,21)){t=u(e,21);try{return n.gc()==t.gc()&&n.Ic(t)}catch(i){if(i=Ot(i),L(i,169)||L(i,212))return!1;throw T(i)}}return!1}function rR(n,e,t,i,r,c){switch(this.c=n,e.g){case 2:if(n.a.Ne(r,t)<0)throw T(new Gn(Ttn+r+Wzn+t));break;case 1:n.a.Ne(r,r);break;case 3:n.a.Ne(t,t)}this.f=e,this.b=t,this.a=i,this.e=r,this.d=c}function dnn(n,e){var t;nn(n.d,e),t=e.Mf(),n.c?(n.e.a=y.Math.max(n.e.a,t.a),n.e.b+=t.b,n.d.c.length>1&&(n.e.b+=n.a)):(n.e.a+=t.a,n.e.b=y.Math.max(n.e.b,t.b),n.d.c.length>1&&(n.e.a+=n.a))}function Dje(n){var e,t,i,r;switch(r=n.i,e=r.b,i=r.j,t=r.g,r.a.g){case 0:t.a=(n.g.b.o.a-i.a)/2;break;case 1:t.a=e.d.n.a+e.d.a.a;break;case 2:t.a=e.d.n.a+e.d.a.a-i.a;break;case 3:t.b=e.d.n.b+e.d.a.b}}function $je(n,e,t){var i,r,c;for(r=new ie(ce(Ml(t).a.Kc(),new En));pe(r);)i=u(fe(r),18),!fr(i)&&!(!fr(i)&&i.c.i.c==i.d.i.c)&&(c=WHn(n,i,t,new Zyn),c.c.length>1&&Fn(e.c,c))}function o_n(n,e,t,i,r){if(i<e||r<t)throw T(new Gn("The highx must be bigger then lowx and the highy must be bigger then lowy"));return n.a<e?n.a=e:n.a>i&&(n.a=i),n.b<t?n.b=t:n.b>r&&(n.b=r),n}function xje(n){if(L(n,143))return dCe(u(n,143));if(L(n,233))return i8e(u(n,233));if(L(n,23))return bje(u(n,23));throw T(new Gn(Ncn+ca(new Fu(S(C(ki,1),Kn,1,5,[n])))))}function Rje(n,e,t,i,r){var c,s,f;for(c=!0,s=0;s<i;s++)c=c&t[s]==0;if(r==0)Oc(t,i,n,0,e),s=e;else{for(f=32-r,c=c&t[s]<<f==0,s=0;s<e-1;s++)n[s]=t[s+i]>>>r|t[s+i+1]<<f;n[s]=t[s+i]>>>r,++s}return c}function bnn(n,e,t,i){var r,c,s;if(e.k==(Vn(),Ti)){for(c=new ie(ce(ji(e).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),s=r.c.i.k,s==Ti&&n.c.a[r.c.i.c.p]==i&&n.c.a[e.c.p]==t)return!0}return!1}function Kje(n,e){var t,i,r,c;return e&=63,t=n.h&Ol,e<22?(c=t>>>e,r=n.m>>e|t<<22-e,i=n.l>>e|n.m<<22-e):e<44?(c=0,r=t>>>e-22,i=n.m>>e-22|n.h<<44-e):(c=0,r=0,i=t>>>e-44),Yc(i&ro,r&ro,c&Ol)}function s_n(n,e,t,i){var r;this.b=i,this.e=n==(Ab(),Z8),r=e[t],this.d=Wa(so,[J,Xh],[183,28],16,[r.length,r.length],2),this.a=Wa(ye,[J,_e],[53,28],15,[r.length,r.length],2),this.c=new WZ(e,t)}function Bje(n){var e,t,i;for(n.k=new oJ((en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,n.j.c.length),i=new M(n.j);i.a<i.c.c.length;)t=u(E(i),113),e=t.d.j,In(n.k,e,t);n.e=ZTe(Cp(n.k))}function f_n(n,e){var t,i,r;fi(n.d,e),t=new _3n,Ve(n.c,e,t),t.f=tx(e.c),t.a=tx(e.d),t.d=(K5(),r=e.c.i.k,r==(Vn(),zt)||r==Gf),t.e=(i=e.d.i.k,i==zt||i==Gf),t.b=e.c.j==(en(),Wn),t.c=e.d.j==Zn}function Fje(n){var e,t,i,r,c;for(c=et,r=et,i=new M(xg(n));i.a<i.c.c.length;)t=u(E(i),218),e=t.e.e-t.d.e,t.e==n&&e<r?r=e:e<c&&(c=e);return r==et&&(r=-1),c==et&&(c=-1),new bi(Y(r),Y(c))}function _je(n,e){var t,i,r;return r=i2,i=(C5(),fj),r=y.Math.abs(n.b),t=y.Math.abs(e.f-n.b),t<r&&(r=t,i=gI),t=y.Math.abs(n.a),t<r&&(r=t,i=hj),t=y.Math.abs(e.g-n.a),t<r&&(r=t,i=wI),i}function Hje(n,e){var t,i,r,c;for(t=e.a.o.a,c=new Jl(Hi(e.a).b,e.c,e.f+1),r=new zv(c);r.b<r.d.gc();)if(i=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),30)),i.c.a>=t)return Em(n,e,i.p),!0;return!1}function Ug(n,e,t,i){var r,c,s,f,h,l;for(s=t.length,c=0,r=-1,l=e$n((zn(e,n.length+1),n.substr(e)),(xN(),Aun)),f=0;f<s;++f)h=t[f].length,h>c&&awe(l,e$n(t[f],Aun))&&(r=f,c=h);return r>=0&&(i[0]=e+c),r}function h_n(n){var e;return n.Db&64?iR(n):(e=new mo(jcn),!n.a||Be(Be((e.a+=' "',e),n.a),'"'),Be(tb(Be(tb(Be(tb(Be(tb((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function l_n(n,e,t){var i,r,c,s,f;for(f=ru(n.e.Dh(),e),r=u(n.g,124),i=0,s=0;s<n.i;++s)if(c=r[s],f.am(c.Lk())){if(i==t)return dw(n,s),dr(),u(e,69).xk()?c:c.md();++i}throw T(new Or(p8+t+Cd+i))}function a_n(n){var e,t,i;if(e=n.c,e==2||e==7||e==1)return nt(),nt(),F9;for(i=otn(n),t=null;(e=n.c)!=2&&e!=7&&e!=1;)t||(t=(nt(),nt(),new P6(1)),pd(t,i),i=t),pd(t,otn(n));return i}function qje(n,e,t){return n<0||n>t?Mnn(n,t,"start index"):e<0||e>t?Mnn(e,t,"end index"):B5("end index (%s) must not be less than start index (%s)",S(C(ki,1),Kn,1,5,[Y(e),Y(n)]))}function d_n(n,e){var t,i,r,c;for(i=0,r=n.length;i<r;i++){c=n[i];try{c[1]?c[0].Um()&&(e=V0e(e,c)):c[0].Um()}catch(s){if(s=Ot(s),L(s,82))t=s,HE(),xge(L(t,486)?u(t,486).ke():t);else throw T(s)}}return e}function Em(n,e,t){var i,r,c;for(t!=e.c+e.b.gc()&&fOe(e.a,Tve(e,t-e.c)),c=e.a.c.p,n.a[c]=y.Math.max(n.a[c],e.a.o.a),r=u(v(e.a,(W(),F8)),15).Kc();r.Ob();)i=u(r.Pb(),72),U(i,$_,(_n(),!0))}function Uje(n,e){var t,i,r;r=yCe(e),U(e,(W(),aH),r),r&&(i=et,wr(n.f,r)&&(i=u(Fr(wr(n.f,r)),17).a),t=u(sn(e.g,0),18),on(un(v(t,zf)))||Ve(n,r,Y(y.Math.min(u(v(t,dt),17).a,i))))}function b_n(n,e,t){var i,r,c,s,f;for(e.p=-1,f=Rb(e,(gr(),Jc)).Kc();f.Ob();)for(s=u(f.Pb(),12),r=new M(s.g);r.a<r.c.c.length;)i=u(E(r),18),c=i.d.i,e!=c&&(c.p<0?t.Fc(i):c.p>0&&b_n(n,c,t));e.p=0}function ln(n){var e;this.c=new Mt,this.f=n.e,this.e=n.d,this.i=n.g,this.d=n.c,this.b=n.b,this.k=n.j,this.a=n.a,n.i?this.j=n.i:this.j=(e=u(of(Zh),9),new _o(e,u(xs(e,e.length),9),0)),this.g=n.f}function Gje(n){var e,t,i,r;for(e=z1(Be(new mo("Predicates."),"and"),40),t=!0,r=new zv(n);r.b<r.d.gc();)i=(oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++)),t||(e.a+=","),e.a+=""+i,t=!1;return(e.a+=")",e).a}function w_n(n,e,t){var i,r,c;if(!(t<=e+2))for(r=(t-e)/2|0,i=0;i<r;++i)c=(Nn(e+i,n.c.length),u(n.c[e+i],12)),Go(n,e+i,(Nn(t-i-1,n.c.length),u(n.c[t-i-1],12))),Nn(t-i-1,n.c.length),n.c[t-i-1]=c}function zje(n,e,t){var i,r,c,s,f,h,l,a;c=n.d.p,f=c.e,h=c.r,n.g=new L7(h),s=n.d.o.c.p,i=s>0?f[s-1]:F(Qh,b1,10,0,0,1),r=f[s],l=s<f.length-1?f[s+1]:F(Qh,b1,10,0,0,1),a=e==t-1,a?LD(n.g,r,l):LD(n.g,i,r)}function g_n(n){var e;this.j=new Z,this.f=new ni,this.b=(e=u(of(lr),9),new _o(e,u(xs(e,e.length),9),0)),this.d=F(ye,_e,28,(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,15,1),this.g=n}function p_n(n,e){var t,i,r;if(e.c.length!=0){for(t=zFn(n,e),r=!1;!t;)ES(n,e,!0),r=!0,t=zFn(n,e);r&&ES(n,e,!1),i=K$(e),n.b&&n.b.Gg(i),n.a=VRn(n,(Nn(0,e.c.length),u(e.c[0],27))),p_n(n,i)}}function cR(n,e){var t,i,r;if(i=$n(n.Dh(),e),t=e-n.ji(),t<0)if(i)if(i.rk())r=n.Ih(i),r>=0?n.ki(r):Pnn(n,i);else throw T(new Gn(ba+i.xe()+b8));else throw T(new Gn(aWn+e+dWn));else Wo(n,t,i)}function wnn(n){var e,t;if(t=null,e=!1,L(n,211)&&(e=!0,t=u(n,211).a),e||L(n,263)&&(e=!0,t=""+u(n,263).a),e||L(n,493)&&(e=!0,t=""+u(n,493).a),!e)throw T(new vL(Lcn));return t}function gnn(n,e,t){var i,r,c,s,f,h;for(h=ru(n.e.Dh(),e),i=0,f=n.i,r=u(n.g,124),s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk())){if(t==i)return s;++i,f=s+1}if(t==i)return f;throw T(new Or(p8+t+Cd+i))}function Xje(n,e){var t,i,r,c;if(n.f.c.length==0)return null;for(c=new mp,i=new M(n.f);i.a<i.c.c.length;)t=u(E(i),72),r=t.o,c.b=y.Math.max(c.b,r.a),c.a+=r.b;return c.a+=(n.f.c.length-1)*e,c}function Vje(n){var e,t,i,r;for(t=new Mt,Ki(t,n.o),i=new YG;t.b!=0;)e=u(t.b==0?null:(oe(t.b!=0),Xo(t,t.a.a)),515),r=ezn(n,e,!0),r&&nn(i.a,e);for(;i.a.c.length!=0;)e=u($Rn(i),515),ezn(n,e,!1)}function l1(){l1=R,uan=new wp(n8,0),yi=new wp("BOOLEAN",1),Zr=new wp("INT",2),$2=new wp("STRING",3),Qi=new wp("DOUBLE",4),It=new wp("ENUM",5),N3=new wp("ENUMSET",6),Vf=new wp("OBJECT",7)}function L5(n,e){var t,i,r,c,s;i=y.Math.min(n.c,e.c),c=y.Math.min(n.d,e.d),r=y.Math.max(n.c+n.b,e.c+e.b),s=y.Math.max(n.d+n.a,e.d+e.a),r<i&&(t=i,i=r,r=t),s<c&&(t=c,c=s,s=t),LPn(n,i,c,r-i,s-c)}function m_n(n,e){var t,i;if(n.f){for(;e.Ob();)if(t=u(e.Pb(),76),i=t.Lk(),L(i,102)&&u(i,19).Bb&kc&&(!n.e||i.pk()!=Hv||i.Lj()!=0)&&t.md()!=null)return e.Ub(),!0;return!1}else return e.Ob()}function v_n(n,e){var t,i;if(n.f){for(;e.Sb();)if(t=u(e.Ub(),76),i=t.Lk(),L(i,102)&&u(i,19).Bb&kc&&(!n.e||i.pk()!=Hv||i.Lj()!=0)&&t.md()!=null)return e.Pb(),!0;return!1}else return e.Sb()}function Lu(){Lu=R,ibn=S(C(fn,1),J,2,6,[Xcn,Qy,YP,IJn,ZP,PF,FP]),tbn=S(C(fn,1),J,2,6,[Xcn,"empty",Qy,Jy,"elementOnly"]),rbn=S(C(fn,1),J,2,6,[Xcn,"preserve","replace",vf]),zi=new DPn}function pnn(n,e,t){var i,r,c;if(e!=t){i=e;do tt(n,i.c),r=i.e,r&&(c=i.d,ab(n,c.b,c.d),tt(n,r.n),i=Hi(r));while(r);i=t;do mi(n,i.c),r=i.e,r&&(c=i.d,N6(n,c.b,c.d),mi(n,r.n),i=Hi(r));while(r)}}function uR(n,e,t,i){var r,c,s,f,h;if(i.f.c+i.i.c==0)for(s=n.a[n.c],f=0,h=s.length;f<h;++f)c=s[f],Ve(i,c,new Axn(n,c,t));return r=u(Fr(wr(i.f,e)),677),r.b=0,r.c=r.f,r.c==0||r9n(u(sn(r.a,r.b),294)),r}function Yp(){Yp=R,bv=new w6("MEDIAN_LAYER",0),D8=new w6("TAIL_LAYER",1),dv=new w6("HEAD_LAYER",2),Dw=new w6("SPACE_EFFICIENT_LAYER",3),p2=new w6("WIDEST_LAYER",4),g2=new w6("CENTER_LAYER",5)}function mnn(n){var e,t,i,r;for(n.e=0,r=ge(n.f,0);r.b!=r.d.c;)i=u(be(r),10),i.p>=n.d.b.c.length&&(e=new Nc(n.d),e.p=i.p-1,nn(n.d.b,e),t=new Nc(n.d),t.p=i.p,nn(n.d.b,t)),$i(i,u(sn(n.d.b,i.p),30))}function vnn(n,e,t){var i,r,c;if(!n.b[e.g]){for(n.b[e.g]=!0,i=t,!i&&(i=new tk),Re(i.b,e),c=n.a[e.g].Kc();c.Ob();)r=u(c.Pb(),65),r.b!=e&&vnn(n,r.b,i),r.c!=e&&vnn(n,r.c,i),Re(i.a,r);return i}return null}function Wje(n){switch(n.g){case 0:case 1:case 2:return en(),Xn;case 3:case 4:case 5:return en(),ae;case 6:case 7:case 8:return en(),Wn;case 9:case 10:case 11:return en(),Zn;default:return en(),sc}}function Jje(n,e){var t;return n.c.length==0?!1:(t=LKn((Nn(0,n.c.length),u(n.c[0],18)).c.i),ko(),t==(cw(),I2)||t==P2?!0:Ag(_r(new Cn(null,new On(n,16)),new r3n),new Y7n(e)))}function oR(n,e){if(L(e,207))return Ule(n,u(e,27));if(L(e,193))return Gle(n,u(e,123));if(L(e,452))return qle(n,u(e,166));throw T(new Gn(Ncn+ca(new Fu(S(C(ki,1),Kn,1,5,[e])))))}function k_n(n,e,t){var i,r;if(this.f=n,i=u(ee(n.b,e),260),r=i?i.a:0,RJ(t,r),t>=(r/2|0))for(this.e=i?i.c:null,this.d=r;t++<r;)t$n(this);else for(this.c=i?i.b:null;t-- >0;)oQ(this);this.b=e,this.a=null}function Qje(n,e){var t,i;e.a?ACe(n,e):(t=u(OL(n.b,e.b),60),t&&t==n.a[e.b.f]&&t.a&&t.a!=e.b.a&&t.c.Fc(e.b),i=u(IL(n.b,e.b),60),i&&n.a[i.f]==e.b&&i.a&&i.a!=e.b.a&&e.b.c.Fc(i),EN(n.b,e.b))}function y_n(n,e){var t,i;if(t=u(Mr(n.b,e),127),u(u(ot(n.r,e),21),87).dc()){t.n.b=0,t.n.c=0;return}t.n.b=n.C.b,t.n.c=n.C.c,n.A.Hc((go(),Gd))&&Xqn(n,e),i=T9e(n,e),kR(n,e)==(Kg(),Pa)&&(i+=2*n.w),t.a.a=i}function j_n(n,e){var t,i;if(t=u(Mr(n.b,e),127),u(u(ot(n.r,e),21),87).dc()){t.n.d=0,t.n.a=0;return}t.n.d=n.C.d,t.n.a=n.C.a,n.A.Hc((go(),Gd))&&Vqn(n,e),i=M9e(n,e),kR(n,e)==(Kg(),Pa)&&(i+=2*n.w),t.a.b=i}function Yje(n,e){var t,i,r,c;for(c=new Z,i=new M(e);i.a<i.c.c.length;)t=u(E(i),68),nn(c,new Gz(t,!0)),nn(c,new Gz(t,!1));r=new JOn(n),r.a.a.$b(),lLn(c,n.b,new Fu(S(C(RQn,1),Kn,693,0,[r])))}function E_n(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;return h=n.a,p=n.b,l=e.a,m=e.b,a=t.a,k=t.b,d=i.a,j=i.b,c=h*m-p*l,s=a*j-k*d,r=(h-l)*(k-j)-(p-m)*(a-d),f=(c*(a-d)-s*(h-l))/r,g=(c*(k-j)-s*(p-m))/r,new V(f,g)}function Zje(n,e){var t,i,r;e.Ug("End label pre-processing",1),t=$(B(v(n,(cn(),C2)))),i=$(B(v(n,qw))),r=vg(u(v(n,Lo),88)),qt(rc(new Cn(null,new On(n.b,16)),new Kwn),new pPn(t,i,r)),e.Vg()}function knn(n,e){var t,i,r;if(!n.d[e.p]){for(n.d[e.p]=!0,n.a[e.p]=!0,i=new ie(ce(Qt(e).a.Kc(),new En));pe(i);)t=u(fe(i),18),!fr(t)&&(r=t.d.i,n.a[r.p]?nn(n.b,t):knn(n,r));n.a[e.p]=!1}}function M_n(n,e,t){var i;switch(i=0,u(v(e,(cn(),ou)),171).g){case 2:i=2*-t+n.a,++n.a;break;case 1:i=-t;break;case 3:i=t;break;case 4:i=2*t+n.b,++n.b}return kt(e,(W(),dt))&&(i+=u(v(e,dt),17).a),i}function T_n(n,e,t){var i,r,c;for(t.zc(e,n),nn(n.n,e),c=n.p.zg(e),e.j==n.p.Ag()?kKn(n.e,c):kKn(n.j,c),mT(n),r=$h(Eo(S(C(Ao,1),Kn,20,0,[new e4(e),new ip(e)])));pe(r);)i=u(fe(r),12),t._b(i)||T_n(n,i,t)}function nEe(n,e,t){var i,r,c;for(t.Ug("Processor set neighbors",1),n.a=e.b.b==0?1:e.b.b,r=null,i=ge(e.b,0);!r&&i.b!=i.d.c;)c=u(be(i),40),on(un(v(c,(pt(),Ta))))&&(r=c);r&&Iqn(n,new sl(r),t),t.Vg()}function ynn(n){var e,t,i;return t=u(z(n,(He(),Hd)),21),t.Hc((go(),Qw))?(i=u(z(n,Ca),21),e=new rr(u(z(n,_2),8)),i.Hc((io(),_v))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e):new Ni}function jnn(n){var e,t,i;if(!n.b){for(i=new Evn,t=new yp(U5(n));t.e!=t.i.gc();)e=u(Tx(t),19),e.Bb&kc&&ve(i,e);ew(i),n.b=new pg((u(N(H((G1(),Hn).o),8),19),i.i),i.g),Zu(n).b&=-9}return n.b}function fw(n){var e,t,i;for(t=n.length,i=0;i<t&&(zn(i,n.length),n.charCodeAt(i)<=32);)++i;for(e=t;e>i&&(zn(e-1,n.length),n.charCodeAt(e-1)<=32);)--e;return i>0||e<t?(Ri(i,e,n.length),n.substr(i,e-i)):n}function eEe(n,e){var t,i,r,c,s,f,h,l;h=u(S5(Cp(e.k),F(lr,Tc,64,2,0,1)),126),l=e.g,t=DLn(e,h[0]),r=NLn(e,h[1]),i=Fx(n,l,t,r),c=DLn(e,h[1]),f=NLn(e,h[0]),s=Fx(n,l,c,f),i<=s?(e.a=t,e.c=r):(e.a=c,e.c=f)}function Yk(n){var e;Ln();var t,i,r,c,s,f;if(L(n,59))for(c=0,r=n.gc()-1;c<r;++c,--r)e=n.Xb(c),n.hd(c,n.Xb(r)),n.hd(r,e);else for(t=n.ed(),s=n.fd(n.gc());t.Tb()<s.Vb();)i=t.Pb(),f=s.Ub(),t.Wb(f),s.Wb(i)}function kS(n,e){var t,i,r,c,s,f;for(f=0,c=new Mg,W1(c,e);c.b!=c.c;)for(s=u(Pp(c),219),f+=VBn(s.d,s.e),r=new M(s.b);r.a<r.c.c.length;)i=u(E(r),36),t=u(sn(n.b,i.p),219),t.s||(f+=kS(n,t));return f}function C_n(n,e,t,i,r){var c,s,f,h,l;if(e)for(f=e.Kc();f.Ob();)for(s=u(f.Pb(),10),l=men(s,(gr(),Jc),t).Kc();l.Ob();)h=u(l.Pb(),12),c=u(Fr(wr(r.f,h)),118),c||(c=new yk(n.d),Fn(i.c,c),T_n(c,h,r))}function S_n(n,e,t){var i,r;zxn(this),e==(Tb(),Ma)?fi(this.r,n.c):fi(this.w,n.c),t==Ma?fi(this.r,n.d):fi(this.w,n.d),f_n(this,n),i=tx(n.c),r=tx(n.d),ZFn(this,i,r,r),this.o=(K5(),y.Math.abs(i-r)<.2)}function P_n(n,e,t){var i,r,c,s,f,h;if(f=u(Un(n.a,8),2035),f!=null)for(r=f,c=0,s=r.length;c<s;++c)null.Um();i=t,n.a.Db&1||(h=new tOn(n,t,e),i.dj(h)),L(i,686)?u(i,686).fj(n.a):i.cj()==n.a&&i.ej(null)}function tEe(){var n;return kse?u(Tm((B1(),Is),Pd),2044):(LLe(),n=u(L(Dc((B1(),Is),Pd),594)?Dc(Is,Pd):new dOn,594),kse=!0,mNe(n),ZNe(n),Ve(($z(),qdn),n,new I6n),Hx(n),Lr(Is,Pd,n),n)}function iEe(n,e,t,i){var r;return r=Ug(n,t,S(C(fn,1),J,2,6,[vK,kK,yK,jK,EK,MK,TK]),e),r<0&&(r=Ug(n,t,S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),e)),r<0?!1:(i.d=r,!0)}function rEe(n,e,t,i){var r;return r=Ug(n,t,S(C(fn,1),J,2,6,[vK,kK,yK,jK,EK,MK,TK]),e),r<0&&(r=Ug(n,t,S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),e)),r<0?!1:(i.d=r,!0)}function Vc(n,e,t){var i,r,c,s;if(s=n.b.Ce(e),r=(i=n.a.get(s),i??F(ki,Kn,1,0,5,1)),r.length==0)n.a.set(s,r);else if(c=KRn(n,e,r),c)return c.nd(t);return $t(r,r.length,new oM(e,t)),++n.c,++n.b.g,null}function cEe(n){var e,t,i;for(pTe(n),i=new Z,t=new M(n.a.a.b);t.a<t.c.c.length;)e=u(E(t),86),nn(i,new Vz(e,!0)),nn(i,new Vz(e,!1));z9e(n.c),Q7(i,n.b,new Fu(S(C(aj,1),Kn,382,0,[n.c]))),OMe(n)}function Zk(n,e){var t,i,r;for(r=new Z,i=new M(n.c.a.b);i.a<i.c.c.length;)t=u(E(i),60),e.Lb(t)&&(nn(r,new _z(t,!0)),nn(r,new _z(t,!1)));G9e(n.e),lLn(r,n.d,new Fu(S(C(RQn,1),Kn,693,0,[n.e])))}function uEe(n){var e,t,i,r;for(t=new de,r=new M(n.d);r.a<r.c.c.length;)i=u(E(r),187),e=u(i.of((W(),T3)),18),wr(t.f,e)||Ve(t,e,new qOn(e)),nn(u(Fr(wr(t.f,e)),466).b,i);return new _u(new ol(t))}function oEe(n,e){var t,i,r,c,s;for(i=new dLn(n.j.c.length),t=null,c=new M(n.j);c.a<c.c.c.length;)r=u(E(c),12),r.j!=t&&(i.b==i.c||qHn(i,t,e),TJ(i),t=r.j),s=THn(r),s&&vJ(i,s);i.b==i.c||qHn(i,t,e)}function sEe(n,e){var t,i,r;for(i=new xi(n.b,0);i.b<i.d.gc();)t=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),72)),r=u(v(t,(cn(),Sh)),278),r==($f(),Jw)&&(bo(i),nn(e.b,t),kt(t,(W(),T3))||U(t,T3,n))}function fEe(n){var e,t,i,r,c;for(e=wl(new ie(ce(Qt(n).a.Kc(),new En))),r=new ie(ce(ji(n).a.Kc(),new En));pe(r);)i=u(fe(r),18),t=i.c.i,c=wl(new ie(ce(Qt(t).a.Kc(),new En))),e=y.Math.max(e,c);return Y(e)}function Enn(n,e,t){var i,r,c;i=u(z(n,(He(),Gj)),21),r=0,c=0,e.a>t.a&&(i.Hc((wd(),w9))?r=(e.a-t.a)/2:i.Hc(g9)&&(r=e.a-t.a)),e.b>t.b&&(i.Hc((wd(),m9))?c=(e.b-t.b)/2:i.Hc(p9)&&(c=e.b-t.b)),rnn(n,r,c)}function I_n(n,e,t,i,r,c,s,f,h,l,a,d,g){L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,t),n.f=s,hm(n,f),am(n,h),fm(n,l),lm(n,a),u1(n,d),dm(n,g),c1(n,!0),e1(n,r),n.Zk(c),ad(n,e),i!=null&&(n.i=null,kC(n,i))}function Mnn(n,e,t){if(n<0)return B5(Czn,S(C(ki,1),Kn,1,5,[t,Y(n)]));if(e<0)throw T(new Gn(Szn+e));return B5("%s (%s) must not be greater than size (%s)",S(C(ki,1),Kn,1,5,[t,Y(n),Y(e)]))}function Tnn(n,e,t,i,r,c){var s,f,h,l;if(s=i-t,s<7){z5e(e,t,i,c);return}if(h=t+r,f=i+r,l=h+(f-h>>1),Tnn(e,n,h,l,-r,c),Tnn(e,n,l,f,-r,c),c.Ne(n[l-1],n[l])<=0){for(;t<i;)$t(e,t++,n[h++]);return}n5e(n,h,l,f,e,t,i,c)}function hEe(n,e){var t,i,r,c,s,f,h;for(h=e.d,r=e.b.j,f=new M(h);f.a<f.c.c.length;)for(s=u(E(f),105),c=F(so,Xh,28,r.c.length,16,1),Ve(n.b,s,c),t=s.a.d.p-1,i=s.c.d.p;t!=i;)t=(t+1)%r.c.length,c[t]=!0}function lEe(n,e){if(kQ(),kt(n,(W(),dt))&&kt(e,dt))return jc(u(v(n,dt),17).a,u(v(e,dt),17).a);throw T(new hp("The BF model order layer assigner requires all real nodes to have a model order."))}function aEe(n,e){if(yQ(),kt(n,(W(),dt))&&kt(e,dt))return jc(u(v(n,dt),17).a,u(v(e,dt),17).a);throw T(new hp("The DF model order layer assigner requires all real nodes to have a model order."))}function dEe(n,e){for(n.r=new yk(n.p),cfe(n.r,n),Ki(n.r.j,n.j),vo(n.j),Re(n.j,e),Re(n.r.e,e),mT(n),mT(n.r);n.f.c.length!=0;)MCn(u(sn(n.f,0),132));for(;n.k.c.length!=0;)MCn(u(sn(n.k,0),132));return n.r}function sR(n,e,t){var i,r,c;if(r=$n(n.Dh(),e),i=e-n.ji(),i<0)if(r)if(r.rk())c=n.Ih(r),c>=0?n.bi(c,t):een(n,r,t);else throw T(new Gn(ba+r.xe()+b8));else throw T(new Gn(aWn+e+dWn));else Jo(n,i,r,t)}function O_n(n){var e,t;if(n.f){for(;n.n>0;){if(e=u(n.k.Xb(n.n-1),76),t=e.Lk(),L(t,102)&&u(t,19).Bb&kc&&(!n.e||t.pk()!=Hv||t.Lj()!=0)&&e.md()!=null)return!0;--n.n}return!1}else return n.n>0}function A_n(n){var e,t,i,r;if(t=u(n,54)._h(),t)try{if(i=null,e=Tm((B1(),Is),gUn(r8e(t))),e&&(r=e.ai(),r&&(i=r.Fl(che(t.e)))),i&&i!=n)return A_n(i)}catch(c){if(c=Ot(c),!L(c,63))throw T(c)}return n}function bEe(n,e,t){var i,r,c;t.Ug("Remove overlaps",1),t.dh(e,$rn),i=u(z(e,(Cg(),L2)),27),n.f=i,n.a=Sx(u(z(e,(oa(),Rj)),300)),r=B(z(e,(He(),qd))),pG(n,(Jn(r),r)),c=aw(i),KGn(n,e,c,t),t.dh(e,LP)}function wEe(n){var e,t,i;if(on(un(z(n,(He(),Xj))))){for(i=new Z,t=new ie(ce(Sl(n).a.Kc(),new En));pe(t);)e=u(fe(t),74),_b(e)&&on(un(z(e,nU)))&&Fn(i.c,e);return i}else return Ln(),Ln(),sr}function L_n(n){if(!n)return Ljn(),dQn;var e=n.valueOf?n.valueOf():n;if(e!==n){var t=VF[typeof e];return t?t(e):bY(typeof e)}else return n instanceof Array||n instanceof y.Array?new lG(n):new U9(n)}function N_n(n,e,t){var i,r,c;switch(c=n.o,i=u(Mr(n.p,t),252),r=i.i,r.b=ty(i),r.a=ey(i),r.b=y.Math.max(r.b,c.a),r.b>c.a&&!e&&(r.b=c.a),r.c=-(r.b-c.a)/2,t.g){case 1:r.d=-r.a;break;case 3:r.d=c.b}NR(i),DR(i)}function D_n(n,e,t){var i,r,c;switch(c=n.o,i=u(Mr(n.p,t),252),r=i.i,r.b=ty(i),r.a=ey(i),r.a=y.Math.max(r.a,c.b),r.a>c.b&&!e&&(r.a=c.b),r.d=-(r.a-c.b)/2,t.g){case 4:r.c=-r.b;break;case 2:r.c=c.a}NR(i),DR(i)}function gEe(n,e){var t,i,r,c,s;if(!e.dc()){if(r=u(e.Xb(0),131),e.gc()==1){lqn(n,r,r,1,0,e);return}for(t=1;t<e.gc();)(r.j||!r.o)&&(c=j7e(e,t),c&&(i=u(c.a,17).a,s=u(c.b,131),lqn(n,r,s,t,i,e),t=i+1,r=s))}}function pEe(n){var e,t,i,r,c,s;for(s=new _u(n.d),Yt(s,new kpn),e=(LS(),S(C(Tsn,1),G,276,0,[F_,q_,B_,z_,H_,__,G_,U_])),t=0,c=new M(s);c.a<c.c.c.length;)r=u(E(c),105),i=e[t%e.length],gMe(r,i),++t}function mEe(n,e){Vg();var t,i,r,c;if(e.b<2)return!1;for(c=ge(e,0),t=u(be(c),8),i=t;c.b!=c.d.c;){if(r=u(be(c),8),!(W4(n,i)&&W4(n,r)))return!1;i=r}return!!(W4(n,i)&&W4(n,t))}function Cnn(n,e){var t,i,r,c,s,f,h,l,a,d;return a=null,d=n,s=yl(d,"x"),t=new Jkn(e),J4e(t.a,s),f=yl(d,"y"),i=new Qkn(e),Q4e(i.a,f),h=yl(d,dF),r=new Ykn(e),Y4e(r.a,h),l=yl(d,aF),c=new Zkn(e),a=(Z4e(c.a,l),l),a}function hw(n,e){Uqn(n,e),n.b&1&&(n.a.a=null),n.b&2&&(n.a.f=null),n.b&4&&(n.a.g=null,n.a.i=null),n.b&16&&(n.a.d=null,n.a.e=null),n.b&8&&(n.a.b=null),n.b&32&&(n.a.j=null,n.a.c=null)}function vEe(n,e){var t,i,r;if(r=0,e.length>0)try{r=So(e,Wi,et)}catch(c){throw c=Ot(c),L(c,130)?(i=c,T(new eC(i))):T(c)}return t=(!n.a&&(n.a=new iL(n)),n.a),r<t.i&&r>=0?u(N(t,r),58):null}function kEe(n,e){if(n<0)return B5(Czn,S(C(ki,1),Kn,1,5,["index",Y(n)]));if(e<0)throw T(new Gn(Szn+e));return B5("%s (%s) must be less than size (%s)",S(C(ki,1),Kn,1,5,["index",Y(n),Y(e)]))}function yEe(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),C6(c.a,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function jEe(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),C6(c.a,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function EEe(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),C6(c.a,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function MEe(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),C6(c.a,""+e);return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function $_n(n,e){var t,i,r,c,s,f;for(t=n.b.c.length,r=sn(n.b,e);e*2+1<t&&(i=(c=2*e+1,s=c+1,f=c,s<t&&n.a.Ne(sn(n.b,s),sn(n.b,c))<0&&(f=s),f),!(n.a.Ne(r,sn(n.b,i))<0));)Go(n.b,e,sn(n.b,i)),e=i;Go(n.b,e,r)}function fR(n,e,t){var i,r;return i=t.d,r=t.e,n.g[i.d]<=n.i[e.d]&&n.i[e.d]<=n.i[i.d]&&n.g[r.d]<=n.i[e.d]&&n.i[e.d]<=n.i[r.d]?!(n.i[i.d]<n.i[r.d]):n.i[i.d]<n.i[r.d]}function TEe(n,e){var t;if(t=u(v(e,(cn(),U8)),322),t!=n)throw T(new hp("The hierarchy aware processor "+t+" in child node "+e+" is only allowed if the root node specifies the same hierarchical processor."))}function CEe(n,e){var t,i,r,c,s;for(i=(!e.s&&(e.s=new q(ku,e,21,17)),e.s),c=null,r=0,s=i.i;r<s;++r)switch(t=u(N(i,r),179),yb(Nr(n,t))){case 2:case 3:!c&&(c=new Z),Fn(c.c,t)}return c||(Ln(),Ln(),sr)}function x_n(n,e,t){var i,r,c,s,f,h;for(h=Pt,c=new M(nqn(n.b));c.a<c.c.c.length;)for(r=u(E(c),177),f=new M(nqn(e.b));f.a<f.c.c.length;)s=u(E(f),177),i=Wve(r.a,r.b,s.a,s.b,t),h=y.Math.min(h,i);return h}function gi(n,e){if(!e)throw T(new rp);if(n.j=e,!n.d)switch(n.j.g){case 1:n.a.a=n.o.a/2,n.a.b=0;break;case 2:n.a.a=n.o.a,n.a.b=n.o.b/2;break;case 3:n.a.a=n.o.a/2,n.a.b=n.o.b;break;case 4:n.a.a=0,n.a.b=n.o.b/2}}function SEe(n,e){var t,i,r;return L(e.g,10)&&u(e.g,10).k==(Vn(),Zt)?Pt:(r=xp(e),r?y.Math.max(0,n.b/2-.5):(t=Ig(e),t?(i=$(B(rw(t,(cn(),g0)))),y.Math.max(0,i/2-.5)):Pt))}function PEe(n,e){var t,i,r;return L(e.g,10)&&u(e.g,10).k==(Vn(),Zt)?Pt:(r=xp(e),r?y.Math.max(0,n.b/2-.5):(t=Ig(e),t?(i=$(B(rw(t,(cn(),g0)))),y.Math.max(0,i/2-.5)):Pt))}function IEe(n,e){Rs();var t,i,r,c,s,f;for(t=null,s=e.Kc();s.Ob();)c=u(s.Pb(),131),!c.o&&(i=f1e(c.a),r=w0e(c.a),f=new q5(i,r,null,u(c.d.a.ec().Kc().Pb(),18)),nn(f.c,c.a),Fn(n.c,f),t&&nn(t.d,f),t=f)}function OEe(n){var e,t,i,r,c,s;for(s=g5(n.d,n.e),c=s.Kc();c.Ob();)for(r=u(c.Pb(),12),i=n.e==(en(),Wn)?r.e:r.g,t=new M(i);t.a<t.c.c.length;)e=u(E(t),18),!fr(e)&&e.c.i.c!=e.d.i.c&&(Oje(n,e),++n.f,++n.c)}function R_n(n,e){var t,i;if(e.dc())return Ln(),Ln(),sr;for(i=new Z,nn(i,Y(Wi)),t=1;t<n.f;++t)n.a==null&&qqn(n),n.a[t]&&nn(i,Y(t));return i.c.length==1?(Ln(),Ln(),sr):(nn(i,Y(et)),FIe(e,i))}function AEe(n,e){var t,i,r,c,s,f,h;s=e.c.i.k!=(Vn(),zt),h=s?e.d:e.c,t=F7e(e,h).i,r=u(ee(n.k,h),125),i=n.i[t.p].a,tPn(h.i)<(t.c?qr(t.c.a,t,0):-1)?(c=r,f=i):(c=i,f=r),qs(Ns(Ls(Ds(As(new hs,0),4),c),f))}function LEe(n,e,t){var i,r,c,s,f,h;if(t)for(r=t.a.length,i=new Qa(r),f=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),h=Rx(n,Zp(J0(t,s.a))),h&&(c=(!e.b&&(e.b=new Dn(he,e,4,7)),e.b),ve(c,h))}function NEe(n,e,t){var i,r,c,s,f,h;if(t)for(r=t.a.length,i=new Qa(r),f=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),h=Rx(n,Zp(J0(t,s.a))),h&&(c=(!e.c&&(e.c=new Dn(he,e,5,8)),e.c),ve(c,h))}function ny(n,e,t){var i,r;i=e.a&n.f,e.b=n.b[i],n.b[i]=e,r=e.f&n.f,e.d=n.c[r],n.c[r]=e,t?(e.e=t.e,e.e?e.e.c=e:n.a=e,e.c=t.c,e.c?e.c.e=e:n.e=e):(e.e=n.e,e.c=null,n.e?n.e.c=e:n.a=e,n.e=e),++n.i,++n.g}function K_n(n){var e,t,i;if(e=n.Pb(),!n.Ob())return e;for(i=Lc(Be(new x1,"expected one element but was: <"),e),t=0;t<4&&n.Ob();t++)Lc((i.a+=ur,i),n.Pb());throw n.Ob()&&(i.a+=", ..."),i.a+=">",T(new Gn(i.a))}function DEe(n){var e,t;return t=-n.a,e=S(C(fs,1),gh,28,15,[43,48,48,48,48]),t<0&&(e[0]=45,t=-t),e[1]=e[1]+((t/60|0)/10|0)&ui,e[2]=e[2]+(t/60|0)%10&ui,e[3]=e[3]+(t%60/10|0)&ui,e[4]=e[4]+t%10&ui,ws(e,0,e.length)}function Snn(n){var e,t,i,r;for(n.g=new y5(u(Pe(lr),297)),i=0,t=(en(),Xn),e=0;e<n.j.c.length;e++)r=u(sn(n.j,e),12),r.j!=t&&(i!=e&&Ip(n.g,t,new bi(Y(i),Y(e))),t=r.j,i=e);Ip(n.g,t,new bi(Y(i),Y(e)))}function $Ee(n){var e,t,i,r,c,s,f;for(i=0,t=new M(n.b);t.a<t.c.c.length;)for(e=u(E(t),30),c=new M(e.a);c.a<c.c.c.length;)for(r=u(E(c),10),r.p=i++,f=new M(r.j);f.a<f.c.c.length;)s=u(E(f),12),s.p=i++}function Pnn(n,e){var t,i,r;if(r=Qg((Lu(),zi),n.Dh(),e),r)dr(),u(r,69).xk()||(r=$p(Nr(zi,r))),i=(t=n.Ih(r),u(t>=0?n.Lh(t,!0,!0):Hb(n,r,!0),160)),u(i,220).Zl(e);else throw T(new Gn(ba+e.xe()+b8))}function Inn(n){var e,t;return n>-0x800000000000&&n<0x800000000000?n==0?0:(e=n<0,e&&(n=-n),t=wi(y.Math.floor(y.Math.log(n)/.6931471805599453)),(!e||n!=y.Math.pow(2,t))&&++t,t):Qxn(vc(n))}function xEe(n){var e,t,i,r,c,s,f;for(c=new rh,t=new M(n);t.a<t.c.c.length;)e=u(E(t),132),s=e.a,f=e.b,!(c.a._b(s)||c.a._b(f))&&(r=s,i=f,s.e.b+s.j.b>2&&f.e.b+f.j.b<=2&&(r=f,i=s),c.a.zc(r,c),r.q=i);return c}function REe(n,e,t){t.Ug("Eades radial",1),t.dh(e,LP),n.d=u(z(e,(Cg(),L2)),27),n.c=$(B(z(e,(oa(),HO)))),n.e=Sx(u(z(e,Rj),300)),n.a=a8e(u(z(e,e1n),434)),n.b=Lke(u(z(e,Qln),354)),bke(n),t.dh(e,LP)}function KEe(n,e){if(e.Ug("Target Width Setter",1),Nf(n,(Bf(),Nq)))ht(n,(_h(),Xw),B(z(n,Nq)));else throw T(new _l("A target width has to be set if the TargetWidthWidthApproximator should be used."));e.Vg()}function B_n(n,e){var t,i,r;return i=new Cl(n),Ur(i,e),U(i,(W(),cO),e),U(i,(cn(),Ft),(Ai(),qc)),U(i,Ch,(Bh(),nA)),Ha(i,(Vn(),Zt)),t=new Ic,ic(t,i),gi(t,(en(),Wn)),r=new Ic,ic(r,i),gi(r,Zn),i}function F_n(n){switch(n.g){case 0:return new gL((Ab(),Aj));case 1:return new i8n;case 2:return new r8n;default:throw T(new Gn("No implementation is available for the crossing minimizer "+(n.f!=null?n.f:""+n.g)))}}function __n(n,e){var t,i,r,c,s;for(n.c[e.p]=!0,nn(n.a,e),s=new M(e.j);s.a<s.c.c.length;)for(c=u(E(s),12),i=new Lf(c.b);tc(i.a)||tc(i.b);)t=u(tc(i.a)?E(i.a):E(i.b),18),r=K8e(c,t).i,n.c[r.p]||__n(n,r)}function H_n(n){var e,t,i,r,c,s,f;for(s=0,t=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));t.e!=t.i.gc();)e=u(ue(t),27),f=e.g,r=e.f,i=y.Math.sqrt(f*f+r*r),s=y.Math.max(i,s),c=H_n(e),s=y.Math.max(c,s);return s}function zu(){zu=R,Oa=new E6("OUTSIDE",0),Rl=new E6("INSIDE",1),tE=new E6("NEXT_TO_PORT_IF_POSSIBLE",2),S9=new E6("ALWAYS_SAME_SIDE",3),C9=new E6("ALWAYS_OTHER_SAME_SIDE",4),K3=new E6("SPACE_EFFICIENT",5)}function q_n(n,e,t){var i,r,c,s,f,h;return i=_pe(n,(r=(K1(),c=new Yv,c),t&&PS(r,t),r),e),X4(i,bl(e,Eh)),gS(e,i),YMe(e,i),Cnn(e,i),s=e,f=Sb(s,"ports"),h=new CTn(n,i),xTe(h.a,h.b,f),_$(n,e,i),Uve(n,e,i),i}function BEe(n){var e,t;return t=-n.a,e=S(C(fs,1),gh,28,15,[43,48,48,58,48,48]),t<0&&(e[0]=45,t=-t),e[1]=e[1]+((t/60|0)/10|0)&ui,e[2]=e[2]+(t/60|0)%10&ui,e[4]=e[4]+(t%60/10|0)&ui,e[5]=e[5]+t%10&ui,ws(e,0,e.length)}function FEe(n){var e;return e=S(C(fs,1),gh,28,15,[71,77,84,45,48,48,58,48,48]),n<=0&&(e[3]=43,n=-n),e[4]=e[4]+((n/60|0)/10|0)&ui,e[5]=e[5]+(n/60|0)%10&ui,e[7]=e[7]+(n%60/10|0)&ui,e[8]=e[8]+n%10&ui,ws(e,0,e.length)}function _Ee(n){var e,t,i,r,c;if(n==null)return gu;for(c=new fd(ur,"[","]"),t=n,i=0,r=t.length;i<r;++i)e=t[i],c.a?Be(c.a,c.b):c.a=new mo(c.d),C6(c.a,""+_6(e));return c.a?c.e.length==0?c.a.a:c.a.a+(""+c.e):c.c}function Onn(n,e){var t,i,r;for(r=et,i=new M(xg(e));i.a<i.c.c.length;)t=u(E(i),218),t.f&&!n.c[t.c]&&(n.c[t.c]=!0,r=y.Math.min(r,Onn(n,HC(t,e))));return n.i[e.d]=n.j,n.g[e.d]=y.Math.min(r,n.j++),n.g[e.d]}function U_n(n,e){var t,i,r;for(r=u(u(ot(n.r,e),21),87).Kc();r.Ob();)i=u(r.Pb(),117),i.e.b=(t=i.b,t.pf((He(),oo))?t.ag()==(en(),Xn)?-t.Mf().b-$(B(t.of(oo))):$(B(t.of(oo))):t.ag()==(en(),Xn)?-t.Mf().b:0)}function HEe(n){var e,t,i,r,c,s,f;for(t=PX(n.e),c=ch(N6(Fi(SX(n.e)),n.d*n.a,n.c*n.b),-.5),e=t.a-c.a,r=t.b-c.b,f=0;f<n.c;f++){for(i=e,s=0;s<n.d;s++)t8e(n.e,new Ho(i,r,n.a,n.b))&&xS(n,s,f,!1,!0),i+=n.a;r+=n.b}}function Ann(n){var e,t,i,r,c;e=n.a,t=n.b,r=n.c,i=new V(t.e.a+t.f.a/2,t.e.b+t.f.b/2),c=new V(r.e.a+r.f.a/2,r.e.b+r.f.b/2),xt(e,i,e.a,e.a.a),xt(e,c,e.c.b,e.c),n_n(i,u(Zo(e,1),8),n.b.f),n_n(c,u(Zo(e,e.b-2),8),n.c.f)}function Zp(n){var e,t;if(t=!1,L(n,211))return t=!0,u(n,211).a;if(!t&&L(n,263)&&(e=u(n,263).a%1==0,e))return t=!0,Y(Tle(u(n,263).a));throw T(new eh("Id must be a string or an integer: '"+n+"'."))}function qEe(n,e){var t,i,r,c,s,f;for(c=null,r=new LIn((!n.a&&(n.a=new iL(n)),n.a));xnn(r);)if(t=u(MS(r),58),i=(s=t.Dh(),f=(Jg(s),s.o),!f||!t.Xh(f)?null:MV(x$(f),t.Mh(f))),i!=null&&Sn(i,e)){c=t;break}return c}function G_n(n,e,t){var i,r,c,s,f;if(Mo(t,"occurrences"),t==0)return f=u(tw(Lp(n.a),e),16),f?f.gc():0;if(s=u(tw(Lp(n.a),e),16),!s)return 0;if(c=s.gc(),t>=c)s.$b();else for(r=s.Kc(),i=0;i<t;i++)r.Pb(),r.Qb();return c}function UEe(n,e,t){var i,r,c,s;return Mo(t,"oldCount"),Mo(0,"newCount"),i=u(tw(Lp(n.a),e),16),(i?i.gc():0)==t?(Mo(0,"count"),r=(c=u(tw(Lp(n.a),e),16),c?c.gc():0),s=-r,s>0?bz():s<0&&G_n(n,e,-s),!0):!1}function ey(n){var e,t,i,r,c,s,f;if(f=0,n.b==0){for(s=SBn(n,!0),e=0,i=s,r=0,c=i.length;r<c;++r)t=i[r],t>0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}else f=Ujn(O$(U0(ut(EW(n.a),new f0n),new h0n)));return f>0?f+n.n.d+n.n.a:0}function ty(n){var e,t,i,r,c,s,f;if(f=0,n.b==0)f=Ujn(O$(U0(ut(EW(n.a),new o0n),new s0n)));else{for(s=PBn(n,!0),e=0,i=s,r=0,c=i.length;r<c;++r)t=i[r],t>0&&(f+=t,++e);e>1&&(f+=n.c*(e-1))}return f>0?f+n.n.b+n.n.c:0}function GEe(n){var e,t;if(n.c.length!=2)throw T(new Ar("Order only allowed for two paths."));e=(Nn(0,n.c.length),u(n.c[0],18)),t=(Nn(1,n.c.length),u(n.c[1],18)),e.d.i!=t.c.i&&(n.c.length=0,Fn(n.c,t),Fn(n.c,e))}function z_n(n,e,t){var i;for(kg(t,e.g,e.f),Bo(t,e.i,e.j),i=0;i<(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i;i++)z_n(n,u(N((!e.a&&(e.a=new q(Ye,e,10,11)),e.a),i),27),u(N((!t.a&&(t.a=new q(Ye,t,10,11)),t.a),i),27))}function zEe(n,e){var t,i,r,c;for(c=u(Mr(n.b,e),127),t=c.a,r=u(u(ot(n.r,e),21),87).Kc();r.Ob();)i=u(r.Pb(),117),i.c&&(t.a=y.Math.max(t.a,nW(i.c)));if(t.a>0)switch(e.g){case 2:c.n.c=n.s;break;case 4:c.n.b=n.s}}function XEe(n,e){var t,i,r;return t=u(v(e,(Us(),k3)),17).a-u(v(n,k3),17).a,t==0?(i=mi(Fi(u(v(n,(Q1(),lj)),8)),u(v(n,L8),8)),r=mi(Fi(u(v(e,lj),8)),u(v(e,L8),8)),bt(i.a*i.b,r.a*r.b)):t}function VEe(n,e){var t,i,r;return t=u(v(e,(lc(),RO)),17).a-u(v(n,RO),17).a,t==0?(i=mi(Fi(u(v(n,(pt(),Dj)),8)),u(v(n,Lv),8)),r=mi(Fi(u(v(e,Dj),8)),u(v(e,Lv),8)),bt(i.a*i.b,r.a*r.b)):t}function X_n(n){var e,t;return t=new x1,t.a+="e_",e=_ve(n),e!=null&&(t.a+=""+e),n.c&&n.d&&(Be((t.a+=" ",t),lS(n.c)),Be(Lc((t.a+="[",t),n.c.i),"]"),Be((t.a+=iB,t),lS(n.d)),Be(Lc((t.a+="[",t),n.d.i),"]")),t.a}function V_n(n){switch(n.g){case 0:return new d8n;case 1:return new b8n;case 2:return new l8n;case 3:return new h8n;default:throw T(new Gn("No implementation is available for the layout phase "+(n.f!=null?n.f:""+n.g)))}}function Lnn(n,e,t,i,r){var c;switch(c=0,r.g){case 1:c=y.Math.max(0,e.b+n.b-(t.b+i));break;case 3:c=y.Math.max(0,-n.b-i);break;case 2:c=y.Math.max(0,-n.a-i);break;case 4:c=y.Math.max(0,e.a+n.a-(t.a+i))}return c}function WEe(n,e,t){var i,r,c,s,f;if(t)for(r=t.a.length,i=new Qa(r),f=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),c=N4(t,s.a),Ccn in c.a||pF in c.a?fPe(n,c,e):PNe(n,c,e),S1e(u(ee(n.b,wm(c)),74))}function Nnn(n){var e,t;switch(n.b){case-1:return!0;case 0:return t=n.t,t>1||t==-1?(n.b=-1,!0):(e=gs(n),e&&(dr(),e.lk()==bJn)?(n.b=-1,!0):(n.b=1,!1));default:case 1:return!1}}function Dnn(n,e){var t,i,r,c;if(Ze(n),n.c!=0||n.a!=123)throw T(new Ne($e((Oe(),xWn))));if(c=e==112,i=n.d,t=w4(n.i,125,i),t<0)throw T(new Ne($e((Oe(),RWn))));return r=qo(n.i,i,t),n.d=t+1,mDn(r,c,(n.e&512)==512)}function W_n(n){var e,t,i,r,c,s,f;if(i=n.a.c.length,i>0)for(s=n.c.d,f=n.d.d,r=ch(mi(new V(f.a,f.b),s),1/(i+1)),c=new V(s.a,s.b),t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),250),e.d.a=c.a+r.a,e.d.b=c.b+r.b,tt(c,r)}function JEe(n,e){var t,i,r;if(!e)j$(n,null),G4(n,null);else if(e.i&4)for(i="[]",t=e.c;;t=t.c){if(!(t.i&4)){r=az((ll(t),t.o+i)),j$(n,r),G4(n,r);break}i+="[]"}else r=az((ll(e),e.o)),j$(n,r),G4(n,r);n.hl(e)}function N5(n,e,t,i,r){var c,s,f,h;return h=ON(n,u(r,58)),x(h)!==x(r)?(f=u(n.g[t],76),c=Rh(e,h),O6(n,t,Jx(n,t,c)),fo(n.e)&&(s=V1(n,9,c.Lk(),r,h,i,!1),GZ(s,new ml(n.e,9,n.c,f,c,i,!1)),h$(s)),h):r}function QEe(n,e,t){var i,r,c,s,f,h;for(i=u(ot(n.c,e),15),r=u(ot(n.c,t),15),c=i.fd(i.gc()),s=r.fd(r.gc());c.Sb()&&s.Sb();)if(f=u(c.Ub(),17),h=u(s.Ub(),17),f!=h)return jc(f.a,h.a);return!c.Ob()&&!s.Ob()?0:c.Ob()?1:-1}function YEe(n){var e,t,i,r,c,s,f;for(f=Lh(n.c.length),r=new M(n);r.a<r.c.c.length;){for(i=u(E(r),10),s=new ni,c=Qt(i),t=new ie(ce(c.a.Kc(),new En));pe(t);)e=u(fe(t),18),e.c.i==e.d.i||fi(s,e.d.i);Fn(f.c,s)}return f}function J_n(n,e){var t,i,r;try{return r=hpe(n.a,e),r}catch(c){if(c=Ot(c),L(c,33)){try{if(i=So(e,Wi,et),t=of(n.a),i>=0&&i<t.length)return t[i]}catch(s){if(s=Ot(s),!L(s,130))throw T(s)}return null}else throw T(c)}}function hR(n,e){var t,i,r;if(r=Qg((Lu(),zi),n.Dh(),e),r)return dr(),u(r,69).xk()||(r=$p(Nr(zi,r))),i=(t=n.Ih(r),u(t>=0?n.Lh(t,!0,!0):Hb(n,r,!0),160)),u(i,220).Wl(e);throw T(new Gn(ba+e.xe()+sF))}function ZEe(){xz();var n;return Yoe?u(Tm((B1(),Is),ks),2038):(Ge(Id,new k6n),VAe(),n=u(L(Dc((B1(),Is),ks),560)?Dc(Is,ks):new aOn,560),Yoe=!0,WNe(n),tDe(n),Ve(($z(),qdn),n,new xvn),Lr(Is,ks,n),n)}function nMe(n,e){var t,i,r,c;n.j=-1,fo(n.e)?(t=n.i,c=n.i!=0,ek(n,e),i=new ml(n.e,3,n.c,null,e,t,c),r=e.zl(n.e,n.c,null),r=IFn(n,e,r),r?(r.nj(i),r.oj()):it(n.e,i)):(ek(n,e),r=e.zl(n.e,n.c,null),r&&r.oj())}function yS(n,e){var t,i,r;if(r=0,i=e[0],i>=n.length)return-1;for(t=(zn(i,n.length),n.charCodeAt(i));t>=48&&t<=57&&(r=r*10+(t-48),++i,!(i>=n.length));)t=(zn(i,n.length),n.charCodeAt(i));return i>e[0]?e[0]=i:r=-1,r}function eMe(n){var e,t,i,r,c;return r=u(n.a,17).a,c=u(n.b,17).a,t=r,i=c,e=y.Math.max(y.Math.abs(r),y.Math.abs(c)),r<=0&&r==c?(t=0,i=c-1):r==-e&&c!=e?(t=c,i=r,c>=0&&++t):(t=-c,i=r),new bi(Y(t),Y(i))}function tMe(n,e,t,i){var r,c,s,f,h,l;for(r=0;r<e.o;r++)for(c=r-e.j+t,s=0;s<e.p;s++)if(f=s-e.k+i,h=c,l=f,h+=n.j,l+=n.k,h>=0&&l>=0&&h<n.o&&l<n.p&&(!DBn(e,r,s)&&ABn(n,c,f)||Fg(e,r,s)&&!V9e(n,c,f)))return!0;return!1}function iMe(n,e,t){var i,r,c,s,f;s=n.c,f=n.d,c=cc(S(C(Ei,1),J,8,0,[s.i.n,s.n,s.a])).b,r=(c+cc(S(C(Ei,1),J,8,0,[f.i.n,f.n,f.a])).b)/2,i=null,s.j==(en(),Zn)?i=new V(e+s.i.c.c.a+t,r):i=new V(e-t,r),g4(n.a,0,i)}function _b(n){var e,t,i,r;for(e=null,i=$h(Eo(S(C(Ao,1),Kn,20,0,[(!n.b&&(n.b=new Dn(he,n,4,7)),n.b),(!n.c&&(n.c=new Dn(he,n,5,8)),n.c)])));pe(i);)if(t=u(fe(i),84),r=Gr(t),!e)e=r;else if(e!=r)return!1;return!0}function lR(n,e,t){var i;if(++n.j,e>=n.i)throw T(new Or(vF+e+Cd+n.i));if(t>=n.i)throw T(new Or(kF+t+Cd+n.i));return i=n.g[t],e!=t&&(e<t?Oc(n.g,e,n.g,e+1,t-e):Oc(n.g,t+1,n.g,t,e-t),$t(n.g,e,i),n.Pi(e,i,t),n.Ni()),i}function In(n,e,t){var i;if(i=u(n.c.xc(e),16),i)return i.Fc(t)?(++n.d,!0):!1;if(i=n.ic(e),i.Fc(t))return++n.d,n.c.zc(e,i),!0;throw T(new DJ("New Collection violated the Collection spec"))}function iy(n){var e,t,i;return n<0?0:n==0?32:(i=-(n>>16),e=i>>16&16,t=16-e,n=n>>e,i=n-256,e=i>>16&8,t+=e,n<<=e,i=n-vw,e=i>>16&4,t+=e,n<<=e,i=n-wh,e=i>>16&2,t+=e,n<<=e,i=n>>14,e=i&~(i>>1),t+2-e)}function rMe(n){Np();var e,t,i,r;for(mI=new Z,p_=new de,g_=new Z,e=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),VLe(e),r=new ne(e);r.e!=r.i.gc();)i=u(ue(r),27),qr(mI,i,0)==-1&&(t=new Z,nn(g_,t),ZKn(i,t));return g_}function cMe(n,e,t){var i,r,c,s;n.a=t.b.d,L(e,326)?(r=Xg(u(e,74),!1,!1),c=Qk(r),i=new R9n(n),qi(c,i),dy(c,r),e.of((He(),k0))!=null&&qi(u(e.of(k0),75),i)):(s=u(e,422),s.rh(s.nh()+n.a.a),s.sh(s.oh()+n.a.b))}function uMe(n,e){var t,i,r;for(r=new Z,i=ge(e.a,0);i.b!=i.d.c;)t=u(be(i),65),t.c.g==n.g&&x(v(t.b,(lc(),Ph)))!==x(v(t.c,Ph))&&!Ag(new Cn(null,new On(r,16)),new hkn(t))&&Fn(r.c,t);return Yt(r,new U3n),r}function Q_n(n,e,t){var i,r,c,s;return L(e,153)&&L(t,153)?(c=u(e,153),s=u(t,153),n.a[c.a][s.a]+n.a[s.a][c.a]):L(e,250)&&L(t,250)&&(i=u(e,250),r=u(t,250),i.a==r.a)?u(v(r.a,(Us(),k3)),17).a:0}function Y_n(n,e){var t,i,r,c,s,f,h,l;for(l=$(B(v(e,(cn(),X8)))),h=n[0].n.a+n[0].o.a+n[0].d.c+l,f=1;f<n.length;f++)i=n[f].n,r=n[f].o,t=n[f].d,c=i.a-t.b-h,c<0&&(i.a-=c),s=e.f,s.a=y.Math.max(s.a,i.a+r.a),h=i.a+r.a+t.c+l}function oMe(n,e){var t,i,r,c,s,f;return i=u(u(ee(n.g,e.a),42).a,68),r=u(u(ee(n.g,e.b),42).a,68),c=i.b,s=r.b,t=NOe(c,s),t>=0?t:(f=z6(mi(new V(s.c+s.b/2,s.d+s.a/2),new V(c.c+c.b/2,c.d+c.a/2))),-(MUn(c,s)-1)*f)}function sMe(n,e,t){var i;qt(new Cn(null,(!t.a&&(t.a=new q(Tt,t,6,6)),new On(t.a,16))),new dTn(n,e)),qt(new Cn(null,(!t.n&&(t.n=new q(Sr,t,1,7)),new On(t.n,16))),new bTn(n,e)),i=u(z(t,(He(),k0)),75),i&&RQ(i,n,e)}function Hb(n,e,t){var i,r,c;if(c=Qg((Lu(),zi),n.Dh(),e),c)return dr(),u(c,69).xk()||(c=$p(Nr(zi,c))),r=(i=n.Ih(c),u(i>=0?n.Lh(i,!0,!0):Hb(n,c,!0),160)),u(r,220).Sl(e,t);throw T(new Gn(ba+e.xe()+sF))}function $nn(n,e,t,i){var r,c,s,f,h;if(r=n.d[e],r){if(c=r.g,h=r.i,i!=null){for(f=0;f<h;++f)if(s=u(c[f],136),s.Bi()==t&&rt(i,s.ld()))return s}else for(f=0;f<h;++f)if(s=u(c[f],136),x(s.ld())===x(i))return s}return null}function fMe(n,e){var t,i,r,c,s;for(i=(!e.s&&(e.s=new q(ku,e,21,17)),e.s),c=null,r=0,s=i.i;r<s;++r)switch(t=u(N(i,r),179),yb(Nr(n,t))){case 4:case 5:case 6:{!c&&(c=new Z),Fn(c.c,t);break}}return c||(Ln(),Ln(),sr)}function ry(n,e){var t;if(e<0)throw T(new _E("Negative exponent"));if(e==0)return sI;if(e==1||FY(n,sI)||FY(n,P8))return n;if(!MHn(n,0)){for(t=1;!MHn(n,t);)++t;return Og(m8e(t*e),ry(NJ(n,t),e))}return Mye(n,e)}function hMe(n,e){var t,i,r;if(x(n)===x(e))return!0;if(n==null||e==null||n.length!=e.length)return!1;for(t=0;t<n.length;++t)if(i=n[t],r=e[t],!(x(i)===x(r)||i!=null&&rt(i,r)))return!1;return!0}function Z_n(n){Nz();var e,t,i;for(this.b=MZn,this.c=(ci(),Jf),this.f=(hMn(),EZn),this.a=n,kz(this,new nwn),IS(this),i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),86),t.d||(e=new vx(S(C(M_,1),Kn,86,0,[t])),nn(n.a,e))}function lMe(n,e,t){var i,r,c,s,f,h;if(!n||n.c.length==0)return null;for(c=new tAn(e,!t),r=new M(n);r.a<r.c.c.length;)i=u(E(r),72),dnn(c,(u6(),new AE(i)));return s=c.i,s.a=(h=c.n,c.e.b+h.d+h.a),s.b=(f=c.n,c.e.a+f.b+f.c),c}function nHn(n){var e,t,i,r,c,s,f;for(f=Y7(n.a),EX(f,new egn),t=null,r=f,c=0,s=r.length;c<s&&(i=r[c],i.k==(Vn(),Zt));++c)e=u(v(i,(W(),gc)),64),!(e!=(en(),Wn)&&e!=Zn)&&(t&&u(v(t,C3),15).Fc(i),t=i)}function aMe(n,e,t){var i,r,c,s,f,h,l;h=(Nn(e,n.c.length),u(n.c[e],339)),Yl(n,e),h.b/2>=t&&(i=e,l=(h.c+h.a)/2,s=l-t,h.c<=l-t&&(r=new FN(h.c,s),bb(n,i++,r)),f=l+t,f<=h.a&&(c=new FN(f,h.a),z0(i,n.c.length),d6(n.c,i,c)))}function eHn(n,e,t){var i,r,c,s,f,h;if(!e.dc()){for(r=new Mt,h=e.Kc();h.Ob();)for(f=u(h.Pb(),40),Ve(n.a,Y(f.g),Y(t)),s=(i=ge(new sl(f).a.d,0),new sg(i));Q9(s.a);)c=u(be(s.a),65).c,xt(r,c,r.c.b,r.c);eHn(n,r,t+1)}}function xnn(n){var e;if(!n.c&&n.g==null)n.d=n.bj(n.f),ve(n,n.d),e=n.d;else{if(n.g==null)return!0;if(n.i==0)return!1;e=u(n.g[n.i-1],51)}return e==n.b&&null.Vm>=null.Um()?(MS(n),xnn(n)):e.Ob()}function tHn(n){if(this.a=n,n.c.i.k==(Vn(),Zt))this.c=n.c,this.d=u(v(n.c.i,(W(),gc)),64);else if(n.d.i.k==Zt)this.c=n.d,this.d=u(v(n.d.i,(W(),gc)),64);else throw T(new Gn("Edge "+n+" is not an external edge."))}function iHn(n,e){var t,i,r;r=n.b,n.b=e,n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,3,r,n.b)),e?e!=n&&(zc(n,e.zb),v$(n,e.d),t=(i=e.c,i??e.zb),y$(n,t==null||Sn(t,e.zb)?null:t)):(zc(n,null),v$(n,0),y$(n,null))}function rHn(n,e){var t;this.e=(mb(),Pe(n),mb(),JY(n)),this.c=(Pe(e),JY(e)),BX(this.e.Rd().dc()==this.c.Rd().dc()),this.d=vKn(this.e),this.b=vKn(this.c),t=Wa(ki,[J,Kn],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=t,Rme(this)}function cHn(n){!oun&&(oun=uNe());var e=n.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(t){return h2e(t)});return'"'+e+'"'}function Rnn(n,e,t,i,r,c){var s,f,h,l,a;if(r!=0)for(x(n)===x(t)&&(n=n.slice(e,e+r),e=0),h=t,f=e,l=e+r;f<l;)s=y.Math.min(f+1e4,l),r=s-f,a=n.slice(f,s),a.splice(0,0,i,c?r:0),Array.prototype.splice.apply(h,a),f=s,i+=r}function uHn(n){JW();var e,t;for(this.b=BQn,this.c=_Qn,this.g=(fMn(),KQn),this.d=(ci(),Jf),this.a=n,cen(this),t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),60),!e.a&&nSn(z$n(new XG,S(C(aI,1),Kn,60,0,[e])),n),e.e=new IT(e.d)}function dMe(n){var e,t,i,r,c,s;for(r=n.e.c.length,i=F(rs,kw,15,r,0,1),s=new M(n.e);s.a<s.c.c.length;)c=u(E(s),153),i[c.a]=new Mt;for(t=new M(n.c);t.a<t.c.c.length;)e=u(E(t),290),i[e.c.a].Fc(e),i[e.d.a].Fc(e);return i}function bMe(n,e){var t,i,r,c,s;if(t=u(Un(n.a,4),129),s=t==null?0:t.length,e>=s)throw T(new F0(e,s));return r=t[e],s==1?i=null:(i=F(yU,TF,424,s-1,0,1),Oc(t,0,i,0,e),c=s-e-1,c>0&&Oc(t,e+1,i,e,c)),gm(n,i),P_n(n,e,r),r}function oHn(n){var e,t;if(n.f){for(;n.n<n.o;){if(e=u(n.j?n.j.$i(n.n):n.k.Xb(n.n),76),t=e.Lk(),L(t,102)&&u(t,19).Bb&kc&&(!n.e||t.pk()!=Hv||t.Lj()!=0)&&e.md()!=null)return!0;++n.n}return!1}else return n.n<n.o}function n3(){n3=R,_3=u(N(H((Mz(),yc).qb),6),35),F3=u(N(H(yc.qb),3),35),SU=u(N(H(yc.qb),4),35),PU=u(N(H(yc.qb),5),19),bS(_3),bS(F3),bS(SU),bS(PU),tse=new Fu(S(C(ku,1),f2,179,0,[_3,F3]))}function sHn(n,e){var t;this.d=new Qv,this.b=e,this.e=new rr(e.Lf()),t=n.u.Hc((zu(),tE)),n.u.Hc(Rl)?n.D?this.a=t&&!e.bg():this.a=!0:n.u.Hc(Oa)?t?this.a=!(e.Uf().Kc().Ob()||e.Wf().Kc().Ob()):this.a=!1:this.a=!1}function fHn(n,e){var t,i,r,c;for(t=n.o.a,c=u(u(ot(n.r,e),21),87).Kc();c.Ob();)r=u(c.Pb(),117),r.e.a=(i=r.b,i.pf((He(),oo))?i.ag()==(en(),Wn)?-i.Mf().a-$(B(i.of(oo))):t+$(B(i.of(oo))):i.ag()==(en(),Wn)?-i.Mf().a:t)}function hHn(n,e){var t,i,r,c;t=u(v(n,(cn(),Lo)),88),c=u(z(e,Tv),64),r=u(v(n,Ft),101),r!=(Ai(),Qf)&&r!=Ia?c==(en(),sc)&&(c=Ken(e,t),c==sc&&(c=zp(t))):(i=hGn(e),i>0?c=zp(t):c=xk(zp(t))),ht(e,Tv,c)}function wMe(n,e){var t;e.Ug("Partition preprocessing",1),t=u(Wr(ut(rc(ut(new Cn(null,new On(n.a,16)),new zgn),new Xgn),new Vgn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),qt(t.Oc(),new Wgn),e.Vg()}function gMe(n,e){var t,i,r,c,s;for(s=n.j,e.a!=e.b&&Yt(s,new Tpn),r=s.c.length/2|0,i=0;i<r;i++)c=(Nn(i,s.c.length),u(s.c[i],113)),c.c&&gi(c.d,e.a);for(t=r;t<s.c.length;t++)c=(Nn(t,s.c.length),u(s.c[t],113)),c.c&&gi(c.d,e.b)}function pMe(n,e,t){var i,r,c;return i=n.c[e.c.p][e.p],r=n.c[t.c.p][t.p],i.a!=null&&r.a!=null?(c=tD(i.a,r.a),c<0?hy(n,e,t):c>0&&hy(n,t,e),c):i.a!=null?(hy(n,e,t),-1):r.a!=null?(hy(n,t,e),1):0}function mMe(n,e){var t,i,r,c,s;for(r=e.b.b,n.a=F(rs,kw,15,r,0,1),n.b=F(so,Xh,28,r,16,1),s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),40),n.a[c.g]=new Mt;for(i=ge(e.a,0);i.b!=i.d.c;)t=u(be(i),65),n.a[t.b.g].Fc(t),n.a[t.c.g].Fc(t)}function lHn(n,e){var t,i,r,c;n.Pj()?(t=n.Ej(),c=n.Qj(),++n.j,n.qj(t,n.Zi(t,e)),i=n.Ij(3,null,e,t,c),n.Mj()?(r=n.Nj(e,null),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(eOn(n,e),n.Mj()&&(r=n.Nj(e,null),r&&r.oj()))}function Knn(n,e,t){var i,r,c;n.Pj()?(c=n.Qj(),Lk(n,e,t),i=n.Ij(3,null,t,e,c),n.Mj()?(r=n.Nj(t,null),n.Tj()&&(r=n.Uj(t,r)),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(Lk(n,e,t),n.Mj()&&(r=n.Nj(t,null),r&&r.oj()))}function jS(n,e){var t,i,r,c,s;for(s=ru(n.e.Dh(),e),r=new EE,t=u(n.g,124),c=n.i;--c>=0;)i=t[c],s.am(i.Lk())&&ve(r,i);!uzn(n,r)&&fo(n.e)&&t4(n,e.Jk()?V1(n,6,e,(Ln(),sr),null,-1,!1):V1(n,e.tk()?2:1,e,null,null,-1,!1))}function vMe(n,e){var t,i,r,c,s;return n.a==(jm(),x8)?!0:(c=e.a.c,t=e.a.c+e.a.b,!(e.j&&(i=e.A,s=i.c.c.a-i.o.a/2,r=c-(i.n.a+i.o.a),r>s)||e.q&&(i=e.C,s=i.c.c.a-i.o.a/2,r=i.n.a-t,r>s)))}function aHn(n){DD();var e,t,i,r,c,s,f;for(t=new Ql,r=new M(n.e.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=new M(i.a);s.a<s.c.c.length;)c=u(E(s),10),f=n.g[c.p],e=u(Df(t,f),15),e||(e=new Z,s1(t,f,e)),e.Fc(c);return t}function dHn(n){var e;return n.Db&64?Hs(n):(e=new ls(Hs(n)),e.a+=" (startX: ",hg(e,n.j),e.a+=", startY: ",hg(e,n.k),e.a+=", endX: ",hg(e,n.b),e.a+=", endY: ",hg(e,n.c),e.a+=", identifier: ",Er(e,n.d),e.a+=")",e.a)}function Bnn(n){var e;return n.Db&64?p5(n):(e=new ls(p5(n)),e.a+=" (ordered: ",ql(e,(n.Bb&256)!=0),e.a+=", unique: ",ql(e,(n.Bb&512)!=0),e.a+=", lowerBound: ",CL(e,n.s),e.a+=", upperBound: ",CL(e,n.t),e.a+=")",e.a)}function bHn(n,e,t,i,r,c,s,f){var h;return L(n.Cb,90)&&hw(Zu(u(n.Cb,90)),4),zc(n,t),n.f=i,hm(n,r),am(n,c),fm(n,s),lm(n,!1),u1(n,!0),dm(n,f),c1(n,!0),e1(n,0),n.b=0,Z0(n,1),h=Kf(n,e,null),h&&h.oj(),sx(n,!1),n}function wHn(n,e){var t,i,r,c;return t=u(Dc(n.a,e),525),t||(i=new VD(e),r=(UT(),Uf?null:i.c),c=qo(r,0,y.Math.max(0,RM(r,wu(46)))),Jae(i,wHn(n,c)),(Uf?null:i.c).length==0&&CSn(i,new RU),Lr(n.a,Uf?null:i.c,i),i)}function kMe(n,e){var t;n.b=e,n.g=new Z,t=MMe(n.b),n.e=t,n.f=t,n.c=on(un(v(n.b,(aS(),_un)))),n.a=B(v(n.b,(He(),x2))),n.a==null&&(n.a=1),$(n.a)>1?n.e*=$(n.a):n.f/=$(n.a),_6e(n),X8e(n),USe(n),U(n.b,(M5(),pI),n.g)}function gHn(n,e,t){var i,r,c,s,f,h;for(i=0,h=t,e||(i=t*(n.c.length-1),h*=-1),c=new M(n);c.a<c.c.c.length;){for(r=u(E(c),10),U(r,(cn(),Ch),(Bh(),nA)),r.o.a=i,f=h1(r,(en(),Zn)).Kc();f.Ob();)s=u(f.Pb(),12),s.n.a=i;i+=h}}function e3(n,e,t){var i,r,c,s,f,h;return f=n.pl(t),f!=t?(s=n.g[e],h=f,O6(n,e,n.Zi(e,h)),c=s,n.Ri(e,h,c),n.al()&&(i=t,r=n.Oj(i,null),!u(f,54).Ph()&&(r=n.Nj(h,r)),r&&r.oj()),fo(n.e)&&t4(n,n.Ij(9,t,f,e,!1)),f):t}function yMe(n,e){var t,i,r,c;for(i=new M(n.a.a);i.a<i.c.c.length;)t=u(E(i),194),t.g=!0;for(c=new M(n.a.b);c.a<c.c.c.length;)r=u(E(c),86),r.k=on(un(n.e.Kb(new bi(r,e)))),r.d.g=r.d.g&on(un(n.e.Kb(new bi(r,e))));return n}function pHn(n,e){var t,i;if(n.c.length!=0){if(n.c.length==2)t3((Nn(0,n.c.length),u(n.c[0],10)),(Co(),nl)),t3((Nn(1,n.c.length),u(n.c[1],10)),Sa);else for(i=new M(n);i.a<i.c.c.length;)t=u(E(i),10),t3(t,e);n.c.length=0}}function mHn(n){var e,t,i,r,c;if(t=(e=u(of(lr),9),new _o(e,u(xs(e,e.length),9),0)),c=u(v(n,(W(),Xu)),10),c)for(r=new M(c.j);r.a<r.c.c.length;)i=u(E(r),12),x(v(i,st))===x(n)&&L6(new Lf(i.b))&&_s(t,i.j);return t}function vHn(n,e,t){var i,r,c,s,f;if(!n.d[t.p]){for(r=new ie(ce(Qt(t).a.Kc(),new En));pe(r);){for(i=u(fe(r),18),f=i.d.i,s=new ie(ce(ji(f).a.Kc(),new En));pe(s);)c=u(fe(s),18),c.c.i==e&&(n.a[c.p]=!0);vHn(n,e,f)}n.d[t.p]=!0}}function jMe(n,e){var t,i,r,c,s,f,h;if(i=dKn(n.Db&254),i==1)n.Eb=null;else if(c=cd(n.Eb),i==2)r=Bx(n,e),n.Eb=c[r==0?1:0];else{for(s=F(ki,Kn,1,i-1,5,1),t=2,f=0,h=0;t<=128;t<<=1)t==e?++f:n.Db&t&&(s[h++]=c[f++]);n.Eb=s}n.Db&=~e}function Fnn(n){var e;switch(e=0,n){case 105:e=2;break;case 109:e=8;break;case 115:e=4;break;case 120:e=16;break;case 117:e=32;break;case 119:e=64;break;case 70:e=256;break;case 72:e=128;break;case 88:e=512;break;case 44:e=Gs}return e}function EMe(n,e,t,i,r){var c,s,f,h;if(x(n)===x(e)&&i==r){pUn(n,i,t);return}for(f=0;f<i;f++){for(s=0,c=n[f],h=0;h<r;h++)s=nr(nr(er(vi(c,mr),vi(e[h],mr)),vi(t[f+h],mr)),vi(Se(s),mr)),t[f+h]=Se(s),s=U1(s,32);t[f+r]=Se(s)}}function MMe(n){var e,t,i,r,c,s,f,h,l,a,d;for(a=0,l=0,r=n.a,f=r.a.gc(),i=r.a.ec().Kc();i.Ob();)t=u(i.Pb(),567),e=(t.b&&xR(t),t.a),d=e.a,s=e.b,a+=d+s,l+=d*s;return h=y.Math.sqrt(400*f*l-4*l+a*a)+a,c=2*(100*f-1),c==0?h:h/c}function kHn(n,e){e.b!=0&&(isNaN(n.s)?n.s=$((oe(e.b!=0),B(e.a.a.c))):n.s=y.Math.min(n.s,$((oe(e.b!=0),B(e.a.a.c)))),isNaN(n.c)?n.c=$((oe(e.b!=0),B(e.c.b.c))):n.c=y.Math.max(n.c,$((oe(e.b!=0),B(e.c.b.c)))))}function D5(n){var e,t,i,r;for(e=null,i=$h(Eo(S(C(Ao,1),Kn,20,0,[(!n.b&&(n.b=new Dn(he,n,4,7)),n.b),(!n.c&&(n.c=new Dn(he,n,5,8)),n.c)])));pe(i);)if(t=u(fe(i),84),r=Gr(t),!e)e=St(r);else if(e!=St(r))return!0;return!1}function aR(n,e){var t,i,r,c;n.Pj()?(t=n.i,c=n.Qj(),ek(n,e),i=n.Ij(3,null,e,t,c),n.Mj()?(r=n.Nj(e,null),n.Tj()&&(r=n.Uj(e,r)),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(ek(n,e),n.Mj()&&(r=n.Nj(e,null),r&&r.oj()))}function TMe(n,e){var t,i,r,c;if(c=B7(n.a,e.b),!c)throw T(new Ar("Invalid hitboxes for scanline overlap calculation."));for(r=!1,i=n.a.a.ec().Kc();i.Ob();)if(t=u(i.Pb(),68),i6e(e.b,t))Dhe(n.b.a,e.b,t),r=!0;else if(r)break}function CMe(n){var e;if(!n.a)throw T(new Ar("IDataType class expected for layout option "+n.f));if(e=l3e(n.a),e==null)throw T(new Ar("Couldn't create new instance of property '"+n.f+"'. "+NVn+(ll(lE),lE.k)+dcn));return u(e,423)}function dR(n){var e,t,i,r,c;return c=n.Ph(),c&&c.Vh()&&(r=ea(n,c),r!=c)?(t=n.Fh(),i=(e=n.Fh(),e>=0?n.Ah(null):n.Ph().Th(n,-1-e,null,null)),n.Bh(u(r,54),t),i&&i.oj(),n.vh()&&n.wh()&&t>-1&&it(n,new Mi(n,9,t,c,r)),r):c}function _nn(n,e){var t,i,r,c,s;for(c=n.b.Ce(e),i=(t=n.a.get(c),t??F(ki,Kn,1,0,5,1)),s=0;s<i.length;s++)if(r=i[s],n.b.Be(e,r.ld()))return i.length==1?(i.length=0,Pae(n.a,c)):i.splice(s,1),--n.c,++n.b.g,r.md();return null}function yHn(n){var e,t,i,r,c,s,f,h;for(s=0,c=n.f.e,i=0;i<c.c.length;++i)for(f=(Nn(i,c.c.length),u(c.c[i],153)),r=i+1;r<c.c.length;++r)h=(Nn(r,c.c.length),u(c.c[r],153)),t=J1(f.d,h.d),e=t-n.a[f.a][h.a],s+=n.i[f.a][h.a]*e*e;return s}function SMe(n,e){var t;if(!kt(e,(cn(),ou))&&(t=V7e(u(v(e,ysn),371),u(v(n,ou),171)),U(e,ysn,t),!pe(new ie(ce(Ml(e).a.Kc(),new En)))))switch(t.g){case 1:U(e,ou,(Yo(),_8));break;case 2:U(e,ou,(Yo(),H8))}}function PMe(n,e){var t;_Se(n),n.a=(t=new ML,qt(new Cn(null,new On(e.d,16)),new T7n(t)),t),iPe(n,u(v(e.b,(cn(),EH)),349)),$9e(n),$Me(n),J7e(n),x9e(n),WOe(n,e),qt(rc(new Cn(null,oLn(Lwe(n.b).a)),new spn),new fpn),e.a=!1,n.a=null}function Hnn(){Hnn=R,bre=new Tn(Srn,(_n(),!1)),wre=new Tn(Prn,7),Y(0),vre=new Tn(Irn,Y(0)),pre=new Tn(Orn,Y(-1)),Mln=(b5(),lq),kre=new Tn(Arn,Mln),jln=(d5(),Nj),gre=new Tn(Lrn,jln),Eln=(RT(),aq),mre=new Tn(Nrn,Eln)}function jHn(){cnn.call(this,tv,(K1(),voe)),this.p=null,this.a=null,this.f=null,this.n=null,this.g=null,this.c=null,this.i=null,this.j=null,this.d=null,this.b=null,this.e=null,this.k=null,this.o=null,this.s=null,this.q=!1,this.r=!1}function Mm(){Mm=R,vU=new gp(JXn,0),mA=new gp("INSIDE_SELF_LOOPS",1),vA=new gp("MULTI_EDGES",2),pA=new gp("EDGE_LABELS",3),mU=new gp("PORTS",4),gA=new gp("COMPOUND",5),wA=new gp("CLUSTERS",6),pU=new gp("DISCONNECTED",7)}function EHn(n,e,t){var i,r,c;n.Pj()?(c=n.Qj(),++n.j,n.qj(e,n.Zi(e,t)),i=n.Ij(3,null,t,e,c),n.Mj()?(r=n.Nj(t,null),r?(r.nj(i),r.oj()):n.Jj(i)):n.Jj(i)):(++n.j,n.qj(e,n.Zi(e,t)),n.Mj()&&(r=n.Nj(t,null),r&&r.oj()))}function MHn(n,e){var t,i,r;if(e==0)return(n.a[0]&1)!=0;if(e<0)throw T(new _E("Negative bit address"));if(r=e>>5,r>=n.d)return n.e<0;if(t=n.a[r],e=1<<(e&31),n.e<0){if(i=Oxn(n),r<i)return!1;i==r?t=-t:t=~t}return(t&e)!=0}function IMe(n,e,t,i){var r;u(t.b,68),u(t.b,68),u(i.b,68),u(i.b,68),r=mi(Fi(u(t.b,68).c),u(i.b,68).c),JM(r,x_n(u(t.b,68),u(i.b,68),r)),u(i.b,68),u(i.b,68),u(i.b,68).c.a+r.a,u(i.b,68).c.b+r.b,u(i.b,68),nu(i.a,new RV(n,e,i))}function qnn(n,e){var t,i,r,c,s,f,h;if(c=e.e,c){for(t=dR(c),i=u(n.g,689),s=0;s<n.i;++s)if(h=i[s],Nx(h)==t&&(r=(!h.d&&(h.d=new ti(jr,h,1)),h.d),f=u(t.Mh(SR(c,c.Cb,c.Db>>16)),15).dd(c),f<r.i))return qnn(n,u(N(r,f),89))}return e}function b(n,e,t){var i=rI,r,c=i[n],s=c instanceof Array?c[0]:null;c&&!s?o=c:(o=(r=e&&e.prototype,!r&&(r=rI[e]),w2e(r)),o.Sm=t,!e&&(o.Tm=Q2),i[n]=o);for(var f=3;f<arguments.length;++f)arguments[f].prototype=o;s&&(o.Rm=s)}function pe(n){for(var e;!u(Pe(n.a),51).Ob();){if(n.d=k6e(n),!n.d)return!1;if(n.a=u(n.d.Pb(),51),L(n.a,38)){if(e=u(n.a,38),n.a=e.a,!n.b&&(n.b=new Mg),W1(n.b,n.d),e.b)for(;!t6(e.b);)W1(n.b,u(bwe(e.b),51));n.d=e.d}}return!0}function Unn(n,e){var t,i,r,c;for(r=1,e.j=!0,c=null,i=new M(xg(e));i.a<i.c.c.length;)t=u(E(i),218),n.c[t.c]||(n.c[t.c]=!0,c=HC(t,e),t.f?r+=Unn(n,c):!c.j&&t.a==t.e.e-t.d.e&&(t.f=!0,fi(n.p,t),r+=Unn(n,c)));return r}function OMe(n){var e,t,i;for(t=new M(n.a.a.b);t.a<t.c.c.length;)e=u(E(t),86),i=(Jn(0),0),i>0&&(!(hl(n.a.c)&&e.n.d)&&!(vg(n.a.c)&&e.n.b)&&(e.g.d+=y.Math.max(0,i/2-.5)),!(hl(n.a.c)&&e.n.a)&&!(vg(n.a.c)&&e.n.c)&&(e.g.a-=i-1))}function THn(n){var e,t,i,r,c;if(r=new Z,c=kUn(n,r),e=u(v(n,(W(),Xu)),10),e)for(i=new M(e.j);i.a<i.c.c.length;)t=u(E(i),12),x(v(t,st))===x(n)&&(c=y.Math.max(c,kUn(t,r)));return r.c.length==0||U(n,y2,c),c!=-1?r:null}function CHn(n,e,t){var i,r,c,s,f,h;c=u(sn(e.e,0),18).c,i=c.i,r=i.k,h=u(sn(t.g,0),18).d,s=h.i,f=s.k,r==(Vn(),Ti)?U(n,(W(),yf),u(v(i,yf),12)):U(n,(W(),yf),c),f==Ti?U(n,(W(),Es),u(v(s,Es),12)):U(n,(W(),Es),h)}function Gnn(n){var e,t,i;this.c=n,i=u(v(n,(cn(),Lo)),88),e=$(B(v(n,oO))),t=$(B(v(n,khn))),i==(ci(),Kr)||i==Xr||i==Jf?this.b=e*t:this.b=1/(e*t),this.j=$(B(v(n,S2))),this.e=$(B(v(n,g0))),this.f=n.b.c.length}function znn(n,e){var t,i,r,c,s;return e&=63,t=n.h,i=(t&Cy)!=0,i&&(t|=-1048576),e<22?(s=t>>e,c=n.m>>e|t<<22-e,r=n.l>>e|n.m<<22-e):e<44?(s=i?Ol:0,c=t>>e-22,r=n.m>>e-22|t<<44-e):(s=i?Ol:0,c=i?ro:0,r=t>>e-44),Yc(r&ro,c&ro,s&Ol)}function bR(n){var e,t,i,r,c,s;for(this.c=new Z,this.d=n,i=Pt,r=Pt,e=li,t=li,s=ge(n,0);s.b!=s.d.c;)c=u(be(s),8),i=y.Math.min(i,c.a),r=y.Math.min(r,c.b),e=y.Math.max(e,c.a),t=y.Math.max(t,c.b);this.a=new Ho(i,r,e-i,t-r)}function SHn(n,e){var t,i,r,c,s,f;for(c=new M(n.b);c.a<c.c.c.length;)for(r=u(E(c),30),f=new M(r.a);f.a<f.c.c.length;)for(s=u(E(f),10),s.k==(Vn(),Sc)&&t3(s,e),i=new ie(ce(Qt(s).a.Kc(),new En));pe(i);)t=u(fe(i),18),eRn(t,e)}function AMe(n,e){var t,i,r;for(e.Ug("Layer constraint preprocessing",1),t=new Z,r=new xi(n.a,0);r.b<r.d.gc();)i=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),10)),r6e(i)&&(dye(i),Fn(t.c,i),bo(r));t.c.length==0||U(n,(W(),hH),t),e.Vg()}function LMe(n){var e,t;for(n.e=F(ye,_e,28,n.p.c.length,15,1),n.k=F(ye,_e,28,n.p.c.length,15,1),t=new M(n.p);t.a<t.c.c.length;)e=u(E(t),10),n.e[e.p]=wl(new ie(ce(ji(e).a.Kc(),new En))),n.k[e.p]=wl(new ie(ce(Qt(e).a.Kc(),new En)))}function NMe(n){var e,t,i,r,c,s;for(r=0,n.q=new Z,e=new ni,s=new M(n.p);s.a<s.c.c.length;){for(c=u(E(s),10),c.p=r,i=new ie(ce(Qt(c).a.Kc(),new En));pe(i);)t=u(fe(i),18),fi(e,t.d.i);e.a.Bc(c)!=null,nn(n.q,new R6(e)),e.a.$b(),++r}}function PHn(n,e){var t,i,r,c,s,f,h,l,a;if(n.a.f>0&&L(e,44)&&(n.a._j(),l=u(e,44),h=l.ld(),c=h==null?0:mt(h),s=aV(n.a,c),t=n.a.d[s],t)){for(i=u(t.g,379),a=t.i,f=0;f<a;++f)if(r=i[f],r.Bi()==c&&r.Fb(l))return PHn(n,l),!0}return!1}function DMe(n){var e,t,i,r,c,s,f;if(e=n.qi(ks),e&&(f=Ae(gf((!e.b&&(e.b=new lo((An(),ar),pc,e)),e.b),"settingDelegates")),f!=null)){for(t=new Z,r=ww(f,"\\w+"),c=0,s=r.length;c<s;++c)i=r[c],Fn(t.c,i);return t}return Ln(),Ln(),sr}function $Me(n){var e,t,i,r;for(r=u(ot(n.a,(ow(),GI)),15).Kc();r.Ob();)i=u(r.Pb(),105),t=(e=Cp(i.k),e.Hc((en(),Xn))?e.Hc(Zn)?e.Hc(ae)?e.Hc(Wn)?null:une:sne:one:cne),T4(n,i,t[0],(Lb(),c0),0),T4(n,i,t[1],va,1),T4(n,i,t[2],u0,1)}function xMe(n,e){var t,i;t=gPe(e),iSe(n,e,t),NFn(n.a,u(v(Hi(e.b),(W(),P3)),234)),KPe(n),uye(n,e),i=F(ye,_e,28,e.b.j.c.length,15,1),VR(n,e,(en(),Xn),i,t),VR(n,e,Zn,i,t),VR(n,e,ae,i,t),VR(n,e,Wn,i,t),n.a=null,n.c=null,n.b=null}function Xnn(n,e,t){switch(e){case 7:!n.e&&(n.e=new Dn(Vt,n,7,4)),me(n.e),!n.e&&(n.e=new Dn(Vt,n,7,4)),Kt(n.e,u(t,16));return;case 8:!n.d&&(n.d=new Dn(Vt,n,8,5)),me(n.d),!n.d&&(n.d=new Dn(Vt,n,8,5)),Kt(n.d,u(t,16));return}FZ(n,e,t)}function Vnn(n,e){var t,i,r,c,s;if(x(e)===x(n))return!0;if(!L(e,15)||(s=u(e,15),n.gc()!=s.gc()))return!1;for(c=s.Kc(),i=n.Kc();i.Ob();)if(t=i.Pb(),r=c.Pb(),!(x(t)===x(r)||t!=null&&rt(t,r)))return!1;return!0}function RMe(n,e){var t,i,r,c;for(c=u(Wr(rc(rc(new Cn(null,new On(e.b,16)),new lgn),new agn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),c.Jc(new dgn),t=0,r=c.Kc();r.Ob();)i=u(r.Pb(),12),i.p==-1&&Wnn(n,i,t++)}function IHn(n){switch(n.g){case 0:return new o8n;case 1:return new c8n;case 2:return new u8n;case 3:return new JMn;case 4:return new gIn;default:throw T(new Gn("No implementation is available for the node placer "+(n.f!=null?n.f:""+n.g)))}}function OHn(n){switch(n.g){case 0:return new aW;case 1:return new X5n;case 2:return new z5n;case 3:return new U5n;case 4:return new FTn;default:throw T(new Gn("No implementation is available for the cycle breaker "+(n.f!=null?n.f:""+n.g)))}}function KMe(n,e){var t,i,r,c,s;i=new Mt,xt(i,e,i.c.b,i.c);do for(t=(oe(i.b!=0),u(Xo(i,i.a.a),40)),n.b[t.g]=1,c=ge(t.d,0);c.b!=c.d.c;)r=u(be(c),65),s=r.c,n.b[s.g]==1?Re(n.a,r):n.b[s.g]==2?n.b[s.g]=1:xt(i,s,i.c.b,i.c);while(i.b!=0)}function BMe(n,e,t){var i;i=null,e&&(i=e.d),O5(n,new d4(e.n.a-i.b+t.a,e.n.b-i.d+t.b)),O5(n,new d4(e.n.a-i.b+t.a,e.n.b+e.o.b+i.a+t.b)),O5(n,new d4(e.n.a+e.o.a+i.c+t.a,e.n.b-i.d+t.b)),O5(n,new d4(e.n.a+e.o.a+i.c+t.a,e.n.b+e.o.b+i.a+t.b))}function Wnn(n,e,t){var i,r,c;for(e.p=t,c=$h(Eo(S(C(Ao,1),Kn,20,0,[new e4(e),new ip(e)])));pe(c);)i=u(fe(c),12),i.p==-1&&Wnn(n,i,t);if(e.i.k==(Vn(),Ti))for(r=new M(e.i.j);r.a<r.c.c.length;)i=u(E(r),12),i!=e&&i.p==-1&&Wnn(n,i,t)}function FMe(n,e){var t,i,r,c,s,f;for(i=new Ql,s=HT(new Fu(n.g)),c=s.a.ec().Kc();c.Ob();){if(r=u(c.Pb(),10),!r){e.bh("There are no classes in a balanced layout.");break}f=n.j[r.p],t=u(Df(i,f),15),t||(t=new Z,s1(i,f,t)),t.Fc(r)}return i}function AHn(n){var e,t,i,r,c;if(r=u(Wr(cJ(sJ(n)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),i=i2,r.gc()>=2)for(t=r.Kc(),e=B(t.Pb());t.Ob();)c=e,e=B(t.Pb()),i=y.Math.min(i,(Jn(e),e-(Jn(c),c)));return i}function _Me(n,e){var t,i,r;for(r=new Z,i=ge(e.a,0);i.b!=i.d.c;)t=u(be(i),65),t.b.g==n.g&&!Sn(t.b.c,OP)&&x(v(t.b,(lc(),Ph)))!==x(v(t.c,Ph))&&!Ag(new Cn(null,new On(r,16)),new lkn(t))&&Fn(r.c,t);return Yt(r,new V3n),r}function HMe(n,e){var t,i,r;if(x(e)===x(Pe(n)))return!0;if(!L(e,15)||(i=u(e,15),r=n.gc(),r!=i.gc()))return!1;if(L(i,59)){for(t=0;t<r;t++)if(!sh(n.Xb(t),i.Xb(t)))return!1;return!0}else return q9e(n.Kc(),i.Kc())}function qMe(n,e,t,i,r,c){var s,f,h,l;for(f=!s4(ut(n.Oc(),new Z3(new Cgn))).Bd((Va(),v3)),s=n,c==(ci(),us)&&(s=Qo(s)),l=s.Kc();l.Ob();)h=u(l.Pb(),72),h.n.a=e.a,f?h.n.b=e.b+(i.b-h.o.b)/2:r?h.n.b=e.b:h.n.b=e.b+i.b-h.o.b,e.a+=h.o.a+t}function UMe(n,e){var t,i,r,c,s;for(e.Ug("Port side processing",1),s=new M(n.a);s.a<s.c.c.length;)r=u(E(s),10),GUn(r);for(i=new M(n.b);i.a<i.c.c.length;)for(t=u(E(i),30),c=new M(t.a);c.a<c.c.c.length;)r=u(E(c),10),GUn(r);e.Vg()}function GMe(n,e,t){var i,r,c,s,f,h,l;if(t)for(c=t.a.length,i=new Qa(c),f=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),h=N4(t,s.a),h&&(l=Ame(bl(h,wF),e),Ve(n.f,l,h),r=Eh in h.a,r&&X4(l,bl(h,Eh)),gS(h,l),Cnn(h,l))}function zMe(n,e,t){var i,r,c,s,f;if(f=t,!f&&(f=QV(new op,0)),f.Ug(IXn,1),SGn(n.c,e),s=JAe(n.a,e),s.gc()==1)sGn(u(s.Xb(0),36),f);else for(c=1/s.gc(),r=s.Kc();r.Ob();){if(i=u(r.Pb(),36),t.$g())return;sGn(i,f.eh(c))}she(n.a,s,e),MSe(e),f.Vg()}function LHn(n,e,t){var i,r,c,s,f;if(r=n.f,!r&&(r=u(n.a.a.ec().Kc().Pb(),60)),I5(r,e,t),n.a.a.gc()!=1)for(i=e*t,s=n.a.a.ec().Kc();s.Ob();)c=u(s.Pb(),60),c!=r&&(f=xp(c),f.f.d?(c.d.d+=i+_f,c.d.a-=i+_f):f.f.a&&(c.d.a-=i+_f))}function wR(n,e,t,i,r){var c,s,f,h,l,a,d,g,p;return s=t-n,f=i-e,c=y.Math.atan2(s,f),h=c+QK,l=c-QK,a=r*y.Math.sin(h)+n,g=r*y.Math.cos(h)+e,d=r*y.Math.sin(l)+n,p=r*y.Math.cos(l)+e,Af(S(C(Ei,1),J,8,0,[new V(a,g),new V(d,p)]))}function XMe(n,e,t,i){var r,c,s,f,h,l,a,d;r=t,a=e,c=a;do c=n.a[c.p],f=(d=n.g[c.p],$(n.p[d.p])+$(n.d[c.p])-c.d.d),h=Xme(c,i),h&&(s=(l=n.g[h.p],$(n.p[l.p])+$(n.d[h.p])+h.o.b+h.d.a),r=y.Math.min(r,f-(s+jg(n.k,c,h))));while(a!=c);return r}function VMe(n,e,t,i){var r,c,s,f,h,l,a,d;r=t,a=e,c=a;do c=n.a[c.p],s=(d=n.g[c.p],$(n.p[d.p])+$(n.d[c.p])+c.o.b+c.d.a),h=Zve(c,i),h&&(f=(l=n.g[h.p],$(n.p[l.p])+$(n.d[h.p])-h.d.d),r=y.Math.min(r,f-(s+jg(n.k,c,h))));while(a!=c);return r}function NHn(n,e){var t;if(e.Ug("Equal Whitespace Eliminator",1),Nf(n,(_h(),GO)))t5e(u(z(n,GO),15),$(B(z(n,A3))),(t=$(B(z(n,s9))),$(B(z(n,(Bf(),l9)))),t));else throw T(new _l("The graph does not contain rows."));e.Vg()}function z(n,e){var t,i;return i=(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),gf(n.o,e)),i??(t=e.Sg(),L(t,4)&&(t==null?(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),VC(n.o,e)):(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),zk(n.o,e,t))),t)}function lw(){lw=R,Qs=new bg("H_LEFT",0),xl=new bg("H_CENTER",1),Ys=new bg("H_RIGHT",2),nf=new bg("V_TOP",3),el=new bg("V_CENTER",4),Ts=new bg("V_BOTTOM",5),No=new bg("INSIDE",6),Zs=new bg("OUTSIDE",7),Ms=new bg("H_PRIORITY",8)}function WMe(n,e){var t,i,r,c,s,f,h;if(!e.f)throw T(new Gn("The input edge is not a tree edge."));for(c=null,r=et,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),218),f=t.d,h=t.e,fR(n,f,e)&&!fR(n,h,e)&&(s=h.e-f.e-t.a,s<r&&(r=s,c=t));return c}function JMe(n){var e,t,i,r,c,s;if(!(n.f.e.c.length<=1)){e=0,r=yHn(n),t=Pt;do{for(e>0&&(r=t),s=new M(n.f.e);s.a<s.c.c.length;)c=u(E(s),153),!on(un(v(c,(Uk(),Ton))))&&(i=fIe(n,c),tt(ff(c.d),i));t=yHn(n)}while(!Dwe(n,e++,r,t))}}function QMe(n,e){var t,i,r,c,s;for(c=n.g.a,s=n.g.b,i=new M(n.d);i.a<i.c.c.length;)t=u(E(i),72),r=t.n,n.a==(xf(),lv)||n.i==(en(),Zn)?r.a=c:n.a==av||n.i==(en(),Wn)?r.a=c+n.j.a-t.o.a:r.a=c+(n.j.a-t.o.a)/2,r.b=s,tt(r,e),s+=t.o.b+n.e}function YMe(n,e){var t,i,r,c,s,f,h,l,a,d;l=n,h=Y6(l,"individualSpacings"),h&&(i=Nf(e,(He(),$3)),s=!i,s&&(r=new _A,ht(e,$3,r)),f=u(z(e,$3),385),d=h,c=null,d&&(c=(a=P$(d,F(fn,J,2,0,6,1)),new PL(d,a))),c&&(t=new MTn(d,f),qi(c,t)))}function ZMe(n,e){var t,i,r,c,s,f,h,l,a,d,g;return h=null,d=n,a=null,(jWn in d.a||EWn in d.a||BP in d.a)&&(l=null,g=zQ(e),s=Y6(d,jWn),t=new Wkn(g),b8e(t.a,s),f=Y6(d,EWn),i=new cyn(g),w8e(i.a,f),c=Sb(d,BP),r=new syn(g),l=(Zke(r.a,c),c),a=l),h=a,h}function nTe(n,e){var t,i,r;if(e===n)return!0;if(L(e,552)){if(r=u(e,849),n.a.d!=r.a.d||Sg(n).gc()!=Sg(r).gc())return!1;for(i=Sg(r).Kc();i.Ob();)if(t=u(i.Pb(),425),$An(n,t.a.ld())!=u(t.a.md(),16).gc())return!1;return!0}return!1}function eTe(n){var e,t,i,r;return i=u(n.a,17).a,r=u(n.b,17).a,e=i,t=r,i==0&&r==0?t-=1:i==-1&&r<=0?(e=0,t-=2):i<=0&&r>0?(e-=1,t-=1):i>=0&&r<0?(e+=1,t+=1):i>0&&r>=0?(e-=1,t+=1):(e+=1,t-=1),new bi(Y(e),Y(t))}function tTe(n,e){return n.c<e.c?-1:n.c>e.c?1:n.b<e.b?-1:n.b>e.b?1:n.a!=e.a?mt(n.a)-mt(e.a):n.d==(Z6(),e9)&&e.d==n9?-1:n.d==n9&&e.d==e9?1:0}function DHn(n,e){var t,i,r,c,s;return c=e.a,c.c.i==e.b?s=c.d:s=c.c,c.c.i==e.b?i=c.c:i=c.d,r=M8e(n.a,s,i),r>0&&r<i2?(t=XMe(n.a,i.i,r,n.c),I$n(n.a,i.i,-t),t>0):r<0&&-r<i2?(t=VMe(n.a,i.i,-r,n.c),I$n(n.a,i.i,t),t>0):!1}function iTe(n,e,t,i){var r,c,s,f,h,l,a,d;for(r=(e-n.d)/n.c.c.length,c=0,n.a+=t,n.d=e,d=new M(n.c);d.a<d.c.c.length;)a=u(E(d),27),l=a.g,h=a.f,eu(a,a.i+c*r),tu(a,a.j+i*t),Ob(a,a.g+r),Ib(a,n.a),++c,f=a.g,s=a.f,Enn(a,new V(f,s),new V(l,h))}function rTe(n){var e,t,i,r,c,s,f;if(n==null)return null;for(f=n.length,r=(f+1)/2|0,s=F(Ru,s2,28,r,15,1),f%2!=0&&(s[--r]=pen((zn(f-1,n.length),n.charCodeAt(f-1)))),t=0,i=0;t<r;++t)e=pen(Xi(n,i++)),c=pen(Xi(n,i++)),s[t]=(e<<4|c)<<24>>24;return s}function cTe(n){if(n.ze()){var e=n.c;e.Ae()?n.o="["+e.n:e.ze()?n.o="["+e.xe():n.o="[L"+e.xe()+";",n.b=e.we()+"[]",n.k=e.ye()+"[]";return}var t=n.j,i=n.d;i=i.split("/"),n.o=mx(".",[t,mx("$",i)]),n.b=mx(".",[t,mx(".",i)]),n.k=i[i.length-1]}function uTe(n,e){var t,i,r,c,s;for(s=null,c=new M(n.e.a);c.a<c.c.c.length;)if(r=u(E(c),125),r.b.a.c.length==r.g.a.c.length){for(i=r.e,s=Fje(r),t=r.e-u(s.a,17).a+1;t<r.e+u(s.b,17).a;t++)e[t]<e[i]&&(i=t);e[i]<e[r.e]&&(--e[r.e],++e[i],r.e=i)}}function gR(n){var e,t,i,r,c,s,f,h;for(r=Pt,i=li,t=new M(n.e.b);t.a<t.c.c.length;)for(e=u(E(t),30),s=new M(e.a);s.a<s.c.c.length;)c=u(E(s),10),h=$(n.p[c.p]),f=h+$(n.b[n.g[c.p].p]),r=y.Math.min(r,h),i=y.Math.max(i,f);return i-r}function $Hn(n){UR();var e,t,i,r;return i=ih(n,wu(35)),e=i==-1?n:(Ri(0,i,n.length),n.substr(0,i)),t=i==-1?null:(zn(i+1,n.length+1),n.substr(i+1)),r=j3e(Hdn,e),r?t!=null&&(r=ORn(r,(Jn(t),t))):(r=qNe(e),$3e(Hdn,e,r),t!=null&&(r=ORn(r,t))),r}function Jnn(n,e,t,i){var r,c,s,f,h;for(r=Cen(n,e),f=0,h=r.gc();f<h;++f)if(c=u(r.Xb(f),179),Sn(i,I4(Nr(n,c)))){if(s=q7(Nr(n,c)),t==null){if(s==null)return c}else if(Sn(t,s))return c}return null}function Qnn(n,e,t,i){var r,c,s,f,h;for(r=PR(n,e),f=0,h=r.gc();f<h;++f)if(c=u(r.Xb(f),179),Sn(i,I4(Nr(n,c)))){if(s=q7(Nr(n,c)),t==null){if(s==null)return c}else if(Sn(t,s))return c}return null}function oTe(n,e,t){var i,r,c,s,f,h;if(s=new EE,f=ru(n.e.Dh(),e),i=u(n.g,124),dr(),u(e,69).xk())for(c=0;c<n.i;++c)r=i[c],f.am(r.Lk())&&ve(s,r);else for(c=0;c<n.i;++c)r=i[c],f.am(r.Lk())&&(h=r.md(),ve(s,t?N5(n,e,c,s.i,h):h));return yJ(s)}function xHn(n){var e,t,i,r,c,s,f;if(n&&(e=n.qi(ks),e&&(s=Ae(gf((!e.b&&(e.b=new lo((An(),ar),pc,e)),e.b),"conversionDelegates")),s!=null))){for(f=new Z,i=ww(s,"\\w+"),r=0,c=i.length;r<c;++r)t=i[r],Fn(f.c,t);return f}return Ln(),Ln(),sr}function RHn(n,e){var t,i,r,c,s,f,h,l;for(s=e==1?C_:T_,c=s.a.ec().Kc();c.Ob();)for(r=u(c.Pb(),88),h=u(ot(n.f.c,r),21).Kc();h.Ob();)switch(f=u(h.Pb(),42),i=u(f.b,86),l=u(f.a,194),t=l.c,r.g){case 2:case 1:i.g.d+=t;break;case 4:case 3:i.g.c+=t}}function sTe(n,e){var t,i,r,c,s;for(t=new y5(wv),r=(Yp(),S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2])),c=0,s=r.length;c<s;++c)i=r[c],gV(t,i,new Z);return qt(_r(ut(rc(new Cn(null,new On(n.b,16)),new Sgn),new Pgn),new i7n(e)),new r7n(t)),t}function ES(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=e.Kc();c.Ob();)r=u(c.Pb(),27),a=r.i+r.g/2,g=r.j+r.f/2,h=n.f,s=h.i+h.g/2,f=h.j+h.f/2,l=a-s,d=g-f,i=y.Math.sqrt(l*l+d*d),l*=n.e/i,d*=n.e/i,t?(a-=l,g-=d):(a+=l,g+=d),eu(r,a-r.g/2),tu(r,g-r.f/2)}function Gg(n){var e,t,i;if(!n.c&&n.b!=null){for(e=n.b.length-4;e>=0;e-=2)for(t=0;t<=e;t+=2)(n.b[t]>n.b[t+2]||n.b[t]===n.b[t+2]&&n.b[t+1]>n.b[t+3])&&(i=n.b[t+2],n.b[t+2]=n.b[t],n.b[t]=i,i=n.b[t+3],n.b[t+3]=n.b[t+1],n.b[t+1]=i);n.c=!0}}function fTe(n,e){var t,i,r,c,s,f,h,l,a;for(l=-1,a=0,s=n,f=0,h=s.length;f<h;++f){for(c=s[f],t=new NPn(l==-1?n[0]:n[l],e,(w5(),TO)),i=0;i<c.length;i++)for(r=i+1;r<c.length;r++)kt(c[i],(W(),dt))&&kt(c[r],dt)&&dzn(t,c[i],c[r])>0&&++a;++l}return a}function Hs(n){var e,t;return t=new mo(Xa(n.Rm)),t.a+="@",Be(t,(e=mt(n)>>>0,e.toString(16))),n.Vh()?(t.a+=" (eProxyURI: ",Lc(t,n._h()),n.Kh()&&(t.a+=" eClass: ",Lc(t,n.Kh())),t.a+=")"):n.Kh()&&(t.a+=" (eClass: ",Lc(t,n.Kh()),t.a+=")"),t.a}function $5(n){var e,t,i,r;if(n.e)throw T(new Ar((ll(c_),RK+c_.k+KK)));for(n.d==(ci(),Jf)&&US(n,Kr),t=new M(n.a.a);t.a<t.c.c.length;)e=u(E(t),316),e.g=e.i;for(r=new M(n.a.b);r.a<r.c.c.length;)i=u(E(r),60),i.i=li;return n.b.cf(n),n}function hTe(n,e){var t,i,r,c,s;if(e<2*n.b)throw T(new Gn("The knot vector must have at least two time the dimension elements."));for(n.f=1,r=0;r<n.b;r++)nn(n.e,0);for(s=e+1-2*n.b,t=s,c=1;c<s;c++)nn(n.e,c/t);if(n.d)for(i=0;i<n.b;i++)nn(n.e,1)}function KHn(n,e){var t,i,r,c,s,f,h,l,a;if(l=e,a=u(pC(dD(n.i),l),27),!a)throw r=bl(l,Eh),f="Unable to find elk node for json object '"+r,h=f+"' Panic!",T(new eh(h));c=Sb(l,"edges"),t=new gTn(n,a),WEe(t.a,t.b,c),s=Sb(l,gF),i=new _kn(n),Z7e(i.a,s)}function BHn(n,e,t,i){var r,c,s,f,h;if(i!=null){if(r=n.d[e],r){for(c=r.g,h=r.i,f=0;f<h;++f)if(s=u(c[f],136),s.Bi()==t&&rt(i,s.ld()))return f}}else if(r=n.d[e],r){for(c=r.g,h=r.i,f=0;f<h;++f)if(s=u(c[f],136),x(s.ld())===x(i))return f}return-1}function Tm(n,e){var t,i,r;return t=e==null?Fr(wr(n.f,null)):a6(n.i,e),L(t,241)?(r=u(t,241),r.zi()==null,r):L(t,507)?(i=u(t,2037),r=i.a,r&&(r.yb==null||(e==null?Vc(n.f,null,r):$b(n.i,e,r))),r):null}function lTe(n){ben();var e,t,i,r,c,s,f;if(n==null||(r=n.length,r%2!=0))return null;for(e=iC(n),c=r/2|0,t=F(Ru,s2,28,c,15,1),i=0;i<c;i++){if(s=K9[e[i*2]],s==-1||(f=K9[e[i*2+1]],f==-1))return null;t[i]=(s<<4|f)<<24>>24}return t}function aTe(n,e,t){var i,r,c;if(r=u(Mr(n.i,e),314),!r)if(r=new k$n(n.d,e,t),Ip(n.i,e,r),eZ(e))g1e(n.a,e.c,e.b,r);else switch(c=Wje(e),i=u(Mr(n.p,c),252),c.g){case 1:case 3:r.j=!0,mL(i,e.b,r);break;case 4:case 2:r.k=!0,mL(i,e.c,r)}return r}function dTe(n,e){var t,i,r,c,s,f,h,l,a;for(h=Lh(n.c-n.b&n.a.length-1),l=null,a=null,c=new V6(n);c.a!=c.b;)r=u(xC(c),10),t=(f=u(v(r,(W(),yf)),12),f?f.i:null),i=(s=u(v(r,Es),12),s?s.i:null),(l!=t||a!=i)&&(pHn(h,e),l=t,a=i),Fn(h.c,r);pHn(h,e)}function bTe(n,e,t,i){var r,c,s,f,h,l;if(f=new EE,h=ru(n.e.Dh(),e),r=u(n.g,124),dr(),u(e,69).xk())for(s=0;s<n.i;++s)c=r[s],h.am(c.Lk())&&ve(f,c);else for(s=0;s<n.i;++s)c=r[s],h.am(c.Lk())&&(l=c.md(),ve(f,i?N5(n,e,s,f.i,l):l));return VY(f,t)}function FHn(n,e){var t,i,r,c,s,f,h,l;if(r=n.b[e.p],r>=0)return r;for(c=1,f=new M(e.j);f.a<f.c.c.length;)for(s=u(E(f),12),i=new M(s.g);i.a<i.c.c.length;)t=u(E(i),18),l=t.d.i,e!=l&&(h=FHn(n,l),c=y.Math.max(c,h+1));return f8e(n,e,c),c}function _Hn(n,e){var t,i,r,c,s,f,h,l;if(r=n.b[e.p],r>=0)return r;for(c=1,f=new M(e.j);f.a<f.c.c.length;)for(s=u(E(f),12),i=new M(s.e);i.a<i.c.c.length;)t=u(E(i),18),l=t.c.i,e!=l&&(h=_Hn(n,l),c=y.Math.max(c,h+1));return F9e(n,e,c),c}function HHn(n,e,t){var i,r,c;for(i=1;i<n.c.length;i++){for(c=(Nn(i,n.c.length),u(n.c[i],10)),r=i;r>0&&e.Ne((Nn(r-1,n.c.length),u(n.c[r-1],10)),c)>0;)Go(n,r,(Nn(r-1,n.c.length),u(n.c[r-1],10))),--r;Nn(r,n.c.length),n.c[r]=c}t.a=new de,t.b=new de}function wTe(n,e,t){var i,r,c,s,f,h,l,a;for(a=(i=u(e.e&&e.e(),9),new _o(i,u(xs(i,i.length),9),0)),h=ww(t,"[\\[\\]\\s,]+"),c=h,s=0,f=c.length;s<f;++s)if(r=c[s],fw(r).length!=0){if(l=J_n(n,r),l==null)return null;_s(a,u(l,22))}return a}function gTe(n){var e,t,i,r;for(r=n.length,e=null,i=0;i<r;i++)t=(zn(i,n.length),n.charCodeAt(i)),ih(".*+?{[()|\\^$",wu(t))>=0?(e||(e=new i6,i>0&&Er(e,(Ri(0,i,n.length),n.substr(0,i)))),e.a+="\\",C4(e,t&ui)):e&&C4(e,t&ui);return e?e.a:n}function pTe(n){var e,t,i;for(t=new M(n.a.a.b);t.a<t.c.c.length;)e=u(E(t),86),i=(Jn(0),0),i>0&&(!(hl(n.a.c)&&e.n.d)&&!(vg(n.a.c)&&e.n.b)&&(e.g.d-=y.Math.max(0,i/2-.5)),!(hl(n.a.c)&&e.n.a)&&!(vg(n.a.c)&&e.n.c)&&(e.g.a+=y.Math.max(0,i-1)))}function qHn(n,e,t){var i,r;if((n.c-n.b&n.a.length-1)==2)e==(en(),Xn)||e==Zn?(sC(u(l5(n),15),(Co(),nl)),sC(u(l5(n),15),Sa)):(sC(u(l5(n),15),(Co(),Sa)),sC(u(l5(n),15),nl));else for(r=new V6(n);r.a!=r.b;)i=u(xC(r),15),sC(i,t)}function mTe(n,e){var t,i,r,c,s,f,h;for(r=y4(new $G(n)),f=new xi(r,r.c.length),c=y4(new $G(e)),h=new xi(c,c.c.length),s=null;f.b>0&&h.b>0&&(t=(oe(f.b>0),u(f.a.Xb(f.c=--f.b),27)),i=(oe(h.b>0),u(h.a.Xb(h.c=--h.b),27)),t==i);)s=t;return s}function UHn(n,e,t){var i,r,c,s;GAn(n,e)>GAn(n,t)?(i=uc(t,(en(),Zn)),n.d=i.dc()?0:zN(u(i.Xb(0),12)),s=uc(e,Wn),n.b=s.dc()?0:zN(u(s.Xb(0),12))):(r=uc(t,(en(),Wn)),n.d=r.dc()?0:zN(u(r.Xb(0),12)),c=uc(e,Zn),n.b=c.dc()?0:zN(u(c.Xb(0),12)))}function GHn(n,e){var t,i,r,c;for(t=n.o.a,c=u(u(ot(n.r,e),21),87).Kc();c.Ob();)r=u(c.Pb(),117),r.e.a=t*$(B(r.b.of(bI))),r.e.b=(i=r.b,i.pf((He(),oo))?i.ag()==(en(),Xn)?-i.Mf().b-$(B(i.of(oo))):$(B(i.of(oo))):i.ag()==(en(),Xn)?-i.Mf().b:0)}function vTe(n,e){var t,i,r,c;for(e.Ug("Self-Loop pre-processing",1),i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),10),c8e(t)&&(r=(c=new rBn(t),U(t,(W(),h0),c),qPe(c),c),qt(_r(rc(new Cn(null,new On(r.d,16)),new w2n),new g2n),new p2n),xCe(r));e.Vg()}function kTe(n){var e,t,i,r,c,s,f,h;e=!0,r=null,c=null;n:for(h=new M(n.a);h.a<h.c.c.length;)for(f=u(E(h),10),i=new ie(ce(ji(f).a.Kc(),new En));pe(i);){if(t=u(fe(i),18),r&&r!=f){e=!1;break n}if(r=f,s=t.c.i,c&&c!=s){e=!1;break n}c=s}return e}function yTe(n,e,t){var i,r,c,s,f,h;for(c=-1,f=-1,s=0;s<e.c.length&&(r=(Nn(s,e.c.length),u(e.c[s],339)),!(r.c>n.c));s++)r.a>=n.s&&(c<0&&(c=s),f=s);return h=(n.s+n.c)/2,c>=0&&(i=oPe(n,e,c,f),h=cle((Nn(i,e.c.length),u(e.c[i],339))),aMe(e,i,t)),h}function Te(n,e,t){var i,r,c,s,f,h,l;for(s=(c=new eG,c),IQ(s,(Jn(e),e)),l=(!s.b&&(s.b=new lo((An(),ar),pc,s)),s.b),h=1;h<t.length;h+=2)zk(l,t[h-1],t[h]);for(i=(!n.Ab&&(n.Ab=new q(Ue,n,0,3)),n.Ab),f=0;f<0;++f)r=Rwe(u(N(i,i.i-1),598)),i=r;ve(i,s)}function zHn(n,e,t){var i,r,c;for(jae.call(this,new Z),this.a=e,this.b=t,this.e=n,i=(n.b&&xR(n),n.a),this.d=EOn(i.a,this.a),this.c=EOn(i.b,this.b),g5e(this,this.d,this.c),HEe(this),c=this.e.e.a.ec().Kc();c.Ob();)r=u(c.Pb(),272),r.c.c.length>0&&iAe(this,r)}function Ynn(n,e,t,i,r,c){var s,f,h;if(!r[e.a]){for(r[e.a]=!0,s=i,!s&&(s=new zT),nn(s.e,e),h=c[e.a].Kc();h.Ob();)f=u(h.Pb(),290),!(f.d==t||f.c==t)&&(f.c!=e&&Ynn(n,f.c,e,s,r,c),f.d!=e&&Ynn(n,f.d,e,s,r,c),nn(s.c,f),hi(s.d,f.b));return s}return null}function jTe(n){var e,t,i,r,c,s,f;for(e=0,r=new M(n.e);r.a<r.c.c.length;)i=u(E(r),18),t=Ag(new Cn(null,new On(i.b,16)),new Gwn),t&&++e;for(s=new M(n.g);s.a<s.c.c.length;)c=u(E(s),18),f=Ag(new Cn(null,new On(c.b,16)),new zwn),f&&++e;return e>=2}function ETe(n,e,t,i,r){var c,s,f,h,l,a;for(c=n.c.d.j,s=u(Zo(t,0),8),a=1;a<t.b;a++)l=u(Zo(t,a),8),xt(i,s,i.c.b,i.c),f=ch(tt(new rr(s),l),.5),h=ch(new KD(uY(c)),r),tt(f,h),xt(i,f,i.c.b,i.c),s=l,c=e==0?BC(c):SY(c);Re(i,(oe(t.b!=0),u(t.c.b.c,8)))}function MTe(n){lw();var e,t,i;return t=yt(No,S(C(yr,1),G,95,0,[Zs])),!(kk(NT(t,n))>1||(e=yt(Qs,S(C(yr,1),G,95,0,[xl,Ys])),kk(NT(e,n))>1)||(i=yt(nf,S(C(yr,1),G,95,0,[el,Ts])),kk(NT(i,n))>1))}function Znn(n,e,t){var i,r,c;for(c=new M(n.t);c.a<c.c.c.length;)i=u(E(c),274),i.b.s<0&&i.c>0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&Re(e,i.b));for(r=new M(n.i);r.a<r.c.c.length;)i=u(E(r),274),i.a.s<0&&i.c>0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&Re(t,i.a))}function MS(n){var e,t,i,r,c;if(n.g==null&&(n.d=n.bj(n.f),ve(n,n.d),n.c))return c=n.f,c;if(e=u(n.g[n.i-1],51),r=e.Pb(),n.e=e,t=n.bj(r),t.Ob())n.d=t,ve(n,t);else for(n.d=null;!e.Ob()&&($t(n.g,--n.i,null),n.i!=0);)i=u(n.g[n.i-1],51),e=i;return r}function TTe(n,e){var t,i,r,c,s,f;if(i=e,r=i.Lk(),Pl(n.e,r)){if(r.Si()&&_T(n,r,i.md()))return!1}else for(f=ru(n.e.Dh(),r),t=u(n.g,124),c=0;c<n.i;++c)if(s=t[c],f.am(s.Lk()))return rt(s,i)?!1:(u(Bg(n,c,e),76),!0);return ve(n,e)}function CTe(n,e,t,i){var r,c,s,f;for(r=new Cl(n),Ha(r,(Vn(),Sc)),U(r,(W(),st),e),U(r,F8,i),U(r,(cn(),Ft),(Ai(),qc)),U(r,yf,e.c),U(r,Es,e.d),kqn(e,r),f=y.Math.floor(t/2),s=new M(r.j);s.a<s.c.c.length;)c=u(E(s),12),c.n.b=f;return r}function XHn(n){var e,t,i,r,c,s,f;for(e=0,i=new M(n.a);i.a<i.c.c.length;)for(t=u(E(i),10),c=new ie(ce(Qt(t).a.Kc(),new En));pe(c);)r=u(fe(c),18),n==r.d.i.c&&r.c.j==(en(),Wn)&&(s=Of(r.c).b,f=Of(r.d).b,e=y.Math.max(e,y.Math.abs(f-s)));return e}function VHn(n,e,t){var i,r,c,s,f;for(t.Ug("ELK Force",1),on(un(z(e,(Us(),pon))))||X7((i=new Xv((cb(),new Qd(e))),i)),f=fRn(e),z7e(f),b6e(n,u(v(f,gon),432)),s=FUn(n.a,f),c=s.Kc();c.Ob();)r=u(c.Pb(),235),pIe(n.b,r,t.eh(1/s.gc()));f=nzn(s),hzn(f),t.Vg()}function nen(n,e,t){switch(t.g){case 1:return new V(e.a,y.Math.min(n.d.b,e.b));case 2:return new V(y.Math.max(n.c.a,e.a),e.b);case 3:return new V(e.a,y.Math.max(n.c.b,e.b));case 4:return new V(y.Math.min(e.a,n.d.a),e.b)}return new V(e.a,e.b)}function cy(n){var e,t,i;for(e=Lh(1+(!n.c&&(n.c=new q(Qu,n,9,9)),n.c).i),nn(e,(!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d)),i=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));i.e!=i.i.gc();)t=u(ue(i),123),nn(e,(!t.d&&(t.d=new Dn(Vt,t,8,5)),t.d));return Pe(e),new S6(e)}function Sl(n){var e,t,i;for(e=Lh(1+(!n.c&&(n.c=new q(Qu,n,9,9)),n.c).i),nn(e,(!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e)),i=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));i.e!=i.i.gc();)t=u(ue(i),123),nn(e,(!t.e&&(t.e=new Dn(Vt,t,7,4)),t.e));return Pe(e),new S6(e)}function STe(n){var e,t,i,r;if(n==null)return null;if(i=Rc(n,!0),r=nj.length,Sn(i.substr(i.length-r,r),nj)){if(t=i.length,t==4){if(e=(zn(0,i.length),i.charCodeAt(0)),e==43)return sbn;if(e==45)return mse}else if(t==3)return sbn}return sw(i)}function PTe(n,e){var t,i,r,c,s;if(e.Ug("Breaking Point Processor",1),lLe(n),on(un(v(n,(cn(),Thn))))){for(r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),t=0,s=new M(i.a);s.a<s.c.c.length;)c=u(E(s),10),c.p=t++;uOe(n),aqn(n,!0),aqn(n,!1)}e.Vg()}function ITe(n,e,t,i){var r,c,s,f,h,l,a,d,g;for(d=i?(en(),Wn):(en(),Zn),r=!1,h=e[t],l=0,a=h.length;l<a;++l)f=h[l],!Ep(u(v(f,(cn(),Ft)),101))&&(s=f.e,g=!uc(f,d).dc()&&!!s,g&&(c=XZ(s),n.b=new WZ(c,i?0:c.length-1)),r=r|gSe(n,f,d,g));return r}function WHn(n,e,t,i){var r,c,s;if(s=RZ(e,t),Fn(i.c,e),n.j[s.p]==-1||n.j[s.p]==2||n.a[e.p])return i;for(n.j[s.p]=-1,c=new ie(ce(Ml(s).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),!(!(!fr(r)&&!(!fr(r)&&r.c.i.c==r.d.i.c))||r==e))return WHn(n,r,s,i);return i}function OTe(n){var e,t,i,r;for(e=0,t=0,r=new M(n.j);r.a<r.c.c.length;)if(i=u(E(r),12),e=Se(nr(e,BNn(ut(new Cn(null,new On(i.e,16)),new w3n)))),t=Se(nr(t,BNn(ut(new Cn(null,new On(i.g,16)),new g3n)))),e>1||t>1)return 2;return e+t==1?2:0}function to(n,e){var t,i,r,c,s,f;return c=n.a*NK+n.b*1502,f=n.b*NK+11,t=y.Math.floor(f*Oy),c+=t,f-=t*Etn,c%=Etn,n.a=c,n.b=f,e<=24?y.Math.floor(n.a*Nun[e]):(r=n.a*(1<<e-24),s=y.Math.floor(n.b*Dun[e]),i=r+s,i>=2147483648&&(i-=4294967296),i)}function JHn(n,e,t){var i,r,c,s,f,h,l;for(c=new Z,l=new Mt,s=new Mt,XIe(n,l,s,e),TAe(n,l,s,e,t),h=new M(n);h.a<h.c.c.length;)for(f=u(E(h),118),r=new M(f.k);r.a<r.c.c.length;)i=u(E(r),132),(!e||i.c==(af(),Ea))&&f.g>i.b.g&&Fn(c.c,i);return c}function ATe(n,e,t){var i,r,c,s,f,h;for(f=n.c,s=(t.q?t.q:(Ln(),Ln(),Wh)).vc().Kc();s.Ob();)c=u(s.Pb(),44),i=!s4(ut(new Cn(null,new On(f,16)),new Z3(new uTn(e,c)))).Bd((Va(),v3)),i&&(h=c.md(),L(h,4)&&(r=rZ(h),r!=null&&(h=r)),e.qf(u(c.ld(),149),h))}function LTe(n,e,t){var i,r;if(H7(n.b),hf(n.b,($k(),XO),(s6(),Hj)),hf(n.b,VO,e.g),hf(n.b,WO,e.a),n.a=gy(n.b,e),t.Ug("Compaction by shrinking a tree",n.a.c.length),e.i.c.length>1)for(r=new M(n.a);r.a<r.c.c.length;)i=u(E(r),47),i.Kf(e,t.eh(1));t.Vg()}function een(n,e,t){var i,r,c;if(c=Qg((Lu(),zi),n.Dh(),e),c){if(dr(),!u(c,69).xk()&&(c=$p(Nr(zi,c)),!c))throw T(new Gn(ba+e.xe()+b8));r=(i=n.Ih(c),u(i>=0?n.Lh(i,!0,!0):Hb(n,c,!0),160)),u(r,220).Xl(e,t)}else throw T(new Gn(ba+e.xe()+b8))}function TS(n,e){var t,i,r,c,s;if(e){for(c=L(n.Cb,90)||L(n.Cb,102),s=!c&&L(n.Cb,331),i=new ne((!e.a&&(e.a=new K6(e,jr,e)),e.a));i.e!=i.i.gc();)if(t=u(ue(i),89),r=KS(t),c?L(r,90):s?L(r,156):r)return r;return c?(An(),Os):(An(),Zf)}else return null}function NTe(n,e){var t,i,r,c;for(e.Ug("Resize child graph to fit parent.",1),i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),30),hi(n.a,t.a),t.a.c.length=0;for(c=new M(n.a);c.a<c.c.c.length;)r=u(E(c),10),$i(r,null);n.b.c.length=0,ZCe(n),n.e&&JPe(n.e,n),e.Vg()}function DTe(n,e){var t,i,r,c,s;for(e.Ug("Edge joining",1),t=on(un(v(n,(cn(),AH)))),r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=new xi(i.a,0);s.b<s.d.gc();)c=(oe(s.b<s.d.gc()),u(s.d.Xb(s.c=s.b++),10)),c.k==(Vn(),Ti)&&(XR(c,t),bo(s));e.Vg()}function $Te(n,e){var t,i,r,c,s;for(t=new Z,r=rc(new Cn(null,new On(n,16)),new D3n),c=rc(new Cn(null,new On(n,16)),new $3n),s=G4e(f4e(U0(bCe(S(C(dDe,1),Kn,848,0,[r,c])),new x3n))),i=1;i<s.length;i++)s[i]-s[i-1]>=2*e&&nn(t,new FN(s[i-1]+e,s[i]-e));return t}function xTe(n,e,t){var i,r,c,s,f,h,l,a;if(t)for(c=t.a.length,i=new Qa(c),f=(i.b-i.a)*i.c<0?(F1(),xa):new q1(i);f.Ob();)s=u(f.Pb(),17),r=N4(t,s.a),r&&(h=a3e(n,(l=(K1(),a=new nz,a),e&&ten(l,e),l),r),X4(h,bl(r,Eh)),gS(r,h),Cnn(r,h),_$(n,r,h))}function CS(n){var e,t,i,r,c,s;if(!n.j){if(s=new Mvn,e=D9,c=e.a.zc(n,e),c==null){for(i=new ne(Hr(n));i.e!=i.i.gc();)t=u(ue(i),29),r=CS(t),Kt(s,r),ve(s,t);e.a.Bc(n)!=null}ew(s),n.j=new pg((u(N(H((G1(),Hn).o),11),19),s.i),s.g),Zu(n).b&=-33}return n.j}function RTe(n){var e,t,i,r;if(n==null)return null;if(i=Rc(n,!0),r=nj.length,Sn(i.substr(i.length-r,r),nj)){if(t=i.length,t==4){if(e=(zn(0,i.length),i.charCodeAt(0)),e==43)return fbn;if(e==45)return vse}else if(t==3)return fbn}return new qG(i)}function KTe(n){var e,t,i;return t=n.l,t&t-1||(i=n.m,i&i-1)||(e=n.h,e&e-1)||e==0&&i==0&&t==0?-1:e==0&&i==0&&t!=0?vQ(t):e==0&&i!=0&&t==0?vQ(i)+22:e!=0&&i==0&&t==0?vQ(e)+44:-1}function zg(n,e){var t,i,r,c,s;for(r=e.a&n.f,c=null,i=n.b[r];;i=i.b){if(i==e){c?c.b=e.b:n.b[r]=e.b;break}c=i}for(s=e.f&n.f,c=null,t=n.c[s];;t=t.d){if(t==e){c?c.d=e.d:n.c[s]=e.d;break}c=t}e.e?e.e.c=e.c:n.a=e.c,e.c?e.c.e=e.e:n.e=e.e,--n.i,++n.g}function BTe(n,e){var t;e.d?e.d.b=e.b:n.a=e.b,e.b?e.b.d=e.d:n.e=e.d,!e.e&&!e.c?(t=u(as(u(Kp(n.b,e.a),260)),260),t.a=0,++n.c):(t=u(as(u(ee(n.b,e.a),260)),260),--t.a,e.e?e.e.c=e.c:t.b=u(as(e.c),511),e.c?e.c.e=e.e:t.c=u(as(e.e),511)),--n.d}function FTe(n){var e,t,i,r,c,s,f,h,l,a;for(t=n.o,e=n.p,s=et,r=Wi,f=et,c=Wi,l=0;l<t;++l)for(a=0;a<e;++a)Fg(n,l,a)&&(s=y.Math.min(s,l),r=y.Math.max(r,l),f=y.Math.min(f,a),c=y.Math.max(c,a));return h=r-s+1,i=c-f+1,new COn(Y(s),Y(f),Y(h),Y(i))}function pR(n,e){var t,i,r,c;for(c=new xi(n,0),t=(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),148));c.b<c.d.gc();)i=(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),148)),r=new UV(i.c,t.d,e),oe(c.b>0),c.a.Xb(c.c=--c.b),B0(c,r),oe(c.b<c.d.gc()),c.d.Xb(c.c=c.b++),r.a=!1,t=i}function QHn(n){var e,t,i,r,c,s;for(r=u(v(n,(W(),tO)),12),s=new M(n.j);s.a<s.c.c.length;){for(c=u(E(s),12),i=new M(c.g);i.a<i.c.c.length;)return e=u(E(i),18),Oi(e,r),c;for(t=new M(c.e);t.a<t.c.c.length;)return e=u(E(t),18),Zi(e,r),c}return null}function YHn(n,e,t){var i,r,c,s,f,h;for(h=u(x0(n.a,e),17).a,t?VZ(n.a,Y(h+1),e):VZ(n.a,Y(h-1),e),s=new rh,r=new ie(ce((t?Qt(e):ji(e)).a.Kc(),new En));pe(r);)i=u(fe(r),18),t?c=i.d.i:c=i.c.i,x(x0(n.a,c))===x(x0(n.a,e))&&(f=s.a.zc(c,s),f==null);return s}function _Te(n,e,t){var i,r;i=vc(t.q.getTime()),Ec(i,0)<0?(r=d1-Se(Kk(n1(i),d1)),r==d1&&(r=0)):r=Se(Kk(i,d1)),e==1?(r=y.Math.min((r+50)/100|0,9),z1(n,48+r&ui)):e==2?(r=y.Math.min((r+5)/10|0,99),Kh(n,r,2)):(Kh(n,r,3),e>3&&Kh(n,0,e-3))}function HTe(n){var e,t,i,r;return x(v(n,(cn(),Kw)))===x((jl(),T1))?!n.e&&x(v(n,Mj))!==x((Z4(),mj)):(i=u(v(n,kH),299),r=on(un(v(n,yH)))||x(v(n,U8))===x((c5(),pj)),e=u(v(n,Hfn),17).a,t=n.a.c.length,!r&&i!=(Z4(),mj)&&(e==0||e>t))}function qTe(n){var e,t;for(t=0;t<n.c.length&&!(UPn((Nn(t,n.c.length),u(n.c[t],113)))>0);t++);if(t>0&&t<n.c.length-1)return t;for(e=0;e<n.c.length&&!(UPn((Nn(e,n.c.length),u(n.c[e],113)))>0);e++);return e>0&&t<n.c.length-1?e:n.c.length/2|0}function ZHn(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=6&&e){if(mm(n,e))throw T(new Gn(w8+dHn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?TZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,6,i)),i=fV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,6,e,e))}function SS(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(mm(n,e))throw T(new Gn(w8+nGn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?IZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,12,i)),i=hV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,3,e,e))}function ten(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=9&&e){if(mm(n,e))throw T(new Gn(w8+Yqn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?SZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,9,i)),i=lV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,9,e,e))}function Cm(n){var e,t,i,r,c;if(i=gs(n),c=n.j,c==null&&i)return n.Jk()?null:i.ik();if(L(i,156)){if(t=i.jk(),t&&(r=t.wi(),r!=n.i)){if(e=u(i,156),e.nk())try{n.g=r.ti(e,c)}catch(s){if(s=Ot(s),L(s,82))n.g=null;else throw T(s)}n.i=r}return n.g}return null}function nqn(n){var e;return e=new Z,nn(e,new bp(new V(n.c,n.d),new V(n.c+n.b,n.d))),nn(e,new bp(new V(n.c,n.d),new V(n.c,n.d+n.a))),nn(e,new bp(new V(n.c+n.b,n.d+n.a),new V(n.c+n.b,n.d))),nn(e,new bp(new V(n.c+n.b,n.d+n.a),new V(n.c,n.d+n.a))),e}function UTe(n){var e,t,i;if(n==null)return gu;try{return Jr(n)}catch(r){if(r=Ot(r),L(r,103))return e=r,i=Xa(wo(n))+"@"+(t=(fl(),iZ(n)>>>0),t.toString(16)),r9e(qve(),(a4(),"Exception during lenientFormat for "+i),e),"<"+i+" threw "+Xa(e.Rm)+">";throw T(r)}}function GTe(n,e,t){var i,r,c;for(c=e.a.ec().Kc();c.Ob();)r=u(c.Pb(),74),i=u(ee(n.b,r),272),!i&&(St(Fh(r))==St(ra(r))?LCe(n,r,t):Fh(r)==St(ra(r))?ee(n.c,r)==null&&ee(n.b,ra(r))!=null&&LGn(n,r,t,!1):ee(n.d,r)==null&&ee(n.b,Fh(r))!=null&&LGn(n,r,t,!0))}function zTe(n,e){var t,i,r,c,s,f,h;for(r=n.Kc();r.Ob();)for(i=u(r.Pb(),10),f=new Ic,ic(f,i),gi(f,(en(),Zn)),U(f,(W(),uO),(_n(),!0)),s=e.Kc();s.Ob();)c=u(s.Pb(),10),h=new Ic,ic(h,c),gi(h,Wn),U(h,uO,!0),t=new Eb,U(t,uO,!0),Zi(t,f),Oi(t,h)}function XTe(n,e,t,i){var r,c,s,f;r=KKn(n,e,t),c=KKn(n,t,e),s=u(ee(n.c,e),118),f=u(ee(n.c,t),118),r<c?new ed((af(),zw),s,f,c-r):c<r?new ed((af(),zw),f,s,r-c):(r!=0||!(!e.i||!t.i)&&i[e.i.c][t.i.c])&&(new ed((af(),zw),s,f,0),new ed(zw,f,s,0))}function eqn(n,e){var t,i,r,c,s,f,h;for(r=0,s=new M(e.a);s.a<s.c.c.length;)for(c=u(E(s),10),r+=c.o.b+c.d.a+c.d.d+n.e,i=new ie(ce(ji(c).a.Kc(),new En));pe(i);)t=u(fe(i),18),t.c.i.k==(Vn(),_c)&&(h=t.c.i,f=u(v(h,(W(),st)),10),r+=f.o.b+f.d.a+f.d.d);return r}function x5(){x5=R,D2=new b7("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),L3=new b7("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),d9=new b7("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),a9=new b7("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),_j=new b7("WHOLE_DRAWING",4)}function VTe(n,e){if(L(e,207))return m5e(n,u(e,27));if(L(e,193))return T5e(n,u(e,123));if(L(e,366))return wge(n,u(e,135));if(L(e,326))return LIe(n,u(e,74));if(e)return null;throw T(new Gn(Ncn+ca(new Fu(S(C(ki,1),Kn,1,5,[e])))))}function WTe(n){var e,t,i,r,c,s,f;for(c=new Mt,r=new M(n.d.a);r.a<r.c.c.length;)i=u(E(r),125),i.b.a.c.length==0&&xt(c,i,c.c.b,c.c);if(c.b>1)for(e=hb((t=new za,++n.b,t),n.d),f=ge(c,0);f.b!=f.d.c;)s=u(be(f),125),qs(Ns(Ls(Ds(As(new hs,1),0),e),s))}function JTe(n,e,t){var i,r,c,s,f;for(t.Ug("Breaking Point Removing",1),n.a=u(v(e,(cn(),$l)),223),c=new M(e.b);c.a<c.c.c.length;)for(r=u(E(c),30),f=new M(Cb(r.a));f.a<f.c.c.length;)s=u(E(f),10),r$n(s)&&(i=u(v(s,(W(),o0)),313),!i.d&&GGn(n,i));t.Vg()}function PS(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=11&&e){if(mm(n,e))throw T(new Gn(w8+jen(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?OZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=Wp(e,n,10,i)),i=kV(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,11,e,e))}function QTe(n){var e,t,i,r;for(i=new sd(new Ua(n.b).a);i.b;)t=Nb(i),r=u(t.ld(),12),e=u(t.md(),10),U(e,(W(),st),r),U(r,Xu,e),U(r,yj,(_n(),!0)),gi(r,u(v(e,gc),64)),v(e,gc),U(r.i,(cn(),Ft),(Ai(),Fv)),u(v(Hi(r.i),Hc),21).Fc((pr(),yv))}function YTe(n,e,t){var i,r,c,s,f,h;if(c=0,s=0,n.c)for(h=new M(n.d.i.j);h.a<h.c.c.length;)f=u(E(h),12),c+=f.e.c.length;else c=1;if(n.d)for(h=new M(n.c.i.j);h.a<h.c.c.length;)f=u(E(h),12),s+=f.g.c.length;else s=1;return r=wi(K7(s-c)),i=(t+e)/2+(t-e)*(.4*r),i}function ZTe(n){ow();var e,t;if(n.Hc((en(),sc)))throw T(new Gn("Port sides must not contain UNDEFINED"));switch(n.gc()){case 1:return gj;case 2:return e=n.Hc(Zn)&&n.Hc(Wn),t=n.Hc(Xn)&&n.Hc(ae),e||t?XI:zI;case 3:return GI;case 4:return UI;default:return null}}function mR(n,e,t){return Vg(),W4(n,e)&&W4(n,t)?!1:WR(new V(n.c,n.d),new V(n.c+n.b,n.d),e,t)||WR(new V(n.c+n.b,n.d),new V(n.c+n.b,n.d+n.a),e,t)||WR(new V(n.c+n.b,n.d+n.a),new V(n.c,n.d+n.a),e,t)||WR(new V(n.c,n.d+n.a),new V(n.c,n.d),e,t)}function ien(n,e){var t,i,r,c;if(!n.dc()){for(t=0,i=n.gc();t<i;++t)if(c=Ae(n.Xb(t)),c==null?e==null:Sn(c.substr(0,3),"!##")?e!=null&&(r=e.length,!Sn(c.substr(c.length-r,r),e)||c.length!=e.length+3)&&!Sn(Pd,e):Sn(c,OF)&&!Sn(Pd,e)||Sn(c,e))return!0}return!1}function nCe(n,e,t,i){var r,c,s,f,h,l;for(s=n.j.c.length,h=F(gDe,Dtn,314,s,0,1),f=0;f<s;f++)c=u(sn(n.j,f),12),c.p=f,h[f]=lMe(THn(c),t,i);for(TCe(n,h,t,e,i),l=new de,r=0;r<h.length;r++)h[r]&&Ve(l,u(sn(n.j,r),12),h[r]);l.f.c+l.i.c!=0&&(U(n,(W(),B8),l),Tje(n,h))}function eCe(n,e){var t,i,r,c,s,f;for(e.Ug("Partition postprocessing",1),i=new M(n.b);i.a<i.c.c.length;)for(t=u(E(i),30),c=new M(t.a);c.a<c.c.c.length;)for(r=u(E(c),10),f=new M(r.j);f.a<f.c.c.length;)s=u(E(f),12),on(un(v(s,(W(),uO))))&&q6(f);e.Vg()}function tCe(n,e,t){var i,r,c;for(r=new M(n.a.b);r.a<r.c.c.length;)if(i=u(E(r),60),c=Ig(i),c&&c.k==(Vn(),Zt))switch(u(v(c,(W(),gc)),64).g){case 4:c.n.a=e.a;break;case 2:c.n.a=t.a-(c.o.a+c.d.c);break;case 1:c.n.b=e.b;break;case 3:c.n.b=t.b-(c.o.b+c.d.a)}}function iCe(n,e,t){var i,r,c;for(t.Ug("Processor determine the height for each level",1),n.a=e.b.b==0?1:e.b.b,r=null,i=ge(e.b,0);!r&&i.b!=i.d.c;)c=u(be(i),40),on(un(v(c,(pt(),Ta))))&&(r=c);r&&UUn(n,Af(S(C(DO,1),AP,40,0,[r])),t,u(v(e,(lc(),v0)),88)),t.Vg()}function rCe(n){var e,t,i,r,c,s;for(i=(K1(),c=new Yv,c),uy(i,n),t=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));t.e!=t.i.gc();)e=u(ue(t),27),s=(r=new Yv,r),PS(s,i),kg(s,e.g,e.f),X4(s,e.k),Bo(s,e.i,e.j),ve((!i.a&&(i.a=new q(Ye,i,10,11)),i.a),s),uy(s,e);return i}function cCe(n,e,t){var i,r,c,s,f;return r=u(z(e,(mS(),wan)),17),!r&&(r=Y(0)),c=u(z(t,wan),17),!c&&(c=Y(0)),r.a>c.a?-1:r.a<c.a?1:n.a&&(i=bt(e.j,t.j),i!=0||(i=bt(e.i,t.i),i!=0))?i:(s=e.g*e.f,f=t.g*t.f,bt(s,f))}function uCe(n,e){var t,i,r,c,s,f,h,l,a,d;if(++n.e,h=n.d==null?0:n.d.length,e>h){for(a=n.d,n.d=F(Ddn,Hcn,66,2*h+4,0,1),c=0;c<h;++c)if(l=a[c],l)for(i=l.g,d=l.i,f=0;f<d;++f)r=u(i[f],136),s=aV(n,r.Bi()),t=n.d[s],!t&&(t=n.d[s]=n.dk()),t.Fc(r);return!0}else return!1}function oCe(n,e,t){var i,r,c,s,f,h;if(r=t,c=r.Lk(),Pl(n.e,c)){if(c.Si()){for(i=u(n.g,124),s=0;s<n.i;++s)if(f=i[s],rt(f,r)&&s!=e)throw T(new Gn(Vy))}}else for(h=ru(n.e.Dh(),c),i=u(n.g,124),s=0;s<n.i;++s)if(f=i[s],h.am(f.Lk()))throw T(new Gn(Zy));v5(n,e,t)}function tqn(n,e){var t,i,r,c,s,f;for(t=u(v(e,(W(),Dl)),21),s=u(ot((YR(),wt),t),21),f=u(ot(qe,t),21),c=s.Kc();c.Ob();)if(i=u(c.Pb(),21),!u(ot(n.b,i),15).dc())return!1;for(r=f.Kc();r.Ob();)if(i=u(r.Pb(),21),!u(ot(n.b,i),15).dc())return!1;return!0}function ren(n,e){var t,i,r,c,s,f,h,l,a;if(n.a.c.length==1)return c_n(u(sn(n.a,0),172),e);for(s=i5e(n),h=0,l=n.d,c=s,a=n.d,f=(l-c)/2+c;c+1<l;){for(h=0,i=new M(n.a);i.a<i.c.c.length;)t=u(E(i),172),h+=(r=G5(t,f,!1),r.a);h<e?(a=f,l=f):c=f,f=(l-c)/2+c}return a}function uy(n,e){var t,i,r,c,s;if(!e)return n;if(L(e,342))for(r=u(e,342),c=(!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),n.o),i=r.gh().c.Kc();i.e!=i.i.gc();)t=u(i.Yj(),44),s=t.md(),zk(c,u(t.ld(),149),s);else!n.o&&(n.o=new Ou((Mc(),il),C1,n,0)),hxn(n.o,e.nf());return n}function sCe(n){var e,t,i,r,c;return isNaN(n)?(B4(),aun):n<-9223372036854776e3?(B4(),bQn):n>=9223372036854776e3?(B4(),hun):(r=!1,n<0&&(r=!0,n=-n),i=0,n>=vd&&(i=wi(n/vd),n-=i*vd),t=0,n>=o3&&(t=wi(n/o3),n-=t*o3),e=wi(n),c=Yc(e,t,i),r&&H$(c),c)}function fCe(n){var e,t,i,r,c;if(c=new Z,nu(n.b,new P9n(c)),n.b.c.length=0,c.c.length!=0){for(e=(Nn(0,c.c.length),u(c.c[0],82)),t=1,i=c.c.length;t<i;++t)r=(Nn(t,c.c.length),u(c.c[t],82)),r!=e&&$ye(e,r);if(L(e,63))throw T(u(e,63));if(L(e,296))throw T(u(e,296))}}function hCe(n,e){var t,i,r,c;for(t=!e||!n.u.Hc((zu(),Rl)),c=0,r=new M(n.e.Xf());r.a<r.c.c.length;){if(i=u(E(r),852),i.ag()==(en(),sc))throw T(new Gn("Label and node size calculator can only be used with ports that have port sides assigned."));i.Qf(c++),Y6e(n,i,t)}}function cen(n){var e,t,i,r,c;for(t=new M(n.a.a);t.a<t.c.c.length;){for(e=u(E(t),316),e.j=null,c=e.a.a.ec().Kc();c.Ob();)i=u(c.Pb(),60),ff(i.b),(!e.j||i.d.c<e.j.d.c)&&(e.j=i);for(r=e.a.a.ec().Kc();r.Ob();)i=u(r.Pb(),60),i.b.a=i.d.c-e.j.d.c,i.b.b=i.d.d-e.j.d.d}return n}function IS(n){var e,t,i,r,c;for(t=new M(n.a.a);t.a<t.c.c.length;){for(e=u(E(t),194),e.f=null,c=e.a.a.ec().Kc();c.Ob();)i=u(c.Pb(),86),ff(i.e),(!e.f||i.g.c<e.f.g.c)&&(e.f=i);for(r=e.a.a.ec().Kc();r.Ob();)i=u(r.Pb(),86),i.e.a=i.g.c-e.f.g.c,i.e.b=i.g.d-e.f.g.d}return n}function lCe(n){var e,t,i;return t=u(n.a,17).a,i=u(n.b,17).a,e=y.Math.max(y.Math.abs(t),y.Math.abs(i)),t<e&&i==-e?new bi(Y(t+1),Y(i)):t==e&&i<e?new bi(Y(t),Y(i+1)):t>=-e&&i==e?new bi(Y(t-1),Y(i)):new bi(Y(t),Y(i-1))}function iqn(){return tr(),S(C(yDe,1),G,81,0,[Qon,Von,b2,N_,gsn,OI,FI,Nw,bsn,csn,asn,Lw,wsn,tsn,psn,Hon,DI,D_,PI,RI,vsn,xI,qon,dsn,ksn,KI,msn,II,Zon,hsn,fsn,_I,zon,SI,LI,Gon,hv,osn,isn,lsn,N8,Won,Xon,ssn,rsn,NI,BI,Uon,$I,usn,AI,nsn,Yon,bj,CI,esn,Jon])}function aCe(n,e,t){n.d=0,n.b=0,e.k==(Vn(),_c)&&t.k==_c&&u(v(e,(W(),st)),10)==u(v(t,st),10)&&(s$(e).j==(en(),Xn)?UHn(n,e,t):UHn(n,t,e)),e.k==_c&&t.k==Ti?s$(e).j==(en(),Xn)?n.d=1:n.b=1:t.k==_c&&e.k==Ti&&(s$(t).j==(en(),Xn)?n.b=1:n.d=1),J9e(n,e,t)}function dCe(n){var e,t,i,r,c,s,f,h,l,a,d;return d=nnn(n),e=n.a,h=e!=null,h&&j4(d,"category",n.a),r=Z9(new qa(n.d)),s=!r,s&&(l=new _a,bf(d,"knownOptions",l),t=new fyn(l),qi(new qa(n.d),t)),c=Z9(n.g),f=!c,f&&(a=new _a,bf(d,"supportedFeatures",a),i=new hyn(a),qi(n.g,i)),d}function bCe(n){var e,t,i,r,c,s,f,h,l;for(i=!1,e=336,t=0,c=new zSn(n.length),f=n,h=0,l=f.length;h<l;++h)s=f[h],i=i|(ta(s),!1),r=(X1(s),s.a),nn(c.a,Pe(r)),e&=r.yd(),t=L6e(t,r.zd());return u(u(_In(new Cn(null,nR(new On((mb(),JY(c.a)),16),new N1,e,t)),new e9n(n)),687),848)}function wCe(n,e){var t;n.d&&(e.c!=n.e.c||cve(n.e.b,e.b))&&(nn(n.f,n.d),n.a=n.d.c+n.d.b,n.d=null,n.e=null),Ole(e.b)?n.c=e:n.b=e,(e.b==(nm(),r0)&&!e.a||e.b==Iw&&e.a||e.b==d2&&e.a||e.b==Ow&&!e.a)&&n.c&&n.b&&(t=new Ho(n.a,n.c.d,e.c-n.a,n.b.d-n.c.d),n.d=t,n.e=e)}function R5(n){var e;if(vjn.call(this),this.i=new jmn,this.g=n,this.f=u(n.e&&n.e(),9).length,this.f==0)throw T(new Gn("There must be at least one phase in the phase enumeration."));this.c=(e=u(of(this.g),9),new _o(e,u(xs(e,e.length),9),0)),this.a=new ii,this.b=new de}function uen(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=7&&e){if(mm(n,e))throw T(new Gn(w8+h_n(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?CZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=u(e,54).Rh(n,1,oE,i)),i=dW(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,7,e,e))}function rqn(n,e){var t,i;if(e!=n.Cb||n.Db>>16!=3&&e){if(mm(n,e))throw T(new Gn(w8+sKn(n)));i=null,n.Cb&&(i=(t=n.Db>>16,t>=0?PZ(n,i):n.Cb.Th(n,-1-t,null,i))),e&&(i=u(e,54).Rh(n,0,fE,i)),i=bW(n,e,i),i&&i.oj()}else n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,3,e,e))}function vR(n,e){Sm();var t,i,r,c,s,f,h,l,a;return e.d>n.d&&(f=n,n=e,e=f),e.d<63?tSe(n,e):(s=(n.d&-2)<<4,l=NJ(n,s),a=NJ(e,s),i=BR(n,Rp(l,s)),r=BR(e,Rp(a,s)),h=vR(l,a),t=vR(i,r),c=vR(BR(l,i),BR(r,a)),c=zR(zR(c,h),t),c=Rp(c,s),h=Rp(h,s<<1),zR(zR(h,c),t))}function a1(){a1=R,$H=new dg(sVn,0),Phn=new dg("LONGEST_PATH",1),Ihn=new dg("LONGEST_PATH_SOURCE",2),DH=new dg("COFFMAN_GRAHAM",3),Shn=new dg(sB,4),Ohn=new dg("STRETCH_WIDTH",5),MO=new dg("MIN_WIDTH",6),Iv=new dg("BF_MODEL_ORDER",7),Ov=new dg("DF_MODEL_ORDER",8)}function gCe(n,e,t){var i,r,c,s,f;for(s=g5(n,t),f=F(Qh,b1,10,e.length,0,1),i=0,c=s.Kc();c.Ob();)r=u(c.Pb(),12),on(un(v(r,(W(),yj))))&&(f[i++]=u(v(r,Xu),10));if(i<e.length)throw T(new Ar("Expected "+e.length+" hierarchical ports, but found only "+i+"."));return f}function pCe(n,e){var t,i,r,c,s,f;if(!n.tb){for(c=(!n.rb&&(n.rb=new H0(n,Mf,n)),n.rb),f=new ap(c.i),r=new ne(c);r.e!=r.i.gc();)i=u(ue(r),142),s=i.xe(),t=u(s==null?Vc(f.f,null,i):$b(f.i,s,i),142),t&&(s==null?Vc(f.f,null,t):$b(f.i,s,t));n.tb=f}return u(Dc(n.tb,e),142)}function oy(n,e){var t,i,r,c,s;if((n.i==null&&bh(n),n.i).length,!n.p){for(s=new ap((3*n.g.i/2|0)+1),r=new yp(n.g);r.e!=r.i.gc();)i=u(Tx(r),179),c=i.xe(),t=u(c==null?Vc(s.f,null,i):$b(s.i,c,i),179),t&&(c==null?Vc(s.f,null,t):$b(s.i,c,t));n.p=s}return u(Dc(n.p,e),179)}function oen(n,e,t,i,r){var c,s,f,h,l;for(G8e(i+OT(t,t.ie()),r),nOn(e,l8e(t)),c=t.f,c&&oen(n,e,c,"Caused by: ",!1),f=(t.k==null&&(t.k=F(zF,J,82,0,0,1)),t.k),h=0,l=f.length;h<l;++h)s=f[h],oen(n,e,s,"Suppressed: ",!1);console.groupEnd!=null&&console.groupEnd.call(console)}function sy(n,e,t,i){var r,c,s,f,h;for(h=e.e,f=h.length,s=e.q.ug(h,t?0:f-1,t),r=h[t?0:f-1],s=s|Gqn(n,r,t,i),c=t?1:f-2;t?c<f:c>=0;c+=t?1:-1)s=s|e.c.lg(h,c,t,i&&!on(un(v(e.j,(W(),ka))))&&!on(un(v(e.j,(W(),j2))))),s=s|e.q.ug(h,c,t),s=s|Gqn(n,h[c],t,i);return fi(n.c,e),s}function OS(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(a=MLn(n.j),d=0,g=a.length;d<g;++d){if(l=a[d],t==(gr(),Vu)||t==Q8)for(h=hh(l.g),r=h,c=0,s=r.length;c<s;++c)i=r[c],Mje(e,i)&&Ub(i,!0);if(t==Jc||t==Q8)for(f=hh(l.e),r=f,c=0,s=r.length;c<s;++c)i=r[c],Eje(e,i)&&Ub(i,!0)}}function mCe(n){var e,t;switch(e=null,t=null,xke(n).g){case 1:e=(en(),Zn),t=Wn;break;case 2:e=(en(),ae),t=Xn;break;case 3:e=(en(),Wn),t=Zn;break;case 4:e=(en(),Xn),t=ae}wG(n,u(ho(Sp(u(ot(n.k,e),15).Oc(),w2)),113)),bG(n,u(ho(_0(u(ot(n.k,t),15).Oc(),w2)),113))}function vCe(n){var e,t,i,r,c,s;if(r=u(sn(n.j,0),12),r.e.c.length+r.g.c.length==0)n.n.a=0;else{for(s=0,i=$h(Eo(S(C(Ao,1),Kn,20,0,[new e4(r),new ip(r)])));pe(i);)t=u(fe(i),12),s+=t.i.n.a+t.n.a+t.a.a;e=u(v(n,(cn(),b0)),8),c=e?e.a:0,n.n.a=s/(r.e.c.length+r.g.c.length)-c}}function cqn(n,e){var t,i,r;for(i=new M(e.a);i.a<i.c.c.length;)t=u(E(i),225),YN(u(t.b,68),mi(Fi(u(e.b,68).c),u(e.b,68).a)),r=MUn(u(e.b,68).b,u(t.b,68).b),r>1&&(n.a=!0),W0e(u(t.b,68),tt(Fi(u(e.b,68).c),ch(mi(Fi(u(t.b,68).a),u(e.b,68).a),r))),AAn(n,e),cqn(n,t)}function uqn(n){var e,t,i,r,c,s,f;for(c=new M(n.a.a);c.a<c.c.c.length;)i=u(E(c),194),i.e=0,i.d.a.$b();for(r=new M(n.a.a);r.a<r.c.c.length;)for(i=u(E(r),194),t=i.a.a.ec().Kc();t.Ob();)for(e=u(t.Pb(),86),f=e.f.Kc();f.Ob();)s=u(f.Pb(),86),s.d!=i&&(fi(i.d,s),++s.d.e)}function kCe(n){var e,t,i,r,c,s,f,h;for(h=n.j.c.length,t=0,e=h,r=2*h,f=new M(n.j);f.a<f.c.c.length;)switch(s=u(E(f),12),s.j.g){case 2:case 4:s.p=-1;break;case 1:case 3:i=s.e.c.length,c=s.g.c.length,i>0&&c>0?s.p=e++:i>0?s.p=t++:c>0?s.p=r++:s.p=t++}Ln(),Yt(n.j,new _gn)}function yCe(n){var e,t;t=null,e=u(sn(n.g,0),18);do{if(t=e.d.i,kt(t,(W(),Es)))return u(v(t,Es),12).i;if(t.k!=(Vn(),zt)&&pe(new ie(ce(Qt(t).a.Kc(),new En))))e=u(fe(new ie(ce(Qt(t).a.Kc(),new En))),18);else if(t.k!=zt)return null}while(t&&t.k!=(Vn(),zt));return t}function jCe(n,e){var t,i,r,c,s,f,h,l,a;for(f=e.j,s=e.g,h=u(sn(f,f.c.length-1),113),a=(Nn(0,f.c.length),u(f.c[0],113)),l=Fx(n,s,h,a),c=1;c<f.c.length;c++)t=(Nn(c-1,f.c.length),u(f.c[c-1],113)),r=(Nn(c,f.c.length),u(f.c[c],113)),i=Fx(n,s,t,r),i>l&&(h=t,a=r,l=i);e.a=a,e.c=h}function ECe(n,e,t){var i,r,c,s,f,h,l;for(l=new Ul(new X7n(n)),s=S(C(RZn,1),LXn,12,0,[e,t]),f=0,h=s.length;f<h;++f)for(c=s[f],l.a.zc(c,(_n(),ga))==null,r=new Lf(c.b);tc(r.a)||tc(r.b);)i=u(tc(r.a)?E(r.a):E(r.b),18),i.c==i.d||B7(l,c==i.c?i.d:i.c);return Pe(l),new _u(l)}function qs(n){if(!n.a.d||!n.a.e)throw T(new Ar((ll(GQn),GQn.k+" must have a source and target "+(ll(ion),ion.k)+" specified.")));if(n.a.d==n.a.e)throw T(new Ar("Network simplex does not support self-loops: "+n.a+" "+n.a.d+" "+n.a.e));return BM(n.a.d.g,n.a),BM(n.a.e.b,n.a),n.a}function MCe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Constraints Postprocessor",1),s=0,c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),h=0,f=!1,i=new M(r.a);i.a<i.c.c.length;)t=u(E(i),10),t.k==(Vn(),zt)&&(f=!0,U(t,(cn(),gO),Y(s)),U(t,aO,Y(h)),++h);f&&++s}e.Vg()}function oqn(n,e,t){var i,r,c,s,f,h;if(i=0,e.b!=0&&t.b!=0){c=ge(e,0),s=ge(t,0),f=$(B(be(c))),h=$(B(be(s))),r=!0;do{if(f>h-n.b&&f<h+n.b)return-1;f>h-n.a&&f<h+n.a&&++i,f<=h&&c.b!=c.d.c?f=$(B(be(c))):h<=f&&s.b!=s.d.c?h=$(B(be(s))):r=!1}while(r)}return i}function sqn(n,e){var t,i;return H7(n.a),hf(n.a,(yC(),BO),BO),hf(n.a,N2,N2),i=new ii,Fe(i,N2,(wS(),gq)),x(z(e,(oa(),kq)))!==x((Ik(),FO))&&Fe(i,N2,dq),on(un(z(e,Yln)))&&Fe(i,N2,pq),Fe(i,N2,bq),on(un(z(e,n1n)))&&Iu(i,N2,wq),MX(n.a,i),t=gy(n.a,e),t}function TCe(n,e,t,i,r){var c,s,f,h;for(h=(c=u(of(lr),9),new _o(c,u(xs(c,c.length),9),0)),f=new M(n.j);f.a<f.c.c.length;)s=u(E(f),12),e[s.p]&&(QLe(s,e[s.p],i),_s(h,s.j));r?(Wx(n,e,(en(),Zn),2*t,i),Wx(n,e,Wn,2*t,i)):(Wx(n,e,(en(),Xn),2*t,i),Wx(n,e,ae,2*t,i))}function CCe(n){var e,t;for(t=new ie(ce(Qt(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),e.d.i.k!=(Vn(),Sc))throw T(new _l(oB+qk(n)+"' has its layer constraint set to LAST, but has at least one outgoing edge that does not go to a LAST_SEPARATE node. That must not happen."))}function SCe(n,e,t){var i,r,c,s,f;for(t.Ug("Longest path layering",1),n.a=e,f=n.a.a,n.b=F(ye,_e,28,f.c.length,15,1),i=0,s=new M(f);s.a<s.c.c.length;)r=u(E(s),10),r.p=i,n.b[i]=-1,++i;for(c=new M(f);c.a<c.c.c.length;)r=u(E(c),10),FHn(n,r);f.c.length=0,n.a=null,n.b=null,t.Vg()}function PCe(n,e,t,i){var r,c,s,f,h,l,a,d,g;for(h=0,a=new M(n.a);a.a<a.c.c.length;){for(l=u(E(a),10),f=0,c=new ie(ce(ji(l).a.Kc(),new En));pe(c);)r=u(fe(c),18),d=Of(r.c).b,g=Of(r.d).b,f=y.Math.max(f,y.Math.abs(g-d));h=y.Math.max(h,f)}return s=i*y.Math.min(1,e/t)*h,s}function ICe(n,e){var t,i,r,c,s;for(s=u(v(e,(lc(),Lln)),433),c=ge(e.b,0);c.b!=c.d.c;)if(r=u(be(c),40),n.b[r.g]==0){switch(s.g){case 0:TBn(n,r);break;case 1:KMe(n,r)}n.b[r.g]=2}for(i=ge(n.a,0);i.b!=i.d.c;)t=u(be(i),65),iw(t.b.d,t,!0),iw(t.c.b,t,!0);U(e,(pt(),yln),n.a)}function sen(n){var e;return e=new i6,n&256&&(e.a+="F"),n&128&&(e.a+="H"),n&512&&(e.a+="X"),n&2&&(e.a+="i"),n&8&&(e.a+="m"),n&4&&(e.a+="s"),n&32&&(e.a+="u"),n&64&&(e.a+="w"),n&16&&(e.a+="x"),n&Gs&&(e.a+=","),az(e.a)}function OCe(n,e){var t,i,r,c,s,f;e.Ug(PVn,1),r=u(z(n,(Bf(),h9)),107),c=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),s=x7e(c),f=y.Math.max(s.a,$(B(z(n,(_h(),f9))))-(r.b+r.c)),i=y.Math.max(s.b,$(B(z(n,UO)))-(r.d+r.a)),t=i-s.b,ht(n,s9,t),ht(n,A3,f),ht(n,Dv,i+t),e.Vg()}function ru(n,e){dr();var t,i,r,c;return e?e==(at(),pse)||(e==cse||e==zd||e==rse)&&n!=obn?new itn(n,e):(i=u(e,692),t=i.$k(),t||(I4(Nr((Lu(),zi),e)),t=i.$k()),c=(!t.i&&(t.i=new de),t.i),r=u(Fr(wr(c.f,n)),2041),!r&&Ve(c,n,r=new itn(n,e)),r):ese}function ACe(n,e){var t,i;if(i=B7(n.b,e.b),!i)throw T(new Ar("Invalid hitboxes for scanline constraint calculation."));(nRn(e.b,u(Ghe(n.b,e.b),60))||nRn(e.b,u(Uhe(n.b,e.b),60)))&&fl(),n.a[e.b.f]=u(OL(n.b,e.b),60),t=u(IL(n.b,e.b),60),t&&(n.a[t.f]=e.b)}function LCe(n,e,t){var i,r,c,s,f,h,l,a,d;for(c=Xg(e,!1,!1),l=Qk(c),d=$(B(z(e,(M5(),w_)))),r=mzn(l,d+n.a),a=new bR(r),Ur(a,e),Ve(n.b,e,a),Fn(t.c,a),h=(!e.n&&(e.n=new q(Sr,e,1,7)),e.n),f=new ne(h);f.e!=f.i.gc();)s=u(ue(f),135),i=fy(n,s,!0,0,0),Fn(t.c,i);return a}function NCe(n,e){var t,i,r,c,s,f,h;for(r=new Z,t=0;t<=n.j;t++)i=new Nc(e),i.p=n.j-t,Fn(r.c,i);for(f=new M(n.p);f.a<f.c.c.length;)s=u(E(f),10),$i(s,u(sn(r,n.j-n.g[s.p]),30));for(c=new M(r);c.a<c.c.c.length;)h=u(E(c),30),h.a.c.length==0&&q6(c);e.b.c.length=0,hi(e.b,r)}function DCe(n,e){var t,i,r,c,s,f,h,l,a;for(h=u(v(n,(W(),st)),12),l=cc(S(C(Ei,1),J,8,0,[h.i.n,h.n,h.a])).a,a=n.i.n.b,t=hh(n.e),r=t,c=0,s=r.length;c<s;++c)i=r[c],Oi(i,h),ir(i.a,new V(l,a)),e&&(f=u(v(i,(cn(),Rr)),75),f||(f=new Tu,U(i,Rr,f)),Re(f,new V(l,a)))}function $Ce(n,e){var t,i,r,c,s,f,h,l,a;for(r=u(v(n,(W(),st)),12),l=cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).a,a=n.i.n.b,t=hh(n.g),s=t,f=0,h=s.length;f<h;++f)c=s[f],Zi(c,r),gg(c.a,new V(l,a)),e&&(i=u(v(c,(cn(),Rr)),75),i||(i=new Tu,U(c,Rr,i)),Re(i,new V(l,a)))}function xCe(n){var e,t,i,r,c,s,f,h,l;if(i=n.b,c=i.e,s=Ep(u(v(i,(cn(),Ft)),101)),t=!!c&&u(v(c,(W(),Hc)),21).Hc((pr(),cs)),!(s||t))for(l=(f=new ol(n.e).a.vc().Kc(),new P0(f));l.a.Ob();)h=(e=u(l.a.Pb(),44),u(e.md(),113)),h.a&&(r=h.d,ic(r,null),h.c=!0,n.a=!0)}function RCe(n,e){var t,i,r,c;for(e.Ug("Semi-Interactive Crossing Minimization Processor",1),t=!1,r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),30),c=Nk(fC(ut(ut(new Cn(null,new On(i.a,16)),new E2n),new M2n),new T2n),new C2n),t=t|c.a!=null;t&&U(n,(W(),ifn),(_n(),!0)),e.Vg()}function KCe(n,e){var t,i,r,c,s,f;for(n.b=new Z,n.d=u(v(e,(W(),P3)),234),n.e=ype(n.d),c=new Mt,r=Af(S(C(DZn,1),OXn,36,0,[e])),s=0;s<r.c.length;)i=(Nn(s,r.c.length),u(r.c[s],36)),i.p=s++,t=new EGn(i,n.a,n.b),hi(r,t.b),nn(n.b,t),t.s&&(f=ge(c,0),_7(f,t));return n.c=new ni,c}function BCe(n,e){var t,i,r,c,s,f;for(s=u(u(ot(n.r,e),21),87).Kc();s.Ob();)c=u(s.Pb(),117),t=c.c?nW(c.c):0,t>0?c.a?(f=c.b.Mf().a,t>f&&(r=(t-f)/2,c.d.b=r,c.d.c=r)):c.d.c=n.s+t:F6(n.u)&&(i=enn(c.b),i.c<0&&(c.d.b=-i.c),i.c+i.b>c.b.Mf().a&&(c.d.c=i.c+i.b-c.b.Mf().a))}function FCe(n,e){var t,i,r,c,s;s=new Z,t=e;do c=u(ee(n.b,t),131),c.B=t.c,c.D=t.d,Fn(s.c,c),t=u(ee(n.k,t),18);while(t);return i=(Nn(0,s.c.length),u(s.c[0],131)),i.j=!0,i.A=u(i.d.a.ec().Kc().Pb(),18).c.i,r=u(sn(s,s.c.length-1),131),r.q=!0,r.C=u(r.d.a.ec().Kc().Pb(),18).d.i,s}function _Ce(n){var e,t;if(e=u(n.a,17).a,t=u(n.b,17).a,e>=0){if(e==t)return new bi(Y(-e-1),Y(-e-1));if(e==-t)return new bi(Y(-e),Y(t+1))}return y.Math.abs(e)>y.Math.abs(t)?e<0?new bi(Y(-e),Y(t)):new bi(Y(-e),Y(t+1)):new bi(Y(e+1),Y(t))}function HCe(n){var e,t;t=u(v(n,(cn(),ou)),171),e=u(v(n,(W(),Ad)),311),t==(Yo(),ya)?(U(n,ou,Ej),U(n,Ad,(vl(),k2))):t==xw?(U(n,ou,Ej),U(n,Ad,(vl(),E3))):e==(vl(),k2)?(U(n,ou,ya),U(n,Ad,vj)):e==E3&&(U(n,ou,xw),U(n,Ad,vj))}function AS(){AS=R,Lj=new S3n,Jie=Fe(new ii,(Vi(),Ac),(tr(),PI)),Zie=Iu(Fe(new ii,Ac,xI),zr,$I),nre=ah(ah(h6(Iu(Fe(new ii,Vs,FI),zr,BI),Fc),KI),_I),Qie=Iu(Fe(Fe(Fe(new ii,Jh,OI),Fc,LI),Fc,hv),zr,AI),Yie=Iu(Fe(Fe(new ii,Fc,hv),Fc,SI),zr,CI)}function K5(){K5=R,ire=Fe(Iu(new ii,(Vi(),zr),(tr(),nsn)),Ac,PI),ore=ah(ah(h6(Iu(Fe(new ii,Vs,FI),zr,BI),Fc),KI),_I),rre=Iu(Fe(Fe(Fe(new ii,Jh,OI),Fc,LI),Fc,hv),zr,AI),ure=Fe(Fe(new ii,Ac,xI),zr,$I),cre=Iu(Fe(Fe(new ii,Fc,hv),Fc,SI),zr,CI)}function qCe(n,e,t,i,r){var c,s;(!fr(e)&&e.c.i.c==e.d.i.c||!fxn(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])),t))&&!fr(e)&&(e.c==r?g4(e.a,0,new rr(t)):Re(e.a,new rr(t)),i&&!sf(n.a,t)&&(s=u(v(e,(cn(),Rr)),75),s||(s=new Tu,U(e,Rr,s)),c=new rr(t),xt(s,c,s.c.b,s.c),fi(n.a,c)))}function fqn(n,e){var t,i,r,c;for(c=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),t=c&n.b.length-1,r=null,i=n.b[t];i;r=i,i=i.a)if(i.d==c&&sh(i.i,e))return r?r.a=i.a:n.b[t]=i.a,Fjn(u(as(i.c),604),u(as(i.f),604)),V9(u(as(i.b),227),u(as(i.e),227)),--n.f,++n.e,!0;return!1}function UCe(n){var e,t;for(t=new ie(ce(ji(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),e.c.i.k!=(Vn(),Sc))throw T(new _l(oB+qk(n)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function GCe(n,e,t){var i,r,c,s,f,h,l;if(r=dKn(n.Db&254),r==0)n.Eb=t;else{if(r==1)f=F(ki,Kn,1,2,5,1),c=Bx(n,e),c==0?(f[0]=t,f[1]=n.Eb):(f[0]=n.Eb,f[1]=t);else for(f=F(ki,Kn,1,r+1,5,1),s=cd(n.Eb),i=2,h=0,l=0;i<=128;i<<=1)i==e?f[l++]=t:n.Db&i&&(f[l++]=s[h++]);n.Eb=f}n.Db|=e}function hqn(n,e,t){var i,r,c,s;for(this.b=new Z,r=0,i=0,s=new M(n);s.a<s.c.c.length;)c=u(E(s),176),t&&YIe(c),nn(this.b,c),r+=c.o,i+=c.p;this.b.c.length>0&&(c=u(sn(this.b,0),176),r+=c.o,i+=c.p),r*=2,i*=2,e>1?r=wi(y.Math.ceil(r*e)):i=wi(y.Math.ceil(i/e)),this.a=new XY(r,i)}function lqn(n,e,t,i,r,c){var s,f,h,l,a,d,g,p,m,k,j,P;for(a=i,e.j&&e.o?(p=u(ee(n.f,e.A),60),k=p.d.c+p.d.b,--a):k=e.a.c+e.a.b,d=r,t.q&&t.o?(p=u(ee(n.f,t.C),60),l=p.d.c,++d):l=t.a.c,j=l-k,h=y.Math.max(2,d-a),f=j/h,m=k+f,g=a;g<d;++g)s=u(c.Xb(g),131),P=s.a.b,s.a.c=m-P/2,m+=f}function aqn(n,e){var t,i,r,c,s,f,h,l,a,d,g;r=e?new Kpn:new Bpn,c=!1;do for(c=!1,l=e?Qo(n.b):n.b,h=l.Kc();h.Ob();)for(f=u(h.Pb(),30),g=Cb(f.a),e||Qo(g),d=new M(g);d.a<d.c.c.length;)a=u(E(d),10),r.Mb(a)&&(i=a,t=u(v(a,(W(),o0)),313),s=e?t.b:t.k,c=Kqn(i,s,e,!1));while(c)}function fen(n,e,t,i,r,c){var s,f,h,l,a,d;for(l=t.c.length,c&&(n.c=F(ye,_e,28,e.length,15,1)),s=r?0:e.length-1;r?s<e.length:s>=0;s+=r?1:-1){for(f=e[s],h=i==(en(),Zn)?r?uc(f,i):Qo(uc(f,i)):r?Qo(uc(f,i)):uc(f,i),c&&(n.c[f.p]=h.gc()),d=h.Kc();d.Ob();)a=u(d.Pb(),12),n.d[a.p]=l++;hi(t,h)}}function dqn(n,e,t){var i,r,c,s,f,h,l,a;for(c=$(B(n.b.Kc().Pb())),l=$(B(Hve(e.b))),i=ch(Fi(n.a),l-t),r=ch(Fi(e.a),t-c),a=tt(i,r),ch(a,1/(l-c)),this.a=a,this.b=new Z,f=!0,s=n.b.Kc(),s.Pb();s.Ob();)h=$(B(s.Pb())),f&&h-t>_B&&(this.b.Fc(t),f=!1),this.b.Fc(h);f&&this.b.Fc(t)}function zCe(n){var e,t,i,r;if(hPe(n,n.n),n.d.c.length>0){for(e6(n.c);Unn(n,u(E(new M(n.e.a)),125))<n.e.a.c.length;){for(e=N7e(n),r=e.e.e-e.d.e-e.a,e.e.j&&(r=-r),i=new M(n.e.a);i.a<i.c.c.length;)t=u(E(i),125),t.j&&(t.e+=r);e6(n.c)}e6(n.c),Onn(n,u(E(new M(n.e.a)),125)),pGn(n)}}function XCe(n,e){qp();var t,i;if(t=WD(z4(),e.Pg()),t){if(i=t.j,L(n,207))return k2e(u(n,27))?Su(i,(pf(),pi))||Su(i,xn):Su(i,(pf(),pi));if(L(n,326))return Su(i,(pf(),Ih));if(L(n,193))return Su(i,(pf(),Fd));if(L(n,366))return Su(i,(pf(),E1))}return!0}function VCe(n,e,t){var i,r,c,s,f,h;if(r=t,c=r.Lk(),Pl(n.e,c)){if(c.Si()){for(i=u(n.g,124),s=0;s<n.i;++s)if(f=i[s],rt(f,r)&&s!=e)throw T(new Gn(Vy))}}else for(h=ru(n.e.Dh(),c),i=u(n.g,124),s=0;s<n.i;++s)if(f=i[s],h.am(f.Lk())&&s!=e)throw T(new Gn(Zy));return u(Bg(n,e,t),76)}function bqn(n,e){if(e instanceof Object)try{if(e.__java$exception=n,navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&$doc.documentMode<9)return;var t=n;Object.defineProperties(e,{cause:{get:function(){var i=t.he();return i&&i.fe()}},suppressed:{get:function(){return t.ge()}}})}catch{}}function wqn(n,e){var t,i,r,c,s;if(i=e>>5,e&=31,i>=n.d)return n.e<0?(dh(),vQn):(dh(),P8);if(c=n.d-i,r=F(ye,_e,28,c+1,15,1),Rje(r,c,n.a,i,e),n.e<0){for(t=0;t<i&&n.a[t]==0;t++);if(t<i||e>0&&n.a[t]<<32-e){for(t=0;t<c&&r[t]==-1;t++)r[t]=0;t==c&&++c,++r[t]}}return s=new Ya(n.e,c,r),J6(s),s}function gqn(n){var e,t,i,r;return r=Pf(n),t=new $9n(r),i=new x9n(r),e=new Z,hi(e,(!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d)),hi(e,(!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e)),u(Wr(_r(ut(new Cn(null,new On(e,16)),t),i),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),Sw),Yr]))),21)}function WCe(n,e){var t;switch(t=u(v(n,(cn(),bO)),283),e.Ug("Label side selection ("+t+")",1),t.g){case 0:SHn(n,(Co(),nl));break;case 1:SHn(n,(Co(),Sa));break;case 2:zUn(n,(Co(),nl));break;case 3:zUn(n,(Co(),Sa));break;case 4:Tqn(n,(Co(),nl));break;case 5:Tqn(n,(Co(),Sa))}e.Vg()}function Pl(n,e){dr();var t,i,r;return e.Jk()?!0:e.Ik()==-2?e==(n3(),_3)||e==F3||e==SU||e==PU?!0:(r=n.Dh(),At(r,e)>=0?!1:(t=Qg((Lu(),zi),r,e),t?(i=t.Ik(),(i>1||i==-1)&&yb(Nr(zi,t))!=3):!0)):!1}function JCe(n,e,t,i){var r,c,s,f,h;return f=Gr(u(N((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84)),h=Gr(u(N((!e.c&&(e.c=new Dn(he,e,5,8)),e.c),0),84)),St(f)==St(h)||Y0(h,f)?null:(s=V7(e),s==t?i:(c=u(ee(n.a,s),10),c&&(r=c.e,r)?r:null))}function QCe(n,e,t){var i,r,c,s,f;for(t.Ug("Longest path to source layering",1),n.a=e,f=n.a.a,n.b=F(ye,_e,28,f.c.length,15,1),i=0,s=new M(f);s.a<s.c.c.length;)r=u(E(s),10),r.p=i,n.b[i]=-1,++i;for(c=new M(f);c.a<c.c.c.length;)r=u(E(c),10),_Hn(n,r);f.c.length=0,n.a=null,n.b=null,t.Vg()}function hen(n,e,t){var i,r,c,s,f,h;if(i=Ihe(t,n.length),s=n[i],c=Xjn(t,s.length),s[c].k==(Vn(),Zt))for(h=e.j,r=0;r<h.c.length;r++)f=(Nn(r,h.c.length),u(h.c[r],12)),(t?f.j==(en(),Zn):f.j==(en(),Wn))&&on(un(v(f,(W(),yj))))&&(Go(h,r,u(v(s[c],(W(),st)),12)),c+=t?1:-1)}function YCe(n,e){var t,i,r,c,s,f,h,l;e.Ug("Greedy Width Approximator",1),t=$(B(z(n,(Bf(),zO)))),h=u(z(n,h9),107),c=u(z(n,M1n),394),s=on(un(z(n,E1n))),f=$(B(z(n,l9))),l=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),NQ(l),r=new vPn(t,c,s),i=sPe(r,l,f,h),ht(n,(_h(),Xw),i.c),e.Vg()}function pqn(n){if(n.g==null)switch(n.p){case 0:n.g=y2e(n)?(_n(),ov):(_n(),ga);break;case 1:n.g=ak(b3e(n));break;case 2:n.g=vk(ape(n));break;case 3:n.g=Xwe(n);break;case 4:n.g=new z9(zwe(n));break;case 6:n.g=Tl(Jwe(n));break;case 5:n.g=Y(c2e(n));break;case 7:n.g=sm(p3e(n))}return n.g}function len(n){if(n.n==null)switch(n.p){case 0:n.n=j2e(n)?(_n(),ov):(_n(),ga);break;case 1:n.n=ak(w3e(n));break;case 2:n.n=vk(dpe(n));break;case 3:n.n=Vwe(n);break;case 4:n.n=new z9(Wwe(n));break;case 6:n.n=Tl(Qwe(n));break;case 5:n.n=Y(u2e(n));break;case 7:n.n=sm(g3e(n))}return n.n}function mqn(n,e,t,i){var r,c,s,f,h;if(f=(dr(),u(e,69).xk()),Pl(n.e,e)){if(e.Si()&&BS(n,e,i,L(e,102)&&(u(e,19).Bb&hr)!=0))throw T(new Gn(Vy))}else for(h=ru(n.e.Dh(),e),r=u(n.g,124),s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk()))throw T(new Gn(Zy));v5(n,gnn(n,e,t),f?u(i,76):Rh(e,i))}function vqn(n){var e,t,i,r,c,s,f;for(c=new M(n.a.a);c.a<c.c.c.length;)i=u(E(c),316),i.g=0,i.i=0,i.e.a.$b();for(r=new M(n.a.a);r.a<r.c.c.length;)for(i=u(E(r),316),t=i.a.a.ec().Kc();t.Ob();)for(e=u(t.Pb(),60),f=e.c.Kc();f.Ob();)s=u(f.Pb(),60),s.a!=i&&(fi(i.e,s),++s.a.g,++s.a.i)}function ZCe(n){var e,t,i,r,c;r=u(v(n,(cn(),xd)),21),c=u(v(n,kO),21),t=new V(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),e=new rr(t),r.Hc((go(),Qw))&&(i=u(v(n,Ev),8),c.Hc((io(),_v))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),e.a=y.Math.max(t.a,i.a),e.b=y.Math.max(t.b,i.b)),eOe(n,t,e)}function nSe(n,e){var t,i,r;e.a?(B7(n.b,e.b),n.a[e.b.i]=u(OL(n.b,e.b),86),t=u(IL(n.b,e.b),86),t&&(n.a[t.i]=e.b)):(i=u(OL(n.b,e.b),86),i&&i==n.a[e.b.i]&&i.d&&i.d!=e.b.d&&i.f.Fc(e.b),r=u(IL(n.b,e.b),86),r&&n.a[r.i]==e.b&&r.d&&r.d!=e.b.d&&e.b.f.Fc(r),EN(n.b,e.b))}function kqn(n,e){var t,i,r,c,s,f;return c=n.d,f=$(B(v(n,(cn(),m1)))),f<0&&(f=0,U(n,m1,f)),e.o.b=f,s=y.Math.floor(f/2),i=new Ic,gi(i,(en(),Wn)),ic(i,e),i.n.b=s,r=new Ic,gi(r,Zn),ic(r,e),r.n.b=s,Oi(n,i),t=new Eb,Ur(t,n),U(t,Rr,null),Zi(t,r),Oi(t,c),bIe(e,n,t),sEe(n,t),t}function eSe(n){var e,t;return t=u(v(n,(W(),Hc)),21),e=new ii,t.Hc((pr(),R8))&&(To(e,zie),To(e,iln)),(t.Hc(yv)||on(un(v(n,(cn(),TH)))))&&(To(e,iln),t.Hc(v2)&&To(e,Vie)),t.Hc(cs)&&To(e,Gie),t.Hc(K8)&&To(e,Wie),t.Hc(nO)&&To(e,Xie),t.Hc(vv)&&To(e,qie),t.Hc(kv)&&To(e,Uie),e}function tSe(n,e){var t,i,r,c,s,f,h,l,a,d,g;return i=n.d,c=e.d,f=i+c,h=n.e!=e.e?-1:1,f==2?(a=er(vi(n.a[0],mr),vi(e.a[0],mr)),g=Se(a),d=Se(U1(a,32)),d==0?new gl(h,g):new Ya(h,2,S(C(ye,1),_e,28,15,[g,d]))):(t=n.a,r=e.a,s=F(ye,_e,28,f,15,1),e5e(t,i,r,c,s),l=new Ya(h,f,s),J6(l),l)}function yqn(n,e,t,i){var r,c;if(e){if(r=n.a.Ne(t.d,e.d),r==0)return i.d=bV(e,t.e),i.b=!0,e;c=r<0?0:1,e.a[c]=yqn(n,e.a[c],t,i),O0(e.a[c])&&(O0(e.a[1-c])?(e.b=!0,e.a[0].b=!1,e.a[1].b=!1):O0(e.a[c].a[c])?e=jC(e,1-c):O0(e.a[c].a[1-c])&&(e=fLn(e,1-c)))}else return t;return e}function jqn(n,e,t){var i,r,c,s;r=n.i,i=n.n,$J(n,(wf(),bc),r.c+i.b,t),$J(n,wc,r.c+r.b-i.c-t[2],t),s=r.b-i.b-i.c,t[0]>0&&(t[0]+=n.d,s-=t[0]),t[2]>0&&(t[2]+=n.d,s-=t[2]),c=y.Math.max(0,s),t[1]=y.Math.max(t[1],s),$J(n,Wc,r.c+i.b+t[0]-(t[1]-s)/2,t),e==Wc&&(n.c.b=c,n.c.c=r.c+i.b+(c-s)/2)}function Eqn(){this.c=F(Ii,Cr,28,(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,15,1),this.b=F(Ii,Cr,28,S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]).length,15,1),this.a=F(Ii,Cr,28,S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]).length,15,1),Kz(this.c,Pt),Kz(this.b,li),Kz(this.a,li)}function xc(n,e,t){var i,r,c,s;if(e<=t?(r=e,c=t):(r=t,c=e),i=0,n.b==null)n.b=F(ye,_e,28,2,15,1),n.b[0]=r,n.b[1]=c,n.c=!0;else{if(i=n.b.length,n.b[i-1]+1==r){n.b[i-1]=c;return}s=F(ye,_e,28,i+2,15,1),Oc(n.b,0,s,0,i),n.b=s,n.b[i-1]>=r&&(n.c=!1,n.a=!1),n.b[i++]=r,n.b[i]=c,n.c||Gg(n)}}function iSe(n,e,t){var i,r,c,s,f,h,l;for(l=e.d,n.a=new Gc(l.c.length),n.c=new de,f=new M(l);f.a<f.c.c.length;)s=u(E(f),105),c=new yk(null),nn(n.a,c),Ve(n.c,s,c);for(n.b=new de,hEe(n,e),i=0;i<l.c.length-1;i++)for(h=u(sn(e.d,i),105),r=i+1;r<l.c.length;r++)XTe(n,h,u(sn(e.d,r),105),t)}function aw(n){var e,t,i,r,c;for(r=new Z,e=new R6((!n.a&&(n.a=new q(Ye,n,10,11)),n.a)),i=new ie(ce(Sl(n).a.Kc(),new En));pe(i);)t=u(fe(i),74),L(N((!t.b&&(t.b=new Dn(he,t,4,7)),t.b),0),193)||(c=Gr(u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),e.a._b(c)||Fn(r.c,c));return r}function rSe(n,e,t){var i,r,c;if(n.e=t,n.d=0,n.b=0,n.f=1,n.i=e,(n.e&16)==16&&(n.i=bPe(n.i)),n.j=n.i.length,Ze(n),c=Kb(n),n.d!=n.j)throw T(new Ne($e((Oe(),SWn))));if(n.g){for(i=0;i<n.g.a.c.length;i++)if(r=u(kb(n.g,i),592),n.f<=r.a)throw T(new Ne($e((Oe(),PWn))));n.g.a.c.length=0}return c}function cSe(n,e){var t,i,r,c,s,f,h;for(t=li,f=(Vn(),zt),r=new M(e.a);r.a<r.c.c.length;)i=u(E(r),10),c=i.k,c!=zt&&(s=B(v(i,(W(),cfn))),s==null?(t=y.Math.max(t,0),i.n.b=t+VX(n.a,c,f)):i.n.b=(Jn(s),s)),h=VX(n.a,c,f),i.n.b<t+h+i.d.d&&(i.n.b=t+h+i.d.d),t=i.n.b+i.o.b+i.d.a,f=c}function Mqn(n,e,t,i,r){var c,s,f,h,l,a;if(n.d&&n.d.Gg(r),c=u(r.Xb(0),27),CBn(n,t,c,!1)||(s=u(r.Xb(r.gc()-1),27),CBn(n,i,s,!0))||onn(n,r))return!0;for(a=r.Kc();a.Ob();)for(l=u(a.Pb(),27),h=e.Kc();h.Ob();)if(f=u(h.Pb(),27),NS(n,l,f))return!0;return!1}function uSe(n,e,t){var i,r,c,s,f,h,l,a,d,g;g=e.c.length,d=(l=n.Ih(t),u(l>=0?n.Lh(l,!1,!0):Hb(n,t,!1),61));n:for(c=d.Kc();c.Ob();){for(r=u(c.Pb(),58),a=0;a<g;++a)if(s=(Nn(a,e.c.length),u(e.c[a],76)),h=s.md(),f=s.Lk(),i=r.Nh(f,!1),h==null?i!=null:!rt(h,i))continue n;return r}return null}function oSe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Comment post-processing",1),c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),i=new Z,f=new M(r.a);f.a<f.c.c.length;)s=u(E(f),10),h=u(v(s,(W(),I3)),15),t=u(v(s,M3),15),(h||t)&&(MLe(s,h,t),h&&hi(i,h),t&&hi(i,t));hi(r.a,i)}e.Vg()}function sSe(n,e,t,i){var r,c,s,f;for(r=u(h1(e,(en(),Wn)).Kc().Pb(),12),c=u(h1(e,Zn).Kc().Pb(),12),f=new M(n.j);f.a<f.c.c.length;){for(s=u(E(f),12);s.e.c.length!=0;)Oi(u(sn(s.e,0),18),r);for(;s.g.c.length!=0;)Zi(u(sn(s.g,0),18),c)}t||U(e,(W(),yf),null),i||U(e,(W(),Es),null)}function Xg(n,e,t){var i,r;if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i==0)return zQ(n);if(i=u(N((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),0),166),e&&(me((!i.a&&(i.a=new ti(xo,i,5)),i.a)),H4(i,0),U4(i,0),_4(i,0),q4(i,0)),t)for(r=(!n.a&&(n.a=new q(Tt,n,6,6)),n.a);r.i>1;)dw(r,r.i-1);return i}function Tqn(n,e){var t,i,r,c,s,f,h;for(t=new Mg,c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),h=!0,i=0,f=new M(r.a);f.a<f.c.c.length;)switch(s=u(E(f),10),s.k.g){case 4:++i;case 1:vJ(t,s);break;case 0:oEe(s,e);default:t.b==t.c||wUn(t,i,h,!1,e),h=!1,i=0}t.b==t.c||wUn(t,i,h,!0,e)}}function aen(n,e){var t,i,r,c,s,f;for(t=0,f=new M(e);f.a<f.c.c.length;){for(s=u(E(f),12),hY(n.b,n.d[s.p]),r=new Lf(s.b);tc(r.a)||tc(r.b);)i=u(tc(r.a)?E(r.a):E(r.b),18),c=Sz(n,s==i.c?i.d:i.c),c>n.d[s.p]&&(t+=SJ(n.b,c),W1(n.a,Y(c)));for(;!t6(n.a);)uQ(n.b,u(Pp(n.a),17).a)}return t}function fSe(n){var e,t,i,r,c,s,f,h,l;for(n.a=new vV,l=0,r=0,i=new M(n.i.b);i.a<i.c.c.length;){for(e=u(E(i),30),e.p=r,h=new M(e.a);h.a<h.c.c.length;)f=u(E(h),10),f.p=l,++l;++r}for(c=n.r==(ps(),p0),s=c?XZn:zZn,t=new M(n.i.b);t.a<t.c.c.length;)e=u(E(t),30),Yt(e.a,s),sme(n.a,Y(e.p),e.a)}function Cqn(n,e,t){var i,r,c,s;for(c=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i,r=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));r.e!=r.i.gc();)i=u(ue(r),27),(!i.a&&(i.a=new q(Ye,i,10,11)),i.a).i==0||(c+=Cqn(n,i,!1));if(t)for(s=St(e);s;)c+=(!s.a&&(s.a=new q(Ye,s,10,11)),s.a).i,s=St(s);return c}function dw(n,e){var t,i,r,c;return n.Pj()?(i=null,r=n.Qj(),n.Tj()&&(i=n.Vj(n.$i(e),null)),t=n.Ij(4,c=Jp(n,e),null,e,r),n.Mj()&&c!=null&&(i=n.Oj(c,i)),i?(i.nj(t),i.oj()):n.Jj(t),c):(c=Jp(n,e),n.Mj()&&c!=null&&(i=n.Oj(c,null),i&&i.oj()),c)}function hSe(n){var e,t,i,r,c,s,f,h,l,a;for(l=n.a,e=new ni,h=0,i=new M(n.d);i.a<i.c.c.length;){for(t=u(E(i),226),a=0,ud(t.b,new m0n),s=ge(t.b,0);s.b!=s.d.c;)c=u(be(s),226),e.a._b(c)&&(r=t.c,f=c.c,a<f.d+f.a+l&&a+r.a+l>f.d&&(a=f.d+f.a+l));t.c.d=a,e.a.zc(t,e),h=y.Math.max(h,t.c.d+t.c.a)}return h}function pr(){pr=R,ZI=new L0("COMMENTS",0),cs=new L0("EXTERNAL_PORTS",1),R8=new L0("HYPEREDGES",2),nO=new L0("HYPERNODES",3),yv=new L0("NON_FREE_PORTS",4),v2=new L0("NORTH_SOUTH_PORTS",5),K8=new L0(JXn,6),vv=new L0("CENTER_LABELS",7),kv=new L0("END_LABELS",8),eO=new L0("PARTITIONS",9)}function lSe(n,e,t,i,r){return i<0?(i=Ug(n,r,S(C(fn,1),J,2,6,[sK,fK,hK,lK,c3,aK,dK,bK,wK,gK,pK,mK]),e),i<0&&(i=Ug(n,r,S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function aSe(n,e,t,i,r){return i<0?(i=Ug(n,r,S(C(fn,1),J,2,6,[sK,fK,hK,lK,c3,aK,dK,bK,wK,gK,pK,mK]),e),i<0&&(i=Ug(n,r,S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function dSe(n,e,t,i,r,c){var s,f,h,l;if(f=32,i<0){if(e[0]>=n.length||(f=Xi(n,e[0]),f!=43&&f!=45)||(++e[0],i=yS(n,e),i<0))return!1;f==45&&(i=-i)}return f==32&&e[0]-t==2&&r.b==2&&(h=new JE,l=h.q.getFullYear()-ha+ha-80,s=l%100,c.a=i==s,i+=(l/100|0)*100+(i<s?100:0)),c.p=i,!0}function Sqn(n,e){var t,i,r,c,s;St(n)&&(s=u(v(e,(cn(),xd)),181),x(z(n,Ft))===x((Ai(),Ia))&&ht(n,Ft,Qf),i=(cb(),new Qd(St(n))),c=new TN(St(n)?new Qd(St(n)):null,n),r=HGn(i,c,!1,!0),_s(s,(go(),Qw)),t=u(v(e,Ev),8),t.a=y.Math.max(r.a,t.a),t.b=y.Math.max(r.b,t.b))}function bSe(n,e,t){var i,r,c,s,f,h;for(s=u(v(n,(W(),hH)),15).Kc();s.Ob();){switch(c=u(s.Pb(),10),u(v(c,(cn(),ou)),171).g){case 2:$i(c,e);break;case 4:$i(c,t)}for(r=new ie(ce(Ml(c).a.Kc(),new En));pe(r);)i=u(fe(r),18),!(i.c&&i.d)&&(f=!i.d,h=u(v(i,ofn),12),f?Oi(i,h):Zi(i,h))}}function LS(){LS=R,F_=new Ap(eP,0,(en(),Xn),Xn),q_=new Ap(qK,1,ae,ae),B_=new Ap(HK,2,Zn,Zn),z_=new Ap(UK,3,Wn,Wn),H_=new Ap("NORTH_WEST_CORNER",4,Wn,Xn),__=new Ap("NORTH_EAST_CORNER",5,Xn,Zn),G_=new Ap("SOUTH_WEST_CORNER",6,ae,Wn),U_=new Ap("SOUTH_EAST_CORNER",7,Zn,ae)}function wSe(n){var e,t,i,r,c,s;for(c=new ni,e=new R6((!n.a&&(n.a=new q(Ye,n,10,11)),n.a)),r=new ie(ce(Sl(n).a.Kc(),new En));pe(r);)i=u(fe(r),74),L(N((!i.b&&(i.b=new Dn(he,i,4,7)),i.b),0),193)||(s=Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84)),e.a._b(s)||(t=c.a.zc(s,c),t==null));return c}function Vg(){Vg=R,oan=S(C(Ra,1),PK,28,14,[1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368e3,{l:3506176,m:794077,h:1},{l:884736,m:916411,h:20},{l:3342336,m:3912489,h:363},{l:589824,m:3034138,h:6914},{l:3407872,m:1962506,h:138294}]),y.Math.pow(2,-65)}function Sm(){Sm=R;var n,e;for(m3=F(l2,J,92,32,0,1),I8=F(l2,J,92,32,0,1),n=1,e=0;e<=18;e++)m3[e]=(dh(),Ec(n,0)>=0?ia(n):U6(ia(n1(n)))),I8[e]=SM(Ks(n,e),0)?ia(Ks(n,e)):U6(ia(n1(Ks(n,e)))),n=er(n,5);for(;e<I8.length;e++)m3[e]=Og(m3[e-1],m3[1]),I8[e]=Og(I8[e-1],(dh(),QF))}function Pqn(n,e){var t,i,r,c,s;if(n.c.length==0)return new bi(Y(0),Y(0));for(t=(Nn(0,n.c.length),u(n.c[0],12)).j,s=0,c=e.g,i=e.g+1;s<n.c.length-1&&t.g<c;)++s,t=(Nn(s,n.c.length),u(n.c[s],12)).j;for(r=s;r<n.c.length-1&&t.g<i;)++r,t=(Nn(s,n.c.length),u(n.c[s],12)).j;return new bi(Y(s),Y(r))}function gSe(n,e,t,i){var r,c,s,f,h,l,a;h=uc(e,t),(t==(en(),ae)||t==Wn)&&(h=Qo(h)),s=!1;do for(r=!1,c=0;c<h.gc()-1;c++)l=u(h.Xb(c),12),f=u(h.Xb(c+1),12),nje(n,l,f,i)&&(s=!0,FD(n.a,u(h.Xb(c),12),u(h.Xb(c+1),12)),a=u(h.Xb(c+1),12),h.hd(c+1,u(h.Xb(c),12)),h.hd(c,a),r=!0);while(r);return s}function pSe(n,e,t){var i,r,c,s;for(t.Ug(aVn,1),r=u(Wr(ut(new Cn(null,new On(e.b,16)),new l4n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),eHn(n,r,0),s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),40),i=ee(n.a,Y(c.g))!=null?u(ee(n.a,Y(c.g)),17).a:0,U(c,(lc(),Ph),Y(i));t.Vg()}function NS(n,e,t){var i,r,c,s,f,h,l,a;return f=e.i-n.g/2,h=t.i-n.g/2,l=e.j-n.g/2,a=t.j-n.g/2,c=e.g+n.g,s=t.g+n.g,i=e.f+n.g,r=t.f+n.g,f<h+s&&h<f&&l<a+r&&a<l||h<f+c&&f<h&&a<l+i&&l<a||f<h+s&&h<f&&l<a&&a<l+i?!0:h<f+c&&f<h&&l<a+r&&a<l}function mSe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=e.c.length,s=(Nn(t,e.c.length),u(e.c[t],293)),f=s.a.o.a,d=s.c,g=0,l=s.c;l<=s.f;l++){if(f<=n.a[l])return l;for(a=n.a[l],h=null,r=t+1;r<c;r++)i=(Nn(r,e.c.length),u(e.c[r],293)),i.c<=l&&i.f>=l&&(h=i);h&&(a=y.Math.max(a,h.a.o.a)),a>g&&(d=l,g=a)}return d}function vSe(n){var e,t,i,r,c,s,f;for(c=new Ul(u(Pe(new k0n),50)),f=li,t=new M(n.d);t.a<t.c.c.length;){for(e=u(E(t),226),f=e.c.c;c.a.gc()!=0&&(s=u(c.a.Tc(),226),s.c.c+s.c.b<f);)c.a.Bc(s)!=null;for(r=c.a.ec().Kc();r.Ob();)i=u(r.Pb(),226),Re(i.b,e),Re(e.b,i);c.a.zc(e,(_n(),ga))==null}}function Iqn(n,e,t){var i,r,c,s,f;if(!D4(e)){for(f=t.eh((L(e,16)?u(e,16).gc():wl(e.Kc()))/n.a|0),f.Ug(dVn,1),s=new d4n,c=null,r=e.Kc();r.Ob();)i=u(r.Pb(),40),s=Eo(S(C(Ao,1),Kn,20,0,[s,new sl(i)])),c&&(U(c,(pt(),dre),i),U(i,cq,c),n$(i)==n$(c)&&(U(c,uq,i),U(i,$O,c))),c=i;f.Vg(),Iqn(n,s,t)}}function kSe(n,e){var t,i,r;if(e==null){for(i=(!n.a&&(n.a=new q(Kl,n,9,5)),new ne(n.a));i.e!=i.i.gc();)if(t=u(ue(i),694),r=t.c,(r??t.zb)==null)return t}else for(i=(!n.a&&(n.a=new q(Kl,n,9,5)),new ne(n.a));i.e!=i.i.gc();)if(t=u(ue(i),694),Sn(e,(r=t.c,r??t.zb)))return t;return null}function kR(n,e){var t;switch(t=null,e.g){case 1:n.e.pf((He(),iU))&&(t=u(n.e.of(iU),256));break;case 3:n.e.pf((He(),rU))&&(t=u(n.e.of(rU),256));break;case 2:n.e.pf((He(),tU))&&(t=u(n.e.of(tU),256));break;case 4:n.e.pf((He(),cU))&&(t=u(n.e.of(cU),256))}return!t&&(t=u(n.e.of((He(),xan)),256)),t}function Oqn(n,e,t){var i,r,c,s,f,h;for(r=t,c=0,f=new M(e);f.a<f.c.c.length;)s=u(E(f),27),ht(s,(oa(),_O),Y(r++)),h=aw(s),i=y.Math.atan2(s.j+s.f/2,s.i+s.g/2),i+=i<0?Md:0,i<.7853981633974483||i>jVn?Yt(h,n.b):i<=jVn&&i>EVn?Yt(h,n.d):i<=EVn&&i>MVn?Yt(h,n.c):i<=MVn&&Yt(h,n.a),c=Oqn(n,h,c);return r}function Aqn(n,e,t,i){var r,c,s,f,h,l;for(r=(i.c+i.a)/2,vo(e.j),Re(e.j,r),vo(t.e),Re(t.e,r),l=new Zjn,f=new M(n.f);f.a<f.c.c.length;)c=u(E(f),132),h=c.a,Xx(l,e,h),Xx(l,t,h);for(s=new M(n.k);s.a<s.c.c.length;)c=u(E(s),132),h=c.b,Xx(l,e,h),Xx(l,t,h);return l.b+=2,l.a+=BOn(e,n.q),l.a+=BOn(n.q,t),l}function ySe(n,e,t){var i;t.Ug("Processor arrange node",1),on(un(v(e,(lc(),Cln)))),i=u(ho(im(ut(new Cn(null,new On(e.b,16)),new L4n))),40),n.a=u(v(e,$ln),353),n.a==(b5(),hq)||n.a==KO?qGn(n,new Fu(S(C(DO,1),AP,40,0,[i])),t.eh(1)):n.a==fq&&pzn(n,new Fu(S(C(DO,1),AP,40,0,[i])),t.eh(1)),t.Vg()}function Bf(){Bf=R,zO=new Di((He(),x2),1.3),$ce=new Di(Vw,(_n(),!1)),k1n=new fb(15),h9=new Di(M1,k1n),l9=new Di(qd,15),Ace=Gj,Dce=Hd,xce=_2,Rce=Ca,Nce=F2,Aq=Wj,Kce=Ww,M1n=(Ten(),Pce),E1n=Sce,Nq=Oce,T1n=Ice,v1n=Mce,Lq=Ece,m1n=jce,j1n=Cce,p1n=Vj,Lce=eU,Bj=kce,g1n=vce,Fj=yce,y1n=Tce}function Lqn(n){var e,t,i,r,c,s,f;for(t=n.i,e=n.n,f=t.d,n.f==(bu(),ma)?f+=(t.a-n.e.b)/2:n.f==Xs&&(f+=t.a-n.e.b),r=new M(n.d);r.a<r.c.c.length;){switch(i=u(E(r),187),s=i.Mf(),c=new Ni,c.b=f,f+=s.b+n.a,n.b.g){case 0:c.a=t.c+e.b;break;case 1:c.a=t.c+e.b+(t.b-s.a)/2;break;case 2:c.a=t.c+t.b-e.c-s.a}i.Of(c)}}function Nqn(n){var e,t,i,r,c,s,f;for(t=n.i,e=n.n,f=t.c,n.b==(Uu(),pa)?f+=(t.b-n.e.a)/2:n.b==zs&&(f+=t.b-n.e.a),r=new M(n.d);r.a<r.c.c.length;){switch(i=u(E(r),187),s=i.Mf(),c=new Ni,c.a=f,f+=s.a+n.a,n.f.g){case 0:c.b=t.d+e.d;break;case 1:c.b=t.d+e.d+(t.a-s.b)/2;break;case 2:c.b=t.d+t.a-e.a-s.b}i.Of(c)}}function jSe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;a=t.a.c,s=t.a.c+t.a.b,c=u(ee(t.c,e),468),p=c.f,m=c.a,h=new V(a,p),d=new V(s,m),r=a,t.p||(r+=n.c),r+=t.F+t.v*n.b,l=new V(r,p),g=new V(r,m),r5(e.a,S(C(Ei,1),J,8,0,[h,l])),f=t.d.a.gc()>1,f&&(i=new V(r,t.b),Re(e.a,i)),r5(e.a,S(C(Ei,1),J,8,0,[g,d]))}function den(n,e,t){var i,r;for(e<n.d.b.c.length?(n.b=u(sn(n.d.b,e),30),n.a=u(sn(n.d.b,e-1),30),n.c=e):(n.a=new Nc(n.d),n.a.p=e-1,nn(n.d.b,n.a),n.b=new Nc(n.d),n.b.p=e,nn(n.d.b,n.b),n.c=e),$i(t,n.b),r=new ie(ce(ji(t).a.Kc(),new En));pe(r);)i=u(fe(r),18),!i.c.i.c&&i.c.i.k==(Vn(),Sc)&&$i(i.c.i,n.a)}function Dqn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,KP),"ELK Randomizer"),'Distributes the nodes randomly on the plane, leading to very obfuscating layouts. Can be useful to demonstrate the power of "real" layout algorithms.'),new Vmn))),Q(n,KP,Wb,wdn),Q(n,KP,yw,15),Q(n,KP,uP,Y(0)),Q(n,KP,l3,Gm)}function ben(){ben=R;var n,e,t,i,r,c;for(K9=F(Ru,s2,28,255,15,1),PA=F(fs,gh,28,16,15,1),e=0;e<255;e++)K9[e]=-1;for(t=57;t>=48;t--)K9[t]=t-48<<24>>24;for(i=70;i>=65;i--)K9[i]=i-65+10<<24>>24;for(r=102;r>=97;r--)K9[r]=r-97+10<<24>>24;for(c=0;c<10;c++)PA[c]=48+c&ui;for(n=10;n<=15;n++)PA[n]=65+n-10&ui}function ESe(n,e){e.Ug("Process graph bounds",1),U(n,(pt(),iq),a7(A$(U0(new Cn(null,new On(n.b,16)),new r4n)))),U(n,rq,a7(A$(U0(new Cn(null,new On(n.b,16)),new c4n)))),U(n,vln,a7(O$(U0(new Cn(null,new On(n.b,16)),new u4n)))),U(n,kln,a7(O$(U0(new Cn(null,new On(n.b,16)),new o4n)))),e.Vg()}function MSe(n){var e,t,i,r,c;r=u(v(n,(cn(),xd)),21),c=u(v(n,kO),21),t=new V(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),e=new rr(t),r.Hc((go(),Qw))&&(i=u(v(n,Ev),8),c.Hc((io(),_v))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),e.a=y.Math.max(t.a,i.a),e.b=y.Math.max(t.b,i.b)),on(un(v(n,SH)))||nOe(n,t,e)}function TSe(n,e){var t,i,r,c;for(c=uc(e,(en(),ae)).Kc();c.Ob();)i=u(c.Pb(),12),t=u(v(i,(W(),Xu)),10),t&&qs(Ns(Ls(Ds(As(new hs,0),.1),n.i[e.p].d),n.i[t.p].a));for(r=uc(e,Xn).Kc();r.Ob();)i=u(r.Pb(),12),t=u(v(i,(W(),Xu)),10),t&&qs(Ns(Ls(Ds(As(new hs,0),.1),n.i[t.p].d),n.i[e.p].a))}function yR(n){var e,t,i,r,c,s;if(!n.c){if(s=new kvn,e=D9,c=e.a.zc(n,e),c==null){for(i=new ne(Pc(n));i.e!=i.i.gc();)t=u(ue(i),89),r=KS(t),L(r,90)&&Kt(s,yR(u(r,29))),ve(s,t);e.a.Bc(n)!=null,e.a.gc()==0}k8e(s),ew(s),n.c=new pg((u(N(H((G1(),Hn).o),15),19),s.i),s.g),Zu(n).b&=-33}return n.c}function wen(n){var e;if(n.c!=10)throw T(new Ne($e((Oe(),qP))));switch(e=n.a,e){case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw T(new Ne($e((Oe(),is))))}return e}function $qn(n){var e,t,i,r,c;if(n.l==0&&n.m==0&&n.h==0)return"0";if(n.h==Cy&&n.m==0&&n.l==0)return"-9223372036854775808";if(n.h>>19)return"-"+$qn(tm(n));for(t=n,i="";!(t.l==0&&t.m==0&&t.h==0);){if(r=QD(QS),t=Wen(t,r,!0),e=""+cEn(wa),!(t.l==0&&t.m==0&&t.h==0))for(c=9-e.length;c>0;c--)e="0"+e;i=e+i}return i}function CSe(n){var e,t,i,r,c,s,f;for(e=!1,t=0,r=new M(n.d.b);r.a<r.c.c.length;)for(i=u(E(r),30),i.p=t++,s=new M(i.a);s.a<s.c.c.length;)c=u(E(s),10),!e&&!D4(Ml(c))&&(e=!0);f=yt((ci(),Jf),S(C(y9,1),G,88,0,[Kr,Xr])),e||(_s(f,us),_s(f,Wf)),n.a=new m$n(f),Hu(n.f),Hu(n.b),Hu(n.e),Hu(n.g)}function SSe(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var n="__proto__",e=Object.create(null);if(e[n]!==void 0)return!1;var t=Object.getOwnPropertyNames(e);return!(t.length!=0||(e[n]=42,e[n]!==42)||Object.getOwnPropertyNames(e).length==0)}function PSe(n,e,t){var i,r,c,s,f,h,l,a,d;for(i=t.c,r=t.d,f=Of(e.c),h=Of(e.d),i==e.c?(f=nen(n,f,r),h=HFn(e.d)):(f=HFn(e.c),h=nen(n,h,r)),l=new GE(e.a),xt(l,f,l.a,l.a.a),xt(l,h,l.c.b,l.c),s=e.c==i,d=new _yn,c=0;c<l.b-1;++c)a=new bi(u(Zo(l,c),8),u(Zo(l,c+1),8)),s&&c==0||!s&&c==l.b-2?d.b=a:nn(d.a,a);return d}function ISe(n,e){var t,i,r,c;if(c=n.j.g-e.j.g,c!=0)return c;if(t=u(v(n,(cn(),v1)),17),i=u(v(e,v1),17),t&&i&&(r=t.a-i.a,r!=0))return r;switch(n.j.g){case 1:return bt(n.n.a,e.n.a);case 2:return bt(n.n.b,e.n.b);case 3:return bt(e.n.a,n.n.a);case 4:return bt(e.n.b,n.n.b);default:throw T(new Ar(tin))}}function gen(n,e,t,i){var r,c,s,f,h;if(wl((N7(),new ie(ce(Ml(e).a.Kc(),new En))))>=n.a||!QZ(e,t))return-1;if(D4(u(i.Kb(e),20)))return 1;for(r=0,s=u(i.Kb(e),20).Kc();s.Ob();)if(c=u(s.Pb(),18),h=c.c.i==e?c.d.i:c.c.i,f=gen(n,h,t,i),f==-1||(r=y.Math.max(r,f),r>n.c-1))return-1;return r+1}function xqn(n,e){var t,i,r,c,s,f;if(x(e)===x(n))return!0;if(!L(e,15)||(i=u(e,15),f=n.gc(),i.gc()!=f))return!1;if(s=i.Kc(),n.Yi()){for(t=0;t<f;++t)if(r=n.Vi(t),c=s.Pb(),r==null?c!=null:!rt(r,c))return!1}else for(t=0;t<f;++t)if(r=n.Vi(t),c=s.Pb(),x(r)!==x(c))return!1;return!0}function Rqn(n,e){var t,i,r,c,s,f;if(n.f>0){if(n._j(),e!=null){for(c=0;c<n.d.length;++c)if(t=n.d[c],t){for(i=u(t.g,379),f=t.i,s=0;s<f;++s)if(r=i[s],rt(e,r.md()))return!0}}else for(c=0;c<n.d.length;++c)if(t=n.d[c],t){for(i=u(t.g,379),f=t.i,s=0;s<f;++s)if(r=i[s],x(e)===x(r.md()))return!0}}return!1}function OSe(n,e){var t,i,r;return t=e.qi(n.a),t&&(r=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),"affiliation")),r!=null)?(i=RM(r,wu(35)),i==-1?rx(n,B6(n,jo(e.qk())),r):i==0?rx(n,null,(zn(1,r.length+1),r.substr(1))):rx(n,(Ri(0,i,r.length),r.substr(0,i)),(zn(i+1,r.length+1),r.substr(i+1)))):null}function ASe(n,e,t){var i,r,c,s;t.Ug("Orthogonally routing hierarchical port edges",1),n.a=0,i=COe(e),AAe(e,i),wAe(n,e,i),ALe(e),r=u(v(e,(cn(),Ft)),101),c=e.b,BGn((Nn(0,c.c.length),u(c.c[0],30)),r,e),BGn(u(sn(c,c.c.length-1),30),r,e),s=e.b,WUn((Nn(0,s.c.length),u(s.c[0],30))),WUn(u(sn(s,s.c.length-1),30)),t.Vg()}function pen(n){switch(n){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n-48<<24>>24;case 97:case 98:case 99:case 100:case 101:case 102:return n-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return n-65+10<<24>>24;default:throw T(new th("Invalid hexadecimal"))}}function DS(){DS=R,eon=new ag("SPIRAL",0),Qun=new ag("LINE_BY_LINE",1),Yun=new ag("MANHATTAN",2),Jun=new ag("JITTER",3),s_=new ag("QUADRANTS_LINE_BY_LINE",4),non=new ag("QUADRANTS_MANHATTAN",5),Zun=new ag("QUADRANTS_JITTER",6),Wun=new ag("COMBINE_LINE_BY_LINE_MANHATTAN",7),Vun=new ag("COMBINE_JITTER_MANHATTAN",8)}function Kqn(n,e,t,i){var r,c,s,f,h,l;for(h=zx(n,t),l=zx(e,t),r=!1;h&&l&&(i||E7e(h,l,t));)s=zx(h,t),f=zx(l,t),fk(e),fk(n),c=h.c,XR(h,!1),XR(l,!1),t?(uw(e,l.p,c),e.p=l.p,uw(n,h.p+1,c),n.p=h.p):(uw(n,h.p,c),n.p=h.p,uw(e,l.p+1,c),e.p=l.p),$i(h,null),$i(l,null),h=s,l=f,r=!0;return r}function Bqn(n){switch(n.g){case 0:return new Y5n;case 1:return new J5n;case 3:return new dMn;case 4:return new Xpn;case 5:return new _Sn;case 6:return new Q5n;case 2:return new W5n;case 7:return new q5n;case 8:return new G5n;default:throw T(new Gn("No implementation is available for the layerer "+(n.f!=null?n.f:""+n.g)))}}function LSe(n,e,t,i){var r,c,s,f,h;for(r=!1,c=!1,f=new M(i.j);f.a<f.c.c.length;)s=u(E(f),12),x(v(s,(W(),st)))===x(t)&&(s.g.c.length==0?s.e.c.length==0||(r=!0):c=!0);return h=0,r&&r^c?h=t.j==(en(),Xn)?-n.e[i.c.p][i.p]:e-n.e[i.c.p][i.p]:c&&r^c?h=n.e[i.c.p][i.p]+1:r&&c&&(h=t.j==(en(),Xn)?0:e/2),h}function jR(n,e,t,i,r,c,s,f){var h,l,a;for(h=0,e!=null&&(h^=t1(e.toLowerCase())),t!=null&&(h^=t1(t)),i!=null&&(h^=t1(i)),s!=null&&(h^=t1(s)),f!=null&&(h^=t1(f)),l=0,a=c.length;l<a;l++)h^=t1(c[l]);n?h|=256:h&=-257,r?h|=16:h&=-17,this.f=h,this.i=e==null?null:(Jn(e),e),this.a=t,this.d=i,this.j=c,this.g=s,this.e=f}function men(n,e,t){var i,r;switch(r=null,e.g){case 1:r=(Au(),Ron);break;case 2:r=(Au(),Bon)}switch(i=null,t.g){case 1:i=(Au(),Kon);break;case 2:i=(Au(),xon);break;case 3:i=(Au(),Fon);break;case 4:i=(Au(),_on)}return r&&i?Mp(n.j,new S8n(new Fu(S(C(cDe,1),Kn,178,0,[u(Pe(r),178),u(Pe(i),178)])))):(Ln(),Ln(),sr)}function NSe(n){var e,t,i;switch(e=u(v(n,(cn(),Ev)),8),U(n,Ev,new V(e.b,e.a)),u(v(n,Ch),255).g){case 1:U(n,Ch,(Bh(),eA));break;case 2:U(n,Ch,(Bh(),ZO));break;case 3:U(n,Ch,(Bh(),qj));break;case 4:U(n,Ch,(Bh(),Uj))}(n.q?n.q:(Ln(),Ln(),Wh))._b(Hw)&&(t=u(v(n,Hw),8),i=t.a,t.a=t.b,t.b=i)}function Fqn(n,e,t,i,r,c){if(this.b=t,this.d=r,n>=e.length)throw T(new Or("Greedy SwitchDecider: Free layer not in graph."));this.c=e[n],this.e=new L7(i),C$(this.e,this.c,(en(),Wn)),this.i=new L7(i),C$(this.i,this.c,Zn),this.f=new rIn(this.c),this.a=!c&&r.i&&!r.s&&this.c[0].k==(Vn(),Zt),this.a&&zje(this,n,e.length)}function _qn(n,e){var t,i,r,c,s,f;c=!n.B.Hc((io(),cE)),s=n.B.Hc(dU),n.a=new SKn(s,c,n.c),n.n&&VW(n.a.n,n.n),mL(n.g,(wf(),Wc),n.a),e||(i=new E5(1,c,n.c),i.n.a=n.k,Ip(n.p,(en(),Xn),i),r=new E5(1,c,n.c),r.n.d=n.k,Ip(n.p,ae,r),f=new E5(0,c,n.c),f.n.c=n.k,Ip(n.p,Wn,f),t=new E5(0,c,n.c),t.n.b=n.k,Ip(n.p,Zn,t))}function DSe(n){var e,t,i;switch(e=u(v(n.d,(cn(),$l)),223),e.g){case 2:t=jNe(n);break;case 3:t=(i=new Z,qt(ut(_r(rc(rc(new Cn(null,new On(n.d.b,16)),new ipn),new rpn),new cpn),new U2n),new E7n(i)),i);break;default:throw T(new Ar("Compaction not supported for "+e+" edges."))}UOe(n,t),qi(new qa(n.g),new y7n(n))}function $Se(n,e){var t,i,r,c,s,f,h;if(e.Ug("Process directions",1),t=u(v(n,(lc(),v0)),88),t!=(ci(),Wf))for(r=ge(n.b,0);r.b!=r.d.c;){switch(i=u(be(r),40),f=u(v(i,(pt(),$j)),17).a,h=u(v(i,xj),17).a,t.g){case 4:h*=-1;break;case 1:c=f,f=h,h=c;break;case 2:s=f,f=-h,h=s}U(i,$j,Y(f)),U(i,xj,Y(h))}e.Vg()}function xSe(n,e){var t;return t=new xA,e&&Ur(t,u(ee(n.a,oE),96)),L(e,422)&&Ur(t,u(ee(n.a,sE),96)),L(e,366)?(Ur(t,u(ee(n.a,Sr),96)),t):(L(e,84)&&Ur(t,u(ee(n.a,he),96)),L(e,207)?(Ur(t,u(ee(n.a,Ye),96)),t):L(e,193)?(Ur(t,u(ee(n.a,Qu),96)),t):(L(e,326)&&Ur(t,u(ee(n.a,Vt),96)),t))}function RSe(n){var e,t,i,r,c,s,f,h;for(h=new yNn,f=new M(n.a);f.a<f.c.c.length;)if(s=u(E(f),10),s.k!=(Vn(),Zt)){for(BMe(h,s,new Ni),c=new ie(ce(Qt(s).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),!(r.c.i.k==Zt||r.d.i.k==Zt))for(i=ge(r.a,0);i.b!=i.d.c;)t=u(be(i),8),e=t,O5(h,new d4(e.a,e.b))}return h}function ER(){ER=R,Q1n=new lt(YB),J1n=(s6(),Hj),W1n=new Tn(eF,J1n),V1n=(Tk(),YO),sue=new Tn(ocn,V1n),X1n=(Jk(),Fq),oue=new Tn(scn,X1n),rue=new Tn(ZB,null),z1n=(ik(),JO),uue=new Tn(nF,z1n),G1n=(eM(),Rq),nue=new Tn(fcn,G1n),eue=new Tn(hcn,(_n(),!1)),tue=new Tn(lcn,Y(64)),iue=new Tn(acn,!0),cue=Bq}function Hqn(n,e){var t,i,r,c,s,f,h,l,a,d;for(n.p=1,r=n.c,d=new rh,a=Rb(n,(gr(),Jc)).Kc();a.Ob();)for(l=u(a.Pb(),12),i=new M(l.g);i.a<i.c.c.length;)t=u(E(i),18),h=t.d.i,n!=h&&(c=h.c,c.p<=r.p&&(s=r.p+1,s==e.b.c.length?(f=new Nc(e),f.p=s,nn(e.b,f),$i(h,f)):(f=u(sn(e.b,s),30),$i(h,f)),d.a.zc(h,d)));return d}function KSe(n,e){var t,i;if(t=u(v(n,(pt(),nq)),15),!t||t.gc()<1)return null;if(t.gc()==1)return u(t.Xb(0),40);switch(i=null,e.g){case 2:i=u(ho(Sp(t.Oc(),new e4n)),40);break;case 1:i=u(ho(_0(t.Oc(),new Q3n)),40);break;case 4:i=u(ho(Sp(t.Oc(),new Y3n)),40);break;case 3:i=u(ho(_0(t.Oc(),new Z3n)),40)}return i}function qqn(n){var e,t,i,r,c,s;if(n.a==null)if(n.a=F(so,Xh,28,n.c.b.c.length,16,1),n.a[0]=!1,kt(n.c,(cn(),NH)))for(i=u(v(n.c,NH),15),t=i.Kc();t.Ob();)e=u(t.Pb(),17).a,e>0&&e<n.a.length&&(n.a[e]=!1);else for(s=new M(n.c.b),s.a<s.c.c.length&&E(s),r=1;s.a<s.c.c.length;)c=u(E(s),30),n.a[r++]=kTe(c)}function _h(){_h=R,s9=new lt("additionalHeight"),Dv=new lt("drawingHeight"),A3=new lt("drawingWidth"),UO=new lt("minHeight"),f9=new lt("minWidth"),GO=new lt("rows"),Xw=new lt("targetWidth"),Iq=new Lt("minRowIncrease",0),pce=new Lt("maxRowIncrease",0),Pq=new Lt("minRowDecrease",0),gce=new Lt("maxRowDecrease",0)}function Uqn(n,e){var t,i,r,c;switch(r=n.b,e){case 1:{n.b|=1,n.b|=4,n.b|=8;break}case 2:{n.b|=2,n.b|=4,n.b|=8;break}case 4:{n.b|=1,n.b|=2,n.b|=4,n.b|=8;break}case 3:{n.b|=16,n.b|=8;break}case 0:{n.b|=32,n.b|=16,n.b|=8,n.b|=1,n.b|=2,n.b|=4;break}}if(n.b!=r&&n.c)for(i=new ne(n.c);i.e!=i.i.gc();)c=u(ue(i),482),t=Zu(c),hw(t,e)}function Gqn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;for(r=!1,s=e,f=0,h=s.length;f<h;++f)c=s[f],on((_n(),!!c.e))&&!u(sn(n.b,c.e.p),219).s&&(r=r|(l=c.e,a=u(sn(n.b,l.p),219),d=a.e,g=Xjn(t,d.length),p=d[g][0],p.k==(Vn(),Zt)?d[g]=gCe(c,d[g],t?(en(),Wn):(en(),Zn)):a.c.mg(d,t),m=sy(n,a,t,i),hen(a.e,a.o,t),m));return r}function zqn(n,e){var t,i,r,c,s;for(c=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i,r=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));r.e!=r.i.gc();)i=u(ue(r),27),x(z(i,(He(),B2)))!==x((jl(),E9))&&(s=u(z(e,q2),143),t=u(z(i,q2),143),(s==t||s&&IJ(s,t))&&(!i.a&&(i.a=new q(Ye,i,10,11)),i.a).i!=0&&(c+=zqn(n,i)));return c}function BSe(n){var e,t,i,r,c,s,f;for(i=0,f=0,s=new M(n.d);s.a<s.c.c.length;)c=u(E(s),105),r=u(Wr(ut(new Cn(null,new On(c.j,16)),new GU),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),t=null,i<=f?(t=(en(),Xn),i+=r.gc()):f<i&&(t=(en(),ae),f+=r.gc()),e=t,qt(_r(r.Oc(),new Mpn),new C7n(e))}function FSe(n){var e,t,i,r,c;for(c=new Gc(n.a.c.length),r=new M(n.a);r.a<r.c.c.length;){switch(i=u(E(r),10),t=u(v(i,(cn(),ou)),171),e=null,t.g){case 1:case 2:e=(hd(),m2);break;case 3:case 4:e=(hd(),mv)}e?(U(i,(W(),rO),(hd(),m2)),e==mv?OS(i,t,(gr(),Vu)):e==m2&&OS(i,t,(gr(),Jc))):Fn(c.c,i)}return c}function _Se(n){var e,t,i,r,c,s,f,h;for(n.b=new rHn(new Fu((en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]))),new Fu((Lb(),S(C(K_,1),G,372,0,[u0,va,c0])))),s=S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]),f=0,h=s.length;f<h;++f)for(c=s[f],t=S(C(K_,1),G,372,0,[u0,va,c0]),i=0,r=t.length;i<r;++i)e=t[i],Nke(n.b,c,e,new Z)}function Xqn(n,e){var t,i,r,c,s,f,h,l,a,d;if(s=u(u(ot(n.r,e),21),87),f=n.u.Hc((zu(),Oa)),t=n.u.Hc(S9),i=n.u.Hc(C9),l=n.u.Hc(K3),d=n.B.Hc((io(),lA)),a=!t&&!i&&(l||s.gc()==2),BCe(n,e),r=null,h=null,f){for(c=s.Kc(),r=u(c.Pb(),117),h=r;c.Ob();)h=u(c.Pb(),117);r.d.b=0,h.d.c=0,a&&!r.a&&(r.d.c=0)}d&&(Lye(s),f&&(r.d.b=0,h.d.c=0))}function Vqn(n,e){var t,i,r,c,s,f,h,l,a,d;if(s=u(u(ot(n.r,e),21),87),f=n.u.Hc((zu(),Oa)),t=n.u.Hc(S9),i=n.u.Hc(C9),h=n.u.Hc(K3),d=n.B.Hc((io(),lA)),l=!t&&!i&&(h||s.gc()==2),oIe(n,e),a=null,r=null,f){for(c=s.Kc(),a=u(c.Pb(),117),r=a;c.Ob();)r=u(c.Pb(),117);a.d.d=0,r.d.a=0,l&&!a.a&&(a.d.a=0)}d&&(Nye(s),f&&(a.d.d=0,r.d.a=0))}function Wqn(n,e,t){var i,r,c,s,f,h,l,a;if(r=e.k,e.p>=0)return!1;if(e.p=t.b,nn(t.e,e),r==(Vn(),Ti)||r==_c){for(s=new M(e.j);s.a<s.c.c.length;)for(c=u(E(s),12),a=(i=new M(new ip(c).a.g),new NG(i));tc(a.a);)if(l=u(E(a.a),18).d,f=l.i,h=f.k,e.c!=f.c&&(h==Ti||h==_c)&&Wqn(n,f,t))return!0}return!0}function $S(n){var e;return n.Db&64?Bnn(n):(e=new ls(Bnn(n)),e.a+=" (changeable: ",ql(e,(n.Bb&Gs)!=0),e.a+=", volatile: ",ql(e,(n.Bb&Cw)!=0),e.a+=", transient: ",ql(e,(n.Bb&vw)!=0),e.a+=", defaultValueLiteral: ",Er(e,n.j),e.a+=", unsettable: ",ql(e,(n.Bb&$u)!=0),e.a+=", derived: ",ql(e,(n.Bb&wh)!=0),e.a+=")",e.a)}function HSe(n,e){var t,i,r,c,s;return r=e.qi(n.a),r&&(i=(!r.b&&(r.b=new lo((An(),ar),pc,r)),r.b),t=Ae(gf(i,Ji)),t!=null&&(c=t.lastIndexOf("#"),s=c==-1?tV(n,e.jk(),t):c==0?ok(n,null,(zn(1,t.length+1),t.substr(1))):ok(n,(Ri(0,c,t.length),t.substr(0,c)),(zn(c+1,t.length+1),t.substr(c+1))),L(s,156)))?u(s,156):null}function qSe(n,e){var t,i,r,c,s;return i=e.qi(n.a),i&&(t=(!i.b&&(i.b=new lo((An(),ar),pc,i)),i.b),c=Ae(gf(t,IF)),c!=null&&(r=c.lastIndexOf("#"),s=r==-1?tV(n,e.jk(),c):r==0?ok(n,null,(zn(1,c.length+1),c.substr(1))):ok(n,(Ri(0,r,c.length),c.substr(0,r)),(zn(r+1,c.length+1),c.substr(r+1))),L(s,156)))?u(s,156):null}function USe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(r=FTe(n.d),s=u(v(n.b,(M5(),lon)),107),f=s.b+s.c,h=s.d+s.a,a=r.d.a*n.e+f,l=r.b.a*n.f+h,Xse(n.b,new V(a,l)),g=new M(n.g);g.a<g.c.c.length;)d=u(E(g),568),e=d.g-r.a.a,t=d.i-r.c.a,i=tt(iae(new V(e,t),d.a,d.b),ch(N6(Fi(SX(d.e)),d.d*d.a,d.c*d.b),-.5)),c=PX(d.e),The(d.e,mi(i,c))}function GSe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(e.Ug("Restoring reversed edges",1),h=new M(n.b);h.a<h.c.c.length;)for(f=u(E(h),30),a=new M(f.a);a.a<a.c.c.length;)for(l=u(E(a),10),g=new M(l.j);g.a<g.c.c.length;)for(d=u(E(g),12),s=hh(d.g),i=s,r=0,c=i.length;r<c;++r)t=i[r],on(un(v(t,(W(),zf))))&&Ub(t,!1);e.Vg()}function zSe(n,e,t,i){var r,c,s,f,h;for(h=F(Ii,J,109,(en(),S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn])).length,0,2),c=S(C(lr,1),Tc,64,0,[sc,Xn,Zn,ae,Wn]),s=0,f=c.length;s<f;++s)r=c[s],h[r.g]=F(Ii,Cr,28,n.c[r.g],15,1);return lFn(h,n,Xn),lFn(h,n,ae),Kx(h,n,Xn,e,t,i),Kx(h,n,Zn,e,t,i),Kx(h,n,ae,e,t,i),Kx(h,n,Wn,e,t,i),h}function XSe(n,e,t){if(Zc(n.a,e)){if(sf(u(ee(n.a,e),49),t))return 1}else Ve(n.a,e,new ni);if(Zc(n.a,t)){if(sf(u(ee(n.a,t),49),e))return-1}else Ve(n.a,t,new ni);if(Zc(n.b,e)){if(sf(u(ee(n.b,e),49),t))return-1}else Ve(n.b,e,new ni);if(Zc(n.b,t)){if(sf(u(ee(n.b,t),49),e))return 1}else Ve(n.b,t,new ni);return 0}function VSe(n){var e,t,i,r,c,s;n.q==(Ai(),tl)||n.q==qc||(r=n.f.n.d+nT(u(Mr(n.b,(en(),Xn)),127))+n.c,e=n.f.n.a+nT(u(Mr(n.b,ae),127))+n.c,i=u(Mr(n.b,Zn),127),s=u(Mr(n.b,Wn),127),c=y.Math.max(0,i.n.d-r),c=y.Math.max(c,s.n.d-r),t=y.Math.max(0,i.n.a-e),t=y.Math.max(t,s.n.a-e),i.n.d=c,s.n.d=c,i.n.a=t,s.n.a=t)}function ven(n,e,t,i){var r,c,s,f,h,l;if(t==null){for(r=u(n.g,124),f=0;f<n.i;++f)if(s=r[f],s.Lk()==e)return cr(n,s,i)}return c=(dr(),u(e,69).xk()?u(t,76):Rh(e,t)),fo(n.e)?(l=!Rk(n,e),i=Xc(n,c,i),h=e.Jk()?V1(n,3,e,null,t,Am(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0),l):V1(n,1,e,e.ik(),t,-1,l),i?i.nj(h):i=h):i=Xc(n,c,i),i}function Jqn(){this.b=new Ql,this.d=new Ql,this.e=new Ql,this.c=new Ql,this.a=new de,this.f=new de,Pg(Ei,new Tmn,new Smn),Pg(san,new Kmn,new Bmn),Pg(Don,new Fmn,new _mn),Pg($on,new Hmn,new qmn),Pg(boe,new Umn,new Gmn),Pg(uDe,new Pmn,new Imn),Pg(fDe,new Omn,new Amn),Pg(oDe,new Lmn,new Nmn),Pg(sDe,new Dmn,new $mn),Pg(aDe,new xmn,new Rmn)}function B5(n,e){var t,i,r,c,s;for(n=n==null?gu:(Jn(n),n),r=0;r<e.length;r++)e[r]=UTe(e[r]);for(t=new fg,s=0,i=0;i<e.length&&(c=n.indexOf("%s",s),c!=-1);)t.a+=""+qo(n==null?gu:(Jn(n),n),s,c),Lc(t,e[i++]),s=c+2;if(aLn(t,n,s,n.length),i<e.length){for(t.a+=" [",Lc(t,e[i++]);i<e.length;)t.a+=ur,Lc(t,e[i++]);t.a+="]"}return t.a}function ken(n,e){var t,i,r,c,s,f,h;for(t=0,h=new M(e);h.a<h.c.c.length;){for(f=u(E(h),12),hY(n.b,n.d[f.p]),s=0,r=new Lf(f.b);tc(r.a)||tc(r.b);)i=u(tc(r.a)?E(r.a):E(r.b),18),fOn(i)?(c=Sz(n,f==i.c?i.d:i.c),c>n.d[f.p]&&(t+=SJ(n.b,c),W1(n.a,Y(c)))):++s;for(t+=n.b.d*s;!t6(n.a);)uQ(n.b,u(Pp(n.a),17).a)}return t}function Qqn(n){var e,t,i,r,c,s;return c=0,e=gs(n),e.kk()&&(c|=4),n.Bb&$u&&(c|=2),L(n,102)?(t=u(n,19),r=br(t),t.Bb&kc&&(c|=32),r&&(se(G0(r)),c|=8,s=r.t,(s>1||s==-1)&&(c|=16),r.Bb&kc&&(c|=64)),t.Bb&hr&&(c|=Cw),c|=Gs):L(e,469)?c|=512:(i=e.kk(),i&&i.i&1&&(c|=256)),n.Bb&512&&(c|=128),c}function WSe(n,e){var t;return n.f==CU?(t=yb(Nr((Lu(),zi),e)),n.e?t==4&&e!=(n3(),_3)&&e!=(n3(),F3)&&e!=(n3(),SU)&&e!=(n3(),PU):t==2):n.d&&(n.d.Hc(e)||n.d.Hc($p(Nr((Lu(),zi),e)))||n.d.Hc(Qg((Lu(),zi),n.b,e)))?!0:n.f&&ien((Lu(),n.f),q7(Nr(zi,e)))?(t=yb(Nr(zi,e)),n.e?t==4:t==2):!1}function JSe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(g=-1,p=0,l=n,a=0,d=l.length;a<d;++a){for(h=l[a],c=h,s=0,f=c.length;s<f;++s)for(r=c[s],e=new CLn(g==-1?n[0]:n[g],u(v(Hi(r),(cn(),Yh)),284),rFn(r),on(un(v(Hi(r),mH)))),t=0;t<r.j.c.length;t++)for(i=t+1;i<r.j.c.length;i++)PIn(e,u(sn(r.j,t),12),u(sn(r.j,i),12))>0&&++p;++g}return p}function QSe(n,e,t,i){var r,c,s,f,h,l,a,d;return s=u(z(t,(He(),D3)),8),h=s.a,a=s.b+n,r=y.Math.atan2(a,h),r<0&&(r+=Md),r+=e,r>Md&&(r-=Md),f=u(z(i,D3),8),l=f.a,d=f.b+n,c=y.Math.atan2(d,l),c<0&&(c+=Md),c+=e,c>Md&&(c-=Md),Cf(),Fs(1e-10),y.Math.abs(r-c)<=1e-10||r==c||isNaN(r)&&isNaN(c)?0:r<c?-1:r>c?1:sb(isNaN(r),isNaN(c))}function MR(n){var e,t,i,r,c,s,f;for(f=new de,i=new M(n.a.b);i.a<i.c.c.length;)e=u(E(i),60),Ve(f,e,new Z);for(r=new M(n.a.b);r.a<r.c.c.length;)for(e=u(E(r),60),e.i=li,s=e.c.Kc();s.Ob();)c=u(s.Pb(),60),u(Fr(wr(f.f,c)),15).Fc(e);for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),60),e.c.$b(),e.c=u(Fr(wr(f.f,e)),15);vqn(n)}function TR(n){var e,t,i,r,c,s,f;for(f=new de,i=new M(n.a.b);i.a<i.c.c.length;)e=u(E(i),86),Ve(f,e,new Z);for(r=new M(n.a.b);r.a<r.c.c.length;)for(e=u(E(r),86),e.o=li,s=e.f.Kc();s.Ob();)c=u(s.Pb(),86),u(Fr(wr(f.f,c)),15).Fc(e);for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),e.f.$b(),e.f=u(Fr(wr(f.f,e)),15);uqn(n)}function YSe(n,e,t,i){var r,c;for(tke(n,e,t,i),Vse(e,n.j-e.j+t),Wse(e,n.k-e.k+i),c=new M(e.f);c.a<c.c.c.length;)switch(r=u(E(c),334),r.a.g){case 0:em(n,e.g+r.b.a,0,e.g+r.c.a,e.i-1);break;case 1:em(n,e.g+e.o,e.i+r.b.a,n.o-1,e.i+r.c.a);break;case 2:em(n,e.g+r.b.a,e.i+e.p,e.g+r.c.a,n.p-1);break;default:em(n,0,e.i+r.b.a,e.g-1,e.i+r.c.a)}}function ZSe(n,e){var t,i,r,c,s,f,h,l;for(c=new Z,e.b.c.length=0,t=u(Wr(sJ(new Cn(null,new On(new qa(n.a.b),1))),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),r=t.Kc();r.Ob();)if(i=u(r.Pb(),17),s=kJ(n.a,i),s.b!=0)for(f=new Nc(e),Fn(c.c,f),f.p=i.a,l=ge(s,0);l.b!=l.d.c;)h=u(be(l),10),$i(h,f);hi(e.b,c)}function xS(n,e,t,i,r){var c,s,f;try{if(e>=n.o)throw T(new QG);f=e>>5,s=e&31,c=Ks(1,Se(Ks(s,1))),r?n.n[t][f]=lf(n.n[t][f],c):n.n[t][f]=vi(n.n[t][f],VV(c)),c=Ks(c,1),i?n.n[t][f]=lf(n.n[t][f],c):n.n[t][f]=vi(n.n[t][f],VV(c))}catch(h){throw h=Ot(h),L(h,333)?T(new Or(GK+n.o+"*"+n.p+zK+e+ur+t+XK)):T(h)}}function nPe(n,e,t,i){var r,c,s,f,h,l,a,d,g;for(g=new Ul(new z7n(n)),f=S(C(Qh,1),b1,10,0,[e,t]),h=0,l=f.length;h<l;++h)for(s=f[h],d=g5(s,i).Kc();d.Ob();)for(a=u(d.Pb(),12),c=new Lf(a.b);tc(c.a)||tc(c.b);)r=u(tc(c.a)?E(c.a):E(c.b),18),fr(r)||(g.a.zc(a,(_n(),ga))==null,fOn(r)&&B7(g,a==r.c?r.d:r.c));return Pe(g),new _u(g)}function yen(n,e,t,i){var r,c,s;e&&(c=$(B(v(e,(pt(),j1))))+i,s=t+$(B(v(e,xO)))/2,U(e,$j,Y(Se(vc(y.Math.round(c))))),U(e,xj,Y(Se(vc(y.Math.round(s))))),e.d.b==0||yen(n,u(DM((r=ge(new sl(e).a.d,0),new sg(r))),40),t+$(B(v(e,xO)))+n.b,i+$(B(v(e,Nv)))),v(e,uq)!=null&¥(n,u(v(e,uq),40),t,i))}function ePe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(h=Hi(e.a),r=$(B(v(h,(cn(),Kd))))*2,a=$(B(v(h,S2))),l=y.Math.max(r,a),c=F(Ii,Cr,28,e.f-e.c+1,15,1),i=-l,t=0,f=e.b.Kc();f.Ob();)s=u(f.Pb(),10),i+=n.a[s.c.p]+l,c[t++]=i;for(i+=n.a[e.a.c.p]+l,c[t++]=i,g=new M(e.e);g.a<g.c.c.length;)d=u(E(g),10),i+=n.a[d.c.p]+l,c[t++]=i;return c}function tPe(n,e){var t,i,r,c;if(c=u(z(n,(He(),H2)),64).g-u(z(e,H2),64).g,c!=0)return c;if(t=u(z(n,uU),17),i=u(z(e,uU),17),t&&i&&(r=t.a-i.a,r!=0))return r;switch(u(z(n,H2),64).g){case 1:return bt(n.i,e.i);case 2:return bt(n.j,e.j);case 3:return bt(e.i,n.i);case 4:return bt(e.j,n.j);default:throw T(new Ar(tin))}}function jen(n){var e,t,i;return n.Db&64?iR(n):(e=new mo(Ecn),t=n.k,t?Be(Be((e.a+=' "',e),t),'"'):(!n.n&&(n.n=new q(Sr,n,1,7)),n.n.i>0&&(i=(!n.n&&(n.n=new q(Sr,n,1,7)),u(N(n.n,0),135)).a,!i||Be(Be((e.a+=' "',e),i),'"'))),Be(tb(Be(tb(Be(tb(Be(tb((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function Yqn(n){var e,t,i;return n.Db&64?iR(n):(e=new mo(Mcn),t=n.k,t?Be(Be((e.a+=' "',e),t),'"'):(!n.n&&(n.n=new q(Sr,n,1,7)),n.n.i>0&&(i=(!n.n&&(n.n=new q(Sr,n,1,7)),u(N(n.n,0),135)).a,!i||Be(Be((e.a+=' "',e),i),'"'))),Be(tb(Be(tb(Be(tb(Be(tb((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")"),e.a)}function iPe(n,e){var t,i,r,c,s;for(e==(a5(),zH)&&Yk(u(ot(n.a,(ow(),gj)),15)),r=u(ot(n.a,(ow(),gj)),15).Kc();r.Ob();)switch(i=u(r.Pb(),105),t=u(sn(i.j,0),113).d.j,c=new _u(i.j),Yt(c,new apn),e.g){case 2:Qx(n,c,t,(Lb(),va),1);break;case 1:case 0:s=qTe(c),Qx(n,new Jl(c,0,s),t,(Lb(),va),0),Qx(n,new Jl(c,s,c.c.length),t,va,1)}}function CR(n,e){var t,i,r,c,s,f,h;if(e==null||e.length==0)return null;if(r=u(Dc(n.a,e),143),!r){for(i=(f=new ol(n.b).a.vc().Kc(),new P0(f));i.a.Ob();)if(t=(c=u(i.a.Pb(),44),u(c.md(),143)),s=t.c,h=e.length,Sn(s.substr(s.length-h,h),e)&&(e.length==s.length||Xi(s,s.length-e.length-1)==46)){if(r)return null;r=t}r&&Lr(n.a,e,r)}return r}function rPe(n,e){var t,i,r,c;return t=new C0n,i=u(Wr(_r(new Cn(null,new On(n.f,16)),t),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),Sw),Yr]))),21),r=i.gc(),i=u(Wr(_r(new Cn(null,new On(e.f,16)),t),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[Sw,Yr]))),21),c=i.gc(),r<c?-1:r==c?0:1}function Zqn(n){var e,t,i;kt(n,(cn(),a0))&&(i=u(v(n,a0),21),!i.dc()&&(t=(e=u(of(yr),9),new _o(e,u(xs(e,e.length),9),0)),i.Hc((lw(),No))?_s(t,No):_s(t,Zs),i.Hc(Ms)||_s(t,Ms),i.Hc(Qs)?_s(t,nf):i.Hc(xl)?_s(t,el):i.Hc(Ys)&&_s(t,Ts),i.Hc(nf)?_s(t,Qs):i.Hc(el)?_s(t,xl):i.Hc(Ts)&&_s(t,Ys),U(n,a0,t)))}function cPe(n){var e,t,i,r,c,s,f;for(r=u(v(n,(W(),s0)),10),i=n.j,t=(Nn(0,i.c.length),u(i.c[0],12)),s=new M(r.j);s.a<s.c.c.length;)if(c=u(E(s),12),x(c)===x(v(t,st))){c.j==(en(),Xn)&&n.p>r.p?(gi(c,ae),c.d&&(f=c.o.b,e=c.a.b,c.a.b=f-e)):c.j==ae&&r.p>n.p&&(gi(c,Xn),c.d&&(f=c.o.b,e=c.a.b,c.a.b=-(f-e)));break}return r}function fy(n,e,t,i,r){var c,s,f,h,l,a,d;if(!(L(e,207)||L(e,366)||L(e,193)))throw T(new Gn("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return s=n.a/2,h=e.i+i-s,a=e.j+r-s,l=h+e.g+n.a,d=a+e.f+n.a,c=new Tu,Re(c,new V(h,a)),Re(c,new V(h,d)),Re(c,new V(l,d)),Re(c,new V(l,a)),f=new bR(c),Ur(f,e),t&&Ve(n.b,e,f),f}function Pm(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=new V(e,t),a=new M(n.a);a.a<a.c.c.length;)for(l=u(E(a),10),tt(l.n,c),g=new M(l.j);g.a<g.c.c.length;)for(d=u(E(g),12),r=new M(d.g);r.a<r.c.c.length;)for(i=u(E(r),18),nw(i.a,c),s=u(v(i,(cn(),Rr)),75),s&&nw(s,c),h=new M(i.b);h.a<h.c.c.length;)f=u(E(h),72),tt(f.n,c)}function uPe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=new V(e,t),a=new M(n.a);a.a<a.c.c.length;)for(l=u(E(a),10),tt(l.n,c),g=new M(l.j);g.a<g.c.c.length;)for(d=u(E(g),12),r=new M(d.g);r.a<r.c.c.length;)for(i=u(E(r),18),nw(i.a,c),s=u(v(i,(cn(),Rr)),75),s&&nw(s,c),h=new M(i.b);h.a<h.c.c.length;)f=u(E(h),72),tt(f.n,c)}function nUn(n){if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i==0)throw T(new hp("Edges must have a source."));if((!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i==0)throw T(new hp("Edges must have a target."));if(!n.b&&(n.b=new Dn(he,n,4,7)),!(n.b.i<=1&&(!n.c&&(n.c=new Dn(he,n,5,8)),n.c.i<=1)))throw T(new hp("Hyperedges are not supported."))}function Een(n,e){var t,i,r,c,s,f,h,l,a,d;for(d=0,c=new Mg,W1(c,e);c.b!=c.c;)for(h=u(Pp(c),219),l=0,a=u(v(e.j,(cn(),Yh)),284),s=$(B(v(e.j,hO))),f=$(B(v(e.j,Ffn))),a!=(lh(),k1)&&(l+=s*fTe(h.e,a),l+=f*JSe(h.e)),d+=VBn(h.d,h.e)+l,r=new M(h.b);r.a<r.c.c.length;)i=u(E(r),36),t=u(sn(n.b,i.p),219),t.s||(d+=kS(n,t));return d}function dh(){dh=R;var n;for(sI=new gl(1,1),QF=new gl(1,10),P8=new gl(0,0),vQn=new gl(-1,1),kQn=S(C(l2,1),J,92,0,[P8,sI,new gl(1,2),new gl(1,3),new gl(1,4),new gl(1,5),new gl(1,6),new gl(1,7),new gl(1,8),new gl(1,9),QF]),fI=F(l2,J,92,32,0,1),n=0;n<fI.length;n++)fI[n]=SM(Ks(1,n),0)?ia(Ks(1,n)):U6(ia(n1(Ks(1,n))))}function eUn(n,e,t,i,r,c,s){if(n.c=i.Lf().a,n.d=i.Lf().b,r&&(n.c+=r.Lf().a,n.d+=r.Lf().b),n.b=e.Mf().a,n.a=e.Mf().b,!r)t?n.c-=s+e.Mf().a:n.c+=i.Mf().a+s;else switch(r.ag().g){case 0:case 2:n.c+=r.Mf().a+s+c.a+s;break;case 4:n.c-=s+c.a+s+e.Mf().a;break;case 1:n.c+=r.Mf().a+s,n.d-=s+c.b+s+e.Mf().b;break;case 3:n.c+=r.Mf().a+s,n.d+=r.Mf().b+s+c.b+s}}function tUn(n,e){var t,i;for(this.b=new Z,this.e=new Z,this.a=n,this.d=e,E9e(this),I8e(this),this.b.dc()?this.c=n.c.p:this.c=u(this.b.Xb(0),10).c.p,this.e.c.length==0?this.f=n.c.p:this.f=u(sn(this.e,this.e.c.length-1),10).c.p,i=u(v(n,(W(),F8)),15).Kc();i.Ob();)if(t=u(i.Pb(),72),kt(t,(cn(),dO))){this.d=u(v(t,dO),232);break}}function Im(n,e,t){var i,r,c,s,f,h,l,a;for(i=u(ee(n.a,e),49),c=u(ee(n.a,t),49),r=u(ee(n.e,e),49),s=u(ee(n.e,t),49),i.a.zc(t,i),s.a.zc(e,s),a=c.a.ec().Kc();a.Ob();)l=u(a.Pb(),10),i.a.zc(l,i),fi(u(ee(n.e,l),49),e),Ki(u(ee(n.e,l),49),r);for(h=r.a.ec().Kc();h.Ob();)f=u(h.Pb(),10),s.a.zc(f,s),fi(u(ee(n.a,f),49),t),Ki(u(ee(n.a,f),49),c)}function hy(n,e,t){var i,r,c,s,f,h,l,a;for(i=u(ee(n.a,e),49),c=u(ee(n.a,t),49),r=u(ee(n.b,e),49),s=u(ee(n.b,t),49),i.a.zc(t,i),s.a.zc(e,s),a=c.a.ec().Kc();a.Ob();)l=u(a.Pb(),10),i.a.zc(l,i),fi(u(ee(n.b,l),49),e),Ki(u(ee(n.b,l),49),r);for(h=r.a.ec().Kc();h.Ob();)f=u(h.Pb(),10),s.a.zc(f,s),fi(u(ee(n.a,f),49),t),Ki(u(ee(n.a,f),49),c)}function ns(n,e,t){var i,r,c,s,f,h,l,a;for(i=u(ee(n.a,e),49),c=u(ee(n.a,t),49),r=u(ee(n.d,e),49),s=u(ee(n.d,t),49),i.a.zc(t,i),s.a.zc(e,s),a=c.a.ec().Kc();a.Ob();)l=u(a.Pb(),12),i.a.zc(l,i),fi(u(ee(n.d,l),49),e),Ki(u(ee(n.d,l),49),r);for(h=r.a.ec().Kc();h.Ob();)f=u(h.Pb(),12),s.a.zc(f,s),fi(u(ee(n.a,f),49),t),Ki(u(ee(n.a,f),49),c)}function oPe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;if(c=t,t<i)for(g=(p=new yk(n.p),m=new yk(n.p),Ki(p.e,n.e),p.q=n.q,p.r=m,mT(p),Ki(m.j,n.j),m.r=p,mT(m),new bi(p,m)),d=u(g.a,118),a=u(g.b,118),r=(Nn(c,e.c.length),u(e.c[c],339)),s=Aqn(n,d,a,r),l=t+1;l<=i;l++)f=(Nn(l,e.c.length),u(e.c[l],339)),h=Aqn(n,d,a,f),j9e(f,h,r,s)&&(r=f,s=h,c=l);return c}function sPe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;for(s=u(N(e,0),27),eu(s,0),tu(s,0),g=new Z,Fn(g.c,s),f=s,c=new tW(n.a,s.g,s.f,(x5(),_j)),p=1;p<e.i;p++)m=u(N(e,p),27),h=RR(n,D2,m,f,c,g,t),l=RR(n,L3,m,f,c,g,t),a=RR(n,d9,m,f,c,g,t),d=RR(n,a9,m,f,c,g,t),r=ROe(n,h,l,a,d,m,f,i),eu(m,r.d),tu(m,r.e),lfe(r,_j),c=r,f=m,Fn(g.c,m);return c}function fPe(n,e,t){var i,r,c,s,f,h,l,a,d,g;if(a=null,g=e,d=GLn(n,$Ln(t),g),X4(d,bl(g,Eh)),s=Sb(g,Ccn),i=new pTn(n,d),LEe(i.a,i.b,s),f=Sb(g,pF),r=new mTn(n,d),NEe(r.a,r.b,f),(!d.b&&(d.b=new Dn(he,d,4,7)),d.b).i==0||(!d.c&&(d.c=new Dn(he,d,5,8)),d.c).i==0)throw c=bl(g,Eh),h=vWn+c,l=h+iv,T(new eh(l));return gS(g,d),dNe(n,g,d),a=_$(n,g,d),a}function hPe(n,e){var t,i,r,c,s,f,h;for(r=F(ye,_e,28,n.e.a.c.length,15,1),s=new M(n.e.a);s.a<s.c.c.length;)c=u(E(s),125),r[c.d]+=c.b.a.c.length;for(f=$7(e);f.b!=0;)for(c=u(f.b==0?null:(oe(f.b!=0),Xo(f,f.a.a)),125),i=Fp(new M(c.g.a));i.Ob();)t=u(i.Pb(),218),h=t.e,h.e=y.Math.max(h.e,c.e+t.a),--r[h.d],r[h.d]==0&&xt(f,h,f.c.b,f.c)}function iUn(n){var e,t,i,r,c,s,f,h,l,a,d;for(t=Wi,r=et,f=new M(n.e.a);f.a<f.c.c.length;)c=u(E(f),125),r=y.Math.min(r,c.e),t=y.Math.max(t,c.e);for(e=F(ye,_e,28,t-r+1,15,1),s=new M(n.e.a);s.a<s.c.c.length;)c=u(E(s),125),c.e-=r,++e[c.e];if(i=0,n.k!=null)for(l=n.k,a=0,d=l.length;a<d&&(h=l[a],e[i++]+=h,e.length!=i);++a);return e}function lPe(n,e){var t,i,r,c,s,f;if(e.Ug("Edge routing",1),r=u(v(n,(lc(),oq)),392),r==(d5(),ZH))O4e(n);else if(r==Nj)for(u(ho(im(ut(new Cn(null,new On(n.b,16)),new X3n))),40),c=$(B(v(n,Nln))),s=$(B(v(n,Pln))),f=u(v(n,v0),88),gNe(n,f,c),XNe(n,f,c,s),QNe(n,f,c,s),i=ge(n.a,0);i.b!=i.d.c;)t=u(be(i),65),t.a.b<2&&Ann(t);e.Vg()}function rUn(n){switch(n.d){case 9:case 8:return!0;case 3:case 5:case 4:case 6:return!1;case 7:return u(len(n),17).a==n.o;case 1:case 2:{if(n.o==-2)return!1;switch(n.p){case 0:case 1:case 2:case 6:case 5:case 7:return ob(n.k,n.f);case 3:case 4:return n.j==n.e;default:return n.n==null?n.g==null:rt(n.n,n.g)}}default:return!1}}function aPe(n,e){var t,i,r;switch(e.Ug("Breaking Point Insertion",1),i=new Gnn(n),u(v(n,(cn(),LH)),351).g){case 2:r=new WU;break;case 0:r=new zU;break;default:r=new JU}if(t=r.og(n,i),on(un(v(n,Mhn)))&&(t=eAe(n,t)),!r.pg()&&kt(n,jO))switch(u(v(n,jO),352).g){case 2:t=R_n(i,t);break;case 1:t=PFn(i,t)}if(t.dc()){e.Vg();return}yNe(n,t),e.Vg()}function cUn(n,e,t){var i,r,c,s,f,h,l,a,d;for(c=new Gc(e.c.length),l=new M(e);l.a<l.c.c.length;)s=u(E(l),10),nn(c,n.b[s.c.p][s.p]);for(JOe(n,c,t),d=null;d=_Ae(c);)OIe(n,u(d.a,239),u(d.b,239),c);for(e.c.length=0,r=new M(c);r.a<r.c.c.length;)for(i=u(E(r),239),f=i.d,h=0,a=f.length;h<a;++h)s=f[h],Fn(e.c,s),n.a[s.c.p][s.p].a=Sf(i.g,i.d[0]).a}function uUn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,a8),"ELK Fixed"),"Keeps the current layout as it is, without any automatic modification. Optional coordinates can be given for nodes and edge bend points."),new Xmn))),Q(n,a8,Wb,hdn),Q(n,a8,CP,rn(j9)),Q(n,a8,gcn,rn(udn)),Q(n,a8,r2,rn(odn)),Q(n,a8,d3,rn(fdn)),Q(n,a8,zm,rn(sdn))}function RS(n,e,t){var i,r,c,s,f;if(i=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),f=Se(er(Uh,xh(Se(er(t==null?0:mt(t),Gh)),15))),c=u5(n,e,i),c&&f==c.f&&sh(t,c.i))return t;if(s=o5(n,t,f),s)throw T(new Gn("value already present: "+t));return r=new kT(e,i,t,f),c?(zg(n,c),ny(n,r,c),c.e=null,c.c=null,c.i):(ny(n,r,null),aFn(n),null)}function dPe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;a=t.a.c,s=t.a.c+t.a.b,c=u(ee(t.c,e),468),p=c.f,m=c.a,c.b?h=new V(s,p):h=new V(a,p),c.c?d=new V(a,m):d=new V(s,m),r=a,t.p||(r+=n.c),r+=t.F+t.v*n.b,l=new V(r,p),g=new V(r,m),r5(e.a,S(C(Ei,1),J,8,0,[h,l])),f=t.d.a.gc()>1,f&&(i=new V(r,t.b),Re(e.a,i)),r5(e.a,S(C(Ei,1),J,8,0,[g,d]))}function ps(){ps=R,SO=new N0(kh,0),Pj=new N0("NIKOLOV",1),Ij=new N0("NIKOLOV_PIXEL",2),Rhn=new N0("NIKOLOV_IMPROVED",3),Khn=new N0("NIKOLOV_IMPROVED_PIXEL",4),xhn=new N0("DUMMYNODE_PERCENTAGE",5),Bhn=new N0("NODECOUNT_PERCENTAGE",6),PO=new N0("NO_BOUNDARY",7),p0=new N0("MODEL_ORDER_LEFT_TO_RIGHT",8),Uw=new N0("MODEL_ORDER_RIGHT_TO_LEFT",9)}function bPe(n){var e,t,i,r,c;for(i=n.length,e=new i6,c=0;c<i;)if(t=Xi(n,c++),!(t==9||t==10||t==12||t==13||t==32)){if(t==35){for(;c<i&&(t=Xi(n,c++),!(t==13||t==10)););continue}t==92&&c<i?(r=(zn(c,n.length),n.charCodeAt(c)))==35||r==9||r==10||r==12||r==13||r==32?(C4(e,r&ui),++c):(e.a+="\\",C4(e,r&ui),++c):C4(e,t&ui)}return e.a}function Men(){Men=R,zre=new Tn(Brn,(_n(),!1)),Jre=new Tn(Frn,Y(0)),Qre=new Tn(_rn,0),Yre=new Tn(NP,!1),Gln=(Ik(),FO),Vre=new Tn(zB,Gln),Y(0),Xre=new Tn(XB,Y(1)),Xln=(SC(),Eq),tce=new Tn(Hrn,Xln),Vln=(ZT(),mq),ice=new Tn(qrn,Vln),zln=(sS(),jq),Wre=new Tn(Urn,zln),ece=new Tn(VB,0),Zre=new Tn(WB,!1),nce=new Tn(Grn,!1)}function wPe(n,e){var t,i,r;for(i=new M(e);i.a<i.c.c.length;)if(t=u(E(i),27),In(n.a,t,t),In(n.b,t,t),r=aw(t),r.c.length!=0)for(n.d&&n.d.Gg(r),In(n.a,t,(Nn(0,r.c.length),u(r.c[0],27))),In(n.b,t,u(sn(r,r.c.length-1),27));K$(r).c.length!=0;)r=K$(r),n.d&&n.d.Gg(r),In(n.a,t,(Nn(0,r.c.length),u(r.c[0],27))),In(n.b,t,u(sn(r,r.c.length-1),27))}function SR(n,e,t){var i,r,c,s,f,h;if(e)if(t<=-1){if(i=$n(e.Dh(),-1-t),L(i,102))return u(i,19);for(s=u(e.Mh(i),160),f=0,h=s.gc();f<h;++f)if(x(s.Ul(f))===x(n)&&(r=s.Tl(f),L(r,102)&&(c=u(r,19),c.Bb&kc)))return c;throw T(new Ar("The containment feature could not be located"))}else return br(u($n(n.Dh(),t),19));else return null}function gPe(n){var e,t,i,r,c,s,f,h,l,a;for(t=0,f=new M(n.d);f.a<f.c.c.length;)s=u(E(f),105),s.i&&(s.i.c=t++);for(e=Wa(so,[J,Xh],[183,28],16,[t,t],2),a=n.d,r=0;r<a.c.length;r++)if(h=(Nn(r,a.c.length),u(a.c[r],105)),h.i)for(c=r+1;c<a.c.length;c++)l=(Nn(c,a.c.length),u(a.c[c],105)),l.i&&(i=Hye(h,l),e[h.i.c][l.i.c]=i,e[l.i.c][h.i.c]=i);return e}function Ten(){Ten=R,Tce=new Tn(Vrn,(_n(),!1)),Y(-1),vce=new Tn(Wrn,Y(-1)),Y(-1),kce=new Tn(Jrn,Y(-1)),yce=new Tn(Qrn,!1),w1n=(GT(),Dq),Ice=new Tn(Yrn,w1n),Oce=new Tn(Zrn,-1),b1n=(_C(),Oq),Pce=new Tn(ncn,b1n),Sce=new Tn(ecn,!0),d1n=(nC(),$q),Mce=new Tn(tcn,d1n),Ece=new Tn(icn,!1),Y(1),jce=new Tn(rcn,Y(1)),Cce=new lt(ccn)}function F5(){F5=R,YH=new ub("ROOT_PROC",0),sln=new ub("FAN_PROC",1),aln=new ub("LEVEL_PROC",2),dln=new ub("NEIGHBORS_PROC",3),lln=new ub("LEVEL_HEIGHT",4),oln=new ub("DIRECTION_PROC",5),bln=new ub("NODE_POSITION_PROC",6),cln=new ub("COMPACTION_PROC",7),hln=new ub("LEVEL_COORDS",8),fln=new ub("GRAPH_BOUNDS_PROC",9),uln=new ub("DETREEIFYING_PROC",10)}function Cen(n,e){var t,i,r,c,s,f,h,l,a,d;for(d=Hr(e),l=null,r=!1,f=0,a=Pc(d.a).i;f<a;++f)s=u(py(d,f,(c=u(N(Pc(d.a),f),89),h=c.c,L(h,90)?u(h,29):(An(),Os))),29),t=Cen(n,s),t.dc()||(l?(r||(r=!0,l=new sT(l)),l.Gc(t)):l=t);return i=CEe(n,e),i.dc()?l||(Ln(),Ln(),sr):l?(r||(l=new sT(l)),l.Gc(i),l):i}function PR(n,e){var t,i,r,c,s,f,h,l,a,d;for(d=Hr(e),l=null,i=!1,f=0,a=Pc(d.a).i;f<a;++f)c=u(py(d,f,(r=u(N(Pc(d.a),f),89),h=r.c,L(h,90)?u(h,29):(An(),Os))),29),t=PR(n,c),t.dc()||(l?(i||(i=!0,l=new sT(l)),l.Gc(t)):l=t);return s=fMe(n,e),s.dc()?l||(Ln(),Ln(),sr):l?(i||(l=new sT(l)),l.Gc(s),l):s}function pPe(n){var e,t,i,r;i=n.o,K0(),n.A.dc()||rt(n.A,ron)?r=i.a:(r=ty(n.f),n.A.Hc((go(),iE))&&!n.B.Hc((io(),I9))&&(r=y.Math.max(r,ty(u(Mr(n.p,(en(),Xn)),252))),r=y.Math.max(r,ty(u(Mr(n.p,ae),252)))),e=Kxn(n),e&&(r=y.Math.max(r,e.a))),on(un(n.e.Tf().of((He(),Vw))))?i.a=y.Math.max(i.a,r):i.a=r,t=n.f.i,t.c=0,t.b=r,NR(n.f)}function ly(n,e,t){var i,r,c,s,f,h;if(L(e,76))return cr(n,e,t);for(f=null,c=null,i=u(n.g,124),s=0;s<n.i;++s)if(r=i[s],rt(e,r.md())&&(c=r.Lk(),L(c,102)&&u(c,19).Bb&kc)){f=r;break}return f&&(fo(n.e)&&(h=c.Jk()?V1(n,4,c,e,null,Am(n,c,e,L(c,102)&&(u(c,19).Bb&hr)!=0),!0):V1(n,c.tk()?2:1,c,e,c.ik(),-1,!0),t?t.nj(h):t=h),t=ly(n,f,t)),t}function mPe(n,e,t){var i,r,c,s;if(s=ru(n.e.Dh(),e),i=u(n.g,124),dr(),u(e,69).xk()){for(c=0;c<n.i;++c)if(r=i[c],s.am(r.Lk())&&rt(r,t))return dw(n,c),!0}else if(t!=null){for(c=0;c<n.i;++c)if(r=i[c],s.am(r.Lk())&&rt(t,r.md()))return dw(n,c),!0}else for(c=0;c<n.i;++c)if(r=i[c],s.am(r.Lk())&&r.md()==null)return dw(n,c),!0;return!1}function vPe(n,e){var t,i,r,c,s;if(e.Ug("Node and Port Label Placement and Node Sizing",1),dCn((u6(),new kD(n,!0,!0,new Egn))),u(v(n,(W(),Hc)),21).Hc((pr(),cs)))for(c=u(v(n,(cn(),_w)),21),r=c.Hc((zu(),tE)),s=on(un(v(n,bhn))),i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),30),qt(ut(new Cn(null,new On(t.a,16)),new Mgn),new mPn(c,r,s));e.Vg()}function kPe(n,e){var t,i,r,c,s;for(n.c==null||n.c.length<e.c.length?n.c=F(so,Xh,28,e.c.length,16,1):e6(n.c),n.a=new Z,i=0,s=new M(e);s.a<s.c.c.length;)r=u(E(s),10),r.p=i++;for(t=new Mt,c=new M(e);c.a<c.c.c.length;)r=u(E(c),10),n.c[r.p]||(__n(n,r),t.b==0||(oe(t.b!=0),u(t.a.a.c,15)).gc()<n.a.c.length?gg(t,n.a):ir(t,n.a),n.a=new Z);return t}function oUn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,Ym),"ELK SPOrE Overlap Removal"),'A node overlap removal algorithm proposed by Nachmanson et al. in "Node overlap removal by growing a tree".'),new bmn))),Q(n,Ym,YB,rn(ean)),Q(n,Ym,Wb,nan),Q(n,Ym,yw,8),Q(n,Ym,eF,rn(hue)),Q(n,Ym,lcn,rn(Y1n)),Q(n,Ym,acn,rn(Z1n)),Q(n,Ym,Uy,(_n(),!1))}function yPe(n,e){var t,i,r,c,s,f,h;if(t=e.qi(n.a),t&&(h=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),Vcn)),h!=null)){for(i=new Z,c=ww(h,"\\w"),s=0,f=c.length;s<f;++s)r=c[s],Sn(r,"##other")?nn(i,"!##"+B6(n,jo(e.qk()))):Sn(r,"##local")?i.c.push(null):Sn(r,Yy)?nn(i,B6(n,jo(e.qk()))):Fn(i.c,r);return i}return Ln(),Ln(),sr}function sUn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p;for(s=ab(e.c,t,i),d=new M(e.a);d.a<d.c.c.length;){for(a=u(E(d),10),tt(a.n,s),p=new M(a.j);p.a<p.c.c.length;)for(g=u(E(p),12),c=new M(g.g);c.a<c.c.c.length;)for(r=u(E(c),18),nw(r.a,s),f=u(v(r,(cn(),Rr)),75),f&&nw(f,s),l=new M(r.b);l.a<l.c.c.length;)h=u(E(l),72),tt(h.n,s);nn(n.a,a),a.a=n}}function ay(n){var e,t,i,r,c,s,f,h;if(n.d)throw T(new Ar((ll(S_),RK+S_.k+KK)));for(n.c==(ci(),Jf)&&Yg(n,Kr),t=new M(n.a.a);t.a<t.c.c.length;)e=u(E(t),194),e.e=0;for(s=new M(n.a.b);s.a<s.c.c.length;)for(c=u(E(s),86),c.o=li,r=c.f.Kc();r.Ob();)i=u(r.Pb(),86),++i.d.e;for(kLe(n),h=new M(n.a.b);h.a<h.c.c.length;)f=u(E(h),86),f.k=!0;return n}function jPe(n,e){var t,i,r,c,s,f,h,l;for(f=new g_n(n),t=new Mt,xt(t,e,t.c.b,t.c);t.b!=0;){for(i=u(t.b==0?null:(oe(t.b!=0),Xo(t,t.a.a)),113),i.d.p=1,s=new M(i.e);s.a<s.c.c.length;)r=u(E(s),340),xFn(f,r),l=r.d,l.d.p==0&&xt(t,l,t.c.b,t.c);for(c=new M(i.b);c.a<c.c.c.length;)r=u(E(c),340),xFn(f,r),h=r.c,h.d.p==0&&xt(t,h,t.c.b,t.c)}return f}function fUn(n){var e,t,i,r,c;if(i=$(B(z(n,(He(),Rue)))),i!=1)for(kg(n,i*n.g,i*n.f),t=Mle(i0e((!n.c&&(n.c=new q(Qu,n,9,9)),n.c),new ivn)),c=$h(Eo(S(C(Ao,1),Kn,20,0,[(!n.n&&(n.n=new q(Sr,n,1,7)),n.n),(!n.c&&(n.c=new q(Qu,n,9,9)),n.c),t])));pe(c);)r=u(fe(c),422),r.qh(i*r.nh(),i*r.oh()),r.ph(i*r.mh(),i*r.lh()),e=u(r.of(Kan),8),e&&(e.a*=i,e.b*=i)}function Sen(n,e,t){var i,r,c,s,f;if(s=(dr(),u(e,69).xk()),Pl(n.e,e)){if(e.Si()&&BS(n,e,t,L(e,102)&&(u(e,19).Bb&hr)!=0))return!1}else for(f=ru(n.e.Dh(),e),i=u(n.g,124),c=0;c<n.i;++c)if(r=i[c],f.am(r.Lk()))return(s?rt(r,t):t==null?r.md()==null:rt(t,r.md()))?!1:(u(Bg(n,c,s?u(t,76):Rh(e,t)),76),!0);return ve(n,s?u(t,76):Rh(e,t))}function EPe(n,e,t,i,r){var c,s,f,h,l,a,d,g;for(s=new M(n.b);s.a<s.c.c.length;)for(c=u(E(s),30),g=Y7(c.a),l=g,a=0,d=l.length;a<d;++a)switch(h=l[a],u(v(h,(cn(),ou)),171).g){case 1:UCe(h),$i(h,e),EBn(h,!0,i);break;case 3:CCe(h),$i(h,t),EBn(h,!1,r)}for(f=new xi(n.b,0);f.b<f.d.gc();)(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),30)).a.c.length==0&&bo(f)}function MPe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(p=e.length,h=p,zn(0,e.length),e.charCodeAt(0)==45?(d=-1,g=1,--p):(d=1,g=0),c=(KR(),jQn)[10],r=p/c|0,j=p%c,j!=0&&++r,f=F(ye,_e,28,r,15,1),t=yQn[8],s=0,m=g+(j==0?c:j),k=g;k<h;k=m,m=k+c)i=So((Ri(k,m,e.length),e.substr(k,m-k)),Wi,et),l=(Sm(),hZ(f,f,s,t)),l+=T8e(f,s,i),f[s++]=l;a=s,n.e=d,n.d=a,n.a=f,J6(n)}function TPe(n,e){var t,i,r,c;return t=new O0n,i=u(Wr(_r(new Cn(null,new On(n.f,16)),t),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),Sw),Yr]))),21),r=i.gc(),i=u(Wr(_r(new Cn(null,new On(e.f,16)),t),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[Sw,Yr]))),21),c=i.gc(),r=r==1?1:0,c=c==1?1:0,r<c?-1:r==c?0:1}function CPe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(f=n.i,r=on(un(v(f,(cn(),Bw)))),a=0,i=0,l=new M(n.g);l.a<l.c.c.length;)h=u(E(l),18),s=fr(h),c=s&&r&&on(un(v(h,Dd))),g=h.d.i,s&&c?++i:s&&!c?++a:Hi(g).e==f?++i:++a;for(t=new M(n.e);t.a<t.c.c.length;)e=u(E(t),18),s=fr(e),c=s&&r&&on(un(v(e,Dd))),d=e.c.i,s&&c?++a:s&&!c?++i:Hi(d).e==f?++a:++i;return a-i}function Wg(n,e,t,i){this.e=n,this.k=u(v(n,(W(),E2)),312),this.g=F(Qh,b1,10,e,0,1),this.b=F(si,J,345,e,7,1),this.a=F(Qh,b1,10,e,0,1),this.d=F(si,J,345,e,7,1),this.j=F(Qh,b1,10,e,0,1),this.i=F(si,J,345,e,7,1),this.p=F(si,J,345,e,7,1),this.n=F(Gt,J,485,e,8,1),u7(this.n,(_n(),!1)),this.f=F(Gt,J,485,e,8,1),u7(this.f,!0),this.o=t,this.c=i}function hUn(n,e){var t,i,r,c,s,f;if(!e.dc())if(u(e.Xb(0),293).d==(Yp(),Dw))W7e(n,e);else for(i=e.Kc();i.Ob();){switch(t=u(i.Pb(),293),t.d.g){case 5:Em(n,t,n8e(n,t));break;case 0:Em(n,t,(s=t.f-t.c+1,f=(s-1)/2|0,t.c+f));break;case 4:Em(n,t,ome(n,t));break;case 2:PKn(t),Em(n,t,(c=UZ(t),c?t.c:t.f));break;case 1:PKn(t),Em(n,t,(r=UZ(t),r?t.f:t.c))}Gye(t.a)}}function Pen(n,e,t,i){var r,c,s;return s=new GEn(e,t),n.a?i?(r=u(as(u(ee(n.b,e),260)),260),++r.a,s.d=i.d,s.e=i.e,s.b=i,s.c=i,i.e?i.e.c=s:r.b=s,i.d?i.d.b=s:n.a=s,i.d=s,i.e=s):(u(as(n.e),511).b=s,s.d=n.e,n.e=s,r=u(ee(n.b,e),260),r?(++r.a,c=r.c,c.c=s,s.e=c,r.c=s):(Ve(n.b,e,r=new QW(s)),++n.c)):(n.a=n.e=s,Ve(n.b,e,new QW(s)),++n.c),++n.d,s}function IR(n,e){var t,i,r,c,s;if(e.Ug("Network simplex",1),n.e.a.c.length<1){e.Vg();return}for(c=new M(n.e.a);c.a<c.c.c.length;)r=u(E(c),125),r.e=0;for(s=n.e.a.c.length>=40,s&&wIe(n),MOe(n),zCe(n),t=pKn(n),i=0;t&&i<n.f;)APe(n,t,WMe(n,t)),t=pKn(n),++i;s&&lye(n),n.a?uTe(n,iUn(n)):iUn(n),n.b=null,n.d=null,n.p=null,n.c=null,n.g=null,n.i=null,n.n=null,n.o=null,e.Vg()}function SPe(n,e){var t,i,r,c,s,f,h;if(!e.e){for(e.e=!0,i=e.d.a.ec().Kc();i.Ob();){if(t=u(i.Pb(),18),e.o&&e.d.a.gc()<=1){s=e.a.c,f=e.a.c+e.a.b,h=new V(s+(f-s)/2,e.b),Re(u(e.d.a.ec().Kc().Pb(),18).a,h);continue}if(r=u(ee(e.c,t),468),r.b||r.c){dPe(n,t,e);continue}c=n.d==(om(),Y8)&&(r.d||r.e)&&vMe(n,e)&&e.d.a.gc()<=1,c?nLe(t,e):jSe(n,t,e)}e.k&&qi(e.d,new Ywn)}}function Ien(n,e,t,i,r,c){var s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(g=c,f=(i+r)/2+g,j=t*y.Math.cos(f),P=t*y.Math.sin(f),O=j-e.g/2,A=P-e.f/2,eu(e,O),tu(e,A),d=n.a.Eg(e),k=2*y.Math.acos(t/t+n.c),k<r-i?(p=k/d,s=(i+r-k)/2):(p=(r-i)/d,s=i),m=aw(e),n.e&&(n.e.Fg(n.d),n.e.Gg(m)),l=new M(m);l.a<l.c.c.length;)h=u(E(l),27),a=n.a.Eg(h),Ien(n,h,t+n.c,s,s+p*a,c),s+=p*a}function PPe(n,e,t){var i;switch(i=t.q.getMonth(),e){case 5:Be(n,S(C(fn,1),J,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[i]);break;case 4:Be(n,S(C(fn,1),J,2,6,[sK,fK,hK,lK,c3,aK,dK,bK,wK,gK,pK,mK])[i]);break;case 3:Be(n,S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[i]);break;default:Kh(n,i+1,e)}}function IPe(n,e,t,i){var r,c,s,f,h,l,a,d,g;for(h=new V(t,i),mi(h,u(v(e,(Q1(),L8)),8)),g=new M(e.e);g.a<g.c.c.length;)d=u(E(g),153),tt(d.d,h),nn(n.e,d);for(f=new M(e.c);f.a<f.c.c.length;){for(s=u(E(f),290),c=new M(s.a);c.a<c.c.c.length;)r=u(E(c),250),tt(r.d,h);nn(n.c,s)}for(a=new M(e.d);a.a<a.c.c.length;)l=u(E(a),454),tt(l.d,h),nn(n.d,l)}function Oen(n,e){var t,i,r,c,s,f,h,l;for(h=new M(e.j);h.a<h.c.c.length;)for(f=u(E(h),12),r=new Lf(f.b);tc(r.a)||tc(r.b);)i=u(tc(r.a)?E(r.a):E(r.b),18),t=i.c==f?i.d:i.c,c=t.i,e!=c&&(l=u(v(i,(cn(),Cv)),17).a,l<0&&(l=0),s=c.p,n.b[s]==0&&(i.d==t?(n.a[s]-=l+1,n.a[s]<=0&&n.c[s]>0&&Re(n.f,c)):(n.c[s]-=l+1,n.c[s]<=0&&n.a[s]>0&&Re(n.e,c))))}function lUn(n,e,t,i){var r,c,s,f,h,l,a;for(h=new V(t,i),mi(h,u(v(e,(pt(),Lv)),8)),a=ge(e.b,0);a.b!=a.d.c;)l=u(be(a),40),tt(l.e,h),Re(n.b,l);for(f=u(Wr(cJ(new Cn(null,new On(e.a,16))),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15).Kc();f.Ob();){for(s=u(f.Pb(),65),c=ge(s.a,0);c.b!=c.d.c;)r=u(be(c),8),r.a+=h.a,r.b+=h.b;Re(n.a,s)}}function Aen(n,e){var t,i,r,c;if(0<(L(n,16)?u(n,16).gc():wl(n.Kc()))){if(r=e,1<r){for(--r,c=new G3n,i=n.Kc();i.Ob();)t=u(i.Pb(),40),c=Eo(S(C(Ao,1),Kn,20,0,[c,new sl(t)]));return Aen(c,r)}if(r<0){for(c=new z3n,i=n.Kc();i.Ob();)t=u(i.Pb(),40),c=Eo(S(C(Ao,1),Kn,20,0,[c,new sl(t)]));if(0<(L(c,16)?u(c,16).gc():wl(c.Kc())))return Aen(c,r)}}return u(DM(n.Kc()),40)}function OPe(n,e,t){var i,r,c,s;for(t.Ug("Processor order nodes",2),n.b=$(B(v(e,(lc(),sq)))),n.a=u(v(e,v0),88),n.a==(ci(),Jf)&&(n.a=Wf,U(e,v0,n.a)),r=new Mt,s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),40),on(un(v(c,(pt(),Ta))))&&xt(r,c,r.c.b,r.c);i=(oe(r.b!=0),u(r.a.a.c,40)),oGn(n,i),t.fh(1),yen(n,i,0-$(B(v(i,(pt(),xO))))/2,0),t.fh(1),t.Vg()}function io(){io=R,_v=new wg("DEFAULT_MINIMUM_SIZE",0),uE=new wg("MINIMUM_SIZE_ACCOUNTS_FOR_PADDING",1),sA=new wg("COMPUTE_PADDING",2),I9=new wg("OUTSIDE_NODE_LABELS_OVERHANG",3),fA=new wg("PORTS_OVERHANG",4),lA=new wg("UNIFORM_PORT_SPACING",5),hA=new wg("SPACE_EFFICIENT_PORT_LABELS",6),dU=new wg("FORCE_TABULAR_NODE_LABELS",7),cE=new wg("ASYMMETRICAL",8)}function OR(n,e){var t,i,r,c,s,f,h,l;if(e){if(t=(c=e.Dh(),c?jo(c).wi().si(c):null),t){for(s1(n,e,t),r=e.Dh(),h=0,l=(r.i==null&&bh(r),r.i).length;h<l;++h)f=(i=(r.i==null&&bh(r),r.i),h>=0&&h<i.length?i[h]:null),f.rk()&&!f.sk()&&(L(f,331)?P9e(n,u(f,35),e,t):(s=u(f,19),s.Bb&kc&&Bke(n,s,e,t)));e.Vh()&&u(t,54).ei(u(e,54)._h())}return t}else return null}function APe(n,e,t){var i,r,c;if(!e.f)throw T(new Gn("Given leave edge is no tree edge."));if(t.f)throw T(new Gn("Given enter edge is a tree edge already."));for(e.f=!1,DX(n.p,e),t.f=!0,fi(n.p,t),i=t.e.e-t.d.e-t.a,fR(n,t.e,e)||(i=-i),c=new M(n.e.a);c.a<c.c.c.length;)r=u(E(c),125),fR(n,r,e)||(r.e+=i);n.j=1,e6(n.c),Onn(n,u(E(new M(n.e.a)),125)),pGn(n)}function aUn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p;if(jme(n,e,t),c=e[t],p=i?(en(),Wn):(en(),Zn),T1e(e.length,t,i)){for(r=e[i?t-1:t+1],_J(n,r,i?(gr(),Jc):(gr(),Vu)),h=c,a=0,g=h.length;a<g;++a)s=h[a],bZ(n,s,p);for(_J(n,c,i?(gr(),Vu):(gr(),Jc)),f=r,l=0,d=f.length;l<d;++l)s=f[l],s.e||bZ(n,s,xk(p))}else for(f=c,l=0,d=f.length;l<d;++l)s=f[l],bZ(n,s,p);return!1}function LPe(n,e,t,i,r){var c,s,f,h,l,a,d;for(Ln(),Yt(n,new Ymn),f=new xi(n,0),d=new Z,c=0;f.b<f.d.gc();)s=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),163)),d.c.length!=0&&Pu(s)*ao(s)>c*2?(a=new hC(d),l=Pu(s)/ao(s),h=QR(a,e,new up,t,i,r,l),tt(ff(a.e),h),d.c.length=0,c=0,Fn(d.c,a),Fn(d.c,s),c=Pu(a)*ao(a)+Pu(s)*ao(s)):(Fn(d.c,s),c+=Pu(s)*ao(s));return d}function dUn(n,e){var t,i,r,c,s,f;if(f=u(v(e,(cn(),Ft)),101),f==(Ai(),tl)||f==qc)for(r=new V(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a).b,s=new M(n.a);s.a<s.c.c.length;)c=u(E(s),10),c.k==(Vn(),Zt)&&(t=u(v(c,(W(),gc)),64),!(t!=(en(),Zn)&&t!=Wn)&&(i=$(B(v(c,f0))),f==tl&&(i*=r),c.n.b=i-u(v(c,b0),8).b,OC(c,!1,!0)))}function NPe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;if(fo(n.e)){if(e!=t&&(r=u(n.g,124),p=r[t],s=p.Lk(),Pl(n.e,s))){for(m=ru(n.e.Dh(),s),h=-1,f=-1,i=0,l=0,d=e>t?e:t;l<=d;++l)l==t?f=i++:(c=r[l],a=m.am(c.Lk()),l==e&&(h=l==d&&!a?i-1:i),a&&++i);return g=u(k5(n,e,t),76),f!=h&&t4(n,new ck(n.e,7,s,Y(f),p.md(),h)),g}}else return u(lR(n,e,t),76);return u(k5(n,e,t),76)}function DPe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Port order processing",1),h=u(v(n,(cn(),whn)),430),i=new M(n.b);i.a<i.c.c.length;)for(t=u(E(i),30),c=new M(t.a);c.a<c.c.c.length;)r=u(E(c),10),s=u(v(r,Ft),101),f=r.j,s==(Ai(),Ud)||s==tl||s==qc?(Ln(),Yt(f,jsn)):s!=Qf&&s!=Ia&&(Ln(),Yt(f,JZn),B9e(f),h==(dk(),UH)&&Yt(f,WZn)),r.i=!0,Snn(r);e.Vg()}function $Pe(n){var e,t,i,r,c,s,f,h;for(h=new de,e=new oL,s=n.Kc();s.Ob();)r=u(s.Pb(),10),f=hb(i7(new za,r),e),Vc(h.f,r,f);for(c=n.Kc();c.Ob();)for(r=u(c.Pb(),10),i=new ie(ce(Qt(r).a.Kc(),new En));pe(i);)t=u(fe(i),18),!fr(t)&&qs(Ns(Ls(As(Ds(new hs,y.Math.max(1,u(v(t,(cn(),ghn)),17).a)),1),u(ee(h,t.c.i),125)),u(ee(h,t.d.i),125)));return e}function bUn(){bUn=R,zie=Fe(new ii,(Vi(),Fc),(tr(),osn)),iln=Fe(new ii,Ac,PI),Vie=Iu(Fe(new ii,Ac,xI),zr,$I),Gie=Iu(Fe(Fe(new ii,Ac,tsn),Fc,isn),zr,rsn),Wie=ah(ah(h6(Iu(Fe(new ii,Vs,FI),zr,BI),Fc),KI),_I),Xie=Iu(new ii,zr,ssn),qie=Iu(Fe(Fe(Fe(new ii,Jh,OI),Fc,LI),Fc,hv),zr,AI),Uie=Iu(Fe(Fe(new ii,Fc,hv),Fc,SI),zr,CI)}function xPe(n,e,t,i,r,c){var s,f,h,l,a,d,g;for(l=pRn(e)-pRn(n),s=t_n(e,l),h=Yc(0,0,0);l>=0&&(f=P7e(n,s),!(f&&(l<22?h.l|=1<<l:l<44?h.m|=1<<l-22:h.h|=1<<l-44,n.l==0&&n.m==0&&n.h==0)));)a=s.m,d=s.h,g=s.l,s.h=d>>>1,s.m=a>>>1|(d&1)<<21,s.l=g>>>1|(a&1)<<21,--l;return t&&H$(h),c&&(i?(wa=tm(n),r&&(wa=Yxn(wa,(B4(),lun)))):wa=Yc(n.l,n.m,n.h)),h}function RPe(n,e){var t,i,r,c,s,f,h,l,a,d;for(l=n.e[e.c.p][e.p]+1,h=e.c.a.c.length+1,f=new M(n.a);f.a<f.c.c.length;){for(s=u(E(f),12),d=0,c=0,r=$h(Eo(S(C(Ao,1),Kn,20,0,[new e4(s),new ip(s)])));pe(r);)i=u(fe(r),12),i.i.c==e.c&&(d+=p1e(n,i.i)+1,++c);t=d/c,a=s.j,a==(en(),Zn)?t<l?n.f[s.p]=n.c-t:n.f[s.p]=n.b+(h-t):a==Wn&&(t<l?n.f[s.p]=n.b+t:n.f[s.p]=n.c-(h-t))}}function So(n,e,t){var i,r,c,s,f;if(n==null)throw T(new th(gu));for(c=n.length,s=c>0&&(zn(0,n.length),n.charCodeAt(0)==45||(zn(0,n.length),n.charCodeAt(0)==43))?1:0,i=s;i<c;i++)if(VKn((zn(i,n.length),n.charCodeAt(i)))==-1)throw T(new th(Vb+n+'"'));if(f=parseInt(n,10),r=f<e,isNaN(f))throw T(new th(Vb+n+'"'));if(r||f>t)throw T(new th(Vb+n+'"'));return f}function KPe(n){var e,t,i,r,c,s,f;for(s=new Mt,c=new M(n.a);c.a<c.c.c.length;)r=u(E(c),118),JA(r,r.f.c.length),PE(r,r.k.c.length),r.i==0&&(r.o=0,xt(s,r,s.c.b,s.c));for(;s.b!=0;)for(r=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),118),i=r.o+1,t=new M(r.f);t.a<t.c.c.length;)e=u(E(t),132),f=e.a,gG(f,y.Math.max(f.o,i)),PE(f,f.i-1),f.i==0&&xt(s,f,s.c.b,s.c)}function BPe(n){var e,t,i,r,c,s,f,h;for(s=new M(n);s.a<s.c.c.length;){for(c=u(E(s),74),i=Gr(u(N((!c.b&&(c.b=new Dn(he,c,4,7)),c.b),0),84)),f=i.i,h=i.j,r=u(N((!c.a&&(c.a=new q(Tt,c,6,6)),c.a),0),166),j7(r,r.j+f,r.k+h),y7(r,r.b+f,r.c+h),t=new ne((!r.a&&(r.a=new ti(xo,r,5)),r.a));t.e!=t.i.gc();)e=u(ue(t),377),gN(e,e.a+f,e.b+h);RQ(u(z(c,(He(),k0)),75),f,h)}}function Om(n){var e;switch(n){case 100:return Zg(T8,!0);case 68:return Zg(T8,!1);case 119:return Zg(NF,!0);case 87:return Zg(NF,!1);case 115:return Zg(DF,!0);case 83:return Zg(DF,!1);case 99:return Zg($F,!0);case 67:return Zg($F,!1);case 105:return Zg(xF,!0);case 73:return Zg(xF,!1);default:throw T(new ec((e=n,zJn+e.toString(16))))}}function FPe(n){var e,t,i,r,c;switch(r=u(sn(n.a,0),10),e=new Cl(n),nn(n.a,e),e.o.a=y.Math.max(1,r.o.a),e.o.b=y.Math.max(1,r.o.b),e.n.a=r.n.a,e.n.b=r.n.b,u(v(r,(W(),gc)),64).g){case 4:e.n.a+=2;break;case 1:e.n.b+=2;break;case 2:e.n.a-=2;break;case 3:e.n.b-=2}return i=new Ic,ic(i,e),t=new Eb,c=u(sn(r.j,0),12),Zi(t,c),Oi(t,i),tt(ff(i.n),c.n),tt(ff(i.a),c.a),e}function wUn(n,e,t,i,r){t&&(!i||(n.c-n.b&n.a.length-1)>1)&&e==1&&u(n.a[n.b],10).k==(Vn(),Sc)?t3(u(n.a[n.b],10),(Co(),nl)):i&&(!t||(n.c-n.b&n.a.length-1)>1)&&e==1&&u(n.a[n.c-1&n.a.length-1],10).k==(Vn(),Sc)?t3(u(n.a[n.c-1&n.a.length-1],10),(Co(),Sa)):(n.c-n.b&n.a.length-1)==2?(t3(u(l5(n),10),(Co(),nl)),t3(u(l5(n),10),Sa)):dTe(n,r),TJ(n)}function _Pe(n,e,t){var i,r,c,s,f;for(c=0,r=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));r.e!=r.i.gc();)i=u(ue(r),27),s="",(!i.n&&(i.n=new q(Sr,i,1,7)),i.n).i==0||(s=u(N((!i.n&&(i.n=new q(Sr,i,1,7)),i.n),0),135).a),f=new q$(c++,e,s),Ur(f,i),U(f,(pt(),u9),i),f.e.b=i.j+i.f/2,f.f.a=y.Math.max(i.g,1),f.e.a=i.i+i.g/2,f.f.b=y.Math.max(i.f,1),Re(e.b,f),Vc(t.f,i,f)}function HPe(n){var e,t,i,r,c;i=u(v(n,(W(),st)),27),c=u(z(i,(cn(),xd)),181).Hc((go(),Gd)),n.e||(r=u(v(n,Hc),21),e=new V(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),r.Hc((pr(),cs))?(ht(i,Ft,(Ai(),qc)),Gb(i,e.a,e.b,!1,!0)):on(un(z(i,SH)))||Gb(i,e.a,e.b,!0,!0)),c?ht(i,xd,jn(Gd)):ht(i,xd,(t=u(of(P9),9),new _o(t,u(xs(t,t.length),9),0)))}function Len(n,e,t){var i,r,c,s;if(e[0]>=n.length)return t.o=0,!0;switch(Xi(n,e[0])){case 43:r=1;break;case 45:r=-1;break;default:return t.o=0,!0}if(++e[0],c=e[0],s=yS(n,e),s==0&&e[0]==c)return!1;if(e[0]<n.length&&Xi(n,e[0])==58){if(i=s*60,++e[0],c=e[0],s=yS(n,e),s==0&&e[0]==c)return!1;i+=s}else i=s,i<24&&e[0]-c<=2?i*=60:i=i%100+(i/100|0)*60;return i*=r,t.o=-i,!0}function qPe(n){var e,t,i,r,c,s,f,h,l;for(s=new Z,i=new ie(ce(Qt(n.b).a.Kc(),new En));pe(i);)t=u(fe(i),18),fr(t)&&nn(s,new xNn(t,vDn(n,t.c),vDn(n,t.d)));for(l=(c=new ol(n.e).a.vc().Kc(),new P0(c));l.a.Ob();)f=(e=u(l.a.Pb(),44),u(e.md(),113)),f.d.p=0;for(h=(r=new ol(n.e).a.vc().Kc(),new P0(r));h.a.Ob();)f=(e=u(h.a.Pb(),44),u(e.md(),113)),f.d.p==0&&nn(n.d,jPe(n,f))}function UPe(n){var e,t,i,r,c,s,f;for(c=Pf(n),r=new ne((!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e));r.e!=r.i.gc();)if(i=u(ue(r),74),f=Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84)),!Y0(f,c))return!0;for(t=new ne((!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d));t.e!=t.i.gc();)if(e=u(ue(t),74),s=Gr(u(N((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84)),!Y0(s,c))return!0;return!1}function GPe(n,e){var t,i,r,c,s,f,h,l,a;for(s=new M(e.b);s.a<s.c.c.length;)for(c=u(E(s),30),l=new M(c.a);l.a<l.c.c.length;){for(h=u(E(l),10),a=new Z,f=0,i=new ie(ce(ji(h).a.Kc(),new En));pe(i);)t=u(fe(i),18),!(fr(t)||!fr(t)&&t.c.i.c==t.d.i.c)&&(r=u(v(t,(cn(),O3)),17).a,r>f&&(f=r,a.c.length=0),r==f&&nn(a,new bi(t.c.i,t)));Ln(),Yt(a,n.c),bb(n.b,h.p,a)}}function zPe(n,e){var t,i,r,c,s,f,h,l,a;for(s=new M(e.b);s.a<s.c.c.length;)for(c=u(E(s),30),l=new M(c.a);l.a<l.c.c.length;){for(h=u(E(l),10),a=new Z,f=0,i=new ie(ce(Qt(h).a.Kc(),new En));pe(i);)t=u(fe(i),18),!(fr(t)||!fr(t)&&t.c.i.c==t.d.i.c)&&(r=u(v(t,(cn(),O3)),17).a,r>f&&(f=r,a.c.length=0),r==f&&nn(a,new bi(t.d.i,t)));Ln(),Yt(a,n.c),bb(n.f,h.p,a)}}function XPe(n,e){var t,i,r,c,s,f,h,l;if(l=un(v(e,(lc(),Ore))),l==null||(Jn(l),l)){for(mMe(n,e),r=new Z,h=ge(e.b,0);h.b!=h.d.c;)s=u(be(h),40),t=vnn(n,s,null),t&&(Ur(t,e),Fn(r.c,t));if(n.a=null,n.b=null,r.c.length>1)for(i=new M(r);i.a<i.c.c.length;)for(t=u(E(i),121),c=0,f=ge(t.b,0);f.b!=f.d.c;)s=u(be(f),40),s.g=c++;return r}return Af(S(C(TDe,1),jXn,121,0,[e]))}function VPe(n){var e,t,i,r,c,s,f,h;for(h=new Tu,e=ge(n,0),f=null,t=u(be(e),8),r=u(be(e),8);e.b!=e.d.c;)f=t,t=r,r=u(be(e),8),c=E$n(mi(new V(f.a,f.b),t)),s=E$n(mi(new V(r.a,r.b),t)),i=10,i=y.Math.min(i,y.Math.abs(c.a+c.b)/2),i=y.Math.min(i,y.Math.abs(s.a+s.b)/2),c.a=K7(c.a)*i,c.b=K7(c.b)*i,s.a=K7(s.a)*i,s.b=K7(s.b)*i,Re(h,tt(c,t)),Re(h,tt(s,t));return h}function WPe(n,e,t){var i,r,c,s,f,h;if(t.Ug("Minimize Crossings "+n.a,1),i=e.b.c.length==0||!s4(ut(new Cn(null,new On(e.b,16)),new Z3(new Jpn))).Bd((Va(),v3)),h=e.b.c.length==1&&u(sn(e.b,0),30).a.c.length==1,c=x(v(e,(cn(),Kw)))===x((jl(),T1)),i||h&&!c){t.Vg();return}r=KCe(n,e),s=(f=u(Zo(r,0),219),f.c.kg()?f.c.eg()?new _7n(n):new H7n(n):new F7n(n)),C6e(r,s),r5e(n),t.Vg()}function Po(n,e,t,i){var r,c,s,f,h;return s=n.Ph(),h=n.Jh(),r=null,h?e&&!(SR(n,e,t).Bb&hr)?(i=cr(h.El(),n,i),n.di(null),r=e.Qh()):h=null:(s&&(h=s.Qh()),e&&(r=e.Qh())),h!=r&&h&&h.Il(n),f=n.Fh(),n.Bh(e,t),h!=r&&r&&r.Hl(n),n.vh()&&n.wh()&&(s&&f>=0&&f!=t&&(c=new Mi(n,1,f,s,null),i?i.nj(c):i=c),t>=0&&(c=new Mi(n,1,t,f==t?s:null,e),i?i.nj(c):i=c)),i}function gUn(n){var e,t,i;if(n.b==null){if(i=new Hl,n.i!=null&&(Er(i,n.i),i.a+=":"),n.f&256){for(n.f&256&&n.a!=null&&(lge(n.i)||(i.a+="//"),Er(i,n.a)),n.d!=null&&(i.a+="/",Er(i,n.d)),n.f&16&&(i.a+="/"),e=0,t=n.j.length;e<t;e++)e!=0&&(i.a+="/"),Er(i,n.j[e]);n.g!=null&&(i.a+="?",Er(i,n.g))}else Er(i,n.a);n.e!=null&&(i.a+="#",Er(i,n.e)),n.b=i.a}return n.b}function JPe(n,e){var t,i,r,c,s,f;for(r=new M(e.a);r.a<r.c.c.length;)i=u(E(r),10),c=v(i,(W(),st)),L(c,12)&&(s=u(c,12),f=DUn(e,i,s.o.a,s.o.b),s.n.a=f.a,s.n.b=f.b,gi(s,u(v(i,gc),64)));t=new V(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),u(v(e,(W(),Hc)),21).Hc((pr(),cs))?(U(n,(cn(),Ft),(Ai(),qc)),u(v(Hi(n),Hc),21).Fc(yv),jGn(n,t,!1)):jGn(n,t,!0)}function QPe(n,e,t,i,r){var c,s,f,h;c=new Cl(n),Ha(c,(Vn(),_c)),U(c,(cn(),Ft),(Ai(),qc)),U(c,(W(),st),e.c.i),s=new Ic,U(s,st,e.c),gi(s,r),ic(s,c),U(e.c,Xu,c),f=new Cl(n),Ha(f,_c),U(f,Ft,qc),U(f,st,e.d.i),h=new Ic,U(h,st,e.d),gi(h,r),ic(h,f),U(e.d,Xu,f),Zi(e,s),Oi(e,h),z0(0,t.c.length),d6(t.c,0,c),Fn(i.c,f),U(c,iO,Y(1)),U(f,iO,Y(1))}function YPe(n,e,t,i){var r,c,s,f,h;if(h=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),r=Se(er(Uh,xh(Se(er(t==null?0:mt(t),Gh)),15))),f=o5(n,e,h),s=u5(n,t,r),f&&r==f.a&&sh(t,f.g))return t;if(s&&!i)throw T(new Gn("key already present: "+t));return f&&zg(n,f),s&&zg(n,s),c=new kT(t,r,e,h),ny(n,c,s),s&&(s.e=null,s.c=null),f&&(f.e=null,f.c=null),aFn(n),f?f.g:null}function pUn(n,e,t){var i,r,c,s,f;for(c=0;c<e;c++){for(i=0,f=c+1;f<e;f++)i=nr(nr(er(vi(n[c],mr),vi(n[f],mr)),vi(t[c+f],mr)),vi(Se(i),mr)),t[c+f]=Se(i),i=U1(i,32);t[c+e]=Se(i)}for(hve(t,t,e<<1),i=0,r=0,s=0;r<e;++r,s++)i=nr(nr(er(vi(n[r],mr),vi(n[r],mr)),vi(t[s],mr)),vi(Se(i),mr)),t[s]=Se(i),i=U1(i,32),++s,i=nr(i,vi(t[s],mr)),t[s]=Se(i),i=U1(i,32);return t}function mUn(n,e,t){var i,r,c,s,f,h,l,a;if(!D4(e)){for(h=$(B(rw(t.c,(cn(),X8)))),l=u(rw(t.c,Sj),140),!l&&(l=new Qv),i=t.a,r=null,f=e.Kc();f.Ob();)s=u(f.Pb(),12),a=0,r?(a=h,a+=r.o.b):a=l.d,c=hb(i7(new za,s),n.f),Ve(n.k,s,c),qs(Ns(Ls(As(Ds(new hs,0),wi(y.Math.ceil(a))),i),c)),r=s,i=c;qs(Ns(Ls(As(Ds(new hs,0),wi(y.Math.ceil(l.a+r.o.b))),i),t.d))}}function ZPe(n,e,t,i,r,c,s,f){var h,l,a,d,g,p;return p=!1,g=c-t.s,a=t.t-e.f+(l=G5(t,g,!1),l.a),i.g+f>g?!1:(d=(h=G5(i,g,!1),h.a),a+f+d<=e.b&&(uk(t,c-t.s),t.c=!0,uk(i,c-t.s),Hk(i,t.s,t.t+t.d+f),i.k=!0,FQ(t.q,i),p=!0,r&&(wC(e,i),i.j=e,n.c.length>s&&(Gk((Nn(s,n.c.length),u(n.c[s],186)),i),(Nn(s,n.c.length),u(n.c[s],186)).a.c.length==0&&Yl(n,s)))),p)}function nIe(n,e){var t,i,r,c,s,f;if(e.Ug("Partition midprocessing",1),r=new Mb,qt(ut(new Cn(null,new On(n.a,16)),new qgn),new h7n(r)),r.d!=0){for(f=u(Wr(sJ((c=r.i,new Cn(null,(c||(r.i=new Tg(r,r.c))).Nc()))),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),i=f.Kc(),t=u(i.Pb(),17);i.Ob();)s=u(i.Pb(),17),zTe(u(ot(r,t),21),u(ot(r,s),21)),t=s;e.Vg()}}function vUn(n,e,t){var i,r,c,s,f,h,l,a;if(e.p==0){for(e.p=1,s=t,s||(r=new Z,c=(i=u(of(lr),9),new _o(i,u(xs(i,i.length),9),0)),s=new bi(r,c)),u(s.a,15).Fc(e),e.k==(Vn(),Zt)&&u(s.b,21).Fc(u(v(e,(W(),gc)),64)),h=new M(e.j);h.a<h.c.c.length;)for(f=u(E(h),12),a=$h(Eo(S(C(Ao,1),Kn,20,0,[new e4(f),new ip(f)])));pe(a);)l=u(fe(a),12),vUn(n,l.i,s);return s}return null}function _5(n,e){var t,i,r,c,s;if(n.Ab){if(n.Ab){if(s=n.Ab.i,s>0){if(r=u(n.Ab.g,2033),e==null){for(c=0;c<s;++c)if(t=r[c],t.d==null)return t}else for(c=0;c<s;++c)if(t=r[c],Sn(e,t.d))return t}}else if(e==null){for(i=new ne(n.Ab);i.e!=i.i.gc();)if(t=u(ue(i),598),t.d==null)return t}else for(i=new ne(n.Ab);i.e!=i.i.gc();)if(t=u(ue(i),598),Sn(e,t.d))return t}return null}function eIe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;p=d3e(n,zQ(e),r),OQ(p,bl(r,Eh)),Wt=null,m=r,k=Y6(m,mWn),j=new Fkn(p),lje(j.a,k),P=Y6(m,"endPoint"),O=new Ukn(p),hje(O.a,P),A=Sb(m,BP),D=new Xkn(p),Yke(D.a,A),d=bl(r,Icn),c=new vTn(n,p),Rae(c.a,c.b,d),g=bl(r,Pcn),s=new kTn(n,p),Kae(s.a,s.b,g),l=Sb(r,Acn),f=new yTn(t,p),D7e(f.b,f.a,l),a=Sb(r,Ocn),h=new jTn(i,p),$7e(h.b,h.a,a)}function Nen(n,e,t){var i,r,c,s,f;switch(f=null,e.g){case 1:for(r=new M(n.j);r.a<r.c.c.length;)if(i=u(E(r),12),on(un(v(i,(W(),lH)))))return i;f=new Ic,U(f,(W(),lH),(_n(),!0));break;case 2:for(s=new M(n.j);s.a<s.c.c.length;)if(c=u(E(s),12),on(un(v(c,(W(),dH)))))return c;f=new Ic,U(f,(W(),dH),(_n(),!0))}return f&&(ic(f,n),gi(f,t),R9e(f.n,n.o,t)),f}function kUn(n,e){var t,i,r,c,s,f;for(f=-1,s=new Mt,i=new Lf(n.b);tc(i.a)||tc(i.b);){for(t=u(tc(i.a)?E(i.a):E(i.b),18),f=y.Math.max(f,$(B(v(t,(cn(),m1))))),t.c==n?qt(ut(new Cn(null,new On(t.b,16)),new Bwn),new J9n(s)):qt(ut(new Cn(null,new On(t.b,16)),new Fwn),new Q9n(s)),c=ge(s,0);c.b!=c.d.c;)r=u(be(c),72),kt(r,(W(),T3))||U(r,T3,t);hi(e,s),vo(s)}return f}function qb(n,e,t,i,r){var c,s,f,h,l;f=r?i.b:i.a,!sf(n.a,i)&&(l=f>t.s&&f<t.c,h=!1,t.e.b!=0&&t.j.b!=0&&(h=h|(y.Math.abs(f-$(B(p4(t.e))))<vh&&y.Math.abs(f-$(B(p4(t.j))))<vh),h=h|(y.Math.abs(f-$(B($s(t.e))))<vh&&y.Math.abs(f-$(B($s(t.j))))<vh)),(l||h)&&(s=u(v(e,(cn(),Rr)),75),s||(s=new Tu,U(e,Rr,s)),c=new rr(i),xt(s,c,s.c.b,s.c),fi(n.a,c)))}function tIe(n,e,t,i){var r,c,s,f,h,l,a;if(tMe(n,e,t,i))return!0;for(s=new M(e.f);s.a<s.c.c.length;){switch(c=u(E(s),334),f=!1,h=n.j-e.j+t,l=h+e.o,a=n.k-e.k+i,r=a+e.p,c.a.g){case 0:f=X$(n,h+c.b.a,0,h+c.c.a,a-1);break;case 1:f=X$(n,l,a+c.b.a,n.o-1,a+c.c.a);break;case 2:f=X$(n,h+c.b.a,r,h+c.c.a,n.p-1);break;default:f=X$(n,0,a+c.b.a,h-1,a+c.c.a)}if(f)return!0}return!1}function iIe(n,e,t){var i,r,c,s,f,h,l,a,d;for(t.Ug("Processor set coordinates",1),n.a=e.b.b==0?1:e.b.b,l=null,i=ge(e.b,0);!l&&i.b!=i.d.c;)d=u(be(i),40),on(un(v(d,(pt(),Ta))))&&(l=d,h=d.e,h.a=u(v(d,$j),17).a,h.b=u(v(d,xj),17).a);f=R$(l),a=1;do f=cje((r=f,t.eh(a),r)),a=f.b/n.a|0;while(f.b!=0);for(s=ge(e.b,0);s.b!=s.d.c;)c=u(be(s),40),mi(c.e,new V(c.f.a/2,c.f.b/2));t.Vg()}function rIe(n,e,t){var i,r,c,s,f,h,l,a;for(t.Ug(aVn,1),Hu(n.b),Hu(n.a),f=null,c=ge(e.b,0);!f&&c.b!=c.d.c;)l=u(be(c),40),on(un(v(l,(pt(),Ta))))&&(f=l);for(h=new Mt,xt(h,f,h.c.b,h.c),JGn(n,h),a=ge(e.b,0);a.b!=a.d.c;)l=u(be(a),40),s=Ae(v(l,(pt(),c9))),r=Dc(n.b,s)!=null?u(Dc(n.b,s),17).a:0,U(l,tq,Y(r)),i=1+(Dc(n.a,s)!=null?u(Dc(n.a,s),17).a:0),U(l,mln,Y(i));t.Vg()}function yUn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,Zb),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new zmn))),Q(n,Zb,Wb,ban),Q(n,Zb,yw,15),Q(n,Zb,Dy,Y(0)),Q(n,Zb,bcn,rn(lan)),Q(n,Zb,r2,rn(Eue)),Q(n,Zb,a3,rn(Mue)),Q(n,Zb,l3,$Vn),Q(n,Zb,i8,rn(aan)),Q(n,Zb,d3,rn(dan)),Q(n,Zb,wcn,rn(Vq)),Q(n,Zb,TP,rn(jue))}function jUn(n,e){var t,i,r,c,s,f,h,l,a;if(r=n.i,s=r.o.a,c=r.o.b,s<=0&&c<=0)return en(),sc;switch(l=n.n.a,a=n.n.b,f=n.o.a,t=n.o.b,e.g){case 2:case 1:if(l<0)return en(),Wn;if(l+f>s)return en(),Zn;break;case 4:case 3:if(a<0)return en(),Xn;if(a+t>c)return en(),ae}return h=(l+f/2)/s,i=(a+t/2)/c,h+i<=1&&h-i<=0?(en(),Wn):h+i>=1&&h-i>=0?(en(),Zn):i<.5?(en(),Xn):(en(),ae)}function cIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(t=!1,a=$(B(v(e,(cn(),g0)))),m=fa*a,r=new M(e.b);r.a<r.c.c.length;)for(i=u(E(r),30),l=new M(i.a),c=u(E(l),10),d=kW(n.a[c.p]);l.a<l.c.c.length;)f=u(E(l),10),g=kW(n.a[f.p]),d!=g&&(p=jg(n.b,c,f),s=c.n.b+c.o.b+c.d.a+d.a+p,h=f.n.b-f.d.d+g.a,s>h+m&&(k=d.g+g.g,g.a=(g.g*g.a+d.g*d.a)/k,g.g=k,d.f=g,t=!0)),c=f,d=g;return t}function EUn(n,e,t,i,r,c,s){var f,h,l,a,d,g;for(g=new mp,l=e.Kc();l.Ob();)for(f=u(l.Pb(),853),d=new M(f.Rf());d.a<d.c.c.length;)a=u(E(d),187),x(a.of((He(),Zq)))===x(($f(),Kv))&&(eUn(g,a,!1,i,r,c,s),L5(n,g));for(h=t.Kc();h.Ob();)for(f=u(h.Pb(),853),d=new M(f.Rf());d.a<d.c.c.length;)a=u(E(d),187),x(a.of((He(),Zq)))===x(($f(),Jw))&&(eUn(g,a,!0,i,r,c,s),L5(n,g))}function uIe(n,e,t){var i,r,c,s,f,h,l;for(s=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));s.e!=s.i.gc();)for(c=u(ue(s),27),r=new ie(ce(Sl(c).a.Kc(),new En));pe(r);)i=u(fe(r),74),!D5(i)&&!D5(i)&&!_b(i)&&(h=u(Fr(wr(t.f,c)),40),l=u(ee(t,Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84))),40),h&&l&&(f=new WW(h,l),U(f,(pt(),u9),i),Ur(f,i),Re(h.d,f),Re(l.b,f),Re(e.a,f)))}function oIe(n,e){var t,i,r,c,s,f,h,l;for(h=u(u(ot(n.r,e),21),87).Kc();h.Ob();)f=u(h.Pb(),117),r=f.c?qPn(f.c):0,r>0?f.a?(l=f.b.Mf().b,r>l&&(n.v||f.c.d.c.length==1?(s=(r-l)/2,f.d.d=s,f.d.a=s):(t=u(sn(f.c.d,0),187).Mf().b,i=(t-l)/2,f.d.d=y.Math.max(0,i),f.d.a=r-i-l))):f.d.a=n.t+r:F6(n.u)&&(c=enn(f.b),c.d<0&&(f.d.d=-c.d),c.d+c.a>f.b.Mf().b&&(f.d.a=c.d+c.a-f.b.Mf().b))}function Us(){Us=R,k3=new Di((He(),Jj),Y(1)),yI=new Di(qd,80),tZn=new Di(Uan,5),zYn=new Di(x2,Gm),nZn=new Di(sU,Y(1)),eZn=new Di(fU,(_n(),!0)),mon=new fb(50),YYn=new Di(M1,mon),won=Vj,von=v9,XYn=new Di(Yq,!1),pon=Wj,JYn=Vw,QYn=Ca,WYn=Hd,VYn=F2,ZYn=Ww,gon=(lnn(),BYn),k_=qYn,kI=KYn,v_=FYn,kon=HYn,cZn=k9,uZn=cA,rZn=Qj,iZn=rA,yon=(Gp(),Yw),new Di(x3,yon)}function sIe(n,e){var t;switch(bk(n)){case 6:return Si(e);case 7:return $0(e);case 8:return D0(e);case 3:return Array.isArray(e)&&(t=bk(e),!(t>=14&&t<=16));case 11:return e!=null&&typeof e===eK;case 12:return e!=null&&(typeof e===vy||typeof e==eK);case 0:return Cx(e,n.__elementTypeId$);case 2:return uD(e)&&e.Tm!==Q2;case 1:return uD(e)&&e.Tm!==Q2||Cx(e,n.__elementTypeId$);default:return!0}}function MUn(n,e){var t,i,r,c;return i=y.Math.min(y.Math.abs(n.c-(e.c+e.b)),y.Math.abs(n.c+n.b-e.c)),c=y.Math.min(y.Math.abs(n.d-(e.d+e.a)),y.Math.abs(n.d+n.a-e.d)),t=y.Math.abs(n.c+n.b/2-(e.c+e.b/2)),t>n.b/2+e.b/2||(r=y.Math.abs(n.d+n.a/2-(e.d+e.a/2)),r>n.a/2+e.a/2)?1:t==0&&r==0?0:t==0?c/r+1:r==0?i/t+1:y.Math.min(i/t,c/r)+1}function fIe(n,e){var t,i,r,c,s,f,h;for(c=0,f=0,h=0,r=new M(n.f.e);r.a<r.c.c.length;)i=u(E(r),153),e!=i&&(s=n.i[e.a][i.a],c+=s,t=J1(e.d,i.d),t>0&&n.d!=(t5(),E_)&&(f+=s*(i.d.a+n.a[e.a][i.a]*(e.d.a-i.d.a)/t)),t>0&&n.d!=(t5(),y_)&&(h+=s*(i.d.b+n.a[e.a][i.a]*(e.d.b-i.d.b)/t)));switch(n.d.g){case 1:return new V(f/c,e.d.b);case 2:return new V(e.d.a,h/c);default:return new V(f/c,h/c)}}function TUn(n){var e,t,i,r,c,s;for(t=(!n.a&&(n.a=new ti(xo,n,5)),n.a).i+2,s=new Gc(t),nn(s,new V(n.j,n.k)),qt(new Cn(null,(!n.a&&(n.a=new ti(xo,n,5)),new On(n.a,16))),new xkn(s)),nn(s,new V(n.b,n.c)),e=1;e<s.c.length-1;)i=(Nn(e-1,s.c.length),u(s.c[e-1],8)),r=(Nn(e,s.c.length),u(s.c[e],8)),c=(Nn(e+1,s.c.length),u(s.c[e+1],8)),i.a==r.a&&r.a==c.a||i.b==r.b&&r.b==c.b?Yl(s,e):++e;return s}function CUn(n,e){cm();var t,i,r,c,s;if(s=u(v(n.i,(cn(),Ft)),101),c=n.j.g-e.j.g,c!=0||!(s==(Ai(),Ud)||s==tl||s==qc))return 0;if(s==(Ai(),Ud)&&(t=u(v(n,v1),17),i=u(v(e,v1),17),t&&i&&(r=t.a-i.a,r!=0)))return r;switch(n.j.g){case 1:return bt(n.n.a,e.n.a);case 2:return bt(n.n.b,e.n.b);case 3:return bt(e.n.a,n.n.a);case 4:return bt(e.n.b,n.n.b);default:throw T(new Ar(tin))}}function SUn(n,e){var t,i,r,c,s,f,h;for(t=eSn(sMn(uMn(oMn(new VG,e),new IT(e.e)),ZZn),n.a),e.j.c.length==0||$Dn(u(sn(e.j,0),60).a,t),h=new rL,Ve(n.e,t,h),s=new ni,f=new ni,c=new M(e.k);c.a<c.c.c.length;)r=u(E(c),18),fi(s,r.c),fi(f,r.d);i=s.a.gc()-f.a.gc(),i<0?(Ck(h,!0,(ci(),Kr)),Ck(h,!1,Xr)):i>0&&(Ck(h,!1,(ci(),Kr)),Ck(h,!0,Xr)),nu(e.g,new BMn(n,t)),Ve(n.g,e,t)}function PUn(){PUn=R;var n;for(vun=S(C(ye,1),_e,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),WF=F(ye,_e,28,37,15,1),gQn=S(C(ye,1),_e,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),kun=F(Ra,PK,28,37,14,1),n=2;n<=36;n++)WF[n]=wi(y.Math.pow(n,vun[n])),kun[n]=Xk(Ey,WF[n])}function hIe(n){var e;if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i!=1)throw T(new Gn(tWn+(!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i));return e=new Tu,Mk(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84))&&Ki(e,gzn(n,Mk(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84)),!1)),Mk(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))&&Ki(e,gzn(n,Mk(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84)),!0)),e}function IUn(n,e){var t,i,r,c,s;for(e.d?r=n.a.c==(fh(),m0)?ji(e.b):Qt(e.b):r=n.a.c==(fh(),y1)?ji(e.b):Qt(e.b),c=!1,i=new ie(ce(r.a.Kc(),new En));pe(i);)if(t=u(fe(i),18),s=on(n.a.f[n.a.g[e.b.p].p]),!(!s&&!fr(t)&&t.c.i.c==t.d.i.c)&&!(on(n.a.n[n.a.g[e.b.p].p])||on(n.a.n[n.a.g[e.b.p].p]))&&(c=!0,sf(n.b,n.a.g[h7e(t,e.b).p])))return e.c=!0,e.a=t,e;return e.c=c,e.a=null,e}function Den(n,e,t){var i,r,c,s,f,h,l;if(i=t.gc(),i==0)return!1;if(n.Pj())if(h=n.Qj(),qY(n,e,t),s=i==1?n.Ij(3,null,t.Kc().Pb(),e,h):n.Ij(5,null,t,e,h),n.Mj()){for(f=i<100?null:new R1(i),c=e+i,r=e;r<c;++r)l=n.xj(r),f=n.Nj(l,f),f=f;f?(f.nj(s),f.oj()):n.Jj(s)}else n.Jj(s);else if(qY(n,e,t),n.Mj()){for(f=i<100?null:new R1(i),c=e+i,r=e;r<c;++r)f=n.Nj(n.xj(r),f);f&&f.oj()}return!0}function OUn(n,e,t){var i,r,c,s,f;return n.Pj()?(r=null,c=n.Qj(),i=n.Ij(1,f=(s=n.Dj(e,n.Zi(e,t)),s),t,e,c),n.Mj()&&!(n.Yi()&&f?rt(f,t):x(f)===x(t))&&(f&&(r=n.Oj(f,r)),r=n.Nj(t,r)),r?(r.nj(i),r.oj()):n.Jj(i),f):(f=(s=n.Dj(e,n.Zi(e,t)),s),n.Mj()&&!(n.Yi()&&f?rt(f,t):x(f)===x(t))&&(r=null,f&&(r=n.Oj(f,null)),r=n.Nj(t,r),r&&r.oj()),f)}function $en(n,e){var t,i,r,c,s,f,h,l,a;if(n.e=e,n.f=u(v(e,(Q1(),jI)),234),Rye(e),n.d=y.Math.max(e.e.c.length*16+e.c.c.length,256),!on(un(v(e,(Us(),won)))))for(a=n.e.e.c.length,h=new M(e.e);h.a<h.c.c.length;)f=u(E(h),153),l=f.d,l.a=hW(n.f)*a,l.b=hW(n.f)*a;for(t=e.b,c=new M(e.c);c.a<c.c.c.length;)if(r=u(E(c),290),i=u(v(r,kon),17).a,i>0){for(s=0;s<i;s++)nn(t,new UIn(r));W_n(r)}}function AUn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;if(g=new q0(n.Zg()),bf(e,Qe,g),t&&!n.Xg().a.dc())for(a=new _a,bf(e,"logs",a),f=0,m=new J3(n.Xg().b.Kc());m.b.Ob();)p=Ae(m.b.Pb()),d=new q0(p),J0(a,f),qD(a,f,d),++f;if(i&&(l=new SE(n.Wg()),bf(e,"executionTime",l)),!n.Yg().a.dc())for(s=new _a,bf(e,gF,s),f=0,c=new J3(n.Yg().b.Kc());c.b.Ob();)r=u(c.b.Pb(),871),h=new sp,J0(s,f),qD(s,f,h),AUn(r,h,t,i),++f}function xen(){xen=R,AL(),Ise=new P5n,S(C(B3,2),J,381,0,[S(C(B3,1),iI,600,0,[new Y9(xJn)])]),S(C(B3,2),J,381,0,[S(C(B3,1),iI,600,0,[new Y9(Ycn)])]),S(C(B3,2),J,381,0,[S(C(B3,1),iI,600,0,[new Y9(RJn)]),S(C(B3,1),iI,600,0,[new Y9(Ycn)])]),new H1("-1"),S(C(B3,2),J,381,0,[S(C(B3,1),iI,600,0,[new Y9("\\c+")])]),new H1("0"),new H1("0"),new H1("1"),new H1("0"),new H1(qJn)}function lIe(n,e){var t,i,r,c,s,f,h,l,a,d;for(e.Ug("Hypernodes processing",1),r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),f=new M(i.a);f.a<f.c.c.length;)if(s=u(E(f),10),on(un(v(s,(cn(),wO))))&&s.j.c.length<=2){for(d=0,a=0,t=0,c=0,l=new M(s.j);l.a<l.c.c.length;)switch(h=u(E(l),12),h.j.g){case 1:++d;break;case 2:++a;break;case 3:++t;break;case 4:++c}d==0&&t==0&&wNe(n,s,c<=a)}e.Vg()}function aIe(n,e,t,i,r){var c,s,f,h,l,a,d;for(s=new M(e);s.a<s.c.c.length;){if(c=u(E(s),18),h=c.c,t.a._b(h))l=(Tb(),Ma);else if(i.a._b(h))l=(Tb(),O2);else throw T(new Gn("Source port must be in one of the port sets."));if(a=c.d,t.a._b(a))d=(Tb(),Ma);else if(i.a._b(a))d=(Tb(),O2);else throw T(new Gn("Target port must be in one of the port sets."));f=new S_n(c,l,d),Ve(n.b,c,f),Fn(r.c,f)}}function KS(n){var e,t;return n.c&&n.c.Vh()&&(t=u(n.c,54),n.c=u(ea(n,t),142),n.c!=t&&(n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,9,2,t,n.c)),L(n.Cb,411)?n.Db>>16==-15&&n.Cb.Yh()&&h$(new c$(n.Cb,9,13,t,n.c,f1(no(u(n.Cb,62)),n))):L(n.Cb,90)&&n.Db>>16==-23&&n.Cb.Yh()&&(e=n.c,L(e,90)||(e=(An(),Os)),L(t,90)||(t=(An(),Os)),h$(new c$(n.Cb,9,10,t,e,f1(Pc(u(n.Cb,29)),n)))))),n.c}function dIe(n,e,t){var i,r,c,s,f,h,l,a,d;for(t.Ug("Hyperedge merging",1),RMe(n,e),h=new xi(e.b,0);h.b<h.d.gc();)if(f=(oe(h.b<h.d.gc()),u(h.d.Xb(h.c=h.b++),30)),a=f.a,a.c.length!=0)for(i=null,r=null,c=null,s=null,l=0;l<a.c.length;l++)i=(Nn(l,a.c.length),u(a.c[l],10)),r=i.k,r==(Vn(),Ti)&&s==Ti&&(d=sOe(i,c),d.a&&(sSe(i,c,d.b,d.c),Nn(l,a.c.length),Pz(a.c,l,1),--l,i=c,r=s)),c=i,s=r;t.Vg()}function LUn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;if(e==t)return!0;if(e=qnn(n,e),t=qnn(n,t),i=Nx(e),i){if(a=Nx(t),a!=i)return a?(h=i.mk(),m=a.mk(),h==m&&h!=null):!1;if(s=(!e.d&&(e.d=new ti(jr,e,1)),e.d),c=s.i,g=(!t.d&&(t.d=new ti(jr,t,1)),t.d),c==g.i){for(l=0;l<c;++l)if(r=u(N(s,l),89),d=u(N(g,l),89),!LUn(n,r,d))return!1}return!0}else return f=e.e,p=t.e,f==p}function NUn(n,e,t,i){var r,c,s,f,h,l,a,d;if(Pl(n.e,e)){for(d=ru(n.e.Dh(),e),c=u(n.g,124),a=null,h=-1,f=-1,r=0,l=0;l<n.i;++l)s=c[l],d.am(s.Lk())&&(r==t&&(h=l),r==i&&(f=l,a=s.md()),++r);if(h==-1)throw T(new Or(vF+t+Cd+r));if(f==-1)throw T(new Or(kF+i+Cd+r));return k5(n,h,f),fo(n.e)&&t4(n,V1(n,7,e,Y(i),a,t,!0)),a}else throw T(new Gn("The feature must be many-valued to support move"))}function DUn(n,e,t,i){var r,c,s,f,h;switch(h=new rr(e.n),h.a+=e.o.a/2,h.b+=e.o.b/2,f=$(B(v(e,(cn(),Fw)))),c=n.f,s=n.d,r=n.c,u(v(e,(W(),gc)),64).g){case 1:h.a+=s.b+r.a-t/2,h.b=-i-f,e.n.b=-(s.d+f+r.b);break;case 2:h.a=c.a+s.b+s.c+f,h.b+=s.d+r.b-i/2,e.n.a=c.a+s.c+f-r.a;break;case 3:h.a+=s.b+r.a-t/2,h.b=c.b+s.d+s.a+f,e.n.b=c.b+s.a+f-r.b;break;case 4:h.a=-t-f,h.b+=s.d+r.b-i/2,e.n.a=-(s.b+f+r.a)}return h}function $Un(n){var e,t,i,r,c,s;return i=new jQ,Ur(i,n),x(v(i,(cn(),Lo)))===x((ci(),Jf))&&U(i,Lo,FC(i)),v(i,(JT(),b9))==null&&(s=u(WFn(n),167),U(i,b9,IM(s.of(b9)))),U(i,(W(),st),n),U(i,Hc,(e=u(of(rH),9),new _o(e,u(xs(e,e.length),9),0))),r=aLe((St(n)&&(cb(),new Qd(St(n))),cb(),new TN(St(n)?new Qd(St(n)):null,n)),Xr),c=u(v(i,hhn),107),t=i.d,dAn(t,c),dAn(t,r),i}function bIe(n,e,t){var i,r;i=e.c.i,r=t.d.i,i.k==(Vn(),Ti)?(U(n,(W(),yf),u(v(i,yf),12)),U(n,Es,u(v(i,Es),12)),U(n,$w,un(v(i,$w)))):i.k==Sc?(U(n,(W(),yf),u(v(i,yf),12)),U(n,Es,u(v(i,Es),12)),U(n,$w,(_n(),!0))):r.k==Sc?(U(n,(W(),yf),u(v(r,yf),12)),U(n,Es,u(v(r,Es),12)),U(n,$w,(_n(),!0))):(U(n,(W(),yf),e.c),U(n,Es,t.d))}function wIe(n){var e,t,i,r,c,s,f;for(n.o=new Mg,i=new Mt,s=new M(n.e.a);s.a<s.c.c.length;)c=u(E(s),125),xg(c).c.length==1&&xt(i,c,i.c.b,i.c);for(;i.b!=0;)c=u(i.b==0?null:(oe(i.b!=0),Xo(i,i.a.a)),125),xg(c).c.length!=0&&(e=u(sn(xg(c),0),218),t=c.g.a.c.length>0,f=HC(e,c),XX(t?f.b:f.g,e),xg(f).c.length==1&&xt(i,f,i.c.b,i.c),r=new bi(c,e),W1(n.o,r),du(n.e.a,c))}function xUn(n,e){var t,i,r,c,s,f,h;return i=y.Math.abs(gT(n.b).a-gT(e.b).a),f=y.Math.abs(gT(n.b).b-gT(e.b).b),r=0,h=0,t=1,s=1,i>n.b.b/2+e.b.b/2&&(r=y.Math.min(y.Math.abs(n.b.c-(e.b.c+e.b.b)),y.Math.abs(n.b.c+n.b.b-e.b.c)),t=1-r/i),f>n.b.a/2+e.b.a/2&&(h=y.Math.min(y.Math.abs(n.b.d-(e.b.d+e.b.a)),y.Math.abs(n.b.d+n.b.a-e.b.d)),s=1-h/f),c=y.Math.min(t,s),(1-c)*y.Math.sqrt(i*i+f*f)}function gIe(n){var e,t,i,r;for(JR(n,n.e,n.f,(Tb(),Ma),!0,n.c,n.i),JR(n,n.e,n.f,Ma,!1,n.c,n.i),JR(n,n.e,n.f,O2,!0,n.c,n.i),JR(n,n.e,n.f,O2,!1,n.c,n.i),aIe(n,n.c,n.e,n.f,n.i),i=new xi(n.i,0);i.b<i.d.gc();)for(e=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),131)),r=new xi(n.i,i.b);r.b<r.d.gc();)t=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),131)),tAe(e,t);TNe(n.i,u(v(n.d,(W(),P3)),234)),BAe(n.i)}function AR(n,e){var t,i;if(e!=null){if(i=Fb(n),i)if(i.i&1){if(i==so)return D0(e);if(i==ye)return L(e,17);if(i==cg)return L(e,161);if(i==Ru)return L(e,222);if(i==fs)return L(e,180);if(i==Ii)return $0(e);if(i==V2)return L(e,191);if(i==Ra)return L(e,168)}else return iM(),t=u(ee(yA,i),57),!t||t.fk(e);else if(L(e,58))return n.dl(u(e,58))}return!1}function Ren(){Ren=R;var n,e,t,i,r,c,s,f,h;for(nh=F(Ru,s2,28,255,15,1),A1=F(fs,gh,28,64,15,1),e=0;e<255;e++)nh[e]=-1;for(t=90;t>=65;t--)nh[t]=t-65<<24>>24;for(i=122;i>=97;i--)nh[i]=i-97+26<<24>>24;for(r=57;r>=48;r--)nh[r]=r-48+52<<24>>24;for(nh[43]=62,nh[47]=63,c=0;c<=25;c++)A1[c]=65+c&ui;for(s=26,h=0;s<=51;++s,h++)A1[s]=97+h&ui;for(n=52,f=0;n<=61;++n,f++)A1[n]=48+f&ui;A1[62]=43,A1[63]=47}function RUn(n,e){var t,i,r,c,s,f;return r=$Q(n),f=$Q(e),r==f?n.e==e.e&&n.a<54&&e.a<54?n.f<e.f?-1:n.f>e.f?1:0:(i=n.e-e.e,t=(n.d>0?n.d:y.Math.floor((n.a-1)*Uzn)+1)-(e.d>0?e.d:y.Math.floor((e.a-1)*Uzn)+1),t>i+1?r:t<i-1?-r:(c=(!n.c&&(n.c=J7(vc(n.f))),n.c),s=(!e.c&&(e.c=J7(vc(e.f))),e.c),i<0?c=Og(c,VUn(-i)):i>0&&(s=Og(s,VUn(i))),XKn(c,s))):r<f?-1:1}function pIe(n,e,t){var i,r,c,s,f,h,l,a;for(t.Ug(MXn,1),n.vf(e),c=0;n.xf(c)&&!t.$g();){for(n.wf(),a=$h(Eo(S(C(Ao,1),Kn,20,0,[e.e,e.d,e.b])));pe(a);)for(h=u(fe(a),309),f=$h(Eo(S(C(Ao,1),Kn,20,0,[e.e,e.d,e.b])));pe(f);)s=u(fe(f),309),s!=h&&(r=n.uf(s,h),r&&tt(h.c,r));for(l=$h(Eo(S(C(Ao,1),Kn,20,0,[e.e,e.d,e.b])));pe(l);)h=u(fe(l),309),i=h.c,o_n(i,-n.d,-n.d,n.d,n.d),tt(h.d,i),i.a=0,i.b=0;++c}t.Vg()}function mIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(n.dc())return new Ni;for(l=0,d=0,r=n.Kc();r.Ob();)i=u(r.Pb(),36),c=i.f,l=y.Math.max(l,c.a),d+=c.a*c.b;for(l=y.Math.max(l,y.Math.sqrt(d)*$(B(v(u(n.Kc().Pb(),36),(cn(),oO))))),g=0,p=0,h=0,t=e,f=n.Kc();f.Ob();)s=u(f.Pb(),36),a=s.f,g+a.a>l&&(g=0,p+=h+e,h=0),Pm(s,g,p),t=y.Math.max(t,g+a.a),h=y.Math.max(h,a.b),g+=a.a+e;return new V(t+e,p+h+e)}function Ken(n,e){var t,i,r,c,s,f,h;if(!Pf(n))throw T(new Ar(eWn));if(i=Pf(n),c=i.g,r=i.f,c<=0&&r<=0)return en(),sc;switch(f=n.i,h=n.j,e.g){case 2:case 1:if(f<0)return en(),Wn;if(f+n.g>c)return en(),Zn;break;case 4:case 3:if(h<0)return en(),Xn;if(h+n.f>r)return en(),ae}return s=(f+n.g/2)/c,t=(h+n.f/2)/r,s+t<=1&&s-t<=0?(en(),Wn):s+t>=1&&s-t>=0?(en(),Zn):t<.5?(en(),Xn):(en(),ae)}function vIe(n,e,t,i,r){var c,s;if(c=nr(vi(e[0],mr),vi(i[0],mr)),n[0]=Se(c),c=wb(c,32),t>=r){for(s=1;s<r;s++)c=nr(c,nr(vi(e[s],mr),vi(i[s],mr))),n[s]=Se(c),c=wb(c,32);for(;s<t;s++)c=nr(c,vi(e[s],mr)),n[s]=Se(c),c=wb(c,32)}else{for(s=1;s<t;s++)c=nr(c,nr(vi(e[s],mr),vi(i[s],mr))),n[s]=Se(c),c=wb(c,32);for(;s<r;s++)c=nr(c,vi(i[s],mr)),n[s]=Se(c),c=wb(c,32)}Ec(c,0)!=0&&(n[s]=Se(c))}function bw(n){nt();var e,t,i,r,c,s;if(n.e!=4&&n.e!=5)throw T(new Gn("Token#complementRanges(): must be RANGE: "+n.e));for(c=n,Gg(c),z5(c),i=c.b.length+2,c.b[0]==0&&(i-=2),t=c.b[c.b.length-1],t==cv&&(i-=2),r=new yo(4),r.b=F(ye,_e,28,i,15,1),s=0,c.b[0]>0&&(r.b[s++]=0,r.b[s++]=c.b[0]-1),e=1;e<c.b.length-2;e+=2)r.b[s++]=c.b[e]+1,r.b[s++]=c.b[e+1]-1;return t!=cv&&(r.b[s++]=t+1,r.b[s]=cv),r.a=!0,r}function kIe(n,e){var t,i,r,c,s,f,h,l,a;for(e.Ug("Layer constraint edge reversal",1),s=new M(n.b);s.a<s.c.c.length;){for(c=u(E(s),30),a=-1,t=new Z,l=Y7(c.a),r=0;r<l.length;r++)i=u(v(l[r],(W(),Ad)),311),a==-1?i!=(vl(),k2)&&(a=r):i==(vl(),k2)&&($i(l[r],null),uw(l[r],a++,c)),i==(vl(),E3)&&Fn(t.c,l[r]);for(h=new M(t);h.a<h.c.c.length;)f=u(E(h),10),$i(f,null),$i(f,c)}e.Vg()}function LR(n,e,t){var i,r,c,s,f,h,l,a;if(i=t.gc(),i==0)return!1;if(n.Pj())if(l=n.Qj(),Zx(n,e,t),s=i==1?n.Ij(3,null,t.Kc().Pb(),e,l):n.Ij(5,null,t,e,l),n.Mj()){for(f=i<100?null:new R1(i),c=e+i,r=e;r<c;++r)a=n.g[r],f=n.Nj(a,f),f=n.Uj(a,f);f?(f.nj(s),f.oj()):n.Jj(s)}else n.Jj(s);else if(Zx(n,e,t),n.Mj()){for(f=i<100?null:new R1(i),c=e+i,r=e;r<c;++r)h=n.g[r],f=n.Nj(h,f);f&&f.oj()}return!0}function yIe(n,e){var t,i,r,c,s,f,h,l,a;for(e.Ug("Hierarchical port dummy size processing",1),h=new Z,a=new Z,i=$(B(v(n,(cn(),T2)))),t=i*2,c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),h.c.length=0,a.c.length=0,f=new M(r.a);f.a<f.c.c.length;)s=u(E(f),10),s.k==(Vn(),Zt)&&(l=u(v(s,(W(),gc)),64),l==(en(),Xn)?Fn(h.c,s):l==ae&&Fn(a.c,s));gHn(h,!0,t),gHn(a,!1,t)}e.Vg()}function Ben(n,e,t,i){var r,c,s,f,h;for(s=new M(n.k);s.a<s.c.c.length;)r=u(E(s),132),(!i||r.c==(af(),Ea))&&(h=r.b,h.g<0&&r.d>0&&(JA(h,h.d-r.d),r.c==(af(),Ea)&&ife(h,h.a-r.d),h.d<=0&&h.i>0&&xt(e,h,e.c.b,e.c)));for(c=new M(n.f);c.a<c.c.c.length;)r=u(E(c),132),(!i||r.c==(af(),Ea))&&(f=r.a,f.g<0&&r.d>0&&(PE(f,f.i-r.d),r.c==(af(),Ea)&&rfe(f,f.b-r.d),f.i<=0&&f.d>0&&xt(t,f,t.c.b,t.c)))}function jIe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p;for(Ln(),Yt(n,new Jmn),s=$7(n),p=new Z,g=new Z,f=null,h=0;s.b!=0;)c=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),163),!f||Pu(f)*ao(f)/2<Pu(c)*ao(c)?(f=c,Fn(p.c,c)):(h+=Pu(c)*ao(c),Fn(g.c,c),g.c.length>1&&(h>Pu(f)*ao(f)/2||s.b==0)&&(d=new hC(g),a=Pu(f)/ao(f),l=QR(d,e,new up,t,i,r,a),tt(ff(d.e),l),f=d,Fn(p.c,d),h=0,g.c.length=0));return hi(p,g),p}function Oc(n,e,t,i,r){fl();var c,s,f,h,l,a,d;if(PW(n,"src"),PW(t,"dest"),d=wo(n),h=wo(t),XV((d.i&4)!=0,"srcType is not an array"),XV((h.i&4)!=0,"destType is not an array"),a=d.c,s=h.c,XV(a.i&1?a==s:(s.i&1)==0,"Array types don't match"),s6e(n,e,t,i,r),!(a.i&1)&&d!=h)if(l=cd(n),c=cd(t),x(n)===x(t)&&e<i)for(e+=r,f=i+r;f-- >i;)$t(c,f,l[--e]);else for(f=i+r;i<f;)$t(c,i++,l[e++]);else Rnn(n,e,t,i,r,!0)}function KUn(n,e){var t,i,r,c,s,f,h,l,a;switch(e.Ug("Box layout",2),r=J9(B(z(n,(mS(),Cue)))),c=u(z(n,Tue),107),t=on(un(z(n,lan))),i=on(un(z(n,aan))),u(z(n,Vq),320).g){case 0:s=(a=new _u((!n.a&&(n.a=new q(Ye,n,10,11)),n.a)),Ln(),Yt(a,new Nkn(i)),a),f=ynn(n),h=B(z(n,han)),(h==null||(Jn(h),h<=0))&&(h=1.3),l=nNe(s,r,c,f.a,f.b,t,(Jn(h),h)),Gb(n,l.a,l.b,!1,!0);break;default:zOe(n,r,c,t)}e.Vg()}function EIe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m;for(g=Vke(n,t),h=0;h<e;h++){for(B0(r,t),p=new Z,m=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),418)),a=g+h;a<n.b;a++)f=m,m=(oe(i.b<i.d.gc()),u(i.d.Xb(i.c=i.b++),418)),nn(p,new dqn(f,m,t));for(d=g+h;d<n.b;d++)oe(i.b>0),i.a.Xb(i.c=--i.b),d>g+h&&bo(i);for(s=new M(p);s.a<s.c.c.length;)c=u(E(s),418),B0(i,c);if(h<e-1)for(l=g+h;l<n.b;l++)oe(i.b>0),i.a.Xb(i.c=--i.b)}}function MIe(){nt();var n,e,t,i,r,c;if(OU)return OU;for(n=new yo(4),gw(n,sa(RF,!0)),V5(n,sa("M",!0)),V5(n,sa("C",!0)),c=new yo(4),i=0;i<11;i++)xc(c,i,i);return e=new yo(4),gw(e,sa("M",!0)),xc(e,4448,4607),xc(e,65438,65439),r=new P6(2),pd(r,n),pd(r,F9),t=new P6(2),t.Jm(uT(c,sa("L",!0))),t.Jm(e),t=new X0(3,t),t=new SW(r,t),OU=t,OU}function ww(n,e){var t,i,r,c,s,f,h,l;for(t=new RegExp(e,"g"),h=F(fn,J,2,0,6,1),i=0,l=n,c=null;;)if(f=t.exec(l),f==null||l==""){h[i]=l;break}else s=f.index,h[i]=(Ri(0,s,l.length),l.substr(0,s)),l=qo(l,s+f[0].length,l.length),t.lastIndex=0,c==l&&(h[i]=(Ri(0,1,l.length),l.substr(0,1)),l=(zn(1,l.length+1),l.substr(1))),c=l,++i;if(n.length>0){for(r=h.length;r>0&&h[r-1]=="";)--r;r<h.length&&(h.length=r)}return h}function lc(){lc=R,Aln=new fb(20),Oln=new Di((He(),M1),Aln),sq=new Di(qd,20),Nln=new Di(Gan,3),yre=new Di(x2,Gm),RO=new Di(Jj,Y(1)),Ore=new Di(fU,(_n(),!0)),Cln=zj,Sln=(ci(),Jf),v0=new Di(_d,Sln),jre=Vj,Ere=eU,Tre=Hd,Cre=Vw,Sre=_2,Pre=Ca,Mre=F2,Iln=Wj,Ire=Ww,$ln=(Hnn(),kre),Lln=mre,Nre=k9,Dre=cA,Lre=Qj,Are=rA,Dln=(Gp(),Yw),new Di(x3,Dln),A2=pre,oq=gre,Ph=vre,Tln=bre,Pln=wre}function TIe(n){var e,t;if(e=Ae(z(n,(He(),$v))),!Rxn(e,n)&&!Nf(n,q2)&&((!n.a&&(n.a=new q(Ye,n,10,11)),n.a).i!=0||on(un(z(n,Xj)))))if(e==null||fw(e).length==0){if(!Rxn(Yn,n))throw t=Be(Be(new mo("Unable to load default layout algorithm "),Yn)," for unconfigured node "),GS(n,t),T(new _l(t.a))}else throw t=Be(Be(new mo("Layout algorithm '"),e),"' not found for "),GS(n,t),T(new _l(t.a))}function NR(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;if(t=n.i,e=n.n,n.b==0)for(p=t.c+e.b,g=t.b-e.b-e.c,s=n.a,h=0,a=s.length;h<a;++h)r=s[h],hT(r,p,g);else i=PBn(n,!1),hT(n.a[0],t.c+e.b,i[0]),hT(n.a[2],t.c+t.b-e.c-i[2],i[2]),d=t.b-e.b-e.c,i[0]>0&&(d-=i[0]+n.c,i[0]+=n.c),i[2]>0&&(d-=i[2]+n.c),i[1]=y.Math.max(i[1],d),hT(n.a[1],t.c+e.b+i[0]-(i[1]-d)/2,i[1]);for(c=n.a,f=0,l=c.length;f<l;++f)r=c[f],L(r,336)&&u(r,336).lf()}function CIe(n){var e,t,i,r,c,s,f,h,l,a,d;for(d=new M3n,d.d=0,s=new M(n.b);s.a<s.c.c.length;)c=u(E(s),30),d.d+=c.a.c.length;for(i=0,r=0,d.a=F(ye,_e,28,n.b.c.length,15,1),l=0,a=0,d.e=F(ye,_e,28,d.d,15,1),t=new M(n.b);t.a<t.c.c.length;)for(e=u(E(t),30),e.p=i++,d.a[e.p]=r++,a=0,h=new M(e.a);h.a<h.c.c.length;)f=u(E(h),10),f.p=l++,d.e[f.p]=a++;return d.c=new ukn(d),d.b=Lh(d.d),GPe(d,n),d.f=Lh(d.d),zPe(d,n),d}function BUn(n,e){var t,i,r,c;for(c=u(sn(n.n,n.n.c.length-1),209).d,n.p=y.Math.min(n.p,e.g),n.r=y.Math.max(n.r,c),n.g=y.Math.max(n.g,e.g+(n.b.c.length==1?0:n.i)),n.o=y.Math.min(n.o,e.f),n.e+=e.f+(n.b.c.length==1?0:n.i),n.f=y.Math.max(n.f,e.f),r=n.n.c.length>0?(n.n.c.length-1)*n.i:0,i=new M(n.n);i.a<i.c.c.length;)t=u(E(i),209),r+=t.a;n.d=r,n.a=n.e/n.b.c.length-n.i*((n.b.c.length-1)/n.b.c.length),vZ(n.j)}function FUn(n,e){var t,i,r,c,s,f,h,l,a,d;if(a=un(v(e,(Us(),eZn))),a==null||(Jn(a),a)){for(d=F(so,Xh,28,e.e.c.length,16,1),s=dMe(e),r=new Mt,l=new M(e.e);l.a<l.c.c.length;)f=u(E(l),153),t=Ynn(n,f,null,null,d,s),t&&(Ur(t,e),xt(r,t,r.c.b,r.c));if(r.b>1)for(i=ge(r,0);i.b!=i.d.c;)for(t=u(be(i),235),c=0,h=new M(t.e);h.a<h.c.c.length;)f=u(E(h),153),f.a=c++;return r}return Af(S(C(mDe,1),jXn,235,0,[e]))}function bh(n){var e,t,i,r,c,s,f;if(!n.g){if(f=new qA,e=D9,s=e.a.zc(n,e),s==null){for(i=new ne(Hr(n));i.e!=i.i.gc();)t=u(ue(i),29),Kt(f,bh(t));e.a.Bc(n)!=null,e.a.gc()==0}for(r=f.i,c=(!n.s&&(n.s=new q(ku,n,21,17)),new ne(n.s));c.e!=c.i.gc();++r)afe(u(ue(c),462),r);Kt(f,(!n.s&&(n.s=new q(ku,n,21,17)),n.s)),ew(f),n.g=new bRn(n,f),n.i=u(f.g,254),n.i==null&&(n.i=EU),n.p=null,Zu(n).b&=-5}return n.g}function SIe(n,e){var t,i,r,c,s,f,h,l,a;if(t=e.qi(n.a),t&&(h=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),"memberTypes")),h!=null)){for(l=new Z,c=ww(h,"\\w"),s=0,f=c.length;s<f;++s)r=c[s],i=r.lastIndexOf("#"),a=i==-1?tV(n,e.jk(),r):i==0?ok(n,null,(zn(1,r.length+1),r.substr(1))):ok(n,(Ri(0,i,r.length),r.substr(0,i)),(zn(i+1,r.length+1),r.substr(i+1))),L(a,156)&&nn(l,u(a,156));return l}return Ln(),Ln(),sr}function DR(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m;if(i=n.i,t=n.n,n.b==0)e=SBn(n,!1),lT(n.a[0],i.d+t.d,e[0]),lT(n.a[2],i.d+i.a-t.a-e[2],e[2]),g=i.a-t.d-t.a,d=g,e[0]>0&&(e[0]+=n.c,d-=e[0]),e[2]>0&&(d-=e[2]+n.c),e[1]=y.Math.max(e[1],d),lT(n.a[1],i.d+t.d+e[0]-(e[1]-d)/2,e[1]);else for(m=i.d+t.d,p=i.a-t.d-t.a,s=n.a,h=0,a=s.length;h<a;++h)r=s[h],lT(r,m,p);for(c=n.a,f=0,l=c.length;f<l;++f)r=c[f],L(r,336)&&u(r,336).mf()}function PIe(n){var e,t,i,r,c,s,f,h,l,a;for(a=F(ye,_e,28,n.b.c.length+1,15,1),l=new ni,i=0,c=new M(n.b);c.a<c.c.c.length;){for(r=u(E(c),30),a[i++]=l.a.gc(),h=new M(r.a);h.a<h.c.c.length;)for(s=u(E(h),10),t=new ie(ce(Qt(s).a.Kc(),new En));pe(t);)e=u(fe(t),18),l.a.zc(e,l);for(f=new M(r.a);f.a<f.c.c.length;)for(s=u(E(f),10),t=new ie(ce(ji(s).a.Kc(),new En));pe(t);)e=u(fe(t),18),l.a.Bc(e)!=null}return a}function BS(n,e,t,i){var r,c,s,f,h;if(h=ru(n.e.Dh(),e),r=u(n.g,124),dr(),u(e,69).xk()){for(s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk())&&rt(c,t))return!0}else if(t!=null){for(f=0;f<n.i;++f)if(c=r[f],h.am(c.Lk())&&rt(t,c.md()))return!0;if(i){for(s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk())&&x(t)===x(ON(n,u(c.md(),58))))return!0}}else for(s=0;s<n.i;++s)if(c=r[s],h.am(c.Lk())&&c.md()==null)return!1;return!1}function IIe(n,e){var t,i,r,c,s,f;if(t=e.qi(n.a),t&&(f=Ae(gf((!t.b&&(t.b=new lo((An(),ar),pc,t)),t.b),FP)),f!=null))switch(r=RM(f,wu(35)),i=e.qk(),r==-1?(s=B6(n,jo(i)),c=f):r==0?(s=null,c=(zn(1,f.length+1),f.substr(1))):(s=(Ri(0,r,f.length),f.substr(0,r)),c=(zn(r+1,f.length+1),f.substr(r+1))),yb(Nr(n,e))){case 2:case 3:return f6e(n,i,s,c);case 0:case 4:case 5:case 6:return h6e(n,i,s,c)}return null}function _Un(n,e,t,i){var r,c,s,f;for(f=t,s=new M(e.a);s.a<s.c.c.length;){if(c=u(E(s),225),r=u(c.b,68),xb(n.b.c,r.b.c+r.b.b)<=0&&xb(r.b.c,n.b.c+n.b.b)<=0&&xb(n.b.d,r.b.d+r.b.a)<=0&&xb(r.b.d,n.b.d+n.b.a)<=0){if(xb(r.b.c,n.b.c+n.b.b)==0&&i.a<0||xb(r.b.c+r.b.b,n.b.c)==0&&i.a>0||xb(r.b.d,n.b.d+n.b.a)==0&&i.b<0||xb(r.b.d+r.b.a,n.b.d)==0&&i.b>0){f=0;break}}else f=y.Math.min(f,x_n(n,r,i));f=y.Math.min(f,_Un(n,c,f,i))}return f}function dy(n,e){var t,i,r,c,s,f,h;if(n.b<2)throw T(new Gn("The vector chain must contain at least a source and a target point."));for(r=(oe(n.b!=0),u(n.a.a.c,8)),j7(e,r.a,r.b),h=new kp((!e.a&&(e.a=new ti(xo,e,5)),e.a)),s=ge(n,1);s.a<n.b-1;)f=u(be(s),8),h.e!=h.i.gc()?t=u(ue(h),377):(t=(K1(),i=new yE,i),AKn(h,t)),gN(t,f.a,f.b);for(;h.e!=h.i.gc();)ue(h),A5(h);c=(oe(n.b!=0),u(n.c.b.c,8)),y7(e,c.a,c.b)}function HUn(n,e,t,i){var r,c,s,f,h,l;if(l=ru(n.e.Dh(),e),s=u(n.g,124),Pl(n.e,e)){if(e.Si()&&(c=Am(n,e,i,L(e,102)&&(u(e,19).Bb&hr)!=0),c>=0&&c!=t))throw T(new Gn(Vy));for(r=0,h=0;h<n.i;++h)if(f=s[h],l.am(f.Lk())){if(r==t)return u(Bg(n,h,(dr(),u(e,69).xk()?u(i,76):Rh(e,i))),76);++r}throw T(new Or(p8+t+Cd+r))}else{for(h=0;h<n.i;++h)if(f=s[h],l.am(f.Lk()))return dr(),u(e,69).xk()?f:f.md();return null}}function qUn(n,e){var t,i,r,c,s,f,h,l,a;for(t=0,r=new M((Nn(0,n.c.length),u(n.c[0],105)).g.b.j);r.a<r.c.c.length;)i=u(E(r),12),i.p=t++;for(e==(en(),Xn)?Yt(n,new Cpn):Yt(n,new Spn),f=0,a=n.c.length-1;f<a;)s=(Nn(f,n.c.length),u(n.c[f],105)),l=(Nn(a,n.c.length),u(n.c[a],105)),c=e==Xn?s.c:s.a,h=e==Xn?l.a:l.c,Vl(s,e,(xf(),av),c),Vl(l,e,lv,h),++f,--a;f==a&&Vl((Nn(f,n.c.length),u(n.c[f],105)),e,(xf(),j3),null)}function OIe(n,e,t,i){var r,c,s,f,h,l;for(s=new kGn(n,e,t),h=new xi(i,0),r=!1;h.b<h.d.gc();)f=(oe(h.b<h.d.gc()),u(h.d.Xb(h.c=h.b++),239)),f==e||f==t?bo(h):!r&&$(Sf(f.g,f.d[0]).a)>$(Sf(s.g,s.d[0]).a)?(oe(h.b>0),h.a.Xb(h.c=--h.b),B0(h,s),r=!0):f.e&&f.e.gc()>0&&(c=(!f.e&&(f.e=new Z),f.e).Mc(e),l=(!f.e&&(f.e=new Z),f.e).Mc(t),(c||l)&&((!f.e&&(f.e=new Z),f.e).Fc(s),++s.c));r||Fn(i.c,s)}function AIe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;return d=n.a.i+n.a.g/2,g=n.a.i+n.a.g/2,m=e.i+e.g/2,j=e.j+e.f/2,f=new V(m,j),l=u(z(e,(He(),D3)),8),l.a=l.a+d,l.b=l.b+g,c=(f.b-l.b)/(f.a-l.a),i=f.b-c*f.a,k=t.i+t.g/2,P=t.j+t.f/2,h=new V(k,P),a=u(z(t,D3),8),a.a=a.a+d,a.b=a.b+g,s=(h.b-a.b)/(h.a-a.a),r=h.b-s*h.a,p=(i-r)/(s-c),l.a<p&&f.a<p||p<l.a&&p<f.a?!1:!(a.a<p&&h.a<p||p<a.a&&p<h.a)}function LIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(g=u(ee(n.c,e),190),!g)throw T(new eh("Edge did not exist in input."));return l=wm(g),c=Z9((!e.a&&(e.a=new q(Tt,e,6,6)),e.a)),f=!c,f&&(p=new _a,t=new kPn(n,l,p),yle((!e.a&&(e.a=new q(Tt,e,6,6)),e.a),t),bf(g,Scn,p)),r=Nf(e,(He(),k0)),r&&(a=u(z(e,k0),75),s=!a||oOn(a),h=!s,h&&(d=new _a,i=new iyn(d),qi(a,i),bf(g,"junctionPoints",d))),j4(g,"container",V7(e).k),null}function UUn(n,e,t,i){var r,c,s,f,h,l;if(!D4(e)){if(l=t.eh((L(e,16)?u(e,16).gc():wl(e.Kc()))/n.a|0),l.Ug(dVn,1),h=new h4n,f=0,i==(ci(),Kr)||i==Xr)for(s=e.Kc();s.Ob();)r=u(s.Pb(),40),h=Eo(S(C(Ao,1),Kn,20,0,[h,new sl(r)])),f<r.f.a&&(f=r.f.a);else for(s=e.Kc();s.Ob();)r=u(s.Pb(),40),h=Eo(S(C(Ao,1),Kn,20,0,[h,new sl(r)])),f<r.f.b&&(f=r.f.b);for(c=e.Kc();c.Ob();)r=u(c.Pb(),40),U(r,(pt(),xO),f);l.Vg(),UUn(n,h,t,i)}}function Fen(n,e,t){var i,r,c,s,f,h,l,a;this.a=n,this.b=e,this.c=t,this.e=Af(S(C(wDe,1),Kn,177,0,[new bp(n,e),new bp(e,t),new bp(t,n)])),this.f=Af(S(C(Ei,1),J,8,0,[n,e,t])),this.d=(i=mi(Fi(this.b),this.a),r=mi(Fi(this.c),this.a),c=mi(Fi(this.c),this.b),s=i.a*(this.a.a+this.b.a)+i.b*(this.a.b+this.b.b),f=r.a*(this.a.a+this.c.a)+r.b*(this.a.b+this.c.b),h=2*(i.a*c.b-i.b*c.a),l=(r.b*s-i.b*f)/h,a=(i.a*f-r.a*s)/h,new V(l,a))}function Ub(n,e){var t,i,r,c,s,f;for(c=n.c,s=n.d,Zi(n,null),Oi(n,null),e&&on(un(v(s,(W(),lH))))?Zi(n,Nen(s.i,(gr(),Jc),(en(),Zn))):Zi(n,s),e&&on(un(v(c,(W(),dH))))?Oi(n,Nen(c.i,(gr(),Vu),(en(),Wn))):Oi(n,c),i=new M(n.b);i.a<i.c.c.length;)t=u(E(i),72),r=u(v(t,(cn(),Sh)),278),r==($f(),Kv)?U(t,Sh,Jw):r==Jw&&U(t,Sh,Kv);f=on(un(v(n,(W(),zf)))),U(n,zf,(_n(),!f)),n.a=Pk(n.a)}function NIe(n,e){var t,i,r,c,s;return t=pm(u(v(e,(lc(),v0)),88)),n.b.b==0?null:(s=u(Wr(_r(new Cn(null,new On(n.b,16)),new W3n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),c=u(Wr(ut(new Cn(null,new On(e.b,16)),new skn(s)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),r=B(ho(_0(_r(c.Oc(),new fkn(t)),(jb(),jb(),YF)))),i=u(ho(im(ut(c.Oc(),new nTn(t,r)))),40),i)}function DIe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;t=hb(new za,n.f),l=n.i[e.c.i.p],p=n.i[e.d.i.p],h=e.c,g=e.d,f=h.a.b,d=g.a.b,l.b||(f+=h.n.b),p.b||(d+=g.n.b),a=wi(y.Math.max(0,f-d)),s=wi(y.Math.max(0,d-f)),m=(k=y.Math.max(1,u(v(e,(cn(),O3)),17).a),j=MJ(e.c.i.k,e.d.i.k),k*j),r=qs(Ns(Ls(As(Ds(new hs,m),s),t),u(ee(n.k,e.c),125))),c=qs(Ns(Ls(As(Ds(new hs,m),a),t),u(ee(n.k,e.d),125))),i=new qMn(r,c),n.c[e.p]=i}function $Ie(n,e,t){var i,r,c,s,f,h;for(i=0,c=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));c.e!=c.i.gc();)r=u(ue(c),27),s="",(!r.n&&(r.n=new q(Sr,r,1,7)),r.n).i==0||(s=u(N((!r.n&&(r.n=new q(Sr,r,1,7)),r.n),0),135).a),f=new vCn(s),Ur(f,r),U(f,(Q1(),y3),r),f.a=i++,f.d.a=r.i+r.g/2,f.d.b=r.j+r.f/2,f.e.a=y.Math.max(r.g,1),f.e.b=y.Math.max(r.f,1),nn(e.e,f),Vc(t.f,r,f),h=u(z(r,(Us(),von)),101),h==(Ai(),Ia)&&(h=Qf)}function xIe(n,e){var t,i,r,c,s,f,h;e.Ug("Layer constraint postprocessing",1),h=n.b,h.c.length!=0&&(i=(Nn(0,h.c.length),u(h.c[0],30)),s=u(sn(h,h.c.length-1),30),t=new Nc(n),c=new Nc(n),EPe(n,i,s,t,c),t.a.c.length==0||(z0(0,h.c.length),d6(h.c,0,t)),c.a.c.length==0||Fn(h.c,c)),kt(n,(W(),hH))&&(r=new Nc(n),f=new Nc(n),bSe(n,r,f),r.a.c.length==0||(z0(0,h.c.length),d6(h.c,0,r)),f.a.c.length==0||Fn(h.c,f)),e.Vg()}function by(n){var e,t,i;switch(n){case 91:case 93:case 45:case 94:case 44:case 92:i="\\"+String.fromCharCode(n&ui);break;case 12:i="\\f";break;case 10:i="\\n";break;case 13:i="\\r";break;case 9:i="\\t";break;case 27:i="\\e";break;default:n<32?(t=(e=n>>>0,"0"+e.toString(16)),i="\\x"+qo(t,t.length-2,t.length)):n>=hr?(t=(e=n>>>0,"0"+e.toString(16)),i="\\v"+qo(t,t.length-6,t.length)):i=""+String.fromCharCode(n&ui)}return i}function GUn(n){var e,t,i;if(mg(u(v(n,(cn(),Ft)),101)))for(t=new M(n.j);t.a<t.c.c.length;)e=u(E(t),12),e.j==(en(),sc)&&(i=u(v(e,(W(),Xu)),10),i?gi(e,u(v(i,gc),64)):e.e.c.length-e.g.c.length<0?gi(e,Zn):gi(e,Wn));else{for(t=new M(n.j);t.a<t.c.c.length;)e=u(E(t),12),i=u(v(e,(W(),Xu)),10),i?gi(e,u(v(i,gc),64)):e.e.c.length-e.g.c.length<0?gi(e,(en(),Zn)):gi(e,(en(),Wn));U(n,Ft,(Ai(),Fv))}}function _en(n){var e,t,i,r,c,s;for(this.e=new Z,this.a=new Z,t=n.b-1;t<3;t++)g4(n,0,u(Zo(n,0),8));if(n.b<4)throw T(new Gn("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,hTe(this,n.b+this.b-1),s=new Z,c=new M(this.e),e=0;e<this.b-1;e++)nn(s,B(E(c)));for(r=ge(n,0);r.b!=r.d.c;)i=u(be(r),8),nn(s,B(E(c))),nn(this.a,new iAn(i,s)),Nn(0,s.c.length),s.c.splice(0,1)}function zUn(n,e){var t,i,r,c,s,f,h,l,a;for(c=new M(n.b);c.a<c.c.c.length;)for(r=u(E(c),30),f=new M(r.a);f.a<f.c.c.length;)for(s=u(E(f),10),s.k==(Vn(),Sc)&&(h=(l=u(fe(new ie(ce(ji(s).a.Kc(),new En))),18),a=u(fe(new ie(ce(Qt(s).a.Kc(),new En))),18),!on(un(v(l,(W(),zf))))||!on(un(v(a,zf)))?e:sRn(e)),t3(s,h)),i=new ie(ce(Qt(s).a.Kc(),new En));pe(i);)t=u(fe(i),18),h=on(un(v(t,(W(),zf))))?sRn(e):e,eRn(t,h)}function RIe(n,e,t,i,r){var c,s,f;if(t.f>=e.o&&t.f<=e.f||e.a*.5<=t.f&&e.a*1.5>=t.f){if(s=u(sn(e.n,e.n.c.length-1),209),s.e+s.d+t.g+r<=i&&(c=u(sn(e.n,e.n.c.length-1),209),c.f-n.f+t.f<=n.b||n.a.c.length==1))return $Y(e,t),!0;if(e.s+t.g<=i&&(e.t+e.d+t.f+r<=n.b||n.a.c.length==1))return nn(e.b,t),f=u(sn(e.n,e.n.c.length-1),209),nn(e.n,new DT(e.s,f.f+f.a+e.i,e.i)),wZ(u(sn(e.n,e.n.c.length-1),209),t),BUn(e,t),!0}return!1}function XUn(n,e,t){var i,r,c,s;return n.Pj()?(r=null,c=n.Qj(),i=n.Ij(1,s=d$(n,e,t),t,e,c),n.Mj()&&!(n.Yi()&&s!=null?rt(s,t):x(s)===x(t))?(s!=null&&(r=n.Oj(s,r)),r=n.Nj(t,r),n.Tj()&&(r=n.Wj(s,t,r)),r?(r.nj(i),r.oj()):n.Jj(i)):(n.Tj()&&(r=n.Wj(s,t,r)),r?(r.nj(i),r.oj()):n.Jj(i)),s):(s=d$(n,e,t),n.Mj()&&!(n.Yi()&&s!=null?rt(s,t):x(s)===x(t))&&(r=null,s!=null&&(r=n.Oj(s,null)),r=n.Nj(t,r),r&&r.oj()),s)}function KIe(n,e){var t,i,r,c,s;if(e.Ug("Path-Like Graph Wrapping",1),n.b.c.length==0){e.Vg();return}if(r=new Gnn(n),s=(r.i==null&&(r.i=xQ(r,new XU)),$(r.i)*r.f),t=s/(r.i==null&&(r.i=xQ(r,new XU)),$(r.i)),r.b>t){e.Vg();return}switch(u(v(n,(cn(),LH)),351).g){case 2:c=new WU;break;case 0:c=new zU;break;default:c=new JU}if(i=c.og(n,r),!c.pg())switch(u(v(n,jO),352).g){case 2:i=R_n(r,i);break;case 1:i=PFn(r,i)}DOe(n,r,i),e.Vg()}function H5(n,e){var t,i,r,c,s,f,h,l;e%=24,n.q.getHours()!=e&&(i=new y.Date(n.q.getTime()),i.setDate(i.getDate()+1),f=n.q.getTimezoneOffset()-i.getTimezoneOffset(),f>0&&(h=f/60|0,l=f%60,r=n.q.getDate(),t=n.q.getHours(),t+h>=24&&++r,c=new y.Date(n.q.getFullYear(),n.q.getMonth(),r,e+h,n.q.getMinutes()+l,n.q.getSeconds(),n.q.getMilliseconds()),n.q.setTime(c.getTime()))),s=n.q.getTime(),n.q.setTime(s+36e5),n.q.getHours()!=e&&n.q.setTime(s)}function BIe(n,e){var t,i,r,c;if(Y2e(n.d,n.e),n.c.a.$b(),$(B(v(e.j,(cn(),hO))))!=0||$(B(v(e.j,hO)))!=0)for(t=i2,x(v(e.j,Yh))!==x((lh(),k1))&&U(e.j,(W(),ka),(_n(),!0)),c=u(v(e.j,V8),17).a,r=0;r<c&&(i=ZIe(n,e),!(i<t&&(t=i,mxn(n),t==0)));r++);else for(t=et,x(v(e.j,Yh))!==x((lh(),k1))&&U(e.j,(W(),ka),(_n(),!0)),c=u(v(e.j,V8),17).a,r=0;r<c&&(i=YUn(n,e),!(i<t&&(t=i,mxn(n),t==0)));r++);}function FIe(n,e){var t,i,r,c,s,f,h,l;for(s=new Z,f=0,t=0,h=0;f<e.c.length-1&&t<n.gc();){for(i=u(n.Xb(t),17).a+h;(Nn(f+1,e.c.length),u(e.c[f+1],17)).a<i;)++f;for(l=0,c=i-(Nn(f,e.c.length),u(e.c[f],17)).a,r=(Nn(f+1,e.c.length),u(e.c[f+1],17)).a-i,c>r&&++l,nn(s,(Nn(f+l,e.c.length),u(e.c[f+l],17))),h+=(Nn(f+l,e.c.length),u(e.c[f+l],17)).a-i,++t;t<n.gc()&&u(n.Xb(t),17).a+h<=(Nn(f+l,e.c.length),u(e.c[f+l],17)).a;)++t;f+=1+l}return s}function _Ie(n,e){var t,i,r,c,s;for(s=new ie(ce(ji(e).a.Kc(),new En));pe(s);)if(c=u(fe(s),18),n.f.b==0?(r=c.c.i.k==(Vn(),zt)&&!!c.c.i.c&&c.c.i.c.p==n.c,pe(new ie(ce(ji(c.c.i).a.Kc(),new En)))?(t=u(fe(new ie(ce(ji(c.c.i).a.Kc(),new En))),18).c.i.c,i=c.c.i.k==Sc&&!!t&&t.p==n.c):i=!1):(r=c.c.i.k==(Vn(),zt)&&c.c.i.p==n.c,i=c.c.i.k==Sc&&u(fe(new ie(ce(ji(c.c.i).a.Kc(),new En))),18).c.i.p==n.c),r||i)return!0;return!1}function HIe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(g=new Z,P=HT(i),j=e*n.a,d=0,m=0,c=new ni,s=new ni,f=new Z,O=0,A=0,p=0,k=0,l=0,a=0;P.a.gc()!=0;)h=x5e(P,r,s),h&&(P.a.Bc(h)!=null,Fn(f.c,h),c.a.zc(h,c),m=n.f[h.p],O+=n.e[h.p]-m*n.b,d=n.c[h.p],A+=d*n.b,a+=m*n.b,k+=n.e[h.p]),(!h||P.a.gc()==0||O>=j&&n.e[h.p]>m*n.b||A>=t*j)&&(Fn(g.c,f),f=new Z,Ki(s,c),c.a.$b(),l-=a,p=y.Math.max(p,l*n.b+k),l+=A,O=A,A=0,a=0,k=0);return new bi(p,g)}function $R(n){var e,t,i,r,c,s,f;if(!n.d){if(f=new jvn,e=D9,c=e.a.zc(n,e),c==null){for(i=new ne(Hr(n));i.e!=i.i.gc();)t=u(ue(i),29),Kt(f,$R(t));e.a.Bc(n)!=null,e.a.gc()==0}for(s=f.i,r=(!n.q&&(n.q=new q(Ps,n,11,10)),new ne(n.q));r.e!=r.i.gc();++s)u(ue(r),411);Kt(f,(!n.q&&(n.q=new q(Ps,n,11,10)),n.q)),ew(f),n.d=new pg((u(N(H((G1(),Hn).o),9),19),f.i),f.g),n.e=u(f.g,688),n.e==null&&(n.e=Joe),Zu(n).b&=-17}return n.d}function Am(n,e,t,i){var r,c,s,f,h,l;if(l=ru(n.e.Dh(),e),h=0,r=u(n.g,124),dr(),u(e,69).xk()){for(s=0;s<n.i;++s)if(c=r[s],l.am(c.Lk())){if(rt(c,t))return h;++h}}else if(t!=null){for(f=0;f<n.i;++f)if(c=r[f],l.am(c.Lk())){if(rt(t,c.md()))return h;++h}if(i){for(h=0,s=0;s<n.i;++s)if(c=r[s],l.am(c.Lk())){if(x(t)===x(ON(n,u(c.md(),58))))return h;++h}}}else for(s=0;s<n.i;++s)if(c=r[s],l.am(c.Lk())){if(c.md()==null)return h;++h}return-1}function qIe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k;if(t.Xh(e)&&(a=(p=e,p?u(i,54).gi(p):null),a))if(k=t.Nh(e,n.a),m=e.t,m>1||m==-1)if(d=u(k,71),g=u(a,71),d.dc())g.$b();else for(s=!!br(e),c=0,f=n.a?d.Kc():d.Ii();f.Ob();)l=u(f.Pb(),58),r=u(Df(n,l),58),r?(s?(h=g.dd(r),h==-1?g.Gi(c,r):c!=h&&g.Ui(c,r)):g.Gi(c,r),++c):n.b&&!s&&(g.Gi(c,l),++c);else k==null?a.Wb(null):(r=Df(n,k),r==null?n.b&&!br(e)&&a.Wb(k):a.Wb(r))}function UIe(n,e){var t,i,r,c,s,f,h,l;for(t=new ogn,r=new ie(ce(ji(e).a.Kc(),new En));pe(r);)if(i=u(fe(r),18),!fr(i)&&(f=i.c.i,QZ(f,TI))){if(l=gen(n,f,TI,MI),l==-1)continue;t.b=y.Math.max(t.b,l),!t.a&&(t.a=new Z),nn(t.a,f)}for(s=new ie(ce(Qt(e).a.Kc(),new En));pe(s);)if(c=u(fe(s),18),!fr(c)&&(h=c.d.i,QZ(h,MI))){if(l=gen(n,h,MI,TI),l==-1)continue;t.d=y.Math.max(t.d,l),!t.c&&(t.c=new Z),nn(t.c,h)}return t}function GIe(n,e,t,i){var r,c,s,f,h,l,a;if(t.d.i!=e.i){for(r=new Cl(n),Ha(r,(Vn(),Ti)),U(r,(W(),st),t),U(r,(cn(),Ft),(Ai(),qc)),Fn(i.c,r),s=new Ic,ic(s,r),gi(s,(en(),Wn)),f=new Ic,ic(f,r),gi(f,Zn),a=t.d,Oi(t,s),c=new Eb,Ur(c,t),U(c,Rr,null),Zi(c,f),Oi(c,a),l=new xi(t.b,0);l.b<l.d.gc();)h=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),72)),x(v(h,Sh))===x(($f(),Jw))&&(U(h,T3,t),bo(l),nn(c.b,h));CHn(r,s,f)}}function zIe(n,e,t,i){var r,c,s,f,h,l,a;if(t.c.i!=e.i)for(r=new Cl(n),Ha(r,(Vn(),Ti)),U(r,(W(),st),t),U(r,(cn(),Ft),(Ai(),qc)),Fn(i.c,r),s=new Ic,ic(s,r),gi(s,(en(),Wn)),f=new Ic,ic(f,r),gi(f,Zn),Oi(t,s),c=new Eb,Ur(c,t),U(c,Rr,null),Zi(c,f),Oi(c,e),CHn(r,s,f),l=new xi(t.b,0);l.b<l.d.gc();)h=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),72)),a=u(v(h,Sh),278),a==($f(),Jw)&&(kt(h,T3)||U(h,T3,t),bo(l),nn(c.b,h))}function VUn(n){Sm();var e,t,i,r;if(e=wi(n),n<I8.length)return I8[e];if(n<=50)return ry((dh(),QF),e);if(n<=d1)return Rp(ry(m3[1],e),e);if(n>1e6)throw T(new _E("power of ten too big"));if(n<=et)return Rp(ry(m3[1],e),e);for(i=ry(m3[1],et),r=i,t=vc(n-et),e=wi(n%et);Ec(t,et)>0;)r=Og(r,i),t=bs(t,et);for(r=Og(r,ry(m3[1],e)),r=Rp(r,et),t=vc(n-et);Ec(t,et)>0;)r=Rp(r,et),t=bs(t,et);return r=Rp(r,e),r}function WUn(n){var e,t,i,r,c,s,f,h,l,a;for(h=new M(n.a);h.a<h.c.c.length;)if(f=u(E(h),10),f.k==(Vn(),Zt)&&(r=u(v(f,(W(),gc)),64),r==(en(),Zn)||r==Wn))for(i=new ie(ce(Ml(f).a.Kc(),new En));pe(i);)t=u(fe(i),18),e=t.a,e.b!=0&&(l=t.c,l.i==f&&(c=(oe(e.b!=0),u(e.a.a.c,8)),c.b=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])).b),a=t.d,a.i==f&&(s=(oe(e.b!=0),u(e.c.b.c,8)),s.b=cc(S(C(Ei,1),J,8,0,[a.i.n,a.n,a.a])).b))}function q5(n,e,t,i){var r,c,s;if(this.j=new Z,this.k=new Z,this.b=new Z,this.c=new Z,this.e=new mp,this.i=new Tu,this.f=new rL,this.d=new Z,this.g=new Z,nn(this.b,n),nn(this.b,e),this.e.c=y.Math.min(n.a,e.a),this.e.d=y.Math.min(n.b,e.b),this.e.b=y.Math.abs(n.a-e.a),this.e.a=y.Math.abs(n.b-e.b),r=u(v(i,(cn(),Rr)),75),r)for(s=ge(r,0);s.b!=s.d.c;)c=u(be(s),8),lQ(c.a,n.a)&&Re(this.i,c);t&&nn(this.j,t),nn(this.k,i)}function XIe(n,e,t,i){var r,c,s,f,h,l,a;for(f=-1,a=new M(n);a.a<a.c.c.length;)l=u(E(a),118),l.g=f--,r=Se(KT(ET(ut(new Cn(null,new On(l.f,16)),new P3n),new I3n)).d),c=Se(KT(ET(ut(new Cn(null,new On(l.k,16)),new O3n),new A3n)).d),s=r,h=c,i||(s=Se(KT(ET(new Cn(null,new On(l.f,16)),new L3n)).d),h=Se(KT(ET(new Cn(null,new On(l.k,16)),new C3n)).d)),l.d=s,l.a=r,l.i=h,l.b=c,h==0?xt(t,l,t.c.b,t.c):s==0&&xt(e,l,e.c.b,e.c)}function t3(n,e){var t,i,r,c,s,f;if(n.k==(Vn(),Sc)&&(t=n.k==Sc&&!s4(ut(u(v(n,(W(),F8)),15).Oc(),new Z3(new qU))).Bd((Va(),v3))?(Co(),Zj):e,U(n,(W(),S3),t),t!=(Co(),Sa)))for(i=u(v(n,st),18),f=$(B(v(i,(cn(),m1)))),s=0,t==nl?s=n.o.b-y.Math.ceil(f/2):t==Zj&&(s=y.Math.ceil(n.o.b-$(B(v(Hi(n),C2)))-f)/2,n.o.b-=$(B(v(Hi(n),C2))),n.o.b-=f),c=new M(n.j);c.a<c.c.c.length;)r=u(E(c),12),r.n.b=s}function JUn(n,e,t){var i,r,c,s,f,h,l,a,d;for(r=!0,s=new M(n.b);s.a<s.c.c.length;){for(c=u(E(s),30),l=li,a=null,h=new M(c.a);h.a<h.c.c.length;)if(f=u(E(h),10),d=$(e.p[f.p])+$(e.d[f.p])-f.d.d,i=$(e.p[f.p])+$(e.d[f.p])+f.o.b+f.d.a,d>l&&i>l)a=f,l=$(e.p[f.p])+$(e.d[f.p])+f.o.b+f.d.a;else{r=!1,t._g()&&t.bh("bk node placement breaks on "+f+" which should have been after "+a);break}if(!r)break}return t._g()&&t.bh(e+" is feasible: "+r),r}function Hen(n,e,t,i){var r,c,s,f,h,l,a,d,g;if(c=new Cl(n),Ha(c,(Vn(),_c)),U(c,(cn(),Ft),(Ai(),qc)),r=0,e){for(s=new Ic,U(s,(W(),st),e),U(c,st,e.i),gi(s,(en(),Wn)),ic(s,c),g=hh(e.e),l=g,a=0,d=l.length;a<d;++a)h=l[a],Oi(h,s);U(e,Xu,c),++r}if(t){for(f=new Ic,U(c,(W(),st),t.i),U(f,st,t),gi(f,(en(),Zn)),ic(f,c),g=hh(t.g),l=g,a=0,d=l.length;a<d;++a)h=l[a],Zi(h,f);U(t,Xu,c),++r}return U(c,(W(),iO),Y(r)),Fn(i.c,c),c}function VIe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(t=(l=new ol(n.c.b).a.vc().Kc(),new P0(l));t.a.Ob();)e=(f=u(t.a.Pb(),44),u(f.md(),143)),r=e.a,r==null&&(r=""),i=kae(n.c,r),!i&&r.length==0&&(i=s5e(n)),i&&!iw(i.c,e,!1)&&Re(i.c,e);for(s=ge(n.a,0);s.b!=s.d.c;)c=u(be(s),487),a=WD(n.c,c.a),p=WD(n.c,c.b),a&&p&&Re(a.c,new bi(p,c.c));for(vo(n.a),g=ge(n.b,0);g.b!=g.d.c;)d=u(be(g),487),e=vae(n.c,d.a),h=WD(n.c,d.b),e&&h&&Yhe(e,h,d.c);vo(n.b)}function WIe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;c=new U9(n),s=new sFn,r=(nk(s.g),nk(s.j),Hu(s.b),nk(s.d),nk(s.i),Hu(s.k),Hu(s.c),Hu(s.e),p=q_n(s,c,null),KHn(s,c),p),e&&(l=new U9(e),f=rOe(l),hnn(r,S(C(can,1),Kn,536,0,[f]))),g=!1,d=!1,t&&(l=new U9(t),HP in l.a&&(g=dl(l,HP).qe().a),CWn in l.a&&(d=dl(l,CWn).qe().a)),a=eEn(U$n(new op,g),d),Lje(new vmn,r,a),HP in c.a&&bf(c,HP,null),(g||d)&&(h=new sp,AUn(a,h,g,d),bf(c,HP,h)),i=new nyn(s),g6e(new CX(r),i)}function JIe(n,e,t){var i,r,c,s,f,h,l,a,d;for(s=new dFn,l=S(C(ye,1),_e,28,15,[0]),r=-1,c=0,i=0,h=0;h<n.b.c.length;++h)if(a=u(sn(n.b,h),443),a.b>0){if(r<0&&a.a&&(r=h,c=l[0],i=0),r>=0){if(f=a.b,h==r&&(f-=i++,f==0))return 0;if(!ZGn(e,l,a,f,s)){h=r-1,l[0]=c;continue}}else if(r=-1,!ZGn(e,l,a,0,s))return 0}else{if(r=-1,Xi(a.c,0)==32){if(d=l[0],n$n(e,l),l[0]>d)continue}else if(Nge(e,a.c,l[0])){l[0]+=a.c.length;continue}return 0}return $Le(s,t)?l[0]:0}function QIe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(a=new dT(new K9n(t)),f=F(so,Xh,28,n.f.e.c.length,16,1),TW(f,f.length),t[e.a]=0,l=new M(n.f.e);l.a<l.c.c.length;)h=u(E(l),153),h.a!=e.a&&(t[h.a]=et),Tp(ym(a,h),_m);for(;a.b.c.length!=0;)for(d=u(w$(a),153),f[d.a]=!0,c=WCn(new SL(n.b,d),0);c.c;)r=u(oQ(c),290),g=f7e(r,d),!f[g.a]&&(kt(r,(Uk(),EI))?s=$(B(v(r,EI))):s=n.c,i=t[d.a]+s,i<t[g.a]&&(t[g.a]=i,lxn(a,g),Tp(ym(a,g),_m)))}function YIe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m;for(s=n.o,i=F(ye,_e,28,s,15,1),r=F(ye,_e,28,s,15,1),t=n.p,e=F(ye,_e,28,t,15,1),c=F(ye,_e,28,t,15,1),l=0;l<s;l++){for(d=0;d<t&&!Fg(n,l,d);)++d;i[l]=d}for(a=0;a<s;a++){for(d=t-1;d>=0&&!Fg(n,a,d);)--d;r[a]=d}for(p=0;p<t;p++){for(f=0;f<s&&!Fg(n,f,p);)++f;e[p]=f}for(m=0;m<t;m++){for(f=s-1;f>=0&&!Fg(n,f,m);)--f;c[m]=f}for(h=0;h<s;h++)for(g=0;g<t;g++)h<c[g]&&h>e[g]&&g<r[h]&&g>i[h]&&xS(n,h,g,!1,!0)}function qen(n){var e,t,i,r,c,s,f,h;t=on(un(v(n,(Us(),XYn)))),c=n.a.c.d,f=n.a.d.d,t?(s=ch(mi(new V(f.a,f.b),c),.5),h=ch(Fi(n.e),.5),e=mi(tt(new V(c.a,c.b),s),h),YX(n.d,e)):(r=$(B(v(n.a,tZn))),i=n.d,c.a>=f.a?c.b>=f.b?(i.a=f.a+(c.a-f.a)/2+r,i.b=f.b+(c.b-f.b)/2-r-n.e.b):(i.a=f.a+(c.a-f.a)/2+r,i.b=c.b+(f.b-c.b)/2+r):c.b>=f.b?(i.a=c.a+(f.a-c.a)/2+r,i.b=f.b+(c.b-f.b)/2+r):(i.a=c.a+(f.a-c.a)/2+r,i.b=c.b+(f.b-c.b)/2-r-n.e.b))}function U5(n){var e,t,i,r,c,s,f,h;if(!n.f){if(h=new tG,f=new tG,e=D9,s=e.a.zc(n,e),s==null){for(c=new ne(Hr(n));c.e!=c.i.gc();)r=u(ue(c),29),Kt(h,U5(r));e.a.Bc(n)!=null,e.a.gc()==0}for(i=(!n.s&&(n.s=new q(ku,n,21,17)),new ne(n.s));i.e!=i.i.gc();)t=u(ue(i),179),L(t,102)&&ve(f,u(t,19));ew(f),n.r=new _Pn(n,(u(N(H((G1(),Hn).o),6),19),f.i),f.g),Kt(h,n.r),ew(h),n.f=new pg((u(N(H(Hn.o),5),19),h.i),h.g),Zu(n).b&=-3}return n.f}function QUn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,jd),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new K0n))),Q(n,jd,WK,rn(aon)),Q(n,jd,JK,rn(w_)),Q(n,jd,l3,rn(LYn)),Q(n,jd,Wb,rn(lon)),Q(n,jd,Atn,rn(xYn)),Q(n,jd,Ltn,rn($Yn)),Q(n,jd,Otn,rn(RYn)),Q(n,jd,Ntn,rn(DYn)),Q(n,jd,Ftn,rn(NYn)),Q(n,jd,_tn,rn(b_)),Q(n,jd,Htn,rn(hon)),Q(n,jd,qtn,rn(pI))}function FS(){FS=R,Ldn=S(C(fs,1),gh,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),Coe=new RegExp(`[
\r\f]+`);try{A9=S(C(NDe,1),Kn,2114,0,[new X9((vX(),zC("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",O7((FE(),FE(),C8))))),new X9(zC("yyyy-MM-dd'T'HH:mm:ss'.'SSS",O7(C8))),new X9(zC("yyyy-MM-dd'T'HH:mm:ss",O7(C8))),new X9(zC("yyyy-MM-dd'T'HH:mm",O7(C8))),new X9(zC("yyyy-MM-dd",O7(C8)))])}catch(n){if(n=Ot(n),!L(n,82))throw T(n)}}function ZIe(n,e){var t,i,r,c;if(r=to(n.d,1)!=0,i=Een(n,e),i==0&&on(un(v(e.j,(W(),ka)))))return 0;!on(un(v(e.j,(W(),ka))))&&!on(un(v(e.j,j2)))||x(v(e.j,(cn(),Yh)))===x((lh(),k1))?e.c.mg(e.e,r):r=on(un(v(e.j,ka))),sy(n,e,r,!0),on(un(v(e.j,j2)))&&U(e.j,j2,(_n(),!1)),on(un(v(e.j,ka)))&&(U(e.j,ka,(_n(),!1)),U(e.j,j2,!0)),t=Een(n,e);do{if(DQ(n),t==0)return 0;r=!r,c=t,sy(n,e,r,!1),t=Een(n,e)}while(c>t);return c}function YUn(n,e){var t,i,r,c;if(r=to(n.d,1)!=0,i=kS(n,e),i==0&&on(un(v(e.j,(W(),ka)))))return 0;!on(un(v(e.j,(W(),ka))))&&!on(un(v(e.j,j2)))||x(v(e.j,(cn(),Yh)))===x((lh(),k1))?e.c.mg(e.e,r):r=on(un(v(e.j,ka))),sy(n,e,r,!0),on(un(v(e.j,j2)))&&U(e.j,j2,(_n(),!1)),on(un(v(e.j,ka)))&&(U(e.j,ka,(_n(),!1)),U(e.j,j2,!0)),t=kS(n,e);do{if(DQ(n),t==0)return 0;r=!r,c=t,sy(n,e,r,!1),t=kS(n,e)}while(c>t);return c}function Uen(n,e,t,i){var r,c,s,f,h,l,a,d,g;return h=mi(new V(t.a,t.b),n),l=h.a*e.b-h.b*e.a,a=e.a*i.b-e.b*i.a,d=(h.a*i.b-h.b*i.a)/a,g=l/a,a==0?l==0?(r=tt(new V(t.a,t.b),ch(new V(i.a,i.b),.5)),c=J1(n,r),s=J1(tt(new V(n.a,n.b),e),r),f=y.Math.sqrt(i.a*i.a+i.b*i.b)*.5,c<s&&c<=f?new V(n.a,n.b):s<=f?tt(new V(n.a,n.b),e):null):null:d>=0&&d<=1&&g>=0&&g<=1?tt(new V(n.a,n.b),ch(new V(e.a,e.b),d)):null}function nOe(n,e,t){var i,r,c,s,f;if(i=u(v(n,(cn(),vH)),21),t.a>e.a&&(i.Hc((wd(),w9))?n.c.a+=(t.a-e.a)/2:i.Hc(g9)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((wd(),m9))?n.c.b+=(t.b-e.b)/2:i.Hc(p9)&&(n.c.b+=t.b-e.b)),u(v(n,(W(),Hc)),21).Hc((pr(),cs))&&(t.a>e.a||t.b>e.b))for(f=new M(n.a);f.a<f.c.c.length;)s=u(E(f),10),s.k==(Vn(),Zt)&&(r=u(v(s,gc),64),r==(en(),Zn)?s.n.a+=t.a-e.a:r==ae&&(s.n.b+=t.b-e.b));c=n.d,n.f.a=t.a-c.b-c.c,n.f.b=t.b-c.d-c.a}function eOe(n,e,t){var i,r,c,s,f;if(i=u(v(n,(cn(),vH)),21),t.a>e.a&&(i.Hc((wd(),w9))?n.c.a+=(t.a-e.a)/2:i.Hc(g9)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((wd(),m9))?n.c.b+=(t.b-e.b)/2:i.Hc(p9)&&(n.c.b+=t.b-e.b)),u(v(n,(W(),Hc)),21).Hc((pr(),cs))&&(t.a>e.a||t.b>e.b))for(s=new M(n.a);s.a<s.c.c.length;)c=u(E(s),10),c.k==(Vn(),Zt)&&(r=u(v(c,gc),64),r==(en(),Zn)?c.n.a+=t.a-e.a:r==ae&&(c.n.b+=t.b-e.b));f=n.d,n.f.a=t.a-f.b-f.c,n.f.b=t.b-f.d-f.a}function tOe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(e=aHn(n),a=(f=new qa(e).a.vc().Kc(),new IE(f));a.a.Ob();){for(l=(r=u(a.a.Pb(),44),u(r.ld(),10)),d=0,g=0,d=l.d.d,g=l.o.b+l.d.a,n.d[l.p]=0,t=l;(c=n.a[t.p])!=l;)i=Q8e(t,c),h=0,n.c==(fh(),y1)?h=i.d.n.b+i.d.a.b-i.c.n.b-i.c.a.b:h=i.c.n.b+i.c.a.b-i.d.n.b-i.d.a.b,s=$(n.d[t.p])+h,n.d[c.p]=s,d=y.Math.max(d,c.d.d-s),g=y.Math.max(g,s+c.o.b+c.d.a),t=c;t=l;do n.d[t.p]=$(n.d[t.p])+d,t=n.a[t.p];while(t!=l);n.b[l.p]=d+g}}function G5(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(c=0,s=n.t,r=0,i=0,h=0,g=0,d=0,t&&(n.n.c.length=0,nn(n.n,new DT(n.s,n.t,n.i))),f=0,a=new M(n.b);a.a<a.c.c.length;)l=u(E(a),27),c+l.g+(f>0?n.i:0)>e&&h>0&&(c=0,s+=h+n.i,r=y.Math.max(r,g),i+=h+n.i,h=0,g=0,t&&(++d,nn(n.n,new DT(n.s,s,n.i))),f=0),g+=l.g+(f>0?n.i:0),h=y.Math.max(h,l.f),t&&wZ(u(sn(n.n,d),209),l),c+=l.g+(f>0?n.i:0),++f;return r=y.Math.max(r,g),i+=h,t&&(n.r=r,n.d=i,vZ(n.j)),new Ho(n.s,n.t,r,i)}function xR(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(n.b=!1,d=Pt,h=li,g=Pt,l=li,i=n.e.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),272),r=t.a,d=y.Math.min(d,r.c),h=y.Math.max(h,r.c+r.b),g=y.Math.min(g,r.d),l=y.Math.max(l,r.d+r.a),s=new M(t.c);s.a<s.c.c.length;)c=u(E(s),407),e=c.a,e.a?(a=r.d+c.b.b,f=a+c.c,g=y.Math.min(g,a),l=y.Math.max(l,f)):(a=r.c+c.b.a,f=a+c.c,d=y.Math.min(d,a),h=y.Math.max(h,f));n.a=new V(h-d,l-g),n.c=new V(d+n.d.a,g+n.d.b)}function Jg(n){var e,t,i,r,c,s,f,h;if(!n.a){if(n.o=null,h=new vyn(n),e=new yvn,t=D9,f=t.a.zc(n,t),f==null){for(s=new ne(Hr(n));s.e!=s.i.gc();)c=u(ue(s),29),Kt(h,Jg(c));t.a.Bc(n)!=null,t.a.gc()==0}for(r=(!n.s&&(n.s=new q(ku,n,21,17)),new ne(n.s));r.e!=r.i.gc();)i=u(ue(r),179),L(i,331)&&ve(e,u(i,35));ew(e),n.k=new HPn(n,(u(N(H((G1(),Hn).o),7),19),e.i),e.g),Kt(h,n.k),ew(h),n.a=new pg((u(N(H(Hn.o),4),19),h.i),h.g),Zu(n).b&=-2}return n.a}function Gen(n,e,t,i){var r,c,s,f,h,l,a;if(a=ru(n.e.Dh(),e),r=0,c=u(n.g,124),h=null,dr(),u(e,69).xk()){for(f=0;f<n.i;++f)if(s=c[f],a.am(s.Lk())){if(rt(s,t)){h=s;break}++r}}else if(t!=null){for(f=0;f<n.i;++f)if(s=c[f],a.am(s.Lk())){if(rt(t,s.md())){h=s;break}++r}}else for(f=0;f<n.i;++f)if(s=c[f],a.am(s.Lk())){if(s.md()==null){h=s;break}++r}return h&&(fo(n.e)&&(l=e.Jk()?new GD(n.e,4,e,t,null,r,!0):V1(n,e.tk()?2:1,e,t,e.ik(),-1,!0),i?i.nj(l):i=l),i=ly(n,h,i)),i}function RR(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m,k;switch(m=0,k=0,h=r.c,f=r.b,a=t.f,p=t.g,e.g){case 0:m=i.i+i.g+s,n.c?k=yye(m,c,i,s):k=i.j,g=y.Math.max(h,m+p),l=y.Math.max(f,k+a);break;case 1:k=i.j+i.f+s,n.c?m=kye(k,c,i,s):m=i.i,g=y.Math.max(h,m+p),l=y.Math.max(f,k+a);break;case 2:m=h+s,k=0,g=h+s+p,l=y.Math.max(f,a);break;case 3:m=0,k=f+s,g=y.Math.max(h,p),l=f+s+a;break;default:throw T(new Gn("IllegalPlacementOption."))}return d=new tZ(n.a,g,l,e,m,k),d}function iOe(n){var e,t,i,r,c,s,f,h,l,a,d,g;if(f=n.d,d=u(v(n,(W(),I3)),15),e=u(v(n,M3),15),!(!d&&!e)){if(c=$(B(rw(n,(cn(),PH)))),s=$(B(rw(n,phn))),g=0,d){for(l=0,r=d.Kc();r.Ob();)i=u(r.Pb(),10),l=y.Math.max(l,i.o.b),g+=i.o.a;g+=c*(d.gc()-1),f.d+=l+s}if(t=0,e){for(l=0,r=e.Kc();r.Ob();)i=u(r.Pb(),10),l=y.Math.max(l,i.o.b),t+=i.o.a;t+=c*(e.gc()-1),f.a+=l+s}h=y.Math.max(g,t),h>n.o.a&&(a=(h-n.o.a)/2,f.b=y.Math.max(f.b,a),f.c=y.Math.max(f.c,a))}}function rOe(n){var e,t,i,r,c,s,f,h;for(c=new XAn,$le(c,(qp(),due)),i=(r=P$(n,F(fn,J,2,0,6,1)),new zv(new Fu(new PL(n,r).b)));i.b<i.d.gc();)t=(oe(i.b<i.d.gc()),Ae(i.d.Xb(i.c=i.b++))),s=Yen(La,t),s&&(e=dl(n,t),e.te()?f=e.te().a:e.qe()?f=""+e.qe().a:e.re()?f=""+e.re().a:f=e.Ib(),h=Jen(s,f),h!=null&&((Su(s.j,(pf(),pi))||Su(s.j,xn))&&Sk(g$(c,Ye),s,h),Su(s.j,Ih)&&Sk(g$(c,Vt),s,h),Su(s.j,Fd)&&Sk(g$(c,Qu),s,h),Su(s.j,E1)&&Sk(g$(c,Sr),s,h)));return c}function wy(n,e,t){var i,r,c,s,f,h,l,a;if(r=u(n.g,124),Pl(n.e,e))return dr(),u(e,69).xk()?new eT(e,n):new k7(e,n);for(l=ru(n.e.Dh(),e),i=0,f=0;f<n.i;++f){if(c=r[f],s=c.Lk(),l.am(s)){if(dr(),u(e,69).xk())return c;if(s==(n3(),_3)||s==F3){for(h=new mo(Jr(c.md()));++f<n.i;)c=r[f],s=c.Lk(),(s==_3||s==F3)&&Be(h,Jr(c.md()));return TV(u(e.Hk(),156),h.a)}else return a=c.md(),a!=null&&t&&L(e,102)&&u(e,19).Bb&hr&&(a=N5(n,e,f,i,a)),a}++i}return e.ik()}function _S(n,e,t,i){var r,c,s,f,h,l;if(h=ru(n.e.Dh(),e),c=u(n.g,124),Pl(n.e,e)){for(r=0,f=0;f<n.i;++f)if(s=c[f],h.am(s.Lk())){if(r==t)return dr(),u(e,69).xk()?s:(l=s.md(),l!=null&&i&&L(e,102)&&u(e,19).Bb&hr&&(l=N5(n,e,f,r,l)),l);++r}throw T(new Or(p8+t+Cd+r))}else{for(r=0,f=0;f<n.i;++f){if(s=c[f],h.am(s.Lk()))return dr(),u(e,69).xk()?s:(l=s.md(),l!=null&&i&&L(e,102)&&u(e,19).Bb&hr&&(l=N5(n,e,f,r,l)),l);++r}return e.ik()}}function KR(){KR=R,yQn=S(C(ye,1),_e,28,15,[Wi,1162261467,W5,1220703125,362797056,1977326743,W5,387420489,QS,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,W5,1291467969,1544804416,1838265625,60466176]),jQn=S(C(ye,1),_e,28,15,[-1,-1,31,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5])}function BR(n,e){var t,i,r,c,s,f,h,l,a,d;if(s=n.e,h=e.e,h==0)return n;if(s==0)return e.e==0?e:new Ya(-e.e,e.d,e.a);if(c=n.d,f=e.d,c+f==2)return t=vi(n.a[0],mr),i=vi(e.a[0],mr),s<0&&(t=n1(t)),h<0&&(i=n1(i)),dh(),SM(bs(t,i),0)?ia(bs(t,i)):U6(ia(n1(bs(t,i))));if(r=c!=f?c>f?1:-1:fY(n.a,e.a,c),r==-1)d=-h,a=s==h?ZD(e.a,f,n.a,c):e$(e.a,f,n.a,c);else if(d=s,s==h){if(r==0)return dh(),P8;a=ZD(n.a,c,e.a,f)}else a=e$(n.a,c,e.a,f);return l=new Ya(d,a.length,a),J6(l),l}function cOe(n,e){var t,i,r,c;if(c=$Un(e),!e.c&&(e.c=new q(Qu,e,9,9)),qt(new Cn(null,(!e.c&&(e.c=new q(Qu,e,9,9)),new On(e.c,16))),new H9n(c)),r=u(v(c,(W(),Hc)),21),QAe(e,r),r.Hc((pr(),cs)))for(i=new ne((!e.c&&(e.c=new q(Qu,e,9,9)),e.c));i.e!=i.i.gc();)t=u(ue(i),123),CLe(n,e,c,t);return u(z(e,(cn(),xd)),181).gc()!=0&&Sqn(e,c),on(un(v(c,ahn)))&&r.Fc(eO),kt(c,Tj)&&xjn(new zY($(B(v(c,Tj)))),c),x(z(e,Kw))===x((jl(),T1))?JNe(n,e,c):DNe(n,e,c),c}function uOe(n){var e,t,i,r,c,s,f,h;for(r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=new M(Cb(i.a));s.a<s.c.c.length;)if(c=u(E(s),10),c$n(c)&&(t=u(v(c,(W(),o0)),313),!t.g&&t.d))for(e=t,h=t.d;h;)Kqn(h.i,h.k,!1,!0),fk(e.a),fk(h.i),fk(h.k),fk(h.b),Oi(h.c,e.c.d),Oi(e.c,null),$i(e.a,null),$i(h.i,null),$i(h.k,null),$i(h.b,null),f=new jJ(e.i,h.a,e.e,h.j,h.f),f.k=e.k,f.n=e.n,f.b=e.b,f.c=h.c,f.g=e.g,f.d=h.d,U(e.i,o0,f),U(h.a,o0,f),h=h.d,e=f}function Rc(n,e){var t,i,r,c,s,f,h;if(n==null)return null;if(c=n.length,c==0)return"";for(h=F(fs,gh,28,c,15,1),Ri(0,c,n.length),Ri(0,c,h.length),qIn(n,0,c,h,0),t=null,f=e,r=0,s=0;r<c;r++)i=h[r],Tzn(),i<=32&&I[i]&2?f?(!t&&(t=new ls(n)),G1e(t,r-s++)):(f=e,i!=32&&(!t&&(t=new ls(n)),N$(t,r-s,r-s+1," "))):f=!1;return f?t?(c=t.a.length,c>0?qo(t.a,0,c-1):""):(Ri(0,c-1,n.length),n.substr(0,c-1)):t?t.a:n}function oOe(n,e){var t,i,r,c,s,f,h;for(e.Ug("Sort By Input Model "+v(n,(cn(),Yh)),1),r=0,i=new M(n.b);i.a<i.c.c.length;){for(t=u(E(i),30),h=r==0?0:r-1,f=u(sn(n.b,h),30),s=new M(t.a);s.a<s.c.c.length;)c=u(E(s),10),x(v(c,Ft))!==x((Ai(),Ud))&&x(v(c,Ft))!==x(qc)&&(Ln(),Yt(c.j,new URn(f,u(v(n,Yh),284),rFn(c),on(un(v(n,mH))))),e.bh("Node "+c+" ports: "+c.j));Ln(),Yt(t.a,new wxn(f,u(v(n,Yh),284),u(v(n,_fn),390))),e.bh("Layer "+r+": "+t),++r}e.Vg()}function gw(n,e){var t,i,r,c,s;if(s=u(e,138),Gg(n),Gg(s),s.b!=null){if(n.c=!0,n.b==null){n.b=F(ye,_e,28,s.b.length,15,1),Oc(s.b,0,n.b,0,s.b.length);return}for(c=F(ye,_e,28,n.b.length+s.b.length,15,1),t=0,i=0,r=0;t<n.b.length||i<s.b.length;)t>=n.b.length?(c[r++]=s.b[i++],c[r++]=s.b[i++]):i>=s.b.length?(c[r++]=n.b[t++],c[r++]=n.b[t++]):s.b[i]<n.b[t]||s.b[i]===n.b[t]&&s.b[i+1]<n.b[t+1]?(c[r++]=s.b[i++],c[r++]=s.b[i++]):(c[r++]=n.b[t++],c[r++]=n.b[t++]);n.b=c}}function sOe(n,e){var t,i,r,c,s,f,h,l,a,d;return t=on(un(v(n,(W(),$w)))),f=on(un(v(e,$w))),i=u(v(n,yf),12),h=u(v(e,yf),12),r=u(v(n,Es),12),l=u(v(e,Es),12),a=!!i&&i==h,d=!!r&&r==l,!t&&!f?new DV(u(E(new M(n.j)),12).p==u(E(new M(e.j)),12).p,a,d):(c=(!on(un(v(n,$w)))||on(un(v(n,jj))))&&(!on(un(v(e,$w)))||on(un(v(e,jj)))),s=(!on(un(v(n,$w)))||!on(un(v(n,jj))))&&(!on(un(v(e,$w)))||!on(un(v(e,jj)))),new DV(a&&c||d&&s,a,d))}function ZUn(n){var e,t,i,r,c,s,f,h;for(i=0,t=0,h=new Mt,e=0,f=new M(n.n);f.a<f.c.c.length;)s=u(E(f),209),s.c.c.length==0?xt(h,s,h.c.b,h.c):(i=y.Math.max(i,s.d),t+=s.a+(e>0?n.i:0)),++e;for(IY(n.n,h),n.d=t,n.r=i,n.g=0,n.f=0,n.e=0,n.o=Pt,n.p=Pt,c=new M(n.b);c.a<c.c.c.length;)r=u(E(c),27),n.p=y.Math.min(n.p,r.g),n.g=y.Math.max(n.g,r.g),n.f=y.Math.max(n.f,r.f),n.o=y.Math.min(n.o,r.f),n.e+=r.f+n.i;n.a=n.e/n.b.c.length-n.i*((n.b.c.length-1)/n.b.c.length),vZ(n.j)}function nGn(n){var e,t,i,r;return n.Db&64?ox(n):(e=new mo(ycn),i=n.k,i?Be(Be((e.a+=' "',e),i),'"'):(!n.n&&(n.n=new q(Sr,n,1,7)),n.n.i>0&&(r=(!n.n&&(n.n=new q(Sr,n,1,7)),u(N(n.n,0),135)).a,!r||Be(Be((e.a+=' "',e),r),'"'))),t=(!n.b&&(n.b=new Dn(he,n,4,7)),!(n.b.i<=1&&(!n.c&&(n.c=new Dn(he,n,5,8)),n.c.i<=1))),t?e.a+=" [":e.a+=" ",Be(e,KX(new yL,new ne(n.b))),t&&(e.a+="]"),e.a+=iB,t&&(e.a+="["),Be(e,KX(new yL,new ne(n.c))),t&&(e.a+="]"),e.a)}function fOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(_=n.c,X=e.c,t=qr(_.a,n,0),i=qr(X.a,e,0),A=u(Rb(n,(gr(),Vu)).Kc().Pb(),12),kn=u(Rb(n,Jc).Kc().Pb(),12),D=u(Rb(e,Vu).Kc().Pb(),12),Rn=u(Rb(e,Jc).Kc().Pb(),12),P=hh(A.e),tn=hh(kn.g),O=hh(D.e),yn=hh(Rn.g),uw(n,i,X),s=O,a=0,m=s.length;a<m;++a)r=s[a],Oi(r,A);for(f=yn,d=0,k=f.length;d<k;++d)r=f[d],Zi(r,kn);for(uw(e,t,_),h=P,g=0,j=h.length;g<j;++g)r=h[g],Oi(r,D);for(c=tn,l=0,p=c.length;l<p;++l)r=c[l],Zi(r,Rn)}function hOe(n){var e,t,i,r,c,s,f;for(s=u(z(n,(Cg(),L2)),27),i=new ne((!s.e&&(s.e=new Dn(Vt,s,7,4)),s.e));i.e!=i.i.gc();)t=u(ue(i),74),f=new V(u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166).j,u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166).k),c=new V(u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166).b,u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166).c),r=new V(c.a-f.a,c.b-f.b),e=y.Math.atan2(r.b,r.a),u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84).qf((oa(),yq),e)}function lOe(n,e){var t,i,r,c,s,f,h,l,a;for(e.Ug("Interactive Node Reorderer",1),a=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),f=new Z,r=new ne(a);r.e!=r.i.gc();)t=u(ue(r),27),Nf(t,(Bf(),Bj))&&Fn(f.c,t);for(c=new M(f);c.a<c.c.c.length;)t=u(E(c),27),rC(a,t);for(Ln(),Yt(f,new emn),s=new M(f);s.a<s.c.c.length;)t=u(E(s),27),l=u(z(t,(Bf(),Bj)),17).a,l=y.Math.min(l,a.i),v5(a,l,t);for(h=0,i=new ne(a);i.e!=i.i.gc();)t=u(ue(i),27),ht(t,(Bf(),g1n),Y(h)),++h;e.Vg()}function zen(n,e,t){var i,r,c,s,f,h,l,a;return y.Math.abs(e.s-e.c)<vh||y.Math.abs(t.s-t.c)<vh?0:(i=oqn(n,e.j,t.e),r=oqn(n,t.j,e.e),c=i==-1||r==-1,s=0,c?(i==-1&&(new ed((af(),Ea),t,e,1),++s),r==-1&&(new ed((af(),Ea),e,t,1),++s)):(f=Rg(e.j,t.s,t.c),f+=Rg(t.e,e.s,e.c),h=Rg(t.j,e.s,e.c),h+=Rg(e.e,t.s,t.c),l=i+16*f,a=r+16*h,l<a?new ed((af(),zw),e,t,a-l):l>a?new ed((af(),zw),t,e,l-a):l>0&&a>0&&(new ed((af(),zw),e,t,0),new ed(zw,t,e,0))),s)}function aOe(n,e,t){var i,r,c;for(n.a=new Z,c=ge(e.b,0);c.b!=c.d.c;){for(r=u(be(c),40);u(v(r,(lc(),Ph)),17).a>n.a.c.length-1;)nn(n.a,new bi(i2,Crn));i=u(v(r,Ph),17).a,t==(ci(),Kr)||t==Xr?(r.e.a<$(B(u(sn(n.a,i),42).a))&&QA(u(sn(n.a,i),42),r.e.a),r.e.a+r.f.a>$(B(u(sn(n.a,i),42).b))&&YA(u(sn(n.a,i),42),r.e.a+r.f.a)):(r.e.b<$(B(u(sn(n.a,i),42).a))&&QA(u(sn(n.a,i),42),r.e.b),r.e.b+r.f.b>$(B(u(sn(n.a,i),42).b))&&YA(u(sn(n.a,i),42),r.e.b+r.f.b))}}function eGn(n,e,t,i){var r,c,s,f,h,l,a;if(c=FC(i),f=on(un(v(i,(cn(),uhn)))),(f||on(un(v(n,wO))))&&!mg(u(v(n,Ft),101)))r=zp(c),h=Nen(n,t,t==(gr(),Jc)?r:xk(r));else switch(h=new Ic,ic(h,n),e?(a=h.n,a.a=e.a-n.n.a,a.b=e.b-n.n.b,o_n(a,0,0,n.o.a,n.o.b),gi(h,jUn(h,c))):(r=zp(c),gi(h,t==(gr(),Jc)?r:xk(r))),s=u(v(i,(W(),Hc)),21),l=h.j,c.g){case 2:case 1:(l==(en(),Xn)||l==ae)&&s.Fc((pr(),v2));break;case 4:case 3:(l==(en(),Zn)||l==Wn)&&s.Fc((pr(),v2))}return h}function tGn(n,e){var t,i,r,c,s,f;for(s=new sd(new Ua(n.f.b).a);s.b;){if(c=Nb(s),r=u(c.ld(),602),e==1){if(r.Af()!=(ci(),us)&&r.Af()!=Wf)continue}else if(r.Af()!=(ci(),Kr)&&r.Af()!=Xr)continue;switch(i=u(u(c.md(),42).b,86),f=u(u(c.md(),42).a,194),t=f.c,r.Af().g){case 2:i.g.c=n.e.a,i.g.b=y.Math.max(1,i.g.b+t);break;case 1:i.g.c=i.g.c+t,i.g.b=y.Math.max(1,i.g.b-t);break;case 4:i.g.d=n.e.b,i.g.a=y.Math.max(1,i.g.a+t);break;case 3:i.g.d=i.g.d+t,i.g.a=y.Math.max(1,i.g.a-t)}}}function dOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(f=F(ye,_e,28,e.b.c.length,15,1),l=F(A_,G,273,e.b.c.length,0,1),h=F(Qh,b1,10,e.b.c.length,0,1),d=n.a,g=0,p=d.length;g<p;++g){for(a=d[g],k=0,s=new M(a.e);s.a<s.c.c.length;)r=u(E(s),10),i=jX(r.c),++f[i],m=$(B(v(e,(cn(),Ws)))),f[i]>0&&h[i]&&(m=jg(n.b,h[i],r)),k=y.Math.max(k,r.c.c.b+m);for(c=new M(a.e);c.a<c.c.c.length;)r=u(E(c),10),r.n.b=k+r.d.d,t=r.c,t.c.b=k+r.d.d+r.o.b+r.d.a,l[qr(t.b.b,t,0)]=r.k,h[qr(t.b.b,t,0)]=r}}function iGn(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(i=new ie(ce(Sl(e).a.Kc(),new En));pe(i);)t=u(fe(i),74),L(N((!t.b&&(t.b=new Dn(he,t,4,7)),t.b),0),193)||(h=Gr(u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),D5(t)||(s=e.i+e.g/2,f=e.j+e.f/2,a=h.i+h.g/2,d=h.j+h.f/2,g=new Ni,g.a=a-s,g.b=d-f,c=new V(g.a,g.b),vm(c,e.g,e.f),g.a-=c.a,g.b-=c.b,s=a-g.a,f=d-g.b,l=new V(g.a,g.b),vm(l,h.g,h.f),g.a-=l.a,g.b-=l.b,a=s+g.a,d=f+g.b,r=Xg(t,!0,!0),H4(r,s),U4(r,f),_4(r,a),q4(r,d),iGn(n,h)))}function rGn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,Qb),"ELK SPOrE Compaction"),"ShrinkTree is a compaction algorithm that maintains the topology of a layout. The relocation of diagram elements is based on contracting a spanning tree."),new dmn))),Q(n,Qb,YB,rn(QO)),Q(n,Qb,ocn,rn(Uq)),Q(n,Qb,scn,rn(qq)),Q(n,Qb,ZB,rn(U1n)),Q(n,Qb,nF,rn(Hq)),Q(n,Qb,Wb,q1n),Q(n,Qb,yw,8),Q(n,Qb,eF,rn(Zce)),Q(n,Qb,fcn,rn(_1n)),Q(n,Qb,hcn,rn(H1n)),Q(n,Qb,Uy,(_n(),!1))}function bOe(n,e){var t,i,r,c,s,f,h,l,a,d;for(e.Ug("Simple node placement",1),d=u(v(n,(W(),E2)),312),f=0,c=new M(n.b);c.a<c.c.c.length;){for(i=u(E(c),30),s=i.c,s.b=0,t=null,l=new M(i.a);l.a<l.c.c.length;)h=u(E(l),10),t&&(s.b+=ZY(h,t,d.c)),s.b+=h.d.d+h.o.b+h.d.a,t=h;f=y.Math.max(f,s.b)}for(r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=i.c,a=(f-s.b)/2,t=null,l=new M(i.a);l.a<l.c.c.length;)h=u(E(l),10),t&&(a+=ZY(h,t,d.c)),a+=h.d.d,h.n.b=a,a+=h.o.b+h.d.a,t=h;e.Vg()}function wOe(n,e){var t,i,r,c;for(Eme(e.b.j),qt(_r(new Cn(null,new On(e.d,16)),new Apn),new Lpn),c=new M(e.d);c.a<c.c.c.length;){switch(r=u(E(c),105),r.e.g){case 0:t=u(sn(r.j,0),113).d.j,wG(r,u(ho(Sp(u(ot(r.k,t),15).Oc(),w2)),113)),bG(r,u(ho(_0(u(ot(r.k,t),15).Oc(),w2)),113));break;case 1:i=jZ(r),wG(r,u(ho(Sp(u(ot(r.k,i[0]),15).Oc(),w2)),113)),bG(r,u(ho(_0(u(ot(r.k,i[1]),15).Oc(),w2)),113));break;case 2:eEe(n,r);break;case 3:mCe(r);break;case 4:jCe(n,r)}Mme(r)}n.a=null}function FR(n,e,t){var i,r,c,s,f,h,l,a;return i=n.a.o==(If(),Xf)?Pt:li,f=IUn(n,new QMn(e,t)),!f.a&&f.c?(Re(n.d,f),i):f.a?(r=f.a.c,h=f.a.d,t?(l=n.a.c==(fh(),m0)?h:r,c=n.a.c==m0?r:h,s=n.a.g[c.i.p],a=$(n.a.p[s.p])+$(n.a.d[c.i.p])+c.n.b+c.a.b-$(n.a.d[l.i.p])-l.n.b-l.a.b):(l=n.a.c==(fh(),y1)?h:r,c=n.a.c==y1?r:h,a=$(n.a.p[n.a.g[c.i.p].p])+$(n.a.d[c.i.p])+c.n.b+c.a.b-$(n.a.d[l.i.p])-l.n.b-l.a.b),n.a.n[n.a.g[r.i.p].p]=(_n(),!0),n.a.n[n.a.g[h.i.p].p]=!0,a):i}function gOe(n,e,t,i){var r,c,s,f,h,l,a,d;if(i.gc()==0)return!1;if(h=(dr(),u(e,69).xk()),s=h?i:new Pb(i.gc()),Pl(n.e,e)){if(e.Si())for(a=i.Kc();a.Ob();)l=a.Pb(),BS(n,e,l,L(e,102)&&(u(e,19).Bb&hr)!=0)||(c=Rh(e,l),s.Fc(c));else if(!h)for(a=i.Kc();a.Ob();)l=a.Pb(),c=Rh(e,l),s.Fc(c)}else{for(d=ru(n.e.Dh(),e),r=u(n.g,124),f=0;f<n.i;++f)if(c=r[f],d.am(c.Lk()))throw T(new Gn(Zy));if(i.gc()>1)throw T(new Gn(Zy));h||(c=Rh(e,i.Kc().Pb()),s.Fc(c))}return WQ(n,gnn(n,e,t),s)}function HS(n,e,t){var i,r,c,s,f,h,l,a;if(Pl(n.e,e))h=(dr(),u(e,69).xk()?new eT(e,n):new k7(e,n)),jS(h.c,h.b),I6(h,u(t,16));else{for(a=ru(n.e.Dh(),e),i=u(n.g,124),s=0;s<n.i;++s)if(r=i[s],c=r.Lk(),a.am(c)){if(c==(n3(),_3)||c==F3){for(l=aZ(n,e,t),f=s,l?dw(n,s):++s;s<n.i;)r=i[s],c=r.Lk(),c==_3||c==F3?dw(n,s):++s;l||u(Bg(n,f,Rh(e,t)),76)}else aZ(n,e,t)?dw(n,s):u(Bg(n,s,(dr(),u(e,69).xk()?u(t,76):Rh(e,t))),76);return}aZ(n,e,t)||ve(n,(dr(),u(e,69).xk()?u(t,76):Rh(e,t)))}}function cGn(n,e,t){var i,r,c,s,f,h,l,a;return rt(t,n.b)||(n.b=t,c=new L0n,s=u(Wr(_r(new Cn(null,new On(t.f,16)),c),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),Sw),Yr]))),21),n.e=!0,n.f=!0,n.c=!0,n.d=!0,r=s.Hc((Vp(),uj)),i=s.Hc(oj),r&&!i&&(n.f=!1),!r&&i&&(n.d=!1),r=s.Hc(cj),i=s.Hc(sj),r&&!i&&(n.c=!1),!r&&i&&(n.e=!1)),a=u(n.a.Ve(e,t),42),h=u(a.a,17).a,l=u(a.b,17).a,f=!1,h<0?n.c||(f=!0):n.e||(f=!0),l<0?n.d||(f=!0):n.f||(f=!0),f?cGn(n,a,t):a}function pOe(n){var e,t,i,r;r=n.o,K0(),n.A.dc()||rt(n.A,ron)?e=r.b:(e=ey(n.f),n.A.Hc((go(),iE))&&!n.B.Hc((io(),I9))&&(e=y.Math.max(e,ey(u(Mr(n.p,(en(),Zn)),252))),e=y.Math.max(e,ey(u(Mr(n.p,Wn),252)))),t=Kxn(n),t&&(e=y.Math.max(e,t.b)),n.A.Hc(rE)&&(n.q==(Ai(),tl)||n.q==qc)&&(e=y.Math.max(e,nT(u(Mr(n.b,(en(),Zn)),127))),e=y.Math.max(e,nT(u(Mr(n.b,Wn),127))))),on(un(n.e.Tf().of((He(),Vw))))?r.b=y.Math.max(r.b,e):r.b=e,i=n.f.i,i.d=0,i.a=e,DR(n.f)}function uGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(d=0;d<e.length;d++){for(f=n.Kc();f.Ob();)c=u(f.Pb(),230),c.hg(d,e);for(g=0;g<e[d].length;g++){for(h=n.Kc();h.Ob();)c=u(h.Pb(),230),c.ig(d,g,e);for(k=e[d][g].j,p=0;p<k.c.length;p++){for(l=n.Kc();l.Ob();)c=u(l.Pb(),230),c.jg(d,g,p,e);for(m=(Nn(p,k.c.length),u(k.c[p],12)),t=0,r=new Lf(m.b);tc(r.a)||tc(r.b);)for(i=u(tc(r.a)?E(r.a):E(r.b),18),a=n.Kc();a.Ob();)c=u(a.Pb(),230),c.gg(d,g,p,t++,i,e)}}}for(s=n.Kc();s.Ob();)c=u(s.Pb(),230),c.fg()}function mOe(n,e){var t,i,r,c,s,f,h;for(n.b=$(B(v(e,(cn(),T2)))),n.c=$(B(v(e,Kd))),n.d=u(v(e,MH),350),n.a=u(v(e,fO),282),r7e(e),f=u(Wr(ut(ut(rc(rc(new Cn(null,new On(e.b,16)),new Vwn),new Wwn),new Jwn),new Qwn),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),r=f.Kc();r.Ob();)t=u(r.Pb(),18),s=u(v(t,(W(),Ld)),15),s.Jc(new Y9n(n)),U(t,Ld,null);for(i=f.Kc();i.Ob();)t=u(i.Pb(),18),h=u(v(t,(W(),ffn)),18),c=u(v(t,M2),15),LNe(n,c,h),U(t,M2,null)}function _R(n,e){var t,i,r,c,s,f,h;if(n.a){if(f=n.a.xe(),h=null,f!=null?e.a+=""+f:(s=n.a.mk(),s!=null&&(c=ih(s,wu(91)),c!=-1?(h=(zn(c,s.length+1),s.substr(c)),e.a+=""+qo(s==null?gu:(Jn(s),s),0,c)):e.a+=""+s)),n.d&&n.d.i!=0){for(r=!0,e.a+="<",i=new ne(n.d);i.e!=i.i.gc();)t=u(ue(i),89),r?r=!1:e.a+=ur,_R(t,e);e.a+=">"}h!=null&&(e.a+=""+h)}else n.e?(f=n.e.zb,f!=null&&(e.a+=""+f)):(e.a+="?",n.b?(e.a+=" super ",_R(n.b,e)):n.f&&(e.a+=" extends ",_R(n.f,e)))}function vOe(n){n.b=null,n.a=null,n.o=null,n.q=null,n.v=null,n.w=null,n.B=null,n.p=null,n.Q=null,n.R=null,n.S=null,n.T=null,n.U=null,n.V=null,n.W=null,n.bb=null,n.eb=null,n.ab=null,n.H=null,n.db=null,n.c=null,n.d=null,n.f=null,n.n=null,n.r=null,n.s=null,n.u=null,n.G=null,n.J=null,n.e=null,n.j=null,n.i=null,n.g=null,n.k=null,n.t=null,n.F=null,n.I=null,n.L=null,n.M=null,n.O=null,n.P=null,n.$=null,n.N=null,n.Z=null,n.cb=null,n.K=null,n.D=null,n.A=null,n.C=null,n._=null,n.fb=null,n.X=null,n.Y=null,n.gb=!1,n.hb=!1}function kOe(n){var e,t,i,r;if(i=ZR((!n.c&&(n.c=J7(vc(n.f))),n.c),0),n.e==0||n.a==0&&n.f!=-1&&n.e<0)return i;if(e=$Q(n)<0?1:0,t=n.e,r=(i.length+1+y.Math.abs(wi(n.e)),new fg),e==1&&(r.a+="-"),n.e>0)if(t-=i.length-e,t>=0){for(r.a+="0.";t>Od.length;t-=Od.length)QPn(r,Od);$Sn(r,Od,wi(t)),Be(r,(zn(e,i.length+1),i.substr(e)))}else t=e-t,Be(r,qo(i,e,wi(t))),r.a+=".",Be(r,DW(i,wi(t)));else{for(Be(r,(zn(e,i.length+1),i.substr(e)));t<-Od.length;t+=Od.length)QPn(r,Od);$Sn(r,Od,wi(-t))}return r.a}function HR(n){var e,t,i,r,c,s,f,h,l;return!(n.k!=(Vn(),zt)||n.j.c.length<=1||(c=u(v(n,(cn(),Ft)),101),c==(Ai(),qc))||(r=(cw(),(n.q?n.q:(Ln(),Ln(),Wh))._b(d0)?i=u(v(n,d0),203):i=u(v(Hi(n),z8),203),i),r==CO)||!(r==I2||r==P2)&&(s=$(B(rw(n,X8))),e=u(v(n,Sj),140),!e&&(e=new pV(s,s,s,s)),l=uc(n,(en(),Wn)),h=e.d+e.a+(l.gc()-1)*s,h>n.o.b||(t=uc(n,Zn),f=e.d+e.a+(t.gc()-1)*s,f>n.o.b)))}function yOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;e.Ug("Orthogonal edge routing",1),l=$(B(v(n,(cn(),S2)))),t=$(B(v(n,T2))),i=$(B(v(n,Kd))),g=new lD(0,t),j=0,s=new xi(n.b,0),f=null,a=null,h=null,d=null;do a=s.b<s.d.gc()?(oe(s.b<s.d.gc()),u(s.d.Xb(s.c=s.b++),30)):null,d=a?a.a:null,f&&(Ven(f,j),j+=f.c.a),k=f?j+i:j,m=Zen(g,n,h,d,k),r=!f||PM(h,(AS(),Lj)),c=!a||PM(d,(AS(),Lj)),m>0?(p=(m-1)*t,f&&(p+=i),a&&(p+=i),p<l&&!r&&!c&&(p=l),j+=p):!r&&!c&&(j+=l),f=a,h=d;while(a);n.f.a=j,e.Vg()}function qS(n,e){var t,i,r,c,s,f,h,l,a,d;if(a=null,n.d&&(a=u(Dc(n.d,e),142)),!a){if(c=n.a.vi(),d=c.i,!n.d||c6(n.d)!=d){for(h=new de,n.d&&s5(h,n.d),l=h.f.c+h.i.c,f=l;f<d;++f)i=u(N(c,f),142),r=r1(n.e,i).xe(),t=u(r==null?Vc(h.f,null,i):$b(h.i,r,i),142),t&&t!=i&&(r==null?Vc(h.f,null,t):$b(h.i,r,t));if(h.f.c+h.i.c!=d)for(s=0;s<l;++s)i=u(N(c,s),142),r=r1(n.e,i).xe(),t=u(r==null?Vc(h.f,null,i):$b(h.i,r,i),142),t&&t!=i&&(r==null?Vc(h.f,null,t):$b(h.i,r,t));n.d=h}a=u(Dc(n.d,e),142)}return a}function qR(n,e,t,i,r,c,s){var f,h,l,a,d,g,p;return d=on(un(v(e,(cn(),ohn)))),g=null,c==(gr(),Vu)&&i.c.i==t?g=i.c:c==Jc&&i.d.i==t&&(g=i.d),l=s,!l||!d||g?(a=(en(),sc),g?a=g.j:mg(u(v(t,Ft),101))&&(a=c==Vu?Wn:Zn),h=jOe(n,e,t,c,a,i),f=JD((Hi(t),i)),c==Vu?(Zi(f,u(sn(h.j,0),12)),Oi(f,r)):(Zi(f,r),Oi(f,u(sn(h.j,0),12))),l=new aKn(i,f,h,u(v(h,(W(),st)),12),c,!g)):(nn(l.e,i),p=y.Math.max($(B(v(l.d,m1))),$(B(v(i,m1)))),U(l.d,m1,p)),In(n.a,i,new zM(l.d,e,c)),l}function UR(){UR=R;var n;Hdn=new sjn,$oe=F(fn,J,2,0,6,1),Noe=lf(Up(33,58),Up(1,26)),Doe=lf(Up(97,122),Up(65,90)),Rdn=Up(48,57),Aoe=lf(Noe,0),Loe=lf(Doe,Rdn),Kdn=lf(lf(0,Up(1,6)),Up(33,38)),Bdn=lf(lf(Rdn,Up(65,70)),Up(97,102)),xoe=lf(Aoe,ZC("-_.!~*'()")),Roe=lf(Loe,GC("-_.!~*'()")),ZC(eJn),GC(eJn),lf(xoe,ZC(";:@&=+$,")),lf(Roe,GC(";:@&=+$,")),Fdn=ZC(":/?#"),_dn=GC(":/?#"),L9=ZC("/?#"),N9=GC("/?#"),n=new ni,n.a.zc("jar",n),n.a.zc("zip",n),n.a.zc("archive",n),jA=(Ln(),new r4(n))}function jOe(n,e,t,i,r,c){var s,f,h,l,a,d;return s=null,l=i==(gr(),Vu)?c.c:c.d,h=FC(e),l.i==t?(s=u(ee(n.b,l),10),s||(s=my(l,u(v(t,(cn(),Ft)),101),r,CPe(l),null,l.n,l.o,h,e),U(s,(W(),st),l),Ve(n.b,l,s))):(s=my((a=new xA,d=$(B(v(e,(cn(),Ws))))/2,Sk(a,Fw,d),a),u(v(t,Ft),101),r,i==Vu?-1:1,null,new Ni,new V(0,0),h,e),f=eye(s,t,i),U(s,(W(),st),f),Ve(n.b,f,s)),u(v(e,(W(),Hc)),21).Fc((pr(),cs)),mg(u(v(e,(cn(),Ft)),101))?U(e,Ft,(Ai(),Fv)):U(e,Ft,(Ai(),Qf)),s}function Lm(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;f=0,m=0,h=LT(n.g,n.g.length),c=n.e,s=n.j,i=n.b,r=n.c;do{for(p=0,a=new M(n.q);a.a<a.c.c.length;)l=u(E(a),10),g=CGn(n,l),t=!0,(n.r==(ps(),Pj)||n.r==Ij)&&(t=on(un(g.b))),u(g.a,17).a<0&&t?(++p,h=LT(n.g,n.g.length),n.e=n.e+u(g.a,17).a,m+=c-n.e,c=n.e+u(g.a,17).a,s=n.j,i=Cb(n.b),r=Cb(n.c)):(n.g=LT(h,h.length),n.e=c,n.b=(Pe(i),i?new _u(i):y4(new M(i))),n.c=(Pe(r),r?new _u(r):y4(new M(r))),n.j=s);++f,d=p!=0&&on(un(e.Kb(new bi(Y(m),Y(f)))))}while(d)}function EOe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn;return s=n.f,g=e.f,f=s==(x5(),L3)||s==a9,p=g==L3||g==a9,h=s==D2||s==d9,m=g==D2||g==d9,l=s==D2||s==L3,k=g==D2||g==L3,f&&p?n.f==a9?n:e:h&&m?n.f==d9?n:e:l&&k?(s==D2?(d=n,a=e):(d=e,a=n),c=(j=t.j+t.f,P=d.e+i.f,O=y.Math.max(j,P),A=O-y.Math.min(t.j,d.e),D=d.d+i.g-t.i,D*A),r=(_=t.i+t.g,X=a.d+i.g,tn=y.Math.max(_,X),yn=tn-y.Math.min(t.i,a.d),kn=a.e+i.f-t.j,yn*kn),c<=r?n.f==D2?n:e:n.f==L3?n:e):n}function oGn(n,e){var t,i,r,c,s,f,h,l,a,d;if(U(e,(pt(),Nv),0),h=u(v(e,$O),40),e.d.b==0)h?(a=$(B(v(h,j1)))+n.b+OY(n,h,e),U(e,j1,a)):U(e,j1,0);else{for(i=(c=ge(new sl(e).a.d,0),new sg(c));Q9(i.a);)t=u(be(i.a),65).c,oGn(n,t);f=u(DM((s=ge(new sl(e).a.d,0),new sg(s))),40),d=u(O1e((r=ge(new sl(e).a.d,0),new sg(r))),40),l=($(B(v(d,j1)))+$(B(v(f,j1))))/2,h?(a=$(B(v(h,j1)))+n.b+OY(n,h,e),U(e,j1,a),U(e,Nv,$(B(v(e,j1)))-l),$Ae(n,e)):U(e,j1,l)}}function MOe(n){var e,t,i,r,c,s,f,h,l,a,d;for(a=n.e.a.c.length,s=new M(n.e.a);s.a<s.c.c.length;)c=u(E(s),125),c.j=!1;for(n.i=F(ye,_e,28,a,15,1),n.g=F(ye,_e,28,a,15,1),n.n=new Z,r=0,d=new Z,h=new M(n.e.a);h.a<h.c.c.length;)f=u(E(h),125),f.d=r++,f.b.a.c.length==0&&nn(n.n,f),hi(d,f.g);for(e=0,i=new M(d);i.a<i.c.c.length;)t=u(E(i),218),t.c=e++,t.f=!1;l=d.c.length,n.b==null||n.b.length<l?(n.b=F(Ii,Cr,28,l,15,1),n.c=F(so,Xh,28,l,16,1)):e6(n.c),n.d=d,n.p=new MN(Q0(n.d.c.length)),n.j=1}function TOe(n,e){var t,i,r,c,s,f,h,l,a;if(!(e.e.c.length<=1)){for(n.f=e,n.d=u(v(n.f,(Uk(),Eon)),391),n.g=u(v(n.f,Son),17).a,n.e=$(B(v(n.f,Mon))),n.c=$(B(v(n.f,EI))),BIn(n.b),r=new M(n.f.c);r.a<r.c.c.length;)i=u(E(r),290),Pen(n.b,i.c,i,null),Pen(n.b,i.d,i,null);for(f=n.f.e.c.length,n.a=Wa(Ii,[J,Cr],[109,28],15,[f,f],2),l=new M(n.f.e);l.a<l.c.c.length;)h=u(E(l),153),QIe(n,h,n.a[h.a]);for(n.i=Wa(Ii,[J,Cr],[109,28],15,[f,f],2),c=0;c<f;++c)for(s=0;s<f;++s)t=n.a[c][s],a=1/(t*t),n.i[c][s]=a}}function sGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(f=e.ah(),f||e.Ug(MXn,1),t=u(v(n,(W(),bH)),15),s=1/t.gc(),e._g())for(e.bh("ELK Layered uses the following "+t.gc()+" modules:"),p=0,g=t.Kc();g.Ob();)a=u(g.Pb(),47),i=(p<10?"0":"")+p++,e.bh(" Slot "+i+": "+Xa(wo(a)));for(d=t.Kc();d.Ob();){if(a=u(d.Pb(),47),e.$g())return;a.Kf(n,e.eh(s))}for(c=new M(n.b);c.a<c.c.c.length;)r=u(E(c),30),hi(n.a,r.a),r.a.c.length=0;for(l=new M(n.a);l.a<l.c.c.length;)h=u(E(l),10),$i(h,null);n.b.c.length=0,f||e.Vg()}function COe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;if(l=new Z,!kt(n,(W(),fH)))return l;for(i=u(v(n,fH),15).Kc();i.Ob();)e=u(i.Pb(),10),qOe(e,n),Fn(l.c,e);for(c=new M(n.b);c.a<c.c.c.length;)for(r=u(E(c),30),f=new M(r.a);f.a<f.c.c.length;)s=u(E(f),10),s.k==(Vn(),Zt)&&(h=u(v(s,cO),10),h&&(a=new Ic,ic(a,s),d=u(v(s,gc),64),gi(a,d),g=u(sn(h.j,0),12),p=new Eb,Zi(p,a),Oi(p,g)));for(t=new M(l);t.a<t.c.c.length;)e=u(E(t),10),$i(e,u(sn(n.b,n.b.c.length-1),30));return l}function fGn(n,e,t){var i,r,c,s,f,h,l,a,d;for(d=new Z,a=new aJ(0,t),c=0,wC(a,new U$(0,0,a,t)),r=0,l=new ne(n);l.e!=l.i.gc();)h=u(ue(l),27),i=u(sn(a.a,a.a.c.length-1),172),f=r+h.g+(u(sn(a.a,0),172).b.c.length==0?0:t),(f>e||on(un(z(h,(Bf(),Fj)))))&&(r=0,c+=a.b+t,Fn(d.c,a),a=new aJ(c,t),i=new U$(0,a.f,a,t),wC(a,i),r=0),i.b.c.length==0||!on(un(z(St(h),(Bf(),Lq))))&&(h.f>=i.o&&h.f<=i.f||i.a*.5<=h.f&&i.a*1.5>=h.f)?$Y(i,h):(s=new U$(i.s+i.r+t,a.f,a,t),wC(a,s),$Y(s,h)),r=h.i+h.g;return Fn(d.c,a),d}function z5(n){var e,t,i,r;if(!(n.b==null||n.b.length<=2)&&!n.a){for(e=0,r=0;r<n.b.length;){for(e!=r?(n.b[e]=n.b[r++],n.b[e+1]=n.b[r++]):r+=2,t=n.b[e+1];r<n.b.length&&!(t+1<n.b[r]);)if(t+1==n.b[r])n.b[e+1]=n.b[r+1],t=n.b[e+1],r+=2;else if(t>=n.b[r+1])r+=2;else if(t<n.b[r+1])n.b[e+1]=n.b[r+1],t=n.b[e+1],r+=2;else throw T(new ec("Token#compactRanges(): Internel Error: ["+n.b[e]+","+n.b[e+1]+"] ["+n.b[r]+","+n.b[r+1]+"]"));e+=2}e!=n.b.length&&(i=F(ye,_e,28,e,15,1),Oc(n.b,0,i,0,e),n.b=i),n.a=!0}}function SOe(n,e){var t,i,r,c,s,f,h;for(s=Cp(n.a).Kc();s.Ob();){if(c=u(s.Pb(),18),c.b.c.length>0)for(i=new _u(u(ot(n.a,c),21)),Ln(),Yt(i,new LG(e)),r=new xi(c.b,0);r.b<r.d.gc();){switch(t=(oe(r.b<r.d.gc()),u(r.d.Xb(r.c=r.b++),72)),f=-1,u(v(t,(cn(),Sh)),278).g){case 1:f=i.c.length-1;break;case 0:f=Dke(i);break;case 2:f=0}f!=-1&&(h=(Nn(f,i.c.length),u(i.c[f],249)),nn(h.b.b,t),u(v(Hi(h.b.c.i),(W(),Hc)),21).Fc((pr(),kv)),u(v(Hi(h.b.c.i),Hc),21).Fc(vv),bo(r),U(t,ufn,c))}Zi(c,null),Oi(c,null)}}function POe(n,e){var t,i,r,c;return t=new j0n,i=u(Wr(_r(new Cn(null,new On(n.f,16)),t),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[(Gu(),Sw),Yr]))),21),r=i.gc(),r=r==2?1:0,r==1&&ob(Kk(u(Wr(ut(i.Lc(),new E0n),Lxn(Tl(0),new KU)),168).a,2),0)&&(r=0),i=u(Wr(_r(new Cn(null,new On(e.f,16)),t),W0(new Y2,new Z2,new np,new ep,S(C(xr,1),G,108,0,[Sw,Yr]))),21),c=i.gc(),c=c==2?1:0,c==1&&ob(Kk(u(Wr(ut(i.Lc(),new M0n),Lxn(Tl(0),new KU)),168).a,2),0)&&(c=0),r<c?-1:r==c?0:1}function hGn(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(e=Pf(n),c=on(un(z(e,(cn(),Bw)))),a=0,r=0,l=new ne((!n.e&&(n.e=new Dn(Vt,n,7,4)),n.e));l.e!=l.i.gc();)h=u(ue(l),74),f=_b(h),s=f&&c&&on(un(z(h,Dd))),g=Gr(u(N((!h.c&&(h.c=new Dn(he,h,5,8)),h.c),0),84)),f&&s?++r:f&&!s?++a:St(g)==e||g==e?++r:++a;for(i=new ne((!n.d&&(n.d=new Dn(Vt,n,8,5)),n.d));i.e!=i.i.gc();)t=u(ue(i),74),f=_b(t),s=f&&c&&on(un(z(t,Dd))),d=Gr(u(N((!t.b&&(t.b=new Dn(he,t,4,7)),t.b),0),84)),f&&s?++a:f&&!s?++r:St(d)==e||d==e?++a:++r;return a-r}function IOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(e.Ug("Edge splitting",1),n.b.c.length<=2){e.Vg();return}for(c=new xi(n.b,0),s=(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),30));c.b<c.d.gc();)for(r=s,s=(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),30)),h=new M(r.a);h.a<h.c.c.length;)for(f=u(E(h),10),a=new M(f.j);a.a<a.c.c.length;)for(l=u(E(a),12),i=new M(l.g);i.a<i.c.c.length;)t=u(E(i),18),g=t.d,d=g.i.c,d!=r&&d!=s&&kqn(t,(p=new Cl(n),Ha(p,(Vn(),Ti)),U(p,(W(),st),t),U(p,(cn(),Ft),(Ai(),qc)),$i(p,s),p));e.Vg()}function OOe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(a=new Z,g=new ni,s=e.b,r=0;r<s.c.length;r++){for(l=(Nn(r,s.c.length),u(s.c[r],30)).a,a.c.length=0,c=0;c<l.c.length;c++)f=n.a[r][c],f.p=c,f.k==(Vn(),_c)&&Fn(a.c,f),Go(u(sn(e.b,r),30).a,c,f),f.j.c.length=0,hi(f.j,u(u(sn(n.b,r),15).Xb(c),16)),Ep(u(v(f,(cn(),Ft)),101))||U(f,Ft,(Ai(),Ud));for(i=new M(a);i.a<i.c.c.length;)t=u(E(i),10),d=cPe(t),g.a.zc(d,g),g.a.zc(t,g)}for(h=g.a.ec().Kc();h.Ob();)f=u(h.Pb(),10),Ln(),Yt(f.j,(cm(),jsn)),f.i=!0,Snn(f)}function lGn(n){var e,t,i,r,c;return n.g!=null?n.g:n.a<32?(n.g=WLe(vc(n.f),wi(n.e)),n.g):(r=ZR((!n.c&&(n.c=J7(vc(n.f))),n.c),0),n.e==0?r:(e=(!n.c&&(n.c=J7(vc(n.f))),n.c).e<0?2:1,t=r.length,i=-n.e+t-e,c=new x1,c.a+=""+r,n.e>0&&i>=-6?i>=0?E7(c,t-wi(n.e),"."):(N$(c,e-1,e-1,"0."),E7(c,e+1,ws(Od,0,-wi(i)-1))):(t-e>=1&&(E7(c,e,"."),++t),E7(c,t,"E"),i>0&&E7(c,++t,"+"),E7(c,++t,""+_6(vc(i)))),n.g=c.a,n.g))}function AOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn;i=$(B(v(e,(cn(),fhn)))),_=u(v(e,V8),17).a,g=4,r=3,X=20/_,p=!1,h=0,s=et;do{for(c=h!=1,d=h!=0,tn=0,j=n.a,O=0,D=j.length;O<D;++O)m=j[O],m.f=null,mLe(n,m,c,d,i),tn+=y.Math.abs(m.a);do f=cIe(n,e);while(f);for(k=n.a,P=0,A=k.length;P<A;++P)if(m=k[P],t=kW(m).a,t!=0)for(a=new M(m.e);a.a<a.c.c.length;)l=u(E(a),10),l.n.b+=t;h==0||h==1?(--g,g<=0&&(tn<s||-g>_)?(h=2,s=et):h==0?(h=1,s=tn):(h=0,s=tn)):(p=tn>=s||s-tn<X,s=tn,p&&--r)}while(!(p&&r<=0))}function GR(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;for(m=new de,c=n.a.ec().Kc();c.Ob();)i=u(c.Pb(),177),Ve(m,i,t.af(i));for(s=(Pe(n),n?new _u(n):y4(n.a.ec().Kc())),Yt(s,new O9n(m)),f=HT(s),h=new NM(e),p=new de,Vc(p.f,e,h);f.a.gc()!=0;){for(l=null,a=null,d=null,r=f.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),177),$(B(Fr(wr(m.f,i))))<=Pt){if(Zc(p,i.a)&&!Zc(p,i.b)){a=i.b,d=i.a,l=i;break}if(Zc(p,i.b)&&!Zc(p,i.a)){a=i.a,d=i.b,l=i;break}}if(!l)break;g=new NM(a),nn(u(Fr(wr(p.f,d)),225).a,g),Vc(p.f,a,g),f.a.Bc(l)!=null}return h}function LOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;for(t.Ug("Depth-first cycle removal",1),d=e.a,a=d.c.length,n.c=new Z,n.d=F(so,Xh,28,a,16,1),n.a=F(so,Xh,28,a,16,1),n.b=new Z,s=0,l=new M(d);l.a<l.c.c.length;)h=u(E(l),10),h.p=s,D4(ji(h))&&nn(n.c,h),++s;for(p=new M(n.c);p.a<p.c.c.length;)g=u(E(p),10),knn(n,g);for(c=0;c<a;c++)n.d[c]||(f=(Nn(c,d.c.length),u(d.c[c],10)),knn(n,f));for(r=new M(n.b);r.a<r.c.c.length;)i=u(E(r),18),Ub(i,!0),U(e,(W(),kj),(_n(),!0));n.c=null,n.d=null,n.a=null,n.b=null,t.Vg()}function NOe(n,e){Vg();var t,i,r,c,s,f;return c=e.c-(n.c+n.b),r=n.c-(e.c+e.b),s=n.d-(e.d+e.a),t=e.d-(n.d+n.a),i=y.Math.max(r,c),f=y.Math.max(s,t),Cf(),Fs(jh),(y.Math.abs(i)<=jh||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:sb(isNaN(i),isNaN(0)))>=0^(Fs(jh),(y.Math.abs(f)<=jh||f==0||isNaN(f)&&isNaN(0)?0:f<0?-1:f>0?1:sb(isNaN(f),isNaN(0)))>=0)?y.Math.max(f,i):(Fs(jh),(y.Math.abs(i)<=jh||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:sb(isNaN(i),isNaN(0)))>0?y.Math.sqrt(f*f+i*i):-y.Math.sqrt(f*f+i*i))}function pd(n,e){var t,i,r,c,s,f;if(e){if(!n.a&&(n.a=new KE),n.e==2){RE(n.a,e);return}if(e.e==1){for(r=0;r<e.Pm();r++)pd(n,e.Lm(r));return}if(f=n.a.a.c.length,f==0){RE(n.a,e);return}if(s=u(kb(n.a,f-1),122),!((s.e==0||s.e==10)&&(e.e==0||e.e==10))){RE(n.a,e);return}c=e.e==0?2:e.Mm().length,s.e==0?(t=new i6,i=s.Km(),i>=hr?Er(t,DY(i)):C4(t,i&ui),s=new OD(10,null,0),wwe(n.a,s,f-1)):(t=(s.Mm().length+c,new i6),Er(t,s.Mm())),e.e==0?(i=e.Km(),i>=hr?Er(t,DY(i)):C4(t,i&ui)):Er(t,e.Mm()),u(s,530).b=t.a}}function DOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(!t.dc()){for(f=0,g=0,i=t.Kc(),m=u(i.Pb(),17).a;f<e.f;){if(f==m&&(g=0,i.Ob()?m=u(i.Pb(),17).a:m=e.f+1),f!=g){for(j=u(sn(n.b,f),30),p=u(sn(n.b,g),30),k=Cb(j.a),d=new M(k);d.a<d.c.c.length;)if(a=u(E(d),10),uw(a,p.a.c.length,p),g==0)for(s=Cb(ji(a)),c=new M(s);c.a<c.c.c.length;)r=u(E(c),18),Ub(r,!0),U(n,(W(),kj),(_n(),!0)),gGn(n,r,1)}++g,++f}for(h=new xi(n.b,0);h.b<h.d.gc();)l=(oe(h.b<h.d.gc()),u(h.d.Xb(h.c=h.b++),30)),l.a.c.length==0&&bo(h)}}function $Oe(n,e,t){var i,r,c;if(r=u(v(e,(cn(),fO)),282),r!=(jm(),x8)){switch(t.Ug("Horizontal Compaction",1),n.a=e,c=new zDn,i=new uHn((c.d=e,c.c=u(v(c.d,$l),223),CSe(c),NAe(c),DSe(c),c.a)),yhe(i,n.b),u(v(e,Bfn),431).g){case 1:Gjn(i,new pxn(n.a));break;default:Gjn(i,(JW(),FQn))}switch(r.g){case 1:$5(i);break;case 2:$5(US(i,(ci(),Xr)));break;case 3:$5(zjn(US($5(i),(ci(),Xr)),new q2n));break;case 4:$5(zjn(US($5(i),(ci(),Xr)),new g7n(c)));break;case 5:$5(khe(i,QZn))}US(i,(ci(),Kr)),i.e=!0,sLe(c),t.Vg()}}function xOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(s=e.b,a=s.o,h=s.d,i=$(B(nS(s,(cn(),Ws)))),r=$(B(nS(s,C2))),l=$(B(nS(s,OH))),f=new sL,zV(f,h.d,h.c,h.a,h.b),g=zSe(e,i,r,l),P=new M(e.d);P.a<P.c.c.length;){for(j=u(E(P),105),m=j.f.a.ec().Kc();m.Ob();)p=u(m.Pb(),340),c=p.a,d=Cye(p),t=(O=new Tu,$Fn(p,p.c,g,O),Zye(p,d,g,O),$Fn(p,p.d,g,O),O),t=n.ng(p,d,t),vo(c.a),Ki(c.a,t),qt(new Cn(null,new On(t,16)),new FMn(a,f));k=j.i,k&&(bye(j,k,g,r),A=new rr(k.g),cZ(a,f,A),tt(A,k.j),cZ(a,f,A))}zV(h,f.d,f.c,f.a,f.b)}function ROe(n,e,t,i,r,c,s,f){var h,l,a,d;switch(h=Af(S(C(PDe,1),Kn,238,0,[e,t,i,r])),d=null,n.b.g){case 1:d=Af(S(C(C1n,1),Kn,535,0,[new FA,new KA,new BA]));break;case 0:d=Af(S(C(C1n,1),Kn,535,0,[new BA,new KA,new FA]));break;case 2:d=Af(S(C(C1n,1),Kn,535,0,[new KA,new FA,new BA]))}for(a=new M(d);a.a<a.c.c.length;)l=u(E(a),535),h.c.length>1&&(h=l.Hg(h,n.a,f));return h.c.length==1?u(sn(h,h.c.length-1),238):h.c.length==2?EOe((Nn(0,h.c.length),u(h.c[0],238)),(Nn(1,h.c.length),u(h.c[1],238)),s,c):null}function KOe(n,e,t){var i,r,c,s,f,h,l;for(t.Ug("Find roots",1),n.a.c.length=0,r=ge(e.b,0);r.b!=r.d.c;)i=u(be(r),40),i.b.b==0&&(U(i,(pt(),Ta),(_n(),!0)),nn(n.a,i));switch(n.a.c.length){case 0:c=new q$(0,e,"DUMMY_ROOT"),U(c,(pt(),Ta),(_n(),!0)),U(c,eq,!0),Re(e.b,c);break;case 1:break;default:for(s=new q$(0,e,OP),h=new M(n.a);h.a<h.c.c.length;)f=u(E(h),40),l=new WW(s,f),U(l,(pt(),eq),(_n(),!0)),Re(s.a.a,l),Re(s.d,l),Re(f.b,l),U(f,Ta,!1);U(s,(pt(),Ta),(_n(),!0)),U(s,eq,!0),Re(e.b,s)}t.Vg()}function aGn(n){var e,t,i,r,c,s;for(nu(n.a,new N0n),t=new M(n.a);t.a<t.c.c.length;)e=u(E(t),225),i=mi(Fi(u(n.b,68).c),u(e.b,68).c),TYn?(s=u(n.b,68).b,c=u(e.b,68).b,y.Math.abs(i.a)>=y.Math.abs(i.b)?(i.b=0,c.d+c.a>s.d&&c.d<s.d+s.a&&JM(i,y.Math.max(s.c-(c.c+c.b),c.c-(s.c+s.b)))):(i.a=0,c.c+c.b>s.c&&c.c<s.c+s.b&&JM(i,y.Math.max(s.d-(c.d+c.a),c.d-(s.d+s.a))))):JM(i,xUn(u(n.b,68),u(e.b,68))),r=y.Math.sqrt(i.a*i.a+i.b*i.b),r=OFn(O8,e,r,i),JM(i,r),YN(u(e.b,68),i),nu(e.a,new IG(i)),u(O8.b,68),zJ(O8,con,e)}function BOe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m;for(n.f=new oL,l=0,r=0,s=new M(n.e.b);s.a<s.c.c.length;)for(c=u(E(s),30),h=new M(c.a);h.a<h.c.c.length;){for(f=u(E(h),10),f.p=l++,i=new ie(ce(Qt(f).a.Kc(),new En));pe(i);)t=u(fe(i),18),t.p=r++;for(e=HR(f),g=new M(f.j);g.a<g.c.c.length;)d=u(E(g),12),e&&(m=d.a.b,m!=y.Math.floor(m)&&(a=m-id(vc(y.Math.round(m))),d.a.b-=a)),p=d.n.b+d.a.b,p!=y.Math.floor(p)&&(a=p-id(vc(y.Math.round(p))),d.n.b-=a)}n.g=l,n.b=r,n.i=F(MDe,Kn,412,l,0,1),n.c=F(EDe,Kn,655,r,0,1),n.d.a.$b()}function me(n){var e,t,i,r,c,s,f,h,l;if(n.Pj())if(h=n.Qj(),n.i>0){if(e=new wX(n.i,n.g),t=n.i,c=t<100?null:new R1(t),n.Tj())for(i=0;i<n.i;++i)s=n.g[i],c=n.Vj(s,c);if(e5(n),r=t==1?n.Ij(4,N(e,0),null,0,h):n.Ij(6,e,null,-1,h),n.Mj()){for(i=new yp(e);i.e!=i.i.gc();)c=n.Oj(Tx(i),c);c?(c.nj(r),c.oj()):n.Jj(r)}else c?(c.nj(r),c.oj()):n.Jj(r)}else e5(n),n.Jj(n.Ij(6,(Ln(),sr),null,-1,h));else if(n.Mj())if(n.i>0){for(f=n.g,l=n.i,e5(n),c=l<100?null:new R1(l),i=0;i<l;++i)s=f[i],c=n.Oj(s,c);c&&c.oj()}else e5(n);else e5(n)}function Xen(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(zxn(this),t==(Tb(),Ma)?fi(this.r,n):fi(this.w,n),a=Pt,l=li,s=e.a.ec().Kc();s.Ob();)r=u(s.Pb(),42),f=u(r.a,465),i=u(r.b,18),h=i.c,h==n&&(h=i.d),f==Ma?fi(this.r,h):fi(this.w,h),g=(en(),mu).Hc(h.j)?$(B(v(h,(W(),jv)))):cc(S(C(Ei,1),J,8,0,[h.i.n,h.n,h.a])).b,a=y.Math.min(a,g),l=y.Math.max(l,g);for(d=(en(),mu).Hc(n.j)?$(B(v(n,(W(),jv)))):cc(S(C(Ei,1),J,8,0,[n.i.n,n.n,n.a])).b,ZFn(this,d,a,l),c=e.a.ec().Kc();c.Ob();)r=u(c.Pb(),42),f_n(this,u(r.b,18));this.o=!1}function FOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;return t=n.l&8191,i=n.l>>13|(n.m&15)<<9,r=n.m>>4&8191,c=n.m>>17|(n.h&255)<<5,s=(n.h&1048320)>>8,f=e.l&8191,h=e.l>>13|(e.m&15)<<9,l=e.m>>4&8191,a=e.m>>17|(e.h&255)<<5,d=(e.h&1048320)>>8,yn=t*f,kn=i*f,Rn=r*f,Bn=c*f,te=s*f,h!=0&&(kn+=t*h,Rn+=i*h,Bn+=r*h,te+=c*h),l!=0&&(Rn+=t*l,Bn+=i*l,te+=r*l),a!=0&&(Bn+=t*a,te+=i*a),d!=0&&(te+=t*d),p=yn&ro,m=(kn&511)<<13,g=p+m,j=yn>>22,P=kn>>9,O=(Rn&262143)<<4,A=(Bn&31)<<17,k=j+P+O+A,_=Rn>>18,X=Bn>>5,tn=(te&4095)<<8,D=_+X+tn,k+=g>>22,g&=ro,D+=k>>22,k&=ro,D&=Ol,Yc(g,k,D)}function dGn(n){var e,t,i,r,c,s,f;if(f=u(sn(n.j,0),12),f.g.c.length!=0&&f.e.c.length!=0)throw T(new Ar("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(f.g.c.length!=0){for(c=Pt,t=new M(f.g);t.a<t.c.c.length;)e=u(E(t),18),s=e.d.i,i=u(v(s,(cn(),pO)),140),c=y.Math.min(c,s.n.a-i.b);return new CE(Pe(c))}if(f.e.c.length!=0){for(r=li,t=new M(f.e);t.a<t.c.c.length;)e=u(E(t),18),s=e.c.i,i=u(v(s,(cn(),pO)),140),r=y.Math.max(r,s.n.a+s.o.a+i.c);return new CE(Pe(r))}return Zv(),Zv(),FF}function bGn(n,e){var t,i,r,c,s,f,h;if(n.ol()){if(n.i>4)if(n.fk(e)){if(n.al()){if(r=u(e,54),i=r.Eh(),h=i==n.e&&(n.ml()?r.yh(r.Fh(),n.il())==n.jl():-1-r.Fh()==n.Lj()),n.nl()&&!h&&!i&&r.Jh()){for(c=0;c<n.i;++c)if(t=n.pl(u(n.g[c],58)),x(t)===x(e))return!0}return h}else if(n.ml()&&!n.ll()){if(s=u(e,58).Mh(br(u(n.Lk(),19))),x(s)===x(n.e))return!0;if(s==null||!u(s,58).Vh())return!1}}else return!1;if(f=km(n,e),n.nl()&&!f){for(c=0;c<n.i;++c)if(r=n.pl(u(n.g[c],58)),x(r)===x(e))return!0}return f}else return km(n,e)}function _Oe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(t.Ug("Interactive cycle breaking",1),d=new Z,p=new M(e.a);p.a<p.c.c.length;)for(g=u(E(p),10),g.p=1,m=KZ(g).a,a=Rb(g,(gr(),Jc)).Kc();a.Ob();)for(l=u(a.Pb(),12),c=new M(l.g);c.a<c.c.c.length;)i=u(E(c),18),k=i.d.i,k!=g&&(j=KZ(k).a,j<m&&Fn(d.c,i));for(s=new M(d);s.a<s.c.c.length;)i=u(E(s),18),Ub(i,!0);for(d.c.length=0,h=new M(e.a);h.a<h.c.c.length;)f=u(E(h),10),f.p>0&&b_n(n,f,d);for(r=new M(d);r.a<r.c.c.length;)i=u(E(r),18),Ub(i,!0);d.c.length=0,t.Vg()}function HOe(n,e){var t,i,r,c,s,f,h,l,a;for(t=0,a=new Z,f=new M(e);f.a<f.c.c.length;){switch(s=u(E(f),12),hY(n.b,n.d[s.p]),a.c.length=0,s.i.k.g){case 0:i=u(v(s,(W(),Xu)),10),nu(i.j,new V7n(a));break;case 1:t1e(im(ut(new Cn(null,new On(s.i.j,16)),new W7n(s))),new J7n(a));break;case 3:r=u(v(s,(W(),st)),12),nn(a,new bi(r,Y(s.e.c.length+s.g.c.length)))}for(l=new M(a);l.a<l.c.c.length;)h=u(E(l),42),c=Sz(n,u(h.a,12)),c>n.d[s.p]&&(t+=SJ(n.b,c)*u(h.b,17).a,W1(n.a,Y(c)));for(;!t6(n.a);)uQ(n.b,u(Pp(n.a),17).a)}return t}function qOe(n,e){var t,i,r,c,s,f,h,l,a,d;if(a=u(v(n,(W(),gc)),64),i=u(sn(n.j,0),12),a==(en(),Xn)?gi(i,ae):a==ae&&gi(i,Xn),u(v(e,(cn(),xd)),181).Hc((go(),Gd))){if(h=$(B(v(n,Sv))),l=$(B(v(n,Pv))),s=$(B(v(n,qw))),f=u(v(e,_w),21),f.Hc((zu(),Rl)))for(t=l,d=n.o.a/2-i.n.a,c=new M(i.f);c.a<c.c.c.length;)r=u(E(c),72),r.n.b=t,r.n.a=d-r.o.a/2,t+=r.o.b+s;else if(f.Hc(Oa))for(c=new M(i.f);c.a<c.c.c.length;)r=u(E(c),72),r.n.a=h+n.o.a-i.n.a;wpe(new OE((u6(),new kD(e,!1,!1,new HU))),new XM(null,n,!1))}}function UOe(n,e){var t,i,r,c,s,f,h,l,a;if(e.c.length!=0){for(Ln(),QN(e.c,e.c.length,null),r=new M(e),i=u(E(r),154);r.a<r.c.c.length;)t=u(E(r),154),lQ(i.e.c,t.e.c)&&!(nZ(SSn(i.e).b,t.e.d)||nZ(SSn(t.e).b,i.e.d))?i=(hi(i.k,t.k),hi(i.b,t.b),hi(i.c,t.c),Ki(i.i,t.i),hi(i.d,t.d),hi(i.j,t.j),c=y.Math.min(i.e.c,t.e.c),s=y.Math.min(i.e.d,t.e.d),f=y.Math.max(i.e.c+i.e.b,t.e.c+t.e.b),h=f-c,l=y.Math.max(i.e.d+i.e.a,t.e.d+t.e.a),a=l-s,LPn(i.e,c,s,h,a),bpe(i.f,t.f),!i.a&&(i.a=t.a),hi(i.g,t.g),nn(i.g,t),i):(SUn(n,i),i=t);SUn(n,i)}}function GOe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;for(h=new Z,c=new M(e.a);c.a<c.c.c.length;)for(r=u(E(c),10),f=new M(r.j);f.a<f.c.c.length;){for(s=u(E(f),12),a=null,A=hh(s.g),D=0,_=A.length;D<_;++D)O=A[D],Q4(O.d.i,t)||(P=qR(n,e,t,O,O.c,(gr(),Jc),a),P!=a&&Fn(h.c,P),P.c&&(a=P));for(l=null,m=hh(s.e),k=0,j=m.length;k<j;++k)p=m[k],Q4(p.c.i,t)||(P=qR(n,e,t,p,p.d,(gr(),Vu),l),P!=l&&Fn(h.c,P),P.c&&(l=P))}for(g=new M(h);g.a<g.c.c.length;)d=u(E(g),453),qr(e.a,d.a,0)!=-1||nn(e.a,d.a),d.c&&Fn(i.c,d)}function zOe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;for(d=new rr(u(z(n,(mS(),dan)),8)),d.a=y.Math.max(d.a-t.b-t.c,0),d.b=y.Math.max(d.b-t.d-t.a,0),r=B(z(n,han)),(r==null||(Jn(r),r<=0))&&(r=1.3),f=new Z,m=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));m.e!=m.i.gc();)p=u(ue(m),27),s=new mSn(p),Fn(f.c,s);switch(g=u(z(n,Vq),320),g.g){case 3:j=LPe(f,e,d.a,d.b,(l=i,Jn(r),l));break;case 1:j=jIe(f,e,d.a,d.b,(a=i,Jn(r),a));break;default:j=VOe(f,e,d.a,d.b,(h=i,Jn(r),h))}c=new hC(j),k=QR(c,e,t,d.a,d.b,i,(Jn(r),r)),Gb(n,k.a,k.b,!1,!0)}function XOe(n,e,t,i){var r,c,s,f,h,l;if(f=n.j,f==(en(),sc)&&e!=(Ai(),Qf)&&e!=(Ai(),Ia)&&(f=jUn(n,t),gi(n,f),!(n.q?n.q:(Ln(),Ln(),Wh))._b((cn(),Fw))&&f!=sc&&(n.n.a!=0||n.n.b!=0)&&U(n,Fw,X7e(n,f))),e==(Ai(),tl)){switch(l=0,f.g){case 1:case 3:c=n.i.o.a,c>0&&(l=n.n.a/c);break;case 2:case 4:r=n.i.o.b,r>0&&(l=n.n.b/r)}U(n,(W(),f0),l)}if(h=n.o,s=n.a,i)s.a=i.a,s.b=i.b,n.d=!0;else if(e!=Qf&&e!=Ia&&f!=sc)switch(f.g){case 1:s.a=h.a/2;break;case 2:s.a=h.a,s.b=h.b/2;break;case 3:s.a=h.a/2,s.b=h.b;break;case 4:s.b=h.b/2}else s.a=h.a/2,s.b=h.b/2}function X5(n){var e,t,i,r,c,s,f,h,l,a;if(n.Pj())if(a=n.Ej(),h=n.Qj(),a>0)if(e=new BQ(n.pj()),t=a,c=t<100?null:new R1(t),P7(n,t,e.g),r=t==1?n.Ij(4,N(e,0),null,0,h):n.Ij(6,e,null,-1,h),n.Mj()){for(i=new ne(e);i.e!=i.i.gc();)c=n.Oj(ue(i),c);c?(c.nj(r),c.oj()):n.Jj(r)}else c?(c.nj(r),c.oj()):n.Jj(r);else P7(n,n.Ej(),n.Fj()),n.Jj(n.Ij(6,(Ln(),sr),null,-1,h));else if(n.Mj())if(a=n.Ej(),a>0){for(f=n.Fj(),l=a,P7(n,a,f),c=l<100?null:new R1(l),i=0;i<l;++i)s=f[i],c=n.Oj(s,c);c&&c.oj()}else P7(n,n.Ej(),n.Fj());else P7(n,n.Ej(),n.Fj())}function VOe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j;for(f=F(Ii,Cr,28,n.c.length,15,1),g=new dT(new Qmn),EZ(g,n),l=0,k=new Z;g.b.c.length!=0;)if(s=u(g.b.c.length==0?null:sn(g.b,0),163),l>1&&Pu(s)*ao(s)/2>f[0]){for(c=0;c<k.c.length-1&&Pu(s)*ao(s)/2>f[c];)++c;m=new Jl(k,0,c+1),d=new hC(m),a=Pu(s)/ao(s),h=QR(d,e,new up,t,i,r,a),tt(ff(d.e),h),Tp(ym(g,d),_m),p=new Jl(k,c+1,k.c.length),EZ(g,p),k.c.length=0,l=0,bIn(f,f.length,0)}else j=g.b.c.length==0?null:sn(g.b,0),j!=null&&T$(g,0),l>0&&(f[l]=f[l-1]),f[l]+=Pu(s)*ao(s),++l,Fn(k.c,s);return k}function WOe(n,e){var t,i,r,c;t=e.b,c=new _u(t.j),r=0,i=t.j,i.c.length=0,gb(u(od(n.b,(en(),Xn),(Lb(),u0)),15),t),r=_k(c,r,new bpn,i),gb(u(od(n.b,Xn,va),15),t),r=_k(c,r,new opn,i),gb(u(od(n.b,Xn,c0),15),t),gb(u(od(n.b,Zn,u0),15),t),gb(u(od(n.b,Zn,va),15),t),r=_k(c,r,new wpn,i),gb(u(od(n.b,Zn,c0),15),t),gb(u(od(n.b,ae,u0),15),t),r=_k(c,r,new gpn,i),gb(u(od(n.b,ae,va),15),t),r=_k(c,r,new ppn,i),gb(u(od(n.b,ae,c0),15),t),gb(u(od(n.b,Wn,u0),15),t),r=_k(c,r,new hpn,i),gb(u(od(n.b,Wn,va),15),t),gb(u(od(n.b,Wn,c0),15),t)}function JOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;for(f=new M(e);f.a<f.c.c.length;)c=u(E(f),239),c.e=null,c.c=0;for(h=null,s=new M(e);s.a<s.c.c.length;)if(c=u(E(s),239),d=c.d[0],!(t&&d.k!=(Vn(),zt))){for(p=u(v(d,(W(),C3)),15).Kc();p.Ob();)g=u(p.Pb(),10),(!t||g.k==(Vn(),zt))&&((!c.e&&(c.e=new Z),c.e).Fc(n.b[g.c.p][g.p]),++n.b[g.c.p][g.p].c);if(!t&&d.k==(Vn(),zt)){if(h)for(a=u(ot(n.d,h),21).Kc();a.Ob();)for(l=u(a.Pb(),10),r=u(ot(n.d,d),21).Kc();r.Ob();)i=u(r.Pb(),10),e0e(n.b[l.c.p][l.p]).Fc(n.b[i.c.p][i.p]),++n.b[i.c.p][i.p].c;h=d}}}function QOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(t.Ug("Model order cycle breaking",1),n.a=0,n.b=0,p=new Z,a=e.a.c.length,l=new M(e.a);l.a<l.c.c.length;)h=u(E(l),10),kt(h,(W(),dt))&&(a=y.Math.max(a,u(v(h,dt),17).a+1));for(k=new M(e.a);k.a<k.c.c.length;)for(m=u(E(k),10),s=M_n(n,m,a),g=Rb(m,(gr(),Jc)).Kc();g.Ob();)for(d=u(g.Pb(),12),c=new M(d.g);c.a<c.c.c.length;)i=u(E(c),18),j=i.d.i,f=M_n(n,j,a),f<s&&Fn(p.c,i);for(r=new M(p);r.a<r.c.c.length;)i=u(E(r),18),Ub(i,!0),U(e,(W(),kj),(_n(),!0));p.c.length=0,t.Vg()}function wGn(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(s=e.d,f=t.d;s.a-f.a==0&&s.b-f.b==0;)h=!1,L(e,250)&&L(t,250)&&!h?(l=u(e,250).a,a=mi(new rr(mQ(l)),pQ(l)),i=2,r=new V(a.a/y.Math.sqrt(a.a*a.a+a.b*a.b)*i,-a.b/y.Math.sqrt(a.a*a.a+a.b*a.b)*i),tt(s,r),d=u(t,250).a,g=mi(new rr(mQ(d)),pQ(d)),i=a==g?-2:2,c=new V(g.a/y.Math.sqrt(g.a*g.a+g.b*g.b)*i,-(g.b/y.Math.sqrt(g.a*g.a+g.b*g.b))*i),tt(s,c),h=!0):(s.a+=to(n,26)*J5+to(n,27)*Q5-.5,s.b+=to(n,26)*J5+to(n,27)*Q5-.5,f.a+=to(n,26)*J5+to(n,27)*Q5-.5,f.b+=to(n,26)*J5+to(n,27)*Q5-.5)}function YOe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(l=Ije(e),k=u(v(e,(cn(),U8)),322),qi(l,new B9n(k)),j=u(v(e,Mj),299),qi(l,new F9n(j)),m=0,a=new Z,c=new V6(l);c.a!=c.b;)r=u(xC(c),36),SGn(n.c,r),g=u(v(r,(W(),bH)),15),m+=g.gc(),i=g.Kc(),nn(a,new bi(r,i));for(t.Ug("Recursive hierarchical layout",m),p=u(u(sn(a,a.c.length-1),42).b,51);p.Ob();)for(h=new M(a);h.a<h.c.c.length;)for(f=u(E(h),42),g=u(f.b,51),s=u(f.a,36);g.Ob();)if(d=u(g.Pb(),47),L(d,514)){if(s.e)break;d.Kf(s,t.eh(1));break}else d.Kf(s,t.eh(1));t.Vg()}function ZOe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(e.Ug("Layer size calculation",1),a=Pt,l=li,r=!1,f=new M(n.b);f.a<f.c.c.length;)if(s=u(E(f),30),h=s.c,h.a=0,h.b=0,s.a.c.length!=0){for(r=!0,g=new M(s.a);g.a<g.c.c.length;)d=u(E(g),10),m=d.o,p=d.d,h.a=y.Math.max(h.a,m.a+p.b+p.c);i=u(sn(s.a,0),10),k=i.n.b-i.d.d,i.k==(Vn(),Zt)&&(k-=u(v(n,(cn(),Sj)),140).d),c=u(sn(s.a,s.a.c.length-1),10),t=c.n.b+c.o.b+c.d.a,c.k==Zt&&(t+=u(v(n,(cn(),Sj)),140).a),h.b=t-k,a=y.Math.min(a,k),l=y.Math.max(l,t)}r||(a=0,l=0),n.f.b=l-a,n.c.b-=a,e.Vg()}function Ven(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(c=0,s=0,l=new M(n.a);l.a<l.c.c.length;)f=u(E(l),10),c=y.Math.max(c,f.d.b),s=y.Math.max(s,f.d.c);for(h=new M(n.a);h.a<h.c.c.length;){switch(f=u(E(h),10),t=u(v(f,(cn(),Ch)),255),t.g){case 1:m=0;break;case 2:m=1;break;case 5:m=.5;break;default:for(i=0,d=0,p=new M(f.j);p.a<p.c.c.length;)g=u(E(p),12),g.e.c.length==0||++i,g.g.c.length==0||++d;i+d==0?m=.5:m=d/(i+d)}j=n.c,a=f.o.a,P=(j.a-a)*m,m>.5?P-=s*2*(m-.5):m<.5&&(P+=c*2*(.5-m)),r=f.d.b,P<r&&(P=r),k=f.d.c,P>j.a-k-a&&(P=j.a-k-a),f.n.a=e+P}}function nAe(n){var e,t,i,r,c;if(i=u(v(n,(cn(),ou)),171),i==(Yo(),ya)){for(t=new ie(ce(ji(n).a.Kc(),new En));pe(t);)if(e=u(fe(t),18),!PNn(e))throw T(new _l(oB+qk(n)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(i==xw){for(c=new ie(ce(Qt(n).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),!PNn(r))throw T(new _l(oB+qk(n)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function gy(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(n.e&&n.c.c<n.f)throw T(new Ar("Expected "+n.f+" phases to be configured; only found "+n.c.c));for(a=u(of(n.g),9),p=Lh(n.f),c=a,f=0,l=c.length;f<l;++f)i=c[f],d=u(lk(n,i.g),188),d?nn(p,u(jKn(n,d),106)):p.c.push(null);for(m=new ii,qt(ut(_r(ut(new Cn(null,new On(p,16)),new kmn),new Okn(e)),new ymn),new Akn(m)),To(m,n.a),t=new Z,r=a,s=0,h=r.length;s<h;++s)i=r[s],hi(t,iRn(n,PT(u(lk(m,i.g),20)))),g=u(sn(p,i.g),106),g&&Fn(t.c,g);return hi(t,iRn(n,PT(u(lk(m,a[a.length-1].g+1),20)))),t}function eAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(g=new Z,r=new Z,k=null,f=e.Kc();f.Ob();)s=u(f.Pb(),17),c=new K7n(s.a),Fn(r.c,c),k&&(c.d=k,k.e=c),k=c;for(A=PIe(n),a=0;a<r.c.length;++a){for(p=null,j=HJ((Nn(0,r.c.length),u(r.c[0],661))),t=null,i=Pt,d=1;d<n.b.c.length;++d)P=j?y.Math.abs(j.b-d):y.Math.abs(d-p.b)+1,m=p?y.Math.abs(d-p.b):P+1,m<P?(l=p,h=m):(l=j,h=P),O=(D=$(B(v(n,(cn(),Ehn)))),A[d]+y.Math.pow(h,D)),O<i&&(i=O,t=l,t.c=d),j&&d==j.b&&(p=j,j=hwe(j));t&&(nn(g,Y(t.c)),t.a=!0,M5e(t))}return Ln(),QN(g.c,g.c.length,null),g}function Wen(n,e,t){var i,r,c,s,f,h;if(e.l==0&&e.m==0&&e.h==0)throw T(new _E("divide by zero"));if(n.l==0&&n.m==0&&n.h==0)return t&&(wa=Yc(0,0,0)),Yc(0,0,0);if(e.h==Cy&&e.m==0&&e.l==0)return W5e(n,t);if(h=!1,e.h>>19&&(e=tm(e),h=!h),s=KTe(e),c=!1,r=!1,i=!1,n.h==Cy&&n.m==0&&n.l==0)if(r=!0,c=!0,s==-1)n=nCn((B4(),hun)),i=!0,h=!h;else return f=znn(n,s),h&&H$(f),t&&(wa=Yc(0,0,0)),f;else n.h>>19&&(c=!0,n=tm(n),i=!0,h=!h);return s!=-1?d6e(n,s,h,c,t):AZ(n,e)<0?(t&&(c?wa=tm(n):wa=Yc(n.l,n.m,n.h)),Yc(0,0,0)):xPe(i?n:Yc(n.l,n.m,n.h),e,h,c,r,t)}function zR(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(s=n.e,h=e.e,s==0)return e;if(h==0)return n;if(c=n.d,f=e.d,c+f==2)return t=vi(n.a[0],mr),i=vi(e.a[0],mr),s==h?(a=nr(t,i),m=Se(a),p=Se(U1(a,32)),p==0?new gl(s,m):new Ya(s,2,S(C(ye,1),_e,28,15,[m,p]))):(dh(),SM(s<0?bs(i,t):bs(t,i),0)?ia(s<0?bs(i,t):bs(t,i)):U6(ia(n1(s<0?bs(i,t):bs(t,i)))));if(s==h)g=s,d=c>=f?e$(n.a,c,e.a,f):e$(e.a,f,n.a,c);else{if(r=c!=f?c>f?1:-1:fY(n.a,e.a,c),r==0)return dh(),P8;r==1?(g=s,d=ZD(n.a,c,e.a,f)):(g=h,d=ZD(e.a,f,n.a,c))}return l=new Ya(g,d.length,d),J6(l),l}function tAe(n,e){var t,i,r,c,s,f,h;if(!(n.g>e.f||e.g>n.f)){for(t=0,i=0,s=n.w.a.ec().Kc();s.Ob();)r=u(s.Pb(),12),nx(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&++t;for(f=n.r.a.ec().Kc();f.Ob();)r=u(f.Pb(),12),nx(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&--t;for(h=e.w.a.ec().Kc();h.Ob();)r=u(h.Pb(),12),nx(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&++i;for(c=e.r.a.ec().Kc();c.Ob();)r=u(c.Pb(),12),nx(cc(S(C(Ei,1),J,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&--i;t<i?new XT(n,e,i-t):i<t?new XT(e,n,t-i):(new XT(e,n,0),new XT(n,e,0))}}function iAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(l=e.c,r=PX(n.e),d=ch(N6(Fi(SX(n.e)),n.d*n.a,n.c*n.b),-.5),t=r.a-d.a,i=r.b-d.b,s=e.a,t=s.c-t,i=s.d-i,h=new M(l);h.a<h.c.c.length;){switch(f=u(E(h),407),g=f.b,p=t+g.a,j=i+g.b,m=wi(p/n.a),P=wi(j/n.b),c=f.a,c.g){case 0:a=(Vp(),uj);break;case 1:a=(Vp(),cj);break;case 2:a=(Vp(),oj);break;default:a=(Vp(),sj)}c.a?(O=wi((j+f.c)/n.b),nn(n.f,new LV(a,Y(P),Y(O))),c==(C5(),hj)?em(n,0,P,m,O):em(n,m,P,n.d-1,O)):(k=wi((p+f.c)/n.a),nn(n.f,new LV(a,Y(m),Y(k))),c==(C5(),fj)?em(n,m,0,k,P):em(n,m,P,k,n.c-1))}}function rAe(n){var e,t,i,r,c,s,f,h,l,a;for(e=new qA,t=new qA,l=Sn(Jy,(r=_5(n.b,Ke),r?Ae(gf((!r.b&&(r.b=new lo((An(),ar),pc,r)),r.b),vs)):null)),h=0;h<n.i;++h)f=u(n.g[h],179),L(f,102)?(s=u(f,19),s.Bb&kc?(!(s.Bb&wh)||!l&&(c=_5(s,Ke),(c?Ae(gf((!c.b&&(c.b=new lo((An(),ar),pc,c)),c.b),FP)):null)==null))&&ve(e,s):(a=br(s),a&&a.Bb&kc||(!(s.Bb&wh)||!l&&(i=_5(s,Ke),(i?Ae(gf((!i.b&&(i.b=new lo((An(),ar),pc,i)),i.b),FP)):null)==null))&&ve(t,s))):(dr(),u(f,69).xk()&&(f.sk()||(ve(e,f),ve(t,f))));ew(e),ew(t),n.a=u(e.g,254),u(t.g,254)}function Qg(n,e,t){var i,r,c,s,f,h,l,a,d;if(At(e,t)>=0)return t;switch(yb(Nr(n,t))){case 2:{if(Sn("",r1(n,t.qk()).xe())){if(h=q7(Nr(n,t)),f=I4(Nr(n,t)),a=Jnn(n,e,h,f),a)return a;for(r=Cen(n,e),s=0,d=r.gc();s<d;++s)if(a=u(r.Xb(s),179),ien(sD(Nr(n,a)),h))return a}return null}case 4:{if(Sn("",r1(n,t.qk()).xe())){for(i=t;i;i=gpe(Nr(n,i)))if(l=q7(Nr(n,i)),f=I4(Nr(n,i)),a=Qnn(n,e,l,f),a)return a;if(h=q7(Nr(n,t)),Sn(Pd,h))return $Z(n,e);for(c=PR(n,e),s=0,d=c.gc();s<d;++s)if(a=u(c.Xb(s),179),ien(sD(Nr(n,a)),h))return a}return null}default:return null}}function cAe(n,e,t){var i,r,c,s,f,h,l,a;if(t.gc()==0)return!1;if(f=(dr(),u(e,69).xk()),c=f?t:new Pb(t.gc()),Pl(n.e,e)){if(e.Si())for(l=t.Kc();l.Ob();)h=l.Pb(),BS(n,e,h,L(e,102)&&(u(e,19).Bb&hr)!=0)||(r=Rh(e,h),c.Hc(r)||c.Fc(r));else if(!f)for(l=t.Kc();l.Ob();)h=l.Pb(),r=Rh(e,h),c.Fc(r)}else{if(t.gc()>1)throw T(new Gn(Zy));for(a=ru(n.e.Dh(),e),i=u(n.g,124),s=0;s<n.i;++s)if(r=i[s],a.am(r.Lk())){if(t.Hc(f?r:r.md()))return!1;for(l=t.Kc();l.Ob();)h=l.Pb(),u(Bg(n,s,f?u(h,76):Rh(e,h)),76);return!0}f||(r=Rh(e,t.Kc().Pb()),c.Fc(r))}return Kt(n,c)}function uAe(n,e){var t,i,r,c,s,f,h,l,a;for(a=new Mt,f=(l=new ol(n.c).a.vc().Kc(),new P0(l));f.a.Ob();)c=(r=u(f.a.Pb(),44),u(r.md(),467)),c.b==0&&xt(a,c,a.c.b,a.c);for(;a.b!=0;)for(c=u(a.b==0?null:(oe(a.b!=0),Xo(a,a.a.a)),467),c.a==null&&(c.a=0),i=new M(c.d);i.a<i.c.c.length;)t=u(E(i),663),t.b.a==null?t.b.a=$(c.a)+t.a:e.o==(If(),Bd)?t.b.a=y.Math.min($(t.b.a),$(c.a)+t.a):t.b.a=y.Math.max($(t.b.a),$(c.a)+t.a),--t.b.b,t.b.b==0&&Re(a,t.b);for(s=(h=new ol(n.c).a.vc().Kc(),new P0(h));s.a.Ob();)c=(r=u(s.a.Pb(),44),u(r.md(),467)),e.i[c.c.p]=c.a}function oAe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;for(a=t+e.c.c.a,p=new M(e.j);p.a<p.c.c.length;){if(g=u(E(p),12),r=cc(S(C(Ei,1),J,8,0,[g.i.n,g.n,g.a])),e.k==(Vn(),_c)&&(f=u(v(g,(W(),st)),12),r.a=cc(S(C(Ei,1),J,8,0,[f.i.n,f.n,f.a])).a,e.n.a=r.a),s=new V(0,r.b),g.j==(en(),Zn))s.a=a;else if(g.j==Wn)s.a=t;else continue;if(m=y.Math.abs(r.a-s.a),!(m<=i&&!Y7e(e)))for(c=g.g.c.length+g.e.c.length>1,l=new Lf(g.b);tc(l.a)||tc(l.b);)h=u(tc(l.a)?E(l.a):E(l.b),18),d=h.c==g?h.d:h.c,y.Math.abs(cc(S(C(Ei,1),J,8,0,[d.i.n,d.n,d.a])).b-s.b)>1&&qCe(n,h,s,c,g)}}function sAe(n){var e,t,i,r,c,s;if(r=new xi(n.e,0),i=new xi(n.a,0),n.d)for(t=0;t<n.b;t++)oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++);else for(t=0;t<n.b-1;t++)oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++),bo(r);for(e=$((oe(r.b<r.d.gc()),B(r.d.Xb(r.c=r.b++))));n.f-e>_B;){for(c=e,s=0;y.Math.abs(e-c)<_B;)++s,e=$((oe(r.b<r.d.gc()),B(r.d.Xb(r.c=r.b++)))),oe(i.b<i.d.gc()),i.d.Xb(i.c=i.b++);s<n.b&&(oe(r.b>0),r.a.Xb(r.c=--r.b),EIe(n,n.b-s,c,i,r),oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++)),oe(i.b>0),i.a.Xb(i.c=--i.b)}if(!n.d)for(t=0;t<n.b-1;t++)oe(r.b<r.d.gc()),r.d.Xb(r.c=r.b++),bo(r);n.d=!0,n.c=!0}function at(){at=R,obn=(Mz(),yc).b,cse=u(N(H(yc.b),0),35),zd=u(N(H(yc.b),1),35),rse=u(N(H(yc.b),2),35),G2=yc.bb,u(N(H(yc.bb),0),35),u(N(H(yc.bb),1),35),z2=yc.fb,$9=u(N(H(yc.fb),0),35),u(N(H(yc.fb),1),35),u(N(H(yc.fb),2),19),M0=yc.qb,pse=u(N(H(yc.qb),0),35),u(N(H(yc.qb),1),19),u(N(H(yc.qb),2),19),gE=u(N(H(yc.qb),3),35),pE=u(N(H(yc.qb),4),35),R9=u(N(H(yc.qb),6),35),x9=u(N(H(yc.qb),5),19),use=yc.j,ose=yc.k,sse=yc.q,fse=yc.w,hse=yc.B,lse=yc.A,ase=yc.C,dse=yc.D,bse=yc._,wse=yc.cb,gse=yc.hb}function fAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;n.c=0,n.b=0,i=2*e.c.a.c.length+1;n:for(d=t.Kc();d.Ob();){if(a=u(d.Pb(),12),f=a.j==(en(),Xn)||a.j==ae,p=0,f){if(g=u(v(a,(W(),Xu)),10),!g)continue;p+=LSe(n,i,a,g)}else{for(l=new M(a.g);l.a<l.c.c.length;)if(h=u(E(l),18),r=h.d,r.i.c==e.c){nn(n.a,a);continue n}else p+=n.g[r.p];for(s=new M(a.e);s.a<s.c.c.length;)if(c=u(E(s),18),r=c.c,r.i.c==e.c){nn(n.a,a);continue n}else p-=n.g[r.p]}a.e.c.length+a.g.c.length>0?(n.f[a.p]=p/(a.e.c.length+a.g.c.length),n.c=y.Math.min(n.c,n.f[a.p]),n.b=y.Math.max(n.b,n.f[a.p])):f&&(n.f[a.p]=p)}}function hAe(n){n.b=null,n.bb=null,n.fb=null,n.qb=null,n.a=null,n.c=null,n.d=null,n.e=null,n.f=null,n.n=null,n.M=null,n.L=null,n.Q=null,n.R=null,n.K=null,n.db=null,n.eb=null,n.g=null,n.i=null,n.j=null,n.k=null,n.gb=null,n.o=null,n.p=null,n.q=null,n.r=null,n.$=null,n.ib=null,n.S=null,n.T=null,n.t=null,n.s=null,n.u=null,n.v=null,n.w=null,n.B=null,n.A=null,n.C=null,n.D=null,n.F=null,n.G=null,n.H=null,n.I=null,n.J=null,n.P=null,n.Z=null,n.U=null,n.V=null,n.W=null,n.X=null,n.Y=null,n._=null,n.ab=null,n.cb=null,n.hb=null,n.nb=null,n.lb=null,n.mb=null,n.ob=null,n.pb=null,n.jb=null,n.kb=null,n.N=!1,n.O=!1}function lAe(n,e,t){var i,r,c,s;for(t.Ug("Graph transformation ("+n.a+")",1),s=Cb(e.a),c=new M(e.b);c.a<c.c.c.length;)r=u(E(c),30),hi(s,r.a);if(i=u(v(e,(cn(),Ufn)),428),i==(wk(),WI))switch(u(v(e,Lo),88).g){case 2:Q6(e,s);break;case 3:j5(e,s);break;case 4:n.a==(V4(),dj)?(j5(e,s),HD(e,s)):(HD(e,s),j5(e,s))}else if(n.a==(V4(),dj))switch(u(v(e,Lo),88).g){case 2:Q6(e,s),HD(e,s);break;case 3:j5(e,s),Q6(e,s);break;case 4:Q6(e,s),j5(e,s)}else switch(u(v(e,Lo),88).g){case 2:Q6(e,s),HD(e,s);break;case 3:Q6(e,s),j5(e,s);break;case 4:j5(e,s),Q6(e,s)}t.Vg()}function aAe(n){var e,t,i,r,c,s,f,h;for(c=new M(n.a.b);c.a<c.c.c.length;)r=u(E(c),86),r.b.c=r.g.c,r.b.d=r.g.d;for(h=new V(Pt,Pt),e=new V(li,li),i=new M(n.a.b);i.a<i.c.c.length;)t=u(E(i),86),h.a=y.Math.min(h.a,t.g.c),h.b=y.Math.min(h.b,t.g.d),e.a=y.Math.max(e.a,t.g.c+t.g.b),e.b=y.Math.max(e.b,t.g.d+t.g.a);for(f=pT(n.c).a.nc();f.Ob();)s=u(f.Pb(),42),t=u(s.b,86),h.a=y.Math.min(h.a,t.g.c),h.b=y.Math.min(h.b,t.g.d),e.a=y.Math.max(e.a,t.g.c+t.g.b),e.b=y.Math.max(e.b,t.g.d+t.g.a);n.d=HM(new V(h.a,h.b)),n.e=mi(new V(e.a,e.b),h),n.a.a.c.length=0,n.a.b.c.length=0}function dAe(n){i5();var e,t,i,r,c,s,f;for(f=new Hyn,t=new M(n);t.a<t.c.c.length;)e=u(E(t),148),(!f.b||e.c>=f.b.c)&&(f.b=e),(!f.c||e.c<=f.c.c)&&(f.d=f.c,f.c=e),(!f.e||e.d>=f.e.d)&&(f.e=e),(!f.f||e.d<=f.f.d)&&(f.f=e);return i=new eS((nm(),r0)),Q7(n,OZn,new Fu(S(C(aj,1),Kn,382,0,[i]))),s=new eS(Ow),Q7(n,IZn,new Fu(S(C(aj,1),Kn,382,0,[s]))),r=new eS(Iw),Q7(n,PZn,new Fu(S(C(aj,1),Kn,382,0,[r]))),c=new eS(d2),Q7(n,SZn,new Fu(S(C(aj,1),Kn,382,0,[c]))),pR(i.c,r0),pR(r.c,Iw),pR(c.c,d2),pR(s.c,Ow),f.a.c.length=0,hi(f.a,i.c),hi(f.a,Qo(r.c)),hi(f.a,c.c),hi(f.a,Qo(s.c)),f}function bAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;for(e.Ug(PVn,1),p=$(B(z(n,(_h(),Xw)))),s=$(B(z(n,(Bf(),l9)))),f=u(z(n,h9),107),NQ((!n.a&&(n.a=new q(Ye,n,10,11)),n.a)),a=fGn((!n.a&&(n.a=new q(Ye,n,10,11)),n.a),p,s),!n.a&&(n.a=new q(Ye,n,10,11)),l=new M(a);l.a<l.c.c.length;)for(h=u(E(l),186),r=new M(h.a);r.a<r.c.c.length;)i=u(E(r),172),g=new tJ(i.s,i.t,$(B(z(n,l9)))),FQ(g,i),nn(h.d,g);d=cFn(a,s),m=y.Math.max(d.a,$(B(z(n,f9)))-(f.b+f.c)),c=y.Math.max(d.b,$(B(z(n,UO)))-(f.d+f.a)),t=c-d.b,ht(n,s9,t),ht(n,A3,m),ht(n,Dv,c+t),ht(n,GO,a),e.Vg()}function wAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k;for(l=new rh,a=new rh,m=new rh,k=new rh,h=$(B(v(e,(cn(),g0)))),c=$(B(v(e,Ws))),f=new M(t);f.a<f.c.c.length;)if(s=u(E(f),10),d=u(v(s,(W(),gc)),64),d==(en(),Xn))for(a.a.zc(s,a),r=new ie(ce(ji(s).a.Kc(),new En));pe(r);)i=u(fe(r),18),fi(l,i.c.i);else if(d==ae)for(k.a.zc(s,k),r=new ie(ce(ji(s).a.Kc(),new En));pe(r);)i=u(fe(r),18),fi(m,i.c.i);l.a.gc()!=0&&(g=new lD(2,c),p=Zen(g,e,l,a,-h-e.c.b),p>0&&(n.a=h+(p-1)*c,e.c.b+=n.a,e.f.b+=n.a)),m.a.gc()!=0&&(g=new lD(1,c),p=Zen(g,e,m,k,e.f.b+h-e.c.b),p>0&&(e.f.b+=h+(p-1)*c))}function gGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(a=$(B(v(n,(cn(),w0)))),i=$(B(v(n,vhn))),g=new _A,U(g,w0,a+i),l=e,P=l.d,k=l.c.i,O=l.d.i,j=jX(k.c),A=jX(O.c),r=new Z,d=j;d<=A;d++)f=new Cl(n),Ha(f,(Vn(),Ti)),U(f,(W(),st),l),U(f,Ft,(Ai(),qc)),U(f,yO,g),p=u(sn(n.b,d),30),d==j?uw(f,p.a.c.length-t,p):$i(f,p),D=$(B(v(l,m1))),D<0&&(D=0,U(l,m1,D)),f.o.b=D,m=y.Math.floor(D/2),s=new Ic,gi(s,(en(),Wn)),ic(s,f),s.n.b=m,h=new Ic,gi(h,Zn),ic(h,f),h.n.b=m,Oi(l,s),c=new Eb,Ur(c,l),U(c,Rr,null),Zi(c,h),Oi(c,P),ike(f,l,c),Fn(r.c,c),l=c;return r}function XR(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(h=u(h1(n,(en(),Wn)).Kc().Pb(),12).e,p=u(h1(n,Zn).Kc().Pb(),12).g,f=h.c.length,A=Of(u(sn(n.j,0),12));f-- >0;){for(k=(Nn(0,h.c.length),u(h.c[0],18)),r=(Nn(0,p.c.length),u(p.c[0],18)),O=r.d.e,c=qr(O,r,0),Kpe(k,r.d,c),Zi(r,null),Oi(r,null),m=k.a,e&&Re(m,new rr(A)),i=ge(r.a,0);i.b!=i.d.c;)t=u(be(i),8),Re(m,new rr(t));for(P=k.b,g=new M(r.b);g.a<g.c.c.length;)d=u(E(g),72),Fn(P.c,d);if(j=u(v(k,(cn(),Rr)),75),s=u(v(r,Rr),75),s)for(j||(j=new Tu,U(k,Rr,j)),a=ge(s,0);a.b!=a.d.c;)l=u(be(a),8),Re(j,new rr(l))}}function gAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;if(k=e.b.c.length,!(k<3)){for(p=F(ye,_e,28,k,15,1),d=0,a=new M(e.b);a.a<a.c.c.length;)l=u(E(a),30),p[d++]=l.a.c.length;for(g=new xi(e.b,2),i=1;i<k-1;i++)for(t=(oe(g.b<g.d.gc()),u(g.d.Xb(g.c=g.b++),30)),m=new M(t.a),c=0,f=0,h=0;h<p[i+1];h++)if(A=u(E(m),10),h==p[i+1]-1||bnn(n,A,i+1,i)){for(s=p[i]-1,bnn(n,A,i+1,i)&&(s=n.c.e[u(u(u(sn(n.c.b,A.p),15).Xb(0),42).a,10).p]);f<=h;){if(O=u(sn(t.a,f),10),!bnn(n,O,i+1,i))for(P=u(sn(n.c.b,O.p),15).Kc();P.Ob();)j=u(P.Pb(),42),r=n.c.e[u(j.a,10).p],(r<c||r>s)&&fi(n.b,u(j.b,18));++f}c=s}}}function Jen(n,e){var t;if(e==null||Sn(e,gu)||e.length==0&&n.k!=(l1(),N3))return null;switch(n.k.g){case 1:return JC(e,nv)?(_n(),ov):JC(e,cF)?(_n(),ga):null;case 2:try{return Y(So(e,Wi,et))}catch(i){if(i=Ot(i),L(i,130))return null;throw T(i)}case 4:try{return sw(e)}catch(i){if(i=Ot(i),L(i,130))return null;throw T(i)}case 3:return e;case 5:return RRn(n),J_n(n,e);case 6:return RRn(n),wTe(n,n.a,e);case 7:try{return t=CMe(n),t.cg(e),t}catch(i){if(i=Ot(i),L(i,33))return null;throw T(i)}default:throw T(new Ar("Invalid type set for this layout option."))}}function Qen(n){var e;switch(n.d){case 1:{if(n.Sj())return n.o!=-2;break}case 2:{if(n.Sj())return n.o==-2;break}case 3:case 5:case 4:case 6:case 7:return n.o>-2;default:return!1}switch(e=n.Rj(),n.p){case 0:return e!=null&&on(un(e))!=M6(n.k,0);case 1:return e!=null&&u(e,222).a!=Se(n.k)<<24>>24;case 2:return e!=null&&u(e,180).a!=(Se(n.k)&ui);case 6:return e!=null&&M6(u(e,168).a,n.k);case 5:return e!=null&&u(e,17).a!=Se(n.k);case 7:return e!=null&&u(e,191).a!=Se(n.k)<<16>>16;case 3:return e!=null&&$(B(e))!=n.j;case 4:return e!=null&&u(e,161).a!=n.j;default:return e==null?n.n!=null:!rt(e,n.n)}}function py(n,e,t){var i,r,c,s;return n.ol()&&n.nl()&&(s=cD(n,u(t,58)),x(s)!==x(t))?(n.xj(e),n.Dj(e,kDn(n,e,s)),n.al()&&(c=(r=u(t,54),n.ml()?n.kl()?r.Th(n.b,br(u($n(au(n.b),n.Lj()),19)).n,u($n(au(n.b),n.Lj()).Hk(),29).kk(),null):r.Th(n.b,At(r.Dh(),br(u($n(au(n.b),n.Lj()),19))),null,null):r.Th(n.b,-1-n.Lj(),null,null)),!u(s,54).Ph()&&(c=(i=u(s,54),n.ml()?n.kl()?i.Rh(n.b,br(u($n(au(n.b),n.Lj()),19)).n,u($n(au(n.b),n.Lj()).Hk(),29).kk(),c):i.Rh(n.b,At(i.Dh(),br(u($n(au(n.b),n.Lj()),19))),null,c):i.Rh(n.b,-1-n.Lj(),null,c))),c&&c.oj()),fo(n.b)&&n.Jj(n.Ij(9,t,s,e,!1)),s):t}function pGn(n){var e,t,i,r,c,s,f,h,l,a;for(i=new Z,s=new M(n.e.a);s.a<s.c.c.length;){for(r=u(E(s),125),a=0,r.k.c.length=0,t=new M(xg(r));t.a<t.c.c.length;)e=u(E(t),218),e.f&&(nn(r.k,e),++a);a==1&&Fn(i.c,r)}for(c=new M(i);c.a<c.c.c.length;)for(r=u(E(c),125);r.k.c.length==1;){for(l=u(E(new M(r.k)),218),n.b[l.c]=l.g,f=l.d,h=l.e,t=new M(xg(r));t.a<t.c.c.length;)e=u(E(t),218),rt(e,l)||(e.f?f==e.d||h==e.e?n.b[l.c]-=n.b[e.c]-e.g:n.b[l.c]+=n.b[e.c]-e.g:r==f?e.d==r?n.b[l.c]+=e.g:n.b[l.c]-=e.g:e.d==r?n.b[l.c]-=e.g:n.b[l.c]+=e.g);du(f.k,l),du(h.k,l),f==r?r=l.e:r=l.d}}function mGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(t=u(Mr(n.b,e),127),h=u(u(ot(n.r,e),21),87),h.dc()){t.n.b=0,t.n.c=0;return}for(l=n.u.Hc((zu(),Rl)),s=0,f=h.Kc(),a=null,d=0,g=0;f.Ob();)i=u(f.Pb(),117),r=$(B(i.b.of((FM(),bI)))),c=i.b.Mf().a,n.A.Hc((go(),Gd))&&Xqn(n,e),a?(p=g+a.d.c+n.w+i.d.b,s=y.Math.max(s,(Cf(),Fs(_f),y.Math.abs(d-r)<=_f||d==r||isNaN(d)&&isNaN(r)?0:p/(r-d)))):n.C&&n.C.b>0&&(s=y.Math.max(s,jxn(n.C.b+i.d.b,r))),a=i,d=r,g=c;n.C&&n.C.c>0&&(p=g+n.C.c,l&&(p+=a.d.c),s=y.Math.max(s,(Cf(),Fs(_f),y.Math.abs(d-1)<=_f||d==1||isNaN(d)&&isNaN(1)?0:p/(1-d)))),t.n.b=0,t.a.a=s}function vGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(t=u(Mr(n.b,e),127),h=u(u(ot(n.r,e),21),87),h.dc()){t.n.d=0,t.n.a=0;return}for(l=n.u.Hc((zu(),Rl)),s=0,n.A.Hc((go(),Gd))&&Vqn(n,e),f=h.Kc(),a=null,g=0,d=0;f.Ob();)i=u(f.Pb(),117),c=$(B(i.b.of((FM(),bI)))),r=i.b.Mf().b,a?(p=d+a.d.a+n.w+i.d.d,s=y.Math.max(s,(Cf(),Fs(_f),y.Math.abs(g-c)<=_f||g==c||isNaN(g)&&isNaN(c)?0:p/(c-g)))):n.C&&n.C.d>0&&(s=y.Math.max(s,jxn(n.C.d+i.d.d,c))),a=i,g=c,d=r;n.C&&n.C.a>0&&(p=d+n.C.a,l&&(p+=a.d.a),s=y.Math.max(s,(Cf(),Fs(_f),y.Math.abs(g-1)<=_f||g==1||isNaN(g)&&isNaN(1)?0:p/(1-g)))),t.n.d=0,t.a.b=s}function pAe(n,e,t,i,r,c,s,f){var h,l,a,d,g,p,m,k,j,P;if(m=!1,l=ren(t.q,e.f+e.b-t.q.f),p=i.f>e.b&&f,P=r-(t.q.e+l-s),d=(h=G5(i,P,!1),h.a),p&&d>i.f)return!1;if(p){for(g=0,j=new M(e.d);j.a<j.c.c.length;)k=u(E(j),315),g+=ren(k,i.f)+s;P=r-g}return P<i.g||(a=c==n.c.length-1&&P>=(Nn(c,n.c.length),u(n.c[c],186)).e,!p&&d>e.b&&!a)?!1:((a||p||d<=e.b)&&(a&&d>e.b?(t.d=d,uk(t,c_n(t,d))):(EFn(t.q,l),t.c=!0),uk(i,r-(t.s+t.r)),Hk(i,t.q.e+t.q.d,e.f),wC(e,i),n.c.length>c&&(Gk((Nn(c,n.c.length),u(n.c[c],186)),i),(Nn(c,n.c.length),u(n.c[c],186)).a.c.length==0&&Yl(n,c)),m=!0),m)}function kGn(n,e,t){var i,r,c,s,f,h;for(this.g=n,f=e.d.length,h=t.d.length,this.d=F(Qh,b1,10,f+h,0,1),s=0;s<f;s++)this.d[s]=e.d[s];for(c=0;c<h;c++)this.d[f+c]=t.d[c];if(e.e){if(this.e=$7(e.e),this.e.Mc(t),t.e)for(r=t.e.Kc();r.Ob();)i=u(r.Pb(),239),i!=e&&(this.e.Hc(i)?--i.c:this.e.Fc(i))}else t.e&&(this.e=$7(t.e),this.e.Mc(e));this.f=e.f+t.f,this.a=e.a+t.a,this.a>0?m$(this,this.f/this.a):Sf(e.g,e.d[0]).a!=null&&Sf(t.g,t.d[0]).a!=null?m$(this,($(Sf(e.g,e.d[0]).a)+$(Sf(t.g,t.d[0]).a))/2):Sf(e.g,e.d[0]).a!=null?m$(this,Sf(e.g,e.d[0]).a):Sf(t.g,t.d[0]).a!=null&&m$(this,Sf(t.g,t.d[0]).a)}function mAe(n,e){var t,i,r,c,s,f,h,l,a,d;for(n.a=new ZIn(n6e(y9)),i=new M(e.a);i.a<i.c.c.length;){for(t=u(E(i),855),f=new vx(S(C(M_,1),Kn,86,0,[])),nn(n.a.a,f),l=new M(t.d);l.a<l.c.c.length;)h=u(E(l),116),a=new JX(n,h),ntn(a,u(v(t.c,(W(),Dl)),21)),Zc(n.g,t)||(Ve(n.g,t,new V(h.c,h.d)),Ve(n.f,t,a)),nn(n.a.b,a),_D(f,a);for(s=new M(t.b);s.a<s.c.c.length;)c=u(E(s),602),a=new JX(n,c.Df()),Ve(n.b,c,new bi(f,a)),ntn(a,u(v(t.c,(W(),Dl)),21)),c.Bf()&&(d=new uZ(n,c.Bf(),1),ntn(d,u(v(t.c,Dl),21)),r=new vx(S(C(M_,1),Kn,86,0,[])),_D(r,d),In(n.c,c.Af(),new bi(f,d)))}return n.a}function yGn(n){var e;this.a=n,e=(Vn(),S(C(A_,1),G,273,0,[zt,Ti,Zt,_c,Sc,Gf])).length,this.b=Wa(zq,[J,jrn],[601,149],0,[e,e],2),this.c=Wa(zq,[J,jrn],[601,149],0,[e,e],2),PD(this,zt,(cn(),g0),S2),h5(this,zt,Ti,w0,Kd),U7(this,zt,_c,w0),U7(this,zt,Zt,w0),h5(this,zt,Sc,g0,S2),PD(this,Ti,Ws,T2),U7(this,Ti,_c,Ws),U7(this,Ti,Zt,Ws),h5(this,Ti,Sc,w0,Kd),aCn(this,_c,Ws),U7(this,_c,Zt,Ws),U7(this,_c,Sc,IH),aCn(this,Zt,X8),h5(this,Zt,Sc,Pv,Sv),PD(this,Sc,Ws,Ws),PD(this,Gf,Ws,T2),h5(this,Gf,zt,w0,Kd),h5(this,Gf,Sc,w0,Kd),h5(this,Gf,Ti,w0,Kd)}function vAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(s=t.Lk(),L(s,102)&&u(s,19).Bb&hr&&(g=u(t.md(),54),k=ea(n.e,g),k!=g)){if(a=Rh(s,k),O6(n,e,Jx(n,e,a)),d=null,fo(n.e)&&(i=Qg((Lu(),zi),n.e.Dh(),s),i!=$n(n.e.Dh(),n.c))){for(j=ru(n.e.Dh(),s),f=0,c=u(n.g,124),h=0;h<e;++h)r=c[h],j.am(r.Lk())&&++f;d=new GD(n.e,9,i,g,k,f,!1),d.nj(new ml(n.e,9,n.c,t,a,e,!1))}return m=u(s,19),p=br(m),p?(d=g.Th(n.e,At(g.Dh(),p),null,d),d=u(k,54).Rh(n.e,At(k.Dh(),p),null,d)):m.Bb&kc&&(l=-1-At(n.e.Dh(),m),d=g.Th(n.e,l,null,null),!u(k,54).Ph()&&(d=u(k,54).Rh(n.e,l,null,d))),d&&d.oj(),a}return t}function kAe(n){var e,t,i;for(Dg(La,S(C(a2,1),Kn,134,0,[new rG])),t=new lG(n),i=0;i<t.a.length;++i)e=J0(t,i).te().a,Sn(e,"layered")?Dg(La,S(C(a2,1),Kn,134,0,[new e8n])):Sn(e,"force")?Dg(La,S(C(a2,1),Kn,134,0,[new D5n])):Sn(e,"stress")?Dg(La,S(C(a2,1),Kn,134,0,[new x5n])):Sn(e,"mrtree")?Dg(La,S(C(a2,1),Kn,134,0,[new f8n])):Sn(e,"radial")?Dg(La,S(C(a2,1),Kn,134,0,[new w8n])):Sn(e,"disco")?Dg(La,S(C(a2,1),Kn,134,0,[new A5n,new L5n])):Sn(e,"sporeOverlap")||Sn(e,"sporeCompaction")?Dg(La,S(C(a2,1),Kn,134,0,[new k8n])):Sn(e,"rectpacking")&&Dg(La,S(C(a2,1),Kn,134,0,[new p8n]))}function jGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(g=new rr(n.o),P=e.a/g.a,f=e.b/g.b,k=e.a-g.a,c=e.b-g.b,t)for(r=x(v(n,(cn(),Ft)))===x((Ai(),qc)),m=new M(n.j);m.a<m.c.c.length;)switch(p=u(E(m),12),p.j.g){case 1:r||(p.n.a*=P);break;case 2:p.n.a+=k,r||(p.n.b*=f);break;case 3:r||(p.n.a*=P),p.n.b+=c;break;case 4:r||(p.n.b*=f)}for(l=new M(n.b);l.a<l.c.c.length;)h=u(E(l),72),a=h.n.a+h.o.a/2,d=h.n.b+h.o.b/2,j=a/g.a,s=d/g.b,j+s>=1&&(j-s>0&&d>=0?(h.n.a+=k,h.n.b+=c*s):j-s<0&&a>=0&&(h.n.a+=k*j,h.n.b+=c));n.o.a=e.a,n.o.b=e.b,U(n,(cn(),xd),(go(),i=u(of(P9),9),new _o(i,u(xs(i,i.length),9),0)))}function yAe(n,e,t,i,r,c){var s;if(!(e==null||!lx(e,Fdn,_dn)))throw T(new Gn("invalid scheme: "+e));if(!n&&!(t!=null&&ih(t,wu(35))==-1&&t.length>0&&(zn(0,t.length),t.charCodeAt(0)!=47)))throw T(new Gn("invalid opaquePart: "+t));if(n&&!(e!=null&&t7(jA,e.toLowerCase()))&&!(t==null||!lx(t,L9,N9)))throw T(new Gn(tJn+t));if(n&&e!=null&&t7(jA,e.toLowerCase())&&!nye(t))throw T(new Gn(tJn+t));if(!u8e(i))throw T(new Gn("invalid device: "+i));if(!U6e(r))throw s=r==null?"invalid segments: null":"invalid segment: "+F6e(r),T(new Gn(s));if(!(c==null||ih(c,wu(35))==-1))throw T(new Gn("invalid query: "+c))}function jAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(t.Ug("Network simplex layering",1),n.b=e,P=u(v(e,(cn(),V8)),17).a*4,j=n.b.a,j.c.length<1){t.Vg();return}for(c=kPe(n,j),k=null,r=ge(c,0);r.b!=r.d.c;){for(i=u(be(r),15),f=P*wi(y.Math.sqrt(i.gc())),s=$Pe(i),IR(pz(jhe(mz(KN(s),f),k),!0),t.eh(1)),g=n.b.b,m=new M(s.a);m.a<m.c.c.length;){for(p=u(E(m),125);g.c.length<=p.e;)bb(g,g.c.length,new Nc(n.b));a=u(p.f,10),$i(a,u(sn(g,p.e),30))}if(c.b>1)for(k=F(ye,_e,28,n.b.b.c.length,15,1),d=0,l=new M(n.b.b);l.a<l.c.c.length;)h=u(E(l),30),k[d++]=h.a.c.length}j.c.length=0,n.a=null,n.b=null,n.c=null,t.Vg()}function EAe(n,e){var t,i,r,c,s,f,h,l,a,d;for(a=new Z,d=new Mg,c=null,r=0,i=0;i<e.length;++i)switch(t=e[i],I6e(c,t)&&(r=RY(n,d,a,OO,r)),kt(t,(W(),s0))&&(c=u(v(t,s0),10)),t.k.g){case 0:for(h=TX(Mp(uc(t,(en(),Xn)),new QU));E$(h);)s=u(tQ(h),12),n.d[s.p]=r++,Fn(a.c,s);for(r=RY(n,d,a,OO,r),l=TX(Mp(uc(t,ae),new QU));E$(l);)s=u(tQ(l),12),n.d[s.p]=r++,Fn(a.c,s);break;case 3:uc(t,tln).dc()||(s=u(uc(t,tln).Xb(0),12),n.d[s.p]=r++,Fn(a.c,s)),uc(t,OO).dc()||W1(d,t);break;case 1:for(f=uc(t,(en(),Wn)).Kc();f.Ob();)s=u(f.Pb(),12),n.d[s.p]=r++,Fn(a.c,s);uc(t,Zn).Jc(new HMn(d,t))}return RY(n,d,a,OO,r),a}function Yen(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(e==null||e.length==0)return null;if(c=u(Dc(n.f,e),23),!c){for(r=(p=new ol(n.d).a.vc().Kc(),new P0(p));r.a.Ob();)if(t=(s=u(r.a.Pb(),44),u(s.md(),23)),f=t.f,m=e.length,Sn(f.substr(f.length-m,m),e)&&(e.length==f.length||Xi(f,f.length-e.length-1)==46)){if(c)return null;c=t}if(!c){for(i=(g=new ol(n.d).a.vc().Kc(),new P0(g));i.a.Ob();)if(t=(s=u(i.a.Pb(),44),u(s.md(),23)),d=t.g,d!=null){for(h=d,l=0,a=h.length;l<a;++l)if(f=h[l],m=e.length,Sn(f.substr(f.length-m,m),e)&&(e.length==f.length||Xi(f,f.length-e.length-1)==46)){if(c)return null;c=t}}}c&&Lr(n.f,e,c)}return c}function MAe(n,e){var t,i,r,c,s;for(t=new fg,s=!1,c=0;c<e.length;c++){if(i=(zn(c,e.length),e.charCodeAt(c)),i==32){for(QC(n,t,0),t.a+=" ",QC(n,t,0);c+1<e.length&&(zn(c+1,e.length),e.charCodeAt(c+1)==32);)++c;continue}if(s){i==39?c+1<e.length&&(zn(c+1,e.length),e.charCodeAt(c+1)==39)?(t.a+=String.fromCharCode(i),++c):s=!1:t.a+=String.fromCharCode(i);continue}if(ih("GyMLdkHmsSEcDahKzZv",wu(i))>0){QC(n,t,0),t.a+=String.fromCharCode(i),r=U8e(e,c),QC(n,t,r),c+=r-1;continue}i==39?c+1<e.length&&(zn(c+1,e.length),e.charCodeAt(c+1)==39)?(t.a+="'",++c):s=!0:t.a+=String.fromCharCode(i)}QC(n,t,0),jye(n)}function TAe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(A=SPn(n),h=new Z,c=n.c.length,l=c-1,a=c+1;A.a.gc()!=0;){for(;t.b!=0;)P=(oe(t.b!=0),u(Xo(t,t.a.a),118)),A.a.Bc(P)!=null,P.g=l--,Ben(P,e,t,i);for(;e.b!=0;)O=(oe(e.b!=0),u(Xo(e,e.a.a),118)),A.a.Bc(O)!=null,O.g=a++,Ben(O,e,t,i);for(f=Wi,k=A.a.ec().Kc();k.Ob();){if(m=u(k.Pb(),118),!i&&m.b>0&&m.a<=0){h.c.length=0,Fn(h.c,m);break}p=m.i-m.d,p>=f&&(p>f&&(h.c.length=0,f=p),Fn(h.c,m))}h.c.length!=0&&(s=u(sn(h,cS(r,h.c.length)),118),A.a.Bc(s)!=null,s.g=a++,Ben(s,e,t,i),h.c.length=0)}for(j=n.c.length+1,g=new M(n);g.a<g.c.c.length;)d=u(E(g),118),d.g<c&&(d.g=d.g+j)}function EGn(n,e,t){var i,r,c,s;this.j=n,this.e=XZ(n),this.o=this.j.e,this.i=!!this.o,this.p=this.i?u(sn(t,Hi(this.o).p),219):null,r=u(v(n,(W(),Hc)),21),this.g=r.Hc((pr(),cs)),this.b=new Z,this.d=new $Kn(this.e),s=u(v(this.j,P3),234),this.q=Sve(e,s,this.e),this.k=new TAn(this),c=Af(S(C(nne,1),Kn,230,0,[this,this.d,this.k,this.q])),e==(Ab(),Aj)&&!on(un(v(n,(cn(),l0))))?(i=new JZ(this.e),Fn(c.c,i),this.c=new pJ(i,s,u(this.q,413))):e==Aj&&on(un(v(n,(cn(),l0))))?(i=new JZ(this.e),Fn(c.c,i),this.c=new gxn(i,s,u(this.q,413))):this.c=new _Mn(e,this),nn(c,this.c),uGn(c,this.e),this.s=aNe(this.k)}function CAe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j;for(c=new Z,l=new M(i);l.a<l.c.c.length;)if(f=u(E(l),453),s=null,f.f==(gr(),Jc))for(m=new M(f.e);m.a<m.c.c.length;)p=u(E(m),18),j=p.d.i,Hi(j)==e?T$n(n,e,f,p,f.b,p.d):!t||Q4(j,t)?tje(n,e,f,i,p):(g=qR(n,e,t,p,f.b,Jc,s),g!=s&&Fn(c.c,g),g.c&&(s=g));else for(d=new M(f.e);d.a<d.c.c.length;)if(a=u(E(d),18),k=a.c.i,Hi(k)==e)T$n(n,e,f,a,a.c,f.b);else{if(!t||Q4(k,t))continue;g=qR(n,e,t,a,f.b,Vu,s),g!=s&&Fn(c.c,g),g.c&&(s=g)}for(h=new M(c);h.a<h.c.c.length;)f=u(E(h),453),qr(e.a,f.a,0)!=-1||nn(e.a,f.a),f.c&&Fn(r.c,f)}function MGn(n){var e,t,i,r,c,s,f;for(e=0,c=new M(n.b.a);c.a<c.c.c.length;)i=u(E(c),194),i.b=0,i.c=0;for(i_n(n,0),ax(n,n.g),IS(n.c),dz(n.c),t=(ci(),Kr),ay(nN(Yg(ay(nN(Yg(ay(Yg(n.c,t)),gKn(t)))),t))),Yg(n.c,Kr),ux(n,n.g),qFn(n,0),tGn(n,0),RHn(n,1),i_n(n,1),ax(n,n.d),IS(n.c),s=new M(n.b.a);s.a<s.c.c.length;)i=u(E(s),194),e+=y.Math.abs(i.c);for(f=new M(n.b.a);f.a<f.c.c.length;)i=u(E(f),194),i.b=0,i.c=0;for(t=us,ay(nN(Yg(ay(nN(Yg(ay(dz(Yg(n.c,t))),gKn(t)))),t))),Yg(n.c,Kr),ux(n,n.d),qFn(n,1),tGn(n,1),RHn(n,0),dz(n.c),r=new M(n.b.a);r.a<r.c.c.length;)i=u(E(r),194),e+=y.Math.abs(i.c);return e}function SAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(on(un(v(t,(cn(),Bw)))))for(f=new M(t.j);f.a<f.c.c.length;)for(s=u(E(f),12),g=hh(s.g),l=g,a=0,d=l.length;a<d;++a)h=l[a],c=h.d.i==t,r=c&&on(un(v(h,Dd))),r&&(m=h.c,p=u(ee(n.b,m),10),p||(p=my(m,(Ai(),Qf),m.j,-1,null,null,m.o,u(v(e,Lo),88),e),U(p,(W(),st),m),Ve(n.b,m,p),nn(e.a,p)),j=h.d,k=u(ee(n.b,j),10),k||(k=my(j,(Ai(),Qf),j.j,1,null,null,j.o,u(v(e,Lo),88),e),U(k,(W(),st),j),Ve(n.b,j,k),nn(e.a,k)),i=JD(h),Zi(i,u(sn(p.j,0),12)),Oi(i,u(sn(k.j,0),12)),In(n.a,h,new zM(i,e,(gr(),Jc))),u(v(e,(W(),Hc)),21).Fc((pr(),cs)))}function PAe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(r=new M(n.a.b);r.a<r.c.c.length;)for(t=u(E(r),30),h=new M(t.a);h.a<h.c.c.length;)f=u(E(h),10),e.j[f.p]=f,e.i[f.p]=e.o==(If(),Xf)?li:Pt;for(Hu(n.c),s=n.a.b,e.c==(fh(),y1)&&(s=Qo(s)),Ope(n.e,e,n.b),u7(e.p,null),c=s.Kc();c.Ob();)for(t=u(c.Pb(),30),l=t.a,e.o==(If(),Xf)&&(l=Qo(l)),g=l.Kc();g.Ob();)d=u(g.Pb(),10),e.g[d.p]==d&&ozn(n,d,e);for(uAe(n,e),i=s.Kc();i.Ob();)for(t=u(i.Pb(),30),g=new M(t.a);g.a<g.c.c.length;)d=u(E(g),10),e.p[d.p]=e.p[e.g[d.p].p],d==e.g[d.p]&&(a=$(e.i[e.j[d.p].p]),(e.o==(If(),Xf)&&a>li||e.o==Bd&&a<Pt)&&(e.p[d.p]=$(e.p[d.p])+a));n.e.xg()}function IAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;for(t.Ug("Label dummy switching",1),i=u(v(e,(cn(),dO)),232),vve(e),r=sTe(e,i),n.a=F(Ii,Cr,28,e.b.c.length,15,1),f=(Yp(),S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2])),a=0,p=f.length;a<p;++a)if(c=f[a],(c==p2||c==g2||c==Dw)&&!u(Su(r.a,c)?r.b[c.g]:null,15).dc()){Mve(n,e);break}for(h=S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2]),d=0,m=h.length;d<m;++d)c=h[d],c==p2||c==g2||c==Dw||hUn(n,u(Su(r.a,c)?r.b[c.g]:null,15));for(s=S(C(wv,1),G,232,0,[bv,D8,dv,Dw,p2,g2]),l=0,g=s.length;l<g;++l)c=s[l],(c==p2||c==g2||c==Dw)&&hUn(n,u(Su(r.a,c)?r.b[c.g]:null,15));n.a=null,t.Vg()}function TGn(n,e){var t,i,r,c,s,f,h,l,a;if(l=e,!(l.b==null||n.b==null)){for(Gg(n),z5(n),Gg(l),z5(l),t=F(ye,_e,28,n.b.length+l.b.length,15,1),a=0,i=0,s=0;i<n.b.length&&s<l.b.length;)if(r=n.b[i],c=n.b[i+1],f=l.b[s],h=l.b[s+1],c<f)i+=2;else if(c>=f&&r<=h)f<=r&&c<=h?(t[a++]=r,t[a++]=c,i+=2):f<=r?(t[a++]=r,t[a++]=h,n.b[i]=h+1,s+=2):c<=h?(t[a++]=f,t[a++]=c,i+=2):(t[a++]=f,t[a++]=h,n.b[i]=h+1);else if(h<r)s+=2;else throw T(new ec("Token#intersectRanges(): Internal Error: ["+n.b[i]+","+n.b[i+1]+"] & ["+l.b[s]+","+l.b[s+1]+"]"));for(;i<n.b.length;)t[a++]=n.b[i++],t[a++]=n.b[i++];n.b=F(ye,_e,28,a,15,1),Oc(t,0,n.b,0,a)}}function OAe(n){var e,t,i,r,c,s,f;for(e=new Z,n.g=new Z,n.d=new Z,s=new sd(new Ua(n.f.b).a);s.b;)c=Nb(s),nn(e,u(u(c.md(),42).b,86)),hl(u(c.ld(),602).Af())?nn(n.d,u(c.md(),42)):nn(n.g,u(c.md(),42));for(ax(n,n.d),ax(n,n.g),n.c=new Z_n(n.b),Mhe(n.c,(Lz(),jZn)),ux(n,n.d),ux(n,n.g),hi(e,n.c.a.b),n.e=new V(Pt,Pt),n.a=new V(li,li),i=new M(e);i.a<i.c.c.length;)t=u(E(i),86),n.e.a=y.Math.min(n.e.a,t.g.c),n.e.b=y.Math.min(n.e.b,t.g.d),n.a.a=y.Math.max(n.a.a,t.g.c+t.g.b),n.a.b=y.Math.max(n.a.b,t.g.d+t.g.a);kz(n.c,new Q0n),f=0;do r=MGn(n),++f;while((f<2||r>fa)&&f<10);kz(n.c,new Y0n),MGn(n),pwe(n.c),aAe(n.f)}function AAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(t=u(v(n,(cn(),Ft)),101),s=n.f,c=n.d,f=s.a+c.b+c.c,h=0-c.d-n.c.b,a=s.b+c.d+c.a-n.c.b,l=new Z,d=new Z,r=new M(e);r.a<r.c.c.length;){switch(i=u(E(r),10),t.g){case 1:case 2:case 3:vCe(i);break;case 4:g=u(v(i,b0),8),p=g?g.a:0,i.n.a=f*$(B(v(i,(W(),f0))))-p,OC(i,!0,!1);break;case 5:m=u(v(i,b0),8),k=m?m.a:0,i.n.a=$(B(v(i,(W(),f0))))-k,OC(i,!0,!1),s.a=y.Math.max(s.a,i.n.a+i.o.a/2)}switch(u(v(i,(W(),gc)),64).g){case 1:i.n.b=h,Fn(l.c,i);break;case 3:i.n.b=a,Fn(d.c,i)}}switch(t.g){case 1:case 2:cKn(l,n),cKn(d,n);break;case 3:uKn(l,n),uKn(d,n)}}function LAe(n,e){var t,i,r,c,s,f,h,l,a,d,g;switch(n.k.g){case 1:if(i=u(v(n,(W(),st)),18),t=u(v(i,rfn),75),t?on(un(v(i,zf)))&&(t=Pk(t)):t=new Tu,l=u(v(n,yf),12),l){if(a=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])),e<=a.a)return a.b;xt(t,a,t.a,t.a.a)}if(d=u(v(n,Es),12),d){if(g=cc(S(C(Ei,1),J,8,0,[d.i.n,d.n,d.a])),g.a<=e)return g.b;xt(t,g,t.c.b,t.c)}if(t.b>=2){for(h=ge(t,0),s=u(be(h),8),f=u(be(h),8);f.a<e&&h.b!=h.d.c;)s=f,f=u(be(h),8);return s.b+(e-s.a)/(f.a-s.a)*(f.b-s.b)}break;case 3:switch(c=u(v(u(sn(n.j,0),12),(W(),st)),12),r=c.i,c.j.g){case 1:return r.n.b;case 3:return r.n.b+r.o.b}}return KZ(n).b}function NAe(n){var e,t,i,r,c,s,f,h,l,a,d;for(s=new M(n.d.b);s.a<s.c.c.length;)for(c=u(E(s),30),h=new M(c.a);h.a<h.c.c.length;){if(f=u(E(h),10),on(un(v(f,(cn(),q8))))&&!D4(Ml(f))){i=u(Cge(Ml(f)),18),a=i.c.i,a==f&&(a=i.d.i),d=new bi(a,mi(Fi(f.n),a.n)),Ve(n.b,f,d);continue}r=new Ho(f.n.a-f.d.b,f.n.b-f.d.d,f.o.a+f.d.b+f.d.c,f.o.b+f.d.d+f.d.a),e=eSn(sMn(uMn(oMn(new VG,f),r),YZn),n.a),nSn(Jhe(z$n(new XG,S(C(aI,1),Kn,60,0,[e])),e),n.a),l=new rL,Ve(n.e,e,l),t=wl(new ie(ce(ji(f).a.Kc(),new En)))-wl(new ie(ce(Qt(f).a.Kc(),new En))),t<0?Ck(l,!0,(ci(),Kr)):t>0&&Ck(l,!0,(ci(),Xr)),f.k==(Vn(),Zt)&&sOn(l),Ve(n.f,f,e)}}function DAe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(r=u(v(n,(pt(),u9)),27),l=et,a=et,f=Wi,h=Wi,A=ge(n.b,0);A.b!=A.d.c;)P=u(be(A),40),p=P.e,m=P.f,l=y.Math.min(l,p.a-m.a/2),a=y.Math.min(a,p.b-m.b/2),f=y.Math.max(f,p.a+m.a/2),h=y.Math.max(h,p.b+m.b/2);for(g=u(z(r,(lc(),Oln)),107),O=ge(n.b,0);O.b!=O.d.c;)P=u(be(O),40),d=v(P,u9),L(d,207)&&(c=u(d,27),Bo(c,P.e.a,P.e.b),uy(c,P));for(j=ge(n.a,0);j.b!=j.d.c;)k=u(be(j),65),i=u(v(k,u9),74),i&&(e=k.a,t=Xg(i,!0,!0),dy(e,t));D=f-l+(g.b+g.c),s=h-a+(g.d+g.a),on(un(z(r,(He(),Vw))))||Gb(r,D,s,!1,!1),ht(r,K2,D-(g.b+g.c)),ht(r,R2,s-(g.d+g.a))}function CGn(n,e){var t,i,r,c,s,f,h,l,a,d;for(h=!0,r=0,l=n.g[e.p],a=e.o.b+n.o,t=n.d[e.p][2],Go(n.b,l,Y(u(sn(n.b,l),17).a-1+t)),Go(n.c,l,$(B(sn(n.c,l)))-a+t*n.f),++l,l>=n.j?(++n.j,nn(n.b,Y(1)),nn(n.c,a)):(i=n.d[e.p][1],Go(n.b,l,Y(u(sn(n.b,l),17).a+1-i)),Go(n.c,l,$(B(sn(n.c,l)))+a-i*n.f)),(n.r==(ps(),Pj)&&(u(sn(n.b,l),17).a>n.k||u(sn(n.b,l-1),17).a>n.k)||n.r==Ij&&($(B(sn(n.c,l)))>n.n||$(B(sn(n.c,l-1)))>n.n))&&(h=!1),s=new ie(ce(ji(e).a.Kc(),new En));pe(s);)c=u(fe(s),18),f=c.c.i,n.g[f.p]==l&&(d=CGn(n,f),r=r+u(d.a,17).a,h=h&&on(un(d.b)));return n.g[e.p]=l,r=r+n.d[e.p][0],new bi(Y(r),(_n(),!!h))}function SGn(n,e){var t,i,r,c,s;t=$(B(v(e,(cn(),Ws)))),t<2&&U(e,Ws,2),i=u(v(e,Lo),88),i==(ci(),Jf)&&U(e,Lo,FC(e)),r=u(v(e,Ute),17),r.a==0?U(e,(W(),P3),new dx):U(e,(W(),P3),new qT(r.a)),c=un(v(e,G8)),c==null&&U(e,G8,(_n(),x(v(e,$l))===x((El(),Bv)))),qt(new Cn(null,new On(e.a,16)),new OG(n)),qt(rc(new Cn(null,new On(e.b,16)),new _U),new AG(n)),s=new yGn(e),U(e,(W(),E2),s),H7(n.a),hf(n.a,(Vi(),Vs),u(v(e,Nd),188)),hf(n.a,Jh,u(v(e,$d),188)),hf(n.a,Ac,u(v(e,U8),188)),hf(n.a,Fc,u(v(e,vO),188)),hf(n.a,zr,Dve(u(v(e,$l),223))),MX(n.a,INe(e)),U(e,bH,gy(n.a,e))}function Zen(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P;for(d=new de,s=new Z,C_n(n,t,n.d.Ag(),s,d),C_n(n,i,n.d.Bg(),s,d),n.b=.2*(k=AHn(rc(new Cn(null,new On(s,16)),new R3n)),j=AHn(rc(new Cn(null,new On(s,16)),new K3n)),y.Math.min(k,j)),c=0,f=0;f<s.c.length-1;f++)for(h=(Nn(f,s.c.length),u(s.c[f],118)),m=f+1;m<s.c.length;m++)c+=zen(n,h,(Nn(m,s.c.length),u(s.c[m],118)));for(g=u(v(e,(W(),P3)),234),c>=2&&(P=JHn(s,!0,g),!n.e&&(n.e=new okn(n)),F8e(n.e,P,s,n.b)),NFn(s,g),FAe(s),p=-1,a=new M(s);a.a<a.c.c.length;)l=u(E(a),118),!(y.Math.abs(l.s-l.c)<vh)&&(p=y.Math.max(p,l.o),n.d.yg(l,r,n.c));return n.d.a.a.$b(),p+1}function $Ae(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(d=u(DM((s=ge(new sl(e).a.d,0),new sg(s))),40),m=d?u(v(d,(pt(),cq)),40):null,r=1;d&&m;){for(h=0,D=0,t=d,i=m,f=0;f<r;f++)t=n$(t),i=n$(i),D+=$(B(v(t,(pt(),Nv)))),h+=$(B(v(i,Nv)));if(A=$(B(v(m,(pt(),j1)))),O=$(B(v(d,j1))),g=OY(n,d,m),p=A+h+n.b+g-O-D,0<p){for(l=e,a=0;l&&l!=i;)++a,l=u(v(l,$O),40);if(l)for(P=p/a,l=e;l!=i;)j=$(B(v(l,j1)))+p,U(l,j1,j),k=$(B(v(l,Nv)))+p,U(l,Nv,k),p-=P,l=u(v(l,$O),40);else return}++r,d.d.b==0?d=Aen(new sl(e),r):d=u(DM((c=ge(new sl(d).a.d,0),new sg(c))),40),m=d?u(v(d,cq),40):null}}function xAe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;return g=n.c[e],p=n.c[t],m=u(v(g,(W(),C3)),15),!!m&&m.gc()!=0&&m.Hc(p)||(k=g.k!=(Vn(),Ti)&&p.k!=Ti,j=u(v(g,s0),10),P=u(v(p,s0),10),O=j!=P,A=!!j&&j!=g||!!P&&P!=p,D=$x(g,(en(),Xn)),_=$x(p,ae),A=A|($x(g,ae)||$x(p,Xn)),X=A&&O||D||_,k&&X)||g.k==(Vn(),_c)&&p.k==zt||p.k==(Vn(),_c)&&g.k==zt?!1:(a=n.c[e],c=n.c[t],r=mFn(n.e,a,c,(en(),Wn)),h=mFn(n.i,a,c,Zn),aCe(n.f,a,c),l=LRn(n.b,a,c)+u(r.a,17).a+u(h.a,17).a+n.f.d,f=LRn(n.b,c,a)+u(r.b,17).a+u(h.b,17).a+n.f.b,n.a&&(d=u(v(a,st),12),s=u(v(c,st),12),i=ZBn(n.g,d,s),l+=u(i.a,17).a,f+=u(i.b,17).a),l>f)}function PGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(l=Pt,a=Pt,f=li,h=li,g=new M(e.i);g.a<g.c.c.length;)d=u(E(g),68),r=u(u(ee(n.g,d.a),42).b,27),Bo(r,d.b.c,d.b.d),l=y.Math.min(l,r.i),a=y.Math.min(a,r.j),f=y.Math.max(f,r.i+r.g),h=y.Math.max(h,r.j+r.f);for(p=u(z(n.c,(Wk(),Qce)),107),Gb(n.c,f-l+(p.b+p.c),h-a+(p.d+p.a),!0,!0),rnn(n.c,-l+p.b,-a+p.d),i=new ne($On(n.c));i.e!=i.i.gc();)t=u(ue(i),74),s=Xg(t,!0,!0),m=Fh(t),j=ra(t),k=new V(m.i+m.g/2,m.j+m.f/2),c=new V(j.i+j.g/2,j.j+j.f/2),P=mi(new V(c.a,c.b),k),vm(P,m.g,m.f),tt(k,P),O=mi(new V(k.a,k.b),c),vm(O,j.g,j.f),tt(c,O),j7(s,k.a,k.b),y7(s,c.a,c.b)}function RAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;for(e.Ug("Label dummy removal",1),i=$(B(v(n,(cn(),C2)))),r=$(B(v(n,qw))),l=u(v(n,Lo),88),h=new M(n.b);h.a<h.c.c.length;)for(f=u(E(h),30),d=new xi(f.a,0);d.b<d.d.gc();)a=(oe(d.b<d.d.gc()),u(d.d.Xb(d.c=d.b++),10)),a.k==(Vn(),Sc)&&(g=u(v(a,(W(),st)),18),m=$(B(v(g,m1))),s=x(v(a,S3))===x((Co(),Sa)),t=new rr(a.n),s&&(t.b+=m+i),c=new V(a.o.a,a.o.b+(a.k==Sc&&!s4(ut(u(v(a,F8),15).Oc(),new Z3(new qU))).Bd((Va(),v3))?0:-m-i)),p=u(v(a,F8),15),l==(ci(),us)||l==Wf?qMe(p,t,r,c,s,l):Q6e(p,t,r,c),hi(g.b,p),XR(a,x(v(n,$l))===x((El(),Yj))),bo(d));e.Vg()}function KAe(n){n.q||(n.q=!0,n.p=hc(n,0),n.a=hc(n,1),jt(n.a,0),n.f=hc(n,2),jt(n.f,1),Rt(n.f,2),n.n=hc(n,3),Rt(n.n,3),Rt(n.n,4),Rt(n.n,5),Rt(n.n,6),n.g=hc(n,4),jt(n.g,7),Rt(n.g,8),n.c=hc(n,5),jt(n.c,7),jt(n.c,8),n.i=hc(n,6),jt(n.i,9),jt(n.i,10),jt(n.i,11),jt(n.i,12),Rt(n.i,13),n.j=hc(n,7),jt(n.j,9),n.d=hc(n,8),jt(n.d,3),jt(n.d,4),jt(n.d,5),jt(n.d,6),Rt(n.d,7),Rt(n.d,8),Rt(n.d,9),Rt(n.d,10),n.b=hc(n,9),Rt(n.b,0),Rt(n.b,1),n.e=hc(n,10),Rt(n.e,1),Rt(n.e,2),Rt(n.e,3),Rt(n.e,4),jt(n.e,5),jt(n.e,6),jt(n.e,7),jt(n.e,8),jt(n.e,9),jt(n.e,10),Rt(n.e,11),n.k=hc(n,11),Rt(n.k,0),Rt(n.k,1),n.o=Je(n,12),n.s=Je(n,13))}function ntn(n,e){e.dc()&&Nh(n.j,!0,!0,!0,!0),rt(e,(en(),ef))&&Nh(n.j,!0,!0,!0,!1),rt(e,os)&&Nh(n.j,!1,!0,!0,!0),rt(e,Do)&&Nh(n.j,!0,!0,!1,!0),rt(e,Cs)&&Nh(n.j,!0,!1,!0,!0),rt(e,Wu)&&Nh(n.j,!1,!0,!0,!1),rt(e,ss)&&Nh(n.j,!1,!0,!1,!0),rt(e,$o)&&Nh(n.j,!0,!1,!1,!0),rt(e,tf)&&Nh(n.j,!0,!1,!0,!1),rt(e,mu)&&Nh(n.j,!0,!0,!0,!0),rt(e,su)&&Nh(n.j,!0,!0,!0,!0),rt(e,mu)&&Nh(n.j,!0,!0,!0,!0),rt(e,pu)&&Nh(n.j,!0,!0,!0,!0),rt(e,vu)&&Nh(n.j,!0,!0,!0,!0),rt(e,Ju)&&Nh(n.j,!0,!0,!0,!0),rt(e,Uc)&&Nh(n.j,!0,!0,!0,!0)}function IGn(n,e,t){var i,r,c,s,f,h,l,a,d;if(n.a!=e.jk())throw T(new Gn(ev+e.xe()+n0));if(i=r1((Lu(),zi),e).Jl(),i)return i.jk().wi().ri(i,t);if(s=r1(zi,e).Ll(),s){if(t==null)return null;if(f=u(t,15),f.dc())return"";for(d=new Hl,c=f.Kc();c.Ob();)r=c.Pb(),Er(d,s.jk().wi().ri(s,r)),d.a+=" ";return bN(d,d.a.length-1)}if(a=r1(zi,e).Ml(),!a.dc()){for(l=a.Kc();l.Ob();)if(h=u(l.Pb(),156),h.fk(t))try{if(d=h.jk().wi().ri(h,t),d!=null)return d}catch(g){if(g=Ot(g),!L(g,103))throw T(g)}throw T(new Gn("Invalid value: '"+t+"' for datatype :"+e.xe()))}return u(e,847).ok(),t==null?null:L(t,180)?""+u(t,180).a:wo(t)==oI?TCn(A9[0],u(t,206)):Jr(t)}function BAe(n){var e,t,i,r,c,s,f,h,l,a;for(l=new Mt,f=new Mt,c=new M(n);c.a<c.c.c.length;)i=u(E(c),131),i.v=0,i.n=i.i.c.length,i.u=i.t.c.length,i.n==0&&xt(l,i,l.c.b,l.c),i.u==0&&i.r.a.gc()==0&&xt(f,i,f.c.b,f.c);for(s=-1;l.b!=0;)for(i=u(Ux(l,0),131),t=new M(i.t);t.a<t.c.c.length;)e=u(E(t),274),a=e.b,a.v=y.Math.max(a.v,i.v+1),s=y.Math.max(s,a.v),--a.n,a.n==0&&xt(l,a,l.c.b,l.c);if(s>-1){for(r=ge(f,0);r.b!=r.d.c;)i=u(be(r),131),i.v=s;for(;f.b!=0;)for(i=u(Ux(f,0),131),t=new M(i.i);t.a<t.c.c.length;)e=u(E(t),274),h=e.a,h.r.a.gc()==0&&(h.v=y.Math.min(h.v,i.v-1),--h.u,h.u==0&&xt(f,h,f.c.b,f.c))}}function FAe(n){var e,t,i,r,c,s,f,h,l,a;for(l=new Z,f=new Z,s=new M(n);s.a<s.c.c.length;)r=u(E(s),118),JA(r,r.f.c.length),PE(r,r.k.c.length),r.d==0&&Fn(l.c,r),r.i==0&&r.e.b==0&&Fn(f.c,r);for(i=-1;l.c.length!=0;)for(r=u(Yl(l,0),118),t=new M(r.k);t.a<t.c.c.length;)e=u(E(t),132),a=e.b,gG(a,y.Math.max(a.o,r.o+1)),i=y.Math.max(i,a.o),JA(a,a.d-1),a.d==0&&Fn(l.c,a);if(i>-1){for(c=new M(f);c.a<c.c.c.length;)r=u(E(c),118),r.o=i;for(;f.c.length!=0;)for(r=u(Yl(f,0),118),t=new M(r.f);t.a<t.c.c.length;)e=u(E(t),132),h=e.a,!(h.e.b>0)&&(gG(h,y.Math.min(h.o,r.o-1)),PE(h,h.i-1),h.i==0&&Fn(f.c,h))}}function OGn(n,e,t,i,r){var c,s,f,h;return h=Pt,s=!1,f=Uen(n,mi(new V(e.a,e.b),n),tt(new V(t.a,t.b),r),mi(new V(i.a,i.b),t)),c=!!f&&!(y.Math.abs(f.a-n.a)<=Yb&&y.Math.abs(f.b-n.b)<=Yb||y.Math.abs(f.a-e.a)<=Yb&&y.Math.abs(f.b-e.b)<=Yb),f=Uen(n,mi(new V(e.a,e.b),n),t,r),f&&((y.Math.abs(f.a-n.a)<=Yb&&y.Math.abs(f.b-n.b)<=Yb)==(y.Math.abs(f.a-e.a)<=Yb&&y.Math.abs(f.b-e.b)<=Yb)||c?h=y.Math.min(h,z6(mi(f,t))):s=!0),f=Uen(n,mi(new V(e.a,e.b),n),i,r),f&&(s||(y.Math.abs(f.a-n.a)<=Yb&&y.Math.abs(f.b-n.b)<=Yb)==(y.Math.abs(f.a-e.a)<=Yb&&y.Math.abs(f.b-e.b)<=Yb)||c)&&(h=y.Math.min(h,z6(mi(f,i)))),h}function AGn(n){rb(n,new gd(UE(eb(Yd(nb(Zd(new Fa,la),PXn),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new X0n),cu))),Q(n,la,i8,rn(Con)),Q(n,la,oP,(_n(),!0)),Q(n,la,r2,rn(dZn)),Q(n,la,d3,rn(bZn)),Q(n,la,a3,rn(wZn)),Q(n,la,Xm,rn(aZn)),Q(n,la,r8,rn(Pon)),Q(n,la,Vm,rn(gZn)),Q(n,la,Jtn,rn(Ton)),Q(n,la,Ytn,rn(Eon)),Q(n,la,Ztn,rn(Mon)),Q(n,la,nin,rn(Son)),Q(n,la,Qtn,rn(EI))}function _Ae(n){var e,t,i,r,c,s,f,h;for(e=null,i=new M(n);i.a<i.c.c.length;)t=u(E(i),239),$(Sf(t.g,t.d[0]).a),t.b=null,t.e&&t.e.gc()>0&&t.c==0&&(!e&&(e=new Z),Fn(e.c,t));if(e)for(;e.c.length!=0;){if(t=u(Yl(e,0),239),t.b&&t.b.c.length>0){for(c=(!t.b&&(t.b=new Z),new M(t.b));c.a<c.c.c.length;)if(r=u(E(c),239),J9(Sf(r.g,r.d[0]).a)==J9(Sf(t.g,t.d[0]).a)){if(qr(n,r,0)>qr(n,t,0))return new bi(r,t)}else if($(Sf(r.g,r.d[0]).a)>$(Sf(t.g,t.d[0]).a))return new bi(r,t)}for(f=(!t.e&&(t.e=new Z),t.e).Kc();f.Ob();)s=u(f.Pb(),239),h=(!s.b&&(s.b=new Z),s.b),z0(0,h.c.length),d6(h.c,0,t),s.c==h.c.length&&Fn(e.c,s)}return null}function HAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(e.Ug("Interactive crossing minimization",1),s=0,c=new M(n.b);c.a<c.c.c.length;)i=u(E(c),30),i.p=s++;for(g=XZ(n),j=new jz(g.length),uGn(new Fu(S(C(nne,1),Kn,230,0,[j])),g),k=0,s=0,r=new M(n.b);r.a<r.c.c.length;){for(i=u(E(r),30),t=0,d=0,a=new M(i.a);a.a<a.c.c.length;)for(h=u(E(a),10),h.n.a>0&&(t+=h.n.a+h.o.a/2,++d),m=new M(h.j);m.a<m.c.c.length;)p=u(E(m),12),p.p=k++;for(d>0&&(t/=d),P=F(Ii,Cr,28,i.a.c.length,15,1),f=0,l=new M(i.a);l.a<l.c.c.length;)h=u(E(l),10),h.p=f++,P[h.p]=LAe(h,t),h.k==(Vn(),Ti)&&U(h,(W(),cfn),P[h.p]);Ln(),Yt(i.a,new B7n(P)),aUn(j,g,s,!0),++s}e.Vg()}function V5(n,e){var t,i,r,c,s,f,h,l,a;if(e.e==5){TGn(n,e);return}if(l=e,!(l.b==null||n.b==null)){for(Gg(n),z5(n),Gg(l),z5(l),t=F(ye,_e,28,n.b.length+l.b.length,15,1),a=0,i=0,s=0;i<n.b.length&&s<l.b.length;)if(r=n.b[i],c=n.b[i+1],f=l.b[s],h=l.b[s+1],c<f)t[a++]=n.b[i++],t[a++]=n.b[i++];else if(c>=f&&r<=h)f<=r&&c<=h?i+=2:f<=r?(n.b[i]=h+1,s+=2):c<=h?(t[a++]=r,t[a++]=f-1,i+=2):(t[a++]=r,t[a++]=f-1,n.b[i]=h+1,s+=2);else if(h<r)s+=2;else throw T(new ec("Token#subtractRanges(): Internal Error: ["+n.b[i]+","+n.b[i+1]+"] - ["+l.b[s]+","+l.b[s+1]+"]"));for(;i<n.b.length;)t[a++]=n.b[i++],t[a++]=n.b[i++];n.b=F(ye,_e,28,a,15,1),Oc(t,0,n.b,0,a)}}function LGn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(f=Xg(e,!1,!1),P=Qk(f),i&&(P=Pk(P)),A=$(B(z(e,(M5(),w_)))),j=(oe(P.b!=0),u(P.a.a.c,8)),d=u(Zo(P,1),8),P.b>2?(a=new Z,hi(a,new Jl(P,1,P.b)),c=mzn(a,A+n.a),O=new bR(c),Ur(O,e),Fn(t.c,O)):i?O=u(ee(n.b,Fh(e)),272):O=u(ee(n.b,ra(e)),272),h=Fh(e),i&&(h=ra(e)),s=_je(j,h),l=A+n.a,s.a?(l+=y.Math.abs(j.b-d.b),k=new V(d.a,(d.b+j.b)/2)):(l+=y.Math.abs(j.a-d.a),k=new V((d.a+j.a)/2,d.b)),i?Ve(n.d,e,new pZ(O,s,k,l)):Ve(n.c,e,new pZ(O,s,k,l)),Ve(n.b,e,O),m=(!e.n&&(e.n=new q(Sr,e,1,7)),e.n),p=new ne(m);p.e!=p.i.gc();)g=u(ue(p),135),r=fy(n,g,!0,0,0),Fn(t.c,r)}function qAe(n){var e,t,i,r,c,s,f;if(!n.A.dc()){if(n.A.Hc((go(),rE))&&(u(Mr(n.b,(en(),Xn)),127).k=!0,u(Mr(n.b,ae),127).k=!0,e=n.q!=(Ai(),tl)&&n.q!=qc,dG(u(Mr(n.b,Zn),127),e),dG(u(Mr(n.b,Wn),127),e),dG(n.g,e),n.A.Hc(Gd)&&(u(Mr(n.b,Xn),127).j=!0,u(Mr(n.b,ae),127).j=!0,u(Mr(n.b,Zn),127).k=!0,u(Mr(n.b,Wn),127).k=!0,n.g.k=!0)),n.A.Hc(iE))for(n.a.j=!0,n.a.k=!0,n.g.j=!0,n.g.k=!0,f=n.B.Hc((io(),I9)),r=jx(),c=0,s=r.length;c<s;++c)i=r[c],t=u(Mr(n.i,i),314),t&&(eZ(i)?(t.j=!0,t.k=!0):(t.j=!f,t.k=!f));n.A.Hc(Qw)&&n.B.Hc((io(),uE))&&(n.g.j=!0,n.g.j=!0,n.a.j||(n.a.j=!0,n.a.k=!0,n.a.e=!0))}}function UAe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(i=new M(n.e.b);i.a<i.c.c.length;)for(t=u(E(i),30),c=new M(t.a);c.a<c.c.c.length;)if(r=u(E(c),10),p=n.i[r.p],l=p.a.e,h=p.d.e,r.n.b=l,P=h-l-r.o.b,e=HR(r),g=(cw(),(r.q?r.q:(Ln(),Ln(),Wh))._b((cn(),d0))?d=u(v(r,d0),203):d=u(v(Hi(r),z8),203),d),e&&(g==I2||g==P2)&&(r.o.b+=P),e&&(g==RH||g==I2||g==P2)){for(k=new M(r.j);k.a<k.c.c.length;)m=u(E(k),12),(en(),su).Hc(m.j)&&(a=u(ee(n.k,m),125),m.n.b=a.e-l);for(f=new M(r.b);f.a<f.c.c.length;)s=u(E(f),72),j=u(v(r,a0),21),j.Hc((lw(),Ts))?s.n.b+=P:j.Hc(el)&&(s.n.b+=P/2);(g==I2||g==P2)&&uc(r,(en(),ae)).Jc(new ekn(P))}}function GAe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(l=new Z,h=new M(e.a);h.a<h.c.c.length;)for(s=u(E(h),10),g=uc(s,(en(),Zn)).Kc();g.Ob();)for(d=u(g.Pb(),12),r=new M(d.g);r.a<r.c.c.length;)i=u(E(r),18),!(!fr(i)&&i.c.i.c==i.d.i.c||fr(i)||i.d.i.c!=t)&&Fn(l.c,i);for(f=Qo(t.a).Kc();f.Ob();)for(s=u(f.Pb(),10),g=uc(s,(en(),Wn)).Kc();g.Ob();)for(d=u(g.Pb(),12),r=new M(d.e);r.a<r.c.c.length;)if(i=u(E(r),18),!(!fr(i)&&i.c.i.c==i.d.i.c||fr(i)||i.c.i.c!=e)&&l.c.length!=0){for(a=new xi(l,l.c.length),c=(oe(a.b>0),u(a.a.Xb(a.c=--a.b),18));c!=i&&a.b>0;)n.a[c.p]=!0,n.a[i.p]=!0,c=(oe(a.b>0),u(a.a.Xb(a.c=--a.b),18));a.b>0&&bo(a)}}function NGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;if(!n.b)return!1;for(s=null,g=null,h=new r$(null,null),r=1,h.a[1]=n.b,d=h;d.a[r];)l=r,f=g,g=d,d=d.a[r],i=n.a.Ne(e,d.d),r=i<0?0:1,i==0&&(!t.c||mc(d.e,t.d))&&(s=d),!(d&&d.b)&&!O0(d.a[r])&&(O0(d.a[1-r])?g=g.a[l]=jC(d,r):O0(d.a[1-r])||(p=g.a[1-l],p&&(!O0(p.a[1-l])&&!O0(p.a[l])?(g.b=!1,p.b=!0,d.b=!0):(c=f.a[1]==g?1:0,O0(p.a[l])?f.a[c]=fLn(g,l):O0(p.a[1-l])&&(f.a[c]=jC(g,l)),d.b=f.a[c].b=!0,f.a[c].a[0].b=!1,f.a[c].a[1].b=!1))));return s&&(t.b=!0,t.d=s.e,d!=s&&(a=new r$(d.d,d.e),zye(n,h,s,a),g==s&&(g=a)),g.a[g.a[1]==d?1:0]=d.a[d.a[0]?0:1],--n.c),n.b=h.a[1],n.b&&(n.b.b=!1),t.b}function zAe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(r=new M(n.a.a.b);r.a<r.c.c.length;)for(i=u(E(r),60),h=i.c.Kc();h.Ob();)f=u(h.Pb(),60),i.a!=f.a&&(hl(n.a.d)?d=n.a.g.ff(i,f):d=n.a.g.gf(i,f),c=i.b.a+i.d.b+d-f.b.a,c=y.Math.ceil(c),c=y.Math.max(0,c),iQ(i,f)?(s=hb(new za,n.d),l=wi(y.Math.ceil(f.b.a-i.b.a)),e=l-(f.b.a-i.b.a),a=xp(i).a,t=i,a||(a=xp(f).a,e=-e,t=f),a&&(t.b.a-=e,a.n.a-=e),qs(Ns(Ls(Ds(As(new hs,y.Math.max(0,l)),1),s),n.c[i.a.d])),qs(Ns(Ls(Ds(As(new hs,y.Math.max(0,-l)),1),s),n.c[f.a.d]))):(g=1,(L(i.g,154)&&L(f.g,10)||L(f.g,154)&&L(i.g,10))&&(g=2),qs(Ns(Ls(Ds(As(new hs,wi(c)),g),n.c[i.a.d]),n.c[f.a.d]))))}function DGn(n,e,t){var i,r,c,s,f,h,l,a,d,g;if(t)for(i=-1,a=new xi(e,0);a.b<a.d.gc();){if(f=(oe(a.b<a.d.gc()),u(a.d.Xb(a.c=a.b++),10)),d=n.c[f.c.p][f.p].a,d==null){for(s=i+1,c=new xi(e,a.b);c.b<c.d.gc();)if(g=m1e(n,(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),10))).a,g!=null){s=(Jn(g),g);break}d=(i+s)/2,n.c[f.c.p][f.p].a=d,n.c[f.c.p][f.p].d=(Jn(d),d),n.c[f.c.p][f.p].b=1}i=(Jn(d),d)}else{for(r=0,l=new M(e);l.a<l.c.c.length;)f=u(E(l),10),n.c[f.c.p][f.p].a!=null&&(r=y.Math.max(r,$(n.c[f.c.p][f.p].a)));for(r+=2,h=new M(e);h.a<h.c.c.length;)f=u(E(h),10),n.c[f.c.p][f.p].a==null&&(d=to(n.i,24)*Oy*r-1,n.c[f.c.p][f.p].a=d,n.c[f.c.p][f.p].d=d,n.c[f.c.p][f.p].b=1)}}function XAe(n,e,t){var i,r,c,s,f,h,l,a,d;for(!t&&(t=t6e(e.q.getTimezoneOffset())),r=(e.q.getTimezoneOffset()-t.a)*6e4,f=new sV(nr(vc(e.q.getTime()),r)),h=f,f.q.getTimezoneOffset()!=e.q.getTimezoneOffset()&&(r>0?r-=864e5:r+=864e5,h=new sV(nr(vc(e.q.getTime()),r))),a=new fg,l=n.a.length,c=0;c<l;)if(i=Xi(n.a,c),i>=97&&i<=122||i>=65&&i<=90){for(s=c+1;s<l&&Xi(n.a,s)==i;++s);zNe(a,i,s-c,f,h,t),c=s}else if(i==39){if(++c,c<l&&Xi(n.a,c)==39){a.a+="'",++c;continue}for(d=!1;!d;){for(s=c;s<l&&Xi(n.a,s)!=39;)++s;if(s>=l)throw T(new Gn("Missing trailing '"));s+1<l&&Xi(n.a,s+1)==39?++s:d=!0,Be(a,qo(n.a,c,s)),c=s+1}}else a.a+=String.fromCharCode(i),++c;return a.a}function VAe(){Ge(ng,new Xvn),Ge(Ue,new r6n),Ge(Ss,new w6n),Ge(Mf,new y6n),Ge(jU,new j6n),Ge(EA,new E6n),Ge(Kl,new M6n),Ge(O9,new T6n),Ge(fE,new Rvn),Ge(gU,new Kvn),Ge(Aa,new Bvn),Ge(Ps,new Fvn),Ge(Ef,new _vn),Ge(y0,new Hvn),Ge(eg,new qvn),Ge(ku,new Uvn),Ge(Zw,new Gvn),Ge(pc,new zvn),Ge(jr,new Vvn),Ge(fu,new Wvn),Ge(Gt,new Jvn),Ge(C(Ru,1),new Qvn),Ge(p3,new Yvn),Ge(S8,new Zvn),Ge(oI,new n6n),Ge(mbn,new e6n),Ge(si,new t6n),Ge(Ndn,new i6n),Ge(xdn,new c6n),Ge(cbn,new u6n),Ge(MA,new o6n),Ge(sv,new s6n),Ge(Gi,new f6n),Ge(iun,new h6n),Ge(t0,new l6n),Ge(run,new a6n),Ge(ebn,new d6n),Ge(vbn,new b6n),Ge(i0,new g6n),Ge(fn,new p6n),Ge($dn,new m6n),Ge(kbn,new v6n)}function $Gn(n,e){var t,i,r,c,s,f,h,l,a;if(n==null)return gu;if(h=e.a.zc(n,e),h!=null)return"[...]";for(t=new fd(ur,"[","]"),r=n,c=0,s=r.length;c<s;++c)i=r[c],i!=null&&wo(i).i&4?Array.isArray(i)&&(a=bk(i),!(a>=14&&a<=16))?e.a._b(i)?(t.a?Be(t.a,t.b):t.a=new mo(t.d),C6(t.a,"[...]")):(f=cd(i),l=new R6(e),pl(t,$Gn(f,l))):L(i,183)?pl(t,MEe(u(i,183))):L(i,195)?pl(t,fye(u(i,195))):L(i,201)?pl(t,vje(u(i,201))):L(i,2111)?pl(t,hye(u(i,2111))):L(i,53)?pl(t,EEe(u(i,53))):L(i,376)?pl(t,_Ee(u(i,376))):L(i,846)?pl(t,jEe(u(i,846))):L(i,109)&&pl(t,yEe(u(i,109))):pl(t,i==null?gu:Jr(i));return t.a?t.e.length==0?t.a.a:t.a.a+(""+t.e):t.c}function Nm(n,e){var t,i,r,c;c=n.F,e==null?(n.F=null,um(n,null)):(n.F=(Jn(e),e),i=ih(e,wu(60)),i!=-1?(r=(Ri(0,i,e.length),e.substr(0,i)),ih(e,wu(46))==-1&&!Sn(r,i3)&&!Sn(r,m8)&&!Sn(r,GP)&&!Sn(r,v8)&&!Sn(r,k8)&&!Sn(r,y8)&&!Sn(r,j8)&&!Sn(r,E8)&&(r=wJn),t=RM(e,wu(62)),t!=-1&&(r+=""+(zn(t+1,e.length+1),e.substr(t+1))),um(n,r)):(r=e,ih(e,wu(46))==-1&&(i=ih(e,wu(91)),i!=-1&&(r=(Ri(0,i,e.length),e.substr(0,i))),!Sn(r,i3)&&!Sn(r,m8)&&!Sn(r,GP)&&!Sn(r,v8)&&!Sn(r,k8)&&!Sn(r,y8)&&!Sn(r,j8)&&!Sn(r,E8)?(r=wJn,i!=-1&&(r+=""+(zn(i,e.length+1),e.substr(i)))):r=e),um(n,r),r==e&&(n.F=n.D))),n.Db&4&&!(n.Db&1)&&it(n,new Mi(n,1,5,c,e))}function xGn(n,e){var t,i,r,c,s,f,h,l,a,d;if(h=e.length-1,f=(zn(h,e.length),e.charCodeAt(h)),f==93){if(s=ih(e,wu(91)),s>=0)return r=Q5e(n,(Ri(1,s,e.length),e.substr(1,s-1))),a=(Ri(s+1,h,e.length),e.substr(s+1,h-(s+1))),ENe(n,a,r)}else{if(t=-1,wun==null&&(wun=new RegExp("\\d")),wun.test(String.fromCharCode(f))&&(t=CV(e,wu(46),h-1),t>=0)){i=u(YD(n,M$n(n,(Ri(1,t,e.length),e.substr(1,t-1))),!1),61),l=0;try{l=So((zn(t+1,e.length+1),e.substr(t+1)),Wi,et)}catch(g){throw g=Ot(g),L(g,130)?(c=g,T(new eC(c))):T(g)}if(l<i.gc())return d=i.Xb(l),L(d,76)&&(d=u(d,76).md()),u(d,58)}if(t<0)return u(YD(n,M$n(n,(zn(1,e.length+1),e.substr(1))),!1),58)}return null}function WAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(e.Ug("Label dummy insertions",1),d=new Z,s=$(B(v(n,(cn(),C2)))),l=$(B(v(n,qw))),a=u(v(n,Lo),88),p=new M(n.a);p.a<p.c.c.length;)for(g=u(E(p),10),c=new ie(ce(Qt(g).a.Kc(),new En));pe(c);)if(r=u(fe(c),18),r.c.i!=r.d.i&&yN(r.b,qZn)){for(k=gme(r),m=Lh(r.b.c.length),t=CTe(n,r,k,m),Fn(d.c,t),i=t.o,f=new xi(r.b,0);f.b<f.d.gc();)h=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),72)),x(v(h,Sh))===x(($f(),Rv))&&(a==(ci(),us)||a==Wf?(i.a+=h.o.a+l,i.b=y.Math.max(i.b,h.o.b)):(i.a=y.Math.max(i.a,h.o.a),i.b+=h.o.b+l),Fn(m.c,h),bo(f));a==(ci(),us)||a==Wf?(i.a-=l,i.b+=s+k):i.b+=s-l+k}hi(n.a,d),e.Vg()}function JAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(n.c=n.e,m=un(v(e,(cn(),Gte))),p=m==null||(Jn(m),m),c=u(v(e,(W(),Hc)),21).Hc((pr(),cs)),r=u(v(e,Ft),101),t=!(r==(Ai(),Ud)||r==tl||r==qc),p&&(t||!c)){for(d=new M(e.a);d.a<d.c.c.length;)l=u(E(d),10),l.p=0;for(g=new Z,a=new M(e.a);a.a<a.c.c.length;)if(l=u(E(a),10),i=vUn(n,l,null),i){for(h=new jQ,Ur(h,e),U(h,Dl,u(i.b,21)),VW(h.d,e.d),U(h,Ev,null),f=u(i.a,15).Kc();f.Ob();)s=u(f.Pb(),10),nn(h.a,s),s.a=h;g.Fc(h)}c&&(x(v(e,Rw))===x((dd(),P_))?n.c=n.b:x(v(e,Rw))===x(I_)?n.c=n.d:n.c=n.a)}else g=new Fu(S(C(DZn,1),OXn,36,0,[e]));return x(v(e,Rw))!==x((dd(),Aw))&&(Ln(),g.jd(new hwn)),g}function Dm(n,e,t){var i,r,c,s,f,h,l;if(l=n.c,!e&&(e=Gdn),n.c=e,n.Db&4&&!(n.Db&1)&&(h=new Mi(n,1,2,l,n.c),t?t.nj(h):t=h),l!=e){if(L(n.Cb,292))n.Db>>16==-10?t=u(n.Cb,292).Yk(e,t):n.Db>>16==-15&&(!e&&(e=(An(),Zf)),!l&&(l=(An(),Zf)),n.Cb.Yh()&&(h=new ml(n.Cb,1,13,l,e,f1(no(u(n.Cb,62)),n),!1),t?t.nj(h):t=h));else if(L(n.Cb,90))n.Db>>16==-23&&(L(e,90)||(e=(An(),Os)),L(l,90)||(l=(An(),Os)),n.Cb.Yh()&&(h=new ml(n.Cb,1,10,l,e,f1(Pc(u(n.Cb,29)),n),!1),t?t.nj(h):t=h));else if(L(n.Cb,457))for(f=u(n.Cb,850),s=(!f.b&&(f.b=new DE(new aL)),f.b),c=(i=new sd(new Ua(s.a).a),new $E(i));c.a.b;)r=u(Nb(c.a).ld(),89),t=Dm(r,TS(r,f),t)}return t}function QAe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(s=on(un(z(n,(cn(),Bw)))),g=u(z(n,_w),21),h=!1,l=!1,d=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));d.e!=d.i.gc()&&(!h||!l);){for(c=u(ue(d),123),f=0,r=$h(Eo(S(C(Ao,1),Kn,20,0,[(!c.d&&(c.d=new Dn(Vt,c,8,5)),c.d),(!c.e&&(c.e=new Dn(Vt,c,7,4)),c.e)])));pe(r)&&(i=u(fe(r),74),a=s&&_b(i)&&on(un(z(i,Dd))),t=bGn((!i.b&&(i.b=new Dn(he,i,4,7)),i.b),c)?n==St(Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84))):n==St(Gr(u(N((!i.b&&(i.b=new Dn(he,i,4,7)),i.b),0),84))),!((a||t)&&(++f,f>1))););(f>0||g.Hc((zu(),Rl))&&(!c.n&&(c.n=new q(Sr,c,1,7)),c.n).i>0)&&(h=!0),f>1&&(l=!0)}h&&e.Fc((pr(),cs)),l&&e.Fc((pr(),R8))}function RGn(n){var e,t,i,r,c,s,f,h,l,a,d,g;if(g=u(z(n,(He(),Hd)),21),g.dc())return null;if(f=0,s=0,g.Hc((go(),rE))){for(a=u(z(n,v9),101),i=2,t=2,r=2,c=2,e=St(n)?u(z(St(n),_d),88):u(z(n,_d),88),l=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));l.e!=l.i.gc();)if(h=u(ue(l),123),d=u(z(h,H2),64),d==(en(),sc)&&(d=Ken(h,e),ht(h,H2,d)),a==(Ai(),qc))switch(d.g){case 1:i=y.Math.max(i,h.i+h.g);break;case 2:t=y.Math.max(t,h.j+h.f);break;case 3:r=y.Math.max(r,h.i+h.g);break;case 4:c=y.Math.max(c,h.j+h.f)}else switch(d.g){case 1:i+=h.g+2;break;case 2:t+=h.f+2;break;case 3:r+=h.g+2;break;case 4:c+=h.f+2}f=y.Math.max(i,r),s=y.Math.max(t,c)}return Gb(n,f,s,!0,!0)}function VR(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(O=u(Wr(fC(ut(new Cn(null,new On(e.d,16)),new S7n(t)),new P7n(t)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),d=et,a=Wi,h=new M(e.b.j);h.a<h.c.c.length;)f=u(E(h),12),f.j==t&&(d=y.Math.min(d,f.p),a=y.Math.max(a,f.p));if(d==et)for(s=0;s<O.gc();s++)QJ(u(O.Xb(s),105),t,s);else for(A=F(ye,_e,28,r.length,15,1),X0e(A,A.length),P=O.Kc();P.Ob();){for(j=u(P.Pb(),105),c=u(ee(n.b,j),183),l=0,k=d;k<=a;k++)c[k]&&(l=y.Math.max(l,i[k]));if(j.i){for(p=j.i.c,D=new ni,g=0;g<r.length;g++)r[p][g]&&fi(D,Y(A[g]));for(;sf(D,Y(l));)++l}for(QJ(j,t,l),m=d;m<=a;m++)c[m]&&(i[m]=l+1);j.i&&(A[j.i.c]=l)}}function YAe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(r=null,i=new M(e.a);i.a<i.c.c.length;)t=u(E(i),10),HR(t)?c=(f=hb(i7(new za,t),n.f),h=hb(i7(new za,t),n.f),l=new zW(t,!0,f,h),a=t.o.b,d=(cw(),(t.q?t.q:(Ln(),Ln(),Wh))._b((cn(),d0))?g=u(v(t,d0),203):g=u(v(Hi(t),z8),203),g),p=1e4,d==P2&&(p=1),m=qs(Ns(Ls(As(Ds(new hs,p),wi(y.Math.ceil(a))),f),h)),d==I2&&fi(n.d,m),mUn(n,Qo(uc(t,(en(),Wn))),l),mUn(n,uc(t,Zn),l),l):c=(k=hb(i7(new za,t),n.f),qt(ut(new Cn(null,new On(t.j,16)),new c3n),new UMn(n,k)),new zW(t,!1,k,k)),n.i[t.p]=c,r&&(s=r.c.d.a+jg(n.n,r.c,t)+t.d.d,r.b||(s+=r.c.o.b),qs(Ns(Ls(Ds(As(new hs,wi(y.Math.ceil(s))),0),r.d),c.a))),r=c}function ZAe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p;for(c=new tHn(e),d=PSe(n,e,c),p=y.Math.max($(B(v(e,(cn(),m1)))),1),a=new M(d.a);a.a<a.c.c.length;)l=u(E(a),42),h=tBn(u(l.a,8),u(l.b,8),p),Wt=!0,Wt=Wt&db(t,new V(h.c,h.d)),Wt=Wt&db(t,ab(new V(h.c,h.d),h.b,0)),Wt=Wt&db(t,ab(new V(h.c,h.d),0,h.a)),Wt&db(t,ab(new V(h.c,h.d),h.b,h.a));switch(g=c.d,f=tBn(u(d.b.a,8),u(d.b.b,8),p),g==(en(),Wn)||g==Zn?(i.c[g.g]=y.Math.min(i.c[g.g],f.d),i.b[g.g]=y.Math.max(i.b[g.g],f.d+f.a)):(i.c[g.g]=y.Math.min(i.c[g.g],f.c),i.b[g.g]=y.Math.max(i.b[g.g],f.c+f.b)),r=li,s=c.c.i.d,g.g){case 4:r=s.c;break;case 2:r=s.b;break;case 1:r=s.a;break;case 3:r=s.d}return i.a[g.g]=y.Math.max(i.a[g.g],r),c}function nLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;f=u(ee(e.c,n),468),O=e.a.c,h=e.a.c+e.a.b,kn=f.f,Rn=f.a,s=kn<Rn,k=new V(O,kn),A=new V(h,Rn),r=(O+h)/2,j=new V(r,kn),D=new V(r,Rn),c=YTe(n,kn,Rn),X=Of(e.B),tn=new V(r,c),yn=Of(e.D),t=u6e(S(C(Ei,1),J,8,0,[X,tn,yn])),p=!1,P=e.B.i,P&&P.c&&f.d&&(l=s&&P.p<P.c.a.c.length-1||!s&&P.p>0,l?l&&(g=P.p,s?++g:--g,d=u(sn(P.c.a,g),10),i=oRn(d),p=!(mR(i,X,t[0])||AIn(i,X,t[0]))):p=!0),m=!1,_=e.D.i,_&&_.c&&f.e&&(a=s&&_.p>0||!s&&_.p<_.c.a.c.length-1,a?(g=_.p,s?--g:++g,d=u(sn(_.c.a,g),10),i=oRn(d),m=!(mR(i,t[0],yn)||AIn(i,t[0],yn))):m=!0),p&&m&&Re(n.a,tn),p||r5(n.a,S(C(Ei,1),J,8,0,[k,j])),m||r5(n.a,S(C(Ei,1),J,8,0,[D,A]))}function eLe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(p=e.c.length,g=0,d=new M(n.b);d.a<d.c.c.length;)if(a=u(E(d),30),P=a.a,P.c.length!=0){for(j=new M(P),l=0,O=null,r=u(E(j),10),c=null;r;){if(c=u(sn(e,r.p),261),c.c>=0){for(h=null,f=new xi(a.a,l+1);f.b<f.d.gc()&&(s=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),10)),h=u(sn(e,s.p),261),!(h.d==c.d&&h.c<c.c));)h=null;h&&(O&&(Go(i,r.p,Y(u(sn(i,r.p),17).a-1)),u(sn(t,O.p),15).Mc(c)),c=vye(c,r,p++),Fn(e.c,c),nn(t,new Z),O?(u(sn(t,O.p),15).Fc(c),nn(i,Y(1))):nn(i,Y(0)))}m=null,j.a<j.c.c.length&&(m=u(E(j),10),k=u(sn(e,m.p),261),u(sn(t,r.p),15).Fc(k),Go(i,m.p,Y(u(sn(i,m.p),17).a+1))),c.d=g,c.c=l++,O=r,r=m}++g}}function tLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;if(c=u(v(n,(W(),st)),74),!!c){for(i=n.a,r=new rr(t),tt(r,Ske(n)),Q4(n.d.i,n.c.i)?(g=n.c,d=cc(S(C(Ei,1),J,8,0,[g.n,g.a])),mi(d,t)):d=Of(n.c),xt(i,d,i.a,i.a.a),p=Of(n.d),v(n,gH)!=null&&tt(p,u(v(n,gH),8)),xt(i,p,i.c.b,i.c),nw(i,r),s=Xg(c,!0,!0),mC(s,u(N((!c.b&&(c.b=new Dn(he,c,4,7)),c.b),0),84)),vC(s,u(N((!c.c&&(c.c=new Dn(he,c,5,8)),c.c),0),84)),dy(i,s),a=new M(n.b);a.a<a.c.c.length;)l=u(E(a),72),f=u(v(l,st),135),Ob(f,l.o.a),Ib(f,l.o.b),Bo(f,l.n.a+r.a,l.n.b+r.b),ht(f,(Hp(),$_),un(v(l,$_)));h=u(v(n,(cn(),Rr)),75),h?(nw(h,r),ht(c,Rr,h)):ht(c,Rr,null),e==(El(),R3)?ht(c,$l,R3):ht(c,$l,null)}}function KGn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn;if(t.c.length!=0){for(m=new Z,p=new M(t);p.a<p.c.c.length;)g=u(E(p),27),nn(m,new V(g.i,g.j));for(i.dh(e,"Before removing overlaps");onn(n,t);)ES(n,t,!1);if(i.dh(e,"After removing overlaps"),f=0,h=0,r=null,t.c.length!=0&&(r=(Nn(0,t.c.length),u(t.c[0],27)),f=r.i-(Nn(0,m.c.length),u(m.c[0],8)).a,h=r.j-(Nn(0,m.c.length),u(m.c[0],8)).b),s=y.Math.sqrt(f*f+h*h),d=V6e(t),c=1,d.a.gc()!=0){for(a=d.a.ec().Kc();a.Ob();)l=u(a.Pb(),27),k=n.f,j=k.i+k.g/2,P=k.j+k.f/2,O=l.i+l.g/2,A=l.j+l.f/2,D=O-j,_=A-P,X=y.Math.sqrt(D*D+_*_),tn=D/X,yn=_/X,eu(l,l.i+tn*s),tu(l,l.j+yn*s);i.dh(e,"Child movement "+c),++c}n.a&&n.a.Gg(new _u(d)),KGn(n,e,new _u(d),i)}}function WR(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;return h=n,a=mi(new V(e.a,e.b),n),l=t,d=mi(new V(i.a,i.b),t),g=h.a,j=h.b,m=l.a,O=l.b,p=a.a,P=a.b,k=d.a,A=d.b,r=k*P-p*A,Cf(),Fs(jh),y.Math.abs(0-r)<=jh||r==0||isNaN(0)&&isNaN(r)?!1:(s=1/r*((g-m)*P-(j-O)*p),f=1/r*-(-(g-m)*A+(j-O)*k),c=(Fs(jh),(y.Math.abs(0-s)<=jh||s==0||isNaN(0)&&isNaN(s)?0:0<s?-1:0>s?1:sb(isNaN(0),isNaN(s)))<0&&(Fs(jh),(y.Math.abs(s-1)<=jh||s==1||isNaN(s)&&isNaN(1)?0:s<1?-1:s>1?1:sb(isNaN(s),isNaN(1)))<0)&&(Fs(jh),(y.Math.abs(0-f)<=jh||f==0||isNaN(0)&&isNaN(f)?0:0<f?-1:0>f?1:sb(isNaN(0),isNaN(f)))<0)&&(Fs(jh),(y.Math.abs(f-1)<=jh||f==1||isNaN(f)&&isNaN(1)?0:f<1?-1:f>1?1:sb(isNaN(f),isNaN(1)))<0)),c)}function iLe(n){var e,t,i,r;if(t=n.D!=null?n.D:n.B,e=ih(t,wu(91)),e!=-1){i=(Ri(0,e,t.length),t.substr(0,e)),r=new Hl;do r.a+="[";while((e=w4(t,91,++e))!=-1);Sn(i,i3)?r.a+="Z":Sn(i,m8)?r.a+="B":Sn(i,GP)?r.a+="C":Sn(i,v8)?r.a+="D":Sn(i,k8)?r.a+="F":Sn(i,y8)?r.a+="I":Sn(i,j8)?r.a+="J":Sn(i,E8)?r.a+="S":(r.a+="L",r.a+=""+i,r.a+=";");try{return null}catch(c){if(c=Ot(c),!L(c,63))throw T(c)}}else if(ih(t,wu(46))==-1){if(Sn(t,i3))return so;if(Sn(t,m8))return Ru;if(Sn(t,GP))return fs;if(Sn(t,v8))return Ii;if(Sn(t,k8))return cg;if(Sn(t,y8))return ye;if(Sn(t,j8))return Ra;if(Sn(t,E8))return V2}return null}function rLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn;for(n.e=e,f=rMe(e),X=new Z,i=new M(f);i.a<i.c.c.length;){for(t=u(E(i),15),tn=new Z,Fn(X.c,tn),h=new ni,m=t.Kc();m.Ob();){for(p=u(m.Pb(),27),c=fy(n,p,!0,0,0),Fn(tn.c,c),k=p.i,j=p.j,g=(!p.n&&(p.n=new q(Sr,p,1,7)),p.n),d=new ne(g);d.e!=d.i.gc();)l=u(ue(d),135),r=fy(n,l,!1,k,j),Fn(tn.c,r);for(_=(!p.c&&(p.c=new q(Qu,p,9,9)),p.c),O=new ne(_);O.e!=O.i.gc();)for(P=u(ue(O),123),s=fy(n,P,!1,k,j),Fn(tn.c,s),A=P.i+k,D=P.j+j,g=(!P.n&&(P.n=new q(Sr,P,1,7)),P.n),a=new ne(g);a.e!=a.i.gc();)l=u(ue(a),135),r=fy(n,l,!1,A,D),Fn(tn.c,r);Ki(h,PT(Eo(S(C(Ao,1),Kn,20,0,[Sl(p),cy(p)]))))}GTe(n,h,tn)}return n.f=new Vjn(X),Ur(n.f,e),n.f}function cLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;for(d=new $W(new PG(n));d.c!=d.d.a.d;)for(a=WDn(d),f=u(a.d,58),e=u(a.e,58),s=f.Dh(),k=0,D=(s.i==null&&bh(s),s.i).length;k<D;++k)if(l=(c=(s.i==null&&bh(s),s.i),k>=0&&k<c.length?c[k]:null),l.rk()&&!l.sk()){if(L(l,102))h=u(l,19),!(h.Bb&kc)&&(X=br(h),!(X&&X.Bb&kc))&&qIe(n,h,f,e);else if(dr(),u(l,69).xk()&&(t=(_=l,u(_?u(e,54).gi(_):null,160)),t))for(p=u(f.Mh(l),160),i=t.gc(),j=0,m=p.gc();j<m;++j)if(g=p.Tl(j),L(g,102)){if(A=p.Ul(j),r=Df(n,A),r==null&&A!=null){if(O=u(g,19),!n.b||O.Bb&kc||br(O))continue;r=A}if(!t.Ol(g,r)){for(P=0;P<i;++P)if(t.Tl(P)==g&&x(t.Ul(P))===x(r)){t.Ti(t.gc()-1,P),--i;break}}}else t.Ol(p.Tl(j),p.Ul(j))}}function uLe(n,e,t){var i;if(t.Ug("StretchWidth layering",1),e.a.c.length==0){t.Vg();return}for(n.c=e,n.t=0,n.u=0,n.i=Pt,n.g=li,n.d=$(B(v(e,(cn(),Ws)))),C9e(n),NMe(n),LMe(n),Ike(n),O8e(n),n.i=y.Math.max(1,n.i),n.g=y.Math.max(1,n.g),n.d=n.d/n.i,n.f=n.g/n.i,n.s=_9e(n),i=new Nc(n.c),nn(n.c.b,i),n.r=Cb(n.p),n.n=LT(n.k,n.k.length);n.r.c.length!=0;)n.o=W6e(n),!n.o||hRn(n)&&n.b.a.gc()!=0?(tye(n,i),i=new Nc(n.c),nn(n.c.b,i),Ki(n.a,n.b),n.b.a.$b(),n.t=n.u,n.u=0):hRn(n)?(n.c.b.c.length=0,i=new Nc(n.c),nn(n.c.b,i),n.t=0,n.u=0,n.b.a.$b(),n.a.a.$b(),++n.f,n.r=Cb(n.p),n.n=LT(n.k,n.k.length)):($i(n.o,i),du(n.r,n.o),fi(n.b,n.o),n.t=n.t-n.k[n.o.p]*n.d+n.j[n.o.p],n.u+=n.e[n.o.p]*n.d);e.a.c.length=0,Yk(e.b),t.Vg()}function oLe(n){var e,t,i,r,c,s,f,h,l,a,d;for(n.j=F(ye,_e,28,n.g,15,1),n.o=new Z,qt(rc(new Cn(null,new On(n.e.b,16)),new a3n),new tkn(n)),n.a=F(so,Xh,28,n.b,16,1),Nk(new Cn(null,new On(n.e.b,16)),new rkn(n)),i=(d=new Z,qt(ut(rc(new Cn(null,new On(n.e.b,16)),new b3n),new ikn(n)),new GMn(n,d)),d),h=new M(i);h.a<h.c.c.length;)if(f=u(E(h),515),!(f.c.length<=1)){if(f.c.length==2){GEe(f),HR((Nn(0,f.c.length),u(f.c[0],18)).d.i)||nn(n.o,f);continue}if(!(oye(f)||Jje(f,new d3n)))for(l=new M(f),r=null;l.a<l.c.c.length;)e=u(E(l),18),t=n.c[e.p],!r||l.a>=l.c.c.length?a=MJ((Vn(),zt),Ti):a=MJ((Vn(),Ti),Ti),a*=2,c=t.a.g,t.a.g=y.Math.max(c,c+(a-c)),s=t.b.g,t.b.g=y.Math.max(s,s+(a-s)),r=e}}function sLe(n){var e,t,i,r;for(qt(ut(new Cn(null,new On(n.a.b,16)),new X2n),new V2n),qke(n),qt(ut(new Cn(null,new On(n.a.b,16)),new W2n),new J2n),n.c==(El(),R3)&&(qt(ut(rc(new Cn(null,new On(new qa(n.f),1)),new Q2n),new Y2n),new k7n(n)),qt(ut(_r(rc(rc(new Cn(null,new On(n.d.b,16)),new Z2n),new npn),new epn),new tpn),new j7n(n))),r=new V(Pt,Pt),e=new V(li,li),i=new M(n.a.b);i.a<i.c.c.length;)t=u(E(i),60),r.a=y.Math.min(r.a,t.d.c),r.b=y.Math.min(r.b,t.d.d),e.a=y.Math.max(e.a,t.d.c+t.d.b),e.b=y.Math.max(e.b,t.d.d+t.d.a);tt(ff(n.d.c),HM(new V(r.a,r.b))),tt(ff(n.d.f),mi(new V(e.a,e.b),r)),tCe(n,r,e),Hu(n.f),Hu(n.b),Hu(n.g),Hu(n.e),n.a.a.c.length=0,n.a.b.c.length=0,n.a=null,n.d=null}function US(n,e){var t;if(n.e)throw T(new Ar((ll(c_),RK+c_.k+KK)));if(!dle(n.a,e))throw T(new ec(tXn+e+iXn));if(e==n.d)return n;switch(t=n.d,n.d=e,t.g){case 0:switch(e.g){case 2:Bb(n);break;case 1:Z1(n),Bb(n);break;case 4:Hg(n),Bb(n);break;case 3:Hg(n),Z1(n),Bb(n)}break;case 2:switch(e.g){case 1:Z1(n),MR(n);break;case 4:Hg(n),Bb(n);break;case 3:Hg(n),Z1(n),Bb(n)}break;case 1:switch(e.g){case 2:Z1(n),MR(n);break;case 4:Z1(n),Hg(n),Bb(n);break;case 3:Z1(n),Hg(n),Z1(n),Bb(n)}break;case 4:switch(e.g){case 2:Hg(n),Bb(n);break;case 1:Hg(n),Z1(n),Bb(n);break;case 3:Z1(n),MR(n)}break;case 3:switch(e.g){case 2:Z1(n),Hg(n),Bb(n);break;case 1:Z1(n),Hg(n),Z1(n),Bb(n);break;case 4:Z1(n),MR(n)}}return n}function Yg(n,e){var t;if(n.d)throw T(new Ar((ll(S_),RK+S_.k+KK)));if(!ale(n.a,e))throw T(new ec(tXn+e+iXn));if(e==n.c)return n;switch(t=n.c,n.c=e,t.g){case 0:switch(e.g){case 2:ld(n);break;case 1:na(n),ld(n);break;case 4:qg(n),ld(n);break;case 3:qg(n),na(n),ld(n)}break;case 2:switch(e.g){case 1:na(n),TR(n);break;case 4:qg(n),ld(n);break;case 3:qg(n),na(n),ld(n)}break;case 1:switch(e.g){case 2:na(n),TR(n);break;case 4:na(n),qg(n),ld(n);break;case 3:na(n),qg(n),na(n),ld(n)}break;case 4:switch(e.g){case 2:qg(n),ld(n);break;case 1:qg(n),na(n),ld(n);break;case 3:na(n),TR(n)}break;case 3:switch(e.g){case 2:na(n),qg(n),ld(n);break;case 1:na(n),qg(n),na(n),ld(n);break;case 4:na(n),TR(n)}}return n}function GS(n,e){var t,i,r,c,s,f,h,l;if(L(n.Eh(),167)?(GS(u(n.Eh(),167),e),e.a+=" > "):e.a+="Root ",t=n.Dh().zb,Sn(t.substr(0,3),"Elk")?Be(e,(zn(3,t.length+1),t.substr(3))):e.a+=""+t,r=n.jh(),r){Be((e.a+=" ",e),r);return}if(L(n,366)&&(l=u(n,135).a,l)){Be((e.a+=" ",e),l);return}for(s=new ne(n.kh());s.e!=s.i.gc();)if(c=u(ue(s),135),l=c.a,l){Be((e.a+=" ",e),l);return}if(L(n,326)&&(i=u(n,74),!i.b&&(i.b=new Dn(he,i,4,7)),i.b.i!=0&&(!i.c&&(i.c=new Dn(he,i,5,8)),i.c.i!=0))){for(e.a+=" (",f=new kp((!i.b&&(i.b=new Dn(he,i,4,7)),i.b));f.e!=f.i.gc();)f.e>0&&(e.a+=ur),GS(u(ue(f),167),e);for(e.a+=iB,h=new kp((!i.c&&(i.c=new Dn(he,i,5,8)),i.c));h.e!=h.i.gc();)h.e>0&&(e.a+=ur),GS(u(ue(h),167),e);e.a+=")"}}function fLe(n,e,t){var i,r,c,s,f,h,l,a;for(h=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));h.e!=h.i.gc();)for(f=u(ue(h),27),r=new ie(ce(Sl(f).a.Kc(),new En));pe(r);){if(i=u(fe(r),74),!i.b&&(i.b=new Dn(he,i,4,7)),!(i.b.i<=1&&(!i.c&&(i.c=new Dn(he,i,5,8)),i.c.i<=1)))throw T(new hp("Graph must not contain hyperedges."));if(!D5(i)&&f!=Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84)))for(l=new BSn,Ur(l,i),U(l,(Q1(),y3),i),Jse(l,u(Fr(wr(t.f,f)),153)),Zse(l,u(ee(t,Gr(u(N((!i.c&&(i.c=new Dn(he,i,5,8)),i.c),0),84))),153)),nn(e.c,l),s=new ne((!i.n&&(i.n=new q(Sr,i,1,7)),i.n));s.e!=s.i.gc();)c=u(ue(s),135),a=new _Ln(l,c.a),Ur(a,c),U(a,y3,c),a.e.a=y.Math.max(c.g,1),a.e.b=y.Math.max(c.f,1),qen(a),nn(e.d,a)}}function hLe(n,e,t){var i,r,c,s,f,h,l,a,d,g;switch(t.Ug("Node promotion heuristic",1),n.i=e,n.r=u(v(e,(cn(),ja)),243),n.r!=(ps(),p0)&&n.r!=Uw?RLe(n):fSe(n),a=u(v(n.i,chn),17).a,c=new Kgn,n.r.g){case 2:case 1:Lm(n,c);break;case 3:for(n.r=PO,Lm(n,c),h=0,f=new M(n.b);f.a<f.c.c.length;)s=u(E(f),17),h=y.Math.max(h,s.a);h>n.k&&(n.r=Pj,Lm(n,c));break;case 4:for(n.r=PO,Lm(n,c),l=0,r=new M(n.c);r.a<r.c.c.length;)i=B(E(r)),l=y.Math.max(l,(Jn(i),i));l>n.n&&(n.r=Ij,Lm(n,c));break;case 6:g=wi(y.Math.ceil(n.g.length*a/100)),Lm(n,new s7n(g));break;case 5:d=wi(y.Math.ceil(n.e*a/100)),Lm(n,new f7n(d));break;case 8:yzn(n,!0);break;case 9:yzn(n,!1);break;default:Lm(n,c)}n.r!=p0&&n.r!=Uw?NCe(n,e):ZSe(n,e),t.Vg()}function lLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(d=n.b,a=new xi(d,0),B0(a,new Nc(n)),O=!1,s=1;a.b<a.d.gc();){for(l=(oe(a.b<a.d.gc()),u(a.d.Xb(a.c=a.b++),30)),k=(Nn(s,d.c.length),u(d.c[s],30)),j=Cb(l.a),P=j.c.length,m=new M(j);m.a<m.c.c.length;)g=u(E(m),10),$i(g,k);if(O){for(p=Qo(j).Kc();p.Ob();)for(g=u(p.Pb(),10),c=new M(Cb(ji(g)));c.a<c.c.c.length;)r=u(E(c),18),Ub(r,!0),U(n,(W(),kj),(_n(),!0)),i=gGn(n,r,P),t=u(v(g,o0),313),A=u(sn(i,i.c.length-1),18),t.k=A.c.i,t.n=A,t.b=r.d.i,t.c=r;O=!1}else j.c.length!=0&&(e=(Nn(0,j.c.length),u(j.c[0],10)),e.k==(Vn(),Gf)&&(O=!0,s=-1));++s}for(f=new xi(n.b,0);f.b<f.d.gc();)h=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),30)),h.a.c.length==0&&bo(f)}function aLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(d=new ttn(n),a2e(d,!(e==(ci(),us)||e==Wf)),a=d.a,g=new up,r=(wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])),s=0,h=r.length;s<h;++s)t=r[s],l=jN(a,bc,t),l&&(g.d=y.Math.max(g.d,l.jf()));for(i=S(C(Pw,1),G,237,0,[bc,Wc,wc]),c=0,f=i.length;c<f;++c)t=i[c],l=jN(a,wc,t),l&&(g.a=y.Math.max(g.a,l.jf()));for(k=S(C(Pw,1),G,237,0,[bc,Wc,wc]),P=0,A=k.length;P<A;++P)p=k[P],l=jN(a,p,bc),l&&(g.b=y.Math.max(g.b,l.kf()));for(m=S(C(Pw,1),G,237,0,[bc,Wc,wc]),j=0,O=m.length;j<O;++j)p=m[j],l=jN(a,p,wc),l&&(g.c=y.Math.max(g.c,l.kf()));return g.d>0&&(g.d+=a.n.d,g.d+=a.d),g.a>0&&(g.a+=a.n.a,g.a+=a.d),g.b>0&&(g.b+=a.n.b,g.b+=a.d),g.c>0&&(g.c+=a.n.c,g.c+=a.d),g}function BGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m;for(g=t.d,d=t.c,c=new V(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),s=c.b,l=new M(n.a);l.a<l.c.c.length;)if(f=u(E(l),10),f.k==(Vn(),Zt)){switch(i=u(v(f,(W(),gc)),64),r=u(v(f,tfn),8),a=f.n,i.g){case 2:a.a=t.f.a+g.c-d.a;break;case 4:a.a=-d.a-g.b}switch(m=0,i.g){case 2:case 4:e==(Ai(),tl)?(p=$(B(v(f,f0))),a.b=c.b*p-u(v(f,(cn(),b0)),8).b,m=a.b+r.b,OC(f,!1,!0)):e==qc&&(a.b=$(B(v(f,f0)))-u(v(f,(cn(),b0)),8).b,m=a.b+r.b,OC(f,!1,!0))}s=y.Math.max(s,m)}for(t.f.b+=s-c.b,h=new M(n.a);h.a<h.c.c.length;)if(f=u(E(h),10),f.k==(Vn(),Zt))switch(i=u(v(f,(W(),gc)),64),a=f.n,i.g){case 1:a.b=-d.b-g.d;break;case 3:a.b=t.f.b+g.a-d.b}}function dLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(a=u(u(ot(n.r,e),21),87),a.gc()<=2||e==(en(),Zn)||e==(en(),Wn)){czn(n,e);return}for(k=n.u.Hc((zu(),K3)),t=e==(en(),Xn)?(Db(),rj):(Db(),ij),P=e==Xn?(bu(),Xs):(bu(),kf),i=vz($V(t),n.s),j=e==Xn?Pt:li,l=a.Kc();l.Ob();)f=u(l.Pb(),117),!(!f.c||f.c.d.c.length<=0)&&(m=f.b.Mf(),p=f.e,d=f.c,g=d.i,g.b=(c=d.n,d.e.a+c.b+c.c),g.a=(s=d.n,d.e.b+s.d+s.a),k?(g.c=p.a-(r=d.n,d.e.a+r.b+r.c)-n.s,k=!1):g.c=p.a+m.a+n.s,G7(P,$tn),d.f=P,df(d,(Uu(),zs)),nn(i.d,new ZN(g,CY(i,g))),j=e==Xn?y.Math.min(j,p.b):y.Math.max(j,p.b+f.b.Mf().b));for(j+=e==Xn?-n.t:n.t,GY((i.e=j,i)),h=a.Kc();h.Ob();)f=u(h.Pb(),117),!(!f.c||f.c.d.c.length<=0)&&(g=f.c.i,g.c-=f.e.a,g.d-=f.e.b)}function FGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(r=new Z,k=new M(e.a);k.a<k.c.c.length;)if(m=u(E(k),10),p=m.e,p&&(i=FGn(n,p,m),hi(r,i),SAe(n,p,m),u(v(p,(W(),Hc)),21).Hc((pr(),cs))))for(O=u(v(m,(cn(),Ft)),101),g=u(v(m,_w),181).Hc((zu(),Rl)),P=new M(m.j);P.a<P.c.c.length;)for(j=u(E(P),12),c=u(ee(n.b,j),10),c||(c=my(j,O,j.j,-(j.e.c.length-j.g.c.length),null,new Ni,j.o,u(v(p,Lo),88),p),U(c,st,j),Ve(n.b,j,c),nn(p.a,c)),s=u(sn(c.j,0),12),a=new M(j.f);a.a<a.c.c.length;)l=u(E(a),72),f=new Yjn,f.o.a=l.o.a,f.o.b=l.o.b,nn(s.f,f),g||(A=j.j,d=0,F6(u(v(m,_w),21))&&(d=Lnn(l.n,l.o,j.o,0,A)),O==(Ai(),Qf)||(en(),su).Hc(A)?f.o.a=d:f.o.b=d);return h=new Z,CAe(n,e,t,r,h),t&&GOe(n,e,t,h),h}function etn(n,e,t){var i,r,c,s,f,h,l,a,d;if(!n.c[e.c.p][e.p].e){for(n.c[e.c.p][e.p].e=!0,n.c[e.c.p][e.p].b=0,n.c[e.c.p][e.p].d=0,n.c[e.c.p][e.p].a=null,a=new M(e.j);a.a<a.c.c.length;)for(l=u(E(a),12),d=t?new e4(l):new ip(l),h=d.Kc();h.Ob();)f=u(h.Pb(),12),s=f.i,s.c==e.c?s!=e&&(etn(n,s,t),n.c[e.c.p][e.p].b+=n.c[s.c.p][s.p].b,n.c[e.c.p][e.p].d+=n.c[s.c.p][s.p].d):(n.c[e.c.p][e.p].d+=n.g[f.p],++n.c[e.c.p][e.p].b);if(c=u(v(e,(W(),Ysn)),15),c)for(r=c.Kc();r.Ob();)i=u(r.Pb(),10),e.c==i.c&&(etn(n,i,t),n.c[e.c.p][e.p].b+=n.c[i.c.p][i.p].b,n.c[e.c.p][e.p].d+=n.c[i.c.p][i.p].d);n.c[e.c.p][e.p].b>0&&(n.c[e.c.p][e.p].d+=to(n.i,24)*Oy*.07000000029802322-.03500000014901161,n.c[e.c.p][e.p].a=n.c[e.c.p][e.p].d/n.c[e.c.p][e.p].b)}}function bLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(m=new M(n);m.a<m.c.c.length;){for(p=u(E(m),10),zl(p.n),zl(p.o),qJ(p.f),Zqn(p),NSe(p),j=new M(p.j);j.a<j.c.c.length;){for(k=u(E(j),12),zl(k.n),zl(k.a),zl(k.o),gi(k,LBn(k.j)),c=u(v(k,(cn(),v1)),17),c&&U(k,v1,Y(-c.a)),r=new M(k.g);r.a<r.c.c.length;){for(i=u(E(r),18),t=ge(i.a,0);t.b!=t.d.c;)e=u(be(t),8),zl(e);if(h=u(v(i,Rr),75),h)for(f=ge(h,0);f.b!=f.d.c;)s=u(be(f),8),zl(s);for(d=new M(i.b);d.a<d.c.c.length;)l=u(E(d),72),zl(l.n),zl(l.o)}for(g=new M(k.f);g.a<g.c.c.length;)l=u(E(g),72),zl(l.n),zl(l.o)}for(p.k==(Vn(),Zt)&&(U(p,(W(),gc),LBn(u(v(p,gc),64))),HCe(p)),a=new M(p.b);a.a<a.c.c.length;)l=u(E(a),72),Zqn(l),zl(l.o),zl(l.n)}}function wLe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;Rn=ee(n.e,i),Rn==null&&(Rn=new sp,p=u(Rn,190),O=e+"_s",A=O+r,g=new q0(A),bf(p,Eh,g)),kn=u(Rn,190),Op(t,kn),te=new sp,nd(te,"x",i.j),nd(te,"y",i.k),bf(kn,mWn,te),tn=new sp,nd(tn,"x",i.b),nd(tn,"y",i.c),bf(kn,"endPoint",tn),d=Z9((!i.a&&(i.a=new ti(xo,i,5)),i.a)),m=!d,m&&(X=new _a,c=new eyn(X),qi((!i.a&&(i.a=new ti(xo,i,5)),i.a),c),bf(kn,BP,X)),h=Px(i),D=!!h,D&&inn(n.a,kn,Icn,oR(n,Px(i))),P=Ix(i),_=!!P,_&&inn(n.a,kn,Pcn,oR(n,Ix(i))),l=(!i.e&&(i.e=new Dn(Tt,i,10,9)),i.e).i==0,k=!l,k&&(yn=new _a,s=new STn(n,yn),qi((!i.e&&(i.e=new Dn(Tt,i,10,9)),i.e),s),bf(kn,Acn,yn)),a=(!i.g&&(i.g=new Dn(Tt,i,9,10)),i.g).i==0,j=!a,j&&(Bn=new _a,f=new PTn(n,Bn),qi((!i.g&&(i.g=new Dn(Tt,i,9,10)),i.g),f),bf(kn,Ocn,Bn))}function gLe(n){K0();var e,t,i,r,c,s,f;for(i=n.f.n,s=AW(n.r).a.nc();s.Ob();){if(c=u(s.Pb(),117),r=0,c.b.pf((He(),oo))&&(r=$(B(c.b.of(oo))),r<0))switch(c.b.ag().g){case 1:i.d=y.Math.max(i.d,-r);break;case 3:i.a=y.Math.max(i.a,-r);break;case 2:i.c=y.Math.max(i.c,-r);break;case 4:i.b=y.Math.max(i.b,-r)}if(F6(n.u))switch(e=yve(c.b,r),f=!u(n.e.of(Ca),181).Hc((io(),cE)),t=!1,c.b.ag().g){case 1:t=e>i.d,i.d=y.Math.max(i.d,e),f&&t&&(i.d=y.Math.max(i.d,i.a),i.a=i.d+r);break;case 3:t=e>i.a,i.a=y.Math.max(i.a,e),f&&t&&(i.a=y.Math.max(i.a,i.d),i.d=i.a+r);break;case 2:t=e>i.c,i.c=y.Math.max(i.c,e),f&&t&&(i.c=y.Math.max(i.b,i.c),i.b=i.c+r);break;case 4:t=e>i.b,i.b=y.Math.max(i.b,e),f&&t&&(i.b=y.Math.max(i.b,i.c),i.c=i.b+r)}}}function _Gn(n,e){var t,i,r,c,s,f,h,l,a;return l="",e.length==0?n.ne(vtn,uK,-1,-1):(a=fw(e),Sn(a.substr(0,3),"at ")&&(a=(zn(3,a.length+1),a.substr(3))),a=a.replace(/\[.*?\]/g,""),s=a.indexOf("("),s==-1?(s=a.indexOf("@"),s==-1?(l=a,a=""):(l=fw((zn(s+1,a.length+1),a.substr(s+1))),a=fw((Ri(0,s,a.length),a.substr(0,s))))):(t=a.indexOf(")",s),l=(Ri(s+1,t,a.length),a.substr(s+1,t-(s+1))),a=fw((Ri(0,s,a.length),a.substr(0,s)))),s=ih(a,wu(46)),s!=-1&&(a=(zn(s+1,a.length+1),a.substr(s+1))),(a.length==0||Sn(a,"Anonymous function"))&&(a=uK),f=RM(l,wu(58)),r=CV(l,wu(58),f-1),h=-1,i=-1,c=vtn,f!=-1&&r!=-1&&(c=(Ri(0,r,l.length),l.substr(0,r)),h=rSn((Ri(r+1,f,l.length),l.substr(r+1,f-(r+1)))),i=rSn((zn(f+1,l.length+1),l.substr(f+1)))),n.ne(c,a,h,i))}function pLe(n){var e,t,i,r,c,s,f,h,l,a,d;for(l=new M(n);l.a<l.c.c.length;){switch(h=u(E(l),10),s=u(v(h,(cn(),ou)),171),c=null,s.g){case 1:case 2:c=(hd(),m2);break;case 3:case 4:c=(hd(),mv)}if(c)U(h,(W(),rO),(hd(),m2)),c==mv?OS(h,s,(gr(),Vu)):c==m2&&OS(h,s,(gr(),Jc));else if(mg(u(v(h,Ft),101))&&h.j.c.length!=0){for(e=!0,d=new M(h.j);d.a<d.c.c.length;){if(a=u(E(d),12),!(a.j==(en(),Zn)&&a.e.c.length-a.g.c.length>0||a.j==Wn&&a.e.c.length-a.g.c.length<0)){e=!1;break}for(r=new M(a.g);r.a<r.c.c.length;)if(t=u(E(r),18),f=u(v(t.d.i,ou),171),f==(Yo(),H8)||f==xw){e=!1;break}for(i=new M(a.e);i.a<i.c.c.length;)if(t=u(E(i),18),f=u(v(t.c.i,ou),171),f==(Yo(),_8)||f==ya){e=!1;break}}e&&OS(h,s,(gr(),Q8))}}}function mLe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;for(X=0,p=0,d=new M(e.e);d.a<d.c.c.length;){for(a=u(E(d),10),g=0,f=0,h=t?u(v(a,AO),17).a:Wi,P=i?u(v(a,LO),17).a:Wi,l=y.Math.max(h,P),A=new M(a.j);A.a<A.c.c.length;){if(O=u(E(A),12),D=a.n.b+O.n.b+O.a.b,i)for(s=new M(O.g);s.a<s.c.c.length;)c=u(E(s),18),k=c.d,m=k.i,e!=n.a[m.p]&&(j=y.Math.max(u(v(m,AO),17).a,u(v(m,LO),17).a),_=u(v(c,(cn(),O3)),17).a,_>=l&&_>=j&&(g+=m.n.b+k.n.b+k.a.b-D,++f));if(t)for(s=new M(O.e);s.a<s.c.c.length;)c=u(E(s),18),k=c.c,m=k.i,e!=n.a[m.p]&&(j=y.Math.max(u(v(m,AO),17).a,u(v(m,LO),17).a),_=u(v(c,(cn(),O3)),17).a,_>=l&&_>=j&&(g+=m.n.b+k.n.b+k.a.b-D,++f))}f>0&&(X+=g/f,++p)}p>0?(e.a=r*X/p,e.g=p):(e.a=0,e.g=0)}function vLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn;for(c=n.f.b,g=c.a,a=c.b,m=n.e.g,p=n.e.f,kg(n.e,c.a,c.b),X=g/m,tn=a/p,l=new ne(jT(n.e));l.e!=l.i.gc();)h=u(ue(l),135),eu(h,h.i*X),tu(h,h.j*tn);for(O=new ne(mD(n.e));O.e!=O.i.gc();)P=u(ue(O),123),D=P.i,_=P.j,D>0&&eu(P,D*X),_>0&&tu(P,_*tn);for(f5(n.b,new U0n),e=new Z,f=new sd(new Ua(n.c).a);f.b;)s=Nb(f),i=u(s.ld(),74),t=u(s.md(),407).a,r=Xg(i,!1,!1),d=DFn(Fh(i),Qk(r),t),dy(d,r),A=XFn(i),A&&qr(e,A,0)==-1&&(Fn(e.c,A),jOn(A,(oe(d.b!=0),u(d.a.a.c,8)),t));for(j=new sd(new Ua(n.d).a);j.b;)k=Nb(j),i=u(k.ld(),74),t=u(k.md(),407).a,r=Xg(i,!1,!1),d=DFn(ra(i),Pk(Qk(r)),t),d=Pk(d),dy(d,r),A=VFn(i),A&&qr(e,A,0)==-1&&(Fn(e.c,A),jOn(A,(oe(d.b!=0),u(d.c.b.c,8)),t))}function HGn(n,e,t,i){var r,c,s,f,h;return f=new ttn(e),hCe(f,i),r=!0,n&&n.pf((He(),_d))&&(c=u(n.of((He(),_d)),88),r=c==(ci(),Jf)||c==Kr||c==Xr),_qn(f,!1),nu(f.e.Rf(),new NV(f,!1,r)),AD(f,f.f,(wf(),bc),(en(),Xn)),AD(f,f.f,wc,ae),AD(f,f.g,bc,Wn),AD(f,f.g,wc,Zn),gBn(f,Xn),gBn(f,ae),vOn(f,Zn),vOn(f,Wn),K0(),s=f.A.Hc((go(),Qw))&&f.B.Hc((io(),uE))?DKn(f):null,s&&vhe(f.a,s),gLe(f),p7e(f),m7e(f),qAe(f),pPe(f),U7e(f),kx(f,Xn),kx(f,ae),VSe(f),pOe(f),t&&(Y5e(f),G7e(f),kx(f,Zn),kx(f,Wn),h=f.B.Hc((io(),I9)),N_n(f,h,Xn),N_n(f,h,ae),D_n(f,h,Zn),D_n(f,h,Wn),qt(new Cn(null,new On(new ol(f.i),0)),new d0n),qt(ut(new Cn(null,AW(f.r).a.oc()),new b0n),new w0n),cye(f),f.e.Pf(f.o),qt(new Cn(null,AW(f.r).a.oc()),new g0n)),f.o}function kLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(l=Pt,i=new M(n.a.b);i.a<i.c.c.length;)e=u(E(i),86),l=y.Math.min(l,e.d.f.g.c+e.e.a);for(p=new Mt,s=new M(n.a.a);s.a<s.c.c.length;)c=u(E(s),194),c.i=l,c.e==0&&xt(p,c,p.c.b,p.c);for(;p.b!=0;){for(c=u(p.b==0?null:(oe(p.b!=0),Xo(p,p.a.a)),194),r=c.f.g.c,g=c.a.a.ec().Kc();g.Ob();)a=u(g.Pb(),86),k=c.i+a.e.a,a.d.g||a.g.c<k?a.o=k:a.o=a.g.c;for(r-=c.f.o,c.b+=r,n.c==(ci(),Xr)||n.c==Wf?c.c+=r:c.c-=r,d=c.a.a.ec().Kc();d.Ob();)for(a=u(d.Pb(),86),h=a.f.Kc();h.Ob();)f=u(h.Pb(),86),hl(n.c)?m=n.f.yf(a,f):m=n.f.zf(a,f),f.d.i=y.Math.max(f.d.i,a.o+a.g.b+m-f.e.a),f.k||(f.d.i=y.Math.max(f.d.i,f.g.c-f.e.a)),--f.d.e,f.d.e==0&&Re(p,f.d)}for(t=new M(n.a.b);t.a<t.c.c.length;)e=u(E(t),86),e.g.c=e.o}function yLe(n){var e,t,i,r,c,s,f,h;switch(f=n.b,e=n.a,u(v(n,(aS(),Uun)),435).g){case 0:Yt(f,new Ce(new S0n));break;case 1:default:Yt(f,new Ce(new P0n))}switch(u(v(n,Hun),436).g){case 1:Yt(f,new BU),Yt(f,new I0n),Yt(f,new y0n);break;case 0:default:Yt(f,new BU),Yt(f,new T0n)}switch(u(v(n,zun),257).g){case 0:h=new A0n;break;case 1:h=new $A;break;case 2:h=new vE;break;case 3:h=new DA;break;case 5:h=new n4(new vE);break;case 4:h=new n4(new $A);break;case 7:h=new Uz(new n4(new $A),new n4(new vE));break;case 8:h=new Uz(new n4(new DA),new n4(new vE));break;case 6:default:h=new n4(new DA)}for(s=new M(f);s.a<s.c.c.length;){for(c=u(E(s),176),i=0,r=0,t=new bi(Y(i),Y(r));tIe(e,c,i,r);)t=u(h.Ve(t,c),42),i=u(t.a,17).a,r=u(t.b,17).a;YSe(e,c,i,r)}}function qGn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;for(t.Ug(pVn,1),g=(pt(),tq),n.a==(b5(),KO)&&(g=mln),a=0,Ln(),e.jd(new tL(g)),c=e.gc(),f=e.fd(e.gc()),l=!0;l&&f.Sb();)O=u(f.Ub(),40),u(v(O,g),17).a==0?--c:l=!1;if(X=e.kd(0,c),s=new $N(X),X=e.kd(c,e.gc()),h=new $N(X),s.b==0)for(k=ge(h,0);k.b!=k.d.c;)m=u(be(k),40),U(m,o9,Y(a++));else for(d=s.b,_=ge(s,0);_.b!=_.d.c;){for(D=u(be(_),40),U(D,o9,Y(a++)),i=R$(D),qGn(n,i,t.eh(1/d|0)),ud(i,HW(new tL(o9))),p=new Mt,A=ge(i,0);A.b!=A.d.c;)for(O=u(be(A),40),P=ge(D.d,0);P.b!=P.d.c;)j=u(be(P),65),j.c==O&&xt(p,j,p.c.b,p.c);for(vo(D.d),Ki(D.d,p),f=ge(h,h.b),r=D.d.b,l=!0;0<r&&l&&f.Sb();)O=u(f.Ub(),40),u(v(O,g),17).a==0?(U(O,o9,Y(a++)),--r,f.Qb()):l=!1}t.Vg()}function jLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(d=$(B(z(n,(oa(),yq)))),on(un(z(n,Zln)))&&(a=u(z(n,(Cg(),L2)),27),c=u(N(qW(u(N((!a.e&&(a.e=new Dn(Vt,a,7,4)),a.e),(!a.e&&(a.e=new Dn(Vt,a,7,4)),a.e).i-1),74)),0),27),i=u(N(qW(u(N((!a.e&&(a.e=new Dn(Vt,a,7,4)),a.e),0),74)),0),27),s=new V(c.i+c.g/2,c.j+c.f/2),r=new V(i.i+i.g/2,i.j+i.f/2),t=d,t<=0&&(t+=Md),g=y.Math.acos((s.a*r.a+s.b*r.b)/(y.Math.sqrt(s.a*s.a+s.b*s.b)*y.Math.sqrt(r.a*r.a+r.b*r.b))),g<=0&&(g+=Md),e=y.Math.atan2(s.b,s.a),e<=0&&(e+=Md),d=Trn-(e-t+g/2)),h=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));h.e!=h.i.gc();)f=u(ue(h),27),l=new V(f.i+f.g/2,f.j+f.f/2),p=l.a*y.Math.cos(d)-l.b*y.Math.sin(d),l.b=l.a*y.Math.sin(d)+l.b*y.Math.cos(d),l.a=p,Bo(f,l.a-f.g/2,l.b-f.f/2)}function ELe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(e.Ug("Inverted port preprocessing",1),a=n.b,l=new xi(a,0),t=null,A=new Z;l.b<l.d.gc();){for(O=t,t=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),30)),p=new M(A);p.a<p.c.c.length;)d=u(E(p),10),$i(d,O);for(A.c.length=0,m=new M(t.a);m.a<m.c.c.length;)if(d=u(E(m),10),d.k==(Vn(),zt)&&mg(u(v(d,(cn(),Ft)),101))){for(P=men(d,(gr(),Vu),(en(),Zn)).Kc();P.Ob();)for(k=u(P.Pb(),12),h=k.e,f=u(Rf(h,F(O_,rB,18,h.c.length,0,1)),483),r=f,c=0,s=r.length;c<s;++c)i=r[c],zIe(n,k,i,A);for(j=men(d,Jc,Wn).Kc();j.Ob();)for(k=u(j.Pb(),12),h=k.g,f=u(Rf(h,F(O_,rB,18,h.c.length,0,1)),483),r=f,c=0,s=r.length;c<s;++c)i=r[c],GIe(n,k,i,A)}}for(g=new M(A);g.a<g.c.c.length;)d=u(E(g),10),$i(d,t);e.Vg()}function JR(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m,k,j,P,O,A;for(g=null,i==(Tb(),Ma)?g=e:i==O2&&(g=t),k=g.a.ec().Kc();k.Ob();){for(m=u(k.Pb(),12),j=cc(S(C(Ei,1),J,8,0,[m.i.n,m.n,m.a])).b,A=new ni,f=new ni,l=new Lf(m.b);tc(l.a)||tc(l.b);)if(h=u(tc(l.a)?E(l.a):E(l.b),18),on(un(v(h,(W(),zf))))==r&&qr(c,h,0)!=-1){if(h.d==m?P=h.c:P=h.d,O=cc(S(C(Ei,1),J,8,0,[P.i.n,P.n,P.a])).b,y.Math.abs(O-j)<.2)continue;O<j?e.a._b(P)?fi(A,new bi(Ma,h)):fi(A,new bi(O2,h)):e.a._b(P)?fi(f,new bi(Ma,h)):fi(f,new bi(O2,h))}if(A.a.gc()>1)for(p=new Xen(m,A,i),qi(A,new YMn(n,p)),Fn(s.c,p),d=A.a.ec().Kc();d.Ob();)a=u(d.Pb(),42),du(c,a.b);if(f.a.gc()>1)for(p=new Xen(m,f,i),qi(f,new ZMn(n,p)),Fn(s.c,p),d=f.a.ec().Kc();d.Ob();)a=u(d.Pb(),42),du(c,a.b)}}function MLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(k=n.n,j=n.o,g=n.d,d=$(B(rw(n,(cn(),PH)))),e){for(a=d*(e.gc()-1),p=0,h=e.Kc();h.Ob();)s=u(h.Pb(),10),a+=s.o.a,p=y.Math.max(p,s.o.b);for(P=k.a-(a-j.a)/2,c=k.b-g.d+p,i=j.a/(e.gc()+1),r=i,f=e.Kc();f.Ob();)s=u(f.Pb(),10),s.n.a=P,s.n.b=c-s.o.b,P+=s.o.a+d,l=QHn(s),l.n.a=s.o.a/2-l.a.a,l.n.b=s.o.b,m=u(v(s,(W(),tO)),12),m.e.c.length+m.g.c.length==1&&(m.n.a=r-m.a.a,m.n.b=0,ic(m,n)),r+=i}if(t){for(a=d*(t.gc()-1),p=0,h=t.Kc();h.Ob();)s=u(h.Pb(),10),a+=s.o.a,p=y.Math.max(p,s.o.b);for(P=k.a-(a-j.a)/2,c=k.b+j.b+g.a-p,i=j.a/(t.gc()+1),r=i,f=t.Kc();f.Ob();)s=u(f.Pb(),10),s.n.a=P,s.n.b=c,P+=s.o.a+d,l=QHn(s),l.n.a=s.o.a/2-l.a.a,l.n.b=0,m=u(v(s,(W(),tO)),12),m.e.c.length+m.g.c.length==1&&(m.n.a=r-m.a.a,m.n.b=j.b,ic(m,n)),r+=i}}function TLe(n,e){var t,i,r,c,s,f;if(u(v(e,(W(),Hc)),21).Hc((pr(),cs))){for(f=new M(e.a);f.a<f.c.c.length;)c=u(E(f),10),c.k==(Vn(),zt)&&(r=u(v(c,(cn(),pO)),140),n.c=y.Math.min(n.c,c.n.a-r.b),n.a=y.Math.max(n.a,c.n.a+c.o.a+r.c),n.d=y.Math.min(n.d,c.n.b-r.d),n.b=y.Math.max(n.b,c.n.b+c.o.b+r.a));for(s=new M(e.a);s.a<s.c.c.length;)if(c=u(E(s),10),c.k!=(Vn(),zt))switch(c.k.g){case 2:if(i=u(v(c,(cn(),ou)),171),i==(Yo(),ya)){c.n.a=n.c-10,tFn(c,new mgn).Jb(new Z9n(c));break}if(i==xw){c.n.a=n.a+10,tFn(c,new vgn).Jb(new n7n(c));break}if(t=u(v(c,Ad),311),t==(vl(),k2)){dGn(c).Jb(new e7n(c)),c.n.b=n.d-10;break}if(t==E3){dGn(c).Jb(new t7n(c)),c.n.b=n.b+10;break}break;default:throw T(new Gn("The node type "+c.k+" is not supported by the "+kDe))}}}function CLe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;for(h=new V(i.i+i.g/2,i.j+i.f/2),p=hGn(i),m=u(z(e,(cn(),Ft)),101),j=u(z(i,Tv),64),OTn(aBn(i),Fw)||(i.i==0&&i.j==0?k=0:k=Fye(i,j),ht(i,Fw,k)),l=new V(e.g,e.f),r=my(i,m,j,p,l,h,new V(i.g,i.f),u(v(t,Lo),88),t),U(r,(W(),st),i),c=u(sn(r.j,0),12),nfe(c,UPe(i)),U(r,_w,(zu(),jn(Oa))),d=u(z(e,_w),181).Hc(Rl),f=new ne((!i.n&&(i.n=new q(Sr,i,1,7)),i.n));f.e!=f.i.gc();)if(s=u(ue(f),135),!on(un(z(s,Rd)))&&s.a&&(g=ex(s),nn(c.f,g),!d))switch(a=0,F6(u(z(e,_w),21))&&(a=Lnn(new V(s.i,s.j),new V(s.g,s.f),new V(i.g,i.f),0,j)),j.g){case 2:case 4:g.o.a=a;break;case 1:case 3:g.o.b=a}U(r,Sv,B(z(St(e),Sv))),U(r,Pv,B(z(St(e),Pv))),U(r,qw,B(z(St(e),qw))),nn(t.a,r),Ve(n.a,i,r)}function SLe(n,e,t,i,r,c){var s,f,h,l,a,d;for(l=new Ic,Ur(l,e),gi(l,u(z(e,(cn(),Tv)),64)),U(l,(W(),st),e),ic(l,t),d=l.o,d.a=e.g,d.b=e.f,a=l.n,a.a=e.i,a.b=e.j,Ve(n.a,e,l),s=Ag(_r(rc(new Cn(null,(!e.e&&(e.e=new Dn(Vt,e,7,4)),new On(e.e,16))),new Ewn),new ywn),new U9n(e)),s||(s=Ag(_r(rc(new Cn(null,(!e.d&&(e.d=new Dn(Vt,e,8,5)),new On(e.d,16))),new Mwn),new jwn),new G9n(e))),s||(s=Ag(new Cn(null,(!e.e&&(e.e=new Dn(Vt,e,7,4)),new On(e.e,16))),new Twn)),U(l,yj,(_n(),!!s)),XOe(l,c,r,u(z(e,b0),8)),h=new ne((!e.n&&(e.n=new q(Sr,e,1,7)),e.n));h.e!=h.i.gc();)f=u(ue(h),135),!on(un(z(f,Rd)))&&f.a&&nn(l.f,ex(f));switch(r.g){case 2:case 1:(l.j==(en(),Xn)||l.j==ae)&&i.Fc((pr(),v2));break;case 4:case 3:(l.j==(en(),Zn)||l.j==Wn)&&i.Fc((pr(),v2))}return l}function PLe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(A=0,m=0,p=0,g=1,O=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));O.e!=O.i.gc();)j=u(ue(O),27),g+=wl(new ie(ce(Sl(j).a.Kc(),new En))),yn=j.g,m=y.Math.max(m,yn),d=j.f,p=y.Math.max(p,d),A+=yn*d;for(k=(!n.a&&(n.a=new q(Ye,n,10,11)),n.a).i,s=A+2*i*i*g*k,c=y.Math.sqrt(s),h=y.Math.max(c*t,m),f=y.Math.max(c/t,p),P=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));P.e!=P.i.gc();)j=u(ue(P),27),kn=r.b+(to(e,26)*J5+to(e,27)*Q5)*(h-j.g),Rn=r.b+(to(e,26)*J5+to(e,27)*Q5)*(f-j.f),eu(j,kn),tu(j,Rn);for(tn=h+(r.b+r.c),X=f+(r.d+r.a),_=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));_.e!=_.i.gc();)for(D=u(ue(_),27),a=new ie(ce(Sl(D).a.Kc(),new En));pe(a);)l=u(fe(a),74),D5(l)||NNe(l,e,tn,X);tn+=r.b+r.c,X+=r.d+r.a,Gb(n,tn,X,!1,!0)}function ttn(n){var e;if(this.r=oge(new l0n,new a0n),this.b=new y5(u(Pe(lr),297)),this.p=new y5(u(Pe(lr),297)),this.i=new y5(u(Pe(vYn),297)),this.e=n,this.o=new rr(n.Mf()),this.D=n.Yf()||on(un(n.of((He(),Xj)))),this.A=u(n.of((He(),Hd)),21),this.B=u(n.of(Ca),21),this.q=u(n.of(v9),101),this.u=u(n.of(Ww),21),!Wye(this.u))throw T(new _l("Invalid port label placement: "+this.u));if(this.v=on(un(n.of(_an))),this.j=u(n.of(F2),21),!MTe(this.j))throw T(new _l("Invalid node label placement: "+this.j));this.n=u(P5(n,Pan),107),this.k=$(B(P5(n,iA))),this.d=$(B(P5(n,zan))),this.w=$(B(P5(n,Qan))),this.s=$(B(P5(n,Xan))),this.t=$(B(P5(n,Van))),this.C=u(P5(n,Wan),140),this.c=2*this.d,e=!this.B.Hc((io(),cE)),this.f=new E5(0,e,0),this.g=new E5(1,e,0),mL(this.f,(wf(),Wc),this.g)}function ILe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(e.Ug("Comment pre-processing",1),t=0,h=new M(n.a);h.a<h.c.c.length;)if(f=u(E(h),10),on(un(v(f,(cn(),q8))))){for(++t,r=0,i=null,l=null,m=new M(f.j);m.a<m.c.c.length;)g=u(E(m),12),r+=g.e.c.length+g.g.c.length,g.e.c.length==1&&(i=u(sn(g.e,0),18),l=i.c),g.g.c.length==1&&(i=u(sn(g.g,0),18),l=i.d);if(r==1&&l.e.c.length+l.g.c.length==1&&!on(un(v(l.i,q8))))oNe(f,i,l,l.i),q6(h);else{for(P=new Z,p=new M(f.j);p.a<p.c.c.length;){for(g=u(E(p),12),d=new M(g.g);d.a<d.c.c.length;)a=u(E(d),18),a.d.g.c.length==0||Fn(P.c,a);for(s=new M(g.e);s.a<s.c.c.length;)c=u(E(s),18),c.c.e.c.length==0||Fn(P.c,c)}for(j=new M(P);j.a<j.c.c.length;)k=u(E(j),18),Ub(k,!0)}}e._g()&&e.bh("Found "+t+" comment boxes"),e.Vg()}function itn(n,e){xPn();var t,i,r,c,s,f,h;if(this.a=new NX(this),this.b=n,this.c=e,this.f=sD(Nr((Lu(),zi),e)),this.f.dc())if((f=$Z(zi,n))==e)for(this.e=!0,this.d=new Z,this.f=new avn,this.f.Fc(Pd),u(qS(hk(zi,jo(n)),""),29)==n&&this.f.Fc(B6(zi,jo(n))),r=PR(zi,n).Kc();r.Ob();)switch(i=u(r.Pb(),179),yb(Nr(zi,i))){case 4:{this.d.Fc(i);break}case 5:{this.f.Gc(sD(Nr(zi,i)));break}}else if(dr(),u(e,69).xk())for(this.e=!0,this.f=null,this.d=new Z,s=0,h=(n.i==null&&bh(n),n.i).length;s<h;++s)for(i=(t=(n.i==null&&bh(n),n.i),s>=0&&s<t.length?t[s]:null),c=$p(Nr(zi,i));c;c=$p(Nr(zi,c)))c==e&&this.d.Fc(i);else yb(Nr(zi,e))==1&&f?(this.f=null,this.d=(n3(),tse)):(this.f=null,this.e=!0,this.d=(Ln(),new nL(e)));else this.e=yb(Nr(zi,e))==5,this.f.Fb(CU)&&(this.f=CU)}function UGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;for(t=0,i=o7e(n,e),g=n.s,p=n.t,l=u(u(ot(n.r,e),21),87).Kc();l.Ob();)if(h=u(l.Pb(),117),!(!h.c||h.c.d.c.length<=0)){switch(m=h.b.Mf(),f=h.b.pf((He(),oo))?$(B(h.b.of(oo))):0,a=h.c,d=a.i,d.b=(s=a.n,a.e.a+s.b+s.c),d.a=(c=a.n,a.e.b+c.d+c.a),e.g){case 1:d.c=h.a?(m.a-d.b)/2:m.a+g,d.d=m.b+f+i,df(a,(Uu(),pa)),uh(a,(bu(),kf));break;case 3:d.c=h.a?(m.a-d.b)/2:m.a+g,d.d=-f-i-d.a,df(a,(Uu(),pa)),uh(a,(bu(),Xs));break;case 2:d.c=-f-i-d.b,h.a?(r=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(m.b-r)/2):d.d=m.b+p,df(a,(Uu(),zs)),uh(a,(bu(),ma));break;case 4:d.c=m.a+f+i,h.a?(r=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(m.b-r)/2):d.d=m.b+p,df(a,(Uu(),Th)),uh(a,(bu(),ma))}(e==(en(),Xn)||e==ae)&&(t=y.Math.max(t,d.a))}t>0&&(u(Mr(n.b,e),127).a.b=t)}function OLe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k;if(g=$(B(v(n,(cn(),Sv)))),p=$(B(v(n,Pv))),d=$(B(v(n,qw))),f=n.o,c=u(sn(n.j,0),12),s=c.n,k=Xje(c,d),!!k){if(e.Hc((zu(),Rl)))switch(u(v(n,(W(),gc)),64).g){case 1:k.c=(f.a-k.b)/2-s.a,k.d=p;break;case 3:k.c=(f.a-k.b)/2-s.a,k.d=-p-k.a;break;case 2:t&&c.e.c.length==0&&c.g.c.length==0?(a=i?k.a:u(sn(c.f,0),72).o.b,k.d=(f.b-a)/2-s.b):k.d=f.b+p-s.b,k.c=-g-k.b;break;case 4:t&&c.e.c.length==0&&c.g.c.length==0?(a=i?k.a:u(sn(c.f,0),72).o.b,k.d=(f.b-a)/2-s.b):k.d=f.b+p-s.b,k.c=g}else if(e.Hc(Oa))switch(u(v(n,(W(),gc)),64).g){case 1:case 3:k.c=s.a+g;break;case 2:case 4:t&&!c.c?(a=i?k.a:u(sn(c.f,0),72).o.b,k.d=(f.b-a)/2-s.b):k.d=s.b+p}for(r=k.d,l=new M(c.f);l.a<l.c.c.length;)h=u(E(l),72),m=h.n,m.a=k.c,m.b=r,r+=h.o.b+d}}function ALe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn;for(X=new Z,m=new M(n.b);m.a<m.c.c.length;)for(p=u(E(m),30),P=new M(p.a);P.a<P.c.c.length;)if(k=u(E(P),10),k.k==(Vn(),Zt)&&kt(k,(W(),cO))){for(O=null,D=null,A=null,kn=new M(k.j);kn.a<kn.c.c.length;)switch(yn=u(E(kn),12),yn.j.g){case 4:O=yn;break;case 2:D=yn;break;default:A=yn}for(_=u(sn(A.g,0),18),a=new GE(_.a),l=new rr(A.n),tt(l,k.n),d=ge(a,0),_7(d,l),tn=Pk(_.a),g=new rr(A.n),tt(g,k.n),xt(tn,g,tn.c.b,tn.c),Rn=u(v(k,cO),10),Bn=u(sn(Rn.j,0),12),h=u(Rf(O.e,F(O_,rB,18,0,0,1)),483),i=h,c=0,f=i.length;c<f;++c)e=i[c],Oi(e,Bn),J$(e.a,e.a.b,a);for(h=hh(D.g),t=h,r=0,s=t.length;r<s;++r)e=t[r],Zi(e,Bn),J$(e.a,0,tn);Zi(_,null),Oi(_,null),Fn(X.c,k)}for(j=new M(X);j.a<j.c.c.length;)k=u(E(j),10),$i(k,null)}function LLe(){Ge(bE,new _6n),Ge(SA,new Y6n),Ge(wE,new f5n),Ge(ubn,new k5n),Ge(fn,new M5n),Ge(C(Ru,1),new T5n),Ge(Gt,new C5n),Ge(p3,new S5n),Ge(fn,new O6n),Ge(fn,new A6n),Ge(fn,new L6n),Ge(si,new N6n),Ge(fn,new D6n),Ge(rs,new $6n),Ge(rs,new x6n),Ge(fn,new R6n),Ge(sv,new B6n),Ge(fn,new F6n),Ge(fn,new H6n),Ge(fn,new q6n),Ge(fn,new U6n),Ge(fn,new G6n),Ge(C(Ru,1),new z6n),Ge(fn,new X6n),Ge(fn,new V6n),Ge(rs,new W6n),Ge(rs,new J6n),Ge(fn,new Q6n),Ge(Gi,new Z6n),Ge(fn,new n5n),Ge(t0,new e5n),Ge(fn,new t5n),Ge(fn,new i5n),Ge(fn,new r5n),Ge(fn,new c5n),Ge(rs,new u5n),Ge(rs,new o5n),Ge(fn,new s5n),Ge(fn,new h5n),Ge(fn,new l5n),Ge(fn,new a5n),Ge(fn,new d5n),Ge(fn,new b5n),Ge(i0,new w5n),Ge(fn,new g5n),Ge(fn,new p5n),Ge(fn,new m5n),Ge(i0,new v5n),Ge(t0,new y5n),Ge(fn,new j5n),Ge(Gi,new E5n)}function GGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;switch(a=new Tu,n.a.g){case 3:g=u(v(e.e,(W(),Ld)),15),p=u(v(e.j,Ld),15),m=u(v(e.f,Ld),15),t=u(v(e.e,M2),15),i=u(v(e.j,M2),15),r=u(v(e.f,M2),15),s=new Z,hi(s,g),p.Jc(new _pn),hi(s,Qo(p)),hi(s,m),c=new Z,hi(c,t),hi(c,Qo(i)),hi(c,r),U(e.f,Ld,s),U(e.f,M2,c),U(e.f,ffn,e.f),U(e.e,Ld,null),U(e.e,M2,null),U(e.j,Ld,null),U(e.j,M2,null);break;case 1:Ki(a,e.e.a),Re(a,e.i.n),Ki(a,Qo(e.j.a)),Re(a,e.a.n),Ki(a,e.f.a);break;default:Ki(a,e.e.a),Ki(a,Qo(e.j.a)),Ki(a,e.f.a)}vo(e.f.a),Ki(e.f.a,a),Zi(e.f,e.e.c),f=u(v(e.e,(cn(),Rr)),75),l=u(v(e.j,Rr),75),h=u(v(e.f,Rr),75),(f||l||h)&&(d=new Tu,IW(d,h),IW(d,l),IW(d,f),U(e.f,Rr,d)),Zi(e.j,null),Oi(e.j,null),Zi(e.e,null),Oi(e.e,null),$i(e.a,null),$i(e.i,null),e.g&&GGn(n,e.g)}function zGn(){zGn=R;var n,e,t;for(new Dk(1,0),new Dk(10,0),new Dk(0,0),mQn=F(JF,J,247,11,0,1),Od=F(fs,gh,28,100,15,1),Eun=S(C(Ii,1),Cr,28,15,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,48828125,244140625,1220703125,6103515625,30517578125,152587890625,762939453125,3814697265625,19073486328125,95367431640625,476837158203125,0x878678326eac9]),Mun=F(ye,_e,28,Eun.length,15,1),Tun=S(C(Ii,1),Cr,28,15,[1,10,100,d1,1e4,IK,1e6,1e7,1e8,QS,1e10,1e11,1e12,1e13,1e14,1e15,1e16]),Cun=F(ye,_e,28,Tun.length,15,1),Sun=F(JF,J,247,11,0,1),n=0;n<Sun.length;n++)mQn[n]=new Dk(n,0),Sun[n]=new Dk(0,n),Od[n]=48;for(;n<Od.length;n++)Od[n]=48;for(t=0;t<Mun.length;t++)Mun[t]=Inn(Eun[t]);for(e=0;e<Cun.length;e++)Cun[e]=Inn(Tun[e]);Sm()}function NLe(){function n(){this.obj=this.createObject()}return n.prototype.createObject=function(e){return Object.create(null)},n.prototype.get=function(e){return this.obj[e]},n.prototype.set=function(e,t){this.obj[e]=t},n.prototype[LK]=function(e){delete this.obj[e]},n.prototype.keys=function(){return Object.getOwnPropertyNames(this.obj)},n.prototype.entries=function(){var e=this.keys(),t=this,i=0;return{next:function(){if(i>=e.length)return{done:!0};var r=e[i++];return{value:[r,t.get(r)],done:!1}}}},SSe()||(n.prototype.createObject=function(){return{}},n.prototype.get=function(e){return this.obj[":"+e]},n.prototype.set=function(e,t){this.obj[":"+e]=t},n.prototype[LK]=function(e){delete this.obj[":"+e]},n.prototype.keys=function(){var e=[];for(var t in this.obj)t.charCodeAt(0)==58&&e.push(t.substring(1));return e}),n}function pt(){pt=R,u9=new lt(Wtn),new Lt("DEPTH",Y(0)),tq=new Lt("FAN",Y(0)),mln=new Lt(bVn,Y(0)),Ta=new Lt("ROOT",(_n(),!1)),cq=new Lt("LEFTNEIGHBOR",null),dre=new Lt("RIGHTNEIGHBOR",null),$O=new Lt("LEFTSIBLING",null),uq=new Lt("RIGHTSIBLING",null),eq=new Lt("DUMMY",!1),new Lt("LEVEL",Y(0)),yln=new Lt("REMOVABLE_EDGES",new Mt),$j=new Lt("XCOOR",Y(0)),xj=new Lt("YCOOR",Y(0)),xO=new Lt("LEVELHEIGHT",0),jf=new Lt("LEVELMIN",0),Js=new Lt("LEVELMAX",0),iq=new Lt("GRAPH_XMIN",0),rq=new Lt("GRAPH_YMIN",0),vln=new Lt("GRAPH_XMAX",0),kln=new Lt("GRAPH_YMAX",0),pln=new Lt("COMPACT_LEVEL_ASCENSION",!1),nq=new Lt("COMPACT_CONSTRAINTS",new Z),c9=new Lt("ID",""),o9=new Lt("POSITION",Y(0)),j1=new Lt("PRELIM",0),Nv=new Lt("MODIFIER",0),Lv=new lt(CXn),Dj=new lt(SXn)}function DLe(n){Ren();var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(n==null)return null;if(d=n.length*8,d==0)return"";for(f=d%24,p=d/24|0,g=f!=0?p+1:p,c=null,c=F(fs,gh,28,g*4,15,1),l=0,a=0,e=0,t=0,i=0,s=0,r=0,h=0;h<p;h++)e=n[r++],t=n[r++],i=n[r++],a=(t&15)<<24>>24,l=(e&3)<<24>>24,m=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,k=t&-128?(t>>4^240)<<24>>24:t>>4<<24>>24,j=i&-128?(i>>6^252)<<24>>24:i>>6<<24>>24,c[s++]=A1[m],c[s++]=A1[k|l<<4],c[s++]=A1[a<<2|j],c[s++]=A1[i&63];return f==8?(e=n[r],l=(e&3)<<24>>24,m=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,c[s++]=A1[m],c[s++]=A1[l<<4],c[s++]=61,c[s++]=61):f==16&&(e=n[r],t=n[r+1],a=(t&15)<<24>>24,l=(e&3)<<24>>24,m=e&-128?(e>>2^192)<<24>>24:e>>2<<24>>24,k=t&-128?(t>>4^240)<<24>>24:t>>4<<24>>24,c[s++]=A1[m],c[s++]=A1[k|l<<4],c[s++]=A1[a<<2],c[s++]=61),ws(c,0,c.length)}function $Le(n,e){var t,i,r,c,s,f,h;if(n.e==0&&n.p>0&&(n.p=-(n.p-1)),n.p>Wi&&EJ(e,n.p-ha),s=e.q.getDate(),W7(e,1),n.k>=0&&E2e(e,n.k),n.c>=0?W7(e,n.c):n.k>=0?(h=new ZQ(e.q.getFullYear()-ha,e.q.getMonth(),35),i=35-h.q.getDate(),W7(e,y.Math.min(i,s))):W7(e,s),n.f<0&&(n.f=e.q.getHours()),n.b>0&&n.f<12&&(n.f+=12),b1e(e,n.f==24&&n.g?0:n.f),n.j>=0&&c4e(e,n.j),n.n>=0&&p4e(e,n.n),n.i>=0&&QTn(e,nr(er(Xk(vc(e.q.getTime()),d1),d1),n.i)),n.a&&(r=new JE,EJ(r,r.q.getFullYear()-ha-80),DL(vc(e.q.getTime()),vc(r.q.getTime()))&&EJ(e,r.q.getFullYear()-ha+100)),n.d>=0){if(n.c==-1)t=(7+n.d-e.q.getDay())%7,t>3&&(t-=7),f=e.q.getMonth(),W7(e,e.q.getDate()+t),e.q.getMonth()!=f&&W7(e,e.q.getDate()+(t>0?-7:7));else if(e.q.getDay()!=n.d)return!1}return n.o>Wi&&(c=e.q.getTimezoneOffset(),QTn(e,nr(vc(e.q.getTime()),(n.o-c)*60*d1))),!0}function XGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(r=v(e,(W(),st)),!!L(r,207)){for(m=u(r,27),k=e.e,g=new rr(e.c),c=e.d,g.a+=c.b,g.b+=c.d,D=u(z(m,(cn(),kO)),181),Su(D,(io(),sA))&&(p=u(z(m,hhn),107),Use(p,c.a),Yse(p,c.d),Gse(p,c.b),Qse(p,c.c)),t=new Z,a=new M(e.a);a.a<a.c.c.length;)for(h=u(E(a),10),L(v(h,st),207)?_Le(h,g):L(v(h,st),193)&&!k&&(i=u(v(h,st),123),O=DUn(e,h,i.g,i.f),Bo(i,O.a,O.b)),P=new M(h.j);P.a<P.c.c.length;)j=u(E(P),12),qt(ut(new Cn(null,new On(j.g,16)),new z9n(h)),new X9n(t));if(k)for(P=new M(k.j);P.a<P.c.c.length;)j=u(E(P),12),qt(ut(new Cn(null,new On(j.g,16)),new V9n(k)),new W9n(t));for(A=u(z(m,$l),223),f=new M(t);f.a<f.c.c.length;)s=u(E(f),18),tLe(s,A,g);for(HPe(e),l=new M(e.a);l.a<l.c.c.length;)h=u(E(l),10),d=h.e,d&&XGn(n,d)}}function VGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p;if(!u(u(ot(n.r,e),21),87).dc()){if(s=u(Mr(n.b,e),127),h=s.i,f=s.n,a=kR(n,e),i=h.b-f.b-f.c,r=s.a.a,c=h.c+f.b,p=n.w,(a==(Kg(),Pa)||a==eE)&&u(u(ot(n.r,e),21),87).gc()==1&&(r=a==Pa?r-2*n.w:r,a=M9),i<r&&!n.B.Hc((io(),fA)))a==Pa?(p+=(i-r)/(u(u(ot(n.r,e),21),87).gc()+1),c+=p):p+=(i-r)/(u(u(ot(n.r,e),21),87).gc()-1);else switch(i<r&&(r=a==Pa?r-2*n.w:r,a=M9),a.g){case 3:c+=(i-r)/2;break;case 4:c+=i-r;break;case 0:t=(i-r)/(u(u(ot(n.r,e),21),87).gc()+1),p+=y.Math.max(0,t),c+=p;break;case 1:t=(i-r)/(u(u(ot(n.r,e),21),87).gc()-1),p+=y.Math.max(0,t)}for(g=u(u(ot(n.r,e),21),87).Kc();g.Ob();)d=u(g.Pb(),117),d.e.a=c+d.d.b,d.e.b=(l=d.b,l.pf((He(),oo))?l.ag()==(en(),Xn)?-l.Mf().b-$(B(l.of(oo))):$(B(l.of(oo))):l.ag()==(en(),Xn)?-l.Mf().b:0),c+=d.d.b+d.b.Mf().a+d.d.c+p}}function WGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m;if(!u(u(ot(n.r,e),21),87).dc()){if(s=u(Mr(n.b,e),127),h=s.i,f=s.n,d=kR(n,e),i=h.a-f.d-f.a,r=s.a.b,c=h.d+f.d,m=n.w,l=n.o.a,(d==(Kg(),Pa)||d==eE)&&u(u(ot(n.r,e),21),87).gc()==1&&(r=d==Pa?r-2*n.w:r,d=M9),i<r&&!n.B.Hc((io(),fA)))d==Pa?(m+=(i-r)/(u(u(ot(n.r,e),21),87).gc()+1),c+=m):m+=(i-r)/(u(u(ot(n.r,e),21),87).gc()-1);else switch(i<r&&(r=d==Pa?r-2*n.w:r,d=M9),d.g){case 3:c+=(i-r)/2;break;case 4:c+=i-r;break;case 0:t=(i-r)/(u(u(ot(n.r,e),21),87).gc()+1),m+=y.Math.max(0,t),c+=m;break;case 1:t=(i-r)/(u(u(ot(n.r,e),21),87).gc()-1),m+=y.Math.max(0,t)}for(p=u(u(ot(n.r,e),21),87).Kc();p.Ob();)g=u(p.Pb(),117),g.e.a=(a=g.b,a.pf((He(),oo))?a.ag()==(en(),Wn)?-a.Mf().a-$(B(a.of(oo))):l+$(B(a.of(oo))):a.ag()==(en(),Wn)?-a.Mf().a:l),g.e.b=c+g.d.d,c+=g.d.d+g.b.Mf().b+g.d.a+m}}function xLe(n,e){var t,i,r,c,s;for(e.Ug("Processor determine the coords for each level",1),i=new Z,s=ge(n.b,0);s.b!=s.d.c;){for(r=u(be(s),40);u(v(r,(lc(),Ph)),17).a>i.c.length-1;)nn(i,new bi(i2,Crn));t=u(v(r,Ph),17).a,hl(u(v(n,v0),88))?(r.e.a<$(B((Nn(t,i.c.length),u(i.c[t],42)).a))&&QA((Nn(t,i.c.length),u(i.c[t],42)),r.e.a),r.e.a+r.f.a>$(B((Nn(t,i.c.length),u(i.c[t],42)).b))&&YA((Nn(t,i.c.length),u(i.c[t],42)),r.e.a+r.f.a)):(r.e.b<$(B((Nn(t,i.c.length),u(i.c[t],42)).a))&&QA((Nn(t,i.c.length),u(i.c[t],42)),r.e.b),r.e.b+r.f.b>$(B((Nn(t,i.c.length),u(i.c[t],42)).b))&&YA((Nn(t,i.c.length),u(i.c[t],42)),r.e.b+r.f.b))}for(c=ge(n.b,0);c.b!=c.d.c;)r=u(be(c),40),t=u(v(r,(lc(),Ph)),17).a,U(r,(pt(),jf),B((Nn(t,i.c.length),u(i.c[t],42)).a)),U(r,Js,B((Nn(t,i.c.length),u(i.c[t],42)).b));e.Vg()}function RLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(n.o=$(B(v(n.i,(cn(),g0)))),n.f=$(B(v(n.i,Kd))),n.j=n.i.b.c.length,f=n.j-1,g=0,n.k=0,n.n=0,n.b=Af(F(Gi,J,17,n.j,0,1)),n.c=Af(F(si,J,345,n.j,7,1)),s=new M(n.i.b);s.a<s.c.c.length;){for(r=u(E(s),30),r.p=f,d=new M(r.a);d.a<d.c.c.length;)a=u(E(d),10),a.p=g,++g;--f}for(n.g=F(ye,_e,28,g,15,1),n.d=Wa(ye,[J,_e],[53,28],15,[g,3],2),n.p=new Z,n.q=new Z,e=0,n.e=0,c=new M(n.i.b);c.a<c.c.c.length;){for(r=u(E(c),30),f=r.p,i=0,k=0,h=r.a.c.length,l=0,d=new M(r.a);d.a<d.c.c.length;)a=u(E(d),10),g=a.p,n.g[g]=a.c.p,l+=a.o.b+n.o,t=wl(new ie(ce(ji(a).a.Kc(),new En))),m=wl(new ie(ce(Qt(a).a.Kc(),new En))),n.d[g][0]=m-t,n.d[g][1]=t,n.d[g][2]=m,i+=t,k+=m,t>0&&nn(n.q,a),nn(n.p,a);e-=i,p=h+e,l+=e*n.f,Go(n.b,f,Y(p)),Go(n.c,f,l),n.k=y.Math.max(n.k,p),n.n=y.Math.max(n.n,l),n.e+=e,e+=k}}function en(){en=R;var n;sc=new v7(n8,0),Xn=new v7(eP,1),Zn=new v7(HK,2),ae=new v7(qK,3),Wn=new v7(UK,4),Yf=(Ln(),new r4((n=u(of(lr),9),new _o(n,u(xs(n,n.length),9),0)))),ef=i1(yt(Xn,S(C(lr,1),Tc,64,0,[]))),os=i1(yt(Zn,S(C(lr,1),Tc,64,0,[]))),Do=i1(yt(ae,S(C(lr,1),Tc,64,0,[]))),Cs=i1(yt(Wn,S(C(lr,1),Tc,64,0,[]))),mu=i1(yt(Xn,S(C(lr,1),Tc,64,0,[ae]))),su=i1(yt(Zn,S(C(lr,1),Tc,64,0,[Wn]))),tf=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Wn]))),Wu=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Zn]))),$o=i1(yt(ae,S(C(lr,1),Tc,64,0,[Wn]))),ss=i1(yt(Zn,S(C(lr,1),Tc,64,0,[ae]))),Ju=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Zn,Wn]))),pu=i1(yt(Zn,S(C(lr,1),Tc,64,0,[ae,Wn]))),vu=i1(yt(Xn,S(C(lr,1),Tc,64,0,[ae,Wn]))),xu=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Zn,ae]))),Uc=i1(yt(Xn,S(C(lr,1),Tc,64,0,[Zn,ae,Wn])))}function KLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn;for(e.Ug(XXn,1),k=new Z,X=new Z,l=new M(n.b);l.a<l.c.c.length;)for(h=u(E(l),30),P=-1,m=Y7(h.a),d=m,g=0,p=d.length;g<p;++g)if(a=d[g],++P,!!(a.k==(Vn(),zt)&&mg(u(v(a,(cn(),Ft)),101)))){for(Ep(u(v(a,(cn(),Ft)),101))||kCe(a),U(a,(W(),s0),a),k.c.length=0,X.c.length=0,t=new Z,D=new Mt,S$(D,h1(a,(en(),Xn))),fzn(n,D,k,X,t),f=P,tn=a,c=new M(k);c.a<c.c.c.length;)i=u(E(c),10),uw(i,f,h),++P,U(i,s0,a),s=u(sn(i.j,0),12),j=u(v(s,st),12),on(un(v(j,pH)))||u(v(i,C3),15).Fc(tn);for(vo(D),A=h1(a,ae).Kc();A.Ob();)O=u(A.Pb(),12),xt(D,O,D.a,D.a.a);for(fzn(n,D,X,null,t),_=a,r=new M(X);r.a<r.c.c.length;)i=u(E(r),10),uw(i,++P,h),U(i,s0,a),s=u(sn(i.j,0),12),j=u(v(s,st),12),on(un(v(j,pH)))||u(v(_,C3),15).Fc(i);t.c.length==0||U(a,Ysn,t)}e.Vg()}function JGn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;if(e.b!=0){for(p=new Mt,f=null,m=null,i=wi(y.Math.floor(y.Math.log(e.b)*y.Math.LOG10E)+1),h=0,A=ge(e,0);A.b!=A.d.c;)for(P=u(be(A),40),x(m)!==x(v(P,(pt(),c9)))&&(m=Ae(v(P,c9)),h=0),m!=null?f=m+UAn(h++,i):f=UAn(h++,i),U(P,c9,f),j=(r=ge(new sl(P).a.d,0),new sg(r));Q9(j.a);)k=u(be(j.a),65).c,xt(p,k,p.c.b,p.c),U(k,c9,f);for(g=new de,s=0;s<f.length-i;s++)for(O=ge(e,0);O.b!=O.d.c;)P=u(be(O),40),l=qo(Ae(v(P,(pt(),c9))),0,s+1),t=(l==null?Fr(wr(g.f,null)):a6(g.i,l))!=null?u(l==null?Fr(wr(g.f,null)):a6(g.i,l),17).a+1:1,Lr(g,l,Y(t));for(d=new sd(new Ua(g).a);d.b;)a=Nb(d),c=Y(ee(n.a,a.ld())!=null?u(ee(n.a,a.ld()),17).a:0),Lr(n.a,Ae(a.ld()),Y(u(a.md(),17).a+c.a)),c=u(ee(n.b,a.ld()),17),(!c||c.a<u(a.md(),17).a)&&Lr(n.b,Ae(a.ld()),u(a.md(),17));JGn(n,p)}}function BLe(n){var e,t,i,r,c,s,f,h,l,a,d,g;for(t=null,h=null,r=u(v(n.b,(cn(),EH)),349),r==(a5(),Oj)&&(t=new Z,h=new Z),f=new M(n.d);f.a<f.c.c.length;)if(s=u(E(f),105),c=s.i,!!c)switch(s.e.g){case 0:e=u(n5(new dp(s.b)),64),r==Oj&&e==(en(),Xn)?Fn(t.c,s):r==Oj&&e==(en(),ae)?Fn(h.c,s):a7e(s,e);break;case 1:l=s.a.d.j,a=s.c.d.j,l==(en(),Xn)?Vl(s,Xn,(xf(),lv),s.a):a==Xn?Vl(s,Xn,(xf(),av),s.c):l==ae?Vl(s,ae,(xf(),av),s.a):a==ae&&Vl(s,ae,(xf(),lv),s.c);break;case 2:case 3:i=s.b,Su(i,(en(),Xn))?Su(i,ae)?Su(i,Wn)?Su(i,Zn)||Vl(s,Xn,(xf(),av),s.c):Vl(s,Xn,(xf(),lv),s.a):Vl(s,Xn,(xf(),j3),null):Vl(s,ae,(xf(),j3),null);break;case 4:d=s.a.d.j,g=s.a.d.j,d==(en(),Xn)||g==Xn?Vl(s,ae,(xf(),j3),null):Vl(s,Xn,(xf(),j3),null)}t&&(t.c.length==0||qUn(t,(en(),Xn)),h.c.length==0||qUn(h,(en(),ae)))}function FLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(t.Ug("Breadth first model order layering",1),n.a=e,j=new Z,k=new M(n.a.a);k.a<k.c.c.length;)p=u(E(k),10),p.k==(Vn(),zt)&&Fn(j.c,p);for(Ln(),Yt(j,new Gpn),h=!0,r=new Nc(n.a),i=null,nn(n.a.b,r),m=new M(j);m.a<m.c.c.length;)if(p=u(E(m),10),h)$i(p,r),h=!1;else{for(f=new ie(ce(ji(p).a.Kc(),new En));pe(f);)c=u(fe(f),18),(c.c.i.k==(Vn(),zt)&&c.c.i.c==r||c.c.i.k==Sc&&u(fe(new ie(ce(ji(c.c.i).a.Kc(),new En))),18).c.i.c==r)&&(i=new Nc(n.a),nn(n.a.b,i),r=new Nc(n.a),nn(n.a.b,r));for(s=new ie(ce(ji(p).a.Kc(),new En));pe(s);)c=u(fe(s),18),c.c.i.k==(Vn(),Sc)&&!c.c.i.c&&$i(c.c.i,i);$i(p,r)}for(n.a.a.c.length=0,P=new Z,d=new M(n.a.b);d.a<d.c.c.length;)l=u(E(d),30),l.a.c.length==0&&Fn(P.c,l);for(IY(n.a.b,P),g=0,a=new M(n.a.b);a.a<a.c.c.length;)l=u(E(a),30),l.p=g,++g;t.Vg()}function _Le(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k;for(i=u(v(n,(W(),st)),27),m=u(v(n,(cn(),aO)),17).a,c=u(v(n,gO),17).a,ht(i,aO,Y(m)),ht(i,gO,Y(c)),eu(i,n.n.a+e.a),tu(i,n.n.b+e.b),(u(z(i,xd),181).gc()!=0||n.e||x(v(Hi(n),vO))===x((T5(),J8))&&oCn((cw(),(n.q?n.q:(Ln(),Ln(),Wh))._b(d0)?g=u(v(n,d0),203):g=u(v(Hi(n),z8),203),g)))&&(Ob(i,n.o.a),Ib(i,n.o.b)),d=new M(n.j);d.a<d.c.c.length;)l=u(E(d),12),k=v(l,st),L(k,193)&&(r=u(k,123),Bo(r,l.n.a,l.n.b),ht(r,Tv,l.j));for(p=u(v(n,a0),181).gc()!=0,h=new M(n.b);h.a<h.c.c.length;)s=u(E(h),72),(p||u(v(s,a0),181).gc()!=0)&&(t=u(v(s,st),135),kg(t,s.o.a,s.o.b),Bo(t,s.n.a,s.n.b));if(!F6(u(v(n,_w),21)))for(a=new M(n.j);a.a<a.c.c.length;)for(l=u(E(a),12),f=new M(l.f);f.a<f.c.c.length;)s=u(E(f),72),t=u(v(s,st),135),Ob(t,s.o.a),Ib(t,s.o.b),Bo(t,s.n.a,s.n.b)}function HLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn;for(e.Ug("Calculate Graph Size",1),e.dh(n,$rn),d=i2,g=i2,l=xrn,a=xrn,k=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));k.e!=k.i.gc();)p=u(ue(k),27),O=p.i,A=p.j,kn=p.g,f=p.f,h=u(z(p,(He(),xv)),140),d=y.Math.min(d,O-h.b),g=y.Math.min(g,A-h.d),l=y.Math.max(l,O+kn+h.c),a=y.Math.max(a,A+f+h.a);for(P=u(z(n,(He(),M1)),107),j=new V(d-P.b,g-P.d),yn=l-d+(P.b+P.c),s=a-g+(P.d+P.a),on(un(z(n,(oa(),Wln))))&&(D=u(z(n,(Cg(),L2)),27),_=u(z(D,xv),140),X=D.i+D.g/2+(_.b+_.c)/2-j.a,tn=D.j+D.f/2+(_.d+_.a)/2-j.b,r=yn-X,c=s-tn,r<yn/2?(t=r-X,yn+=t,j.a-=t):(t=X-r,yn+=t),c<s/2?(i=c-tn,s+=i,j.b-=i):(i=tn-c,s+=i)),m=new ne((!n.a&&(n.a=new q(Ye,n,10,11)),n.a));m.e!=m.i.gc();)p=u(ue(m),27),eu(p,p.i-j.a),tu(p,p.j-j.b);on(un(z(n,Vw)))||(Ob(n,yn),Ib(n,s)),ht(n,K2,yn-(P.b+P.c)),ht(n,R2,s-(P.d+P.a)),e.dh(n,LP)}function qLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p;if(n.e.a.$b(),n.f.a.$b(),n.c.c.length=0,n.i.c.length=0,n.g.a.$b(),e)for(s=new M(e.a);s.a<s.c.c.length;)for(c=u(E(s),10),d=h1(c,(en(),Zn)).Kc();d.Ob();)for(a=u(d.Pb(),12),fi(n.e,a),r=new M(a.g);r.a<r.c.c.length;)i=u(E(r),18),!fr(i)&&(nn(n.c,i),lBn(n,i),f=i.c.i.k,(f==(Vn(),zt)||f==_c||f==Zt||f==Gf)&&nn(n.j,i),p=i.d,g=p.i.c,g==t?fi(n.f,p):g==e?fi(n.e,p):du(n.c,i));if(t)for(s=new M(t.a);s.a<s.c.c.length;){for(c=u(E(s),10),l=new M(c.j);l.a<l.c.c.length;)for(h=u(E(l),12),r=new M(h.g);r.a<r.c.c.length;)i=u(E(r),18),fr(i)&&fi(n.g,i);for(d=h1(c,(en(),Wn)).Kc();d.Ob();)for(a=u(d.Pb(),12),fi(n.f,a),r=new M(a.g);r.a<r.c.c.length;)i=u(E(r),18),!fr(i)&&(nn(n.c,i),lBn(n,i),f=i.c.i.k,(f==(Vn(),zt)||f==_c||f==Zt||f==Gf)&&nn(n.j,i),p=i.d,g=p.i.c,g==t?fi(n.f,p):g==e?fi(n.e,p):du(n.c,i))}}function ULe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(t.Ug("Polyline edge routing",1),j=$(B(v(e,(cn(),Xfn)))),p=$(B(v(e,S2))),r=$(B(v(e,T2))),i=y.Math.min(1,r/p),A=0,h=0,e.b.c.length!=0&&(D=XHn(u(sn(e.b,0),30)),A=.4*i*D),f=new xi(e.b,0);f.b<f.d.gc();){for(s=(oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),30)),c=PM(s,Lj),c&&A>0&&(A-=p),Ven(s,A),a=0,g=new M(s.a);g.a<g.c.c.length;){for(d=u(E(g),10),l=0,k=new ie(ce(Qt(d).a.Kc(),new En));pe(k);)m=u(fe(k),18),P=Of(m.c).b,O=Of(m.d).b,s==m.d.i.c&&!fr(m)&&(iMe(m,A,.4*i*y.Math.abs(P-O)),m.c.j==(en(),Wn)&&(P=0,O=0)),l=y.Math.max(l,y.Math.abs(O-P));switch(d.k.g){case 0:case 4:case 1:case 3:case 5:oAe(n,d,A,j)}a=y.Math.max(a,l)}f.b<f.d.gc()&&(D=XHn((oe(f.b<f.d.gc()),u(f.d.Xb(f.c=f.b++),30))),a=y.Math.max(a,D),oe(f.b>0),f.a.Xb(f.c=--f.b)),h=.4*i*a,!c&&f.b<f.d.gc()&&(h+=p),A+=s.c.a+h}n.a.a.$b(),e.f.a=A,t.Vg()}function GLe(n){var e,t,i,r,c;switch(G7(n,TWn),(!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i+(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i){case 0:throw T(new Gn("The edge must have at least one source or target."));case 1:return(!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i==0?St(Gr(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))):St(Gr(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84)))}if((!n.b&&(n.b=new Dn(he,n,4,7)),n.b).i==1&&(!n.c&&(n.c=new Dn(he,n,5,8)),n.c).i==1){if(r=Gr(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84)),c=Gr(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84)),St(r)==St(c))return St(r);if(r==St(c))return r;if(c==St(r))return c}for(i=$h(Eo(S(C(Ao,1),Kn,20,0,[(!n.b&&(n.b=new Dn(he,n,4,7)),n.b),(!n.c&&(n.c=new Dn(he,n,5,8)),n.c)]))),e=Gr(u(fe(i),84));pe(i);)if(t=Gr(u(fe(i),84)),t!=e&&!Y0(t,e)){if(St(t)==St(e))e=St(t);else if(e=mTe(e,t),!e)return null}return e}function rtn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;if(g=e.length,g>0&&(h=(zn(0,e.length),e.charCodeAt(0)),h!=64)){if(h==37&&(d=e.lastIndexOf("%"),l=!1,d!=0&&(d==g-1||(l=(zn(d+1,e.length),e.charCodeAt(d+1)==46))))){if(s=(Ri(1,d,e.length),e.substr(1,d-1)),A=Sn("%",s)?null:ctn(s),i=0,l)try{i=So((zn(d+2,e.length+1),e.substr(d+2)),Wi,et)}catch(D){throw D=Ot(D),L(D,130)?(f=D,T(new eC(f))):T(D)}for(j=LQ(n.Gh());j.Ob();)if(m=IC(j),L(m,519)&&(r=u(m,598),O=r.d,(A==null?O==null:Sn(A,O))&&i--==0))return r;return null}if(a=e.lastIndexOf("."),p=a==-1?e:(Ri(0,a,e.length),e.substr(0,a)),t=0,a!=-1)try{t=So((zn(a+1,e.length+1),e.substr(a+1)),Wi,et)}catch(D){if(D=Ot(D),L(D,130))p=e;else throw T(D)}for(p=Sn("%",p)?null:ctn(p),k=LQ(n.Gh());k.Ob();)if(m=IC(k),L(m,197)&&(c=u(m,197),P=c.xe(),(p==null?P==null:Sn(p,P))&&t--==0))return c;return null}return xGn(n,e)}function zLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(a=new de,h=new Mb,i=new M(n.a.a.b);i.a<i.c.c.length;)if(e=u(E(i),60),l=Ig(e),l)Vc(a.f,l,e);else if(O=xp(e),O)for(c=new M(O.k);c.a<c.c.c.length;)r=u(E(c),18),In(h,r,e);for(t=new M(n.a.a.b);t.a<t.c.c.length;)if(e=u(E(t),60),l=Ig(e),l){for(f=new ie(ce(Qt(l).a.Kc(),new En));pe(f);)if(s=u(fe(f),18),!fr(s)&&(m=s.c,P=s.d,!((en(),mu).Hc(s.c.j)&&mu.Hc(s.d.j)))){if(k=u(ee(a,s.d.i),60),qs(Ns(Ls(Ds(As(new hs,0),100),n.c[e.a.d]),n.c[k.a.d])),m.j==Wn&&IIn((Au(),m))){for(g=u(ot(h,s),21).Kc();g.Ob();)if(d=u(g.Pb(),60),d.d.c<e.d.c){if(p=n.c[d.a.d],j=n.c[e.a.d],p==j)continue;qs(Ns(Ls(Ds(As(new hs,1),100),p),j))}}if(P.j==Zn&&OIn((Au(),P))){for(g=u(ot(h,s),21).Kc();g.Ob();)if(d=u(g.Pb(),60),d.d.c>e.d.c){if(p=n.c[e.a.d],j=n.c[d.a.d],p==j)continue;qs(Ns(Ls(Ds(As(new hs,1),100),p),j))}}}}}function XLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;if(g=u(u(ot(n.r,e),21),87),e==(en(),Zn)||e==Wn){UGn(n,e);return}for(c=e==Xn?(Db(),ij):(Db(),rj),D=e==Xn?(bu(),kf):(bu(),Xs),t=u(Mr(n.b,e),127),i=t.i,r=i.c+Lg(S(C(Ii,1),Cr,28,15,[t.n.b,n.C.b,n.k])),P=i.c+i.b-Lg(S(C(Ii,1),Cr,28,15,[t.n.c,n.C.c,n.k])),s=vz($V(c),n.t),O=e==Xn?li:Pt,d=g.Kc();d.Ob();)l=u(d.Pb(),117),!(!l.c||l.c.d.c.length<=0)&&(j=l.b.Mf(),k=l.e,p=l.c,m=p.i,m.b=(h=p.n,p.e.a+h.b+h.c),m.a=(f=p.n,p.e.b+f.d+f.a),G7(D,$tn),p.f=D,df(p,(Uu(),zs)),m.c=k.a-(m.b-j.a)/2,_=y.Math.min(r,k.a),X=y.Math.max(P,k.a+j.a),m.c<_?m.c=_:m.c+m.b>X&&(m.c=X-m.b),nn(s.d,new ZN(m,CY(s,m))),O=e==Xn?y.Math.max(O,k.b+l.b.Mf().b):y.Math.min(O,k.b));for(O+=e==Xn?n.t:-n.t,A=GY((s.e=O,s)),A>0&&(u(Mr(n.b,e),127).a.b=A),a=g.Kc();a.Ob();)l=u(a.Pb(),117),!(!l.c||l.c.d.c.length<=0)&&(m=l.c.i,m.c-=l.e.a,m.d-=l.e.b)}function VLe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;for(e=new de,h=new ne(n);h.e!=h.i.gc();){for(f=u(ue(h),27),t=new ni,Ve(p_,f,t),p=new B0n,r=u(Wr(new Cn(null,new pb(new ie(ce(cy(f).a.Kc(),new En)))),dIn(p,qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)])))),85),X$n(t,u(r.xc((_n(),!0)),16),new F0n),i=u(Wr(ut(u(r.xc(!1),15).Lc(),new _0n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),s=i.Kc();s.Ob();)c=u(s.Pb(),74),g=XFn(c),g&&(l=u(Fr(wr(e.f,g)),21),l||(l=gqn(g),Vc(e.f,g,l)),Ki(t,l));for(r=u(Wr(new Cn(null,new pb(new ie(ce(Sl(f).a.Kc(),new En)))),dIn(p,qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr])))),85),X$n(t,u(r.xc(!0),16),new H0n),i=u(Wr(ut(u(r.xc(!1),15).Lc(),new q0n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),d=i.Kc();d.Ob();)a=u(d.Pb(),74),g=VFn(a),g&&(l=u(Fr(wr(e.f,g)),21),l||(l=gqn(g),Vc(e.f,g,l)),Ki(t,l))}}function WLe(n,e){KR();var t,i,r,c,s,f,h,l,a,d,g,p,m,k;if(h=Ec(n,0)<0,h&&(n=n1(n)),Ec(n,0)==0)switch(e){case 0:return"0";case 1:return Fm;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return p=new x1,e<0?p.a+="0E+":p.a+="0E",p.a+=e==Wi?"2147483648":""+-e,p.a}a=18,d=F(fs,gh,28,a+1,15,1),t=a,k=n;do l=k,k=Xk(k,10),d[--t]=Se(nr(48,bs(l,er(k,10))))&ui;while(Ec(k,0)!=0);if(r=bs(bs(bs(a,t),e),1),e==0)return h&&(d[--t]=45),ws(d,t,a-t);if(e>0&&Ec(r,-6)>=0){if(Ec(r,0)>=0){for(c=t+Se(r),f=a-1;f>=c;f--)d[f+1]=d[f];return d[++c]=46,h&&(d[--t]=45),ws(d,t,a-t+1)}for(s=2;DL(s,nr(n1(r),1));s++)d[--t]=48;return d[--t]=46,d[--t]=48,h&&(d[--t]=45),ws(d,t,a-t)}return m=t+1,i=a,g=new fg,h&&(g.a+="-"),i-m>=1?(z1(g,d[t]),g.a+=".",g.a+=ws(d,t+1,a-t-1)):g.a+=ws(d,t,a-t),g.a+="E",Ec(r,0)>0&&(g.a+="+"),g.a+=""+_6(r),g.a}function Gb(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;if(j=new V(n.g,n.f),k=ynn(n),k.a=y.Math.max(k.a,e),k.b=y.Math.max(k.b,t),X=k.a/j.a,a=k.b/j.b,D=k.a-j.a,h=k.b-j.b,i)for(s=St(n)?u(z(St(n),(He(),_d)),88):u(z(n,(He(),_d)),88),f=x(z(n,(He(),v9)))===x((Ai(),qc)),O=new ne((!n.c&&(n.c=new q(Qu,n,9,9)),n.c));O.e!=O.i.gc();)switch(P=u(ue(O),123),A=u(z(P,H2),64),A==(en(),sc)&&(A=Ken(P,s),ht(P,H2,A)),A.g){case 1:f||eu(P,P.i*X);break;case 2:eu(P,P.i+D),f||tu(P,P.j*a);break;case 3:f||eu(P,P.i*X),tu(P,P.j+h);break;case 4:f||tu(P,P.j*a)}if(kg(n,k.a,k.b),r)for(g=new ne((!n.n&&(n.n=new q(Sr,n,1,7)),n.n));g.e!=g.i.gc();)d=u(ue(g),135),p=d.i+d.g/2,m=d.j+d.f/2,_=p/j.a,l=m/j.b,_+l>=1&&(_-l>0&&m>=0?(eu(d,d.i+D),tu(d,d.j+h*l)):_-l<0&&p>=0&&(eu(d,d.i+D*_),tu(d,d.j+h)));return ht(n,(He(),Hd),(go(),c=u(of(P9),9),new _o(c,u(xs(c,c.length),9),0))),new V(X,a)}function QGn(n){rb(n,new gd(UE(eb(Yd(nb(Zd(new Fa,es),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new V4n),es))),Q(n,es,CP,rn(fce)),Q(n,es,yw,rn(hce)),Q(n,es,r2,rn(cce)),Q(n,es,d3,rn(uce)),Q(n,es,a3,rn(oce)),Q(n,es,Xm,rn(rce)),Q(n,es,r8,rn(Jln)),Q(n,es,Vm,rn(sce)),Q(n,es,XB,rn(vq)),Q(n,es,zB,rn(kq)),Q(n,es,NP,rn(Yln)),Q(n,es,VB,rn(yq)),Q(n,es,WB,rn(Zln)),Q(n,es,Grn,rn(n1n)),Q(n,es,Urn,rn(Qln)),Q(n,es,Frn,rn(_O)),Q(n,es,_rn,rn(HO)),Q(n,es,Hrn,rn(Rj)),Q(n,es,qrn,rn(e1n)),Q(n,es,Brn,rn(Wln))}function zS(n){var e,t,i,r,c,s,f,h,l,a,d;if(n==null)throw T(new th(gu));if(l=n,c=n.length,h=!1,c>0&&(e=(zn(0,n.length),n.charCodeAt(0)),(e==45||e==43)&&(n=(zn(1,n.length+1),n.substr(1)),--c,h=e==45)),c==0)throw T(new th(Vb+l+'"'));for(;n.length>0&&(zn(0,n.length),n.charCodeAt(0)==48);)n=(zn(1,n.length+1),n.substr(1)),--c;if(c>(PUn(),gQn)[10])throw T(new th(Vb+l+'"'));for(r=0;r<c;r++)if(VKn((zn(r,n.length),n.charCodeAt(r)))==-1)throw T(new th(Vb+l+'"'));for(d=0,s=vun[10],a=WF[10],f=n1(kun[10]),t=!0,i=c%s,i>0&&(d=-parseInt((Ri(0,i,n.length),n.substr(0,i)),10),n=(zn(i,n.length+1),n.substr(i)),c-=i,t=!1);c>=s;){if(i=parseInt((Ri(0,s,n.length),n.substr(0,s)),10),n=(zn(s,n.length+1),n.substr(s)),c-=s,t)t=!1;else{if(Ec(d,f)<0)throw T(new th(Vb+l+'"'));d=er(d,a)}d=bs(d,i)}if(Ec(d,0)>0)throw T(new th(Vb+l+'"'));if(!h&&(d=n1(d),Ec(d,0)<0))throw T(new th(Vb+l+'"'));return d}function ctn(n){UR();var e,t,i,r,c,s,f,h;if(n==null)return null;if(r=ih(n,wu(37)),r<0)return n;for(h=new mo((Ri(0,r,n.length),n.substr(0,r))),e=F(Ru,s2,28,4,15,1),f=0,i=0,s=n.length;r<s;r++)if(zn(r,n.length),n.charCodeAt(r)==37&&n.length>r+2&&B$((zn(r+1,n.length),n.charCodeAt(r+1)),Kdn,Bdn)&&B$((zn(r+2,n.length),n.charCodeAt(r+2)),Kdn,Bdn))if(t=g0e((zn(r+1,n.length),n.charCodeAt(r+1)),(zn(r+2,n.length),n.charCodeAt(r+2))),r+=2,i>0?(t&192)==128?e[f++]=t<<24>>24:i=0:t>=128&&((t&224)==192?(e[f++]=t<<24>>24,i=2):(t&240)==224?(e[f++]=t<<24>>24,i=3):(t&248)==240&&(e[f++]=t<<24>>24,i=4)),i>0){if(f==i){switch(f){case 2:{z1(h,((e[0]&31)<<6|e[1]&63)&ui);break}case 3:{z1(h,((e[0]&15)<<12|(e[1]&63)<<6|e[2]&63)&ui);break}}f=0,i=0}}else{for(c=0;c<f;++c)z1(h,e[c]&ui);f=0,h.a+=String.fromCharCode(t)}else{for(c=0;c<f;++c)z1(h,e[c]&ui);f=0,z1(h,(zn(r,n.length),n.charCodeAt(r)))}return h.a}function YGn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m;if(p=St(Gr(u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84))),m=St(Gr(u(N((!n.c&&(n.c=new Dn(he,n,5,8)),n.c),0),84))),d=p==m,f=new Ni,e=u(z(n,(DC(),udn)),75),e&&e.b>=2){if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i==0)t=(K1(),r=new jE,r),ve((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),t);else if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i>1)for(g=new kp((!n.a&&(n.a=new q(Tt,n,6,6)),n.a));g.e!=g.i.gc();)A5(g);dy(e,u(N((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),0),166))}if(d)for(i=new ne((!n.a&&(n.a=new q(Tt,n,6,6)),n.a));i.e!=i.i.gc();)for(t=u(ue(i),166),l=new ne((!t.a&&(t.a=new ti(xo,t,5)),t.a));l.e!=l.i.gc();)h=u(ue(l),377),f.a=y.Math.max(f.a,h.a),f.b=y.Math.max(f.b,h.b);for(s=new ne((!n.n&&(n.n=new q(Sr,n,1,7)),n.n));s.e!=s.i.gc();)c=u(ue(s),135),a=u(z(c,j9),8),a&&Bo(c,a.a,a.b),d&&(f.a=y.Math.max(f.a,c.i+c.g),f.b=y.Math.max(f.b,c.j+c.f));return f}function ZGn(n,e,t,i,r){var c,s,f;if(n$n(n,e),s=e[0],c=Xi(t.c,0),f=-1,tY(t))if(i>0){if(s+i>n.length)return!1;f=yS((Ri(0,s+i,n.length),n.substr(0,s+i)),e)}else f=yS(n,e);switch(c){case 71:return f=Ug(n,s,S(C(fn,1),J,2,6,[Kzn,Bzn]),e),r.e=f,!0;case 77:return lSe(n,e,r,f,s);case 76:return aSe(n,e,r,f,s);case 69:return iEe(n,e,s,r);case 99:return rEe(n,e,s,r);case 97:return f=Ug(n,s,S(C(fn,1),J,2,6,["AM","PM"]),e),r.b=f,!0;case 121:return dSe(n,e,s,f,t,r);case 100:return f<=0?!1:(r.c=f,!0);case 83:return f<0?!1:v8e(f,s,e[0],r);case 104:f==12&&(f=0);case 75:case 72:return f<0?!1:(r.f=f,r.g=!1,!0);case 107:return f<0?!1:(r.f=f,r.g=!0,!0);case 109:return f<0?!1:(r.j=f,!0);case 115:return f<0?!1:(r.n=f,!0);case 90:if(s<n.length&&(zn(s,n.length),n.charCodeAt(s)==90))return++e[0],r.o=0,!0;case 122:case 118:return Sye(n,s,e,r);default:return!1}}function JLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn;for(A=e.c.length,r=new Wg(n.a,t,null,null),yn=F(Ii,Cr,28,A,15,1),k=F(Ii,Cr,28,A,15,1),m=F(Ii,Cr,28,A,15,1),j=0,f=0;f<A;f++)k[f]=et,m[f]=Wi;for(h=0;h<A;h++)for(i=(Nn(h,e.c.length),u(e.c[h],185)),yn[h]=gR(i),yn[j]>yn[h]&&(j=h),d=new M(n.a.b);d.a<d.c.c.length;)for(a=u(E(d),30),O=new M(a.a);O.a<O.c.c.length;)P=u(E(O),10),X=$(i.p[P.p])+$(i.d[P.p]),k[h]=y.Math.min(k[h],X),m[h]=y.Math.max(m[h],X+P.o.b);for(tn=F(Ii,Cr,28,A,15,1),l=0;l<A;l++)(Nn(l,e.c.length),u(e.c[l],185)).o==(If(),Bd)?tn[l]=k[j]-k[l]:tn[l]=m[j]-m[l];for(c=F(Ii,Cr,28,A,15,1),p=new M(n.a.b);p.a<p.c.c.length;)for(g=u(E(p),30),_=new M(g.a);_.a<_.c.c.length;){for(D=u(E(_),10),s=0;s<A;s++)c[s]=$((Nn(s,e.c.length),u(e.c[s],185)).p[D.p])+$((Nn(s,e.c.length),u(e.c[s],185)).d[D.p])+tn[s];Iyn(c,O$n(mE.prototype.Me,mE,[])),r.p[D.p]=(c[1]+c[2])/2,r.d[D.p]=0}return r}function QLe(n,e,t){var i,r,c,s,f;switch(i=e.i,c=n.i.o,r=n.i.d,f=n.n,s=cc(S(C(Ei,1),J,8,0,[f,n.a])),n.j.g){case 1:uh(e,(bu(),Xs)),i.d=-r.d-t-i.a,u(u(sn(e.d,0),187).of((W(),S3)),291)==(Co(),nl)?(df(e,(Uu(),zs)),i.c=s.a-$(B(v(n,y2)))-t-i.b):(df(e,(Uu(),Th)),i.c=s.a+$(B(v(n,y2)))+t);break;case 2:df(e,(Uu(),Th)),i.c=c.a+r.c+t,u(u(sn(e.d,0),187).of((W(),S3)),291)==(Co(),nl)?(uh(e,(bu(),Xs)),i.d=s.b-$(B(v(n,y2)))-t-i.a):(uh(e,(bu(),kf)),i.d=s.b+$(B(v(n,y2)))+t);break;case 3:uh(e,(bu(),kf)),i.d=c.b+r.a+t,u(u(sn(e.d,0),187).of((W(),S3)),291)==(Co(),nl)?(df(e,(Uu(),zs)),i.c=s.a-$(B(v(n,y2)))-t-i.b):(df(e,(Uu(),Th)),i.c=s.a+$(B(v(n,y2)))+t);break;case 4:df(e,(Uu(),zs)),i.c=-r.b-t-i.b,u(u(sn(e.d,0),187).of((W(),S3)),291)==(Co(),nl)?(uh(e,(bu(),Xs)),i.d=s.b-$(B(v(n,y2)))-t-i.a):(uh(e,(bu(),kf)),i.d=s.b+$(B(v(n,y2)))+t)}}function YLe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k;for(t.Ug(kVn,1),!e.a&&(e.a=new q(Ye,e,10,11)),i=$(B(z(e,(Bf(),zO)))),a=$(B(z(e,l9))),g=u(z(e,h9),107),p=new aX(i,a),c=vzn(p,e,g),C$n(e,p),f=u(z(e,m1n),17).a;f>1;){if(r=rCe(e),d=c.g,m=u(z(e,h9),107),k=$(B(z(e,zO))),(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i>1&&$(B(z(e,(_h(),Iq))))!=Pt&&(c.c+(m.b+m.c))/(c.b+(m.d+m.a))<k?ht(r,(_h(),Xw),$(B(z(e,Xw)))+$(B(z(e,Iq)))):(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i>1&&$(B(z(e,(_h(),Pq))))!=Pt&&(c.c+(m.b+m.c))/(c.b+(m.d+m.a))>k&&ht(r,(_h(),Xw),y.Math.max($(B(z(e,f9))),$(B(z(r,Xw)))-$(B(z(e,Pq))))),p=new aX(i,a),h=vzn(p,r,g),l=h.g,l>=d&&l==l){for(s=0;s<(!r.a&&(r.a=new q(Ye,r,10,11)),r.a).i;s++)z_n(n,u(N((!r.a&&(r.a=new q(Ye,r,10,11)),r.a),s),27),u(N((!e.a&&(e.a=new q(Ye,e,10,11)),e.a),s),27));C$n(e,p),s2e(c,h.c),o2e(c,h.b)}--f}ht(e,(_h(),Dv),c.b),ht(e,A3,c.c),t.Vg()}function ZLe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;for(e.Ug("Interactive node layering",1),t=new Z,g=new M(n.a);g.a<g.c.c.length;){for(a=u(E(g),10),h=a.n.a,f=h+a.o.a,f=y.Math.max(h+1,f),O=new xi(t,0),i=null;O.b<O.d.gc();)if(j=(oe(O.b<O.d.gc()),u(O.d.Xb(O.c=O.b++),578)),j.c>=f){oe(O.b>0),O.a.Xb(O.c=--O.b);break}else j.a>h&&(i?(hi(i.b,j.b),i.a=y.Math.max(i.a,j.a),bo(O)):(nn(j.b,a),j.c=y.Math.min(j.c,h),j.a=y.Math.max(j.a,f),i=j));i||(i=new Vyn,i.c=h,i.a=f,B0(O,i),nn(i.b,a))}for(s=n.b,l=0,P=new M(t);P.a<P.c.c.length;)for(j=u(E(P),578),r=new Nc(n),r.p=l++,Fn(s.c,r),p=new M(j.b);p.a<p.c.c.length;)a=u(E(p),10),$i(a,r),a.p=0;for(d=new M(n.a);d.a<d.c.c.length;)if(a=u(E(d),10),a.p==0)for(k=Hqn(a,n);k.a.gc()!=0;)m=u(k.a.ec().Kc().Pb(),10),k.a.Bc(m)!=null,Ki(k,Hqn(m,n));for(c=new xi(s,0);c.b<c.d.gc();)(oe(c.b<c.d.gc()),u(c.d.Xb(c.c=c.b++),30)).a.c.length==0&&bo(c);n.a.c.length=0,e.Vg()}function nNe(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt;for(p=0,Rn=0,h=new M(n);h.a<h.c.c.length;)f=u(E(h),27),RGn(f),p=y.Math.max(p,f.g),Rn+=f.g*f.f;for(m=Rn/n.c.length,kn=R7e(n,m),Rn+=n.c.length*kn,p=y.Math.max(p,y.Math.sqrt(Rn*s))+t.b,xe=t.b,Nt=t.d,g=0,a=t.b+t.c,yn=new Mt,Re(yn,Y(0)),X=new Mt,l=new xi(n,0);l.b<l.d.gc();)f=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),27)),te=f.g,d=f.f,xe+te>p&&(c&&(ir(X,g),ir(yn,Y(l.b-1))),xe=t.b,Nt+=g+e,g=0,a=y.Math.max(a,t.b+t.c+te)),eu(f,xe),tu(f,Nt),a=y.Math.max(a,xe+te+t.c),g=y.Math.max(g,d),xe+=te+e;if(a=y.Math.max(a,i),Bn=Nt+g+t.a,Bn<r&&(g+=r-Bn,Bn=r),c)for(xe=t.b,l=new xi(n,0),ir(yn,Y(n.c.length)),tn=ge(yn,0),P=u(be(tn),17).a,ir(X,g),_=ge(X,0),D=0;l.b<l.d.gc();)l.b==P&&(xe=t.b,D=$(B(be(_))),P=u(be(tn),17).a),f=(oe(l.b<l.d.gc()),u(l.d.Xb(l.c=l.b++),27)),O=f.f,Ib(f,D),k=D,l.b==P&&(j=a-xe-t.c,A=f.g,Ob(f,j),Enn(f,new V(j,k),new V(A,O))),xe+=f.g+e;return new V(a,Bn)}function eNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn;for(e.Ug("Compound graph postprocessor",1),t=on(un(v(n,(cn(),AH)))),f=u(v(n,(W(),efn)),229),a=new ni,P=f.ec().Kc();P.Ob();){for(j=u(P.Pb(),18),s=new _u(f.cc(j)),Ln(),Yt(s,new LG(n)),_=lve((Nn(0,s.c.length),u(s.c[0],249))),tn=Txn(u(sn(s,s.c.length-1),249)),A=_.i,Q4(tn.i,A)?O=A.e:O=Hi(A),d=w9e(j,s),vo(j.a),g=null,c=new M(s);c.a<c.c.c.length;)r=u(E(c),249),k=new Ni,pnn(k,r.a,O),p=r.b,i=new Tu,J$(i,0,p.a),nw(i,k),D=new rr(Of(p.c)),X=new rr(Of(p.d)),tt(D,k),tt(X,k),g&&(i.b==0?m=X:m=(oe(i.b!=0),u(i.a.a.c,8)),yn=y.Math.abs(g.a-m.a)>vh,kn=y.Math.abs(g.b-m.b)>vh,(!t&&yn&&kn||t&&(yn||kn))&&Re(j.a,D)),Ki(j.a,i),i.b==0?g=D:g=(oe(i.b!=0),u(i.c.b.c,8)),Bve(p,d,k),Txn(r)==tn&&(Hi(tn.i)!=r.a&&(k=new Ni,pnn(k,Hi(tn.i),O)),U(j,gH,k)),yje(p,j,O),a.a.zc(p,a);Zi(j,_),Oi(j,tn)}for(l=a.a.ec().Kc();l.Ob();)h=u(l.Pb(),18),Zi(h,null),Oi(h,null);e.Vg()}function tNe(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(r=u(v(n,(lc(),v0)),88),a=r==(ci(),Kr)||r==Xr?Wf:Xr,t=u(Wr(ut(new Cn(null,new On(n.b,16)),new n4n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),h=u(Wr(_r(t.Oc(),new wkn(e)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),h.Gc(u(Wr(_r(t.Oc(),new gkn(e)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),16)),h.jd(new pkn(a)),g=new Ul(new mkn(r)),i=new de,f=h.Kc();f.Ob();)s=u(f.Pb(),240),l=u(s.a,40),on(un(s.c))?(g.a.zc(l,(_n(),ga))==null,new Y3(g.a.Zc(l,!1)).a.gc()>0&&Ve(i,l,u(new Y3(g.a.Zc(l,!1)).a.Vc(),40)),new Y3(g.a.ad(l,!0)).a.gc()>1&&Ve(i,IKn(g,l),l)):(new Y3(g.a.Zc(l,!1)).a.gc()>0&&(c=u(new Y3(g.a.Zc(l,!1)).a.Vc(),40),x(c)===x(Fr(wr(i.f,l)))&&u(v(l,(pt(),nq)),15).Fc(c)),new Y3(g.a.ad(l,!0)).a.gc()>1&&(d=IKn(g,l),x(Fr(wr(i.f,d)))===x(l)&&u(v(d,(pt(),nq)),15).Fc(l)),g.a.Bc(l)!=null)}function nzn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(n.gc()==1)return u(n.Xb(0),235);if(n.gc()<=0)return new zT;for(r=n.Kc();r.Ob();){for(t=u(r.Pb(),235),m=0,a=et,d=et,h=Wi,l=Wi,p=new M(t.e);p.a<p.c.c.length;)g=u(E(p),153),m+=u(v(g,(Us(),k3)),17).a,a=y.Math.min(a,g.d.a-g.e.a/2),d=y.Math.min(d,g.d.b-g.e.b/2),h=y.Math.max(h,g.d.a+g.e.a/2),l=y.Math.max(l,g.d.b+g.e.b/2);U(t,(Us(),k3),Y(m)),U(t,(Q1(),L8),new V(a,d)),U(t,lj,new V(h,l))}for(Ln(),n.jd(new G0n),k=new zT,Ur(k,u(n.Xb(0),96)),f=0,O=0,c=n.Kc();c.Ob();)t=u(c.Pb(),235),j=mi(Fi(u(v(t,(Q1(),lj)),8)),u(v(t,L8),8)),f=y.Math.max(f,j.a),O+=j.a*j.b;for(f=y.Math.max(f,y.Math.sqrt(O)*$(B(v(k,(Us(),zYn))))),P=$(B(v(k,yI))),A=0,D=0,s=0,e=P,i=n.Kc();i.Ob();)t=u(i.Pb(),235),j=mi(Fi(u(v(t,(Q1(),lj)),8)),u(v(t,L8),8)),A+j.a>f&&(A=0,D+=s+P,s=0),IPe(k,t,A,D),e=y.Math.max(e,A+j.a),s=y.Math.max(s,j.b),A+=j.a+P;return k}function iNe(n){Ren();var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(n==null||(c=iC(n),m=A5e(c),m%4!=0))return null;if(k=m/4|0,k==0)return F(Ru,s2,28,0,15,1);for(d=null,e=0,t=0,i=0,r=0,s=0,f=0,h=0,l=0,p=0,g=0,a=0,d=F(Ru,s2,28,k*3,15,1);p<k-1;p++){if(!n7(s=c[a++])||!n7(f=c[a++])||!n7(h=c[a++])||!n7(l=c[a++]))return null;e=nh[s],t=nh[f],i=nh[h],r=nh[l],d[g++]=(e<<2|t>>4)<<24>>24,d[g++]=((t&15)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24}return!n7(s=c[a++])||!n7(f=c[a++])?null:(e=nh[s],t=nh[f],h=c[a++],l=c[a++],nh[h]==-1||nh[l]==-1?h==61&&l==61?t&15?null:(j=F(Ru,s2,28,p*3+1,15,1),Oc(d,0,j,0,p*3),j[g]=(e<<2|t>>4)<<24>>24,j):h!=61&&l==61?(i=nh[h],i&3?null:(j=F(Ru,s2,28,p*3+2,15,1),Oc(d,0,j,0,p*3),j[g++]=(e<<2|t>>4)<<24>>24,j[g]=((t&15)<<4|i>>2&15)<<24>>24,j)):null:(i=nh[h],r=nh[l],d[g++]=(e<<2|t>>4)<<24>>24,d[g++]=((t&15)<<4|i>>2&15)<<24>>24,d[g++]=(i<<6|r)<<24>>24,d))}function rNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;for(e.Ug(XXn,1),m=u(v(n,(cn(),$l)),223),r=new M(n.b);r.a<r.c.c.length;)for(i=u(E(r),30),l=Y7(i.a),s=l,f=0,h=s.length;f<h;++f)if(c=s[f],c.k==(Vn(),_c)){if(m==(El(),R3))for(d=new M(c.j);d.a<d.c.c.length;)a=u(E(d),12),a.e.c.length==0||W8e(a),a.g.c.length==0||J8e(a);else if(L(v(c,(W(),st)),18))j=u(v(c,st),18),P=u(h1(c,(en(),Wn)).Kc().Pb(),12),O=u(h1(c,Zn).Kc().Pb(),12),A=u(v(P,st),12),D=u(v(O,st),12),Zi(j,D),Oi(j,A),_=new rr(O.i.n),_.a=cc(S(C(Ei,1),J,8,0,[D.i.n,D.n,D.a])).a,Re(j.a,_),_=new rr(P.i.n),_.a=cc(S(C(Ei,1),J,8,0,[A.i.n,A.n,A.a])).a,Re(j.a,_);else{if(c.j.c.length>=2){for(k=!0,g=new M(c.j),t=u(E(g),12),p=null;g.a<g.c.c.length;)if(p=t,t=u(E(g),12),!rt(v(p,st),v(t,st))){k=!1;break}}else k=!1;for(d=new M(c.j);d.a<d.c.c.length;)a=u(E(d),12),a.e.c.length==0||DCe(a,k),a.g.c.length==0||$Ce(a,k)}$i(c,null)}e.Vg()}function cNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;for(f=new M(n.a.b);f.a<f.c.c.length;)for(c=u(E(f),30),A=new M(c.a);A.a<A.c.c.length;)O=u(E(A),10),e.g[O.p]=O,e.a[O.p]=O,e.d[O.p]=0;for(h=n.a.b,e.c==(fh(),y1)&&(h=Qo(h)),s=h.Kc();s.Ob();)for(c=u(s.Pb(),30),p=-1,g=c.a,e.o==(If(),Xf)&&(p=et,g=Qo(g)),_=g.Kc();_.Ob();)if(D=u(_.Pb(),10),d=null,e.c==y1?d=u(sn(n.b.f,D.p),15):d=u(sn(n.b.b,D.p),15),d.gc()>0)if(i=d.gc(),l=wi(y.Math.floor((i+1)/2))-1,r=wi(y.Math.ceil((i+1)/2))-1,e.o==Xf)for(a=r;a>=l;a--)e.a[D.p]==D&&(k=u(d.Xb(a),42),m=u(k.a,10),!sf(t,k.b)&&p>n.b.e[m.p]&&(e.a[m.p]=D,e.g[D.p]=e.g[m.p],e.a[D.p]=e.g[D.p],e.f[e.g[D.p].p]=(_n(),!!(on(e.f[e.g[D.p].p])&D.k==(Vn(),Ti))),p=n.b.e[m.p]));else for(a=l;a<=r;a++)e.a[D.p]==D&&(P=u(d.Xb(a),42),j=u(P.a,10),!sf(t,P.b)&&p<n.b.e[j.p]&&(e.a[j.p]=D,e.g[D.p]=e.g[j.p],e.a[D.p]=e.g[D.p],e.f[e.g[D.p].p]=(_n(),!!(on(e.f[e.g[D.p].p])&D.k==(Vn(),Ti))),p=n.b.e[j.p]))}function ezn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn;return A=n.c[(Nn(0,e.c.length),u(e.c[0],18)).p],tn=n.c[(Nn(1,e.c.length),u(e.c[1],18)).p],A.a.e.e-A.a.a-(A.b.e.e-A.b.a)==0&&tn.a.e.e-tn.a.a-(tn.b.e.e-tn.b.a)==0||(P=A.b.e.f,!L(P,10))?!1:(j=u(P,10),_=n.i[j.p],X=j.c?qr(j.c.a,j,0):-1,c=Pt,X>0&&(r=u(sn(j.c.a,X-1),10),s=n.i[r.p],yn=y.Math.ceil(jg(n.n,r,j)),c=_.a.e-j.d.d-(s.a.e+r.o.b+r.d.a)-yn),l=Pt,X<j.c.a.c.length-1&&(h=u(sn(j.c.a,X+1),10),a=n.i[h.p],yn=y.Math.ceil(jg(n.n,h,j)),l=a.a.e-h.d.d-(_.a.e+j.o.b+j.d.a)-yn),t&&(Cf(),Fs(jh),y.Math.abs(c-l)<=jh||c==l||isNaN(c)&&isNaN(l))?!0:(i=fD(A.a),f=-fD(A.b),d=-fD(tn.a),O=fD(tn.b),k=A.a.e.e-A.a.a-(A.b.e.e-A.b.a)>0&&tn.a.e.e-tn.a.a-(tn.b.e.e-tn.b.a)<0,m=A.a.e.e-A.a.a-(A.b.e.e-A.b.a)<0&&tn.a.e.e-tn.a.a-(tn.b.e.e-tn.b.a)>0,p=A.a.e.e+A.b.a<tn.b.e.e+tn.a.a,g=A.a.e.e+A.b.a>tn.b.e.e+tn.a.a,D=0,!k&&!m&&(g?c+d>0?D=d:l-i>0&&(D=i):p&&(c+f>0?D=f:l-O>0&&(D=O))),_.a.e+=D,_.b&&(_.d.e+=D),!1))}function tzn(n,e,t){var i,r,c,s,f,h,l,a,d,g;if(i=new Ho(e.Lf().a,e.Lf().b,e.Mf().a,e.Mf().b),r=new mp,n.c)for(s=new M(e.Rf());s.a<s.c.c.length;)c=u(E(s),187),r.c=c.Lf().a+e.Lf().a,r.d=c.Lf().b+e.Lf().b,r.b=c.Mf().a,r.a=c.Mf().b,L5(i,r);for(l=new M(e.Xf());l.a<l.c.c.length;){if(h=u(E(l),852),a=h.Lf().a+e.Lf().a,d=h.Lf().b+e.Lf().b,n.e&&(r.c=a,r.d=d,r.b=h.Mf().a,r.a=h.Mf().b,L5(i,r)),n.d)for(s=new M(h.Rf());s.a<s.c.c.length;)c=u(E(s),187),r.c=c.Lf().a+a,r.d=c.Lf().b+d,r.b=c.Mf().a,r.a=c.Mf().b,L5(i,r);if(n.b){if(g=new V(-t,-t),u(e.of((He(),Ww)),181).Hc((zu(),Oa)))for(s=new M(h.Rf());s.a<s.c.c.length;)c=u(E(s),187),g.a+=c.Mf().a+t,g.b+=c.Mf().b+t;g.a=y.Math.max(g.a,0),g.b=y.Math.max(g.b,0),EUn(i,h.Wf(),h.Uf(),e,h,g,t)}}n.b&&EUn(i,e.Wf(),e.Uf(),e,null,null,t),f=new qN(e.Vf()),f.d=y.Math.max(0,e.Lf().b-i.d),f.a=y.Math.max(0,i.d+i.a-(e.Lf().b+e.Mf().b)),f.b=y.Math.max(0,e.Lf().a-i.c),f.c=y.Math.max(0,i.c+i.b-(e.Lf().a+e.Mf().a)),e.Zf(f)}function uNe(){var n=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F"];return n[34]='\\"',n[92]="\\\\",n[173]="\\u00ad",n[1536]="\\u0600",n[1537]="\\u0601",n[1538]="\\u0602",n[1539]="\\u0603",n[1757]="\\u06dd",n[1807]="\\u070f",n[6068]="\\u17b4",n[6069]="\\u17b5",n[8203]="\\u200b",n[8204]="\\u200c",n[8205]="\\u200d",n[8206]="\\u200e",n[8207]="\\u200f",n[8232]="\\u2028",n[8233]="\\u2029",n[8234]="\\u202a",n[8235]="\\u202b",n[8236]="\\u202c",n[8237]="\\u202d",n[8238]="\\u202e",n[8288]="\\u2060",n[8289]="\\u2061",n[8290]="\\u2062",n[8291]="\\u2063",n[8292]="\\u2064",n[8298]="\\u206a",n[8299]="\\u206b",n[8300]="\\u206c",n[8301]="\\u206d",n[8302]="\\u206e",n[8303]="\\u206f",n[65279]="\\ufeff",n[65529]="\\ufff9",n[65530]="\\ufffa",n[65531]="\\ufffb",n}function izn(n){rb(n,new gd(yz(UE(eb(Yd(nb(Zd(new Fa,cu),"ELK Force"),"Force-based algorithm provided by the Eclipse Layout Kernel. Implements methods that follow physical analogies by simulating forces that move the nodes into a balanced distribution. Currently the original Eades model and the Fruchterman - Reingold model are supported."),new W0n),cu),yt((Mm(),vA),S(C(kA,1),G,245,0,[pA]))))),Q(n,cu,Dy,Y(1)),Q(n,cu,yw,80),Q(n,cu,eB,5),Q(n,cu,l3,Gm),Q(n,cu,uP,Y(1)),Q(n,cu,t8,(_n(),!0)),Q(n,cu,Wb,mon),Q(n,cu,i8,rn(won)),Q(n,cu,tB,rn(von)),Q(n,cu,oP,!1),Q(n,cu,r8,rn(pon)),Q(n,cu,zm,rn(JYn)),Q(n,cu,a3,rn(QYn)),Q(n,cu,r2,rn(WYn)),Q(n,cu,Xm,rn(VYn)),Q(n,cu,Vm,rn(ZYn)),Q(n,cu,cP,rn(gon)),Q(n,cu,ZK,rn(k_)),Q(n,cu,Xtn,rn(kI)),Q(n,cu,nB,rn(v_)),Q(n,cu,Vtn,rn(kon)),Q(n,cu,$y,rn(cZn)),Q(n,cu,xy,rn(uZn)),Q(n,cu,Ry,rn(rZn)),Q(n,cu,Ky,rn(iZn)),Q(n,cu,Jb,yon)}function sa(n,e){nt();var t,i,r,c,s,f,h,l,a,d,g,p,m;if(c6(Uv)==0){for(d=F(DDe,J,122,yse.length,0,1),s=0;s<d.length;s++)d[s]=new yo(4);for(i=new i6,c=0;c<hbn.length;c++){if(a=new yo(4),c<84?(f=c*2,p=(zn(f,KF.length),KF.charCodeAt(f)),g=(zn(f+1,KF.length),KF.charCodeAt(f+1)),xc(a,p,g)):(f=(c-84)*2,xc(a,lbn[f],lbn[f+1])),h=hbn[c],Sn(h,"Specials")&&xc(a,65520,65533),Sn(h,WJn)&&(xc(a,983040,1048573),xc(a,1048576,1114109)),Lr(Uv,h,a),Lr(B9,h,bw(a)),l=i.a.length,0<l?i.a=qo(i.a,0,0):0>l&&(i.a+=OCn(F(fs,gh,28,-l,15,1))),i.a+="Is",ih(h,wu(32))>=0)for(r=0;r<h.length;r++)zn(r,h.length),h.charCodeAt(r)!=32&&C4(i,(zn(r,h.length),h.charCodeAt(r)));else i.a+=""+h;YY(i.a,h,!0)}YY(RF,"Cn",!1),YY(eun,"Cn",!0),t=new yo(4),xc(t,0,cv),Lr(Uv,"ALL",t),Lr(B9,"ALL",bw(t)),!rg&&(rg=new de),Lr(rg,RF,RF),!rg&&(rg=new de),Lr(rg,eun,eun),!rg&&(rg=new de),Lr(rg,"ALL","ALL")}return m=u(Dc(e?Uv:B9,n),138),m}function rzn(n){rb(n,new gd(yz(UE(eb(Yd(nb(Zd(new Fa,uu),"ELK Mr. Tree"),"Tree-based algorithm provided by the Eclipse Layout Kernel. Computes a spanning tree of the input graph and arranges all nodes according to the resulting parent-children hierarchy. I pity the fool who doesn't use Mr. Tree Layout."),new g4n),gVn),jn((Mm(),pU))))),Q(n,uu,Wb,Aln),Q(n,uu,yw,20),Q(n,uu,$B,3),Q(n,uu,l3,Gm),Q(n,uu,Dy,Y(1)),Q(n,uu,t8,(_n(),!0)),Q(n,uu,Uy,rn(Cln)),Q(n,uu,xB,Sln),Q(n,uu,i8,rn(jre)),Q(n,uu,SP,rn(Ere)),Q(n,uu,r2,rn(Tre)),Q(n,uu,zm,rn(Cre)),Q(n,uu,d3,rn(Sre)),Q(n,uu,a3,rn(Pre)),Q(n,uu,Xm,rn(Mre)),Q(n,uu,r8,rn(Iln)),Q(n,uu,Vm,rn(Ire)),Q(n,uu,Arn,rn($ln)),Q(n,uu,Nrn,rn(Lln)),Q(n,uu,$y,rn(Nre)),Q(n,uu,xy,rn(Dre)),Q(n,uu,Ry,rn(Lre)),Q(n,uu,Ky,rn(Are)),Q(n,uu,Jb,Dln),Q(n,uu,Orn,rn(A2)),Q(n,uu,Lrn,rn(oq)),Q(n,uu,Irn,rn(Ph)),Q(n,uu,Srn,rn(Tln)),Q(n,uu,Prn,rn(Pln))}function czn(n,e){var t,i,r,c,s,f,h,l,a,d,g;for(l=u(u(ot(n.r,e),21),87),s=Bye(n,e),t=n.u.Hc((zu(),C9)),h=l.Kc();h.Ob();)if(f=u(h.Pb(),117),!(!f.c||f.c.d.c.length<=0)){switch(g=f.b.Mf(),a=f.c,d=a.i,d.b=(c=a.n,a.e.a+c.b+c.c),d.a=(r=a.n,a.e.b+r.d+r.a),e.g){case 1:f.a?(d.c=(g.a-d.b)/2,df(a,(Uu(),pa))):s||t?(d.c=-d.b-n.s,df(a,(Uu(),zs))):(d.c=g.a+n.s,df(a,(Uu(),Th))),d.d=-d.a-n.t,uh(a,(bu(),Xs));break;case 3:f.a?(d.c=(g.a-d.b)/2,df(a,(Uu(),pa))):s||t?(d.c=-d.b-n.s,df(a,(Uu(),zs))):(d.c=g.a+n.s,df(a,(Uu(),Th))),d.d=g.b+n.t,uh(a,(bu(),kf));break;case 2:f.a?(i=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(g.b-i)/2,uh(a,(bu(),ma))):s||t?(d.d=-d.a-n.t,uh(a,(bu(),Xs))):(d.d=g.b+n.t,uh(a,(bu(),kf))),d.c=g.a+n.s,df(a,(Uu(),Th));break;case 4:f.a?(i=n.v?d.a:u(sn(a.d,0),187).Mf().b,d.d=(g.b-i)/2,uh(a,(bu(),ma))):s||t?(d.d=-d.a-n.t,uh(a,(bu(),Xs))):(d.d=g.b+n.t,uh(a,(bu(),kf))),d.c=-d.b-n.s,df(a,(Uu(),zs))}s=!1}}function oNe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;if(g=!1,d=!1,mg(u(v(i,(cn(),Ft)),101))){s=!1,f=!1;n:for(m=new M(i.j);m.a<m.c.c.length;)for(p=u(E(m),12),j=$h(Eo(S(C(Ao,1),Kn,20,0,[new e4(p),new ip(p)])));pe(j);)if(k=u(fe(j),12),!on(un(v(k.i,q8)))){if(p.j==(en(),Xn)){s=!0;break n}if(p.j==ae){f=!0;break n}}g=f&&!s,d=s&&!f}if(!g&&!d&&i.b.c.length!=0){for(a=0,l=new M(i.b);l.a<l.c.c.length;)h=u(E(l),72),a+=h.n.b+h.o.b/2;a/=i.b.c.length,O=a>=i.o.b/2}else O=!d;O?(P=u(v(i,(W(),I3)),15),P?g?c=P:(r=u(v(i,M3),15),r?P.gc()<=r.gc()?c=P:c=r:(c=new Z,U(i,M3,c))):(c=new Z,U(i,I3,c))):(r=u(v(i,(W(),M3)),15),r?d?c=r:(P=u(v(i,I3),15),P?r.gc()<=P.gc()?c=r:c=P:(c=new Z,U(i,I3,c))):(c=new Z,U(i,M3,c))),c.Fc(n),U(n,(W(),tO),t),e.d==t?(Oi(e,null),t.e.c.length+t.g.c.length==0&&ic(t,null),j6e(t)):(Zi(e,null),t.e.c.length+t.g.c.length==0&&ic(t,null)),vo(e.a)}function sNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt;for(t.Ug("MinWidth layering",1),p=e.b,tn=e.a,Nt=u(v(e,(cn(),ihn)),17).a,f=u(v(e,rhn),17).a,n.b=$(B(v(e,Ws))),n.d=Pt,D=new M(tn);D.a<D.c.c.length;)O=u(E(D),10),O.k==(Vn(),zt)&&(Rn=O.o.b,n.d=y.Math.min(n.d,Rn));for(n.d=y.Math.max(1,n.d),yn=tn.c.length,n.c=F(ye,_e,28,yn,15,1),n.f=F(ye,_e,28,yn,15,1),n.e=F(Ii,Cr,28,yn,15,1),l=0,n.a=0,_=new M(tn);_.a<_.c.c.length;)O=u(E(_),10),O.p=l++,n.c[O.p]=FRn(ji(O)),n.f[O.p]=FRn(Qt(O)),n.e[O.p]=O.o.b/n.d,n.a+=n.e[O.p];for(n.b/=n.d,n.a/=yn,X=YEe(tn),Yt(tn,HW(new N7n(n))),k=Pt,m=et,s=null,xe=Nt,te=Nt,c=f,r=f,Nt<0&&(xe=u(eln.a.Id(),17).a,te=u(eln.b.Id(),17).a),f<0&&(c=u(nln.a.Id(),17).a,r=u(nln.b.Id(),17).a),Bn=xe;Bn<=te;Bn++)for(i=c;i<=r;i++)kn=HIe(n,Bn,i,tn,X),P=$(B(kn.a)),g=u(kn.b,15),j=g.gc(),(P<k||P==k&&j<m)&&(k=P,m=j,s=g);for(d=s.Kc();d.Ob();){for(a=u(d.Pb(),15),h=new Nc(e),A=a.Kc();A.Ob();)O=u(A.Pb(),10),$i(O,h);Fn(p.c,h)}Yk(p),tn.c.length=0,t.Vg()}function fNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;if(t.Ug("Spline edge routing",1),e.b.c.length==0){e.f.a=0,t.Vg();return}O=$(B(v(e,(cn(),S2)))),f=$(B(v(e,Kd))),s=$(B(v(e,T2))),P=u(v(e,MH),350),yn=P==(om(),Y8),tn=$(B(v(e,Wfn))),n.d=e,n.j.c.length=0,n.a.c.length=0,Hu(n.k),h=u(sn(e.b,0),30),a=PM(h.a,(AS(),Lj)),m=u(sn(e.b,e.b.c.length-1),30),d=PM(m.a,Lj),k=new M(e.b),j=null,te=0;do{for(A=k.a<k.c.c.length?u(E(k),30):null,qLe(n,j,A),gIe(n),kn=ghe(ave(ET(ut(new Cn(null,new On(n.i,16)),new B3n),new F3n))),Bn=0,D=te,g=!j||a&&j==h,p=!A||d&&A==m,kn>0?(l=0,j&&(l+=f),l+=(kn-1)*s,A&&(l+=f),yn&&A&&(l=y.Math.max(l,PCe(A,s,O,tn))),l<O&&!g&&!p&&(Bn=(O-l)/2,l=O),D+=l):!g&&!p&&(D+=O),A&&Ven(A,D),X=new M(n.i);X.a<X.c.c.length;)_=u(E(X),131),_.a.c=te,_.a.b=D-te,_.F=Bn,_.p=!j;hi(n.a,n.i),te=D,A&&(te+=A.c.a),j=A,g=p}while(A);for(r=new M(n.j);r.a<r.c.c.length;)i=u(E(r),18),c=eve(n,i),U(i,(W(),M2),c),Rn=FCe(n,i),U(i,Ld,Rn);e.f.a=te,n.d=null,t.Vg()}function hNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(n.b=e,n.a=u(v(e,(cn(),Qfn)),17).a,n.c=u(v(e,Zfn),17).a,n.c==0&&(n.c=et),j=new xi(e.b,0);j.b<j.d.gc();){for(k=(oe(j.b<j.d.gc()),u(j.d.Xb(j.c=j.b++),30)),f=new Z,a=-1,D=-1,A=new M(k.a);A.a<A.c.c.length;)O=u(E(A),10),wl((N7(),new ie(ce(Ml(O).a.Kc(),new En))))>=n.a&&(i=UIe(n,O),a=y.Math.max(a,i.b),D=y.Math.max(D,i.d),nn(f,new bi(O,i)));for(yn=new Z,l=0;l<a;++l)bb(yn,0,(oe(j.b>0),j.a.Xb(j.c=--j.b),kn=new Nc(n.b),B0(j,kn),oe(j.b<j.d.gc()),j.d.Xb(j.c=j.b++),kn));for(s=new M(f);s.a<s.c.c.length;)if(r=u(E(s),42),p=u(r.b,580).a,!!p)for(g=new M(p);g.a<g.c.c.length;)d=u(E(g),10),MZ(n,d,MI,yn);for(t=new Z,h=0;h<D;++h)nn(t,(Rn=new Nc(n.b),B0(j,Rn),Rn));for(c=new M(f);c.a<c.c.c.length;)if(r=u(E(c),42),tn=u(r.b,580).c,!!tn)for(X=new M(tn);X.a<X.c.c.length;)_=u(E(X),10),MZ(n,_,TI,t)}for(P=new xi(e.b,0);P.b<P.d.gc();)m=(oe(P.b<P.d.gc()),u(P.d.Xb(P.c=P.b++),30)),m.a.c.length==0&&bo(P)}function uzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(k=n.i!=0,A=!1,P=null,fo(n.e)){if(a=e.gc(),a>0){for(g=a<100?null:new R1(a),l=new BQ(e),m=l.g,P=F(ye,_e,28,a,15,1),i=0,D=new Pb(a),r=0;r<n.i;++r){f=n.g[r],p=f;n:for(O=0;O<2;++O){for(h=a;--h>=0;)if(p!=null?rt(p,m[h]):x(p)===x(m[h])){P.length<=i&&(j=P,P=F(ye,_e,28,2*P.length,15,1),Oc(j,0,P,0,i)),P[i++]=r,ve(D,m[h]);break n}if(p=p,x(p)===x(f))break}}if(l=D,m=D.g,a=i,i>P.length&&(j=P,P=F(ye,_e,28,i,15,1),Oc(j,0,P,0,i)),i>0){for(A=!0,c=0;c<i;++c)p=m[c],g=fPn(n,u(p,76),g);for(s=i;--s>=0;)Jp(n,P[s]);if(i!=a){for(r=a;--r>=i;)Jp(l,r);j=P,P=F(ye,_e,28,i,15,1),Oc(j,0,P,0,i)}e=l}}}else for(e=T7e(n,e),r=n.i;--r>=0;)e.Hc(n.g[r])&&(Jp(n,r),A=!0);if(A){if(P!=null){for(t=e.gc(),d=t==1?W6(n,4,e.Kc().Pb(),null,P[0],k):W6(n,6,e,P,P[0],k),g=t<100?null:new R1(t),r=e.Kc();r.Ob();)p=r.Pb(),g=PV(n,u(p,76),g);g?(g.nj(d),g.oj()):it(n.e,d)}else{for(g=Aae(e.gc()),r=e.Kc();r.Ob();)p=r.Pb(),g=PV(n,u(p,76),g);g&&g.oj()}return!0}else return!1}function lNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(t=new yBn(e),t.a||FPe(e),l=RSe(e),h=new Mb,j=new Eqn,k=new M(e.a);k.a<k.c.c.length;)for(m=u(E(k),10),r=new ie(ce(Qt(m).a.Kc(),new En));pe(r);)i=u(fe(r),18),(i.c.i.k==(Vn(),Zt)||i.d.i.k==Zt)&&(a=ZAe(n,i,l,j),In(h,Ex(a.d),a.a));for(s=new Z,A=u(v(t.c,(W(),Dl)),21).Kc();A.Ob();){switch(O=u(A.Pb(),64),p=j.c[O.g],g=j.b[O.g],f=j.a[O.g],c=null,P=null,O.g){case 4:c=new Ho(n.d.a,p,l.b.a-n.d.a,g-p),P=new Ho(n.d.a,p,f,g-p),db(l,new V(c.c+c.b,c.d)),db(l,new V(c.c+c.b,c.d+c.a));break;case 2:c=new Ho(l.a.a,p,n.c.a-l.a.a,g-p),P=new Ho(n.c.a-f,p,f,g-p),db(l,new V(c.c,c.d)),db(l,new V(c.c,c.d+c.a));break;case 1:c=new Ho(p,n.d.b,g-p,l.b.b-n.d.b),P=new Ho(p,n.d.b,g-p,f),db(l,new V(c.c,c.d+c.a)),db(l,new V(c.c+c.b,c.d+c.a));break;case 3:c=new Ho(p,l.a.b,g-p,n.c.b-l.a.b),P=new Ho(p,n.c.b-f,g-p,f),db(l,new V(c.c,c.d)),db(l,new V(c.c+c.b,c.d))}c&&(d=new Gyn,d.d=O,d.b=c,d.c=P,d.a=PT(u(ot(h,Ex(O)),21)),Fn(s.c,d))}return hi(t.b,s),t.d=H6e(dAe(l)),t}function ozn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k;if(t.p[e.p]==null){f=!0,t.p[e.p]=0,s=e,k=t.o==(If(),Bd)?li:Pt;do r=n.b.e[s.p],c=s.c.a.c.length,t.o==Bd&&r>0||t.o==Xf&&r<c-1?(h=null,l=null,t.o==Xf?h=u(sn(s.c.a,r+1),10):h=u(sn(s.c.a,r-1),10),l=t.g[h.p],ozn(n,l,t),k=n.e.wg(k,e,s),t.j[e.p]==e&&(t.j[e.p]=t.j[l.p]),t.j[e.p]==t.j[l.p]?(m=jg(n.d,s,h),t.o==Xf?(i=$(t.p[e.p]),d=$(t.p[l.p])+$(t.d[h.p])-h.d.d-m-s.d.a-s.o.b-$(t.d[s.p]),f?(f=!1,t.p[e.p]=y.Math.min(d,k)):t.p[e.p]=y.Math.min(i,y.Math.min(d,k))):(i=$(t.p[e.p]),d=$(t.p[l.p])+$(t.d[h.p])+h.o.b+h.d.a+m+s.d.d-$(t.d[s.p]),f?(f=!1,t.p[e.p]=y.Math.max(d,k)):t.p[e.p]=y.Math.max(i,y.Math.max(d,k)))):(m=$(B(v(n.a,(cn(),g0)))),p=dxn(n,t.j[e.p]),a=dxn(n,t.j[l.p]),t.o==Xf?(g=$(t.p[e.p])+$(t.d[s.p])+s.o.b+s.d.a+m-($(t.p[l.p])+$(t.d[h.p])-h.d.d),FAn(p,a,g)):(g=$(t.p[e.p])+$(t.d[s.p])-s.d.d-$(t.p[l.p])-$(t.d[h.p])-h.o.b-h.d.a-m,FAn(p,a,g)))):k=n.e.wg(k,e,s),s=t.a[s.p];while(s!=e);qfe(n.e,e)}}function aNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn;if(t=$(B(v(n.a.j,(cn(),qfn)))),t<-1||!n.a.i||Ep(u(v(n.a.o,Ft),101))||uc(n.a.o,(en(),Zn)).gc()<2&&uc(n.a.o,Wn).gc()<2)return!0;if(n.a.c.kg())return!1;for(_=0,D=0,A=new Z,h=n.a.e,l=0,a=h.length;l<a;++l){for(f=h[l],g=f,p=0,k=g.length;p<k;++p){if(d=g[p],d.k==(Vn(),_c)){Fn(A.c,d);continue}for(i=n.b[d.c.p][d.p],d.k==Zt?(i.b=1,u(v(d,(W(),st)),12).j==(en(),Zn)&&(D+=i.a)):(kn=uc(d,(en(),Wn)),kn.dc()||!yN(kn,new Zpn)?i.c=1:(r=uc(d,Zn),(r.dc()||!yN(r,new Ypn))&&(_+=i.a))),s=new ie(ce(Qt(d).a.Kc(),new En));pe(s);)c=u(fe(s),18),_+=i.c,D+=i.b,yn=c.d.i,JJ(n,i,yn);for(P=Eo(S(C(Ao,1),Kn,20,0,[uc(d,(en(),Xn)),uc(d,ae)])),tn=new ie(new qX(P.a.length,P.a));pe(tn);)X=u(fe(tn),12),O=u(v(X,(W(),Xu)),10),O&&(_+=i.c,D+=i.b,JJ(n,i,O))}for(m=new M(A);m.a<m.c.c.length;)for(d=u(E(m),10),i=n.b[d.c.p][d.p],s=new ie(ce(Qt(d).a.Kc(),new En));pe(s);)c=u(fe(s),18),_+=i.c,D+=i.b,yn=c.d.i,JJ(n,i,yn);A.c.length=0}return e=_+D,j=e==0?Pt:(_-D)/e,j>=t}function dNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;for(A=e,O=new Mb,D=new Mb,a=Sb(A,Scn),i=new OOn(n,t,O,D),Nje(i.a,i.b,i.c,i.d,a),h=(tn=O.i,tn||(O.i=new Tg(O,O.c))),kn=h.Kc();kn.Ob();)for(yn=u(kn.Pb(),166),r=u(ot(O,yn),21),k=r.Kc();k.Ob();)if(m=k.Pb(),_=u(Ng(n.d,m),166),_)f=(!yn.e&&(yn.e=new Dn(Tt,yn,10,9)),yn.e),ve(f,_);else throw s=bl(A,Eh),g=kWn+m+yWn+s,p=g+iv,T(new eh(p));for(l=(X=D.i,X||(D.i=new Tg(D,D.c))),Bn=l.Kc();Bn.Ob();)for(Rn=u(Bn.Pb(),166),c=u(ot(D,Rn),21),P=c.Kc();P.Ob();)if(j=P.Pb(),_=u(Ng(n.d,j),166),_)d=(!Rn.g&&(Rn.g=new Dn(Tt,Rn,9,10)),Rn.g),ve(d,_);else throw s=bl(A,Eh),g=kWn+j+yWn+s,p=g+iv,T(new eh(p));!t.b&&(t.b=new Dn(he,t,4,7)),t.b.i!=0&&(!t.c&&(t.c=new Dn(he,t,5,8)),t.c.i!=0)&&(!t.b&&(t.b=new Dn(he,t,4,7)),t.b.i<=1&&(!t.c&&(t.c=new Dn(he,t,5,8)),t.c.i<=1))&&(!t.a&&(t.a=new q(Tt,t,6,6)),t.a).i==1&&(te=u(N((!t.a&&(t.a=new q(Tt,t,6,6)),t.a),0),166),!Px(te)&&!Ix(te)&&(mC(te,u(N((!t.b&&(t.b=new Dn(he,t,4,7)),t.b),0),84)),vC(te,u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84))))}function bNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(A=n.a,D=0,_=A.length;D<_;++D){for(O=A[D],l=et,a=et,m=new M(O.e);m.a<m.c.c.length;)g=u(E(m),10),s=g.c?qr(g.c.a,g,0):-1,s>0?(d=u(sn(g.c.a,s-1),10),yn=jg(n.b,g,d),j=g.n.b-g.d.d-(d.n.b+d.o.b+d.d.a+yn)):j=g.n.b-g.d.d,l=y.Math.min(j,l),s<g.c.a.c.length-1?(d=u(sn(g.c.a,s+1),10),yn=jg(n.b,g,d),P=d.n.b-d.d.d-(g.n.b+g.o.b+g.d.a+yn)):P=2*g.n.b,a=y.Math.min(P,a);for(h=et,c=!1,r=u(sn(O.e,0),10),Rn=new M(r.j);Rn.a<Rn.c.c.length;)for(kn=u(E(Rn),12),k=r.n.b+kn.n.b+kn.a.b,i=new M(kn.e);i.a<i.c.c.length;)t=u(E(i),18),X=t.c,e=X.i.n.b+X.n.b+X.a.b-k,y.Math.abs(e)<y.Math.abs(h)&&y.Math.abs(e)<(e<0?l:a)&&(h=e,c=!0);for(f=u(sn(O.e,O.e.c.length-1),10),tn=new M(f.j);tn.a<tn.c.c.length;)for(X=u(E(tn),12),k=f.n.b+X.n.b+X.a.b,i=new M(X.g);i.a<i.c.c.length;)t=u(E(i),18),kn=t.d,e=kn.i.n.b+kn.n.b+kn.a.b-k,y.Math.abs(e)<y.Math.abs(h)&&y.Math.abs(e)<(e<0?l:a)&&(h=e,c=!0);if(c&&h!=0)for(p=new M(O.e);p.a<p.c.c.length;)g=u(E(p),10),g.n.b+=h}}function wNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;if(i=new Z,r=et,c=et,s=et,t)for(r=n.f.a,k=new M(e.j);k.a<k.c.c.length;)for(m=u(E(k),12),h=new M(m.g);h.a<h.c.c.length;)f=u(E(h),18),f.a.b!=0&&(a=u(p4(f.a),8),a.a<r&&(c=r-a.a,s=et,i.c.length=0,r=a.a),a.a<=r&&(Fn(i.c,f),f.a.b>1&&(s=y.Math.min(s,y.Math.abs(u(Zo(f.a,1),8).b-a.b)))));else for(k=new M(e.j);k.a<k.c.c.length;)for(m=u(E(k),12),h=new M(m.e);h.a<h.c.c.length;)f=u(E(h),18),f.a.b!=0&&(g=u($s(f.a),8),g.a>r&&(c=g.a-r,s=et,i.c.length=0,r=g.a),g.a>=r&&(Fn(i.c,f),f.a.b>1&&(s=y.Math.min(s,y.Math.abs(u(Zo(f.a,f.a.b-2),8).b-g.b)))));if(i.c.length!=0&&c>e.o.a/2&&s>e.o.b/2){for(p=new Ic,ic(p,e),gi(p,(en(),Xn)),p.n.a=e.o.a/2,P=new Ic,ic(P,e),gi(P,ae),P.n.a=e.o.a/2,P.n.b=e.o.b,h=new M(i);h.a<h.c.c.length;)f=u(E(h),18),t?(l=u(UN(f.a),8),j=f.a.b==0?Of(f.d):u(p4(f.a),8),j.b>=l.b?Zi(f,P):Zi(f,p)):(l=u(c0e(f.a),8),j=f.a.b==0?Of(f.c):u($s(f.a),8),j.b>=l.b?Oi(f,P):Oi(f,p)),d=u(v(f,(cn(),Rr)),75),d&&iw(d,l,!0);e.n.a=r-e.o.a/2}}function gNe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(f=ge(n.b,0);f.b!=f.d.c;)if(s=u(be(f),40),!Sn(s.c,OP))for(l=_Me(s,n),e==(ci(),Kr)||e==Xr?Yt(l,new T4n):Yt(l,new C4n),h=l.c.length,i=0;i<h;i++)a=(Nn(i,l.c.length),u(l.c[i],65)).c,Sn(a.c,"n11"),!(on(un(v(s,(pt(),pln))))&&!TRn((Nn(i,l.c.length),u(l.c[i],65)),n))&&(r=h==1?.5:(i+1)/(h+1),e==Kr?(c=$(B(v(s,jf))),g=s.e.b+s.f.b*r,gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(y.Math.min(c,s.e.a-t),g)),gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(s.e.a,g))):e==Xr?(c=$(B(v(s,Js)))+t,g=s.e.b+s.f.b*r,gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(c,g)),gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(s.e.a+s.f.a,g))):e==us?(c=$(B(v(s,jf))),d=s.e.a+s.f.a*r,gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(d,y.Math.min(s.e.b-t,c))),gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(d,s.e.b))):(c=$(B(v(s,Js)))+t,d=s.e.a+s.f.a*r,gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(d,c)),gg((Nn(i,l.c.length),u(l.c[i],65)).a,new V(d,s.e.b+s.f.b))))}function my(n,e,t,i,r,c,s,f,h){var l,a,d,g,p,m,k;switch(p=t,a=new Cl(h),Ha(a,(Vn(),Zt)),U(a,(W(),tfn),s),U(a,(cn(),Ft),(Ai(),qc)),k=$(B(n.of(Fw))),U(a,Fw,k),d=new Ic,ic(d,a),e!=Qf&&e!=Ia||(i>=0?p=zp(f):p=xk(zp(f)),n.qf(Tv,p)),l=new Ni,g=!1,n.pf(b0)?(YX(l,u(n.of(b0),8)),g=!0):C1e(l,s.a/2,s.b/2),p.g){case 4:U(a,ou,(Yo(),ya)),U(a,rO,(hd(),m2)),a.o.b=s.b,k<0&&(a.o.a=-k),gi(d,(en(),Zn)),g||(l.a=s.a),l.a-=s.a;break;case 2:U(a,ou,(Yo(),xw)),U(a,rO,(hd(),mv)),a.o.b=s.b,k<0&&(a.o.a=-k),gi(d,(en(),Wn)),g||(l.a=0);break;case 1:U(a,Ad,(vl(),k2)),a.o.a=s.a,k<0&&(a.o.b=-k),gi(d,(en(),ae)),g||(l.b=s.b),l.b-=s.b;break;case 3:U(a,Ad,(vl(),E3)),a.o.a=s.a,k<0&&(a.o.b=-k),gi(d,(en(),Xn)),g||(l.b=0)}if(YX(d.n,l),U(a,b0,l),e==Ud||e==tl||e==qc){if(m=0,e==Ud&&n.pf(v1))switch(p.g){case 1:case 2:m=u(n.of(v1),17).a;break;case 3:case 4:m=-u(n.of(v1),17).a}else switch(p.g){case 4:case 2:m=c.b,e==tl&&(m/=r.b);break;case 1:case 3:m=c.a,e==tl&&(m/=r.a)}U(a,f0,m)}return U(a,gc,p),a}function pNe(){Ez();function n(i){var r=this;this.dispatch=function(c){var s=c.data;switch(s.cmd){case"algorithms":var f=UY((Ln(),new Q3(new ol(La.b))));i.postMessage({id:s.id,data:f});break;case"categories":var h=UY((Ln(),new Q3(new ol(La.c))));i.postMessage({id:s.id,data:h});break;case"options":var l=UY((Ln(),new Q3(new ol(La.d))));i.postMessage({id:s.id,data:l});break;case"register":kAe(s.algorithms),i.postMessage({id:s.id});break;case"layout":WIe(s.graph,s.layoutOptions||{},s.options||{}),i.postMessage({id:s.id,data:s.graph});break}},this.saveDispatch=function(c){try{r.dispatch(c)}catch(s){i.postMessage({id:c.data.id,error:s})}}}function e(i){var r=this;this.dispatcher=new n({postMessage:function(c){r.onmessage({data:c})}}),this.postMessage=function(c){setTimeout(function(){r.dispatcher.saveDispatch({data:c})},0)}}if(typeof document===xK&&typeof self!==xK){var t=new n(self);self.onmessage=t.saveDispatch}else typeof gt!==xK&>.exports&&(Object.defineProperty(Pr,"__esModule",{value:!0}),gt.exports={default:e,Worker:e})}function szn(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(a=new Cl(t),Ur(a,e),U(a,(W(),st),e),a.o.a=e.g,a.o.b=e.f,a.n.a=e.i,a.n.b=e.j,nn(t.a,a),Ve(n.a,e,a),((!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i!=0||on(un(z(e,(cn(),Bw)))))&&U(a,Zsn,(_n(),!0)),l=u(v(t,Hc),21),d=u(v(a,(cn(),Ft)),101),d==(Ai(),Ia)?U(a,Ft,Qf):d!=Qf&&l.Fc((pr(),yv)),g=0,i=u(v(t,Lo),88),h=new ne((!e.c&&(e.c=new q(Qu,e,9,9)),e.c));h.e!=h.i.gc();)f=u(ue(h),123),r=St(e),(x(z(r,Yh))!==x((lh(),k1))||x(z(r,Nd))===x((o1(),pv))||x(z(r,Nd))===x((o1(),gv))||on(un(z(r,l0)))||x(z(r,Rw))!==x((dd(),Aw))||x(z(r,ja))===x((ps(),p0))||x(z(r,ja))===x((ps(),Uw))||x(z(r,$d))===x((a1(),Iv))||x(z(r,$d))===x((a1(),Ov)))&&!on(un(z(e,lO)))&&ht(f,dt,Y(g++)),on(un(z(f,Rd)))||SLe(n,f,a,l,i,d);for(s=new ne((!e.n&&(e.n=new q(Sr,e,1,7)),e.n));s.e!=s.i.gc();)c=u(ue(s),135),!on(un(z(c,Rd)))&&c.a&&nn(a.b,ex(c));return on(un(v(a,q8)))&&l.Fc((pr(),ZI)),on(un(v(a,wO)))&&(l.Fc((pr(),nO)),l.Fc(R8),U(a,Ft,Qf)),a}function QR(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt;for(k=0,Rn=0,l=new M(n.b);l.a<l.c.c.length;)h=u(E(l),163),h.c&&RGn(h.c),k=y.Math.max(k,Pu(h)),Rn+=Pu(h)*ao(h);for(j=Rn/n.b.c.length,kn=mke(n.b,j),Rn+=n.b.c.length*kn,k=y.Math.max(k,y.Math.sqrt(Rn*s))+t.b,xe=t.b,Nt=t.d,p=0,d=t.b+t.c,yn=new Mt,Re(yn,Y(0)),X=new Mt,a=new xi(n.b,0),m=null,f=new Z;a.b<a.d.gc();)h=(oe(a.b<a.d.gc()),u(a.d.Xb(a.c=a.b++),163)),te=Pu(h),g=ao(h),xe+te>k&&(c&&(ir(X,p),ir(yn,Y(a.b-1)),nn(n.d,m),f.c.length=0),xe=t.b,Nt+=p+e,p=0,d=y.Math.max(d,t.b+t.c+te)),Fn(f.c,h),dBn(h,xe,Nt),d=y.Math.max(d,xe+te+t.c),p=y.Math.max(p,g),xe+=te+e,m=h;if(hi(n.a,f),nn(n.d,u(sn(f,f.c.length-1),163)),d=y.Math.max(d,i),Bn=Nt+p+t.a,Bn<r&&(p+=r-Bn,Bn=r),c)for(xe=t.b,a=new xi(n.b,0),ir(yn,Y(n.b.c.length)),tn=ge(yn,0),O=u(be(tn),17).a,ir(X,p),_=ge(X,0),D=0;a.b<a.d.gc();)a.b==O&&(xe=t.b,D=$(B(be(_))),O=u(be(tn),17).a),h=(oe(a.b<a.d.gc()),u(a.d.Xb(a.c=a.b++),163)),GKn(h,D),a.b==O&&(P=d-xe-t.c,A=Pu(h),zKn(h,P),mKn(h,(P-A)/2,0)),xe+=Pu(h)+e;return new V(d,Bn)}function mNe(n){n.N||(n.N=!0,n.b=hc(n,0),Rt(n.b,0),Rt(n.b,1),Rt(n.b,2),n.bb=hc(n,1),Rt(n.bb,0),Rt(n.bb,1),n.fb=hc(n,2),Rt(n.fb,3),Rt(n.fb,4),jt(n.fb,5),n.qb=hc(n,3),Rt(n.qb,0),jt(n.qb,1),jt(n.qb,2),Rt(n.qb,3),Rt(n.qb,4),jt(n.qb,5),Rt(n.qb,6),n.a=Je(n,4),n.c=Je(n,5),n.d=Je(n,6),n.e=Je(n,7),n.f=Je(n,8),n.g=Je(n,9),n.i=Je(n,10),n.j=Je(n,11),n.k=Je(n,12),n.n=Je(n,13),n.o=Je(n,14),n.p=Je(n,15),n.q=Je(n,16),n.s=Je(n,17),n.r=Je(n,18),n.t=Je(n,19),n.u=Je(n,20),n.v=Je(n,21),n.w=Je(n,22),n.B=Je(n,23),n.A=Je(n,24),n.C=Je(n,25),n.D=Je(n,26),n.F=Je(n,27),n.G=Je(n,28),n.H=Je(n,29),n.J=Je(n,30),n.I=Je(n,31),n.K=Je(n,32),n.M=Je(n,33),n.L=Je(n,34),n.P=Je(n,35),n.Q=Je(n,36),n.R=Je(n,37),n.S=Je(n,38),n.T=Je(n,39),n.U=Je(n,40),n.V=Je(n,41),n.X=Je(n,42),n.W=Je(n,43),n.Y=Je(n,44),n.Z=Je(n,45),n.$=Je(n,46),n._=Je(n,47),n.ab=Je(n,48),n.cb=Je(n,49),n.db=Je(n,50),n.eb=Je(n,51),n.gb=Je(n,52),n.hb=Je(n,53),n.ib=Je(n,54),n.jb=Je(n,55),n.kb=Je(n,56),n.lb=Je(n,57),n.mb=Je(n,58),n.nb=Je(n,59),n.ob=Je(n,60),n.pb=Je(n,61))}function vNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(O=0,e.f.a==0)for(j=new M(n);j.a<j.c.c.length;)m=u(E(j),10),O=y.Math.max(O,m.n.a+m.o.a+m.d.c);else O=e.f.a-e.c.a;for(O-=e.c.a,k=new M(n);k.a<k.c.c.length;){switch(m=u(E(k),10),Jv(m.n,O-m.o.a),WV(m.f),UBn(m),(m.q?m.q:(Ln(),Ln(),Wh))._b((cn(),Hw))&&Jv(u(v(m,Hw),8),O-m.o.a),u(v(m,Ch),255).g){case 1:U(m,Ch,(Bh(),Uj));break;case 2:U(m,Ch,(Bh(),qj))}for(P=m.o,D=new M(m.j);D.a<D.c.c.length;){for(A=u(E(D),12),Jv(A.n,P.a-A.o.a),Jv(A.a,A.o.a),gi(A,Cxn(A.j)),s=u(v(A,v1),17),s&&U(A,v1,Y(-s.a)),c=new M(A.g);c.a<c.c.c.length;){for(r=u(E(c),18),i=ge(r.a,0);i.b!=i.d.c;)t=u(be(i),8),t.a=O-t.a;if(l=u(v(r,Rr),75),l)for(h=ge(l,0);h.b!=h.d.c;)f=u(be(h),8),f.a=O-f.a;for(g=new M(r.b);g.a<g.c.c.length;)a=u(E(g),72),Jv(a.n,O-a.o.a)}for(p=new M(A.f);p.a<p.c.c.length;)a=u(E(p),72),Jv(a.n,A.o.a-a.o.a)}for(m.k==(Vn(),Zt)&&(U(m,(W(),gc),Cxn(u(v(m,gc),64))),uje(m)),d=new M(m.b);d.a<d.c.c.length;)a=u(E(d),72),UBn(a),Jv(a.n,P.a-a.o.a)}}function kNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(O=0,e.f.b==0)for(j=new M(n);j.a<j.c.c.length;)m=u(E(j),10),O=y.Math.max(O,m.n.b+m.o.b+m.d.a);else O=e.f.b-e.c.b;for(O-=e.c.b,k=new M(n);k.a<k.c.c.length;){switch(m=u(E(k),10),Wv(m.n,O-m.o.b),JV(m.f),GBn(m),(m.q?m.q:(Ln(),Ln(),Wh))._b((cn(),Hw))&&Wv(u(v(m,Hw),8),O-m.o.b),u(v(m,Ch),255).g){case 3:U(m,Ch,(Bh(),ZO));break;case 4:U(m,Ch,(Bh(),eA))}for(P=m.o,D=new M(m.j);D.a<D.c.c.length;){for(A=u(E(D),12),Wv(A.n,P.b-A.o.b),Wv(A.a,A.o.b),gi(A,Sxn(A.j)),s=u(v(A,v1),17),s&&U(A,v1,Y(-s.a)),c=new M(A.g);c.a<c.c.c.length;){for(r=u(E(c),18),i=ge(r.a,0);i.b!=i.d.c;)t=u(be(i),8),t.b=O-t.b;if(l=u(v(r,Rr),75),l)for(h=ge(l,0);h.b!=h.d.c;)f=u(be(h),8),f.b=O-f.b;for(g=new M(r.b);g.a<g.c.c.length;)a=u(E(g),72),Wv(a.n,O-a.o.b)}for(p=new M(A.f);p.a<p.c.c.length;)a=u(E(p),72),Wv(a.n,A.o.b-a.o.b)}for(m.k==(Vn(),Zt)&&(U(m,(W(),gc),Sxn(u(v(m,gc),64))),y5e(m)),d=new M(m.b);d.a<d.c.c.length;)a=u(E(d),72),GBn(a),Wv(a.n,P.b-a.o.b)}}function yNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe;for(O=new xi(n.b,0),a=e.Kc(),m=0,l=u(a.Pb(),17).a,_=0,t=new ni,tn=new rh;O.b<O.d.gc();){for(P=(oe(O.b<O.d.gc()),u(O.d.Xb(O.c=O.b++),30)),D=new M(P.a);D.a<D.c.c.length;){for(A=u(E(D),10),p=new ie(ce(Qt(A).a.Kc(),new En));pe(p);)d=u(fe(p),18),tn.a.zc(d,tn);for(g=new ie(ce(ji(A).a.Kc(),new En));pe(g);)d=u(fe(g),18),tn.a.Bc(d)!=null}if(m+1==l){for(r=new Nc(n),B0(O,r),c=new Nc(n),B0(O,c),kn=tn.a.ec().Kc();kn.Ob();)yn=u(kn.Pb(),18),t.a._b(yn)||(++_,t.a.zc(yn,t)),s=new Cl(n),U(s,(cn(),Ft),(Ai(),Fv)),$i(s,r),Ha(s,(Vn(),Gf)),k=new Ic,ic(k,s),gi(k,(en(),Wn)),Rn=new Ic,ic(Rn,s),gi(Rn,Zn),i=new Cl(n),U(i,Ft,Fv),$i(i,c),Ha(i,Gf),j=new Ic,ic(j,i),gi(j,Wn),Bn=new Ic,ic(Bn,i),gi(Bn,Zn),X=new Eb,Zi(X,yn.c),Oi(X,k),U(X,(W(),dt),u(v(yn,dt),17)),xe=new Eb,Zi(xe,Rn),Oi(xe,j),U(xe,dt,u(v(yn,dt),17)),Zi(yn,Bn),f=new jJ(s,i,X,xe,yn),U(s,o0,f),U(i,o0,f),te=X.c.i,te.k==Gf&&(h=u(v(te,o0),313),h.d=f,f.g=h);if(a.Ob())l=u(a.Pb(),17).a;else break}++m}return Y(_)}function jNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(k=new Z,g=new M(n.d.b);g.a<g.c.c.length;)for(d=u(E(g),30),m=new M(d.a);m.a<m.c.c.length;){for(p=u(E(m),10),r=u(ee(n.f,p),60),h=new ie(ce(Qt(p).a.Kc(),new En));pe(h);)if(s=u(fe(h),18),i=ge(s.a,0),l=!0,a=null,i.b!=i.d.c){for(e=u(be(i),8),t=null,s.c.j==(en(),Xn)&&(j=new q5(e,new V(e.a,r.d.d),r,s),j.f.a=!0,j.a=s.c,Fn(k.c,j)),s.c.j==ae&&(j=new q5(e,new V(e.a,r.d.d+r.d.a),r,s),j.f.d=!0,j.a=s.c,Fn(k.c,j));i.b!=i.d.c;)t=u(be(i),8),lQ(e.b,t.b)||(a=new q5(e,t,null,s),Fn(k.c,a),l&&(l=!1,t.b<r.d.d?a.f.a=!0:t.b>r.d.d+r.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))),i.b!=i.d.c&&(e=t);a&&(c=u(ee(n.f,s.d.i),60),e.b<c.d.d?a.f.a=!0:e.b>c.d.d+c.d.a?a.f.d=!0:(a.f.d=!0,a.f.a=!0))}for(f=new ie(ce(ji(p).a.Kc(),new En));pe(f);)s=u(fe(f),18),s.a.b!=0&&(e=u($s(s.a),8),s.d.j==(en(),Xn)&&(j=new q5(e,new V(e.a,r.d.d),r,s),j.f.a=!0,j.a=s.d,Fn(k.c,j)),s.d.j==ae&&(j=new q5(e,new V(e.a,r.d.d+r.d.a),r,s),j.f.d=!0,j.a=s.d,Fn(k.c,j)))}return k}function ENe(n,e,t){var i,r,c,s,f,h,l,a,d,g;for(h=new Z,d=e.length,s=eY(t),l=0;l<d;++l){switch(a=UX(e,wu(61),l),i=v5e(s,(Ri(l,a,e.length),e.substr(l,a-l))),r=x$(i),c=r.jk().wi(),Xi(e,++a)){case 39:{f=w4(e,39,++a),nn(h,new TM(i,jD((Ri(a,f,e.length),e.substr(a,f-a)),c,r))),l=f+1;break}case 34:{f=w4(e,34,++a),nn(h,new TM(i,jD((Ri(a,f,e.length),e.substr(a,f-a)),c,r))),l=f+1;break}case 91:{g=new Z,nn(h,new TM(i,g));n:for(;;){switch(Xi(e,++a)){case 39:{f=w4(e,39,++a),nn(g,jD((Ri(a,f,e.length),e.substr(a,f-a)),c,r)),a=f+1;break}case 34:{f=w4(e,34,++a),nn(g,jD((Ri(a,f,e.length),e.substr(a,f-a)),c,r)),a=f+1;break}case 110:{if(++a,e.indexOf("ull",a)==a)g.c.push(null);else throw T(new ec(lWn));a+=3;break}}if(a<d)switch(zn(a,e.length),e.charCodeAt(a)){case 44:break;case 93:break n;default:throw T(new ec("Expecting , or ]"))}else break}l=a+1;break}case 110:{if(++a,e.indexOf("ull",a)==a)nn(h,new TM(i,null));else throw T(new ec(lWn));l=a+3;break}}if(l<d){if(zn(l,e.length),e.charCodeAt(l)!=44)throw T(new ec("Expecting ,"))}else break}return uSe(n,h,t)}function MNe(n){var e,t,i,r,c;switch(e=n.c,c=null,e){case 6:return n.Em();case 13:return n.Fm();case 23:return n.wm();case 22:return n.Bm();case 18:return n.ym();case 8:Ze(n),c=(nt(),abn);break;case 9:return n.em(!0);case 19:return n.fm();case 10:switch(n.a){case 100:case 68:case 119:case 87:case 115:case 83:return c=n.dm(n.a),Ze(n),c;case 101:case 102:case 110:case 114:case 116:case 117:case 118:case 120:t=n.cm(),t<hr?c=(nt(),nt(),new Dh(0,t)):c=jIn(DY(t));break;case 99:return n.om();case 67:return n.jm();case 105:return n.rm();case 73:return n.km();case 103:return n.pm();case 88:return n.lm();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n.gm();case 80:case 112:if(c=Dnn(n,n.a),!c)throw T(new Ne($e((Oe(),EF))));break;default:c=$Pn(n.a)}Ze(n);break;case 0:if(n.a==93||n.a==123||n.a==125)throw T(new Ne($e((Oe(),xcn))));c=$Pn(n.a),i=n.a,Ze(n),(i&64512)==Py&&n.c==0&&(n.a&64512)==56320&&(r=F(fs,gh,28,2,15,1),r[0]=i&ui,r[1]=n.a&ui,c=rD(jIn(ws(r,0,r.length)),0),Ze(n));break;default:throw T(new Ne($e((Oe(),xcn))))}return c}function TNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn;for(kn=new Mt,X=new Mt,j=-1,h=new M(n);h.a<h.c.c.length;){for(s=u(E(h),131),s.s=j--,a=0,A=0,c=new M(s.t);c.a<c.c.c.length;)i=u(E(c),274),A+=i.c;for(r=new M(s.i);r.a<r.c.c.length;)i=u(E(r),274),a+=i.c;s.n=a,s.u=A,A==0?xt(X,s,X.c.b,X.c):a==0&&xt(kn,s,kn.c.b,kn.c)}for(Bn=HT(n),d=n.c.length,k=d+1,P=d-1,p=new Z;Bn.a.gc()!=0;){for(;X.b!=0;)_=(oe(X.b!=0),u(Xo(X,X.a.a),131)),Bn.a.Bc(_)!=null,_.s=P--,Znn(_,kn,X);for(;kn.b!=0;)tn=(oe(kn.b!=0),u(Xo(kn,kn.a.a),131)),Bn.a.Bc(tn)!=null,tn.s=k++,Znn(tn,kn,X);for(m=Wi,l=Bn.a.ec().Kc();l.Ob();)s=u(l.Pb(),131),O=s.u-s.n,O>=m&&(O>m&&(p.c.length=0,m=O),Fn(p.c,s));p.c.length!=0&&(g=u(sn(p,cS(e,p.c.length)),131),Bn.a.Bc(g)!=null,g.s=k++,Znn(g,kn,X),p.c.length=0)}for(D=n.c.length+1,f=new M(n);f.a<f.c.c.length;)s=u(E(f),131),s.s<d&&(s.s+=D);for(yn=new M(n);yn.a<yn.c.c.length;)for(tn=u(E(yn),131),t=new xi(tn.t,0);t.b<t.d.gc();)i=(oe(t.b<t.d.gc()),u(t.d.Xb(t.c=t.b++),274)),Rn=i.b,tn.s>Rn.s&&(bo(t),du(Rn.i,i),i.c>0&&(i.a=Rn,nn(Rn.t,i),i.b=tn,nn(tn.i,i)))}function fzn(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn;for(k=new Gc(e.b),D=new Gc(e.b),g=new Gc(e.b),yn=new Gc(e.b),j=new Gc(e.b),tn=ge(e,0);tn.b!=tn.d.c;)for(_=u(be(tn),12),f=new M(_.g);f.a<f.c.c.length;)if(c=u(E(f),18),c.c.i==c.d.i){if(_.j==c.d.j){Fn(yn.c,c);continue}else if(_.j==(en(),Xn)&&c.d.j==ae){Fn(j.c,c);continue}}for(h=new M(j);h.a<h.c.c.length;)c=u(E(h),18),QPe(n,c,t,i,(en(),Zn));for(s=new M(yn);s.a<s.c.c.length;)c=u(E(s),18),kn=new Cl(n),Ha(kn,(Vn(),_c)),U(kn,(cn(),Ft),(Ai(),qc)),U(kn,(W(),st),c),Rn=new Ic,U(Rn,st,c.d),gi(Rn,(en(),Wn)),ic(Rn,kn),Bn=new Ic,U(Bn,st,c.c),gi(Bn,Zn),ic(Bn,kn),U(c.c,Xu,kn),U(c.d,Xu,kn),Zi(c,null),Oi(c,null),Fn(t.c,kn),U(kn,iO,Y(2));for(X=ge(e,0);X.b!=X.d.c;)_=u(be(X),12),l=_.e.c.length>0,P=_.g.c.length>0,l&&P?Fn(g.c,_):l?Fn(k.c,_):P&&Fn(D.c,_);for(m=new M(k);m.a<m.c.c.length;)p=u(E(m),12),nn(r,Hen(n,p,null,t));for(A=new M(D);A.a<A.c.c.length;)O=u(E(A),12),nn(r,Hen(n,null,O,t));for(d=new M(g);d.a<d.c.c.length;)a=u(E(d),12),nn(r,Hen(n,a,a,t))}function utn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(g=Pt,p=Pt,a=0,d=0,h=new Z,f=new ne((!n.b&&(n.b=new q(Vt,n,12,3)),n.b));f.e!=f.i.gc();)c=u(ue(f),74),h=Eo(S(C(Ao,1),Kn,20,0,[h,(!c.n&&(c.n=new q(Sr,c,1,7)),c.n)]));for(A=$h(Eo(S(C(Ao,1),Kn,20,0,[(!n.n&&(n.n=new q(Sr,n,1,7)),n.n),(!n.a&&(n.a=new q(Ye,n,10,11)),n.a),h])));pe(A);)O=u(fe(A),422),l=u(O.of((He(),xv)),140),g>O.nh()-l.b&&(g=O.nh()-l.b),p>O.oh()-l.d&&(p=O.oh()-l.d),a<O.nh()+O.mh()+l.c&&(a=O.nh()+O.mh()+l.c),d<O.oh()+O.lh()+l.a&&(d=O.oh()+O.lh()+l.a);for(s=new ne((!n.b&&(n.b=new q(Vt,n,12,3)),n.b));s.e!=s.i.gc();)for(c=u(ue(s),74),P=new ne((!c.a&&(c.a=new q(Tt,c,6,6)),c.a));P.e!=P.i.gc();)for(j=u(ue(P),166),m=j.j,i=j.b,k=j.k,r=j.c,g=y.Math.min(g,m),g=y.Math.min(g,i),a=y.Math.max(a,m),a=y.Math.max(a,i),p=y.Math.min(p,k),p=y.Math.min(p,r),d=y.Math.max(d,k),d=y.Math.max(d,r),t=new ne((!j.a&&(j.a=new ti(xo,j,5)),j.a));t.e!=t.i.gc();)e=u(ue(t),377),g=y.Math.min(g,e.a),a=y.Math.max(a,e.a),p=y.Math.min(p,e.b),d=y.Math.max(d,e.b);ht(n,(He(),K2),a-g),ht(n,R2,d-p)}function CNe(n,e,t){var i,r,c,s,f,h,l,a,d;if(t.Ug("Network simplex node placement",1),n.e=e,n.n=u(v(e,(W(),E2)),312),BOe(n),iye(n),qt(rc(new Cn(null,new On(n.e.b,16)),new u3n),new nkn(n)),qt(ut(rc(ut(rc(new Cn(null,new On(n.e.b,16)),new v3n),new k3n),new y3n),new j3n),new Z7n(n)),on(un(v(n.e,(cn(),G8))))&&(s=t.eh(1),s.Ug("Straight Edges Pre-Processing",1),oLe(n),s.Vg()),K9e(n.f),c=u(v(e,V8),17).a*n.f.a.c.length,IR(pz(mz(KN(n.f),c),!1),t.eh(1)),n.d.a.gc()!=0){for(s=t.eh(1),s.Ug("Flexible Where Space Processing",1),f=u(ho(Sp(_r(new Cn(null,new On(n.f.a,16)),new o3n),new n3n)),17).a,h=u(ho(_0(_r(new Cn(null,new On(n.f.a,16)),new s3n),new e3n)),17).a,l=h-f,a=hb(new za,n.f),d=hb(new za,n.f),qs(Ns(Ls(As(Ds(new hs,2e4),l),a),d)),qt(ut(ut(EW(n.i),new f3n),new h3n),new MOn(f,a,l,d)),r=n.d.a.ec().Kc();r.Ob();)i=u(r.Pb(),218),i.g=1;IR(pz(mz(KN(n.f),c),!1),s.eh(1)),s.Vg()}on(un(v(e,G8)))&&(s=t.eh(1),s.Ug("Straight Edges Post-Processing",1),Vje(n),s.Vg()),UAe(n),n.e=null,n.f=null,n.i=null,n.c=null,Hu(n.k),n.j=null,n.a=null,n.o=null,n.d.a.$b(),t.Vg()}function SNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;for(t.Ug("Depth first model order layering",1),n.d=e,j=new Z,k=new M(n.d.a);k.a<k.c.c.length;)p=u(E(k),10),p.k==(Vn(),zt)&&Fn(j.c,p);for(Ln(),Yt(j,new zpn),s=!0,n.b=new Nc(n.d),n.a=null,nn(n.d.b,n.b),n.b.p=0,n.c=0,n.f=new Mt,m=new M(j);m.a<m.c.c.length;)if(p=u(E(m),10),s)$i(p,n.b),s=!1;else if(_Ie(n,p))if(g=n.c,g=mBn(g,p),i=g+2,a=g-n.c,n.f.b==0)den(n,i,p);else if(a>0){for(A=ge(n.f,0);A.b!=A.d.c;)O=u(be(A),10),O.p+=g-n.e;mnn(n),vo(n.f),den(n,i,p)}else{for(Re(n.f,p),p.p=i,n.e=y.Math.max(n.e,i),c=new ie(ce(ji(p).a.Kc(),new En));pe(c);)r=u(fe(c),18),!r.c.i.c&&r.c.i.k==(Vn(),Sc)&&(Re(n.f,r.c.i),r.c.i.p=i-1);n.c=i}else mnn(n),vo(n.f),i=0,pe(new ie(ce(ji(p).a.Kc(),new En)))?(g=0,g=mBn(g,p),i=g+2,den(n,i,p)):(Re(n.f,p),p.p=0,n.e=y.Math.max(n.e,0),n.b=u(sn(n.d.b,0),30),n.c=0);for(n.f.b==0||mnn(n),n.d.a.c.length=0,P=new Z,l=new M(n.d.b);l.a<l.c.c.length;)f=u(E(l),30),f.a.c.length==0&&Fn(P.c,f);for(IY(n.d.b,P),d=0,h=new M(n.d.b);h.a<h.c.c.length;)f=u(E(h),30),f.p=d,++d;t.Vg()}function PNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt,Yu,Br;if(Rn=null,te=e,Bn=GLn(n,$Ln(t),te),X4(Bn,bl(te,Eh)),xe=u(Ng(n.g,Zp(dl(te,lF))),27),g=dl(te,"sourcePort"),i=null,g&&(i=Zp(g)),Nt=u(Ng(n.j,i),123),!xe)throw f=wm(te),m="An edge must have a source node (edge id: '"+f,k=m+iv,T(new eh(k));if(Nt&&!sh(Pf(Nt),xe))throw h=bl(te,Eh),j="The source port of an edge must be a port of the edge's source node (edge id: '"+h,P=j+iv,T(new eh(P));if(yn=(!Bn.b&&(Bn.b=new Dn(he,Bn,4,7)),Bn.b),c=null,Nt?c=Nt:c=xe,ve(yn,c),Yu=u(Ng(n.g,Zp(dl(te,Dcn))),27),p=dl(te,"targetPort"),r=null,p&&(r=Zp(p)),Br=u(Ng(n.j,r),123),!Yu)throw d=wm(te),O="An edge must have a target node (edge id: '"+d,A=O+iv,T(new eh(A));if(Br&&!sh(Pf(Br),Yu))throw l=bl(te,Eh),D="The target port of an edge must be a port of the edge's target node (edge id: '"+l,_=D+iv,T(new eh(_));if(kn=(!Bn.c&&(Bn.c=new Dn(he,Bn,5,8)),Bn.c),s=null,Br?s=Br:s=Yu,ve(kn,s),(!Bn.b&&(Bn.b=new Dn(he,Bn,4,7)),Bn.b).i==0||(!Bn.c&&(Bn.c=new Dn(he,Bn,5,8)),Bn.c).i==0)throw a=bl(te,Eh),X=vWn+a,tn=X+iv,T(new eh(tn));return gS(te,Bn),ZMe(te,Bn),Rn=_$(n,te,Bn),Rn}function hzn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt;for(p=u(v(n,(Q1(),y3)),27),A=et,D=et,P=Wi,O=Wi,X=new M(n.e);X.a<X.c.c.length;)_=u(E(X),153),Bn=_.d,te=_.e,A=y.Math.min(A,Bn.a-te.a/2),D=y.Math.min(D,Bn.b-te.b/2),P=y.Math.max(P,Bn.a+te.a/2),O=y.Math.max(O,Bn.b+te.b/2);for(t=new M(n.b);t.a<t.c.c.length;)e=u(E(t),250),Bn=e.d,te=e.e,A=y.Math.min(A,Bn.a-te.a/2),D=y.Math.min(D,Bn.b-te.b/2),P=y.Math.max(P,Bn.a+te.a/2),O=y.Math.max(O,Bn.b+te.b/2);for(Rn=u(z(p,(Us(),YYn)),107),kn=new V(Rn.b-A,Rn.d-D),l=new M(n.e);l.a<l.c.c.length;)h=u(E(l),153),yn=v(h,y3),L(yn,207)&&(k=u(yn,27),tn=tt(new rr(h.d),kn),Bo(k,tn.a-k.g/2,tn.b-k.f/2));for(c=new M(n.c);c.a<c.c.c.length;)r=u(E(c),290),d=u(v(r,y3),74),g=Xg(d,!0,!0),xe=new rr(pQ(r)),tt(xe,kn),j7(g,xe.a,xe.b),nu(r.a,new SMn(kn,g)),i=new rr(mQ(r)),tt(i,kn),y7(g,i.a,i.b);for(f=new M(n.d);f.a<f.c.c.length;)s=u(E(f),454),m=u(v(s,y3),135),j=tt(new rr(s.d),kn),Bo(m,j.a,j.b);Nt=P-A+(Rn.b+Rn.c),a=O-D+(Rn.d+Rn.a),on(un(z(p,(He(),Vw))))||Gb(p,Nt,a,!1,!0),ht(p,K2,Nt-(Rn.b+Rn.c)),ht(p,R2,a-(Rn.d+Rn.a))}function lzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;return d=mIe(lu(n,(en(),Yf)),e),m=_g(lu(n,ef),e),D=_g(lu(n,Do),e),yn=hS(lu(n,Cs),e),g=hS(lu(n,os),e),O=_g(lu(n,tf),e),k=_g(lu(n,Wu),e),X=_g(lu(n,$o),e),_=_g(lu(n,ss),e),kn=hS(lu(n,su),e),P=_g(lu(n,mu),e),A=_g(lu(n,Ju),e),tn=_g(lu(n,pu),e),Rn=hS(lu(n,vu),e),p=hS(lu(n,xu),e),j=_g(lu(n,Uc),e),t=Lg(S(C(Ii,1),Cr,28,15,[O.a,yn.a,X.a,Rn.a])),i=Lg(S(C(Ii,1),Cr,28,15,[m.a,d.a,D.a,j.a])),r=P.a,c=Lg(S(C(Ii,1),Cr,28,15,[k.a,g.a,_.a,p.a])),l=Lg(S(C(Ii,1),Cr,28,15,[O.b,m.b,k.b,A.b])),h=Lg(S(C(Ii,1),Cr,28,15,[yn.b,d.b,g.b,j.b])),a=kn.b,f=Lg(S(C(Ii,1),Cr,28,15,[X.b,D.b,_.b,tn.b])),Zl(lu(n,Yf),t+r,l+a),Zl(lu(n,Uc),t+r,l+a),Zl(lu(n,ef),t+r,0),Zl(lu(n,Do),t+r,l+a+h),Zl(lu(n,Cs),0,l+a),Zl(lu(n,os),t+r+i,l+a),Zl(lu(n,Wu),t+r+i,0),Zl(lu(n,$o),0,l+a+h),Zl(lu(n,ss),t+r+i,l+a+h),Zl(lu(n,su),0,l),Zl(lu(n,mu),t,0),Zl(lu(n,pu),0,l+a+h),Zl(lu(n,xu),t+r+i,0),s=new Ni,s.a=Lg(S(C(Ii,1),Cr,28,15,[t+i+r+c,kn.a,A.a,tn.a])),s.b=Lg(S(C(Ii,1),Cr,28,15,[l+h+a+f,P.b,Rn.b,p.b])),s}function azn(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(O=new V(Pt,Pt),e=new V(li,li),yn=new M(n);yn.a<yn.c.c.length;)tn=u(E(yn),8),O.a=y.Math.min(O.a,tn.a),O.b=y.Math.min(O.b,tn.b),e.a=y.Math.max(e.a,tn.a),e.b=y.Math.max(e.b,tn.b);for(g=new V(e.a-O.a,e.b-O.b),l=new V(O.a-50,O.b-g.a-50),a=new V(O.a-50,e.b+g.a+50),d=new V(e.a+g.b/2+50,O.b+g.b/2),p=new Fen(l,a,d),X=new ni,c=new Z,t=new Z,X.a.zc(p,X),Rn=new M(n);Rn.a<Rn.c.c.length;){for(kn=u(E(Rn),8),c.c.length=0,_=X.a.ec().Kc();_.Ob();)A=u(_.Pb(),317),i=A.d,J1(i,A.a),xb(J1(A.d,kn),J1(A.d,A.a))<0&&Fn(c.c,A);for(t.c.length=0,D=new M(c);D.a<D.c.c.length;)for(A=u(E(D),317),j=new M(A.e);j.a<j.c.c.length;){for(m=u(E(j),177),s=!0,h=new M(c);h.a<h.c.c.length;)f=u(E(h),317),f!=A&&(mc(m,sn(f.e,0))||mc(m,sn(f.e,1))||mc(m,sn(f.e,2)))&&(s=!1);s&&Fn(t.c,m)}for(_Fn(X,c),qi(X,new Qbn),k=new M(t);k.a<k.c.c.length;)m=u(E(k),177),fi(X,new Fen(kn,m.a,m.b))}for(P=new ni,qi(X,new I9n(P)),r=P.a.ec().Kc();r.Ob();)m=u(r.Pb(),177),(tC(p,m.a)||tC(p,m.b))&&r.Qb();return qi(P,new Ybn),P}function Mc(){Mc=R,iEn(),Moe=Ci.a,u(N(H(Ci.a),0),19),joe=Ci.f,u(N(H(Ci.f),0),19),u(N(H(Ci.f),1),35),Eoe=Ci.n,u(N(H(Ci.n),0),35),u(N(H(Ci.n),1),35),u(N(H(Ci.n),2),35),u(N(H(Ci.n),3),35),Idn=Ci.g,u(N(H(Ci.g),0),19),u(N(H(Ci.g),1),35),yoe=Ci.c,u(N(H(Ci.c),0),19),u(N(H(Ci.c),1),19),Odn=Ci.i,u(N(H(Ci.i),0),19),u(N(H(Ci.i),1),19),u(N(H(Ci.i),2),19),u(N(H(Ci.i),3),19),u(N(H(Ci.i),4),35),Adn=Ci.j,u(N(H(Ci.j),0),19),Pdn=Ci.d,u(N(H(Ci.d),0),19),u(N(H(Ci.d),1),19),u(N(H(Ci.d),2),19),u(N(H(Ci.d),3),19),u(N(H(Ci.d),4),35),u(N(H(Ci.d),5),35),u(N(H(Ci.d),6),35),u(N(H(Ci.d),7),35),koe=Ci.b,u(N(H(Ci.b),0),35),u(N(H(Ci.b),1),35),bA=Ci.e,u(N(H(Ci.e),0),35),u(N(H(Ci.e),1),35),u(N(H(Ci.e),2),35),u(N(H(Ci.e),3),35),u(N(H(Ci.e),4),19),u(N(H(Ci.e),5),19),u(N(H(Ci.e),6),19),u(N(H(Ci.e),7),19),u(N(H(Ci.e),8),19),u(N(H(Ci.e),9),19),u(N(H(Ci.e),10),35),il=Ci.k,u(N(H(Ci.k),0),35),u(N(H(Ci.k),1),35)}function otn(n){var e,t,i,r,c;switch(e=n.c,e){case 11:return n.vm();case 12:return n.xm();case 14:return n.zm();case 15:return n.Cm();case 16:return n.Am();case 17:return n.Dm();case 21:return Ze(n),nt(),nt(),F9;case 10:switch(n.a){case 65:return n.hm();case 90:return n.mm();case 122:return n.tm();case 98:return n.nm();case 66:return n.im();case 60:return n.sm();case 62:return n.qm()}}switch(c=MNe(n),e=n.c,e){case 3:return n.Im(c);case 4:return n.Gm(c);case 5:return n.Hm(c);case 0:if(n.a==123&&n.d<n.j){if(r=n.d,i=0,t=-1,(e=Xi(n.i,r++))>=48&&e<=57){for(i=e-48;r<n.j&&(e=Xi(n.i,r++))>=48&&e<=57;)if(i=i*10+e-48,i<0)throw T(new Ne($e((Oe(),Fcn))))}else throw T(new Ne($e((Oe(),XWn))));if(t=i,e==44){if(r>=n.j)throw T(new Ne($e((Oe(),WWn))));if((e=Xi(n.i,r++))>=48&&e<=57){for(t=e-48;r<n.j&&(e=Xi(n.i,r++))>=48&&e<=57;)if(t=t*10+e-48,t<0)throw T(new Ne($e((Oe(),Fcn))));if(i>t)throw T(new Ne($e((Oe(),JWn))))}else t=-1}if(e!=125)throw T(new Ne($e((Oe(),VWn))));n.bm(r)?(c=(nt(),nt(),new X0(9,c)),n.d=r+1):(c=(nt(),nt(),new X0(3,c)),n.d=r),c.Om(i),c.Nm(t),Ze(n)}}return c}function INe(n){var e,t,i,r,c;switch(t=u(v(n,(W(),Hc)),21),e=LM(mZn),r=u(v(n,(cn(),Kw)),346),r==(jl(),T1)&&To(e,vZn),on(un(v(n,TH)))?Fe(e,(Vi(),Vs),(tr(),D_)):Fe(e,(Vi(),Ac),(tr(),D_)),v(n,(JT(),b9))!=null&&To(e,kZn),(on(un(v(n,nhn)))||on(un(v(n,Jfn))))&&Iu(e,(Vi(),zr),(tr(),Won)),u(v(n,Lo),88).g){case 2:case 3:case 4:Iu(Fe(e,(Vi(),Vs),(tr(),Qon)),zr,Jon)}switch(t.Hc((pr(),ZI))&&Iu(Fe(Fe(e,(Vi(),Vs),(tr(),Von)),Fc,zon),zr,Xon),x(v(n,ja))!==x((ps(),SO))&&Fe(e,(Vi(),Ac),(tr(),asn)),t.Hc(eO)&&(Fe(e,(Vi(),Vs),(tr(),gsn)),Fe(e,Jh,bsn),Fe(e,Ac,wsn)),x(v(n,fO))!==x((jm(),x8))&&x(v(n,$l))!==x((El(),Yj))&&Iu(e,(Vi(),zr),(tr(),usn)),on(un(v(n,Yfn)))&&Fe(e,(Vi(),Ac),(tr(),csn)),on(un(v(n,yH)))&&Fe(e,(Vi(),Ac),(tr(),psn)),HTe(n)&&(x(v(n,Kw))===x(T1)?i=u(v(n,Mj),299):i=u(v(n,kH),299),c=i==(Z4(),cH)?(tr(),dsn):(tr(),ksn),Fe(e,(Vi(),Fc),c)),u(v(n,Chn),388).g){case 1:Fe(e,(Vi(),Fc),(tr(),msn));break;case 2:Iu(Fe(Fe(e,(Vi(),Ac),(tr(),Hon)),Fc,qon),zr,Uon)}return x(v(n,Yh))!==x((lh(),k1))&&Fe(e,(Vi(),Ac),(tr(),vsn)),e}function dzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A;if(Zc(n.a,e)){if(sf(u(ee(n.a,e),49),t))return 1}else Ve(n.a,e,new ni);if(Zc(n.a,t)){if(sf(u(ee(n.a,t),49),e))return-1}else Ve(n.a,t,new ni);if(Zc(n.e,e)){if(sf(u(ee(n.e,e),49),t))return-1}else Ve(n.e,e,new ni);if(Zc(n.e,t)){if(sf(u(ee(n.a,t),49),e))return 1}else Ve(n.e,t,new ni);if(n.c==(lh(),_H)||!kt(e,(W(),dt))||!kt(t,(W(),dt))){for(d=null,l=new M(e.j);l.a<l.c.c.length;)f=u(E(l),12),f.e.c.length==0||u(sn(f.e,0),18).c.i.c!=e.c&&(d=u(sn(f.e,0),18).c);for(p=null,h=new M(t.j);h.a<h.c.c.length;)f=u(E(h),12),f.e.c.length==0||u(sn(f.e,0),18).c.i.c!=t.c&&(p=u(sn(f.e,0),18).c);if(d&&p){if(a=d.i,g=p.i,a&&a==g){for(k=new M(a.j);k.a<k.c.c.length;){if(m=u(E(k),12),m==d)return Im(n,t,e),-1;if(m==p)return Im(n,e,t),1}return jc(Vx(n,e),Vx(n,t))}for(P=n.d,O=0,A=P.length;O<A;++O){if(j=P[O],j==a)return Im(n,t,e),-1;if(j==g)return Im(n,e,t),1}}if(!kt(e,(W(),dt))||!kt(t,dt))return r=Vx(n,e),s=Vx(n,t),r>s?Im(n,e,t):Im(n,t,e),r<s?-1:r>s?1:0}return i=u(v(e,(W(),dt)),17).a,c=u(v(t,dt),17).a,i>c?Im(n,e,t):Im(n,t,e),i<c?-1:i>c?1:0}function zb(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(t==null)return null;if(n.a!=e.jk())throw T(new Gn(ev+e.xe()+n0));if(L(e,469)){if(j=kSe(u(e,685),t),!j)throw T(new Gn(fF+t+"' is not a valid enumerator of '"+e.xe()+"'"));return j}switch(r1((Lu(),zi),e).Nl()){case 2:{t=Rc(t,!1);break}case 3:{t=Rc(t,!0);break}}if(i=r1(zi,e).Jl(),i)return i.jk().wi().ti(i,t);if(g=r1(zi,e).Ll(),g){for(j=new Z,l=z$(t),a=0,d=l.length;a<d;++a)h=l[a],nn(j,g.jk().wi().ti(g,h));return j}if(k=r1(zi,e).Ml(),!k.dc()){for(m=k.Kc();m.Ob();){p=u(m.Pb(),156);try{if(j=p.jk().wi().ti(p,t),j!=null)return j}catch(P){if(P=Ot(P),!L(P,63))throw T(P)}}throw T(new Gn(fF+t+"' does not match any member types of the union datatype '"+e.xe()+"'"))}if(u(e,847).ok(),r=R6e(e.kk()),!r)return null;if(r==S8){s=0;try{s=So(t,Wi,et)&ui}catch(P){if(P=Ot(P),L(P,130))c=iC(t),s=c[0];else throw T(P)}return vk(s)}if(r==oI){for(f=0;f<A9.length;++f)try{return wMn(A9[f],t)}catch(P){if(P=Ot(P),!L(P,33))throw T(P)}throw T(new Gn(fF+t+"' is not a date formatted string of the form yyyy-MM-dd'T'HH:mm:ss'.'SSSZ or a valid subset thereof"))}throw T(new Gn(fF+t+"' is invalid. "))}function YR(){YR=R,wt=new Mb,In(wt,(en(),Yf),Uc),In(wt,Cs,Uc),In(wt,Cs,vu),In(wt,os,xu),In(wt,os,Uc),In(wt,ef,Uc),In(wt,ef,Ju),In(wt,Do,pu),In(wt,Do,Uc),In(wt,mu,su),In(wt,mu,Uc),In(wt,mu,Ju),In(wt,mu,pu),In(wt,su,mu),In(wt,su,vu),In(wt,su,xu),In(wt,su,Uc),In(wt,tf,tf),In(wt,tf,Ju),In(wt,tf,vu),In(wt,Wu,Wu),In(wt,Wu,Ju),In(wt,Wu,xu),In(wt,$o,$o),In(wt,$o,pu),In(wt,$o,vu),In(wt,ss,ss),In(wt,ss,pu),In(wt,ss,xu),In(wt,Ju,ef),In(wt,Ju,mu),In(wt,Ju,tf),In(wt,Ju,Wu),In(wt,Ju,Uc),In(wt,Ju,Ju),In(wt,Ju,vu),In(wt,Ju,xu),In(wt,pu,Do),In(wt,pu,mu),In(wt,pu,$o),In(wt,pu,ss),In(wt,pu,pu),In(wt,pu,vu),In(wt,pu,xu),In(wt,pu,Uc),In(wt,vu,Cs),In(wt,vu,su),In(wt,vu,tf),In(wt,vu,$o),In(wt,vu,Ju),In(wt,vu,pu),In(wt,vu,vu),In(wt,vu,Uc),In(wt,xu,os),In(wt,xu,su),In(wt,xu,Wu),In(wt,xu,ss),In(wt,xu,Ju),In(wt,xu,pu),In(wt,xu,xu),In(wt,xu,Uc),In(wt,Uc,Yf),In(wt,Uc,Cs),In(wt,Uc,os),In(wt,Uc,ef),In(wt,Uc,Do),In(wt,Uc,mu),In(wt,Uc,su),In(wt,Uc,Ju),In(wt,Uc,pu),In(wt,Uc,vu),In(wt,Uc,xu),In(wt,Uc,Uc)}function stn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn;for(n.d=new V(Pt,Pt),n.c=new V(li,li),g=e.Kc();g.Ob();)for(a=u(g.Pb(),36),A=new M(a.a);A.a<A.c.c.length;)O=u(E(A),10),n.d.a=y.Math.min(n.d.a,O.n.a-O.d.b),n.d.b=y.Math.min(n.d.b,O.n.b-O.d.d),n.c.a=y.Math.max(n.c.a,O.n.a+O.o.a+O.d.c),n.c.b=y.Math.max(n.c.b,O.n.b+O.o.b+O.d.a);for(f=new Fyn,d=e.Kc();d.Ob();)a=u(d.Pb(),36),i=lNe(n,a),nn(f.a,i),i.a=i.a|!u(v(i.c,(W(),Dl)),21).dc();for(n.b=(Y$(),yn=new J0n,yn.f=new ixn(t),yn.b=mAe(yn.f,f),yn),OAe((m=n.b,new op,m)),n.e=new Ni,n.a=n.b.f.e,s=new M(f.a);s.a<s.c.c.length;)for(r=u(E(s),855),D=l2e(n.b,r),uPe(r.c,D.a,D.b),j=new M(r.c.a);j.a<j.c.c.length;)k=u(E(j),10),k.k==(Vn(),Zt)&&(P=nen(n,k.n,u(v(k,(W(),gc)),64)),tt(ff(k.n),P));for(c=new M(f.a);c.a<c.c.c.length;)for(r=u(E(c),855),l=new M(P5e(r));l.a<l.c.c.length;)for(h=u(E(l),18),tn=new GE(h.a),g4(tn,0,Of(h.c)),Re(tn,Of(h.d)),p=null,X=ge(tn,0);X.b!=X.d.c;){if(_=u(be(X),8),!p){p=_;continue}fQ(p.a,_.a)?(n.e.a=y.Math.min(n.e.a,p.a),n.a.a=y.Math.max(n.a.a,p.a)):fQ(p.b,_.b)&&(n.e.b=y.Math.min(n.e.b,p.b),n.a.b=y.Math.max(n.a.b,p.b)),p=_}HM(n.e),tt(n.a,n.e)}function ONe(n,e){var t,i,r,c,s,f,h,l;if(t=0,s=0,c=e.length,f=null,l=new fg,s<c&&(zn(s,e.length),e.charCodeAt(s)==43)&&(++s,++t,s<c&&(zn(s,e.length),e.charCodeAt(s)==43||(zn(s,e.length),e.charCodeAt(s)==45))))throw T(new th(Vb+e+'"'));for(;s<c&&(zn(s,e.length),e.charCodeAt(s)!=46)&&(zn(s,e.length),e.charCodeAt(s)!=101)&&(zn(s,e.length),e.charCodeAt(s)!=69);)++s;if(l.a+=""+qo(e==null?gu:(Jn(e),e),t,s),s<c&&(zn(s,e.length),e.charCodeAt(s)==46)){for(++s,t=s;s<c&&(zn(s,e.length),e.charCodeAt(s)!=101)&&(zn(s,e.length),e.charCodeAt(s)!=69);)++s;n.e=s-t,l.a+=""+qo(e==null?gu:(Jn(e),e),t,s)}else n.e=0;if(s<c&&(zn(s,e.length),e.charCodeAt(s)==101||(zn(s,e.length),e.charCodeAt(s)==69))&&(++s,t=s,s<c&&(zn(s,e.length),e.charCodeAt(s)==43)&&(++s,s<c&&(zn(s,e.length),e.charCodeAt(s)!=45)&&++t),f=(Ri(t,c,e.length),e.substr(t,c-t)),n.e=n.e-So(f,Wi,et),n.e!=wi(n.e)))throw T(new th("Scale out of range."));if(h=l.a,h.length<16){if(n.f=(Pun==null&&(Pun=new RegExp("^[+-]?\\d*$","i")),Pun.test(h)?parseInt(h,10):NaN),isNaN(n.f))throw T(new th(Vb+e+'"'));n.a=Inn(n.f)}else a5e(n,new H1(h));for(n.d=l.a.length,r=0;r<l.a.length&&(i=Xi(l.a,r),!(i!=45&&i!=48));++r)--n.d;n.d==0&&(n.d=1)}function ANe(n){Te(n.b,ks,S(C(fn,1),J,2,6,[e0,"ConsistentTransient"])),Te(n.a,ks,S(C(fn,1),J,2,6,[e0,"WellFormedSourceURI"])),Te(n.o,ks,S(C(fn,1),J,2,6,[e0,"InterfaceIsAbstract AtMostOneID UniqueFeatureNames UniqueOperationSignatures NoCircularSuperTypes WellFormedMapEntryClass ConsistentSuperTypes DisjointFeatureAndOperationSignatures"])),Te(n.p,ks,S(C(fn,1),J,2,6,[e0,"WellFormedInstanceTypeName UniqueTypeParameterNames"])),Te(n.v,ks,S(C(fn,1),J,2,6,[e0,"UniqueEnumeratorNames UniqueEnumeratorLiterals"])),Te(n.R,ks,S(C(fn,1),J,2,6,[e0,"WellFormedName"])),Te(n.T,ks,S(C(fn,1),J,2,6,[e0,"UniqueParameterNames UniqueTypeParameterNames NoRepeatingVoid"])),Te(n.U,ks,S(C(fn,1),J,2,6,[e0,"WellFormedNsURI WellFormedNsPrefix UniqueSubpackageNames UniqueClassifierNames UniqueNsURIs"])),Te(n.W,ks,S(C(fn,1),J,2,6,[e0,"ConsistentOpposite SingleContainer ConsistentKeys ConsistentUnique ConsistentContainer"])),Te(n.bb,ks,S(C(fn,1),J,2,6,[e0,"ValidDefaultValueLiteral"])),Te(n.eb,ks,S(C(fn,1),J,2,6,[e0,"ValidLowerBound ValidUpperBound ConsistentBounds ValidType"])),Te(n.H,ks,S(C(fn,1),J,2,6,[e0,"ConsistentType ConsistentBounds ConsistentArguments"]))}function LNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn;if(!e.dc()){if(r=new Tu,f=t||u(e.Xb(0),18),m=f.c,K5(),g=m.i.k,!(g==(Vn(),zt)||g==_c||g==Zt||g==Gf))throw T(new Gn("The target node of the edge must be a normal node or a northSouthPort."));for(ir(r,cc(S(C(Ei,1),J,8,0,[m.i.n,m.n,m.a]))),(en(),mu).Hc(m.j)&&(j=$(B(v(m,(W(),jv)))),d=new V(cc(S(C(Ei,1),J,8,0,[m.i.n,m.n,m.a])).a,j),xt(r,d,r.c.b,r.c)),a=null,i=!1,h=e.Kc();h.Ob();)s=u(h.Pb(),18),c=s.a,c.b!=0&&(i?(l=ch(tt(a,(oe(c.b!=0),u(c.a.a.c,8))),.5),xt(r,l,r.c.b,r.c),i=!1):i=!0,a=Fi((oe(c.b!=0),u(c.c.b.c,8))),Ki(r,c),vo(c));k=f.d,mu.Hc(k.j)&&(j=$(B(v(k,(W(),jv)))),d=new V(cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a])).a,j),xt(r,d,r.c.b,r.c)),ir(r,cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a]))),n.d==(om(),VH)&&(P=(oe(r.b!=0),u(r.a.a.c,8)),O=u(Zo(r,1),8),A=new KD(uY(m.j)),A.a*=5,A.b*=5,D=mi(new V(O.a,O.b),P),_=new V(ND(A.a,D.a),ND(A.b,D.b)),tt(_,P),X=ge(r,1),_7(X,_),tn=(oe(r.b!=0),u(r.c.b.c,8)),yn=u(Zo(r,r.b-2),8),A=new KD(uY(k.j)),A.a*=5,A.b*=5,D=mi(new V(yn.a,yn.b),tn),kn=new V(ND(A.a,D.a),ND(A.b,D.b)),tt(kn,tn),g4(r,r.b-1,kn)),p=new _en(r),Ki(f.a,IBn(p))}}function NNe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt,Yu,Br,Ro,W2,L1,rf,cf;if(A=u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84),_=A.nh(),X=A.oh(),D=A.mh()/2,k=A.lh()/2,L(A,193)&&(O=u(A,123),_+=Pf(O).i,_+=Pf(O).i),_+=D,X+=k,Bn=u(N((!n.b&&(n.b=new Dn(he,n,4,7)),n.b),0),84),xe=Bn.nh(),Nt=Bn.oh(),te=Bn.mh()/2,tn=Bn.lh()/2,L(Bn,193)&&(Rn=u(Bn,123),xe+=Pf(Rn).i,xe+=Pf(Rn).i),xe+=te,Nt+=tn,(!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i==0)f=(K1(),l=new jE,l),ve((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),f);else if((!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i>1)for(m=new kp((!n.a&&(n.a=new q(Tt,n,6,6)),n.a));m.e!=m.i.gc();)A5(m);for(s=u(N((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),0),166),j=xe,xe>_+D?j=_+D:xe<_-D&&(j=_-D),P=Nt,Nt>X+k?P=X+k:Nt<X-k&&(P=X-k),j>_-D&&j<_+D&&P>X-k&&P<X+k&&(j=_+D),H4(s,j),U4(s,P),yn=_,_>xe+te?yn=xe+te:_<xe-te&&(yn=xe-te),kn=X,X>Nt+tn?kn=Nt+tn:X<Nt-tn&&(kn=Nt-tn),yn>xe-te&&yn<xe+te&&kn>Nt-tn&&kn<Nt+tn&&(kn=Nt+tn),_4(s,yn),q4(s,kn),me((!s.a&&(s.a=new ti(xo,s,5)),s.a)),c=cS(e,5),A==Bn&&++c,Ro=yn-j,rf=kn-P,Yu=y.Math.sqrt(Ro*Ro+rf*rf),d=Yu*.20000000298023224,W2=Ro/(c+1),cf=rf/(c+1),Br=j,L1=P,a=0;a<c;a++)Br+=W2,L1+=cf,g=Br+to(e,24)*Oy*d-d/2,g<0?g=1:g>t&&(g=t-1),p=L1+to(e,24)*Oy*d-d/2,p<0?p=1:p>i&&(p=i-1),r=(K1(),h=new yE,h),aC(r,g),lC(r,p),ve((!s.a&&(s.a=new ti(xo,s,5)),s.a),r)}function bzn(n){rb(n,new gd(eb(Yd(nb(Zd(new Fa,co),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new rmn))),Q(n,co,l3,1.3),Q(n,co,zm,(_n(),!1)),Q(n,co,Wb,k1n),Q(n,co,yw,15),Q(n,co,TP,rn(Ace)),Q(n,co,r2,rn(Dce)),Q(n,co,d3,rn(xce)),Q(n,co,a3,rn(Rce)),Q(n,co,Xm,rn(Nce)),Q(n,co,r8,rn(Aq)),Q(n,co,Vm,rn(Kce)),Q(n,co,ncn,rn(M1n)),Q(n,co,ecn,rn(E1n)),Q(n,co,Zrn,rn(Nq)),Q(n,co,Yrn,rn(T1n)),Q(n,co,tcn,rn(v1n)),Q(n,co,icn,rn(Lq)),Q(n,co,rcn,rn(m1n)),Q(n,co,ccn,rn(j1n)),Q(n,co,i8,rn(p1n)),Q(n,co,SP,rn(Lce)),Q(n,co,Jrn,rn(Bj)),Q(n,co,Wrn,rn(g1n)),Q(n,co,Qrn,rn(Fj)),Q(n,co,Vrn,rn(y1n))}function ZR(n,e){KR();var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe;if(yn=n.e,m=n.d,r=n.a,yn==0)switch(e){case 0:return"0";case 1:return Fm;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return X=new x1,e<0?X.a+="0E+":X.a+="0E",X.a+=-e,X.a}if(A=m*10+1+7,D=F(fs,gh,28,A+1,15,1),t=A,m==1)if(f=r[0],f<0){xe=vi(f,mr);do k=xe,xe=Xk(xe,10),D[--t]=48+Se(bs(k,er(xe,10)))&ui;while(Ec(xe,0)!=0)}else{xe=f;do k=xe,xe=xe/10|0,D[--t]=48+(k-xe*10)&ui;while(xe!=0)}else{Rn=F(ye,_e,28,m,15,1),te=m,Oc(r,0,Rn,0,te);n:for(;;){for(tn=0,l=te-1;l>=0;l--)Bn=nr(Ks(tn,32),vi(Rn[l],mr)),P=mye(Bn),Rn[l]=Se(P),tn=Se(wb(P,32));O=Se(tn),j=t;do D[--t]=48+O%10&ui;while((O=O/10|0)!=0&&t!=0);for(i=9-j+t,h=0;h<i&&t>0;h++)D[--t]=48;for(d=te-1;Rn[d]==0;d--)if(d==0)break n;te=d+1}for(;D[t]==48;)++t}if(p=yn<0,s=A-t-e-1,e==0)return p&&(D[--t]=45),ws(D,t,A-t);if(e>0&&s>=-6){if(s>=0){for(a=t+s,g=A-1;g>=a;g--)D[g+1]=D[g];return D[++a]=46,p&&(D[--t]=45),ws(D,t,A-t+1)}for(d=2;d<-s+1;d++)D[--t]=48;return D[--t]=46,D[--t]=48,p&&(D[--t]=45),ws(D,t,A-t)}return kn=t+1,c=A,_=new fg,p&&(_.a+="-"),c-kn>=1?(z1(_,D[t]),_.a+=".",_.a+=ws(D,t+1,A-t-1)):_.a+=ws(D,t,A-t),_.a+="E",s>0&&(_.a+="+"),_.a+=""+s,_.a}function wzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;switch(n.c=e,n.g=new de,t=(cb(),new Qd(n.c)),i=new OE(t),_Y(i),A=Ae(z(n.c,(Wk(),U1n))),h=u(z(n.c,qq),324),_=u(z(n.c,Uq),437),s=u(z(n.c,_1n),490),D=u(z(n.c,Hq),438),n.j=$(B(z(n.c,Yce))),f=n.a,h.g){case 0:f=n.a;break;case 1:f=n.b;break;case 2:f=n.i;break;case 3:f=n.e;break;case 4:f=n.f;break;default:throw T(new Gn(xP+(h.f!=null?h.f:""+h.g)))}if(n.d=new sAn(f,_,s),U(n.d,(J4(),A8),un(z(n.c,Jce))),n.d.c=on(un(z(n.c,H1n))),ST(n.c).i==0)return n.d;for(d=new ne(ST(n.c));d.e!=d.i.gc();){for(a=u(ue(d),27),p=a.g/2,g=a.f/2,X=new V(a.i+p,a.j+g);Zc(n.g,X);)ab(X,(y.Math.random()-.5)*vh,(y.Math.random()-.5)*vh);k=u(z(a,(He(),xv)),140),j=new jAn(X,new Ho(X.a-p-n.j/2-k.b,X.b-g-n.j/2-k.d,a.g+n.j+(k.b+k.c),a.f+n.j+(k.d+k.a))),nn(n.d.i,j),Ve(n.g,X,new bi(j,a))}switch(D.g){case 0:if(A==null)n.d.d=u(sn(n.d.i,0),68);else for(O=new M(n.d.i);O.a<O.c.c.length;)j=u(E(O),68),m=u(u(ee(n.g,j.a),42).b,27).jh(),m!=null&&Sn(m,A)&&(n.d.d=j);break;case 1:for(r=new V(n.c.g,n.c.f),r.a*=.5,r.b*=.5,ab(r,n.c.i,n.c.j),c=Pt,P=new M(n.d.i);P.a<P.c.c.length;)j=u(E(P),68),l=J1(j.a,r),l<c&&(c=l,n.d.d=j);break;default:throw T(new Gn(xP+(D.f!=null?D.f:""+D.g)))}return n.d}function DNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(g=0,r=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));r.e!=r.i.gc();)i=u(ue(r),27),on(un(z(i,(cn(),Rd))))||(a=St(i),(x(z(a,Yh))!==x((lh(),k1))||x(z(a,Nd))===x((o1(),pv))||x(z(a,Nd))===x((o1(),gv))||on(un(z(a,l0)))||x(z(a,Rw))!==x((dd(),Aw))||x(z(a,ja))===x((ps(),p0))||x(z(a,ja))===x((ps(),Uw))||x(z(a,$d))===x((a1(),Iv))||x(z(a,$d))===x((a1(),Ov)))&&!on(un(z(i,lO)))&&(ht(i,(W(),dt),Y(g)),++g),szn(n,i,t));for(g=0,l=new ne((!e.b&&(e.b=new q(Vt,e,12,3)),e.b));l.e!=l.i.gc();)f=u(ue(l),74),(x(z(e,(cn(),Yh)))!==x((lh(),k1))||x(z(e,Nd))===x((o1(),pv))||x(z(e,Nd))===x((o1(),gv))||on(un(z(e,l0)))||x(z(e,Rw))!==x((dd(),Aw))||x(z(e,ja))===x((ps(),p0))||x(z(e,ja))===x((ps(),Uw))||x(z(e,$d))===x((a1(),Iv))||x(z(e,$d))===x((a1(),Ov)))&&(ht(f,(W(),dt),Y(g)),++g),k=Fh(f),j=ra(f),d=on(un(z(k,Bw))),m=!on(un(z(f,Rd))),p=d&&_b(f)&&on(un(z(f,Dd))),c=St(k)==e&&St(k)==St(j),s=(St(k)==e&&j==e)^(St(j)==e&&k==e),m&&!p&&(s||c)&&ftn(n,f,e,t);if(St(e))for(h=new ne($On(St(e)));h.e!=h.i.gc();)f=u(ue(h),74),k=Fh(f),k==e&&_b(f)&&(p=on(un(z(k,(cn(),Bw))))&&on(un(z(f,Dd))),p&&ftn(n,f,e,t))}function $Ne(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt,Yu,Br,Ro;for(t.Ug("Greedy cycle removal",1),A=e.a,Ro=A.c.length,n.a=F(ye,_e,28,Ro,15,1),n.c=F(ye,_e,28,Ro,15,1),n.b=F(ye,_e,28,Ro,15,1),l=0,P=new M(A);P.a<P.c.c.length;){for(k=u(E(P),10),k.p=l,kn=new M(k.j);kn.a<kn.c.c.length;){for(X=u(E(kn),12),f=new M(X.e);f.a<f.c.c.length;)i=u(E(f),18),i.c.i!=k&&(te=u(v(i,(cn(),Cv)),17).a,n.a[l]+=te>0?te+1:1);for(s=new M(X.g);s.a<s.c.c.length;)i=u(E(s),18),i.d.i!=k&&(te=u(v(i,(cn(),Cv)),17).a,n.c[l]+=te>0?te+1:1)}n.c[l]==0?Re(n.e,k):n.a[l]==0&&Re(n.f,k),++l}for(m=-1,p=1,d=new Z,n.d=u(v(e,(W(),P3)),234);Ro>0;){for(;n.e.b!=0;)Nt=u(UN(n.e),10),n.b[Nt.p]=m--,Oen(n,Nt),--Ro;for(;n.f.b!=0;)Yu=u(UN(n.f),10),n.b[Yu.p]=p++,Oen(n,Yu),--Ro;if(Ro>0){for(g=Wi,O=new M(A);O.a<O.c.c.length;)k=u(E(O),10),n.b[k.p]==0&&(D=n.c[k.p]-n.a[k.p],D>=g&&(D>g&&(d.c.length=0,g=D),Fn(d.c,k)));a=n.sg(d),n.b[a.p]=p++,Oen(n,a),--Ro}}for(xe=A.c.length+1,l=0;l<A.c.length;l++)n.b[l]<0&&(n.b[l]+=xe);for(j=new M(A);j.a<j.c.c.length;)for(k=u(E(j),10),Bn=MLn(k.j),tn=Bn,yn=0,Rn=tn.length;yn<Rn;++yn)for(X=tn[yn],_=hh(X.g),r=_,c=0,h=r.length;c<h;++c)i=r[c],Br=i.d.i.p,n.b[k.p]>n.b[Br]&&(Ub(i,!0),U(e,kj,(_n(),!0)));n.a=null,n.c=null,n.b=null,vo(n.f),vo(n.e),t.Vg()}function gzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;for(_=u(N((!n.a&&(n.a=new q(Tt,n,6,6)),n.a),0),166),a=new Tu,D=new de,X=TUn(_),Vc(D.f,_,X),g=new de,i=new Mt,m=$h(Eo(S(C(Ao,1),Kn,20,0,[(!e.d&&(e.d=new Dn(Vt,e,8,5)),e.d),(!e.e&&(e.e=new Dn(Vt,e,7,4)),e.e)])));pe(m);){if(p=u(fe(m),74),(!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i!=1)throw T(new Gn(tWn+(!n.a&&(n.a=new q(Tt,n,6,6)),n.a).i));p!=n&&(j=u(N((!p.a&&(p.a=new q(Tt,p,6,6)),p.a),0),166),xt(i,j,i.c.b,i.c),k=u(Fr(wr(D.f,j)),13),k||(k=TUn(j),Vc(D.f,j,k)),d=t?mi(new rr(u(sn(X,X.c.length-1),8)),u(sn(k,k.c.length-1),8)):mi(new rr((Nn(0,X.c.length),u(X.c[0],8))),(Nn(0,k.c.length),u(k.c[0],8))),Vc(g.f,j,d))}if(i.b!=0)for(P=u(sn(X,t?X.c.length-1:0),8),l=1;l<X.c.length;l++){for(O=u(sn(X,t?X.c.length-1-l:l),8),r=ge(i,0);r.b!=r.d.c;)j=u(be(r),166),k=u(Fr(wr(D.f,j)),13),k.c.length<=l?p$(r):(A=tt(new rr(u(sn(k,t?k.c.length-1-l:l),8)),u(Fr(wr(g.f,j)),8)),(O.a!=A.a||O.b!=A.b)&&(c=O.a-P.a,f=O.b-P.b,s=A.a-P.a,h=A.b-P.b,s*f==h*c&&(c==0||isNaN(c)?c:c<0?-1:1)==(s==0||isNaN(s)?s:s<0?-1:1)&&(f==0||isNaN(f)?f:f<0?-1:1)==(h==0||isNaN(h)?h:h<0?-1:1)?(y.Math.abs(c)<y.Math.abs(s)||y.Math.abs(f)<y.Math.abs(h))&&xt(a,O,a.c.b,a.c):l>1&&xt(a,P,a.c.b,a.c),p$(r)));P=O}return a}function pzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(t.Ug(pVn,1),Rn=u(Wr(ut(new Cn(null,new On(e,16)),new N4n),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),a=u(Wr(ut(new Cn(null,new On(e,16)),new kkn(e)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),m=u(Wr(ut(new Cn(null,new On(e,16)),new vkn(e)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),k=F(DO,AP,40,e.gc(),0,1),s=0;s<a.gc();s++)r=u(a.Xb(s),40),kn=u(v(r,(lc(),A2)),17).a,kn>=0&&kn<a.gc()&&!k[kn]&&(k[kn]=r,a.gd(s),--s);for(f=0;f<a.gc();f++)for(r=u(a.Xb(f),40),kn=u(v(r,(lc(),A2)),17).a,g=0;;g++){if(p=kn+g,p<k.length&&p>=0&&!k[p]){k[p]=r,a.gd(f),--f;break}if(p=kn-g,p<k.length&&p>=0&&!k[p]){k[p]=r,a.gd(f),--f;break}}for(m.jd(new D4n),h=k.length-1;h>=0;h--)!k[h]&&!m.dc()&&(k[h]=u(m.Xb(0),40),m.gd(0));for(l=0;l<k.length;l++)!k[l]&&!Rn.dc()&&(k[l]=u(Rn.Xb(0),40),Rn.gd(0));for(c=0;c<k.length;c++)U(k[c],(pt(),o9),Y(c));for(d=u(E8e(ut(new Cn(null,new On(e,16)),new $4n)),534),X=d,tn=0,yn=X.length;tn<yn;++tn){for(_=X[tn],i=R$(_),pzn(n,i,t.eh(1/d.length|0)),Ln(),ud(i,new tL((pt(),o9))),j=new Mt,D=ge(i,0);D.b!=D.d.c;)for(A=u(be(D),40),O=ge(_.d,0);O.b!=O.d.c;)P=u(be(O),65),P.c==A&&xt(j,P,j.c.b,j.c);vo(_.d),Ki(_.d,j)}t.Vg()}function mzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;for(i=new Z,f=new Z,j=e/2,p=n.gc(),r=u(n.Xb(0),8),P=u(n.Xb(1),8),m=wR(r.a,r.b,P.a,P.b,j),nn(i,(Nn(0,m.c.length),u(m.c[0],8))),nn(f,(Nn(1,m.c.length),u(m.c[1],8))),l=2;l<p;l++)k=r,r=P,P=u(n.Xb(l),8),m=wR(r.a,r.b,k.a,k.b,j),nn(i,(Nn(1,m.c.length),u(m.c[1],8))),nn(f,(Nn(0,m.c.length),u(m.c[0],8))),m=wR(r.a,r.b,P.a,P.b,j),nn(i,(Nn(0,m.c.length),u(m.c[0],8))),nn(f,(Nn(1,m.c.length),u(m.c[1],8)));for(m=wR(P.a,P.b,r.a,r.b,j),nn(i,(Nn(1,m.c.length),u(m.c[1],8))),nn(f,(Nn(0,m.c.length),u(m.c[0],8))),t=new Tu,s=new Z,Re(t,(Nn(0,i.c.length),u(i.c[0],8))),a=1;a<i.c.length-2;a+=2)c=(Nn(a,i.c.length),u(i.c[a],8)),g=E_n((Nn(a-1,i.c.length),u(i.c[a-1],8)),c,(Nn(a+1,i.c.length),u(i.c[a+1],8)),(Nn(a+2,i.c.length),u(i.c[a+2],8))),!isFinite(g.a)||!isFinite(g.b)?xt(t,c,t.c.b,t.c):xt(t,g,t.c.b,t.c);for(Re(t,u(sn(i,i.c.length-1),8)),nn(s,(Nn(0,f.c.length),u(f.c[0],8))),d=1;d<f.c.length-2;d+=2)c=(Nn(d,f.c.length),u(f.c[d],8)),g=E_n((Nn(d-1,f.c.length),u(f.c[d-1],8)),c,(Nn(d+1,f.c.length),u(f.c[d+1],8)),(Nn(d+2,f.c.length),u(f.c[d+2],8))),!isFinite(g.a)||!isFinite(g.b)?Fn(s.c,c):Fn(s.c,g);for(nn(s,u(sn(f,f.c.length-1),8)),h=s.c.length-1;h>=0;h--)Re(t,(Nn(h,s.c.length),u(s.c[h],8)));return t}function vzn(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;for(A=$(B(z(e,(_h(),Xw)))),p=$(B(z(e,f9))),g=$(B(z(e,UO))),NQ((!e.a&&(e.a=new q(Ye,e,10,11)),e.a)),P=fGn((!e.a&&(e.a=new q(Ye,e,10,11)),e.a),A,n.b),j=0;j<P.c.length;j++)if(h=(Nn(j,P.c.length),u(P.c[j],186)),j!=0&&(m=(Nn(j-1,P.c.length),u(P.c[j-1],186)),_Rn(h,m.f+m.b+n.b)),k=KNe(j,P,A,n.b,on(un(z(e,(Bf(),Lq))))),on(un(k.b))){for(c=new M(h.a);c.a<c.c.c.length;)r=u(E(c),172),r.c=!1,r.k=!1,ZUn(r);h.d=new Z,h.e=A,--j}else if(eke(n,h),j+1<P.c.length&&(n.e=y.Math.max(h.e+n.b+u(sn((Nn(j+1,P.c.length),u(P.c[j+1],186)).a,0),172).r-A,n.c),n.f=y.Math.min(h.e+n.b+u(sn((Nn(j+1,P.c.length),u(P.c[j+1],186)).a,0),172).r-A,n.d),h.d.c.length!=0&&(n.c=y.Math.max(n.c,u(sn(h.d,h.d.c.length-1),315).d+(h.d.c.length<=1?0:n.b)),n.d=y.Math.min(n.c,u(sn(h.d,h.d.c.length-1),315).d+(h.d.c.length<=1?0:n.b)))),P.c.length==1)for(d=u(sn(h.d,h.d.c.length-1),315),a=u(sn(d.a,d.a.c.length-1),172),f=new M(a.n);f.a<f.c.c.length;)s=u(E(f),209),n.c=y.Math.max(n.c,a.r-s.d),n.d=y.Math.min(n.d,a.r-s.d),n.e=y.Math.max(n.e,s.d+n.b),n.f=y.Math.min(n.f,s.d+n.b);return O=cFn(P,n.b),D=y.Math.max(O.a,p-(t.b+t.c)),l=y.Math.max(O.b,g-(t.d+t.a)),i=l-O.b,ht(e,s9,i),ht(e,GO,P),new tW(n.a,D,O.b+i,(x5(),_j))}function xNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;if(tn=u(v(n,(cn(),Ft)),101),tn!=(Ai(),Qf)&&tn!=Ia){for(m=n.b,p=m.c.length,a=new Gc((Mo(p+2,cK),oC(nr(nr(5,p+2),(p+2)/10|0)))),k=new Gc((Mo(p+2,cK),oC(nr(nr(5,p+2),(p+2)/10|0)))),nn(a,new de),nn(a,new de),nn(k,new Z),nn(k,new Z),X=new Z,e=0;e<p;e++)for(t=(Nn(e,m.c.length),u(m.c[e],30)),yn=(Nn(e,a.c.length),u(a.c[e],85)),j=new de,Fn(a.c,j),Rn=(Nn(e,k.c.length),u(k.c[e],15)),O=new Z,Fn(k.c,O),r=new M(t.a);r.a<r.c.c.length;){if(i=u(E(r),10),TY(i)){Fn(X.c,i);continue}for(l=new ie(ce(ji(i).a.Kc(),new En));pe(l);)f=u(fe(l),18),Bn=f.c.i,TY(Bn)&&(kn=u(yn.xc(v(Bn,(W(),st))),10),kn||(kn=B_n(n,Bn),yn.zc(v(Bn,st),kn),Rn.Fc(kn)),Zi(f,u(sn(kn.j,1),12)));for(h=new ie(ce(Qt(i).a.Kc(),new En));pe(h);)f=u(fe(h),18),te=f.d.i,TY(te)&&(P=u(ee(j,v(te,(W(),st))),10),P||(P=B_n(n,te),Ve(j,v(te,st),P),Fn(O.c,P)),Oi(f,u(sn(P.j,0),12)))}for(d=0;d<k.c.length;d++)if(A=(Nn(d,k.c.length),u(k.c[d],15)),!A.dc())for(g=null,d==0?(g=new Nc(n),z0(0,m.c.length),d6(m.c,0,g)):d==a.c.length-1?(g=new Nc(n),Fn(m.c,g)):g=(Nn(d-1,m.c.length),u(m.c[d-1],30)),s=A.Kc();s.Ob();)c=u(s.Pb(),10),$i(c,g);for(_=new M(X);_.a<_.c.c.length;)D=u(E(_),10),$i(D,null);U(n,(W(),fH),X)}}function RNe(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt,Yu,Br;for(Nt=new Z,m=new M(e.b);m.a<m.c.c.length;)for(g=u(E(m),30),_=new M(g.a);_.a<_.c.c.length;){for(D=u(E(_),10),D.p=-1,d=Wi,yn=Wi,Rn=new M(D.j);Rn.a<Rn.c.c.length;){for(kn=u(E(Rn),12),r=new M(kn.e);r.a<r.c.c.length;)t=u(E(r),18),Bn=u(v(t,(cn(),O3)),17).a,d=y.Math.max(d,Bn);for(i=new M(kn.g);i.a<i.c.c.length;)t=u(E(i),18),Bn=u(v(t,(cn(),O3)),17).a,yn=y.Math.max(yn,Bn)}U(D,AO,Y(d)),U(D,LO,Y(yn))}for(P=0,p=new M(e.b);p.a<p.c.c.length;)for(g=u(E(p),30),_=new M(g.a);_.a<_.c.c.length;)D=u(E(_),10),D.p<0&&(xe=new JG,xe.b=P++,Wqn(n,D,xe),Fn(Nt.c,xe));for(tn=Lh(Nt.c.length),a=Lh(Nt.c.length),s=0;s<Nt.c.length;s++)nn(tn,new Z),nn(a,Y(0));for(eLe(e,Nt,tn,a),Yu=u(Rf(Nt,F($ie,hVn,261,Nt.c.length,0,1)),854),X=u(Rf(tn,F(rs,kw,15,tn.c.length,0,1)),198),l=F(ye,_e,28,a.c.length,15,1),f=0;f<l.length;f++)l[f]=(Nn(f,a.c.length),u(a.c[f],17)).a;for(O=0,A=new Z,h=0;h<Yu.length;h++)l[h]==0&&Fn(A.c,Yu[h]);for(j=F(ye,_e,28,Yu.length,15,1);A.c.length!=0;)for(xe=u(Yl(A,0),261),j[xe.b]=O++;!X[xe.b].dc();)Br=u(X[xe.b].gd(0),261),--l[Br.b],l[Br.b]==0&&Fn(A.c,Br);for(n.a=F($ie,hVn,261,Yu.length,0,1),c=0;c<Yu.length;c++)for(k=Yu[c],te=j[c],n.a[te]=k,k.b=te,_=new M(k.e);_.a<_.c.c.length;)D=u(E(_),10),D.p=te;return n.a}function KNe(n,e,t,i,r){var c,s,f,h,l,a,d,g,p,m,k,j,P;for(k=!1,h=!1,g=n+1,m=(Nn(n,e.c.length),u(e.c[n],186)),f=m.a,l=null,s=0;s<m.a.c.length;s++)if(c=(Nn(s,f.c.length),u(f.c[s],172)),!c.c){if(c.b.c.length==0){fl(),Gk(m,c),--s,k=!0;continue}if(c.k||(l&&fS(l),l=new tJ(l?l.e+l.d+i:0,m.f,i),Hk(c,l.e+l.d,m.f),nn(m.d,l),FQ(l,c),c.k=!0),a=null,a=(P=null,s<m.a.c.length-1?P=u(sn(m.a,s+1),172):g<e.c.length&&(Nn(g,e.c.length),u(e.c[g],186)).a.c.length!=0&&(P=u(sn((Nn(g,e.c.length),u(e.c[g],186)).a,0),172)),P),j=!1,a&&(j=!rt(a.j,m)),a){if(a.b.c.length!=0&&!on(un(u(sn(a.b,0),27).of((Bf(),Fj)))))uk(c,t-c.s),fS(c.q),k=k|sje(m,c,a,t,i);else{Gk(m,a);break}if(a.b.c.length==0)for(e.c.length>g&&Gk((Nn(g,e.c.length),u(e.c[g],186)),a),a=null;e.c.length>g&&(Nn(g,e.c.length),u(e.c[g],186)).a.c.length==0;)du(e,(Nn(g,e.c.length),e.c[g]));if(!a){--s;continue}if(!on(un(u(sn(a.b,0),27).of((Bf(),Fj))))&&ZPe(e,m,c,a,j,t,g,i)){k=!0;continue}if(j){if(p=m.b,d=a.f,!on(un(u(sn(a.b,0),27).of(Fj)))&&pAe(e,m,c,a,t,g,i,r)){if(k=!0,p<d){h=!0,a.j=m;break}continue}else if(wY(m,c)){c.c=!0,k=!0;continue}}else if(wY(m,c)){c.c=!0,k=!0;continue}if(k)continue}if(wY(m,c)){c.c=!0,k=!0,a&&(a.k=!1);continue}else fS(c.q)}return new bi((_n(),!!k),!!h)}function cn(){cn=R,PH=(He(),Kue),phn=Bue,Cj=qan,Ws=Fue,C2=Uan,w0=Gan,qw=zan,Sv=Xan,Pv=Van,IH=iA,g0=qd,OH=_ue,X8=Qan,yO=$3,Tj=(htn(),ete),T2=tte,Kd=ite,S2=rte,qte=new Di(Jj,Y(0)),Cv=Yee,ghn=Zee,O3=nte,Chn=Cte,vhn=ote,khn=hte,LH=pte,yhn=dte,jhn=wte,jO=Ote,NH=Ste,Mhn=jte,Ehn=kte,Thn=Mte,d0=zee,z8=Xee,MH=hee,Wfn=aee,Vte=k9,Wte=cA,Xte=Qj,zte=rA,mhn=(Gp(),Yw),new Di(x3,mhn),lhn=new fb(12),hhn=new Di(M1,lhn),zfn=(El(),Bv),$l=new Di(yan,zfn),Fw=new Di(oo,0),Ute=new Di(sU,Y(1)),oO=new Di(x2,Gm),Rd=tA,Ft=v9,Tv=H2,xte=zj,Ch=Pue,Kw=B2,Gte=new Di(fU,(_n(),!0)),Bw=Xj,Dd=nU,xd=Hd,kO=Ca,SH=Vw,Gfn=(ci(),Jf),Lo=new Di(_d,Gfn),a0=F2,mO=Pan,_w=Ww,Hte=oU,bhn=_an,dhn=(Kg(),eE),new Di(xan,dhn),Bte=iU,Fte=rU,_te=cU,Kte=tU,AH=ute,$d=Dee,ja=Nee,V8=cte,ou=Cee,Nd=tee,U8=eee,l0=Fne,Hfn=_ne,kH=Gne,Mj=Hne,yH=Zne,uhn=$ee,ohn=xee,ehn=kee,vO=Jee,CH=Bee,TH=wee,fhn=Uee,Vfn=see,EH=fee,vH=Gj,shn=Ree,fO=Lne,Bfn=Ane,sO=One,Yfn=mee,Qfn=pee,Zfn=vee,Ev=_2,Rr=k0,m1=Ean,Sh=Zq,jH=Yq,qfn=Xne,v1=uU,q8=Aue,wO=Nue,b0=Kan,ahn=Due,Mv=$ue,ihn=Pee,rhn=Oee,Hw=D3,pH=Ine,chn=Lee,bO=cee,dO=ree,pO=xv,thn=Eee,G8=_ee,Sj=Wan,Ufn=iee,whn=Qee,Xfn=uee,Nte=Wne,Dte=Jne,Rte=Tee,$te=Qne,nhn=eU,gO=See,aO=Yne,Yh=Bne,_fn=xne,hO=Dne,Ffn=$ne,lO=Rne,Rw=Nne,mH=Kne,Jfn=gee}function Ze(n){var e,t,i;if(n.d>=n.j){n.a=-1,n.c=1;return}if(e=Xi(n.i,n.d++),n.a=e,n.b==1){switch(e){case 92:if(i=10,n.d>=n.j)throw T(new Ne($e((Oe(),qP))));n.a=Xi(n.i,n.d++);break;case 45:(n.e&512)==512&&n.d<n.j&&Xi(n.i,n.d)==91?(++n.d,i=24):i=0;break;case 91:if((n.e&512)!=512&&n.d<n.j&&Xi(n.i,n.d)==58){++n.d,i=20;break}default:(e&64512)==Py&&n.d<n.j&&(t=Xi(n.i,n.d),(t&64512)==56320&&(n.a=hr+(e-Py<<10)+t-56320,++n.d)),i=0}n.c=i;return}switch(e){case 124:i=2;break;case 42:i=3;break;case 43:i=4;break;case 63:i=5;break;case 41:i=7;break;case 46:i=8;break;case 91:i=9;break;case 94:i=11;break;case 36:i=12;break;case 40:if(i=6,n.d>=n.j||Xi(n.i,n.d)!=63)break;if(++n.d>=n.j)throw T(new Ne($e((Oe(),jF))));switch(e=Xi(n.i,n.d++),e){case 58:i=13;break;case 61:i=14;break;case 33:i=15;break;case 91:i=19;break;case 62:i=18;break;case 60:if(n.d>=n.j)throw T(new Ne($e((Oe(),jF))));if(e=Xi(n.i,n.d++),e==61)i=16;else if(e==33)i=17;else throw T(new Ne($e((Oe(),IWn))));break;case 35:for(;n.d<n.j&&(e=Xi(n.i,n.d++),e!=41););if(e!=41)throw T(new Ne($e((Oe(),OWn))));i=21;break;default:if(e==45||97<=e&&e<=122||65<=e&&e<=90){--n.d,i=22;break}else if(e==40){i=23;break}throw T(new Ne($e((Oe(),jF))))}break;case 92:if(i=10,n.d>=n.j)throw T(new Ne($e((Oe(),qP))));n.a=Xi(n.i,n.d++);break;default:i=0}n.c=i}function BNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j;if(t.Ug("Process compaction",1),!!on(un(v(e,(lc(),Tln))))){for(r=u(v(e,v0),88),p=$(B(v(e,sq))),aOe(n,e,r),tNe(e,p/2/2),m=e.b,ud(m,new akn(r)),l=ge(m,0);l.b!=l.d.c;)if(h=u(be(l),40),!on(un(v(h,(pt(),Ta))))){if(i=KSe(h,r),k=NIe(h,e),d=0,g=0,i)switch(j=i.e,r.g){case 2:d=j.a-p-h.f.a,k.e.a-p-h.f.a<d&&(d=k.e.a-p-h.f.a),g=d+h.f.a;break;case 1:d=j.a+i.f.a+p,k.e.a+p>d&&(d=k.e.a+k.f.a+p),g=d+h.f.a;break;case 4:d=j.b-p-h.f.b,k.e.b-p-h.f.b<d&&(d=k.e.b-p-h.f.b),g=d+h.f.b;break;case 3:d=j.b+i.f.b+p,k.e.b+p>d&&(d=k.e.b+k.f.b+p),g=d+h.f.b}else if(k)switch(r.g){case 2:d=k.e.a-p-h.f.a,g=d+h.f.a;break;case 1:d=k.e.a+k.f.a+p,g=d+h.f.a;break;case 4:d=k.e.b-p-h.f.b,g=d+h.f.b;break;case 3:d=k.e.b+k.f.b+p,g=d+h.f.b}x(v(e,oq))===x((d5(),Nj))?(c=d,s=g,f=im(ut(new Cn(null,new On(n.a,16)),new eTn(c,s))),f.a!=null?r==(ci(),Kr)||r==Xr?h.e.a=d:h.e.b=d:(r==(ci(),Kr)||r==us?f=im(ut(A$n(new Cn(null,new On(n.a,16))),new dkn(c))):f=im(ut(A$n(new Cn(null,new On(n.a,16))),new bkn(c))),f.a!=null&&(r==Kr||r==Xr?h.e.a=$(B((oe(f.a!=null),u(f.a,42)).a)):h.e.b=$(B((oe(f.a!=null),u(f.a,42)).a)))),f.a!=null&&(a=qr(n.a,(oe(f.a!=null),f.a),0),a>0&&a!=u(v(h,Ph),17).a&&(U(h,pln,(_n(),!0)),U(h,Ph,Y(a))))):r==(ci(),Kr)||r==Xr?h.e.a=d:h.e.b=d}t.Vg()}}function kzn(n){var e,t,i,r,c,s,f,h,l;for(n.b=1,Ze(n),e=null,n.c==0&&n.a==94?(Ze(n),e=(nt(),nt(),new yo(4)),xc(e,0,cv),f=new yo(4)):f=(nt(),nt(),new yo(4)),r=!0;(l=n.c)!=1;){if(l==0&&n.a==93&&!r){e&&(V5(e,f),f=e);break}if(t=n.a,i=!1,l==10)switch(t){case 100:case 68:case 119:case 87:case 115:case 83:gw(f,Om(t)),i=!0;break;case 105:case 73:case 99:case 67:t=(gw(f,Om(t)),-1),t<0&&(i=!0);break;case 112:case 80:if(h=Dnn(n,t),!h)throw T(new Ne($e((Oe(),EF))));gw(f,h),i=!0;break;default:t=wen(n)}else if(l==24&&!r){if(e&&(V5(e,f),f=e),c=kzn(n),V5(f,c),n.c!=0||n.a!=93)throw T(new Ne($e((Oe(),BWn))));break}if(Ze(n),!i){if(l==0){if(t==91)throw T(new Ne($e((Oe(),Kcn))));if(t==93)throw T(new Ne($e((Oe(),Bcn))));if(t==45&&!r&&n.a!=93)throw T(new Ne($e((Oe(),MF))))}if(n.c!=0||n.a!=45||t==45&&r)xc(f,t,t);else{if(Ze(n),(l=n.c)==1)throw T(new Ne($e((Oe(),UP))));if(l==0&&n.a==93)xc(f,t,t),xc(f,45,45);else{if(l==0&&n.a==93||l==24)throw T(new Ne($e((Oe(),MF))));if(s=n.a,l==0){if(s==91)throw T(new Ne($e((Oe(),Kcn))));if(s==93)throw T(new Ne($e((Oe(),Bcn))));if(s==45)throw T(new Ne($e((Oe(),MF))))}else l==10&&(s=wen(n));if(Ze(n),t>s)throw T(new Ne($e((Oe(),HWn))));xc(f,t,s)}}}r=!1}if(n.c==1)throw T(new Ne($e((Oe(),UP))));return Gg(f),z5(f),n.b=0,Ze(n),f}function FNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;if(t.Ug("Coffman-Graham Layering",1),e.a.c.length==0){t.Vg();return}for(_=u(v(e,(cn(),thn)),17).a,h=0,s=0,g=new M(e.a);g.a<g.c.c.length;)for(d=u(E(g),10),d.p=h++,c=new ie(ce(Qt(d).a.Kc(),new En));pe(c);)r=u(fe(c),18),r.p=s++;for(n.d=F(so,Xh,28,h,16,1),n.a=F(so,Xh,28,s,16,1),n.b=F(ye,_e,28,h,15,1),n.e=F(ye,_e,28,h,15,1),n.f=F(ye,_e,28,h,15,1),gC(n.c),Rke(n,e),m=new dT(new A7n(n)),D=new M(e.a);D.a<D.c.c.length;){for(O=u(E(D),10),c=new ie(ce(ji(O).a.Kc(),new En));pe(c);)r=u(fe(c),18),n.a[r.p]||++n.b[O.p];n.b[O.p]==0&&Tp(ym(m,O),_m)}for(f=0;m.b.c.length!=0;)for(O=u(w$(m),10),n.f[O.p]=f++,c=new ie(ce(Qt(O).a.Kc(),new En));pe(c);)r=u(fe(c),18),!n.a[r.p]&&(j=r.d.i,--n.b[j.p],In(n.c,j,Y(n.f[O.p])),n.b[j.p]==0&&Tp(ym(m,j),_m));for(p=new dT(new L7n(n)),A=new M(e.a);A.a<A.c.c.length;){for(O=u(E(A),10),c=new ie(ce(Qt(O).a.Kc(),new En));pe(c);)r=u(fe(c),18),n.a[r.p]||++n.e[O.p];n.e[O.p]==0&&Tp(ym(p,O),_m)}for(a=new Z,i=mOn(e,a);p.b.c.length!=0;)for(P=u(w$(p),10),(i.a.c.length>=_||!D8e(P,i))&&(i=mOn(e,a)),$i(P,i),c=new ie(ce(ji(P).a.Kc(),new En));pe(c);)r=u(fe(c),18),!n.a[r.p]&&(k=r.c.i,--n.e[k.p],n.e[k.p]==0&&Tp(ym(p,k),_m));for(l=a.c.length-1;l>=0;--l)nn(e.b,(Nn(l,a.c.length),u(a.c[l],30)));e.a.c.length=0,t.Vg()}function yzn(n,e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;D=!1;do for(D=!1,c=e?new qa(n.a.b).a.gc()-2:1;e?c>=0:c<new qa(n.a.b).a.gc();c+=e?-1:1)for(r=kJ(n.a,Y(c)),p=0;p<r.b;p++)if(d=u(Zo(r,p),10),!!kt(d,(W(),dt))&&!(_ke(n.a,Y(c))&&n.r==(ps(),p0)||Hke(n.a,Y(c))&&n.r==(ps(),Uw))){for(A=!0,P=0;P<r.b;P++)j=u(Zo(r,P),10),kt(j,dt)&&(e&&u(v(d,dt),17).a<u(v(j,dt),17).a||!e&&u(v(d,dt),17).a>u(v(j,dt),17).a)&&(A=!1);if(A){for(h=e?c+1:c-1,f=kJ(n.a,Y(h)),s=!1,O=!0,i=!1,a=ge(f,0);a.b!=a.d.c;)l=u(be(a),10),kt(l,dt)?l.p!=d.p&&(s=s|(e?u(v(l,dt),17).a<u(v(d,dt),17).a:u(v(l,dt),17).a>u(v(d,dt),17).a),O=!1):!s&&O&&l.k==(Vn(),Sc)&&(i=!0,e?g=u(fe(new ie(ce(ji(l).a.Kc(),new En))),18).c.i:g=u(fe(new ie(ce(Qt(l).a.Kc(),new En))),18).d.i,g==d&&(e?t=u(fe(new ie(ce(Qt(l).a.Kc(),new En))),18).d.i:t=u(fe(new ie(ce(ji(l).a.Kc(),new En))),18).c.i,(e?u(x0(n.a,t),17).a-u(x0(n.a,g),17).a:u(x0(n.a,g),17).a-u(x0(n.a,t),17).a)<=2&&(O=!1)));if(i&&O&&(e?t=u(fe(new ie(ce(Qt(d).a.Kc(),new En))),18).d.i:t=u(fe(new ie(ce(ji(d).a.Kc(),new En))),18).c.i,(e?u(x0(n.a,t),17).a-u(x0(n.a,d),17).a:u(x0(n.a,d),17).a-u(x0(n.a,t),17).a)<=2&&t.k==(Vn(),zt)&&(O=!1)),s||O){for(k=YHn(n,d,e);k.a.gc()!=0;)m=u(k.a.ec().Kc().Pb(),10),k.a.Bc(m)!=null,Ki(k,YHn(n,m,e));--p,D=!0}}}while(D)}function _Ne(n){Te(n.c,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#decimal"])),Te(n.d,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#integer"])),Te(n.e,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#boolean"])),Te(n.f,Ke,S(C(fn,1),J,2,6,[Ji,"EBoolean",Qe,"EBoolean:Object"])),Te(n.i,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#byte"])),Te(n.g,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#hexBinary"])),Te(n.j,Ke,S(C(fn,1),J,2,6,[Ji,"EByte",Qe,"EByte:Object"])),Te(n.n,Ke,S(C(fn,1),J,2,6,[Ji,"EChar",Qe,"EChar:Object"])),Te(n.t,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#double"])),Te(n.u,Ke,S(C(fn,1),J,2,6,[Ji,"EDouble",Qe,"EDouble:Object"])),Te(n.F,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#float"])),Te(n.G,Ke,S(C(fn,1),J,2,6,[Ji,"EFloat",Qe,"EFloat:Object"])),Te(n.I,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#int"])),Te(n.J,Ke,S(C(fn,1),J,2,6,[Ji,"EInt",Qe,"EInt:Object"])),Te(n.N,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#long"])),Te(n.O,Ke,S(C(fn,1),J,2,6,[Ji,"ELong",Qe,"ELong:Object"])),Te(n.Z,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#short"])),Te(n.$,Ke,S(C(fn,1),J,2,6,[Ji,"EShort",Qe,"EShort:Object"])),Te(n._,Ke,S(C(fn,1),J,2,6,[Ji,"http://www.w3.org/2001/XMLSchema#string"]))}function HNe(n,e,t,i,r,c,s){var f,h,l,a,d,g,p,m;return g=u(i.a,17).a,p=u(i.b,17).a,d=n.b,m=n.c,f=0,a=0,e==(ci(),Kr)||e==Xr?(a=a7(lKn(U0(_r(new Cn(null,new On(t.b,16)),new x4n),new m4n))),d.e.b+d.f.b/2>a?(l=++p,f=$(B(ho(_0(_r(new Cn(null,new On(t.b,16)),new rTn(r,l)),new v4n))))):(h=++g,f=$(B(ho(Sp(_r(new Cn(null,new On(t.b,16)),new cTn(r,h)),new k4n)))))):(a=a7(lKn(U0(_r(new Cn(null,new On(t.b,16)),new M4n),new p4n))),d.e.a+d.f.a/2>a?(l=++p,f=$(B(ho(_0(_r(new Cn(null,new On(t.b,16)),new tTn(r,l)),new y4n))))):(h=++g,f=$(B(ho(Sp(_r(new Cn(null,new On(t.b,16)),new iTn(r,h)),new j4n)))))),e==Kr?(ir(n.a,new V($(B(v(d,(pt(),jf))))-r,f)),ir(n.a,new V(m.e.a+m.f.a+r+c,f)),ir(n.a,new V(m.e.a+m.f.a+r+c,m.e.b+m.f.b/2)),ir(n.a,new V(m.e.a+m.f.a,m.e.b+m.f.b/2))):e==Xr?(ir(n.a,new V($(B(v(d,(pt(),Js))))+r,d.e.b+d.f.b/2)),ir(n.a,new V(d.e.a+d.f.a+r,f)),ir(n.a,new V(m.e.a-r-c,f)),ir(n.a,new V(m.e.a-r-c,m.e.b+m.f.b/2)),ir(n.a,new V(m.e.a,m.e.b+m.f.b/2))):e==us?(ir(n.a,new V(f,$(B(v(d,(pt(),jf))))-r)),ir(n.a,new V(f,m.e.b+m.f.b+r+c)),ir(n.a,new V(m.e.a+m.f.a/2,m.e.b+m.f.b+r+c)),ir(n.a,new V(m.e.a+m.f.a/2,m.e.b+m.f.b+r))):(n.a.b==0||(u($s(n.a),8).b=$(B(v(d,(pt(),Js))))+r*u(s.b,17).a),ir(n.a,new V(f,$(B(v(d,(pt(),Js))))+r*u(s.b,17).a)),ir(n.a,new V(f,m.e.b-r*u(s.a,17).a-c))),new bi(Y(g),Y(p))}function qNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p;if(s=!0,d=null,i=null,r=null,e=!1,p=$oe,l=null,c=null,f=0,h=yx(n,f,Fdn,_dn),h<n.length&&(zn(h,n.length),n.charCodeAt(h)==58)&&(d=(Ri(f,h,n.length),n.substr(f,h-f)),f=h+1),t=d!=null&&t7(jA,d.toLowerCase()),t){if(h=n.lastIndexOf("!/"),h==-1)throw T(new Gn("no archive separator"));s=!0,i=qo(n,f,++h),f=h}else f>=0&&Sn(n.substr(f,2),"//")?(f+=2,h=yx(n,f,L9,N9),i=(Ri(f,h,n.length),n.substr(f,h-f)),f=h):d!=null&&(f==n.length||(zn(f,n.length),n.charCodeAt(f)!=47))&&(s=!1,h=UX(n,wu(35),f),h==-1&&(h=n.length),i=(Ri(f,h,n.length),n.substr(f,h-f)),f=h);if(!t&&f<n.length&&(zn(f,n.length),n.charCodeAt(f)==47)&&(h=yx(n,f+1,L9,N9),a=(Ri(f+1,h,n.length),n.substr(f+1,h-(f+1))),a.length>0&&Xi(a,a.length-1)==58&&(r=a,f=h)),f<n.length&&(zn(f,n.length),n.charCodeAt(f)==47)&&(++f,e=!0),f<n.length&&(zn(f,n.length),n.charCodeAt(f)!=63)&&(zn(f,n.length),n.charCodeAt(f)!=35)){for(g=new Z;f<n.length&&(zn(f,n.length),n.charCodeAt(f)!=63)&&(zn(f,n.length),n.charCodeAt(f)!=35);)h=yx(n,f,L9,N9),nn(g,(Ri(f,h,n.length),n.substr(f,h-f))),f=h,f<n.length&&(zn(f,n.length),n.charCodeAt(f)==47)&&(q6e(n,++f)||g.c.push(""));p=F(fn,J,2,g.c.length,6,1),Rf(g,p)}return f<n.length&&(zn(f,n.length),n.charCodeAt(f)==63)&&(h=w4(n,35,++f),h==-1&&(h=n.length),l=(Ri(f,h,n.length),n.substr(f,h-f)),f=h),f<n.length&&(c=DW(n,++f)),yAe(s,d,i,r,p,l),new jR(s,d,i,r,e,p,l,c)}function jzn(){jzn=R,YR(),qe=new Mb,In(qe,(en(),ef),Yf),In(qe,Cs,Yf),In(qe,Wu,Yf),In(qe,tf,Yf),In(qe,vu,Yf),In(qe,Ju,Yf),In(qe,tf,ef),In(qe,Yf,os),In(qe,ef,os),In(qe,Cs,os),In(qe,Wu,os),In(qe,mu,os),In(qe,tf,os),In(qe,vu,os),In(qe,Ju,os),In(qe,su,os),In(qe,Yf,Do),In(qe,ef,Do),In(qe,os,Do),In(qe,Cs,Do),In(qe,Wu,Do),In(qe,mu,Do),In(qe,tf,Do),In(qe,su,Do),In(qe,$o,Do),In(qe,vu,Do),In(qe,xu,Do),In(qe,Ju,Do),In(qe,ef,Cs),In(qe,Wu,Cs),In(qe,tf,Cs),In(qe,Ju,Cs),In(qe,ef,Wu),In(qe,Cs,Wu),In(qe,tf,Wu),In(qe,Wu,Wu),In(qe,vu,Wu),In(qe,Yf,ss),In(qe,ef,ss),In(qe,os,ss),In(qe,Do,ss),In(qe,Cs,ss),In(qe,Wu,ss),In(qe,mu,ss),In(qe,tf,ss),In(qe,$o,ss),In(qe,su,ss),In(qe,Ju,ss),In(qe,vu,ss),In(qe,Uc,ss),In(qe,Yf,$o),In(qe,ef,$o),In(qe,os,$o),In(qe,Cs,$o),In(qe,Wu,$o),In(qe,mu,$o),In(qe,tf,$o),In(qe,su,$o),In(qe,Ju,$o),In(qe,xu,$o),In(qe,Uc,$o),In(qe,ef,su),In(qe,Cs,su),In(qe,Wu,su),In(qe,tf,su),In(qe,$o,su),In(qe,Ju,su),In(qe,vu,su),In(qe,Yf,pu),In(qe,ef,pu),In(qe,os,pu),In(qe,Cs,pu),In(qe,Wu,pu),In(qe,mu,pu),In(qe,tf,pu),In(qe,su,pu),In(qe,Ju,pu),In(qe,ef,vu),In(qe,os,vu),In(qe,Do,vu),In(qe,Wu,vu),In(qe,Yf,xu),In(qe,ef,xu),In(qe,Do,xu),In(qe,Cs,xu),In(qe,Wu,xu),In(qe,mu,xu),In(qe,tf,xu),In(qe,tf,Uc),In(qe,Wu,Uc),In(qe,su,Yf),In(qe,su,Cs),In(qe,su,os),In(qe,mu,Yf),In(qe,mu,ef),In(qe,mu,Do)}function UNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X;switch(t.Ug("Brandes & Koepf node placement",1),n.a=e,n.c=CIe(e),i=u(v(e,(cn(),CH)),281),p=on(un(v(e,G8))),n.d=i==(Vk(),YI)&&!p||i==iH,gAe(n,e),_=null,X=null,P=null,O=null,j=(Mo(4,mw),new Gc(4)),u(v(e,CH),281).g){case 3:P=new Wg(e,n.c.d,(If(),Bd),(fh(),y1)),Fn(j.c,P);break;case 1:O=new Wg(e,n.c.d,(If(),Xf),(fh(),y1)),Fn(j.c,O);break;case 4:_=new Wg(e,n.c.d,(If(),Bd),(fh(),m0)),Fn(j.c,_);break;case 2:X=new Wg(e,n.c.d,(If(),Xf),(fh(),m0)),Fn(j.c,X);break;default:P=new Wg(e,n.c.d,(If(),Bd),(fh(),y1)),O=new Wg(e,n.c.d,Xf,y1),_=new Wg(e,n.c.d,Bd,m0),X=new Wg(e,n.c.d,Xf,m0),Fn(j.c,_),Fn(j.c,X),Fn(j.c,P),Fn(j.c,O)}for(r=new zMn(e,n.c),f=new M(j);f.a<f.c.c.length;)c=u(E(f),185),cNe(r,c,n.b),tOe(c);for(g=new iFn(e,n.c),h=new M(j);h.a<h.c.c.length;)c=u(E(h),185),PAe(g,c);if(t._g())for(l=new M(j);l.a<l.c.c.length;)c=u(E(l),185),t.bh(c+" size is "+gR(c));if(d=null,n.d&&(a=JLe(n,j,n.c.d),JUn(e,a,t)&&(d=a)),!d)for(l=new M(j);l.a<l.c.c.length;)c=u(E(l),185),JUn(e,c,t)&&(!d||gR(d)>gR(c))&&(d=c);for(!d&&(d=(Nn(0,j.c.length),u(j.c[0],185))),k=new M(e.b);k.a<k.c.c.length;)for(m=u(E(k),30),D=new M(m.a);D.a<D.c.c.length;)A=u(E(D),10),A.n.b=$(d.p[A.p])+$(d.d[A.p]);for(t._g()&&(t.bh("Chosen node placement: "+d),t.bh("Blocks: "+aHn(d)),t.bh("Classes: "+FMe(d,t)),t.bh("Marked edges: "+n.b)),s=new M(j);s.a<s.c.c.length;)c=u(E(s),185),c.g=null,c.b=null,c.a=null,c.d=null,c.j=null,c.i=null,c.p=null;e3e(n.c),n.b.a.$b(),t.Vg()}function GNe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;if(n.c.length==1)return kFn((Nn(0,n.c.length),u(n.c[0],121))),Nn(0,n.c.length),u(n.c[0],121);if(n.c.length<=0)return new tk;for(h=new M(n);h.a<h.c.c.length;){for(s=u(E(h),121),O=0,m=et,k=et,g=Wi,p=Wi,P=ge(s.b,0);P.b!=P.d.c;)j=u(be(P),40),O+=u(v(j,(lc(),RO)),17).a,m=y.Math.min(m,j.e.a),k=y.Math.min(k,j.e.b),g=y.Math.max(g,j.e.a+j.f.a),p=y.Math.max(p,j.e.b+j.f.b);U(s,(lc(),RO),Y(O)),U(s,(pt(),Lv),new V(m,k)),U(s,Dj,new V(g,p))}for(Ln(),Yt(n,new q3n),_=new tk,Ur(_,(Nn(0,n.c.length),u(n.c[0],96))),d=0,Rn=0,l=new M(n);l.a<l.c.c.length;)s=u(E(l),121),X=mi(Fi(u(v(s,(pt(),Dj)),8)),u(v(s,Lv),8)),d=y.Math.max(d,X.a),Rn+=X.a*X.b;for(d=y.Math.max(d,y.Math.sqrt(Rn)*$(B(v(_,(lc(),yre))))),tn=$(B(v(_,sq))),Bn=0,te=0,a=0,e=tn,f=new M(n);f.a<f.c.c.length;)s=u(E(f),121),X=mi(Fi(u(v(s,(pt(),Dj)),8)),u(v(s,Lv),8)),Bn+X.a>d&&(Bn=0,te+=a+tn,a=0),lUn(_,s,Bn,te),e=y.Math.max(e,Bn+X.a),a=y.Math.max(a,X.b),Bn+=X.a+tn;for(D=new de,t=new de,kn=new M(n);kn.a<kn.c.c.length;)for(yn=u(E(kn),121),i=on(un(v(yn,(He(),zj)))),A=yn.q?yn.q:Wh,c=A.vc().Kc();c.Ob();)r=u(c.Pb(),44),Zc(D,r.ld())?x(u(r.ld(),149).Sg())!==x(r.md())&&(i&&Zc(t,r.ld())?(fl(),""+u(r.ld(),149).Pg()):(Ve(D,u(r.ld(),149),r.md()),U(_,u(r.ld(),149),r.md()),i&&Ve(t,u(r.ld(),149),r.md()))):(Ve(D,u(r.ld(),149),r.md()),U(_,u(r.ld(),149),r.md()));return kFn(_),_}function XS(n,e){switch(n.e){case 0:case 2:case 4:case 6:case 42:case 44:case 46:case 48:case 8:case 10:case 12:case 14:case 16:case 18:case 20:case 22:case 24:case 26:case 28:case 30:case 32:case 34:case 36:case 38:return new UOn(n.b,n.a,e,n.c);case 1:return new $M(n.a,e,At(e.Dh(),n.c));case 43:return new xCn(n.a,e,At(e.Dh(),n.c));case 3:return new ti(n.a,e,At(e.Dh(),n.c));case 45:return new Cu(n.a,e,At(e.Dh(),n.c));case 41:return new Ou(u(gs(n.c),29),n.a,e,At(e.Dh(),n.c));case 50:return new rxn(u(gs(n.c),29),n.a,e,At(e.Dh(),n.c));case 5:return new yV(n.a,e,At(e.Dh(),n.c),n.d.n);case 47:return new WSn(n.a,e,At(e.Dh(),n.c),n.d.n);case 7:return new q(n.a,e,At(e.Dh(),n.c),n.d.n);case 49:return new jp(n.a,e,At(e.Dh(),n.c),n.d.n);case 9:return new $Cn(n.a,e,At(e.Dh(),n.c));case 11:return new DCn(n.a,e,At(e.Dh(),n.c));case 13:return new $X(n.a,e,At(e.Dh(),n.c));case 15:return new QM(n.a,e,At(e.Dh(),n.c));case 17:return new RCn(n.a,e,At(e.Dh(),n.c));case 19:return new Eg(n.a,e,At(e.Dh(),n.c));case 21:return new xX(n.a,e,At(e.Dh(),n.c));case 23:return new R7(n.a,e,At(e.Dh(),n.c));case 25:return new YSn(n.a,e,At(e.Dh(),n.c),n.d.n);case 27:return new Dn(n.a,e,At(e.Dh(),n.c),n.d.n);case 29:return new QSn(n.a,e,At(e.Dh(),n.c),n.d.n);case 31:return new JSn(n.a,e,At(e.Dh(),n.c),n.d.n);case 33:return new EV(n.a,e,At(e.Dh(),n.c),n.d.n);case 35:return new jV(n.a,e,At(e.Dh(),n.c),n.d.n);case 37:return new DN(n.a,e,At(e.Dh(),n.c),n.d.n);case 39:return new bT(n.a,e,At(e.Dh(),n.c),n.d.n);case 40:return new Bt(e,At(e.Dh(),n.c));default:throw T(new ec("Unknown feature style: "+n.e))}}function Ezn(n){var e,t,i,r,c,s,f,h;for(c=0,r=n.a.b,h=ge(n.a,0);h.b!=h.d.c;){if(f=u(be(h),240),s=(c+1)/(r+1),!n.c&&!n.d)return;n.c&&!n.d?(n.g=!0,n.b==(ci(),Kr)?(i=n.c.e.b+n.c.f.b+n.e*(c+1),e=new V($(B(v(n.c,(pt(),Js))))+n.e,i),t=new V($(B(v(n.c,jf)))-n.e,i)):n.b==Xr?(i=n.c.e.b+n.c.f.b+n.e*(c+1),e=new V($(B(v(n.c,(pt(),jf))))-n.e,i),t=new V($(B(v(n.c,Js)))+n.e,i)):n.b==us?(i=n.c.e.a+n.c.f.a+n.e*(c+1),e=new V(i,$(B(v(n.c,(pt(),Js))))+n.e),t=new V(i,$(B(v(n.c,jf)))-n.e)):(i=n.c.e.a+n.c.f.a+n.e*(c+1),e=new V(i,$(B(v(n.c,(pt(),jf))))-n.e),t=new V(i,$(B(v(n.c,Js)))+n.e))):n.c&&n.d?n.b==(ci(),Kr)?(i=n.d.e.b*s+(n.c.e.b+n.c.f.b)*(1-s),e=new V($(B(v(n.c,(pt(),Js))))+n.e,i),t=new V($(B(v(n.c,jf)))-n.e,i)):n.b==Xr?(i=n.d.e.b*s+(n.c.e.b+n.c.f.b)*(1-s),e=new V($(B(v(n.c,(pt(),jf))))-n.e,i),t=new V($(B(v(n.c,Js)))+n.e,i)):n.b==us?(i=n.d.e.a*s+(n.c.e.a+n.c.f.a)*(1-s),e=new V(i,$(B(v(n.c,(pt(),Js))))+n.e),t=new V(i,$(B(v(n.c,jf)))-n.e)):(i=n.d.e.a*s+(n.c.e.a+n.c.f.a)*(1-s),e=new V(i,$(B(v(n.c,(pt(),jf))))-n.e),t=new V(i,$(B(v(n.c,Js)))+n.e)):(n.f=!0,n.b==(ci(),Kr)?(i=n.d.e.b-n.e*(c+1),e=new V($(B(v(n.d,(pt(),Js))))+n.e,i),t=new V($(B(v(n.d,jf)))-n.e,i)):n.b==Xr?(i=n.d.e.b-n.e*(c+1),e=new V($(B(v(n.d,(pt(),jf))))-n.e,i),t=new V($(B(v(n.d,Js)))+n.e,i)):n.b==us?(i=n.d.e.a-n.e*(c+1),e=new V(i,$(B(v(n.d,(pt(),Js))))+n.e),t=new V(i,$(B(v(n.d,jf)))-n.e)):(i=n.d.e.a-n.e*(c+1),e=new V(i,$(B(v(n.d,(pt(),jf))))-n.e),t=new V(i,$(B(v(n.d,Js)))+n.e))),u(f.a,8).a=e.a,u(f.a,8).b=e.b,f.b.a=t.a,f.b.b=t.b,++c}}function zNe(n,e,t,i,r,c){var s,f,h,l,a,d,g,p,m,k,j,P;switch(e){case 71:f=i.q.getFullYear()-ha>=-1900?1:0,t>=4?Be(n,S(C(fn,1),J,2,6,[Kzn,Bzn])[f]):Be(n,S(C(fn,1),J,2,6,["BC","AD"])[f]);break;case 121:f9e(n,t,i);break;case 77:PPe(n,t,i);break;case 107:h=r.q.getHours(),h==0?Kh(n,24,t):Kh(n,h,t);break;case 83:_Te(n,t,r);break;case 69:a=i.q.getDay(),t==5?Be(n,S(C(fn,1),J,2,6,["S","M","T","W","T","F","S"])[a]):t==4?Be(n,S(C(fn,1),J,2,6,[vK,kK,yK,jK,EK,MK,TK])[a]):Be(n,S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[a]);break;case 97:r.q.getHours()>=12&&r.q.getHours()<24?Be(n,S(C(fn,1),J,2,6,["AM","PM"])[1]):Be(n,S(C(fn,1),J,2,6,["AM","PM"])[0]);break;case 104:d=r.q.getHours()%12,d==0?Kh(n,12,t):Kh(n,d,t);break;case 75:g=r.q.getHours()%12,Kh(n,g,t);break;case 72:p=r.q.getHours(),Kh(n,p,t);break;case 99:m=i.q.getDay(),t==5?Be(n,S(C(fn,1),J,2,6,["S","M","T","W","T","F","S"])[m]):t==4?Be(n,S(C(fn,1),J,2,6,[vK,kK,yK,jK,EK,MK,TK])[m]):t==3?Be(n,S(C(fn,1),J,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[m]):Kh(n,m,1);break;case 76:k=i.q.getMonth(),t==5?Be(n,S(C(fn,1),J,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[k]):t==4?Be(n,S(C(fn,1),J,2,6,[sK,fK,hK,lK,c3,aK,dK,bK,wK,gK,pK,mK])[k]):t==3?Be(n,S(C(fn,1),J,2,6,["Jan","Feb","Mar","Apr",c3,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[k]):Kh(n,k+1,t);break;case 81:j=i.q.getMonth()/3|0,t<4?Be(n,S(C(fn,1),J,2,6,["Q1","Q2","Q3","Q4"])[j]):Be(n,S(C(fn,1),J,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[j]);break;case 100:P=i.q.getDate(),Kh(n,P,t);break;case 109:l=r.q.getMinutes(),Kh(n,l,t);break;case 115:s=r.q.getSeconds(),Kh(n,s,t);break;case 122:t<4?Be(n,c.c[0]):Be(n,c.c[1]);break;case 118:Be(n,c.b);break;case 90:t<3?Be(n,DEe(c)):t==3?Be(n,BEe(c)):Be(n,FEe(c.a));break;default:return!1}return!0}function ftn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe;if(nUn(e),h=u(N((!e.b&&(e.b=new Dn(he,e,4,7)),e.b),0),84),a=u(N((!e.c&&(e.c=new Dn(he,e,5,8)),e.c),0),84),f=Gr(h),l=Gr(a),s=(!e.a&&(e.a=new q(Tt,e,6,6)),e.a).i==0?null:u(N((!e.a&&(e.a=new q(Tt,e,6,6)),e.a),0),166),tn=u(ee(n.a,f),10),Bn=u(ee(n.a,l),10),yn=null,te=null,L(h,193)&&(X=u(ee(n.a,h),305),L(X,12)?yn=u(X,12):L(X,10)&&(tn=u(X,10),yn=u(sn(tn.j,0),12))),L(a,193)&&(Rn=u(ee(n.a,a),305),L(Rn,12)?te=u(Rn,12):L(Rn,10)&&(Bn=u(Rn,10),te=u(sn(Bn.j,0),12))),!tn||!Bn)throw T(new hp("The source or the target of edge "+e+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(k=new Eb,Ur(k,e),U(k,(W(),st),e),U(k,(cn(),Rr),null),p=u(v(i,Hc),21),tn==Bn&&p.Fc((pr(),K8)),yn||(_=(gr(),Jc),kn=null,s&&mg(u(v(tn,Ft),101))&&(kn=new V(s.j,s.k),ULn(kn,V7(e)),mNn(kn,t),Y0(l,f)&&(_=Vu,tt(kn,tn.n))),yn=eGn(tn,kn,_,i)),te||(_=(gr(),Vu),xe=null,s&&mg(u(v(Bn,Ft),101))&&(xe=new V(s.b,s.c),ULn(xe,V7(e)),mNn(xe,t)),te=eGn(Bn,xe,_,Hi(Bn))),Zi(k,yn),Oi(k,te),(yn.e.c.length>1||yn.g.c.length>1||te.e.c.length>1||te.g.c.length>1)&&p.Fc((pr(),R8)),g=new ne((!e.n&&(e.n=new q(Sr,e,1,7)),e.n));g.e!=g.i.gc();)if(d=u(ue(g),135),!on(un(z(d,Rd)))&&d.a)switch(j=ex(d),nn(k.b,j),u(v(j,Sh),278).g){case 1:case 2:p.Fc((pr(),kv));break;case 0:p.Fc((pr(),vv)),U(j,Sh,($f(),Rv))}if(c=u(v(i,U8),322),P=u(v(i,vO),323),r=c==(c5(),pj)||P==(T5(),BH),s&&(!s.a&&(s.a=new ti(xo,s,5)),s.a).i!=0&&r){for(O=Qk(s),m=new Tu,D=ge(O,0);D.b!=D.d.c;)A=u(be(D),8),Re(m,new rr(A));U(k,rfn,m)}return k}function XNe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt;for(kn=0,Rn=0,tn=new de,_=u(ho(_0(_r(new Cn(null,new On(n.b,16)),new E4n),new A4n)),17).a+1,yn=F(ye,_e,28,_,15,1),j=F(ye,_e,28,_,15,1),k=0;k<_;k++)yn[k]=0,j[k]=0;for(h=u(Wr(cJ(new Cn(null,new On(n.a,16))),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),a=h.Kc();a.Ob();)if(l=u(a.Pb(),65),te=u(v(l.b,(lc(),Ph)),17).a,Nt=u(v(l.c,Ph),17).a,D=Nt-te,D>1)for(f=te+1;f<Nt;f++){if(d=f,X=u(Wr(ut(new Cn(null,new On(n.b,16)),new ykn(d)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[Yr]))),15),m=0,e==(ci(),Kr)||e==Xr){for(X.jd(new I4n),m=0;m<X.gc()&&(P=(f-te)/(Nt-te),!(u(X.Xb(m),40).e.b>l.b.e.b*(1-P)+l.c.e.b*P));m++);if(X.gc()>0&&(xe=l.a.b==0?Fi(l.b.e):u($s(l.a),8),A=tt(Fi(u(X.Xb(X.gc()-1),40).e),u(X.Xb(X.gc()-1),40).f),g=tt(Fi(u(X.Xb(0),40).e),u(X.Xb(0),40).f),m>=X.gc()-1&&xe.b>A.b&&l.c.e.b>A.b||m<=0&&xe.b<g.a&&l.c.e.b<g.b))continue}else{for(X.jd(new O4n),m=0;m<X.gc()&&(P=(f-te)/(Nt-te),!(u(X.Xb(m),40).e.a>l.b.e.a*(1-P)+l.c.e.a*P));m++);if(X.gc()>0&&(xe=l.a.b==0?Fi(l.b.e):u($s(l.a),8),A=tt(Fi(u(X.Xb(X.gc()-1),40).e),u(X.Xb(X.gc()-1),40).f),g=tt(Fi(u(X.Xb(0),40).e),u(X.Xb(0),40).f),m>=X.gc()-1&&xe.a>A.a&&l.c.e.a>A.a||m<=0&&xe.a<g.a&&l.c.e.a<g.a))continue}r=new Ni,c=new Ni,Re(l.a,r),Re(l.a,c),s=new _N(r,c,l),O=lf(Ks(f,32),vi(m,mr)),Zc(tn,Tl(O))?(p=u(ee(tn,Tl(O)),675),Re(p.a,s),hl(p.b)?ud(p.a,new R4n):ud(p.a,new K4n),Ezn(p)):(p=new RBn(m==0?null:u(X.Xb(m-1),40),m==X.gc()?null:u(X.Xb(m),40),s,n),Ve(tn,Tl(O),p)),e==Kr||e==Xr?(p.f&&p.d.e.b<=$(B(v(n,(pt(),rq))))&&++kn,p.g&&p.c.e.b+p.c.f.b>=$(B(v(n,(pt(),kln))))&&++Rn):(p.f&&p.d.e.a<=$(B(v(n,(pt(),iq))))&&++kn,p.g&&p.c.e.a+p.c.f.a>=$(B(v(n,(pt(),vln))))&&++Rn)}else D==0?Ann(l):D<0&&(++yn[te],++j[Nt],Bn=HNe(l,e,n,new bi(Y(kn),Y(Rn)),t,i,new bi(Y(j[Nt]),Y(yn[te]))),kn=u(Bn.a,17).a,Rn=u(Bn.b,17).a)}function VNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;if(i=e,h=t,n.b&&i.j==(en(),Wn)&&h.j==(en(),Wn)&&(O=i,i=h,h=O),Zc(n.a,i)){if(sf(u(ee(n.a,i),49),h))return 1}else Ve(n.a,i,new ni);if(Zc(n.a,h)){if(sf(u(ee(n.a,h),49),i))return-1}else Ve(n.a,h,new ni);if(Zc(n.d,i)){if(sf(u(ee(n.d,i),49),h))return-1}else Ve(n.d,i,new ni);if(Zc(n.d,h)){if(sf(u(ee(n.a,h),49),i))return 1}else Ve(n.d,h,new ni);if(i.j!=h.j)return P=xle(i.j,h.j),P==-1?ns(n,h,i):ns(n,i,h),P;if(i.e.c.length!=0&&h.e.c.length!=0){if(n.b&&(P=BRn(i,h),P!=0))return P==-1?ns(n,h,i):P==1&&ns(n,i,h),P;if(c=u(sn(i.e,0),18).c.i,a=u(sn(h.e,0),18).c.i,c==a)return r=u(v(u(sn(i.e,0),18),(W(),dt)),17).a,l=u(v(u(sn(h.e,0),18),dt),17).a,r>l?ns(n,i,h):ns(n,h,i),r<l?-1:r>l?1:0;for(m=n.c,k=0,j=m.length;k<j;++k){if(p=m[k],p==c)return ns(n,i,h),1;if(p==a)return ns(n,h,i),-1}}return i.g.c.length!=0&&h.g.c.length!=0?(f=u(v(i,(W(),aH)),10),g=u(v(h,aH),10),n.e==(lh(),HH)&&f&&g&&kt(f,dt)&&kt(g,dt)?(r=u(v(f,dt),17).a,l=u(v(g,dt),17).a,r>l?ns(n,i,h):ns(n,h,i),r<l?-1:r>l?1:0):n.b&&(P=BRn(i,h),P!=0)?(P==-1?ns(n,h,i):P==1&&ns(n,i,h),P):(s=0,d=0,kt(u(sn(i.g,0),18),dt)&&(s=u(v(u(sn(i.g,0),18),dt),17).a),kt(u(sn(h.g,0),18),dt)&&(d=u(v(u(sn(i.g,0),18),dt),17).a),f&&f==g?on(un(v(u(sn(i.g,0),18),zf)))&&!on(un(v(u(sn(h.g,0),18),zf)))?(ns(n,i,h),1):!on(un(v(u(sn(i.g,0),18),zf)))&&on(un(v(u(sn(h.g,0),18),zf)))?(ns(n,h,i),-1):(s>d?ns(n,i,h):ns(n,h,i),s<d?-1:s>d?1:0):(n.f&&(n.f._b(f)&&(s=u(n.f.xc(f),17).a),n.f._b(g)&&(d=u(n.f.xc(g),17).a)),s>d?ns(n,i,h):ns(n,h,i),s<d?-1:s>d?1:0))):i.e.c.length!=0&&h.g.c.length!=0?(ns(n,i,h),1):i.g.c.length!=0&&h.e.c.length!=0?(ns(n,h,i),-1):kt(i,(W(),dt))&&kt(h,dt)?(r=u(v(i,dt),17).a,l=u(v(h,dt),17).a,r>l?ns(n,i,h):ns(n,h,i),r<l?-1:r>l?1:0):(ns(n,h,i),-1)}function WNe(n){n.gb||(n.gb=!0,n.b=hc(n,0),Rt(n.b,18),jt(n.b,19),n.a=hc(n,1),Rt(n.a,1),jt(n.a,2),jt(n.a,3),jt(n.a,4),jt(n.a,5),n.o=hc(n,2),Rt(n.o,8),Rt(n.o,9),jt(n.o,10),jt(n.o,11),jt(n.o,12),jt(n.o,13),jt(n.o,14),jt(n.o,15),jt(n.o,16),jt(n.o,17),jt(n.o,18),jt(n.o,19),jt(n.o,20),jt(n.o,21),jt(n.o,22),jt(n.o,23),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),Dr(n.o),n.p=hc(n,3),Rt(n.p,2),Rt(n.p,3),Rt(n.p,4),Rt(n.p,5),jt(n.p,6),jt(n.p,7),Dr(n.p),Dr(n.p),n.q=hc(n,4),Rt(n.q,8),n.v=hc(n,5),jt(n.v,9),Dr(n.v),Dr(n.v),Dr(n.v),n.w=hc(n,6),Rt(n.w,2),Rt(n.w,3),Rt(n.w,4),jt(n.w,5),n.B=hc(n,7),jt(n.B,1),Dr(n.B),Dr(n.B),Dr(n.B),n.Q=hc(n,8),jt(n.Q,0),Dr(n.Q),n.R=hc(n,9),Rt(n.R,1),n.S=hc(n,10),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),Dr(n.S),n.T=hc(n,11),jt(n.T,10),jt(n.T,11),jt(n.T,12),jt(n.T,13),jt(n.T,14),Dr(n.T),Dr(n.T),n.U=hc(n,12),Rt(n.U,2),Rt(n.U,3),jt(n.U,4),jt(n.U,5),jt(n.U,6),jt(n.U,7),Dr(n.U),n.V=hc(n,13),jt(n.V,10),n.W=hc(n,14),Rt(n.W,18),Rt(n.W,19),Rt(n.W,20),jt(n.W,21),jt(n.W,22),jt(n.W,23),n.bb=hc(n,15),Rt(n.bb,10),Rt(n.bb,11),Rt(n.bb,12),Rt(n.bb,13),Rt(n.bb,14),Rt(n.bb,15),Rt(n.bb,16),jt(n.bb,17),Dr(n.bb),Dr(n.bb),n.eb=hc(n,16),Rt(n.eb,2),Rt(n.eb,3),Rt(n.eb,4),Rt(n.eb,5),Rt(n.eb,6),Rt(n.eb,7),jt(n.eb,8),jt(n.eb,9),n.ab=hc(n,17),Rt(n.ab,0),Rt(n.ab,1),n.H=hc(n,18),jt(n.H,0),jt(n.H,1),jt(n.H,2),jt(n.H,3),jt(n.H,4),jt(n.H,5),Dr(n.H),n.db=hc(n,19),jt(n.db,2),n.c=Je(n,20),n.d=Je(n,21),n.e=Je(n,22),n.f=Je(n,23),n.i=Je(n,24),n.g=Je(n,25),n.j=Je(n,26),n.k=Je(n,27),n.n=Je(n,28),n.r=Je(n,29),n.s=Je(n,30),n.t=Je(n,31),n.u=Je(n,32),n.fb=Je(n,33),n.A=Je(n,34),n.C=Je(n,35),n.D=Je(n,36),n.F=Je(n,37),n.G=Je(n,38),n.I=Je(n,39),n.J=Je(n,40),n.L=Je(n,41),n.M=Je(n,42),n.N=Je(n,43),n.O=Je(n,44),n.P=Je(n,45),n.X=Je(n,46),n.Y=Je(n,47),n.Z=Je(n,48),n.$=Je(n,49),n._=Je(n,50),n.cb=Je(n,51),n.K=Je(n,52))}function JNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te;for(s=new Mt,X=u(v(t,(cn(),Lo)),88),k=0,Ki(s,(!e.a&&(e.a=new q(Ye,e,10,11)),e.a));s.b!=0;)a=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),27),l=St(a),(x(z(l,Yh))!==x((lh(),k1))||x(z(l,Nd))===x((o1(),pv))||x(z(l,Nd))===x((o1(),gv))||on(un(z(l,l0)))||x(z(l,Rw))!==x((dd(),Aw))||x(z(l,ja))===x((ps(),p0))||x(z(l,ja))===x((ps(),Uw))||x(z(l,$d))===x((a1(),Iv))||x(z(l,$d))===x((a1(),Ov)))&&!on(un(z(a,lO)))&&ht(a,(W(),dt),Y(k++)),P=!on(un(z(a,Rd))),P&&(g=(!a.a&&(a.a=new q(Ye,a,10,11)),a.a).i!=0,m=Tye(a),p=x(z(a,Kw))===x((jl(),T1)),te=!Nf(a,(He(),$v))||CNn(Ae(z(a,$v))),D=null,te&&p&&(g||m)&&(D=$Un(a),U(D,Lo,X),kt(D,Tj)&&xjn(new zY($(B(v(D,Tj)))),D),u(z(a,xd),181).gc()!=0&&(d=D,qt(new Cn(null,(!a.c&&(a.c=new q(Qu,a,9,9)),new On(a.c,16))),new q9n(d)),Sqn(a,D))),tn=t,yn=u(ee(n.a,St(a)),10),yn&&(tn=yn.e),A=szn(n,a,tn),D&&(A.e=D,D.e=A,Ki(s,(!a.a&&(a.a=new q(Ye,a,10,11)),a.a))));for(k=0,xt(s,e,s.c.b,s.c);s.b!=0;){for(c=u(s.b==0?null:(oe(s.b!=0),Xo(s,s.a.a)),27),h=new ne((!c.b&&(c.b=new q(Vt,c,12,3)),c.b));h.e!=h.i.gc();)f=u(ue(h),74),nUn(f),(x(z(e,Yh))!==x((lh(),k1))||x(z(e,Nd))===x((o1(),pv))||x(z(e,Nd))===x((o1(),gv))||on(un(z(e,l0)))||x(z(e,Rw))!==x((dd(),Aw))||x(z(e,ja))===x((ps(),p0))||x(z(e,ja))===x((ps(),Uw))||x(z(e,$d))===x((a1(),Iv))||x(z(e,$d))===x((a1(),Ov)))&&ht(f,(W(),dt),Y(k++)),Rn=Gr(u(N((!f.b&&(f.b=new Dn(he,f,4,7)),f.b),0),84)),Bn=Gr(u(N((!f.c&&(f.c=new Dn(he,f,5,8)),f.c),0),84)),!(on(un(z(f,Rd)))||on(un(z(Rn,Rd)))||on(un(z(Bn,Rd))))&&(j=_b(f)&&on(un(z(Rn,Bw)))&&on(un(z(f,Dd))),_=c,j||Y0(Bn,Rn)?_=Rn:Y0(Rn,Bn)&&(_=Bn),tn=t,yn=u(ee(n.a,_),10),yn&&(tn=yn.e),O=ftn(n,f,_,tn),U(O,(W(),nfn),JCe(n,f,e,t)));if(p=x(z(c,Kw))===x((jl(),T1)),p)for(r=new ne((!c.a&&(c.a=new q(Ye,c,10,11)),c.a));r.e!=r.i.gc();)i=u(ue(r),27),te=!Nf(i,(He(),$v))||CNn(Ae(z(i,$v))),kn=x(z(i,Kw))===x(T1),te&&kn&&xt(s,i,s.c.b,s.c)}}function W(){W=R;var n,e;st=new lt(Wtn),nfn=new lt("coordinateOrigin"),bH=new lt("processors"),Zsn=new Lt("compoundNode",(_n(),!1)),yj=new Lt("insideConnections",!1),rfn=new lt("originalBendpoints"),cfn=new lt("originalDummyNodePosition"),ufn=new lt("originalLabelEdge"),F8=new lt("representedLabels"),B8=new lt("endLabels"),T3=new lt("endLabel.origin"),S3=new Lt("labelSide",(Co(),nE)),y2=new Lt("maxEdgeThickness",0),zf=new Lt("reversed",!1),P3=new lt(TXn),yf=new Lt("longEdgeSource",null),Es=new Lt("longEdgeTarget",null),$w=new Lt("longEdgeHasLabelDummies",!1),jj=new Lt("longEdgeBeforeLabelDummy",!1),rO=new Lt("edgeConstraint",(hd(),Q_)),s0=new lt("inLayerLayoutUnit"),Ad=new Lt("inLayerConstraint",(vl(),vj)),C3=new Lt("inLayerSuccessorConstraint",new Z),ifn=new Lt("inLayerSuccessorConstraintBetweenNonDummies",!1),Xu=new lt("portDummy"),iO=new Lt("crossingHint",Y(0)),Hc=new Lt("graphProperties",(e=u(of(rH),9),new _o(e,u(xs(e,e.length),9),0))),gc=new Lt("externalPortSide",(en(),sc)),tfn=new Lt("externalPortSize",new Ni),fH=new lt("externalPortReplacedDummies"),cO=new lt("externalPortReplacedDummy"),Dl=new Lt("externalPortConnections",(n=u(of(lr),9),new _o(n,u(xs(n,n.length),9),0))),f0=new Lt(gXn,0),Ysn=new lt("barycenterAssociates"),I3=new lt("TopSideComments"),M3=new lt("BottomSideComments"),tO=new lt("CommentConnectionPort"),lH=new Lt("inputCollect",!1),dH=new Lt("outputCollect",!1),kj=new Lt("cyclic",!1),efn=new lt("crossHierarchyMap"),gH=new lt("targetOffset"),new Lt("splineLabelSize",new Ni),E2=new lt("spacings"),uO=new Lt("partitionConstraint",!1),o0=new lt("breakingPoint.info"),ffn=new lt("splines.survivingEdge"),Ld=new lt("splines.route.start"),M2=new lt("splines.edgeChain"),sfn=new lt("originalPortConstraints"),h0=new lt("selfLoopHolder"),jv=new lt("splines.nsPortY"),dt=new lt("modelOrder"),aH=new lt("longEdgeTargetNode"),ka=new Lt(QXn,!1),j2=new Lt(QXn,!1),hH=new lt("layerConstraints.hiddenNodes"),ofn=new lt("layerConstraints.opposidePort"),wH=new lt("targetNode.modelOrder")}function QNe(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m;for(d=ge(n.b,0);d.b!=d.d.c;)if(a=u(be(d),40),!Sn(a.c,OP))for(c=u(Wr(new Cn(null,new On(uMe(a,n),16)),qu(new ju,new yu,new Eu,S(C(xr,1),G,108,0,[(Gu(),Yr)]))),15),e==(ci(),Kr)||e==Xr?c.jd(new S4n):c.jd(new P4n),m=c.gc(),r=0;r<m;r++)s=m==1?.5:(1+r)/(m+1),e==Kr?(l=$(B(v(a,(pt(),Js)))),a.e.a+a.f.a+i<l?ir(u(c.Xb(r),65).a,new V(l+t,a.e.b+a.f.b*s)):u(c.Xb(r),65).a.b>0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(h-p)/(y.Math.abs(f-g)/40)>50&&(p>h?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a+i/5.3,a.e.b+a.f.b*s-i/2)):ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a+i/5.3,a.e.b+a.f.b*s+i/2)))),ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a,a.e.b+a.f.b*s))):e==Xr?(l=$(B(v(a,(pt(),jf)))),a.e.a-i>l?ir(u(c.Xb(r),65).a,new V(l-t,a.e.b+a.f.b*s)):u(c.Xb(r),65).a.b>0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(h-p)/(y.Math.abs(f-g)/40)>50&&(p>h?ir(u(c.Xb(r),65).a,new V(a.e.a-i/5.3,a.e.b+a.f.b*s-i/2)):ir(u(c.Xb(r),65).a,new V(a.e.a-i/5.3,a.e.b+a.f.b*s+i/2)))),ir(u(c.Xb(r),65).a,new V(a.e.a,a.e.b+a.f.b*s))):e==us?(l=$(B(v(a,(pt(),Js)))),a.e.b+a.f.b+i<l?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,l+t)):u(c.Xb(r),65).a.b>0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(f-g)/(y.Math.abs(h-p)/40)>50&&(g>f?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s-i/2,a.e.b+i/5.3+a.f.b)):ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s+i/2,a.e.b+i/5.3+a.f.b)))),ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,a.e.b+a.f.b))):(l=$(B(v(a,(pt(),jf)))),TRn(u(c.Xb(r),65),n)?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,u($s(u(c.Xb(r),65).a),8).b)):a.e.b-i>l?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,l-t)):u(c.Xb(r),65).a.b>0&&(f=u($s(u(c.Xb(r),65).a),8).a,g=a.e.a+a.f.a/2,h=u($s(u(c.Xb(r),65).a),8).b,p=a.e.b+a.f.b/2,i>0&&y.Math.abs(f-g)/(y.Math.abs(h-p)/40)>50&&(g>f?ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s-i/2,a.e.b-i/5.3)):ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s+i/2,a.e.b-i/5.3)))),ir(u(c.Xb(r),65).a,new V(a.e.a+a.f.a*s,a.e.b)))}function He(){He=R;var n,e;$v=new lt(xVn),q2=new lt(RVn),gan=(Bh(),Xq),Pue=new Tn(irn,gan),x2=new Tn(l3,null),Iue=new lt(gcn),man=(wd(),yt(Jq,S(C(Qq,1),G,298,0,[Wq]))),Gj=new Tn(TP,man),zj=new Tn(Uy,(_n(),!1)),van=(ci(),Jf),_d=new Tn(xB,van),jan=(El(),hU),yan=new Tn(qy,jan),Lue=new Tn(bcn,!1),Tan=(jl(),uA),B2=new Tn(MP,Tan),Dan=new fb(12),M1=new Tn(Wb,Dan),Vj=new Tn(i8,!1),eU=new Tn(SP,!1),Wj=new Tn(r8,!1),Ban=(Ai(),Ia),v9=new Tn(tB,Ban),D3=new lt(CP),Jj=new lt(Dy),sU=new lt(uP),fU=new lt(t8),Can=new Tu,k0=new Tn(brn,Can),Aue=new Tn(prn,!1),Nue=new Tn(mrn,!1),San=new Qv,xv=new Tn(krn,San),tA=new Tn(ern,!1),Rue=new Tn(KVn,1),K2=new lt(BVn),R2=new lt(FVn),k9=new Tn($y,!1),new Tn(_Vn,!0),Y(0),new Tn(HVn,Y(100)),new Tn(qVn,!1),Y(0),new Tn(UVn,Y(4e3)),Y(0),new Tn(GVn,Y(400)),new Tn(zVn,!1),new Tn(XVn,!1),new Tn(VVn,!0),new Tn(WVn,!1),pan=(qC(),bU),Oue=new Tn(wcn,pan),Kue=new Tn(Uin,10),Bue=new Tn(Gin,10),qan=new Tn(WK,20),Fue=new Tn(zin,10),Uan=new Tn(eB,2),Gan=new Tn($B,10),zan=new Tn(Xin,0),iA=new Tn(Jin,5),Xan=new Tn(Vin,1),Van=new Tn(Win,1),qd=new Tn(yw,20),_ue=new Tn(Qin,10),Qan=new Tn(Yin,10),$3=new lt(Zin),Jan=new tCn,Wan=new Tn(yrn,Jan),$ue=new lt(KB),$an=!1,Due=new Tn(RB,$an),Ian=new fb(5),Pan=new Tn(urn,Ian),Oan=(lw(),e=u(of(yr),9),new _o(e,u(xs(e,e.length),9),0)),F2=new Tn(Xm,Oan),Ran=(Kg(),Pa),xan=new Tn(frn,Ran),iU=new lt(hrn),rU=new lt(lrn),cU=new lt(arn),tU=new lt(drn),Aan=(n=u(of(P9),9),new _o(n,u(xs(n,n.length),9),0)),Hd=new Tn(r2,Aan),Nan=jn((io(),_v)),Ca=new Tn(a3,Nan),Lan=new V(0,0),_2=new Tn(d3,Lan),Vw=new Tn(zm,!1),kan=($f(),Rv),Zq=new Tn(wrn,kan),Yq=new Tn(oP,!1),Y(1),new Tn(JVn,null),Kan=new lt(vrn),uU=new lt(grn),Han=(en(),sc),H2=new Tn(trn,Han),oo=new lt(nrn),Fan=(zu(),jn(Oa)),Ww=new Tn(Vm,Fan),oU=new Tn(orn,!1),_an=new Tn(srn,!0),cA=new Tn(xy,1),Yan=new Tn(pcn,null),Qj=new Tn(Ry,150),rA=new Tn(Ky,1.414),x3=new Tn(Jb,null),Hue=new Tn(mcn,1),Xj=new Tn(rrn,!1),nU=new Tn(crn,!1),Ean=new Tn(JK,1),Man=(pS(),aU),new Tn(QVn,Man),xue=!0,Uue=(Gp(),Yw),Gue=Yw,que=Yw}function tr(){tr=R,Qon=new ei("DIRECTION_PREPROCESSOR",0),Von=new ei("COMMENT_PREPROCESSOR",1),b2=new ei("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),N_=new ei("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),gsn=new ei("PARTITION_PREPROCESSOR",4),OI=new ei("LABEL_DUMMY_INSERTER",5),FI=new ei("SELF_LOOP_PREPROCESSOR",6),Nw=new ei("LAYER_CONSTRAINT_PREPROCESSOR",7),bsn=new ei("PARTITION_MIDPROCESSOR",8),csn=new ei("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),asn=new ei("NODE_PROMOTION",10),Lw=new ei("LAYER_CONSTRAINT_POSTPROCESSOR",11),wsn=new ei("PARTITION_POSTPROCESSOR",12),tsn=new ei("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),psn=new ei("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),Hon=new ei("BREAKING_POINT_INSERTER",15),DI=new ei("LONG_EDGE_SPLITTER",16),D_=new ei("PORT_SIDE_PROCESSOR",17),PI=new ei("INVERTED_PORT_PROCESSOR",18),RI=new ei("PORT_LIST_SORTER",19),vsn=new ei("SORT_BY_INPUT_ORDER_OF_MODEL",20),xI=new ei("NORTH_SOUTH_PORT_PREPROCESSOR",21),qon=new ei("BREAKING_POINT_PROCESSOR",22),dsn=new ei(qXn,23),ksn=new ei(UXn,24),KI=new ei("SELF_LOOP_PORT_RESTORER",25),msn=new ei("SINGLE_EDGE_GRAPH_WRAPPER",26),II=new ei("IN_LAYER_CONSTRAINT_PROCESSOR",27),Zon=new ei("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),hsn=new ei("LABEL_AND_NODE_SIZE_PROCESSOR",29),fsn=new ei("INNERMOST_NODE_MARGIN_CALCULATOR",30),_I=new ei("SELF_LOOP_ROUTER",31),zon=new ei("COMMENT_NODE_MARGIN_CALCULATOR",32),SI=new ei("END_LABEL_PREPROCESSOR",33),LI=new ei("LABEL_DUMMY_SWITCHER",34),Gon=new ei("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),hv=new ei("LABEL_SIDE_SELECTOR",36),osn=new ei("HYPEREDGE_DUMMY_MERGER",37),isn=new ei("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),lsn=new ei("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),N8=new ei("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),Won=new ei("CONSTRAINTS_POSTPROCESSOR",41),Xon=new ei("COMMENT_POSTPROCESSOR",42),ssn=new ei("HYPERNODE_PROCESSOR",43),rsn=new ei("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),NI=new ei("LONG_EDGE_JOINER",45),BI=new ei("SELF_LOOP_POSTPROCESSOR",46),Uon=new ei("BREAKING_POINT_REMOVER",47),$I=new ei("NORTH_SOUTH_PORT_POSTPROCESSOR",48),usn=new ei("HORIZONTAL_COMPACTOR",49),AI=new ei("LABEL_DUMMY_REMOVER",50),nsn=new ei("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),Yon=new ei("END_LABEL_SORTER",52),bj=new ei("REVERSED_EDGE_RESTORER",53),CI=new ei("END_LABEL_POSTPROCESSOR",54),esn=new ei("HIERARCHICAL_NODE_RESIZER",55),Jon=new ei("DIRECTION_POSTPROCESSOR",56)}function htn(){htn=R,kfn=(wk(),WI),iee=new Tn(cin,kfn),wee=new Tn(uin,(_n(),!1)),Cfn=(FT(),sH),kee=new Tn(lP,Cfn),$ee=new Tn(oin,!1),xee=new Tn(sin,!0),Ine=new Tn(fin,!1),Dfn=(dk(),qH),Qee=new Tn(hin,Dfn),Y(1),cte=new Tn(lin,Y(7)),ute=new Tn(ain,!1),gee=new Tn(din,!1),vfn=(o1(),W_),tee=new Tn(fB,vfn),Ifn=(a1(),$H),Dee=new Tn(Hy,Ifn),Sfn=(Yo(),Ej),Cee=new Tn(bin,Sfn),Y(-1),Tee=new Tn(win,null),Y(-1),See=new Tn(gin,Y(-1)),Y(-1),Pee=new Tn(hB,Y(4)),Y(-1),Oee=new Tn(lB,Y(2)),Pfn=(ps(),SO),Nee=new Tn(aB,Pfn),Y(0),Lee=new Tn(dB,Y(0)),Eee=new Tn(bB,Y(et)),mfn=(c5(),$8),eee=new Tn(o8,mfn),Fne=new Tn(pin,!1),Xne=new Tn(wB,.1),Zne=new Tn(gB,!1),Wne=new Tn(min,null),Jne=new Tn(vin,null),Y(-1),Qne=new Tn(kin,null),Y(-1),Yne=new Tn(yin,Y(-1)),Y(0),_ne=new Tn(jin,Y(40)),pfn=(Z4(),uH),Gne=new Tn(pB,pfn),gfn=mj,Hne=new Tn(aP,gfn),Nfn=(T5(),W8),Jee=new Tn(c2,Nfn),_ee=new lt(dP),Ofn=(sk(),QI),Ree=new Tn(mB,Ofn),Afn=(Vk(),YI),Bee=new Tn(vB,Afn),Uee=new Tn(kB,.3),zee=new lt(yB),Lfn=(cw(),CO),Xee=new Tn(jB,Lfn),Efn=(PC(),GH),see=new Tn(Ein,Efn),Mfn=(a5(),XH),fee=new Tn(Min,Mfn),Tfn=(om(),Y8),hee=new Tn(bP,Tfn),aee=new Tn(wP,.2),uee=new Tn(EB,2),ete=new Tn(Tin,null),ite=new Tn(Cin,10),tte=new Tn(Sin,10),rte=new Tn(Pin,20),Y(0),Yee=new Tn(Iin,Y(0)),Y(0),Zee=new Tn(Oin,Y(0)),Y(0),nte=new Tn(Ain,Y(0)),One=new Tn(MB,!1),afn=(jm(),x8),Lne=new Tn(Lin,afn),lfn=(QT(),X_),Ane=new Tn(Nin,lfn),mee=new Tn(gP,!1),Y(0),pee=new Tn(TB,Y(16)),Y(0),vee=new Tn(CB,Y(5)),Rfn=(LC(),JH),Cte=new Tn(Al,Rfn),ote=new Tn(pP,10),hte=new Tn(mP,1),xfn=(bC(),VI),pte=new Tn(s8,xfn),dte=new lt(SB),$fn=Y(1),Y(0),wte=new Tn(PB,$fn),Kfn=(dC(),WH),Ote=new Tn(vP,Kfn),Ste=new lt(kP),jte=new Tn(yP,!0),kte=new Tn(jP,2),Mte=new Tn(IB,!0),jfn=(vS(),JI),cee=new Tn(Din,jfn),yfn=(Yp(),bv),ree=new Tn($in,yfn),wfn=(lh(),k1),Bne=new Tn(EP,wfn),Kne=new Tn(xin,!1),Rne=new Tn(Rin,!1),dfn=(dd(),Aw),Nne=new Tn(OB,dfn),bfn=(w5(),xH),xne=new Tn(Kin,bfn),Dne=new Tn(AB,0),$ne=new Tn(LB,0),jee=J_,yee=pj,Iee=MO,Aee=MO,Mee=DH,Vne=(jl(),T1),nee=$8,zne=$8,qne=$8,Une=T1,Hee=J8,qee=W8,Kee=W8,Fee=W8,Gee=FH,Wee=J8,Vee=J8,lee=(El(),R3),dee=R3,bee=Y8,oee=Yj,ste=Av,fte=Gw,lte=Av,ate=Gw,mte=Av,vte=Gw,bte=V_,gte=VI,Ate=Av,Lte=Gw,Pte=Av,Ite=Gw,Ete=Gw,yte=Gw,Tte=Gw}function YNe(n,e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt,Yu,Br,Ro,W2,L1,rf,cf,Xd,q3,Ka,U3,Oh,cl,T0,G3,J2,Ah,Vd,Bl,Lse,ybn,C0,_9,AU,z3,H9,ug,q9,LU,Nse;for(ybn=0,xe=e,Br=0,L1=xe.length;Br<L1;++Br)for(Bn=xe[Br],cl=new M(Bn.j);cl.a<cl.c.c.length;){for(Oh=u(E(cl),12),G3=0,f=new M(Oh.g);f.a<f.c.c.length;)s=u(E(f),18),Bn.c!=s.d.i.c&&++G3;G3>0&&(n.a[Oh.p]=ybn++)}for(H9=0,Nt=t,Ro=0,rf=Nt.length;Ro<rf;++Ro){for(Bn=Nt[Ro],cf=0,cl=new M(Bn.j);cl.a<cl.c.c.length&&(Oh=u(E(cl),12),Oh.j==(en(),Xn));)for(f=new M(Oh.e);f.a<f.c.c.length;)if(s=u(E(f),18),Bn.c!=s.c.i.c){++cf;break}for(q3=0,J2=new xi(Bn.j,Bn.j.c.length);J2.b>0;){for(Oh=(oe(J2.b>0),u(J2.a.Xb(J2.c=--J2.b),12)),G3=0,f=new M(Oh.e);f.a<f.c.c.length;)s=u(E(f),18),Bn.c!=s.c.i.c&&++G3;G3>0&&(Oh.j==(en(),Xn)?(n.a[Oh.p]=H9,++H9):(n.a[Oh.p]=H9+cf+q3,++q3))}H9+=q3}for(T0=new de,m=new rh,te=e,Yu=0,W2=te.length;Yu<W2;++Yu)for(Bn=te[Yu],AU=new M(Bn.j);AU.a<AU.c.c.length;)for(_9=u(E(AU),12),f=new M(_9.g);f.a<f.c.c.length;)if(s=u(E(f),18),q9=s.d,Bn.c!=q9.i.c)if(C0=u(Fr(wr(T0.f,_9)),478),ug=u(Fr(wr(T0.f,q9)),478),!C0&&!ug)p=new GSn,m.a.zc(p,m),nn(p.a,s),nn(p.d,_9),Vc(T0.f,_9,p),nn(p.d,q9),Vc(T0.f,q9,p);else if(!C0)nn(ug.a,s),nn(ug.d,_9),Vc(T0.f,_9,ug);else if(!ug)nn(C0.a,s),nn(C0.d,q9),Vc(T0.f,q9,C0);else if(C0==ug)nn(C0.a,s);else{for(nn(C0.a,s),U3=new M(ug.d);U3.a<U3.c.c.length;)Ka=u(E(U3),12),Vc(T0.f,Ka,C0);hi(C0.a,ug.a),hi(C0.d,ug.d),m.a.Bc(ug)!=null}for(k=u(S5(m,F(jDe,{3:1,4:1,5:1,2045:1},478,m.a.gc(),0,1)),2045),Rn=e[0].c,Lse=t[0].c,a=k,d=0,g=a.length;d<g;++d)for(l=a[d],l.e=ybn,l.f=H9,cl=new M(l.d);cl.a<cl.c.c.length;)Oh=u(E(cl),12),Ah=n.a[Oh.p],Oh.i.c==Rn?(Ah<l.e&&(l.e=Ah),Ah>l.b&&(l.b=Ah)):Oh.i.c==Lse&&(Ah<l.f&&(l.f=Ah),Ah>l.c&&(l.c=Ah));for(R4(k,0,k.length,null),z3=F(ye,_e,28,k.length,15,1),i=F(ye,_e,28,H9+1,15,1),P=0;P<k.length;P++)z3[P]=k[P].f,i[z3[P]]=1;for(c=0,O=0;O<i.length;O++)i[O]==1?i[O]=c:--c;for(Vd=0,A=0;A<z3.length;A++)z3[A]+=i[z3[A]],Vd=y.Math.max(Vd,z3[A]+1);for(h=1;h<Vd;)h*=2;for(Nse=2*h-1,h-=1,LU=F(ye,_e,28,Nse,15,1),r=0,yn=0;yn<z3.length;yn++)for(tn=z3[yn]+h,++LU[tn];tn>0;)tn%2>0&&(r+=LU[tn+1]),tn=(tn-1)/2|0,++LU[tn];for(kn=F(Oie,Kn,374,k.length*2,0,1),D=0;D<k.length;D++)kn[2*D]=new MT(k[D],k[D].e,k[D].b,(Z6(),e9)),kn[2*D+1]=new MT(k[D],k[D].b,k[D].e,n9);for(R4(kn,0,kn.length,null),Xd=0,_=0;_<kn.length;_++)switch(kn[_].d.g){case 0:++Xd;break;case 1:--Xd,r+=Xd}for(Bl=F(Oie,Kn,374,k.length*2,0,1),X=0;X<k.length;X++)Bl[2*X]=new MT(k[X],k[X].f,k[X].c,(Z6(),e9)),Bl[2*X+1]=new MT(k[X],k[X].c,k[X].f,n9);for(R4(Bl,0,Bl.length,null),Xd=0,j=0;j<Bl.length;j++)switch(Bl[j].d.g){case 0:++Xd;break;case 1:--Xd,r+=Xd}return r}function nt(){nt=R,F9=new Wd(7),dbn=new Dh(8,94),new Dh(8,64),bbn=new Dh(8,36),Ese=new Dh(8,65),Mse=new Dh(8,122),Tse=new Dh(8,90),Sse=new Dh(8,98),jse=new Dh(8,66),Cse=new Dh(8,60),Pse=new Dh(8,62),abn=new Wd(11),IA=new yo(4),xc(IA,48,57),Gv=new yo(4),xc(Gv,48,57),xc(Gv,65,90),xc(Gv,95,95),xc(Gv,97,122),H3=new yo(4),xc(H3,9,9),xc(H3,10,10),xc(H3,12,12),xc(H3,13,13),xc(H3,32,32),wbn=bw(IA),pbn=bw(Gv),gbn=bw(H3),Uv=new de,B9=new de,yse=S(C(fn,1),J,2,6,["Cn","Lu","Ll","Lt","Lm","Lo","Mn","Me","Mc","Nd","Nl","No","Zs","Zl","Zp","Cc","Cf",null,"Co","Cs","Pd","Ps","Pe","Pc","Po","Sm","Sc","Sk","So","Pi","Pf","L","M","N","Z","C","P","S"]),hbn=S(C(fn,1),J,2,6,["Basic Latin","Latin-1 Supplement","Latin Extended-A","Latin Extended-B","IPA Extensions","Spacing Modifier Letters","Combining Diacritical Marks","Greek","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul Jamo","Ethiopic","Cherokee","Unified Canadian Aboriginal Syllabics","Ogham","Runic","Khmer","Mongolian","Latin Extended Additional","Greek Extended","General Punctuation","Superscripts and Subscripts","Currency Symbols","Combining Marks for Symbols","Letterlike Symbols","Number Forms","Arrows","Mathematical Operators","Miscellaneous Technical","Control Pictures","Optical Character Recognition","Enclosed Alphanumerics","Box Drawing","Block Elements","Geometric Shapes","Miscellaneous Symbols","Dingbats","Braille Patterns","CJK Radicals Supplement","Kangxi Radicals","Ideographic Description Characters","CJK Symbols and Punctuation","Hiragana","Katakana","Bopomofo","Hangul Compatibility Jamo","Kanbun","Bopomofo Extended","Enclosed CJK Letters and Months","CJK Compatibility","CJK Unified Ideographs Extension A","CJK Unified Ideographs","Yi Syllables","Yi Radicals","Hangul Syllables",WJn,"CJK Compatibility Ideographs","Alphabetic Presentation Forms","Arabic Presentation Forms-A","Combining Half Marks","CJK Compatibility Forms","Small Form Variants","Arabic Presentation Forms-B","Specials","Halfwidth and Fullwidth Forms","Old Italic","Gothic","Deseret","Byzantine Musical Symbols","Musical Symbols","Mathematical Alphanumeric Symbols","CJK Unified Ideographs Extension B","CJK Compatibility Ideographs Supplement","Tags"]),lbn=S(C(ye,1),_e,28,15,[66304,66351,66352,66383,66560,66639,118784,119039,119040,119295,119808,120831,131072,173782,194560,195103,917504,917631])}function VS(){VS=R,pYn=new Vo("OUT_T_L",0,(Uu(),Th),(bu(),Xs),(wf(),bc),bc,S(C(js,1),Kn,21,0,[yt((lw(),Zs),S(C(yr,1),G,95,0,[nf,Qs]))])),gYn=new Vo("OUT_T_C",1,pa,Xs,bc,Wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[nf,xl])),yt(Zs,S(C(yr,1),G,95,0,[nf,xl,Ms]))])),mYn=new Vo("OUT_T_R",2,zs,Xs,bc,wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[nf,Ys]))])),sYn=new Vo("OUT_B_L",3,Th,kf,wc,bc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ts,Qs]))])),oYn=new Vo("OUT_B_C",4,pa,kf,wc,Wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ts,xl])),yt(Zs,S(C(yr,1),G,95,0,[Ts,xl,Ms]))])),fYn=new Vo("OUT_B_R",5,zs,kf,wc,wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ts,Ys]))])),aYn=new Vo("OUT_L_T",6,zs,kf,bc,bc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Qs,nf,Ms]))])),lYn=new Vo("OUT_L_C",7,zs,ma,Wc,bc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Qs,el])),yt(Zs,S(C(yr,1),G,95,0,[Qs,el,Ms]))])),hYn=new Vo("OUT_L_B",8,zs,Xs,wc,bc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Qs,Ts,Ms]))])),wYn=new Vo("OUT_R_T",9,Th,kf,bc,wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ys,nf,Ms]))])),bYn=new Vo("OUT_R_C",10,Th,ma,Wc,wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ys,el])),yt(Zs,S(C(yr,1),G,95,0,[Ys,el,Ms]))])),dYn=new Vo("OUT_R_B",11,Th,Xs,wc,wc,S(C(js,1),Kn,21,0,[yt(Zs,S(C(yr,1),G,95,0,[Ys,Ts,Ms]))])),cYn=new Vo("IN_T_L",12,Th,kf,bc,bc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[nf,Qs])),yt(No,S(C(yr,1),G,95,0,[nf,Qs,Ms]))])),rYn=new Vo("IN_T_C",13,pa,kf,bc,Wc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[nf,xl])),yt(No,S(C(yr,1),G,95,0,[nf,xl,Ms]))])),uYn=new Vo("IN_T_R",14,zs,kf,bc,wc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[nf,Ys])),yt(No,S(C(yr,1),G,95,0,[nf,Ys,Ms]))])),tYn=new Vo("IN_C_L",15,Th,ma,Wc,bc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[el,Qs])),yt(No,S(C(yr,1),G,95,0,[el,Qs,Ms]))])),eYn=new Vo("IN_C_C",16,pa,ma,Wc,Wc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[el,xl])),yt(No,S(C(yr,1),G,95,0,[el,xl,Ms]))])),iYn=new Vo("IN_C_R",17,zs,ma,Wc,wc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[el,Ys])),yt(No,S(C(yr,1),G,95,0,[el,Ys,Ms]))])),ZQn=new Vo("IN_B_L",18,Th,Xs,wc,bc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[Ts,Qs])),yt(No,S(C(yr,1),G,95,0,[Ts,Qs,Ms]))])),YQn=new Vo("IN_B_C",19,pa,Xs,wc,Wc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[Ts,xl])),yt(No,S(C(yr,1),G,95,0,[Ts,xl,Ms]))])),nYn=new Vo("IN_B_R",20,zs,Xs,wc,wc,S(C(js,1),Kn,21,0,[yt(No,S(C(yr,1),G,95,0,[Ts,Ys])),yt(No,S(C(yr,1),G,95,0,[Ts,Ys,Ms]))])),h_=new Vo(n8,21,null,null,null,null,S(C(js,1),Kn,21,0,[]))}function An(){An=R,tg=(G1(),Hn).b,u(N(H(Hn.b),0),35),u(N(H(Hn.b),1),19),S1=Hn.a,u(N(H(Hn.a),0),35),u(N(H(Hn.a),1),19),u(N(H(Hn.a),2),19),u(N(H(Hn.a),3),19),u(N(H(Hn.a),4),19),Na=Hn.o,u(N(H(Hn.o),0),35),u(N(H(Hn.o),1),35),_oe=u(N(H(Hn.o),2),19),u(N(H(Hn.o),3),19),u(N(H(Hn.o),4),19),u(N(H(Hn.o),5),19),u(N(H(Hn.o),6),19),u(N(H(Hn.o),7),19),u(N(H(Hn.o),8),19),u(N(H(Hn.o),9),19),u(N(H(Hn.o),10),19),u(N(H(Hn.o),11),19),u(N(H(Hn.o),12),19),u(N(H(Hn.o),13),19),u(N(H(Hn.o),14),19),u(N(H(Hn.o),15),19),u(N(ft(Hn.o),0),62),u(N(ft(Hn.o),1),62),u(N(ft(Hn.o),2),62),u(N(ft(Hn.o),3),62),u(N(ft(Hn.o),4),62),u(N(ft(Hn.o),5),62),u(N(ft(Hn.o),6),62),u(N(ft(Hn.o),7),62),u(N(ft(Hn.o),8),62),u(N(ft(Hn.o),9),62),Foe=Hn.p,u(N(H(Hn.p),0),35),u(N(H(Hn.p),1),35),u(N(H(Hn.p),2),35),u(N(H(Hn.p),3),35),u(N(H(Hn.p),4),19),u(N(H(Hn.p),5),19),u(N(ft(Hn.p),0),62),u(N(ft(Hn.p),1),62),Hoe=Hn.q,u(N(H(Hn.q),0),35),Da=Hn.v,u(N(H(Hn.v),0),19),u(N(ft(Hn.v),0),62),u(N(ft(Hn.v),1),62),u(N(ft(Hn.v),2),62),P1=Hn.w,u(N(H(Hn.w),0),35),u(N(H(Hn.w),1),35),u(N(H(Hn.w),2),35),u(N(H(Hn.w),3),19),$a=Hn.B,u(N(H(Hn.B),0),19),u(N(ft(Hn.B),0),62),u(N(ft(Hn.B),1),62),u(N(ft(Hn.B),2),62),qoe=Hn.Q,u(N(H(Hn.Q),0),19),u(N(ft(Hn.Q),0),62),Uoe=Hn.R,u(N(H(Hn.R),0),35),Os=Hn.S,u(N(ft(Hn.S),0),62),u(N(ft(Hn.S),1),62),u(N(ft(Hn.S),2),62),u(N(ft(Hn.S),3),62),u(N(ft(Hn.S),4),62),u(N(ft(Hn.S),5),62),u(N(ft(Hn.S),6),62),u(N(ft(Hn.S),7),62),u(N(ft(Hn.S),8),62),u(N(ft(Hn.S),9),62),u(N(ft(Hn.S),10),62),u(N(ft(Hn.S),11),62),u(N(ft(Hn.S),12),62),u(N(ft(Hn.S),13),62),u(N(ft(Hn.S),14),62),I1=Hn.T,u(N(H(Hn.T),0),19),u(N(H(Hn.T),2),19),Goe=u(N(H(Hn.T),3),19),u(N(H(Hn.T),4),19),u(N(ft(Hn.T),0),62),u(N(ft(Hn.T),1),62),u(N(H(Hn.T),1),19),O1=Hn.U,u(N(H(Hn.U),0),35),u(N(H(Hn.U),1),35),u(N(H(Hn.U),2),19),u(N(H(Hn.U),3),19),u(N(H(Hn.U),4),19),u(N(H(Hn.U),5),19),u(N(ft(Hn.U),0),62),ig=Hn.V,u(N(H(Hn.V),0),19),U2=Hn.W,u(N(H(Hn.W),0),35),u(N(H(Hn.W),1),35),u(N(H(Hn.W),2),35),u(N(H(Hn.W),3),19),u(N(H(Hn.W),4),19),u(N(H(Hn.W),5),19),zoe=Hn.bb,u(N(H(Hn.bb),0),35),u(N(H(Hn.bb),1),35),u(N(H(Hn.bb),2),35),u(N(H(Hn.bb),3),35),u(N(H(Hn.bb),4),35),u(N(H(Hn.bb),5),35),u(N(H(Hn.bb),6),35),u(N(H(Hn.bb),7),19),u(N(ft(Hn.bb),0),62),u(N(ft(Hn.bb),1),62),Xoe=Hn.eb,u(N(H(Hn.eb),0),35),u(N(H(Hn.eb),1),35),u(N(H(Hn.eb),2),35),u(N(H(Hn.eb),3),35),u(N(H(Hn.eb),4),35),u(N(H(Hn.eb),5),35),u(N(H(Hn.eb),6),19),u(N(H(Hn.eb),7),19),ar=Hn.ab,u(N(H(Hn.ab),0),35),u(N(H(Hn.ab),1),35),j0=Hn.H,u(N(H(Hn.H),0),19),u(N(H(Hn.H),1),19),u(N(H(Hn.H),2),19),u(N(H(Hn.H),3),19),u(N(H(Hn.H),4),19),u(N(H(Hn.H),5),19),u(N(ft(Hn.H),0),62),E0=Hn.db,u(N(H(Hn.db),0),19),Zf=Hn.M}function ZNe(n){var e;n.O||(n.O=!0,zc(n,"type"),MC(n,"ecore.xml.type"),TC(n,Pd),e=u(Tm((B1(),Is),Pd),2044),ve(Hr(n.fb),n.b),fc(n.b,bE,"AnyType",!1,!1,!0),Ut(u(N(H(n.b),0),35),n.wb.D,Jy,null,0,-1,bE,!1,!1,!0,!1,!1,!1),Ut(u(N(H(n.b),1),35),n.wb.D,"any",null,0,-1,bE,!0,!0,!0,!1,!1,!0),Ut(u(N(H(n.b),2),35),n.wb.D,"anyAttribute",null,0,-1,bE,!1,!1,!0,!1,!1,!1),fc(n.bb,SA,OJn,!1,!1,!0),Ut(u(N(H(n.bb),0),35),n.gb,"data",null,0,1,SA,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.bb),1),35),n.gb,Dcn,null,1,1,SA,!1,!1,!0,!1,!0,!1),fc(n.fb,wE,AJn,!1,!1,!0),Ut(u(N(H(n.fb),0),35),e.gb,"rawValue",null,0,1,wE,!0,!0,!0,!1,!0,!0),Ut(u(N(H(n.fb),1),35),e.a,g8,null,0,1,wE,!0,!0,!0,!1,!0,!0),Et(u(N(H(n.fb),2),19),n.wb.q,null,"instanceType",1,1,wE,!1,!1,!0,!1,!1,!1,!1),fc(n.qb,ubn,LJn,!1,!1,!0),Ut(u(N(H(n.qb),0),35),n.wb.D,Jy,null,0,-1,null,!1,!1,!0,!1,!1,!1),Et(u(N(H(n.qb),1),19),n.wb.ab,null,"xMLNSPrefixMap",0,-1,null,!0,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.qb),2),19),n.wb.ab,null,"xSISchemaLocation",0,-1,null,!0,!1,!0,!0,!1,!1,!1),Ut(u(N(H(n.qb),3),35),n.gb,"cDATA",null,0,-2,null,!0,!0,!0,!1,!1,!0),Ut(u(N(H(n.qb),4),35),n.gb,"comment",null,0,-2,null,!0,!0,!0,!1,!1,!0),Et(u(N(H(n.qb),5),19),n.bb,null,GJn,0,-2,null,!0,!0,!0,!0,!1,!1,!0),Ut(u(N(H(n.qb),6),35),n.gb,wF,null,0,-2,null,!0,!0,!0,!1,!1,!0),We(n.a,ki,"AnySimpleType",!0),We(n.c,fn,"AnyURI",!0),We(n.d,C(Ru,1),"Base64Binary",!0),We(n.e,so,"Boolean",!0),We(n.f,Gt,"BooleanObject",!0),We(n.g,Ru,"Byte",!0),We(n.i,p3,"ByteObject",!0),We(n.j,fn,"Date",!0),We(n.k,fn,"DateTime",!0),We(n.n,JF,"Decimal",!0),We(n.o,Ii,"Double",!0),We(n.p,si,"DoubleObject",!0),We(n.q,fn,"Duration",!0),We(n.s,rs,"ENTITIES",!0),We(n.r,rs,"ENTITIESBase",!0),We(n.t,fn,Jcn,!0),We(n.u,cg,"Float",!0),We(n.v,sv,"FloatObject",!0),We(n.w,fn,"GDay",!0),We(n.B,fn,"GMonth",!0),We(n.A,fn,"GMonthDay",!0),We(n.C,fn,"GYear",!0),We(n.D,fn,"GYearMonth",!0),We(n.F,C(Ru,1),"HexBinary",!0),We(n.G,fn,"ID",!0),We(n.H,fn,"IDREF",!0),We(n.J,rs,"IDREFS",!0),We(n.I,rs,"IDREFSBase",!0),We(n.K,ye,"Int",!0),We(n.M,l2,"Integer",!0),We(n.L,Gi,"IntObject",!0),We(n.P,fn,"Language",!0),We(n.Q,Ra,"Long",!0),We(n.R,t0,"LongObject",!0),We(n.S,fn,"Name",!0),We(n.T,fn,tI,!0),We(n.U,l2,"NegativeInteger",!0),We(n.V,fn,Zcn,!0),We(n.X,rs,"NMTOKENS",!0),We(n.W,rs,"NMTOKENSBase",!0),We(n.Y,l2,"NonNegativeInteger",!0),We(n.Z,l2,"NonPositiveInteger",!0),We(n.$,fn,"NormalizedString",!0),We(n._,fn,"NOTATION",!0),We(n.ab,fn,"PositiveInteger",!0),We(n.cb,fn,"QName",!0),We(n.db,V2,"Short",!0),We(n.eb,i0,"ShortObject",!0),We(n.gb,fn,ptn,!0),We(n.hb,fn,"Time",!0),We(n.ib,fn,"Token",!0),We(n.jb,V2,"UnsignedByte",!0),We(n.kb,i0,"UnsignedByteObject",!0),We(n.lb,Ra,"UnsignedInt",!0),We(n.mb,t0,"UnsignedIntObject",!0),We(n.nb,l2,"UnsignedLong",!0),We(n.ob,ye,"UnsignedShort",!0),We(n.pb,Gi,"UnsignedShortObject",!0),gY(n,Pd),nDe(n))}function ltn(n,e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn,Bn,te,xe,Nt,Yu,Br,Ro,W2,L1,rf,cf,Xd,q3,Ka,U3,Oh,cl,T0,G3,J2,Ah,Vd,Bl;if(i.$g()||on(un(z(e,(He(),tA)))))return Ln(),Ln(),sr;if(tn=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i!=0,kn=wEe(e),yn=!kn.dc(),tn||yn){if(r=u(z(e,q2),143),!r)throw T(new _l("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(J2=dX(r,(Mm(),mA)),eBn(e),!tn&&yn&&!J2)return Ln(),Ln(),sr;if(A=new Z,x(z(e,B2))===x((jl(),T1))&&(dX(r,gA)||dX(r,wA))){if(on(un(z(e,k9))))throw T(new _l("Topdown layout cannot be used together with hierarchy handling."));for(W2=zqn(n,e),L1=new Mt,Ki(L1,(!e.a&&(e.a=new q(Ye,e,10,11)),e.a));L1.b!=0;)Br=u(L1.b==0?null:(oe(L1.b!=0),Xo(L1,L1.a.a)),27),eBn(Br),G3=x(z(Br,B2))===x(E9),G3||Nf(Br,$v)&&!IJ(r,z(Br,q2))?(j=ltn(n,Br,t,i),hi(A,j),ht(Br,B2,E9),fUn(Br)):Ki(L1,(!Br.a&&(Br.a=new q(Ye,Br,10,11)),Br.a))}else{if(W2=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i,on(un(z(e,k9)))){if(Ah=i.eh(1),Ah.Ug(AVn,1),z(e,x3)==null)throw T(new _l(e.k+" has not been assigned a top-down node type."));if(u(z(e,x3),280)==(Gp(),Yw)||u(z(e,x3),280)==aA)for(O=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));O.e!=O.i.gc();)P=u(ue(O),27),Yu=u(z(P,q2),143),(!P.a&&(P.a=new q(Ye,P,10,11)),P.a).i>0&&z7(Yu.f),z(P,Yan)!=null&&(f=u(z(P,Yan),347),T0=f.Tg(P),kg(P,y.Math.max(P.g,T0.a),y.Math.max(P.f,T0.b)));if(rf=u(z(e,M1),107),p=e.g-(rf.b+rf.c),g=e.f-(rf.d+rf.a),Ah.bh("Available Child Area: ("+p+"|"+g+")"),ht(e,x2,p/g),cBn(e,r,i.eh(W2)),u(z(e,x3),280)==aA&&(utn(e),kg(e,rf.b+$(B(z(e,K2)))+rf.c,rf.d+$(B(z(e,R2)))+rf.a)),Ah.bh("Executed layout algorithm: "+Ae(z(e,$v))+" on node "+e.k),u(z(e,x3),280)==Yw){if(p<0||g<0)throw T(new _l("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+e.k));for(Nf(e,K2)||Nf(e,R2)||utn(e),k=$(B(z(e,K2))),m=$(B(z(e,R2))),Ah.bh("Desired Child Area: ("+k+"|"+m+")"),Xd=p/k,q3=g/m,cf=y.Math.min(Xd,y.Math.min(q3,$(B(z(e,Hue))))),ht(e,cA,cf),Ah.bh(e.k+" -- Local Scale Factor (X|Y): ("+Xd+"|"+q3+")"),D=u(z(e,Gj),21),c=0,s=0,cf<Xd&&(D.Hc((wd(),w9))?c=(p/2-k*cf/2)/cf:D.Hc(g9)&&(c=(p-k*cf)/cf)),cf<q3&&(D.Hc((wd(),m9))?s=(g/2-m*cf/2)/cf:D.Hc(p9)&&(s=(g-m*cf)/cf)),Vd=c+(rf.b/cf-rf.b),Bl=s+(rf.d/cf-rf.d),Ah.bh("Shift: ("+Vd+"|"+Bl+")"),Ro=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));Ro.e!=Ro.i.gc();)Br=u(ue(Ro),27),eu(Br,Br.i+Vd),tu(Br,Br.j+Bl);for(X=new ne((!e.b&&(e.b=new q(Vt,e,12,3)),e.b));X.e!=X.i.gc();){for(_=u(ue(X),74),U3=new ne((!_.a&&(_.a=new q(Tt,_,6,6)),_.a));U3.e!=U3.i.gc();)for(Ka=u(ue(U3),166),j7(Ka,Ka.j+Vd,Ka.k+Bl),y7(Ka,Ka.b+Vd,Ka.c+Bl),l=new ne((!Ka.a&&(Ka.a=new ti(xo,Ka,5)),Ka.a));l.e!=l.i.gc();)h=u(ue(l),377),gN(h,h.a+Vd,h.b+Bl);for(Nt=new ne((!_.n&&(_.n=new q(Sr,_,1,7)),_.n));Nt.e!=Nt.i.gc();)xe=u(ue(Nt),135),Bo(xe,xe.i+Vd,xe.j+Bl);for(te=u(z(_,k0),75),Bn=ge(te,0);Bn.b!=Bn.d.c;)Rn=u(be(Bn),8),Rn.a+=Vd,Rn.b+=Bl;ht(_,k0,te)}}Ah.Vg()}for(d=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));d.e!=d.i.gc();)a=u(ue(d),27),j=ltn(n,a,t,i),hi(A,j),fUn(a)}if(i.$g())return Ln(),Ln(),sr;for(cl=new M(A);cl.a<cl.c.c.length;)Oh=u(E(cl),74),ht(Oh,tA,(_n(),!0));return on(un(z(e,k9)))||cBn(e,r,i.eh(W2)),BPe(A),yn&&J2?kn:(Ln(),Ln(),sr)}else return Ln(),Ln(),sr}function Zg(n,e){var t,i;return X2||(X2=new de,qv=new de,i=(nt(),nt(),new yo(4)),Bk(i,`
\r\r `),Lr(X2,DF,i),Lr(qv,DF,bw(i)),i=new yo(4),Bk(i,XJn),Lr(X2,T8,i),Lr(qv,T8,bw(i)),i=new yo(4),Bk(i,XJn),Lr(X2,T8,i),Lr(qv,T8,bw(i)),i=new yo(4),Bk(i,VJn),gw(i,u(Dc(X2,T8),122)),Lr(X2,NF,i),Lr(qv,NF,bw(i)),i=new yo(4),Bk(i,"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),Lr(X2,$F,i),Lr(qv,$F,bw(i)),i=new yo(4),Bk(i,VJn),xc(i,95,95),xc(i,58,58),Lr(X2,xF,i),Lr(qv,xF,bw(i))),t=u(Dc(e?X2:qv,n),138),t}function Mzn(n){rb(n,new gd(yz(UE(eb(Yd(nb(Zd(new Fa,Yn),"ELK Layered"),"Layer-based algorithm provided by the Eclipse Layout Kernel. Arranges as many edges as possible into one direction by placing nodes into subsequent layers. This implementation supports different routing styles (straight, orthogonal, splines); if orthogonal routing is selected, arbitrary port constraints are respected, thus enabling the layout of block diagrams such as actor-oriented models or circuit schematics. Furthermore, full layout of compound graphs with cross-hierarchy edges is supported when the respective option is activated on the top level."),new Upn),Yn),yt((Mm(),vU),S(C(kA,1),G,245,0,[mA,vA,pA,mU,gA,wA]))))),Q(n,Yn,Uin,rn(PH)),Q(n,Yn,Gin,rn(phn)),Q(n,Yn,WK,rn(Cj)),Q(n,Yn,zin,rn(Ws)),Q(n,Yn,eB,rn(C2)),Q(n,Yn,$B,rn(w0)),Q(n,Yn,Xin,rn(qw)),Q(n,Yn,Vin,rn(Sv)),Q(n,Yn,Win,rn(Pv)),Q(n,Yn,Jin,rn(IH)),Q(n,Yn,yw,rn(g0)),Q(n,Yn,Qin,rn(OH)),Q(n,Yn,Yin,rn(X8)),Q(n,Yn,Zin,rn(yO)),Q(n,Yn,Tin,rn(Tj)),Q(n,Yn,Sin,rn(T2)),Q(n,Yn,Cin,rn(Kd)),Q(n,Yn,Pin,rn(S2)),Q(n,Yn,Dy,Y(0)),Q(n,Yn,Iin,rn(Cv)),Q(n,Yn,Oin,rn(ghn)),Q(n,Yn,Ain,rn(O3)),Q(n,Yn,Al,rn(Chn)),Q(n,Yn,pP,rn(vhn)),Q(n,Yn,mP,rn(khn)),Q(n,Yn,s8,rn(LH)),Q(n,Yn,SB,rn(yhn)),Q(n,Yn,PB,rn(jhn)),Q(n,Yn,vP,rn(jO)),Q(n,Yn,kP,rn(NH)),Q(n,Yn,yP,rn(Mhn)),Q(n,Yn,jP,rn(Ehn)),Q(n,Yn,IB,rn(Thn)),Q(n,Yn,yB,rn(d0)),Q(n,Yn,jB,rn(z8)),Q(n,Yn,bP,rn(MH)),Q(n,Yn,wP,rn(Wfn)),Q(n,Yn,$y,rn(Vte)),Q(n,Yn,xy,rn(Wte)),Q(n,Yn,Ry,rn(Xte)),Q(n,Yn,Ky,rn(zte)),Q(n,Yn,Jb,mhn),Q(n,Yn,Wb,lhn),Q(n,Yn,qy,zfn),Q(n,Yn,nrn,0),Q(n,Yn,uP,Y(1)),Q(n,Yn,l3,Gm),Q(n,Yn,ern,rn(Rd)),Q(n,Yn,tB,rn(Ft)),Q(n,Yn,trn,rn(Tv)),Q(n,Yn,Uy,rn(xte)),Q(n,Yn,irn,rn(Ch)),Q(n,Yn,MP,rn(Kw)),Q(n,Yn,t8,(_n(),!0)),Q(n,Yn,rrn,rn(Bw)),Q(n,Yn,crn,rn(Dd)),Q(n,Yn,r2,rn(xd)),Q(n,Yn,a3,rn(kO)),Q(n,Yn,zm,rn(SH)),Q(n,Yn,xB,Gfn),Q(n,Yn,Xm,rn(a0)),Q(n,Yn,urn,rn(mO)),Q(n,Yn,Vm,rn(_w)),Q(n,Yn,orn,rn(Hte)),Q(n,Yn,srn,rn(bhn)),Q(n,Yn,frn,dhn),Q(n,Yn,hrn,rn(Bte)),Q(n,Yn,lrn,rn(Fte)),Q(n,Yn,arn,rn(_te)),Q(n,Yn,drn,rn(Kte)),Q(n,Yn,ain,rn(AH)),Q(n,Yn,Hy,rn($d)),Q(n,Yn,aB,rn(ja)),Q(n,Yn,lin,rn(V8)),Q(n,Yn,bin,rn(ou)),Q(n,Yn,fB,rn(Nd)),Q(n,Yn,o8,rn(U8)),Q(n,Yn,pin,rn(l0)),Q(n,Yn,jin,rn(Hfn)),Q(n,Yn,pB,rn(kH)),Q(n,Yn,aP,rn(Mj)),Q(n,Yn,gB,rn(yH)),Q(n,Yn,oin,rn(uhn)),Q(n,Yn,sin,rn(ohn)),Q(n,Yn,lP,rn(ehn)),Q(n,Yn,c2,rn(vO)),Q(n,Yn,vB,rn(CH)),Q(n,Yn,uin,rn(TH)),Q(n,Yn,kB,rn(fhn)),Q(n,Yn,Ein,rn(Vfn)),Q(n,Yn,Min,rn(EH)),Q(n,Yn,TP,rn(vH)),Q(n,Yn,mB,rn(shn)),Q(n,Yn,Lin,rn(fO)),Q(n,Yn,Nin,rn(Bfn)),Q(n,Yn,MB,rn(sO)),Q(n,Yn,gP,rn(Yfn)),Q(n,Yn,TB,rn(Qfn)),Q(n,Yn,CB,rn(Zfn)),Q(n,Yn,d3,rn(Ev)),Q(n,Yn,brn,rn(Rr)),Q(n,Yn,JK,rn(m1)),Q(n,Yn,wrn,rn(Sh)),Q(n,Yn,oP,rn(jH)),Q(n,Yn,wB,rn(qfn)),Q(n,Yn,grn,rn(v1)),Q(n,Yn,prn,rn(q8)),Q(n,Yn,mrn,rn(wO)),Q(n,Yn,vrn,rn(b0)),Q(n,Yn,RB,rn(ahn)),Q(n,Yn,KB,rn(Mv)),Q(n,Yn,hB,rn(ihn)),Q(n,Yn,lB,rn(rhn)),Q(n,Yn,CP,rn(Hw)),Q(n,Yn,fin,rn(pH)),Q(n,Yn,dB,rn(chn)),Q(n,Yn,Din,rn(bO)),Q(n,Yn,$in,rn(dO)),Q(n,Yn,krn,rn(pO)),Q(n,Yn,bB,rn(thn)),Q(n,Yn,dP,rn(G8)),Q(n,Yn,yrn,rn(Sj)),Q(n,Yn,cin,rn(Ufn)),Q(n,Yn,hin,rn(whn)),Q(n,Yn,EB,rn(Xfn)),Q(n,Yn,min,rn(Nte)),Q(n,Yn,vin,rn(Dte)),Q(n,Yn,win,rn(Rte)),Q(n,Yn,kin,rn($te)),Q(n,Yn,SP,rn(nhn)),Q(n,Yn,gin,rn(gO)),Q(n,Yn,yin,rn(aO)),Q(n,Yn,EP,rn(Yh)),Q(n,Yn,Kin,rn(_fn)),Q(n,Yn,AB,rn(hO)),Q(n,Yn,LB,rn(Ffn)),Q(n,Yn,Rin,rn(lO)),Q(n,Yn,OB,rn(Rw)),Q(n,Yn,xin,rn(mH)),Q(n,Yn,din,rn(Jfn))}function nDe(n){Te(n.a,Ke,S(C(fn,1),J,2,6,[Qe,"anySimpleType"])),Te(n.b,Ke,S(C(fn,1),J,2,6,[Qe,"anyType",vs,Jy])),Te(u(N(H(n.b),0),35),Ke,S(C(fn,1),J,2,6,[vs,PF,Qe,":mixed"])),Te(u(N(H(n.b),1),35),Ke,S(C(fn,1),J,2,6,[vs,PF,Vcn,OF,Qe,":1",NJn,"lax"])),Te(u(N(H(n.b),2),35),Ke,S(C(fn,1),J,2,6,[vs,IJn,Vcn,OF,Qe,":2",NJn,"lax"])),Te(n.c,Ke,S(C(fn,1),J,2,6,[Qe,"anyURI",ys,vf])),Te(n.d,Ke,S(C(fn,1),J,2,6,[Qe,"base64Binary",ys,vf])),Te(n.e,Ke,S(C(fn,1),J,2,6,[Qe,i3,ys,vf])),Te(n.f,Ke,S(C(fn,1),J,2,6,[Qe,"boolean:Object",Ji,i3])),Te(n.g,Ke,S(C(fn,1),J,2,6,[Qe,m8])),Te(n.i,Ke,S(C(fn,1),J,2,6,[Qe,"byte:Object",Ji,m8])),Te(n.j,Ke,S(C(fn,1),J,2,6,[Qe,"date",ys,vf])),Te(n.k,Ke,S(C(fn,1),J,2,6,[Qe,"dateTime",ys,vf])),Te(n.n,Ke,S(C(fn,1),J,2,6,[Qe,"decimal",ys,vf])),Te(n.o,Ke,S(C(fn,1),J,2,6,[Qe,v8,ys,vf])),Te(n.p,Ke,S(C(fn,1),J,2,6,[Qe,"double:Object",Ji,v8])),Te(n.q,Ke,S(C(fn,1),J,2,6,[Qe,"duration",ys,vf])),Te(n.s,Ke,S(C(fn,1),J,2,6,[Qe,"ENTITIES",Ji,DJn,Wcn,"1"])),Te(n.r,Ke,S(C(fn,1),J,2,6,[Qe,DJn,IF,Jcn])),Te(n.t,Ke,S(C(fn,1),J,2,6,[Qe,Jcn,Ji,tI])),Te(n.u,Ke,S(C(fn,1),J,2,6,[Qe,k8,ys,vf])),Te(n.v,Ke,S(C(fn,1),J,2,6,[Qe,"float:Object",Ji,k8])),Te(n.w,Ke,S(C(fn,1),J,2,6,[Qe,"gDay",ys,vf])),Te(n.B,Ke,S(C(fn,1),J,2,6,[Qe,"gMonth",ys,vf])),Te(n.A,Ke,S(C(fn,1),J,2,6,[Qe,"gMonthDay",ys,vf])),Te(n.C,Ke,S(C(fn,1),J,2,6,[Qe,"gYear",ys,vf])),Te(n.D,Ke,S(C(fn,1),J,2,6,[Qe,"gYearMonth",ys,vf])),Te(n.F,Ke,S(C(fn,1),J,2,6,[Qe,"hexBinary",ys,vf])),Te(n.G,Ke,S(C(fn,1),J,2,6,[Qe,"ID",Ji,tI])),Te(n.H,Ke,S(C(fn,1),J,2,6,[Qe,"IDREF",Ji,tI])),Te(n.J,Ke,S(C(fn,1),J,2,6,[Qe,"IDREFS",Ji,$Jn,Wcn,"1"])),Te(n.I,Ke,S(C(fn,1),J,2,6,[Qe,$Jn,IF,"IDREF"])),Te(n.K,Ke,S(C(fn,1),J,2,6,[Qe,y8])),Te(n.M,Ke,S(C(fn,1),J,2,6,[Qe,Qcn])),Te(n.L,Ke,S(C(fn,1),J,2,6,[Qe,"int:Object",Ji,y8])),Te(n.P,Ke,S(C(fn,1),J,2,6,[Qe,"language",Ji,AF,LF,xJn])),Te(n.Q,Ke,S(C(fn,1),J,2,6,[Qe,j8])),Te(n.R,Ke,S(C(fn,1),J,2,6,[Qe,"long:Object",Ji,j8])),Te(n.S,Ke,S(C(fn,1),J,2,6,[Qe,"Name",Ji,AF,LF,Ycn])),Te(n.T,Ke,S(C(fn,1),J,2,6,[Qe,tI,Ji,"Name",LF,RJn])),Te(n.U,Ke,S(C(fn,1),J,2,6,[Qe,"negativeInteger",Ji,KJn,ej,"-1"])),Te(n.V,Ke,S(C(fn,1),J,2,6,[Qe,Zcn,Ji,AF,LF,"\\c+"])),Te(n.X,Ke,S(C(fn,1),J,2,6,[Qe,"NMTOKENS",Ji,BJn,Wcn,"1"])),Te(n.W,Ke,S(C(fn,1),J,2,6,[Qe,BJn,IF,Zcn])),Te(n.Y,Ke,S(C(fn,1),J,2,6,[Qe,nun,Ji,Qcn,tj,"0"])),Te(n.Z,Ke,S(C(fn,1),J,2,6,[Qe,KJn,Ji,Qcn,ej,"0"])),Te(n.$,Ke,S(C(fn,1),J,2,6,[Qe,FJn,Ji,nK,ys,"replace"])),Te(n._,Ke,S(C(fn,1),J,2,6,[Qe,"NOTATION",ys,vf])),Te(n.ab,Ke,S(C(fn,1),J,2,6,[Qe,"positiveInteger",Ji,nun,tj,"1"])),Te(n.bb,Ke,S(C(fn,1),J,2,6,[Qe,"processingInstruction_._type",vs,"empty"])),Te(u(N(H(n.bb),0),35),Ke,S(C(fn,1),J,2,6,[vs,YP,Qe,"data"])),Te(u(N(H(n.bb),1),35),Ke,S(C(fn,1),J,2,6,[vs,YP,Qe,Dcn])),Te(n.cb,Ke,S(C(fn,1),J,2,6,[Qe,"QName",ys,vf])),Te(n.db,Ke,S(C(fn,1),J,2,6,[Qe,E8])),Te(n.eb,Ke,S(C(fn,1),J,2,6,[Qe,"short:Object",Ji,E8])),Te(n.fb,Ke,S(C(fn,1),J,2,6,[Qe,"simpleAnyType",vs,Qy])),Te(u(N(H(n.fb),0),35),Ke,S(C(fn,1),J,2,6,[Qe,":3",vs,Qy])),Te(u(N(H(n.fb),1),35),Ke,S(C(fn,1),J,2,6,[Qe,":4",vs,Qy])),Te(u(N(H(n.fb),2),19),Ke,S(C(fn,1),J,2,6,[Qe,":5",vs,Qy])),Te(n.gb,Ke,S(C(fn,1),J,2,6,[Qe,nK,ys,"preserve"])),Te(n.hb,Ke,S(C(fn,1),J,2,6,[Qe,"time",ys,vf])),Te(n.ib,Ke,S(C(fn,1),J,2,6,[Qe,AF,Ji,FJn,ys,vf])),Te(n.jb,Ke,S(C(fn,1),J,2,6,[Qe,_Jn,ej,"255",tj,"0"])),Te(n.kb,Ke,S(C(fn,1),J,2,6,[Qe,"unsignedByte:Object",Ji,_Jn])),Te(n.lb,Ke,S(C(fn,1),J,2,6,[Qe,HJn,ej,"4294967295",tj,"0"])),Te(n.mb,Ke,S(C(fn,1),J,2,6,[Qe,"unsignedInt:Object",Ji,HJn])),Te(n.nb,Ke,S(C(fn,1),J,2,6,[Qe,"unsignedLong",Ji,nun,ej,qJn,tj,"0"])),Te(n.ob,Ke,S(C(fn,1),J,2,6,[Qe,UJn,ej,"65535",tj,"0"])),Te(n.pb,Ke,S(C(fn,1),J,2,6,[Qe,"unsignedShort:Object",Ji,UJn])),Te(n.qb,Ke,S(C(fn,1),J,2,6,[Qe,"",vs,Jy])),Te(u(N(H(n.qb),0),35),Ke,S(C(fn,1),J,2,6,[vs,PF,Qe,":mixed"])),Te(u(N(H(n.qb),1),19),Ke,S(C(fn,1),J,2,6,[vs,YP,Qe,"xmlns:prefix"])),Te(u(N(H(n.qb),2),19),Ke,S(C(fn,1),J,2,6,[vs,YP,Qe,"xsi:schemaLocation"])),Te(u(N(H(n.qb),3),35),Ke,S(C(fn,1),J,2,6,[vs,ZP,Qe,"cDATA",nI,Yy])),Te(u(N(H(n.qb),4),35),Ke,S(C(fn,1),J,2,6,[vs,ZP,Qe,"comment",nI,Yy])),Te(u(N(H(n.qb),5),19),Ke,S(C(fn,1),J,2,6,[vs,ZP,Qe,GJn,nI,Yy])),Te(u(N(H(n.qb),6),35),Ke,S(C(fn,1),J,2,6,[vs,ZP,Qe,wF,nI,Yy]))}function $e(n){return Sn("_UI_EMFDiagnostic_marker",n)?"EMF Problem":Sn("_UI_CircularContainment_diagnostic",n)?"An object may not circularly contain itself":Sn(SWn,n)?"Wrong character.":Sn(PWn,n)?"Invalid reference number.":Sn(qP,n)?"A character is required after \\.":Sn(jF,n)?"'?' is not expected. '(?:' or '(?=' or '(?!' or '(?<' or '(?#' or '(?>'?":Sn(IWn,n)?"'(?<' or '(?<!' is expected.":Sn(OWn,n)?"A comment is not terminated.":Sn(Sd,n)?"')' is expected.":Sn($cn,n)?"Unexpected end of the pattern in a modifier group.":Sn(AWn,n)?"':' is expected.":Sn(LWn,n)?"Unexpected end of the pattern in a conditional group.":Sn(NWn,n)?"A back reference or an anchor or a lookahead or a look-behind is expected in a conditional pattern.":Sn(DWn,n)?"There are more than three choices in a conditional group.":Sn($Wn,n)?"A character in U+0040-U+005f must follow \\c.":Sn(xWn,n)?"A '{' is required before a character category.":Sn(RWn,n)?"A property name is not closed by '}'.":Sn(xcn,n)?"Unexpected meta character.":Sn(EF,n)?"Unknown property.":Sn(Rcn,n)?"A POSIX character class must be closed by ':]'.":Sn(UP,n)?"Unexpected end of the pattern in a character class.":Sn(KWn,n)?"Unknown name for a POSIX character class.":Sn("parser.cc.4",n)?"'-' is invalid here.":Sn(BWn,n)?"']' is expected.":Sn(Kcn,n)?"'[' is invalid in a character class. Write '\\['.":Sn(Bcn,n)?"']' is invalid in a character class. Write '\\]'.":Sn(MF,n)?"'-' is an invalid character range. Write '\\-'.":Sn(FWn,n)?"'[' is expected.":Sn(_Wn,n)?"')' or '-[' or '+[' or '&[' is expected.":Sn(HWn,n)?"The range end code point is less than the start code point.":Sn(g1,n)?"Invalid Unicode hex notation.":Sn(qWn,n)?"Overflow in a hex notation.":Sn(UWn,n)?"'\\x{' must be closed by '}'.":Sn(GWn,n)?"Invalid Unicode code point.":Sn(zWn,n)?"An anchor must not be here.":Sn(is,n)?"This expression is not supported in the current option setting.":Sn(XWn,n)?"Invalid quantifier. A digit is expected.":Sn(VWn,n)?"Invalid quantifier. Invalid quantity or a '}' is missing.":Sn(WWn,n)?"Invalid quantifier. A digit or '}' is expected.":Sn(JWn,n)?"Invalid quantifier. A min quantity must be <= a max quantity.":Sn(Fcn,n)?"Invalid quantifier. A quantity value overflow.":Sn("_UI_PackageRegistry_extensionpoint",n)?"Ecore Package Registry for Generated Packages":Sn("_UI_DynamicPackageRegistry_extensionpoint",n)?"Ecore Package Registry for Dynamic Packages":Sn("_UI_FactoryRegistry_extensionpoint",n)?"Ecore Factory Override Registry":Sn("_UI_URIExtensionParserRegistry_extensionpoint",n)?"URI Extension Parser Registry":Sn("_UI_URIProtocolParserRegistry_extensionpoint",n)?"URI Protocol Parser Registry":Sn("_UI_URIContentParserRegistry_extensionpoint",n)?"URI Content Parser Registry":Sn("_UI_ContentHandlerRegistry_extensionpoint",n)?"Content Handler Registry":Sn("_UI_URIMappingRegistry_extensionpoint",n)?"URI Converter Mapping Registry":Sn("_UI_PackageRegistryImplementation_extensionpoint",n)?"Ecore Package Registry Implementation":Sn("_UI_ValidationDelegateRegistry_extensionpoint",n)?"Validation Delegate Registry":Sn("_UI_SettingDelegateRegistry_extensionpoint",n)?"Feature Setting Delegate Factory Registry":Sn("_UI_InvocationDelegateRegistry_extensionpoint",n)?"Operation Invocation Delegate Factory Registry":Sn("_UI_EClassInterfaceNotAbstract_diagnostic",n)?"A class that is an interface must also be abstract":Sn("_UI_EClassNoCircularSuperTypes_diagnostic",n)?"A class may not be a super type of itself":Sn("_UI_EClassNotWellFormedMapEntryNoInstanceClassName_diagnostic",n)?"A class that inherits from a map entry class must have instance class name 'java.util.Map$Entry'":Sn("_UI_EReferenceOppositeOfOppositeInconsistent_diagnostic",n)?"The opposite of the opposite may not be a reference different from this one":Sn("_UI_EReferenceOppositeNotFeatureOfType_diagnostic",n)?"The opposite must be a feature of the reference's type":Sn("_UI_EReferenceTransientOppositeNotTransient_diagnostic",n)?"The opposite of a transient reference must be transient if it is proxy resolving":Sn("_UI_EReferenceOppositeBothContainment_diagnostic",n)?"The opposite of a containment reference must not be a containment reference":Sn("_UI_EReferenceConsistentUnique_diagnostic",n)?"A containment or bidirectional reference must be unique if its upper bound is different from 1":Sn("_UI_ETypedElementNoType_diagnostic",n)?"The typed element must have a type":Sn("_UI_EAttributeNoDataType_diagnostic",n)?"The generic attribute type must not refer to a class":Sn("_UI_EReferenceNoClass_diagnostic",n)?"The generic reference type must not refer to a data type":Sn("_UI_EGenericTypeNoTypeParameterAndClassifier_diagnostic",n)?"A generic type can't refer to both a type parameter and a classifier":Sn("_UI_EGenericTypeNoClass_diagnostic",n)?"A generic super type must refer to a class":Sn("_UI_EGenericTypeNoTypeParameterOrClassifier_diagnostic",n)?"A generic type in this context must refer to a classifier or a type parameter":Sn("_UI_EGenericTypeBoundsOnlyForTypeArgument_diagnostic",n)?"A generic type may have bounds only when used as a type argument":Sn("_UI_EGenericTypeNoUpperAndLowerBound_diagnostic",n)?"A generic type must not have both a lower and an upper bound":Sn("_UI_EGenericTypeNoTypeParameterOrClassifierAndBound_diagnostic",n)?"A generic type with bounds must not also refer to a type parameter or classifier":Sn("_UI_EGenericTypeNoArguments_diagnostic",n)?"A generic type may have arguments only if it refers to a classifier":Sn("_UI_EGenericTypeOutOfScopeTypeParameter_diagnostic",n)?"A generic type may only refer to a type parameter that is in scope":n}function eDe(n){var e,t,i,r,c,s,f,h,l,a,d,g,p,m,k;n.r||(n.r=!0,zc(n,"graph"),MC(n,"graph"),TC(n,tv),jk(n.o,"T"),ve(Hr(n.a),n.p),ve(Hr(n.f),n.a),ve(Hr(n.n),n.f),ve(Hr(n.g),n.n),ve(Hr(n.c),n.n),ve(Hr(n.i),n.c),ve(Hr(n.j),n.c),ve(Hr(n.d),n.f),ve(Hr(n.e),n.a),fc(n.p,pDe,pXn,!0,!0,!1),m=$g(n.p,n.p,"setProperty"),k=rRn(m),l=al(n.o),a=(t=(i=new Jd,i),t),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),d=ED(k),qZ(a,d),dS(m,l,Tcn),l=ED(k),dS(m,l,g8),m=$g(n.p,null,"getProperty"),k=rRn(m),l=al(n.o),a=ED(k),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),dS(m,l,Tcn),l=ED(k),p=Kf(m,l,null),p&&p.oj(),m=$g(n.p,n.wb.e,"hasProperty"),l=al(n.o),a=(r=(c=new Jd,c),r),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),dS(m,l,Tcn),m=$g(n.p,n.p,"copyProperties"),$r(m,n.p,lF),m=$g(n.p,null,"getAllProperties"),l=al(n.wb.P),a=al(n.o),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),d=(s=(f=new Jd,f),s),ve((!a.d&&(a.d=new ti(jr,a,1)),a.d),d),a=al(n.wb.M),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),g=Kf(m,l,null),g&&g.oj(),fc(n.a,Hv,iWn,!0,!1,!0),Et(u(N(H(n.a),0),19),n.k,null,wWn,0,-1,Hv,!1,!1,!0,!0,!1,!1,!1),fc(n.f,oE,cWn,!0,!1,!0),Et(u(N(H(n.f),0),19),n.g,u(N(H(n.g),0),19),"labels",0,-1,oE,!1,!1,!0,!0,!1,!1,!1),Ut(u(N(H(n.f),1),35),n.wb._,gWn,null,0,1,oE,!1,!1,!0,!1,!0,!1),fc(n.n,sE,"ElkShape",!0,!1,!0),Ut(u(N(H(n.n),0),35),n.wb.t,aF,Fm,1,1,sE,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.n),1),35),n.wb.t,dF,Fm,1,1,sE,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.n),2),35),n.wb.t,"x",Fm,1,1,sE,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.n),3),35),n.wb.t,"y",Fm,1,1,sE,!1,!1,!0,!1,!0,!1),m=$g(n.n,null,"setDimensions"),$r(m,n.wb.t,dF),$r(m,n.wb.t,aF),m=$g(n.n,null,"setLocation"),$r(m,n.wb.t,"x"),$r(m,n.wb.t,"y"),fc(n.g,Sr,jcn,!1,!1,!0),Et(u(N(H(n.g),0),19),n.f,u(N(H(n.f),0),19),bF,0,1,Sr,!1,!1,!0,!1,!1,!1,!1),Ut(u(N(H(n.g),1),35),n.wb._,wF,"",0,1,Sr,!1,!1,!0,!1,!0,!1),fc(n.c,he,uWn,!0,!1,!0),Et(u(N(H(n.c),0),19),n.d,u(N(H(n.d),1),19),"outgoingEdges",0,-1,he,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.c),1),19),n.d,u(N(H(n.d),2),19),"incomingEdges",0,-1,he,!1,!1,!0,!1,!0,!1,!1),fc(n.i,Ye,Ecn,!1,!1,!0),Et(u(N(H(n.i),0),19),n.j,u(N(H(n.j),0),19),"ports",0,-1,Ye,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.i),1),19),n.i,u(N(H(n.i),2),19),gF,0,-1,Ye,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.i),2),19),n.i,u(N(H(n.i),1),19),bF,0,1,Ye,!1,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.i),3),19),n.d,u(N(H(n.d),0),19),"containedEdges",0,-1,Ye,!1,!1,!0,!0,!1,!1,!1),Ut(u(N(H(n.i),4),35),n.wb.e,pWn,null,0,1,Ye,!0,!0,!1,!1,!0,!0),fc(n.j,Qu,Mcn,!1,!1,!0),Et(u(N(H(n.j),0),19),n.i,u(N(H(n.i),0),19),bF,0,1,Qu,!1,!1,!0,!1,!1,!1,!1),fc(n.d,Vt,ycn,!1,!1,!0),Et(u(N(H(n.d),0),19),n.i,u(N(H(n.i),3),19),"containingNode",0,1,Vt,!1,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.d),1),19),n.c,u(N(H(n.c),0),19),Ccn,0,-1,Vt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.d),2),19),n.c,u(N(H(n.c),1),19),pF,0,-1,Vt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.d),3),19),n.e,u(N(H(n.e),5),19),Scn,0,-1,Vt,!1,!1,!0,!0,!1,!1,!1),Ut(u(N(H(n.d),4),35),n.wb.e,"hyperedge",null,0,1,Vt,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.d),5),35),n.wb.e,pWn,null,0,1,Vt,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.d),6),35),n.wb.e,"selfloop",null,0,1,Vt,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.d),7),35),n.wb.e,"connected",null,0,1,Vt,!0,!0,!1,!1,!0,!0),fc(n.b,xo,rWn,!1,!1,!0),Ut(u(N(H(n.b),0),35),n.wb.t,"x",Fm,1,1,xo,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.b),1),35),n.wb.t,"y",Fm,1,1,xo,!1,!1,!0,!1,!0,!1),m=$g(n.b,null,"set"),$r(m,n.wb.t,"x"),$r(m,n.wb.t,"y"),fc(n.e,Tt,oWn,!1,!1,!0),Ut(u(N(H(n.e),0),35),n.wb.t,"startX",null,0,1,Tt,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.e),1),35),n.wb.t,"startY",null,0,1,Tt,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.e),2),35),n.wb.t,"endX",null,0,1,Tt,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.e),3),35),n.wb.t,"endY",null,0,1,Tt,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.e),4),19),n.b,null,BP,0,-1,Tt,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.e),5),19),n.d,u(N(H(n.d),3),19),bF,0,1,Tt,!1,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.e),6),19),n.c,null,Pcn,0,1,Tt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.e),7),19),n.c,null,Icn,0,1,Tt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.e),8),19),n.e,u(N(H(n.e),9),19),Ocn,0,-1,Tt,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.e),9),19),n.e,u(N(H(n.e),8),19),Acn,0,-1,Tt,!1,!1,!0,!1,!0,!1,!1),Ut(u(N(H(n.e),10),35),n.wb._,gWn,null,0,1,Tt,!1,!1,!0,!1,!0,!1),m=$g(n.e,null,"setStartLocation"),$r(m,n.wb.t,"x"),$r(m,n.wb.t,"y"),m=$g(n.e,null,"setEndLocation"),$r(m,n.wb.t,"x"),$r(m,n.wb.t,"y"),fc(n.k,Id,"ElkPropertyToValueMapEntry",!1,!1,!1),l=al(n.o),a=(h=(e=new Jd,e),h),ve((!l.d&&(l.d=new ti(jr,l,1)),l.d),a),bHn(u(N(H(n.k),0),35),l,"key",Id,!1,!1,!0,!1),Ut(u(N(H(n.k),1),35),n.s,g8,null,0,1,Id,!1,!1,!0,!1,!0,!1),We(n.o,zq,"IProperty",!0),We(n.s,ki,"PropertyValue",!0),gY(n,tv))}function Tzn(){Tzn=R,I=F(Ru,s2,28,hr,15,1),I[9]=35,I[10]=19,I[13]=19,I[32]=51,I[33]=49,I[34]=33,K(I,35,38,49),I[38]=1,K(I,39,45,49),K(I,45,47,-71),I[47]=49,K(I,48,58,-71),I[58]=61,I[59]=49,I[60]=1,I[61]=49,I[62]=33,K(I,63,65,49),K(I,65,91,-3),K(I,91,93,33),I[93]=1,I[94]=33,I[95]=-3,I[96]=33,K(I,97,123,-3),K(I,123,183,33),I[183]=-87,K(I,184,192,33),K(I,192,215,-19),I[215]=33,K(I,216,247,-19),I[247]=33,K(I,248,306,-19),K(I,306,308,33),K(I,308,319,-19),K(I,319,321,33),K(I,321,329,-19),I[329]=33,K(I,330,383,-19),I[383]=33,K(I,384,452,-19),K(I,452,461,33),K(I,461,497,-19),K(I,497,500,33),K(I,500,502,-19),K(I,502,506,33),K(I,506,536,-19),K(I,536,592,33),K(I,592,681,-19),K(I,681,699,33),K(I,699,706,-19),K(I,706,720,33),K(I,720,722,-87),K(I,722,768,33),K(I,768,838,-87),K(I,838,864,33),K(I,864,866,-87),K(I,866,902,33),I[902]=-19,I[903]=-87,K(I,904,907,-19),I[907]=33,I[908]=-19,I[909]=33,K(I,910,930,-19),I[930]=33,K(I,931,975,-19),I[975]=33,K(I,976,983,-19),K(I,983,986,33),I[986]=-19,I[987]=33,I[988]=-19,I[989]=33,I[990]=-19,I[991]=33,I[992]=-19,I[993]=33,K(I,994,1012,-19),K(I,1012,1025,33),K(I,1025,1037,-19),I[1037]=33,K(I,1038,1104,-19),I[1104]=33,K(I,1105,1117,-19),I[1117]=33,K(I,1118,1154,-19),I[1154]=33,K(I,1155,1159,-87),K(I,1159,1168,33),K(I,1168,1221,-19),K(I,1221,1223,33),K(I,1223,1225,-19),K(I,1225,1227,33),K(I,1227,1229,-19),K(I,1229,1232,33),K(I,1232,1260,-19),K(I,1260,1262,33),K(I,1262,1270,-19),K(I,1270,1272,33),K(I,1272,1274,-19),K(I,1274,1329,33),K(I,1329,1367,-19),K(I,1367,1369,33),I[1369]=-19,K(I,1370,1377,33),K(I,1377,1415,-19),K(I,1415,1425,33),K(I,1425,1442,-87),I[1442]=33,K(I,1443,1466,-87),I[1466]=33,K(I,1467,1470,-87),I[1470]=33,I[1471]=-87,I[1472]=33,K(I,1473,1475,-87),I[1475]=33,I[1476]=-87,K(I,1477,1488,33),K(I,1488,1515,-19),K(I,1515,1520,33),K(I,1520,1523,-19),K(I,1523,1569,33),K(I,1569,1595,-19),K(I,1595,1600,33),I[1600]=-87,K(I,1601,1611,-19),K(I,1611,1619,-87),K(I,1619,1632,33),K(I,1632,1642,-87),K(I,1642,1648,33),I[1648]=-87,K(I,1649,1720,-19),K(I,1720,1722,33),K(I,1722,1727,-19),I[1727]=33,K(I,1728,1743,-19),I[1743]=33,K(I,1744,1748,-19),I[1748]=33,I[1749]=-19,K(I,1750,1765,-87),K(I,1765,1767,-19),K(I,1767,1769,-87),I[1769]=33,K(I,1770,1774,-87),K(I,1774,1776,33),K(I,1776,1786,-87),K(I,1786,2305,33),K(I,2305,2308,-87),I[2308]=33,K(I,2309,2362,-19),K(I,2362,2364,33),I[2364]=-87,I[2365]=-19,K(I,2366,2382,-87),K(I,2382,2385,33),K(I,2385,2389,-87),K(I,2389,2392,33),K(I,2392,2402,-19),K(I,2402,2404,-87),K(I,2404,2406,33),K(I,2406,2416,-87),K(I,2416,2433,33),K(I,2433,2436,-87),I[2436]=33,K(I,2437,2445,-19),K(I,2445,2447,33),K(I,2447,2449,-19),K(I,2449,2451,33),K(I,2451,2473,-19),I[2473]=33,K(I,2474,2481,-19),I[2481]=33,I[2482]=-19,K(I,2483,2486,33),K(I,2486,2490,-19),K(I,2490,2492,33),I[2492]=-87,I[2493]=33,K(I,2494,2501,-87),K(I,2501,2503,33),K(I,2503,2505,-87),K(I,2505,2507,33),K(I,2507,2510,-87),K(I,2510,2519,33),I[2519]=-87,K(I,2520,2524,33),K(I,2524,2526,-19),I[2526]=33,K(I,2527,2530,-19),K(I,2530,2532,-87),K(I,2532,2534,33),K(I,2534,2544,-87),K(I,2544,2546,-19),K(I,2546,2562,33),I[2562]=-87,K(I,2563,2565,33),K(I,2565,2571,-19),K(I,2571,2575,33),K(I,2575,2577,-19),K(I,2577,2579,33),K(I,2579,2601,-19),I[2601]=33,K(I,2602,2609,-19),I[2609]=33,K(I,2610,2612,-19),I[2612]=33,K(I,2613,2615,-19),I[2615]=33,K(I,2616,2618,-19),K(I,2618,2620,33),I[2620]=-87,I[2621]=33,K(I,2622,2627,-87),K(I,2627,2631,33),K(I,2631,2633,-87),K(I,2633,2635,33),K(I,2635,2638,-87),K(I,2638,2649,33),K(I,2649,2653,-19),I[2653]=33,I[2654]=-19,K(I,2655,2662,33),K(I,2662,2674,-87),K(I,2674,2677,-19),K(I,2677,2689,33),K(I,2689,2692,-87),I[2692]=33,K(I,2693,2700,-19),I[2700]=33,I[2701]=-19,I[2702]=33,K(I,2703,2706,-19),I[2706]=33,K(I,2707,2729,-19),I[2729]=33,K(I,2730,2737,-19),I[2737]=33,K(I,2738,2740,-19),I[2740]=33,K(I,2741,2746,-19),K(I,2746,2748,33),I[2748]=-87,I[2749]=-19,K(I,2750,2758,-87),I[2758]=33,K(I,2759,2762,-87),I[2762]=33,K(I,2763,2766,-87),K(I,2766,2784,33),I[2784]=-19,K(I,2785,2790,33),K(I,2790,2800,-87),K(I,2800,2817,33),K(I,2817,2820,-87),I[2820]=33,K(I,2821,2829,-19),K(I,2829,2831,33),K(I,2831,2833,-19),K(I,2833,2835,33),K(I,2835,2857,-19),I[2857]=33,K(I,2858,2865,-19),I[2865]=33,K(I,2866,2868,-19),K(I,2868,2870,33),K(I,2870,2874,-19),K(I,2874,2876,33),I[2876]=-87,I[2877]=-19,K(I,2878,2884,-87),K(I,2884,2887,33),K(I,2887,2889,-87),K(I,2889,2891,33),K(I,2891,2894,-87),K(I,2894,2902,33),K(I,2902,2904,-87),K(I,2904,2908,33),K(I,2908,2910,-19),I[2910]=33,K(I,2911,2914,-19),K(I,2914,2918,33),K(I,2918,2928,-87),K(I,2928,2946,33),K(I,2946,2948,-87),I[2948]=33,K(I,2949,2955,-19),K(I,2955,2958,33),K(I,2958,2961,-19),I[2961]=33,K(I,2962,2966,-19),K(I,2966,2969,33),K(I,2969,2971,-19),I[2971]=33,I[2972]=-19,I[2973]=33,K(I,2974,2976,-19),K(I,2976,2979,33),K(I,2979,2981,-19),K(I,2981,2984,33),K(I,2984,2987,-19),K(I,2987,2990,33),K(I,2990,2998,-19),I[2998]=33,K(I,2999,3002,-19),K(I,3002,3006,33),K(I,3006,3011,-87),K(I,3011,3014,33),K(I,3014,3017,-87),I[3017]=33,K(I,3018,3022,-87),K(I,3022,3031,33),I[3031]=-87,K(I,3032,3047,33),K(I,3047,3056,-87),K(I,3056,3073,33),K(I,3073,3076,-87),I[3076]=33,K(I,3077,3085,-19),I[3085]=33,K(I,3086,3089,-19),I[3089]=33,K(I,3090,3113,-19),I[3113]=33,K(I,3114,3124,-19),I[3124]=33,K(I,3125,3130,-19),K(I,3130,3134,33),K(I,3134,3141,-87),I[3141]=33,K(I,3142,3145,-87),I[3145]=33,K(I,3146,3150,-87),K(I,3150,3157,33),K(I,3157,3159,-87),K(I,3159,3168,33),K(I,3168,3170,-19),K(I,3170,3174,33),K(I,3174,3184,-87),K(I,3184,3202,33),K(I,3202,3204,-87),I[3204]=33,K(I,3205,3213,-19),I[3213]=33,K(I,3214,3217,-19),I[3217]=33,K(I,3218,3241,-19),I[3241]=33,K(I,3242,3252,-19),I[3252]=33,K(I,3253,3258,-19),K(I,3258,3262,33),K(I,3262,3269,-87),I[3269]=33,K(I,3270,3273,-87),I[3273]=33,K(I,3274,3278,-87),K(I,3278,3285,33),K(I,3285,3287,-87),K(I,3287,3294,33),I[3294]=-19,I[3295]=33,K(I,3296,3298,-19),K(I,3298,3302,33),K(I,3302,3312,-87),K(I,3312,3330,33),K(I,3330,3332,-87),I[3332]=33,K(I,3333,3341,-19),I[3341]=33,K(I,3342,3345,-19),I[3345]=33,K(I,3346,3369,-19),I[3369]=33,K(I,3370,3386,-19),K(I,3386,3390,33),K(I,3390,3396,-87),K(I,3396,3398,33),K(I,3398,3401,-87),I[3401]=33,K(I,3402,3406,-87),K(I,3406,3415,33),I[3415]=-87,K(I,3416,3424,33),K(I,3424,3426,-19),K(I,3426,3430,33),K(I,3430,3440,-87),K(I,3440,3585,33),K(I,3585,3631,-19),I[3631]=33,I[3632]=-19,I[3633]=-87,K(I,3634,3636,-19),K(I,3636,3643,-87),K(I,3643,3648,33),K(I,3648,3654,-19),K(I,3654,3663,-87),I[3663]=33,K(I,3664,3674,-87),K(I,3674,3713,33),K(I,3713,3715,-19),I[3715]=33,I[3716]=-19,K(I,3717,3719,33),K(I,3719,3721,-19),I[3721]=33,I[3722]=-19,K(I,3723,3725,33),I[3725]=-19,K(I,3726,3732,33),K(I,3732,3736,-19),I[3736]=33,K(I,3737,3744,-19),I[3744]=33,K(I,3745,3748,-19),I[3748]=33,I[3749]=-19,I[3750]=33,I[3751]=-19,K(I,3752,3754,33),K(I,3754,3756,-19),I[3756]=33,K(I,3757,3759,-19),I[3759]=33,I[3760]=-19,I[3761]=-87,K(I,3762,3764,-19),K(I,3764,3770,-87),I[3770]=33,K(I,3771,3773,-87),I[3773]=-19,K(I,3774,3776,33),K(I,3776,3781,-19),I[3781]=33,I[3782]=-87,I[3783]=33,K(I,3784,3790,-87),K(I,3790,3792,33),K(I,3792,3802,-87),K(I,3802,3864,33),K(I,3864,3866,-87),K(I,3866,3872,33),K(I,3872,3882,-87),K(I,3882,3893,33),I[3893]=-87,I[3894]=33,I[3895]=-87,I[3896]=33,I[3897]=-87,K(I,3898,3902,33),K(I,3902,3904,-87),K(I,3904,3912,-19),I[3912]=33,K(I,3913,3946,-19),K(I,3946,3953,33),K(I,3953,3973,-87),I[3973]=33,K(I,3974,3980,-87),K(I,3980,3984,33),K(I,3984,3990,-87),I[3990]=33,I[3991]=-87,I[3992]=33,K(I,3993,4014,-87),K(I,4014,4017,33),K(I,4017,4024,-87),I[4024]=33,I[4025]=-87,K(I,4026,4256,33),K(I,4256,4294,-19),K(I,4294,4304,33),K(I,4304,4343,-19),K(I,4343,4352,33),I[4352]=-19,I[4353]=33,K(I,4354,4356,-19),I[4356]=33,K(I,4357,4360,-19),I[4360]=33,I[4361]=-19,I[4362]=33,K(I,4363,4365,-19),I[4365]=33,K(I,4366,4371,-19),K(I,4371,4412,33),I[4412]=-19,I[4413]=33,I[4414]=-19,I[4415]=33,I[4416]=-19,K(I,4417,4428,33),I[4428]=-19,I[4429]=33,I[4430]=-19,I[4431]=33,I[4432]=-19,K(I,4433,4436,33),K(I,4436,4438,-19),K(I,4438,4441,33),I[4441]=-19,K(I,4442,4447,33),K(I,4447,4450,-19),I[4450]=33,I[4451]=-19,I[4452]=33,I[4453]=-19,I[4454]=33,I[4455]=-19,I[4456]=33,I[4457]=-19,K(I,4458,4461,33),K(I,4461,4463,-19),K(I,4463,4466,33),K(I,4466,4468,-19),I[4468]=33,I[4469]=-19,K(I,4470,4510,33),I[4510]=-19,K(I,4511,4520,33),I[4520]=-19,K(I,4521,4523,33),I[4523]=-19,K(I,4524,4526,33),K(I,4526,4528,-19),K(I,4528,4535,33),K(I,4535,4537,-19),I[4537]=33,I[4538]=-19,I[4539]=33,K(I,4540,4547,-19),K(I,4547,4587,33),I[4587]=-19,K(I,4588,4592,33),I[4592]=-19,K(I,4593,4601,33),I[4601]=-19,K(I,4602,7680,33),K(I,7680,7836,-19),K(I,7836,7840,33),K(I,7840,7930,-19),K(I,7930,7936,33),K(I,7936,7958,-19),K(I,7958,7960,33),K(I,7960,7966,-19),K(I,7966,7968,33),K(I,7968,8006,-19),K(I,8006,8008,33),K(I,8008,8014,-19),K(I,8014,8016,33),K(I,8016,8024,-19),I[8024]=33,I[8025]=-19,I[8026]=33,I[8027]=-19,I[8028]=33,I[8029]=-19,I[8030]=33,K(I,8031,8062,-19),K(I,8062,8064,33),K(I,8064,8117,-19),I[8117]=33,K(I,8118,8125,-19),I[8125]=33,I[8126]=-19,K(I,8127,8130,33),K(I,8130,8133,-19),I[8133]=33,K(I,8134,8141,-19),K(I,8141,8144,33),K(I,8144,8148,-19),K(I,8148,8150,33),K(I,8150,8156,-19),K(I,8156,8160,33),K(I,8160,8173,-19),K(I,8173,8178,33),K(I,8178,8181,-19),I[8181]=33,K(I,8182,8189,-19),K(I,8189,8400,33),K(I,8400,8413,-87),K(I,8413,8417,33),I[8417]=-87,K(I,8418,8486,33),I[8486]=-19,K(I,8487,8490,33),K(I,8490,8492,-19),K(I,8492,8494,33),I[8494]=-19,K(I,8495,8576,33),K(I,8576,8579,-19),K(I,8579,12293,33),I[12293]=-87,I[12294]=33,I[12295]=-19,K(I,12296,12321,33),K(I,12321,12330,-19),K(I,12330,12336,-87),I[12336]=33,K(I,12337,12342,-87),K(I,12342,12353,33),K(I,12353,12437,-19),K(I,12437,12441,33),K(I,12441,12443,-87),K(I,12443,12445,33),K(I,12445,12447,-87),K(I,12447,12449,33),K(I,12449,12539,-19),I[12539]=33,K(I,12540,12543,-87),K(I,12543,12549,33),K(I,12549,12589,-19),K(I,12589,19968,33),K(I,19968,40870,-19),K(I,40870,44032,33),K(I,44032,55204,-19),K(I,55204,Py,33),K(I,57344,65534,33)}function tDe(n){var e,t,i,r,c,s,f;n.hb||(n.hb=!0,zc(n,"ecore"),MC(n,"ecore"),TC(n,ks),jk(n.fb,"E"),jk(n.L,"T"),jk(n.P,"K"),jk(n.P,"V"),jk(n.cb,"E"),ve(Hr(n.b),n.bb),ve(Hr(n.a),n.Q),ve(Hr(n.o),n.p),ve(Hr(n.p),n.R),ve(Hr(n.q),n.p),ve(Hr(n.v),n.q),ve(Hr(n.w),n.R),ve(Hr(n.B),n.Q),ve(Hr(n.R),n.Q),ve(Hr(n.T),n.eb),ve(Hr(n.U),n.R),ve(Hr(n.V),n.eb),ve(Hr(n.W),n.bb),ve(Hr(n.bb),n.eb),ve(Hr(n.eb),n.R),ve(Hr(n.db),n.R),fc(n.b,ng,uJn,!1,!1,!0),Ut(u(N(H(n.b),0),35),n.e,"iD",null,0,1,ng,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.b),1),19),n.q,null,"eAttributeType",1,1,ng,!0,!0,!1,!1,!0,!1,!0),fc(n.a,Ue,iJn,!1,!1,!0),Ut(u(N(H(n.a),0),35),n._,lF,null,0,1,Ue,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.a),1),19),n.ab,null,"details",0,-1,Ue,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.a),2),19),n.Q,u(N(H(n.Q),0),19),"eModelElement",0,1,Ue,!0,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.a),3),19),n.S,null,"contents",0,-1,Ue,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.a),4),19),n.S,null,"references",0,-1,Ue,!1,!1,!0,!1,!0,!1,!1),fc(n.o,Ss,"EClass",!1,!1,!0),Ut(u(N(H(n.o),0),35),n.e,"abstract",null,0,1,Ss,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.o),1),35),n.e,"interface",null,0,1,Ss,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.o),2),19),n.o,null,"eSuperTypes",0,-1,Ss,!1,!1,!0,!1,!0,!0,!1),Et(u(N(H(n.o),3),19),n.T,u(N(H(n.T),0),19),"eOperations",0,-1,Ss,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.o),4),19),n.b,null,"eAllAttributes",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),5),19),n.W,null,"eAllReferences",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),6),19),n.W,null,"eReferences",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),7),19),n.b,null,"eAttributes",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),8),19),n.W,null,"eAllContainments",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),9),19),n.T,null,"eAllOperations",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),10),19),n.bb,null,"eAllStructuralFeatures",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),11),19),n.o,null,"eAllSuperTypes",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.o),12),19),n.b,null,"eIDAttribute",0,1,Ss,!0,!0,!1,!1,!1,!1,!0),Et(u(N(H(n.o),13),19),n.bb,u(N(H(n.bb),7),19),"eStructuralFeatures",0,-1,Ss,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.o),14),19),n.H,null,"eGenericSuperTypes",0,-1,Ss,!1,!1,!0,!0,!1,!0,!1),Et(u(N(H(n.o),15),19),n.H,null,"eAllGenericSuperTypes",0,-1,Ss,!0,!0,!1,!1,!0,!1,!0),f=Tr(u(N(ft(n.o),0),62),n.e,"isSuperTypeOf"),$r(f,n.o,"someClass"),Tr(u(N(ft(n.o),1),62),n.I,"getFeatureCount"),f=Tr(u(N(ft(n.o),2),62),n.bb,mJn),$r(f,n.I,"featureID"),f=Tr(u(N(ft(n.o),3),62),n.I,vJn),$r(f,n.bb,M8),f=Tr(u(N(ft(n.o),4),62),n.bb,mJn),$r(f,n._,"featureName"),Tr(u(N(ft(n.o),5),62),n.I,"getOperationCount"),f=Tr(u(N(ft(n.o),6),62),n.T,"getEOperation"),$r(f,n.I,"operationID"),f=Tr(u(N(ft(n.o),7),62),n.I,kJn),$r(f,n.T,zcn),f=Tr(u(N(ft(n.o),8),62),n.T,"getOverride"),$r(f,n.T,zcn),f=Tr(u(N(ft(n.o),9),62),n.H,"getFeatureType"),$r(f,n.bb,M8),fc(n.p,Mf,oJn,!0,!1,!0),Ut(u(N(H(n.p),0),35),n._,"instanceClassName",null,0,1,Mf,!1,!0,!0,!0,!0,!1),e=al(n.L),t=gJ(),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),bHn(u(N(H(n.p),1),35),e,"instanceClass",Mf,!0,!0,!1,!0),Ut(u(N(H(n.p),2),35),n.M,yJn,null,0,1,Mf,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.p),3),35),n._,"instanceTypeName",null,0,1,Mf,!1,!0,!0,!0,!0,!1),Et(u(N(H(n.p),4),19),n.U,u(N(H(n.U),3),19),"ePackage",0,1,Mf,!0,!1,!1,!1,!0,!1,!1),Et(u(N(H(n.p),5),19),n.db,null,jJn,0,-1,Mf,!1,!1,!0,!0,!0,!1,!1),f=Tr(u(N(ft(n.p),0),62),n.e,EJn),$r(f,n.M,vy),Tr(u(N(ft(n.p),1),62),n.I,"getClassifierID"),fc(n.q,jU,"EDataType",!1,!1,!0),Ut(u(N(H(n.q),0),35),n.e,"serializable",nv,0,1,jU,!1,!1,!0,!1,!0,!1),fc(n.v,EA,"EEnum",!1,!1,!0),Et(u(N(H(n.v),0),19),n.w,u(N(H(n.w),3),19),"eLiterals",0,-1,EA,!1,!1,!0,!0,!1,!1,!1),f=Tr(u(N(ft(n.v),0),62),n.w,MJn),$r(f,n._,Qe),f=Tr(u(N(ft(n.v),1),62),n.w,MJn),$r(f,n.I,g8),f=Tr(u(N(ft(n.v),2),62),n.w,"getEEnumLiteralByLiteral"),$r(f,n._,"literal"),fc(n.w,Kl,sJn,!1,!1,!0),Ut(u(N(H(n.w),0),35),n.I,g8,null,0,1,Kl,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.w),1),35),n.A,"instance",null,0,1,Kl,!0,!1,!0,!1,!0,!1),Ut(u(N(H(n.w),2),35),n._,"literal",null,0,1,Kl,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.w),3),19),n.v,u(N(H(n.v),0),19),"eEnum",0,1,Kl,!0,!1,!1,!1,!1,!1,!1),fc(n.B,O9,"EFactory",!1,!1,!0),Et(u(N(H(n.B),0),19),n.U,u(N(H(n.U),2),19),"ePackage",1,1,O9,!0,!1,!0,!1,!1,!1,!1),f=Tr(u(N(ft(n.B),0),62),n.S,"create"),$r(f,n.o,"eClass"),f=Tr(u(N(ft(n.B),1),62),n.M,"createFromString"),$r(f,n.q,"eDataType"),$r(f,n._,"literalValue"),f=Tr(u(N(ft(n.B),2),62),n._,"convertToString"),$r(f,n.q,"eDataType"),$r(f,n.M,"instanceValue"),fc(n.Q,fE,sWn,!0,!1,!0),Et(u(N(H(n.Q),0),19),n.a,u(N(H(n.a),2),19),"eAnnotations",0,-1,fE,!1,!1,!0,!0,!1,!1,!1),f=Tr(u(N(ft(n.Q),0),62),n.a,"getEAnnotation"),$r(f,n._,lF),fc(n.R,gU,fWn,!0,!1,!0),Ut(u(N(H(n.R),0),35),n._,Qe,null,0,1,gU,!1,!1,!0,!1,!0,!1),fc(n.S,Aa,"EObject",!1,!1,!0),Tr(u(N(ft(n.S),0),62),n.o,"eClass"),Tr(u(N(ft(n.S),1),62),n.e,"eIsProxy"),Tr(u(N(ft(n.S),2),62),n.X,"eResource"),Tr(u(N(ft(n.S),3),62),n.S,"eContainer"),Tr(u(N(ft(n.S),4),62),n.bb,"eContainingFeature"),Tr(u(N(ft(n.S),5),62),n.W,"eContainmentFeature"),f=Tr(u(N(ft(n.S),6),62),null,"eContents"),e=al(n.fb),t=al(n.S),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),r=Kf(f,e,null),r&&r.oj(),f=Tr(u(N(ft(n.S),7),62),null,"eAllContents"),e=al(n.cb),t=al(n.S),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),c=Kf(f,e,null),c&&c.oj(),f=Tr(u(N(ft(n.S),8),62),null,"eCrossReferences"),e=al(n.fb),t=al(n.S),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),s=Kf(f,e,null),s&&s.oj(),f=Tr(u(N(ft(n.S),9),62),n.M,"eGet"),$r(f,n.bb,M8),f=Tr(u(N(ft(n.S),10),62),n.M,"eGet"),$r(f,n.bb,M8),$r(f,n.e,"resolve"),f=Tr(u(N(ft(n.S),11),62),null,"eSet"),$r(f,n.bb,M8),$r(f,n.M,"newValue"),f=Tr(u(N(ft(n.S),12),62),n.e,"eIsSet"),$r(f,n.bb,M8),f=Tr(u(N(ft(n.S),13),62),null,"eUnset"),$r(f,n.bb,M8),f=Tr(u(N(ft(n.S),14),62),n.M,"eInvoke"),$r(f,n.T,zcn),e=al(n.fb),t=gJ(),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),dS(f,e,"arguments"),Hwe(f,n.K),fc(n.T,Ps,hJn,!1,!1,!0),Et(u(N(H(n.T),0),19),n.o,u(N(H(n.o),3),19),TJn,0,1,Ps,!0,!1,!1,!1,!1,!1,!1),Et(u(N(H(n.T),1),19),n.db,null,jJn,0,-1,Ps,!1,!1,!0,!0,!0,!1,!1),Et(u(N(H(n.T),2),19),n.V,u(N(H(n.V),0),19),"eParameters",0,-1,Ps,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.T),3),19),n.p,null,"eExceptions",0,-1,Ps,!1,!1,!0,!1,!0,!0,!1),Et(u(N(H(n.T),4),19),n.H,null,"eGenericExceptions",0,-1,Ps,!1,!1,!0,!0,!1,!0,!1),Tr(u(N(ft(n.T),0),62),n.I,kJn),f=Tr(u(N(ft(n.T),1),62),n.e,"isOverrideOf"),$r(f,n.T,"someOperation"),fc(n.U,Ef,"EPackage",!1,!1,!0),Ut(u(N(H(n.U),0),35),n._,"nsURI",null,0,1,Ef,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.U),1),35),n._,"nsPrefix",null,0,1,Ef,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.U),2),19),n.B,u(N(H(n.B),0),19),"eFactoryInstance",1,1,Ef,!0,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.U),3),19),n.p,u(N(H(n.p),4),19),"eClassifiers",0,-1,Ef,!1,!1,!0,!0,!0,!1,!1),Et(u(N(H(n.U),4),19),n.U,u(N(H(n.U),5),19),"eSubpackages",0,-1,Ef,!1,!1,!0,!0,!0,!1,!1),Et(u(N(H(n.U),5),19),n.U,u(N(H(n.U),4),19),"eSuperPackage",0,1,Ef,!0,!1,!1,!1,!0,!1,!1),f=Tr(u(N(ft(n.U),0),62),n.p,"getEClassifier"),$r(f,n._,Qe),fc(n.V,y0,lJn,!1,!1,!0),Et(u(N(H(n.V),0),19),n.T,u(N(H(n.T),2),19),"eOperation",0,1,y0,!0,!1,!1,!1,!1,!1,!1),fc(n.W,eg,aJn,!1,!1,!0),Ut(u(N(H(n.W),0),35),n.e,"containment",null,0,1,eg,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.W),1),35),n.e,"container",null,0,1,eg,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.W),2),35),n.e,"resolveProxies",nv,0,1,eg,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.W),3),19),n.W,null,"eOpposite",0,1,eg,!1,!1,!0,!1,!0,!1,!1),Et(u(N(H(n.W),4),19),n.o,null,"eReferenceType",1,1,eg,!0,!0,!1,!1,!0,!1,!0),Et(u(N(H(n.W),5),19),n.b,null,"eKeys",0,-1,eg,!1,!1,!0,!1,!0,!1,!1),fc(n.bb,ku,cJn,!0,!1,!0),Ut(u(N(H(n.bb),0),35),n.e,"changeable",nv,0,1,ku,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.bb),1),35),n.e,"volatile",null,0,1,ku,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.bb),2),35),n.e,"transient",null,0,1,ku,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.bb),3),35),n._,"defaultValueLiteral",null,0,1,ku,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.bb),4),35),n.M,yJn,null,0,1,ku,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.bb),5),35),n.e,"unsettable",null,0,1,ku,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.bb),6),35),n.e,"derived",null,0,1,ku,!1,!1,!0,!1,!0,!1),Et(u(N(H(n.bb),7),19),n.o,u(N(H(n.o),13),19),TJn,0,1,ku,!0,!1,!1,!1,!1,!1,!1),Tr(u(N(ft(n.bb),0),62),n.I,vJn),f=Tr(u(N(ft(n.bb),1),62),null,"getContainerClass"),e=al(n.L),t=gJ(),ve((!e.d&&(e.d=new ti(jr,e,1)),e.d),t),i=Kf(f,e,null),i&&i.oj(),fc(n.eb,Zw,rJn,!0,!1,!0),Ut(u(N(H(n.eb),0),35),n.e,"ordered",nv,0,1,Zw,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.eb),1),35),n.e,"unique",nv,0,1,Zw,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.eb),2),35),n.I,"lowerBound",null,0,1,Zw,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.eb),3),35),n.I,"upperBound","1",0,1,Zw,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.eb),4),35),n.e,"many",null,0,1,Zw,!0,!0,!1,!1,!0,!0),Ut(u(N(H(n.eb),5),35),n.e,"required",null,0,1,Zw,!0,!0,!1,!1,!0,!0),Et(u(N(H(n.eb),6),19),n.p,null,"eType",0,1,Zw,!1,!0,!0,!1,!0,!0,!1),Et(u(N(H(n.eb),7),19),n.H,null,"eGenericType",0,1,Zw,!1,!0,!0,!0,!1,!0,!1),fc(n.ab,Id,"EStringToStringMapEntry",!1,!1,!1),Ut(u(N(H(n.ab),0),35),n._,"key",null,0,1,Id,!1,!1,!0,!1,!0,!1),Ut(u(N(H(n.ab),1),35),n._,g8,null,0,1,Id,!1,!1,!0,!1,!0,!1),fc(n.H,jr,fJn,!1,!1,!0),Et(u(N(H(n.H),0),19),n.H,null,"eUpperBound",0,1,jr,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.H),1),19),n.H,null,"eTypeArguments",0,-1,jr,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.H),2),19),n.p,null,"eRawType",1,1,jr,!0,!1,!1,!1,!0,!1,!0),Et(u(N(H(n.H),3),19),n.H,null,"eLowerBound",0,1,jr,!1,!1,!0,!0,!1,!1,!1),Et(u(N(H(n.H),4),19),n.db,null,"eTypeParameter",0,1,jr,!1,!1,!0,!1,!1,!1,!1),Et(u(N(H(n.H),5),19),n.p,null,"eClassifier",0,1,jr,!1,!1,!0,!1,!0,!1,!1),f=Tr(u(N(ft(n.H),0),62),n.e,EJn),$r(f,n.M,vy),fc(n.db,fu,dJn,!1,!1,!0),Et(u(N(H(n.db),0),19),n.H,null,"eBounds",0,-1,fu,!1,!1,!0,!0,!1,!1,!1),We(n.c,JF,"EBigDecimal",!0),We(n.d,l2,"EBigInteger",!0),We(n.e,so,"EBoolean",!0),We(n.f,Gt,"EBooleanObject",!0),We(n.i,Ru,"EByte",!0),We(n.g,C(Ru,1),"EByteArray",!0),We(n.j,p3,"EByteObject",!0),We(n.k,fs,"EChar",!0),We(n.n,S8,"ECharacterObject",!0),We(n.r,oI,"EDate",!0),We(n.s,mbn,"EDiagnosticChain",!1),We(n.t,Ii,"EDouble",!0),We(n.u,si,"EDoubleObject",!0),We(n.fb,Ndn,"EEList",!1),We(n.A,xdn,"EEnumerator",!1),We(n.C,cbn,"EFeatureMap",!1),We(n.D,MA,"EFeatureMapEntry",!1),We(n.F,cg,"EFloat",!0),We(n.G,sv,"EFloatObject",!0),We(n.I,ye,"EInt",!0),We(n.J,Gi,"EIntegerObject",!0),We(n.L,iun,"EJavaClass",!0),We(n.M,ki,"EJavaObject",!0),We(n.N,Ra,"ELong",!0),We(n.O,t0,"ELongObject",!0),We(n.P,run,"EMap",!1),We(n.X,ebn,"EResource",!1),We(n.Y,vbn,"EResourceSet",!1),We(n.Z,V2,"EShort",!0),We(n.$,i0,"EShortObject",!0),We(n._,fn,"EString",!0),We(n.cb,$dn,"ETreeIterator",!1),We(n.K,kbn,"EInvocationTargetException",!1),gY(n,ks))}var vy="object",i3="boolean",atn="number",nK="string",eK="function",et=2147483647,ac="java.lang",ky={3:1},yy="com.google.common.base",ur=", ",Czn="%s (%s) must not be negative",Kn={3:1,4:1,5:1},Szn="negative size: ",dtn="no calls to next() since the last call to remove()",Pzn="Optional.of(",gu="null",$m={204:1,51:1},Mn="com.google.common.collect",xm={204:1,51:1,128:1},md={229:1,3:1},Pi={51:1},le="java.util",Xb={85:1},pw={20:1,31:1,16:1},Ff=2063,Nu={20:1,31:1,16:1,21:1},btn={85:1,139:1,133:1},Izn={20:1,31:1,16:1,21:1,87:1},wtn={20:1,31:1,16:1,277:1,21:1,87:1},Hh={51:1,128:1},tK={358:1,44:1},Ozn="AbstractMapEntry",Azn="expectedValuesPerKey",J={3:1,6:1,4:1,5:1},wh=16384,Io={159:1},re={41:1},jy={202:1},Ey={l:4194303,m:4194303,h:524287},iK={253:1,3:1,34:1},Lzn="range unbounded on this side",qh={20:1},Nzn={20:1,16:1},gtn={3:1,20:1,31:1,16:1},Rm={307:1,3:1,20:1,31:1,16:1,15:1,59:1},WS={3:1,4:1,5:1,173:1},Km={3:1,85:1},rK={20:1,16:1,21:1},r3={3:1,20:1,31:1,16:1,21:1},Dzn={20:1,16:1,21:1,87:1},Uh=461845907,Gh=-862048943,My={3:1,6:1,4:1,5:1,173:1},$zn="expectedSize",Gs=1024,W5=1073741824,mw="initialArraySize",G={3:1,6:1,4:1,9:1,5:1},Bm={20:1,31:1,56:1,16:1,15:1},cK="arraySize",xzn={20:1,31:1,56:1,16:1,15:1,59:1},Le={46:1},JS={380:1},fa=1e-4,Wi=-2147483648,Rzn="__noinit__",Il={3:1,103:1,63:1,82:1},Ty="com.google.gwt.core.client.impl",ptn="String",mtn="com.google.gwt.core.client",uK="anonymous",oK="fnStack",vtn="Unknown",gh={201:1,3:1,4:1},d1=1e3,ui=65535,sK="January",fK="February",hK="March",lK="April",c3="May",aK="June",dK="July",bK="August",wK="September",gK="October",pK="November",mK="December",ha=1900,_e={53:1,3:1,4:1},Kzn="Before Christ",Bzn="Anno Domini",vK="Sunday",kK="Monday",yK="Tuesday",jK="Wednesday",EK="Thursday",MK="Friday",TK="Saturday",ktn="com.google.gwt.i18n.shared",Fzn="DateTimeFormat",CK="com.google.gwt.i18n.client",_zn="DefaultDateTimeFormatInfo",Hzn={3:1,4:1,34:1,206:1},u3="com.google.gwt.json.client",ro=4194303,Ol=1048575,Cy=524288,o3=4194304,vd=17592186044416,QS=1e9,Sy=-17592186044416,ytn="java.io",SK={3:1,103:1,77:1,63:1,82:1},qzn={3:1,296:1,82:1},Vb='For input string: "',Pt=1/0,li=-1/0,vw=4096,PK={3:1,4:1,376:1},Yn="org.eclipse.elk.layered",hr=65536,Py=55296,Cr={109:1,3:1,4:1},IK=1e5,Uzn=.3010299956639812,mr=4294967295,Fm="0.0",OK={44:1},_m="Unable to add element to queue",Gzn={3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1},zzn={3:1,20:1,31:1,56:1,16:1,15:1,59:1},Xzn={20:1,16:1,15:1},AK={3:1,50:1},Iy={189:1},n2={3:1,4:1,85:1},jtn={3:1,4:1,20:1,31:1,16:1,49:1,21:1},LK="delete",J5=14901161193847656e-24,Q5=11102230246251565e-32,NK=15525485,Oy=5960464477539063e-23,Etn=16777216,YS=16777215,Mtn=", length: ",Vzn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1},Ttn="subMap: ",Wzn=" less than ",DK={3:1,34:1,22:1,304:1},$K="java.util.function",Y5="java.util.logging",Jzn={3:1,4:1,5:1,856:1},xK="undefined",ai="java.util.stream",Ctn={533:1,687:1},ZS="fromIndex: ",Qzn=" > toIndex: ",Stn=", toIndex: ",Ptn="Index: ",Itn=", Size: ",Hm="org.eclipse.elk.alg.common",De={50:1},Yzn="org.eclipse.elk.alg.common.compaction",Zzn="Scanline/EventHandler",zh="org.eclipse.elk.alg.common.compaction.oned",nXn="CNode belongs to another CGroup.",eXn="ISpacingsHandler/1",RK="The ",KK=" instance has been finished already.",tXn="The direction ",iXn=" is not supported by the CGraph instance.",rXn="OneDimensionalCompactor",cXn="OneDimensionalCompactor/lambda$0$Type",uXn="Quadruplet",oXn="ScanlineConstraintCalculator",sXn="ScanlineConstraintCalculator/ConstraintsScanlineHandler",fXn="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",hXn="ScanlineConstraintCalculator/Timestamp",lXn="ScanlineConstraintCalculator/lambda$0$Type",ph={178:1,46:1},BK="org.eclipse.elk.alg.common.compaction.options",oc="org.eclipse.elk.core.data",Otn="org.eclipse.elk.polyomino.traversalStrategy",Atn="org.eclipse.elk.polyomino.lowLevelSort",Ltn="org.eclipse.elk.polyomino.highLevelSort",Ntn="org.eclipse.elk.polyomino.fill",ms={134:1},FK="polyomino",Z5="org.eclipse.elk.alg.common.networksimplex",Xh={183:1,3:1,4:1},aXn="org.eclipse.elk.alg.common.nodespacing",kd="org.eclipse.elk.alg.common.nodespacing.cellsystem",qm="CENTER",dXn={217:1,336:1},Dtn={3:1,4:1,5:1,603:1},s3="LEFT",f3="RIGHT",$tn="Vertical alignment cannot be null",xtn="BOTTOM",nP="org.eclipse.elk.alg.common.nodespacing.internal",n8="UNDEFINED",_f=.01,Ay="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",bXn="LabelPlacer/lambda$0$Type",wXn="LabelPlacer/lambda$1$Type",gXn="portRatioOrPosition",Um="org.eclipse.elk.alg.common.overlaps",_K="DOWN",mh="org.eclipse.elk.alg.common.polyomino",eP="NORTH",HK="EAST",qK="SOUTH",UK="WEST",tP="org.eclipse.elk.alg.common.polyomino.structures",Rtn="Direction",GK="Grid is only of size ",zK=". Requested point (",XK=") is out of bounds.",iP=" Given center based coordinates were (",Ly="org.eclipse.elk.graph.properties",pXn="IPropertyHolder",Ktn={3:1,96:1,137:1},h3="org.eclipse.elk.alg.common.spore",mXn="org.eclipse.elk.alg.common.utils",yd={205:1},e2="org.eclipse.elk.core",vXn="Connected Components Compaction",kXn="org.eclipse.elk.alg.disco",rP="org.eclipse.elk.alg.disco.graph",VK="org.eclipse.elk.alg.disco.options",Btn="CompactionStrategy",Ftn="org.eclipse.elk.disco.componentCompaction.strategy",_tn="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",Htn="org.eclipse.elk.disco.debug.discoGraph",qtn="org.eclipse.elk.disco.debug.discoPolys",yXn="componentCompaction",jd="org.eclipse.elk.disco",WK="org.eclipse.elk.spacing.componentComponent",JK="org.eclipse.elk.edge.thickness",l3="org.eclipse.elk.aspectRatio",Wb="org.eclipse.elk.padding",t2="org.eclipse.elk.alg.disco.transform",QK=1.5707963267948966,i2=17976931348623157e292,kw={3:1,4:1,5:1,198:1},jXn={3:1,6:1,4:1,5:1,100:1,115:1},YK="org.eclipse.elk.alg.force",Utn="ComponentsProcessor",EXn="ComponentsProcessor/1",Gtn="ElkGraphImporter/lambda$0$Type",Ny="org.eclipse.elk.alg.force.graph",MXn="Component Layout",ztn="org.eclipse.elk.alg.force.model",cP="org.eclipse.elk.force.model",Xtn="org.eclipse.elk.force.iterations",Vtn="org.eclipse.elk.force.repulsivePower",ZK="org.eclipse.elk.force.temperature",vh=.001,nB="org.eclipse.elk.force.repulsion",e8="org.eclipse.elk.alg.force.options",Gm=1.600000023841858,cu="org.eclipse.elk.force",Dy="org.eclipse.elk.priority",yw="org.eclipse.elk.spacing.nodeNode",eB="org.eclipse.elk.spacing.edgeLabel",uP="org.eclipse.elk.randomSeed",t8="org.eclipse.elk.separateConnectedComponents",i8="org.eclipse.elk.interactive",tB="org.eclipse.elk.portConstraints",oP="org.eclipse.elk.edgeLabels.inline",r8="org.eclipse.elk.omitNodeMicroLayout",zm="org.eclipse.elk.nodeSize.fixedGraphSize",a3="org.eclipse.elk.nodeSize.options",r2="org.eclipse.elk.nodeSize.constraints",Xm="org.eclipse.elk.nodeLabels.placement",Vm="org.eclipse.elk.portLabels.placement",$y="org.eclipse.elk.topdownLayout",xy="org.eclipse.elk.topdown.scaleFactor",Ry="org.eclipse.elk.topdown.hierarchicalNodeWidth",Ky="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",Jb="org.eclipse.elk.topdown.nodeType",Wtn="origin",TXn="random",CXn="boundingBox.upLeft",SXn="boundingBox.lowRight",Jtn="org.eclipse.elk.stress.fixed",Qtn="org.eclipse.elk.stress.desiredEdgeLength",Ytn="org.eclipse.elk.stress.dimension",Ztn="org.eclipse.elk.stress.epsilon",nin="org.eclipse.elk.stress.iterationLimit",la="org.eclipse.elk.stress",PXn="ELK Stress",d3="org.eclipse.elk.nodeSize.minimum",sP="org.eclipse.elk.alg.force.stress",IXn="Layered layout",b3="org.eclipse.elk.alg.layered",By="org.eclipse.elk.alg.layered.compaction.components",c8="org.eclipse.elk.alg.layered.compaction.oned",fP="org.eclipse.elk.alg.layered.compaction.oned.algs",Ed="org.eclipse.elk.alg.layered.compaction.recthull",Hf="org.eclipse.elk.alg.layered.components",kh="NONE",ein="MODEL_ORDER",Tc={3:1,6:1,4:1,9:1,5:1,126:1},OXn={3:1,6:1,4:1,5:1,150:1,100:1,115:1},hP="org.eclipse.elk.alg.layered.compound",vt={47:1},Kc="org.eclipse.elk.alg.layered.graph",iB=" -> ",AXn="Not supported by LGraph",tin="Port side is undefined",rB={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},b1={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},LXn={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},NXn=`([{"' \r
`,DXn=`)]}"' \r
`,$Xn="The given string contains parts that cannot be parsed as numbers.",Fy="org.eclipse.elk.core.math",xXn={3:1,4:1,140:1,214:1,423:1},RXn={3:1,4:1,107:1,214:1,423:1},w1="org.eclipse.elk.alg.layered.graph.transform",KXn="ElkGraphImporter",BXn="ElkGraphImporter/lambda$1$Type",FXn="ElkGraphImporter/lambda$2$Type",_Xn="ElkGraphImporter/lambda$4$Type",Qn="org.eclipse.elk.alg.layered.intermediate",HXn="Node margin calculation",qXn="ONE_SIDED_GREEDY_SWITCH",UXn="TWO_SIDED_GREEDY_SWITCH",cB="No implementation is available for the layout processor ",uB="IntermediateProcessorStrategy",oB="Node '",GXn="FIRST_SEPARATE",zXn="LAST_SEPARATE",XXn="Odd port side processing",di="org.eclipse.elk.alg.layered.intermediate.compaction",u8="org.eclipse.elk.alg.layered.intermediate.greedyswitch",Vh="org.eclipse.elk.alg.layered.p3order.counting",_y={230:1},w3="org.eclipse.elk.alg.layered.intermediate.loops",Oo="org.eclipse.elk.alg.layered.intermediate.loops.ordering",aa="org.eclipse.elk.alg.layered.intermediate.loops.routing",iin="org.eclipse.elk.alg.layered.intermediate.preserveorder",yh="org.eclipse.elk.alg.layered.intermediate.wrapping",Cc="org.eclipse.elk.alg.layered.options",sB="INTERACTIVE",rin="GREEDY",VXn="DEPTH_FIRST",WXn="EDGE_LENGTH",JXn="SELF_LOOPS",QXn="firstTryWithInitialOrder",cin="org.eclipse.elk.layered.directionCongruency",uin="org.eclipse.elk.layered.feedbackEdges",lP="org.eclipse.elk.layered.interactiveReferencePoint",oin="org.eclipse.elk.layered.mergeEdges",sin="org.eclipse.elk.layered.mergeHierarchyEdges",fin="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",hin="org.eclipse.elk.layered.portSortingStrategy",lin="org.eclipse.elk.layered.thoroughness",ain="org.eclipse.elk.layered.unnecessaryBendpoints",din="org.eclipse.elk.layered.generatePositionAndLayerIds",fB="org.eclipse.elk.layered.cycleBreaking.strategy",Hy="org.eclipse.elk.layered.layering.strategy",bin="org.eclipse.elk.layered.layering.layerConstraint",win="org.eclipse.elk.layered.layering.layerChoiceConstraint",gin="org.eclipse.elk.layered.layering.layerId",hB="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",lB="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",aB="org.eclipse.elk.layered.layering.nodePromotion.strategy",dB="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",bB="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",o8="org.eclipse.elk.layered.crossingMinimization.strategy",pin="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",wB="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",gB="org.eclipse.elk.layered.crossingMinimization.semiInteractive",min="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",vin="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",kin="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",yin="org.eclipse.elk.layered.crossingMinimization.positionId",jin="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",pB="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",aP="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",c2="org.eclipse.elk.layered.nodePlacement.strategy",dP="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",mB="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",vB="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",kB="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",yB="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",jB="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",Ein="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Min="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",bP="org.eclipse.elk.layered.edgeRouting.splines.mode",wP="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",EB="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",Tin="org.eclipse.elk.layered.spacing.baseValue",Cin="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",Sin="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",Pin="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",Iin="org.eclipse.elk.layered.priority.direction",Oin="org.eclipse.elk.layered.priority.shortness",Ain="org.eclipse.elk.layered.priority.straightness",MB="org.eclipse.elk.layered.compaction.connectedComponents",Lin="org.eclipse.elk.layered.compaction.postCompaction.strategy",Nin="org.eclipse.elk.layered.compaction.postCompaction.constraints",gP="org.eclipse.elk.layered.highDegreeNodes.treatment",TB="org.eclipse.elk.layered.highDegreeNodes.threshold",CB="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Al="org.eclipse.elk.layered.wrapping.strategy",pP="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",mP="org.eclipse.elk.layered.wrapping.correctionFactor",s8="org.eclipse.elk.layered.wrapping.cutting.strategy",SB="org.eclipse.elk.layered.wrapping.cutting.cuts",PB="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",vP="org.eclipse.elk.layered.wrapping.validify.strategy",kP="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",yP="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",jP="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",IB="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",Din="org.eclipse.elk.layered.edgeLabels.sideSelection",$in="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",EP="org.eclipse.elk.layered.considerModelOrder.strategy",xin="org.eclipse.elk.layered.considerModelOrder.portModelOrder",Rin="org.eclipse.elk.layered.considerModelOrder.noModelOrder",OB="org.eclipse.elk.layered.considerModelOrder.components",Kin="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",AB="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",LB="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",NB="layering",YXn="layering.minWidth",ZXn="layering.nodePromotion",Wm="crossingMinimization",MP="org.eclipse.elk.hierarchyHandling",nVn="crossingMinimization.greedySwitch",eVn="nodePlacement",tVn="nodePlacement.bk",iVn="edgeRouting",qy="org.eclipse.elk.edgeRouting",qf="spacing",Bin="priority",Fin="compaction",rVn="compaction.postCompaction",cVn="Specifies whether and how post-process compaction is applied.",_in="highDegreeNodes",Hin="wrapping",uVn="wrapping.cutting",oVn="wrapping.validify",qin="wrapping.multiEdge",DB="edgeLabels",f8="considerModelOrder",Uin="org.eclipse.elk.spacing.commentComment",Gin="org.eclipse.elk.spacing.commentNode",zin="org.eclipse.elk.spacing.edgeEdge",$B="org.eclipse.elk.spacing.edgeNode",Xin="org.eclipse.elk.spacing.labelLabel",Vin="org.eclipse.elk.spacing.labelPortHorizontal",Win="org.eclipse.elk.spacing.labelPortVertical",Jin="org.eclipse.elk.spacing.labelNode",Qin="org.eclipse.elk.spacing.nodeSelfLoop",Yin="org.eclipse.elk.spacing.portPort",Zin="org.eclipse.elk.spacing.individual",nrn="org.eclipse.elk.port.borderOffset",ern="org.eclipse.elk.noLayout",trn="org.eclipse.elk.port.side",Uy="org.eclipse.elk.debugMode",irn="org.eclipse.elk.alignment",rrn="org.eclipse.elk.insideSelfLoops.activate",crn="org.eclipse.elk.insideSelfLoops.yo",xB="org.eclipse.elk.direction",urn="org.eclipse.elk.nodeLabels.padding",orn="org.eclipse.elk.portLabels.nextToPortIfPossible",srn="org.eclipse.elk.portLabels.treatAsGroup",frn="org.eclipse.elk.portAlignment.default",hrn="org.eclipse.elk.portAlignment.north",lrn="org.eclipse.elk.portAlignment.south",arn="org.eclipse.elk.portAlignment.west",drn="org.eclipse.elk.portAlignment.east",TP="org.eclipse.elk.contentAlignment",brn="org.eclipse.elk.junctionPoints",wrn="org.eclipse.elk.edgeLabels.placement",grn="org.eclipse.elk.port.index",prn="org.eclipse.elk.commentBox",mrn="org.eclipse.elk.hypernode",vrn="org.eclipse.elk.port.anchor",RB="org.eclipse.elk.partitioning.activate",KB="org.eclipse.elk.partitioning.partition",CP="org.eclipse.elk.position",krn="org.eclipse.elk.margins",yrn="org.eclipse.elk.spacing.portsSurrounding",SP="org.eclipse.elk.interactiveLayout",dc="org.eclipse.elk.core.util",jrn={3:1,4:1,5:1,601:1},sVn="NETWORK_SIMPLEX",Ern="SIMPLE",vr={106:1,47:1},PP="org.eclipse.elk.alg.layered.p1cycles",Ll="org.eclipse.elk.alg.layered.p2layers",Mrn={413:1,230:1},fVn={846:1,3:1,4:1},Du="org.eclipse.elk.alg.layered.p3order",kr="org.eclipse.elk.alg.layered.p4nodes",hVn={3:1,4:1,5:1,854:1},jh=1e-5,da="org.eclipse.elk.alg.layered.p4nodes.bk",BB="org.eclipse.elk.alg.layered.p5edges",mf="org.eclipse.elk.alg.layered.p5edges.orthogonal",FB="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",_B=1e-6,jw="org.eclipse.elk.alg.layered.p5edges.splines",HB=.09999999999999998,IP=1e-8,lVn=4.71238898038469,Trn=3.141592653589793,Nl="org.eclipse.elk.alg.mrtree",qB=.10000000149011612,OP="SUPER_ROOT",h8="org.eclipse.elk.alg.mrtree.graph",Crn=-17976931348623157e292,Bc="org.eclipse.elk.alg.mrtree.intermediate",aVn="Processor compute fanout",AP={3:1,6:1,4:1,5:1,534:1,100:1,115:1},dVn="Set neighbors in level",Gy="org.eclipse.elk.alg.mrtree.options",bVn="DESCENDANTS",Srn="org.eclipse.elk.mrtree.compaction",Prn="org.eclipse.elk.mrtree.edgeEndTextureLength",Irn="org.eclipse.elk.mrtree.treeLevel",Orn="org.eclipse.elk.mrtree.positionConstraint",Arn="org.eclipse.elk.mrtree.weighting",Lrn="org.eclipse.elk.mrtree.edgeRoutingMode",Nrn="org.eclipse.elk.mrtree.searchOrder",wVn="Position Constraint",uu="org.eclipse.elk.mrtree",gVn="org.eclipse.elk.tree",pVn="Processor arrange level",Jm="org.eclipse.elk.alg.mrtree.p2order",po="org.eclipse.elk.alg.mrtree.p4route",Drn="org.eclipse.elk.alg.radial",Md=6.283185307179586,$rn="Before",xrn=5e-324,LP="After",Rrn="org.eclipse.elk.alg.radial.intermediate",mVn="COMPACTION",UB="org.eclipse.elk.alg.radial.intermediate.compaction",vVn={3:1,4:1,5:1,100:1},Krn="org.eclipse.elk.alg.radial.intermediate.optimization",GB="No implementation is available for the layout option ",l8="org.eclipse.elk.alg.radial.options",Brn="org.eclipse.elk.radial.centerOnRoot",Frn="org.eclipse.elk.radial.orderId",_rn="org.eclipse.elk.radial.radius",NP="org.eclipse.elk.radial.rotate",zB="org.eclipse.elk.radial.compactor",XB="org.eclipse.elk.radial.compactionStepSize",Hrn="org.eclipse.elk.radial.sorter",qrn="org.eclipse.elk.radial.wedgeCriteria",Urn="org.eclipse.elk.radial.optimizationCriteria",VB="org.eclipse.elk.radial.rotation.targetAngle",WB="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",Grn="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",kVn="Compaction",zrn="rotation",es="org.eclipse.elk.radial",yVn="org.eclipse.elk.alg.radial.p1position.wedge",Xrn="org.eclipse.elk.alg.radial.sorting",jVn=5.497787143782138,EVn=3.9269908169872414,MVn=2.356194490192345,TVn="org.eclipse.elk.alg.rectpacking",DP="org.eclipse.elk.alg.rectpacking.intermediate",JB="org.eclipse.elk.alg.rectpacking.options",Vrn="org.eclipse.elk.rectpacking.trybox",Wrn="org.eclipse.elk.rectpacking.currentPosition",Jrn="org.eclipse.elk.rectpacking.desiredPosition",Qrn="org.eclipse.elk.rectpacking.inNewRow",Yrn="org.eclipse.elk.rectpacking.widthApproximation.strategy",Zrn="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",ncn="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",ecn="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",tcn="org.eclipse.elk.rectpacking.packing.strategy",icn="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",rcn="org.eclipse.elk.rectpacking.packing.compaction.iterations",ccn="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",QB="widthApproximation",CVn="Compaction Strategy",SVn="packing.compaction",co="org.eclipse.elk.rectpacking",Qm="org.eclipse.elk.alg.rectpacking.p1widthapproximation",$P="org.eclipse.elk.alg.rectpacking.p2packing",PVn="No Compaction",ucn="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",zy="org.eclipse.elk.alg.rectpacking.util",xP="No implementation available for ",Ew="org.eclipse.elk.alg.spore",Mw="org.eclipse.elk.alg.spore.options",Qb="org.eclipse.elk.sporeCompaction",YB="org.eclipse.elk.underlyingLayoutAlgorithm",ocn="org.eclipse.elk.processingOrder.treeConstruction",scn="org.eclipse.elk.processingOrder.spanningTreeCostFunction",ZB="org.eclipse.elk.processingOrder.preferredRoot",nF="org.eclipse.elk.processingOrder.rootSelection",eF="org.eclipse.elk.structure.structureExtractionStrategy",fcn="org.eclipse.elk.compaction.compactionStrategy",hcn="org.eclipse.elk.compaction.orthogonal",lcn="org.eclipse.elk.overlapRemoval.maxIterations",acn="org.eclipse.elk.overlapRemoval.runScanline",tF="processingOrder",IVn="overlapRemoval",Ym="org.eclipse.elk.sporeOverlap",OVn="org.eclipse.elk.alg.spore.p1structure",iF="org.eclipse.elk.alg.spore.p2processingorder",rF="org.eclipse.elk.alg.spore.p3execution",AVn="Topdown Layout",LVn="Invalid index: ",Zm="org.eclipse.elk.core.alg",u2={341:1},Tw={295:1},NVn="Make sure its type is registered with the ",dcn=" utility class.",nv="true",cF="false",DVn="Couldn't clone property '",Yb=.05,uo="org.eclipse.elk.core.options",$Vn=1.2999999523162842,Zb="org.eclipse.elk.box",bcn="org.eclipse.elk.expandNodes",wcn="org.eclipse.elk.box.packingMode",xVn="org.eclipse.elk.algorithm",RVn="org.eclipse.elk.resolvedAlgorithm",gcn="org.eclipse.elk.bendPoints",iDe="org.eclipse.elk.labelManager",KVn="org.eclipse.elk.scaleFactor",BVn="org.eclipse.elk.childAreaWidth",FVn="org.eclipse.elk.childAreaHeight",_Vn="org.eclipse.elk.animate",HVn="org.eclipse.elk.animTimeFactor",qVn="org.eclipse.elk.layoutAncestors",UVn="org.eclipse.elk.maxAnimTime",GVn="org.eclipse.elk.minAnimTime",zVn="org.eclipse.elk.progressBar",XVn="org.eclipse.elk.validateGraph",VVn="org.eclipse.elk.validateOptions",WVn="org.eclipse.elk.zoomToFit",rDe="org.eclipse.elk.font.name",JVn="org.eclipse.elk.font.size",pcn="org.eclipse.elk.topdown.sizeApproximator",mcn="org.eclipse.elk.topdown.scaleCap",QVn="org.eclipse.elk.edge.type",YVn="partitioning",ZVn="nodeLabels",RP="portAlignment",uF="nodeSize",oF="port",vcn="portLabels",Xy="topdown",nWn="insideSelfLoops",a8="org.eclipse.elk.fixed",KP="org.eclipse.elk.random",kcn={3:1,34:1,22:1,347:1},eWn="port must have a parent node to calculate the port side",tWn="The edge needs to have exactly one edge section. Found: ",d8="org.eclipse.elk.core.util.adapters",ts="org.eclipse.emf.ecore",o2="org.eclipse.elk.graph",iWn="EMapPropertyHolder",rWn="ElkBendPoint",cWn="ElkGraphElement",uWn="ElkConnectableShape",ycn="ElkEdge",oWn="ElkEdgeSection",sWn="EModelElement",fWn="ENamedElement",jcn="ElkLabel",Ecn="ElkNode",Mcn="ElkPort",hWn={94:1,93:1},g3="org.eclipse.emf.common.notify.impl",ba="The feature '",b8="' is not a valid changeable feature",lWn="Expecting null",sF="' is not a valid feature",aWn="The feature ID",dWn=" is not a valid feature ID",kc=32768,bWn={110:1,94:1,93:1,58:1,54:1,99:1},qn="org.eclipse.emf.ecore.impl",Td="org.eclipse.elk.graph.impl",w8="Recursive containment not allowed for ",ev="The datatype '",n0="' is not a valid classifier",fF="The value '",s2={195:1,3:1,4:1},hF="The class '",tv="http://www.eclipse.org/elk/ElkGraph",Tcn="property",g8="value",lF="source",wWn="properties",gWn="identifier",aF="height",dF="width",bF="parent",wF="text",gF="children",pWn="hierarchical",Ccn="sources",pF="targets",Scn="sections",BP="bendPoints",Pcn="outgoingShape",Icn="incomingShape",Ocn="outgoingSections",Acn="incomingSections",or="org.eclipse.emf.common.util",Lcn="Severe implementation error in the Json to ElkGraph importer.",Eh="id",Ui="org.eclipse.elk.graph.json",Ncn="Unhandled parameter types: ",mWn="startPoint",vWn="An edge must have at least one source and one target (edge id: '",iv="').",kWn="Referenced edge section does not exist: ",yWn=" (edge id: '",Dcn="target",jWn="sourcePoint",EWn="targetPoint",FP="group",Qe="name",MWn="connectableShape cannot be null",TWn="edge cannot be null",mF="Passed edge is not 'simple'.",_P="org.eclipse.elk.graph.util",Vy="The 'no duplicates' constraint is violated",vF="targetIndex=",Cd=", size=",kF="sourceIndex=",Mh={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},yF={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},HP="logging",CWn="measureExecutionTime",SWn="parser.parse.1",PWn="parser.parse.2",qP="parser.next.1",jF="parser.next.2",IWn="parser.next.3",OWn="parser.next.4",Sd="parser.factor.1",$cn="parser.factor.2",AWn="parser.factor.3",LWn="parser.factor.4",NWn="parser.factor.5",DWn="parser.factor.6",$Wn="parser.atom.1",xWn="parser.atom.2",RWn="parser.atom.3",xcn="parser.atom.4",EF="parser.atom.5",Rcn="parser.cc.1",UP="parser.cc.2",KWn="parser.cc.3",BWn="parser.cc.5",Kcn="parser.cc.6",Bcn="parser.cc.7",MF="parser.cc.8",FWn="parser.ope.1",_Wn="parser.ope.2",HWn="parser.ope.3",g1="parser.descape.1",qWn="parser.descape.2",UWn="parser.descape.3",GWn="parser.descape.4",zWn="parser.descape.5",is="parser.process.1",XWn="parser.quantifier.1",VWn="parser.quantifier.2",WWn="parser.quantifier.3",JWn="parser.quantifier.4",Fcn="parser.quantifier.5",QWn="org.eclipse.emf.common.notify",_cn={424:1,686:1},YWn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},Wy={378:1,152:1},p8="index=",TF={3:1,4:1,5:1,129:1},ZWn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},Hcn={3:1,6:1,4:1,5:1,198:1},nJn={3:1,4:1,5:1,173:1,379:1},eJn=";/?:@&=+$,",tJn="invalid authority: ",iJn="EAnnotation",rJn="ETypedElement",cJn="EStructuralFeature",uJn="EAttribute",oJn="EClassifier",sJn="EEnumLiteral",fJn="EGenericType",hJn="EOperation",lJn="EParameter",aJn="EReference",dJn="ETypeParameter",Ct="org.eclipse.emf.ecore.util",CF={79:1},qcn={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},bJn="org.eclipse.emf.ecore.util.FeatureMap$Entry",$u=8192,Cw=2048,m8="byte",GP="char",v8="double",k8="float",y8="int",j8="long",E8="short",wJn="java.lang.Object",f2={3:1,4:1,5:1,254:1},Ucn={3:1,4:1,5:1,688:1},gJn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},Qr={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},Jy="mixed",Ke="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",vs="kind",pJn={3:1,4:1,5:1,689:1},Gcn={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},zP={20:1,31:1,56:1,16:1,15:1,61:1,71:1},XP={51:1,128:1,287:1},VP={76:1,343:1},WP="The value of type '",JP="' must be of type '",h2=1352,ks="http://www.eclipse.org/emf/2002/Ecore",QP=-32768,e0="constraints",Ji="baseType",mJn="getEStructuralFeature",vJn="getFeatureID",M8="feature",kJn="getOperationID",zcn="operation",yJn="defaultValue",jJn="eTypeParameters",EJn="isInstance",MJn="getEEnumLiteral",TJn="eContainingClass",ze={57:1},CJn={3:1,4:1,5:1,124:1},SJn="org.eclipse.emf.ecore.resource",PJn={94:1,93:1,599:1,2034:1},SF="org.eclipse.emf.ecore.resource.impl",Xcn="unspecified",Qy="simple",YP="attribute",IJn="attributeWildcard",ZP="element",PF="elementWildcard",vf="collapse",IF="itemType",nI="namespace",Yy="##targetNamespace",ys="whiteSpace",Vcn="wildcards",Pd="http://www.eclipse.org/emf/2003/XMLType",OF="##any",rv="uninitialized",Zy="The multiplicity constraint is violated",eI="org.eclipse.emf.ecore.xml.type",OJn="ProcessingInstruction",AJn="SimpleAnyType",LJn="XMLTypeDocumentRoot",oi="org.eclipse.emf.ecore.xml.type.impl",nj="INF",NJn="processing",DJn="ENTITIES_._base",Wcn="minLength",Jcn="ENTITY",tI="NCName",$Jn="IDREFS_._base",Qcn="integer",AF="token",LF="pattern",xJn="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",Ycn="\\i\\c*",RJn="[\\i-[:]][\\c-[:]]*",KJn="nonPositiveInteger",ej="maxInclusive",Zcn="NMTOKEN",BJn="NMTOKENS_._base",nun="nonNegativeInteger",tj="minInclusive",FJn="normalizedString",_Jn="unsignedByte",HJn="unsignedInt",qJn="18446744073709551615",UJn="unsignedShort",GJn="processingInstruction",p1="org.eclipse.emf.ecore.xml.type.internal",cv=1114111,zJn="Internal Error: shorthands: \\u",T8="xml:isDigit",NF="xml:isWord",DF="xml:isSpace",$F="xml:isNameChar",xF="xml:isInitialNameChar",XJn="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",VJn="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",WJn="Private Use",RF="ASSIGNED",KF="\0ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ֏ۿ܀ݏހऀॿঀ૿ఀ౿ಀഀൿༀက႟ႠჿᄀᇿሀᎠ᐀ᙿ ᚠក᠀Ḁỿἀ ⁰₠⃐℀⅏⅐←⇿∀⋿⌀⏿␀⑀①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⼀⿰ 〿ゟ゠ヿㄯ㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒐가힣豈ffﭏﭐ﷿︠︯︰﹏﹐ﹰ\uFEFF\uFEFF",eun="UNASSIGNED",uv={3:1,122:1},JJn="org.eclipse.emf.ecore.xml.type.util",iI={3:1,4:1,5:1,381:1},tun="org.eclipse.xtext.xbase.lib",QJn="Cannot add elements to a Range",YJn="Cannot set elements in a Range",ZJn="Cannot remove elements from a Range",nQn="user.agent",o,rI,BF;y.goog=y.goog||{},y.goog.global=y.goog.global||y,rI={},b(1,null,{},Ku),o.Fb=function(e){return YTn(this,e)},o.Gb=function(){return this.Rm},o.Hb=function(){return lb(this)},o.Ib=function(){var e;return Xa(wo(this))+"@"+(e=mt(this)>>>0,e.toString(16))},o.equals=function(n){return this.Fb(n)},o.hashCode=function(){return this.Hb()},o.toString=function(){return this.Ib()};var eQn,tQn,iQn;b(297,1,{297:1,2124:1},QQ),o.ve=function(e){var t;return t=new QQ,t.i=4,e>1?t.c=kAn(this,e-1):t.c=this,t},o.we=function(){return ll(this),this.b},o.xe=function(){return Xa(this)},o.ye=function(){return ll(this),this.k},o.ze=function(){return(this.i&4)!=0},o.Ae=function(){return(this.i&1)!=0},o.Ib=function(){return sQ(this)},o.i=0;var ki=w(ac,"Object",1),iun=w(ac,"Class",297);b(2096,1,ky),w(yy,"Optional",2096),b(1191,2096,ky,Ht),o.Fb=function(e){return e===this},o.Hb=function(){return 2040732332},o.Ib=function(){return"Optional.absent()"},o.Jb=function(e){return Pe(e),Zv(),FF};var FF;w(yy,"Absent",1191),b(636,1,{},yL),w(yy,"Joiner",636);var cDe=Dt(yy,"Predicate");b(589,1,{178:1,589:1,3:1,46:1},S8n),o.Mb=function(e){return kRn(this,e)},o.Lb=function(e){return kRn(this,e)},o.Fb=function(e){var t;return L(e,589)?(t=u(e,589),Vnn(this.a,t.a)):!1},o.Hb=function(){return iY(this.a)+306654252},o.Ib=function(){return Gje(this.a)},w(yy,"Predicates/AndPredicate",589),b(419,2096,{419:1,3:1},CE),o.Fb=function(e){var t;return L(e,419)?(t=u(e,419),rt(this.a,t.a)):!1},o.Hb=function(){return 1502476572+mt(this.a)},o.Ib=function(){return Pzn+this.a+")"},o.Jb=function(e){return new CE(CT(e.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},w(yy,"Present",419),b(204,1,$m),o.Nb=function(e){_i(this,e)},o.Qb=function(){_jn()},w(Mn,"UnmodifiableIterator",204),b(2076,204,xm),o.Qb=function(){_jn()},o.Rb=function(e){throw T(new Ie)},o.Wb=function(e){throw T(new Ie)},w(Mn,"UnmodifiableListIterator",2076),b(399,2076,xm),o.Ob=function(){return this.c<this.d},o.Sb=function(){return this.c>0},o.Pb=function(){if(this.c>=this.d)throw T(new nc);return this.Xb(this.c++)},o.Tb=function(){return this.c},o.Ub=function(){if(this.c<=0)throw T(new nc);return this.Xb(--this.c)},o.Vb=function(){return this.c-1},o.c=0,o.d=0,w(Mn,"AbstractIndexedListIterator",399),b(713,204,$m),o.Ob=function(){return E$(this)},o.Pb=function(){return tQ(this)},o.e=1,w(Mn,"AbstractIterator",713),b(2084,1,{229:1}),o.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},o.Fb=function(e){return G$(this,e)},o.Hb=function(){return mt(this.Zb())},o.dc=function(){return this.gc()==0},o.ec=function(){return Cp(this)},o.Ib=function(){return Jr(this.Zb())},w(Mn,"AbstractMultimap",2084),b(742,2084,md),o.$b=function(){gC(this)},o._b=function(e){return uEn(this,e)},o.ac=function(){return new h4(this,this.c)},o.ic=function(e){return this.hc()},o.bc=function(){return new Tg(this,this.c)},o.jc=function(){return this.mc(this.hc())},o.kc=function(){return new Tjn(this)},o.lc=function(){return nR(this.c.vc().Nc(),new Xe,64,this.d)},o.cc=function(e){return ot(this,e)},o.fc=function(e){return Ak(this,e)},o.gc=function(){return this.d},o.mc=function(e){return Ln(),new Q3(e)},o.nc=function(){return new Mjn(this)},o.oc=function(){return nR(this.c.Cc().Nc(),new Jt,64,this.d)},o.pc=function(e,t){return new VT(this,e,t,null)},o.d=0,w(Mn,"AbstractMapBasedMultimap",742),b(1696,742,md),o.hc=function(){return new Gc(this.a)},o.jc=function(){return Ln(),Ln(),sr},o.cc=function(e){return u(ot(this,e),15)},o.fc=function(e){return u(Ak(this,e),15)},o.Zb=function(){return Lp(this)},o.Fb=function(e){return G$(this,e)},o.qc=function(e){return u(ot(this,e),15)},o.rc=function(e){return u(Ak(this,e),15)},o.mc=function(e){return CD(u(e,15))},o.pc=function(e,t){return SLn(this,e,u(t,15),null)},w(Mn,"AbstractListMultimap",1696),b(748,1,Pi),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.c.Ob()||this.e.Ob()},o.Pb=function(){var e;return this.e.Ob()||(e=u(this.c.Pb(),44),this.b=e.ld(),this.a=u(e.md(),16),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},o.Qb=function(){this.e.Qb(),u(as(this.a),16).dc()&&this.c.Qb(),--this.d.d},w(Mn,"AbstractMapBasedMultimap/Itr",748),b(1129,748,Pi,Mjn),o.sc=function(e,t){return t},w(Mn,"AbstractMapBasedMultimap/1",1129),b(1130,1,{},Jt),o.Kb=function(e){return u(e,16).Nc()},w(Mn,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130),b(1131,748,Pi,Tjn),o.sc=function(e,t){return new ib(e,t)},w(Mn,"AbstractMapBasedMultimap/2",1131);var run=Dt(le,"Map");b(2065,1,Xb),o.wc=function(e){f5(this,e)},o.yc=function(e,t,i){return hx(this,e,t,i)},o.$b=function(){this.vc().$b()},o.tc=function(e){return xx(this,e)},o._b=function(e){return!!zZ(this,e,!1)},o.uc=function(e){var t,i,r;for(i=this.vc().Kc();i.Ob();)if(t=u(i.Pb(),44),r=t.md(),x(e)===x(r)||e!=null&&rt(e,r))return!0;return!1},o.Fb=function(e){var t,i,r;if(e===this)return!0;if(!L(e,85)||(r=u(e,85),this.gc()!=r.gc()))return!1;for(i=r.vc().Kc();i.Ob();)if(t=u(i.Pb(),44),!this.tc(t))return!1;return!0},o.xc=function(e){return Fr(zZ(this,e,!1))},o.Hb=function(){return XQ(this.vc())},o.dc=function(){return this.gc()==0},o.ec=function(){return new qa(this)},o.zc=function(e,t){throw T(new Fl("Put not supported on this map"))},o.Ac=function(e){s5(this,e)},o.Bc=function(e){return Fr(zZ(this,e,!0))},o.gc=function(){return this.vc().gc()},o.Ib=function(){return LFn(this)},o.Cc=function(){return new ol(this)},w(le,"AbstractMap",2065),b(2085,2065,Xb),o.bc=function(){return new VE(this)},o.vc=function(){return EIn(this)},o.ec=function(){var e;return e=this.g,e||(this.g=this.bc())},o.Cc=function(){var e;return e=this.i,e||(this.i=new JEn(this))},w(Mn,"Maps/ViewCachingAbstractMap",2085),b(402,2085,Xb,h4),o.xc=function(e){return hme(this,e)},o.Bc=function(e){return N6e(this,e)},o.$b=function(){this.d==this.e.c?this.e.$b():iT(new cW(this))},o._b=function(e){return rKn(this.d,e)},o.Ec=function(){return new P8n(this)},o.Dc=function(){return this.Ec()},o.Fb=function(e){return this===e||rt(this.d,e)},o.Hb=function(){return mt(this.d)},o.ec=function(){return this.e.ec()},o.gc=function(){return this.d.gc()},o.Ib=function(){return Jr(this.d)},w(Mn,"AbstractMapBasedMultimap/AsMap",402);var Ao=Dt(ac,"Iterable");b(31,1,pw),o.Jc=function(e){qi(this,e)},o.Lc=function(){return this.Oc()},o.Nc=function(){return new On(this,0)},o.Oc=function(){return new Cn(null,this.Nc())},o.Fc=function(e){throw T(new Fl("Add not supported on this collection"))},o.Gc=function(e){return Ki(this,e)},o.$b=function(){GW(this)},o.Hc=function(e){return iw(this,e,!1)},o.Ic=function(e){return Ek(this,e)},o.dc=function(){return this.gc()==0},o.Mc=function(e){return iw(this,e,!0)},o.Pc=function(){return wW(this)},o.Qc=function(e){return S5(this,e)},o.Ib=function(){return ca(this)},w(le,"AbstractCollection",31);var js=Dt(le,"Set");b(Ff,31,Nu),o.Nc=function(){return new On(this,1)},o.Fb=function(e){return WKn(this,e)},o.Hb=function(){return XQ(this)},w(le,"AbstractSet",Ff),b(2068,Ff,Nu),w(Mn,"Sets/ImprovedAbstractSet",2068),b(2069,2068,Nu),o.$b=function(){this.Rc().$b()},o.Hc=function(e){return NKn(this,e)},o.dc=function(){return this.Rc().dc()},o.Mc=function(e){var t;return this.Hc(e)&&L(e,44)?(t=u(e,44),this.Rc().ec().Mc(t.ld())):!1},o.gc=function(){return this.Rc().gc()},w(Mn,"Maps/EntrySet",2069),b(1127,2069,Nu,P8n),o.Hc=function(e){return kY(this.a.d.vc(),e)},o.Kc=function(){return new cW(this.a)},o.Rc=function(){return this.a},o.Mc=function(e){var t;return kY(this.a.d.vc(),e)?(t=u(as(u(e,44)),44),Y3e(this.a.e,t.ld()),!0):!1},o.Nc=function(){return D7(this.a.d.vc().Nc(),new I8n(this.a))},w(Mn,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127),b(1128,1,{},I8n),o.Kb=function(e){return TNn(this.a,u(e,44))},w(Mn,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128),b(746,1,Pi,cW),o.Nb=function(e){_i(this,e)},o.Pb=function(){var e;return e=u(this.b.Pb(),44),this.a=u(e.md(),16),TNn(this.c,e)},o.Ob=function(){return this.b.Ob()},o.Qb=function(){v4(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},w(Mn,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746),b(542,2068,Nu,VE),o.$b=function(){this.b.$b()},o.Hc=function(e){return this.b._b(e)},o.Jc=function(e){Pe(e),this.b.wc(new z8n(e))},o.dc=function(){return this.b.dc()},o.Kc=function(){return new n6(this.b.vc().Kc())},o.Mc=function(e){return this.b._b(e)?(this.b.Bc(e),!0):!1},o.gc=function(){return this.b.gc()},w(Mn,"Maps/KeySet",542),b(327,542,Nu,Tg),o.$b=function(){var e;iT((e=this.b.vc().Kc(),new Iz(this,e)))},o.Ic=function(e){return this.b.ec().Ic(e)},o.Fb=function(e){return this===e||rt(this.b.ec(),e)},o.Hb=function(){return mt(this.b.ec())},o.Kc=function(){var e;return e=this.b.vc().Kc(),new Iz(this,e)},o.Mc=function(e){var t,i;return i=0,t=u(this.b.Bc(e),16),t&&(i=t.gc(),t.$b(),this.a.d-=i),i>0},o.Nc=function(){return this.b.ec().Nc()},w(Mn,"AbstractMapBasedMultimap/KeySet",327),b(747,1,Pi,Iz),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.c.Ob()},o.Pb=function(){return this.a=u(this.c.Pb(),44),this.a.ld()},o.Qb=function(){var e;v4(!!this.a),e=u(this.a.md(),16),this.c.Qb(),this.b.a.d-=e.gc(),e.$b(),this.a=null},w(Mn,"AbstractMapBasedMultimap/KeySet/1",747),b(503,402,{85:1,133:1},S7),o.bc=function(){return this.Sc()},o.ec=function(){return this.Uc()},o.Sc=function(){return new e7(this.c,this.Wc())},o.Tc=function(){return this.Wc().Tc()},o.Uc=function(){var e;return e=this.b,e||(this.b=this.Sc())},o.Vc=function(){return this.Wc().Vc()},o.Wc=function(){return u(this.d,133)},w(Mn,"AbstractMapBasedMultimap/SortedAsMap",503),b(446,503,btn,D6),o.bc=function(){return new f4(this.a,u(u(this.d,133),139))},o.Sc=function(){return new f4(this.a,u(u(this.d,133),139))},o.ec=function(){var e;return e=this.b,u(e||(this.b=new f4(this.a,u(u(this.d,133),139))),277)},o.Uc=function(){var e;return e=this.b,u(e||(this.b=new f4(this.a,u(u(this.d,133),139))),277)},o.Wc=function(){return u(u(this.d,133),139)},o.Xc=function(e){return u(u(this.d,133),139).Xc(e)},o.Yc=function(e){return u(u(this.d,133),139).Yc(e)},o.Zc=function(e,t){return new D6(this.a,u(u(this.d,133),139).Zc(e,t))},o.$c=function(e){return u(u(this.d,133),139).$c(e)},o._c=function(e){return u(u(this.d,133),139)._c(e)},o.ad=function(e,t){return new D6(this.a,u(u(this.d,133),139).ad(e,t))},w(Mn,"AbstractMapBasedMultimap/NavigableAsMap",446),b(502,327,Izn,e7),o.Nc=function(){return this.b.ec().Nc()},w(Mn,"AbstractMapBasedMultimap/SortedKeySet",502),b(401,502,wtn,f4),w(Mn,"AbstractMapBasedMultimap/NavigableKeySet",401),b(551,31,pw,VT),o.Fc=function(e){var t,i;return eo(this),i=this.d.dc(),t=this.d.Fc(e),t&&(++this.f.d,i&&A7(this)),t},o.Gc=function(e){var t,i,r;return e.dc()?!1:(r=(eo(this),this.d.gc()),t=this.d.Gc(e),t&&(i=this.d.gc(),this.f.d+=i-r,r==0&&A7(this)),t)},o.$b=function(){var e;e=(eo(this),this.d.gc()),e!=0&&(this.d.$b(),this.f.d-=e,fT(this))},o.Hc=function(e){return eo(this),this.d.Hc(e)},o.Ic=function(e){return eo(this),this.d.Ic(e)},o.Fb=function(e){return e===this?!0:(eo(this),rt(this.d,e))},o.Hb=function(){return eo(this),mt(this.d)},o.Kc=function(){return eo(this),new HV(this)},o.Mc=function(e){var t;return eo(this),t=this.d.Mc(e),t&&(--this.f.d,fT(this)),t},o.gc=function(){return KTn(this)},o.Nc=function(){return eo(this),this.d.Nc()},o.Ib=function(){return eo(this),Jr(this.d)},w(Mn,"AbstractMapBasedMultimap/WrappedCollection",551);var rs=Dt(le,"List");b(744,551,{20:1,31:1,16:1,15:1},mW),o.jd=function(e){ud(this,e)},o.Nc=function(){return eo(this),this.d.Nc()},o.bd=function(e,t){var i;eo(this),i=this.d.dc(),u(this.d,15).bd(e,t),++this.a.d,i&&A7(this)},o.cd=function(e,t){var i,r,c;return t.dc()?!1:(c=(eo(this),this.d.gc()),i=u(this.d,15).cd(e,t),i&&(r=this.d.gc(),this.a.d+=r-c,c==0&&A7(this)),i)},o.Xb=function(e){return eo(this),u(this.d,15).Xb(e)},o.dd=function(e){return eo(this),u(this.d,15).dd(e)},o.ed=function(){return eo(this),new bCn(this)},o.fd=function(e){return eo(this),new ROn(this,e)},o.gd=function(e){var t;return eo(this),t=u(this.d,15).gd(e),--this.a.d,fT(this),t},o.hd=function(e,t){return eo(this),u(this.d,15).hd(e,t)},o.kd=function(e,t){return eo(this),SLn(this.a,this.e,u(this.d,15).kd(e,t),this.b?this.b:this)},w(Mn,"AbstractMapBasedMultimap/WrappedList",744),b(1126,744,{20:1,31:1,16:1,15:1,59:1},iSn),w(Mn,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126),b(628,1,Pi,HV),o.Nb=function(e){_i(this,e)},o.Ob=function(){return O4(this),this.b.Ob()},o.Pb=function(){return O4(this),this.b.Pb()},o.Qb=function(){_Cn(this)},w(Mn,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628),b(745,628,Hh,bCn,ROn),o.Qb=function(){_Cn(this)},o.Rb=function(e){var t;t=KTn(this.a)==0,(O4(this),u(this.b,128)).Rb(e),++this.a.a.d,t&&A7(this.a)},o.Sb=function(){return(O4(this),u(this.b,128)).Sb()},o.Tb=function(){return(O4(this),u(this.b,128)).Tb()},o.Ub=function(){return(O4(this),u(this.b,128)).Ub()},o.Vb=function(){return(O4(this),u(this.b,128)).Vb()},o.Wb=function(e){(O4(this),u(this.b,128)).Wb(e)},w(Mn,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745),b(743,551,Izn,oV),o.Nc=function(){return eo(this),this.d.Nc()},w(Mn,"AbstractMapBasedMultimap/WrappedSortedSet",743),b(1125,743,wtn,fCn),w(Mn,"AbstractMapBasedMultimap/WrappedNavigableSet",1125),b(1124,551,Nu,MSn),o.Nc=function(){return eo(this),this.d.Nc()},w(Mn,"AbstractMapBasedMultimap/WrappedSet",1124),b(1133,1,{},Xe),o.Kb=function(e){return s4e(u(e,44))},w(Mn,"AbstractMapBasedMultimap/lambda$1$Type",1133),b(1132,1,{},N8n),o.Kb=function(e){return new ib(this.a,e)},w(Mn,"AbstractMapBasedMultimap/lambda$2$Type",1132);var Id=Dt(le,"Map/Entry");b(358,1,tK),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),sh(this.ld(),t.ld())&&sh(this.md(),t.md())):!1},o.Hb=function(){var e,t;return e=this.ld(),t=this.md(),(e==null?0:mt(e))^(t==null?0:mt(t))},o.nd=function(e){throw T(new Ie)},o.Ib=function(){return this.ld()+"="+this.md()},w(Mn,Ozn,358),b(2086,31,pw),o.$b=function(){this.od().$b()},o.Hc=function(e){var t;return L(e,44)?(t=u(e,44),Ipe(this.od(),t.ld(),t.md())):!1},o.Mc=function(e){var t;return L(e,44)?(t=u(e,44),sLn(this.od(),t.ld(),t.md())):!1},o.gc=function(){return this.od().d},w(Mn,"Multimaps/Entries",2086),b(749,2086,pw,sG),o.Kc=function(){return this.a.kc()},o.od=function(){return this.a},o.Nc=function(){return this.a.lc()},w(Mn,"AbstractMultimap/Entries",749),b(750,749,Nu,uz),o.Nc=function(){return this.a.lc()},o.Fb=function(e){return ann(this,e)},o.Hb=function(){return vxn(this)},w(Mn,"AbstractMultimap/EntrySet",750),b(751,31,pw,fG),o.$b=function(){this.a.$b()},o.Hc=function(e){return S6e(this.a,e)},o.Kc=function(){return this.a.nc()},o.gc=function(){return this.a.d},o.Nc=function(){return this.a.oc()},w(Mn,"AbstractMultimap/Values",751),b(2087,31,{849:1,20:1,31:1,16:1}),o.Jc=function(e){Pe(e),Sg(this).Jc(new Y8n(e))},o.Nc=function(){var e;return e=Sg(this).Nc(),nR(e,new Tf,64|e.yd()&1296,this.a.d)},o.Fc=function(e){return bz(),!0},o.Gc=function(e){return Pe(this),Pe(e),L(e,552)?Lpe(u(e,849)):!e.dc()&&b$(this,e.Kc())},o.Hc=function(e){var t;return t=u(tw(Lp(this.a),e),16),(t?t.gc():0)>0},o.Fb=function(e){return nTe(this,e)},o.Hb=function(){return mt(Sg(this))},o.dc=function(){return Sg(this).dc()},o.Mc=function(e){return G_n(this,e,1)>0},o.Ib=function(){return Jr(Sg(this))},w(Mn,"AbstractMultiset",2087),b(2089,2068,Nu),o.$b=function(){gC(this.a.a)},o.Hc=function(e){var t,i;return L(e,504)?(i=u(e,425),u(i.a.md(),16).gc()<=0?!1:(t=$An(this.a,i.a.ld()),t==u(i.a.md(),16).gc())):!1},o.Mc=function(e){var t,i,r,c;return L(e,504)&&(i=u(e,425),t=i.a.ld(),r=u(i.a.md(),16).gc(),r!=0)?(c=this.a,UEe(c,t,r)):!1},w(Mn,"Multisets/EntrySet",2089),b(1139,2089,Nu,D8n),o.Kc=function(){return new Ojn(EIn(Lp(this.a.a)).Kc())},o.gc=function(){return Lp(this.a.a).gc()},w(Mn,"AbstractMultiset/EntrySet",1139),b(627,742,md),o.hc=function(){return this.pd()},o.jc=function(){return this.qd()},o.cc=function(e){return this.rd(e)},o.fc=function(e){return this.sd(e)},o.Zb=function(){var e;return e=this.f,e||(this.f=this.ac())},o.qd=function(){return Ln(),Ln(),hI},o.Fb=function(e){return G$(this,e)},o.rd=function(e){return u(ot(this,e),21)},o.sd=function(e){return u(Ak(this,e),21)},o.mc=function(e){return Ln(),new r4(u(e,21))},o.pc=function(e,t){return new MSn(this,e,u(t,21))},w(Mn,"AbstractSetMultimap",627),b(1723,627,md),o.hc=function(){return new Ul(this.b)},o.pd=function(){return new Ul(this.b)},o.jc=function(){return BW(new Ul(this.b))},o.qd=function(){return BW(new Ul(this.b))},o.cc=function(e){return u(u(ot(this,e),21),87)},o.rd=function(e){return u(u(ot(this,e),21),87)},o.fc=function(e){return u(u(Ak(this,e),21),87)},o.sd=function(e){return u(u(Ak(this,e),21),87)},o.mc=function(e){return L(e,277)?BW(u(e,277)):(Ln(),new zX(u(e,87)))},o.Zb=function(){var e;return e=this.f,e||(this.f=L(this.c,139)?new D6(this,u(this.c,139)):L(this.c,133)?new S7(this,u(this.c,133)):new h4(this,this.c))},o.pc=function(e,t){return L(t,277)?new fCn(this,e,u(t,277)):new oV(this,e,u(t,87))},w(Mn,"AbstractSortedSetMultimap",1723),b(1724,1723,md),o.Zb=function(){var e;return e=this.f,u(u(e||(this.f=L(this.c,139)?new D6(this,u(this.c,139)):L(this.c,133)?new S7(this,u(this.c,133)):new h4(this,this.c)),133),139)},o.ec=function(){var e;return e=this.i,u(u(e||(this.i=L(this.c,139)?new f4(this,u(this.c,139)):L(this.c,133)?new e7(this,u(this.c,133)):new Tg(this,this.c)),87),277)},o.bc=function(){return L(this.c,139)?new f4(this,u(this.c,139)):L(this.c,133)?new e7(this,u(this.c,133)):new Tg(this,this.c)},w(Mn,"AbstractSortedKeySortedSetMultimap",1724),b(2109,1,{2046:1}),o.Fb=function(e){return Tke(this,e)},o.Hb=function(){var e;return XQ((e=this.g,e||(this.g=new zA(this))))},o.Ib=function(){var e;return LFn((e=this.f,e||(this.f=new HX(this))))},w(Mn,"AbstractTable",2109),b(679,Ff,Nu,zA),o.$b=function(){Hjn()},o.Hc=function(e){var t,i;return L(e,479)?(t=u(e,697),i=u(tw(XIn(this.a),_1(t.c.e,t.b)),85),!!i&&kY(i.vc(),new ib(_1(t.c.c,t.a),Bp(t.c,t.b,t.a)))):!1},o.Kc=function(){return Ige(this.a)},o.Mc=function(e){var t,i;return L(e,479)?(t=u(e,697),i=u(tw(XIn(this.a),_1(t.c.e,t.b)),85),!!i&&u5e(i.vc(),new ib(_1(t.c.c,t.a),Bp(t.c,t.b,t.a)))):!1},o.gc=function(){return JPn(this.a)},o.Nc=function(){return $pe(this.a)},w(Mn,"AbstractTable/CellSet",679),b(2025,31,pw,x8n),o.$b=function(){Hjn()},o.Hc=function(e){return pye(this.a,e)},o.Kc=function(){return Oge(this.a)},o.gc=function(){return JPn(this.a)},o.Nc=function(){return oLn(this.a)},w(Mn,"AbstractTable/Values",2025),b(1697,1696,md),w(Mn,"ArrayListMultimapGwtSerializationDependencies",1697),b(520,1697,md,ML,oJ),o.hc=function(){return new Gc(this.a)},o.a=0,w(Mn,"ArrayListMultimap",520),b(678,2109,{678:1,2046:1,3:1},rHn),w(Mn,"ArrayTable",678),b(2021,399,xm,HCn),o.Xb=function(e){return new YQ(this.a,e)},w(Mn,"ArrayTable/1",2021),b(2022,1,{},O8n),o.td=function(e){return new YQ(this.a,e)},w(Mn,"ArrayTable/1methodref$getCell$Type",2022),b(2110,1,{697:1}),o.Fb=function(e){var t;return e===this?!0:L(e,479)?(t=u(e,697),sh(_1(this.c.e,this.b),_1(t.c.e,t.b))&&sh(_1(this.c.c,this.a),_1(t.c.c,t.a))&&sh(Bp(this.c,this.b,this.a),Bp(t.c,t.b,t.a))):!1},o.Hb=function(){return Ok(S(C(ki,1),Kn,1,5,[_1(this.c.e,this.b),_1(this.c.c,this.a),Bp(this.c,this.b,this.a)]))},o.Ib=function(){return"("+_1(this.c.e,this.b)+","+_1(this.c.c,this.a)+")="+Bp(this.c,this.b,this.a)},w(Mn,"Tables/AbstractCell",2110),b(479,2110,{479:1,697:1},YQ),o.a=0,o.b=0,o.d=0,w(Mn,"ArrayTable/2",479),b(2024,1,{},A8n),o.td=function(e){return LDn(this.a,e)},w(Mn,"ArrayTable/2methodref$getValue$Type",2024),b(2023,399,xm,qCn),o.Xb=function(e){return LDn(this.a,e)},w(Mn,"ArrayTable/3",2023),b(2077,2065,Xb),o.$b=function(){iT(this.kc())},o.vc=function(){return new G8n(this)},o.lc=function(){return new SOn(this.kc(),this.gc())},w(Mn,"Maps/IteratorBasedAbstractMap",2077),b(842,2077,Xb),o.$b=function(){throw T(new Ie)},o._b=function(e){return oEn(this.c,e)},o.kc=function(){return new UCn(this,this.c.b.c.gc())},o.lc=function(){return XN(this.c.b.c.gc(),16,new L8n(this))},o.xc=function(e){var t;return t=u($6(this.c,e),17),t?this.vd(t.a):null},o.dc=function(){return this.c.b.c.dc()},o.ec=function(){return eD(this.c)},o.zc=function(e,t){var i;if(i=u($6(this.c,e),17),!i)throw T(new Gn(this.ud()+" "+e+" not in "+eD(this.c)));return this.wd(i.a,t)},o.Bc=function(e){throw T(new Ie)},o.gc=function(){return this.c.b.c.gc()},w(Mn,"ArrayTable/ArrayMap",842),b(2020,1,{},L8n),o.td=function(e){return WIn(this.a,e)},w(Mn,"ArrayTable/ArrayMap/0methodref$getEntry$Type",2020),b(2018,358,tK,NEn),o.ld=function(){return q1e(this.a,this.b)},o.md=function(){return this.a.vd(this.b)},o.nd=function(e){return this.a.wd(this.b,e)},o.b=0,w(Mn,"ArrayTable/ArrayMap/1",2018),b(2019,399,xm,UCn),o.Xb=function(e){return WIn(this.a,e)},w(Mn,"ArrayTable/ArrayMap/2",2019),b(2017,842,Xb,xIn),o.ud=function(){return"Column"},o.vd=function(e){return Bp(this.b,this.a,e)},o.wd=function(e,t){return cRn(this.b,this.a,e,t)},o.a=0,w(Mn,"ArrayTable/Row",2017),b(843,842,Xb,HX),o.vd=function(e){return new xIn(this.a,e)},o.zc=function(e,t){return u(t,85),hhe()},o.wd=function(e,t){return u(t,85),lhe()},o.ud=function(){return"Row"},w(Mn,"ArrayTable/RowMap",843),b(1157,1,Io,DEn),o.Ad=function(e){return(this.a.yd()&-262&e)!=0},o.yd=function(){return this.a.yd()&-262},o.zd=function(){return this.a.zd()},o.Nb=function(e){this.a.Nb(new xEn(e,this.b))},o.Bd=function(e){return this.a.Bd(new $En(e,this.b))},w(Mn,"CollectSpliterators/1",1157),b(1158,1,re,$En),o.Cd=function(e){this.a.Cd(this.b.Kb(e))},w(Mn,"CollectSpliterators/1/lambda$0$Type",1158),b(1159,1,re,xEn),o.Cd=function(e){this.a.Cd(this.b.Kb(e))},w(Mn,"CollectSpliterators/1/lambda$1$Type",1159),b(1154,1,Io,cPn),o.Ad=function(e){return((16464|this.b)&e)!=0},o.yd=function(){return 16464|this.b},o.zd=function(){return this.a.zd()},o.Nb=function(e){this.a.Qe(new KEn(e,this.c))},o.Bd=function(e){return this.a.Re(new REn(e,this.c))},o.b=0,w(Mn,"CollectSpliterators/1WithCharacteristics",1154),b(1155,1,jy,REn),o.Dd=function(e){this.a.Cd(this.b.td(e))},w(Mn,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1155),b(1156,1,jy,KEn),o.Dd=function(e){this.a.Cd(this.b.td(e))},w(Mn,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1156),b(1150,1,Io),o.Ad=function(e){return(this.a&e)!=0},o.yd=function(){return this.a},o.zd=function(){return this.e&&(this.b=OX(this.b,this.e.zd())),OX(this.b,0)},o.Nb=function(e){this.e&&(this.e.Nb(e),this.e=null),this.c.Nb(new BEn(this,e)),this.b=0},o.Bd=function(e){for(;;){if(this.e&&this.e.Bd(e))return M6(this.b,Ey)&&(this.b=bs(this.b,1)),!0;if(this.e=null,!this.c.Bd(new R8n(this)))return!1}},o.a=0,o.b=0,w(Mn,"CollectSpliterators/FlatMapSpliterator",1150),b(1152,1,re,R8n),o.Cd=function(e){_ae(this.a,e)},w(Mn,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1152),b(1153,1,re,BEn),o.Cd=function(e){age(this.a,this.b,e)},w(Mn,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1153),b(1151,1150,Io,TLn),w(Mn,"CollectSpliterators/FlatMapSpliteratorOfObject",1151),b(253,1,iK),o.Fd=function(e){return this.Ed(u(e,253))},o.Ed=function(e){var t;return e==(bL(),HF)?1:e==(dL(),_F)?-1:(t=(YM(),mk(this.a,e.a)),t!=0?t:L(this,526)==L(e,526)?0:L(this,526)?1:-1)},o.Id=function(){return this.a},o.Fb=function(e){return mZ(this,e)},w(Mn,"Cut",253),b(1823,253,iK,Ejn),o.Ed=function(e){return e==this?0:1},o.Gd=function(e){throw T(new _G)},o.Hd=function(e){e.a+="+∞)"},o.Id=function(){throw T(new Ar(Lzn))},o.Hb=function(){return fl(),iZ(this)},o.Jd=function(e){return!1},o.Ib=function(){return"+∞"};var _F;w(Mn,"Cut/AboveAll",1823),b(526,253,{253:1,526:1,3:1,34:1},JCn),o.Gd=function(e){Lc((e.a+="(",e),this.a)},o.Hd=function(e){z1(Lc(e,this.a),93)},o.Hb=function(){return~mt(this.a)},o.Jd=function(e){return YM(),mk(this.a,e)<0},o.Ib=function(){return"/"+this.a+"\\"},w(Mn,"Cut/AboveValue",526),b(1822,253,iK,jjn),o.Ed=function(e){return e==this?0:-1},o.Gd=function(e){e.a+="(-∞"},o.Hd=function(e){throw T(new _G)},o.Id=function(){throw T(new Ar(Lzn))},o.Hb=function(){return fl(),iZ(this)},o.Jd=function(e){return!0},o.Ib=function(){return"-∞"};var HF;w(Mn,"Cut/BelowAll",1822),b(1824,253,iK,QCn),o.Gd=function(e){Lc((e.a+="[",e),this.a)},o.Hd=function(e){z1(Lc(e,this.a),41)},o.Hb=function(){return mt(this.a)},o.Jd=function(e){return YM(),mk(this.a,e)<=0},o.Ib=function(){return"\\"+this.a+"/"},w(Mn,"Cut/BelowValue",1824),b(547,1,qh),o.Jc=function(e){qi(this,e)},o.Ib=function(){return S5e(u(CT(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},w(Mn,"FluentIterable",547),b(442,547,qh,S6),o.Kc=function(){return new ie(ce(this.a.Kc(),new En))},w(Mn,"FluentIterable/2",442),b(1059,547,qh,cCn),o.Kc=function(){return $h(this)},w(Mn,"FluentIterable/3",1059),b(724,399,xm,qX),o.Xb=function(e){return this.a[e].Kc()},w(Mn,"FluentIterable/3/1",724),b(2070,1,{}),o.Ib=function(){return Jr(this.Kd().b)},w(Mn,"ForwardingObject",2070),b(2071,2070,Nzn),o.Kd=function(){return this.Ld()},o.Jc=function(e){qi(this,e)},o.Lc=function(){return this.Oc()},o.Nc=function(){return new On(this,0)},o.Oc=function(){return new Cn(null,this.Nc())},o.Fc=function(e){return this.Ld(),fEn()},o.Gc=function(e){return this.Ld(),hEn()},o.$b=function(){this.Ld(),lEn()},o.Hc=function(e){return this.Ld().Hc(e)},o.Ic=function(e){return this.Ld().Ic(e)},o.dc=function(){return this.Ld().b.dc()},o.Kc=function(){return this.Ld().Kc()},o.Mc=function(e){return this.Ld(),aEn()},o.gc=function(){return this.Ld().b.gc()},o.Pc=function(){return this.Ld().Pc()},o.Qc=function(e){return this.Ld().Qc(e)},w(Mn,"ForwardingCollection",2071),b(2078,31,gtn),o.Kc=function(){return this.Od()},o.Fc=function(e){throw T(new Ie)},o.Gc=function(e){throw T(new Ie)},o.Md=function(){var e;return e=this.c,e||(this.c=this.Nd())},o.$b=function(){throw T(new Ie)},o.Hc=function(e){return e!=null&&iw(this,e,!1)},o.Nd=function(){switch(this.gc()){case 0:return mb(),mb(),qF;case 1:return mb(),new VN(Pe(this.Od().Pb()));default:return new jW(this,this.Pc())}},o.Mc=function(e){throw T(new Ie)},w(Mn,"ImmutableCollection",2078),b(727,2078,gtn,BG),o.Kc=function(){return Fp(this.a.Kc())},o.Hc=function(e){return e!=null&&this.a.Hc(e)},o.Ic=function(e){return this.a.Ic(e)},o.dc=function(){return this.a.dc()},o.Od=function(){return Fp(this.a.Kc())},o.gc=function(){return this.a.gc()},o.Pc=function(){return this.a.Pc()},o.Qc=function(e){return this.a.Qc(e)},o.Ib=function(){return Jr(this.a)},w(Mn,"ForwardingImmutableCollection",727),b(307,2078,Rm),o.Kc=function(){return this.Od()},o.ed=function(){return this.Pd(0)},o.fd=function(e){return this.Pd(e)},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.kd=function(e,t){return this.Qd(e,t)},o.bd=function(e,t){throw T(new Ie)},o.cd=function(e,t){throw T(new Ie)},o.Md=function(){return this},o.Fb=function(e){return HMe(this,e)},o.Hb=function(){return xve(this)},o.dd=function(e){return e==null?-1:c7e(this,e)},o.Od=function(){return this.Pd(0)},o.Pd=function(e){return CN(this,e)},o.gd=function(e){throw T(new Ie)},o.hd=function(e,t){throw T(new Ie)},o.Qd=function(e,t){var i;return RC((i=new WEn(this),new Jl(i,e,t)))};var qF;w(Mn,"ImmutableList",307),b(2105,307,Rm),o.Kc=function(){return Fp(this.Rd().Kc())},o.kd=function(e,t){return RC(this.Rd().kd(e,t))},o.Hc=function(e){return e!=null&&this.Rd().Hc(e)},o.Ic=function(e){return this.Rd().Ic(e)},o.Fb=function(e){return rt(this.Rd(),e)},o.Xb=function(e){return _1(this,e)},o.Hb=function(){return mt(this.Rd())},o.dd=function(e){return this.Rd().dd(e)},o.dc=function(){return this.Rd().dc()},o.Od=function(){return Fp(this.Rd().Kc())},o.gc=function(){return this.Rd().gc()},o.Qd=function(e,t){return RC(this.Rd().kd(e,t))},o.Pc=function(){return this.Rd().Qc(F(ki,Kn,1,this.Rd().gc(),5,1))},o.Qc=function(e){return this.Rd().Qc(e)},o.Ib=function(){return Jr(this.Rd())},w(Mn,"ForwardingImmutableList",2105),b(729,1,Km),o.vc=function(){return Ja(this)},o.wc=function(e){f5(this,e)},o.ec=function(){return eD(this)},o.yc=function(e,t,i){return hx(this,e,t,i)},o.Cc=function(){return this.Vd()},o.$b=function(){throw T(new Ie)},o._b=function(e){return this.xc(e)!=null},o.uc=function(e){return this.Vd().Hc(e)},o.Td=function(){return new Ayn(this)},o.Ud=function(){return new Lyn(this)},o.Fb=function(e){return P6e(this,e)},o.Hb=function(){return Ja(this).Hb()},o.dc=function(){return this.gc()==0},o.zc=function(e,t){return fhe()},o.Bc=function(e){throw T(new Ie)},o.Ib=function(){return wje(this)},o.Vd=function(){return this.e?this.e:this.e=this.Ud()},o.c=null,o.d=null,o.e=null;var rQn;w(Mn,"ImmutableMap",729),b(730,729,Km),o._b=function(e){return oEn(this,e)},o.uc=function(e){return eMn(this.b,e)},o.Sd=function(){return eKn(new $8n(this))},o.Td=function(){return eKn(pOn(this.b))},o.Ud=function(){return oh(),new BG(gOn(this.b))},o.Fb=function(e){return tMn(this.b,e)},o.xc=function(e){return $6(this,e)},o.Hb=function(){return mt(this.b.c)},o.dc=function(){return this.b.c.dc()},o.gc=function(){return this.b.c.gc()},o.Ib=function(){return Jr(this.b.c)},w(Mn,"ForwardingImmutableMap",730),b(2072,2071,rK),o.Kd=function(){return this.Wd()},o.Ld=function(){return this.Wd()},o.Nc=function(){return new On(this,1)},o.Fb=function(e){return e===this||this.Wd().Fb(e)},o.Hb=function(){return this.Wd().Hb()},w(Mn,"ForwardingSet",2072),b(1085,2072,rK,$8n),o.Kd=function(){return P4(this.a.b)},o.Ld=function(){return P4(this.a.b)},o.Hc=function(e){if(L(e,44)&&u(e,44).ld()==null)return!1;try{return nMn(P4(this.a.b),e)}catch(t){if(t=Ot(t),L(t,212))return!1;throw T(t)}},o.Wd=function(){return P4(this.a.b)},o.Qc=function(e){var t;return t=eAn(P4(this.a.b),e),P4(this.a.b).b.gc()<t.length&&$t(t,P4(this.a.b).b.gc(),null),t},w(Mn,"ForwardingImmutableMap/1",1085),b(2079,2078,r3),o.Kc=function(){return this.Od()},o.Nc=function(){return new On(this,1)},o.Fb=function(e){return ann(this,e)},o.Hb=function(){return vxn(this)},w(Mn,"ImmutableSet",2079),b(719,2079,r3),o.Kc=function(){return Fp(new J3(this.a.b.Kc()))},o.Hc=function(e){return e!=null&&t7(this.a,e)},o.Ic=function(e){return YEn(this.a,e)},o.Hb=function(){return mt(this.a.b)},o.dc=function(){return this.a.b.dc()},o.Od=function(){return Fp(new J3(this.a.b.Kc()))},o.gc=function(){return this.a.b.gc()},o.Pc=function(){return this.a.b.Pc()},o.Qc=function(e){return ZEn(this.a,e)},o.Ib=function(){return Jr(this.a.b)},w(Mn,"ForwardingImmutableSet",719),b(2073,2072,Dzn),o.Kd=function(){return this.b},o.Ld=function(){return this.b},o.Wd=function(){return this.b},o.Nc=function(){return new cM(this)},w(Mn,"ForwardingSortedSet",2073),b(543,2077,Km,oS),o.Ac=function(e){s5(this,e)},o.Cc=function(){var e;return e=this.d,new vN(e||(this.d=new VA(this)))},o.$b=function(){nk(this)},o._b=function(e){return!!u5(this,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))))},o.uc=function(e){return j$n(this,e)},o.kc=function(){return new GCn(this,this)},o.wc=function(e){wAn(this,e)},o.xc=function(e){return Ng(this,e)},o.ec=function(){return new kN(this)},o.zc=function(e,t){return RS(this,e,t)},o.Bc=function(e){var t;return t=u5(this,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))),t?(zg(this,t),t.e=null,t.c=null,t.i):null},o.gc=function(){return this.i},o.xd=function(){var e;return e=this.d,new vN(e||(this.d=new VA(this)))},o.f=0,o.g=0,o.i=0,w(Mn,"HashBiMap",543),b(544,1,Pi),o.Nb=function(e){_i(this,e)},o.Ob=function(){return PLn(this)},o.Pb=function(){var e;if(!PLn(this))throw T(new nc);return e=u(as(this.c),303),this.c=e.c,this.f=e,--this.d,this.Xd(e)},o.Qb=function(){if(this.e.g!=this.b)throw T(new Ko);if(!this.f)throw T(new Ar(dtn));zg(this.e,this.f),this.b=this.e.g,this.f=null},o.b=0,o.d=0,o.f=null,w(Mn,"HashBiMap/Itr",544),b(1023,544,Pi,GCn),o.Xd=function(e){return new FEn(this,e)},w(Mn,"HashBiMap/1",1023),b(Gs,358,tK,FEn),o.ld=function(){return this.a.g},o.md=function(){return this.a.i},o.nd=function(e){var t,i,r;return i=this.a.i,r=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),r==this.a.f&&(x(e)===x(i)||e!=null&&rt(e,i))?e:(tRn(!o5(this.b.a,e,r),e),zg(this.b.a,this.a),t=new kT(this.a.g,this.a.a,e,r),ny(this.b.a,t,this.a),this.a.e=null,this.a.c=null,this.b.b=this.b.a.g,this.b.f==this.a&&(this.b.f=t),this.a=t,i)},w(Mn,"HashBiMap/1/MapEntry",Gs),b(246,358,{358:1,246:1,3:1,44:1},ib),o.ld=function(){return this.g},o.md=function(){return this.i},o.nd=function(e){throw T(new Ie)},w(Mn,"ImmutableEntry",246),b(303,246,{358:1,303:1,246:1,3:1,44:1},kT),o.a=0,o.f=0;var UF=w(Mn,"HashBiMap/BiEntry",303);b(619,2077,Km,VA),o.Ac=function(e){s5(this,e)},o.Cc=function(){return new kN(this.a)},o.$b=function(){nk(this.a)},o._b=function(e){return j$n(this.a,e)},o.kc=function(){return new zCn(this,this.a)},o.wc=function(e){Pe(e),wAn(this.a,new K8n(e))},o.xc=function(e){return pC(this,e)},o.ec=function(){return new vN(this)},o.zc=function(e,t){return YPe(this.a,e,t,!1)},o.Bc=function(e){var t;return t=o5(this.a,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))),t?(zg(this.a,t),t.e=null,t.c=null,t.g):null},o.gc=function(){return this.a.i},o.xd=function(){return new kN(this.a)},w(Mn,"HashBiMap/Inverse",619),b(1020,544,Pi,zCn),o.Xd=function(e){return new _En(this,e)},w(Mn,"HashBiMap/Inverse/1",1020),b(1021,358,tK,_En),o.ld=function(){return this.a.i},o.md=function(){return this.a.g},o.nd=function(e){var t,i,r;return r=this.a.g,t=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),t==this.a.a&&(x(e)===x(r)||e!=null&&rt(e,r))?e:(tRn(!u5(this.b.a.a,e,t),e),zg(this.b.a.a,this.a),i=new kT(e,t,this.a.i,this.a.f),this.a=i,ny(this.b.a.a,i,null),this.b.b=this.b.a.a.g,r)},w(Mn,"HashBiMap/Inverse/1/InverseEntry",1021),b(620,542,Nu,vN),o.Kc=function(){return new Cjn(this.a.a)},o.Mc=function(e){var t;return t=o5(this.a.a,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))),t?(zg(this.a.a,t),!0):!1},w(Mn,"HashBiMap/Inverse/InverseKeySet",620),b(1019,544,Pi,Cjn),o.Xd=function(e){return e.i},w(Mn,"HashBiMap/Inverse/InverseKeySet/1",1019),b(1022,1,{},K8n),o.Yd=function(e,t){_fe(this.a,e,t)},w(Mn,"HashBiMap/Inverse/lambda$0$Type",1022),b(618,542,Nu,kN),o.Kc=function(){return new Sjn(this.a)},o.Mc=function(e){var t;return t=u5(this.a,e,Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15)))),t?(zg(this.a,t),t.e=null,t.c=null,!0):!1},w(Mn,"HashBiMap/KeySet",618),b(1018,544,Pi,Sjn),o.Xd=function(e){return e.g},w(Mn,"HashBiMap/KeySet/1",1018),b(1123,627,md),w(Mn,"HashMultimapGwtSerializationDependencies",1123),b(271,1123,md,Mb),o.hc=function(){return new zE(Q0(this.a))},o.pd=function(){return new zE(Q0(this.a))},o.a=2,w(Mn,"HashMultimap",271),b(2097,307,Rm),o.Hc=function(e){return this.Zd().Hc(e)},o.dc=function(){return this.Zd().dc()},o.gc=function(){return this.Zd().gc()},w(Mn,"ImmutableAsList",2097),b(2030,730,Km),o.Vd=function(){return oh(),new lp(this.a)},o.Cc=function(){return oh(),new lp(this.a)},o.xd=function(){return oh(),new lp(this.a)},w(Mn,"ImmutableBiMap",2030),b(2075,1,{}),w(Mn,"ImmutableCollection/Builder",2075),b(1035,719,r3,Pjn),w(Mn,"ImmutableEnumSet",1035),b(980,399,xm,iPn),o.Xb=function(e){return this.a.Xb(e)},w(Mn,"ImmutableList/1",980),b(979,2075,{},zSn),w(Mn,"ImmutableList/Builder",979),b(623,204,$m,WA),o.Ob=function(){return this.a.Ob()},o.Pb=function(){return u(this.a.Pb(),44).ld()},w(Mn,"ImmutableMap/1",623),b(1054,1,{},Yi),o.Kb=function(e){return u(e,44).ld()},w(Mn,"ImmutableMap/2methodref$getKey$Type",1054),b(1053,1,{},XSn),w(Mn,"ImmutableMap/Builder",1053),b(2098,2079,r3),o.Md=function(){var e;return e=this.b,e||(this.b=new cL(this))},o.Nd=function(){return new jW(this,S5(this,F(ki,Kn,1,this.gc(),5,1)))},w(Mn,"ImmutableSet/CachingAsList",2098),b(2099,2098,r3),o.Kc=function(){var e;return e=Ja(this.a).Od(),new WA(e)},o.Nd=function(){return new cL(this)},o.Jc=function(e){var t,i;for(Pe(e),i=this.gc(),t=0;t<i;t++)e.Cd(u(Ja(this.a).Md().Xb(t),44).ld())},o.Od=function(){var e;return e=this.b,CN(e||(this.b=new cL(this)),0)},o.Nc=function(){return XN(this.gc(),1296,new F8n(this))},w(Mn,"IndexedImmutableSet",2099),b(1230,2099,r3,Ayn),o.Kc=function(){var e;return e=Ja(this.a).Od(),new WA(e)},o.Hc=function(e){return this.a._b(e)},o.Jc=function(e){Pe(e),f5(this.a,new B8n(e))},o.Od=function(){var e;return e=Ja(this.a).Od(),new WA(e)},o.gc=function(){return this.a.gc()},o.Nc=function(){return D7(Ja(this.a).Nc(),new Yi)},w(Mn,"ImmutableMapKeySet",1230),b(1231,1,{},B8n),o.Yd=function(e,t){oh(),this.a.Cd(e)},w(Mn,"ImmutableMapKeySet/lambda$0$Type",1231),b(1227,2078,gtn,Lyn),o.Kc=function(){return new GN(this)},o.Md=function(){var e;return e=Ja(this.a).Md(),new pCn(this,e)},o.Hc=function(e){return e!=null&&Mke(new GN(this),e)},o.Od=function(){return new GN(this)},o.gc=function(){return this.a.gc()},o.Nc=function(){return D7(Ja(this.a).Nc(),new Bi)},w(Mn,"ImmutableMapValues",1227),b(1228,1,{},Bi),o.Kb=function(e){return u(e,44).md()},w(Mn,"ImmutableMapValues/0methodref$getValue$Type",1228),b(637,204,$m,GN),o.Ob=function(){return this.a.Ob()},o.Pb=function(){return u(this.a.Pb(),44).md()},w(Mn,"ImmutableMapValues/1",637),b(1229,2097,Rm,pCn),o.Zd=function(){return this.a},o.Xb=function(e){return u(this.b.Xb(e),44).md()},w(Mn,"ImmutableMapValues/2",1229),b(1232,1,{},F8n),o.td=function(e){return QIn(this.a,e)},w(Mn,"IndexedImmutableSet/0methodref$get$Type",1232),b(638,2097,Rm,cL),o.Zd=function(){return this.a},o.Xb=function(e){return QIn(this.a,e)},o.gc=function(){return this.a.a.gc()},w(Mn,"IndexedImmutableSet/1",638),b(43,1,{},En),o.Kb=function(e){return u(e,20).Kc()},o.Fb=function(e){return this===e},w(Mn,"Iterables/10",43),b(1055,547,qh,BPn),o.Jc=function(e){Pe(e),this.b.Jc(new HEn(this.a,e))},o.Kc=function(){return TX(this)},w(Mn,"Iterables/4",1055),b(1056,1,re,HEn),o.Cd=function(e){sle(this.b,this.a,e)},w(Mn,"Iterables/4/lambda$0$Type",1056),b(1057,547,qh,FPn),o.Jc=function(e){Pe(e),qi(this.a,new UEn(e,this.b))},o.Kc=function(){return ce(new ne(this.a),this.b)},w(Mn,"Iterables/5",1057),b(1058,1,re,UEn),o.Cd=function(e){this.a.Cd(uCn(e))},w(Mn,"Iterables/5/lambda$0$Type",1058),b(1087,204,$m,_8n),o.Ob=function(){return this.a.Ob()},o.Pb=function(){return this.a.Pb()},w(Mn,"Iterators/1",1087),b(1088,713,$m,qEn),o.Yb=function(){for(var e;this.b.Ob();)if(e=this.b.Pb(),this.a.Lb(e))return e;return this.e=2,null},w(Mn,"Iterators/5",1088),b(497,1,Pi),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.b.Ob()},o.Pb=function(){return this.$d(this.b.Pb())},o.Qb=function(){this.b.Qb()},w(Mn,"TransformedIterator",497),b(1089,497,Pi,XCn),o.$d=function(e){return this.a.Kb(e)},w(Mn,"Iterators/6",1089),b(732,204,$m,hG),o.Ob=function(){return!this.a},o.Pb=function(){if(this.a)throw T(new nc);return this.a=!0,this.b},o.a=!1,w(Mn,"Iterators/9",732),b(1086,399,xm,lIn),o.Xb=function(e){return this.a[this.b+e]},o.b=0;var cQn;w(Mn,"Iterators/ArrayItr",1086),b(38,1,{38:1,51:1},ie),o.Nb=function(e){_i(this,e)},o.Ob=function(){return pe(this)},o.Pb=function(){return fe(this)},o.Qb=function(){if(!this.c)throw T(new Ar(dtn));this.c.Qb(),this.c=null},w(Mn,"Iterators/ConcatenatedIterator",38),b(22,1,{3:1,34:1,22:1}),o.Fd=function(e){return Rjn(this,u(e,22))},o.Fb=function(e){return this===e},o.Hb=function(){return lb(this)},o.Ib=function(){return PN(this)},o.g=0;var ke=w(ac,"Enum",22);b(549,22,{549:1,3:1,34:1,22:1,51:1},PCn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return!1},o.Pb=function(){throw T(new nc)},o.Qb=function(){v4(!1)};var GF,uQn=we(Mn,"Iterators/EmptyModifiableIterator",549,ke,kwe,H1e),oQn;b(1907,627,md),w(Mn,"LinkedHashMultimapGwtSerializationDependencies",1907),b(1908,1907,md,zRn),o.hc=function(){return new MN(Q0(this.b))},o.$b=function(){gC(this),V9(this.a,this.a)},o.pd=function(){return new MN(Q0(this.b))},o.ic=function(e){return new PRn(this,e,this.b)},o.kc=function(){return new NW(this)},o.lc=function(){var e;return new On((e=this.g,u(e||(this.g=new uz(this)),21)),17)},o.ec=function(){var e;return e=this.i,e||(this.i=new Tg(this,this.c))},o.nc=function(){return new sz(new NW(this))},o.oc=function(){var e;return D7(new On((e=this.g,u(e||(this.g=new uz(this)),21)),17),new hu)},o.b=2,w(Mn,"LinkedHashMultimap",1908),b(1911,1,{},hu),o.Kb=function(e){return u(e,44).md()},w(Mn,"LinkedHashMultimap/0methodref$getValue$Type",1911),b(834,1,Pi,NW),o.Nb=function(e){_i(this,e)},o.Pb=function(){return Nve(this)},o.Ob=function(){return this.a!=this.b.a},o.Qb=function(){v4(!!this.c),sLn(this.b,this.c.g,this.c.i),this.c=null},w(Mn,"LinkedHashMultimap/1",834),b(227,246,{358:1,246:1,227:1,604:1,3:1,44:1},_W),o._d=function(){return u(as(this.f),604)},o.ae=function(e){this.c=e},o.be=function(e){this.f=e},o.d=0;var sQn=w(Mn,"LinkedHashMultimap/ValueEntry",227);b(1909,2068,{604:1,20:1,31:1,16:1,21:1},PRn),o.Fc=function(e){var t,i,r,c,s;for(s=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),t=s&this.b.length-1,c=this.b[t],i=c;i;i=i.a)if(i.d==s&&sh(i.i,e))return!1;return r=new _W(this.c,e,s,c),Fjn(this.d,r),r.f=this,this.d=r,V9(u(as(this.g.a.b),227),r),V9(r,this.g.a),this.b[t]=r,++this.f,++this.e,jke(this),!0},o.$b=function(){var e,t;for(u7(this.b,null),this.f=0,e=this.a;e!=this;e=e._d())t=u(e,227),V9(u(as(t.b),227),u(as(t.e),227));this.a=this,this.d=this,++this.e},o.Hc=function(e){var t,i;for(i=Se(er(Uh,xh(Se(er(e==null?0:mt(e),Gh)),15))),t=this.b[i&this.b.length-1];t;t=t.a)if(t.d==i&&sh(t.i,e))return!0;return!1},o.Jc=function(e){var t;for(Pe(e),t=this.a;t!=this;t=t._d())e.Cd(u(t,227).i)},o._d=function(){return this.a},o.Kc=function(){return new iOn(this)},o.Mc=function(e){return fqn(this,e)},o.ae=function(e){this.d=e},o.be=function(e){this.a=e},o.gc=function(){return this.f},o.e=0,o.f=0,w(Mn,"LinkedHashMultimap/ValueSet",1909),b(1910,1,Pi,iOn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return iW(this),this.b!=this.c},o.Pb=function(){var e,t;if(iW(this),this.b==this.c)throw T(new nc);return e=u(this.b,227),t=e.i,this.d=e,this.b=u(as(e.f),604),t},o.Qb=function(){iW(this),v4(!!this.d),fqn(this.c,this.d.i),this.a=this.c.e,this.d=null},o.a=0,w(Mn,"LinkedHashMultimap/ValueSet/1",1910),b(780,2084,md,GTn),o.Zb=function(){var e;return e=this.f,e||(this.f=new Fz(this))},o.Fb=function(e){return G$(this,e)},o.cc=function(e){return new SL(this,e)},o.fc=function(e){return GJ(this,e)},o.$b=function(){BIn(this)},o._b=function(e){return QEn(this,e)},o.ac=function(){return new Fz(this)},o.bc=function(){return new q8n(this)},o.qc=function(e){return new SL(this,e)},o.dc=function(){return!this.a},o.rc=function(e){return GJ(this,e)},o.gc=function(){return this.d},o.c=0,o.d=0,w(Mn,"LinkedListMultimap",780),b(56,31,Bm),o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.bd=function(e,t){throw T(new Fl("Add not supported on this list"))},o.Fc=function(e){return this.bd(this.gc(),e),!0},o.cd=function(e,t){var i,r,c;for(Jn(t),i=!1,c=t.Kc();c.Ob();)r=c.Pb(),this.bd(e++,r),i=!0;return i},o.$b=function(){this.ce(0,this.gc())},o.Fb=function(e){return Vnn(this,e)},o.Hb=function(){return iY(this)},o.dd=function(e){return J$n(this,e)},o.Kc=function(){return new zv(this)},o.ed=function(){return this.fd(0)},o.fd=function(e){return new xi(this,e)},o.gd=function(e){throw T(new Fl("Remove not supported on this list"))},o.ce=function(e,t){var i,r;for(r=this.fd(e),i=e;i<t;++i)r.Pb(),r.Qb()},o.hd=function(e,t){throw T(new Fl("Set not supported on this list"))},o.kd=function(e,t){return new Jl(this,e,t)},o.j=0,w(le,"AbstractList",56),b(2062,56,Bm),o.bd=function(e,t){g4(this,e,t)},o.cd=function(e,t){return IRn(this,e,t)},o.Xb=function(e){return Zo(this,e)},o.Kc=function(){return this.fd(0)},o.gd=function(e){return Ux(this,e)},o.hd=function(e,t){var i,r;i=this.fd(e);try{return r=i.Pb(),i.Wb(t),r}catch(c){throw c=Ot(c),L(c,112)?T(new Or("Can't set element "+e)):T(c)}},w(le,"AbstractSequentialList",2062),b(646,2062,Bm,SL),o.fd=function(e){return WCn(this,e)},o.gc=function(){var e;return e=u(ee(this.a.b,this.b),260),e?e.a:0},w(Mn,"LinkedListMultimap/1",646),b(1316,2068,Nu,q8n),o.Hc=function(e){return QEn(this.a,e)},o.Kc=function(){return new bxn(this.a)},o.Mc=function(e){return!GJ(this.a,e).a.dc()},o.gc=function(){return c6(this.a.b)},w(Mn,"LinkedListMultimap/1KeySetImpl",1316),b(1315,1,Pi,bxn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return rW(this),!!this.c},o.Pb=function(){if(rW(this),!this.c)throw T(new nc);this.a=this.c,fi(this.d,this.a.a);do this.c=this.c.b;while(this.c&&!fi(this.d,this.c.a));return this.a.a},o.Qb=function(){rW(this),v4(!!this.a),iT(new f$(this.e,this.a.a)),this.a=null,this.b=this.e.c},o.b=0,w(Mn,"LinkedListMultimap/DistinctKeyIterator",1315),b(260,1,{260:1},QW),o.a=0,w(Mn,"LinkedListMultimap/KeyList",260),b(511,358,{358:1,511:1,44:1},GEn),o.ld=function(){return this.a},o.md=function(){return this.f},o.nd=function(e){var t;return t=this.f,this.f=e,t},w(Mn,"LinkedListMultimap/Node",511),b(566,1,Hh,f$,k_n),o.Nb=function(e){_i(this,e)},o.Rb=function(e){this.e=Pen(this.f,this.b,e,this.c),++this.d,this.a=null},o.Ob=function(){return!!this.c},o.Sb=function(){return!!this.e},o.Pb=function(){return oQ(this)},o.Tb=function(){return this.d},o.Ub=function(){return t$n(this)},o.Vb=function(){return this.d-1},o.Qb=function(){v4(!!this.a),this.a!=this.c?(this.e=this.a.e,--this.d):this.c=this.a.c,BTe(this.f,this.a),this.a=null},o.Wb=function(e){FX(!!this.a),this.a.f=e},o.d=0,w(Mn,"LinkedListMultimap/ValueForKeyIterator",566),b(1031,56,Bm),o.bd=function(e,t){this.a.bd(e,t)},o.cd=function(e,t){return this.a.cd(e,t)},o.Hc=function(e){return this.a.Hc(e)},o.Xb=function(e){return this.a.Xb(e)},o.gd=function(e){return this.a.gd(e)},o.hd=function(e,t){return this.a.hd(e,t)},o.gc=function(){return this.a.gc()},w(Mn,"Lists/AbstractListWrapper",1031),b(1032,1031,xzn),w(Mn,"Lists/RandomAccessListWrapper",1032),b(1034,1032,xzn,WEn),o.fd=function(e){return this.a.fd(e)},w(Mn,"Lists/1",1034),b(441,56,{441:1,20:1,31:1,56:1,16:1,15:1},Oz),o.bd=function(e,t){this.a.bd(M4(this,e),t)},o.$b=function(){this.a.$b()},o.Xb=function(e){return this.a.Xb(LW(this,e))},o.Kc=function(){return _An(this,0)},o.fd=function(e){return _An(this,e)},o.gd=function(e){return this.a.gd(LW(this,e))},o.ce=function(e,t){(pLn(e,t,this.a.gc()),Qo(this.a.kd(M4(this,t),M4(this,e)))).$b()},o.hd=function(e,t){return this.a.hd(LW(this,e),t)},o.gc=function(){return this.a.gc()},o.kd=function(e,t){return pLn(e,t,this.a.gc()),Qo(this.a.kd(M4(this,t),M4(this,e)))},w(Mn,"Lists/ReverseList",441),b(1030,441,{441:1,20:1,31:1,56:1,16:1,15:1,59:1},Ijn),w(Mn,"Lists/RandomAccessReverseList",1030),b(1033,1,Hh,zEn),o.Nb=function(e){_i(this,e)},o.Rb=function(e){this.c.Rb(e),this.c.Ub(),this.a=!1},o.Ob=function(){return this.c.Sb()},o.Sb=function(){return this.c.Ob()},o.Pb=function(){if(!this.c.Sb())throw T(new nc);return this.a=!0,this.c.Ub()},o.Tb=function(){return M4(this.b,this.c.Tb())},o.Ub=function(){if(!this.c.Ob())throw T(new nc);return this.a=!0,this.c.Pb()},o.Vb=function(){return M4(this.b,this.c.Tb())-1},o.Qb=function(){v4(this.a),this.c.Qb(),this.a=!1},o.Wb=function(e){FX(this.a),this.c.Wb(e)},o.a=!1,w(Mn,"Lists/ReverseList/1",1033),b(440,497,Pi,n6),o.$d=function(e){return rM(e)},w(Mn,"Maps/1",440),b(712,497,Pi,sz),o.$d=function(e){return u(e,44).md()},w(Mn,"Maps/2",712),b(975,497,Pi,VCn),o.$d=function(e){return new ib(e,ZTn(this.a,e))},w(Mn,"Maps/3",975),b(972,2069,Nu,G8n),o.Jc=function(e){zfe(this.a,e)},o.Kc=function(){return this.a.kc()},o.Rc=function(){return this.a},o.Nc=function(){return this.a.lc()},w(Mn,"Maps/IteratorBasedAbstractMap/1",972),b(973,1,{},z8n),o.Yd=function(e,t){this.a.Cd(e)},w(Mn,"Maps/KeySet/lambda$0$Type",973),b(971,31,pw,JEn),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a.uc(e)},o.Jc=function(e){Pe(e),this.a.wc(new U8n(e))},o.dc=function(){return this.a.dc()},o.Kc=function(){return new sz(this.a.vc().Kc())},o.Mc=function(e){var t,i;try{return iw(this,e,!0)}catch(r){if(r=Ot(r),L(r,48)){for(i=this.a.vc().Kc();i.Ob();)if(t=u(i.Pb(),44),sh(e,t.md()))return this.a.Bc(t.ld()),!0;return!1}else throw T(r)}},o.gc=function(){return this.a.gc()},w(Mn,"Maps/Values",971),b(974,1,{},U8n),o.Yd=function(e,t){this.a.Cd(t)},w(Mn,"Maps/Values/lambda$0$Type",974),b(752,2085,Xb,Fz),o.xc=function(e){return this.a._b(e)?this.a.cc(e):null},o.Bc=function(e){return this.a._b(e)?this.a.fc(e):null},o.$b=function(){this.a.$b()},o._b=function(e){return this.a._b(e)},o.Ec=function(){return new X8n(this)},o.Dc=function(){return this.Ec()},o.dc=function(){return this.a.dc()},o.ec=function(){return this.a.ec()},o.gc=function(){return this.a.ec().gc()},w(Mn,"Multimaps/AsMap",752),b(1134,2069,Nu,X8n),o.Kc=function(){return l1e(this.a.a.ec(),new V8n(this))},o.Rc=function(){return this.a},o.Mc=function(e){var t;return NKn(this,e)?(t=u(as(u(e,44)),44),ehe(this.a,t.ld()),!0):!1},w(Mn,"Multimaps/AsMap/EntrySet",1134),b(1138,1,{},V8n),o.Kb=function(e){return ZTn(this,e)},o.Fb=function(e){return this===e},w(Mn,"Multimaps/AsMap/EntrySet/1",1138),b(552,2087,{552:1,849:1,20:1,31:1,16:1},W8n),o.$b=function(){gC(this.a)},o.Hc=function(e){return uEn(this.a,e)},o.Jc=function(e){Pe(e),qi(G6(this.a),new Q8n(e))},o.Kc=function(){return new n6(G6(this.a).a.kc())},o.gc=function(){return this.a.d},o.Nc=function(){return D7(G6(this.a).Nc(),new Qc)},w(Mn,"Multimaps/Keys",552),b(1136,1,{},Qc),o.Kb=function(e){return u(e,44).ld()},w(Mn,"Multimaps/Keys/0methodref$getKey$Type",1136),b(1135,497,Pi,Ojn),o.$d=function(e){return new J8n(u(e,44))},w(Mn,"Multimaps/Keys/1",1135),b(2088,1,{425:1}),o.Fb=function(e){var t;return L(e,504)?(t=u(e,425),u(this.a.md(),16).gc()==u(t.a.md(),16).gc()&&sh(this.a.ld(),t.a.ld())):!1},o.Hb=function(){var e;return e=this.a.ld(),(e==null?0:mt(e))^u(this.a.md(),16).gc()},o.Ib=function(){var e,t;return t=A6(this.a.ld()),e=u(this.a.md(),16).gc(),e==1?t:t+" x "+e},w(Mn,"Multisets/AbstractEntry",2088),b(504,2088,{504:1,425:1},J8n),w(Mn,"Multimaps/Keys/1/1",504),b(1137,1,re,Q8n),o.Cd=function(e){this.a.Cd(u(e,44).ld())},w(Mn,"Multimaps/Keys/lambda$1$Type",1137),b(1140,1,re,Bu),o.Cd=function(e){D0e(u(e,425))},w(Mn,"Multiset/lambda$0$Type",1140),b(753,1,re,Y8n),o.Cd=function(e){vme(this.a,u(e,425))},w(Mn,"Multiset/lambda$1$Type",753),b(1141,1,{},Ir),w(Mn,"Multisets/0methodref$add$Type",1141),b(754,1,{},Tf),o.Kb=function(e){return Hpe(u(e,425))},w(Mn,"Multisets/lambda$1$Type",754),b(2106,1,ky),w(Mn,"RangeGwtSerializationDependencies",2106),b(521,2106,{178:1,521:1,3:1,46:1},fZ),o.Lb=function(e){return TIn(this,u(e,34))},o.Mb=function(e){return TIn(this,u(e,34))},o.Fb=function(e){var t;return L(e,521)?(t=u(e,521),mZ(this.a,t.a)&&mZ(this.b,t.b)):!1},o.Hb=function(){return this.a.Hb()*31+this.b.Hb()},o.Ib=function(){return qLn(this.a,this.b)},w(Mn,"Range",521),b(654,2097,Rm,jW),o.fd=function(e){return CN(this.b,e)},o.Zd=function(){return this.a},o.Xb=function(e){return _1(this.b,e)},o.Pd=function(e){return CN(this.b,e)},w(Mn,"RegularImmutableAsList",654),b(656,2105,Rm,ID),o.Rd=function(){return this.a},w(Mn,"RegularImmutableList",656),b(548,730,Km,fz,hz),w(Mn,"RegularImmutableMap",548),b(731,719,r3,Rz);var cun;w(Mn,"RegularImmutableSet",731),b(2074,Ff,Nu),o.Kc=function(){return new UW(this.a,this.b)},o.Fc=function(e){throw T(new Ie)},o.Gc=function(e){throw T(new Ie)},o.$b=function(){throw T(new Ie)},o.Mc=function(e){throw T(new Ie)},w(Mn,"Sets/SetView",2074),b(976,2074,Nu,VEn),o.Kc=function(){return new UW(this.a,this.b)},o.Hc=function(e){return JN(this.a,e)&&this.b.Hc(e)},o.Ic=function(e){return Ek(this.a,e)&&this.b.Ic(e)},o.dc=function(){return pBn(this.b,this.a)},o.Lc=function(){return ut(new Cn(null,new On(this.a,1)),new n9n(this.b))},o.gc=function(){return kk(this)},o.Oc=function(){return ut(new Cn(null,new On(this.a,1)),new Z8n(this.b))},w(Mn,"Sets/2",976),b(977,1,Le,Z8n),o.Mb=function(e){return this.a.Hc(e)},w(Mn,"Sets/2/0methodref$contains$Type",977),b(714,713,$m,UW),o.Yb=function(){for(var e;IX(this.a);)if(e=n5(this.a),this.c.Hc(e))return e;return this.e=2,null},w(Mn,"Sets/2/1",714),b(978,1,Le,n9n),o.Mb=function(e){return this.a.Hc(e)},w(Mn,"Sets/2/1methodref$contains$Type",978),b(616,2073,{616:1,3:1,20:1,16:1,277:1,21:1,87:1},oAn),o.Kd=function(){return this.b},o.Ld=function(){return this.b},o.Wd=function(){return this.b},o.Jc=function(e){this.a.Jc(e)},o.Lc=function(){return this.a.Lc()},o.Oc=function(){return this.a.Oc()},w(Mn,"Sets/UnmodifiableNavigableSet",616),b(2031,2030,Km,lOn),o.Vd=function(){return oh(),new lp(this.a)},o.Cc=function(){return oh(),new lp(this.a)},o.xd=function(){return oh(),new lp(this.a)},w(Mn,"SingletonImmutableBiMap",2031),b(657,2105,Rm,VN),o.Rd=function(){return this.a},w(Mn,"SingletonImmutableList",657),b(363,2079,r3,lp),o.Kc=function(){return new hG(this.a)},o.Hc=function(e){return rt(this.a,e)},o.Od=function(){return new hG(this.a)},o.gc=function(){return 1},w(Mn,"SingletonImmutableSet",363),b(1148,1,{},N1),o.Kb=function(e){return u(e,159)},w(Mn,"Streams/lambda$0$Type",1148),b(1149,1,JS,e9n),o.de=function(){Q3e(this.a)},w(Mn,"Streams/lambda$1$Type",1149),b(1725,1724,md,GOn),o.Zb=function(){var e;return e=this.f,u(u(e||(this.f=L(this.c,139)?new D6(this,u(this.c,139)):L(this.c,133)?new S7(this,u(this.c,133)):new h4(this,this.c)),133),139)},o.hc=function(){return new Ul(this.b)},o.pd=function(){return new Ul(this.b)},o.ec=function(){var e;return e=this.i,u(u(e||(this.i=L(this.c,139)?new f4(this,u(this.c,139)):L(this.c,133)?new e7(this,u(this.c,133)):new Tg(this,this.c)),87),277)},o.ac=function(){return L(this.c,139)?new D6(this,u(this.c,139)):L(this.c,133)?new S7(this,u(this.c,133)):new h4(this,this.c)},o.ic=function(e){return e==null&&this.a.Ne(e,e),new Ul(this.b)},w(Mn,"TreeMultimap",1725),b(82,1,{3:1,82:1}),o.ee=function(e){return new Error(e)},o.fe=function(){return this.e},o.ge=function(){var e,t,i;for(i=(this.k==null&&(this.k=F(zF,J,82,0,0,1)),this.k),t=F(ki,Kn,1,i.length,5,1),e=0;e<i.length;e++)t[e]=i[e].e;return t},o.he=function(){return this.f},o.ie=function(){return this.g},o.je=function(){Qfe(this,Ape(this.ee(OT(this,this.g)))),Nyn(this)},o.Ib=function(){return OT(this,this.ie())},o.e=Rzn,o.i=!1,o.n=!0;var zF=w(ac,"Throwable",82);b(103,82,{3:1,103:1,82:1}),w(ac,"Exception",103),b(63,103,Il,Ga,ec),w(ac,"RuntimeException",63),b(607,63,Il),w(ac,"JsException",607),b(875,607,Il),w(Ty,"JavaScriptExceptionBase",875),b(486,875,{486:1,3:1,103:1,63:1,82:1},GRn),o.ie=function(){return zke(this),this.c},o.ke=function(){return x(this.b)===x(uun)?null:this.b};var uun;w(mtn,"JavaScriptException",486);var fQn=w(mtn,"JavaScriptObject$",0),oun;b(2047,1,{}),w(mtn,"Scheduler",2047);var cI=0,hQn=0,uI=-1;b(902,2047,{},D1);var sun;w(Ty,"SchedulerImpl",902);var XF;b(2058,1,{}),w(Ty,"StackTraceCreator/Collector",2058),b(876,2058,{},og),o.le=function(e){var t={},i=[];e[oK]=i;for(var r=arguments.callee.caller;r;){var c=(A4(),r.name||(r.name=Lme(r.toString())));i.push(c);var s=":"+c,f=t[s];if(f){var h,l;for(h=0,l=f.length;h<l;h++)if(f[h]===r)return}(f||(t[s]=[])).push(r),r=r.caller}},o.me=function(e){var t,i,r,c;for(r=(A4(),e&&e[oK]?e[oK]:[]),i=r.length,c=F(jun,J,319,i,0,1),t=0;t<i;t++)c[t]=new yD(r[t],null,-1);return c},w(Ty,"StackTraceCreator/CollectorLegacy",876),b(2059,2058,{}),o.le=function(e){},o.ne=function(e,t,i,r){return new yD(t,e+"@"+r,i<0?-1:i)},o.me=function(e){var t,i,r,c,s,f;if(c=v7e(e),s=F(jun,J,319,0,0,1),t=0,r=c.length,r==0)return s;for(f=_Gn(this,c[0]),Sn(f.d,uK)||(s[t++]=f),i=1;i<r;i++)s[t++]=_Gn(this,c[i]);return s},w(Ty,"StackTraceCreator/CollectorModern",2059),b(877,2059,{},V3),o.ne=function(e,t,i,r){return new yD(t,e,-1)},w(Ty,"StackTraceCreator/CollectorModernNoSourceMap",877),b(1064,1,{}),w(ktn,Fzn,1064),b(624,1064,{624:1},JIn);var fun;w(CK,Fzn,624),b(2101,1,{}),w(ktn,_zn,2101),b(2102,2101,{}),w(CK,_zn,2102),b(1120,1,{},$1);var C8;w(CK,"LocaleInfo",1120),b(2027,1,{},ul),o.a=0,w(CK,"TimeZone",2027),b(1293,2102,{},Mbn),w("com.google.gwt.i18n.client.impl.cldr","DateTimeFormatInfoImpl",1293),b(443,1,{443:1},PPn),o.a=!1,o.b=0,w(ktn,"DateTimeFormat/PatternPart",443),b(206,1,Hzn,JE,ZQ,sV),o.Fd=function(e){return Cpe(this,u(e,206))},o.Fb=function(e){return L(e,206)&&ob(vc(this.q.getTime()),vc(u(e,206).q.getTime()))},o.Hb=function(){var e;return e=vc(this.q.getTime()),Se(BD(e,U1(e,32)))},o.Ib=function(){var e,t,i;return i=-this.q.getTimezoneOffset(),e=(i>=0?"+":"")+(i/60|0),t=AM(y.Math.abs(i)%60),(UFn(),EQn)[this.q.getDay()]+" "+MQn[this.q.getMonth()]+" "+AM(this.q.getDate())+" "+AM(this.q.getHours())+":"+AM(this.q.getMinutes())+":"+AM(this.q.getSeconds())+" GMT"+e+t+" "+this.q.getFullYear()};var oI=w(le,"Date",206);b(2015,206,Hzn,dFn),o.a=!1,o.b=0,o.c=0,o.d=0,o.e=0,o.f=0,o.g=!1,o.i=0,o.j=0,o.k=0,o.n=0,o.o=0,o.p=0,w("com.google.gwt.i18n.shared.impl","DateRecord",2015),b(2064,1,{}),o.pe=function(){return null},o.qe=function(){return null},o.re=function(){return null},o.se=function(){return null},o.te=function(){return null},w(u3,"JSONValue",2064),b(221,2064,{221:1},_a,lG),o.Fb=function(e){return L(e,221)?fJ(this.a,u(e,221).a):!1},o.oe=function(){return Dfe},o.Hb=function(){return YW(this.a)},o.pe=function(){return this},o.Ib=function(){var e,t,i;for(i=new mo("["),t=0,e=this.a.length;t<e;t++)t>0&&(i.a+=","),Lc(i,J0(this,t));return i.a+="]",i.a},w(u3,"JSONArray",221),b(493,2064,{493:1},aG),o.oe=function(){return $fe},o.qe=function(){return this},o.Ib=function(){return _n(),""+this.a},o.a=!1;var lQn,aQn;w(u3,"JSONBoolean",493),b(997,63,Il,Ajn),w(u3,"JSONException",997),b(1036,2064,{},Tbn),o.oe=function(){return xfe},o.Ib=function(){return gu};var dQn;w(u3,"JSONNull",1036),b(263,2064,{263:1},SE),o.Fb=function(e){return L(e,263)?this.a==u(e,263).a:!1},o.oe=function(){return Lfe},o.Hb=function(){return pp(this.a)},o.re=function(){return this},o.Ib=function(){return this.a+""},o.a=0,w(u3,"JSONNumber",263),b(190,2064,{190:1},sp,U9),o.Fb=function(e){return L(e,190)?fJ(this.a,u(e,190).a):!1},o.oe=function(){return Nfe},o.Hb=function(){return YW(this.a)},o.se=function(){return this},o.Ib=function(){var e,t,i,r,c,s,f;for(f=new mo("{"),e=!0,s=P$(this,F(fn,J,2,0,6,1)),i=s,r=0,c=i.length;r<c;++r)t=i[r],e?e=!1:f.a+=ur,Be(f,cHn(t)),f.a+=":",Lc(f,dl(this,t));return f.a+="}",f.a},w(u3,"JSONObject",190),b(605,Ff,Nu,PL),o.Hc=function(e){return Si(e)&&whe(this.a,Ae(e))},o.Kc=function(){return new zv(new Fu(this.b))},o.gc=function(){return this.b.length},w(u3,"JSONObject/1",605);var VF;b(211,2064,{211:1},q0),o.Fb=function(e){return L(e,211)?Sn(this.a,u(e,211).a):!1},o.oe=function(){return Afe},o.Hb=function(){return t1(this.a)},o.te=function(){return this},o.Ib=function(){return cHn(this.a)},w(u3,"JSONString",211);var wa,hun,bQn,lun,aun;b(2060,1,{533:1}),w(ytn,"OutputStream",2060),b(2061,2060,{533:1}),w(ytn,"FilterOutputStream",2061),b(878,2061,{533:1},Cbn),w(ytn,"PrintStream",878),b(427,1,{484:1}),o.Ib=function(){return this.a},w(ac,"AbstractStringBuilder",427),b(538,63,Il,_E),w(ac,"ArithmeticException",538),b(77,63,SK,HG,Or),w(ac,"IndexOutOfBoundsException",77),b(333,77,{3:1,333:1,103:1,77:1,63:1,82:1},QG,gz),w(ac,"ArrayIndexOutOfBoundsException",333),b(537,63,Il,uL,Kjn),w(ac,"ArrayStoreException",537),b(296,82,qzn,vL),w(ac,"Error",296),b(200,296,qzn,_G,DJ),w(ac,"AssertionError",200),eQn={3:1,485:1,34:1};var ga,ov,Gt=w(ac,"Boolean",485);b(242,1,{3:1,242:1});var dun;w(ac,"Number",242),b(222,242,{3:1,222:1,34:1,242:1},u9n),o.Fd=function(e){return ahe(this,u(e,222))},o.ue=function(){return this.a},o.Fb=function(e){return L(e,222)&&u(e,222).a==this.a},o.Hb=function(){return this.a},o.Ib=function(){return""+this.a},o.a=0;var p3=w(ac,"Byte",222),bun;b(180,1,{3:1,180:1,34:1},yG),o.Fd=function(e){return dhe(this,u(e,180))},o.Fb=function(e){return L(e,180)&&u(e,180).a==this.a},o.Hb=function(){return this.a},o.Ib=function(){return String.fromCharCode(this.a)},o.a=0;var wun,S8=w(ac,"Character",180),gun;b(212,63,{3:1,212:1,103:1,63:1,82:1},Dyn,i4),w(ac,"ClassCastException",212),tQn={3:1,34:1,345:1,242:1};var si=w(ac,"Double",345);b(161,242,{3:1,34:1,161:1,242:1},z9,qG),o.Fd=function(e){return Sle(this,u(e,161))},o.ue=function(){return this.a},o.Fb=function(e){return L(e,161)&&nPn(this.a,u(e,161).a)},o.Hb=function(){return wi(this.a)},o.Ib=function(){return""+this.a},o.a=0;var sv=w(ac,"Float",161);b(33,63,{3:1,103:1,33:1,63:1,82:1},W9,Gn,DRn),w(ac,"IllegalArgumentException",33),b(73,63,Il,Mu,Ar),w(ac,"IllegalStateException",73),b(17,242,{3:1,34:1,17:1,242:1},mG),o.Fd=function(e){return yX(this,u(e,17))},o.ue=function(){return this.a},o.Fb=function(e){return L(e,17)&&u(e,17).a==this.a},o.Hb=function(){return this.a},o.Ib=function(){return""+this.a},o.a=0;var Gi=w(ac,"Integer",17),pun,wQn;b(168,242,{3:1,34:1,168:1,242:1},vG),o.Fd=function(e){return Cle(this,u(e,168))},o.ue=function(){return id(this.a)},o.Fb=function(e){return L(e,168)&&ob(u(e,168).a,this.a)},o.Hb=function(){return Tae(this.a)},o.Ib=function(){return""+_6(this.a)},o.a=0;var t0=w(ac,"Long",168),mun;b(2140,1,{}),b(1904,63,Il,Bjn),w(ac,"NegativeArraySizeException",1904),b(169,607,{3:1,103:1,169:1,63:1,82:1},rp,fp),o.ee=function(e){return new TypeError(e)},w(ac,"NullPointerException",169);var vun,WF,gQn,kun;b(130,33,{3:1,103:1,33:1,130:1,63:1,82:1},th),w(ac,"NumberFormatException",130),b(191,242,{3:1,34:1,242:1,191:1},kG),o.Fd=function(e){return bhe(this,u(e,191))},o.ue=function(){return this.a},o.Fb=function(e){return L(e,191)&&u(e,191).a==this.a},o.Hb=function(){return this.a},o.Ib=function(){return""+this.a},o.a=0;var i0=w(ac,"Short",191),yun;b(319,1,{3:1,319:1},yD),o.Fb=function(e){var t;return L(e,319)?(t=u(e,319),this.c==t.c&&this.d==t.d&&this.a==t.a&&this.b==t.b):!1},o.Hb=function(){return Ok(S(C(ki,1),Kn,1,5,[Y(this.c),this.a,this.d,this.b]))},o.Ib=function(){return this.a+"."+this.d+"("+(this.b!=null?this.b:"Unknown Source")+(this.c>=0?":"+this.c:"")+")"},o.c=0;var jun=w(ac,"StackTraceElement",319);iQn={3:1,484:1,34:1,2:1};var fn=w(ac,ptn,2);b(111,427,{484:1},Hl,i6,ls),w(ac,"StringBuffer",111),b(104,427,{484:1},x1,fg,mo),w(ac,"StringBuilder",104),b(702,77,SK,wz),w(ac,"StringIndexOutOfBoundsException",702),b(2145,1,{});var pQn;b(48,63,{3:1,103:1,63:1,82:1,48:1},Ie,Fl),w(ac,"UnsupportedOperationException",48),b(247,242,{3:1,34:1,242:1,247:1},Dk,Cz),o.Fd=function(e){return RUn(this,u(e,247))},o.ue=function(){return sw(lGn(this))},o.Fb=function(e){var t;return this===e?!0:L(e,247)?(t=u(e,247),this.e==t.e&&RUn(this,t)==0):!1},o.Hb=function(){var e;return this.b!=0?this.b:this.a<54?(e=vc(this.f),this.b=Se(vi(e,-1)),this.b=33*this.b+Se(vi(wb(e,32),-1)),this.b=17*this.b+wi(this.e),this.b):(this.b=17*JRn(this.c)+wi(this.e),this.b)},o.Ib=function(){return lGn(this)},o.a=0,o.b=0,o.d=0,o.e=0,o.f=0;var mQn,Od,Eun,Mun,Tun,Cun,Sun,Pun,JF=w("java.math","BigDecimal",247);b(92,242,{3:1,34:1,242:1,92:1},gl,HAn,Ya,QKn,H1),o.Fd=function(e){return XKn(this,u(e,92))},o.ue=function(){return sw(ZR(this,0))},o.Fb=function(e){return FY(this,e)},o.Hb=function(){return JRn(this)},o.Ib=function(){return ZR(this,0)},o.b=-2,o.c=0,o.d=0,o.e=0;var vQn,sI,kQn,QF,fI,P8,l2=w("java.math","BigInteger",92),yQn,jQn,m3,I8;b(498,2065,Xb),o.$b=function(){Hu(this)},o._b=function(e){return Zc(this,e)},o.uc=function(e){return ARn(this,e,this.i)||ARn(this,e,this.f)},o.vc=function(){return new Ua(this)},o.xc=function(e){return ee(this,e)},o.zc=function(e,t){return Ve(this,e,t)},o.Bc=function(e){return Kp(this,e)},o.gc=function(){return c6(this)},o.g=0,w(le,"AbstractHashMap",498),b(267,Ff,Nu,Ua),o.$b=function(){this.a.$b()},o.Hc=function(e){return mLn(this,e)},o.Kc=function(){return new sd(this.a)},o.Mc=function(e){var t;return mLn(this,e)?(t=u(e,44).ld(),this.a.Bc(t),!0):!1},o.gc=function(){return this.a.gc()},w(le,"AbstractHashMap/EntrySet",267),b(268,1,Pi,sd),o.Nb=function(e){_i(this,e)},o.Pb=function(){return Nb(this)},o.Ob=function(){return this.b},o.Qb=function(){XDn(this)},o.b=!1,o.d=0,w(le,"AbstractHashMap/EntrySetIterator",268),b(426,1,Pi,zv),o.Nb=function(e){_i(this,e)},o.Ob=function(){return LL(this)},o.Pb=function(){return XW(this)},o.Qb=function(){bo(this)},o.b=0,o.c=-1,w(le,"AbstractList/IteratorImpl",426),b(98,426,Hh,xi),o.Qb=function(){bo(this)},o.Rb=function(e){B0(this,e)},o.Sb=function(){return this.b>0},o.Tb=function(){return this.b},o.Ub=function(){return oe(this.b>0),this.a.Xb(this.c=--this.b)},o.Vb=function(){return this.b-1},o.Wb=function(e){R0(this.c!=-1),this.a.hd(this.c,e)},w(le,"AbstractList/ListIteratorImpl",98),b(244,56,Bm,Jl),o.bd=function(e,t){z0(e,this.b),this.c.bd(this.a+e,t),++this.b},o.Xb=function(e){return Nn(e,this.b),this.c.Xb(this.a+e)},o.gd=function(e){var t;return Nn(e,this.b),t=this.c.gd(this.a+e),--this.b,t},o.hd=function(e,t){return Nn(e,this.b),this.c.hd(this.a+e,t)},o.gc=function(){return this.b},o.a=0,o.b=0,w(le,"AbstractList/SubList",244),b(266,Ff,Nu,qa),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a._b(e)},o.Kc=function(){var e;return e=this.a.vc().Kc(),new IE(e)},o.Mc=function(e){return this.a._b(e)?(this.a.Bc(e),!0):!1},o.gc=function(){return this.a.gc()},w(le,"AbstractMap/1",266),b(541,1,Pi,IE),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a.Ob()},o.Pb=function(){var e;return e=u(this.a.Pb(),44),e.ld()},o.Qb=function(){this.a.Qb()},w(le,"AbstractMap/1/1",541),b(231,31,pw,ol),o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a.uc(e)},o.Kc=function(){var e;return e=this.a.vc().Kc(),new P0(e)},o.gc=function(){return this.a.gc()},w(le,"AbstractMap/2",231),b(301,1,Pi,P0),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a.Ob()},o.Pb=function(){var e;return e=u(this.a.Pb(),44),e.md()},o.Qb=function(){this.a.Qb()},w(le,"AbstractMap/2/1",301),b(494,1,{494:1,44:1}),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),mc(this.d,t.ld())&&mc(this.e,t.md())):!1},o.ld=function(){return this.d},o.md=function(){return this.e},o.Hb=function(){return yg(this.d)^yg(this.e)},o.nd=function(e){return bV(this,e)},o.Ib=function(){return this.d+"="+this.e},w(le,"AbstractMap/AbstractEntry",494),b(397,494,{494:1,397:1,44:1},oM),w(le,"AbstractMap/SimpleEntry",397),b(2082,1,OK),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),mc(this.ld(),t.ld())&&mc(this.md(),t.md())):!1},o.Hb=function(){return yg(this.ld())^yg(this.md())},o.Ib=function(){return this.ld()+"="+this.md()},w(le,Ozn,2082),b(2090,2065,btn),o.Xc=function(e){return TL(this.Ee(e))},o.tc=function(e){return MNn(this,e)},o._b=function(e){return wV(this,e)},o.vc=function(){return new ZA(this)},o.Tc=function(){return KIn(this.Ge())},o.Yc=function(e){return TL(this.He(e))},o.xc=function(e){var t;return t=e,Fr(this.Fe(t))},o.$c=function(e){return TL(this.Ie(e))},o.ec=function(){return new o9n(this)},o.Vc=function(){return KIn(this.Je())},o._c=function(e){return TL(this.Ke(e))},w(le,"AbstractNavigableMap",2090),b(629,Ff,Nu,ZA),o.Hc=function(e){return L(e,44)&&MNn(this.b,u(e,44))},o.Kc=function(){return this.b.De()},o.Mc=function(e){var t;return L(e,44)?(t=u(e,44),this.b.Le(t)):!1},o.gc=function(){return this.b.gc()},w(le,"AbstractNavigableMap/EntrySet",629),b(1146,Ff,wtn,o9n),o.Nc=function(){return new cM(this)},o.$b=function(){this.a.$b()},o.Hc=function(e){return wV(this.a,e)},o.Kc=function(){var e;return e=this.a.vc().b.De(),new s9n(e)},o.Mc=function(e){return wV(this.a,e)?(this.a.Bc(e),!0):!1},o.gc=function(){return this.a.gc()},w(le,"AbstractNavigableMap/NavigableKeySet",1146),b(1147,1,Pi,s9n),o.Nb=function(e){_i(this,e)},o.Ob=function(){return LL(this.a.a)},o.Pb=function(){var e;return e=oSn(this.a),e.ld()},o.Qb=function(){dPn(this.a)},w(le,"AbstractNavigableMap/NavigableKeySet/1",1147),b(2103,31,pw),o.Fc=function(e){return Tp(ym(this,e),_m),!0},o.Gc=function(e){return Jn(e),x7(e!=this,"Can't add a queue to itself"),Ki(this,e)},o.$b=function(){for(;w$(this)!=null;);},w(le,"AbstractQueue",2103),b(310,31,{4:1,20:1,31:1,16:1},Mg,dLn),o.Fc=function(e){return vJ(this,e),!0},o.$b=function(){TJ(this)},o.Hc=function(e){return Zxn(new V6(this),e)},o.dc=function(){return t6(this)},o.Kc=function(){return new V6(this)},o.Mc=function(e){return p2e(new V6(this),e)},o.gc=function(){return this.c-this.b&this.a.length-1},o.Nc=function(){return new On(this,272)},o.Qc=function(e){var t;return t=this.c-this.b&this.a.length-1,e.length<t&&(e=qE(new Array(t),e)),axn(this,e,t),e.length>t&&$t(e,t,null),e},o.b=0,o.c=0,w(le,"ArrayDeque",310),b(459,1,Pi,V6),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a!=this.b},o.Pb=function(){return xC(this)},o.Qb=function(){W$n(this)},o.a=0,o.b=0,o.c=-1,w(le,"ArrayDeque/IteratorImpl",459),b(13,56,Gzn,Z,Gc,_u),o.bd=function(e,t){bb(this,e,t)},o.Fc=function(e){return nn(this,e)},o.cd=function(e,t){return aY(this,e,t)},o.Gc=function(e){return hi(this,e)},o.$b=function(){I0(this.c,0)},o.Hc=function(e){return qr(this,e,0)!=-1},o.Jc=function(e){nu(this,e)},o.Xb=function(e){return sn(this,e)},o.dd=function(e){return qr(this,e,0)},o.dc=function(){return this.c.length==0},o.Kc=function(){return new M(this)},o.gd=function(e){return Yl(this,e)},o.Mc=function(e){return du(this,e)},o.ce=function(e,t){xAn(this,e,t)},o.hd=function(e,t){return Go(this,e,t)},o.gc=function(){return this.c.length},o.jd=function(e){Yt(this,e)},o.Pc=function(){return ZM(this.c)},o.Qc=function(e){return Rf(this,e)};var uDe=w(le,"ArrayList",13);b(7,1,Pi,M),o.Nb=function(e){_i(this,e)},o.Ob=function(){return tc(this)},o.Pb=function(){return E(this)},o.Qb=function(){q6(this)},o.a=0,o.b=-1,w(le,"ArrayList/1",7),b(2112,y.Function,{},mE),o.Me=function(e,t){return bt(e,t)},b(151,56,zzn,Fu),o.Hc=function(e){return J$n(this,e)!=-1},o.Jc=function(e){var t,i,r,c;for(Jn(e),i=this.a,r=0,c=i.length;r<c;++r)t=i[r],e.Cd(t)},o.Xb=function(e){return YPn(this,e)},o.hd=function(e,t){var i;return i=(Nn(e,this.a.length),this.a[e]),$t(this.a,e,t),i},o.gc=function(){return this.a.length},o.jd=function(e){QN(this.a,this.a.length,e)},o.Pc=function(){return oBn(this,F(ki,Kn,1,this.a.length,5,1))},o.Qc=function(e){return oBn(this,e)},w(le,"Arrays/ArrayList",151);var sr,Wh,hI;b(953,56,zzn,Sbn),o.Hc=function(e){return!1},o.Xb=function(e){return mX(e)},o.Kc=function(){return Ln(),l4(),fv},o.ed=function(){return Ln(),l4(),fv},o.gc=function(){return 0},w(le,"Collections/EmptyList",953),b(954,1,Hh,Pbn),o.Nb=function(e){_i(this,e)},o.Rb=function(e){throw T(new Ie)},o.Ob=function(){return!1},o.Sb=function(){return!1},o.Pb=function(){throw T(new nc)},o.Tb=function(){return 0},o.Ub=function(){throw T(new nc)},o.Vb=function(){return-1},o.Qb=function(){throw T(new Mu)},o.Wb=function(e){throw T(new Mu)};var fv;w(le,"Collections/EmptyListIterator",954),b(956,2065,Km,Ibn),o._b=function(e){return!1},o.uc=function(e){return!1},o.vc=function(){return Ln(),hI},o.xc=function(e){return null},o.ec=function(){return Ln(),hI},o.gc=function(){return 0},o.Cc=function(){return Ln(),sr},w(le,"Collections/EmptyMap",956),b(955,Ff,r3,Obn),o.Hc=function(e){return!1},o.Kc=function(){return Ln(),l4(),fv},o.gc=function(){return 0},w(le,"Collections/EmptySet",955),b(608,56,{3:1,20:1,31:1,56:1,16:1,15:1},nL),o.Hc=function(e){return mc(this.a,e)},o.Xb=function(e){return Nn(e,1),this.a},o.gc=function(){return 1},w(le,"Collections/SingletonList",608),b(384,1,Nzn,Q3),o.Jc=function(e){qi(this,e)},o.Lc=function(){return new Cn(null,this.Nc())},o.Nc=function(){return new On(this,0)},o.Oc=function(){return new Cn(null,this.Nc())},o.Fc=function(e){return fEn()},o.Gc=function(e){return hEn()},o.$b=function(){lEn()},o.Hc=function(e){return t7(this,e)},o.Ic=function(e){return YEn(this,e)},o.dc=function(){return this.b.dc()},o.Kc=function(){return new J3(this.b.Kc())},o.Mc=function(e){return aEn()},o.gc=function(){return this.b.gc()},o.Pc=function(){return this.b.Pc()},o.Qc=function(e){return ZEn(this,e)},o.Ib=function(){return Jr(this.b)},w(le,"Collections/UnmodifiableCollection",384),b(383,1,Pi,J3),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.b.Ob()},o.Pb=function(){return this.b.Pb()},o.Qb=function(){dEn()},w(le,"Collections/UnmodifiableCollectionIterator",383),b(540,384,Xzn,KM),o.Nc=function(){return new On(this,16)},o.bd=function(e,t){throw T(new Ie)},o.cd=function(e,t){throw T(new Ie)},o.Fb=function(e){return rt(this.a,e)},o.Xb=function(e){return this.a.Xb(e)},o.Hb=function(){return mt(this.a)},o.dd=function(e){return this.a.dd(e)},o.dc=function(){return this.a.dc()},o.ed=function(){return new GX(this.a.fd(0))},o.fd=function(e){return new GX(this.a.fd(e))},o.gd=function(e){throw T(new Ie)},o.hd=function(e,t){throw T(new Ie)},o.jd=function(e){throw T(new Ie)},o.kd=function(e,t){return new KM(this.a.kd(e,t))},w(le,"Collections/UnmodifiableList",540),b(705,383,Hh,GX),o.Qb=function(){dEn()},o.Rb=function(e){throw T(new Ie)},o.Sb=function(){return this.a.Sb()},o.Tb=function(){return this.a.Tb()},o.Ub=function(){return this.a.Ub()},o.Vb=function(){return this.a.Vb()},o.Wb=function(e){throw T(new Ie)},w(le,"Collections/UnmodifiableListIterator",705),b(609,1,Xb,eL),o.wc=function(e){f5(this,e)},o.yc=function(e,t,i){return hx(this,e,t,i)},o.$b=function(){throw T(new Ie)},o._b=function(e){return this.c._b(e)},o.uc=function(e){return eMn(this,e)},o.vc=function(){return P4(this)},o.Fb=function(e){return tMn(this,e)},o.xc=function(e){return this.c.xc(e)},o.Hb=function(){return mt(this.c)},o.dc=function(){return this.c.dc()},o.ec=function(){return pOn(this)},o.zc=function(e,t){throw T(new Ie)},o.Bc=function(e){throw T(new Ie)},o.gc=function(){return this.c.gc()},o.Ib=function(){return Jr(this.c)},o.Cc=function(){return gOn(this)},w(le,"Collections/UnmodifiableMap",609),b(396,384,rK,r4),o.Nc=function(){return new On(this,1)},o.Fb=function(e){return rt(this.b,e)},o.Hb=function(){return mt(this.b)},w(le,"Collections/UnmodifiableSet",396),b(957,396,rK,qjn),o.Hc=function(e){return nMn(this,e)},o.Ic=function(e){return this.b.Ic(e)},o.Kc=function(){var e;return e=this.b.Kc(),new f9n(e)},o.Pc=function(){var e;return e=this.b.Pc(),WLn(e,e.length),e},o.Qc=function(e){return eAn(this,e)},w(le,"Collections/UnmodifiableMap/UnmodifiableEntrySet",957),b(958,1,Pi,f9n),o.Nb=function(e){_i(this,e)},o.Pb=function(){return new jG(u(this.a.Pb(),44))},o.Ob=function(){return this.a.Ob()},o.Qb=function(){throw T(new Ie)},w(le,"Collections/UnmodifiableMap/UnmodifiableEntrySet/1",958),b(703,1,OK,jG),o.Fb=function(e){return this.a.Fb(e)},o.ld=function(){return this.a.ld()},o.md=function(){return this.a.md()},o.Hb=function(){return this.a.Hb()},o.nd=function(e){throw T(new Ie)},o.Ib=function(){return Jr(this.a)},w(le,"Collections/UnmodifiableMap/UnmodifiableEntrySet/UnmodifiableEntry",703),b(610,540,{20:1,16:1,15:1,59:1},jL),w(le,"Collections/UnmodifiableRandomAccessList",610),b(704,396,Dzn,zX),o.Nc=function(){return new cM(this)},o.Fb=function(e){return rt(this.a,e)},o.Hb=function(){return mt(this.a)},w(le,"Collections/UnmodifiableSortedSet",704),b(858,1,AK,Abn),o.Ne=function(e,t){var i;return i=XLn(u(e,12),u(t,12)),i!=0?i:CUn(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(le,"Comparator/lambda$0$Type",858);var Iun,YF,Oun;b(769,1,AK,xU),o.Ne=function(e,t){return x0e(u(e,34),u(t,34))},o.Fb=function(e){return this===e},o.Oe=function(){return jb(),Oun},w(le,"Comparators/NaturalOrderComparator",769),b(1226,1,AK,Lbn),o.Ne=function(e,t){return $0e(u(e,34),u(t,34))},o.Fb=function(e){return this===e},o.Oe=function(){return jb(),YF},w(le,"Comparators/ReverseNaturalOrderComparator",1226),b(52,1,AK,Ce),o.Fb=function(e){return this===e},o.Ne=function(e,t){return this.a.Ne(t,e)},o.Oe=function(){return this.a},w(le,"Comparators/ReversedComparator",52),b(175,63,Il,Ko),w(le,"ConcurrentModificationException",175);var EQn,MQn;b(1948,1,Iy,Nbn),o.Pe=function(e){OKn(this,e)},o.Ib=function(){return"DoubleSummaryStatistics[count = "+_6(this.a)+", avg = "+(NL(this.a,0)?BJ(this)/id(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+BJ(this)+"]"},o.a=0,o.b=li,o.c=Pt,o.d=0,o.e=0,o.f=0,w(le,"DoubleSummaryStatistics",1948),b(1868,63,Il,$yn),w(le,"EmptyStackException",1868),b(461,2065,Xb,y5),o.zc=function(e,t){return gV(this,e,t)},o.$b=function(){rOn(this)},o._b=function(e){return vMn(this,e)},o.uc=function(e){var t,i;for(i=new dp(this.a);i.a<i.c.a.length;)if(t=n5(i),mc(e,this.b[t.g]))return!0;return!1},o.vc=function(){return new l9n(this)},o.xc=function(e){return Mr(this,e)},o.Bc=function(e){return hJ(this,e)},o.gc=function(){return this.a.c},w(le,"EnumMap",461),b(1340,Ff,Nu,l9n),o.$b=function(){rOn(this.a)},o.Hc=function(e){return vLn(this,e)},o.Kc=function(){return new iIn(this.a)},o.Mc=function(e){var t;return vLn(this,e)?(t=u(e,44).ld(),hJ(this.a,t),!0):!1},o.gc=function(){return this.a.a.c},w(le,"EnumMap/EntrySet",1340),b(1341,1,Pi,iIn),o.Nb=function(e){_i(this,e)},o.Pb=function(){return this.b=n5(this.a),new yMn(this.c,this.b)},o.Ob=function(){return IX(this.a)},o.Qb=function(){R0(!!this.b),hJ(this.c,this.b),this.b=null},w(le,"EnumMap/EntrySetIterator",1341),b(1342,2082,OK,yMn),o.ld=function(){return this.a},o.md=function(){return this.b.b[this.a.g]},o.nd=function(e){return ZV(this.b.b,this.a.g,e)},w(le,"EnumMap/MapEntry",1342),b(181,Ff,{20:1,31:1,16:1,181:1,21:1});var TQn=w(le,"EnumSet",181);b(162,181,{20:1,31:1,16:1,181:1,162:1,21:1},_o),o.Fc=function(e){return _s(this,u(e,22))},o.Hc=function(e){return JN(this,e)},o.Kc=function(){return new dp(this)},o.Mc=function(e){return aIn(this,e)},o.gc=function(){return this.c},o.c=0,w(le,"EnumSet/EnumSetImpl",162),b(356,1,Pi,dp),o.Nb=function(e){_i(this,e)},o.Pb=function(){return n5(this)},o.Ob=function(){return IX(this)},o.Qb=function(){R0(this.b!=-1),$t(this.c.b,this.b,null),--this.c.c,this.b=-1},o.a=-1,o.b=-1,w(le,"EnumSet/EnumSetImpl/IteratorImpl",356),b(45,498,n2,de,ap,BTn),o.Be=function(e,t){return x(e)===x(t)||e!=null&&rt(e,t)},o.Ce=function(e){var t;return e==null?0:(t=mt(e),t|0)},w(le,"HashMap",45),b(49,Ff,jtn,ni,zE,R6),o.Fc=function(e){return fi(this,e)},o.$b=function(){this.a.$b()},o.Hc=function(e){return sf(this,e)},o.dc=function(){return this.a.gc()==0},o.Kc=function(){return this.a.ec().Kc()},o.Mc=function(e){return DX(this,e)},o.gc=function(){return this.a.gc()};var oDe=w(le,"HashSet",49);b(1897,1,jy,Dbn),o.Dd=function(e){Fxn(this,e)},o.Ib=function(){return"IntSummaryStatistics[count = "+_6(this.a)+", avg = "+(NL(this.a,0)?id(this.d)/id(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+_6(this.d)+"]"},o.a=0,o.b=Wi,o.c=et,o.d=0,w(le,"IntSummaryStatistics",1897),b(1062,1,qh,iCn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new VJ(this)},o.c=0,w(le,"InternalHashCodeMap",1062),b(726,1,Pi,VJ),o.Nb=function(e){_i(this,e)},o.Pb=function(){return this.d=this.a[this.c++],this.d},o.Ob=function(){var e;return this.c<this.a.length?!0:(e=this.b.next(),e.done?!1:(this.a=e.value[1],this.c=0,!0))},o.Qb=function(){_nn(this.e,this.d.ld()),this.c!=0&&--this.c},o.c=0,o.d=null,w(le,"InternalHashCodeMap/1",726);var CQn;b(1060,1,qh,rCn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new CJ(this)},o.c=0,o.d=0,w(le,"InternalStringMap",1060),b(725,1,Pi,CJ),o.Nb=function(e){_i(this,e)},o.Pb=function(){return this.c=this.a,this.a=this.b.next(),new hPn(this.d,this.c,this.d.d)},o.Ob=function(){return!this.a.done},o.Qb=function(){Gxn(this.d,this.c.value[0])},w(le,"InternalStringMap/1",725),b(1061,2082,OK,hPn),o.ld=function(){return this.b.value[0]},o.md=function(){return this.a.d!=this.c?a6(this.a,this.b.value[0]):this.b.value[1]},o.nd=function(e){return $b(this.a,this.b.value[0],e)},o.c=0,w(le,"InternalStringMap/2",1061),b(215,45,n2,Ql,XJ),o.$b=function(){xSn(this)},o._b=function(e){return kMn(this,e)},o.uc=function(e){var t;for(t=this.d.a;t!=this.d;){if(mc(t.e,e))return!0;t=t.a}return!1},o.vc=function(){return new PG(this)},o.xc=function(e){return Df(this,e)},o.zc=function(e,t){return s1(this,e,t)},o.Bc=function(e){return UDn(this,e)},o.gc=function(){return c6(this.e)},o.c=!1,w(le,"LinkedHashMap",215),b(400,397,{494:1,397:1,400:1,44:1},cSn,qV),w(le,"LinkedHashMap/ChainEntry",400),b(715,Ff,Nu,PG),o.$b=function(){xSn(this.a)},o.Hc=function(e){return kLn(this,e)},o.Kc=function(){return new $W(this)},o.Mc=function(e){var t;return kLn(this,e)?(t=u(e,44).ld(),UDn(this.a,t),!0):!1},o.gc=function(){return c6(this.a.e)},w(le,"LinkedHashMap/EntrySet",715),b(716,1,Pi,$W),o.Nb=function(e){_i(this,e)},o.Pb=function(){return WDn(this)},o.Ob=function(){return this.c!=this.d.a.d},o.Qb=function(){R0(!!this.a),RN(this.d.a.e.g,this.b),eW(this.a),Kp(this.d.a.e,this.a.d),this.b=this.d.a.e.g,this.a=null},o.b=0,w(le,"LinkedHashMap/EntrySet/EntryIterator",716),b(174,49,jtn,rh,MN,sW);var sDe=w(le,"LinkedHashSet",174);b(67,2062,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1},Mt,$N),o.Fc=function(e){return Re(this,e)},o.$b=function(){vo(this)},o.fd=function(e){return ge(this,e)},o.gc=function(){return this.b},o.b=0;var fDe=w(le,"LinkedList",67);b(981,1,Hh,lPn),o.Nb=function(e){_i(this,e)},o.Rb=function(e){_7(this,e)},o.Ob=function(){return Q9(this)},o.Sb=function(){return this.b.b!=this.d.a},o.Pb=function(){return be(this)},o.Tb=function(){return this.a},o.Ub=function(){return wLn(this)},o.Vb=function(){return this.a-1},o.Qb=function(){p$(this)},o.Wb=function(e){R0(!!this.c),this.c.c=e},o.a=0,o.c=null,w(le,"LinkedList/ListIteratorImpl",981),b(617,1,{},AA),w(le,"LinkedList/Node",617),b(2057,1,{});var Aun,SQn;w(le,"Locale",2057),b(873,2057,{},$bn),o.Ib=function(){return""},w(le,"Locale/1",873),b(874,2057,{},xbn),o.Ib=function(){return"unknown"},w(le,"Locale/4",874),b(112,63,{3:1,103:1,63:1,82:1,112:1},nc,IOn),w(le,"NoSuchElementException",112),b(475,1,{475:1},wL),o.Fb=function(e){var t;return e===this?!0:L(e,475)?(t=u(e,475),mc(this.a,t.a)):!1},o.Hb=function(){return yg(this.a)},o.Ib=function(){return this.a!=null?Pzn+A6(this.a)+")":"Optional.empty()"};var Lun;w(le,"Optional",475),b(414,1,{414:1},qTn,SN),o.Fb=function(e){var t;return e===this?!0:L(e,414)?(t=u(e,414),this.a==t.a&&bt(this.b,t.b)==0):!1},o.Hb=function(){return this.a?wi(this.b):0},o.Ib=function(){return this.a?"OptionalDouble.of("+(""+this.b)+")":"OptionalDouble.empty()"},o.a=!1,o.b=0;var ZF;w(le,"OptionalDouble",414),b(524,1,{524:1},UTn,uSn),o.Fb=function(e){var t;return e===this?!0:L(e,524)?(t=u(e,524),this.a==t.a&&jc(this.b,t.b)==0):!1},o.Hb=function(){return this.a?this.b:0},o.Ib=function(){return this.a?"OptionalInt.of("+(""+this.b)+")":"OptionalInt.empty()"},o.a=!1,o.b=0;var PQn;w(le,"OptionalInt",524),b(510,2103,pw,dT),o.Gc=function(e){return EZ(this,e)},o.$b=function(){I0(this.b.c,0)},o.Hc=function(e){return(e==null?-1:qr(this.b,e,0))!=-1},o.Kc=function(){return new h9n(this)},o.Mc=function(e){return lxn(this,e)},o.gc=function(){return this.b.c.length},o.Nc=function(){return new On(this,256)},o.Pc=function(){return ZM(this.b.c)},o.Qc=function(e){return Rf(this.b,e)},w(le,"PriorityQueue",510),b(1296,1,Pi,h9n),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.a<this.c.b.c.length},o.Pb=function(){return oe(this.a<this.c.b.c.length),this.b=this.a++,sn(this.c.b,this.b)},o.Qb=function(){R0(this.b!=-1),T$(this.c,this.a=this.b),this.b=-1},o.a=0,o.b=-1,w(le,"PriorityQueue/1",1296),b(234,1,{234:1},dx,qT),o.a=0,o.b=0;var Nun,Dun,hDe=0;w(le,"Random",234),b(25,1,Io,On,pb,SOn),o.Ad=function(e){return(this.a&e)!=0},o.yd=function(){return this.a},o.zd=function(){return vW(this),this.c},o.Nb=function(e){vW(this),this.d.Nb(e)},o.Bd=function(e){return y$n(this,e)},o.a=0,o.c=0,w(le,"Spliterators/IteratorSpliterator",25),b(495,25,Io,cM),w(le,"SortedSet/1",495),b(611,1,Iy,TG),o.Pe=function(e){this.a.Cd(e)},w(le,"Spliterator/OfDouble/0methodref$accept$Type",611),b(612,1,Iy,MG),o.Pe=function(e){this.a.Cd(e)},w(le,"Spliterator/OfDouble/1methodref$accept$Type",612),b(613,1,jy,CG),o.Dd=function(e){this.a.Cd(Y(e))},w(le,"Spliterator/OfInt/2methodref$accept$Type",613),b(614,1,jy,SG),o.Dd=function(e){this.a.Cd(Y(e))},w(le,"Spliterator/OfInt/3methodref$accept$Type",614),b(625,1,Io),o.Nb=function(e){Tz(this,e)},o.Ad=function(e){return(this.d&e)!=0},o.yd=function(){return this.d},o.zd=function(){return this.e},o.d=0,o.e=0,w(le,"Spliterators/BaseSpliterator",625),b(736,625,Io),o.Qe=function(e){lg(this,e)},o.Nb=function(e){L(e,189)?lg(this,u(e,189)):lg(this,new MG(e))},o.Bd=function(e){return L(e,189)?this.Re(u(e,189)):this.Re(new TG(e))},w(le,"Spliterators/AbstractDoubleSpliterator",736),b(735,625,Io),o.Qe=function(e){lg(this,e)},o.Nb=function(e){L(e,202)?lg(this,u(e,202)):lg(this,new SG(e))},o.Bd=function(e){return L(e,202)?this.Re(u(e,202)):this.Re(new CG(e))},w(le,"Spliterators/AbstractIntSpliterator",735),b(500,625,Io),w(le,"Spliterators/AbstractSpliterator",500),b(706,1,Io),o.Nb=function(e){Tz(this,e)},o.Ad=function(e){return(this.b&e)!=0},o.yd=function(){return this.b},o.zd=function(){return this.d-this.c},o.b=0,o.c=0,o.d=0,w(le,"Spliterators/BaseArraySpliterator",706),b(960,706,Io,XPn),o.Se=function(e,t){phe(this,u(e,41),t)},o.Nb=function(e){gD(this,e)},o.Bd=function(e){return WT(this,e)},w(le,"Spliterators/ArraySpliterator",960),b(707,706,Io,oPn),o.Se=function(e,t){mhe(this,u(e,189),t)},o.Qe=function(e){gD(this,e)},o.Nb=function(e){L(e,189)?gD(this,u(e,189)):gD(this,new MG(e))},o.Re=function(e){return WT(this,e)},o.Bd=function(e){return L(e,189)?WT(this,u(e,189)):WT(this,new TG(e))},w(le,"Spliterators/DoubleArraySpliterator",707),b(2066,1,Io),o.Nb=function(e){Tz(this,e)},o.Ad=function(e){return(16448&e)!=0},o.yd=function(){return 16448},o.zd=function(){return 0};var IQn;w(le,"Spliterators/EmptySpliterator",2066),b(959,2066,Io,Rbn),o.Qe=function(e){oG(e)},o.Nb=function(e){L(e,202)?oG(u(e,202)):oG(new SG(e))},o.Re=function(e){return Bz(e)},o.Bd=function(e){return L(e,202)?Bz(u(e,202)):Bz(new CG(e))},w(le,"Spliterators/EmptySpliterator/OfInt",959),b(588,56,Vzn,KE),o.bd=function(e,t){E4(e,this.a.c.length+1),bb(this.a,e,t)},o.Fc=function(e){return nn(this.a,e)},o.cd=function(e,t){return E4(e,this.a.c.length+1),aY(this.a,e,t)},o.Gc=function(e){return hi(this.a,e)},o.$b=function(){I0(this.a.c,0)},o.Hc=function(e){return qr(this.a,e,0)!=-1},o.Ic=function(e){return Ek(this.a,e)},o.Jc=function(e){nu(this.a,e)},o.Xb=function(e){return E4(e,this.a.c.length),sn(this.a,e)},o.dd=function(e){return qr(this.a,e,0)},o.dc=function(){return this.a.c.length==0},o.Kc=function(){return new M(this.a)},o.gd=function(e){return E4(e,this.a.c.length),Yl(this.a,e)},o.ce=function(e,t){xAn(this.a,e,t)},o.hd=function(e,t){return E4(e,this.a.c.length),Go(this.a,e,t)},o.gc=function(){return this.a.c.length},o.jd=function(e){Yt(this.a,e)},o.kd=function(e,t){return new Jl(this.a,e,t)},o.Pc=function(){return ZM(this.a.c)},o.Qc=function(e){return Rf(this.a,e)},o.Ib=function(){return ca(this.a)},w(le,"Vector",588),b(824,588,Vzn,YG),w(le,"Stack",824),b(213,1,{213:1},fd),o.Ib=function(){return bLn(this)},w(le,"StringJoiner",213),b(553,2090,{3:1,85:1,139:1,133:1},rMn,iD),o.$b=function(){$jn(this)},o.De=function(){return new yLn(this)},o.vc=function(){return new ZCn(this)},o.Ee=function(e){return bm(this,e,!0)},o.Fe=function(e){return CRn(this,e)},o.Ge=function(){return nQ(this)},o.He=function(e){return Fk(this,e,!0)},o.Ie=function(e){return bm(this,e,!1)},o.Je=function(){return DDn(this)},o.Ke=function(e){return Fk(this,e,!1)},o.Zc=function(e,t){return RAn(this,e,t)},o.zc=function(e,t){return gRn(this,e,t)},o.Bc=function(e){return uAn(this,e)},o.Le=function(e){return UJ(this,e)},o.gc=function(){return this.c},o.ad=function(e,t){return KAn(this,e,t)},o.c=0,w(le,"TreeMap",553),b(554,1,Pi,yLn,I$),o.Nb=function(e){_i(this,e)},o.Pb=function(){return oSn(this)},o.Ob=function(){return LL(this.a)},o.Qb=function(){dPn(this)},w(le,"TreeMap/EntryIterator",554),b(1142,629,Nu,ZCn),o.$b=function(){$jn(this.a)},w(le,"TreeMap/EntrySet",1142),b(447,397,{494:1,397:1,44:1,447:1},r$),o.b=!1;var lDe=w(le,"TreeMap/Node",447);b(630,1,{},LA),o.Ib=function(){return"State: mv="+this.c+" value="+this.d+" done="+this.a+" found="+this.b},o.a=!1,o.b=!1,o.c=!1,w(le,"TreeMap/State",630),b(631,2090,btn,rR),o.De=function(){return new I$(this.c,this.f,this.b,this.a,this.e,this.d)},o.vc=function(){return new ZA(this)},o.Ee=function(e){return WM(this,bm(this.c,e,!0))},o.Fe=function(e){return WM(this,CRn(this.c,e))},o.Ge=function(){var e;return this.f.Te()?this.a?e=bm(this.c,this.b,!0):e=bm(this.c,this.b,!1):e=nQ(this.c),e&&vT(this,e.d)?e:null},o.He=function(e){return WM(this,Fk(this.c,e,!0))},o.Ie=function(e){return WM(this,bm(this.c,e,!1))},o.Je=function(){var e;return this.f.Ue()?this.d?e=Fk(this.c,this.e,!0):e=Fk(this.c,this.e,!1):e=DDn(this.c),e&&vT(this,e.d)?e:null},o.Ke=function(e){return WM(this,Fk(this.c,e,!1))},o.Zc=function(e,t){if(this.f.Ue()&&this.c.a.Ne(e,this.e)>0)throw T(new Gn(Ttn+e+" greater than "+this.e));return this.f.Te()?cAn(this.c,this.b,this.a,e,t):RAn(this.c,e,t)},o.zc=function(e,t){if(!qx(this.c,this.f,e,this.b,this.a,this.e,this.d))throw T(new Gn(e+" outside the range "+this.b+" to "+this.e));return gRn(this.c,e,t)},o.Bc=function(e){var t;return t=e,qx(this.c,this.f,t,this.b,this.a,this.e,this.d)?uAn(this.c,t):null},o.Le=function(e){return vT(this,e.ld())&&UJ(this.c,e)},o.gc=function(){var e,t,i;if(this.f.Te()?this.a?t=bm(this.c,this.b,!0):t=bm(this.c,this.b,!1):t=nQ(this.c),!(t&&vT(this,t.d)&&t))return 0;for(e=0,i=new I$(this.c,this.f,this.b,this.a,this.e,this.d);LL(i.a);i.b=u(XW(i.a),44))++e;return e},o.ad=function(e,t){if(this.f.Te()&&this.c.a.Ne(e,this.b)<0)throw T(new Gn(Ttn+e+Wzn+this.b));return this.f.Ue()?cAn(this.c,e,t,this.e,this.d):KAn(this.c,e,t)},o.a=!1,o.d=!1,w(le,"TreeMap/SubMap",631),b(304,22,DK,uM),o.Te=function(){return!1},o.Ue=function(){return!1};var n_,e_,t_,i_,lI=we(le,"TreeMap/SubMapType",304,ke,Upe,nde);b(1143,304,DK,lCn),o.Ue=function(){return!0},we(le,"TreeMap/SubMapType/1",1143,lI,null,null),b(1144,304,DK,kCn),o.Te=function(){return!0},o.Ue=function(){return!0},we(le,"TreeMap/SubMapType/2",1144,lI,null,null),b(1145,304,DK,hCn),o.Te=function(){return!0},we(le,"TreeMap/SubMapType/3",1145,lI,null,null);var OQn;b(157,Ff,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},UG,Ul,Y3),o.Nc=function(){return new cM(this)},o.Fc=function(e){return B7(this,e)},o.$b=function(){this.a.$b()},o.Hc=function(e){return this.a._b(e)},o.Kc=function(){return this.a.ec().Kc()},o.Mc=function(e){return EN(this,e)},o.gc=function(){return this.a.gc()};var aDe=w(le,"TreeSet",157);b(1082,1,{},a9n),o.Ve=function(e,t){return pae(this.a,e,t)},w($K,"BinaryOperator/lambda$0$Type",1082),b(1083,1,{},d9n),o.Ve=function(e,t){return mae(this.a,e,t)},w($K,"BinaryOperator/lambda$1$Type",1083),b(952,1,{},Kbn),o.Kb=function(e){return e},w($K,"Function/lambda$0$Type",952),b(395,1,Le,Z3),o.Mb=function(e){return!this.a.Mb(e)},w($K,"Predicate/lambda$2$Type",395),b(581,1,{581:1});var AQn=w(Y5,"Handler",581);b(2107,1,ky),o.xe=function(){return"DUMMY"},o.Ib=function(){return this.xe()};var $un;w(Y5,"Level",2107),b(1706,2107,ky,Bbn),o.xe=function(){return"INFO"},w(Y5,"Level/LevelInfo",1706),b(1843,1,{},Byn);var r_;w(Y5,"LogManager",1843),b(1896,1,ky,aPn),o.b=null,w(Y5,"LogRecord",1896),b(525,1,{525:1},VD),o.e=!1;var LQn=!1,NQn=!1,Uf=!1,DQn=!1,$Qn=!1;w(Y5,"Logger",525),b(835,581,{581:1},RU),w(Y5,"SimpleConsoleLogHandler",835),b(108,22,{3:1,34:1,22:1,108:1},$L);var xun,Yr,Sw,xr=we(ai,"Collector/Characteristics",108,ke,A2e,ede),xQn;b(758,1,{},CW),w(ai,"CollectorImpl",758),b(1074,1,{},Fbn),o.Ve=function(e,t){return l5e(u(e,213),u(t,213))},w(ai,"Collectors/10methodref$merge$Type",1074),b(1075,1,{},_bn),o.Kb=function(e){return bLn(u(e,213))},w(ai,"Collectors/11methodref$toString$Type",1075),b(1076,1,{},b9n),o.Kb=function(e){return _n(),!!kX(e)},w(ai,"Collectors/12methodref$test$Type",1076),b(144,1,{},yu),o.Yd=function(e,t){u(e,16).Fc(t)},w(ai,"Collectors/20methodref$add$Type",144),b(146,1,{},ju),o.Xe=function(){return new Z},w(ai,"Collectors/21methodref$ctor$Type",146),b(359,1,{},Y2),o.Xe=function(){return new ni},w(ai,"Collectors/23methodref$ctor$Type",359),b(360,1,{},Z2),o.Yd=function(e,t){fi(u(e,49),t)},w(ai,"Collectors/24methodref$add$Type",360),b(1069,1,{},Hbn),o.Ve=function(e,t){return cMn(u(e,15),u(t,16))},w(ai,"Collectors/4methodref$addAll$Type",1069),b(1073,1,{},qbn),o.Yd=function(e,t){pl(u(e,213),u(t,484))},w(ai,"Collectors/9methodref$add$Type",1073),b(1072,1,{},IPn),o.Xe=function(){return new fd(this.a,this.b,this.c)},w(ai,"Collectors/lambda$15$Type",1072),b(1077,1,{},Ubn),o.Xe=function(){var e;return e=new Ql,s1(e,(_n(),!1),new Z),s1(e,!0,new Z),e},w(ai,"Collectors/lambda$22$Type",1077),b(1078,1,{},w9n),o.Xe=function(){return S(C(ki,1),Kn,1,5,[this.a])},w(ai,"Collectors/lambda$25$Type",1078),b(1079,1,{},g9n),o.Yd=function(e,t){R0e(this.a,cd(e))},w(ai,"Collectors/lambda$26$Type",1079),b(1080,1,{},p9n),o.Ve=function(e,t){return lwe(this.a,cd(e),cd(t))},w(ai,"Collectors/lambda$27$Type",1080),b(1081,1,{},Gbn),o.Kb=function(e){return cd(e)[0]},w(ai,"Collectors/lambda$28$Type",1081),b(728,1,{},KU),o.Ve=function(e,t){return uW(e,t)},w(ai,"Collectors/lambda$4$Type",728),b(145,1,{},Eu),o.Ve=function(e,t){return zhe(u(e,16),u(t,16))},w(ai,"Collectors/lambda$42$Type",145),b(361,1,{},np),o.Ve=function(e,t){return Xhe(u(e,49),u(t,49))},w(ai,"Collectors/lambda$50$Type",361),b(362,1,{},ep),o.Kb=function(e){return u(e,49)},w(ai,"Collectors/lambda$51$Type",362),b(1068,1,{},m9n),o.Yd=function(e,t){p6e(this.a,u(e,85),t)},w(ai,"Collectors/lambda$7$Type",1068),b(1070,1,{},zbn),o.Ve=function(e,t){return Xve(u(e,85),u(t,85),new Hbn)},w(ai,"Collectors/lambda$8$Type",1070),b(1071,1,{},v9n),o.Kb=function(e){return U5e(this.a,u(e,85))},w(ai,"Collectors/lambda$9$Type",1071),b(550,1,{}),o.$e=function(){X6(this)},o.d=!1,w(ai,"TerminatableStream",550),b(827,550,Ctn,cV),o.$e=function(){X6(this)},w(ai,"DoubleStreamImpl",827),b(1847,736,Io,OPn),o.Re=function(e){return X9e(this,u(e,189))},o.a=null,w(ai,"DoubleStreamImpl/2",1847),b(1848,1,Iy,k9n),o.Pe=function(e){Fle(this.a,e)},w(ai,"DoubleStreamImpl/2/lambda$0$Type",1848),b(1845,1,Iy,y9n),o.Pe=function(e){Ble(this.a,e)},w(ai,"DoubleStreamImpl/lambda$0$Type",1845),b(1846,1,Iy,j9n),o.Pe=function(e){OKn(this.a,e)},w(ai,"DoubleStreamImpl/lambda$2$Type",1846),b(1397,735,Io,vNn),o.Re=function(e){return Npe(this,u(e,202))},o.a=0,o.b=0,o.c=0,w(ai,"IntStream/5",1397),b(806,550,Ctn,uV),o.$e=function(){X6(this)},o._e=function(){return X1(this),this.a},w(ai,"IntStreamImpl",806),b(807,550,Ctn,Az),o.$e=function(){X6(this)},o._e=function(){return X1(this),_X(),IQn},w(ai,"IntStreamImpl/Empty",807),b(1687,1,jy,E9n),o.Dd=function(e){Fxn(this.a,e)},w(ai,"IntStreamImpl/lambda$4$Type",1687);var dDe=Dt(ai,"Stream");b(26,550,{533:1,687:1,848:1},Cn),o.$e=function(){X6(this)};var v3;w(ai,"StreamImpl",26),b(1102,500,Io,rPn),o.Bd=function(e){for(;x4e(this);){if(this.a.Bd(e))return!0;X6(this.b),this.b=null,this.a=null}return!1},w(ai,"StreamImpl/1",1102),b(1103,1,re,M9n),o.Cd=function(e){f0e(this.a,u(e,848))},w(ai,"StreamImpl/1/lambda$0$Type",1103),b(1104,1,Le,T9n),o.Mb=function(e){return fi(this.a,e)},w(ai,"StreamImpl/1methodref$add$Type",1104),b(1105,500,Io,KOn),o.Bd=function(e){var t;return this.a||(t=new Z,this.b.a.Nb(new C9n(t)),Ln(),Yt(t,this.c),this.a=new On(t,16)),y$n(this.a,e)},o.a=null,w(ai,"StreamImpl/5",1105),b(1106,1,re,C9n),o.Cd=function(e){nn(this.a,e)},w(ai,"StreamImpl/5/2methodref$add$Type",1106),b(737,500,Io,eQ),o.Bd=function(e){for(this.b=!1;!this.b&&this.c.Bd(new jMn(this,e)););return this.b},o.b=!1,w(ai,"StreamImpl/FilterSpliterator",737),b(1096,1,re,jMn),o.Cd=function(e){cwe(this.a,this.b,e)},w(ai,"StreamImpl/FilterSpliterator/lambda$0$Type",1096),b(1091,736,Io,ONn),o.Re=function(e){return Bae(this,u(e,189))},w(ai,"StreamImpl/MapToDoubleSpliterator",1091),b(1095,1,re,EMn),o.Cd=function(e){fle(this.a,this.b,e)},w(ai,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095),b(1090,735,Io,ANn),o.Re=function(e){return Fae(this,u(e,202))},w(ai,"StreamImpl/MapToIntSpliterator",1090),b(1094,1,re,MMn),o.Cd=function(e){hle(this.a,this.b,e)},w(ai,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094),b(734,500,Io,FJ),o.Bd=function(e){return ePn(this,e)},w(ai,"StreamImpl/MapToObjSpliterator",734),b(1093,1,re,TMn),o.Cd=function(e){lle(this.a,this.b,e)},w(ai,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093),b(1092,500,Io,uxn),o.Bd=function(e){for(;NL(this.b,0);){if(!this.a.Bd(new Xbn))return!1;this.b=bs(this.b,1)}return this.a.Bd(e)},o.b=0,w(ai,"StreamImpl/SkipSpliterator",1092),b(1097,1,re,Xbn),o.Cd=function(e){},w(ai,"StreamImpl/SkipSpliterator/lambda$0$Type",1097),b(626,1,re,NA),o.Cd=function(e){t9n(this,e)},w(ai,"StreamImpl/ValueConsumer",626),b(1098,1,re,Vbn),o.Cd=function(e){Va()},w(ai,"StreamImpl/lambda$0$Type",1098),b(1099,1,re,Wbn),o.Cd=function(e){Va()},w(ai,"StreamImpl/lambda$1$Type",1099),b(1100,1,{},S9n),o.Ve=function(e,t){return mde(this.a,e,t)},w(ai,"StreamImpl/lambda$4$Type",1100),b(1101,1,re,CMn),o.Cd=function(e){Mae(this.b,this.a,e)},w(ai,"StreamImpl/lambda$5$Type",1101),b(1107,1,re,P9n),o.Cd=function(e){$ve(this.a,u(e,380))},w(ai,"TerminatableStream/lambda$0$Type",1107),b(2142,1,{}),b(2014,1,{},Jbn),w("javaemul.internal","ConsoleLogger",2014);var bDe=0;b(2134,1,{}),b(1830,1,re,Qbn),o.Cd=function(e){u(e,317)},w(Hm,"BowyerWatsonTriangulation/lambda$0$Type",1830),b(1831,1,re,I9n),o.Cd=function(e){Ki(this.a,u(e,317).e)},w(Hm,"BowyerWatsonTriangulation/lambda$1$Type",1831),b(1832,1,re,Ybn),o.Cd=function(e){u(e,177)},w(Hm,"BowyerWatsonTriangulation/lambda$2$Type",1832),b(1827,1,De,O9n),o.Ne=function(e,t){return m3e(this.a,u(e,177),u(t,177))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Hm,"NaiveMinST/lambda$0$Type",1827),b(449,1,{},Xv),w(Hm,"NodeMicroLayout",449),b(177,1,{177:1},bp),o.Fb=function(e){var t;return L(e,177)?(t=u(e,177),mc(this.a,t.a)&&mc(this.b,t.b)||mc(this.a,t.b)&&mc(this.b,t.a)):!1},o.Hb=function(){return yg(this.a)+yg(this.b)};var wDe=w(Hm,"TEdge",177);b(317,1,{317:1},Fen),o.Fb=function(e){var t;return L(e,317)?(t=u(e,317),tC(this,t.a)&&tC(this,t.b)&&tC(this,t.c)):!1},o.Hb=function(){return yg(this.a)+yg(this.b)+yg(this.c)},w(Hm,"TTriangle",317),b(225,1,{225:1},NM),w(Hm,"Tree",225),b(1218,1,{},EAn),w(Yzn,"Scanline",1218);var RQn=Dt(Yzn,Zzn);b(1758,1,{},m$n),w(zh,"CGraph",1758),b(316,1,{316:1},CAn),o.b=0,o.c=0,o.d=0,o.g=0,o.i=0,o.k=li,w(zh,"CGroup",316),b(830,1,{},XG),w(zh,"CGroup/CGroupBuilder",830),b(60,1,{60:1},KSn),o.Ib=function(){var e;return this.j?Ae(this.j.Kb(this)):(ll(aI),aI.o+"@"+(e=lb(this)>>>0,e.toString(16)))},o.f=0,o.i=li;var aI=w(zh,"CNode",60);b(829,1,{},VG),w(zh,"CNode/CNodeBuilder",829);var KQn;b(1590,1,{},Zbn),o.ff=function(e,t){return 0},o.gf=function(e,t){return 0},w(zh,eXn,1590),b(1853,1,{},n0n),o.cf=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j;for(a=Pt,r=new M(e.a.b);r.a<r.c.c.length;)t=u(E(r),60),a=y.Math.min(a,t.a.j.d.c+t.b.a);for(m=new Mt,f=new M(e.a.a);f.a<f.c.c.length;)s=u(E(f),316),s.k=a,s.g==0&&xt(m,s,m.c.b,m.c);for(;m.b!=0;){for(s=u(m.b==0?null:(oe(m.b!=0),Xo(m,m.a.a)),316),c=s.j.d.c,p=s.a.a.ec().Kc();p.Ob();)d=u(p.Pb(),60),j=s.k+d.b.a,!J6e(e,s,e.d)||d.d.c<j?d.i=j:d.i=d.d.c;for(c-=s.j.i,s.b+=c,e.d==(ci(),Xr)||e.d==Wf?s.c+=c:s.c-=c,g=s.a.a.ec().Kc();g.Ob();)for(d=u(g.Pb(),60),l=d.c.Kc();l.Ob();)h=u(l.Pb(),60),hl(e.d)?k=e.g.ff(d,h):k=e.g.gf(d,h),h.a.k=y.Math.max(h.a.k,d.i+d.d.b+k-h.b.a),zOn(e,h,e.d)&&(h.a.k=y.Math.max(h.a.k,h.d.c-h.b.a)),--h.a.g,h.a.g==0&&Re(m,h.a)}for(i=new M(e.a.b);i.a<i.c.c.length;)t=u(E(i),60),t.d.c=t.i},w(zh,"LongestPathCompaction",1853),b(1756,1,{},uHn),o.e=!1;var BQn,FQn,_Qn,c_=w(zh,rXn,1756);b(1757,1,re,A9n),o.Cd=function(e){Qve(this.a,u(e,42))},w(zh,cXn,1757),b(1854,1,{},e0n),o.df=function(e){var t,i,r,c,s,f,h;for(i=new M(e.a.b);i.a<i.c.c.length;)t=u(E(i),60),t.c.$b();for(c=new M(e.a.b);c.a<c.c.c.length;)for(r=u(E(c),60),f=new M(e.a.b);f.a<f.c.c.length;)s=u(E(f),60),r!=s&&(r.a&&r.a==s.a||(hl(e.d)?h=e.g.gf(r,s):h=e.g.ff(r,s),(s.d.c>r.d.c||r.d.c==s.d.c&&r.d.b<s.d.b)&&x8e(s.d.d+s.d.a+h,r.d.d)&&nZ(s.d.d,r.d.d+r.d.a+h)&&r.c.Fc(s)))},w(zh,"QuadraticConstraintCalculation",1854),b(529,1,{529:1},rL),o.a=!1,o.b=!1,o.c=!1,o.d=!1,w(zh,uXn,529),b(817,1,{},lW),o.df=function(e){this.c=e,Zk(this,new r0n)},w(zh,oXn,817),b(1784,1,{693:1},VOn),o.bf=function(e){Qje(this,u(e,473))},w(zh,sXn,1784),b(1785,1,De,t0n),o.Ne=function(e,t){return sge(u(e,60),u(t,60))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(zh,fXn,1785),b(473,1,{473:1},_z),o.a=!1,w(zh,hXn,473),b(1786,1,De,i0n),o.Ne=function(e,t){return ske(u(e,473),u(t,473))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(zh,lXn,1786),b(1787,1,ph,r0n),o.Lb=function(e){return u(e,60),!0},o.Fb=function(e){return this===e},o.Mb=function(e){return u(e,60),!0},w(zh,"ScanlineConstraintCalculator/lambda$1$Type",1787),b(436,22,{3:1,34:1,22:1,436:1},Hz);var Run,u_,Kun=we(BK,"HighLevelSortingCriterion",436,ke,Rge,tde),HQn;b(435,22,{3:1,34:1,22:1,435:1},qz);var Bun,o_,Fun=we(BK,"LowLevelSortingCriterion",435,ke,Kge,ide),qQn,a2=Dt(oc,"ILayoutMetaDataProvider");b(864,1,ms,A5n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Otn),FK),"Polyomino Traversal Strategy"),"Traversal strategy for trying different candidate positions for polyominoes."),Xun),(l1(),It)),ton),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Atn),FK),"Polyomino Secondary Sorting Criterion"),"Possible secondary sorting criteria for the processing order of polyominoes. They are used when polyominoes are equal according to the primary sorting criterion HighLevelSortingCriterion."),Gun),It),Fun),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ltn),FK),"Polyomino Primary Sorting Criterion"),"Possible primary sorting criteria for the processing order of polyominoes."),qun),It),Kun),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ntn),FK),"Fill Polyominoes"),"Use the Profile Fill algorithm to fill polyominoes to prevent small polyominoes from being placed inside of big polyominoes with large holes. Might increase packing area."),(_n(),!0)),yi),Gt),jn(xn))))};var _un,Hun,qun,Uun,Gun,zun,Xun;w(BK,"PolyominoOptions",864),b(257,22,{3:1,34:1,22:1,257:1},ag);var Vun,Wun,Jun,Qun,Yun,Zun,s_,non,eon,ton=we(BK,"TraversalStrategy",257,ke,$me,rde),UQn;b(218,1,{218:1},c0n),o.Ib=function(){return"NEdge[id="+this.b+" w="+this.g+" d="+this.a+"]"},o.a=1,o.b=0,o.c=0,o.f=!1,o.g=0;var GQn=w(Z5,"NEdge",218);b(182,1,{},hs),w(Z5,"NEdge/NEdgeBuilder",182),b(662,1,{},oL),w(Z5,"NGraph",662),b(125,1,{125:1},DNn),o.c=-1,o.d=0,o.e=0,o.i=-1,o.j=!1;var ion=w(Z5,"NNode",125);b(808,1,Xzn,GG),o.Jc=function(e){qi(this,e)},o.Lc=function(){return new Cn(null,new On(this,16))},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.Oc=function(){return new Cn(null,new On(this,16))},o.bd=function(e,t){++this.b,bb(this.a,e,t)},o.Fc=function(e){return BM(this,e)},o.cd=function(e,t){return++this.b,aY(this.a,e,t)},o.Gc=function(e){return++this.b,hi(this.a,e)},o.$b=function(){++this.b,I0(this.a.c,0)},o.Hc=function(e){return qr(this.a,e,0)!=-1},o.Ic=function(e){return Ek(this.a,e)},o.Xb=function(e){return sn(this.a,e)},o.dd=function(e){return qr(this.a,e,0)},o.dc=function(){return this.a.c.length==0},o.Kc=function(){return Fp(new M(this.a))},o.ed=function(){throw T(new Ie)},o.fd=function(e){throw T(new Ie)},o.gd=function(e){return++this.b,Yl(this.a,e)},o.Mc=function(e){return XX(this,e)},o.hd=function(e,t){return++this.b,Go(this.a,e,t)},o.gc=function(){return this.a.c.length},o.kd=function(e,t){return new Jl(this.a,e,t)},o.Pc=function(){return ZM(this.a.c)},o.Qc=function(e){return Rf(this.a,e)},o.b=0,w(Z5,"NNode/ChangeAwareArrayList",808),b(275,1,{},za),w(Z5,"NNode/NNodeBuilder",275),b(1695,1,{},u0n),o.a=!1,o.f=et,o.j=0,w(Z5,"NetworkSimplex",1695),b(1314,1,re,L9n),o.Cd=function(e){HGn(this.a,u(e,695),!0,!1)},w(aXn,"NodeLabelAndSizeCalculator/lambda$0$Type",1314),b(565,1,{},OE),o.b=!0,o.c=!0,o.d=!0,o.e=!0,w(aXn,"NodeMarginCalculator",565),b(217,1,{217:1}),o.j=!1,o.k=!1;var zQn=w(kd,"Cell",217);b(127,217,{127:1,217:1},RSn),o.jf=function(){return nT(this)},o.kf=function(){var e;return e=this.n,this.a.a+e.b+e.c},w(kd,"AtomicCell",127),b(237,22,{3:1,34:1,22:1,237:1},xL);var bc,Wc,wc,Pw=we(kd,"ContainerArea",237,ke,D2e,cde),XQn;b(336,217,dXn),w(kd,"ContainerCell",336),b(1538,336,dXn,SKn),o.jf=function(){var e;return e=0,this.e?this.b?e=this.b.b:this.a[1][1]&&(e=this.a[1][1].jf()):e=KY(this,qBn(this,!0)),e>0?e+this.n.d+this.n.a:0},o.kf=function(){var e,t,i,r,c;if(c=0,this.e)this.b?c=this.b.a:this.a[1][1]&&(c=this.a[1][1].kf());else if(this.g)c=KY(this,Gx(this,null,!0));else for(t=(wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])),i=0,r=t.length;i<r;++i)e=t[i],c=y.Math.max(c,KY(this,Gx(this,e,!0)));return c>0?c+this.n.b+this.n.c:0},o.lf=function(){var e,t,i,r,c;if(this.g)for(e=Gx(this,null,!1),i=(wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])),r=0,c=i.length;r<c;++r)t=i[r],jqn(this,t,e);else for(i=(wf(),S(C(Pw,1),G,237,0,[bc,Wc,wc])),r=0,c=i.length;r<c;++r)t=i[r],e=Gx(this,t,!1),jqn(this,t,e)},o.mf=function(){var e,t,i,r;t=this.i,e=this.n,r=qBn(this,!1),xJ(this,(wf(),bc),t.d+e.d,r),xJ(this,wc,t.d+t.a-e.a-r[2],r),i=t.a-e.d-e.a,r[0]>0&&(r[0]+=this.d,i-=r[0]),r[2]>0&&(r[2]+=this.d,i-=r[2]),this.c.a=y.Math.max(0,i),this.c.d=t.d+e.d+(this.c.a-i)/2,r[1]=y.Math.max(r[1],i),xJ(this,Wc,t.d+e.d+r[0]-(r[1]-i)/2,r)},o.b=null,o.d=0,o.e=!1,o.f=!1,o.g=!1;var f_=0,dI=0;w(kd,"GridContainerCell",1538),b(471,22,{3:1,34:1,22:1,471:1},RL);var pa,Th,zs,VQn=we(kd,"HorizontalLabelAlignment",471,ke,N2e,ude),WQn;b(314,217,{217:1,314:1},fAn,k$n,tAn),o.jf=function(){return qPn(this)},o.kf=function(){return nW(this)},o.a=0,o.c=!1;var gDe=w(kd,"LabelCell",314);b(252,336,{217:1,336:1,252:1},E5),o.jf=function(){return ey(this)},o.kf=function(){return ty(this)},o.lf=function(){NR(this)},o.mf=function(){DR(this)},o.b=0,o.c=0,o.d=!1,w(kd,"StripContainerCell",252),b(1691,1,Le,o0n),o.Mb=function(e){return uhe(u(e,217))},w(kd,"StripContainerCell/lambda$0$Type",1691),b(1692,1,{},s0n),o.Ye=function(e){return u(e,217).kf()},w(kd,"StripContainerCell/lambda$1$Type",1692),b(1693,1,Le,f0n),o.Mb=function(e){return ohe(u(e,217))},w(kd,"StripContainerCell/lambda$2$Type",1693),b(1694,1,{},h0n),o.Ye=function(e){return u(e,217).jf()},w(kd,"StripContainerCell/lambda$3$Type",1694),b(472,22,{3:1,34:1,22:1,472:1},KL);var Xs,ma,kf,JQn=we(kd,"VerticalLabelAlignment",472,ke,L2e,ode),QQn;b(800,1,{},ttn),o.c=0,o.d=0,o.k=0,o.s=0,o.t=0,o.v=!1,o.w=0,o.D=!1,w(nP,"NodeContext",800),b(1536,1,De,l0n),o.Ne=function(e,t){return eCn(u(e,64),u(t,64))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(nP,"NodeContext/0methodref$comparePortSides$Type",1536),b(1537,1,De,a0n),o.Ne=function(e,t){return xye(u(e,117),u(t,117))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(nP,"NodeContext/1methodref$comparePortContexts$Type",1537),b(164,22,{3:1,34:1,22:1,164:1},Vo);var YQn,ZQn,nYn,eYn,tYn,iYn,rYn,cYn,uYn,oYn,sYn,fYn,hYn,lYn,aYn,dYn,bYn,wYn,gYn,pYn,mYn,h_,vYn=we(nP,"NodeLabelLocation",164,ke,jx,sde),kYn;b(117,1,{117:1},sHn),o.a=!1,w(nP,"PortContext",117),b(1541,1,re,d0n),o.Cd=function(e){kEn(u(e,314))},w(Ay,bXn,1541),b(1542,1,Le,b0n),o.Mb=function(e){return!!u(e,117).c},w(Ay,wXn,1542),b(1543,1,re,w0n),o.Cd=function(e){kEn(u(e,117).c)},w(Ay,"LabelPlacer/lambda$2$Type",1543);var ron;b(1540,1,re,g0n),o.Cd=function(e){K0(),Bfe(u(e,117))},w(Ay,"NodeLabelAndSizeUtilities/lambda$0$Type",1540),b(801,1,re,NV),o.Cd=function(e){Zhe(this.b,this.c,this.a,u(e,187))},o.a=!1,o.c=!1,w(Ay,"NodeLabelCellCreator/lambda$0$Type",801),b(1539,1,re,N9n),o.Cd=function(e){Hfe(this.a,u(e,187))},w(Ay,"PortContextCreator/lambda$0$Type",1539);var bI;b(1902,1,{},p0n),w(Um,"GreedyRectangleStripOverlapRemover",1902),b(1903,1,De,m0n),o.Ne=function(e,t){return A1e(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Um,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903),b(1849,1,{},qyn),o.a=5,o.e=0,w(Um,"RectangleStripOverlapRemover",1849),b(1850,1,De,v0n),o.Ne=function(e,t){return L1e(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Um,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850),b(1852,1,De,k0n),o.Ne=function(e,t){return ywe(u(e,226),u(t,226))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Um,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852),b(417,22,{3:1,34:1,22:1,417:1},sM);var ij,l_,a_,rj,yYn=we(Um,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,ke,Xpe,fde),jYn;b(226,1,{226:1},ZN),w(Um,"RectangleStripOverlapRemover/RectangleNode",226),b(1851,1,re,D9n),o.Cd=function(e){s7e(this.a,u(e,226))},w(Um,"RectangleStripOverlapRemover/lambda$1$Type",1851),b(1323,1,De,y0n),o.Ne=function(e,t){return POe(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1323),b(1326,1,{},j0n),o.Kb=function(e){return u(e,334).a},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1326),b(1327,1,Le,E0n),o.Mb=function(e){return u(e,332).a},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1327),b(1328,1,Le,M0n),o.Mb=function(e){return u(e,332).a},w(mh,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1328),b(1321,1,De,T0n),o.Ne=function(e,t){return rPe(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1321),b(1324,1,{},C0n),o.Kb=function(e){return u(e,334).a},w(mh,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1324),b(781,1,De,BU),o.Ne=function(e,t){return Fve(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/MinNumOfExtensionsComparator",781),b(1319,1,De,S0n),o.Ne=function(e,t){return Vme(u(e,330),u(t,330))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/MinPerimeterComparator",1319),b(1320,1,De,P0n),o.Ne=function(e,t){return L9e(u(e,330),u(t,330))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/MinPerimeterComparatorWithShape",1320),b(1322,1,De,I0n),o.Ne=function(e,t){return TPe(u(e,176),u(t,176))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mh,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1322),b(1325,1,{},O0n),o.Kb=function(e){return u(e,334).a},w(mh,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1325),b(782,1,{},Uz),o.Ve=function(e,t){return Bpe(this,u(e,42),u(t,176))},w(mh,"SuccessorCombination",782),b(649,1,{},DA),o.Ve=function(e,t){var i;return eMe((i=u(e,42),u(t,176),i))},w(mh,"SuccessorJitter",649),b(648,1,{},$A),o.Ve=function(e,t){var i;return _Ce((i=u(e,42),u(t,176),i))},w(mh,"SuccessorLineByLine",648),b(573,1,{},vE),o.Ve=function(e,t){var i;return eTe((i=u(e,42),u(t,176),i))},w(mh,"SuccessorManhattan",573),b(1344,1,{},A0n),o.Ve=function(e,t){var i;return lCe((i=u(e,42),u(t,176),i))},w(mh,"SuccessorMaxNormWindingInMathPosSense",1344),b(409,1,{},n4),o.Ve=function(e,t){return MW(this,e,t)},o.c=!1,o.d=!1,o.e=!1,o.f=!1,w(mh,"SuccessorQuadrantsGeneric",409),b(1345,1,{},L0n),o.Kb=function(e){return u(e,334).a},w(mh,"SuccessorQuadrantsGeneric/lambda$0$Type",1345),b(332,22,{3:1,34:1,22:1,332:1},fM),o.a=!1;var cj,uj,oj,sj,EYn=we(tP,Rtn,332,ke,Gpe,hde),MYn;b(1317,1,{}),o.Ib=function(){var e,t,i,r,c,s;for(i=" ",e=Y(0),c=0;c<this.o;c++)i+=""+e.a,e=Y(TSn(e.a));for(i+=`
`,e=Y(0),s=0;s<this.p;s++){for(i+=""+e.a,e=Y(TSn(e.a)),r=0;r<this.o;r++)t=M$(this,r,s),Ec(t,0)==0?i+="_":Ec(t,1)==0?i+="X":i+="0";i+=`
`}return qo(i,0,i.length-1)},o.o=0,o.p=0,w(tP,"TwoBitGrid",1317),b(330,1317,{330:1},XY),o.j=0,o.k=0,w(tP,"PlanarGrid",330),b(176,330,{330:1,176:1}),o.g=0,o.i=0,w(tP,"Polyomino",176);var pDe=Dt(Ly,pXn);b(137,1,Ktn,xA),o.qf=function(e,t){return Sk(this,e,t)},o.nf=function(){return oIn(this)},o.of=function(e){return v(this,e)},o.pf=function(e){return kt(this,e)},w(Ly,"MapPropertyHolder",137),b(1318,137,Ktn,hqn),w(tP,"Polyominoes",1318);var TYn=!1,O8,con;b(1828,1,re,N0n),o.Cd=function(e){aGn(u(e,225))},w(h3,"DepthFirstCompaction/0methodref$compactTree$Type",1828),b(825,1,re,IG),o.Cd=function(e){qwe(this.a,u(e,225))},w(h3,"DepthFirstCompaction/lambda$1$Type",825),b(1829,1,re,gPn),o.Cd=function(e){z8e(this.a,this.b,this.c,u(e,225))},w(h3,"DepthFirstCompaction/lambda$2$Type",1829);var A8,uon;b(68,1,{68:1},jAn),w(h3,"Node",68),b(1214,1,{},yCn),w(h3,"ScanlineOverlapCheck",1214),b(1215,1,{693:1},JOn),o.bf=function(e){yae(this,u(e,451))},w(h3,"ScanlineOverlapCheck/OverlapsScanlineHandler",1215),b(1216,1,De,D0n),o.Ne=function(e,t){return I5e(u(e,68),u(t,68))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(h3,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1216),b(451,1,{451:1},Gz),o.a=!1,w(h3,"ScanlineOverlapCheck/Timestamp",451),b(1217,1,De,$0n),o.Ne=function(e,t){return fke(u(e,451),u(t,451))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(h3,"ScanlineOverlapCheck/lambda$0$Type",1217),b(557,1,{},kE),w(mXn,"SVGImage",557),b(334,1,{334:1},LV),o.Ib=function(){return"("+this.a+ur+this.b+ur+this.c+")"},w(mXn,"UniqueTriple",334),b(205,1,yd),w(e2,"AbstractLayoutProvider",205),b(1114,205,yd,x0n),o.rf=function(e,t){var i,r,c,s;switch(t.Ug(vXn,1),this.a=$(B(z(e,(M5(),aon)))),Nf(e,b_)&&(c=Ae(z(e,b_)),i=CR(z4(),c),i&&(r=u(z7(i.f),205),r.rf(e,t.eh(1)))),s=new HLn(this.a),this.b=rLe(s,e),u(z(e,(Q$(),son)),489).g){case 0:kMe(new R0n,this.b),ht(e,pI,v(this.b,pI));break;default:fl()}vLe(s),ht(e,hon,this.b),t.Vg()},o.a=0,w(kXn,"DisCoLayoutProvider",1114),b(1208,1,{},R0n),o.c=!1,o.e=0,o.f=0,w(kXn,"DisCoPolyominoCompactor",1208),b(567,1,{567:1},cIn),o.b=!0,w(rP,"DCComponent",567),b(406,22,{3:1,34:1,22:1,406:1},hM),o.a=!1;var wI,fj,gI,hj,CYn=we(rP,"DCDirection",406,ke,zpe,lde),SYn;b(272,137,{3:1,272:1,96:1,137:1},bR),w(rP,"DCElement",272),b(407,1,{407:1},pZ),o.c=0,w(rP,"DCExtension",407),b(762,137,Ktn,Vjn),w(rP,"DCGraph",762),b(489,22,{3:1,34:1,22:1,489:1},bSn);var d_,oon=we(VK,Btn,489,ke,nge,ade),PYn;b(865,1,ms,L5n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ftn),yXn),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),fon),(l1(),It)),oon),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,_tn),yXn),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),$2),fn),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Htn),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),Vf),ki),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,qtn),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),Vf),ki),jn(xn)))),QUn((new N5n,e))};var IYn,son,fon,OYn,AYn;w(VK,"DisCoMetaDataProvider",865),b(1010,1,ms,N5n),o.hf=function(e){QUn(e)};var LYn,b_,NYn,hon,pI,w_,lon,DYn,$Yn,xYn,RYn,aon;w(VK,"DisCoOptions",1010),b(1011,1,{},K0n),o.sf=function(){var e;return e=new x0n,e},o.tf=function(e){},w(VK,"DisCoOptions/DiscoFactory",1011),b(568,176,{330:1,176:1,568:1},zHn),o.a=0,o.b=0,o.c=0,o.d=0,w("org.eclipse.elk.alg.disco.structures","DCPolyomino",568);var g_,p_,mI;b(1286,1,Le,B0n),o.Mb=function(e){return kX(e)},w(t2,"ElkGraphComponentsProcessor/lambda$0$Type",1286),b(1287,1,{},F0n),o.Kb=function(e){return Np(),Fh(u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$1$Type",1287),b(1288,1,Le,_0n),o.Mb=function(e){return v0e(u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$2$Type",1288),b(1289,1,{},H0n),o.Kb=function(e){return Np(),ra(u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$3$Type",1289),b(1290,1,Le,q0n),o.Mb=function(e){return k0e(u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$4$Type",1290),b(1291,1,Le,$9n),o.Mb=function(e){return d2e(this.a,u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$5$Type",1291),b(1292,1,{},x9n),o.Kb=function(e){return Nwe(this.a,u(e,74))},w(t2,"ElkGraphComponentsProcessor/lambda$6$Type",1292),b(1205,1,{},HLn),o.a=0,w(t2,"ElkGraphTransformer",1205),b(1206,1,{},U0n),o.Yd=function(e,t){cMe(this,u(e,167),u(t,272))},w(t2,"ElkGraphTransformer/OffsetApplier",1206),b(1207,1,re,R9n),o.Cd=function(e){w1e(this,u(e,8))},w(t2,"ElkGraphTransformer/OffsetApplier/OffSetToChainApplier",1207),b(760,1,{},FU),w(YK,Utn,760),b(1195,1,De,G0n),o.Ne=function(e,t){return XEe(u(e,235),u(t,235))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(YK,EXn,1195),b(1196,1,re,SMn),o.Cd=function(e){Q2e(this.b,this.a,u(e,250))},w(YK,Gtn,1196),b(738,205,yd,zG),o.rf=function(e,t){VHn(this,e,t)},w(YK,"ForceLayoutProvider",738),b(309,137,{3:1,309:1,96:1,137:1}),w(Ny,"FParticle",309),b(250,309,{3:1,250:1,309:1,96:1,137:1},UIn),o.Ib=function(){var e;return this.a?(e=qr(this.a.a,this,0),e>=0?"b"+e+"["+XD(this.a)+"]":"b["+XD(this.a)+"]"):"b_"+lb(this)},w(Ny,"FBendpoint",250),b(290,137,{3:1,290:1,96:1,137:1},BSn),o.Ib=function(){return XD(this)},w(Ny,"FEdge",290),b(235,137,{3:1,235:1,96:1,137:1},zT);var mDe=w(Ny,"FGraph",235);b(454,309,{3:1,454:1,309:1,96:1,137:1},_Ln),o.Ib=function(){return this.b==null||this.b.length==0?"l["+XD(this.a)+"]":"l_"+this.b},w(Ny,"FLabel",454),b(153,309,{3:1,153:1,309:1,96:1,137:1},vCn),o.Ib=function(){return lJ(this)},o.a=0,w(Ny,"FNode",153),b(2100,1,{}),o.vf=function(e){$en(this,e)},o.wf=function(){HBn(this)},o.d=0,w(ztn,"AbstractForceModel",2100),b(641,2100,{641:1},Bxn),o.uf=function(e,t){var i,r,c,s,f;return wGn(this.f,e,t),c=mi(Fi(t.d),e.d),f=y.Math.sqrt(c.a*c.a+c.b*c.b),r=y.Math.max(0,f-z6(e.e)/2-z6(t.e)/2),i=Q_n(this.e,e,t),i>0?s=-mwe(r,this.c)*i:s=X1e(r,this.b)*u(v(e,(Us(),k3)),17).a,ch(c,s/f),c},o.vf=function(e){$en(this,e),this.a=u(v(e,(Us(),kI)),17).a,this.c=$(B(v(e,yI))),this.b=$(B(v(e,v_)))},o.xf=function(e){return e<this.a},o.a=0,o.b=0,o.c=0,w(ztn,"EadesModel",641),b(642,2100,{642:1},KPn),o.uf=function(e,t){var i,r,c,s,f;return wGn(this.f,e,t),c=mi(Fi(t.d),e.d),f=y.Math.sqrt(c.a*c.a+c.b*c.b),r=y.Math.max(0,f-z6(e.e)/2-z6(t.e)/2),s=V1e(r,this.a)*u(v(e,(Us(),k3)),17).a,i=Q_n(this.e,e,t),i>0&&(s-=the(r,this.a)*i),ch(c,s*this.b/f),c},o.vf=function(e){var t,i,r,c,s,f,h;for($en(this,e),this.b=$(B(v(e,(Us(),k_)))),this.c=this.b/u(v(e,kI),17).a,r=e.e.c.length,s=0,c=0,h=new M(e.e);h.a<h.c.c.length;)f=u(E(h),153),s+=f.e.a,c+=f.e.b;t=s*c,i=$(B(v(e,yI)))*_f,this.a=y.Math.sqrt(t/(2*r))*i},o.wf=function(){HBn(this),this.b-=this.c},o.xf=function(e){return this.b>0},o.a=0,o.b=0,o.c=0,w(ztn,"FruchtermanReingoldModel",642),b(860,1,ms,D5n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,cP),""),"Force Model"),"Determines the model for force calculation."),don),(l1(),It)),bon),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Xtn),""),"Iterations"),"The number of iterations on the force model."),Y(300)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Vtn),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Y(0)),Zr),Gi),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ZK),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),vh),Qi),si),jn(xn)))),ri(e,ZK,cP,UYn),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,nB),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Qi),si),jn(xn)))),ri(e,nB,cP,_Yn),izn((new $5n,e))};var KYn,BYn,don,FYn,_Yn,HYn,qYn,UYn;w(e8,"ForceMetaDataProvider",860),b(432,22,{3:1,34:1,22:1,432:1},zz);var m_,vI,bon=we(e8,"ForceModelStrategy",432,ke,Bge,dde),GYn;b(d1,1,ms,$5n),o.hf=function(e){izn(e)};var zYn,XYn,won,kI,gon,VYn,WYn,JYn,QYn,pon,YYn,mon,von,ZYn,k3,nZn,v_,kon,eZn,tZn,yI,k_,iZn,rZn,cZn,yon,uZn;w(e8,"ForceOptions",d1),b(1001,1,{},W0n),o.sf=function(){var e;return e=new zG,e},o.tf=function(e){},w(e8,"ForceOptions/ForceFactory",1001);var lj,L8,y3,jI;b(861,1,ms,x5n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Jtn),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(_n(),!1)),(l1(),yi)),Gt),jn((pf(),pi))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Qtn),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),Qi),si),yt(xn,S(C(Zh,1),G,170,0,[Ih]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ytn),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),jon),It),Ion),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ztn),""),"Stress Epsilon"),"Termination criterion for the iterative process."),vh),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,nin),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Y(et)),Zr),Gi),jn(xn)))),AGn((new R5n,e))};var oZn,sZn,jon,fZn,hZn,lZn;w(e8,"StressMetaDataProvider",861),b(1004,1,ms,R5n),o.hf=function(e){AGn(e)};var EI,Eon,Mon,Ton,Con,Son,aZn,dZn,bZn,wZn,Pon,gZn;w(e8,"StressOptions",1004),b(1005,1,{},X0n),o.sf=function(){var e;return e=new FSn,e},o.tf=function(e){},w(e8,"StressOptions/StressFactory",1005),b(1110,205,yd,FSn),o.rf=function(e,t){var i,r,c,s,f;for(t.Ug(PXn,1),on(un(z(e,(Uk(),Con))))?on(un(z(e,Pon)))||X7((i=new Xv((cb(),new Qd(e))),i)):VHn(new zG,e,t.eh(1)),c=fRn(e),r=FUn(this.a,c),f=r.Kc();f.Ob();)s=u(f.Pb(),235),!(s.e.c.length<=1)&&(TOe(this.b,s),JMe(this.b),nu(s.d,new V0n));c=nzn(r),hzn(c),t.Vg()},w(sP,"StressLayoutProvider",1110),b(1111,1,re,V0n),o.Cd=function(e){qen(u(e,454))},w(sP,"StressLayoutProvider/lambda$0$Type",1111),b(1002,1,{},Kyn),o.c=0,o.e=0,o.g=0,w(sP,"StressMajorization",1002),b(391,22,{3:1,34:1,22:1,391:1},BL);var y_,j_,E_,Ion=we(sP,"StressMajorization/Dimension",391,ke,$2e,bde),pZn;b(1003,1,De,K9n),o.Ne=function(e,t){return Hae(this.a,u(e,153),u(t,153))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(sP,"StressMajorization/lambda$0$Type",1003),b(1192,1,{},zAn),w(b3,"ElkLayered",1192),b(1193,1,re,B9n),o.Cd=function(e){TEe(this.a,u(e,36))},w(b3,"ElkLayered/lambda$0$Type",1193),b(1194,1,re,F9n),o.Cd=function(e){qae(this.a,u(e,36))},w(b3,"ElkLayered/lambda$1$Type",1194),b(1281,1,{},ICn);var mZn,vZn,kZn;w(b3,"GraphConfigurator",1281),b(770,1,re,OG),o.Cd=function(e){e_n(this.a,u(e,10))},w(b3,"GraphConfigurator/lambda$0$Type",770),b(771,1,{},_U),o.Kb=function(e){return LZ(),new Cn(null,new On(u(e,30).a,16))},w(b3,"GraphConfigurator/lambda$1$Type",771),b(772,1,re,AG),o.Cd=function(e){e_n(this.a,u(e,10))},w(b3,"GraphConfigurator/lambda$2$Type",772),b(1109,205,yd,Uyn),o.rf=function(e,t){var i;i=cOe(new zyn,e),x(z(e,(cn(),Kw)))===x((jl(),T1))?R5e(this.a,i,t):zMe(this.a,i,t),t.$g()||XGn(new K5n,i)},w(b3,"LayeredLayoutProvider",1109),b(367,22,{3:1,34:1,22:1,367:1},o7);var Vs,Jh,Ac,Fc,zr,Oon=we(b3,"LayeredPhases",367,ke,B3e,wde),yZn;b(1717,1,{},ixn),o.i=0;var jZn;w(By,"ComponentsToCGraphTransformer",1717);var EZn;b(1718,1,{},z0n),o.yf=function(e,t){return y.Math.min(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},o.zf=function(e,t){return y.Math.min(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},w(By,"ComponentsToCGraphTransformer/1",1718),b(86,1,{86:1}),o.i=0,o.k=!0,o.o=li;var M_=w(c8,"CNode",86);b(470,86,{470:1,86:1},JX,uZ),o.Ib=function(){return""},w(By,"ComponentsToCGraphTransformer/CRectNode",470),b(1688,1,{},J0n);var T_,C_;w(By,"OneDimensionalComponentsCompaction",1688),b(1689,1,{},Q0n),o.Kb=function(e){return C2e(u(e,42))},o.Fb=function(e){return this===e},w(By,"OneDimensionalComponentsCompaction/lambda$0$Type",1689),b(1690,1,{},Y0n),o.Kb=function(e){return B5e(u(e,42))},o.Fb=function(e){return this===e},w(By,"OneDimensionalComponentsCompaction/lambda$1$Type",1690),b(1720,1,{},ZIn),w(c8,"CGraph",1720),b(194,1,{194:1},vx),o.b=0,o.c=0,o.e=0,o.g=!0,o.i=li,w(c8,"CGroup",194),b(1719,1,{},Z0n),o.yf=function(e,t){return y.Math.max(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},o.zf=function(e,t){return y.Math.max(e.a!=null?$(e.a):e.c.i,t.a!=null?$(t.a):t.c.i)},w(c8,eXn,1719),b(1721,1,{},Z_n),o.d=!1;var MZn,S_=w(c8,rXn,1721);b(1722,1,{},nwn),o.Kb=function(e){return Nz(),_n(),u(u(e,42).a,86).d.e!=0},o.Fb=function(e){return this===e},w(c8,cXn,1722),b(833,1,{},oW),o.a=!1,o.b=!1,o.c=!1,o.d=!1,w(c8,uXn,833),b(1898,1,{},wIn),w(fP,oXn,1898);var aj=Dt(Ed,Zzn);b(1899,1,{382:1},WOn),o.bf=function(e){nSe(this,u(e,476))},w(fP,sXn,1899),b(ha,1,De,ewn),o.Ne=function(e,t){return fge(u(e,86),u(t,86))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(fP,fXn,ha),b(476,1,{476:1},Vz),o.a=!1,w(fP,hXn,476),b(1901,1,De,twn),o.Ne=function(e,t){return hke(u(e,476),u(t,476))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(fP,lXn,1901),b(148,1,{148:1},d4,UV),o.Fb=function(e){var t;return e==null||vDe!=wo(e)?!1:(t=u(e,148),mc(this.c,t.c)&&mc(this.d,t.d))},o.Hb=function(){return Ok(S(C(ki,1),Kn,1,5,[this.c,this.d]))},o.Ib=function(){return"("+this.c+ur+this.d+(this.a?"cx":"")+this.b+")"},o.a=!0,o.c=0,o.d=0;var vDe=w(Ed,"Point",148);b(416,22,{3:1,34:1,22:1,416:1},lM);var r0,Iw,d2,Ow,TZn=we(Ed,"Point/Quadrant",416,ke,Vpe,gde),CZn;b(1708,1,{},Hyn),o.b=null,o.c=null,o.d=null,o.e=null,o.f=null;var SZn,PZn,IZn,OZn,AZn;w(Ed,"RectilinearConvexHull",1708),b(583,1,{382:1},eS),o.bf=function(e){K4e(this,u(e,148))},o.b=0;var Aon;w(Ed,"RectilinearConvexHull/MaximalElementsEventHandler",583),b(1710,1,De,iwn),o.Ne=function(e,t){return hge(B(e),B(t))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710),b(1709,1,{382:1},v$n),o.bf=function(e){wCe(this,u(e,148))},o.a=0,o.b=null,o.c=null,o.d=null,o.e=null,w(Ed,"RectilinearConvexHull/RectangleEventHandler",1709),b(1711,1,De,rwn),o.Ne=function(e,t){return mpe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$0$Type",1711),b(1712,1,De,own),o.Ne=function(e,t){return vpe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$1$Type",1712),b(1713,1,De,swn),o.Ne=function(e,t){return ppe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$2$Type",1713),b(1714,1,De,uwn),o.Ne=function(e,t){return kpe(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$3$Type",1714),b(1715,1,De,fwn),o.Ne=function(e,t){return Qye(u(e,148),u(t,148))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ed,"RectilinearConvexHull/lambda$4$Type",1715),b(1716,1,{},MAn),w(Ed,"Scanline",1716),b(2104,1,{}),w(Hf,"AbstractGraphPlacer",2104),b(335,1,{335:1},lSn),o.Ff=function(e){return this.Gf(e)?(In(this.b,u(v(e,(W(),Dl)),21),e),!0):!1},o.Gf=function(e){var t,i,r,c;for(t=u(v(e,(W(),Dl)),21),c=u(ot(wt,t),21),r=c.Kc();r.Ob();)if(i=u(r.Pb(),21),!u(ot(this.b,i),15).dc())return!1;return!0};var wt;w(Hf,"ComponentGroup",335),b(779,2104,{},WG),o.Hf=function(e){var t,i;for(i=new M(this.a);i.a<i.c.c.length;)if(t=u(E(i),335),t.Ff(e))return;nn(this.a,new lSn(e))},o.Ef=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k;if(this.a.c.length=0,t.a.c.length=0,e.dc()){t.f.a=0,t.f.b=0;return}for(f=u(e.Xb(0),36),Ur(t,f),c=e.Kc();c.Ob();)r=u(c.Pb(),36),this.Hf(r);for(k=new Ni,s=$(B(v(f,(cn(),Cj)))),a=new M(this.a);a.a<a.c.c.length;)h=u(E(a),335),d=lzn(h,s),Zl(pT(h.b),k.a,k.b),k.a+=d.a,k.b+=d.b;if(t.f.a=k.a-s,t.f.b=k.b-s,on(un(v(f,sO)))&&x(v(f,$l))===x((El(),Bv))){for(m=e.Kc();m.Ob();)g=u(m.Pb(),36),Pm(g,g.c.a,g.c.b);for(i=new RA,stn(i,e,s),p=e.Kc();p.Ob();)g=u(p.Pb(),36),tt(ff(g.c),i.e);tt(ff(t.f),i.a)}for(l=new M(this.a);l.a<l.c.c.length;)h=u(E(l),335),YJ(t,pT(h.b))},w(Hf,"ComponentGroupGraphPlacer",779),b(1312,779,{},ejn),o.Hf=function(e){tKn(this,e)},o.Ef=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D;if(this.a.c.length=0,t.a.c.length=0,e.dc()){t.f.a=0,t.f.b=0;return}for(f=u(e.Xb(0),36),Ur(t,f),c=e.Kc();c.Ob();)r=u(c.Pb(),36),tKn(this,r);for(D=new Ni,A=new Ni,j=new Ni,k=new Ni,s=$(B(v(f,(cn(),Cj)))),a=new M(this.a);a.a<a.c.c.length;){if(h=u(E(a),335),hl(u(v(t,(He(),_d)),88))){for(j.a=D.a,O=new n6(G6(aD(h.b).a).a.kc());O.b.Ob();)if(P=u(rM(O.b.Pb()),21),P.Hc((en(),Xn))){j.a=A.a;break}}else if(vg(u(v(t,_d),88))){for(j.b=D.b,O=new n6(G6(aD(h.b).a).a.kc());O.b.Ob();)if(P=u(rM(O.b.Pb()),21),P.Hc((en(),Wn))){j.b=A.b;break}}if(d=lzn(u(h,579),s),Zl(pT(h.b),j.a,j.b),hl(u(v(t,_d),88))){for(A.a=j.a+d.a,k.a=y.Math.max(k.a,A.a),O=new n6(G6(aD(h.b).a).a.kc());O.b.Ob();)if(P=u(rM(O.b.Pb()),21),P.Hc((en(),ae))){D.a=j.a+d.a;break}A.b=j.b+d.b,j.b=A.b,k.b=y.Math.max(k.b,j.b)}else if(vg(u(v(t,_d),88))){for(A.b=j.b+d.b,k.b=y.Math.max(k.b,A.b),O=new n6(G6(aD(h.b).a).a.kc());O.b.Ob();)if(P=u(rM(O.b.Pb()),21),P.Hc((en(),Zn))){D.b=j.b+d.b;break}A.a=j.a+d.a,j.a=A.a,k.a=y.Math.max(k.a,j.a)}}if(t.f.a=k.a-s,t.f.b=k.b-s,on(un(v(f,sO)))&&x(v(f,$l))===x((El(),Bv))){for(m=e.Kc();m.Ob();)g=u(m.Pb(),36),Pm(g,g.c.a,g.c.b);for(i=new RA,stn(i,e,s),p=e.Kc();p.Ob();)g=u(p.Pb(),36),tt(ff(g.c),i.e);tt(ff(t.f),i.a)}for(l=new M(this.a);l.a<l.c.c.length;)h=u(E(l),335),YJ(t,pT(h.b))},w(Hf,"ComponentGroupModelOrderGraphPlacer",1312),b(389,22,{3:1,34:1,22:1,389:1},aM);var P_,Lon,I_,Aw,Non=we(Hf,"ComponentOrderingStrategy",389,ke,qpe,pde),LZn;b(659,1,{},RA),w(Hf,"ComponentsCompactor",659),b(1533,13,Gzn,yNn),o.Fc=function(e){return O5(this,u(e,148))},w(Hf,"ComponentsCompactor/Hullpoints",1533),b(1530,1,{855:1},yBn),o.a=!1,w(Hf,"ComponentsCompactor/InternalComponent",1530),b(1529,1,qh,Fyn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new M(this.a)},w(Hf,"ComponentsCompactor/InternalConnectedComponents",1529),b(1532,1,{602:1},tHn),o.Bf=function(){return null},o.Cf=function(){return this.a},o.Af=function(){return Ex(this.d)},o.Df=function(){return this.b},w(Hf,"ComponentsCompactor/InternalExternalExtension",1532),b(1531,1,{602:1},Gyn),o.Cf=function(){return this.a},o.Af=function(){return Ex(this.d)},o.Bf=function(){return this.c},o.Df=function(){return this.b},w(Hf,"ComponentsCompactor/InternalUnionExternalExtension",1531),b(1535,1,{},Eqn),w(Hf,"ComponentsCompactor/OuterSegments",1535),b(1534,1,{},_yn),w(Hf,"ComponentsCompactor/Segments",1534),b(1282,1,{},$Nn),w(Hf,Utn,1282),b(1283,1,De,hwn),o.Ne=function(e,t){return Epe(u(e,36),u(t,36))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Hf,"ComponentsProcessor/lambda$0$Type",1283),b(579,335,{335:1,579:1},kNn),o.Ff=function(e){return oY(this,e)},o.Gf=function(e){return tqn(this,e)};var qe;w(Hf,"ModelOrderComponentGroup",579),b(1310,2104,{},lwn),o.Ef=function(e,t){var i,r,c,s,f,h,l,a,d,g,p;if(e.gc()==1){g=u(e.Xb(0),36),g!=t&&(t.a.c.length=0,sUn(t,g,0,0),Ur(t,g),VW(t.d,g.d),t.f.a=g.f.a,t.f.b=g.f.b);return}else if(e.dc()){t.a.c.length=0,t.f.a=0,t.f.b=0;return}for(this.Jf(e,t),c=u(e.Xb(0),36),t.a.c.length=0,Ur(t,c),a=0,p=0,f=e.Kc();f.Ob();)s=u(f.Pb(),36),d=s.f,a=y.Math.max(a,d.a),p+=d.a*d.b;if(a=y.Math.max(a,y.Math.sqrt(p)*$(B(v(t,(cn(),oO))))),r=$(B(v(t,Cj))),this.If(e,t,a,r),on(un(v(c,sO)))){for(i=new RA,stn(i,e,r),l=e.Kc();l.Ob();)h=u(l.Pb(),36),tt(ff(h.c),i.e);tt(ff(t.f),i.a)}YJ(t,e)},o.If=function(e,t,i,r){var c,s,f,h,l,a,d,g;for(d=0,g=0,h=0,c=r,f=e.Kc();f.Ob();)s=u(f.Pb(),36),a=s.f,d+a.a>i&&(d=0,g+=h+r,h=0),l=s.c,Pm(s,d+l.a,g+l.b),ff(l),c=y.Math.max(c,d+a.a),h=y.Math.max(h,a.b),d+=a.a+r;t.f.a=c,t.f.b=g+h},o.Jf=function(e,t){var i,r,c,s,f;if(x(v(t,(cn(),Rw)))===x((dd(),Aw))){for(r=e.Kc();r.Ob();){for(i=u(r.Pb(),36),f=0,s=new M(i.a);s.a<s.c.c.length;)c=u(E(s),10),f+=u(v(c,qte),17).a;i.p=f}Ln(),e.jd(new awn)}},w(Hf,"SimpleRowGraphPlacer",1310),b(1313,1310,{},cwn),o.If=function(e,t,i,r){var c,s,f,h,l,a,d,g,p,m;for(p=0,m=0,h=0,c=r,l=null,g=0,f=e.Kc();f.Ob();)s=u(f.Pb(),36),d=s.f,(p+d.a>i&&!u(v(s,(W(),Dl)),21).Hc((en(),Xn))||l&&u(v(l,(W(),Dl)),21).Hc((en(),Zn))||u(v(s,(W(),Dl)),21).Hc((en(),Wn)))&&(p=g,m+=h+r,h=0),a=s.c,u(v(s,(W(),Dl)),21).Hc((en(),Xn))&&(p=c+r),Pm(s,p+a.a,m+a.b),c=y.Math.max(c,p+d.a),u(v(s,Dl),21).Hc(ae)&&(g=y.Math.max(g,p+d.a+r)),ff(a),h=y.Math.max(h,d.b),p+=d.a+r,l=s;t.f.a=c,t.f.b=m+h},o.Jf=function(e,t){},w(Hf,"ModelOrderRowGraphPlacer",1313),b(1311,1,De,awn),o.Ne=function(e,t){return Rve(u(e,36),u(t,36))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Hf,"SimpleRowGraphPlacer/1",1311);var NZn;b(1280,1,ph,dwn),o.Lb=function(e){var t;return t=u(v(u(e,249).b,(cn(),Rr)),75),!!t&&t.b!=0},o.Fb=function(e){return this===e},o.Mb=function(e){var t;return t=u(v(u(e,249).b,(cn(),Rr)),75),!!t&&t.b!=0},w(hP,"CompoundGraphPostprocessor/1",1280),b(1279,1,vt,Xyn),o.Kf=function(e,t){jBn(this,u(e,36),t)},w(hP,"CompoundGraphPreprocessor",1279),b(453,1,{453:1},aKn),o.c=!1,w(hP,"CompoundGraphPreprocessor/ExternalPort",453),b(249,1,{249:1},zM),o.Ib=function(){return PN(this.c)+":"+X_n(this.b)},w(hP,"CrossHierarchyEdge",249),b(777,1,De,LG),o.Ne=function(e,t){return K7e(this,u(e,249),u(t,249))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(hP,"CrossHierarchyEdgeComparator",777),b(305,137,{3:1,305:1,96:1,137:1}),o.p=0,w(Kc,"LGraphElement",305),b(18,305,{3:1,18:1,305:1,96:1,137:1},Eb),o.Ib=function(){return X_n(this)};var O_=w(Kc,"LEdge",18);b(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},jQ),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new M(this.b)},o.Ib=function(){return this.b.c.length==0?"G-unlayered"+ca(this.a):this.a.c.length==0?"G-layered"+ca(this.b):"G[layerless"+ca(this.a)+", layers"+ca(this.b)+"]"};var DZn=w(Kc,"LGraph",36),$Zn;b(666,1,{}),o.Lf=function(){return this.e.n},o.of=function(e){return v(this.e,e)},o.Mf=function(){return this.e.o},o.Nf=function(){return this.e.p},o.pf=function(e){return kt(this.e,e)},o.Of=function(e){this.e.n.a=e.a,this.e.n.b=e.b},o.Pf=function(e){this.e.o.a=e.a,this.e.o.b=e.b},o.Qf=function(e){this.e.p=e},w(Kc,"LGraphAdapters/AbstractLShapeAdapter",666),b(474,1,{853:1},Vv),o.Rf=function(){var e,t;if(!this.b)for(this.b=Lh(this.a.b.c.length),t=new M(this.a.b);t.a<t.c.c.length;)e=u(E(t),72),nn(this.b,new AE(e));return this.b},o.b=null,w(Kc,"LGraphAdapters/LEdgeAdapter",474),b(665,1,{},kD),o.Sf=function(){var e,t,i,r,c,s;if(!this.b){for(this.b=new Z,r=new M(this.a.b);r.a<r.c.c.length;)for(i=u(E(r),30),s=new M(i.a);s.a<s.c.c.length;)if(c=u(E(s),10),this.c.Mb(c)&&(nn(this.b,new XM(this,c,this.e)),this.d)){if(kt(c,(W(),I3)))for(t=u(v(c,I3),15).Kc();t.Ob();)e=u(t.Pb(),10),nn(this.b,new XM(this,e,!1));if(kt(c,M3))for(t=u(v(c,M3),15).Kc();t.Ob();)e=u(t.Pb(),10),nn(this.b,new XM(this,e,!1))}}return this.b},o.Lf=function(){throw T(new Fl(AXn))},o.of=function(e){return v(this.a,e)},o.Mf=function(){return this.a.f},o.Nf=function(){return this.a.p},o.pf=function(e){return kt(this.a,e)},o.Of=function(e){throw T(new Fl(AXn))},o.Pf=function(e){this.a.f.a=e.a,this.a.f.b=e.b},o.Qf=function(e){this.a.p=e},o.b=null,o.d=!1,o.e=!1,w(Kc,"LGraphAdapters/LGraphAdapter",665),b(585,666,{187:1},AE),w(Kc,"LGraphAdapters/LLabelAdapter",585),b(584,666,{695:1},XM),o.Tf=function(){return this.b},o.Uf=function(){return Ln(),Ln(),sr},o.Rf=function(){var e,t;if(!this.a)for(this.a=Lh(u(this.e,10).b.c.length),t=new M(u(this.e,10).b);t.a<t.c.c.length;)e=u(E(t),72),nn(this.a,new AE(e));return this.a},o.Vf=function(){var e;return e=u(this.e,10).d,new pV(e.d,e.c,e.a,e.b)},o.Wf=function(){return Ln(),Ln(),sr},o.Xf=function(){var e,t;if(!this.c)for(this.c=Lh(u(this.e,10).j.c.length),t=new M(u(this.e,10).j);t.a<t.c.c.length;)e=u(E(t),12),nn(this.c,new xMn(e,this.d));return this.c},o.Yf=function(){return on(un(v(u(this.e,10),(W(),Zsn))))},o.Zf=function(e){u(this.e,10).d.b=e.b,u(this.e,10).d.d=e.d,u(this.e,10).d.c=e.c,u(this.e,10).d.a=e.a},o.$f=function(e){u(this.e,10).f.b=e.b,u(this.e,10).f.d=e.d,u(this.e,10).f.c=e.c,u(this.e,10).f.a=e.a},o._f=function(){Dme(this,(u6(),$Zn))},o.a=null,o.b=null,o.c=null,o.d=!1,w(Kc,"LGraphAdapters/LNodeAdapter",584),b(1788,666,{852:1},xMn),o.Uf=function(){var e,t,i,r,c,s,f,h;if(this.d&&u(this.e,12).i.k==(Vn(),_c))return Ln(),Ln(),sr;if(!this.a){for(this.a=new Z,i=new M(u(this.e,12).e);i.a<i.c.c.length;)e=u(E(i),18),nn(this.a,new Vv(e));if(this.d&&(r=u(v(u(this.e,12),(W(),Xu)),10),r))for(t=new ie(ce(ji(r).a.Kc(),new En));pe(t);)e=u(fe(t),18),nn(this.a,new Vv(e));if(kt(u(this.e,12).i,(W(),h0))&&(f=u(v(u(this.e,12).i,h0),337),h=u(Df(f.e,this.e),113),h))for(s=new M(h.b);s.a<s.c.c.length;)c=u(E(s),340),nn(this.a,new Vv(c.a))}return this.a},o.Rf=function(){var e,t;if(!this.b)for(this.b=Lh(u(this.e,12).f.c.length),t=new M(u(this.e,12).f);t.a<t.c.c.length;)e=u(E(t),72),nn(this.b,new AE(e));return this.b},o.Wf=function(){var e,t,i,r,c,s,f,h;if(this.d&&u(this.e,12).i.k==(Vn(),_c))return Ln(),Ln(),sr;if(!this.c){for(this.c=new Z,i=new M(u(this.e,12).g);i.a<i.c.c.length;)e=u(E(i),18),nn(this.c,new Vv(e));if(this.d&&(r=u(v(u(this.e,12),(W(),Xu)),10),r))for(t=new ie(ce(Qt(r).a.Kc(),new En));pe(t);)e=u(fe(t),18),nn(this.c,new Vv(e));if(kt(u(this.e,12).i,(W(),h0))&&(f=u(v(u(this.e,12).i,h0),337),h=u(Df(f.e,this.e),113),h))for(s=new M(h.e);s.a<s.c.c.length;)c=u(E(s),340),nn(this.c,new Vv(c.a))}return this.c},o.ag=function(){return u(this.e,12).j},o.bg=function(){return on(un(v(u(this.e,12),(W(),yj))))},o.a=null,o.b=null,o.c=null,o.d=!1,w(Kc,"LGraphAdapters/LPortAdapter",1788),b(1789,1,De,bwn),o.Ne=function(e,t){return ISe(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Kc,"LGraphAdapters/PortComparator",1789),b(818,1,Le,HU),o.Mb=function(e){return u(e,10),u6(),!0},w(Kc,"LGraphAdapters/lambda$0$Type",818),b(404,305,{3:1,305:1,404:1,96:1,137:1}),w(Kc,"LShape",404),b(72,404,{3:1,305:1,72:1,404:1,96:1,137:1},Yjn,AX),o.Ib=function(){var e;return e=m0e(this),e==null?"label":"l_"+e},w(Kc,"LLabel",72),b(214,1,{3:1,4:1,214:1,423:1}),o.Fb=function(e){var t;return L(e,214)?(t=u(e,214),this.d==t.d&&this.a==t.a&&this.b==t.b&&this.c==t.c):!1},o.Hb=function(){var e,t;return e=pp(this.b)<<16,e|=pp(this.a)&ui,t=pp(this.c)<<16,t|=pp(this.d)&ui,e^t},o.cg=function(e){var t,i,r,c,s,f,h,l,a,d,g;for(s=0;s<e.length&&qRn((zn(s,e.length),e.charCodeAt(s)),NXn);)++s;for(t=e.length;t>0&&qRn((zn(t-1,e.length),e.charCodeAt(t-1)),DXn);)--t;if(s<t){d=ww((Ri(s,t,e.length),e.substr(s,t-s)),",|;");try{for(h=d,l=0,a=h.length;l<a;++l){if(f=h[l],c=ww(f,"="),c.length!=2)throw T(new Gn("Expecting a list of key-value pairs."));r=fw(c[0]),g=sw(fw(c[1])),Sn(r,"top")?this.d=g:Sn(r,"left")?this.b=g:Sn(r,"bottom")?this.a=g:Sn(r,"right")&&(this.c=g)}}catch(p){throw p=Ot(p),L(p,130)?(i=p,T(new Gn($Xn+i))):T(p)}}},o.Ib=function(){return"[top="+this.d+",left="+this.b+",bottom="+this.a+",right="+this.c+"]"},o.a=0,o.b=0,o.c=0,o.d=0,w(Fy,"Spacing",214),b(140,214,xXn,Qv,tCn,pV,qN);var Don=w(Fy,"ElkMargin",140);b(660,140,xXn,sL),w(Kc,"LMargin",660),b(10,404,{3:1,305:1,10:1,404:1,96:1,137:1},Cl),o.Ib=function(){return wBn(this)},o.i=!1;var Qh=w(Kc,"LNode",10);b(273,22,{3:1,34:1,22:1,273:1},b6);var Gf,Zt,Sc,Ti,zt,_c,A_=we(Kc,"LNode/NodeType",273,ke,M4e,jbe),xZn;b(775,1,Le,qU),o.Mb=function(e){return on(un(v(u(e,72),(cn(),jH))))},w(Kc,"LNode/lambda$0$Type",775),b(107,214,RXn,up,fb,_V);var $on=w(Fy,"ElkPadding",107);b(778,107,RXn,ZG),w(Kc,"LPadding",778),b(12,404,{3:1,305:1,12:1,404:1,96:1,137:1},Ic),o.Ib=function(){var e,t,i;return e=new x1,Be((e.a+="p_",e),lS(this)),this.i&&Be(Lc((e.a+="[",e),this.i),"]"),this.e.c.length==1&&this.g.c.length==0&&u(sn(this.e,0),18).c!=this&&(t=u(sn(this.e,0),18).c,Be((e.a+=" << ",e),lS(t)),Be(Lc((e.a+="[",e),t.i),"]")),this.e.c.length==0&&this.g.c.length==1&&u(sn(this.g,0),18).d!=this&&(i=u(sn(this.g,0),18).d,Be((e.a+=" >> ",e),lS(i)),Be(Lc((e.a+="[",e),i.i),"]")),e.a},o.c=!0,o.d=!1;var xon,Ron,Kon,Bon,Fon,_on,RZn=w(Kc,"LPort",12);b(408,1,qh,e4),o.Jc=function(e){qi(this,e)},o.Kc=function(){var e;return e=new M(this.a.e),new _9n(e)},w(Kc,"LPort/1",408),b(1309,1,Pi,_9n),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(E(this.a),18).c},o.Ob=function(){return tc(this.a)},o.Qb=function(){q6(this.a)},w(Kc,"LPort/1/1",1309),b(369,1,qh,ip),o.Jc=function(e){qi(this,e)},o.Kc=function(){var e;return e=new M(this.a.g),new NG(e)},w(Kc,"LPort/2",369),b(776,1,Pi,NG),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(E(this.a),18).d},o.Ob=function(){return tc(this.a)},o.Qb=function(){q6(this.a)},w(Kc,"LPort/2/1",776),b(1302,1,qh,OMn),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new Lf(this)},w(Kc,"LPort/CombineIter",1302),b(208,1,Pi,Lf),o.Nb=function(e){_i(this,e)},o.Qb=function(){sEn()},o.Ob=function(){return L6(this)},o.Pb=function(){return tc(this.a)?E(this.a):E(this.b)},w(Kc,"LPort/CombineIter/1",208),b(1303,1,ph,wwn),o.Lb=function(e){return IIn(e)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).g.c.length!=0},w(Kc,"LPort/lambda$0$Type",1303),b(1304,1,ph,gwn),o.Lb=function(e){return OIn(e)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).e.c.length!=0},w(Kc,"LPort/lambda$1$Type",1304),b(1305,1,ph,pwn),o.Lb=function(e){return Au(),u(e,12).j==(en(),Xn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).j==(en(),Xn)},w(Kc,"LPort/lambda$2$Type",1305),b(1306,1,ph,mwn),o.Lb=function(e){return Au(),u(e,12).j==(en(),Zn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).j==(en(),Zn)},w(Kc,"LPort/lambda$3$Type",1306),b(1307,1,ph,vwn),o.Lb=function(e){return Au(),u(e,12).j==(en(),ae)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).j==(en(),ae)},w(Kc,"LPort/lambda$4$Type",1307),b(1308,1,ph,kwn),o.Lb=function(e){return Au(),u(e,12).j==(en(),Wn)},o.Fb=function(e){return this===e},o.Mb=function(e){return Au(),u(e,12).j==(en(),Wn)},w(Kc,"LPort/lambda$5$Type",1308),b(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},Nc),o.Jc=function(e){qi(this,e)},o.Kc=function(){return new M(this.a)},o.Ib=function(){return"L_"+qr(this.b.b,this,0)+ca(this.a)},w(Kc,"Layer",30),b(1330,1,{},zyn),w(w1,KXn,1330),b(1334,1,{},ywn),o.Kb=function(e){return Gr(u(e,84))},w(w1,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334),b(1337,1,{},jwn),o.Kb=function(e){return Gr(u(e,84))},w(w1,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337),b(1331,1,re,H9n),o.Cd=function(e){hHn(this.a,u(e,123))},w(w1,Gtn,1331),b(1332,1,re,q9n),o.Cd=function(e){hHn(this.a,u(e,123))},w(w1,BXn,1332),b(1333,1,{},Ewn),o.Kb=function(e){return new Cn(null,new On(qW(u(e,74)),16))},w(w1,FXn,1333),b(1335,1,Le,U9n),o.Mb=function(e){return _le(this.a,u(e,27))},w(w1,_Xn,1335),b(1336,1,{},Mwn),o.Kb=function(e){return new Cn(null,new On(rge(u(e,74)),16))},w(w1,"ElkGraphImporter/lambda$5$Type",1336),b(1338,1,Le,G9n),o.Mb=function(e){return Hle(this.a,u(e,27))},w(w1,"ElkGraphImporter/lambda$7$Type",1338),b(1339,1,Le,Twn),o.Mb=function(e){return mge(u(e,74))},w(w1,"ElkGraphImporter/lambda$8$Type",1339),b(1297,1,{},K5n);var KZn;w(w1,"ElkGraphLayoutTransferrer",1297),b(1298,1,Le,z9n),o.Mb=function(e){return Oae(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$0$Type",1298),b(1299,1,re,X9n),o.Cd=function(e){c7(),nn(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$1$Type",1299),b(1300,1,Le,V9n),o.Mb=function(e){return wae(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$2$Type",1300),b(1301,1,re,W9n),o.Cd=function(e){c7(),nn(this.a,u(e,18))},w(w1,"ElkGraphLayoutTransferrer/lambda$3$Type",1301),b(819,1,{},vV),w(Qn,"BiLinkedHashMultiMap",819),b(1550,1,vt,Cwn),o.Kf=function(e,t){ive(u(e,36),t)},w(Qn,"CommentNodeMarginCalculator",1550),b(1551,1,{},Swn),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"CommentNodeMarginCalculator/lambda$0$Type",1551),b(1552,1,re,Pwn),o.Cd=function(e){iOe(u(e,10))},w(Qn,"CommentNodeMarginCalculator/lambda$1$Type",1552),b(1553,1,vt,Iwn),o.Kf=function(e,t){oSe(u(e,36),t)},w(Qn,"CommentPostprocessor",1553),b(1554,1,vt,Own),o.Kf=function(e,t){ILe(u(e,36),t)},w(Qn,"CommentPreprocessor",1554),b(1555,1,vt,Awn),o.Kf=function(e,t){MCe(u(e,36),t)},w(Qn,"ConstraintsPostprocessor",1555),b(1556,1,vt,Lwn),o.Kf=function(e,t){Ave(u(e,36),t)},w(Qn,"EdgeAndLayerConstraintEdgeReverser",1556),b(1557,1,vt,Nwn),o.Kf=function(e,t){y8e(u(e,36),t)},w(Qn,"EndLabelPostprocessor",1557),b(1558,1,{},Dwn),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"EndLabelPostprocessor/lambda$0$Type",1558),b(1559,1,Le,$wn),o.Mb=function(e){return x3e(u(e,10))},w(Qn,"EndLabelPostprocessor/lambda$1$Type",1559),b(1560,1,re,xwn),o.Cd=function(e){lke(u(e,10))},w(Qn,"EndLabelPostprocessor/lambda$2$Type",1560),b(1561,1,vt,Rwn),o.Kf=function(e,t){Zje(u(e,36),t)},w(Qn,"EndLabelPreprocessor",1561),b(1562,1,{},Kwn),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"EndLabelPreprocessor/lambda$0$Type",1562),b(1563,1,re,pPn),o.Cd=function(e){nle(this.a,this.b,this.c,u(e,10))},o.a=0,o.b=0,o.c=!1,w(Qn,"EndLabelPreprocessor/lambda$1$Type",1563),b(1564,1,Le,Bwn),o.Mb=function(e){return x(v(u(e,72),(cn(),Sh)))===x(($f(),Kv))},w(Qn,"EndLabelPreprocessor/lambda$2$Type",1564),b(1565,1,re,J9n),o.Cd=function(e){Re(this.a,u(e,72))},w(Qn,"EndLabelPreprocessor/lambda$3$Type",1565),b(1566,1,Le,Fwn),o.Mb=function(e){return x(v(u(e,72),(cn(),Sh)))===x(($f(),Jw))},w(Qn,"EndLabelPreprocessor/lambda$4$Type",1566),b(1567,1,re,Q9n),o.Cd=function(e){Re(this.a,u(e,72))},w(Qn,"EndLabelPreprocessor/lambda$5$Type",1567),b(1615,1,vt,O5n),o.Kf=function(e,t){k5e(u(e,36),t)};var BZn;w(Qn,"EndLabelSorter",1615),b(1616,1,De,_wn),o.Ne=function(e,t){return Z8e(u(e,466),u(t,466))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"EndLabelSorter/1",1616),b(466,1,{466:1},qOn),w(Qn,"EndLabelSorter/LabelGroup",466),b(1617,1,{},Hwn),o.Kb=function(e){return r7(),new Cn(null,new On(u(e,30).a,16))},w(Qn,"EndLabelSorter/lambda$0$Type",1617),b(1618,1,Le,qwn),o.Mb=function(e){return r7(),u(e,10).k==(Vn(),zt)},w(Qn,"EndLabelSorter/lambda$1$Type",1618),b(1619,1,re,Uwn),o.Cd=function(e){dje(u(e,10))},w(Qn,"EndLabelSorter/lambda$2$Type",1619),b(1620,1,Le,Gwn),o.Mb=function(e){return r7(),x(v(u(e,72),(cn(),Sh)))===x(($f(),Jw))},w(Qn,"EndLabelSorter/lambda$3$Type",1620),b(1621,1,Le,zwn),o.Mb=function(e){return r7(),x(v(u(e,72),(cn(),Sh)))===x(($f(),Kv))},w(Qn,"EndLabelSorter/lambda$4$Type",1621),b(1568,1,vt,Xwn),o.Kf=function(e,t){mOe(this,u(e,36))},o.b=0,o.c=0,w(Qn,"FinalSplineBendpointsCalculator",1568),b(1569,1,{},Vwn),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"FinalSplineBendpointsCalculator/lambda$0$Type",1569),b(1570,1,{},Wwn),o.Kb=function(e){return new Cn(null,new pb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(Qn,"FinalSplineBendpointsCalculator/lambda$1$Type",1570),b(1571,1,Le,Jwn),o.Mb=function(e){return!fr(u(e,18))},w(Qn,"FinalSplineBendpointsCalculator/lambda$2$Type",1571),b(1572,1,Le,Qwn),o.Mb=function(e){return kt(u(e,18),(W(),Ld))},w(Qn,"FinalSplineBendpointsCalculator/lambda$3$Type",1572),b(1573,1,re,Y9n),o.Cd=function(e){SPe(this.a,u(e,131))},w(Qn,"FinalSplineBendpointsCalculator/lambda$4$Type",1573),b(1574,1,re,Ywn),o.Cd=function(e){Yk(u(e,18).a)},w(Qn,"FinalSplineBendpointsCalculator/lambda$5$Type",1574),b(803,1,vt,DG),o.Kf=function(e,t){lAe(this,u(e,36),t)},w(Qn,"GraphTransformer",803),b(517,22,{3:1,34:1,22:1,517:1},Xz);var L_,dj,FZn=we(Qn,"GraphTransformer/Mode",517,ke,Fge,ybe),_Zn;b(1575,1,vt,Zwn),o.Kf=function(e,t){NTe(u(e,36),t)},w(Qn,"HierarchicalNodeResizingProcessor",1575),b(1576,1,vt,ngn),o.Kf=function(e,t){Yme(u(e,36),t)},w(Qn,"HierarchicalPortConstraintProcessor",1576),b(1577,1,De,egn),o.Ne=function(e,t){return k9e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"HierarchicalPortConstraintProcessor/NodeComparator",1577),b(1578,1,vt,tgn),o.Kf=function(e,t){yIe(u(e,36),t)},w(Qn,"HierarchicalPortDummySizeProcessor",1578),b(1579,1,vt,ign),o.Kf=function(e,t){ASe(this,u(e,36),t)},o.a=0,w(Qn,"HierarchicalPortOrthogonalEdgeRouter",1579),b(1580,1,De,rgn),o.Ne=function(e,t){return N1e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"HierarchicalPortOrthogonalEdgeRouter/1",1580),b(1581,1,De,cgn),o.Ne=function(e,t){return B4e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"HierarchicalPortOrthogonalEdgeRouter/2",1581),b(1582,1,vt,ugn),o.Kf=function(e,t){Vye(u(e,36),t)},w(Qn,"HierarchicalPortPositionProcessor",1582),b(1583,1,vt,B5n),o.Kf=function(e,t){hNe(this,u(e,36))},o.a=0,o.c=0;var MI,TI;w(Qn,"HighDegreeNodeLayeringProcessor",1583),b(580,1,{580:1},ogn),o.b=-1,o.d=-1,w(Qn,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",580),b(1584,1,{},sgn),o.Kb=function(e){return N7(),ji(u(e,10))},o.Fb=function(e){return this===e},w(Qn,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1584),b(1585,1,{},fgn),o.Kb=function(e){return N7(),Qt(u(e,10))},o.Fb=function(e){return this===e},w(Qn,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1585),b(1591,1,vt,hgn),o.Kf=function(e,t){dIe(this,u(e,36),t)},w(Qn,"HyperedgeDummyMerger",1591),b(804,1,{},DV),o.a=!1,o.b=!1,o.c=!1,w(Qn,"HyperedgeDummyMerger/MergeState",804),b(1592,1,{},lgn),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"HyperedgeDummyMerger/lambda$0$Type",1592),b(1593,1,{},agn),o.Kb=function(e){return new Cn(null,new On(u(e,10).j,16))},w(Qn,"HyperedgeDummyMerger/lambda$1$Type",1593),b(1594,1,re,dgn),o.Cd=function(e){u(e,12).p=-1},w(Qn,"HyperedgeDummyMerger/lambda$2$Type",1594),b(1595,1,vt,bgn),o.Kf=function(e,t){lIe(u(e,36),t)},w(Qn,"HypernodesProcessor",1595),b(1596,1,vt,wgn),o.Kf=function(e,t){kIe(u(e,36),t)},w(Qn,"InLayerConstraintProcessor",1596),b(1597,1,vt,ggn),o.Kf=function(e,t){dve(u(e,36),t)},w(Qn,"InnermostNodeMarginCalculator",1597),b(1598,1,vt,pgn),o.Kf=function(e,t){TLe(this,u(e,36))},o.a=li,o.b=li,o.c=Pt,o.d=Pt;var kDe=w(Qn,"InteractiveExternalPortPositioner",1598);b(1599,1,{},mgn),o.Kb=function(e){return u(e,18).d.i},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$0$Type",1599),b(1600,1,{},Z9n),o.Kb=function(e){return D1e(this.a,B(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$1$Type",1600),b(1601,1,{},vgn),o.Kb=function(e){return u(e,18).c.i},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$2$Type",1601),b(1602,1,{},n7n),o.Kb=function(e){return $1e(this.a,B(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$3$Type",1602),b(1603,1,{},e7n),o.Kb=function(e){return Lae(this.a,B(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$4$Type",1603),b(1604,1,{},t7n),o.Kb=function(e){return Nae(this.a,B(e))},o.Fb=function(e){return this===e},w(Qn,"InteractiveExternalPortPositioner/lambda$5$Type",1604),b(81,22,{3:1,34:1,22:1,81:1,196:1},ei),o.dg=function(){switch(this.g){case 15:return new xpn;case 22:return new Rpn;case 47:return new Fpn;case 28:case 35:return new Ogn;case 32:return new Cwn;case 42:return new Iwn;case 1:return new Own;case 41:return new Awn;case 56:return new DG((V4(),dj));case 0:return new DG((V4(),L_));case 2:return new Lwn;case 54:return new Nwn;case 33:return new Rwn;case 51:return new Xwn;case 55:return new Zwn;case 13:return new ngn;case 38:return new tgn;case 44:return new ign;case 40:return new ugn;case 9:return new B5n;case 49:return new tSn;case 37:return new hgn;case 43:return new bgn;case 27:return new wgn;case 30:return new ggn;case 3:return new pgn;case 18:return new ygn;case 29:return new jgn;case 5:return new F5n;case 50:return new kgn;case 34:return new _5n;case 36:return new Agn;case 52:return new O5n;case 11:return new Lgn;case 7:return new H5n;case 39:return new Ngn;case 45:return new Dgn;case 16:return new $gn;case 10:return new VMn;case 48:return new Bgn;case 21:return new Fgn;case 23:return new gL((Ab(),Z8));case 8:return new Hgn;case 12:return new Ugn;case 4:return new Ggn;case 19:return new V5n;case 17:return new e2n;case 53:return new t2n;case 6:return new b2n;case 25:return new Wyn;case 46:return new o2n;case 31:return new USn;case 14:return new j2n;case 26:return new qpn;case 20:return new S2n;case 24:return new gL((Ab(),IO));default:throw T(new Gn(cB+(this.f!=null?this.f:""+this.g)))}};var Hon,qon,Uon,Gon,zon,Xon,Von,Won,Jon,Qon,b2,CI,SI,Yon,Zon,nsn,esn,tsn,isn,rsn,N8,csn,usn,osn,ssn,fsn,N_,PI,II,hsn,OI,AI,LI,hv,Lw,Nw,lsn,NI,DI,asn,$I,xI,dsn,bsn,wsn,gsn,RI,D_,bj,KI,BI,FI,_I,psn,msn,vsn,ksn,yDe=we(Qn,uB,81,ke,iqn,kde),HZn;b(1605,1,vt,ygn),o.Kf=function(e,t){ELe(u(e,36),t)},w(Qn,"InvertedPortProcessor",1605),b(1606,1,vt,jgn),o.Kf=function(e,t){vPe(u(e,36),t)},w(Qn,"LabelAndNodeSizeProcessor",1606),b(1607,1,Le,Egn),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"LabelAndNodeSizeProcessor/lambda$0$Type",1607),b(1608,1,Le,Mgn),o.Mb=function(e){return u(e,10).k==(Vn(),Zt)},w(Qn,"LabelAndNodeSizeProcessor/lambda$1$Type",1608),b(1609,1,re,mPn),o.Cd=function(e){ele(this.b,this.a,this.c,u(e,10))},o.a=!1,o.c=!1,w(Qn,"LabelAndNodeSizeProcessor/lambda$2$Type",1609),b(1610,1,vt,F5n),o.Kf=function(e,t){WAe(u(e,36),t)};var qZn;w(Qn,"LabelDummyInserter",1610),b(1611,1,ph,Tgn),o.Lb=function(e){return x(v(u(e,72),(cn(),Sh)))===x(($f(),Rv))},o.Fb=function(e){return this===e},o.Mb=function(e){return x(v(u(e,72),(cn(),Sh)))===x(($f(),Rv))},w(Qn,"LabelDummyInserter/1",1611),b(1612,1,vt,kgn),o.Kf=function(e,t){RAe(u(e,36),t)},w(Qn,"LabelDummyRemover",1612),b(1613,1,Le,Cgn),o.Mb=function(e){return on(un(v(u(e,72),(cn(),jH))))},w(Qn,"LabelDummyRemover/lambda$0$Type",1613),b(1378,1,vt,_5n),o.Kf=function(e,t){IAe(this,u(e,36),t)},o.a=null;var $_;w(Qn,"LabelDummySwitcher",1378),b(293,1,{293:1},tUn),o.c=0,o.d=null,o.f=0,w(Qn,"LabelDummySwitcher/LabelDummyInfo",293),b(1379,1,{},Sgn),o.Kb=function(e){return Hp(),new Cn(null,new On(u(e,30).a,16))},w(Qn,"LabelDummySwitcher/lambda$0$Type",1379),b(1380,1,Le,Pgn),o.Mb=function(e){return Hp(),u(e,10).k==(Vn(),Sc)},w(Qn,"LabelDummySwitcher/lambda$1$Type",1380),b(1381,1,{},i7n),o.Kb=function(e){return gae(this.a,u(e,10))},w(Qn,"LabelDummySwitcher/lambda$2$Type",1381),b(1382,1,re,r7n),o.Cd=function(e){xwe(this.a,u(e,293))},w(Qn,"LabelDummySwitcher/lambda$3$Type",1382),b(1383,1,De,Ign),o.Ne=function(e,t){return uwe(u(e,293),u(t,293))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"LabelDummySwitcher/lambda$4$Type",1383),b(802,1,vt,Ogn),o.Kf=function(e,t){m4e(u(e,36),t)},w(Qn,"LabelManagementProcessor",802),b(1614,1,vt,Agn),o.Kf=function(e,t){WCe(u(e,36),t)},w(Qn,"LabelSideSelector",1614),b(1622,1,vt,Lgn),o.Kf=function(e,t){xIe(u(e,36),t)},w(Qn,"LayerConstraintPostprocessor",1622),b(1623,1,vt,H5n),o.Kf=function(e,t){AMe(u(e,36),t)};var ysn;w(Qn,"LayerConstraintPreprocessor",1623),b(371,22,{3:1,34:1,22:1,371:1},dM);var wj,HI,qI,x_,UZn=we(Qn,"LayerConstraintPreprocessor/HiddenNodeConnections",371,ke,Jpe,yde),GZn;b(1624,1,vt,Ngn),o.Kf=function(e,t){ZOe(u(e,36),t)},w(Qn,"LayerSizeAndGraphHeightCalculator",1624),b(1625,1,vt,Dgn),o.Kf=function(e,t){DTe(u(e,36),t)},w(Qn,"LongEdgeJoiner",1625),b(1626,1,vt,$gn),o.Kf=function(e,t){IOe(u(e,36),t)},w(Qn,"LongEdgeSplitter",1626),b(1627,1,vt,VMn),o.Kf=function(e,t){hLe(this,u(e,36),t)},o.e=0,o.f=0,o.j=0,o.k=0,o.n=0,o.o=0;var zZn,XZn;w(Qn,"NodePromotion",1627),b(1628,1,De,xgn),o.Ne=function(e,t){return E6e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"NodePromotion/1",1628),b(1629,1,De,Rgn),o.Ne=function(e,t){return M6e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"NodePromotion/2",1629),b(1630,1,{},Kgn),o.Kb=function(e){return u(e,42),VM(),_n(),!0},o.Fb=function(e){return this===e},w(Qn,"NodePromotion/lambda$0$Type",1630),b(1631,1,{},s7n),o.Kb=function(e){return v2e(this.a,u(e,42))},o.Fb=function(e){return this===e},o.a=0,w(Qn,"NodePromotion/lambda$1$Type",1631),b(1632,1,{},f7n),o.Kb=function(e){return m2e(this.a,u(e,42))},o.Fb=function(e){return this===e},o.a=0,w(Qn,"NodePromotion/lambda$2$Type",1632),b(1633,1,vt,Bgn),o.Kf=function(e,t){rNe(u(e,36),t)},w(Qn,"NorthSouthPortPostprocessor",1633),b(1634,1,vt,Fgn),o.Kf=function(e,t){KLe(u(e,36),t)},w(Qn,"NorthSouthPortPreprocessor",1634),b(1635,1,De,_gn),o.Ne=function(e,t){return Kve(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"NorthSouthPortPreprocessor/lambda$0$Type",1635),b(1636,1,vt,Hgn),o.Kf=function(e,t){nIe(u(e,36),t)},w(Qn,"PartitionMidprocessor",1636),b(1637,1,Le,qgn),o.Mb=function(e){return kt(u(e,10),(cn(),Mv))},w(Qn,"PartitionMidprocessor/lambda$0$Type",1637),b(1638,1,re,h7n),o.Cd=function(e){vge(this.a,u(e,10))},w(Qn,"PartitionMidprocessor/lambda$1$Type",1638),b(1639,1,vt,Ugn),o.Kf=function(e,t){eCe(u(e,36),t)},w(Qn,"PartitionPostprocessor",1639),b(1640,1,vt,Ggn),o.Kf=function(e,t){wMe(u(e,36),t)},w(Qn,"PartitionPreprocessor",1640),b(1641,1,Le,zgn),o.Mb=function(e){return kt(u(e,10),(cn(),Mv))},w(Qn,"PartitionPreprocessor/lambda$0$Type",1641),b(1642,1,{},Xgn),o.Kb=function(e){return new Cn(null,new pb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(Qn,"PartitionPreprocessor/lambda$1$Type",1642),b(1643,1,Le,Vgn),o.Mb=function(e){return c9e(u(e,18))},w(Qn,"PartitionPreprocessor/lambda$2$Type",1643),b(1644,1,re,Wgn),o.Cd=function(e){e6e(u(e,18))},w(Qn,"PartitionPreprocessor/lambda$3$Type",1644),b(1645,1,vt,V5n),o.Kf=function(e,t){DPe(u(e,36),t)};var jsn,VZn,WZn,JZn,Esn,Msn;w(Qn,"PortListSorter",1645),b(1648,1,De,Jgn),o.Ne=function(e,t){return XLn(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"PortListSorter/lambda$0$Type",1648),b(1650,1,De,Qgn),o.Ne=function(e,t){return CUn(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"PortListSorter/lambda$1$Type",1650),b(1646,1,{},Ygn),o.Kb=function(e){return cm(),u(e,12).e},w(Qn,"PortListSorter/lambda$2$Type",1646),b(1647,1,{},Zgn),o.Kb=function(e){return cm(),u(e,12).g},w(Qn,"PortListSorter/lambda$3$Type",1647),b(1649,1,De,n2n),o.Ne=function(e,t){return I7e(u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"PortListSorter/lambda$4$Type",1649),b(1651,1,vt,e2n),o.Kf=function(e,t){UMe(u(e,36),t)},w(Qn,"PortSideProcessor",1651),b(1652,1,vt,t2n),o.Kf=function(e,t){GSe(u(e,36),t)},w(Qn,"ReversedEdgeRestorer",1652),b(1657,1,vt,Wyn),o.Kf=function(e,t){l7e(this,u(e,36),t)},w(Qn,"SelfLoopPortRestorer",1657),b(1658,1,{},i2n),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"SelfLoopPortRestorer/lambda$0$Type",1658),b(1659,1,Le,r2n),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"SelfLoopPortRestorer/lambda$1$Type",1659),b(1660,1,Le,c2n),o.Mb=function(e){return kt(u(e,10),(W(),h0))},w(Qn,"SelfLoopPortRestorer/lambda$2$Type",1660),b(1661,1,{},u2n),o.Kb=function(e){return u(v(u(e,10),(W(),h0)),337)},w(Qn,"SelfLoopPortRestorer/lambda$3$Type",1661),b(1662,1,re,u7n),o.Cd=function(e){Cje(this.a,u(e,337))},w(Qn,"SelfLoopPortRestorer/lambda$4$Type",1662),b(805,1,re,UU),o.Cd=function(e){Bje(u(e,105))},w(Qn,"SelfLoopPortRestorer/lambda$5$Type",805),b(1663,1,vt,o2n),o.Kf=function(e,t){p9e(u(e,36),t)},w(Qn,"SelfLoopPostProcessor",1663),b(1664,1,{},s2n),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"SelfLoopPostProcessor/lambda$0$Type",1664),b(1665,1,Le,f2n),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"SelfLoopPostProcessor/lambda$1$Type",1665),b(1666,1,Le,h2n),o.Mb=function(e){return kt(u(e,10),(W(),h0))},w(Qn,"SelfLoopPostProcessor/lambda$2$Type",1666),b(1667,1,re,l2n),o.Cd=function(e){Pke(u(e,10))},w(Qn,"SelfLoopPostProcessor/lambda$3$Type",1667),b(1668,1,{},a2n),o.Kb=function(e){return new Cn(null,new On(u(e,105).f,1))},w(Qn,"SelfLoopPostProcessor/lambda$4$Type",1668),b(1669,1,re,c7n),o.Cd=function(e){n3e(this.a,u(e,340))},w(Qn,"SelfLoopPostProcessor/lambda$5$Type",1669),b(1670,1,Le,d2n),o.Mb=function(e){return!!u(e,105).i},w(Qn,"SelfLoopPostProcessor/lambda$6$Type",1670),b(1671,1,re,o7n),o.Cd=function(e){nhe(this.a,u(e,105))},w(Qn,"SelfLoopPostProcessor/lambda$7$Type",1671),b(1653,1,vt,b2n),o.Kf=function(e,t){vTe(u(e,36),t)},w(Qn,"SelfLoopPreProcessor",1653),b(1654,1,{},w2n),o.Kb=function(e){return new Cn(null,new On(u(e,105).f,1))},w(Qn,"SelfLoopPreProcessor/lambda$0$Type",1654),b(1655,1,{},g2n),o.Kb=function(e){return u(e,340).a},w(Qn,"SelfLoopPreProcessor/lambda$1$Type",1655),b(1656,1,re,p2n),o.Cd=function(e){i1e(u(e,18))},w(Qn,"SelfLoopPreProcessor/lambda$2$Type",1656),b(1672,1,vt,USn),o.Kf=function(e,t){oje(this,u(e,36),t)},w(Qn,"SelfLoopRouter",1672),b(1673,1,{},m2n),o.Kb=function(e){return new Cn(null,new On(u(e,30).a,16))},w(Qn,"SelfLoopRouter/lambda$0$Type",1673),b(1674,1,Le,v2n),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"SelfLoopRouter/lambda$1$Type",1674),b(1675,1,Le,k2n),o.Mb=function(e){return kt(u(e,10),(W(),h0))},w(Qn,"SelfLoopRouter/lambda$2$Type",1675),b(1676,1,{},y2n),o.Kb=function(e){return u(v(u(e,10),(W(),h0)),337)},w(Qn,"SelfLoopRouter/lambda$3$Type",1676),b(1677,1,re,PMn),o.Cd=function(e){dge(this.a,this.b,u(e,337))},w(Qn,"SelfLoopRouter/lambda$4$Type",1677),b(1678,1,vt,j2n),o.Kf=function(e,t){RCe(u(e,36),t)},w(Qn,"SemiInteractiveCrossMinProcessor",1678),b(1679,1,Le,E2n),o.Mb=function(e){return u(e,10).k==(Vn(),zt)},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1679),b(1680,1,Le,M2n),o.Mb=function(e){return oIn(u(e,10))._b((cn(),Hw))},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1680),b(1681,1,De,T2n),o.Ne=function(e,t){return nve(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1681),b(1682,1,{},C2n),o.Ve=function(e,t){return kge(u(e,10),u(t,10))},w(Qn,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1682),b(1684,1,vt,S2n),o.Kf=function(e,t){oOe(u(e,36),t)},w(Qn,"SortByInputModelProcessor",1684),b(1685,1,Le,P2n),o.Mb=function(e){return u(e,12).g.c.length!=0},w(Qn,"SortByInputModelProcessor/lambda$0$Type",1685),b(1686,1,re,l7n),o.Cd=function(e){Uje(this.a,u(e,12))},w(Qn,"SortByInputModelProcessor/lambda$1$Type",1686),b(1759,817,{},pxn),o.df=function(e){var t,i,r,c;switch(this.c=e,this.a.g){case 2:t=new Z,qt(ut(new Cn(null,new On(this.c.a.b,16)),new H2n),new RMn(this,t)),Zk(this,new O2n),nu(t,new A2n),t.c.length=0,qt(ut(new Cn(null,new On(this.c.a.b,16)),new L2n),new d7n(t)),Zk(this,new N2n),nu(t,new D2n),t.c.length=0,i=mCn(A$(U0(new Cn(null,new On(this.c.a.b,16)),new b7n(this))),new $2n),qt(new Cn(null,new On(this.c.a.a,16)),new AMn(i,t)),Zk(this,new R2n),nu(t,new K2n),t.c.length=0;break;case 3:r=new Z,Zk(this,new I2n),c=mCn(A$(U0(new Cn(null,new On(this.c.a.b,16)),new a7n(this))),new x2n),qt(ut(new Cn(null,new On(this.c.a.b,16)),new B2n),new NMn(c,r)),Zk(this,new F2n),nu(r,new _2n),r.c.length=0;break;default:throw T(new xyn)}},o.b=0,w(di,"EdgeAwareScanlineConstraintCalculation",1759),b(1760,1,ph,I2n),o.Lb=function(e){return L(u(e,60).g,154)},o.Fb=function(e){return this===e},o.Mb=function(e){return L(u(e,60).g,154)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1760),b(1761,1,{},a7n),o.Ye=function(e){return SEe(this.a,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1761),b(1769,1,JS,IMn),o.de=function(){I5(this.a,this.b,-1)},o.b=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1769),b(1771,1,ph,O2n),o.Lb=function(e){return L(u(e,60).g,154)},o.Fb=function(e){return this===e},o.Mb=function(e){return L(u(e,60).g,154)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1771),b(1772,1,re,A2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1772),b(1773,1,Le,L2n),o.Mb=function(e){return L(u(e,60).g,10)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1773),b(1775,1,re,d7n),o.Cd=function(e){X5e(this.a,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1775),b(1774,1,JS,DMn),o.de=function(){I5(this.b,this.a,-1)},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1774),b(1776,1,ph,N2n),o.Lb=function(e){return L(u(e,60).g,10)},o.Fb=function(e){return this===e},o.Mb=function(e){return L(u(e,60).g,10)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1776),b(1777,1,re,D2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1777),b(1778,1,{},b7n),o.Ye=function(e){return PEe(this.a,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1778),b(1779,1,{},$2n),o.We=function(){return 0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1779),b(1762,1,{},x2n),o.We=function(){return 0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1762),b(1781,1,re,AMn),o.Cd=function(e){Y0e(this.a,this.b,u(e,316))},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1781),b(1780,1,JS,LMn),o.de=function(){LHn(this.a,this.b,-1)},o.b=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1780),b(1782,1,ph,R2n),o.Lb=function(e){return u(e,60),!0},o.Fb=function(e){return this===e},o.Mb=function(e){return u(e,60),!0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1782),b(1783,1,re,K2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1783),b(1763,1,Le,B2n),o.Mb=function(e){return L(u(e,60).g,10)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1763),b(1765,1,re,NMn),o.Cd=function(e){Z0e(this.a,this.b,u(e,60))},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1765),b(1764,1,JS,$Mn),o.de=function(){I5(this.b,this.a,-1)},o.a=0,w(di,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1764),b(1766,1,ph,F2n),o.Lb=function(e){return u(e,60),!0},o.Fb=function(e){return this===e},o.Mb=function(e){return u(e,60),!0},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1766),b(1767,1,re,_2n),o.Cd=function(e){u(e,380).de()},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1767),b(1768,1,Le,H2n),o.Mb=function(e){return L(u(e,60).g,154)},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1768),b(1770,1,re,RMn),o.Cd=function(e){pme(this.a,this.b,u(e,60))},w(di,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1770),b(1586,1,vt,tSn),o.Kf=function(e,t){$Oe(this,u(e,36),t)};var QZn;w(di,"HorizontalGraphCompactor",1586),b(1587,1,{},w7n),o.ff=function(e,t){var i,r,c;return iQ(e,t)||(i=Ig(e),r=Ig(t),i&&i.k==(Vn(),Zt)||r&&r.k==(Vn(),Zt))?0:(c=u(v(this.a.a,(W(),E2)),312),B1e(c,i?i.k:(Vn(),Ti),r?r.k:(Vn(),Ti)))},o.gf=function(e,t){var i,r,c;return iQ(e,t)?1:(i=Ig(e),r=Ig(t),c=u(v(this.a.a,(W(),E2)),312),VX(c,i?i.k:(Vn(),Ti),r?r.k:(Vn(),Ti)))},w(di,"HorizontalGraphCompactor/1",1587),b(1588,1,{},q2n),o.ef=function(e,t){return o6(),e.a.i==0},w(di,"HorizontalGraphCompactor/lambda$0$Type",1588),b(1589,1,{},g7n),o.ef=function(e,t){return Ege(this.a,e,t)},w(di,"HorizontalGraphCompactor/lambda$1$Type",1589),b(1730,1,{},zDn);var YZn,ZZn;w(di,"LGraphToCGraphTransformer",1730),b(1738,1,Le,U2n),o.Mb=function(e){return e!=null},w(di,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1738),b(1731,1,{},G2n),o.Kb=function(e){return Rs(),Jr(v(u(u(e,60).g,10),(W(),st)))},w(di,"LGraphToCGraphTransformer/lambda$0$Type",1731),b(1732,1,{},z2n),o.Kb=function(e){return Rs(),iKn(u(u(e,60).g,154))},w(di,"LGraphToCGraphTransformer/lambda$1$Type",1732),b(1741,1,Le,X2n),o.Mb=function(e){return Rs(),L(u(e,60).g,10)},w(di,"LGraphToCGraphTransformer/lambda$10$Type",1741),b(1742,1,re,V2n),o.Cd=function(e){Pge(u(e,60))},w(di,"LGraphToCGraphTransformer/lambda$11$Type",1742),b(1743,1,Le,W2n),o.Mb=function(e){return Rs(),L(u(e,60).g,154)},w(di,"LGraphToCGraphTransformer/lambda$12$Type",1743),b(1747,1,re,J2n),o.Cd=function(e){c5e(u(e,60))},w(di,"LGraphToCGraphTransformer/lambda$13$Type",1747),b(1744,1,re,p7n),o.Cd=function(e){Lle(this.a,u(e,8))},o.a=0,w(di,"LGraphToCGraphTransformer/lambda$14$Type",1744),b(1745,1,re,m7n),o.Cd=function(e){Dle(this.a,u(e,116))},o.a=0,w(di,"LGraphToCGraphTransformer/lambda$15$Type",1745),b(1746,1,re,v7n),o.Cd=function(e){Nle(this.a,u(e,8))},o.a=0,w(di,"LGraphToCGraphTransformer/lambda$16$Type",1746),b(1748,1,{},Q2n),o.Kb=function(e){return Rs(),new Cn(null,new pb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(di,"LGraphToCGraphTransformer/lambda$17$Type",1748),b(1749,1,Le,Y2n),o.Mb=function(e){return Rs(),fr(u(e,18))},w(di,"LGraphToCGraphTransformer/lambda$18$Type",1749),b(1750,1,re,k7n),o.Cd=function(e){W4e(this.a,u(e,18))},w(di,"LGraphToCGraphTransformer/lambda$19$Type",1750),b(1734,1,re,y7n),o.Cd=function(e){jpe(this.a,u(e,154))},w(di,"LGraphToCGraphTransformer/lambda$2$Type",1734),b(1751,1,{},Z2n),o.Kb=function(e){return Rs(),new Cn(null,new On(u(e,30).a,16))},w(di,"LGraphToCGraphTransformer/lambda$20$Type",1751),b(1752,1,{},npn),o.Kb=function(e){return Rs(),new Cn(null,new pb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(di,"LGraphToCGraphTransformer/lambda$21$Type",1752),b(1753,1,{},epn),o.Kb=function(e){return Rs(),u(v(u(e,18),(W(),Ld)),15)},w(di,"LGraphToCGraphTransformer/lambda$22$Type",1753),b(1754,1,Le,tpn),o.Mb=function(e){return F1e(u(e,15))},w(di,"LGraphToCGraphTransformer/lambda$23$Type",1754),b(1755,1,re,j7n),o.Cd=function(e){gEe(this.a,u(e,15))},w(di,"LGraphToCGraphTransformer/lambda$24$Type",1755),b(1733,1,re,KMn),o.Cd=function(e){v3e(this.a,this.b,u(e,154))},w(di,"LGraphToCGraphTransformer/lambda$3$Type",1733),b(1735,1,{},ipn),o.Kb=function(e){return Rs(),new Cn(null,new On(u(e,30).a,16))},w(di,"LGraphToCGraphTransformer/lambda$4$Type",1735),b(1736,1,{},rpn),o.Kb=function(e){return Rs(),new Cn(null,new pb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(di,"LGraphToCGraphTransformer/lambda$5$Type",1736),b(1737,1,{},cpn),o.Kb=function(e){return Rs(),u(v(u(e,18),(W(),Ld)),15)},w(di,"LGraphToCGraphTransformer/lambda$6$Type",1737),b(1739,1,re,E7n),o.Cd=function(e){IEe(this.a,u(e,15))},w(di,"LGraphToCGraphTransformer/lambda$8$Type",1739),b(1740,1,re,BMn),o.Cd=function(e){r1e(this.a,this.b,u(e,154))},w(di,"LGraphToCGraphTransformer/lambda$9$Type",1740),b(1729,1,{},upn),o.cf=function(e){var t,i,r,c,s;for(this.a=e,this.d=new oL,this.c=F(ion,Kn,125,this.a.a.a.c.length,0,1),this.b=0,i=new M(this.a.a.a);i.a<i.c.c.length;)t=u(E(i),316),t.d=this.b,s=hb(i7(new za,t),this.d),this.c[this.b]=s,++this.b;for(zAe(this),zLe(this),WTe(this),IR(KN(this.d),new op),c=new M(this.a.a.b);c.a<c.c.c.length;)r=u(E(c),60),r.d.c=this.c[r.a.d].e+r.b.a},o.b=0,w(di,"NetworkSimplexCompaction",1729),b(154,1,{34:1,154:1},q5),o.Fd=function(e){return ume(this,u(e,154))},o.Ib=function(){return iKn(this)},w(di,"VerticalSegment",154),b(841,1,{},WZ),o.c=0,o.e=0,o.i=0,w(u8,"BetweenLayerEdgeTwoNodeCrossingsCounter",841),b(677,1,{677:1},Axn),o.Ib=function(){return"AdjacencyList [node="+this.d+", adjacencies= "+this.a+"]"},o.b=0,o.c=0,o.f=0,w(u8,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList",677),b(294,1,{34:1,294:1},hSn),o.Fd=function(e){return j0e(this,u(e,294))},o.Ib=function(){return"Adjacency [position="+this.c+", cardinality="+this.a+", currentCardinality="+this.b+"]"},o.a=0,o.b=0,o.c=0,w(u8,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList/Adjacency",294),b(2026,1,{},s_n),o.b=0,o.e=!1,w(u8,"CrossingMatrixFiller",2026);var nne=Dt(Vh,"IInitializable");b(1867,1,_y,_Mn),o.gg=function(e,t,i,r,c,s){},o.ig=function(e,t,i){},o.eg=function(){return this.c!=(Ab(),Z8)},o.fg=function(){this.e=F(ye,_e,28,this.d,15,1)},o.hg=function(e,t){t[e][0].c.p=e},o.jg=function(e,t,i,r){++this.d},o.kg=function(){return!0},o.lg=function(e,t,i,r){return WRn(this,e,t,i),A3e(this,t)},o.mg=function(e,t){var i;return i=Phe(t,e.length),WRn(this,e,i,t),lRn(this,i)},o.d=0,w(u8,"GreedySwitchHeuristic",1867),b(2029,1,{},rIn),o.b=0,o.d=0,w(u8,"NorthSouthEdgeNeighbouringNodeCrossingsCounter",2029),b(2016,1,{},Fqn),o.a=!1,w(u8,"SwitchDecider",2016),b(105,1,{105:1},g_n),o.a=null,o.c=null,o.i=null,w(w3,"SelfHyperLoop",105),b(2013,1,{},iBn),o.c=0,o.e=0,w(w3,"SelfHyperLoopLabels",2013),b(421,22,{3:1,34:1,22:1,421:1},bM);var j3,lv,av,R_,ene=we(w3,"SelfHyperLoopLabels/Alignment",421,ke,Wpe,jde),tne;b(340,1,{340:1},xNn),w(w3,"SelfLoopEdge",340),b(337,1,{337:1},rBn),o.a=!1,w(w3,"SelfLoopHolder",337),b(1790,1,Le,mpn),o.Mb=function(e){return fr(u(e,18))},w(w3,"SelfLoopHolder/lambda$0$Type",1790),b(113,1,{113:1},fBn),o.a=!1,o.c=!1,w(w3,"SelfLoopPort",113),b(1855,1,Le,vpn),o.Mb=function(e){return fr(u(e,18))},w(w3,"SelfLoopPort/lambda$0$Type",1855),b(375,22,{3:1,34:1,22:1,375:1},s7);var UI,gj,GI,zI,XI,ine=we(w3,"SelfLoopType",375,ke,F3e,Ede),rne;b(1798,1,{},Z5n);var cne,une,one,sne;w(Oo,"PortRestorer",1798),b(372,22,{3:1,34:1,22:1,372:1},FL);var c0,va,u0,K_=we(Oo,"PortRestorer/PortSideArea",372,ke,x2e,vde),fne;b(1799,1,{},spn),o.Kb=function(e){return ua(),u(e,15).Oc()},w(Oo,"PortRestorer/lambda$0$Type",1799),b(1800,1,re,fpn),o.Cd=function(e){ua(),u(e,113).c=!1},w(Oo,"PortRestorer/lambda$1$Type",1800),b(1809,1,Le,hpn),o.Mb=function(e){return ua(),u(e,12).j==(en(),Wn)},w(Oo,"PortRestorer/lambda$10$Type",1809),b(1810,1,{},lpn),o.Kb=function(e){return ua(),u(e,113).d},w(Oo,"PortRestorer/lambda$11$Type",1810),b(1811,1,re,M7n),o.Cd=function(e){Nhe(this.a,u(e,12))},w(Oo,"PortRestorer/lambda$12$Type",1811),b(1801,1,re,T7n),o.Cd=function(e){W1e(this.a,u(e,105))},w(Oo,"PortRestorer/lambda$2$Type",1801),b(1802,1,De,apn),o.Ne=function(e,t){return Ime(u(e,113),u(t,113))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Oo,"PortRestorer/lambda$3$Type",1802),b(1803,1,Le,dpn),o.Mb=function(e){return ua(),u(e,113).c},w(Oo,"PortRestorer/lambda$4$Type",1803),b(1804,1,Le,bpn),o.Mb=function(e){return kve(u(e,12))},w(Oo,"PortRestorer/lambda$5$Type",1804),b(1805,1,Le,opn),o.Mb=function(e){return ua(),u(e,12).j==(en(),Xn)},w(Oo,"PortRestorer/lambda$6$Type",1805),b(1806,1,Le,wpn),o.Mb=function(e){return ua(),u(e,12).j==(en(),Zn)},w(Oo,"PortRestorer/lambda$7$Type",1806),b(1807,1,Le,gpn),o.Mb=function(e){return Zpe(u(e,12))},w(Oo,"PortRestorer/lambda$8$Type",1807),b(1808,1,Le,ppn),o.Mb=function(e){return ua(),u(e,12).j==(en(),ae)},w(Oo,"PortRestorer/lambda$9$Type",1808),b(276,22,{3:1,34:1,22:1,276:1},Ap);var B_,F_,__,H_,q_,U_,G_,z_,Tsn=we(Oo,"PortSideAssigner/Target",276,ke,wme,Mde),hne;b(1791,1,{},ypn),o.Kb=function(e){return ut(new Cn(null,new On(u(e,105).j,16)),new GU)},w(Oo,"PortSideAssigner/lambda$1$Type",1791),b(1792,1,{},jpn),o.Kb=function(e){return u(e,113).d},w(Oo,"PortSideAssigner/lambda$2$Type",1792),b(1793,1,re,Epn),o.Cd=function(e){gi(u(e,12),(en(),Xn))},w(Oo,"PortSideAssigner/lambda$3$Type",1793),b(1794,1,{},Mpn),o.Kb=function(e){return u(e,113).d},w(Oo,"PortSideAssigner/lambda$4$Type",1794),b(1795,1,re,C7n),o.Cd=function(e){Ffe(this.a,u(e,12))},w(Oo,"PortSideAssigner/lambda$5$Type",1795),b(1796,1,De,kpn),o.Ne=function(e,t){return Uwe(u(e,105),u(t,105))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Oo,"PortSideAssigner/lambda$6$Type",1796),b(1797,1,De,Tpn),o.Ne=function(e,t){return d0e(u(e,113),u(t,113))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Oo,"PortSideAssigner/lambda$7$Type",1797),b(820,1,Le,GU),o.Mb=function(e){return u(e,113).c},w(Oo,"PortSideAssigner/lambda$8$Type",820),b(2108,1,{}),w(aa,"AbstractSelfLoopRouter",2108),b(1816,1,De,Cpn),o.Ne=function(e,t){return Gae(u(e,105),u(t,105))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(aa,bXn,1816),b(1817,1,De,Spn),o.Ne=function(e,t){return Uae(u(e,105),u(t,105))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(aa,wXn,1817),b(1856,2108,{},Ppn),o.ng=function(e,t,i){return i},w(aa,"OrthogonalSelfLoopRouter",1856),b(1858,1,re,FMn),o.Cd=function(e){cZ(this.b,this.a,u(e,8))},w(aa,"OrthogonalSelfLoopRouter/lambda$0$Type",1858),b(1857,1856,{},Ipn),o.ng=function(e,t,i){var r,c;return r=e.c.d,g4(i,0,tt(Fi(r.n),r.a)),c=e.d.d,Re(i,tt(Fi(c.n),c.a)),VPe(i)},w(aa,"PolylineSelfLoopRouter",1857),b(1812,1,{},n8n),o.a=null;var w2;w(aa,"RoutingDirector",1812),b(1813,1,De,Opn),o.Ne=function(e,t){return h0e(u(e,113),u(t,113))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(aa,"RoutingDirector/lambda$0$Type",1813),b(1814,1,{},Apn),o.Kb=function(e){return ZE(),u(e,105).j},w(aa,"RoutingDirector/lambda$1$Type",1814),b(1815,1,re,Lpn),o.Cd=function(e){ZE(),u(e,15).jd(w2)},w(aa,"RoutingDirector/lambda$2$Type",1815),b(1818,1,{},Npn),w(aa,"RoutingSlotAssigner",1818),b(1819,1,Le,S7n),o.Mb=function(e){return wle(this.a,u(e,105))},w(aa,"RoutingSlotAssigner/lambda$0$Type",1819),b(1820,1,De,P7n),o.Ne=function(e,t){return B0e(this.a,u(e,105),u(t,105))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(aa,"RoutingSlotAssigner/lambda$1$Type",1820),b(1859,1856,{},Dpn),o.ng=function(e,t,i){var r,c,s,f;return r=$(B(nS(e.b.g.b,(cn(),C2)))),f=new aSn(S(C(Ei,1),J,8,0,[(s=e.c.d,tt(new rr(s.n),s.a))])),ETe(e,t,i,f,r),Re(f,(c=e.d.d,tt(new rr(c.n),c.a))),IBn(new _en(f))},w(aa,"SplineSelfLoopRouter",1859),b(586,1,De,wxn,NPn),o.Ne=function(e,t){return dzn(this,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(iin,"ModelOrderNodeComparator",586),b(1821,1,Le,$pn),o.Mb=function(e){return u(e,12).e.c.length!=0},w(iin,"ModelOrderNodeComparator/lambda$0$Type",1821),b(821,1,De,URn,CLn),o.Ne=function(e,t){return PIn(this,e,t)},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},o.b=!1,w(iin,"ModelOrderPortComparator",821),b(815,1,{},zU),o.og=function(e,t){var i,r,c,s;for(c=r_n(t),i=new Z,s=t.f/c,r=1;r<c;++r)nn(i,Y(Se(vc(y.Math.round(r*s)))));return i},o.pg=function(){return!1},w(yh,"ARDCutIndexHeuristic",815),b(1544,1,vt,xpn),o.Kf=function(e,t){aPe(u(e,36),t)},w(yh,"BreakingPointInserter",1544),b(313,1,{313:1},jJ),o.Ib=function(){var e;return e=new x1,e.a+="BPInfo[",e.a+=`
start=`,Lc(e,this.i),e.a+=`
end=`,Lc(e,this.a),e.a+=`
nodeStartEdge=`,Lc(e,this.e),e.a+=`
startEndEdge=`,Lc(e,this.j),e.a+=`
originalEdge=`,Lc(e,this.f),e.a+=`
startInLayerDummy=`,Lc(e,this.k),e.a+=`
startInLayerEdge=`,Lc(e,this.n),e.a+=`
endInLayerDummy=`,Lc(e,this.b),e.a+=`
endInLayerEdge=`,Lc(e,this.c),e.a},w(yh,"BreakingPointInserter/BPInfo",313),b(661,1,{661:1},K7n),o.a=!1,o.b=0,o.c=0,w(yh,"BreakingPointInserter/Cut",661),b(1545,1,vt,Rpn),o.Kf=function(e,t){PTe(u(e,36),t)},w(yh,"BreakingPointProcessor",1545),b(1546,1,Le,Kpn),o.Mb=function(e){return r$n(u(e,10))},w(yh,"BreakingPointProcessor/0methodref$isEnd$Type",1546),b(1547,1,Le,Bpn),o.Mb=function(e){return c$n(u(e,10))},w(yh,"BreakingPointProcessor/1methodref$isStart$Type",1547),b(1548,1,vt,Fpn),o.Kf=function(e,t){JTe(this,u(e,36),t)},w(yh,"BreakingPointRemover",1548),b(1549,1,re,_pn),o.Cd=function(e){u(e,131).k=!0},w(yh,"BreakingPointRemover/lambda$0$Type",1549),b(811,1,{},Gnn),o.b=0,o.e=0,o.f=0,o.j=0,w(yh,"GraphStats",811),b(812,1,{},XU),o.Ve=function(e,t){return y.Math.max($(B(e)),$(B(t)))},w(yh,"GraphStats/0methodref$max$Type",812),b(813,1,{},VU),o.Ve=function(e,t){return y.Math.max($(B(e)),$(B(t)))},w(yh,"GraphStats/2methodref$max$Type",813),b(1726,1,{},Hpn),o.Ve=function(e,t){return Qbe(B(e),B(t))},w(yh,"GraphStats/lambda$1$Type",1726),b(1727,1,{},I7n),o.Kb=function(e){return hBn(this.a,u(e,30))},w(yh,"GraphStats/lambda$2$Type",1727),b(1728,1,{},O7n),o.Kb=function(e){return eqn(this.a,u(e,30))},w(yh,"GraphStats/lambda$6$Type",1728),b(814,1,{},WU),o.og=function(e,t){var i;return i=u(v(e,(cn(),yhn)),15),i||(Ln(),Ln(),sr)},o.pg=function(){return!1},w(yh,"ICutIndexCalculator/ManualCutIndexCalculator",814),b(816,1,{},JU),o.og=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_;for(_=(t.n==null&&KBn(t),t.n),l=(t.d==null&&KBn(t),t.d),D=F(Ii,Cr,28,_.length,15,1),D[0]=_[0],O=_[0],a=1;a<_.length;a++)D[a]=D[a-1]+_[a],O+=_[a];for(c=r_n(t)-1,f=u(v(e,(cn(),jhn)),17).a,r=li,i=new Z,p=y.Math.max(0,c-f);p<=y.Math.min(t.f-1,c+f);p++){if(j=O/(p+1),P=0,d=1,s=new Z,A=li,g=0,h=0,k=l[0],p==0)A=O,h=(t.g==null&&(t.g=Exn(t,new VU)),$(t.g));else{for(;d<t.f;)D[d-1]-P>=j&&(nn(s,Y(d)),A=y.Math.max(A,D[d-1]-g),h+=k,P+=D[d-1]-P,g=D[d-1],k=l[d]),k=y.Math.max(k,l[d]),++d;h+=k}m=y.Math.min(1/A,1/t.b/h),m>r&&(r=m,i=s)}return i},o.pg=function(){return!1},w(yh,"MSDCutIndexHeuristic",816),b(1683,1,vt,qpn),o.Kf=function(e,t){KIe(u(e,36),t)},w(yh,"SingleEdgeGraphWrapper",1683),b(232,22,{3:1,34:1,22:1,232:1},w6);var g2,dv,bv,Dw,D8,p2,wv=we(Cc,"CenterEdgeLabelPlacementStrategy",232,ke,E4e,Tde),lne;b(431,22,{3:1,34:1,22:1,431:1},Wz);var Csn,X_,Ssn=we(Cc,"ConstraintCalculationStrategy",431,ke,qge,Cde),ane;b(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},_L),o.dg=function(){return F_n(this)},o.qg=function(){return F_n(this)};var pj,$8,Psn,Isn=we(Cc,"CrossingMinimizationStrategy",322,ke,R2e,Sde),dne;b(351,22,{3:1,34:1,22:1,351:1},HL);var Osn,V_,VI,Asn=we(Cc,"CuttingStrategy",351,ke,K2e,Pde),bne;b(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},f7),o.dg=function(){return OHn(this)},o.qg=function(){return OHn(this)};var Lsn,W_,gv,J_,pv,Nsn=we(Cc,"CycleBreakingStrategy",348,ke,_3e,Ide),wne;b(428,22,{3:1,34:1,22:1,428:1},Jz);var WI,Dsn,$sn=we(Cc,"DirectionCongruency",428,ke,Hge,Ode),gne;b(460,22,{3:1,34:1,22:1,460:1},qL);var mv,Q_,m2,pne=we(Cc,"EdgeConstraint",460,ke,B2e,Rde),mne;b(283,22,{3:1,34:1,22:1,283:1},g6);var Y_,Z_,nH,eH,JI,tH,xsn=we(Cc,"EdgeLabelSideSelection",283,ke,k4e,Kde),vne;b(488,22,{3:1,34:1,22:1,488:1},Qz);var QI,Rsn,Ksn=we(Cc,"EdgeStraighteningStrategy",488,ke,Jge,Bde),kne;b(281,22,{3:1,34:1,22:1,281:1},p6);var iH,Bsn,Fsn,YI,_sn,Hsn,qsn=we(Cc,"FixedAlignment",281,ke,y4e,xde),yne;b(282,22,{3:1,34:1,22:1,282:1},m6);var Usn,Gsn,zsn,Xsn,x8,Vsn,Wsn=we(Cc,"GraphCompactionStrategy",282,ke,j4e,Ade),jne;b(259,22,{3:1,34:1,22:1,259:1},L0);var vv,ZI,kv,cs,R8,nO,yv,v2,eO,K8,rH=we(Cc,"GraphProperties",259,ke,uve,Lde),Ene;b(299,22,{3:1,34:1,22:1,299:1},UL);var mj,cH,uH,oH=we(Cc,"GreedySwitchType",299,ke,F2e,Nde),Mne;b(311,22,{3:1,34:1,22:1,311:1},GL);var E3,vj,k2,Tne=we(Cc,"InLayerConstraint",311,ke,_2e,Dde),Cne;b(429,22,{3:1,34:1,22:1,429:1},Yz);var sH,Jsn,Qsn=we(Cc,"InteractiveReferencePoint",429,ke,_ge,$de),Sne,Ysn,M3,o0,tO,Zsn,nfn,iO,efn,kj,rO,B8,T3,Dl,fH,cO,gc,tfn,ka,Hc,hH,lH,yj,Ad,s0,C3,ifn,S3,jj,$w,yf,Es,aH,y2,dt,st,rfn,cfn,ufn,ofn,sfn,dH,uO,Xu,f0,bH,P3,F8,zf,j2,h0,E2,M2,jv,Ld,ffn,wH,gH,I3;b(171,22,{3:1,34:1,22:1,171:1},h7);var _8,ya,H8,xw,Ej,hfn=we(Cc,"LayerConstraint",171,ke,q3e,Fde),Pne;b(859,1,ms,e8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,cin),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),kfn),(l1(),It)),$sn),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,uin),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(_n(),!1)),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,lP),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),Cfn),It),Qsn),jn(xn)))),ri(e,lP,fB,jee),ri(e,lP,o8,yee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,oin),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,sin),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),yi),Gt),jn(xn)))),vn(e,new ln(Lhe(pn(gn(mn(Pn(an(wn(dn(bn(new hn,fin),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),yi),Gt),jn(Fd)),S(C(fn,1),J,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,hin),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),Dfn),It),qhn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,lin),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Y(7)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ain),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,din),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,fB),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),vfn),It),Nsn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Hy),NB),"Node Layering Strategy"),"Strategy for node layering."),Ifn),It),Ahn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,bin),NB),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),Sfn),It),hfn),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,win),NB),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,gin),NB),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Y(-1)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,hB),YXn),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Y(4)),Zr),Gi),jn(xn)))),ri(e,hB,Hy,Iee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,lB),YXn),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Y(2)),Zr),Gi),jn(xn)))),ri(e,lB,Hy,Aee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,aB),ZXn),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),Pfn),It),Fhn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,dB),ZXn),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Y(0)),Zr),Gi),jn(xn)))),ri(e,dB,aB,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,bB),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Y(et)),Zr),Gi),jn(xn)))),ri(e,bB,Hy,Mee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,o8),Wm),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),mfn),It),Isn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,pin),Wm),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,wB),Wm),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Qi),si),jn(xn)))),ri(e,wB,MP,Vne),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,gB),Wm),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),yi),Gt),jn(xn)))),ri(e,gB,o8,nee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,min),Wm),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),$2),fn),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,vin),Wm),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),$2),fn),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,kin),Wm),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,yin),Wm),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Y(-1)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,jin),nVn),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Y(40)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,pB),nVn),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),pfn),It),oH),jn(xn)))),ri(e,pB,o8,zne),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,aP),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),gfn),It),oH),jn(xn)))),ri(e,aP,o8,qne),ri(e,aP,MP,Une),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,c2),eVn),"Node Placement Strategy"),"Strategy for node placement."),Nfn),It),$hn),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,dP),eVn),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),yi),Gt),jn(xn)))),ri(e,dP,c2,Hee),ri(e,dP,c2,qee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,mB),tVn),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),Ofn),It),Ksn),jn(xn)))),ri(e,mB,c2,Kee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,vB),tVn),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),Afn),It),qsn),jn(xn)))),ri(e,vB,c2,Fee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,kB),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Qi),si),jn(xn)))),ri(e,kB,c2,Gee),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,yB),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),It),KH),jn(pi)))),ri(e,yB,c2,Wee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,jB),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),Lfn),It),KH),jn(xn)))),ri(e,jB,c2,Vee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ein),iVn),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),Efn),It),zhn),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Min),iVn),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),Mfn),It),Xhn),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,bP),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),Tfn),It),Whn),jn(xn)))),ri(e,bP,qy,lee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,wP),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Qi),si),jn(xn)))),ri(e,wP,qy,dee),ri(e,wP,bP,bee),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,EB),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),Qi),si),jn(xn)))),ri(e,EB,qy,oee),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Tin),qf),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Cin),qf),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Sin),qf),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Pin),qf),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Iin),Bin),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Y(0)),Zr),Gi),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Oin),Bin),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Y(0)),Zr),Gi),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ain),Bin),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Y(0)),Zr),Gi),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,MB),Fin),vXn),"Tries to further compact components (disconnected sub-graphs)."),!1),yi),Gt),jn(xn)))),ri(e,MB,t8,!0),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Lin),rVn),"Post Compaction Strategy"),cVn),afn),It),Wsn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Nin),rVn),"Post Compaction Constraint Calculation"),cVn),lfn),It),Ssn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,gP),_in),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,TB),_in),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Y(16)),Zr),Gi),jn(xn)))),ri(e,TB,gP,!0),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,CB),_in),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Y(5)),Zr),Gi),jn(xn)))),ri(e,CB,gP,!0),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Al),Hin),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),Rfn),It),Zhn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,pP),Hin),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),Qi),si),jn(xn)))),ri(e,pP,Al,ste),ri(e,pP,Al,fte),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,mP),Hin),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),Qi),si),jn(xn)))),ri(e,mP,Al,lte),ri(e,mP,Al,ate),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,s8),uVn),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),xfn),It),Asn),jn(xn)))),ri(e,s8,Al,mte),ri(e,s8,Al,vte),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,SB),uVn),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),Vf),rs),jn(xn)))),ri(e,SB,s8,bte),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,PB),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),$fn),Zr),Gi),jn(xn)))),ri(e,PB,s8,gte),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,vP),oVn),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),Kfn),It),Yhn),jn(xn)))),ri(e,vP,Al,Ate),ri(e,vP,Al,Lte),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,kP),oVn),"Valid Indices for Wrapping"),null),Vf),rs),jn(xn)))),ri(e,kP,Al,Pte),ri(e,kP,Al,Ite),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,yP),qin),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),yi),Gt),jn(xn)))),ri(e,yP,Al,Ete),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,jP),qin),"Distance Penalty When Improving Cuts"),null),2),Qi),si),jn(xn)))),ri(e,jP,Al,yte),ri(e,jP,yP,!0),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,IB),qin),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),yi),Gt),jn(xn)))),ri(e,IB,Al,Tte),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Din),DB),"Edge Label Side Selection"),"Method to decide on edge label sides."),jfn),It),xsn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,$in),DB),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),yfn),It),wv),yt(xn,S(C(Zh,1),G,170,0,[E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,EP),f8),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),wfn),It),Hhn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,xin),f8),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Rin),f8),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,OB),f8),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),dfn),It),Non),jn(xn)))),ri(e,OB,t8,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Kin),f8),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),bfn),It),Nhn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,AB),f8),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),Qi),si),jn(xn)))),ri(e,AB,EP,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,LB),f8),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),Qi),si),jn(xn)))),ri(e,LB,EP,null),Mzn((new t8n,e))};var Ine,One,Ane,lfn,Lne,afn,Nne,dfn,Dne,$ne,xne,bfn,Rne,Kne,Bne,wfn,Fne,_ne,Hne,gfn,qne,Une,Gne,pfn,zne,Xne,Vne,Wne,Jne,Qne,Yne,Zne,nee,eee,mfn,tee,vfn,iee,kfn,ree,yfn,cee,jfn,uee,oee,see,Efn,fee,Mfn,hee,Tfn,lee,aee,dee,bee,wee,gee,pee,mee,vee,kee,Cfn,yee,jee,Eee,Mee,Tee,Cee,Sfn,See,Pee,Iee,Oee,Aee,Lee,Nee,Pfn,Dee,Ifn,$ee,xee,Ree,Ofn,Kee,Bee,Afn,Fee,_ee,Hee,qee,Uee,Gee,zee,Xee,Lfn,Vee,Wee,Jee,Nfn,Qee,Dfn,Yee,Zee,nte,ete,tte,ite,rte,cte,ute,ote,ste,fte,hte,lte,ate,dte,bte,wte,$fn,gte,pte,xfn,mte,vte,kte,yte,jte,Ete,Mte,Tte,Cte,Rfn,Ste,Pte,Ite,Ote,Kfn,Ate,Lte;w(Cc,"LayeredMetaDataProvider",859),b(998,1,ms,t8n),o.hf=function(e){Mzn(e)};var Ch,pH,oO,q8,sO,Bfn,fO,Rw,hO,Ffn,_fn,lO,mH,Yh,vH,l0,Hfn,Mj,kH,qfn,Nte,Dte,$te,aO,yH,U8,Nd,xte,Lo,Ufn,Gfn,dO,jH,Sh,bO,$l,zfn,Xfn,Vfn,EH,MH,Wfn,m1,TH,Jfn,Kw,Qfn,Yfn,Zfn,wO,Bw,Dd,nhn,ehn,Rr,thn,Rte,ou,gO,ihn,rhn,chn,ja,$d,pO,uhn,ohn,mO,a0,shn,CH,G8,fhn,d0,z8,vO,xd,SH,Ev,kO,Rd,hhn,lhn,ahn,Mv,dhn,Kte,Bte,Fte,_te,b0,Fw,Ft,v1,Hte,_w,bhn,Tv,whn,Hw,qte,Cv,ghn,O3,Ute,Gte,Tj,PH,phn,Cj,Ws,T2,C2,w0,Kd,yO,qw,IH,Sv,Pv,g0,S2,OH,Sj,X8,V8,zte,Xte,Vte,mhn,Wte,AH,vhn,khn,yhn,jhn,LH,Ehn,Mhn,Thn,Chn,NH,jO;w(Cc,"LayeredOptions",998),b(999,1,{},Upn),o.sf=function(){var e;return e=new Uyn,e},o.tf=function(e){},w(Cc,"LayeredOptions/LayeredFactory",999),b(1391,1,{}),o.a=0;var Jte;w(dc,"ElkSpacings/AbstractSpacingsBuilder",1391),b(792,1391,{},zY);var EO,Qte;w(Cc,"LayeredSpacings/LayeredSpacingsBuilder",792),b(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},dg),o.dg=function(){return Bqn(this)},o.qg=function(){return Bqn(this)};var Iv,DH,Ov,Shn,Phn,Ihn,MO,$H,Ohn,Ahn=we(Cc,"LayeringStrategy",265,ke,xme,_de),Yte;b(390,22,{3:1,34:1,22:1,390:1},zL);var xH,Lhn,TO,Nhn=we(Cc,"LongEdgeOrderingStrategy",390,ke,H2e,Hde),Zte;b(203,22,{3:1,34:1,22:1,203:1},wM);var P2,I2,CO,RH,KH=we(Cc,"NodeFlexibility",203,ke,Qpe,qde),nie;b(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},l7),o.dg=function(){return IHn(this)},o.qg=function(){return IHn(this)};var W8,BH,FH,J8,Dhn,$hn=we(Cc,"NodePlacementStrategy",323,ke,H3e,Ude),eie;b(243,22,{3:1,34:1,22:1,243:1},N0);var xhn,p0,Uw,Pj,Rhn,Khn,Ij,Bhn,SO,PO,Fhn=we(Cc,"NodePromotionStrategy",243,ke,ove,Gde),tie;b(284,22,{3:1,34:1,22:1,284:1},gM);var _hn,k1,_H,HH,Hhn=we(Cc,"OrderingStrategy",284,ke,Ype,zde),iie;b(430,22,{3:1,34:1,22:1,430:1},Zz);var qH,UH,qhn=we(Cc,"PortSortingStrategy",430,ke,Uge,Xde),rie;b(463,22,{3:1,34:1,22:1,463:1},XL);var Vu,Jc,Q8,cie=we(Cc,"PortType",463,ke,q2e,Vde),uie;b(387,22,{3:1,34:1,22:1,387:1},VL);var Uhn,GH,Ghn,zhn=we(Cc,"SelfLoopDistributionStrategy",387,ke,U2e,Wde),oie;b(349,22,{3:1,34:1,22:1,349:1},WL);var zH,Oj,XH,Xhn=we(Cc,"SelfLoopOrderingStrategy",349,ke,G2e,Jde),sie;b(312,1,{312:1},yGn),w(Cc,"Spacings",312),b(350,22,{3:1,34:1,22:1,350:1},JL);var VH,Vhn,Y8,Whn=we(Cc,"SplineRoutingMode",350,ke,z2e,Qde),fie;b(352,22,{3:1,34:1,22:1,352:1},QL);var WH,Jhn,Qhn,Yhn=we(Cc,"ValidifyStrategy",352,ke,X2e,Yde),hie;b(388,22,{3:1,34:1,22:1,388:1},YL);var Gw,JH,Av,Zhn=we(Cc,"WrappingStrategy",388,ke,V2e,Zde),lie;b(1398,1,vr,X5n),o.rg=function(e){return u(e,36),aie},o.Kf=function(e,t){LOe(this,u(e,36),t)};var aie;w(PP,"DepthFirstCycleBreaker",1398),b(793,1,vr,aW),o.rg=function(e){return u(e,36),die},o.Kf=function(e,t){$Ne(this,u(e,36),t)},o.sg=function(e){return u(sn(e,cS(this.d,e.c.length)),10)};var die;w(PP,"GreedyCycleBreaker",793),b(1401,793,vr,FTn),o.sg=function(e){var t,i,r,c;for(c=null,t=et,r=new M(e);r.a<r.c.c.length;)i=u(E(r),10),kt(i,(W(),dt))&&u(v(i,dt),17).a<t&&(t=u(v(i,dt),17).a,c=i);return c||u(sn(e,cS(this.d,e.c.length)),10)},w(PP,"GreedyModelOrderCycleBreaker",1401),b(1399,1,vr,z5n),o.rg=function(e){return u(e,36),bie},o.Kf=function(e,t){_Oe(this,u(e,36),t)};var bie;w(PP,"InteractiveCycleBreaker",1399),b(1400,1,vr,U5n),o.rg=function(e){return u(e,36),wie},o.Kf=function(e,t){QOe(this,u(e,36),t)},o.a=0,o.b=0;var wie;w(PP,"ModelOrderCycleBreaker",1400),b(1413,1,vr,q5n),o.rg=function(e){return u(e,36),gie},o.Kf=function(e,t){FLe(this,u(e,36),t)};var gie;w(Ll,"BreadthFirstModelOrderLayerer",1413),b(1414,1,De,Gpn),o.Ne=function(e,t){return lEe(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"BreadthFirstModelOrderLayerer/lambda$0$Type",1414),b(1404,1,vr,dMn),o.rg=function(e){return u(e,36),pie},o.Kf=function(e,t){FNe(this,u(e,36),t)};var pie;w(Ll,"CoffmanGrahamLayerer",1404),b(1405,1,De,A7n),o.Ne=function(e,t){return QEe(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type",1405),b(1406,1,De,L7n),o.Ne=function(e,t){return Q0e(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"CoffmanGrahamLayerer/lambda$1$Type",1406),b(1415,1,vr,G5n),o.rg=function(e){return u(e,36),mie},o.Kf=function(e,t){SNe(this,u(e,36),t)},o.c=0,o.e=0;var mie;w(Ll,"DepthFirstModelOrderLayerer",1415),b(1416,1,De,zpn),o.Ne=function(e,t){return aEe(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"DepthFirstModelOrderLayerer/lambda$0$Type",1416),b(1407,1,vr,Xpn),o.rg=function(e){return u(e,36),Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),N_)),Jh,Nw),Ac,Lw)},o.Kf=function(e,t){ZLe(u(e,36),t)},w(Ll,"InteractiveLayerer",1407),b(578,1,{578:1},Vyn),o.a=0,o.c=0,w(Ll,"InteractiveLayerer/LayerSpan",578),b(1403,1,vr,J5n),o.rg=function(e){return u(e,36),vie},o.Kf=function(e,t){SCe(this,u(e,36),t)};var vie;w(Ll,"LongestPathLayerer",1403),b(1412,1,vr,W5n),o.rg=function(e){return u(e,36),kie},o.Kf=function(e,t){QCe(this,u(e,36),t)};var kie;w(Ll,"LongestPathSourceLayerer",1412),b(1410,1,vr,Q5n),o.rg=function(e){return u(e,36),Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)},o.Kf=function(e,t){sNe(this,u(e,36),t)},o.a=0,o.b=0,o.d=0;var nln,eln;w(Ll,"MinWidthLayerer",1410),b(1411,1,De,N7n),o.Ne=function(e,t){return Ive(this,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"MinWidthLayerer/MinOutgoingEdgesComparator",1411),b(1402,1,vr,Y5n),o.rg=function(e){return u(e,36),yie},o.Kf=function(e,t){jAe(this,u(e,36),t)};var yie;w(Ll,"NetworkSimplexLayerer",1402),b(1408,1,vr,_Sn),o.rg=function(e){return u(e,36),Fe(Fe(Fe(new ii,(Vi(),Vs),(tr(),b2)),Jh,Nw),Ac,Lw)},o.Kf=function(e,t){uLe(this,u(e,36),t)},o.d=0,o.f=0,o.g=0,o.i=0,o.s=0,o.t=0,o.u=0,w(Ll,"StretchWidthLayerer",1408),b(1409,1,De,Vpn),o.Ne=function(e,t){return u4e(u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ll,"StretchWidthLayerer/1",1409),b(413,1,Mrn),o.gg=function(e,t,i,r,c,s){},o.ug=function(e,t,i){return aUn(this,e,t,i)},o.fg=function(){this.g=F(cg,fVn,28,this.d,15,1),this.f=F(cg,fVn,28,this.d,15,1)},o.hg=function(e,t){this.e[e]=F(ye,_e,28,t[e].length,15,1)},o.ig=function(e,t,i){var r;r=i[e][t],r.p=t,this.e[e][t]=t},o.jg=function(e,t,i,r){u(sn(r[e][t].j,i),12).p=this.d++},o.b=0,o.c=0,o.d=0,w(Du,"AbstractBarycenterPortDistributor",413),b(1698,1,De,D7n),o.Ne=function(e,t){return t9e(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Du,"AbstractBarycenterPortDistributor/lambda$0$Type",1698),b(832,1,_y,pJ),o.gg=function(e,t,i,r,c,s){},o.ig=function(e,t,i){},o.jg=function(e,t,i,r){},o.eg=function(){return!1},o.fg=function(){this.c=this.e.a,this.g=this.f.g},o.hg=function(e,t){t[e][0].c.p=e},o.kg=function(){return!1},o.vg=function(e,t,i,r){i?wFn(this,e):(vFn(this,e,r),DGn(this,e,t)),e.c.length>1&&(on(un(v(Hi((Nn(0,e.c.length),u(e.c[0],10))),(cn(),l0))))?HHn(e,this.d,u(this,669)):(Ln(),Yt(e,this.d)),qxn(this.e,e))},o.lg=function(e,t,i,r){var c,s,f,h,l,a,d;for(t!=uIn(i,e.length)&&(s=e[t-(i?1:-1)],_J(this.f,s,i?(gr(),Jc):(gr(),Vu))),c=e[t][0],d=!r||c.k==(Vn(),Zt),a=Af(e[t]),this.vg(a,d,!1,i),f=0,l=new M(a);l.a<l.c.c.length;)h=u(E(l),10),e[t][f++]=h;return!1},o.mg=function(e,t){var i,r,c,s,f;for(f=uIn(t,e.length),s=Af(e[f]),this.vg(s,!1,!0,t),i=0,c=new M(s);c.a<c.c.c.length;)r=u(E(c),10),e[f][i++]=r;return!1},w(Du,"BarycenterHeuristic",832),b(667,1,{667:1},R7n),o.Ib=function(){return"BarycenterState [node="+this.c+", summedWeight="+this.d+", degree="+this.b+", barycenter="+this.a+", visited="+this.e+"]"},o.b=0,o.d=0,o.e=!1;var jie=w(Du,"BarycenterHeuristic/BarycenterState",667);b(1865,1,De,$7n),o.Ne=function(e,t){return Jke(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Du,"BarycenterHeuristic/lambda$0$Type",1865),b(831,1,_y,JZ),o.fg=function(){},o.gg=function(e,t,i,r,c,s){},o.jg=function(e,t,i,r){},o.hg=function(e,t){this.a[e]=F(jie,{3:1,4:1,5:1,2117:1},667,t[e].length,0,1),this.b[e]=F(Eie,{3:1,4:1,5:1,2118:1},239,t[e].length,0,1)},o.ig=function(e,t,i){nBn(this,i[e][t],!0)},o.c=!1,w(Du,"ForsterConstraintResolver",831),b(239,1,{239:1},XOn,kGn),o.Ib=function(){var e,t;for(t=new x1,t.a+="[",e=0;e<this.d.length;e++)Be(t,wBn(this.d[e])),Sf(this.g,this.d[0]).a!=null&&Be(Be((t.a+="<",t),jle(Sf(this.g,this.d[0]).a)),">"),e<this.d.length-1&&(t.a+=ur);return(t.a+="]",t).a},o.a=0,o.c=0,o.f=0;var Eie=w(Du,"ForsterConstraintResolver/ConstraintGroup",239);b(1860,1,re,x7n),o.Cd=function(e){nBn(this.a,u(e,10),!1)},w(Du,"ForsterConstraintResolver/lambda$0$Type",1860),b(219,1,{219:1,230:1},EGn),o.gg=function(e,t,i,r,c,s){},o.hg=function(e,t){},o.fg=function(){this.r=F(ye,_e,28,this.n,15,1)},o.ig=function(e,t,i){var r,c;c=i[e][t],r=c.e,r&&nn(this.b,r)},o.jg=function(e,t,i,r){++this.n},o.Ib=function(){return $Gn(this.e,new ni)},o.g=!1,o.i=!1,o.n=0,o.s=!1,w(Du,"GraphInfoHolder",219),b(1905,1,_y,Wpn),o.gg=function(e,t,i,r,c,s){},o.hg=function(e,t){},o.jg=function(e,t,i,r){},o.ug=function(e,t,i){return i&&t>0?LD(this.a,e[t-1],e[t]):!i&&t<e.length-1?LD(this.a,e[t],e[t+1]):C$(this.a,e[t],i?(en(),Wn):(en(),Zn)),ITe(this,e,t,i)},o.fg=function(){this.d=F(ye,_e,28,this.c,15,1),this.a=new L7(this.d)},o.ig=function(e,t,i){var r;r=i[e][t],this.c+=r.j.c.length},o.c=0,w(Du,"GreedyPortDistributor",1905),b(1421,1,vr,i8n),o.rg=function(e){return X6e(u(e,36))},o.Kf=function(e,t){HAe(u(e,36),t)};var Mie;w(Du,"InteractiveCrossingMinimizer",1421),b(1422,1,De,B7n),o.Ne=function(e,t){return Ake(this,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Du,"InteractiveCrossingMinimizer/1",1422),b(514,1,{514:1,106:1,47:1},gL),o.rg=function(e){var t;return u(e,36),t=LM(Tie),Fe(t,(Vi(),Ac),(tr(),RI)),t},o.Kf=function(e,t){WPe(this,u(e,36),t)},o.e=0;var Tie;w(Du,"LayerSweepCrossingMinimizer",514),b(1418,1,re,F7n),o.Cd=function(e){BIe(this.a,u(e,219))},w(Du,"LayerSweepCrossingMinimizer/0methodref$compareDifferentRandomizedLayouts$Type",1418),b(1419,1,re,_7n),o.Cd=function(e){G6e(this.a,u(e,219))},w(Du,"LayerSweepCrossingMinimizer/1methodref$minimizeCrossingsNoCounter$Type",1419),b(1420,1,re,H7n),o.Cd=function(e){YUn(this.a,u(e,219))},w(Du,"LayerSweepCrossingMinimizer/2methodref$minimizeCrossingsWithCounter$Type",1420),b(464,22,{3:1,34:1,22:1,464:1},ZL);var Aj,Z8,IO,Cie=we(Du,"LayerSweepCrossingMinimizer/CrossMinType",464,ke,W2e,nbe),Sie;b(1417,1,Le,Jpn),o.Mb=function(e){return KQ(),u(e,30).a.c.length==0},w(Du,"LayerSweepCrossingMinimizer/lambda$0$Type",1417),b(1862,1,_y,TAn),o.fg=function(){},o.gg=function(e,t,i,r,c,s){},o.jg=function(e,t,i,r){},o.hg=function(e,t){t[e][0].c.p=e,this.b[e]=F(Pie,{3:1,4:1,5:1,2043:1},668,t[e].length,0,1)},o.ig=function(e,t,i){var r;r=i[e][t],r.p=t,$t(this.b[e],t,new Qpn)},w(Du,"LayerSweepTypeDecider",1862),b(668,1,{668:1},Qpn),o.Ib=function(){return"NodeInfo [connectedEdges="+this.a+", hierarchicalInfluence="+this.b+", randomInfluence="+this.c+"]"},o.a=0,o.b=0,o.c=0;var Pie=w(Du,"LayerSweepTypeDecider/NodeInfo",668);b(1863,1,ph,Ypn),o.Lb=function(e){return L6(new Lf(u(e,12).b))},o.Fb=function(e){return this===e},o.Mb=function(e){return L6(new Lf(u(e,12).b))},w(Du,"LayerSweepTypeDecider/lambda$0$Type",1863),b(1864,1,ph,Zpn),o.Lb=function(e){return L6(new Lf(u(e,12).b))},o.Fb=function(e){return this===e},o.Mb=function(e){return L6(new Lf(u(e,12).b))},w(Du,"LayerSweepTypeDecider/lambda$1$Type",1864),b(1906,413,Mrn,Wjn),o.tg=function(e,t,i){var r,c,s,f,h,l,a,d,g;switch(a=this.g,i.g){case 1:{for(r=0,c=0,l=new M(e.j);l.a<l.c.c.length;)f=u(E(l),12),f.e.c.length!=0&&(++r,f.j==(en(),Xn)&&++c);for(s=t+c,g=t+r,h=Rb(e,(gr(),Vu)).Kc();h.Ob();)f=u(h.Pb(),12),f.j==(en(),Xn)?(a[f.p]=s,--s):(a[f.p]=g,--g);return r}case 2:{for(d=0,h=Rb(e,(gr(),Jc)).Kc();h.Ob();)f=u(h.Pb(),12),++d,a[f.p]=t+d;return d}default:throw T(new W9)}},w(Du,"LayerTotalPortDistributor",1906),b(669,832,{669:1,230:1},gxn),o.vg=function(e,t,i,r){i?wFn(this,e):(vFn(this,e,r),DGn(this,e,t)),e.c.length>1&&(on(un(v(Hi((Nn(0,e.c.length),u(e.c[0],10))),(cn(),l0))))?HHn(e,this.d,this):(Ln(),Yt(e,this.d)),on(un(v(Hi((Nn(0,e.c.length),u(e.c[0],10))),l0)))||qxn(this.e,e))},w(Du,"ModelOrderBarycenterHeuristic",669),b(1866,1,De,q7n),o.Ne=function(e,t){return Aje(this.a,u(e,10),u(t,10))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Du,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866),b(1423,1,vr,r8n),o.rg=function(e){var t;return u(e,36),t=LM(Iie),Fe(t,(Vi(),Ac),(tr(),RI)),t},o.Kf=function(e,t){bge((u(e,36),t))};var Iie;w(Du,"NoCrossingMinimizer",1423),b(809,413,Mrn,jz),o.tg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m;switch(g=this.g,i.g){case 1:{for(c=0,s=0,d=new M(e.j);d.a<d.c.c.length;)l=u(E(d),12),l.e.c.length!=0&&(++c,l.j==(en(),Xn)&&++s);for(r=1/(c+1),f=t+s*r,m=t+1-r,a=Rb(e,(gr(),Vu)).Kc();a.Ob();)l=u(a.Pb(),12),l.j==(en(),Xn)?(g[l.p]=f,f-=r):(g[l.p]=m,m-=r);break}case 2:{for(h=0,d=new M(e.j);d.a<d.c.c.length;)l=u(E(d),12),l.g.c.length==0||++h;for(r=1/(h+1),p=t+r,a=Rb(e,(gr(),Jc)).Kc();a.Ob();)l=u(a.Pb(),12),g[l.p]=p,p+=r;break}default:throw T(new Gn("Port type is undefined"))}return 1},w(Du,"NodeRelativePortDistributor",809),b(822,1,{},RIn,QFn),w(Du,"SweepCopy",822),b(1861,1,_y,$Kn),o.hg=function(e,t){},o.fg=function(){var e;e=F(ye,_e,28,this.f,15,1),this.d=new Q7n(e),this.a=new L7(e)},o.gg=function(e,t,i,r,c,s){var f;f=u(sn(s[e][t].j,i),12),c.c==f&&c.c.i.c==c.d.i.c&&++this.e[e]},o.ig=function(e,t,i){var r;r=i[e][t],this.c[e]=this.c[e]|r.k==(Vn(),_c)},o.jg=function(e,t,i,r){var c;c=u(sn(r[e][t].j,i),12),c.p=this.f++,c.g.c.length+c.e.c.length>1&&(c.j==(en(),Zn)?this.b[e]=!0:c.j==Wn&&e>0&&(this.b[e-1]=!0))},o.f=0,w(Vh,"AllCrossingsCounter",1861),b(595,1,{},EC),o.b=0,o.d=0,w(Vh,"BinaryIndexedTree",595),b(532,1,{},L7);var tln,OO;w(Vh,"CrossingsCounter",532),b(1950,1,De,U7n),o.Ne=function(e,t){return F0e(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Vh,"CrossingsCounter/lambda$0$Type",1950),b(1951,1,De,G7n),o.Ne=function(e,t){return _0e(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Vh,"CrossingsCounter/lambda$1$Type",1951),b(1952,1,De,z7n),o.Ne=function(e,t){return H0e(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Vh,"CrossingsCounter/lambda$2$Type",1952),b(1953,1,De,X7n),o.Ne=function(e,t){return q0e(this.a,u(e,12),u(t,12))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Vh,"CrossingsCounter/lambda$3$Type",1953),b(1954,1,re,V7n),o.Cd=function(e){q4e(this.a,u(e,12))},w(Vh,"CrossingsCounter/lambda$4$Type",1954),b(1955,1,Le,W7n),o.Mb=function(e){return ble(this.a,u(e,12))},w(Vh,"CrossingsCounter/lambda$5$Type",1955),b(1956,1,re,J7n),o.Cd=function(e){ATn(this,e)},w(Vh,"CrossingsCounter/lambda$6$Type",1956),b(1957,1,re,HMn),o.Cd=function(e){var t;k4(),W1(this.b,(t=this.a,u(e,12),t))},w(Vh,"CrossingsCounter/lambda$7$Type",1957),b(839,1,ph,QU),o.Lb=function(e){return k4(),kt(u(e,12),(W(),Xu))},o.Fb=function(e){return this===e},o.Mb=function(e){return k4(),kt(u(e,12),(W(),Xu))},w(Vh,"CrossingsCounter/lambda$8$Type",839),b(1949,1,{},Q7n),w(Vh,"HyperedgeCrossingsCounter",1949),b(478,1,{34:1,478:1},GSn),o.Fd=function(e){return H8e(this,u(e,478))},o.b=0,o.c=0,o.e=0,o.f=0;var jDe=w(Vh,"HyperedgeCrossingsCounter/Hyperedge",478);b(374,1,{34:1,374:1},MT),o.Fd=function(e){return tTe(this,u(e,374))},o.b=0,o.c=0;var Oie=w(Vh,"HyperedgeCrossingsCounter/HyperedgeCorner",374);b(531,22,{3:1,34:1,22:1,531:1},nX);var n9,e9,Aie=we(Vh,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,ke,Gge,ebe),Lie;b(1425,1,vr,c8n),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Nie:null},o.Kf=function(e,t){dke(this,u(e,36),t)};var Nie;w(kr,"InteractiveNodePlacer",1425),b(1426,1,vr,u8n),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Die:null},o.Kf=function(e,t){Q9e(this,u(e,36),t)};var Die,AO,LO;w(kr,"LinearSegmentsNodePlacer",1426),b(261,1,{34:1,261:1},JG),o.Fd=function(e){return Che(this,u(e,261))},o.Fb=function(e){var t;return L(e,261)?(t=u(e,261),this.b==t.b):!1},o.Hb=function(){return this.b},o.Ib=function(){return"ls"+ca(this.e)},o.a=0,o.b=0,o.c=-1,o.d=-1,o.g=0;var $ie=w(kr,"LinearSegmentsNodePlacer/LinearSegment",261);b(1428,1,vr,gIn),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?xie:null},o.Kf=function(e,t){CNe(this,u(e,36),t)},o.b=0,o.g=0;var xie;w(kr,"NetworkSimplexPlacer",1428),b(1447,1,De,n3n),o.Ne=function(e,t){return jc(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(kr,"NetworkSimplexPlacer/0methodref$compare$Type",1447),b(1449,1,De,e3n),o.Ne=function(e,t){return jc(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(kr,"NetworkSimplexPlacer/1methodref$compare$Type",1449),b(655,1,{655:1},qMn);var EDe=w(kr,"NetworkSimplexPlacer/EdgeRep",655);b(412,1,{412:1},zW),o.b=!1;var MDe=w(kr,"NetworkSimplexPlacer/NodeRep",412);b(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},Zyn),w(kr,"NetworkSimplexPlacer/Path",515),b(1429,1,{},t3n),o.Kb=function(e){return u(e,18).d.i.k},w(kr,"NetworkSimplexPlacer/Path/lambda$0$Type",1429),b(1430,1,Le,i3n),o.Mb=function(e){return u(e,273)==(Vn(),Ti)},w(kr,"NetworkSimplexPlacer/Path/lambda$1$Type",1430),b(1431,1,{},r3n),o.Kb=function(e){return u(e,18).d.i},w(kr,"NetworkSimplexPlacer/Path/lambda$2$Type",1431),b(1432,1,Le,Y7n),o.Mb=function(e){return ISn(LKn(u(e,10)))},w(kr,"NetworkSimplexPlacer/Path/lambda$3$Type",1432),b(1433,1,Le,c3n),o.Mb=function(e){return M0e(u(e,12))},w(kr,"NetworkSimplexPlacer/lambda$0$Type",1433),b(1434,1,re,UMn),o.Cd=function(e){c1e(this.a,this.b,u(e,12))},w(kr,"NetworkSimplexPlacer/lambda$1$Type",1434),b(1443,1,re,Z7n),o.Cd=function(e){AEe(this.a,u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$10$Type",1443),b(1444,1,{},u3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$11$Type",1444),b(1445,1,re,nkn),o.Cd=function(e){TSe(this.a,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$12$Type",1445),b(1446,1,{},o3n),o.Kb=function(e){return ko(),Y(u(e,125).e)},w(kr,"NetworkSimplexPlacer/lambda$13$Type",1446),b(1448,1,{},s3n),o.Kb=function(e){return ko(),Y(u(e,125).e)},w(kr,"NetworkSimplexPlacer/lambda$15$Type",1448),b(1450,1,Le,f3n),o.Mb=function(e){return ko(),u(e,412).c.k==(Vn(),zt)},w(kr,"NetworkSimplexPlacer/lambda$17$Type",1450),b(1451,1,Le,h3n),o.Mb=function(e){return ko(),u(e,412).c.j.c.length>1},w(kr,"NetworkSimplexPlacer/lambda$18$Type",1451),b(1452,1,re,MOn),o.Cd=function(e){h8e(this.c,this.b,this.d,this.a,u(e,412))},o.c=0,o.d=0,w(kr,"NetworkSimplexPlacer/lambda$19$Type",1452),b(1435,1,{},l3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$2$Type",1435),b(1453,1,re,ekn),o.Cd=function(e){o1e(this.a,u(e,12))},o.a=0,w(kr,"NetworkSimplexPlacer/lambda$20$Type",1453),b(1454,1,{},a3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$21$Type",1454),b(1455,1,re,tkn),o.Cd=function(e){v1e(this.a,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$22$Type",1455),b(1456,1,Le,d3n),o.Mb=function(e){return ISn(e)},w(kr,"NetworkSimplexPlacer/lambda$23$Type",1456),b(1457,1,{},b3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$24$Type",1457),b(1458,1,Le,ikn),o.Mb=function(e){return Ple(this.a,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$25$Type",1458),b(1459,1,re,GMn),o.Cd=function(e){$je(this.a,this.b,u(e,10))},w(kr,"NetworkSimplexPlacer/lambda$26$Type",1459),b(1460,1,Le,w3n),o.Mb=function(e){return ko(),!fr(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$27$Type",1460),b(1461,1,Le,g3n),o.Mb=function(e){return ko(),!fr(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$28$Type",1461),b(1462,1,{},rkn),o.Ve=function(e,t){return u1e(this.a,u(e,30),u(t,30))},w(kr,"NetworkSimplexPlacer/lambda$29$Type",1462),b(1436,1,{},p3n),o.Kb=function(e){return ko(),new Cn(null,new pb(new ie(ce(Qt(u(e,10)).a.Kc(),new En))))},w(kr,"NetworkSimplexPlacer/lambda$3$Type",1436),b(1437,1,Le,m3n),o.Mb=function(e){return ko(),xpe(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$4$Type",1437),b(1438,1,re,ckn),o.Cd=function(e){DIe(this.a,u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$5$Type",1438),b(1439,1,{},v3n),o.Kb=function(e){return ko(),new Cn(null,new On(u(e,30).a,16))},w(kr,"NetworkSimplexPlacer/lambda$6$Type",1439),b(1440,1,Le,k3n),o.Mb=function(e){return ko(),u(e,10).k==(Vn(),zt)},w(kr,"NetworkSimplexPlacer/lambda$7$Type",1440),b(1441,1,{},y3n),o.Kb=function(e){return ko(),new Cn(null,new pb(new ie(ce(Ml(u(e,10)).a.Kc(),new En))))},w(kr,"NetworkSimplexPlacer/lambda$8$Type",1441),b(1442,1,Le,j3n),o.Mb=function(e){return ko(),E0e(u(e,18))},w(kr,"NetworkSimplexPlacer/lambda$9$Type",1442),b(1424,1,vr,o8n),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Rie:null},o.Kf=function(e,t){bOe(u(e,36),t)};var Rie;w(kr,"SimpleNodePlacer",1424),b(185,1,{185:1},Wg),o.Ib=function(){var e;return e="",this.c==(fh(),m0)?e+=f3:this.c==y1&&(e+=s3),this.o==(If(),Bd)?e+=_K:this.o==Xf?e+="UP":e+="BALANCED",e},w(da,"BKAlignedLayout",185),b(523,22,{3:1,34:1,22:1,523:1},eX);var y1,m0,Kie=we(da,"BKAlignedLayout/HDirection",523,ke,Xge,tbe),Bie;b(522,22,{3:1,34:1,22:1,522:1},tX);var Bd,Xf,Fie=we(da,"BKAlignedLayout/VDirection",522,ke,Vge,ibe),_ie;b(1699,1,{},zMn),w(da,"BKAligner",1699),b(1702,1,{},iFn),w(da,"BKCompactor",1702),b(663,1,{663:1},E3n),o.a=0,w(da,"BKCompactor/ClassEdge",663),b(467,1,{467:1},Jyn),o.a=null,o.b=0,w(da,"BKCompactor/ClassNode",467),b(1427,1,vr,JMn),o.rg=function(e){return u(v(u(e,36),(W(),Hc)),21).Hc((pr(),cs))?Hie:null},o.Kf=function(e,t){UNe(this,u(e,36),t)},o.d=!1;var Hie;w(da,"BKNodePlacer",1427),b(1700,1,{},M3n),o.d=0,w(da,"NeighborhoodInformation",1700),b(1701,1,De,ukn),o.Ne=function(e,t){return mme(this,u(e,42),u(t,42))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(da,"NeighborhoodInformation/NeighborComparator",1701),b(823,1,{}),w(da,"ThresholdStrategy",823),b(1825,823,{},Qyn),o.wg=function(e,t,i){return this.a.o==(If(),Xf)?Pt:li},o.xg=function(){},w(da,"ThresholdStrategy/NullThresholdStrategy",1825),b(587,1,{587:1},QMn),o.c=!1,o.d=!1,w(da,"ThresholdStrategy/Postprocessable",587),b(1826,823,{},Yyn),o.wg=function(e,t,i){var r,c,s;return c=t==i,r=this.a.a[i.p]==t,c||r?(s=e,this.a.c==(fh(),m0)?(c&&(s=FR(this,t,!0)),!isNaN(s)&&!isFinite(s)&&r&&(s=FR(this,i,!1))):(c&&(s=FR(this,t,!0)),!isNaN(s)&&!isFinite(s)&&r&&(s=FR(this,i,!1))),s):e},o.xg=function(){for(var e,t,i,r,c;this.d.b!=0;)c=u(f2e(this.d),587),r=IUn(this,c),r.a&&(e=r.a,i=on(this.a.f[this.a.g[c.b.p].p]),!(!i&&!fr(e)&&e.c.i.c==e.d.i.c)&&(t=DHn(this,c),t||Ale(this.e,c)));for(;this.e.a.c.length!=0;)DHn(this,u($Rn(this.e),587))},w(da,"ThresholdStrategy/SimpleThresholdStrategy",1826),b(645,1,{645:1,188:1,196:1},T3n),o.dg=function(){return Uxn(this)},o.qg=function(){return Uxn(this)};var QH;w(BB,"EdgeRouterFactory",645),b(1485,1,vr,s8n),o.rg=function(e){return eSe(u(e,36))},o.Kf=function(e,t){yOe(u(e,36),t)};var qie,Uie,Gie,zie,Xie,iln,Vie,Wie;w(BB,"OrthogonalEdgeRouter",1485),b(1478,1,vr,WMn),o.rg=function(e){return Eke(u(e,36))},o.Kf=function(e,t){ULe(this,u(e,36),t)};var Jie,Qie,Yie,Zie,Lj,nre;w(BB,"PolylineEdgeRouter",1478),b(1479,1,ph,S3n),o.Lb=function(e){return qQ(u(e,10))},o.Fb=function(e){return this===e},o.Mb=function(e){return qQ(u(e,10))},w(BB,"PolylineEdgeRouter/1",1479),b(1872,1,Le,P3n),o.Mb=function(e){return u(e,132).c==(af(),Ea)},w(mf,"HyperEdgeCycleDetector/lambda$0$Type",1872),b(1873,1,{},I3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$1$Type",1873),b(1874,1,Le,O3n),o.Mb=function(e){return u(e,132).c==(af(),Ea)},w(mf,"HyperEdgeCycleDetector/lambda$2$Type",1874),b(1875,1,{},A3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$3$Type",1875),b(1876,1,{},L3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$4$Type",1876),b(1877,1,{},C3n),o.Ze=function(e){return u(e,132).d},w(mf,"HyperEdgeCycleDetector/lambda$5$Type",1877),b(118,1,{34:1,118:1},yk),o.Fd=function(e){return She(this,u(e,118))},o.Fb=function(e){var t;return L(e,118)?(t=u(e,118),this.g==t.g):!1},o.Hb=function(){return this.g},o.Ib=function(){var e,t,i,r;for(e=new mo("{"),r=new M(this.n);r.a<r.c.c.length;)i=u(E(r),12),t=qk(i.i),t==null&&(t="n"+tPn(i.i)),e.a+=""+t,r.a<r.c.c.length&&(e.a+=",");return e.a+="}",e.a},o.a=0,o.b=0,o.c=NaN,o.d=0,o.g=0,o.i=0,o.o=0,o.s=NaN,w(mf,"HyperEdgeSegment",118),b(132,1,{132:1},ed),o.Ib=function(){return this.a+"->"+this.b+" ("+z1e(this.c)+")"},o.d=0,w(mf,"HyperEdgeSegmentDependency",132),b(528,22,{3:1,34:1,22:1,528:1},iX);var Ea,zw,ere=we(mf,"HyperEdgeSegmentDependency/DependencyType",528,ke,Wge,rbe),tre;b(1878,1,{},okn),w(mf,"HyperEdgeSegmentSplitter",1878),b(1879,1,{},Zjn),o.a=0,o.b=0,w(mf,"HyperEdgeSegmentSplitter/AreaRating",1879),b(339,1,{339:1},FN),o.a=0,o.b=0,o.c=0,w(mf,"HyperEdgeSegmentSplitter/FreeArea",339),b(1880,1,De,N3n),o.Ne=function(e,t){return zae(u(e,118),u(t,118))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(mf,"HyperEdgeSegmentSplitter/lambda$0$Type",1880),b(1881,1,re,TOn),o.Cd=function(e){k3e(this.a,this.d,this.c,this.b,u(e,118))},o.b=0,w(mf,"HyperEdgeSegmentSplitter/lambda$1$Type",1881),b(1882,1,{},D3n),o.Kb=function(e){return new Cn(null,new On(u(e,118).e,16))},w(mf,"HyperEdgeSegmentSplitter/lambda$2$Type",1882),b(1883,1,{},$3n),o.Kb=function(e){return new Cn(null,new On(u(e,118).j,16))},w(mf,"HyperEdgeSegmentSplitter/lambda$3$Type",1883),b(1884,1,{},x3n),o.Ye=function(e){return $(B(e))},w(mf,"HyperEdgeSegmentSplitter/lambda$4$Type",1884),b(664,1,{},lD),o.a=0,o.b=0,o.c=0,w(mf,"OrthogonalRoutingGenerator",664),b(1703,1,{},R3n),o.Kb=function(e){return new Cn(null,new On(u(e,118).e,16))},w(mf,"OrthogonalRoutingGenerator/lambda$0$Type",1703),b(1704,1,{},K3n),o.Kb=function(e){return new Cn(null,new On(u(e,118).j,16))},w(mf,"OrthogonalRoutingGenerator/lambda$1$Type",1704),b(670,1,{}),w(FB,"BaseRoutingDirectionStrategy",670),b(1870,670,{},tjn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;if(!(e.r&&!e.q))for(d=t+e.o*i,a=new M(e.n);a.a<a.c.c.length;)for(l=u(E(a),12),g=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])).a,h=new M(l.g);h.a<h.c.c.length;)f=u(E(h),18),fr(f)||(k=f.d,j=cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a])).a,y.Math.abs(g-j)>vh&&(s=d,c=e,r=new V(g,s),Re(f.a,r),qb(this,f,c,r,!1),p=e.r,p&&(m=$(B(Zo(p.e,0))),r=new V(m,s),Re(f.a,r),qb(this,f,c,r,!1),s=t+p.o*i,c=p,r=new V(m,s),Re(f.a,r),qb(this,f,c,r,!1)),r=new V(j,s),Re(f.a,r),qb(this,f,c,r,!1)))},o.zg=function(e){return e.i.n.a+e.n.a+e.a.a},o.Ag=function(){return en(),ae},o.Bg=function(){return en(),Xn},w(FB,"NorthToSouthRoutingStrategy",1870),b(1871,670,{},ijn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;if(!(e.r&&!e.q))for(d=t-e.o*i,a=new M(e.n);a.a<a.c.c.length;)for(l=u(E(a),12),g=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])).a,h=new M(l.g);h.a<h.c.c.length;)f=u(E(h),18),fr(f)||(k=f.d,j=cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a])).a,y.Math.abs(g-j)>vh&&(s=d,c=e,r=new V(g,s),Re(f.a,r),qb(this,f,c,r,!1),p=e.r,p&&(m=$(B(Zo(p.e,0))),r=new V(m,s),Re(f.a,r),qb(this,f,c,r,!1),s=t-p.o*i,c=p,r=new V(m,s),Re(f.a,r),qb(this,f,c,r,!1)),r=new V(j,s),Re(f.a,r),qb(this,f,c,r,!1)))},o.zg=function(e){return e.i.n.a+e.n.a+e.a.a},o.Ag=function(){return en(),Xn},o.Bg=function(){return en(),ae},w(FB,"SouthToNorthRoutingStrategy",1871),b(1869,670,{},rjn),o.yg=function(e,t,i){var r,c,s,f,h,l,a,d,g,p,m,k,j;if(!(e.r&&!e.q))for(d=t+e.o*i,a=new M(e.n);a.a<a.c.c.length;)for(l=u(E(a),12),g=cc(S(C(Ei,1),J,8,0,[l.i.n,l.n,l.a])).b,h=new M(l.g);h.a<h.c.c.length;)f=u(E(h),18),fr(f)||(k=f.d,j=cc(S(C(Ei,1),J,8,0,[k.i.n,k.n,k.a])).b,y.Math.abs(g-j)>vh&&(s=d,c=e,r=new V(s,g),Re(f.a,r),qb(this,f,c,r,!0),p=e.r,p&&(m=$(B(Zo(p.e,0))),r=new V(s,m),Re(f.a,r),qb(this,f,c,r,!0),s=t+p.o*i,c=p,r=new V(s,m),Re(f.a,r),qb(this,f,c,r,!0)),r=new V(s,j),Re(f.a,r),qb(this,f,c,r,!0)))},o.zg=function(e){return e.i.n.b+e.n.b+e.a.b},o.Ag=function(){return en(),Zn},o.Bg=function(){return en(),Wn},w(FB,"WestToEastRoutingStrategy",1869),b(828,1,{},_en),o.Ib=function(){return ca(this.a)},o.b=0,o.c=!1,o.d=!1,o.f=0,w(jw,"NubSpline",828),b(418,1,{418:1},dqn,iAn),w(jw,"NubSpline/PolarCP",418),b(1480,1,vr,WBn),o.rg=function(e){return aye(u(e,36))},o.Kf=function(e,t){fNe(this,u(e,36),t)};var ire,rre,cre,ure,ore;w(jw,"SplineEdgeRouter",1480),b(274,1,{274:1},XT),o.Ib=function(){return this.a+" ->("+this.c+") "+this.b},o.c=0,w(jw,"SplineEdgeRouter/Dependency",274),b(465,22,{3:1,34:1,22:1,465:1},rX);var Ma,O2,sre=we(jw,"SplineEdgeRouter/SideToProcess",465,ke,e2e,cbe),fre;b(1481,1,Le,B3n),o.Mb=function(e){return K5(),!u(e,131).o},w(jw,"SplineEdgeRouter/lambda$0$Type",1481),b(1482,1,{},F3n),o.Ze=function(e){return K5(),u(e,131).v+1},w(jw,"SplineEdgeRouter/lambda$1$Type",1482),b(1483,1,re,YMn),o.Cd=function(e){S0e(this.a,this.b,u(e,42))},w(jw,"SplineEdgeRouter/lambda$2$Type",1483),b(1484,1,re,ZMn),o.Cd=function(e){P0e(this.a,this.b,u(e,42))},w(jw,"SplineEdgeRouter/lambda$3$Type",1484),b(131,1,{34:1,131:1},S_n,Xen),o.Fd=function(e){return Ohe(this,u(e,131))},o.b=0,o.e=!1,o.f=0,o.g=0,o.j=!1,o.k=!1,o.n=0,o.o=!1,o.p=!1,o.q=!1,o.s=0,o.u=0,o.v=0,o.F=0,w(jw,"SplineSegment",131),b(468,1,{468:1},_3n),o.a=0,o.b=!1,o.c=!1,o.d=!1,o.e=!1,o.f=0,w(jw,"SplineSegment/EdgeInformation",468),b(1198,1,{},H3n),w(Nl,Utn,1198),b(1199,1,De,q3n),o.Ne=function(e,t){return VEe(u(e,121),u(t,121))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Nl,EXn,1199),b(1197,1,{},wEn),w(Nl,"MrTree",1197),b(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},pM),o.dg=function(){return V_n(this)},o.qg=function(){return V_n(this)};var NO,t9,i9,r9,rln=we(Nl,"TreeLayoutPhases",405,ke,i3e,ube),hre;b(1112,205,yd,qSn),o.rf=function(e,t){var i,r,c,s,f,h,l,a;for(on(un(z(e,(lc(),Iln))))||X7((i=new Xv((cb(),new Qd(e))),i)),f=t.eh(qB),f.Ug("build tGraph",1),h=(l=new tk,Ur(l,e),U(l,(pt(),u9),e),a=new de,_Pe(e,l,a),uIe(e,l,a),l),f.Vg(),f=t.eh(qB),f.Ug("Split graph",1),s=XPe(this.a,h),f.Vg(),c=new M(s);c.a<c.c.c.length;)r=u(E(c),121),Qke(this.b,r,t.eh(.5999999940395355/s.c.length));f=t.eh(qB),f.Ug("Pack components",1),h=GNe(s),f.Vg(),f=t.eh(qB),f.Ug("Apply layout results",1),DAe(h),f.Vg()},w(Nl,"TreeLayoutProvider",1112),b(1894,1,qh,G3n),o.Jc=function(e){qi(this,e)},o.Kc=function(){return Ln(),l4(),fv},w(Nl,"TreeUtil/1",1894),b(1895,1,qh,z3n),o.Jc=function(e){qi(this,e)},o.Kc=function(){return Ln(),l4(),fv},w(Nl,"TreeUtil/2",1895),b(1885,1,Le,X3n),o.Mb=function(e){return on(un(v(u(e,40),(pt(),Ta))))},w(Nl,"TreeUtil/lambda$0$Type",1885),b(1891,1,Le,skn),o.Mb=function(e){return this.a.Hc(u(e,40))},w(Nl,"TreeUtil/lambda$10$Type",1891),b(1892,1,{},fkn),o.Kb=function(e){return t3e(this.a,u(e,40))},w(Nl,"TreeUtil/lambda$11$Type",1892),b(1893,1,Le,nTn),o.Mb=function(e){return nme(this.a,this.b,u(e,40))},w(Nl,"TreeUtil/lambda$12$Type",1893),b(1886,1,Le,hkn),o.Mb=function(e){return F5e(this.a,u(e,65))},w(Nl,"TreeUtil/lambda$3$Type",1886),b(1887,1,De,U3n),o.Ne=function(e,t){return Xae(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Nl,"TreeUtil/lambda$4$Type",1887),b(1888,1,Le,lkn),o.Mb=function(e){return _5e(this.a,u(e,65))},w(Nl,"TreeUtil/lambda$7$Type",1888),b(1889,1,De,V3n),o.Ne=function(e,t){return Vae(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Nl,"TreeUtil/lambda$8$Type",1889),b(1890,1,{},W3n),o.Kb=function(e){return u(e,65).b},w(Nl,"TreeUtil/lambda$9$Type",1890),b(508,137,{3:1,508:1,96:1,137:1}),o.g=0,w(h8,"TGraphElement",508),b(65,508,{3:1,65:1,508:1,96:1,137:1},WW),o.Ib=function(){return this.b&&this.c?td(this.b)+"->"+td(this.c):"e_"+mt(this)},w(h8,"TEdge",65),b(121,137,{3:1,121:1,96:1,137:1},tk),o.Ib=function(){var e,t,i,r,c;for(c=null,r=ge(this.b,0);r.b!=r.d.c;)i=u(be(r),40),c+=(i.c==null||i.c.length==0?"n_"+i.g:"n_"+i.c)+`
`;for(t=ge(this.a,0);t.b!=t.d.c;)e=u(be(t),65),c+=(e.b&&e.c?td(e.b)+"->"+td(e.c):"e_"+mt(e))+`
`;return c};var TDe=w(h8,"TGraph",121);b(643,508,{3:1,508:1,643:1,96:1,137:1}),w(h8,"TShape",643),b(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},q$),o.Ib=function(){return td(this)};var DO=w(h8,"TNode",40);b(236,1,qh,sl),o.Jc=function(e){qi(this,e)},o.Kc=function(){var e;return e=ge(this.a.d,0),new sg(e)},w(h8,"TNode/2",236),b(329,1,Pi,sg),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(be(this.a),65).c},o.Ob=function(){return Q9(this.a)},o.Qb=function(){p$(this.a)},w(h8,"TNode/2/1",329),b(1923,1,vt,J3n),o.Kf=function(e,t){BNe(this,u(e,121),t)},w(Bc,"CompactionProcessor",1923),b(1924,1,De,akn),o.Ne=function(e,t){return Cve(this.a,u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$0$Type",1924),b(1925,1,Le,eTn),o.Mb=function(e){return Lge(this.b,this.a,u(e,42))},o.a=0,o.b=0,w(Bc,"CompactionProcessor/lambda$1$Type",1925),b(1934,1,De,Q3n),o.Ne=function(e,t){return Ewe(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$10$Type",1934),b(1935,1,De,Y3n),o.Ne=function(e,t){return R1e(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$11$Type",1935),b(1936,1,De,Z3n),o.Ne=function(e,t){return Mwe(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$12$Type",1936),b(1926,1,Le,dkn),o.Mb=function(e){return k1e(this.a,u(e,42))},o.a=0,w(Bc,"CompactionProcessor/lambda$2$Type",1926),b(1927,1,Le,bkn),o.Mb=function(e){return y1e(this.a,u(e,42))},o.a=0,w(Bc,"CompactionProcessor/lambda$3$Type",1927),b(1928,1,Le,n4n),o.Mb=function(e){return u(e,40).c.indexOf(OP)==-1},w(Bc,"CompactionProcessor/lambda$4$Type",1928),b(1929,1,{},wkn),o.Kb=function(e){return Dpe(this.a,u(e,40))},o.a=0,w(Bc,"CompactionProcessor/lambda$5$Type",1929),b(1930,1,{},gkn),o.Kb=function(e){return H4e(this.a,u(e,40))},o.a=0,w(Bc,"CompactionProcessor/lambda$6$Type",1930),b(1931,1,De,pkn),o.Ne=function(e,t){return Z3e(this.a,u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$7$Type",1931),b(1932,1,De,mkn),o.Ne=function(e,t){return n4e(this.a,u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$8$Type",1932),b(1933,1,De,e4n),o.Ne=function(e,t){return K1e(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Bc,"CompactionProcessor/lambda$9$Type",1933),b(1921,1,vt,t4n),o.Kf=function(e,t){$Se(u(e,121),t)},w(Bc,"DirectionProcessor",1921),b(1913,1,vt,HSn),o.Kf=function(e,t){rIe(this,u(e,121),t)},w(Bc,"FanProcessor",1913),b(1937,1,vt,i4n),o.Kf=function(e,t){ESe(u(e,121),t)},w(Bc,"GraphBoundsProcessor",1937),b(1938,1,{},r4n),o.Ye=function(e){return u(e,40).e.a},w(Bc,"GraphBoundsProcessor/lambda$0$Type",1938),b(1939,1,{},c4n),o.Ye=function(e){return u(e,40).e.b},w(Bc,"GraphBoundsProcessor/lambda$1$Type",1939),b(1940,1,{},u4n),o.Ye=function(e){return ile(u(e,40))},w(Bc,"GraphBoundsProcessor/lambda$2$Type",1940),b(1941,1,{},o4n),o.Ye=function(e){return tle(u(e,40))},w(Bc,"GraphBoundsProcessor/lambda$3$Type",1941),b(262,22,{3:1,34:1,22:1,262:1,196:1},ub),o.dg=function(){switch(this.g){case 0:return new mjn;case 1:return new HSn;case 2:return new pjn;case 3:return new a4n;case 4:return new f4n;case 8:return new s4n;case 5:return new t4n;case 6:return new b4n;case 7:return new J3n;case 9:return new i4n;case 10:return new w4n;default:throw T(new Gn(cB+(this.f!=null?this.f:""+this.g)))}};var cln,uln,oln,sln,fln,hln,lln,aln,dln,bln,YH,CDe=we(Bc,uB,262,ke,xxn,obe),lre;b(1920,1,vt,s4n),o.Kf=function(e,t){xLe(u(e,121),t)},w(Bc,"LevelCoordinatesProcessor",1920),b(1918,1,vt,f4n),o.Kf=function(e,t){iCe(this,u(e,121),t)},o.a=0,w(Bc,"LevelHeightProcessor",1918),b(1919,1,qh,h4n),o.Jc=function(e){qi(this,e)},o.Kc=function(){return Ln(),l4(),fv},w(Bc,"LevelHeightProcessor/1",1919),b(1914,1,vt,pjn),o.Kf=function(e,t){pSe(this,u(e,121),t)},w(Bc,"LevelProcessor",1914),b(1915,1,Le,l4n),o.Mb=function(e){return on(un(v(u(e,40),(pt(),Ta))))},w(Bc,"LevelProcessor/lambda$0$Type",1915),b(1916,1,vt,a4n),o.Kf=function(e,t){nEe(this,u(e,121),t)},o.a=0,w(Bc,"NeighborsProcessor",1916),b(1917,1,qh,d4n),o.Jc=function(e){qi(this,e)},o.Kc=function(){return Ln(),l4(),fv},w(Bc,"NeighborsProcessor/1",1917),b(1922,1,vt,b4n),o.Kf=function(e,t){iIe(this,u(e,121),t)},o.a=0,w(Bc,"NodePositionProcessor",1922),b(1912,1,vt,mjn),o.Kf=function(e,t){KOe(this,u(e,121),t)},w(Bc,"RootProcessor",1912),b(1942,1,vt,w4n),o.Kf=function(e,t){D9e(u(e,121),t)},w(Bc,"Untreeifyer",1942),b(392,22,{3:1,34:1,22:1,392:1},eN);var Nj,ZH,wln,gln=we(Gy,"EdgeRoutingMode",392,ke,J2e,sbe),are,Dj,Lv,nq,pln,mln,eq,tq,vln,iq,kln,rq,c9,cq,$O,xO,Js,jf,Nv,u9,o9,j1,yln,dre,uq,Ta,$j,xj;b(862,1,ms,f8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Srn),""),wVn),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(_n(),!1)),(l1(),yi)),Gt),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Prn),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Irn),""),"Tree Level"),"The index for the tree level the node is in"),Y(0)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Orn),""),wVn),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),Y(-1)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Arn),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),Mln),It),xln),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Lrn),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),jln),It),gln),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Nrn),""),"Search Order"),"Which search order to use when computing a spanning tree."),Eln),It),Kln),jn(xn)))),rzn((new a8n,e))};var bre,wre,gre,jln,pre,mre,Eln,vre,kre,Mln;w(Gy,"MrTreeMetaDataProvider",862),b(1006,1,ms,a8n),o.hf=function(e){rzn(e)};var yre,Tln,Cln,v0,Sln,Pln,oq,jre,Ere,Mre,Tre,Cre,Sre,Pre,Iln,Oln,Aln,Ire,A2,RO,Lln,Ore,Nln,sq,Are,Lre,Nre,Dln,Dre,Ph,$ln;w(Gy,"MrTreeOptions",1006),b(1007,1,{},g4n),o.sf=function(){var e;return e=new qSn,e},o.tf=function(e){},w(Gy,"MrTreeOptions/MrtreeFactory",1007),b(353,22,{3:1,34:1,22:1,353:1},mM);var fq,KO,hq,lq,xln=we(Gy,"OrderWeighting",353,ke,r3e,fbe),$re;b(433,22,{3:1,34:1,22:1,433:1},cX);var Rln,aq,Kln=we(Gy,"TreeifyingOrder",433,ke,Zge,hbe),xre;b(1486,1,vr,d8n),o.rg=function(e){return u(e,121),Rre},o.Kf=function(e,t){bve(this,u(e,121),t)};var Rre;w("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1486),b(1487,1,vr,b8n),o.rg=function(e){return u(e,121),Kre},o.Kf=function(e,t){ySe(this,u(e,121),t)};var Kre;w(Jm,"NodeOrderer",1487),b(1494,1,{},_se),o.td=function(e){return WPn(e)},w(Jm,"NodeOrderer/0methodref$lambda$6$Type",1494),b(1488,1,Le,L4n),o.Mb=function(e){return _p(),on(un(v(u(e,40),(pt(),Ta))))},w(Jm,"NodeOrderer/lambda$0$Type",1488),b(1489,1,Le,N4n),o.Mb=function(e){return _p(),u(v(u(e,40),(lc(),A2)),17).a<0},w(Jm,"NodeOrderer/lambda$1$Type",1489),b(1490,1,Le,kkn),o.Mb=function(e){return qme(this.a,u(e,40))},w(Jm,"NodeOrderer/lambda$2$Type",1490),b(1491,1,Le,vkn),o.Mb=function(e){return Rpe(this.a,u(e,40))},w(Jm,"NodeOrderer/lambda$3$Type",1491),b(1492,1,De,D4n),o.Ne=function(e,t){return ame(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Jm,"NodeOrderer/lambda$4$Type",1492),b(1493,1,Le,$4n),o.Mb=function(e){return _p(),u(v(u(e,40),(pt(),tq)),17).a!=0},w(Jm,"NodeOrderer/lambda$5$Type",1493),b(1495,1,vr,l8n),o.rg=function(e){return u(e,121),Bre},o.Kf=function(e,t){OPe(this,u(e,121),t)},o.b=0;var Bre;w("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495),b(1496,1,vr,h8n),o.rg=function(e){return u(e,121),Fre},o.Kf=function(e,t){lPe(u(e,121),t)};var Fre,SDe=w(po,"EdgeRouter",1496);b(1498,1,De,A4n),o.Ne=function(e,t){return jc(u(e,17).a,u(t,17).a)},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/0methodref$compare$Type",1498),b(1503,1,{},m4n),o.Ye=function(e){return $(B(e))},w(po,"EdgeRouter/1methodref$doubleValue$Type",1503),b(1505,1,De,v4n),o.Ne=function(e,t){return bt($(B(e)),$(B(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/2methodref$compare$Type",1505),b(1507,1,De,k4n),o.Ne=function(e,t){return bt($(B(e)),$(B(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/3methodref$compare$Type",1507),b(1509,1,{},p4n),o.Ye=function(e){return $(B(e))},w(po,"EdgeRouter/4methodref$doubleValue$Type",1509),b(1511,1,De,y4n),o.Ne=function(e,t){return bt($(B(e)),$(B(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/5methodref$compare$Type",1511),b(1513,1,De,j4n),o.Ne=function(e,t){return bt($(B(e)),$(B(t)))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/6methodref$compare$Type",1513),b(1497,1,{},E4n),o.Kb=function(e){return kl(),u(v(u(e,40),(lc(),Ph)),17)},w(po,"EdgeRouter/lambda$0$Type",1497),b(1508,1,{},M4n),o.Kb=function(e){return Q1e(u(e,40))},w(po,"EdgeRouter/lambda$11$Type",1508),b(1510,1,{},tTn),o.Kb=function(e){return T0e(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$13$Type",1510),b(1512,1,{},iTn),o.Kb=function(e){return Y1e(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$15$Type",1512),b(1514,1,De,T4n),o.Ne=function(e,t){return h9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$17$Type",1514),b(1515,1,De,C4n),o.Ne=function(e,t){return l9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$18$Type",1515),b(1516,1,De,S4n),o.Ne=function(e,t){return d9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$19$Type",1516),b(1499,1,Le,ykn),o.Mb=function(e){return b2e(this.a,u(e,40))},o.a=0,w(po,"EdgeRouter/lambda$2$Type",1499),b(1517,1,De,P4n),o.Ne=function(e,t){return a9e(u(e,65),u(t,65))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$20$Type",1517),b(1500,1,De,I4n),o.Ne=function(e,t){return l0e(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$3$Type",1500),b(1501,1,De,O4n),o.Ne=function(e,t){return a0e(u(e,40),u(t,40))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"EdgeRouter/lambda$4$Type",1501),b(1502,1,{},x4n),o.Kb=function(e){return Z1e(u(e,40))},w(po,"EdgeRouter/lambda$5$Type",1502),b(1504,1,{},rTn),o.Kb=function(e){return C0e(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$7$Type",1504),b(1506,1,{},cTn),o.Kb=function(e){return nae(this.b,this.a,u(e,40))},o.a=0,o.b=0,w(po,"EdgeRouter/lambda$9$Type",1506),b(675,1,{675:1},RBn),o.e=0,o.f=!1,o.g=!1,w(po,"MultiLevelEdgeNodeNodeGap",675),b(1943,1,De,R4n),o.Ne=function(e,t){return M2e(u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943),b(1944,1,De,K4n),o.Ne=function(e,t){return T2e(u(e,240),u(t,240))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(po,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944);var L2;b(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},uX),o.dg=function(){return EKn(this)},o.qg=function(){return EKn(this)};var BO,N2,Bln=we(Drn,"RadialLayoutPhases",501,ke,zge,lbe),_re;b(1113,205,yd,bEn),o.rf=function(e,t){var i,r,c,s,f,h;if(i=sqn(this,e),t.Ug("Radial layout",i.c.length),on(un(z(e,(oa(),Jln))))||X7((r=new Xv((cb(),new Qd(e))),r)),h=wye(e),ht(e,(Cg(),L2),h),!h)throw T(new Gn("The given graph is not a tree!"));for(c=$(B(z(e,HO))),c==0&&(c=H_n(e)),ht(e,HO,c),f=new M(sqn(this,e));f.a<f.c.c.length;)s=u(E(f),47),s.Kf(e,t.eh(1));t.Vg()},w(Drn,"RadialLayoutProvider",1113),b(556,1,De,XE),o.Ne=function(e,t){return QSe(this.a,this.b,u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},o.a=0,o.b=0,w(Drn,"RadialUtil/lambda$0$Type",556),b(1395,1,vt,B4n),o.Kf=function(e,t){HLe(u(e,27),t)},w(Rrn,"CalculateGraphSize",1395),b(1396,1,vt,F4n),o.Kf=function(e,t){hOe(u(e,27))},w(Rrn,"EdgeAngleCalculator",1396),b(368,22,{3:1,34:1,22:1,368:1,196:1},d7),o.dg=function(){switch(this.g){case 0:return new z4n;case 1:return new _4n;case 2:return new X4n;case 3:return new B4n;case 4:return new F4n;default:throw T(new Gn(cB+(this.f!=null?this.f:""+this.g)))}};var dq,bq,wq,gq,pq,Hre=we(Rrn,uB,368,ke,U3e,abe),qre;b(653,1,{}),o.e=1,o.g=0,w(UB,"AbstractRadiusExtensionCompaction",653),b(1834,653,{},fSn),o.Cg=function(e){var t,i,r,c,s,f,h,l,a;for(this.c=u(z(e,(Cg(),L2)),27),sfe(this,this.c),this.d=Sx(u(z(e,(oa(),Rj)),300)),l=u(z(e,vq),17),l&&i9n(this,l.a),h=B(z(e,(He(),qd))),pG(this,(Jn(h),h)),a=aw(this.c),this.d&&this.d.Gg(a),wPe(this,a),f=new Fu(S(C(Ye,1),vVn,27,0,[this.c])),i=0;i<2;i++)for(t=0;t<a.c.length;t++)c=new Fu(S(C(Ye,1),vVn,27,0,[(Nn(t,a.c.length),u(a.c[t],27))])),s=t<a.c.length-1?(Nn(t+1,a.c.length),u(a.c[t+1],27)):(Nn(0,a.c.length),u(a.c[0],27)),r=t==0?u(sn(a,a.c.length-1),27):(Nn(t-1,a.c.length),u(a.c[t-1],27)),BFn(this,(Nn(t,a.c.length),u(a.c[t],27),f),r,s,c)},w(UB,"AnnulusWedgeCompaction",1834),b(1393,1,vt,_4n),o.Kf=function(e,t){sve(u(e,27),t)},w(UB,"GeneralCompactor",1393),b(1833,653,{},H4n),o.Cg=function(e){var t,i,r,c;i=u(z(e,(Cg(),L2)),27),this.f=i,this.b=Sx(u(z(e,(oa(),Rj)),300)),c=u(z(e,vq),17),c&&i9n(this,c.a),r=B(z(e,(He(),qd))),pG(this,(Jn(r),r)),t=aw(i),this.b&&this.b.Gg(t),p_n(this,t)},o.a=0,w(UB,"RadialCompaction",1833),b(1842,1,{},q4n),o.Dg=function(e){var t,i,r,c,s,f;for(this.a=e,t=0,f=aw(e),r=0,s=new M(f);s.a<s.c.c.length;)for(c=u(E(s),27),++r,i=r;i<f.c.length;i++)AIe(this,c,(Nn(i,f.c.length),u(f.c[i],27)))&&(t+=1);return t},w(Krn,"CrossingMinimizationPosition",1842),b(1840,1,{},U4n),o.Dg=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m;for(r=0,i=new ie(ce(Sl(e).a.Kc(),new En));pe(i);)t=u(fe(i),74),h=Gr(u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),a=h.i+h.g/2,d=h.j+h.f/2,c=e.i+e.g/2,s=e.j+e.f/2,g=new Ni,g.a=a-c,g.b=d-s,f=new V(g.a,g.b),vm(f,e.g,e.f),g.a-=f.a,g.b-=f.b,c=a-g.a,s=d-g.b,l=new V(g.a,g.b),vm(l,h.g,h.f),g.a-=l.a,g.b-=l.b,a=c+g.a,d=s+g.b,p=a-c,m=d-s,r+=y.Math.sqrt(p*p+m*m);return r},w(Krn,"EdgeLengthOptimization",1840),b(1841,1,{},G4n),o.Dg=function(e){var t,i,r,c,s,f,h,l,a,d,g;for(r=0,i=new ie(ce(Sl(e).a.Kc(),new En));pe(i);)t=u(fe(i),74),h=Gr(u(N((!t.c&&(t.c=new Dn(he,t,5,8)),t.c),0),84)),l=h.i+h.g/2,a=h.j+h.f/2,c=u(z(h,(He(),D3)),8),s=e.i+c.a+e.g/2,f=e.j+c.b+e.f,d=l-s,g=a-f,r+=y.Math.sqrt(d*d+g*g);return r},w(Krn,"EdgeLengthPositionOptimization",1841),b(1392,653,vt,z4n),o.Kf=function(e,t){bEe(this,u(e,27),t)},w("org.eclipse.elk.alg.radial.intermediate.overlaps","RadiusExtensionOverlapRemoval",1392),b(1394,1,vt,X4n),o.Kf=function(e,t){swe(u(e,27),t)},w("org.eclipse.elk.alg.radial.intermediate.rotation","GeneralRotator",1394),b(434,22,{3:1,34:1,22:1,434:1},oX);var Fln,mq,_ln=we(l8,"AnnulusWedgeCriteria",434,ke,n2e,bbe),Ure;b(393,22,{3:1,34:1,22:1,393:1},tN);var FO,Hln,qln,Uln=we(l8,Btn,393,ke,rpe,dbe),Gre;b(863,1,ms,w8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Brn),""),"Center On Root"),"Centers the layout on the root of the tree i.e. so that the central node is also the center node of the final layout. This introduces additional whitespace."),(_n(),!1)),(l1(),yi)),Gt),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Frn),""),"Order ID"),"The id can be used to define an order for nodes of one radius. This can be used to sort them in the layer accordingly."),Y(0)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,_rn),""),"Radius"),"The radius option can be used to set the initial radius for the radial layouter."),0),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,NP),""),"Rotate"),"The rotate option determines whether a rotation of the layout should be performed."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,zB),""),kVn),"With the compacter option it can be determined how compaction on the graph is done. It can be chosen between none, the radial compaction or the compaction of wedges separately."),Gln),It),Uln),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,XB),""),"Compaction Step Size"),"Determine the size of steps with which the compaction is done. Step size 1 correlates to a compaction of 1 pixel per Iteration."),Y(1)),Zr),Gi),jn(xn)))),ri(e,XB,zB,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Hrn),""),"Sorter"),"Sort the nodes per radius according to the sorting algorithm. The strategies are none, by the given order id, or sorting them by polar coordinates."),Xln),It),s1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,qrn),""),"Annulus Wedge Criteria"),"Determine how the wedge for the node placement is calculated. It can be chosen between wedge determination by the number of leaves or by the maximum sum of diagonals."),Vln),It),_ln),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Urn),""),"Translation Optimization"),"Find the optimal translation of the nodes of the first radii according to this criteria. For example edge crossings can be minimized."),zln),It),c1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,VB),zrn),"Target Angle"),"The angle in radians that the layout should be rotated to after layout."),0),Qi),si),jn(xn)))),ri(e,VB,NP,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,WB),zrn),"Additional Wedge Space"),"If set to true, modifies the target angle by rotating further such that space is left for an edge to pass in between the nodes. This option should only be used in conjunction with top-down layout."),!1),yi),Gt),jn(xn)))),ri(e,WB,NP,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Grn),zrn),"Outgoing Edge Angles"),"Calculate the required angle of connected nodes to leave space for an incoming edge. This option should only be used in conjunction with top-down layout."),!1),yi),Gt),jn(xn)))),QGn((new g8n,e))};var zre,Xre,Vre,Gln,Wre,zln,Jre,Qre,Yre,Zre,nce,ece,tce,Xln,ice,Vln;w(l8,"RadialMetaDataProvider",863),b(1008,1,ms,g8n),o.hf=function(e){QGn(e)};var Wln,vq,kq,rce,cce,uce,oce,Jln,Qln,_O,sce,fce,HO,Yln,Zln,n1n,yq,Rj,hce,e1n;w(l8,"RadialOptions",1008),b(1009,1,{},V4n),o.sf=function(){var e;return e=new bEn,e},o.tf=function(e){},w(l8,"RadialOptions/RadialFactory",1009),b(354,22,{3:1,34:1,22:1,354:1},vM);var t1n,i1n,r1n,jq,c1n=we(l8,"RadialTranslationStrategy",354,ke,c3e,wbe),lce;b(300,22,{3:1,34:1,22:1,300:1},iN);var u1n,Eq,o1n,s1n=we(l8,"SortingStrategy",300,ke,cpe,gbe),ace;b(1476,1,vr,W4n),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){REe(this,u(e,27),t)},o.c=0,w("org.eclipse.elk.alg.radial.p1position","EadesRadial",1476),b(1838,1,{},J4n),o.Eg=function(e){return vBn(e)},w(yVn,"AnnulusWedgeByLeafs",1838),b(1839,1,{},Q4n),o.Eg=function(e){return AFn(this,e)},w(yVn,"AnnulusWedgeByNodeSpace",1839),b(1477,1,vr,Y4n),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){V5e(this,u(e,27),t)},w("org.eclipse.elk.alg.radial.p2routing","StraightLineEdgeRouter",1477),b(826,1,{},cz),o.Fg=function(e){},o.Gg=function(e){Oyn(this,e)},w(Xrn,"IDSorter",826),b(1837,1,De,Z4n),o.Ne=function(e,t){return fve(u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Xrn,"IDSorter/lambda$0$Type",1837),b(1836,1,{},Mxn),o.Fg=function(e){gLn(this,e)},o.Gg=function(e){var t;e.dc()||(this.e||(t=fIn(u(e.Xb(0),27)),gLn(this,t)),Oyn(this.e,e))},w(Xrn,"PolarCoordinateSorter",1836),b(445,22,{3:1,34:1,22:1,445:1},rN);var Kj,qO,Mq,f1n=we(TVn,"RectPackingLayoutPhases",445,ke,tpe,pbe),dce;b(1118,205,yd,gEn),o.rf=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;if(t.Ug("Rectangle Packing",1),g=u(z(e,(Bf(),h9)),107),l=on(un(z(e,$ce))),d=$(B(z(e,l9))),kn=on(un(z(e,y1n))),D=(!e.a&&(e.a=new q(Ye,e,10,11)),e.a),on(un(z(e,Aq)))||X7((c=new Xv((cb(),new Qd(e))),c)),yn=!1,kn&&D.i>=3)for(X=u(N(D,0),27),tn=u(N(D,1),27),s=0;s+2<D.i;)if(_=X,X=tn,tn=u(N(D,s+2),27),_.f>=X.f+tn.f+d||tn.f>=_.f+X.f+d){yn=!0;break}else++s;else yn=!0;if(!yn){for(p=D.i,h=new ne(D);h.e!=h.i.gc();)f=u(ue(h),27),ht(f,(He(),Jj),Y(p)),--p;KUn(e,new op),t.Vg();return}for(i=(H7(this.a),hf(this.a,(XC(),Kj),u(z(e,T1n),188)),hf(this.a,qO,u(z(e,v1n),188)),hf(this.a,Mq,u(z(e,j1n),188)),MX(this.a,(Rn=new ii,Fe(Rn,Kj,(rS(),Sq)),Fe(Rn,qO,Cq),on(un(z(e,p1n)))&&Fe(Rn,Kj,Tq),Rn)),gy(this.a,e)),a=1/i.c.length,k=new M(i);k.a<k.c.c.length;){if(m=u(E(k),47),t.$g())return;m.Kf(e,t.eh(a))}for(P=0,j=0,A=new ne(D);A.e!=A.i.gc();)O=u(ue(A),27),P=y.Math.max(P,O.i+O.g),j=y.Math.max(j,O.j+O.f);Enn(e,new V($(B(z(e,(_h(),A3)))),$(B(z(e,Dv)))),new V(P,j)),Lve(D,g),l||Gb(e,$(B(z(e,A3)))+(g.b+g.c),$(B(z(e,Dv)))+(g.d+g.a),!1,!0),on(un(z(e,Aq)))||X7((r=new Xv((cb(),new Qd(e))),r)),t.Vg()},w(TVn,"RectPackingLayoutProvider",1118),b(1518,1,vt,nmn),o.Kf=function(e,t){lOe(u(e,27),t)},w(DP,"InteractiveNodeReorderer",1518),b(1519,1,De,emn),o.Ne=function(e,t){return m6e(u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(DP,"InteractiveNodeReorderer/lambda$0$Type",1519),b(456,22,{3:1,34:1,22:1,456:1,196:1},cN),o.dg=function(){switch(this.g){case 0:return new nmn;case 1:return new imn;case 2:return new tmn}return null};var Tq,Cq,Sq,bce=we(DP,uB,456,ke,ipe,mbe),wce;b(1521,1,vt,tmn),o.Kf=function(e,t){L8e(u(e,27),t)},w(DP,"MinSizePostProcessor",1521),b(1520,1,vt,imn),o.Kf=function(e,t){O6e(u(e,27),t)},w(DP,"MinSizePreProcessor",1520);var s9,Dv,A3,gce,pce,UO,Pq,Iq,f9,GO,Xw;b(394,22,{3:1,34:1,22:1,394:1},uN);var h1n,l1n,Oq,a1n=we(JB,"OptimizationGoal",394,ke,epe,vbe),mce;b(867,1,ms,p8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Vrn),""),"Try box layout first"),"Whether one should check whether the regions are stackable to see whether box layout would do the job. For example, nodes with the same height are not stackable inside a row. Therefore, box layout will perform better and faster."),(_n(),!1)),(l1(),yi)),Gt),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Wrn),""),"Current position of a node in the order of nodes"),"The rectangles are ordered. Normally according to their definition the the model. This option specifies the current position of a node."),Y(-1)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Jrn),""),"Desired index of node"),"The rectangles are ordered. Normally according to their definition the the model. This option allows to specify a desired position that has preference over the original position."),Y(-1)),Zr),Gi),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Qrn),""),"In new Row"),"If set to true this node begins in a new row. Consequently this node cannot be moved in a previous layer during compaction. Width approximation does does not take this into account."),!1),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Yrn),QB),"Width Approximation Strategy"),"Strategy for finding an initial width of the drawing."),w1n),It),P1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Zrn),QB),"Target Width"),"Option to place the rectangles in the given target width instead of approximating the width using the desired aspect ratio. The padding is not included in this. Meaning a drawing will have width of targetwidth + horizontal padding."),-1),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ncn),QB),"Optimization Goal"),"Optimization goal for approximation of the bounding box given by the first iteration. Determines whether layout is sorted by the maximum scaling, aspect ratio, or area. Depending on the strategy the aspect ratio might be nearly ignored."),b1n),It),a1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ecn),QB),"Shift Last Placed."),"When placing a rectangle behind or below the last placed rectangle in the first iteration, it is sometimes possible to shift the rectangle further to the left or right, resulting in less whitespace. True (default) enables the shift and false disables it. Disabling the shift produces a greater approximated area by the first iteration and a layout, when using ONLY the first iteration (default not the case), where it is sometimes impossible to implement a size transformation of rectangles that will fill the bounding box and eliminate empty spaces."),!0),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,tcn),"packing"),CVn),"Strategy for finding an initial placement on nodes."),d1n),It),A1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,icn),SVn),"Row Height Reevaluation"),"During the compaction step the height of a row is normally not changed. If this options is set, the blocks of other rows might be added if they exceed the row height. If this is the case the whole row has to be packed again to be optimal regarding the new row height. This option should, therefore, be used with care since it might be computation heavy."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,rcn),SVn),"Compaction iterations"),"Defines the number of compaction iterations. E.g. if set to 2 the width is initially approximated, then the drawing is compacted and based on the resulting drawing the target width is decreased or increased and a second compaction step is executed and the result compared to the first one. The best run is used based on the scale measure."),Y(1)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,ccn),"whiteSpaceElimination"),"White Space Approximation Strategy"),"Strategy for expanding nodes such that whitespace in the parent is eliminated."),It),D1n),jn(xn)))),bzn((new m8n,e))};var vce,kce,yce,jce,Ece,Mce,d1n,Tce,Cce,Sce,Pce,b1n,Ice,w1n,Oce;w(JB,"RectPackingMetaDataProvider",867),b(1016,1,ms,m8n),o.hf=function(e){bzn(e)};var zO,Ace,g1n,Bj,p1n,Lce,Fj,Nce,Dce,$ce,xce,Rce,Aq,m1n,Lq,v1n,h9,k1n,Kce,l9,y1n,j1n,E1n,M1n,T1n,Nq;w(JB,"RectPackingOptions",1016),b(1017,1,{},rmn),o.sf=function(){var e;return e=new gEn,e},o.tf=function(e){},w(JB,"RectPackingOptions/RectpackingFactory",1017),b(1705,1,{},vPn),o.a=0,o.c=!1,w(Qm,"AreaApproximation",1705);var C1n=Dt(Qm,"BestCandidateFilter");b(673,1,{535:1},KA),o.Hg=function(e,t,i){var r,c,s,f,h,l;for(l=new Z,s=Pt,h=new M(e);h.a<h.c.c.length;)f=u(E(h),238),s=y.Math.min(s,(f.c+(i.b+i.c))*(f.b+(i.d+i.a)));for(c=new M(e);c.a<c.c.c.length;)r=u(E(c),238),(r.c+(i.b+i.c))*(r.b+(i.d+i.a))==s&&Fn(l.c,r);return l},w(Qm,"AreaFilter",673),b(674,1,{535:1},BA),o.Hg=function(e,t,i){var r,c,s,f,h,l;for(h=new Z,l=Pt,f=new M(e);f.a<f.c.c.length;)s=u(E(f),238),l=y.Math.min(l,y.Math.abs((s.c+(i.b+i.c))/(s.b+(i.d+i.a))-t));for(c=new M(e);c.a<c.c.c.length;)r=u(E(c),238),y.Math.abs((r.c+(i.b+i.c))/(r.b+(i.d+i.a))-t)==l&&Fn(h.c,r);return h},w(Qm,"AspectRatioFilter",674),b(1469,1,vr,cmn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){YCe(u(e,27),t)},w(Qm,"GreedyWidthApproximator",1469),b(672,1,{535:1},FA),o.Hg=function(e,t,i){var r,c,s,f,h,l;for(l=new Z,s=li,h=new M(e);h.a<h.c.c.length;)f=u(E(h),238),s=y.Math.max(s,cT(f.c+(i.b+i.c),f.b+(i.d+i.a),f.a));for(c=new M(e);c.a<c.c.c.length;)r=u(E(c),238),cT(r.c+(i.b+i.c),r.b+(i.d+i.a),r.a)==s&&Fn(l.c,r);return l},w(Qm,"ScaleMeasureFilter",672),b(1470,1,vr,umn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){KEe(u(e,27),t)},w(Qm,"TargetWidthWidthApproximator",1470),b(491,22,{3:1,34:1,22:1,491:1,188:1,196:1},sX),o.dg=function(){return FFn(this)},o.qg=function(){return FFn(this)};var Dq,S1n,P1n=we(Qm,"WidthApproximationStrategy",491,ke,Qge,kbe),Bce;b(1471,1,vr,omn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){YLe(this,u(e,27),t)},w($P,"Compactor",1471),b(1473,1,vr,smn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){OCe(u(e,27),t)},w($P,"NoPlacement",1473),b(439,22,{3:1,34:1,22:1,439:1,188:1,196:1},oN),o.dg=function(){return nKn(this)},o.qg=function(){return nKn(this)};var $q,I1n,O1n,A1n=we($P,"PackingStrategy",439,ke,npe,Ebe),Fce;b(810,1,{},aX),o.a=0,o.b=0,o.c=0,o.d=Pt,o.e=0,o.f=Pt,w($P,"RowFillingAndCompaction",810),b(1472,1,vr,fmn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){bAe(u(e,27),t)},w($P,"SimplePlacement",1472),b(1474,1,vr,hmn),o.rg=function(e){return u(e,27),null},o.Kf=function(e,t){this.Ig(u(e,27),t)},o.Ig=function(e,t){NHn(e,t)},w(ucn,"EqualWhitespaceEliminator",1474),b(1475,1474,vr,lmn),o.Ig=function(e,t){var i,r,c,s,f;t.Ug("To Aspect Ratio Whitesapce Eliminator",1),f=$(B(z(e,(_h(),A3)))),s=$(B(z(e,Dv))),c=$(B(z(e,(Bf(),zO)))),i=$(B(z(e,s9))),r=f/s,r<c?(f=s*c,ht(e,A3,f)):(i+=f/c-s,ht(e,s9,i),ht(e,Dv,s+i)),NHn(e,t),t.Vg()},w(ucn,"ToAspectratioNodeExpander",1475),b(492,22,{3:1,34:1,22:1,492:1,188:1,196:1},fX),o.dg=function(){return Pxn(this)},o.qg=function(){return Pxn(this)};var L1n,N1n,D1n=we(ucn,"WhiteSpaceEliminationStrategy",492,ke,Yge,Mbe),_ce;b(172,1,{172:1},U$),o.a=0,o.c=!1,o.d=0,o.e=0,o.f=0,o.g=0,o.i=0,o.k=!1,o.o=Pt,o.p=Pt,o.r=0,o.s=0,o.t=0,w(zy,"Block",172),b(209,1,{209:1},DT),o.a=0,o.b=0,o.d=0,o.e=0,o.f=0,w(zy,"BlockRow",209),b(315,1,{315:1},tJ),o.b=0,o.c=0,o.d=0,o.e=0,o.f=0,w(zy,"BlockStack",315),b(238,1,{238:1},tW,tZ),o.a=0,o.b=0,o.c=0,o.d=0,o.e=0,o.g=0;var PDe=w(zy,"DrawingData",238);b(373,22,{3:1,34:1,22:1,373:1},b7);var L3,D2,a9,d9,_j,Hce=we(zy,"DrawingDataDescriptor",373,ke,G3e,Tbe),qce;b(186,1,{186:1},aJ),o.b=0,o.c=0,o.e=0,o.f=0,w(zy,"RectRow",186),b(763,1,{},dY),o.j=0,w(Ew,KXn,763),b(1209,1,{},amn),o.af=function(e){return J1(e.a,e.b)},w(Ew,Gtn,1209),b(1210,1,{},jkn),o.af=function(e){return e4e(this.a,e)},w(Ew,BXn,1210),b(1211,1,{},Ekn),o.af=function(e){return y9e(this.a,e)},w(Ew,FXn,1211),b(1212,1,{},Mkn),o.af=function(e){return c6e(this.a,e)},w(Ew,"ElkGraphImporter/lambda$3$Type",1212),b(1213,1,{},Tkn),o.af=function(e){return oMe(this.a,e)},w(Ew,_Xn,1213),b(1115,205,yd,pEn),o.rf=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m;for(Nf(e,(Wk(),QO))&&(m=Ae(z(e,(Lx(),ean))),s=CR(z4(),m),s&&(f=u(z7(s.f),205),f.rf(e,t.eh(1)))),ht(e,Hq,(ik(),JO)),ht(e,qq,(Jk(),_q)),ht(e,Uq,(Tk(),YO)),h=u(z(e,(Lx(),Y1n)),17).a,t.Ug("Overlap removal",1),on(un(z(e,fue))),l=new ni,a=new Ckn(l),r=new dY,i=wzn(r,e),d=!0,c=0;c<h&&d;){if(on(un(z(e,Z1n)))){if(l.a.$b(),Yje(new yCn(a),i.i),l.a.gc()==0)break;i.e=l}for(H7(this.b),hf(this.b,($k(),XO),(s6(),Hj)),hf(this.b,VO,i.g),hf(this.b,WO,(tM(),Kq)),this.a=gy(this.b,i),p=new M(this.a);p.a<p.c.c.length;)g=u(E(p),47),g.Kf(i,t.eh(1));wke(r,i),d=on(un(v(i,(J4(),uon)))),++c}PGn(r,i),t.Vg()},w(Ew,"OverlapRemovalLayoutProvider",1115),b(1116,1,{},Ckn),w(Ew,"OverlapRemovalLayoutProvider/lambda$0$Type",1116),b(444,22,{3:1,34:1,22:1,444:1},sN);var XO,VO,WO,xq=we(Ew,"SPOrEPhases",444,ke,ope,Sbe),Uce;b(1219,1,{},mEn),w(Ew,"ShrinkTree",1219),b(1117,205,yd,kjn),o.rf=function(e,t){var i,r,c,s,f;Nf(e,(Wk(),QO))&&(f=Ae(z(e,QO)),c=CR(z4(),f),c&&(s=u(z7(c.f),205),s.rf(e,t.eh(1)))),r=new dY,i=wzn(r,e),LTe(this.a,i,t.eh(1)),PGn(r,i)},w(Ew,"ShrinkTreeLayoutProvider",1117),b(306,137,{3:1,306:1,96:1,137:1},sAn),o.c=!1,w("org.eclipse.elk.alg.spore.graph","Graph",306),b(490,22,{3:1,34:1,22:1,490:1,188:1,196:1},bMn),o.dg=function(){return ERn(this)},o.qg=function(){return ERn(this)};var Rq,$1n=we(Mw,Btn,490,ke,ege,Cbe),Gce;b(558,22,{3:1,34:1,22:1,558:1,188:1,196:1},dSn),o.dg=function(){return new YU},o.qg=function(){return new YU};var Kq,zce=we(Mw,"OverlapRemovalStrategy",558,ke,tge,Pbe),Xce;b(438,22,{3:1,34:1,22:1,438:1},hX);var JO,Bq,x1n=we(Mw,"RootSelection",438,ke,t2e,Ibe),Vce;b(324,22,{3:1,34:1,22:1,324:1},w7);var R1n,Fq,_q,K1n,B1n,F1n=we(Mw,"SpanningTreeCostFunction",324,ke,z3e,Obe),Wce;b(1014,1,ms,v8n),o.hf=function(e){rGn(e)};var _1n,H1n,Jce,Qce,q1n,U1n,Hq,qq,Uq,Yce,Zce,QO;w(Mw,"SporeCompactionOptions",1014),b(1015,1,{},dmn),o.sf=function(){var e;return e=new kjn,e},o.tf=function(e){},w(Mw,"SporeCompactionOptions/SporeCompactionFactory",1015),b(866,1,ms,k8n),o.hf=function(e){vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,YB),""),"Underlying Layout Algorithm"),"A layout algorithm that is applied to the graph before it is compacted. If this is null, nothing is applied before compaction."),(l1(),$2)),fn),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,eF),"structure"),"Structure Extraction Strategy"),"This option defines what kind of triangulation or other partitioning of the plane is applied to the vertices."),J1n),It),tan),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ocn),tF),"Tree Construction Strategy"),"Whether a minimum spanning tree or a maximum spanning tree should be constructed."),V1n),It),ran),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,scn),tF),"Cost Function for Spanning Tree"),"The cost function is used in the creation of the spanning tree."),X1n),It),F1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ZB),tF),"Root node for spanning tree construction"),"The identifier of the node that is preferred as the root of the spanning tree. If this is null, the first node is chosen."),null),$2),fn),jn(xn)))),ri(e,ZB,nF,cue),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,nF),tF),"Root selection for spanning tree"),"This sets the method used to select a root node for the construction of a spanning tree"),z1n),It),x1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,fcn),Fin),CVn),"This option defines how the compaction is applied."),G1n),It),$1n),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,hcn),Fin),"Orthogonal Compaction"),"Restricts the translation of nodes to orthogonal directions in the compaction phase."),(_n(),!1)),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,lcn),IVn),"Upper limit for iterations of overlap removal"),null),Y(64)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,acn),IVn),"Whether to run a supplementary scanline overlap check."),null),!0),yi),Gt),jn(xn)))),oUn((new y8n,e)),rGn((new v8n,e))};var nue,G1n,eue,tue,iue,rue,cue,uue,z1n,oue,X1n,sue,V1n,W1n,J1n,Q1n;w(Mw,"SporeMetaDataProvider",866),b(1012,1,ms,y8n),o.hf=function(e){oUn(e)};var fue,Y1n,Z1n,nan,hue,ean;w(Mw,"SporeOverlapRemovalOptions",1012),b(1013,1,{},bmn),o.sf=function(){var e;return e=new pEn,e},o.tf=function(e){},w(Mw,"SporeOverlapRemovalOptions/SporeOverlapFactory",1013),b(539,22,{3:1,34:1,22:1,539:1,188:1,196:1},bOn),o.dg=function(){return MRn(this)},o.qg=function(){return MRn(this)};var Hj,tan=we(Mw,"StructureExtractionStrategy",539,ke,ige,Abe),lue;b(437,22,{3:1,34:1,22:1,437:1,188:1,196:1},lX),o.dg=function(){return MKn(this)},o.qg=function(){return MKn(this)};var ian,YO,ran=we(Mw,"TreeConstructionStrategy",437,ke,i2e,Lbe),aue;b(1463,1,vr,wmn),o.rg=function(e){return u(e,306),new ii},o.Kf=function(e,t){vke(u(e,306),t)},w(OVn,"DelaunayTriangulationPhase",1463),b(1464,1,re,Skn),o.Cd=function(e){nn(this.a,u(e,68).a)},w(OVn,"DelaunayTriangulationPhase/lambda$0$Type",1464),b(794,1,vr,rz),o.rg=function(e){return u(e,306),new ii},o.Kf=function(e,t){this.Jg(u(e,306),t)},o.Jg=function(e,t){var i,r,c;t.Ug("Minimum spanning tree construction",1),e.d?r=e.d.a:r=u(sn(e.i,0),68).a,on(un(v(e,(J4(),A8))))?c=GR(e.e,r,(i=e.b,i)):c=GR(e.e,r,e.b),uRn(this,c,e),t.Vg()},w(iF,"MinSTPhase",794),b(1466,794,vr,cjn),o.Jg=function(e,t){var i,r,c,s;t.Ug("Maximum spanning tree construction",1),i=new Pkn(e),e.d?c=e.d.c:c=u(sn(e.i,0),68).c,on(un(v(e,(J4(),A8))))?s=GR(e.e,c,(r=i,r)):s=GR(e.e,c,i),uRn(this,s,e),t.Vg()},w(iF,"MaxSTPhase",1466),b(1467,1,{},Pkn),o.af=function(e){return gle(this.a,e)},w(iF,"MaxSTPhase/lambda$0$Type",1467),b(1465,1,re,Ikn),o.Cd=function(e){s1e(this.a,u(e,68))},w(iF,"MinSTPhase/lambda$0$Type",1465),b(796,1,vr,YU),o.rg=function(e){return u(e,306),new ii},o.Kf=function(e,t){Dye(this,u(e,306),t)},o.a=!1,w(rF,"GrowTreePhase",796),b(797,1,re,xV),o.Cd=function(e){Jve(this.a,this.b,this.c,u(e,225))},w(rF,"GrowTreePhase/lambda$0$Type",797),b(1468,1,vr,gmn),o.rg=function(e){return u(e,306),new ii},o.Kf=function(e,t){H9e(this,u(e,306),t)},w(rF,"ShrinkTreeCompactionPhase",1468),b(795,1,re,RV),o.Cd=function(e){IMe(this.a,this.b,this.c,u(e,225))},w(rF,"ShrinkTreeCompactionPhase/lambda$0$Type",795);var can=Dt(dc,"IGraphElementVisitor");b(872,1,{536:1},XAn),o.Kg=function(e){var t;t=xSe(this,e),Ur(t,u(ee(this.b,e),96)),ATe(this,e,t)};var due,bue;w(e2,"LayoutConfigurator",872);var IDe=Dt(e2,"LayoutConfigurator/IPropertyHolderOptionFilter");b(944,1,{2032:1},pmn),o.Lg=function(e,t){return qp(),!e.pf(t)},w(e2,"LayoutConfigurator/lambda$0$Type",944),b(943,1,{845:1},mmn),o.Mg=function(e,t){return qp(),!e.pf(t)},w(e2,"LayoutConfigurator/lambda$1$Type",943),b(945,1,{2032:1},Hse),o.Lg=function(e,t){return vEn(e,t)},w(e2,"LayoutConfigurator/lambda$2$Type",945),b(946,1,Le,uTn),o.Mb=function(e){return Gwe(this.a,this.b,u(e,2032))},w(e2,"LayoutConfigurator/lambda$3$Type",946),b(869,1,{},vmn),w(e2,"RecursiveGraphLayoutEngine",869),b(224,63,Il,xyn,_l),w(e2,"UnsupportedConfigurationException",224),b(370,63,Il,hp),w(e2,"UnsupportedGraphException",370),b(761,1,{}),w(dc,"AbstractRandomListAccessor",761),b(450,761,{},R5),o.Ng=function(){return null},o.d=!0,o.e=!0,o.f=0,w(Zm,"AlgorithmAssembler",450),b(1200,1,Le,kmn),o.Mb=function(e){return!!u(e,106)},w(Zm,"AlgorithmAssembler/lambda$0$Type",1200),b(1201,1,{},Okn),o.Kb=function(e){return Ahe(this.a,u(e,106))},w(Zm,"AlgorithmAssembler/lambda$1$Type",1201),b(1202,1,Le,ymn),o.Mb=function(e){return!!u(e,80)},w(Zm,"AlgorithmAssembler/lambda$2$Type",1202),b(1203,1,re,Akn),o.Cd=function(e){To(this.a,u(e,80))},w(Zm,"AlgorithmAssembler/lambda$3$Type",1203),b(1204,1,re,oTn),o.Cd=function(e){tae(this.a,this.b,u(e,196))},w(Zm,"AlgorithmAssembler/lambda$4$Type",1204),b(1343,1,De,jmn),o.Ne=function(e,t){return Sge(u(e,196),u(t,196))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Zm,"EnumBasedFactoryComparator",1343),b(80,761,{80:1},ii),o.Ng=function(){return new ni},o.a=0,w(Zm,"LayoutProcessorConfiguration",80),b(1025,1,{536:1},j8n),o.Kg=function(e){f5(gue,new Lkn(e))};var wue,gue,pue;w(oc,"DeprecatedLayoutOptionReplacer",1025),b(1026,1,re,Emn),o.Cd=function(e){R4e(u(e,167))},w(oc,"DeprecatedLayoutOptionReplacer/lambda$0$Type",1026),b(1027,1,re,Mmn),o.Cd=function(e){j8e(u(e,167))},w(oc,"DeprecatedLayoutOptionReplacer/lambda$1$Type",1027),b(1028,1,{},Lkn),o.Yd=function(e,t){eae(this.a,u(e,149),u(t,41))},w(oc,"DeprecatedLayoutOptionReplacer/lambda$2$Type",1028),b(143,1,{701:1,143:1},gd),o.Fb=function(e){return IJ(this,e)},o.Og=function(){return this.b},o.Pg=function(){return this.c},o.xe=function(){return this.e},o.Hb=function(){return t1(this.c)},o.Ib=function(){return"Layout Algorithm: "+this.c};var ODe=w(oc,"LayoutAlgorithmData",143);b(269,1,{},Fa),w(oc,"LayoutAlgorithmData/Builder",269),b(1029,1,{536:1},Cmn),o.Kg=function(e){L(e,207)&&!on(un(e.of((He(),tA))))&&TIe(u(e,27))},w(oc,"LayoutAlgorithmResolver",1029),b(233,1,{701:1,233:1},Dp),o.Fb=function(e){return L(e,233)?Sn(this.b,u(e,233).b):!1},o.Og=function(){return this.a},o.Pg=function(){return this.b},o.xe=function(){return this.d},o.Hb=function(){return t1(this.b)},o.Ib=function(){return"Layout Type: "+this.b},w(oc,"LayoutCategoryData",233),b(357,1,{},tp),w(oc,"LayoutCategoryData/Builder",357),b(879,1,{},Jqn);var Gq;w(oc,"LayoutMetaDataService",879),b(880,1,{},YIn),w(oc,"LayoutMetaDataService/Registry",880),b(487,1,{487:1},ZU),w(oc,"LayoutMetaDataService/Registry/Triple",487),b(881,1,u2,Tmn),o.Qg=function(){return new Ni},w(oc,"LayoutMetaDataService/lambda$0$Type",881),b(882,1,Tw,Smn),o.Rg=function(e){return Fi(u(e,8))},w(oc,"LayoutMetaDataService/lambda$1$Type",882),b(891,1,u2,Pmn),o.Qg=function(){return new Z},w(oc,"LayoutMetaDataService/lambda$10$Type",891),b(892,1,Tw,Imn),o.Rg=function(e){return new _u(u(e,13))},w(oc,"LayoutMetaDataService/lambda$11$Type",892),b(893,1,u2,Omn),o.Qg=function(){return new Mt},w(oc,"LayoutMetaDataService/lambda$12$Type",893),b(894,1,Tw,Amn),o.Rg=function(e){return $7(u(e,67))},w(oc,"LayoutMetaDataService/lambda$13$Type",894),b(895,1,u2,Lmn),o.Qg=function(){return new ni},w(oc,"LayoutMetaDataService/lambda$14$Type",895),b(896,1,Tw,Nmn),o.Rg=function(e){return PT(u(e,49))},w(oc,"LayoutMetaDataService/lambda$15$Type",896),b(897,1,u2,Dmn),o.Qg=function(){return new rh},w(oc,"LayoutMetaDataService/lambda$16$Type",897),b(898,1,Tw,$mn),o.Rg=function(e){return HT(u(e,49))},w(oc,"LayoutMetaDataService/lambda$17$Type",898),b(899,1,u2,xmn),o.Qg=function(){return new UG},w(oc,"LayoutMetaDataService/lambda$18$Type",899),b(900,1,Tw,Rmn),o.Rg=function(e){return SPn(u(e,157))},w(oc,"LayoutMetaDataService/lambda$19$Type",900),b(883,1,u2,Kmn),o.Qg=function(){return new Tu},w(oc,"LayoutMetaDataService/lambda$2$Type",883),b(884,1,Tw,Bmn),o.Rg=function(e){return new GE(u(e,75))},w(oc,"LayoutMetaDataService/lambda$3$Type",884),b(885,1,u2,Fmn),o.Qg=function(){return new Qv},w(oc,"LayoutMetaDataService/lambda$4$Type",885),b(886,1,Tw,_mn),o.Rg=function(e){return new qN(u(e,140))},w(oc,"LayoutMetaDataService/lambda$5$Type",886),b(887,1,u2,Hmn),o.Qg=function(){return new up},w(oc,"LayoutMetaDataService/lambda$6$Type",887),b(888,1,Tw,qmn),o.Rg=function(e){return new _V(u(e,107))},w(oc,"LayoutMetaDataService/lambda$7$Type",888),b(889,1,u2,Umn),o.Qg=function(){return new _A},w(oc,"LayoutMetaDataService/lambda$8$Type",889),b(890,1,Tw,Gmn),o.Rg=function(e){return new JDn(u(e,385))},w(oc,"LayoutMetaDataService/lambda$9$Type",890);var zq=Dt(Ly,"IProperty");b(23,1,{34:1,701:1,23:1,149:1},ln),o.Fd=function(e){return j1e(this,u(e,149))},o.Fb=function(e){return L(e,23)?Sn(this.f,u(e,23).f):L(e,149)&&Sn(this.f,u(e,149).Pg())},o.Sg=function(){var e;if(L(this.b,4)){if(e=rZ(this.b),e==null)throw T(new Ar(DVn+this.f+"'. Make sure it's type is registered with the "+(ll(lE),lE.k)+dcn));return e}else return this.b},o.Og=function(){return this.d},o.Pg=function(){return this.f},o.xe=function(){return this.i},o.Hb=function(){return t1(this.f)},o.Ib=function(){return"Layout Option: "+this.f},w(oc,"LayoutOptionData",23),b(24,1,{},hn),w(oc,"LayoutOptionData/Builder",24),b(170,22,{3:1,34:1,22:1,170:1},g7);var Ih,E1,pi,xn,Fd,Zh=we(oc,"LayoutOptionData/Target",170,ke,X3e,Nbe),mue;b(285,22,{3:1,34:1,22:1,285:1},wp);var yi,Qi,It,N3,Zr,Vf,$2,uan,vue=we(oc,"LayoutOptionData/Type",285,ke,bme,Dbe),kue,b9,oan;b(116,1,{116:1},mp,Ho,IT),o.Fb=function(e){var t;return e==null||!L(e,116)?!1:(t=u(e,116),mc(this.c,t.c)&&mc(this.d,t.d)&&mc(this.b,t.b)&&mc(this.a,t.a))},o.Hb=function(){return Ok(S(C(ki,1),Kn,1,5,[this.c,this.d,this.b,this.a]))},o.Ib=function(){return"Rect[x="+this.c+",y="+this.d+",w="+this.b+",h="+this.a+"]"},o.a=0,o.b=0,o.c=0,o.d=0,w(Fy,"ElkRectangle",116),b(8,1,{3:1,4:1,8:1,423:1},Ni,KD,V,rr),o.Fb=function(e){return fxn(this,e)},o.Hb=function(){return pp(this.a)+k7e(pp(this.b))},o.cg=function(e){var t,i,r,c;for(r=0;r<e.length&&XRn((zn(r,e.length),e.charCodeAt(r)),NXn);)++r;for(t=e.length;t>0&&XRn((zn(t-1,e.length),e.charCodeAt(t-1)),DXn);)--t;if(r>=t)throw T(new Gn("The given string does not contain any numbers."));if(c=ww((Ri(r,t,e.length),e.substr(r,t-r)),`,|;|\r|
`),c.length!=2)throw T(new Gn("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=sw(fw(c[0])),this.b=sw(fw(c[1]))}catch(s){throw s=Ot(s),L(s,130)?(i=s,T(new Gn($Xn+i))):T(s)}},o.Ib=function(){return"("+this.a+","+this.b+")"},o.a=0,o.b=0;var Ei=w(Fy,"KVector",8);b(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},Tu,GE,aSn),o.Pc=function(){return A6e(this)},o.cg=function(e){var t,i,r,c,s,f;r=ww(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
`),vo(this);try{for(i=0,s=0,c=0,f=0;i<r.length;)r[i]!=null&&fw(r[i]).length>0&&(s%2==0?c=sw(r[i]):f=sw(r[i]),s>0&&s%2!=0&&Re(this,new V(c,f)),++s),++i}catch(h){throw h=Ot(h),L(h,130)?(t=h,T(new Gn("The given string does not match the expected format for vectors."+t))):T(h)}},o.Ib=function(){var e,t,i;for(e=new mo("("),t=ge(this,0);t.b!=t.d.c;)i=u(be(t),8),Be(e,i.a+","+i.b),t.b!=t.d.c&&(e.a+="; ");return(e.a+=")",e).a};var san=w(Fy,"KVectorChain",75);b(255,22,{3:1,34:1,22:1,255:1},v6);var Xq,ZO,nA,qj,Uj,eA,fan=we(uo,"Alignment",255,ke,P4e,$be),yue;b(991,1,ms,E8n),o.hf=function(e){yUn(e)};var han,Vq,jue,lan,aan,Eue,dan,Mue,Tue,ban,wan,Cue;w(uo,"BoxLayouterOptions",991),b(992,1,{},zmn),o.sf=function(){var e;return e=new Wmn,e},o.tf=function(e){},w(uo,"BoxLayouterOptions/BoxFactory",992),b(298,22,{3:1,34:1,22:1,298:1},k6);var w9,Wq,g9,p9,m9,Jq,Qq=we(uo,"ContentAlignment",298,ke,I4e,xbe),Sue;b(699,1,ms,rG),o.hf=function(e){vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,xVn),""),"Layout Algorithm"),"Select a specific layout algorithm."),(l1(),$2)),fn),jn((pf(),xn))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,RVn),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),Vf),ODe),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,irn),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),gan),It),fan),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,l3),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,gcn),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),Vf),san),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,TP),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),man),N3),Qq),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Uy),""),"Debug Mode"),"Whether additional debug information shall be generated."),(_n(),!1)),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,xB),""),Rtn),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),van),It),y9),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,qy),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),jan),It),lU),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,bcn),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,MP),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),Tan),It),ldn),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Wb),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),Dan),Vf),$on),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,i8),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,SP),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,r8),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,tB),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),Ban),It),bdn),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,CP),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),Vf),Ei),yt(pi,S(C(Zh,1),G,170,0,[Fd,E1]))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Dy),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Zr),Gi),yt(pi,S(C(Zh,1),G,170,0,[Ih]))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,uP),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,t8),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,brn),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),Can),Vf),san),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,prn),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,mrn),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,iDe),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),Vf),$De),yt(xn,S(C(Zh,1),G,170,0,[E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,krn),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),San),Vf),Don),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,ern),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),yi),Gt),yt(pi,S(C(Zh,1),G,170,0,[Ih,Fd,E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,KVn),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),Qi),si),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,BVn),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,FVn),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,$y),""),AVn),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),yi),Gt),jn(xn)))),ri(e,$y,Jb,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,_Vn),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,HVn),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Y(100)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,qVn),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,UVn),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Y(4e3)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,GVn),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Y(400)),Zr),Gi),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,zVn),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,XVn),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,VVn),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,WVn),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,wcn),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),pan),It),Mdn),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Uin),qf),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Gin),qf),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,WK),qf),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,zin),qf),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,eB),qf),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,$B),qf),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Xin),qf),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Jin),qf),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Vin),qf),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Win),qf),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,yw),qf),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Qin),qf),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Qi),si),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Yin),qf),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Qi),si),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,Zin),qf),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),Vf),boe),yt(pi,S(C(Zh,1),G,170,0,[Ih,Fd,E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,yrn),qf),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),Jan),Vf),Don),jn(xn)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,KB),YVn),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),Zr),Gi),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),ri(e,KB,RB,xue),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,RB),YVn),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),$an),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,urn),ZVn),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),Ian),Vf),$on),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Xm),ZVn),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),Oan),N3),yr),yt(pi,S(C(Zh,1),G,170,0,[E1]))))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,frn),RP),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),Ran),It),T9),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,hrn),RP),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),It),T9),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,lrn),RP),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),It),T9),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,arn),RP),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),It),T9),jn(pi)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,drn),RP),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),It),T9),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,r2),uF),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),Aan),N3),P9),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,a3),uF),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),Nan),N3),gdn),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,d3),uF),"Node Size Minimum"),"The minimal size to which a node can be reduced."),Lan),Vf),Ei),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,zm),uF),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),yi),Gt),jn(xn)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,wrn),DB),"Edge Label Placement"),"Gives a hint on where to put edge labels."),kan),It),Zan),jn(E1)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,oP),DB),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),yi),Gt),jn(E1)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,rDe),"font"),"Font Name"),"Font name used for a label."),$2),fn),jn(E1)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,JVn),"font"),"Font Size"),"Font size used for a label."),Zr),Gi),jn(E1)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,vrn),oF),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),Vf),Ei),jn(Fd)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,grn),oF),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),Zr),Gi),jn(Fd)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,trn),oF),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),Han),It),lr),jn(Fd)))),vn(e,new ln(pn(gn(mn(an(wn(dn(bn(new hn,nrn),oF),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),Qi),si),jn(Fd)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Vm),vcn),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),Fan),N3),oA),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,orn),vcn),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,srn),vcn),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,xy),Xy),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),Qi),si),jn(xn)))),ri(e,xy,Jb,Uue),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,pcn),Xy),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),It),dA),jn(pi)))),ri(e,pcn,Jb,Gue),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ry),Xy),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),Qi),si),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),ri(e,Ry,Jb,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Ky),Xy),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),Qi),si),yt(xn,S(C(Zh,1),G,170,0,[pi]))))),ri(e,Ky,Jb,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,Jb),Xy),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),It),mdn),jn(pi)))),ri(e,Jb,zm,null),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,mcn),Xy),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),Qi),si),jn(xn)))),ri(e,mcn,Jb,que),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,rrn),nWn),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),yi),Gt),jn(pi)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,crn),nWn),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),yi),Gt),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,JK),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),Qi),si),jn(Ih)))),vn(e,new ln(pn(gn(mn(Pn(an(wn(dn(bn(new hn,QVn),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),Man),It),cdn),jn(Ih)))),f6(e,new Dp(r6(u4(c4(new tp,Yn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),f6(e,new Dp(r6(u4(c4(new tp,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),f6(e,new Dp(r6(u4(c4(new tp,cu),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),f6(e,new Dp(r6(u4(c4(new tp,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),f6(e,new Dp(r6(u4(c4(new tp,gVn),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),f6(e,new Dp(r6(u4(c4(new tp,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),f6(e,new Dp(r6(u4(c4(new tp,es),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),uUn((new M8n,e)),yUn((new E8n,e)),Dqn((new T8n,e))};var $v,Pue,gan,x2,Iue,Oue,pan,R2,K2,Aue,Gj,man,zj,_d,van,Yq,Zq,kan,yan,jan,Ean,Man,Lue,B2,Tan,Nue,Xj,nU,Vj,eU,k0,Can,xv,San,Pan,Ian,F2,Oan,Hd,Aan,Vw,_2,Lan,Ca,Nan,tA,Wj,M1,Dan,Due,$an,$ue,xue,xan,Ran,tU,iU,rU,cU,Kan,oo,v9,Ban,uU,oU,Ww,Fan,_an,H2,Han,D3,Jj,sU,q2,Rue,fU,Kue,Bue,qan,Fue,Uan,Gan,$3,zan,iA,Xan,Van,qd,_ue,Wan,Jan,Qan,rA,Qj,k9,x3,Hue,que,cA,Uue,Yan,Gue;w(uo,"CoreOptions",699),b(88,22,{3:1,34:1,22:1,88:1},p7);var Wf,Kr,Xr,Jf,us,y9=we(uo,Rtn,88,ke,N3e,Rbe),zue;b(278,22,{3:1,34:1,22:1,278:1},fN);var Rv,Jw,Kv,Zan=we(uo,"EdgeLabelPlacement",278,ke,spe,Kbe),Xue;b(223,22,{3:1,34:1,22:1,223:1},kM);var Bv,Yj,R3,hU,lU=we(uo,"EdgeRouting",223,ke,s3e,Bbe),Vue;b(321,22,{3:1,34:1,22:1,321:1},y6);var ndn,edn,tdn,idn,aU,rdn,cdn=we(uo,"EdgeType",321,ke,S4e,Fbe),Wue;b(989,1,ms,M8n),o.hf=function(e){uUn(e)};var udn,odn,sdn,fdn,Jue,hdn,j9;w(uo,"FixedLayouterOptions",989),b(990,1,{},Xmn),o.sf=function(){var e;return e=new rvn,e},o.tf=function(e){},w(uo,"FixedLayouterOptions/FixedFactory",990),b(346,22,{3:1,34:1,22:1,346:1},hN);var T1,uA,E9,ldn=we(uo,"HierarchyHandling",346,ke,upe,_be),Que;b(291,22,{3:1,34:1,22:1,291:1},yM);var nl,Sa,Zj,nE,Yue=we(uo,"LabelSide",291,ke,o3e,Hbe),Zue;b(95,22,{3:1,34:1,22:1,95:1},bg);var xl,Qs,Ms,Ys,No,Zs,Ts,el,nf,yr=we(uo,"NodeLabelPlacement",95,ke,Pme,qbe),noe;b(256,22,{3:1,34:1,22:1,256:1},m7);var adn,M9,Pa,ddn,eE,T9=we(uo,"PortAlignment",256,ke,V3e,Ube),eoe;b(101,22,{3:1,34:1,22:1,101:1},j6);var Ud,qc,tl,Fv,Qf,Ia,bdn=we(uo,"PortConstraints",101,ke,C4e,Gbe),toe;b(279,22,{3:1,34:1,22:1,279:1},E6);var C9,S9,Rl,tE,Oa,K3,oA=we(uo,"PortLabelPlacement",279,ke,T4e,zbe),ioe;b(64,22,{3:1,34:1,22:1,64:1},v7);var Zn,Xn,os,ss,pu,su,Yf,ef,Wu,xu,Uc,Ju,mu,vu,tf,Do,$o,Cs,ae,sc,Wn,lr=we(uo,"PortSide",64,ke,D3e,Xbe),roe;b(993,1,ms,T8n),o.hf=function(e){Dqn(e)};var coe,uoe,wdn,ooe,soe;w(uo,"RandomLayouterOptions",993),b(994,1,{},Vmn),o.sf=function(){var e;return e=new evn,e},o.tf=function(e){},w(uo,"RandomLayouterOptions/RandomFactory",994),b(386,22,{3:1,34:1,22:1,386:1},jM);var Qw,iE,rE,Gd,P9=we(uo,"SizeConstraint",386,ke,u3e,Vbe),foe;b(264,22,{3:1,34:1,22:1,264:1},wg);var cE,sA,_v,dU,uE,I9,fA,hA,lA,gdn=we(uo,"SizeOptions",264,ke,Fme,Wbe),hoe;b(280,22,{3:1,34:1,22:1,280:1},lN);var Yw,pdn,aA,mdn=we(uo,"TopdownNodeTypes",280,ke,fpe,Jbe),loe;b(347,22,kcn);var vdn,kdn,dA=we(uo,"TopdownSizeApproximator",347,ke,r2e,Ybe);b(987,347,kcn,VPn),o.Tg=function(e){return MBn(e)},we(uo,"TopdownSizeApproximator/1",987,dA,null,null),b(988,347,kcn,NIn),o.Tg=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn,Rn;for(t=u(z(e,(He(),q2)),143),tn=(K1(),m=new Yv,m),uy(tn,e),yn=new de,s=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));s.e!=s.i.gc();)r=u(ue(s),27),A=(p=new Yv,p),PS(A,tn),uy(A,r),Rn=MBn(r),kg(A,y.Math.max(r.g,Rn.a),y.Math.max(r.f,Rn.b)),Vc(yn.f,r,A);for(c=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));c.e!=c.i.gc();)for(r=u(ue(c),27),d=new ne((!r.e&&(r.e=new Dn(Vt,r,7,4)),r.e));d.e!=d.i.gc();)a=u(ue(d),74),_=u(Fr(wr(yn.f,r)),27),X=u(ee(yn,N((!a.c&&(a.c=new Dn(he,a,5,8)),a.c),0)),27),D=(g=new HA,g),ve((!D.b&&(D.b=new Dn(he,D,4,7)),D.b),_),ve((!D.c&&(D.c=new Dn(he,D,5,8)),D.c),X),SS(D,St(_)),uy(D,a);j=u(z7(t.f),205);try{j.rf(tn,new ovn),hOn(t.f,j)}catch(Bn){throw Bn=Ot(Bn),L(Bn,103)?(k=Bn,T(k)):T(Bn)}return Nf(tn,K2)||Nf(tn,R2)||utn(tn),l=$(B(z(tn,K2))),h=$(B(z(tn,R2))),f=l/h,i=$(B(z(tn,Qj)))*y.Math.sqrt((!tn.a&&(tn.a=new q(Ye,tn,10,11)),tn.a).i),kn=u(z(tn,M1),107),O=kn.b+kn.c+1,P=kn.d+kn.a+1,new V(y.Math.max(O,i),y.Math.max(P,i/f))},we(uo,"TopdownSizeApproximator/2",988,dA,null,null);var aoe;b(344,1,{871:1},op),o.Ug=function(e,t){return RFn(this,e,t)},o.Vg=function(){u_n(this)},o.Wg=function(){return this.q},o.Xg=function(){return this.f?CD(this.f):null},o.Yg=function(){return CD(this.a)},o.Zg=function(){return this.p},o.$g=function(){return!1},o._g=function(){return this.n},o.ah=function(){return this.p!=null&&!this.b},o.bh=function(e){var t;this.n&&(t=e,nn(this.f,t))},o.dh=function(e,t){var i,r;this.n&&e&&Mpe(this,(i=new GIn,r=OR(i,e),cLe(i),r),(NC(),wU))},o.eh=function(e){var t;return this.b?null:(t=fme(this,this.g),Re(this.a,t),t.i=this,this.d=e,t)},o.fh=function(e){e>0&&!this.b&&EQ(this,e)},o.b=!1,o.c=0,o.d=-1,o.e=null,o.f=null,o.g=-1,o.j=!1,o.k=!1,o.n=!1,o.o=0,o.q=0,o.r=0,w(dc,"BasicProgressMonitor",344),b(717,205,yd,Wmn),o.rf=function(e,t){KUn(e,t)},w(dc,"BoxLayoutProvider",717),b(983,1,De,Nkn),o.Ne=function(e,t){return cCe(this,u(e,27),u(t,27))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},o.a=!1,w(dc,"BoxLayoutProvider/1",983),b(163,1,{163:1},hC,mSn),o.Ib=function(){return this.c?jen(this.c):ca(this.b)},w(dc,"BoxLayoutProvider/Group",163),b(320,22,{3:1,34:1,22:1,320:1},EM);var ydn,jdn,Edn,bU,Mdn=we(dc,"BoxLayoutProvider/PackingMode",320,ke,f3e,Zbe),doe;b(984,1,De,Jmn),o.Ne=function(e,t){return Mge(u(e,163),u(t,163))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(dc,"BoxLayoutProvider/lambda$0$Type",984),b(985,1,De,Qmn),o.Ne=function(e,t){return gge(u(e,163),u(t,163))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(dc,"BoxLayoutProvider/lambda$1$Type",985),b(986,1,De,Ymn),o.Ne=function(e,t){return pge(u(e,163),u(t,163))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(dc,"BoxLayoutProvider/lambda$2$Type",986),b(1384,1,{845:1},Zmn),o.Mg=function(e,t){return nM(),!L(t,167)||vEn((qp(),u(e,167)),t)},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384),b(1385,1,re,Dkn),o.Cd=function(e){D6e(this.a,u(e,149))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385),b(1386,1,re,tvn),o.Cd=function(e){u(e,96),nM()},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386),b(1390,1,re,$kn),o.Cd=function(e){tve(this.a,u(e,96))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390),b(1388,1,Le,fTn),o.Mb=function(e){return w6e(this.a,this.b,u(e,149))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388),b(1387,1,Le,hTn),o.Mb=function(e){return J1e(this.a,this.b,u(e,845))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387),b(1389,1,re,lTn),o.Cd=function(e){fwe(this.a,this.b,u(e,149))},w(dc,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389),b(947,1,{},ivn),o.Kb=function(e){return uCn(e)},o.Fb=function(e){return this===e},w(dc,"ElkUtil/lambda$0$Type",947),b(948,1,re,aTn),o.Cd=function(e){sMe(this.a,this.b,u(e,74))},o.a=0,o.b=0,w(dc,"ElkUtil/lambda$1$Type",948),b(949,1,re,dTn),o.Cd=function(e){Zfe(this.a,this.b,u(e,166))},o.a=0,o.b=0,w(dc,"ElkUtil/lambda$2$Type",949),b(950,1,re,bTn),o.Cd=function(e){Vle(this.a,this.b,u(e,135))},o.a=0,o.b=0,w(dc,"ElkUtil/lambda$3$Type",950),b(951,1,re,xkn),o.Cd=function(e){O0e(this.a,u(e,377))},w(dc,"ElkUtil/lambda$4$Type",951),b(325,1,{34:1,325:1},Ife),o.Fd=function(e){return E1e(this,u(e,242))},o.Fb=function(e){var t;return L(e,325)?(t=u(e,325),this.a==t.a):!1},o.Hb=function(){return wi(this.a)},o.Ib=function(){return this.a+" (exclusive)"},o.a=0,w(dc,"ExclusiveBounds/ExclusiveLowerBound",325),b(1119,205,yd,rvn),o.rf=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O,A,D,_,X,tn,yn,kn;for(t.Ug("Fixed Layout",1),s=u(z(e,(He(),yan)),223),g=0,p=0,A=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));A.e!=A.i.gc();){for(P=u(ue(A),27),kn=u(z(P,(DC(),j9)),8),kn&&(Bo(P,kn.a,kn.b),u(z(P,odn),181).Hc((go(),Qw))&&(m=u(z(P,fdn),8),m.a>0&&m.b>0&&Gb(P,m.a,m.b,!0,!0))),g=y.Math.max(g,P.i+P.g),p=y.Math.max(p,P.j+P.f),a=new ne((!P.n&&(P.n=new q(Sr,P,1,7)),P.n));a.e!=a.i.gc();)h=u(ue(a),135),kn=u(z(h,j9),8),kn&&Bo(h,kn.a,kn.b),g=y.Math.max(g,P.i+h.i+h.g),p=y.Math.max(p,P.j+h.j+h.f);for(X=new ne((!P.c&&(P.c=new q(Qu,P,9,9)),P.c));X.e!=X.i.gc();)for(_=u(ue(X),123),kn=u(z(_,j9),8),kn&&Bo(_,kn.a,kn.b),tn=P.i+_.i,yn=P.j+_.j,g=y.Math.max(g,tn+_.g),p=y.Math.max(p,yn+_.f),l=new ne((!_.n&&(_.n=new q(Sr,_,1,7)),_.n));l.e!=l.i.gc();)h=u(ue(l),135),kn=u(z(h,j9),8),kn&&Bo(h,kn.a,kn.b),g=y.Math.max(g,tn+h.i+h.g),p=y.Math.max(p,yn+h.j+h.f);for(c=new ie(ce(Sl(P).a.Kc(),new En));pe(c);)i=u(fe(c),74),d=YGn(i),g=y.Math.max(g,d.a),p=y.Math.max(p,d.b);for(r=new ie(ce(cy(P).a.Kc(),new En));pe(r);)i=u(fe(r),74),St(Fh(i))!=e&&(d=YGn(i),g=y.Math.max(g,d.a),p=y.Math.max(p,d.b))}if(s==(El(),Bv))for(O=new ne((!e.a&&(e.a=new q(Ye,e,10,11)),e.a));O.e!=O.i.gc();)for(P=u(ue(O),27),r=new ie(ce(Sl(P).a.Kc(),new En));pe(r);)i=u(fe(r),74),f=hIe(i),f.b==0?ht(i,k0,null):ht(i,k0,f);on(un(z(e,(DC(),sdn))))||(D=u(z(e,Jue),107),j=g+D.b+D.c,k=p+D.d+D.a,Gb(e,j,k,!0,!0)),t.Vg()},w(dc,"FixedLayoutProvider",1119),b(385,137,{3:1,423:1,385:1,96:1,137:1},_A,JDn),o.cg=function(e){var t,i,r,c,s,f,h,l,a;if(e)try{for(l=ww(e,";,;"),s=l,f=0,h=s.length;f<h;++f){if(c=s[f],i=ww(c,"\\:"),r=Yen(z4(),i[0]),!r)throw T(new Gn("Invalid option id: "+i[0]));if(a=Jen(r,i[1]),a==null)throw T(new Gn("Invalid option value: "+i[1]));a==null?(!this.q&&(this.q=new de),Kp(this.q,r)):(!this.q&&(this.q=new de),Ve(this.q,r,a))}}catch(d){throw d=Ot(d),L(d,103)?(t=d,T(new DRn(t))):T(d)}},o.Ib=function(){var e;return e=Ae(Wr(_r((this.q?this.q:(Ln(),Ln(),Wh)).vc().Oc(),new cvn),W0(new IPn,new qbn,new Fbn,new _bn,S(C(xr,1),G,108,0,[])))),e};var boe=w(dc,"IndividualSpacings",385);b(982,1,{},cvn),o.Kb=function(e){return Tge(u(e,44))},w(dc,"IndividualSpacings/lambda$0$Type",982),b(718,1,{},hIn),o.c=0,w(dc,"InstancePool",718),b(1835,1,{},uvn),w(dc,"LoggedGraph",1835),b(415,22,{3:1,34:1,22:1,415:1},MM);var Tdn,wU,Cdn,Sdn,woe=we(dc,"LoggedGraph/Type",415,ke,h3e,n0e),goe;b(1063,1,{871:1},ovn),o.Ug=function(e,t){return!1},o.Vg=function(){},o.Wg=function(){return 0},o.Xg=function(){return null},o.Yg=function(){return null},o.Zg=function(){return null},o.$g=function(){return!1},o._g=function(){return!1},o.ah=function(){return!1},o.bh=function(e){},o.dh=function(e,t){},o.eh=function(e){return this},o.fh=function(e){},w(dc,"NullElkProgressMonitor",1063),b(42,1,{20:1,42:1},bi),o.Jc=function(e){qi(this,e)},o.Fb=function(e){var t,i,r;return L(e,42)?(i=u(e,42),t=this.a==null?i.a==null:rt(this.a,i.a),r=this.b==null?i.b==null:rt(this.b,i.b),t&&r):!1},o.Hb=function(){var e,t,i,r,c,s;return i=this.a==null?0:mt(this.a),e=i&ui,t=i&-65536,s=this.b==null?0:mt(this.b),r=s&ui,c=s&-65536,e^c>>16&ui|t^r<<16},o.Kc=function(){return new Rkn(this)},o.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+Jr(this.b)+")":this.b==null?"pair("+Jr(this.a)+",null)":"pair("+Jr(this.a)+","+Jr(this.b)+")"},w(dc,"Pair",42),b(995,1,Pi,Rkn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},o.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw T(new nc)},o.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),T(new Mu)},o.b=!1,o.c=!1,w(dc,"Pair/1",995),b(455,1,{455:1},COn),o.Fb=function(e){return mc(this.a,u(e,455).a)&&mc(this.c,u(e,455).c)&&mc(this.d,u(e,455).d)&&mc(this.b,u(e,455).b)},o.Hb=function(){return Ok(S(C(ki,1),Kn,1,5,[this.a,this.c,this.d,this.b]))},o.Ib=function(){return"("+this.a+ur+this.c+ur+this.d+ur+this.b+")"},w(dc,"Quadruple",455),b(1108,205,yd,evn),o.rf=function(e,t){var i,r,c,s,f;if(t.Ug("Random Layout",1),(!e.a&&(e.a=new q(Ye,e,10,11)),e.a).i==0){t.Vg();return}s=u(z(e,(QY(),ooe)),17),s&&s.a!=0?c=new qT(s.a):c=new dx,i=J9(B(z(e,coe))),f=J9(B(z(e,soe))),r=u(z(e,uoe),107),PLe(e,c,i,f,r),t.Vg()},w(dc,"RandomLayoutProvider",1108),b(240,1,{240:1},_N),o.Fb=function(e){return mc(this.a,u(e,240).a)&&mc(this.b,u(e,240).b)&&mc(this.c,u(e,240).c)},o.Hb=function(){return Ok(S(C(ki,1),Kn,1,5,[this.a,this.b,this.c]))},o.Ib=function(){return"("+this.a+ur+this.b+ur+this.c+")"},w(dc,"Triple",240);var poe;b(562,1,{}),o.Lf=function(){return new V(this.f.i,this.f.j)},o.of=function(e){return nAn(e,(He(),oo))?z(this.f,moe):z(this.f,e)},o.Mf=function(){return new V(this.f.g,this.f.f)},o.Nf=function(){return this.g},o.pf=function(e){return Nf(this.f,e)},o.Of=function(e){eu(this.f,e.a),tu(this.f,e.b)},o.Pf=function(e){Ob(this.f,e.a),Ib(this.f,e.b)},o.Qf=function(e){this.g=e},o.g=0;var moe;w(d8,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562),b(563,1,{853:1},LE),o.Rf=function(){var e,t;if(!this.b)for(this.b=BT(jT(this.a).i),t=new ne(jT(this.a));t.e!=t.i.gc();)e=u(ue(t),135),nn(this.b,new pL(e));return this.b},o.b=null,w(d8,"ElkGraphAdapters/ElkEdgeAdapter",563),b(289,562,{},Qd),o.Sf=function(){return zBn(this)},o.a=null,w(d8,"ElkGraphAdapters/ElkGraphAdapter",289),b(640,562,{187:1},pL),w(d8,"ElkGraphAdapters/ElkLabelAdapter",640),b(639,562,{695:1},TN),o.Rf=function(){return w7e(this)},o.Vf=function(){var e;return e=u(z(this.f,(He(),xv)),140),!e&&(e=new Qv),e},o.Xf=function(){return g7e(this)},o.Zf=function(e){var t;t=new qN(e),ht(this.f,(He(),xv),t)},o.$f=function(e){ht(this.f,(He(),M1),new _V(e))},o.Tf=function(){return this.d},o.Uf=function(){var e,t;if(!this.a)for(this.a=new Z,t=new ie(ce(cy(u(this.f,27)).a.Kc(),new En));pe(t);)e=u(fe(t),74),nn(this.a,new LE(e));return this.a},o.Wf=function(){var e,t;if(!this.c)for(this.c=new Z,t=new ie(ce(Sl(u(this.f,27)).a.Kc(),new En));pe(t);)e=u(fe(t),74),nn(this.c,new LE(e));return this.c},o.Yf=function(){return ST(u(this.f,27)).i!=0||on(un(u(this.f,27).of((He(),Xj))))},o._f=function(){V4e(this,(cb(),poe))},o.a=null,o.b=null,o.c=null,o.d=null,o.e=null,w(d8,"ElkGraphAdapters/ElkNodeAdapter",639),b(1284,562,{852:1},Kkn),o.Rf=function(){return M7e(this)},o.Uf=function(){var e,t;if(!this.a)for(this.a=Lh(u(this.f,123).hh().i),t=new ne(u(this.f,123).hh());t.e!=t.i.gc();)e=u(ue(t),74),nn(this.a,new LE(e));return this.a},o.Wf=function(){var e,t;if(!this.c)for(this.c=Lh(u(this.f,123).ih().i),t=new ne(u(this.f,123).ih());t.e!=t.i.gc();)e=u(ue(t),74),nn(this.c,new LE(e));return this.c},o.ag=function(){return u(u(this.f,123).of((He(),H2)),64)},o.bg=function(){var e,t,i,r,c,s,f,h;for(r=Pf(u(this.f,123)),i=new ne(u(this.f,123).ih());i.e!=i.i.gc();)for(e=u(ue(i),74),h=new ne((!e.c&&(e.c=new Dn(he,e,5,8)),e.c));h.e!=h.i.gc();){if(f=u(ue(h),84),Y0(Gr(f),r))return!0;if(Gr(f)==r&&on(un(z(e,(He(),nU)))))return!0}for(t=new ne(u(this.f,123).hh());t.e!=t.i.gc();)for(e=u(ue(t),74),s=new ne((!e.b&&(e.b=new Dn(he,e,4,7)),e.b));s.e!=s.i.gc();)if(c=u(ue(s),84),Y0(Gr(c),r))return!0;return!1},o.a=null,o.b=null,o.c=null,w(d8,"ElkGraphAdapters/ElkPortAdapter",1284),b(1285,1,De,nvn),o.Ne=function(e,t){return tPe(u(e,123),u(t,123))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(d8,"ElkGraphAdapters/PortComparator",1285);var Aa=Dt(ts,"EObject"),Hv=Dt(o2,iWn),xo=Dt(o2,rWn),oE=Dt(o2,cWn),sE=Dt(o2,"ElkShape"),he=Dt(o2,uWn),Vt=Dt(o2,ycn),Tt=Dt(o2,oWn),fE=Dt(ts,sWn),O9=Dt(ts,"EFactory"),voe,gU=Dt(ts,fWn),Ef=Dt(ts,"EPackage"),Ci,koe,yoe,Pdn,bA,joe,Idn,Odn,Adn,il,Eoe,Moe,Sr=Dt(o2,jcn),Ye=Dt(o2,Ecn),Qu=Dt(o2,Mcn);b(93,1,hWn),o.th=function(){return this.uh(),null},o.uh=function(){return null},o.vh=function(){return this.uh(),!1},o.wh=function(){return!1},o.xh=function(e){it(this,e)},w(g3,"BasicNotifierImpl",93),b(99,93,bWn),o.Yh=function(){return fo(this)},o.yh=function(e,t){return e},o.zh=function(){throw T(new Ie)},o.Ah=function(e){var t;return t=br(u($n(this.Dh(),this.Fh()),19)),this.Ph().Th(this,t.n,t.f,e)},o.Bh=function(e,t){throw T(new Ie)},o.Ch=function(e,t,i){return Po(this,e,t,i)},o.Dh=function(){var e;return this.zh()&&(e=this.zh().Nk(),e)?e:this.ii()},o.Eh=function(){return dR(this)},o.Fh=function(){throw T(new Ie)},o.Gh=function(){var e,t;return t=this.$h().Ok(),!t&&this.zh().Tk(t=(l6(),e=nJ(bh(this.Dh())),e==null?MU:new M7(this,e))),t},o.Hh=function(e,t){return e},o.Ih=function(e){var t;return t=e.pk(),t?e.Lj():At(this.Dh(),e)},o.Jh=function(){var e;return e=this.zh(),e?e.Qk():null},o.Kh=function(){return this.zh()?this.zh().Nk():null},o.Lh=function(e,t,i){return tS(this,e,t,i)},o.Mh=function(e){return x4(this,e)},o.Nh=function(e,t){return YD(this,e,t)},o.Oh=function(){var e;return e=this.zh(),!!e&&e.Rk()},o.Ph=function(){throw T(new Ie)},o.Qh=function(){return WC(this)},o.Rh=function(e,t,i,r){return Wp(this,e,t,r)},o.Sh=function(e,t,i){var r;return r=u($n(this.Dh(),t),69),r.wk().zk(this,this.hi(),t-this.ji(),e,i)},o.Th=function(e,t,i,r){return AT(this,e,t,r)},o.Uh=function(e,t,i){var r;return r=u($n(this.Dh(),t),69),r.wk().Ak(this,this.hi(),t-this.ji(),e,i)},o.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},o.Wh=function(e){return Mx(this,e)},o.Xh=function(e){return bAn(this,e)},o.Zh=function(e){return xGn(this,e)},o.$h=function(){throw T(new Ie)},o._h=function(){return this.zh()?this.zh().Pk():null},o.ai=function(){return WC(this)},o.bi=function(e,t){sR(this,e,t)},o.ci=function(e){this.$h().Sk(e)},o.di=function(e){this.$h().Vk(e)},o.ei=function(e){this.$h().Uk(e)},o.fi=function(e,t){var i,r,c,s;return s=this.Jh(),s&&e&&(t=cr(s.El(),this,t),s.Il(this)),r=this.Ph(),r&&(SR(this,this.Ph(),this.Fh()).Bb&hr?(c=r.Qh(),c&&(e?!s&&c.Il(this):c.Hl(this))):(t=(i=this.Fh(),i>=0?this.Ah(t):this.Ph().Th(this,-1-i,null,t)),t=this.Ch(null,-1,t))),this.di(e),t},o.gi=function(e){var t,i,r,c,s,f,h,l;if(i=this.Dh(),s=At(i,e),t=this.ji(),s>=t)return u(e,69).wk().Dk(this,this.hi(),s-t);if(s<=-1)if(f=Qg((Lu(),zi),i,e),f){if(dr(),u(f,69).xk()||(f=$p(Nr(zi,f))),c=(r=this.Ih(f),u(r>=0?this.Lh(r,!0,!0):Hb(this,f,!0),160)),l=f.Ik(),l>1||l==-1)return u(u(c,220).Sl(e,!1),79)}else throw T(new Gn(ba+e.xe()+sF));else if(e.Jk())return r=this.Ih(e),u(r>=0?this.Lh(r,!1,!0):Hb(this,e,!1),79);return h=new LTn(this,e),h},o.hi=function(){return cQ(this)},o.ii=function(){return(G1(),Hn).S},o.ji=function(){return se(this.ii())},o.ki=function(e){cR(this,e)},o.Ib=function(){return Hs(this)},w(qn,"BasicEObjectImpl",99);var Toe;b(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),o.li=function(e){var t;return t=rQ(this),t[e]},o.mi=function(e,t){var i;i=rQ(this),$t(i,e,t)},o.ni=function(e){var t;t=rQ(this),$t(t,e,null)},o.th=function(){return u(Un(this,4),129)},o.uh=function(){throw T(new Ie)},o.vh=function(){return(this.Db&4)!=0},o.zh=function(){throw T(new Ie)},o.oi=function(e){Xp(this,2,e)},o.Bh=function(e,t){this.Db=t<<16|this.Db&255,this.oi(e)},o.Dh=function(){return au(this)},o.Fh=function(){return this.Db>>16},o.Gh=function(){var e,t;return l6(),t=nJ(bh((e=u(Un(this,16),29),e||this.ii()))),t==null?MU:new M7(this,t)},o.wh=function(){return(this.Db&1)==0},o.Jh=function(){return u(Un(this,128),2034)},o.Kh=function(){return u(Un(this,16),29)},o.Oh=function(){return(this.Db&32)!=0},o.Ph=function(){return u(Un(this,2),54)},o.Vh=function(){return(this.Db&64)!=0},o.$h=function(){throw T(new Ie)},o._h=function(){return u(Un(this,64),288)},o.ci=function(e){Xp(this,16,e)},o.di=function(e){Xp(this,128,e)},o.ei=function(e){Xp(this,64,e)},o.hi=function(){return iu(this)},o.Db=0,w(qn,"MinimalEObjectImpl",119),b(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.oi=function(e){this.Cb=e},o.Ph=function(){return this.Cb},w(qn,"MinimalEObjectImpl/Container",120),b(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return kZ(this,e,t,i)},o.Uh=function(e,t,i){return fnn(this,e,t,i)},o.Wh=function(e){return bJ(this,e)},o.bi=function(e,t){cY(this,e,t)},o.ii=function(){return Mc(),Moe},o.ki=function(e){VQ(this,e)},o.nf=function(){return aBn(this)},o.gh=function(){return!this.o&&(this.o=new Ou((Mc(),il),C1,this,0)),this.o},o.of=function(e){return z(this,e)},o.pf=function(e){return Nf(this,e)},o.qf=function(e,t){return ht(this,e,t)},w(Td,"EMapPropertyHolderImpl",2083),b(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},yE),o.Lh=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return tS(this,e,t,i)},o.Wh=function(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return Mx(this,e)},o.bi=function(e,t){switch(e){case 0:aC(this,$(B(t)));return;case 1:lC(this,$(B(t)));return}sR(this,e,t)},o.ii=function(){return Mc(),koe},o.ki=function(e){switch(e){case 0:aC(this,0);return;case 1:lC(this,0);return}cR(this,e)},o.Ib=function(){var e;return this.Db&64?Hs(this):(e=new ls(Hs(this)),e.a+=" (x: ",hg(e,this.a),e.a+=", y: ",hg(e,this.b),e.a+=")",e.a)},o.a=0,o.b=0,w(Td,"ElkBendPointImpl",572),b(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return PY(this,e,t,i)},o.Sh=function(e,t,i){return Yx(this,e,t,i)},o.Uh=function(e,t,i){return $$(this,e,t,i)},o.Wh=function(e){return HQ(this,e)},o.bi=function(e,t){BZ(this,e,t)},o.ii=function(){return Mc(),joe},o.ki=function(e){vY(this,e)},o.jh=function(){return this.k},o.kh=function(){return jT(this)},o.Ib=function(){return ox(this)},o.k=null,w(Td,"ElkGraphElementImpl",739),b(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return xY(this,e,t,i)},o.Wh=function(e){return HY(this,e)},o.bi=function(e,t){FZ(this,e,t)},o.ii=function(){return Mc(),Eoe},o.ki=function(e){WY(this,e)},o.lh=function(){return this.f},o.mh=function(){return this.g},o.nh=function(){return this.i},o.oh=function(){return this.j},o.ph=function(e,t){kg(this,e,t)},o.qh=function(e,t){Bo(this,e,t)},o.rh=function(e){eu(this,e)},o.sh=function(e){tu(this,e)},o.Ib=function(){return iR(this)},o.f=0,o.g=0,o.i=0,o.j=0,w(Td,"ElkShapeImpl",740),b(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),o.Lh=function(e,t,i){return dZ(this,e,t,i)},o.Sh=function(e,t,i){return NZ(this,e,t,i)},o.Uh=function(e,t,i){return DZ(this,e,t,i)},o.Wh=function(e){return rY(this,e)},o.bi=function(e,t){Xnn(this,e,t)},o.ii=function(){return Mc(),yoe},o.ki=function(e){sZ(this,e)},o.hh=function(){return!this.d&&(this.d=new Dn(Vt,this,8,5)),this.d},o.ih=function(){return!this.e&&(this.e=new Dn(Vt,this,7,4)),this.e},w(Td,"ElkConnectableShapeImpl",741),b(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},HA),o.Ah=function(e){return IZ(this,e)},o.Lh=function(e,t,i){switch(e){case 3:return V7(this);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),this.c;case 6:return!this.a&&(this.a=new q(Tt,this,6,6)),this.a;case 7:return _n(),!this.b&&(this.b=new Dn(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i<=1));case 8:return _n(),!!D5(this);case 9:return _n(),!!_b(this);case 10:return _n(),!this.b&&(this.b=new Dn(he,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i!=0)}return PY(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 3:return this.Cb&&(i=(r=this.Db>>16,r>=0?IZ(this,i):this.Cb.Th(this,-1-r,null,i))),hV(this,u(e,27),i);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),Xc(this.b,e,i);case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),Xc(this.c,e,i);case 6:return!this.a&&(this.a=new q(Tt,this,6,6)),Xc(this.a,e,i)}return Yx(this,e,t,i)},o.Uh=function(e,t,i){switch(t){case 3:return hV(this,null,i);case 4:return!this.b&&(this.b=new Dn(he,this,4,7)),cr(this.b,e,i);case 5:return!this.c&&(this.c=new Dn(he,this,5,8)),cr(this.c,e,i);case 6:return!this.a&&(this.a=new q(Tt,this,6,6)),cr(this.a,e,i)}return $$(this,e,t,i)},o.Wh=function(e){switch(e){case 3:return!!V7(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Dn(he,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i<=1));case 8:return D5(this);case 9:return _b(this);case 10:return!this.b&&(this.b=new Dn(he,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Dn(he,this,5,8)),this.c.i!=0)}return HQ(this,e)},o.bi=function(e,t){switch(e){case 3:SS(this,u(t,27));return;case 4:!this.b&&(this.b=new Dn(he,this,4,7)),me(this.b),!this.b&&(this.b=new Dn(he,this,4,7)),Kt(this.b,u(t,16));return;case 5:!this.c&&(this.c=new Dn(he,this,5,8)),me(this.c),!this.c&&(this.c=new Dn(he,this,5,8)),Kt(this.c,u(t,16));return;case 6:!this.a&&(this.a=new q(Tt,this,6,6)),me(this.a),!this.a&&(this.a=new q(Tt,this,6,6)),Kt(this.a,u(t,16));return}BZ(this,e,t)},o.ii=function(){return Mc(),Pdn},o.ki=function(e){switch(e){case 3:SS(this,null);return;case 4:!this.b&&(this.b=new Dn(he,this,4,7)),me(this.b);return;case 5:!this.c&&(this.c=new Dn(he,this,5,8)),me(this.c);return;case 6:!this.a&&(this.a=new q(Tt,this,6,6)),me(this.a);return}vY(this,e)},o.Ib=function(){return nGn(this)},w(Td,"ElkEdgeImpl",326),b(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},jE),o.Ah=function(e){return TZ(this,e)},o.Lh=function(e,t,i){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new ti(xo,this,5)),this.a;case 6:return hAn(this);case 7:return t?Ix(this):this.i;case 8:return t?Px(this):this.f;case 9:return!this.g&&(this.g=new Dn(Tt,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Dn(Tt,this,10,9)),this.e;case 11:return this.d}return kZ(this,e,t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?TZ(this,i):this.Cb.Th(this,-1-c,null,i))),fV(this,u(e,74),i);case 9:return!this.g&&(this.g=new Dn(Tt,this,9,10)),Xc(this.g,e,i);case 10:return!this.e&&(this.e=new Dn(Tt,this,10,9)),Xc(this.e,e,i)}return s=u($n((r=u(Un(this,16),29),r||(Mc(),bA)),t),69),s.wk().zk(this,iu(this),t-se((Mc(),bA)),e,i)},o.Uh=function(e,t,i){switch(t){case 5:return!this.a&&(this.a=new ti(xo,this,5)),cr(this.a,e,i);case 6:return fV(this,null,i);case 9:return!this.g&&(this.g=new Dn(Tt,this,9,10)),cr(this.g,e,i);case 10:return!this.e&&(this.e=new Dn(Tt,this,10,9)),cr(this.e,e,i)}return fnn(this,e,t,i)},o.Wh=function(e){switch(e){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!hAn(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return bJ(this,e)},o.bi=function(e,t){switch(e){case 1:H4(this,$(B(t)));return;case 2:U4(this,$(B(t)));return;case 3:_4(this,$(B(t)));return;case 4:q4(this,$(B(t)));return;case 5:!this.a&&(this.a=new ti(xo,this,5)),me(this.a),!this.a&&(this.a=new ti(xo,this,5)),Kt(this.a,u(t,16));return;case 6:ZHn(this,u(t,74));return;case 7:vC(this,u(t,84));return;case 8:mC(this,u(t,84));return;case 9:!this.g&&(this.g=new Dn(Tt,this,9,10)),me(this.g),!this.g&&(this.g=new Dn(Tt,this,9,10)),Kt(this.g,u(t,16));return;case 10:!this.e&&(this.e=new Dn(Tt,this,10,9)),me(this.e),!this.e&&(this.e=new Dn(Tt,this,10,9)),Kt(this.e,u(t,16));return;case 11:OQ(this,Ae(t));return}cY(this,e,t)},o.ii=function(){return Mc(),bA},o.ki=function(e){switch(e){case 1:H4(this,0);return;case 2:U4(this,0);return;case 3:_4(this,0);return;case 4:q4(this,0);return;case 5:!this.a&&(this.a=new ti(xo,this,5)),me(this.a);return;case 6:ZHn(this,null);return;case 7:vC(this,null);return;case 8:mC(this,null);return;case 9:!this.g&&(this.g=new Dn(Tt,this,9,10)),me(this.g);return;case 10:!this.e&&(this.e=new Dn(Tt,this,10,9)),me(this.e);return;case 11:OQ(this,null);return}VQ(this,e)},o.Ib=function(){return dHn(this)},o.b=0,o.c=0,o.d=null,o.j=0,o.k=0,w(Td,"ElkEdgeSectionImpl",452),b(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),o.Lh=function(e,t,i){var r;return e==0?(!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab):zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Sh=function(e,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i)):(c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().zk(this,iu(this),t-se(this.ii()),e,i))},o.Uh=function(e,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i)):(c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i))},o.Wh=function(e){var t;return e==0?!!this.Ab&&this.Ab.i!=0:Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.Zh=function(e){return rtn(this,e)},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.di=function(e){Xp(this,128,e)},o.ii=function(){return An(),qoe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){this.Bb|=1},o.qi=function(e){return _5(this,e)},o.Bb=0,w(qn,"EModelElementImpl",158),b(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},uG),o.ri=function(e,t){return IGn(this,e,t)},o.si=function(e){var t,i,r,c,s;if(this.a!=jo(e)||e.Bb&256)throw T(new Gn(hF+e.zb+n0));for(r=Hr(e);Pc(r.a).i!=0;){if(i=u(py(r,0,(t=u(N(Pc(r.a),0),89),s=t.c,L(s,90)?u(s,29):(An(),Os))),29),Fb(i))return c=jo(i).wi().si(i),u(c,54).ci(e),c;r=Hr(i)}return(e.D!=null?e.D:e.B)=="java.util.Map$Entry"?new zPn(e):new YV(e)},o.ti=function(e,t){return zb(this,e,t)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.a}return zo(this,e-se((An(),$a)),$n((r=u(Un(this,16),29),r||$a),e),t,i)},o.Sh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 1:return this.a&&(i=u(this.a,54).Th(this,4,Ef,i)),mY(this,u(e,241),i)}return c=u($n((r=u(Un(this,16),29),r||(An(),$a)),t),69),c.wk().zk(this,iu(this),t-se((An(),$a)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 1:return mY(this,null,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),$a)),t),69),c.wk().Ak(this,iu(this),t-se((An(),$a)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return Uo(this,e-se((An(),$a)),$n((t=u(Un(this,16),29),t||$a),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:JFn(this,u(t,241));return}Jo(this,e-se((An(),$a)),$n((i=u(Un(this,16),29),i||$a),e),t)},o.ii=function(){return An(),$a},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:JFn(this,null);return}Wo(this,e-se((An(),$a)),$n((t=u(Un(this,16),29),t||$a),e))};var A9,Ldn,Coe;w(qn,"EFactoryImpl",720),b(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},fvn),o.ri=function(e,t){switch(e.hk()){case 12:return u(t,149).Pg();case 13:return Jr(t);default:throw T(new Gn(ev+e.xe()+n0))}},o.si=function(e){var t,i,r,c,s,f,h,l;switch(e.G==-1&&(e.G=(t=jo(e),t?f1(t.vi(),e):-1)),e.G){case 4:return s=new nG,s;case 6:return f=new Yv,f;case 7:return h=new nz,h;case 8:return r=new HA,r;case 9:return i=new yE,i;case 10:return c=new jE,c;case 11:return l=new hvn,l;default:throw T(new Gn(hF+e.zb+n0))}},o.ti=function(e,t){switch(e.hk()){case 13:case 12:return null;default:throw T(new Gn(ev+e.xe()+n0))}},w(Td,"ElkGraphFactoryImpl",1037),b(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),o.Gh=function(){var e,t;return t=(e=u(Un(this,16),29),nJ(bh(e||this.ii()))),t==null?(l6(),l6(),MU):new wSn(this,t)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.xe()}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:this.ui(Ae(t));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),Uoe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:this.ui(null);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.xe=function(){return this.zb},o.ui=function(e){zc(this,e)},o.Ib=function(){return p5(this)},o.zb=null,w(qn,"ENamedElementImpl",448),b(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},HOn),o.Ah=function(e){return oFn(this,e)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new H0(this,Mf,this)),this.rb;case 6:return!this.vb&&(this.vb=new jp(Ef,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?u(this.Cb,241):null:pAn(this)}return zo(this,e-se((An(),O1)),$n((r=u(Un(this,16),29),r||O1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 4:return this.sb&&(i=u(this.sb,54).Th(this,1,O9,i)),yY(this,u(e,480),i);case 5:return!this.rb&&(this.rb=new H0(this,Mf,this)),Xc(this.rb,e,i);case 6:return!this.vb&&(this.vb=new jp(Ef,this,6,7)),Xc(this.vb,e,i);case 7:return this.Cb&&(i=(c=this.Db>>16,c>=0?oFn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,7,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),O1)),t),69),s.wk().zk(this,iu(this),t-se((An(),O1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 4:return yY(this,null,i);case 5:return!this.rb&&(this.rb=new H0(this,Mf,this)),cr(this.rb,e,i);case 6:return!this.vb&&(this.vb=new jp(Ef,this,6,7)),cr(this.vb,e,i);case 7:return Po(this,null,7,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),O1)),t),69),c.wk().Ak(this,iu(this),t-se((An(),O1)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!pAn(this)}return Uo(this,e-se((An(),O1)),$n((t=u(Un(this,16),29),t||O1),e))},o.Zh=function(e){var t;return t=pCe(this,e),t||rtn(this,e)},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:zc(this,Ae(t));return;case 2:TC(this,Ae(t));return;case 3:MC(this,Ae(t));return;case 4:tR(this,u(t,480));return;case 5:!this.rb&&(this.rb=new H0(this,Mf,this)),me(this.rb),!this.rb&&(this.rb=new H0(this,Mf,this)),Kt(this.rb,u(t,16));return;case 6:!this.vb&&(this.vb=new jp(Ef,this,6,7)),me(this.vb),!this.vb&&(this.vb=new jp(Ef,this,6,7)),Kt(this.vb,u(t,16));return}Jo(this,e-se((An(),O1)),$n((i=u(Un(this,16),29),i||O1),e),t)},o.ei=function(e){var t,i;if(e&&this.rb)for(i=new ne(this.rb);i.e!=i.i.gc();)t=ue(i),L(t,364)&&(u(t,364).w=null);Xp(this,64,e)},o.ii=function(){return An(),O1},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:TC(this,null);return;case 3:MC(this,null);return;case 4:tR(this,null);return;case 5:!this.rb&&(this.rb=new H0(this,Mf,this)),me(this.rb);return;case 6:!this.vb&&(this.vb=new jp(Ef,this,6,7)),me(this.vb);return}Wo(this,e-se((An(),O1)),$n((t=u(Un(this,16),29),t||O1),e))},o.pi=function(){Hx(this)},o.vi=function(){return!this.rb&&(this.rb=new H0(this,Mf,this)),this.rb},o.wi=function(){return this.sb},o.xi=function(){return this.ub},o.yi=function(){return this.xb},o.zi=function(){return this.yb},o.Ai=function(e){this.ub=e},o.Ib=function(){var e;return this.Db&64?p5(this):(e=new ls(p5(this)),e.a+=" (nsURI: ",Er(e,this.yb),e.a+=", nsPrefix: ",Er(e,this.xb),e.a+=")",e.a)},o.xb=null,o.yb=null,w(qn,"EPackageImpl",184),b(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},jHn),o.q=!1,o.r=!1;var Soe=!1;w(Td,"ElkGraphPackageImpl",569),b(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},nG),o.Ah=function(e){return CZ(this,e)},o.Lh=function(e,t,i){switch(e){case 7:return mAn(this);case 8:return this.a}return xY(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 7:return this.Cb&&(i=(r=this.Db>>16,r>=0?CZ(this,i):this.Cb.Th(this,-1-r,null,i))),dW(this,u(e,167),i)}return Yx(this,e,t,i)},o.Uh=function(e,t,i){return t==7?dW(this,null,i):$$(this,e,t,i)},o.Wh=function(e){switch(e){case 7:return!!mAn(this);case 8:return!Sn("",this.a)}return HY(this,e)},o.bi=function(e,t){switch(e){case 7:uen(this,u(t,167));return;case 8:TQ(this,Ae(t));return}FZ(this,e,t)},o.ii=function(){return Mc(),Idn},o.ki=function(e){switch(e){case 7:uen(this,null);return;case 8:TQ(this,"");return}WY(this,e)},o.Ib=function(){return h_n(this)},o.a="",w(Td,"ElkLabelImpl",366),b(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Yv),o.Ah=function(e){return OZ(this,e)},o.Lh=function(e,t,i){switch(e){case 9:return!this.c&&(this.c=new q(Qu,this,9,9)),this.c;case 10:return!this.a&&(this.a=new q(Ye,this,10,11)),this.a;case 11:return St(this);case 12:return!this.b&&(this.b=new q(Vt,this,12,3)),this.b;case 13:return _n(),!this.a&&(this.a=new q(Ye,this,10,11)),this.a.i>0}return dZ(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 9:return!this.c&&(this.c=new q(Qu,this,9,9)),Xc(this.c,e,i);case 10:return!this.a&&(this.a=new q(Ye,this,10,11)),Xc(this.a,e,i);case 11:return this.Cb&&(i=(r=this.Db>>16,r>=0?OZ(this,i):this.Cb.Th(this,-1-r,null,i))),kV(this,u(e,27),i);case 12:return!this.b&&(this.b=new q(Vt,this,12,3)),Xc(this.b,e,i)}return NZ(this,e,t,i)},o.Uh=function(e,t,i){switch(t){case 9:return!this.c&&(this.c=new q(Qu,this,9,9)),cr(this.c,e,i);case 10:return!this.a&&(this.a=new q(Ye,this,10,11)),cr(this.a,e,i);case 11:return kV(this,null,i);case 12:return!this.b&&(this.b=new q(Vt,this,12,3)),cr(this.b,e,i)}return DZ(this,e,t,i)},o.Wh=function(e){switch(e){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!St(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new q(Ye,this,10,11)),this.a.i>0}return rY(this,e)},o.bi=function(e,t){switch(e){case 9:!this.c&&(this.c=new q(Qu,this,9,9)),me(this.c),!this.c&&(this.c=new q(Qu,this,9,9)),Kt(this.c,u(t,16));return;case 10:!this.a&&(this.a=new q(Ye,this,10,11)),me(this.a),!this.a&&(this.a=new q(Ye,this,10,11)),Kt(this.a,u(t,16));return;case 11:PS(this,u(t,27));return;case 12:!this.b&&(this.b=new q(Vt,this,12,3)),me(this.b),!this.b&&(this.b=new q(Vt,this,12,3)),Kt(this.b,u(t,16));return}Xnn(this,e,t)},o.ii=function(){return Mc(),Odn},o.ki=function(e){switch(e){case 9:!this.c&&(this.c=new q(Qu,this,9,9)),me(this.c);return;case 10:!this.a&&(this.a=new q(Ye,this,10,11)),me(this.a);return;case 11:PS(this,null);return;case 12:!this.b&&(this.b=new q(Vt,this,12,3)),me(this.b);return}sZ(this,e)},o.Ib=function(){return jen(this)},w(Td,"ElkNodeImpl",207),b(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},nz),o.Ah=function(e){return SZ(this,e)},o.Lh=function(e,t,i){return e==9?Pf(this):dZ(this,e,t,i)},o.Sh=function(e,t,i){var r;switch(t){case 9:return this.Cb&&(i=(r=this.Db>>16,r>=0?SZ(this,i):this.Cb.Th(this,-1-r,null,i))),lV(this,u(e,27),i)}return NZ(this,e,t,i)},o.Uh=function(e,t,i){return t==9?lV(this,null,i):DZ(this,e,t,i)},o.Wh=function(e){return e==9?!!Pf(this):rY(this,e)},o.bi=function(e,t){switch(e){case 9:ten(this,u(t,27));return}Xnn(this,e,t)},o.ii=function(){return Mc(),Adn},o.ki=function(e){switch(e){case 9:ten(this,null);return}sZ(this,e)},o.Ib=function(){return Yqn(this)},w(Td,"ElkPortImpl",193);var Poe=Dt(or,"BasicEMap/Entry");b(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},hvn),o.Fb=function(e){return this===e},o.ld=function(){return this.b},o.Hb=function(){return lb(this)},o.Di=function(e){CQ(this,u(e,149))},o.Lh=function(e,t,i){switch(e){case 0:return this.b;case 1:return this.c}return tS(this,e,t,i)},o.Wh=function(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return Mx(this,e)},o.bi=function(e,t){switch(e){case 0:CQ(this,u(t,149));return;case 1:MQ(this,t);return}sR(this,e,t)},o.ii=function(){return Mc(),il},o.ki=function(e){switch(e){case 0:CQ(this,null);return;case 1:MQ(this,null);return}cR(this,e)},o.Bi=function(){var e;return this.a==-1&&(e=this.b,this.a=e?mt(e):0),this.a},o.md=function(){return this.c},o.Ci=function(e){this.a=e},o.nd=function(e){var t;return t=this.c,MQ(this,e),t},o.Ib=function(){var e;return this.Db&64?Hs(this):(e=new x1,Be(Be(Be(e,this.b?this.b.Pg():gu),iB),A6(this.c)),e.a)},o.a=-1,o.c=null;var C1=w(Td,"ElkPropertyToValueMapEntryImpl",1122);b(996,1,{},dvn),w(Ui,"JsonAdapter",996),b(216,63,Il,eh),w(Ui,"JsonImportException",216),b(868,1,{},sFn),w(Ui,"JsonImporter",868),b(903,1,{},wTn),w(Ui,"JsonImporter/lambda$0$Type",903),b(904,1,{},gTn),w(Ui,"JsonImporter/lambda$1$Type",904),b(912,1,{},Bkn),w(Ui,"JsonImporter/lambda$10$Type",912),b(914,1,{},pTn),w(Ui,"JsonImporter/lambda$11$Type",914),b(915,1,{},mTn),w(Ui,"JsonImporter/lambda$12$Type",915),b(921,1,{},OOn),w(Ui,"JsonImporter/lambda$13$Type",921),b(920,1,{},AOn),w(Ui,"JsonImporter/lambda$14$Type",920),b(916,1,{},vTn),w(Ui,"JsonImporter/lambda$15$Type",916),b(917,1,{},kTn),w(Ui,"JsonImporter/lambda$16$Type",917),b(918,1,{},yTn),w(Ui,"JsonImporter/lambda$17$Type",918),b(919,1,{},jTn),w(Ui,"JsonImporter/lambda$18$Type",919),b(924,1,{},Fkn),w(Ui,"JsonImporter/lambda$19$Type",924),b(905,1,{},_kn),w(Ui,"JsonImporter/lambda$2$Type",905),b(922,1,{},Hkn),w(Ui,"JsonImporter/lambda$20$Type",922),b(923,1,{},qkn),w(Ui,"JsonImporter/lambda$21$Type",923),b(927,1,{},Ukn),w(Ui,"JsonImporter/lambda$22$Type",927),b(925,1,{},Gkn),w(Ui,"JsonImporter/lambda$23$Type",925),b(926,1,{},zkn),w(Ui,"JsonImporter/lambda$24$Type",926),b(929,1,{},Xkn),w(Ui,"JsonImporter/lambda$25$Type",929),b(928,1,{},Vkn),w(Ui,"JsonImporter/lambda$26$Type",928),b(930,1,re,ETn),o.Cd=function(e){A4e(this.b,this.a,Ae(e))},w(Ui,"JsonImporter/lambda$27$Type",930),b(931,1,re,MTn),o.Cd=function(e){L4e(this.b,this.a,Ae(e))},w(Ui,"JsonImporter/lambda$28$Type",931),b(932,1,{},TTn),w(Ui,"JsonImporter/lambda$29$Type",932),b(908,1,{},Wkn),w(Ui,"JsonImporter/lambda$3$Type",908),b(933,1,{},CTn),w(Ui,"JsonImporter/lambda$30$Type",933),b(934,1,{},Jkn),w(Ui,"JsonImporter/lambda$31$Type",934),b(935,1,{},Qkn),w(Ui,"JsonImporter/lambda$32$Type",935),b(936,1,{},Ykn),w(Ui,"JsonImporter/lambda$33$Type",936),b(937,1,{},Zkn),w(Ui,"JsonImporter/lambda$34$Type",937),b(870,1,{},nyn),w(Ui,"JsonImporter/lambda$35$Type",870),b(941,1,{},kPn),w(Ui,"JsonImporter/lambda$36$Type",941),b(938,1,re,eyn),o.Cd=function(e){R3e(this.a,u(e,377))},w(Ui,"JsonImporter/lambda$37$Type",938),b(939,1,re,STn),o.Cd=function(e){mle(this.a,this.b,u(e,166))},w(Ui,"JsonImporter/lambda$38$Type",939),b(940,1,re,PTn),o.Cd=function(e){vle(this.a,this.b,u(e,166))},w(Ui,"JsonImporter/lambda$39$Type",940),b(906,1,{},tyn),w(Ui,"JsonImporter/lambda$4$Type",906),b(942,1,re,iyn),o.Cd=function(e){K3e(this.a,u(e,8))},w(Ui,"JsonImporter/lambda$40$Type",942),b(907,1,{},ryn),w(Ui,"JsonImporter/lambda$5$Type",907),b(911,1,{},cyn),w(Ui,"JsonImporter/lambda$6$Type",911),b(909,1,{},uyn),w(Ui,"JsonImporter/lambda$7$Type",909),b(910,1,{},oyn),w(Ui,"JsonImporter/lambda$8$Type",910),b(913,1,{},syn),w(Ui,"JsonImporter/lambda$9$Type",913),b(961,1,re,fyn),o.Cd=function(e){Op(this.a,new q0(Ae(e)))},w(Ui,"JsonMetaDataConverter/lambda$0$Type",961),b(962,1,re,hyn),o.Cd=function(e){Iwe(this.a,u(e,245))},w(Ui,"JsonMetaDataConverter/lambda$1$Type",962),b(963,1,re,lyn),o.Cd=function(e){P2e(this.a,u(e,143))},w(Ui,"JsonMetaDataConverter/lambda$2$Type",963),b(964,1,re,ayn),o.Cd=function(e){Owe(this.a,u(e,170))},w(Ui,"JsonMetaDataConverter/lambda$3$Type",964),b(245,22,{3:1,34:1,22:1,245:1},gp);var wA,gA,pU,pA,mA,vA,mU,vU,kA=we(Ly,"GraphFeature",245,ke,dme,t0e),Ioe;b(11,1,{34:1,149:1},lt,Lt,Tn,Di),o.Fd=function(e){return M1e(this,u(e,149))},o.Fb=function(e){return nAn(this,e)},o.Sg=function(){return rn(this)},o.Pg=function(){return this.b},o.Hb=function(){return t1(this.b)},o.Ib=function(){return this.b},w(Ly,"Property",11),b(671,1,De,tL),o.Ne=function(e,t){return D5e(this,u(e,96),u(t,96))},o.Fb=function(e){return this===e},o.Oe=function(){return new Ce(this)},w(Ly,"PropertyHolderComparator",671),b(709,1,Pi,$G),o.Nb=function(e){_i(this,e)},o.Pb=function(){return $4e(this)},o.Qb=function(){sEn()},o.Ob=function(){return!!this.a},w(_P,"ElkGraphUtil/AncestorIterator",709);var Ndn=Dt(or,"EList");b(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),o.bd=function(e,t){v5(this,e,t)},o.Fc=function(e){return ve(this,e)},o.cd=function(e,t){return WQ(this,e,t)},o.Gc=function(e){return Kt(this,e)},o.Ii=function(){return new yp(this)},o.Ji=function(){return new T7(this)},o.Ki=function(e){return pk(this,e)},o.Li=function(){return!0},o.Mi=function(e,t){},o.Ni=function(){},o.Oi=function(e,t){t$(this,e,t)},o.Pi=function(e,t,i){},o.Qi=function(e,t){},o.Ri=function(e,t,i){},o.Fb=function(e){return xqn(this,e)},o.Hb=function(){return GQ(this)},o.Si=function(){return!1},o.Kc=function(){return new ne(this)},o.ed=function(){return new kp(this)},o.fd=function(e){var t;if(t=this.gc(),e<0||e>t)throw T(new F0(e,t));return new oD(this,e)},o.Ui=function(e,t){this.Ti(e,this.dd(t))},o.Mc=function(e){return rC(this,e)},o.Wi=function(e,t){return t},o.hd=function(e,t){return Bg(this,e,t)},o.Ib=function(){return BY(this)},o.Yi=function(){return!0},o.Zi=function(e,t){return rm(this,t)},w(or,"AbstractEList",70),b(66,70,Mh,EE,Pb,BQ),o.Ei=function(e,t){return Zx(this,e,t)},o.Fi=function(e){return NBn(this,e)},o.Gi=function(e,t){Lk(this,e,t)},o.Hi=function(e){ek(this,e)},o.$i=function(e){return ZJ(this,e)},o.$b=function(){e5(this)},o.Hc=function(e){return km(this,e)},o.Xb=function(e){return N(this,e)},o._i=function(e){var t,i,r;++this.j,i=this.g==null?0:this.g.length,e>i&&(r=this.g,t=i+(i/2|0)+4,t<e&&(t=e),this.g=this.aj(t),r!=null&&Oc(r,0,this.g,0,this.i))},o.dd=function(e){return eFn(this,e)},o.dc=function(){return this.i==0},o.Ti=function(e,t){return lR(this,e,t)},o.aj=function(e){return F(ki,Kn,1,e,5,1)},o.Vi=function(e){return this.g[e]},o.gd=function(e){return Jp(this,e)},o.Xi=function(e,t){return d$(this,e,t)},o.gc=function(){return this.i},o.Pc=function(){return yJ(this)},o.Qc=function(e){return VY(this,e)},o.i=0;var Ddn=w(or,"BasicEList",66),$dn=Dt(or,"TreeIterator");b(708,66,yF),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.g==null&&!this.c?rJ(this):this.g==null||this.i!=0&&u(this.g[this.i-1],51).Ob()},o.Pb=function(){return MS(this)},o.Qb=function(){if(!this.e)throw T(new Ar("There is no valid object to remove."));this.e.Qb()},o.c=!1,w(or,"AbstractTreeIterator",708),b(700,708,yF,CX),o.bj=function(e){var t;return t=u(e,58).Gh().Kc(),L(t,287)&&u(t,287).wl(new bvn),t},w(_P,"ElkGraphUtil/PropertiesSkippingTreeIterator",700),b(965,1,{},bvn),w(_P,"ElkGraphUtil/PropertiesSkippingTreeIterator/1",965);var hE,kU,lE=w(_P,"ElkReflect",null);b(901,1,Tw,wvn),o.Rg=function(e){return $T(),O2e(u(e,181))},w(_P,"ElkReflect/lambda$0$Type",901);var La;Dt(or,"ResourceLocator"),b(1065,1,{}),w(or,"DelegatingResourceLocator",1065),b(1066,1065,{}),w("org.eclipse.emf.common","EMFPlugin",1066);var yU=Dt(QWn,"Adapter"),ADe=Dt(QWn,"Notification");b(1174,1,_cn),o.cj=function(){return this.d},o.dj=function(e){},o.ej=function(e){this.d=e},o.fj=function(e){this.d==e&&(this.d=null)},o.d=null,w(g3,"AdapterImpl",1174),b(2093,70,YWn),o.Ei=function(e,t){return qY(this,e,t)},o.Fi=function(e){var t,i,r;if(++this.j,e.dc())return!1;for(t=this.Ej(),r=e.Kc();r.Ob();)i=r.Pb(),this.rj(this.Zi(t,i)),++t;return!0},o.Gi=function(e,t){OSn(this,e,t)},o.Hi=function(e){eOn(this,e)},o.pj=function(){return this.sj()},o.$b=function(){P7(this,this.Ej(),this.Fj())},o.Hc=function(e){return this.uj(e)},o.Ic=function(e){return this.vj(e)},o.qj=function(e,t){this.Bj().Um()},o.rj=function(e){this.Bj().Um()},o.sj=function(){return this.Bj()},o.tj=function(){this.Bj().Um()},o.uj=function(e){return this.Bj().Um()},o.vj=function(e){return this.Bj().Um()},o.wj=function(e){return this.Bj().Um()},o.xj=function(e){return this.Bj().Um()},o.yj=function(){return this.Bj().Um()},o.zj=function(e){return this.Bj().Um()},o.Aj=function(){return this.Bj().Um()},o.Cj=function(e){return this.Bj().Um()},o.Dj=function(e,t){return this.Bj().Um()},o.Ej=function(){return this.Bj().Um()},o.Fj=function(){return this.Bj().Um()},o.Gj=function(e){return this.Bj().Um()},o.Hj=function(){return this.Bj().Um()},o.Fb=function(e){return this.wj(e)},o.Xb=function(e){return this.Wi(e,this.xj(e))},o.Hb=function(){return this.yj()},o.dd=function(e){return this.zj(e)},o.dc=function(){return this.Aj()},o.Ti=function(e,t){return unn(this,e,t)},o.Vi=function(e){return this.xj(e)},o.gd=function(e){return tT(this,e)},o.Mc=function(e){var t;return t=this.dd(e),t>=0?(this.gd(t),!0):!1},o.Xi=function(e,t){return this.Dj(e,this.Zi(e,t))},o.gc=function(){return this.Ej()},o.Pc=function(){return this.Fj()},o.Qc=function(e){return this.Gj(e)},o.Ib=function(){return this.Hj()},w(or,"DelegatingEList",2093),b(2094,2093,YWn),o.Ei=function(e,t){return Den(this,e,t)},o.Fi=function(e){return this.Ei(this.Ej(),e)},o.Gi=function(e,t){EHn(this,e,t)},o.Hi=function(e){lHn(this,e)},o.Li=function(){return!this.Mj()},o.$b=function(){X5(this)},o.Ij=function(e,t,i,r,c){return new ZOn(this,e,t,i,r,c)},o.Jj=function(e){it(this.jj(),e)},o.Kj=function(){return null},o.Lj=function(){return-1},o.jj=function(){return null},o.Mj=function(){return!1},o.Nj=function(e,t){return t},o.Oj=function(e,t){return t},o.Pj=function(){return!1},o.Qj=function(){return!this.Aj()},o.Ti=function(e,t){var i,r;return this.Pj()?(r=this.Qj(),i=unn(this,e,t),this.Jj(this.Ij(7,Y(t),i,e,r)),i):unn(this,e,t)},o.gd=function(e){var t,i,r,c;return this.Pj()?(i=null,r=this.Qj(),t=this.Ij(4,c=tT(this,e),null,e,r),this.Mj()&&c?(i=this.Oj(c,i),i?(i.nj(t),i.oj()):this.Jj(t)):i?(i.nj(t),i.oj()):this.Jj(t),c):(c=tT(this,e),this.Mj()&&c&&(i=this.Oj(c,null),i&&i.oj()),c)},o.Xi=function(e,t){return OUn(this,e,t)},w(g3,"DelegatingNotifyingListImpl",2094),b(152,1,Wy),o.nj=function(e){return GZ(this,e)},o.oj=function(){h$(this)},o.gj=function(){return this.d},o.Kj=function(){return null},o.Rj=function(){return null},o.hj=function(e){return-1},o.ij=function(){return pqn(this)},o.jj=function(){return null},o.kj=function(){return len(this)},o.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},o.Sj=function(){return!1},o.mj=function(e){var t,i,r,c,s,f,h,l,a,d,g;switch(this.d){case 1:case 2:switch(c=e.gj(),c){case 1:case 2:if(s=e.jj(),x(s)===x(this.jj())&&this.hj(null)==e.hj(null))return this.g=e.ij(),e.gj()==1&&(this.d=1),!0}case 4:{switch(c=e.gj(),c){case 4:{if(s=e.jj(),x(s)===x(this.jj())&&this.hj(null)==e.hj(null))return a=Qen(this),l=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,f=e.lj(),this.d=6,g=new Pb(2),l<=f?(ve(g,this.n),ve(g,e.kj()),this.g=S(C(ye,1),_e,28,15,[this.o=l,f+1])):(ve(g,e.kj()),ve(g,this.n),this.g=S(C(ye,1),_e,28,15,[this.o=f,l])),this.n=g,a||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(c=e.gj(),c){case 4:{if(s=e.jj(),x(s)===x(this.jj())&&this.hj(null)==e.hj(null)){for(a=Qen(this),f=e.lj(),d=u(this.g,53),r=F(ye,_e,28,d.length+1,15,1),t=0;t<d.length&&(h=d[t],h<=f);)r[t++]=h,++f;for(i=u(this.n,15),i.bd(t,e.kj()),r[t]=f;++t<r.length;)r[t]=d[t-1];return this.g=r,a||(this.o=-2-r[0]),!0}break}}break}}return!1},o.Ib=function(){var e,t,i,r;switch(r=new ls(Xa(this.Rm)+"@"+(t=mt(this)>>>0,t.toString(16))),r.a+=" (eventType: ",this.d){case 1:{r.a+="SET";break}case 2:{r.a+="UNSET";break}case 3:{r.a+="ADD";break}case 5:{r.a+="ADD_MANY";break}case 4:{r.a+="REMOVE";break}case 6:{r.a+="REMOVE_MANY";break}case 7:{r.a+="MOVE";break}case 8:{r.a+="REMOVING_ADAPTER";break}case 9:{r.a+="RESOLVE";break}default:{CL(r,this.d);break}}if(rUn(this)&&(r.a+=", touch: true"),r.a+=", position: ",CL(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=", notifier: ",T6(r,this.jj()),r.a+=", feature: ",T6(r,this.Kj()),r.a+=", oldValue: ",T6(r,len(this)),r.a+=", newValue: ",this.d==6&&L(this.g,53)){for(i=u(this.g,53),r.a+="[",e=0;e<i.length;)r.a+=i[e],++e<i.length&&(r.a+=ur);r.a+="]"}else T6(r,pqn(this));return r.a+=", isTouch: ",ql(r,rUn(this)),r.a+=", wasSet: ",ql(r,Qen(this)),r.a+=")",r.a},o.d=0,o.e=0,o.f=0,o.j=0,o.k=0,o.o=0,o.p=0,w(g3,"NotificationImpl",152),b(1188,152,Wy,ZOn),o.Kj=function(){return this.a.Kj()},o.hj=function(e){return this.a.Lj()},o.jj=function(){return this.a.jj()},w(g3,"DelegatingNotifyingListImpl/1",1188),b(251,66,Mh,gvn,R1),o.Fc=function(e){return CKn(this,u(e,378))},o.nj=function(e){return CKn(this,e)},o.oj=function(){var e,t,i;for(e=0;e<this.i;++e)t=u(this.g[e],378),i=t.jj(),i!=null&&t.gj()!=-1&&u(i,94).xh(t)},o.aj=function(e){return F(ADe,Kn,378,e,0,1)},w(g3,"NotificationChainImpl",251),b(1524,93,hWn),o.uh=function(){return this.e},o.wh=function(){return(this.f&1)!=0},o.f=1,w(g3,"NotifierImpl",1524),b(2091,66,Mh),o.Ei=function(e,t){return LR(this,e,t)},o.Fi=function(e){return this.Ei(this.i,e)},o.Gi=function(e,t){Knn(this,e,t)},o.Hi=function(e){aR(this,e)},o.Li=function(){return!this.Mj()},o.$b=function(){me(this)},o.Ij=function(e,t,i,r,c){return new YOn(this,e,t,i,r,c)},o.Jj=function(e){it(this.jj(),e)},o.Kj=function(){return null},o.Lj=function(){return-1},o.jj=function(){return null},o.Mj=function(){return!1},o.Tj=function(){return!1},o.Nj=function(e,t){return t},o.Oj=function(e,t){return t},o.Pj=function(){return!1},o.Qj=function(){return this.i!=0},o.Ti=function(e,t){return k5(this,e,t)},o.gd=function(e){return dw(this,e)},o.Xi=function(e,t){return XUn(this,e,t)},o.Uj=function(e,t){return t},o.Vj=function(e,t){return t},o.Wj=function(e,t,i){return i},w(g3,"NotifyingListImpl",2091),b(1187,152,Wy,YOn),o.Kj=function(){return this.a.Kj()},o.hj=function(e){return this.a.Lj()},o.jj=function(){return this.a.jj()},w(g3,"NotifyingListImpl/1",1187),b(966,66,Mh,NSn),o.Hc=function(e){return this.i>10?((!this.b||this.c.j!=this.a)&&(this.b=new R6(this),this.a=this.j),sf(this.b,e)):km(this,e)},o.Yi=function(){return!0},o.a=0,w(or,"AbstractEList/1",966),b(302,77,SK,F0),w(or,"AbstractEList/BasicIndexOutOfBoundsException",302),b(37,1,Pi,ne),o.Nb=function(e){_i(this,e)},o.Xj=function(){if(this.i.j!=this.f)throw T(new Ko)},o.Yj=function(){return ue(this)},o.Ob=function(){return this.e!=this.i.gc()},o.Pb=function(){return this.Yj()},o.Qb=function(){A5(this)},o.e=0,o.f=0,o.g=-1,w(or,"AbstractEList/EIterator",37),b(286,37,Hh,kp,oD),o.Qb=function(){A5(this)},o.Rb=function(e){AKn(this,e)},o.Zj=function(){var e;try{return e=this.d.Xb(--this.e),this.Xj(),this.g=this.e,e}catch(t){throw t=Ot(t),L(t,77)?(this.Xj(),T(new nc)):T(t)}},o.$j=function(e){xBn(this,e)},o.Sb=function(){return this.e!=0},o.Tb=function(){return this.e},o.Ub=function(){return this.Zj()},o.Vb=function(){return this.e-1},o.Wb=function(e){this.$j(e)},w(or,"AbstractEList/EListIterator",286),b(355,37,Pi,yp),o.Yj=function(){return Tx(this)},o.Qb=function(){throw T(new Ie)},w(or,"AbstractEList/NonResolvingEIterator",355),b(398,286,Hh,T7,SV),o.Rb=function(e){throw T(new Ie)},o.Yj=function(){var e;try{return e=this.c.Vi(this.e),this.Xj(),this.g=this.e++,e}catch(t){throw t=Ot(t),L(t,77)?(this.Xj(),T(new nc)):T(t)}},o.Zj=function(){var e;try{return e=this.c.Vi(--this.e),this.Xj(),this.g=this.e,e}catch(t){throw t=Ot(t),L(t,77)?(this.Xj(),T(new nc)):T(t)}},o.Qb=function(){throw T(new Ie)},o.Wb=function(e){throw T(new Ie)},w(or,"AbstractEList/NonResolvingEListIterator",398),b(2080,70,ZWn),o.Ei=function(e,t){var i,r,c,s,f,h,l,a,d,g,p;if(c=t.gc(),c!=0){for(a=u(Un(this.a,4),129),d=a==null?0:a.length,p=d+c,r=V$(this,p),g=d-e,g>0&&Oc(a,e,r,e+c,g),l=t.Kc(),f=0;f<c;++f)h=l.Pb(),i=e+f,mN(r,i,rm(this,h));for(gm(this,r),s=0;s<c;++s)h=r[e],this.Mi(e,h),++e;return!0}else return++this.j,!1},o.Fi=function(e){var t,i,r,c,s,f,h,l,a;if(r=e.gc(),r!=0){for(l=(i=u(Un(this.a,4),129),i==null?0:i.length),a=l+r,t=V$(this,a),h=e.Kc(),s=l;s<a;++s)f=h.Pb(),mN(t,s,rm(this,f));for(gm(this,t),c=l;c<a;++c)f=t[c],this.Mi(c,f);return!0}else return++this.j,!1},o.Gi=function(e,t){var i,r,c,s;r=u(Un(this.a,4),129),c=r==null?0:r.length,i=V$(this,c+1),s=rm(this,t),e!=c&&Oc(r,e,i,e+1,c-e),$t(i,e,s),gm(this,i),this.Mi(e,t)},o.Hi=function(e){var t,i,r;r=(i=u(Un(this.a,4),129),i==null?0:i.length),t=V$(this,r+1),mN(t,r,rm(this,e)),gm(this,t),this.Mi(r,e)},o.Ii=function(){return new ENn(this)},o.Ji=function(){return new $In(this)},o.Ki=function(e){var t,i;if(i=(t=u(Un(this.a,4),129),t==null?0:t.length),e<0||e>i)throw T(new F0(e,i));return new yOn(this,e)},o.$b=function(){var e,t;++this.j,e=u(Un(this.a,4),129),t=e==null?0:e.length,gm(this,null),t$(this,t,e)},o.Hc=function(e){var t,i,r,c,s;if(t=u(Un(this.a,4),129),t!=null){if(e!=null){for(r=t,c=0,s=r.length;c<s;++c)if(i=r[c],rt(e,i))return!0}else for(r=t,c=0,s=r.length;c<s;++c)if(i=r[c],x(i)===x(e))return!0}return!1},o.Xb=function(e){var t,i;if(t=u(Un(this.a,4),129),i=t==null?0:t.length,e>=i)throw T(new F0(e,i));return t[e]},o.dd=function(e){var t,i,r;if(t=u(Un(this.a,4),129),t!=null){if(e!=null){for(i=0,r=t.length;i<r;++i)if(rt(e,t[i]))return i}else for(i=0,r=t.length;i<r;++i)if(x(t[i])===x(e))return i}return-1},o.dc=function(){return u(Un(this.a,4),129)==null},o.Kc=function(){return new jNn(this)},o.ed=function(){return new DIn(this)},o.fd=function(e){var t,i;if(i=(t=u(Un(this.a,4),129),t==null?0:t.length),e<0||e>i)throw T(new F0(e,i));return new kOn(this,e)},o.Ti=function(e,t){var i,r,c;if(i=_Kn(this),c=i==null?0:i.length,e>=c)throw T(new Or(vF+e+Cd+c));if(t>=c)throw T(new Or(kF+t+Cd+c));return r=i[t],e!=t&&(e<t?Oc(i,e,i,e+1,t-e):Oc(i,t+1,i,t,e-t),$t(i,e,r),gm(this,i)),r},o.Vi=function(e){return u(Un(this.a,4),129)[e]},o.gd=function(e){return bMe(this,e)},o.Xi=function(e,t){var i,r;return i=_Kn(this),r=i[e],mN(i,e,rm(this,t)),gm(this,i),r},o.gc=function(){var e;return e=u(Un(this.a,4),129),e==null?0:e.length},o.Pc=function(){var e,t,i;return e=u(Un(this.a,4),129),i=e==null?0:e.length,t=F(yU,TF,424,i,0,1),i>0&&Oc(e,0,t,0,i),t},o.Qc=function(e){var t,i,r;return t=u(Un(this.a,4),129),r=t==null?0:t.length,r>0&&(e.length<r&&(i=gk(wo(e).c,r),e=i),Oc(t,0,e,0,r)),e.length>r&&$t(e,r,null),e};var Ooe;w(or,"ArrayDelegatingEList",2080),b(1051,37,Pi,jNn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw T(new Ko)},o.Qb=function(){A5(this),this.a=u(Un(this.b.a,4),129)},w(or,"ArrayDelegatingEList/EIterator",1051),b(722,286,Hh,DIn,kOn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw T(new Ko)},o.$j=function(e){xBn(this,e),this.a=u(Un(this.b.a,4),129)},o.Qb=function(){A5(this),this.a=u(Un(this.b.a,4),129)},w(or,"ArrayDelegatingEList/EListIterator",722),b(1052,355,Pi,ENn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw T(new Ko)},w(or,"ArrayDelegatingEList/NonResolvingEIterator",1052),b(723,398,Hh,$In,yOn),o.Xj=function(){if(this.b.j!=this.f||x(u(Un(this.b.a,4),129))!==x(this.a))throw T(new Ko)},w(or,"ArrayDelegatingEList/NonResolvingEListIterator",723),b(615,302,SK,aN),w(or,"BasicEList/BasicIndexOutOfBoundsException",615),b(710,66,Mh,wX),o.bd=function(e,t){throw T(new Ie)},o.Fc=function(e){throw T(new Ie)},o.cd=function(e,t){throw T(new Ie)},o.Gc=function(e){throw T(new Ie)},o.$b=function(){throw T(new Ie)},o._i=function(e){throw T(new Ie)},o.Kc=function(){return this.Ii()},o.ed=function(){return this.Ji()},o.fd=function(e){return this.Ki(e)},o.Ti=function(e,t){throw T(new Ie)},o.Ui=function(e,t){throw T(new Ie)},o.gd=function(e){throw T(new Ie)},o.Mc=function(e){throw T(new Ie)},o.hd=function(e,t){throw T(new Ie)},w(or,"BasicEList/UnmodifiableEList",710),b(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),o.bd=function(e,t){a1e(this,e,u(t,44))},o.Fc=function(e){return cae(this,u(e,44))},o.Jc=function(e){qi(this,e)},o.Xb=function(e){return u(N(this.c,e),136)},o.Ti=function(e,t){return u(this.c.Ti(e,t),44)},o.Ui=function(e,t){d1e(this,e,u(t,44))},o.Lc=function(){return new Cn(null,new On(this,16))},o.gd=function(e){return u(this.c.gd(e),44)},o.hd=function(e,t){return Pwe(this,e,u(t,44))},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.Oc=function(){return new Cn(null,new On(this,16))},o.cd=function(e,t){return this.c.cd(e,t)},o.Gc=function(e){return this.c.Gc(e)},o.$b=function(){this.c.$b()},o.Hc=function(e){return this.c.Hc(e)},o.Ic=function(e){return Ek(this.c,e)},o._j=function(){var e,t,i;if(this.d==null){for(this.d=F(Ddn,Hcn,66,2*this.f+1,0,1),i=this.e,this.f=0,t=this.c.Kc();t.e!=t.i.gc();)e=u(t.Yj(),136),uS(this,e);this.e=i}},o.Fb=function(e){return sPn(this,e)},o.Hb=function(){return GQ(this.c)},o.dd=function(e){return this.c.dd(e)},o.ak=function(){this.c=new dyn(this)},o.dc=function(){return this.f==0},o.Kc=function(){return this.c.Kc()},o.ed=function(){return this.c.ed()},o.fd=function(e){return this.c.fd(e)},o.bk=function(){return rk(this)},o.ck=function(e,t,i){return new yPn(e,t,i)},o.dk=function(){return new pvn},o.Mc=function(e){return V$n(this,e)},o.gc=function(){return this.f},o.kd=function(e,t){return new Jl(this.c,e,t)},o.Pc=function(){return this.c.Pc()},o.Qc=function(e){return this.c.Qc(e)},o.Ib=function(){return BY(this.c)},o.e=0,o.f=0,w(or,"BasicEMap",721),b(1046,66,Mh,dyn),o.Mi=function(e,t){Ufe(this,u(t,136))},o.Pi=function(e,t,i){var r;++(r=this,u(t,136),r).a.e},o.Qi=function(e,t){Gfe(this,u(t,136))},o.Ri=function(e,t,i){U1e(this,u(t,136),u(i,136))},o.Oi=function(e,t){_xn(this.a)},w(or,"BasicEMap/1",1046),b(1047,66,Mh,pvn),o.aj=function(e){return F(LDe,nJn,621,e,0,1)},w(or,"BasicEMap/2",1047),b(1048,Ff,Nu,byn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){return wx(this.a,e)},o.Kc=function(){return this.a.f==0?(m4(),aE.a):new Jjn(this.a)},o.Mc=function(e){var t;return t=this.a.f,VC(this.a,e),this.a.f!=t},o.gc=function(){return this.a.f},w(or,"BasicEMap/3",1048),b(1049,31,pw,wyn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){return Rqn(this.a,e)},o.Kc=function(){return this.a.f==0?(m4(),aE.a):new Qjn(this.a)},o.gc=function(){return this.a.f},w(or,"BasicEMap/4",1049),b(1050,Ff,Nu,gyn),o.$b=function(){this.a.c.$b()},o.Hc=function(e){var t,i,r,c,s,f,h,l,a;if(this.a.f>0&&L(e,44)&&(this.a._j(),l=u(e,44),h=l.ld(),c=h==null?0:mt(h),s=aV(this.a,c),t=this.a.d[s],t)){for(i=u(t.g,379),a=t.i,f=0;f<a;++f)if(r=i[f],r.Bi()==c&&r.Fb(l))return!0}return!1},o.Kc=function(){return this.a.f==0?(m4(),aE.a):new MD(this.a)},o.Mc=function(e){return PHn(this,e)},o.gc=function(){return this.a.f},w(or,"BasicEMap/5",1050),b(622,1,Pi,MD),o.Nb=function(e){_i(this,e)},o.Ob=function(){return this.b!=-1},o.Pb=function(){var e;if(this.f.e!=this.c)throw T(new Ko);if(this.b==-1)throw T(new nc);return this.d=this.a,this.e=this.b,bFn(this),e=u(this.f.d[this.d].g[this.e],136),this.ek(e)},o.Qb=function(){if(this.f.e!=this.c)throw T(new Ko);if(this.e==-1)throw T(new Mu);this.f.c.Mc(N(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&this.b!=-1&&--this.b},o.ek=function(e){return e},o.a=0,o.b=-1,o.c=0,o.d=0,o.e=0,w(or,"BasicEMap/BasicEMapIterator",622),b(1044,622,Pi,Jjn),o.ek=function(e){return e.ld()},w(or,"BasicEMap/BasicEMapKeyIterator",1044),b(1045,622,Pi,Qjn),o.ek=function(e){return e.md()},w(or,"BasicEMap/BasicEMapValueIterator",1045),b(1043,1,Xb,pyn),o.wc=function(e){f5(this,e)},o.yc=function(e,t,i){return hx(this,e,t,i)},o.$b=function(){this.a.c.$b()},o._b=function(e){return OTn(this,e)},o.uc=function(e){return Rqn(this.a,e)},o.vc=function(){return d4e(this.a)},o.Fb=function(e){return sPn(this.a,e)},o.xc=function(e){return gf(this.a,e)},o.Hb=function(){return GQ(this.a.c)},o.dc=function(){return this.a.f==0},o.ec=function(){return l4e(this.a)},o.zc=function(e,t){return zk(this.a,e,t)},o.Bc=function(e){return VC(this.a,e)},o.gc=function(){return this.a.f},o.Ib=function(){return BY(this.a.c)},o.Cc=function(){return a4e(this.a)},w(or,"BasicEMap/DelegatingMap",1043),b(621,1,{44:1,136:1,621:1},yPn),o.Fb=function(e){var t;return L(e,44)?(t=u(e,44),(this.b!=null?rt(this.b,t.ld()):x(this.b)===x(t.ld()))&&(this.c!=null?rt(this.c,t.md()):x(this.c)===x(t.md()))):!1},o.Bi=function(){return this.a},o.ld=function(){return this.b},o.md=function(){return this.c},o.Hb=function(){return this.a^(this.c==null?0:mt(this.c))},o.Ci=function(e){this.a=e},o.Di=function(e){throw T(new Ga)},o.nd=function(e){var t;return t=this.c,this.c=e,t},o.Ib=function(){return this.b+"->"+this.c},o.a=0;var LDe=w(or,"BasicEMap/EntryImpl",621);b(546,1,{},ME),w(or,"BasicEMap/View",546);var aE;b(783,1,{}),o.Fb=function(e){return Vnn((Ln(),sr),e)},o.Hb=function(){return iY((Ln(),sr))},o.Ib=function(){return ca((Ln(),sr))},w(or,"ECollections/BasicEmptyUnmodifiableEList",783),b(1348,1,Hh,mvn),o.Nb=function(e){_i(this,e)},o.Rb=function(e){throw T(new Ie)},o.Ob=function(){return!1},o.Sb=function(){return!1},o.Pb=function(){throw T(new nc)},o.Tb=function(){return 0},o.Ub=function(){throw T(new nc)},o.Vb=function(){return-1},o.Qb=function(){throw T(new Ie)},o.Wb=function(e){throw T(new Ie)},w(or,"ECollections/BasicEmptyUnmodifiableEList/1",1348),b(1346,783,{20:1,16:1,15:1,61:1},ujn),o.bd=function(e,t){yEn()},o.Fc=function(e){return jEn()},o.cd=function(e,t){return EEn()},o.Gc=function(e){return MEn()},o.$b=function(){TEn()},o.Hc=function(e){return!1},o.Ic=function(e){return!1},o.Jc=function(e){qi(this,e)},o.Xb=function(e){return mX((Ln(),e)),null},o.dd=function(e){return-1},o.dc=function(){return!0},o.Kc=function(){return this.a},o.ed=function(){return this.a},o.fd=function(e){return this.a},o.Ti=function(e,t){return CEn()},o.Ui=function(e,t){SEn()},o.Lc=function(){return new Cn(null,new On(this,16))},o.gd=function(e){return PEn()},o.Mc=function(e){return IEn()},o.hd=function(e,t){return OEn()},o.gc=function(){return 0},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.Oc=function(){return new Cn(null,new On(this,16))},o.kd=function(e,t){return Ln(),new Jl(sr,e,t)},o.Pc=function(){return wW((Ln(),sr))},o.Qc=function(e){return Ln(),S5(sr,e)},w(or,"ECollections/EmptyUnmodifiableEList",1346),b(1347,783,{20:1,16:1,15:1,61:1,597:1},ojn),o.bd=function(e,t){yEn()},o.Fc=function(e){return jEn()},o.cd=function(e,t){return EEn()},o.Gc=function(e){return MEn()},o.$b=function(){TEn()},o.Hc=function(e){return!1},o.Ic=function(e){return!1},o.Jc=function(e){qi(this,e)},o.Xb=function(e){return mX((Ln(),e)),null},o.dd=function(e){return-1},o.dc=function(){return!0},o.Kc=function(){return this.a},o.ed=function(){return this.a},o.fd=function(e){return this.a},o.Ti=function(e,t){return CEn()},o.Ui=function(e,t){SEn()},o.Lc=function(){return new Cn(null,new On(this,16))},o.gd=function(e){return PEn()},o.Mc=function(e){return IEn()},o.hd=function(e,t){return OEn()},o.gc=function(){return 0},o.jd=function(e){ud(this,e)},o.Nc=function(){return new On(this,16)},o.Oc=function(){return new Cn(null,new On(this,16))},o.kd=function(e,t){return Ln(),new Jl(sr,e,t)},o.Pc=function(){return wW((Ln(),sr))},o.Qc=function(e){return Ln(),S5(sr,e)},o.bk=function(){return Ln(),Ln(),Wh},w(or,"ECollections/EmptyUnmodifiableEMap",1347);var xdn=Dt(or,"Enumerator"),yA;b(288,1,{288:1},jR),o.Fb=function(e){var t;return this===e?!0:L(e,288)?(t=u(e,288),this.f==t.f&&U0e(this.i,t.i)&&WN(this.a,this.f&256?t.f&256?t.a:null:t.f&256?null:t.a)&&WN(this.d,t.d)&&WN(this.g,t.g)&&WN(this.e,t.e)&&b9e(this,t)):!1},o.Hb=function(){return this.f},o.Ib=function(){return gUn(this)},o.f=0;var Aoe=0,Loe=0,Noe=0,Doe=0,Rdn=0,Kdn=0,Bdn=0,Fdn=0,_dn=0,$oe,L9=0,N9=0,xoe=0,Roe=0,jA,Hdn;w(or,"URI",288),b(1121,45,n2,sjn),o.zc=function(e,t){return u(Lr(this,Ae(e),u(t,288)),288)},w(or,"URI/URICache",1121),b(506,66,Mh,avn,sT),o.Si=function(){return!0},w(or,"UniqueEList",506),b(590,63,Il,eC),w(or,"WrappedException",590);var Ue=Dt(ts,iJn),Zw=Dt(ts,rJn),ku=Dt(ts,cJn),ng=Dt(ts,uJn),Mf=Dt(ts,oJn),Ss=Dt(ts,"EClass"),jU=Dt(ts,"EDataType"),Koe;b(1233,45,n2,fjn),o.xc=function(e){return Si(e)?Dc(this,e):Fr(wr(this.f,e))},w(ts,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233);var EA=Dt(ts,"EEnum"),Kl=Dt(ts,sJn),jr=Dt(ts,fJn),Ps=Dt(ts,hJn),Is,y0=Dt(ts,lJn),eg=Dt(ts,aJn);b(1042,1,{},lvn),o.Ib=function(){return"NIL"},w(ts,"EStructuralFeature/Internal/DynamicValueHolder/1",1042);var Boe;b(1041,45,n2,hjn),o.xc=function(e){return Si(e)?Dc(this,e):Fr(wr(this.f,e))},w(ts,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041);var fu=Dt(ts,dJn),B3=Dt(ts,"EValidator/PatternMatcher"),qdn,Udn,Hn,S1,tg,Na,Foe,_oe,Hoe,Da,P1,$a,j0,Zf,qoe,Uoe,Os,I1,Goe,O1,ig,U2,ar,zoe,Xoe,E0,MA=Dt(Ct,"FeatureMap/Entry");b(545,1,{76:1},TM),o.Lk=function(){return this.a},o.md=function(){return this.b},w(qn,"BasicEObjectImpl/1",545),b(1040,1,CF,LTn),o.Fk=function(e){return YD(this.a,this.b,e)},o.Qj=function(){return bAn(this.a,this.b)},o.Wb=function(e){iJ(this.a,this.b,e)},o.Gk=function(){_we(this.a,this.b)},w(qn,"BasicEObjectImpl/4",1040),b(2081,1,{114:1}),o.Mk=function(e){this.e=e==0?Voe:F(ki,Kn,1,e,5,1)},o.li=function(e){return this.e[e]},o.mi=function(e,t){this.e[e]=t},o.ni=function(e){this.e[e]=null},o.Nk=function(){return this.c},o.Ok=function(){throw T(new Ie)},o.Pk=function(){throw T(new Ie)},o.Qk=function(){return this.d},o.Rk=function(){return this.e!=null},o.Sk=function(e){this.c=e},o.Tk=function(e){throw T(new Ie)},o.Uk=function(e){throw T(new Ie)},o.Vk=function(e){this.d=e};var Voe;w(qn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081),b(192,2081,{114:1},uf),o.Ok=function(){return this.a},o.Pk=function(){return this.b},o.Tk=function(e){this.a=e},o.Uk=function(e){this.b=e},w(qn,"BasicEObjectImpl/EPropertiesHolderImpl",192),b(516,99,bWn,TE),o.uh=function(){return this.f},o.zh=function(){return this.k},o.Bh=function(e,t){this.g=e,this.i=t},o.Dh=function(){return this.j&2?this.$h().Nk():this.ii()},o.Fh=function(){return this.i},o.wh=function(){return(this.j&1)!=0},o.Ph=function(){return this.g},o.Vh=function(){return(this.j&4)!=0},o.$h=function(){return!this.k&&(this.k=new uf),this.k},o.ci=function(e){this.$h().Sk(e),e?this.j|=2:this.j&=-3},o.ei=function(e){this.$h().Uk(e),e?this.j|=4:this.j&=-5},o.ii=function(){return(G1(),Hn).S},o.i=0,o.j=1,w(qn,"EObjectImpl",516),b(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},YV),o.li=function(e){return this.e[e]},o.mi=function(e,t){this.e[e]=t},o.ni=function(e){this.e[e]=null},o.Dh=function(){return this.d},o.Ih=function(e){return At(this.d,e)},o.Kh=function(){return this.d},o.Oh=function(){return this.e!=null},o.$h=function(){return!this.k&&(this.k=new vvn),this.k},o.ci=function(e){this.d=e},o.hi=function(){var e;return this.e==null&&(e=se(this.d),this.e=e==0?Woe:F(ki,Kn,1,e,5,1)),this},o.ji=function(){return 0};var Woe;w(qn,"DynamicEObjectImpl",798),b(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},zPn),o.Fb=function(e){return this===e},o.Hb=function(){return lb(this)},o.ci=function(e){this.d=e,this.b=oy(e,"key"),this.c=oy(e,g8)},o.Bi=function(){var e;return this.a==-1&&(e=l$(this,this.b),this.a=e==null?0:mt(e)),this.a},o.ld=function(){return l$(this,this.b)},o.md=function(){return l$(this,this.c)},o.Ci=function(e){this.a=e},o.Di=function(e){iJ(this,this.b,e)},o.nd=function(e){var t;return t=l$(this,this.c),iJ(this,this.c,e),t},o.a=0,w(qn,"DynamicEObjectImpl/BasicEMapEntry",1522),b(1523,1,{114:1},vvn),o.Mk=function(e){throw T(new Ie)},o.li=function(e){throw T(new Ie)},o.mi=function(e,t){throw T(new Ie)},o.ni=function(e){throw T(new Ie)},o.Nk=function(){throw T(new Ie)},o.Ok=function(){return this.a},o.Pk=function(){return this.b},o.Qk=function(){return this.c},o.Rk=function(){throw T(new Ie)},o.Sk=function(e){throw T(new Ie)},o.Tk=function(e){this.a=e},o.Uk=function(e){this.b=e},o.Vk=function(e){this.c=e},w(qn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523),b(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},eG),o.Ah=function(e){return PZ(this,e)},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.d;case 2:return i?(!this.b&&(this.b=new lo((An(),ar),pc,this)),this.b):(!this.b&&(this.b=new lo((An(),ar),pc,this)),rk(this.b));case 3:return vAn(this);case 4:return!this.a&&(this.a=new ti(Aa,this,4)),this.a;case 5:return!this.c&&(this.c=new Eg(Aa,this,5)),this.c}return zo(this,e-se((An(),S1)),$n((r=u(Un(this,16),29),r||S1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 3:return this.Cb&&(i=(c=this.Db>>16,c>=0?PZ(this,i):this.Cb.Th(this,-1-c,null,i))),bW(this,u(e,155),i)}return s=u($n((r=u(Un(this,16),29),r||(An(),S1)),t),69),s.wk().zk(this,iu(this),t-se((An(),S1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 2:return!this.b&&(this.b=new lo((An(),ar),pc,this)),UM(this.b,e,i);case 3:return bW(this,null,i);case 4:return!this.a&&(this.a=new ti(Aa,this,4)),cr(this.a,e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),S1)),t),69),c.wk().Ak(this,iu(this),t-se((An(),S1)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!vAn(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return Uo(this,e-se((An(),S1)),$n((t=u(Un(this,16),29),t||S1),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:A0e(this,Ae(t));return;case 2:!this.b&&(this.b=new lo((An(),ar),pc,this)),CC(this.b,t);return;case 3:rqn(this,u(t,155));return;case 4:!this.a&&(this.a=new ti(Aa,this,4)),me(this.a),!this.a&&(this.a=new ti(Aa,this,4)),Kt(this.a,u(t,16));return;case 5:!this.c&&(this.c=new Eg(Aa,this,5)),me(this.c),!this.c&&(this.c=new Eg(Aa,this,5)),Kt(this.c,u(t,16));return}Jo(this,e-se((An(),S1)),$n((i=u(Un(this,16),29),i||S1),e),t)},o.ii=function(){return An(),S1},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:IQ(this,null);return;case 2:!this.b&&(this.b=new lo((An(),ar),pc,this)),this.b.c.$b();return;case 3:rqn(this,null);return;case 4:!this.a&&(this.a=new ti(Aa,this,4)),me(this.a);return;case 5:!this.c&&(this.c=new Eg(Aa,this,5)),me(this.c);return}Wo(this,e-se((An(),S1)),$n((t=u(Un(this,16),29),t||S1),e))},o.Ib=function(){return sKn(this)},o.d=null,w(qn,"EAnnotationImpl",519),b(141,721,qcn,Ou),o.Gi=function(e,t){Wle(this,e,u(t,44))},o.Wk=function(e,t){return Qae(this,u(e,44),t)},o.$i=function(e){return u(u(this.c,71).$i(e),136)},o.Ii=function(){return u(this.c,71).Ii()},o.Ji=function(){return u(this.c,71).Ji()},o.Ki=function(e){return u(this.c,71).Ki(e)},o.Xk=function(e,t){return UM(this,e,t)},o.Fk=function(e){return u(this.c,79).Fk(e)},o.ak=function(){},o.Qj=function(){return u(this.c,79).Qj()},o.ck=function(e,t,i){var r;return r=u(jo(this.b).wi().si(this.b),136),r.Ci(e),r.Di(t),r.nd(i),r},o.dk=function(){return new RG(this)},o.Wb=function(e){CC(this,e)},o.Gk=function(){u(this.c,79).Gk()},w(Ct,"EcoreEMap",141),b(165,141,qcn,lo),o._j=function(){var e,t,i,r,c,s;if(this.d==null){for(s=F(Ddn,Hcn,66,2*this.f+1,0,1),i=this.c.Kc();i.e!=i.i.gc();)t=u(i.Yj(),136),r=t.Bi(),c=(r&et)%s.length,e=s[c],!e&&(e=s[c]=new RG(this)),e.Fc(t);this.d=s}},w(qn,"EAnnotationImpl/1",165),b(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),!!this.Jk();case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hD(this,i)}return c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i)},o.Wh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&vb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&vb(this.q).i==0)}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:this.ui(Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:this.Zk(u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),Xoe},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:this.ui(null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:this.Zk(1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){gs(this),this.Bb|=1},o.Hk=function(){return gs(this)},o.Ik=function(){return this.t},o.Jk=function(){var e;return e=this.t,e>1||e==-1},o.Si=function(){return(this.Bb&512)!=0},o.Yk=function(e,t){return jY(this,e,t)},o.Zk=function(e){Z0(this,e)},o.Ib=function(){return Bnn(this)},o.s=0,o.t=1,w(qn,"ETypedElementImpl",292),b(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),o.Ah=function(e){return QBn(this,e)},o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),!!this.Jk();case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return _n(),!!(this.Bb&Gs);case 11:return _n(),!!(this.Bb&Cw);case 12:return _n(),!!(this.Bb&vw);case 13:return this.j;case 14:return Cm(this);case 15:return _n(),!!(this.Bb&$u);case 16:return _n(),!!(this.Bb&wh);case 17:return G0(this)}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 17:return this.Cb&&(i=(c=this.Db>>16,c>=0?QBn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,17,i)}return s=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),s.wk().zk(this,iu(this),t-se(this.ii()),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hD(this,i);case 17:return Po(this,null,17,i)}return c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i)},o.Wh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&vb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&vb(this.q).i==0);case 10:return(this.Bb&Gs)==0;case 11:return(this.Bb&Cw)!=0;case 12:return(this.Bb&vw)!=0;case 13:return this.j!=null;case 14:return Cm(this)!=null;case 15:return(this.Bb&$u)!=0;case 16:return(this.Bb&wh)!=0;case 17:return!!G0(this)}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:RD(this,Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:this.Zk(u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return;case 10:fm(this,on(un(t)));return;case 11:am(this,on(un(t)));return;case 12:hm(this,on(un(t)));return;case 13:bX(this,Ae(t));return;case 15:lm(this,on(un(t)));return;case 16:dm(this,on(un(t)));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),zoe},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,90)&&hw(Zu(u(this.Cb,90)),4),zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:this.Zk(1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return;case 10:fm(this,!0);return;case 11:am(this,!1);return;case 12:hm(this,!1);return;case 13:this.i=null,kC(this,null);return;case 15:lm(this,!1);return;case 16:dm(this,!1);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){I4(Nr((Lu(),zi),this)),gs(this),this.Bb|=1},o.pk=function(){return this.f},o.ik=function(){return Cm(this)},o.qk=function(){return G0(this)},o.uk=function(){return null},o.$k=function(){return this.k},o.Lj=function(){return this.n},o.vk=function(){return bS(this)},o.wk=function(){var e,t,i,r,c,s,f,h,l;return this.p||(i=G0(this),(i.i==null&&bh(i),i.i).length,r=this.uk(),r&&se(G0(r)),c=gs(this),f=c.kk(),e=f?f.i&1?f==so?Gt:f==ye?Gi:f==cg?sv:f==Ii?si:f==Ra?t0:f==V2?i0:f==Ru?p3:S8:f:null,t=Cm(this),h=c.ik(),G5e(this),this.Bb&wh&&((s=$Z((Lu(),zi),i))&&s!=this||(s=$p(Nr(zi,this))))?this.p=new DTn(this,s):this.Jk()?this.al()?r?this.Bb&$u?e?this.bl()?this.p=new Za(47,e,this,r):this.p=new Za(5,e,this,r):this.bl()?this.p=new rd(46,this,r):this.p=new rd(4,this,r):e?this.bl()?this.p=new Za(49,e,this,r):this.p=new Za(7,e,this,r):this.bl()?this.p=new rd(48,this,r):this.p=new rd(6,this,r):this.Bb&$u?e?e==Id?this.p=new Xl(50,Poe,this):this.bl()?this.p=new Xl(43,e,this):this.p=new Xl(1,e,this):this.bl()?this.p=new Wl(42,this):this.p=new Wl(0,this):e?e==Id?this.p=new Xl(41,Poe,this):this.bl()?this.p=new Xl(45,e,this):this.p=new Xl(3,e,this):this.bl()?this.p=new Wl(44,this):this.p=new Wl(2,this):L(c,156)?e==MA?this.p=new Wl(40,this):this.Bb&512?this.Bb&$u?e?this.p=new Xl(9,e,this):this.p=new Wl(8,this):e?this.p=new Xl(11,e,this):this.p=new Wl(10,this):this.Bb&$u?e?this.p=new Xl(13,e,this):this.p=new Wl(12,this):e?this.p=new Xl(15,e,this):this.p=new Wl(14,this):r?(l=r.t,l>1||l==-1?this.bl()?this.Bb&$u?e?this.p=new Za(25,e,this,r):this.p=new rd(24,this,r):e?this.p=new Za(27,e,this,r):this.p=new rd(26,this,r):this.Bb&$u?e?this.p=new Za(29,e,this,r):this.p=new rd(28,this,r):e?this.p=new Za(31,e,this,r):this.p=new rd(30,this,r):this.bl()?this.Bb&$u?e?this.p=new Za(33,e,this,r):this.p=new rd(32,this,r):e?this.p=new Za(35,e,this,r):this.p=new rd(34,this,r):this.Bb&$u?e?this.p=new Za(37,e,this,r):this.p=new rd(36,this,r):e?this.p=new Za(39,e,this,r):this.p=new rd(38,this,r)):this.bl()?this.Bb&$u?e?this.p=new Xl(17,e,this):this.p=new Wl(16,this):e?this.p=new Xl(19,e,this):this.p=new Wl(18,this):this.Bb&$u?e?this.p=new Xl(21,e,this):this.p=new Wl(20,this):e?this.p=new Xl(23,e,this):this.p=new Wl(22,this):this._k()?this.bl()?this.p=new jPn(u(c,29),this,r):this.p=new eJ(u(c,29),this,r):L(c,156)?e==MA?this.p=new Wl(40,this):this.Bb&$u?e?this.p=new yIn(t,h,this,(gx(),f==ye?Qdn:f==so?zdn:f==Ra?Ydn:f==cg?Jdn:f==Ii?Wdn:f==V2?Zdn:f==Ru?Xdn:f==fs?Vdn:TU)):this.p=new DOn(u(c,156),t,h,this):e?this.p=new kIn(t,h,this,(gx(),f==ye?Qdn:f==so?zdn:f==Ra?Ydn:f==cg?Jdn:f==Ii?Wdn:f==V2?Zdn:f==Ru?Xdn:f==fs?Vdn:TU)):this.p=new NOn(u(c,156),t,h,this):this.al()?r?this.Bb&$u?this.bl()?this.p=new MPn(u(c,29),this,r):this.p=new FV(u(c,29),this,r):this.bl()?this.p=new EPn(u(c,29),this,r):this.p=new HN(u(c,29),this,r):this.Bb&$u?this.bl()?this.p=new kSn(u(c,29),this):this.p=new nV(u(c,29),this):this.bl()?this.p=new vSn(u(c,29),this):this.p=new IN(u(c,29),this):this.bl()?r?this.Bb&$u?this.p=new TPn(u(c,29),this,r):this.p=new KV(u(c,29),this,r):this.Bb&$u?this.p=new ySn(u(c,29),this):this.p=new eV(u(c,29),this):r?this.Bb&$u?this.p=new CPn(u(c,29),this,r):this.p=new BV(u(c,29),this,r):this.Bb&$u?this.p=new jSn(u(c,29),this):this.p=new oT(u(c,29),this)),this.p},o.rk=function(){return(this.Bb&Gs)!=0},o._k=function(){return!1},o.al=function(){return!1},o.sk=function(){return(this.Bb&wh)!=0},o.xk=function(){return a$(this)},o.bl=function(){return!1},o.tk=function(){return(this.Bb&$u)!=0},o.cl=function(e){this.k=e},o.ui=function(e){RD(this,e)},o.Ib=function(){return $S(this)},o.e=!1,o.n=0,w(qn,"EStructuralFeatureImpl",462),b(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},fL),o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),!!Nnn(this);case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return _n(),!!(this.Bb&Gs);case 11:return _n(),!!(this.Bb&Cw);case 12:return _n(),!!(this.Bb&vw);case 13:return this.j;case 14:return Cm(this);case 15:return _n(),!!(this.Bb&$u);case 16:return _n(),!!(this.Bb&wh);case 17:return G0(this);case 18:return _n(),!!(this.Bb&kc);case 19:return t?x$(this):RNn(this)}return zo(this,e-se((An(),tg)),$n((r=u(Un(this,16),29),r||tg),e),t,i)},o.Wh=function(e){var t,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return Nnn(this);case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&vb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&vb(this.q).i==0);case 10:return(this.Bb&Gs)==0;case 11:return(this.Bb&Cw)!=0;case 12:return(this.Bb&vw)!=0;case 13:return this.j!=null;case 14:return Cm(this)!=null;case 15:return(this.Bb&$u)!=0;case 16:return(this.Bb&wh)!=0;case 17:return!!G0(this);case 18:return(this.Bb&kc)!=0;case 19:return!!RNn(this)}return Uo(this,e-se((An(),tg)),$n((t=u(Un(this,16),29),t||tg),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:RD(this,Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:nEn(this,u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return;case 10:fm(this,on(un(t)));return;case 11:am(this,on(un(t)));return;case 12:hm(this,on(un(t)));return;case 13:bX(this,Ae(t));return;case 15:lm(this,on(un(t)));return;case 16:dm(this,on(un(t)));return;case 18:sx(this,on(un(t)));return}Jo(this,e-se((An(),tg)),$n((i=u(Un(this,16),29),i||tg),e),t)},o.ii=function(){return An(),tg},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,90)&&hw(Zu(u(this.Cb,90)),4),zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:this.b=0,Z0(this,1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return;case 10:fm(this,!0);return;case 11:am(this,!1);return;case 12:hm(this,!1);return;case 13:this.i=null,kC(this,null);return;case 15:lm(this,!1);return;case 16:dm(this,!1);return;case 18:sx(this,!1);return}Wo(this,e-se((An(),tg)),$n((t=u(Un(this,16),29),t||tg),e))},o.pi=function(){x$(this),I4(Nr((Lu(),zi),this)),gs(this),this.Bb|=1},o.Jk=function(){return Nnn(this)},o.Yk=function(e,t){return this.b=0,this.a=null,jY(this,e,t)},o.Zk=function(e){nEn(this,e)},o.Ib=function(){var e;return this.Db&64?$S(this):(e=new ls($S(this)),e.a+=" (iD: ",ql(e,(this.Bb&kc)!=0),e.a+=")",e.a)},o.b=0,w(qn,"EAttributeImpl",331),b(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),o.dl=function(e){return e.Dh()==this},o.Ah=function(e){return _x(this,e)},o.Bh=function(e,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=e},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Fb(this);case 4:return this.ik();case 5:return this.F;case 6:return t?jo(this):L4(this);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),this.A}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?_x(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,6,i)}return s=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),s.wk().zk(this,iu(this),t-se(this.ii()),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 6:return Po(this,null,6,i);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),cr(this.A,e,i)}return c=u($n((r=u(Un(this,16),29),r||this.ii()),t),69),c.wk().Ak(this,iu(this),t-se(this.ii()),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Fb(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!L4(this);case 7:return!!this.A&&this.A.i!=0}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:xT(this,Ae(t));return;case 2:wN(this,Ae(t));return;case 5:Nm(this,Ae(t));return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A),!this.A&&(this.A=new Cu(fu,this,7)),Kt(this.A,u(t,16));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),Foe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:um(this,null),G4(this,this.D);return;case 5:Nm(this,null);return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.hk=function(){var e;return this.G==-1&&(this.G=(e=jo(this),e?f1(e.vi(),this):-1)),this.G},o.ik=function(){return null},o.jk=function(){return jo(this)},o.el=function(){return this.v},o.kk=function(){return Fb(this)},o.lk=function(){return this.D!=null?this.D:this.B},o.mk=function(){return this.F},o.fk=function(e){return AR(this,e)},o.fl=function(e){this.v=e},o.gl=function(e){yxn(this,e)},o.hl=function(e){this.C=e},o.ui=function(e){xT(this,e)},o.Ib=function(){return UC(this)},o.C=null,o.D=null,o.G=-1,w(qn,"EClassifierImpl",364),b(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},cG),o.dl=function(e){return Dae(this,e.Dh())},o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Fb(this);case 4:return null;case 5:return this.F;case 6:return t?jo(this):L4(this);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),this.A;case 8:return _n(),!!(this.Bb&256);case 9:return _n(),!!(this.Bb&512);case 10:return Hr(this);case 11:return!this.q&&(this.q=new q(Ps,this,11,10)),this.q;case 12:return Jg(this);case 13:return U5(this);case 14:return U5(this),this.r;case 15:return Jg(this),this.k;case 16:return jnn(this);case 17:return $R(this);case 18:return bh(this);case 19:return CS(this);case 20:return Jg(this),this.o;case 21:return!this.s&&(this.s=new q(ku,this,21,17)),this.s;case 22:return Pc(this);case 23:return yR(this)}return zo(this,e-se((An(),Na)),$n((r=u(Un(this,16),29),r||Na),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?_x(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,6,i);case 11:return!this.q&&(this.q=new q(Ps,this,11,10)),Xc(this.q,e,i);case 21:return!this.s&&(this.s=new q(ku,this,21,17)),Xc(this.s,e,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),Na)),t),69),s.wk().zk(this,iu(this),t-se((An(),Na)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 6:return Po(this,null,6,i);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),cr(this.A,e,i);case 11:return!this.q&&(this.q=new q(Ps,this,11,10)),cr(this.q,e,i);case 21:return!this.s&&(this.s=new q(ku,this,21,17)),cr(this.s,e,i);case 22:return cr(Pc(this),e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),Na)),t),69),c.wk().Ak(this,iu(this),t-se((An(),Na)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Fb(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!L4(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&Pc(this.u.a).i!=0&&!(this.n&&Ox(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return Jg(this).i!=0;case 13:return U5(this).i!=0;case 14:return U5(this),this.r.i!=0;case 15:return Jg(this),this.k.i!=0;case 16:return jnn(this).i!=0;case 17:return $R(this).i!=0;case 18:return bh(this).i!=0;case 19:return CS(this).i!=0;case 20:return Jg(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&Ox(this.n);case 23:return yR(this).i!=0}return Uo(this,e-se((An(),Na)),$n((t=u(Un(this,16),29),t||Na),e))},o.Zh=function(e){var t;return t=this.i==null||this.q&&this.q.i!=0?null:oy(this,e),t||rtn(this,e)},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:xT(this,Ae(t));return;case 2:wN(this,Ae(t));return;case 5:Nm(this,Ae(t));return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A),!this.A&&(this.A=new Cu(fu,this,7)),Kt(this.A,u(t,16));return;case 8:EY(this,on(un(t)));return;case 9:MY(this,on(un(t)));return;case 10:X5(Hr(this)),Kt(Hr(this),u(t,16));return;case 11:!this.q&&(this.q=new q(Ps,this,11,10)),me(this.q),!this.q&&(this.q=new q(Ps,this,11,10)),Kt(this.q,u(t,16));return;case 21:!this.s&&(this.s=new q(ku,this,21,17)),me(this.s),!this.s&&(this.s=new q(ku,this,21,17)),Kt(this.s,u(t,16));return;case 22:me(Pc(this)),Kt(Pc(this),u(t,16));return}Jo(this,e-se((An(),Na)),$n((i=u(Un(this,16),29),i||Na),e),t)},o.ii=function(){return An(),Na},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:um(this,null),G4(this,this.D);return;case 5:Nm(this,null);return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A);return;case 8:EY(this,!1);return;case 9:MY(this,!1);return;case 10:this.u&&X5(this.u);return;case 11:!this.q&&(this.q=new q(Ps,this,11,10)),me(this.q);return;case 21:!this.s&&(this.s=new q(ku,this,21,17)),me(this.s);return;case 22:this.n&&me(this.n);return}Wo(this,e-se((An(),Na)),$n((t=u(Un(this,16),29),t||Na),e))},o.pi=function(){var e,t;if(Jg(this),U5(this),jnn(this),$R(this),bh(this),CS(this),yR(this),e5(u0e(Zu(this))),this.s)for(e=0,t=this.s.i;e<t;++e)C7(N(this.s,e));if(this.q)for(e=0,t=this.q.i;e<t;++e)C7(N(this.q,e));r1((Lu(),zi),this).xe(),this.Bb|=1},o.Ib=function(){return HZ(this)},o.k=null,o.r=null;var D9,Joe,EU;w(qn,"EClassImpl",90),b(2092,2091,gJn),o.Ei=function(e,t){return LR(this,e,t)},o.Fi=function(e){return LR(this,this.i,e)},o.Gi=function(e,t){Knn(this,e,t)},o.Hi=function(e){aR(this,e)},o.Wk=function(e,t){return Xc(this,e,t)},o.$i=function(e){return ZJ(this,e)},o.Xk=function(e,t){return cr(this,e,t)},o.Xi=function(e,t){return XUn(this,e,t)},o.Ii=function(){return new yp(this)},o.Ji=function(){return new T7(this)},o.Ki=function(e){return pk(this,e)},w(Ct,"NotifyingInternalEListImpl",2092),b(632,2092,Qr),o.Hc=function(e){return bGn(this,e)},o.Ij=function(e,t,i,r,c){return W6(this,e,t,i,r,c)},o.Jj=function(e){t4(this,e)},o.Fk=function(e){return this},o.Lk=function(){return $n(this.e.Dh(),this.Lj())},o.Kj=function(){return this.Lk()},o.Lj=function(){return At(this.e.Dh(),this.Lk())},o.il=function(){return u(this.Lk().Hk(),29).kk()},o.jl=function(){return br(u(this.Lk(),19)).n},o.jj=function(){return this.e},o.kl=function(){return!0},o.ll=function(){return!1},o.ml=function(){return!1},o.nl=function(){return!1},o.dd=function(e){return f1(this,e)},o.Nj=function(e,t){var i;return i=u(e,54),this.ml()?this.kl()?i.Rh(this.e,this.jl(),this.il(),t):i.Rh(this.e,At(i.Dh(),br(u(this.Lk(),19))),null,t):i.Rh(this.e,-1-this.Lj(),null,t)},o.Oj=function(e,t){var i;return i=u(e,54),this.ml()?this.kl()?i.Th(this.e,this.jl(),this.il(),t):i.Th(this.e,At(i.Dh(),br(u(this.Lk(),19))),null,t):i.Th(this.e,-1-this.Lj(),null,t)},o.al=function(){return!1},o.ol=function(){return!0},o.fk=function(e){return KLn(this.d,e)},o.Pj=function(){return fo(this.e)},o.Qj=function(){return this.i!=0},o.aj=function(e){return gk(this.d,e)},o.Wi=function(e,t){return this.ol()&&this.nl()?e3(this,e,u(t,58)):t},o.pl=function(e){return e.Vh()?ea(this.e,u(e,54)):e},o.Wb=function(e){ACn(this,e)},o.Pc=function(){return NDn(this)},o.Qc=function(e){var t;if(this.nl())for(t=this.i-1;t>=0;--t)N(this,t);return VY(this,e)},o.Gk=function(){me(this)},o.Zi=function(e,t){return q$n(this,e,t)},w(Ct,"EcoreEList",632),b(505,632,Qr,R7),o.Li=function(){return!1},o.Lj=function(){return this.c},o.Mj=function(){return!1},o.ol=function(){return!0},o.Si=function(){return!0},o.Wi=function(e,t){return t},o.Yi=function(){return!1},o.c=0,w(Ct,"EObjectEList",505),b(83,505,Qr,ti),o.Mj=function(){return!0},o.ml=function(){return!1},o.al=function(){return!0},w(Ct,"EObjectContainmentEList",83),b(555,83,Qr,$M),o.Ni=function(){this.b=!0},o.Qj=function(){return this.b},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.b,this.b=!1,it(this.e,new Bs(this.e,2,this.c,e,!1))):this.b=!1},o.b=!1,w(Ct,"EObjectContainmentEList/Unsettable",555),b(1161,555,Qr,mIn),o.Ti=function(e,t){var i,r;return i=u(k5(this,e,t),89),fo(this.e)&&t4(this,new ck(this.a,7,(An(),_oe),Y(t),(r=i.c,L(r,90)?u(r,29):Os),e)),i},o.Uj=function(e,t){return S8e(this,u(e,89),t)},o.Vj=function(e,t){return C8e(this,u(e,89),t)},o.Wj=function(e,t,i){return Oke(this,u(e,89),u(t,89),i)},o.Ij=function(e,t,i,r,c){switch(e){case 3:return W6(this,e,t,i,r,this.i>1);case 5:return W6(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new ml(this.e,e,this.c,t,i,r,!0)}},o.Tj=function(){return!0},o.Qj=function(){return Ox(this)},o.Gk=function(){me(this)},w(qn,"EClassImpl/1",1161),b(1175,1174,_cn),o.dj=function(e){var t,i,r,c,s,f,h;if(i=e.gj(),i!=8){if(r=s9e(e),r==0)switch(i){case 1:case 9:{h=e.kj(),h!=null&&(t=Zu(u(h,482)),!t.c&&(t.c=new W3),rC(t.c,e.jj())),f=e.ij(),f!=null&&(c=u(f,482),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new W3),ve(t.c,u(e.jj(),29))));break}case 3:{f=e.ij(),f!=null&&(c=u(f,482),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new W3),ve(t.c,u(e.jj(),29))));break}case 5:{if(f=e.ij(),f!=null)for(s=u(f,16).Kc();s.Ob();)c=u(s.Pb(),482),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new W3),ve(t.c,u(e.jj(),29)));break}case 4:{h=e.kj(),h!=null&&(c=u(h,482),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new W3),rC(t.c,e.jj())));break}case 6:{if(h=e.kj(),h!=null)for(s=u(h,16).Kc();s.Ob();)c=u(s.Pb(),482),c.Bb&1||(t=Zu(c),!t.c&&(t.c=new W3),rC(t.c,e.jj()));break}}this.ql(r)}},o.ql=function(e){Uqn(this,e)},o.b=63,w(qn,"ESuperAdapter",1175),b(1176,1175,_cn,myn),o.ql=function(e){hw(this,e)},w(qn,"EClassImpl/10",1176),b(1165,710,Qr),o.Ei=function(e,t){return Zx(this,e,t)},o.Fi=function(e){return NBn(this,e)},o.Gi=function(e,t){Lk(this,e,t)},o.Hi=function(e){ek(this,e)},o.$i=function(e){return ZJ(this,e)},o.Xi=function(e,t){return d$(this,e,t)},o.Wk=function(e,t){throw T(new Ie)},o.Ii=function(){return new yp(this)},o.Ji=function(){return new T7(this)},o.Ki=function(e){return pk(this,e)},o.Xk=function(e,t){throw T(new Ie)},o.Fk=function(e){return this},o.Qj=function(){return this.i!=0},o.Wb=function(e){throw T(new Ie)},o.Gk=function(){throw T(new Ie)},w(Ct,"EcoreEList/UnmodifiableEList",1165),b(328,1165,Qr,pg),o.Yi=function(){return!1},w(Ct,"EcoreEList/UnmodifiableEList/FastCompare",328),b(1168,328,Qr,bRn),o.dd=function(e){var t,i,r;if(L(e,179)&&(t=u(e,179),i=t.Lj(),i!=-1)){for(r=this.i;i<r;++i)if(x(this.g[i])===x(e))return i}return-1},w(qn,"EClassImpl/1EAllStructuralFeaturesList",1168),b(1162,506,Mh,kvn),o.aj=function(e){return F(jr,pJn,89,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/1EGenericSuperTypeEList",1162),b(633,506,Mh,qA),o.aj=function(e){return F(ku,f2,179,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/1EStructuralFeatureUniqueEList",633),b(755,506,Mh,tG),o.aj=function(e){return F(eg,f2,19,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/1ReferenceList",755),b(1163,506,Mh,vyn),o.Mi=function(e,t){owe(this,u(t,35))},o.aj=function(e){return F(ng,f2,35,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/2",1163),b(1164,506,Mh,yvn),o.aj=function(e){return F(ng,f2,35,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/3",1164),b(1166,328,Qr,HPn),o.Fc=function(e){return T3e(this,u(e,35))},o.Hi=function(e){Vhe(this,u(e,35))},w(qn,"EClassImpl/4",1166),b(1167,328,Qr,_Pn),o.Fc=function(e){return C3e(this,u(e,19))},o.Hi=function(e){Whe(this,u(e,19))},w(qn,"EClassImpl/5",1167),b(1169,506,Mh,jvn),o.aj=function(e){return F(Ps,Ucn,62,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/6",1169),b(1170,506,Mh,Evn),o.aj=function(e){return F(eg,f2,19,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/7",1170),b(2095,2094,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,71:1}),o.Ei=function(e,t){return Den(this,e,t)},o.Fi=function(e){return Den(this,this.Ej(),e)},o.Gi=function(e,t){EHn(this,e,t)},o.Hi=function(e){lHn(this,e)},o.Wk=function(e,t){return n7e(this,e,t)},o.Xk=function(e,t){return S9e(this,e,t)},o.Xi=function(e,t){return OUn(this,e,t)},o.$i=function(e){return this.xj(e)},o.Ii=function(){return new yp(this)},o.pj=function(){return this.sj()},o.Ji=function(){return new T7(this)},o.Ki=function(e){return pk(this,e)},w(Ct,"DelegatingNotifyingInternalEListImpl",2095),b(756,2095,Gcn),o.Li=function(){var e;return e=$n(au(this.b),this.Lj()).Hk(),L(e,156)&&!L(e,469)&&(e.kk().i&1)==0},o.Hc=function(e){var t,i,r,c,s,f,h,l;if(this.ol()){if(l=this.Ej(),l>4)if(this.fk(e)){if(this.al()){if(r=u(e,54),i=r.Eh(),h=i==this.b&&(this.ml()?r.yh(r.Fh(),u($n(au(this.b),this.Lj()).Hk(),29).kk())==br(u($n(au(this.b),this.Lj()),19)).n:-1-r.Fh()==this.Lj()),this.nl()&&!h&&!i&&r.Jh()){for(c=0;c<l;++c)if(t=cD(this,this.xj(c)),x(t)===x(e))return!0}return h}else if(this.ml()&&!this.ll()){if(s=u(e,58).Mh(br(u($n(au(this.b),this.Lj()),19))),x(s)===x(this.b))return!0;if(s==null||!u(s,58).Vh())return!1}}else return!1;if(f=this.uj(e),this.nl()&&!f){for(c=0;c<l;++c)if(r=cD(this,this.xj(c)),x(r)===x(e))return!0}return f}else return this.uj(e)},o.Ij=function(e,t,i,r,c){return new ml(this.b,e,this.Lj(),t,i,r,c)},o.Jj=function(e){it(this.b,e)},o.Fk=function(e){return this},o.Kj=function(){return $n(au(this.b),this.Lj())},o.Lj=function(){return At(au(this.b),$n(au(this.b),this.Lj()))},o.jj=function(){return this.b},o.kl=function(){return!!$n(au(this.b),this.Lj()).Hk().kk()},o.Mj=function(){var e,t;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),(e.Bb&kc)!=0||!!br(u(t,19))):!1},o.ll=function(){var e,t,i,r;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),i=br(e),!!i&&(r=i.t,r>1||r==-1)):!1},o.ml=function(){var e,t,i;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),i=br(e),!!i):!1},o.nl=function(){var e,t;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),(e.Bb&hr)!=0):!1},o.dd=function(e){var t,i,r,c;if(r=this.zj(e),r>=0)return r;if(this.ol()){for(i=0,c=this.Ej();i<c;++i)if(t=cD(this,this.xj(i)),x(t)===x(e))return i}return-1},o.Nj=function(e,t){var i;return i=u(e,54),this.ml()?this.kl()?i.Rh(this.b,br(u($n(au(this.b),this.Lj()),19)).n,u($n(au(this.b),this.Lj()).Hk(),29).kk(),t):i.Rh(this.b,At(i.Dh(),br(u($n(au(this.b),this.Lj()),19))),null,t):i.Rh(this.b,-1-this.Lj(),null,t)},o.Oj=function(e,t){var i;return i=u(e,54),this.ml()?this.kl()?i.Th(this.b,br(u($n(au(this.b),this.Lj()),19)).n,u($n(au(this.b),this.Lj()).Hk(),29).kk(),t):i.Th(this.b,At(i.Dh(),br(u($n(au(this.b),this.Lj()),19))),null,t):i.Th(this.b,-1-this.Lj(),null,t)},o.al=function(){var e,t;return t=$n(au(this.b),this.Lj()),L(t,102)?(e=u(t,19),(e.Bb&kc)!=0):!1},o.ol=function(){return L($n(au(this.b),this.Lj()).Hk(),90)},o.fk=function(e){return $n(au(this.b),this.Lj()).Hk().fk(e)},o.Pj=function(){return fo(this.b)},o.Qj=function(){return!this.Aj()},o.Si=function(){return $n(au(this.b),this.Lj()).Si()},o.Wi=function(e,t){return py(this,e,t)},o.Wb=function(e){X5(this),Kt(this,u(e,15))},o.Pc=function(){var e;if(this.nl())for(e=this.Ej()-1;e>=0;--e)py(this,e,this.xj(e));return this.Fj()},o.Qc=function(e){var t;if(this.nl())for(t=this.Ej()-1;t>=0;--t)py(this,t,this.xj(t));return this.Gj(e)},o.Gk=function(){X5(this)},o.Zi=function(e,t){return kDn(this,e,t)},w(Ct,"DelegatingEcoreEList",756),b(1171,756,Gcn,DSn),o.qj=function(e,t){rae(this,e,u(t,29))},o.rj=function(e){zle(this,u(e,29))},o.xj=function(e){var t,i;return t=u(N(Pc(this.a),e),89),i=t.c,L(i,90)?u(i,29):(An(),Os)},o.Cj=function(e){var t,i;return t=u(dw(Pc(this.a),e),89),i=t.c,L(i,90)?u(i,29):(An(),Os)},o.Dj=function(e,t){return e7e(this,e,u(t,29))},o.Li=function(){return!1},o.Ij=function(e,t,i,r,c){return null},o.sj=function(){return new yyn(this)},o.tj=function(){me(Pc(this.a))},o.uj=function(e){return hKn(this,e)},o.vj=function(e){var t,i;for(i=e.Kc();i.Ob();)if(t=i.Pb(),!hKn(this,t))return!1;return!0},o.wj=function(e){var t,i,r;if(L(e,15)&&(r=u(e,15),r.gc()==Pc(this.a).i)){for(t=r.Kc(),i=new ne(this);t.Ob();)if(x(t.Pb())!==x(ue(i)))return!1;return!0}return!1},o.yj=function(){var e,t,i,r,c;for(i=1,t=new ne(Pc(this.a));t.e!=t.i.gc();)e=u(ue(t),89),r=(c=e.c,L(c,90)?u(c,29):(An(),Os)),i=31*i+(r?lb(r):0);return i},o.zj=function(e){var t,i,r,c;for(r=0,i=new ne(Pc(this.a));i.e!=i.i.gc();){if(t=u(ue(i),89),x(e)===x((c=t.c,L(c,90)?u(c,29):(An(),Os))))return r;++r}return-1},o.Aj=function(){return Pc(this.a).i==0},o.Bj=function(){return null},o.Ej=function(){return Pc(this.a).i},o.Fj=function(){var e,t,i,r,c,s;for(s=Pc(this.a).i,c=F(ki,Kn,1,s,5,1),i=0,t=new ne(Pc(this.a));t.e!=t.i.gc();)e=u(ue(t),89),c[i++]=(r=e.c,L(r,90)?u(r,29):(An(),Os));return c},o.Gj=function(e){var t,i,r,c,s,f,h;for(h=Pc(this.a).i,e.length<h&&(c=gk(wo(e).c,h),e=c),e.length>h&&$t(e,h,null),r=0,i=new ne(Pc(this.a));i.e!=i.i.gc();)t=u(ue(i),89),s=(f=t.c,L(f,90)?u(f,29):(An(),Os)),$t(e,r++,s);return e},o.Hj=function(){var e,t,i,r,c;for(c=new Hl,c.a+="[",e=Pc(this.a),t=0,r=Pc(this.a).i;t<r;)Er(c,A6((i=u(N(e,t),89).c,L(i,90)?u(i,29):(An(),Os)))),++t<r&&(c.a+=ur);return c.a+="]",c.a},o.Jj=function(e){},o.Lj=function(){return 10},o.kl=function(){return!0},o.Mj=function(){return!1},o.ll=function(){return!1},o.ml=function(){return!1},o.nl=function(){return!0},o.al=function(){return!1},o.ol=function(){return!0},o.fk=function(e){return L(e,90)},o.Qj=function(){return Spe(this.a)},o.Si=function(){return!0},o.Yi=function(){return!0},w(qn,"EClassImpl/8",1171),b(1172,2062,Bm,yyn),o.fd=function(e){return pk(this.a,e)},o.gc=function(){return Pc(this.a.a).i},w(qn,"EClassImpl/8/1",1172),b(1173,506,Mh,Mvn),o.aj=function(e){return F(Mf,Kn,142,e,0,1)},o.Yi=function(){return!1},w(qn,"EClassImpl/9",1173),b(1160,49,jtn,ljn),w(qn,"EClassImpl/MyHashSet",1160),b(577,364,{110:1,94:1,93:1,142:1,156:1,847:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1},xE),o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Fb(this);case 4:return this.ik();case 5:return this.F;case 6:return t?jo(this):L4(this);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),this.A;case 8:return _n(),!!(this.Bb&256)}return zo(this,e-se(this.ii()),$n((r=u(Un(this,16),29),r||this.ii()),e),t,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Fb(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!L4(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0}return Uo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:xT(this,Ae(t));return;case 2:wN(this,Ae(t));return;case 5:Nm(this,Ae(t));return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A),!this.A&&(this.A=new Cu(fu,this,7)),Kt(this.A,u(t,16));return;case 8:KC(this,on(un(t)));return}Jo(this,e-se(this.ii()),$n((i=u(Un(this,16),29),i||this.ii()),e),t)},o.ii=function(){return An(),Hoe},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:um(this,null),G4(this,this.D);return;case 5:Nm(this,null);return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A);return;case 8:KC(this,!0);return}Wo(this,e-se(this.ii()),$n((t=u(Un(this,16),29),t||this.ii()),e))},o.pi=function(){r1((Lu(),zi),this).xe(),this.Bb|=1},o.ok=function(){var e,t,i;if(!this.c&&(e=xHn(jo(this)),!e.dc()))for(i=e.Kc();i.Ob();)t=Ae(i.Pb()),_5(this,t)&&C5e(this);return this.b},o.ik=function(){var e;if(!this.e){e=null;try{e=Fb(this)}catch(t){if(t=Ot(t),!L(t,103))throw T(t)}this.d=null,e&&e.i&1&&(e==so?this.d=(_n(),ga):e==ye?this.d=Y(0):e==cg?this.d=new z9(0):e==Ii?this.d=0:e==Ra?this.d=Tl(0):e==V2?this.d=sm(0):e==Ru?this.d=ak(0):this.d=vk(0)),this.e=!0}return this.d},o.nk=function(){return(this.Bb&256)!=0},o.rl=function(e){e&&(this.D="org.eclipse.emf.common.util.AbstractEnumerator")},o.gl=function(e){yxn(this,e),this.rl(e)},o.hl=function(e){this.C=e,this.e=!1},o.Ib=function(){var e;return this.Db&64?UC(this):(e=new ls(UC(this)),e.a+=" (serializable: ",ql(e,(this.Bb&256)!=0),e.a+=")",e.a)},o.c=!1,o.d=null,o.e=!1,w(qn,"EDataTypeImpl",577),b(469,577,{110:1,94:1,93:1,142:1,156:1,847:1,685:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,469:1,158:1,119:1,120:1,691:1},ajn),o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Fb(this);case 4:return lY(this);case 5:return this.F;case 6:return t?jo(this):L4(this);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),this.A;case 8:return _n(),!!(this.Bb&256);case 9:return!this.a&&(this.a=new q(Kl,this,9,5)),this.a}return zo(this,e-se((An(),Da)),$n((r=u(Un(this,16),29),r||Da),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?_x(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,6,i);case 9:return!this.a&&(this.a=new q(Kl,this,9,5)),Xc(this.a,e,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),Da)),t),69),s.wk().zk(this,iu(this),t-se((An(),Da)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 6:return Po(this,null,6,i);case 7:return!this.A&&(this.A=new Cu(fu,this,7)),cr(this.A,e,i);case 9:return!this.a&&(this.a=new q(Kl,this,9,5)),cr(this.a,e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),Da)),t),69),c.wk().Ak(this,iu(this),t-se((An(),Da)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Fb(this);case 4:return!!lY(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!L4(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return Uo(this,e-se((An(),Da)),$n((t=u(Un(this,16),29),t||Da),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:xT(this,Ae(t));return;case 2:wN(this,Ae(t));return;case 5:Nm(this,Ae(t));return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A),!this.A&&(this.A=new Cu(fu,this,7)),Kt(this.A,u(t,16));return;case 8:KC(this,on(un(t)));return;case 9:!this.a&&(this.a=new q(Kl,this,9,5)),me(this.a),!this.a&&(this.a=new q(Kl,this,9,5)),Kt(this.a,u(t,16));return}Jo(this,e-se((An(),Da)),$n((i=u(Un(this,16),29),i||Da),e),t)},o.ii=function(){return An(),Da},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,184)&&(u(this.Cb,184).tb=null),zc(this,null);return;case 2:um(this,null),G4(this,this.D);return;case 5:Nm(this,null);return;case 7:!this.A&&(this.A=new Cu(fu,this,7)),me(this.A);return;case 8:KC(this,!0);return;case 9:!this.a&&(this.a=new q(Kl,this,9,5)),me(this.a);return}Wo(this,e-se((An(),Da)),$n((t=u(Un(this,16),29),t||Da),e))},o.pi=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e<t;++e)C7(N(this.a,e));r1((Lu(),zi),this).xe(),this.Bb|=1},o.ik=function(){return lY(this)},o.fk=function(e){return e!=null},o.rl=function(e){},w(qn,"EEnumImpl",469),b(582,448,{110:1,94:1,93:1,2039:1,694:1,155:1,197:1,58:1,114:1,54:1,99:1,582:1,158:1,119:1,120:1},Ryn),o.xe=function(){return this.zb},o.Ah=function(e){return uFn(this,e)},o.Lh=function(e,t,i){var r,c;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Y(this.d);case 3:return this.b?this.b:this.a;case 4:return c=this.c,c??this.zb;case 5:return this.Db>>16==5?u(this.Cb,685):null}return zo(this,e-se((An(),P1)),$n((r=u(Un(this,16),29),r||P1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 5:return this.Cb&&(i=(c=this.Db>>16,c>=0?uFn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,5,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),P1)),t),69),s.wk().zk(this,iu(this),t-se((An(),P1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 5:return Po(this,null,5,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),P1)),t),69),c.wk().Ak(this,iu(this),t-se((An(),P1)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&u(this.Cb,685))}return Uo(this,e-se((An(),P1)),$n((t=u(Un(this,16),29),t||P1),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:zc(this,Ae(t));return;case 2:v$(this,u(t,17).a);return;case 3:iHn(this,u(t,2039));return;case 4:y$(this,Ae(t));return}Jo(this,e-se((An(),P1)),$n((i=u(Un(this,16),29),i||P1),e),t)},o.ii=function(){return An(),P1},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:v$(this,0);return;case 3:iHn(this,null);return;case 4:y$(this,null);return}Wo(this,e-se((An(),P1)),$n((t=u(Un(this,16),29),t||P1),e))},o.Ib=function(){var e;return e=this.c,e??this.zb},o.b=null,o.c=null,o.d=0,w(qn,"EEnumLiteralImpl",582);var NDe=Dt(qn,"EFactoryImpl/InternalEDateTimeFormat");b(499,1,{2114:1},X9),w(qn,"EFactoryImpl/1ClientInternalEDateTimeFormat",499),b(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},Jd),o.Ch=function(e,t,i){var r;return i=Po(this,e,t,i),this.e&&L(e,179)&&(r=TS(this,this.e),r!=this.c&&(i=Dm(this,r,i))),i},o.Lh=function(e,t,i){var r;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new ti(jr,this,1)),this.d;case 2:return t?KS(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?Nx(this):this.a}return zo(this,e-se((An(),j0)),$n((r=u(Un(this,16),29),r||j0),e),t,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return QRn(this,null,i);case 1:return!this.d&&(this.d=new ti(jr,this,1)),cr(this.d,e,i);case 3:return YRn(this,null,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),j0)),t),69),c.wk().Ak(this,iu(this),t-se((An(),j0)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return Uo(this,e-se((An(),j0)),$n((t=u(Un(this,16),29),t||j0),e))},o.bi=function(e,t){var i;switch(e){case 0:TFn(this,u(t,89));return;case 1:!this.d&&(this.d=new ti(jr,this,1)),me(this.d),!this.d&&(this.d=new ti(jr,this,1)),Kt(this.d,u(t,16));return;case 3:qZ(this,u(t,89));return;case 4:snn(this,u(t,850));return;case 5:F4(this,u(t,142));return}Jo(this,e-se((An(),j0)),$n((i=u(Un(this,16),29),i||j0),e),t)},o.ii=function(){return An(),j0},o.ki=function(e){var t;switch(e){case 0:TFn(this,null);return;case 1:!this.d&&(this.d=new ti(jr,this,1)),me(this.d);return;case 3:qZ(this,null);return;case 4:snn(this,null);return;case 5:F4(this,null);return}Wo(this,e-se((An(),j0)),$n((t=u(Un(this,16),29),t||j0),e))},o.Ib=function(){var e;return e=new mo(Hs(this)),e.a+=" (expression: ",_R(this,e),e.a+=")",e.a};var Gdn;w(qn,"EGenericTypeImpl",248),b(2067,2062,zP),o.Gi=function(e,t){ASn(this,e,t)},o.Wk=function(e,t){return ASn(this,this.gc(),e),t},o.$i=function(e){return Zo(this.pj(),e)},o.Ii=function(){return this.Ji()},o.pj=function(){return new Tyn(this)},o.Ji=function(){return this.Ki(0)},o.Ki=function(e){return this.pj().fd(e)},o.Xk=function(e,t){return iw(this,e,!0),t},o.Ti=function(e,t){var i,r;return r=Ux(this,t),i=this.fd(e),i.Rb(r),r},o.Ui=function(e,t){var i;iw(this,t,!0),i=this.fd(e),i.Rb(t)},w(Ct,"AbstractSequentialInternalEList",2067),b(496,2067,zP,M7),o.$i=function(e){return Zo(this.pj(),e)},o.Ii=function(){return this.b==null?(Gl(),Gl(),dE):this.sl()},o.pj=function(){return new JTn(this.a,this.b)},o.Ji=function(){return this.b==null?(Gl(),Gl(),dE):this.sl()},o.Ki=function(e){var t,i;if(this.b==null){if(e<0||e>1)throw T(new Or(p8+e+", size=0"));return Gl(),Gl(),dE}for(i=this.sl(),t=0;t<e;++t)IC(i);return i},o.dc=function(){var e,t,i,r,c,s;if(this.b!=null){for(i=0;i<this.b.length;++i)if(e=this.b[i],!this.vl()||this.a.Xh(e)){if(s=this.a.Nh(e,!1),dr(),u(e,69).xk()){for(t=u(s,160),r=0,c=t.gc();r<c;++r)if(cOn(t.Tl(r))&&t.Ul(r)!=null)return!1}else if(e.Jk()){if(!u(s,16).dc())return!1}else if(s!=null)return!1}}return!0},o.Kc=function(){return LQ(this)},o.fd=function(e){var t,i;if(this.b==null){if(e!=0)throw T(new Or(p8+e+", size=0"));return Gl(),Gl(),dE}for(i=this.ul()?this.tl():this.sl(),t=0;t<e;++t)IC(i);return i},o.Ti=function(e,t){throw T(new Ie)},o.Ui=function(e,t){throw T(new Ie)},o.sl=function(){return new _M(this.a,this.b)},o.tl=function(){return new ZX(this.a,this.b)},o.ul=function(){return!0},o.gc=function(){var e,t,i,r,c,s,f;if(c=0,this.b!=null){for(i=0;i<this.b.length;++i)if(e=this.b[i],!this.vl()||this.a.Xh(e))if(f=this.a.Nh(e,!1),dr(),u(e,69).xk())for(t=u(f,160),r=0,s=t.gc();r<s;++r)cOn(t.Tl(r))&&t.Ul(r)!=null&&++c;else e.Jk()?c+=u(f,16).gc():f!=null&&++c}return c},o.vl=function(){return!0};var MU;w(Ct,"EContentsEList",496),b(1177,496,zP,wSn),o.sl=function(){return new pSn(this.a,this.b)},o.tl=function(){return new gSn(this.a,this.b)},o.vl=function(){return!1},w(qn,"ENamedElementImpl/1",1177),b(287,1,XP,_M),o.Nb=function(e){_i(this,e)},o.Rb=function(e){throw T(new Ie)},o.wl=function(e){if(this.g!=0||this.e)throw T(new Ar("Iterator already in use or already filtered"));this.e=e},o.Ob=function(){var e,t,i,r,c,s;switch(this.g){case 3:case 2:return!0;case 1:return!1;case-3:this.p?this.p.Pb():++this.n;default:if(!this.k||(this.p?!m_n(this,this.p):!oHn(this))){for(;this.d<this.c.length;)if(t=this.c[this.d++],(!this.e||t.pk()!=Hv||t.Lj()!=0)&&(!this.vl()||this.b.Xh(t))){if(s=this.b.Nh(t,this.ul()),this.f=(dr(),u(t,69).xk()),this.f||t.Jk()){if(this.ul()?(r=u(s,15),this.k=r):(r=u(s,71),this.k=this.j=r),L(this.k,59)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.Ji():this.k.ed(),this.p?m_n(this,this.p):oHn(this))return c=this.p?this.p.Pb():this.j?this.j.$i(this.n++):this.k.Xb(this.n++),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=3,!0}else if(s!=null)return this.k=null,this.p=null,i=s,this.i=i,this.g=2,!0}return this.k=null,this.p=null,this.f=!1,this.g=1,!1}else return c=this.p?this.p.Pb():this.j?this.j.$i(this.n++):this.k.Xb(this.n++),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=3,!0}},o.Sb=function(){var e,t,i,r,c,s;switch(this.g){case-3:case-2:return!0;case-1:return!1;case 3:this.p?this.p.Ub():--this.n;default:if(!this.k||(this.p?!v_n(this,this.p):!O_n(this))){for(;this.d>0;)if(t=this.c[--this.d],(!this.e||t.pk()!=Hv||t.Lj()!=0)&&(!this.vl()||this.b.Xh(t))){if(s=this.b.Nh(t,this.ul()),this.f=(dr(),u(t,69).xk()),this.f||t.Jk()){if(this.ul()?(r=u(s,15),this.k=r):(r=u(s,71),this.k=this.j=r),L(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ki(this.k.gc()):this.k.fd(this.k.gc()),this.p?v_n(this,this.p):O_n(this))return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=-3,!0}else if(s!=null)return this.k=null,this.p=null,i=s,this.i=i,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return c=this.p?this.p.Ub():this.j?this.j.$i(--this.n):this.k.Xb(--this.n),this.f?(e=u(c,76),e.Lk(),i=e.md(),this.i=i):(i=c,this.i=i),this.g=-3,!0}},o.Pb=function(){return IC(this)},o.Tb=function(){return this.a},o.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw T(new nc)},o.Vb=function(){return this.a-1},o.Qb=function(){throw T(new Ie)},o.ul=function(){return!1},o.Wb=function(e){throw T(new Ie)},o.vl=function(){return!0},o.a=0,o.d=0,o.f=!1,o.g=0,o.n=0,o.o=0;var dE;w(Ct,"EContentsEList/FeatureIteratorImpl",287),b(711,287,XP,ZX),o.ul=function(){return!0},w(Ct,"EContentsEList/ResolvingFeatureIteratorImpl",711),b(1178,711,XP,gSn),o.vl=function(){return!1},w(qn,"ENamedElementImpl/1/1",1178),b(1179,287,XP,pSn),o.vl=function(){return!1},w(qn,"ENamedElementImpl/1/2",1179),b(39,152,Wy,V0,UD,Mi,c$,ml,Bs,aQ,JAn,dQ,QAn,OJ,YAn,gQ,ZAn,AJ,nLn,bQ,eLn,H6,ck,TD,wQ,tLn,LJ,iLn),o.Kj=function(){return WJ(this)},o.Rj=function(){var e;return e=WJ(this),e?e.ik():null},o.hj=function(e){return this.b==-1&&this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,e)},o.jj=function(){return this.c},o.Sj=function(){var e;return e=WJ(this),e?e.tk():!1},o.b=-1,w(qn,"ENotificationImpl",39),b(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},hL),o.Ah=function(e){return fFn(this,e)},o.Lh=function(e,t,i){var r,c,s;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),s=this.t,s>1||s==-1;case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,29):null;case 11:return!this.d&&(this.d=new Cu(fu,this,11)),this.d;case 12:return!this.c&&(this.c=new q(y0,this,12,10)),this.c;case 13:return!this.a&&(this.a=new I7(this,this)),this.a;case 14:return no(this)}return zo(this,e-se((An(),I1)),$n((r=u(Un(this,16),29),r||I1),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?fFn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,10,i);case 12:return!this.c&&(this.c=new q(y0,this,12,10)),Xc(this.c,e,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),I1)),t),69),s.wk().zk(this,iu(this),t-se((An(),I1)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hD(this,i);case 10:return Po(this,null,10,i);case 11:return!this.d&&(this.d=new Cu(fu,this,11)),cr(this.d,e,i);case 12:return!this.c&&(this.c=new q(y0,this,12,10)),cr(this.c,e,i);case 14:return cr(no(this),e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),I1)),t),69),c.wk().Ak(this,iu(this),t-se((An(),I1)),e,i)},o.Wh=function(e){var t,i,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&vb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&vb(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&no(this.a.a).i!=0&&!(this.b&&Ax(this.b));case 14:return!!this.b&&Ax(this.b)}return Uo(this,e-se((An(),I1)),$n((t=u(Un(this,16),29),t||I1),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:zc(this,Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:Z0(this,u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return;case 11:!this.d&&(this.d=new Cu(fu,this,11)),me(this.d),!this.d&&(this.d=new Cu(fu,this,11)),Kt(this.d,u(t,16));return;case 12:!this.c&&(this.c=new q(y0,this,12,10)),me(this.c),!this.c&&(this.c=new q(y0,this,12,10)),Kt(this.c,u(t,16));return;case 13:!this.a&&(this.a=new I7(this,this)),X5(this.a),!this.a&&(this.a=new I7(this,this)),Kt(this.a,u(t,16));return;case 14:me(no(this)),Kt(no(this),u(t,16));return}Jo(this,e-se((An(),I1)),$n((i=u(Un(this,16),29),i||I1),e),t)},o.ii=function(){return An(),I1},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:Z0(this,1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return;case 11:!this.d&&(this.d=new Cu(fu,this,11)),me(this.d);return;case 12:!this.c&&(this.c=new q(y0,this,12,10)),me(this.c);return;case 13:this.a&&X5(this.a);return;case 14:this.b&&me(this.b);return}Wo(this,e-se((An(),I1)),$n((t=u(Un(this,16),29),t||I1),e))},o.pi=function(){var e,t;if(this.c)for(e=0,t=this.c.i;e<t;++e)C7(N(this.c,e));gs(this),this.Bb|=1},w(qn,"EOperationImpl",411),b(513,756,Gcn,I7),o.qj=function(e,t){uae(this,e,u(t,142))},o.rj=function(e){Xle(this,u(e,142))},o.xj=function(e){var t,i;return t=u(N(no(this.a),e),89),i=t.c,i||(An(),Zf)},o.Cj=function(e){var t,i;return t=u(dw(no(this.a),e),89),i=t.c,i||(An(),Zf)},o.Dj=function(e,t){return V8e(this,e,u(t,142))},o.Li=function(){return!1},o.Ij=function(e,t,i,r,c){return null},o.sj=function(){return new jyn(this)},o.tj=function(){me(no(this.a))},o.uj=function(e){return bKn(this,e)},o.vj=function(e){var t,i;for(i=e.Kc();i.Ob();)if(t=i.Pb(),!bKn(this,t))return!1;return!0},o.wj=function(e){var t,i,r;if(L(e,15)&&(r=u(e,15),r.gc()==no(this.a).i)){for(t=r.Kc(),i=new ne(this);t.Ob();)if(x(t.Pb())!==x(ue(i)))return!1;return!0}return!1},o.yj=function(){var e,t,i,r,c;for(i=1,t=new ne(no(this.a));t.e!=t.i.gc();)e=u(ue(t),89),r=(c=e.c,c||(An(),Zf)),i=31*i+(r?mt(r):0);return i},o.zj=function(e){var t,i,r,c;for(r=0,i=new ne(no(this.a));i.e!=i.i.gc();){if(t=u(ue(i),89),x(e)===x((c=t.c,c||(An(),Zf))))return r;++r}return-1},o.Aj=function(){return no(this.a).i==0},o.Bj=function(){return null},o.Ej=function(){return no(this.a).i},o.Fj=function(){var e,t,i,r,c,s;for(s=no(this.a).i,c=F(ki,Kn,1,s,5,1),i=0,t=new ne(no(this.a));t.e!=t.i.gc();)e=u(ue(t),89),c[i++]=(r=e.c,r||(An(),Zf));return c},o.Gj=function(e){var t,i,r,c,s,f,h;for(h=no(this.a).i,e.length<h&&(c=gk(wo(e).c,h),e=c),e.length>h&&$t(e,h,null),r=0,i=new ne(no(this.a));i.e!=i.i.gc();)t=u(ue(i),89),s=(f=t.c,f||(An(),Zf)),$t(e,r++,s);return e},o.Hj=function(){var e,t,i,r,c;for(c=new Hl,c.a+="[",e=no(this.a),t=0,r=no(this.a).i;t<r;)Er(c,A6((i=u(N(e,t),89).c,i||(An(),Zf)))),++t<r&&(c.a+=ur);return c.a+="]",c.a},o.Jj=function(e){},o.Lj=function(){return 13},o.kl=function(){return!0},o.Mj=function(){return!1},o.ll=function(){return!1},o.ml=function(){return!1},o.nl=function(){return!0},o.al=function(){return!1},o.ol=function(){return!0},o.fk=function(e){return L(e,142)},o.Qj=function(){return Ppe(this.a)},o.Si=function(){return!0},o.Yi=function(){return!0},w(qn,"EOperationImpl/1",513),b(1376,2062,Bm,jyn),o.fd=function(e){return pk(this.a,e)},o.gc=function(){return no(this.a.a).i},w(qn,"EOperationImpl/1/1",1376),b(1377,555,Qr,vIn),o.Ti=function(e,t){var i,r;return i=u(k5(this,e,t),89),fo(this.e)&&t4(this,new ck(this.a,7,(An(),Goe),Y(t),(r=i.c,r||Zf),e)),i},o.Uj=function(e,t){return h5e(this,u(e,89),t)},o.Vj=function(e,t){return f5e(this,u(e,89),t)},o.Wj=function(e,t,i){return o9e(this,u(e,89),u(t,89),i)},o.Ij=function(e,t,i,r,c){switch(e){case 3:return W6(this,e,t,i,r,this.i>1);case 5:return W6(this,e,t,i,r,this.i-u(i,15).gc()>0);default:return new ml(this.e,e,this.c,t,i,r,!0)}},o.Tj=function(){return!0},o.Qj=function(){return Ax(this)},o.Gk=function(){me(this)},w(qn,"EOperationImpl/2",1377),b(507,1,{2037:1,507:1},NTn),w(qn,"EPackageImpl/1",507),b(14,83,Qr,q),o.il=function(){return this.d},o.jl=function(){return this.b},o.ml=function(){return!0},o.b=0,w(Ct,"EObjectContainmentWithInverseEList",14),b(365,14,Qr,jp),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectContainmentWithInverseEList/Resolving",365),b(308,365,Qr,H0),o.Ni=function(){this.a.tb=null},w(qn,"EPackageImpl/2",308),b(1278,1,{},qse),w(qn,"EPackageImpl/3",1278),b(733,45,n2,ez),o._b=function(e){return Si(e)?SD(this,e):!!wr(this.f,e)},w(qn,"EPackageRegistryImpl",733),b(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},lL),o.Ah=function(e){return hFn(this,e)},o.Lh=function(e,t,i){var r,c,s;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),s=this.t,s>1||s==-1;case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,62):null}return zo(this,e-se((An(),ig)),$n((r=u(Un(this,16),29),r||ig),e),t,i)},o.Sh=function(e,t,i){var r,c,s;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Xc(this.Ab,e,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?hFn(this,i):this.Cb.Th(this,-1-c,null,i))),Po(this,e,10,i)}return s=u($n((r=u(Un(this,16),29),r||(An(),ig)),t),69),s.wk().zk(this,iu(this),t-se((An(),ig)),e,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 9:return hD(this,i);case 10:return Po(this,null,10,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),ig)),t),69),c.wk().Ak(this,iu(this),t-se((An(),ig)),e,i)},o.Wh=function(e){var t,i,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&vb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&vb(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,62))}return Uo(this,e-se((An(),ig)),$n((t=u(Un(this,16),29),t||ig),e))},o.ii=function(){return An(),ig},w(qn,"EParameterImpl",518),b(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},rV),o.Lh=function(e,t,i){var r,c,s,f;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return _n(),!!(this.Bb&256);case 3:return _n(),!!(this.Bb&512);case 4:return Y(this.s);case 5:return Y(this.t);case 6:return _n(),f=this.t,f>1||f==-1;case 7:return _n(),c=this.s,c>=1;case 8:return t?gs(this):this.r;case 9:return this.q;case 10:return _n(),!!(this.Bb&Gs);case 11:return _n(),!!(this.Bb&Cw);case 12:return _n(),!!(this.Bb&vw);case 13:return this.j;case 14:return Cm(this);case 15:return _n(),!!(this.Bb&$u);case 16:return _n(),!!(this.Bb&wh);case 17:return G0(this);case 18:return _n(),!!(this.Bb&kc);case 19:return _n(),s=br(this),!!(s&&s.Bb&kc);case 20:return _n(),!!(this.Bb&hr);case 21:return t?br(this):this.b;case 22:return t?eY(this):SNn(this);case 23:return!this.a&&(this.a=new Eg(ng,this,23)),this.a}return zo(this,e-se((An(),U2)),$n((r=u(Un(this,16),29),r||U2),e),t,i)},o.Wh=function(e){var t,i,r,c;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return c=this.t,c>1||c==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&vb(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&vb(this.q).i==0);case 10:return(this.Bb&Gs)==0;case 11:return(this.Bb&Cw)!=0;case 12:return(this.Bb&vw)!=0;case 13:return this.j!=null;case 14:return Cm(this)!=null;case 15:return(this.Bb&$u)!=0;case 16:return(this.Bb&wh)!=0;case 17:return!!G0(this);case 18:return(this.Bb&kc)!=0;case 19:return r=br(this),!!r&&(r.Bb&kc)!=0;case 20:return(this.Bb&hr)==0;case 21:return!!this.b;case 22:return!!SNn(this);case 23:return!!this.a&&this.a.i!=0}return Uo(this,e-se((An(),U2)),$n((t=u(Un(this,16),29),t||U2),e))},o.bi=function(e,t){var i,r;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:RD(this,Ae(t));return;case 2:c1(this,on(un(t)));return;case 3:u1(this,on(un(t)));return;case 4:e1(this,u(t,17).a);return;case 5:Z0(this,u(t,17).a);return;case 8:ad(this,u(t,142));return;case 9:r=Kf(this,u(t,89),null),r&&r.oj();return;case 10:fm(this,on(un(t)));return;case 11:am(this,on(un(t)));return;case 12:hm(this,on(un(t)));return;case 13:bX(this,Ae(t));return;case 15:lm(this,on(un(t)));return;case 16:dm(this,on(un(t)));return;case 18:S2e(this,on(un(t)));return;case 20:NY(this,on(un(t)));return;case 21:AQ(this,u(t,19));return;case 23:!this.a&&(this.a=new Eg(ng,this,23)),me(this.a),!this.a&&(this.a=new Eg(ng,this,23)),Kt(this.a,u(t,16));return}Jo(this,e-se((An(),U2)),$n((i=u(Un(this,16),29),i||U2),e),t)},o.ii=function(){return An(),U2},o.ki=function(e){var t,i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:L(this.Cb,90)&&hw(Zu(u(this.Cb,90)),4),zc(this,null);return;case 2:c1(this,!0);return;case 3:u1(this,!0);return;case 4:e1(this,0);return;case 5:Z0(this,1);return;case 8:ad(this,null);return;case 9:i=Kf(this,null,null),i&&i.oj();return;case 10:fm(this,!0);return;case 11:am(this,!1);return;case 12:hm(this,!1);return;case 13:this.i=null,kC(this,null);return;case 15:lm(this,!1);return;case 16:dm(this,!1);return;case 18:LY(this,!1),L(this.Cb,90)&&hw(Zu(u(this.Cb,90)),2);return;case 20:NY(this,!0);return;case 21:AQ(this,null);return;case 23:!this.a&&(this.a=new Eg(ng,this,23)),me(this.a);return}Wo(this,e-se((An(),U2)),$n((t=u(Un(this,16),29),t||U2),e))},o.pi=function(){eY(this),I4(Nr((Lu(),zi),this)),gs(this),this.Bb|=1},o.uk=function(){return br(this)},o._k=function(){var e;return e=br(this),!!e&&(e.Bb&kc)!=0},o.al=function(){return(this.Bb&kc)!=0},o.bl=function(){return(this.Bb&hr)!=0},o.Yk=function(e,t){return this.c=null,jY(this,e,t)},o.Ib=function(){var e;return this.Db&64?$S(this):(e=new ls($S(this)),e.a+=" (containment: ",ql(e,(this.Bb&kc)!=0),e.a+=", resolveProxies: ",ql(e,(this.Bb&hr)!=0),e.a+=")",e.a)},w(qn,"EReferenceImpl",102),b(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},Tvn),o.Fb=function(e){return this===e},o.ld=function(){return this.b},o.md=function(){return this.c},o.Hb=function(){return lb(this)},o.Di=function(e){L0e(this,Ae(e))},o.nd=function(e){return p0e(this,Ae(e))},o.Lh=function(e,t,i){var r;switch(e){case 0:return this.b;case 1:return this.c}return zo(this,e-se((An(),ar)),$n((r=u(Un(this,16),29),r||ar),e),t,i)},o.Wh=function(e){var t;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return Uo(this,e-se((An(),ar)),$n((t=u(Un(this,16),29),t||ar),e))},o.bi=function(e,t){var i;switch(e){case 0:N0e(this,Ae(t));return;case 1:PQ(this,Ae(t));return}Jo(this,e-se((An(),ar)),$n((i=u(Un(this,16),29),i||ar),e),t)},o.ii=function(){return An(),ar},o.ki=function(e){var t;switch(e){case 0:SQ(this,null);return;case 1:PQ(this,null);return}Wo(this,e-se((An(),ar)),$n((t=u(Un(this,16),29),t||ar),e))},o.Bi=function(){var e;return this.a==-1&&(e=this.b,this.a=e==null?0:t1(e)),this.a},o.Ci=function(e){this.a=e},o.Ib=function(){var e;return this.Db&64?Hs(this):(e=new ls(Hs(this)),e.a+=" (key: ",Er(e,this.b),e.a+=", value: ",Er(e,this.c),e.a+=")",e.a)},o.a=-1,o.b=null,o.c=null;var pc=w(qn,"EStringToStringMapEntryImpl",561),Qoe=Dt(Ct,"FeatureMap/Entry/Internal");b(576,1,VP),o.xl=function(e){return this.yl(u(e,54))},o.yl=function(e){return this.xl(e)},o.Fb=function(e){var t,i;return this===e?!0:L(e,76)?(t=u(e,76),t.Lk()==this.c?(i=this.md(),i==null?t.md()==null:rt(i,t.md())):!1):!1},o.Lk=function(){return this.c},o.Hb=function(){var e;return e=this.md(),mt(this.c)^(e==null?0:mt(e))},o.Ib=function(){var e,t;return e=this.c,t=jo(e.qk()).yi(),e.xe(),(t!=null&&t.length!=0?t+":"+e.xe():e.xe())+"="+this.md()},w(qn,"EStructuralFeatureImpl/BasicFeatureMapEntry",576),b(791,576,VP,dV),o.yl=function(e){return new dV(this.c,e)},o.md=function(){return this.a},o.zl=function(e,t,i){return gve(this,e,this.a,t,i)},o.Al=function(e,t,i){return pve(this,e,this.a,t,i)},w(qn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791),b(1350,1,{},DTn),o.yk=function(e,t,i,r,c){var s;return s=u(x4(e,this.b),220),s.Yl(this.a).Fk(r)},o.zk=function(e,t,i,r,c){var s;return s=u(x4(e,this.b),220),s.Pl(this.a,r,c)},o.Ak=function(e,t,i,r,c){var s;return s=u(x4(e,this.b),220),s.Ql(this.a,r,c)},o.Bk=function(e,t,i){var r;return r=u(x4(e,this.b),220),r.Yl(this.a).Qj()},o.Ck=function(e,t,i,r){var c;c=u(x4(e,this.b),220),c.Yl(this.a).Wb(r)},o.Dk=function(e,t,i){return u(x4(e,this.b),220).Yl(this.a)},o.Ek=function(e,t,i){var r;r=u(x4(e,this.b),220),r.Yl(this.a).Gk()},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350),b(91,1,{},Xl,Za,Wl,rd),o.yk=function(e,t,i,r,c){var s;if(s=t.li(i),s==null&&t.mi(i,s=XS(this,e)),!c)switch(this.e){case 50:case 41:return u(s,597).bk();case 40:return u(s,220).Vl()}return s},o.zk=function(e,t,i,r,c){var s,f;return f=t.li(i),f==null&&t.mi(i,f=XS(this,e)),s=u(f,71).Wk(r,c),s},o.Ak=function(e,t,i,r,c){var s;return s=t.li(i),s!=null&&(c=u(s,71).Xk(r,c)),c},o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null&&u(r,79).Qj()},o.Ck=function(e,t,i,r){var c;c=u(t.li(i),79),!c&&t.mi(i,c=XS(this,e)),c.Wb(r)},o.Dk=function(e,t,i){var r,c;return c=t.li(i),c==null&&t.mi(i,c=XS(this,e)),L(c,79)?u(c,79):(r=u(t.li(i),15),new Eyn(r))},o.Ek=function(e,t,i){var r;r=u(t.li(i),79),!r&&t.mi(i,r=XS(this,e)),r.Gk()},o.b=0,o.e=0,w(qn,"EStructuralFeatureImpl/InternalSettingDelegateMany",91),b(512,1,{}),o.zk=function(e,t,i,r,c){throw T(new Ie)},o.Ak=function(e,t,i,r,c){throw T(new Ie)},o.Dk=function(e,t,i){return new LOn(this,e,t,i)};var rl;w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512),b(1367,1,CF,LOn),o.Fk=function(e){return this.a.yk(this.c,this.d,this.b,e,!0)},o.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},o.Wb=function(e){this.a.Ck(this.c,this.d,this.b,e)},o.Gk=function(){this.a.Ek(this.c,this.d,this.b)},o.b=0,w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367),b(784,512,{},eJ),o.yk=function(e,t,i,r,c){return SR(e,e.Ph(),e.Fh())==this.b?this.bl()&&r?dR(e):e.Ph():null},o.zk=function(e,t,i,r,c){var s,f;return e.Ph()&&(c=(s=e.Fh(),s>=0?e.Ah(c):e.Ph().Th(e,-1-s,null,c))),f=At(e.Dh(),this.e),e.Ch(r,f,c)},o.Ak=function(e,t,i,r,c){var s;return s=At(e.Dh(),this.e),e.Ch(null,s,c)},o.Bk=function(e,t,i){var r;return r=At(e.Dh(),this.e),!!e.Ph()&&e.Fh()==r},o.Ck=function(e,t,i,r){var c,s,f,h,l;if(r!=null&&!AR(this.a,r))throw T(new i4(WP+(L(r,58)?HZ(u(r,58).Dh()):sQ(wo(r)))+JP+this.a+"'"));if(c=e.Ph(),f=At(e.Dh(),this.e),x(r)!==x(c)||e.Fh()!=f&&r!=null){if(mm(e,u(r,58)))throw T(new Gn(w8+e.Ib()));l=null,c&&(l=(s=e.Fh(),s>=0?e.Ah(l):e.Ph().Th(e,-1-s,null,l))),h=u(r,54),h&&(l=h.Rh(e,At(h.Dh(),this.b),null,l)),l=e.Ch(h,f,l),l&&l.oj()}else e.vh()&&e.wh()&&it(e,new Mi(e,1,f,r,r))},o.Ek=function(e,t,i){var r,c,s,f;r=e.Ph(),r?(f=(c=e.Fh(),c>=0?e.Ah(null):e.Ph().Th(e,-1-c,null,null)),s=At(e.Dh(),this.e),f=e.Ch(null,s,f),f&&f.oj()):e.vh()&&e.wh()&&it(e,new H6(e,1,this.e,null,null))},o.bl=function(){return!1},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784),b(1351,784,{},jPn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351),b(574,512,{}),o.yk=function(e,t,i,r,c){var s;return s=t.li(i),s==null?this.b:x(s)===x(rl)?null:s},o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null&&(x(r)===x(rl)||!rt(r,this.b))},o.Ck=function(e,t,i,r){var c,s;e.vh()&&e.wh()?(c=(s=t.li(i),s==null?this.b:x(s)===x(rl)?null:s),r==null?this.c!=null?(t.mi(i,null),r=this.b):this.b!=null?t.mi(i,rl):t.mi(i,null):(this.Bl(r),t.mi(i,r)),it(e,this.d.Cl(e,1,this.e,c,r))):r==null?this.c!=null?t.mi(i,null):this.b!=null?t.mi(i,rl):t.mi(i,null):(this.Bl(r),t.mi(i,r))},o.Ek=function(e,t,i){var r,c;e.vh()&&e.wh()?(r=(c=t.li(i),c==null?this.b:x(c)===x(rl)?null:c),t.ni(i),it(e,this.d.Cl(e,1,this.e,r,this.b))):t.ni(i)},o.Bl=function(e){throw T(new Dyn)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574),b(h2,1,{},Cvn),o.Cl=function(e,t,i,r,c){return new H6(e,t,i,r,c)},o.Dl=function(e,t,i,r,c,s){return new TD(e,t,i,r,c,s)};var zdn,Xdn,Vdn,Wdn,Jdn,Qdn,Ydn,TU,Zdn;w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",h2),b(1368,h2,{},Svn),o.Cl=function(e,t,i,r,c){return new LJ(e,t,i,on(un(r)),on(un(c)))},o.Dl=function(e,t,i,r,c,s){return new iLn(e,t,i,on(un(r)),on(un(c)),s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368),b(1369,h2,{},Pvn),o.Cl=function(e,t,i,r,c){return new aQ(e,t,i,u(r,222).a,u(c,222).a)},o.Dl=function(e,t,i,r,c,s){return new JAn(e,t,i,u(r,222).a,u(c,222).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369),b(1370,h2,{},Ivn),o.Cl=function(e,t,i,r,c){return new dQ(e,t,i,u(r,180).a,u(c,180).a)},o.Dl=function(e,t,i,r,c,s){return new QAn(e,t,i,u(r,180).a,u(c,180).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370),b(1371,h2,{},Ovn),o.Cl=function(e,t,i,r,c){return new OJ(e,t,i,$(B(r)),$(B(c)))},o.Dl=function(e,t,i,r,c,s){return new YAn(e,t,i,$(B(r)),$(B(c)),s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371),b(1372,h2,{},Avn),o.Cl=function(e,t,i,r,c){return new gQ(e,t,i,u(r,161).a,u(c,161).a)},o.Dl=function(e,t,i,r,c,s){return new ZAn(e,t,i,u(r,161).a,u(c,161).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372),b(1373,h2,{},Lvn),o.Cl=function(e,t,i,r,c){return new AJ(e,t,i,u(r,17).a,u(c,17).a)},o.Dl=function(e,t,i,r,c,s){return new nLn(e,t,i,u(r,17).a,u(c,17).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373),b(1374,h2,{},Nvn),o.Cl=function(e,t,i,r,c){return new bQ(e,t,i,u(r,168).a,u(c,168).a)},o.Dl=function(e,t,i,r,c,s){return new eLn(e,t,i,u(r,168).a,u(c,168).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374),b(1375,h2,{},Dvn),o.Cl=function(e,t,i,r,c){return new wQ(e,t,i,u(r,191).a,u(c,191).a)},o.Dl=function(e,t,i,r,c,s){return new tLn(e,t,i,u(r,191).a,u(c,191).a,s)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375),b(1353,574,{},NOn),o.Bl=function(e){if(!this.a.fk(e))throw T(new i4(WP+wo(e)+JP+this.a+"'"))},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353),b(1354,574,{},kIn),o.Bl=function(e){},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354),b(785,574,{}),o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null},o.Ck=function(e,t,i,r){var c,s;e.vh()&&e.wh()?(c=!0,s=t.li(i),s==null?(c=!1,s=this.b):x(s)===x(rl)&&(s=null),r==null?this.c!=null?(t.mi(i,null),r=this.b):t.mi(i,rl):(this.Bl(r),t.mi(i,r)),it(e,this.d.Dl(e,1,this.e,s,r,!c))):r==null?this.c!=null?t.mi(i,null):t.mi(i,rl):(this.Bl(r),t.mi(i,r))},o.Ek=function(e,t,i){var r,c;e.vh()&&e.wh()?(r=!0,c=t.li(i),c==null?(r=!1,c=this.b):x(c)===x(rl)&&(c=null),t.ni(i),it(e,this.d.Dl(e,2,this.e,c,this.b,r))):t.ni(i)},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785),b(1355,785,{},DOn),o.Bl=function(e){if(!this.a.fk(e))throw T(new i4(WP+wo(e)+JP+this.a+"'"))},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355),b(1356,785,{},yIn),o.Bl=function(e){},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356),b(410,512,{},oT),o.yk=function(e,t,i,r,c){var s,f,h,l,a;if(a=t.li(i),this.tk()&&x(a)===x(rl))return null;if(this.bl()&&r&&a!=null){if(h=u(a,54),h.Vh()&&(l=ea(e,h),h!=l)){if(!AR(this.a,l))throw T(new i4(WP+wo(l)+JP+this.a+"'"));t.mi(i,a=l),this.al()&&(s=u(l,54),f=h.Th(e,this.b?At(h.Dh(),this.b):-1-At(e.Dh(),this.e),null,null),!s.Ph()&&(f=s.Rh(e,this.b?At(s.Dh(),this.b):-1-At(e.Dh(),this.e),null,f)),f&&f.oj()),e.vh()&&e.wh()&&it(e,new H6(e,9,this.e,h,l))}return a}else return a},o.zk=function(e,t,i,r,c){var s,f;return f=t.li(i),x(f)===x(rl)&&(f=null),t.mi(i,r),this.Mj()?x(f)!==x(r)&&f!=null&&(s=u(f,54),c=s.Th(e,At(s.Dh(),this.b),null,c)):this.al()&&f!=null&&(c=u(f,54).Th(e,-1-At(e.Dh(),this.e),null,c)),e.vh()&&e.wh()&&(!c&&(c=new R1(4)),c.nj(new H6(e,1,this.e,f,r))),c},o.Ak=function(e,t,i,r,c){var s;return s=t.li(i),x(s)===x(rl)&&(s=null),t.ni(i),e.vh()&&e.wh()&&(!c&&(c=new R1(4)),this.tk()?c.nj(new H6(e,2,this.e,s,null)):c.nj(new H6(e,1,this.e,s,null))),c},o.Bk=function(e,t,i){var r;return r=t.li(i),r!=null},o.Ck=function(e,t,i,r){var c,s,f,h,l;if(r!=null&&!AR(this.a,r))throw T(new i4(WP+(L(r,58)?HZ(u(r,58).Dh()):sQ(wo(r)))+JP+this.a+"'"));l=t.li(i),h=l!=null,this.tk()&&x(l)===x(rl)&&(l=null),f=null,this.Mj()?x(l)!==x(r)&&(l!=null&&(c=u(l,54),f=c.Th(e,At(c.Dh(),this.b),null,f)),r!=null&&(c=u(r,54),f=c.Rh(e,At(c.Dh(),this.b),null,f))):this.al()&&x(l)!==x(r)&&(l!=null&&(f=u(l,54).Th(e,-1-At(e.Dh(),this.e),null,f)),r!=null&&(f=u(r,54).Rh(e,-1-At(e.Dh(),this.e),null,f))),r==null&&this.tk()?t.mi(i,rl):t.mi(i,r),e.vh()&&e.wh()?(s=new TD(e,1,this.e,l,r,this.tk()&&!h),f?(f.nj(s),f.oj()):it(e,s)):f&&f.oj()},o.Ek=function(e,t,i){var r,c,s,f,h;h=t.li(i),f=h!=null,this.tk()&&x(h)===x(rl)&&(h=null),s=null,h!=null&&(this.Mj()?(r=u(h,54),s=r.Th(e,At(r.Dh(),this.b),null,s)):this.al()&&(s=u(h,54).Th(e,-1-At(e.Dh(),this.e),null,s))),t.ni(i),e.vh()&&e.wh()?(c=new TD(e,this.tk()?2:1,this.e,h,null,f),s?(s.nj(c),s.oj()):it(e,c)):s&&s.oj()},o.Mj=function(){return!1},o.al=function(){return!1},o.bl=function(){return!1},o.tk=function(){return!1},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410),b(575,410,{},IN),o.al=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575),b(1359,575,{},vSn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359),b(787,575,{},nV),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787),b(1361,787,{},kSn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361),b(650,575,{},HN),o.Mj=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650),b(1360,650,{},EPn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360),b(788,650,{},FV),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788),b(1362,788,{},MPn),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362),b(651,410,{},eV),o.bl=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651),b(1363,651,{},ySn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363),b(789,651,{},KV),o.Mj=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789),b(1364,789,{},TPn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364),b(1357,410,{},jSn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357),b(786,410,{},BV),o.Mj=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786),b(1358,786,{},CPn),o.tk=function(){return!0},w(qn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358),b(790,576,VP,xW),o.yl=function(e){return new xW(this.a,this.c,e)},o.md=function(){return this.b},o.zl=function(e,t,i){return b4e(this,e,this.b,i)},o.Al=function(e,t,i){return w4e(this,e,this.b,i)},w(qn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790),b(1365,1,CF,Eyn),o.Fk=function(e){return this.a},o.Qj=function(){return L(this.a,97)?u(this.a,97).Qj():!this.a.dc()},o.Wb=function(e){this.a.$b(),this.a.Gc(u(e,15))},o.Gk=function(){L(this.a,97)?u(this.a,97).Gk():this.a.$b()},w(qn,"EStructuralFeatureImpl/SettingMany",1365),b(1366,576,VP,VLn),o.xl=function(e){return new LN((at(),R9),this.b.ri(this.a,e))},o.md=function(){return null},o.zl=function(e,t,i){return i},o.Al=function(e,t,i){return i},w(qn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366),b(652,576,VP,LN),o.xl=function(e){return new LN(this.c,e)},o.md=function(){return this.a},o.zl=function(e,t,i){return i},o.Al=function(e,t,i){return i},w(qn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652),b(403,506,Mh,W3),o.aj=function(e){return F(Ss,Kn,29,e,0,1)},o.Yi=function(){return!1},w(qn,"ESuperAdapter/1",403),b(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},UA),o.Lh=function(e,t,i){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new K6(this,jr,this)),this.a}return zo(this,e-se((An(),E0)),$n((r=u(Un(this,16),29),r||E0),e),t,i)},o.Uh=function(e,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new q(Ue,this,0,3)),cr(this.Ab,e,i);case 2:return!this.a&&(this.a=new K6(this,jr,this)),cr(this.a,e,i)}return c=u($n((r=u(Un(this,16),29),r||(An(),E0)),t),69),c.wk().Ak(this,iu(this),t-se((An(),E0)),e,i)},o.Wh=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return Uo(this,e-se((An(),E0)),$n((t=u(Un(this,16),29),t||E0),e))},o.bi=function(e,t){var i;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab),!this.Ab&&(this.Ab=new q(Ue,this,0,3)),Kt(this.Ab,u(t,16));return;case 1:zc(this,Ae(t));return;case 2:!this.a&&(this.a=new K6(this,jr,this)),me(this.a),!this.a&&(this.a=new K6(this,jr,this)),Kt(this.a,u(t,16));return}Jo(this,e-se((An(),E0)),$n((i=u(Un(this,16),29),i||E0),e),t)},o.ii=function(){return An(),E0},o.ki=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new q(Ue,this,0,3)),me(this.Ab);return;case 1:zc(this,null);return;case 2:!this.a&&(this.a=new K6(this,jr,this)),me(this.a);return}Wo(this,e-se((An(),E0)),$n((t=u(Un(this,16),29),t||E0),e))},w(qn,"ETypeParameterImpl",457),b(458,83,Qr,K6),o.Nj=function(e,t){return Iye(this,u(e,89),t)},o.Oj=function(e,t){return Oye(this,u(e,89),t)},w(qn,"ETypeParameterImpl/1",458),b(647,45,n2,aL),o.ec=function(){return new DE(this)},w(qn,"ETypeParameterImpl/2",647),b(570,Ff,Nu,DE),o.Fc=function(e){return VSn(this,u(e,89))},o.Gc=function(e){var t,i,r;for(r=!1,i=e.Kc();i.Ob();)t=u(i.Pb(),89),Ve(this.a,t,"")==null&&(r=!0);return r},o.$b=function(){Hu(this.a)},o.Hc=function(e){return Zc(this.a,e)},o.Kc=function(){var e;return e=new sd(new Ua(this.a).a),new $E(e)},o.Mc=function(e){return KNn(this,e)},o.gc=function(){return c6(this.a)},w(qn,"ETypeParameterImpl/2/1",570),b(571,1,Pi,$E),o.Nb=function(e){_i(this,e)},o.Pb=function(){return u(Nb(this.a).ld(),89)},o.Ob=function(){return this.a.b},o.Qb=function(){XDn(this.a)},w(qn,"ETypeParameterImpl/2/1/1",571),b(1329,45,n2,djn),o._b=function(e){return Si(e)?SD(this,e):!!wr(this.f,e)},o.xc=function(e){var t,i;return t=Si(e)?Dc(this,e):Fr(wr(this.f,e)),L(t,851)?(i=u(t,851),t=i.Kk(),Ve(this,u(e,241),t),t):t??(e==null?(AL(),Zoe):null)},w(qn,"EValidatorRegistryImpl",1329),b(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},$vn),o.ri=function(e,t){switch(e.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:Jr(t);case 25:return Cme(t);case 27:return F4e(t);case 28:return _4e(t);case 29:return t==null?null:TCn(A9[0],u(t,206));case 41:return t==null?"":Xa(u(t,297));case 42:return Jr(t);case 50:return Ae(t);default:throw T(new Gn(ev+e.xe()+n0))}},o.si=function(e){var t,i,r,c,s,f,h,l,a,d,g,p,m,k,j,P;switch(e.G==-1&&(e.G=(p=jo(e),p?f1(p.vi(),e):-1)),e.G){case 0:return i=new fL,i;case 1:return t=new eG,t;case 2:return r=new cG,r;case 4:return c=new xE,c;case 5:return s=new ajn,s;case 6:return f=new Ryn,f;case 7:return h=new uG,h;case 10:return a=new TE,a;case 11:return d=new hL,d;case 12:return g=new HOn,g;case 13:return m=new lL,m;case 14:return k=new rV,k;case 17:return j=new Tvn,j;case 18:return l=new Jd,l;case 19:return P=new UA,P;default:throw T(new Gn(hF+e.zb+n0))}},o.ti=function(e,t){switch(e.hk()){case 20:return t==null?null:new Cz(t);case 21:return t==null?null:new H1(t);case 23:case 22:return t==null?null:B8e(t);case 26:case 24:return t==null?null:ak(So(t,-128,127)<<24>>24);case 25:return rTe(t);case 27:return C7e(t);case 28:return S7e(t);case 29:return Jye(t);case 32:case 31:return t==null?null:sw(t);case 38:case 37:return t==null?null:new qG(t);case 40:case 39:return t==null?null:Y(So(t,Wi,et));case 41:return null;case 42:return t==null,null;case 44:case 43:return t==null?null:Tl(zS(t));case 49:case 48:return t==null?null:sm(So(t,QP,32767)<<16>>16);case 50:return t;default:throw T(new Gn(ev+e.xe()+n0))}},w(qn,"EcoreFactoryImpl",1349),b(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},aOn),o.gb=!1,o.hb=!1;var nbn,Yoe=!1;w(qn,"EcorePackageImpl",560),b(1234,1,{851:1},xvn),o.Kk=function(){return KCn(),nse},w(qn,"EcorePackageImpl/1",1234),b(1243,1,ze,Rvn),o.fk=function(e){return L(e,155)},o.gk=function(e){return F(fE,Kn,155,e,0,1)},w(qn,"EcorePackageImpl/10",1243),b(1244,1,ze,Kvn),o.fk=function(e){return L(e,197)},o.gk=function(e){return F(gU,Kn,197,e,0,1)},w(qn,"EcorePackageImpl/11",1244),b(1245,1,ze,Bvn),o.fk=function(e){return L(e,58)},o.gk=function(e){return F(Aa,Kn,58,e,0,1)},w(qn,"EcorePackageImpl/12",1245),b(1246,1,ze,Fvn),o.fk=function(e){return L(e,411)},o.gk=function(e){return F(Ps,Ucn,62,e,0,1)},w(qn,"EcorePackageImpl/13",1246),b(1247,1,ze,_vn),o.fk=function(e){return L(e,241)},o.gk=function(e){return F(Ef,Kn,241,e,0,1)},w(qn,"EcorePackageImpl/14",1247),b(1248,1,ze,Hvn),o.fk=function(e){return L(e,518)},o.gk=function(e){return F(y0,Kn,2116,e,0,1)},w(qn,"EcorePackageImpl/15",1248),b(1249,1,ze,qvn),o.fk=function(e){return L(e,102)},o.gk=function(e){return F(eg,f2,19,e,0,1)},w(qn,"EcorePackageImpl/16",1249),b(1250,1,ze,Uvn),o.fk=function(e){return L(e,179)},o.gk=function(e){return F(ku,f2,179,e,0,1)},w(qn,"EcorePackageImpl/17",1250),b(1251,1,ze,Gvn),o.fk=function(e){return L(e,481)},o.gk=function(e){return F(Zw,Kn,481,e,0,1)},w(qn,"EcorePackageImpl/18",1251),b(1252,1,ze,zvn),o.fk=function(e){return L(e,561)},o.gk=function(e){return F(pc,nJn,561,e,0,1)},w(qn,"EcorePackageImpl/19",1252),b(1235,1,ze,Xvn),o.fk=function(e){return L(e,331)},o.gk=function(e){return F(ng,f2,35,e,0,1)},w(qn,"EcorePackageImpl/2",1235),b(1253,1,ze,Vvn),o.fk=function(e){return L(e,248)},o.gk=function(e){return F(jr,pJn,89,e,0,1)},w(qn,"EcorePackageImpl/20",1253),b(1254,1,ze,Wvn),o.fk=function(e){return L(e,457)},o.gk=function(e){return F(fu,Kn,850,e,0,1)},w(qn,"EcorePackageImpl/21",1254),b(1255,1,ze,Jvn),o.fk=function(e){return D0(e)},o.gk=function(e){return F(Gt,J,485,e,8,1)},w(qn,"EcorePackageImpl/22",1255),b(1256,1,ze,Qvn),o.fk=function(e){return L(e,195)},o.gk=function(e){return F(Ru,J,195,e,0,2)},w(qn,"EcorePackageImpl/23",1256),b(1257,1,ze,Yvn),o.fk=function(e){return L(e,222)},o.gk=function(e){return F(p3,J,222,e,0,1)},w(qn,"EcorePackageImpl/24",1257),b(1258,1,ze,Zvn),o.fk=function(e){return L(e,180)},o.gk=function(e){return F(S8,J,180,e,0,1)},w(qn,"EcorePackageImpl/25",1258),b(1259,1,ze,n6n),o.fk=function(e){return L(e,206)},o.gk=function(e){return F(oI,J,206,e,0,1)},w(qn,"EcorePackageImpl/26",1259),b(1260,1,ze,e6n),o.fk=function(e){return!1},o.gk=function(e){return F(mbn,Kn,2215,e,0,1)},w(qn,"EcorePackageImpl/27",1260),b(1261,1,ze,t6n),o.fk=function(e){return $0(e)},o.gk=function(e){return F(si,J,345,e,7,1)},w(qn,"EcorePackageImpl/28",1261),b(1262,1,ze,i6n),o.fk=function(e){return L(e,61)},o.gk=function(e){return F(Ndn,kw,61,e,0,1)},w(qn,"EcorePackageImpl/29",1262),b(1236,1,ze,r6n),o.fk=function(e){return L(e,519)},o.gk=function(e){return F(Ue,{3:1,4:1,5:1,2033:1},598,e,0,1)},w(qn,"EcorePackageImpl/3",1236),b(1263,1,ze,c6n),o.fk=function(e){return L(e,582)},o.gk=function(e){return F(xdn,Kn,2039,e,0,1)},w(qn,"EcorePackageImpl/30",1263),b(1264,1,ze,u6n),o.fk=function(e){return L(e,160)},o.gk=function(e){return F(cbn,kw,160,e,0,1)},w(qn,"EcorePackageImpl/31",1264),b(1265,1,ze,o6n),o.fk=function(e){return L(e,76)},o.gk=function(e){return F(MA,CJn,76,e,0,1)},w(qn,"EcorePackageImpl/32",1265),b(1266,1,ze,s6n),o.fk=function(e){return L(e,161)},o.gk=function(e){return F(sv,J,161,e,0,1)},w(qn,"EcorePackageImpl/33",1266),b(1267,1,ze,f6n),o.fk=function(e){return L(e,17)},o.gk=function(e){return F(Gi,J,17,e,0,1)},w(qn,"EcorePackageImpl/34",1267),b(1268,1,ze,h6n),o.fk=function(e){return L(e,297)},o.gk=function(e){return F(iun,Kn,297,e,0,1)},w(qn,"EcorePackageImpl/35",1268),b(1269,1,ze,l6n),o.fk=function(e){return L(e,168)},o.gk=function(e){return F(t0,J,168,e,0,1)},w(qn,"EcorePackageImpl/36",1269),b(1270,1,ze,a6n),o.fk=function(e){return L(e,85)},o.gk=function(e){return F(run,Kn,85,e,0,1)},w(qn,"EcorePackageImpl/37",1270),b(1271,1,ze,d6n),o.fk=function(e){return L(e,599)},o.gk=function(e){return F(ebn,Kn,599,e,0,1)},w(qn,"EcorePackageImpl/38",1271),b(1272,1,ze,b6n),o.fk=function(e){return!1},o.gk=function(e){return F(vbn,Kn,2216,e,0,1)},w(qn,"EcorePackageImpl/39",1272),b(1237,1,ze,w6n),o.fk=function(e){return L(e,90)},o.gk=function(e){return F(Ss,Kn,29,e,0,1)},w(qn,"EcorePackageImpl/4",1237),b(1273,1,ze,g6n),o.fk=function(e){return L(e,191)},o.gk=function(e){return F(i0,J,191,e,0,1)},w(qn,"EcorePackageImpl/40",1273),b(1274,1,ze,p6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(qn,"EcorePackageImpl/41",1274),b(1275,1,ze,m6n),o.fk=function(e){return L(e,596)},o.gk=function(e){return F($dn,Kn,596,e,0,1)},w(qn,"EcorePackageImpl/42",1275),b(1276,1,ze,v6n),o.fk=function(e){return!1},o.gk=function(e){return F(kbn,J,2217,e,0,1)},w(qn,"EcorePackageImpl/43",1276),b(1277,1,ze,k6n),o.fk=function(e){return L(e,44)},o.gk=function(e){return F(Id,WS,44,e,0,1)},w(qn,"EcorePackageImpl/44",1277),b(1238,1,ze,y6n),o.fk=function(e){return L(e,142)},o.gk=function(e){return F(Mf,Kn,142,e,0,1)},w(qn,"EcorePackageImpl/5",1238),b(1239,1,ze,j6n),o.fk=function(e){return L(e,156)},o.gk=function(e){return F(jU,Kn,156,e,0,1)},w(qn,"EcorePackageImpl/6",1239),b(1240,1,ze,E6n),o.fk=function(e){return L(e,469)},o.gk=function(e){return F(EA,Kn,685,e,0,1)},w(qn,"EcorePackageImpl/7",1240),b(1241,1,ze,M6n),o.fk=function(e){return L(e,582)},o.gk=function(e){return F(Kl,Kn,694,e,0,1)},w(qn,"EcorePackageImpl/8",1241),b(1242,1,ze,T6n),o.fk=function(e){return L(e,480)},o.gk=function(e){return F(O9,Kn,480,e,0,1)},w(qn,"EcorePackageImpl/9",1242),b(1038,2080,ZWn,Djn),o.Mi=function(e,t){b5e(this,u(t,424))},o.Qi=function(e,t){P_n(this,e,u(t,424))},w(qn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038),b(1039,152,Wy,tOn),o.jj=function(){return this.a.a},w(qn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039),b(1067,1066,{},gCn),w("org.eclipse.emf.ecore.plugin","EcorePlugin",1067);var ebn=Dt(SJn,"Resource");b(799,1524,PJn),o.Hl=function(e){},o.Il=function(e){},o.El=function(){return!this.a&&(this.a=new iL(this)),this.a},o.Fl=function(e){var t,i,r,c,s;if(r=e.length,r>0)if(zn(0,e.length),e.charCodeAt(0)==47){for(s=new Gc(4),c=1,t=1;t<r;++t)zn(t,e.length),e.charCodeAt(t)==47&&(nn(s,c==t?"":(Ri(c,t,e.length),e.substr(c,t-c))),c=t+1);return nn(s,(zn(c,e.length+1),e.substr(c))),pke(this,s)}else zn(r-1,e.length),e.charCodeAt(r-1)==63&&(i=CV(e,wu(63),r-2),i>0&&(e=(Ri(0,i,e.length),e.substr(0,i))));return qEe(this,e)},o.Gl=function(){return this.c},o.Ib=function(){var e;return Xa(this.Rm)+"@"+(e=mt(this)>>>0,e.toString(16))+" uri='"+this.d+"'"},o.b=!1,w(SF,"ResourceImpl",799),b(1525,799,PJn,Myn),w(SF,"BinaryResourceImpl",1525),b(1190,708,yF),o.bj=function(e){return L(e,58)?Dge(this,u(e,58)):L(e,599)?new ne(u(e,599).El()):x(e)===x(this.f)?u(e,16).Kc():(m4(),aE.a)},o.Ob=function(){return xnn(this)},o.a=!1,w(Ct,"EcoreUtil/ContentTreeIterator",1190),b(1526,1190,yF,LIn),o.bj=function(e){return x(e)===x(this.f)?u(e,15).Kc():new ILn(u(e,58))},w(SF,"ResourceImpl/5",1526),b(658,2092,gJn,iL),o.Hc=function(e){return this.i<=4?km(this,e):L(e,54)&&u(e,54).Jh()==this.a},o.Mi=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},o.Oi=function(e,t){e==0?this.a.b||(this.a.b=!0):t$(this,e,t)},o.Qi=function(e,t){},o.Ri=function(e,t,i){},o.Lj=function(){return 2},o.jj=function(){return this.a},o.Mj=function(){return!0},o.Nj=function(e,t){var i;return i=u(e,54),t=i.fi(this.a,t),t},o.Oj=function(e,t){var i;return i=u(e,54),i.fi(null,t)},o.Pj=function(){return!1},o.Si=function(){return!0},o.aj=function(e){return F(Aa,Kn,58,e,0,1)},o.Yi=function(){return!1},w(SF,"ResourceImpl/ContentsEList",658),b(970,2062,Bm,Tyn),o.fd=function(e){return this.a.Ki(e)},o.gc=function(){return this.a.gc()},w(Ct,"AbstractSequentialInternalEList/1",970);var tbn,ibn,zi,rbn;b(634,1,{},DPn);var TA,CA;w(Ct,"BasicExtendedMetaData",634),b(1181,1,{},xTn),o.Jl=function(){return null},o.Kl=function(){return this.a==-2&&dfe(this,qye(this.d,this.b)),this.a},o.Ll=function(){return null},o.Ml=function(){return Ln(),Ln(),sr},o.xe=function(){return this.c==rv&&bfe(this,YKn(this.d,this.b)),this.c},o.Nl=function(){return 0},o.a=-2,o.c=rv,w(Ct,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181),b(1182,1,{},cLn),o.Jl=function(){return this.a==($4(),TA)&&pfe(this,HSe(this.f,this.b)),this.a},o.Kl=function(){return 0},o.Ll=function(){return this.c==($4(),TA)&&wfe(this,qSe(this.f,this.b)),this.c},o.Ml=function(){return!this.d&&vfe(this,SIe(this.f,this.b)),this.d},o.xe=function(){return this.e==rv&&yfe(this,YKn(this.f,this.b)),this.e},o.Nl=function(){return this.g==-2&&Efe(this,sye(this.f,this.b)),this.g},o.e=rv,o.g=-2,w(Ct,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182),b(1180,1,{},RTn),o.b=!1,o.c=!1,w(Ct,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180),b(1183,1,{},uLn),o.c=-2,o.e=rv,o.f=rv,w(Ct,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183),b(593,632,Qr,QM),o.Lj=function(){return this.c},o.ol=function(){return!1},o.Wi=function(e,t){return t},o.c=0,w(Ct,"EDataTypeEList",593);var cbn=Dt(Ct,"FeatureMap");b(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},Bt),o.bd=function(e,t){oCe(this,e,u(t,76))},o.Fc=function(e){return TTe(this,u(e,76))},o.Hi=function(e){Awe(this,u(e,76))},o.Nj=function(e,t){return Yae(this,u(e,76),t)},o.Oj=function(e,t){return PV(this,u(e,76),t)},o.Ti=function(e,t){return NPe(this,e,t)},o.Wi=function(e,t){return vAe(this,e,u(t,76))},o.hd=function(e,t){return VCe(this,e,u(t,76))},o.Uj=function(e,t){return Zae(this,u(e,76),t)},o.Vj=function(e,t){return fPn(this,u(e,76),t)},o.Wj=function(e,t,i){return Wke(this,u(e,76),u(t,76),i)},o.Zi=function(e,t){return Jx(this,e,u(t,76))},o.Ol=function(e,t){return Sen(this,e,t)},o.cd=function(e,t){var i,r,c,s,f,h,l,a,d;for(a=new Pb(t.gc()),c=t.Kc();c.Ob();)if(r=u(c.Pb(),76),s=r.Lk(),Pl(this.e,s))(!s.Si()||!_T(this,s,r.md())&&!km(a,r))&&ve(a,r);else{for(d=ru(this.e.Dh(),s),i=u(this.g,124),f=!0,h=0;h<this.i;++h)if(l=i[h],d.am(l.Lk())){u(Bg(this,h,r),76),f=!1;break}f&&ve(a,r)}return WQ(this,e,a)},o.Gc=function(e){var t,i,r,c,s,f,h,l,a;for(l=new Pb(e.gc()),r=e.Kc();r.Ob();)if(i=u(r.Pb(),76),c=i.Lk(),Pl(this.e,c))(!c.Si()||!_T(this,c,i.md())&&!km(l,i))&&ve(l,i);else{for(a=ru(this.e.Dh(),c),t=u(this.g,124),s=!0,f=0;f<this.i;++f)if(h=t[f],a.am(h.Lk())){u(Bg(this,f,i),76),s=!1;break}s&&ve(l,i)}return Kt(this,l)},o.Fi=function(e){return this.j=-1,LR(this,this.i,e)},o.Pl=function(e,t,i){return ven(this,e,t,i)},o.Xk=function(e,t){return ly(this,e,t)},o.Ql=function(e,t,i){return Gen(this,e,t,i)},o.Rl=function(){return this},o.Sl=function(e,t){return wy(this,e,t)},o.Tl=function(e){return u(N(this,e),76).Lk()},o.Ul=function(e){return u(N(this,e),76).md()},o.Vl=function(){return this.b},o.Mj=function(){return!0},o.Tj=function(){return!0},o.Wl=function(e){return!Rk(this,e)},o.aj=function(e){return F(Qoe,CJn,343,e,0,1)},o.pl=function(e){return ON(this,e)},o.Wb=function(e){F7(this,e)},o.Xl=function(e,t){HS(this,e,t)},o.Yl=function(e){return oxn(this,e)},o.Zl=function(e){BBn(this,e)},w(Ct,"BasicFeatureMap",78),b(1960,1,Hh),o.Nb=function(e){_i(this,e)},o.Rb=function(e){if(this.g==-1)throw T(new Mu);aT(this);try{mqn(this.e,this.b,this.a,e),this.d=this.e.j,iS(this)}catch(t){throw t=Ot(t),L(t,77)?T(new Ko):T(t)}},o.Ob=function(){return W$(this)},o.Sb=function(){return NRn(this)},o.Pb=function(){return iS(this)},o.Tb=function(){return this.a},o.Ub=function(){var e;if(NRn(this))return aT(this),this.g=--this.a,this.ul()&&(e=N5(this.e,this.b,this.c,this.a,this.j),this.j=e),this.i=0,this.j;throw T(new nc)},o.Vb=function(){return this.a-1},o.Qb=function(){if(this.g==-1)throw T(new Mu);aT(this);try{l_n(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(e){throw e=Ot(e),L(e,77)?T(new Ko):T(e)}},o.ul=function(){return!1},o.Wb=function(e){if(this.g==-1)throw T(new Mu);aT(this);try{HUn(this.e,this.b,this.g,e),this.d=this.e.j}catch(t){throw t=Ot(t),L(t,77)?T(new Ko):T(t)}},o.a=0,o.c=0,o.d=0,o.f=!1,o.g=0,o.i=0,w(Ct,"FeatureMapUtil/BasicFeatureEIterator",1960),b(420,1960,Hh,Y4),o.$l=function(){var e,t,i;for(i=this.e.i,e=u(this.e.g,124);this.c<i;){if(t=e[this.c],this.k.am(t.Lk()))return this.j=this.f?t:t.md(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},o._l=function(){var e,t;for(e=u(this.e.g,124);--this.c>=0;)if(t=e[this.c],this.k.am(t.Lk()))return this.j=this.f?t:t.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},w(Ct,"BasicFeatureMap/FeatureEIterator",420),b(676,420,Hh,dN),o.ul=function(){return!0},w(Ct,"BasicFeatureMap/ResolvingFeatureEIterator",676),b(968,496,zP,CCn),o.pj=function(){return this},w(Ct,"EContentsEList/1",968),b(969,496,zP,JTn),o.ul=function(){return!1},w(Ct,"EContentsEList/2",969),b(967,287,XP,SCn),o.wl=function(e){},o.Ob=function(){return!1},o.Sb=function(){return!1},w(Ct,"EContentsEList/FeatureIteratorImpl/1",967),b(840,593,Qr,$X),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EDataTypeEList/Unsettable",840),b(1958,593,Qr,DCn),o.Si=function(){return!0},w(Ct,"EDataTypeUniqueEList",1958),b(1959,840,Qr,$Cn),o.Si=function(){return!0},w(Ct,"EDataTypeUniqueEList/Unsettable",1959),b(147,83,Qr,Cu),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectContainmentEList/Resolving",147),b(1184,555,Qr,xCn),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectContainmentEList/Unsettable/Resolving",1184),b(766,14,Qr,yV),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EObjectContainmentWithInverseEList/Unsettable",766),b(1222,766,Qr,WSn),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222),b(757,505,Qr,xX),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EObjectEList/Unsettable",757),b(338,505,Qr,Eg),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectResolvingEList",338),b(1844,757,Qr,RCn),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectResolvingEList/Unsettable",1844),b(1527,1,{},C6n);var Zoe;w(Ct,"EObjectValidator",1527),b(559,505,Qr,bT),o.il=function(){return this.d},o.jl=function(){return this.b},o.Mj=function(){return!0},o.ml=function(){return!0},o.b=0,w(Ct,"EObjectWithInverseEList",559),b(1225,559,Qr,JSn),o.ll=function(){return!0},w(Ct,"EObjectWithInverseEList/ManyInverse",1225),b(635,559,Qr,DN),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EObjectWithInverseEList/Unsettable",635),b(1224,635,Qr,QSn),o.ll=function(){return!0},w(Ct,"EObjectWithInverseEList/Unsettable/ManyInverse",1224),b(767,559,Qr,jV),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectWithInverseResolvingEList",767),b(32,767,Qr,Dn),o.ll=function(){return!0},w(Ct,"EObjectWithInverseResolvingEList/ManyInverse",32),b(768,635,Qr,EV),o.nl=function(){return!0},o.Wi=function(e,t){return e3(this,e,u(t,58))},w(Ct,"EObjectWithInverseResolvingEList/Unsettable",768),b(1223,768,Qr,YSn),o.ll=function(){return!0},w(Ct,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223),b(1185,632,Qr),o.Li=function(){return(this.b&1792)==0},o.Ni=function(){this.b|=1},o.kl=function(){return(this.b&4)!=0},o.Mj=function(){return(this.b&40)!=0},o.ll=function(){return(this.b&16)!=0},o.ml=function(){return(this.b&8)!=0},o.nl=function(){return(this.b&Cw)!=0},o.al=function(){return(this.b&32)!=0},o.ol=function(){return(this.b&Gs)!=0},o.fk=function(e){return this.d?KLn(this.d,e):this.Lk().Hk().fk(e)},o.Qj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},o.Si=function(){return(this.b&128)!=0},o.Gk=function(){var e;me(this),this.b&2&&(fo(this.e)?(e=(this.b&1)!=0,this.b&=-2,t4(this,new Bs(this.e,2,At(this.e.Dh(),this.Lk()),e,!1))):this.b&=-2)},o.Yi=function(){return(this.b&1536)==0},o.b=0,w(Ct,"EcoreEList/Generic",1185),b(1186,1185,Qr,UOn),o.Lk=function(){return this.a},w(Ct,"EcoreEList/Dynamic",1186),b(765,66,Mh,RG),o.aj=function(e){return gk(this.a.a,e)},w(Ct,"EcoreEMap/1",765),b(764,83,Qr,yW),o.Mi=function(e,t){uS(this.b,u(t,136))},o.Oi=function(e,t){_xn(this.b)},o.Pi=function(e,t,i){var r;++(r=this.b,u(t,136),r).e},o.Qi=function(e,t){cx(this.b,u(t,136))},o.Ri=function(e,t,i){cx(this.b,u(i,136)),x(i)===x(t)&&u(i,136).Ci(Jle(u(t,136).ld())),uS(this.b,u(t,136))},w(Ct,"EcoreEMap/DelegateEObjectContainmentEList",764),b(1220,141,qcn,rxn),w(Ct,"EcoreEMap/Unsettable",1220),b(1221,764,Qr,ZSn),o.Ni=function(){this.a=!0},o.Qj=function(){return this.a},o.Gk=function(){var e;me(this),fo(this.e)?(e=this.a,this.a=!1,it(this.e,new Bs(this.e,2,this.c,e,!1))):this.a=!1},o.a=!1,w(Ct,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221),b(1189,215,n2,GIn),o.a=!1,o.b=!1,w(Ct,"EcoreUtil/Copier",1189),b(759,1,Pi,ILn),o.Nb=function(e){_i(this,e)},o.Ob=function(){return RKn(this)},o.Pb=function(){var e;return RKn(this),e=this.b,this.b=null,e},o.Qb=function(){this.a.Qb()},w(Ct,"EcoreUtil/ProperContentIterator",759),b(1528,1527,{},C8n);var nse;w(Ct,"EcoreValidator",1528);var ese;Dt(Ct,"FeatureMapUtil/Validator"),b(1295,1,{2041:1},S6n),o.am=function(e){return!0},w(Ct,"FeatureMapUtil/1",1295),b(773,1,{2041:1},itn),o.am=function(e){var t;return this.c==e?!0:(t=un(ee(this.a,e)),t==null?WSe(this,e)?(INn(this.a,e,(_n(),ov)),!0):(INn(this.a,e,(_n(),ga)),!1):t==(_n(),ov))},o.e=!1;var CU;w(Ct,"FeatureMapUtil/BasicValidator",773),b(774,45,n2,NX),w(Ct,"FeatureMapUtil/BasicValidator/Cache",774),b(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},k7),o.bd=function(e,t){mqn(this.c,this.b,e,t)},o.Fc=function(e){return Sen(this.c,this.b,e)},o.cd=function(e,t){return gOe(this.c,this.b,e,t)},o.Gc=function(e){return I6(this,e)},o.Gi=function(e,t){lme(this.c,this.b,e,t)},o.Wk=function(e,t){return ven(this.c,this.b,e,t)},o.$i=function(e){return _S(this.c,this.b,e,!1)},o.Ii=function(){return sCn(this.c,this.b)},o.Ji=function(){return Rle(this.c,this.b)},o.Ki=function(e){return g4e(this.c,this.b,e)},o.Xk=function(e,t){return LSn(this,e,t)},o.$b=function(){cp(this)},o.Hc=function(e){return _T(this.c,this.b,e)},o.Ic=function(e){return wve(this.c,this.b,e)},o.Xb=function(e){return _S(this.c,this.b,e,!0)},o.Fk=function(e){return this},o.dd=function(e){return E3e(this.c,this.b,e)},o.dc=function(){return CM(this)},o.Qj=function(){return!Rk(this.c,this.b)},o.Kc=function(){return eme(this.c,this.b)},o.ed=function(){return tme(this.c,this.b)},o.fd=function(e){return N5e(this.c,this.b,e)},o.Ti=function(e,t){return NUn(this.c,this.b,e,t)},o.Ui=function(e,t){v4e(this.c,this.b,e,t)},o.gd=function(e){return l_n(this.c,this.b,e)},o.Mc=function(e){return mPe(this.c,this.b,e)},o.hd=function(e,t){return HUn(this.c,this.b,e,t)},o.Wb=function(e){jS(this.c,this.b),I6(this,u(e,15))},o.gc=function(){return L5e(this.c,this.b)},o.Pc=function(){return Tpe(this.c,this.b)},o.Qc=function(e){return M3e(this.c,this.b,e)},o.Ib=function(){var e,t;for(t=new Hl,t.a+="[",e=sCn(this.c,this.b);W$(e);)Er(t,A6(iS(e))),W$(e)&&(t.a+=ur);return t.a+="]",t.a},o.Gk=function(){jS(this.c,this.b)},w(Ct,"FeatureMapUtil/FeatureEList",509),b(644,39,Wy,GD),o.hj=function(e){return m5(this,e)},o.mj=function(e){var t,i,r,c,s,f,h;switch(this.d){case 1:case 2:{if(s=e.jj(),x(s)===x(this.c)&&m5(this,null)==e.hj(null))return this.g=e.ij(),e.gj()==1&&(this.d=1),!0;break}case 3:{switch(c=e.gj(),c){case 3:{if(s=e.jj(),x(s)===x(this.c)&&m5(this,null)==e.hj(null))return this.d=5,t=new Pb(2),ve(t,this.g),ve(t,e.ij()),this.g=t,!0;break}}break}case 5:{switch(c=e.gj(),c){case 3:{if(s=e.jj(),x(s)===x(this.c)&&m5(this,null)==e.hj(null))return i=u(this.g,16),i.Fc(e.ij()),!0;break}}break}case 4:{switch(c=e.gj(),c){case 3:{if(s=e.jj(),x(s)===x(this.c)&&m5(this,null)==e.hj(null))return this.d=1,this.g=e.ij(),!0;break}case 4:{if(s=e.jj(),x(s)===x(this.c)&&m5(this,null)==e.hj(null))return this.d=6,h=new Pb(2),ve(h,this.n),ve(h,e.kj()),this.n=h,f=S(C(ye,1),_e,28,15,[this.o,e.lj()]),this.g=f,!0;break}}break}case 6:{switch(c=e.gj(),c){case 4:{if(s=e.jj(),x(s)===x(this.c)&&m5(this,null)==e.hj(null))return i=u(this.n,16),i.Fc(e.kj()),f=u(this.g,53),r=F(ye,_e,28,f.length+1,15,1),Oc(f,0,r,0,f.length),r[f.length]=e.lj(),this.g=r,!0;break}}break}}return!1},w(Ct,"FeatureMapUtil/FeatureENotificationImpl",644),b(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},eT),o.Ol=function(e,t){return Sen(this.c,e,t)},o.Pl=function(e,t,i){return ven(this.c,e,t,i)},o.Ql=function(e,t,i){return Gen(this.c,e,t,i)},o.Rl=function(){return this},o.Sl=function(e,t){return wy(this.c,e,t)},o.Tl=function(e){return u(_S(this.c,this.b,e,!1),76).Lk()},o.Ul=function(e){return u(_S(this.c,this.b,e,!1),76).md()},o.Vl=function(){return this.a},o.Wl=function(e){return!Rk(this.c,e)},o.Xl=function(e,t){HS(this.c,e,t)},o.Yl=function(e){return oxn(this.c,e)},o.Zl=function(e){BBn(this.c,e)},w(Ct,"FeatureMapUtil/FeatureFeatureMap",564),b(1294,1,CF,$Tn),o.Fk=function(e){return _S(this.b,this.a,-1,e)},o.Qj=function(){return!Rk(this.b,this.a)},o.Wb=function(e){HS(this.b,this.a,e)},o.Gk=function(){jS(this.b,this.a)},w(Ct,"FeatureMapUtil/FeatureValue",1294);var F3,SU,PU,_3,tse,bE=Dt(eI,"AnyType");b(680,63,Il,kL),w(eI,"InvalidDatatypeValueException",680);var SA=Dt(eI,OJn),wE=Dt(eI,AJn),ubn=Dt(eI,LJn),ise,yc,obn,zd,rse,cse,use,ose,sse,fse,hse,lse,ase,dse,bse,G2,wse,z2,$9,gse,M0,gE,pE,pse,x9,R9;b(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},tz),o.Lh=function(e,t,i){switch(e){case 0:return i?(!this.c&&(this.c=new Bt(this,0)),this.c):(!this.c&&(this.c=new Bt(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Bt(this,0)),u($c(this.c,(at(),zd)),160)):(!this.c&&(this.c=new Bt(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Vl();case 2:return i?(!this.b&&(this.b=new Bt(this,2)),this.b):(!this.b&&(this.b=new Bt(this,2)),this.b.b)}return zo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e),t,i)},o.Uh=function(e,t,i){var r;switch(t){case 0:return!this.c&&(this.c=new Bt(this,0)),ly(this.c,e,i);case 1:return(!this.c&&(this.c=new Bt(this,0)),u(u($c(this.c,(at(),zd)),160),71)).Xk(e,i);case 2:return!this.b&&(this.b=new Bt(this,2)),ly(this.b,e,i)}return r=u($n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),t),69),r.wk().Ak(this,cQ(this),t-se(this.ii()),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Bt(this,0)),u($c(this.c,(at(),zd)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return Uo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e))},o.bi=function(e,t){switch(e){case 0:!this.c&&(this.c=new Bt(this,0)),F7(this.c,t);return;case 1:(!this.c&&(this.c=new Bt(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new Bt(this,2)),F7(this.b,t);return}Jo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e),t)},o.ii=function(){return at(),obn},o.ki=function(e){switch(e){case 0:!this.c&&(this.c=new Bt(this,0)),me(this.c);return;case 1:(!this.c&&(this.c=new Bt(this,0)),u($c(this.c,(at(),zd)),160)).$b();return;case 2:!this.b&&(this.b=new Bt(this,2)),me(this.b);return}Wo(this,e-se(this.ii()),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():this.ii(),e))},o.Ib=function(){var e;return this.j&4?Hs(this):(e=new ls(Hs(this)),e.a+=" (mixed: ",T6(e,this.c),e.a+=", anyAttribute: ",T6(e,this.b),e.a+=")",e.a)},w(oi,"AnyTypeImpl",844),b(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},K6n),o.Lh=function(e,t,i){switch(e){case 0:return this.a;case 1:return this.b}return zo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e),t,i)},o.Wh=function(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return Uo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e))},o.bi=function(e,t){switch(e){case 0:Cfe(this,Ae(t));return;case 1:Pfe(this,Ae(t));return}Jo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e),t)},o.ii=function(){return at(),G2},o.ki=function(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}Wo(this,e-se((at(),G2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():G2,e))},o.Ib=function(){var e;return this.j&4?Hs(this):(e=new ls(Hs(this)),e.a+=" (data: ",Er(e,this.a),e.a+=", target: ",Er(e,this.b),e.a+=")",e.a)},o.a=null,o.b=null,w(oi,"ProcessingInstructionImpl",681),b(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},bjn),o.Lh=function(e,t,i){switch(e){case 0:return i?(!this.c&&(this.c=new Bt(this,0)),this.c):(!this.c&&(this.c=new Bt(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Bt(this,0)),u($c(this.c,(at(),zd)),160)):(!this.c&&(this.c=new Bt(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Vl();case 2:return i?(!this.b&&(this.b=new Bt(this,2)),this.b):(!this.b&&(this.b=new Bt(this,2)),this.b.b);case 3:return!this.c&&(this.c=new Bt(this,0)),Ae(wy(this.c,(at(),$9),!0));case 4:return TV(this.a,(!this.c&&(this.c=new Bt(this,0)),Ae(wy(this.c,(at(),$9),!0))));case 5:return this.a}return zo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e),t,i)},o.Wh=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Bt(this,0)),u($c(this.c,(at(),zd)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new Bt(this,0)),Ae(wy(this.c,(at(),$9),!0))!=null;case 4:return TV(this.a,(!this.c&&(this.c=new Bt(this,0)),Ae(wy(this.c,(at(),$9),!0))))!=null;case 5:return!!this.a}return Uo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e))},o.bi=function(e,t){switch(e){case 0:!this.c&&(this.c=new Bt(this,0)),F7(this.c,t);return;case 1:(!this.c&&(this.c=new Bt(this,0)),u(u($c(this.c,(at(),zd)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new Bt(this,2)),F7(this.b,t);return;case 3:dJ(this,Ae(t));return;case 4:dJ(this,MV(this.a,t));return;case 5:Sfe(this,u(t,156));return}Jo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e),t)},o.ii=function(){return at(),z2},o.ki=function(e){switch(e){case 0:!this.c&&(this.c=new Bt(this,0)),me(this.c);return;case 1:(!this.c&&(this.c=new Bt(this,0)),u($c(this.c,(at(),zd)),160)).$b();return;case 2:!this.b&&(this.b=new Bt(this,2)),me(this.b);return;case 3:!this.c&&(this.c=new Bt(this,0)),HS(this.c,(at(),$9),null);return;case 4:dJ(this,MV(this.a,null));return;case 5:this.a=null;return}Wo(this,e-se((at(),z2)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():z2,e))},w(oi,"SimpleAnyTypeImpl",682),b(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},wjn),o.Lh=function(e,t,i){switch(e){case 0:return i?(!this.a&&(this.a=new Bt(this,0)),this.a):(!this.a&&(this.a=new Bt(this,0)),this.a.b);case 1:return i?(!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),this.b):(!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),rk(this.b));case 2:return i?(!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),this.c):(!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),rk(this.c));case 3:return!this.a&&(this.a=new Bt(this,0)),$c(this.a,(at(),gE));case 4:return!this.a&&(this.a=new Bt(this,0)),$c(this.a,(at(),pE));case 5:return!this.a&&(this.a=new Bt(this,0)),$c(this.a,(at(),x9));case 6:return!this.a&&(this.a=new Bt(this,0)),$c(this.a,(at(),R9))}return zo(this,e-se((at(),M0)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():M0,e),t,i)},o.Uh=function(e,t,i){var r;switch(t){case 0:return!this.a&&(this.a=new Bt(this,0)),ly(this.a,e,i);case 1:return!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),UM(this.b,e,i);case 2:return!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),UM(this.c,e,i);case 5:return!this.a&&(this.a=new Bt(this,0)),LSn($c(this.a,(at(),x9)),e,i)}return r=u($n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():(at(),M0),t),69),r.wk().Ak(this,cQ(this),t-se((at(),M0)),e,i)},o.Wh=function(e){switch(e){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new Bt(this,0)),!CM($c(this.a,(at(),gE)));case 4:return!this.a&&(this.a=new Bt(this,0)),!CM($c(this.a,(at(),pE)));case 5:return!this.a&&(this.a=new Bt(this,0)),!CM($c(this.a,(at(),x9)));case 6:return!this.a&&(this.a=new Bt(this,0)),!CM($c(this.a,(at(),R9)))}return Uo(this,e-se((at(),M0)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():M0,e))},o.bi=function(e,t){switch(e){case 0:!this.a&&(this.a=new Bt(this,0)),F7(this.a,t);return;case 1:!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),CC(this.b,t);return;case 2:!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),CC(this.c,t);return;case 3:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),gE))),!this.a&&(this.a=new Bt(this,0)),I6($c(this.a,gE),u(t,16));return;case 4:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),pE))),!this.a&&(this.a=new Bt(this,0)),I6($c(this.a,pE),u(t,16));return;case 5:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),x9))),!this.a&&(this.a=new Bt(this,0)),I6($c(this.a,x9),u(t,16));return;case 6:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),R9))),!this.a&&(this.a=new Bt(this,0)),I6($c(this.a,R9),u(t,16));return}Jo(this,e-se((at(),M0)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():M0,e),t)},o.ii=function(){return at(),M0},o.ki=function(e){switch(e){case 0:!this.a&&(this.a=new Bt(this,0)),me(this.a);return;case 1:!this.b&&(this.b=new Ou((An(),ar),pc,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new Ou((An(),ar),pc,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),gE)));return;case 4:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),pE)));return;case 5:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),x9)));return;case 6:!this.a&&(this.a=new Bt(this,0)),cp($c(this.a,(at(),R9)));return}Wo(this,e-se((at(),M0)),$n(this.j&2?(!this.k&&(this.k=new uf),this.k).Nk():M0,e))},o.Ib=function(){var e;return this.j&4?Hs(this):(e=new ls(Hs(this)),e.a+=" (mixed: ",T6(e,this.a),e.a+=")",e.a)},w(oi,"XMLTypeDocumentRootImpl",683),b(2028,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},P6n),o.ri=function(e,t){switch(e.hk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:Jr(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return Ae(t);case 6:return fae(u(t,195));case 12:case 47:case 49:case 11:return IGn(this,e,t);case 13:return t==null?null:kOe(u(t,247));case 15:case 14:return t==null?null:Twe($(B(t)));case 17:return CFn((at(),t));case 18:return CFn(t);case 21:case 20:return t==null?null:Cwe(u(t,161).a);case 27:return hae(u(t,195));case 30:return FBn((at(),u(t,15)));case 31:return FBn(u(t,15));case 40:return aae((at(),t));case 42:return SFn((at(),t));case 43:return SFn(t);case 59:case 48:return lae((at(),t));default:throw T(new Gn(ev+e.xe()+n0))}},o.si=function(e){var t,i,r,c,s;switch(e.G==-1&&(e.G=(i=jo(e),i?f1(i.vi(),e):-1)),e.G){case 0:return t=new tz,t;case 1:return r=new K6n,r;case 2:return c=new bjn,c;case 3:return s=new wjn,s;default:throw T(new Gn(hF+e.zb+n0))}},o.ti=function(e,t){var i,r,c,s,f,h,l,a,d,g,p,m,k,j,P,O;switch(e.hk()){case 5:case 52:case 4:return t;case 6:return m9e(t);case 8:case 7:return t==null?null:rye(t);case 9:return t==null?null:ak(So((r=Rc(t,!0),r.length>0&&(zn(0,r.length),r.charCodeAt(0)==43)?(zn(1,r.length+1),r.substr(1)):r),-128,127)<<24>>24);case 10:return t==null?null:ak(So((c=Rc(t,!0),c.length>0&&(zn(0,c.length),c.charCodeAt(0)==43)?(zn(1,c.length+1),c.substr(1)):c),-128,127)<<24>>24);case 11:return Ae(zb(this,(at(),use),t));case 12:return Ae(zb(this,(at(),ose),t));case 13:return t==null?null:new Cz(Rc(t,!0));case 15:case 14:return STe(t);case 16:return Ae(zb(this,(at(),sse),t));case 17:return HKn((at(),t));case 18:return HKn(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Rc(t,!0);case 21:case 20:return RTe(t);case 22:return Ae(zb(this,(at(),fse),t));case 23:return Ae(zb(this,(at(),hse),t));case 24:return Ae(zb(this,(at(),lse),t));case 25:return Ae(zb(this,(at(),ase),t));case 26:return Ae(zb(this,(at(),dse),t));case 27:return u9e(t);case 30:return qKn((at(),t));case 31:return qKn(t);case 32:return t==null?null:Y(So((d=Rc(t,!0),d.length>0&&(zn(0,d.length),d.charCodeAt(0)==43)?(zn(1,d.length+1),d.substr(1)):d),Wi,et));case 33:return t==null?null:new H1((g=Rc(t,!0),g.length>0&&(zn(0,g.length),g.charCodeAt(0)==43)?(zn(1,g.length+1),g.substr(1)):g));case 34:return t==null?null:Y(So((p=Rc(t,!0),p.length>0&&(zn(0,p.length),p.charCodeAt(0)==43)?(zn(1,p.length+1),p.substr(1)):p),Wi,et));case 36:return t==null?null:Tl(zS((m=Rc(t,!0),m.length>0&&(zn(0,m.length),m.charCodeAt(0)==43)?(zn(1,m.length+1),m.substr(1)):m)));case 37:return t==null?null:Tl(zS((k=Rc(t,!0),k.length>0&&(zn(0,k.length),k.charCodeAt(0)==43)?(zn(1,k.length+1),k.substr(1)):k)));case 40:return i7e((at(),t));case 42:return UKn((at(),t));case 43:return UKn(t);case 44:return t==null?null:new H1((j=Rc(t,!0),j.length>0&&(zn(0,j.length),j.charCodeAt(0)==43)?(zn(1,j.length+1),j.substr(1)):j));case 45:return t==null?null:new H1((P=Rc(t,!0),P.length>0&&(zn(0,P.length),P.charCodeAt(0)==43)?(zn(1,P.length+1),P.substr(1)):P));case 46:return Rc(t,!1);case 47:return Ae(zb(this,(at(),bse),t));case 59:case 48:return t7e((at(),t));case 49:return Ae(zb(this,(at(),wse),t));case 50:return t==null?null:sm(So((O=Rc(t,!0),O.length>0&&(zn(0,O.length),O.charCodeAt(0)==43)?(zn(1,O.length+1),O.substr(1)):O),QP,32767)<<16>>16);case 51:return t==null?null:sm(So((s=Rc(t,!0),s.length>0&&(zn(0,s.length),s.charCodeAt(0)==43)?(zn(1,s.length+1),s.substr(1)):s),QP,32767)<<16>>16);case 53:return Ae(zb(this,(at(),gse),t));case 55:return t==null?null:sm(So((f=Rc(t,!0),f.length>0&&(zn(0,f.length),f.charCodeAt(0)==43)?(zn(1,f.length+1),f.substr(1)):f),QP,32767)<<16>>16);case 56:return t==null?null:sm(So((h=Rc(t,!0),h.length>0&&(zn(0,h.length),h.charCodeAt(0)==43)?(zn(1,h.length+1),h.substr(1)):h),QP,32767)<<16>>16);case 57:return t==null?null:Tl(zS((l=Rc(t,!0),l.length>0&&(zn(0,l.length),l.charCodeAt(0)==43)?(zn(1,l.length+1),l.substr(1)):l)));case 58:return t==null?null:Tl(zS((a=Rc(t,!0),a.length>0&&(zn(0,a.length),a.charCodeAt(0)==43)?(zn(1,a.length+1),a.substr(1)):a)));case 60:return t==null?null:Y(So((i=Rc(t,!0),i.length>0&&(zn(0,i.length),i.charCodeAt(0)==43)?(zn(1,i.length+1),i.substr(1)):i),Wi,et));case 61:return t==null?null:Y(So(Rc(t,!0),Wi,et));default:throw T(new Gn(ev+e.xe()+n0))}};var mse,sbn,vse,fbn;w(oi,"XMLTypeFactoryImpl",2028),b(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},dOn),o.N=!1,o.O=!1;var kse=!1;w(oi,"XMLTypePackageImpl",594),b(1961,1,{851:1},I6n),o.Kk=function(){return xen(),Ise},w(oi,"XMLTypePackageImpl/1",1961),b(1970,1,ze,O6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/10",1970),b(1971,1,ze,A6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/11",1971),b(1972,1,ze,L6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/12",1972),b(1973,1,ze,N6n),o.fk=function(e){return $0(e)},o.gk=function(e){return F(si,J,345,e,7,1)},w(oi,"XMLTypePackageImpl/13",1973),b(1974,1,ze,D6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/14",1974),b(1975,1,ze,$6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/15",1975),b(1976,1,ze,x6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/16",1976),b(1977,1,ze,R6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/17",1977),b(1978,1,ze,B6n),o.fk=function(e){return L(e,161)},o.gk=function(e){return F(sv,J,161,e,0,1)},w(oi,"XMLTypePackageImpl/18",1978),b(1979,1,ze,F6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/19",1979),b(1962,1,ze,_6n),o.fk=function(e){return L(e,857)},o.gk=function(e){return F(bE,Kn,857,e,0,1)},w(oi,"XMLTypePackageImpl/2",1962),b(1980,1,ze,H6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/20",1980),b(1981,1,ze,q6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/21",1981),b(1982,1,ze,U6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/22",1982),b(1983,1,ze,G6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/23",1983),b(1984,1,ze,z6n),o.fk=function(e){return L(e,195)},o.gk=function(e){return F(Ru,J,195,e,0,2)},w(oi,"XMLTypePackageImpl/24",1984),b(1985,1,ze,X6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/25",1985),b(1986,1,ze,V6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/26",1986),b(1987,1,ze,W6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/27",1987),b(1988,1,ze,J6n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/28",1988),b(1989,1,ze,Q6n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/29",1989),b(1963,1,ze,Y6n),o.fk=function(e){return L(e,681)},o.gk=function(e){return F(SA,Kn,2119,e,0,1)},w(oi,"XMLTypePackageImpl/3",1963),b(1990,1,ze,Z6n),o.fk=function(e){return L(e,17)},o.gk=function(e){return F(Gi,J,17,e,0,1)},w(oi,"XMLTypePackageImpl/30",1990),b(1991,1,ze,n5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/31",1991),b(1992,1,ze,e5n),o.fk=function(e){return L(e,168)},o.gk=function(e){return F(t0,J,168,e,0,1)},w(oi,"XMLTypePackageImpl/32",1992),b(1993,1,ze,t5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/33",1993),b(1994,1,ze,i5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/34",1994),b(1995,1,ze,r5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/35",1995),b(1996,1,ze,c5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/36",1996),b(1997,1,ze,u5n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/37",1997),b(1998,1,ze,o5n),o.fk=function(e){return L(e,15)},o.gk=function(e){return F(rs,kw,15,e,0,1)},w(oi,"XMLTypePackageImpl/38",1998),b(1999,1,ze,s5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/39",1999),b(1964,1,ze,f5n),o.fk=function(e){return L(e,682)},o.gk=function(e){return F(wE,Kn,2120,e,0,1)},w(oi,"XMLTypePackageImpl/4",1964),b(2e3,1,ze,h5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/40",2e3),b(2001,1,ze,l5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/41",2001),b(2002,1,ze,a5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/42",2002),b(2003,1,ze,d5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/43",2003),b(2004,1,ze,b5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/44",2004),b(2005,1,ze,w5n),o.fk=function(e){return L(e,191)},o.gk=function(e){return F(i0,J,191,e,0,1)},w(oi,"XMLTypePackageImpl/45",2005),b(2006,1,ze,g5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/46",2006),b(2007,1,ze,p5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/47",2007),b(2008,1,ze,m5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/48",2008),b(2009,1,ze,v5n),o.fk=function(e){return L(e,191)},o.gk=function(e){return F(i0,J,191,e,0,1)},w(oi,"XMLTypePackageImpl/49",2009),b(1965,1,ze,k5n),o.fk=function(e){return L(e,683)},o.gk=function(e){return F(ubn,Kn,2121,e,0,1)},w(oi,"XMLTypePackageImpl/5",1965),b(2010,1,ze,y5n),o.fk=function(e){return L(e,168)},o.gk=function(e){return F(t0,J,168,e,0,1)},w(oi,"XMLTypePackageImpl/50",2010),b(2011,1,ze,j5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/51",2011),b(2012,1,ze,E5n),o.fk=function(e){return L(e,17)},o.gk=function(e){return F(Gi,J,17,e,0,1)},w(oi,"XMLTypePackageImpl/52",2012),b(1966,1,ze,M5n),o.fk=function(e){return Si(e)},o.gk=function(e){return F(fn,J,2,e,6,1)},w(oi,"XMLTypePackageImpl/6",1966),b(1967,1,ze,T5n),o.fk=function(e){return L(e,195)},o.gk=function(e){return F(Ru,J,195,e,0,2)},w(oi,"XMLTypePackageImpl/7",1967),b(1968,1,ze,C5n),o.fk=function(e){return D0(e)},o.gk=function(e){return F(Gt,J,485,e,8,1)},w(oi,"XMLTypePackageImpl/8",1968),b(1969,1,ze,S5n),o.fk=function(e){return L(e,222)},o.gk=function(e){return F(p3,J,222,e,0,1)},w(oi,"XMLTypePackageImpl/9",1969);var nh,A1,K9,PA,I;b(55,63,Il,Ne),w(p1,"RegEx/ParseException",55),b(836,1,{},iG),o.bm=function(e){return e<this.j&&Xi(this.i,e)==63},o.cm=function(){var e,t,i,r,c;if(this.c!=10)throw T(new Ne($e((Oe(),qP))));switch(e=this.a,e){case 101:e=27;break;case 102:e=12;break;case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 120:if(Ze(this),this.c!=0)throw T(new Ne($e((Oe(),g1))));if(this.a==123){c=0,i=0;do{if(Ze(this),this.c!=0)throw T(new Ne($e((Oe(),g1))));if((c=bd(this.a))<0)break;if(i>i*16)throw T(new Ne($e((Oe(),qWn))));i=i*16+c}while(!0);if(this.a!=125)throw T(new Ne($e((Oe(),UWn))));if(i>cv)throw T(new Ne($e((Oe(),GWn))));e=i}else{if(c=0,this.c!=0||(c=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(i=c,Ze(this),this.c!=0||(c=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));i=i*16+c,e=i}break;case 117:if(r=0,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));t=t*16+r,e=t;break;case 118:if(Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,Ze(this),this.c!=0||(r=bd(this.a))<0)throw T(new Ne($e((Oe(),g1))));if(t=t*16+r,t>cv)throw T(new Ne($e((Oe(),"parser.descappe.4"))));e=t;break;case 65:case 90:case 122:throw T(new Ne($e((Oe(),zWn))))}return e},o.dm=function(e){var t,i;switch(e){case 100:i=(this.e&32)==32?sa("Nd",!0):(nt(),IA);break;case 68:i=(this.e&32)==32?sa("Nd",!1):(nt(),wbn);break;case 119:i=(this.e&32)==32?sa("IsWord",!0):(nt(),Gv);break;case 87:i=(this.e&32)==32?sa("IsWord",!1):(nt(),pbn);break;case 115:i=(this.e&32)==32?sa("IsSpace",!0):(nt(),H3);break;case 83:i=(this.e&32)==32?sa("IsSpace",!1):(nt(),gbn);break;default:throw T(new ec((t=e,zJn+t.toString(16))))}return i},o.em=function(e){var t,i,r,c,s,f,h,l,a,d,g,p;for(this.b=1,Ze(this),t=null,this.c==0&&this.a==94?(Ze(this),e?d=(nt(),nt(),new yo(5)):(t=(nt(),nt(),new yo(4)),xc(t,0,cv),d=new yo(4))):d=(nt(),nt(),new yo(4)),c=!0;(p=this.c)!=1&&!(p==0&&this.a==93&&!c);){if(c=!1,i=this.a,r=!1,p==10)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:gw(d,this.dm(i)),r=!0;break;case 105:case 73:case 99:case 67:i=this.um(d,i),i<0&&(r=!0);break;case 112:case 80:if(g=Dnn(this,i),!g)throw T(new Ne($e((Oe(),EF))));gw(d,g),r=!0;break;default:i=this.cm()}else if(p==20){if(f=w4(this.i,58,this.d),f<0)throw T(new Ne($e((Oe(),Rcn))));if(h=!0,Xi(this.i,this.d)==94&&(++this.d,h=!1),s=qo(this.i,this.d,f),l=mDn(s,h,(this.e&512)==512),!l)throw T(new Ne($e((Oe(),KWn))));if(gw(d,l),r=!0,f+1>=this.j||Xi(this.i,f+1)!=93)throw T(new Ne($e((Oe(),Rcn))));this.d=f+2}if(Ze(this),!r)if(this.c!=0||this.a!=45)xc(d,i,i);else{if(Ze(this),(p=this.c)==1)throw T(new Ne($e((Oe(),UP))));p==0&&this.a==93?(xc(d,i,i),xc(d,45,45)):(a=this.a,p==10&&(a=this.cm()),Ze(this),xc(d,i,a))}(this.e&Gs)==Gs&&this.c==0&&this.a==44&&Ze(this)}if(this.c==1)throw T(new Ne($e((Oe(),UP))));return t&&(V5(t,d),d=t),Gg(d),z5(d),this.b=0,Ze(this),d},o.fm=function(){var e,t,i,r;for(i=this.em(!1);(r=this.c)!=7;)if(e=this.a,r==0&&(e==45||e==38)||r==4){if(Ze(this),this.c!=9)throw T(new Ne($e((Oe(),FWn))));if(t=this.em(!1),r==4)gw(i,t);else if(e==45)V5(i,t);else if(e==38)TGn(i,t);else throw T(new ec("ASSERT"))}else throw T(new Ne($e((Oe(),_Wn))));return Ze(this),i},o.gm=function(){var e,t;return e=this.a-48,t=(nt(),nt(),new OD(12,null,e)),!this.g&&(this.g=new KE),RE(this.g,new KG(e)),Ze(this),t},o.hm=function(){return Ze(this),nt(),Ese},o.im=function(){return Ze(this),nt(),jse},o.jm=function(){throw T(new Ne($e((Oe(),is))))},o.km=function(){throw T(new Ne($e((Oe(),is))))},o.lm=function(){return Ze(this),y6e()},o.mm=function(){return Ze(this),nt(),Tse},o.nm=function(){return Ze(this),nt(),Sse},o.om=function(){var e;if(this.d>=this.j||((e=Xi(this.i,this.d++))&65504)!=64)throw T(new Ne($e((Oe(),$Wn))));return Ze(this),nt(),nt(),new Dh(0,e-64)},o.pm=function(){return Ze(this),MIe()},o.qm=function(){return Ze(this),nt(),Pse},o.rm=function(){var e;return e=(nt(),nt(),new Dh(0,105)),Ze(this),e},o.sm=function(){return Ze(this),nt(),Cse},o.tm=function(){return Ze(this),nt(),Mse},o.um=function(e,t){return this.cm()},o.vm=function(){return Ze(this),nt(),dbn},o.wm=function(){var e,t,i,r,c;if(this.d+1>=this.j)throw T(new Ne($e((Oe(),LWn))));if(r=-1,t=null,e=Xi(this.i,this.d),49<=e&&e<=57){if(r=e-48,!this.g&&(this.g=new KE),RE(this.g,new KG(r)),++this.d,Xi(this.i,this.d)!=41)throw T(new Ne($e((Oe(),Sd))));++this.d}else switch(e==63&&--this.d,Ze(this),t=otn(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw T(new Ne($e((Oe(),Sd))));break;default:throw T(new Ne($e((Oe(),NWn))))}if(Ze(this),c=Kb(this),i=null,c.e==2){if(c.Pm()!=2)throw T(new Ne($e((Oe(),DWn))));i=c.Lm(1),c=c.Lm(0)}if(this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),nt(),nt(),new ZDn(r,t,c,i)},o.xm=function(){return Ze(this),nt(),bbn},o.ym=function(){var e;if(Ze(this),e=wT(24,Kb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.zm=function(){var e;if(Ze(this),e=wT(20,Kb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Am=function(){var e;if(Ze(this),e=wT(22,Kb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Bm=function(){var e,t,i,r,c;for(e=0,i=0,t=-1;this.d<this.j&&(t=Xi(this.i,this.d),c=Fnn(t),c!=0);)e|=c,++this.d;if(this.d>=this.j)throw T(new Ne($e((Oe(),$cn))));if(t==45){for(++this.d;this.d<this.j&&(t=Xi(this.i,this.d),c=Fnn(t),c!=0);)i|=c,++this.d;if(this.d>=this.j)throw T(new Ne($e((Oe(),$cn))))}if(t==58){if(++this.d,Ze(this),r=VIn(Kb(this),e,i),this.c!=7)throw T(new Ne($e((Oe(),Sd))));Ze(this)}else if(t==41)++this.d,Ze(this),r=VIn(Kb(this),e,i);else throw T(new Ne($e((Oe(),AWn))));return r},o.Cm=function(){var e;if(Ze(this),e=wT(21,Kb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Dm=function(){var e;if(Ze(this),e=wT(23,Kb(this)),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Em=function(){var e,t;if(Ze(this),e=this.f++,t=rD(Kb(this),e),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),t},o.Fm=function(){var e;if(Ze(this),e=rD(Kb(this),0),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Gm=function(e){return Ze(this),this.c==5?(Ze(this),uT(e,(nt(),nt(),new X0(9,e)))):uT(e,(nt(),nt(),new X0(3,e)))},o.Hm=function(e){var t;return Ze(this),t=(nt(),nt(),new P6(2)),this.c==5?(Ze(this),pd(t,F9),pd(t,e)):(pd(t,e),pd(t,F9)),t},o.Im=function(e){return Ze(this),this.c==5?(Ze(this),nt(),nt(),new X0(9,e)):(nt(),nt(),new X0(3,e))},o.a=0,o.b=0,o.c=0,o.d=0,o.e=0,o.f=1,o.g=null,o.j=0,w(p1,"RegEx/RegexParser",836),b(1947,836,{},gjn),o.bm=function(e){return!1},o.cm=function(){return wen(this)},o.dm=function(e){return Om(e)},o.em=function(e){return kzn(this)},o.fm=function(){throw T(new Ne($e((Oe(),is))))},o.gm=function(){throw T(new Ne($e((Oe(),is))))},o.hm=function(){throw T(new Ne($e((Oe(),is))))},o.im=function(){throw T(new Ne($e((Oe(),is))))},o.jm=function(){return Ze(this),Om(67)},o.km=function(){return Ze(this),Om(73)},o.lm=function(){throw T(new Ne($e((Oe(),is))))},o.mm=function(){throw T(new Ne($e((Oe(),is))))},o.nm=function(){throw T(new Ne($e((Oe(),is))))},o.om=function(){return Ze(this),Om(99)},o.pm=function(){throw T(new Ne($e((Oe(),is))))},o.qm=function(){throw T(new Ne($e((Oe(),is))))},o.rm=function(){return Ze(this),Om(105)},o.sm=function(){throw T(new Ne($e((Oe(),is))))},o.tm=function(){throw T(new Ne($e((Oe(),is))))},o.um=function(e,t){return gw(e,Om(t)),-1},o.vm=function(){return Ze(this),nt(),nt(),new Dh(0,94)},o.wm=function(){throw T(new Ne($e((Oe(),is))))},o.xm=function(){return Ze(this),nt(),nt(),new Dh(0,36)},o.ym=function(){throw T(new Ne($e((Oe(),is))))},o.zm=function(){throw T(new Ne($e((Oe(),is))))},o.Am=function(){throw T(new Ne($e((Oe(),is))))},o.Bm=function(){throw T(new Ne($e((Oe(),is))))},o.Cm=function(){throw T(new Ne($e((Oe(),is))))},o.Dm=function(){throw T(new Ne($e((Oe(),is))))},o.Em=function(){var e;if(Ze(this),e=rD(Kb(this),0),this.c!=7)throw T(new Ne($e((Oe(),Sd))));return Ze(this),e},o.Fm=function(){throw T(new Ne($e((Oe(),is))))},o.Gm=function(e){return Ze(this),uT(e,(nt(),nt(),new X0(3,e)))},o.Hm=function(e){var t;return Ze(this),t=(nt(),nt(),new P6(2)),pd(t,e),pd(t,F9),t},o.Im=function(e){return Ze(this),nt(),nt(),new X0(3,e)};var X2=null,qv=null;w(p1,"RegEx/ParserForXMLSchema",1947),b(122,1,uv,Wd),o.Jm=function(e){throw T(new ec("Not supported."))},o.Km=function(){return-1},o.Lm=function(e){return null},o.Mm=function(){return null},o.Nm=function(e){},o.Om=function(e){},o.Pm=function(){return 0},o.Ib=function(){return this.Qm(0)},o.Qm=function(e){return this.e==11?".":""},o.e=0;var hbn,Uv,B9,yse,lbn,rg=null,IA,IU=null,abn,F9,OU=null,dbn,bbn,wbn,gbn,pbn,jse,H3,Ese,Mse,Tse,Cse,Gv,Sse,Pse,DDe=w(p1,"RegEx/Token",122);b(138,122,{3:1,138:1,122:1},yo),o.Qm=function(e){var t,i,r;if(this.e==4)if(this==abn)i=".";else if(this==IA)i="\\d";else if(this==Gv)i="\\w";else if(this==H3)i="\\s";else{for(r=new Hl,r.a+="[",t=0;t<this.b.length;t+=2)e&Gs&&t>0&&(r.a+=","),this.b[t]===this.b[t+1]?Er(r,by(this.b[t])):(Er(r,by(this.b[t])),r.a+="-",Er(r,by(this.b[t+1])));r.a+="]",i=r.a}else if(this==wbn)i="\\D";else if(this==pbn)i="\\W";else if(this==gbn)i="\\S";else{for(r=new Hl,r.a+="[^",t=0;t<this.b.length;t+=2)e&Gs&&t>0&&(r.a+=","),this.b[t]===this.b[t+1]?Er(r,by(this.b[t])):(Er(r,by(this.b[t])),r.a+="-",Er(r,by(this.b[t+1])));r.a+="]",i=r.a}return i},o.a=!1,o.c=!1,w(p1,"RegEx/RangeToken",138),b(592,1,{592:1},KG),o.a=0,w(p1,"RegEx/RegexParser/ReferencePosition",592),b(591,1,{3:1,591:1},AEn),o.Fb=function(e){var t;return e==null||!L(e,591)?!1:(t=u(e,591),Sn(this.b,t.b)&&this.a==t.a)},o.Hb=function(){return t1(this.b+"/"+sen(this.a))},o.Ib=function(){return this.c.Qm(this.a)},o.a=0,w(p1,"RegEx/RegularExpression",591),b(228,122,uv,Dh),o.Km=function(){return this.a},o.Qm=function(e){var t,i,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r="\\"+NN(this.a&ui);break;case 12:r="\\f";break;case 10:r="\\n";break;case 13:r="\\r";break;case 9:r="\\t";break;case 27:r="\\e";break;default:this.a>=hr?(i=(t=this.a>>>0,"0"+t.toString(16)),r="\\v"+qo(i,i.length-6,i.length)):r=""+NN(this.a&ui)}break;case 8:this==dbn||this==bbn?r=""+NN(this.a&ui):r="\\"+NN(this.a&ui);break;default:r=null}return r},o.a=0,w(p1,"RegEx/Token/CharToken",228),b(318,122,uv,X0),o.Lm=function(e){return this.a},o.Nm=function(e){this.b=e},o.Om=function(e){this.c=e},o.Pm=function(){return 1},o.Qm=function(e){var t;if(this.e==3)if(this.c<0&&this.b<0)t=this.a.Qm(e)+"*";else if(this.c==this.b)t=this.a.Qm(e)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)t=this.a.Qm(e)+"{"+this.c+",}";else throw T(new ec("Token#toString(): CLOSURE "+this.c+ur+this.b));else if(this.c<0&&this.b<0)t=this.a.Qm(e)+"*?";else if(this.c==this.b)t=this.a.Qm(e)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)t=this.a.Qm(e)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)t=this.a.Qm(e)+"{"+this.c+",}?";else throw T(new ec("Token#toString(): NONGREEDYCLOSURE "+this.c+ur+this.b));return t},o.b=0,o.c=0,w(p1,"RegEx/Token/ClosureToken",318),b(837,122,uv,SW),o.Lm=function(e){return e==0?this.a:this.b},o.Pm=function(){return 2},o.Qm=function(e){var t;return this.b.e==3&&this.b.Lm(0)==this.a?t=this.a.Qm(e)+"+":this.b.e==9&&this.b.Lm(0)==this.a?t=this.a.Qm(e)+"+?":t=this.a.Qm(e)+(""+this.b.Qm(e)),t},w(p1,"RegEx/Token/ConcatToken",837),b(1945,122,uv,ZDn),o.Lm=function(e){if(e==0)return this.d;if(e==1)return this.b;throw T(new ec("Internal Error: "+e))},o.Pm=function(){return this.b?2:1},o.Qm=function(e){var t;return this.c>0?t="(?("+this.c+")":this.a.e==8?t="(?("+this.a+")":t="(?"+this.a,this.b?t+=this.d+"|"+this.b+")":t+=this.d+")",t},o.c=0,w(p1,"RegEx/Token/ConditionToken",1945),b(1946,122,uv,qAn),o.Lm=function(e){return this.b},o.Pm=function(){return 1},o.Qm=function(e){return"(?"+(this.a==0?"":sen(this.a))+(this.c==0?"":sen(this.c))+":"+this.b.Qm(e)+")"},o.a=0,o.c=0,w(p1,"RegEx/Token/ModifierToken",1946),b(838,122,uv,RW),o.Lm=function(e){return this.a},o.Pm=function(){return 1},o.Qm=function(e){var t;switch(t=null,this.e){case 6:this.b==0?t="(?:"+this.a.Qm(e)+")":t="("+this.a.Qm(e)+")";break;case 20:t="(?="+this.a.Qm(e)+")";break;case 21:t="(?!"+this.a.Qm(e)+")";break;case 22:t="(?<="+this.a.Qm(e)+")";break;case 23:t="(?<!"+this.a.Qm(e)+")";break;case 24:t="(?>"+this.a.Qm(e)+")"}return t},o.b=0,w(p1,"RegEx/Token/ParenToken",838),b(530,122,{3:1,122:1,530:1},OD),o.Mm=function(){return this.b},o.Qm=function(e){return this.e==12?"\\"+this.a:gTe(this.b)},o.a=0,w(p1,"RegEx/Token/StringToken",530),b(477,122,uv,P6),o.Jm=function(e){pd(this,e)},o.Lm=function(e){return u(kb(this.a,e),122)},o.Pm=function(){return this.a?this.a.a.c.length:0},o.Qm=function(e){var t,i,r,c,s;if(this.e==1){if(this.a.a.c.length==2)t=u(kb(this.a,0),122),i=u(kb(this.a,1),122),i.e==3&&i.Lm(0)==t?c=t.Qm(e)+"+":i.e==9&&i.Lm(0)==t?c=t.Qm(e)+"+?":c=t.Qm(e)+(""+i.Qm(e));else{for(s=new Hl,r=0;r<this.a.a.c.length;r++)Er(s,u(kb(this.a,r),122).Qm(e));c=s.a}return c}if(this.a.a.c.length==2&&u(kb(this.a,1),122).e==7)c=u(kb(this.a,0),122).Qm(e)+"?";else if(this.a.a.c.length==2&&u(kb(this.a,0),122).e==7)c=u(kb(this.a,1),122).Qm(e)+"??";else{for(s=new Hl,Er(s,u(kb(this.a,0),122).Qm(e)),r=1;r<this.a.a.c.length;r++)s.a+="|",Er(s,u(kb(this.a,r),122).Qm(e));c=s.a}return c},w(p1,"RegEx/Token/UnionToken",477),b(527,1,{600:1},Y9),o.Ib=function(){return this.a.b},w(JJn,"XMLTypeUtil/PatternMatcherImpl",527),b(1707,1527,{},P5n);var Ise;w(JJn,"XMLTypeValidator",1707),b(270,1,qh,Qa),o.Jc=function(e){qi(this,e)},o.Kc=function(){return(this.b-this.a)*this.c<0?xa:new q1(this)},o.a=0,o.b=0,o.c=0;var xa;w(tun,"ExclusiveRange",270),b(1084,1,Hh,I5n),o.Rb=function(e){u(e,17),Qle()},o.Nb=function(e){_i(this,e)},o.Pb=function(){return Bhe()},o.Ub=function(){return Fhe()},o.Wb=function(e){u(e,17),Zle()},o.Ob=function(){return!1},o.Sb=function(){return!1},o.Tb=function(){return-1},o.Vb=function(){return-1},o.Qb=function(){throw T(new Fl(ZJn))},w(tun,"ExclusiveRange/1",1084),b(258,1,Hh,q1),o.Rb=function(e){u(e,17),Yle()},o.Nb=function(e){_i(this,e)},o.Pb=function(){return z6e(this)},o.Ub=function(){return D4e(this)},o.Wb=function(e){u(e,17),n1e()},o.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},o.Sb=function(){return this.b>0},o.Tb=function(){return this.b},o.Vb=function(){return this.b-1},o.Qb=function(){throw T(new Fl(ZJn))},o.a=0,o.b=0,w(tun,"ExclusiveRange/RangeIterator",258);var fs=S4(GP,"C"),ye=S4(y8,"I"),so=S4(i3,"Z"),Ra=S4(j8,"J"),Ru=S4(m8,"B"),Ii=S4(v8,"D"),cg=S4(k8,"F"),V2=S4(E8,"S"),$De=Dt("org.eclipse.elk.core.labels","ILabelManager"),mbn=Dt(or,"DiagnosticChain"),vbn=Dt(SJn,"ResourceSet"),kbn=w(or,"InvocationTargetException",null),Ose=(HE(),W3e),Ase=Ase=Fke;Hme(Kfe),Kme("permProps",[[["locale","default"],[nQn,"gecko1_8"]],[["locale","default"],[nQn,"safari"]]]),Ase(null,"elk",null)}).call(this)}).call(this,typeof Dse<"u"?Dse:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(Xt,gt,Pr){function Li(Jt,Xe){if(!(Jt instanceof Xe))throw new TypeError("Cannot call a class as a function")}function y(Jt,Xe){if(!Jt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Xe&&(typeof Xe=="object"||typeof Xe=="function")?Xe:Jt}function Wt(Jt,Xe){if(typeof Xe!="function"&&Xe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Xe);Jt.prototype=Object.create(Xe&&Xe.prototype,{constructor:{value:Jt,enumerable:!1,writable:!0,configurable:!0}}),Xe&&(Object.setPrototypeOf?Object.setPrototypeOf(Jt,Xe):Jt.__proto__=Xe)}var Ku=Xt("./elk-api.js").default,Ht=function(Jt){Wt(Xe,Jt);function Xe(){var Yi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Li(this,Xe);var Bi=Object.assign({},Yi),En=!1;try{Xt.resolve("web-worker"),En=!0}catch{}if(Yi.workerUrl)if(En){var hu=Xt("web-worker");Bi.workerFactory=function(Ir){return new hu(Ir)}}else console.warn(`Web worker requested but 'web-worker' package not installed.
Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
... Falling back to non-web worker version.`);if(!Bi.workerFactory){var Qc=Xt("./elk-worker.min.js"),Bu=Qc.Worker;Bi.workerFactory=function(Ir){return new Bu(Ir)}}return y(this,(Xe.__proto__||Object.getPrototypeOf(Xe)).call(this,Bi))}return Xe}(Ku);Object.defineProperty(gt.exports,"__esModule",{value:!0}),gt.exports=Ht,Ht.default=Ht},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(Xt,gt,Pr){gt.exports=Worker},{}]},{},[3])(3)})})(Kse);var WDe=Kse.exports;const JDe=KDe(WDe),$se=new JDe;let S0={};const QDe={};let X3={};const YDe=async function(ct,_t,Xt,gt,Pr,Li,y){const Ku=Xt.select(`[id="${_t}"]`).insert("g").attr("class","nodes"),Ht=Object.keys(ct);return await Promise.all(Ht.map(async function(Jt){const Xe=ct[Jt];let Yi="default";Xe.classes.length>0&&(Yi=Xe.classes.join(" ")),Yi=Yi+" flowchart-label";const Bi=Ebn(Xe.styles);let En=Xe.text!==void 0?Xe.text:Xe.id;const hu={width:0,height:0},Qc=[{id:Xe.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:Xe.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:Xe.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:Xe.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let Bu=0,Ir="",Tf={};switch(Xe.type){case"round":Bu=5,Ir="rect";break;case"square":Ir="rect";break;case"diamond":Ir="question",Tf={portConstraints:"FIXED_SIDE"};break;case"hexagon":Ir="hexagon";break;case"odd":Ir="rect_left_inv_arrow";break;case"lean_right":Ir="lean_right";break;case"lean_left":Ir="lean_left";break;case"trapezoid":Ir="trapezoid";break;case"inv_trapezoid":Ir="inv_trapezoid";break;case"odd_right":Ir="rect_left_inv_arrow";break;case"circle":Ir="circle";break;case"ellipse":Ir="ellipse";break;case"stadium":Ir="stadium";break;case"subroutine":Ir="subroutine";break;case"cylinder":Ir="cylinder";break;case"group":Ir="rect";break;case"doublecircle":Ir="doublecircle";break;default:Ir="rect"}const N1={labelStyle:Bi.labelStyle,shape:Ir,labelText:En,labelType:Xe.labelType,rx:Bu,ry:Bu,class:Yi,style:Bi.style,id:Xe.id,link:Xe.link,linkTarget:Xe.linkTarget,tooltip:Pr.db.getTooltip(Xe.id)||"",domId:Pr.db.lookUpDomId(Xe.id),haveCallback:Xe.haveCallback,width:Xe.type==="group"?500:void 0,dir:Xe.dir,type:Xe.type,props:Xe.props,padding:$U().flowchart.padding};let D1,og;if(N1.type!=="group")og=await HDe(Ku,N1,Xe.dir),D1=og.node().getBBox();else{gt.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:$1,bbox:ul}=await qDe(Ku,N1,void 0,!0);hu.width=ul.width,hu.wrappingWidth=$U().flowchart.wrappingWidth,hu.height=ul.height,hu.labelNode=$1.node(),N1.labelData=hu}const V3={id:Xe.id,ports:Xe.type==="diamond"?Qc:[],layoutOptions:Tf,labelText:En,labelData:hu,domId:Pr.db.lookUpDomId(Xe.id),width:D1==null?void 0:D1.width,height:D1==null?void 0:D1.height,type:Xe.type,el:og,parent:Li.parentById[Xe.id]};X3[N1.id]=V3})),y},xse=(ct,_t,Xt)=>{const gt={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return gt.TD=gt.TB,gt[Xt][_t][ct]},Rse=(ct,_t,Xt)=>{if(Ba.info("getNextPort",{node:ct,edgeDirection:_t,graphDirection:Xt}),!S0[ct])switch(Xt){case"TB":case"TD":S0[ct]={inPosition:"north",outPosition:"south"};break;case"BT":S0[ct]={inPosition:"south",outPosition:"north"};break;case"RL":S0[ct]={inPosition:"east",outPosition:"west"};break;case"LR":S0[ct]={inPosition:"west",outPosition:"east"};break}const gt=_t==="in"?S0[ct].inPosition:S0[ct].outPosition;return _t==="in"?S0[ct].inPosition=xse(S0[ct].inPosition,_t,Xt):S0[ct].outPosition=xse(S0[ct].outPosition,_t,Xt),gt},ZDe=(ct,_t)=>{let Xt=ct.start,gt=ct.end;const Pr=Xt,Li=gt,y=X3[Xt],Wt=X3[gt];return!y||!Wt?{source:Xt,target:gt}:(y.type==="diamond"&&(Xt=`${Xt}-${Rse(Xt,"out",_t)}`),Wt.type==="diamond"&&(gt=`${gt}-${Rse(gt,"in",_t)}`),{source:Xt,target:gt,sourceId:Pr,targetId:Li})},n$e=function(ct,_t,Xt,gt){Ba.info("abc78 edges = ",ct);const Pr=gt.insert("g").attr("class","edgeLabels");let Li={},y=_t.db.getDirection(),Wt,Ku;if(ct.defaultStyle!==void 0){const Ht=Ebn(ct.defaultStyle);Wt=Ht.style,Ku=Ht.labelStyle}return ct.forEach(function(Ht){const Jt="L-"+Ht.start+"-"+Ht.end;Li[Jt]===void 0?(Li[Jt]=0,Ba.info("abc78 new entry",Jt,Li[Jt])):(Li[Jt]++,Ba.info("abc78 new entry",Jt,Li[Jt]));let Xe=Jt+"-"+Li[Jt];Ba.info("abc78 new link id to be used is",Jt,Xe,Li[Jt]);const Yi="LS-"+Ht.start,Bi="LE-"+Ht.end,En={style:"",labelStyle:""};switch(En.minlen=Ht.length||1,Ht.type==="arrow_open"?En.arrowhead="none":En.arrowhead="normal",En.arrowTypeStart="arrow_open",En.arrowTypeEnd="arrow_open",Ht.type){case"double_arrow_cross":En.arrowTypeStart="arrow_cross";case"arrow_cross":En.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":En.arrowTypeStart="arrow_point";case"arrow_point":En.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":En.arrowTypeStart="arrow_circle";case"arrow_circle":En.arrowTypeEnd="arrow_circle";break}let hu="",Qc="";switch(Ht.stroke){case"normal":hu="fill:none;",Wt!==void 0&&(hu=Wt),Ku!==void 0&&(Qc=Ku),En.thickness="normal",En.pattern="solid";break;case"dotted":En.thickness="normal",En.pattern="dotted",En.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":En.thickness="thick",En.pattern="solid",En.style="stroke-width: 3.5px;fill:none;";break}if(Ht.style!==void 0){const og=Ebn(Ht.style);hu=og.style,Qc=og.labelStyle}En.style=En.style+=hu,En.labelStyle=En.labelStyle+=Qc,Ht.interpolate!==void 0?En.curve=jbn(Ht.interpolate,DU):ct.defaultInterpolate!==void 0?En.curve=jbn(ct.defaultInterpolate,DU):En.curve=jbn(QDe.curve,DU),Ht.text===void 0?Ht.style!==void 0&&(En.arrowheadStyle="fill: #333"):(En.arrowheadStyle="fill: #333",En.labelpos="c"),En.labelType=Ht.labelType,En.label=Ht.text.replace(FDe.lineBreakRegex,`
`),Ht.style===void 0&&(En.style=En.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),En.labelStyle=En.labelStyle.replace("color:","fill:"),En.id=Xe,En.classes="flowchart-link "+Yi+" "+Bi;const Bu=UDe(Pr,En),{source:Ir,target:Tf,sourceId:N1,targetId:D1}=ZDe(Ht,y);Ba.debug("abc78 source and target",Ir,Tf),Xt.edges.push({id:"e"+Ht.start+Ht.end,sources:[Ir],targets:[Tf],sourceId:N1,targetId:D1,labelEl:Bu,labels:[{width:En.width,height:En.height,orgWidth:En.width,orgHeight:En.height,text:En.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:En})}),Xt},e$e=function(ct,_t,Xt,gt,Pr){let Li="";gt&&(Li=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Li=Li.replace(/\(/g,"\\("),Li=Li.replace(/\)/g,"\\)")),zDe(ct,_t,Li,Pr,Xt)},t$e=function(ct,_t){return Ba.info("Extracting classes"),_t.db.getClasses()},i$e=function(ct){const _t={parentById:{},childrenById:{}},Xt=ct.getSubGraphs();return Ba.info("Subgraphs - ",Xt),Xt.forEach(function(gt){gt.nodes.forEach(function(Pr){_t.parentById[Pr]=gt.id,_t.childrenById[gt.id]===void 0&&(_t.childrenById[gt.id]=[]),_t.childrenById[gt.id].push(Pr)})}),Xt.forEach(function(gt){gt.id,_t.parentById[gt.id]!==void 0&&_t.parentById[gt.id]}),_t},r$e=function(ct,_t,Xt){const gt=VDe(ct,_t,Xt);if(gt===void 0||gt==="root")return{x:0,y:0};const Pr=X3[gt].offset;return{x:Pr.posX,y:Pr.posY}},c$e=function(ct,_t,Xt,gt,Pr,Li){const y=r$e(_t.sourceId,_t.targetId,Pr),Wt=_t.sections[0].startPoint,Ku=_t.sections[0].endPoint,Jt=(_t.sections[0].bendPoints?_t.sections[0].bendPoints:[]).map(Tf=>[Tf.x+y.x,Tf.y+y.y]),Xe=[[Wt.x+y.x,Wt.y+y.y],...Jt,[Ku.x+y.x,Ku.y+y.y]],{x:Yi,y:Bi}=GDe(_t.edgeData),En=XDe().x(Yi).y(Bi).curve(DU),hu=ct.insert("path").attr("d",En(Xe)).attr("class","path "+Xt.classes).attr("fill","none"),Qc=ct.insert("g").attr("class","edgeLabel"),Bu=OA(Qc.node().appendChild(_t.labelEl)),Ir=Bu.node().firstChild.getBoundingClientRect();Bu.attr("width",Ir.width),Bu.attr("height",Ir.height),Qc.attr("transform",`translate(${_t.labels[0].x+y.x}, ${_t.labels[0].y+y.y})`),e$e(hu,Xt,gt.type,gt.arrowMarkerAbsolute,Li)},Bse=(ct,_t)=>{ct.forEach(Xt=>{Xt.children||(Xt.children=[]);const gt=_t.childrenById[Xt.id];gt&>.forEach(Pr=>{Xt.children.push(X3[Pr])}),Bse(Xt.children,_t)})},u$e=async function(ct,_t,Xt,gt){var Pr;gt.db.clear(),X3={},S0={},gt.db.setGen("gen-2"),gt.parser.parse(ct);const Li=OA("body").append("div").attr("style","height:400px").attr("id","cy");let y={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(Ba.info("Drawing flowchart using v3 renderer",$se),gt.db.getDirection()){case"BT":y.layoutOptions["elk.direction"]="UP";break;case"TB":y.layoutOptions["elk.direction"]="DOWN";break;case"LR":y.layoutOptions["elk.direction"]="RIGHT";break;case"RL":y.layoutOptions["elk.direction"]="LEFT";break}const{securityLevel:Ku,flowchart:Ht}=$U();let Jt;Ku==="sandbox"&&(Jt=OA("#i"+_t));const Xe=Ku==="sandbox"?OA(Jt.nodes()[0].contentDocument.body):OA("body"),Yi=Ku==="sandbox"?Jt.nodes()[0].contentDocument:document,Bi=Xe.select(`[id="${_t}"]`);_De(Bi,["point","circle","cross"],gt.type,_t);const hu=gt.db.getVertices();let Qc;const Bu=gt.db.getSubGraphs();Ba.info("Subgraphs - ",Bu);for(let $1=Bu.length-1;$1>=0;$1--)Qc=Bu[$1],gt.db.addVertex(Qc.id,{text:Qc.title,type:Qc.labelType},"group",void 0,Qc.classes,Qc.dir);const Ir=Bi.insert("g").attr("class","subgraphs"),Tf=i$e(gt.db);y=await YDe(hu,_t,Xe,Yi,gt,Tf,y);const N1=Bi.insert("g").attr("class","edges edgePath"),D1=gt.db.getEdges();y=n$e(D1,gt,y,Bi),Object.keys(X3).forEach($1=>{const ul=X3[$1];ul.parent||y.children.push(ul),Tf.childrenById[$1]!==void 0&&(ul.labels=[{text:ul.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:ul.labelData.width,height:ul.labelData.height}],delete ul.x,delete ul.y,delete ul.width,delete ul.height)}),Bse(y.children,Tf),Ba.info("after layout",JSON.stringify(y,null,2));const V3=await $se.layout(y);Fse(0,0,V3.children,Bi,Ir,gt,0),Ba.info("after layout",V3),(Pr=V3.edges)==null||Pr.map($1=>{c$e(N1,$1,$1.edgeData,gt,Tf,_t)}),BDe({},Bi,Ht.diagramPadding,Ht.useMaxWidth),Li.remove()},Fse=(ct,_t,Xt,gt,Pr,Li,y)=>{Xt.forEach(function(Wt){if(Wt)if(X3[Wt.id].offset={posX:Wt.x+ct,posY:Wt.y+_t,x:ct,y:_t,depth:y,width:Wt.width,height:Wt.height},Wt.type==="group"){const Ku=Pr.insert("g").attr("class","subgraph");Ku.insert("rect").attr("class","subgraph subgraph-lvl-"+y%5+" node").attr("x",Wt.x+ct).attr("y",Wt.y+_t).attr("width",Wt.width).attr("height",Wt.height);const Ht=Ku.insert("g").attr("class","label"),Jt=$U().flowchart.htmlLabels?Wt.labelData.width/2:0;Ht.attr("transform",`translate(${Wt.labels[0].x+ct+Wt.x+Jt}, ${Wt.labels[0].y+_t+Wt.y+3})`),Ht.node().appendChild(Wt.labelData.labelNode),Ba.info("Id (UGH)= ",Wt.type,Wt.labels)}else Ba.info("Id (UGH)= ",Wt.id),Wt.el.attr("transform",`translate(${Wt.x+ct+Wt.width/2}, ${Wt.y+_t+Wt.height/2})`)}),Xt.forEach(function(Wt){Wt&&Wt.type==="group"&&Fse(ct+Wt.x,_t+Wt.y,Wt.children,gt,Pr,Li,y+1)})},o$e={getClasses:t$e,draw:u$e},s$e=ct=>{let _t="";for(let Xt=0;Xt<5;Xt++)_t+=`
.subgraph-lvl-${Xt} {
fill: ${ct[`surface${Xt}`]};
stroke: ${ct[`surfacePeer${Xt}`]};
}
`;return _t},f$e=ct=>`.label {
font-family: ${ct.fontFamily};
color: ${ct.nodeTextColor||ct.textColor};
}
.cluster-label text {
fill: ${ct.titleColor};
}
.cluster-label span {
color: ${ct.titleColor};
}
.label text,span {
fill: ${ct.nodeTextColor||ct.textColor};
color: ${ct.nodeTextColor||ct.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${ct.mainBkg};
stroke: ${ct.nodeBorder};
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${ct.arrowheadColor};
}
.edgePath .path {
stroke: ${ct.lineColor};
stroke-width: 2.0px;
}
.flowchart-link {
stroke: ${ct.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${ct.edgeLabelBackground};
rect {
opacity: 0.85;
background-color: ${ct.edgeLabelBackground};
fill: ${ct.edgeLabelBackground};
}
text-align: center;
}
.cluster rect {
fill: ${ct.clusterBkg};
stroke: ${ct.clusterBorder};
stroke-width: 1px;
}
.cluster text {
fill: ${ct.titleColor};
}
.cluster span {
color: ${ct.titleColor};
}
/* .cluster div {
color: ${ct.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${ct.fontFamily};
font-size: 12px;
background: ${ct.tertiaryColor};
border: 1px solid ${ct.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${ct.textColor};
}
.subgraph {
stroke-width:2;
rx:3;
}
// .subgraph-lvl-1 {
// fill:#ccc;
// // stroke:black;
// }
.flowchart-label text {
text-anchor: middle;
}
${s$e(ct)}
`,h$e=f$e,j$e={db:xDe,renderer:o$e,parser:RDe,styles:h$e};export{j$e as diagram};
import{p as e,f as o}from"./flowDb-147da10a-Cx_grzty.js";import{f as t,a}from"./styles-c171666c-DFB0BSW8.js";import{u as i}from"./slidev/Mermaid-sWhOKcCj.js";import"./graph-af3d5df6-B9Rrt_D8.js";import"./index-c8395ba2-BeB0hvAS.js";import"./layout-6685625a-TirZJcn7.js";import"./clone-d2e37f8c-kF1Uud7q.js";import"./edges-1e1ebc73-BF9aEHVZ.js";import"./createText-f6615236-DY9JQ1lr.js";import"./line-65d70945-Bv9b7vLo.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";import"./channel-d3ac35ac-BF6w4Boq.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";const C={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{C as diagram};
import{p as Lt,f as V}from"./flowDb-147da10a-Cx_grzty.js";import{G as _t,h as S,f as tt}from"./graph-af3d5df6-B9Rrt_D8.js";import{h as x,n as Y,o as et,c as G,r as rt,j as at,l as R,p as z,q as U,t as Et}from"./slidev/Mermaid-sWhOKcCj.js";import{u as Tt,r as Nt,p as At,l as Ct,d as M}from"./layout-6685625a-TirZJcn7.js";import{f as It,a as Bt,b as nt,s as Mt,c as N,i as st,d as E,e as it,g as ot}from"./styles-c171666c-DFB0BSW8.js";import{l as Dt}from"./line-65d70945-Bv9b7vLo.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./index-c8395ba2-BeB0hvAS.js";import"./clone-d2e37f8c-kF1Uud7q.js";import"./edges-1e1ebc73-BF9aEHVZ.js";import"./createText-f6615236-DY9JQ1lr.js";import"./channel-d3ac35ac-BF6w4Boq.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";function Rt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Gt(r,e){return fetch(r,e).then(Rt)}function Pt(r){return(e,t)=>Gt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Ut=Pt("image/svg+xml"),H={normal:Wt,vee:Vt,undirected:zt};function $t(r){H=r}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Yt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Ht(r,e){for(var t=r.append("text"),n=Xt(e.label).split(`
`),a=0;a<n.length;a++)t.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(n[a]);return N(t,e.labelStyle),t}function Xt(r){for(var e="",t=!1,n,a=0;a<r.length;++a)if(n=r[a],t){switch(n){case"n":e+=`
`;break;default:e+=n}t=!1}else n==="\\"?t=!0:e+=n;return e}function J(r,e,t){var n=e.label,a=r.append("g");e.labelType==="svg"?Yt(a,e):typeof n!="string"||e.labelType==="html"?nt(a,e):Ht(a,e);var s=a.node().getBBox(),i;switch(t){case"top":i=-e.height/2;break;case"bottom":i=e.height/2-s.height;break;default:i=-s.height/2}return a.attr("transform","translate("+-s.width/2+","+i+")"),a}var X=function(r,e){var t=e.nodes().filter(function(s){return st(e,s)}),n=r.selectAll("g.cluster").data(t,function(s){return s});E(n.exit(),e).style("opacity",0).remove();var a=n.enter().append("g").attr("class","cluster").attr("id",function(s){var i=e.node(s);return i.id}).style("opacity",0).each(function(s){var i=e.node(s),o=x(this);x(this).append("rect");var c=o.append("g").attr("class","label");J(c,i,i.clusterLabelPos)});return n=n.merge(a),n=E(n,e).style("opacity",1),n.selectAll("rect").each(function(s){var i=e.node(s),o=x(this);N(o,i.style)}),n};function Ft(r){X=r}let F=function(r,e){var t=r.selectAll("g.edgeLabel").data(e.edges(),function(a){return it(a)}).classed("update",!0);t.exit().remove(),t.enter().append("g").classed("edgeLabel",!0).style("opacity",0),t=r.selectAll("g.edgeLabel"),t.each(function(a){var s=x(this);s.select(".label").remove();var i=e.edge(a),o=J(s,e.edge(a),0).classed("label",!0),c=o.node().getBBox();i.labelId&&o.attr("id",i.labelId),S(i,"width")||(i.width=c.width),S(i,"height")||(i.height=c.height)});var n;return t.exit?n=t.exit():n=t.selectAll(null),E(n,e).style("opacity",0).remove(),t};function qt(r){F=r}function O(r,e){return r.intersect(e)}var q=function(r,e,t){var n=r.selectAll("g.edgePath").data(e.edges(),function(i){return it(i)}).classed("update",!0),a=Ot(n,e);jt(n,e);var s=n.merge!==void 0?n.merge(a):n;return E(s,e).style("opacity",1),s.each(function(i){var o=x(this),c=e.edge(i);c.elem=this,c.id&&o.attr("id",c.id),ot(o,c.class,(o.classed("update")?"update ":"")+"edgePath")}),s.selectAll("path.path").each(function(i){var o=e.edge(i);o.arrowheadId=Tt("arrowhead");var c=x(this).attr("marker-end",function(){return"url("+Kt(location.href,o.arrowheadId)+")"}).style("fill","none");E(c,e).attr("d",function(d){return Jt(e,d)}),N(c,o.style)}),s.selectAll("defs *").remove(),s.selectAll("defs").each(function(i){var o=e.edge(i),c=t[o.arrowhead];c(x(this),o.arrowheadId,o,"arrowhead")}),s};function Qt(r){q=r}function Kt(r,e){var t=r.split("#")[0];return t+"#"+e}function Jt(r,e){var t=r.edge(e),n=r.node(e.v),a=r.node(e.w),s=t.points.slice(1,t.points.length-1);return s.unshift(O(n,s[0])),s.push(O(a,s[s.length-1])),lt(t,s)}function lt(r,e){var t=(Dt||Ut.line)().x(function(n){return n.x}).y(function(n){return n.y});return(t.curve||t.interpolate)(r.curve),t(e)}function Zt(r){var e=r.getBBox(),t=r.ownerSVGElement.getScreenCTM().inverse().multiply(r.getScreenCTM()).translate(e.width/2,e.height/2);return{x:t.e,y:t.f}}function Ot(r,e){var t=r.enter().append("g").attr("class","edgePath").style("opacity",0);return t.append("path").attr("class","path").attr("d",function(n){var a=e.edge(n),s=e.node(n.v).elem,i=Nt(a.points.length).map(function(){return Zt(s)});return lt(a,i)}),t.append("defs"),t}function jt(r,e){var t=r.exit();E(t,e).style("opacity",0).remove()}var Q=function(r,e,t){var n=e.nodes().filter(function(i){return!st(e,i)}),a=r.selectAll("g.node").data(n,function(i){return i}).classed("update",!0);a.exit().remove(),a.enter().append("g").attr("class","node").style("opacity",0),a=r.selectAll("g.node"),a.each(function(i){var o=e.node(i),c=x(this);ot(c,o.class,(c.classed("update")?"update ":"")+"node"),c.select("g.label").remove();var d=c.append("g").attr("class","label"),l=J(d,o),v=t[o.shape],h=At(l.node().getBBox(),"width","height");o.elem=this,o.id&&c.attr("id",o.id),o.labelId&&d.attr("id",o.labelId),S(o,"width")&&(h.width=o.width),S(o,"height")&&(h.height=o.height),h.width+=o.paddingLeft+o.paddingRight,h.height+=o.paddingTop+o.paddingBottom,d.attr("transform","translate("+(o.paddingLeft-o.paddingRight)/2+","+(o.paddingTop-o.paddingBottom)/2+")");var u=x(this);u.select(".label-container").remove();var p=v(u,h,o).classed("label-container",!0);N(p,o.style);var y=p.node().getBBox();o.width=y.width,o.height=y.height});var s;return a.exit?s=a.exit():s=a.selectAll(null),E(s,e).style("opacity",0).remove(),a};function te(r){Q=r}function ee(r,e){var t=r.filter(function(){return!x(this).classed("update")});function n(a){var s=e.node(a);return"translate("+s.x+","+s.y+")"}t.attr("transform",n),E(r,e).style("opacity",1).attr("transform",n),E(t.selectAll("rect"),e).attr("width",function(a){return e.node(a).width}).attr("height",function(a){return e.node(a).height}).attr("x",function(a){var s=e.node(a);return-s.width/2}).attr("y",function(a){var s=e.node(a);return-s.height/2})}function re(r,e){var t=r.filter(function(){return!x(this).classed("update")});function n(a){var s=e.edge(a);return S(s,"x")?"translate("+s.x+","+s.y+")":""}t.attr("transform",n),E(r,e).style("opacity",1).attr("transform",n)}function ae(r,e){var t=r.filter(function(){return!x(this).classed("update")});function n(a){var s=e.node(a);return"translate("+s.x+","+s.y+")"}t.attr("transform",n),E(r,e).style("opacity",1).attr("transform",n)}function ct(r,e,t,n){var a=r.x,s=r.y,i=a-n.x,o=s-n.y,c=Math.sqrt(e*e*o*o+t*t*i*i),d=Math.abs(e*t*i/c);n.x<a&&(d=-d);var l=Math.abs(e*t*o/c);return n.y<s&&(l=-l),{x:a+d,y:s+l}}function ne(r,e,t){return ct(r,e,e,t)}function se(r,e,t,n){var a,s,i,o,c,d,l,v,h,u,p,y,f,g,k;if(a=e.y-r.y,i=r.x-e.x,c=e.x*r.y-r.x*e.y,h=a*t.x+i*t.y+c,u=a*n.x+i*n.y+c,!(h!==0&&u!==0&&j(h,u))&&(s=n.y-t.y,o=t.x-n.x,d=n.x*t.y-t.x*n.y,l=s*r.x+o*r.y+d,v=s*e.x+o*e.y+d,!(l!==0&&v!==0&&j(l,v))&&(p=a*o-s*i,p!==0)))return y=Math.abs(p/2),f=i*d-o*c,g=f<0?(f-y)/p:(f+y)/p,f=s*c-a*d,k=f<0?(f-y)/p:(f+y)/p,{x:g,y:k}}function j(r,e){return r*e>0}function T(r,e,t){var n=r.x,a=r.y,s=[],i=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;e.forEach(function(p){i=Math.min(i,p.x),o=Math.min(o,p.y)});for(var c=n-r.width/2-i,d=a-r.height/2-o,l=0;l<e.length;l++){var v=e[l],h=e[l<e.length-1?l+1:0],u=se(r,t,{x:c+v.x,y:d+v.y},{x:c+h.x,y:d+h.y});u&&s.push(u)}return s.length?(s.length>1&&s.sort(function(p,y){var f=p.x-t.x,g=p.y-t.y,k=Math.sqrt(f*f+g*g),I=y.x-t.x,_=y.y-t.y,$=Math.sqrt(I*I+_*_);return k<$?-1:k===$?0:1}),s[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",r),r)}function Z(r,e){var t=r.x,n=r.y,a=e.x-t,s=e.y-n,i=r.width/2,o=r.height/2,c,d;return Math.abs(s)*i>Math.abs(a)*o?(s<0&&(o=-o),c=s===0?0:o*a/s,d=o):(a<0&&(i=-i),c=i,d=a===0?0:i*s/a),{x:t+c,y:n+d}}var K={rect:oe,ellipse:le,circle:ce,diamond:de};function ie(r){K=r}function oe(r,e,t){var n=r.insert("rect",":first-child").attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return t.intersect=function(a){return Z(t,a)},n}function le(r,e,t){var n=e.width/2,a=e.height/2,s=r.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",n).attr("ry",a);return t.intersect=function(i){return ct(t,n,a,i)},s}function ce(r,e,t){var n=Math.max(e.width,e.height)/2,a=r.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",n);return t.intersect=function(s){return ne(t,n,s)},a}function de(r,e,t){var n=e.width*Math.SQRT2/2,a=e.height*Math.SQRT2/2,s=[{x:0,y:-a},{x:-n,y:0},{x:0,y:a},{x:n,y:0}],i=r.insert("polygon",":first-child").attr("points",s.map(function(o){return o.x+","+o.y}).join(" "));return t.intersect=function(o){return T(t,s,o)},i}function he(){var r=function(e,t){pe(t);var n=D(e,"output"),a=D(n,"clusters"),s=D(n,"edgePaths"),i=F(D(n,"edgeLabels"),t),o=Q(D(n,"nodes"),t,K);Ct(t),ae(o,t),re(i,t),q(s,t,H);var c=X(a,t);ee(c,t),ve(t)};return r.createNodes=function(e){return arguments.length?(te(e),r):Q},r.createClusters=function(e){return arguments.length?(Ft(e),r):X},r.createEdgeLabels=function(e){return arguments.length?(qt(e),r):F},r.createEdgePaths=function(e){return arguments.length?(Qt(e),r):q},r.shapes=function(e){return arguments.length?(ie(e),r):K},r.arrows=function(e){return arguments.length?($t(e),r):H},r}var ue={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},fe={arrowhead:"normal",curve:U};function pe(r){r.nodes().forEach(function(e){var t=r.node(e);!S(t,"label")&&!r.children(e).length&&(t.label=e),S(t,"paddingX")&&M(t,{paddingLeft:t.paddingX,paddingRight:t.paddingX}),S(t,"paddingY")&&M(t,{paddingTop:t.paddingY,paddingBottom:t.paddingY}),S(t,"padding")&&M(t,{paddingLeft:t.padding,paddingRight:t.padding,paddingTop:t.padding,paddingBottom:t.padding}),M(t,ue),tt(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(n){t[n]=Number(t[n])}),S(t,"width")&&(t._prevWidth=t.width),S(t,"height")&&(t._prevHeight=t.height)}),r.edges().forEach(function(e){var t=r.edge(e);S(t,"label")||(t.label=""),M(t,fe)})}function ve(r){tt(r.nodes(),function(e){var t=r.node(e);S(t,"_prevWidth")?t.width=t._prevWidth:delete t.width,S(t,"_prevHeight")?t.height=t._prevHeight:delete t.height,delete t._prevWidth,delete t._prevHeight})}function D(r,e){var t=r.select("g."+e);return t.empty()&&(t=r.append("g").attr("class",e)),t}function dt(r,e,t){const n=e.width,a=e.height,s=(n+a)*.9,i=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}],o=A(r,s,s,i);return t.intersect=function(c){return T(t,i,c)},o}function ht(r,e,t){const a=e.height,s=a/4,i=e.width+2*s,o=[{x:s,y:0},{x:i-s,y:0},{x:i,y:-a/2},{x:i-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],c=A(r,i,a,o);return t.intersect=function(d){return T(t,o,d)},c}function ut(r,e,t){const n=e.width,a=e.height,s=[{x:-a/2,y:0},{x:n,y:0},{x:n,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function ft(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function pt(r,e,t){const n=e.width,a=e.height,s=[{x:2*a/6,y:0},{x:n+a/6,y:0},{x:n-2*a/6,y:-a},{x:-a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function vt(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n+2*a/6,y:0},{x:n-a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function gt(r,e,t){const n=e.width,a=e.height,s=[{x:a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:-2*a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function yt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n+a/2,y:0},{x:n,y:-a/2},{x:n+a/2,y:-a},{x:0,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function mt(r,e,t){const n=e.height,a=e.width+n/4,s=r.insert("rect",":first-child").attr("rx",n/2).attr("ry",n/2).attr("x",-a/2).attr("y",-n/2).attr("width",a).attr("height",n);return t.intersect=function(i){return Z(t,i)},s}function wt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n,y:0},{x:n,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:n+8,y:0},{x:n+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function xt(r,e,t){const n=e.width,a=n/2,s=a/(2.5+n/50),i=e.height+s,o="M 0,"+s+" a "+a+","+s+" 0,0,0 "+n+" 0 a "+a+","+s+" 0,0,0 "+-n+" 0 l 0,"+i+" a "+a+","+s+" 0,0,0 "+n+" 0 l 0,"+-i,c=r.attr("label-offset-y",s).insert("path",":first-child").attr("d",o).attr("transform","translate("+-n/2+","+-(i/2+s)+")");return t.intersect=function(d){const l=Z(t,d),v=l.x-t.x;if(a!=0&&(Math.abs(v)<t.width/2||Math.abs(v)==t.width/2&&Math.abs(l.y-t.y)>t.height/2-s)){let h=s*s*(1-v*v/(a*a));h!=0&&(h=Math.sqrt(h)),h=s-h,d.y-t.y>0&&(h=-h),l.y+=h}return l},c}function ge(r){r.shapes().question=dt,r.shapes().hexagon=ht,r.shapes().stadium=mt,r.shapes().subroutine=wt,r.shapes().cylinder=xt,r.shapes().rect_left_inv_arrow=ut,r.shapes().lean_right=ft,r.shapes().lean_left=pt,r.shapes().trapezoid=vt,r.shapes().inv_trapezoid=gt,r.shapes().rect_right_inv_arrow=yt}function ye(r){r({question:dt}),r({hexagon:ht}),r({stadium:mt}),r({subroutine:wt}),r({cylinder:xt}),r({rect_left_inv_arrow:ut}),r({lean_right:ft}),r({lean_left:pt}),r({trapezoid:vt}),r({inv_trapezoid:gt}),r({rect_right_inv_arrow:yt})}function A(r,e,t,n){return r.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("transform","translate("+-e/2+","+t/2+")")}const me={addToRender:ge,addToRenderV2:ye},bt={},we=function(r){const e=Object.keys(r);for(const t of e)bt[t]=r[t]},kt=async function(r,e,t,n,a,s){const i=n?n.select(`[id="${t}"]`):x(`[id="${t}"]`),o=a||document,c=Object.keys(r);for(const d of c){const l=r[d];let v="default";l.classes.length>0&&(v=l.classes.join(" "));const h=Y(l.styles);let u=l.text!==void 0?l.text:l.id,p;if(et(G().flowchart.htmlLabels)){const g={label:await rt(u.replace(/fa[blrs]?:fa-[\w-]+/g,k=>`<i class='${k.replace(":"," ")}'></i>`),G())};p=nt(i,g).node(),p.parentNode.removeChild(p)}else{const g=o.createElementNS("http://www.w3.org/2000/svg","text");g.setAttribute("style",h.labelStyle.replace("color:","fill:"));const k=u.split(at.lineBreakRegex);for(const I of k){const _=o.createElementNS("http://www.w3.org/2000/svg","tspan");_.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),_.setAttribute("dy","1em"),_.setAttribute("x","1"),_.textContent=I,g.appendChild(_)}p=g}let y=0,f="";switch(l.type){case"round":y=5,f="rect";break;case"square":f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"odd":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"odd_right":f="rect_left_inv_arrow";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder";break;case"group":f="rect";break;default:f="rect"}R.warn("Adding node",l.id,l.domId),e.setNode(s.db.lookUpDomId(l.id),{labelType:"svg",labelStyle:h.labelStyle,shape:f,label:p,rx:y,ry:y,class:v,style:h.style,id:s.db.lookUpDomId(l.id)})}},St=async function(r,e,t){let n=0,a,s;if(r.defaultStyle!==void 0){const i=Y(r.defaultStyle);a=i.style,s=i.labelStyle}for(const i of r){n++;const o="L-"+i.start+"-"+i.end,c="LS-"+i.start,d="LE-"+i.end,l={};i.type==="arrow_open"?l.arrowhead="none":l.arrowhead="normal";let v="",h="";if(i.style!==void 0){const u=Y(i.style);v=u.style,h=u.labelStyle}else switch(i.stroke){case"normal":v="fill:none",a!==void 0&&(v=a),s!==void 0&&(h=s);break;case"dotted":v="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":v=" stroke-width: 3.5px;fill:none";break}l.style=v,l.labelStyle=h,i.interpolate!==void 0?l.curve=z(i.interpolate,U):r.defaultInterpolate!==void 0?l.curve=z(r.defaultInterpolate,U):l.curve=z(bt.curve,U),i.text===void 0?i.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",et(G().flowchart.htmlLabels)?(l.labelType="html",l.label=`<span id="L-${o}" class="edgeLabel L-${c}' L-${d}" style="${l.labelStyle}">${await rt(i.text.replace(/fa[blrs]?:fa-[\w-]+/g,u=>`<i class='${u.replace(":"," ")}'></i>`),G())}</span>`):(l.labelType="text",l.label=i.text.replace(at.lineBreakRegex,`
`),i.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=o,l.class=c+" "+d,l.minlen=i.length||1,e.setEdge(t.db.lookUpDomId(i.start),t.db.lookUpDomId(i.end),l,n)}},xe=function(r,e){return R.info("Extracting classes"),e.db.getClasses()},be=async function(r,e,t,n){R.info("Drawing flowchart");const{securityLevel:a,flowchart:s}=G();let i;a==="sandbox"&&(i=x("#i"+e));const o=a==="sandbox"?x(i.nodes()[0].contentDocument.body):x("body"),c=a==="sandbox"?i.nodes()[0].contentDocument:document;let d=n.db.getDirection();d===void 0&&(d="TD");const l=s.nodeSpacing||50,v=s.rankSpacing||50,h=new _t({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:l,ranksep:v,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let u;const p=n.db.getSubGraphs();for(let m=p.length-1;m>=0;m--)u=p[m],n.db.addVertex(u.id,u.title,"group",void 0,u.classes);const y=n.db.getVertices();R.warn("Get vertices",y);const f=n.db.getEdges();let g=0;for(g=p.length-1;g>=0;g--){u=p[g],Mt("cluster").append("text");for(let m=0;m<u.nodes.length;m++)R.warn("Setting subgraph",u.nodes[m],n.db.lookUpDomId(u.nodes[m]),n.db.lookUpDomId(u.id)),h.setParent(n.db.lookUpDomId(u.nodes[m]),n.db.lookUpDomId(u.id))}await kt(y,h,e,o,c,n),await St(f,h,n);const k=new he;me.addToRender(k),k.arrows().none=function(b,L,w,B){const C=b.append("marker").attr("id",L).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");N(C,w[B+"Style"])},k.arrows().normal=function(b,L){b.append("marker").attr("id",L).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const I=o.select(`[id="${e}"]`),_=o.select("#"+e+" g");for(k(_,h),_.selectAll("g.node").attr("title",function(){return n.db.getTooltip(this.id)}),n.db.indexNodes("subGraph"+g),g=0;g<p.length;g++)if(u=p[g],u.title!=="undefined"){const m=c.querySelectorAll("#"+e+' [id="'+n.db.lookUpDomId(u.id)+'"] rect'),b=c.querySelectorAll("#"+e+' [id="'+n.db.lookUpDomId(u.id)+'"]'),L=m[0].x.baseVal.value,w=m[0].y.baseVal.value,B=m[0].width.baseVal.value,C=x(b[0]).select(".label");C.attr("transform",`translate(${L+B/2}, ${w+14})`),C.attr("id",e+"Text");for(let W=0;W<u.classes.length;W++)b[0].classList.add(u.classes[W])}if(!s.htmlLabels){const m=c.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const b of m){const L=b.getBBox(),w=c.createElementNS("http://www.w3.org/2000/svg","rect");w.setAttribute("rx",0),w.setAttribute("ry",0),w.setAttribute("width",L.width),w.setAttribute("height",L.height),b.insertBefore(w,b.firstChild)}}Et(h,I,s.diagramPadding,s.useMaxWidth),Object.keys(y).forEach(function(m){const b=y[m];if(b.link){const L=o.select("#"+e+' [id="'+n.db.lookUpDomId(m)+'"]');if(L){const w=c.createElementNS("http://www.w3.org/2000/svg","a");w.setAttributeNS("http://www.w3.org/2000/svg","class",b.classes.join(" ")),w.setAttributeNS("http://www.w3.org/2000/svg","href",b.link),w.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),a==="sandbox"?w.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):b.linkTarget&&w.setAttributeNS("http://www.w3.org/2000/svg","target",b.linkTarget);const B=L.insert(function(){return w},":first-child"),P=L.select(".label-container");P&&B.append(function(){return P.node()});const C=L.select(".label");C&&B.append(function(){return C.node()})}}})},ke={setConf:we,addVertices:kt,addEdges:St,getClasses:xe,draw:be},We={parser:Lt,db:V,renderer:It,styles:Bt,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,ke.setConf(r.flowchart),V.clear(),V.setGen("gen-1")}};export{We as diagram};
import{c as et,as as me,s as ye,g as ve,a as Ve,b as Le,C as Ie,D as Re,l as J1,v as dt,E as Ne,j as we,h as w1}from"./slidev/Mermaid-sWhOKcCj.js";var pt=function(){var e=function(f1,a,o,f){for(o=o||{},f=f1.length;f--;o[f1[f]]=a);return o},u=[1,4],i=[1,3],n=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],l=[2,2],h=[1,13],U=[1,14],F=[1,15],w=[1,16],X=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],S=[1,49],k=[1,48],l1=[1,29],U1=[1,30],G1=[1,31],M1=[1,32],K1=[1,33],x=[1,44],B=[1,46],m=[1,42],y=[1,47],v=[1,43],V=[1,50],L=[1,45],I=[1,51],R=[1,52],Y1=[1,34],j1=[1,35],z1=[1,36],X1=[1,37],I1=[1,57],b=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],q=[1,61],Q=[1,60],Z=[1,62],H1=[8,9,11,73,75],k1=[1,88],b1=[1,93],g1=[1,92],D1=[1,89],F1=[1,85],T1=[1,91],C1=[1,87],S1=[1,94],_1=[1,90],x1=[1,95],B1=[1,86],W1=[8,9,10,11,73,75],N=[8,9,10,11,44,73,75],M=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Et=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],R1=[42,58,86,99,102,103,106,108,111,112,113],kt=[1,121],bt=[1,120],gt=[1,128],Dt=[1,142],Ft=[1,143],Tt=[1,144],Ct=[1,145],St=[1,130],_t=[1,132],xt=[1,136],Bt=[1,137],mt=[1,138],yt=[1,139],vt=[1,140],Vt=[1,141],Lt=[1,146],It=[1,147],Rt=[1,126],Nt=[1,127],wt=[1,134],Ot=[1,129],Pt=[1,133],Ut=[1,131],nt=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Gt=[1,149],T=[8,9,11],K=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],p=[1,169],O=[1,165],P=[1,166],A=[1,170],d=[1,167],E=[1,168],m1=[75,113,116],g=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Mt=[10,103],h1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],J=[1,235],$=[1,233],t1=[1,237],e1=[1,231],s1=[1,232],u1=[1,234],i1=[1,236],r1=[1,238],y1=[1,255],Kt=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],at={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,o,f,r,C,t,N1){var s=t.length-1;switch(C){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 176:this.$=t[s];break;case 11:r.setDirection("TB"),this.$="TB";break;case 12:r.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 43:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 44:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 45:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 46:this.$={stmt:t[s],nodes:t[s]};break;case 47:this.$=[t[s]];break;case 48:this.$=t[s-4].concat(t[s]);break;case 49:this.$=t[s];break;case 50:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 51:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 52:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 53:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 54:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 55:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 56:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 57:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 58:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 65:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 67:this.$=t[s],r.addVertex(t[s]);break;case 68:t[s-1].text=t[s],this.$=t[s-1];break;case 69:case 70:t[s-2].text=t[s-1],this.$=t[s-2];break;case 71:this.$=t[s];break;case 72:var Y=r.destructLink(t[s],t[s-2]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length,text:t[s-1]};break;case 73:this.$={text:t[s],type:"text"};break;case 74:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 75:this.$={text:t[s],type:"string"};break;case 76:this.$={text:t[s],type:"markdown"};break;case 77:var Y=r.destructLink(t[s]);this.$={type:Y.type,stroke:Y.stroke,length:Y.length};break;case 78:this.$=t[s-1];break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:case 97:this.$={text:t[s],type:"markdown"};break;case 94:this.$={text:t[s],type:"text"};break;case 95:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 96:this.$={text:t[s],type:"text"};break;case 98:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 99:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 100:case 108:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 101:case 109:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 102:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 103:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 104:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 105:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 106:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 107:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 110:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 111:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 112:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 113:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 114:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 115:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 116:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 117:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 118:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 119:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 120:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 121:case 123:this.$=[t[s]];break;case 122:case 124:t[s-2].push(t[s]),this.$=t[s-2];break;case 126:this.$=t[s-1]+t[s];break;case 174:this.$=t[s];break;case 175:this.$=t[s-1]+""+t[s];break;case 177:this.$=t[s-1]+""+t[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:u,10:i,12:n},{1:[3]},e(c,l,{5:6}),{4:7,9:u,10:i,12:n},{4:8,9:u,10:i,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),{8:[1,54],9:[1,55],10:I1,15:53,18:56},e(b,[2,3]),e(b,[2,4]),e(b,[2,5]),e(b,[2,6]),e(b,[2,7]),e(b,[2,8]),{8:q,9:Q,11:Z,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:q,9:Q,11:Z,21:66},{8:q,9:Q,11:Z,21:67},{8:q,9:Q,11:Z,21:68},{8:q,9:Q,11:Z,21:69},{8:q,9:Q,11:Z,21:70},{8:q,9:Q,10:[1,71],11:Z,21:72},e(b,[2,36]),{35:[1,73]},{37:[1,74]},e(b,[2,39]),e(H1,[2,46],{18:75,10:I1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:k1,42:b1,58:g1,77:[1,83],86:D1,92:[1,80],94:[1,81],98:82,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},e(b,[2,178]),e(b,[2,179]),e(b,[2,180]),e(b,[2,181]),e(W1,[2,47]),e(W1,[2,49],{44:[1,96]}),e(N,[2,67],{110:109,29:[1,97],42:S,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:k,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(M,[2,174]),e(M,[2,135]),e(M,[2,136]),e(M,[2,137]),e(M,[2,138]),e(M,[2,139]),e(M,[2,140]),e(M,[2,141]),e(M,[2,142]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(c,[2,12]),e(c,[2,18]),e(c,[2,19]),{9:[1,110]},e(Et,[2,26],{18:111,10:I1}),e(b,[2,27]),{40:112,41:38,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(b,[2,40]),e(b,[2,41]),e(b,[2,42]),e(R1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:kt,116:bt},e([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(b,[2,32]),{10:gt,12:Dt,14:Ft,27:Tt,28:122,32:Ct,42:St,58:_t,73:xt,77:[1,124],78:[1,125],80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:123,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(nt,l,{5:148}),e(b,[2,37]),e(b,[2,38]),e(H1,[2,45],{42:Gt}),{42:S,45:150,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{99:[1,151],100:152,102:[1,153]},{42:S,45:154,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{42:S,45:155,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},e(T,[2,108],{117:160,10:[1,159],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,110],{10:[1,161]}),e(K,[2,176]),e(K,[2,163]),e(K,[2,164]),e(K,[2,165]),e(K,[2,166]),e(K,[2,167]),e(K,[2,168]),e(K,[2,169]),e(K,[2,170]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),{42:S,45:162,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{30:163,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:171,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:173,48:[1,172],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:174,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:175,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:176,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{106:[1,177]},{30:178,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:179,63:[1,180],65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:181,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:182,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{30:183,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(M,[2,175]),e(c,[2,20]),e(Et,[2,25]),e(H1,[2,43],{18:184,10:I1}),e(R1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{75:[1,188],76:189,113:kt,116:bt},e(m1,[2,73]),e(m1,[2,75]),e(m1,[2,76]),e(m1,[2,161]),e(m1,[2,162]),{8:q,9:Q,10:gt,11:Z,12:Dt,14:Ft,21:191,27:Tt,29:[1,190],32:Ct,42:St,58:_t,73:xt,80:135,81:Bt,82:mt,83:yt,84:vt,85:Vt,86:Lt,87:It,88:192,102:Rt,106:Nt,108:wt,111:Ot,112:Pt,113:Ut},e(g,[2,94]),e(g,[2,96]),e(g,[2,97]),e(g,[2,150]),e(g,[2,151]),e(g,[2,152]),e(g,[2,153]),e(g,[2,154]),e(g,[2,155]),e(g,[2,156]),e(g,[2,157]),e(g,[2,158]),e(g,[2,159]),e(g,[2,160]),e(g,[2,83]),e(g,[2,84]),e(g,[2,85]),e(g,[2,86]),e(g,[2,87]),e(g,[2,88]),e(g,[2,89]),e(g,[2,90]),e(g,[2,91]),e(g,[2,92]),e(g,[2,93]),{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:I1,18:194},{10:[1,195],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,196]},{10:[1,197],103:[1,198]},e(Mt,[2,121]),{10:[1,199],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{10:[1,200],42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:109,111:L,112:I,113:R},{77:[1,201]},e(T,[2,102],{10:[1,202]}),e(T,[2,104],{10:[1,203]}),{77:[1,204]},e(K,[2,177]),{77:[1,205],95:[1,206]},e(W1,[2,50],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),{31:[1,207],65:p,79:208,113:A,114:d,115:E},e(h1,[2,79]),e(h1,[2,81]),e(h1,[2,82]),e(h1,[2,146]),e(h1,[2,147]),e(h1,[2,148]),e(h1,[2,149]),{47:[1,209],65:p,79:208,113:A,114:d,115:E},{30:210,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{49:[1,211],65:p,79:208,113:A,114:d,115:E},{51:[1,212],65:p,79:208,113:A,114:d,115:E},{53:[1,213],65:p,79:208,113:A,114:d,115:E},{55:[1,214],65:p,79:208,113:A,114:d,115:E},{58:[1,215]},{62:[1,216],65:p,79:208,113:A,114:d,115:E},{64:[1,217],65:p,79:208,113:A,114:d,115:E},{30:218,65:p,77:O,78:P,79:164,113:A,114:d,115:E},{31:[1,219],65:p,79:208,113:A,114:d,115:E},{65:p,67:[1,220],69:[1,221],79:208,113:A,114:d,115:E},{65:p,67:[1,223],69:[1,222],79:208,113:A,114:d,115:E},e(H1,[2,44],{42:Gt}),e(R1,[2,70]),e(R1,[2,69]),{60:[1,224],65:p,79:208,113:A,114:d,115:E},e(R1,[2,72]),e(m1,[2,74]),{30:225,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(nt,l,{5:226}),e(g,[2,95]),e(b,[2,35]),{41:227,42:S,43:39,45:40,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},{10:J,58:$,81:t1,89:228,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:239,101:[1,240],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:241,101:[1,242],102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{102:[1,243]},{10:J,58:$,81:t1,89:244,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{42:S,45:245,58:k,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R},e(T,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},e(T,[2,109]),e(T,[2,111],{10:[1,249]}),e(T,[2,112]),e(N,[2,51]),e(h1,[2,80]),e(N,[2,52]),{49:[1,250],65:p,79:208,113:A,114:d,115:E},e(N,[2,59]),e(N,[2,54]),e(N,[2,55]),e(N,[2,56]),{106:[1,251]},e(N,[2,58]),e(N,[2,60]),{64:[1,252],65:p,79:208,113:A,114:d,115:E},e(N,[2,62]),e(N,[2,63]),e(N,[2,65]),e(N,[2,64]),e(N,[2,66]),e([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},e(W1,[2,48]),e(T,[2,114],{103:y1}),e(Kt,[2,123],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(W,[2,125]),e(W,[2,127]),e(W,[2,128]),e(W,[2,129]),e(W,[2,130]),e(W,[2,131]),e(W,[2,132]),e(W,[2,133]),e(W,[2,134]),e(T,[2,115],{103:y1}),{10:[1,257]},e(T,[2,116],{103:y1}),{10:[1,258]},e(Mt,[2,122]),e(T,[2,98],{103:y1}),e(T,[2,99],{110:109,42:S,58:k,86:x,99:B,102:m,103:y,106:v,108:V,111:L,112:I,113:R}),e(T,[2,103]),e(T,[2,105],{10:[1,259]}),e(T,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:q,9:Q,11:Z,21:264},e(b,[2,34]),{10:J,58:$,81:t1,102:e1,104:265,105:230,106:s1,107:u1,108:i1,109:r1},e(W,[2,126]),{14:k1,42:b1,58:g1,86:D1,98:266,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{14:k1,42:b1,58:g1,86:D1,98:267,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1,117:84},{95:[1,268]},e(T,[2,113]),e(N,[2,53]),{30:269,65:p,77:O,78:P,79:164,113:A,114:d,115:E},e(N,[2,61]),e(nt,l,{5:270}),e(Kt,[2,124],{105:256,10:J,58:$,81:t1,102:e1,106:s1,107:u1,108:i1,109:r1}),e(T,[2,119],{117:160,10:[1,271],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,120],{117:160,10:[1,272],14:k1,42:b1,58:g1,86:D1,102:F1,103:T1,106:C1,108:S1,111:_1,112:x1,113:B1}),e(T,[2,107]),{31:[1,273],65:p,79:208,113:A,114:d,115:E},{6:11,7:12,8:h,9:U,10:F,11:w,20:17,22:18,23:19,24:20,25:21,26:22,27:X,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:S,43:39,45:40,58:k,81:l1,82:U1,83:G1,84:M1,85:K1,86:x,99:B,102:m,103:y,106:v,108:V,110:41,111:L,112:I,113:R,118:Y1,119:j1,120:z1,121:X1},{10:J,58:$,81:t1,89:275,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},{10:J,58:$,81:t1,89:276,102:e1,104:229,105:230,106:s1,107:u1,108:i1,109:r1},e(N,[2,57]),e(b,[2,33]),e(T,[2,117],{103:y1}),e(T,[2,118],{103:y1})],defaultActions:{},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var f=new Error(a);throw f.hash=o,f}},parse:function(a){var o=this,f=[0],r=[],C=[null],t=[],N1=this.table,s="",Y=0,Yt=0,Se=2,jt=1,_e=t.slice.call(arguments,1),_=Object.create(this.lexer),d1={yy:{}};for(var ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ot)&&(d1.yy[ot]=this.yy[ot]);_.setInput(a,d1.yy),d1.yy.lexer=_,d1.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var lt=_.yylloc;t.push(lt);var xe=_.options&&_.options.ranges;typeof d1.yy.parseError=="function"?this.parseError=d1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(){var a1;return a1=r.pop()||_.lex()||jt,typeof a1!="number"&&(a1 instanceof Array&&(r=a1,a1=r.pop()),a1=o.symbols_[a1]||a1),a1}for(var G,E1,j,ht,v1={},q1,n1,zt,Q1;;){if(E1=f[f.length-1],this.defaultActions[E1]?j=this.defaultActions[E1]:((G===null||typeof G>"u")&&(G=Be()),j=N1[E1]&&N1[E1][G]),typeof j>"u"||!j.length||!j[0]){var ft="";Q1=[];for(q1 in N1[E1])this.terminals_[q1]&&q1>Se&&Q1.push("'"+this.terminals_[q1]+"'");_.showPosition?ft="Parse error on line "+(Y+1)+`:
`+_.showPosition()+`
Expecting `+Q1.join(", ")+", got '"+(this.terminals_[G]||G)+"'":ft="Parse error on line "+(Y+1)+": Unexpected "+(G==jt?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(ft,{text:_.match,token:this.terminals_[G]||G,line:_.yylineno,loc:lt,expected:Q1})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E1+", token: "+G);switch(j[0]){case 1:f.push(G),C.push(_.yytext),t.push(_.yylloc),f.push(j[1]),G=null,Yt=_.yyleng,s=_.yytext,Y=_.yylineno,lt=_.yylloc;break;case 2:if(n1=this.productions_[j[1]][1],v1.$=C[C.length-n1],v1._$={first_line:t[t.length-(n1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(n1||1)].first_column,last_column:t[t.length-1].last_column},xe&&(v1._$.range=[t[t.length-(n1||1)].range[0],t[t.length-1].range[1]]),ht=this.performAction.apply(v1,[s,Yt,Y,d1.yy,j[1],C,t].concat(_e)),typeof ht<"u")return ht;n1&&(f=f.slice(0,-1*n1*2),C=C.slice(0,-1*n1),t=t.slice(0,-1*n1)),f.push(this.productions_[j[1]][0]),C.push(v1.$),t.push(v1._$),zt=N1[f[f.length-2]][f[f.length-1]],f.push(zt);break;case 3:return!0}}return!0}},Ce=function(){var f1={EOF:1,parseError:function(o,f){if(this.yy.parser)this.yy.parser.parseError(o,f);else throw new Error(o)},setInput:function(a,o){return this.yy=o||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var o=a.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var o=a.length,f=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===r.length?this.yylloc.first_column:0)+r[r.length-f.length].length-f[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),o=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
`+o+"^"},test_match:function(a,o){var f,r,C;if(this.options.backtrack_lexer&&(C={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(C.yylloc.range=this.yylloc.range.slice(0))),r=a[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],f=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var t in C)this[t]=C[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,o,f,r;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),t=0;t<C.length;t++)if(f=this._input.match(this.rules[C[t]]),f&&(!o||f[0].length>o[0].length)){if(o=f,r=t,this.options.backtrack_lexer){if(a=this.test_match(f,C[t]),a!==!1)return a;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(a=this.test_match(o,C[r]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return o||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(o,f,r,C){switch(r){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return o.lex.firstGraph()&&this.begin("dir"),12;case 30:return o.lex.firstGraph()&&this.begin("dir"),12;case 31:return o.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;case 39:return this.popState(),14;case 40:return this.popState(),14;case 41:return this.popState(),14;case 42:return this.popState(),14;case 43:return this.popState(),14;case 44:return this.popState(),14;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:return 116;case 64:return this.popState(),75;case 65:return this.pushState("thickEdgeText"),73;case 66:return 116;case 67:return this.popState(),75;case 68:return this.pushState("dottedEdgeText"),73;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112:return 11}},rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}};return f1}();at.lexer=Ce;function ct(){this.yy={}}return ct.prototype=at,at.Parser=ct,new ct}();pt.parser=pt;const Xe=pt,Oe="flowchart-";let Xt=0,L1=et(),D={},H=[],V1={},c1=[],$1={},tt={},Z1=0,At=!0,z,st,ut=[];const it=e=>we.sanitizeText(e,L1),P1=function(e){const u=Object.keys(D);for(const i of u)if(D[i].id===e)return D[i].domId;return e},Ht=function(e,u,i,n,c,l,h={}){let U,F=e;F!==void 0&&F.trim().length!==0&&(D[F]===void 0&&(D[F]={id:F,labelType:"text",domId:Oe+F+"-"+Xt,styles:[],classes:[]}),Xt++,u!==void 0?(L1=et(),U=it(u.text.trim()),D[F].labelType=u.type,U[0]==='"'&&U[U.length-1]==='"'&&(U=U.substring(1,U.length-1)),D[F].text=U):D[F].text===void 0&&(D[F].text=e),i!==void 0&&(D[F].type=i),n!=null&&n.forEach(function(w){D[F].styles.push(w)}),c!=null&&c.forEach(function(w){D[F].classes.push(w)}),l!==void 0&&(D[F].dir=l),D[F].props===void 0?D[F].props=h:h!==void 0&&Object.assign(D[F].props,h))},Wt=function(e,u,i){const l={start:e,end:u,type:void 0,text:"",labelType:"text"};J1.info("abc78 Got edge...",l);const h=i.text;if(h!==void 0&&(l.text=it(h.text.trim()),l.text[0]==='"'&&l.text[l.text.length-1]==='"'&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=h.type),i!==void 0&&(l.type=i.type,l.stroke=i.stroke,l.length=i.length),(l==null?void 0:l.length)>10&&(l.length=10),H.length<(L1.maxEdges??500))J1.info("abc78 pushing edge..."),H.push(l);else throw new Error(`Edge limit exceeded. ${H.length} edges found, but the limit is ${L1.maxEdges}.
Initialize mermaid with maxEdges set to a higher number to allow more edges.
You cannot set this config via configuration inside the diagram as it is a secure config.
You have to call mermaid.initialize.`)},qt=function(e,u,i){J1.info("addLink (abc78)",e,u,i);let n,c;for(n=0;n<e.length;n++)for(c=0;c<u.length;c++)Wt(e[n],u[c],i)},Qt=function(e,u){e.forEach(function(i){i==="default"?H.defaultInterpolate=u:H[i].interpolate=u})},Zt=function(e,u){e.forEach(function(i){if(i>=H.length)throw new Error(`The index ${i} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${H.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);i==="default"?H.defaultStyle=u:(dt.isSubstringInArray("fill",u)===-1&&u.push("fill:none"),H[i].style=u)})},Jt=function(e,u){e.split(",").forEach(function(i){V1[i]===void 0&&(V1[i]={id:i,styles:[],textStyles:[]}),u!=null&&u.forEach(function(n){if(n.match("color")){const c=n.replace("fill","bgFill").replace("color","fill");V1[i].textStyles.push(c)}V1[i].styles.push(n)})})},$t=function(e){z=e,z.match(/.*</)&&(z="RL"),z.match(/.*\^/)&&(z="BT"),z.match(/.*>/)&&(z="LR"),z.match(/.*v/)&&(z="TB"),z==="TD"&&(z="TB")},rt=function(e,u){e.split(",").forEach(function(i){let n=i;D[n]!==void 0&&D[n].classes.push(u),$1[n]!==void 0&&$1[n].classes.push(u)})},Pe=function(e,u){e.split(",").forEach(function(i){u!==void 0&&(tt[st==="gen-1"?P1(i):i]=it(u))})},Ue=function(e,u,i){let n=P1(e);if(et().securityLevel!=="loose"||u===void 0)return;let c=[];if(typeof i=="string"){c=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l<c.length;l++){let h=c[l].trim();h.charAt(0)==='"'&&h.charAt(h.length-1)==='"'&&(h=h.substr(1,h.length-2)),c[l]=h}}c.length===0&&c.push(e),D[e]!==void 0&&(D[e].haveCallback=!0,ut.push(function(){const l=document.querySelector(`[id="${n}"]`);l!==null&&l.addEventListener("click",function(){dt.runFunc(u,...c)},!1)}))},te=function(e,u,i){e.split(",").forEach(function(n){D[n]!==void 0&&(D[n].link=dt.formatUrl(u,L1),D[n].linkTarget=i)}),rt(e,"clickable")},ee=function(e){if(tt.hasOwnProperty(e))return tt[e]},se=function(e,u,i){e.split(",").forEach(function(n){Ue(n,u,i)}),rt(e,"clickable")},ue=function(e){ut.forEach(function(u){u(e)})},ie=function(){return z.trim()},re=function(){return D},ne=function(){return H},ae=function(){return V1},ce=function(e){let u=w1(".mermaidTooltip");(u._groups||u)[0][0]===null&&(u=w1("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),w1(e).select("svg").selectAll("g.node").on("mouseover",function(){const c=w1(this);if(c.attr("title")===null)return;const h=this.getBoundingClientRect();u.transition().duration(200).style("opacity",".9"),u.text(c.attr("title")).style("left",window.scrollX+h.left+(h.right-h.left)/2+"px").style("top",window.scrollY+h.bottom+"px"),u.html(u.html().replace(/<br\/>/g,"<br/>")),c.classed("hover",!0)}).on("mouseout",function(){u.transition().duration(500).style("opacity",0),w1(this).classed("hover",!1)})};ut.push(ce);const oe=function(e="gen-1"){D={},V1={},H=[],ut=[ce],c1=[],$1={},Z1=0,tt={},At=!0,st=e,L1=et(),Ne()},le=e=>{st=e||"gen-2"},he=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},fe=function(e,u,i){let n=e.text.trim(),c=i.text;e===i&&i.text.match(/\s/)&&(n=void 0);function l(X){const o1={boolean:{},number:{},string:{}},p1=[];let A1;return{nodeList:X.filter(function(k){const l1=typeof k;return k.stmt&&k.stmt==="dir"?(A1=k.value,!1):k.trim()===""?!1:l1 in o1?o1[l1].hasOwnProperty(k)?!1:o1[l1][k]=!0:p1.includes(k)?!1:p1.push(k)}),dir:A1}}let h=[];const{nodeList:U,dir:F}=l(h.concat.apply(h,u));if(h=U,st==="gen-1")for(let X=0;X<h.length;X++)h[X]=P1(h[X]);n=n||"subGraph"+Z1,c=c||"",c=it(c),Z1=Z1+1;const w={id:n,nodes:h,title:c.trim(),classes:[],dir:F,labelType:i.type};return J1.info("Adding",w.id,w.nodes,w.dir),w.nodes=Fe(w,c1).nodes,c1.push(w),$1[n]=w,n},Ge=function(e){for(const[u,i]of c1.entries())if(i.id===e)return u;return-1};let O1=-1;const pe=[],Ae=function(e,u){const i=c1[u].nodes;if(O1=O1+1,O1>2e3)return;if(pe[O1]=u,c1[u].id===e)return{result:!0,count:0};let n=0,c=1;for(;n<i.length;){const l=Ge(i[n]);if(l>=0){const h=Ae(e,l);if(h.result)return{result:!0,count:c+h.count};c=c+h.count}n=n+1}return{result:!1,count:c}},de=function(e){return pe[e]},Ee=function(){O1=-1,c1.length>0&&Ae("none",c1.length-1)},ke=function(){return c1},be=()=>At?(At=!1,!0):!1,Me=e=>{let u=e.trim(),i="arrow_open";switch(u[0]){case"<":i="arrow_point",u=u.slice(1);break;case"x":i="arrow_cross",u=u.slice(1);break;case"o":i="arrow_circle",u=u.slice(1);break}let n="normal";return u.includes("=")&&(n="thick"),u.includes(".")&&(n="dotted"),{type:i,stroke:n}},Ke=(e,u)=>{const i=u.length;let n=0;for(let c=0;c<i;++c)u[c]===e&&++n;return n},Ye=e=>{const u=e.trim();let i=u.slice(0,-1),n="arrow_open";switch(u.slice(-1)){case"x":n="arrow_cross",u[0]==="x"&&(n="double_"+n,i=i.slice(1));break;case">":n="arrow_point",u[0]==="<"&&(n="double_"+n,i=i.slice(1));break;case"o":n="arrow_circle",u[0]==="o"&&(n="double_"+n,i=i.slice(1));break}let c="normal",l=i.length-1;i[0]==="="&&(c="thick"),i[0]==="~"&&(c="invisible");let h=Ke(".",i);return h&&(c="dotted",l=h),{type:n,stroke:c,length:l}},ge=(e,u)=>{const i=Ye(e);let n;if(u){if(n=Me(u),n.stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if(n.type==="arrow_open")n.type=i.type;else{if(n.type!==i.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return n.type==="double_arrow"&&(n.type="double_arrow_point"),n.length=i.length,n}return i},De=(e,u)=>{let i=!1;return e.forEach(n=>{n.nodes.indexOf(u)>=0&&(i=!0)}),i},Fe=(e,u)=>{const i=[];return e.nodes.forEach((n,c)=>{De(u,n)||i.push(e.nodes[c])}),{nodes:i}},Te={firstGraph:be},je={defaultConfig:()=>me.flowchart,setAccTitle:ye,getAccTitle:ve,getAccDescription:Ve,setAccDescription:Le,addVertex:Ht,lookUpDomId:P1,addLink:qt,updateLinkInterpolate:Qt,updateLink:Zt,addClass:Jt,setDirection:$t,setClass:rt,setTooltip:Pe,getTooltip:ee,setClickEvent:se,setLink:te,bindFunctions:ue,getDirection:ie,getVertices:re,getEdges:ne,getClasses:ae,clear:oe,setGen:le,defaultStyle:he,addSubGraph:fe,getDepthFirstPos:de,indexNodes:Ee,getSubGraphs:ke,destructLink:ge,lex:Te,exists:De,makeUniq:Fe,setDiagramTitle:Ie,getDiagramTitle:Re},He=Object.freeze(Object.defineProperty({__proto__:null,addClass:Jt,addLink:qt,addSingleLink:Wt,addSubGraph:fe,addVertex:Ht,bindFunctions:ue,clear:oe,default:je,defaultStyle:he,destructLink:ge,firstGraph:be,getClasses:ae,getDepthFirstPos:de,getDirection:ie,getEdges:ne,getSubGraphs:ke,getTooltip:ee,getVertices:re,indexNodes:Ee,lex:Te,lookUpDomId:P1,setClass:rt,setClickEvent:se,setDirection:$t,setGen:le,setLink:te,updateLink:Zt,updateLinkInterpolate:Qt},Symbol.toStringTag,{value:"Module"}));export{He as d,je as f,Xe as p};
import{c as Z,s as Et,g as mt,b as gt,a as kt,C as Rt,D as Ot,l as V,E as bt,h as rt,v as Nt,i as xt,F as Tt,G as At}from"./slidev/Mermaid-sWhOKcCj.js";import{G as Mt}from"./graph-af3d5df6-B9Rrt_D8.js";import{l as St}from"./layout-6685625a-TirZJcn7.js";import{l as wt}from"./line-65d70945-Bv9b7vLo.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";var at=function(){var t=function(S,a,n,c){for(n=n||{},c=S.length;c--;n[S[c]]=a);return n},e=[6,8,10,20,22,24,26,27,28],r=[1,10],u=[1,11],l=[1,12],f=[1,13],y=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],g=[1,24],R=[1,25],p=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],x=[1,34],I=[27,28,46,47],F=[41,42,43,44,45],W=[17,34],C=[1,54],T=[1,53],M=[17,34,36,38],O={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(a,n,c,d,E,i,K){var s=i.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:i[s-1].push(i[s]),this.$=i[s-1];break;case 4:case 5:this.$=i[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(i[s-4]),d.addEntity(i[s-2]),d.addRelationship(i[s-4],i[s],i[s-2],i[s-3]);break;case 9:d.addEntity(i[s-3]),d.addAttributes(i[s-3],i[s-1]);break;case 10:d.addEntity(i[s-2]);break;case 11:d.addEntity(i[s]);break;case 12:d.addEntity(i[s-6],i[s-4]),d.addAttributes(i[s-6],i[s-1]);break;case 13:d.addEntity(i[s-5],i[s-3]);break;case 14:d.addEntity(i[s-3],i[s-1]);break;case 15:case 16:this.$=i[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=i[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=i[s];break;case 20:case 41:case 42:this.$=i[s].replace(/"/g,"");break;case 21:case 29:this.$=[i[s]];break;case 22:i[s].push(i[s-1]),this.$=i[s];break;case 23:this.$={attributeType:i[s-1],attributeName:i[s]};break;case 24:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeKeyTypeList:i[s]};break;case 25:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeComment:i[s]};break;case 26:this.$={attributeType:i[s-3],attributeName:i[s-2],attributeKeyTypeList:i[s-1],attributeComment:i[s]};break;case 27:case 28:case 31:this.$=i[s];break;case 30:i[s-2].push(i[s]),this.$=i[s-2];break;case 32:this.$=i[s].replace(/"/g,"");break;case 33:this.$={cardA:i[s],relType:i[s-1],cardB:i[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:u,24:l,26:f,27:y,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:l,26:f,27:y,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:g,45:R}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(p,[2,19]),t(p,[2,20]),t(e,[2,4]),{11:29,27:y,28:o},{16:30,17:[1,31],29:32,30:33,34:x},{11:35,27:y,28:o},{40:36,46:[1,37],47:[1,38]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:x},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:g,45:R},t(F,[2,39]),t(F,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(W,[2,23],{32:50,33:51,35:52,37:C,38:T}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(W,[2,24],{33:56,36:[1,57],38:T}),t(W,[2,25]),t(M,[2,29]),t(W,[2,32]),t(M,[2,31]),{16:58,17:[1,59],29:32,30:33,34:x},t(W,[2,26]),{35:60,37:C},{17:[1,61]},t(e,[2,13]),t(M,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(a,n){if(n.recoverable)this.trace(a);else{var c=new Error(a);throw c.hash=n,c}},parse:function(a){var n=this,c=[0],d=[],E=[null],i=[],K=this.table,s="",Q=0,st=0,yt=2,ot=1,pt=i.slice.call(arguments,1),N=Object.create(this.lexer),G={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(G.yy[J]=this.yy[J]);N.setInput(a,G.yy),G.yy.lexer=N,G.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var $=N.yylloc;i.push($);var ft=N.options&&N.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var Y;return Y=d.pop()||N.lex()||ot,typeof Y!="number"&&(Y instanceof Array&&(d=Y,Y=d.pop()),Y=n.symbols_[Y]||Y),Y}for(var w,H,D,tt,z={},j,P,lt,q;;){if(H=c[c.length-1],this.defaultActions[H]?D=this.defaultActions[H]:((w===null||typeof w>"u")&&(w=_t()),D=K[H]&&K[H][w]),typeof D>"u"||!D.length||!D[0]){var et="";q=[];for(j in K[H])this.terminals_[j]&&j>yt&&q.push("'"+this.terminals_[j]+"'");N.showPosition?et="Parse error on line "+(Q+1)+`:
`+N.showPosition()+`
Expecting `+q.join(", ")+", got '"+(this.terminals_[w]||w)+"'":et="Parse error on line "+(Q+1)+": Unexpected "+(w==ot?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(et,{text:N.match,token:this.terminals_[w]||w,line:N.yylineno,loc:$,expected:q})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+w);switch(D[0]){case 1:c.push(w),E.push(N.yytext),i.push(N.yylloc),c.push(D[1]),w=null,st=N.yyleng,s=N.yytext,Q=N.yylineno,$=N.yylloc;break;case 2:if(P=this.productions_[D[1]][1],z.$=E[E.length-P],z._$={first_line:i[i.length-(P||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(P||1)].first_column,last_column:i[i.length-1].last_column},ft&&(z._$.range=[i[i.length-(P||1)].range[0],i[i.length-1].range[1]]),tt=this.performAction.apply(z,[s,st,Q,G.yy,D[1],E,i].concat(pt)),typeof tt<"u")return tt;P&&(c=c.slice(0,-1*P*2),E=E.slice(0,-1*P),i=i.slice(0,-1*P)),c.push(this.productions_[D[1]][0]),E.push(z.$),i.push(z._$),lt=K[c[c.length-2]][c[c.length-1]],c.push(lt);break;case 3:return!0}}return!0}},b=function(){var S={EOF:1,parseError:function(n,c){if(this.yy.parser)this.yy.parser.parseError(n,c);else throw new Error(n)},setInput:function(a,n){return this.yy=n||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var n=a.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var n=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),n=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
`+n+"^"},test_match:function(a,n){var c,d,E;if(this.options.backtrack_lexer&&(E={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(E.yylloc.range=this.yylloc.range.slice(0))),d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var i in E)this[i]=E[i];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,n,c,d;this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),i=0;i<E.length;i++)if(c=this._input.match(this.rules[E[i]]),c&&(!n||c[0].length>n[0].length)){if(n=c,d=i,this.options.backtrack_lexer){if(a=this.test_match(c,E[i]),a!==!1)return a;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(a=this.test_match(n,E[d]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,c,d,E){switch(d){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;case 22:return c.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return c.yytext[0];case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};return S}();O.lexer=b;function v(){this.yy={}}return v.prototype=O,O.Parser=v,new v}();at.parser=at;const It=at;let U={},nt=[];const Dt={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},vt={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},dt=function(t,e=void 0){return U[t]===void 0?(U[t]={attributes:[],alias:e},V.info("Added new entity :",t)):U[t]&&!U[t].alias&&e&&(U[t].alias=e,V.info(`Add alias '${e}' to entity '${t}'`)),U[t]},Lt=()=>U,Bt=function(t,e){let r=dt(t),u;for(u=e.length-1;u>=0;u--)r.attributes.push(e[u]),V.debug("Added attribute ",e[u].attributeName)},Ct=function(t,e,r,u){let l={entityA:t,roleA:e,entityB:r,relSpec:u};nt.push(l),V.debug("Added new relationship :",l)},Pt=()=>nt,Yt=function(){U={},nt=[],bt()},Zt={Cardinality:Dt,Identification:vt,getConfig:()=>Z().er,addEntity:dt,addAttributes:Bt,getEntities:Lt,addRelationship:Ct,getRelationships:Pt,clear:Yt,setAccTitle:Et,getAccTitle:mt,setAccDescription:gt,getAccDescription:kt,setDiagramTitle:Rt,getDiagramTitle:Ot},L={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},Ft=function(t,e){let r;t.append("defs").append("marker").attr("id",L.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",L.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",L.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",L.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",L.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",L.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=t.append("defs").append("marker").attr("id",L.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},B={ERMarkers:L,insertMarkers:Ft},Wt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Ut(t){return typeof t=="string"&&Wt.test(t)}const A=[];for(let t=0;t<256;++t)A.push((t+256).toString(16).slice(1));function Gt(t,e=0){return A[t[e+0]]+A[t[e+1]]+A[t[e+2]]+A[t[e+3]]+"-"+A[t[e+4]]+A[t[e+5]]+"-"+A[t[e+6]]+A[t[e+7]]+"-"+A[t[e+8]]+A[t[e+9]]+"-"+A[t[e+10]]+A[t[e+11]]+A[t[e+12]]+A[t[e+13]]+A[t[e+14]]+A[t[e+15]]}function Ht(t){if(!Ut(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function zt(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}const Kt="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Vt="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Xt(t,e,r){function u(l,f,y,o){var h;if(typeof l=="string"&&(l=zt(l)),typeof f=="string"&&(f=Ht(f)),((h=f)===null||h===void 0?void 0:h.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let _=new Uint8Array(16+l.length);if(_.set(f),_.set(l,f.length),_=r(_),_[6]=_[6]&15|e,_[8]=_[8]&63|128,y){o=o||0;for(let m=0;m<16;++m)y[o+m]=_[m];return y}return Gt(_)}try{u.name=t}catch{}return u.DNS=Kt,u.URL=Vt,u}function Qt(t,e,r,u){switch(t){case 0:return e&r^~e&u;case 1:return e^r^u;case 2:return e&r^e&u^r&u;case 3:return e^r^u}}function it(t,e){return t<<e|t>>>32-e}function jt(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const y=unescape(encodeURIComponent(t));t=[];for(let o=0;o<y.length;++o)t.push(y.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const u=t.length/4+2,l=Math.ceil(u/16),f=new Array(l);for(let y=0;y<l;++y){const o=new Uint32Array(16);for(let h=0;h<16;++h)o[h]=t[y*64+h*4]<<24|t[y*64+h*4+1]<<16|t[y*64+h*4+2]<<8|t[y*64+h*4+3];f[y]=o}f[l-1][14]=(t.length-1)*8/Math.pow(2,32),f[l-1][14]=Math.floor(f[l-1][14]),f[l-1][15]=(t.length-1)*8&4294967295;for(let y=0;y<l;++y){const o=new Uint32Array(80);for(let p=0;p<16;++p)o[p]=f[y][p];for(let p=16;p<80;++p)o[p]=it(o[p-3]^o[p-8]^o[p-14]^o[p-16],1);let h=r[0],_=r[1],m=r[2],g=r[3],R=r[4];for(let p=0;p<80;++p){const x=Math.floor(p/20),I=it(h,5)+Qt(x,_,m,g)+R+e[x]+o[p]>>>0;R=g,g=m,m=it(_,30)>>>0,_=h,h=I}r[0]=r[0]+h>>>0,r[1]=r[1]+_>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+R>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const qt=Xt("v5",80,jt),Jt=qt,$t=/[^\dA-Za-z](\W)*/g;let k={},X=new Map;const te=function(t){const e=Object.keys(t);for(const r of e)k[r]=t[r]},ee=(t,e,r)=>{const u=k.entityPadding/3,l=k.entityPadding/3,f=k.fontSize*.85,y=e.node().getBBox(),o=[];let h=!1,_=!1,m=0,g=0,R=0,p=0,x=y.height+u*2,I=1;r.forEach(T=>{T.attributeKeyTypeList!==void 0&&T.attributeKeyTypeList.length>0&&(h=!0),T.attributeComment!==void 0&&(_=!0)}),r.forEach(T=>{const M=`${e.node().id}-attr-${I}`;let O=0;const b=At(T.attributeType),v=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",f+"px").text(b),S=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",f+"px").text(T.attributeName),a={};a.tn=v,a.nn=S;const n=v.node().getBBox(),c=S.node().getBBox();if(m=Math.max(m,n.width),g=Math.max(g,c.width),O=Math.max(n.height,c.height),h){const d=T.attributeKeyTypeList!==void 0?T.attributeKeyTypeList.join(","):"",E=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",f+"px").text(d);a.kn=E;const i=E.node().getBBox();R=Math.max(R,i.width),O=Math.max(O,i.height)}if(_){const d=t.append("text").classed("er entityLabel",!0).attr("id",`${M}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",Z().fontFamily).style("font-size",f+"px").text(T.attributeComment||"");a.cn=d;const E=d.node().getBBox();p=Math.max(p,E.width),O=Math.max(O,E.height)}a.height=O,o.push(a),x+=O+u*2,I+=1});let F=4;h&&(F+=2),_&&(F+=2);const W=m+g+R+p,C={width:Math.max(k.minEntityWidth,Math.max(y.width+k.entityPadding*2,W+l*F)),height:r.length>0?x:Math.max(k.minEntityHeight,y.height+k.entityPadding*2)};if(r.length>0){const T=Math.max(0,(C.width-W-l*F)/(F/2));e.attr("transform","translate("+C.width/2+","+(u+y.height/2)+")");let M=y.height+u*2,O="attributeBoxOdd";o.forEach(b=>{const v=M+u+b.height/2;b.tn.attr("transform","translate("+l+","+v+")");const S=t.insert("rect","#"+b.tn.node().id).classed(`er ${O}`,!0).attr("x",0).attr("y",M).attr("width",m+l*2+T).attr("height",b.height+u*2),a=parseFloat(S.attr("x"))+parseFloat(S.attr("width"));b.nn.attr("transform","translate("+(a+l)+","+v+")");const n=t.insert("rect","#"+b.nn.node().id).classed(`er ${O}`,!0).attr("x",a).attr("y",M).attr("width",g+l*2+T).attr("height",b.height+u*2);let c=parseFloat(n.attr("x"))+parseFloat(n.attr("width"));if(h){b.kn.attr("transform","translate("+(c+l)+","+v+")");const d=t.insert("rect","#"+b.kn.node().id).classed(`er ${O}`,!0).attr("x",c).attr("y",M).attr("width",R+l*2+T).attr("height",b.height+u*2);c=parseFloat(d.attr("x"))+parseFloat(d.attr("width"))}_&&(b.cn.attr("transform","translate("+(c+l)+","+v+")"),t.insert("rect","#"+b.cn.node().id).classed(`er ${O}`,"true").attr("x",c).attr("y",M).attr("width",p+l*2+T).attr("height",b.height+u*2)),M+=b.height+u*2,O=O==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else C.height=Math.max(k.minEntityHeight,x),e.attr("transform","translate("+C.width/2+","+C.height/2+")");return C},re=function(t,e,r){const u=Object.keys(e);let l;return u.forEach(function(f){const y=le(f,"entity");X.set(f,y);const o=t.append("g").attr("id",y);l=l===void 0?y:l;const h="text-"+y,_=o.append("text").classed("er entityLabel",!0).attr("id",h).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",Z().fontFamily).style("font-size",k.fontSize+"px").text(e[f].alias??f),{width:m,height:g}=ee(o,_,e[f].attributes),p=o.insert("rect","#"+h).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",m).attr("height",g).node().getBBox();r.setNode(y,{width:p.width,height:p.height,shape:"rect",id:y})}),l},ie=function(t,e){e.nodes().forEach(function(r){r!==void 0&&e.node(r)!==void 0&&t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )")})},ut=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},ae=function(t,e){return t.forEach(function(r){e.setEdge(X.get(r.entityA),X.get(r.entityB),{relationship:r},ut(r))}),t};let ct=0;const ne=function(t,e,r,u,l){ct++;const f=r.edge(X.get(e.entityA),X.get(e.entityB),ut(e)),y=wt().x(function(x){return x.x}).y(function(x){return x.y}).curve(Tt),o=t.insert("path","#"+u).classed("er relationshipLine",!0).attr("d",y(f.points)).style("stroke",k.stroke).style("fill","none");e.relSpec.relType===l.db.Identification.NON_IDENTIFYING&&o.attr("stroke-dasharray","8,8");let h="";switch(k.arrowMarkerAbsolute&&(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,h=h.replace(/\(/g,"\\("),h=h.replace(/\)/g,"\\)")),e.relSpec.cardA){case l.db.Cardinality.ZERO_OR_ONE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ZERO_OR_ONE_END+")");break;case l.db.Cardinality.ZERO_OR_MORE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ZERO_OR_MORE_END+")");break;case l.db.Cardinality.ONE_OR_MORE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ONE_OR_MORE_END+")");break;case l.db.Cardinality.ONLY_ONE:o.attr("marker-end","url("+h+"#"+B.ERMarkers.ONLY_ONE_END+")");break;case l.db.Cardinality.MD_PARENT:o.attr("marker-end","url("+h+"#"+B.ERMarkers.MD_PARENT_END+")");break}switch(e.relSpec.cardB){case l.db.Cardinality.ZERO_OR_ONE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ZERO_OR_ONE_START+")");break;case l.db.Cardinality.ZERO_OR_MORE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ZERO_OR_MORE_START+")");break;case l.db.Cardinality.ONE_OR_MORE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ONE_OR_MORE_START+")");break;case l.db.Cardinality.ONLY_ONE:o.attr("marker-start","url("+h+"#"+B.ERMarkers.ONLY_ONE_START+")");break;case l.db.Cardinality.MD_PARENT:o.attr("marker-start","url("+h+"#"+B.ERMarkers.MD_PARENT_START+")");break}const _=o.node().getTotalLength(),m=o.node().getPointAtLength(_*.5),g="rel"+ct,p=t.append("text").classed("er relationshipLabel",!0).attr("id",g).attr("x",m.x).attr("y",m.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",Z().fontFamily).style("font-size",k.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+g).classed("er relationshipLabelBox",!0).attr("x",m.x-p.width/2).attr("y",m.y-p.height/2).attr("width",p.width).attr("height",p.height)},se=function(t,e,r,u){k=Z().er,V.info("Drawing ER diagram");const l=Z().securityLevel;let f;l==="sandbox"&&(f=rt("#i"+e));const o=(l==="sandbox"?rt(f.nodes()[0].contentDocument.body):rt("body")).select(`[id='${e}']`);B.insertMarkers(o,k);let h;h=new Mt({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:k.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const _=re(o,u.db.getEntities(),h),m=ae(u.db.getRelationships(),h);St(h),ie(o,h),m.forEach(function(I){ne(o,I,h,_,u)});const g=k.diagramPadding;Nt.insertTitle(o,"entityTitleText",k.titleTopMargin,u.db.getDiagramTitle());const R=o.node().getBBox(),p=R.width+g*2,x=R.height+g*2;xt(o,x,p,k.useMaxWidth),o.attr("viewBox",`${R.x-g} ${R.y-g} ${p} ${x}`)},oe="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function le(t="",e=""){const r=t.replace($t,"");return`${ht(e)}${ht(r)}${Jt(t,oe)}`}function ht(t=""){return t.length>0?`${t}-`:""}const ce={setConf:te,draw:se},he=t=>`
.entityBox {
fill: ${t.mainBkg};
stroke: ${t.nodeBorder};
}
.attributeBoxOdd {
fill: ${t.attributeBackgroundColorOdd};
stroke: ${t.nodeBorder};
}
.attributeBoxEven {
fill: ${t.attributeBackgroundColorEven};
stroke: ${t.nodeBorder};
}
.relationshipLabelBox {
fill: ${t.tertiaryColor};
opacity: 0.7;
background-color: ${t.tertiaryColor};
rect {
opacity: 0.5;
}
}
.relationshipLine {
stroke: ${t.lineColor};
}
.entityTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${t.textColor};
}
#MD_PARENT_START {
fill: #f5f5f5 !important;
stroke: ${t.lineColor} !important;
stroke-width: 1;
}
#MD_PARENT_END {
fill: #f5f5f5 !important;
stroke: ${t.lineColor} !important;
stroke-width: 1;
}
`,de=he,Oe={parser:It,db:Zt,renderer:ce,styles:de};export{Oe as diagram};
import{o as H,c as b,d as q,aU as Q,h as E,l as g,v as j,F as lt}from"./slidev/Mermaid-sWhOKcCj.js";import{a as st}from"./createText-f6615236-DY9JQ1lr.js";import{l as ct}from"./line-65d70945-Bv9b7vLo.js";const ht=(e,t,a,i)=>{t.forEach(l=>{wt[l](e,a,i)})},ot=(e,t,a)=>{g.trace("Making markers for ",a),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},yt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},pt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ft=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},dt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},xt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},gt=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ut=(e,t,a)=>{e.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},bt=(e,t,a)=>{e.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},wt={extension:ot,composition:yt,aggregation:pt,dependency:ft,lollipop:dt,point:xt,circle:gt,cross:ut,barb:bt},hr=ht;function mt(e,t){t&&e.attr("style",t)}function kt(e){const t=E(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=t.append("xhtml:div"),i=e.label,l=e.isNode?"nodeLabel":"edgeLabel";return a.html('<span class="'+l+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+i+"</span>"),mt(a,e.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const vt=(e,t,a,i)=>{let l=e||"";if(typeof l=="object"&&(l=l[0]),H(b().flowchart.htmlLabels)){l=l.replace(/\\n|\n/g,"<br />"),g.debug("vertexText"+l);const r={isNode:i,label:Q(l).replace(/fa[blrs]?:fa-[\w-]+/g,n=>`<i class='${n.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return kt(r)}else{const r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof l=="string"?s=l.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(l)?s=l:s=[];for(const n of s){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),a?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}return r}},R=vt,M=async(e,t,a,i)=>{let l;const r=t.useHtmlLabels||H(b().flowchart.htmlLabels);a?l=a:l="node default";const s=e.insert("g").attr("class",l).attr("id",t.domId||t.id),n=s.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=n.node();let h;t.labelType==="markdown"?h=st(n,q(Q(c),b()),{useHtmlLabels:r,width:t.width||b().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild(R(q(Q(c),b()),t.labelStyle,!1,i));let y=h.getBBox();const f=t.padding/2;if(H(b().flowchart.htmlLabels)){const p=h.children[0],x=E(h),k=p.getElementsByTagName("img");if(k){const d=c.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...k].map(u=>new Promise(S=>{function B(){if(u.style.display="flex",u.style.flexDirection="column",d){const C=b().fontSize?b().fontSize:window.getComputedStyle(document.body).fontSize,D=parseInt(C,10)*5+"px";u.style.minWidth=D,u.style.maxWidth=D}else u.style.width="100%";S(u)}setTimeout(()=>{u.complete&&B()}),u.addEventListener("error",B),u.addEventListener("load",B)})))}y=p.getBoundingClientRect(),x.attr("width",y.width),x.attr("height",y.height)}return r?n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"):n.attr("transform","translate(0, "+-y.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:s,bbox:y,halfPadding:f,label:n}},m=(e,t)=>{const a=t.node().getBBox();e.width=a.width,e.height=a.height};function I(e,t,a,i){return e.insert("polygon",":first-child").attr("points",i.map(function(l){return l.x+","+l.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+a/2+")")}function Lt(e,t){return e.intersect(t)}function it(e,t,a,i){var l=e.x,r=e.y,s=l-i.x,n=r-i.y,c=Math.sqrt(t*t*n*n+a*a*s*s),o=Math.abs(t*a*s/c);i.x<l&&(o=-o);var h=Math.abs(t*a*n/c);return i.y<r&&(h=-h),{x:l+o,y:r+h}}function St(e,t,a){return it(e,t,t,a)}function Mt(e,t,a,i){var l,r,s,n,c,o,h,y,f,p,x,k,d,u,S;if(l=t.y-e.y,s=e.x-t.x,c=t.x*e.y-e.x*t.y,f=l*a.x+s*a.y+c,p=l*i.x+s*i.y+c,!(f!==0&&p!==0&&J(f,p))&&(r=i.y-a.y,n=a.x-i.x,o=i.x*a.y-a.x*i.y,h=r*e.x+n*e.y+o,y=r*t.x+n*t.y+o,!(h!==0&&y!==0&&J(h,y))&&(x=l*n-r*s,x!==0)))return k=Math.abs(x/2),d=s*o-n*c,u=d<0?(d-k)/x:(d+k)/x,d=r*c-l*o,S=d<0?(d-k)/x:(d+k)/x,{x:u,y:S}}function J(e,t){return e*t>0}function Tt(e,t,a){var i=e.x,l=e.y,r=[],s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(x){s=Math.min(s,x.x),n=Math.min(n,x.y)}):(s=Math.min(s,t.x),n=Math.min(n,t.y));for(var c=i-e.width/2-s,o=l-e.height/2-n,h=0;h<t.length;h++){var y=t[h],f=t[h<t.length-1?h+1:0],p=Mt(e,a,{x:c+y.x,y:o+y.y},{x:c+f.x,y:o+f.y});p&&r.push(p)}return r.length?(r.length>1&&r.sort(function(x,k){var d=x.x-a.x,u=x.y-a.y,S=Math.sqrt(d*d+u*u),B=k.x-a.x,C=k.y-a.y,X=Math.sqrt(B*B+C*C);return S<X?-1:S===X?0:1}),r[0]):e}const Bt=(e,t)=>{var a=e.x,i=e.y,l=t.x-a,r=t.y-i,s=e.width/2,n=e.height/2,c,o;return Math.abs(r)*s>Math.abs(l)*n?(r<0&&(n=-n),c=r===0?0:n*l/r,o=n):(l<0&&(s=-s),c=s,o=l===0?0:s*r/l),{x:a+c,y:i+o}},Et=Bt,w={node:Lt,circle:St,ellipse:it,polygon:Tt,rect:Et},Ct=async(e,t)=>{t.useHtmlLabels||b().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:i,bbox:l,halfPadding:r}=await M(e,t,"node "+t.classes,!0);g.info("Classes = ",t.classes);const s=i.insert("rect",":first-child");return s.attr("rx",t.rx).attr("ry",t.ry).attr("x",-l.width/2-r).attr("y",-l.height/2-r).attr("width",l.width+t.padding).attr("height",l.height+t.padding),m(t,s),t.intersect=function(n){return w.rect(t,n)},i},$t=Ct,_t=e=>{const t=new Set;for(const a of e)switch(a){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(a);break}return t},Rt=(e,t,a)=>{const i=_t(e),l=2,r=t.height+2*a.padding,s=r/l,n=t.width+2*s+a.padding,c=a.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:s,y:0},{x:n/2,y:2*c},{x:n-s,y:0},{x:n,y:0},{x:n,y:-r/3},{x:n+2*c,y:-r/2},{x:n,y:-2*r/3},{x:n,y:-r},{x:n-s,y:-r},{x:n/2,y:-r-2*c},{x:s,y:-r},{x:0,y:-r},{x:0,y:-2*r/3},{x:-2*c,y:-r/2},{x:0,y:-r/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:s,y:-r},{x:n-s,y:-r},{x:n,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:n,y:-s},{x:n,y:-r+s},{x:0,y:-r}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:n,y:0},{x:0,y:-s},{x:0,y:-r+s},{x:n,y:-r}]:i.has("right")&&i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")&&i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:n,y:-s},{x:0,y:-r}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:n,y:0},{x:0,y:-r}]:i.has("left")&&i.has("up")?[{x:n,y:0},{x:0,y:-s},{x:n,y:-r}]:i.has("left")&&i.has("down")?[{x:n,y:0},{x:0,y:0},{x:n,y:-r}]:i.has("right")?[{x:s,y:-c},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r+c}]:i.has("left")?[{x:s,y:0},{x:s,y:-c},{x:n-s,y:-c},{x:n-s,y:-r+c},{x:s,y:-r+c},{x:s,y:-r},{x:0,y:-r/2}]:i.has("up")?[{x:s,y:-c},{x:s,y:-r+c},{x:0,y:-r+c},{x:n/2,y:-r},{x:n,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c}]:i.has("down")?[{x:n/2,y:0},{x:0,y:-c},{x:s,y:-c},{x:s,y:-r+c},{x:n-s,y:-r+c},{x:n-s,y:-c},{x:n,y:-c}]:[{x:0,y:0}]},K=e=>e?" "+e:"",_=(e,t)=>`${t||"node default"}${K(e.classes)} ${K(e.class)}`,P=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=l+r,n=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];g.info("Question main (Circle)");const c=I(a,s,s,n);return c.attr("style",t.style),m(t,c),t.intersect=function(o){return g.warn("Intersect called"),w.polygon(t,n,o)},a},Ht=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=28,l=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}];return a.insert("polygon",":first-child").attr("points",l.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(s){return w.circle(t,14,s)},a},It=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=4,r=i.height+t.padding,s=r/l,n=i.width+2*s+t.padding,c=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-r/2},{x:n-s,y:-r},{x:s,y:-r},{x:0,y:-r/2}],o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Nt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,void 0,!0),l=2,r=i.height+2*t.padding,s=r/l,n=i.width+2*s+t.padding,c=Rt(t.directions,i,t),o=I(a,n,r,c);return o.attr("style",t.style),m(t,o),t.intersect=function(h){return w.polygon(t,c,h)},a},Ot=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-r/2,y:0},{x:l,y:0},{x:l,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}];return I(a,l,r,s).attr("style",t.style),t.width=l+r,t.height=r,t.intersect=function(c){return w.polygon(t,s,c)},a},Wt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Xt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:2*r/6,y:0},{x:l+r/6,y:0},{x:l-2*r/6,y:-r},{x:-r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Yt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:-2*r/6,y:0},{x:l+2*r/6,y:0},{x:l-r/6,y:-r},{x:r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Dt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:r/6,y:0},{x:l-r/6,y:0},{x:l+2*r/6,y:-r},{x:-2*r/6,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},At=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l+r/2,y:0},{x:l,y:-r/2},{x:l+r/2,y:-r},{x:0,y:-r}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},jt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=l/2,s=r/(2.5+l/50),n=i.height+s+t.padding,c="M 0,"+s+" a "+r+","+s+" 0,0,0 "+l+" 0 a "+r+","+s+" 0,0,0 "+-l+" 0 l 0,"+n+" a "+r+","+s+" 0,0,0 "+l+" 0 l 0,"+-n,o=a.attr("label-offset-y",s).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-l/2+","+-(n/2+s)+")");return m(t,o),t.intersect=function(h){const y=w.rect(t,h),f=y.x-t.x;if(r!=0&&(Math.abs(f)<t.width/2||Math.abs(f)==t.width/2&&Math.abs(y.y-t.y)>t.height/2-s)){let p=s*s*(1-f*f/(r*r));p!=0&&(p=Math.sqrt(p)),p=s-p,h.y-t.y>0&&(p=-p),y.y+=p}return y},a},Ut=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes+" "+t.class,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},zt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,"node "+t.classes,!0),r=a.insert("rect",":first-child"),s=t.positioned?t.width:i.width+t.padding,n=t.positioned?t.height:i.height+t.padding,c=t.positioned?-s/2:-i.width/2-l,o=t.positioned?-n/2:-i.height/2-l;if(r.attr("class","basic cluster composite label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",c).attr("y",o).attr("width",s).attr("height",n),t.props){const h=new Set(Object.keys(t.props));t.props.borders&&(V(r,t.props.borders,s,n),h.delete("borders")),h.forEach(y=>{g.warn(`Unknown node property ${y}`)})}return m(t,r),t.intersect=function(h){return w.rect(t,h)},a},Zt=async(e,t)=>{const{shapeSvg:a}=await M(e,t,"label",!0);g.trace("Classes = ",t.class);const i=a.insert("rect",":first-child"),l=0,r=0;if(i.attr("width",l).attr("height",r),a.attr("class","label edgeLabel"),t.props){const s=new Set(Object.keys(t.props));t.props.borders&&(V(i,t.props.borders,l,r),s.delete("borders")),s.forEach(n=>{g.warn(`Unknown node property ${n}`)})}return m(t,i),t.intersect=function(s){return w.rect(t,s)},a};function V(e,t,a,i){const l=[],r=n=>{l.push(n,0)},s=n=>{l.push(0,n)};t.includes("t")?(g.debug("add top border"),r(a)):s(a),t.includes("r")?(g.debug("add right border"),r(i)):s(i),t.includes("b")?(g.debug("add bottom border"),r(a)):s(a),t.includes("l")?(g.debug("add left border"),r(i)):s(i),e.attr("stroke-dasharray",l.join(" "))}const Ft=(e,t)=>{let a;t.classes?a="node "+t.classes:a="node default";const i=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=i.insert("rect",":first-child"),r=i.insert("line"),s=i.insert("g").attr("class","label"),n=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof n=="object"?c=n[0]:c=n,g.info("Label text abc79",c,n,typeof n=="object");const o=s.node().appendChild(R(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(H(b().flowchart.htmlLabels)){const k=o.children[0],d=E(o);h=k.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}g.info("Text 2",n);const y=n.slice(1,n.length);let f=o.getBBox();const p=s.node().appendChild(R(y.join?y.join("<br/>"):y,t.labelStyle,!0,!0));if(H(b().flowchart.htmlLabels)){const k=p.children[0],d=E(p);h=k.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}const x=t.padding/2;return E(p).attr("transform","translate( "+(h.width>f.width?0:(f.width-h.width)/2)+", "+(f.height+x+5)+")"),E(o).attr("transform","translate( "+(h.width<f.width?0:-(f.width-h.width)/2)+", 0)"),h=s.node().getBBox(),s.attr("transform","translate("+-h.width/2+", "+(-h.height/2-x+3)+")"),l.attr("class","outer title-state").attr("x",-h.width/2-x).attr("y",-h.height/2-x).attr("width",h.width+t.padding).attr("height",h.height+t.padding),r.attr("class","divider").attr("x1",-h.width/2-x).attr("x2",h.width/2+x).attr("y1",-h.height/2-x+f.height+x).attr("y2",-h.height/2-x+f.height+x),m(t,l),t.intersect=function(k){return w.rect(t,k)},i},Gt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.height+t.padding,r=i.width+l/4+t.padding,s=a.insert("rect",":first-child").attr("style",t.style).attr("rx",l/2).attr("ry",l/2).attr("x",-r/2).attr("y",-l/2).attr("width",r).attr("height",l);return m(t,s),t.intersect=function(n){return w.rect(t,n)},a},Qt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t,void 0),!0),r=a.insert("circle",":first-child");return r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("Circle main"),m(t,r),t.intersect=function(s){return g.info("Circle intersect",t,i.width/2+l,s),w.circle(t,i.width/2+l,s)},a},Vt=async(e,t)=>{const{shapeSvg:a,bbox:i,halfPadding:l}=await M(e,t,_(t,void 0),!0),r=5,s=a.insert("g",":first-child"),n=s.insert("circle"),c=s.insert("circle");return s.attr("class",t.class),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l+r).attr("width",i.width+t.padding+r*2).attr("height",i.height+t.padding+r*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",i.width/2+l).attr("width",i.width+t.padding).attr("height",i.height+t.padding),g.info("DoubleCircle main"),m(t,n),t.intersect=function(o){return g.info("DoubleCircle intersect",t,i.width/2+l+r,o),w.circle(t,i.width/2+l+r,o)},a},qt=async(e,t)=>{const{shapeSvg:a,bbox:i}=await M(e,t,_(t,void 0),!0),l=i.width+t.padding,r=i.height+t.padding,s=[{x:0,y:0},{x:l,y:0},{x:l,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],n=I(a,l,r,s);return n.attr("style",t.style),m(t,n),t.intersect=function(c){return w.polygon(t,s,c)},a},Jt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),m(t,i),t.intersect=function(l){return w.circle(t,7,l)},a},tt=(e,t,a)=>{const i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l=70,r=10;a==="LR"&&(l=10,r=70);const s=i.append("rect").attr("x",-1*l/2).attr("y",-1*r/2).attr("width",l).attr("height",r).attr("class","fork-join");return m(t,s),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(n){return w.rect(t,n)},i},Kt=(e,t)=>{const a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=a.insert("circle",":first-child"),l=a.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),m(t,l),t.intersect=function(r){return w.circle(t,7,r)},a},Pt=(e,t)=>{const a=t.padding/2,i=4,l=8;let r;t.classes?r="node "+t.classes:r="node default";const s=e.insert("g").attr("class",r).attr("id",t.domId||t.id),n=s.insert("rect",":first-child"),c=s.insert("line"),o=s.insert("line");let h=0,y=i;const f=s.insert("g").attr("class","label");let p=0;const x=t.classData.annotations&&t.classData.annotations[0],k=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",d=f.node().appendChild(R(k,t.labelStyle,!0,!0));let u=d.getBBox();if(H(b().flowchart.htmlLabels)){const v=d.children[0],L=E(d);u=v.getBoundingClientRect(),L.attr("width",u.width),L.attr("height",u.height)}t.classData.annotations[0]&&(y+=u.height+i,h+=u.width);let S=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(b().flowchart.htmlLabels?S+="<"+t.classData.type+">":S+="<"+t.classData.type+">");const B=f.node().appendChild(R(S,t.labelStyle,!0,!0));E(B).attr("class","classTitle");let C=B.getBBox();if(H(b().flowchart.htmlLabels)){const v=B.children[0],L=E(B);C=v.getBoundingClientRect(),L.attr("width",C.width),L.attr("height",C.height)}y+=C.height+i,C.width>h&&(h=C.width);const X=[];t.classData.members.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(/</g,"<").replace(/>/g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const G=N.children[0],A=E(N);$=G.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,X.push(N)}),y+=l;const D=[];if(t.classData.methods.forEach(v=>{const L=v.getDisplayDetails();let W=L.displayText;b().flowchart.htmlLabels&&(W=W.replace(/</g,"<").replace(/>/g,">"));const N=f.node().appendChild(R(W,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let $=N.getBBox();if(H(b().flowchart.htmlLabels)){const G=N.children[0],A=E(N);$=G.getBoundingClientRect(),A.attr("width",$.width),A.attr("height",$.height)}$.width>h&&(h=$.width),y+=$.height+i,D.push(N)}),y+=l,x){let v=(h-u.width)/2;E(d).attr("transform","translate( "+(-1*h/2+v)+", "+-1*y/2+")"),p=u.height+i}let nt=(h-C.width)/2;return E(B).attr("transform","translate( "+(-1*h/2+nt)+", "+(-1*y/2+p)+")"),p+=C.height+i,c.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,X.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p+l/2)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),p+=l,o.attr("class","divider").attr("x1",-h/2-a).attr("x2",h/2+a).attr("y1",-y/2-a+l+p).attr("y2",-y/2-a+l+p),p+=l,D.forEach(v=>{E(v).attr("transform","translate( "+-h/2+", "+(-1*y/2+p)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+i}),n.attr("style",t.style).attr("class","outer title-state").attr("x",-h/2-a).attr("y",-(y/2)-a).attr("width",h+t.padding).attr("height",y+t.padding),m(t,n),t.intersect=function(v){return w.rect(t,v)},s},rt={rhombus:P,composite:zt,question:P,rect:Ut,labelRect:Zt,rectWithTitle:Ft,choice:Ht,circle:Qt,doublecircle:Vt,stadium:Gt,hexagon:It,block_arrow:Nt,rect_left_inv_arrow:Ot,lean_right:Wt,lean_left:Xt,trapezoid:Yt,inv_trapezoid:Dt,rect_right_inv_arrow:At,cylinder:jt,start:Jt,end:Kt,note:$t,subroutine:qt,fork:tt,join:tt,class_box:Pt};let Y={};const or=async(e,t,a)=>{let i,l;if(t.link){let r;b().securityLevel==="sandbox"?r="_top":t.linkTarget&&(r=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",r),l=await rt[t.shape](i,t,a)}else l=await rt[t.shape](e,t,a),i=l;return t.tooltip&&l.attr("title",t.tooltip),t.class&&l.attr("class","node default "+t.class),i.attr("data-node","true"),i.attr("data-id",t.id),Y[t.id]=i,t.haveCallback&&Y[t.id].attr("class",Y[t.id].attr("class")+" clickable"),i},yr=(e,t)=>{Y[t.id]=e},pr=()=>{Y={}},fr=e=>{const t=Y[e.id];g.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const a=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-a)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},tr=({flowchart:e})=>{var t,a;const i=((t=e==null?void 0:e.subGraphTitleMargin)==null?void 0:t.top)??0,l=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,r=i+l;return{subGraphTitleTopMargin:i,subGraphTitleBottomMargin:l,subGraphTitleTotalMargin:r}},O={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function U(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Z(e),t=Z(t);const[a,i]=[e.x,e.y],[l,r]=[t.x,t.y],s=l-a,n=r-i;return{angle:Math.atan(n/s),deltaX:s,deltaY:n}}const Z=e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,rr=e=>({x:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaX:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.cos(r)*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaX:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.cos(r)*(s>=0?1:-1)}return Z(t).x+l},y:function(t,a,i){let l=0;if(a===0&&Object.hasOwn(O,e.arrowTypeStart)){const{angle:r,deltaY:s}=U(i[0],i[1]);l=O[e.arrowTypeStart]*Math.abs(Math.sin(r))*(s>=0?1:-1)}else if(a===i.length-1&&Object.hasOwn(O,e.arrowTypeEnd)){const{angle:r,deltaY:s}=U(i[i.length-1],i[i.length-2]);l=O[e.arrowTypeEnd]*Math.abs(Math.sin(r))*(s>=0?1:-1)}return Z(t).y+l}}),ar=(e,t,a,i,l)=>{t.arrowTypeStart&&at(e,"start",t.arrowTypeStart,a,i,l),t.arrowTypeEnd&&at(e,"end",t.arrowTypeEnd,a,i,l)},er={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},at=(e,t,a,i,l,r)=>{const s=er[a];if(!s){g.warn(`Unknown arrow type: ${a}`);return}const n=t==="start"?"Start":"End";e.attr(`marker-${t}`,`url(${i}#${l}_${r}-${s}${n})`)};let F={},T={};const dr=()=>{F={},T={}},xr=(e,t)=>{const a=H(b().flowchart.htmlLabels),i=t.labelType==="markdown"?st(e,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0}):R(t.label,t.labelStyle),l=e.insert("g").attr("class","edgeLabel"),r=l.insert("g").attr("class","label");r.node().appendChild(i);let s=i.getBBox();if(a){const c=i.children[0],o=E(i);s=c.getBoundingClientRect(),o.attr("width",s.width),o.attr("height",s.height)}r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),F[t.id]=l,t.width=s.width,t.height=s.height;let n;if(t.startLabelLeft){const c=R(t.startLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startLeft=o,z(n,t.startLabelLeft)}if(t.startLabelRight){const c=R(t.startLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=o.node().appendChild(c),h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),T[t.id]||(T[t.id]={}),T[t.id].startRight=o,z(n,t.startLabelRight)}if(t.endLabelLeft){const c=R(t.endLabelLeft,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endLeft=o,z(n,t.endLabelLeft)}if(t.endLabelRight){const c=R(t.endLabelRight,t.labelStyle),o=e.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const y=c.getBBox();h.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),o.node().appendChild(c),T[t.id]||(T[t.id]={}),T[t.id].endRight=o,z(n,t.endLabelRight)}return i};function z(e,t){b().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}const gr=(e,t)=>{g.debug("Moving label abc88 ",e.id,e.label,F[e.id],t);let a=t.updatedPath?t.updatedPath:t.originalPath;const i=b(),{subGraphTitleTotalMargin:l}=tr(i);if(e.label){const r=F[e.id];let s=e.x,n=e.y;if(a){const c=j.calcLabelPosition(a);g.debug("Moving label "+e.label+" from (",s,",",n,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(s=c.x,n=c.y)}r.attr("transform",`translate(${s}, ${n+l/2})`)}if(e.startLabelLeft){const r=T[e.id].startLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.startLabelRight){const r=T[e.id].startRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelLeft){const r=T[e.id].endLeft;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}if(e.endLabelRight){const r=T[e.id].endRight;let s=e.x,n=e.y;if(a){const c=j.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",a);s=c.x,n=c.y}r.attr("transform",`translate(${s}, ${n})`)}},sr=(e,t)=>{const a=e.x,i=e.y,l=Math.abs(t.x-a),r=Math.abs(t.y-i),s=e.width/2,n=e.height/2;return l>=s||r>=n},ir=(e,t,a)=>{g.debug(`intersection calc abc89:
outsidePoint: ${JSON.stringify(t)}
insidePoint : ${JSON.stringify(a)}
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,l=e.y,r=Math.abs(i-a.x),s=e.width/2;let n=a.x<t.x?s-r:s+r;const c=e.height/2,o=Math.abs(t.y-a.y),h=Math.abs(t.x-a.x);if(Math.abs(l-t.y)*s>Math.abs(i-t.x)*c){let y=a.y<t.y?t.y-c-l:l-c-t.y;n=h*y/o;const f={x:a.x<t.x?a.x+n:a.x-h+n,y:a.y<t.y?a.y+o-y:a.y-o+y};return n===0&&(f.x=t.x,f.y=t.y),h===0&&(f.x=t.x),o===0&&(f.y=t.y),g.debug(`abc89 topp/bott calc, Q ${o}, q ${y}, R ${h}, r ${n}`,f),f}else{a.x<t.x?n=t.x-s-i:n=i-s-t.x;let y=o*n/h,f=a.x<t.x?a.x+h-n:a.x-h+n,p=a.y<t.y?a.y+y:a.y-y;return g.debug(`sides calc abc89, Q ${o}, q ${y}, R ${h}, r ${n}`,{_x:f,_y:p}),n===0&&(f=t.x,p=t.y),h===0&&(f=t.x),o===0&&(p=t.y),{x:f,y:p}}},et=(e,t)=>{g.debug("abc88 cutPathAtIntersect",e,t);let a=[],i=e[0],l=!1;return e.forEach(r=>{if(!sr(t,r)&&!l){const s=ir(t,i,r);let n=!1;a.forEach(c=>{n=n||c.x===s.x&&c.y===s.y}),a.some(c=>c.x===s.x&&c.y===s.y)||a.push(s),l=!0}else i=r,l||a.push(r)}),a},ur=function(e,t,a,i,l,r,s){let n=a.points;g.debug("abc88 InsertEdge: edge=",a,"e=",t);let c=!1;const o=r.node(t.v);var h=r.node(t.w);h!=null&&h.intersect&&(o!=null&&o.intersect)&&(n=n.slice(1,a.points.length-1),n.unshift(o.intersect(n[0])),n.push(h.intersect(n[n.length-1]))),a.toCluster&&(g.debug("to cluster abc88",i[a.toCluster]),n=et(a.points,i[a.toCluster].node),c=!0),a.fromCluster&&(g.debug("from cluster abc88",i[a.fromCluster]),n=et(n.reverse(),i[a.fromCluster].node).reverse(),c=!0);const y=n.filter(C=>!Number.isNaN(C.y));let f=lt;a.curve&&(l==="graph"||l==="flowchart")&&(f=a.curve);const{x:p,y:x}=rr(a),k=ct().x(p).y(x).curve(f);let d;switch(a.thickness){case"normal":d="edge-thickness-normal";break;case"thick":d="edge-thickness-thick";break;case"invisible":d="edge-thickness-thick";break;default:d=""}switch(a.pattern){case"solid":d+=" edge-pattern-solid";break;case"dotted":d+=" edge-pattern-dotted";break;case"dashed":d+=" edge-pattern-dashed";break}const u=e.append("path").attr("d",k(y)).attr("id",a.id).attr("class"," "+d+(a.classes?" "+a.classes:"")).attr("style",a.style);let S="";(b().flowchart.arrowMarkerAbsolute||b().state.arrowMarkerAbsolute)&&(S=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,S=S.replace(/\(/g,"\\("),S=S.replace(/\)/g,"\\)")),ar(u,a,S,s,l);let B={};return c&&(B.updatedPath=n),B.originalPath=a.points,B};export{or as a,xr as b,ur as c,gr as d,pr as e,dr as f,tr as g,R as h,hr as i,Et as j,rr as k,M as l,ar as m,fr as p,yr as s,m as u};
import{l as At,aU as zt,aV as It}from"./slidev/Mermaid-sWhOKcCj.js";const Tt={};function Bt(n,r){const t=r||Tt,e=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,u=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return et(n,e,u)}function et(n,r,t){if(Lt(n)){if("value"in n)return n.type==="html"&&!t?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Vn(n.children,r,t)}return Array.isArray(n)?Vn(n,r,t):""}function Vn(n,r,t){const e=[];let u=-1;for(;++u<n.length;)e[u]=et(n[u],r,t);return e.join("")}function Lt(n){return!!(n&&typeof n=="object")}function tn(n,r,t,e){const u=n.length;let i=0,l;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,t=t>0?t:0,e.length<1e4)l=Array.from(e),l.unshift(r,t),n.splice(...l);else for(t&&n.splice(r,t);i<e.length;)l=e.slice(i,i+1e4),l.unshift(r,0),n.splice(...l),i+=1e4,r+=1e4}function Z(n,r){return n.length>0?(tn(n,n.length,0,r),n):r}const Wn={}.hasOwnProperty;function Ot(n){const r={};let t=-1;for(;++t<n.length;)Dt(r,n[t]);return r}function Dt(n,r){let t;for(t in r){const u=(Wn.call(n,t)?n[t]:void 0)||(n[t]={}),i=r[t];let l;if(i)for(l in i){Wn.call(u,l)||(u[l]=[]);const a=i[l];Pt(u[l],Array.isArray(a)?a:a?[a]:[])}}}function Pt(n,r){let t=-1;const e=[];for(;++t<r.length;)(r[t].add==="after"?n:e).push(r[t]);tn(n,0,0,e)}const _t=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,nn=cn(/[A-Za-z]/),X=cn(/[\dA-Za-z]/),Mt=cn(/[#-'*+\--9=?A-Z^-~]/);function An(n){return n!==null&&(n<32||n===127)}const zn=cn(/\d/),jt=cn(/[\dA-Fa-f]/),Rt=cn(/[!-/:-@[-`{-~]/);function C(n){return n!==null&&n<-2}function v(n){return n!==null&&(n<0||n===32)}function z(n){return n===-2||n===-1||n===32}const qt=cn(_t),Ht=cn(/\s/);function cn(n){return r;function r(t){return t!==null&&n.test(String.fromCharCode(t))}}function O(n,r,t,e){const u=e?e-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(f){return z(f)?(n.enter(t),a(f)):r(f)}function a(f){return z(f)&&i++<u?(n.consume(f),a):(n.exit(t),r(f))}}const Nt={tokenize:Vt};function Vt(n){const r=n.attempt(this.parser.constructs.contentInitial,e,u);let t;return r;function e(a){if(a===null){n.consume(a);return}return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),O(n,r,"linePrefix")}function u(a){return n.enter("paragraph"),i(a)}function i(a){const f=n.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=f),t=f,l(a)}function l(a){if(a===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(a);return}return C(a)?(n.consume(a),n.exit("chunkText"),i):(n.consume(a),l)}}const Wt={tokenize:Qt},Qn={tokenize:Ut};function Qt(n){const r=this,t=[];let e=0,u,i,l;return a;function a(F){if(e<t.length){const D=t[e];return r.containerState=D[1],n.attempt(D[0].continuation,f,c)(F)}return c(F)}function f(F){if(e++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,u&&j();const D=r.events.length;let _=D,k;for(;_--;)if(r.events[_][0]==="exit"&&r.events[_][1].type==="chunkFlow"){k=r.events[_][1].end;break}y(e);let T=D;for(;T<r.events.length;)r.events[T][1].end=Object.assign({},k),T++;return tn(r.events,_+1,0,r.events.slice(D)),r.events.length=T,c(F)}return a(F)}function c(F){if(e===t.length){if(!u)return x(F);if(u.currentConstruct&&u.currentConstruct.concrete)return A(F);r.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return r.containerState={},n.check(Qn,p,m)(F)}function p(F){return u&&j(),y(e),x(F)}function m(F){return r.parser.lazy[r.now().line]=e!==t.length,l=r.now().offset,A(F)}function x(F){return r.containerState={},n.attempt(Qn,h,A)(F)}function h(F){return e++,t.push([r.currentConstruct,r.containerState]),x(F)}function A(F){if(F===null){u&&j(),y(0),n.consume(F);return}return u=u||r.parser.flow(r.now()),n.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:u}),I(F)}function I(F){if(F===null){M(n.exit("chunkFlow"),!0),y(0),n.consume(F);return}return C(F)?(n.consume(F),M(n.exit("chunkFlow")),e=0,r.interrupt=void 0,a):(n.consume(F),I)}function M(F,D){const _=r.sliceStream(F);if(D&&_.push(null),F.previous=i,i&&(i.next=F),i=F,u.defineSkip(F.start),u.write(_),r.parser.lazy[F.start.line]){let k=u.events.length;for(;k--;)if(u.events[k][1].start.offset<l&&(!u.events[k][1].end||u.events[k][1].end.offset>l))return;const T=r.events.length;let H=T,N,V;for(;H--;)if(r.events[H][0]==="exit"&&r.events[H][1].type==="chunkFlow"){if(N){V=r.events[H][1].end;break}N=!0}for(y(e),k=T;k<r.events.length;)r.events[k][1].end=Object.assign({},V),k++;tn(r.events,H+1,0,r.events.slice(T)),r.events.length=k}}function y(F){let D=t.length;for(;D-- >F;){const _=t[D];r.containerState=_[1],_[0].exit.call(r,n)}t.length=F}function j(){u.write([null]),i=void 0,u=void 0,r.containerState._closeFlow=void 0}}function Ut(n,r,t){return O(n,n.attempt(this.parser.constructs.document,r,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Un(n){if(n===null||v(n)||Ht(n))return 1;if(qt(n))return 2}function Ln(n,r,t){const e=[];let u=-1;for(;++u<n.length;){const i=n[u].resolveAll;i&&!e.includes(i)&&(r=i(r,t),e.push(i))}return r}const In={name:"attention",tokenize:vt,resolveAll:$t};function $t(n,r){let t=-1,e,u,i,l,a,f,c,p;for(;++t<n.length;)if(n[t][0]==="enter"&&n[t][1].type==="attentionSequence"&&n[t][1]._close){for(e=t;e--;)if(n[e][0]==="exit"&&n[e][1].type==="attentionSequence"&&n[e][1]._open&&r.sliceSerialize(n[e][1]).charCodeAt(0)===r.sliceSerialize(n[t][1]).charCodeAt(0)){if((n[e][1]._close||n[t][1]._open)&&(n[t][1].end.offset-n[t][1].start.offset)%3&&!((n[e][1].end.offset-n[e][1].start.offset+n[t][1].end.offset-n[t][1].start.offset)%3))continue;f=n[e][1].end.offset-n[e][1].start.offset>1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const m=Object.assign({},n[e][1].end),x=Object.assign({},n[t][1].start);$n(m,-f),$n(x,f),l={type:f>1?"strongSequence":"emphasisSequence",start:m,end:Object.assign({},n[e][1].end)},a={type:f>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:x},i={type:f>1?"strongText":"emphasisText",start:Object.assign({},n[e][1].end),end:Object.assign({},n[t][1].start)},u={type:f>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},a.end)},n[e][1].end=Object.assign({},l.start),n[t][1].start=Object.assign({},a.end),c=[],n[e][1].end.offset-n[e][1].start.offset&&(c=Z(c,[["enter",n[e][1],r],["exit",n[e][1],r]])),c=Z(c,[["enter",u,r],["enter",l,r],["exit",l,r],["enter",i,r]]),c=Z(c,Ln(r.parser.constructs.insideSpan.null,n.slice(e+1,t),r)),c=Z(c,[["exit",i,r],["enter",a,r],["exit",a,r],["exit",u,r]]),n[t][1].end.offset-n[t][1].start.offset?(p=2,c=Z(c,[["enter",n[t][1],r],["exit",n[t][1],r]])):p=0,tn(n,e-1,t-e+3,c),t=e+c.length-p-2;break}}for(t=-1;++t<n.length;)n[t][1].type==="attentionSequence"&&(n[t][1].type="data");return n}function vt(n,r){const t=this.parser.constructs.attentionMarkers.null,e=this.previous,u=Un(e);let i;return l;function l(f){return i=f,n.enter("attentionSequence"),a(f)}function a(f){if(f===i)return n.consume(f),a;const c=n.exit("attentionSequence"),p=Un(f),m=!p||p===2&&u||t.includes(f),x=!u||u===2&&p||t.includes(e);return c._open=!!(i===42?m:m&&(u||!x)),c._close=!!(i===42?x:x&&(p||!m)),r(f)}}function $n(n,r){n.column+=r,n.offset+=r,n._bufferIndex+=r}const Zt={name:"autolink",tokenize:Yt};function Yt(n,r,t){let e=0;return u;function u(h){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),i}function i(h){return nn(h)?(n.consume(h),l):c(h)}function l(h){return h===43||h===45||h===46||X(h)?(e=1,a(h)):c(h)}function a(h){return h===58?(n.consume(h),e=0,f):(h===43||h===45||h===46||X(h))&&e++<32?(n.consume(h),a):(e=0,c(h))}function f(h){return h===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):h===null||h===32||h===60||An(h)?t(h):(n.consume(h),f)}function c(h){return h===64?(n.consume(h),p):Mt(h)?(n.consume(h),c):t(h)}function p(h){return X(h)?m(h):t(h)}function m(h){return h===46?(n.consume(h),e=0,p):h===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),r):x(h)}function x(h){if((h===45||X(h))&&e++<63){const A=h===45?x:m;return n.consume(h),A}return t(h)}}const Sn={tokenize:Gt,partial:!0};function Gt(n,r,t){return e;function e(i){return z(i)?O(n,u,"linePrefix")(i):u(i)}function u(i){return i===null||C(i)?r(i):t(i)}}const rt={name:"blockQuote",tokenize:Jt,continuation:{tokenize:Kt},exit:Xt};function Jt(n,r,t){const e=this;return u;function u(l){if(l===62){const a=e.containerState;return a.open||(n.enter("blockQuote",{_container:!0}),a.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(l),n.exit("blockQuoteMarker"),i}return t(l)}function i(l){return z(l)?(n.enter("blockQuotePrefixWhitespace"),n.consume(l),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),r):(n.exit("blockQuotePrefix"),r(l))}}function Kt(n,r,t){const e=this;return u;function u(l){return z(l)?O(n,i,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return n.attempt(rt,r,t)(l)}}function Xt(n){n.exit("blockQuote")}const it={name:"characterEscape",tokenize:ne};function ne(n,r,t){return e;function e(i){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(i),n.exit("escapeMarker"),u}function u(i){return Rt(i)?(n.enter("characterEscapeValue"),n.consume(i),n.exit("characterEscapeValue"),n.exit("characterEscape"),r):t(i)}}const vn=document.createElement("i");function On(n){const r="&"+n+";";vn.innerHTML=r;const t=vn.textContent;return t.charCodeAt(t.length-1)===59&&n!=="semi"||t===r?!1:t}const ut={name:"characterReference",tokenize:te};function te(n,r,t){const e=this;let u=0,i,l;return a;function a(m){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(m),n.exit("characterReferenceMarker"),f}function f(m){return m===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(m),n.exit("characterReferenceMarkerNumeric"),c):(n.enter("characterReferenceValue"),i=31,l=X,p(m))}function c(m){return m===88||m===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(m),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),i=6,l=jt,p):(n.enter("characterReferenceValue"),i=7,l=zn,p(m))}function p(m){if(m===59&&u){const x=n.exit("characterReferenceValue");return l===X&&!On(e.sliceSerialize(x))?t(m):(n.enter("characterReferenceMarker"),n.consume(m),n.exit("characterReferenceMarker"),n.exit("characterReference"),r)}return l(m)&&u++<i?(n.consume(m),p):t(m)}}const Zn={tokenize:re,partial:!0},Yn={name:"codeFenced",tokenize:ee,concrete:!0};function ee(n,r,t){const e=this,u={tokenize:_,partial:!0};let i=0,l=0,a;return f;function f(k){return c(k)}function c(k){const T=e.events[e.events.length-1];return i=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,a=k,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),p(k)}function p(k){return k===a?(l++,n.consume(k),p):l<3?t(k):(n.exit("codeFencedFenceSequence"),z(k)?O(n,m,"whitespace")(k):m(k))}function m(k){return k===null||C(k)?(n.exit("codeFencedFence"),e.interrupt?r(k):n.check(Zn,I,D)(k)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),x(k))}function x(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),m(k)):z(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),O(n,h,"whitespace")(k)):k===96&&k===a?t(k):(n.consume(k),x)}function h(k){return k===null||C(k)?m(k):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),A(k))}function A(k){return k===null||C(k)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),m(k)):k===96&&k===a?t(k):(n.consume(k),A)}function I(k){return n.attempt(u,D,M)(k)}function M(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),y}function y(k){return i>0&&z(k)?O(n,j,"linePrefix",i+1)(k):j(k)}function j(k){return k===null||C(k)?n.check(Zn,I,D)(k):(n.enter("codeFlowValue"),F(k))}function F(k){return k===null||C(k)?(n.exit("codeFlowValue"),j(k)):(n.consume(k),F)}function D(k){return n.exit("codeFenced"),r(k)}function _(k,T,H){let N=0;return V;function V(w){return k.enter("lineEnding"),k.consume(w),k.exit("lineEnding"),d}function d(w){return k.enter("codeFencedFence"),z(w)?O(k,S,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):S(w)}function S(w){return w===a?(k.enter("codeFencedFenceSequence"),P(w)):H(w)}function P(w){return w===a?(N++,k.consume(w),P):N>=l?(k.exit("codeFencedFenceSequence"),z(w)?O(k,R,"whitespace")(w):R(w)):H(w)}function R(w){return w===null||C(w)?(k.exit("codeFencedFence"),T(w)):H(w)}}}function re(n,r,t){const e=this;return u;function u(l){return l===null?t(l):(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}const Cn={name:"codeIndented",tokenize:ue},ie={tokenize:le,partial:!0};function ue(n,r,t){const e=this;return u;function u(c){return n.enter("codeIndented"),O(n,i,"linePrefix",5)(c)}function i(c){const p=e.events[e.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?l(c):t(c)}function l(c){return c===null?f(c):C(c)?n.attempt(ie,l,f)(c):(n.enter("codeFlowValue"),a(c))}function a(c){return c===null||C(c)?(n.exit("codeFlowValue"),l(c)):(n.consume(c),a)}function f(c){return n.exit("codeIndented"),r(c)}}function le(n,r,t){const e=this;return u;function u(l){return e.parser.lazy[e.now().line]?t(l):C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),u):O(n,i,"linePrefix",5)(l)}function i(l){const a=e.events[e.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):C(l)?u(l):t(l)}}const ae={name:"codeText",tokenize:ce,resolve:oe,previous:se};function oe(n){let r=n.length-4,t=3,e,u;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[r][1].type==="lineEnding"||n[r][1].type==="space")){for(e=t;++e<r;)if(n[e][1].type==="codeTextData"){n[t][1].type="codeTextPadding",n[r][1].type="codeTextPadding",t+=2,r-=2;break}}for(e=t-1,r++;++e<=r;)u===void 0?e!==r&&n[e][1].type!=="lineEnding"&&(u=e):(e===r||n[e][1].type==="lineEnding")&&(n[u][1].type="codeTextData",e!==u+2&&(n[u][1].end=n[e-1][1].end,n.splice(u+2,e-u-2),r-=e-u-2,e=u+2),u=void 0);return n}function se(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ce(n,r,t){let e=0,u,i;return l;function l(m){return n.enter("codeText"),n.enter("codeTextSequence"),a(m)}function a(m){return m===96?(n.consume(m),e++,a):(n.exit("codeTextSequence"),f(m))}function f(m){return m===null?t(m):m===32?(n.enter("space"),n.consume(m),n.exit("space"),f):m===96?(i=n.enter("codeTextSequence"),u=0,p(m)):C(m)?(n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),f):(n.enter("codeTextData"),c(m))}function c(m){return m===null||m===32||m===96||C(m)?(n.exit("codeTextData"),f(m)):(n.consume(m),c)}function p(m){return m===96?(n.consume(m),u++,p):u===e?(n.exit("codeTextSequence"),n.exit("codeText"),r(m)):(i.type="codeTextData",c(m))}}function lt(n){const r={};let t=-1,e,u,i,l,a,f,c;for(;++t<n.length;){for(;t in r;)t=r[t];if(e=n[t],t&&e[1].type==="chunkFlow"&&n[t-1][1].type==="listItemPrefix"&&(f=e[1]._tokenizer.events,i=0,i<f.length&&f[i][1].type==="lineEndingBlank"&&(i+=2),i<f.length&&f[i][1].type==="content"))for(;++i<f.length&&f[i][1].type!=="content";)f[i][1].type==="chunkText"&&(f[i][1]._isInFirstContentOfListItem=!0,i++);if(e[0]==="enter")e[1].contentType&&(Object.assign(r,he(n,t)),t=r[t],c=!0);else if(e[1]._container){for(i=t,u=void 0;i--&&(l=n[i],l[1].type==="lineEnding"||l[1].type==="lineEndingBlank");)l[0]==="enter"&&(u&&(n[u][1].type="lineEndingBlank"),l[1].type="lineEnding",u=i);u&&(e[1].end=Object.assign({},n[u][1].start),a=n.slice(u,t),a.unshift(e),tn(n,u,t-u+1,a))}}return!c}function he(n,r){const t=n[r][1],e=n[r][2];let u=r-1;const i=[],l=t._tokenizer||e.parser[t.contentType](t.start),a=l.events,f=[],c={};let p,m,x=-1,h=t,A=0,I=0;const M=[I];for(;h;){for(;n[++u][1]!==h;);i.push(u),h._tokenizer||(p=e.sliceStream(h),h.next||p.push(null),m&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(p),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),m=h,h=h.next}for(h=t;++x<a.length;)a[x][0]==="exit"&&a[x-1][0]==="enter"&&a[x][1].type===a[x-1][1].type&&a[x][1].start.line!==a[x][1].end.line&&(I=x+1,M.push(I),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):M.pop(),x=M.length;x--;){const y=a.slice(M[x],M[x+1]),j=i.pop();f.unshift([j,j+y.length-1]),tn(n,j,2,y)}for(x=-1;++x<f.length;)c[A+f[x][0]]=A+f[x][1],A+=f[x][1]-f[x][0]-1;return c}const pe={tokenize:xe,resolve:fe},me={tokenize:ge,partial:!0};function fe(n){return lt(n),n}function xe(n,r){let t;return e;function e(a){return n.enter("content"),t=n.enter("chunkContent",{contentType:"content"}),u(a)}function u(a){return a===null?i(a):C(a)?n.check(me,l,i)(a):(n.consume(a),u)}function i(a){return n.exit("chunkContent"),n.exit("content"),r(a)}function l(a){return n.consume(a),n.exit("chunkContent"),t.next=n.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,u}}function ge(n,r,t){const e=this;return u;function u(l){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),O(n,i,"linePrefix")}function i(l){if(l===null||C(l))return t(l);const a=e.events[e.events.length-1];return!e.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?r(l):n.interrupt(e.parser.constructs.flow,t,r)(l)}}function at(n,r,t,e,u,i,l,a,f){const c=f||Number.POSITIVE_INFINITY;let p=0;return m;function m(y){return y===60?(n.enter(e),n.enter(u),n.enter(i),n.consume(y),n.exit(i),x):y===null||y===32||y===41||An(y)?t(y):(n.enter(e),n.enter(l),n.enter(a),n.enter("chunkString",{contentType:"string"}),I(y))}function x(y){return y===62?(n.enter(i),n.consume(y),n.exit(i),n.exit(u),n.exit(e),r):(n.enter(a),n.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(n.exit("chunkString"),n.exit(a),x(y)):y===null||y===60||C(y)?t(y):(n.consume(y),y===92?A:h)}function A(y){return y===60||y===62||y===92?(n.consume(y),h):h(y)}function I(y){return!p&&(y===null||y===41||v(y))?(n.exit("chunkString"),n.exit(a),n.exit(l),n.exit(e),r(y)):p<c&&y===40?(n.consume(y),p++,I):y===41?(n.consume(y),p--,I):y===null||y===32||y===40||An(y)?t(y):(n.consume(y),y===92?M:I)}function M(y){return y===40||y===41||y===92?(n.consume(y),I):I(y)}}function ot(n,r,t,e,u,i){const l=this;let a=0,f;return c;function c(h){return n.enter(e),n.enter(u),n.consume(h),n.exit(u),n.enter(i),p}function p(h){return a>999||h===null||h===91||h===93&&!f||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(n.exit(i),n.enter(u),n.consume(h),n.exit(u),n.exit(e),r):C(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),p):(n.enter("chunkString",{contentType:"string"}),m(h))}function m(h){return h===null||h===91||h===93||C(h)||a++>999?(n.exit("chunkString"),p(h)):(n.consume(h),f||(f=!z(h)),h===92?x:m)}function x(h){return h===91||h===92||h===93?(n.consume(h),a++,m):m(h)}}function st(n,r,t,e,u,i){let l;return a;function a(x){return x===34||x===39||x===40?(n.enter(e),n.enter(u),n.consume(x),n.exit(u),l=x===40?41:x,f):t(x)}function f(x){return x===l?(n.enter(u),n.consume(x),n.exit(u),n.exit(e),r):(n.enter(i),c(x))}function c(x){return x===l?(n.exit(i),f(l)):x===null?t(x):C(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),O(n,c,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===l||x===null||C(x)?(n.exit("chunkString"),c(x)):(n.consume(x),x===92?m:p)}function m(x){return x===l||x===92?(n.consume(x),p):p(x)}}function bn(n,r){let t;return e;function e(u){return C(u)?(n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),t=!0,e):z(u)?O(n,e,t?"linePrefix":"lineSuffix")(u):r(u)}}function xn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ke={name:"definition",tokenize:ye},be={tokenize:de,partial:!0};function ye(n,r,t){const e=this;let u;return i;function i(h){return n.enter("definition"),l(h)}function l(h){return ot.call(e,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return u=xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)),h===58?(n.enter("definitionMarker"),n.consume(h),n.exit("definitionMarker"),f):t(h)}function f(h){return v(h)?bn(n,c)(h):c(h)}function c(h){return at(n,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return n.attempt(be,m,m)(h)}function m(h){return z(h)?O(n,x,"whitespace")(h):x(h)}function x(h){return h===null||C(h)?(n.exit("definition"),e.parser.defined.push(u),r(h)):t(h)}}function de(n,r,t){return e;function e(a){return v(a)?bn(n,u)(a):t(a)}function u(a){return st(n,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return z(a)?O(n,l,"whitespace")(a):l(a)}function l(a){return a===null||C(a)?r(a):t(a)}}const Se={name:"hardBreakEscape",tokenize:Fe};function Fe(n,r,t){return e;function e(i){return n.enter("hardBreakEscape"),n.consume(i),u}function u(i){return C(i)?(n.exit("hardBreakEscape"),r(i)):t(i)}}const Ee={name:"headingAtx",tokenize:we,resolve:Ce};function Ce(n,r){let t=n.length-2,e=3,u,i;return n[e][1].type==="whitespace"&&(e+=2),t-2>e&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(e===t-1||t-4>e&&n[t-2][1].type==="whitespace")&&(t-=e+1===t?2:4),t>e&&(u={type:"atxHeadingText",start:n[e][1].start,end:n[t][1].end},i={type:"chunkText",start:n[e][1].start,end:n[t][1].end,contentType:"text"},tn(n,e,t-e+1,[["enter",u,r],["enter",i,r],["exit",i,r],["exit",u,r]])),n}function we(n,r,t){let e=0;return u;function u(p){return n.enter("atxHeading"),i(p)}function i(p){return n.enter("atxHeadingSequence"),l(p)}function l(p){return p===35&&e++<6?(n.consume(p),l):p===null||v(p)?(n.exit("atxHeadingSequence"),a(p)):t(p)}function a(p){return p===35?(n.enter("atxHeadingSequence"),f(p)):p===null||C(p)?(n.exit("atxHeading"),r(p)):z(p)?O(n,a,"whitespace")(p):(n.enter("atxHeadingText"),c(p))}function f(p){return p===35?(n.consume(p),f):(n.exit("atxHeadingSequence"),a(p))}function c(p){return p===null||p===35||v(p)?(n.exit("atxHeadingText"),a(p)):(n.consume(p),c)}}const Ae=["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"],Gn=["pre","script","style","textarea"],ze={name:"htmlFlow",tokenize:Le,resolveTo:Be,concrete:!0},Ie={tokenize:De,partial:!0},Te={tokenize:Oe,partial:!0};function Be(n){let r=n.length;for(;r--&&!(n[r][0]==="enter"&&n[r][1].type==="htmlFlow"););return r>1&&n[r-2][1].type==="linePrefix"&&(n[r][1].start=n[r-2][1].start,n[r+1][1].start=n[r-2][1].start,n.splice(r-2,2)),n}function Le(n,r,t){const e=this;let u,i,l,a,f;return c;function c(s){return p(s)}function p(s){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(s),m}function m(s){return s===33?(n.consume(s),x):s===47?(n.consume(s),i=!0,I):s===63?(n.consume(s),u=3,e.interrupt?r:o):nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function x(s){return s===45?(n.consume(s),u=2,h):s===91?(n.consume(s),u=5,a=0,A):nn(s)?(n.consume(s),u=4,e.interrupt?r:o):t(s)}function h(s){return s===45?(n.consume(s),e.interrupt?r:o):t(s)}function A(s){const J="CDATA[";return s===J.charCodeAt(a++)?(n.consume(s),a===J.length?e.interrupt?r:S:A):t(s)}function I(s){return nn(s)?(n.consume(s),l=String.fromCharCode(s),M):t(s)}function M(s){if(s===null||s===47||s===62||v(s)){const J=s===47,hn=l.toLowerCase();return!J&&!i&&Gn.includes(hn)?(u=1,e.interrupt?r(s):S(s)):Ae.includes(l.toLowerCase())?(u=6,J?(n.consume(s),y):e.interrupt?r(s):S(s)):(u=7,e.interrupt&&!e.parser.lazy[e.now().line]?t(s):i?j(s):F(s))}return s===45||X(s)?(n.consume(s),l+=String.fromCharCode(s),M):t(s)}function y(s){return s===62?(n.consume(s),e.interrupt?r:S):t(s)}function j(s){return z(s)?(n.consume(s),j):V(s)}function F(s){return s===47?(n.consume(s),V):s===58||s===95||nn(s)?(n.consume(s),D):z(s)?(n.consume(s),F):V(s)}function D(s){return s===45||s===46||s===58||s===95||X(s)?(n.consume(s),D):_(s)}function _(s){return s===61?(n.consume(s),k):z(s)?(n.consume(s),_):F(s)}function k(s){return s===null||s===60||s===61||s===62||s===96?t(s):s===34||s===39?(n.consume(s),f=s,T):z(s)?(n.consume(s),k):H(s)}function T(s){return s===f?(n.consume(s),f=null,N):s===null||C(s)?t(s):(n.consume(s),T)}function H(s){return s===null||s===34||s===39||s===47||s===60||s===61||s===62||s===96||v(s)?_(s):(n.consume(s),H)}function N(s){return s===47||s===62||z(s)?F(s):t(s)}function V(s){return s===62?(n.consume(s),d):t(s)}function d(s){return s===null||C(s)?S(s):z(s)?(n.consume(s),d):t(s)}function S(s){return s===45&&u===2?(n.consume(s),U):s===60&&u===1?(n.consume(s),W):s===62&&u===4?(n.consume(s),G):s===63&&u===3?(n.consume(s),o):s===93&&u===5?(n.consume(s),en):C(s)&&(u===6||u===7)?(n.exit("htmlFlowData"),n.check(Ie,rn,P)(s)):s===null||C(s)?(n.exit("htmlFlowData"),P(s)):(n.consume(s),S)}function P(s){return n.check(Te,R,rn)(s)}function R(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),w}function w(s){return s===null||C(s)?P(s):(n.enter("htmlFlowData"),S(s))}function U(s){return s===45?(n.consume(s),o):S(s)}function W(s){return s===47?(n.consume(s),l="",Y):S(s)}function Y(s){if(s===62){const J=l.toLowerCase();return Gn.includes(J)?(n.consume(s),G):S(s)}return nn(s)&&l.length<8?(n.consume(s),l+=String.fromCharCode(s),Y):S(s)}function en(s){return s===93?(n.consume(s),o):S(s)}function o(s){return s===62?(n.consume(s),G):s===45&&u===2?(n.consume(s),o):S(s)}function G(s){return s===null||C(s)?(n.exit("htmlFlowData"),rn(s)):(n.consume(s),G)}function rn(s){return n.exit("htmlFlow"),r(s)}}function Oe(n,r,t){const e=this;return u;function u(l){return C(l)?(n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),i):t(l)}function i(l){return e.parser.lazy[e.now().line]?t(l):r(l)}}function De(n,r,t){return e;function e(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),n.attempt(Sn,r,t)}}const Pe={name:"htmlText",tokenize:_e};function _e(n,r,t){const e=this;let u,i,l;return a;function a(o){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(o),f}function f(o){return o===33?(n.consume(o),c):o===47?(n.consume(o),_):o===63?(n.consume(o),F):nn(o)?(n.consume(o),H):t(o)}function c(o){return o===45?(n.consume(o),p):o===91?(n.consume(o),i=0,A):nn(o)?(n.consume(o),j):t(o)}function p(o){return o===45?(n.consume(o),h):t(o)}function m(o){return o===null?t(o):o===45?(n.consume(o),x):C(o)?(l=m,W(o)):(n.consume(o),m)}function x(o){return o===45?(n.consume(o),h):m(o)}function h(o){return o===62?U(o):o===45?x(o):m(o)}function A(o){const G="CDATA[";return o===G.charCodeAt(i++)?(n.consume(o),i===G.length?I:A):t(o)}function I(o){return o===null?t(o):o===93?(n.consume(o),M):C(o)?(l=I,W(o)):(n.consume(o),I)}function M(o){return o===93?(n.consume(o),y):I(o)}function y(o){return o===62?U(o):o===93?(n.consume(o),y):I(o)}function j(o){return o===null||o===62?U(o):C(o)?(l=j,W(o)):(n.consume(o),j)}function F(o){return o===null?t(o):o===63?(n.consume(o),D):C(o)?(l=F,W(o)):(n.consume(o),F)}function D(o){return o===62?U(o):F(o)}function _(o){return nn(o)?(n.consume(o),k):t(o)}function k(o){return o===45||X(o)?(n.consume(o),k):T(o)}function T(o){return C(o)?(l=T,W(o)):z(o)?(n.consume(o),T):U(o)}function H(o){return o===45||X(o)?(n.consume(o),H):o===47||o===62||v(o)?N(o):t(o)}function N(o){return o===47?(n.consume(o),U):o===58||o===95||nn(o)?(n.consume(o),V):C(o)?(l=N,W(o)):z(o)?(n.consume(o),N):U(o)}function V(o){return o===45||o===46||o===58||o===95||X(o)?(n.consume(o),V):d(o)}function d(o){return o===61?(n.consume(o),S):C(o)?(l=d,W(o)):z(o)?(n.consume(o),d):N(o)}function S(o){return o===null||o===60||o===61||o===62||o===96?t(o):o===34||o===39?(n.consume(o),u=o,P):C(o)?(l=S,W(o)):z(o)?(n.consume(o),S):(n.consume(o),R)}function P(o){return o===u?(n.consume(o),u=void 0,w):o===null?t(o):C(o)?(l=P,W(o)):(n.consume(o),P)}function R(o){return o===null||o===34||o===39||o===60||o===61||o===96?t(o):o===47||o===62||v(o)?N(o):(n.consume(o),R)}function w(o){return o===47||o===62||v(o)?N(o):t(o)}function U(o){return o===62?(n.consume(o),n.exit("htmlTextData"),n.exit("htmlText"),r):t(o)}function W(o){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),Y}function Y(o){return z(o)?O(n,en,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):en(o)}function en(o){return n.enter("htmlTextData"),l(o)}}const Dn={name:"labelEnd",tokenize:Ne,resolveTo:He,resolveAll:qe},Me={tokenize:Ve},je={tokenize:We},Re={tokenize:Qe};function qe(n){let r=-1;for(;++r<n.length;){const t=n[r][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(n.splice(r+1,t.type==="labelImage"?4:2),t.type="data",r++)}return n}function He(n,r){let t=n.length,e=0,u,i,l,a;for(;t--;)if(u=n[t][1],i){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;n[t][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(l){if(n[t][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(i=t,u.type!=="labelLink")){e=2;break}}else u.type==="labelEnd"&&(l=t);const f={type:n[i][1].type==="labelLink"?"link":"image",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)},c={type:"label",start:Object.assign({},n[i][1].start),end:Object.assign({},n[l][1].end)},p={type:"labelText",start:Object.assign({},n[i+e+2][1].end),end:Object.assign({},n[l-2][1].start)};return a=[["enter",f,r],["enter",c,r]],a=Z(a,n.slice(i+1,i+e+3)),a=Z(a,[["enter",p,r]]),a=Z(a,Ln(r.parser.constructs.insideSpan.null,n.slice(i+e+4,l-3),r)),a=Z(a,[["exit",p,r],n[l-2],n[l-1],["exit",c,r]]),a=Z(a,n.slice(l+1)),a=Z(a,[["exit",f,r]]),tn(n,i,n.length,a),n}function Ne(n,r,t){const e=this;let u=e.events.length,i,l;for(;u--;)if((e.events[u][1].type==="labelImage"||e.events[u][1].type==="labelLink")&&!e.events[u][1]._balanced){i=e.events[u][1];break}return a;function a(x){return i?i._inactive?m(x):(l=e.parser.defined.includes(xn(e.sliceSerialize({start:i.end,end:e.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(x),n.exit("labelMarker"),n.exit("labelEnd"),f):t(x)}function f(x){return x===40?n.attempt(Me,p,l?p:m)(x):x===91?n.attempt(je,p,l?c:m)(x):l?p(x):m(x)}function c(x){return n.attempt(Re,p,m)(x)}function p(x){return r(x)}function m(x){return i._balanced=!0,t(x)}}function Ve(n,r,t){return e;function e(m){return n.enter("resource"),n.enter("resourceMarker"),n.consume(m),n.exit("resourceMarker"),u}function u(m){return v(m)?bn(n,i)(m):i(m)}function i(m){return m===41?p(m):at(n,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function l(m){return v(m)?bn(n,f)(m):p(m)}function a(m){return t(m)}function f(m){return m===34||m===39||m===40?st(n,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):p(m)}function c(m){return v(m)?bn(n,p)(m):p(m)}function p(m){return m===41?(n.enter("resourceMarker"),n.consume(m),n.exit("resourceMarker"),n.exit("resource"),r):t(m)}}function We(n,r,t){const e=this;return u;function u(a){return ot.call(e,n,i,l,"reference","referenceMarker","referenceString")(a)}function i(a){return e.parser.defined.includes(xn(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)))?r(a):t(a)}function l(a){return t(a)}}function Qe(n,r,t){return e;function e(i){return n.enter("reference"),n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),u}function u(i){return i===93?(n.enter("referenceMarker"),n.consume(i),n.exit("referenceMarker"),n.exit("reference"),r):t(i)}}const Ue={name:"labelStartImage",tokenize:$e,resolveAll:Dn.resolveAll};function $e(n,r,t){const e=this;return u;function u(a){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(a),n.exit("labelImageMarker"),i}function i(a){return a===91?(n.enter("labelMarker"),n.consume(a),n.exit("labelMarker"),n.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(a):r(a)}}const ve={name:"labelStartLink",tokenize:Ze,resolveAll:Dn.resolveAll};function Ze(n,r,t){const e=this;return u;function u(l){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(l),n.exit("labelMarker"),n.exit("labelLink"),i}function i(l){return l===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(l):r(l)}}const wn={name:"lineEnding",tokenize:Ye};function Ye(n,r){return t;function t(e){return n.enter("lineEnding"),n.consume(e),n.exit("lineEnding"),O(n,r,"linePrefix")}}const yn={name:"thematicBreak",tokenize:Ge};function Ge(n,r,t){let e=0,u;return i;function i(c){return n.enter("thematicBreak"),l(c)}function l(c){return u=c,a(c)}function a(c){return c===u?(n.enter("thematicBreakSequence"),f(c)):e>=3&&(c===null||C(c))?(n.exit("thematicBreak"),r(c)):t(c)}function f(c){return c===u?(n.consume(c),e++,f):(n.exit("thematicBreakSequence"),z(c)?O(n,a,"whitespace")(c):a(c))}}const $={name:"list",tokenize:Xe,continuation:{tokenize:nr},exit:er},Je={tokenize:rr,partial:!0},Ke={tokenize:tr,partial:!0};function Xe(n,r,t){const e=this,u=e.events[e.events.length-1];let i=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,l=0;return a;function a(h){const A=e.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!e.containerState.marker||h===e.containerState.marker:zn(h)){if(e.containerState.type||(e.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),h===42||h===45?n.check(yn,t,c)(h):c(h);if(!e.interrupt||h===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),f(h)}return t(h)}function f(h){return zn(h)&&++l<10?(n.consume(h),f):(!e.interrupt||l<2)&&(e.containerState.marker?h===e.containerState.marker:h===41||h===46)?(n.exit("listItemValue"),c(h)):t(h)}function c(h){return n.enter("listItemMarker"),n.consume(h),n.exit("listItemMarker"),e.containerState.marker=e.containerState.marker||h,n.check(Sn,e.interrupt?t:p,n.attempt(Je,x,m))}function p(h){return e.containerState.initialBlankLine=!0,i++,x(h)}function m(h){return z(h)?(n.enter("listItemPrefixWhitespace"),n.consume(h),n.exit("listItemPrefixWhitespace"),x):t(h)}function x(h){return e.containerState.size=i+e.sliceSerialize(n.exit("listItemPrefix"),!0).length,r(h)}}function nr(n,r,t){const e=this;return e.containerState._closeFlow=void 0,n.check(Sn,u,i);function u(a){return e.containerState.furtherBlankLines=e.containerState.furtherBlankLines||e.containerState.initialBlankLine,O(n,r,"listItemIndent",e.containerState.size+1)(a)}function i(a){return e.containerState.furtherBlankLines||!z(a)?(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,l(a)):(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,n.attempt(Ke,r,l)(a))}function l(a){return e.containerState._closeFlow=!0,e.interrupt=void 0,O(n,n.attempt($,r,t),"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function tr(n,r,t){const e=this;return O(n,u,"listItemIndent",e.containerState.size+1);function u(i){const l=e.events[e.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===e.containerState.size?r(i):t(i)}}function er(n){n.exit(this.containerState.type)}function rr(n,r,t){const e=this;return O(n,u,"listItemPrefixWhitespace",e.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(i){const l=e.events[e.events.length-1];return!z(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):t(i)}}const Jn={name:"setextUnderline",tokenize:ur,resolveTo:ir};function ir(n,r){let t=n.length,e,u,i;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){e=t;break}n[t][1].type==="paragraph"&&(u=t)}else n[t][1].type==="content"&&n.splice(t,1),!i&&n[t][1].type==="definition"&&(i=t);const l={type:"setextHeading",start:Object.assign({},n[u][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[u][1].type="setextHeadingText",i?(n.splice(u,0,["enter",l,r]),n.splice(i+1,0,["exit",n[e][1],r]),n[e][1].end=Object.assign({},n[i][1].end)):n[e][1]=l,n.push(["exit",l,r]),n}function ur(n,r,t){const e=this;let u;return i;function i(c){let p=e.events.length,m;for(;p--;)if(e.events[p][1].type!=="lineEnding"&&e.events[p][1].type!=="linePrefix"&&e.events[p][1].type!=="content"){m=e.events[p][1].type==="paragraph";break}return!e.parser.lazy[e.now().line]&&(e.interrupt||m)?(n.enter("setextHeadingLine"),u=c,l(c)):t(c)}function l(c){return n.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===u?(n.consume(c),a):(n.exit("setextHeadingLineSequence"),z(c)?O(n,f,"lineSuffix")(c):f(c))}function f(c){return c===null||C(c)?(n.exit("setextHeadingLine"),r(c)):t(c)}}const lr={tokenize:ar};function ar(n){const r=this,t=n.attempt(Sn,e,n.attempt(this.parser.constructs.flowInitial,u,O(n,n.attempt(this.parser.constructs.flow,u,n.attempt(pe,u)),"linePrefix")));return t;function e(i){if(i===null){n.consume(i);return}return n.enter("lineEndingBlank"),n.consume(i),n.exit("lineEndingBlank"),r.currentConstruct=void 0,t}function u(i){if(i===null){n.consume(i);return}return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),r.currentConstruct=void 0,t}}const or={resolveAll:ht()},sr=ct("string"),cr=ct("text");function ct(n){return{tokenize:r,resolveAll:ht(n==="text"?hr:void 0)};function r(t){const e=this,u=this.parser.constructs[n],i=t.attempt(u,l,a);return l;function l(p){return c(p)?i(p):a(p)}function a(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),f}function f(p){return c(p)?(t.exit("data"),i(p)):(t.consume(p),f)}function c(p){if(p===null)return!0;const m=u[p];let x=-1;if(m)for(;++x<m.length;){const h=m[x];if(!h.previous||h.previous.call(e,e.previous))return!0}return!1}}}function ht(n){return r;function r(t,e){let u=-1,i;for(;++u<=t.length;)i===void 0?t[u]&&t[u][1].type==="data"&&(i=u,u++):(!t[u]||t[u][1].type!=="data")&&(u!==i+2&&(t[i][1].end=t[u-1][1].end,t.splice(i+2,u-i-2),u=i+2),i=void 0);return n?n(t,e):t}}function hr(n,r){let t=0;for(;++t<=n.length;)if((t===n.length||n[t][1].type==="lineEnding")&&n[t-1][1].type==="data"){const e=n[t-1][1],u=r.sliceStream(e);let i=u.length,l=-1,a=0,f;for(;i--;){const c=u[i];if(typeof c=="string"){for(l=c.length;c.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(c===-2)f=!0,a++;else if(c!==-1){i++;break}}if(a){const c={type:t===n.length||f||a<2?"lineSuffix":"hardBreakTrailing",start:{line:e.end.line,column:e.end.column-a,offset:e.end.offset-a,_index:e.start._index+i,_bufferIndex:i?l:e.start._bufferIndex+l},end:Object.assign({},e.end)};e.end=Object.assign({},c.start),e.start.offset===e.end.offset?Object.assign(e,c):(n.splice(t,0,["enter",c,r],["exit",c,r]),t+=2)}t++}return n}function pr(n,r,t){let e=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const u={},i=[];let l=[],a=[];const f={consume:j,enter:F,exit:D,attempt:T(_),check:T(k),interrupt:T(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:n,sliceStream:h,sliceSerialize:x,now:A,defineSkip:I,write:m};let p=r.tokenize.call(c,f);return r.resolveAll&&i.push(r),c;function m(d){return l=Z(l,d),M(),l[l.length-1]!==null?[]:(H(r,0),c.events=Ln(i,c.events,c),c.events)}function x(d,S){return fr(h(d),S)}function h(d){return mr(l,d)}function A(){const{line:d,column:S,offset:P,_index:R,_bufferIndex:w}=e;return{line:d,column:S,offset:P,_index:R,_bufferIndex:w}}function I(d){u[d.line]=d.column,V()}function M(){let d;for(;e._index<l.length;){const S=l[e._index];if(typeof S=="string")for(d=e._index,e._bufferIndex<0&&(e._bufferIndex=0);e._index===d&&e._bufferIndex<S.length;)y(S.charCodeAt(e._bufferIndex));else y(S)}}function y(d){p=p(d)}function j(d){C(d)?(e.line++,e.column=1,e.offset+=d===-3?2:1,V()):d!==-1&&(e.column++,e.offset++),e._bufferIndex<0?e._index++:(e._bufferIndex++,e._bufferIndex===l[e._index].length&&(e._bufferIndex=-1,e._index++)),c.previous=d}function F(d,S){const P=S||{};return P.type=d,P.start=A(),c.events.push(["enter",P,c]),a.push(P),P}function D(d){const S=a.pop();return S.end=A(),c.events.push(["exit",S,c]),S}function _(d,S){H(d,S.from)}function k(d,S){S.restore()}function T(d,S){return P;function P(R,w,U){let W,Y,en,o;return Array.isArray(R)?rn(R):"tokenize"in R?rn([R]):G(R);function G(Q){return pn;function pn(an){const mn=an!==null&&Q[an],fn=an!==null&&Q.null,Fn=[...Array.isArray(mn)?mn:mn?[mn]:[],...Array.isArray(fn)?fn:fn?[fn]:[]];return rn(Fn)(an)}}function rn(Q){return W=Q,Y=0,Q.length===0?U:s(Q[Y])}function s(Q){return pn;function pn(an){return o=N(),en=Q,Q.partial||(c.currentConstruct=Q),Q.name&&c.parser.constructs.disable.null.includes(Q.name)?hn():Q.tokenize.call(S?Object.assign(Object.create(c),S):c,f,J,hn)(an)}}function J(Q){return d(en,o),w}function hn(Q){return o.restore(),++Y<W.length?s(W[Y]):U}}}function H(d,S){d.resolveAll&&!i.includes(d)&&i.push(d),d.resolve&&tn(c.events,S,c.events.length-S,d.resolve(c.events.slice(S),c)),d.resolveTo&&(c.events=d.resolveTo(c.events,c))}function N(){const d=A(),S=c.previous,P=c.currentConstruct,R=c.events.length,w=Array.from(a);return{restore:U,from:R};function U(){e=d,c.previous=S,c.currentConstruct=P,c.events.length=R,a=w,V()}}function V(){e.line in u&&e.column<2&&(e.column=u[e.line],e.offset+=u[e.line]-1)}}function mr(n,r){const t=r.start._index,e=r.start._bufferIndex,u=r.end._index,i=r.end._bufferIndex;let l;if(t===u)l=[n[t].slice(e,i)];else{if(l=n.slice(t,u),e>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(e):l.shift()}i>0&&l.push(n[u].slice(0,i))}return l}function fr(n,r){let t=-1;const e=[];let u;for(;++t<n.length;){const i=n[t];let l;if(typeof i=="string")l=i;else switch(i){case-5:{l="\r";break}case-4:{l=`
`;break}case-3:{l=`\r
`;break}case-2:{l=r?" ":" ";break}case-1:{if(!r&&u)continue;l=" ";break}default:l=String.fromCharCode(i)}u=i===-2,e.push(l)}return e.join("")}const xr={42:$,43:$,45:$,48:$,49:$,50:$,51:$,52:$,53:$,54:$,55:$,56:$,57:$,62:rt},gr={91:ke},kr={[-2]:Cn,[-1]:Cn,32:Cn},br={35:Ee,42:yn,45:[Jn,yn],60:ze,61:Jn,95:yn,96:Yn,126:Yn},yr={38:ut,92:it},dr={[-5]:wn,[-4]:wn,[-3]:wn,33:Ue,38:ut,42:In,60:[Zt,Pe],91:ve,92:[Se,it],93:Dn,95:In,96:ae},Sr={null:[In,or]},Fr={null:[42,95]},Er={null:[]},Cr=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Fr,contentInitial:gr,disable:Er,document:xr,flow:br,flowInitial:kr,insideSpan:Sr,string:yr,text:dr},Symbol.toStringTag,{value:"Module"}));function wr(n){const t=Ot([Cr,...(n||{}).extensions||[]]),e={defined:[],lazy:{},constructs:t,content:u(Nt),document:u(Wt),flow:u(lr),string:u(sr),text:u(cr)};return e;function u(i){return l;function l(a){return pr(e,i,a)}}}const Kn=/[\0\t\n\r]/g;function Ar(){let n=1,r="",t=!0,e;return u;function u(i,l,a){const f=[];let c,p,m,x,h;for(i=r+i.toString(l),m=0,r="",t&&(i.charCodeAt(0)===65279&&m++,t=void 0);m<i.length;){if(Kn.lastIndex=m,c=Kn.exec(i),x=c&&c.index!==void 0?c.index:i.length,h=i.charCodeAt(x),!c){r=i.slice(m);break}if(h===10&&m===x&&e)f.push(-3),e=void 0;else switch(e&&(f.push(-5),e=void 0),m<x&&(f.push(i.slice(m,x)),n+=x-m),h){case 0:{f.push(65533),n++;break}case 9:{for(p=Math.ceil(n/4)*4,f.push(-2);n++<p;)f.push(-1);break}case 10:{f.push(-4),n=1;break}default:e=!0,n=1}m=x+1}return a&&(e&&f.push(-5),r&&f.push(r),f.push(null)),f}}function zr(n){for(;!lt(n););return n}function pt(n,r){const t=Number.parseInt(n,r);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCharCode(t)}const Ir=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Tr(n){return n.replace(Ir,Br)}function Br(n,r,t){if(r)return r;if(t.charCodeAt(0)===35){const u=t.charCodeAt(1),i=u===120||u===88;return pt(t.slice(i?2:1),i?16:10)}return On(t)||n}function dn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Xn(n.position):"start"in n||"end"in n?Xn(n):"line"in n||"column"in n?Tn(n):""}function Tn(n){return nt(n&&n.line)+":"+nt(n&&n.column)}function Xn(n){return Tn(n&&n.start)+"-"+Tn(n&&n.end)}function nt(n){return n&&typeof n=="number"?n:1}const mt={}.hasOwnProperty,ft=function(n,r,t){return typeof r!="string"&&(t=r,r=void 0),Lr(t)(zr(wr(t).document().write(Ar()(n,r,!0))))};function Lr(n){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Hn),autolinkProtocol:d,autolinkEmail:d,atxHeading:a(jn),blockQuote:a(Fn),characterEscape:d,characterReference:d,codeFenced:a(Mn),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:a(Mn,f),codeText:a(kt,f),codeTextData:d,data:d,codeFlowValue:d,definition:a(bt),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:a(yt),hardBreakEscape:a(Rn),hardBreakTrailing:a(Rn),htmlFlow:a(qn,f),htmlFlowData:d,htmlText:a(qn,f),htmlTextData:d,image:a(dt),label:f,link:a(Hn),listItem:a(St),listItemValue:A,listOrdered:a(Nn,h),listUnordered:a(Nn),paragraph:a(Ft),reference:hn,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:a(jn),strong:a(Et),thematicBreak:a(wt)},exit:{atxHeading:p(),atxHeadingSequence:T,autolink:p(),autolinkEmail:fn,autolinkProtocol:mn,blockQuote:p(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:pn,characterReferenceMarkerNumeric:pn,characterReferenceValue:an,codeFenced:p(j),codeFencedFence:y,codeFencedFenceInfo:I,codeFencedFenceMeta:M,codeFlowValue:S,codeIndented:p(F),codeText:p(W),codeTextData:S,data:S,definition:p(),definitionDestinationString:k,definitionLabelString:D,definitionTitleString:_,emphasis:p(),hardBreakEscape:p(R),hardBreakTrailing:p(R),htmlFlow:p(w),htmlFlowData:S,htmlText:p(U),htmlTextData:S,image:p(en),label:G,labelText:o,lineEnding:P,link:p(Y),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Q,resourceDestinationString:rn,resourceTitleString:s,resource:J,setextHeading:p(V),setextHeadingLineSequence:N,setextHeadingText:H,strong:p(),thematicBreak:p()}};xt(r,(n||{}).mdastExtensions||[]);const t={};return e;function e(g){let b={type:"root",children:[]};const E={stack:[b],tokenStack:[],config:r,enter:c,exit:m,buffer:f,resume:x,setData:i,getData:l},B=[];let L=-1;for(;++L<g.length;)if(g[L][1].type==="listOrdered"||g[L][1].type==="listUnordered")if(g[L][0]==="enter")B.push(L);else{const K=B.pop();L=u(g,K,L)}for(L=-1;++L<g.length;){const K=r[g[L][0]];mt.call(K,g[L][1].type)&&K[g[L][1].type].call(Object.assign({sliceSerialize:g[L][2].sliceSerialize},E),g[L][1])}if(E.tokenStack.length>0){const K=E.tokenStack[E.tokenStack.length-1];(K[1]||tt).call(E,void 0,K[0])}for(b.position={start:sn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:sn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},L=-1;++L<r.transforms.length;)b=r.transforms[L](b)||b;return b}function u(g,b,E){let B=b-1,L=-1,K=!1,on,un,gn,kn;for(;++B<=E;){const q=g[B];if(q[1].type==="listUnordered"||q[1].type==="listOrdered"||q[1].type==="blockQuote"?(q[0]==="enter"?L++:L--,kn=void 0):q[1].type==="lineEndingBlank"?q[0]==="enter"&&(on&&!kn&&!L&&!gn&&(gn=B),kn=void 0):q[1].type==="linePrefix"||q[1].type==="listItemValue"||q[1].type==="listItemMarker"||q[1].type==="listItemPrefix"||q[1].type==="listItemPrefixWhitespace"||(kn=void 0),!L&&q[0]==="enter"&&q[1].type==="listItemPrefix"||L===-1&&q[0]==="exit"&&(q[1].type==="listUnordered"||q[1].type==="listOrdered")){if(on){let En=B;for(un=void 0;En--;){const ln=g[En];if(ln[1].type==="lineEnding"||ln[1].type==="lineEndingBlank"){if(ln[0]==="exit")continue;un&&(g[un][1].type="lineEndingBlank",K=!0),ln[1].type="lineEnding",un=En}else if(!(ln[1].type==="linePrefix"||ln[1].type==="blockQuotePrefix"||ln[1].type==="blockQuotePrefixWhitespace"||ln[1].type==="blockQuoteMarker"||ln[1].type==="listItemIndent"))break}gn&&(!un||gn<un)&&(on._spread=!0),on.end=Object.assign({},un?g[un][1].start:q[1].end),g.splice(un||B,0,["exit",on,q[2]]),B++,E++}q[1].type==="listItemPrefix"&&(on={type:"listItem",_spread:!1,start:Object.assign({},q[1].start),end:void 0},g.splice(B,0,["enter",on,q[2]]),B++,E++,gn=void 0,kn=!0)}}return g[b][1]._spread=K,E}function i(g,b){t[g]=b}function l(g){return t[g]}function a(g,b){return E;function E(B){c.call(this,g(B),B),b&&b.call(this,B)}}function f(){this.stack.push({type:"fragment",children:[]})}function c(g,b,E){return this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([b,E]),g.position={start:sn(b.start)},g}function p(g){return b;function b(E){g&&g.call(this,E),m.call(this,E)}}function m(g,b){const E=this.stack.pop(),B=this.tokenStack.pop();if(B)B[0].type!==g.type&&(b?b.call(this,g,B[0]):(B[1]||tt).call(this,g,B[0]));else throw new Error("Cannot close `"+g.type+"` ("+dn({start:g.start,end:g.end})+"): it’s not open");return E.position.end=sn(g.end),E}function x(){return Bt(this.stack.pop())}function h(){i("expectingFirstListItemValue",!0)}function A(g){if(l("expectingFirstListItemValue")){const b=this.stack[this.stack.length-2];b.start=Number.parseInt(this.sliceSerialize(g),10),i("expectingFirstListItemValue")}}function I(){const g=this.resume(),b=this.stack[this.stack.length-1];b.lang=g}function M(){const g=this.resume(),b=this.stack[this.stack.length-1];b.meta=g}function y(){l("flowCodeInside")||(this.buffer(),i("flowCodeInside",!0))}function j(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")}function F(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g.replace(/(\r?\n|\r)$/g,"")}function D(g){const b=this.resume(),E=this.stack[this.stack.length-1];E.label=b,E.identifier=xn(this.sliceSerialize(g)).toLowerCase()}function _(){const g=this.resume(),b=this.stack[this.stack.length-1];b.title=g}function k(){const g=this.resume(),b=this.stack[this.stack.length-1];b.url=g}function T(g){const b=this.stack[this.stack.length-1];if(!b.depth){const E=this.sliceSerialize(g).length;b.depth=E}}function H(){i("setextHeadingSlurpLineEnding",!0)}function N(g){const b=this.stack[this.stack.length-1];b.depth=this.sliceSerialize(g).charCodeAt(0)===61?1:2}function V(){i("setextHeadingSlurpLineEnding")}function d(g){const b=this.stack[this.stack.length-1];let E=b.children[b.children.length-1];(!E||E.type!=="text")&&(E=Ct(),E.position={start:sn(g.start)},b.children.push(E)),this.stack.push(E)}function S(g){const b=this.stack.pop();b.value+=this.sliceSerialize(g),b.position.end=sn(g.end)}function P(g){const b=this.stack[this.stack.length-1];if(l("atHardBreak")){const E=b.children[b.children.length-1];E.position.end=sn(g.end),i("atHardBreak");return}!l("setextHeadingSlurpLineEnding")&&r.canContainEols.includes(b.type)&&(d.call(this,g),S.call(this,g))}function R(){i("atHardBreak",!0)}function w(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function U(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function W(){const g=this.resume(),b=this.stack[this.stack.length-1];b.value=g}function Y(){const g=this.stack[this.stack.length-1];if(l("inReference")){const b=l("referenceType")||"shortcut";g.type+="Reference",g.referenceType=b,delete g.url,delete g.title}else delete g.identifier,delete g.label;i("referenceType")}function en(){const g=this.stack[this.stack.length-1];if(l("inReference")){const b=l("referenceType")||"shortcut";g.type+="Reference",g.referenceType=b,delete g.url,delete g.title}else delete g.identifier,delete g.label;i("referenceType")}function o(g){const b=this.sliceSerialize(g),E=this.stack[this.stack.length-2];E.label=Tr(b),E.identifier=xn(b).toLowerCase()}function G(){const g=this.stack[this.stack.length-1],b=this.resume(),E=this.stack[this.stack.length-1];if(i("inReference",!0),E.type==="link"){const B=g.children;E.children=B}else E.alt=b}function rn(){const g=this.resume(),b=this.stack[this.stack.length-1];b.url=g}function s(){const g=this.resume(),b=this.stack[this.stack.length-1];b.title=g}function J(){i("inReference")}function hn(){i("referenceType","collapsed")}function Q(g){const b=this.resume(),E=this.stack[this.stack.length-1];E.label=b,E.identifier=xn(this.sliceSerialize(g)).toLowerCase(),i("referenceType","full")}function pn(g){i("characterReferenceType",g.type)}function an(g){const b=this.sliceSerialize(g),E=l("characterReferenceType");let B;E?(B=pt(b,E==="characterReferenceMarkerNumeric"?10:16),i("characterReferenceType")):B=On(b);const L=this.stack.pop();L.value+=B,L.position.end=sn(g.end)}function mn(g){S.call(this,g);const b=this.stack[this.stack.length-1];b.url=this.sliceSerialize(g)}function fn(g){S.call(this,g);const b=this.stack[this.stack.length-1];b.url="mailto:"+this.sliceSerialize(g)}function Fn(){return{type:"blockquote",children:[]}}function Mn(){return{type:"code",lang:null,meta:null,value:""}}function kt(){return{type:"inlineCode",value:""}}function bt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function yt(){return{type:"emphasis",children:[]}}function jn(){return{type:"heading",depth:void 0,children:[]}}function Rn(){return{type:"break"}}function qn(){return{type:"html",value:""}}function dt(){return{type:"image",title:null,url:"",alt:null}}function Hn(){return{type:"link",title:null,url:"",children:[]}}function Nn(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function St(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function Ft(){return{type:"paragraph",children:[]}}function Et(){return{type:"strong",children:[]}}function Ct(){return{type:"text",value:""}}function wt(){return{type:"thematicBreak"}}}function sn(n){return{line:n.line,column:n.column,offset:n.offset}}function xt(n,r){let t=-1;for(;++t<r.length;){const e=r[t];Array.isArray(e)?xt(n,e):Or(n,e)}}function Or(n,r){let t;for(t in r)if(mt.call(r,t)){if(t==="canContainEols"){const e=r[t];e&&n[t].push(...e)}else if(t==="transforms"){const e=r[t];e&&n[t].push(...e)}else if(t==="enter"||t==="exit"){const e=r[t];e&&Object.assign(n[t],e)}}}function tt(n,r){throw n?new Error("Cannot close `"+n.type+"` ("+dn({start:n.start,end:n.end})+"): a different token (`"+r.type+"`, "+dn({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+dn({start:r.start,end:r.end})+") is still open")}function Dr(n){const r=n.replace(/\n{2,}/g,`
`);return It(r)}function Pr(n){const r=Dr(n),{children:t}=ft(r),e=[[]];let u=0;function i(l,a="normal"){l.type==="text"?l.value.split(`
`).forEach((c,p)=>{p!==0&&(u++,e.push([])),c.split(" ").forEach(m=>{m&&e[u].push({content:m,type:a})})}):(l.type==="strong"||l.type==="emphasis")&&l.children.forEach(f=>{i(f,l.type)})}return t.forEach(l=>{l.type==="paragraph"&&l.children.forEach(a=>{i(a)})}),e}function _r(n){const{children:r}=ft(n);function t(e){return e.type==="text"?e.value.replace(/\n/g,"<br/>"):e.type==="strong"?`<strong>${e.children.map(t).join("")}</strong>`:e.type==="emphasis"?`<em>${e.children.map(t).join("")}</em>`:e.type==="paragraph"?`<p>${e.children.map(t).join("")}</p>`:`Unsupported markdown: ${e.type}`}return r.map(t).join("")}function Mr(n){return Intl.Segmenter?[...new Intl.Segmenter().segment(n)].map(r=>r.segment):[...n]}function jr(n,r){const t=Mr(r.content);return gt(n,[],t,r.type)}function gt(n,r,t,e){if(t.length===0)return[{content:r.join(""),type:e},{content:"",type:e}];const[u,...i]=t,l=[...r,u];return n([{content:l.join(""),type:e}])?gt(n,l,i,e):(r.length===0&&u&&(r.push(u),t.shift()),[{content:r.join(""),type:e},{content:t.join(""),type:e}])}function Rr(n,r){if(n.some(({content:t})=>t.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Bn(n,r)}function Bn(n,r,t=[],e=[]){if(n.length===0)return e.length>0&&t.push(e),t.length>0?t:[];let u="";n[0].content===" "&&(u=" ",n.shift());const i=n.shift()??{content:" ",type:"normal"},l=[...e];if(u!==""&&l.push({content:u,type:"normal"}),l.push(i),r(l))return Bn(n,r,t,l);if(e.length>0)t.push(e),n.unshift(i);else if(i.content){const[a,f]=jr(r,i);t.push([a]),f.content&&n.unshift(f)}return Bn(n,r,t)}function qr(n,r){r&&n.attr("style",r)}function Hr(n,r,t,e,u=!1){const i=n.append("foreignObject"),l=i.append("xhtml:div"),a=r.label,f=r.isNode?"nodeLabel":"edgeLabel";l.html(`
<span class="${f} ${e}" `+(r.labelStyle?'style="'+r.labelStyle+'"':"")+">"+a+"</span>"),qr(l,r.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("max-width",t+"px"),l.attr("xmlns","http://www.w3.org/1999/xhtml"),u&&l.attr("class","labelBkg");let c=l.node().getBoundingClientRect();return c.width===t&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",t+"px"),c=l.node().getBoundingClientRect()),i.style("width",c.width),i.style("height",c.height),i.node()}function Pn(n,r,t){return n.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",r*t-.1+"em").attr("dy",t+"em")}function Nr(n,r,t){const e=n.append("text"),u=Pn(e,1,r);_n(u,t);const i=u.node().getComputedTextLength();return e.remove(),i}function Qr(n,r,t){var e;const u=n.append("text"),i=Pn(u,1,r);_n(i,[{content:t,type:"normal"}]);const l=(e=i.node())==null?void 0:e.getBoundingClientRect();return l&&u.remove(),l}function Vr(n,r,t,e=!1){const i=r.append("g"),l=i.insert("rect").attr("class","background"),a=i.append("text").attr("y","-10.1");let f=0;for(const c of t){const p=x=>Nr(i,1.1,x)<=n,m=p(c)?[c]:Rr(c,p);for(const x of m){const h=Pn(a,f,1.1);_n(h,x),f++}}if(e){const c=a.node().getBBox(),p=2;return l.attr("x",-p).attr("y",-p).attr("width",c.width+2*p).attr("height",c.height+2*p),i.node()}else return a.node()}function _n(n,r){n.text(""),r.forEach((t,e)=>{const u=n.append("tspan").attr("font-style",t.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",t.type==="strong"?"bold":"normal");e===0?u.text(t.content):u.text(" "+t.content)})}const Ur=(n,r="",{style:t="",isTitle:e=!1,classes:u="",useHtmlLabels:i=!0,isNode:l=!0,width:a=200,addSvgBackground:f=!1}={})=>{if(At.info("createText",r,t,e,u,i,l,f),i){const c=_r(r),p={isNode:l,label:zt(c).replace(/fa[blrs]?:fa-[\w-]+/g,x=>`<i class='${x.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return Hr(n,p,a,u,f)}else{const c=Pr(r);return Vr(a,n,c,f)}};export{Ur as a,Qr as c};
import{j as r}from"./graph-af3d5df6-B9Rrt_D8.js";var e=4;function a(o){return r(o,e)}export{a as c};
import{p as M,d as _,s as R}from"./styles-d48462a7-C8TUyLNy.js";import{l as d,c,h as w,v as B,t as G,n as D,p as E,q as C,j as A}from"./slidev/Mermaid-sWhOKcCj.js";import{G as q}from"./graph-af3d5df6-B9Rrt_D8.js";import{r as z}from"./index-c8395ba2-BeB0hvAS.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./layout-6685625a-TirZJcn7.js";import"./clone-d2e37f8c-kF1Uud7q.js";import"./edges-1e1ebc73-BF9aEHVZ.js";import"./createText-f6615236-DY9JQ1lr.js";import"./line-65d70945-Bv9b7vLo.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";const S=s=>A.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const P=function(s,e,y,a){const t=Object.keys(s);d.info("keys:",t),d.info(s),t.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};e.setNode(l.id,p),$(l.classes,e,y,a,l.id),d.info("setNode",p)})},$=function(s,e,y,a,t){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==t).forEach(function(o){var r,l;const n=s[o],p=n.cssClasses.join(" "),f=D(n.styles),m=n.label??n.id,u=0,b={labelStyle:f.labelStyle,shape:"class_box",labelText:S(m),classData:n,rx:u,ry:u,class:p,style:f.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,t)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};e.setNode(n.id,b),t&&e.setParent(n.id,t),d.info("setNode",b)})},F=function(s,e,y,a){d.info(s),s.forEach(function(t,i){var o,r;const l=t,n="",p={labelStyle:"",style:""},f=l.text,m=0,h={labelStyle:p.labelStyle,shape:"note",labelText:S(f),noteData:l,rx:m,ry:m,class:n,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(e.setNode(l.id,h),d.info("setNode",h),!l.class||!(l.class in a))return;const b=y+i,x={id:`edgeNote${b}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,C)};e.setEdge(l.id,l.class,x,b)})},H=function(s,e){const y=c().flowchart;let a=0;s.forEach(function(t){var i;a++;const o={classes:"relation",pattern:t.relation.lineType==1?"dashed":"solid",id:`id_${t.id1}_${t.id2}_${a}`,arrowhead:t.type==="arrow_open"?"none":"normal",startLabelRight:t.relationTitle1==="none"?"":t.relationTitle1,endLabelLeft:t.relationTitle2==="none"?"":t.relationTitle2,arrowTypeStart:N(t.relation.type1),arrowTypeEnd:N(t.relation.type2),style:"fill:none",labelStyle:"",curve:E(y==null?void 0:y.curve,C)};if(d.info(o,t),t.style!==void 0){const r=D(t.style);o.style=r.style,o.labelStyle=r.labelStyle}t.text=t.title,t.text===void 0?t.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label='<span class="edgeLabel">'+t.text+"</span>"):(o.labelType="text",o.label=t.text.replace(A.lineBreakRegex,`
`),t.style===void 0&&(o.style=o.style||"stroke: #333; stroke-width: 1.5px;fill:none"),o.labelStyle=o.labelStyle.replace("color:","fill:"))),e.setEdge(t.id1,t.id2,o,a)})},V=function(s){k={...k,...s}},W=async function(s,e,y,a){d.info("Drawing class - ",e);const t=c().flowchart??c().class,i=c().securityLevel;d.info("config:",t);const o=(t==null?void 0:t.nodeSpacing)??50,r=(t==null?void 0:t.rankSpacing)??50,l=new q({multigraph:!0,compound:!0}).setGraph({rankdir:a.db.getDirection(),nodesep:o,ranksep:r,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=a.db.getNamespaces(),p=a.db.getClasses(),f=a.db.getRelations(),m=a.db.getNotes();d.info(f),P(n,l,e,a),$(p,l,e,a),H(f,l),F(m,l,f.length+1,p);let u;i==="sandbox"&&(u=w("#i"+e));const h=i==="sandbox"?w(u.nodes()[0].contentDocument.body):w("body"),b=h.select(`[id="${e}"]`),x=h.select("#"+e+" g");if(await z(x,l,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",e),B.insertTitle(b,"classTitleText",(t==null?void 0:t.titleTopMargin)??5,a.db.getDiagramTitle()),G(l,b,t==null?void 0:t.diagramPadding,t==null?void 0:t.useMaxWidth),!(t!=null&&t.htmlLabels)){const T=i==="sandbox"?u.nodes()[0].contentDocument:document,I=T.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const g of I){const L=g.getBBox(),v=T.createElementNS("http://www.w3.org/2000/svg","rect");v.setAttribute("rx",0),v.setAttribute("ry",0),v.setAttribute("width",L.width),v.setAttribute("height",L.height),g.insertBefore(v,g.firstChild)}}};function N(s){let e;switch(s){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}const J={setConf:V,draw:W},it={parser:M,db:_,renderer:J,styles:R,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,_.clear()}};export{it as diagram};
import{p as G,d as v,s as A}from"./styles-d48462a7-C8TUyLNy.js";import{c as S,l as y,h as B,i as W,F as $,v as M,G as I}from"./slidev/Mermaid-sWhOKcCj.js";import{G as O}from"./graph-af3d5df6-B9Rrt_D8.js";import{l as P}from"./layout-6685625a-TirZJcn7.js";import{l as X}from"./line-65d70945-Bv9b7vLo.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";let H=0;const Y=function(i,a,t,o,p){const g=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(e=>!Number.isNaN(e.y));const s=a.points,c=X().x(function(e){return e.x}).y(function(e){return e.y}).curve($),n=i.append("path").attr("d",c(s)).attr("id","edge"+H).attr("class","relation");let r="";o.arrowMarkerAbsolute&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+r+"#"+g(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+r+"#"+g(t.relation.type2)+"End)");let f,h;const x=a.points.length;let b=M.calcLabelPosition(a.points);f=b.x,h=b.y;let u,m,w,k;if(x%2!==0&&x>1){let e=M.calcCardinalityPosition(t.relation.type1!=="none",a.points,a.points[0]),d=M.calcCardinalityPosition(t.relation.type2!=="none",a.points,a.points[x-1]);y.debug("cardinality_1_point "+JSON.stringify(e)),y.debug("cardinality_2_point "+JSON.stringify(d)),u=e.x,m=e.y,w=d.x,k=d.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),d=e.append("text").attr("class","label").attr("x",f).attr("y",h).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=d;const l=d.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",l.x-o.padding/2).attr("y",l.y-o.padding/2).attr("width",l.width+o.padding).attr("height",l.height+o.padding)}y.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",u).attr("y",m).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",w).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),H++},J=function(i,a,t,o){y.debug("Rendering class ",a,t);const p=a.id,g={id:p,label:a.id,width:0,height:0},s=i.append("g").attr("id",o.db.lookUpDomId(p)).attr("class","classGroup");let c;a.link?c=s.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;a.annotations.forEach(function(d){const l=c.append("tspan").text("«"+d+"»");n||l.attr("dy",t.textHeight),n=!1});let r=C(a);const f=c.append("tspan").text(r).attr("class","title");n||f.attr("dy",t.textHeight);const h=c.node().getBBox().height;let x,b,u;if(a.members.length>0){x=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin/2).attr("y2",t.padding+h+t.dividerMargin/2);const d=s.append("text").attr("x",t.padding).attr("y",h+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.members.forEach(function(l){_(d,l,n,t),n=!1}),b=d.node().getBBox()}if(a.methods.length>0){u=s.append("line").attr("x1",0).attr("y1",t.padding+h+t.dividerMargin+b.height).attr("y2",t.padding+h+t.dividerMargin+b.height);const d=s.append("text").attr("x",t.padding).attr("y",h+2*t.dividerMargin+b.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,a.methods.forEach(function(l){_(d,l,n,t),n=!1})}const m=s.node().getBBox();var w=" ";a.cssClasses.length>0&&(w=w+a.cssClasses.join(" "));const e=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*t.padding).attr("height",m.height+t.padding+.5*t.dividerMargin).attr("class",w).node().getBBox().width;return c.node().childNodes.forEach(function(d){d.setAttribute("x",(e-d.getBBox().width)/2)}),a.tooltip&&c.insert("title").text(a.tooltip),x&&x.attr("x2",e),u&&u.attr("x2",e),g.width=e,g.height=m.height+t.padding+.5*t.dividerMargin,g},C=function(i){let a=i.id;return i.type&&(a+="<"+I(i.type)+">"),a},Z=function(i,a,t,o){y.debug("Rendering note ",a,t);const p=a.id,g={id:p,text:a.text,width:0,height:0},s=i.append("g").attr("id",p).attr("class","classGroup");let c=s.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${a.text}"`).split(`
`);n.forEach(function(x){y.debug(`Adding line: ${x}`),c.append("tspan").text(x).attr("class","title").attr("dy",t.textHeight)});const r=s.node().getBBox(),h=s.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",r.width+2*t.padding).attr("height",r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return c.node().childNodes.forEach(function(x){x.setAttribute("x",(h-x.getBBox().width)/2)}),g.width=h,g.height=r.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,g},_=function(i,a,t,o){const{displayText:p,cssStyle:g}=a.getDisplayDetails(),s=i.append("tspan").attr("x",o.padding).text(p);g!==""&&s.attr("style",a.cssStyle),t||s.attr("dy",o.textHeight)},N={getClassTitleString:C,drawClass:J,drawEdge:Y,drawNote:Z};let T={};const E=20,L=function(i){const a=Object.entries(T).find(t=>t[1].label===i);if(a)return a[0]},R=function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},F=function(i,a,t,o){const p=S().class;T={},y.info("Rendering diagram "+i);const g=S().securityLevel;let s;g==="sandbox"&&(s=B("#i"+a));const c=g==="sandbox"?B(s.nodes()[0].contentDocument.body):B("body"),n=c.select(`[id='${a}']`);R(n);const r=new O({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});const f=o.db.getClasses(),h=Object.keys(f);for(const e of h){const d=f[e],l=N.drawClass(n,d,p,o);T[l.id]=l,r.setNode(l.id,l),y.info("Org height: "+l.height)}o.db.getRelations().forEach(function(e){y.info("tjoho"+L(e.id1)+L(e.id2)+JSON.stringify(e)),r.setEdge(L(e.id1),L(e.id2),{relation:e},e.title||"DEFAULT")}),o.db.getNotes().forEach(function(e){y.debug(`Adding note: ${JSON.stringify(e)}`);const d=N.drawNote(n,e,p,o);T[d.id]=d,r.setNode(d.id,d),e.class&&e.class in f&&r.setEdge(e.id,L(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),P(r),r.nodes().forEach(function(e){e!==void 0&&r.node(e)!==void 0&&(y.debug("Node "+e+": "+JSON.stringify(r.node(e))),c.select("#"+(o.db.lookUpDomId(e)||e)).attr("transform","translate("+(r.node(e).x-r.node(e).width/2)+","+(r.node(e).y-r.node(e).height/2)+" )"))}),r.edges().forEach(function(e){e!==void 0&&r.edge(e)!==void 0&&(y.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(r.edge(e))),N.drawEdge(n,r.edge(e),r.edge(e).relation,p,o))});const u=n.node().getBBox(),m=u.width+E*2,w=u.height+E*2;W(n,w,m,p.useMaxWidth);const k=`${u.x-E} ${u.y-E} ${m} ${w}`;y.debug(`viewBox ${k}`),n.attr("viewBox",k)},U={draw:F},it={parser:G,db:v,renderer:U,styles:A,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,v.clear()}};export{it as diagram};
import{aS as o,aT as r}from"./slidev/Mermaid-sWhOKcCj.js";const s=(a,n)=>o.lang.round(r.parse(a)[n]),e=s;export{e as c};
import{s as we,g as Oe,a as Te,b as Re,c as Dt,d as ue,e as De,f as wt,h as Nt,l as le,i as Se,w as Pe,j as Kt,k as oe,m as Me}from"./slidev/Mermaid-sWhOKcCj.js";import{d as Le,g as Ne}from"./svgDrawCommon-99ae2c94-BzrMl0LX.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";var Yt=function(){var e=function(bt,_,x,m){for(x=x||{},m=bt.length;m--;x[bt[m]]=_);return x},t=[1,24],a=[1,25],o=[1,26],l=[1,27],i=[1,28],s=[1,63],r=[1,64],n=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],E=[1,29],O=[1,30],R=[1,31],S=[1,32],L=[1,33],Y=[1,34],Q=[1,35],H=[1,36],q=[1,37],G=[1,38],K=[1,39],J=[1,40],Z=[1,41],$=[1,42],tt=[1,43],et=[1,44],it=[1,45],nt=[1,46],st=[1,47],at=[1,48],rt=[1,50],lt=[1,51],ot=[1,52],ct=[1,53],ht=[1,54],ut=[1,55],dt=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],At=[14,42],Vt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ot=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],v=[1,82],k=[1,83],A=[1,84],C=[1,85],w=[12,14,42],ne=[12,14,33,42],Pt=[12,14,33,42,76,77,79,80],mt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:function(_,x,m,g,T,u,Tt){var y=u.length-1;switch(T){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(u[y-3]);break;case 19:g.setTitle(u[y].substring(6)),this.$=u[y].substring(6);break;case 20:g.setAccDescription(u[y].substring(15)),this.$=u[y].substring(15);break;case 21:this.$=u[y].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=u[y].trim(),g.setAccDescription(this.$);break;case 28:case 29:u[y].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 30:g.addPersonOrSystemBoundary(...u[y]),this.$=u[y];break;case 31:u[y].splice(2,0,"CONTAINER"),g.addContainerBoundary(...u[y]),this.$=u[y];break;case 32:g.addDeploymentNode("node",...u[y]),this.$=u[y];break;case 33:g.addDeploymentNode("nodeL",...u[y]),this.$=u[y];break;case 34:g.addDeploymentNode("nodeR",...u[y]),this.$=u[y];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...u[y]),this.$=u[y];break;case 40:g.addPersonOrSystem("external_person",...u[y]),this.$=u[y];break;case 41:g.addPersonOrSystem("system",...u[y]),this.$=u[y];break;case 42:g.addPersonOrSystem("system_db",...u[y]),this.$=u[y];break;case 43:g.addPersonOrSystem("system_queue",...u[y]),this.$=u[y];break;case 44:g.addPersonOrSystem("external_system",...u[y]),this.$=u[y];break;case 45:g.addPersonOrSystem("external_system_db",...u[y]),this.$=u[y];break;case 46:g.addPersonOrSystem("external_system_queue",...u[y]),this.$=u[y];break;case 47:g.addContainer("container",...u[y]),this.$=u[y];break;case 48:g.addContainer("container_db",...u[y]),this.$=u[y];break;case 49:g.addContainer("container_queue",...u[y]),this.$=u[y];break;case 50:g.addContainer("external_container",...u[y]),this.$=u[y];break;case 51:g.addContainer("external_container_db",...u[y]),this.$=u[y];break;case 52:g.addContainer("external_container_queue",...u[y]),this.$=u[y];break;case 53:g.addComponent("component",...u[y]),this.$=u[y];break;case 54:g.addComponent("component_db",...u[y]),this.$=u[y];break;case 55:g.addComponent("component_queue",...u[y]),this.$=u[y];break;case 56:g.addComponent("external_component",...u[y]),this.$=u[y];break;case 57:g.addComponent("external_component_db",...u[y]),this.$=u[y];break;case 58:g.addComponent("external_component_queue",...u[y]),this.$=u[y];break;case 60:g.addRel("rel",...u[y]),this.$=u[y];break;case 61:g.addRel("birel",...u[y]),this.$=u[y];break;case 62:g.addRel("rel_u",...u[y]),this.$=u[y];break;case 63:g.addRel("rel_d",...u[y]),this.$=u[y];break;case 64:g.addRel("rel_l",...u[y]),this.$=u[y];break;case 65:g.addRel("rel_r",...u[y]),this.$=u[y];break;case 66:g.addRel("rel_b",...u[y]),this.$=u[y];break;case 67:u[y].splice(0,1),g.addRel("rel",...u[y]),this.$=u[y];break;case 68:g.updateElStyle("update_el_style",...u[y]),this.$=u[y];break;case 69:g.updateRelStyle("update_rel_style",...u[y]),this.$=u[y];break;case 70:g.updateLayoutConfig("update_layout_config",...u[y]),this.$=u[y];break;case 71:this.$=[u[y]];break;case 72:u[y].unshift(u[y-1]),this.$=u[y];break;case 73:case 75:this.$=u[y].trim();break;case 74:let Et={};Et[u[y-1].trim()]=u[y].trim(),this.$=Et;break;case 76:this.$="";break}},table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:a,24:o,26:l,28:i,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(At,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(At,[2,14]),e(Vt,[2,16],{12:[1,76]}),e(At,[2,36],{12:[1,77]}),e(Ot,[2,19]),e(Ot,[2,20]),{25:[1,78]},{27:[1,79]},e(Ot,[2,23]),{35:80,75:81,76:v,77:k,79:A,80:C},{35:86,75:81,76:v,77:k,79:A,80:C},{35:87,75:81,76:v,77:k,79:A,80:C},{35:88,75:81,76:v,77:k,79:A,80:C},{35:89,75:81,76:v,77:k,79:A,80:C},{35:90,75:81,76:v,77:k,79:A,80:C},{35:91,75:81,76:v,77:k,79:A,80:C},{35:92,75:81,76:v,77:k,79:A,80:C},{35:93,75:81,76:v,77:k,79:A,80:C},{35:94,75:81,76:v,77:k,79:A,80:C},{35:95,75:81,76:v,77:k,79:A,80:C},{35:96,75:81,76:v,77:k,79:A,80:C},{35:97,75:81,76:v,77:k,79:A,80:C},{35:98,75:81,76:v,77:k,79:A,80:C},{35:99,75:81,76:v,77:k,79:A,80:C},{35:100,75:81,76:v,77:k,79:A,80:C},{35:101,75:81,76:v,77:k,79:A,80:C},{35:102,75:81,76:v,77:k,79:A,80:C},{35:103,75:81,76:v,77:k,79:A,80:C},{35:104,75:81,76:v,77:k,79:A,80:C},e(w,[2,59]),{35:105,75:81,76:v,77:k,79:A,80:C},{35:106,75:81,76:v,77:k,79:A,80:C},{35:107,75:81,76:v,77:k,79:A,80:C},{35:108,75:81,76:v,77:k,79:A,80:C},{35:109,75:81,76:v,77:k,79:A,80:C},{35:110,75:81,76:v,77:k,79:A,80:C},{35:111,75:81,76:v,77:k,79:A,80:C},{35:112,75:81,76:v,77:k,79:A,80:C},{35:113,75:81,76:v,77:k,79:A,80:C},{35:114,75:81,76:v,77:k,79:A,80:C},{35:115,75:81,76:v,77:k,79:A,80:C},{20:116,29:49,30:61,32:62,34:s,36:r,37:n,38:h,39:f,40:d,41:p,43:23,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:k,79:A,80:C},{35:120,75:81,76:v,77:k,79:A,80:C},{35:121,75:81,76:v,77:k,79:A,80:C},{35:122,75:81,76:v,77:k,79:A,80:C},{35:123,75:81,76:v,77:k,79:A,80:C},{35:124,75:81,76:v,77:k,79:A,80:C},{35:125,75:81,76:v,77:k,79:A,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(At,[2,15]),e(Vt,[2,17],{21:22,19:130,22:t,23:a,24:o,26:l,28:i}),e(At,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:a,24:o,26:l,28:i,34:s,36:r,37:n,38:h,39:f,40:d,41:p,44:E,45:O,46:R,47:S,48:L,49:Y,50:Q,51:H,52:q,53:G,54:K,55:J,56:Z,57:$,58:tt,59:et,60:it,61:nt,62:st,63:at,64:rt,65:lt,66:ot,67:ct,68:ht,69:ut,70:dt,71:ft,72:pt,73:yt,74:gt}),e(Ot,[2,21]),e(Ot,[2,22]),e(w,[2,39]),e(ne,[2,71],{75:81,35:132,76:v,77:k,79:A,80:C}),e(Pt,[2,73]),{78:[1,133]},e(Pt,[2,75]),e(Pt,[2,76]),e(w,[2,40]),e(w,[2,41]),e(w,[2,42]),e(w,[2,43]),e(w,[2,44]),e(w,[2,45]),e(w,[2,46]),e(w,[2,47]),e(w,[2,48]),e(w,[2,49]),e(w,[2,50]),e(w,[2,51]),e(w,[2,52]),e(w,[2,53]),e(w,[2,54]),e(w,[2,55]),e(w,[2,56]),e(w,[2,57]),e(w,[2,58]),e(w,[2,60]),e(w,[2,61]),e(w,[2,62]),e(w,[2,63]),e(w,[2,64]),e(w,[2,65]),e(w,[2,66]),e(w,[2,67]),e(w,[2,68]),e(w,[2,69]),e(w,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(mt,[2,28]),e(mt,[2,29]),e(mt,[2,30]),e(mt,[2,31]),e(mt,[2,32]),e(mt,[2,33]),e(mt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Vt,[2,18]),e(At,[2,38]),e(ne,[2,72]),e(Pt,[2,74]),e(w,[2,24]),e(w,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:function(_,x){if(x.recoverable)this.trace(_);else{var m=new Error(_);throw m.hash=x,m}},parse:function(_){var x=this,m=[0],g=[],T=[null],u=[],Tt=this.table,y="",Et=0,se=0,ve=2,ae=1,ke=u.slice.call(arguments,1),D=Object.create(this.lexer),vt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(vt.yy[Qt]=this.yy[Qt]);D.setInput(_,vt.yy),vt.yy.lexer=D,vt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;u.push(Ht);var Ae=D.options&&D.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ce(){var X;return X=g.pop()||D.lex()||ae,typeof X!="number"&&(X instanceof Array&&(g=X,X=g.pop()),X=x.symbols_[X]||X),X}for(var M,kt,N,qt,Ct={},Mt,z,re,Lt;;){if(kt=m[m.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((M===null||typeof M>"u")&&(M=Ce()),N=Tt[kt]&&Tt[kt][M]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in Tt[kt])this.terminals_[Mt]&&Mt>ve&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`:
`+D.showPosition()+`
Expecting `+Lt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Gt="Parse error on line "+(Et+1)+": Unexpected "+(M==ae?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Gt,{text:D.match,token:this.terminals_[M]||M,line:D.yylineno,loc:Ht,expected:Lt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+M);switch(N[0]){case 1:m.push(M),T.push(D.yytext),u.push(D.yylloc),m.push(N[1]),M=null,se=D.yyleng,y=D.yytext,Et=D.yylineno,Ht=D.yylloc;break;case 2:if(z=this.productions_[N[1]][1],Ct.$=T[T.length-z],Ct._$={first_line:u[u.length-(z||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(z||1)].first_column,last_column:u[u.length-1].last_column},Ae&&(Ct._$.range=[u[u.length-(z||1)].range[0],u[u.length-1].range[1]]),qt=this.performAction.apply(Ct,[y,se,Et,vt.yy,N[1],T,u].concat(ke)),typeof qt<"u")return qt;z&&(m=m.slice(0,-1*z*2),T=T.slice(0,-1*z),u=u.slice(0,-1*z)),m.push(this.productions_[N[1]][0]),T.push(Ct.$),u.push(Ct._$),re=Tt[m[m.length-2]][m[m.length-1]],m.push(re);break;case 3:return!0}}return!0}},Ee=function(){var bt={EOF:1,parseError:function(x,m){if(this.yy.parser)this.yy.parser.parseError(x,m);else throw new Error(x)},setInput:function(_,x){return this.yy=x||this.yy||{},this._input=_,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var x=_.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},unput:function(_){var x=_.length,m=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===g.length?this.yylloc.first_column:0)+g[g.length-m.length].length-m[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(_){this.unput(this.match.slice(_))},pastInput:function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _=this.pastInput(),x=new Array(_.length+1).join("-");return _+this.upcomingInput()+`
`+x+"^"},test_match:function(_,x){var m,g,T;if(this.options.backtrack_lexer&&(T={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(T.yylloc.range=this.yylloc.range.slice(0))),g=_[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_[0].length),this.matched+=_[0],m=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var u in T)this[u]=T[u];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,x,m,g;this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),u=0;u<T.length;u++)if(m=this._input.match(this.rules[T[u]]),m&&(!x||m[0].length>x[0].length)){if(x=m,g=u,this.options.backtrack_lexer){if(_=this.test_match(m,T[u]),_!==!1)return _;if(this._backtrack){x=!1;continue}else return!1}else if(!this.options.flex)break}return x?(_=this.test_match(x,T[g]),_!==!1?_:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var x=this.next();return x||this.lex()},begin:function(x){this.conditionStack.push(x)},popState:function(){var x=this.conditionStack.length-1;return x>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(x){return x=this.conditionStack.length-1-Math.abs(x||0),x>=0?this.conditionStack[x]:"INITIAL"},pushState:function(x){this.begin(x)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(x,m,g,T){switch(g){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return bt}();Xt.lexer=Ee;function Wt(){this.yy={}}return Wt.prototype=Xt,Xt.Parser=Wt,new Wt}();Yt.parser=Yt;const Be=Yt;let U=[],_t=[""],P="global",j="",V=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],St=[],te="",ee=!1,It=4,jt=2;var de;const Ye=function(){return de},Ie=function(e){de=ue(e,Dt())},je=function(e,t,a,o,l,i,s,r,n){if(e==null||t===void 0||t===null||a===void 0||a===null||o===void 0||o===null)return;let h={};const f=St.find(d=>d.from===t&&d.to===a);if(f?h=f:St.push(h),h.type=e,h.from=t,h.to=a,h.label={text:o},l==null)h.techn={text:""};else if(typeof l=="object"){let[d,p]=Object.entries(l)[0];h[d]={text:p}}else h.techn={text:l};if(i==null)h.descr={text:""};else if(typeof i=="object"){let[d,p]=Object.entries(i)[0];h[d]={text:p}}else h.descr={text:i};if(typeof s=="object"){let[d,p]=Object.entries(s)[0];h[d]=p}else h.sprite=s;if(typeof r=="object"){let[d,p]=Object.entries(r)[0];h[d]=p}else h.tags=r;if(typeof n=="object"){let[d,p]=Object.entries(n)[0];h[d]=p}else h.link=n;h.wrap=xt()},Ue=function(e,t,a,o,l,i,s){if(t===null||a===null)return;let r={};const n=U.find(h=>h.alias===t);if(n&&t===n.alias?r=n:(r.alias=t,U.push(r)),a==null?r.label={text:""}:r.label={text:a},o==null)r.descr={text:""};else if(typeof o=="object"){let[h,f]=Object.entries(o)[0];r[h]={text:f}}else r.descr={text:o};if(typeof l=="object"){let[h,f]=Object.entries(l)[0];r[h]=f}else r.sprite=l;if(typeof i=="object"){let[h,f]=Object.entries(i)[0];r[h]=f}else r.tags=i;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];r[h]=f}else r.link=s;r.typeC4Shape={text:e},r.parentBoundary=P,r.wrap=xt()},Fe=function(e,t,a,o,l,i,s,r){if(t===null||a===null)return;let n={};const h=U.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,U.push(n)),a==null?n.label={text:""}:n.label={text:a},o==null)n.techn={text:""};else if(typeof o=="object"){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.techn={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if(typeof i=="object"){let[f,d]=Object.entries(i)[0];n[f]=d}else n.sprite=i;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if(typeof r=="object"){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.wrap=xt(),n.typeC4Shape={text:e},n.parentBoundary=P},Ve=function(e,t,a,o,l,i,s,r){if(t===null||a===null)return;let n={};const h=U.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,U.push(n)),a==null?n.label={text:""}:n.label={text:a},o==null)n.techn={text:""};else if(typeof o=="object"){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.techn={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if(typeof i=="object"){let[f,d]=Object.entries(i)[0];n[f]=d}else n.sprite=i;if(typeof s=="object"){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if(typeof r=="object"){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.wrap=xt(),n.typeC4Shape={text:e},n.parentBoundary=P},ze=function(e,t,a,o,l){if(e===null||t===null)return;let i={};const s=V.find(r=>r.alias===e);if(s&&e===s.alias?i=s:(i.alias=e,V.push(i)),t==null?i.label={text:""}:i.label={text:t},a==null)i.type={text:"system"};else if(typeof a=="object"){let[r,n]=Object.entries(a)[0];i[r]={text:n}}else i.type={text:a};if(typeof o=="object"){let[r,n]=Object.entries(o)[0];i[r]=n}else i.tags=o;if(typeof l=="object"){let[r,n]=Object.entries(l)[0];i[r]=n}else i.link=l;i.parentBoundary=P,i.wrap=xt(),j=P,P=e,_t.push(j)},Xe=function(e,t,a,o,l){if(e===null||t===null)return;let i={};const s=V.find(r=>r.alias===e);if(s&&e===s.alias?i=s:(i.alias=e,V.push(i)),t==null?i.label={text:""}:i.label={text:t},a==null)i.type={text:"container"};else if(typeof a=="object"){let[r,n]=Object.entries(a)[0];i[r]={text:n}}else i.type={text:a};if(typeof o=="object"){let[r,n]=Object.entries(o)[0];i[r]=n}else i.tags=o;if(typeof l=="object"){let[r,n]=Object.entries(l)[0];i[r]=n}else i.link=l;i.parentBoundary=P,i.wrap=xt(),j=P,P=e,_t.push(j)},We=function(e,t,a,o,l,i,s,r){if(t===null||a===null)return;let n={};const h=V.find(f=>f.alias===t);if(h&&t===h.alias?n=h:(n.alias=t,V.push(n)),a==null?n.label={text:""}:n.label={text:a},o==null)n.type={text:"node"};else if(typeof o=="object"){let[f,d]=Object.entries(o)[0];n[f]={text:d}}else n.type={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[f,d]=Object.entries(l)[0];n[f]={text:d}}else n.descr={text:l};if(typeof s=="object"){let[f,d]=Object.entries(s)[0];n[f]=d}else n.tags=s;if(typeof r=="object"){let[f,d]=Object.entries(r)[0];n[f]=d}else n.link=r;n.nodeType=e,n.parentBoundary=P,n.wrap=xt(),j=P,P=t,_t.push(j)},Qe=function(){P=j,_t.pop(),j=_t.pop(),_t.push(j)},He=function(e,t,a,o,l,i,s,r,n,h,f){let d=U.find(p=>p.alias===t);if(!(d===void 0&&(d=V.find(p=>p.alias===t),d===void 0))){if(a!=null)if(typeof a=="object"){let[p,E]=Object.entries(a)[0];d[p]=E}else d.bgColor=a;if(o!=null)if(typeof o=="object"){let[p,E]=Object.entries(o)[0];d[p]=E}else d.fontColor=o;if(l!=null)if(typeof l=="object"){let[p,E]=Object.entries(l)[0];d[p]=E}else d.borderColor=l;if(i!=null)if(typeof i=="object"){let[p,E]=Object.entries(i)[0];d[p]=E}else d.shadowing=i;if(s!=null)if(typeof s=="object"){let[p,E]=Object.entries(s)[0];d[p]=E}else d.shape=s;if(r!=null)if(typeof r=="object"){let[p,E]=Object.entries(r)[0];d[p]=E}else d.sprite=r;if(n!=null)if(typeof n=="object"){let[p,E]=Object.entries(n)[0];d[p]=E}else d.techn=n;if(h!=null)if(typeof h=="object"){let[p,E]=Object.entries(h)[0];d[p]=E}else d.legendText=h;if(f!=null)if(typeof f=="object"){let[p,E]=Object.entries(f)[0];d[p]=E}else d.legendSprite=f}},qe=function(e,t,a,o,l,i,s){const r=St.find(n=>n.from===t&&n.to===a);if(r!==void 0){if(o!=null)if(typeof o=="object"){let[n,h]=Object.entries(o)[0];r[n]=h}else r.textColor=o;if(l!=null)if(typeof l=="object"){let[n,h]=Object.entries(l)[0];r[n]=h}else r.lineColor=l;if(i!=null)if(typeof i=="object"){let[n,h]=Object.entries(i)[0];r[n]=parseInt(h)}else r.offsetX=parseInt(i);if(s!=null)if(typeof s=="object"){let[n,h]=Object.entries(s)[0];r[n]=parseInt(h)}else r.offsetY=parseInt(s)}},Ge=function(e,t,a){let o=It,l=jt;if(typeof t=="object"){const i=Object.values(t)[0];o=parseInt(i)}else o=parseInt(t);if(typeof a=="object"){const i=Object.values(a)[0];l=parseInt(i)}else l=parseInt(a);o>=1&&(It=o),l>=1&&(jt=l)},Ke=function(){return It},Je=function(){return jt},Ze=function(){return P},$e=function(){return j},fe=function(e){return e==null?U:U.filter(t=>t.parentBoundary===e)},t0=function(e){return U.find(t=>t.alias===e)},e0=function(e){return Object.keys(fe(e))},pe=function(e){return e==null?V:V.filter(t=>t.parentBoundary===e)},i0=pe,n0=function(){return St},s0=function(){return te},a0=function(e){ee=e},xt=function(){return ee},r0=function(){U=[],V=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],j="",P="global",_t=[""],St=[],_t=[""],te="",ee=!1,It=4,jt=2},l0={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},o0={FILLED:0,OPEN:1},c0={LEFTOF:0,RIGHTOF:1,OVER:2},h0=function(e){te=ue(e,Dt())},Jt={addPersonOrSystem:Ue,addPersonOrSystemBoundary:ze,addContainer:Fe,addContainerBoundary:Xe,addComponent:Ve,addDeploymentNode:We,popBoundaryParseStack:Qe,addRel:je,updateElStyle:He,updateRelStyle:qe,updateLayoutConfig:Ge,autoWrap:xt,setWrap:a0,getC4ShapeArray:fe,getC4Shape:t0,getC4ShapeKeys:e0,getBoundaries:pe,getBoundarys:i0,getCurrentBoundaryParse:Ze,getParentBoundaryParse:$e,getRels:n0,getTitle:s0,getC4Type:Ye,getC4ShapeInRow:Ke,getC4BoundaryInRow:Je,setAccTitle:we,getAccTitle:Oe,getAccDescription:Te,setAccDescription:Re,getConfig:()=>Dt().c4,clear:r0,LINETYPE:l0,ARROWTYPE:o0,PLACEMENT:c0,setTitle:h0,setC4Type:Ie},ie=function(e,t){return Le(e,t)},ye=function(e,t,a,o,l,i){const s=e.append("image");s.attr("width",t),s.attr("height",a),s.attr("x",o),s.attr("y",l);let r=i.startsWith("data:image/png;base64")?i:Me.sanitizeUrl(i);s.attr("xlink:href",r)},u0=(e,t,a)=>{const o=e.append("g");let l=0;for(let i of t){let s=i.textColor?i.textColor:"#444444",r=i.lineColor?i.lineColor:"#444444",n=i.offsetX?parseInt(i.offsetX):0,h=i.offsetY?parseInt(i.offsetY):0,f="";if(l===0){let p=o.append("line");p.attr("x1",i.startPoint.x),p.attr("y1",i.startPoint.y),p.attr("x2",i.endPoint.x),p.attr("y2",i.endPoint.y),p.attr("stroke-width","1"),p.attr("stroke",r),p.style("fill","none"),i.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(i.type==="birel"||i.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)"),l=-1}else{let p=o.append("path");p.attr("fill","none").attr("stroke-width","1").attr("stroke",r).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",i.startPoint.x).replaceAll("starty",i.startPoint.y).replaceAll("controlx",i.startPoint.x+(i.endPoint.x-i.startPoint.x)/2-(i.endPoint.x-i.startPoint.x)/4).replaceAll("controly",i.startPoint.y+(i.endPoint.y-i.startPoint.y)/2).replaceAll("stopx",i.endPoint.x).replaceAll("stopy",i.endPoint.y)),i.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(i.type==="birel"||i.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)")}let d=a.messageFont();W(a)(i.label.text,o,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+n,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+h,i.label.width,i.label.height,{fill:s},d),i.techn&&i.techn.text!==""&&(d=a.messageFont(),W(a)("["+i.techn.text+"]",o,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+n,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+a.messageFontSize+5+h,Math.max(i.label.width,i.techn.width),i.techn.height,{fill:s,"font-style":"italic"},d))}},d0=function(e,t,a){const o=e.append("g");let l=t.bgColor?t.bgColor:"none",i=t.borderColor?t.borderColor:"#444444",s=t.fontColor?t.fontColor:"black",r={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(r={"stroke-width":1});let n={x:t.x,y:t.y,fill:l,stroke:i,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:r};ie(o,n);let h=a.boundaryFont();h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=s,W(a)(t.label.text,o,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},h),t.type&&t.type.text!==""&&(h=a.boundaryFont(),h.fontColor=s,W(a)(t.type.text,o,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},h)),t.descr&&t.descr.text!==""&&(h=a.boundaryFont(),h.fontSize=h.fontSize-2,h.fontColor=s,W(a)(t.descr.text,o,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},h))},f0=function(e,t,a){var o;let l=t.bgColor?t.bgColor:a[t.typeC4Shape.text+"_bg_color"],i=t.borderColor?t.borderColor:a[t.typeC4Shape.text+"_border_color"],s=t.fontColor?t.fontColor:"#FFFFFF",r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const n=e.append("g");n.attr("class","person-man");const h=Ne();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":h.x=t.x,h.y=t.y,h.fill=l,h.width=t.width,h.height=t.height,h.stroke=i,h.rx=2.5,h.ry=2.5,h.attrs={"stroke-width":.5},ie(n,h);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":n.append("path").attr("fill",l).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),n.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":n.append("path").attr("fill",l).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),n.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let f=v0(a,t.typeC4Shape.text);switch(n.append("text").attr("fill",s).attr("font-family",f.fontFamily).attr("font-size",f.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":ye(n,48,48,t.x+t.width/2-24,t.y+t.image.Y,r);break}let d=a[t.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=s,W(a)(t.label.text,n,t.x,t.y+t.label.Y,t.width,t.height,{fill:s},d),d=a[t.typeC4Shape.text+"Font"](),d.fontColor=s,t.techn&&((o=t.techn)==null?void 0:o.text)!==""?W(a)(t.techn.text,n,t.x,t.y+t.techn.Y,t.width,t.height,{fill:s,"font-style":"italic"},d):t.type&&t.type.text!==""&&W(a)(t.type.text,n,t.x,t.y+t.type.Y,t.width,t.height,{fill:s,"font-style":"italic"},d),t.descr&&t.descr.text!==""&&(d=a.personFont(),d.fontColor=s,W(a)(t.descr.text,n,t.x,t.y+t.descr.Y,t.width,t.height,{fill:s},d)),t.height},p0=function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},y0=function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},g0=function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},b0=function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},_0=function(e){e.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},x0=function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},m0=function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},E0=function(e){const a=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);a.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),a.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},v0=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),W=function(){function e(l,i,s,r,n,h,f){const d=i.append("text").attr("x",s+n/2).attr("y",r+h/2+5).style("text-anchor","middle").text(l);o(d,f)}function t(l,i,s,r,n,h,f,d){const{fontSize:p,fontFamily:E,fontWeight:O}=d,R=l.split(Kt.lineBreakRegex);for(let S=0;S<R.length;S++){const L=S*p-p*(R.length-1)/2,Y=i.append("text").attr("x",s+n/2).attr("y",r).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",p).style("font-weight",O).style("font-family",E);Y.append("tspan").attr("dy",L).text(R[S]).attr("alignment-baseline","mathematical"),o(Y,f)}}function a(l,i,s,r,n,h,f,d){const p=i.append("switch"),O=p.append("foreignObject").attr("x",s).attr("y",r).attr("width",n).attr("height",h).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");O.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(l),t(l,p,s,r,n,h,f,d),o(O,f)}function o(l,i){for(const s in i)i.hasOwnProperty(s)&&l.attr(s,i[s])}return function(l){return l.textPlacement==="fo"?a:l.textPlacement==="old"?e:t}}(),F={drawRect:ie,drawBoundary:d0,drawC4Shape:f0,drawRels:u0,drawImage:ye,insertArrowHead:b0,insertArrowEnd:_0,insertArrowFilledHead:x0,insertDynamicNumber:m0,insertArrowCrossHead:E0,insertDatabaseIcon:p0,insertComputerIcon:y0,insertClockIcon:g0};let Ut=0,Ft=0,ge=4,Zt=2;Yt.yy=Jt;let b={};class be{constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,$t(t.db.getConfig())}setData(t,a,o,l){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=a,this.nextData.starty=this.data.starty=o,this.nextData.stopy=this.data.stopy=l}updateVal(t,a,o,l){t[a]===void 0?t[a]=o:t[a]=l(o,t[a])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let a=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+t.margin*2,o=a+t.width,l=this.nextData.starty+t.margin*2,i=l+t.height;(a>=this.data.widthLimit||o>=this.data.widthLimit||this.nextData.cnt>ge)&&(a=this.nextData.startx+t.margin+b.nextLinePaddingX,l=this.nextData.stopy+t.margin*2,this.nextData.stopx=o=a+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=l+t.height,this.nextData.cnt=1),t.x=a,t.y=l,this.updateVal(this.data,"startx",a,Math.min),this.updateVal(this.data,"starty",l,Math.min),this.updateVal(this.data,"stopx",o,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",a,Math.min),this.updateVal(this.nextData,"starty",l,Math.min),this.updateVal(this.nextData,"stopx",o,Math.max),this.updateVal(this.nextData,"stopy",i,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},$t(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}}const $t=function(e){De(b,e),e.fontFamily&&(b.personFontFamily=b.systemFontFamily=b.messageFontFamily=e.fontFamily),e.fontSize&&(b.personFontSize=b.systemFontSize=b.messageFontSize=e.fontSize),e.fontWeight&&(b.personFontWeight=b.systemFontWeight=b.messageFontWeight=e.fontWeight)},Rt=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),Bt=e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),k0=e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight});function I(e,t,a,o,l){if(!t[e].width)if(a)t[e].text=Pe(t[e].text,l,o),t[e].textLines=t[e].text.split(Kt.lineBreakRegex).length,t[e].width=l,t[e].height=oe(t[e].text,o);else{let i=t[e].text.split(Kt.lineBreakRegex);t[e].textLines=i.length;let s=0;t[e].height=0,t[e].width=0;for(const r of i)t[e].width=Math.max(wt(r,o),t[e].width),s=oe(r,o),t[e].height=t[e].height+s}}const _e=function(e,t,a){t.x=a.data.startx,t.y=a.data.starty,t.width=a.data.stopx-a.data.startx,t.height=a.data.stopy-a.data.starty,t.label.y=b.c4ShapeMargin-35;let o=t.wrap&&b.wrap,l=Bt(b);l.fontSize=l.fontSize+2,l.fontWeight="bold";let i=wt(t.label.text,l);I("label",t,o,l,i),F.drawBoundary(e,t,b)},xe=function(e,t,a,o){let l=0;for(const i of o){l=0;const s=a[i];let r=Rt(b,s.typeC4Shape.text);switch(r.fontSize=r.fontSize-2,s.typeC4Shape.width=wt("«"+s.typeC4Shape.text+"»",r),s.typeC4Shape.height=r.fontSize+2,s.typeC4Shape.Y=b.c4ShapePadding,l=s.typeC4Shape.Y+s.typeC4Shape.height-4,s.image={width:0,height:0,Y:0},s.typeC4Shape.text){case"person":case"external_person":s.image.width=48,s.image.height=48,s.image.Y=l,l=s.image.Y+s.image.height;break}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=l,l=s.image.Y+s.image.height);let n=s.wrap&&b.wrap,h=b.width-b.c4ShapePadding*2,f=Rt(b,s.typeC4Shape.text);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",I("label",s,n,f,h),s.label.Y=l+8,l=s.label.Y+s.label.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let E=Rt(b,s.typeC4Shape.text);I("type",s,n,E,h),s.type.Y=l+5,l=s.type.Y+s.type.height}else if(s.techn&&s.techn.text!==""){s.techn.text="["+s.techn.text+"]";let E=Rt(b,s.techn.text);I("techn",s,n,E,h),s.techn.Y=l+5,l=s.techn.Y+s.techn.height}let d=l,p=s.label.width;if(s.descr&&s.descr.text!==""){let E=Rt(b,s.typeC4Shape.text);I("descr",s,n,E,h),s.descr.Y=l+20,l=s.descr.Y+s.descr.height,p=Math.max(s.label.width,s.descr.width),d=l-s.descr.textLines*5}p=p+b.c4ShapePadding,s.width=Math.max(s.width||b.width,p,b.width),s.height=Math.max(s.height||b.height,d,b.height),s.margin=s.margin||b.c4ShapeMargin,e.insert(s),F.drawC4Shape(t,s,b)}e.bumpLastMargin(b.c4ShapeMargin)};class B{constructor(t,a){this.x=t,this.y=a}}let ce=function(e,t){let a=e.x,o=e.y,l=t.x,i=t.y,s=a+e.width/2,r=o+e.height/2,n=Math.abs(a-l),h=Math.abs(o-i),f=h/n,d=e.height/e.width,p=null;return o==i&&a<l?p=new B(a+e.width,r):o==i&&a>l?p=new B(a,r):a==l&&o<i?p=new B(s,o+e.height):a==l&&o>i&&(p=new B(s,o)),a>l&&o<i?d>=f?p=new B(a,r+f*e.width/2):p=new B(s-n/h*e.height/2,o+e.height):a<l&&o<i?d>=f?p=new B(a+e.width,r+f*e.width/2):p=new B(s+n/h*e.height/2,o+e.height):a<l&&o>i?d>=f?p=new B(a+e.width,r-f*e.width/2):p=new B(s+e.height/2*n/h,o):a>l&&o>i&&(d>=f?p=new B(a,r-e.width/2*f):p=new B(s-e.height/2*n/h,o)),p},A0=function(e,t){let a={x:0,y:0};a.x=t.x+t.width/2,a.y=t.y+t.height/2;let o=ce(e,a);a.x=e.x+e.width/2,a.y=e.y+e.height/2;let l=ce(t,a);return{startPoint:o,endPoint:l}};const C0=function(e,t,a,o){let l=0;for(let i of t){l=l+1;let s=i.wrap&&b.wrap,r=k0(b);o.db.getC4Type()==="C4Dynamic"&&(i.label.text=l+": "+i.label.text);let h=wt(i.label.text,r);I("label",i,s,r,h),i.techn&&i.techn.text!==""&&(h=wt(i.techn.text,r),I("techn",i,s,r,h)),i.descr&&i.descr.text!==""&&(h=wt(i.descr.text,r),I("descr",i,s,r,h));let f=a(i.from),d=a(i.to),p=A0(f,d);i.startPoint=p.startPoint,i.endPoint=p.endPoint}F.drawRels(e,t,b)};function me(e,t,a,o,l){let i=new be(l);i.data.widthLimit=a.data.widthLimit/Math.min(Zt,o.length);for(let[s,r]of o.entries()){let n=0;r.image={width:0,height:0,Y:0},r.sprite&&(r.image.width=48,r.image.height=48,r.image.Y=n,n=r.image.Y+r.image.height);let h=r.wrap&&b.wrap,f=Bt(b);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",I("label",r,h,f,i.data.widthLimit),r.label.Y=n+8,n=r.label.Y+r.label.height,r.type&&r.type.text!==""){r.type.text="["+r.type.text+"]";let O=Bt(b);I("type",r,h,O,i.data.widthLimit),r.type.Y=n+5,n=r.type.Y+r.type.height}if(r.descr&&r.descr.text!==""){let O=Bt(b);O.fontSize=O.fontSize-2,I("descr",r,h,O,i.data.widthLimit),r.descr.Y=n+20,n=r.descr.Y+r.descr.height}if(s==0||s%Zt===0){let O=a.data.startx+b.diagramMarginX,R=a.data.stopy+b.diagramMarginY+n;i.setData(O,O,R,R)}else{let O=i.data.stopx!==i.data.startx?i.data.stopx+b.diagramMarginX:i.data.startx,R=i.data.starty;i.setData(O,O,R,R)}i.name=r.alias;let d=l.db.getC4ShapeArray(r.alias),p=l.db.getC4ShapeKeys(r.alias);p.length>0&&xe(i,e,d,p),t=r.alias;let E=l.db.getBoundarys(t);E.length>0&&me(e,t,i,E,l),r.alias!=="global"&&_e(e,r,i),a.data.stopy=Math.max(i.data.stopy+b.c4ShapeMargin,a.data.stopy),a.data.stopx=Math.max(i.data.stopx+b.c4ShapeMargin,a.data.stopx),Ut=Math.max(Ut,a.data.stopx),Ft=Math.max(Ft,a.data.stopy)}}const w0=function(e,t,a,o){b=Dt().c4;const l=Dt().securityLevel;let i;l==="sandbox"&&(i=Nt("#i"+t));const s=l==="sandbox"?Nt(i.nodes()[0].contentDocument.body):Nt("body");let r=o.db;o.db.setWrap(b.wrap),ge=r.getC4ShapeInRow(),Zt=r.getC4BoundaryInRow(),le.debug(`C:${JSON.stringify(b,null,2)}`);const n=l==="sandbox"?s.select(`[id="${t}"]`):Nt(`[id="${t}"]`);F.insertComputerIcon(n),F.insertDatabaseIcon(n),F.insertClockIcon(n);let h=new be(o);h.setData(b.diagramMarginX,b.diagramMarginX,b.diagramMarginY,b.diagramMarginY),h.data.widthLimit=screen.availWidth,Ut=b.diagramMarginX,Ft=b.diagramMarginY;const f=o.db.getTitle();let d=o.db.getBoundarys("");me(n,"",h,d,o),F.insertArrowHead(n),F.insertArrowEnd(n),F.insertArrowCrossHead(n),F.insertArrowFilledHead(n),C0(n,o.db.getRels(),o.db.getC4Shape,o),h.data.stopx=Ut,h.data.stopy=Ft;const p=h.data;let O=p.stopy-p.starty+2*b.diagramMarginY;const S=p.stopx-p.startx+2*b.diagramMarginX;f&&n.append("text").text(f).attr("x",(p.stopx-p.startx)/2-4*b.diagramMarginX).attr("y",p.starty+b.diagramMarginY),Se(n,O,S,b.useMaxWidth);const L=f?60:0;n.attr("viewBox",p.startx-b.diagramMarginX+" -"+(b.diagramMarginY+L)+" "+S+" "+(O+L)),le.debug("models:",p)},he={drawPersonOrSystemArray:xe,drawBoundary:_e,setConf:$t,draw:w0},O0=e=>`.person {
stroke: ${e.personBorder};
fill: ${e.personBkg};
}
`,T0=O0,N0={parser:Be,db:Jt,renderer:he,styles:T0,init:({c4:e,wrap:t})=>{he.setConf(e),Jt.setWrap(t)}};export{N0 as diagram};
.disable-view-transition[data-v-026ee359] *{view-transition-name:none!important}
import{c as _e,$ as se,h as H,i as Ee,l as S,E as ye,z as we,n as De}from"./slidev/Mermaid-sWhOKcCj.js";import{c as ve}from"./clone-d2e37f8c-kF1Uud7q.js";import{c as Ne}from"./channel-d3ac35ac-BF6w4Boq.js";import{i as ke,c as Ie,b as Oe,d as Te,a as he,p as ze}from"./edges-1e1ebc73-BF9aEHVZ.js";import{G as Ce}from"./graph-af3d5df6-B9Rrt_D8.js";import{o as Ae}from"./ordinal-475e0c0c-BmOJQ37o.js";import{d as Re}from"./Tableau10-31042135-CvOaoHrI.js";import"./modules/vue-O-XuQLLR.js";import"./index-DENYuTHS.js";import"./modules/shiki-CBnMlxcT.js";import"./modules/file-saver-EUMWMpoS.js";import"./createText-f6615236-DY9JQ1lr.js";import"./line-65d70945-Bv9b7vLo.js";import"./array-b7dcf730-BKyUJesY.js";import"./path-39bad7e2-CbwjOpE9.js";import"./init-cc95ec8e-Gi6I4Gst.js";var oe,le,ee=function(){var e=function(D,l,s,i){for(s=s||{},i=D.length;i--;s[D[i]]=l);return s},a=[1,7],d=[1,13],c=[1,14],n=[1,15],g=[1,19],o=[1,16],f=[1,17],b=[1,18],p=[8,30],x=[8,21,28,29,30,31,32,40,44,47],E=[1,23],T=[1,24],v=[8,15,16,21,28,29,30,31,32,40,44,47],N=[8,15,16,21,27,28,29,30,31,32,40,44,47],y=[1,49],L={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(l,s,i,u,h,t,m){var r=t.length-1;switch(h){case 4:u.getLogger().debug("Rule: separator (NL) ");break;case 5:u.getLogger().debug("Rule: separator (Space) ");break;case 6:u.getLogger().debug("Rule: separator (EOF) ");break;case 7:u.getLogger().debug("Rule: hierarchy: ",t[r-1]),u.setHierarchy(t[r-1]);break;case 8:u.getLogger().debug("Stop NL ");break;case 9:u.getLogger().debug("Stop EOF ");break;case 10:u.getLogger().debug("Stop NL2 ");break;case 11:u.getLogger().debug("Stop EOF2 ");break;case 12:u.getLogger().debug("Rule: statement: ",t[r]),typeof t[r].length=="number"?this.$=t[r]:this.$=[t[r]];break;case 13:u.getLogger().debug("Rule: statement #2: ",t[r-1]),this.$=[t[r-1]].concat(t[r]);break;case 14:u.getLogger().debug("Rule: link: ",t[r],l),this.$={edgeTypeStr:t[r],label:""};break;case 15:u.getLogger().debug("Rule: LABEL link: ",t[r-3],t[r-1],t[r]),this.$={edgeTypeStr:t[r],label:t[r-1]};break;case 18:const R=parseInt(t[r]),Y=u.generateId();this.$={id:Y,type:"space",label:"",width:R,children:[]};break;case 23:u.getLogger().debug("Rule: (nodeStatement link node) ",t[r-2],t[r-1],t[r]," typestr: ",t[r-1].edgeTypeStr);const F=u.edgeStrToEdgeData(t[r-1].edgeTypeStr);this.$=[{id:t[r-2].id,label:t[r-2].label,type:t[r-2].type,directions:t[r-2].directions},{id:t[r-2].id+"-"+t[r].id,start:t[r-2].id,end:t[r].id,label:t[r-1].label,type:"edge",directions:t[r].directions,arrowTypeEnd:F,arrowTypeStart:"arrow_open"},{id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions}];break;case 24:u.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[r-1],t[r]),this.$={id:t[r-1].id,label:t[r-1].label,type:u.typeStr2Type(t[r-1].typeStr),directions:t[r-1].directions,widthInColumns:parseInt(t[r],10)};break;case 25:u.getLogger().debug("Rule: nodeStatement (node) ",t[r]),this.$={id:t[r].id,label:t[r].label,type:u.typeStr2Type(t[r].typeStr),directions:t[r].directions,widthInColumns:1};break;case 26:u.getLogger().debug("APA123",this?this:"na"),u.getLogger().debug("COLUMNS: ",t[r]),this.$={type:"column-setting",columns:t[r]==="auto"?-1:parseInt(t[r])};break;case 27:u.getLogger().debug("Rule: id-block statement : ",t[r-2],t[r-1]),u.generateId(),this.$={...t[r-2],type:"composite",children:t[r-1]};break;case 28:u.getLogger().debug("Rule: blockStatement : ",t[r-2],t[r-1],t[r]);const C=u.generateId();this.$={id:C,type:"composite",label:"",children:t[r-1]};break;case 29:u.getLogger().debug("Rule: node (NODE_ID separator): ",t[r]),this.$={id:t[r]};break;case 30:u.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[r-1],t[r]),this.$={id:t[r-1],label:t[r].label,typeStr:t[r].typeStr,directions:t[r].directions};break;case 31:u.getLogger().debug("Rule: dirList: ",t[r]),this.$=[t[r]];break;case 32:u.getLogger().debug("Rule: dirList: ",t[r-1],t[r]),this.$=[t[r-1]].concat(t[r]);break;case 33:u.getLogger().debug("Rule: nodeShapeNLabel: ",t[r-2],t[r-1],t[r]),this.$={typeStr:t[r-2]+t[r],label:t[r-1]};break;case 34:u.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[r-3],t[r-2]," #3:",t[r-1],t[r]),this.$={typeStr:t[r-3]+t[r],label:t[r-2],directions:t[r-1]};break;case 35:case 36:this.$={type:"classDef",id:t[r-1].trim(),css:t[r].trim()};break;case 37:this.$={type:"applyClass",id:t[r-1].trim(),styleClass:t[r].trim()};break;case 38:this.$={type:"applyStyles",id:t[r-1].trim(),stylesStr:t[r].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{8:[1,20]},e(p,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:a,28:d,29:c,31:n,32:g,40:o,44:f,47:b}),e(x,[2,16],{14:22,15:E,16:T}),e(x,[2,17]),e(x,[2,18]),e(x,[2,19]),e(x,[2,20]),e(x,[2,21]),e(x,[2,22]),e(v,[2,25],{27:[1,25]}),e(x,[2,26]),{19:26,26:12,32:g},{11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(N,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(p,[2,13]),{26:35,32:g},{32:[2,14]},{17:[1,36]},e(v,[2,24]),{11:37,13:4,14:22,15:E,16:T,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:d,29:c,31:n,32:g,40:o,44:f,47:b},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(N,[2,30]),{18:[1,43]},{18:[1,44]},e(v,[2,23]),{18:[1,45]},{30:[1,46]},e(x,[2,28]),e(x,[2,35]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),{37:[1,47]},{34:48,35:y},{15:[1,50]},e(x,[2,27]),e(N,[2,33]),{39:[1,51]},{34:52,35:y,39:[2,31]},{32:[2,15]},e(N,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(l,s){if(s.recoverable)this.trace(l);else{var i=new Error(l);throw i.hash=s,i}},parse:function(l){var s=this,i=[0],u=[],h=[null],t=[],m=this.table,r="",R=0,Y=0,F=2,C=1,Se=t.slice.call(arguments,1),w=Object.create(this.lexer),K={yy:{}};for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z)&&(K.yy[Z]=this.yy[Z]);w.setInput(l,K.yy),K.yy.lexer=w,K.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var J=w.yylloc;t.push(J);var Le=w.options&&w.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function me(){var P;return P=u.pop()||w.lex()||C,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}for(var I,M,z,Q,W={},X,B,ae,G;;){if(M=i[i.length-1],this.defaultActions[M]?z=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=me()),z=m[M]&&m[M][I]),typeof z>"u"||!z.length||!z[0]){var $="";G=[];for(X in m[M])this.terminals_[X]&&X>F&&G.push("'"+this.terminals_[X]+"'");w.showPosition?$="Parse error on line "+(R+1)+`:
`+w.showPosition()+`
Expecting `+G.join(", ")+", got '"+(this.terminals_[I]||I)+"'":$="Parse error on line "+(R+1)+": Unexpected "+(I==C?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError($,{text:w.match,token:this.terminals_[I]||I,line:w.yylineno,loc:J,expected:G})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+I);switch(z[0]){case 1:i.push(I),h.push(w.yytext),t.push(w.yylloc),i.push(z[1]),I=null,Y=w.yyleng,r=w.yytext,R=w.yylineno,J=w.yylloc;break;case 2:if(B=this.productions_[z[1]][1],W.$=h[h.length-B],W._$={first_line:t[t.length-(B||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(B||1)].first_column,last_column:t[t.length-1].last_column},Le&&(W._$.range=[t[t.length-(B||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(W,[r,Y,R,K.yy,z[1],h,t].concat(Se)),typeof Q<"u")return Q;B&&(i=i.slice(0,-1*B*2),h=h.slice(0,-1*B),t=t.slice(0,-1*B)),i.push(this.productions_[z[1]][0]),h.push(W.$),t.push(W._$),ae=m[i[i.length-2]][i[i.length-1]],i.push(ae);break;case 3:return!0}}return!0}},A=function(){var D={EOF:1,parseError:function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},setInput:function(l,s){return this.yy=s||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var s=l.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},unput:function(l){var s=l.length,i=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var h=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===u.length?this.yylloc.first_column:0)+u[u.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(l){this.unput(this.match.slice(l))},pastInput:function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var l=this.pastInput(),s=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
`+s+"^"},test_match:function(l,s){var i,u,h;if(this.options.backtrack_lexer&&(h={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(h.yylloc.range=this.yylloc.range.slice(0))),u=l[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],i=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var t in h)this[t]=h[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,s,i,u;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),t=0;t<h.length;t++)if(i=this._input.match(this.rules[h[t]]),i&&(!s||i[0].length>s[0].length)){if(s=i,u=t,this.options.backtrack_lexer){if(l=this.test_match(i,h[t]),l!==!1)return l;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(l=this.test_match(s,h[u]),l!==!1?l:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return s||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(s,i,u,h){switch(u){case 0:return 10;case 1:return s.getLogger().debug("Found space-block"),31;case 2:return s.getLogger().debug("Found nl-block"),31;case 3:return s.getLogger().debug("Found space-block"),29;case 4:s.getLogger().debug(".",i.yytext);break;case 5:s.getLogger().debug("_",i.yytext);break;case 6:return 5;case 7:return i.yytext=-1,28;case 8:return i.yytext=i.yytext.replace(/columns\s+/,""),s.getLogger().debug("COLUMNS (LEX)",i.yytext),28;case 9:this.pushState("md_string");break;case 10:return"MD_STR";case 11:this.popState();break;case 12:this.pushState("string");break;case 13:s.getLogger().debug("LEX: POPPING STR:",i.yytext),this.popState();break;case 14:return s.getLogger().debug("LEX: STR end:",i.yytext),"STR";case 15:return i.yytext=i.yytext.replace(/space\:/,""),s.getLogger().debug("SPACE NUM (LEX)",i.yytext),21;case 16:return i.yytext="1",s.getLogger().debug("COLUMNS (LEX)",i.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),s.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),s.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),s.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),s.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),s.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),s.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),s.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),s.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),s.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),s.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return s.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return s.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return s.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return s.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 60:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 61:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 62:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 63:return s.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return s.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 65:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 66:return this.pushState("NODE"),36;case 67:return this.pushState("NODE"),36;case 68:return this.pushState("NODE"),36;case 69:return this.pushState("NODE"),36;case 70:return this.pushState("NODE"),36;case 71:return this.pushState("NODE"),36;case 72:return this.pushState("NODE"),36;case 73:return s.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),s.getLogger().debug("LEX ARR START"),38;case 75:return s.getLogger().debug("Lex: NODE_ID",i.yytext),32;case 76:return s.getLogger().debug("Lex: EOF",i.yytext),8;case 77:this.pushState("md_string");break;case 78:this.pushState("md_string");break;case 79:return"NODE_DESCR";case 80:this.popState();break;case 81:s.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:s.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return s.getLogger().debug("LEX: NODE_DESCR:",i.yytext),"NODE_DESCR";case 84:s.getLogger().debug("LEX POPPING"),this.popState();break;case 85:s.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (right): dir:",i.yytext),"DIR";case 87:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (left):",i.yytext),"DIR";case 88:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (x):",i.yytext),"DIR";case 89:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (y):",i.yytext),"DIR";case 90:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (up):",i.yytext),"DIR";case 91:return i.yytext=i.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (down):",i.yytext),"DIR";case 92:return i.yytext="]>",s.getLogger().debug("Lex (ARROW_DIR end):",i.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return s.getLogger().debug("Lex: LINK","#"+i.yytext+"#"),15;case 94:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 95:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 96:return s.getLogger().debug("Lex: LINK",i.yytext),15;case 97:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 98:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 99:return s.getLogger().debug("Lex: START_LINK",i.yytext),this.pushState("LLABEL"),16;case 100:this.pushState("md_string");break;case 101:return s.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),s.getLogger().debug("Lex: LINK","#"+i.yytext+"#"),15;case 103:return this.popState(),s.getLogger().debug("Lex: LINK",i.yytext),15;case 104:return this.popState(),s.getLogger().debug("Lex: LINK",i.yytext),15;case 105:return s.getLogger().debug("Lex: COLON",i.yytext),i.yytext=i.yytext.slice(1),27}},rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}};return D}();L.lexer=A;function k(){this.yy={}}return k.prototype=L,L.Parser=k,new k}();ee.parser=ee;const Be=ee;let O={},ie=[],V={};const ce="color",ue="fill",Pe="bgFill",ge=",";let j={};const Fe=function(e,a=""){j[e]===void 0&&(j[e]={id:e,styles:[],textStyles:[]});const d=j[e];a!=null&&a.split(ge).forEach(c=>{const n=c.replace(/([^;]*);/,"$1").trim();if(c.match(ce)){const o=n.replace(ue,Pe).replace(ce,ue);d.textStyles.push(o)}d.styles.push(n)})},Ke=function(e,a=""){const d=O[e];a!=null&&(d.styles=a.split(ge))},Me=function(e,a){e.split(",").forEach(function(d){let c=O[d];if(c===void 0){const n=d.trim();O[n]={id:n,type:"na",children:[]},c=O[n]}c.classes||(c.classes=[]),c.classes.push(a)})},pe=(e,a)=>{const d=e.flat(),c=[];for(const n of d){if(n.type==="classDef"){Fe(n.id,n.css);continue}if(n.type==="applyClass"){Me(n.id,(n==null?void 0:n.styleClass)||"");continue}if(n.type==="applyStyles"){n!=null&&n.stylesStr&&Ke(n.id,n==null?void 0:n.stylesStr);continue}if(n.type==="column-setting")a.columns=n.columns||-1;else if(n.type==="edge")V[n.id]?V[n.id]++:V[n.id]=1,n.id=V[n.id]+"-"+n.id,ie.push(n);else{n.label||(n.type==="composite"?n.label="":n.label=n.id);const g=!O[n.id];if(g?O[n.id]=n:(n.type!=="na"&&(O[n.id].type=n.type),n.label!==n.id&&(O[n.id].label=n.label)),n.children&&pe(n.children,n),n.type==="space"){const o=n.width||1;for(let f=0;f<o;f++){const b=ve(n);b.id=b.id+"-"+f,O[b.id]=b,c.push(b)}}else g&&c.push(n)}}a.children=c};let re=[],U={id:"root",type:"composite",children:[],columns:-1};const Ye=()=>{S.debug("Clear called"),ye(),U={id:"root",type:"composite",children:[],columns:-1},O={root:U},re=[],j={},ie=[],V={}};function We(e){switch(S.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return S.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function Ve(e){switch(S.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}function je(e){switch(e.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}let de=0;const Ue=()=>(de++,"id-"+Math.random().toString(36).substr(2,12)+"-"+de),Xe=e=>{U.children=e,pe(e,U),re=U.children},Ge=e=>{const a=O[e];return a?a.columns?a.columns:a.children?a.children.length:-1:-1},He=()=>[...Object.values(O)],qe=()=>re||[],Ze=()=>ie,Je=e=>O[e],Qe=e=>{O[e.id]=e},$e=()=>console,et=function(){return j},tt={getConfig:()=>se().block,typeStr2Type:We,edgeTypeStr2Type:Ve,edgeStrToEdgeData:je,getLogger:$e,getBlocksFlat:He,getBlocks:qe,getEdges:Ze,setHierarchy:Xe,getBlock:Je,setBlock:Qe,getColumns:Ge,getClasses:et,clear:Ye,generateId:Ue},st=tt,q=(e,a)=>{const d=Ne,c=d(e,"r"),n=d(e,"g"),g=d(e,"b");return we(c,n,g,a)},it=e=>`.label {
font-family: ${e.fontFamily};
color: ${e.nodeTextColor||e.textColor};
}
.cluster-label text {
fill: ${e.titleColor};
}
.cluster-label span,p {
color: ${e.titleColor};
}
.label text,span,p {
fill: ${e.nodeTextColor||e.textColor};
color: ${e.nodeTextColor||e.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${e.mainBkg};
stroke: ${e.nodeBorder};
stroke-width: 1px;
}
.flowchart-label text {
text-anchor: middle;
}
// .flowchart-label .text-outer-tspan {
// text-anchor: middle;
// }
// .flowchart-label .text-inner-tspan {
// text-anchor: start;
// }
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${e.arrowheadColor};
}
.edgePath .path {
stroke: ${e.lineColor};
stroke-width: 2.0px;
}
.flowchart-link {
stroke: ${e.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${e.edgeLabelBackground};
rect {
opacity: 0.5;
background-color: ${e.edgeLabelBackground};
fill: ${e.edgeLabelBackground};
}
text-align: center;
}
/* For html labels only */
.labelBkg {
background-color: ${q(e.edgeLabelBackground,.5)};
// background-color:
}
.node .cluster {
// fill: ${q(e.mainBkg,.5)};
fill: ${q(e.clusterBkg,.5)};
stroke: ${q(e.clusterBorder,.2)};
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
stroke-width: 1px;
}
.cluster text {
fill: ${e.titleColor};
}
.cluster span,p {
color: ${e.titleColor};
}
/* .cluster div {
color: ${e.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${e.fontFamily};
font-size: 12px;
background: ${e.tertiaryColor};
border: 1px solid ${e.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${e.textColor};
}
`,rt=it;function fe(e,a,d=!1){var c,n,g;const o=e;let f="default";(((c=o==null?void 0:o.classes)==null?void 0:c.length)||0)>0&&(f=((o==null?void 0:o.classes)||[]).join(" ")),f=f+" flowchart-label";let b=0,p="",x;switch(o.type){case"round":b=5,p="rect";break;case"composite":b=0,p="composite",x=0;break;case"square":p="rect";break;case"diamond":p="question";break;case"hexagon":p="hexagon";break;case"block_arrow":p="block_arrow";break;case"odd":p="rect_left_inv_arrow";break;case"lean_right":p="lean_right";break;case"lean_left":p="lean_left";break;case"trapezoid":p="trapezoid";break;case"inv_trapezoid":p="inv_trapezoid";break;case"rect_left_inv_arrow":p="rect_left_inv_arrow";break;case"circle":p="circle";break;case"ellipse":p="ellipse";break;case"stadium":p="stadium";break;case"subroutine":p="subroutine";break;case"cylinder":p="cylinder";break;case"group":p="rect";break;case"doublecircle":p="doublecircle";break;default:p="rect"}const E=De((o==null?void 0:o.styles)||[]),T=o.label,v=o.size||{width:0,height:0,x:0,y:0};return{labelStyle:E.labelStyle,shape:p,labelText:T,rx:b,ry:b,class:f,style:E.style,id:o.id,directions:o.directions,width:v.width,height:v.height,x:v.x,y:v.y,positioned:d,intersect:void 0,type:o.type,padding:x??(((g=(n=se())==null?void 0:n.block)==null?void 0:g.padding)||0)}}async function nt(e,a,d){const c=fe(a,d,!1);if(c.type==="group")return;const n=await he(e,c),g=n.node().getBBox(),o=d.getBlock(c.id);o.size={width:g.width,height:g.height,x:0,y:0,node:n},d.setBlock(o),n.remove()}async function at(e,a,d){const c=fe(a,d,!0);d.getBlock(c.id).type!=="space"&&(await he(e,c),a.intersect=c==null?void 0:c.intersect,ze(c))}async function ne(e,a,d,c){for(const n of a)await c(e,n,d),n.children&&await ne(e,n.children,d,c)}async function ot(e,a,d){await ne(e,a,d,nt)}async function lt(e,a,d){await ne(e,a,d,at)}async function ct(e,a,d,c,n){const g=new Ce({multigraph:!0,compound:!0});g.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const o of d)o.size&&g.setNode(o.id,{width:o.size.width,height:o.size.height,intersect:o.intersect});for(const o of a)if(o.start&&o.end){const f=c.getBlock(o.start),b=c.getBlock(o.end);if(f!=null&&f.size&&(b!=null&&b.size)){const p=f.size,x=b.size,E=[{x:p.x,y:p.y},{x:p.x+(x.x-p.x)/2,y:p.y+(x.y-p.y)/2},{x:x.x,y:x.y}];await Ie(e,{v:o.start,w:o.end,name:o.id},{...o,arrowTypeEnd:o.arrowTypeEnd,arrowTypeStart:o.arrowTypeStart,points:E,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",g,n),o.label&&(await Oe(e,{...o,label:o.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:o.arrowTypeEnd,arrowTypeStart:o.arrowTypeStart,points:E,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),await Te({...o,x:E[1].x,y:E[1].y},{originalPath:E}))}}}const _=((le=(oe=_e())==null?void 0:oe.block)==null?void 0:le.padding)||8;function ut(e,a){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(a<0||!Number.isInteger(a))throw new Error("Position must be a non-negative integer."+a);if(e<0)return{px:a,py:0};if(e===1)return{px:0,py:a};const d=a%e,c=Math.floor(a/e);return{px:d,py:c}}const dt=e=>{let a=0,d=0;for(const c of e.children){const{width:n,height:g,x:o,y:f}=c.size||{width:0,height:0,x:0,y:0};S.debug("getMaxChildSize abc95 child:",c.id,"width:",n,"height:",g,"x:",o,"y:",f,c.type),c.type!=="space"&&(n>a&&(a=n/(e.widthInColumns||1)),g>d&&(d=g))}return{width:a,height:d}};function te(e,a,d=0,c=0){var n,g,o,f,b,p,x,E,T,v,N;S.debug("setBlockSizes abc95 (start)",e.id,(n=e==null?void 0:e.size)==null?void 0:n.x,"block width =",e==null?void 0:e.size,"sieblingWidth",d),(g=e==null?void 0:e.size)!=null&&g.width||(e.size={width:d,height:c,x:0,y:0});let y=0,L=0;if(((o=e.children)==null?void 0:o.length)>0){for(const h of e.children)te(h,a);const A=dt(e);y=A.width,L=A.height,S.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",y,L);for(const h of e.children)h.size&&(S.debug(`abc95 Setting size of children of ${e.id} id=${h.id} ${y} ${L} ${h.size}`),h.size.width=y*(h.widthInColumns||1)+_*((h.widthInColumns||1)-1),h.size.height=L,h.size.x=0,h.size.y=0,S.debug(`abc95 updating size of ${e.id} children child:${h.id} maxWidth:${y} maxHeight:${L}`));for(const h of e.children)te(h,a,y,L);const k=e.columns||-1;let D=0;for(const h of e.children)D+=h.widthInColumns||1;let l=e.children.length;k>0&&k<D&&(l=k),e.widthInColumns;const s=Math.ceil(D/l);let i=l*(y+_)+_,u=s*(L+_)+_;if(i<d){S.debug(`Detected to small siebling: abc95 ${e.id} sieblingWidth ${d} sieblingHeight ${c} width ${i}`),i=d,u=c;const h=(d-l*_-_)/l,t=(c-s*_-_)/s;S.debug("Size indata abc88",e.id,"childWidth",h,"maxWidth",y),S.debug("Size indata abc88",e.id,"childHeight",t,"maxHeight",L),S.debug("Size indata abc88 xSize",l,"padding",_);for(const m of e.children)m.size&&(m.size.width=h,m.size.height=t,m.size.x=0,m.size.y=0)}if(S.debug(`abc95 (finale calc) ${e.id} xSize ${l} ySize ${s} columns ${k}${e.children.length} width=${Math.max(i,((f=e.size)==null?void 0:f.width)||0)}`),i<(((b=e==null?void 0:e.size)==null?void 0:b.width)||0)){i=((p=e==null?void 0:e.size)==null?void 0:p.width)||0;const h=k>0?Math.min(e.children.length,k):e.children.length;if(h>0){const t=(i-h*_-_)/h;S.debug("abc95 (growing to fit) width",e.id,i,(x=e.size)==null?void 0:x.width,t);for(const m of e.children)m.size&&(m.size.width=t)}}e.size={width:i,height:u,x:0,y:0}}S.debug("setBlockSizes abc94 (done)",e.id,(E=e==null?void 0:e.size)==null?void 0:E.x,(T=e==null?void 0:e.size)==null?void 0:T.width,(v=e==null?void 0:e.size)==null?void 0:v.y,(N=e==null?void 0:e.size)==null?void 0:N.height)}function be(e,a){var d,c,n,g,o,f,b,p,x,E,T,v,N,y,L,A,k;S.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(d=e==null?void 0:e.size)==null?void 0:d.x} y: ${(c=e==null?void 0:e.size)==null?void 0:c.y} width: ${(n=e==null?void 0:e.size)==null?void 0:n.width}`);const D=e.columns||-1;if(S.debug("layoutBlocks columns abc95",e.id,"=>",D,e),e.children&&e.children.length>0){const l=((o=(g=e==null?void 0:e.children[0])==null?void 0:g.size)==null?void 0:o.width)||0,s=e.children.length*l+(e.children.length-1)*_;S.debug("widthOfChildren 88",s,"posX");let i=0;S.debug("abc91 block?.size?.x",e.id,(f=e==null?void 0:e.size)==null?void 0:f.x);let u=(b=e==null?void 0:e.size)!=null&&b.x?((p=e==null?void 0:e.size)==null?void 0:p.x)+(-((x=e==null?void 0:e.size)==null?void 0:x.width)/2||0):-_,h=0;for(const t of e.children){const m=e;if(!t.size)continue;const{width:r,height:R}=t.size,{px:Y,py:F}=ut(D,i);if(F!=h&&(h=F,u=(E=e==null?void 0:e.size)!=null&&E.x?((T=e==null?void 0:e.size)==null?void 0:T.x)+(-((v=e==null?void 0:e.size)==null?void 0:v.width)/2||0):-_,S.debug("New row in layout for block",e.id," and child ",t.id,h)),S.debug(`abc89 layout blocks (child) id: ${t.id} Pos: ${i} (px, py) ${Y},${F} (${(N=m==null?void 0:m.size)==null?void 0:N.x},${(y=m==null?void 0:m.size)==null?void 0:y.y}) parent: ${m.id} width: ${r}${_}`),m.size){const C=r/2;t.size.x=u+_+C,S.debug(`abc91 layout blocks (calc) px, pyid:${t.id} startingPos=X${u} new startingPosX${t.size.x} ${C} padding=${_} width=${r} halfWidth=${C} => x:${t.size.x} y:${t.size.y} ${t.widthInColumns} (width * (child?.w || 1)) / 2 ${r*((t==null?void 0:t.widthInColumns)||1)/2}`),u=t.size.x+C,t.size.y=m.size.y-m.size.height/2+F*(R+_)+R/2+_,S.debug(`abc88 layout blocks (calc) px, pyid:${t.id}startingPosX${u}${_}${C}=>x:${t.size.x}y:${t.size.y}${t.widthInColumns}(width * (child?.w || 1)) / 2${r*((t==null?void 0:t.widthInColumns)||1)/2}`)}t.children&&be(t),i+=(t==null?void 0:t.widthInColumns)||1,S.debug("abc88 columnsPos",t,i)}}S.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${(L=e==null?void 0:e.size)==null?void 0:L.x} y: ${(A=e==null?void 0:e.size)==null?void 0:A.y} width: ${(k=e==null?void 0:e.size)==null?void 0:k.width}`)}function xe(e,{minX:a,minY:d,maxX:c,maxY:n}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:g,y:o,width:f,height:b}=e.size;g-f/2<a&&(a=g-f/2),o-b/2<d&&(d=o-b/2),g+f/2>c&&(c=g+f/2),o+b/2>n&&(n=o+b/2)}if(e.children)for(const g of e.children)({minX:a,minY:d,maxX:c,maxY:n}=xe(g,{minX:a,minY:d,maxX:c,maxY:n}));return{minX:a,minY:d,maxX:c,maxY:n}}function ht(e){const a=e.getBlock("root");if(!a)return;te(a,e,0,0),be(a),S.debug("getBlocks",JSON.stringify(a,null,2));const{minX:d,minY:c,maxX:n,maxY:g}=xe(a),o=g-c,f=n-d;return{x:d,y:c,width:f,height:o}}const gt=function(e,a){return a.db.getClasses()},pt=async function(e,a,d,c){const{securityLevel:n,block:g}=se(),o=c.db;let f;n==="sandbox"&&(f=H("#i"+a));const b=n==="sandbox"?H(f.nodes()[0].contentDocument.body):H("body"),p=n==="sandbox"?b.select(`[id="${a}"]`):H(`[id="${a}"]`);ke(p,["point","circle","cross"],c.type,a);const E=o.getBlocks(),T=o.getBlocksFlat(),v=o.getEdges(),N=p.insert("g").attr("class","block");await ot(N,E,o);const y=ht(o);if(await lt(N,E,o),await ct(N,v,T,o,a),y){const L=y,A=Math.max(1,Math.round(.125*(L.width/L.height))),k=L.height+A+10,D=L.width+10,{useMaxWidth:l}=g;Ee(p,k,D,!!l),S.debug("Here Bounds",y,L),p.attr("viewBox",`${L.x-5} ${L.y-5} ${L.width+10} ${L.height+10}`)}Ae(Re)},ft={draw:pt,getClasses:gt},zt={parser:Be,db:st,renderer:ft,styles:rt};export{zt as diagram};
import{w as ln,c as S}from"./path-39bad7e2-CbwjOpE9.js";import{aW as an,aX as j,aY as w,aZ as rn,a_ as y,Y as on,a$ as C,b0 as _,b1 as un,b2 as t,b3 as sn,b4 as tn,b5 as fn}from"./slidev/Mermaid-sWhOKcCj.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function mn(l){return l.endAngle}function pn(l){return l&&l.padAngle}function dn(l,h,q,Y,v,A,W,a){var D=q-l,i=Y-h,n=W-v,m=a-A,r=m*D-n*i;if(!(r*r<y))return r=(n*(h-A)-m*(l-v))/r,[l+r*D,h+r*i]}function L(l,h,q,Y,v,A,W){var a=l-q,D=h-Y,i=(W?A:-A)/C(a*a+D*D),n=i*D,m=-i*a,r=l+n,s=h+m,f=q+n,c=Y+m,X=(r+f)/2,o=(s+c)/2,p=f-r,g=c-s,R=p*p+g*g,T=v-A,b=r*c-f*s,E=(g<0?-1:1)*C(fn(0,T*T*R-b*b)),I=(b*g-p*E)/R,O=(-b*p-g*E)/R,P=(b*g+p*E)/R,d=(-b*p+g*E)/R,x=I-X,e=O-o,u=P-X,Z=d-o;return x*x+e*e>u*u+Z*Z&&(I=P,O=d),{cx:I,cy:O,x01:-n,y01:-m,x11:I*(v/T-1),y11:O*(v/T-1)}}function vn(){var l=cn,h=yn,q=S(0),Y=null,v=gn,A=mn,W=pn,a=null,D=ln(i);function i(){var n,m,r=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-rn,c=A.apply(this,arguments)-rn,X=un(c-f),o=c>f;if(a||(a=n=D()),s<r&&(m=s,s=r,r=m),!(s>y))a.moveTo(0,0);else if(X>on-y)a.moveTo(s*j(f),s*w(f)),a.arc(0,0,s,f,c,!o),r>y&&(a.moveTo(r*j(c),r*w(c)),a.arc(0,0,r,c,f,o));else{var p=f,g=c,R=f,T=c,b=X,E=X,I=W.apply(this,arguments)/2,O=I>y&&(Y?+Y.apply(this,arguments):C(r*r+s*s)),P=_(un(s-r)/2,+q.apply(this,arguments)),d=P,x=P,e,u;if(O>y){var Z=sn(O/r*w(I)),F=sn(O/s*w(I));(b-=Z*2)>y?(Z*=o?1:-1,R+=Z,T-=Z):(b=0,R=T=(f+c)/2),(E-=F*2)>y?(F*=o?1:-1,p+=F,g-=F):(E=0,p=g=(f+c)/2)}var z=s*j(p),B=s*w(p),G=r*j(T),H=r*w(T);if(P>y){var J=s*j(g),K=s*w(g),M=r*j(R),N=r*w(R),$;if(X<an)if($=dn(z,B,M,N,J,K,G,H)){var Q=z-$[0],U=B-$[1],V=J-$[0],k=K-$[1],nn=1/w(tn((Q*V+U*k)/(C(Q*Q+U*U)*C(V*V+k*k)))/2),en=C($[0]*$[0]+$[1]*$[1]);d=_(P,(r-en)/(nn-1)),x=_(P,(s-en)/(nn+1))}else d=x=0}E>y?x>y?(e=L(M,N,z,B,s,x,o),u=L(J,K,G,H,s,x,o),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<P?a.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(u.y01,u.x01),!o):(a.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(e.y11,e.x11),!o),a.arc(0,0,s,t(e.cy+e.y11,e.cx+e.x11),t(u.cy+u.y11,u.cx+u.x11),!o),a.arc(u.cx,u.cy,x,t(u.y11,u.x11),t(u.y01,u.x01),!o))):(a.moveTo(z,B),a.arc(0,0,s,p,g,!o)):a.moveTo(z,B),!(r>y)||!(b>y)?a.lineTo(G,H):d>y?(e=L(G,H,J,K,r,-d,o),u=L(z,B,M,N,r,-d,o),a.lineTo(e.cx+e.x01,e.cy+e.y01),d<P?a.arc(e.cx,e.cy,d,t(e.y01,e.x01),t(u.y01,u.x01),!o):(a.arc(e.cx,e.cy,d,t(e.y01,e.x01),t(e.y11,e.x11),!o),a.arc(0,0,r,t(e.cy+e.y11,e.cx+e.x11),t(u.cy+u.y11,u.cx+u.x11),o),a.arc(u.cx,u.cy,d,t(u.y11,u.x11),t(u.y01,u.x01),!o))):a.arc(0,0,r,T,R,o)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,m=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-an/2;return[j(m)*n,w(m)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:S(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:S(+n),i):h},i.cornerRadius=function(n){return arguments.length?(q=typeof n=="function"?n:S(+n),i):q},i.padRadius=function(n){return arguments.length?(Y=n==null?null:typeof n=="function"?n:S(+n),i):Y},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:S(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:S(+n),i):A},i.padAngle=function(n){return arguments.length?(W=typeof n=="function"?n:S(+n),i):W},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{vn as d};
function o(e){for(var c=e.length/6|0,n=new Array(c),a=0;a<c;)n[a]="#"+e.slice(a*6,++a*6);return n}const r=o("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");export{r as d};
#slide-container{position:relative;break-after:page;overflow:hidden}#slide-content{position:relative;position:absolute;left:50%;top:50%;overflow:hidden;--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark #slide-content{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.select-list[data-v-3f89fa11]{padding-top:.5rem;padding-bottom:.5rem}.item[data-v-3f89fa11]{display:flex;cursor:default;white-space:nowrap;border-radius:.25rem;padding:.25rem 1rem}.item svg[data-v-3f89fa11]{margin-top:auto;margin-bottom:auto;margin-right:.25rem;margin-left:-.5rem}.item[data-v-3f89fa11]:hover{--un-bg-opacity:1;background-color:rgb(156 163 175 / var(--un-bg-opacity));--un-bg-opacity:.1}.title[data-v-3f89fa11]{padding:.25rem 1.75rem;font-size:.75rem;line-height:1rem;letter-spacing:.1em;text-transform:uppercase;opacity:.5}.autocomplete-list[data-v-f5ee02a7]{margin-top:.25rem;--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity));overflow:auto;max-height:calc(100vh - 100px)}.dark .autocomplete-list[data-v-f5ee02a7]{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.autocomplete[data-v-f5ee02a7]{cursor:pointer}#slideshow[data-v-afb4231e]{height:100%}#slideshow>div[data-v-afb4231e]{position:absolute;height:100%;width:100%}
.slidev-note :first-child{margin-top:0}
.v-popper--theme-menu .v-popper__arrow-inner{border-color:#9ca3af33}
.two-cols-header[data-v-1401df1d]{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}.col-header[data-v-1401df1d]{grid-area:1 / 1 / 2 / 3}.col-left[data-v-1401df1d]{grid-area:2 / 1 / 3 / 2}.col-right[data-v-1401df1d]{grid-area:2 / 2 / 3 / 3}.col-bottom[data-v-1401df1d]{align-self:end;grid-area:3 / 1 / 3 / 3}
<script type="module" crossorigin src="/slides/fosdem2024/assets/index-Hfn5l4aw.js"></script>
<link rel="stylesheet" crossorigin href="/slides/fosdem2024/assets/index-DlFHiXtv.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Avenir+Next:wght@200;400;600&family=Nunito+Sans:wght@200;400;600&family=Fira+Code:wght@200;400;600&display=swap" type="text/css">
<script type="module" crossorigin src="/slides/fosdem2024/assets/index-DENYuTHS.js"></script>
<link rel="modulepreload" crossorigin href="/slides/fosdem2024/assets/modules/vue-O-XuQLLR.js">
<link rel="modulepreload" crossorigin href="/slides/fosdem2024/assets/modules/shiki-CBnMlxcT.js">
<link rel="stylesheet" crossorigin href="/slides/fosdem2024/assets/modules/shiki-BSchMNmt.css">
<link rel="stylesheet" crossorigin href="/slides/fosdem2024/assets/index-BAThGyva.css">
slides:
cd slides && npx slidev build fosdem2024.md --base /slides/fosdem2024 && cp -r dist ../site/static/slides/fosdem2024
# Présentations
Tester localement une seule preséntation (ex, fosdem2024)
cd slides
npx slidev fosdem2024.md
Le site est généré avec .build.yaml. Pour éviter de tout recompiler à chaque fois, on stocke dans git les différentes présentation dans /static/slides.
On utilise `justfile` (alternative Rust à Make) :
just slides
À noter l'option --base importante pour que le chemin final soit correct